aeon-ui-engine 1.3.1 → 1.4.0

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 (153) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/package.json +1 -1
  3. package/packages/cli/README.md +13 -1
  4. package/packages/cli/dist/bin.js +23 -5
  5. package/packages/cli/dist/chunk-5L47SLNV.js +247 -0
  6. package/packages/cli/dist/index.d.ts +17 -1
  7. package/packages/cli/dist/index.js +5 -3
  8. package/packages/cli/src/bin.ts +21 -3
  9. package/packages/cli/src/index.ts +1 -0
  10. package/packages/cli/src/migrate.ts +170 -0
  11. package/packages/core/dist/index.d.ts +35 -7
  12. package/packages/core/dist/index.js +102 -2
  13. package/packages/core/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  14. package/packages/core/src/anatomy.ts +39 -3
  15. package/packages/core/src/identicon.test.ts +39 -0
  16. package/packages/core/src/identicon.ts +79 -0
  17. package/packages/core/src/index.ts +1 -0
  18. package/packages/panda/panda.config.ts +4 -0
  19. package/packages/panda/src/recipes/composer.ts +58 -4
  20. package/packages/panda/src/recipes/file-upload.ts +100 -0
  21. package/packages/panda/src/recipes/index.ts +2 -0
  22. package/packages/panda/src/recipes/range-slider.ts +59 -0
  23. package/packages/panda/src/recipes/thread.ts +77 -2
  24. package/packages/panda/styled-system/recipes/aeon-composer.d.ts +1 -1
  25. package/packages/panda/styled-system/recipes/aeon-composer.mjs +12 -0
  26. package/packages/panda/styled-system/recipes/aeon-file-upload.d.ts +31 -0
  27. package/packages/panda/styled-system/recipes/aeon-file-upload.mjs +61 -0
  28. package/packages/panda/styled-system/recipes/aeon-range-slider.d.ts +31 -0
  29. package/packages/panda/styled-system/recipes/aeon-range-slider.mjs +49 -0
  30. package/packages/panda/styled-system/recipes/aeon-thread.d.ts +1 -1
  31. package/packages/panda/styled-system/recipes/aeon-thread.mjs +20 -0
  32. package/packages/panda/styled-system/recipes/index.d.ts +2 -0
  33. package/packages/panda/styled-system/recipes/index.mjs +2 -0
  34. package/packages/panda/styled-system/styles.css +292 -0
  35. package/packages/primitives/dist/chunk-CV4UXXZF.js +44 -0
  36. package/packages/primitives/dist/chunk-IZKQSCYU.js +164 -0
  37. package/packages/primitives/dist/index.d.ts +2 -0
  38. package/packages/primitives/dist/index.js +22 -6
  39. package/packages/primitives/dist/machines/file-upload.d.ts +39 -0
  40. package/packages/primitives/dist/machines/file-upload.js +8 -0
  41. package/packages/primitives/dist/machines/range-slider.d.ts +129 -0
  42. package/packages/primitives/dist/machines/range-slider.js +12 -0
  43. package/packages/primitives/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  44. package/packages/primitives/src/__tests__/file-upload.test.ts +25 -0
  45. package/packages/primitives/src/__tests__/range-slider.test.ts +39 -0
  46. package/packages/primitives/src/index.ts +2 -0
  47. package/packages/primitives/src/machines/file-upload.ts +55 -0
  48. package/packages/primitives/src/machines/range-slider.ts +209 -0
  49. package/packages/react/dist/index.d.ts +117 -25
  50. package/packages/react/dist/index.js +1731 -1006
  51. package/packages/react/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  52. package/packages/react/src/button/index.tsx +50 -15
  53. package/packages/react/src/combobox/index.tsx +13 -8
  54. package/packages/react/src/composer/index.tsx +58 -3
  55. package/packages/react/src/file-upload/index.tsx +322 -0
  56. package/packages/react/src/index.ts +3 -0
  57. package/packages/react/src/prompt/index.tsx +45 -0
  58. package/packages/react/src/range-slider/index.tsx +322 -0
  59. package/packages/react/src/thread/index.tsx +74 -3
  60. package/packages/react/src/tooltip/index.tsx +48 -22
  61. package/packages/react/src/utils/slot.tsx +47 -0
  62. package/packages/schemas/dist/index.d.ts +73 -24
  63. package/packages/schemas/dist/index.js +514 -50
  64. package/packages/schemas/json/appNav.json +146 -0
  65. package/packages/schemas/json/appShell.json +151 -0
  66. package/packages/schemas/json/avatar.json +130 -0
  67. package/packages/schemas/json/bar.json +126 -0
  68. package/packages/schemas/json/button.json +6 -0
  69. package/packages/schemas/json/catalog.json +3496 -15
  70. package/packages/schemas/json/combobox.json +19 -7
  71. package/packages/schemas/json/composer.json +125 -0
  72. package/packages/schemas/json/content.json +167 -0
  73. package/packages/schemas/json/conversation.json +166 -0
  74. package/packages/schemas/json/entry.json +182 -0
  75. package/packages/schemas/json/fileUpload.json +168 -0
  76. package/packages/schemas/json/identity.json +147 -0
  77. package/packages/schemas/json/listRow.json +131 -0
  78. package/packages/schemas/json/metricStrip.json +132 -0
  79. package/packages/schemas/json/nav.json +136 -0
  80. package/packages/schemas/json/panel.json +143 -0
  81. package/packages/schemas/json/pinInput.json +112 -0
  82. package/packages/schemas/json/profileHeader.json +138 -0
  83. package/packages/schemas/json/prompt.json +155 -0
  84. package/packages/schemas/json/radioGroup.json +130 -0
  85. package/packages/schemas/json/rangeSlider.json +157 -0
  86. package/packages/schemas/json/separator.json +105 -0
  87. package/packages/schemas/json/slider.json +147 -0
  88. package/packages/schemas/json/statusBanner.json +149 -0
  89. package/packages/schemas/json/stickyBar.json +153 -0
  90. package/packages/schemas/json/thread.json +129 -0
  91. package/packages/schemas/json/tooltip.json +21 -7
  92. package/packages/schemas/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  93. package/packages/schemas/prompts/cursorrules.md +6 -4
  94. package/packages/schemas/prompts/statecharts.md +23 -2
  95. package/packages/schemas/prompts/system.md +2 -2
  96. package/packages/schemas/registry/catalog.json +313 -4
  97. package/packages/schemas/registry/components/appNav.json +146 -0
  98. package/packages/schemas/registry/components/appShell.json +151 -0
  99. package/packages/schemas/registry/components/avatar.json +130 -0
  100. package/packages/schemas/registry/components/bar.json +126 -0
  101. package/packages/schemas/registry/components/button.json +6 -0
  102. package/packages/schemas/registry/components/combobox.json +19 -7
  103. package/packages/schemas/registry/components/composer.json +125 -0
  104. package/packages/schemas/registry/components/content.json +167 -0
  105. package/packages/schemas/registry/components/conversation.json +166 -0
  106. package/packages/schemas/registry/components/entry.json +182 -0
  107. package/packages/schemas/registry/components/fileUpload.json +168 -0
  108. package/packages/schemas/registry/components/identity.json +147 -0
  109. package/packages/schemas/registry/components/listRow.json +131 -0
  110. package/packages/schemas/registry/components/metricStrip.json +132 -0
  111. package/packages/schemas/registry/components/nav.json +136 -0
  112. package/packages/schemas/registry/components/panel.json +143 -0
  113. package/packages/schemas/registry/components/pinInput.json +112 -0
  114. package/packages/schemas/registry/components/profileHeader.json +138 -0
  115. package/packages/schemas/registry/components/prompt.json +155 -0
  116. package/packages/schemas/registry/components/radioGroup.json +130 -0
  117. package/packages/schemas/registry/components/rangeSlider.json +157 -0
  118. package/packages/schemas/registry/components/separator.json +105 -0
  119. package/packages/schemas/registry/components/slider.json +147 -0
  120. package/packages/schemas/registry/components/statusBanner.json +149 -0
  121. package/packages/schemas/registry/components/stickyBar.json +153 -0
  122. package/packages/schemas/registry/components/thread.json +129 -0
  123. package/packages/schemas/registry/components/tooltip.json +21 -7
  124. package/packages/schemas/registry/machines/accordion.json +58 -0
  125. package/packages/schemas/registry/machines/appNav.json +108 -0
  126. package/packages/schemas/registry/machines/appShell.json +128 -0
  127. package/packages/schemas/registry/machines/contentRegion.json +314 -0
  128. package/packages/schemas/registry/machines/fileUpload.json +182 -0
  129. package/packages/schemas/registry/machines/panel.json +131 -0
  130. package/packages/schemas/registry/machines/popover.json +143 -0
  131. package/packages/schemas/registry/machines/rangeSlider.json +201 -0
  132. package/packages/schemas/registry/machines/slider.json +151 -0
  133. package/packages/schemas/registry/machines/stickyBar.json +261 -0
  134. package/packages/schemas/registry/machines/tabs.json +58 -0
  135. package/packages/schemas/registry/machines/toast.json +89 -0
  136. package/packages/schemas/registry/machines/toggle.json +134 -0
  137. package/packages/schemas/scripts/emit.ts +27 -0
  138. package/packages/schemas/src/components.ts +499 -6
  139. package/packages/schemas/src/index.test.ts +83 -0
  140. package/packages/schemas/src/index.ts +1 -0
  141. package/packages/schemas/src/machine-id.ts +7 -0
  142. package/packages/schemas/src/prompts.ts +25 -4
  143. package/packages/schemas/src/registry.ts +28 -39
  144. package/packages/schemas/tsconfig.json +1 -1
  145. package/packages/ui/dist/index.d.ts +100 -46
  146. package/packages/ui/dist/index.js +463 -341
  147. package/packages/ui/src/composer.tsx +37 -11
  148. package/packages/ui/src/file-upload.tsx +36 -0
  149. package/packages/ui/src/index.ts +2 -0
  150. package/packages/ui/src/prompt.tsx +3 -0
  151. package/packages/ui/src/range-slider.tsx +24 -0
  152. package/packages/ui/src/thread.tsx +40 -0
  153. package/packages/cli/dist/chunk-IW5NT2Z2.js +0 -103
