@copilotkit/shared 1.84.2-canary.1793809041 → 1.84.2-canary.openbot-intel-fixes

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.
Files changed (248) hide show
  1. package/README.md +1 -1
  2. package/dist/a2ui-catalog-schema.cjs +14 -5
  3. package/dist/a2ui-catalog-schema.cjs.map +1 -1
  4. package/dist/a2ui-catalog-schema.d.cts +4 -2
  5. package/dist/a2ui-catalog-schema.d.cts.map +1 -1
  6. package/dist/a2ui-catalog-schema.d.mts +4 -2
  7. package/dist/a2ui-catalog-schema.d.mts.map +1 -1
  8. package/dist/a2ui-catalog-schema.mjs +14 -5
  9. package/dist/a2ui-catalog-schema.mjs.map +1 -1
  10. package/dist/event-transforms/open-generative-ui-middleware.cjs +7 -6
  11. package/dist/event-transforms/open-generative-ui-middleware.cjs.map +1 -1
  12. package/dist/event-transforms/open-generative-ui-middleware.d.cts.map +1 -1
  13. package/dist/event-transforms/open-generative-ui-middleware.d.mts.map +1 -1
  14. package/dist/event-transforms/open-generative-ui-middleware.mjs +7 -6
  15. package/dist/event-transforms/open-generative-ui-middleware.mjs.map +1 -1
  16. package/dist/generative-ui/catalog/catalog-export.cjs +329 -0
  17. package/dist/generative-ui/catalog/catalog-export.cjs.map +1 -0
  18. package/dist/generative-ui/catalog/catalog-export.d.cts +92 -0
  19. package/dist/generative-ui/catalog/catalog-export.d.cts.map +1 -0
  20. package/dist/generative-ui/catalog/catalog-export.d.mts +92 -0
  21. package/dist/generative-ui/catalog/catalog-export.d.mts.map +1 -0
  22. package/dist/generative-ui/catalog/catalog-export.mjs +328 -0
  23. package/dist/generative-ui/catalog/catalog-export.mjs.map +1 -0
  24. package/dist/generative-ui/catalog/catalog.cjs +314 -0
  25. package/dist/generative-ui/catalog/catalog.cjs.map +1 -0
  26. package/dist/generative-ui/catalog/catalog.d.cts +407 -0
  27. package/dist/generative-ui/catalog/catalog.d.cts.map +1 -0
  28. package/dist/generative-ui/catalog/catalog.d.mts +407 -0
  29. package/dist/generative-ui/catalog/catalog.d.mts.map +1 -0
  30. package/dist/generative-ui/catalog/catalog.mjs +311 -0
  31. package/dist/generative-ui/catalog/catalog.mjs.map +1 -0
  32. package/dist/generative-ui/catalog/errors.cjs +13 -0
  33. package/dist/generative-ui/catalog/errors.cjs.map +1 -0
  34. package/dist/generative-ui/catalog/errors.d.cts +46 -0
  35. package/dist/generative-ui/catalog/errors.d.cts.map +1 -0
  36. package/dist/generative-ui/catalog/errors.d.mts +46 -0
  37. package/dist/generative-ui/catalog/errors.d.mts.map +1 -0
  38. package/dist/generative-ui/catalog/errors.mjs +12 -0
  39. package/dist/generative-ui/catalog/errors.mjs.map +1 -0
  40. package/dist/generative-ui/catalog/index.d.mts +6 -0
  41. package/dist/generative-ui/catalog/json-schema.cjs +19 -0
  42. package/dist/generative-ui/catalog/json-schema.cjs.map +1 -0
  43. package/dist/generative-ui/catalog/json-schema.d.cts +13 -0
  44. package/dist/generative-ui/catalog/json-schema.d.cts.map +1 -0
  45. package/dist/generative-ui/catalog/json-schema.d.mts +13 -0
  46. package/dist/generative-ui/catalog/json-schema.d.mts.map +1 -0
  47. package/dist/generative-ui/catalog/json-schema.mjs +18 -0
  48. package/dist/generative-ui/catalog/json-schema.mjs.map +1 -0
  49. package/dist/generative-ui/catalog/refs.cjs +20 -0
  50. package/dist/generative-ui/catalog/refs.cjs.map +1 -0
  51. package/dist/generative-ui/catalog/refs.d.cts +54 -0
  52. package/dist/generative-ui/catalog/refs.d.cts.map +1 -0
  53. package/dist/generative-ui/catalog/refs.d.mts +54 -0
  54. package/dist/generative-ui/catalog/refs.d.mts.map +1 -0
  55. package/dist/generative-ui/catalog/refs.mjs +18 -0
  56. package/dist/generative-ui/catalog/refs.mjs.map +1 -0
  57. package/dist/generative-ui/catalog/schema.cjs +74 -0
  58. package/dist/generative-ui/catalog/schema.cjs.map +1 -0
  59. package/dist/generative-ui/catalog/schema.d.cts +43 -0
  60. package/dist/generative-ui/catalog/schema.d.cts.map +1 -0
  61. package/dist/generative-ui/catalog/schema.d.mts +43 -0
  62. package/dist/generative-ui/catalog/schema.d.mts.map +1 -0
  63. package/dist/generative-ui/catalog/schema.mjs +68 -0
  64. package/dist/generative-ui/catalog/schema.mjs.map +1 -0
  65. package/dist/generative-ui/index.cjs +247 -0
  66. package/dist/generative-ui/index.d.cts +33 -0
  67. package/dist/generative-ui/index.d.mts +35 -0
  68. package/dist/generative-ui/index.mjs +34 -0
  69. package/dist/generative-ui/is-record.cjs +6 -1
  70. package/dist/generative-ui/is-record.cjs.map +1 -1
  71. package/dist/generative-ui/is-record.d.cts +6 -0
  72. package/dist/generative-ui/is-record.d.cts.map +1 -0
  73. package/dist/generative-ui/is-record.d.mts +6 -0
  74. package/dist/generative-ui/is-record.d.mts.map +1 -0
  75. package/dist/generative-ui/is-record.mjs +6 -2
  76. package/dist/generative-ui/is-record.mjs.map +1 -1
  77. package/dist/generative-ui/standard/chart.cjs +56 -0
  78. package/dist/generative-ui/standard/chart.cjs.map +1 -0
  79. package/dist/generative-ui/standard/chart.d.cts +142 -0
  80. package/dist/generative-ui/standard/chart.d.cts.map +1 -0
  81. package/dist/generative-ui/standard/chart.d.mts +142 -0
  82. package/dist/generative-ui/standard/chart.d.mts.map +1 -0
  83. package/dist/generative-ui/standard/chart.mjs +54 -0
  84. package/dist/generative-ui/standard/chart.mjs.map +1 -0
  85. package/dist/generative-ui/standard/checks.cjs +74 -0
  86. package/dist/generative-ui/standard/checks.cjs.map +1 -0
  87. package/dist/generative-ui/standard/checks.d.cts +74 -0
  88. package/dist/generative-ui/standard/checks.d.cts.map +1 -0
  89. package/dist/generative-ui/standard/checks.d.mts +74 -0
  90. package/dist/generative-ui/standard/checks.d.mts.map +1 -0
  91. package/dist/generative-ui/standard/checks.mjs +71 -0
  92. package/dist/generative-ui/standard/checks.mjs.map +1 -0
  93. package/dist/generative-ui/standard/components.cjs +23 -0
  94. package/dist/generative-ui/standard/components.cjs.map +1 -0
  95. package/dist/generative-ui/standard/components.d.cts +24 -0
  96. package/dist/generative-ui/standard/components.d.cts.map +1 -0
  97. package/dist/generative-ui/standard/components.d.mts +24 -0
  98. package/dist/generative-ui/standard/components.d.mts.map +1 -0
  99. package/dist/generative-ui/standard/components.mjs +22 -0
  100. package/dist/generative-ui/standard/components.mjs.map +1 -0
  101. package/dist/generative-ui/standard/composites.cjs +143 -0
  102. package/dist/generative-ui/standard/composites.cjs.map +1 -0
  103. package/dist/generative-ui/standard/composites.d.cts +500 -0
  104. package/dist/generative-ui/standard/composites.d.cts.map +1 -0
  105. package/dist/generative-ui/standard/composites.d.mts +500 -0
  106. package/dist/generative-ui/standard/composites.d.mts.map +1 -0
  107. package/dist/generative-ui/standard/composites.mjs +132 -0
  108. package/dist/generative-ui/standard/composites.mjs.map +1 -0
  109. package/dist/generative-ui/standard/data.cjs +176 -0
  110. package/dist/generative-ui/standard/data.cjs.map +1 -0
  111. package/dist/generative-ui/standard/data.d.cts +745 -0
  112. package/dist/generative-ui/standard/data.d.cts.map +1 -0
  113. package/dist/generative-ui/standard/data.d.mts +745 -0
  114. package/dist/generative-ui/standard/data.d.mts.map +1 -0
  115. package/dist/generative-ui/standard/data.mjs +167 -0
  116. package/dist/generative-ui/standard/data.mjs.map +1 -0
  117. package/dist/generative-ui/standard/declarations.cjs +40 -0
  118. package/dist/generative-ui/standard/declarations.cjs.map +1 -0
  119. package/dist/generative-ui/standard/declarations.d.cts +4604 -0
  120. package/dist/generative-ui/standard/declarations.d.cts.map +1 -0
  121. package/dist/generative-ui/standard/declarations.d.mts +4605 -0
  122. package/dist/generative-ui/standard/declarations.d.mts.map +1 -0
  123. package/dist/generative-ui/standard/declarations.mjs +39 -0
  124. package/dist/generative-ui/standard/declarations.mjs.map +1 -0
  125. package/dist/generative-ui/standard/feedback.cjs +97 -0
  126. package/dist/generative-ui/standard/feedback.cjs.map +1 -0
  127. package/dist/generative-ui/standard/feedback.d.cts +227 -0
  128. package/dist/generative-ui/standard/feedback.d.cts.map +1 -0
  129. package/dist/generative-ui/standard/feedback.d.mts +227 -0
  130. package/dist/generative-ui/standard/feedback.d.mts.map +1 -0
  131. package/dist/generative-ui/standard/feedback.mjs +90 -0
  132. package/dist/generative-ui/standard/feedback.mjs.map +1 -0
  133. package/dist/generative-ui/standard/index.d.mts +16 -0
  134. package/dist/generative-ui/standard/inputs.cjs +333 -0
  135. package/dist/generative-ui/standard/inputs.cjs.map +1 -0
  136. package/dist/generative-ui/standard/inputs.d.cts +2658 -0
  137. package/dist/generative-ui/standard/inputs.d.cts.map +1 -0
  138. package/dist/generative-ui/standard/inputs.d.mts +2658 -0
  139. package/dist/generative-ui/standard/inputs.d.mts.map +1 -0
  140. package/dist/generative-ui/standard/inputs.mjs +318 -0
  141. package/dist/generative-ui/standard/inputs.mjs.map +1 -0
  142. package/dist/generative-ui/standard/layout.cjs +289 -0
  143. package/dist/generative-ui/standard/layout.cjs.map +1 -0
  144. package/dist/generative-ui/standard/layout.d.cts +2854 -0
  145. package/dist/generative-ui/standard/layout.d.cts.map +1 -0
  146. package/dist/generative-ui/standard/layout.d.mts +2854 -0
  147. package/dist/generative-ui/standard/layout.d.mts.map +1 -0
  148. package/dist/generative-ui/standard/layout.mjs +269 -0
  149. package/dist/generative-ui/standard/layout.mjs.map +1 -0
  150. package/dist/generative-ui/standard/map.cjs +27 -0
  151. package/dist/generative-ui/standard/map.cjs.map +1 -0
  152. package/dist/generative-ui/standard/map.d.cts +93 -0
  153. package/dist/generative-ui/standard/map.d.cts.map +1 -0
  154. package/dist/generative-ui/standard/map.d.mts +93 -0
  155. package/dist/generative-ui/standard/map.d.mts.map +1 -0
  156. package/dist/generative-ui/standard/map.mjs +25 -0
  157. package/dist/generative-ui/standard/map.mjs.map +1 -0
  158. package/dist/generative-ui/standard/media.cjs +215 -0
  159. package/dist/generative-ui/standard/media.cjs.map +1 -0
  160. package/dist/generative-ui/standard/media.d.cts +968 -0
  161. package/dist/generative-ui/standard/media.d.cts.map +1 -0
  162. package/dist/generative-ui/standard/media.d.mts +968 -0
  163. package/dist/generative-ui/standard/media.d.mts.map +1 -0
  164. package/dist/generative-ui/standard/media.mjs +205 -0
  165. package/dist/generative-ui/standard/media.mjs.map +1 -0
  166. package/dist/generative-ui/standard/parameter-order.cjs +231 -0
  167. package/dist/generative-ui/standard/parameter-order.cjs.map +1 -0
  168. package/dist/generative-ui/standard/parameter-order.d.cts +84 -0
  169. package/dist/generative-ui/standard/parameter-order.d.cts.map +1 -0
  170. package/dist/generative-ui/standard/parameter-order.d.mts +84 -0
  171. package/dist/generative-ui/standard/parameter-order.d.mts.map +1 -0
  172. package/dist/generative-ui/standard/parameter-order.mjs +230 -0
  173. package/dist/generative-ui/standard/parameter-order.mjs.map +1 -0
  174. package/dist/generative-ui/standard/styles.cjs +62 -0
  175. package/dist/generative-ui/standard/styles.cjs.map +1 -0
  176. package/dist/generative-ui/standard/styles.d.cts +17 -0
  177. package/dist/generative-ui/standard/styles.d.cts.map +1 -0
  178. package/dist/generative-ui/standard/styles.d.mts +17 -0
  179. package/dist/generative-ui/standard/styles.d.mts.map +1 -0
  180. package/dist/generative-ui/standard/styles.mjs +60 -0
  181. package/dist/generative-ui/standard/styles.mjs.map +1 -0
  182. package/dist/generative-ui/standard/text.cjs +226 -0
  183. package/dist/generative-ui/standard/text.cjs.map +1 -0
  184. package/dist/generative-ui/standard/text.d.cts +687 -0
  185. package/dist/generative-ui/standard/text.d.cts.map +1 -0
  186. package/dist/generative-ui/standard/text.d.mts +687 -0
  187. package/dist/generative-ui/standard/text.d.mts.map +1 -0
  188. package/dist/generative-ui/standard/text.mjs +209 -0
  189. package/dist/generative-ui/standard/text.mjs.map +1 -0
  190. package/dist/generative-ui/standard/theme.cjs +115 -0
  191. package/dist/generative-ui/standard/theme.cjs.map +1 -0
  192. package/dist/generative-ui/standard/theme.d.cts +60 -0
  193. package/dist/generative-ui/standard/theme.d.cts.map +1 -0
  194. package/dist/generative-ui/standard/theme.d.mts +60 -0
  195. package/dist/generative-ui/standard/theme.d.mts.map +1 -0
  196. package/dist/generative-ui/standard/theme.mjs +112 -0
  197. package/dist/generative-ui/standard/theme.mjs.map +1 -0
  198. package/dist/generative-ui/standard/tokens.cjs +336 -0
  199. package/dist/generative-ui/standard/tokens.cjs.map +1 -0
  200. package/dist/generative-ui/standard/tokens.d.cts +76 -0
  201. package/dist/generative-ui/standard/tokens.d.cts.map +1 -0
  202. package/dist/generative-ui/standard/tokens.d.mts +76 -0
  203. package/dist/generative-ui/standard/tokens.d.mts.map +1 -0
  204. package/dist/generative-ui/standard/tokens.mjs +305 -0
  205. package/dist/generative-ui/standard/tokens.mjs.map +1 -0
  206. package/dist/index.cjs.map +1 -1
  207. package/dist/index.d.cts +10 -10
  208. package/dist/index.d.mts +10 -10
  209. package/dist/index.mjs.map +1 -1
  210. package/dist/index.umd.js +16 -7
  211. package/dist/index.umd.js.map +1 -1
  212. package/dist/package.cjs +1 -1
  213. package/dist/package.mjs +1 -1
  214. package/package.json +7 -3
  215. package/src/__tests__/a2ui-catalog-schema.test.ts +26 -0
  216. package/src/a2ui-catalog-schema.ts +14 -5
  217. package/src/event-transforms/open-generative-ui-middleware.ts +19 -10
  218. package/src/generative-ui/base.ts +9 -0
  219. package/src/generative-ui/catalog/catalog-export.ts +478 -0
  220. package/src/generative-ui/catalog/catalog.ts +1166 -0
  221. package/src/generative-ui/catalog/errors.ts +102 -0
  222. package/src/generative-ui/catalog/index.ts +6 -0
  223. package/src/generative-ui/catalog/json-schema.ts +23 -0
  224. package/src/generative-ui/catalog/refs.ts +86 -0
  225. package/src/generative-ui/catalog/schema.ts +107 -0
  226. package/src/generative-ui/index.ts +7 -0
  227. package/src/generative-ui/is-record.ts +6 -1
  228. package/src/generative-ui/standard/__tests__/theme.test.ts +61 -0
  229. package/src/generative-ui/standard/__tests__/tokens.test.ts +139 -0
  230. package/src/generative-ui/standard/chart.ts +79 -0
  231. package/src/generative-ui/standard/checks.ts +98 -0
  232. package/src/generative-ui/standard/components.ts +35 -0
  233. package/src/generative-ui/standard/composites.ts +158 -0
  234. package/src/generative-ui/standard/data.ts +213 -0
  235. package/src/generative-ui/standard/declarations.ts +57 -0
  236. package/src/generative-ui/standard/feedback.ts +105 -0
  237. package/src/generative-ui/standard/index.ts +19 -0
  238. package/src/generative-ui/standard/inputs.ts +423 -0
  239. package/src/generative-ui/standard/layout.ts +312 -0
  240. package/src/generative-ui/standard/map.ts +32 -0
  241. package/src/generative-ui/standard/media.ts +265 -0
  242. package/src/generative-ui/standard/parameter-order.ts +155 -0
  243. package/src/generative-ui/standard/styles.ts +79 -0
  244. package/src/generative-ui/standard/text.ts +210 -0
  245. package/src/generative-ui/standard/theme.ts +198 -0
  246. package/src/generative-ui/standard/tokens.ts +317 -0
  247. package/src/index.ts +1 -1
  248. package/tsdown.config.ts +1 -0
