@omerdlw/base-framework 3.0.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +75 -0
- package/README.md +33 -25
- package/dist/ambient/index.d.ts +1 -0
- package/dist/ambient/index.js +14 -0
- package/dist/ambient/server/index.d.ts +1 -0
- package/dist/ambient/server/index.js +238 -0
- package/dist/ambient/server/index.js.map +1 -0
- package/dist/ambient/worker/index.d.ts +1 -0
- package/dist/ambient/worker/index.js +143 -0
- package/dist/ambient/worker/index.js.map +1 -0
- package/dist/background/index.d.ts +1 -0
- package/dist/background/index.js +13 -0
- package/dist/chunk-2223J34C.js +850 -0
- package/dist/chunk-2223J34C.js.map +1 -0
- package/dist/chunk-2LGI33JP.js +832 -0
- package/dist/chunk-2LGI33JP.js.map +1 -0
- package/dist/chunk-37OBXNEO.js +116 -0
- package/dist/chunk-37OBXNEO.js.map +1 -0
- package/dist/chunk-4OQGXZIH.js +1435 -0
- package/dist/chunk-4OQGXZIH.js.map +1 -0
- package/dist/chunk-5H6FZW3N.js +535 -0
- package/dist/chunk-5H6FZW3N.js.map +1 -0
- package/dist/chunk-7RSRDKYE.js +22 -0
- package/dist/chunk-7RSRDKYE.js.map +1 -0
- package/dist/chunk-AYUEZPAN.js +15762 -0
- package/dist/chunk-AYUEZPAN.js.map +1 -0
- package/dist/chunk-BCFJSPTI.js +261 -0
- package/dist/chunk-BCFJSPTI.js.map +1 -0
- package/dist/chunk-BMFHS3GV.js +118 -0
- package/dist/chunk-BMFHS3GV.js.map +1 -0
- package/dist/chunk-CRKJAACG.js +81 -0
- package/dist/chunk-CRKJAACG.js.map +1 -0
- package/dist/chunk-CT4UILO2.js +537 -0
- package/dist/chunk-CT4UILO2.js.map +1 -0
- package/dist/chunk-ESD5EQ5H.js +178 -0
- package/dist/chunk-ESD5EQ5H.js.map +1 -0
- package/dist/chunk-GCHQ5OC4.js +460 -0
- package/dist/chunk-GCHQ5OC4.js.map +1 -0
- package/dist/chunk-GT4COZI7.js +110 -0
- package/dist/chunk-GT4COZI7.js.map +1 -0
- package/dist/chunk-H6HRU3XN.js +567 -0
- package/dist/chunk-H6HRU3XN.js.map +1 -0
- package/dist/chunk-J3VTDBC6.js +14 -0
- package/dist/chunk-J3VTDBC6.js.map +1 -0
- package/dist/chunk-LTO77WSO.js +140 -0
- package/dist/chunk-LTO77WSO.js.map +1 -0
- package/dist/chunk-MCYHKFZL.js +17 -0
- package/dist/chunk-MCYHKFZL.js.map +1 -0
- package/dist/chunk-NHOJWICA.js +2367 -0
- package/dist/chunk-NHOJWICA.js.map +1 -0
- package/dist/chunk-QMFV53PP.js +1766 -0
- package/dist/chunk-QMFV53PP.js.map +1 -0
- package/dist/chunk-RDYYP36I.js +27 -0
- package/dist/chunk-RDYYP36I.js.map +1 -0
- package/dist/chunk-RF2YGILF.js +656 -0
- package/dist/chunk-RF2YGILF.js.map +1 -0
- package/dist/chunk-RTCJ35UC.js +825 -0
- package/dist/chunk-RTCJ35UC.js.map +1 -0
- package/dist/chunk-TUUGWQY5.js +3488 -0
- package/dist/chunk-TUUGWQY5.js.map +1 -0
- package/dist/chunk-WXEOP6Z4.js +577 -0
- package/dist/chunk-WXEOP6Z4.js.map +1 -0
- package/dist/chunk-WYVA6AN5.js +590 -0
- package/dist/chunk-WYVA6AN5.js.map +1 -0
- package/dist/chunk-Y2Q74PJP.js +537 -0
- package/dist/chunk-Y2Q74PJP.js.map +1 -0
- package/dist/chunk-ZFTQY7OF.js +139 -0
- package/dist/chunk-ZFTQY7OF.js.map +1 -0
- package/dist/chunk-ZSNP26VU.js +493 -0
- package/dist/chunk-ZSNP26VU.js.map +1 -0
- package/dist/context-menu/index.d.ts +1 -0
- package/dist/context-menu/index.js +19 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +10 -0
- package/dist/core/error/boundary.d.ts +27 -0
- package/dist/core/error/boundary.d.ts.map +1 -0
- package/dist/core/error/constants.d.ts +33 -0
- package/dist/core/error/constants.d.ts.map +1 -0
- package/dist/core/error/index.d.ts +9 -0
- package/dist/core/error/index.d.ts.map +1 -0
- package/dist/core/error/listener.d.ts +6 -0
- package/dist/core/error/listener.d.ts.map +1 -0
- package/dist/core/error/reporter.d.ts +49 -0
- package/dist/core/error/reporter.d.ts.map +1 -0
- package/dist/core/error/theme.d.ts +10 -0
- package/dist/core/error/theme.d.ts.map +1 -0
- package/dist/core/error/types.d.ts +128 -0
- package/dist/core/error/types.d.ts.map +1 -0
- package/dist/core/error/utils.d.ts +55 -0
- package/dist/core/error/utils.d.ts.map +1 -0
- package/dist/core/kernel/adapters.d.ts +9 -0
- package/dist/core/kernel/adapters.d.ts.map +1 -0
- package/dist/core/kernel/compose.d.ts +21 -0
- package/dist/core/kernel/compose.d.ts.map +1 -0
- package/dist/core/kernel/constants.d.ts +42 -0
- package/dist/core/kernel/constants.d.ts.map +1 -0
- package/dist/core/kernel/handlers.d.ts +7 -0
- package/dist/core/kernel/handlers.d.ts.map +1 -0
- package/dist/core/kernel/hooks.d.ts +13 -0
- package/dist/core/kernel/hooks.d.ts.map +1 -0
- package/dist/core/kernel/index.d.ts +15 -0
- package/dist/core/kernel/index.d.ts.map +1 -0
- package/dist/core/kernel/installed.d.ts +28 -0
- package/dist/core/kernel/installed.d.ts.map +1 -0
- package/dist/core/kernel/module.d.ts +57 -0
- package/dist/core/kernel/module.d.ts.map +1 -0
- package/dist/core/kernel/operations-records.d.ts +25 -0
- package/dist/core/kernel/operations-records.d.ts.map +1 -0
- package/dist/core/kernel/operations-resolve.d.ts +5 -0
- package/dist/core/kernel/operations-resolve.d.ts.map +1 -0
- package/dist/core/kernel/operations.d.ts +23 -0
- package/dist/core/kernel/operations.d.ts.map +1 -0
- package/dist/core/kernel/page-controller.d.ts +20 -0
- package/dist/core/kernel/page-controller.d.ts.map +1 -0
- package/dist/core/kernel/provider.d.ts +29 -0
- package/dist/core/kernel/provider.d.ts.map +1 -0
- package/dist/core/kernel/runtime.d.ts.map +1 -0
- package/dist/core/kernel/schema.d.ts +13 -0
- package/dist/core/kernel/schema.d.ts.map +1 -0
- package/dist/core/kernel/stabilize.d.ts +13 -0
- package/dist/core/kernel/stabilize.d.ts.map +1 -0
- package/dist/core/kernel/store-batch.d.ts +17 -0
- package/dist/core/kernel/store-batch.d.ts.map +1 -0
- package/dist/core/kernel/store-entries.d.ts +6 -0
- package/dist/core/kernel/store-entries.d.ts.map +1 -0
- package/dist/core/kernel/store-handles.d.ts +4 -0
- package/dist/core/kernel/store-handles.d.ts.map +1 -0
- package/dist/core/kernel/store-registration.d.ts +14 -0
- package/dist/core/kernel/store-registration.d.ts.map +1 -0
- package/dist/core/kernel/store-snapshots.d.ts +14 -0
- package/dist/core/kernel/store-snapshots.d.ts.map +1 -0
- package/dist/core/kernel/store-subscriptions.d.ts +16 -0
- package/dist/core/kernel/store-subscriptions.d.ts.map +1 -0
- package/dist/core/kernel/store.d.ts +8 -0
- package/dist/core/kernel/store.d.ts.map +1 -0
- package/dist/core/kernel/types-modules.d.ts +82 -0
- package/dist/core/kernel/types-modules.d.ts.map +1 -0
- package/dist/core/kernel/types-page.d.ts +67 -0
- package/dist/core/kernel/types-page.d.ts.map +1 -0
- package/dist/core/kernel/types-store.d.ts +71 -0
- package/dist/core/kernel/types-store.d.ts.map +1 -0
- package/dist/core/kernel/types.d.ts +169 -0
- package/dist/core/kernel/types.d.ts.map +1 -0
- package/dist/core/kernel/utils.d.ts +21 -0
- package/dist/core/kernel/utils.d.ts.map +1 -0
- package/dist/core/navigation/constants.d.ts +48 -0
- package/dist/core/navigation/constants.d.ts.map +1 -0
- package/dist/core/navigation/navigator-defaults.d.ts +4 -0
- package/dist/core/navigation/navigator-defaults.d.ts.map +1 -0
- package/dist/core/navigation/navigator-holds.d.ts +8 -0
- package/dist/core/navigation/navigator-holds.d.ts.map +1 -0
- package/dist/core/navigation/navigator-patience.d.ts +15 -0
- package/dist/core/navigation/navigator-patience.d.ts.map +1 -0
- package/dist/core/navigation/navigator-payload.d.ts +6 -0
- package/dist/core/navigation/navigator-payload.d.ts.map +1 -0
- package/dist/core/navigation/navigator-prefetch.d.ts +13 -0
- package/dist/core/navigation/navigator-prefetch.d.ts.map +1 -0
- package/dist/core/navigation/navigator.d.ts +7 -0
- package/dist/core/navigation/navigator.d.ts.map +1 -0
- package/dist/core/navigation/settings.d.ts +12 -0
- package/dist/core/navigation/settings.d.ts.map +1 -0
- package/dist/core/navigation/state.d.ts +26 -0
- package/dist/core/navigation/state.d.ts.map +1 -0
- package/dist/core/navigation/types.d.ts +194 -0
- package/dist/core/navigation/types.d.ts.map +1 -0
- package/dist/core/navigation/utils.d.ts +18 -0
- package/dist/core/navigation/utils.d.ts.map +1 -0
- package/dist/core/provider/index.d.ts +31 -0
- package/dist/core/provider/index.d.ts.map +1 -0
- package/dist/dock/index.d.ts +1 -0
- package/dist/dock/index.js +18 -0
- package/dist/error/index.d.ts +1 -9
- package/dist/error/index.js +8 -5
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +83 -0
- package/dist/events/index.js.map +1 -0
- package/dist/foundation/events/index.d.ts +67 -0
- package/dist/foundation/events/index.d.ts.map +1 -0
- package/dist/foundation/recipes/anatomy.d.ts +139 -0
- package/dist/foundation/recipes/anatomy.d.ts.map +1 -0
- package/dist/foundation/recipes/cn.d.ts +17 -0
- package/dist/foundation/recipes/cn.d.ts.map +1 -0
- package/dist/foundation/recipes/define.d.ts +134 -0
- package/dist/foundation/recipes/define.d.ts.map +1 -0
- package/dist/foundation/recipes/index.d.ts +11 -0
- package/dist/foundation/recipes/index.d.ts.map +1 -0
- package/dist/foundation/recipes/recipe.d.ts +97 -0
- package/dist/foundation/recipes/recipe.d.ts.map +1 -0
- package/dist/foundation/recipes/split.d.ts +10 -0
- package/dist/foundation/recipes/split.d.ts.map +1 -0
- package/dist/foundation/result/index.d.ts +98 -0
- package/dist/foundation/result/index.d.ts.map +1 -0
- package/dist/foundation/utils/dom.d.ts +19 -0
- package/dist/foundation/utils/dom.d.ts.map +1 -0
- package/dist/foundation/utils/index.d.ts +17 -0
- package/dist/foundation/utils/index.d.ts.map +1 -0
- package/dist/foundation/utils/number.d.ts +9 -0
- package/dist/foundation/utils/number.d.ts.map +1 -0
- package/dist/foundation/utils/object.d.ts +17 -0
- package/dist/foundation/utils/object.d.ts.map +1 -0
- package/dist/foundation/utils/report.d.ts +18 -0
- package/dist/foundation/utils/report.d.ts.map +1 -0
- package/dist/foundation/utils/scheduler.d.ts +52 -0
- package/dist/foundation/utils/scheduler.d.ts.map +1 -0
- package/dist/foundation/utils/store.d.ts +21 -0
- package/dist/foundation/utils/store.d.ts.map +1 -0
- package/dist/foundation/utils/string.d.ts +18 -0
- package/dist/foundation/utils/string.d.ts.map +1 -0
- package/dist/foundation/utils/tempo.d.ts +61 -0
- package/dist/foundation/utils/tempo.d.ts.map +1 -0
- package/dist/foundation/utils/timing.d.ts +13 -0
- package/dist/foundation/utils/timing.d.ts.map +1 -0
- package/dist/foundation/utils/transform.d.ts +17 -0
- package/dist/foundation/utils/transform.d.ts.map +1 -0
- package/dist/foundation/utils/user-message.d.ts +32 -0
- package/dist/foundation/utils/user-message.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -10
- package/dist/hooks/index.js +3 -1
- package/dist/index.d.ts +8 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -20
- package/dist/kernel/index.d.ts +1 -15
- package/dist/kernel/index.js +5 -2
- package/dist/loading/index.d.ts +1 -0
- package/dist/loading/index.js +12 -0
- package/dist/media/index.d.ts +1 -0
- package/dist/media/index.js +9 -0
- package/dist/modal/index.d.ts +1 -0
- package/dist/modal/index.js +310 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/modules/ambient/analyze-bounds.d.ts +12 -0
- package/dist/modules/ambient/analyze-bounds.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-clusters.d.ts +14 -0
- package/dist/modules/ambient/analyze-clusters.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-measures.d.ts +22 -0
- package/dist/modules/ambient/analyze-measures.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-swatches.d.ts +16 -0
- package/dist/modules/ambient/analyze-swatches.d.ts.map +1 -0
- package/dist/modules/ambient/analyze.d.ts +9 -49
- package/dist/modules/ambient/analyze.d.ts.map +1 -1
- package/dist/modules/ambient/constants.d.ts +4 -1
- package/dist/modules/ambient/constants.d.ts.map +1 -1
- package/dist/modules/ambient/context.d.ts +6 -0
- package/dist/modules/ambient/context.d.ts.map +1 -1
- package/dist/modules/ambient/dom.d.ts +23 -12
- package/dist/modules/ambient/dom.d.ts.map +1 -1
- package/dist/modules/ambient/extractor.d.ts +6 -4
- package/dist/modules/ambient/extractor.d.ts.map +1 -1
- package/dist/modules/ambient/hooks.d.ts +12 -0
- package/dist/modules/ambient/hooks.d.ts.map +1 -1
- package/dist/modules/ambient/index.d.ts +2 -2
- package/dist/modules/ambient/index.d.ts.map +1 -1
- package/dist/modules/ambient/module.d.ts +12 -1
- package/dist/modules/ambient/module.d.ts.map +1 -1
- package/dist/modules/ambient/oklab.d.ts +18 -13
- package/dist/modules/ambient/oklab.d.ts.map +1 -1
- package/dist/modules/ambient/pipeline.d.ts +0 -7
- package/dist/modules/ambient/pipeline.d.ts.map +1 -1
- package/dist/modules/ambient/quantize.d.ts +2 -9
- package/dist/modules/ambient/quantize.d.ts.map +1 -1
- package/dist/modules/ambient/server/address.d.ts +8 -3
- package/dist/modules/ambient/server/address.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.d.ts +20 -23
- package/dist/modules/ambient/server/index.d.ts.map +1 -1
- package/dist/modules/ambient/settings.d.ts +23 -3
- package/dist/modules/ambient/settings.d.ts.map +1 -1
- package/dist/modules/ambient/types.d.ts +98 -36
- package/dist/modules/ambient/types.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.d.ts +16 -1
- package/dist/modules/ambient/worker/index.d.ts.map +1 -1
- package/dist/modules/background/components/background-gradients.d.ts +8 -0
- package/dist/modules/background/components/background-gradients.d.ts.map +1 -0
- package/dist/modules/background/components/edge-gradient.d.ts +9 -0
- package/dist/modules/background/components/edge-gradient.d.ts.map +1 -0
- package/dist/modules/background/components/native-video.d.ts +4 -0
- package/dist/modules/background/components/native-video.d.ts.map +1 -0
- package/dist/modules/background/components/noise-overlay.d.ts +11 -0
- package/dist/modules/background/components/noise-overlay.d.ts.map +1 -0
- package/dist/modules/background/components/overlay.d.ts +6 -0
- package/dist/modules/background/components/overlay.d.ts.map +1 -0
- package/dist/modules/background/components/solid-overlay.d.ts +10 -0
- package/dist/modules/background/components/solid-overlay.d.ts.map +1 -0
- package/dist/modules/background/constants.d.ts +14 -1
- package/dist/modules/background/constants.d.ts.map +1 -1
- package/dist/modules/background/context.d.ts +7 -0
- package/dist/modules/background/context.d.ts.map +1 -1
- package/dist/modules/background/hooks/use-background-media-source.d.ts +4 -0
- package/dist/modules/background/hooks/use-background-media-source.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts +15 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts +929 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts +22 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts.map +1 -0
- package/dist/modules/background/hooks.d.ts +20 -1
- package/dist/modules/background/hooks.d.ts.map +1 -1
- package/dist/modules/background/index.d.ts +7 -7
- package/dist/modules/background/index.d.ts.map +1 -1
- package/dist/modules/background/lib/theme.d.ts +4 -0
- package/dist/modules/background/lib/theme.d.ts.map +1 -0
- package/dist/modules/background/model/override.d.ts +14 -0
- package/dist/modules/background/model/override.d.ts.map +1 -0
- package/dist/modules/background/model/playback.d.ts +25 -0
- package/dist/modules/background/model/playback.d.ts.map +1 -0
- package/dist/modules/background/model/state.d.ts +31 -0
- package/dist/modules/background/model/state.d.ts.map +1 -0
- package/dist/modules/background/model/video-frame.d.ts +31 -0
- package/dist/modules/background/model/video-frame.d.ts.map +1 -0
- package/dist/modules/background/model/visual.d.ts +932 -0
- package/dist/modules/background/model/visual.d.ts.map +1 -0
- package/dist/modules/background/module.d.ts +11 -0
- package/dist/modules/background/module.d.ts.map +1 -1
- package/dist/modules/background/motion.d.ts.map +1 -1
- package/dist/modules/background/types.d.ts +66 -10
- package/dist/modules/background/types.d.ts.map +1 -1
- package/dist/modules/background/youtube/components/player.d.ts +7 -0
- package/dist/modules/background/youtube/components/player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts +27 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +20 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +8 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts +16 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/audio.d.ts +17 -0
- package/dist/modules/background/youtube/lib/audio.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts +29 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/parse.d.ts +36 -0
- package/dist/modules/background/youtube/lib/parse.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/timing.d.ts +11 -0
- package/dist/modules/background/youtube/lib/timing.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts +53 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts.map +1 -0
- package/dist/modules/context-menu/constants.d.ts +30 -1
- package/dist/modules/context-menu/constants.d.ts.map +1 -1
- package/dist/modules/context-menu/context.d.ts +10 -2
- package/dist/modules/context-menu/context.d.ts.map +1 -1
- package/dist/modules/context-menu/dom.d.ts +13 -0
- package/dist/modules/context-menu/dom.d.ts.map +1 -1
- package/dist/modules/context-menu/hooks.d.ts +32 -5
- package/dist/modules/context-menu/hooks.d.ts.map +1 -1
- package/dist/modules/context-menu/index.d.ts +1 -1
- package/dist/modules/context-menu/index.d.ts.map +1 -1
- package/dist/modules/context-menu/items.d.ts +25 -0
- package/dist/modules/context-menu/items.d.ts.map +1 -1
- package/dist/modules/context-menu/module.d.ts +6 -0
- package/dist/modules/context-menu/module.d.ts.map +1 -1
- package/dist/modules/context-menu/motion.d.ts.map +1 -1
- package/dist/modules/context-menu/overlay.d.ts +30 -8
- package/dist/modules/context-menu/overlay.d.ts.map +1 -1
- package/dist/modules/context-menu/resolver.d.ts +8 -0
- package/dist/modules/context-menu/resolver.d.ts.map +1 -1
- package/dist/modules/context-menu/state.d.ts +9 -0
- package/dist/modules/context-menu/state.d.ts.map +1 -1
- package/dist/modules/context-menu/types.d.ts +85 -9
- package/dist/modules/context-menu/types.d.ts.map +1 -1
- package/dist/modules/controls/constants.d.ts +18 -1
- package/dist/modules/controls/constants.d.ts.map +1 -1
- package/dist/modules/controls/entries.d.ts +23 -1
- package/dist/modules/controls/entries.d.ts.map +1 -1
- package/dist/modules/controls/hooks.d.ts +11 -1
- package/dist/modules/controls/hooks.d.ts.map +1 -1
- package/dist/modules/controls/layout.d.ts +17 -0
- package/dist/modules/controls/layout.d.ts.map +1 -1
- package/dist/modules/controls/module.d.ts +7 -1
- package/dist/modules/controls/module.d.ts.map +1 -1
- package/dist/modules/controls/overlay.d.ts +11 -1
- package/dist/modules/controls/overlay.d.ts.map +1 -1
- package/dist/modules/controls/types.d.ts +51 -2
- package/dist/modules/controls/types.d.ts.map +1 -1
- package/dist/modules/dock/components/badge.d.ts +5 -0
- package/dist/modules/dock/components/badge.d.ts.map +1 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts +6 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +1 -0
- package/dist/modules/dock/components/card-banner.d.ts +4 -0
- package/dist/modules/dock/components/card-banner.d.ts.map +1 -0
- package/dist/modules/dock/components/card-header.d.ts +4 -0
- package/dist/modules/dock/components/card-header.d.ts.map +1 -0
- package/dist/modules/dock/components/card-item.d.ts +3 -0
- package/dist/modules/dock/components/card-item.d.ts.map +1 -0
- package/dist/modules/dock/components/command-bar.d.ts +7 -0
- package/dist/modules/dock/components/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/description.d.ts +4 -0
- package/dist/modules/dock/components/description.d.ts.map +1 -0
- package/dist/modules/dock/components/dock.d.ts +4 -0
- package/dist/modules/dock/components/dock.d.ts.map +1 -0
- package/dist/modules/dock/components/hud-view.d.ts +7 -0
- package/dist/modules/dock/components/hud-view.d.ts.map +1 -0
- package/dist/modules/dock/components/icon.d.ts +6 -0
- package/dist/modules/dock/components/icon.d.ts.map +1 -0
- package/dist/modules/dock/components/item-content.d.ts +4 -0
- package/dist/modules/dock/components/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/media-action.d.ts +4 -0
- package/dist/modules/dock/components/media-action.d.ts.map +1 -0
- package/dist/modules/dock/components/media-controls.d.ts +4 -0
- package/dist/modules/dock/components/media-controls.d.ts.map +1 -0
- package/dist/modules/dock/components/media-scrubber.d.ts +5 -0
- package/dist/modules/dock/components/media-scrubber.d.ts.map +1 -0
- package/dist/modules/dock/components/status-actions.d.ts +10 -0
- package/dist/modules/dock/components/status-actions.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/action.d.ts +17 -0
- package/dist/modules/dock/components/surface/action.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/controls.d.ts +12 -0
- package/dist/modules/dock/components/surface/controls.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts +5 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/header-button.d.ts +14 -0
- package/dist/modules/dock/components/surface/header-button.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/item-content.d.ts +6 -0
- package/dist/modules/dock/components/surface/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/shell.d.ts +3 -0
- package/dist/modules/dock/components/surface/shell.d.ts.map +1 -0
- package/dist/modules/dock/components/title.d.ts +4 -0
- package/dist/modules/dock/components/title.d.ts.map +1 -0
- package/dist/modules/dock/constants.d.ts +11 -2
- package/dist/modules/dock/constants.d.ts.map +1 -1
- package/dist/modules/dock/context.d.ts +8 -2
- package/dist/modules/dock/context.d.ts.map +1 -1
- package/dist/modules/dock/hooks/use-action-slot.d.ts +6 -0
- package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-badge.d.ts +4 -0
- package/dist/modules/dock/hooks/use-badge.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts +18 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts +7 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts +1612 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts +19 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts +8 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +2 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts +3 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts +16 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts +9 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts +8 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts.map +1 -0
- package/dist/modules/dock/hud.d.ts +8 -34
- package/dist/modules/dock/hud.d.ts.map +1 -1
- package/dist/modules/dock/index.d.ts +18 -12
- package/dist/modules/dock/index.d.ts.map +1 -1
- package/dist/modules/dock/lib/banner.d.ts +43 -0
- package/dist/modules/dock/lib/banner.d.ts.map +1 -0
- package/dist/modules/dock/lib/card-item.d.ts +46 -0
- package/dist/modules/dock/lib/card-item.d.ts.map +1 -0
- package/dist/modules/dock/lib/card.d.ts +20 -0
- package/dist/modules/dock/lib/card.d.ts.map +1 -0
- package/dist/modules/dock/lib/command-bar.d.ts +8 -0
- package/dist/modules/dock/lib/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/lib/dom.d.ts +7 -0
- package/dist/modules/dock/lib/dom.d.ts.map +1 -0
- package/dist/modules/dock/lib/element-helpers.d.ts +8 -0
- package/dist/modules/dock/lib/element-helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/helpers.d.ts +19 -0
- package/dist/modules/dock/lib/helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/media.d.ts +35 -0
- package/dist/modules/dock/lib/media.d.ts.map +1 -0
- package/dist/modules/dock/lib/styles.d.ts +902 -0
- package/dist/modules/dock/lib/styles.d.ts.map +1 -0
- package/dist/modules/dock/model/hud-definition.d.ts +13 -0
- package/dist/modules/dock/model/hud-definition.d.ts.map +1 -0
- package/dist/modules/dock/model/hud.d.ts +10 -0
- package/dist/modules/dock/model/hud.d.ts.map +1 -0
- package/dist/modules/dock/model/layout.d.ts +28 -0
- package/dist/modules/dock/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/model/page-entry.d.ts +11 -0
- package/dist/modules/dock/model/page-entry.d.ts.map +1 -0
- package/dist/modules/dock/model/page-surface.d.ts +4 -0
- package/dist/modules/dock/model/page-surface.d.ts.map +1 -0
- package/dist/modules/dock/model/paths.d.ts +15 -0
- package/dist/modules/dock/model/paths.d.ts.map +1 -0
- package/dist/modules/dock/model/state.d.ts +28 -0
- package/dist/modules/dock/model/state.d.ts.map +1 -0
- package/dist/modules/dock/model/surface-return.d.ts +14 -0
- package/dist/modules/dock/model/surface-return.d.ts.map +1 -0
- package/dist/modules/dock/module.d.ts +5 -7
- package/dist/modules/dock/module.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +716 -11
- package/dist/modules/dock/motion.d.ts.map +1 -1
- package/dist/modules/dock/provider.d.ts +2 -1
- package/dist/modules/dock/provider.d.ts.map +1 -1
- package/dist/modules/dock/routing/breadcrumbs.d.ts +6 -2
- package/dist/modules/dock/routing/breadcrumbs.d.ts.map +1 -1
- package/dist/modules/dock/routing/continuity.d.ts +46 -14
- package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
- package/dist/modules/dock/routing/guards.d.ts +10 -1
- package/dist/modules/dock/routing/guards.d.ts.map +1 -1
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts +12 -0
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +1 -0
- package/dist/modules/dock/routing/lib/restore.d.ts +7 -0
- package/dist/modules/dock/routing/lib/restore.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/continuity.d.ts +21 -0
- package/dist/modules/dock/routing/model/continuity.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/policy.d.ts +7 -0
- package/dist/modules/dock/routing/model/policy.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/topology.d.ts +5 -0
- package/dist/modules/dock/routing/model/topology.d.ts.map +1 -0
- package/dist/modules/dock/routing/navigation.d.ts +10 -23
- package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
- package/dist/modules/dock/runtime/commands.d.ts +10 -1
- package/dist/modules/dock/runtime/commands.d.ts.map +1 -1
- package/dist/modules/dock/runtime/display.d.ts +9 -48
- package/dist/modules/dock/runtime/display.d.ts.map +1 -1
- package/dist/modules/dock/runtime/dock.d.ts +11 -70
- package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +14 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +7 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts +30 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/attention.d.ts +25 -0
- package/dist/modules/dock/runtime/model/attention.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/cards.d.ts +64 -0
- package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/items.d.ts +31 -0
- package/dist/modules/dock/runtime/model/items.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/layout.d.ts +10 -0
- package/dist/modules/dock/runtime/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/pipeline.d.ts +1 -1
- package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
- package/dist/modules/dock/runtime/provider-actions.d.ts +38 -0
- package/dist/modules/dock/runtime/provider-actions.d.ts.map +1 -0
- package/dist/modules/dock/status/action-options.d.ts +35 -0
- package/dist/modules/dock/status/action-options.d.ts.map +1 -0
- package/dist/modules/dock/status/events.d.ts +2 -2
- package/dist/modules/dock/status/events.d.ts.map +1 -1
- package/dist/modules/dock/status/hooks.d.ts +1 -1
- package/dist/modules/dock/status/hooks.d.ts.map +1 -1
- package/dist/modules/dock/status/model.d.ts +12 -32
- package/dist/modules/dock/status/model.d.ts.map +1 -1
- package/dist/modules/dock/status/state.d.ts +12 -0
- package/dist/modules/dock/status/state.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +5 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +7 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/constants.d.ts +5 -0
- package/dist/modules/dock/surface/constants.d.ts.map +1 -0
- package/dist/modules/dock/surface/context.d.ts +14 -1
- package/dist/modules/dock/surface/context.d.ts.map +1 -1
- package/dist/modules/dock/surface/definition.d.ts +28 -2
- package/dist/modules/dock/surface/definition.d.ts.map +1 -1
- package/dist/modules/dock/surface/helpers.d.ts +2 -1
- package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +15 -0
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +7 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +14 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts +20 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +13 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts +28 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/drag.d.ts +9 -0
- package/dist/modules/dock/surface/lib/drag.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/target.d.ts +8 -0
- package/dist/modules/dock/surface/lib/target.d.ts.map +1 -0
- package/dist/modules/dock/surface/machine.d.ts +17 -62
- package/dist/modules/dock/surface/machine.d.ts.map +1 -1
- package/dist/modules/dock/surface/model/builder.d.ts +39 -0
- package/dist/modules/dock/surface/model/builder.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/normalize.d.ts +13 -0
- package/dist/modules/dock/surface/model/normalize.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/open.d.ts +26 -0
- package/dist/modules/dock/surface/model/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/records.d.ts +45 -0
- package/dist/modules/dock/surface/model/records.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/steps.d.ts +9 -0
- package/dist/modules/dock/surface/model/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts +23 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/url.d.ts +14 -0
- package/dist/modules/dock/surface/model/url.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts +22 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/context.d.ts +29 -0
- package/dist/modules/dock/surface/runtime/context.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts +21 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/open.d.ts +6 -0
- package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/release.d.ts +9 -0
- package/dist/modules/dock/surface/runtime/release.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts +10 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/stack.d.ts +20 -11
- package/dist/modules/dock/surface/stack.d.ts.map +1 -1
- package/dist/modules/dock/surface/view-model.d.ts +5 -1
- package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
- package/dist/modules/dock/types/card.d.ts +297 -0
- package/dist/modules/dock/types/card.d.ts.map +1 -0
- package/dist/modules/dock/types/hud.d.ts +142 -0
- package/dist/modules/dock/types/hud.d.ts.map +1 -0
- package/dist/modules/dock/types/index.d.ts +8 -0
- package/dist/modules/dock/types/index.d.ts.map +1 -0
- package/dist/modules/dock/types/media.d.ts +66 -0
- package/dist/modules/dock/types/media.d.ts.map +1 -0
- package/dist/modules/dock/types/routing.d.ts +336 -0
- package/dist/modules/dock/types/routing.d.ts.map +1 -0
- package/dist/modules/dock/types/surface-flow.d.ts +231 -0
- package/dist/modules/dock/types/surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/types/surface.d.ts +194 -0
- package/dist/modules/dock/types/surface.d.ts.map +1 -0
- package/dist/modules/dock/types/theme.d.ts +201 -0
- package/dist/modules/dock/types/theme.d.ts.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +23 -18
- package/dist/modules/loading/constants.d.ts +18 -1
- package/dist/modules/loading/constants.d.ts.map +1 -1
- package/dist/modules/loading/context.d.ts +11 -1
- package/dist/modules/loading/context.d.ts.map +1 -1
- package/dist/modules/loading/hooks.d.ts +24 -1
- package/dist/modules/loading/hooks.d.ts.map +1 -1
- package/dist/modules/loading/index.d.ts +1 -1
- package/dist/modules/loading/index.d.ts.map +1 -1
- package/dist/modules/loading/module.d.ts +6 -0
- package/dist/modules/loading/module.d.ts.map +1 -1
- package/dist/modules/loading/overlay.d.ts +3 -0
- package/dist/modules/loading/overlay.d.ts.map +1 -1
- package/dist/modules/loading/state.d.ts +13 -0
- package/dist/modules/loading/state.d.ts.map +1 -1
- package/dist/modules/loading/types.d.ts +42 -2
- package/dist/modules/loading/types.d.ts.map +1 -1
- package/dist/modules/media/constants.d.ts +19 -0
- package/dist/modules/media/constants.d.ts.map +1 -1
- package/dist/modules/media/context.d.ts +11 -1
- package/dist/modules/media/context.d.ts.map +1 -1
- package/dist/modules/media/hooks.d.ts +17 -0
- package/dist/modules/media/hooks.d.ts.map +1 -1
- package/dist/modules/media/index.d.ts +1 -1
- package/dist/modules/media/index.d.ts.map +1 -1
- package/dist/modules/media/module.d.ts +4 -0
- package/dist/modules/media/module.d.ts.map +1 -1
- package/dist/modules/media/overlay.d.ts +7 -0
- package/dist/modules/media/overlay.d.ts.map +1 -1
- package/dist/modules/media/playback.d.ts +13 -0
- package/dist/modules/media/playback.d.ts.map +1 -1
- package/dist/modules/media/session.d.ts +20 -0
- package/dist/modules/media/session.d.ts.map +1 -1
- package/dist/modules/media/types.d.ts +49 -2
- package/dist/modules/media/types.d.ts.map +1 -1
- package/dist/modules/modal/components/close-button.d.ts +6 -0
- package/dist/modules/modal/components/close-button.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-container.d.ts +7 -0
- package/dist/modules/modal/components/modal-container.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts +9 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer.d.ts +17 -0
- package/dist/modules/modal/components/modal-layer.d.ts.map +1 -0
- package/dist/modules/modal/components/overlay.d.ts +6 -0
- package/dist/modules/modal/components/overlay.d.ts.map +1 -0
- package/dist/modules/modal/components/resolve-header.d.ts +10 -0
- package/dist/modules/modal/components/resolve-header.d.ts.map +1 -0
- package/dist/modules/modal/components/slot-row.d.ts +12 -0
- package/dist/modules/modal/components/slot-row.d.ts.map +1 -0
- package/dist/modules/modal/constants.d.ts +16 -1
- package/dist/modules/modal/constants.d.ts.map +1 -1
- package/dist/modules/modal/context.d.ts +7 -1
- package/dist/modules/modal/context.d.ts.map +1 -1
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +3 -0
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +12 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +3 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +1 -0
- package/dist/modules/modal/hooks.d.ts +30 -4
- package/dist/modules/modal/hooks.d.ts.map +1 -1
- package/dist/modules/modal/index.d.ts +8 -7
- package/dist/modules/modal/index.d.ts.map +1 -1
- package/dist/modules/modal/lib/dom.d.ts +13 -0
- package/dist/modules/modal/lib/dom.d.ts.map +1 -0
- package/dist/modules/modal/lib/theme.d.ts +4 -0
- package/dist/modules/modal/lib/theme.d.ts.map +1 -0
- package/dist/modules/modal/model/entry.d.ts +18 -0
- package/dist/modules/modal/model/entry.d.ts.map +1 -0
- package/dist/modules/modal/model/header.d.ts +16 -0
- package/dist/modules/modal/model/header.d.ts.map +1 -0
- package/dist/modules/modal/model/identity.d.ts +13 -0
- package/dist/modules/modal/model/identity.d.ts.map +1 -0
- package/dist/modules/modal/model/layout.d.ts +37 -0
- package/dist/modules/modal/model/layout.d.ts.map +1 -0
- package/dist/modules/modal/model/state.d.ts +10 -0
- package/dist/modules/modal/model/state.d.ts.map +1 -0
- package/dist/modules/modal/module.d.ts +7 -0
- package/dist/modules/modal/module.d.ts.map +1 -1
- package/dist/modules/modal/motion.d.ts.map +1 -1
- package/dist/modules/modal/types.d.ts +73 -10
- package/dist/modules/modal/types.d.ts.map +1 -1
- package/dist/modules/navigation/context.d.ts +16 -5
- package/dist/modules/navigation/context.d.ts.map +1 -1
- package/dist/modules/navigation/hooks.d.ts +22 -13
- package/dist/modules/navigation/hooks.d.ts.map +1 -1
- package/dist/modules/navigation/index.d.ts +5 -5
- package/dist/modules/navigation/index.d.ts.map +1 -1
- package/dist/modules/navigation/listeners.d.ts +6 -8
- package/dist/modules/navigation/listeners.d.ts.map +1 -1
- package/dist/modules/navigation/module.d.ts +5 -2
- package/dist/modules/navigation/module.d.ts.map +1 -1
- package/dist/modules/notification/constants.d.ts +22 -2
- package/dist/modules/notification/constants.d.ts.map +1 -1
- package/dist/modules/notification/context.d.ts +12 -2
- package/dist/modules/notification/context.d.ts.map +1 -1
- package/dist/modules/notification/hooks.d.ts +32 -1
- package/dist/modules/notification/hooks.d.ts.map +1 -1
- package/dist/modules/notification/module.d.ts +3 -0
- package/dist/modules/notification/module.d.ts.map +1 -1
- package/dist/modules/notification/motion.d.ts.map +1 -1
- package/dist/modules/notification/overlay.d.ts.map +1 -1
- package/dist/modules/notification/state.d.ts +28 -0
- package/dist/modules/notification/state.d.ts.map +1 -1
- package/dist/modules/notification/types.d.ts +48 -5
- package/dist/modules/notification/types.d.ts.map +1 -1
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.js +189 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/index.js +11 -0
- package/dist/overlay-QHSJBV3O.js +13 -0
- package/dist/overlay-QHSJBV3O.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.js +14 -0
- package/dist/react/context/index.d.ts +4 -0
- package/dist/react/context/index.d.ts.map +1 -0
- package/dist/react/hooks/index.d.ts +10 -0
- package/dist/react/hooks/index.d.ts.map +1 -0
- package/dist/react/hooks/types.d.ts +25 -0
- package/dist/react/hooks/types.d.ts.map +1 -0
- package/dist/react/hooks/use-click-outside.d.ts +6 -0
- package/dist/react/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/react/hooks/use-controllable-state.d.ts +7 -0
- package/dist/react/hooks/use-controllable-state.d.ts.map +1 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts +7 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -0
- package/dist/react/hooks/use-global-event.d.ts +9 -0
- package/dist/react/hooks/use-global-event.d.ts.map +1 -0
- package/dist/react/hooks/use-hotkey.d.ts +10 -0
- package/dist/react/hooks/use-hotkey.d.ts.map +1 -0
- package/dist/react/hooks/use-required-context.d.ts +6 -0
- package/dist/react/hooks/use-required-context.d.ts.map +1 -0
- package/dist/react/hooks/use-scroll-lock.d.ts +9 -0
- package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/react/hooks/use-store.d.ts +3 -0
- package/dist/react/hooks/use-store.d.ts.map +1 -0
- package/dist/react/theme/index.d.ts +82 -0
- package/dist/react/theme/index.d.ts.map +1 -0
- package/dist/react/ui/components/avatar.d.ts +6 -0
- package/dist/react/ui/components/avatar.d.ts.map +1 -0
- package/dist/react/ui/components/button.d.ts +6 -0
- package/dist/react/ui/components/button.d.ts.map +1 -0
- package/dist/react/ui/components/carousel.d.ts +6 -0
- package/dist/react/ui/components/carousel.d.ts.map +1 -0
- package/dist/react/ui/components/checkbox.d.ts +10 -0
- package/dist/react/ui/components/checkbox.d.ts.map +1 -0
- package/dist/react/ui/components/icon.d.ts +6 -0
- package/dist/react/ui/components/icon.d.ts.map +1 -0
- package/dist/react/ui/components/image.d.ts +6 -0
- package/dist/react/ui/components/image.d.ts.map +1 -0
- package/dist/react/ui/components/indicator.d.ts +45 -0
- package/dist/react/ui/components/indicator.d.ts.map +1 -0
- package/dist/react/ui/components/input.d.ts +10 -0
- package/dist/react/ui/components/input.d.ts.map +1 -0
- package/dist/react/ui/components/loader.d.ts +10 -0
- package/dist/react/ui/components/loader.d.ts.map +1 -0
- package/dist/react/ui/components/segmented.d.ts +6 -0
- package/dist/react/ui/components/segmented.d.ts.map +1 -0
- package/dist/react/ui/components/select-parts.d.ts +22 -0
- package/dist/react/ui/components/select-parts.d.ts.map +1 -0
- package/dist/react/ui/components/select.d.ts +6 -0
- package/dist/react/ui/components/select.d.ts.map +1 -0
- package/dist/react/ui/components/skeleton.d.ts +10 -0
- package/dist/react/ui/components/skeleton.d.ts.map +1 -0
- package/dist/react/ui/components/switch.d.ts +6 -0
- package/dist/react/ui/components/switch.d.ts.map +1 -0
- package/dist/react/ui/components/tooltip.d.ts +11 -0
- package/dist/react/ui/components/tooltip.d.ts.map +1 -0
- package/dist/react/ui/index.d.ts +19 -0
- package/dist/react/ui/index.d.ts.map +1 -0
- package/dist/react/ui/provider.d.ts +22 -0
- package/dist/react/ui/provider.d.ts.map +1 -0
- package/dist/react/ui/types-controls.d.ts +133 -0
- package/dist/react/ui/types-controls.d.ts.map +1 -0
- package/dist/react/ui/types.d.ts +192 -0
- package/dist/react/ui/types.d.ts.map +1 -0
- package/dist/react/ui/utils.d.ts +65 -0
- package/dist/react/ui/utils.d.ts.map +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/recipes/index.js +233 -0
- package/dist/recipes/index.js.map +1 -0
- package/dist/result/index.d.ts +1 -0
- package/dist/result/index.js +98 -0
- package/dist/result/index.js.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +6 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +2268 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/utils/index.d.ts +1 -15
- package/dist/utils/index.js +194 -71
- package/dist/utils/index.js.map +1 -1
- package/docs/README.md +58 -57
- package/docs/architecture-and-rules.md +133 -58
- package/docs/core-engine.md +36 -52
- package/docs/custom-modules.md +43 -32
- package/docs/design.md +185 -0
- package/docs/getting-started.md +49 -57
- package/docs/modules/README.md +50 -61
- package/docs/modules/ambient.md +95 -87
- package/docs/modules/background.md +39 -36
- package/docs/modules/context-menu.md +19 -18
- package/docs/modules/controls.md +13 -13
- package/docs/modules/dock.md +74 -93
- package/docs/modules/error-boundary.md +2 -2
- package/docs/modules/kernel.md +38 -26
- package/docs/modules/loading.md +14 -14
- package/docs/modules/media.md +13 -13
- package/docs/modules/modal.md +14 -14
- package/docs/modules/navigation.md +87 -84
- package/docs/modules/notification.md +13 -13
- package/docs/modules/result.md +22 -22
- package/docs/proposals/navigation.md +32 -31
- package/docs/testing.md +34 -28
- package/docs/theming.md +67 -44
- package/package.json +106 -88
- package/templates/AGENTS.md +35 -25
- package/dist/atoms/button.d.ts +0 -11
- package/dist/atoms/button.d.ts.map +0 -1
- package/dist/atoms/icon.d.ts +0 -15
- package/dist/atoms/icon.d.ts.map +0 -1
- package/dist/atoms/index.d.ts +0 -5
- package/dist/atoms/index.d.ts.map +0 -1
- package/dist/atoms/index.js +0 -4
- package/dist/atoms/spinner.d.ts +0 -9
- package/dist/atoms/spinner.d.ts.map +0 -1
- package/dist/atoms/tooltip.d.ts +0 -18
- package/dist/atoms/tooltip.d.ts.map +0 -1
- package/dist/chunk-3BUP64Q6.js +0 -105
- package/dist/chunk-3BUP64Q6.js.map +0 -1
- package/dist/chunk-4GMQKD6F.js +0 -353
- package/dist/chunk-4GMQKD6F.js.map +0 -1
- package/dist/chunk-66EYJBIP.js +0 -300
- package/dist/chunk-66EYJBIP.js.map +0 -1
- package/dist/chunk-7HQMXTNP.js +0 -419
- package/dist/chunk-7HQMXTNP.js.map +0 -1
- package/dist/chunk-7TAVYJ3A.js +0 -371
- package/dist/chunk-7TAVYJ3A.js.map +0 -1
- package/dist/chunk-AQ4BNXA2.js +0 -349
- package/dist/chunk-AQ4BNXA2.js.map +0 -1
- package/dist/chunk-CGHZSSFR.js +0 -2166
- package/dist/chunk-CGHZSSFR.js.map +0 -1
- package/dist/chunk-DGCQWQLZ.js +0 -61
- package/dist/chunk-DGCQWQLZ.js.map +0 -1
- package/dist/chunk-FIMPHODX.js +0 -67
- package/dist/chunk-FIMPHODX.js.map +0 -1
- package/dist/chunk-GF7TUX5I.js +0 -1889
- package/dist/chunk-GF7TUX5I.js.map +0 -1
- package/dist/chunk-HHWRTQKQ.js +0 -610
- package/dist/chunk-HHWRTQKQ.js.map +0 -1
- package/dist/chunk-HLL5EHXC.js +0 -485
- package/dist/chunk-HLL5EHXC.js.map +0 -1
- package/dist/chunk-I5GK7VOV.js +0 -28
- package/dist/chunk-I5GK7VOV.js.map +0 -1
- package/dist/chunk-JELG4JLT.js +0 -454
- package/dist/chunk-JELG4JLT.js.map +0 -1
- package/dist/chunk-K676GL7Z.js +0 -51
- package/dist/chunk-K676GL7Z.js.map +0 -1
- package/dist/chunk-QI3ALLIB.js +0 -38
- package/dist/chunk-QI3ALLIB.js.map +0 -1
- package/dist/chunk-R2YGFJDJ.js +0 -408
- package/dist/chunk-R2YGFJDJ.js.map +0 -1
- package/dist/chunk-RFZQWLC5.js +0 -27
- package/dist/chunk-RFZQWLC5.js.map +0 -1
- package/dist/chunk-RIOKLMYM.js +0 -145
- package/dist/chunk-RIOKLMYM.js.map +0 -1
- package/dist/chunk-RRAZKP3J.js +0 -888
- package/dist/chunk-RRAZKP3J.js.map +0 -1
- package/dist/chunk-SYAVGTOX.js +0 -521
- package/dist/chunk-SYAVGTOX.js.map +0 -1
- package/dist/chunk-TG6NMHXI.js +0 -1218
- package/dist/chunk-TG6NMHXI.js.map +0 -1
- package/dist/chunk-TV3WEF5G.js +0 -784
- package/dist/chunk-TV3WEF5G.js.map +0 -1
- package/dist/chunk-WVRMABDN.js +0 -9727
- package/dist/chunk-WVRMABDN.js.map +0 -1
- package/dist/error/boundary.d.ts +0 -14
- package/dist/error/boundary.d.ts.map +0 -1
- package/dist/error/constants.d.ts +0 -18
- package/dist/error/constants.d.ts.map +0 -1
- package/dist/error/index.d.ts.map +0 -1
- package/dist/error/listener.d.ts +0 -2
- package/dist/error/listener.d.ts.map +0 -1
- package/dist/error/reporter.d.ts +0 -32
- package/dist/error/reporter.d.ts.map +0 -1
- package/dist/error/theme.d.ts +0 -3
- package/dist/error/theme.d.ts.map +0 -1
- package/dist/error/types.d.ts +0 -91
- package/dist/error/types.d.ts.map +0 -1
- package/dist/error/utils.d.ts +0 -21
- package/dist/error/utils.d.ts.map +0 -1
- package/dist/events.d.ts +0 -51
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -82
- package/dist/events.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/types.d.ts +0 -16
- package/dist/hooks/types.d.ts.map +0 -1
- package/dist/hooks/use-click-outside.d.ts +0 -3
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-controllable-state.d.ts +0 -3
- package/dist/hooks/use-controllable-state.d.ts.map +0 -1
- package/dist/hooks/use-fullscreen-state.d.ts +0 -4
- package/dist/hooks/use-fullscreen-state.d.ts.map +0 -1
- package/dist/hooks/use-global-event.d.ts +0 -5
- package/dist/hooks/use-global-event.d.ts.map +0 -1
- package/dist/hooks/use-hotkey.d.ts +0 -4
- package/dist/hooks/use-hotkey.d.ts.map +0 -1
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +0 -3
- package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +0 -1
- package/dist/hooks/use-required-context.d.ts +0 -3
- package/dist/hooks/use-required-context.d.ts.map +0 -1
- package/dist/hooks/use-store.d.ts +0 -3
- package/dist/hooks/use-store.d.ts.map +0 -1
- package/dist/kernel/adapters.d.ts +0 -5
- package/dist/kernel/adapters.d.ts.map +0 -1
- package/dist/kernel/compose.d.ts +0 -15
- package/dist/kernel/compose.d.ts.map +0 -1
- package/dist/kernel/constants.d.ts +0 -12
- package/dist/kernel/constants.d.ts.map +0 -1
- package/dist/kernel/context-registry.d.ts +0 -3
- package/dist/kernel/context-registry.d.ts.map +0 -1
- package/dist/kernel/handlers.d.ts +0 -3
- package/dist/kernel/handlers.d.ts.map +0 -1
- package/dist/kernel/hooks.d.ts +0 -7
- package/dist/kernel/hooks.d.ts.map +0 -1
- package/dist/kernel/index.d.ts.map +0 -1
- package/dist/kernel/installed.d.ts +0 -21
- package/dist/kernel/installed.d.ts.map +0 -1
- package/dist/kernel/module.d.ts +0 -32
- package/dist/kernel/module.d.ts.map +0 -1
- package/dist/kernel/operations.d.ts +0 -21
- package/dist/kernel/operations.d.ts.map +0 -1
- package/dist/kernel/page-controller.d.ts +0 -8
- package/dist/kernel/page-controller.d.ts.map +0 -1
- package/dist/kernel/provider.d.ts +0 -18
- package/dist/kernel/provider.d.ts.map +0 -1
- package/dist/kernel/runtime.d.ts.map +0 -1
- package/dist/kernel/schema.d.ts +0 -11
- package/dist/kernel/schema.d.ts.map +0 -1
- package/dist/kernel/store.d.ts +0 -4
- package/dist/kernel/store.d.ts.map +0 -1
- package/dist/kernel/types.d.ts +0 -233
- package/dist/kernel/types.d.ts.map +0 -1
- package/dist/kernel/utils.d.ts +0 -18
- package/dist/kernel/utils.d.ts.map +0 -1
- package/dist/modules/ambient/index.js +0 -10
- package/dist/modules/ambient/server/index.js +0 -221
- package/dist/modules/ambient/server/index.js.map +0 -1
- package/dist/modules/ambient/worker/index.js +0 -114
- package/dist/modules/ambient/worker/index.js.map +0 -1
- package/dist/modules/background/index.js +0 -9
- package/dist/modules/background/overlay.d.ts +0 -135
- package/dist/modules/background/overlay.d.ts.map +0 -1
- package/dist/modules/background/playback.d.ts +0 -10
- package/dist/modules/background/playback.d.ts.map +0 -1
- package/dist/modules/background/state.d.ts +0 -9
- package/dist/modules/background/state.d.ts.map +0 -1
- package/dist/modules/background/visual.d.ts +0 -48
- package/dist/modules/background/visual.d.ts.map +0 -1
- package/dist/modules/background/youtube/iframe.d.ts +0 -52
- package/dist/modules/background/youtube/iframe.d.ts.map +0 -1
- package/dist/modules/background/youtube/parse.d.ts +0 -17
- package/dist/modules/background/youtube/parse.d.ts.map +0 -1
- package/dist/modules/background/youtube/player.d.ts +0 -28
- package/dist/modules/background/youtube/player.d.ts.map +0 -1
- package/dist/modules/context-menu/index.js +0 -14
- package/dist/modules/controls/index.js +0 -7
- package/dist/modules/dock/cards.d.ts +0 -1722
- package/dist/modules/dock/cards.d.ts.map +0 -1
- package/dist/modules/dock/dom.d.ts +0 -24
- package/dist/modules/dock/dom.d.ts.map +0 -1
- package/dist/modules/dock/helpers.d.ts +0 -25
- package/dist/modules/dock/helpers.d.ts.map +0 -1
- package/dist/modules/dock/hooks.d.ts +0 -42
- package/dist/modules/dock/hooks.d.ts.map +0 -1
- package/dist/modules/dock/index.js +0 -13
- package/dist/modules/dock/layout.d.ts +0 -26
- package/dist/modules/dock/layout.d.ts.map +0 -1
- package/dist/modules/dock/overlay.d.ts +0 -79
- package/dist/modules/dock/overlay.d.ts.map +0 -1
- package/dist/modules/dock/paths.d.ts +0 -10
- package/dist/modules/dock/paths.d.ts.map +0 -1
- package/dist/modules/dock/state.d.ts +0 -22
- package/dist/modules/dock/state.d.ts.map +0 -1
- package/dist/modules/dock/styles.d.ts +0 -900
- package/dist/modules/dock/styles.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks.d.ts +0 -110
- package/dist/modules/dock/surface/hooks.d.ts.map +0 -1
- package/dist/modules/dock/types.d.ts +0 -1362
- package/dist/modules/dock/types.d.ts.map +0 -1
- package/dist/modules/loading/index.js +0 -8
- package/dist/modules/media/index.js +0 -6
- package/dist/modules/modal/dom.d.ts +0 -4
- package/dist/modules/modal/dom.d.ts.map +0 -1
- package/dist/modules/modal/header.d.ts +0 -7
- package/dist/modules/modal/header.d.ts.map +0 -1
- package/dist/modules/modal/identity.d.ts +0 -7
- package/dist/modules/modal/identity.d.ts.map +0 -1
- package/dist/modules/modal/index.js +0 -11
- package/dist/modules/modal/layout.d.ts +0 -13
- package/dist/modules/modal/layout.d.ts.map +0 -1
- package/dist/modules/modal/overlay.d.ts +0 -4
- package/dist/modules/modal/overlay.d.ts.map +0 -1
- package/dist/modules/modal/state.d.ts +0 -4
- package/dist/modules/modal/state.d.ts.map +0 -1
- package/dist/modules/navigation/constants.d.ts +0 -37
- package/dist/modules/navigation/constants.d.ts.map +0 -1
- package/dist/modules/navigation/index.js +0 -81
- package/dist/modules/navigation/index.js.map +0 -1
- package/dist/modules/navigation/navigator.d.ts +0 -8
- package/dist/modules/navigation/navigator.d.ts.map +0 -1
- package/dist/modules/navigation/settings.d.ts +0 -10
- package/dist/modules/navigation/settings.d.ts.map +0 -1
- package/dist/modules/navigation/state.d.ts +0 -20
- package/dist/modules/navigation/state.d.ts.map +0 -1
- package/dist/modules/navigation/types.d.ts +0 -168
- package/dist/modules/navigation/types.d.ts.map +0 -1
- package/dist/modules/navigation/utils.d.ts +0 -11
- package/dist/modules/navigation/utils.d.ts.map +0 -1
- package/dist/modules/notification/index.js +0 -7
- package/dist/overlay-TZ6L52A5.js +0 -9
- package/dist/overlay-TZ6L52A5.js.map +0 -1
- package/dist/provider.d.ts +0 -23
- package/dist/provider.d.ts.map +0 -1
- package/dist/provider.js +0 -9
- package/dist/provider.js.map +0 -1
- package/dist/result.d.ts +0 -50
- package/dist/result.d.ts.map +0 -1
- package/dist/result.js +0 -102
- package/dist/result.js.map +0 -1
- package/dist/theme.d.ts +0 -63
- package/dist/theme.d.ts.map +0 -1
- package/dist/theme.js +0 -6
- package/dist/theme.js.map +0 -1
- package/dist/tokens/index.d.ts +0 -4
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/index.js +0 -296
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/motion-config.d.ts +0 -44
- package/dist/tokens/motion-config.d.ts.map +0 -1
- package/dist/tokens/motion.d.ts +0 -164
- package/dist/tokens/motion.d.ts.map +0 -1
- package/dist/tokens/tokens.d.ts +0 -34
- package/dist/tokens/tokens.d.ts.map +0 -1
- package/dist/utils/cn.d.ts +0 -3
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/dom.d.ts +0 -5
- package/dist/utils/dom.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/number.d.ts +0 -3
- package/dist/utils/number.d.ts.map +0 -1
- package/dist/utils/object.d.ts +0 -5
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/report.d.ts +0 -5
- package/dist/utils/report.d.ts.map +0 -1
- package/dist/utils/scheduler.d.ts +0 -34
- package/dist/utils/scheduler.d.ts.map +0 -1
- package/dist/utils/store.d.ts +0 -11
- package/dist/utils/store.d.ts.map +0 -1
- package/dist/utils/string.d.ts +0 -5
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/timing.d.ts +0 -7
- package/dist/utils/timing.d.ts.map +0 -1
- package/dist/utils/user-message.d.ts +0 -20
- package/dist/utils/user-message.d.ts.map +0 -1
- package/templates/motion/background.ts +0 -17
- package/templates/motion/context-menu.ts +0 -63
- package/templates/motion/dock.ts +0 -395
- package/templates/motion/modal.ts +0 -79
- package/templates/motion/notification.ts +0 -27
- package/templates/motion/tokens.ts +0 -47
- /package/dist/{atoms → ambient}/index.js.map +0 -0
- /package/dist/{modules/ambient → background}/index.js.map +0 -0
- /package/dist/{modules/background → context-menu}/index.js.map +0 -0
- /package/dist/{modules/context-menu → controls}/index.js.map +0 -0
- /package/dist/{kernel → core/kernel}/runtime.d.ts +0 -0
- /package/dist/{modules/controls → dock}/index.js.map +0 -0
- /package/dist/{modules/dock → loading}/index.js.map +0 -0
- /package/dist/{modules/loading → media}/index.js.map +0 -0
- /package/dist/{modules/media → notification}/index.js.map +0 -0
- /package/dist/{modules/modal → provider}/index.js.map +0 -0
- /package/dist/{modules/notification → theme}/index.js.map +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SurfaceId, SurfaceStep } from "../../types";
|
|
2
|
+
import { type SurfaceRuntimeRefs } from "../model/records";
|
|
3
|
+
import type { SurfaceChoreography } from "./choreography";
|
|
4
|
+
/** Step navigation (push, pop, jump) inside the targeted or topmost surface. */
|
|
5
|
+
export declare function createSurfaceSteps({ payloads, stackRef }: SurfaceRuntimeRefs, syncSurfaceStack: SurfaceChoreography["syncSurfaceStack"]): {
|
|
6
|
+
goToStep: (index: number, targetSurfaceId?: SurfaceId | null) => void;
|
|
7
|
+
popStep: (targetSurfaceId?: SurfaceId | null) => void;
|
|
8
|
+
pushStep: (stepInput: SurfaceStep, targetSurfaceId?: SurfaceId | null) => void;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../../src/modules/dock/surface/runtime/steps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,gFAAgF;AAChF,wBAAgB,kBAAkB,CAChC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,kBAAkB,EAC1C,gBAAgB,EAAE,mBAAmB,CAAC,kBAAkB,CAAC;sBAqDhD,MAAM,oBACI,SAAS,GAAG,IAAI;gCA1BD,SAAS,GAAG,IAAI;0BAzBrC,WAAW,oBACL,SAAS,GAAG,IAAI;EA6EpC"}
|
|
@@ -1,31 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DockScheduler, SurfaceId, SurfaceResult } from "../types";
|
|
2
|
+
import type { SurfaceRuntimeLive } from "./runtime/context";
|
|
3
|
+
/**
|
|
4
|
+
* Owns the dock's surface stack: state, runtime and the actions that open,
|
|
5
|
+
* close and navigate surfaces. The runtime is built once; inputs that may
|
|
6
|
+
* change (timings, callbacks) are pushed into it after each commit.
|
|
7
|
+
*/
|
|
2
8
|
export declare function useSurfaceStack({ onSurfaceFlowSettled, scheduler, setExpanded, setSearchQuery, }: {
|
|
3
|
-
onSurfaceFlowSettled?:
|
|
4
|
-
flow: SurfaceFlowSession;
|
|
5
|
-
result: SurfaceResult;
|
|
6
|
-
}) => boolean) | null;
|
|
9
|
+
onSurfaceFlowSettled?: SurfaceRuntimeLive["onSurfaceFlowSettled"];
|
|
7
10
|
scheduler?: DockScheduler | null;
|
|
8
11
|
setExpanded: (expanded: boolean) => void;
|
|
9
12
|
setSearchQuery: (query: string) => void;
|
|
10
13
|
}): {
|
|
11
14
|
actions: {
|
|
12
|
-
cancelSurfaceFlow: (flowId: string, data?: unknown) => boolean;
|
|
13
15
|
closeAllSurfaces: (result?: SurfaceResult) => void;
|
|
14
16
|
closeSurface: (result?: SurfaceResult, targetSurfaceId?: SurfaceId | null) => void;
|
|
15
|
-
completeSurfaceFlow: (flowId: string, data?: unknown) => boolean;
|
|
16
|
-
getSurfaceFlow: (flowId: string) => import("..").SurfaceFlowHandle | null;
|
|
17
17
|
goBackSurface: () => void;
|
|
18
18
|
goToStep: (index: number, targetSurfaceId?: SurfaceId | null) => void;
|
|
19
|
-
openSurface: (input: SurfaceInput, config?: OpenSurfaceOptions) => Promise<SurfaceResult>;
|
|
19
|
+
openSurface: (input: import("..").SurfaceInput, config?: import("..").OpenSurfaceOptions) => Promise<SurfaceResult>;
|
|
20
|
+
popStep: (targetSurfaceId?: SurfaceId | null) => void;
|
|
21
|
+
pushStep: (stepInput: import("..").SurfaceStep, targetSurfaceId?: SurfaceId | null) => void;
|
|
22
|
+
cancelSurfaceFlow: (flowId: string, data?: unknown) => boolean;
|
|
23
|
+
completeSurfaceFlow: (flowId: string, data?: unknown) => boolean;
|
|
24
|
+
getSurfaceFlow: (flowId: string) => import("..").SurfaceFlowHandle | null;
|
|
20
25
|
openSurfaceFlow: (input: import("..").SurfaceFlowDefinitionInput | import("..").SurfaceFlowDefinition, flowInput?: unknown, { preserveUrl, snapshot, }?: {
|
|
21
26
|
preserveUrl?: boolean;
|
|
22
27
|
snapshot?: unknown;
|
|
23
28
|
}) => Promise<SurfaceResult>;
|
|
24
|
-
popStep: (targetSurfaceId?: SurfaceId | null) => void;
|
|
25
|
-
pushStep: (stepInput: SurfaceStep, targetSurfaceId?: SurfaceId | null) => void;
|
|
26
29
|
restoreSurfaceFlow: (input: import("..").SurfaceFlowDefinitionInput | import("..").SurfaceFlowDefinition) => Promise<SurfaceResult>;
|
|
27
30
|
updateSurfaceFlow: (flowId: string, snapshot: unknown) => boolean;
|
|
28
31
|
};
|
|
32
|
+
/** The parts of `surfaceState`, each stable until it changes. */
|
|
33
|
+
surfaceParts: {
|
|
34
|
+
surfaceLifecycle: string;
|
|
35
|
+
surfacePhase: string;
|
|
36
|
+
surfaceState: import("..").SurfaceState;
|
|
37
|
+
};
|
|
29
38
|
surfaceState: {
|
|
30
39
|
surfacePhase: string;
|
|
31
40
|
surfaceLifecycle: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../src/modules/dock/surface/stack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../src/modules/dock/surface/stack.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EAET,aAAa,EACd,MAAM,UAAU,CAAC;AAYlB,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAkJ3B;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,oBAA2B,EAC3B,SAAgB,EAChB,WAAW,EACX,cAAc,GACf,EAAE;IACD,oBAAoB,CAAC,EAAE,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;IAClE,SAAS,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;;oCAvFmC,aAAa;gCAvBrC,aAAa,oBACJ,SAAS,GAAG,IAAI;;;;;;;;;;uBAgCvB,CAAC;oBAAmB,CAAC;;;;;IAiH/B,iEAAiE;;;;;;;;;;;;;;EAIpE"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DockItem, RenderableSurfaceEntry, SurfaceViewModelOptions } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Overlays the active surface (and its step) onto a dock item, producing
|
|
4
|
+
* the item the dock renders while a surface is open.
|
|
5
|
+
*/
|
|
2
6
|
export declare function applySurfaceToDockItem(item: DockItem | null, rawSurfaceEntry: RenderableSurfaceEntry | null, options?: SurfaceViewModelOptions): DockItem | null;
|
|
3
7
|
//# sourceMappingURL=view-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-model.d.ts","sourceRoot":"","sources":["../../../../src/modules/dock/surface/view-model.ts"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"view-model.d.ts","sourceRoot":"","sources":["../../../../src/modules/dock/surface/view-model.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,QAAQ,EACR,sBAAsB,EAItB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAgNlB;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,QAAQ,GAAG,IAAI,EACrB,eAAe,EAAE,sBAAsB,GAAG,IAAI,EAC9C,OAAO,GAAE,uBAA4B,GACpC,QAAQ,GAAG,IAAI,CA2BjB"}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode, SyntheticEvent } from "react";
|
|
2
|
+
import type { RegistryMetadata } from "../../../core/kernel";
|
|
3
|
+
import type { createScheduler, ExternalStore } from "../../../foundation/utils";
|
|
4
|
+
import type { DockHudDescriptor, DockOperation, DockOperationActions } from "./hud";
|
|
5
|
+
import type { DockBannerSource, DockIconOverlayConfig, DockIconSource } from "./media";
|
|
6
|
+
import type { BreadcrumbConfig, BreadcrumbOverride, DockContinuityEntry, DockGuardConfirmation, DockGuardRegistry, DockItemRouteFields, DockPageGuard, DockReturnHandoff, DockRouteActions, DockRouteSnapshot } from "./routing";
|
|
7
|
+
import type { DockItemSurfaceFields, DockSurfaceActions, DockSurfaceSlot, ResolvedSurfaceEntry } from "./surface";
|
|
8
|
+
import type { DockVisualStyle, DockVisualStyleInput, DockVisualStyleSection } from "./theme";
|
|
9
|
+
/** A component type a dock HUD, surface or action can render. */
|
|
10
|
+
export type DockComponent = ComponentType<any>;
|
|
11
|
+
/** Props bag passed to dock-rendered components. */
|
|
12
|
+
export type DockComponentProps = Record<string, unknown>;
|
|
13
|
+
/** Click-style handler used by dock buttons and cards. */
|
|
14
|
+
export type DockEventHandler = {
|
|
15
|
+
bivarianceHack(event?: SyntheticEvent): void;
|
|
16
|
+
}["bivarianceHack"];
|
|
17
|
+
/** Content accepted by an action slot: a node or a component. */
|
|
18
|
+
export type DockSlotContent = ReactNode | DockComponent;
|
|
19
|
+
/** Visibility, value and colour of a card badge. */
|
|
20
|
+
export interface DockBadgeState {
|
|
21
|
+
color?: string;
|
|
22
|
+
value?: string | number | null;
|
|
23
|
+
visible: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Describes one command-bar action: its key, content, order and visibility. */
|
|
26
|
+
export interface DockActionDescriptor {
|
|
27
|
+
badge?: string | number | null;
|
|
28
|
+
className?: string | null;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
icon?: DockIconSource;
|
|
31
|
+
key?: string;
|
|
32
|
+
label?: string | null;
|
|
33
|
+
onClick?: DockEventHandler | null;
|
|
34
|
+
order?: number;
|
|
35
|
+
tone?: string | null;
|
|
36
|
+
tooltip?: string | null;
|
|
37
|
+
visible?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/** Per-call overrides merged into an action definition. */
|
|
40
|
+
export type DockActionOverrides = Partial<DockActionDescriptor> | DockEventHandler;
|
|
41
|
+
/** A reusable action definition created with `defineDockAction`. */
|
|
42
|
+
export interface DockActionDefinition {
|
|
43
|
+
bind: (overrides?: DockActionOverrides) => DockActionDescriptor;
|
|
44
|
+
config: DockActionDescriptor;
|
|
45
|
+
create: (overrides?: DockActionOverrides) => DockActionDescriptor;
|
|
46
|
+
id: string;
|
|
47
|
+
key: string;
|
|
48
|
+
use: (overrides?: DockActionOverrides) => void;
|
|
49
|
+
}
|
|
50
|
+
/** Visual fields of a dock item: title, icon, banner, style and width. */
|
|
51
|
+
export interface DockItemPresentationFields {
|
|
52
|
+
action?: DockSlotContent;
|
|
53
|
+
actions?: DockSlotContent;
|
|
54
|
+
badge?: ReactNode;
|
|
55
|
+
banner?: DockBannerSource;
|
|
56
|
+
bannerOpacity?: number | null;
|
|
57
|
+
bannerPosition?: string | null;
|
|
58
|
+
bannerRepeat?: string | null;
|
|
59
|
+
bannerSize?: string | null;
|
|
60
|
+
bannerUrl?: string | null;
|
|
61
|
+
className?: string;
|
|
62
|
+
component?: DockComponent | null;
|
|
63
|
+
content?: ReactNode;
|
|
64
|
+
description?: string | null;
|
|
65
|
+
headerAction?: DockSlotContent;
|
|
66
|
+
icon?: DockIconSource;
|
|
67
|
+
iconOverlay?: DockIconOverlayConfig | null;
|
|
68
|
+
props?: DockComponentProps;
|
|
69
|
+
style?: DockVisualStyleInput | null;
|
|
70
|
+
title?: string | null;
|
|
71
|
+
width?: number | string | null;
|
|
72
|
+
}
|
|
73
|
+
/** Runtime flags of a dock item: status, HUD, overlay and surface state. */
|
|
74
|
+
export interface DockItemRuntimeFields {
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
isAnchoredToBottom?: boolean;
|
|
77
|
+
isDataSource?: boolean;
|
|
78
|
+
isExpanded?: boolean;
|
|
79
|
+
isHud?: boolean;
|
|
80
|
+
isInactive?: boolean;
|
|
81
|
+
isLoading?: boolean;
|
|
82
|
+
isMasked?: boolean;
|
|
83
|
+
isNotFound?: boolean;
|
|
84
|
+
isOverlay?: boolean;
|
|
85
|
+
isRoutePending?: boolean;
|
|
86
|
+
isSelected?: boolean;
|
|
87
|
+
isStatus?: boolean;
|
|
88
|
+
mediaAction?: boolean;
|
|
89
|
+
}
|
|
90
|
+
/** One card in the dock stack, combining presentation, route and runtime fields. */
|
|
91
|
+
export interface DockItem extends DockItemRouteFields, DockItemPresentationFields, DockItemSurfaceFields, DockItemRuntimeFields {
|
|
92
|
+
}
|
|
93
|
+
/** Snapshot of the dock store: items, active item, HUD, surfaces and height. */
|
|
94
|
+
export interface DockState {
|
|
95
|
+
activeItem: DockItem | null;
|
|
96
|
+
activeOperation: DockOperation | null;
|
|
97
|
+
activeSurfaceEntry: ResolvedSurfaceEntry | null;
|
|
98
|
+
activeSurfaceId: number | null;
|
|
99
|
+
contextActions: DockActionDescriptor[];
|
|
100
|
+
dockContinuity: DockContinuityEntry[];
|
|
101
|
+
dockHeight: number;
|
|
102
|
+
dockReturnHandoffs: DockReturnHandoff[];
|
|
103
|
+
expanded: boolean;
|
|
104
|
+
hud: DockHudDescriptor | null;
|
|
105
|
+
hudEntries: DockHudDescriptor[];
|
|
106
|
+
isHudActive: boolean;
|
|
107
|
+
isSurfaceOpen: boolean;
|
|
108
|
+
locationKey: string;
|
|
109
|
+
operations: DockOperation[];
|
|
110
|
+
pathname: string;
|
|
111
|
+
searchQuery: string;
|
|
112
|
+
selectionMode: DockHudDescriptor | null;
|
|
113
|
+
surfaceLifecycle: string;
|
|
114
|
+
surfacePhase: string;
|
|
115
|
+
surfaceStack: ResolvedSurfaceEntry[];
|
|
116
|
+
}
|
|
117
|
+
/** Dock actions used by the dock itself, not meant for app code. */
|
|
118
|
+
export interface DockInternalActions {
|
|
119
|
+
setIsHovered: (hovered: boolean) => void;
|
|
120
|
+
cancelActiveTransaction: (reason?: string) => void;
|
|
121
|
+
cancelDock: (reason?: string) => void;
|
|
122
|
+
clearBreadcrumbOverride: (path: string) => void;
|
|
123
|
+
completeDock: (path: string) => void;
|
|
124
|
+
openGuardConfirmation: (config: DockGuardConfirmation) => void;
|
|
125
|
+
registerBreadcrumbOverride: (path: string, config: BreadcrumbOverride) => void;
|
|
126
|
+
}
|
|
127
|
+
/** Dock actions that change UI state such as expansion, HUD and search. */
|
|
128
|
+
export interface DockUiActions {
|
|
129
|
+
clearHud: (id?: string) => void;
|
|
130
|
+
operations: DockOperationActions;
|
|
131
|
+
registerContextAction: (action: Partial<DockActionDescriptor>) => void;
|
|
132
|
+
setContextActions: (actions: DockActionDescriptor[]) => void;
|
|
133
|
+
setExpanded: (expanded: boolean) => void;
|
|
134
|
+
setHud: (descriptor: DockHudDescriptor) => void;
|
|
135
|
+
setDockHeight: (height: number) => void;
|
|
136
|
+
setSearchQuery: (query: string) => void;
|
|
137
|
+
unregisterContextAction: (key: string) => void;
|
|
138
|
+
}
|
|
139
|
+
/** All actions available from `useDockActions`. */
|
|
140
|
+
export interface DockActions extends DockRouteActions, DockSurfaceActions, DockUiActions {
|
|
141
|
+
}
|
|
142
|
+
/** Current dock height and width as reported by `useDockDimensions`. */
|
|
143
|
+
export interface DockDimensions {
|
|
144
|
+
baseHeight: number;
|
|
145
|
+
cardWidth: number;
|
|
146
|
+
hudHeight: number;
|
|
147
|
+
dockHeight: number;
|
|
148
|
+
stackWidth: number;
|
|
149
|
+
}
|
|
150
|
+
/** Props of `DockProvider`. */
|
|
151
|
+
export interface DockProviderProps {
|
|
152
|
+
breadcrumbConfig?: BreadcrumbConfig | null;
|
|
153
|
+
children?: ReactNode;
|
|
154
|
+
mediaAction?: ComponentType | null;
|
|
155
|
+
notFoundAction?: ComponentType | null;
|
|
156
|
+
scheduler?: DockScheduler | null;
|
|
157
|
+
}
|
|
158
|
+
/** Value held by the dock context: the store and its actions. */
|
|
159
|
+
export interface DockContextValue {
|
|
160
|
+
actions: DockActions;
|
|
161
|
+
runtimeActions: {
|
|
162
|
+
mediaAction: ComponentType | null;
|
|
163
|
+
notFoundAction: ComponentType | null;
|
|
164
|
+
};
|
|
165
|
+
runtimeScheduler: DockScheduler;
|
|
166
|
+
store: ExternalStore<DockState>;
|
|
167
|
+
view: DockViewBridge;
|
|
168
|
+
guards: DockGuardRegistry;
|
|
169
|
+
}
|
|
170
|
+
/** Hooks the dock view uses to publish route snapshots and register the navigator. */
|
|
171
|
+
export interface DockViewBridge {
|
|
172
|
+
publishRoute: (snapshot: DockRouteSnapshot) => void;
|
|
173
|
+
setNavigator: (navigate: DockActions["navigate"] | null) => void;
|
|
174
|
+
}
|
|
175
|
+
/** Card fields a page can set through `useDockConfig`. */
|
|
176
|
+
export type DockPageCardFields = Omit<DockItemPresentationFields, "actions"> & Pick<DockItemRouteFields, "dockPolicy" | "keepWhenDescendant" | "name" | "path" | "prefetchDisabled" | "stackOrder" | "targetPath"> & Pick<DockItemRuntimeFields, "isLoading" | "isOverlay"> & Pick<DockItemSurfaceFields, "dismissible">;
|
|
177
|
+
/** Page-level dock config: the `dock` field of a page config and the input to `useDockRegistration`. */
|
|
178
|
+
export interface DockPageConfig extends DockPageCardFields {
|
|
179
|
+
actions?: Partial<DockActionDescriptor>[];
|
|
180
|
+
breadcrumbs?: unknown[];
|
|
181
|
+
guard?: DockPageGuard;
|
|
182
|
+
registry?: RegistryMetadata;
|
|
183
|
+
surfaces?: Record<string, DockSurfaceSlot>;
|
|
184
|
+
}
|
|
185
|
+
/** Object returned when a page registers a dock config. */
|
|
186
|
+
export type DockPageApi = DockActions & {
|
|
187
|
+
set: (dock: DockPageConfig) => void;
|
|
188
|
+
surface: (surface: DockSurfaceSlot | string, props?: Record<string, unknown>) => unknown;
|
|
189
|
+
};
|
|
190
|
+
/** Which layer is on top of the dock and which companion shows beside it. */
|
|
191
|
+
export interface DockScene {
|
|
192
|
+
companion: "notification" | "breadcrumbs" | null;
|
|
193
|
+
expanded: boolean;
|
|
194
|
+
isCompanionVisible: boolean;
|
|
195
|
+
topKind: "surface" | "status-overlay" | "status" | "hud" | "route";
|
|
196
|
+
}
|
|
197
|
+
/** Options for `defineDockAction`. */
|
|
198
|
+
export interface DefineDockActionOptions {
|
|
199
|
+
badge?: string | number | null;
|
|
200
|
+
className?: string | null;
|
|
201
|
+
disabled?: boolean;
|
|
202
|
+
icon?: DockIconSource;
|
|
203
|
+
key?: string;
|
|
204
|
+
onClick?: DockEventHandler | null;
|
|
205
|
+
order?: number;
|
|
206
|
+
tone?: string | null;
|
|
207
|
+
tooltip?: string | null;
|
|
208
|
+
visible?: boolean;
|
|
209
|
+
[key: string]: unknown;
|
|
210
|
+
}
|
|
211
|
+
/** Props of `DockDescription`. */
|
|
212
|
+
export interface DockDescriptionProps {
|
|
213
|
+
text?: string | number | null;
|
|
214
|
+
style?: DockVisualStyleSection;
|
|
215
|
+
maxLines?: number;
|
|
216
|
+
animated?: boolean;
|
|
217
|
+
}
|
|
218
|
+
/** Props of `DockTitle`. */
|
|
219
|
+
export interface DockTitleProps {
|
|
220
|
+
text?: string | number | null;
|
|
221
|
+
style?: DockVisualStyleSection;
|
|
222
|
+
animated?: boolean;
|
|
223
|
+
}
|
|
224
|
+
/** Props of `DockCardHeader`. */
|
|
225
|
+
export interface DockCardHeaderProps {
|
|
226
|
+
item?: DockItem;
|
|
227
|
+
link?: DockItem;
|
|
228
|
+
activeItem?: DockItem | null;
|
|
229
|
+
itemStyle: DockVisualStyle;
|
|
230
|
+
badge?: DockBadgeState;
|
|
231
|
+
showVideoIcon?: boolean;
|
|
232
|
+
isPlaying?: boolean;
|
|
233
|
+
effectiveIconOverlay?: DockIconOverlayConfig | null;
|
|
234
|
+
isIconInteractive?: boolean;
|
|
235
|
+
handleIconClick?: DockEventHandler;
|
|
236
|
+
description?: string | null;
|
|
237
|
+
isTop?: boolean;
|
|
238
|
+
contextCommands?: DockActionDescriptor[];
|
|
239
|
+
}
|
|
240
|
+
/** Props of a single dock card. */
|
|
241
|
+
export interface DockCardItemProps {
|
|
242
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
243
|
+
activeItem?: DockItem | null;
|
|
244
|
+
onContentHeightChange?: ((height: number) => void) | null;
|
|
245
|
+
isStackHovered?: boolean;
|
|
246
|
+
onMouseEnter?: () => void;
|
|
247
|
+
onMouseLeave?: () => void;
|
|
248
|
+
expanded?: boolean;
|
|
249
|
+
hasExtensions?: boolean;
|
|
250
|
+
position: number;
|
|
251
|
+
onClick?: DockEventHandler;
|
|
252
|
+
isTop?: boolean;
|
|
253
|
+
item?: DockItem;
|
|
254
|
+
link?: DockItem;
|
|
255
|
+
isActive?: boolean;
|
|
256
|
+
statusStyle?: DockVisualStyleInput | null;
|
|
257
|
+
isStatusActive?: boolean;
|
|
258
|
+
isHudActive?: boolean;
|
|
259
|
+
isSurfaceActive?: boolean;
|
|
260
|
+
hud?: DockHudDescriptor | null;
|
|
261
|
+
clearHud?: ((id?: string) => void) | null;
|
|
262
|
+
contextCommands?: DockActionDescriptor[];
|
|
263
|
+
}
|
|
264
|
+
/** Props of the standard (non-surface) card content. */
|
|
265
|
+
export interface StandardItemContentProps {
|
|
266
|
+
item?: DockItem;
|
|
267
|
+
link?: DockItem;
|
|
268
|
+
activeItem?: DockItem | null;
|
|
269
|
+
isTop?: boolean;
|
|
270
|
+
itemStyle: DockVisualStyle;
|
|
271
|
+
badge?: DockBadgeState;
|
|
272
|
+
isActive?: boolean;
|
|
273
|
+
footerNode?: ReactNode;
|
|
274
|
+
isActionDismissed?: boolean;
|
|
275
|
+
isHudActive?: boolean;
|
|
276
|
+
hud?: DockHudDescriptor | null;
|
|
277
|
+
clearHud?: ((id?: string) => void) | null;
|
|
278
|
+
contextCommands?: DockActionDescriptor[];
|
|
279
|
+
pathname: string;
|
|
280
|
+
}
|
|
281
|
+
/** Inputs for computing the dock container height. */
|
|
282
|
+
export interface ContainerHeightOptions {
|
|
283
|
+
cardContentHeight?: number | string | null;
|
|
284
|
+
isHud?: boolean;
|
|
285
|
+
}
|
|
286
|
+
/** Options for the dock height controller hook. */
|
|
287
|
+
export interface UseDockHeightControllerOptions {
|
|
288
|
+
contentKey?: unknown;
|
|
289
|
+
isHud?: boolean;
|
|
290
|
+
setDockHeight: (height: number) => void;
|
|
291
|
+
surfacePhase?: string;
|
|
292
|
+
}
|
|
293
|
+
/** Scheduler used for dock timers. */
|
|
294
|
+
export type DockScheduler = ReturnType<typeof createScheduler>;
|
|
295
|
+
/** Identifier of a task queued on the dock scheduler. */
|
|
296
|
+
export type DockScheduledTaskId = ReturnType<DockScheduler["schedule"]>;
|
|
297
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/modules/dock/types/card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,KAAK,EACV,iBAAi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,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,mDAAmD;AACnD,MAAM,WAAW,8BAA8B;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,sCAAsC;AACtC,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAE/D,yDAAyD;AACzD,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { DockComponent, DockComponentProps } from "./card";
|
|
3
|
+
import type { DockIconSource } from "./media";
|
|
4
|
+
/** An action button shown inside a HUD. */
|
|
5
|
+
export interface DockHudAction {
|
|
6
|
+
label: string;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
tone?: "primary" | "destructive" | "secondary";
|
|
9
|
+
variant?: "primary" | "destructive" | "muted";
|
|
10
|
+
}
|
|
11
|
+
/** A normalized HUD: content or component, priority and dismissal rules. */
|
|
12
|
+
export interface DockHudDescriptor {
|
|
13
|
+
actions?: DockHudAction[];
|
|
14
|
+
autoDismissMs?: number | null;
|
|
15
|
+
component?: DockComponent | null;
|
|
16
|
+
content?: ReactNode;
|
|
17
|
+
description?: string;
|
|
18
|
+
dismissOnEscape?: boolean;
|
|
19
|
+
dismissOnNavigate?: boolean;
|
|
20
|
+
element?: ReactNode;
|
|
21
|
+
icon?: DockIconSource;
|
|
22
|
+
id: string;
|
|
23
|
+
isActive?: boolean;
|
|
24
|
+
node?: ReactNode;
|
|
25
|
+
onCancel?: (() => void) | null;
|
|
26
|
+
onDismiss?: (() => void) | null;
|
|
27
|
+
priority?: number;
|
|
28
|
+
props?: DockComponentProps;
|
|
29
|
+
renderMode?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
}
|
|
32
|
+
/** Per-call overrides merged into a HUD definition. */
|
|
33
|
+
export type DockHudOverrides = Partial<DockHudDescriptor>;
|
|
34
|
+
/** Handle returned by `defineHud` for a HUD with typed props. */
|
|
35
|
+
export interface DockHudHandle {
|
|
36
|
+
dismiss: (clearHudFn: (id?: string) => void) => void;
|
|
37
|
+
id: string;
|
|
38
|
+
update: (nextProps?: DockComponentProps) => void;
|
|
39
|
+
}
|
|
40
|
+
/** Function that shows a HUD from a handle. */
|
|
41
|
+
export interface DockHudTrigger {
|
|
42
|
+
clear: (id?: string) => void;
|
|
43
|
+
hide: (targetId?: string) => void;
|
|
44
|
+
show: (props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudHandle | null;
|
|
45
|
+
}
|
|
46
|
+
/** Handle for a HUD defined without fixed props. */
|
|
47
|
+
export interface GeneralHudHandle {
|
|
48
|
+
clearHud: (id?: string) => void;
|
|
49
|
+
setHud: (descriptor: DockHudDescriptor) => void;
|
|
50
|
+
}
|
|
51
|
+
/** Return value of `useHud`. */
|
|
52
|
+
export type UseHudReturn = DockHudTrigger | GeneralHudHandle;
|
|
53
|
+
/** API surface of a HUD handle: show, hide and hook-based use. */
|
|
54
|
+
export interface DockHudDefinition {
|
|
55
|
+
config: Omit<DockHudDescriptor, "props"> & {
|
|
56
|
+
defaultProps?: DockComponentProps;
|
|
57
|
+
};
|
|
58
|
+
create: (props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudDescriptor;
|
|
59
|
+
hide: (clearHudFn: (id?: string) => void, targetId?: string) => void;
|
|
60
|
+
id: string;
|
|
61
|
+
show: (setHudFn: (descriptor: DockHudDescriptor) => void, props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudHandle;
|
|
62
|
+
use: (props?: DockComponentProps, overrides?: DockHudOverrides) => void;
|
|
63
|
+
useTrigger: () => DockHudTrigger;
|
|
64
|
+
}
|
|
65
|
+
/** HUD state for selection mode. */
|
|
66
|
+
export interface SelectionModeState {
|
|
67
|
+
count: number;
|
|
68
|
+
hasSelection: boolean;
|
|
69
|
+
isActive: boolean;
|
|
70
|
+
isAllSelected: boolean;
|
|
71
|
+
selectedIds: (string | number)[];
|
|
72
|
+
}
|
|
73
|
+
/** HUD content attached to a long-running operation. */
|
|
74
|
+
export type DockOperationHud = DockHudDescriptor | DockComponent | ReactNode;
|
|
75
|
+
/** Loosely typed input accepted when starting an operation. */
|
|
76
|
+
export interface DockOperationInput {
|
|
77
|
+
cancellable?: boolean;
|
|
78
|
+
description?: string | null;
|
|
79
|
+
hud?: DockOperationHud;
|
|
80
|
+
icon?: DockIconSource;
|
|
81
|
+
id?: string | number;
|
|
82
|
+
label?: string;
|
|
83
|
+
metadata?: Record<string, unknown> | null;
|
|
84
|
+
onCancel?: ((result?: unknown) => unknown) | null;
|
|
85
|
+
priority?: number;
|
|
86
|
+
progress?: number | null;
|
|
87
|
+
startedAt?: number;
|
|
88
|
+
}
|
|
89
|
+
/** A normalized long-running operation shown in the dock. */
|
|
90
|
+
export interface DockOperation {
|
|
91
|
+
cancellable: boolean;
|
|
92
|
+
description: string | null;
|
|
93
|
+
endedAt?: number;
|
|
94
|
+
hud: DockOperationHud;
|
|
95
|
+
icon: DockIconSource;
|
|
96
|
+
id: string;
|
|
97
|
+
label: string;
|
|
98
|
+
metadata: Record<string, unknown>;
|
|
99
|
+
onCancel: ((result?: unknown) => unknown) | null;
|
|
100
|
+
priority: number;
|
|
101
|
+
progress: number | null;
|
|
102
|
+
result?: unknown;
|
|
103
|
+
startedAt: number;
|
|
104
|
+
status: string;
|
|
105
|
+
}
|
|
106
|
+
/** Queue of operations tracked by the dock. */
|
|
107
|
+
export interface DockOperationState {
|
|
108
|
+
entries: DockOperation[];
|
|
109
|
+
}
|
|
110
|
+
/** Action dispatched to the operation reducer. */
|
|
111
|
+
export interface DockOperationAction {
|
|
112
|
+
endedAt?: number;
|
|
113
|
+
id?: string | number | null;
|
|
114
|
+
maxEntries?: number;
|
|
115
|
+
operation?: DockOperation | null;
|
|
116
|
+
patch?: Partial<DockOperationInput>;
|
|
117
|
+
result?: unknown;
|
|
118
|
+
type: string;
|
|
119
|
+
}
|
|
120
|
+
/** Operation controls: start, update, complete, cancel and clear. */
|
|
121
|
+
export interface DockOperationActions {
|
|
122
|
+
cancel: (id: string | number, result?: unknown) => boolean;
|
|
123
|
+
clear: (id?: string | number | null) => void;
|
|
124
|
+
complete: (id: string | number, result?: unknown) => boolean;
|
|
125
|
+
start: (input?: DockOperationInput) => DockOperation | null;
|
|
126
|
+
update: (id: string | number, patch?: Partial<DockOperationInput>) => boolean;
|
|
127
|
+
}
|
|
128
|
+
/** Options for `defineHud`. */
|
|
129
|
+
export interface DefineHudOptions {
|
|
130
|
+
autoDismissMs?: number | null;
|
|
131
|
+
component?: DockComponent | null;
|
|
132
|
+
defaultProps?: DockComponentProps;
|
|
133
|
+
description?: string;
|
|
134
|
+
dismissOnEscape?: boolean;
|
|
135
|
+
dismissOnNavigate?: boolean;
|
|
136
|
+
icon?: DockIconSource;
|
|
137
|
+
id?: string;
|
|
138
|
+
priority?: number;
|
|
139
|
+
title?: string;
|
|
140
|
+
[key: string]: unknown;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=hud.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hud.d.ts","sourceRoot":"","sources":["../../../../src/modules/dock/types/hud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,2CAA2C;AAC3C,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,aA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AK,OAAO,CAAC;CAC/E;AAED,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type * from "./card";
|
|
2
|
+
export type * from "./hud";
|
|
3
|
+
export type * from "./media";
|
|
4
|
+
export type * from "./routing";
|
|
5
|
+
export type * from "./surface";
|
|
6
|
+
export type * from "./surface-flow";
|
|
7
|
+
export type * from "./theme";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/dock/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
+
import type { DockEventHandler } from "./card";
|
|
3
|
+
import type { DockVisualStyleSection } from "./theme";
|
|
4
|
+
/** Icon given as an icon name, image URL or node. */
|
|
5
|
+
export type DockIconSource = ReactNode;
|
|
6
|
+
/** Banner given as a URL or an object with position, size and opacity. */
|
|
7
|
+
export type DockBannerSource = string | {
|
|
8
|
+
bannerOpacity?: number | null;
|
|
9
|
+
bannerPosition?: string | null;
|
|
10
|
+
bannerRepeat?: string | null;
|
|
11
|
+
bannerSize?: string | null;
|
|
12
|
+
bannerUrl?: string | null;
|
|
13
|
+
opacity?: number | null;
|
|
14
|
+
position?: string | null;
|
|
15
|
+
repeat?: string | null;
|
|
16
|
+
size?: string | null;
|
|
17
|
+
url?: string | null;
|
|
18
|
+
} | null;
|
|
19
|
+
/** Small overlay drawn on top of a card icon. */
|
|
20
|
+
export interface DockIconOverlayConfig {
|
|
21
|
+
icon: DockIconSource;
|
|
22
|
+
title?: string;
|
|
23
|
+
onClick?: DockEventHandler;
|
|
24
|
+
}
|
|
25
|
+
/** Banner accepted by `useDockBanner`. */
|
|
26
|
+
export type DockBannerInput = string | {
|
|
27
|
+
bannerOpacity?: number | null;
|
|
28
|
+
bannerPosition?: string | null;
|
|
29
|
+
bannerRepeat?: string | null;
|
|
30
|
+
bannerSize?: string | null;
|
|
31
|
+
bannerUrl?: string | null;
|
|
32
|
+
opacity?: number | null;
|
|
33
|
+
position?: string | null;
|
|
34
|
+
repeat?: string | null;
|
|
35
|
+
size?: string | null;
|
|
36
|
+
url?: string | null;
|
|
37
|
+
};
|
|
38
|
+
/** Props of `DockCardBanner`. */
|
|
39
|
+
export interface DockCardBannerProps {
|
|
40
|
+
banner?: DockBannerSource;
|
|
41
|
+
bannerUrl?: string | null;
|
|
42
|
+
bannerPosition?: string | null;
|
|
43
|
+
bannerSize?: string | null;
|
|
44
|
+
bannerRepeat?: string | null;
|
|
45
|
+
bannerOpacity?: number | null;
|
|
46
|
+
isActive?: boolean;
|
|
47
|
+
isSurfaceActive?: boolean;
|
|
48
|
+
isHudActive?: boolean;
|
|
49
|
+
isStatusActive?: boolean;
|
|
50
|
+
style?: CSSProperties;
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
/** Props of `DockIcon`. */
|
|
54
|
+
export interface DockIconProps {
|
|
55
|
+
icon: DockIconSource;
|
|
56
|
+
iconOverlay?: DockIconOverlayConfig | null;
|
|
57
|
+
style?: DockVisualStyleSection;
|
|
58
|
+
onClick?: DockEventHandler | null;
|
|
59
|
+
ariaLabel?: string;
|
|
60
|
+
animated?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/** Props of the icon overlay. */
|
|
63
|
+
export interface DockIconOverlayProps {
|
|
64
|
+
overlay?: DockIconOverlayConfig | null;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../../src/modules/dock/types/media.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,qDAAqD;AACrD,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC;AAEvC,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN;IACE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,MA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