@superatomai/sdk-web 0.0.17 → 0.0.18

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 CHANGED
@@ -70,6 +70,13 @@ var UIElementSchema = zod.z.lazy(
70
70
  }).optional()
71
71
  })
72
72
  );
73
+ var PageSchema = zod.z.object({
74
+ id: zod.z.string(),
75
+ name: zod.z.string(),
76
+ order: zod.z.number(),
77
+ icon: zod.z.string().optional(),
78
+ render: UIElementSchema
79
+ });
73
80
  var UIComponentSchema = zod.z.object({
74
81
  id: zod.z.string(),
75
82
  name: zod.z.string().optional(),
@@ -89,7 +96,11 @@ var UIComponentSchema = zod.z.object({
89
96
  })
90
97
  ).optional(),
91
98
  data: zod.z.record(zod.z.string(), zod.z.any()).optional(),
92
- render: UIElementSchema,
99
+ // OLD: Single page (optional for backward compatibility)
100
+ render: UIElementSchema.optional(),
101
+ // NEW: Multi-page support
102
+ pages: zod.z.array(PageSchema).optional(),
103
+ defaultPageId: zod.z.string().optional(),
93
104
  query: QuerySpecSchema.optional()
94
105
  });
95
106
  var DSLRendererPropsSchema = zod.z.object({
@@ -179,7 +190,8 @@ var UIComponentSchema2 = zod.z.object({
179
190
  })
180
191
  ).optional(),
181
192
  data: zod.z.record(zod.z.string(), zod.z.any()).optional(),
182
- render: UIElementSchema2,
193
+ // Made optional to align with dashboards schema (dashboards use pages instead)
194
+ render: UIElementSchema2.optional(),
183
195
  query: QuerySpecSchema2.optional()
184
196
  });
185
197
  var DSLRendererPropsSchema2 = zod.z.object({
@@ -814,6 +826,7 @@ __export(services_exports, {
814
826
  DSLRendererPropsSchema: () => DSLRendererPropsSchema,
815
827
  ExpressionSchema: () => ExpressionSchema,
816
828
  ForDirectiveSchema: () => ForDirectiveSchema,
829
+ PageSchema: () => PageSchema,
817
830
  QuerySpecSchema: () => QuerySpecSchema,
818
831
  UIComponentSchema: () => UIComponentSchema,
819
832
  UIElementSchema: () => UIElementSchema,