@@ -0,0 +1,71 @@
1
+ import { textColor, textFont } from "./tokens.mjs";
2
+ import { z } from "zod";
3
+
4
+ //#region src/generative-ui/standard/checks.ts
5
+ /**
6
+ * The `checks` of the A2UI 1.0 `Checkable` components. The model writes
7
+ * each condition as a validator call or a boolean binding:
8
+ * `{ "condition": { "@call": "email", "args": { "value": { "@path": "/form/email" } } }, "message": "..." }`.
9
+ * The engine resolves the condition before the component renders, so a
10
+ * component sees a boolean or a `ValidationResult`.
11
+ */
12
+ const severity = z.enum([
13
+ "error",
14
+ "warning",
15
+ "info"
16
+ ]);
17
+ const validationResult = z.object({
18
+ valid: z.boolean(),
19
+ message: z.string().optional(),
20
+ code: z.string().optional(),
21
+ severity: severity.optional()
22
+ }).passthrough();
23
+ const checksProp = z.array(z.object({
24
+ condition: z.union([z.boolean(), validationResult]).optional().describe("A validator call, for example {\"@call\":\"required\",\"args\":{\"value\":{\"@path\":\"/x\"}}}, or a boolean binding"),
25
+ message: z.string().optional().describe("Shown when the check fails, instead of the default message")
26
+ })).optional().describe("Validation rules. The control shows the first failed one");
27
+ /**
28
+ * The failed check to show, or `undefined` when every check passes: the
29
+ * first error, or the first warning or info when no check is an error, so
30
+ * a warning never hides an error that comes after it. A condition that is
31
+ * not known yet (undefined) passes. A `false` condition is an error with
32
+ * the check's message. The check's message also wins over the message of
33
+ * a validator result: the built-in validators always have one, and the
34
+ * check is where the model puts its own wording.
35
+ */
36
+ function firstFailedCheck(checks) {
37
+ let first;
38
+ for (const check of checks ?? []) {
39
+ const { condition } = check;
40
+ if (condition === void 0 || condition === null) continue;
41
+ let failed;
42
+ if (typeof condition === "boolean") {
43
+ if (condition) continue;
44
+ failed = {
45
+ message: check.message ?? "Invalid value",
46
+ severity: "error"
47
+ };
48
+ } else {
49
+ if (condition.valid) continue;
50
+ failed = {
51
+ message: check.message ?? condition.message ?? "Invalid value",
52
+ severity: condition.severity ?? "error",
53
+ ...condition.code === void 0 ? {} : { code: condition.code }
54
+ };
55
+ }
56
+ if (failed.severity === "error") return failed;
57
+ first ??= failed;
58
+ }
59
+ return first;
60
+ }
61
+ /** The style of a check message, by its severity. */
62
+ function checkMessageStyle(severity) {
63
+ return {
64
+ ...textFont("sm"),
65
+ color: textColor(severity === "error" ? "danger" : severity === "warning" ? "warning" : "secondary")
66
+ };
67
+ }
68
+
69
+ //#endregion
70
+ export { checkMessageStyle, checksProp, firstFailedCheck };
71
+ //# sourceMappingURL=checks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checks.mjs","names":[],"sources":["../../../src/generative-ui/standard/checks.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { textColor, textFont } from \"./tokens\";\n\n/**\n * The `checks` of the A2UI 1.0 `Checkable` components. The model writes\n * each condition as a validator call or a boolean binding:\n * `{ \"condition\": { \"@call\": \"email\", \"args\": { \"value\": { \"@path\": \"/form/email\" } } }, \"message\": \"...\" }`.\n * The engine resolves the condition before the component renders, so a\n * component sees a boolean or a `ValidationResult`.\n */\n\nconst severity = z.enum([\"error\", \"warning\", \"info\"]);\n\nconst validationResult = z\n .object({\n valid: z.boolean(),\n message: z.string().optional(),\n code: z.string().optional(),\n severity: severity.optional(),\n })\n .passthrough();\n\n/** The first failed check of a control, as the control shows it. */\nexport interface FailedCheck {\n message: string;\n /** `\"error\"` when the result named none. Only an error blocks. */\n severity: z.output<typeof severity>;\n /** The `code` of the validation result, when it had one. */\n code?: string;\n}\n\nexport const checksProp = z\n .array(\n z.object({\n condition: z\n .union([z.boolean(), validationResult])\n .optional()\n .describe(\n 'A validator call, for example {\"@call\":\"required\",\"args\":{\"value\":{\"@path\":\"/x\"}}}, or a boolean binding',\n ),\n message: z\n .string()\n .optional()\n .describe(\"Shown when the check fails, instead of the default message\"),\n }),\n )\n .optional()\n .describe(\"Validation rules. The control shows the first failed one\");\n\nexport type ResolvedChecks = z.output<typeof checksProp>;\n\n/**\n * The failed check to show, or `undefined` when every check passes: the\n * first error, or the first warning or info when no check is an error, so\n * a warning never hides an error that comes after it. A condition that is\n * not known yet (undefined) passes. A `false` condition is an error with\n * the check's message. The check's message also wins over the message of\n * a validator result: the built-in validators always have one, and the\n * check is where the model puts its own wording.\n */\nexport function firstFailedCheck(\n checks: ResolvedChecks,\n): FailedCheck | undefined {\n let first: FailedCheck | undefined;\n for (const check of checks ?? []) {\n const { condition } = check;\n if (condition === undefined || condition === null) continue;\n let failed: FailedCheck;\n if (typeof condition === \"boolean\") {\n if (condition) continue;\n failed = { message: check.message ?? \"Invalid value\", severity: \"error\" };\n } else {\n if (condition.valid) continue;\n failed = {\n message: check.message ?? condition.message ?? \"Invalid value\",\n severity: condition.severity ?? \"error\",\n ...(condition.code === undefined ? {} : { code: condition.code }),\n };\n }\n if (failed.severity === \"error\") return failed;\n first ??= failed;\n }\n return first;\n}\n\n/** The style of a check message, by its severity. */\nexport function checkMessageStyle(severity: FailedCheck[\"severity\"]) {\n return {\n ...textFont(\"sm\"),\n color: textColor(\n severity === \"error\"\n ? \"danger\"\n : severity === \"warning\"\n ? \"warning\"\n : \"secondary\",\n ),\n };\n}\n"],"mappings":";;;;;;;;;;;AAWA,MAAM,WAAW,EAAE,KAAK;CAAC;CAAS;CAAW;CAAO,CAAC;AAErD,MAAM,mBAAmB,EACtB,OAAO;CACN,OAAO,EAAE,SAAS;CAClB,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,UAAU,SAAS,UAAU;CAC9B,CAAC,CACD,aAAa;AAWhB,MAAa,aAAa,EACvB,MACC,EAAE,OAAO;CACP,WAAW,EACR,MAAM,CAAC,EAAE,SAAS,EAAE,iBAAiB,CAAC,CACtC,UAAU,CACV,SACC,uHACD;CACH,SAAS,EACN,QAAQ,CACR,UAAU,CACV,SAAS,6DAA6D;CAC1E,CAAC,CACH,CACA,UAAU,CACV,SAAS,2DAA2D;;;;;;;;;;AAavE,SAAgB,iBACd,QACyB;CACzB,IAAI;AACJ,MAAK,MAAM,SAAS,UAAU,EAAE,EAAE;EAChC,MAAM,EAAE,cAAc;AACtB,MAAI,cAAc,UAAa,cAAc,KAAM;EACnD,IAAI;AACJ,MAAI,OAAO,cAAc,WAAW;AAClC,OAAI,UAAW;AACf,YAAS;IAAE,SAAS,MAAM,WAAW;IAAiB,UAAU;IAAS;SACpE;AACL,OAAI,UAAU,MAAO;AACrB,YAAS;IACP,SAAS,MAAM,WAAW,UAAU,WAAW;IAC/C,UAAU,UAAU,YAAY;IAChC,GAAI,UAAU,SAAS,SAAY,EAAE,GAAG,EAAE,MAAM,UAAU,MAAM;IACjE;;AAEH,MAAI,OAAO,aAAa,QAAS,QAAO;AACxC,YAAU;;AAEZ,QAAO;;;AAIT,SAAgB,kBAAkB,UAAmC;AACnE,QAAO;EACL,GAAG,SAAS,KAAK;EACjB,OAAO,UACL,aAAa,UACT,WACA,aAAa,YACX,YACA,YACP;EACF"}
@@ -0,0 +1,23 @@
1
+
2
+ //#region src/generative-ui/standard/components.ts
3
+ /**
4
+ * The definitions of `createGenerativeUI`: each declaration with the
5
+ * component of the same name.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const layoutComponents = withComponents(layoutDeclarations, { Box, Column });
10
+ * ```
11
+ */
12
+ function withComponents(declarations, components) {
13
+ const definitions = {};
14
+ for (const name of Object.keys(declarations)) definitions[name] = {
15
+ ...declarations[name],
16
+ component: components[name]
17
+ };
18
+ return definitions;
19
+ }
20
+
21
+ //#endregion
22
+ exports.withComponents = withComponents;
23
+ //# sourceMappingURL=components.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.cjs","names":[],"sources":["../../../src/generative-ui/standard/components.ts"],"sourcesContent":["import type { GenerativeUIComponentDefinition } from \"../catalog/catalog\";\n\n/**\n * A standard component without its framework component: what the model\n * sees (description, props, events, slots) and how the engine treats it.\n * Each framework adds its own component with `withComponents`.\n */\nexport type GenerativeUIComponentDeclaration = Omit<\n GenerativeUIComponentDefinition,\n \"component\"\n>;\n\n/**\n * The definitions of `createGenerativeUI`: each declaration with the\n * component of the same name.\n *\n * @example\n * ```ts\n * const layoutComponents = withComponents(layoutDeclarations, { Box, Column });\n * ```\n */\nexport function withComponents<\n Declarations extends Record<string, GenerativeUIComponentDeclaration>,\n Components extends { [Name in keyof Declarations]: unknown },\n>(declarations: Declarations, components: Components) {\n const definitions: Record<string, unknown> = {};\n for (const name of Object.keys(declarations)) {\n definitions[name] = { ...declarations[name], component: components[name] };\n }\n return definitions as {\n [Name in keyof Declarations]: Declarations[Name] & {\n component: Components[Name];\n };\n };\n}\n"],"mappings":";;;;;;;;;;;AAqBA,SAAgB,eAGd,cAA4B,YAAwB;CACpD,MAAM,cAAuC,EAAE;AAC/C,MAAK,MAAM,QAAQ,OAAO,KAAK,aAAa,CAC1C,aAAY,QAAQ;EAAE,GAAG,aAAa;EAAO,WAAW,WAAW;EAAO;AAE5E,QAAO"}
@@ -0,0 +1,24 @@
1
+ import { GenerativeUIComponentDefinition } from "../catalog/catalog.cjs";
2
+
3
+ //#region src/generative-ui/standard/components.d.ts
4
+ /**
5
+ * A standard component without its framework component: what the model
6
+ * sees (description, props, events, slots) and how the engine treats it.
7
+ * Each framework adds its own component with `withComponents`.
8
+ */
9
+ type GenerativeUIComponentDeclaration = Omit<GenerativeUIComponentDefinition, "component">;
10
+ /**
11
+ * The definitions of `createGenerativeUI`: each declaration with the
12
+ * component of the same name.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const layoutComponents = withComponents(layoutDeclarations, { Box, Column });
17
+ * ```
18
+ */
19
+ declare function withComponents<Declarations extends Record<string, GenerativeUIComponentDeclaration>, Components extends { [Name in keyof Declarations]: unknown }>(declarations: Declarations, components: Components): { [Name in keyof Declarations]: Declarations[Name] & {
20
+ component: Components[Name];
21
+ } };
22
+ //#endregion
23
+ export { GenerativeUIComponentDeclaration, withComponents };
24
+ //# sourceMappingURL=components.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.cts","names":[],"sources":["../../../src/generative-ui/standard/components.ts"],"mappings":";;;;;AAOA;;;KAAY,gCAAA,GAAmC,IAAA,CAC7C,+BAAA;;AAaF;;;;;;;;iBAAgB,cAAA,sBACO,MAAA,SAAe,gCAAA,uCACA,YAAA,aAAA,CACpC,YAAA,EAAc,YAAA,EAAc,UAAA,EAAY,UAAA,oBAMvB,YAAA,GAAe,YAAA,CAAa,IAAA;EACzC,SAAA,EAAW,UAAA,CAAW,IAAA;AAAA"}
@@ -0,0 +1,24 @@
1
+ import { GenerativeUIComponentDefinition } from "../catalog/catalog.mjs";
2
+
3
+ //#region src/generative-ui/standard/components.d.ts
4
+ /**
5
+ * A standard component without its framework component: what the model
6
+ * sees (description, props, events, slots) and how the engine treats it.
7
+ * Each framework adds its own component with `withComponents`.
8
+ */
9
+ type GenerativeUIComponentDeclaration = Omit<GenerativeUIComponentDefinition, "component">;
10
+ /**
11
+ * The definitions of `createGenerativeUI`: each declaration with the
12
+ * component of the same name.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const layoutComponents = withComponents(layoutDeclarations, { Box, Column });
17
+ * ```
18
+ */
19
+ declare function withComponents<Declarations extends Record<string, GenerativeUIComponentDeclaration>, Components extends { [Name in keyof Declarations]: unknown }>(declarations: Declarations, components: Components): { [Name in keyof Declarations]: Declarations[Name] & {
20
+ component: Components[Name];
21
+ } };
22
+ //#endregion
23
+ export { GenerativeUIComponentDeclaration, withComponents };
24
+ //# sourceMappingURL=components.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.mts","names":[],"sources":["../../../src/generative-ui/standard/components.ts"],"mappings":";;;;;AAOA;;;KAAY,gCAAA,GAAmC,IAAA,CAC7C,+BAAA;;AAaF;;;;;;;;iBAAgB,cAAA,sBACO,MAAA,SAAe,gCAAA,uCACA,YAAA,aAAA,CACpC,YAAA,EAAc,YAAA,EAAc,UAAA,EAAY,UAAA,oBAMvB,YAAA,GAAe,YAAA,CAAa,IAAA;EACzC,SAAA,EAAW,UAAA,CAAW,IAAA;AAAA"}
@@ -0,0 +1,22 @@
1
+ //#region src/generative-ui/standard/components.ts
2
+ /**
3
+ * The definitions of `createGenerativeUI`: each declaration with the
4
+ * component of the same name.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const layoutComponents = withComponents(layoutDeclarations, { Box, Column });
9
+ * ```
10
+ */
11
+ function withComponents(declarations, components) {
12
+ const definitions = {};
13
+ for (const name of Object.keys(declarations)) definitions[name] = {
14
+ ...declarations[name],
15
+ component: components[name]
16
+ };
17
+ return definitions;
18
+ }
19
+
20
+ //#endregion
21
+ export { withComponents };
22
+ //# sourceMappingURL=components.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.mjs","names":[],"sources":["../../../src/generative-ui/standard/components.ts"],"sourcesContent":["import type { GenerativeUIComponentDefinition } from \"../catalog/catalog\";\n\n/**\n * A standard component without its framework component: what the model\n * sees (description, props, events, slots) and how the engine treats it.\n * Each framework adds its own component with `withComponents`.\n */\nexport type GenerativeUIComponentDeclaration = Omit<\n GenerativeUIComponentDefinition,\n \"component\"\n>;\n\n/**\n * The definitions of `createGenerativeUI`: each declaration with the\n * component of the same name.\n *\n * @example\n * ```ts\n * const layoutComponents = withComponents(layoutDeclarations, { Box, Column });\n * ```\n */\nexport function withComponents<\n Declarations extends Record<string, GenerativeUIComponentDeclaration>,\n Components extends { [Name in keyof Declarations]: unknown },\n>(declarations: Declarations, components: Components) {\n const definitions: Record<string, unknown> = {};\n for (const name of Object.keys(declarations)) {\n definitions[name] = { ...declarations[name], component: components[name] };\n }\n return definitions as {\n [Name in keyof Declarations]: Declarations[Name] & {\n component: Components[Name];\n };\n };\n}\n"],"mappings":";;;;;;;;;;AAqBA,SAAgB,eAGd,cAA4B,YAAwB;CACpD,MAAM,cAAuC,EAAE;AAC/C,MAAK,MAAM,QAAQ,OAAO,KAAK,aAAa,CAC1C,aAAY,QAAQ;EAAE,GAAG,aAAa;EAAO,WAAW,WAAW;EAAO;AAE5E,QAAO"}
@@ -0,0 +1,143 @@
1
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
+ const require_layout = require('./layout.cjs');
3
+ let zod = require("zod");
4
+
5
+ //#region src/generative-ui/standard/composites.ts
6
+ const text = (description) => zod.z.string().optional().describe(description);
7
+ const linkCardSchema = zod.z.object({
8
+ href: zod.z.string().describe("The URL (http, https)"),
9
+ title: zod.z.string().describe("The page title"),
10
+ description: text("One or two lines"),
11
+ image: text("A thumbnail URL"),
12
+ domain: text("Shown next to the favicon. Default: the host of href"),
13
+ favicon: zod.z.boolean().optional().describe("Default true")
14
+ });
15
+ const citationSchema = zod.z.object({
16
+ index: zod.z.number().optional().describe("The marker number. Default 1"),
17
+ label: text("Marker text instead of the number, for example a domain"),
18
+ title: text("The source title"),
19
+ url: text("The source URL (http, https)"),
20
+ snippet: text("The quoted passage, one or two lines"),
21
+ source: text("The publisher or domain. Default: the host of url")
22
+ });
23
+ const followUpItem = zod.z.union([zod.z.string(), zod.z.object({
24
+ label: zod.z.string(),
25
+ message: text("The text sent when the user clicks. Default: label")
26
+ })]);
27
+ const followUpSchema = zod.z.object({
28
+ items: zod.z.array(followUpItem).optional(),
29
+ title: text("A caption above the pills")
30
+ });
31
+ const followUpArgs = zod.z.object({ message: zod.z.string().describe("The message of the clicked pill") });
32
+ const BADGE_COLORS = [
33
+ "secondary",
34
+ "success",
35
+ "danger",
36
+ "warning",
37
+ "info",
38
+ "discovery"
39
+ ];
40
+ const cardAction = zod.z.object({
41
+ label: zod.z.string(),
42
+ href: text("Opens this URL in a new tab"),
43
+ variant: zod.z.enum([
44
+ "solid",
45
+ "soft",
46
+ "outline",
47
+ "ghost"
48
+ ]).optional()
49
+ });
50
+ const entityCardSchema = zod.z.object({
51
+ title: zod.z.string().describe("The name"),
52
+ subtitle: text("A second line, for example the brand or category"),
53
+ description: text("Up to three lines"),
54
+ image: text("An image URL"),
55
+ imageAspectRatio: zod.z.string().optional().describe("Default \"4 / 3\""),
56
+ meta: text("A short fact line, for example \"$29 / month\" or \"Open until 22:00\""),
57
+ badge: zod.z.object({
58
+ label: zod.z.string(),
59
+ color: zod.z.enum(BADGE_COLORS).optional()
60
+ }).optional(),
61
+ rating: zod.z.number().optional().describe("0 to 5, shown as stars"),
62
+ ratingCount: zod.z.number().optional().describe("The number of ratings"),
63
+ href: text("Opens this URL in a new tab when the user clicks the card"),
64
+ actions: zod.z.array(cardAction).max(3).optional().describe("Up to three buttons. A button without href sends onAction with its label"),
65
+ layout: zod.z.enum(["vertical", "horizontal"]).optional().describe("Default \"vertical\". \"horizontal\" puts the image on the left"),
66
+ width: require_layout.sizeValue.optional()
67
+ });
68
+ const entityActionArgs = zod.z.object({ label: zod.z.string().describe("The label of the clicked button") });
69
+ const gridImage = zod.z.object({
70
+ url: zod.z.string(),
71
+ description: zod.z.string().optional().describe("What the image shows"),
72
+ caption: zod.z.string().optional(),
73
+ href: text("Opens this URL instead of the full-screen view")
74
+ });
75
+ const imageGridSchema = zod.z.object({
76
+ images: zod.z.array(gridImage).optional(),
77
+ columns: zod.z.number().optional().describe("Default 3"),
78
+ aspectRatio: zod.z.string().optional().describe("Default \"1 / 1\""),
79
+ gap: require_layout.sizeValue.optional().describe("Default 2"),
80
+ layout: zod.z.enum(["grid", "bento"]).optional().describe("Default \"grid\". \"bento\" makes the first image twice as large")
81
+ });
82
+ /**
83
+ * The standard composite components, without their framework components.
84
+ *
85
+ * - LinkCard and EntityCard open `href`, or send `onClick` when it is bound.
86
+ * - FollowUp sends `onFollowUp` with the message of the pill. Unbound, the
87
+ * engine turns it into a visible user message with that text.
88
+ * - EntityCard buttons without href send `onAction` with their label.
89
+ */
90
+ const compositeDeclarations = {
91
+ LinkCard: {
92
+ description: "A preview of a URL: favicon and domain, title, description, thumbnail. A click opens it in a new tab, or sends onClick when bound. For sources, articles and products with a page.",
93
+ props: linkCardSchema,
94
+ events: { onClick: {
95
+ description: "Sent when the user clicks the card, instead of the link.",
96
+ parameters: require_layout.NO_ARGS
97
+ } }
98
+ },
99
+ Citation: {
100
+ description: "An inline source marker ([1]) showing title, snippet and link on hover or click. Put it right after the sentence it supports, as a child of a Text or in a Row.",
101
+ props: citationSchema
102
+ },
103
+ FollowUp: {
104
+ description: "Suggested next prompts as pills; a click sends the pill's message as the user's next turn, no event needed. At the end of a surface, two to four short items.",
105
+ props: followUpSchema,
106
+ events: { onFollowUp: {
107
+ description: "Sent when the user clicks a pill. The args carry the message of the pill.",
108
+ parameters: followUpArgs
109
+ } }
110
+ },
111
+ EntityCard: {
112
+ description: "A card for one product, place, person or listing: image, title, subtitle, description, a price or meta line, badge, rating and up to three buttons. href opens a page; onClick is sent when bound. Use a Grid of them for several things.",
113
+ props: entityCardSchema,
114
+ events: {
115
+ onClick: {
116
+ description: "Sent when the user clicks the card and it has no href.",
117
+ parameters: require_layout.NO_ARGS
118
+ },
119
+ onAction: {
120
+ description: "Sent when the user clicks a button without href. The args carry the label of the button.",
121
+ parameters: entityActionArgs
122
+ }
123
+ }
124
+ },
125
+ ImageGrid: {
126
+ description: "A gallery of images in a grid. A click opens the image full-screen, with arrows to the other images. layout \"bento\" makes the first image twice as large.",
127
+ props: imageGridSchema
128
+ }
129
+ };
130
+
131
+ //#endregion
132
+ exports.cardAction = cardAction;
133
+ exports.citationSchema = citationSchema;
134
+ exports.compositeDeclarations = compositeDeclarations;
135
+ exports.entityActionArgs = entityActionArgs;
136
+ exports.entityCardSchema = entityCardSchema;
137
+ exports.followUpArgs = followUpArgs;
138
+ exports.followUpItem = followUpItem;
139
+ exports.followUpSchema = followUpSchema;
140
+ exports.gridImage = gridImage;
141
+ exports.imageGridSchema = imageGridSchema;
142
+ exports.linkCardSchema = linkCardSchema;
143
+ //# sourceMappingURL=composites.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composites.cjs","names":["z","sizeValue","NO_ARGS"],"sources":["../../../src/generative-ui/standard/composites.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { NO_ARGS, sizeValue } from \"./layout\";\n\n// ---- Schemas ----\n\nconst text = (description: string) =>\n z.string().optional().describe(description);\n\nexport const linkCardSchema = z.object({\n href: z.string().describe(\"The URL (http, https)\"),\n title: z.string().describe(\"The page title\"),\n description: text(\"One or two lines\"),\n image: text(\"A thumbnail URL\"),\n domain: text(\"Shown next to the favicon. Default: the host of href\"),\n favicon: z.boolean().optional().describe(\"Default true\"),\n});\nexport const citationSchema = z.object({\n index: z.number().optional().describe(\"The marker number. Default 1\"),\n label: text(\"Marker text instead of the number, for example a domain\"),\n title: text(\"The source title\"),\n url: text(\"The source URL (http, https)\"),\n snippet: text(\"The quoted passage, one or two lines\"),\n source: text(\"The publisher or domain. Default: the host of url\"),\n});\nexport const followUpItem = z.union([\n z.string(),\n z.object({\n label: z.string(),\n message: text(\"The text sent when the user clicks. Default: label\"),\n }),\n]);\nexport const followUpSchema = z.object({\n items: z.array(followUpItem).optional(),\n title: text(\"A caption above the pills\"),\n});\nexport const followUpArgs = z.object({\n message: z.string().describe(\"The message of the clicked pill\"),\n});\nconst BADGE_COLORS = [\n \"secondary\",\n \"success\",\n \"danger\",\n \"warning\",\n \"info\",\n \"discovery\",\n] as const;\nexport const cardAction = z.object({\n label: z.string(),\n href: text(\"Opens this URL in a new tab\"),\n variant: z.enum([\"solid\", \"soft\", \"outline\", \"ghost\"]).optional(),\n});\nexport const entityCardSchema = z.object({\n title: z.string().describe(\"The name\"),\n subtitle: text(\"A second line, for example the brand or category\"),\n description: text(\"Up to three lines\"),\n image: text(\"An image URL\"),\n imageAspectRatio: z.string().optional().describe('Default \"4 / 3\"'),\n meta: text(\n 'A short fact line, for example \"$29 / month\" or \"Open until 22:00\"',\n ),\n badge: z\n .object({ label: z.string(), color: z.enum(BADGE_COLORS).optional() })\n .optional(),\n rating: z.number().optional().describe(\"0 to 5, shown as stars\"),\n ratingCount: z.number().optional().describe(\"The number of ratings\"),\n href: text(\"Opens this URL in a new tab when the user clicks the card\"),\n actions: z\n .array(cardAction)\n .max(3)\n .optional()\n .describe(\n \"Up to three buttons. A button without href sends onAction with its label\",\n ),\n layout: z\n .enum([\"vertical\", \"horizontal\"])\n .optional()\n .describe('Default \"vertical\". \"horizontal\" puts the image on the left'),\n width: sizeValue.optional(),\n});\nexport const entityActionArgs = z.object({\n label: z.string().describe(\"The label of the clicked button\"),\n});\nexport const gridImage = z.object({\n url: z.string(),\n description: z.string().optional().describe(\"What the image shows\"),\n caption: z.string().optional(),\n href: text(\"Opens this URL instead of the full-screen view\"),\n});\nexport const imageGridSchema = z.object({\n images: z.array(gridImage).optional(),\n columns: z.number().optional().describe(\"Default 3\"),\n aspectRatio: z.string().optional().describe('Default \"1 / 1\"'),\n gap: sizeValue.optional().describe(\"Default 2\"),\n layout: z\n .enum([\"grid\", \"bento\"])\n .optional()\n .describe('Default \"grid\". \"bento\" makes the first image twice as large'),\n});\n\n/**\n * The standard composite components, without their framework components.\n *\n * - LinkCard and EntityCard open `href`, or send `onClick` when it is bound.\n * - FollowUp sends `onFollowUp` with the message of the pill. Unbound, the\n * engine turns it into a visible user message with that text.\n * - EntityCard buttons without href send `onAction` with their label.\n */\nexport const compositeDeclarations = {\n LinkCard: {\n description:\n \"A preview of a URL: favicon and domain, title, description, thumbnail. A click opens it in a new tab, or sends onClick when bound. For sources, articles and products with a page.\",\n props: linkCardSchema,\n events: {\n onClick: {\n description: \"Sent when the user clicks the card, instead of the link.\",\n parameters: NO_ARGS,\n },\n },\n },\n Citation: {\n description:\n \"An inline source marker ([1]) showing title, snippet and link on hover or click. Put it right after the sentence it supports, as a child of a Text or in a Row.\",\n props: citationSchema,\n },\n FollowUp: {\n description:\n \"Suggested next prompts as pills; a click sends the pill's message as the user's next turn, no event needed. At the end of a surface, two to four short items.\",\n props: followUpSchema,\n events: {\n onFollowUp: {\n description:\n \"Sent when the user clicks a pill. The args carry the message of the pill.\",\n parameters: followUpArgs,\n },\n },\n },\n EntityCard: {\n description:\n \"A card for one product, place, person or listing: image, title, subtitle, description, a price or meta line, badge, rating and up to three buttons. href opens a page; onClick is sent when bound. Use a Grid of them for several things.\",\n props: entityCardSchema,\n events: {\n onClick: {\n description: \"Sent when the user clicks the card and it has no href.\",\n parameters: NO_ARGS,\n },\n onAction: {\n description:\n \"Sent when the user clicks a button without href. The args carry the label of the button.\",\n parameters: entityActionArgs,\n },\n },\n },\n ImageGrid: {\n description:\n 'A gallery of images in a grid. A click opens the image full-screen, with arrows to the other images. layout \"bento\" makes the first image twice as large.',\n props: imageGridSchema,\n },\n};\n"],"mappings":"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"}