@oxy.so/bloom 19.10.3 → 20.0.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 (313) hide show
  1. package/docs/adoption-matrix.mdx +8 -7
  2. package/docs/agent-avatar.mdx +42 -0
  3. package/docs/agent-creator.mdx +20 -14
  4. package/docs/empty-state.mdx +20 -1
  5. package/docs/multi-agent-chat.mdx +5 -0
  6. package/docs/task-catalog.json +1 -1
  7. package/docs/task-catalog.mdx +1 -1
  8. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +36 -17
  9. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  10. package/lib/commonjs/agent-avatar/character.js +27 -0
  11. package/lib/commonjs/agent-avatar/character.js.map +1 -1
  12. package/lib/commonjs/agent-avatar/index.js +6 -0
  13. package/lib/commonjs/agent-avatar/index.js.map +1 -1
  14. package/lib/commonjs/agent-avatar/vector-mood.js +129 -0
  15. package/lib/commonjs/agent-avatar/vector-mood.js.map +1 -0
  16. package/lib/commonjs/agent-creator/AgentCreator.js +0 -4
  17. package/lib/commonjs/agent-creator/AgentCreator.js.map +1 -1
  18. package/lib/commonjs/agent-creator/AgentCreator.web.js +8 -12
  19. package/lib/commonjs/agent-creator/AgentCreator.web.js.map +1 -1
  20. package/lib/commonjs/agent-creator/AgentCreatorBase.js +61 -99
  21. package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
  22. package/lib/commonjs/agent-creator/context.js.map +1 -1
  23. package/lib/commonjs/agent-creator/messages.js +1 -22
  24. package/lib/commonjs/agent-creator/messages.js.map +1 -1
  25. package/lib/commonjs/agent-creator/paint.js +47 -0
  26. package/lib/commonjs/agent-creator/paint.js.map +1 -0
  27. package/lib/commonjs/agent-creator/shared.js +0 -28
  28. package/lib/commonjs/agent-creator/shared.js.map +1 -1
  29. package/lib/commonjs/agent-creator/use-character-history.js +12 -9
  30. package/lib/commonjs/agent-creator/use-character-history.js.map +1 -1
  31. package/lib/commonjs/avatar/Avatar.js +12 -4
  32. package/lib/commonjs/avatar/Avatar.js.map +1 -1
  33. package/lib/commonjs/avatar/account.js +9 -3
  34. package/lib/commonjs/avatar/account.js.map +1 -1
  35. package/lib/commonjs/empty-state/constants.js +2 -0
  36. package/lib/commonjs/empty-state/constants.js.map +1 -1
  37. package/lib/commonjs/locale/translations/ar.js +1 -22
  38. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  39. package/lib/commonjs/locale/translations/bn.js +1 -22
  40. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  41. package/lib/commonjs/locale/translations/ca.js +1 -22
  42. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  43. package/lib/commonjs/locale/translations/de.js +1 -22
  44. package/lib/commonjs/locale/translations/de.js.map +1 -1
  45. package/lib/commonjs/locale/translations/es.js +1 -22
  46. package/lib/commonjs/locale/translations/es.js.map +1 -1
  47. package/lib/commonjs/locale/translations/fr.js +1 -22
  48. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  49. package/lib/commonjs/locale/translations/hi.js +1 -22
  50. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  51. package/lib/commonjs/locale/translations/id.js +1 -22
  52. package/lib/commonjs/locale/translations/id.js.map +1 -1
  53. package/lib/commonjs/locale/translations/it.js +1 -22
  54. package/lib/commonjs/locale/translations/it.js.map +1 -1
  55. package/lib/commonjs/locale/translations/ja.js +1 -22
  56. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  57. package/lib/commonjs/locale/translations/pt.js +1 -22
  58. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  59. package/lib/commonjs/locale/translations/ru.js +1 -22
  60. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  61. package/lib/commonjs/locale/translations/tr.js +1 -22
  62. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  63. package/lib/commonjs/locale/translations/zh.js +1 -22
  64. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  65. package/lib/commonjs/multi-agent-chat/Marketplace.js +1 -1
  66. package/lib/commonjs/multi-agent-chat/Marketplace.js.map +1 -1
  67. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +6 -6
  68. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  69. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +2 -1
  70. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  71. package/lib/commonjs/multi-agent-chat/data.js +58 -39
  72. package/lib/commonjs/multi-agent-chat/data.js.map +1 -1
  73. package/lib/commonjs/multi-agent-chat/marketplace-data.js +21 -27
  74. package/lib/commonjs/multi-agent-chat/marketplace-data.js.map +1 -1
  75. package/lib/module/agent-avatar/VectorCharacterAvatar.js +36 -17
  76. package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  77. package/lib/module/agent-avatar/character.js +26 -0
  78. package/lib/module/agent-avatar/character.js.map +1 -1
  79. package/lib/module/agent-avatar/index.js +1 -1
  80. package/lib/module/agent-avatar/index.js.map +1 -1
  81. package/lib/module/agent-avatar/vector-mood.js +117 -0
  82. package/lib/module/agent-avatar/vector-mood.js.map +1 -0
  83. package/lib/module/agent-creator/AgentCreator.js +0 -4
  84. package/lib/module/agent-creator/AgentCreator.js.map +1 -1
  85. package/lib/module/agent-creator/AgentCreator.web.js +0 -4
  86. package/lib/module/agent-creator/AgentCreator.web.js.map +1 -1
  87. package/lib/module/agent-creator/AgentCreatorBase.js +56 -94
  88. package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
  89. package/lib/module/agent-creator/context.js.map +1 -1
  90. package/lib/module/agent-creator/messages.js +1 -22
  91. package/lib/module/agent-creator/messages.js.map +1 -1
  92. package/lib/module/agent-creator/paint.js +42 -0
  93. package/lib/module/agent-creator/paint.js.map +1 -0
  94. package/lib/module/agent-creator/shared.js +0 -26
  95. package/lib/module/agent-creator/shared.js.map +1 -1
  96. package/lib/module/agent-creator/use-character-history.js +7 -4
  97. package/lib/module/agent-creator/use-character-history.js.map +1 -1
  98. package/lib/module/avatar/Avatar.js +12 -4
  99. package/lib/module/avatar/Avatar.js.map +1 -1
  100. package/lib/module/avatar/account.js +9 -3
  101. package/lib/module/avatar/account.js.map +1 -1
  102. package/lib/module/empty-state/constants.js +2 -0
  103. package/lib/module/empty-state/constants.js.map +1 -1
  104. package/lib/module/locale/translations/ar.js +1 -22
  105. package/lib/module/locale/translations/ar.js.map +1 -1
  106. package/lib/module/locale/translations/bn.js +1 -22
  107. package/lib/module/locale/translations/bn.js.map +1 -1
  108. package/lib/module/locale/translations/ca.js +1 -22
  109. package/lib/module/locale/translations/ca.js.map +1 -1
  110. package/lib/module/locale/translations/de.js +1 -22
  111. package/lib/module/locale/translations/de.js.map +1 -1
  112. package/lib/module/locale/translations/es.js +1 -22
  113. package/lib/module/locale/translations/es.js.map +1 -1
  114. package/lib/module/locale/translations/fr.js +1 -22
  115. package/lib/module/locale/translations/fr.js.map +1 -1
  116. package/lib/module/locale/translations/hi.js +1 -22
  117. package/lib/module/locale/translations/hi.js.map +1 -1
  118. package/lib/module/locale/translations/id.js +1 -22
  119. package/lib/module/locale/translations/id.js.map +1 -1
  120. package/lib/module/locale/translations/it.js +1 -22
  121. package/lib/module/locale/translations/it.js.map +1 -1
  122. package/lib/module/locale/translations/ja.js +1 -22
  123. package/lib/module/locale/translations/ja.js.map +1 -1
  124. package/lib/module/locale/translations/pt.js +1 -22
  125. package/lib/module/locale/translations/pt.js.map +1 -1
  126. package/lib/module/locale/translations/ru.js +1 -22
  127. package/lib/module/locale/translations/ru.js.map +1 -1
  128. package/lib/module/locale/translations/tr.js +1 -22
  129. package/lib/module/locale/translations/tr.js.map +1 -1
  130. package/lib/module/locale/translations/zh.js +1 -22
  131. package/lib/module/locale/translations/zh.js.map +1 -1
  132. package/lib/module/multi-agent-chat/Marketplace.js +2 -2
  133. package/lib/module/multi-agent-chat/Marketplace.js.map +1 -1
  134. package/lib/module/multi-agent-chat/MultiAgentChatBase.js +7 -7
  135. package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  136. package/lib/module/multi-agent-chat/SelectedAgentPreview.js +2 -1
  137. package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  138. package/lib/module/multi-agent-chat/data.js +58 -40
  139. package/lib/module/multi-agent-chat/data.js.map +1 -1
  140. package/lib/module/multi-agent-chat/marketplace-data.js +21 -27
  141. package/lib/module/multi-agent-chat/marketplace-data.js.map +1 -1
  142. package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/agent-avatar/character.d.ts +14 -0
  144. package/lib/typescript/commonjs/agent-avatar/character.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/agent-avatar/index.d.ts +2 -2
  146. package/lib/typescript/commonjs/agent-avatar/index.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/agent-avatar/types.d.ts +14 -0
  148. package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/agent-avatar/vector-mood.d.ts +61 -0
  150. package/lib/typescript/commonjs/agent-avatar/vector-mood.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts.map +1 -1
  152. package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/agent-creator/context.d.ts +1 -13
  155. package/lib/typescript/commonjs/agent-creator/context.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/agent-creator/messages.d.ts +0 -11
  157. package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
  158. package/lib/typescript/commonjs/agent-creator/paint.d.ts +20 -0
  159. package/lib/typescript/commonjs/agent-creator/paint.d.ts.map +1 -0
  160. package/lib/typescript/commonjs/agent-creator/shared.d.ts +0 -7
  161. package/lib/typescript/commonjs/agent-creator/shared.d.ts.map +1 -1
  162. package/lib/typescript/commonjs/agent-creator/types.d.ts +14 -0
  163. package/lib/typescript/commonjs/agent-creator/types.d.ts.map +1 -1
  164. package/lib/typescript/commonjs/agent-creator/use-character-history.d.ts +6 -2
  165. package/lib/typescript/commonjs/agent-creator/use-character-history.d.ts.map +1 -1
  166. package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
  167. package/lib/typescript/commonjs/avatar/account.d.ts +4 -2
  168. package/lib/typescript/commonjs/avatar/account.d.ts.map +1 -1
  169. package/lib/typescript/commonjs/avatar/types.d.ts +6 -0
  170. package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
  171. package/lib/typescript/commonjs/empty-state/constants.d.ts +5 -0
  172. package/lib/typescript/commonjs/empty-state/constants.d.ts.map +1 -1
  173. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  174. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  175. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  176. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  177. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  178. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  179. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  181. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  184. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  186. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/multi-agent-chat/Marketplace.d.ts.map +1 -1
  188. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts +1 -1
  190. package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -1
  191. package/lib/typescript/commonjs/multi-agent-chat/data.d.ts +4 -1
  192. package/lib/typescript/commonjs/multi-agent-chat/data.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts +3 -0
  194. package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts.map +1 -1
  195. package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  196. package/lib/typescript/module/agent-avatar/character.d.ts +14 -0
  197. package/lib/typescript/module/agent-avatar/character.d.ts.map +1 -1
  198. package/lib/typescript/module/agent-avatar/index.d.ts +2 -2
  199. package/lib/typescript/module/agent-avatar/index.d.ts.map +1 -1
  200. package/lib/typescript/module/agent-avatar/types.d.ts +14 -0
  201. package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -1
  202. package/lib/typescript/module/agent-avatar/vector-mood.d.ts +61 -0
  203. package/lib/typescript/module/agent-avatar/vector-mood.d.ts.map +1 -0
  204. package/lib/typescript/module/agent-creator/AgentCreator.d.ts.map +1 -1
  205. package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts.map +1 -1
  206. package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  207. package/lib/typescript/module/agent-creator/context.d.ts +1 -13
  208. package/lib/typescript/module/agent-creator/context.d.ts.map +1 -1
  209. package/lib/typescript/module/agent-creator/messages.d.ts +0 -11
  210. package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
  211. package/lib/typescript/module/agent-creator/paint.d.ts +20 -0
  212. package/lib/typescript/module/agent-creator/paint.d.ts.map +1 -0
  213. package/lib/typescript/module/agent-creator/shared.d.ts +0 -7
  214. package/lib/typescript/module/agent-creator/shared.d.ts.map +1 -1
  215. package/lib/typescript/module/agent-creator/types.d.ts +14 -0
  216. package/lib/typescript/module/agent-creator/types.d.ts.map +1 -1
  217. package/lib/typescript/module/agent-creator/use-character-history.d.ts +6 -2
  218. package/lib/typescript/module/agent-creator/use-character-history.d.ts.map +1 -1
  219. package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
  220. package/lib/typescript/module/avatar/account.d.ts +4 -2
  221. package/lib/typescript/module/avatar/account.d.ts.map +1 -1
  222. package/lib/typescript/module/avatar/types.d.ts +6 -0
  223. package/lib/typescript/module/avatar/types.d.ts.map +1 -1
  224. package/lib/typescript/module/empty-state/constants.d.ts +5 -0
  225. package/lib/typescript/module/empty-state/constants.d.ts.map +1 -1
  226. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  227. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  228. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  229. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  230. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  231. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  232. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  233. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  234. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  235. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  236. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  237. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  238. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  239. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  240. package/lib/typescript/module/multi-agent-chat/Marketplace.d.ts.map +1 -1
  241. package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  242. package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts +1 -1
  243. package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -1
  244. package/lib/typescript/module/multi-agent-chat/data.d.ts +4 -1
  245. package/lib/typescript/module/multi-agent-chat/data.d.ts.map +1 -1
  246. package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts +3 -0
  247. package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts.map +1 -1
  248. package/package.json +1 -1
  249. package/src/__tests__/support/adoption-matrix.ts +5 -0
  250. package/src/agent-avatar/VectorCharacterAvatar.tsx +39 -10
  251. package/src/agent-avatar/character.ts +30 -0
  252. package/src/agent-avatar/index.ts +2 -1
  253. package/src/agent-avatar/types.ts +15 -0
  254. package/src/agent-avatar/vector-mood.ts +140 -0
  255. package/src/agent-creator/AgentCreator.tsx +0 -4
  256. package/src/agent-creator/AgentCreator.web.tsx +0 -4
  257. package/src/agent-creator/AgentCreatorBase.tsx +51 -89
  258. package/src/agent-creator/context.ts +0 -2
  259. package/src/agent-creator/messages.ts +1 -37
  260. package/src/agent-creator/paint.ts +48 -0
  261. package/src/agent-creator/shared.ts +0 -27
  262. package/src/agent-creator/types.ts +14 -0
  263. package/src/agent-creator/use-character-history.ts +8 -4
  264. package/src/avatar/Avatar.tsx +13 -3
  265. package/src/avatar/account.ts +9 -3
  266. package/src/avatar/types.ts +6 -0
  267. package/src/empty-state/constants.ts +7 -0
  268. package/src/locale/translations/ar.ts +1 -23
  269. package/src/locale/translations/bn.ts +1 -23
  270. package/src/locale/translations/ca.ts +1 -23
  271. package/src/locale/translations/de.ts +1 -23
  272. package/src/locale/translations/es.ts +1 -23
  273. package/src/locale/translations/fr.ts +1 -23
  274. package/src/locale/translations/hi.ts +1 -23
  275. package/src/locale/translations/id.ts +1 -23
  276. package/src/locale/translations/it.ts +1 -23
  277. package/src/locale/translations/ja.ts +1 -23
  278. package/src/locale/translations/pt.ts +1 -23
  279. package/src/locale/translations/ru.ts +1 -23
  280. package/src/locale/translations/tr.ts +1 -23
  281. package/src/locale/translations/zh.ts +1 -23
  282. package/src/multi-agent-chat/Marketplace.tsx +6 -2
  283. package/src/multi-agent-chat/MultiAgentChatBase.tsx +7 -6
  284. package/src/multi-agent-chat/SelectedAgentPreview.tsx +2 -2
  285. package/src/multi-agent-chat/data.ts +58 -27
  286. package/src/multi-agent-chat/marketplace-data.ts +28 -9
  287. package/lib/commonjs/agent-creator/CustomColorPicker.js +0 -431
  288. package/lib/commonjs/agent-creator/CustomColorPicker.js.map +0 -1
  289. package/lib/commonjs/agent-creator/GlossArt.js +0 -212
  290. package/lib/commonjs/agent-creator/GlossArt.js.map +0 -1
  291. package/lib/commonjs/agent-creator/rainbow-artwork.js +0 -10
  292. package/lib/commonjs/agent-creator/rainbow-artwork.js.map +0 -1
  293. package/lib/module/agent-creator/CustomColorPicker.js +0 -426
  294. package/lib/module/agent-creator/CustomColorPicker.js.map +0 -1
  295. package/lib/module/agent-creator/GlossArt.js +0 -207
  296. package/lib/module/agent-creator/GlossArt.js.map +0 -1
  297. package/lib/module/agent-creator/rainbow-artwork.js +0 -6
  298. package/lib/module/agent-creator/rainbow-artwork.js.map +0 -1
  299. package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts +0 -9
  300. package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts.map +0 -1
  301. package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts +0 -9
  302. package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts.map +0 -1
  303. package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts +0 -3
  304. package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts.map +0 -1
  305. package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts +0 -9
  306. package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts.map +0 -1
  307. package/lib/typescript/module/agent-creator/GlossArt.d.ts +0 -9
  308. package/lib/typescript/module/agent-creator/GlossArt.d.ts.map +0 -1
  309. package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts +0 -3
  310. package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts.map +0 -1
  311. package/src/agent-creator/CustomColorPicker.tsx +0 -443
  312. package/src/agent-creator/GlossArt.tsx +0 -160
  313. package/src/agent-creator/rainbow-artwork.ts +0 -5
