@dotcms/react 1.2.6-next.1 → 1.2.6-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 +9 -9
- package/index.server.esm.js +3 -8
- package/{libs/sdk/react/src/lib → lib}/next/components/Column/Column.esm.js +0 -2
- package/{libs/sdk/react/src/lib → lib}/next/components/Column/Column.module.css.esm.js +1 -1
- package/{libs/sdk/react/src/lib → lib}/next/components/Container/Container.esm.js +0 -4
- package/{libs/sdk/react/src/lib → lib}/next/components/Container/ContainerFallbacks.esm.js +0 -1
- package/{libs/sdk/react/src/lib → lib}/next/components/Contentlet/Contentlet.esm.js +1 -2
- package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/BlockEditorBlock.esm.js +0 -3
- package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/GridBlock.esm.js +0 -3
- package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/Table.esm.js +0 -2
- package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/Texts.esm.js +0 -1
- package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/Video.esm.js +0 -1
- package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSEditableText/DotCMSEditableText.esm.js +0 -9
- package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSEditableText/utils.esm.js +0 -1
- package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSLayoutBody/DotCMSLayoutBody.esm.js +0 -2
- package/{libs/sdk/react/src/lib → lib}/next/components/FallbackComponent/FallbackComponent.esm.js +0 -1
- package/{libs/sdk/react/src/lib → lib}/next/components/Row/Row.esm.js +0 -2
- package/{libs/sdk/react/src/lib → lib}/next/components/Row/Row.module.css.esm.js +1 -1
- package/{libs/sdk/react/src/lib → lib}/next/hooks/useAISearch.esm.js +0 -12
- package/{libs/sdk/react/src/lib → lib}/next/hooks/useCheckVisibleContent.esm.js +0 -2
- package/{libs/sdk/react/src/lib → lib}/next/hooks/useDotCMSShowWhen.esm.js +0 -2
- package/{libs/sdk/react/src/lib → lib}/next/hooks/useEditableDotCMSPage.esm.js +0 -2
- package/{libs/sdk/react/src/lib → lib}/next/hooks/useIsDevMode.esm.js +0 -2
- package/{libs/sdk/react/src/lib → lib}/next/utils/buildSlots.esm.js +3 -10
- package/package.json +1 -1
- package/src/index.d.ts +3 -2
- package/src/index.server.d.ts +2 -7
- package/src/lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody.d.ts +1 -1
- package/src/lib/next/components/DotCMSLayoutBody/DotCMSPageProvider.d.ts +1 -1
- package/src/lib/next/contexts/DotCMSPageContext.d.ts +2 -2
- package/src/lib/next/utils/buildSlots.d.ts +2 -2
- package/_virtual/_commonjsHelpers.esm.js +0 -3
- package/_virtual/make-built-in.esm.js +0 -3
- package/_virtual/new-promise-capability.esm.js +0 -3
- package/_virtual/object-define-properties.esm.js +0 -3
- package/_virtual/object-define-property.esm.js +0 -3
- package/_virtual/object-get-own-property-descriptor.esm.js +0 -3
- package/_virtual/object-get-own-property-names.esm.js +0 -3
- package/_virtual/object-get-own-property-symbols.esm.js +0 -3
- package/_virtual/object-property-is-enumerable.esm.js +0 -3
- package/_virtual/shared-store.esm.js +0 -3
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/Code.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/DotContent.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/Image.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/Lists.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSBlockEditorRenderer/components/blocks/NoComponentProvided.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSLayoutBody/DotCMSPageProvider.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSLayoutBody/components/ErrorMessage.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSShow/DotCMSShow.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/contexts/DotCMSPageContext.esm.js +0 -0
- /package/{libs/sdk/react/src/lib → lib}/next/hooks/useStyleEditorSchemas.esm.js +0 -0
package/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DotCMSLayoutBody } from './
|
|
2
|
-
export { DotCMSShow } from './
|
|
3
|
-
export { useDotCMSShowWhen } from './
|
|
4
|
-
export { useEditableDotCMSPage } from './
|
|
5
|
-
export { DotCMSEditableText } from './
|
|
6
|
-
export { DotCMSBlockEditorRenderer } from './
|
|
7
|
-
export { useAISearch } from './
|
|
8
|
-
export { useStyleEditorSchemas } from './
|
|
9
|
-
export { buildSlots } from './
|
|
1
|
+
export { DotCMSLayoutBody } from './lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody.esm.js';
|
|
2
|
+
export { DotCMSShow } from './lib/next/components/DotCMSShow/DotCMSShow.esm.js';
|
|
3
|
+
export { useDotCMSShowWhen } from './lib/next/hooks/useDotCMSShowWhen.esm.js';
|
|
4
|
+
export { useEditableDotCMSPage } from './lib/next/hooks/useEditableDotCMSPage.esm.js';
|
|
5
|
+
export { DotCMSEditableText } from './lib/next/components/DotCMSEditableText/DotCMSEditableText.esm.js';
|
|
6
|
+
export { DotCMSBlockEditorRenderer } from './lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer.esm.js';
|
|
7
|
+
export { useAISearch } from './lib/next/hooks/useAISearch.esm.js';
|
|
8
|
+
export { useStyleEditorSchemas } from './lib/next/hooks/useStyleEditorSchemas.esm.js';
|
|
9
|
+
export { buildSlots } from './lib/next/utils/buildSlots.esm.js';
|
package/index.server.esm.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export { DotCMSLayoutBody } from './
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { useEditableDotCMSPage } from './libs/sdk/react/src/lib/next/hooks/useEditableDotCMSPage.esm.js';
|
|
5
|
-
export { DotCMSBlockEditorRenderer } from './libs/sdk/react/src/lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer.esm.js';
|
|
6
|
-
export { useAISearch } from './libs/sdk/react/src/lib/next/hooks/useAISearch.esm.js';
|
|
7
|
-
export { useStyleEditorSchemas } from './libs/sdk/react/src/lib/next/hooks/useStyleEditorSchemas.esm.js';
|
|
8
|
-
export { buildSlots } from './libs/sdk/react/src/lib/next/utils/buildSlots.esm.js';
|
|
1
|
+
export { DotCMSLayoutBody } from './lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody.esm.js';
|
|
2
|
+
export { buildSlots } from './lib/next/utils/buildSlots.esm.js';
|
|
3
|
+
export { DotCMSBlockEditorRenderer } from './lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer.esm.js';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../../node_modules/core-js/modules/esnext.iterator.constructor.esm.js';
|
|
2
|
-
import '../../../../../../../../node_modules/core-js/modules/esnext.iterator.map.esm.js';
|
|
3
1
|
import { jsx } from 'react/jsx-runtime';
|
|
4
2
|
import { getColumnPositionClasses, combineClasses } from '@dotcms/uve/internal';
|
|
5
3
|
import styles from './Column.module.css.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import styleInject from '
|
|
1
|
+
import styleInject from '../../../../_virtual/_style-inject.esm.js';
|
|
2
2
|
|
|
3
3
|
var css = "._col-start-1_1myqa_1 {\n grid-column-start: 1;\n}\n\n._col-start-2_1myqa_5 {\n grid-column-start: 2;\n}\n\n._col-start-3_1myqa_9 {\n grid-column-start: 3;\n}\n\n._col-start-4_1myqa_13 {\n grid-column-start: 4;\n}\n\n._col-start-5_1myqa_17 {\n grid-column-start: 5;\n}\n\n._col-start-6_1myqa_21 {\n grid-column-start: 6;\n}\n\n._col-start-7_1myqa_25 {\n grid-column-start: 7;\n}\n\n._col-start-8_1myqa_29 {\n grid-column-start: 8;\n}\n\n._col-start-9_1myqa_33 {\n grid-column-start: 9;\n}\n\n._col-start-10_1myqa_37 {\n grid-column-start: 10;\n}\n\n._col-start-11_1myqa_41 {\n grid-column-start: 11;\n}\n\n._col-start-12_1myqa_45 {\n grid-column-start: 12;\n}\n\n._col-end-1_1myqa_49 {\n grid-column-end: 1;\n}\n\n._col-end-2_1myqa_53 {\n grid-column-end: 2;\n}\n\n._col-end-3_1myqa_57 {\n grid-column-end: 3;\n}\n\n._col-end-4_1myqa_61 {\n grid-column-end: 4;\n}\n\n._col-end-5_1myqa_65 {\n grid-column-end: 5;\n}\n\n._col-end-6_1myqa_69 {\n grid-column-end: 6;\n}\n\n._col-end-7_1myqa_73 {\n grid-column-end: 7;\n}\n\n._col-end-8_1myqa_77 {\n grid-column-end: 8;\n}\n\n._col-end-9_1myqa_81 {\n grid-column-end: 9;\n}\n\n._col-end-10_1myqa_85 {\n grid-column-end: 10;\n}\n\n._col-end-11_1myqa_89 {\n grid-column-end: 11;\n}\n\n._col-end-12_1myqa_93 {\n grid-column-end: 12;\n}\n\n._col-end-13_1myqa_97 {\n grid-column-end: 13;\n}\n";
|
|
4
4
|
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import '../../../../../../../../node_modules/core-js/modules/es.json.stringify.esm.js';
|
|
3
|
-
import '../../../../../../../../node_modules/core-js/modules/es.object.assign.esm.js';
|
|
4
|
-
import '../../../../../../../../node_modules/core-js/modules/esnext.iterator.constructor.esm.js';
|
|
5
|
-
import '../../../../../../../../node_modules/core-js/modules/esnext.iterator.map.esm.js';
|
|
6
2
|
import { jsx } from 'react/jsx-runtime';
|
|
7
3
|
import { useContext, useMemo } from 'react';
|
|
8
4
|
import { getContainersData, getContentletsInContainer, getDotContainerAttributes } from '@dotcms/uve/internal';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import '../../../../../../../../node_modules/core-js/modules/es.object.assign.esm.js';
|
|
3
2
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
4
3
|
import { useRef, useMemo, useContext } from 'react';
|
|
5
4
|
import { getDotContentletAttributes, CUSTOM_NO_COMPONENT } from '@dotcms/uve/internal';
|
|
@@ -68,7 +67,7 @@ function CustomComponent({
|
|
|
68
67
|
userComponents,
|
|
69
68
|
slots
|
|
70
69
|
} = useContext(DotCMSPageContext);
|
|
71
|
-
const slotNode =
|
|
70
|
+
const slotNode = contentlet != null && contentlet.identifier ? slots == null ? void 0 : slots[contentlet.identifier] : undefined;
|
|
72
71
|
if (slotNode !== undefined) {
|
|
73
72
|
return jsx(Fragment, {
|
|
74
73
|
children: slotNode
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../../../node_modules/core-js/modules/es.object.assign.esm.js';
|
|
2
|
-
import '../../../../../../../../../node_modules/core-js/modules/esnext.iterator.constructor.esm.js';
|
|
3
|
-
import '../../../../../../../../../node_modules/core-js/modules/esnext.iterator.map.esm.js';
|
|
4
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
2
|
import { BlockEditorDefaultBlocks } from '@dotcms/types/internal';
|
|
6
3
|
import { getUVEState } from '@dotcms/uve';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../../../../node_modules/core-js/modules/esnext.iterator.constructor.esm.js';
|
|
2
|
-
import '../../../../../../../../../../node_modules/core-js/modules/esnext.iterator.every.esm.js';
|
|
3
|
-
import '../../../../../../../../../../node_modules/core-js/modules/esnext.iterator.map.esm.js';
|
|
4
1
|
import { jsx } from 'react/jsx-runtime';
|
|
5
2
|
|
|
6
3
|
/**
|
package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSEditableText/DotCMSEditableText.esm.js
RENAMED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../../node_modules/core-js/modules/es.array.iterator.esm.js';
|
|
2
|
-
import '../../../../../../../../node_modules/core-js/modules/es.regexp.to-string.esm.js';
|
|
3
|
-
import '../../../../../../../../node_modules/core-js/modules/web.dom-collections.iterator.esm.js';
|
|
4
|
-
import '../../../../../../../../node_modules/core-js/modules/web.url.constructor.esm.js';
|
|
5
|
-
import '../../../../../../../../node_modules/core-js/modules/web.url.to-json.esm.js';
|
|
6
|
-
import '../../../../../../../../node_modules/core-js/modules/web.url-search-params.constructor.esm.js';
|
|
7
|
-
import '../../../../../../../../node_modules/core-js/modules/web.url-search-params.delete.esm.js';
|
|
8
|
-
import '../../../../../../../../node_modules/core-js/modules/web.url-search-params.has.esm.js';
|
|
9
|
-
import '../../../../../../../../node_modules/core-js/modules/web.url-search-params.size.esm.js';
|
|
10
1
|
import { jsx } from 'react/jsx-runtime';
|
|
11
2
|
import { Editor } from '@tinymce/tinymce-react';
|
|
12
3
|
import { useRef, useState, useEffect } from 'react';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../../node_modules/core-js/modules/es.object.assign.esm.js';
|
|
2
1
|
import { __DEFAULT_TINYMCE_CONFIG__, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ } from '@dotcms/uve/internal';
|
|
3
2
|
|
|
4
3
|
const DEFAULT_TINYMCE_CONFIG = Object.assign({}, __DEFAULT_TINYMCE_CONFIG__, {
|
package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSLayoutBody/DotCMSLayoutBody.esm.js
RENAMED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../../node_modules/core-js/modules/esnext.iterator.constructor.esm.js';
|
|
2
|
-
import '../../../../../../../../node_modules/core-js/modules/esnext.iterator.map.esm.js';
|
|
3
1
|
import { jsx } from 'react/jsx-runtime';
|
|
4
2
|
import { ErrorMessage } from './components/ErrorMessage.esm.js';
|
|
5
3
|
import { DotCMSPageProvider } from './DotCMSPageProvider.esm.js';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../../node_modules/core-js/modules/esnext.iterator.constructor.esm.js';
|
|
2
|
-
import '../../../../../../../../node_modules/core-js/modules/esnext.iterator.map.esm.js';
|
|
3
1
|
import { jsx } from 'react/jsx-runtime';
|
|
4
2
|
import { combineClasses } from '@dotcms/uve/internal';
|
|
5
3
|
import styles from './Row.module.css.esm.js';
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../node_modules/core-js/modules/es.array.iterator.esm.js';
|
|
2
|
-
import '../../../../../../../node_modules/core-js/modules/es.object.assign.esm.js';
|
|
3
|
-
import '../../../../../../../node_modules/core-js/modules/es.promise.constructor.esm.js';
|
|
4
|
-
import '../../../../../../../node_modules/core-js/modules/es.promise.all.esm.js';
|
|
5
|
-
import '../../../../../../../node_modules/core-js/modules/es.promise.catch.esm.js';
|
|
6
|
-
import '../../../../../../../node_modules/core-js/modules/es.promise.race.esm.js';
|
|
7
|
-
import '../../../../../../../node_modules/core-js/modules/es.promise.reject.esm.js';
|
|
8
|
-
import '../../../../../../../node_modules/core-js/modules/es.promise.resolve.esm.js';
|
|
9
|
-
import '../../../../../../../node_modules/core-js/modules/es.regexp.exec.esm.js';
|
|
10
|
-
import '../../../../../../../node_modules/core-js/modules/es.string.search.esm.js';
|
|
11
|
-
import '../../../../../../../node_modules/core-js/modules/es.string.trim.esm.js';
|
|
12
|
-
import '../../../../../../../node_modules/core-js/modules/web.dom-collections.iterator.esm.js';
|
|
13
1
|
import { useReducer, useRef, useEffect, useCallback } from 'react';
|
|
14
2
|
import { DotCMSEntityState } from '@dotcms/types';
|
|
15
3
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../node_modules/core-js/modules/es.array.iterator.esm.js';
|
|
2
|
-
import '../../../../../../../node_modules/core-js/modules/web.dom-collections.iterator.esm.js';
|
|
3
1
|
import { useState, useEffect } from 'react';
|
|
4
2
|
import { getUVEState } from '@dotcms/uve';
|
|
5
3
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../node_modules/core-js/modules/es.array.iterator.esm.js';
|
|
2
|
-
import '../../../../../../../node_modules/core-js/modules/web.dom-collections.iterator.esm.js';
|
|
3
1
|
import { useState, useEffect } from 'react';
|
|
4
2
|
import { UVEEventType } from '@dotcms/types';
|
|
5
3
|
import { getUVEState, initUVE, updateNavigation, createUVESubscription } from '@dotcms/uve';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../node_modules/core-js/modules/es.array.iterator.esm.js';
|
|
2
|
-
import '../../../../../../../node_modules/core-js/modules/web.dom-collections.iterator.esm.js';
|
|
3
1
|
import { useContext, useState, useEffect } from 'react';
|
|
4
2
|
import { UVE_MODE } from '@dotcms/types';
|
|
5
3
|
import { getUVEState } from '@dotcms/uve';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import '../../../../../../../node_modules/core-js/modules/es.array.iterator.esm.js';
|
|
2
|
-
import '../../../../../../../node_modules/core-js/modules/es.object.assign.esm.js';
|
|
3
|
-
import '../../../../../../../node_modules/core-js/modules/web.dom-collections.iterator.esm.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
2
|
* Builds a slots map of pre-rendered server component nodes keyed by contentlet identifier.
|
|
8
3
|
*
|
|
@@ -24,9 +19,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
24
19
|
* <DotCMSLayoutBody page={pageAsset} components={pageComponents} slots={slots} />
|
|
25
20
|
* ```
|
|
26
21
|
*/
|
|
27
|
-
function buildSlots(containers,
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
|
-
serverComponents) {
|
|
22
|
+
function buildSlots(containers, serverComponents) {
|
|
30
23
|
const slots = {};
|
|
31
24
|
for (const {
|
|
32
25
|
contentlets
|
|
@@ -34,8 +27,8 @@ serverComponents) {
|
|
|
34
27
|
for (const contentletList of Object.values(contentlets)) {
|
|
35
28
|
for (const contentlet of contentletList) {
|
|
36
29
|
const Component = serverComponents[contentlet.contentType];
|
|
37
|
-
if (Component) {
|
|
38
|
-
slots[contentlet.identifier] =
|
|
30
|
+
if (Component && contentlet.identifier) {
|
|
31
|
+
slots[contentlet.identifier] = Component(contentlet);
|
|
39
32
|
}
|
|
40
33
|
}
|
|
41
34
|
}
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ export { DotCMSShow } from './lib/next/components/DotCMSShow/DotCMSShow';
|
|
|
3
3
|
export { useDotCMSShowWhen } from './lib/next/hooks/useDotCMSShowWhen';
|
|
4
4
|
export { useEditableDotCMSPage } from './lib/next/hooks/useEditableDotCMSPage';
|
|
5
5
|
export { DotCMSEditableText } from './lib/next/components/DotCMSEditableText/DotCMSEditableText';
|
|
6
|
-
export { DotCMSBlockEditorRenderer,
|
|
7
|
-
export {
|
|
6
|
+
export { DotCMSBlockEditorRenderer, CustomRenderer } from './lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer';
|
|
7
|
+
export type { BlockEditorRendererProps, CustomRendererProps } from './lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer';
|
|
8
|
+
export type { DotCMSLayoutBodyProps } from './lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody';
|
|
8
9
|
export { useAISearch } from './lib/next/hooks/useAISearch';
|
|
9
10
|
export { useStyleEditorSchemas } from './lib/next/hooks/useStyleEditorSchemas';
|
|
10
11
|
export type { DotCMSAISearchValue, DotCMSAISearchProps } from './lib/next/shared/types';
|
package/src/index.server.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export { DotCMSLayoutBody } from './lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { useEditableDotCMSPage } from './lib/next/hooks/useEditableDotCMSPage';
|
|
2
|
+
export type { DotCMSLayoutBodyProps } from './lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody';
|
|
3
|
+
export { buildSlots } from './lib/next/utils/buildSlots';
|
|
5
4
|
export { DotCMSBlockEditorRenderer, CustomRenderer } from './lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer';
|
|
6
5
|
export type { BlockEditorRendererProps, CustomRendererProps } from './lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer';
|
|
7
|
-
export type { DotCMSLayoutBodyProps } from './lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody';
|
|
8
|
-
export { useAISearch } from './lib/next/hooks/useAISearch';
|
|
9
|
-
export { useStyleEditorSchemas } from './lib/next/hooks/useStyleEditorSchemas';
|
|
10
6
|
export type { DotCMSAISearchValue, DotCMSAISearchProps } from './lib/next/shared/types';
|
|
11
|
-
export { buildSlots } from './lib/next/utils/buildSlots';
|
|
@@ -22,7 +22,7 @@ export interface DotCMSLayoutBodyProps<TContentlet extends DotCMSBasicContentlet
|
|
|
22
22
|
* <DotCMSLayoutBody page={pageAsset} components={pageComponents} slots={slots} />
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
slots?: Record<string, ReactNode
|
|
25
|
+
slots?: Record<string, ReactNode | Promise<ReactNode>>;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* DotCMSLayoutBody component renders the layout body for a DotCMS page.
|
|
@@ -4,7 +4,7 @@ interface DotCMSPageProviderProps {
|
|
|
4
4
|
page: DotCMSPageAsset;
|
|
5
5
|
components: Record<string, React.ComponentType<any>>;
|
|
6
6
|
mode: DotCMSPageRendererMode;
|
|
7
|
-
slots: Record<string, ReactNode
|
|
7
|
+
slots: Record<string, ReactNode | Promise<ReactNode>>;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -8,13 +8,13 @@ import { DotCMSBasicContentlet, DotCMSPageAsset, DotCMSPageRendererMode } from '
|
|
|
8
8
|
* @property {DotCMSPageAsset} pageAsset - The DotCMS page asset
|
|
9
9
|
* @property {RendererMode} mode - The renderer mode
|
|
10
10
|
* @property {Record<string, React.ComponentType<DotCMSContentlet>>} userComponents - The user components
|
|
11
|
-
* @property {Record<string, ReactNode
|
|
11
|
+
* @property {Record<string, ReactNode | Promise<ReactNode>>} [slots] - Pre-rendered server component nodes keyed by contentlet identifier
|
|
12
12
|
*/
|
|
13
13
|
export interface DotCMSPageContextProps {
|
|
14
14
|
pageAsset: DotCMSPageAsset;
|
|
15
15
|
mode: DotCMSPageRendererMode;
|
|
16
16
|
userComponents: Record<string, React.ComponentType<DotCMSBasicContentlet>>;
|
|
17
|
-
slots?: Record<string, ReactNode
|
|
17
|
+
slots?: Record<string, ReactNode | Promise<ReactNode>>;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* The `PageContext` is a React context that provides access to the DotCMS page context.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { DotCMSPageAssetContainers } from '@dotcms/types';
|
|
2
|
+
import { DotCMSBasicContentlet, DotCMSPageAssetContainers } from '@dotcms/types';
|
|
3
3
|
/**
|
|
4
4
|
* Builds a slots map of pre-rendered server component nodes keyed by contentlet identifier.
|
|
5
5
|
*
|
|
@@ -21,4 +21,4 @@ import { DotCMSPageAssetContainers } from '@dotcms/types';
|
|
|
21
21
|
* <DotCMSLayoutBody page={pageAsset} components={pageComponents} slots={slots} />
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export declare function buildSlots(containers: DotCMSPageAssetContainers, serverComponents: Record<string,
|
|
24
|
+
export declare function buildSlots(containers: DotCMSPageAssetContainers, serverComponents: Record<string, (props: DotCMSBasicContentlet) => ReactNode | Promise<ReactNode>>): Record<string, ReactNode | Promise<ReactNode>>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{libs/sdk/react/src/lib → lib}/next/components/DotCMSLayoutBody/DotCMSPageProvider.esm.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|