@dotcms/react
Advanced tools
| export * from "./src/index"; |
| import { StyleEditorFormSchema } from '@dotcms/uve'; | ||
| /** | ||
| * Hook to register style editor forms with the UVE editor. | ||
| * @param forms - Array of style editor form schemas to register | ||
| * @returns void | ||
| */ | ||
| export declare const useStyleEditorSchemas: (styleEditorForms: StyleEditorFormSchema[]) => void; |
+4
-4
| { | ||
| "name": "@dotcms/react", | ||
| "version": "1.2.1", | ||
| "version": "1.2.2-next.1", | ||
| "peerDependencies": { | ||
@@ -34,3 +34,3 @@ "react": ">=18", | ||
| "import": "./index.esm.js", | ||
| "types": "./index.esm.d.ts" | ||
| "types": "./index.d.ts" | ||
| } | ||
@@ -54,3 +54,3 @@ }, | ||
| "main": "./index.esm.js", | ||
| "types": "./index.esm.d.ts" | ||
| } | ||
| "types": "./index.d.ts" | ||
| } |
+1
-0
@@ -9,2 +9,3 @@ export { DotCMSLayoutBody } from './lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody'; | ||
| export { useAISearch } from './lib/next/hooks/useAISearch'; | ||
| export { useStyleEditorSchemas } from './lib/next/hooks/useStyleEditorSchemas'; | ||
| export type { DotCMSAISearchValue, DotCMSAISearchProps } from './lib/next/shared/types'; |
| import { DotCMSBasicContentlet } from '@dotcms/types'; | ||
| /** | ||
| * CSS class name for contentlet elements | ||
| */ | ||
| export declare const CONTENTLET_CLASS = "dotcms-contentlet"; | ||
| /** | ||
| * @internal | ||
@@ -4,0 +8,0 @@ * |
| export * from "./src/index"; |
| /** | ||
| * @internal | ||
| * React hook that checks whether DotCMS Analytics is active. | ||
| * | ||
| * Uses useSyncExternalStore to subscribe to analytics state changes via custom events: | ||
| * - `dotcms:analytics:ready`: Fired when Analytics initializes | ||
| * - `dotcms:analytics:cleanup`: Fired on page unload | ||
| * | ||
| * Components automatically re-render when analytics state changes. Works regardless | ||
| * of initialization order and returns false during SSR. | ||
| * | ||
| * @returns {boolean} True if analytics is active, false otherwise | ||
| * | ||
| * @example | ||
| * ```tsx | ||
| * function Contentlet({ item }) { | ||
| * const isAnalyticsActive = useIsAnalyticsActive() | ||
| * | ||
| * const attrs = isAnalyticsActive | ||
| * ? { 'data-dot-analytics-id': item.id } | ||
| * : {} | ||
| * | ||
| * return <div {...attrs}>{item.title}</div> | ||
| * } | ||
| * ``` | ||
| */ | ||
| export declare const useIsAnalyticsActive: () => boolean; |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
297789
-5.32%7240
-6.23%1
Infinity%