@lax-wp/editor 0.3.3 → 0.3.4

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.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Detects dark mode from the `dark` class on <html>.
3
+ *
4
+ * This mirrors the lax-wp-design-system pattern: the consumer (lax-web-portal)
5
+ * sets `document.documentElement.classList.add('dark')` via its ThemeContext,
6
+ * and both the design-system and the editor react to it automatically.
7
+ *
8
+ * No prop needs to be passed by the consumer — the DOM class is the contract.
9
+ */
10
+ export declare const useIsDarkMode: () => boolean;
package/dist/index.d.ts CHANGED
@@ -3,3 +3,6 @@ import "./utils/svgIconRegistry";
3
3
  export type { EditorConfig, AIAutocompletionConfig } from "./config/EditorConfig";
4
4
  export type { EditorProps } from "./components/Editor";
5
5
  export { default as Editor } from "./components/Editor";
6
+ export { EditorProvider } from "./providers/EditorProvider";
7
+ export { useEditorProvider } from "./providers/EditorProviderContext";
8
+ export type { EditorProviderConfig } from "./providers/EditorProviderContext";