@oxy.so/bloom 20.0.0 → 21.1.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 (245) hide show
  1. package/docs/adoption-matrix.mdx +6 -7
  2. package/docs/agent-avatar.mdx +8 -5
  3. package/docs/agent-creator.mdx +13 -11
  4. package/docs/multi-agent-chat.mdx +6 -2
  5. package/docs/public-parts.mdx +2 -2
  6. package/docs/task-catalog.json +1 -1
  7. package/docs/task-catalog.mdx +1 -1
  8. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +16 -11
  9. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  10. package/lib/commonjs/agent-avatar/character.js +4 -4
  11. package/lib/commonjs/agent-avatar/use-static-portraits.js +51 -0
  12. package/lib/commonjs/agent-avatar/use-static-portraits.js.map +1 -0
  13. package/lib/commonjs/agent-creator/AgentCreator.js +4 -0
  14. package/lib/commonjs/agent-creator/AgentCreator.js.map +1 -1
  15. package/lib/commonjs/agent-creator/AgentCreator.web.js +12 -8
  16. package/lib/commonjs/agent-creator/AgentCreator.web.js.map +1 -1
  17. package/lib/commonjs/agent-creator/AgentCreatorBase.js +93 -48
  18. package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
  19. package/lib/commonjs/agent-creator/CustomColorPicker.js +431 -0
  20. package/lib/commonjs/agent-creator/CustomColorPicker.js.map +1 -0
  21. package/lib/commonjs/agent-creator/GlossArt.js +212 -0
  22. package/lib/commonjs/agent-creator/GlossArt.js.map +1 -0
  23. package/lib/commonjs/agent-creator/ShapeSilhouette.js +4 -3
  24. package/lib/commonjs/agent-creator/ShapeSilhouette.js.map +1 -1
  25. package/lib/commonjs/agent-creator/context.js.map +1 -1
  26. package/lib/commonjs/agent-creator/messages.js +22 -1
  27. package/lib/commonjs/agent-creator/messages.js.map +1 -1
  28. package/lib/commonjs/agent-creator/paint.js +19 -7
  29. package/lib/commonjs/agent-creator/paint.js.map +1 -1
  30. package/lib/commonjs/agent-creator/rainbow-artwork.js +10 -0
  31. package/lib/commonjs/agent-creator/rainbow-artwork.js.map +1 -0
  32. package/lib/commonjs/agent-creator/shared.js +28 -0
  33. package/lib/commonjs/agent-creator/shared.js.map +1 -1
  34. package/lib/commonjs/locale/translations/ar.js +22 -1
  35. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  36. package/lib/commonjs/locale/translations/bn.js +22 -1
  37. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  38. package/lib/commonjs/locale/translations/ca.js +22 -1
  39. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  40. package/lib/commonjs/locale/translations/de.js +22 -1
  41. package/lib/commonjs/locale/translations/de.js.map +1 -1
  42. package/lib/commonjs/locale/translations/es.js +22 -1
  43. package/lib/commonjs/locale/translations/es.js.map +1 -1
  44. package/lib/commonjs/locale/translations/fr.js +22 -1
  45. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  46. package/lib/commonjs/locale/translations/hi.js +22 -1
  47. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  48. package/lib/commonjs/locale/translations/id.js +22 -1
  49. package/lib/commonjs/locale/translations/id.js.map +1 -1
  50. package/lib/commonjs/locale/translations/it.js +22 -1
  51. package/lib/commonjs/locale/translations/it.js.map +1 -1
  52. package/lib/commonjs/locale/translations/ja.js +22 -1
  53. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  54. package/lib/commonjs/locale/translations/pt.js +22 -1
  55. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  56. package/lib/commonjs/locale/translations/ru.js +22 -1
  57. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  58. package/lib/commonjs/locale/translations/tr.js +22 -1
  59. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  60. package/lib/commonjs/locale/translations/zh.js +22 -1
  61. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  62. package/lib/commonjs/multi-agent-chat/data.js +2 -2
  63. package/lib/commonjs/multi-agent-chat/data.js.map +1 -1
  64. package/lib/commonjs/multi-agent-chat/selected-agent-preview.js +19 -0
  65. package/lib/commonjs/multi-agent-chat/selected-agent-preview.js.map +1 -0
  66. package/lib/module/agent-avatar/VectorCharacterAvatar.js +16 -11
  67. package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  68. package/lib/module/agent-avatar/character.js +4 -4
  69. package/lib/module/agent-avatar/use-static-portraits.js +44 -0
  70. package/lib/module/agent-avatar/use-static-portraits.js.map +1 -0
  71. package/lib/module/agent-creator/AgentCreator.js +4 -0
  72. package/lib/module/agent-creator/AgentCreator.js.map +1 -1
  73. package/lib/module/agent-creator/AgentCreator.web.js +4 -0
  74. package/lib/module/agent-creator/AgentCreator.web.js.map +1 -1
  75. package/lib/module/agent-creator/AgentCreatorBase.js +89 -44
  76. package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
  77. package/lib/module/agent-creator/CustomColorPicker.js +426 -0
  78. package/lib/module/agent-creator/CustomColorPicker.js.map +1 -0
  79. package/lib/module/agent-creator/GlossArt.js +207 -0
  80. package/lib/module/agent-creator/GlossArt.js.map +1 -0
  81. package/lib/module/agent-creator/ShapeSilhouette.js +4 -3
  82. package/lib/module/agent-creator/ShapeSilhouette.js.map +1 -1
  83. package/lib/module/agent-creator/context.js.map +1 -1
  84. package/lib/module/agent-creator/messages.js +22 -1
  85. package/lib/module/agent-creator/messages.js.map +1 -1
  86. package/lib/module/agent-creator/paint.js +18 -7
  87. package/lib/module/agent-creator/paint.js.map +1 -1
  88. package/lib/module/agent-creator/rainbow-artwork.js +6 -0
  89. package/lib/module/agent-creator/rainbow-artwork.js.map +1 -0
  90. package/lib/module/agent-creator/shared.js +26 -0
  91. package/lib/module/agent-creator/shared.js.map +1 -1
  92. package/lib/module/locale/translations/ar.js +22 -1
  93. package/lib/module/locale/translations/ar.js.map +1 -1
  94. package/lib/module/locale/translations/bn.js +22 -1
  95. package/lib/module/locale/translations/bn.js.map +1 -1
  96. package/lib/module/locale/translations/ca.js +22 -1
  97. package/lib/module/locale/translations/ca.js.map +1 -1
  98. package/lib/module/locale/translations/de.js +22 -1
  99. package/lib/module/locale/translations/de.js.map +1 -1
  100. package/lib/module/locale/translations/es.js +22 -1
  101. package/lib/module/locale/translations/es.js.map +1 -1
  102. package/lib/module/locale/translations/fr.js +22 -1
  103. package/lib/module/locale/translations/fr.js.map +1 -1
  104. package/lib/module/locale/translations/hi.js +22 -1
  105. package/lib/module/locale/translations/hi.js.map +1 -1
  106. package/lib/module/locale/translations/id.js +22 -1
  107. package/lib/module/locale/translations/id.js.map +1 -1
  108. package/lib/module/locale/translations/it.js +22 -1
  109. package/lib/module/locale/translations/it.js.map +1 -1
  110. package/lib/module/locale/translations/ja.js +22 -1
  111. package/lib/module/locale/translations/ja.js.map +1 -1
  112. package/lib/module/locale/translations/pt.js +22 -1
  113. package/lib/module/locale/translations/pt.js.map +1 -1
  114. package/lib/module/locale/translations/ru.js +22 -1
  115. package/lib/module/locale/translations/ru.js.map +1 -1
  116. package/lib/module/locale/translations/tr.js +22 -1
  117. package/lib/module/locale/translations/tr.js.map +1 -1
  118. package/lib/module/locale/translations/zh.js +22 -1
  119. package/lib/module/locale/translations/zh.js.map +1 -1
  120. package/lib/module/multi-agent-chat/data.js +3 -3
  121. package/lib/module/multi-agent-chat/data.js.map +1 -1
  122. package/lib/module/multi-agent-chat/selected-agent-preview.js +9 -0
  123. package/lib/module/multi-agent-chat/selected-agent-preview.js.map +1 -0
  124. package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/agent-avatar/character.d.ts +4 -4
  126. package/lib/typescript/commonjs/agent-avatar/use-static-portraits.d.ts +16 -0
  127. package/lib/typescript/commonjs/agent-avatar/use-static-portraits.d.ts.map +1 -0
  128. package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts +9 -0
  132. package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts.map +1 -0
  133. package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts +9 -0
  134. package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts.map +1 -0
  135. package/lib/typescript/commonjs/agent-creator/ShapeSilhouette.d.ts +1 -1
  136. package/lib/typescript/commonjs/agent-creator/ShapeSilhouette.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/agent-creator/context.d.ts +13 -1
  138. package/lib/typescript/commonjs/agent-creator/context.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/agent-creator/messages.d.ts +11 -0
  140. package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
  141. package/lib/typescript/commonjs/agent-creator/paint.d.ts +9 -4
  142. package/lib/typescript/commonjs/agent-creator/paint.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts +3 -0
  144. package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/agent-creator/shared.d.ts +7 -0
  146. package/lib/typescript/commonjs/agent-creator/shared.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/agent-creator/types.d.ts +4 -7
  148. package/lib/typescript/commonjs/agent-creator/types.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/avatar/types.d.ts +1 -2
  150. package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  152. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  158. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  159. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  160. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  161. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  162. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  163. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  164. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  165. package/lib/typescript/commonjs/multi-agent-chat/data.d.ts.map +1 -1
  166. package/lib/typescript/commonjs/multi-agent-chat/selected-agent-preview.d.ts +7 -0
  167. package/lib/typescript/commonjs/multi-agent-chat/selected-agent-preview.d.ts.map +1 -0
  168. package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  169. package/lib/typescript/module/agent-avatar/character.d.ts +4 -4
  170. package/lib/typescript/module/agent-avatar/use-static-portraits.d.ts +16 -0
  171. package/lib/typescript/module/agent-avatar/use-static-portraits.d.ts.map +1 -0
  172. package/lib/typescript/module/agent-creator/AgentCreator.d.ts.map +1 -1
  173. package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts.map +1 -1
  174. package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  175. package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts +9 -0
  176. package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts.map +1 -0
  177. package/lib/typescript/module/agent-creator/GlossArt.d.ts +9 -0
  178. package/lib/typescript/module/agent-creator/GlossArt.d.ts.map +1 -0
  179. package/lib/typescript/module/agent-creator/ShapeSilhouette.d.ts +1 -1
  180. package/lib/typescript/module/agent-creator/ShapeSilhouette.d.ts.map +1 -1
  181. package/lib/typescript/module/agent-creator/context.d.ts +13 -1
  182. package/lib/typescript/module/agent-creator/context.d.ts.map +1 -1
  183. package/lib/typescript/module/agent-creator/messages.d.ts +11 -0
  184. package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
  185. package/lib/typescript/module/agent-creator/paint.d.ts +9 -4
  186. package/lib/typescript/module/agent-creator/paint.d.ts.map +1 -1
  187. package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts +3 -0
  188. package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts.map +1 -0
  189. package/lib/typescript/module/agent-creator/shared.d.ts +7 -0
  190. package/lib/typescript/module/agent-creator/shared.d.ts.map +1 -1
  191. package/lib/typescript/module/agent-creator/types.d.ts +4 -7
  192. package/lib/typescript/module/agent-creator/types.d.ts.map +1 -1
  193. package/lib/typescript/module/avatar/types.d.ts +1 -2
  194. package/lib/typescript/module/avatar/types.d.ts.map +1 -1
  195. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  196. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  197. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  198. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  199. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  200. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  201. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  202. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  203. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  204. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  205. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  206. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  207. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  208. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  209. package/lib/typescript/module/multi-agent-chat/data.d.ts.map +1 -1
  210. package/lib/typescript/module/multi-agent-chat/selected-agent-preview.d.ts +7 -0
  211. package/lib/typescript/module/multi-agent-chat/selected-agent-preview.d.ts.map +1 -0
  212. package/package.json +18 -1
  213. package/src/__tests__/support/adoption-matrix.ts +0 -5
  214. package/src/agent-avatar/VectorCharacterAvatar.tsx +19 -16
  215. package/src/agent-avatar/character.ts +4 -4
  216. package/src/agent-avatar/use-static-portraits.ts +50 -0
  217. package/src/agent-creator/AgentCreator.tsx +4 -0
  218. package/src/agent-creator/AgentCreator.web.tsx +4 -0
  219. package/src/agent-creator/AgentCreatorBase.tsx +83 -39
  220. package/src/agent-creator/CustomColorPicker.tsx +443 -0
  221. package/src/agent-creator/GlossArt.tsx +160 -0
  222. package/src/agent-creator/ShapeSilhouette.tsx +4 -3
  223. package/src/agent-creator/context.ts +2 -0
  224. package/src/agent-creator/messages.ts +37 -1
  225. package/src/agent-creator/paint.ts +17 -7
  226. package/src/agent-creator/rainbow-artwork.ts +5 -0
  227. package/src/agent-creator/shared.ts +27 -0
  228. package/src/agent-creator/types.ts +4 -7
  229. package/src/avatar/types.ts +1 -2
  230. package/src/locale/translations/ar.ts +23 -1
  231. package/src/locale/translations/bn.ts +23 -1
  232. package/src/locale/translations/ca.ts +23 -1
  233. package/src/locale/translations/de.ts +23 -1
  234. package/src/locale/translations/es.ts +23 -1
  235. package/src/locale/translations/fr.ts +23 -1
  236. package/src/locale/translations/hi.ts +23 -1
  237. package/src/locale/translations/id.ts +23 -1
  238. package/src/locale/translations/it.ts +23 -1
  239. package/src/locale/translations/ja.ts +23 -1
  240. package/src/locale/translations/pt.ts +23 -1
  241. package/src/locale/translations/ru.ts +23 -1
  242. package/src/locale/translations/tr.ts +23 -1
  243. package/src/locale/translations/zh.ts +23 -1
  244. package/src/multi-agent-chat/data.ts +5 -3
  245. package/src/multi-agent-chat/selected-agent-preview.ts +6 -0
