@copilotkit/a2ui-renderer 1.51.4-next.7 → 1.51.4

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 (139) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/A2UIMessageRenderer.d.ts.map +1 -1
  3. package/dist/A2UIMessageRenderer.js +6 -5
  4. package/dist/A2UIMessageRenderer.js.map +1 -1
  5. package/dist/A2UIViewer.d.ts.map +1 -1
  6. package/dist/A2UIViewer.js +1 -1
  7. package/dist/A2UIViewer.js.map +1 -1
  8. package/dist/__tests__/A2UIMessageRenderer.test.js +43 -12
  9. package/dist/__tests__/A2UIMessageRenderer.test.js.map +1 -1
  10. package/dist/__tests__/clsx-shim.d.ts +8 -0
  11. package/dist/__tests__/clsx-shim.d.ts.map +1 -0
  12. package/dist/__tests__/clsx-shim.js +24 -0
  13. package/dist/__tests__/clsx-shim.js.map +1 -0
  14. package/dist/index.umd.js.map +1 -1
  15. package/dist/react-renderer/components/content/AudioPlayer.d.ts +2 -2
  16. package/dist/react-renderer/components/content/AudioPlayer.d.ts.map +1 -1
  17. package/dist/react-renderer/components/content/AudioPlayer.js +5 -5
  18. package/dist/react-renderer/components/content/AudioPlayer.js.map +1 -1
  19. package/dist/react-renderer/components/content/Divider.d.ts +2 -2
  20. package/dist/react-renderer/components/content/Divider.d.ts.map +1 -1
  21. package/dist/react-renderer/components/content/Divider.js +5 -5
  22. package/dist/react-renderer/components/content/Divider.js.map +1 -1
  23. package/dist/react-renderer/components/content/Icon.d.ts +2 -2
  24. package/dist/react-renderer/components/content/Icon.d.ts.map +1 -1
  25. package/dist/react-renderer/components/content/Icon.js +6 -6
  26. package/dist/react-renderer/components/content/Icon.js.map +1 -1
  27. package/dist/react-renderer/components/content/Image.d.ts +2 -2
  28. package/dist/react-renderer/components/content/Image.d.ts.map +1 -1
  29. package/dist/react-renderer/components/content/Image.js +7 -7
  30. package/dist/react-renderer/components/content/Image.js.map +1 -1
  31. package/dist/react-renderer/components/content/Text.d.ts +2 -2
  32. package/dist/react-renderer/components/content/Text.d.ts.map +1 -1
  33. package/dist/react-renderer/components/content/Text.js +19 -17
  34. package/dist/react-renderer/components/content/Text.js.map +1 -1
  35. package/dist/react-renderer/components/content/Video.d.ts +2 -2
  36. package/dist/react-renderer/components/content/Video.d.ts.map +1 -1
  37. package/dist/react-renderer/components/content/Video.js +6 -6
  38. package/dist/react-renderer/components/content/Video.js.map +1 -1
  39. package/dist/react-renderer/components/content/index.d.ts +6 -6
  40. package/dist/react-renderer/components/content/index.js +6 -6
  41. package/dist/react-renderer/components/interactive/Button.d.ts +2 -2
  42. package/dist/react-renderer/components/interactive/Button.d.ts.map +1 -1
  43. package/dist/react-renderer/components/interactive/Button.js +6 -6
  44. package/dist/react-renderer/components/interactive/Button.js.map +1 -1
  45. package/dist/react-renderer/components/interactive/CheckBox.d.ts +2 -2
  46. package/dist/react-renderer/components/interactive/CheckBox.d.ts.map +1 -1
  47. package/dist/react-renderer/components/interactive/CheckBox.js +5 -5
  48. package/dist/react-renderer/components/interactive/CheckBox.js.map +1 -1
  49. package/dist/react-renderer/components/interactive/DateTimeInput.d.ts +2 -2
  50. package/dist/react-renderer/components/interactive/DateTimeInput.d.ts.map +1 -1
  51. package/dist/react-renderer/components/interactive/DateTimeInput.js +12 -12
  52. package/dist/react-renderer/components/interactive/DateTimeInput.js.map +1 -1
  53. package/dist/react-renderer/components/interactive/MultipleChoice.d.ts +2 -2
  54. package/dist/react-renderer/components/interactive/MultipleChoice.d.ts.map +1 -1
  55. package/dist/react-renderer/components/interactive/MultipleChoice.js +5 -5
  56. package/dist/react-renderer/components/interactive/MultipleChoice.js.map +1 -1
  57. package/dist/react-renderer/components/interactive/Slider.d.ts +2 -2
  58. package/dist/react-renderer/components/interactive/Slider.js +6 -6
  59. package/dist/react-renderer/components/interactive/Slider.js.map +1 -1
  60. package/dist/react-renderer/components/interactive/TextField.d.ts +2 -2
  61. package/dist/react-renderer/components/interactive/TextField.d.ts.map +1 -1
  62. package/dist/react-renderer/components/interactive/TextField.js +8 -12
  63. package/dist/react-renderer/components/interactive/TextField.js.map +1 -1
  64. package/dist/react-renderer/components/interactive/index.d.ts +6 -6
  65. package/dist/react-renderer/components/interactive/index.js +6 -6
  66. package/dist/react-renderer/components/layout/Card.d.ts +2 -2
  67. package/dist/react-renderer/components/layout/Card.d.ts.map +1 -1
  68. package/dist/react-renderer/components/layout/Card.js +9 -9
  69. package/dist/react-renderer/components/layout/Card.js.map +1 -1
  70. package/dist/react-renderer/components/layout/Column.d.ts +2 -2
  71. package/dist/react-renderer/components/layout/Column.d.ts.map +1 -1
  72. package/dist/react-renderer/components/layout/Column.js +11 -11
  73. package/dist/react-renderer/components/layout/Column.js.map +1 -1
  74. package/dist/react-renderer/components/layout/List.d.ts +2 -2
  75. package/dist/react-renderer/components/layout/List.d.ts.map +1 -1
  76. package/dist/react-renderer/components/layout/List.js +10 -10
  77. package/dist/react-renderer/components/layout/List.js.map +1 -1
  78. package/dist/react-renderer/components/layout/Modal.d.ts +2 -2
  79. package/dist/react-renderer/components/layout/Modal.d.ts.map +1 -1
  80. package/dist/react-renderer/components/layout/Modal.js +10 -10
  81. package/dist/react-renderer/components/layout/Modal.js.map +1 -1
  82. package/dist/react-renderer/components/layout/Row.d.ts +2 -2
  83. package/dist/react-renderer/components/layout/Row.d.ts.map +1 -1
  84. package/dist/react-renderer/components/layout/Row.js +11 -11
  85. package/dist/react-renderer/components/layout/Row.js.map +1 -1
  86. package/dist/react-renderer/components/layout/Tabs.d.ts +2 -2
  87. package/dist/react-renderer/components/layout/Tabs.d.ts.map +1 -1
  88. package/dist/react-renderer/components/layout/Tabs.js +6 -6
  89. package/dist/react-renderer/components/layout/Tabs.js.map +1 -1
  90. package/dist/react-renderer/components/layout/index.d.ts +6 -6
  91. package/dist/react-renderer/components/layout/index.js +6 -6
  92. package/dist/react-renderer/core/A2UIProvider.d.ts +4 -4
  93. package/dist/react-renderer/core/A2UIProvider.d.ts.map +1 -1
  94. package/dist/react-renderer/core/A2UIProvider.js +5 -5
  95. package/dist/react-renderer/core/A2UIProvider.js.map +1 -1
  96. package/dist/react-renderer/core/A2UIRenderer.d.ts +2 -2
  97. package/dist/react-renderer/core/A2UIRenderer.js +28 -28
  98. package/dist/react-renderer/core/A2UIViewer.d.ts +1 -1
  99. package/dist/react-renderer/core/A2UIViewer.js +14 -14
  100. package/dist/react-renderer/core/ComponentNode.d.ts +2 -2
  101. package/dist/react-renderer/core/ComponentNode.d.ts.map +1 -1
  102. package/dist/react-renderer/core/ComponentNode.js +5 -5
  103. package/dist/react-renderer/core/ComponentNode.js.map +1 -1
  104. package/dist/react-renderer/core/store.d.ts +2 -2
  105. package/dist/react-renderer/hooks/useA2UI.d.ts +1 -1
  106. package/dist/react-renderer/hooks/useA2UI.js +1 -1
  107. package/dist/react-renderer/hooks/useA2UIComponent.d.ts +1 -1
  108. package/dist/react-renderer/hooks/useA2UIComponent.d.ts.map +1 -1
  109. package/dist/react-renderer/hooks/useA2UIComponent.js +16 -7
  110. package/dist/react-renderer/hooks/useA2UIComponent.js.map +1 -1
  111. package/dist/react-renderer/index.d.ts +35 -35
  112. package/dist/react-renderer/index.d.ts.map +1 -1
  113. package/dist/react-renderer/index.js +29 -29
  114. package/dist/react-renderer/index.js.map +1 -1
  115. package/dist/react-renderer/lib/utils.d.ts +2 -2
  116. package/dist/react-renderer/lib/utils.d.ts.map +1 -1
  117. package/dist/react-renderer/lib/utils.js +3 -3
  118. package/dist/react-renderer/lib/utils.js.map +1 -1
  119. package/dist/react-renderer/registry/ComponentRegistry.d.ts +3 -3
  120. package/dist/react-renderer/registry/ComponentRegistry.d.ts.map +1 -1
  121. package/dist/react-renderer/registry/ComponentRegistry.js +2 -2
  122. package/dist/react-renderer/registry/ComponentRegistry.js.map +1 -1
  123. package/dist/react-renderer/registry/defaultCatalog.d.ts +1 -1
  124. package/dist/react-renderer/registry/defaultCatalog.js +37 -37
  125. package/dist/react-renderer/styles/index.d.ts.map +1 -1
  126. package/dist/react-renderer/styles/index.js +10 -9
  127. package/dist/react-renderer/styles/index.js.map +1 -1
  128. package/dist/react-renderer/theme/ThemeContext.d.ts +2 -2
  129. package/dist/react-renderer/theme/ThemeContext.d.ts.map +1 -1
  130. package/dist/react-renderer/theme/ThemeContext.js +3 -3
  131. package/dist/react-renderer/theme/ThemeContext.js.map +1 -1
  132. package/dist/react-renderer/theme/litTheme.d.ts +1 -1
  133. package/dist/react-renderer/theme/litTheme.js +193 -193
  134. package/dist/react-renderer/theme/utils.d.ts.map +1 -1
  135. package/dist/react-renderer/theme/utils.js +3 -3
  136. package/dist/react-renderer/theme/utils.js.map +1 -1
  137. package/dist/react-renderer/types.d.ts +2 -2
  138. package/dist/react-renderer/types.d.ts.map +1 -1
  139. package/package.json +2 -2
