@dotcms/react 1.2.1 → 1.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/react",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "peerDependencies": {
5
5
  "react": ">=18",
6
6
  "react-dom": ">=18"
@@ -31,7 +31,7 @@
31
31
  "./package.json": "./package.json",
32
32
  ".": {
33
33
  "import": "./index.esm.js",
34
- "types": "./index.esm.d.ts"
34
+ "types": "./index.d.ts"
35
35
  }
36
36
  },
37
37
  "typesVersions": {
@@ -50,5 +50,5 @@
50
50
  "module": "./index.esm.js",
51
51
  "type": "module",
52
52
  "main": "./index.esm.js",
53
- "types": "./index.esm.d.ts"
53
+ "types": "./index.d.ts"
54
54
  }
package/src/index.d.ts CHANGED
@@ -6,4 +6,5 @@ export { DotCMSEditableText } from './lib/next/components/DotCMSEditableText/Dot
6
6
  export { DotCMSBlockEditorRenderer, BlockEditorRendererProps, CustomRenderer, CustomRendererProps } from './lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer';
7
7
  export { DotCMSLayoutBodyProps } from './lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody';
8
8
  export { useAISearch } from './lib/next/hooks/useAISearch';
9
+ export { useStyleEditorSchemas } from './lib/next/hooks/useStyleEditorSchemas';
9
10
  export type { DotCMSAISearchValue, DotCMSAISearchProps } from './lib/next/shared/types';
@@ -1,4 +1,8 @@
1
1
  import { DotCMSBasicContentlet } from '@dotcms/types';
2
+ /**
3
+ * CSS class name for contentlet elements
4
+ */
5
+ export declare const CONTENTLET_CLASS = "dotcms-contentlet";
2
6
  /**
3
7
  * @internal
4
8
  *
@@ -0,0 +1,7 @@
1
+ import { StyleEditorFormSchema } from '@dotcms/uve';
2
+ /**
3
+ * Hook to register style editor forms with the UVE editor.
4
+ * @param forms - Array of style editor form schemas to register
5
+ * @returns void
6
+ */
7
+ export declare const useStyleEditorSchemas: (styleEditorForms: StyleEditorFormSchema[]) => void;
@@ -1,27 +0,0 @@
1
- /**
2
- * @internal
3
- * React hook that checks whether DotCMS Analytics is active.
4
- *
5
- * Uses useSyncExternalStore to subscribe to analytics state changes via custom events:
6
- * - `dotcms:analytics:ready`: Fired when Analytics initializes
7
- * - `dotcms:analytics:cleanup`: Fired on page unload
8
- *
9
- * Components automatically re-render when analytics state changes. Works regardless
10
- * of initialization order and returns false during SSR.
11
- *
12
- * @returns {boolean} True if analytics is active, false otherwise
13
- *
14
- * @example
15
- * ```tsx
16
- * function Contentlet({ item }) {
17
- * const isAnalyticsActive = useIsAnalyticsActive()
18
- *
19
- * const attrs = isAnalyticsActive
20
- * ? { 'data-dot-analytics-id': item.id }
21
- * : {}
22
- *
23
- * return <div {...attrs}>{item.title}</div>
24
- * }
25
- * ```
26
- */
27
- export declare const useIsAnalyticsActive: () => boolean;
File without changes