@dotcms/react 1.0.2-next.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/react",
3
- "version": "1.0.2-next.1",
3
+ "version": "1.0.2-next.2",
4
4
  "peerDependencies": {
5
5
  "react": ">=18",
6
6
  "react-dom": ">=18"
@@ -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>;