@@ -30,101 +30,101 @@
30
30
  // Element Styles (used for markdown rendering and form elements)
31
31
  // =============================================================================
32
32
  const elementA = {
33
- 'typography-f-sf': true,
34
- 'typography-fs-n': true,
35
- 'typography-w-500': true,
36
- 'layout-as-n': true,
37
- 'layout-dis-iflx': true,
38
- 'layout-al-c': true,
39
- 'typography-td-none': true,
40
- 'color-c-p40': true,
33
+ "typography-f-sf": true,
34
+ "typography-fs-n": true,
35
+ "typography-w-500": true,
36
+ "layout-as-n": true,
37
+ "layout-dis-iflx": true,
38
+ "layout-al-c": true,
39
+ "typography-td-none": true,
40
+ "color-c-p40": true,
41
41
  };
42
42
  const elementAudio = {
43
- 'layout-w-100': true,
43
+ "layout-w-100": true,
44
44
  };
45
45
  const elementBody = {
46
- 'typography-f-s': true,
47
- 'typography-fs-n': true,
48
- 'typography-w-400': true,
49
- 'layout-mt-0': true,
50
- 'layout-mb-2': true,
51
- 'typography-sz-bm': true,
52
- 'color-c-n10': true,
46
+ "typography-f-s": true,
47
+ "typography-fs-n": true,
48
+ "typography-w-400": true,
49
+ "layout-mt-0": true,
50
+ "layout-mb-2": true,
51
+ "typography-sz-bm": true,
52
+ "color-c-n10": true,
53
53
  };
