@flyingrobots/bijou-tui 7.1.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/README.md +27 -4
- package/dist/accordion.d.ts +3 -108
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.js +2 -161
- package/dist/accordion.js.map +1 -1
- package/dist/accordion.part01.d.ts +25 -0
- package/dist/accordion.part01.d.ts.map +1 -0
- package/dist/accordion.part01.js +61 -0
- package/dist/accordion.part01.js.map +1 -0
- package/dist/accordion.part02.d.ts +8 -0
- package/dist/accordion.part02.d.ts.map +1 -0
- package/dist/accordion.part02.js +15 -0
- package/dist/accordion.part02.js.map +1 -0
- 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 -159
- 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 -32
- package/dist/app-frame-actions.d.ts.map +1 -1
- package/dist/app-frame-actions.js +6 -441
- 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 +18 -94
- 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 -96
- package/dist/app-frame-overlays.d.ts.map +1 -1
- package/dist/app-frame-overlays.js +9 -541
- 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 -19
- package/dist/app-frame-palette.d.ts.map +1 -1
- package/dist/app-frame-palette.js +4 -209
- 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 -54
- package/dist/app-frame-render.d.ts.map +1 -1
- package/dist/app-frame-render.js +8 -542
- 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 -382
- 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 +5 -17
- package/dist/app-frame-utils.d.ts.map +1 -1
- package/dist/app-frame-utils.js +7 -72
- 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 -364
- package/dist/app-frame.d.ts.map +1 -1
- package/dist/app-frame.js +2 -1742
- package/dist/app-frame.js.map +1 -1
- package/dist/app-frame.test-support.part01.d.ts +149 -0
- package/dist/app-frame.test-support.part01.d.ts.map +1 -0
- package/dist/app-frame.test-support.part01.js +106 -0
- package/dist/app-frame.test-support.part01.js.map +1 -0
- package/dist/app-frame.test-support.part02.d.ts +15 -0
- package/dist/app-frame.test-support.part02.d.ts.map +1 -0
- package/dist/app-frame.test-support.part02.js +89 -0
- package/dist/app-frame.test-support.part02.js.map +1 -0
- 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 -61
- package/dist/canvas.d.ts.map +1 -1
- package/dist/canvas.js +1 -280
- 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/cell-glyph-fit.js +1 -1
- package/dist/cell-glyph-fit.js.map +1 -1
- package/dist/collection-surface-types.d.ts +12 -0
- package/dist/collection-surface-types.d.ts.map +1 -0
- package/dist/collection-surface-types.js +2 -0
- package/dist/collection-surface-types.js.map +1 -0
- package/dist/collection-surface.d.ts +2 -7
- package/dist/collection-surface.d.ts.map +1 -1
- package/dist/collection-surface.js +8 -18
- package/dist/collection-surface.js.map +1 -1
- package/dist/command-palette.d.ts +5 -160
- package/dist/command-palette.d.ts.map +1 -1
- package/dist/command-palette.js +4 -300
- 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/commands.d.ts.map +1 -1
- package/dist/commands.js +1 -1
- package/dist/commands.js.map +1 -1
- package/dist/css/install.js.map +1 -1
- package/dist/css/parser.js +9 -3
- package/dist/css/parser.js.map +1 -1
- package/dist/css/resolver-types.d.ts +13 -0
- package/dist/css/resolver-types.d.ts.map +1 -0
- package/dist/css/resolver-types.js +2 -0
- package/dist/css/resolver-types.js.map +1 -0
- package/dist/css/resolver.d.ts +2 -12
- package/dist/css/resolver.d.ts.map +1 -1
- package/dist/css/resolver.js +13 -20
- package/dist/css/resolver.js.map +1 -1
- 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 +3 -22
- package/dist/css/text-style.d.ts.map +1 -1
- package/dist/css/text-style.js +12 -85
- package/dist/css/text-style.js.map +1 -1
- package/dist/dag-pane.d.ts +4 -224
- package/dist/dag-pane.d.ts.map +1 -1
- package/dist/dag-pane.js +3 -516
- package/dist/dag-pane.js.map +1 -1
- package/dist/dag-pane.part01.d.ts +58 -0
- package/dist/dag-pane.part01.d.ts.map +1 -0
- package/dist/dag-pane.part01.js +2 -0
- package/dist/dag-pane.part01.js.map +1 -0
- package/dist/dag-pane.part02.d.ts +4 -0
- package/dist/dag-pane.part02.d.ts.map +1 -0
- package/dist/dag-pane.part02.js +56 -0
- package/dist/dag-pane.part02.js.map +1 -0
- package/dist/dag-pane.part03.d.ts +6 -0
- package/dist/dag-pane.part03.d.ts.map +1 -0
- package/dist/dag-pane.part03.js +76 -0
- package/dist/dag-pane.part03.js.map +1 -0
- package/dist/dag-pane.part04.d.ts +7 -0
- package/dist/dag-pane.part04.d.ts.map +1 -0
- package/dist/dag-pane.part04.js +66 -0
- package/dist/dag-pane.part04.js.map +1 -0
- package/dist/dag-pane.part05.d.ts +7 -0
- package/dist/dag-pane.part05.d.ts.map +1 -0
- package/dist/dag-pane.part05.js +78 -0
- package/dist/dag-pane.part05.js.map +1 -0
- package/dist/dag-pane.part06.d.ts +14 -0
- package/dist/dag-pane.part06.d.ts.map +1 -0
- package/dist/dag-pane.part06.js +65 -0
- package/dist/dag-pane.part06.js.map +1 -0
- package/dist/dag-pane.part07.d.ts +18 -0
- package/dist/dag-pane.part07.d.ts.map +1 -0
- package/dist/dag-pane.part07.js +22 -0
- package/dist/dag-pane.part07.js.map +1 -0
- 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 -195
- package/dist/driver.d.ts.map +1 -1
- package/dist/driver.js +4 -388
- 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 -353
- package/dist/eventbus.js.map +1 -1
- package/dist/file-picker.d.ts +4 -164
- package/dist/file-picker.d.ts.map +1 -1
- package/dist/file-picker.js +3 -292
- package/dist/file-picker.js.map +1 -1
- package/dist/file-picker.part01.d.ts +54 -0
- package/dist/file-picker.part01.d.ts.map +1 -0
- package/dist/file-picker.part01.js +47 -0
- package/dist/file-picker.part01.js.map +1 -0
- package/dist/file-picker.part02.d.ts +9 -0
- package/dist/file-picker.part02.d.ts.map +1 -0
- package/dist/file-picker.part02.js +77 -0
- package/dist/file-picker.part02.js.map +1 -0
- package/dist/file-picker.part03.d.ts +12 -0
- package/dist/file-picker.part03.d.ts.map +1 -0
- package/dist/file-picker.part03.js +35 -0
- package/dist/file-picker.part03.js.map +1 -0
- package/dist/flex.d.ts +2 -114
- package/dist/flex.d.ts.map +1 -1
- package/dist/flex.js +1 -478
- 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-area.d.ts +6 -210
- package/dist/focus-area.d.ts.map +1 -1
- package/dist/focus-area.js +5 -425
- package/dist/focus-area.js.map +1 -1
- package/dist/focus-area.part01.d.ts +57 -0
- package/dist/focus-area.part01.d.ts.map +1 -0
- package/dist/focus-area.part01.js +23 -0
- package/dist/focus-area.part01.js.map +1 -0
- package/dist/focus-area.part02.d.ts +13 -0
- package/dist/focus-area.part02.d.ts.map +1 -0
- package/dist/focus-area.part02.js +65 -0
- package/dist/focus-area.part02.js.map +1 -0
- package/dist/focus-area.part03.d.ts +5 -0
- package/dist/focus-area.part03.d.ts.map +1 -0
- package/dist/focus-area.part03.js +42 -0
- package/dist/focus-area.part03.js.map +1 -0
- package/dist/focus-area.part04.d.ts +5 -0
- package/dist/focus-area.part04.d.ts.map +1 -0
- package/dist/focus-area.part04.js +49 -0
- package/dist/focus-area.part04.js.map +1 -0
- package/dist/focus-area.part05.d.ts +10 -0
- package/dist/focus-area.part05.d.ts.map +1 -0
- package/dist/focus-area.part05.js +66 -0
- package/dist/focus-area.part05.js.map +1 -0
- package/dist/focus-area.part06.d.ts +17 -0
- package/dist/focus-area.part06.d.ts.map +1 -0
- package/dist/focus-area.part06.js +48 -0
- package/dist/focus-area.part06.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 +10 -80
- 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/index.d.ts +8 -80
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -107
- package/dist/index.js.map +1 -1
- package/dist/index.part01.d.ts +15 -0
- package/dist/index.part01.d.ts.map +1 -0
- package/dist/index.part01.js +11 -0
- package/dist/index.part01.js.map +1 -0
- package/dist/index.part02.d.ts +26 -0
- package/dist/index.part02.d.ts.map +1 -0
- package/dist/index.part02.js +24 -0
- package/dist/index.part02.js.map +1 -0
- package/dist/index.part03.d.ts +17 -0
- package/dist/index.part03.d.ts.map +1 -0
- package/dist/index.part03.js +11 -0
- package/dist/index.part03.js.map +1 -0
- package/dist/index.part04.d.ts +6 -0
- package/dist/index.part04.d.ts.map +1 -0
- package/dist/index.part04.js +11 -0
- package/dist/index.part04.js.map +1 -0
- package/dist/index.part05.d.ts +10 -0
- package/dist/index.part05.d.ts.map +1 -0
- package/dist/index.part05.js +26 -0
- package/dist/index.part05.js.map +1 -0
- package/dist/index.part06.d.ts +9 -0
- package/dist/index.part06.d.ts.map +1 -0
- package/dist/index.part06.js +16 -0
- package/dist/index.part06.js.map +1 -0
- package/dist/index.part07.d.ts +8 -0
- package/dist/index.part07.d.ts.map +1 -0
- package/dist/index.part07.js +15 -0
- package/dist/index.part07.js.map +1 -0
- package/dist/index.part08.d.ts +5 -0
- package/dist/index.part08.d.ts.map +1 -0
- package/dist/index.part08.js +9 -0
- package/dist/index.part08.js.map +1 -0
- package/dist/input-map.d.ts +4 -67
- package/dist/input-map.d.ts.map +1 -1
- package/dist/input-map.js +3 -161
- 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/input-parser.d.ts +3 -0
- package/dist/input-parser.d.ts.map +1 -0
- package/dist/input-parser.js +95 -0
- package/dist/input-parser.js.map +1 -0
- package/dist/input-routing-inspector.js +3 -3
- package/dist/input-routing-inspector.js.map +1 -1
- 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 +2 -0
- 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 -196
- 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/keys.d.ts +0 -36
- package/dist/keys.d.ts.map +1 -1
- package/dist/keys.js +11 -66
- package/dist/keys.js.map +1 -1
- package/dist/layout-inspector.d.ts +2 -30
- package/dist/layout-inspector.d.ts.map +1 -1
- package/dist/layout-inspector.js +1 -132
- package/dist/layout-inspector.js.map +1 -1
- package/dist/layout-inspector.part01.d.ts +52 -0
- package/dist/layout-inspector.part01.d.ts.map +1 -0
- package/dist/layout-inspector.part01.js +48 -0
- package/dist/layout-inspector.part01.js.map +1 -0
- package/dist/layout-inspector.part02.d.ts +11 -0
- package/dist/layout-inspector.part02.d.ts.map +1 -0
- package/dist/layout-inspector.part02.js +80 -0
- package/dist/layout-inspector.part02.js.map +1 -0
- package/dist/layout-inspector.part03.d.ts +5 -0
- package/dist/layout-inspector.part03.d.ts.map +1 -0
- package/dist/layout-inspector.part03.js +11 -0
- package/dist/layout-inspector.part03.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 +5 -34
- 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 -57
- package/dist/layout.js.map +1 -1
- package/dist/motion/motion.js +8 -4
- package/dist/motion/motion.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 +7 -39
- package/dist/motion/reconciler.js.map +1 -1
- package/dist/mouse-mode.d.ts +5 -0
- package/dist/mouse-mode.d.ts.map +1 -0
- package/dist/mouse-mode.js +17 -0
- package/dist/mouse-mode.js.map +1 -0
- package/dist/navigable-table.d.ts +3 -136
- package/dist/navigable-table.d.ts.map +1 -1
- package/dist/navigable-table.js +2 -234
- package/dist/navigable-table.js.map +1 -1
- package/dist/navigable-table.part01.d.ts +42 -0
- package/dist/navigable-table.part01.d.ts.map +1 -0
- package/dist/navigable-table.part01.js +42 -0
- package/dist/navigable-table.part01.js.map +1 -0
- package/dist/navigable-table.part02.d.ts +16 -0
- package/dist/navigable-table.part02.d.ts.map +1 -0
- package/dist/navigable-table.part02.js +83 -0
- package/dist/navigable-table.part02.js.map +1 -0
- 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 +11 -0
- package/dist/notification-card.d.ts.map +1 -0
- package/dist/notification-card.js +77 -0
- package/dist/notification-card.js.map +1 -0
- package/dist/notification-stack.d.ts +6 -0
- package/dist/notification-stack.d.ts.map +1 -0
- package/dist/notification-stack.js +257 -0
- package/dist/notification-stack.js.map +1 -0
- package/dist/notification.d.ts +14 -112
- package/dist/notification.d.ts.map +1 -1
- package/dist/notification.js +12 -1087
- package/dist/notification.js.map +1 -1
- package/dist/notification.part01.d.ts +77 -0
- package/dist/notification.part01.d.ts.map +1 -0
- package/dist/notification.part01.js +19 -0
- package/dist/notification.part01.js.map +1 -0
- package/dist/notification.part02.d.ts +42 -0
- package/dist/notification.part02.d.ts.map +1 -0
- package/dist/notification.part02.js +44 -0
- package/dist/notification.part02.js.map +1 -0
- package/dist/notification.part03.d.ts +6 -0
- package/dist/notification.part03.d.ts.map +1 -0
- package/dist/notification.part03.js +81 -0
- package/dist/notification.part03.js.map +1 -0
- package/dist/notification.part04.d.ts +4 -0
- package/dist/notification.part04.d.ts.map +1 -0
- package/dist/notification.part04.js +32 -0
- package/dist/notification.part04.js.map +1 -0
- package/dist/notification.part05.d.ts +6 -0
- package/dist/notification.part05.d.ts.map +1 -0
- package/dist/notification.part05.js +95 -0
- package/dist/notification.part05.js.map +1 -0
- package/dist/notification.part06.d.ts +9 -0
- package/dist/notification.part06.d.ts.map +1 -0
- package/dist/notification.part06.js +65 -0
- package/dist/notification.part06.js.map +1 -0
- package/dist/notification.part07.d.ts +10 -0
- package/dist/notification.part07.d.ts.map +1 -0
- package/dist/notification.part07.js +70 -0
- package/dist/notification.part07.js.map +1 -0
- package/dist/notification.part08.d.ts +5 -0
- package/dist/notification.part08.d.ts.map +1 -0
- package/dist/notification.part08.js +79 -0
- package/dist/notification.part08.js.map +1 -0
- package/dist/notification.part09.d.ts +14 -0
- package/dist/notification.part09.d.ts.map +1 -0
- package/dist/notification.part09.js +96 -0
- package/dist/notification.part09.js.map +1 -0
- package/dist/notification.part10.d.ts +13 -0
- package/dist/notification.part10.d.ts.map +1 -0
- package/dist/notification.part10.js +94 -0
- package/dist/notification.part10.js.map +1 -0
- package/dist/notification.part11.d.ts +6 -0
- package/dist/notification.part11.d.ts.map +1 -0
- package/dist/notification.part11.js +42 -0
- package/dist/notification.part11.js.map +1 -0
- package/dist/overlay.d.ts +8 -232
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +5 -629
- package/dist/overlay.js.map +1 -1
- package/dist/overlay.part01.d.ts +71 -0
- package/dist/overlay.part01.d.ts.map +1 -0
- package/dist/overlay.part01.js +34 -0
- package/dist/overlay.part01.js.map +1 -0
- package/dist/overlay.part02.d.ts +8 -0
- package/dist/overlay.part02.d.ts.map +1 -0
- package/dist/overlay.part02.js +81 -0
- package/dist/overlay.part02.js.map +1 -0
- package/dist/overlay.part03.d.ts +27 -0
- package/dist/overlay.part03.d.ts.map +1 -0
- package/dist/overlay.part03.js +83 -0
- package/dist/overlay.part03.js.map +1 -0
- package/dist/overlay.part04.d.ts +8 -0
- package/dist/overlay.part04.d.ts.map +1 -0
- package/dist/overlay.part04.js +103 -0
- package/dist/overlay.part04.js.map +1 -0
- package/dist/overlay.part05.d.ts +8 -0
- package/dist/overlay.part05.d.ts.map +1 -0
- package/dist/overlay.part05.js +66 -0
- package/dist/overlay.part05.js.map +1 -0
- package/dist/overlay.part06.d.ts +46 -0
- package/dist/overlay.part06.d.ts.map +1 -0
- package/dist/overlay.part06.js +35 -0
- package/dist/overlay.part06.js.map +1 -0
- package/dist/overlay.part07.d.ts +4 -0
- package/dist/overlay.part07.d.ts.map +1 -0
- package/dist/overlay.part07.js +64 -0
- package/dist/overlay.part07.js.map +1 -0
- package/dist/overlay.part08.d.ts +34 -0
- package/dist/overlay.part08.d.ts.map +1 -0
- package/dist/overlay.part08.js +54 -0
- package/dist/overlay.part08.js.map +1 -0
- package/dist/overlay.part09.d.ts +6 -0
- package/dist/overlay.part09.d.ts.map +1 -0
- package/dist/overlay.part09.js +42 -0
- package/dist/overlay.part09.js.map +1 -0
- package/dist/pager.d.ts +4 -164
- package/dist/pager.d.ts.map +1 -1
- package/dist/pager.js +3 -255
- 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-dock.d.ts.map +1 -1
- package/dist/panel-dock.js +9 -11
- package/dist/panel-dock.js.map +1 -1
- 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 +5 -12
- package/dist/panels.js.map +1 -1
- package/dist/pipeline/middleware/css.d.ts +3 -5
- package/dist/pipeline/middleware/css.d.ts.map +1 -1
- package/dist/pipeline/middleware/css.js +12 -6
- package/dist/pipeline/middleware/css.js.map +1 -1
- package/dist/pipeline/middleware/grayscale.js +15 -10
- package/dist/pipeline/middleware/grayscale.js.map +1 -1
- package/dist/pipeline/middleware/motion.js +9 -1
- package/dist/pipeline/middleware/motion.js.map +1 -1
- package/dist/pipeline/middleware/paint.js +9 -1
- package/dist/pipeline/middleware/paint.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 -163
- 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/pipeline/pipeline.d.ts +7 -52
- package/dist/pipeline/pipeline.d.ts.map +1 -1
- package/dist/pipeline/pipeline.js +37 -27
- package/dist/pipeline/pipeline.js.map +1 -1
- package/dist/raster-glyph.d.ts +2 -44
- package/dist/raster-glyph.d.ts.map +1 -1
- package/dist/raster-glyph.js +1 -404
- package/dist/raster-glyph.js.map +1 -1
- package/dist/raster-glyph.part01.d.ts +75 -0
- package/dist/raster-glyph.part01.d.ts.map +1 -0
- package/dist/raster-glyph.part01.js +25 -0
- package/dist/raster-glyph.part01.js.map +1 -0
- package/dist/raster-glyph.part02.d.ts +12 -0
- package/dist/raster-glyph.part02.d.ts.map +1 -0
- package/dist/raster-glyph.part02.js +81 -0
- package/dist/raster-glyph.part02.js.map +1 -0
- package/dist/raster-glyph.part03.d.ts +6 -0
- package/dist/raster-glyph.part03.d.ts.map +1 -0
- package/dist/raster-glyph.part03.js +60 -0
- package/dist/raster-glyph.part03.js.map +1 -0
- package/dist/raster-glyph.part04.d.ts +7 -0
- package/dist/raster-glyph.part04.d.ts.map +1 -0
- package/dist/raster-glyph.part04.js +59 -0
- package/dist/raster-glyph.part04.js.map +1 -0
- package/dist/raster-glyph.part05.d.ts +6 -0
- package/dist/raster-glyph.part05.d.ts.map +1 -0
- package/dist/raster-glyph.part05.js +71 -0
- package/dist/raster-glyph.part05.js.map +1 -0
- package/dist/raster-glyph.part06.d.ts +18 -0
- package/dist/raster-glyph.part06.d.ts.map +1 -0
- package/dist/raster-glyph.part06.js +78 -0
- package/dist/raster-glyph.part06.js.map +1 -0
- package/dist/raster-glyph.part07.d.ts +11 -0
- package/dist/raster-glyph.part07.d.ts.map +1 -0
- package/dist/raster-glyph.part07.js +55 -0
- package/dist/raster-glyph.part07.js.map +1 -0
- package/dist/raytrace.d.ts +3 -58
- package/dist/raytrace.d.ts.map +1 -1
- package/dist/raytrace.js +2 -120
- package/dist/raytrace.js.map +1 -1
- package/dist/raytrace.part01.d.ts +47 -0
- package/dist/raytrace.part01.d.ts.map +1 -0
- package/dist/raytrace.part01.js +45 -0
- package/dist/raytrace.part01.js.map +1 -0
- package/dist/raytrace.part02.d.ts +12 -0
- package/dist/raytrace.part02.d.ts.map +1 -0
- package/dist/raytrace.part02.js +73 -0
- package/dist/raytrace.part02.js.map +1 -0
- package/dist/runtime-binding.d.ts +4 -58
- package/dist/runtime-binding.d.ts.map +1 -1
- package/dist/runtime-binding.js +3 -270
- 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 -456
- 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 -37
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +2 -557
- package/dist/runtime.js.map +1 -1
- package/dist/screen.js +1 -1
- package/dist/screen.js.map +1 -1
- package/dist/shell-quit.d.ts.map +1 -1
- package/dist/shell-quit.js +48 -5
- package/dist/shell-quit.js.map +1 -1
- package/dist/split-pane.d.ts +3 -104
- package/dist/split-pane.d.ts.map +1 -1
- package/dist/split-pane.js +2 -190
- package/dist/split-pane.js.map +1 -1
- package/dist/split-pane.part01.d.ts +60 -0
- package/dist/split-pane.part01.d.ts.map +1 -0
- package/dist/split-pane.part01.js +45 -0
- package/dist/split-pane.part01.js.map +1 -0
- package/dist/split-pane.part02.d.ts +8 -0
- package/dist/split-pane.part02.d.ts.map +1 -0
- package/dist/split-pane.part02.js +73 -0
- package/dist/split-pane.part02.js.map +1 -0
- package/dist/split-pane.part03.d.ts +4 -0
- package/dist/split-pane.part03.d.ts.map +1 -0
- package/dist/split-pane.part03.js +40 -0
- package/dist/split-pane.part03.js.map +1 -0
- package/dist/spring.d.ts +4 -187
- package/dist/spring.d.ts.map +1 -1
- package/dist/spring.js +2 -142
- package/dist/spring.js.map +1 -1
- package/dist/spring.part01.d.ts +90 -0
- package/dist/spring.part01.d.ts.map +1 -0
- package/dist/spring.part01.js +58 -0
- package/dist/spring.part01.js.map +1 -0
- package/dist/spring.part02.d.ts +25 -0
- package/dist/spring.part02.d.ts.map +1 -0
- package/dist/spring.part02.js +21 -0
- package/dist/spring.part02.js.map +1 -0
- 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 +7 -23
- package/dist/subapp/mount.d.ts.map +1 -1
- package/dist/subapp/mount.js +9 -25
- package/dist/subapp/mount.js.map +1 -1
- package/dist/surface-budget-types.d.ts +26 -0
- package/dist/surface-budget-types.d.ts.map +1 -0
- package/dist/surface-budget-types.js +2 -0
- package/dist/surface-budget-types.js.map +1 -0
- package/dist/surface-budget.d.ts +2 -25
- package/dist/surface-budget.d.ts.map +1 -1
- package/dist/surface-budget.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 -201
- 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/surface-layout.d.ts.map +1 -1
- package/dist/surface-layout.js +1 -2
- package/dist/surface-layout.js.map +1 -1
- 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 -327
- package/dist/timeline.js.map +1 -1
- package/dist/transition-shaders.d.ts +5 -142
- package/dist/transition-shaders.d.ts.map +1 -1
- package/dist/transition-shaders.js +4 -391
- package/dist/transition-shaders.js.map +1 -1
- package/dist/transition-shaders.part01.d.ts +41 -0
- package/dist/transition-shaders.part01.d.ts.map +1 -0
- package/dist/transition-shaders.part01.js +38 -0
- package/dist/transition-shaders.part01.js.map +1 -0
- package/dist/transition-shaders.part02.d.ts +12 -0
- package/dist/transition-shaders.part02.d.ts.map +1 -0
- package/dist/transition-shaders.part02.js +88 -0
- package/dist/transition-shaders.part02.js.map +1 -0
- package/dist/transition-shaders.part03.d.ts +6 -0
- package/dist/transition-shaders.part03.d.ts.map +1 -0
- package/dist/transition-shaders.part03.js +82 -0
- package/dist/transition-shaders.part03.js.map +1 -0
- package/dist/transition-shaders.part04.d.ts +16 -0
- package/dist/transition-shaders.part04.d.ts.map +1 -0
- package/dist/transition-shaders.part04.js +98 -0
- package/dist/transition-shaders.part04.js.map +1 -0
- package/dist/types.d.ts +8 -154
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +2 -59
- package/dist/types.js.map +1 -1
- package/dist/view-output.d.ts +1 -1
- package/dist/view-output.d.ts.map +1 -1
- package/dist/view-output.js +3 -2
- package/dist/view-output.js.map +1 -1
- package/dist/viewport.d.ts +7 -213
- package/dist/viewport.d.ts.map +1 -1
- package/dist/viewport.js +6 -470
- package/dist/viewport.js.map +1 -1
- package/dist/viewport.part01.d.ts +51 -0
- package/dist/viewport.part01.d.ts.map +1 -0
- package/dist/viewport.part01.js +10 -0
- package/dist/viewport.part01.js.map +1 -0
- package/dist/viewport.part02.d.ts +2 -0
- package/dist/viewport.part02.d.ts.map +1 -0
- package/dist/viewport.part02.js +69 -0
- package/dist/viewport.part02.js.map +1 -0
- package/dist/viewport.part03.d.ts +10 -0
- package/dist/viewport.part03.d.ts.map +1 -0
- package/dist/viewport.part03.js +78 -0
- package/dist/viewport.part03.js.map +1 -0
- package/dist/viewport.part04.d.ts +4 -0
- package/dist/viewport.part04.d.ts.map +1 -0
- package/dist/viewport.part04.js +50 -0
- package/dist/viewport.part04.js.map +1 -0
- package/dist/viewport.part05.d.ts +5 -0
- package/dist/viewport.part05.d.ts.map +1 -0
- package/dist/viewport.part05.js +59 -0
- package/dist/viewport.part05.js.map +1 -0
- package/dist/viewport.part06.d.ts +14 -0
- package/dist/viewport.part06.d.ts.map +1 -0
- package/dist/viewport.part06.js +58 -0
- package/dist/viewport.part06.js.map +1 -0
- package/package.json +3 -3
package/dist/viewport.js
CHANGED
|
@@ -1,471 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { createSurface, graphemeWidth, graphemeClusterWidth, parseAnsiToSurface, segmentGraphemes, clipToWidth as coreClipToWidth, } from '@flyingrobots/bijou';
|
|
8
|
-
import { layoutNodeToSurface } from './layout-node-surface.js';
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
// ANSI helpers
|
|
11
|
-
// ---------------------------------------------------------------------------
|
|
12
|
-
/** Pattern matching SGR-style ANSI escape sequences. */
|
|
13
|
-
const ANSI_RE = /\x1b\[[0-9;]*m/g;
|
|
14
|
-
/**
|
|
15
|
-
* Strip all SGR ANSI escape sequences from a string.
|
|
16
|
-
*
|
|
17
|
-
* @param str - Input string possibly containing ANSI escapes.
|
|
18
|
-
* @returns Plain text with all ANSI color/style sequences removed.
|
|
19
|
-
*/
|
|
20
|
-
export function stripAnsi(str) {
|
|
21
|
-
return str.replace(ANSI_RE, '');
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Compute the terminal display width of a string.
|
|
25
|
-
*
|
|
26
|
-
* Grapheme-cluster aware: handles emoji, CJK (2 columns), ZWJ sequences,
|
|
27
|
-
* skin tones, flag pairs, and combining marks correctly.
|
|
28
|
-
*
|
|
29
|
-
* @param str - Input string (may contain ANSI escapes).
|
|
30
|
-
* @returns Display width in terminal columns.
|
|
31
|
-
*/
|
|
32
|
-
export function visibleLength(str) {
|
|
33
|
-
return graphemeWidth(str);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Clip a string to a maximum visible width, preserving ANSI escapes.
|
|
37
|
-
* Grapheme-cluster aware: won't split multi-codepoint sequences.
|
|
38
|
-
* Appends a reset sequence if the string was clipped mid-style.
|
|
39
|
-
*
|
|
40
|
-
* Re-exported from `@flyingrobots/bijou` core for backward compatibility.
|
|
41
|
-
*
|
|
42
|
-
* @param str - Input string (may contain ANSI escapes).
|
|
43
|
-
* @param maxWidth - Maximum visible width in terminal columns.
|
|
44
|
-
* @returns Clipped string, at most `maxWidth` columns wide.
|
|
45
|
-
*/
|
|
46
|
-
export const clipToWidth = coreClipToWidth;
|
|
47
|
-
/**
|
|
48
|
-
* Extract a visible-column substring from an ANSI-styled string.
|
|
49
|
-
* Return characters between visible columns [startCol, endCol).
|
|
50
|
-
* Grapheme-cluster aware. Preserve any active ANSI styles seen before startCol.
|
|
51
|
-
*
|
|
52
|
-
* O(n): pre-segment stripped text once, then walk the original string
|
|
53
|
-
* with a grapheme pointer instead of re-segmenting per character.
|
|
54
|
-
*
|
|
55
|
-
* @param str - ANSI-styled input string.
|
|
56
|
-
* @param startCol - Start visible column (inclusive, 0-based).
|
|
57
|
-
* @param endCol - End visible column (exclusive).
|
|
58
|
-
* @returns Substring spanning the requested visible columns with ANSI styles preserved.
|
|
59
|
-
*/
|
|
60
|
-
export function sliceAnsi(str, startCol, endCol) {
|
|
61
|
-
const stripped = stripAnsi(str);
|
|
62
|
-
const graphemes = segmentGraphemes(stripped);
|
|
63
|
-
let visible = 0;
|
|
64
|
-
let inEscape = false;
|
|
65
|
-
let escBuf = '';
|
|
66
|
-
let activeAnsi = '';
|
|
67
|
-
let result = '';
|
|
68
|
-
let collecting = false;
|
|
69
|
-
let hasStyle = false;
|
|
70
|
-
let didBreakAtEnd = false;
|
|
71
|
-
let gi = 0;
|
|
72
|
-
let i = 0;
|
|
73
|
-
while (i < str.length) {
|
|
74
|
-
const ch = str[i];
|
|
75
|
-
if (ch === '\x1b') {
|
|
76
|
-
inEscape = true;
|
|
77
|
-
escBuf = ch;
|
|
78
|
-
i++;
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
if (inEscape) {
|
|
82
|
-
escBuf += ch;
|
|
83
|
-
if (ch === 'm') {
|
|
84
|
-
inEscape = false;
|
|
85
|
-
if (collecting) {
|
|
86
|
-
result += escBuf;
|
|
87
|
-
hasStyle = true;
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
activeAnsi += escBuf;
|
|
91
|
-
}
|
|
92
|
-
escBuf = '';
|
|
93
|
-
}
|
|
94
|
-
i++;
|
|
95
|
-
continue;
|
|
96
|
-
}
|
|
97
|
-
// Visible character — consume next pre-segmented grapheme
|
|
98
|
-
if (gi >= graphemes.length)
|
|
99
|
-
break;
|
|
100
|
-
const grapheme = graphemes[gi];
|
|
101
|
-
const gWidth = graphemeClusterWidth(grapheme);
|
|
102
|
-
if (visible >= endCol) {
|
|
103
|
-
if (hasStyle)
|
|
104
|
-
result += '\x1b[0m';
|
|
105
|
-
didBreakAtEnd = true;
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
if (visible + gWidth > startCol) {
|
|
109
|
-
if (!collecting) {
|
|
110
|
-
collecting = true;
|
|
111
|
-
result = activeAnsi;
|
|
112
|
-
if (activeAnsi.length > 0)
|
|
113
|
-
hasStyle = true;
|
|
114
|
-
}
|
|
115
|
-
result += grapheme;
|
|
116
|
-
}
|
|
117
|
-
visible += gWidth;
|
|
118
|
-
gi++;
|
|
119
|
-
i += grapheme.length;
|
|
120
|
-
}
|
|
121
|
-
if (collecting && hasStyle && !didBreakAtEnd)
|
|
122
|
-
result += '\x1b[0m';
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Extract all individual visible character cells from an ANSI-styled string.
|
|
127
|
-
* Each cell is returned as a fully-styled string (including resets).
|
|
128
|
-
*
|
|
129
|
-
* @param str - ANSI-styled input string.
|
|
130
|
-
* @param width - Number of cells to extract (pads with spaces if shorter).
|
|
131
|
-
* @returns Array of exactly `width` strings, each a single-column styled character.
|
|
132
|
-
*/
|
|
133
|
-
export function tokenizeAnsi(str, width) {
|
|
134
|
-
const stripped = stripAnsi(str);
|
|
135
|
-
const graphemes = segmentGraphemes(stripped);
|
|
136
|
-
const result = [];
|
|
137
|
-
let inEscape = false;
|
|
138
|
-
let escBuf = '';
|
|
139
|
-
let activeAnsi = '';
|
|
140
|
-
let gi = 0;
|
|
141
|
-
let i = 0;
|
|
142
|
-
let visibleCount = 0;
|
|
143
|
-
while (i < str.length && visibleCount < width) {
|
|
144
|
-
const ch = str[i];
|
|
145
|
-
if (ch === '\x1b') {
|
|
146
|
-
inEscape = true;
|
|
147
|
-
escBuf = ch;
|
|
148
|
-
i++;
|
|
149
|
-
continue;
|
|
150
|
-
}
|
|
151
|
-
if (inEscape) {
|
|
152
|
-
escBuf += ch;
|
|
153
|
-
if (ch === 'm') {
|
|
154
|
-
inEscape = false;
|
|
155
|
-
activeAnsi += escBuf;
|
|
156
|
-
escBuf = '';
|
|
157
|
-
}
|
|
158
|
-
i++;
|
|
159
|
-
continue;
|
|
160
|
-
}
|
|
161
|
-
if (gi >= graphemes.length)
|
|
162
|
-
break;
|
|
163
|
-
const grapheme = graphemes[gi];
|
|
164
|
-
const gWidth = graphemeClusterWidth(grapheme);
|
|
165
|
-
// If adding this grapheme exceeds width, stop
|
|
166
|
-
if (visibleCount + gWidth > width)
|
|
167
|
-
break;
|
|
168
|
-
const styledGrapheme = activeAnsi + grapheme + '\x1b[0m';
|
|
169
|
-
result.push(styledGrapheme);
|
|
170
|
-
if (gWidth === 2)
|
|
171
|
-
result.push(''); // placeholder for wide char
|
|
172
|
-
visibleCount += gWidth;
|
|
173
|
-
gi++;
|
|
174
|
-
i += grapheme.length;
|
|
175
|
-
}
|
|
176
|
-
// Pad with spaces
|
|
177
|
-
while (result.length < width) {
|
|
178
|
-
result.push(' ');
|
|
179
|
-
}
|
|
180
|
-
return result;
|
|
181
|
-
}
|
|
182
|
-
// ---------------------------------------------------------------------------
|
|
183
|
-
// Scrollbar rendering
|
|
184
|
-
// ---------------------------------------------------------------------------
|
|
185
|
-
/** Character used for the scrollbar track (unfilled portion). */
|
|
186
|
-
const SCROLLBAR_TRACK = '│';
|
|
187
|
-
/** Character used for the scrollbar thumb (filled portion). */
|
|
188
|
-
const SCROLLBAR_THUMB = '█';
|
|
189
|
-
const SCROLLBAR_TRACK_CELL = { char: SCROLLBAR_TRACK, empty: false };
|
|
190
|
-
const SCROLLBAR_THUMB_CELL = { char: SCROLLBAR_THUMB, empty: false };
|
|
191
|
-
/**
|
|
192
|
-
* Render a vertical scrollbar as an array of single-character strings.
|
|
193
|
-
*
|
|
194
|
-
* Thumb size is proportional to the visible fraction of content.
|
|
195
|
-
* Return an array of spaces when all content fits within the viewport.
|
|
196
|
-
*
|
|
197
|
-
* @param viewportHeight - Height of the viewport in rows.
|
|
198
|
-
* @param totalLines - Total number of content lines.
|
|
199
|
-
* @param scrollY - Current vertical scroll offset.
|
|
200
|
-
* @returns Array of length `viewportHeight`, each element a single scrollbar character.
|
|
201
|
-
*/
|
|
202
|
-
function renderScrollbar(viewportHeight, totalLines, scrollY, trackChar = SCROLLBAR_TRACK, thumbChar = SCROLLBAR_THUMB) {
|
|
203
|
-
if (totalLines <= viewportHeight) {
|
|
204
|
-
// No scrolling needed — empty gutter
|
|
205
|
-
return Array.from({ length: viewportHeight }).fill(' ');
|
|
206
|
-
}
|
|
207
|
-
// Thumb size: proportional to visible fraction, min 1 row
|
|
208
|
-
const thumbSize = Math.max(1, Math.round((viewportHeight / totalLines) * viewportHeight));
|
|
209
|
-
// Thumb position: proportional to scroll offset
|
|
210
|
-
const maxScroll = totalLines - viewportHeight;
|
|
211
|
-
const scrollFraction = maxScroll > 0 ? scrollY / maxScroll : 0;
|
|
212
|
-
const thumbStart = Math.round(scrollFraction * (viewportHeight - thumbSize));
|
|
213
|
-
const bar = [];
|
|
214
|
-
for (let i = 0; i < viewportHeight; i++) {
|
|
215
|
-
bar.push(i >= thumbStart && i < thumbStart + thumbSize ? thumbChar : trackChar);
|
|
216
|
-
}
|
|
217
|
-
return bar;
|
|
218
|
-
}
|
|
219
|
-
function resolveViewportContentWidth(width, needsScrollbar, scrollbarMode) {
|
|
220
|
-
if (!needsScrollbar)
|
|
221
|
-
return width;
|
|
222
|
-
return scrollbarMode === 'overlay' ? width : Math.max(0, width - 1);
|
|
223
|
-
}
|
|
224
|
-
function overlayScrollbarChar(line, width, railChar) {
|
|
225
|
-
if (width <= 0)
|
|
226
|
-
return '';
|
|
227
|
-
if (width === 1)
|
|
228
|
-
return railChar;
|
|
229
|
-
const prefixWidth = width - 1;
|
|
230
|
-
const prefix = sliceAnsi(line, 0, prefixWidth);
|
|
231
|
-
const prefixVisible = visibleLength(prefix);
|
|
232
|
-
return prefix + ' '.repeat(Math.max(0, prefixWidth - prefixVisible)) + railChar;
|
|
233
|
-
}
|
|
234
|
-
// ---------------------------------------------------------------------------
|
|
235
|
-
// Viewport rendering
|
|
236
|
-
// ---------------------------------------------------------------------------
|
|
237
|
-
/**
|
|
238
|
-
* Render a scrollable viewport into content.
|
|
239
|
-
*
|
|
240
|
-
* Return a string with exactly `height` lines, each at most `width`
|
|
241
|
-
* visible columns wide (including optional scrollbar when enabled).
|
|
242
|
-
*
|
|
243
|
-
* @param options - Viewport configuration including dimensions, content, and scroll offsets.
|
|
244
|
-
* @returns Rendered viewport string with lines joined by newlines.
|
|
245
|
-
*/
|
|
246
|
-
export function viewport(options) {
|
|
247
|
-
const { width, height, content, scrollY = 0, scrollX = 0, showScrollbar = true, scrollbarMode = 'gutter', scrollbarTrackChar = SCROLLBAR_TRACK, scrollbarThumbChar = SCROLLBAR_THUMB, } = options;
|
|
248
|
-
const allLines = content.split('\n');
|
|
249
|
-
const totalLines = allLines.length;
|
|
250
|
-
const maxScroll = Math.max(0, totalLines - height);
|
|
251
|
-
const clampedY = Math.max(0, Math.min(scrollY, maxScroll));
|
|
252
|
-
const needsScrollbar = showScrollbar && totalLines > height;
|
|
253
|
-
const contentWidth = resolveViewportContentWidth(width, needsScrollbar, scrollbarMode);
|
|
254
|
-
// Slice visible window
|
|
255
|
-
const visibleSlice = allLines.slice(clampedY, clampedY + height);
|
|
256
|
-
// Pad to fill viewport height if content is shorter
|
|
257
|
-
while (visibleSlice.length < height) {
|
|
258
|
-
visibleSlice.push('');
|
|
259
|
-
}
|
|
260
|
-
// Clip/pad each line to content width
|
|
261
|
-
const rendered = visibleSlice.map((line) => {
|
|
262
|
-
let sliced;
|
|
263
|
-
if (scrollX > 0) {
|
|
264
|
-
sliced = sliceAnsi(line, scrollX, scrollX + contentWidth);
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
const vis = visibleLength(line);
|
|
268
|
-
sliced = vis > contentWidth ? clipToWidth(line, contentWidth) : line;
|
|
269
|
-
}
|
|
270
|
-
const slicedVis = visibleLength(sliced);
|
|
271
|
-
return slicedVis < contentWidth ? sliced + ' '.repeat(contentWidth - slicedVis) : sliced;
|
|
272
|
-
});
|
|
273
|
-
// Append scrollbar
|
|
274
|
-
if (needsScrollbar) {
|
|
275
|
-
const bar = renderScrollbar(height, totalLines, clampedY, scrollbarTrackChar, scrollbarThumbChar);
|
|
276
|
-
return rendered.map((line, i) => (scrollbarMode === 'overlay'
|
|
277
|
-
? overlayScrollbarChar(line, width, bar[i])
|
|
278
|
-
: line + bar[i])).join('\n');
|
|
279
|
-
}
|
|
280
|
-
return rendered.join('\n');
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Render a scrollable viewport directly into a Surface.
|
|
284
|
-
*
|
|
285
|
-
* This is the canonical viewport primitive for rich TUI composition. It acts
|
|
286
|
-
* like a mask over text, an existing `Surface`, or a `LayoutNode` tree and
|
|
287
|
-
* reveals only the visible scroll window. String content still routes through
|
|
288
|
-
* {@link viewport} so the explicit text helper stays consistent.
|
|
289
|
-
*
|
|
290
|
-
* @param options - Viewport configuration including dimensions, content, and scroll offsets.
|
|
291
|
-
* @returns Surface sized exactly to the requested viewport rectangle.
|
|
292
|
-
*/
|
|
293
|
-
export function viewportSurface(options) {
|
|
294
|
-
const { width, height, content, scrollY = 0, scrollX = 0, showScrollbar = true, scrollbarMode = 'gutter', scrollbarTrackChar = SCROLLBAR_TRACK, scrollbarThumbChar = SCROLLBAR_THUMB, scrollbarTrackCell = SCROLLBAR_TRACK_CELL, scrollbarThumbCell = SCROLLBAR_THUMB_CELL, } = options;
|
|
295
|
-
const safeWidth = Math.max(0, Math.floor(width));
|
|
296
|
-
const safeHeight = Math.max(0, Math.floor(height));
|
|
297
|
-
if (typeof content === 'string') {
|
|
298
|
-
return parseAnsiToSurface(viewport({
|
|
299
|
-
width: safeWidth,
|
|
300
|
-
height: safeHeight,
|
|
301
|
-
content,
|
|
302
|
-
scrollY,
|
|
303
|
-
scrollX,
|
|
304
|
-
showScrollbar,
|
|
305
|
-
scrollbarMode,
|
|
306
|
-
scrollbarTrackChar,
|
|
307
|
-
scrollbarThumbChar,
|
|
308
|
-
}), safeWidth, safeHeight);
|
|
309
|
-
}
|
|
310
|
-
const normalizedContent = normalizeViewportContent(content);
|
|
311
|
-
const result = createSurface(safeWidth, safeHeight, { char: ' ', empty: false });
|
|
312
|
-
const totalLines = normalizedContent.height;
|
|
313
|
-
const maxScroll = Math.max(0, totalLines - safeHeight);
|
|
314
|
-
const clampedY = Math.max(0, Math.min(scrollY, maxScroll));
|
|
315
|
-
const needsScrollbar = showScrollbar && totalLines > safeHeight;
|
|
316
|
-
const contentWidth = resolveViewportContentWidth(safeWidth, needsScrollbar, scrollbarMode);
|
|
317
|
-
if (contentWidth > 0 && safeHeight > 0) {
|
|
318
|
-
result.blit(normalizedContent, 0, 0, Math.max(0, scrollX), clampedY, contentWidth, safeHeight);
|
|
319
|
-
}
|
|
320
|
-
if (needsScrollbar && safeWidth > 0) {
|
|
321
|
-
const bar = renderScrollbar(safeHeight, totalLines, clampedY, scrollbarTrackChar, scrollbarThumbChar);
|
|
322
|
-
const scrollbarX = safeWidth - 1;
|
|
323
|
-
for (let y = 0; y < safeHeight; y++) {
|
|
324
|
-
const cell = bar[y] === scrollbarThumbChar ? scrollbarThumbCell : scrollbarTrackCell;
|
|
325
|
-
result.set(scrollbarX, y, { ...cell, char: bar[y], empty: false });
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
return result;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Create initial scroll state for any viewport-maskable content.
|
|
332
|
-
*
|
|
333
|
-
* Use this when the viewport is wrapping an existing `Surface` or `LayoutNode`
|
|
334
|
-
* instead of plain text. String content can still use `createScrollState()`,
|
|
335
|
-
* but this helper accepts all viewport content types.
|
|
336
|
-
*/
|
|
337
|
-
export function createScrollStateForContent(content, viewportHeight, viewportWidth) {
|
|
338
|
-
if (typeof content === 'string') {
|
|
339
|
-
return createScrollState(content, viewportHeight, viewportWidth);
|
|
340
|
-
}
|
|
341
|
-
const normalized = normalizeViewportContent(content);
|
|
342
|
-
const visibleLines = Math.max(0, Math.floor(viewportHeight));
|
|
343
|
-
const safeWidth = viewportWidth == null ? undefined : Math.max(0, Math.floor(viewportWidth));
|
|
344
|
-
return {
|
|
345
|
-
y: 0,
|
|
346
|
-
maxY: Math.max(0, normalized.height - visibleLines),
|
|
347
|
-
x: 0,
|
|
348
|
-
maxX: safeWidth == null ? 0 : Math.max(0, normalized.width - safeWidth),
|
|
349
|
-
totalLines: normalized.height,
|
|
350
|
-
visibleLines,
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
// ---------------------------------------------------------------------------
|
|
354
|
-
// Scroll state management
|
|
355
|
-
// ---------------------------------------------------------------------------
|
|
356
|
-
/**
|
|
357
|
-
* Create initial scroll state for content within a viewport.
|
|
358
|
-
*
|
|
359
|
-
* @param content - Full content string (newline-delimited).
|
|
360
|
-
* @param viewportHeight - Visible height in rows.
|
|
361
|
-
* @param viewportWidth - Visible width in columns (used to compute maxX).
|
|
362
|
-
* @returns Initial scroll state positioned at top-left (y=0, x=0).
|
|
363
|
-
*/
|
|
364
|
-
export function createScrollState(content, viewportHeight, viewportWidth) {
|
|
365
|
-
const lines = content.split('\n');
|
|
366
|
-
const totalLines = lines.length;
|
|
367
|
-
let maxX = 0;
|
|
368
|
-
if (viewportWidth !== undefined) {
|
|
369
|
-
let widest = 0;
|
|
370
|
-
for (const line of lines) {
|
|
371
|
-
const w = visibleLength(line);
|
|
372
|
-
if (w > widest)
|
|
373
|
-
widest = w;
|
|
374
|
-
}
|
|
375
|
-
maxX = Math.max(0, widest - viewportWidth);
|
|
376
|
-
}
|
|
377
|
-
return {
|
|
378
|
-
y: 0,
|
|
379
|
-
maxY: Math.max(0, totalLines - viewportHeight),
|
|
380
|
-
x: 0,
|
|
381
|
-
maxX,
|
|
382
|
-
totalLines,
|
|
383
|
-
visibleLines: viewportHeight,
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
function normalizeViewportContent(content) {
|
|
387
|
-
if (isSurfaceContent(content))
|
|
388
|
-
return content;
|
|
389
|
-
return layoutNodeToSurface(content);
|
|
390
|
-
}
|
|
391
|
-
function isSurfaceContent(value) {
|
|
392
|
-
return typeof value === 'object' && value !== null && 'cells' in value;
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* Scroll vertically by a relative amount, clamping to valid range.
|
|
396
|
-
*
|
|
397
|
-
* @param state - Current scroll state.
|
|
398
|
-
* @param dy - Relative vertical offset (positive = down, negative = up).
|
|
399
|
-
* @returns New scroll state with updated y position.
|
|
400
|
-
*/
|
|
401
|
-
export function scrollBy(state, dy) {
|
|
402
|
-
const y = Math.max(0, Math.min(state.y + dy, state.maxY));
|
|
403
|
-
return { ...state, y };
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* Scroll vertically to an absolute position, clamping to valid range.
|
|
407
|
-
*
|
|
408
|
-
* @param state - Current scroll state.
|
|
409
|
-
* @param y - Absolute vertical offset (0-based line index).
|
|
410
|
-
* @returns New scroll state with updated y position.
|
|
411
|
-
*/
|
|
412
|
-
export function scrollTo(state, y) {
|
|
413
|
-
return { ...state, y: Math.max(0, Math.min(y, state.maxY)) };
|
|
414
|
-
}
|
|
415
|
-
/**
|
|
416
|
-
* Scroll horizontally by a relative amount, clamping to valid range.
|
|
417
|
-
*
|
|
418
|
-
* @param state - Current scroll state.
|
|
419
|
-
* @param dx - Relative horizontal offset (positive = right, negative = left).
|
|
420
|
-
* @returns New scroll state with updated x position.
|
|
421
|
-
*/
|
|
422
|
-
export function scrollByX(state, dx) {
|
|
423
|
-
return { ...state, x: Math.max(0, Math.min(state.x + dx, state.maxX)) };
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* Scroll horizontally to an absolute position, clamping to valid range.
|
|
427
|
-
*
|
|
428
|
-
* @param state - Current scroll state.
|
|
429
|
-
* @param x - Absolute horizontal offset (0-based column index).
|
|
430
|
-
* @returns New scroll state with updated x position.
|
|
431
|
-
*/
|
|
432
|
-
export function scrollToX(state, x) {
|
|
433
|
-
return { ...state, x: Math.max(0, Math.min(x, state.maxX)) };
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* Scroll to the top (y = 0).
|
|
437
|
-
*
|
|
438
|
-
* @param state - Current scroll state.
|
|
439
|
-
* @returns New scroll state positioned at the top.
|
|
440
|
-
*/
|
|
441
|
-
export function scrollToTop(state) {
|
|
442
|
-
return { ...state, y: 0 };
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Scroll to the bottom (y = maxY).
|
|
446
|
-
*
|
|
447
|
-
* @param state - Current scroll state.
|
|
448
|
-
* @returns New scroll state positioned at the bottom.
|
|
449
|
-
*/
|
|
450
|
-
export function scrollToBottom(state) {
|
|
451
|
-
return { ...state, y: state.maxY };
|
|
452
|
-
}
|
|
453
|
-
/**
|
|
454
|
-
* Page down (scroll by one viewport height).
|
|
455
|
-
*
|
|
456
|
-
* @param state - Current scroll state.
|
|
457
|
-
* @returns New scroll state scrolled down by `visibleLines` rows.
|
|
458
|
-
*/
|
|
459
|
-
export function pageDown(state) {
|
|
460
|
-
return scrollBy(state, state.visibleLines);
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* Page up (scroll by one viewport height).
|
|
464
|
-
*
|
|
465
|
-
* @param state - Current scroll state.
|
|
466
|
-
* @returns New scroll state scrolled up by `visibleLines` rows.
|
|
467
|
-
*/
|
|
468
|
-
export function pageUp(state) {
|
|
469
|
-
return scrollBy(state, -state.visibleLines);
|
|
470
|
-
}
|
|
1
|
+
export { clipToWidth, stripAnsi, visibleLength } from './viewport.part01.js';
|
|
2
|
+
export { sliceAnsi } from './viewport.part02.js';
|
|
3
|
+
export { tokenizeAnsi } from './viewport.part03.js';
|
|
4
|
+
export { viewport } from './viewport.part04.js';
|
|
5
|
+
export { createScrollStateForContent, viewportSurface } from './viewport.part05.js';
|
|
6
|
+
export { createScrollState, pageDown, pageUp, scrollBy, scrollByX, scrollTo, scrollToBottom, scrollToTop, scrollToX } from './viewport.part06.js';
|
|
471
7
|
//# sourceMappingURL=viewport.js.map
|
package/dist/viewport.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport.js","sourceRoot":"","sources":["../src/viewport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,IAAI,eAAe,GAI/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAkE/D,8EAA8E;AAC9E,eAAe;AACf,8EAA8E;AAE9E,wDAAwD;AACxD,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAElC;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,C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ipToWidth as coreClipToWidth } from '@flyingrobots/bijou';
|
|
2
|
+
import type { Cell, LayoutNode, Surface } from '@flyingrobots/bijou';
|
|
3
|
+
export type ScrollbarMode = 'gutter' | 'overlay';
|
|
4
|
+
export interface ViewportOptions {
|
|
5
|
+
/** Visible width in columns. Content lines longer than this are clipped. */
|
|
6
|
+
readonly width: number;
|
|
7
|
+
/** Visible height in rows. */
|
|
8
|
+
readonly height: number;
|
|
9
|
+
/** Full content string (may be taller/wider than the viewport). */
|
|
10
|
+
readonly content: string;
|
|
11
|
+
/** Vertical scroll offset (0-based line index). Default: 0. */
|
|
12
|
+
readonly scrollY?: number;
|
|
13
|
+
/** Horizontal scroll offset (0-based column index). Default: 0. */
|
|
14
|
+
readonly scrollX?: number;
|
|
15
|
+
/** Show a scrollbar track on the right edge. Default: true. */
|
|
16
|
+
readonly showScrollbar?: boolean;
|
|
17
|
+
/** Reserve a gutter column or overlay the rightmost content cell. Default: `'gutter'`. */
|
|
18
|
+
readonly scrollbarMode?: ScrollbarMode;
|
|
19
|
+
/** Character used for the scrollbar track in string rendering. Default: `'│'`. */
|
|
20
|
+
readonly scrollbarTrackChar?: string;
|
|
21
|
+
/** Character used for the scrollbar thumb in string rendering. Default: `'█'`. */
|
|
22
|
+
readonly scrollbarThumbChar?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ViewportSurfaceOptions extends Omit<ViewportOptions, 'content'> {
|
|
25
|
+
/** Full content payload, either plain/ANSI text, a pre-rendered surface, or a layout tree. */
|
|
26
|
+
readonly content: ViewportContent;
|
|
27
|
+
/** Cell used for the scrollbar track in surface rendering. */
|
|
28
|
+
readonly scrollbarTrackCell?: Cell;
|
|
29
|
+
/** Cell used for the scrollbar thumb in surface rendering. */
|
|
30
|
+
readonly scrollbarThumbCell?: Cell;
|
|
31
|
+
}
|
|
32
|
+
export type ViewportContent = string | Surface | LayoutNode;
|
|
33
|
+
export interface ScrollState {
|
|
34
|
+
/** Current vertical scroll offset. */
|
|
35
|
+
readonly y: number;
|
|
36
|
+
/** Maximum vertical scroll offset. */
|
|
37
|
+
readonly maxY: number;
|
|
38
|
+
/** Current horizontal scroll offset. */
|
|
39
|
+
readonly x: number;
|
|
40
|
+
/** Maximum horizontal scroll offset. */
|
|
41
|
+
readonly maxX: number;
|
|
42
|
+
/** Total number of content lines. */
|
|
43
|
+
readonly totalLines: number;
|
|
44
|
+
/** Number of visible lines (viewport height). */
|
|
45
|
+
readonly visibleLines: number;
|
|
46
|
+
}
|
|
47
|
+
export declare const ANSI_RE: RegExp;
|
|
48
|
+
export declare function stripAnsi(str: string): string;
|
|
49
|
+
export declare function visibleLength(str: string): number;
|
|
50
|
+
export declare const clipToWidth: typeof coreClipToWidth;
|
|
51
|
+
//# sourceMappingURL=viewport.part01.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.part01.d.ts","sourceRoot":"","sources":["../src/viewport.part01.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAiB,MAAM,qBAAqB,CAAC;AAEpF,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;AACjD,MAAM,WAAW,eAAe;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,8BAA8B;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,+DAA+D;IAC/D,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,0FAA0F;IAC1F,QAAQ,CAAC,aAAa,C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'g');
|
|
3
|
+
export function stripAnsi(str) {
|
|
4
|
+
return str.replace(ANSI_RE, '');
|
|
5
|
+
}
|
|
6
|
+
export function visibleLength(str) {
|
|
7
|
+
return graphemeWidth(str);
|
|
8
|
+
}
|
|
9
|
+
export const clipToWidth = coreClipToWidth;
|
|
10
|
+
//# sourceMappingURL=viewport.part01.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.part01.js","sourceRoot":"","sources":["../src/viewport.part01.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA+CpF,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;AAChF,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AACD,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AACD,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.part02.d.ts","sourceRoot":"","sources":["../src/viewport.part02.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAsE/E"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { graphemeClusterWidth, segmentGraphemes } from '@flyingrobots/bijou';
|
|
2
|
+
import { stripAnsi } from './viewport.part01.js';
|
|
3
|
+
export function sliceAnsi(str, startCol, endCol) {
|
|
4
|
+
const stripped = stripAnsi(str);
|
|
5
|
+
const graphemes = segmentGraphemes(stripped);
|
|
6
|
+
let visible = 0;
|
|
7
|
+
let inEscape = false;
|
|
8
|
+
let escBuf = '';
|
|
9
|
+
let activeAnsi = '';
|
|
10
|
+
let result = '';
|
|
11
|
+
let collecting = false;
|
|
12
|
+
let hasStyle = false;
|
|
13
|
+
let didBreakAtEnd = false;
|
|
14
|
+
let gi = 0;
|
|
15
|
+
let i = 0;
|
|
16
|
+
while (i < str.length) {
|
|
17
|
+
const ch = str.charAt(i);
|
|
18
|
+
if (ch === '\x1b') {
|
|
19
|
+
inEscape = true;
|
|
20
|
+
escBuf = ch;
|
|
21
|
+
i++;
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
if (inEscape) {
|
|
25
|
+
escBuf += ch;
|
|
26
|
+
if (ch === 'm') {
|
|
27
|
+
inEscape = false;
|
|
28
|
+
if (collecting) {
|
|
29
|
+
result += escBuf;
|
|
30
|
+
hasStyle = true;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
activeAnsi += escBuf;
|
|
34
|
+
}
|
|
35
|
+
escBuf = '';
|
|
36
|
+
}
|
|
37
|
+
i++;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if (gi >= graphemes.length)
|
|
41
|
+
break;
|
|
42
|
+
const grapheme = graphemes[gi];
|
|
43
|
+
if (grapheme === undefined)
|
|
44
|
+
break;
|
|
45
|
+
const gWidth = graphemeClusterWidth(grapheme);
|
|
46
|
+
if (visible >= endCol) {
|
|
47
|
+
if (hasStyle)
|
|
48
|
+
result += '\x1b[0m';
|
|
49
|
+
didBreakAtEnd = true;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
if (visible + gWidth > startCol) {
|
|
53
|
+
if (!collecting) {
|
|
54
|
+
collecting = true;
|
|
55
|
+
result = activeAnsi;
|
|
56
|
+
if (activeAnsi.length > 0)
|
|
57
|
+
hasStyle = true;
|
|
58
|
+
}
|
|
59
|
+
result += grapheme;
|
|
60
|
+
}
|
|
61
|
+
visible += gWidth;
|
|
62
|
+
gi++;
|
|
63
|
+
i += grapheme.length;
|
|
64
|
+
}
|
|
65
|
+
if (collecting && hasStyle && !didBreakAtEnd)
|
|
66
|
+
result += '\x1b[0m';
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=viewport.part02.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.part02.js","sourceRoot":"","sources":["../src/viewport.part02.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,MAAM,UAAU,SAAS,CAAC,GAAW,EAAE,QAAgB,EAAE,MAAc;IACrE,MAAM,QAAQ,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,SAAS,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAE7C,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,aAAa,GAAG,KAAK,CAAC;IAC1B,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,OAAO,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC;QACtB,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAEzB,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;YAClB,QAAQ,GAAG,IAAI,CAAC;YAChB,MAAM,GAAG,EAAE,CAAC;YACZ,CAAC,EAAE,CAAC;YACJ,SAAS;QACX,CAAC;QAED,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,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Cell } from '@flyingrobots/bijou';
|
|
2
|
+
import type { ScrollbarMode } from './viewport.part01.js';
|
|
3
|
+
export declare function tokenizeAnsi(str: string, width: number): string[];
|
|
4
|
+
export declare const SCROLLBAR_TRACK = "\u2502";
|
|
5
|
+
export declare const SCROLLBAR_THUMB = "\u2588";
|
|
6
|
+
export declare const SCROLLBAR_TRACK_CELL: Cell;
|
|
7
|
+
export declare const SCROLLBAR_THUMB_CELL: Cell;
|
|
8
|
+
export declare function renderScrollbar(viewportHeight: number, totalLines: number, scrollY: number, trackChar?: string, thumbChar?: string): string[];
|
|
9
|
+
export declare function resolveViewportContentWidth(width: number, needsScrollbar: boolean, scrollbarMode: ScrollbarMode): number;
|
|
10
|
+
//# sourceMappingURL=viewport.part03.d.ts.map
|