@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 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.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 { BlockEditorContent } from '@dotcms/types';
3
2
  /**
4
3
  * Represents a Custom Renderer used by the Block Editor Component
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BlockEditorNode } from '@dotcms/types';
3
2
  interface CodeBlockProps {
4
3
  node: BlockEditorNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ListItemProps {
3
2
  children: React.ReactNode;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BlockEditorMark, BlockEditorNode } from '@dotcms/types';
3
2
  interface MarkProps extends BlockEditorMark {
4
3
  children: React.ReactNode;
@@ -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,3 @@
1
- /// <reference types="react" />
2
1
  import { DotCMSBasicContentlet, DotCMSPageAsset, DotCMSPageRendererMode } from '@dotcms/types';
3
2
  export interface DotCMSLayoutBodyProps<TContentlet extends DotCMSBasicContentlet = DotCMSBasicContentlet> {
4
3
  page: DotCMSPageAsset;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UVE_MODE } from '@dotcms/types';
3
2
  /**
4
3
  * Props for the DotCMSShow component.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DotCMSBasicContentlet } from '@dotcms/types';
3
2
  /**
4
3
  * @internal
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DotCMSBasicContentlet, DotCMSPageAsset, DotCMSPageRendererMode } from '@dotcms/types';
3
2
  /**
4
3
  * @internal
@@ -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 Partial<Pick<import("@dotcms/types").DotCMSPageResponse, "pageAsset" | "content">>>(pageResponse: DotCMSComposedPageResponse<T>) => DotCMSComposedPageResponse<T>;
90
+ export declare const useEditableDotCMSPage: <T extends DotCMSExtendedPageResponse>(pageResponse: DotCMSComposedPageResponse<T>) => DotCMSComposedPageResponse<T>;