54
54
  const elementButton = {
55
- 'typography-f-sf': true,
56
- 'typography-fs-n': true,
57
- 'typography-w-500': true,
58
- 'layout-pt-3': true,
59
- 'layout-pb-3': true,
60
- 'layout-pl-5': true,
61
- 'layout-pr-5': true,
62
- 'layout-mb-1': true,
63
- 'border-br-16': true,
64
- 'border-bw-0': true,
65
- 'border-c-n70': true,
66
- 'border-bs-s': true,
67
- 'color-bgc-s30': true,
68
- 'behavior-ho-80': true,
55
+ "typography-f-sf": true,
56
+ "typography-fs-n": true,
57
+ "typography-w-500": true,
58
+ "layout-pt-3": true,
59
+ "layout-pb-3": true,
60
+ "layout-pl-5": true,
61
+ "layout-pr-5": true,
62
+ "layout-mb-1": true,
63
+ "border-br-16": true,
64
+ "border-bw-0": true,
65
+ "border-c-n70": true,
66
+ "border-bs-s": true,
67
+ "color-bgc-s30": true,
68
+ "behavior-ho-80": true,
69
69
  };
70
70
  const elementHeading = {
71
- 'typography-f-sf': true,
72
- 'typography-fs-n': true,
73
- 'typography-w-500': true,
74
- 'layout-mt-0': true,
75
- 'layout-mb-2': true,
71
+ "typography-f-sf": true,
72
+ "typography-fs-n": true,
73
+ "typography-w-500": true,
74
+ "layout-mt-0": true,
75
+ "layout-mb-2": true,
76
76
  };
