react-dev-panel 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -3,8 +3,9 @@ import { b as DevPanelConfig, T as ToolDefinition, O as OpenInEditor, R as Resol
3
3
  export { D as DEFAULT_GRAPH_ENDPOINT, a as DEFAULT_OPEN_ENDPOINT, c as DevPanelTheme, E as EditorType, S as SourceLocation, d as ToolPanelProps, e as createServerOpenInEditor, s as serverOpenInEditor } from './server-open-B4FK0jQF.cjs';
4
4
 
5
5
  /**
6
- * The single component a host mounts (once, near the app root). Renders the floating launcher,
7
- * the active tool's panel, and every tool's always-on overlay — all gated by `enabled`.
6
+ * The single component a host mounts (once, near the app root, inside its MUI ThemeProvider).
7
+ * Renders the floating launcher, the active tool's panel, and every tool's always-on overlay —
8
+ * all gated by `enabled`.
8
9
  *
9
10
  * <DevPanel enabled={isInternalUser} getRoute={() => pathname} openInEditor={...} />
10
11
  */
@@ -21,9 +22,6 @@ declare function getRegisteredTools(): ToolDefinition[];
21
22
  declare const defaultOpenInEditor: OpenInEditor;
22
23
  declare function useDevPanelConfig(): ResolvedDevPanelConfig;
23
24
 
24
- /** Inject the stylesheet once (idempotent, SSR-safe). */
25
- declare function injectBaseStyles(): void;
26
-
27
25
  /** Pure data types for the component graph — shared by the CLI generator and the React tool. */
28
26
  type GraphNodeType = 'component' | 'route';
29
27
  interface ComponentGraphNode {
@@ -50,4 +48,4 @@ interface ComponentGraph {
50
48
  edges: ComponentGraphEdge[];
51
49
  }
52
50
 
53
- export { type ComponentGraph, type ComponentGraphEdge, type ComponentGraphNode, DevPanel, DevPanelConfig, OpenInEditor, ToolDefinition, defaultOpenInEditor, getRegisteredTools, injectBaseStyles, registerTool, useDevPanelConfig };
51
+ export { type ComponentGraph, type ComponentGraphEdge, type ComponentGraphNode, DevPanel, DevPanelConfig, OpenInEditor, ToolDefinition, defaultOpenInEditor, getRegisteredTools, registerTool, useDevPanelConfig };
package/dist/index.d.ts CHANGED
@@ -3,8 +3,9 @@ import { b as DevPanelConfig, T as ToolDefinition, O as OpenInEditor, R as Resol
3
3
  export { D as DEFAULT_GRAPH_ENDPOINT, a as DEFAULT_OPEN_ENDPOINT, c as DevPanelTheme, E as EditorType, S as SourceLocation, d as ToolPanelProps, e as createServerOpenInEditor, s as serverOpenInEditor } from './server-open-B4FK0jQF.js';
4
4
 
5
5
  /**
6
- * The single component a host mounts (once, near the app root). Renders the floating launcher,
7
- * the active tool's panel, and every tool's always-on overlay — all gated by `enabled`.
6
+ * The single component a host mounts (once, near the app root, inside its MUI ThemeProvider).
7
+ * Renders the floating launcher, the active tool's panel, and every tool's always-on overlay —
8
+ * all gated by `enabled`.
8
9
  *
9
10
  * <DevPanel enabled={isInternalUser} getRoute={() => pathname} openInEditor={...} />
10
11
  */
@@ -21,9 +22,6 @@ declare function getRegisteredTools(): ToolDefinition[];
21
22
  declare const defaultOpenInEditor: OpenInEditor;
22
23
  declare function useDevPanelConfig(): ResolvedDevPanelConfig;
23
24
 
24
- /** Inject the stylesheet once (idempotent, SSR-safe). */
25
- declare function injectBaseStyles(): void;
26
-
27
25
  /** Pure data types for the component graph — shared by the CLI generator and the React tool. */
28
26
  type GraphNodeType = 'component' | 'route';
29
27
  interface ComponentGraphNode {
@@ -50,4 +48,4 @@ interface ComponentGraph {
50
48
  edges: ComponentGraphEdge[];
51
49
  }
52
50
 
53
- export { type ComponentGraph, type ComponentGraphEdge, type ComponentGraphNode, DevPanel, DevPanelConfig, OpenInEditor, ToolDefinition, defaultOpenInEditor, getRegisteredTools, injectBaseStyles, registerTool, useDevPanelConfig };
51
+ export { type ComponentGraph, type ComponentGraphEdge, type ComponentGraphNode, DevPanel, DevPanelConfig, OpenInEditor, ToolDefinition, defaultOpenInEditor, getRegisteredTools, registerTool, useDevPanelConfig };