@box-kite/react 2.2.7 → 2.2.9
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/BOX_AI_CONTEXT.md +76 -0
- package/BOX_KITE_AI_CONTEXT.md +76 -0
- package/analytics.cjs +1 -0
- package/analytics.d.ts +10 -0
- package/analytics.mjs +121 -0
- package/behavior.cjs +1 -1
- package/behavior.mjs +42 -38
- package/box.cjs +1 -1
- package/box.d.ts +9 -0
- package/box.mjs +17 -16
- package/catalog.cjs +1 -1
- package/catalog.mjs +8 -0
- package/client.cjs +1 -1
- package/client.mjs +120 -120
- package/components/accordion.cjs +1 -1
- package/components/accordion.mjs +19 -10
- package/components/agent.cjs +1 -1
- package/components/agent.mjs +21 -8
- package/components/calendar.cjs +1 -1
- package/components/calendar.d.ts +3 -1
- package/components/calendar.mjs +154 -142
- package/components/combobox.cjs +1 -1
- package/components/combobox.mjs +184 -174
- package/components/dashboard.cjs +1 -1
- package/components/dashboard.mjs +183 -170
- package/components/dataGrid/models/columnModel.d.ts +1 -0
- package/components/dataGrid/models/gridModel.d.ts +18 -0
- package/components/dataGrid/models/rangeModel.d.ts +3 -0
- package/components/dataGrid.cjs +3 -3
- package/components/dataGrid.mjs +987 -896
- package/components/dateField.cjs +1 -1
- package/components/dateField.mjs +160 -149
- package/components/datePicker.cjs +1 -1
- package/components/datePicker.mjs +226 -206
- package/components/dialog.cjs +1 -1
- package/components/dialog.mjs +38 -33
- package/components/dropdown.cjs +1 -1
- package/components/dropdown.mjs +107 -93
- package/components/form.cjs +1 -1
- package/components/form.mjs +22 -18
- package/components/menu.cjs +1 -1
- package/components/menu.d.ts +2 -0
- package/components/menu.mjs +196 -175
- package/components/overlay.cjs +1 -1
- package/components/overlay.mjs +7 -7
- package/components/popover.cjs +1 -1
- package/components/popover.mjs +4 -0
- package/components/radioGroup.cjs +1 -1
- package/components/radioGroup.mjs +10 -5
- package/components/slider.cjs +1 -1
- package/components/slider.mjs +84 -83
- package/components/sortableList.cjs +1 -1
- package/components/sortableList.mjs +158 -150
- package/components/swipeItem.cjs +1 -1
- package/components/swipeItem.mjs +92 -84
- package/components/tabs.cjs +1 -1
- package/components/tabs.mjs +10 -5
- package/components/timeZoneSelect.cjs +1 -1
- package/components/timeZoneSelect.mjs +40 -35
- package/components/toaster.cjs +1 -1
- package/components/toaster.mjs +151 -113
- package/dataGridDateParts.cjs +1 -1
- package/dataGridDateParts.mjs +56 -55
- package/dataGridList.cjs +1 -1
- package/dataGridList.mjs +430 -429
- package/effects.cjs +1 -1
- package/effects.mjs +1 -1
- package/interactionListening.cjs +1 -0
- package/interactionListening.mjs +117 -0
- package/interactions.cjs +1 -0
- package/interactions.mjs +25 -0
- package/layer.cjs +1 -1
- package/layer.mjs +68 -66
- package/package.json +132 -68
- package/placement.cjs +1 -1
- package/placement.mjs +10 -10
- package/platform.cjs +1 -1
- package/platform.mjs +44 -25
- package/react/interactions/interactions.d.ts +30 -0
- package/react/popover/usePopoverLayer.d.ts +3 -0
- package/react/useStyles.d.ts +8 -1
- package/react-shared.cjs +1 -1
- package/react-shared.mjs +49 -48
- package/reporting.cjs +1 -0
- package/reporting.mjs +51 -0
- package/scrolling.cjs +1 -1
- package/scrolling.mjs +1 -1
- package/supabase/functions/collect/index.d.ts +30 -0
- package/supabase/functions/collect/index.test.d.ts +1 -0
- package/utils/analytics/analytics.d.ts +72 -0
- package/utils/analytics/analyticsIdentity.d.ts +13 -0
- package/utils/interactions/componentAttribute.d.ts +6 -0
- package/utils/interactions/interactionChannel.d.ts +35 -0
- package/utils/interactions/interactionJson.d.ts +6 -0
- package/utils/interactions/interactionListening.d.ts +6 -0
- package/utils/interactions/interactionTypes.d.ts +224 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box-kite/react",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"pages/**"
|
|
@@ -44,6 +44,11 @@
|
|
|
44
44
|
"import": "./interop.mjs",
|
|
45
45
|
"require": "./interop.cjs"
|
|
46
46
|
},
|
|
47
|
+
"./analytics": {
|
|
48
|
+
"types": "./analytics.d.ts",
|
|
49
|
+
"import": "./analytics.mjs",
|
|
50
|
+
"require": "./analytics.cjs"
|
|
51
|
+
},
|
|
47
52
|
"./date": {
|
|
48
53
|
"types": "./date.d.ts",
|
|
49
54
|
"import": "./date.mjs",
|
|
@@ -122,10 +127,11 @@
|
|
|
122
127
|
"react",
|
|
123
128
|
"react-dom",
|
|
124
129
|
"./diagnostics-*",
|
|
125
|
-
"./themeReveal-*"
|
|
130
|
+
"./themeReveal-*",
|
|
131
|
+
"./interactionListening.mjs"
|
|
126
132
|
],
|
|
127
133
|
"gzip": true,
|
|
128
|
-
"limit": "40.
|
|
134
|
+
"limit": "40.90 kB"
|
|
129
135
|
},
|
|
130
136
|
{
|
|
131
137
|
"name": "Box in a Server Component (react-server entry)",
|
|
@@ -134,10 +140,11 @@
|
|
|
134
140
|
"react",
|
|
135
141
|
"react-dom",
|
|
136
142
|
"./diagnostics-*",
|
|
137
|
-
"./themeReveal-*"
|
|
143
|
+
"./themeReveal-*",
|
|
144
|
+
"./interactionListening.mjs"
|
|
138
145
|
],
|
|
139
146
|
"gzip": true,
|
|
140
|
-
"limit": "38.
|
|
147
|
+
"limit": "38.30 kB"
|
|
141
148
|
},
|
|
142
149
|
{
|
|
143
150
|
"name": "Behavior primitives (a11y entry)",
|
|
@@ -146,10 +153,11 @@
|
|
|
146
153
|
"react",
|
|
147
154
|
"react-dom",
|
|
148
155
|
"./diagnostics-*",
|
|
149
|
-
"./themeReveal-*"
|
|
156
|
+
"./themeReveal-*",
|
|
157
|
+
"./interactionListening.mjs"
|
|
150
158
|
],
|
|
151
159
|
"gzip": true,
|
|
152
|
-
"limit": "3.
|
|
160
|
+
"limit": "3.26 kB"
|
|
153
161
|
},
|
|
154
162
|
{
|
|
155
163
|
"name": "Anchor positioning (anchor entry)",
|
|
@@ -158,10 +166,11 @@
|
|
|
158
166
|
"react",
|
|
159
167
|
"react-dom",
|
|
160
168
|
"./diagnostics-*",
|
|
161
|
-
"./themeReveal-*"
|
|
169
|
+
"./themeReveal-*",
|
|
170
|
+
"./interactionListening.mjs"
|
|
162
171
|
],
|
|
163
172
|
"gzip": true,
|
|
164
|
-
"limit": "2.
|
|
173
|
+
"limit": "2.27 kB"
|
|
165
174
|
},
|
|
166
175
|
{
|
|
167
176
|
"name": "Component catalog (catalog entry)",
|
|
@@ -170,10 +179,11 @@
|
|
|
170
179
|
"react",
|
|
171
180
|
"react-dom",
|
|
172
181
|
"./diagnostics-*",
|
|
173
|
-
"./themeReveal-*"
|
|
182
|
+
"./themeReveal-*",
|
|
183
|
+
"./interactionListening.mjs"
|
|
174
184
|
],
|
|
175
185
|
"gzip": true,
|
|
176
|
-
"limit": "61.
|
|
186
|
+
"limit": "61.84 kB"
|
|
177
187
|
},
|
|
178
188
|
{
|
|
179
189
|
"name": "Spec renderer (spec entry)",
|
|
@@ -182,10 +192,11 @@
|
|
|
182
192
|
"react",
|
|
183
193
|
"react-dom",
|
|
184
194
|
"./diagnostics-*",
|
|
185
|
-
"./themeReveal-*"
|
|
195
|
+
"./themeReveal-*",
|
|
196
|
+
"./interactionListening.mjs"
|
|
186
197
|
],
|
|
187
198
|
"gzip": true,
|
|
188
|
-
"limit": "4.
|
|
199
|
+
"limit": "4.72 kB"
|
|
189
200
|
},
|
|
190
201
|
{
|
|
191
202
|
"name": "Ecosystem interop (interop entry)",
|
|
@@ -194,11 +205,25 @@
|
|
|
194
205
|
"react",
|
|
195
206
|
"react-dom",
|
|
196
207
|
"./diagnostics-*",
|
|
197
|
-
"./themeReveal-*"
|
|
208
|
+
"./themeReveal-*",
|
|
209
|
+
"./interactionListening.mjs"
|
|
198
210
|
],
|
|
199
211
|
"gzip": true,
|
|
200
212
|
"limit": "4 KB"
|
|
201
213
|
},
|
|
214
|
+
{
|
|
215
|
+
"name": "Analytics (analytics entry, no React)",
|
|
216
|
+
"path": "dist/analytics.mjs",
|
|
217
|
+
"ignore": [
|
|
218
|
+
"react",
|
|
219
|
+
"react-dom",
|
|
220
|
+
"./diagnostics-*",
|
|
221
|
+
"./themeReveal-*",
|
|
222
|
+
"./interactionListening.mjs"
|
|
223
|
+
],
|
|
224
|
+
"gzip": true,
|
|
225
|
+
"limit": "1.94 kB"
|
|
226
|
+
},
|
|
202
227
|
{
|
|
203
228
|
"name": "Dates, times and zones (date entry, no React)",
|
|
204
229
|
"path": "dist/date.mjs",
|
|
@@ -206,7 +231,8 @@
|
|
|
206
231
|
"react",
|
|
207
232
|
"react-dom",
|
|
208
233
|
"./diagnostics-*",
|
|
209
|
-
"./themeReveal-*"
|
|
234
|
+
"./themeReveal-*",
|
|
235
|
+
"./interactionListening.mjs"
|
|
210
236
|
],
|
|
211
237
|
"gzip": true,
|
|
212
238
|
"limit": "7.59 KB"
|
|
@@ -218,7 +244,8 @@
|
|
|
218
244
|
"limit": "39.43 kB",
|
|
219
245
|
"ignore": [
|
|
220
246
|
"./diagnostics-*",
|
|
221
|
-
"./themeReveal-*"
|
|
247
|
+
"./themeReveal-*",
|
|
248
|
+
"./interactionListening.mjs"
|
|
222
249
|
]
|
|
223
250
|
},
|
|
224
251
|
{
|
|
@@ -228,10 +255,11 @@
|
|
|
228
255
|
"react",
|
|
229
256
|
"react-dom",
|
|
230
257
|
"./diagnostics-*",
|
|
231
|
-
"./themeReveal-*"
|
|
258
|
+
"./themeReveal-*",
|
|
259
|
+
"./interactionListening.mjs"
|
|
232
260
|
],
|
|
233
261
|
"gzip": true,
|
|
234
|
-
"limit": "
|
|
262
|
+
"limit": "43.16 kB"
|
|
235
263
|
},
|
|
236
264
|
{
|
|
237
265
|
"name": "Popover",
|
|
@@ -240,10 +268,11 @@
|
|
|
240
268
|
"react",
|
|
241
269
|
"react-dom",
|
|
242
270
|
"./diagnostics-*",
|
|
243
|
-
"./themeReveal-*"
|
|
271
|
+
"./themeReveal-*",
|
|
272
|
+
"./interactionListening.mjs"
|
|
244
273
|
],
|
|
245
274
|
"gzip": true,
|
|
246
|
-
"limit": "44.
|
|
275
|
+
"limit": "44.70 kB"
|
|
247
276
|
},
|
|
248
277
|
{
|
|
249
278
|
"name": "Menu",
|
|
@@ -252,10 +281,11 @@
|
|
|
252
281
|
"react",
|
|
253
282
|
"react-dom",
|
|
254
283
|
"./diagnostics-*",
|
|
255
|
-
"./themeReveal-*"
|
|
284
|
+
"./themeReveal-*",
|
|
285
|
+
"./interactionListening.mjs"
|
|
256
286
|
],
|
|
257
287
|
"gzip": true,
|
|
258
|
-
"limit": "
|
|
288
|
+
"limit": "47.07 kB"
|
|
259
289
|
},
|
|
260
290
|
{
|
|
261
291
|
"name": "Accordion",
|
|
@@ -264,10 +294,11 @@
|
|
|
264
294
|
"react",
|
|
265
295
|
"react-dom",
|
|
266
296
|
"./diagnostics-*",
|
|
267
|
-
"./themeReveal-*"
|
|
297
|
+
"./themeReveal-*",
|
|
298
|
+
"./interactionListening.mjs"
|
|
268
299
|
],
|
|
269
300
|
"gzip": true,
|
|
270
|
-
"limit": "
|
|
301
|
+
"limit": "42.42 kB"
|
|
271
302
|
},
|
|
272
303
|
{
|
|
273
304
|
"name": "Agent",
|
|
@@ -276,10 +307,11 @@
|
|
|
276
307
|
"react",
|
|
277
308
|
"react-dom",
|
|
278
309
|
"./diagnostics-*",
|
|
279
|
-
"./themeReveal-*"
|
|
310
|
+
"./themeReveal-*",
|
|
311
|
+
"./interactionListening.mjs"
|
|
280
312
|
],
|
|
281
313
|
"gzip": true,
|
|
282
|
-
"limit": "
|
|
314
|
+
"limit": "43.19 kB"
|
|
283
315
|
},
|
|
284
316
|
{
|
|
285
317
|
"name": "Markdown",
|
|
@@ -288,10 +320,11 @@
|
|
|
288
320
|
"react",
|
|
289
321
|
"react-dom",
|
|
290
322
|
"./diagnostics-*",
|
|
291
|
-
"./themeReveal-*"
|
|
323
|
+
"./themeReveal-*",
|
|
324
|
+
"./interactionListening.mjs"
|
|
292
325
|
],
|
|
293
326
|
"gzip": true,
|
|
294
|
-
"limit": "41.
|
|
327
|
+
"limit": "41.47 kB"
|
|
295
328
|
},
|
|
296
329
|
{
|
|
297
330
|
"name": "List",
|
|
@@ -300,10 +333,11 @@
|
|
|
300
333
|
"react",
|
|
301
334
|
"react-dom",
|
|
302
335
|
"./diagnostics-*",
|
|
303
|
-
"./themeReveal-*"
|
|
336
|
+
"./themeReveal-*",
|
|
337
|
+
"./interactionListening.mjs"
|
|
304
338
|
],
|
|
305
339
|
"gzip": true,
|
|
306
|
-
"limit": "42.
|
|
340
|
+
"limit": "42.84 kB"
|
|
307
341
|
},
|
|
308
342
|
{
|
|
309
343
|
"name": "SwipeItem",
|
|
@@ -312,10 +346,11 @@
|
|
|
312
346
|
"react",
|
|
313
347
|
"react-dom",
|
|
314
348
|
"./diagnostics-*",
|
|
315
|
-
"./themeReveal-*"
|
|
349
|
+
"./themeReveal-*",
|
|
350
|
+
"./interactionListening.mjs"
|
|
316
351
|
],
|
|
317
352
|
"gzip": true,
|
|
318
|
-
"limit": "
|
|
353
|
+
"limit": "46.12 kB"
|
|
319
354
|
},
|
|
320
355
|
{
|
|
321
356
|
"name": "SortableList",
|
|
@@ -324,10 +359,11 @@
|
|
|
324
359
|
"react",
|
|
325
360
|
"react-dom",
|
|
326
361
|
"./diagnostics-*",
|
|
327
|
-
"./themeReveal-*"
|
|
362
|
+
"./themeReveal-*",
|
|
363
|
+
"./interactionListening.mjs"
|
|
328
364
|
],
|
|
329
365
|
"gzip": true,
|
|
330
|
-
"limit": "
|
|
366
|
+
"limit": "46.44 kB"
|
|
331
367
|
},
|
|
332
368
|
{
|
|
333
369
|
"name": "VirtualList",
|
|
@@ -336,10 +372,11 @@
|
|
|
336
372
|
"react",
|
|
337
373
|
"react-dom",
|
|
338
374
|
"./diagnostics-*",
|
|
339
|
-
"./themeReveal-*"
|
|
375
|
+
"./themeReveal-*",
|
|
376
|
+
"./interactionListening.mjs"
|
|
340
377
|
],
|
|
341
378
|
"gzip": true,
|
|
342
|
-
"limit": "
|
|
379
|
+
"limit": "45.00 kB"
|
|
343
380
|
},
|
|
344
381
|
{
|
|
345
382
|
"name": "Skeleton",
|
|
@@ -348,10 +385,11 @@
|
|
|
348
385
|
"react",
|
|
349
386
|
"react-dom",
|
|
350
387
|
"./diagnostics-*",
|
|
351
|
-
"./themeReveal-*"
|
|
388
|
+
"./themeReveal-*",
|
|
389
|
+
"./interactionListening.mjs"
|
|
352
390
|
],
|
|
353
391
|
"gzip": true,
|
|
354
|
-
"limit": "40.
|
|
392
|
+
"limit": "40.82 kB"
|
|
355
393
|
},
|
|
356
394
|
{
|
|
357
395
|
"name": "Tabs",
|
|
@@ -360,10 +398,11 @@
|
|
|
360
398
|
"react",
|
|
361
399
|
"react-dom",
|
|
362
400
|
"./diagnostics-*",
|
|
363
|
-
"./themeReveal-*"
|
|
401
|
+
"./themeReveal-*",
|
|
402
|
+
"./interactionListening.mjs"
|
|
364
403
|
],
|
|
365
404
|
"gzip": true,
|
|
366
|
-
"limit": "43.
|
|
405
|
+
"limit": "43.61 kB"
|
|
367
406
|
},
|
|
368
407
|
{
|
|
369
408
|
"name": "Slider",
|
|
@@ -372,10 +411,11 @@
|
|
|
372
411
|
"react",
|
|
373
412
|
"react-dom",
|
|
374
413
|
"./diagnostics-*",
|
|
375
|
-
"./themeReveal-*"
|
|
414
|
+
"./themeReveal-*",
|
|
415
|
+
"./interactionListening.mjs"
|
|
376
416
|
],
|
|
377
417
|
"gzip": true,
|
|
378
|
-
"limit": "42.
|
|
418
|
+
"limit": "42.75 kB"
|
|
379
419
|
},
|
|
380
420
|
{
|
|
381
421
|
"name": "Progress",
|
|
@@ -384,10 +424,11 @@
|
|
|
384
424
|
"react",
|
|
385
425
|
"react-dom",
|
|
386
426
|
"./diagnostics-*",
|
|
387
|
-
"./themeReveal-*"
|
|
427
|
+
"./themeReveal-*",
|
|
428
|
+
"./interactionListening.mjs"
|
|
388
429
|
],
|
|
389
430
|
"gzip": true,
|
|
390
|
-
"limit": "40.
|
|
431
|
+
"limit": "40.77 kB"
|
|
391
432
|
},
|
|
392
433
|
{
|
|
393
434
|
"name": "Toaster",
|
|
@@ -396,10 +437,11 @@
|
|
|
396
437
|
"react",
|
|
397
438
|
"react-dom",
|
|
398
439
|
"./diagnostics-*",
|
|
399
|
-
"./themeReveal-*"
|
|
440
|
+
"./themeReveal-*",
|
|
441
|
+
"./interactionListening.mjs"
|
|
400
442
|
],
|
|
401
443
|
"gzip": true,
|
|
402
|
-
"limit": "
|
|
444
|
+
"limit": "44.41 kB"
|
|
403
445
|
},
|
|
404
446
|
{
|
|
405
447
|
"name": "DateField",
|
|
@@ -408,10 +450,11 @@
|
|
|
408
450
|
"react",
|
|
409
451
|
"react-dom",
|
|
410
452
|
"./diagnostics-*",
|
|
411
|
-
"./themeReveal-*"
|
|
453
|
+
"./themeReveal-*",
|
|
454
|
+
"./interactionListening.mjs"
|
|
412
455
|
],
|
|
413
456
|
"gzip": true,
|
|
414
|
-
"limit": "49.
|
|
457
|
+
"limit": "49.66 kB"
|
|
415
458
|
},
|
|
416
459
|
{
|
|
417
460
|
"name": "Calendar",
|
|
@@ -420,10 +463,11 @@
|
|
|
420
463
|
"react",
|
|
421
464
|
"react-dom",
|
|
422
465
|
"./diagnostics-*",
|
|
423
|
-
"./themeReveal-*"
|
|
466
|
+
"./themeReveal-*",
|
|
467
|
+
"./interactionListening.mjs"
|
|
424
468
|
],
|
|
425
469
|
"gzip": true,
|
|
426
|
-
"limit": "
|
|
470
|
+
"limit": "49.09 kB"
|
|
427
471
|
},
|
|
428
472
|
{
|
|
429
473
|
"name": "DatePicker",
|
|
@@ -432,10 +476,11 @@
|
|
|
432
476
|
"react",
|
|
433
477
|
"react-dom",
|
|
434
478
|
"./diagnostics-*",
|
|
435
|
-
"./themeReveal-*"
|
|
479
|
+
"./themeReveal-*",
|
|
480
|
+
"./interactionListening.mjs"
|
|
436
481
|
],
|
|
437
482
|
"gzip": true,
|
|
438
|
-
"limit": "61.
|
|
483
|
+
"limit": "61.87 kB"
|
|
439
484
|
},
|
|
440
485
|
{
|
|
441
486
|
"name": "DateTime",
|
|
@@ -444,10 +489,11 @@
|
|
|
444
489
|
"react",
|
|
445
490
|
"react-dom",
|
|
446
491
|
"./diagnostics-*",
|
|
447
|
-
"./themeReveal-*"
|
|
492
|
+
"./themeReveal-*",
|
|
493
|
+
"./interactionListening.mjs"
|
|
448
494
|
],
|
|
449
495
|
"gzip": true,
|
|
450
|
-
"limit": "
|
|
496
|
+
"limit": "44.35 kB"
|
|
451
497
|
},
|
|
452
498
|
{
|
|
453
499
|
"name": "TimeZoneSelect",
|
|
@@ -456,10 +502,11 @@
|
|
|
456
502
|
"react",
|
|
457
503
|
"react-dom",
|
|
458
504
|
"./diagnostics-*",
|
|
459
|
-
"./themeReveal-*"
|
|
505
|
+
"./themeReveal-*",
|
|
506
|
+
"./interactionListening.mjs"
|
|
460
507
|
],
|
|
461
508
|
"gzip": true,
|
|
462
|
-
"limit": "
|
|
509
|
+
"limit": "52.22 kB"
|
|
463
510
|
},
|
|
464
511
|
{
|
|
465
512
|
"name": "Combobox",
|
|
@@ -468,10 +515,11 @@
|
|
|
468
515
|
"react",
|
|
469
516
|
"react-dom",
|
|
470
517
|
"./diagnostics-*",
|
|
471
|
-
"./themeReveal-*"
|
|
518
|
+
"./themeReveal-*",
|
|
519
|
+
"./interactionListening.mjs"
|
|
472
520
|
],
|
|
473
521
|
"gzip": true,
|
|
474
|
-
"limit": "
|
|
522
|
+
"limit": "50.20 kB"
|
|
475
523
|
},
|
|
476
524
|
{
|
|
477
525
|
"name": "Dashboard",
|
|
@@ -480,10 +528,11 @@
|
|
|
480
528
|
"react",
|
|
481
529
|
"react-dom",
|
|
482
530
|
"./diagnostics-*",
|
|
483
|
-
"./themeReveal-*"
|
|
531
|
+
"./themeReveal-*",
|
|
532
|
+
"./interactionListening.mjs"
|
|
484
533
|
],
|
|
485
534
|
"gzip": true,
|
|
486
|
-
"limit": "46.
|
|
535
|
+
"limit": "46.74 kB"
|
|
487
536
|
},
|
|
488
537
|
{
|
|
489
538
|
"name": "DataGrid",
|
|
@@ -493,11 +542,22 @@
|
|
|
493
542
|
"react-dom",
|
|
494
543
|
"./diagnostics-*",
|
|
495
544
|
"./themeReveal-*",
|
|
545
|
+
"./interactionListening.mjs",
|
|
496
546
|
"../dataGridList.mjs",
|
|
497
547
|
"../dataGridDateParts.mjs"
|
|
498
548
|
],
|
|
499
549
|
"gzip": true,
|
|
500
|
-
"limit": "
|
|
550
|
+
"limit": "97.40 kB"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"name": "Interaction delivery, the chunk the first Box.onInteraction fetches",
|
|
554
|
+
"path": "dist/interactionListening.mjs",
|
|
555
|
+
"ignore": [
|
|
556
|
+
"react",
|
|
557
|
+
"react-dom"
|
|
558
|
+
],
|
|
559
|
+
"gzip": true,
|
|
560
|
+
"limit": "1.44 kB"
|
|
501
561
|
},
|
|
502
562
|
{
|
|
503
563
|
"name": "DataGrid export, the chunk fetched on the first press",
|
|
@@ -506,10 +566,11 @@
|
|
|
506
566
|
"react",
|
|
507
567
|
"react-dom",
|
|
508
568
|
"./diagnostics-*",
|
|
509
|
-
"./themeReveal-*"
|
|
569
|
+
"./themeReveal-*",
|
|
570
|
+
"./interactionListening.mjs"
|
|
510
571
|
],
|
|
511
572
|
"gzip": true,
|
|
512
|
-
"limit": "3.
|
|
573
|
+
"limit": "3.86 kB"
|
|
513
574
|
},
|
|
514
575
|
{
|
|
515
576
|
"name": "DataGrid list layout, the chunk a narrow grid fetches on top of the grid",
|
|
@@ -519,11 +580,12 @@
|
|
|
519
580
|
"react-dom",
|
|
520
581
|
"./diagnostics-*",
|
|
521
582
|
"./themeReveal-*",
|
|
583
|
+
"./interactionListening.mjs",
|
|
522
584
|
"./box.mjs",
|
|
523
585
|
"./components/*"
|
|
524
586
|
],
|
|
525
587
|
"gzip": true,
|
|
526
|
-
"limit": "7.
|
|
588
|
+
"limit": "7.89 kB"
|
|
527
589
|
},
|
|
528
590
|
{
|
|
529
591
|
"name": "DataGrid dates, the chunk a grid with a date column fetches on top of the grid",
|
|
@@ -533,11 +595,12 @@
|
|
|
533
595
|
"react-dom",
|
|
534
596
|
"./diagnostics-*",
|
|
535
597
|
"./themeReveal-*",
|
|
598
|
+
"./interactionListening.mjs",
|
|
536
599
|
"./box.mjs",
|
|
537
600
|
"./components/*"
|
|
538
601
|
],
|
|
539
602
|
"gzip": true,
|
|
540
|
-
"limit": "7.
|
|
603
|
+
"limit": "7.56 kB"
|
|
541
604
|
},
|
|
542
605
|
{
|
|
543
606
|
"name": "Full library (Box + ssg + every component)",
|
|
@@ -546,10 +609,11 @@
|
|
|
546
609
|
"react",
|
|
547
610
|
"react-dom",
|
|
548
611
|
"./diagnostics-*",
|
|
549
|
-
"./themeReveal-*"
|
|
612
|
+
"./themeReveal-*",
|
|
613
|
+
"./interactionListening.mjs"
|
|
550
614
|
],
|
|
551
615
|
"gzip": true,
|
|
552
|
-
"limit": "
|
|
616
|
+
"limit": "165.73 kB"
|
|
553
617
|
}
|
|
554
618
|
],
|
|
555
619
|
"repository": {
|
|
@@ -589,7 +653,7 @@
|
|
|
589
653
|
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
590
654
|
},
|
|
591
655
|
"dependencies": {
|
|
592
|
-
"@box-kite/core": "2.2.
|
|
656
|
+
"@box-kite/core": "2.2.9",
|
|
593
657
|
"csstype": "^3.2.3",
|
|
594
658
|
"use-sync-external-store": "^1.6.0"
|
|
595
659
|
},
|
package/placement.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./platform.cjs"),t=require("./effects.cjs"),n=require("./identity.cjs");let r=require("react");var i={top:`bottom`,bottom:`top`,start:`end`,end:`start`};function a(e){return e===`top`||e===`bottom`}function o(e,t){let n=a(e),r=n?e===`top`?`block-start`:`block-end`:e===`start`?`inline-start`:`inline-end`,i=t===`center`?`span-all`:`span-${n?`inline`:`block`}-${t===`start`?`end`:`start`}`;return n?`${r} ${i}`:`${i} ${r}`}function s(e){let[t,n]=e.trim().split(` `);return n===void 0?t===`block-start`?`top`:t===`block-end`?`bottom`:t===`inline-start`?`start`:t===`inline-end`?`end`:null:t===`start`?`top`:t===`end`?`bottom`:n===`start`?`start`:n===`end`?`end`:null}function c(e){return a(e)?`flip-block, flip-inline, flip-block flip-inline`:`flip-inline, flip-block, flip-inline flip-block`}function l(e,t,n,r){let i=u(t,r);return i===`top`?e.top-n.top:i===`bottom`?n.top+n.height-(e.top+e.height):i===`left`?e.left-n.left:n.left+n.width-(e.left+e.width)}function u(e,t){return e===`top`||e===`bottom`?e:e===`start`===t?`right`:`left`}function d(e,t,n,r){return Math.max(n,Math.min(e,n+r-t))}function f(e,t,n,r){let{align:o,offset:s,flip:c,rtl:f}=r,p=(a(r.side)?t.height:t.width)+s,m=c&&l(e,r.side,n,f)<p&&l(e,i[r.side],n,f)>=p?i[r.side]:r.side,h=u(m,f),g={top:e.top-t.height-s,bottom:e.top+e.height+s,left:e.left-t.width-s,right:e.left+e.width+s}[h],_=a(m),v=_?e.left:e.top,y=_?e.width:e.height,b=_?t.width:t.height,x=o===`center`?v+y/2-b/2:o===`start`===(_&&f)?v+y-b:v,S=_?d(x,t.width,n.left,n.width):d(x,t.height,n.top,n.height);return _?{top:g,left:S,side:m}:{top:S,left:g,side:m}}var p=4,m=16,h={top:`mb`,bottom:`mt`,start:`me`,end:`ms`};function g(){return typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`anchor-name: --a`)}function _(){let e=typeof document>`u`?null:document.documentElement,t=e?parseFloat(getComputedStyle(e).fontSize):NaN;return Number.isFinite(t)&&t>0?t:m}function v(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect();return{top:t,left:n,width:r,height:i}}function y(e,t){return e!==null&&e.top===t.top&&e.left===t.left&&e.side===t.side&&e.anchorWidth===t.anchorWidth}function b(i={}){let{side:a=`bottom`,align:l=`center`,offset:u=0,flip:d=!0,matchWidth:m=!1,name:b,anchor:x,trackSide:S=!1}=i,C=n.t(`anchor`),w=`--${(b??C).replace(/^--/,``)}`,[T,E]=(0,r.useState)(!0),[D,O]=(0,r.useState)(null),[k,A]=(0,r.useState)(null),[j,M]=(0,r.useState)(null),[N,P]=(0,r.useState)(null);t.n(()=>{g()||E(!1)},[]),t.n(()=>{let t=e.
|
|
1
|
+
const e=require("./platform.cjs"),t=require("./effects.cjs"),n=require("./identity.cjs");let r=require("react");var i={top:`bottom`,bottom:`top`,start:`end`,end:`start`};function a(e){return e===`top`||e===`bottom`}function o(e,t){let n=a(e),r=n?e===`top`?`block-start`:`block-end`:e===`start`?`inline-start`:`inline-end`,i=t===`center`?`span-all`:`span-${n?`inline`:`block`}-${t===`start`?`end`:`start`}`;return n?`${r} ${i}`:`${i} ${r}`}function s(e){let[t,n]=e.trim().split(` `);return n===void 0?t===`block-start`?`top`:t===`block-end`?`bottom`:t===`inline-start`?`start`:t===`inline-end`?`end`:null:t===`start`?`top`:t===`end`?`bottom`:n===`start`?`start`:n===`end`?`end`:null}function c(e){return a(e)?`flip-block, flip-inline, flip-block flip-inline`:`flip-inline, flip-block, flip-inline flip-block`}function l(e,t,n,r){let i=u(t,r);return i===`top`?e.top-n.top:i===`bottom`?n.top+n.height-(e.top+e.height):i===`left`?e.left-n.left:n.left+n.width-(e.left+e.width)}function u(e,t){return e===`top`||e===`bottom`?e:e===`start`===t?`right`:`left`}function d(e,t,n,r){return Math.max(n,Math.min(e,n+r-t))}function f(e,t,n,r){let{align:o,offset:s,flip:c,rtl:f}=r,p=(a(r.side)?t.height:t.width)+s,m=c&&l(e,r.side,n,f)<p&&l(e,i[r.side],n,f)>=p?i[r.side]:r.side,h=u(m,f),g={top:e.top-t.height-s,bottom:e.top+e.height+s,left:e.left-t.width-s,right:e.left+e.width+s}[h],_=a(m),v=_?e.left:e.top,y=_?e.width:e.height,b=_?t.width:t.height,x=o===`center`?v+y/2-b/2:o===`start`===(_&&f)?v+y-b:v,S=_?d(x,t.width,n.left,n.width):d(x,t.height,n.top,n.height);return _?{top:g,left:S,side:m}:{top:S,left:g,side:m}}var p=4,m=16,h={top:`mb`,bottom:`mt`,start:`me`,end:`ms`};function g(){return typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`anchor-name: --a`)}function _(){let e=typeof document>`u`?null:document.documentElement,t=e?parseFloat(getComputedStyle(e).fontSize):NaN;return Number.isFinite(t)&&t>0?t:m}function v(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect();return{top:t,left:n,width:r,height:i}}function y(e,t){return e!==null&&e.top===t.top&&e.left===t.left&&e.side===t.side&&e.anchorWidth===t.anchorWidth}function b(i={}){let{side:a=`bottom`,align:l=`center`,offset:u=0,flip:d=!0,matchWidth:m=!1,name:b,anchor:x,trackSide:S=!1}=i,C=n.t(`anchor`),w=`--${(b??C).replace(/^--/,``)}`,[T,E]=(0,r.useState)(!0),[D,O]=(0,r.useState)(null),[k,A]=(0,r.useState)(null),[j,M]=(0,r.useState)(null),[N,P]=(0,r.useState)(null);t.n(()=>{g()||E(!1)},[]),t.n(()=>{let t=e.d(x);if(t)return t.style.setProperty(`anchor-name`,w),()=>{t.style.removeProperty(`anchor-name`)}},[x,w]),t.n(()=>{!T||!S||!k||P(s(getComputedStyle(k).getPropertyValue(`position-area`)))},[T,S,k,a,l,d]),t.n(()=>{let t=e.d(x)??D;if(T||!t||!k)return;let n=()=>{let n=v(t),r=v(k),i={top:0,left:0,width:window.innerWidth,height:window.innerHeight},o=m?Math.max(r.width,n.width):r.width,s={...f(n,{...r,width:o},i,{side:a,align:l,offset:u/p*_(),flip:d,rtl:e.p(t)}),anchorWidth:n.width};M(e=>y(e,s)?e:s)};n();let r=new AbortController;return document.addEventListener(`scroll`,n,{signal:r.signal,capture:!0,passive:!0}),window.addEventListener(`resize`,n,{signal:r.signal,passive:!0}),()=>r.abort()},[T,x,D,k,a,l,u,d,m]);let F=(0,r.useCallback)(e=>O(e),[]),I=(0,r.useCallback)(e=>A(e),[]),L={ref:T?void 0:F,style:{anchorName:w}};return T?{css:T,side:N??a,anchorProps:L,layerProps:{...S?{ref:I}:{},position:`fixed`,positionArea:o(a,l),...d?{positionTryFallbacks:c(a)}:{},...m?{minWidth:`anchor-size(width)`}:{},...u?{[h[a]]:u}:{},style:{positionAnchor:w}}}:{css:T,side:j?.side??a,anchorProps:L,layerProps:{ref:I,position:`fixed`,style:j?{top:`${j.top}px`,left:`${j.left}px`,...m?{minWidth:`${j.anchorWidth}px`}:{}}:{top:0,left:0,visibility:`hidden`}}}}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return b}});
|
package/placement.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e,
|
|
1
|
+
import { d as e, p as t } from "./platform.mjs";
|
|
2
2
|
import { n } from "./effects.mjs";
|
|
3
3
|
import { t as r } from "./identity.mjs";
|
|
4
4
|
import { useCallback as i, useState as a } from "react";
|
|
@@ -82,9 +82,9 @@ function S(o = {}) {
|
|
|
82
82
|
n(() => {
|
|
83
83
|
v() || O(!1);
|
|
84
84
|
}, []), n(() => {
|
|
85
|
-
let
|
|
86
|
-
if (
|
|
87
|
-
|
|
85
|
+
let t = e(C);
|
|
86
|
+
if (t) return t.style.setProperty("anchor-name", E), () => {
|
|
87
|
+
t.style.removeProperty("anchor-name");
|
|
88
88
|
};
|
|
89
89
|
}, [C, E]), n(() => {
|
|
90
90
|
!D || !w || !j || I(l(getComputedStyle(j).getPropertyValue("position-area")));
|
|
@@ -96,16 +96,16 @@ function S(o = {}) {
|
|
|
96
96
|
d,
|
|
97
97
|
p
|
|
98
98
|
]), n(() => {
|
|
99
|
-
let n =
|
|
99
|
+
let n = e(C) ?? k;
|
|
100
100
|
if (D || !n || !j) return;
|
|
101
101
|
let r = () => {
|
|
102
|
-
let
|
|
102
|
+
let e = b(n), r = b(j), i = {
|
|
103
103
|
top: 0,
|
|
104
104
|
left: 0,
|
|
105
105
|
width: window.innerWidth,
|
|
106
106
|
height: window.innerHeight
|
|
107
|
-
}, a = g ? Math.max(r.width,
|
|
108
|
-
...m(
|
|
107
|
+
}, a = g ? Math.max(r.width, e.width) : r.width, o = {
|
|
108
|
+
...m(e, {
|
|
109
109
|
...r,
|
|
110
110
|
width: a
|
|
111
111
|
}, i, {
|
|
@@ -113,9 +113,9 @@ function S(o = {}) {
|
|
|
113
113
|
align: d,
|
|
114
114
|
offset: f / h * y(),
|
|
115
115
|
flip: p,
|
|
116
|
-
rtl:
|
|
116
|
+
rtl: t(n)
|
|
117
117
|
}),
|
|
118
|
-
anchorWidth:
|
|
118
|
+
anchorWidth: e.width
|
|
119
119
|
};
|
|
120
120
|
P((e) => x(e, o) ? e : o);
|
|
121
121
|
};
|
package/platform.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e){return e?`current`in e?e.current:e:null}function
|
|
1
|
+
var e=globalThis[Symbol.for(`box-kite.componentAttribute`)]??={on:!1,warnings:!0},t=()=>e.on,n=()=>e.warnings;function r(t){e.on=t}function i(t){e.warnings=t}function a(e){return e?`current`in e?e.current:e:null}function o(e){let t=a(e);return t instanceof HTMLElement?t:null}function s(e,t){let n=typeof e.composedPath==`function`?e.composedPath():[];return t.some(t=>{let r=a(t);return r?n.includes(r)||e.target instanceof Node&&r.contains(e.target):!1})}function c(e){let t=a(e),n=t?.ownerDocument?.defaultView;return!!t&&!!n&&n.getComputedStyle(t).direction===`rtl`}function l(e){let t=a(e)?.ownerDocument?.defaultView?.getSelection();t&&!t.isCollapsed&&t.removeAllRanges()}function u(){return typeof window<`u`&&window.document!==void 0}function d(){try{return process.env.NODE_ENV!==`production`}catch{return!1}}function f(){return typeof document<`u`}function p(){return f()?document:null}function m(){return p()?.documentElement??null}function h(){return typeof HTMLElement<`u`&&typeof HTMLElement.prototype.showPopover==`function`}function g(){return typeof HTMLDialogElement<`u`&&`closedBy`in HTMLDialogElement.prototype}function _(e){return typeof window>`u`||typeof window.matchMedia!=`function`?null:window.matchMedia(e)}Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return a}});
|