@oxy.so/bloom 5.1.1 → 5.2.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 (99) hide show
  1. package/docs/app-shell.mdx +3 -1
  2. package/docs/chat-people.mdx +8 -0
  3. package/docs/settings-modal.mdx +15 -0
  4. package/lib/commonjs/ai-chat/AiChatResizeHandle.js +166 -0
  5. package/lib/commonjs/ai-chat/AiChatResizeHandle.js.map +1 -0
  6. package/lib/commonjs/ai-chat/AiChatShell.js +6 -154
  7. package/lib/commonjs/ai-chat/AiChatShell.js.map +1 -1
  8. package/lib/commonjs/ai-chat/index.js +2 -1
  9. package/lib/commonjs/ai-chat/index.js.map +1 -1
  10. package/lib/commonjs/ai-chat/index.web.js +2 -1
  11. package/lib/commonjs/ai-chat/index.web.js.map +1 -1
  12. package/lib/commonjs/ai-chat/messages.js +15 -30
  13. package/lib/commonjs/ai-chat/messages.js.map +1 -1
  14. package/lib/commonjs/app-shell/AppShellSplit.js +2 -2
  15. package/lib/commonjs/app-shell/AppShellSplit.js.map +1 -1
  16. package/lib/commonjs/chat-people/contact-row.js +13 -0
  17. package/lib/commonjs/chat-people/contact-row.js.map +1 -0
  18. package/lib/commonjs/chat-screen/ChatSplitLayout.js +2 -2
  19. package/lib/commonjs/chat-screen/ChatSplitLayout.js.map +1 -1
  20. package/lib/commonjs/locale/common-messages.js +30 -15
  21. package/lib/commonjs/locale/common-messages.js.map +1 -1
  22. package/lib/commonjs/settings-modal/rows.js +37 -0
  23. package/lib/commonjs/settings-modal/rows.js.map +1 -0
  24. package/lib/module/ai-chat/AiChatResizeHandle.js +160 -0
  25. package/lib/module/ai-chat/AiChatResizeHandle.js.map +1 -0
  26. package/lib/module/ai-chat/AiChatShell.js +5 -152
  27. package/lib/module/ai-chat/AiChatShell.js.map +1 -1
  28. package/lib/module/ai-chat/index.js +2 -1
  29. package/lib/module/ai-chat/index.js.map +1 -1
  30. package/lib/module/ai-chat/index.web.js +2 -1
  31. package/lib/module/ai-chat/index.web.js.map +1 -1
  32. package/lib/module/ai-chat/messages.js +15 -30
  33. package/lib/module/ai-chat/messages.js.map +1 -1
  34. package/lib/module/app-shell/AppShellSplit.js +1 -1
  35. package/lib/module/app-shell/AppShellSplit.js.map +1 -1
  36. package/lib/module/chat-people/contact-row.js +10 -0
  37. package/lib/module/chat-people/contact-row.js.map +1 -0
  38. package/lib/module/chat-screen/ChatSplitLayout.js +1 -1
  39. package/lib/module/chat-screen/ChatSplitLayout.js.map +1 -1
  40. package/lib/module/locale/common-messages.js +30 -15
  41. package/lib/module/locale/common-messages.js.map +1 -1
  42. package/lib/module/settings-modal/rows.js +10 -0
  43. package/lib/module/settings-modal/rows.js.map +1 -0
  44. package/lib/typescript/commonjs/ai-chat/AiChatResizeHandle.d.ts +11 -0
  45. package/lib/typescript/commonjs/ai-chat/AiChatResizeHandle.d.ts.map +1 -0
  46. package/lib/typescript/commonjs/ai-chat/AiChatShell.d.ts +1 -10
  47. package/lib/typescript/commonjs/ai-chat/AiChatShell.d.ts.map +1 -1
  48. package/lib/typescript/commonjs/ai-chat/index.d.ts +2 -1
  49. package/lib/typescript/commonjs/ai-chat/index.d.ts.map +1 -1
  50. package/lib/typescript/commonjs/ai-chat/index.web.d.ts +2 -1
  51. package/lib/typescript/commonjs/ai-chat/index.web.d.ts.map +1 -1
  52. package/lib/typescript/commonjs/ai-chat/messages.d.ts +0 -1
  53. package/lib/typescript/commonjs/ai-chat/messages.d.ts.map +1 -1
  54. package/lib/typescript/commonjs/chat-people/contact-row.d.ts +9 -0
  55. package/lib/typescript/commonjs/chat-people/contact-row.d.ts.map +1 -0
  56. package/lib/typescript/commonjs/locale/common-messages.d.ts +2 -0
  57. package/lib/typescript/commonjs/locale/common-messages.d.ts.map +1 -1
  58. package/lib/typescript/commonjs/settings-modal/rows.d.ts +9 -0
  59. package/lib/typescript/commonjs/settings-modal/rows.d.ts.map +1 -0
  60. package/lib/typescript/module/ai-chat/AiChatResizeHandle.d.ts +11 -0
  61. package/lib/typescript/module/ai-chat/AiChatResizeHandle.d.ts.map +1 -0
  62. package/lib/typescript/module/ai-chat/AiChatShell.d.ts +1 -10
  63. package/lib/typescript/module/ai-chat/AiChatShell.d.ts.map +1 -1
  64. package/lib/typescript/module/ai-chat/index.d.ts +2 -1
  65. package/lib/typescript/module/ai-chat/index.d.ts.map +1 -1
  66. package/lib/typescript/module/ai-chat/index.web.d.ts +2 -1
  67. package/lib/typescript/module/ai-chat/index.web.d.ts.map +1 -1
  68. package/lib/typescript/module/ai-chat/messages.d.ts +0 -1
  69. package/lib/typescript/module/ai-chat/messages.d.ts.map +1 -1
  70. package/lib/typescript/module/chat-people/contact-row.d.ts +9 -0
  71. package/lib/typescript/module/chat-people/contact-row.d.ts.map +1 -0
  72. package/lib/typescript/module/locale/common-messages.d.ts +2 -0
  73. package/lib/typescript/module/locale/common-messages.d.ts.map +1 -1
  74. package/lib/typescript/module/settings-modal/rows.d.ts +9 -0
  75. package/lib/typescript/module/settings-modal/rows.d.ts.map +1 -0
  76. package/package.json +35 -1
  77. package/src/ai-chat/AiChatResizeHandle.tsx +151 -0
  78. package/src/ai-chat/AiChatShell.tsx +8 -143
  79. package/src/ai-chat/index.ts +2 -1
  80. package/src/ai-chat/index.web.ts +2 -1
  81. package/src/ai-chat/messages.ts +0 -16
  82. package/src/app-shell/AppShellSplit.tsx +1 -1
  83. package/src/chat-people/contact-row.ts +8 -0
  84. package/src/chat-screen/ChatSplitLayout.tsx +1 -1
  85. package/src/locale/common-messages.ts +17 -0
  86. package/src/settings-modal/rows.ts +21 -0
  87. package/src/__tests__/support/adoption-matrix.ts +0 -708
  88. package/src/__tests__/support/card-surface.ts +0 -17
  89. package/src/__tests__/support/collision-fixture-barrel.ts +0 -20
  90. package/src/__tests__/support/commerce-harness.tsx +0 -97
  91. package/src/__tests__/support/composite.ts +0 -68
  92. package/src/__tests__/support/constructed-style-sheets.ts +0 -68
  93. package/src/__tests__/support/press-host.ts +0 -30
  94. package/src/__tests__/support/rendered-style.ts +0 -99
  95. package/src/__tests__/support/unread-hook-fixture.ts +0 -33
  96. package/src/__tests__/support/worklet-capture-fixture.tsx +0 -28
  97. package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +0 -9346
  98. package/src/theme/__tests__/__fixtures__/tonal-glass-primary-failures.json +0 -69
  99. package/src/theme/__tests__/fixtures/color-engine-golden.json +0 -1
