@apteva/apteva-kit 0.1.28 → 0.1.30

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/README.md CHANGED
@@ -24,6 +24,20 @@ yarn add @apteva/apteva-kit
24
24
  bun add @apteva/apteva-kit
25
25
  ```
26
26
 
27
+ ### Required: Import Styles
28
+
29
+ Add this import to your app's root layout or entry point:
30
+
31
+ ```tsx
32
+ import '@apteva/apteva-kit/styles.css';
33
+ ```
34
+
35
+ For Next.js, add it to `app/layout.tsx`:
36
+ ```tsx
37
+ import '@apteva/apteva-kit/styles.css';
38
+ import './globals.css'; // your app's styles
39
+ ```
40
+
27
41
  ## Components
28
42
 
29
43
  ### `<Chat>` - Full Chat Interface
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}]. Add "meta" for hidden data captured by UI.
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 example: @ui:list[{"items": [{"id": "1", "title": "Task"}], "meta": {"fullData": [...]}}]
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