@mdbase-dev/ui 0.1.0-beta.125 → 0.1.0-beta.147

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 (77) hide show
  1. package/README.md +159 -0
  2. package/css/brand.css +10 -10
  3. package/css/collections.css +978 -0
  4. package/css/controls.css +220 -43
  5. package/css/feedback.css +20 -20
  6. package/css/fonts.css +2 -3
  7. package/css/palette.css +10 -10
  8. package/css/screens.css +58 -16
  9. package/css/tokens.css +43 -3
  10. package/dist/AppSwitcher.js +187 -33
  11. package/dist/Checkbox.d.ts +14 -0
  12. package/dist/Checkbox.js +32 -0
  13. package/dist/CommandPalette.d.ts +4 -2
  14. package/dist/CommandPalette.js +275 -103
  15. package/dist/Dialog.js +72 -25
  16. package/dist/Feedback.js +763 -229
  17. package/dist/FeedbackMarkup.d.ts +1 -1
  18. package/dist/FeedbackMarkup.js +326 -125
  19. package/dist/FeedbackVerification.js +115 -68
  20. package/dist/SaveNotice.js +71 -28
  21. package/dist/Select.js +183 -135
  22. package/dist/SelectList.js +59 -14
  23. package/dist/ThemeSelect.js +55 -4
  24. package/dist/apps.d.ts +1 -0
  25. package/dist/apps.js +50 -29
  26. package/dist/brand.js +251 -68
  27. package/dist/codemirror.js +116 -87
  28. package/dist/collections/CollectionGate.d.ts +52 -0
  29. package/dist/collections/CollectionGate.js +456 -0
  30. package/dist/collections/CollectionSaveWarning.d.ts +10 -0
  31. package/dist/collections/CollectionSaveWarning.js +28 -0
  32. package/dist/collections/CollectionSwitcher.d.ts +26 -0
  33. package/dist/collections/CollectionSwitcher.js +579 -0
  34. package/dist/collections/SetupReview.d.ts +9 -0
  35. package/dist/collections/SetupReview.js +175 -0
  36. package/dist/collections/copy.d.ts +100 -0
  37. package/dist/collections/copy.js +937 -0
  38. package/dist/collections/dialogs.d.ts +27 -0
  39. package/dist/collections/dialogs.js +169 -0
  40. package/dist/collections/model.d.ts +146 -0
  41. package/dist/collections/model.js +337 -0
  42. package/dist/collections/mount.d.ts +18 -0
  43. package/dist/collections/mount.js +56 -0
  44. package/dist/collections/parts.d.ts +86 -0
  45. package/dist/collections/parts.js +439 -0
  46. package/dist/collections/testing.d.ts +19 -0
  47. package/dist/collections/testing.js +39 -0
  48. package/dist/collections/use-collection-ui.d.ts +140 -0
  49. package/dist/collections/use-collection-ui.js +236 -0
  50. package/dist/collections.d.ts +19 -0
  51. package/dist/collections.js +13 -0
  52. package/dist/feedback-data.d.ts +13 -12
  53. package/dist/feedback-data.js +365 -168
  54. package/dist/flock.d.ts +63 -0
  55. package/dist/flock.js +140 -0
  56. package/dist/i18n.d.ts +6 -0
  57. package/dist/i18n.js +71 -0
  58. package/dist/locales/de/messages.json +1 -0
  59. package/dist/locales/en/messages.json +1 -0
  60. package/dist/locales/es/messages.json +1 -0
  61. package/dist/locales/fr/messages.json +1 -0
  62. package/dist/locales/it/messages.json +1 -0
  63. package/dist/locales/ja/messages.json +1 -0
  64. package/dist/locales/ko/messages.json +1 -0
  65. package/dist/locales/pt/messages.json +1 -0
  66. package/dist/locales/ru/messages.json +1 -0
  67. package/dist/locales/zh/messages.json +1 -0
  68. package/dist/mark-activity.js +82 -75
  69. package/dist/permission-selection.js +27 -17
  70. package/dist/popover.js +138 -130
  71. package/dist/screens.d.ts +20 -3
  72. package/dist/screens.js +275 -6
  73. package/dist/select-model.js +34 -28
  74. package/dist/text-diff.d.ts +1 -0
  75. package/dist/text-diff.js +106 -74
  76. package/dist/theme.js +34 -40
  77. package/package.json +53 -8
