@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
package/docs/modules/dock.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Dock — `@omerdlw/base-framework/
|
|
1
|
+
# Dock — `@omerdlw/base-framework/dock`
|
|
2
2
|
|
|
3
3
|
> **Read this first if you need to:** show a page title/icon/banner, open a sheet or wizard, block navigation, show progress or an error, add toolbar buttons, or understand why the bottom card does what it does.
|
|
4
4
|
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
| | |
|
|
8
8
|
| :----------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
-
| **Import** | `import { … } from "@omerdlw/base-framework/
|
|
9
|
+
| **Import** | `import { … } from "@omerdlw/base-framework/dock"` (barrel only, no deep imports from `src/app` or `src/features`) |
|
|
10
10
|
| **Module id** | `dock` (`dockModule`, installed by `CoreProvider` through `defaultModules`) |
|
|
11
11
|
| **Renders** | `Dock` overlay, portalled to `document.body`, DOM id `dock-card-stack` |
|
|
12
12
|
| **Registry type** | `dock` (key policy `path`, lifecycle `route`, cleanup delay 600 ms, entries merged by priority) |
|
|
13
13
|
| **Page slice** | `usePage({ dock: {…} })` → controller `page.modules.dock` |
|
|
14
|
-
| **Peers (`uses`)** | `loading`, `media`, `navigation`, `notification` (optional; inert stand-ins when absent, a private navigator for `navigation`)
|
|
14
|
+
| **Peers (`uses`)** | `loading`, `media`, `navigation`, `notification` (optional; inert stand-ins when absent, a private navigator for `navigation`) |
|
|
15
15
|
| **Theme** | `dockTheme` slots in `src/config/dock.module.theme.ts` |
|
|
16
16
|
| **Events it owns** | `DOCK_STATUS_SET`, `DOCK_STATUS_CLEAR`, `DOCK_GUARD`, `DOCK_NOT_FOUND`, `DOCK_NAVIGATE_START` / `DOCK_NAVIGATE` / `DOCK_NAVIGATE_END`, `DOCK_UPDATE_BADGE` |
|
|
17
17
|
| **CSS output** | `--dock-h` on `<html>` (dock height + 16 px buffer) |
|
|
@@ -117,7 +117,7 @@ operations.complete(op!.id);
|
|
|
117
117
|
|
|
118
118
|
```ts
|
|
119
119
|
import { globalEvents } from "@omerdlw/base-framework/events";
|
|
120
|
-
import { DOCK_EVENTS } from "@omerdlw/base-framework/
|
|
120
|
+
import { DOCK_EVENTS } from "@omerdlw/base-framework/dock";
|
|
121
121
|
|
|
122
122
|
globalEvents.emit(DOCK_EVENTS.STATUS_SET, {
|
|
123
123
|
type: "SAVED",
|
|
@@ -150,7 +150,7 @@ globalEvents.emit(DOCK_EVENTS.STATUS_SET, {
|
|
|
150
150
|
|
|
151
151
|
## 5. Public API reference
|
|
152
152
|
|
|
153
|
-
Everything below is exported from `@omerdlw/base-framework/
|
|
153
|
+
Everything below is exported from `@omerdlw/base-framework/dock`. Anything not listed is internal (see [§19](#19-file-map)).
|
|
154
154
|
|
|
155
155
|
### 5.1 Installation and state
|
|
156
156
|
|
|
@@ -179,7 +179,7 @@ Everything below is exported from `@omerdlw/base-framework/modules/dock`. Anythi
|
|
|
179
179
|
|
|
180
180
|
| Export | Signature | Notes |
|
|
181
181
|
| :---------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
182
|
-
| `usePage({ dock })` | from `@omerdlw/base-framework/kernel`
|
|
182
|
+
| `usePage({ dock })` | from `@omerdlw/base-framework/kernel` | Preferred. See [§6](#6-route-cards-and-the-page-slice). |
|
|
183
183
|
| `useDockRegistration(config, options?)` | `(DockPageConfig \| null, RegistryMetadata & { enabled? })` | Register a card outside `usePage` (for example a layout-level account card). `options.priority` / `source` decide who wins on the same path. |
|
|
184
184
|
| `useDockBanner(banner, options?)` | `(string \| DockBannerInput \| null, { path?, position?, size?, opacity?, repeat? })` | Register only a banner image for a path. |
|
|
185
185
|
| `useDockConfig(configOrTitle?, options?)` | returns `{ activeItem, expanded, dockHeight, pathname, navigate, openSurface, closeSurface, closeAllSurfaces, setHud, clearHud, setExpanded, setSearchQuery }` | Legacy convenience: registers a card **and** returns a small action bag. `useDockConfig("Title")` is shorthand for `{ title }`. |
|
|
@@ -215,41 +215,41 @@ Everything below is exported from `@omerdlw/base-framework/modules/dock`. Anythi
|
|
|
215
215
|
|
|
216
216
|
### 5.5 Building blocks for custom surface content
|
|
217
217
|
|
|
218
|
-
| Export
|
|
219
|
-
|
|
|
220
|
-
| `DockCardHeader`, `DockCardBanner`, `DockIcon`, `DockTitle`, `DockDescription`
|
|
221
|
-
| `useDockActionClass()`
|
|
222
|
-
| `isValidBannerUrl(value)`
|
|
223
|
-
| `useDockMotion()`
|
|
224
|
-
| `dockTheme`
|
|
225
|
-
| Types
|
|
218
|
+
| Export | Notes |
|
|
219
|
+
| :----------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
220
|
+
| `DockCardHeader`, `DockCardBanner`, `DockIcon`, `DockTitle`, `DockDescription` | The same pieces the route card uses. |
|
|
221
|
+
| `useDockActionClass()` | Returns `(options?) ⇒ className` for buttons that must look like dock actions (`variant`, `className`, `tone`). Needs the theme. |
|
|
222
|
+
| `isValidBannerUrl(value)` | Banner URL guard (rejects unsafe/empty values). |
|
|
223
|
+
| `useDockMotion()` | The app's dock motion (retimed by its tempo, or reduced), for surface content that should move like the dock: `useDockMotion().variants.fade`, `.transitions.text`, … |
|
|
224
|
+
| `dockTheme` | The theme spec (for `defineTheme`). |
|
|
225
|
+
| Types | `DockItem`, `DockPageConfig`, `DockPageApi`, `DockActions`, `DockState`, `DockActionDescriptor`, `SurfaceDescriptor` / `SurfaceEntry`, `SurfaceStep`, `SurfaceResult`, `SurfaceFlowDefinitionInput`, `DockHudDescriptor`, `DockOperation`, `DockGuardDefinition`, `BreadcrumbConfig`, … (`export type * from "./types"`). |
|
|
226
226
|
|
|
227
227
|
## 6. Route cards and the page slice
|
|
228
228
|
|
|
229
229
|
### 6.1 `DockPageConfig` (the `dock` key of `usePage`)
|
|
230
230
|
|
|
231
|
-
| Field | Type | Meaning
|
|
232
|
-
| :--------------------------------------- | :--------------------------------------------------------- |
|
|
233
|
-
| `title`, `description` | `string \| ReactNode` | Header text. `title` falls back to the page-level `title`.
|
|
234
|
-
| `icon` | iconify string (`"solar:home-2-bold"`), image URL, or node | Card icon.
|
|
235
|
-
| `iconOverlay` | `{ icon, title?, onClick? }` | Small badge on the icon.
|
|
236
|
-
| `badge` | `ReactNode` | Badge on the card. Update it live with `globalEvents.emit(DOCK_EVENTS.UPDATE_BADGE, { key: card.name.toLowerCase(), value, color? })` (`value` `null`/`""` hides it); needs `name`.
|
|
237
|
-
| `banner` / `bannerUrl` | `string \| { url, position, size, repeat, opacity }` | Header banner. Object form is flattened to `bannerUrl` + `banner*`. Individual fields: `bannerPosition`, `bannerSize`, `bannerRepeat`, `bannerOpacity`.
|
|
238
|
-
| `style` | `DockVisualStyleInput` | Per-card overrides for `card`, `icon`, `title`, `description` (`className`, CSS, `scale`, `size`), plus `active` / `inactive` / `hover` variants, `background`, `borderColor`. Merged section by section across registrations.
|
|
239
|
-
| `className`, `width` | | Extra class; card width in px (clamped to the viewport).
|
|
240
|
-
| `component`, `content`, `props` | | Replace the card body with your own component/node.
|
|
241
|
-
| `action`, `headerAction` | `ReactNode \| ComponentType` | Inline action under the header / in the header. Shown only on the card that owns the current path (or overlay cards).
|
|
242
|
-
| `actions` | `Partial<DockActionDescriptor>[]` | Toolbar actions while the page is mounted ([§10](#10-contextual-actions)).
|
|
243
|
-
| `guard` | `{ when: boolean, message?, onBlock? }` | Navigation guard while the page is mounted ([§12](#12-navigation-guards-and-transactions)).
|
|
244
|
-
| `surfaces` | `Record<string, SurfaceDef \| Component>` | Named surfaces opened with `page.modules.dock.surface("key", props)`.
|
|
245
|
-
| `name` | `string` | Stable name used for search and active-item matching.
|
|
246
|
-
| `path`, `targetPath` | `string` | `path` defaults to the current pathname. `targetPath` is where clicking navigates when it differs from `path`.
|
|
247
|
-
| `isLoading` | `boolean` | Show the loading skeleton card. Defaults from `usePage({ loading })` (`true`, a string, or `{ isLoading }`).
|
|
248
|
-
| `isOverlay`, `dismissible` | `boolean` | Overlay cards dim the page and ignore outside clicks.
|
|
249
|
-
| `dockPolicy` | `{ clearTransientState?, dismissSurfaces?, prefetch? }` | Route policy used when navigating **to** this card ([§12.4](#124-route-policy)).
|
|
250
|
-
| `keepWhenDescendant`, `prefetchDisabled` | `boolean \| (activePath, item) => boolean`, `boolean` | By default a card whose path is a **prefix of the active path** (an ancestor, except `/`) is removed from the stack so the same section is not shown twice; `keepWhenDescendant` keeps it. `prefetchDisabled` opts out of prefetch.
|
|
231
|
+
| Field | Type | Meaning |
|
|
232
|
+
| :--------------------------------------- | :--------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
233
|
+
| `title`, `description` | `string \| ReactNode` | Header text. `title` falls back to the page-level `title`. |
|
|
234
|
+
| `icon` | iconify string (`"solar:home-2-bold"`), image URL, or node | Card icon. |
|
|
235
|
+
| `iconOverlay` | `{ icon, title?, onClick? }` | Small badge on the icon. |
|
|
236
|
+
| `badge` | `ReactNode` | Badge on the card. Update it live with `globalEvents.emit(DOCK_EVENTS.UPDATE_BADGE, { key: card.name.toLowerCase(), value, color? })` (`value` `null`/`""` hides it); needs `name`. |
|
|
237
|
+
| `banner` / `bannerUrl` | `string \| { url, position, size, repeat, opacity }` | Header banner. Object form is flattened to `bannerUrl` + `banner*`. Individual fields: `bannerPosition`, `bannerSize`, `bannerRepeat`, `bannerOpacity`. |
|
|
238
|
+
| `style` | `DockVisualStyleInput` | Per-card overrides for `card`, `icon`, `title`, `description` (`className`, CSS, `scale`, `size`), plus `active` / `inactive` / `hover` variants, `background`, `borderColor`. Merged section by section across registrations. |
|
|
239
|
+
| `className`, `width` | | Extra class; card width in px (clamped to the viewport). |
|
|
240
|
+
| `component`, `content`, `props` | | Replace the card body with your own component/node. |
|
|
241
|
+
| `action`, `headerAction` | `ReactNode \| ComponentType` | Inline action under the header / in the header. Shown only on the card that owns the current path (or overlay cards). |
|
|
242
|
+
| `actions` | `Partial<DockActionDescriptor>[]` | Toolbar actions while the page is mounted ([§10](#10-contextual-actions)). |
|
|
243
|
+
| `guard` | `{ when: boolean, message?, onBlock? }` | Navigation guard while the page is mounted ([§12](#12-navigation-guards-and-transactions)). |
|
|
244
|
+
| `surfaces` | `Record<string, SurfaceDef \| Component>` | Named surfaces opened with `page.modules.dock.surface("key", props)`. |
|
|
245
|
+
| `name` | `string` | Stable name used for search and active-item matching. |
|
|
246
|
+
| `path`, `targetPath` | `string` | `path` defaults to the current pathname. `targetPath` is where clicking navigates when it differs from `path`. |
|
|
247
|
+
| `isLoading` | `boolean` | Show the loading skeleton card. Defaults from `usePage({ loading })` (`true`, a string, or `{ isLoading }`). |
|
|
248
|
+
| `isOverlay`, `dismissible` | `boolean` | Overlay cards dim the page and ignore outside clicks. |
|
|
249
|
+
| `dockPolicy` | `{ clearTransientState?, dismissSurfaces?, prefetch? }` | Route policy used when navigating **to** this card ([§12.4](#124-route-policy)). |
|
|
250
|
+
| `keepWhenDescendant`, `prefetchDisabled` | `boolean \| (activePath, item) => boolean`, `boolean` | By default a card whose path is a **prefix of the active path** (an ancestor, except `/`) is removed from the stack so the same section is not shown twice; `keepWhenDescendant` keeps it. `prefetchDisabled` opts out of prefetch. |
|
|
251
251
|
| `stackOrder` | `number` | Where the card sits in the stack under the active card, ascending from the card nearest to it. Cards without one keep registration order at `0`, and `/` falls back to last. Use a negative value to pull a card toward the active one. |
|
|
252
|
-
| `registry` | `RegistryMetadata` | `priority`, `source`, `lifecycle`, … for this registration.
|
|
252
|
+
| `registry` | `RegistryMetadata` | `priority`, `source`, `lifecycle`, … for this registration. |
|
|
253
253
|
|
|
254
254
|
How `usePage` turns the slice into registry entries (`dockModule.page`):
|
|
255
255
|
|
|
@@ -655,13 +655,13 @@ See [media.md](./media.md) for how sources are registered (`usePage({ media })`,
|
|
|
655
655
|
|
|
656
656
|
## 16. Layout and geometry
|
|
657
657
|
|
|
658
|
-
| What
|
|
659
|
-
|
|
|
660
|
-
| Card base height
|
|
661
|
-
| Card width
|
|
662
|
-
| Published height
|
|
658
|
+
| What | Value |
|
|
659
|
+
| :--------------- | :---------------------------------------------------------------------------- |
|
|
660
|
+
| Card base height | 68 px; HUD 52 px; chrome 20 px; viewport margin 24 px |
|
|
661
|
+
| Card width | 460 px (clamped to `viewport − 16/32 px`), or the card/surface `width` |
|
|
662
|
+
| Published height | `--dock-h` on `<html>` and `dockHeight` in state (card height + 16 px buffer) |
|
|
663
663
|
|
|
664
|
-
These are what the layout **measures**, so they stay in the module. Where the cards
|
|
664
|
+
These are what the layout **measures**, so they stay in the module. Where the cards _rest_ is yours: `motion.deck.stacking` holds the offsets, scales, depth fade and how many cards stay in view ([§17](#17-theming)). If you change a card's height, change `stacking.expanded.offsetY` with it (the starter spaces expanded cards by the card height plus a 4 px gap).
|
|
665
665
|
|
|
666
666
|
Reserve space with `useDockHeight().padding` or `padding-bottom: var(--dock-h)`. Height changes are measured with a `ResizeObserver` and ignored below 0.5 px; during surface close phases the height is locked to the base height.
|
|
667
667
|
|
|
@@ -671,21 +671,21 @@ The module contains **no design classes**. Every slot comes from `dockTheme` (`s
|
|
|
671
671
|
|
|
672
672
|
The theme also carries the dock's **motion** (`motion: DockMotion`, [theming §5](../theming.md#5-motion-your-app-owns-every-animation)). Everything the dock animates, and every number that shapes it, is yours:
|
|
673
673
|
|
|
674
|
-
| Key
|
|
675
|
-
|
|
|
676
|
-
| `transitions`, `variants` | Every transition and variant, including `transitions.layout` for parts that slide when their neighbours change (the surface close control, the breadcrumbs).
|
|
677
|
-
| `phases`
|
|
678
|
-
| `timings`
|
|
679
|
-
| `deck`
|
|
680
|
-
| `opacity`
|
|
681
|
-
| `drag`
|
|
682
|
-
| `skeleton`
|
|
674
|
+
| Key | What you decide |
|
|
675
|
+
| :------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
676
|
+
| `transitions`, `variants` | Every transition and variant, including `transitions.layout` for parts that slide when their neighbours change (the surface close control, the breadcrumbs). |
|
|
677
|
+
| `phases` | What the deck, header and body play in each surface phase (`idle`, `dismissAction`, `expandBody`, `open`, `anticipation`, `collapseBody`, `restoreHeader`): the deck's size/shadow transition (`null` follows its resting one, a function gets the resize distance), its transform transition and `scale` (below 1 compresses it), the body's and header's transitions, and `headerReturn`. |
|
|
678
|
+
| `timings` | How long each phase holds (`dismissAction`, `anticipation`, `expandBody`, `collapseBody`, `restoreHeader`) plus the card staggers, in seconds. The surface state machine schedules its phases from these, so they follow the app's tempo. `restoreHeader: 0` skips that phase. |
|
|
679
|
+
| `deck` | `elevation`, `peek`, `exit`, `tapScale`; `stacking` (where cards rest: collapsed/expanded offsets, scale, depth fade, the shelf, and how many cards stay in view normally, with an extension shelf and under a status); `breadcrumbOffset`; `fullscreenOpacity`; `origin`; `resizeFallback`. |
|
|
680
|
+
| `opacity` | The resting opacity of the card **banner** and **description**. A page's own `bannerOpacity` or description `style.opacity` still wins. |
|
|
681
|
+
| `drag` | The swipe-to-dismiss feel (`elastic`, `range`, `opacity`, `scale`) and `dismiss: { offset, velocity }`, the distance (px) or speed (px/s) past which a swipe closes the surface. |
|
|
682
|
+
| `skeleton` | The class of the loading skeletons. |
|
|
683
683
|
|
|
684
|
-
|
|
684
|
+
The framework ships no dock motion: write `DockMotion` in your app. Geometry and opacities are not times, so tempo and reduced motion leave them alone; only transitions and `timings` are stretched or collapsed.
|
|
685
685
|
|
|
686
686
|
**The phases and their order belong to the dock.** A surface always opens `dismissAction → expandBody → open` and closes `anticipation → collapseBody → restoreHeader`; the render code relies on that sequence. You decide how each phase looks and how long it holds, not which phases exist.
|
|
687
687
|
|
|
688
|
-
Stays in code: what the layout measures (card, HUD and chrome heights, viewport margin), per-position z-index (`
|
|
688
|
+
Stays in code: what the layout measures (card, HUD and chrome heights, viewport margin), per-position z-index inside the stack (`10 − position`), compositor hints, the swipe's direction and its non-draggable targets, and the focus trap. The theme and its motion are **required**: a missing theme throws `Theme "dock" is missing…` and a theme without motion throws `Motion for theme "dock" is missing…`. `DockProvider` on its own (no dock theme) still runs; its surface phases advance immediately.
|
|
689
689
|
|
|
690
690
|
Per-card overrides use `style` on the card (see [§6.1](#61-dockpageconfig-the-dock-key-of-usepage)). Custom buttons inside surfaces should use `useDockActionClass()` so they match.
|
|
691
691
|
|
|
@@ -709,53 +709,34 @@ Gotchas:
|
|
|
709
709
|
- A flow `snapshot` must be a plain object; anything else becomes `null`.
|
|
710
710
|
- Status events are global: remember to emit `DOCK_STATUS_CLEAR` for sticky (`duration: 0`) statuses.
|
|
711
711
|
- Guards registered by an unmounted page disappear with it; `clearDockGuards()` drops every guard, including other pages'.
|
|
712
|
-
- No arbitrary durations or `z-*` classes in surface content: use your app's motion (`useDockMotion()`, or your own tokens) and
|
|
712
|
+
- No arbitrary durations or `z-*` classes in surface content: use your app's motion (`useDockMotion()`, or your own tokens) and your app's layers ([Rules 4 and 5](../architecture-and-rules.md)).
|
|
713
713
|
|
|
714
714
|
## 19. File map
|
|
715
715
|
|
|
716
|
-
`src/modules/dock/`
|
|
717
|
-
|
|
718
|
-
|
|
|
719
|
-
|
|
|
720
|
-
| `index.ts`
|
|
721
|
-
| `
|
|
722
|
-
| `
|
|
723
|
-
| `
|
|
724
|
-
| `
|
|
725
|
-
| `
|
|
726
|
-
| `
|
|
727
|
-
| `
|
|
728
|
-
| `
|
|
729
|
-
| `
|
|
730
|
-
| `
|
|
731
|
-
| `
|
|
732
|
-
| `
|
|
733
|
-
| `
|
|
734
|
-
| `
|
|
735
|
-
| `
|
|
736
|
-
| `motion.ts` | `useDockMotion`, `useDockSurfaceTimings`, and helpers that pick from the app's dock motion by state (stack, cards, media, backdrop). No motion values. |
|
|
737
|
-
| `runtime/dock.tsx` | `useDock` (view controller), `useDockModel`, layout ordering, expansion, operation state, route bridge. |
|
|
738
|
-
| `runtime/display.ts` | Item pipeline: registry entries → filtered items → active item (applies surface / status / media). |
|
|
739
|
-
| `runtime/pipeline.ts` | Item identity, active item detection, ancestor deduplication, loading item cleanup, and stacking reorder. |
|
|
740
|
-
| `runtime/commands.ts` | Context-action registry, `useDockContextActions`, `defineDockAction`. |
|
|
741
|
-
| `routing/navigation.ts` | `useDockNavigation` (on a navigation trip), route policy, topology, prefetch, location key, view connection. |
|
|
742
|
-
| `routing/guards.ts` | Guard registry, `useDockGuard`, guard confirmation. |
|
|
743
|
-
| `routing/continuity.ts` | Scroll/focus snapshots and return handoffs. |
|
|
744
|
-
| `routing/breadcrumbs.tsx` | Breadcrumb resolution, provider, overrides, `defineBreadcrumb`. |
|
|
745
|
-
| `status/model.tsx` | Status factories, priorities, persistence, `applyStatusOverlay`. |
|
|
746
|
-
| `status/events.tsx` | Event subscriptions that turn app events into statuses. |
|
|
747
|
-
| `status/hooks.ts` | `useDockStatus`: the status state machine, timers, restoration. |
|
|
748
|
-
| `surface/definition.ts` | Normalization, `defineSurface`, `defineStepSurface`, `useSurface`, `useSurfaceStep`, flow definitions/sessions. |
|
|
749
|
-
| `surface/machine.ts` | Pure transition machine (open/close/close-all/advance → state + effects), URL sync, resource release. |
|
|
750
|
-
| `surface/stack.ts` | `useSurfaceStack`: the imperative API (`openSurface`, steps, close choreography, focus restore). |
|
|
751
|
-
| `surface/hooks.tsx` | Flow operations, lifecycle effects (back button, unmount), `useSurfaceFlow`, extension/shell models. |
|
|
752
|
-
| `surface/context.tsx` | Surface item context, header-action and extension stores, `useSurface*` hooks. |
|
|
753
|
-
| `surface/view-model.ts` | `resolveSurfaceViewModel` / `applySurfaceToDockItem`: surface state → dock item. |
|
|
754
|
-
| `surface/helpers.ts` | Surface descriptors, extension normalization, snapshot normalization, and surface return handshakes. |
|
|
716
|
+
`src/modules/dock/` uses the folder layout ([README §4](./README.md#4-canonical-module-template)) and keeps its sub-features in `routing/`, `runtime/`, `status/` and `surface/`, each split the same way into `components/`, `hooks/`, `model/` and `lib/` where needed. No file exceeds 400 lines.
|
|
717
|
+
|
|
718
|
+
| Path | Responsibility |
|
|
719
|
+
| :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
720
|
+
| `index.ts` | Public barrel (named exports only). |
|
|
721
|
+
| `constants.ts` | Event names, attention kinds/priorities, surface phases, operation enums, card dimensions, status priorities, timeouts, `dockTheme`. |
|
|
722
|
+
| `context.ts` | `DockContext`, `EMPTY_DOCK_STATE`, `useDockState`, `useDockSelector`, `useDockActions`, `useDockHeight`, and the media / loading / notification peers. |
|
|
723
|
+
| `provider.tsx` | `DockProvider`: composes route bridge, expansion, operations, HUD registry, command registry, surface stack, continuity; publishes the dock state. |
|
|
724
|
+
| `module.tsx` | `dockModule`, page slice (`selectPageDock`, `toDockEntries`, `validateDockEntry`, `mergeDockEntries`, `openPageSurface`), kernel type augmentation. |
|
|
725
|
+
| `motion.ts` | `useDockMotion`, `useDockSurfaceTimings`, and helpers that pick from the app's dock motion by state. |
|
|
726
|
+
| `hud.ts` | `defineHud`, `useHud`, `useDockHud`, `useDockHudLifecycle`. |
|
|
727
|
+
| `types/` | Contracts split by area: `card`, `hud`, `media`, `routing`, `surface`, `surface-flow`, `theme`, and `index.ts`. |
|
|
728
|
+
| `components/` | One public component per file: `Dock`, card item, header, banner, command bar, icon, title, description, badge, item content, media controls and scrubber, HUD view, breadcrumbs card, status actions; `components/surface/` holds the surface shell, controls, header button, extensions bar, item content and action. |
|
|
729
|
+
| `hooks/` | View models for those components, plus `useDockRegistration`, `useDockConfig`, `useDockBanner`, `useDockDimensions`, `useSurfaceReturn`, the HUD registry, focus trap, keyboard, viewport and height hooks. |
|
|
730
|
+
| `model/` | Pure logic: dock state (attention, scene, operations), HUD definitions, layout, paths, page entry and page surface, surface return. |
|
|
731
|
+
| `lib/` | Pure helpers: DOM focus and element helpers, styles, card and card-item props, banner, command bar, media math, general helpers (`createDockScheduler`). |
|
|
732
|
+
| `runtime/` | `dock.tsx` (`useDockModel`), `display.ts` (item pipeline), `pipeline.ts` (identity, ordering), `commands.ts` (context actions), `provider-actions.ts`; `hooks/` (`useDock`, layout, expansion, operation state, route bridge); `model/` (attention, cards, items, layout). |
|
|
733
|
+
| `routing/` | `navigation.ts` (`useDockNavigation`), `guards.ts`, `continuity.ts`, `breadcrumbs.tsx`; `model/` (route policy, topology, continuity reducer), `hooks/use-route-prefetch.ts`, `lib/restore.ts`. |
|
|
734
|
+
| `status/` | `model.tsx` (factories, `applyStatusOverlay`), `events.tsx` (app events → statuses), `hooks.ts` (`useDockStatus`), `state.ts` (update and expiry rules), `action-options.ts`. |
|
|
735
|
+
| `surface/` | `definition.ts` (`defineSurface`, `defineStepSurface`, `useSurface`), `machine.ts` (pure transitions), `stack.ts` (`useSurfaceStack`), `context.tsx`, `view-model.ts`, `helpers.ts`, `constants.ts`; `hooks/` (`useSurfaceFlow`, shell, controls, extensions, header button models); `components/` (flow and extensions providers); `model/` (normalize, builder, open, records, steps, transition state, URL sync); `runtime/` (choreography, open, steps, flows, release); `lib/` (drag, target). |
|
|
755
736
|
|
|
756
737
|
## 20. Dependencies
|
|
757
738
|
|
|
758
|
-
- **Uses:** `@omerdlw/base-framework/kernel` (`defineModule`, `definePeer`, `useRegistryEntries`, `useModuleRegistration`), `@omerdlw/base-framework/events`, `@omerdlw/base-framework/hooks`, `@omerdlw/base-framework/utils`, `@omerdlw/base-framework/
|
|
739
|
+
- **Uses:** `@omerdlw/base-framework/kernel` (`defineModule`, `definePeer`, `useRegistryEntries`, `useModuleRegistration`), `@omerdlw/base-framework/events`, `@omerdlw/base-framework/hooks`, `@omerdlw/base-framework/utils`, `@omerdlw/base-framework/ui`, `@omerdlw/base-framework/theme`, `next/navigation`, `motion/react`.
|
|
759
740
|
- **Peers:** `loading` (page-loading flag, `stopLoading` after navigation), `media` (session state and controls), `notification` (is a toast visible). Each is read through `definePeer` with an inert stand-in, and listed in `uses`.
|
|
760
741
|
- **Used by:** `src/features/**` (surfaces, statuses, context actions, motion presets), `src/app/**` (`usePage({ dock })`, `registry.tsx`), `controls` and `notification` (they locate the dock by DOM id `dock-card-stack`), and the `context-menu` (reads the active card through `useModuleState("dock", …)`).
|
|
761
742
|
- **Never imports** another module's source (enforced by `npm run check:architecture`).
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
| | |
|
|
8
8
|
| :--------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
-
| **Import** | `import { ComponentError, getErrorReporter, … } from "@omerdlw/base-framework/error"`
|
|
9
|
+
| **Import** | `import { ComponentError, getErrorReporter, … } from "@omerdlw/base-framework/error"` |
|
|
10
10
|
| **Layer** | `src/core` (frozen upstream). Client-only (`"use client"`). |
|
|
11
11
|
| **Installed by** | `CoreProvider`: `GlobalError` wraps everything, `ModuleError` is the boundary around every module backdrop/overlay, `GlobalErrorListener` is mounted once |
|
|
12
12
|
| **Emits** | `EVENT_TYPES.APP_ERROR` (`{ error, errorInfo?, message, resetError? }`) |
|
|
@@ -156,5 +156,5 @@ Raw `Error.message` values (database, SDK, vendor wording) never reach the UI. `
|
|
|
156
156
|
|
|
157
157
|
## 11. Dependencies
|
|
158
158
|
|
|
159
|
-
- **Uses:** `@omerdlw/base-framework/events` (`APP_ERROR`), `@omerdlw/base-framework/
|
|
159
|
+
- **Uses:** `@omerdlw/base-framework/events` (`APP_ERROR`), `@omerdlw/base-framework/ui` (`Button`, `Icon` for the fallback), `@omerdlw/base-framework/theme`, `@omerdlw/base-framework/utils` (`report`, `setReportSink`, `toUserMessage`), `next/navigation` (`usePathname`).
|
|
160
160
|
- **Used by:** `src/core/provider.tsx`; the dock (turns `APP_ERROR` into its error status) and the notification module (toasts `APP_ERROR` with `notify: true`) react to the event without importing this module.
|
package/docs/modules/kernel.md
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
## 1. At a glance
|
|
6
6
|
|
|
7
|
-
| |
|
|
8
|
-
| :------------------- |
|
|
9
|
-
| **Import** | `import { usePage, defineModule, definePeer, useModule, … } from "@omerdlw/base-framework/kernel"`
|
|
10
|
-
| **Layer** | `src/core` (frozen upstream). Knows **no module by name**; never imports `@omerdlw/base-framework
|
|
11
|
-
| **Mounted by** | `CoreProvider` (`src/core/provider.tsx`) → `ModuleHost`
|
|
12
|
-
| **State** | A scoped, subscribable **registry** (`createRegistryStore`) and a **page controller stack**
|
|
13
|
-
| **Extension points** | `defineModule({...})`, module augmentation of `CoreModules`, `PageConfig`, `RegistrySchema`
|
|
14
|
-
| **Tests** | `tests/core/kernel.test.ts`
|
|
7
|
+
| | |
|
|
8
|
+
| :------------------- | :---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| **Import** | `import { usePage, defineModule, definePeer, useModule, … } from "@omerdlw/base-framework/kernel"` |
|
|
10
|
+
| **Layer** | `src/core` (frozen upstream). Knows **no module by name**; never imports `@omerdlw/base-framework/<module>`, `@/features/**`, `@/app/**`. |
|
|
11
|
+
| **Mounted by** | `CoreProvider` (`src/core/provider.tsx`) → `ModuleHost` |
|
|
12
|
+
| **State** | A scoped, subscribable **registry** (`createRegistryStore`) and a **page controller stack** |
|
|
13
|
+
| **Extension points** | `defineModule({...})`, module augmentation of `CoreModules`, `PageConfig`, `RegistrySchema` |
|
|
14
|
+
| **Tests** | `tests/core/kernel.test.ts` |
|
|
15
15
|
|
|
16
16
|
## 2. Mental model
|
|
17
17
|
|
|
@@ -241,24 +241,36 @@ Pass the module id to `useModule`, `useModuleState` and `definePeer` as a **stri
|
|
|
241
241
|
|
|
242
242
|
## 9. File map
|
|
243
243
|
|
|
244
|
-
| File
|
|
245
|
-
|
|
|
246
|
-
| `index.ts`
|
|
247
|
-
| `types.ts`
|
|
248
|
-
| `
|
|
249
|
-
| `
|
|
250
|
-
| `
|
|
251
|
-
| `
|
|
252
|
-
| `
|
|
253
|
-
| `
|
|
254
|
-
| `
|
|
255
|
-
| `
|
|
256
|
-
| `
|
|
257
|
-
| `
|
|
258
|
-
| `
|
|
259
|
-
| `
|
|
260
|
-
| `
|
|
261
|
-
| `
|
|
244
|
+
| File | Responsibility |
|
|
245
|
+
| :----------------------- | :------------------------------------------------------------------------------------------------------------------- |
|
|
246
|
+
| `index.ts` | Public barrel. |
|
|
247
|
+
| `types.ts` | Registry entry, source, lifecycle and metadata contracts. |
|
|
248
|
+
| `types-modules.ts` | Module, runtime and page-module contracts (`CoreModules`, `ModuleId`, `PageModuleApi`). |
|
|
249
|
+
| `types-page.ts` | Page options, page config and controller contracts. |
|
|
250
|
+
| `types-store.ts` | Registry store, queue, apply-context and transaction contracts. |
|
|
251
|
+
| `constants.ts` | Registry sources, source priority/rank, lifecycles, metadata keys, default scope. |
|
|
252
|
+
| `utils.ts` | Input and scope resolution, config merging (`mergeModuleConfigs`), small guards. |
|
|
253
|
+
| `schema.ts` | Key/value/metadata validation, metadata normalization (lifecycle → cleanup delay). |
|
|
254
|
+
| `operations.ts` | Pure registry state machine (`createRegistryOperations`): records, ordering, merge, resolution cache. |
|
|
255
|
+
| `operations-records.ts` | Source records: keys, lookup, priority. |
|
|
256
|
+
| `operations-resolve.ts` | Entry value resolution and the resolver cache. |
|
|
257
|
+
| `store.ts` | `createRegistryStore`: composes the `store-*` parts into `batch`, `transaction`, register and read APIs. |
|
|
258
|
+
| `store-entries.ts` | Initial entries normalization and initial state. |
|
|
259
|
+
| `store-registration.ts` | Registration validation, value cloning, register operations. |
|
|
260
|
+
| `store-subscriptions.ts` | Keyed listener registry and change notification. |
|
|
261
|
+
| `store-snapshots.ts` | Snapshot readers. |
|
|
262
|
+
| `store-handles.ts` | Registration handles (and the no-op handle). |
|
|
263
|
+
| `store-batch.ts` | Batch queue. |
|
|
264
|
+
| `runtime.ts` | Transactions. |
|
|
265
|
+
| `provider.tsx` | `RegistryProvider`, `useRegistryValue`, `useRegistryEntries`, `useRegistryActions`. |
|
|
266
|
+
| `handlers.ts` | `applyRegistryConfig`: slices → entries in one batch, cleanup per lifecycle. |
|
|
267
|
+
| `hooks.ts` | `useRegistry` (select → stabilize → apply), `createRegistryApplyContext`, `useShallowStable`. |
|
|
268
|
+
| `stabilize.ts` | `stabilizeRegistryValue`: config stabilization across renders. |
|
|
269
|
+
| `adapters.ts` | `useModuleRegistration`. |
|
|
270
|
+
| `installed.ts` | Host context, `sortModules`, payload creation, registry definitions from modules. |
|
|
271
|
+
| `module.tsx` | `defineModule`, `ModuleHost`, `useModule`, `useModuleState`, `definePeer`, `ModuleBoundary`, `useIsModuleInstalled`. |
|
|
272
|
+
| `page-controller.tsx` | `usePage` (producer), `usePageController` (consumer), controller stack and scopes. |
|
|
273
|
+
| `compose.ts` | `Compose` and provider-entry helpers. |
|
|
262
274
|
|
|
263
275
|
## 10. Dependencies
|
|
264
276
|
|
package/docs/modules/loading.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Loading — `@omerdlw/base-framework/
|
|
1
|
+
# Loading — `@omerdlw/base-framework/loading`
|
|
2
2
|
|
|
3
3
|
> **Read this first if you need to:** show a full-screen loading state for a page or an async action, keep a spinner up long enough not to flicker, supply your own skeleton, or read "is the app busy" from another module.
|
|
4
4
|
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
| | |
|
|
8
8
|
| :----------------- | :-------------------------------------------------------------------------------------------------------- |
|
|
9
|
-
| **Import** | `import { useLoadingActions, useLoading, defineLoading, … } from "@omerdlw/base-framework/
|
|
9
|
+
| **Import** | `import { useLoadingActions, useLoading, defineLoading, … } from "@omerdlw/base-framework/loading"` |
|
|
10
10
|
| **Module id** | `loading` (`loadingModule`, in `defaultModules`) |
|
|
11
11
|
| **Renders** | `LoadingOverlay`: a fixed full-screen `<div role="status" aria-busy>` with a `Spinner` (or your skeleton) |
|
|
12
12
|
| **Registry type** | `loading` — singleton key `page-loading`, lifecycle `graceful`, cleanup delay 600 ms |
|
|
13
13
|
| **Page slice** | `usePage({ loading })` → `page.modules.loading` (all actions + `set`) |
|
|
14
14
|
| **Peers (`uses`)** | none (the dock reads _this_ module through `definePeer("loading")`) |
|
|
15
15
|
| **Theme** | `loadingTheme` slot `overlay` in `src/config/loading.module.theme.ts` |
|
|
16
|
-
| **z-index** |
|
|
16
|
+
| **z-index** | the app's layer, set in the theme `styles` |
|
|
17
17
|
| **Tests** | `tests/modules/loading.test.ts` |
|
|
18
18
|
|
|
19
19
|
## 2. Mental model
|
|
@@ -122,7 +122,7 @@ The same value also feeds the dock's `isLoading` card flag (`usePage({ dock })`
|
|
|
122
122
|
|
|
123
123
|
## 6. Theming
|
|
124
124
|
|
|
125
|
-
No classes or inline styles in the module. The `loadingTheme` slot `overlay` (starter: `center fixed inset-0 h-screen w-screen`) and its `styles` (`zIndex
|
|
125
|
+
No classes or inline styles in the module. The `loadingTheme` slot `overlay` (starter: `center fixed inset-0 h-screen w-screen`) and its `styles` (`zIndex`) come from `src/config/loading.module.theme.ts`. The default content is `<Spinner size={30} />`; pass a `skeleton` to replace it. The overlay has no animation (it mounts and unmounts instantly; [README](./README.md#42-why-some-optional-slots-are-absent)).
|
|
126
126
|
|
|
127
127
|
## 7. Recipes and gotchas
|
|
128
128
|
|
|
@@ -140,18 +140,18 @@ No classes or inline styles in the module. The `loadingTheme` slot `overlay` (st
|
|
|
140
140
|
|
|
141
141
|
## 8. File map
|
|
142
142
|
|
|
143
|
-
| File | Responsibility
|
|
144
|
-
| :------------- |
|
|
145
|
-
| `index.ts` | Public barrel.
|
|
146
|
-
| `types.ts` | State, options, actions, definition, page-config and theme contracts.
|
|
147
|
-
| `constants.ts` | `DEFAULT_LOADING_STATE`, registry key, `loadingTheme`.
|
|
148
|
-
| `state.ts` | `normalizeLoadingOptions`, `selectPageLoading`, `resolveLoadingState`, `calculateRemainingMinDuration`.
|
|
149
|
-
| `context.tsx` | `LoadingContext`, `LoadingProvider` (manual state, min-duration timer, registry merge, store).
|
|
143
|
+
| File | Responsibility |
|
|
144
|
+
| :------------- | :------------------------------------------------------------------------------------------------------------------ |
|
|
145
|
+
| `index.ts` | Public barrel. |
|
|
146
|
+
| `types.ts` | State, options, actions, definition, page-config and theme contracts. |
|
|
147
|
+
| `constants.ts` | `DEFAULT_LOADING_STATE`, registry key, `loadingTheme`. |
|
|
148
|
+
| `state.ts` | `normalizeLoadingOptions`, `selectPageLoading`, `resolveLoadingState`, `calculateRemainingMinDuration`. |
|
|
149
|
+
| `context.tsx` | `LoadingContext`, `LoadingProvider` (manual state, min-duration timer, registry merge, store). |
|
|
150
150
|
| `hooks.ts` | Public hooks (`useLoading`, `useLoadingState`, `useLoadingActions`, `useLoadingRegistration`) & overlay model hook. |
|
|
151
|
-
| `overlay.tsx` | `LoadingOverlay`.
|
|
152
|
-
| `module.tsx` | `loadingModule`, page API, `defineLoading`, kernel type augmentation.
|
|
151
|
+
| `overlay.tsx` | `LoadingOverlay`. |
|
|
152
|
+
| `module.tsx` | `loadingModule`, page API, `defineLoading`, kernel type augmentation. |
|
|
153
153
|
|
|
154
154
|
## 9. Dependencies
|
|
155
155
|
|
|
156
|
-
- **Uses:** `@omerdlw/base-framework/kernel` (`defineModule`, `useModuleRegistration`, `useRegistryValue`), `@omerdlw/base-framework/
|
|
156
|
+
- **Uses:** `@omerdlw/base-framework/kernel` (`defineModule`, `useModuleRegistration`, `useRegistryValue`), `@omerdlw/base-framework/ui` (`Spinner`), `@omerdlw/base-framework/hooks` (`useIsFullscreenStateActive`), `@omerdlw/base-framework/utils` (`createStore`), `@omerdlw/base-framework/theme`.
|
|
157
157
|
- **Used by:** `src/core/provider.tsx` (installs it); the **dock**, which reads `isLoading` and calls `stopLoading` through `definePeer("loading")` (inert when not installed); pages and features through `useLoading*` / `page.modules.loading`.
|
package/docs/modules/media.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Media — `@omerdlw/base-framework/
|
|
1
|
+
# Media — `@omerdlw/base-framework/media`
|
|
2
2
|
|
|
3
3
|
> **Read this first if you need to:** play an audio file for a page, make sure the dock's media controls work for audio or video, sync an audio track to the background video, or understand which source the controls operate on.
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
| | |
|
|
8
8
|
| :---------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
9
|
-
| **Import** | `import { useMedia, MediaSource, … } from "@omerdlw/base-framework/
|
|
9
|
+
| **Import** | `import { useMedia, MediaSource, … } from "@omerdlw/base-framework/media"` |
|
|
10
10
|
| **Module id** | `media` (`mediaModule`, in `defaultModules`) |
|
|
11
11
|
| **Renders** | Nothing. `MediaOverlay` is an overlay that returns `null`; it only plays the page's declared audio. |
|
|
12
12
|
| **Registry type** | `media` — singleton key `page-media`, lifecycle `immediate` (entries are removed the moment the registering page unmounts; the declared 600 ms delay applies only if a registration opts into `graceful` / `route`) |
|
|
@@ -177,17 +177,17 @@ Keep `isPlaying` current with another `upsertSource({ id, isPlaying })` call. `c
|
|
|
177
177
|
|
|
178
178
|
## 7. File map
|
|
179
179
|
|
|
180
|
-
| File | Responsibility
|
|
181
|
-
| :------------- |
|
|
182
|
-
| `index.ts` | Public barrel.
|
|
183
|
-
| `types.ts` | Entries, sessions, state, actions, option and page-config contracts.
|
|
184
|
-
| `constants.ts` | `DEFAULT_MEDIA_STATE`, registry key, drift threshold, page source id.
|
|
185
|
-
| `session.ts` | Pure session resolution: `resolveMediaSession`, `createMediaState`, `mergeMediaSource`, `findDisplacedAudio`, `selectPageMedia`.
|
|
186
|
-
| `playback.ts` | DOM media playback and sync: `bindFollowers`, `toggleElement`, `safePlay`, `sameElements`.
|
|
187
|
-
| `context.tsx` | `MediaProvider`: source registry, session publishing, follower binding, actions; `MediaContext`.
|
|
188
|
-
| `hooks.ts` | `useMedia` (Audio element lifecycle), `useMediaState`, `useMediaActions`, `useOptionalMediaState`, `useOptionalMediaActions`.
|
|
189
|
-
| `overlay.tsx` | `MediaSource` and `MediaOverlay` (components that render nothing).
|
|
190
|
-
| `module.tsx` | `mediaModule`, `usePage({ media })` page API, kernel type augmentation.
|
|
180
|
+
| File | Responsibility |
|
|
181
|
+
| :------------- | :------------------------------------------------------------------------------------------------------------------------------- |
|
|
182
|
+
| `index.ts` | Public barrel. |
|
|
183
|
+
| `types.ts` | Entries, sessions, state, actions, option and page-config contracts. |
|
|
184
|
+
| `constants.ts` | `DEFAULT_MEDIA_STATE`, registry key, drift threshold, page source id. |
|
|
185
|
+
| `session.ts` | Pure session resolution: `resolveMediaSession`, `createMediaState`, `mergeMediaSource`, `findDisplacedAudio`, `selectPageMedia`. |
|
|
186
|
+
| `playback.ts` | DOM media playback and sync: `bindFollowers`, `toggleElement`, `safePlay`, `sameElements`. |
|
|
187
|
+
| `context.tsx` | `MediaProvider`: source registry, session publishing, follower binding, actions; `MediaContext`. |
|
|
188
|
+
| `hooks.ts` | `useMedia` (Audio element lifecycle), `useMediaState`, `useMediaActions`, `useOptionalMediaState`, `useOptionalMediaActions`. |
|
|
189
|
+
| `overlay.tsx` | `MediaSource` and `MediaOverlay` (components that render nothing). |
|
|
190
|
+
| `module.tsx` | `mediaModule`, `usePage({ media })` page API, kernel type augmentation. |
|
|
191
191
|
|
|
192
192
|
The module has no `view.tsx`, `motion.ts` or `provider.tsx` (the provider is `context.tsx`) because it renders no UI.
|
|
193
193
|
|