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