@@ -0,0 +1,937 @@
1
+ import { i18n } from "@lingui/core";
2
+ import "../i18n.js";
3
+ /**
4
+ * The shared screens' own words. Problem titles and messages are the SDK's
5
+ * (`describeError`); these are headings, labels and confirmations around them.
6
+ * `{app}` is the app's name and `{collection}` a collection's name.
7
+ */
8
+ export const defaultCollectionCopy = {
9
+ get startingHeading() {
10
+ return i18n._({
11
+ ...
12
+ /** i18n */
13
+ {
14
+ id: "qOfTOd",
15
+ message: "Starting {app}\u2026",
16
+ context: "Collection access interface"
17
+ },
18
+ values: {
19
+ app: "{app}"
20
+ }
21
+ });
22
+ },
23
+ get signedOutHeading() {
24
+ return i18n._({
25
+ ...
26
+ /** i18n */
27
+ {
28
+ id: "45a64b",
29
+ message: "Open your collections in {app}",
30
+ context: "Collection access interface"
31
+ },
32
+ values: {
33
+ app: "{app}"
34
+ }
35
+ });
36
+ },
37
+ get signedOutLead() {
38
+ return i18n._({
39
+ ...
40
+ /** i18n */
41
+ {
42
+ id: "fF_d4m",
43
+ message: "Sign in with your mdbase account. You'll choose which collection {app} can use.",
44
+ context: "Collection access interface"
45
+ },
46
+ values: {
47
+ app: "{app}"
48
+ }
49
+ });
50
+ },
51
+ get signedOutNotice() {
52
+ return i18n._({
53
+ ...
54
+ /** i18n */
55
+ {
56
+ id: "7INsea",
57
+ message: "You've signed out of {app} on this device.",
58
+ context: "Collection access interface"
59
+ },
60
+ values: {
61
+ app: "{app}"
62
+ }
63
+ });
64
+ },
65
+ get signedOutIncomplete() {
66
+ return i18n._(
67
+ /** i18n */
68
+ {
69
+ id: "J9remp",
70
+ message: "This device is still listed under your account until you remove it there.",
71
+ context: "Collection access interface"
72
+ });
73
+ },
74
+ get signIn() {
75
+ return i18n._(
76
+ /** i18n */
77
+ {
78
+ id: "2ulUVC",
79
+ message: "Sign in",
80
+ context: "Collection access interface"
81
+ });
82
+ },
83
+ get authorizingHeading() {
84
+ return i18n._(
85
+ /** i18n */
86
+ {
87
+ id: "FKgWWQ",
88
+ message: "Continue in the mdbase window",
89
+ context: "Collection access interface"
90
+ });
91
+ },
92
+ get authorizingSignIn() {
93
+ return i18n._(
94
+ /** i18n */
95
+ {
96
+ id: "sHfOYg",
97
+ message: "Sign in and choose a collection there.",
98
+ context: "Collection access interface"
99
+ });
100
+ },
101
+ get authorizingAdd() {
102
+ return i18n._(
103
+ /** i18n */
104
+ {
105
+ id: "AA2dPS",
106
+ message: "Choose or create a collection there.",
107
+ context: "Collection access interface"
108
+ });
109
+ },
110
+ get authorizingApprove() {
111
+ return i18n._({
112
+ ...
113
+ /** i18n */
114
+ {
115
+ id: "LSW6J8",
116
+ message: "Review access to {collection} there.",
117
+ context: "Collection access interface"
118
+ },
119
+ values: {
120
+ collection: "{collection}"
121
+ }
122
+ });
123
+ },
124
+ get openWindowAgain() {
125
+ return i18n._(
126
+ /** i18n */
127
+ {
128
+ id: "_qM4x2",
129
+ message: "Open the mdbase window again",
130
+ context: "Collection access interface"
131
+ });
132
+ },
133
+ get cancel() {
134
+ return i18n._(
135
+ /** i18n */
136
+ {
137
+ id: "1P-z0J",
138
+ message: "Cancel",
139
+ context: "Collection access interface"
140
+ });
141
+ },
142
+ get chooseHeading() {
143
+ return i18n._(
144
+ /** i18n */
145
+ {
146
+ id: "B5WwSc",
147
+ message: "Choose a collection",
148
+ context: "Collection access interface"
149
+ });
150
+ },
151
+ get yourCollections() {
152
+ return i18n._(
153
+ /** i18n */
154
+ {
155
+ id: "8wcYeu",
156
+ message: "Your collections",
157
+ context: "Collection access interface"
158
+ });
159
+ },
160
+ get emptyHeading() {
161
+ return i18n._({
162
+ ...
163
+ /** i18n */
164
+ {
165
+ id: "kQhT09",
166
+ message: "Give {app} a collection",
167
+ context: "Collection access interface"
168
+ },
169
+ values: {
170
+ app: "{app}"
171
+ }
172
+ });
173
+ },
174
+ get emptyLead() {
175
+ return i18n._({
176
+ ...
177
+ /** i18n */
178
+ {
179
+ id: "xGv9ZK",
180
+ message: "{app} doesn't have access to any collections yet. Choose one you have, or create a new one.",
181
+ context: "Collection access interface"
182
+ },
183
+ values: {
184
+ app: "{app}"
185
+ }
186
+ });
187
+ },
188
+ get noCollectionAdded() {
189
+ return i18n._(
190
+ /** i18n */
191
+ {
192
+ id: "semCbT",
193
+ message: "No collection was added.",
194
+ context: "Collection access interface"
195
+ });
196
+ },
197
+ get accessNotGiven() {
198
+ return i18n._(
199
+ /** i18n */
200
+ {
201
+ id: "vTX5bg",
202
+ message: "Access wasn't given.",
203
+ context: "Collection access interface"
204
+ });
205
+ },
206
+ get addCollection() {
207
+ return i18n._(
208
+ /** i18n */
209
+ {
210
+ id: "AiGGIB",
211
+ message: "Add a collection\u2026",
212
+ context: "Collection access interface"
213
+ });
214
+ },
215
+ get addPrivateCollection() {
216
+ return i18n._(
217
+ /** i18n */
218
+ {
219
+ id: "J2kszk",
220
+ message: "Add a Private collection",
221
+ context: "Collection access interface"
222
+ });
223
+ },
224
+ get addingCollection() {
225
+ return i18n._(
226
+ /** i18n */
227
+ {
228
+ id: "FZqxYo",
229
+ message: "Opening mdbase\u2026",
230
+ context: "Collection access interface"
231
+ });
232
+ },
233
+ get manageAccess() {
234
+ return i18n._(
235
+ /** i18n */
236
+ {
237
+ id: "-JeNKB",
238
+ message: "Manage access",
239
+ context: "Collection access interface"
240
+ });
241
+ },
242
+ get signedInAs() {
243
+ return i18n._({
244
+ ...
245
+ /** i18n */
246
+ {
247
+ id: "6rFO9K",
248
+ message: "Signed in as {account}",
249
+ context: "Collection access interface"
250
+ },
251
+ values: {
252
+ account: "{account}"
253
+ }
254
+ });
255
+ },
256
+ get signOut() {
257
+ return i18n._(
258
+ /** i18n */
259
+ {
260
+ id: "Y1f4bJ",
261
+ message: "Sign out",
262
+ context: "Collection access interface"
263
+ });
264
+ },
265
+ get signingOut() {
266
+ return i18n._(
267
+ /** i18n */
268
+ {
269
+ id: "PCi-MK",
270
+ message: "Signing out\u2026",
271
+ context: "Collection access interface"
272
+ });
273
+ },
274
+ get openingHeading() {
275
+ return i18n._({
276
+ ...
277
+ /** i18n */
278
+ {
279
+ id: "YdeEye",
280
+ message: "Opening {collection}",
281
+ context: "Collection access interface"
282
+ },
283
+ values: {
284
+ collection: "{collection}"
285
+ }
286
+ });
287
+ },
288
+ get openingHeadingUnnamed() {
289
+ return i18n._(
290
+ /** i18n */
291
+ {
292
+ id: "1AjSFS",
293
+ message: "Opening your collection",
294
+ context: "Collection access interface"
295
+ });
296
+ },
297
+ get openingSlow() {
298
+ return i18n._(
299
+ /** i18n */
300
+ {
301
+ id: "480CfR",
302
+ message: "This is taking longer than usual.",
303
+ context: "Collection access interface"
304
+ });
305
+ },
306
+ get openingJoining() {
307
+ return i18n._(
308
+ /** i18n */
309
+ {
310
+ id: "6Qrxry",
311
+ message: "Connecting your collection\u2026",
312
+ context: "Collection access interface"
313
+ });
314
+ },
315
+ get openingStore() {
316
+ return i18n._(
317
+ /** i18n */
318
+ {
319
+ id: "2apdee",
320
+ message: "Opening the local collection\u2026",
321
+ context: "Collection access interface"
322
+ });
323
+ },
324
+ get openingLog() {
325
+ return i18n._(
326
+ /** i18n */
327
+ {
328
+ id: "VSywLq",
329
+ message: "Connecting to sync\u2026",
330
+ context: "Collection access interface"
331
+ });
332
+ },
333
+ get openingSyncing() {
334
+ return i18n._(
335
+ /** i18n */
336
+ {
337
+ id: "IcLToz",
338
+ message: "Syncing your collection\u2026",
339
+ context: "Collection access interface"
340
+ });
341
+ },
342
+ get openingSnapshot() {
343
+ return i18n._(
344
+ /** i18n */
345
+ {
346
+ id: "MSpXh1",
347
+ message: "Loading the collection snapshot\u2026",
348
+ context: "Collection access interface"
349
+ });
350
+ },
351
+ get openingReplaying() {
352
+ return i18n._(
353
+ /** i18n */
354
+ {
355
+ id: "3Yf9Gk",
356
+ message: "Applying collection updates\u2026",
357
+ context: "Collection access interface"
358
+ });
359
+ },
360
+ get openingKey() {
361
+ return i18n._(
362
+ /** i18n */
363
+ {
364
+ id: "H-19b6",
365
+ message: "Waiting for the collection key\u2026",
366
+ context: "Collection access interface"
367
+ });
368
+ },
369
+ get openingRead() {
370
+ return i18n._(
371
+ /** i18n */
372
+ {
373
+ id: "rqijZ-",
374
+ message: "Checking the collection is readable\u2026",
375
+ context: "Collection access interface"
376
+ });
377
+ },
378
+ get openingSetup() {
379
+ return i18n._(
380
+ /** i18n */
381
+ {
382
+ id: "-HLPDJ",
383
+ message: "Checking collection setup\u2026",
384
+ context: "Collection access interface"
385
+ });
386
+ },
387
+ get chooseAnother() {
388
+ return i18n._(
389
+ /** i18n */
390
+ {
391
+ id: "5GwjfZ",
392
+ message: "Choose a different collection",
393
+ context: "Collection access interface"
394
+ });
395
+ },
396
+ get approvalHeading() {
397
+ return i18n._({
398
+ ...
399
+ /** i18n */
400
+ {
401
+ id: "YN0Hkf",
402
+ message: "Give {app} access to {collection}?",
403
+ context: "Collection access interface"
404
+ },
405
+ values: {
406
+ app: "{app}",
407
+ collection: "{collection}"
408
+ }
409
+ });
410
+ },
411
+ get approvalHeadingUnnamed() {
412
+ return i18n._({
413
+ ...
414
+ /** i18n */
415
+ {
416
+ id: "alKzE8",
417
+ message: "Give {app} access to this collection?",
418
+ context: "Collection access interface"
419
+ },
420
+ values: {
421
+ app: "{app}"
422
+ }
423
+ });
424
+ },
425
+ get approvalLead() {
426
+ return i18n._({
427
+ ...
428
+ /** i18n */
429
+ {
430
+ id: "Rg_OK9",
431
+ message: "{app} needs your approval in mdbase before it can open it.",
432
+ context: "Collection access interface"
433
+ },
434
+ values: {
435
+ app: "{app}"
436
+ }
437
+ });
438
+ },
439
+ get approvalDeclined() {
440
+ return i18n._(
441
+ /** i18n */
442
+ {
443
+ id: "V8XQf0",
444
+ message: "Access wasn't given. You can try again or choose a different collection.",
445
+ context: "Collection access interface"
446
+ });
447
+ },
448
+ get reviewAccess() {
449
+ return i18n._(
450
+ /** i18n */
451
+ {
452
+ id: "hhTpZ9",
453
+ message: "Review access",
454
+ context: "Collection access interface"
455
+ });
456
+ },
457
+ get setupHeading() {
458
+ return i18n._({
459
+ ...
460
+ /** i18n */
461
+ {
462
+ id: "t7D5Ym",
463
+ message: "Set up {collection} for {app}",
464
+ context: "Collection access interface"
465
+ },
466
+ values: {
467
+ collection: "{collection}",
468
+ app: "{app}"
469
+ }
470
+ });
471
+ },
472
+ get setupLead() {
473
+ return i18n._({
474
+ ...
475
+ /** i18n */
476
+ {
477
+ id: "BcddXE",
478
+ message: "{app} needs to add a few things to this collection before it can use it.",
479
+ context: "Collection access interface"
480
+ },
481
+ values: {
482
+ app: "{app}"
483
+ }
484
+ });
485
+ },
486
+ get setupChecking() {
487
+ return i18n._(
488
+ /** i18n */
489
+ {
490
+ id: "iXx1Vf",
491
+ message: "Checking what setup will change\u2026",
492
+ context: "Collection access interface"
493
+ });
494
+ },
495
+ get setupNothing() {
496
+ return i18n._(
497
+ /** i18n */
498
+ {
499
+ id: "LgBzMv",
500
+ message: "Nothing in your collection will change.",
501
+ context: "Collection access interface"
502
+ });
503
+ },
504
+ get setupApply() {
505
+ return i18n._(
506
+ /** i18n */
507
+ {
508
+ id: "vYhHlc",
509
+ message: "Set up",
510
+ context: "Collection access interface"
511
+ });
512
+ },
513
+ get setupApplying() {
514
+ return i18n._(
515
+ /** i18n */
516
+ {
517
+ id: "YZNdEb",
518
+ message: "Setting up\u2026",
519
+ context: "Collection access interface"
520
+ });
521
+ },
522
+ get setupContinue() {
523
+ return i18n._(
524
+ /** i18n */
525
+ {
526
+ id: "pM91Yr",
527
+ message: "Continue",
528
+ context: "Collection access interface"
529
+ });
530
+ },
531
+ get setupUseAppVersion() {
532
+ return i18n._({
533
+ ...
534
+ /** i18n */
535
+ {
536
+ id: "fnoot2",
537
+ message: "Use {app}'s version",
538
+ context: "Collection access interface"
539
+ },
540
+ values: {
541
+ app: "{app}"
542
+ }
543
+ });
544
+ },
545
+ get setupConflicts() {
546
+ return i18n._(
547
+ /** i18n */
548
+ {
549
+ id: "Vij4PB",
550
+ message: "Needs a decision",
551
+ context: "Collection access interface"
552
+ });
553
+ },
554
+ get setupChanges() {
555
+ return i18n._(
556
+ /** i18n */
557
+ {
558
+ id: "dirPmM",
559
+ message: "What changes",
560
+ context: "Collection access interface"
561
+ });
562
+ },
563
+ get tryAgain() {
564
+ return i18n._(
565
+ /** i18n */
566
+ {
567
+ id: "n_oBJu",
568
+ message: "Try again",
569
+ context: "Collection access interface"
570
+ });
571
+ },
572
+ get problemHeading() {
573
+ return i18n._({
574
+ ...
575
+ /** i18n */
576
+ {
577
+ id: "HfGSuv",
578
+ message: "Can't open {collection}",
579
+ context: "Collection access interface"
580
+ },
581
+ values: {
582
+ collection: "{collection}"
583
+ }
584
+ });
585
+ },
586
+ get problemHeadingUnnamed() {
587
+ return i18n._(
588
+ /** i18n */
589
+ {
590
+ id: "8FvMqa",
591
+ message: "Can't continue",
592
+ context: "Collection access interface"
593
+ });
594
+ },
595
+ get unavailableHeading() {
596
+ return i18n._({
597
+ ...
598
+ /** i18n */
599
+ {
600
+ id: "0MeszW",
601
+ message: "{app} can't open collections here",
602
+ context: "Collection access interface"
603
+ },
604
+ values: {
605
+ app: "{app}"
606
+ }
607
+ });
608
+ },
609
+ get closedHeading() {
610
+ return i18n._({
611
+ ...
612
+ /** i18n */
613
+ {
614
+ id: "elJq5_",
615
+ message: "{app} has stopped",
616
+ context: "Collection access interface"
617
+ },
618
+ values: {
619
+ app: "{app}"
620
+ }
621
+ });
622
+ },
623
+ get closedLead() {
624
+ return i18n._(
625
+ /** i18n */
626
+ {
627
+ id: "IMgxe8",
628
+ message: "Reload to continue.",
629
+ context: "Collection access interface"
630
+ });
631
+ },
632
+ get reload() {
633
+ return i18n._(
634
+ /** i18n */
635
+ {
636
+ id: "pqfLKM",
637
+ message: "Reload",
638
+ context: "Collection access interface"
639
+ });
640
+ },
641
+ get thisCollection() {
642
+ return i18n._(
643
+ /** i18n */
644
+ {
645
+ id: "y93Tfg",
646
+ message: "this collection",
647
+ context: "Collection access interface"
648
+ });
649
+ },
650
+ get roleOwner() {
651
+ return i18n._(
652
+ /** i18n */
653
+ {
654
+ id: "Ds8lGj",
655
+ message: "Owner",
656
+ context: "Collection access interface"
657
+ });
658
+ },
659
+ get roleEditor() {
660
+ return i18n._(
661
+ /** i18n */
662
+ {
663
+ id: "h3I7av",
664
+ message: "Can edit",
665
+ context: "Collection access interface"
666
+ });
667
+ },
668
+ get roleViewer() {
669
+ return i18n._(
670
+ /** i18n */
671
+ {
672
+ id: "1MMyGb",
673
+ message: "Can view",
674
+ context: "Collection access interface"
675
+ });
676
+ },
677
+ get rowOpening() {
678
+ return i18n._(
679
+ /** i18n */
680
+ {
681
+ id: "r4xubm",
682
+ message: "Opening\u2026",
683
+ context: "Collection access interface"
684
+ });
685
+ },
686
+ get openNow() {
687
+ return i18n._(
688
+ /** i18n */
689
+ {
690
+ id: "wdMwII",
691
+ message: "Open now",
692
+ context: "Collection access interface"
693
+ });
694
+ },
695
+ get idHint() {
696
+ return i18n._({
697
+ ...
698
+ /** i18n */
699
+ {
700
+ id: "c3AIR_",
701
+ message: "ID {id}",
702
+ context: "Collection access interface"
703
+ },
704
+ values: {
705
+ id: "{id}"
706
+ }
707
+ });
708
+ },
709
+ get privateCollection() {
710
+ return i18n._(
711
+ /** i18n */
712
+ {
713
+ id: "uby1H2",
714
+ message: "Private",
715
+ context: "Collection access interface"
716
+ });
717
+ },
718
+ get privateCollectionHint() {
719
+ return i18n._(
720
+ /** i18n */
721
+ {
722
+ id: "IrbugM",
723
+ message: "Kept on your computers, not stored by mdbase",
724
+ context: "Collection access interface"
725
+ });
726
+ },
727
+ get collectionLabel() {
728
+ return i18n._(
729
+ /** i18n */
730
+ {
731
+ id: "OFWAjq",
732
+ message: "Collection",
733
+ context: "Collection access interface"
734
+ });
735
+ },
736
+ get collectionsLabel() {
737
+ return i18n._(
738
+ /** i18n */
739
+ {
740
+ id: "52vV7a",
741
+ message: "Collections",
742
+ context: "Collection access interface"
743
+ });
744
+ },
745
+ get switchCollection() {
746
+ return i18n._({
747
+ ...
748
+ /** i18n */
749
+ {
750
+ id: "KZ2qhj",
751
+ message: "Switch collection, current: {collection}",
752
+ context: "Collection access interface"
753
+ },
754
+ values: {
755
+ collection: "{collection}"
756
+ }
757
+ });
758
+ },
759
+ get switchCollectionNone() {
760
+ return i18n._(
761
+ /** i18n */
762
+ {
763
+ id: "B5WwSc",
764
+ message: "Choose a collection",
765
+ context: "Collection access interface"
766
+ });
767
+ },
768
+ get findCollection() {
769
+ return i18n._(
770
+ /** i18n */
771
+ {
772
+ id: "oU3FgQ",
773
+ message: "Find a collection",
774
+ context: "Collection access interface"
775
+ });
776
+ },
777
+ get noMatches() {
778
+ return i18n._({
779
+ ...
780
+ /** i18n */
781
+ {
782
+ id: "bDIp4a",
783
+ message: "No collections match \u201C{query}\u201D.",
784
+ context: "Collection access interface"
785
+ },
786
+ values: {
787
+ query: "{query}"
788
+ }
789
+ });
790
+ },
791
+ get moreFor() {
792
+ return i18n._({
793
+ ...
794
+ /** i18n */
795
+ {
796
+ id: "NNvuBg",
797
+ message: "More for {collection}",
798
+ context: "Collection access interface"
799
+ },
800
+ values: {
801
+ collection: "{collection}"
802
+ }
803
+ });
804
+ },
805
+ get removeFromList() {
806
+ return i18n._(
807
+ /** i18n */
808
+ {
809
+ id: "Vt4P0G",
810
+ message: "Remove from this list",
811
+ context: "Collection access interface"
812
+ });
813
+ },
814
+ get deleteCollection() {
815
+ return i18n._(
816
+ /** i18n */
817
+ {
818
+ id: "UE2Ue9",
819
+ message: "Delete collection\u2026",
820
+ context: "Collection access interface"
821
+ });
822
+ },
823
+ get forgetTitle() {
824
+ return i18n._({
825
+ ...
826
+ /** i18n */
827
+ {
828
+ id: "A3CVZb",
829
+ message: "Remove {collection} from this list?",
830
+ context: "Collection access interface"
831
+ },
832
+ values: {
833
+ collection: "{collection}"
834
+ }
835
+ });
836
+ },
837
+ get forgetBody() {
838
+ return i18n._({
839
+ ...
840
+ /** i18n */
841
+ {
842
+ id: "nb4xuL",
843
+ message: "{app} stops showing it on this device. Nothing in the collection is deleted, and {app} keeps its access. To end access, use Manage access.",
844
+ context: "Collection access interface"
845
+ },
846
+ values: {
847
+ app: "{app}"
848
+ }
849
+ });
850
+ },
851
+ get forgetConfirm() {
852
+ return i18n._(
853
+ /** i18n */
854
+ {
855
+ id: "_Bhy0W",
856
+ message: "Remove",
857
+ context: "Collection access interface"
858
+ });
859
+ },
860
+ get deleteTitle() {
861
+ return i18n._({
862
+ ...
863
+ /** i18n */
864
+ {
865
+ id: "9fWts8",
866
+ message: "Delete {collection}?",
867
+ context: "Collection access interface"
868
+ },
869
+ values: {
870
+ collection: "{collection}"
871
+ }
872
+ });
873
+ },
874
+ get deleteBody() {
875
+ return i18n._(
876
+ /** i18n */
877
+ {
878
+ id: "0VE881",
879
+ message: "Everyone, including you, loses access to it on every device and app right away. This can't be undone.",
880
+ context: "Collection access interface"
881
+ });
882
+ },
883
+ get deleteTypeName() {
884
+ return i18n._({
885
+ ...
886
+ /** i18n */
887
+ {
888
+ id: "eeDGOj",
889
+ message: "Type {collection} to confirm",
890
+ context: "Collection access interface"
891
+ },
892
+ values: {
893
+ collection: "{collection}"
894
+ }
895
+ });
896
+ },
897
+ get deleteConfirm() {
898
+ return i18n._(
899
+ /** i18n */
900
+ {
901
+ id: "jRkyhM",
902
+ message: "Delete collection",
903
+ context: "Collection access interface"
904
+ });
905
+ },
906
+ get deleting() {
907
+ return i18n._(
908
+ /** i18n */
909
+ {
910
+ id: "MuHIRH",
911
+ message: "Deleting\u2026",
912
+ context: "Collection access interface"
913
+ });
914
+ },
915
+ get signOutAnyway() {
916
+ return i18n._(
917
+ /** i18n */
918
+ {
919
+ id: "lxkOy-",
920
+ message: "Sign out anyway",
921
+ context: "Collection access interface"
922
+ });
923
+ },
924
+ get close() {
925
+ return i18n._(
926
+ /** i18n */
927
+ {
928
+ id: "LTtPi0",
929
+ message: "Close",
930
+ context: "Collection access interface"
931
+ });
932
+ }
933
+ };
934
+ /** Replace `{name}` placeholders. Unknown placeholders stay as written. */
935
+ export function fill(template, values) {
936
+ return template.replace(/\{(\w+)\}/g, (match, key) => values[key] ?? match);
937
+ }