@@ -15,7 +15,8 @@ export {
15
15
  AiChatMessageLine,
16
16
  AiChatStrong,
17
17
  } from './AiChatMessages';
18
- export { AiChatMobileHeader, AiChatResizeHandle, AiChatShell } from './AiChatShell';
18
+ export { AiChatResizeHandle } from './AiChatResizeHandle';
19
+ export { AiChatMobileHeader, AiChatShell } from './AiChatShell';
19
20
  export { useAiChatChromeInsets, useAiChatShell } from './context';
20
21
  export type { AiChatChromeInsets, AiChatShellState } from './context';
21
22
  export type {
@@ -20,7 +20,8 @@ export {
20
20
  AiChatMessageLine,
21
21
  AiChatStrong,
22
22
  } from './AiChatMessages';
23
- export { AiChatMobileHeader, AiChatResizeHandle, AiChatShell } from './AiChatShell';
23
+ export { AiChatResizeHandle } from './AiChatResizeHandle';
24
+ export { AiChatMobileHeader, AiChatShell } from './AiChatShell';
24
25
  export { useAiChatChromeInsets, useAiChatShell } from './context';
25
26
  export type { AiChatChromeInsets, AiChatShellState } from './context';
26
27
  export type {
@@ -60,7 +60,6 @@ export interface AiChatMessages {
60
60
  closeNavigation: string;
61
61
  openPanel: (panel: string) => string;
62
62
  closePanel: (panel: string) => string;
63
- resize: string;
64
63
  };
65
64
  /** The shell's default panel name. */
66
65
  code: string;
@@ -105,7 +104,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
105
104
  closeNavigation: 'Close navigation',
106
105
  openPanel: (panel) => `Open ${String(panel).toLowerCase()}`,
107
106
  closePanel: (panel) => `Close ${String(panel).toLowerCase()}`,
108
- resize: 'Resize panels',
109
107
  },
110
108
  code: 'Code',
111
109
  },
