@oxy.so/bloom 20.0.0 → 21.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.
- package/docs/adoption-matrix.mdx +6 -7
- package/docs/agent-avatar.mdx +4 -4
- package/docs/agent-creator.mdx +13 -11
- package/docs/multi-agent-chat.mdx +1 -1
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/agent-avatar/character.js +4 -4
- package/lib/commonjs/agent-creator/AgentCreator.js +4 -0
- package/lib/commonjs/agent-creator/AgentCreator.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreator.web.js +12 -8
- package/lib/commonjs/agent-creator/AgentCreator.web.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreatorBase.js +93 -48
- package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/commonjs/agent-creator/CustomColorPicker.js +431 -0
- package/lib/commonjs/agent-creator/CustomColorPicker.js.map +1 -0
- package/lib/commonjs/agent-creator/GlossArt.js +212 -0
- package/lib/commonjs/agent-creator/GlossArt.js.map +1 -0
- package/lib/commonjs/agent-creator/context.js.map +1 -1
- package/lib/commonjs/agent-creator/messages.js +22 -1
- package/lib/commonjs/agent-creator/messages.js.map +1 -1
- package/lib/commonjs/agent-creator/paint.js +19 -7
- package/lib/commonjs/agent-creator/paint.js.map +1 -1
- package/lib/commonjs/agent-creator/rainbow-artwork.js +10 -0
- package/lib/commonjs/agent-creator/rainbow-artwork.js.map +1 -0
- package/lib/commonjs/agent-creator/shared.js +28 -0
- package/lib/commonjs/agent-creator/shared.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +22 -1
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +22 -1
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +22 -1
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +22 -1
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +22 -1
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +22 -1
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +22 -1
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +22 -1
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +22 -1
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +22 -1
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +22 -1
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +22 -1
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +22 -1
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +22 -1
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/data.js +2 -2
- package/lib/commonjs/multi-agent-chat/data.js.map +1 -1
- package/lib/module/agent-avatar/character.js +4 -4
- package/lib/module/agent-creator/AgentCreator.js +4 -0
- package/lib/module/agent-creator/AgentCreator.js.map +1 -1
- package/lib/module/agent-creator/AgentCreator.web.js +4 -0
- package/lib/module/agent-creator/AgentCreator.web.js.map +1 -1
- package/lib/module/agent-creator/AgentCreatorBase.js +89 -44
- package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/module/agent-creator/CustomColorPicker.js +426 -0
- package/lib/module/agent-creator/CustomColorPicker.js.map +1 -0
- package/lib/module/agent-creator/GlossArt.js +207 -0
- package/lib/module/agent-creator/GlossArt.js.map +1 -0
- package/lib/module/agent-creator/context.js.map +1 -1
- package/lib/module/agent-creator/messages.js +22 -1
- package/lib/module/agent-creator/messages.js.map +1 -1
- package/lib/module/agent-creator/paint.js +18 -7
- package/lib/module/agent-creator/paint.js.map +1 -1
- package/lib/module/agent-creator/rainbow-artwork.js +6 -0
- package/lib/module/agent-creator/rainbow-artwork.js.map +1 -0
- package/lib/module/agent-creator/shared.js +26 -0
- package/lib/module/agent-creator/shared.js.map +1 -1
- package/lib/module/locale/translations/ar.js +22 -1
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +22 -1
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +22 -1
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +22 -1
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +22 -1
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +22 -1
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +22 -1
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +22 -1
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +22 -1
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +22 -1
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +22 -1
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +22 -1
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +22 -1
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +22 -1
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/multi-agent-chat/data.js +3 -3
- package/lib/module/multi-agent-chat/data.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/character.d.ts +4 -4
- package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts +9 -0
- package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts +9 -0
- package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/context.d.ts +13 -1
- package/lib/typescript/commonjs/agent-creator/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/messages.d.ts +11 -0
- package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/paint.d.ts +9 -4
- package/lib/typescript/commonjs/agent-creator/paint.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts +3 -0
- package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/shared.d.ts +7 -0
- package/lib/typescript/commonjs/agent-creator/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/types.d.ts +4 -7
- package/lib/typescript/commonjs/agent-creator/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/types.d.ts +1 -2
- package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/data.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/character.d.ts +4 -4
- package/lib/typescript/module/agent-creator/AgentCreator.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts +9 -0
- package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/GlossArt.d.ts +9 -0
- package/lib/typescript/module/agent-creator/GlossArt.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/context.d.ts +13 -1
- package/lib/typescript/module/agent-creator/context.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/messages.d.ts +11 -0
- package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/paint.d.ts +9 -4
- package/lib/typescript/module/agent-creator/paint.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts +3 -0
- package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/shared.d.ts +7 -0
- package/lib/typescript/module/agent-creator/shared.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/types.d.ts +4 -7
- package/lib/typescript/module/agent-creator/types.d.ts.map +1 -1
- package/lib/typescript/module/avatar/types.d.ts +1 -2
- package/lib/typescript/module/avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/data.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/adoption-matrix.ts +0 -5
- package/src/agent-avatar/character.ts +4 -4
- package/src/agent-creator/AgentCreator.tsx +4 -0
- package/src/agent-creator/AgentCreator.web.tsx +4 -0
- package/src/agent-creator/AgentCreatorBase.tsx +83 -39
- package/src/agent-creator/CustomColorPicker.tsx +443 -0
- package/src/agent-creator/GlossArt.tsx +160 -0
- package/src/agent-creator/context.ts +2 -0
- package/src/agent-creator/messages.ts +37 -1
- package/src/agent-creator/paint.ts +17 -7
- package/src/agent-creator/rainbow-artwork.ts +5 -0
- package/src/agent-creator/shared.ts +27 -0
- package/src/agent-creator/types.ts +4 -7
- package/src/avatar/types.ts +1 -2
- package/src/locale/translations/ar.ts +23 -1
- package/src/locale/translations/bn.ts +23 -1
- package/src/locale/translations/ca.ts +23 -1
- package/src/locale/translations/de.ts +23 -1
- package/src/locale/translations/es.ts +23 -1
- package/src/locale/translations/fr.ts +23 -1
- package/src/locale/translations/hi.ts +23 -1
- package/src/locale/translations/id.ts +23 -1
- package/src/locale/translations/it.ts +23 -1
- package/src/locale/translations/ja.ts +23 -1
- package/src/locale/translations/pt.ts +23 -1
- package/src/locale/translations/ru.ts +23 -1
- package/src/locale/translations/tr.ts +23 -1
- package/src/locale/translations/zh.ts +23 -1
- package/src/multi-agent-chat/data.ts +5 -3
|
@@ -0,0 +1 @@
|
|
|
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,3 +1,10 @@
|
|
|
1
1
|
import type { AgentPreferences } from './types.js';
|
|
2
2
|
export declare function normalizeAgentPreferences(value: Partial<AgentPreferences> | null | undefined): AgentPreferences;
|
|
3
|
+
export type Hsv = {
|
|
4
|
+
h: number;
|
|
5
|
+
s: number;
|
|
6
|
+
v: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function hexToHsv(hex: string): Hsv | null;
|
|
9
|
+
export declare function hsvToHex({ h, s, v }: Hsv): string;
|
|
3
10
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAEhD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,GAAG,SAAS,GAClD,gBAAgB,CAYlB"}
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAEhD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,GAAG,SAAS,GAClD,gBAAgB,CAYlB;AACD,MAAM,MAAM,GAAG,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACtD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAgBhD;AACD,wBAAgB,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,UAQxC"}
|
|
@@ -20,8 +20,10 @@ export type AgentCreatorAgent = {
|
|
|
20
20
|
*/
|
|
21
21
|
avatar: AvatarCharacter;
|
|
22
22
|
/**
|
|
23
|
-
* The agent's colour: its
|
|
24
|
-
* the avatar, and the colour control changes it
|
|
23
|
+
* The agent's colour: its ACCOUNT's (`User.color` in Oxy), a Bloom colour preset key or a
|
|
24
|
+
* `#rrggbb`. It paints the avatar, and the colour control changes it: `onChange` with a new
|
|
25
|
+
* `color`, always a `#rrggbb` lifted to the avatar skin floor, so the stored colour is exactly
|
|
26
|
+
* the drawn one.
|
|
25
27
|
*/
|
|
26
28
|
color: string;
|
|
27
29
|
preferences?: AgentPreferences;
|
|
@@ -37,11 +39,6 @@ export interface AgentCreatorProps {
|
|
|
37
39
|
agent: AgentCreatorAgent;
|
|
38
40
|
onChange: (agent: AgentCreatorAgent) => void;
|
|
39
41
|
onClose?: () => void;
|
|
40
|
-
/**
|
|
41
|
-
* The colour preset keys the colour control offers, in order. Default `FREE_COLOR_NAMES`. A host
|
|
42
|
-
* passes exactly what its account service accepts, so no colour offered is refused on save.
|
|
43
|
-
*/
|
|
44
|
-
colors?: readonly string[];
|
|
45
42
|
className?: string;
|
|
46
43
|
style?: StyleProp<ViewStyle>;
|
|
47
44
|
/** Native hosts can supply their speech provider's catalog. Web uses local device voices by default. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/types.ts"],"names":[],"mappings":"AAAA,OAAO,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
|
|
|
14
14
|
/** Stored bot character data, validated before rendering. Unknown recipes fall back to its image. */
|
|
15
15
|
character?: unknown;
|
|
16
16
|
/**
|
|
17
|
-
* The account's colour, as Oxy stores `User.color`: a Bloom colour preset key
|
|
18
|
-
* `#rrggbb`). A bot's character is drawn in it (`avatarCharacterInColor`), so a bot looks the
|
|
17
|
+
* The account's colour, as Oxy stores `User.color`: a Bloom colour preset key or a `#rrggbb`. A bot's character is drawn in it (`avatarCharacterInColor`), so a bot looks the
|
|
19
18
|
* colour of its account everywhere its account is drawn.
|
|
20
19
|
*/
|
|
21
20
|
color?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,oBAAW,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,iGAAiG;IACjG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,qGAAqG;IACrG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,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f,8EAA8E;IAC9E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAuyG5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/bn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/bn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAw0F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ca.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ca.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAy6F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/de.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/de.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA28F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/es.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/es.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAq8F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/fr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/fr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAm9F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/hi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/hi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA41F5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA25F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/it.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/it.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAo8F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ja.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ja.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA02F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/pt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/pt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAw9F5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ru.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ru.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAgvG5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/tr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/tr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA83F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/zh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/zh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAgyF5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/data.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAIrB,MAAM,0BAAiB,CAAC;AAOzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAAwB,CAAC;AAChE,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;AAEtC,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,eAAe,CAEtF;AAID,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG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CAAC;AACF,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AA4CF,iFAAiF;AACjF,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,GAC5B,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,CAoB1C;AAkCD,eAAO,MAAM,cAAc,EAAE,KAAK,EAyDjC,CAAC;AAgFF,eAAO,MAAM,iBAAiB,EAAE,SAS/B,CAAC;AAEF,sFAAsF;AACtF,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAqM9D;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,CAQxF;AAED,mGAAmG;AACnG,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAAE,GACjB,SAAS,CAWX;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAOlF;AAED,oFAAoF;AACpF,eAAO,MAAM,YAAY,ilIAWf,CAAC;AAEX,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQpD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,SAAI,GAAG,MAAM,CAqBxD"}
|
package/package.json
CHANGED
|
@@ -389,11 +389,6 @@ export const CLASSIFICATION: Record<string, Record<string, Classification>> = {
|
|
|
389
389
|
verdict: 'does-not-apply',
|
|
390
390
|
reason: SELECTION_ROW,
|
|
391
391
|
},
|
|
392
|
-
'agent-creator': {
|
|
393
|
-
verdict: 'does-not-apply',
|
|
394
|
-
reason:
|
|
395
|
-
'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`.',
|
|
396
|
-
},
|
|
397
392
|
styles: {
|
|
398
393
|
verdict: 'does-not-apply',
|
|
399
394
|
reason:
|
|
@@ -208,10 +208,10 @@ export function updateAvatarCharacter(
|
|
|
208
208
|
* A character painted in its account's colour.
|
|
209
209
|
*
|
|
210
210
|
* `color` is the colour of the account the character stands for, as Oxy stores `User.color`: a
|
|
211
|
-
* Bloom colour preset key (`'lagoon'`)
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* avatar paint.
|
|
211
|
+
* Bloom colour preset key (`'lagoon'`) or a hex (`'#ff8b67'`, `'#f80'`), both ordinary account
|
|
212
|
+
* colours. A preset paints the body its identity seed, a hex paints it that hex, each lifted to the
|
|
213
|
+
* avatar skin floor (`normalizeAvatarSkinColor`), so a hex an editor wrote back comes out exactly as
|
|
214
|
+
* written. This is the one place an account colour becomes an avatar paint.
|
|
215
215
|
*
|
|
216
216
|
* The result carries `bodyColor` and no `color`; every part is kept. A colour that does not resolve
|
|
217
217
|
* (`null`, `undefined`, an unknown key) returns the character unchanged, so its own paint (or its
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Screen, ScreenScrollView } from '../screen/index';
|
|
2
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
2
3
|
import {
|
|
3
4
|
Select,
|
|
4
5
|
SelectContent,
|
|
@@ -22,6 +23,9 @@ const bindings = {
|
|
|
22
23
|
SelectContent,
|
|
23
24
|
SelectItem,
|
|
24
25
|
SelectItemText,
|
|
26
|
+
Popover,
|
|
27
|
+
PopoverTrigger,
|
|
28
|
+
PopoverContent,
|
|
25
29
|
SettingsSelect,
|
|
26
30
|
};
|
|
27
31
|
export function AgentCreator(props: AgentCreatorProps) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Screen, ScreenScrollView } from '../screen/index.web';
|
|
2
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../popover/index.web';
|
|
2
3
|
import {
|
|
3
4
|
Select,
|
|
4
5
|
SelectContent,
|
|
@@ -22,6 +23,9 @@ const bindings = {
|
|
|
22
23
|
SelectContent,
|
|
23
24
|
SelectItem,
|
|
24
25
|
SelectItemText,
|
|
26
|
+
Popover,
|
|
27
|
+
PopoverTrigger,
|
|
28
|
+
PopoverContent,
|
|
25
29
|
SettingsSelect,
|
|
26
30
|
};
|
|
27
31
|
export function AgentCreator(props: AgentCreatorProps) {
|
|
@@ -8,9 +8,8 @@ import {
|
|
|
8
8
|
resolveAvatarCharacter,
|
|
9
9
|
updateAvatarCharacter,
|
|
10
10
|
} from '../agent-avatar';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { drawnCharacter } from './paint';
|
|
11
|
+
import { normalizeAvatarSkinColor } from '../agent-avatar/skin-color';
|
|
12
|
+
import { accountBodyHex, drawnCharacter } from './paint';
|
|
14
13
|
import { editorShapeId } from './shape-choices';
|
|
15
14
|
import { ButtonGroup, ButtonGroupItem } from '../button-group';
|
|
16
15
|
import { RiArrowGoBackLine } from '../icons/remix/RiArrowGoBackLine';
|
|
@@ -25,13 +24,15 @@ import { Text } from '../typography';
|
|
|
25
24
|
import { AgentCreatorField } from './AgentCreatorField';
|
|
26
25
|
import { AgentPreferencesPanel } from './AgentPreferencesPanel';
|
|
27
26
|
import { CharacterControls } from './CharacterControls';
|
|
27
|
+
import { CustomColorPicker } from './CustomColorPicker';
|
|
28
28
|
import { EmotionPicker } from './EmotionPicker';
|
|
29
|
+
import { GlossArt } from './GlossArt';
|
|
29
30
|
import { PageHeader } from '../page-header/PageHeader';
|
|
30
31
|
import { useDialogContext } from '../dialog/context';
|
|
31
32
|
import { SurfaceLevelProvider } from '../styles/surface-levels';
|
|
32
33
|
import { useSurfaceBacking } from '../surface/use-surface-backing';
|
|
33
34
|
import { ShapeArc } from './ShapeArc';
|
|
34
|
-
import { CHARACTER_OPTIONS } from './constants';
|
|
35
|
+
import { CHARACTER_COLORS, CHARACTER_OPTIONS } from './constants';
|
|
35
36
|
import {
|
|
36
37
|
AgentCreatorCopyContext,
|
|
37
38
|
useAgentCreatorBindings,
|
|
@@ -47,7 +48,8 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
47
48
|
const { isWithinDialog } = useDialogContext();
|
|
48
49
|
const { colors } = useTheme();
|
|
49
50
|
const backing = useSurfaceBacking(colors.background, style);
|
|
50
|
-
const { Screen, ScreenScrollView } =
|
|
51
|
+
const { Screen, ScreenScrollView, Popover, PopoverTrigger, PopoverContent } =
|
|
52
|
+
useAgentCreatorBindings();
|
|
51
53
|
const latest = useRef({ agent, onChange });
|
|
52
54
|
latest.current = { agent, onChange };
|
|
53
55
|
const copy = useMemo(
|
|
@@ -103,34 +105,25 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
103
105
|
node?.addEventListener('keydown', keydown);
|
|
104
106
|
return () => node?.removeEventListener('keydown', keydown);
|
|
105
107
|
}, []);
|
|
106
|
-
// The colours offered are the host's, and only those Bloom can draw.
|
|
107
|
-
const offered = useMemo(
|
|
108
|
-
() => (props.colors ?? FREE_COLOR_NAMES).filter((key) => key in APP_COLOR_PRESETS),
|
|
109
|
-
[props.colors],
|
|
110
|
-
);
|
|
111
|
-
const swatches = useMemo(() => {
|
|
112
|
-
const keyOf: Record<string, string> = {};
|
|
113
|
-
const names: Record<string, string> = {};
|
|
114
|
-
const hexes = offered.map((key) => {
|
|
115
|
-
const preset = COLOR_PRESET_REGISTRY.find(({ name }) => name === key)!;
|
|
116
|
-
keyOf[preset.hex] = key;
|
|
117
|
-
names[preset.hex] = preset.displayName;
|
|
118
|
-
return preset.hex;
|
|
119
|
-
});
|
|
120
|
-
return { hexes, keyOf, names };
|
|
121
|
-
}, [offered]);
|
|
122
108
|
// Every control draws the character in the agent's colour and writes one edit to the saved
|
|
123
109
|
// one; the history keeps the parts and drops the paint.
|
|
124
|
-
const painted = useMemo(
|
|
125
|
-
() => drawnCharacter(avatar, agent.color, offered),
|
|
126
|
-
[avatar, agent.color, offered],
|
|
127
|
-
);
|
|
110
|
+
const painted = useMemo(() => drawnCharacter(avatar, agent.color), [avatar, agent.color]);
|
|
128
111
|
const character = useMemo(() => resolveAvatarCharacter(painted), [painted]);
|
|
129
112
|
const edit = (patch: Parameters<typeof updateAvatarCharacter>[1]) =>
|
|
130
113
|
history.change(updateAvatarCharacter(painted, patch));
|
|
131
114
|
const bodyHex = avatarBodyHex(character);
|
|
132
|
-
|
|
133
|
-
|
|
115
|
+
// The colour control writes the ACCOUNT's colour, as the hex the avatar is drawn in.
|
|
116
|
+
const colorHex = accountBodyHex(agent.color);
|
|
117
|
+
const namedColor = CHARACTER_OPTIONS.color.find(
|
|
118
|
+
([id]) => normalizeAvatarSkinColor(CHARACTER_COLORS[id]) === colorHex,
|
|
119
|
+
)?.[0];
|
|
120
|
+
const customHex = namedColor === undefined ? colorHex : undefined;
|
|
121
|
+
const changeColor = (hex: string) => {
|
|
122
|
+
if (!/^#[0-9a-f]{6}$/i.test(hex)) return;
|
|
123
|
+
const color = normalizeAvatarSkinColor(hex);
|
|
124
|
+
if (color === accountBodyHex(latest.current.agent.color)) return;
|
|
125
|
+
latest.current.onChange({ ...latest.current.agent, color });
|
|
126
|
+
};
|
|
134
127
|
const shapeChoices = useMemo(
|
|
135
128
|
() =>
|
|
136
129
|
CHARACTER_OPTIONS.shape.map(([id, title]) => ({
|
|
@@ -291,19 +284,70 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
291
284
|
{preparing ? messages.preparingAvatar : ''}
|
|
292
285
|
</Text>
|
|
293
286
|
</StyledView>
|
|
294
|
-
<StyledView
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
287
|
+
<StyledView
|
|
288
|
+
className="mt-[15px] flex shrink-0 flex-row justify-center"
|
|
289
|
+
style={{ flexShrink: 0 }}
|
|
290
|
+
>
|
|
291
|
+
<StyledView
|
|
292
|
+
collapsable={false}
|
|
293
|
+
role="group"
|
|
294
|
+
accessibilityLabel={messages.color}
|
|
295
|
+
testID="agent-avatar-color-selector"
|
|
296
|
+
className="flex h-[38px] shrink-0 items-center gap-1 rounded-full border border-border-button-default bg-background-primary-default p-[5px] shadow-xs flex-row"
|
|
297
|
+
style={{
|
|
298
|
+
backgroundColor: colors.card,
|
|
299
|
+
borderColor: colors.border,
|
|
300
|
+
boxShadow: '0 1px 2px rgba(0,0,0,.05)',
|
|
301
301
|
}}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
302
|
+
>
|
|
303
|
+
{CHARACTER_OPTIONS.color.map(([id, title]) => {
|
|
304
|
+
const active = namedColor === id;
|
|
305
|
+
const hex = CHARACTER_COLORS[id];
|
|
306
|
+
const disabled = false;
|
|
307
|
+
return (
|
|
308
|
+
<StyledPressable
|
|
309
|
+
key={id}
|
|
310
|
+
accessibilityRole="button"
|
|
311
|
+
accessibilityLabel={messages.avatarColorLabel(
|
|
312
|
+
messages.characterOption('color', id, title),
|
|
313
|
+
)}
|
|
314
|
+
aria-pressed={active}
|
|
315
|
+
aria-disabled={disabled}
|
|
316
|
+
accessibilityState={{ selected: active, disabled }}
|
|
317
|
+
disabled={disabled}
|
|
318
|
+
onPress={() => changeColor(hex)}
|
|
319
|
+
className="relative shrink-0 cursor-pointer overflow-hidden rounded-full transition-transform duration-150 ease-out hover:scale-110 outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-2 size-[26px]"
|
|
320
|
+
>
|
|
321
|
+
<GlossArt center={hex} edge={hex} active={active} />
|
|
322
|
+
</StyledPressable>
|
|
323
|
+
);
|
|
324
|
+
})}
|
|
325
|
+
<Popover>
|
|
326
|
+
<PopoverTrigger asChild label={messages.customColor}>
|
|
327
|
+
<StyledPressable
|
|
328
|
+
aria-pressed={Boolean(customHex)}
|
|
329
|
+
accessibilityState={{ selected: Boolean(customHex) }}
|
|
330
|
+
className="relative size-[26px] shrink-0 overflow-hidden rounded-full"
|
|
331
|
+
>
|
|
332
|
+
<GlossArt
|
|
333
|
+
rainbow={!customHex}
|
|
334
|
+
center={customHex}
|
|
335
|
+
edge={customHex}
|
|
336
|
+
active={Boolean(customHex)}
|
|
337
|
+
/>
|
|
338
|
+
</StyledPressable>
|
|
339
|
+
</PopoverTrigger>
|
|
340
|
+
<PopoverContent
|
|
341
|
+
label={messages.customColor}
|
|
342
|
+
align="end"
|
|
343
|
+
minWidth={248}
|
|
344
|
+
maxWidth={248}
|
|
345
|
+
className="w-[248px] rounded-3xl p-2.5"
|
|
346
|
+
>
|
|
347
|
+
<CustomColorPicker key={agent.id} value={bodyHex} onChange={changeColor} />
|
|
348
|
+
</PopoverContent>
|
|
349
|
+
</Popover>
|
|
350
|
+
</StyledView>
|
|
307
351
|
</StyledView>
|
|
308
352
|
<CharacterControls character={painted} onChange={history.change} />
|
|
309
353
|
<StyledView
|