77
77
  const elementIframe = {
78
- 'behavior-sw-n': true,
78
+ "behavior-sw-n": true,
79
79
  };
80
80
  const elementInput = {
81
- 'typography-f-sf': true,
82
- 'typography-fs-n': true,
83
- 'typography-w-400': true,
84
- 'layout-pl-4': true,
85
- 'layout-pr-4': true,
86
- 'layout-pt-2': true,
87
- 'layout-pb-2': true,
88
- 'border-br-6': true,
89
- 'border-bw-1': true,
90
- 'color-bc-s70': true,
91
- 'border-bs-s': true,
92
- 'layout-as-n': true,
93
- 'color-c-n10': true,
81
+ "typography-f-sf": true,
82
+ "typography-fs-n": true,
83
+ "typography-w-400": true,
84
+ "layout-pl-4": true,
85
+ "layout-pr-4": true,
86
+ "layout-pt-2": true,
87
+ "layout-pb-2": true,
88
+ "border-br-6": true,
89
+ "border-bw-1": true,
90
+ "color-bc-s70": true,
91
+ "border-bs-s": true,
92
+ "layout-as-n": true,
93
+ "color-c-n10": true,
94
94
  };
95
95
  const elementP = {
96
- 'typography-f-s': true,
97
- 'typography-fs-n': true,
98
- 'typography-w-400': true,
99
- 'layout-m-0': true,
100
- 'typography-sz-bm': true,
101
- 'layout-as-n': true,
102
- 'color-c-n10': true,
96
+ "typography-f-s": true,
97
+ "typography-fs-n": true,
98
+ "typography-w-400": true,
99
+ "layout-m-0": true,
100
+ "typography-sz-bm": true,
101
+ "layout-as-n": true,
102
+ "color-c-n10": true,
103
103
  };