@@ -1 +0,0 @@
1
- {"version":3,"file":"rainbow-artwork.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/rainbow-artwork.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,+m6MACol6M,CAAC;AAC/m6M,eAAO,MAAM,YAAY,m8pIACy6pI,CAAC"}
@@ -1,443 +0,0 @@
1
- import {
2
- type ComponentRef,
3
- type ComponentType,
4
- type ReactNode,
5
- memo,
6
- useCallback,
7
- useEffect,
8
- useMemo,
9
- useRef,
10
- useState,
11
- } from 'react';
12
- import {
13
- Platform,
14
- TextInput,
15
- type StyleProp,
16
- type TextInputProps,
17
- type TextStyle,
18
- type View,
19
- } from 'react-native';
20
- import { styled } from 'react-native-css';
21
- import { Gesture, GestureDetector } from 'react-native-gesture-handler';
22
- import Svg, { ClipPath, Defs, G, LinearGradient, Rect, Stop } from 'react-native-svg';
23
- import { normalizeAvatarSkinColor } from '../agent-avatar/skin-color';
24
- import { useFieldMembership } from '../field/membership';
25
- import { StyledView } from '../styles/styled-primitives';
26
- import { useSvgIdPrefix } from '../styles/svg-id';
27
- import { useTheme } from '../theme/use-theme';
28
- import { useAgentCreatorMessages } from './context';
29
- import { GlossArt } from './GlossArt';
30
- import { hexToHsv, hsvToHex, type Hsv } from './shared';
31
- import { useTrackEvents } from './use-track-events';
32
- import { svgA11yProps } from '../styles/svg-a11y';
33
-
34
- // `styled()` is told only about `style`: a dot-path union over React Native
35
- // 0.88's whole `TextInputProps` overflows the checker (TS2590). The annotation
36
- // is the real contract — `styles/styled-primitives.ts` does the same.
37
- const StyledTextInput: ComponentType<TextInputProps> = styled(
38
- TextInput as (props: { style?: StyleProp<TextStyle> }) => ReactNode,
39
- { className: 'style' },
40
- );
41
- const clamp01 = (n: number) => Math.min(1, Math.max(0, n));
42
- const THUMB =
43
- 'pointer-events-none absolute size-4 -translate-x-1/2 -translate-y-1/2 rounded-full border border-white bg-white/0 ' +
44
- 'shadow-[0_2px_4px_rgb(0_0_0/0.18),inset_0_0_0_1px_rgb(0_0_0/0.06)]';
45
-
46
- const SkinColorField = memo(function SkinColorField({ hue, id }: { hue: number; id: string }) {
47
- // Hue changes rebuild this small vector field. Saturation/value dragging only
48
- // moves the thumb; every displayed stop uses the same policy as saved skin.
49
- const fieldColors = useMemo(
50
- () =>
51
- Array.from({ length: 32 }, (_, x) =>
52
- Array.from({ length: 13 }, (_, y) =>
53
- normalizeAvatarSkinColor(hsvToHex({ h: hue, s: (x + 0.5) / 32, v: 1 - y / 12 })),
54
- ),
55
- ),
56
- [hue],
57
- );
58
- return (
59
- <Svg
60
- testID="avatar-skin-color-field"
61
- width="100%"
62
- height="100%"
63
- {...svgA11yProps()}
64
- style={{ position: 'absolute', left: 0, top: 0, borderRadius: 16, overflow: 'hidden' }}
65
- >
66
- <Defs>
67
- <ClipPath id={`${id}-field-clip`}>
68
- <Rect rx={16} width="100%" height="100%" />
69
- </ClipPath>
70
- {fieldColors.map((stops, column) => (
71
- <LinearGradient key={column} id={`${id}-field-${column}`} x1="0" x2="0" y1="0" y2="1">
72
- {stops.map((color, row) => (
73
- <Stop key={row} offset={row / 12} stopColor={color} />
74
- ))}
75
- </LinearGradient>
76
- ))}
77
- </Defs>
78
- <G clipPath={`url(#${id}-field-clip)`}>
79
- {fieldColors.map((_, column) => (
80
- <Rect
81
- key={column}
82
- x={`${(column * 100) / 32}%`}
83
- width={`${100 / 32 + 0.5}%`}
84
- height="100%"
85
- fill={`url(#${id}-field-${column})`}
86
- />
87
- ))}
88
- </G>
89
- </Svg>
90
- );
91
- });
92
-
93
- /** Source HSV picker: own two-dimensional field and 12px hue rail, rAF-throttled. */
94
- export function CustomColorPicker({
95
- value,
96
- onChange,
97
- onInteractionStart,
98
- onInteractionEnd,
99
- className,
100
- }: {
101
- value: string;
102
- onChange: (hex: string) => void;
103
- onInteractionStart?: () => void;
104
- onInteractionEnd?: () => void;
105
- className?: string;
106
- }) {
107
- const messages = useAgentCreatorMessages();
108
- const membership = useFieldMembership({ label: messages.hexColor });
109
- const { colors } = useTheme();
110
- const id = useSvgIdPrefix('bloom-color-picker');
111
- const fieldRef = useRef<ComponentRef<typeof View>>(null);
112
- const railRef = useRef<ComponentRef<typeof View>>(null);
113
- const [hsv, setHsv] = useState<Hsv>(
114
- () => hexToHsv(normalizeAvatarSkinColor(value)) ?? { h: 259, s: 0.83, v: 1 },
115
- );
116
- const [hexDraft, setHexDraft] = useState(() => normalizeAvatarSkinColor(value));
117
- const [seenValue, setSeenValue] = useState(() => normalizeAvatarSkinColor(value));
118
- const [lastEmitted, setLastEmitted] = useState(() => normalizeAvatarSkinColor(value));
119
- const [width, setWidth] = useState(228);
120
- const [hexFocused, setHexFocused] = useState(false);
121
- const frame = useRef(0);
122
- const nextValue = normalizeAvatarSkinColor(value);
123
- if (nextValue !== seenValue) {
124
- setSeenValue(nextValue);
125
- if (nextValue !== lastEmitted) {
126
- const parsed = hexToHsv(nextValue);
127
- if (parsed) {
128
- setLastEmitted(nextValue);
129
- setHsv(parsed);
130
- setHexDraft(nextValue);
131
- }
132
- }
133
- }
134
- const pendingHsv = useRef<Hsv | undefined>(undefined);
135
- const interacting = useRef(false);
136
- const latest = useRef({ onChange, onInteractionEnd, disabled: membership.disabled });
137
- latest.current = { onChange, onInteractionEnd, disabled: membership.disabled };
138
- const flush = useCallback(() => {
139
- if (frame.current) cancelAnimationFrame(frame.current);
140
- frame.current = 0;
141
- const next = pendingHsv.current;
142
- pendingHsv.current = undefined;
143
- if (!next || latest.current.disabled) return;
144
- const hex = normalizeAvatarSkinColor(hsvToHex(next));
145
- setHsv(next);
146
- setLastEmitted(hex);
147
- setHexDraft(hex);
148
- latest.current.onChange(hex);
149
- }, []);
150
- const emit = useCallback(
151
- (next: Hsv) => {
152
- if (latest.current.disabled) return;
153
- pendingHsv.current = next;
154
- if (!frame.current) frame.current = requestAnimationFrame(flush);
155
- },
156
- [flush],
157
- );
158
- useEffect(
159
- () => () => {
160
- if (frame.current) cancelAnimationFrame(frame.current);
161
- if (interacting.current) latest.current.onInteractionEnd?.();
162
- },
163
- [],
164
- );
165
- const field = Gesture.Pan()
166
- .enabled(!membership.disabled)
167
- .minDistance(0)
168
- .runOnJS(true)
169
- .onFinalize(() => {
170
- flush();
171
- interacting.current = false;
172
- latest.current.onInteractionEnd?.();
173
- })
174
- .onBegin((event) => {
175
- interacting.current = true;
176
- onInteractionStart?.();
177
- fieldRef.current?.focus();
178
- emit({
179
- ...(pendingHsv.current ?? hsv),
180
- s: clamp01(event.x / width),
181
- v: 1 - clamp01(event.y / ((width * 2) / 3)),
182
- });
183
- })
184
- .onUpdate((event) =>
185
- emit({
186
- ...(pendingHsv.current ?? hsv),
187
- s: clamp01(event.x / width),
188
- v: 1 - clamp01(event.y / ((width * 2) / 3)),
189
- }),
190
- );
191
- const rail = Gesture.Pan()
192
- .enabled(!membership.disabled)
193
- .minDistance(0)
194
- .runOnJS(true)
195
- .onFinalize(() => {
196
- flush();
197
- interacting.current = false;
198
- latest.current.onInteractionEnd?.();
199
- })
200
- .onBegin((event) => {
201
- interacting.current = true;
202
- onInteractionStart?.();
203
- railRef.current?.focus();
204
- emit({
205
- ...(pendingHsv.current ?? hsv),
206
- h: Math.min(clamp01(event.x / width) * 360, 359.9),
207
- });
208
- })
209
- .onUpdate((event) =>
210
- emit({
211
- ...(pendingHsv.current ?? hsv),
212
- h: Math.min(clamp01(event.x / width) * 360, 359.9),
213
- }),
214
- );
215
- useTrackEvents(fieldRef, undefined, (key, shift) => {
216
- const step = shift ? 0.1 : 0.02;
217
- const moves: Record<string, Partial<Hsv>> = {
218
- ArrowLeft: { s: clamp01((pendingHsv.current ?? hsv).s - step) },
219
- ArrowRight: { s: clamp01((pendingHsv.current ?? hsv).s + step) },
220
- ArrowUp: { v: clamp01((pendingHsv.current ?? hsv).v + step) },
221
- ArrowDown: { v: clamp01((pendingHsv.current ?? hsv).v - step) },
222
- };
223
- const move = moves[key];
224
- if (!move) return false;
225
- emit({ ...(pendingHsv.current ?? hsv), ...move });
226
- return true;
227
- });
228
- useTrackEvents(railRef, undefined, (key, shift) => {
229
- const step = shift ? 15 : 3;
230
- const delta =
231
- key === 'ArrowLeft' || key === 'ArrowDown'
232
- ? -step
233
- : key === 'ArrowRight' || key === 'ArrowUp'
234
- ? step
235
- : null;
236
- if (delta === null) return false;
237
- emit({
238
- ...(pendingHsv.current ?? hsv),
239
- h: Math.min(Math.max((pendingHsv.current ?? hsv).h + delta, 0), 359.9),
240
- });
241
- return true;
242
- });
243
- const commitHexDraft = () => {
244
- if (membership.disabled) return;
245
- if (frame.current) cancelAnimationFrame(frame.current);
246
- frame.current = 0;
247
- pendingHsv.current = undefined;
248
- const parsed = hexToHsv(hexDraft);
249
- if (!parsed) {
250
- setHexDraft(lastEmitted);
251
- return;
252
- }
253
- const hex = normalizeAvatarSkinColor(hsvToHex(parsed));
254
- setLastEmitted(hex);
255
- setHsv(hexToHsv(hex)!);
256
- setHexDraft(hex);
257
- onChange(hex);
258
- };
259
- const hueColor = hsvToHex({ h: hsv.h, s: 1, v: 1 });
260
- const current = normalizeAvatarSkinColor(hsvToHex(hsv));
261
- const thumb = {
262
- width: 16,
263
- height: 16,
264
- borderWidth: 1,
265
- borderColor: '#ffffff',
266
- borderRadius: 8,
267
- transform: Platform.OS === 'web' ? undefined : [{ translateX: -8 }, { translateY: -8 }],
268
- boxShadow: '0 2px 4px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.06)',
269
- };
270
- return (
271
- <StyledView
272
- className={className ? `flex flex-col gap-2.5 ${className}` : 'flex flex-col gap-2.5'}
273
- >
274
- <GestureDetector gesture={field}>
275
- <StyledView
276
- ref={fieldRef}
277
- onLayout={(event) => setWidth(event.nativeEvent.layout.width)}
278
- role="slider"
279
- tabIndex={membership.disabled ? -1 : 0}
280
- aria-disabled={membership.disabled || undefined}
281
- aria-invalid={membership.invalid || undefined}
282
- aria-describedby={membership.describedBy}
283
- accessibilityHint={membership.accessibilityHint}
284
- accessibilityLabel={messages.saturationBrightness}
285
- aria-valuemin={0}
286
- aria-valuemax={100}
287
- aria-valuenow={Math.round(hsv.v * 100)}
288
- aria-valuetext={messages.saturationBrightnessValue(
289
- Math.round(hsv.s * 100),
290
- Math.round(hsv.v * 100),
291
- )}
292
- className="relative aspect-[3/2] w-full cursor-crosshair touch-none rounded-2xl outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-2"
293
- accessibilityActions={[
294
- { name: 'increment', label: messages.increaseBrightness },
295
- { name: 'decrement', label: messages.decreaseBrightness },
296
- ]}
297
- onAccessibilityAction={(event) =>
298
- emit({
299
- ...(pendingHsv.current ?? hsv),
300
- v: clamp01(
301
- (pendingHsv.current ?? hsv).v +
302
- (event.nativeEvent.actionName === 'increment' ? 0.02 : -0.02),
303
- ),
304
- })
305
- }
306
- >
307
- <SkinColorField hue={hsv.h} id={id} />
308
- <StyledView
309
- pointerEvents="none"
310
- aria-hidden
311
- className="pointer-events-none absolute inset-0 rounded-2xl shadow-[inset_0_0_0_1px_rgb(0_0_0/0.06),inset_0_1px_0_rgb(255_255_255/0.12)]"
312
- />
313
- <StyledView
314
- pointerEvents="none"
315
- aria-hidden
316
- className={THUMB}
317
- style={[
318
- thumb,
319
- {
320
- position: 'absolute',
321
- left: `${hsv.s * 100}%`,
322
- top: `${(1 - hsv.v) * 100}%`,
323
- backgroundColor: current,
324
- },
325
- ]}
326
- />
327
- </StyledView>
328
- </GestureDetector>
329
- <GestureDetector gesture={rail}>
330
- <StyledView
331
- ref={railRef}
332
- role="slider"
333
- tabIndex={membership.disabled ? -1 : 0}
334
- aria-disabled={membership.disabled || undefined}
335
- aria-invalid={membership.invalid || undefined}
336
- aria-describedby={membership.describedBy}
337
- accessibilityHint={membership.accessibilityHint}
338
- accessibilityLabel={messages.hue}
339
- aria-valuemin={0}
340
- aria-valuemax={360}
341
- aria-valuenow={Math.round(hsv.h)}
342
- className="relative h-3 w-full cursor-pointer touch-none rounded-full outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-2"
343
- accessibilityActions={[
344
- { name: 'increment', label: messages.increaseHue },
345
- { name: 'decrement', label: messages.decreaseHue },
346
- ]}
347
- onAccessibilityAction={(event) =>
348
- emit({
349
- ...(pendingHsv.current ?? hsv),
350
- h: Math.min(
351
- Math.max(
352
- (pendingHsv.current ?? hsv).h +
353
- (event.nativeEvent.actionName === 'increment' ? 3 : -3),
354
- 0,
355
- ),
356
- 359.9,
357
- ),
358
- })
359
- }
360
- >
361
- <Svg
362
- width="100%"
363
- height={12}
364
- {...svgA11yProps()}
365
- style={{ position: 'absolute', left: 0, top: 0 }}
366
- >
367
- <Defs>
368
- <LinearGradient id={`${id}hue`} x1="0" x2="1" y1="0" y2="0">
369
- {['#ff0000', '#ffff00', '#00ff00', '#00ffff', '#0000ff', '#ff00ff', '#ff0000'].map(
370
- (color, index) => (
371
- <Stop key={color + index} offset={index / 6} stopColor={color} />
372
- ),
373
- )}
374
- </LinearGradient>
375
- </Defs>
376
- <Rect rx={6} width="100%" height={12} fill={`url(#${id}hue)`} />
377
- </Svg>
378
- <StyledView
379
- pointerEvents="none"
380
- aria-hidden
381
- className="pointer-events-none absolute inset-0 rounded-full shadow-[inset_0_0_0_1px_rgb(0_0_0/0.06)]"
382
- />
383
- <StyledView
384
- pointerEvents="none"
385
- aria-hidden
386
- className={`${THUMB} top-1/2`}
387
- style={[
388
- thumb,
389
- {
390
- position: 'absolute',
391
- left: `${(hsv.h / 360) * 100}%`,
392
- top: '50%',
393
- backgroundColor: hueColor,
394
- },
395
- ]}
396
- />
397
- </StyledView>
398
- </GestureDetector>
399
- <StyledView className="flex items-center gap-2 flex-row">
400
- <StyledView
401
- aria-hidden
402
- className="relative size-8 shrink-0 overflow-hidden rounded-full shadow-[inset_0_0_0_1px_rgb(0_0_0/0.06)]"
403
- >
404
- <GlossArt center={current} edge={current} size={32} />
405
- </StyledView>
406
- <StyledTextInput
407
- value={hexDraft}
408
- onChangeText={setHexDraft}
409
- autoCorrect={false}
410
- autoCapitalize="none"
411
- accessibilityLabel={membership.accessibilityLabel}
412
- nativeID={membership.nativeID}
413
- aria-describedby={membership.describedBy}
414
- accessibilityHint={membership.accessibilityHint}
415
- aria-invalid={membership.invalid || undefined}
416
- aria-disabled={membership.disabled || undefined}
417
- editable={!membership.disabled}
418
- onFocus={() => setHexFocused(true)}
419
- onBlur={() => {
420
- setHexFocused(false);
421
- commitHexDraft();
422
- }}
423
- onSubmitEditing={commitHexDraft}
424
- className="h-8 w-full min-w-0 rounded-2lg bg-background-tertiary-default px-2.5 font-mono text-[13px] text-text-primary uppercase outline-none ring-2 ring-transparent ring-inset transition-[background-color,box-shadow] duration-150 ease placeholder:text-text-placeholder focus:bg-background-primary-default focus:ring-border-focus-ring"
425
- style={[
426
- { flex: 1, direction: 'ltr' },
427
- Platform.OS === 'web'
428
- ? undefined
429
- : {
430
- height: 32,
431
- borderRadius: 10,
432
- paddingHorizontal: 10,
433
- backgroundColor: hexFocused ? colors.card : colors.backgroundTertiary,
434
- color: colors.text,
435
- fontFamily: 'monospace',
436
- fontSize: 13,
437
- },
438
- ]}
439
- />
440
- </StyledView>
441
- </StyledView>
442
- );
443
- }
@@ -1,160 +0,0 @@
1
- import { Platform } from 'react-native';
2
- import Svg, {
3
- Circle,
4
- ClipPath,
5
- Defs,
6
- Ellipse,
7
- FeGaussianBlur,
8
- Filter,
9
- G,
10
- LinearGradient,
11
- RadialGradient,
12
- Rect,
13
- Stop,
14
- } from 'react-native-svg';
15
- import { StyledImage, StyledView } from '../styles/styled-primitives';
16
- import { useSvgIdPrefix } from '../styles/svg-id';
17
- import type { WebCssStyle } from '../styles/web-view-style';
18
- import { useTheme } from '../theme/use-theme';
19
- import { RAINBOW_DARK, RAINBOW_LIGHT } from './rainbow-artwork';
20
- import { svgA11yProps } from '../styles/svg-a11y';
21
-
22
- /** The original four-layer glossy sphere, with the same 26px reflection geometry. */
23
- export function GlossArt({
24
- center = '#437EF7',
25
- edge = '#004DE9',
26
- rainbow = false,
27
- active = false,
28
- size = 26,
29
- }: {
30
- center?: string;
31
- edge?: string;
32
- rainbow?: boolean;
33
- active?: boolean;
34
- size?: number;
35
- }) {
36
- const id = useSvgIdPrefix('bloom-gloss');
37
- const { isDark } = useTheme();
38
- if (rainbow)
39
- return (
40
- <StyledView
41
- aria-hidden
42
- pointerEvents="none"
43
- className="absolute inset-0 overflow-hidden rounded-full"
44
- style={{ width: size, height: size }}
45
- >
46
- <StyledImage
47
- source={{ uri: isDark ? RAINBOW_DARK : RAINBOW_LIGHT }}
48
- className="object-cover"
49
- contentFit="cover"
50
- style={{ width: size, height: size }}
51
- />
52
- </StyledView>
53
- );
54
- if (Platform.OS === 'web') {
55
- const fill: WebCssStyle = {
56
- backgroundImage: `radial-gradient(closest-side circle at 50% 50%, ${center} 0%, ${edge} 100%)`,
57
- };
58
- return (
59
- <StyledView
60
- pointerEvents="none"
61
- aria-hidden
62
- className="relative overflow-hidden rounded-full"
63
- style={[{ width: size, height: size }, fill]}
64
- >
65
- <StyledView
66
- aria-hidden
67
- className="absolute inset-0 bg-linear-to-b from-[#ffffff00] to-[#ffffff4d]"
68
- />
69
- <StyledView
70
- aria-hidden
71
- className="absolute top-0 left-[7.7%] h-[38.5%] w-[84.6%] rounded-[50%] bg-linear-to-b from-[#ffffff80] to-[#ffffff00] blur-[0.5px]"
72
- />
73
- <StyledView
74
- aria-hidden
75
- className="absolute top-0 left-[34.6%] h-[11.5%] w-[30.8%] rounded-[50%] bg-linear-to-b from-[#ffffff80] to-[#ffffff00] blur-[1px]"
76
- />
77
- <StyledView
78
- aria-hidden
79
- className="absolute top-[73.1%] left-[-23.1%] h-[53.8%] w-[138.5%] rounded-[50%] bg-linear-to-b from-[#ffffff00] to-[#ffffff80] blur-[0.5px]"
80
- />
81
- {active && (
82
- <StyledView
83
- aria-hidden
84
- className="pointer-events-none absolute inset-0 rounded-full shadow-[inset_0_0_0_2px_rgb(0_0_0/0.30)]"
85
- />
86
- )}
87
- </StyledView>
88
- );
89
- }
90
- return (
91
- <Svg width={size} height={size} viewBox="0 0 26 26" {...svgA11yProps()}>
92
- <Defs>
93
- <ClipPath id={`${id}clip`}>
94
- <Circle cx={13} cy={13} r={13} />
95
- </ClipPath>
96
- <RadialGradient id={`${id}base`} cx="50%" cy="50%" r="50%">
97
- <Stop offset="0" stopColor={center} />
98
- <Stop offset="1" stopColor={edge} />
99
- </RadialGradient>
100
- <LinearGradient id={`${id}sheen`} x1="0" y1="0" x2="0" y2="1">
101
- <Stop offset="0" stopColor="#ffffff" stopOpacity={0} />
102
- <Stop offset="1" stopColor="#ffffff" stopOpacity={0.3} />
103
- </LinearGradient>
104
- <LinearGradient id={`${id}reflection`} x1="0" y1="0" x2="0" y2="1">
105
- <Stop offset="0" stopColor="#ffffff" stopOpacity={0.5} />
106
- <Stop offset="1" stopColor="#ffffff" stopOpacity={0} />
107
- </LinearGradient>
108
- <LinearGradient id={`${id}bounce`} x1="0" y1="0" x2="0" y2="1">
109
- <Stop offset="0" stopColor="#ffffff" stopOpacity={0} />
110
- <Stop offset="1" stopColor="#ffffff" stopOpacity={0.5} />
111
- </LinearGradient>
112
- <Filter id={`${id}soft`} x="-25%" y="-25%" width="150%" height="150%">
113
- <FeGaussianBlur stdDeviation={0.5} />
114
- </Filter>
115
- <Filter id={`${id}hotspot`} x="-50%" y="-50%" width="200%" height="200%">
116
- <FeGaussianBlur stdDeviation={1} />
117
- </Filter>
118
- </Defs>
119
- <G clipPath={`url(#${id}clip)`}>
120
- <Circle cx={13} cy={13} r={13} fill={`url(#${id}base)`} />
121
- <Rect width={26} height={26} fill={`url(#${id}sheen)`} />
122
- <Ellipse
123
- cx={13}
124
- cy={5}
125
- rx={11}
126
- ry={5}
127
- fill={`url(#${id}reflection)`}
128
- filter={`url(#${id}soft)`}
129
- />
130
- <Ellipse
131
- cx={13}
132
- cy={1.5}
133
- rx={4}
134
- ry={1.5}
135
- fill={`url(#${id}reflection)`}
136
- filter={`url(#${id}hotspot)`}
137
- />
138
- <Ellipse
139
- cx={12}
140
- cy={26}
141
- rx={18}
142
- ry={7}
143
- fill={`url(#${id}bounce)`}
144
- filter={`url(#${id}soft)`}
145
- />
146
- {active && (
147
- <Circle
148
- cx={13}
149
- cy={13}
150
- r={12}
151
- fill="none"
152
- stroke="#000000"
153
- strokeOpacity={0.3}
154
- strokeWidth={2}
155
- />
156
- )}
157
- </G>
158
- </Svg>
159
- );
160
- }