@cmssy/react 10.6.1 → 10.8.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 CHANGED
@@ -870,8 +870,10 @@ function CmssyLazyLayout({ load, ...props }) {
870
870
  active = false;
871
871
  };
872
872
  }, [load]);
873
- if (!blocks) return null;
874
- return /* @__PURE__ */ jsxRuntime.jsx(CmssyEditableLayout, { ...props, blocks });
873
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
874
+ /* @__PURE__ */ jsxRuntime.jsx("div", { "data-cmssy-layout-slot": props.position, hidden: true }),
875
+ blocks ? /* @__PURE__ */ jsxRuntime.jsx(CmssyEditableLayout, { ...props, blocks }) : null
876
+ ] });
875
877
  }
876
878
 
877
879
  exports.CmssyEditableLayout = CmssyEditableLayout;
package/dist/client.d.cts CHANGED
@@ -99,6 +99,6 @@ interface CmssyLazyLayoutProps {
99
99
  blocks: BlockDefinition[];
100
100
  }>;
101
101
  }
102
- declare function CmssyLazyLayout({ load, ...props }: CmssyLazyLayoutProps): react_jsx_runtime.JSX.Element | null;
102
+ declare function CmssyLazyLayout({ load, ...props }: CmssyLazyLayoutProps): react_jsx_runtime.JSX.Element;
103
103
 
104
104
  export { CmssyEditableLayout, type CmssyEditableLayoutProps, CmssyEditablePage, type CmssyEditablePageProps, CmssyLazyEditor, type CmssyLazyEditorProps, CmssyLazyLayout, type CmssyLazyLayoutProps, type EditBridgeConfig, type EditBridgeState, type PatchMap, useEditBridge };
package/dist/client.d.ts CHANGED
@@ -99,6 +99,6 @@ interface CmssyLazyLayoutProps {
99
99
  blocks: BlockDefinition[];
100
100
  }>;
101
101
  }
102
- declare function CmssyLazyLayout({ load, ...props }: CmssyLazyLayoutProps): react_jsx_runtime.JSX.Element | null;
102
+ declare function CmssyLazyLayout({ load, ...props }: CmssyLazyLayoutProps): react_jsx_runtime.JSX.Element;
103
103
 
104
104
  export { CmssyEditableLayout, type CmssyEditableLayoutProps, CmssyEditablePage, type CmssyEditablePageProps, CmssyLazyEditor, type CmssyLazyEditorProps, CmssyLazyLayout, type CmssyLazyLayoutProps, type EditBridgeConfig, type EditBridgeState, type PatchMap, useEditBridge };
package/dist/client.js CHANGED
@@ -868,8 +868,10 @@ function CmssyLazyLayout({ load, ...props }) {
868
868
  active = false;
869
869
  };
870
870
  }, [load]);
871
- if (!blocks) return null;
872
- return /* @__PURE__ */ jsx(CmssyEditableLayout, { ...props, blocks });
871
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
872
+ /* @__PURE__ */ jsx("div", { "data-cmssy-layout-slot": props.position, hidden: true }),
873
+ blocks ? /* @__PURE__ */ jsx(CmssyEditableLayout, { ...props, blocks }) : null
874
+ ] });
873
875
  }
874
876
 
875
877
  export { CmssyEditableLayout, CmssyEditablePage, CmssyLazyEditor, CmssyLazyLayout, useEditBridge };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/react",
3
- "version": "10.6.1",
3
+ "version": "10.8.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": "10.6.1"
75
+ "@cmssy/core": "10.8.0"
76
76
  },
77
77
  "scripts": {
78
78
  "build": "tsup",