104
104
  const elementList = {
105
- 'typography-f-s': true,
106
- 'typography-fs-n': true,
107
- 'typography-w-400': true,
108
- 'layout-m-0': true,
109
- 'typography-sz-bm': true,
110
- 'layout-as-n': true,
111
- 'color-c-n10': true,
105
+ "typography-f-s": true,
106
+ "typography-fs-n": true,
107
+ "typography-w-400": true,
108
+ "layout-m-0": true,
109
+ "typography-sz-bm": true,
110
+ "layout-as-n": true,
111
+ "color-c-n10": true,
112
112
  };
113
113
  const elementPre = {
114
- 'typography-f-c': true,
115
- 'typography-fs-n': true,
116
- 'typography-w-400': true,
117
- 'typography-sz-bm': true,
118
- 'typography-ws-p': true,
119
- 'layout-as-n': true,
114
+ "typography-f-c": true,
115
+ "typography-fs-n": true,
116
+ "typography-w-400": true,
117
+ "typography-sz-bm": true,
118
+ "typography-ws-p": true,
119
+ "layout-as-n": true,
120
120
  };
121
121
  const elementTextarea = {
122
122
  ...elementInput,
123
- 'layout-r-none': true,
124
- 'layout-fs-c': true,
123
+ "layout-r-none": true,
124
+ "layout-fs-c": true,
125
125
  };
126
126
  const elementVideo = {
127
- 'layout-el-cv': true,
127
+ "layout-el-cv": true,
128
128
  };
129
129
  // =============================================================================
130
130
  // Theme Export
