@dotcms/react 1.2.1-next.1 → 1.2.1-next.3
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/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { createContext, useContext, useState, useEffect, useLayoutEffect, useSyncExternalStore, useRef, useMemo, useReducer, useCallback } from 'react';
|
|
3
3
|
import { UVE_MODE, UVEEventType, DotCMSUVEAction, DotCMSEntityState } from '@dotcms/types';
|
|
4
|
-
import { getUVEState, isAnalyticsActive, initUVE, updateNavigation, createUVESubscription, sendMessageToUVE } from '@dotcms/uve';
|
|
4
|
+
import { getUVEState, isAnalyticsActive, initUVE, updateNavigation, createUVESubscription, sendMessageToUVE, registerStyleEditorSchemas } from '@dotcms/uve';
|
|
5
5
|
import { DEVELOPMENT_MODE, EMPTY_CONTAINER_STYLE_REACT, getDotContentletAttributes, getDotAnalyticsAttributes, CUSTOM_NO_COMPONENT, getContainersData, getContentletsInContainer, getDotContainerAttributes, getColumnPositionClasses, combineClasses, __DEFAULT_TINYMCE_CONFIG__, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__, __TINYMCE_PATH_ON_DOTCMS__, isValidBlocks } from '@dotcms/uve/internal';
|
|
6
6
|
import { Editor } from '@tinymce/tinymce-react';
|
|
7
7
|
import { __DOTCMS_UVE_EVENT__, BlockEditorDefaultBlocks } from '@dotcms/types/internal';
|
|
@@ -7630,4 +7630,15 @@ const useAISearch = ({
|
|
|
7630
7630
|
};
|
|
7631
7631
|
};
|
|
7632
7632
|
|
|
7633
|
-
|
|
7633
|
+
/**
|
|
7634
|
+
* Hook to register style editor forms with the UVE editor.
|
|
7635
|
+
* @param forms - Array of style editor form schemas to register
|
|
7636
|
+
* @returns void
|
|
7637
|
+
*/
|
|
7638
|
+
const useStyleEditorSchemas = styleEditorForms => {
|
|
7639
|
+
useEffect(() => {
|
|
7640
|
+
registerStyleEditorSchemas(styleEditorForms);
|
|
7641
|
+
}, [styleEditorForms]);
|
|
7642
|
+
};
|
|
7643
|
+
|
|
7644
|
+
export { DotCMSBlockEditorRenderer, DotCMSEditableText, DotCMSLayoutBody, DotCMSShow, useAISearch, useDotCMSShowWhen, useEditableDotCMSPage, useStyleEditorSchemas };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/react",
|
|
3
|
-
"version": "1.2.1-next.
|
|
3
|
+
"version": "1.2.1-next.3",
|
|
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.
|
|
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.
|
|
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';
|
|
@@ -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;
|
|
File without changes
|