@@ -37,7 +37,7 @@ The classification is an EQUALITY in `src/__tests__/adoption-matrix.test.ts`, no
37
37
 
38
38
  | contract | applies to | reads | delegated | n/a¹ | adaptation |
39
39
  | --- | --- | --- | --- | --- | --- |
40
- | Field membership | 54 | 30 | 0 | 24 | 0 |
40
+ | Field membership | 54 | 31 | 0 | 23 | 0 |
41
41
  | Control presentation | 64 | 63 | 1 | 0 | 0 |
42
42
  | Trigger composition | 11 | 8 | 0 | 3 | 0 |
43
43
  | Controlled / uncontrolled state | 61 | 58 | 2 | 1 | 0 |
@@ -53,7 +53,6 @@ None.
53
53
 
54
54
  - `address` (does-not-apply) — writes a selection role on a ROW or a chip rather than on a form control — a list the user picks from, inside its own container, never inside a `Field`.
55
55
  - `agent-chat` (does-not-apply) — renders a bare `TextInput` deliberately — a composer or a search box that draws its own chrome and is not a form field a `Field` wraps. Wiring it to `TextFieldInput` would give it the field shell it exists not to draw.
56
- - `agent-creator` (does-not-apply) — the only form role is the `[role="textbox"]` selector its undo shortcut uses to leave keystrokes typed into a field alone, not a node it renders. Its fields are `TextFieldInput` and `Textarea`, which read the contract themselves, and its colour control is a `ColorSwatchPicker`.
57
56
  - `canvas` (does-not-apply) — The adjustable handle changes panel detents, not a form value; its name comes from the panel accessibilityLabel.
58
57
  - `carrier-quote` (does-not-apply) — writes a selection role on a ROW or a chip rather than on a form control — a list the user picks from, inside its own container, never inside a `Field`.
59
58
  - `chat-composer` (does-not-apply) — renders a bare `TextInput` deliberately — a composer or a search box that draws its own chrome and is not a form field a `Field` wraps. Wiring it to `TextFieldInput` would give it the field shell it exists not to draw.
@@ -101,9 +100,9 @@ None.
101
100
  | `activity-heatmap` | `@oxy.so/bloom/activity-heatmap` + barrel | universal | `activity-heatmap.mdx` | yes | 3 | | | | |
102
101
  | `address` | `@oxy.so/bloom/address` + barrel | universal | `address.mdx` | yes | 4 | n/a¹ | reads | | |
103
102
  | `admonition` | `@oxy.so/bloom/admonition` + barrel | universal | `admonition.mdx` | yes | 6 | | reads | | |
104
- | `agent-avatar` | `@oxy.so/bloom/agent-avatar` + barrel | universal | `agent-avatar.mdx` | yes | 47 | | | | |
103
+ | `agent-avatar` | `@oxy.so/bloom/agent-avatar` + barrel | universal | `agent-avatar.mdx` | yes | 48 | | | | |
105
104
  | `agent-chat` | `@oxy.so/bloom/agent-chat` + barrel | web fork | `agent-chat.mdx` | yes | 3 | n/a¹ | | | reads |
106
- | `agent-creator` | `@oxy.so/bloom/agent-creator` + barrel | web fork | `agent-creator.mdx` | yes | 15 | n/a¹ | | | |
105
+ | `agent-creator` | `@oxy.so/bloom/agent-creator` + barrel | web fork | `agent-creator.mdx` | yes | 17 | reads | | | |
107
106
  | `agent-limits-card` | `@oxy.so/bloom/agent-limits-card` + barrel | universal | `agent-limits-card.mdx` | yes | 2 | | | | delegated |
108
107
  | `agent-log` | `@oxy.so/bloom/agent-log` + barrel | universal | `agent-log.mdx` | yes | 3 | | reads | | reads |
109
108
  | `agent-progress` | `@oxy.so/bloom/agent-progress` + barrel | universal | `agent-progress.mdx` | yes | 5 | | | | reads |
