@omerdlw/base-framework 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-26K6W4OQ.js +1435 -0
- package/dist/chunk-26K6W4OQ.js.map +1 -0
- package/dist/chunk-2BLGNT5I.js +850 -0
- package/dist/chunk-2BLGNT5I.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-5GVH4BQV.js +577 -0
- package/dist/chunk-5GVH4BQV.js.map +1 -0
- package/dist/chunk-5H6FZW3N.js +535 -0
- package/dist/chunk-5H6FZW3N.js.map +1 -0
- package/dist/chunk-66MHDFNF.js +3488 -0
- package/dist/chunk-66MHDFNF.js.map +1 -0
- package/dist/chunk-7RSRDKYE.js +22 -0
- package/dist/chunk-7RSRDKYE.js.map +1 -0
- package/dist/chunk-AAT3QWHN.js +567 -0
- package/dist/chunk-AAT3QWHN.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-GQKGOLHJ.js +1766 -0
- package/dist/chunk-GQKGOLHJ.js.map +1 -0
- package/dist/chunk-IR3DCLBM.js +17 -0
- package/dist/chunk-IR3DCLBM.js.map +1 -0
- package/dist/chunk-J3VTDBC6.js +14 -0
- package/dist/chunk-J3VTDBC6.js.map +1 -0
- package/dist/chunk-J4WUCHNR.js +825 -0
- package/dist/chunk-J4WUCHNR.js.map +1 -0
- package/dist/chunk-KMN6J5SL.js +493 -0
- package/dist/chunk-KMN6J5SL.js.map +1 -0
- package/dist/chunk-LA3CQ6NY.js +261 -0
- package/dist/chunk-LA3CQ6NY.js.map +1 -0
- package/dist/chunk-LTO77WSO.js +140 -0
- package/dist/chunk-LTO77WSO.js.map +1 -0
- package/dist/chunk-NTUQYA73.js +110 -0
- package/dist/chunk-NTUQYA73.js.map +1 -0
- package/dist/chunk-OEXWOZPS.js +139 -0
- package/dist/chunk-OEXWOZPS.js.map +1 -0
- package/dist/chunk-PUD4IB3L.js +15762 -0
- package/dist/chunk-PUD4IB3L.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-WBBM67WL.js +460 -0
- package/dist/chunk-WBBM67WL.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-ZE6OGGA7.js +2341 -0
- package/dist/chunk-ZE6OGGA7.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 -11
- 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 +14 -22
- 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 +25 -2
- package/dist/modules/ambient/dom.d.ts.map +1 -1
- package/dist/modules/ambient/extractor.d.ts +10 -0
- 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/module.d.ts +12 -1
- package/dist/modules/ambient/module.d.ts.map +1 -1
- package/dist/modules/ambient/oklab.d.ts +24 -0
- package/dist/modules/ambient/oklab.d.ts.map +1 -1
- package/dist/modules/ambient/quantize.d.ts +4 -0
- package/dist/modules/ambient/quantize.d.ts.map +1 -1
- package/dist/modules/ambient/server/address.d.ts +8 -0
- package/dist/modules/ambient/server/address.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.d.ts +24 -0
- package/dist/modules/ambient/server/index.d.ts.map +1 -1
- package/dist/modules/ambient/settings.d.ts +26 -0
- package/dist/modules/ambient/settings.d.ts.map +1 -1
- package/dist/modules/ambient/types.d.ts +100 -1
- package/dist/modules/ambient/types.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.d.ts +16 -0
- 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 +6 -6
- 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 -3
- 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/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 -3
- 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 -5
- 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 -22
- 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 -42
- 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/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/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 +7 -6
- 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 -1
- package/dist/modules/modal/types.d.ts.map +1 -1
- package/dist/modules/navigation/context.d.ts +16 -4
- package/dist/modules/navigation/context.d.ts.map +1 -1
- package/dist/modules/navigation/hooks.d.ts +28 -1
- 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 +10 -1
- 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 -2
- 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-YC336DAS.js +13 -0
- package/dist/overlay-YC336DAS.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 -19
- package/dist/ui/index.js +2158 -1860
- package/dist/ui/index.js.map +1 -1
- 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 -61
- package/docs/architecture-and-rules.md +134 -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 +100 -97
- 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-6UFMD6TK.js +0 -419
- package/dist/chunk-6UFMD6TK.js.map +0 -1
- package/dist/chunk-AA2TWJQI.js +0 -2186
- package/dist/chunk-AA2TWJQI.js.map +0 -1
- package/dist/chunk-ACLLDU3J.js +0 -888
- package/dist/chunk-ACLLDU3J.js.map +0 -1
- package/dist/chunk-DGCQWQLZ.js +0 -61
- package/dist/chunk-DGCQWQLZ.js.map +0 -1
- package/dist/chunk-E6ANX5YP.js +0 -1273
- package/dist/chunk-E6ANX5YP.js.map +0 -1
- package/dist/chunk-GDCVEINL.js +0 -408
- package/dist/chunk-GDCVEINL.js.map +0 -1
- package/dist/chunk-GN666KV5.js +0 -28
- package/dist/chunk-GN666KV5.js.map +0 -1
- package/dist/chunk-HCSDQEFB.js +0 -845
- package/dist/chunk-HCSDQEFB.js.map +0 -1
- package/dist/chunk-HMEWYAWU.js +0 -1889
- package/dist/chunk-HMEWYAWU.js.map +0 -1
- package/dist/chunk-I3IZUBBU.js +0 -97
- package/dist/chunk-I3IZUBBU.js.map +0 -1
- package/dist/chunk-JCZUCKI3.js +0 -27
- package/dist/chunk-JCZUCKI3.js.map +0 -1
- package/dist/chunk-MAGYFVKH.js +0 -67
- package/dist/chunk-MAGYFVKH.js.map +0 -1
- package/dist/chunk-NEBGCFE3.js +0 -521
- package/dist/chunk-NEBGCFE3.js.map +0 -1
- package/dist/chunk-NK2DQB3G.js +0 -306
- package/dist/chunk-NK2DQB3G.js.map +0 -1
- package/dist/chunk-QI3ALLIB.js +0 -38
- package/dist/chunk-QI3ALLIB.js.map +0 -1
- package/dist/chunk-QM2P6TIU.js +0 -353
- package/dist/chunk-QM2P6TIU.js.map +0 -1
- package/dist/chunk-RFP2DJAB.js +0 -658
- package/dist/chunk-RFP2DJAB.js.map +0 -1
- package/dist/chunk-SQ7XZMCN.js +0 -481
- package/dist/chunk-SQ7XZMCN.js.map +0 -1
- package/dist/chunk-TMTMQNEQ.js +0 -372
- package/dist/chunk-TMTMQNEQ.js.map +0 -1
- package/dist/chunk-VDNE3A7X.js +0 -9724
- package/dist/chunk-VDNE3A7X.js.map +0 -1
- package/dist/chunk-XATRMFGU.js +0 -139
- package/dist/chunk-XATRMFGU.js.map +0 -1
- package/dist/chunk-ZAP2YHZG.js +0 -454
- package/dist/chunk-ZAP2YHZG.js.map +0 -1
- package/dist/chunk-ZH5FUYPG.js +0 -349
- package/dist/chunk-ZH5FUYPG.js.map +0 -1
- package/dist/chunk-ZKM4RETZ.js +0 -51
- package/dist/chunk-ZKM4RETZ.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-scroll-lock.d.ts +0 -3
- package/dist/hooks/use-scroll-lock.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 -225
- package/dist/modules/ambient/server/index.js.map +0 -1
- package/dist/modules/ambient/worker/index.js +0 -122
- 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 -1274
- 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 -33
- package/dist/modules/navigation/constants.d.ts.map +0 -1
- package/dist/modules/navigation/index.js +0 -80
- package/dist/modules/navigation/index.js.map +0 -1
- package/dist/modules/navigation/navigator.d.ts +0 -3
- package/dist/modules/navigation/navigator.d.ts.map +0 -1
- package/dist/modules/navigation/settings.d.ts +0 -5
- package/dist/modules/navigation/settings.d.ts.map +0 -1
- package/dist/modules/navigation/state.d.ts +0 -19
- package/dist/modules/navigation/state.d.ts.map +0 -1
- package/dist/modules/navigation/types.d.ts +0 -118
- package/dist/modules/navigation/types.d.ts.map +0 -1
- package/dist/modules/navigation/utils.d.ts +0 -8
- package/dist/modules/navigation/utils.d.ts.map +0 -1
- package/dist/modules/notification/index.js +0 -7
- package/dist/overlay-LTRZUZQD.js +0 -9
- package/dist/overlay-LTRZUZQD.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 -46
- 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 -297
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/motion-config.d.ts +0 -35
- 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/ui/carousel/carousel.d.ts +0 -24
- package/dist/ui/carousel/carousel.d.ts.map +0 -1
- package/dist/ui/carousel/track.d.ts +0 -11
- package/dist/ui/carousel/track.d.ts.map +0 -1
- package/dist/ui/carousel/use-drag-scroll.d.ts +0 -3
- package/dist/ui/carousel/use-drag-scroll.d.ts.map +0 -1
- package/dist/ui/cn.d.ts +0 -19
- package/dist/ui/cn.d.ts.map +0 -1
- package/dist/ui/components/avatar.d.ts +0 -14
- package/dist/ui/components/avatar.d.ts.map +0 -1
- package/dist/ui/components/button.d.ts +0 -9
- package/dist/ui/components/button.d.ts.map +0 -1
- package/dist/ui/components/checkbox.d.ts +0 -18
- package/dist/ui/components/checkbox.d.ts.map +0 -1
- package/dist/ui/components/icon.d.ts +0 -4
- package/dist/ui/components/icon.d.ts.map +0 -1
- package/dist/ui/components/image.d.ts +0 -13
- package/dist/ui/components/image.d.ts.map +0 -1
- package/dist/ui/components/indicator.d.ts +0 -37
- package/dist/ui/components/indicator.d.ts.map +0 -1
- package/dist/ui/components/input.d.ts +0 -15
- package/dist/ui/components/input.d.ts.map +0 -1
- package/dist/ui/components/loader.d.ts +0 -17
- package/dist/ui/components/loader.d.ts.map +0 -1
- package/dist/ui/components/segmented.d.ts +0 -21
- package/dist/ui/components/segmented.d.ts.map +0 -1
- package/dist/ui/components/select.d.ts +0 -34
- package/dist/ui/components/select.d.ts.map +0 -1
- package/dist/ui/components/skeleton.d.ts +0 -16
- package/dist/ui/components/skeleton.d.ts.map +0 -1
- package/dist/ui/components/switch.d.ts +0 -11
- package/dist/ui/components/switch.d.ts.map +0 -1
- package/dist/ui/components/tooltip.d.ts +0 -25
- package/dist/ui/components/tooltip.d.ts.map +0 -1
- package/dist/ui/defaults.d.ts +0 -250
- package/dist/ui/defaults.d.ts.map +0 -1
- package/dist/ui/define.d.ts +0 -112
- package/dist/ui/define.d.ts.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/provider.d.ts +0 -11
- package/dist/ui/provider.d.ts.map +0 -1
- package/dist/ui/recipe.d.ts +0 -70
- package/dist/ui/recipe.d.ts.map +0 -1
- package/dist/ui/recipes.d.ts +0 -9
- package/dist/ui/recipes.d.ts.map +0 -1
- package/dist/ui/recipes.js +0 -648
- package/dist/ui/recipes.js.map +0 -1
- package/dist/ui/split.d.ts +0 -4
- package/dist/ui/split.d.ts.map +0 -1
- package/dist/ui/tones.d.ts +0 -23
- package/dist/ui/tones.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/docs/ui.md +0 -183
- package/styles/effects.css +0 -219
- package/styles/index.css +0 -8
- package/styles/interaction.css +0 -273
- package/styles/palette.css +0 -81
- package/styles/time.css +0 -26
- package/styles/tokens.css +0 -114
- package/styles/utilities.css +0 -110
- package/templates/motion/background.ts +0 -15
- package/templates/motion/context-menu.ts +0 -65
- package/templates/motion/dock.ts +0 -421
- package/templates/motion/modal.ts +0 -82
- package/templates/motion/notification.ts +0 -26
- package/templates/motion/tokens.ts +0 -36
- /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/dist/chunk-ACLLDU3J.js
DELETED
|
@@ -1,888 +0,0 @@
|
|
|
1
|
-
import { useOptionalDockState } from './chunk-VDNE3A7X.js';
|
|
2
|
-
import { defineThemeSpec, useTheme, useModuleMotion } from './chunk-TMTMQNEQ.js';
|
|
3
|
-
import { getOrCreateGlobalContext, defineModule, useRegistryEntries, useModuleRegistration } from './chunk-HMEWYAWU.js';
|
|
4
|
-
import { createStore, useStore, useIsomorphicLayoutEffect, useRequiredContext, isBrowser, toArray, toFiniteNumber, report, isObject, isImageIconSource } from './chunk-HCSDQEFB.js';
|
|
5
|
-
import { Icon } from './chunk-I3IZUBBU.js';
|
|
6
|
-
import { useMemo, useState, useRef, useEffect, useSyncExternalStore, useLayoutEffect, useCallback, isValidElement } from 'react';
|
|
7
|
-
import { usePathname } from 'next/navigation';
|
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import { createPortal } from 'react-dom';
|
|
10
|
-
import { AnimatePresence, motion } from 'motion/react';
|
|
11
|
-
|
|
12
|
-
// src/modules/context-menu/constants.ts
|
|
13
|
-
var contextMenuTheme = defineThemeSpec("context-menu");
|
|
14
|
-
var CURRENT_PAGE_KEY = "current-page";
|
|
15
|
-
var GLOBAL_MENU_KEY = "*";
|
|
16
|
-
var MENU_SCREEN_MARGIN = 10;
|
|
17
|
-
var CONTEXT_MENU_VISIBILITY_EVENT = "context-menu:visibility";
|
|
18
|
-
var INITIAL_POSITION = Object.freeze({
|
|
19
|
-
x: 0,
|
|
20
|
-
y: 0
|
|
21
|
-
});
|
|
22
|
-
function extractNodeText(value) {
|
|
23
|
-
if (typeof value === "string") return value;
|
|
24
|
-
if (typeof value === "number" || typeof value === "boolean") {
|
|
25
|
-
return String(value);
|
|
26
|
-
}
|
|
27
|
-
if (Array.isArray(value)) {
|
|
28
|
-
return value.map(extractNodeText).filter(Boolean).join(" ").replace(/\s+/g, " ").trim();
|
|
29
|
-
}
|
|
30
|
-
if (isValidElement(value)) {
|
|
31
|
-
return extractNodeText(value.props?.children);
|
|
32
|
-
}
|
|
33
|
-
return "";
|
|
34
|
-
}
|
|
35
|
-
function resolveAsBoolean(value, context, defaultValue = true) {
|
|
36
|
-
if (typeof value === "function") {
|
|
37
|
-
try {
|
|
38
|
-
return Boolean(value(context));
|
|
39
|
-
} catch {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
if (value === void 0) {
|
|
44
|
-
return defaultValue;
|
|
45
|
-
}
|
|
46
|
-
return Boolean(value);
|
|
47
|
-
}
|
|
48
|
-
function resolveAsValue(value, context, fallback) {
|
|
49
|
-
if (typeof value === "function") {
|
|
50
|
-
try {
|
|
51
|
-
const resolved = value(context);
|
|
52
|
-
return resolved === void 0 ? fallback : resolved;
|
|
53
|
-
} catch {
|
|
54
|
-
return fallback;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return value === void 0 ? fallback : value;
|
|
58
|
-
}
|
|
59
|
-
function safeInvoke(handler, ...args) {
|
|
60
|
-
if (typeof handler !== "function") return void 0;
|
|
61
|
-
try {
|
|
62
|
-
const result = handler(...args);
|
|
63
|
-
if (result && typeof result.then === "function") {
|
|
64
|
-
result.catch(
|
|
65
|
-
(err) => report("Context menu async callback", err)
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
return result;
|
|
69
|
-
} catch (error) {
|
|
70
|
-
report("Context menu callback", error);
|
|
71
|
-
return void 0;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function resolveContextMenuPageMeta(dockItem, pathname = "") {
|
|
75
|
-
if (!isObject(dockItem)) return null;
|
|
76
|
-
const title = dockItem.contextMenuTitle ?? dockItem.title ?? null;
|
|
77
|
-
const description = dockItem.contextMenuDescription ?? dockItem.description ?? null;
|
|
78
|
-
const eyebrow = dockItem.contextMenuEyebrow ?? dockItem.eyebrow ?? null;
|
|
79
|
-
const icon = dockItem.contextMenuIcon ?? dockItem.icon ?? null;
|
|
80
|
-
if (!title && !description && !icon && !eyebrow) return null;
|
|
81
|
-
return {
|
|
82
|
-
description,
|
|
83
|
-
descriptionText: extractNodeText(description),
|
|
84
|
-
eyebrow,
|
|
85
|
-
icon,
|
|
86
|
-
path: typeof dockItem.path === "string" && dockItem.path ? dockItem.path : pathname,
|
|
87
|
-
title,
|
|
88
|
-
titleText: extractNodeText(title) || (typeof dockItem.name === "string" ? dockItem.name : "") || ""
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function resolveItem(item, index, context) {
|
|
92
|
-
if (!item) return null;
|
|
93
|
-
if (item === "separator" || item.type === "separator") {
|
|
94
|
-
return {
|
|
95
|
-
key: item !== "separator" && item.key || `separator-${index}`,
|
|
96
|
-
type: "separator"
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
if (resolveAsBoolean(item.hidden, context, false) || !resolveAsBoolean(item.visible, context, true)) {
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
const label = resolveAsValue(item.label, context, "");
|
|
103
|
-
if (typeof label !== "string" && typeof label !== "number" || !String(label).trim()) {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
const handler = item.onSelect ?? item.onClick ?? null;
|
|
107
|
-
const shortcut = resolveAsValue(item.shortcut, context, null);
|
|
108
|
-
return {
|
|
109
|
-
...item,
|
|
110
|
-
className: resolveAsValue(item.className, context, "") || "",
|
|
111
|
-
closeOnSelect: item.closeOnSelect !== false,
|
|
112
|
-
danger: resolveAsBoolean(item.danger, context, false),
|
|
113
|
-
disabled: resolveAsBoolean(item.disabled, context, false),
|
|
114
|
-
icon: resolveAsValue(item.icon, context, null) || null,
|
|
115
|
-
itemIconClassName: resolveAsValue(item.itemIconClassName, context, "") || "",
|
|
116
|
-
key: item.key || `item-${index}`,
|
|
117
|
-
label: String(label),
|
|
118
|
-
onClick: handler,
|
|
119
|
-
onSelect: handler,
|
|
120
|
-
shortcut: typeof shortcut === "string" ? shortcut : null,
|
|
121
|
-
type: "action"
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function resolveMenuItems(config, context) {
|
|
125
|
-
const rawItems = resolveAsValue(config?.items, context, []);
|
|
126
|
-
const items = [];
|
|
127
|
-
toArray(rawItems).forEach((raw, index) => {
|
|
128
|
-
const item = resolveItem(raw, index, context);
|
|
129
|
-
if (!item) return;
|
|
130
|
-
const previous = items[items.length - 1];
|
|
131
|
-
if (item.type === "separator" && (!previous || previous.type === "separator")) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
items.push(item);
|
|
135
|
-
});
|
|
136
|
-
if (items[items.length - 1]?.type === "separator") items.pop();
|
|
137
|
-
return items;
|
|
138
|
-
}
|
|
139
|
-
function resolveMenuHeader(config, context) {
|
|
140
|
-
if (config?.header === false || config?.showPageHeader === false) return null;
|
|
141
|
-
const configured = resolveAsValue(config?.header, context, null);
|
|
142
|
-
const source = isObject(configured) ? configured : isObject(context.page) ? context.page : null;
|
|
143
|
-
if (!source) return null;
|
|
144
|
-
const title = resolveAsValue(source.title, context, null);
|
|
145
|
-
const description = resolveAsValue(source.description, context, null);
|
|
146
|
-
const icon = resolveAsValue(source.icon, context, null);
|
|
147
|
-
const eyebrow = resolveAsValue(source.eyebrow, context, null);
|
|
148
|
-
if (!title && !description && !icon && !eyebrow) return null;
|
|
149
|
-
return {
|
|
150
|
-
description,
|
|
151
|
-
descriptionText: extractNodeText(description),
|
|
152
|
-
eyebrow,
|
|
153
|
-
icon,
|
|
154
|
-
title,
|
|
155
|
-
titleText: extractNodeText(title)
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// src/modules/context-menu/resolver.ts
|
|
160
|
-
function normalizeMenuCandidates(registryMenus) {
|
|
161
|
-
const candidates = [];
|
|
162
|
-
for (const [registryKey, rawConfig] of Object.entries(registryMenus || {})) {
|
|
163
|
-
if (!isObject(rawConfig)) continue;
|
|
164
|
-
const { menus, ...sharedConfig } = rawConfig;
|
|
165
|
-
const nestedMenus = toArray(menus);
|
|
166
|
-
const hasSharedItems = Array.isArray(sharedConfig.items) || typeof sharedConfig.items === "function";
|
|
167
|
-
if (hasSharedItems || nestedMenus.length === 0) {
|
|
168
|
-
candidates.push({
|
|
169
|
-
config: sharedConfig,
|
|
170
|
-
order: candidates.length,
|
|
171
|
-
registryKey
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
for (const menu of nestedMenus) {
|
|
175
|
-
candidates.push({
|
|
176
|
-
config: {
|
|
177
|
-
...sharedConfig,
|
|
178
|
-
...menu,
|
|
179
|
-
classNames: { ...sharedConfig.classNames, ...menu.classNames }
|
|
180
|
-
},
|
|
181
|
-
order: candidates.length,
|
|
182
|
-
registryKey
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return candidates;
|
|
187
|
-
}
|
|
188
|
-
function isPathAllowed(config, registryKey, pathname) {
|
|
189
|
-
if (!pathname) return true;
|
|
190
|
-
if (config.path === pathname) return true;
|
|
191
|
-
const explicitPaths = toArray(config.paths).filter(Boolean);
|
|
192
|
-
if (explicitPaths.length > 0) return explicitPaths.includes(pathname);
|
|
193
|
-
if (typeof config.pathMatcher === "function") {
|
|
194
|
-
try {
|
|
195
|
-
return Boolean(config.pathMatcher(pathname));
|
|
196
|
-
} catch {
|
|
197
|
-
return false;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return registryKey === pathname || registryKey === CURRENT_PAGE_KEY || registryKey === GLOBAL_MENU_KEY;
|
|
201
|
-
}
|
|
202
|
-
function getElementDepth(from, ancestor) {
|
|
203
|
-
let depth = 0;
|
|
204
|
-
for (let node = from; node && node !== ancestor; node = node.parentElement) {
|
|
205
|
-
depth += 1;
|
|
206
|
-
}
|
|
207
|
-
return depth;
|
|
208
|
-
}
|
|
209
|
-
function getTargetScore(config, targetElement) {
|
|
210
|
-
const selectors = toArray(config.target).filter(
|
|
211
|
-
(selector) => typeof selector === "string" && selector.trim()
|
|
212
|
-
);
|
|
213
|
-
if (selectors.length === 0) return 0;
|
|
214
|
-
if (!targetElement) return null;
|
|
215
|
-
let minDepth = Infinity;
|
|
216
|
-
for (const selector of selectors) {
|
|
217
|
-
try {
|
|
218
|
-
const matched = targetElement.closest(selector);
|
|
219
|
-
if (matched) {
|
|
220
|
-
minDepth = Math.min(minDepth, getElementDepth(targetElement, matched));
|
|
221
|
-
}
|
|
222
|
-
} catch {
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
return minDepth === Infinity ? null : Math.max(0, 100 - minDepth);
|
|
226
|
-
}
|
|
227
|
-
function getRouteScore(config, registryKey, pathname) {
|
|
228
|
-
if (!pathname) return 0;
|
|
229
|
-
if (config.path === pathname || toArray(config.paths).includes(pathname) || registryKey === pathname) {
|
|
230
|
-
return 100;
|
|
231
|
-
}
|
|
232
|
-
if (registryKey === CURRENT_PAGE_KEY) return 70;
|
|
233
|
-
if (registryKey === GLOBAL_MENU_KEY) return 40;
|
|
234
|
-
return 10;
|
|
235
|
-
}
|
|
236
|
-
function buildMenuContext(config, event, pathname, targetElement) {
|
|
237
|
-
let context = {
|
|
238
|
-
currentTarget: event.currentTarget ?? null,
|
|
239
|
-
event,
|
|
240
|
-
pathname: pathname || "",
|
|
241
|
-
point: { x: Number(event.clientX) || 0, y: Number(event.clientY) || 0 },
|
|
242
|
-
target: targetElement
|
|
243
|
-
};
|
|
244
|
-
if (config.payload !== void 0) context.payload = config.payload;
|
|
245
|
-
try {
|
|
246
|
-
const payload = config.resolvePayload?.(event, context);
|
|
247
|
-
if (payload !== void 0) context.payload = payload;
|
|
248
|
-
} catch {
|
|
249
|
-
}
|
|
250
|
-
try {
|
|
251
|
-
const extra = config.resolveContext?.(event, context);
|
|
252
|
-
if (isObject(extra)) context = { ...context, ...extra };
|
|
253
|
-
} catch {
|
|
254
|
-
}
|
|
255
|
-
return context;
|
|
256
|
-
}
|
|
257
|
-
function isMenuOverlayTarget(element) {
|
|
258
|
-
return Boolean(
|
|
259
|
-
element?.closest?.(
|
|
260
|
-
'[data-context-menu-ignore], [data-context-menu-overlay], [role="menu"]'
|
|
261
|
-
) || element?.classList?.contains("context-menu-overlay")
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
function resolveEventTarget(event) {
|
|
265
|
-
const initialTarget = event.target instanceof Element ? event.target : null;
|
|
266
|
-
if (initialTarget && !isMenuOverlayTarget(initialTarget)) {
|
|
267
|
-
return initialTarget;
|
|
268
|
-
}
|
|
269
|
-
if (!Number.isFinite(event.clientX) || !Number.isFinite(event.clientY)) {
|
|
270
|
-
return initialTarget;
|
|
271
|
-
}
|
|
272
|
-
try {
|
|
273
|
-
const underneath = document.elementsFromPoint(event.clientX, event.clientY).find((element) => !isMenuOverlayTarget(element));
|
|
274
|
-
return underneath || initialTarget;
|
|
275
|
-
} catch {
|
|
276
|
-
return initialTarget;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
function passesWhen(config, event, info) {
|
|
280
|
-
if (typeof config.when !== "function") return config.when !== false;
|
|
281
|
-
try {
|
|
282
|
-
return Boolean(config.when(event, info));
|
|
283
|
-
} catch {
|
|
284
|
-
return false;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
function resolveContextMenu(registryMenus, pathname, event) {
|
|
288
|
-
const targetElement = resolveEventTarget(event);
|
|
289
|
-
let winner = null;
|
|
290
|
-
for (const { config, order, registryKey } of normalizeMenuCandidates(
|
|
291
|
-
registryMenus
|
|
292
|
-
)) {
|
|
293
|
-
if (!isPathAllowed(config, registryKey, pathname)) continue;
|
|
294
|
-
const context = buildMenuContext(config, event, pathname, targetElement);
|
|
295
|
-
if (!resolveAsBoolean(config.enabled, context, true)) continue;
|
|
296
|
-
if (!passesWhen(config, event, {
|
|
297
|
-
context,
|
|
298
|
-
pathname: pathname || "",
|
|
299
|
-
target: targetElement
|
|
300
|
-
})) {
|
|
301
|
-
continue;
|
|
302
|
-
}
|
|
303
|
-
const items = resolveMenuItems(config, context);
|
|
304
|
-
if (!items.length) continue;
|
|
305
|
-
const targetScore = getTargetScore(config, targetElement);
|
|
306
|
-
if (targetScore === null) continue;
|
|
307
|
-
const priority = Number(config.priority);
|
|
308
|
-
const score = (Number.isFinite(priority) ? priority : 0) * 1e4 + getRouteScore(config, registryKey, pathname) * 100 + targetScore;
|
|
309
|
-
if (!winner || score > winner.score) {
|
|
310
|
-
winner = { config, context, items, order, score };
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
return winner;
|
|
314
|
-
}
|
|
315
|
-
function prepareMenu(config, context, event) {
|
|
316
|
-
const onOpenResult = safeInvoke(config.onOpen, event, context);
|
|
317
|
-
if (onOpenResult === false) return null;
|
|
318
|
-
const nextContext = isObject(onOpenResult) ? { ...context, ...onOpenResult } : context;
|
|
319
|
-
const items = resolveMenuItems(config, nextContext);
|
|
320
|
-
return items.length ? { context: nextContext, items } : null;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// src/modules/context-menu/state.ts
|
|
324
|
-
function createInitialMenuState() {
|
|
325
|
-
return {
|
|
326
|
-
position: INITIAL_POSITION,
|
|
327
|
-
context: null,
|
|
328
|
-
isOpen: false,
|
|
329
|
-
config: null,
|
|
330
|
-
items: []
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
function resolveNextOpenState({
|
|
334
|
-
config,
|
|
335
|
-
context,
|
|
336
|
-
items,
|
|
337
|
-
position
|
|
338
|
-
}) {
|
|
339
|
-
if (!config) return null;
|
|
340
|
-
return {
|
|
341
|
-
config,
|
|
342
|
-
context: context ?? null,
|
|
343
|
-
isOpen: true,
|
|
344
|
-
items: items ?? [],
|
|
345
|
-
position: {
|
|
346
|
-
x: Math.round(toFiniteNumber(position?.x, 0)),
|
|
347
|
-
y: Math.round(toFiniteNumber(position?.y, 0))
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
function emitContextMenuVisibility(isOpen) {
|
|
352
|
-
if (!isBrowser) return;
|
|
353
|
-
window.dispatchEvent(
|
|
354
|
-
new CustomEvent(CONTEXT_MENU_VISIBILITY_EVENT, {
|
|
355
|
-
detail: { isOpen: Boolean(isOpen) }
|
|
356
|
-
})
|
|
357
|
-
);
|
|
358
|
-
}
|
|
359
|
-
var ContextMenuContext = getOrCreateGlobalContext(
|
|
360
|
-
"ContextMenuContext",
|
|
361
|
-
null
|
|
362
|
-
);
|
|
363
|
-
function selectIsOpen(state) {
|
|
364
|
-
return state.isOpen;
|
|
365
|
-
}
|
|
366
|
-
function ContextMenuProvider({ children }) {
|
|
367
|
-
const pathname = usePathname();
|
|
368
|
-
const [store] = useState(
|
|
369
|
-
() => createStore(createInitialMenuState(), {
|
|
370
|
-
freezeSnapshots: false
|
|
371
|
-
})
|
|
372
|
-
);
|
|
373
|
-
const isOpen = useStore(store, selectIsOpen);
|
|
374
|
-
const pathnameRef = useRef(pathname);
|
|
375
|
-
useIsomorphicLayoutEffect(() => {
|
|
376
|
-
pathnameRef.current = pathname;
|
|
377
|
-
}, [pathname]);
|
|
378
|
-
const actions = useMemo(() => {
|
|
379
|
-
const openMenu = (input) => {
|
|
380
|
-
const nextState = resolveNextOpenState(input);
|
|
381
|
-
if (nextState) store.publish(nextState);
|
|
382
|
-
};
|
|
383
|
-
const closeMenu = () => {
|
|
384
|
-
const current = store.getSnapshot();
|
|
385
|
-
if (!current.isOpen) return;
|
|
386
|
-
store.publish(createInitialMenuState());
|
|
387
|
-
safeInvoke(current.config?.onClose, current.context);
|
|
388
|
-
};
|
|
389
|
-
const bind = (payload, configOverride) => ({
|
|
390
|
-
onContextMenu: (event) => {
|
|
391
|
-
const config = configOverride || store.getSnapshot().config;
|
|
392
|
-
if (!config) return;
|
|
393
|
-
event.preventDefault?.();
|
|
394
|
-
event.stopPropagation?.();
|
|
395
|
-
const point = {
|
|
396
|
-
x: Number(event.clientX ?? 0),
|
|
397
|
-
y: Number(event.clientY ?? 0)
|
|
398
|
-
};
|
|
399
|
-
const context = {
|
|
400
|
-
currentTarget: event.currentTarget ?? null,
|
|
401
|
-
event,
|
|
402
|
-
pathname: pathnameRef.current || "",
|
|
403
|
-
payload,
|
|
404
|
-
point,
|
|
405
|
-
target: event.target ?? null
|
|
406
|
-
};
|
|
407
|
-
const prepared = prepareMenu(config, context, event);
|
|
408
|
-
if (!prepared) return;
|
|
409
|
-
openMenu({
|
|
410
|
-
config,
|
|
411
|
-
context: prepared.context,
|
|
412
|
-
items: prepared.items,
|
|
413
|
-
position: point
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
return { bind, closeMenu, openMenu };
|
|
418
|
-
}, [store]);
|
|
419
|
-
const contextValue = useMemo(
|
|
420
|
-
() => ({ actions, store }),
|
|
421
|
-
[actions, store]
|
|
422
|
-
);
|
|
423
|
-
useEffect(() => emitContextMenuVisibility(isOpen), [isOpen]);
|
|
424
|
-
return /* @__PURE__ */ jsx(ContextMenuContext, { value: contextValue, children });
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
// src/modules/context-menu/dom.ts
|
|
428
|
-
function joinClassNames(...classes) {
|
|
429
|
-
return classes.filter(Boolean).join(" ");
|
|
430
|
-
}
|
|
431
|
-
var SCROLL_LOCK_KEYS = /* @__PURE__ */ new Set([
|
|
432
|
-
"ArrowDown",
|
|
433
|
-
"ArrowUp",
|
|
434
|
-
"End",
|
|
435
|
-
"Home",
|
|
436
|
-
"PageDown",
|
|
437
|
-
"PageUp",
|
|
438
|
-
" ",
|
|
439
|
-
"Spacebar"
|
|
440
|
-
]);
|
|
441
|
-
function isScrollLockKey(event) {
|
|
442
|
-
return SCROLL_LOCK_KEYS.has(event.key);
|
|
443
|
-
}
|
|
444
|
-
function positionMenu(menuElement, position) {
|
|
445
|
-
if (!menuElement) return;
|
|
446
|
-
const { height, width } = menuElement.getBoundingClientRect();
|
|
447
|
-
const maxX = window.innerWidth - width - MENU_SCREEN_MARGIN;
|
|
448
|
-
const maxY = window.innerHeight - height - MENU_SCREEN_MARGIN;
|
|
449
|
-
const x = Math.min(Number(position?.x) || 0, maxX);
|
|
450
|
-
const y = Math.min(Number(position?.y) || 0, maxY);
|
|
451
|
-
menuElement.style.left = `${Math.round(Math.max(MENU_SCREEN_MARGIN, x))}px`;
|
|
452
|
-
menuElement.style.top = `${Math.round(Math.max(MENU_SCREEN_MARGIN, y))}px`;
|
|
453
|
-
}
|
|
454
|
-
function getNextActiveIndex(items, current, direction) {
|
|
455
|
-
const count = items.length;
|
|
456
|
-
const start = current < 0 ? direction === 1 ? 0 : count - 1 : current + direction;
|
|
457
|
-
for (let step = 0; step < count; step++) {
|
|
458
|
-
const index = ((start + step * direction) % count + count) % count;
|
|
459
|
-
if (items[index].type === "action" && !items[index].disabled) return index;
|
|
460
|
-
}
|
|
461
|
-
return current;
|
|
462
|
-
}
|
|
463
|
-
function useContextMenuRegistration(config, options) {
|
|
464
|
-
useModuleRegistration("contextMenu", config, options);
|
|
465
|
-
}
|
|
466
|
-
function useContextMenu(config, options) {
|
|
467
|
-
useContextMenuRegistration(config || null, options);
|
|
468
|
-
const { actions, store } = useRequiredContext(
|
|
469
|
-
ContextMenuContext,
|
|
470
|
-
"useContextMenu",
|
|
471
|
-
"ContextMenuProvider"
|
|
472
|
-
);
|
|
473
|
-
const state = useStore(store);
|
|
474
|
-
const ctx = useMemo(
|
|
475
|
-
() => ({ ...state, ...actions }),
|
|
476
|
-
[actions, state]
|
|
477
|
-
);
|
|
478
|
-
return useMemo(() => {
|
|
479
|
-
if (!config) return ctx;
|
|
480
|
-
return {
|
|
481
|
-
...ctx,
|
|
482
|
-
bind: (payload, configOverride) => ctx.bind(payload, { ...config, ...configOverride })
|
|
483
|
-
};
|
|
484
|
-
}, [config, ctx]);
|
|
485
|
-
}
|
|
486
|
-
function useContextMenuActions() {
|
|
487
|
-
return useRequiredContext(
|
|
488
|
-
ContextMenuContext,
|
|
489
|
-
"useContextMenuActions",
|
|
490
|
-
"ContextMenuProvider"
|
|
491
|
-
).actions;
|
|
492
|
-
}
|
|
493
|
-
function useContextMenuState() {
|
|
494
|
-
const { store } = useRequiredContext(
|
|
495
|
-
ContextMenuContext,
|
|
496
|
-
"useContextMenuState",
|
|
497
|
-
"ContextMenuProvider"
|
|
498
|
-
);
|
|
499
|
-
return useStore(store);
|
|
500
|
-
}
|
|
501
|
-
function selectDockPageCard(dock) {
|
|
502
|
-
const card = dock.activeItem;
|
|
503
|
-
return card && !card.isSurface ? card : null;
|
|
504
|
-
}
|
|
505
|
-
function useContextMenuListener() {
|
|
506
|
-
const menus = useRegistryEntries(
|
|
507
|
-
"contextMenu"
|
|
508
|
-
);
|
|
509
|
-
const dockCard = useOptionalDockState(selectDockPageCard);
|
|
510
|
-
const { openMenu } = useContextMenuActions();
|
|
511
|
-
const pathname = usePathname();
|
|
512
|
-
useEffect(() => {
|
|
513
|
-
const handleContextMenu = (event) => {
|
|
514
|
-
const match = resolveContextMenu(menus, pathname || void 0, event);
|
|
515
|
-
if (!match) return;
|
|
516
|
-
event.preventDefault();
|
|
517
|
-
event.stopPropagation();
|
|
518
|
-
const page = resolveContextMenuPageMeta(dockCard, pathname || "");
|
|
519
|
-
const prepared = prepareMenu(
|
|
520
|
-
match.config,
|
|
521
|
-
page ? { ...match.context, page } : match.context,
|
|
522
|
-
event
|
|
523
|
-
);
|
|
524
|
-
if (!prepared) return;
|
|
525
|
-
openMenu({
|
|
526
|
-
config: match.config,
|
|
527
|
-
context: prepared.context,
|
|
528
|
-
items: prepared.items,
|
|
529
|
-
position: { x: event.clientX, y: event.clientY }
|
|
530
|
-
});
|
|
531
|
-
};
|
|
532
|
-
document.addEventListener("contextmenu", handleContextMenu, true);
|
|
533
|
-
return () => document.removeEventListener("contextmenu", handleContextMenu, true);
|
|
534
|
-
}, [dockCard, menus, openMenu, pathname]);
|
|
535
|
-
}
|
|
536
|
-
function useMenuDismissal(menuRef, onClose) {
|
|
537
|
-
useEffect(() => {
|
|
538
|
-
const preventScroll = (event) => event.preventDefault();
|
|
539
|
-
const listenerOptions = { capture: true, passive: false };
|
|
540
|
-
const handleInteraction = (event) => {
|
|
541
|
-
const isInside = menuRef.current?.contains(event.target);
|
|
542
|
-
if (event.type === "keydown") {
|
|
543
|
-
if (event.key === "Escape") onClose();
|
|
544
|
-
if (!isInside && isScrollLockKey(event)) {
|
|
545
|
-
event.preventDefault();
|
|
546
|
-
}
|
|
547
|
-
} else if (!isInside) {
|
|
548
|
-
onClose();
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
document.addEventListener("mousedown", handleInteraction, true);
|
|
552
|
-
document.addEventListener("keydown", handleInteraction, true);
|
|
553
|
-
window.addEventListener("wheel", preventScroll, listenerOptions);
|
|
554
|
-
window.addEventListener("touchmove", preventScroll, listenerOptions);
|
|
555
|
-
return () => {
|
|
556
|
-
document.removeEventListener("mousedown", handleInteraction, true);
|
|
557
|
-
document.removeEventListener("keydown", handleInteraction, true);
|
|
558
|
-
window.removeEventListener("wheel", preventScroll, true);
|
|
559
|
-
window.removeEventListener("touchmove", preventScroll, true);
|
|
560
|
-
};
|
|
561
|
-
}, [menuRef, onClose]);
|
|
562
|
-
}
|
|
563
|
-
function useContextMenuContentModel({
|
|
564
|
-
config,
|
|
565
|
-
items,
|
|
566
|
-
menuContext,
|
|
567
|
-
onClose,
|
|
568
|
-
position
|
|
569
|
-
}) {
|
|
570
|
-
const menuRef = useRef(null);
|
|
571
|
-
const itemRefs = useRef([]);
|
|
572
|
-
const theme = useTheme(contextMenuTheme);
|
|
573
|
-
const classes = useMemo(() => {
|
|
574
|
-
const overrides = config.classNames ?? {};
|
|
575
|
-
const merged = { ...theme.slots };
|
|
576
|
-
for (const slot of Object.keys(merged)) {
|
|
577
|
-
merged[slot] = joinClassNames(theme.slots[slot], overrides[slot]);
|
|
578
|
-
}
|
|
579
|
-
return merged;
|
|
580
|
-
}, [config.classNames, theme.slots]);
|
|
581
|
-
const header = useMemo(
|
|
582
|
-
() => resolveMenuHeader(config, menuContext),
|
|
583
|
-
[config, menuContext]
|
|
584
|
-
);
|
|
585
|
-
const [activeIndex, setActiveIndex] = useState(-1);
|
|
586
|
-
const [prevItems, setPrevItems] = useState(items);
|
|
587
|
-
if (items !== prevItems) {
|
|
588
|
-
setPrevItems(items);
|
|
589
|
-
setActiveIndex(-1);
|
|
590
|
-
}
|
|
591
|
-
useLayoutEffect(() => {
|
|
592
|
-
itemRefs.current = [];
|
|
593
|
-
positionMenu(menuRef.current, position);
|
|
594
|
-
}, [header, items, position]);
|
|
595
|
-
useEffect(() => {
|
|
596
|
-
const target = activeIndex < 0 ? menuRef.current : itemRefs.current[activeIndex];
|
|
597
|
-
target?.focus({ preventScroll: true });
|
|
598
|
-
}, [activeIndex]);
|
|
599
|
-
useMenuDismissal(menuRef, onClose);
|
|
600
|
-
const handleItemSelect = useCallback(
|
|
601
|
-
(item, event) => {
|
|
602
|
-
event.preventDefault();
|
|
603
|
-
event.stopPropagation();
|
|
604
|
-
if (item.disabled) return;
|
|
605
|
-
safeInvoke(item.onSelect || item.onClick, event, menuContext);
|
|
606
|
-
if (item.closeOnSelect !== false) onClose();
|
|
607
|
-
},
|
|
608
|
-
[menuContext, onClose]
|
|
609
|
-
);
|
|
610
|
-
const handleMenuKeyDown = (event) => {
|
|
611
|
-
if (event.key === "Escape") {
|
|
612
|
-
event.preventDefault();
|
|
613
|
-
onClose();
|
|
614
|
-
} else if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
615
|
-
event.preventDefault();
|
|
616
|
-
const direction = event.key === "ArrowDown" ? 1 : -1;
|
|
617
|
-
setActiveIndex(
|
|
618
|
-
(current) => getNextActiveIndex(items, current, direction)
|
|
619
|
-
);
|
|
620
|
-
} else if ((event.key === "Enter" || event.key === " ") && items[activeIndex]) {
|
|
621
|
-
event.preventDefault();
|
|
622
|
-
handleItemSelect(items[activeIndex], event);
|
|
623
|
-
}
|
|
624
|
-
};
|
|
625
|
-
return {
|
|
626
|
-
menuRef,
|
|
627
|
-
itemRefs,
|
|
628
|
-
classes,
|
|
629
|
-
styles: theme.styles,
|
|
630
|
-
header,
|
|
631
|
-
activeIndex,
|
|
632
|
-
setActiveIndex,
|
|
633
|
-
handleItemSelect,
|
|
634
|
-
handleMenuKeyDown
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
// src/modules/context-menu/motion.ts
|
|
639
|
-
function useContextMenuMotion() {
|
|
640
|
-
return useModuleMotion(contextMenuTheme);
|
|
641
|
-
}
|
|
642
|
-
function ContextMenuHeaderIcon({
|
|
643
|
-
classes,
|
|
644
|
-
icon
|
|
645
|
-
}) {
|
|
646
|
-
const iconClassName = classes.headerIcon;
|
|
647
|
-
if (isImageIconSource(icon)) {
|
|
648
|
-
return /* @__PURE__ */ jsx(
|
|
649
|
-
"div",
|
|
650
|
-
{
|
|
651
|
-
className: iconClassName,
|
|
652
|
-
style: { backgroundImage: `url(${icon})` }
|
|
653
|
-
}
|
|
654
|
-
);
|
|
655
|
-
}
|
|
656
|
-
return /* @__PURE__ */ jsx("div", { className: iconClassName, children: typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { icon, size: 20 }) : icon });
|
|
657
|
-
}
|
|
658
|
-
function ContextMenuHeader({
|
|
659
|
-
classes,
|
|
660
|
-
header
|
|
661
|
-
}) {
|
|
662
|
-
if (!header) return null;
|
|
663
|
-
return /* @__PURE__ */ jsxs("div", { className: classes.header, children: [
|
|
664
|
-
header.icon && /* @__PURE__ */ jsx(ContextMenuHeaderIcon, { classes, icon: header.icon }),
|
|
665
|
-
/* @__PURE__ */ jsxs("div", { className: classes.headerText, children: [
|
|
666
|
-
header.eyebrow && /* @__PURE__ */ jsx("div", { className: classes.headerEyebrow, children: header.eyebrow }),
|
|
667
|
-
header.title && /* @__PURE__ */ jsx("div", { className: classes.headerTitle, children: header.title }),
|
|
668
|
-
header.description && /* @__PURE__ */ jsx("div", { className: classes.headerDescription, children: header.description })
|
|
669
|
-
] })
|
|
670
|
-
] });
|
|
671
|
-
}
|
|
672
|
-
function ContextMenuItem({
|
|
673
|
-
classes,
|
|
674
|
-
isActive,
|
|
675
|
-
item,
|
|
676
|
-
onHover,
|
|
677
|
-
onSelect,
|
|
678
|
-
setButtonRef
|
|
679
|
-
}) {
|
|
680
|
-
const menuMotion = useContextMenuMotion();
|
|
681
|
-
if (item.type === "separator") {
|
|
682
|
-
return /* @__PURE__ */ jsx("div", { className: classes.separator, role: "separator" });
|
|
683
|
-
}
|
|
684
|
-
const itemClassName = joinClassNames(classes.item, item.className);
|
|
685
|
-
const itemIconClassName = joinClassNames(
|
|
686
|
-
classes.itemIcon,
|
|
687
|
-
item.itemIconClassName
|
|
688
|
-
);
|
|
689
|
-
return /* @__PURE__ */ jsxs(
|
|
690
|
-
motion.button,
|
|
691
|
-
{
|
|
692
|
-
ref: setButtonRef,
|
|
693
|
-
className: itemClassName,
|
|
694
|
-
"data-active": isActive ? "true" : void 0,
|
|
695
|
-
"aria-disabled": item.disabled,
|
|
696
|
-
disabled: item.disabled,
|
|
697
|
-
role: "menuitem",
|
|
698
|
-
type: "button",
|
|
699
|
-
whileTap: menuMotion.itemTap,
|
|
700
|
-
transition: menuMotion.itemTransition,
|
|
701
|
-
onMouseEnter: onHover,
|
|
702
|
-
onClick: (event) => onSelect(item, event),
|
|
703
|
-
children: [
|
|
704
|
-
item.icon && (typeof item.icon === "string" ? /* @__PURE__ */ jsx(Icon, { icon: item.icon, className: itemIconClassName, size: 18 }) : item.icon),
|
|
705
|
-
/* @__PURE__ */ jsx("span", { className: classes.itemLabel, children: item.label }),
|
|
706
|
-
item.shortcut && /* @__PURE__ */ jsx("span", { className: classes.itemShortcut, children: item.shortcut })
|
|
707
|
-
]
|
|
708
|
-
}
|
|
709
|
-
);
|
|
710
|
-
}
|
|
711
|
-
var EMPTY_MENU_CONTEXT = Object.freeze({
|
|
712
|
-
pathname: "",
|
|
713
|
-
point: { x: 0, y: 0 }
|
|
714
|
-
});
|
|
715
|
-
function ContextMenuContent({
|
|
716
|
-
config,
|
|
717
|
-
items,
|
|
718
|
-
menuContext,
|
|
719
|
-
onClose,
|
|
720
|
-
position
|
|
721
|
-
}) {
|
|
722
|
-
const {
|
|
723
|
-
menuRef,
|
|
724
|
-
itemRefs,
|
|
725
|
-
classes,
|
|
726
|
-
styles,
|
|
727
|
-
header,
|
|
728
|
-
activeIndex,
|
|
729
|
-
setActiveIndex,
|
|
730
|
-
handleItemSelect,
|
|
731
|
-
handleMenuKeyDown
|
|
732
|
-
} = useContextMenuContentModel({
|
|
733
|
-
config,
|
|
734
|
-
items,
|
|
735
|
-
menuContext,
|
|
736
|
-
onClose,
|
|
737
|
-
position
|
|
738
|
-
});
|
|
739
|
-
const menuMotion = useContextMenuMotion();
|
|
740
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
741
|
-
/* @__PURE__ */ jsx(
|
|
742
|
-
"div",
|
|
743
|
-
{
|
|
744
|
-
"data-context-menu-overlay": true,
|
|
745
|
-
className: classes.backdrop,
|
|
746
|
-
onMouseDown: onClose,
|
|
747
|
-
style: styles.backdrop
|
|
748
|
-
}
|
|
749
|
-
),
|
|
750
|
-
/* @__PURE__ */ jsxs(
|
|
751
|
-
motion.div,
|
|
752
|
-
{
|
|
753
|
-
ref: menuRef,
|
|
754
|
-
"data-context-menu-ignore": true,
|
|
755
|
-
variants: menuMotion.pop,
|
|
756
|
-
initial: "hidden",
|
|
757
|
-
animate: "visible",
|
|
758
|
-
exit: "exit",
|
|
759
|
-
className: classes.menu,
|
|
760
|
-
role: "menu",
|
|
761
|
-
tabIndex: -1,
|
|
762
|
-
style: {
|
|
763
|
-
...styles.menu,
|
|
764
|
-
left: position.x || 0,
|
|
765
|
-
top: position.y || 0,
|
|
766
|
-
position: "fixed"
|
|
767
|
-
},
|
|
768
|
-
onMouseLeave: () => setActiveIndex(-1),
|
|
769
|
-
onKeyDown: handleMenuKeyDown,
|
|
770
|
-
children: [
|
|
771
|
-
/* @__PURE__ */ jsx(
|
|
772
|
-
motion.div,
|
|
773
|
-
{
|
|
774
|
-
variants: menuMotion.content,
|
|
775
|
-
initial: "hidden",
|
|
776
|
-
animate: "visible",
|
|
777
|
-
children: /* @__PURE__ */ jsx(ContextMenuHeader, { classes, header })
|
|
778
|
-
}
|
|
779
|
-
),
|
|
780
|
-
items.map((item, index) => /* @__PURE__ */ jsx(
|
|
781
|
-
motion.div,
|
|
782
|
-
{
|
|
783
|
-
variants: menuMotion.item,
|
|
784
|
-
custom: index,
|
|
785
|
-
initial: "hidden",
|
|
786
|
-
animate: "visible",
|
|
787
|
-
children: /* @__PURE__ */ jsx(
|
|
788
|
-
ContextMenuItem,
|
|
789
|
-
{
|
|
790
|
-
item,
|
|
791
|
-
classes,
|
|
792
|
-
isActive: index === activeIndex,
|
|
793
|
-
onHover: () => {
|
|
794
|
-
if (item.type === "action" && !item.disabled) {
|
|
795
|
-
setActiveIndex(index);
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
setButtonRef: (node) => {
|
|
799
|
-
itemRefs.current[index] = node;
|
|
800
|
-
},
|
|
801
|
-
onSelect: handleItemSelect
|
|
802
|
-
}
|
|
803
|
-
)
|
|
804
|
-
},
|
|
805
|
-
item.key || `menu-item-${index}`
|
|
806
|
-
))
|
|
807
|
-
]
|
|
808
|
-
}
|
|
809
|
-
)
|
|
810
|
-
] });
|
|
811
|
-
}
|
|
812
|
-
var emptySubscribe = () => () => {
|
|
813
|
-
};
|
|
814
|
-
function ContextMenuRenderer() {
|
|
815
|
-
const { closeMenu, config, context, isOpen, items, position } = useContextMenu();
|
|
816
|
-
const isMounted = useSyncExternalStore(
|
|
817
|
-
emptySubscribe,
|
|
818
|
-
() => true,
|
|
819
|
-
() => false
|
|
820
|
-
);
|
|
821
|
-
if (!isMounted) return null;
|
|
822
|
-
const menuContext = context ?? EMPTY_MENU_CONTEXT;
|
|
823
|
-
const resolvedItems = items.length ? items : resolveMenuItems(config, menuContext);
|
|
824
|
-
return createPortal(
|
|
825
|
-
/* @__PURE__ */ jsx(AnimatePresence, { children: isOpen && config && resolvedItems.length > 0 && /* @__PURE__ */ jsx(
|
|
826
|
-
ContextMenuContent,
|
|
827
|
-
{
|
|
828
|
-
config,
|
|
829
|
-
items: resolvedItems,
|
|
830
|
-
menuContext,
|
|
831
|
-
position,
|
|
832
|
-
onClose: closeMenu
|
|
833
|
-
},
|
|
834
|
-
"context-menu-content"
|
|
835
|
-
) }),
|
|
836
|
-
document.body
|
|
837
|
-
);
|
|
838
|
-
}
|
|
839
|
-
function ContextMenuGlobal() {
|
|
840
|
-
useContextMenuListener();
|
|
841
|
-
return /* @__PURE__ */ jsx(ContextMenuRenderer, {});
|
|
842
|
-
}
|
|
843
|
-
function selectPageContextMenu(config) {
|
|
844
|
-
return config.contextMenu ?? null;
|
|
845
|
-
}
|
|
846
|
-
function useContextMenuPage(_slice, page) {
|
|
847
|
-
const actions = useContextMenuActions();
|
|
848
|
-
return useMemo(
|
|
849
|
-
() => ({
|
|
850
|
-
...actions,
|
|
851
|
-
set: (contextMenu) => page.set({ contextMenu })
|
|
852
|
-
}),
|
|
853
|
-
[actions, page]
|
|
854
|
-
);
|
|
855
|
-
}
|
|
856
|
-
var contextMenuModule = defineModule({
|
|
857
|
-
id: "contextMenu",
|
|
858
|
-
context: ContextMenuContext,
|
|
859
|
-
Provider: ContextMenuProvider,
|
|
860
|
-
uses: ["dock"],
|
|
861
|
-
Overlay: ContextMenuGlobal,
|
|
862
|
-
registry: {
|
|
863
|
-
cleanupDelayMs: 600,
|
|
864
|
-
keyPolicy: "route",
|
|
865
|
-
lifecycle: "immediate",
|
|
866
|
-
reservedKeys: [CURRENT_PAGE_KEY, GLOBAL_MENU_KEY]
|
|
867
|
-
},
|
|
868
|
-
page: {
|
|
869
|
-
select: selectPageContextMenu,
|
|
870
|
-
entries: (slice, { pathname }) => [
|
|
871
|
-
{ key: pathname || CURRENT_PAGE_KEY, value: slice }
|
|
872
|
-
],
|
|
873
|
-
use: useContextMenuPage
|
|
874
|
-
}
|
|
875
|
-
});
|
|
876
|
-
function defineContextMenu(definition = {}) {
|
|
877
|
-
return Object.freeze({
|
|
878
|
-
config: definition,
|
|
879
|
-
id: definition.id ?? "context-menu",
|
|
880
|
-
use: function useDefinedContextMenu(options = {}) {
|
|
881
|
-
return useContextMenu({ ...definition, ...options });
|
|
882
|
-
}
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
export { CONTEXT_MENU_VISIBILITY_EVENT, CURRENT_PAGE_KEY, ContextMenuContext, ContextMenuGlobal, ContextMenuHeader, ContextMenuHeaderIcon, ContextMenuItem, ContextMenuProvider, ContextMenuRenderer, GLOBAL_MENU_KEY, INITIAL_POSITION, MENU_SCREEN_MARGIN, contextMenuModule, contextMenuTheme, createInitialMenuState, defineContextMenu, emitContextMenuVisibility, extractNodeText, getNextActiveIndex, isScrollLockKey, joinClassNames, positionMenu, prepareMenu, resolveAsBoolean, resolveAsValue, resolveContextMenu, resolveContextMenuPageMeta, resolveMenuHeader, resolveMenuItems, resolveNextOpenState, safeInvoke, useContextMenu, useContextMenuActions, useContextMenuContentModel, useContextMenuListener, useContextMenuRegistration, useContextMenuState, useMenuDismissal };
|
|
887
|
-
//# sourceMappingURL=chunk-ACLLDU3J.js.map
|
|
888
|
-
//# sourceMappingURL=chunk-ACLLDU3J.js.map
|