@@ -144,12 +144,12 @@ export const litTheme = {
144
144
  Icon: {},
145
145
  Image: {
146
146
  all: {
147
- 'border-br-5': true,
148
- 'layout-el-cv': true,
149
- 'layout-w-100': true,
150
- 'layout-h-100': true,
147
+ "border-br-5": true,
148
+ "layout-el-cv": true,
149
+ "layout-w-100": true,
150
+ "layout-h-100": true,
151
151
  },
152
- avatar: { 'is-avatar': true },
152
+ avatar: { "is-avatar": true },
153
153
  header: {},
154
154
  icon: {},
155
155
  largeFeature: {},
@@ -158,86 +158,86 @@ export const litTheme = {
158
158
  },
159
159
  Text: {
160
160
  all: {
161
- 'layout-w-100': true,
162
- 'layout-g-2': true,
161
+ "layout-w-100": true,
162
+ "layout-g-2": true,
163
163
  },
164
164
  h1: {
165
- 'typography-f-sf': true,
166
- 'typography-v-r': true,
167
- 'typography-w-400': true,
168
- 'layout-m-0': true,
169
- 'layout-p-0': true,
170
- 'typography-sz-hs': true,
165
+ "typography-f-sf": true,
166
+ "typography-v-r": true,
167
+ "typography-w-400": true,
168
+ "layout-m-0": true,
169
+ "layout-p-0": true,
170
+ "typography-sz-hs": true,
171
171
  },
172
172
  h2: {
173
- 'typography-f-sf': true,
174
- 'typography-v-r': true,
175
- 'typography-w-400': true,
176
- 'layout-m-0': true,
177
- 'layout-p-0': true,
178
- 'typography-sz-tl': true,
173
+ "typography-f-sf": true,
174
+ "typography-v-r": true,
175
+ "typography-w-400": true,
176
+ "layout-m-0": true,
177
+ "layout-p-0": true,
178
+ "typography-sz-tl": true,
179
179
  },
180
180
  h3: {
181
- 'typography-f-sf': true,
182
- 'typography-v-r': true,
183
- 'typography-w-400': true,
184
- 'layout-m-0': true,
185
- 'layout-p-0': true,
186
- 'typography-sz-tl': true,
181
+ "typography-f-sf": true,
182
+ "typography-v-r": true,
183
+ "typography-w-400": true,
184
+ "layout-m-0": true,
185
+ "layout-p-0": true,
186
+ "typography-sz-tl": true,
187
187
  },
188
188
  h4: {
189
- 'typography-f-sf': true,
190
- 'typography-v-r': true,
191
- 'typography-w-400': true,
192
- 'layout-m-0': true,
193
- 'layout-p-0': true,
194
- 'typography-sz-bl': true,
189
+ "typography-f-sf": true,
190
+ "typography-v-r": true,
191
+ "typography-w-400": true,
192
+ "layout-m-0": true,
193
+ "layout-p-0": true,
194
+ "typography-sz-bl": true,
195
195
  },
196
196
  h5: {
197
- 'typography-f-sf': true,
198
- 'typography-v-r': true,
199
- 'typography-w-400': true,
200
- 'layout-m-0': true,
201
- 'layout-p-0': true,
202
- 'typography-sz-bm': true,
197
+ "typography-f-sf": true,
198
+ "typography-v-r": true,
199
+ "typography-w-400": true,
200
+ "layout-m-0": true,
201
+ "layout-p-0": true,
202
+ "typography-sz-bm": true,
203
203
  },
204
204
  body: {},
205
205
  caption: {},
206
206
  },
207
207
  Video: {
208
- 'border-br-5': true,
209
- 'layout-el-cv': true,
208
+ "border-br-5": true,
209
+ "layout-el-cv": true,
210
210
  },
211
211
  // =========================================================================
212
212
  // Layout Components
213
213
  // =========================================================================
214
214
  Card: {
215
- 'border-br-9': true,
216
- 'layout-p-4': true,
217
- 'color-bgc-n100': true,
215
+ "border-br-9": true,
216
+ "layout-p-4": true,
217
+ "color-bgc-n100": true,
218
218
  },
219
219
  Column: {
220
- 'layout-g-2': true,
220
+ "layout-g-2": true,
221
221
  },
222
222
  List: {
223
- 'layout-g-4': true,
224
- 'layout-p-2': true,
223
+ "layout-g-4": true,
224
+ "layout-p-2": true,
225
225
  },
226
226
  Modal: {
227
227
  backdrop: {
228
- 'color-bbgc-p60_20': true,
228
+ "color-bbgc-p60_20": true,
229
229
  },
230
230
  element: {
231
- 'border-br-2': true,
232
- 'color-bgc-p100': true,
233
- 'layout-p-4': true,
234
- 'border-bw-1': true,
235
- 'border-bs-s': true,
236
- 'color-bc-p80': true,
231
+ "border-br-2": true,
232
+ "color-bgc-p100": true,
233
+ "layout-p-4": true,
234
+ "border-bw-1": true,
235
+ "border-bs-s": true,
236
+ "color-bc-p80": true,
237
237
  },
238
238
  },
239
239
  Row: {
240
- 'layout-g-4': true,
240
+ "layout-g-4": true,
241
241
  },
242
242
  Tabs: {
243
243
  container: {},
@@ -251,69 +251,69 @@ export const litTheme = {
251
251
  // Interactive Components
252
252
  // =========================================================================
253
253
  Button: {
254
- 'layout-pt-2': true,
255
- 'layout-pb-2': true,
256
- 'layout-pl-3': true,
257
- 'layout-pr-3': true,
258
- 'border-br-12': true,
259
- 'border-bw-0': true,
260
- 'border-bs-s': true,
261
- 'color-bgc-p30': true,
262
- 'color-c-p100': true, // White text on dark purple background
263
- 'behavior-ho-70': true,
264
- 'typography-w-400': true,
254
+ "layout-pt-2": true,
255
+ "layout-pb-2": true,
256
+ "layout-pl-3": true,
257
+ "layout-pr-3": true,
258
+ "border-br-12": true,
259
+ "border-bw-0": true,
260
+ "border-bs-s": true,
261
+ "color-bgc-p30": true,
262
+ "color-c-p100": true, // White text on dark purple background
263
+ "behavior-ho-70": true,
264
+ "typography-w-400": true,
265
265
  },
266
266
  CheckBox: {
267
267
  container: {
268
- 'layout-dsp-iflex': true,
269
- 'layout-al-c': true,
268
+ "layout-dsp-iflex": true,
269
+ "layout-al-c": true,
270
270
  },
271
271
  element: {
272
- 'layout-m-0': true,
273
- 'layout-mr-2': true,
274
- 'layout-p-2': true,
275
- 'border-br-12': true,
276
- 'border-bw-1': true,
277
- 'border-bs-s': true,
278
- 'color-bgc-p100': true,
279
- 'color-bc-p60': true,
280
- 'color-c-n30': true,
281
- 'color-c-p30': true,
272
+ "layout-m-0": true,
273
+ "layout-mr-2": true,
274
+ "layout-p-2": true,
275
+ "border-br-12": true,
276
+ "border-bw-1": true,
277
+ "border-bs-s": true,
278
+ "color-bgc-p100": true,
279
+ "color-bc-p60": true,
280
+ "color-c-n30": true,
281
+ "color-c-p30": true,
282
282
  },
283
283
  label: {
284
- 'color-c-p30': true,
285
- 'typography-f-sf': true,
286
- 'typography-v-r': true,
287
- 'typography-w-400': true,
288
- 'layout-flx-1': true,
289
- 'typography-sz-ll': true,
284
+ "color-c-p30": true,
285
+ "typography-f-sf": true,
286
+ "typography-v-r": true,
287
+ "typography-w-400": true,
288
+ "layout-flx-1": true,
289
+ "typography-sz-ll": true,
290
290
  },
291
291
  },
292
292
  DateTimeInput: {
293
293
  container: {
294
- 'typography-sz-bm': true,
295
- 'layout-w-100': true,
296
- 'layout-g-2': true,
297
- 'layout-dsp-flexhor': true,
298
- 'layout-al-c': true,
299
- 'typography-ws-nw': true,
294
+ "typography-sz-bm": true,
295
+ "layout-w-100": true,
296
+ "layout-g-2": true,
297
+ "layout-dsp-flexhor": true,
298
+ "layout-al-c": true,
299
+ "typography-ws-nw": true,
300
300
  },
301
301
  label: {
302
- 'color-c-p30': true,
303
- 'typography-sz-bm': true,
302
+ "color-c-p30": true,
303
+ "typography-sz-bm": true,
304
304
  },
305
305
  element: {
306
- 'layout-pt-2': true,
307
- 'layout-pb-2': true,
308
- 'layout-pl-3': true,
309
- 'layout-pr-3': true,
310
- 'border-br-2': true,
311
- 'border-bw-1': true,
312
- 'border-bs-s': true,
313
- 'color-bgc-p100': true,
314
- 'color-bc-p60': true,
315
- 'color-c-n30': true,
316
- 'color-c-p30': true,
306
+ "layout-pt-2": true,
307
+ "layout-pb-2": true,
308
+ "layout-pl-3": true,
309
+ "layout-pr-3": true,
310
+ "border-br-2": true,
311
+ "border-bw-1": true,
312
+ "border-bs-s": true,
313
+ "color-bgc-p100": true,
314
+ "color-bc-p60": true,
315
+ "color-c-n30": true,
316
+ "color-c-p30": true,
317
317
  },
318
318
  },
319
319
  MultipleChoice: {
@@ -328,30 +328,30 @@ export const litTheme = {
328
328
  },
329
329
  TextField: {
330
330
  container: {
331
- 'typography-sz-bm': true,
332
- 'layout-w-100': true,
333
- 'layout-g-2': true,
334
- 'layout-dsp-flexhor': true,
335
- 'layout-al-c': true,
336
- 'typography-ws-nw': true,
331
+ "typography-sz-bm": true,
332
+ "layout-w-100": true,
333
+ "layout-g-2": true,
334
+ "layout-dsp-flexhor": true,
335
+ "layout-al-c": true,
336
+ "typography-ws-nw": true,
337
337
  },
338
338
  label: {
339
- 'layout-flx-0': true,
340
- 'color-c-p30': true,
339
+ "layout-flx-0": true,
340
+ "color-c-p30": true,
341
341
  },
342
342
  element: {
343
- 'typography-sz-bm': true,
344
- 'layout-pt-2': true,
345
- 'layout-pb-2': true,
346
- 'layout-pl-3': true,
347
- 'layout-pr-3': true,
348
- 'border-br-2': true,
349
- 'border-bw-1': true,
350
- 'border-bs-s': true,
351
- 'color-bgc-p100': true,
352
- 'color-bc-p60': true,
353
- 'color-c-n30': true,
354
- 'color-c-p30': true,
343
+ "typography-sz-bm": true,
344
+ "layout-pt-2": true,
345
+ "layout-pb-2": true,
346
+ "layout-pl-3": true,
347
+ "layout-pr-3": true,
348
+ "border-br-2": true,
349
+ "border-bw-1": true,
350
+ "border-bs-s": true,
351
+ "color-bgc-p100": true,
352
+ "color-bc-p60": true,
353
+ "color-c-n30": true,
354
+ "color-c-p30": true,
355
355
  },
356
356
  },
357
357
  },
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/react-renderer/theme/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,MAAM,CAMtF;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GACzC,KAAK,CAAC,aAAa,GAAG,SAAS,CAejC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/react-renderer/theme/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C,MAAM,CAMR;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GACzC,KAAK,CAAC,aAAa,GAAG,SAAS,CAiBjC"}
@@ -10,11 +10,11 @@
10
10
  */
11
11
  export function classMapToString(classMap) {
12
12
  if (!classMap)
13
- return '';
13
+ return "";
14
14
  return Object.entries(classMap)
15
15
  .filter(([, enabled]) => enabled)
16
16
  .map(([className]) => className)
17
- .join(' ');
17
+ .join(" ");
18
18
  }
19
19
  /**
20
20
  * Converts an additional styles object (Record<string, string>) to a React style object.
@@ -32,7 +32,7 @@ export function stylesToObject(styles) {
32
32
  const result = {};
33
33
  for (const [key, value] of Object.entries(styles)) {
34
34
  // Preserve CSS custom properties (--var-name) as-is
35
- if (key.startsWith('--')) {
35
+ if (key.startsWith("--")) {
36
36
  result[key] = value;
37
37
  }
38
38
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/react-renderer/theme/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAA6C;IAC5E,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IACzB,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;SAC5B,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC;SAChC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC;SAC/B,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAC5B,MAA0C;IAE1C,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAElE,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,oDAAoD;QACpD,I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C,GAAG,CAAC,GAAG,KAAK,CAAC;QACtB,CAAC;aAAM,CAAC;YACN,4CAA4C;YAC5C,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACtD,MAAM,CAAC,WAAW,EAAE,CACrB,CAAC;YACF,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,MAA6B,CAAC;AACvC,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ComponentType } from 'react';
2
- import type { Types, Primitives } from '@a2ui/lit/0.8';
1
+ import type { ComponentType } from "react";
2
+ import type { Types, Primitives } from "@a2ui/lit/0.8";
3
3
  export type { Types, Primitives };
4
4
  export type AnyComponentNode = Types.AnyComponentNode;
5
5
  export type Surface = Types.Surface;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/react-renderer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGvD,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;AAGlC,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,CAAC;AACtD,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;AACxC,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AAChC,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,qBAAqB,CAAC;AAChE,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,sBAAsB,CAAC;AAClE,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;AAClC,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SA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AAO,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/C,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,qBAAqB,CACpC,CAAC,SAAS,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,gBAAgB;IAEzD,gEAAgE;IAChE,SAAS,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;IACrE,iDAAiD;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAC7B,OAAO,EAAE,KAAK,CAAC,sBAAsB,KAClC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,kCAAkC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;CACrB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@copilotkit/a2ui-renderer",
3
3
  "private": false,
4
- "version": "1.51.4-next.7",
4
+ "version": "1.51.4",
5
5
  "description": "A2UI Renderer for CopilotKit - render A2UI surfaces in React applications",
6
6
  "homepage": "https://github.com/CopilotKit/CopilotKit",
7
7
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "zod": "^3.25.75"
43
43
  },
44
44
  "peerDependencies": {
45
- "@copilotkit/react-core": ">=1.51.4-next.7",
45
+ "@copilotkit/react-core": ">=1.51.4",
46
46
  "react": "^18 || ^19 || ^19.0.0-rc",
47
47
  "react-dom": "^18 || ^19 || ^19.0.0-rc"
48
48
  },