@@ -153,7 +152,7 @@ None.
153
152
  | `choice-list` | `@oxy.so/bloom/choice-list` + barrel | universal | `choice-list.mdx` | yes | 2 | | | | |
154
153
  | `code` | `@oxy.so/bloom/code` + barrel | universal | `code.mdx` | yes | 5 | | | | |
155
154
  | `collapsible` | `@oxy.so/bloom/collapsible` + barrel | web fork | `collapsible.mdx` | yes | 5 | | | | |
156
- | `color-swatch-picker` | `@oxy.so/bloom/color-swatch-picker` + barrel | universal | `color-swatch-picker.mdx` | yes | 2 | | | | |
155
+ | `color-swatch-picker` | `@oxy.so/bloom/color-swatch-picker` + barrel | universal | `color-swatch-picker.mdx` | yes | 1 | | | | |
157
156
  | `command` | `@oxy.so/bloom/command` + barrel | web fork | `command.mdx` | yes | 2 | n/a¹ | | | reads |
158
157
  | `composer-loader` | `@oxy.so/bloom/composer-loader` + barrel | web fork | `composer-loader.mdx` | yes | 5 | | | | |
159
158
  | `composer-panel` | `@oxy.so/bloom/composer-panel` + barrel | web fork | `composer-panel.mdx` | yes | 12 | n/a¹ | | | reads |
@@ -184,7 +183,7 @@ None.
184
183
  | `expandable-text` | `@oxy.so/bloom/expandable-text` + barrel | universal | `expandable-text.mdx` | yes | 1 | | | | reads |
185
184
  | `fab` | `@oxy.so/bloom/fab` + barrel | web fork | `fab.mdx` | yes | 4 | | reads | | |
186
185
  | `fact-strip` | `@oxy.so/bloom/fact-strip` + barrel | universal | `fact-strip.mdx` | yes | 1 | | | | |
187
- | `field` | `@oxy.so/bloom/field` + barrel | universal | `field.mdx` | yes | 19 | reads | | | |
186
+ | `field` | `@oxy.so/bloom/field` + barrel | universal | `field.mdx` | yes | 21 | reads | | | |
188
187
  | `file-upload` | `@oxy.so/bloom/file-upload` + barrel | universal | `file-upload.mdx` | yes | 5 | reads | | | |
189
188
  | `fill` | `@oxy.so/bloom/fill` + barrel | universal | `fill.mdx` | yes | 2 | | | | |
190
189
  | `floating` | internal | universal | — | — | 31 | n/a¹ | reads | reads | reads |
@@ -326,7 +325,7 @@ None.
326
325
  | `tenancy` | `@oxy.so/bloom/tenancy` + barrel | universal | `tenancy.mdx` | yes | 5 | | reads | | |
327
326
  | `text-field` | `@oxy.so/bloom/text-field` + barrel | universal | `text-field.mdx` | yes | 27 | reads | reads | | |
328
327
  | `textarea` | `@oxy.so/bloom/textarea` + barrel | universal | `textarea.mdx` | yes | 6 | reads | reads | | n/a¹ |
329
- | `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes | 694 | | | n/a¹ | reads |
328
+ | `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes | 695 | | | n/a¹ | reads |
330
329
  | `theme-toggle` | `@oxy.so/bloom/theme-toggle` + barrel | universal | `theme-toggle.mdx` | yes | 2 | n/a¹ | | | |
331
330
  | `toast` | `@oxy.so/bloom/toast` + barrel | universal | `toast.mdx` | yes | 21 | | | | |
332
331
  | `tooltip` | `@oxy.so/bloom/tooltip` + barrel | web fork | `tooltip.mdx` | yes | 8 | | reads | | |
@@ -98,11 +98,11 @@ in current choices or templates.
98
98
  - `characterFromLegacy(saved)` migrates an avatar saved before 10 (see
99
99
  [Migrating to 10.0](/docs/migrating-to-10.0)).
100
100
  - `avatarCharacterInColor(character, color)` paints a character in its ACCOUNT's colour:
101
- `color` is what Oxy stores as `User.color`, a Bloom colour preset key (or a legacy `#rgb` /
102
- `#rrggbb`). The body takes the preset's identity seed, lifted to the skin floor, as
103
- `bodyColor`; every part is kept and `color` is dropped. A colour that does not resolve
101
+ `color` is what Oxy stores as `User.color`: a Bloom colour preset key or a hex (`#rrggbb`,
102
+ `#rgb`), both ordinary account colours. The body takes the preset's identity seed, or the hex,
103
+ lifted to the skin floor, as `bodyColor` (so a hex an editor wrote back paints exactly itself); every part is kept and `color` is dropped. A colour that does not resolve
104
104
  (`null`, `undefined`, an unknown key) returns the character unchanged. This is the one place a
105
- colour preset becomes an avatar paint: a bot is drawn in the colour its profile is themed with.
105
+ account colour becomes an avatar paint: a bot is drawn in the colour its profile is themed with.
106
106
 
107
107
  ### A bot is drawn in its account's colour
108
108
 
@@ -135,7 +135,10 @@ composition and projection; native drawing uses `react-native-svg`.
135
135
  The old geometry engine under `runtime/` is an **offline extraction tool**, not an app
136
136
  renderer. `bun run build:avatar-vectors` (`scripts/build-avatar-vector-assets.mjs`) samples its shapes, parts and authored
137
137
  motion into vector data. Keep generated assets, import mappings and static portraits in
138
- sync when rebuilding that source data. Normal library builds and package verification
138
+ sync when rebuilding that source data. The static portraits (`vector-static`, ~310 KB of paths)
139
+ are drawn only by the agent creator's shape arc and eye picker, never by an avatar; they load on
140
+ first use through `use-static-portraits` (`import()`), and `static-portraits-lazy.test.ts` keeps
141
+ every other module from importing them. Normal library builds and package verification
139
142
  must ship all vector assets; no consumer can depend on the extractor's filesystem. The generator
140
143
  ends by packing the assets (shared payloads in `vector-assets/blobs/`, one `catalog/<kind>-<id>.ts`
141
144
  module per asset); do not edit those files by hand.
@@ -6,7 +6,7 @@ order: 105
6
6
 
7
7
  # AgentCreator
8
8
 
9
- A controlled editor for an agent's name, label, description, colour, appearance and response preferences. The host owns the agent, saving, and the surrounding panel. The implementation is shared across web, iOS and Android; the platform entry points bind Bloom's existing select surfaces.
9
+ A controlled editor for an agent's name, label, description, colour, appearance and response preferences. The host owns the agent, saving, and the surrounding panel. The implementation is shared across web, iOS and Android; the platform entry points bind Bloom's existing select and popover surfaces.
10
10
 
11
11
  ```tsx
12
12
  import { useState } from 'react';
@@ -18,7 +18,7 @@ const [agent, setAgent] = useState<AgentCreatorAgent>({
18
18
  color: 'lagoon',
19
19
  });
20
20
 
21
- <AgentCreator agent={agent} onChange={setAgent} colors={acceptedColors} onClose={closePanel} />;
21
+ <AgentCreator agent={agent} onChange={setAgent} onClose={closePanel} />;
22
22
  ```
23
23
 
24
24
  Mount under `BloomProvider` and give the editor a bounded height. Layout classes resolve through Bloom's styled primitives; web consumers must scan Bloom's built `lib/` in their NativeWind/Tailwind pipeline.
@@ -27,11 +27,11 @@ Mount under `BloomProvider` and give the editor a bounded height. Layout classes
27
27
 
28
28
  `agent.avatar` is an `AvatarCharacter` ([Agent Avatar](/docs/agent-avatar)) without a colour of its
29
29
  own: `{ preset }` or complete parts. `agent.color` is the agent's colour, its ACCOUNT's (`User.color`
30
- in Oxy, a Bloom colour preset key), and it is the only colour the editor knows: every character
31
- it draws is painted in it (`avatarCharacterInColor`), and every character it hands back carries
32
- its parts and no paint (`color` and `bodyColor` are dropped, undo and redo included). A colour
33
- Bloom cannot resolve leaves a character's own paint (or its preset's); a character with neither
34
- is drawn in the first colour offered. Every part control writes one edit through
30
+ in Oxy: a Bloom colour preset key or a `#rrggbb`, any colour), and it is the only colour the editor
31
+ knows: every character it draws is painted in it (`avatarCharacterInColor`), and every character
32
+ it hands back carries its parts and no paint (`color` and `bodyColor` are dropped, undo and redo
33
+ included). A colour Bloom cannot resolve leaves a character's own paint (or its preset's); a
34
+ character with neither is drawn in the first named swatch. Every part control writes one edit through
35
35
  `updateAvatarCharacter`, so the saved character is always written out in full: choosing a body
36
36
  keeps the face and the hat.
37
37
 
@@ -41,7 +41,7 @@ contract and the profile/preferences layout are unchanged.
41
41
 
42
42
  - **Shape arc:** 28 distinct silhouettes, including the 13 flat forms, in one 210px circular track (an unbounded index, spring, drag and wheel). Press a silhouette; arrows, Home and End select on web. Crossing between bodies retains the mounted avatar. RTL reverses horizontal movement.