@@ -145,7 +143,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
145
143
  closeNavigation: 'Cerrar navegación',
146
144
  openPanel: (panel) => `Abrir ${String(panel).toLowerCase()}`,
147
145
  closePanel: (panel) => `Cerrar ${String(panel).toLowerCase()}`,
148
- resize: 'Cambiar tamaño de los paneles',
149
146
  },
150
147
  code: 'Código',
151
148
  },
@@ -185,7 +182,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
185
182
  closeNavigation: 'Tanca la navegació',
186
183
  openPanel: (panel) => `Obre ${String(panel).toLowerCase()}`,
187
184
  closePanel: (panel) => `Tanca ${String(panel).toLowerCase()}`,
188
- resize: 'Canvia la mida dels taulers',
189
185
  },
190
186
  code: 'Codi',
191
187
  },
@@ -226,7 +222,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
226
222
  closeNavigation: 'Navigation schließen',
227
223
  openPanel: (panel) => `${panel} öffnen`,
228
224
  closePanel: (panel) => `${panel} schließen`,
229
- resize: 'Bereichsgröße ändern',
230
225
  },
231
226
  code: 'Code',
232
227
  },
@@ -272,7 +267,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
272
267
  closeNavigation: 'Fermer la navigation',
273
268
  openPanel: (panel) => `Ouvrir le panneau ${panel}`,
274
269
  closePanel: (panel) => `Fermer le panneau ${panel}`,
275
- resize: 'Redimensionner les panneaux',
276
270
  },
277
271
  code: 'Code',
278
272
  },
@@ -312,7 +306,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
312
306
  closeNavigation: 'Chiudi navigazione',
313
307
  openPanel: (panel) => `Apri ${String(panel).toLowerCase()}`,
314
308
  closePanel: (panel) => `Chiudi ${String(panel).toLowerCase()}`,
315
- resize: 'Ridimensiona pannelli',
316
309
  },
317
310
  code: 'Codice',
318
311
  },
@@ -352,7 +345,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
352
345
  closeNavigation: 'Fechar navegação',
353
346
  openPanel: (panel) => `Abrir ${String(panel).toLowerCase()}`,
354
347
  closePanel: (panel) => `Fechar ${String(panel).toLowerCase()}`,
355
- resize: 'Redimensionar painéis',
356
348
  },
357
349
  code: 'Código',
358
350
  },
@@ -399,7 +391,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
399
391
  closeNavigation: 'Закрыть навигацию',
400
392
  openPanel: (panel) => `Открыть панель «${panel}»`,
401
393
  closePanel: (panel) => `Закрыть панель «${panel}»`,
402
- resize: 'Изменить размер панелей',
403
394
  },
404
395
  code: 'Код',
405
396
  },
@@ -439,7 +430,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
439
430
  closeNavigation: 'Gezinmeyi kapat',
440
431
  openPanel: (panel) => `${panel} panelini aç`,
441
432
  closePanel: (panel) => `${panel} panelini kapat`,
442
- resize: 'Panelleri yeniden boyutlandır',
443
433
  },
444
434
  code: 'Kod',
445
435
  },
@@ -479,7 +469,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
479
469
  closeNavigation: 'ナビゲーションを閉じる',
480
470
  openPanel: (panel) => `${panel}を開く`,
481
471
  closePanel: (panel) => `${panel}を閉じる`,
482
- resize: 'パネルのサイズを変更',
483
472
  },
484
473
  code: 'コード',
485
474
  },
@@ -519,7 +508,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
519
508
  closeNavigation: '关闭导航',
520
509
  openPanel: (panel) => `打开${panel}`,
