@oxy.so/bloom 23.9.1 → 23.10.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 (68) hide show
  1. package/docs/bloom-lang-spec.mdx +730 -0
  2. package/docs/bloom-language-for-agents.mdx +18 -4
  3. package/docs/bloom-language-getting-started.mdx +2 -1
  4. package/docs/bloom-language-modifiers.mdx +16 -6
  5. package/docs/bloom-language-nodes.mdx +1296 -435
  6. package/docs/bloom-language-tour.mdx +54 -9
  7. package/docs/bloom-language.mdx +30 -2
  8. package/docs/task-catalog.json +1 -1
  9. package/docs/task-catalog.mdx +1 -1
  10. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +18 -10
  11. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  12. package/lib/commonjs/agent-avatar/VectorStaticPortrait.js +102 -77
  13. package/lib/commonjs/agent-avatar/VectorStaticPortrait.js.map +1 -1
  14. package/lib/commonjs/agent-avatar/vector-halo.js +57 -0
  15. package/lib/commonjs/agent-avatar/vector-halo.js.map +1 -0
  16. package/lib/commonjs/avatar/Avatar.js +65 -62
  17. package/lib/commonjs/avatar/Avatar.js.map +1 -1
  18. package/lib/commonjs/avatar/CharacterFace.js +50 -45
  19. package/lib/commonjs/avatar/CharacterFace.js.map +1 -1
  20. package/lib/commonjs/avatar-group/AvatarGroupBase.js +311 -244
  21. package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
  22. package/lib/module/agent-avatar/VectorCharacterAvatar.js +18 -10
  23. package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  24. package/lib/module/agent-avatar/VectorStaticPortrait.js +103 -78
  25. package/lib/module/agent-avatar/VectorStaticPortrait.js.map +1 -1
  26. package/lib/module/agent-avatar/vector-halo.js +52 -0
  27. package/lib/module/agent-avatar/vector-halo.js.map +1 -0
  28. package/lib/module/avatar/Avatar.js +65 -62
  29. package/lib/module/avatar/Avatar.js.map +1 -1
  30. package/lib/module/avatar/CharacterFace.js +50 -45
  31. package/lib/module/avatar/CharacterFace.js.map +1 -1
  32. package/lib/module/avatar-group/AvatarGroupBase.js +311 -244
  33. package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
  34. package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  35. package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts +2 -2
  36. package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
  37. package/lib/typescript/commonjs/agent-avatar/types.d.ts +6 -0
  38. package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -1
  39. package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts +32 -0
  40. package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts.map +1 -0
  41. package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
  42. package/lib/typescript/commonjs/avatar/CharacterFace.d.ts +4 -1
  43. package/lib/typescript/commonjs/avatar/CharacterFace.d.ts.map +1 -1
  44. package/lib/typescript/commonjs/avatar/types.d.ts +9 -0
  45. package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
  46. package/lib/typescript/commonjs/avatar-group/AvatarGroupBase.d.ts.map +1 -1
  47. package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  48. package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts +2 -2
  49. package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
  50. package/lib/typescript/module/agent-avatar/types.d.ts +6 -0
  51. package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -1
  52. package/lib/typescript/module/agent-avatar/vector-halo.d.ts +32 -0
  53. package/lib/typescript/module/agent-avatar/vector-halo.d.ts.map +1 -0
  54. package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
  55. package/lib/typescript/module/avatar/CharacterFace.d.ts +4 -1
  56. package/lib/typescript/module/avatar/CharacterFace.d.ts.map +1 -1
  57. package/lib/typescript/module/avatar/types.d.ts +9 -0
  58. package/lib/typescript/module/avatar/types.d.ts.map +1 -1
  59. package/lib/typescript/module/avatar-group/AvatarGroupBase.d.ts.map +1 -1
  60. package/package.json +1 -1
  61. package/src/agent-avatar/VectorCharacterAvatar.tsx +26 -7
  62. package/src/agent-avatar/VectorStaticPortrait.tsx +18 -5
  63. package/src/agent-avatar/types.ts +6 -0
  64. package/src/agent-avatar/vector-halo.ts +52 -0
  65. package/src/avatar/Avatar.tsx +2 -0
  66. package/src/avatar/CharacterFace.tsx +6 -0
  67. package/src/avatar/types.ts +6 -0
  68. package/src/avatar-group/AvatarGroupBase.tsx +36 -4
@@ -3,7 +3,9 @@
3
3
  import { c as _c } from "react/compiler-runtime";
4
4
  import { memo, useMemo } from 'react';
5
5
  import { Pressable, StyleSheet, Text, View } from 'react-native';