43
43
  - **Eye orbit:** the 12 current eye styles, including Todd and Clippo. Each body defines its own eye positions and size, so every style follows the layout of the shape it sits on.
44
- - **Colour:** one `ColorSwatchPicker` of Bloom colour presets, each named by its `displayName`. It offers `colors` (default `FREE_COLOR_NAMES`), filtered to the presets Bloom knows; a host passes exactly what its account service accepts, so no colour offered is refused on save. Choosing one calls `onChange` with the new `color`; it is not a character edit and does not enter the undo history.
44
+ - **Colour:** nine glossy named swatches (`CHARACTER_COLORS`) and a custom `#rrggbb` picker behind the rainbow swatch. Either writes the ACCOUNT's colour: `onChange({ ...agent, color })` with the hex lifted to the avatar skin floor (`normalizeAvatarSkinColor`), so the stored colour is exactly the drawn one. Any colour can be chosen; nothing restricts it to presets. A named swatch is active when its lifted hex equals the body hex of `agent.color`; the custom swatch is active, showing that colour, when it equals none of the nine (a preset key, say). The custom picker opens on the body hex. A colour change is not a character edit and does not enter the undo history.
45
45
  - **Template, eyewear and accessory:** Bloom Select rows. Templates (`CHARACTER_TEMPLATES`) are creation choices, complete characters that start Felipe orange with sleepy eyes where the saved `blue_beret` preset is blue with oval ones; a character that is exactly one shows its name, and any edit shows Custom.
46
46
 
47
47
  Upright eye chips orbit at a 116px radius; dragging or a mouse wheel rotates the orbit. Hover, focus, backgrounding and reduced motion pause automatic movement. The shape selector uses a 210px circular track, an unbounded index, spring, drag and wheel geometry. Choose a silhouette by pressing it; keyboard arrows, Home and End select shapes on web. BloomProvider’s direction reverses horizontal movement in RTL.
@@ -50,7 +50,7 @@ Appearance selection updates immediately. While the selected geometry is being p
50
50
 
51
51
  Undo and redo retain up to 50 immutable character snapshots without changing the name, description, colour, or speech preferences. Characters compare by their parts, so a change of paint alone is no edit. Restore original returns to the character at the start of this editing session and can itself be undone. Switching agent IDs or receiving a genuinely external character replacement starts a new baseline; controlled echoes and profile-only changes retain history. On web, Ctrl/Cmd+Z and redo shortcuts work inside the editor without intercepting text input undo.
52
52
 
53
- The body takes the colour preset's identity seed, lifted to the shared minimum skin lightness (L* 45), so the avatar is drawn in the colour the agent's profile is themed with. Speech, colour and appearance edits preserve the agent’s identity and unrelated fields.
53
+ The custom picker contains a saturation/brightness field, hue rail and hex entry. The visible field and every committed hex use the shared minimum skin lightness (L* 45); typing a darker hex shows its permitted normalized value. HSV state preserves the selected hue while dragging through gray; invalid hex input writes nothing. The sampled SVG field is memoized separately, so saturation/brightness dragging moves the thumb without rebuilding the color field. A preset key paints the body its identity seed, lifted the same way, so the avatar is drawn in the colour the agent's profile is themed with. Speech, colour and appearance edits preserve the agent’s identity and unrelated fields.
54
54
 
55
55
  Equivalent legacy shape IDs share one editor choice. Opening a saved avatar only aliases its selected chip; it never rewrites its shape or template. Selecting a different silhouette writes the chosen canonical ID. Catalog comparison stories retain all saved IDs for compatibility inspection.
56
56
 
@@ -94,12 +94,14 @@ Web previews use the browser's local device voice catalog and cancel playback wh
94
94
 
95
95
  Fixed labels, hints and accessible control names use the `AGENT_CREATOR_MESSAGES` catalog and Bloom’s 15 supported locales. `locale` overrides the root locale for this editor; `labels` overrides individual catalog entries. Agent names, descriptions and host voice names remain consumer data.
96
96
 
97
- Profile inputs, textarea, select, switch, segmented control, colour swatches and close control reuse Bloom’s current primitives. Original layout and interaction class chains are retained. Bloom’s active palette and materials supply their colors.
97
+ Profile inputs, textarea, select, switch, segmented control, close control and popover reuse Bloom’s current primitives. Original layout and interaction class chains are retained. Bloom’s active palette and materials supply their colors. The custom HSV picker reads `Field` membership: disabling the enclosing field disables its gestures, keyboard updates and hex input; field errors and descriptions associate with its inputs.
98
+
99
+ The original rainbow artwork and glossy color artwork are retained.
98
100
 
99
101
  Web applies the original shape mask and scroll blur; native uses SVG clipping and edge gradients for CSS effects its renderer cannot express. Native gesture hit areas remain rectangular, and native scroll fades do not apply a backdrop blur. These adaptations need device verification.
100
102
 
101
103
  ## Validation boundary
102
104
 
103
- Tests verify profile and avatar edits preserve unrelated data, preference updates, host speech preview, colour changes and paintless characters, canonical shape choices, SVG rendering selection for every preview, and availability without a hosted engine. Jest does not execute gesture arbitration or the Reanimated frame loop; motion, wheel hit testing, and native speech providers require browser/device verification.
105
+ Tests verify profile and avatar edits preserve unrelated data, preference updates, host speech preview, colour changes written as the account's hex, paintless characters, canonical shape choices, SVG rendering selection for every preview, and availability without a hosted engine. Jest does not execute gesture arbitration or the Reanimated frame loop; motion, wheel hit testing, custom picker dragging, and native speech providers require browser/device verification.
104
106
 
105
107
  Track listeners retain their DOM attachment and read current callbacks; changing profile text does not rebuild shape/eye choices. Tests also cover callback replacement, wheel removal, disabled pending gestures, unmount cancellation and translated choice updates.
@@ -35,11 +35,15 @@ the chosen agents as one large avatar, a trio, or a ring from four up. Each avat
35
35
  fly into the empty chat and from there into the header's profile.
36
36
 
37
37
  ```tsx
38
- import { SelectedAgentPreview } from '@oxy.so/bloom/multi-agent-chat';
38
+ import { SelectedAgentPreview } from '@oxy.so/bloom/multi-agent-chat/selected-agent-preview';
39
39
 
40
40
  <SelectedAgentPreview agents={agents} flights={flights} anchor="empty" />
41
41
  ```
42
42
 
43
+ Import it from its own entry, `multi-agent-chat/selected-agent-preview`. The `multi-agent-chat`
44
+ barrel is the whole template (its chat, sidebar, marketplace, agent creator and settings pages);
45
+ a host that imported the preview from it linked ~140 KB of template it never drew.
46
+
43
47
  Without `onRespond`, the workspace returns sample responses. Each participant
44
48
  responds in conversation order. Stop cancels the request and reveal timers;
45
49
  partial replies remain visible. Chat switching keeps each draft and generation
@@ -54,7 +58,7 @@ edits for host persistence. The workspace persists in `storage` — the same
54
58
  Invalid stored data falls back to the initial demo.
55
59
 
56
60
  An agent is an [`AgentCreatorAgent`](./agent-creator.mdx): its `avatar` holds the character's
57
- parts and its `color` (a Bloom colour preset key) is its colour. Every avatar the workspace draws
61
+ parts and its `color` (an account colour: a Bloom colour preset key or a `#rrggbb`) is its colour. Every avatar the workspace draws
58
62
  for an agent, the marketplace's bots included, is `avatarCharacterInColor(agent.avatar,
59
63
  agent.color)`. A workspace saved before agents had a colour restores them in `blue`.
60
64
 
@@ -8,7 +8,7 @@ order: 4
8
8
 
9
9
  # Public React part census
10
10
 
11
- The TypeScript checker resolves **1485 React part-contract identities** through **934 native** and **934 web** package entrypoints. Aliases/namespaces and wildcard subpaths are retained below; platform implementations with the same normalized source path and symbol share one contract identity, even when their implementations differ. A family count or a hook import cannot establish part adoption.
11
+ The TypeScript checker resolves **1485 React part-contract identities** through **935 native** and **935 web** package entrypoints. Aliases/namespaces and wildcard subpaths are retained below; platform implementations with the same normalized source path and symbol share one contract identity, even when their implementations differ. A family count or a hook import cannot establish part adoption.
12
12
 
13
13
  The generator follows exported value symbols, star exports, namespace exports, default exports, callable static members, object-valued parts, memo/forwardRef/factory and class signatures. Cycles terminate by symbol and type; real aliases share identity while inline members retain their lexical owner. External part declarations retain their package provenance and do not establish a Bloom-owned implementation. React-callable exports with component names (including default/underscore names), exotic markers or element-return signatures are component candidates; lower-case aliases retain their resolved identity; ambiguous any/unknown values fail the unresolved-symbol gate. Type-only exports and lower-case scalar-return hooks/utilities are not components. Size vocabularies come from resolved prop types, including aliases, unions and subsets—not spelling patterns.
14
14
 
@@ -1228,7 +1228,7 @@ Routes use `native:` / `web:` followed by the package subpath and export name. `
1228
1228
  | `src/motion/RollingText.tsx#RollingText` (`src/motion/RollingText.tsx`) | `native:.#RollingText` · `native:./motion#RollingText` · `web:.#RollingText` · `web:./motion#RollingText` | no public size prop | pending |
