@apteva/apteva-kit 0.1.24 → 0.1.25
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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -594,14 +594,16 @@ function parseWidgetsFromText(text) {
|
|
|
594
594
|
}
|
|
595
595
|
try {
|
|
596
596
|
const trimmedJson = jsonContent.trim();
|
|
597
|
-
const
|
|
597
|
+
const parsed = JSON.parse(trimmedJson);
|
|
598
598
|
const widgetId = `widget-${widgetType}-${simpleHash(trimmedJson)}`;
|
|
599
|
+
const { meta, ...props } = parsed;
|
|
599
600
|
segments.push({
|
|
600
601
|
type: "widget",
|
|
601
602
|
widget: {
|
|
602
603
|
type: widgetType,
|
|
603
604
|
id: widgetId,
|
|
604
|
-
props
|
|
605
|
+
props,
|
|
606
|
+
...meta && { meta }
|
|
605
607
|
}
|
|
606
608
|
});
|
|
607
609
|
hasWidgets = true;
|