@cmssy/react 6.1.0 → 7.0.0
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/dist/client.cjs +11 -9
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +11 -9
- package/package.json +2 -2
package/dist/client.cjs
CHANGED
|
@@ -601,15 +601,17 @@ function CmssyLazyEditor({ load, ...props }) {
|
|
|
601
601
|
active = false;
|
|
602
602
|
};
|
|
603
603
|
}, [load]);
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
604
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
605
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-cmssy-editor": "1", hidden: true }),
|
|
606
|
+
loaded ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
607
|
+
CmssyEditablePage,
|
|
608
|
+
{
|
|
609
|
+
...props,
|
|
610
|
+
blocks: loaded.blocks,
|
|
611
|
+
category: loaded.category
|
|
612
|
+
}
|
|
613
|
+
) : null
|
|
614
|
+
] });
|
|
613
615
|
}
|
|
614
616
|
function useLayoutPatchBridge(position, config) {
|
|
615
617
|
const [patches, setPatches] = react.useState({});
|
package/dist/client.d.cts
CHANGED
|
@@ -62,7 +62,7 @@ interface CmssyLazyEditorProps {
|
|
|
62
62
|
category?: string;
|
|
63
63
|
}>;
|
|
64
64
|
}
|
|
65
|
-
declare function CmssyLazyEditor({ load, ...props }: CmssyLazyEditorProps): react_jsx_runtime.JSX.Element
|
|
65
|
+
declare function CmssyLazyEditor({ load, ...props }: CmssyLazyEditorProps): react_jsx_runtime.JSX.Element;
|
|
66
66
|
|
|
67
67
|
interface CmssyEditableLayoutProps {
|
|
68
68
|
groups: CmssyLayoutGroup[];
|
package/dist/client.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ interface CmssyLazyEditorProps {
|
|
|
62
62
|
category?: string;
|
|
63
63
|
}>;
|
|
64
64
|
}
|
|
65
|
-
declare function CmssyLazyEditor({ load, ...props }: CmssyLazyEditorProps): react_jsx_runtime.JSX.Element
|
|
65
|
+
declare function CmssyLazyEditor({ load, ...props }: CmssyLazyEditorProps): react_jsx_runtime.JSX.Element;
|
|
66
66
|
|
|
67
67
|
interface CmssyEditableLayoutProps {
|
|
68
68
|
groups: CmssyLayoutGroup[];
|
package/dist/client.js
CHANGED
|
@@ -600,15 +600,17 @@ function CmssyLazyEditor({ load, ...props }) {
|
|
|
600
600
|
active = false;
|
|
601
601
|
};
|
|
602
602
|
}, [load]);
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
603
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
604
|
+
/* @__PURE__ */ jsx("div", { "data-cmssy-editor": "1", hidden: true }),
|
|
605
|
+
loaded ? /* @__PURE__ */ jsx(
|
|
606
|
+
CmssyEditablePage,
|
|
607
|
+
{
|
|
608
|
+
...props,
|
|
609
|
+
blocks: loaded.blocks,
|
|
610
|
+
category: loaded.category
|
|
611
|
+
}
|
|
612
|
+
) : null
|
|
613
|
+
] });
|
|
612
614
|
}
|
|
613
615
|
function useLayoutPatchBridge(position, config) {
|
|
614
616
|
const [patches, setPatches] = useState({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "React blocks, renderers, data client and editor bridge for cmssy headless sites",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@cmssy/types": "0.27.0",
|
|
60
|
-
"@cmssy/core": "
|
|
60
|
+
"@cmssy/core": "7.0.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsup",
|