@g9tm/lynxcontrols-foundation 2.8.4 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog/catalog.json +111 -7
- package/catalog/index.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/services/contracts.d.ts +22 -0
- package/dist/services/contracts.d.ts.map +1 -1
- package/dist/services/contracts.js.map +1 -1
- package/dist/services/index.d.ts +4 -2
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +2 -1
- package/dist/services/keys.d.ts +18 -0
- package/dist/services/keys.d.ts.map +1 -1
- package/dist/services/keys.js +7 -1
- package/dist/services/keys.js.map +1 -1
- package/dist/services/video-element.d.ts +60 -0
- package/dist/services/video-element.d.ts.map +1 -0
- package/dist/services/video-element.js +1 -0
- package/dist/services/window.d.ts +82 -0
- package/dist/services/window.d.ts.map +1 -0
- package/dist/services/window.js +51 -0
- package/dist/services/window.js.map +1 -0
- package/docs/api.md +13 -0
- package/package.json +1 -1
package/catalog/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"catalogVersion": 1,
|
|
3
3
|
"package": "@g9tm/lynxcontrols-foundation",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.10.0",
|
|
5
5
|
"generatedBy": "node scripts/check-docs.mjs --write",
|
|
6
6
|
"components": [],
|
|
7
7
|
"exports": [
|
|
@@ -485,6 +485,14 @@
|
|
|
485
485
|
"signature": "(source: string, throttleKey: string): G9SafeExecutorOptions",
|
|
486
486
|
"summary": "Traced UI operations that reject same-key overlap (MAUI `CreateUiOperationOptions`)."
|
|
487
487
|
},
|
|
488
|
+
{
|
|
489
|
+
"id": "foundation.services.createUnavailableWindowControl",
|
|
490
|
+
"export": "createUnavailableWindowControl",
|
|
491
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
492
|
+
"kind": "function",
|
|
493
|
+
"signature": "(reason?: string | undefined): G9WindowControl",
|
|
494
|
+
"summary": "The window control of a host without a window (Lynx for Web, Android, iOS): `available: false`, and every method rejects (or, for `subscribe` / `onCloseRequest`, throws) `G9WindowUnavailableError` with `reason`."
|
|
495
|
+
},
|
|
488
496
|
{
|
|
489
497
|
"id": "foundation.tokens.cssVariableName",
|
|
490
498
|
"export": "cssVariableName",
|
|
@@ -834,7 +842,7 @@
|
|
|
834
842
|
"export": "g9AccentTokens",
|
|
835
843
|
"from": "@g9tm/lynxcontrols-foundation/theme",
|
|
836
844
|
"kind": "function",
|
|
837
|
-
"signature": "(accent: string, scheme: G9ColorScheme): Readonly<Partial<Record<\"
|
|
845
|
+
"signature": "(accent: string, scheme: G9ColorScheme): Readonly<Partial<Record<\"info\" | \"link\" | \"text\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"",
|
|
838
846
|
"summary": "Every token a single accent colour sets, for a scheme (G9Hub `accentTokens`): `color-mix()` values, resolved when the theme is read. `{}` for something that is not a colour."
|
|
839
847
|
},
|
|
840
848
|
{
|
|
@@ -1205,6 +1213,22 @@
|
|
|
1205
1213
|
"signature": "G9Clock",
|
|
1206
1214
|
"summary": "Time source of everything in G9 that needs \"now\" (plan/specs/01-Architecture.md §8). Supplied by the app through the provider; tests pass a manual clock."
|
|
1207
1215
|
},
|
|
1216
|
+
{
|
|
1217
|
+
"id": "foundation.services.G9CloseDecision",
|
|
1218
|
+
"export": "G9CloseDecision",
|
|
1219
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
1220
|
+
"kind": "type",
|
|
1221
|
+
"signature": "G9CloseDecision",
|
|
1222
|
+
"summary": "What a close-request handler answers: keep the window (`'cancel'`) or let it close (`'close'`, the default)."
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"id": "foundation.services.G9CloseRequestHandler",
|
|
1226
|
+
"export": "G9CloseRequestHandler",
|
|
1227
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
1228
|
+
"kind": "type",
|
|
1229
|
+
"signature": "G9CloseRequestHandler",
|
|
1230
|
+
"summary": "A close-request handler; it may ask the person first (a promise). Nothing returned = `'close'`."
|
|
1231
|
+
},
|
|
1208
1232
|
{
|
|
1209
1233
|
"id": "foundation.theme.G9Color",
|
|
1210
1234
|
"export": "G9Color",
|
|
@@ -1661,6 +1685,14 @@
|
|
|
1661
1685
|
"signature": "G9ErrorPopupRequest",
|
|
1662
1686
|
"summary": "What the host's error presenter shows (MAUI's error popup with OK and the optional \"More details\")."
|
|
1663
1687
|
},
|
|
1688
|
+
{
|
|
1689
|
+
"id": "foundation.services.G9EyeDropper",
|
|
1690
|
+
"export": "G9EyeDropper",
|
|
1691
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
1692
|
+
"kind": "interface",
|
|
1693
|
+
"signature": "G9EyeDropper",
|
|
1694
|
+
"summary": "The screen colour picker (2.10.0): a browser's `EyeDropper`, a desktop shell's. Optional: `G9ColorPicker` shows its eyedropper only when `available()` resolves true."
|
|
1695
|
+
},
|
|
1664
1696
|
{
|
|
1665
1697
|
"id": "foundation.services.g9FieldKeyEventName",
|
|
1666
1698
|
"export": "g9FieldKeyEventName",
|
|
@@ -1957,6 +1989,14 @@
|
|
|
1957
1989
|
"signature": "G9Haptics",
|
|
1958
1990
|
"summary": "Haptic feedback the host plays (optional capability `haptics`); without it controls stay silent."
|
|
1959
1991
|
},
|
|
1992
|
+
{
|
|
1993
|
+
"id": "foundation.services.G9HeldModifiers",
|
|
1994
|
+
"export": "G9HeldModifiers",
|
|
1995
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
1996
|
+
"kind": "interface",
|
|
1997
|
+
"signature": "G9HeldModifiers",
|
|
1998
|
+
"summary": "The modifier keys held now."
|
|
1999
|
+
},
|
|
1960
2000
|
{
|
|
1961
2001
|
"id": "foundation.services.G9HostServices",
|
|
1962
2002
|
"export": "G9HostServices",
|
|
@@ -2309,6 +2349,14 @@
|
|
|
2309
2349
|
"signature": "44",
|
|
2310
2350
|
"summary": "The platform's minimum touch target in dp: no density or override takes `touchTarget` under it."
|
|
2311
2351
|
},
|
|
2352
|
+
{
|
|
2353
|
+
"id": "foundation.services.g9ModifiersEventName",
|
|
2354
|
+
"export": "g9ModifiersEventName",
|
|
2355
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
2356
|
+
"kind": "constant",
|
|
2357
|
+
"signature": "\"g9modifiers\"",
|
|
2358
|
+
"summary": "Global event a host sends when a modifier key goes down or up (2.9.0): `{ shift, ctrl, alt, meta }` as held now, all false when the window loses the focus. Lynx pointer events carry no modifier flags, so Shift+click and Ctrl+click (multi-select) read the held modifiers (`g9HeldModifiers` of `@g9tm/lynxcontrols/commands`)."
|
|
2359
|
+
},
|
|
2312
2360
|
{
|
|
2313
2361
|
"id": "foundation.services.g9MotionScale",
|
|
2314
2362
|
"export": "g9MotionScale",
|
|
@@ -3146,7 +3194,7 @@
|
|
|
3146
3194
|
"export": "g9ThemeBaseTokens",
|
|
3147
3195
|
"from": "@g9tm/lynxcontrols-foundation/theme",
|
|
3148
3196
|
"kind": "constant",
|
|
3149
|
-
"signature": "Readonly<Partial<Record<\"
|
|
3197
|
+
"signature": "Readonly<Partial<Record<\"info\" | \"link\" | \"text\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble-mine\" | \"bubble-mine-text\" | \"bubb",
|
|
3150
3198
|
"summary": "Shape and motion every token theme shares unless it sets its own (G9Hub BASE_TOKENS)."
|
|
3151
3199
|
},
|
|
3152
3200
|
{
|
|
@@ -3274,7 +3322,7 @@
|
|
|
3274
3322
|
"export": "g9ThemeTokenGroups",
|
|
3275
3323
|
"from": "@g9tm/lynxcontrols-foundation/theme",
|
|
3276
3324
|
"kind": "constant",
|
|
3277
|
-
"signature": "readonly { readonly id: string; readonly tokens: readonly (\"
|
|
3325
|
+
"signature": "readonly { readonly id: string; readonly tokens: readonly (\"info\" | \"link\" | \"text\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble",
|
|
3278
3326
|
"summary": "The token groups an editor shows (G9Hub TOKEN_GROUPS)."
|
|
3279
3327
|
},
|
|
3280
3328
|
{
|
|
@@ -3282,7 +3330,7 @@
|
|
|
3282
3330
|
"export": "G9ThemeTokenName",
|
|
3283
3331
|
"from": "@g9tm/lynxcontrols-foundation/theme",
|
|
3284
3332
|
"kind": "type",
|
|
3285
|
-
"signature": "\"
|
|
3333
|
+
"signature": "\"info\" | \"link\" | \"text\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble-mine\" | \"bubble-mine-text\" | \"bubble-mine-meta\" | \"bubble-",
|
|
3286
3334
|
"summary": "A design token's name (`bg`, `bubble-mine`, `radius-lg`…)."
|
|
3287
3335
|
},
|
|
3288
3336
|
{
|
|
@@ -3298,7 +3346,7 @@
|
|
|
3298
3346
|
"export": "G9ThemeTokens",
|
|
3299
3347
|
"from": "@g9tm/lynxcontrols-foundation/theme",
|
|
3300
3348
|
"kind": "type",
|
|
3301
|
-
"signature": "Readonly<Partial<Record<\"
|
|
3349
|
+
"signature": "Readonly<Partial<Record<\"info\" | \"link\" | \"text\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble-mine\" | \"bubble-mine-text\" | \"bubb",
|
|
3302
3350
|
"summary": "A token map (a theme lists only what it changes)."
|
|
3303
3351
|
},
|
|
3304
3352
|
{
|
|
@@ -3338,7 +3386,7 @@
|
|
|
3338
3386
|
"export": "g9TokenForPalette",
|
|
3339
3387
|
"from": "@g9tm/lynxcontrols-foundation/theme",
|
|
3340
3388
|
"kind": "function",
|
|
3341
|
-
"signature": "(token: G9ColorToken): \"
|
|
3389
|
+
"signature": "(token: G9ColorToken): \"info\" | \"link\" | \"text\" | \"success\" | \"warning\" | \"surface\" | \"accent\" | \"bg\" | \"scrim\" | \"bg-elev\" | \"surface-2\" | \"surface-3\" | \"border\" | \"border-strong\" | \"text-2\" | \"text-3\" | \"danger\" | \"hover\" | \"press\" | \"field\" | \"skeleton\" | \"accent-soft\" | \"accent-glow\" | \"accent-gradient\" | \"text-on-accent\" | \"glass\" | \"glass-border\" | \"bubble-mine\" | \"bubble-mine-text\" | \"bubbl",
|
|
3342
3390
|
"summary": "The design token a palette token takes its colour from in a token theme (a contrast fix sets that token), or null."
|
|
3343
3391
|
},
|
|
3344
3392
|
{
|
|
@@ -3469,6 +3517,14 @@
|
|
|
3469
3517
|
"signature": "G9VariantVars",
|
|
3470
3518
|
"summary": "A variant painted with CSS variables: the same colours as `resolveButtonVariant`, following the theme with no script (the provider writes the variables). `gradient` names the token whose gradient a solid fill uses."
|
|
3471
3519
|
},
|
|
3520
|
+
{
|
|
3521
|
+
"id": "foundation.services.G9VideoElementProps",
|
|
3522
|
+
"export": "G9VideoElementProps",
|
|
3523
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
3524
|
+
"kind": "interface",
|
|
3525
|
+
"signature": "G9VideoElementProps",
|
|
3526
|
+
"summary": "Props of the `<g9-video>` element (`G9VideoUI` on Android, `G9LCVideoUI` on iOS, `registerG9Video` on the web)."
|
|
3527
|
+
},
|
|
3472
3528
|
{
|
|
3473
3529
|
"id": "foundation.route.G9ViewApplied",
|
|
3474
3530
|
"export": "G9ViewApplied",
|
|
@@ -3509,6 +3565,38 @@
|
|
|
3509
3565
|
"signature": "readonly G9Wallpaper[]",
|
|
3510
3566
|
"summary": "Wallpapers drawn with gradients only (no pictures, no network)."
|
|
3511
3567
|
},
|
|
3568
|
+
{
|
|
3569
|
+
"id": "foundation.services.G9WindowControl",
|
|
3570
|
+
"export": "G9WindowControl",
|
|
3571
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
3572
|
+
"kind": "interface",
|
|
3573
|
+
"signature": "G9WindowControl",
|
|
3574
|
+
"summary": "The app's window. Every method of an unavailable control (`available: false`) rejects or throws `G9WindowUnavailableError`, so an app checks `available` before offering window features."
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"id": "foundation.services.G9WindowEvent",
|
|
3578
|
+
"export": "G9WindowEvent",
|
|
3579
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
3580
|
+
"kind": "type",
|
|
3581
|
+
"signature": "G9WindowEvent",
|
|
3582
|
+
"summary": "What the host tells the page about its window."
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
"id": "foundation.services.G9WindowState",
|
|
3586
|
+
"export": "G9WindowState",
|
|
3587
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
3588
|
+
"kind": "interface",
|
|
3589
|
+
"signature": "G9WindowState",
|
|
3590
|
+
"summary": "What the window is doing now."
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"id": "foundation.services.G9WindowUnavailableError",
|
|
3594
|
+
"export": "G9WindowUnavailableError",
|
|
3595
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
3596
|
+
"kind": "class",
|
|
3597
|
+
"signature": "typeof G9WindowUnavailableError",
|
|
3598
|
+
"summary": "Thrown by every call of a window control on a host without a window of its own."
|
|
3599
|
+
},
|
|
3512
3600
|
{
|
|
3513
3601
|
"id": "foundation.culture.g9Word",
|
|
3514
3602
|
"export": "g9Word",
|
|
@@ -3693,6 +3781,14 @@
|
|
|
3693
3781
|
"signature": "(error: unknown): boolean",
|
|
3694
3782
|
"summary": "`true` for an error named `'AbortError'` (web `DOMException`, our `createAbortError`, most libraries)."
|
|
3695
3783
|
},
|
|
3784
|
+
{
|
|
3785
|
+
"id": "foundation.services.isContextMenuKey",
|
|
3786
|
+
"export": "isContextMenuKey",
|
|
3787
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
3788
|
+
"kind": "function",
|
|
3789
|
+
"signature": "(event: G9KeyEvent): boolean",
|
|
3790
|
+
"summary": "True for the keys that open a context menu from the keyboard (2.9.0): the context-menu key (`'ContextMenu'`, also sent as `'Apps'`) and Shift+F10, on Windows, macOS and the web alike."
|
|
3791
|
+
},
|
|
3696
3792
|
{
|
|
3697
3793
|
"id": "foundation.icons.isFontIcon",
|
|
3698
3794
|
"export": "isFontIcon",
|
|
@@ -4437,6 +4533,14 @@
|
|
|
4437
4533
|
"signature": "(r: number, g: number, b: number, a?: number): G9Rgba",
|
|
4438
4534
|
"summary": "Builds channels the way the MAUI `Color(float, float, float, float)` constructor does: each channel is clamped to `0..1` and stored as float32. `NaN` stays `NaN`, as it does in .NET."
|
|
4439
4535
|
},
|
|
4536
|
+
{
|
|
4537
|
+
"id": "foundation.services.runCloseRequestHandlers",
|
|
4538
|
+
"export": "runCloseRequestHandlers",
|
|
4539
|
+
"from": "@g9tm/lynxcontrols-foundation/services",
|
|
4540
|
+
"kind": "function",
|
|
4541
|
+
"signature": "(handlers: readonly G9CloseRequestHandler[]): Promise<G9CloseDecision>",
|
|
4542
|
+
"summary": "Runs close-request handlers in order (the newest first) and answers `'cancel'` as soon as one does; a handler that throws or rejects counts as `'cancel'` (a broken confirm dialog must not lose the person's work). Shared by every host implementation."
|
|
4543
|
+
},
|
|
4440
4544
|
{
|
|
4441
4545
|
"id": "foundation.culture.sameCulture",
|
|
4442
4546
|
"export": "sameCulture",
|
package/catalog/index.md
CHANGED
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/collections.ts","../src/errors.ts","../src/culture/bidi.ts","../../../node_modules/@internationalized/date/dist/types/src/calendardate.d.ts","../../../node_modules/@internationalized/date/dist/types/src/types.d.ts","../../../node_modules/@internationalized/date/dist/types/src/queries.d.ts","../../../node_modules/@internationalized/date/dist/types/src/utils.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/gregoriancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/japanesecalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/buddhistcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/taiwancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/persiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/indiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/islamiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/hebrewcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/ethiopiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/createcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/conversion.d.ts","../../../node_modules/@internationalized/date/dist/types/src/string.d.ts","../../../node_modules/@internationalized/date/dist/types/src/dateformatter.d.ts","../../../node_modules/@internationalized/date/dist/types/src/index.d.ts","../src/culture/digits.ts","../src/culture/culture.ts","../src/culture/calendar.ts","../src/culture/numbers.ts","../src/culture/text.ts","../src/culture/coordinates.ts","../src/culture/date-format.ts","../src/culture/duration.ts","../src/culture/natural-date.ts","../src/culture/strings.ts","../src/culture/relative-time.ts","../src/culture/words.ts","../src/culture/index.ts","../src/enums/index.ts","../src/exec/diagnostics.ts","../src/services/abort.ts","../src/exec/options.ts","../src/services/clock.ts","../src/exec/trace.ts","../src/exec/safe-executor.ts","../src/exec/index.ts","../src/icons/generated/glyph-svg.ts","../src/icons/glyph.ts","../src/icons/icon.ts","../src/icons/glyph-slots.ts","../src/icons/icon-fonts.ts","../src/icons/packs.ts","../src/theme/color.ts","../src/icons/svg.ts","../src/icons/index.ts","../src/layout/index.ts","../src/route/address.ts","../src/route/catalogue.ts","../src/route/journey.ts","../src/route/sink.ts","../src/route/resolve.ts","../src/route/view.ts","../src/route/index.ts","../src/services/feedback.ts","../src/services/preferences.ts","../src/services/contracts.ts","../src/services/image-src.ts","../src/services/keys.ts","../src/services/motion.ts","../src/services/index.ts","../src/tokens/generated/metrics.ts","../src/tokens/generated/palettes.ts","../src/tokens/layout-metrics.ts","../src/tokens/css-vars.ts","../src/theme/aliases.ts","../src/tokens/shape.ts","../src/theme/oklch.ts","../src/theme/theme.ts","../src/theme/brand.ts","../src/theme/recipe.ts","../src/theme/sanitize.ts","../src/theme/appearance.ts","../src/theme/css-color.ts","../src/theme/token-themes.ts","../src/theme/appearance-kit.ts","../src/theme/contrast.ts","../src/theme/control-colors.ts","../src/theme/design.ts","../src/tokens/derived.ts","../src/theme/variants.ts","../src/theme/index.ts","../src/tokens/root.ts","../src/tokens/index.ts","../src/index.ts"],"fileIdsList":[[102],[101,102,105],[101,102,104],[101,102],[101,102,104,105],[101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117],[101],[40,95,96],[41,85,86,87],[52],[41,77,86,87,88,89,91,92,93],[41,85,86,87,89,90],[85,87],[41,85],[48,77],[42],[43],[50,54],[46],[40,50,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79],[46,50,54,77],[46,50,54],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82],[57,58],[46,50,54,58],[46,60,63],[45],[47,51,52,94],[43,46,47,48,50,52,53,54,83,84],[43,46],[51,85,94],[44,85],[45,46,54],[44,45,49,50],[48,85],[37,38,39],[40],[97],[97,99,118,120],[97,119,122,123],[97,99,119],[97,99,119,120,121],[97,99],[97,100,119,120,121,122,123,124,125,126,127,128,129,130],[97,121,123],[97,99,121,125,128],[97,99,120,122],[97,119,122],[97,133,135,137,138],[97,99,134],[97,99,128,133,134,135,136,137],[97,133,136],[97,99,142],[97,99,141,142],[97,99,141],[97,140,141,142,143,144,145,147],[97,99,140,141,146],[97,98,99,131,132,139,148,149,156,163,184,186],[97,99,150],[97,150,151,152,153,154,155],[97,150,151],[97,150,151,153],[97,150],[97,99,134,136,153,157,158],[97,134,136,157,158,159,160,161,162],[97,165,167],[97,146,165,169,170,171,174,175,177],[97,99,146,165,169,171,172,173,174],[97,146,165,170,171],[97,146,165],[97,146,171],[97,146,170],[97,146,165,169,171,176],[97,146,168,170,171,172,173,175,176,177,178,179,180,181,183],[97,146],[97,99,165,169,170,171,172],[97,99,146,165],[97,146,165,170,171,174,175,176],[97,132,146,165,167,182],[97,164,165,166],[97,146,165,167],[97,164,165,166,167,169,182,185],[97,165,167,169,182],[97,167]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"42204f4543c2a8d92bdee756d5e3f09e2612497ad26b5c36a285d99d34efa377","signature":"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f"},{"version":"18609e84384328c186664b8c5b407e379ee197a4bc40d0e985b5c8050ce29df7","signature":"ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26"},{"version":"714560fb0e2ff57d67dcb3337a40ed0d9acddd7bcfad0e80ca3f0da9537dadaf","signature":"577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851"},{"version":"217c6f6adcf5111e57a516f20bb0f3624f4a0c8c95b4dfd757b2c191439d3aa4","impliedFormat":1},{"version":"302d0816f71d30d6615895a696aab24cf074ac8e9d5b90021c9a4a29f4121d27","impliedFormat":1},{"version":"a68e0e4868a1f61702c5b91cc2b0437168acc49e318896a891368f52e0420781","impliedFormat":1},{"version":"eb57169d1ef4957f9322372942255786231714bfd3475dec56980d4075a99bb8","impliedFormat":1},{"version":"d13b4c54324181a93a23ce284b3a7a1a2148a35aecc95c562353e28a799cbeab","impliedFormat":1},{"version":"3ec9cc2c9621174a735593a03b48415ce4e0e4002a1fd5e56fffa029739561c5","impliedFormat":1},{"version":"a9b763da625de15e560fa1d58de51694c5cc45ac84f942bf85bd022b03806d9b","impliedFormat":1},{"version":"801d799959670d8a15b3dfc95d4b11dc2a0dbdb288c1de56404022ee45206302","impliedFormat":1},{"version":"dc1897f61ef7cd55f6e7572332ff23225661fa8814f9f2137655a724445dfcc9","impliedFormat":1},{"version":"af4a925b523e9c391ee4d4451cf658849e9d92e2c6fb63ac39024b6264916751","impliedFormat":1},{"version":"d0139e18847aa6b6e33b8b8fa43ca8c6fc24baa26cfc6b845078500d5810e392","impliedFormat":1},{"version":"4d22f9e46854d0e44f827c33ed9b7da2d407a4ef6dc962a53345b1f9d0c75b13","impliedFormat":1},{"version":"6c60775bbec04bff8661a7601d0fe26e696dbd1d5287ffd7cba68e8978b4cf4c","impliedFormat":1},{"version":"1185a5e4d82d7b64bd5438019fcd6eec765a64f0cc36c3af738c5ae317c7b957","impliedFormat":1},{"version":"bf4a94dcf6335c0bb4ab927fb56a646ea9ac57123b2677c2eb9841302dc3f1da","impliedFormat":1},{"version":"10175cdd19d960f50473c229d98659a5b2534a48bd86acf647e8f2878aa25d29","impliedFormat":1},{"version":"7721b07afcc035f4aff3af52d1a982d7fbd2525a9ab82b197b67d8eefc915de6","impliedFormat":1},{"version":"e943098dc1cc3574e0d903a7ac2d90d6863d243dea9295b4a8fd34223a8277e1","impliedFormat":1},{"version":"a142f5afe12787e110a2e7ff7ee4a02647c022ff0839e7c7ae0f4a41278ae1f1","signature":"44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef"},{"version":"7db764083fb927c05340e42cae128a68b53ce9d4bddfc7845e4f7c4d22772a9f","signature":"d5621f942ab05c1c3594b5b59070c2f44d411f01ba97eae6bd60cd99ab6be102"},{"version":"bdfd4a2c14afeeb21b587929fcf19c8f90ef4b3b659415724b1fcb4375b537b9","signature":"69af30b9df408f844bd30e26ade1ba783c7624bd505ecef61a7e178624ece0eb"},{"version":"2c0754ee9b1637e850da1e2fa4e7b98e7eb30fc2b10a84c42fe33d9302383038","signature":"2064567cac7c44696477d8faeb79ec714624c341bee71ea7237ea2ef2e26e8a4"},{"version":"ac48ec0028c69cd75134b79ca6636cd7ccff7d6f674062f2dbb9ce131b15260c","signature":"235f39f2ec81e985a2b53a9d91604316593cab5825e0871f41858d040a68e0ea"},{"version":"3ac0b6ea92d871267625ea34f72a3090a7638a1d01c466c0ba7666e63c54c586","signature":"9d4e2786d2e8c5c304e5f5f282f38deff75dddf26d89e53c1c4872a7f9a7ecbc"},{"version":"521f08c786cd4cdaab2da57ce3dd6454f47a8edc501f8ba36c9b6ce4e223b6a6","signature":"3dd51a4b01e4a63709253bf28547f961d6bc64df7b7ced76bc0771800446ecd4"},{"version":"6c8dfe4a5ac25365b0c5c0817051732acead3f788f3567815ec775029b1661d2","signature":"28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a"},{"version":"24f4573a7b128e7a5f50de724a02ab69b27df707cdcfe044e6df2cccd3afe7c9","signature":"36f2fc7f6b07a9966273bda82f2b0b450b42d3320a9edaf91730c333ad86e257"},{"version":"b67192c27290fe55623013054f6c0ff6a63311e1266467c2f675dc4d7aab93b8","signature":"07477fef265592fa976f17bca69f4d03c112e321357c49d17232b5b5e493caf5"},{"version":"7bb7ff36e4fae5f3f2eeb2d1e70b46fac0412da4e4b65efd28fc95e5ba622995","signature":"ddb01c2474a47c2411bde75e969c547fd52dd0de9d39837970a6ec5effea934f"},{"version":"7eab0819fe34344e8b7c1827df8fd1611f5fa67e545d73b0229b0e18075af508","signature":"995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7"},{"version":"5327d23180a822f022eb490921a8773c42099f1316acf6be5235600e969c19cf","signature":"75a9c0d9c7fe1140420a459de28b333a69a4733654da7111da2a0f8f4cc6b25f"},{"version":"e983009f8ace928b08216908294b679b05ba261050e72803bfda43726b2219aa","signature":"5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7"},{"version":"16307e253df4bb417223e5814bcc5742d1b7d9b893bd72418b8cfe8e6f7ab474","signature":"abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018"},{"version":"cc74809c9fbebdf300941acce9a07ea6ff52bf91840e738014d4dc2645f153bb","signature":"f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c"},{"version":"38ccbb46155bf41c02e47d4bd2167b1a0f6b5429be49596da7e6b203cd7176eb","signature":"db505b070be7771c50bb80800e4a16333bea91619030d33e9d1b1d6d245fde72"},{"version":"3c106b0a8bab93d06df0fb9fb79a4814e9d333aca28138f2e8f053f9260cea38","signature":"d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93"},{"version":"23f824bd861a6cf696a4571ffeca7cd5130ff1b4d30ade235d6fed7fbc6fc78f","signature":"cefcb1f078d33a40c707d4a239ee518a595d7553b4205a4a23c1bf84a743a94e"},{"version":"5ab239682bfcdf7c0d429cfed2f0bd83489103ffab0e2be6b6f3014af19dc316","signature":"4f83143f730ad8fd66ec8f779b2f43399ed4b84aec6f5df5fdc4a2436739e934"},{"version":"4719b38ecf1f698d62ba291298047877c04dbc1848a27307a4edeaeee1bc66c7","signature":"830e8c15e2893c5864835fe97bad3fdc5d46bb9b72a66851365b8411347dda10"},{"version":"f2175ae864cb2550da788b15fc4a39aa398df0665466213d25371c5d7b685c21","signature":"b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9"},{"version":"26c1a7b48b53476c1dc0e107d0b0fe71b6148f4e320f660a0bfb7d20e67c1835","signature":"068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf"},{"version":"854f9b8c6d757b73f1c168038e3a5b24e2ca973d803c49ad43949447d4615f07","signature":"4285e8b8ec9bdea3ca2630c4d79f715587cc3262e5613fbd7bea8ffd32cc097c"},{"version":"03b57a8957f6cf8905df145665b4e64b8368c98e8b6802f8cff765ffc25e27c8","signature":"2b8a3fa14f4b24cbb3c2c783ae0805bc1a857cdf7d35308956f3660ef0229c3c"},{"version":"24189dadf4ca8b95ef97800d08ca7c98abdf1d6f0a1955fe66d94608fce724f8","signature":"f55ab5598602804a77bd7ff4f8442ceb29c6603120e1e6fe39b346dbcea9a438"},{"version":"f1172c2e3d40c9560d42e228cc14af529d8353de8df93caea82ce03fdffe4464","signature":"7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db"},{"version":"4e86b93241304e96d9fdc6554c7bf88dac95b8ea2484327a899a677a25d5e5ca","signature":"c15fea45b893c73bcad76ae565d59a0472ae0f74713ead9a9e7eb37085260c09"},{"version":"c71d509a443c45af8cd7bd84ea979bd5410677deaaf1983921949cb4cd952a05","signature":"344f7de9b0f6fa5ff42d99bac404c169596a2272a8b3d225beec056e4106bcb9"},{"version":"4815ef09b602fc55d4316ff4f04a7ead013f3827fcdd2436c3179a90ad9a45b9","signature":"ee2cc74d84f07861cccd51753c16296dfa24d6a19443262b4ec957bd451c46eb"},{"version":"9633cfd1413933ac2b54fc9959dc1591dc7b3d3b502b1fa3b3165407adb99002","signature":"cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e"},{"version":"52ba4ecb0b6a0c7250b7a10edf12ed75bafeb7ce812ae78255e3a149658dfe41","signature":"0fe3cc2e808353835af39798e6e169bbc1ce0cf473122316a019376a1d6d98cb"},{"version":"6069d1262128233eb04fb50264af01eb16258a8ba9a5bef9ebbaa8133459ec91","signature":"67b7d490a2cf3547f783c6f8e3019a6864f12cc657d17cf378146e7073cceb0c"},{"version":"b5f6738fc61eefd5acebabba48278250c0de84074f5c04a4c60414554d8f672b","signature":"6365c6701ad1cf8d99205387000a0324a573890107b2f475fd6a82174f0389c3"},{"version":"11fd46a411f0b66dd99a50a2274a73929d973614a5fa81bb9fb51aa6ee0cce92","signature":"d89fd83960c2343d5af55b3c174b5997272cd89af982d41bc21af8b8332cf149"},{"version":"79e9f560eae83744faa3e53154ee9bdb9f3941506eadd8d3a87935b2f90ccf4a","signature":"86a386c8741a08a24b2491c0d160bc2ee271b728c1f152d6705ffd69024679ee"},{"version":"10cf6b1e023bbb169c90ad7ff1c792552bdb73baf9f277ee1ca3e213b9b37452","signature":"49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3"},{"version":"1238f61c8db8e5ab8beaf5a9dbe5cad66661666e4e944fe92c38694c6a20cc1c","signature":"6f8692b9b0416b85506884f641a30a8f75b0b035c9948020a7117ca2faa6a840"},{"version":"b278c7dbac38a0c57ebcde6b848e7cd017a59f9ca770d9aaa4c83d6c09cf86ef","signature":"cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757"},{"version":"cb8bba022b800c1acb8ef8bfe465bfef7e43d22d06f20a8d6e7503aca0f4d570","signature":"ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669"},{"version":"b8b0d89500b8a7770bc06aeb331dbe19bb753990bb72283d0ddca60e2d666bfd","signature":"51fe1a881fd22081334946bc4224c980e89d1431ba7ad9d3c3d3b158e8bf68b4"},{"version":"e058e7d0e8e68dadc2a12f5c54c9c87626bd5d0d5abe75b4b25119bb773e0c9f","signature":"eb14fd861c19490984176eb4d5174447ffe26259c005ec0e5ff7aaed5b14d4d1"},{"version":"34b8960c9c9618b4742beb6198843f0e58ad8669864dac868507480ea6d8b10b","signature":"5f96841314e358366bcb3b3d07c8b8d924e90dcd00dcf2202900cbfaeefc1a03"},{"version":"db8a43eda6f42311a421d8839efe110a9436be9bc55eb5cd9ccd53c687b52537","signature":"216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d"},{"version":"923981a54c3f21dc304e7c7a663ac61fe8fc4803db1ea3356787488618eae66c","signature":"3274bbbffa8d67b72abf3e9e21750db2b7f2580658eff00e093fdad4c1949249"},{"version":"028144708663445c29ad9ca6be95694108a6d4decaff0709a9245977fef98e8e","signature":"ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3"},{"version":"21c4b66fbb8ad882f52c2825c45cb59ced1017b9bfc531fb8a0ef60d1240b882","signature":"faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7"},{"version":"fe66054b645111cf483c589411e2bd9e2c0ccbde0ba365e029c6c20653f02112","signature":"298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33"},{"version":"d615cba0a460f5568ce3473a1434f6ccf4511042824ce281682e499a95a676c8","signature":"1862daa6bc69b267a2b595149c5bced13ce2440d0d6625d291a5450d9d3118ae"},{"version":"4c3cbd29af3564f4aca3daaf5ca047f485b217af41f529815002a98933dab476","signature":"ed24498d7fe499efeb2a3f2df83a29cd3b8b83a982d01e7d73f4cc0166e3982b"},{"version":"0cb9b61e4d36bf870e79aada49bd42e797b928202f5350efc5d38c674a5dda1e","signature":"6687ad856daa2112d8a29e1eaa432b5f50a359c137d8fa103856cb082fa37d73"},{"version":"3cfad95bc4e3a7cae2da5cb4b5747145754f734c50aed196f681c08081f4e61a","signature":"93d15026bf4213d204b0ed4bd102a82945c519a716d51c245dca01d6ca7d0222"},{"version":"a440fc408fef832b41e8dd4988e1ab8d06c6d82a849c33efc9f59af0b8a35994","signature":"27c5013992e6c2d1a82395d90ac5877a70066f03f74b2a91d70e9eafa0666655"},{"version":"183c11473cd567bc10ae010c8db5e4205a91754bc0a3cb6db7dcdcd644d137b6","signature":"b1dff8567dd02ba98547471feb38597022193ca26b6ce853d28d2092b36669f6"},{"version":"b0740410649ef8daf5925d4bbac60c8f4f79a31c61e8ce02e5ad26c8c11705ad","signature":"264dc4b816ffdeabcb52d9698df80b809d3d616e1d394b9891f8163acdc69140"},{"version":"fa790fa82a01d9f729f941c5c80e4eec51314ce7afacfad53025970fe495d321","signature":"a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15"},{"version":"76f792c697c5ac05595d1ce061ae0b1b98296a76a5535868071d622455425a7c","signature":"dca501d8eff2db8c8309ccb2667b3b70f6e80290b91081bd740fe933fadc0c03"},{"version":"89921042d23f5b525d2b269e3754f7fdccd12dccd4491363248c5e79bb88e02e","signature":"718f81461dec01a5272f4ccf5efb006306f28ccd8f70b3c49e0221b9db21fdbe"},{"version":"73f46861ae92cd4ccac31f5045c6b548952a844d84fcbf63499c1a59c986619f","signature":"f484e0e4fa693a32c3ec182f8cd0ad3994c5efdc44c5969fd8c236c00a772d30"},{"version":"1cb16dd6dabd3a510cf89485546a34d38bb885f34f981627e46fdf7cebc3948f","signature":"2e3bd3aa1d6f941426e608169489cb33633ef7fb0294677e0d3151ef6c8dc913"},{"version":"312605bae92cef4d14e1c11bd9d624a907302f2360c43764ccb63437b8eabce0","signature":"e6c6e5af757c1a353c031cbd0e917586fe9ee9767a80937c7763718431cefb17"},{"version":"8c1ccf55df4d01257496b438fa372bea784e018d9b7327bd1fbeb90ad1f0aaf9","signature":"edc33c8870895bd9b0255d99fc8213efeddc0acf0031b7fa6cd8cc372f446c46"},{"version":"05874ba226e10081ca4c853d185e1f88701abdc601bd661f00338a730805824b","signature":"29ffac17044f96c464965f99ecb812783d5b524d6187cc9cc55b784abdf95fb2"},{"version":"2d44ce57513b0cd6e37ae35ba15ec92b5e84d3af94c831ce4fb15bb682f9bb98","signature":"c742b17e5e316108f45f793bdfe9e074092b12cb6e8d8a1683f6c62af6b0465c"},{"version":"aff24855ea3fba97546860cda5e8d435e40a5d2f02b93342dcc7d8b694131c05","signature":"ec73711a5e3798a36346e15ad1c2c3521a5e3e1515436835fd37986c8cd3c7fe"},{"version":"e89f8cb160b8a1855b3bd6ec67d8443f5174b1359af01e9da73ef7e2d79f39db","signature":"5479876a6d0549f1536798428c4dcd46e8d7a5e5dcfb7d5b48da5aa237b8160f"},{"version":"36bd279cafc26def48a052ec89b8fc1676e1d055c73c8c9fb6e736883dad1ff8","signature":"9d34e36b56059d024baeb63a17467d01f2327d9568af58a7bbb168726a0b0503"},{"version":"60c5ea3628c3e2d99052a4f4de39019d4b316e40b970f722728ec678b8be1257","signature":"a438a2ecbecc0d1939a52439ca0150297820fc9d68bd9bddb6af5e9db7ab9457"},"40b6395de64bf52ad2043d18ae16bcca9b437a874dcb4c1c6829448b260a69ad"],"root":[[98,100],[119,187]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[101,1],[107,2],[113,3],[105,3],[112,3],[110,2],[111,4],[106,5],[109,4],[108,5],[115,4],[114,1],[118,6],[103,4],[116,4],[102,7],[97,8],[88,9],[90,10],[94,11],[91,12],[92,13],[87,14],[89,15],[43,16],[82,17],[73,18],[58,19],[55,18],[80,20],[56,18],[78,21],[57,22],[83,23],[59,24],[66,22],[61,18],[60,25],[75,22],[81,26],[79,22],[62,18],[70,22],[71,22],[63,25],[69,22],[64,25],[67,22],[68,18],[76,22],[65,18],[72,22],[74,22],[46,27],[53,28],[85,29],[54,30],[95,31],[44,27],[45,32],[50,33],[51,34],[49,35],[40,36],[96,37],[98,38],[100,38],[121,39],[124,40],[120,41],[125,42],[119,43],[126,43],[131,44],[127,45],[122,41],[129,46],[128,47],[123,48],[130,38],[132,38],[99,38],[133,38],[139,49],[135,50],[138,51],[137,52],[140,38],[143,53],[141,43],[144,54],[142,55],[148,56],[145,38],[147,57],[187,58],[149,38],[150,43],[151,59],[156,60],[152,61],[154,62],[153,63],[155,63],[134,38],[136,38],[159,64],[157,38],[160,38],[163,65],[161,38],[162,38],[158,43],[168,66],[178,67],[175,68],[172,69],[146,43],[179,70],[180,71],[176,72],[181,73],[184,74],[170,75],[173,76],[174,38],[171,77],[177,78],[183,79],[167,80],[182,81],[164,38],[165,38],[186,82],[166,43],[185,83],[169,84]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/collections.ts","../src/errors.ts","../src/culture/bidi.ts","../../../node_modules/@internationalized/date/dist/types/src/calendardate.d.ts","../../../node_modules/@internationalized/date/dist/types/src/types.d.ts","../../../node_modules/@internationalized/date/dist/types/src/queries.d.ts","../../../node_modules/@internationalized/date/dist/types/src/utils.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/gregoriancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/japanesecalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/buddhistcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/taiwancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/persiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/indiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/islamiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/hebrewcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/ethiopiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/createcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/conversion.d.ts","../../../node_modules/@internationalized/date/dist/types/src/string.d.ts","../../../node_modules/@internationalized/date/dist/types/src/dateformatter.d.ts","../../../node_modules/@internationalized/date/dist/types/src/index.d.ts","../src/culture/digits.ts","../src/culture/culture.ts","../src/culture/calendar.ts","../src/culture/numbers.ts","../src/culture/text.ts","../src/culture/coordinates.ts","../src/culture/date-format.ts","../src/culture/duration.ts","../src/culture/natural-date.ts","../src/culture/strings.ts","../src/culture/relative-time.ts","../src/culture/words.ts","../src/culture/index.ts","../src/enums/index.ts","../src/exec/diagnostics.ts","../src/services/abort.ts","../src/exec/options.ts","../src/services/clock.ts","../src/exec/trace.ts","../src/exec/safe-executor.ts","../src/exec/index.ts","../src/icons/generated/glyph-svg.ts","../src/icons/glyph.ts","../src/icons/icon.ts","../src/icons/glyph-slots.ts","../src/icons/icon-fonts.ts","../src/icons/packs.ts","../src/theme/color.ts","../src/icons/svg.ts","../src/icons/index.ts","../src/layout/index.ts","../src/route/address.ts","../src/route/catalogue.ts","../src/route/journey.ts","../src/route/sink.ts","../src/route/resolve.ts","../src/route/view.ts","../src/route/index.ts","../src/services/feedback.ts","../src/services/preferences.ts","../src/services/window.ts","../src/services/contracts.ts","../src/services/image-src.ts","../src/services/keys.ts","../src/services/motion.ts","../src/services/video-element.ts","../src/services/index.ts","../src/tokens/generated/metrics.ts","../src/tokens/generated/palettes.ts","../src/tokens/layout-metrics.ts","../src/tokens/css-vars.ts","../src/theme/aliases.ts","../src/tokens/shape.ts","../src/theme/oklch.ts","../src/theme/theme.ts","../src/theme/brand.ts","../src/theme/recipe.ts","../src/theme/sanitize.ts","../src/theme/appearance.ts","../src/theme/css-color.ts","../src/theme/token-themes.ts","../src/theme/appearance-kit.ts","../src/theme/contrast.ts","../src/theme/control-colors.ts","../src/theme/design.ts","../src/tokens/derived.ts","../src/theme/variants.ts","../src/theme/index.ts","../src/tokens/root.ts","../src/tokens/index.ts","../src/index.ts"],"fileIdsList":[[102],[101,102,105],[101,102,104],[101,102],[101,102,104,105],[101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117],[101],[40,95,96,164],[41,85,86,87],[52],[41,77,86,87,88,89,91,92,93],[41,85,86,87,89,90],[85,87],[41,85],[48,77],[42],[43],[50,54],[46],[40,50,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79],[46,50,54,77],[46,50,54],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82],[57,58],[46,50,54,58],[46,60,63],[45],[47,51,52,94],[43,46,47,48,50,52,53,54,83,84],[43,46],[51,85,94],[44,85],[45,46,54],[44,45,49,50],[48,85],[37,38,39],[40],[97],[97,99,118,120],[97,119,122,123],[97,99,119],[97,99,119,120,121],[97,99],[97,100,119,120,121,122,123,124,125,126,127,128,129,130],[97,121,123],[97,99,121,125,128],[97,99,120,122],[97,119,122],[97,133,135,137,138],[97,99,134],[97,99,128,133,134,135,136,137],[97,133,136],[97,99,142],[97,99,141,142],[97,99,141],[97,140,141,142,143,144,145,147],[97,99,140,141,146],[97,98,99,131,132,139,148,149,156,165,186,188],[97,99,150],[97,150,151,152,153,154,155],[97,150,151],[97,150,151,153],[97,150],[97,99,134,136,153,157,158,159],[97,134,136,157,158,159,160,161,162,163,164],[95,97],[97,167,169],[97,146,167,171,172,173,176,177,179],[97,99,146,167,171,173,174,175,176],[97,146,167,172,173],[97,146,167],[97,146,173],[97,146,172],[97,146,167,171,173,178],[97,146,170,172,173,174,175,177,178,179,180,181,182,183,185],[97,146],[97,99,167,171,172,173,174],[97,99,146,167],[97,146,167,172,173,176,177,178],[97,132,146,167,169,184],[97,166,167,168],[97,146,167,169],[97,166,167,168,169,171,184,187],[97,167,169,171,184],[97,169]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"42204f4543c2a8d92bdee756d5e3f09e2612497ad26b5c36a285d99d34efa377","signature":"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f"},{"version":"18609e84384328c186664b8c5b407e379ee197a4bc40d0e985b5c8050ce29df7","signature":"ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26"},{"version":"714560fb0e2ff57d67dcb3337a40ed0d9acddd7bcfad0e80ca3f0da9537dadaf","signature":"577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851"},{"version":"217c6f6adcf5111e57a516f20bb0f3624f4a0c8c95b4dfd757b2c191439d3aa4","impliedFormat":1},{"version":"302d0816f71d30d6615895a696aab24cf074ac8e9d5b90021c9a4a29f4121d27","impliedFormat":1},{"version":"a68e0e4868a1f61702c5b91cc2b0437168acc49e318896a891368f52e0420781","impliedFormat":1},{"version":"eb57169d1ef4957f9322372942255786231714bfd3475dec56980d4075a99bb8","impliedFormat":1},{"version":"d13b4c54324181a93a23ce284b3a7a1a2148a35aecc95c562353e28a799cbeab","impliedFormat":1},{"version":"3ec9cc2c9621174a735593a03b48415ce4e0e4002a1fd5e56fffa029739561c5","impliedFormat":1},{"version":"a9b763da625de15e560fa1d58de51694c5cc45ac84f942bf85bd022b03806d9b","impliedFormat":1},{"version":"801d799959670d8a15b3dfc95d4b11dc2a0dbdb288c1de56404022ee45206302","impliedFormat":1},{"version":"dc1897f61ef7cd55f6e7572332ff23225661fa8814f9f2137655a724445dfcc9","impliedFormat":1},{"version":"af4a925b523e9c391ee4d4451cf658849e9d92e2c6fb63ac39024b6264916751","impliedFormat":1},{"version":"d0139e18847aa6b6e33b8b8fa43ca8c6fc24baa26cfc6b845078500d5810e392","impliedFormat":1},{"version":"4d22f9e46854d0e44f827c33ed9b7da2d407a4ef6dc962a53345b1f9d0c75b13","impliedFormat":1},{"version":"6c60775bbec04bff8661a7601d0fe26e696dbd1d5287ffd7cba68e8978b4cf4c","impliedFormat":1},{"version":"1185a5e4d82d7b64bd5438019fcd6eec765a64f0cc36c3af738c5ae317c7b957","impliedFormat":1},{"version":"bf4a94dcf6335c0bb4ab927fb56a646ea9ac57123b2677c2eb9841302dc3f1da","impliedFormat":1},{"version":"10175cdd19d960f50473c229d98659a5b2534a48bd86acf647e8f2878aa25d29","impliedFormat":1},{"version":"7721b07afcc035f4aff3af52d1a982d7fbd2525a9ab82b197b67d8eefc915de6","impliedFormat":1},{"version":"e943098dc1cc3574e0d903a7ac2d90d6863d243dea9295b4a8fd34223a8277e1","impliedFormat":1},{"version":"a142f5afe12787e110a2e7ff7ee4a02647c022ff0839e7c7ae0f4a41278ae1f1","signature":"44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef"},{"version":"7db764083fb927c05340e42cae128a68b53ce9d4bddfc7845e4f7c4d22772a9f","signature":"d5621f942ab05c1c3594b5b59070c2f44d411f01ba97eae6bd60cd99ab6be102"},{"version":"bdfd4a2c14afeeb21b587929fcf19c8f90ef4b3b659415724b1fcb4375b537b9","signature":"69af30b9df408f844bd30e26ade1ba783c7624bd505ecef61a7e178624ece0eb"},{"version":"2c0754ee9b1637e850da1e2fa4e7b98e7eb30fc2b10a84c42fe33d9302383038","signature":"2064567cac7c44696477d8faeb79ec714624c341bee71ea7237ea2ef2e26e8a4"},{"version":"ac48ec0028c69cd75134b79ca6636cd7ccff7d6f674062f2dbb9ce131b15260c","signature":"235f39f2ec81e985a2b53a9d91604316593cab5825e0871f41858d040a68e0ea"},{"version":"3ac0b6ea92d871267625ea34f72a3090a7638a1d01c466c0ba7666e63c54c586","signature":"9d4e2786d2e8c5c304e5f5f282f38deff75dddf26d89e53c1c4872a7f9a7ecbc"},{"version":"521f08c786cd4cdaab2da57ce3dd6454f47a8edc501f8ba36c9b6ce4e223b6a6","signature":"3dd51a4b01e4a63709253bf28547f961d6bc64df7b7ced76bc0771800446ecd4"},{"version":"6c8dfe4a5ac25365b0c5c0817051732acead3f788f3567815ec775029b1661d2","signature":"28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a"},{"version":"24f4573a7b128e7a5f50de724a02ab69b27df707cdcfe044e6df2cccd3afe7c9","signature":"36f2fc7f6b07a9966273bda82f2b0b450b42d3320a9edaf91730c333ad86e257"},{"version":"b67192c27290fe55623013054f6c0ff6a63311e1266467c2f675dc4d7aab93b8","signature":"07477fef265592fa976f17bca69f4d03c112e321357c49d17232b5b5e493caf5"},{"version":"7bb7ff36e4fae5f3f2eeb2d1e70b46fac0412da4e4b65efd28fc95e5ba622995","signature":"ddb01c2474a47c2411bde75e969c547fd52dd0de9d39837970a6ec5effea934f"},{"version":"7eab0819fe34344e8b7c1827df8fd1611f5fa67e545d73b0229b0e18075af508","signature":"995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7"},{"version":"5327d23180a822f022eb490921a8773c42099f1316acf6be5235600e969c19cf","signature":"75a9c0d9c7fe1140420a459de28b333a69a4733654da7111da2a0f8f4cc6b25f"},{"version":"e983009f8ace928b08216908294b679b05ba261050e72803bfda43726b2219aa","signature":"5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7"},{"version":"16307e253df4bb417223e5814bcc5742d1b7d9b893bd72418b8cfe8e6f7ab474","signature":"abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018"},{"version":"cc74809c9fbebdf300941acce9a07ea6ff52bf91840e738014d4dc2645f153bb","signature":"f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c"},{"version":"38ccbb46155bf41c02e47d4bd2167b1a0f6b5429be49596da7e6b203cd7176eb","signature":"db505b070be7771c50bb80800e4a16333bea91619030d33e9d1b1d6d245fde72"},{"version":"3c106b0a8bab93d06df0fb9fb79a4814e9d333aca28138f2e8f053f9260cea38","signature":"d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93"},{"version":"23f824bd861a6cf696a4571ffeca7cd5130ff1b4d30ade235d6fed7fbc6fc78f","signature":"cefcb1f078d33a40c707d4a239ee518a595d7553b4205a4a23c1bf84a743a94e"},{"version":"5ab239682bfcdf7c0d429cfed2f0bd83489103ffab0e2be6b6f3014af19dc316","signature":"4f83143f730ad8fd66ec8f779b2f43399ed4b84aec6f5df5fdc4a2436739e934"},{"version":"4719b38ecf1f698d62ba291298047877c04dbc1848a27307a4edeaeee1bc66c7","signature":"830e8c15e2893c5864835fe97bad3fdc5d46bb9b72a66851365b8411347dda10"},{"version":"f2175ae864cb2550da788b15fc4a39aa398df0665466213d25371c5d7b685c21","signature":"b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9"},{"version":"26c1a7b48b53476c1dc0e107d0b0fe71b6148f4e320f660a0bfb7d20e67c1835","signature":"068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf"},{"version":"854f9b8c6d757b73f1c168038e3a5b24e2ca973d803c49ad43949447d4615f07","signature":"4285e8b8ec9bdea3ca2630c4d79f715587cc3262e5613fbd7bea8ffd32cc097c"},{"version":"03b57a8957f6cf8905df145665b4e64b8368c98e8b6802f8cff765ffc25e27c8","signature":"2b8a3fa14f4b24cbb3c2c783ae0805bc1a857cdf7d35308956f3660ef0229c3c"},{"version":"24189dadf4ca8b95ef97800d08ca7c98abdf1d6f0a1955fe66d94608fce724f8","signature":"f55ab5598602804a77bd7ff4f8442ceb29c6603120e1e6fe39b346dbcea9a438"},{"version":"f1172c2e3d40c9560d42e228cc14af529d8353de8df93caea82ce03fdffe4464","signature":"7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db"},{"version":"4e86b93241304e96d9fdc6554c7bf88dac95b8ea2484327a899a677a25d5e5ca","signature":"c15fea45b893c73bcad76ae565d59a0472ae0f74713ead9a9e7eb37085260c09"},{"version":"c71d509a443c45af8cd7bd84ea979bd5410677deaaf1983921949cb4cd952a05","signature":"344f7de9b0f6fa5ff42d99bac404c169596a2272a8b3d225beec056e4106bcb9"},{"version":"4815ef09b602fc55d4316ff4f04a7ead013f3827fcdd2436c3179a90ad9a45b9","signature":"ee2cc74d84f07861cccd51753c16296dfa24d6a19443262b4ec957bd451c46eb"},{"version":"9633cfd1413933ac2b54fc9959dc1591dc7b3d3b502b1fa3b3165407adb99002","signature":"cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e"},{"version":"52ba4ecb0b6a0c7250b7a10edf12ed75bafeb7ce812ae78255e3a149658dfe41","signature":"0fe3cc2e808353835af39798e6e169bbc1ce0cf473122316a019376a1d6d98cb"},{"version":"6069d1262128233eb04fb50264af01eb16258a8ba9a5bef9ebbaa8133459ec91","signature":"67b7d490a2cf3547f783c6f8e3019a6864f12cc657d17cf378146e7073cceb0c"},{"version":"b5f6738fc61eefd5acebabba48278250c0de84074f5c04a4c60414554d8f672b","signature":"6365c6701ad1cf8d99205387000a0324a573890107b2f475fd6a82174f0389c3"},{"version":"11fd46a411f0b66dd99a50a2274a73929d973614a5fa81bb9fb51aa6ee0cce92","signature":"d89fd83960c2343d5af55b3c174b5997272cd89af982d41bc21af8b8332cf149"},{"version":"79e9f560eae83744faa3e53154ee9bdb9f3941506eadd8d3a87935b2f90ccf4a","signature":"86a386c8741a08a24b2491c0d160bc2ee271b728c1f152d6705ffd69024679ee"},{"version":"10cf6b1e023bbb169c90ad7ff1c792552bdb73baf9f277ee1ca3e213b9b37452","signature":"49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3"},{"version":"1238f61c8db8e5ab8beaf5a9dbe5cad66661666e4e944fe92c38694c6a20cc1c","signature":"6f8692b9b0416b85506884f641a30a8f75b0b035c9948020a7117ca2faa6a840"},{"version":"b278c7dbac38a0c57ebcde6b848e7cd017a59f9ca770d9aaa4c83d6c09cf86ef","signature":"cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757"},{"version":"cb8bba022b800c1acb8ef8bfe465bfef7e43d22d06f20a8d6e7503aca0f4d570","signature":"ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669"},{"version":"78787e5654400b1b46ac3c2c9501c603af4d50c6ca05addebfe79397af3b75d3","signature":"8a9263cf2608c56652f54cd8948ea817a6d41e8f2b80423877848468534a1337"},{"version":"b3b08cf18fbe764c08ca6dbadf9204cbeffbbf10aa21a2e7a2e95e17eff63d94","signature":"61fd6e0f917f13ea2d2d9e60843d325f1e34732a71474e0013d3453047c73247"},{"version":"e058e7d0e8e68dadc2a12f5c54c9c87626bd5d0d5abe75b4b25119bb773e0c9f","signature":"eb14fd861c19490984176eb4d5174447ffe26259c005ec0e5ff7aaed5b14d4d1"},{"version":"6f645e3a7eee95a978401f8212659c6c8afaa5a9eeffda189d7fa3da4ee5313d","signature":"b07396169cb3e41e6289a5723460f2bbde7a77817313e060f3d1433301063e2a"},{"version":"db8a43eda6f42311a421d8839efe110a9436be9bc55eb5cd9ccd53c687b52537","signature":"216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d"},{"version":"fef9fde35f3f727b37caee4126d54b27a4142393cc315c19c29cc72ec805cda8","signature":"62bd9558daecef5e44f7a68b7d1a931157caada3f737205ce21d48d375e680fc"},{"version":"915a2b90a3a8b46952a7a78f47847f0e26b5cefe8f69ca3b5024d2a53f085ada","signature":"b7bfab852efb8b38116e8c250eabd6720ddb0d1e5dcfaa9404f176e794c8951b"},{"version":"028144708663445c29ad9ca6be95694108a6d4decaff0709a9245977fef98e8e","signature":"ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3"},{"version":"21c4b66fbb8ad882f52c2825c45cb59ced1017b9bfc531fb8a0ef60d1240b882","signature":"faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7"},{"version":"fe66054b645111cf483c589411e2bd9e2c0ccbde0ba365e029c6c20653f02112","signature":"298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33"},{"version":"d615cba0a460f5568ce3473a1434f6ccf4511042824ce281682e499a95a676c8","signature":"1862daa6bc69b267a2b595149c5bced13ce2440d0d6625d291a5450d9d3118ae"},{"version":"4c3cbd29af3564f4aca3daaf5ca047f485b217af41f529815002a98933dab476","signature":"ed24498d7fe499efeb2a3f2df83a29cd3b8b83a982d01e7d73f4cc0166e3982b"},{"version":"0cb9b61e4d36bf870e79aada49bd42e797b928202f5350efc5d38c674a5dda1e","signature":"6687ad856daa2112d8a29e1eaa432b5f50a359c137d8fa103856cb082fa37d73"},{"version":"3cfad95bc4e3a7cae2da5cb4b5747145754f734c50aed196f681c08081f4e61a","signature":"93d15026bf4213d204b0ed4bd102a82945c519a716d51c245dca01d6ca7d0222"},{"version":"a440fc408fef832b41e8dd4988e1ab8d06c6d82a849c33efc9f59af0b8a35994","signature":"27c5013992e6c2d1a82395d90ac5877a70066f03f74b2a91d70e9eafa0666655"},{"version":"183c11473cd567bc10ae010c8db5e4205a91754bc0a3cb6db7dcdcd644d137b6","signature":"b1dff8567dd02ba98547471feb38597022193ca26b6ce853d28d2092b36669f6"},{"version":"b0740410649ef8daf5925d4bbac60c8f4f79a31c61e8ce02e5ad26c8c11705ad","signature":"264dc4b816ffdeabcb52d9698df80b809d3d616e1d394b9891f8163acdc69140"},{"version":"fa790fa82a01d9f729f941c5c80e4eec51314ce7afacfad53025970fe495d321","signature":"a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15"},{"version":"76f792c697c5ac05595d1ce061ae0b1b98296a76a5535868071d622455425a7c","signature":"dca501d8eff2db8c8309ccb2667b3b70f6e80290b91081bd740fe933fadc0c03"},{"version":"89921042d23f5b525d2b269e3754f7fdccd12dccd4491363248c5e79bb88e02e","signature":"718f81461dec01a5272f4ccf5efb006306f28ccd8f70b3c49e0221b9db21fdbe"},{"version":"73f46861ae92cd4ccac31f5045c6b548952a844d84fcbf63499c1a59c986619f","signature":"f484e0e4fa693a32c3ec182f8cd0ad3994c5efdc44c5969fd8c236c00a772d30"},{"version":"1cb16dd6dabd3a510cf89485546a34d38bb885f34f981627e46fdf7cebc3948f","signature":"2e3bd3aa1d6f941426e608169489cb33633ef7fb0294677e0d3151ef6c8dc913"},{"version":"312605bae92cef4d14e1c11bd9d624a907302f2360c43764ccb63437b8eabce0","signature":"e6c6e5af757c1a353c031cbd0e917586fe9ee9767a80937c7763718431cefb17"},{"version":"8c1ccf55df4d01257496b438fa372bea784e018d9b7327bd1fbeb90ad1f0aaf9","signature":"edc33c8870895bd9b0255d99fc8213efeddc0acf0031b7fa6cd8cc372f446c46"},{"version":"05874ba226e10081ca4c853d185e1f88701abdc601bd661f00338a730805824b","signature":"29ffac17044f96c464965f99ecb812783d5b524d6187cc9cc55b784abdf95fb2"},{"version":"2d44ce57513b0cd6e37ae35ba15ec92b5e84d3af94c831ce4fb15bb682f9bb98","signature":"c742b17e5e316108f45f793bdfe9e074092b12cb6e8d8a1683f6c62af6b0465c"},{"version":"aff24855ea3fba97546860cda5e8d435e40a5d2f02b93342dcc7d8b694131c05","signature":"ec73711a5e3798a36346e15ad1c2c3521a5e3e1515436835fd37986c8cd3c7fe"},{"version":"e89f8cb160b8a1855b3bd6ec67d8443f5174b1359af01e9da73ef7e2d79f39db","signature":"5479876a6d0549f1536798428c4dcd46e8d7a5e5dcfb7d5b48da5aa237b8160f"},{"version":"36bd279cafc26def48a052ec89b8fc1676e1d055c73c8c9fb6e736883dad1ff8","signature":"9d34e36b56059d024baeb63a17467d01f2327d9568af58a7bbb168726a0b0503"},{"version":"60c5ea3628c3e2d99052a4f4de39019d4b316e40b970f722728ec678b8be1257","signature":"a438a2ecbecc0d1939a52439ca0150297820fc9d68bd9bddb6af5e9db7ab9457"},"40b6395de64bf52ad2043d18ae16bcca9b437a874dcb4c1c6829448b260a69ad"],"root":[[98,100],[119,189]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[101,1],[107,2],[113,3],[105,3],[112,3],[110,2],[111,4],[106,5],[109,4],[108,5],[115,4],[114,1],[118,6],[103,4],[116,4],[102,7],[97,8],[88,9],[90,10],[94,11],[91,12],[92,13],[87,14],[89,15],[43,16],[82,17],[73,18],[58,19],[55,18],[80,20],[56,18],[78,21],[57,22],[83,23],[59,24],[66,22],[61,18],[60,25],[75,22],[81,26],[79,22],[62,18],[70,22],[71,22],[63,25],[69,22],[64,25],[67,22],[68,18],[76,22],[65,18],[72,22],[74,22],[46,27],[53,28],[85,29],[54,30],[95,31],[44,27],[45,32],[50,33],[51,34],[49,35],[40,36],[96,37],[98,38],[100,38],[121,39],[124,40],[120,41],[125,42],[119,43],[126,43],[131,44],[127,45],[122,41],[129,46],[128,47],[123,48],[130,38],[132,38],[99,38],[133,38],[139,49],[135,50],[138,51],[137,52],[140,38],[143,53],[141,43],[144,54],[142,55],[148,56],[145,38],[147,57],[189,58],[149,38],[150,43],[151,59],[156,60],[152,61],[154,62],[153,63],[155,63],[134,38],[136,38],[160,64],[157,38],[161,38],[165,65],[162,38],[163,38],[158,43],[164,66],[159,43],[170,67],[180,68],[177,69],[174,70],[146,43],[181,71],[182,72],[178,73],[183,74],[186,75],[172,76],[175,77],[176,38],[173,78],[179,79],[185,80],[169,81],[184,82],[166,38],[167,38],[188,83],[168,43],[187,84],[171,85]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -4,6 +4,7 @@ import type { G9AbortSignal } from './abort.js';
|
|
|
4
4
|
import type { G9Clock } from './clock.js';
|
|
5
5
|
import type { G9Haptics, G9Sounds } from './feedback.js';
|
|
6
6
|
import type { G9PreferenceStore } from './preferences.js';
|
|
7
|
+
import type { G9WindowControl } from './window.js';
|
|
7
8
|
/** Result of asking for a runtime permission. `'restricted'`: blocked by policy, the user cannot grant it. */
|
|
8
9
|
export type G9PermissionStatus = 'granted' | 'denied' | 'restricted';
|
|
9
10
|
/** Options of one dictation session. */
|
|
@@ -144,10 +145,24 @@ export interface G9MediaProvider {
|
|
|
144
145
|
}
|
|
145
146
|
/** A file the host picked or received (a handle: read and release it through the host's own files API). */
|
|
146
147
|
export interface G9FileRef {
|
|
148
|
+
/** The host's handle: what the host side reads the file by (on the web, `g9WebFile(id)` of the page). */
|
|
147
149
|
readonly id: string;
|
|
148
150
|
readonly name?: string;
|
|
149
151
|
readonly mime?: string;
|
|
152
|
+
/** Bytes. */
|
|
150
153
|
readonly size?: number;
|
|
154
|
+
/** A URL the page can show it from (2.10.0; the web host gives a `blob:` URL), when the host has one. */
|
|
155
|
+
readonly uri?: string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* The screen colour picker (2.10.0): a browser's `EyeDropper`, a desktop shell's. Optional: `G9ColorPicker` shows its
|
|
159
|
+
* eyedropper only when `available()` resolves true.
|
|
160
|
+
*/
|
|
161
|
+
export interface G9EyeDropper {
|
|
162
|
+
/** Whether this host can pick a colour from the screen now. */
|
|
163
|
+
available(): Promise<boolean>;
|
|
164
|
+
/** The colour picked (`#RRGGBB`), or `null` when the person cancelled. */
|
|
165
|
+
pick(): Promise<string | null>;
|
|
151
166
|
}
|
|
152
167
|
/**
|
|
153
168
|
* The system file chooser and camera (G9Hub `platform().files`). Optional: without it `G9DropZone` shows its area
|
|
@@ -235,6 +250,13 @@ export interface G9Capabilities {
|
|
|
235
250
|
readonly sounds?: G9Sounds;
|
|
236
251
|
/** The file chooser and camera (optional: `G9DropZone`). */
|
|
237
252
|
readonly files?: G9FilePicker;
|
|
253
|
+
/** The screen colour picker (2.10.0; optional: `G9ColorPicker`'s eyedropper). */
|
|
254
|
+
readonly eyedropper?: G9EyeDropper;
|
|
255
|
+
/**
|
|
256
|
+
* The app's window on a desktop host (2.9.0; optional: `useG9WindowControl` of `@g9tm/lynxcontrols/desktop` answers an
|
|
257
|
+
* unavailable control without it, whose calls fail with `G9WindowUnavailableError`).
|
|
258
|
+
*/
|
|
259
|
+
readonly window?: G9WindowControl;
|
|
238
260
|
}
|
|
239
261
|
/** The name of a capability. */
|
|
240
262
|
export type G9CapabilityName = keyof G9Capabilities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/services/contracts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../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iB,CAAC,CAAC,SAAS,gBAAgB,EAC1D,QAAQ,EAAE,OAAO,CAAC,cAAc,CAAC,EACjC,IAAI,EAAE,CAAC,GACN,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAIhC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,QAAQ,IAAI,cAAc,CAEhH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services/contracts.js","sources":["../../src/services/contracts.ts"],"sourcesContent":["// Platform capability contracts (plan/specs/01-Architecture.md §8). Foundation defines the shapes only; the app\n// supplies implementations through the WP02 provider (`<G9Provider services={…}>`), platform adapters live in the\n// native and Lynxtron packages (WP12–WP14), and the features that use them (fields' dictation WP03, barcode WP09,\n// IntroCarousel WP09) own the behaviour. Nothing here requests a permission or touches a native module.\nimport { G9Error } from '../errors';\nimport type { G9RouteSink } from '../route/sink';\nimport type { G9AbortSignal } from './abort';\nimport type { G9Clock } from './clock';\nimport type { G9Haptics, G9Sounds } from './feedback';\nimport type { G9PreferenceStore } from './preferences';\n\n/** Result of asking for a runtime permission. `'restricted'`: blocked by policy, the user cannot grant it. */\nexport type G9PermissionStatus = 'granted' | 'denied' | 'restricted';\n\n/** Options of one dictation session. */\nexport interface G9SpeechToTextOptions {\n /** BCP 47 locale the recogniser listens for (from the culture, e.g. `'fa-IR'`). */\n readonly locale: string;\n /** Aborting stops listening; the session then settles with `{ status: 'cancelled' }`. */\n readonly signal?: G9AbortSignal;\n /** Interim hypotheses while the user speaks, when the platform reports them. */\n readonly onPartialResult?: (text: string) => void;\n}\n\n/** How a dictation session ended. Expected outcomes are results, not errors (specs/03 §7). */\nexport type G9SpeechToTextResult =\n | { readonly status: 'recognized'; readonly text: string }\n | { readonly status: 'cancelled' }\n | { readonly status: 'no-match' }\n | { readonly status: 'denied' };\n\n/**\n * Speech recognition for dictation into fields (MAUI `IG9SpeechToText`). Optional: without it the microphone\n * affordance is hidden. A platform fault rejects with a `G9Error`.\n */\nexport interface G9SpeechToText {\n /** Whether a recogniser exists for this locale on this device (no permission prompt). */\n isAvailable(locale: string): Promise<boolean>;\n /** Asks for microphone and speech permission (only ever from a user action). */\n requestPermission(): Promise<G9PermissionStatus>;\n /** Listens once and settles exactly once. */\n listen(options: G9SpeechToTextOptions): Promise<G9SpeechToTextResult>;\n}\n\n/** Options of one scan. */\nexport interface G9ScanOptions {\n /** Symbologies to accept (e.g. `'qr'`, `'ean13'`, `'code128'`); empty or absent means every one the scanner has. */\n readonly formats?: ReadonlyArray<string>;\n /** Aborting closes the scanner; the scan then settles with `{ status: 'cancelled' }`. */\n readonly signal?: G9AbortSignal;\n}\n\n/** How a scan ended. */\nexport type G9ScanResult =\n | { readonly status: 'scanned'; readonly text: string; readonly format: string }\n | { readonly status: 'cancelled' }\n | { readonly status: 'denied' };\n\n/** Barcode/QR scanning supplied by the app (WP09 barcode package). Optional: without it the scan action is hidden. */\nexport interface G9Scanner {\n /** Whether a camera scanner is usable on this device (no permission prompt). */\n isAvailable(): Promise<boolean>;\n /** Opens the scanner and settles exactly once. */\n scan(options?: G9ScanOptions): Promise<G9ScanResult>;\n}\n\n/** A media reference as the app describes it (an asset name, a file or a remote URI). */\nexport type G9MediaSource =\n | { readonly kind: 'image'; readonly uri: string }\n | { readonly kind: 'image'; readonly asset: string }\n | { readonly kind: 'video'; readonly uri: string }\n | { readonly kind: 'video'; readonly asset: string };\n\n/** A source resolved to something the platform can display; `uri` is what `<image>`/the video XElement load. */\nexport interface G9ResolvedMedia {\n readonly kind: 'image' | 'video';\n readonly uri: string;\n /** Intrinsic size when known, so layout can reserve space before the first frame. */\n readonly width?: number;\n readonly height?: number;\n}\n\n/** What a {@link G9MediaPlayer} tells its owner. */\nexport type G9MediaPlayerEvent =\n /** The first frame is ready to show. */\n | { readonly type: 'ready' }\n /** A looping video is about to end (`seconds` left); the owner may fade out. */\n | { readonly type: 'nearEnd'; readonly seconds: number }\n /** A looping video restarted from the beginning; the owner may fade back in. */\n | { readonly type: 'looped' }\n /** Playback failed; the owner falls back to the slide image. */\n | { readonly type: 'error'; readonly error: unknown };\n\n/** Options of {@link G9MediaProvider.createPlayer}. */\nexport interface G9MediaPlayerOptions {\n readonly loop?: boolean;\n readonly muted?: boolean;\n /** Best-effort seek applied once after the media opened (MAUI `InitialVideoStartSeconds`). */\n readonly startSeconds?: number;\n /** How early `nearEnd` fires, in seconds. */\n readonly nearEndSeconds?: number;\n}\n\n/**\n * One video player created by the app's media provider. `view` is what the control renders (the platform video\n * XElement the host registered, built by the app); the control never names a video tag itself.\n */\nexport interface G9MediaPlayer {\n /** The element to render (a ReactNode built by the app's provider; foundation keeps it opaque). */\n readonly view: unknown;\n play(): void;\n pause(): void;\n /** Releases the native player; idempotent. */\n dispose(): void;\n /** Subscribes to player events; returns the unsubscribe function. */\n subscribe(listener: (event: G9MediaPlayerEvent) => void): () => void;\n}\n\n/**\n * Resolves image and video sources for IntroCarousel and other media controls (WP09). Video is part of the contract on\n * every target, desktop included (decision D14 is open; no scope reduction is accepted). A provider that cannot play\n * video yet omits `createPlayer` or returns `false` from `supportsVideo`; controls then show the slide image and say\n * why (`'video-unsupported'`).\n */\nexport interface G9MediaProvider {\n resolve(source: G9MediaSource, options?: { readonly signal?: G9AbortSignal }): Promise<G9ResolvedMedia>;\n /** Whether this target can play video now (no permission prompt). Absent = `createPlayer` decides. */\n supportsVideo?(): boolean;\n /** Creates a player for a resolved video. The control disposes it on slide change, deactivation and unmount. */\n createPlayer?(media: G9ResolvedMedia, options?: G9MediaPlayerOptions): G9MediaPlayer;\n}\n\n/** A file the host picked or received (a handle: read and release it through the host's own files API). */\nexport interface G9FileRef {\n readonly id: string;\n readonly name?: string;\n readonly mime?: string;\n readonly size?: number;\n}\n\n/**\n * The system file chooser and camera (G9Hub `platform().files`). Optional: without it `G9DropZone` shows its area\n * disabled. A host that can drop files on the window emits `g9:drag` `{ active }` and `g9:drop` `{ files }`.\n */\nexport interface G9FilePicker {\n /** Opens the chooser filtered by category; resolves `[]` when cancelled. */\n pick(options: {\n readonly accept: 'image' | 'video' | 'media' | 'audio' | 'any';\n readonly multiple: boolean;\n }): Promise<readonly G9FileRef[]>;\n /** One photo from the camera, or `null` when cancelled. */\n camera?(options: { readonly mode: 'photo'; readonly facing?: 'user' | 'environment' }): Promise<G9FileRef | null>;\n /** Gives a file the app will not use back to the host. */\n release?(id: string): void;\n}\n\n/** Safe-area insets in logical pixels. */\nexport interface G9SafeInsets {\n readonly top: number;\n readonly end: number;\n readonly bottom: number;\n readonly start: number;\n}\n\n/** Android soft-input policy while a flow needs it (MAUI `G9KeyboardHelper.UseAndroidPanSoftInputMode`). */\nexport type G9SoftInputMode = 'pan' | 'resize';\n\n/**\n * Host integration the provider and overlays need (MAUI page/window plumbing), supplied by the native host. Required.\n * The system back press does not go through this object: the host sends a global event (default `g9:back`, specs/02\n * §4) and the provider dispatches it to the active `G9Host`; `exit` is what happens when nothing handled it.\n */\nexport interface G9HostServices {\n /** Leaves the app the platform way (Android moves the task to the back; desktop closes the window). */\n exit(): void;\n /** Hides the soft keyboard and clears focus (MAUI `G9KeyboardHelper.HideKeyboardAndClearFocus`). */\n hideKeyboard(): void;\n /** Current safe-area insets. */\n getSafeInsets(): G9SafeInsets;\n /** Called when the insets change (rotation, window resize). Returns an unsubscribe function. */\n subscribeSafeInsets(listener: (insets: G9SafeInsets) => void): () => void;\n /**\n * Switches the window's soft-input mode (Android only; `'resize'` is the app default). Hosts on platforms without\n * soft-input modes (iOS, desktop) omit it, which is where MAUI's helper was a no-op too.\n */\n setSoftInputMode?(mode: G9SoftInputMode): void;\n /**\n * Hears whether a G9 text input has the focus (true when the first one takes it, false when the last one lets it\n * go), for a host that handles keys itself: its single-key shortcuts stay quiet while the person types (G9Hub 126,\n * 2.6.10). Optional; the app reads the same from `g9TextFocus` / `useG9TextFocused`.\n */\n textFocus?(focused: boolean): void;\n /**\n * Screen protection on or off while sensitive content shows (2.7.1, G9Hub 147): Android `FLAG_SECURE`, desktop\n * content protection (Windows `WDA_EXCLUDEFROMCAPTURE`, macOS `sharingType = none`); iOS cannot block a capture and\n * reports one (`captured`). Optional: a host without it protects nothing. Apps hold it through\n * `useG9ScreenProtection` / `g9HoldScreenProtection` (nested holds), not directly.\n */\n setScreenProtection?(on: boolean): Promise<G9ScreenProtectionState>;\n}\n\n/** What {@link G9HostServices.setScreenProtection} reports. */\nexport interface G9ScreenProtectionState {\n /** Captures (screenshots, recordings, casting) show the app blank. */\n readonly blocked: boolean;\n /** The screen is being recorded, mirrored or cast right now (iOS reports it; elsewhere false). */\n readonly captured: boolean;\n}\n\n/** Every service the app can supply. Required ones are listed in {@link g9RequiredCapabilities}. */\nexport interface G9Capabilities {\n readonly clock: G9Clock;\n readonly preferences: G9PreferenceStore;\n readonly host: G9HostServices;\n readonly speech?: G9SpeechToText;\n readonly scanner?: G9Scanner;\n readonly media?: G9MediaProvider;\n /**\n * The router places declare themselves to (`@g9tm/lynxcontrols/route` makes one). Optional: without it sheets, tab views\n * and hosts work as before and a `route` option only reports a one-time diagnostics warning.\n */\n readonly route?: G9RouteSink;\n /** Haptic feedback (optional: without it controls stay silent). */\n readonly haptics?: G9Haptics;\n /** Sound feedback (optional). */\n readonly sounds?: G9Sounds;\n /** The file chooser and camera (optional: `G9DropZone`). */\n readonly files?: G9FilePicker;\n}\n\n/** The name of a capability. */\nexport type G9CapabilityName = keyof G9Capabilities;\n\n/** Capabilities without which the provider cannot mount. */\nexport const g9RequiredCapabilities: ReadonlyArray<G9CapabilityName> = Object.freeze(['clock', 'preferences', 'host']);\n\n/** Thrown when code needs a capability the app did not supply (specs/03 §7: `G9CapabilityMissingError('speech')`). */\nexport class G9CapabilityMissingError extends G9Error {\n /** The missing capability. */\n readonly capability: string;\n\n constructor(capability: string, message?: string) {\n super('capability-missing', message ?? `The '${capability}' service is not available; supply it to G9Provider.`);\n this.name = 'G9CapabilityMissingError';\n this.capability = capability;\n }\n}\n\n/** `true` when the capability is present (optional features use this to hide themselves). */\nexport function hasCapability(services: Partial<G9Capabilities>, name: G9CapabilityName): boolean {\n return services[name] != null;\n}\n\n/** The capability, or throws {@link G9CapabilityMissingError} naming it. */\nexport function requireCapability<K extends G9CapabilityName>(\n services: Partial<G9Capabilities>,\n name: K,\n): NonNullable<G9Capabilities[K]> {\n const service = services[name];\n if (service == null) throw new G9CapabilityMissingError(name);\n return service as NonNullable<G9Capabilities[K]>;\n}\n\n/**\n * Checks every required capability at once (the provider calls this at mount).\n * @throws {G9CapabilityMissingError} for the first missing one, in {@link g9RequiredCapabilities} order.\n */\nexport function assertRequiredCapabilities(services: Partial<G9Capabilities>): asserts services is G9Capabilities {\n for (const name of g9RequiredCapabilities) requireCapability(services, name);\n}\n"],"names":["g9RequiredCapabilities","Object","G9CapabilityMissingError","G9Error","capability","message","hasCapability","services","name","requireCapability","service","assertRequiredCapabilities"],"mappings":";;;;;;;;;;;AA0OO,MAAMA,yBAA0DC,OAAO,MAAM,CAAC;IAAC;IAAS;IAAe;CAAO;AAG9G,MAAMC,iCAAiCC;IAI5C,YAAYC,UAAkB,EAAEC,OAAgB,CAAE;QAChD,KAAK,CAAC,sBAAsBA,QAAAA,UAAAA,UAAW,CAAC,KAAK,EAAED,WAAW,oDAAoD,CAAC,GAHjH,uBAAS,cAAT;QAIE,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,UAAU,GAAGA;IACpB;AACF;AAGO,SAASE,cAAcC,QAAiC,EAAEC,IAAsB;IACrF,OAAOD,AAAkB,QAAlBA,QAAQ,CAACC,KAAK;AACvB;AAGO,SAASC,kBACdF,QAAiC,EACjCC,IAAO;IAEP,MAAME,UAAUH,QAAQ,CAACC,KAAK;IAC9B,IAAIE,AAAW,QAAXA,SAAiB,MAAM,IAAIR,yBAAyBM;IACxD,OAAOE;AACT;AAMO,SAASC,2BAA2BJ,QAAiC;IAC1E,KAAK,MAAMC,QAAQR,uBAAwBS,kBAAkBF,UAAUC;AACzE"}
|
|
1
|
+
{"version":3,"file":"services/contracts.js","sources":["../../src/services/contracts.ts"],"sourcesContent":["// Platform capability contracts (plan/specs/01-Architecture.md §8). Foundation defines the shapes only; the app\n// supplies implementations through the WP02 provider (`<G9Provider services={…}>`), platform adapters live in the\n// native and Lynxtron packages (WP12–WP14), and the features that use them (fields' dictation WP03, barcode WP09,\n// IntroCarousel WP09) own the behaviour. Nothing here requests a permission or touches a native module.\nimport { G9Error } from '../errors';\nimport type { G9RouteSink } from '../route/sink';\nimport type { G9AbortSignal } from './abort';\nimport type { G9Clock } from './clock';\nimport type { G9Haptics, G9Sounds } from './feedback';\nimport type { G9PreferenceStore } from './preferences';\nimport type { G9WindowControl } from './window';\n\n/** Result of asking for a runtime permission. `'restricted'`: blocked by policy, the user cannot grant it. */\nexport type G9PermissionStatus = 'granted' | 'denied' | 'restricted';\n\n/** Options of one dictation session. */\nexport interface G9SpeechToTextOptions {\n /** BCP 47 locale the recogniser listens for (from the culture, e.g. `'fa-IR'`). */\n readonly locale: string;\n /** Aborting stops listening; the session then settles with `{ status: 'cancelled' }`. */\n readonly signal?: G9AbortSignal;\n /** Interim hypotheses while the user speaks, when the platform reports them. */\n readonly onPartialResult?: (text: string) => void;\n}\n\n/** How a dictation session ended. Expected outcomes are results, not errors (specs/03 §7). */\nexport type G9SpeechToTextResult =\n | { readonly status: 'recognized'; readonly text: string }\n | { readonly status: 'cancelled' }\n | { readonly status: 'no-match' }\n | { readonly status: 'denied' };\n\n/**\n * Speech recognition for dictation into fields (MAUI `IG9SpeechToText`). Optional: without it the microphone\n * affordance is hidden. A platform fault rejects with a `G9Error`.\n */\nexport interface G9SpeechToText {\n /** Whether a recogniser exists for this locale on this device (no permission prompt). */\n isAvailable(locale: string): Promise<boolean>;\n /** Asks for microphone and speech permission (only ever from a user action). */\n requestPermission(): Promise<G9PermissionStatus>;\n /** Listens once and settles exactly once. */\n listen(options: G9SpeechToTextOptions): Promise<G9SpeechToTextResult>;\n}\n\n/** Options of one scan. */\nexport interface G9ScanOptions {\n /** Symbologies to accept (e.g. `'qr'`, `'ean13'`, `'code128'`); empty or absent means every one the scanner has. */\n readonly formats?: ReadonlyArray<string>;\n /** Aborting closes the scanner; the scan then settles with `{ status: 'cancelled' }`. */\n readonly signal?: G9AbortSignal;\n}\n\n/** How a scan ended. */\nexport type G9ScanResult =\n | { readonly status: 'scanned'; readonly text: string; readonly format: string }\n | { readonly status: 'cancelled' }\n | { readonly status: 'denied' };\n\n/** Barcode/QR scanning supplied by the app (WP09 barcode package). Optional: without it the scan action is hidden. */\nexport interface G9Scanner {\n /** Whether a camera scanner is usable on this device (no permission prompt). */\n isAvailable(): Promise<boolean>;\n /** Opens the scanner and settles exactly once. */\n scan(options?: G9ScanOptions): Promise<G9ScanResult>;\n}\n\n/** A media reference as the app describes it (an asset name, a file or a remote URI). */\nexport type G9MediaSource =\n | { readonly kind: 'image'; readonly uri: string }\n | { readonly kind: 'image'; readonly asset: string }\n | { readonly kind: 'video'; readonly uri: string }\n | { readonly kind: 'video'; readonly asset: string };\n\n/** A source resolved to something the platform can display; `uri` is what `<image>`/the video XElement load. */\nexport interface G9ResolvedMedia {\n readonly kind: 'image' | 'video';\n readonly uri: string;\n /** Intrinsic size when known, so layout can reserve space before the first frame. */\n readonly width?: number;\n readonly height?: number;\n}\n\n/** What a {@link G9MediaPlayer} tells its owner. */\nexport type G9MediaPlayerEvent =\n /** The first frame is ready to show. */\n | { readonly type: 'ready' }\n /** A looping video is about to end (`seconds` left); the owner may fade out. */\n | { readonly type: 'nearEnd'; readonly seconds: number }\n /** A looping video restarted from the beginning; the owner may fade back in. */\n | { readonly type: 'looped' }\n /** Playback failed; the owner falls back to the slide image. */\n | { readonly type: 'error'; readonly error: unknown };\n\n/** Options of {@link G9MediaProvider.createPlayer}. */\nexport interface G9MediaPlayerOptions {\n readonly loop?: boolean;\n readonly muted?: boolean;\n /** Best-effort seek applied once after the media opened (MAUI `InitialVideoStartSeconds`). */\n readonly startSeconds?: number;\n /** How early `nearEnd` fires, in seconds. */\n readonly nearEndSeconds?: number;\n}\n\n/**\n * One video player created by the app's media provider. `view` is what the control renders (the platform video\n * XElement the host registered, built by the app); the control never names a video tag itself.\n */\nexport interface G9MediaPlayer {\n /** The element to render (a ReactNode built by the app's provider; foundation keeps it opaque). */\n readonly view: unknown;\n play(): void;\n pause(): void;\n /** Releases the native player; idempotent. */\n dispose(): void;\n /** Subscribes to player events; returns the unsubscribe function. */\n subscribe(listener: (event: G9MediaPlayerEvent) => void): () => void;\n}\n\n/**\n * Resolves image and video sources for IntroCarousel and other media controls (WP09). Video is part of the contract on\n * every target, desktop included (decision D14 is open; no scope reduction is accepted). A provider that cannot play\n * video yet omits `createPlayer` or returns `false` from `supportsVideo`; controls then show the slide image and say\n * why (`'video-unsupported'`).\n */\nexport interface G9MediaProvider {\n resolve(source: G9MediaSource, options?: { readonly signal?: G9AbortSignal }): Promise<G9ResolvedMedia>;\n /** Whether this target can play video now (no permission prompt). Absent = `createPlayer` decides. */\n supportsVideo?(): boolean;\n /** Creates a player for a resolved video. The control disposes it on slide change, deactivation and unmount. */\n createPlayer?(media: G9ResolvedMedia, options?: G9MediaPlayerOptions): G9MediaPlayer;\n}\n\n/** A file the host picked or received (a handle: read and release it through the host's own files API). */\nexport interface G9FileRef {\n /** The host's handle: what the host side reads the file by (on the web, `g9WebFile(id)` of the page). */\n readonly id: string;\n readonly name?: string;\n readonly mime?: string;\n /** Bytes. */\n readonly size?: number;\n /** A URL the page can show it from (2.10.0; the web host gives a `blob:` URL), when the host has one. */\n readonly uri?: string;\n}\n\n/**\n * The screen colour picker (2.10.0): a browser's `EyeDropper`, a desktop shell's. Optional: `G9ColorPicker` shows its\n * eyedropper only when `available()` resolves true.\n */\nexport interface G9EyeDropper {\n /** Whether this host can pick a colour from the screen now. */\n available(): Promise<boolean>;\n /** The colour picked (`#RRGGBB`), or `null` when the person cancelled. */\n pick(): Promise<string | null>;\n}\n\n/**\n * The system file chooser and camera (G9Hub `platform().files`). Optional: without it `G9DropZone` shows its area\n * disabled. A host that can drop files on the window emits `g9:drag` `{ active }` and `g9:drop` `{ files }`.\n */\nexport interface G9FilePicker {\n /** Opens the chooser filtered by category; resolves `[]` when cancelled. */\n pick(options: {\n readonly accept: 'image' | 'video' | 'media' | 'audio' | 'any';\n readonly multiple: boolean;\n }): Promise<readonly G9FileRef[]>;\n /** One photo from the camera, or `null` when cancelled. */\n camera?(options: { readonly mode: 'photo'; readonly facing?: 'user' | 'environment' }): Promise<G9FileRef | null>;\n /** Gives a file the app will not use back to the host. */\n release?(id: string): void;\n}\n\n/** Safe-area insets in logical pixels. */\nexport interface G9SafeInsets {\n readonly top: number;\n readonly end: number;\n readonly bottom: number;\n readonly start: number;\n}\n\n/** Android soft-input policy while a flow needs it (MAUI `G9KeyboardHelper.UseAndroidPanSoftInputMode`). */\nexport type G9SoftInputMode = 'pan' | 'resize';\n\n/**\n * Host integration the provider and overlays need (MAUI page/window plumbing), supplied by the native host. Required.\n * The system back press does not go through this object: the host sends a global event (default `g9:back`, specs/02\n * §4) and the provider dispatches it to the active `G9Host`; `exit` is what happens when nothing handled it.\n */\nexport interface G9HostServices {\n /** Leaves the app the platform way (Android moves the task to the back; desktop closes the window). */\n exit(): void;\n /** Hides the soft keyboard and clears focus (MAUI `G9KeyboardHelper.HideKeyboardAndClearFocus`). */\n hideKeyboard(): void;\n /** Current safe-area insets. */\n getSafeInsets(): G9SafeInsets;\n /** Called when the insets change (rotation, window resize). Returns an unsubscribe function. */\n subscribeSafeInsets(listener: (insets: G9SafeInsets) => void): () => void;\n /**\n * Switches the window's soft-input mode (Android only; `'resize'` is the app default). Hosts on platforms without\n * soft-input modes (iOS, desktop) omit it, which is where MAUI's helper was a no-op too.\n */\n setSoftInputMode?(mode: G9SoftInputMode): void;\n /**\n * Hears whether a G9 text input has the focus (true when the first one takes it, false when the last one lets it\n * go), for a host that handles keys itself: its single-key shortcuts stay quiet while the person types (G9Hub 126,\n * 2.6.10). Optional; the app reads the same from `g9TextFocus` / `useG9TextFocused`.\n */\n textFocus?(focused: boolean): void;\n /**\n * Screen protection on or off while sensitive content shows (2.7.1, G9Hub 147): Android `FLAG_SECURE`, desktop\n * content protection (Windows `WDA_EXCLUDEFROMCAPTURE`, macOS `sharingType = none`); iOS cannot block a capture and\n * reports one (`captured`). Optional: a host without it protects nothing. Apps hold it through\n * `useG9ScreenProtection` / `g9HoldScreenProtection` (nested holds), not directly.\n */\n setScreenProtection?(on: boolean): Promise<G9ScreenProtectionState>;\n}\n\n/** What {@link G9HostServices.setScreenProtection} reports. */\nexport interface G9ScreenProtectionState {\n /** Captures (screenshots, recordings, casting) show the app blank. */\n readonly blocked: boolean;\n /** The screen is being recorded, mirrored or cast right now (iOS reports it; elsewhere false). */\n readonly captured: boolean;\n}\n\n/** Every service the app can supply. Required ones are listed in {@link g9RequiredCapabilities}. */\nexport interface G9Capabilities {\n readonly clock: G9Clock;\n readonly preferences: G9PreferenceStore;\n readonly host: G9HostServices;\n readonly speech?: G9SpeechToText;\n readonly scanner?: G9Scanner;\n readonly media?: G9MediaProvider;\n /**\n * The router places declare themselves to (`@g9tm/lynxcontrols/route` makes one). Optional: without it sheets, tab views\n * and hosts work as before and a `route` option only reports a one-time diagnostics warning.\n */\n readonly route?: G9RouteSink;\n /** Haptic feedback (optional: without it controls stay silent). */\n readonly haptics?: G9Haptics;\n /** Sound feedback (optional). */\n readonly sounds?: G9Sounds;\n /** The file chooser and camera (optional: `G9DropZone`). */\n readonly files?: G9FilePicker;\n /** The screen colour picker (2.10.0; optional: `G9ColorPicker`'s eyedropper). */\n readonly eyedropper?: G9EyeDropper;\n /**\n * The app's window on a desktop host (2.9.0; optional: `useG9WindowControl` of `@g9tm/lynxcontrols/desktop` answers an\n * unavailable control without it, whose calls fail with `G9WindowUnavailableError`).\n */\n readonly window?: G9WindowControl;\n}\n\n/** The name of a capability. */\nexport type G9CapabilityName = keyof G9Capabilities;\n\n/** Capabilities without which the provider cannot mount. */\nexport const g9RequiredCapabilities: ReadonlyArray<G9CapabilityName> = Object.freeze(['clock', 'preferences', 'host']);\n\n/** Thrown when code needs a capability the app did not supply (specs/03 §7: `G9CapabilityMissingError('speech')`). */\nexport class G9CapabilityMissingError extends G9Error {\n /** The missing capability. */\n readonly capability: string;\n\n constructor(capability: string, message?: string) {\n super('capability-missing', message ?? `The '${capability}' service is not available; supply it to G9Provider.`);\n this.name = 'G9CapabilityMissingError';\n this.capability = capability;\n }\n}\n\n/** `true` when the capability is present (optional features use this to hide themselves). */\nexport function hasCapability(services: Partial<G9Capabilities>, name: G9CapabilityName): boolean {\n return services[name] != null;\n}\n\n/** The capability, or throws {@link G9CapabilityMissingError} naming it. */\nexport function requireCapability<K extends G9CapabilityName>(\n services: Partial<G9Capabilities>,\n name: K,\n): NonNullable<G9Capabilities[K]> {\n const service = services[name];\n if (service == null) throw new G9CapabilityMissingError(name);\n return service as NonNullable<G9Capabilities[K]>;\n}\n\n/**\n * Checks every required capability at once (the provider calls this at mount).\n * @throws {G9CapabilityMissingError} for the first missing one, in {@link g9RequiredCapabilities} order.\n */\nexport function assertRequiredCapabilities(services: Partial<G9Capabilities>): asserts services is G9Capabilities {\n for (const name of g9RequiredCapabilities) requireCapability(services, name);\n}\n"],"names":["g9RequiredCapabilities","Object","G9CapabilityMissingError","G9Error","capability","message","hasCapability","services","name","requireCapability","service","assertRequiredCapabilities"],"mappings":";;;;;;;;;;;AAiQO,MAAMA,yBAA0DC,OAAO,MAAM,CAAC;IAAC;IAAS;IAAe;CAAO;AAG9G,MAAMC,iCAAiCC;IAI5C,YAAYC,UAAkB,EAAEC,OAAgB,CAAE;QAChD,KAAK,CAAC,sBAAsBA,QAAAA,UAAAA,UAAW,CAAC,KAAK,EAAED,WAAW,oDAAoD,CAAC,GAHjH,uBAAS,cAAT;QAIE,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,UAAU,GAAGA;IACpB;AACF;AAGO,SAASE,cAAcC,QAAiC,EAAEC,IAAsB;IACrF,OAAOD,AAAkB,QAAlBA,QAAQ,CAACC,KAAK;AACvB;AAGO,SAASC,kBACdF,QAAiC,EACjCC,IAAO;IAEP,MAAME,UAAUH,QAAQ,CAACC,KAAK;IAC9B,IAAIE,AAAW,QAAXA,SAAiB,MAAM,IAAIR,yBAAyBM;IACxD,OAAOE;AACT;AAMO,SAASC,2BAA2BJ,QAAiC;IAC1E,KAAK,MAAMC,QAAQR,uBAAwBS,kBAAkBF,UAAUC;AACzE"}
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { createAbortController, createAbortError, createPortableAbortController, type G9AbortController, type G9AbortSignal, isAbortError, } from './abort.js';
|
|
2
2
|
export { createManualClock, createMonotonicFromWall, createSystemClock, type G9Clock, type G9ManualClock, } from './clock.js';
|
|
3
|
-
export { assertRequiredCapabilities, type G9Capabilities, G9CapabilityMissingError, type G9CapabilityName, type G9FilePicker, type G9FileRef, type G9HostServices, type G9MediaPlayer, type G9MediaPlayerEvent, type G9MediaPlayerOptions, type G9MediaProvider, type G9MediaSource, type G9PermissionStatus, type G9ResolvedMedia, type G9SafeInsets, type G9Scanner, type G9ScanOptions, type G9ScanResult, type G9ScreenProtectionState, type G9SoftInputMode, type G9SpeechToText, type G9SpeechToTextOptions, type G9SpeechToTextResult, g9RequiredCapabilities, hasCapability, requireCapability, } from './contracts.js';
|
|
3
|
+
export { assertRequiredCapabilities, type G9Capabilities, G9CapabilityMissingError, type G9CapabilityName, type G9EyeDropper, type G9FilePicker, type G9FileRef, type G9HostServices, type G9MediaPlayer, type G9MediaPlayerEvent, type G9MediaPlayerOptions, type G9MediaProvider, type G9MediaSource, type G9PermissionStatus, type G9ResolvedMedia, type G9SafeInsets, type G9Scanner, type G9ScanOptions, type G9ScanResult, type G9ScreenProtectionState, type G9SoftInputMode, type G9SpeechToText, type G9SpeechToTextOptions, type G9SpeechToTextResult, g9RequiredCapabilities, hasCapability, requireCapability, } from './contracts.js';
|
|
4
4
|
export { type G9HapticKind, type G9Haptics, type G9SoundKind, type G9Sounds, g9Haptic, g9Sound, setG9Feedback, setG9FeedbackEnabled, } from './feedback.js';
|
|
5
5
|
export { g9ImageSrc } from './image-src.js';
|
|
6
|
-
export { comboLabel, createSequenceMatcher, type G9KeyCombo, type G9KeyEvent, g9FieldKeyEventName, g9KeyEventName, matchesCombo, parseCombo, } from './keys.js';
|
|
6
|
+
export { comboLabel, createSequenceMatcher, type G9HeldModifiers, type G9KeyCombo, type G9KeyEvent, g9FieldKeyEventName, g9KeyEventName, g9ModifiersEventName, isContextMenuKey, matchesCombo, parseCombo, } from './keys.js';
|
|
7
7
|
export { g9MotionScale, g9Ms, setG9MotionScale, subscribeG9Motion } from './motion.js';
|
|
8
8
|
export { createMemoryPreferenceStore, createPreferences, type G9MaybePromise, type G9PreferenceKey, type G9PreferenceStore, type G9PreferenceStoreFailure, type G9Preferences, type G9PreferencesOptions, type G9PreferencesSnapshot, type G9PreferenceValue, g9PreferenceKeyPrefix, } from './preferences.js';
|
|
9
|
+
export type { G9VideoElementProps } from './video-element.js';
|
|
10
|
+
export { createUnavailableWindowControl, type G9CloseDecision, type G9CloseRequestHandler, type G9WindowControl, type G9WindowEvent, type G9WindowState, G9WindowUnavailableError, runCloseRequestHandlers, } from './window.js';
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,6BAA6B,EAC7B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,0BAA0B,EAC1B,KAAK,cAAc,EACnB,wBAAwB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,sBAAsB,EACtB,aAAa,EACb,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,QAAQ,EACR,OAAO,EACP,aAAa,EACb,oBAAoB,GACrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,UAAU,GACX,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,qBAAqB,GACtB,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,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AAiB,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EACL,8BAA8B,EAC9B,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,UAAU,CAAC"}
|
package/dist/services/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { createManualClock, createMonotonicFromWall, createSystemClock } from ".
|
|
|
3
3
|
export { G9CapabilityMissingError, assertRequiredCapabilities, g9RequiredCapabilities, hasCapability, requireCapability } from "./contracts.js";
|
|
4
4
|
export { g9Haptic, g9Sound, setG9Feedback, setG9FeedbackEnabled } from "./feedback.js";
|
|
5
5
|
export { g9ImageSrc } from "./image-src.js";
|
|
6
|
-
export { comboLabel, createSequenceMatcher, g9FieldKeyEventName, g9KeyEventName, matchesCombo, parseCombo } from "./keys.js";
|
|
6
|
+
export { comboLabel, createSequenceMatcher, g9FieldKeyEventName, g9KeyEventName, g9ModifiersEventName, isContextMenuKey, matchesCombo, parseCombo } from "./keys.js";
|
|
7
7
|
export { g9MotionScale, g9Ms, setG9MotionScale, subscribeG9Motion } from "./motion.js";
|
|
8
8
|
export { createMemoryPreferenceStore, createPreferences, g9PreferenceKeyPrefix } from "./preferences.js";
|
|
9
|
+
export { G9WindowUnavailableError, createUnavailableWindowControl, runCloseRequestHandlers } from "./window.js";
|
package/dist/services/keys.d.ts
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
export declare const g9KeyEventName = "g9key";
|
|
3
3
|
/** Global event for a key pressed inside a text field (hosts forward only Escape and modified keys). */
|
|
4
4
|
export declare const g9FieldKeyEventName = "g9fieldkey";
|
|
5
|
+
/**
|
|
6
|
+
* Global event a host sends when a modifier key goes down or up (2.9.0): `{ shift, ctrl, alt, meta }` as held now, all
|
|
7
|
+
* false when the window loses the focus. Lynx pointer events carry no modifier flags, so Shift+click and Ctrl+click
|
|
8
|
+
* (multi-select) read the held modifiers (`g9HeldModifiers` of `@g9tm/lynxcontrols/commands`).
|
|
9
|
+
*/
|
|
10
|
+
export declare const g9ModifiersEventName = "g9modifiers";
|
|
11
|
+
/** The modifier keys held now. */
|
|
12
|
+
export interface G9HeldModifiers {
|
|
13
|
+
readonly shift: boolean;
|
|
14
|
+
readonly ctrl: boolean;
|
|
15
|
+
readonly alt: boolean;
|
|
16
|
+
readonly meta: boolean;
|
|
17
|
+
}
|
|
5
18
|
/** A key as hosts send it: `key` is a DOM key name (`'ArrowLeft'`, `'Escape'`, `'k'`). */
|
|
6
19
|
export interface G9KeyEvent {
|
|
7
20
|
readonly key: string;
|
|
@@ -33,6 +46,11 @@ export interface G9KeyCombo {
|
|
|
33
46
|
export declare function parseCombo(combo: string): G9KeyCombo;
|
|
34
47
|
/** True when `event` is `combo` (`platform: 'mac'` maps Mod to Meta). */
|
|
35
48
|
export declare function matchesCombo(event: G9KeyEvent, combo: string | G9KeyCombo, platform?: 'mac' | 'other'): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* True for the keys that open a context menu from the keyboard (2.9.0): the context-menu key (`'ContextMenu'`, also
|
|
51
|
+
* sent as `'Apps'`) and Shift+F10, on Windows, macOS and the web alike.
|
|
52
|
+
*/
|
|
53
|
+
export declare function isContextMenuKey(event: G9KeyEvent): boolean;
|
|
36
54
|
/** How a combo reads on a key cap (`'Mod+K'` → `'Ctrl K'` / `'⌘ K'`). */
|
|
37
55
|
export declare function comboLabel(combo: string, platform?: 'mac' | 'other'): string;
|
|
38
56
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","s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AC3B;AAED,qEAAqE;AACrE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB;AAcD,yGAAyG;AACzG,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAYpD;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,GAAG,UAAU,EAC1B,QAAQ,GAAE,KAAK,GAAG,OAAiB,GAClC,OAAO,CAYT;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAI3D;AAED,yEAAyE;AACzE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,GAAE,KAAK,GAAG,OAAiB,GAAG,MAAM,CAqBrF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,EAAE,SAAS,SAAO,EAAE,GAAG,GAAE,MAAM,MAAiB;gBAKlG,UAAU,GAAG,MAAM,GAAG,IAAI;;EAuBzC"}
|
package/dist/services/keys.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const g9KeyEventName = 'g9key';
|
|
2
2
|
const g9FieldKeyEventName = 'g9fieldkey';
|
|
3
|
+
const g9ModifiersEventName = 'g9modifiers';
|
|
3
4
|
const ALIASES = {
|
|
4
5
|
esc: 'escape',
|
|
5
6
|
return: 'enter',
|
|
@@ -36,6 +37,11 @@ function matchesCombo(event, combo, platform = 'other') {
|
|
|
36
37
|
if (c.alt !== Boolean(event.alt)) return false;
|
|
37
38
|
return true;
|
|
38
39
|
}
|
|
40
|
+
function isContextMenuKey(event) {
|
|
41
|
+
const key = event.key.toLowerCase();
|
|
42
|
+
if ('contextmenu' === key || 'apps' === key) return !event.ctrl && !event.alt && !event.meta;
|
|
43
|
+
return 'f10' === key && Boolean(event.shift) && !event.ctrl && !event.alt && !event.meta;
|
|
44
|
+
}
|
|
39
45
|
function comboLabel(combo, platform = 'other') {
|
|
40
46
|
var _named_c_key;
|
|
41
47
|
const c = parseCombo(combo);
|
|
@@ -91,6 +97,6 @@ function createSequenceMatcher(sequences, timeoutMs = 1200, now = Date.now) {
|
|
|
91
97
|
}
|
|
92
98
|
};
|
|
93
99
|
}
|
|
94
|
-
export { comboLabel, createSequenceMatcher, g9FieldKeyEventName, g9KeyEventName, matchesCombo, parseCombo };
|
|
100
|
+
export { comboLabel, createSequenceMatcher, g9FieldKeyEventName, g9KeyEventName, g9ModifiersEventName, isContextMenuKey, matchesCombo, parseCombo };
|
|
95
101
|
|
|
96
102
|
//# sourceMappingURL=keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services/keys.js","sources":["../../src/services/keys.ts"],"sourcesContent":["// Keyboard shortcuts on hosts with a keyboard (Lynx for Web, Lynxtron, a tablet with a keyboard). Lynx has no keydown\n// event on the page, so the host forwards keys as global events (SAC: `g9key` / `g9fieldkey` from the web host; G9Hub:\n// hotkey.ts): `g9key` for keys outside text fields, `g9fieldkey` for the few that matter inside one (Escape, Mod+K,\n// Mod+Enter). This module is the platform-free part: the event names, the key shape, combo parsing and matching, and\n// key sequences (`g` then `i`). The hook that listens lives in `@g9tm/lynxcontrols/commands`.\n\n/** Global event a host sends for a key pressed outside a text field. */\nexport const g9KeyEventName = 'g9key';\n/** Global event for a key pressed inside a text field (hosts forward only Escape and modified keys). */\nexport const g9FieldKeyEventName = 'g9fieldkey';\n\n/** A key as hosts send it: `key` is a DOM key name (`'ArrowLeft'`, `'Escape'`, `'k'`). */\nexport interface G9KeyEvent {\n readonly key: string;\n readonly ctrl?: boolean;\n readonly shift?: boolean;\n readonly alt?: boolean;\n /** Cmd on macOS. */\n readonly meta?: boolean;\n readonly repeat?: boolean;\n /** Came from inside a text field (`g9fieldkey`). */\n readonly field?: boolean;\n /**\n * The field's text when the key was pressed, for a host that takes it with the key (`takeText`: a composer's send key\n * reads and clears the field in the same keydown, so the page never sees a half-typed state; G9Hub, 2.5.8).\n */\n readonly text?: string;\n /** The field's element id, when the host knows it (which composer the send key came from). */\n readonly fieldId?: string;\n}\n\n/** A parsed combo: `'Mod+Shift+K'` (Mod = Ctrl, or Cmd on macOS). */\nexport interface G9KeyCombo {\n readonly key: string;\n readonly mod: boolean;\n readonly ctrl: boolean;\n readonly shift: boolean;\n readonly alt: boolean;\n}\n\nconst ALIASES: Readonly<Record<string, string>> = {\n esc: 'escape',\n return: 'enter',\n del: 'delete',\n space: ' ',\n up: 'arrowup',\n down: 'arrowdown',\n left: 'arrowleft',\n right: 'arrowright',\n plus: '+',\n};\n\n/** Parses `'Mod+K'`, `'ctrl+shift+p'`, `'Escape'`, `'?'`. Case-insensitive; the last part is the key. */\nexport function parseCombo(combo: string): G9KeyCombo {\n const parts = combo.split('+').map((p) => p.trim().toLowerCase());\n // \"Mod++\" means the plus key\n if (combo.endsWith('++')) parts.splice(parts.length - 2, 2, '+');\n const key = parts.pop() ?? '';\n return {\n key: ALIASES[key] ?? key,\n mod: parts.includes('mod'),\n ctrl: parts.includes('ctrl'),\n shift: parts.includes('shift'),\n alt: parts.includes('alt') || parts.includes('option'),\n };\n}\n\n/** True when `event` is `combo` (`platform: 'mac'` maps Mod to Meta). */\nexport function matchesCombo(\n event: G9KeyEvent,\n combo: string | G9KeyCombo,\n platform: 'mac' | 'other' = 'other',\n): boolean {\n const c = typeof combo === 'string' ? parseCombo(combo) : combo;\n const key = event.key.toLowerCase();\n if (key !== c.key && !(c.key.length === 1 && key === c.key)) return false;\n const modDown = platform === 'mac' ? Boolean(event.meta) : Boolean(event.ctrl);\n if (c.mod !== modDown && !(c.ctrl && !c.mod)) return false;\n if (c.ctrl && !event.ctrl) return false;\n if (!c.mod && !c.ctrl && (event.ctrl || event.meta)) return false;\n // shift is part of a printed character ('?' is Shift+/): only require it when the combo says so\n if (c.shift && !event.shift) return false;\n if (c.alt !== Boolean(event.alt)) return false;\n return true;\n}\n\n/** How a combo reads on a key cap (`'Mod+K'` → `'Ctrl K'` / `'⌘ K'`). */\nexport function comboLabel(combo: string, platform: 'mac' | 'other' = 'other'): string {\n const c = parseCombo(combo);\n const parts: string[] = [];\n if (c.mod) parts.push(platform === 'mac' ? '⌘' : 'Ctrl');\n if (c.ctrl) parts.push(platform === 'mac' ? '⌃' : 'Ctrl');\n if (c.alt) parts.push(platform === 'mac' ? '⌥' : 'Alt');\n if (c.shift) parts.push(platform === 'mac' ? '⇧' : 'Shift');\n const named: Record<string, string> = {\n escape: 'Esc',\n enter: '↵',\n arrowup: '↑',\n arrowdown: '↓',\n arrowleft: '←',\n arrowright: '→',\n ' ': 'Space',\n delete: 'Del',\n backspace: '⌫',\n tab: 'Tab',\n };\n parts.push(named[c.key] ?? (c.key.length === 1 ? c.key.toUpperCase() : c.key));\n return parts.join(' ');\n}\n\n/**\n * Key sequences (`'g i'`: g then i within `timeoutMs`, G9Hub's \"go to\" shortcuts). Feed every key; it answers the\n * sequence completed by this key, or null.\n */\nexport function createSequenceMatcher(sequences: readonly string[], timeoutMs = 1200, now: () => number = Date.now) {\n const parsed = sequences.map((s) => ({ source: s, keys: s.trim().toLowerCase().split(/\\s+/) }));\n let buffer: string[] = [];\n let last = 0;\n return {\n feed(event: G9KeyEvent): string | null {\n if (event.ctrl || event.meta || event.alt || event.field) {\n buffer = [];\n return null;\n }\n const t = now();\n if (t - last > timeoutMs) buffer = [];\n last = t;\n buffer.push(event.key.toLowerCase());\n if (buffer.length > 4) buffer = buffer.slice(-4);\n for (const seq of parsed) {\n const tail = buffer.slice(-seq.keys.length);\n if (tail.length === seq.keys.length && tail.every((k, i) => k === seq.keys[i])) {\n buffer = [];\n return seq.source;\n }\n }\n return null;\n },\n reset() {\n buffer = [];\n },\n };\n}\n"],"names":["g9KeyEventName","g9FieldKeyEventName","ALIASES","parseCombo","combo","_parts_pop","_ALIASES_key","parts","p","key","matchesCombo","event","platform","c","modDown","Boolean","comboLabel","_named_c_key","named","createSequenceMatcher","sequences","timeoutMs","now","Date","parsed","s","buffer","last","t","seq","tail","k","i"],"mappings":"AAOO,MAAMA,iBAAiB;AAEvB,MAAMC,sBAAsB;AA+BnC,MAAMC,UAA4C;IAChD,KAAK;IACL,QAAQ;IACR,KAAK;IACL,OAAO;IACP,IAAI;IACJ,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;AACR;AAGO,SAASC,WAAWC,KAAa;QAI1BC,YAELC;IALP,MAAMC,QAAQH,MAAM,KAAK,CAAC,KAAK,GAAG,CAAC,CAACI,IAAMA,EAAE,IAAI,GAAG,WAAW;IAE9D,IAAIJ,MAAM,QAAQ,CAAC,OAAOG,MAAM,MAAM,CAACA,MAAM,MAAM,GAAG,GAAG,GAAG;IAC5D,MAAME,MAAM,QAAAJ,CAAAA,aAAAA,MAAM,GAAG,EAAC,IAAVA,aAAe;IAC3B,OAAO;QACL,KAAK,QAAAC,CAAAA,eAAAA,OAAO,CAACG,IAAI,AAAD,IAAXH,eAAgBG;QACrB,KAAKF,MAAM,QAAQ,CAAC;QACpB,MAAMA,MAAM,QAAQ,CAAC;QACrB,OAAOA,MAAM,QAAQ,CAAC;QACtB,KAAKA,MAAM,QAAQ,CAAC,UAAUA,MAAM,QAAQ,CAAC;IAC/C;AACF;AAGO,SAASG,aACdC,KAAiB,EACjBP,KAA0B,EAC1BQ,WAA4B,OAAO;IAEnC,MAAMC,IAAI,AAAiB,YAAjB,OAAOT,QAAqBD,WAAWC,SAASA;IAC1D,MAAMK,MAAME,MAAM,GAAG,CAAC,WAAW;IACjC,IAAIF,QAAQI,EAAE,GAAG,IAAI,CAAEA,CAAAA,AAAiB,MAAjBA,EAAE,GAAG,CAAC,MAAM,IAAUJ,QAAQI,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,GAASA,EAAE,GAAG,CAAC,WAAW,KAAKA,EAAE,GAAG;IAC5E,OAAON,MAAM,IAAI,CAAC;AACpB;AAMO,SAASY,sBAAsBC,SAA4B,EAAEC,YAAY,IAAI,EAAEC,MAAoBC,KAAK,GAAG;IAChH,MAAMC,SAASJ,UAAU,GAAG,CAAC,CAACK,IAAO;YAAE,QAAQA;YAAG,MAAMA,EAAE,IAAI,GAAG,WAAW,GAAG,KAAK,CAAC;QAAO;IAC5F,IAAIC,SAAmB,EAAE;IACzB,IAAIC,OAAO;IACX,OAAO;QACL,MAAKhB,KAAiB;YACpB,IAAIA,MAAM,IAAI,IAAIA,MAAM,IAAI,IAAIA,MAAM,GAAG,IAAIA,MAAM,KAAK,EAAE;gBACxDe,SAAS,EAAE;gBACX,OAAO;YACT;YACA,MAAME,IAAIN;YACV,IAAIM,IAAID,OAAON,WAAWK,SAAS,EAAE;YACrCC,OAAOC;YACPF,OAAO,IAAI,CAACf,MAAM,GAAG,CAAC,WAAW;YACjC,IAAIe,OAAO,MAAM,GAAG,GAAGA,SAASA,OAAO,KAAK,CAAC;YAC7C,KAAK,MAAMG,OAAOL,OAAQ;gBACxB,MAAMM,OAAOJ,OAAO,KAAK,CAAC,CAACG,IAAI,IAAI,CAAC,MAAM;gBAC1C,IAAIC,KAAK,MAAM,KAAKD,IAAI,IAAI,CAAC,MAAM,IAAIC,KAAK,KAAK,CAAC,CAACC,GAAGC,IAAMD,MAAMF,IAAI,IAAI,CAACG,EAAE,GAAG;oBAC9EN,SAAS,EAAE;oBACX,OAAOG,IAAI,MAAM;gBACnB;YACF;YACA,OAAO;QACT;QACA;YACEH,SAAS,EAAE;QACb;IACF;AACF"}
|
|
1
|
+
{"version":3,"file":"services/keys.js","sources":["../../src/services/keys.ts"],"sourcesContent":["// Keyboard shortcuts on hosts with a keyboard (Lynx for Web, Lynxtron, a tablet with a keyboard). Lynx has no keydown\n// event on the page, so the host forwards keys as global events (SAC: `g9key` / `g9fieldkey` from the web host; G9Hub:\n// hotkey.ts): `g9key` for keys outside text fields, `g9fieldkey` for the few that matter inside one (Escape, Mod+K,\n// Mod+Enter). This module is the platform-free part: the event names, the key shape, combo parsing and matching, and\n// key sequences (`g` then `i`). The hook that listens lives in `@g9tm/lynxcontrols/commands`.\n\n/** Global event a host sends for a key pressed outside a text field. */\nexport const g9KeyEventName = 'g9key';\n/** Global event for a key pressed inside a text field (hosts forward only Escape and modified keys). */\nexport const g9FieldKeyEventName = 'g9fieldkey';\n\n/**\n * Global event a host sends when a modifier key goes down or up (2.9.0): `{ shift, ctrl, alt, meta }` as held now, all\n * false when the window loses the focus. Lynx pointer events carry no modifier flags, so Shift+click and Ctrl+click\n * (multi-select) read the held modifiers (`g9HeldModifiers` of `@g9tm/lynxcontrols/commands`).\n */\nexport const g9ModifiersEventName = 'g9modifiers';\n\n/** The modifier keys held now. */\nexport interface G9HeldModifiers {\n readonly shift: boolean;\n readonly ctrl: boolean;\n readonly alt: boolean;\n readonly meta: boolean;\n}\n\n/** A key as hosts send it: `key` is a DOM key name (`'ArrowLeft'`, `'Escape'`, `'k'`). */\nexport interface G9KeyEvent {\n readonly key: string;\n readonly ctrl?: boolean;\n readonly shift?: boolean;\n readonly alt?: boolean;\n /** Cmd on macOS. */\n readonly meta?: boolean;\n readonly repeat?: boolean;\n /** Came from inside a text field (`g9fieldkey`). */\n readonly field?: boolean;\n /**\n * The field's text when the key was pressed, for a host that takes it with the key (`takeText`: a composer's send key\n * reads and clears the field in the same keydown, so the page never sees a half-typed state; G9Hub, 2.5.8).\n */\n readonly text?: string;\n /** The field's element id, when the host knows it (which composer the send key came from). */\n readonly fieldId?: string;\n}\n\n/** A parsed combo: `'Mod+Shift+K'` (Mod = Ctrl, or Cmd on macOS). */\nexport interface G9KeyCombo {\n readonly key: string;\n readonly mod: boolean;\n readonly ctrl: boolean;\n readonly shift: boolean;\n readonly alt: boolean;\n}\n\nconst ALIASES: Readonly<Record<string, string>> = {\n esc: 'escape',\n return: 'enter',\n del: 'delete',\n space: ' ',\n up: 'arrowup',\n down: 'arrowdown',\n left: 'arrowleft',\n right: 'arrowright',\n plus: '+',\n};\n\n/** Parses `'Mod+K'`, `'ctrl+shift+p'`, `'Escape'`, `'?'`. Case-insensitive; the last part is the key. */\nexport function parseCombo(combo: string): G9KeyCombo {\n const parts = combo.split('+').map((p) => p.trim().toLowerCase());\n // \"Mod++\" means the plus key\n if (combo.endsWith('++')) parts.splice(parts.length - 2, 2, '+');\n const key = parts.pop() ?? '';\n return {\n key: ALIASES[key] ?? key,\n mod: parts.includes('mod'),\n ctrl: parts.includes('ctrl'),\n shift: parts.includes('shift'),\n alt: parts.includes('alt') || parts.includes('option'),\n };\n}\n\n/** True when `event` is `combo` (`platform: 'mac'` maps Mod to Meta). */\nexport function matchesCombo(\n event: G9KeyEvent,\n combo: string | G9KeyCombo,\n platform: 'mac' | 'other' = 'other',\n): boolean {\n const c = typeof combo === 'string' ? parseCombo(combo) : combo;\n const key = event.key.toLowerCase();\n if (key !== c.key && !(c.key.length === 1 && key === c.key)) return false;\n const modDown = platform === 'mac' ? Boolean(event.meta) : Boolean(event.ctrl);\n if (c.mod !== modDown && !(c.ctrl && !c.mod)) return false;\n if (c.ctrl && !event.ctrl) return false;\n if (!c.mod && !c.ctrl && (event.ctrl || event.meta)) return false;\n // shift is part of a printed character ('?' is Shift+/): only require it when the combo says so\n if (c.shift && !event.shift) return false;\n if (c.alt !== Boolean(event.alt)) return false;\n return true;\n}\n\n/**\n * True for the keys that open a context menu from the keyboard (2.9.0): the context-menu key (`'ContextMenu'`, also\n * sent as `'Apps'`) and Shift+F10, on Windows, macOS and the web alike.\n */\nexport function isContextMenuKey(event: G9KeyEvent): boolean {\n const key = event.key.toLowerCase();\n if (key === 'contextmenu' || key === 'apps') return !event.ctrl && !event.alt && !event.meta;\n return key === 'f10' && Boolean(event.shift) && !event.ctrl && !event.alt && !event.meta;\n}\n\n/** How a combo reads on a key cap (`'Mod+K'` → `'Ctrl K'` / `'⌘ K'`). */\nexport function comboLabel(combo: string, platform: 'mac' | 'other' = 'other'): string {\n const c = parseCombo(combo);\n const parts: string[] = [];\n if (c.mod) parts.push(platform === 'mac' ? '⌘' : 'Ctrl');\n if (c.ctrl) parts.push(platform === 'mac' ? '⌃' : 'Ctrl');\n if (c.alt) parts.push(platform === 'mac' ? '⌥' : 'Alt');\n if (c.shift) parts.push(platform === 'mac' ? '⇧' : 'Shift');\n const named: Record<string, string> = {\n escape: 'Esc',\n enter: '↵',\n arrowup: '↑',\n arrowdown: '↓',\n arrowleft: '←',\n arrowright: '→',\n ' ': 'Space',\n delete: 'Del',\n backspace: '⌫',\n tab: 'Tab',\n };\n parts.push(named[c.key] ?? (c.key.length === 1 ? c.key.toUpperCase() : c.key));\n return parts.join(' ');\n}\n\n/**\n * Key sequences (`'g i'`: g then i within `timeoutMs`, G9Hub's \"go to\" shortcuts). Feed every key; it answers the\n * sequence completed by this key, or null.\n */\nexport function createSequenceMatcher(sequences: readonly string[], timeoutMs = 1200, now: () => number = Date.now) {\n const parsed = sequences.map((s) => ({ source: s, keys: s.trim().toLowerCase().split(/\\s+/) }));\n let buffer: string[] = [];\n let last = 0;\n return {\n feed(event: G9KeyEvent): string | null {\n if (event.ctrl || event.meta || event.alt || event.field) {\n buffer = [];\n return null;\n }\n const t = now();\n if (t - last > timeoutMs) buffer = [];\n last = t;\n buffer.push(event.key.toLowerCase());\n if (buffer.length > 4) buffer = buffer.slice(-4);\n for (const seq of parsed) {\n const tail = buffer.slice(-seq.keys.length);\n if (tail.length === seq.keys.length && tail.every((k, i) => k === seq.keys[i])) {\n buffer = [];\n return seq.source;\n }\n }\n return null;\n },\n reset() {\n buffer = [];\n },\n };\n}\n"],"names":["g9KeyEventName","g9FieldKeyEventName","g9ModifiersEventName","ALIASES","parseCombo","combo","_parts_pop","_ALIASES_key","parts","p","key","matchesCombo","event","platform","c","modDown","Boolean","isContextMenuKey","comboLabel","_named_c_key","named","createSequenceMatcher","sequences","timeoutMs","now","Date","parsed","s","bu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
|
+
/** Props of the `<g9-video>` element (`G9VideoUI` on Android, `G9LCVideoUI` on iOS, `registerG9Video` on the web). */
|
|
2
|
+
export interface G9VideoElementProps {
|
|
3
|
+
/** `asset:///…` (Android), `file://…` (iOS), or `http(s)://…`. */
|
|
4
|
+
readonly src?: string;
|
|
5
|
+
/**
|
|
6
|
+
* A live RTC track's id instead of a file (2.5.10, G9Hub 92): the host's track renderer draws it (Android
|
|
7
|
+
* `G9VideoTracks.register`, iOS `G9LCVideoTracks registerRenderer:`, web `registerG9Video({ tracks })`).
|
|
8
|
+
*/
|
|
9
|
+
readonly track?: string;
|
|
10
|
+
/** Flipped left to right (the self view; 2.5.10). */
|
|
11
|
+
readonly mirror?: boolean;
|
|
12
|
+
/** The same as `object-fit` (2.5.10). */
|
|
13
|
+
readonly fit?: 'cover' | 'contain';
|
|
14
|
+
/** Default true: the element starts paused. */
|
|
15
|
+
readonly paused?: boolean;
|
|
16
|
+
/** Default true. */
|
|
17
|
+
readonly loop?: boolean;
|
|
18
|
+
/** Default true. */
|
|
19
|
+
readonly muted?: boolean;
|
|
20
|
+
/** One best-effort seek after the media opened. */
|
|
21
|
+
readonly 'start-seconds'?: number;
|
|
22
|
+
/** How early `nearend` fires before each loop's end. */
|
|
23
|
+
readonly 'near-end-seconds'?: number;
|
|
24
|
+
/** `cover` (default, fill and crop) or `contain`. */
|
|
25
|
+
readonly 'object-fit'?: 'cover' | 'contain';
|
|
26
|
+
readonly className?: string;
|
|
27
|
+
readonly style?: Record<string, string | number>;
|
|
28
|
+
/** The first frame is on screen. */
|
|
29
|
+
readonly bindready?: () => void;
|
|
30
|
+
readonly bindnearend?: (event: {
|
|
31
|
+
readonly detail: {
|
|
32
|
+
readonly seconds: number;
|
|
33
|
+
};
|
|
34
|
+
}) => void;
|
|
35
|
+
readonly bindlooped?: () => void;
|
|
36
|
+
readonly binderror?: (event: {
|
|
37
|
+
readonly detail: {
|
|
38
|
+
readonly code: string;
|
|
39
|
+
readonly message: string;
|
|
40
|
+
};
|
|
41
|
+
}) => void;
|
|
42
|
+
/** The web's own controls on a file (native hosts draw none: use G9VideoPlayer). */
|
|
43
|
+
readonly controls?: boolean;
|
|
44
|
+
/** About four times a second while a file plays. */
|
|
45
|
+
readonly bindprogress?: (event: {
|
|
46
|
+
readonly detail: {
|
|
47
|
+
readonly seconds: number;
|
|
48
|
+
readonly duration: number;
|
|
49
|
+
};
|
|
50
|
+
}) => void;
|
|
51
|
+
/** A file that does not loop reached its end. */
|
|
52
|
+
readonly bindended?: () => void;
|
|
53
|
+
readonly id?: string;
|
|
54
|
+
}
|
|
55
|
+
declare module '@lynx-js/types' {
|
|
56
|
+
interface IntrinsicElements {
|
|
57
|
+
'g9-video': G9VideoElementProps;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=video-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-element.d.ts","sourceRoot":"","sources":["../../src/services/video-element.ts"],"names":[],"mappings":"AAIA,sHAAsH;AACtH,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,yCAAyC;IACzC,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,oBAAoB;IACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,mDAAmD;IACnD,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,wDAAwD;IACxD,QAAQ,CAAC,kBAAkB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AE,mBAAmB,CAAC;KACjC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { G9Error } from '../errors.js';
|
|
2
|
+
/** What the window is doing now. */
|
|
3
|
+
export interface G9WindowState {
|
|
4
|
+
readonly visible: boolean;
|
|
5
|
+
readonly focused: boolean;
|
|
6
|
+
readonly minimized: boolean;
|
|
7
|
+
readonly maximized: boolean;
|
|
8
|
+
readonly fullScreen: boolean;
|
|
9
|
+
readonly title: string;
|
|
10
|
+
}
|
|
11
|
+
/** What the host tells the page about its window. */
|
|
12
|
+
export type G9WindowEvent = {
|
|
13
|
+
readonly type: 'show' | 'hide' | 'focus' | 'blur' | 'minimize' | 'maximize' | 'unmaximize' | 'restore' | 'enter-full-screen' | 'leave-full-screen';
|
|
14
|
+
}
|
|
15
|
+
/** The person (or the system) asked to close the window; the close-request handlers decide. */
|
|
16
|
+
| {
|
|
17
|
+
readonly type: 'close-request';
|
|
18
|
+
}
|
|
19
|
+
/** A message of the app's own from the main process (`sendToPage(win, 'tray', { action: 'show' })`). */
|
|
20
|
+
| {
|
|
21
|
+
readonly type: 'message';
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly data: unknown;
|
|
24
|
+
};
|
|
25
|
+
/** What a close-request handler answers: keep the window (`'cancel'`) or let it close (`'close'`, the default). */
|
|
26
|
+
export type G9CloseDecision = 'close' | 'cancel';
|
|
27
|
+
/** A close-request handler; it may ask the person first (a promise). Nothing returned = `'close'`. */
|
|
28
|
+
export type G9CloseRequestHandler = () => G9CloseDecision | undefined | Promise<G9CloseDecision | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* The app's window. Every method of an unavailable control (`available: false`) rejects or throws
|
|
31
|
+
* `G9WindowUnavailableError`, so an app checks `available` before offering window features.
|
|
32
|
+
*/
|
|
33
|
+
export interface G9WindowControl {
|
|
34
|
+
/** True when this host has a window the app can control. */
|
|
35
|
+
readonly available: boolean;
|
|
36
|
+
/** Shows the window (and restores it when minimized). */
|
|
37
|
+
show(): Promise<void>;
|
|
38
|
+
/** Hides the window (close to the tray). */
|
|
39
|
+
hide(): Promise<void>;
|
|
40
|
+
/** Brings the window to the front and gives it focus. */
|
|
41
|
+
focus(): Promise<void>;
|
|
42
|
+
minimize(): Promise<void>;
|
|
43
|
+
maximize(): Promise<void>;
|
|
44
|
+
/** Back from maximized or minimized to the normal size. */
|
|
45
|
+
restore(): Promise<void>;
|
|
46
|
+
setTitle(title: string): Promise<void>;
|
|
47
|
+
getState(): Promise<G9WindowState>;
|
|
48
|
+
/**
|
|
49
|
+
* Closes the window. `force: false` (default) acts like the window's close button: the close-request handlers are
|
|
50
|
+
* asked first; `force: true` closes without asking.
|
|
51
|
+
*/
|
|
52
|
+
close(options?: {
|
|
53
|
+
readonly force?: boolean;
|
|
54
|
+
}): Promise<void>;
|
|
55
|
+
/** Calls a handler of the app's own in the main process (`attachG9Window(win, { handlers })`) and returns its answer. */
|
|
56
|
+
invoke(name: string, data?: unknown): Promise<unknown>;
|
|
57
|
+
/** Hears every window event; returns the unsubscribe. */
|
|
58
|
+
subscribe(listener: (event: G9WindowEvent) => void): () => void;
|
|
59
|
+
/**
|
|
60
|
+
* Takes part in close requests: while at least one handler is registered the host asks before it closes the window,
|
|
61
|
+
* and any handler answering `'cancel'` keeps it open. Returns the unregister.
|
|
62
|
+
*/
|
|
63
|
+
onCloseRequest(handler: G9CloseRequestHandler): () => void;
|
|
64
|
+
}
|
|
65
|
+
/** Thrown by every call of a window control on a host without a window of its own. */
|
|
66
|
+
export declare class G9WindowUnavailableError extends G9Error {
|
|
67
|
+
/** The call that failed (`'show'`, `'subscribe'`, …). */
|
|
68
|
+
readonly operation: string;
|
|
69
|
+
constructor(operation: string, reason?: string);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The window control of a host without a window (Lynx for Web, Android, iOS): `available: false`, and every method
|
|
73
|
+
* rejects (or, for `subscribe` / `onCloseRequest`, throws) `G9WindowUnavailableError` with `reason`.
|
|
74
|
+
*/
|
|
75
|
+
export declare function createUnavailableWindowControl(reason?: string): G9WindowControl;
|
|
76
|
+
/**
|
|
77
|
+
* Runs close-request handlers in order (the newest first) and answers `'cancel'` as soon as one does; a handler that
|
|
78
|
+
* throws or rejects counts as `'cancel'` (a broken confirm dialog must not lose the person's work). Shared by every
|
|
79
|
+
* host implementation.
|
|
80
|
+
*/
|
|
81
|
+
export declare function runCloseRequestHandlers(handlers: readonly G9CloseRequestHandler[]): Promise<G9CloseDecision>;
|
|
82
|
+
//# sourceMappingURL=window.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../src/services/window.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,oCAAoC;AACpC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,qDAAqD;AACrD,MAAM,MAAM,aAAa,GACrB;IACE,QAAQ,CAAC,IAAI,EACT,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,UAAU,GACV,YAAY,GACZ,SAAS,GACT,mBAAmB,GACnB,mBAAmB,CAAC;CACzB;AACH,+FAA+F;GAC7F;IAAE,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;CAAE;AACpC,wGAAwG;GACtG;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,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CAAC;CAC5D;AAED,sFAAsF;AACtF,qBAAa,wBAAyB,SAAQ,OAAO;IACnD,yDAAyD;IACzD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM,EAAE,MAAM,SAAiD;CAKvF;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,eAAe,CAoB/E;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,QAAQ,EAAE,SAAS,qBAAqB,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAUlH"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { G9Error } from "../errors.js";
|
|
2
|
+
function _define_property(obj, key, value) {
|
|
3
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
else obj[key] = value;
|
|
10
|
+
return obj;
|
|
11
|
+
}
|
|
12
|
+
class G9WindowUnavailableError extends G9Error {
|
|
13
|
+
constructor(operation, reason = 'This host has no window the app can control.'){
|
|
14
|
+
super('window-unavailable', `${reason} (${operation})`), _define_property(this, "operation", void 0);
|
|
15
|
+
this.name = 'G9WindowUnavailableError';
|
|
16
|
+
this.operation = operation;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function createUnavailableWindowControl(reason) {
|
|
20
|
+
const fail = (operation)=>()=>Promise.reject(new G9WindowUnavailableError(operation, reason));
|
|
21
|
+
const raise = (operation)=>()=>{
|
|
22
|
+
throw new G9WindowUnavailableError(operation, reason);
|
|
23
|
+
};
|
|
24
|
+
return Object.freeze({
|
|
25
|
+
available: false,
|
|
26
|
+
show: fail('show'),
|
|
27
|
+
hide: fail('hide'),
|
|
28
|
+
focus: fail('focus'),
|
|
29
|
+
minimize: fail('minimize'),
|
|
30
|
+
maximize: fail('maximize'),
|
|
31
|
+
restore: fail('restore'),
|
|
32
|
+
setTitle: fail('setTitle'),
|
|
33
|
+
getState: fail('getState'),
|
|
34
|
+
close: fail('close'),
|
|
35
|
+
invoke: fail('invoke'),
|
|
36
|
+
subscribe: raise('subscribe'),
|
|
37
|
+
onCloseRequest: raise('onCloseRequest')
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
async function runCloseRequestHandlers(handlers) {
|
|
41
|
+
for(let i = handlers.length - 1; i >= 0; i--)try {
|
|
42
|
+
const answer = await handlers[i]();
|
|
43
|
+
if ('cancel' === answer) return 'cancel';
|
|
44
|
+
} catch {
|
|
45
|
+
return 'cancel';
|
|
46
|
+
}
|
|
47
|
+
return 'close';
|
|
48
|
+
}
|
|
49
|
+
export { G9WindowUnavailableError, createUnavailableWindowControl, runCloseRequestHandlers };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=window.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services/window.js","sources":["../../src/services/window.ts"],"sourcesContent":["// The window of a desktop app (2.9.0, G9ProxyManager): show, hide, focus, minimize, maximize, the title, a close request\n// the app may cancel (close to the tray), and events from the main process (the tray's «show»). A contract only: the\n// app's UI talks to `G9WindowControl` and never to a host, the HostShell pattern. Lynxtron implements it\n// (`createLynxtronWindowControl` of `@g9tm/lynxcontrols-lynxtron`); a host without a window of its own (Lynx for Web, a\n// phone) uses `createUnavailableWindowControl`, whose every call fails with `G9WindowUnavailableError`.\nimport { G9Error } from '../errors';\n\n/** What the window is doing now. */\nexport interface G9WindowState {\n readonly visible: boolean;\n readonly focused: boolean;\n readonly minimized: boolean;\n readonly maximized: boolean;\n readonly fullScreen: boolean;\n readonly title: string;\n}\n\n/** What the host tells the page about its window. */\nexport type G9WindowEvent =\n | {\n readonly type:\n | 'show'\n | 'hide'\n | 'focus'\n | 'blur'\n | 'minimize'\n | 'maximize'\n | 'unmaximize'\n | 'restore'\n | 'enter-full-screen'\n | 'leave-full-screen';\n }\n /** The person (or the system) asked to close the window; the close-request handlers decide. */\n | { readonly type: 'close-request' }\n /** A message of the app's own from the main process (`sendToPage(win, 'tray', { action: 'show' })`). */\n | { readonly type: 'message'; readonly name: string; readonly data: unknown };\n\n/** What a close-request handler answers: keep the window (`'cancel'`) or let it close (`'close'`, the default). */\nexport type G9CloseDecision = 'close' | 'cancel';\n\n/** A close-request handler; it may ask the person first (a promise). Nothing returned = `'close'`. */\nexport type G9CloseRequestHandler = () => G9CloseDecision | undefined | Promise<G9CloseDecision | undefined>;\n\n/**\n * The app's window. Every method of an unavailable control (`available: false`) rejects or throws\n * `G9WindowUnavailableError`, so an app checks `available` before offering window features.\n */\nexport interface G9WindowControl {\n /** True when this host has a window the app can control. */\n readonly available: boolean;\n /** Shows the window (and restores it when minimized). */\n show(): Promise<void>;\n /** Hides the window (close to the tray). */\n hide(): Promise<void>;\n /** Brings the window to the front and gives it focus. */\n focus(): Promise<void>;\n minimize(): Promise<void>;\n maximize(): Promise<void>;\n /** Back from maximized or minimized to the normal size. */\n restore(): Promise<void>;\n setTitle(title: string): Promise<void>;\n getState(): Promise<G9WindowState>;\n /**\n * Closes the window. `force: false` (default) acts like the window's close button: the close-request handlers are\n * asked first; `force: true` closes without asking.\n */\n close(options?: { readonly force?: boolean }): Promise<void>;\n /** Calls a handler of the app's own in the main process (`attachG9Window(win, { handlers })`) and returns its answer. */\n invoke(name: string, data?: unknown): Promise<unknown>;\n /** Hears every window event; returns the unsubscribe. */\n subscribe(listener: (event: G9WindowEvent) => void): () => void;\n /**\n * Takes part in close requests: while at least one handler is registered the host asks before it closes the window,\n * and any handler answering `'cancel'` keeps it open. Returns the unregister.\n */\n onCloseRequest(handler: G9CloseRequestHandler): () => void;\n}\n\n/** Thrown by every call of a window control on a host without a window of its own. */\nexport class G9WindowUnavailableError extends G9Error {\n /** The call that failed (`'show'`, `'subscribe'`, …). */\n readonly operation: string;\n\n constructor(operation: string, reason = 'This host has no window the app can control.') {\n super('window-unavailable', `${reason} (${operation})`);\n this.name = 'G9WindowUnavailableError';\n this.operation = operation;\n }\n}\n\n/**\n * The window control of a host without a window (Lynx for Web, Android, iOS): `available: false`, and every method\n * rejects (or, for `subscribe` / `onCloseRequest`, throws) `G9WindowUnavailableError` with `reason`.\n */\nexport function createUnavailableWindowControl(reason?: string): G9WindowControl {\n const fail = (operation: string) => () => Promise.reject(new G9WindowUnavailableError(operation, reason));\n const raise = (operation: string) => (): (() => void) => {\n throw new G9WindowUnavailableError(operation, reason);\n };\n return Object.freeze({\n available: false,\n show: fail('show'),\n hide: fail('hide'),\n focus: fail('focus'),\n minimize: fail('minimize'),\n maximize: fail('maximize'),\n restore: fail('restore'),\n setTitle: fail('setTitle'),\n getState: fail('getState'),\n close: fail('close'),\n invoke: fail('invoke'),\n subscribe: raise('subscribe'),\n onCloseRequest: raise('onCloseRequest'),\n }) as G9WindowControl;\n}\n\n/**\n * Runs close-request handlers in order (the newest first) and answers `'cancel'` as soon as one does; a handler that\n * throws or rejects counts as `'cancel'` (a broken confirm dialog must not lose the person's work). Shared by every\n * host implementation.\n */\nexport async function runCloseRequestHandlers(handlers: readonly G9CloseRequestHandler[]): Promise<G9CloseDecision> {\n for (let i = handlers.length - 1; i >= 0; i--) {\n try {\n const answer = await (handlers[i] as G9CloseRequestHandler)();\n if (answer === 'cancel') return 'cancel';\n } catch {\n return 'cancel';\n }\n }\n return 'close';\n}\n"],"names":["G9WindowUnavailableError","G9Error","operation","reason","createUnavailableWindowControl","fail","Promise","raise","Object","runCloseRequestHandlers","handlers","i","answer"],"mappings":";;;;;;;;;;;AA+EO,MAAMA,iCAAiCC;IAI5C,YAAYC,SAAiB,EAAEC,SAAS,8CAA8C,CAAE;QACtF,KAAK,CAAC,sBAAsB,GAAGA,OAAO,EAAE,EAAED,UAAU,CAAC,CAAC,GAHxD,uBAAS,aAAT;QAIE,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,SAAS,GAAGA;IACnB;AACF;AAMO,SAASE,+BAA+BD,MAAe;IAC5D,MAAME,OAAO,CAACH,YAAsB,IAAMI,QAAQ,MAAM,CAAC,IAAIN,yBAAyBE,WAAWC;IACjG,MAAMI,QAAQ,CAACL,YAAsB;YACnC,MAAM,IAAIF,yBAAyBE,WAAWC;QAChD;IACA,OAAOK,OAAO,MAAM,CAAC;QACnB,WAAW;QACX,MAAMH,KAAK;QACX,MAAMA,KAAK;QACX,OAAOA,KAAK;QACZ,UAAUA,KAAK;QACf,UAAUA,KAAK;QACf,SAASA,KAAK;QACd,UAAUA,KAAK;QACf,UAAUA,KAAK;QACf,OAAOA,KAAK;QACZ,QAAQA,KAAK;QACb,WAAWE,MAAM;QACjB,gBAAgBA,MAAM;IACxB;AACF;AAOO,eAAeE,wBAAwBC,QAA0C;IACtF,IAAK,IAAIC,IAAID,SAAS,MAAM,GAAG,GAAGC,KAAK,GAAGA,IACxC,IAAI;QACF,MAAMC,SAAS,MAAOF,QAAQ,CAACC,EAAE;QACjC,IAAIC,AAAW,aAAXA,QAAqB,OAAO;IAClC,EAAE,OAAM;QACN,OAAO;IACT;IAEF,OAAO;AACT"}
|
package/docs/api.md
CHANGED
|
@@ -514,6 +514,7 @@ folder) explain how the pieces fit; the migration tables map every MAUI member.
|
|
|
514
514
|
| `createPreferences` | function | Creates the root `G9Preferences` over a store. One per app; the WP02 provider owns it. |
|
|
515
515
|
| `createSequenceMatcher` | function | Key sequences (`'g i'`: g then i within `timeoutMs`, G9Hub's "go to" shortcuts). Feed every key; it answers the sequence completed by this key, or null. |
|
|
516
516
|
| `createSystemClock` | function | The system clock: `Date.now()` for wall time; `performance.now()` for monotonic time where the runtime has it (the Lynx typings do not promise it), otherwise `createMonotonicFromWall` over `Date.now()`. |
|
|
517
|
+
| `createUnavailableWindowControl` | function | The window control of a host without a window (Lynx for Web, Android, iOS): `available: false`, and every method rejects (or, for `subscribe` / `onCloseRequest`, throws) `G9WindowUnavailableError` with `reason`. |
|
|
517
518
|
| `g9Haptic` | function | A haptic for `kind`, if the host has haptics and the user allows them. |
|
|
518
519
|
| `g9ImageSrc` | function | The `<image src>` for a file path or URI: `/data/x.jpg` → `file:///data/x.jpg`, a Windows path `C:/pics/a b.jpg` (or with backslashes) → `file:///C:/pics/a%20b.jpg`; a URI (any scheme), a relative name and the empty string come back as they are. |
|
|
519
520
|
| `g9MotionScale` | function | The current motion scale (1 = as designed). |
|
|
@@ -521,25 +522,31 @@ folder) explain how the pieces fit; the migration tables map every MAUI member.
|
|
|
521
522
|
| `g9Sound` | function | A sound for `kind`, if the host has sounds and the user allows them. |
|
|
522
523
|
| `hasCapability` | function | `true` when the capability is present (optional features use this to hide themselves). |
|
|
523
524
|
| `isAbortError` | function | `true` for an error named `'AbortError'` (web `DOMException`, our `createAbortError`, most libraries). |
|
|
525
|
+
| `isContextMenuKey` | function | True for the keys that open a context menu from the keyboard (2.9.0): the context-menu key (`'ContextMenu'`, also sent as `'Apps'`) and Shift+F10, on Windows, macOS and the web alike. |
|
|
524
526
|
| `matchesCombo` | function | True when `event` is `combo` (`platform: 'mac'` maps Mod to Meta). |
|
|
525
527
|
| `parseCombo` | function | Parses `'Mod+K'`, `'ctrl+shift+p'`, `'Escape'`, `'?'`. Case-insensitive; the last part is the key. |
|
|
526
528
|
| `requireCapability` | function | The capability, or throws `G9CapabilityMissingError` naming it. |
|
|
529
|
+
| `runCloseRequestHandlers` | function | Runs close-request handlers in order (the newest first) and answers `'cancel'` as soon as one does; a handler that throws or rejects counts as `'cancel'` (a broken confirm dialog must not lose the person's work). Shared by every host implementation. |
|
|
527
530
|
| `setG9Feedback` | function | Installs (or removes, with null) the host's feedback; the provider does this from its `services`. |
|
|
528
531
|
| `setG9FeedbackEnabled` | function | The user's settings (an app's "vibration" and "sounds" switches). |
|
|
529
532
|
| `setG9MotionScale` | function | Sets the scale (clamped to 0..10). Listeners hear a real change only. |
|
|
530
533
|
| `subscribeG9Motion` | function | Hears every change of the scale; returns the remover. |
|
|
531
534
|
| `g9FieldKeyEventName` | constant | Global event for a key pressed inside a text field (hosts forward only Escape and modified keys). |
|
|
532
535
|
| `g9KeyEventName` | constant | Global event a host sends for a key pressed outside a text field. |
|
|
536
|
+
| `g9ModifiersEventName` | constant | Global event a host sends when a modifier key goes down or up (2.9.0): `{ shift, ctrl, alt, meta }` as held now, all false when the window loses the focus. Lynx pointer events carry no modifier flags, so Shift+click and Ctrl+click (multi-select) read the held modifiers (`g9HeldModifiers` of `@g9tm/lynxcontrols/commands`). |
|
|
533
537
|
| `g9PreferenceKeyPrefix` | constant | The prefix on every key the controls write (MAUI `G9Preferences.KeyPrefix`). |
|
|
534
538
|
| `g9RequiredCapabilities` | constant | Capabilities without which the provider cannot mount. |
|
|
535
539
|
| `G9CapabilityMissingError` | class | Thrown when code needs a capability the app did not supply (specs/03 §7: `G9CapabilityMissingError('speech')`). |
|
|
540
|
+
| `G9WindowUnavailableError` | class | Thrown by every call of a window control on a host without a window of its own. |
|
|
536
541
|
| `G9AbortController` | interface | Owner side of a `G9AbortSignal`. |
|
|
537
542
|
| `G9AbortSignal` | interface | The cancellation signal G9 passes to async work (MAUI `CancellationToken`, plan/specs/03-API-Conventions.md §2). A web `AbortSignal` satisfies it, so app code can hand it to `fetch`. The Lynx typings do not declare `AbortController`, and its presence on PrimJS is not verified, so `createAbortController` falls back to a small portable implementation when the runtime has none. |
|
|
538
543
|
| `G9Capabilities` | interface | Every service the app can supply. Required ones are listed in `g9RequiredCapabilities`. |
|
|
539
544
|
| `G9Clock` | interface | Time source of everything in G9 that needs "now" (plan/specs/01-Architecture.md §8). Supplied by the app through the provider; tests pass a manual clock. |
|
|
545
|
+
| `G9EyeDropper` | interface | The screen colour picker (2.10.0): a browser's `EyeDropper`, a desktop shell's. Optional: `G9ColorPicker` shows its eyedropper only when `available()` resolves true. |
|
|
540
546
|
| `G9FilePicker` | interface | The system file chooser and camera (G9Hub `platform().files`). Optional: without it `G9DropZone` shows its area disabled. A host that can drop files on the window emits `g9:drag` `{ active }` and `g9:drop` `{ files }`. |
|
|
541
547
|
| `G9FileRef` | interface | A file the host picked or received (a handle: read and release it through the host's own files API). |
|
|
542
548
|
| `G9Haptics` | interface | Haptic feedback the host plays (optional capability `haptics`); without it controls stay silent. |
|
|
549
|
+
| `G9HeldModifiers` | interface | The modifier keys held now. |
|
|
543
550
|
| `G9HostServices` | interface | Host integration the provider and overlays need (MAUI page/window plumbing), supplied by the native host. Required. The system back press does not go through this object: the host sends a global event (default `g9:back`, specs/02 §4) and the provider dispatches it to the active `G9Host`; `exit` is what happens when nothing handled it. |
|
|
544
551
|
| `G9KeyCombo` | interface | A parsed combo: `'Mod+Shift+K'` (Mod = Ctrl, or Cmd on macOS). |
|
|
545
552
|
| `G9KeyEvent` | interface | A key as hosts send it: `key` is a DOM key name (`'ArrowLeft'`, `'Escape'`, `'k'`). |
|
|
@@ -561,7 +568,12 @@ folder) explain how the pieces fit; the migration tables map every MAUI member.
|
|
|
561
568
|
| `G9Sounds` | interface | Sound feedback the host plays (optional capability `sounds`): a tick, a success, an error. |
|
|
562
569
|
| `G9SpeechToText` | interface | Speech recognition for dictation into fields (MAUI `IG9SpeechToText`). Optional: without it the microphone affordance is hidden. A platform fault rejects with a `G9Error`. |
|
|
563
570
|
| `G9SpeechToTextOptions` | interface | Options of one dictation session. |
|
|
571
|
+
| `G9VideoElementProps` | interface | Props of the `<g9-video>` element (`G9VideoUI` on Android, `G9LCVideoUI` on iOS, `registerG9Video` on the web). |
|
|
572
|
+
| `G9WindowControl` | interface | The app's window. Every method of an unavailable control (`available: false`) rejects or throws `G9WindowUnavailableError`, so an app checks `available` before offering window features. |
|
|
573
|
+
| `G9WindowState` | interface | What the window is doing now. |
|
|
564
574
|
| `G9CapabilityName` | type | The name of a capability. |
|
|
575
|
+
| `G9CloseDecision` | type | What a close-request handler answers: keep the window (`'cancel'`) or let it close (`'close'`, the default). |
|
|
576
|
+
| `G9CloseRequestHandler` | type | A close-request handler; it may ask the person first (a promise). Nothing returned = `'close'`. |
|
|
565
577
|
| `G9HapticKind` | type | What a haptic means; the host chooses the pattern. |
|
|
566
578
|
| `G9MaybePromise` | type | A value or a promise of it: stores may be synchronous (memory) or asynchronous (a native module). |
|
|
567
579
|
| `G9MediaPlayerEvent` | type | What a `G9MediaPlayer` tells its owner. |
|
|
@@ -572,6 +584,7 @@ folder) explain how the pieces fit; the migration tables map every MAUI member.
|
|
|
572
584
|
| `G9SoftInputMode` | type | Android soft-input policy while a flow needs it (MAUI `G9KeyboardHelper.UseAndroidPanSoftInputMode`). |
|
|
573
585
|
| `G9SoundKind` | type | What a sound means. |
|
|
574
586
|
| `G9SpeechToTextResult` | type | How a dictation session ended. Expected outcomes are results, not errors (specs/03 §7). |
|
|
587
|
+
| `G9WindowEvent` | type | What the host tells the page about its window. |
|
|
575
588
|
|
|
576
589
|
## `@g9tm/lynxcontrols-foundation/route`
|
|
577
590
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols-foundation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Pure TypeScript core: design tokens, theme model, culture (strings, digits, calendars, relative time, durations), icon model, safe execution, diagnostics, preference and capability contracts. No React, no UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|