6
+ import { tryResolveAvatarCharacter } from "../agent-avatar/character.js";
6
7
  import { Avatar } from "../avatar/index.js";
8
+ import { pickAccountCharacter } from "../avatar/account.js";
7
9
  import { useMessages } from "../locale/messages.js";
8
10
  import { useColorTokens } from "../theme/color-tokens.js";
9
11
  import { fontSize } from "../styles/tokens.js";
@@ -73,6 +75,16 @@ function getItemKey(item, index) {
73
75
  return firstNonBlank(item.id, item.username, item.uri) ?? `avatar-${index}`;
74
76
  }
75
77
 
78
+ /** Whether this member is drawn as a character (an agent) rather than a photo or initials. */
79
+ function hasCharacter(item) {
80
+ return tryResolveAvatarCharacter(pickAccountCharacter({
81
+ account: {
82
+ kind: item.kind,
83
+ character: item.character
84
+ }
85
+ })) !== undefined;
86
+ }
87
+
76
88
  /** Hover callbacks injected by the web fork; undefined (no-op) on native. */
77
89
 
78
90
  /**
@@ -83,7 +95,7 @@ function getItemKey(item, index) {
83
95
  * the caller-provided styles so this stays layout-agnostic.
84
96
  */
85
97
  function AvatarGroupCell(t0) {
86
- const $ = _c(57);
98
+ const $ = _c(64);
87
99
  const {
88
100
  item,
89
101
  index,
@@ -119,180 +131,205 @@ function AvatarGroupCell(t0) {
119
131
  const accessibilityLabel = handle ? `${name ?? handle} (@${handle})` : name;
120
132
  const interactive = typeof onPressItem === "function";
121
133
  const hoverable = typeof hoverHandlers?.onHoverIn === "function" || typeof hoverHandlers?.onHoverOut === "function";
122
- const expressive = shape !== undefined && shape !== "circle";
123
134
  let t3;
124
- if ($[4] !== cellStyle) {
125
- t3 = StyleSheet.flatten(cellStyle);
126
- $[4] = cellStyle;
135
+ if ($[4] !== item) {
136
+ t3 = hasCharacter(item);
137
+ $[4] = item;
127
138
  $[5] = t3;
128
139
  } else {
129
140
  t3 = $[5];
130
141
  }
131
- const frame = t3;
142
+ const silhouette = t3;
143
+ const expressive = silhouette || shape !== undefined && shape !== "circle";
132
144
  let t4;
133
- if ($[6] !== expressive || $[7] !== frame) {
134
- t4 = expressive && typeof frame?.borderWidth === "number" && frame.borderWidth > 0 ? {
145
+ if ($[6] !== cellStyle) {
146
+ t4 = StyleSheet.flatten(cellStyle);
147
+ $[6] = cellStyle;
148
+ $[7] = t4;
149
+ } else {
150
+ t4 = $[7];
151
+ }
152
+ const frame = t4;
153
+ let t5;
154
+ if ($[8] !== frame || $[9] !== silhouette) {
155
+ t5 = silhouette && typeof frame?.borderWidth === "number" && frame.borderWidth > 0 ? {
156
+ width: frame.borderWidth,
157
+ color: String(frame.borderColor)
158
+ } : undefined;
159
+ $[8] = frame;
160
+ $[9] = silhouette;
161
+ $[10] = t5;
162
+ } else {
163
+ t5 = $[10];
164
+ }
165
+ const halo = t5;
166
+ let t6;
167
+ if ($[11] !== expressive || $[12] !== frame || $[13] !== silhouette) {
168
+ t6 = expressive && !silhouette && typeof frame?.borderWidth === "number" && frame.borderWidth > 0 ? {
135
169
  width: frame.borderWidth,
136
170
  colors: String(frame.borderColor)
137
171
  } : undefined;
138
- $[6] = expressive;
139
- $[7] = frame;
140
- $[8] = t4;
172
+ $[11] = expressive;
173
+ $[12] = frame;
174
+ $[13] = silhouette;
175
+ $[14] = t6;
141
176
  } else {
142
- t4 = $[8];
177
+ t6 = $[14];
143
178
  }
144
- const shapeRing = t4;
145
- let t5;
146
- if ($[9] !== hoverHandlers || $[10] !== index) {
147
- t5 = hoverHandlers?.registerCellRef ? node => hoverHandlers.registerCellRef?.(index, node) : undefined;
148
- $[9] = hoverHandlers;
149
- $[10] = index;
150
- $[11] = t5;
179
+ const shapeRing = t6;
180
+ let t7;
181
+ if ($[15] !== hoverHandlers || $[16] !== index) {
182
+ t7 = hoverHandlers?.registerCellRef ? node => hoverHandlers.registerCellRef?.(index, node) : undefined;
183
+ $[15] = hoverHandlers;
184
+ $[16] = index;
185
+ $[17] = t7;
151
186
  } else {
152
- t5 = $[11];
187
+ t7 = $[17];
153
188
  }
154
- let t6;
155
- if ($[12] !== cellStyle || $[13] !== expressive) {
156
- t6 = expressive ? [cellStyle, {
189
+ let t8;
190
+ if ($[18] !== cellStyle || $[19] !== expressive) {
191
+ t8 = expressive ? [cellStyle, {
157
192
  borderWidth: 0,
158
193
  borderRadius: 0,
159
194
  overflow: "visible"
160
195
  }] : cellStyle;
161
- $[12] = cellStyle;
162
- $[13] = expressive;
163
- $[14] = t6;
196
+ $[18] = cellStyle;
197
+ $[19] = expressive;
198
+ $[20] = t8;
164
199
  } else {
165
- t6 = $[14];
200
+ t8 = $[20];
166
201
  }
167
- const t7 = item.uri ?? undefined;
168
- let t8;
169
- if ($[15] !== item.character || $[16] !== item.kind) {
170
- t8 = {
202
+ const t9 = item.uri ?? undefined;
203
+ let t10;
204
+ if ($[21] !== item.character || $[22] !== item.kind) {
205
+ t10 = {
171
206
  kind: item.kind,
172
207
  character: item.character
173
208
  };
174
- $[15] = item.character;
175
- $[16] = item.kind;
176
- $[17] = t8;
209
+ $[21] = item.character;
210
+ $[22] = item.kind;
211
+ $[23] = t10;
177
212
  } else {
178
- t8 = $[17];
213
+ t10 = $[23];
179
214
  }
180
- const t9 = showInitials ? name : undefined;
181
- const t10 = innerSize + (shapeRing?.width ?? 0) * 2;
182
- let t11;
183
- if ($[18] !== item.initials || $[19] !== motion || $[20] !== shape || $[21] !== shapeRing || $[22] !== t10 || $[23] !== t7 || $[24] !== t8 || $[25] !== t9 || $[26] !== testID || $[27] !== variant) {
184
- t11 = /*#__PURE__*/_jsx(Avatar, {
185
- source: t7,
186
- account: t8,
187
- name: t9,
215
+ const t11 = showInitials ? name : undefined;
216
+ const t12 = innerSize + (shapeRing?.width ?? 0) * 2;
217
+ let t13;
218
+ if ($[24] !== halo || $[25] !== item.initials || $[26] !== motion || $[27] !== shape || $[28] !== shapeRing || $[29] !== t10 || $[30] !== t11 || $[31] !== t12 || $[32] !== t9 || $[33] !== testID || $[34] !== variant) {
219
+ t13 = /*#__PURE__*/_jsx(Avatar, {
220
+ source: t9,
221
+ account: t10,
222
+ name: t11,
188
223
  initials: item.initials,
189
224
  variant: variant,
190
225
  motion: motion,
191
- size: t10,
226
+ size: t12,
192
227
  ring: shapeRing,
228
+ halo: halo,
193
229
  shape: shape,
194
230
  testID: testID
195
231
  });
196
- $[18] = item.initials;
197
- $[19] = motion;
198
- $[20] = shape;
199
- $[21] = shapeRing;
200
- $[22] = t10;
201
- $[23] = t7;
202
- $[24] = t8;
203
- $[25] = t9;
204
- $[26] = testID;
205
- $[27] = variant;
206
- $[28] = t11;
207
- } else {
208
- t11 = $[28];
232
+ $[24] = halo;
233
+ $[25] = item.initials;
234
+ $[26] = motion;
235
+ $[27] = shape;
236
+ $[28] = shapeRing;
237
+ $[29] = t10;
238
+ $[30] = t11;
239
+ $[31] = t12;
240
+ $[32] = t9;
241
+ $[33] = testID;
242
+ $[34] = variant;
243
+ $[35] = t13;
244
+ } else {
245
+ t13 = $[35];
209
246
  }
210
- let t12;
211
- if ($[29] !== t11 || $[30] !== t5 || $[31] !== t6) {
212
- t12 = /*#__PURE__*/_jsx(View, {
213
- ref: t5,
247
+ let t14;
248
+ if ($[36] !== t13 || $[37] !== t7 || $[38] !== t8) {
249
+ t14 = /*#__PURE__*/_jsx(View, {
250
+ ref: t7,
214
251
  collapsable: false,
215
- style: t6,
216
- children: t11
252
+ style: t8,
253
+ children: t13
217
254
  });
218
- $[29] = t11;
219
- $[30] = t5;
220
- $[31] = t6;
221
- $[32] = t12;
255
+ $[36] = t13;
256
+ $[37] = t7;
257
+ $[38] = t8;
258
+ $[39] = t14;
222
259
  } else {
223
- t12 = $[32];
260
+ t14 = $[39];
224
261
  }
225
- const cell = t12;
262
+ const cell = t14;
226
263
  if (interactive || hoverable) {
227
- let t13;
228
- if ($[33] !== index || $[34] !== interactive || $[35] !== item || $[36] !== onPressItem) {
229
- t13 = interactive ? () => onPressItem?.(item, index) : undefined;
230
- $[33] = index;
231
- $[34] = interactive;
232
- $[35] = item;
233
- $[36] = onPressItem;
234
- $[37] = t13;
264
+ let t15;
265
+ if ($[40] !== index || $[41] !== interactive || $[42] !== item || $[43] !== onPressItem) {
266
+ t15 = interactive ? () => onPressItem?.(item, index) : undefined;
267
+ $[40] = index;
268
+ $[41] = interactive;
269
+ $[42] = item;
270
+ $[43] = onPressItem;
271
+ $[44] = t15;
235
272
  } else {
236
- t13 = $[37];
273
+ t15 = $[44];
237
274
  }
238
- let t14;
239
- if ($[38] !== hoverHandlers || $[39] !== index || $[40] !== item) {
240
- t14 = hoverHandlers?.onHoverIn ? () => hoverHandlers.onHoverIn?.(item, index) : undefined;
241
- $[38] = hoverHandlers;
242
- $[39] = index;
243
- $[40] = item;
244
- $[41] = t14;
275
+ let t16;
276
+ if ($[45] !== hoverHandlers || $[46] !== index || $[47] !== item) {
277
+ t16 = hoverHandlers?.onHoverIn ? () => hoverHandlers.onHoverIn?.(item, index) : undefined;
278
+ $[45] = hoverHandlers;
279
+ $[46] = index;
280
+ $[47] = item;
281
+ $[48] = t16;
245
282
  } else {
246
- t14 = $[41];
283
+ t16 = $[48];
247
284
  }
248
- let t15;
249
- if ($[42] !== hoverHandlers || $[43] !== index || $[44] !== item) {
250
- t15 = hoverHandlers?.onHoverOut ? () => hoverHandlers.onHoverOut?.(item, index) : undefined;
251
- $[42] = hoverHandlers;
252
- $[43] = index;
253
- $[44] = item;
254
- $[45] = t15;
285
+ let t17;
286
+ if ($[49] !== hoverHandlers || $[50] !== index || $[51] !== item) {
287
+ t17 = hoverHandlers?.onHoverOut ? () => hoverHandlers.onHoverOut?.(item, index) : undefined;
288
+ $[49] = hoverHandlers;
289
+ $[50] = index;
290
+ $[51] = item;
291
+ $[52] = t17;
255
292
  } else {
256
- t15 = $[45];
293
+ t17 = $[52];
257
294
  }
258
- const t16 = interactive ? "button" : undefined;
259
- let t17;
260
- if ($[46] !== accessibilityLabel || $[47] !== cell || $[48] !== t13 || $[49] !== t14 || $[50] !== t15 || $[51] !== t16 || $[52] !== wrapperStyle) {
261
- t17 = /*#__PURE__*/_jsx(Pressable, {
262
- onPress: t13,
263
- onHoverIn: t14,
264
- onHoverOut: t15,
265
- accessibilityRole: t16,
295
+ const t18 = interactive ? "button" : undefined;
296
+ let t19;
297
+ if ($[53] !== accessibilityLabel || $[54] !== cell || $[55] !== t15 || $[56] !== t16 || $[57] !== t17 || $[58] !== t18 || $[59] !== wrapperStyle) {
298
+ t19 = /*#__PURE__*/_jsx(Pressable, {
299
+ onPress: t15,
300
+ onHoverIn: t16,
301
+ onHoverOut: t17,
302
+ accessibilityRole: t18,
266
303
  accessibilityLabel: accessibilityLabel,
267
304
  style: wrapperStyle,
268
305
  children: cell
269
306
  });
270
- $[46] = accessibilityLabel;
271
- $[47] = cell;
272
- $[48] = t13;
273
- $[49] = t14;
274
- $[50] = t15;
275
- $[51] = t16;
276
- $[52] = wrapperStyle;
277
- $[53] = t17;
307
+ $[53] = accessibilityLabel;
308
+ $[54] = cell;
309
+ $[55] = t15;
310
+ $[56] = t16;
311
+ $[57] = t17;
312
+ $[58] = t18;
313
+ $[59] = wrapperStyle;
314
+ $[60] = t19;
278
315
  } else {
279
- t17 = $[53];
316
+ t19 = $[60];
280
317
  }
281
- return t17;
318
+ return t19;
282
319
  }
283
- let t13;
284
- if ($[54] !== cell || $[55] !== wrapperStyle) {
285
- t13 = /*#__PURE__*/_jsx(View, {
320
+ let t15;
321
+ if ($[61] !== cell || $[62] !== wrapperStyle) {
322
+ t15 = /*#__PURE__*/_jsx(View, {
286
323
  style: wrapperStyle,
287
324
  children: cell
288
325
  });
289
- $[54] = cell;
290
- $[55] = wrapperStyle;
291
- $[56] = t13;
326
+ $[61] = cell;
327
+ $[62] = wrapperStyle;
328
+ $[63] = t15;
292
329
  } else {
293
- t13 = $[56];
330
+ t15 = $[63];
294
331
  }
295
- return t13;
332
+ return t15;
296
333
  }
297
334
  const AvatarGroupBaseComponent = t0 => {
298
335
  const $ = _c(85);
@@ -561,7 +598,7 @@ const AvatarGroupBaseComponent = t0 => {
561
598
  t15 = $[57];
562
599
  }
563
600
  let t16;
564
- if ($[70] !== cellStyle || $[71] !== isRow || $[72] !== itemMargin || $[73] !== overflow || $[74] !== overflowOnPress || $[75] !== overflowTextStyle || $[76] !== shown.length) {
601
+ if ($[70] !== cellStyle || $[71] !== isRow || $[72] !== itemMargin || $[73] !== overflow || $[74] !== overflowOnPress || $[75] !== overflowTextStyle || $[76] !== shown) {
565
602
  t16 = overflow > 0 && /*#__PURE__*/_jsx(OverflowCircle, {
566
603
  count: overflow,
567
604
  cellStyle: cellStyle,
@@ -574,6 +611,7 @@ const AvatarGroupBaseComponent = t0 => {
574
611
  })
575
612
  },
576
613
  textStyle: overflowTextStyle,
614
+ plain: shown.some(hasCharacter),
577
615
  onPress: overflowOnPress
578
616
  });
579
617
  $[70] = cellStyle;
@@ -582,7 +620,7 @@ const AvatarGroupBaseComponent = t0 => {
582
620
  $[73] = overflow;
583
621
  $[74] = overflowOnPress;
584
622
  $[75] = overflowTextStyle;
585
- $[76] = shown.length;
623
+ $[76] = shown;
586
624
  $[77] = t16;
587
625
  } else {
588
626
  t16 = $[77];
@@ -617,7 +655,7 @@ const AvatarGroupBaseComponent = t0 => {
617
655
  * uniform gap. Overflow beyond `max` collapses into a trailing "+N" bubble.
618
656
  */
619
657
  const ClusterAvatarGroup = t0 => {
620
- const $ = _c(79);
658
+ const $ = _c(82);
621
659
  const {
622
660
  conversation: t1,
623
661
  shape,
@@ -757,53 +795,63 @@ const ClusterAvatarGroup = t0 => {
757
795
  t13 = $[30];
758
796
  }
759
797
  let t14;
760
- if ($[31] !== overflow || $[32] !== overflowOnPress || $[33] !== t10 || $[34] !== t13 || $[35] !== t7) {
761
- t14 = /*#__PURE__*/_jsx(OverflowCircle, {
798
+ if ($[31] !== shown) {
799
+ t14 = shown.some(hasCharacter);
800
+ $[31] = shown;
801
+ $[32] = t14;
802
+ } else {
803
+ t14 = $[32];
804
+ }
805
+ let t15;
806
+ if ($[33] !== overflow || $[34] !== overflowOnPress || $[35] !== t10 || $[36] !== t13 || $[37] !== t14 || $[38] !== t7) {
807
+ t15 = /*#__PURE__*/_jsx(OverflowCircle, {
762
808
  count: overflow,
763
809
  cellStyle: t7,
764
810
  wrapperStyle: t10,
765
811
  textStyle: t13,
812
+ plain: t14,
766
813
  onPress: overflowOnPress
767
814
  });
768
- $[31] = overflow;
769
- $[32] = overflowOnPress;
770
- $[33] = t10;
771
- $[34] = t13;
772
- $[35] = t7;
773
- $[36] = t14;
815
+ $[33] = overflow;
816
+ $[34] = overflowOnPress;
817
+ $[35] = t10;
818
+ $[36] = t13;
819
+ $[37] = t14;
820
+ $[38] = t7;
821
+ $[39] = t15;
774
822
  } else {
775
- t14 = $[36];
823
+ t15 = $[39];
776
824
  }
777
- overflowElement = t14;
825
+ overflowElement = t15;
778
826
  }
779
827
  let t6;
780
- if ($[37] !== size) {
828
+ if ($[40] !== size) {
781
829
  t6 = {
782
830
  width: size,
783
831
  height: size
784
832
  };
785
- $[37] = size;
786
- $[38] = t6;
833
+ $[40] = size;
834
+ $[41] = t6;
787
835
  } else {
788
- t6 = $[38];
836
+ t6 = $[41];
789
837
  }
790
838
  let t7;
791
- if ($[39] !== style || $[40] !== t6) {
839
+ if ($[42] !== style || $[43] !== t6) {
792
840
  t7 = [t6, style];
793
- $[39] = style;
794
- $[40] = t6;
795
- $[41] = t7;
841
+ $[42] = style;
842
+ $[43] = t6;
843
+ $[44] = t7;
796
844
  } else {
797
- t7 = $[41];
845
+ t7 = $[44];
798
846
  }
799
847
  const t8 = accessibilityLabel && !interactive ? "img" : undefined;
800
848
  const t9 = conversation && !accessibilityLabel && !interactive && !hoverHandlers ? true : undefined;
801
849
  const t10 = conversation && !accessibilityLabel && !interactive;
802
850
  const t11 = conversation && !accessibilityLabel && !interactive ? "no-hide-descendants" : undefined;
803
851
  let t12;
804
- if ($[42] !== bubbleCount || $[43] !== bubbles || $[44] !== hoverHandlers || $[45] !== motion || $[46] !== onPressItem || $[47] !== ring || $[48] !== ringWidth || $[49] !== shape || $[50] !== showInitials || $[51] !== shown || $[52] !== size || $[53] !== testID || $[54] !== variant) {
852
+ if ($[45] !== bubbleCount || $[46] !== bubbles || $[47] !== hoverHandlers || $[48] !== motion || $[49] !== onPressItem || $[50] !== ring || $[51] !== ringWidth || $[52] !== shape || $[53] !== showInitials || $[54] !== shown || $[55] !== size || $[56] !== testID || $[57] !== variant) {
805
853
  let t13;
806
- if ($[56] !== bubbleCount || $[57] !== bubbles || $[58] !== hoverHandlers || $[59] !== motion || $[60] !== onPressItem || $[61] !== ring || $[62] !== ringWidth || $[63] !== shape || $[64] !== showInitials || $[65] !== size || $[66] !== testID || $[67] !== variant) {
854
+ if ($[59] !== bubbleCount || $[60] !== bubbles || $[61] !== hoverHandlers || $[62] !== motion || $[63] !== onPressItem || $[64] !== ring || $[65] !== ringWidth || $[66] !== shape || $[67] !== showInitials || $[68] !== size || $[69] !== testID || $[70] !== variant) {
807
855
  t13 = (item, index) => {
808
856
  const bubble = bubbles[index];
809
857
  if (!bubble) {
@@ -844,42 +892,42 @@ const ClusterAvatarGroup = t0 => {
844
892
  hoverHandlers: hoverHandlers
845
893
  }, getItemKey(item, index));
846
894
  };
847
- $[56] = bubbleCount;
848
- $[57] = bubbles;
849
- $[58] = hoverHandlers;
850
- $[59] = motion;
851
- $[60] = onPressItem;
852
- $[61] = ring;
853
- $[62] = ringWidth;
854
- $[63] = shape;
855
- $[64] = showInitials;
856
- $[65] = size;
857
- $[66] = testID;
858
- $[67] = variant;
859
- $[68] = t13;
895
+ $[59] = bubbleCount;
896
+ $[60] = bubbles;
897
+ $[61] = hoverHandlers;
898
+ $[62] = motion;
899
+ $[63] = onPressItem;
900
+ $[64] = ring;
901
+ $[65] = ringWidth;
902
+ $[66] = shape;
903
+ $[67] = showInitials;
904
+ $[68] = size;
905
+ $[69] = testID;
906
+ $[70] = variant;
907
+ $[71] = t13;
860
908
  } else {
861
- t13 = $[68];
909
+ t13 = $[71];
862
910
  }
863
911
  t12 = shown.map(t13);
864
- $[42] = bubbleCount;
865
- $[43] = bubbles;
866
- $[44] = hoverHandlers;
867
- $[45] = motion;
868
- $[46] = onPressItem;
869
- $[47] = ring;
870
- $[48] = ringWidth;
871
- $[49] = shape;
872
- $[50] = showInitials;
873
- $[51] = shown;
874
- $[52] = size;
875
- $[53] = testID;
876
- $[54] = variant;
877
- $[55] = t12;
878
- } else {
879
- t12 = $[55];
912
+ $[45] = bubbleCount;
913
+ $[46] = bubbles;
914
+ $[47] = hoverHandlers;
915
+ $[48] = motion;
916
+ $[49] = onPressItem;
917
+ $[50] = ring;
918
+ $[51] = ringWidth;
919
+ $[52] = shape;
920
+ $[53] = showInitials;
921
+ $[54] = shown;
922
+ $[55] = size;
923
+ $[56] = testID;
924
+ $[57] = variant;
925
+ $[58] = t12;
926
+ } else {
927
+ t12 = $[58];
880
928
  }
881
929
  let t13;
882
- if ($[69] !== accessibilityLabel || $[70] !== overflowElement || $[71] !== t10 || $[72] !== t11 || $[73] !== t12 || $[74] !== t7 || $[75] !== t8 || $[76] !== t9 || $[77] !== testID) {
930
+ if ($[72] !== accessibilityLabel || $[73] !== overflowElement || $[74] !== t10 || $[75] !== t11 || $[76] !== t12 || $[77] !== t7 || $[78] !== t8 || $[79] !== t9 || $[80] !== testID) {
883
931
  t13 = /*#__PURE__*/_jsxs(View, {
884
932
  style: t7,
885
933
  testID: testID,
@@ -890,123 +938,142 @@ const ClusterAvatarGroup = t0 => {
890
938
  importantForAccessibility: t11,
891
939
  children: [t12, overflowElement]
892
940
  });
893
- $[69] = accessibilityLabel;
894
- $[70] = overflowElement;
895
- $[71] = t10;
896
- $[72] = t11;
897
- $[73] = t12;
898
- $[74] = t7;
899
- $[75] = t8;
900
- $[76] = t9;
901
- $[77] = testID;
902
- $[78] = t13;
903
- } else {
904
- t13 = $[78];
941
+ $[72] = accessibilityLabel;
942
+ $[73] = overflowElement;
943
+ $[74] = t10;
944
+ $[75] = t11;
945
+ $[76] = t12;
946
+ $[77] = t7;
947
+ $[78] = t8;
948
+ $[79] = t9;
949
+ $[80] = testID;
950
+ $[81] = t13;
951
+ } else {
952
+ t13 = $[81];
905
953
  }
906
954
  return t13;
907
955
  };
908
956
  function OverflowCircle(t0) {
909
- const $ = _c(22);
957
+ const $ = _c(27);
910
958
  const {
911
959
  count,
912
960
  cellStyle,
913
961
  wrapperStyle,
914
962
  textStyle,
963
+ plain: t1,
915
964
  onPress
916
965
  } = t0;
966
+ const plain = t1 === undefined ? false : t1;
917
967
  const tokens = useColorTokens();
918
968
  const {
919
969
  messages
920
970
  } = useMessages(AVATAR_GROUP_MESSAGES);
921
- let t1;
922
- if ($[0] !== tokens.mutedForeground) {
923
- t1 = {
971
+ let t2;
972
+ if ($[0] !== plain || $[1] !== tokens) {
973
+ t2 = plain ? styles.plainCount : {
924
974
  backgroundColor: tokens.mutedForeground
925
975
  };
926
- $[0] = tokens.mutedForeground;
927
- $[1] = t1;
976
+ $[0] = plain;
977
+ $[1] = tokens;
978
+ $[2] = t2;
928
979
  } else {
929
- t1 = $[1];
980
+ t2 = $[2];
930
981
  }
931
- let t2;
932
- if ($[2] !== cellStyle || $[3] !== t1) {
933
- t2 = [cellStyle, t1];
934
- $[2] = cellStyle;
935
- $[3] = t1;
982
+ let t3;
983
+ if ($[3] !== cellStyle || $[4] !== t2) {
984
+ t3 = [cellStyle, t2];
985
+ $[3] = cellStyle;
936
986
  $[4] = t2;
987
+ $[5] = t3;
988
+ } else {
989
+ t3 = $[5];
990
+ }
991
+ let t4;
992
+ if ($[6] !== plain || $[7] !== textStyle || $[8] !== tokens) {
993
+ t4 = plain ? [textStyle, {
994
+ color: tokens.mutedForeground,
995
+ fontWeight: "700"
996
+ }] : textStyle;
997
+ $[6] = plain;
998
+ $[7] = textStyle;
999
+ $[8] = tokens;
1000
+ $[9] = t4;
937
1001
  } else {
938
- t2 = $[4];
1002
+ t4 = $[9];
939
1003
  }
940
- let t3;
941
- if ($[5] !== count || $[6] !== textStyle) {
942
- t3 = /*#__PURE__*/_jsxs(Text, {
1004
+ let t5;
1005
+ if ($[10] !== count || $[11] !== t4) {
1006
+ t5 = /*#__PURE__*/_jsxs(Text, {
943
1007
  allowFontScaling: false,
944
- style: textStyle,
1008
+ style: t4,
945
1009
  children: ["+", count]
946
1010
  });
947
- $[5] = count;
948
- $[6] = textStyle;
949
- $[7] = t3;
1011
+ $[10] = count;
1012
+ $[11] = t4;
1013
+ $[12] = t5;
950
1014
  } else {
951
- t3 = $[7];
1015
+ t5 = $[12];
952
1016
  }
953
- let t4;
954
- if ($[8] !== t2 || $[9] !== t3) {
955
- t4 = /*#__PURE__*/_jsx(View, {
956
- style: t2,
957
- children: t3
1017
+ let t6;
1018
+ if ($[13] !== t3 || $[14] !== t5) {
1019
+ t6 = /*#__PURE__*/_jsx(View, {
1020
+ style: t3,
1021
+ children: t5
958
1022
  });
959
- $[8] = t2;
960
- $[9] = t3;
961
- $[10] = t4;
1023
+ $[13] = t3;
1024
+ $[14] = t5;
1025
+ $[15] = t6;
962
1026
  } else {
963
- t4 = $[10];
1027
+ t6 = $[15];
964
1028
  }
965
- const circle = t4;
1029
+ const circle = t6;
966
1030
  if (onPress) {
967
- let t5;
968
- if ($[11] !== count || $[12] !== messages) {
969
- t5 = messages.more(count);
970
- $[11] = count;
971
- $[12] = messages;
972
- $[13] = t5;
1031
+ let t7;
1032
+ if ($[16] !== count || $[17] !== messages) {
1033
+ t7 = messages.more(count);
1034
+ $[16] = count;
1035
+ $[17] = messages;
1036
+ $[18] = t7;
973
1037
  } else {
974
- t5 = $[13];
1038
+ t7 = $[18];
975
1039
  }
976
- let t6;
977
- if ($[14] !== circle || $[15] !== onPress || $[16] !== t5 || $[17] !== wrapperStyle) {
978
- t6 = /*#__PURE__*/_jsx(Pressable, {
1040
+ let t8;
1041
+ if ($[19] !== circle || $[20] !== onPress || $[21] !== t7 || $[22] !== wrapperStyle) {
1042
+ t8 = /*#__PURE__*/_jsx(Pressable, {
979
1043
  onPress: onPress,
980
1044
  accessibilityRole: "button",
981
- accessibilityLabel: t5,
1045
+ accessibilityLabel: t7,
982
1046
  style: wrapperStyle,
983
1047
  children: circle
984
1048
  });
985
- $[14] = circle;
986
- $[15] = onPress;
987
- $[16] = t5;
988
- $[17] = wrapperStyle;
989
- $[18] = t6;
1049
+ $[19] = circle;
1050
+ $[20] = onPress;
1051
+ $[21] = t7;
1052
+ $[22] = wrapperStyle;
1053
+ $[23] = t8;
990
1054
  } else {
991
- t6 = $[18];
1055
+ t8 = $[23];
992
1056
  }
993
- return t6;
1057
+ return t8;
994
1058
  }
995
- let t5;
996
- if ($[19] !== circle || $[20] !== wrapperStyle) {
997
- t5 = /*#__PURE__*/_jsx(View, {
1059
+ let t7;
1060
+ if ($[24] !== circle || $[25] !== wrapperStyle) {
1061
+ t7 = /*#__PURE__*/_jsx(View, {
998
1062
  style: wrapperStyle,
999
1063
  children: circle
1000
1064
  });
1001
- $[19] = circle;
1002
- $[20] = wrapperStyle;
1003
- $[21] = t5;
1065
+ $[24] = circle;
1066
+ $[25] = wrapperStyle;
1067
+ $[26] = t7;
1004
1068
  } else {
1005
- t5 = $[21];
1069
+ t7 = $[26];
1006
1070
  }
1007
- return t5;
1071
+ return t7;
1008
1072
  }
1009
1073
  const styles = StyleSheet.create({
1074
+ plainCount: {
1075
+ borderWidth: 0
1076
+ },
1010
1077
  row: {
1011
1078
  flexDirection: 'row',
1012
1079
  alignItems: 'center'