@unisim/sdk 0.228.0 → 0.230.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 (61) hide show
  1. package/README.md +180 -5
  2. package/dist/TuneSync.d.ts +2 -0
  3. package/dist/TuneSync.d.ts.map +1 -0
  4. package/dist/TuneSync.js +182 -0
  5. package/dist/TuneSync.js.map +1 -0
  6. package/dist/defaultView.d.ts +11 -0
  7. package/dist/defaultView.d.ts.map +1 -1
  8. package/dist/defaultView.js +69 -12
  9. package/dist/defaultView.js.map +1 -1
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +4 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/phone/SwipeRow.d.ts +62 -0
  15. package/dist/phone/SwipeRow.d.ts.map +1 -0
  16. package/dist/phone/SwipeRow.js +192 -0
  17. package/dist/phone/SwipeRow.js.map +1 -0
  18. package/dist/phone/TabReorder.d.ts +125 -0
  19. package/dist/phone/TabReorder.d.ts.map +1 -0
  20. package/dist/phone/TabReorder.js +245 -0
  21. package/dist/phone/TabReorder.js.map +1 -0
  22. package/dist/phone/hold.d.ts +87 -0
  23. package/dist/phone/hold.d.ts.map +1 -0
  24. package/dist/phone/hold.js +250 -0
  25. package/dist/phone/hold.js.map +1 -0
  26. package/dist/phone/index.d.ts +12 -0
  27. package/dist/phone/index.d.ts.map +1 -1
  28. package/dist/phone/index.js +12 -0
  29. package/dist/phone/index.js.map +1 -1
  30. package/dist/phone/listCopy.d.ts +28 -0
  31. package/dist/phone/listCopy.d.ts.map +1 -0
  32. package/dist/phone/listCopy.js +115 -0
  33. package/dist/phone/listCopy.js.map +1 -0
  34. package/dist/phone/listStyles.d.ts +4 -0
  35. package/dist/phone/listStyles.d.ts.map +1 -0
  36. package/dist/phone/listStyles.js +105 -0
  37. package/dist/phone/listStyles.js.map +1 -0
  38. package/dist/phone/swipeGeometry.d.ts +62 -0
  39. package/dist/phone/swipeGeometry.d.ts.map +1 -0
  40. package/dist/phone/swipeGeometry.js +96 -0
  41. package/dist/phone/swipeGeometry.js.map +1 -0
  42. package/dist/phone/tabOrder.d.ts +19 -0
  43. package/dist/phone/tabOrder.d.ts.map +1 -0
  44. package/dist/phone/tabOrder.js +46 -0
  45. package/dist/phone/tabOrder.js.map +1 -0
  46. package/dist/provider.d.ts +8 -0
  47. package/dist/provider.d.ts.map +1 -1
  48. package/dist/provider.js +10 -2
  49. package/dist/provider.js.map +1 -1
  50. package/dist/themeStore.d.ts +8 -0
  51. package/dist/themeStore.d.ts.map +1 -1
  52. package/dist/themeStore.js +21 -1
  53. package/dist/themeStore.js.map +1 -1
  54. package/dist/tuneSyncCore.d.ts +52 -0
  55. package/dist/tuneSyncCore.d.ts.map +1 -0
  56. package/dist/tuneSyncCore.js +162 -0
  57. package/dist/tuneSyncCore.js.map +1 -0
  58. package/dist/userPrefs.d.ts.map +1 -1
  59. package/dist/userPrefs.js +28 -15
  60. package/dist/userPrefs.js.map +1 -1
  61. package/package.json +3 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/phone/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC9D,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACzG,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC9F,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,GAChB,MA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AAA;AACnG,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACvH,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC7F,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA"}
@@ -12,4 +12,16 @@ export { useEdgeSwipeBack, EDGE_SWIPE_START_PX, EDGE_SWIPE_PAST } from './edgeSw
12
12
  export { useSheetPull, useSheetBodyPull, usePagePullToType, firstTypeBox, PHONE_LAYER_ATTR, PULL_EXEMPT, TYPE_BOX, SHEET_CLOSE_SHARE, SHEET_CLOSE_MAX_PX, SHEET_TYPE_PX, PAGE_TYPE_PX, } from './gestures.js';
13
13
  export { useScrollHint, SCROLL_HINT_FADE_PX } from './scrollHint.js';
14
14
  export { injectPhoneStyles, PHONE_STYLE_ID } from './styles.js';
