@apteva/apteva-kit 0.1.27 → 0.1.29
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -672,7 +672,7 @@ function generateWidgetContext(enabledWidgets) {
|
|
|
672
672
|
const widgets = enabledWidgets || ALL_WIDGET_TYPES;
|
|
673
673
|
let context = `
|
|
674
674
|
## UI Widgets
|
|
675
|
-
Render widgets: @ui:type[{props}].
|
|
675
|
+
Render widgets: @ui:type[{props}]. "meta" field (at root level, NOT inside items) holds extended data captured by UI.
|
|
676
676
|
|
|
677
677
|
`;
|
|
678
678
|
for (const type of widgets) {
|
|
@@ -682,14 +682,14 @@ Render widgets: @ui:type[{props}]. Add "meta" for hidden data captured by UI.
|
|
|
682
682
|
`;
|
|
683
683
|
}
|
|
684
684
|
context += `
|
|
685
|
-
Meta
|
|
685
|
+
Meta: @ui:list[{"items": [{"id": "1", "title": "X"}], "meta": {"items": [{"id": "1", "title": "X", "extra": "..."}]}}]
|
|
686
686
|
`;
|
|
687
687
|
return context;
|
|
688
688
|
}
|
|
689
689
|
function generateCompactWidgetContext(enabledWidgets) {
|
|
690
690
|
const widgets = enabledWidgets || ALL_WIDGET_TYPES;
|
|
691
691
|
return `
|
|
692
|
-
Widgets: @ui:type[{props}]. Types: ${widgets.join(", ")}. Add "meta" for extended data.
|
|
692
|
+
Widgets: @ui:type[{props}]. Types: ${widgets.join(", ")}. Add "meta" at root (not inside items) for extended data.
|
|
693
693
|
`;
|
|
694
694
|
}
|
|
695
695
|
|