@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.
- package/docs/bloom-lang-spec.mdx +730 -0
- package/docs/bloom-language-for-agents.mdx +18 -4
- package/docs/bloom-language-getting-started.mdx +2 -1
- package/docs/bloom-language-modifiers.mdx +16 -6
- package/docs/bloom-language-nodes.mdx +1296 -435
- package/docs/bloom-language-tour.mdx +54 -9
- package/docs/bloom-language.mdx +30 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +18 -10
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorStaticPortrait.js +102 -77
- package/lib/commonjs/agent-avatar/VectorStaticPortrait.js.map +1 -1
- package/lib/commonjs/agent-avatar/vector-halo.js +57 -0
- package/lib/commonjs/agent-avatar/vector-halo.js.map +1 -0
- package/lib/commonjs/avatar/Avatar.js +65 -62
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/avatar/CharacterFace.js +50 -45
- package/lib/commonjs/avatar/CharacterFace.js.map +1 -1
- package/lib/commonjs/avatar-group/AvatarGroupBase.js +311 -244
- package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/module/agent-avatar/VectorCharacterAvatar.js +18 -10
- package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/module/agent-avatar/VectorStaticPortrait.js +103 -78
- package/lib/module/agent-avatar/VectorStaticPortrait.js.map +1 -1
- package/lib/module/agent-avatar/vector-halo.js +52 -0
- package/lib/module/agent-avatar/vector-halo.js.map +1 -0
- package/lib/module/avatar/Avatar.js +65 -62
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/avatar/CharacterFace.js +50 -45
- package/lib/module/avatar/CharacterFace.js.map +1 -1
- package/lib/module/avatar-group/AvatarGroupBase.js +311 -244
- package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts +2 -2
- package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/types.d.ts +6 -0
- package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts +32 -0
- package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts.map +1 -0
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/CharacterFace.d.ts +4 -1
- package/lib/typescript/commonjs/avatar/CharacterFace.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/types.d.ts +9 -0
- package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar-group/AvatarGroupBase.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts +2 -2
- package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/types.d.ts +6 -0
- package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/vector-halo.d.ts +32 -0
- package/lib/typescript/module/agent-avatar/vector-halo.d.ts.map +1 -0
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/avatar/CharacterFace.d.ts +4 -1
- package/lib/typescript/module/avatar/CharacterFace.d.ts.map +1 -1
- package/lib/typescript/module/avatar/types.d.ts +9 -0
- package/lib/typescript/module/avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/avatar-group/AvatarGroupBase.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agent-avatar/VectorCharacterAvatar.tsx +26 -7
- package/src/agent-avatar/VectorStaticPortrait.tsx +18 -5
- package/src/agent-avatar/types.ts +6 -0
- package/src/agent-avatar/vector-halo.ts +52 -0
- package/src/avatar/Avatar.tsx +2 -0
- package/src/avatar/CharacterFace.tsx +6 -0
- package/src/avatar/types.ts +6 -0
- 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)(
|
|
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] !==
|
|
130
|
-
t3 =
|
|
131
|
-
$[4] =
|
|
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
|
|
147
|
+
const silhouette = t3;
|
|
148
|
+
const expressive = silhouette || shape !== undefined && shape !== "circle";
|
|
137
149
|
let t4;
|
|
138
|
-
if ($[6] !==
|
|
139
|
-
t4 =
|
|
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
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
177
|
+
$[11] = expressive;
|
|
178
|
+
$[12] = frame;
|
|
179
|
+
$[13] = silhouette;
|
|
180
|
+
$[14] = t6;
|
|
146
181
|
} else {
|
|
147
|
-
|
|
182
|
+
t6 = $[14];
|
|
148
183
|
}
|
|
149
|
-
const shapeRing =
|
|
150
|
-
let
|
|
151
|
-
if ($[
|
|
152
|
-
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
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
|
-
|
|
192
|
+
t7 = $[17];
|
|
158
193
|
}
|
|
159
|
-
let
|
|
160
|
-
if ($[
|
|
161
|
-
|
|
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
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
201
|
+
$[18] = cellStyle;
|
|
202
|
+
$[19] = expressive;
|
|
203
|
+
$[20] = t8;
|
|
169
204
|
} else {
|
|
170
|
-
|
|
205
|
+
t8 = $[20];
|
|
171
206
|
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
174
|
-
if ($[
|
|
175
|
-
|
|
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
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
214
|
+
$[21] = item.character;
|
|
215
|
+
$[22] = item.kind;
|
|
216
|
+
$[23] = t10;
|
|
182
217
|
} else {
|
|
183
|
-
|
|
218
|
+
t10 = $[23];
|
|
184
219
|
}
|
|
185
|
-
const
|
|
186
|
-
const
|
|
187
|
-
let
|
|
188
|
-
if ($[
|
|
189
|
-
|
|
190
|
-
source:
|
|
191
|
-
account:
|
|
192
|
-
name:
|
|
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:
|
|
231
|
+
size: t12,
|
|
197
232
|
ring: shapeRing,
|
|
233
|
+
halo: halo,
|
|
198
234
|
shape: shape,
|
|
199
235
|
testID: testID
|
|
200
236
|
});
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
|
|
213
|
-
|
|
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
|
|
216
|
-
if ($[
|
|
217
|
-
|
|
218
|
-
ref:
|
|
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:
|
|
221
|
-
children:
|
|
257
|
+
style: t8,
|
|
258
|
+
children: t13
|
|
222
259
|
});
|
|
223
|
-
$[
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
260
|
+
$[36] = t13;
|
|
261
|
+
$[37] = t7;
|
|
262
|
+
$[38] = t8;
|
|
263
|
+
$[39] = t14;
|
|
227
264
|
} else {
|
|
228
|
-
|
|
265
|
+
t14 = $[39];
|
|
229
266
|
}
|
|
230
|
-
const cell =
|
|
267
|
+
const cell = t14;
|
|
231
268
|
if (interactive || hoverable) {
|
|
232
|
-
let
|
|
233
|
-
if ($[
|
|
234
|
-
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
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
|
-
|
|
278
|
+
t15 = $[44];
|
|
242
279
|
}
|
|
243
|
-
let
|
|
244
|
-
if ($[
|
|
245
|
-
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
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
|
-
|
|
288
|
+
t16 = $[48];
|
|
252
289
|
}
|
|
253
|
-
let
|
|
254
|
-
if ($[
|
|
255
|
-
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
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
|
-
|
|
298
|
+
t17 = $[52];
|
|
262
299
|
}
|
|
263
|
-
const
|
|
264
|
-
let
|
|
265
|
-
if ($[
|
|
266
|
-
|
|
267
|
-
onPress:
|
|
268
|
-
onHoverIn:
|
|
269
|
-
onHoverOut:
|
|
270
|
-
accessibilityRole:
|
|
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
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
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
|
-
|
|
321
|
+
t19 = $[60];
|
|
285
322
|
}
|
|
286
|
-
return
|
|
323
|
+
return t19;
|
|
287
324
|
}
|
|
288
|
-
let
|
|
289
|
-
if ($[
|
|
290
|
-
|
|
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
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
331
|
+
$[61] = cell;
|
|
332
|
+
$[62] = wrapperStyle;
|
|
333
|
+
$[63] = t15;
|
|
297
334
|
} else {
|
|
298
|
-
|
|
335
|
+
t15 = $[63];
|
|
299
336
|
}
|
|
300
|
-
return
|
|
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
|
|
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
|
|
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)(
|
|
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] !==
|
|
766
|
-
t14 =
|
|
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
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
777
|
-
$[
|
|
778
|
-
$[
|
|
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
|
-
|
|
828
|
+
t15 = $[39];
|
|
781
829
|
}
|
|
782
|
-
overflowElement =
|
|
830
|
+
overflowElement = t15;
|
|
783
831
|
}
|
|
784
832
|
let t6;
|
|
785
|
-
if ($[
|
|
833
|
+
if ($[40] !== size) {
|
|
786
834
|
t6 = {
|
|
787
835
|
width: size,
|
|
788
836
|
height: size
|
|
789
837
|
};
|
|
790
|
-
$[
|
|
791
|
-
$[
|
|
838
|
+
$[40] = size;
|
|
839
|
+
$[41] = t6;
|
|
792
840
|
} else {
|
|
793
|
-
t6 = $[
|
|
841
|
+
t6 = $[41];
|
|
794
842
|
}
|
|
795
843
|
let t7;
|
|
796
|
-
if ($[
|
|
844
|
+
if ($[42] !== style || $[43] !== t6) {
|
|
797
845
|
t7 = [t6, style];
|
|
798
|
-
$[
|
|
799
|
-
$[
|
|
800
|
-
$[
|
|
846
|
+
$[42] = style;
|
|
847
|
+
$[43] = t6;
|
|
848
|
+
$[44] = t7;
|
|
801
849
|
} else {
|
|
802
|
-
t7 = $[
|
|
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 ($[
|
|
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 ($[
|
|
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
|
-
$[
|
|
853
|
-
$[
|
|
854
|
-
$[
|
|
855
|
-
$[
|
|
856
|
-
$[
|
|
857
|
-
$[
|
|
858
|
-
$[
|
|
859
|
-
$[
|
|
860
|
-
$[
|
|
861
|
-
$[
|
|
862
|
-
$[
|
|
863
|
-
$[
|
|
864
|
-
$[
|
|
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 = $[
|
|
914
|
+
t13 = $[71];
|
|
867
915
|
}
|
|
868
916
|
t12 = shown.map(t13);
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
872
|
-
$[
|
|
873
|
-
$[
|
|
874
|
-
$[
|
|
875
|
-
$[
|
|
876
|
-
$[
|
|
877
|
-
$[
|
|
878
|
-
$[
|
|
879
|
-
$[
|
|
880
|
-
$[
|
|
881
|
-
$[
|
|
882
|
-
$[
|
|
883
|
-
} else {
|
|
884
|
-
t12 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
899
|
-
$[
|
|
900
|
-
$[
|
|
901
|
-
$[
|
|
902
|
-
$[
|
|
903
|
-
$[
|
|
904
|
-
$[
|
|
905
|
-
$[
|
|
906
|
-
$[
|
|
907
|
-
$[
|
|
908
|
-
} else {
|
|
909
|
-
t13 = $[
|
|
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)(
|
|
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
|
|
927
|
-
if ($[0] !== tokens
|
|
928
|
-
|
|
976
|
+
let t2;
|
|
977
|
+
if ($[0] !== plain || $[1] !== tokens) {
|
|
978
|
+
t2 = plain ? styles.plainCount : {
|
|
929
979
|
backgroundColor: tokens.mutedForeground
|
|
930
980
|
};
|
|
931
|
-
$[0] =
|
|
932
|
-
$[1] =
|
|
981
|
+
$[0] = plain;
|
|
982
|
+
$[1] = tokens;
|
|
983
|
+
$[2] = t2;
|
|
933
984
|
} else {
|
|
934
|
-
|
|
985
|
+
t2 = $[2];
|
|
935
986
|
}
|
|
936
|
-
let
|
|
937
|
-
if ($[
|
|
938
|
-
|
|
939
|
-
$[
|
|
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
|
-
|
|
1007
|
+
t4 = $[9];
|
|
944
1008
|
}
|
|
945
|
-
let
|
|
946
|
-
if ($[
|
|
947
|
-
|
|
1009
|
+
let t5;
|
|
1010
|
+
if ($[10] !== count || $[11] !== t4) {
|
|
1011
|
+
t5 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
948
1012
|
allowFontScaling: false,
|
|
949
|
-
style:
|
|
1013
|
+
style: t4,
|
|
950
1014
|
children: ["+", count]
|
|
951
1015
|
});
|
|
952
|
-
$[
|
|
953
|
-
$[
|
|
954
|
-
$[
|
|
1016
|
+
$[10] = count;
|
|
1017
|
+
$[11] = t4;
|
|
1018
|
+
$[12] = t5;
|
|
955
1019
|
} else {
|
|
956
|
-
|
|
1020
|
+
t5 = $[12];
|
|
957
1021
|
}
|
|
958
|
-
let
|
|
959
|
-
if ($[
|
|
960
|
-
|
|
961
|
-
style:
|
|
962
|
-
children:
|
|
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
|
-
$[
|
|
965
|
-
$[
|
|
966
|
-
$[
|
|
1028
|
+
$[13] = t3;
|
|
1029
|
+
$[14] = t5;
|
|
1030
|
+
$[15] = t6;
|
|
967
1031
|
} else {
|
|
968
|
-
|
|
1032
|
+
t6 = $[15];
|
|
969
1033
|
}
|
|
970
|
-
const circle =
|
|
1034
|
+
const circle = t6;
|
|
971
1035
|
if (onPress) {
|
|
972
|
-
let
|
|
973
|
-
if ($[
|
|
974
|
-
|
|
975
|
-
$[
|
|
976
|
-
$[
|
|
977
|
-
$[
|
|
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
|
-
|
|
1043
|
+
t7 = $[18];
|
|
980
1044
|
}
|
|
981
|
-
let
|
|
982
|
-
if ($[
|
|
983
|
-
|
|
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:
|
|
1050
|
+
accessibilityLabel: t7,
|
|
987
1051
|
style: wrapperStyle,
|
|
988
1052
|
children: circle
|
|
989
1053
|
});
|
|
990
|
-
$[
|
|
991
|
-
$[
|
|
992
|
-
$[
|
|
993
|
-
$[
|
|
994
|
-
$[
|
|
1054
|
+
$[19] = circle;
|
|
1055
|
+
$[20] = onPress;
|
|
1056
|
+
$[21] = t7;
|
|
1057
|
+
$[22] = wrapperStyle;
|
|
1058
|
+
$[23] = t8;
|
|
995
1059
|
} else {
|
|
996
|
-
|
|
1060
|
+
t8 = $[23];
|
|
997
1061
|
}
|
|
998
|
-
return
|
|
1062
|
+
return t8;
|
|
999
1063
|
}
|
|
1000
|
-
let
|
|
1001
|
-
if ($[
|
|
1002
|
-
|
|
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
|
-
$[
|
|
1007
|
-
$[
|
|
1008
|
-
$[
|
|
1070
|
+
$[24] = circle;
|
|
1071
|
+
$[25] = wrapperStyle;
|
|
1072
|
+
$[26] = t7;
|
|
1009
1073
|
} else {
|
|
1010
|
-
|
|
1074
|
+
t7 = $[26];
|
|
1011
1075
|
}
|
|
1012
|
-
return
|
|
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'
|