<?php

declare(strict_types=1);

namespace FleekDash\Core;

/**
 * Shared WordPress script handle constants.
 * Single source of truth for handles that FleekDash must deregister/block
 * to avoid duplicate React instances (renderers.size === 2).
 */
final class ScriptHandles
{
    /**
     * WordPress React handles - deregister these on FleekDash admin pages
     * so we use our bundled React (Vite) instead of wp-element.
     *
     * @var array<int, string>
     */
    public const WORDPRESS_REACT = [
        'react',
        'react-dom',
        'react-jsx-runtime',
        'wp-element',
    ];

    /** Prevent instantiation - this class only provides constants. */
    private function __construct()
    {
        // Intentionally empty - constants-only class
    }
}
