@dotcms/react 1.0.0 → 1.0.2-next.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/README.md +1 -0
- package/package.json +5 -5
- package/src/lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer.d.ts +0 -1
- package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Code.d.ts +0 -1
- package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Lists.d.ts +0 -1
- package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Texts.d.ts +0 -1
- package/src/lib/next/components/DotCMSEditableText/DotCMSEditableText.d.ts +1 -2
- package/src/lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody.d.ts +0 -1
- package/src/lib/next/components/DotCMSShow/DotCMSShow.d.ts +0 -1
- package/src/lib/next/components/FallbackComponent/FallbackComponent.d.ts +0 -1
- package/src/lib/next/contexts/DotCMSPageContext.d.ts +0 -1
- package/src/lib/next/hooks/useEditableDotCMSPage.d.ts +2 -2
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ The `@dotcms/react` SDK is the DotCMS official React library. It empowers React
|
|
|
25
25
|
- [Debugging Tips](#debugging-tips)
|
|
26
26
|
- [Version Compatibility](#version-compatibility)
|
|
27
27
|
- [Still Having Issues?](#still-having-issues)
|
|
28
|
+
- [Migration from Alpha to 1.0.X](./MIGRATION.md)
|
|
28
29
|
- [dotCMS Support](#dotcms-support)
|
|
29
30
|
- [How To Contribute](#how-to-contribute)
|
|
30
31
|
- [Licensing Information](#licensing-information)
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2-next.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=18",
|
|
6
|
-
"react-dom": ">=18"
|
|
7
|
-
"@dotcms/uve": "^1.0.0",
|
|
8
|
-
"@dotcms/client": "^1.0.0"
|
|
6
|
+
"react-dom": ">=18"
|
|
9
7
|
},
|
|
10
8
|
"dependencies": {
|
|
9
|
+
"@dotcms/uve": "latest",
|
|
10
|
+
"@dotcms/client": "latest",
|
|
11
11
|
"@tinymce/tinymce-react": "6.2.1"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
"type": "module",
|
|
52
52
|
"main": "./index.esm.js",
|
|
53
53
|
"types": "./index.esm.d.ts"
|
|
54
|
-
}
|
|
54
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DotCMSBasicContentlet } from '@dotcms/types';
|
|
3
2
|
import { DotCMSEditableTextProps } from './utils';
|
|
4
3
|
/**
|
|
@@ -28,5 +27,5 @@ import { DotCMSEditableTextProps } from './utils';
|
|
|
28
27
|
* ```
|
|
29
28
|
* @returns {JSX.Element} A component to edit content inline
|
|
30
29
|
*/
|
|
31
|
-
export declare function DotCMSEditableText<T extends DotCMSBasicContentlet>({ mode, format, contentlet, fieldName }: Readonly<DotCMSEditableTextProps<T>>): JSX.Element;
|
|
30
|
+
export declare function DotCMSEditableText<T extends DotCMSBasicContentlet>({ mode, format, contentlet, fieldName }: Readonly<DotCMSEditableTextProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
32
31
|
export default DotCMSEditableText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DotCMSComposedPageResponse } from '@dotcms/types';
|
|
1
|
+
import { DotCMSComposedPageResponse, DotCMSExtendedPageResponse } from '@dotcms/types';
|
|
2
2
|
/**
|
|
3
3
|
* Custom hook to manage the editable state of a DotCMS page.
|
|
4
4
|
*
|
|
@@ -87,4 +87,4 @@ import { DotCMSComposedPageResponse } from '@dotcms/types';
|
|
|
87
87
|
* @returns {DotCMSPageResponse} The updated editable page state that reflects any changes made in the UVE.
|
|
88
88
|
* The structure includes page data and any GraphQL content that was requested.
|
|
89
89
|
*/
|
|
90
|
-
export declare const useEditableDotCMSPage: <T extends
|
|
90
|
+
export declare const useEditableDotCMSPage: <T extends DotCMSExtendedPageResponse>(pageResponse: DotCMSComposedPageResponse<T>) => DotCMSComposedPageResponse<T>;
|