1229
1229
  | `src/motion/ScreenTransition.tsx#ScreenTransition` (`src/motion/ScreenTransition.tsx`) | `native:.#ScreenTransition` · `native:./motion#ScreenTransition` · `web:.#ScreenTransition` · `web:./motion#ScreenTransition` | no public size prop | pending |
1230
1230
  | `src/multi-agent-chat/MultiAgentChat.tsx#MultiAgentChat` (`src/multi-agent-chat/MultiAgentChat.tsx`, `src/multi-agent-chat/MultiAgentChat.web.tsx`) | `native:.#MultiAgentChat` · `native:./multi-agent-chat#MultiAgentChat` · `web:.#MultiAgentChat` · `web:./multi-agent-chat#MultiAgentChat` | no public size prop | pending |
1231
- | `src/multi-agent-chat/SelectedAgentPreview.tsx#SelectedAgentPreview` (`src/multi-agent-chat/SelectedAgentPreview.tsx`) | `native:.#SelectedAgentPreview` · `native:./multi-agent-chat#SelectedAgentPreview` · `web:.#SelectedAgentPreview` · `web:./multi-agent-chat#SelectedAgentPreview` | no public size prop | multi-agent-preview-parts |
1231
+ | `src/multi-agent-chat/SelectedAgentPreview.tsx#SelectedAgentPreview` (`src/multi-agent-chat/SelectedAgentPreview.tsx`) | `native:.#SelectedAgentPreview` · `native:./multi-agent-chat#SelectedAgentPreview` · `native:./multi-agent-chat/selected-agent-preview#SelectedAgentPreview` · `web:.#SelectedAgentPreview` · `web:./multi-agent-chat#SelectedAgentPreview` · `web:./multi-agent-chat/selected-agent-preview#SelectedAgentPreview` | no public size prop | multi-agent-preview-parts |
1232
1232
  | `src/music-library/BrowseGrid.tsx#BrowseGrid` (`src/music-library/BrowseGrid.tsx`) | `native:.#BrowseGrid` · `native:./music-library#BrowseGrid` · `web:.#BrowseGrid` · `web:./music-library#BrowseGrid` | no public size prop | pending |
1233
1233
  | `src/music-library/LibraryItem.tsx#LibraryItem` (`src/music-library/LibraryItem.tsx`) | `native:.#LibraryItem` · `native:./music-library#LibraryItem` · `web:.#LibraryItem` · `web:./music-library#LibraryItem` | no public size prop | pending |
1234
1234
  | `src/music-library/LibraryPanel.tsx#LibraryPanel` (`src/music-library/LibraryPanel.tsx`, `src/music-library/LibraryPanel.web.tsx`) | `native:.#LibraryPanel` · `native:./music-library#LibraryPanel` · `web:.#LibraryPanel` · `web:./music-library#LibraryPanel` | no public size prop | pending |
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "package": {
4
4
  "name": "@oxy.so/bloom",
5
- "version": "20.0.0",
5
+ "version": "21.1.0",
6
6
  "peers": {
7
7
  "@lottiefiles/dotlottie-react": ">=0.13.0",
8
8
  "@react-native-community/netinfo": ">=11.1.0",
@@ -8,7 +8,7 @@ order: 1
8
8
 
9
9
  # Choose an API by task
10
10
 
11
- This guide belongs to **@oxy.so/bloom 20.0.0**. Read it from the installed package alongside [the structured index](./task-catalog.json). A source build version is not a registry-publication receipt. Use the containing package’s manifest for exact peer ranges.
11
+ This guide belongs to **@oxy.so/bloom 21.1.0**. Read it from the installed package alongside [the structured index](./task-catalog.json). A source build version is not a registry-publication receipt. Use the containing package’s manifest for exact peer ranges.
12
12
 
13
13
  Start under the application’s BloomProvider and follow [getting started](./getting-started.mdx) for CSS, fonts and platform setup. These examples accept domain content/actions and require a bounded host. They do not add a provider per route. For document scrolling, follow [the host contract](./compose-layouts.mdx); Expo’s bounded reset must not silently prevent document overflow.
14
14
 
@@ -27,7 +27,7 @@ var _catalogIds = require("./catalog-ids.js");
27
27
  var _context = require("./context.js");
28
28
  var _messages2 = require("./messages.js");
29
29
  var _VectorStaticPortrait = require("./VectorStaticPortrait.js");
30
- var _vectorStatic = require("./vector-static.js");
30
+ var _useStaticPortraits = require("./use-static-portraits.js");
31
31
  var _defaultCatalog = require("./default-catalog.js");
32
32
  var _vectorCompose = require("./vector-compose.js");
33
33
  var _vectorFrame = require("./vector-frame.js");
@@ -36,20 +36,25 @@ var cache;
36
36
  function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
37
37
  /** Shared browser/native SVG host; loading, composition and projection never start the 3D runtime. */
38
38
  function VectorCharacterAvatar(props) {
39
- if (props.previewPart === 'eyes') {
40
- const resolved = (0, _character.resolveAvatarCharacter)(props.character),
41
- eyes = resolved.eyes;
42
- const frame = eyes === 'none' ? undefined : _vectorStatic.vectorEyePortraits[eyes];
43
- const paint = 'bodyColor' in resolved.paint ? resolved.paint.bodyColor : _characterColors.CHARACTER_COLORS[resolved.paint.color];
44
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_VectorStaticPortrait.VectorStaticPortrait, {
45
- ...props,
46
- frame: frame ? (0, _vectorEyeInk.paintVectorEyeFrame)(frame, paint, eyes) : frame
47
- });
48
- }
39
+ if (props.previewPart === 'eyes') return /*#__PURE__*/(0, _jsxRuntime.jsx)(VectorEyePreview, {
40
+ ...props
41
+ });
49
42
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedVectorCharacterAvatar, {
50
43
  ...props
51
44
  });
52
45
  }