@@ -0,0 +1,108 @@
1
+ {
2
+ "id": "appNav",
3
+ "initial": "ready",
4
+ "events": [
5
+ "SET_SECTION",
6
+ "PUSH",
7
+ "REPLACE",
8
+ "POP",
9
+ "POP_TO",
10
+ "CLEAR",
11
+ "RESET"
12
+ ],
13
+ "tree": {
14
+ "key": "appNav",
15
+ "id": "appNav",
16
+ "type": "compound",
17
+ "events": [
18
+ "SET_SECTION",
19
+ "PUSH",
20
+ "REPLACE",
21
+ "POP",
22
+ "POP_TO",
23
+ "CLEAR",
24
+ "RESET"
25
+ ],
26
+ "transitions": [],
27
+ "children": [
28
+ {
29
+ "key": "ready",
30
+ "id": "appNav.ready",
31
+ "type": "atomic",
32
+ "events": [
33
+ "SET_SECTION",
34
+ "PUSH",
35
+ "REPLACE",
36
+ "POP",
37
+ "POP_TO",
38
+ "CLEAR",
39
+ "RESET"
40
+ ],
41
+ "transitions": [
42
+ {
43
+ "event": "SET_SECTION",
44
+ "target": [],
45
+ "guarded": false
46
+ },
47
+ {
48
+ "event": "PUSH",
49
+ "target": [],
50
+ "guarded": false
51
+ },
52
+ {
53
+ "event": "REPLACE",
54
+ "target": [],
55
+ "guarded": false
56
+ },
57
+ {
58
+ "event": "POP",
59
+ "target": [],
60
+ "guarded": true
61
+ },
62
+ {
63
+ "event": "POP_TO",
64
+ "target": [],
65
+ "guarded": false
66
+ },
67
+ {
68
+ "event": "CLEAR",
69
+ "target": [],
70
+ "guarded": false
71
+ },
72
+ {
73
+ "event": "RESET",
74
+ "target": [],
75
+ "guarded": false
76
+ }
77
+ ],
78
+ "children": []
79
+ }
80
+ ]
81
+ },
82
+ "states": {
83
+ "appNav": {
84
+ "events": [
85
+ "SET_SECTION",
86
+ "PUSH",
87
+ "REPLACE",
88
+ "POP",
89
+ "POP_TO",
90
+ "CLEAR",
91
+ "RESET"
92
+ ],
93
+ "type": "compound"
94
+ },
95
+ "appNav.ready": {
96
+ "events": [
97
+ "SET_SECTION",
98
+ "PUSH",
99
+ "REPLACE",
100
+ "POP",
101
+ "POP_TO",
102
+ "CLEAR",
103
+ "RESET"
104
+ ],
105
+ "type": "atomic"
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "id": "appShell",
3
+ "initial": "idle",
4
+ "events": [
5
+ "OPEN_OVERLAY",
6
+ "SHOW_DOCK",
7
+ "HIDE_DOCK",
8
+ "SET_DOCK",
9
+ "CLOSE_OVERLAY"
10
+ ],
11
+ "tree": {
12
+ "key": "appShell",
13
+ "id": "appShell",
14
+ "type": "compound",
15
+ "events": [
16
+ "OPEN_OVERLAY",
17
+ "SHOW_DOCK",
18
+ "HIDE_DOCK",
19
+ "SET_DOCK",
20
+ "CLOSE_OVERLAY"
21
+ ],
22
+ "transitions": [],
23
+ "children": [
24
+ {
25
+ "key": "idle",
26
+ "id": "appShell.idle",
27
+ "type": "atomic",
28
+ "events": [
29
+ "OPEN_OVERLAY",
30
+ "SHOW_DOCK",
31
+ "HIDE_DOCK",
32
+ "SET_DOCK"
33
+ ],
34
+ "transitions": [
35
+ {
36
+ "event": "OPEN_OVERLAY",
37
+ "target": [
38
+ "overlayOpen"
39
+ ],
40
+ "guarded": false
41
+ },
42
+ {
43
+ "event": "SHOW_DOCK",
44
+ "target": [],
45
+ "guarded": false
46
+ },
47
+ {
48
+ "event": "HIDE_DOCK",
49
+ "target": [],
50
+ "guarded": false
51
+ },
52
+ {
53
+ "event": "SET_DOCK",
54
+ "target": [],
55
+ "guarded": false
56
+ }
57
+ ],
58
+ "children": []
59
+ },
60
+ {
61
+ "key": "overlayOpen",
62
+ "id": "appShell.overlayOpen",
63
+ "type": "atomic",
64
+ "events": [
65
+ "CLOSE_OVERLAY",
66
+ "SHOW_DOCK",
67
+ "HIDE_DOCK",
68
+ "SET_DOCK"
69
+ ],
70
+ "transitions": [
71
+ {
72
+ "event": "CLOSE_OVERLAY",
73
+ "target": [
74
+ "idle"
75
+ ],
76
+ "guarded": false
77
+ },
78
+ {
79
+ "event": "SHOW_DOCK",
80
+ "target": [],
81
+ "guarded": false
82
+ },
83
+ {
84
+ "event": "HIDE_DOCK",
85
+ "target": [],
86
+ "guarded": false
87
+ },
88
+ {
89
+ "event": "SET_DOCK",
90
+ "target": [],
91
+ "guarded": false
92
+ }
93
+ ],
94
+ "children": []
95
+ }
96
+ ]
97
+ },
98
+ "states": {
99
+ "appShell": {
100
+ "events": [
101
+ "OPEN_OVERLAY",
102
+ "SHOW_DOCK",
103
+ "HIDE_DOCK",
104
+ "SET_DOCK",
105
+ "CLOSE_OVERLAY"
106
+ ],
107
+ "type": "compound"
108
+ },
109
+ "appShell.idle": {
110
+ "events": [
111
+ "OPEN_OVERLAY",
112
+ "SHOW_DOCK",
113
+ "HIDE_DOCK",
114
+ "SET_DOCK"
115
+ ],
116
+ "type": "atomic"
117
+ },
118
+ "appShell.overlayOpen": {
119
+ "events": [
120
+ "CLOSE_OVERLAY",
121
+ "SHOW_DOCK",
122
+ "HIDE_DOCK",
123
+ "SET_DOCK"
124
+ ],
125
+ "type": "atomic"
126
+ }
127
+ }
128
+ }
@@ -0,0 +1,314 @@
1
+ {
2
+ "id": "contentRegion",
3
+ "initial": "idle",
4
+ "events": [
5
+ "LOAD",
6
+ "RESET",
7
+ "RESOLVE",
8
+ "REJECT",
9
+ "RETRY",
10
+ "LOAD_MORE",
11
+ "SUCCEED",
12
+ "MORE_DONE"
13
+ ],
14
+ "tree": {
15
+ "key": "contentRegion",
16
+ "id": "contentRegion",
17
+ "type": "compound",
18
+ "events": [
19
+ "LOAD",
20
+ "RESET",
21
+ "RESOLVE",
22
+ "REJECT",
23
+ "RETRY",
24
+ "LOAD_MORE",
25
+ "SUCCEED",
26
+ "MORE_DONE"
27
+ ],
28
+ "transitions": [],
29
+ "children": [
30
+ {
31
+ "key": "idle",
32
+ "id": "contentRegion.idle",
33
+ "type": "atomic",
34
+ "events": [
35
+ "LOAD",
36
+ "RESET"
37
+ ],
38
+ "transitions": [
39
+ {
40
+ "event": "LOAD",
41
+ "target": [
42
+ "pending"
43
+ ],
44
+ "guarded": false
45
+ },
46
+ {
47
+ "event": "RESET",
48
+ "target": [],
49
+ "guarded": false
50
+ }
51
+ ],
52
+ "children": []
53
+ },
54
+ {
55
+ "key": "pending",
56
+ "id": "contentRegion.pending",
57
+ "type": "atomic",
58
+ "events": [
59
+ "RESOLVE",
60
+ "REJECT"
61
+ ],
62
+ "transitions": [
63
+ {
64
+ "event": "RESOLVE",
65
+ "target": [
66
+ "empty",
67
+ "ready"
68
+ ],
69
+ "guarded": true
70
+ },
71
+ {
72
+ "event": "REJECT",
73
+ "target": [
74
+ "error"
75
+ ],
76
+ "guarded": false
77
+ }
78
+ ],
79
+ "children": []
80
+ },
81
+ {
82
+ "key": "empty",
83
+ "id": "contentRegion.empty",
84
+ "type": "atomic",
85
+ "events": [
86
+ "LOAD",
87
+ "RETRY",
88
+ "RESET"
89
+ ],
90
+ "transitions": [
91
+ {
92
+ "event": "LOAD",
93
+ "target": [
94
+ "pending"
95
+ ],
96
+ "guarded": false
97
+ },
98
+ {
99
+ "event": "RETRY",
100
+ "target": [
101
+ "pending"
102
+ ],
103
+ "guarded": false
104
+ },
105
+ {
106
+ "event": "RESET",
107
+ "target": [
108
+ "idle"
109
+ ],
110
+ "guarded": false
111
+ }
112
+ ],
113
+ "children": []
114
+ },
115
+ {
116
+ "key": "error",
117
+ "id": "contentRegion.error",
118
+ "type": "atomic",
119
+ "events": [
120
+ "RETRY",
121
+ "LOAD",
122
+ "RESET"
123
+ ],
124
+ "transitions": [
125
+ {
126
+ "event": "RETRY",
127
+ "target": [
128
+ "pending"
129
+ ],
130
+ "guarded": false
131
+ },
132
+ {
133
+ "event": "LOAD",
134
+ "target": [
135
+ "pending"
136
+ ],
137
+ "guarded": false
138
+ },
139
+ {
140
+ "event": "RESET",
141
+ "target": [
142
+ "idle"
143
+ ],
144
+ "guarded": false
145
+ }
146
+ ],
147
+ "children": []
148
+ },
149
+ {
150
+ "key": "ready",
151
+ "id": "contentRegion.ready",
152
+ "type": "atomic",
153
+ "events": [
154
+ "LOAD",
155
+ "LOAD_MORE",
156
+ "SUCCEED",
157
+ "RESET"
158
+ ],
159
+ "transitions": [
160
+ {
161
+ "event": "LOAD",
162
+ "target": [
163
+ "pending"
164
+ ],
165
+ "guarded": false
166
+ },
167
+ {
168
+ "event": "LOAD_MORE",
169
+ "target": [
170
+ "loadingMore"
171
+ ],
172
+ "guarded": false
173
+ },
174
+ {
175
+ "event": "SUCCEED",
176
+ "target": [
177
+ "success"
178
+ ],
179
+ "guarded": false
180
+ },
181
+ {
182
+ "event": "RESET",
183
+ "target": [
184
+ "idle"
185
+ ],
186
+ "guarded": false
187
+ }
188
+ ],
189
+ "children": []
190
+ },
191
+ {
192
+ "key": "loadingMore",
193
+ "id": "contentRegion.loadingMore",
194
+ "type": "atomic",
195
+ "events": [
196
+ "MORE_DONE",
197
+ "REJECT"
198
+ ],
199
+ "transitions": [
200
+ {
201
+ "event": "MORE_DONE",
202
+ "target": [
203
+ "ready",
204
+ "ready"
205
+ ],
206
+ "guarded": true
207
+ },
208
+ {
209
+ "event": "REJECT",
210
+ "target": [
211
+ "error"
212
+ ],
213
+ "guarded": false
214
+ }
215
+ ],
216
+ "children": []
217
+ },
218
+ {
219
+ "key": "success",
220
+ "id": "contentRegion.success",
221
+ "type": "atomic",
222
+ "events": [
223
+ "LOAD",
224
+ "RESET"
225
+ ],
226
+ "transitions": [
227
+ {
228
+ "event": "LOAD",
229
+ "target": [
230
+ "pending"
231
+ ],
232
+ "guarded": false
233
+ },
234
+ {
235
+ "event": "RESET",
236
+ "target": [
237
+ "idle"
238
+ ],
239
+ "guarded": false
240
+ }
241
+ ],
242
+ "children": []
243
+ }
244
+ ]
245
+ },
246
+ "states": {
247
+ "contentRegion": {
248
+ "events": [
249
+ "LOAD",
250
+ "RESET",
251
+ "RESOLVE",
252
+ "REJECT",
253
+ "RETRY",
254
+ "LOAD_MORE",
255
+ "SUCCEED",
256
+ "MORE_DONE"
257
+ ],
258
+ "type": "compound"
259
+ },
260
+ "contentRegion.idle": {
261
+ "events": [
262
+ "LOAD",
263
+ "RESET"
264
+ ],
265
+ "type": "atomic"
266
+ },
267
+ "contentRegion.pending": {
268
+ "events": [
269
+ "RESOLVE",
270
+ "REJECT"
271
+ ],
272
+ "type": "atomic"
273
+ },
274
+ "contentRegion.empty": {
275
+ "events": [
276
+ "LOAD",
277
+ "RETRY",
278
+ "RESET"
279
+ ],
280
+ "type": "atomic"
281
+ },
282
+ "contentRegion.error": {
283
+ "events": [
284
+ "RETRY",
285
+ "LOAD",
286
+ "RESET"
287
+ ],
288
+ "type": "atomic"
289
+ },
290
+ "contentRegion.ready": {
291
+ "events": [
292
+ "LOAD",
293
+ "LOAD_MORE",
294
+ "SUCCEED",
295
+ "RESET"
296
+ ],
297
+ "type": "atomic"
298
+ },
299
+ "contentRegion.loadingMore": {
300
+ "events": [
301
+ "MORE_DONE",
302
+ "REJECT"
303
+ ],
304
+ "type": "atomic"
305
+ },
306
+ "contentRegion.success": {
307
+ "events": [
308
+ "LOAD",
309
+ "RESET"
310
+ ],
311
+ "type": "atomic"
312
+ }
313
+ }
314
+ }