@flyingrobots/bijou-tui 7.2.0 → 8.0.0-rc.1
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/dist/animate-constants.d.ts +3 -0
- package/dist/animate-constants.d.ts.map +1 -0
- package/dist/animate-constants.js +3 -0
- package/dist/animate-constants.js.map +1 -0
- package/dist/animate.d.ts +3 -91
- package/dist/animate.d.ts.map +1 -1
- package/dist/animate.js +2 -158
- package/dist/animate.js.map +1 -1
- package/dist/animate.part01.d.ts +83 -0
- package/dist/animate.part01.d.ts.map +1 -0
- package/dist/animate.part01.js +40 -0
- package/dist/animate.part01.js.map +1 -0
- package/dist/animate.part02.d.ts +44 -0
- package/dist/animate.part02.d.ts.map +1 -0
- package/dist/animate.part02.js +61 -0
- package/dist/animate.part02.js.map +1 -0
- package/dist/animate.part03.d.ts +43 -0
- package/dist/animate.part03.d.ts.map +1 -0
- package/dist/animate.part03.js +52 -0
- package/dist/animate.part03.js.map +1 -0
- package/dist/app-frame-action-types.d.ts +177 -0
- package/dist/app-frame-action-types.d.ts.map +1 -0
- package/dist/app-frame-action-types.js +2 -0
- package/dist/app-frame-action-types.js.map +1 -0
- package/dist/app-frame-actions-dispatch.d.ts +5 -0
- package/dist/app-frame-actions-dispatch.d.ts.map +1 -0
- package/dist/app-frame-actions-dispatch.js +67 -0
- package/dist/app-frame-actions-dispatch.js.map +1 -0
- package/dist/app-frame-actions-footer.d.ts +13 -0
- package/dist/app-frame-actions-footer.d.ts.map +1 -0
- package/dist/app-frame-actions-footer.js +57 -0
- package/dist/app-frame-actions-footer.js.map +1 -0
- package/dist/app-frame-actions-measure.d.ts +4 -0
- package/dist/app-frame-actions-measure.d.ts.map +1 -0
- package/dist/app-frame-actions-measure.js +11 -0
- package/dist/app-frame-actions-measure.js.map +1 -0
- package/dist/app-frame-actions-overlays.d.ts +5 -0
- package/dist/app-frame-actions-overlays.d.ts.map +1 -0
- package/dist/app-frame-actions-overlays.js +66 -0
- package/dist/app-frame-actions-overlays.js.map +1 -0
- package/dist/app-frame-actions-pane.d.ts +5 -0
- package/dist/app-frame-actions-pane.d.ts.map +1 -0
- package/dist/app-frame-actions-pane.js +48 -0
- package/dist/app-frame-actions-pane.js.map +1 -0
- package/dist/app-frame-actions-panel.d.ts +7 -0
- package/dist/app-frame-actions-panel.d.ts.map +1 -0
- package/dist/app-frame-actions-panel.js +68 -0
- package/dist/app-frame-actions-panel.js.map +1 -0
- package/dist/app-frame-actions-scroll.d.ts +8 -0
- package/dist/app-frame-actions-scroll.d.ts.map +1 -0
- package/dist/app-frame-actions-scroll.js +79 -0
- package/dist/app-frame-actions-scroll.js.map +1 -0
- package/dist/app-frame-actions-tabs.d.ts +6 -0
- package/dist/app-frame-actions-tabs.d.ts.map +1 -0
- package/dist/app-frame-actions-tabs.js +81 -0
- package/dist/app-frame-actions-tabs.js.map +1 -0
- package/dist/app-frame-actions.d.ts +6 -15
- package/dist/app-frame-actions.d.ts.map +1 -1
- package/dist/app-frame-actions.js +6 -443
- package/dist/app-frame-actions.js.map +1 -1
- package/dist/app-frame-app-init.d.ts +14 -0
- package/dist/app-frame-app-init.d.ts.map +1 -0
- package/dist/app-frame-app-init.js +81 -0
- package/dist/app-frame-app-init.js.map +1 -0
- package/dist/app-frame-app-update.d.ts +29 -0
- package/dist/app-frame-app-update.d.ts.map +1 -0
- package/dist/app-frame-app-update.js +28 -0
- package/dist/app-frame-app-update.js.map +1 -0
- package/dist/app-frame-app-view.d.ts +6 -0
- package/dist/app-frame-app-view.d.ts.map +1 -0
- package/dist/app-frame-app-view.js +14 -0
- package/dist/app-frame-app-view.js.map +1 -0
- package/dist/app-frame-contracts.d.ts +32 -0
- package/dist/app-frame-contracts.d.ts.map +1 -0
- package/dist/app-frame-contracts.js +3 -0
- package/dist/app-frame-contracts.js.map +1 -0
- package/dist/app-frame-controls-runtime.d.ts +32 -0
- package/dist/app-frame-controls-runtime.d.ts.map +1 -0
- package/dist/app-frame-controls-runtime.js +86 -0
- package/dist/app-frame-controls-runtime.js.map +1 -0
- package/dist/app-frame-create.d.ts +14 -0
- package/dist/app-frame-create.d.ts.map +1 -0
- package/dist/app-frame-create.js +64 -0
- package/dist/app-frame-create.js.map +1 -0
- package/dist/app-frame-frame-action-update.d.ts +21 -0
- package/dist/app-frame-frame-action-update.d.ts.map +1 -0
- package/dist/app-frame-frame-action-update.js +51 -0
- package/dist/app-frame-frame-action-update.js.map +1 -0
- package/dist/app-frame-geometry.d.ts +8 -0
- package/dist/app-frame-geometry.d.ts.map +1 -0
- package/dist/app-frame-geometry.js +27 -0
- package/dist/app-frame-geometry.js.map +1 -0
- package/dist/app-frame-help-keys.d.ts +8 -0
- package/dist/app-frame-help-keys.d.ts.map +1 -0
- package/dist/app-frame-help-keys.js +72 -0
- package/dist/app-frame-help-keys.js.map +1 -0
- package/dist/app-frame-help-scroll.d.ts +8 -0
- package/dist/app-frame-help-scroll.d.ts.map +1 -0
- package/dist/app-frame-help-scroll.js +25 -0
- package/dist/app-frame-help-scroll.js.map +1 -0
- package/dist/app-frame-hint-sources.d.ts +14 -0
- package/dist/app-frame-hint-sources.d.ts.map +1 -0
- package/dist/app-frame-hint-sources.js +17 -0
- package/dist/app-frame-hint-sources.js.map +1 -0
- package/dist/app-frame-host.d.ts +5 -0
- package/dist/app-frame-host.d.ts.map +1 -0
- package/dist/app-frame-host.js +51 -0
- package/dist/app-frame-host.js.map +1 -0
- package/dist/app-frame-i18n-catalog.d.ts +4 -0
- package/dist/app-frame-i18n-catalog.d.ts.map +1 -0
- package/dist/app-frame-i18n-catalog.js +97 -0
- package/dist/app-frame-i18n-catalog.js.map +1 -0
- package/dist/app-frame-i18n.d.ts +2 -2
- package/dist/app-frame-i18n.d.ts.map +1 -1
- package/dist/app-frame-i18n.js +2 -95
- package/dist/app-frame-i18n.js.map +1 -1
- package/dist/app-frame-key-collision.d.ts +5 -0
- package/dist/app-frame-key-collision.d.ts.map +1 -0
- package/dist/app-frame-key-collision.js +54 -0
- package/dist/app-frame-key-collision.js.map +1 -0
- package/dist/app-frame-key-route-contract.d.ts +20 -0
- package/dist/app-frame-key-route-contract.d.ts.map +1 -0
- package/dist/app-frame-key-route-contract.js +2 -0
- package/dist/app-frame-key-route-contract.js.map +1 -0
- package/dist/app-frame-key-route-layers.d.ts +8 -0
- package/dist/app-frame-key-route-layers.d.ts.map +1 -0
- package/dist/app-frame-key-route-layers.js +38 -0
- package/dist/app-frame-key-route-layers.js.map +1 -0
- package/dist/app-frame-key-route-notifications.d.ts +5 -0
- package/dist/app-frame-key-route-notifications.d.ts.map +1 -0
- package/dist/app-frame-key-route-notifications.js +92 -0
- package/dist/app-frame-key-route-notifications.js.map +1 -0
- package/dist/app-frame-key-route-palette-help.d.ts +6 -0
- package/dist/app-frame-key-route-palette-help.d.ts.map +1 -0
- package/dist/app-frame-key-route-palette-help.js +67 -0
- package/dist/app-frame-key-route-palette-help.js.map +1 -0
- package/dist/app-frame-key-route-settings.d.ts +5 -0
- package/dist/app-frame-key-route-settings.d.ts.map +1 -0
- package/dist/app-frame-key-route-settings.js +88 -0
- package/dist/app-frame-key-route-settings.js.map +1 -0
- package/dist/app-frame-key-route-shared.d.ts +3 -0
- package/dist/app-frame-key-route-shared.d.ts.map +1 -0
- package/dist/app-frame-key-route-shared.js +35 -0
- package/dist/app-frame-key-route-shared.js.map +1 -0
- package/dist/app-frame-key-route-workspace.d.ts +5 -0
- package/dist/app-frame-key-route-workspace.d.ts.map +1 -0
- package/dist/app-frame-key-route-workspace.js +76 -0
- package/dist/app-frame-key-route-workspace.js.map +1 -0
- package/dist/app-frame-key-route.d.ts +9 -0
- package/dist/app-frame-key-route.d.ts.map +1 -0
- package/dist/app-frame-key-route.js +67 -0
- package/dist/app-frame-key-route.js.map +1 -0
- package/dist/app-frame-keymap.d.ts +12 -0
- package/dist/app-frame-keymap.d.ts.map +1 -0
- package/dist/app-frame-keymap.js +77 -0
- package/dist/app-frame-keymap.js.map +1 -0
- package/dist/app-frame-layer-context.d.ts +15 -0
- package/dist/app-frame-layer-context.d.ts.map +1 -0
- package/dist/app-frame-layer-context.js +23 -0
- package/dist/app-frame-layer-context.js.map +1 -0
- package/dist/app-frame-layer-metadata.d.ts +18 -0
- package/dist/app-frame-layer-metadata.d.ts.map +1 -0
- package/dist/app-frame-layer-metadata.js +67 -0
- package/dist/app-frame-layer-metadata.js.map +1 -0
- package/dist/app-frame-layers.d.ts +3 -42
- package/dist/app-frame-layers.d.ts.map +1 -1
- package/dist/app-frame-layers.js +2 -154
- package/dist/app-frame-layers.js.map +1 -1
- package/dist/app-frame-layers.part01.d.ts +37 -0
- package/dist/app-frame-layers.part01.d.ts.map +1 -0
- package/dist/app-frame-layers.part01.js +2 -0
- package/dist/app-frame-layers.part01.js.map +1 -0
- package/dist/app-frame-layers.part02.d.ts +7 -0
- package/dist/app-frame-layers.part02.d.ts.map +1 -0
- package/dist/app-frame-layers.part02.js +91 -0
- package/dist/app-frame-layers.part02.js.map +1 -0
- package/dist/app-frame-layers.part03.d.ts +7 -0
- package/dist/app-frame-layers.part03.d.ts.map +1 -0
- package/dist/app-frame-layers.part03.js +47 -0
- package/dist/app-frame-layers.part03.js.map +1 -0
- package/dist/app-frame-layers.part04.d.ts +4 -0
- package/dist/app-frame-layers.part04.d.ts.map +1 -0
- package/dist/app-frame-layers.part04.js +21 -0
- package/dist/app-frame-layers.part04.js.map +1 -0
- package/dist/app-frame-layout-contract.d.ts +46 -0
- package/dist/app-frame-layout-contract.d.ts.map +1 -0
- package/dist/app-frame-layout-contract.js +2 -0
- package/dist/app-frame-layout-contract.js.map +1 -0
- package/dist/app-frame-layout-runtime.d.ts +27 -0
- package/dist/app-frame-layout-runtime.d.ts.map +1 -0
- package/dist/app-frame-layout-runtime.js +37 -0
- package/dist/app-frame-layout-runtime.js.map +1 -0
- package/dist/app-frame-messages.d.ts +31 -0
- package/dist/app-frame-messages.d.ts.map +1 -0
- package/dist/app-frame-messages.js +86 -0
- package/dist/app-frame-messages.js.map +1 -0
- package/dist/app-frame-model-helpers.d.ts +6 -0
- package/dist/app-frame-model-helpers.d.ts.map +1 -0
- package/dist/app-frame-model-helpers.js +17 -0
- package/dist/app-frame-model-helpers.js.map +1 -0
- package/dist/app-frame-model-types.d.ts +88 -0
- package/dist/app-frame-model-types.d.ts.map +1 -0
- package/dist/app-frame-model-types.js +2 -0
- package/dist/app-frame-model-types.js.map +1 -0
- package/dist/app-frame-mouse-layout.d.ts +16 -0
- package/dist/app-frame-mouse-layout.d.ts.map +1 -0
- package/dist/app-frame-mouse-layout.js +63 -0
- package/dist/app-frame-mouse-layout.js.map +1 -0
- package/dist/app-frame-mouse-route.d.ts +17 -0
- package/dist/app-frame-mouse-route.d.ts.map +1 -0
- package/dist/app-frame-mouse-route.js +67 -0
- package/dist/app-frame-mouse-route.js.map +1 -0
- package/dist/app-frame-mouse-workspace.d.ts +14 -0
- package/dist/app-frame-mouse-workspace.d.ts.map +1 -0
- package/dist/app-frame-mouse-workspace.js +73 -0
- package/dist/app-frame-mouse-workspace.js.map +1 -0
- package/dist/app-frame-notification-contract.d.ts +18 -0
- package/dist/app-frame-notification-contract.d.ts.map +1 -0
- package/dist/app-frame-notification-contract.js +2 -0
- package/dist/app-frame-notification-contract.js.map +1 -0
- package/dist/app-frame-notification-runtime.d.ts +16 -0
- package/dist/app-frame-notification-runtime.d.ts.map +1 -0
- package/dist/app-frame-notification-runtime.js +40 -0
- package/dist/app-frame-notification-runtime.js.map +1 -0
- package/dist/app-frame-notification-state.d.ts +13 -0
- package/dist/app-frame-notification-state.d.ts.map +1 -0
- package/dist/app-frame-notification-state.js +64 -0
- package/dist/app-frame-notification-state.js.map +1 -0
- package/dist/app-frame-options.d.ts +112 -0
- package/dist/app-frame-options.d.ts.map +1 -0
- package/dist/app-frame-options.js +2 -0
- package/dist/app-frame-options.js.map +1 -0
- package/dist/app-frame-overlay-contract.d.ts +55 -0
- package/dist/app-frame-overlay-contract.d.ts.map +1 -0
- package/dist/app-frame-overlay-contract.js +3 -0
- package/dist/app-frame-overlay-contract.js.map +1 -0
- package/dist/app-frame-overlay-help.d.ts +13 -0
- package/dist/app-frame-overlay-help.d.ts.map +1 -0
- package/dist/app-frame-overlay-help.js +39 -0
- package/dist/app-frame-overlay-help.js.map +1 -0
- package/dist/app-frame-overlay-layout.d.ts +7 -0
- package/dist/app-frame-overlay-layout.d.ts.map +1 -0
- package/dist/app-frame-overlay-layout.js +90 -0
- package/dist/app-frame-overlay-layout.js.map +1 -0
- package/dist/app-frame-overlay-navigation.d.ts +11 -0
- package/dist/app-frame-overlay-navigation.d.ts.map +1 -0
- package/dist/app-frame-overlay-navigation.js +72 -0
- package/dist/app-frame-overlay-navigation.js.map +1 -0
- package/dist/app-frame-overlay-notifications.d.ts +10 -0
- package/dist/app-frame-overlay-notifications.d.ts.map +1 -0
- package/dist/app-frame-overlay-notifications.js +107 -0
- package/dist/app-frame-overlay-notifications.js.map +1 -0
- package/dist/app-frame-overlay-render-notifications.d.ts +5 -0
- package/dist/app-frame-overlay-render-notifications.d.ts.map +1 -0
- package/dist/app-frame-overlay-render-notifications.js +57 -0
- package/dist/app-frame-overlay-render-notifications.js.map +1 -0
- package/dist/app-frame-overlay-render-settings.d.ts +7 -0
- package/dist/app-frame-overlay-render-settings.d.ts.map +1 -0
- package/dist/app-frame-overlay-render-settings.js +44 -0
- package/dist/app-frame-overlay-render-settings.js.map +1 -0
- package/dist/app-frame-overlay-settings.d.ts +8 -0
- package/dist/app-frame-overlay-settings.d.ts.map +1 -0
- package/dist/app-frame-overlay-settings.js +63 -0
- package/dist/app-frame-overlay-settings.js.map +1 -0
- package/dist/app-frame-overlay-shell-theme.d.ts +10 -0
- package/dist/app-frame-overlay-shell-theme.d.ts.map +1 -0
- package/dist/app-frame-overlay-shell-theme.js +97 -0
- package/dist/app-frame-overlay-shell-theme.js.map +1 -0
- package/dist/app-frame-overlays.d.ts +9 -89
- package/dist/app-frame-overlays.d.ts.map +1 -1
- package/dist/app-frame-overlays.js +9 -571
- package/dist/app-frame-overlays.js.map +1 -1
- package/dist/app-frame-page-contract.d.ts +60 -0
- package/dist/app-frame-page-contract.d.ts.map +1 -0
- package/dist/app-frame-page-contract.js +2 -0
- package/dist/app-frame-page-contract.js.map +1 -0
- package/dist/app-frame-page-registry.d.ts +9 -0
- package/dist/app-frame-page-registry.d.ts.map +1 -0
- package/dist/app-frame-page-registry.js +19 -0
- package/dist/app-frame-page-registry.js.map +1 -0
- package/dist/app-frame-page-update.d.ts +5 -0
- package/dist/app-frame-page-update.d.ts.map +1 -0
- package/dist/app-frame-page-update.js +19 -0
- package/dist/app-frame-page-update.js.map +1 -0
- package/dist/app-frame-palette-selection.d.ts +10 -0
- package/dist/app-frame-palette-selection.d.ts.map +1 -0
- package/dist/app-frame-palette-selection.js +39 -0
- package/dist/app-frame-palette-selection.js.map +1 -0
- package/dist/app-frame-palette.d.ts +4 -9
- package/dist/app-frame-palette.d.ts.map +1 -1
- package/dist/app-frame-palette.js +4 -210
- package/dist/app-frame-palette.js.map +1 -1
- package/dist/app-frame-palette.part01.d.ts +10 -0
- package/dist/app-frame-palette.part01.d.ts.map +1 -0
- package/dist/app-frame-palette.part01.js +44 -0
- package/dist/app-frame-palette.part01.js.map +1 -0
- package/dist/app-frame-palette.part02.d.ts +6 -0
- package/dist/app-frame-palette.part02.d.ts.map +1 -0
- package/dist/app-frame-palette.part02.js +25 -0
- package/dist/app-frame-palette.part02.js.map +1 -0
- package/dist/app-frame-palette.part03.d.ts +5 -0
- package/dist/app-frame-palette.part03.d.ts.map +1 -0
- package/dist/app-frame-palette.part03.js +89 -0
- package/dist/app-frame-palette.part03.js.map +1 -0
- package/dist/app-frame-palette.part04.d.ts +5 -0
- package/dist/app-frame-palette.part04.d.ts.map +1 -0
- package/dist/app-frame-palette.part04.js +20 -0
- package/dist/app-frame-palette.part04.js.map +1 -0
- package/dist/app-frame-performance-runtime.d.ts +6 -0
- package/dist/app-frame-performance-runtime.d.ts.map +1 -0
- package/dist/app-frame-performance-runtime.js +30 -0
- package/dist/app-frame-performance-runtime.js.map +1 -0
- package/dist/app-frame-performance.d.ts +26 -0
- package/dist/app-frame-performance.d.ts.map +1 -0
- package/dist/app-frame-performance.js +44 -0
- package/dist/app-frame-performance.js.map +1 -0
- package/dist/app-frame-presentation.d.ts +20 -0
- package/dist/app-frame-presentation.d.ts.map +1 -0
- package/dist/app-frame-presentation.js +20 -0
- package/dist/app-frame-presentation.js.map +1 -0
- package/dist/app-frame-render-colors.d.ts +5 -0
- package/dist/app-frame-render-colors.d.ts.map +1 -0
- package/dist/app-frame-render-colors.js +117 -0
- package/dist/app-frame-render-colors.js.map +1 -0
- package/dist/app-frame-render-content.d.ts +11 -0
- package/dist/app-frame-render-content.d.ts.map +1 -0
- package/dist/app-frame-render-content.js +42 -0
- package/dist/app-frame-render-content.js.map +1 -0
- package/dist/app-frame-render-contract.d.ts +33 -0
- package/dist/app-frame-render-contract.d.ts.map +1 -0
- package/dist/app-frame-render-contract.js +2 -0
- package/dist/app-frame-render-contract.js.map +1 -0
- package/dist/app-frame-render-grid.d.ts +10 -0
- package/dist/app-frame-render-grid.d.ts.map +1 -0
- package/dist/app-frame-render-grid.js +51 -0
- package/dist/app-frame-render-grid.js.map +1 -0
- package/dist/app-frame-render-header.d.ts +10 -0
- package/dist/app-frame-render-header.d.ts.map +1 -0
- package/dist/app-frame-render-header.js +96 -0
- package/dist/app-frame-render-header.js.map +1 -0
- package/dist/app-frame-render-maximized.d.ts +11 -0
- package/dist/app-frame-render-maximized.d.ts.map +1 -0
- package/dist/app-frame-render-maximized.js +51 -0
- package/dist/app-frame-render-maximized.js.map +1 -0
- package/dist/app-frame-render-node.d.ts +9 -0
- package/dist/app-frame-render-node.d.ts.map +1 -0
- package/dist/app-frame-render-node.js +35 -0
- package/dist/app-frame-render-node.js.map +1 -0
- package/dist/app-frame-render-pane.d.ts +7 -0
- package/dist/app-frame-render-pane.d.ts.map +1 -0
- package/dist/app-frame-render-pane.js +36 -0
- package/dist/app-frame-render-pane.js.map +1 -0
- package/dist/app-frame-render-scratch.d.ts +7 -0
- package/dist/app-frame-render-scratch.d.ts.map +1 -0
- package/dist/app-frame-render-scratch.js +20 -0
- package/dist/app-frame-render-scratch.js.map +1 -0
- package/dist/app-frame-render-split.d.ts +7 -0
- package/dist/app-frame-render-split.d.ts.map +1 -0
- package/dist/app-frame-render-split.js +46 -0
- package/dist/app-frame-render-split.js.map +1 -0
- package/dist/app-frame-render-surface.d.ts +11 -0
- package/dist/app-frame-render-surface.d.ts.map +1 -0
- package/dist/app-frame-render-surface.js +80 -0
- package/dist/app-frame-render-surface.js.map +1 -0
- package/dist/app-frame-render-transition.d.ts +9 -0
- package/dist/app-frame-render-transition.d.ts.map +1 -0
- package/dist/app-frame-render-transition.js +46 -0
- package/dist/app-frame-render-transition.js.map +1 -0
- package/dist/app-frame-render.d.ts +9 -47
- package/dist/app-frame-render.d.ts.map +1 -1
- package/dist/app-frame-render.js +8 -533
- package/dist/app-frame-render.js.map +1 -1
- package/dist/app-frame-runtime.d.ts +22 -0
- package/dist/app-frame-runtime.d.ts.map +1 -0
- package/dist/app-frame-runtime.js +12 -0
- package/dist/app-frame-runtime.js.map +1 -0
- package/dist/app-frame-settings-contract.d.ts +44 -0
- package/dist/app-frame-settings-contract.d.ts.map +1 -0
- package/dist/app-frame-settings-contract.js +2 -0
- package/dist/app-frame-settings-contract.js.map +1 -0
- package/dist/app-frame-shell-command-contract.d.ts +28 -0
- package/dist/app-frame-shell-command-contract.d.ts.map +1 -0
- package/dist/app-frame-shell-command-contract.js +2 -0
- package/dist/app-frame-shell-command-contract.js.map +1 -0
- package/dist/app-frame-shell-command-interaction.d.ts +5 -0
- package/dist/app-frame-shell-command-interaction.d.ts.map +1 -0
- package/dist/app-frame-shell-command-interaction.js +70 -0
- package/dist/app-frame-shell-command-interaction.js.map +1 -0
- package/dist/app-frame-shell-command-ui.d.ts +5 -0
- package/dist/app-frame-shell-command-ui.d.ts.map +1 -0
- package/dist/app-frame-shell-command-ui.js +103 -0
- package/dist/app-frame-shell-command-ui.js.map +1 -0
- package/dist/app-frame-shell-command.d.ts +9 -0
- package/dist/app-frame-shell-command.d.ts.map +1 -0
- package/dist/app-frame-shell-command.js +48 -0
- package/dist/app-frame-shell-command.js.map +1 -0
- package/dist/app-frame-theme-contract.d.ts +74 -0
- package/dist/app-frame-theme-contract.d.ts.map +1 -0
- package/dist/app-frame-theme-contract.js +6 -0
- package/dist/app-frame-theme-contract.js.map +1 -0
- package/dist/app-frame-theme-mode.d.ts +28 -0
- package/dist/app-frame-theme-mode.d.ts.map +1 -0
- package/dist/app-frame-theme-mode.js +50 -0
- package/dist/app-frame-theme-mode.js.map +1 -0
- package/dist/app-frame-theme-run-contract.d.ts +9 -0
- package/dist/app-frame-theme-run-contract.d.ts.map +1 -0
- package/dist/app-frame-theme-run-contract.js +2 -0
- package/dist/app-frame-theme-run-contract.js.map +1 -0
- package/dist/app-frame-theme-runtime.d.ts +24 -0
- package/dist/app-frame-theme-runtime.d.ts.map +1 -0
- package/dist/app-frame-theme-runtime.js +109 -0
- package/dist/app-frame-theme-runtime.js.map +1 -0
- package/dist/app-frame-transition-contract.d.ts +5 -0
- package/dist/app-frame-transition-contract.d.ts.map +1 -0
- package/dist/app-frame-transition-contract.js +2 -0
- package/dist/app-frame-transition-contract.js.map +1 -0
- package/dist/app-frame-transition-update.d.ts +12 -0
- package/dist/app-frame-transition-update.d.ts.map +1 -0
- package/dist/app-frame-transition-update.js +46 -0
- package/dist/app-frame-transition-update.js.map +1 -0
- package/dist/app-frame-types.d.ts +5 -386
- package/dist/app-frame-types.d.ts.map +1 -1
- package/dist/app-frame-types.js +2 -89
- package/dist/app-frame-types.js.map +1 -1
- package/dist/app-frame-utils.d.ts +4 -17
- package/dist/app-frame-utils.d.ts.map +1 -1
- package/dist/app-frame-utils.js +3 -75
- package/dist/app-frame-utils.js.map +1 -1
- package/dist/app-frame-view-base.d.ts +22 -0
- package/dist/app-frame-view-base.d.ts.map +1 -0
- package/dist/app-frame-view-base.js +47 -0
- package/dist/app-frame-view-base.js.map +1 -0
- package/dist/app-frame-view-body.d.ts +12 -0
- package/dist/app-frame-view-body.d.ts.map +1 -0
- package/dist/app-frame-view-body.js +27 -0
- package/dist/app-frame-view-body.js.map +1 -0
- package/dist/app-frame-view-contract.d.ts +24 -0
- package/dist/app-frame-view-contract.d.ts.map +1 -0
- package/dist/app-frame-view-contract.js +2 -0
- package/dist/app-frame-view-contract.js.map +1 -0
- package/dist/app-frame-view-modals.d.ts +6 -0
- package/dist/app-frame-view-modals.d.ts.map +1 -0
- package/dist/app-frame-view-modals.js +59 -0
- package/dist/app-frame-view-modals.js.map +1 -0
- package/dist/app-frame-view-overlays.d.ts +6 -0
- package/dist/app-frame-view-overlays.d.ts.map +1 -0
- package/dist/app-frame-view-overlays.js +64 -0
- package/dist/app-frame-view-overlays.js.map +1 -0
- package/dist/app-frame-workspace-layout.d.ts +33 -0
- package/dist/app-frame-workspace-layout.d.ts.map +1 -0
- package/dist/app-frame-workspace-layout.js +58 -0
- package/dist/app-frame-workspace-layout.js.map +1 -0
- package/dist/app-frame-workspace-tree.d.ts +11 -0
- package/dist/app-frame-workspace-tree.d.ts.map +1 -0
- package/dist/app-frame-workspace-tree.js +29 -0
- package/dist/app-frame-workspace-tree.js.map +1 -0
- package/dist/app-frame.d.ts +3 -375
- package/dist/app-frame.d.ts.map +1 -1
- package/dist/app-frame.js +2 -1806
- package/dist/app-frame.js.map +1 -1
- package/dist/browsable-list.d.ts +4 -158
- package/dist/browsable-list.d.ts.map +1 -1
- package/dist/browsable-list.js +3 -214
- package/dist/browsable-list.js.map +1 -1
- package/dist/browsable-list.part01.d.ts +86 -0
- package/dist/browsable-list.part01.d.ts.map +1 -0
- package/dist/browsable-list.part01.js +45 -0
- package/dist/browsable-list.part01.js.map +1 -0
- package/dist/browsable-list.part02.d.ts +49 -0
- package/dist/browsable-list.part02.d.ts.map +1 -0
- package/dist/browsable-list.part02.js +100 -0
- package/dist/browsable-list.part02.js.map +1 -0
- package/dist/browsable-list.part03.d.ts +43 -0
- package/dist/browsable-list.part03.d.ts.map +1 -0
- package/dist/browsable-list.part03.js +77 -0
- package/dist/browsable-list.part03.js.map +1 -0
- package/dist/canvas.d.ts +2 -29
- package/dist/canvas.d.ts.map +1 -1
- package/dist/canvas.js +1 -276
- package/dist/canvas.js.map +1 -1
- package/dist/canvas.part01.d.ts +45 -0
- package/dist/canvas.part01.d.ts.map +1 -0
- package/dist/canvas.part01.js +80 -0
- package/dist/canvas.part01.js.map +1 -0
- package/dist/canvas.part02.d.ts +7 -0
- package/dist/canvas.part02.d.ts.map +1 -0
- package/dist/canvas.part02.js +86 -0
- package/dist/canvas.part02.js.map +1 -0
- package/dist/canvas.part03.d.ts +8 -0
- package/dist/canvas.part03.d.ts.map +1 -0
- package/dist/canvas.part03.js +121 -0
- package/dist/canvas.part03.js.map +1 -0
- package/dist/command-palette.d.ts +5 -160
- package/dist/command-palette.d.ts.map +1 -1
- package/dist/command-palette.js +4 -301
- package/dist/command-palette.js.map +1 -1
- package/dist/command-palette.part01.d.ts +59 -0
- package/dist/command-palette.part01.d.ts.map +1 -0
- package/dist/command-palette.part01.js +65 -0
- package/dist/command-palette.part01.js.map +1 -0
- package/dist/command-palette.part02.d.ts +45 -0
- package/dist/command-palette.part02.d.ts.map +1 -0
- package/dist/command-palette.part02.js +111 -0
- package/dist/command-palette.part02.js.map +1 -0
- package/dist/command-palette.part03.d.ts +31 -0
- package/dist/command-palette.part03.d.ts.map +1 -0
- package/dist/command-palette.part03.js +88 -0
- package/dist/command-palette.part03.js.map +1 -0
- package/dist/command-palette.part04.d.ts +34 -0
- package/dist/command-palette.part04.d.ts.map +1 -0
- package/dist/command-palette.part04.js +43 -0
- package/dist/command-palette.part04.js.map +1 -0
- package/dist/css/text-style-token.d.ts +20 -0
- package/dist/css/text-style-token.d.ts.map +1 -0
- package/dist/css/text-style-token.js +83 -0
- package/dist/css/text-style-token.js.map +1 -0
- package/dist/css/text-style.d.ts +4 -19
- package/dist/css/text-style.d.ts.map +1 -1
- package/dist/css/text-style.js +6 -74
- package/dist/css/text-style.js.map +1 -1
- package/dist/driver-contract.d.ts +38 -0
- package/dist/driver-contract.d.ts.map +1 -0
- package/dist/driver-contract.js +2 -0
- package/dist/driver-contract.js.map +1 -0
- package/dist/driver-harness-api.d.ts +4 -0
- package/dist/driver-harness-api.d.ts.map +1 -0
- package/dist/driver-harness-api.js +34 -0
- package/dist/driver-harness-api.js.map +1 -0
- package/dist/driver-harness-command.d.ts +5 -0
- package/dist/driver-harness-command.d.ts.map +1 -0
- package/dist/driver-harness-command.js +60 -0
- package/dist/driver-harness-command.js.map +1 -0
- package/dist/driver-harness-contract.d.ts +87 -0
- package/dist/driver-harness-contract.d.ts.map +1 -0
- package/dist/driver-harness-contract.js +2 -0
- package/dist/driver-harness-contract.js.map +1 -0
- package/dist/driver-harness-state.d.ts +8 -0
- package/dist/driver-harness-state.d.ts.map +1 -0
- package/dist/driver-harness-state.js +42 -0
- package/dist/driver-harness-state.js.map +1 -0
- package/dist/driver-harness.d.ts +11 -0
- package/dist/driver-harness.d.ts.map +1 -0
- package/dist/driver-harness.js +91 -0
- package/dist/driver-harness.js.map +1 -0
- package/dist/driver-mouse.d.ts +13 -0
- package/dist/driver-mouse.d.ts.map +1 -0
- package/dist/driver-mouse.js +42 -0
- package/dist/driver-mouse.js.map +1 -0
- package/dist/driver-runtime.d.ts +16 -0
- package/dist/driver-runtime.d.ts.map +1 -0
- package/dist/driver-runtime.js +53 -0
- package/dist/driver-runtime.js.map +1 -0
- package/dist/driver-script-contract.d.ts +73 -0
- package/dist/driver-script-contract.d.ts.map +1 -0
- package/dist/driver-script-contract.js +2 -0
- package/dist/driver-script-contract.js.map +1 -0
- package/dist/driver-script.d.ts +12 -0
- package/dist/driver-script.d.ts.map +1 -0
- package/dist/driver-script.js +71 -0
- package/dist/driver-script.js.map +1 -0
- package/dist/driver.d.ts +5 -209
- package/dist/driver.d.ts.map +1 -1
- package/dist/driver.js +4 -418
- package/dist/driver.js.map +1 -1
- package/dist/eventbus-command.d.ts +6 -0
- package/dist/eventbus-command.d.ts.map +1 -0
- package/dist/eventbus-command.js +94 -0
- package/dist/eventbus-command.js.map +1 -0
- package/dist/eventbus-contract.d.ts +41 -0
- package/dist/eventbus-contract.d.ts.map +1 -0
- package/dist/eventbus-contract.js +2 -0
- package/dist/eventbus-contract.js.map +1 -0
- package/dist/eventbus-create.d.ts +5 -0
- package/dist/eventbus-create.d.ts.map +1 -0
- package/dist/eventbus-create.js +75 -0
- package/dist/eventbus-create.js.map +1 -0
- package/dist/eventbus-io.d.ts +5 -0
- package/dist/eventbus-io.d.ts.map +1 -0
- package/dist/eventbus-io.js +31 -0
- package/dist/eventbus-io.js.map +1 -0
- package/dist/eventbus-options.d.ts +20 -0
- package/dist/eventbus-options.d.ts.map +1 -0
- package/dist/eventbus-options.js +2 -0
- package/dist/eventbus-options.js.map +1 -0
- package/dist/eventbus-pulse.d.ts +6 -0
- package/dist/eventbus-pulse.d.ts.map +1 -0
- package/dist/eventbus-pulse.js +34 -0
- package/dist/eventbus-pulse.js.map +1 -0
- package/dist/eventbus-report.d.ts +4 -0
- package/dist/eventbus-report.d.ts.map +1 -0
- package/dist/eventbus-report.js +19 -0
- package/dist/eventbus-report.js.map +1 -0
- package/dist/eventbus-state.d.ts +26 -0
- package/dist/eventbus-state.d.ts.map +1 -0
- package/dist/eventbus-state.js +97 -0
- package/dist/eventbus-state.js.map +1 -0
- package/dist/eventbus.d.ts +7 -174
- package/dist/eventbus.d.ts.map +1 -1
- package/dist/eventbus.js +5 -343
- package/dist/eventbus.js.map +1 -1
- package/dist/flex.d.ts +2 -53
- package/dist/flex.d.ts.map +1 -1
- package/dist/flex.js +1 -328
- package/dist/flex.js.map +1 -1
- package/dist/flex.part01.d.ts +79 -0
- package/dist/flex.part01.d.ts.map +1 -0
- package/dist/flex.part01.js +30 -0
- package/dist/flex.part01.js.map +1 -0
- package/dist/flex.part02.d.ts +8 -0
- package/dist/flex.part02.d.ts.map +1 -0
- package/dist/flex.part02.js +80 -0
- package/dist/flex.part02.js.map +1 -0
- package/dist/flex.part03.d.ts +9 -0
- package/dist/flex.part03.d.ts.map +1 -0
- package/dist/flex.part03.js +105 -0
- package/dist/flex.part03.js.map +1 -0
- package/dist/flex.part04.d.ts +7 -0
- package/dist/flex.part04.d.ts.map +1 -0
- package/dist/flex.part04.js +81 -0
- package/dist/flex.part04.js.map +1 -0
- package/dist/flex.part05.d.ts +5 -0
- package/dist/flex.part05.d.ts.map +1 -0
- package/dist/flex.part05.js +52 -0
- package/dist/flex.part05.js.map +1 -0
- package/dist/focus-map-inspection.d.ts +30 -0
- package/dist/focus-map-inspection.d.ts.map +1 -0
- package/dist/focus-map-inspection.js +64 -0
- package/dist/focus-map-inspection.js.map +1 -0
- package/dist/focus-map.d.ts +3 -29
- package/dist/focus-map.d.ts.map +1 -1
- package/dist/focus-map.js +5 -73
- package/dist/focus-map.js.map +1 -1
- package/dist/help-surface.d.ts +15 -0
- package/dist/help-surface.d.ts.map +1 -0
- package/dist/help-surface.js +31 -0
- package/dist/help-surface.js.map +1 -0
- package/dist/help-text.d.ts +27 -0
- package/dist/help-text.d.ts.map +1 -0
- package/dist/help-text.js +78 -0
- package/dist/help-text.js.map +1 -0
- package/dist/help-types.d.ts +27 -0
- package/dist/help-types.d.ts.map +1 -0
- package/dist/help-types.js +2 -0
- package/dist/help-types.js.map +1 -0
- package/dist/help.d.ts +6 -112
- package/dist/help.d.ts.map +1 -1
- package/dist/help.js +5 -165
- package/dist/help.js.map +1 -1
- package/dist/input-map.d.ts +4 -67
- package/dist/input-map.d.ts.map +1 -1
- package/dist/input-map.js +3 -160
- package/dist/input-map.js.map +1 -1
- package/dist/input-map.part01.d.ts +68 -0
- package/dist/input-map.part01.d.ts.map +1 -0
- package/dist/input-map.part01.js +36 -0
- package/dist/input-map.part01.js.map +1 -0
- package/dist/input-map.part02.d.ts +5 -0
- package/dist/input-map.part02.d.ts.map +1 -0
- package/dist/input-map.part02.js +85 -0
- package/dist/input-map.part02.js.map +1 -0
- package/dist/input-map.part03.d.ts +15 -0
- package/dist/input-map.part03.d.ts.map +1 -0
- package/dist/input-map.part03.js +33 -0
- package/dist/input-map.part03.js.map +1 -0
- package/dist/input-map.part04.d.ts +3 -0
- package/dist/input-map.part04.d.ts.map +1 -0
- package/dist/input-map.part04.js +7 -0
- package/dist/input-map.part04.js.map +1 -0
- package/dist/inputstack-types.d.ts +86 -0
- package/dist/inputstack-types.d.ts.map +1 -0
- package/dist/inputstack-types.js +3 -0
- package/dist/inputstack-types.js.map +1 -0
- package/dist/inputstack.d.ts +2 -59
- package/dist/inputstack.d.ts.map +1 -1
- package/dist/inputstack.js.map +1 -1
- package/dist/keybindings.d.ts +4 -152
- package/dist/keybindings.d.ts.map +1 -1
- package/dist/keybindings.js +2 -199
- package/dist/keybindings.js.map +1 -1
- package/dist/keybindings.part01.d.ts +56 -0
- package/dist/keybindings.part01.d.ts.map +1 -0
- package/dist/keybindings.part01.js +5 -0
- package/dist/keybindings.part01.js.map +1 -0
- package/dist/keybindings.part02.d.ts +68 -0
- package/dist/keybindings.part02.d.ts.map +1 -0
- package/dist/keybindings.part02.js +2 -0
- package/dist/keybindings.part02.js.map +1 -0
- package/dist/keybindings.part03.d.ts +34 -0
- package/dist/keybindings.part03.d.ts.map +1 -0
- package/dist/keybindings.part03.js +101 -0
- package/dist/keybindings.part03.js.map +1 -0
- package/dist/keybindings.part04.d.ts +13 -0
- package/dist/keybindings.part04.d.ts.map +1 -0
- package/dist/keybindings.part04.js +102 -0
- package/dist/keybindings.part04.js.map +1 -0
- package/dist/layout-preset-factories.d.ts +8 -0
- package/dist/layout-preset-factories.d.ts.map +1 -0
- package/dist/layout-preset-factories.js +28 -0
- package/dist/layout-preset-factories.js.map +1 -0
- package/dist/layout-preset.d.ts +1 -6
- package/dist/layout-preset.d.ts.map +1 -1
- package/dist/layout-preset.js +1 -30
- package/dist/layout-preset.js.map +1 -1
- package/dist/layout-stack.d.ts +5 -0
- package/dist/layout-stack.d.ts.map +1 -0
- package/dist/layout-stack.js +37 -0
- package/dist/layout-stack.js.map +1 -0
- package/dist/layout.d.ts +1 -16
- package/dist/layout.d.ts.map +1 -1
- package/dist/layout.js +1 -59
- package/dist/layout.js.map +1 -1
- package/dist/motion/reconciler-geometry.d.ts +12 -0
- package/dist/motion/reconciler-geometry.d.ts.map +1 -0
- package/dist/motion/reconciler-geometry.js +39 -0
- package/dist/motion/reconciler-geometry.js.map +1 -0
- package/dist/motion/reconciler.d.ts.map +1 -1
- package/dist/motion/reconciler.js +1 -35
- package/dist/motion/reconciler.js.map +1 -1
- package/dist/notification-card-content.d.ts +12 -0
- package/dist/notification-card-content.d.ts.map +1 -0
- package/dist/notification-card-content.js +76 -0
- package/dist/notification-card-content.js.map +1 -0
- package/dist/notification-card-metrics.d.ts +5 -0
- package/dist/notification-card-metrics.d.ts.map +1 -0
- package/dist/notification-card-metrics.js +33 -0
- package/dist/notification-card-metrics.js.map +1 -0
- package/dist/notification-card.d.ts.map +1 -1
- package/dist/notification-card.js +16 -96
- package/dist/notification-card.js.map +1 -1
- package/dist/pager.d.ts +4 -164
- package/dist/pager.d.ts.map +1 -1
- package/dist/pager.js +3 -253
- package/dist/pager.js.map +1 -1
- package/dist/pager.part01.d.ts +75 -0
- package/dist/pager.part01.d.ts.map +1 -0
- package/dist/pager.part01.js +60 -0
- package/dist/pager.part01.js.map +1 -0
- package/dist/pager.part02.d.ts +54 -0
- package/dist/pager.part02.d.ts.map +1 -0
- package/dist/pager.part02.js +101 -0
- package/dist/pager.part02.js.map +1 -0
- package/dist/pager.part03.d.ts +59 -0
- package/dist/pager.part03.d.ts.map +1 -0
- package/dist/pager.part03.js +98 -0
- package/dist/pager.part03.js.map +1 -0
- package/dist/panel-label.d.ts +4 -0
- package/dist/panel-label.d.ts.map +1 -0
- package/dist/panel-label.js +11 -0
- package/dist/panel-label.js.map +1 -0
- package/dist/panel-types.d.ts +23 -0
- package/dist/panel-types.d.ts.map +1 -0
- package/dist/panel-types.js +2 -0
- package/dist/panel-types.js.map +1 -0
- package/dist/panels.d.ts +2 -66
- package/dist/panels.d.ts.map +1 -1
- package/dist/panels.js +3 -12
- package/dist/panels.js.map +1 -1
- package/dist/pipeline/middleware/surface-shaders.d.ts +3 -36
- package/dist/pipeline/middleware/surface-shaders.d.ts.map +1 -1
- package/dist/pipeline/middleware/surface-shaders.js +2 -165
- package/dist/pipeline/middleware/surface-shaders.js.map +1 -1
- package/dist/pipeline/middleware/surface-shaders.part01.d.ts +36 -0
- package/dist/pipeline/middleware/surface-shaders.part01.d.ts.map +1 -0
- package/dist/pipeline/middleware/surface-shaders.part01.js +51 -0
- package/dist/pipeline/middleware/surface-shaders.part01.js.map +1 -0
- package/dist/pipeline/middleware/surface-shaders.part02.d.ts +8 -0
- package/dist/pipeline/middleware/surface-shaders.part02.d.ts.map +1 -0
- package/dist/pipeline/middleware/surface-shaders.part02.js +63 -0
- package/dist/pipeline/middleware/surface-shaders.part02.js.map +1 -0
- package/dist/pipeline/middleware/surface-shaders.part03.d.ts +12 -0
- package/dist/pipeline/middleware/surface-shaders.part03.d.ts.map +1 -0
- package/dist/pipeline/middleware/surface-shaders.part03.js +57 -0
- package/dist/pipeline/middleware/surface-shaders.part03.js.map +1 -0
- package/dist/runtime-binding.d.ts +4 -57
- package/dist/runtime-binding.d.ts.map +1 -1
- package/dist/runtime-binding.js +3 -281
- package/dist/runtime-binding.js.map +1 -1
- package/dist/runtime-binding.part01.d.ts +51 -0
- package/dist/runtime-binding.part01.d.ts.map +1 -0
- package/dist/runtime-binding.part01.js +52 -0
- package/dist/runtime-binding.part01.js.map +1 -0
- package/dist/runtime-binding.part02.d.ts +9 -0
- package/dist/runtime-binding.part02.d.ts.map +1 -0
- package/dist/runtime-binding.part02.js +47 -0
- package/dist/runtime-binding.part02.js.map +1 -0
- package/dist/runtime-binding.part03.d.ts +4 -0
- package/dist/runtime-binding.part03.d.ts.map +1 -0
- package/dist/runtime-binding.part03.js +65 -0
- package/dist/runtime-binding.part03.js.map +1 -0
- package/dist/runtime-binding.part04.d.ts +13 -0
- package/dist/runtime-binding.part04.d.ts.map +1 -0
- package/dist/runtime-binding.part04.js +55 -0
- package/dist/runtime-binding.part04.js.map +1 -0
- package/dist/runtime-binding.part05.d.ts +8 -0
- package/dist/runtime-binding.part05.d.ts.map +1 -0
- package/dist/runtime-binding.part05.js +79 -0
- package/dist/runtime-binding.part05.js.map +1 -0
- package/dist/runtime-buffers.d.ts +13 -0
- package/dist/runtime-buffers.d.ts.map +1 -0
- package/dist/runtime-buffers.js +55 -0
- package/dist/runtime-buffers.js.map +1 -0
- package/dist/runtime-bus.d.ts +6 -0
- package/dist/runtime-bus.d.ts.map +1 -0
- package/dist/runtime-bus.js +47 -0
- package/dist/runtime-bus.js.map +1 -0
- package/dist/runtime-commands.d.ts +31 -0
- package/dist/runtime-commands.d.ts.map +1 -0
- package/dist/runtime-commands.js +12 -0
- package/dist/runtime-commands.js.map +1 -0
- package/dist/runtime-contract.d.ts +54 -0
- package/dist/runtime-contract.d.ts.map +1 -0
- package/dist/runtime-contract.js +2 -0
- package/dist/runtime-contract.js.map +1 -0
- package/dist/runtime-crash.d.ts +10 -0
- package/dist/runtime-crash.d.ts.map +1 -0
- package/dist/runtime-crash.js +46 -0
- package/dist/runtime-crash.js.map +1 -0
- package/dist/runtime-engine-buffers.d.ts +32 -0
- package/dist/runtime-engine-buffers.d.ts.map +1 -0
- package/dist/runtime-engine-buffers.js +48 -0
- package/dist/runtime-engine-buffers.js.map +1 -0
- package/dist/runtime-engine-component-contract.d.ts +45 -0
- package/dist/runtime-engine-component-contract.d.ts.map +1 -0
- package/dist/runtime-engine-component-contract.js +2 -0
- package/dist/runtime-engine-component-contract.js.map +1 -0
- package/dist/runtime-engine-component-create.d.ts +4 -0
- package/dist/runtime-engine-component-create.d.ts.map +1 -0
- package/dist/runtime-engine-component-create.js +39 -0
- package/dist/runtime-engine-component-create.js.map +1 -0
- package/dist/runtime-engine-component-input.d.ts +7 -0
- package/dist/runtime-engine-component-input.d.ts.map +1 -0
- package/dist/runtime-engine-component-input.js +39 -0
- package/dist/runtime-engine-component-input.js.map +1 -0
- package/dist/runtime-engine-component-layout.d.ts +25 -0
- package/dist/runtime-engine-component-layout.d.ts.map +1 -0
- package/dist/runtime-engine-component-layout.js +23 -0
- package/dist/runtime-engine-component-layout.js.map +1 -0
- package/dist/runtime-engine-hit-test.d.ts +4 -0
- package/dist/runtime-engine-hit-test.d.ts.map +1 -0
- package/dist/runtime-engine-hit-test.js +40 -0
- package/dist/runtime-engine-hit-test.js.map +1 -0
- package/dist/runtime-engine-input.d.ts +53 -0
- package/dist/runtime-engine-input.d.ts.map +1 -0
- package/dist/runtime-engine-input.js +9 -0
- package/dist/runtime-engine-input.js.map +1 -0
- package/dist/runtime-engine-layouts.d.ts +25 -0
- package/dist/runtime-engine-layouts.d.ts.map +1 -0
- package/dist/runtime-engine-layouts.js +72 -0
- package/dist/runtime-engine-layouts.js.map +1 -0
- package/dist/runtime-engine-route.d.ts +6 -0
- package/dist/runtime-engine-route.d.ts.map +1 -0
- package/dist/runtime-engine-route.js +54 -0
- package/dist/runtime-engine-route.js.map +1 -0
- package/dist/runtime-engine-state.d.ts +11 -0
- package/dist/runtime-engine-state.d.ts.map +1 -0
- package/dist/runtime-engine-state.js +15 -0
- package/dist/runtime-engine-state.js.map +1 -0
- package/dist/runtime-engine-view-stack.d.ts +25 -0
- package/dist/runtime-engine-view-stack.d.ts.map +1 -0
- package/dist/runtime-engine-view-stack.js +70 -0
- package/dist/runtime-engine-view-stack.js.map +1 -0
- package/dist/runtime-engine.d.ts +11 -222
- package/dist/runtime-engine.d.ts.map +1 -1
- package/dist/runtime-engine.js +10 -467
- package/dist/runtime-engine.js.map +1 -1
- package/dist/runtime-format.d.ts +7 -0
- package/dist/runtime-format.d.ts.map +1 -0
- package/dist/runtime-format.js +35 -0
- package/dist/runtime-format.js.map +1 -0
- package/dist/runtime-input.d.ts +8 -0
- package/dist/runtime-input.d.ts.map +1 -0
- package/dist/runtime-input.js +52 -0
- package/dist/runtime-input.js.map +1 -0
- package/dist/runtime-loop.d.ts +5 -0
- package/dist/runtime-loop.d.ts.map +1 -0
- package/dist/runtime-loop.js +90 -0
- package/dist/runtime-loop.js.map +1 -0
- package/dist/runtime-messages.d.ts +38 -0
- package/dist/runtime-messages.d.ts.map +1 -0
- package/dist/runtime-messages.js +19 -0
- package/dist/runtime-messages.js.map +1 -0
- package/dist/runtime-pipeline.d.ts +11 -0
- package/dist/runtime-pipeline.d.ts.map +1 -0
- package/dist/runtime-pipeline.js +37 -0
- package/dist/runtime-pipeline.js.map +1 -0
- package/dist/runtime-render.d.ts +5 -0
- package/dist/runtime-render.d.ts.map +1 -0
- package/dist/runtime-render.js +115 -0
- package/dist/runtime-render.js.map +1 -0
- package/dist/runtime-shutdown.d.ts +9 -0
- package/dist/runtime-shutdown.d.ts.map +1 -0
- package/dist/runtime-shutdown.js +65 -0
- package/dist/runtime-shutdown.js.map +1 -0
- package/dist/runtime-startup.d.ts +10 -0
- package/dist/runtime-startup.d.ts.map +1 -0
- package/dist/runtime-startup.js +35 -0
- package/dist/runtime-startup.js.map +1 -0
- package/dist/runtime.d.ts +3 -21
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +2 -531
- package/dist/runtime.js.map +1 -1
- package/dist/status-bar-layout.d.ts +19 -0
- package/dist/status-bar-layout.d.ts.map +1 -0
- package/dist/status-bar-layout.js +71 -0
- package/dist/status-bar-layout.js.map +1 -0
- package/dist/status-bar.d.ts +2 -13
- package/dist/status-bar.d.ts.map +1 -1
- package/dist/status-bar.js +2 -83
- package/dist/status-bar.js.map +1 -1
- package/dist/subapp/adapter.d.ts +12 -0
- package/dist/subapp/adapter.d.ts.map +1 -0
- package/dist/subapp/adapter.js +17 -0
- package/dist/subapp/adapter.js.map +1 -0
- package/dist/subapp/mount.d.ts +1 -17
- package/dist/subapp/mount.d.ts.map +1 -1
- package/dist/subapp/mount.js +1 -22
- package/dist/subapp/mount.js.map +1 -1
- package/dist/surface-diff-engine.d.ts +5 -0
- package/dist/surface-diff-engine.d.ts.map +1 -0
- package/dist/surface-diff-engine.js +72 -0
- package/dist/surface-diff-engine.js.map +1 -0
- package/dist/surface-diff.d.ts +4 -35
- package/dist/surface-diff.d.ts.map +1 -1
- package/dist/surface-diff.js +3 -199
- package/dist/surface-diff.js.map +1 -1
- package/dist/surface-diff.part01.d.ts +34 -0
- package/dist/surface-diff.part01.d.ts.map +1 -0
- package/dist/surface-diff.part01.js +11 -0
- package/dist/surface-diff.part01.js.map +1 -0
- package/dist/surface-diff.part02.d.ts +8 -0
- package/dist/surface-diff.part02.d.ts.map +1 -0
- package/dist/surface-diff.part02.js +73 -0
- package/dist/surface-diff.part02.js.map +1 -0
- package/dist/surface-diff.part03.d.ts +12 -0
- package/dist/surface-diff.part03.d.ts.map +1 -0
- package/dist/surface-diff.part03.js +63 -0
- package/dist/surface-diff.part03.js.map +1 -0
- package/dist/timeline-builder.d.ts +3 -0
- package/dist/timeline-builder.d.ts.map +1 -0
- package/dist/timeline-builder.js +23 -0
- package/dist/timeline-builder.js.map +1 -0
- package/dist/timeline-compile.d.ts +3 -0
- package/dist/timeline-compile.d.ts.map +1 -0
- package/dist/timeline-compile.js +60 -0
- package/dist/timeline-compile.js.map +1 -0
- package/dist/timeline-contract.d.ts +102 -0
- package/dist/timeline-contract.d.ts.map +1 -0
- package/dist/timeline-contract.js +2 -0
- package/dist/timeline-contract.js.map +1 -0
- package/dist/timeline-position.d.ts +10 -0
- package/dist/timeline-position.d.ts.map +1 -0
- package/dist/timeline-position.js +55 -0
- package/dist/timeline-position.js.map +1 -0
- package/dist/timeline-runtime.d.ts +3 -0
- package/dist/timeline-runtime.d.ts.map +1 -0
- package/dist/timeline-runtime.js +63 -0
- package/dist/timeline-runtime.js.map +1 -0
- package/dist/timeline-track-step.d.ts +3 -0
- package/dist/timeline-track-step.d.ts.map +1 -0
- package/dist/timeline-track-step.js +58 -0
- package/dist/timeline-track-step.js.map +1 -0
- package/dist/timeline-utils.d.ts +2 -0
- package/dist/timeline-utils.d.ts.map +1 -0
- package/dist/timeline-utils.js +6 -0
- package/dist/timeline-utils.js.map +1 -0
- package/dist/timeline.d.ts +5 -186
- package/dist/timeline.d.ts.map +1 -1
- package/dist/timeline.js +4 -329
- package/dist/timeline.js.map +1 -1
- package/dist/types.d.ts +4 -118
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +2 -32
- package/dist/types.js.map +1 -1
- package/package.json +3 -3
package/dist/input-map.js
CHANGED
|
@@ -1,161 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* This module sits above raw terminal input parsing and below app/frame
|
|
5
|
-
* reducers. It lets shells bind actions to semantic input feature events such
|
|
6
|
-
* as "keyboard.tab double-tap" without hard-coding gesture state into a single
|
|
7
|
-
* component.
|
|
8
|
-
*/
|
|
9
|
-
export const DEFAULT_DOUBLE_TAP_MS = 300;
|
|
10
|
-
export const KEYBOARD_INPUT_DEVICE_ID = 'keyboard';
|
|
11
|
-
export function defineInputDevice(device) {
|
|
12
|
-
return freezePlain({
|
|
13
|
-
...device,
|
|
14
|
-
id: normalizeId(device.id, 'input device id'),
|
|
15
|
-
kind: normalizeId(device.kind, 'input device kind'),
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export function defineInputFeature(feature) {
|
|
19
|
-
return freezePlain({
|
|
20
|
-
...feature,
|
|
21
|
-
deviceId: normalizeId(feature.deviceId, 'input feature device id'),
|
|
22
|
-
id: normalizeId(feature.id, 'input feature id'),
|
|
23
|
-
kind: normalizeId(feature.kind, 'input feature kind'),
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
export function keyboardFeature(key) {
|
|
27
|
-
const normalizedKey = normalizeId(key, 'keyboard feature key');
|
|
28
|
-
return defineInputFeature({
|
|
29
|
-
deviceId: KEYBOARD_INPUT_DEVICE_ID,
|
|
30
|
-
id: `key.${normalizedKey}`,
|
|
31
|
-
kind: 'key',
|
|
32
|
-
label: normalizedKey,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
export function keyboardModifierFeature(modifier) {
|
|
36
|
-
return defineInputFeature({
|
|
37
|
-
deviceId: KEYBOARD_INPUT_DEVICE_ID,
|
|
38
|
-
id: `modifier.${modifier}`,
|
|
39
|
-
kind: 'modifier',
|
|
40
|
-
label: modifier,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
export function inputFeatureEvent(feature, type, atMs) {
|
|
44
|
-
return freezePlain({
|
|
45
|
-
feature,
|
|
46
|
-
type: normalizeId(type, 'input feature event type'),
|
|
47
|
-
atMs: normalizeTimestamp(atMs),
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
export function createInputGestureRecognizer(options = {}) {
|
|
51
|
-
const device = defineInputDevice(options.device ?? {
|
|
52
|
-
id: KEYBOARD_INPUT_DEVICE_ID,
|
|
53
|
-
kind: 'keyboard',
|
|
54
|
-
label: 'Keyboard',
|
|
55
|
-
});
|
|
56
|
-
const doubleTapMs = normalizePositiveDuration(options.doubleTapMs, DEFAULT_DOUBLE_TAP_MS);
|
|
57
|
-
let lastTap;
|
|
58
|
-
return {
|
|
59
|
-
observeKey(msg, atMs) {
|
|
60
|
-
const timestamp = normalizeTimestamp(atMs);
|
|
61
|
-
const featureEvents = [];
|
|
62
|
-
if (msg.ctrl) {
|
|
63
|
-
featureEvents.push(inputFeatureEvent(keyboardModifierFeature('ctrl'), 'held', timestamp));
|
|
64
|
-
}
|
|
65
|
-
if (msg.alt) {
|
|
66
|
-
featureEvents.push(inputFeatureEvent(keyboardModifierFeature('alt'), 'held', timestamp));
|
|
67
|
-
}
|
|
68
|
-
if (msg.shift) {
|
|
69
|
-
featureEvents.push(inputFeatureEvent(keyboardModifierFeature('shift'), 'held', timestamp));
|
|
70
|
-
}
|
|
71
|
-
const keyFeature = keyboardFeature(msg.key);
|
|
72
|
-
featureEvents.push(inputFeatureEvent(keyFeature, 'press', timestamp));
|
|
73
|
-
featureEvents.push(inputFeatureEvent(keyFeature, 'tap', timestamp));
|
|
74
|
-
const signature = keySignature(msg);
|
|
75
|
-
const isDoubleTap = lastTap?.signature === signature
|
|
76
|
-
&& timestamp - lastTap.atMs <= doubleTapMs;
|
|
77
|
-
if (isDoubleTap) {
|
|
78
|
-
featureEvents.push(inputFeatureEvent(keyFeature, 'double-tap', timestamp));
|
|
79
|
-
lastTap = undefined;
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
lastTap = { signature, atMs: timestamp };
|
|
83
|
-
}
|
|
84
|
-
return freezePlain({
|
|
85
|
-
device,
|
|
86
|
-
featureEvents: Object.freeze(featureEvents),
|
|
87
|
-
atMs: timestamp,
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
reset() {
|
|
91
|
-
lastTap = undefined;
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
export function createInputActionMap() {
|
|
96
|
-
const bindings = [];
|
|
97
|
-
return {
|
|
98
|
-
bind(id, description, featureEvents, action) {
|
|
99
|
-
const normalizedFeatureEvents = featureEvents.map((featureEvent) => freezePlain({
|
|
100
|
-
...featureEvent,
|
|
101
|
-
featureId: normalizeId(featureEvent.featureId, 'input action feature id'),
|
|
102
|
-
type: normalizeId(featureEvent.type, 'input action event type'),
|
|
103
|
-
deviceId: featureEvent.deviceId != null
|
|
104
|
-
? normalizeId(featureEvent.deviceId, 'input action device id')
|
|
105
|
-
: undefined,
|
|
106
|
-
}));
|
|
107
|
-
bindings.push(freezePlain({
|
|
108
|
-
id: normalizeId(id, 'input action id'),
|
|
109
|
-
description,
|
|
110
|
-
featureEvents: Object.freeze(normalizedFeatureEvents),
|
|
111
|
-
action,
|
|
112
|
-
enabled: true,
|
|
113
|
-
}));
|
|
114
|
-
return this;
|
|
115
|
-
},
|
|
116
|
-
handle(event) {
|
|
117
|
-
return bindings.find((binding) => binding.enabled && inputEventMatches(event, binding.featureEvents))?.action;
|
|
118
|
-
},
|
|
119
|
-
bindings() {
|
|
120
|
-
return Object.freeze([...bindings]);
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
export function inputEventMatches(event, patterns) {
|
|
125
|
-
return patterns.every((pattern) => event.featureEvents.some((featureEvent) => featureEvent.type === pattern.type
|
|
126
|
-
&& featureEvent.feature.id === pattern.featureId
|
|
127
|
-
&& (pattern.deviceId == null || featureEvent.feature.deviceId === pattern.deviceId)));
|
|
128
|
-
}
|
|
129
|
-
function keySignature(msg) {
|
|
130
|
-
return [
|
|
131
|
-
msg.ctrl ? 'ctrl' : '',
|
|
132
|
-
msg.alt ? 'alt' : '',
|
|
133
|
-
msg.shift ? 'shift' : '',
|
|
134
|
-
msg.key,
|
|
135
|
-
].join('|');
|
|
136
|
-
}
|
|
137
|
-
function normalizeId(value, label) {
|
|
138
|
-
const normalized = value.trim();
|
|
139
|
-
if (normalized === '') {
|
|
140
|
-
throw new Error(`${label} is required`);
|
|
141
|
-
}
|
|
142
|
-
return normalized;
|
|
143
|
-
}
|
|
144
|
-
function normalizeTimestamp(value) {
|
|
145
|
-
if (!Number.isFinite(value)) {
|
|
146
|
-
throw new Error('input event timestamp must be finite');
|
|
147
|
-
}
|
|
148
|
-
return value;
|
|
149
|
-
}
|
|
150
|
-
function normalizePositiveDuration(value, fallback) {
|
|
151
|
-
if (value == null)
|
|
152
|
-
return fallback;
|
|
153
|
-
if (!Number.isFinite(value) || value <= 0) {
|
|
154
|
-
throw new Error('input gesture doubleTapMs must be a positive finite number');
|
|
155
|
-
}
|
|
156
|
-
return value;
|
|
157
|
-
}
|
|
158
|
-
function freezePlain(value) {
|
|
159
|
-
return Object.freeze(value);
|
|
160
|
-
}
|
|
1
|
+
export { DEFAULT_DOUBLE_TAP_MS, KEYBOARD_INPUT_DEVICE_ID, defineInputDevice, defineInputFeature, keyboardFeature, keyboardModifierFeature, } from './input-map.part01.js';
|
|
2
|
+
export { inputFeatureEvent, createInputGestureRecognizer, createInputActionMap, } from './input-map.part02.js';
|
|
3
|
+
export { inputEventMatches } from './input-map.part04.js';
|
|
161
4
|
//# sourceMappingURL=input-map.js.map
|
package/dist/input-map.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-map.js","sourceRoot":"","sources":["../src/input-map.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-map.js","sourceRoot":"","sources":["../src/input-map.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input feature events and semantic action maps.
|
|
3
|
+
*
|
|
4
|
+
* This module sits above raw terminal input parsing and below app/frame
|
|
5
|
+
* reducers. It lets shells bind actions to semantic input feature events such
|
|
6
|
+
* as "keyboard.tab double-tap" without hard-coding gesture state into a single
|
|
7
|
+
* component.
|
|
8
|
+
*/
|
|
9
|
+
import type { KeyMsg } from './types.js';
|
|
10
|
+
export declare const DEFAULT_DOUBLE_TAP_MS = 300;
|
|
11
|
+
export declare const KEYBOARD_INPUT_DEVICE_ID = "keyboard";
|
|
12
|
+
export type StandardInputFeatureEventType = 'press' | 'held' | 'long-press' | 'release' | 'tap' | 'double-tap';
|
|
13
|
+
export type InputFeatureEventType = StandardInputFeatureEventType | (string & {});
|
|
14
|
+
export interface InputDevice {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly kind: string;
|
|
17
|
+
readonly label?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface InputFeature {
|
|
20
|
+
readonly deviceId: string;
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly kind: string;
|
|
23
|
+
readonly label?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface InputFeatureEvent {
|
|
26
|
+
readonly feature: InputFeature;
|
|
27
|
+
readonly type: InputFeatureEventType;
|
|
28
|
+
readonly atMs: number;
|
|
29
|
+
}
|
|
30
|
+
export interface InputEvent {
|
|
31
|
+
readonly device: InputDevice;
|
|
32
|
+
readonly featureEvents: readonly InputFeatureEvent[];
|
|
33
|
+
readonly atMs: number;
|
|
34
|
+
}
|
|
35
|
+
export interface InputFeatureEventPattern {
|
|
36
|
+
readonly featureId: string;
|
|
37
|
+
readonly type: InputFeatureEventType;
|
|
38
|
+
readonly deviceId?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface InputActionBinding<Action> {
|
|
41
|
+
readonly id: string;
|
|
42
|
+
readonly description: string;
|
|
43
|
+
readonly featureEvents: readonly InputFeatureEventPattern[];
|
|
44
|
+
readonly action: Action;
|
|
45
|
+
readonly enabled: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface InputActionMap<Action> {
|
|
48
|
+
bind(id: string, description: string, featureEvents: readonly InputFeatureEventPattern[], action: Action): InputActionMap<Action>;
|
|
49
|
+
handle(event: InputEvent): Action | undefined;
|
|
50
|
+
bindings(): readonly InputActionBinding<Action>[];
|
|
51
|
+
}
|
|
52
|
+
export interface InputGestureRecognizer {
|
|
53
|
+
observeKey(msg: KeyMsg, atMs: number): InputEvent;
|
|
54
|
+
reset(): void;
|
|
55
|
+
}
|
|
56
|
+
export interface InputGestureRecognizerOptions {
|
|
57
|
+
readonly doubleTapMs?: number;
|
|
58
|
+
readonly device?: InputDevice;
|
|
59
|
+
}
|
|
60
|
+
export interface LastTap {
|
|
61
|
+
readonly signature: string;
|
|
62
|
+
readonly atMs: number;
|
|
63
|
+
}
|
|
64
|
+
export declare function defineInputDevice(device: InputDevice): InputDevice;
|
|
65
|
+
export declare function defineInputFeature(feature: InputFeature): InputFeature;
|
|
66
|
+
export declare function keyboardFeature(key: string): InputFeature;
|
|
67
|
+
export declare function keyboardModifierFeature(modifier: 'ctrl' | 'alt' | 'shift'): InputFeature;
|
|
68
|
+
//# sourceMappingURL=input-map.part01.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-map.part01.d.ts","sourceRoot":"","sources":["../src/input-map.part01.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { freezePlain, normalizeId } from './input-map.part03.js';
|
|
2
|
+
export const DEFAULT_DOUBLE_TAP_MS = 300;
|
|
3
|
+
export const KEYBOARD_INPUT_DEVICE_ID = 'keyboard';
|
|
4
|
+
export function defineInputDevice(device) {
|
|
5
|
+
return freezePlain({
|
|
6
|
+
...device,
|
|
7
|
+
id: normalizeId(device.id, 'input device id'),
|
|
8
|
+
kind: normalizeId(device.kind, 'input device kind'),
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export function defineInputFeature(feature) {
|
|
12
|
+
return freezePlain({
|
|
13
|
+
...feature,
|
|
14
|
+
deviceId: normalizeId(feature.deviceId, 'input feature device id'),
|
|
15
|
+
id: normalizeId(feature.id, 'input feature id'),
|
|
16
|
+
kind: normalizeId(feature.kind, 'input feature kind'),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export function keyboardFeature(key) {
|
|
20
|
+
const normalizedKey = normalizeId(key, 'keyboard feature key');
|
|
21
|
+
return defineInputFeature({
|
|
22
|
+
deviceId: KEYBOARD_INPUT_DEVICE_ID,
|
|
23
|
+
id: `key.${normalizedKey}`,
|
|
24
|
+
kind: 'key',
|
|
25
|
+
label: normalizedKey,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export function keyboardModifierFeature(modifier) {
|
|
29
|
+
return defineInputFeature({
|
|
30
|
+
deviceId: KEYBOARD_INPUT_DEVICE_ID,
|
|
31
|
+
id: `modifier.${modifier}`,
|
|
32
|
+
kind: 'modifier',
|
|
33
|
+
label: modifier,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=input-map.part01.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-map.part01.js","sourceRoot":"","sources":["../src/input-map.part01.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AACzC,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAAC;AA4DnD,MAAM,UAAU,iBAAiB,CAAC,MAAmB;IACnD,OAAO,WAAW,CAAC;QACjB,GAAG,MAAM;QACT,EAAE,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,CAAC;QAC7C,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC;KACpD,CAAC,CAAC;AACL,CAAC;AACD,MAAM,UAAU,kBAAkB,CAAC,OAAqB;IACtD,OAAO,WAAW,CAAC;QACjB,GAAG,OAAO;QACV,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE,yBAAyB,CAAC;QAClE,EAAE,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,kBAAkB,CAAC;QAC/C,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,oBAAoB,CAAC;KACtD,CAAC,CAAC;AACL,CAAC;AACD,MAAM,UAAU,eAAe,CAAC,GAAW;IACzC,MAAM,aAAa,GAAG,WAAW,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC;IAC/D,OAAO,kBAAkB,CAAC;QACxB,QAAQ,EAAE,wBAAwB;QAClC,EAAE,EAAE,OAAO,aAAa,EAAE;QAC1B,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,aAAa;KACrB,CAAC,CAAC;AACL,CAAC;AACD,MAAM,UAAU,uBAAuB,CACrC,QAAkC;IAElC,OAAO,kBAAkB,CAAC;QACxB,QAAQ,EAAE,wBAAwB;QAClC,EAAE,EAAE,YAAY,QAAQ,EAAE;QAC1B,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type InputActionMap, type InputFeature, type InputFeatureEvent, type InputFeatureEventType, type InputGestureRecognizer, type InputGestureRecognizerOptions } from './input-map.part01.js';
|
|
2
|
+
export declare function inputFeatureEvent(feature: InputFeature, type: InputFeatureEventType, atMs: number): InputFeatureEvent;
|
|
3
|
+
export declare function createInputGestureRecognizer(options?: InputGestureRecognizerOptions): InputGestureRecognizer;
|
|
4
|
+
export declare function createInputActionMap<Action>(): InputActionMap<Action>;
|
|
5
|
+
//# sourceMappingURL=input-map.part02.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-map.part02.d.ts","sourceRoot":"","sources":["../src/input-map.part02.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAOnC,MAAM,uBAAuB,CAAC;AAU/B,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,qBAAqB,EAC3B,IAAI,EAAE,MAAM,GACX,iBAAiB,CAMnB;AACD,wBAAgB,4BAA4B,CAC1C,OAAO,GAAE,6BAAkC,GAC1C,sBAAsB,CAmExB;AACD,wBAAgB,oBAAoB,CAAC,MAAM,KAAK,cAAc,CAAC,MAAM,CAAC,CAwCrE"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DEFAULT_DOUBLE_TAP_MS, KEYBOARD_INPUT_DEVICE_ID, defineInputDevice, keyboardFeature, keyboardModifierFeature, } from './input-map.part01.js';
|
|
2
|
+
import { freezePlain, keySignature, normalizeId, normalizePositiveDuration, normalizeTimestamp, } from './input-map.part03.js';
|
|
3
|
+
import { inputEventMatches } from './input-map.part04.js';
|
|
4
|
+
export function inputFeatureEvent(feature, type, atMs) {
|
|
5
|
+
return freezePlain({
|
|
6
|
+
feature,
|
|
7
|
+
type: normalizeId(type, 'input feature event type'),
|
|
8
|
+
atMs: normalizeTimestamp(atMs),
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export function createInputGestureRecognizer(options = {}) {
|
|
12
|
+
const device = defineInputDevice(options.device ?? {
|
|
13
|
+
id: KEYBOARD_INPUT_DEVICE_ID,
|
|
14
|
+
kind: 'keyboard',
|
|
15
|
+
label: 'Keyboard',
|
|
16
|
+
});
|
|
17
|
+
const doubleTapMs = normalizePositiveDuration(options.doubleTapMs, DEFAULT_DOUBLE_TAP_MS);
|
|
18
|
+
let lastTap;
|
|
19
|
+
return {
|
|
20
|
+
observeKey(msg, atMs) {
|
|
21
|
+
const timestamp = normalizeTimestamp(atMs);
|
|
22
|
+
const featureEvents = [];
|
|
23
|
+
if (msg.ctrl) {
|
|
24
|
+
featureEvents.push(inputFeatureEvent(keyboardModifierFeature('ctrl'), 'held', timestamp));
|
|
25
|
+
}
|
|
26
|
+
if (msg.alt) {
|
|
27
|
+
featureEvents.push(inputFeatureEvent(keyboardModifierFeature('alt'), 'held', timestamp));
|
|
28
|
+
}
|
|
29
|
+
if (msg.shift) {
|
|
30
|
+
featureEvents.push(inputFeatureEvent(keyboardModifierFeature('shift'), 'held', timestamp));
|
|
31
|
+
}
|
|
32
|
+
const keyFeature = keyboardFeature(msg.key);
|
|
33
|
+
featureEvents.push(inputFeatureEvent(keyFeature, 'press', timestamp));
|
|
34
|
+
featureEvents.push(inputFeatureEvent(keyFeature, 'tap', timestamp));
|
|
35
|
+
const signature = keySignature(msg);
|
|
36
|
+
const isDoubleTap = lastTap?.signature === signature &&
|
|
37
|
+
timestamp - lastTap.atMs <= doubleTapMs;
|
|
38
|
+
if (isDoubleTap) {
|
|
39
|
+
featureEvents.push(inputFeatureEvent(keyFeature, 'double-tap', timestamp));
|
|
40
|
+
lastTap = undefined;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
lastTap = { signature, atMs: timestamp };
|
|
44
|
+
}
|
|
45
|
+
return freezePlain({
|
|
46
|
+
device,
|
|
47
|
+
featureEvents: Object.freeze(featureEvents),
|
|
48
|
+
atMs: timestamp,
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
reset() {
|
|
52
|
+
lastTap = undefined;
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function createInputActionMap() {
|
|
57
|
+
const bindings = [];
|
|
58
|
+
return {
|
|
59
|
+
bind(id, description, featureEvents, action) {
|
|
60
|
+
const normalizedFeatureEvents = featureEvents.map((featureEvent) => freezePlain({
|
|
61
|
+
...featureEvent,
|
|
62
|
+
featureId: normalizeId(featureEvent.featureId, 'input action feature id'),
|
|
63
|
+
type: normalizeId(featureEvent.type, 'input action event type'),
|
|
64
|
+
deviceId: featureEvent.deviceId != null
|
|
65
|
+
? normalizeId(featureEvent.deviceId, 'input action device id')
|
|
66
|
+
: undefined,
|
|
67
|
+
}));
|
|
68
|
+
bindings.push(freezePlain({
|
|
69
|
+
id: normalizeId(id, 'input action id'),
|
|
70
|
+
description,
|
|
71
|
+
featureEvents: Object.freeze(normalizedFeatureEvents),
|
|
72
|
+
action,
|
|
73
|
+
enabled: true,
|
|
74
|
+
}));
|
|
75
|
+
return this;
|
|
76
|
+
},
|
|
77
|
+
handle(event) {
|
|
78
|
+
return bindings.find((binding) => binding.enabled && inputEventMatches(event, binding.featureEvents))?.action;
|
|
79
|
+
},
|
|
80
|
+
bindings() {
|
|
81
|
+
return Object.freeze([...bindings]);
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=input-map.part02.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-map.part02.js","sourceRoot":"","sources":["../src/input-map.part02.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input feature events and semantic action maps.
|
|
3
|
+
*
|
|
4
|
+
* This module sits above raw terminal input parsing and below app/frame
|
|
5
|
+
* reducers. It lets shells bind actions to semantic input feature events such
|
|
6
|
+
* as "keyboard.tab double-tap" without hard-coding gesture state into a single
|
|
7
|
+
* component.
|
|
8
|
+
*/
|
|
9
|
+
import type { KeyMsg } from './types.js';
|
|
10
|
+
export declare function keySignature(msg: KeyMsg): string;
|
|
11
|
+
export declare function normalizeId(value: string, label: string): string;
|
|
12
|
+
export declare function normalizeTimestamp(value: number): number;
|
|
13
|
+
export declare function normalizePositiveDuration(value: number | undefined, fallback: number): number;
|
|
14
|
+
export declare function freezePlain<T extends object>(value: T): T;
|
|
15
|
+
//# sourceMappingURL=input-map.part03.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-map.part03.d.ts","sourceRoot":"","sources":["../src/input-map.part03.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOhD;AACD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAMhE;AACD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKxD;AACD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,QAAQ,EAAE,MAAM,GACf,MAAM,CAQR;AACD,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAEzD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export function keySignature(msg) {
|
|
2
|
+
return [
|
|
3
|
+
msg.ctrl ? 'ctrl' : '',
|
|
4
|
+
msg.alt ? 'alt' : '',
|
|
5
|
+
msg.shift ? 'shift' : '',
|
|
6
|
+
msg.key,
|
|
7
|
+
].join('|');
|
|
8
|
+
}
|
|
9
|
+
export function normalizeId(value, label) {
|
|
10
|
+
const normalized = value.trim();
|
|
11
|
+
if (normalized === '') {
|
|
12
|
+
throw new Error(`${label} is required`);
|
|
13
|
+
}
|
|
14
|
+
return normalized;
|
|
15
|
+
}
|
|
16
|
+
export function normalizeTimestamp(value) {
|
|
17
|
+
if (!Number.isFinite(value)) {
|
|
18
|
+
throw new Error('input event timestamp must be finite');
|
|
19
|
+
}
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
export function normalizePositiveDuration(value, fallback) {
|
|
23
|
+
if (value == null)
|
|
24
|
+
return fallback;
|
|
25
|
+
if (!Number.isFinite(value) || value <= 0) {
|
|
26
|
+
throw new Error('input gesture doubleTapMs must be a positive finite number');
|
|
27
|
+
}
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
export function freezePlain(value) {
|
|
31
|
+
return Object.freeze(value);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=input-map.part03.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-map.part03.js","sourceRoot":"","sources":["../src/input-map.part03.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,OAAO;QACL,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;QACtB,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;QACpB,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QACxB,GAAG,CAAC,GAAG;KACR,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC;AACD,MAAM,UAAU,WAAW,CAAC,KAAa,EAAE,KAAa;IACtD,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAChC,IAAI,UAAU,KAAK,EAAE,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,cAAc,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AACD,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC9C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AACD,MAAM,UAAU,yBAAyB,CACvC,KAAyB,EACzB,QAAgB;IAEhB,IAAI,KAAK,IAAI,IAAI;QAAE,OAAO,QAAQ,CAAC;IACnC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CACb,4DAA4D,CAC7D,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AACD,MAAM,UAAU,WAAW,CAAmB,KAAQ;IACpD,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-map.part04.d.ts","sourceRoot":"","sources":["../src/input-map.part04.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAE/B,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,SAAS,wBAAwB,EAAE,GAC5C,OAAO,CAUT"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function inputEventMatches(event, patterns) {
|
|
2
|
+
return patterns.every((pattern) => event.featureEvents.some((featureEvent) => featureEvent.type === pattern.type &&
|
|
3
|
+
featureEvent.feature.id === pattern.featureId &&
|
|
4
|
+
(pattern.deviceId == null ||
|
|
5
|
+
featureEvent.feature.deviceId === pattern.deviceId)));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=input-map.part04.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-map.part04.js","sourceRoot":"","sources":["../src/input-map.part04.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,iBAAiB,CAC/B,KAAiB,EACjB,QAA6C;IAE7C,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAChC,KAAK,CAAC,aAAa,CAAC,IAAI,CACtB,CAAC,YAAY,EAAE,EAAE,CACf,YAAY,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI;QAClC,YAAY,CAAC,OAAO,CAAC,EAAE,KAAK,OAAO,CAAC,SAAS;QAC7C,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI;YACvB,YAAY,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,QAAQ,CAAC,CACxD,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** Type contracts for stack-based input dispatch. */
|
|
2
|
+
/**
|
|
3
|
+
* Anything that can handle an input message and optionally return an action.
|
|
4
|
+
*
|
|
5
|
+
* Return `undefined` to indicate "not handled" (pass through).
|
|
6
|
+
* {@link KeyMap}.handle() already satisfies this interface.
|
|
7
|
+
*
|
|
8
|
+
* @template Msg - Input message type.
|
|
9
|
+
* @template A - Action type returned on match.
|
|
10
|
+
*/
|
|
11
|
+
export interface InputHandler<Msg, A> {
|
|
12
|
+
/**
|
|
13
|
+
* Attempt to handle the given message.
|
|
14
|
+
*
|
|
15
|
+
* @param msg - Input message to handle.
|
|
16
|
+
* @returns The matched action, or `undefined` if not handled.
|
|
17
|
+
*/
|
|
18
|
+
handle(msg: Msg): A | undefined;
|
|
19
|
+
}
|
|
20
|
+
/** Configuration options when pushing a layer onto the stack. */
|
|
21
|
+
export interface LayerOptions {
|
|
22
|
+
/**
|
|
23
|
+
* When true, unhandled events pass through to layers below even
|
|
24
|
+
* when this layer is on top. When false (default), the layer is
|
|
25
|
+
* opaque — events that reach it but aren't handled are swallowed.
|
|
26
|
+
*/
|
|
27
|
+
passthrough?: boolean;
|
|
28
|
+
/** Optional name for debugging and removal by name. */
|
|
29
|
+
name?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Read-only snapshot of a layer's metadata. */
|
|
32
|
+
export interface LayerInfo {
|
|
33
|
+
/** Unique identifier assigned when the layer was pushed. */
|
|
34
|
+
readonly id: number;
|
|
35
|
+
/** Layer name (empty string if unnamed). */
|
|
36
|
+
readonly name: string;
|
|
37
|
+
/** Whether unhandled events pass through to layers below. */
|
|
38
|
+
readonly passthrough: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Stack-based input dispatcher for layered TUI input handling.
|
|
42
|
+
*
|
|
43
|
+
* @template Msg - Input message type dispatched through the stack.
|
|
44
|
+
* @template A - Action type returned when a handler matches.
|
|
45
|
+
*/
|
|
46
|
+
export interface InputStack<Msg, A> {
|
|
47
|
+
/**
|
|
48
|
+
* Push a handler onto the top of the stack.
|
|
49
|
+
* Returns a unique layer ID for targeted removal.
|
|
50
|
+
*/
|
|
51
|
+
push(handler: InputHandler<Msg, A>, options?: LayerOptions): number;
|
|
52
|
+
/** Remove and return the top layer. Returns undefined if empty. */
|
|
53
|
+
pop(): LayerInfo | undefined;
|
|
54
|
+
/** Remove a specific layer by ID. Returns true if found. */
|
|
55
|
+
remove(id: number): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Dispatch a message through the stack, top-down.
|
|
58
|
+
*
|
|
59
|
+
* - If a layer's handler returns an action, dispatch returns it immediately.
|
|
60
|
+
* - If a layer's handler returns undefined:
|
|
61
|
+
* - passthrough layer: continue to the next layer
|
|
62
|
+
* - opaque layer: stop, return undefined (event swallowed)
|
|
63
|
+
*/
|
|
64
|
+
dispatch(msg: Msg): A | undefined;
|
|
65
|
+
/** Return info about all layers, bottom to top. */
|
|
66
|
+
layers(): readonly LayerInfo[];
|
|
67
|
+
/** Number of layers in the stack. */
|
|
68
|
+
readonly size: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Internal layer entry stored in the stack.
|
|
72
|
+
*
|
|
73
|
+
* @template Msg - Input message type.
|
|
74
|
+
* @template A - Action type returned on match.
|
|
75
|
+
*/
|
|
76
|
+
export interface Layer<Msg, A> {
|
|
77
|
+
/** Unique identifier assigned at push time. */
|
|
78
|
+
readonly id: number;
|
|
79
|
+
/** Handler that processes input messages for this layer. */
|
|
80
|
+
readonly handler: InputHandler<Msg, A>;
|
|
81
|
+
/** Whether unhandled events pass through to layers below. */
|
|
82
|
+
readonly passthrough: boolean;
|
|
83
|
+
/** Layer name for debugging (empty string if unnamed). */
|
|
84
|
+
readonly name: string;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=inputstack-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputstack-types.d.ts","sourceRoot":"","sources":["../src/inputstack-types.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY,CAAC,GAAG,EAAE,CAAC;IAClC;;;;;OAKG;IACH,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,GAAG,SAAS,CAAC;CACjC;AAED,iEAAiE;AACjE,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,gDAAgD;AAChD,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU,CAAC,GAAG,EAAE,CAAC;IAChC;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAEpE,mEAAmE;IACnE,GAAG,IAAI,SAAS,GAAG,SAAS,CAAC;IAE7B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAE5B;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,GAAG,SAAS,CAAC;IAElC,mDAAmD;IACnD,MAAM,IAAI,SAAS,SAAS,EAAE,CAAC;IAE/B,qCAAqC;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,KAAK,CAAC,GAAG,EAAE,CAAC;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IACvC,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputstack-types.js","sourceRoot":"","sources":["../src/inputstack-types.ts"],"names":[],"mappings":"AAAA,qDAAqD"}
|
package/dist/inputstack.d.ts
CHANGED
|
@@ -33,65 +33,7 @@
|
|
|
33
33
|
* @template Msg - Input message type.
|
|
34
34
|
* @template A - Action type returned on match.
|
|
35
35
|
*/
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Attempt to handle the given message.
|
|
39
|
-
*
|
|
40
|
-
* @param msg - Input message to handle.
|
|
41
|
-
* @returns The matched action, or `undefined` if not handled.
|
|
42
|
-
*/
|
|
43
|
-
handle(msg: Msg): A | undefined;
|
|
44
|
-
}
|
|
45
|
-
/** Configuration options when pushing a layer onto the stack. */
|
|
46
|
-
export interface LayerOptions {
|
|
47
|
-
/**
|
|
48
|
-
* When true, unhandled events pass through to layers below even
|
|
49
|
-
* when this layer is on top. When false (default), the layer is
|
|
50
|
-
* opaque — events that reach it but aren't handled are swallowed.
|
|
51
|
-
*/
|
|
52
|
-
passthrough?: boolean;
|
|
53
|
-
/** Optional name for debugging and removal by name. */
|
|
54
|
-
name?: string;
|
|
55
|
-
}
|
|
56
|
-
/** Read-only snapshot of a layer's metadata. */
|
|
57
|
-
export interface LayerInfo {
|
|
58
|
-
/** Unique identifier assigned when the layer was pushed. */
|
|
59
|
-
readonly id: number;
|
|
60
|
-
/** Layer name (empty string if unnamed). */
|
|
61
|
-
readonly name: string;
|
|
62
|
-
/** Whether unhandled events pass through to layers below. */
|
|
63
|
-
readonly passthrough: boolean;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Stack-based input dispatcher for layered TUI input handling.
|
|
67
|
-
*
|
|
68
|
-
* @template Msg - Input message type dispatched through the stack.
|
|
69
|
-
* @template A - Action type returned when a handler matches.
|
|
70
|
-
*/
|
|
71
|
-
export interface InputStack<Msg, A> {
|
|
72
|
-
/**
|
|
73
|
-
* Push a handler onto the top of the stack.
|
|
74
|
-
* Returns a unique layer ID for targeted removal.
|
|
75
|
-
*/
|
|
76
|
-
push(handler: InputHandler<Msg, A>, options?: LayerOptions): number;
|
|
77
|
-
/** Remove and return the top layer. Returns undefined if empty. */
|
|
78
|
-
pop(): LayerInfo | undefined;
|
|
79
|
-
/** Remove a specific layer by ID. Returns true if found. */
|
|
80
|
-
remove(id: number): boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Dispatch a message through the stack, top-down.
|
|
83
|
-
*
|
|
84
|
-
* - If a layer's handler returns an action, dispatch returns it immediately.
|
|
85
|
-
* - If a layer's handler returns undefined:
|
|
86
|
-
* - passthrough layer: continue to the next layer
|
|
87
|
-
* - opaque layer: stop, return undefined (event swallowed)
|
|
88
|
-
*/
|
|
89
|
-
dispatch(msg: Msg): A | undefined;
|
|
90
|
-
/** Return info about all layers, bottom to top. */
|
|
91
|
-
layers(): readonly LayerInfo[];
|
|
92
|
-
/** Number of layers in the stack. */
|
|
93
|
-
readonly size: number;
|
|
94
|
-
}
|
|
36
|
+
import type { InputStack } from './inputstack-types.js';
|
|
95
37
|
/**
|
|
96
38
|
* Create a new empty input stack.
|
|
97
39
|
*
|
|
@@ -104,4 +46,5 @@ export interface InputStack<Msg, A> {
|
|
|
104
46
|
* @returns A new empty input stack.
|
|
105
47
|
*/
|
|
106
48
|
export declare function createInputStack<Msg, A>(): InputStack<Msg, A>;
|
|
49
|
+
export type { InputHandler, LayerOptions, LayerInfo, InputStack, } from './inputstack-types.js';
|
|
107
50
|
//# sourceMappingURL=inputstack.d.ts.map
|