@cmssy/react 11.1.1 → 11.2.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 +9 -1
- package/dist/client.js +9 -1
- package/package.json +2 -2
package/dist/client.cjs
CHANGED
|
@@ -870,8 +870,16 @@ function CmssyLazyLayout({ load, ...props }) {
|
|
|
870
870
|
active = false;
|
|
871
871
|
};
|
|
872
872
|
}, [load]);
|
|
873
|
+
const resolvedCount = props.resolvedContent ? Object.keys(props.resolvedContent).length : 0;
|
|
873
874
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
874
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
875
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
876
|
+
"div",
|
|
877
|
+
{
|
|
878
|
+
"data-cmssy-layout-slot": props.position,
|
|
879
|
+
"data-cmssy-editor-content": resolvedCount,
|
|
880
|
+
hidden: true
|
|
881
|
+
}
|
|
882
|
+
),
|
|
875
883
|
blocks ? /* @__PURE__ */ jsxRuntime.jsx(CmssyEditableLayout, { ...props, blocks }) : null
|
|
876
884
|
] });
|
|
877
885
|
}
|
package/dist/client.js
CHANGED
|
@@ -868,8 +868,16 @@ function CmssyLazyLayout({ load, ...props }) {
|
|
|
868
868
|
active = false;
|
|
869
869
|
};
|
|
870
870
|
}, [load]);
|
|
871
|
+
const resolvedCount = props.resolvedContent ? Object.keys(props.resolvedContent).length : 0;
|
|
871
872
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
872
|
-
/* @__PURE__ */ jsx(
|
|
873
|
+
/* @__PURE__ */ jsx(
|
|
874
|
+
"div",
|
|
875
|
+
{
|
|
876
|
+
"data-cmssy-layout-slot": props.position,
|
|
877
|
+
"data-cmssy-editor-content": resolvedCount,
|
|
878
|
+
hidden: true
|
|
879
|
+
}
|
|
880
|
+
),
|
|
873
881
|
blocks ? /* @__PURE__ */ jsx(CmssyEditableLayout, { ...props, blocks }) : null
|
|
874
882
|
] });
|
|
875
883
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/react",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "React blocks, renderers, data client and editor bridge for cmssy headless sites",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@cmssy/types": "0.32.0",
|
|
75
|
-
"@cmssy/core": "11.
|
|
75
|
+
"@cmssy/core": "11.2.0"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "tsup",
|