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