@creopse/react 0.0.13 → 0.0.14
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/index.cjs +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8366,7 +8366,8 @@ const RootContainer = () => {
|
|
|
8366
8366
|
}, [sections, manager, getFinalPageSections]);
|
|
8367
8367
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { all: "unset" }, children: sections.map((section) => {
|
|
8368
8368
|
const Component = components[section.name];
|
|
8369
|
-
const
|
|
8369
|
+
const staticKey = `${section.slug}__${section.pivot?.linkId}`;
|
|
8370
|
+
const dynamicKey = sectionKeys[`${staticKey}-key`];
|
|
8370
8371
|
if (!Component) {
|
|
8371
8372
|
console.warn(`[@creopse/react] Component not found: ${section.name}`);
|
|
8372
8373
|
return null;
|
|
@@ -8374,14 +8375,14 @@ const RootContainer = () => {
|
|
|
8374
8375
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8375
8376
|
"section",
|
|
8376
8377
|
{
|
|
8377
|
-
id: `${
|
|
8378
|
+
id: `${staticKey}-container`,
|
|
8378
8379
|
style: { all: "unset" },
|
|
8379
8380
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8380
8381
|
Component,
|
|
8381
8382
|
{
|
|
8382
8383
|
data: section.pivot?.data,
|
|
8383
8384
|
settings: section.pivot?.settings,
|
|
8384
|
-
sectionKey:
|
|
8385
|
+
sectionKey: staticKey,
|
|
8385
8386
|
metadata: {
|
|
8386
8387
|
slug: section.slug,
|
|
8387
8388
|
name: section.name,
|
|
@@ -8390,10 +8391,11 @@ const RootContainer = () => {
|
|
|
8390
8391
|
createdAt: section.createdAt,
|
|
8391
8392
|
updatedAt: section.updatedAt
|
|
8392
8393
|
}
|
|
8393
|
-
}
|
|
8394
|
+
},
|
|
8395
|
+
dynamicKey
|
|
8394
8396
|
)
|
|
8395
8397
|
},
|
|
8396
|
-
|
|
8398
|
+
staticKey
|
|
8397
8399
|
);
|
|
8398
8400
|
}) }, sectionsWrapperKey);
|
|
8399
8401
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -8348,7 +8348,8 @@ const RootContainer = () => {
|
|
|
8348
8348
|
}, [sections, manager, getFinalPageSections]);
|
|
8349
8349
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { all: "unset" }, children: sections.map((section) => {
|
|
8350
8350
|
const Component2 = components[section.name];
|
|
8351
|
-
const
|
|
8351
|
+
const staticKey = `${section.slug}__${section.pivot?.linkId}`;
|
|
8352
|
+
const dynamicKey = sectionKeys[`${staticKey}-key`];
|
|
8352
8353
|
if (!Component2) {
|
|
8353
8354
|
console.warn(`[@creopse/react] Component not found: ${section.name}`);
|
|
8354
8355
|
return null;
|
|
@@ -8356,14 +8357,14 @@ const RootContainer = () => {
|
|
|
8356
8357
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8357
8358
|
"section",
|
|
8358
8359
|
{
|
|
8359
|
-
id: `${
|
|
8360
|
+
id: `${staticKey}-container`,
|
|
8360
8361
|
style: { all: "unset" },
|
|
8361
8362
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8362
8363
|
Component2,
|
|
8363
8364
|
{
|
|
8364
8365
|
data: section.pivot?.data,
|
|
8365
8366
|
settings: section.pivot?.settings,
|
|
8366
|
-
sectionKey:
|
|
8367
|
+
sectionKey: staticKey,
|
|
8367
8368
|
metadata: {
|
|
8368
8369
|
slug: section.slug,
|
|
8369
8370
|
name: section.name,
|
|
@@ -8372,10 +8373,11 @@ const RootContainer = () => {
|
|
|
8372
8373
|
createdAt: section.createdAt,
|
|
8373
8374
|
updatedAt: section.updatedAt
|
|
8374
8375
|
}
|
|
8375
|
-
}
|
|
8376
|
+
},
|
|
8377
|
+
dynamicKey
|
|
8376
8378
|
)
|
|
8377
8379
|
},
|
|
8378
|
-
|
|
8380
|
+
staticKey
|
|
8379
8381
|
);
|
|
8380
8382
|
}) }, sectionsWrapperKey);
|
|
8381
8383
|
};
|