521
510
  closePanel: (panel) => `关闭${panel}`,
522
- resize: '调整面板大小',
523
511
  },
524
512
  code: '代码',
525
513
  },
@@ -575,7 +563,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
575
563
  closeNavigation: 'إغلاق التنقل',
576
564
  openPanel: (panel) => `فتح لوحة ${panel}`,
577
565
  closePanel: (panel) => `إغلاق لوحة ${panel}`,
578
- resize: 'تغيير حجم اللوحات',
579
566
  },
580
567
  code: 'الرمز البرمجي',
581
568
  },
@@ -615,7 +602,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
615
602
  closeNavigation: 'नेविगेशन बंद करें',
616
603
  openPanel: (panel) => `${panel} खोलें`,
617
604
  closePanel: (panel) => `${panel} बंद करें`,
618
- resize: 'पैनल का आकार बदलें',
619
605
  },
620
606
  code: 'कोड',
621
607
  },
@@ -655,7 +641,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
655
641
  closeNavigation: 'নেভিগেশন বন্ধ করুন',
656
642
  openPanel: (panel) => `${panel} খুলুন`,
657
643
  closePanel: (panel) => `${panel} বন্ধ করুন`,
658
- resize: 'প্যানেলের আকার বদলান',
659
644
  },
660
645
  code: 'কোড',
661
646
  },
@@ -695,7 +680,6 @@ export const AI_CHAT_MESSAGES: MessageCatalog<AiChatMessages> = {
695
680
  closeNavigation: 'Tutup navigasi',
696
681
  openPanel: (panel) => `Buka ${String(panel).toLowerCase()}`,
697
682
  closePanel: (panel) => `Tutup ${String(panel).toLowerCase()}`,
698
- resize: 'Ubah ukuran panel',
699
683
  },
700
684
  code: 'Kode',
701
685
  },
@@ -17,7 +17,7 @@
17
17
  import React, { memo, useCallback, useRef, useState } from 'react';
18
18
  import { ScrollView, View } from 'react-native';
19
19
 
20
- import { AiChatResizeHandle } from '../ai-chat/AiChatShell';
20
+ import { AiChatResizeHandle } from '../ai-chat/AiChatResizeHandle';
21
21
  import { Z_INDEX } from '../styles/z-index';
22
22
  import { useTheme } from '../theme/use-theme';
23
23
 
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Lightweight entry for a single person row (a suggestion, a search result)
3
+ * outside a contact list. Same `ContactRow` as `chat-people`, without linking
4
+ * the lists, the group form or the story viewer in Metro, which does not
5
+ * tree-shake barrel exports.
6
+ */
7
+ export { ContactRow } from './ContactRow';
8
+ export type { ContactRowProps, ContactRowTrailing, PersonAvatarSource, PersonSummary } from './types';
@@ -1,7 +1,7 @@
1
1
  import React, { memo, useCallback, useRef, useState } from 'react';
2
2
  import { useWindowDimensions, View, type LayoutChangeEvent } from 'react-native';
3
3
 
4
- import { AiChatResizeHandle } from '../ai-chat/AiChatShell';
4
+ import { AiChatResizeHandle } from '../ai-chat/AiChatResizeHandle';
5
5
  import { useControllableState } from '../hooks/use-controllable-state';
6
6
  import {
7
7
  CHAT_LIST_PANE_WIDTH,
@@ -48,6 +48,8 @@ export interface CommonMessages {
48
48
  send: string;
49
49
  clear: string;
50
50
  seeAll: string;
51
+ /** The divider between two resizable panes (`AiChatResizeHandle`). */
52
+ resizePanels: string;
51
53
  }
52
54
 
53
55
  export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
@@ -83,6 +85,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
83
85
  send: 'Send',
84
86
  clear: 'Clear',
85
87
  seeAll: 'See all',
88
+ resizePanels: 'Resize panels',
86
89
  },
87
90
  es: {
88
91
  close: 'Cerrar',
@@ -116,6 +119,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
116
119
  send: 'Enviar',
117
120
  clear: 'Borrar',
118
121
  seeAll: 'Ver todo',
122
+ resizePanels: 'Cambiar tamaño de los paneles',
119
123
  },
120
124
  ca: {
121
125
  close: 'Tanca',
@@ -149,6 +153,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
149
153
  send: 'Envia',
150
154
  clear: 'Esborra',
151
155
  seeAll: 'Mostra-ho tot',
156
+ resizePanels: 'Canvia la mida dels taulers',
152
157
  },