15
+ // The list gestures (0.230.0): a deletable row swipes, a hold selects, tabs
16
+ // reorder. Moved here from Universal BlackBook (SwipeActions.tsx, SwipeRow.tsx,
17
+ // lib/swipe.ts, lib/tabs.ts, NativeApp.tsx's tab bar, TabOrderPreference.tsx),
18
+ // with Universal PDF's and Jukebox's copies. README ▸ "Phone lists: swipe,
19
+ // hold to select, reorder tabs".
20
+ export { SwipeRow, SwipeGroup } from './SwipeRow.js';
21
+ export { SWIPE_ACTION_WIDTH, SWIPE_AXIS_SLOP, SWIPE_FIRE_DISTANCE, SWIPE_FIRE_TRAVEL, decideSwipeAxis, swipeDragOffset, swipeSettles, swipeRestingOffset, swipeFiresOnRelease, swipeDragOffsetFromOpen, } from './swipeGeometry.js';
22
+ export { useHold, useLeaveSelection, useHoldSelect, useUndo, swallowReleaseClick, HOLD_MS, HOLD_SLOP_PX } from './hold.js';
23
+ export { useTabReorder, TabBin, useTabOrderList, TabOrderList, TAB_HOLD_MS } from './TabReorder.js';
24
+ export { moveTab, normaliseTabOrder, isDefaultTabOrder, withShownOrder } from './tabOrder.js';
25
+ export { phoneListCopy, PHONE_LIST_COPY } from './listCopy.js';
26
+ export { injectPhoneListStyles, PHONE_LIST_STYLE_ID } from './listStyles.js';
15
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/phone/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0EAA0E;AAC1E,8EAA8E;AAC9E,4EAA4E;AAC5E,+EAA+E;AAC/E,aAAa;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAE9D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEzG,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,GAChB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACvF,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,YAAY,GACb,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAEpE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/phone/index.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AY,EAAE,MAAM,WAAW,CAAA;AAE1H,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAEnG,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC7F,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,28 @@
1
+ export interface PhoneListCopy {
2
+ /** The bin while a tab is held: "Drop here to hide". */
3
+ binHint: string;
4
+ /** The bin with the finger over it: "Let go to hide". */
5
+ binDrop: string;
6
+ /** The Undo toast after a tab is binned. `{tab}` and `{tune}` are filled in. */
7
+ binned: string;
8
+ /** The toast's button. */
9
+ undo: string;
10
+ /** Tune this app ▸ the list's heading. */
11
+ tabOrder: string;
12
+ /** Under the heading. `{tune}` is filled in. */
13
+ tabOrderNote: string;
14
+ /** After a hidden tab's name. */
15
+ hidden: string;
16
+ /** A row's up button, for a screen reader. `{name}` is filled in. */
17
+ moveEarlier: string;
18
+ /** A row's down button. */
19
+ moveLater: string;
20
+ }
21
+ /** Every language's copy, by SDK language code (`en` is also `en-gb`). */
22
+ export declare const PHONE_LIST_COPY: Readonly<Record<string, PhoneListCopy>>;
23
+ /**
24
+ * The list gestures' words in `lang` (English when the SDK has no such
25
+ * language), with `{tune}` already filled in.
26
+ */
27
+ export declare function phoneListCopy(lang: string | null | undefined): PhoneListCopy;
28
+ //# sourceMappingURL=listCopy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listCopy.d.ts","sourceRoot":"","sources":["../../src/phone/listCopy.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,aAAa;IAC5B,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAA;IACf,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAA;IACf,gFAAgF;IAChF,MAAM,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAA;IAChB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAA;IACpB,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAA;IACnB,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;CAClB;AAkGD,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAEnE,CAAA;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,aAAa,CAI5E"}
@@ -0,0 +1,115 @@
1
+ // ──────────────────────────────────────────────────────────────────────────────
2
+ // The words the phone kit's list gestures print themselves (0.230.0): the bin a
3
+ // held tab is dropped on, its Undo toast's sentence, and Tune this app's Tab
4
+ // order list. The tabs' own names are the app's.
5
+ //
6
+ // Register follows the SDK's dictionaries: French `vous`, German `Sie`,
7
+ // Spanish and Italian `tú` / `tu`, European Portuguese impersonal, Brazilian
8
+ // `você`, Turkish formal. `{tune}` is the SDK's own name for Tune this app in
9
+ // that language (i18n.ts → `prefs.app_preferences`), so the two never drift;
10
+ // `{tab}` / `{name}` is the app's name for a tab.
11
+ // Wording from Universal BlackBook's, where the bin and the list were built.
12
+ // ──────────────────────────────────────────────────────────────────────────────
13
+ import { pickTranslation, t } from '../i18n.js';
14
+ const en = {
15
+ binHint: 'Drop here to hide',
16
+ binDrop: 'Let go to hide',
17
+ binned: '{tab} tab hidden. Bring it back in {tune}.',
18
+ undo: 'Undo',
19
+ tabOrder: 'Tab order',
20
+ tabOrderNote: 'Drag the grips or use the arrows. On the tab bar, hold a tab and drag it. {tune} stays last.',
21
+ hidden: 'hidden',
22
+ moveEarlier: 'Move {name} earlier',
23
+ moveLater: 'Move {name} later',
24
+ };
25
+ const fr = {
26
+ binHint: 'Déposez ici pour masquer',
27
+ binDrop: 'Relâchez pour masquer',
28
+ binned: 'Onglet {tab} masqué. Réactivez-le dans « {tune} ».',
29
+ undo: 'Annuler',
30
+ tabOrder: 'Ordre des onglets',
31
+ tabOrderNote: 'Faites glisser les poignées ou utilisez les flèches. Dans la barre d’onglets, maintenez un onglet puis faites-le glisser. « {tune} » reste en dernier.',
32
+ hidden: 'masqué',
33
+ moveEarlier: 'Avancer {name}',
34
+ moveLater: 'Reculer {name}',
35
+ };
36
+ const es = {
37
+ binHint: 'Suelta aquí para ocultar',
38
+ binDrop: 'Suelta para ocultar',
39
+ binned: 'Pestaña {tab} oculta. Vuelve a mostrarla en «{tune}».',
40
+ undo: 'Deshacer',
41
+ tabOrder: 'Orden de las pestañas',
42
+ tabOrderNote: 'Arrastra las asas o usa las flechas. En la barra de pestañas, mantén pulsada una pestaña y arrástrala. «{tune}» queda al final.',
43
+ hidden: 'oculta',
44
+ moveEarlier: 'Mover {name} antes',
45
+ moveLater: 'Mover {name} después',
46
+ };
47
+ const it = {
48
+ binHint: 'Trascina qui per nascondere',
49
+ binDrop: 'Rilascia per nascondere',
50
+ binned: 'Scheda {tab} nascosta. Riattivala in «{tune}».',
51
+ undo: 'Annulla',
52
+ tabOrder: 'Ordine delle schede',
53
+ tabOrderNote: 'Trascina le maniglie o usa le frecce. Nella barra delle schede, tieni premuta una scheda e trascinala. «{tune}» resta in fondo.',
54
+ hidden: 'nascosta',
55
+ moveEarlier: 'Sposta {name} prima',
56
+ moveLater: 'Sposta {name} dopo',
57
+ };
58
+ const de = {
59
+ binHint: 'Hier ablegen zum Ausblenden',
60
+ binDrop: 'Loslassen zum Ausblenden',
61
+ binned: 'Tab {tab} ausgeblendet. Unter „{tune}“ wieder einblenden.',
62
+ undo: 'Rückgängig',
63
+ tabOrder: 'Reihenfolge der Tabs',
64
+ tabOrderNote: 'Ziehen Sie an den Griffen oder nutzen Sie die Pfeile. In der Tab-Leiste einen Tab gedrückt halten und ziehen. „{tune}“ bleibt am Ende.',
65
+ hidden: 'ausgeblendet',
66
+ moveEarlier: '{name} nach vorn',
67
+ moveLater: '{name} nach hinten',
68
+ };
69
+ const ptPT = {
70
+ binHint: 'Largue aqui para ocultar',
71
+ binDrop: 'Largue para ocultar',
72
+ binned: 'Separador {tab} oculto. Pode voltar a mostrá-lo em «{tune}».',
73
+ undo: 'Anular',
74
+ tabOrder: 'Ordem dos separadores',
75
+ tabOrderNote: 'Arraste pelas pegas ou use as setas. Na barra de separadores, mantenha um separador premido e arraste-o. «{tune}» fica em último.',
76
+ hidden: 'oculto',
77
+ moveEarlier: 'Mover {name} para antes',
78
+ moveLater: 'Mover {name} para depois',
79
+ };
80
+ const ptBR = {
81
+ binHint: 'Solte aqui para ocultar',
82
+ binDrop: 'Solte para ocultar',
83
+ binned: 'Aba {tab} oculta. Mostre de novo em “{tune}”.',
84
+ undo: 'Desfazer',
85
+ tabOrder: 'Ordem das abas',
86
+ tabOrderNote: 'Arraste pelas alças ou use as setas. Na barra de abas, segure uma aba e arraste. “{tune}” fica por último.',
87
+ hidden: 'oculta',
88
+ moveEarlier: 'Mover {name} para antes',
89
+ moveLater: 'Mover {name} para depois',
90
+ };
91
+ const tr = {
92
+ binHint: 'Gizlemek için buraya bırakın',
93
+ binDrop: 'Gizlemek için bırakın',
94
+ binned: '{tab} sekmesi gizlendi. “{tune}” bölümünden geri getirebilirsiniz.',
95
+ undo: 'Geri al',
96
+ tabOrder: 'Sekme sırası',
97
+ tabOrderNote: 'Tutamaçları sürükleyin veya okları kullanın. Sekme çubuğunda bir sekmeyi basılı tutup sürükleyin. “{tune}” en sonda kalır.',
98
+ hidden: 'gizli',
99
+ moveEarlier: '{name} öne al',
100
+ moveLater: '{name} geriye al',
101
+ };
102
+ /** Every language's copy, by SDK language code (`en` is also `en-gb`). */
103
+ export const PHONE_LIST_COPY = {
104
+ en, 'en-gb': en, fr, es, it, de, 'pt-PT': ptPT, 'pt-BR': ptBR, tr,
105
+ };
106
+ /**
107
+ * The list gestures' words in `lang` (English when the SDK has no such
108
+ * language), with `{tune}` already filled in.
109
+ */
110
+ export function phoneListCopy(lang) {
111
+ const c = pickTranslation(PHONE_LIST_COPY, lang) ?? en;
112
+ const tune = t(lang, 'prefs.app_preferences');
113
+ return { ...c, binned: c.binned.split('{tune}').join(tune), tabOrderNote: c.tabOrderNote.split('{tune}').join(tune) };
114
+ }
115
+ //# sourceMappingURL=listCopy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listCopy.js","sourceRoot":"","sources":["../../src/phone/listCopy.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,gFAAgF;AAChF,6EAA6E;AAC7E,iDAAiD;AACjD,EAAE;AACF,wEAAwE;AACxE,6EAA6E;AAC7E,8EAA8E;AAC9E,6EAA6E;AAC7E,kDAAkD;AAClD,6EAA6E;AAC7E,iFAAiF;AAEjF,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAuB/C,MAAM,EAAE,GAAkB;IACxB,OAAO,EAAE,mBAAmB;IAC5B,OAAO,EAAE,gBAAgB;IACzB,MAAM,EAAE,4CAA4C;IACpD,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,8FAA8F;IAC5G,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,qBAAqB;IAClC,SAAS,EAAE,mBAAmB;CAC/B,CAAA;AAED,MAAM,EAAE,GAAkB;IACxB,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,uBAAuB;IAChC,MAAM,EAAE,oDAAoD;IAC5D,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,mBAAmB;IAC7B,YAAY,EAAE,wJAAwJ;IACtK,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,gBAAgB;IAC7B,SAAS,EAAE,gBAAgB;CAC5B,CAAA;AAED,M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,EAAE,gBAAgB;IAC1B,YAAY,EAAE,4GAA4G;IAC1H,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,yBAAyB;IACtC,SAAS,EAAE,0BAA0B;CACtC,CAAA;AAED,MAAM,EAAE,GAAkB;IACxB,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,uBAAuB;IAChC,MAAM,EAAE,oEAAoE;IAC5E,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,cAAc;IACxB,YAAY,EAAE,4HAA4H;IAC1I,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,eAAe;IAC5B,SAAS,EAAE,kBAAkB;CAC9B,CAAA;AAED,0EAA0E;AAC1E,MAAM,CAAC,MAAM,eAAe,GAA4C;IACtE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAClE,CAAA;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,IAA+B;IAC3D,MAAM,CAAC,GAAG,eAAe,CAAC,eAAe,EAAE,IAAI,CAAC,IAAI,EAAE,CAAA;IACtD,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAA;IAC7C,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAA;AACvH,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const PHONE_LIST_STYLE_ID = "unisim-phone-lists";
2
+ /** Put the list gestures' stylesheet in the document once. A no-op on the server. */
3
+ export declare function injectPhoneListStyles(): void;
4
+ //# sourceMappingURL=listStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listStyles.d.ts","sourceRoot":"","sources":["../../src/phone/listStyles.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,mBAAmB,uBAAuB,CAAA;AA4EvD,qFAAqF;AACrF,wBAAgB,qBAAqB,IAAI,IAAI,CAO5C"}
@@ -0,0 +1,105 @@
1
+ 'use client';
2
+ // The stylesheet for the phone kit's list gestures (0.230.0): <SwipeRow>'s
3
+ // revealed actions, the bin a held tab is dropped on (<TabBin>), and Tune this
4
+ // app's <TabOrderList>. Injected the first time one renders.
5
+ //
6
+ // ── Cascade ──────────────────────────────────────────────────────────────────
7
+ // As the rest of the kit (styles.ts ▸ "Cascade"): a layer nested in Tailwind
8
+ // 4's `components` layer, every rule `:where()`, so an app's utilities and its
9
+ // own plain CSS win without `!important` — a row's `className="h-full
10
+ // rounded-xl"`, an action's `className="bg-rose-600"`, a bin's own position.
11
+ //
12
+ // ── Tokens ───────────────────────────────────────────────────────────────────
13
+ // Light by default; dark under `html.dark`, `[data-theme="dark"]` or
14
+ // `[data-u-ground="dark"]` on an ancestor (the SDK theme store's switches).
15
+ //
16
+ // --uls-danger a deleting action, the bin under a finger (white 4.83:1)
17
+ // --uls-accent any other action (white on it 5.18:1)
18
+ // --uls-neutral a quiet action
19
+ // --uls-text, --uls-muted, --uls-line, --uls-surface, --uls-lift
20
+ //
21
+ // Motion: the row slides back into place; none of it under reduced motion.
22
+ export const PHONE_LIST_STYLE_ID = 'unisim-phone-lists';
23
+ const RULES = `
24
+ :where(.unisim-swipe, .unisim-tab-bin, .unisim-tab-order, .unisim-swipe-focus){
25
+ --uls-danger:#dc2626;--uls-accent:#c2410c;--uls-neutral:#475569;
26
+ --uls-text:#0f172a;--uls-muted:#64748b;--uls-line:#e2e8f0;--uls-surface:#ffffff;--uls-lift:#fff7ed;
27
+ }
28
+ :where(html.dark, [data-theme="dark"], [data-u-ground="dark"]) :where(.unisim-swipe, .unisim-tab-bin, .unisim-tab-order, .unisim-swipe-focus){
29
+ --uls-text:#e6eaf2;--uls-muted:#9fb0c6;--uls-line:#334155;--uls-surface:#121a2a;--uls-lift:rgba(249,115,22,0.12);
30
+ }
31
+ :where(.unisim-swipe){position:relative;overflow:hidden;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
32
+ :where(.unisim-swipe-front){position:relative;height:100%;touch-action:pan-y;transition:transform 200ms ease-out}
33
+ :where(.unisim-swipe[data-swipe-dragging] > .unisim-swipe-front){transition:none}
34
+ :where(.unisim-swipe-action){position:absolute;top:0;bottom:0;display:flex}
35
+ :where(.unisim-swipe-action[data-side="left"]){left:0}
36
+ :where(.unisim-swipe-action[data-side="right"]){right:0}
37
+ :where(.unisim-swipe-action > button){
38
+ display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:100%;
39
+ padding:0 8px;border:0;margin:0;font:inherit;font-size:12px;font-weight:600;line-height:16px;cursor:pointer;
40
+ color:#fff;background:var(--uls-accent);
41
+ }
42
+ :where(.unisim-swipe-action > button[data-tone="danger"]){background:var(--uls-danger)}
43
+ :where(.unisim-swipe-action > button[data-tone="neutral"]){background:var(--uls-neutral)}
44
+ :where(.unisim-swipe-action > button > svg){width:20px;height:20px}
45
+ :where(.unisim-swipe-action > button:focus-visible){outline:2px solid #fff;outline-offset:-4px}
46
+ :where(.unisim-swipe-focus){
47
+ position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
48
+ }
49
+ :where(.unisim-swipe-focus:focus){
50
+ position:absolute;right:6px;bottom:6px;z-index:10;width:auto;height:auto;margin:0;padding:4px 10px;clip:auto;overflow:visible;
51
+ border-radius:8px;background:var(--uls-surface);color:var(--uls-text);font:inherit;font-size:12px;font-weight:600;
52
+ box-shadow:0 0 0 2px var(--uls-accent);
53
+ }
54
+ :where([data-reorder-lifted]){
55
+ transform:translateY(-6px) scale(1.08);border-radius:12px;box-shadow:0 6px 16px rgba(0,0,0,0.18);transition:transform 120ms ease-out;
56
+ }
57
+ :where(.unisim-tab-bin){
58
+ position:fixed;left:0;right:0;bottom:calc(var(--u-bar-bottom,0px) + env(safe-area-inset-bottom,0px) + 96px);z-index:1300;
59
+ width:max-content;max-width:calc(100% - 32px);margin-inline:auto;display:flex;align-items:center;gap:8px;
60
+ padding:10px 16px;border:2px dashed var(--uls-line);border-radius:999px;background:var(--uls-surface);color:var(--uls-text);
61
+ font-size:14px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,0.18);pointer-events:none;
62
+ animation:uls-rise 160ms ease-out;transition:transform 120ms ease-out,background-color 120ms ease-out;
63
+ }
64
+ :where(.unisim-tab-bin > svg){width:20px;height:20px;flex:none}
65
+ :where(.unisim-tab-bin[data-over]){transform:scale(1.12);border-style:solid;border-color:var(--uls-danger);background:var(--uls-danger);color:#fff}
66
+ :where(.unisim-tab-order){margin:0;padding:0;border:0;color:var(--uls-text)}
67
+ :where(.unisim-tab-order-title){margin:0;font-size:14px;font-weight:600}
68
+ :where(.unisim-tab-order-note){margin:2px 0 8px;font-size:12px;line-height:1.45;color:var(--uls-muted)}
69
+ :where(.unisim-tab-order ol){list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
70
+ :where(.unisim-tab-order li){
71
+ display:flex;align-items:center;gap:8px;min-height:44px;padding:0 8px;border:1px solid var(--uls-line);border-radius:10px;background:var(--uls-surface);
72
+ }
73
+ :where(.unisim-tab-order li[data-held]){border-color:var(--uls-accent);background:var(--uls-lift)}
74
+ :where(.unisim-tab-order-grip){
75
+ display:flex;align-items:center;justify-content:center;flex:none;width:28px;height:36px;border-radius:6px;color:var(--uls-muted);
76
+ cursor:grab;touch-action:none;
77
+ }
78
+ :where(.unisim-tab-order-name){flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
79
+ :where(.unisim-tab-order-hidden){margin-left:6px;font-size:12px;color:var(--uls-muted)}
80
+ :where(.unisim-tab-order-move){
81
+ flex:none;width:36px;height:36px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:6px;
82
+ background:none;color:var(--uls-muted);cursor:pointer;
83
+ }
84
+ :where(.unisim-tab-order-move:disabled){opacity:0.3;cursor:default}
85
+ :where(.unisim-tab-order-move > svg, .unisim-tab-order-grip > svg){width:16px;height:16px}
86
+ @keyframes uls-rise{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
87
+ @media (hover:hover) and (pointer:fine){
88
+ :where(.unisim-swipe-action){display:none}
89
+ }
90
+ @media (prefers-reduced-motion: reduce){
91
+ :where(.unisim-swipe-front, [data-reorder-lifted], .unisim-tab-bin){transition:none;animation:none}
92
+ }
93
+ `;
94
+ const CSS = `@layer theme, base, components, utilities;\n@layer components.unisim-phone-lists{${RULES}}\n.unisim-tab-order-move:focus-visible{outline:2px solid #e05504;outline-offset:1px}\n`;
95
+ /** Put the list gestures' stylesheet in the document once. A no-op on the server. */
96
+ export function injectPhoneListStyles() {
97
+ if (typeof document === 'undefined' || document.getElementById(PHONE_LIST_STYLE_ID))
98
+ return;
99
+ const style = document.createElement('style');
100
+ style.id = PHONE_LIST_STYLE_ID;
101
+ style.textContent = CSS;
102
+ // First in <head>, so an app's own stylesheet comes after it.
103
+ document.head.insertBefore(style, document.head.firstChild);
104
+ }
105
+ //# sourceMappingURL=listStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listStyles.js","sourceRoot":"","sources":["../../src/phone/listStyles.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,2EAA2E;AAC3E,+EAA+E;AAC/E,6DAA6D;AAC7D,EAAE;AACF,gFAAgF;AAChF,6EAA6E;AAC7E,+EAA+E;AAC/E,sEAAsE;AACtE,6EAA6E;AAC7E,EAAE;AACF,gFAAgF;AAChF,qEAAqE;AACrE,4EAA4E;AAC5E,EAAE;AACF,8EAA8E;AAC9E,2DAA2D;AAC3D,oCAAoC;AACpC,mEAAmE;AACnE,EAAE;AACF,2EAA2E;AAE3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CAAA;AAEvD,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEb,CAAA;AAED,MAAM,GAAG,GAAG,oFAAoF,KAAK,yFAAyF,CAAA;AAE9L,qFAAqF;AACrF,MAAM,UAAU,qBAAqB;IACnC,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC;QAAE,OAAM;IAC3F,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;IAC7C,KAAK,CAAC,EAAE,GAAG,mBAAmB,CAAA;IAC9B,KAAK,CAAC,WAAW,GAAG,GAAG,CAAA;IACvB,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AAC7D,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * How much of the row an action takes when it is open, in px. Comfortably over
3
+ * the 44px touch target, because one of these deletes something.
4
+ */
5
+ export declare const SWIPE_ACTION_WIDTH = 96;
6
+ /**
7
+ * How far a finger travels before the gesture picks an axis. Below it nothing
8
+ * moves, so a tap (never perfectly still) does not nudge the row and a scroll
9
+ * that starts with a little sideways drift stays a scroll.
10
+ */
11
+ export declare const SWIPE_AXIS_SLOP = 8;
12
+ /**
13
+ * How much further a finger must travel, past an action already showing, to
14
+ * run it (BlackBook, owner ask 2026-11-11: "if you swipe again in that
15
+ * direction then do that action e.g. delete"). Only a SECOND swipe on a row
16
+ * already open on that side: a single long flick from closed only reveals.
17
+ */
18
+ export declare const SWIPE_FIRE_DISTANCE = 56;
19
+ /** How far past its open position the row may be dragged to show it will fire. */
20
+ export declare const SWIPE_FIRE_TRAVEL = 40;
21
+ export type SwipeAxis = 'none' | 'x' | 'y';
22
+ /** Which edge an action sits on, and so which one is showing. */
23
+ export type SwipeSide = 'left' | 'right';
24
+ /**
25
+ * How far the row may travel each way. A side with no action is 0: an absent
26
+ * action is a wall, not a gap that slides open onto nothing.
27
+ */
28
+ export interface SwipeWidths {
29
+ left: number;
30
+ right: number;
31
+ }
32
+ /**
33
+ * Which way is this gesture going? Decided once per touch, at the first
34
+ * movement past the slop, and never revisited.
35
+ */
36
+ export declare function decideSwipeAxis(dx: number, dy: number, slop?: number): SwipeAxis;
37
+ /**
38
+ * Where the row sits mid-drag: `base` plus the finger, clamped to the track.
39
+ * Positive: moved right, the LEFT action showing.
40
+ */
41
+ export declare function swipeDragOffset(base: number, dx: number, widths?: SwipeWidths): number;
42
+ /**
43
+ * On release: which action is left showing, if any? Half the action's own
44
+ * width, so the same gesture opens and closes with no dead zone.
45
+ */
46
+ export declare function swipeSettles(offset: number, widths?: SwipeWidths): SwipeSide | null;
47
+ /** Where a row rests for a given open side. The inverse of {@link swipeSettles}. */
48
+ export declare function swipeRestingOffset(open: SwipeSide | null, widths?: SwipeWidths): number;
49
+ /**
50
+ * Does this release run the action showing on `open`'s side? Only when the
51
+ * touch began with that side already open and the finger carried on the same
52
+ * way by {@link SWIPE_FIRE_DISTANCE}.
53
+ */
54
+ export declare function swipeFiresOnRelease(open: SwipeSide | null, dx: number, widths?: SwipeWidths): SwipeSide | null;
55
+ /**
56
+ * Where the row sits mid-drag when it started open: as
57
+ * {@link swipeDragOffset}, but it may carry on past the open edge by up to
58
+ * {@link SWIPE_FIRE_TRAVEL} (at half the finger's speed), so the second swipe
59
+ * visibly goes somewhere.
60
+ */
61
+ export declare function swipeDragOffsetFromOpen(open: SwipeSide | null, base: number, dx: number, widths?: SwipeWidths): number;
62
+ //# sourceMappingURL=swipeGeometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipeGeometry.d.ts","sourceRoot":"","sources":["../../src/phone/swipeGeometry.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,eAAO,MAAM,kBAAk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// The numbers behind swiping a row sideways (<SwipeRow>, BRANDING.md ▸ "A
2
+ // deletable row swipes: delete one way, a second action the other").
3
+ //
4
+ // Moved here in 0.230.0 from Universal BlackBook's `src/lib/swipe.ts`, the
5
+ // reference the rule names; Universal PDF's `SwipeRow` and Workplace Assess's
6
+ // `native/swipe.jsx` carried the same reveal-and-settle with the numbers
7
+ // inlined. Kept apart from the component because it is the part that can be
8
+ // wrong in a way nobody notices: the numbers decide whether a gesture people
9
+ // make with their thumb, without looking, does what they meant.
10
+ //
11
+ // ⚠️ Two directions, and they are named by the EDGE the button sits on, never
12
+ // by the way the finger moves. Swiping LEFT moves the row left and uncovers
13
+ // the button on the RIGHT edge; swiping RIGHT uncovers the LEFT.
14
+ /**
15
+ * How much of the row an action takes when it is open, in px. Comfortably over
16
+ * the 44px touch target, because one of these deletes something.
17
+ */
18
+ export const SWIPE_ACTION_WIDTH = 96;
19
+ /**
20
+ * How far a finger travels before the gesture picks an axis. Below it nothing
21
+ * moves, so a tap (never perfectly still) does not nudge the row and a scroll
22
+ * that starts with a little sideways drift stays a scroll.
23
+ */
24
+ export const SWIPE_AXIS_SLOP = 8;
25
+ /**
26
+ * How much further a finger must travel, past an action already showing, to
27
+ * run it (BlackBook, owner ask 2026-11-11: "if you swipe again in that
28
+ * direction then do that action e.g. delete"). Only a SECOND swipe on a row
29
+ * already open on that side: a single long flick from closed only reveals.
30
+ */
31
+ export const SWIPE_FIRE_DISTANCE = 56;
32
+ /** How far past its open position the row may be dragged to show it will fire. */
33
+ export const SWIPE_FIRE_TRAVEL = 40;
34
+ const RIGHT_ONLY = { left: 0, right: SWIPE_ACTION_WIDTH };
35
+ /**
36
+ * Which way is this gesture going? Decided once per touch, at the first
37
+ * movement past the slop, and never revisited.
38
+ */
39
+ export function decideSwipeAxis(dx, dy, slop = SWIPE_AXIS_SLOP) {
40
+ if (Math.abs(dx) < slop && Math.abs(dy) < slop)
41
+ return 'none';
42
+ return Math.abs(dx) > Math.abs(dy) ? 'x' : 'y';
43
+ }
44
+ /**
45
+ * Where the row sits mid-drag: `base` plus the finger, clamped to the track.
46
+ * Positive: moved right, the LEFT action showing.
47
+ */
48
+ export function swipeDragOffset(base, dx, widths = RIGHT_ONLY) {
49
+ return Math.min(widths.left, Math.max(-widths.right, base + dx));
50
+ }
51
+ /**
52
+ * On release: which action is left showing, if any? Half the action's own
53
+ * width, so the same gesture opens and closes with no dead zone.
54
+ */
55
+ export function swipeSettles(offset, widths = RIGHT_ONLY) {
56
+ if (offset <= -widths.right / 2 && widths.right > 0)
57
+ return 'right';
58
+ if (offset >= widths.left / 2 && widths.left > 0)
59
+ return 'left';
60
+ return null;
61
+ }
62
+ /** Where a row rests for a given open side. The inverse of {@link swipeSettles}. */
63
+ export function swipeRestingOffset(open, widths = RIGHT_ONLY) {
64
+ if (open === 'right')
65
+ return -widths.right;
66
+ if (open === 'left')
67
+ return widths.left;
68
+ return 0;
69
+ }
70
+ /**
71
+ * Does this release run the action showing on `open`'s side? Only when the
72
+ * touch began with that side already open and the finger carried on the same
73
+ * way by {@link SWIPE_FIRE_DISTANCE}.
74
+ */
75
+ export function swipeFiresOnRelease(open, dx, widths = RIGHT_ONLY) {
76
+ if (open === 'right' && widths.right > 0 && dx <= -SWIPE_FIRE_DISTANCE)
77
+ return 'right';
78
+ if (open === 'left' && widths.left > 0 && dx >= SWIPE_FIRE_DISTANCE)
79
+ return 'left';
80
+ return null;
81
+ }
82
+ /**
83
+ * Where the row sits mid-drag when it started open: as
84
+ * {@link swipeDragOffset}, but it may carry on past the open edge by up to
85
+ * {@link SWIPE_FIRE_TRAVEL} (at half the finger's speed), so the second swipe
86
+ * visibly goes somewhere.
87
+ */
88
+ export function swipeDragOffsetFromOpen(open, base, dx, widths = RIGHT_ONLY) {
89
+ const raw = base + dx;
90
+ if (open === 'right' && raw < -widths.right)
91
+ return -widths.right - Math.min(SWIPE_FIRE_TRAVEL, (-widths.right - raw) / 2);
92
+ if (open === 'left' && raw > widths.left)
93
+ return widths.left + Math.min(SWIPE_FIRE_TRAVEL, (raw - widths.left) / 2);
94
+ return swipeDragOffset(base, dx, widths);
95
+ }
96
+ //# sourceMappingURL=swipeGeometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipeGeometry.js","sourceRoot":"","sources":["../../src/phone/swipeGeometry.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qEAAqE;AACrE,EAAE;AACF,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,4EAA4E;AAC5E,6EAA6E;AAC7E,gEAAgE;AAChE,EAAE;AACF,8EAA8E;AAC9E,4EAA4E;AAC5E,iEAAiE;AAEjE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEpC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAA;AAEhC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAA;AAErC,kFAAkF;AAClF,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAA;AAgBnC,MAAM,UAAU,GAAgB,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAA;AAEtE;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,EAAU,EAAE,EAAU,EAAE,IAAI,GAAG,eAAe;IAC5E,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI;QAAE,OAAO,MAAM,CAAA;IAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;AAChD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,EAAU,EAAE,SAAsB,UAAU;IACxF,OAAO,IAAI,CA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IACrB,IAAI,IAAI,KAAK,OAAO,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK;QAAE,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1H,IAAI,IAAI,KAAK,MAAM,IAAI,GAAG,GAAG,MAAM,CAAC,IAAI;QAAE,OAAO,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IACnH,OAAO,eAAe,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;AAC1C,CAAC"}
@@ -0,0 +1,19 @@
1
+ /** One tab moved to a new place (`to` is its index in the result). */
2
+ export declare function moveTab<T>(order: readonly T[], tab: T, to: number): T[];
3
+ /**
4
+ * A stored order made whole against the app's tabs (`defaults`, in their
5
+ * default order): unknown names dropped, each tab once, and a tab missing from
6
+ * it (one added since the order was saved) put back just after its neighbour
7
+ * in the default order. Hidden tabs stay in the order, so a tab switched back
8
+ * on returns to its place.
9
+ */
10
+ export declare function normaliseTabOrder<T extends string>(raw: unknown, defaults: readonly T[]): T[];
11
+ /** Is this the default order? */
12
+ export declare function isDefaultTabOrder<T>(order: readonly T[], defaults: readonly T[]): boolean;
13
+ /**
14
+ * The shown tabs in a new order, written back into the whole order: hidden
15
+ * tabs keep their slots, the shown ones fill the rest in their new sequence.
16
+ * What a drag on the tab bar (which shows only the shown tabs) saves.
17
+ */
18
+ export declare function withShownOrder<T>(full: readonly T[], shown: readonly T[]): T[];
19
+ //# sourceMappingURL=tabOrder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabOrder.d.ts","sourceRoot":"","sources":["../../src/phone/tabOrder.ts"],"names":[],"mappings":"AAQA,sEAAsE;AACtE,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,EAAE,CAIvE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,CAS7F;AAED,iCAAiC;AACjC,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,GAAG,OAAO,CAEzF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,CAI9E"}
@@ -0,0 +1,46 @@
1
+ // The tab order as data (BRANDING.md ▸ "Tabs reorder: hold and drag"): moving
2
+ // one tab, folding a stored order back to the tabs the app has now, and
3
+ // writing the shown tabs' new order back around the hidden ones.
4
+ //
5
+ // Moved here in 0.230.0 from Universal BlackBook's `src/lib/tabs.ts`, made
6
+ // generic over the app's tab names. Pure, so it runs anywhere (a store's
7
+ // migration, a sync merge, a test).
8
+ /** One tab moved to a new place (`to` is its index in the result). */
9
+ export function moveTab(order, tab, to) {
10
+ const rest = order.filter((t) => t !== tab);
11
+ rest.splice(Math.max(0, Math.min(to, rest.length)), 0, tab);
12
+ return rest;
13
+ }
14
+ /**
15
+ * A stored order made whole against the app's tabs (`defaults`, in their
16
+ * default order): unknown names dropped, each tab once, and a tab missing from
17
+ * it (one added since the order was saved) put back just after its neighbour
18
+ * in the default order. Hidden tabs stay in the order, so a tab switched back
19
+ * on returns to its place.
20
+ */
21
+ export function normaliseTabOrder(raw, defaults) {
22
+ const known = Array.isArray(raw) ? raw.filter((x) => defaults.includes(x)) : [];
23
+ const out = [...new Set(known)];
24
+ defaults.forEach((t, i) => {
25
+ if (out.includes(t))
26
+ return;
27
+ const before = i > 0 ? out.indexOf(defaults[i - 1]) : -1;
28
+ out.splice(before + 1, 0, t);
29
+ });
30
+ return out;
31
+ }
32
+ /** Is this the default order? */
33
+ export function isDefaultTabOrder(order, defaults) {
34
+ return order.length === defaults.length && order.every((t, i) => t === defaults[i]);
35
+ }
36
+ /**
37
+ * The shown tabs in a new order, written back into the whole order: hidden
38
+ * tabs keep their slots, the shown ones fill the rest in their new sequence.
39
+ * What a drag on the tab bar (which shows only the shown tabs) saves.
40
+ */
41
+ export function withShownOrder(full, shown) {
42
+ const on = new Set(shown);
43
+ let k = 0;
44
+ return full.map((t) => (on.has(t) ? shown[k++] : t));
45
+ }
46
+ //# sourceMappingURL=tabOrder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabOrder.js","sourceRoot":"","sources":["../../src/phone/tabOrder.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,wEAAwE;AACxE,iEAAiE;AACjE,EAAE;AACF,2EAA2E;AAC3E,yEAAyE;AACzE,oCAAoC;AAEpC,sEAAsE;AACtE,MAAM,UAAU,OAAO,CAAI,KAAmB,EAAE,GAAM,EAAE,EAAU;IAChE,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAA;IAC3C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAA;IAC3D,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAmB,GAAY,EAAE,QAAsB;IACtF,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CA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C,CAAC,CAAC,CAAC,CAAC,CAAA;AACvD,CAAC"}
@@ -211,6 +211,14 @@ interface UniversalContextValue {
211
211
  * checks membership on every use (`current_org_id()`, migration 0132).
212
212
  */
213
213
  export declare function readPersistedActiveOrgId(): string | null;
214
+ /**
215
+ * One app's language OVERRIDE, set from its App preferences. Absent means
216
+ * "follow global". Always localStorage, never the shared cookie, even on an
217
+ * Assess product: an override is by definition about this app alone, and a
218
+ * `.unisim.co.uk` cookie is precisely the thing that would carry it to the
219
+ * next one.
220
+ */
221
+ export declare function appLanguageKey(product: ProductCode): string;
214
222
  /** Long enough for any real first name or nickname; it sits in a 190px pill. */
215
223
  export declare const CALL_ME_MAX = 40;
216
224
  export declare function normaliseCallMe(raw: string | null | undefined): string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,cAAc,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAIvF,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC3D,OAAO,EAA6D,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpG,OAAO,EAAyB,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AACvF,OAAO,EAAyC,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AAG3F,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAGtE,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,WAAW,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;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