46
+ /** The eye picker's still eyes, from the offline portraits (loaded on first use). */
47
+ function VectorEyePreview(props) {
48
+ const portraits = (0, _useStaticPortraits.useStaticPortraits)();
49
+ const resolved = (0, _character.resolveAvatarCharacter)(props.character),
50
+ eyes = resolved.eyes;
51
+ const frame = eyes === 'none' ? undefined : portraits?.vectorEyePortraits[eyes];
52
+ const paint = 'bodyColor' in resolved.paint ? resolved.paint.bodyColor : _characterColors.CHARACTER_COLORS[resolved.paint.color];
53
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_VectorStaticPortrait.VectorStaticPortrait, {
54
+ ...props,
55
+ frame: frame ? (0, _vectorEyeInk.paintVectorEyeFrame)(frame, paint, eyes) : frame
56
+ });
57
+ }
53
58
  function AnimatedVectorCharacterAvatar(props) {
54
59
  const {
55
60
  character,
@@ -1 +1 @@
1
- {"version":3,"names":["_vectorViewbox","require","_svgA11y","_svgId","_vectorScheduler","_vectorPlayback","_vectorEyeInk","_characterColors","_vectorWorkLook","_vectorPose","_vectorMotion","_vectorMood","_react","_reactNative","_reactNativeSvg","_interopRequireWildcard","_useAppState","_usePrefersReducedMotion","_messages","_styledPrimitives","_character","_catalogIds","_context","_messages2","_VectorStaticPortrait","_vectorStatic","_defaultCatalog","_vectorCompose","_vectorFrame","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","VectorCharacterAvatar","props","previewPart","resolved","resolveAvatarCharacter","character","eyes","frame","undefined","vectorEyePortraits","paint","bodyColor","CHARACTER_COLORS","color","jsx","VectorStaticPortrait","paintVectorEyeFrame","AnimatedVectorCharacterAvatar","size","paused","portrait","interactive","mood","messages","useMessages","AGENT_AVATAR_MESSAGES","locale","catalog","useVectorAssetLoader","reduced","usePrefersReducedMotion","foreground","useAppForeground","reportCapabilities","useContext","CharacterRuntimeContext","useMemo","asset","setAsset","useState","failed","setFailed","visible","setVisible","geometryKey","vectorGeometryKey","loadedGeometry","useRef","latestResolved","current","paintedAsset","paintVectorCharacter","frameRecipeKey","vectorFrameRecipeKey","latestFrameRecipe","latestAsset","display","setDisplay","revision","setRevision","host","svg","observeSnapshot","AvatarSnapshotObserver","useEffect","Platform","OS","element","querySelector","uri","encodeURIComponent","XMLSerializer","serializeToString","Promise","resolve","toDataURL","data","prefix","useSvgIdPrefix","ready","onReady","loadingChange","onLoadingChange","loading","reportLoading","useCallback","value","state","action","time","repeats","yaw","pitch","targetYaw","targetPitch","count","entrance","workLook","clock","lookMix","pointerActive","lastPose","poseFrom","lastMotion","motionFrom","transitionStarted","transitionDuration","VECTOR_TRANSITION_SECONDS","initialVectorMood","previous","idle","idleKey","reaction","reactionKey","work","workingKey","entranceKey","latestMood","cycles","workingCycles","play","playVectorAction","loadVectorGeometry","then","referenceFace","vectorWorkLook","key","JSON","stringify","selected","shape","eyewear","accessory","available","fromEntries","AVATAR_SHAPES","map","id","AVATAR_EYES","AVATAR_EYEWEAR","AVATAR_ACCESSORIES","AVATAR_COLORS","catch","setVectorMood","IntersectionObserver","observer","entry","isIntersecting","observe","disconnect","last","painted","disposed","stopped","tick","timestamp","now","Number","isFinite","performance","NaN","delta","vectorFrameDelta","motion","advanceVectorPlayback","Math","min","follow","exp","advanceVectorMood","settleVectorMood","transition","max","eased","feeling","vectorMoodActive","sharedKey","vectorStateIdentity","sadness","declineTime","pose","procedural","gaze","drawing","shareVectorFrame","poseTime","referenceWorkTime","targetPose","sampleVectorPose","blendVectorPose","sampleVectorMotion","personalityKey","stateTime","look","mix","wander","from","startedAt","duration","framed","vectorMoodFrame","renderVectorFrame","eyesOnly","geometry","gazeYaw","gazePitch","tracking","unsubscribe","subscribeVectorFrame","x","y","width","height","every","limit","StyledView","ref","className","style","accessible","accessibilityLabel","accessibilityRole","label","testID","dataSet","bloomVectorAvatar","String","onPointerMove","event","box","getBoundingClientRect","nativeEvent","clientX","left","clientY","top","onPointerLeave","onPointerDown","onTouchMove","locationX","locationY","onTouchEnd","children","StyledText","numberOfLines","fontSize","unavailable","jsxs","viewBox","avatarViewBox","svgA11yProps","Defs","paths","filter","path","clip","ClipPath","clipPathUnits","Path","d","fillRule","clipRule","G","opacity","currentPart","parts","stroke","role","fill","fillOpacity","strokeWidth","clipPath"],"sourceRoot":"../../../src","sources":["agent-avatar/VectorCharacterAvatar.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAMA,IAAAI,eAAA,GAAAJ,OAAA;AAMA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAQA,IAAAW,MAAA,GAAAX,OAAA;AASA,IAAAY,YAAA,GAAAZ,OAAA;AACA,IAAAa,eAAA,GAAAC,uBAAA,CAAAd,OAAA;AACA,IAAAe,YAAA,GAAAf,OAAA;AACA,IAAAgB,wBAAA,GAAAhB,OAAA;AACA,IAAAiB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I,CAACK,CAAE;YACVS,IAAI,EACFpN,OAAO,CAACmJ,QAAQ,KAAK7J,cAAc,CAACG,OAAO,GACtCC,YAAY,EAAEuN,KAAK,CAAC5G,MAAM,CAACiG,IAAI,CAACrH,EAAE,CAAC,CAAC,EAAE5H,KAAK,IAAIiP,IAAI,CAACc,IAAI,GACzDd,IAAI,CAACc,IACV;YACDL,OAAO,EAAET,IAAI,CAACS,OAAQ;YACtBM,WAAW,EAAEf,IAAI,CAACe,WAAY;YAC9BT,QAAQ,EAAC,SAAS;YAClBM,MAAM,EAAEA,MAAO;YACfI,WAAW,EACTJ,MAAM,GAAIF,WAAW,EAAEM,WAAW,IAAIhB,IAAI,CAACgB,WAAW,IAAI,GAAG,GAAItQ,SAClE;YACDuQ,QAAQ,EAAEjB,IAAI,CAACC,IAAI,KAAKvP,SAAS,GAAG,QAAQqE,MAAM,IAAIiL,IAAI,CAACrH,EAAE,GAAG,GAAGjI;UAAU,GAdxEsP,IAAI,CAACrH,EAeX,CAAC;QAEN,CAAC;MAAC,CACD,CAAC;IAAA,CACD,CAAC,GACJ;EAAI,CACE,CAAC;AAEjB","ignoreList":[]}
1
+ {"version":3,"names":["_vectorViewbox","require","_svgA11y","_svgId","_vectorScheduler","_vectorPlayback","_vectorEyeInk","_characterColors","_vectorWorkLook","_vectorPose","_vectorMotion","_vectorMood","_react","_reactNative","_reactNativeSvg","_interopRequireWildcard","_useAppState","_usePrefersReducedMotion","_messages","_styledPrimitives","_character","_catalogIds","_context","_messages2","_VectorStaticPortrait","_useStaticPortraits","_defaultCatalog","_vectorCompose","_vectorFrame","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","VectorCharacterAvatar","props","previewPart","jsx","VectorEyePreview","AnimatedVectorCharacterAvatar","portraits","useStaticPortraits","resolved","resolveAvatarCharacter","character","eyes","frame","undefined","vectorEyePortraits","paint","bodyColor","CHARACTER_COLORS","color","VectorStaticPortrait","paintVectorEyeFrame","size","paused","portrait","interactive","mood","messages","useMessages","AGENT_AVATAR_MESSAGES","locale","catalog","useVectorAssetLoader","reduced","usePrefersReducedMotion","foreground","useAppForeground","reportCapabilities","useContext","CharacterRuntimeContext","useMemo","asset","setAsset","useState","failed","setFailed","visible","setVisible","geometryKey","vectorGeometryKey","loadedGeometry","useRef","latestResolved","current","paintedAsset","paintVectorCharacter","frameRecipeKey","vectorFrameRecipeKey","latestFrameRecipe","latestAsset","display","setDisplay","revision","setRevision","host","svg","observeSnapshot","AvatarSnapshotObserver","useEffect","Platform","OS","element","querySelector","uri","encodeURIComponent","XMLSerializer","serializeToString","Promise","resolve","toDataURL","data","prefix","useSvgIdPrefix","ready","onReady","loadingChange","onLoadingChange","loading","reportLoading","useCallback","value","state","action","time","repeats","yaw","pitch","targetYaw","targetPitch","count","entrance","workLook","clock","lookMix","pointerActive","lastPose","poseFrom","lastMotion","motionFrom","transitionStarted","transitionDuration","VECTOR_TRANSITION_SECONDS","initialVectorMood","previous","idle","idleKey","reaction","reactionKey","work","workingKey","entranceKey","latestMood","cycles","workingCycles","play","playVectorAction","loadVectorGeometry","then","referenceFace","vectorWorkLook","key","JSON","stringify","selected","shape","eyewear","accessory","available","fromEntries","AVATAR_SHAPES","map","id","AVATAR_EYES","AVATAR_EYEWEAR","AVATAR_ACCESSORIES","AVATAR_COLORS","catch","setVectorMood","IntersectionObserver","observer","entry","isIntersecting","observe","disconnect","last","painted","disposed","stopped","tick","timestamp","now","Number","isFinite","performance","NaN","delta","vectorFrameDelta","motion","advanceVectorPlayback","Math","min","follow","exp","advanceVectorMood","settleVectorMood","transition","max","eased","feeling","vectorMoodActive","sharedKey","vectorStateIdentity","sadness","declineTime","pose","procedural","gaze","drawing","shareVectorFrame","poseTime","referenceWorkTime","targetPose","sampleVectorPose","blendVectorPose","sampleVectorMotion","personalityKey","stateTime","look","mix","wander","from","startedAt","duration","framed","vectorMoodFrame","renderVectorFrame","eyesOnly","geometry","gazeYaw","gazePitch","tracking","unsubscribe","subscribeVectorFrame","x","y","width","height","every","limit","StyledView","ref","className","style","accessible","accessibilityLabel","accessibilityRole","label","testID","dataSet","bloomVectorAvatar","String","onPointerMove","event","box","getBoundingClientRect","nativeEvent","clientX","left","clientY","top","onPointerLeave","onPointerDown","onTouchMove","locationX","locationY","onTouchEnd","children","StyledText","numberOfLines","fontSize","unavailable","jsxs","viewBox","avatarViewBox","svgA11yProps","Defs","paths","filter","path","clip","ClipPath","clipPathUnits","Path","d","fillRule","clipRule","G","opacity","currentPart","parts","stroke","role","fill","fillOpacity","strokeWidth","clipPath"],"sourceRoot":"../../../src","sources":["agent-avatar/VectorCharacterAvatar.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAMA,IAAAI,eAAA,GAAAJ,OAAA;AAMA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAQA,IAAAW,MAAA,GAAAX,OAAA;AASA,IAAAY,YAAA,GAAAZ,OAAA;AACA,IAAAa,eAAA,GAAAC,uBAAA,CAAAd,OAAA;AACA,IAAAe,YAAA,GAAAf,OAAA;AACA,IAAAgB,wBAAA,GAAAhB,OAAA;AACA,IAAAiB,SAAA,GAAAjB,OAAA;AACA,IAAAkB,iBAAA,GAAAlB,OAAA;AACA,IAAAmB,UAAA,GAAAnB,OAAA;AACA,IAAAoB,WAAA,GAAApB,OAAA;AAOA,IAAAqB,QAAA,GAAArB,OAAA;AACA,IAAAsB,UAAA,GAAAtB,OAAA;AAEA,IAAAuB,qBAAA,GAAAvB,OAAA;AACA,IAAAwB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,QAAQ,KAAK7J,cAAc,CAACG,OAAO,GACtCC,YAAY,EAAEuN,KAAK,CAAC5G,MAAM,CAACiG,IAAI,CAACrH,EAAE,CAAC,CAAC,EAAE1H,KAAK,IAAI+O,IAAI,CAACc,IAAI,GACzDd,IAAI,CAACc,IACV;YACDL,OAAO,EAAET,IAAI,CAACS,OAAQ;YACtBM,WAAW,EAAEf,IAAI,CAACe,WAAY;YAC9BT,QAAQ,EAAC,SAAS;YAClBM,MAAM,EAAEA,MAAO;YACfI,WAAW,EACTJ,MAAM,GAAIF,WAAW,EAAEM,WAAW,IAAIhB,IAAI,CAACgB,WAAW,IAAI,GAAG,GAAIpQ,SAClE;YACDqQ,QAAQ,EAAEjB,IAAI,CAACC,IAAI,KAAKrP,SAAS,GAAG,QAAQmE,MAAM,IAAIiL,IAAI,CAACrH,EAAE,GAAG,GAAG/H;UAAU,GAdxEoP,IAAI,CAACrH,EAeX,CAAC;QAEN,CAAC;MAAC,CACD,CAAC;IAAA,CACD,CAAC,GACJ;EAAI,CACE,CAAC;AAEjB","ignoreList":[]}
@@ -186,10 +186,10 @@ function updateAvatarCharacter(character, patch) {
186
186
  * A character painted in its account's colour.
187
187
  *
188
188
  * `color` is the colour of the account the character stands for, as Oxy stores `User.color`: a
189
- * Bloom colour preset key (`'lagoon'`), or a legacy `#rgb`/`#rrggbb`. The body takes the preset's
190
- * identity seed (or the legacy colour), lifted to the avatar skin floor, so an agent is drawn in
191
- * the same colour its profile is themed with. This is the one place a colour preset becomes an
192
- * avatar paint.
189
+ * Bloom colour preset key (`'lagoon'`) or a hex (`'#ff8b67'`, `'#f80'`), both ordinary account
190
+ * colours. A preset paints the body its identity seed, a hex paints it that hex, each lifted to the
191
+ * avatar skin floor (`normalizeAvatarSkinColor`), so a hex an editor wrote back comes out exactly as
192
+ * written. This is the one place an account colour becomes an avatar paint.
193
193
  *
194
194
  * The result carries `bodyColor` and no `color`; every part is kept. A colour that does not resolve
195
195
  * (`null`, `undefined`, an unknown key) returns the character unchanged, so its own paint (or its
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.loadStaticPortraits = loadStaticPortraits;
7
+ exports.useStaticPortraits = useStaticPortraits;
8
+ var _react = require("react");
9
+ var cache;
10
+ function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
11
+ let loaded;
12
+ let pending;
13
+
14
+ /**
15
+ * The offline shape and eye portraits (`vector-static`, ~310 KB of paths), loaded on first use.
16
+ *
17
+ * Only the agent creator draws them (its shape arc and its eye picker); an avatar never does. Linked
18
+ * statically from the avatar renderer, they were in every app's first paint. Every caller goes
19
+ * through this one `import()`, so no route links them eagerly and the module is fetched once.
20
+ */
21
+ function loadStaticPortraits() {
22
+ pending ??= Promise.resolve().then(() => _interopRequireWildcard(require('./vector-static'))).then(module => {
23
+ loaded = module;
24
+ return module;
25
+ }, error => {
26
+ // Forget a failed fetch so the next render asks again.
27
+ pending = undefined;
28
+ throw error;
29
+ });
30
+ return pending;
31
+ }
32
+
33
+ /**
34
+ * The portraits, or `undefined` until they arrive. The portrait keeps its size meanwhile (an empty
35
+ * box, as for no eyes), so nothing moves when it fills in; after the first load it is synchronous.
36
+ */
37
+ function useStaticPortraits() {
38
+ const [portraits, setPortraits] = (0, _react.useState)(loaded);
39
+ (0, _react.useEffect)(() => {
40
+ if (portraits) return;
41
+ let live = true;
42
+ loadStaticPortraits().then(module => {
43
+ if (live) setPortraits(module);
44
+ }, () => {});
45
+ return () => {
46
+ live = false;
47
+ };
48
+ }, [portraits]);
49
+ return portraits;
50
+ }
51
+ //# sourceMappingURL=use-static-portraits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","cache","_interopRequireWildcard","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","loaded","pending","loadStaticPortraits","Promise","resolve","then","module","error","undefined","useStaticPortraits","portraits","setPortraits","useState","useEffect","live"],"sourceRoot":"../../../src","sources":["agent-avatar/use-static-portraits.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAA4C,IAAAC,KAAA;AAAA,SAAAC,wBAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAE,UAAA,SAAAF,CAAA,MAAAG,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,QAAAM,MAAA,CAAAN,CAAA,MAAAA,CAAA,SAAAQ,CAAA,MAAAV,KAAA,yBAAAa,OAAA,KAAAb,KAAA,OAAAa,OAAA,KAAAb,KAAA,QAAAA,KAAA,CAAAc,GAAA,CAAAZ,CAAA,UAAAF,KAAA,CAAAe,GAAA,CAAAb,CAAA,GAAAF,KAAA,CAAAgB,GAAA,CAAAd,CAAA,EAAAQ,CAAA,UAAAJ,CAAA,IAAAJ,CAAA,gBAAAI,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAI,CAAA,OAAAD,CAAA,GAAAE,CAAA,IAAAC,MAAA,CAAAW,wBAAA,CAAAjB,CAAA,EAAAI,CAAA,OAAAD,CAAA,CAAAU,GAAA,IAAAV,CAAA,CAAAW,GAAA,IAAAT,CAAA,CAAAG,CAAA,EAAAJ,CAAA,EAAAD,CAAA,IAAAK,CAAA,CAAAJ,CAAA,IAAAJ,CAAA,CAAAI,CAAA,WAAAI,CAAA;AAI5C,IAAIU,MAAmC;AACvC,IAAIC,OAA6C;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,mBAAmBA,CAAA,EAA6B;EAC9DD,OAAO,KAAKE,OAAA,CAAAC,OAAA,GAAAC,IAAA,OAAAxB,uBAAA,CAAAF,OAAA,CAAO,iBAAiB,IAAE0B,IAAI,CACvCC,MAAM,IAAK;IACVN,MAAM,GAAGM,MAAM;IACf,OAAOA,MAAM;EACf,CAAC,EACAC,KAAc,IAAK;IAClB;IACAN,OAAO,GAAGO,SAAS;IACnB,MAAMD,KAAK;EACb,CACF,CAAC;EACD,OAAON,OAAO;AAChB;;AAEA;AACA;AACA;AACA;AACO,SAASQ,kBAAkBA,CAAA,EAAgC;EAChE,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAG,IAAAC,eAAQ,EAACZ,MAAM,CAAC;EAClD,IAAAa,gBAAS,EAAC,MAAM;IACd,IAAIH,SAAS,EAAE;IACf,IAAII,IAAI,GAAG,IAAI;IACfZ,mBAAmB,CAAC,CAAC,CAACG,IAAI,CACvBC,MAAM,IAAK;MACV,IAAIQ,IAAI,EAAEH,YAAY,CAACL,MAAM,CAAC;IAChC,CAAC,EACD,MAAM,CAAC,CACT,CAAC;IACD,OAAO,MAAM;MACXQ,IAAI,GAAG,KAAK;IACd,CAAC;EACH,CAAC,EAAE,CAACJ,SAAS,CAAC,CAAC;EACf,OAAOA,SAAS;AAClB","ignoreList":[]}
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.AgentCreator = AgentCreator;
7
7
  var _index = require("../screen/index");
8
+ var _popover = require("../popover");
8
9
  var _select = require("../select");
9
10
  var _SettingsSelect = require("../settings-modal/SettingsSelect");
10
11
  var _AgentCreatorBase = require("./AgentCreatorBase.js");
@@ -20,6 +21,9 @@ const bindings = {
20
21
  SelectContent: _select.SelectContent,
21
22
  SelectItem: _select.SelectItem,
22
23
  SelectItemText: _select.SelectItemText,
24
+ Popover: _popover.Popover,
25
+ PopoverTrigger: _popover.PopoverTrigger,
26
+ PopoverContent: _popover.PopoverContent,
23
27
  SettingsSelect: _SettingsSelect.SettingsSelect
24
28
  };
25
29
  function AgentCreator(props) {
@@ -1 +1 @@
1
- {"version":3,"names":["_index","require","_select","_SettingsSelect","_AgentCreatorBase","_context","_jsxRuntime","bindings","Screen","ScreenScrollView","Select","SelectTrigger","SelectValue","SelectIcon","SelectContent","SelectItem","SelectItemText","SettingsSelect","AgentCreator","props","jsx","AgentCreatorContext","Provider","value","children","AgentCreatorBase"],"sourceRoot":"../../../src","sources":["agent-creator/AgentCreator.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AASA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAgD,IAAAK,WAAA,GAAAL,OAAA;AAEhD,MAAMM,QAAQ,GAAG;EACfC,MAAM,EAANA,aAAM;EACNC,gBAAgB,EAAhBA,uBAAgB;EAChBC,MAAM,EAANA,cAAM;EACNC,aAAa,EAAbA,qBAAa;EACbC,WAAW,EAAXA,mBAAW;EACXC,UAAU,EAAVA,kBAAU;EACVC,aAAa,EAAbA,qBAAa;EACbC,UAAU,EAAVA,kBAAU;EACVC,cAAc,EAAdA,sBAAc;EACdC,cAAc,EAAdA;AACF,CAAC;AACM,SAASC,YAAYA,CAACC,KAAwB,EAAE;EACrD,oBACE,IAAAb,WAAA,CAAAc,GAAA,EAACf,QAAA,CAAAgB,mBAAmB,CAACC,QAAQ;IAACC,KAAK,EAAEhB,QAAS;IAAAiB,QAAA,eAC5C,IAAAlB,WAAA,CAAAc,GAAA,EAAChB,iBAAA,CAAAqB,gBAAgB;MAAA,GAAKN;IAAK,CAAG;EAAC,CACH,CAAC;AAEnC","ignoreList":[]}
1
+ {"version":3,"names":["_index","require","_popover","_select","_SettingsSelect","_AgentCreatorBase","_context","_jsxRuntime","bindings","Screen","ScreenScrollView","Select","SelectTrigger","SelectValue","SelectIcon","SelectContent","SelectItem","SelectItemText","Popover","PopoverTrigger","PopoverContent","SettingsSelect","AgentCreator","props","jsx","AgentCreatorContext","Provider","value","children","AgentCreatorBase"],"sourceRoot":"../../../src","sources":["agent-creator/AgentCreator.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AASA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAAgD,IAAAM,WAAA,GAAAN,OAAA;AAEhD,MAAMO,QAAQ,GAAG;EACfC,MAAM,EAANA,aAAM;EACNC,gBAAgB,EAAhBA,uBAAgB;EAChBC,MAAM,EAANA,cAAM;EACNC,aAAa,EAAbA,qBAAa;EACbC,WAAW,EAAXA,mBAAW;EACXC,UAAU,EAAVA,kBAAU;EACVC,aAAa,EAAbA,qBAAa;EACbC,UAAU,EAAVA,kBAAU;EACVC,cAAc,EAAdA,sBAAc;EACdC,OAAO,EAAPA,gBAAO;EACPC,cAAc,EAAdA,uBAAc;EACdC,cAAc,EAAdA,uBAAc;EACdC,cAAc,EAAdA;AACF,CAAC;AACM,SAASC,YAAYA,CAACC,KAAwB,EAAE;EACrD,oBACE,IAAAhB,WAAA,CAAAiB,GAAA,EAAClB,QAAA,CAAAmB,mBAAmB,CAACC,QAAQ;IAACC,KAAK,EAAEnB,QAAS;IAAAoB,QAAA,eAC5C,IAAArB,WAAA,CAAAiB,GAAA,EAACnB,iBAAA,CAAAwB,gBAAgB;MAAA,GAAKN;IAAK,CAAG;EAAC,CACH,CAAC;AAEnC","ignoreList":[]}
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.AgentCreator = AgentCreator;
7
7
  var _indexWeb = require("../screen/index.web.js");
8
- var _indexWeb2 = require("../select/index.web.js");
8
+ var _indexWeb2 = require("../popover/index.web.js");
9
+ var _indexWeb3 = require("../select/index.web.js");
9
10
  var _SettingsSelectWeb = require("../settings-modal/SettingsSelect.web.js");
10
11
  var _AgentCreatorBase = require("./AgentCreatorBase.js");
11
12
  var _context = require("./context.js");
@@ -13,13 +14,16 @@ var _jsxRuntime = require("react/jsx-runtime");
13
14
  const bindings = {
14
15
  Screen: _indexWeb.Screen,
15
16
  ScreenScrollView: _indexWeb.ScreenScrollView,
16
- Select: _indexWeb2.Select,
17
- SelectTrigger: _indexWeb2.SelectTrigger,
18
- SelectValue: _indexWeb2.SelectValue,
19
- SelectIcon: _indexWeb2.SelectIcon,
20
- SelectContent: _indexWeb2.SelectContent,
21
- SelectItem: _indexWeb2.SelectItem,
22
- SelectItemText: _indexWeb2.SelectItemText,
17
+ Select: _indexWeb3.Select,
18
+ SelectTrigger: _indexWeb3.SelectTrigger,
19
+ SelectValue: _indexWeb3.SelectValue,
20
+ SelectIcon: _indexWeb3.SelectIcon,
21
+ SelectContent: _indexWeb3.SelectContent,
22
+ SelectItem: _indexWeb3.SelectItem,
23
+ SelectItemText: _indexWeb3.SelectItemText,
24
+ Popover: _indexWeb2.Popover,
25
+ PopoverTrigger: _indexWeb2.PopoverTrigger,
26
+ PopoverContent: _indexWeb2.PopoverContent,
23
27
  SettingsSelect: _SettingsSelectWeb.SettingsSelect
24
28
  };
25
29
  function AgentCreator(props) {
@@ -1 +1 @@
1
- {"version":3,"names":["_indexWeb","require","_indexWeb2","_SettingsSelectWeb","_AgentCreatorBase","_context","_jsxRuntime","bindings","Screen","ScreenScrollView","Select","SelectTrigger","SelectValue","SelectIcon","SelectContent","SelectItem","SelectItemText","SettingsSelect","AgentCreator","props","jsx","AgentCreatorContext","Provider","value","children","AgentCreatorBase"],"sourceRoot":"../../../src","sources":["agent-creator/AgentCreator.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AASA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAgD,IAAAK,WAAA,GAAAL,OAAA;AAEhD,MAAMM,QAAQ,GAAG;EACfC,MAAM,EAANA,gBAAM;EACNC,gBAAgB,EAAhBA,0BAAgB;EAChBC,MAAM,EAANA,iBAAM;EACNC,aAAa,EAAbA,wBAAa;EACbC,WAAW,EAAXA,sBAAW;EACXC,UAAU,EAAVA,qBAAU;EACVC,aAAa,EAAbA,wBAAa;EACbC,UAAU,EAAVA,qBAAU;EACVC,cAAc,EAAdA,yBAAc;EACdC,cAAc,EAAdA;AACF,CAAC;AACM,SAASC,YAAYA,CAACC,KAAwB,EAAE;EACrD,oBACE,IAAAb,WAAA,CAAAc,GAAA,EAACf,QAAA,CAAAgB,mBAAmB,CAACC,QAAQ;IAACC,KAAK,EAAEhB,QAAS;IAAAiB,QAAA,eAC5C,IAAAlB,WAAA,CAAAc,GAAA,EAAChB,iBAAA,CAAAqB,gBAAgB;MAAA,GAAKN;IAAK,CAAG;EAAC,CACH,CAAC;AAEnC","ignoreList":[]}
1
+ {"version":3,"names":["_indexWeb","require","_indexWeb2","_indexWeb3","_SettingsSelectWeb","_AgentCreatorBase","_context","_jsxRuntime","bindings","Screen","ScreenScrollView","Select","SelectTrigger","SelectValue","SelectIcon","SelectContent","SelectItem","SelectItemText","Popover","PopoverTrigger","PopoverContent","SettingsSelect","AgentCreator","props","jsx","AgentCreatorContext","Provider","value","children","AgentCreatorBase"],"sourceRoot":"../../../src","sources":["agent-creator/AgentCreator.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AASA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAAgD,IAAAM,WAAA,GAAAN,OAAA;AAEhD,MAAMO,QAAQ,GAAG;EACfC,MAAM,EAANA,gBAAM;EACNC,gBAAgB,EAAhBA,0BAAgB;EAChBC,MAAM,EAANA,iBAAM;EACNC,aAAa,EAAbA,wBAAa;EACbC,WAAW,EAAXA,sBAAW;EACXC,UAAU,EAAVA,qBAAU;EACVC,aAAa,EAAbA,wBAAa;EACbC,UAAU,EAAVA,qBAAU;EACVC,cAAc,EAAdA,yBAAc;EACdC,OAAO,EAAPA,kBAAO;EACPC,cAAc,EAAdA,yBAAc;EACdC,cAAc,EAAdA,yBAAc;EACdC,cAAc,EAAdA;AACF,CAAC;AACM,SAASC,YAAYA,CAACC,KAAwB,EAAE;EACrD,oBACE,IAAAhB,WAAA,CAAAiB,GAAA,EAAClB,QAAA,CAAAmB,mBAAmB,CAACC,QAAQ;IAACC,KAAK,EAAEnB,QAAS;IAAAoB,QAAA,eAC5C,IAAArB,WAAA,CAAAiB,GAAA,EAACnB,iBAAA,CAAAwB,gBAAgB;MAAA,GAAKN;IAAK,CAAG;EAAC,CACH,CAAC;AAEnC","ignoreList":[]}