153
158
  de: {
154
159
  close: 'Schließen',
@@ -182,6 +187,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
182
187
  send: 'Senden',
183
188
  clear: 'Leeren',
184
189
  seeAll: 'Alle anzeigen',
190
+ resizePanels: 'Bereichsgröße ändern',
185
191
  },
186
192
  fr: {
187
193
  close: 'Fermer',
@@ -215,6 +221,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
215
221
  send: 'Envoyer',
216
222
  clear: 'Effacer',
217
223
  seeAll: 'Tout afficher',
224
+ resizePanels: 'Redimensionner les panneaux',
218
225
  },
219
226
  it: {
220
227
  close: 'Chiudi',
@@ -248,6 +255,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
248
255
  send: 'Invia',
249
256
  clear: 'Cancella',
250
257
  seeAll: 'Mostra tutto',
258
+ resizePanels: 'Ridimensiona pannelli',
251
259
  },
252
260
  pt: {
253
261
  close: 'Fechar',
@@ -281,6 +289,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
281
289
  send: 'Enviar',
282
290
  clear: 'Limpar',
283
291
  seeAll: 'Ver tudo',
292
+ resizePanels: 'Redimensionar painéis',
284
293
  },
285
294
  ru: {
286
295
  close: 'Закрыть',
@@ -314,6 +323,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
314
323
  send: 'Отправить',
315
324
  clear: 'Очистить',
316
325
  seeAll: 'Показать все',
326
+ resizePanels: 'Изменить размер панелей',
317
327
  },
318
328
  tr: {
319
329
  close: 'Kapat',
@@ -347,6 +357,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
347
357
  send: 'Gönder',
348
358
  clear: 'Temizle',
349
359
  seeAll: 'Tümünü gör',
360
+ resizePanels: 'Panelleri yeniden boyutlandır',
350
361
  },
351
362
  ja: {
352
363
  close: '閉じる',
@@ -380,6 +391,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
380
391
  send: '送信',
381
392
  clear: 'クリア',
382
393
  seeAll: 'すべて表示',
394
+ resizePanels: 'パネルのサイズを変更',
383
395
  },
384
396
  zh: {
385
397
  close: '关闭',
@@ -413,6 +425,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
413
425
  send: '发送',
414
426
  clear: '清除',
415
427
  seeAll: '查看全部',
428
+ resizePanels: '调整面板大小',
416
429
  },
417
430
  ar: {
418
431
  close: 'إغلاق',
@@ -446,6 +459,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
446
459
  send: 'إرسال',
447
460
  clear: 'مسح',
448
461
  seeAll: 'عرض الكل',
462
+ resizePanels: 'تغيير حجم اللوحات',
449
463
  },
450
464
  hi: {
451
465
  close: 'बंद करें',
@@ -479,6 +493,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
479
493
  send: 'भेजें',
480
494
  clear: 'साफ़ करें',
481
495
  seeAll: 'सभी देखें',
496
+ resizePanels: 'पैनल का आकार बदलें',
482
497
  },
483
498
  bn: {
484
499
  close: 'বন্ধ করুন',
@@ -512,6 +527,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
512
527
  send: 'পাঠান',
513
528
  clear: 'মুছে ফেলুন',
514
529
  seeAll: 'সব দেখুন',
530
+ resizePanels: 'প্যানেলের আকার বদলান',
515
531
  },
516
532
  id: {
517
533
  close: 'Tutup',
@@ -545,6 +561,7 @@ export const COMMON_MESSAGES: MessageCatalog<CommonMessages> = {
545
561
  send: 'Kirim',
546
562
  clear: 'Bersihkan',
547
563
  seeAll: 'Lihat semua',
564
+ resizePanels: 'Ubah ukuran panel',
548
565
  },
549
566
  };
550
567
 
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Lightweight entry for settings rows drawn outside the dialog — a preference
3
+ * card on a screen or in a sheet. Same components as `settings-modal`, without
4
+ * linking `SettingsModal`, the storage/tools/plan pages or the date field's
5
+ * calendar in Metro, which does not tree-shake barrel exports.
6
+ */
7
+ export {
8
+ SettingsCard,
9
+ SettingsRow,
10
+ SettingsSection,
11
+ SettingsSectionLabel,
12
+ SettingsValueField,
13
+ } from './SettingsRows';
14
+ export type {
15
+ SettingsCardProps,
16
+ SettingsIcon,
17
+ SettingsRowProps,
18
+ SettingsSectionLabelProps,
19
+ SettingsSectionProps,
20
+ SettingsValueFieldProps,
21
+ } from './types';