@omerdlw/base-framework 3.0.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +75 -0
- package/README.md +33 -25
- package/dist/ambient/index.d.ts +1 -0
- package/dist/ambient/index.js +14 -0
- package/dist/ambient/server/index.d.ts +1 -0
- package/dist/ambient/server/index.js +238 -0
- package/dist/ambient/server/index.js.map +1 -0
- package/dist/ambient/worker/index.d.ts +1 -0
- package/dist/ambient/worker/index.js +143 -0
- package/dist/ambient/worker/index.js.map +1 -0
- package/dist/background/index.d.ts +1 -0
- package/dist/background/index.js +13 -0
- package/dist/chunk-2223J34C.js +850 -0
- package/dist/chunk-2223J34C.js.map +1 -0
- package/dist/chunk-2LGI33JP.js +832 -0
- package/dist/chunk-2LGI33JP.js.map +1 -0
- package/dist/chunk-37OBXNEO.js +116 -0
- package/dist/chunk-37OBXNEO.js.map +1 -0
- package/dist/chunk-4OQGXZIH.js +1435 -0
- package/dist/chunk-4OQGXZIH.js.map +1 -0
- package/dist/chunk-5H6FZW3N.js +535 -0
- package/dist/chunk-5H6FZW3N.js.map +1 -0
- package/dist/chunk-7RSRDKYE.js +22 -0
- package/dist/chunk-7RSRDKYE.js.map +1 -0
- package/dist/chunk-AYUEZPAN.js +15762 -0
- package/dist/chunk-AYUEZPAN.js.map +1 -0
- package/dist/chunk-BCFJSPTI.js +261 -0
- package/dist/chunk-BCFJSPTI.js.map +1 -0
- package/dist/chunk-BMFHS3GV.js +118 -0
- package/dist/chunk-BMFHS3GV.js.map +1 -0
- package/dist/chunk-CRKJAACG.js +81 -0
- package/dist/chunk-CRKJAACG.js.map +1 -0
- package/dist/chunk-CT4UILO2.js +537 -0
- package/dist/chunk-CT4UILO2.js.map +1 -0
- package/dist/chunk-ESD5EQ5H.js +178 -0
- package/dist/chunk-ESD5EQ5H.js.map +1 -0
- package/dist/chunk-GCHQ5OC4.js +460 -0
- package/dist/chunk-GCHQ5OC4.js.map +1 -0
- package/dist/chunk-GT4COZI7.js +110 -0
- package/dist/chunk-GT4COZI7.js.map +1 -0
- package/dist/chunk-H6HRU3XN.js +567 -0
- package/dist/chunk-H6HRU3XN.js.map +1 -0
- package/dist/chunk-J3VTDBC6.js +14 -0
- package/dist/chunk-J3VTDBC6.js.map +1 -0
- package/dist/chunk-LTO77WSO.js +140 -0
- package/dist/chunk-LTO77WSO.js.map +1 -0
- package/dist/chunk-MCYHKFZL.js +17 -0
- package/dist/chunk-MCYHKFZL.js.map +1 -0
- package/dist/chunk-NHOJWICA.js +2367 -0
- package/dist/chunk-NHOJWICA.js.map +1 -0
- package/dist/chunk-QMFV53PP.js +1766 -0
- package/dist/chunk-QMFV53PP.js.map +1 -0
- package/dist/chunk-RDYYP36I.js +27 -0
- package/dist/chunk-RDYYP36I.js.map +1 -0
- package/dist/chunk-RF2YGILF.js +656 -0
- package/dist/chunk-RF2YGILF.js.map +1 -0
- package/dist/chunk-RTCJ35UC.js +825 -0
- package/dist/chunk-RTCJ35UC.js.map +1 -0
- package/dist/chunk-TUUGWQY5.js +3488 -0
- package/dist/chunk-TUUGWQY5.js.map +1 -0
- package/dist/chunk-WXEOP6Z4.js +577 -0
- package/dist/chunk-WXEOP6Z4.js.map +1 -0
- package/dist/chunk-WYVA6AN5.js +590 -0
- package/dist/chunk-WYVA6AN5.js.map +1 -0
- package/dist/chunk-Y2Q74PJP.js +537 -0
- package/dist/chunk-Y2Q74PJP.js.map +1 -0
- package/dist/chunk-ZFTQY7OF.js +139 -0
- package/dist/chunk-ZFTQY7OF.js.map +1 -0
- package/dist/chunk-ZSNP26VU.js +493 -0
- package/dist/chunk-ZSNP26VU.js.map +1 -0
- package/dist/context-menu/index.d.ts +1 -0
- package/dist/context-menu/index.js +19 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +10 -0
- package/dist/core/error/boundary.d.ts +27 -0
- package/dist/core/error/boundary.d.ts.map +1 -0
- package/dist/core/error/constants.d.ts +33 -0
- package/dist/core/error/constants.d.ts.map +1 -0
- package/dist/core/error/index.d.ts +9 -0
- package/dist/core/error/index.d.ts.map +1 -0
- package/dist/core/error/listener.d.ts +6 -0
- package/dist/core/error/listener.d.ts.map +1 -0
- package/dist/core/error/reporter.d.ts +49 -0
- package/dist/core/error/reporter.d.ts.map +1 -0
- package/dist/core/error/theme.d.ts +10 -0
- package/dist/core/error/theme.d.ts.map +1 -0
- package/dist/core/error/types.d.ts +128 -0
- package/dist/core/error/types.d.ts.map +1 -0
- package/dist/core/error/utils.d.ts +55 -0
- package/dist/core/error/utils.d.ts.map +1 -0
- package/dist/core/kernel/adapters.d.ts +9 -0
- package/dist/core/kernel/adapters.d.ts.map +1 -0
- package/dist/core/kernel/compose.d.ts +21 -0
- package/dist/core/kernel/compose.d.ts.map +1 -0
- package/dist/core/kernel/constants.d.ts +42 -0
- package/dist/core/kernel/constants.d.ts.map +1 -0
- package/dist/core/kernel/handlers.d.ts +7 -0
- package/dist/core/kernel/handlers.d.ts.map +1 -0
- package/dist/core/kernel/hooks.d.ts +13 -0
- package/dist/core/kernel/hooks.d.ts.map +1 -0
- package/dist/core/kernel/index.d.ts +15 -0
- package/dist/core/kernel/index.d.ts.map +1 -0
- package/dist/core/kernel/installed.d.ts +28 -0
- package/dist/core/kernel/installed.d.ts.map +1 -0
- package/dist/core/kernel/module.d.ts +57 -0
- package/dist/core/kernel/module.d.ts.map +1 -0
- package/dist/core/kernel/operations-records.d.ts +25 -0
- package/dist/core/kernel/operations-records.d.ts.map +1 -0
- package/dist/core/kernel/operations-resolve.d.ts +5 -0
- package/dist/core/kernel/operations-resolve.d.ts.map +1 -0
- package/dist/core/kernel/operations.d.ts +23 -0
- package/dist/core/kernel/operations.d.ts.map +1 -0
- package/dist/core/kernel/page-controller.d.ts +20 -0
- package/dist/core/kernel/page-controller.d.ts.map +1 -0
- package/dist/core/kernel/provider.d.ts +29 -0
- package/dist/core/kernel/provider.d.ts.map +1 -0
- package/dist/core/kernel/runtime.d.ts.map +1 -0
- package/dist/core/kernel/schema.d.ts +13 -0
- package/dist/core/kernel/schema.d.ts.map +1 -0
- package/dist/core/kernel/stabilize.d.ts +13 -0
- package/dist/core/kernel/stabilize.d.ts.map +1 -0
- package/dist/core/kernel/store-batch.d.ts +17 -0
- package/dist/core/kernel/store-batch.d.ts.map +1 -0
- package/dist/core/kernel/store-entries.d.ts +6 -0
- package/dist/core/kernel/store-entries.d.ts.map +1 -0
- package/dist/core/kernel/store-handles.d.ts +4 -0
- package/dist/core/kernel/store-handles.d.ts.map +1 -0
- package/dist/core/kernel/store-registration.d.ts +14 -0
- package/dist/core/kernel/store-registration.d.ts.map +1 -0
- package/dist/core/kernel/store-snapshots.d.ts +14 -0
- package/dist/core/kernel/store-snapshots.d.ts.map +1 -0
- package/dist/core/kernel/store-subscriptions.d.ts +16 -0
- package/dist/core/kernel/store-subscriptions.d.ts.map +1 -0
- package/dist/core/kernel/store.d.ts +8 -0
- package/dist/core/kernel/store.d.ts.map +1 -0
- package/dist/core/kernel/types-modules.d.ts +82 -0
- package/dist/core/kernel/types-modules.d.ts.map +1 -0
- package/dist/core/kernel/types-page.d.ts +67 -0
- package/dist/core/kernel/types-page.d.ts.map +1 -0
- package/dist/core/kernel/types-store.d.ts +71 -0
- package/dist/core/kernel/types-store.d.ts.map +1 -0
- package/dist/core/kernel/types.d.ts +169 -0
- package/dist/core/kernel/types.d.ts.map +1 -0
- package/dist/core/kernel/utils.d.ts +21 -0
- package/dist/core/kernel/utils.d.ts.map +1 -0
- package/dist/core/navigation/constants.d.ts +48 -0
- package/dist/core/navigation/constants.d.ts.map +1 -0
- package/dist/core/navigation/navigator-defaults.d.ts +4 -0
- package/dist/core/navigation/navigator-defaults.d.ts.map +1 -0
- package/dist/core/navigation/navigator-holds.d.ts +8 -0
- package/dist/core/navigation/navigator-holds.d.ts.map +1 -0
- package/dist/core/navigation/navigator-patience.d.ts +15 -0
- package/dist/core/navigation/navigator-patience.d.ts.map +1 -0
- package/dist/core/navigation/navigator-payload.d.ts +6 -0
- package/dist/core/navigation/navigator-payload.d.ts.map +1 -0
- package/dist/core/navigation/navigator-prefetch.d.ts +13 -0
- package/dist/core/navigation/navigator-prefetch.d.ts.map +1 -0
- package/dist/core/navigation/navigator.d.ts +7 -0
- package/dist/core/navigation/navigator.d.ts.map +1 -0
- package/dist/core/navigation/settings.d.ts +12 -0
- package/dist/core/navigation/settings.d.ts.map +1 -0
- package/dist/core/navigation/state.d.ts +26 -0
- package/dist/core/navigation/state.d.ts.map +1 -0
- package/dist/core/navigation/types.d.ts +194 -0
- package/dist/core/navigation/types.d.ts.map +1 -0
- package/dist/core/navigation/utils.d.ts +18 -0
- package/dist/core/navigation/utils.d.ts.map +1 -0
- package/dist/core/provider/index.d.ts +31 -0
- package/dist/core/provider/index.d.ts.map +1 -0
- package/dist/dock/index.d.ts +1 -0
- package/dist/dock/index.js +18 -0
- package/dist/error/index.d.ts +1 -9
- package/dist/error/index.js +8 -5
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +83 -0
- package/dist/events/index.js.map +1 -0
- package/dist/foundation/events/index.d.ts +67 -0
- package/dist/foundation/events/index.d.ts.map +1 -0
- package/dist/foundation/recipes/anatomy.d.ts +139 -0
- package/dist/foundation/recipes/anatomy.d.ts.map +1 -0
- package/dist/foundation/recipes/cn.d.ts +17 -0
- package/dist/foundation/recipes/cn.d.ts.map +1 -0
- package/dist/foundation/recipes/define.d.ts +134 -0
- package/dist/foundation/recipes/define.d.ts.map +1 -0
- package/dist/foundation/recipes/index.d.ts +11 -0
- package/dist/foundation/recipes/index.d.ts.map +1 -0
- package/dist/foundation/recipes/recipe.d.ts +97 -0
- package/dist/foundation/recipes/recipe.d.ts.map +1 -0
- package/dist/foundation/recipes/split.d.ts +10 -0
- package/dist/foundation/recipes/split.d.ts.map +1 -0
- package/dist/foundation/result/index.d.ts +98 -0
- package/dist/foundation/result/index.d.ts.map +1 -0
- package/dist/foundation/utils/dom.d.ts +19 -0
- package/dist/foundation/utils/dom.d.ts.map +1 -0
- package/dist/foundation/utils/index.d.ts +17 -0
- package/dist/foundation/utils/index.d.ts.map +1 -0
- package/dist/foundation/utils/number.d.ts +9 -0
- package/dist/foundation/utils/number.d.ts.map +1 -0
- package/dist/foundation/utils/object.d.ts +17 -0
- package/dist/foundation/utils/object.d.ts.map +1 -0
- package/dist/foundation/utils/report.d.ts +18 -0
- package/dist/foundation/utils/report.d.ts.map +1 -0
- package/dist/foundation/utils/scheduler.d.ts +52 -0
- package/dist/foundation/utils/scheduler.d.ts.map +1 -0
- package/dist/foundation/utils/store.d.ts +21 -0
- package/dist/foundation/utils/store.d.ts.map +1 -0
- package/dist/foundation/utils/string.d.ts +18 -0
- package/dist/foundation/utils/string.d.ts.map +1 -0
- package/dist/foundation/utils/tempo.d.ts +61 -0
- package/dist/foundation/utils/tempo.d.ts.map +1 -0
- package/dist/foundation/utils/timing.d.ts +13 -0
- package/dist/foundation/utils/timing.d.ts.map +1 -0
- package/dist/foundation/utils/transform.d.ts +17 -0
- package/dist/foundation/utils/transform.d.ts.map +1 -0
- package/dist/foundation/utils/user-message.d.ts +32 -0
- package/dist/foundation/utils/user-message.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -10
- package/dist/hooks/index.js +3 -1
- package/dist/index.d.ts +8 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -20
- package/dist/kernel/index.d.ts +1 -15
- package/dist/kernel/index.js +5 -2
- package/dist/loading/index.d.ts +1 -0
- package/dist/loading/index.js +12 -0
- package/dist/media/index.d.ts +1 -0
- package/dist/media/index.js +9 -0
- package/dist/modal/index.d.ts +1 -0
- package/dist/modal/index.js +310 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/modules/ambient/analyze-bounds.d.ts +12 -0
- package/dist/modules/ambient/analyze-bounds.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-clusters.d.ts +14 -0
- package/dist/modules/ambient/analyze-clusters.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-measures.d.ts +22 -0
- package/dist/modules/ambient/analyze-measures.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-swatches.d.ts +16 -0
- package/dist/modules/ambient/analyze-swatches.d.ts.map +1 -0
- package/dist/modules/ambient/analyze.d.ts +9 -49
- package/dist/modules/ambient/analyze.d.ts.map +1 -1
- package/dist/modules/ambient/constants.d.ts +4 -1
- package/dist/modules/ambient/constants.d.ts.map +1 -1
- package/dist/modules/ambient/context.d.ts +6 -0
- package/dist/modules/ambient/context.d.ts.map +1 -1
- package/dist/modules/ambient/dom.d.ts +23 -12
- package/dist/modules/ambient/dom.d.ts.map +1 -1
- package/dist/modules/ambient/extractor.d.ts +6 -4
- package/dist/modules/ambient/extractor.d.ts.map +1 -1
- package/dist/modules/ambient/hooks.d.ts +12 -0
- package/dist/modules/ambient/hooks.d.ts.map +1 -1
- package/dist/modules/ambient/index.d.ts +2 -2
- package/dist/modules/ambient/index.d.ts.map +1 -1
- package/dist/modules/ambient/module.d.ts +12 -1
- package/dist/modules/ambient/module.d.ts.map +1 -1
- package/dist/modules/ambient/oklab.d.ts +18 -13
- package/dist/modules/ambient/oklab.d.ts.map +1 -1
- package/dist/modules/ambient/pipeline.d.ts +0 -7
- package/dist/modules/ambient/pipeline.d.ts.map +1 -1
- package/dist/modules/ambient/quantize.d.ts +2 -9
- package/dist/modules/ambient/quantize.d.ts.map +1 -1
- package/dist/modules/ambient/server/address.d.ts +8 -3
- package/dist/modules/ambient/server/address.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.d.ts +20 -23
- package/dist/modules/ambient/server/index.d.ts.map +1 -1
- package/dist/modules/ambient/settings.d.ts +23 -3
- package/dist/modules/ambient/settings.d.ts.map +1 -1
- package/dist/modules/ambient/types.d.ts +98 -36
- package/dist/modules/ambient/types.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.d.ts +16 -1
- package/dist/modules/ambient/worker/index.d.ts.map +1 -1
- package/dist/modules/background/components/background-gradients.d.ts +8 -0
- package/dist/modules/background/components/background-gradients.d.ts.map +1 -0
- package/dist/modules/background/components/edge-gradient.d.ts +9 -0
- package/dist/modules/background/components/edge-gradient.d.ts.map +1 -0
- package/dist/modules/background/components/native-video.d.ts +4 -0
- package/dist/modules/background/components/native-video.d.ts.map +1 -0
- package/dist/modules/background/components/noise-overlay.d.ts +11 -0
- package/dist/modules/background/components/noise-overlay.d.ts.map +1 -0
- package/dist/modules/background/components/overlay.d.ts +6 -0
- package/dist/modules/background/components/overlay.d.ts.map +1 -0
- package/dist/modules/background/components/solid-overlay.d.ts +10 -0
- package/dist/modules/background/components/solid-overlay.d.ts.map +1 -0
- package/dist/modules/background/constants.d.ts +14 -1
- package/dist/modules/background/constants.d.ts.map +1 -1
- package/dist/modules/background/context.d.ts +7 -0
- package/dist/modules/background/context.d.ts.map +1 -1
- package/dist/modules/background/hooks/use-background-media-source.d.ts +4 -0
- package/dist/modules/background/hooks/use-background-media-source.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts +15 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts +929 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts +22 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts.map +1 -0
- package/dist/modules/background/hooks.d.ts +20 -1
- package/dist/modules/background/hooks.d.ts.map +1 -1
- package/dist/modules/background/index.d.ts +7 -7
- package/dist/modules/background/index.d.ts.map +1 -1
- package/dist/modules/background/lib/theme.d.ts +4 -0
- package/dist/modules/background/lib/theme.d.ts.map +1 -0
- package/dist/modules/background/model/override.d.ts +14 -0
- package/dist/modules/background/model/override.d.ts.map +1 -0
- package/dist/modules/background/model/playback.d.ts +25 -0
- package/dist/modules/background/model/playback.d.ts.map +1 -0
- package/dist/modules/background/model/state.d.ts +31 -0
- package/dist/modules/background/model/state.d.ts.map +1 -0
- package/dist/modules/background/model/video-frame.d.ts +31 -0
- package/dist/modules/background/model/video-frame.d.ts.map +1 -0
- package/dist/modules/background/model/visual.d.ts +932 -0
- package/dist/modules/background/model/visual.d.ts.map +1 -0
- package/dist/modules/background/module.d.ts +11 -0
- package/dist/modules/background/module.d.ts.map +1 -1
- package/dist/modules/background/motion.d.ts.map +1 -1
- package/dist/modules/background/types.d.ts +66 -10
- package/dist/modules/background/types.d.ts.map +1 -1
- package/dist/modules/background/youtube/components/player.d.ts +7 -0
- package/dist/modules/background/youtube/components/player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts +27 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +20 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +8 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts +16 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/audio.d.ts +17 -0
- package/dist/modules/background/youtube/lib/audio.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts +29 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/parse.d.ts +36 -0
- package/dist/modules/background/youtube/lib/parse.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/timing.d.ts +11 -0
- package/dist/modules/background/youtube/lib/timing.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts +53 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts.map +1 -0
- package/dist/modules/context-menu/constants.d.ts +30 -1
- package/dist/modules/context-menu/constants.d.ts.map +1 -1
- package/dist/modules/context-menu/context.d.ts +10 -2
- package/dist/modules/context-menu/context.d.ts.map +1 -1
- package/dist/modules/context-menu/dom.d.ts +13 -0
- package/dist/modules/context-menu/dom.d.ts.map +1 -1
- package/dist/modules/context-menu/hooks.d.ts +32 -5
- package/dist/modules/context-menu/hooks.d.ts.map +1 -1
- package/dist/modules/context-menu/index.d.ts +1 -1
- package/dist/modules/context-menu/index.d.ts.map +1 -1
- package/dist/modules/context-menu/items.d.ts +25 -0
- package/dist/modules/context-menu/items.d.ts.map +1 -1
- package/dist/modules/context-menu/module.d.ts +6 -0
- package/dist/modules/context-menu/module.d.ts.map +1 -1
- package/dist/modules/context-menu/motion.d.ts.map +1 -1
- package/dist/modules/context-menu/overlay.d.ts +30 -8
- package/dist/modules/context-menu/overlay.d.ts.map +1 -1
- package/dist/modules/context-menu/resolver.d.ts +8 -0
- package/dist/modules/context-menu/resolver.d.ts.map +1 -1
- package/dist/modules/context-menu/state.d.ts +9 -0
- package/dist/modules/context-menu/state.d.ts.map +1 -1
- package/dist/modules/context-menu/types.d.ts +85 -9
- package/dist/modules/context-menu/types.d.ts.map +1 -1
- package/dist/modules/controls/constants.d.ts +18 -1
- package/dist/modules/controls/constants.d.ts.map +1 -1
- package/dist/modules/controls/entries.d.ts +23 -1
- package/dist/modules/controls/entries.d.ts.map +1 -1
- package/dist/modules/controls/hooks.d.ts +11 -1
- package/dist/modules/controls/hooks.d.ts.map +1 -1
- package/dist/modules/controls/layout.d.ts +17 -0
- package/dist/modules/controls/layout.d.ts.map +1 -1
- package/dist/modules/controls/module.d.ts +7 -1
- package/dist/modules/controls/module.d.ts.map +1 -1
- package/dist/modules/controls/overlay.d.ts +11 -1
- package/dist/modules/controls/overlay.d.ts.map +1 -1
- package/dist/modules/controls/types.d.ts +51 -2
- package/dist/modules/controls/types.d.ts.map +1 -1
- package/dist/modules/dock/components/badge.d.ts +5 -0
- package/dist/modules/dock/components/badge.d.ts.map +1 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts +6 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +1 -0
- package/dist/modules/dock/components/card-banner.d.ts +4 -0
- package/dist/modules/dock/components/card-banner.d.ts.map +1 -0
- package/dist/modules/dock/components/card-header.d.ts +4 -0
- package/dist/modules/dock/components/card-header.d.ts.map +1 -0
- package/dist/modules/dock/components/card-item.d.ts +3 -0
- package/dist/modules/dock/components/card-item.d.ts.map +1 -0
- package/dist/modules/dock/components/command-bar.d.ts +7 -0
- package/dist/modules/dock/components/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/description.d.ts +4 -0
- package/dist/modules/dock/components/description.d.ts.map +1 -0
- package/dist/modules/dock/components/dock.d.ts +4 -0
- package/dist/modules/dock/components/dock.d.ts.map +1 -0
- package/dist/modules/dock/components/hud-view.d.ts +7 -0
- package/dist/modules/dock/components/hud-view.d.ts.map +1 -0
- package/dist/modules/dock/components/icon.d.ts +6 -0
- package/dist/modules/dock/components/icon.d.ts.map +1 -0
- package/dist/modules/dock/components/item-content.d.ts +4 -0
- package/dist/modules/dock/components/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/media-action.d.ts +4 -0
- package/dist/modules/dock/components/media-action.d.ts.map +1 -0
- package/dist/modules/dock/components/media-controls.d.ts +4 -0
- package/dist/modules/dock/components/media-controls.d.ts.map +1 -0
- package/dist/modules/dock/components/media-scrubber.d.ts +5 -0
- package/dist/modules/dock/components/media-scrubber.d.ts.map +1 -0
- package/dist/modules/dock/components/status-actions.d.ts +10 -0
- package/dist/modules/dock/components/status-actions.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/action.d.ts +17 -0
- package/dist/modules/dock/components/surface/action.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/controls.d.ts +12 -0
- package/dist/modules/dock/components/surface/controls.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts +5 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/header-button.d.ts +14 -0
- package/dist/modules/dock/components/surface/header-button.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/item-content.d.ts +6 -0
- package/dist/modules/dock/components/surface/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/shell.d.ts +3 -0
- package/dist/modules/dock/components/surface/shell.d.ts.map +1 -0
- package/dist/modules/dock/components/title.d.ts +4 -0
- package/dist/modules/dock/components/title.d.ts.map +1 -0
- package/dist/modules/dock/constants.d.ts +11 -2
- package/dist/modules/dock/constants.d.ts.map +1 -1
- package/dist/modules/dock/context.d.ts +8 -2
- package/dist/modules/dock/context.d.ts.map +1 -1
- package/dist/modules/dock/hooks/use-action-slot.d.ts +6 -0
- package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-badge.d.ts +4 -0
- package/dist/modules/dock/hooks/use-badge.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts +18 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts +7 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts +1612 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts +19 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts +8 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +2 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts +3 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts +16 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts +9 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts +8 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts.map +1 -0
- package/dist/modules/dock/hud.d.ts +8 -34
- package/dist/modules/dock/hud.d.ts.map +1 -1
- package/dist/modules/dock/index.d.ts +18 -12
- package/dist/modules/dock/index.d.ts.map +1 -1
- package/dist/modules/dock/lib/banner.d.ts +43 -0
- package/dist/modules/dock/lib/banner.d.ts.map +1 -0
- package/dist/modules/dock/lib/card-item.d.ts +46 -0
- package/dist/modules/dock/lib/card-item.d.ts.map +1 -0
- package/dist/modules/dock/lib/card.d.ts +20 -0
- package/dist/modules/dock/lib/card.d.ts.map +1 -0
- package/dist/modules/dock/lib/command-bar.d.ts +8 -0
- package/dist/modules/dock/lib/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/lib/dom.d.ts +7 -0
- package/dist/modules/dock/lib/dom.d.ts.map +1 -0
- package/dist/modules/dock/lib/element-helpers.d.ts +8 -0
- package/dist/modules/dock/lib/element-helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/helpers.d.ts +19 -0
- package/dist/modules/dock/lib/helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/media.d.ts +35 -0
- package/dist/modules/dock/lib/media.d.ts.map +1 -0
- package/dist/modules/dock/lib/styles.d.ts +902 -0
- package/dist/modules/dock/lib/styles.d.ts.map +1 -0
- package/dist/modules/dock/model/hud-definition.d.ts +13 -0
- package/dist/modules/dock/model/hud-definition.d.ts.map +1 -0
- package/dist/modules/dock/model/hud.d.ts +10 -0
- package/dist/modules/dock/model/hud.d.ts.map +1 -0
- package/dist/modules/dock/model/layout.d.ts +28 -0
- package/dist/modules/dock/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/model/page-entry.d.ts +11 -0
- package/dist/modules/dock/model/page-entry.d.ts.map +1 -0
- package/dist/modules/dock/model/page-surface.d.ts +4 -0
- package/dist/modules/dock/model/page-surface.d.ts.map +1 -0
- package/dist/modules/dock/model/paths.d.ts +15 -0
- package/dist/modules/dock/model/paths.d.ts.map +1 -0
- package/dist/modules/dock/model/state.d.ts +28 -0
- package/dist/modules/dock/model/state.d.ts.map +1 -0
- package/dist/modules/dock/model/surface-return.d.ts +14 -0
- package/dist/modules/dock/model/surface-return.d.ts.map +1 -0
- package/dist/modules/dock/module.d.ts +5 -7
- package/dist/modules/dock/module.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +716 -11
- package/dist/modules/dock/motion.d.ts.map +1 -1
- package/dist/modules/dock/provider.d.ts +2 -1
- package/dist/modules/dock/provider.d.ts.map +1 -1
- package/dist/modules/dock/routing/breadcrumbs.d.ts +6 -2
- package/dist/modules/dock/routing/breadcrumbs.d.ts.map +1 -1
- package/dist/modules/dock/routing/continuity.d.ts +46 -14
- package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
- package/dist/modules/dock/routing/guards.d.ts +10 -1
- package/dist/modules/dock/routing/guards.d.ts.map +1 -1
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts +12 -0
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +1 -0
- package/dist/modules/dock/routing/lib/restore.d.ts +7 -0
- package/dist/modules/dock/routing/lib/restore.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/continuity.d.ts +21 -0
- package/dist/modules/dock/routing/model/continuity.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/policy.d.ts +7 -0
- package/dist/modules/dock/routing/model/policy.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/topology.d.ts +5 -0
- package/dist/modules/dock/routing/model/topology.d.ts.map +1 -0
- package/dist/modules/dock/routing/navigation.d.ts +10 -23
- package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
- package/dist/modules/dock/runtime/commands.d.ts +10 -1
- package/dist/modules/dock/runtime/commands.d.ts.map +1 -1
- package/dist/modules/dock/runtime/display.d.ts +9 -48
- package/dist/modules/dock/runtime/display.d.ts.map +1 -1
- package/dist/modules/dock/runtime/dock.d.ts +11 -70
- package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +14 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +7 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts +30 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/attention.d.ts +25 -0
- package/dist/modules/dock/runtime/model/attention.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/cards.d.ts +64 -0
- package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/items.d.ts +31 -0
- package/dist/modules/dock/runtime/model/items.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/layout.d.ts +10 -0
- package/dist/modules/dock/runtime/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/pipeline.d.ts +1 -1
- package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
- package/dist/modules/dock/runtime/provider-actions.d.ts +38 -0
- package/dist/modules/dock/runtime/provider-actions.d.ts.map +1 -0
- package/dist/modules/dock/status/action-options.d.ts +35 -0
- package/dist/modules/dock/status/action-options.d.ts.map +1 -0
- package/dist/modules/dock/status/events.d.ts +2 -2
- package/dist/modules/dock/status/events.d.ts.map +1 -1
- package/dist/modules/dock/status/hooks.d.ts +1 -1
- package/dist/modules/dock/status/hooks.d.ts.map +1 -1
- package/dist/modules/dock/status/model.d.ts +12 -32
- package/dist/modules/dock/status/model.d.ts.map +1 -1
- package/dist/modules/dock/status/state.d.ts +12 -0
- package/dist/modules/dock/status/state.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +5 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +7 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/constants.d.ts +5 -0
- package/dist/modules/dock/surface/constants.d.ts.map +1 -0
- package/dist/modules/dock/surface/context.d.ts +14 -1
- package/dist/modules/dock/surface/context.d.ts.map +1 -1
- package/dist/modules/dock/surface/definition.d.ts +28 -2
- package/dist/modules/dock/surface/definition.d.ts.map +1 -1
- package/dist/modules/dock/surface/helpers.d.ts +2 -1
- package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +15 -0
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +7 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +14 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts +20 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +13 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts +28 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/drag.d.ts +9 -0
- package/dist/modules/dock/surface/lib/drag.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/target.d.ts +8 -0
- package/dist/modules/dock/surface/lib/target.d.ts.map +1 -0
- package/dist/modules/dock/surface/machine.d.ts +17 -62
- package/dist/modules/dock/surface/machine.d.ts.map +1 -1
- package/dist/modules/dock/surface/model/builder.d.ts +39 -0
- package/dist/modules/dock/surface/model/builder.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/normalize.d.ts +13 -0
- package/dist/modules/dock/surface/model/normalize.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/open.d.ts +26 -0
- package/dist/modules/dock/surface/model/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/records.d.ts +45 -0
- package/dist/modules/dock/surface/model/records.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/steps.d.ts +9 -0
- package/dist/modules/dock/surface/model/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts +23 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/url.d.ts +14 -0
- package/dist/modules/dock/surface/model/url.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts +22 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/context.d.ts +29 -0
- package/dist/modules/dock/surface/runtime/context.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts +21 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/open.d.ts +6 -0
- package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/release.d.ts +9 -0
- package/dist/modules/dock/surface/runtime/release.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts +10 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/stack.d.ts +20 -11
- package/dist/modules/dock/surface/stack.d.ts.map +1 -1
- package/dist/modules/dock/surface/view-model.d.ts +5 -1
- package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
- package/dist/modules/dock/types/card.d.ts +297 -0
- package/dist/modules/dock/types/card.d.ts.map +1 -0
- package/dist/modules/dock/types/hud.d.ts +142 -0
- package/dist/modules/dock/types/hud.d.ts.map +1 -0
- package/dist/modules/dock/types/index.d.ts +8 -0
- package/dist/modules/dock/types/index.d.ts.map +1 -0
- package/dist/modules/dock/types/media.d.ts +66 -0
- package/dist/modules/dock/types/media.d.ts.map +1 -0
- package/dist/modules/dock/types/routing.d.ts +336 -0
- package/dist/modules/dock/types/routing.d.ts.map +1 -0
- package/dist/modules/dock/types/surface-flow.d.ts +231 -0
- package/dist/modules/dock/types/surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/types/surface.d.ts +194 -0
- package/dist/modules/dock/types/surface.d.ts.map +1 -0
- package/dist/modules/dock/types/theme.d.ts +201 -0
- package/dist/modules/dock/types/theme.d.ts.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +23 -18
- package/dist/modules/loading/constants.d.ts +18 -1
- package/dist/modules/loading/constants.d.ts.map +1 -1
- package/dist/modules/loading/context.d.ts +11 -1
- package/dist/modules/loading/context.d.ts.map +1 -1
- package/dist/modules/loading/hooks.d.ts +24 -1
- package/dist/modules/loading/hooks.d.ts.map +1 -1
- package/dist/modules/loading/index.d.ts +1 -1
- package/dist/modules/loading/index.d.ts.map +1 -1
- package/dist/modules/loading/module.d.ts +6 -0
- package/dist/modules/loading/module.d.ts.map +1 -1
- package/dist/modules/loading/overlay.d.ts +3 -0
- package/dist/modules/loading/overlay.d.ts.map +1 -1
- package/dist/modules/loading/state.d.ts +13 -0
- package/dist/modules/loading/state.d.ts.map +1 -1
- package/dist/modules/loading/types.d.ts +42 -2
- package/dist/modules/loading/types.d.ts.map +1 -1
- package/dist/modules/media/constants.d.ts +19 -0
- package/dist/modules/media/constants.d.ts.map +1 -1
- package/dist/modules/media/context.d.ts +11 -1
- package/dist/modules/media/context.d.ts.map +1 -1
- package/dist/modules/media/hooks.d.ts +17 -0
- package/dist/modules/media/hooks.d.ts.map +1 -1
- package/dist/modules/media/index.d.ts +1 -1
- package/dist/modules/media/index.d.ts.map +1 -1
- package/dist/modules/media/module.d.ts +4 -0
- package/dist/modules/media/module.d.ts.map +1 -1
- package/dist/modules/media/overlay.d.ts +7 -0
- package/dist/modules/media/overlay.d.ts.map +1 -1
- package/dist/modules/media/playback.d.ts +13 -0
- package/dist/modules/media/playback.d.ts.map +1 -1
- package/dist/modules/media/session.d.ts +20 -0
- package/dist/modules/media/session.d.ts.map +1 -1
- package/dist/modules/media/types.d.ts +49 -2
- package/dist/modules/media/types.d.ts.map +1 -1
- package/dist/modules/modal/components/close-button.d.ts +6 -0
- package/dist/modules/modal/components/close-button.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-container.d.ts +7 -0
- package/dist/modules/modal/components/modal-container.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts +9 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer.d.ts +17 -0
- package/dist/modules/modal/components/modal-layer.d.ts.map +1 -0
- package/dist/modules/modal/components/overlay.d.ts +6 -0
- package/dist/modules/modal/components/overlay.d.ts.map +1 -0
- package/dist/modules/modal/components/resolve-header.d.ts +10 -0
- package/dist/modules/modal/components/resolve-header.d.ts.map +1 -0
- package/dist/modules/modal/components/slot-row.d.ts +12 -0
- package/dist/modules/modal/components/slot-row.d.ts.map +1 -0
- package/dist/modules/modal/constants.d.ts +16 -1
- package/dist/modules/modal/constants.d.ts.map +1 -1
- package/dist/modules/modal/context.d.ts +7 -1
- package/dist/modules/modal/context.d.ts.map +1 -1
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +3 -0
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +12 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +3 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +1 -0
- package/dist/modules/modal/hooks.d.ts +30 -4
- package/dist/modules/modal/hooks.d.ts.map +1 -1
- package/dist/modules/modal/index.d.ts +8 -7
- package/dist/modules/modal/index.d.ts.map +1 -1
- package/dist/modules/modal/lib/dom.d.ts +13 -0
- package/dist/modules/modal/lib/dom.d.ts.map +1 -0
- package/dist/modules/modal/lib/theme.d.ts +4 -0
- package/dist/modules/modal/lib/theme.d.ts.map +1 -0
- package/dist/modules/modal/model/entry.d.ts +18 -0
- package/dist/modules/modal/model/entry.d.ts.map +1 -0
- package/dist/modules/modal/model/header.d.ts +16 -0
- package/dist/modules/modal/model/header.d.ts.map +1 -0
- package/dist/modules/modal/model/identity.d.ts +13 -0
- package/dist/modules/modal/model/identity.d.ts.map +1 -0
- package/dist/modules/modal/model/layout.d.ts +37 -0
- package/dist/modules/modal/model/layout.d.ts.map +1 -0
- package/dist/modules/modal/model/state.d.ts +10 -0
- package/dist/modules/modal/model/state.d.ts.map +1 -0
- package/dist/modules/modal/module.d.ts +7 -0
- package/dist/modules/modal/module.d.ts.map +1 -1
- package/dist/modules/modal/motion.d.ts.map +1 -1
- package/dist/modules/modal/types.d.ts +73 -10
- package/dist/modules/modal/types.d.ts.map +1 -1
- package/dist/modules/navigation/context.d.ts +16 -5
- package/dist/modules/navigation/context.d.ts.map +1 -1
- package/dist/modules/navigation/hooks.d.ts +22 -13
- package/dist/modules/navigation/hooks.d.ts.map +1 -1
- package/dist/modules/navigation/index.d.ts +5 -5
- package/dist/modules/navigation/index.d.ts.map +1 -1
- package/dist/modules/navigation/listeners.d.ts +6 -8
- package/dist/modules/navigation/listeners.d.ts.map +1 -1
- package/dist/modules/navigation/module.d.ts +5 -2
- package/dist/modules/navigation/module.d.ts.map +1 -1
- package/dist/modules/notification/constants.d.ts +22 -2
- package/dist/modules/notification/constants.d.ts.map +1 -1
- package/dist/modules/notification/context.d.ts +12 -2
- package/dist/modules/notification/context.d.ts.map +1 -1
- package/dist/modules/notification/hooks.d.ts +32 -1
- package/dist/modules/notification/hooks.d.ts.map +1 -1
- package/dist/modules/notification/module.d.ts +3 -0
- package/dist/modules/notification/module.d.ts.map +1 -1
- package/dist/modules/notification/motion.d.ts.map +1 -1
- package/dist/modules/notification/overlay.d.ts.map +1 -1
- package/dist/modules/notification/state.d.ts +28 -0
- package/dist/modules/notification/state.d.ts.map +1 -1
- package/dist/modules/notification/types.d.ts +48 -5
- package/dist/modules/notification/types.d.ts.map +1 -1
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.js +189 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/index.js +11 -0
- package/dist/overlay-QHSJBV3O.js +13 -0
- package/dist/overlay-QHSJBV3O.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.js +14 -0
- package/dist/react/context/index.d.ts +4 -0
- package/dist/react/context/index.d.ts.map +1 -0
- package/dist/react/hooks/index.d.ts +10 -0
- package/dist/react/hooks/index.d.ts.map +1 -0
- package/dist/react/hooks/types.d.ts +25 -0
- package/dist/react/hooks/types.d.ts.map +1 -0
- package/dist/react/hooks/use-click-outside.d.ts +6 -0
- package/dist/react/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/react/hooks/use-controllable-state.d.ts +7 -0
- package/dist/react/hooks/use-controllable-state.d.ts.map +1 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts +7 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -0
- package/dist/react/hooks/use-global-event.d.ts +9 -0
- package/dist/react/hooks/use-global-event.d.ts.map +1 -0
- package/dist/react/hooks/use-hotkey.d.ts +10 -0
- package/dist/react/hooks/use-hotkey.d.ts.map +1 -0
- package/dist/react/hooks/use-required-context.d.ts +6 -0
- package/dist/react/hooks/use-required-context.d.ts.map +1 -0
- package/dist/react/hooks/use-scroll-lock.d.ts +9 -0
- package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/react/hooks/use-store.d.ts +3 -0
- package/dist/react/hooks/use-store.d.ts.map +1 -0
- package/dist/react/theme/index.d.ts +82 -0
- package/dist/react/theme/index.d.ts.map +1 -0
- package/dist/react/ui/components/avatar.d.ts +6 -0
- package/dist/react/ui/components/avatar.d.ts.map +1 -0
- package/dist/react/ui/components/button.d.ts +6 -0
- package/dist/react/ui/components/button.d.ts.map +1 -0
- package/dist/react/ui/components/carousel.d.ts +6 -0
- package/dist/react/ui/components/carousel.d.ts.map +1 -0
- package/dist/react/ui/components/checkbox.d.ts +10 -0
- package/dist/react/ui/components/checkbox.d.ts.map +1 -0
- package/dist/react/ui/components/icon.d.ts +6 -0
- package/dist/react/ui/components/icon.d.ts.map +1 -0
- package/dist/react/ui/components/image.d.ts +6 -0
- package/dist/react/ui/components/image.d.ts.map +1 -0
- package/dist/react/ui/components/indicator.d.ts +45 -0
- package/dist/react/ui/components/indicator.d.ts.map +1 -0
- package/dist/react/ui/components/input.d.ts +10 -0
- package/dist/react/ui/components/input.d.ts.map +1 -0
- package/dist/react/ui/components/loader.d.ts +10 -0
- package/dist/react/ui/components/loader.d.ts.map +1 -0
- package/dist/react/ui/components/segmented.d.ts +6 -0
- package/dist/react/ui/components/segmented.d.ts.map +1 -0
- package/dist/react/ui/components/select-parts.d.ts +22 -0
- package/dist/react/ui/components/select-parts.d.ts.map +1 -0
- package/dist/react/ui/components/select.d.ts +6 -0
- package/dist/react/ui/components/select.d.ts.map +1 -0
- package/dist/react/ui/components/skeleton.d.ts +10 -0
- package/dist/react/ui/components/skeleton.d.ts.map +1 -0
- package/dist/react/ui/components/switch.d.ts +6 -0
- package/dist/react/ui/components/switch.d.ts.map +1 -0
- package/dist/react/ui/components/tooltip.d.ts +11 -0
- package/dist/react/ui/components/tooltip.d.ts.map +1 -0
- package/dist/react/ui/index.d.ts +19 -0
- package/dist/react/ui/index.d.ts.map +1 -0
- package/dist/react/ui/provider.d.ts +22 -0
- package/dist/react/ui/provider.d.ts.map +1 -0
- package/dist/react/ui/types-controls.d.ts +133 -0
- package/dist/react/ui/types-controls.d.ts.map +1 -0
- package/dist/react/ui/types.d.ts +192 -0
- package/dist/react/ui/types.d.ts.map +1 -0
- package/dist/react/ui/utils.d.ts +65 -0
- package/dist/react/ui/utils.d.ts.map +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/recipes/index.js +233 -0
- package/dist/recipes/index.js.map +1 -0
- package/dist/result/index.d.ts +1 -0
- package/dist/result/index.js +98 -0
- package/dist/result/index.js.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +6 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +2268 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/utils/index.d.ts +1 -15
- package/dist/utils/index.js +194 -71
- package/dist/utils/index.js.map +1 -1
- package/docs/README.md +58 -57
- package/docs/architecture-and-rules.md +133 -58
- package/docs/core-engine.md +36 -52
- package/docs/custom-modules.md +43 -32
- package/docs/design.md +185 -0
- package/docs/getting-started.md +49 -57
- package/docs/modules/README.md +50 -61
- package/docs/modules/ambient.md +95 -87
- package/docs/modules/background.md +39 -36
- package/docs/modules/context-menu.md +19 -18
- package/docs/modules/controls.md +13 -13
- package/docs/modules/dock.md +74 -93
- package/docs/modules/error-boundary.md +2 -2
- package/docs/modules/kernel.md +38 -26
- package/docs/modules/loading.md +14 -14
- package/docs/modules/media.md +13 -13
- package/docs/modules/modal.md +14 -14
- package/docs/modules/navigation.md +87 -84
- package/docs/modules/notification.md +13 -13
- package/docs/modules/result.md +22 -22
- package/docs/proposals/navigation.md +32 -31
- package/docs/testing.md +34 -28
- package/docs/theming.md +67 -44
- package/package.json +106 -88
- package/templates/AGENTS.md +35 -25
- package/dist/atoms/button.d.ts +0 -11
- package/dist/atoms/button.d.ts.map +0 -1
- package/dist/atoms/icon.d.ts +0 -15
- package/dist/atoms/icon.d.ts.map +0 -1
- package/dist/atoms/index.d.ts +0 -5
- package/dist/atoms/index.d.ts.map +0 -1
- package/dist/atoms/index.js +0 -4
- package/dist/atoms/spinner.d.ts +0 -9
- package/dist/atoms/spinner.d.ts.map +0 -1
- package/dist/atoms/tooltip.d.ts +0 -18
- package/dist/atoms/tooltip.d.ts.map +0 -1
- package/dist/chunk-3BUP64Q6.js +0 -105
- package/dist/chunk-3BUP64Q6.js.map +0 -1
- package/dist/chunk-4GMQKD6F.js +0 -353
- package/dist/chunk-4GMQKD6F.js.map +0 -1
- package/dist/chunk-66EYJBIP.js +0 -300
- package/dist/chunk-66EYJBIP.js.map +0 -1
- package/dist/chunk-7HQMXTNP.js +0 -419
- package/dist/chunk-7HQMXTNP.js.map +0 -1
- package/dist/chunk-7TAVYJ3A.js +0 -371
- package/dist/chunk-7TAVYJ3A.js.map +0 -1
- package/dist/chunk-AQ4BNXA2.js +0 -349
- package/dist/chunk-AQ4BNXA2.js.map +0 -1
- package/dist/chunk-CGHZSSFR.js +0 -2166
- package/dist/chunk-CGHZSSFR.js.map +0 -1
- package/dist/chunk-DGCQWQLZ.js +0 -61
- package/dist/chunk-DGCQWQLZ.js.map +0 -1
- package/dist/chunk-FIMPHODX.js +0 -67
- package/dist/chunk-FIMPHODX.js.map +0 -1
- package/dist/chunk-GF7TUX5I.js +0 -1889
- package/dist/chunk-GF7TUX5I.js.map +0 -1
- package/dist/chunk-HHWRTQKQ.js +0 -610
- package/dist/chunk-HHWRTQKQ.js.map +0 -1
- package/dist/chunk-HLL5EHXC.js +0 -485
- package/dist/chunk-HLL5EHXC.js.map +0 -1
- package/dist/chunk-I5GK7VOV.js +0 -28
- package/dist/chunk-I5GK7VOV.js.map +0 -1
- package/dist/chunk-JELG4JLT.js +0 -454
- package/dist/chunk-JELG4JLT.js.map +0 -1
- package/dist/chunk-K676GL7Z.js +0 -51
- package/dist/chunk-K676GL7Z.js.map +0 -1
- package/dist/chunk-QI3ALLIB.js +0 -38
- package/dist/chunk-QI3ALLIB.js.map +0 -1
- package/dist/chunk-R2YGFJDJ.js +0 -408
- package/dist/chunk-R2YGFJDJ.js.map +0 -1
- package/dist/chunk-RFZQWLC5.js +0 -27
- package/dist/chunk-RFZQWLC5.js.map +0 -1
- package/dist/chunk-RIOKLMYM.js +0 -145
- package/dist/chunk-RIOKLMYM.js.map +0 -1
- package/dist/chunk-RRAZKP3J.js +0 -888
- package/dist/chunk-RRAZKP3J.js.map +0 -1
- package/dist/chunk-SYAVGTOX.js +0 -521
- package/dist/chunk-SYAVGTOX.js.map +0 -1
- package/dist/chunk-TG6NMHXI.js +0 -1218
- package/dist/chunk-TG6NMHXI.js.map +0 -1
- package/dist/chunk-TV3WEF5G.js +0 -784
- package/dist/chunk-TV3WEF5G.js.map +0 -1
- package/dist/chunk-WVRMABDN.js +0 -9727
- package/dist/chunk-WVRMABDN.js.map +0 -1
- package/dist/error/boundary.d.ts +0 -14
- package/dist/error/boundary.d.ts.map +0 -1
- package/dist/error/constants.d.ts +0 -18
- package/dist/error/constants.d.ts.map +0 -1
- package/dist/error/index.d.ts.map +0 -1
- package/dist/error/listener.d.ts +0 -2
- package/dist/error/listener.d.ts.map +0 -1
- package/dist/error/reporter.d.ts +0 -32
- package/dist/error/reporter.d.ts.map +0 -1
- package/dist/error/theme.d.ts +0 -3
- package/dist/error/theme.d.ts.map +0 -1
- package/dist/error/types.d.ts +0 -91
- package/dist/error/types.d.ts.map +0 -1
- package/dist/error/utils.d.ts +0 -21
- package/dist/error/utils.d.ts.map +0 -1
- package/dist/events.d.ts +0 -51
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -82
- package/dist/events.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/types.d.ts +0 -16
- package/dist/hooks/types.d.ts.map +0 -1
- package/dist/hooks/use-click-outside.d.ts +0 -3
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-controllable-state.d.ts +0 -3
- package/dist/hooks/use-controllable-state.d.ts.map +0 -1
- package/dist/hooks/use-fullscreen-state.d.ts +0 -4
- package/dist/hooks/use-fullscreen-state.d.ts.map +0 -1
- package/dist/hooks/use-global-event.d.ts +0 -5
- package/dist/hooks/use-global-event.d.ts.map +0 -1
- package/dist/hooks/use-hotkey.d.ts +0 -4
- package/dist/hooks/use-hotkey.d.ts.map +0 -1
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +0 -3
- package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +0 -1
- package/dist/hooks/use-required-context.d.ts +0 -3
- package/dist/hooks/use-required-context.d.ts.map +0 -1
- package/dist/hooks/use-store.d.ts +0 -3
- package/dist/hooks/use-store.d.ts.map +0 -1
- package/dist/kernel/adapters.d.ts +0 -5
- package/dist/kernel/adapters.d.ts.map +0 -1
- package/dist/kernel/compose.d.ts +0 -15
- package/dist/kernel/compose.d.ts.map +0 -1
- package/dist/kernel/constants.d.ts +0 -12
- package/dist/kernel/constants.d.ts.map +0 -1
- package/dist/kernel/context-registry.d.ts +0 -3
- package/dist/kernel/context-registry.d.ts.map +0 -1
- package/dist/kernel/handlers.d.ts +0 -3
- package/dist/kernel/handlers.d.ts.map +0 -1
- package/dist/kernel/hooks.d.ts +0 -7
- package/dist/kernel/hooks.d.ts.map +0 -1
- package/dist/kernel/index.d.ts.map +0 -1
- package/dist/kernel/installed.d.ts +0 -21
- package/dist/kernel/installed.d.ts.map +0 -1
- package/dist/kernel/module.d.ts +0 -32
- package/dist/kernel/module.d.ts.map +0 -1
- package/dist/kernel/operations.d.ts +0 -21
- package/dist/kernel/operations.d.ts.map +0 -1
- package/dist/kernel/page-controller.d.ts +0 -8
- package/dist/kernel/page-controller.d.ts.map +0 -1
- package/dist/kernel/provider.d.ts +0 -18
- package/dist/kernel/provider.d.ts.map +0 -1
- package/dist/kernel/runtime.d.ts.map +0 -1
- package/dist/kernel/schema.d.ts +0 -11
- package/dist/kernel/schema.d.ts.map +0 -1
- package/dist/kernel/store.d.ts +0 -4
- package/dist/kernel/store.d.ts.map +0 -1
- package/dist/kernel/types.d.ts +0 -233
- package/dist/kernel/types.d.ts.map +0 -1
- package/dist/kernel/utils.d.ts +0 -18
- package/dist/kernel/utils.d.ts.map +0 -1
- package/dist/modules/ambient/index.js +0 -10
- package/dist/modules/ambient/server/index.js +0 -221
- package/dist/modules/ambient/server/index.js.map +0 -1
- package/dist/modules/ambient/worker/index.js +0 -114
- package/dist/modules/ambient/worker/index.js.map +0 -1
- package/dist/modules/background/index.js +0 -9
- package/dist/modules/background/overlay.d.ts +0 -135
- package/dist/modules/background/overlay.d.ts.map +0 -1
- package/dist/modules/background/playback.d.ts +0 -10
- package/dist/modules/background/playback.d.ts.map +0 -1
- package/dist/modules/background/state.d.ts +0 -9
- package/dist/modules/background/state.d.ts.map +0 -1
- package/dist/modules/background/visual.d.ts +0 -48
- package/dist/modules/background/visual.d.ts.map +0 -1
- package/dist/modules/background/youtube/iframe.d.ts +0 -52
- package/dist/modules/background/youtube/iframe.d.ts.map +0 -1
- package/dist/modules/background/youtube/parse.d.ts +0 -17
- package/dist/modules/background/youtube/parse.d.ts.map +0 -1
- package/dist/modules/background/youtube/player.d.ts +0 -28
- package/dist/modules/background/youtube/player.d.ts.map +0 -1
- package/dist/modules/context-menu/index.js +0 -14
- package/dist/modules/controls/index.js +0 -7
- package/dist/modules/dock/cards.d.ts +0 -1722
- package/dist/modules/dock/cards.d.ts.map +0 -1
- package/dist/modules/dock/dom.d.ts +0 -24
- package/dist/modules/dock/dom.d.ts.map +0 -1
- package/dist/modules/dock/helpers.d.ts +0 -25
- package/dist/modules/dock/helpers.d.ts.map +0 -1
- package/dist/modules/dock/hooks.d.ts +0 -42
- package/dist/modules/dock/hooks.d.ts.map +0 -1
- package/dist/modules/dock/index.js +0 -13
- package/dist/modules/dock/layout.d.ts +0 -26
- package/dist/modules/dock/layout.d.ts.map +0 -1
- package/dist/modules/dock/overlay.d.ts +0 -79
- package/dist/modules/dock/overlay.d.ts.map +0 -1
- package/dist/modules/dock/paths.d.ts +0 -10
- package/dist/modules/dock/paths.d.ts.map +0 -1
- package/dist/modules/dock/state.d.ts +0 -22
- package/dist/modules/dock/state.d.ts.map +0 -1
- package/dist/modules/dock/styles.d.ts +0 -900
- package/dist/modules/dock/styles.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks.d.ts +0 -110
- package/dist/modules/dock/surface/hooks.d.ts.map +0 -1
- package/dist/modules/dock/types.d.ts +0 -1362
- package/dist/modules/dock/types.d.ts.map +0 -1
- package/dist/modules/loading/index.js +0 -8
- package/dist/modules/media/index.js +0 -6
- package/dist/modules/modal/dom.d.ts +0 -4
- package/dist/modules/modal/dom.d.ts.map +0 -1
- package/dist/modules/modal/header.d.ts +0 -7
- package/dist/modules/modal/header.d.ts.map +0 -1
- package/dist/modules/modal/identity.d.ts +0 -7
- package/dist/modules/modal/identity.d.ts.map +0 -1
- package/dist/modules/modal/index.js +0 -11
- package/dist/modules/modal/layout.d.ts +0 -13
- package/dist/modules/modal/layout.d.ts.map +0 -1
- package/dist/modules/modal/overlay.d.ts +0 -4
- package/dist/modules/modal/overlay.d.ts.map +0 -1
- package/dist/modules/modal/state.d.ts +0 -4
- package/dist/modules/modal/state.d.ts.map +0 -1
- package/dist/modules/navigation/constants.d.ts +0 -37
- package/dist/modules/navigation/constants.d.ts.map +0 -1
- package/dist/modules/navigation/index.js +0 -81
- package/dist/modules/navigation/index.js.map +0 -1
- package/dist/modules/navigation/navigator.d.ts +0 -8
- package/dist/modules/navigation/navigator.d.ts.map +0 -1
- package/dist/modules/navigation/settings.d.ts +0 -10
- package/dist/modules/navigation/settings.d.ts.map +0 -1
- package/dist/modules/navigation/state.d.ts +0 -20
- package/dist/modules/navigation/state.d.ts.map +0 -1
- package/dist/modules/navigation/types.d.ts +0 -168
- package/dist/modules/navigation/types.d.ts.map +0 -1
- package/dist/modules/navigation/utils.d.ts +0 -11
- package/dist/modules/navigation/utils.d.ts.map +0 -1
- package/dist/modules/notification/index.js +0 -7
- package/dist/overlay-TZ6L52A5.js +0 -9
- package/dist/overlay-TZ6L52A5.js.map +0 -1
- package/dist/provider.d.ts +0 -23
- package/dist/provider.d.ts.map +0 -1
- package/dist/provider.js +0 -9
- package/dist/provider.js.map +0 -1
- package/dist/result.d.ts +0 -50
- package/dist/result.d.ts.map +0 -1
- package/dist/result.js +0 -102
- package/dist/result.js.map +0 -1
- package/dist/theme.d.ts +0 -63
- package/dist/theme.d.ts.map +0 -1
- package/dist/theme.js +0 -6
- package/dist/theme.js.map +0 -1
- package/dist/tokens/index.d.ts +0 -4
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/index.js +0 -296
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/motion-config.d.ts +0 -44
- package/dist/tokens/motion-config.d.ts.map +0 -1
- package/dist/tokens/motion.d.ts +0 -164
- package/dist/tokens/motion.d.ts.map +0 -1
- package/dist/tokens/tokens.d.ts +0 -34
- package/dist/tokens/tokens.d.ts.map +0 -1
- package/dist/utils/cn.d.ts +0 -3
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/dom.d.ts +0 -5
- package/dist/utils/dom.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/number.d.ts +0 -3
- package/dist/utils/number.d.ts.map +0 -1
- package/dist/utils/object.d.ts +0 -5
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/report.d.ts +0 -5
- package/dist/utils/report.d.ts.map +0 -1
- package/dist/utils/scheduler.d.ts +0 -34
- package/dist/utils/scheduler.d.ts.map +0 -1
- package/dist/utils/store.d.ts +0 -11
- package/dist/utils/store.d.ts.map +0 -1
- package/dist/utils/string.d.ts +0 -5
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/timing.d.ts +0 -7
- package/dist/utils/timing.d.ts.map +0 -1
- package/dist/utils/user-message.d.ts +0 -20
- package/dist/utils/user-message.d.ts.map +0 -1
- package/templates/motion/background.ts +0 -17
- package/templates/motion/context-menu.ts +0 -63
- package/templates/motion/dock.ts +0 -395
- package/templates/motion/modal.ts +0 -79
- package/templates/motion/notification.ts +0 -27
- package/templates/motion/tokens.ts +0 -47
- /package/dist/{atoms → ambient}/index.js.map +0 -0
- /package/dist/{modules/ambient → background}/index.js.map +0 -0
- /package/dist/{modules/background → context-menu}/index.js.map +0 -0
- /package/dist/{modules/context-menu → controls}/index.js.map +0 -0
- /package/dist/{kernel → core/kernel}/runtime.d.ts +0 -0
- /package/dist/{modules/controls → dock}/index.js.map +0 -0
- /package/dist/{modules/dock → loading}/index.js.map +0 -0
- /package/dist/{modules/loading → media}/index.js.map +0 -0
- /package/dist/{modules/media → notification}/index.js.map +0 -0
- /package/dist/{modules/modal → provider}/index.js.map +0 -0
- /package/dist/{modules/notification → theme}/index.js.map +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/error/constants.ts","../src/core/error/utils.ts","../src/core/error/reporter.ts","../src/core/error/theme.ts","../src/core/error/boundary.tsx","../src/core/error/listener.ts"],"names":["ERROR_MESSAGES","Object","freeze","GLOBAL_TITLE","GLOBAL_MSG","MODULE_TITLE","MODULE_MSG","COMPONENT_MSG","FALLBACK_TITLE","FALLBACK_MSG","MAX_CONTEXT","MAX_FINGERPRINTS","DEFAULT_DEDUPE_WINDOW","ERROR_LISTENER_CONFIG","maxErrors","throttle","ignored","IS_BROWSER","window","HAS_NAVIGATOR","navigator","FINGERPRINT_MESSAGE_LENGTH","FINGERPRINT_SEPARATOR","DEFAULT_ERROR_NAME","DEFAULT_BOUNDARY_NAME","DEFAULT_VARIANT","getRuntimePath","location","pathname","getUserAgent","userAgent","createErrorContext","errorInfo","name","title","variant","componentStack","route","timestamp","Date","toISOString","source","normalizeSampleRate","value","sampleRate","Number","isFinite","Math","min","max","normalizeDedupeWindow","dedupeWindow","getBrowserEnvironment","platform","language","online","onLine","url","href","fingerprint","error","context","stackTop","split","find","Boolean","errObj","errorMessage","message","String","slice","errorName","filter","join","createReport","tags","stack","environment","getErrorMessage","trim","Error","toString","shouldIgnoreError","errWithNotFound","isNotFound","some","pattern","test","IS_PRODUCTION","process","env","NODE_ENV","ErrorReporter","handlers","seen","Set","constructor","options","enabled","beforeSend","deduplicateWindow","addHandler","handler","handle","push","removeHandler","setContext","key","hasOwn","keys","length","setTag","captureError","extraContext","random","ensureDefaultHandlers","report","remember","outgoing","transform","dispatch","dedupeKey","has","size","first","next","delete","add","setTimeout","forEach","captureMessage","level","createConsoleHandler","Sentry","sentryHandler","createSentryHandler","GLOBAL_REPORTER_KEY","Symbol","for","_global","globalThis","getErrorReporter","console","isSentryApi","candidate","captureException","withScope","applyReportToScope","scope","setFingerprint","user","setUser","entries","setExtra","toSentryError","undefined","errorTheme","defineThemeSpec","ERROR_ICON","ERROR_ICON_SIZE","RETRY_LABEL","ActionButton","Button","DefaultErrorFallback","t0","$","_c","resetError","theme","useTheme","t1","t2","slots","icon","t3","toUserMessage","fallback","t4","t5","retryButton","t6","screen","ErrorBoundaryCore","React","Component","props","state","hasError","lastResetKey","resetKey","getDerivedStateFromError","getDerivedStateFromProps","componentDidCatch","setState","onError","silent","callbackError","globalEvents","emit","EVENT_TYPES","APP_ERROR","reporter","reportingError","onReset","render","children","GlobalError","usePathname","ModuleError","ComponentError","captureGlobalError","globalListener","GlobalErrorListener","lastError","useRef","count","shown","handleError","now","current","removeSink","setReportSink","_temp","event","onRejection","event_0","reason","addEventListener","removeEventListener","useEffect","error_0"],"mappings":";;;;;;;;;;AAGO,IAAMA,cAAAA,GAAiBC,OAAOC,MAAAA,CAAO;EAC1CC,YAAAA,EAAc,sBAAA;EACdC,UAAAA,EAAY,qDAAA;EACZC,YAAAA,EAAc,sBAAA;EACdC,UAAAA,EAAY,gEAAA;EACZC,aAAAA,EAAe,mDAAA;EACfC,cAAAA,EAAgB,sBAAA;EAChBC,YAAAA,EAAc;AAChB,CAAU;AAKH,IAAMC,WAAAA,GAAc;AAIpB,IAAMC,gBAAAA,GAAmB;AAIzB,IAAMC,qBAAAA,GAAwB;AAK9B,IAAMC,qBAAAA,GA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AkF,OAAAA,EAAAnG,KAAAA,EAAA;AAgCD,EAAA,IAAA;AACEU,IAAAA,gBAAAA,EAAiB,CAAC7B,aAAcpD,OAAAA,EAAO;AAAAuE,MAAAA,KAAAA;AAAAiB,MAAAA;KAAgB,CAAA;EAAC,CAAA,CAAA,MAAA;AAAA,EAAA;AAChD","file":"chunk-WYVA6AN5.js","sourcesContent":["/**\n * Default user-facing copy for the global, module and component error screens.\n */\nexport const ERROR_MESSAGES = Object.freeze({\n GLOBAL_TITLE: \"Something went wrong\",\n GLOBAL_MSG: \"We ran into an unexpected problem. Please try again\",\n MODULE_TITLE: \"Something went wrong\",\n MODULE_MSG: \"This part of the app isn't working right now. Please try again\",\n COMPONENT_MSG: \"This section couldn't be loaded. Please try again\",\n FALLBACK_TITLE: \"Something went wrong\",\n FALLBACK_MSG: \"This section couldn't be loaded. Please try again\",\n} as const);\n\n/**\n * Maximum number of distinct context keys an error reporter keeps.\n */\nexport const MAX_CONTEXT = 10;\n/**\n * Maximum number of recent error fingerprints kept for de-duplication.\n */\nexport const MAX_FINGERPRINTS = 100;\n/**\n * Default de-duplication window for repeated errors, in milliseconds.\n */\nexport const DEFAULT_DEDUPE_WINDOW = 60000;\n\n/**\n * Limits and ignore patterns used by the global error listener.\n */\nexport const ERROR_LISTENER_CONFIG = Object.freeze({\n maxErrors: 10,\n throttle: 2000,\n ignored: Object.freeze([\n /ResizeObserver loop/i,\n /Network request failed/i,\n /Loading chunk/i,\n /Unexpected end of input/i,\n /Failed to fetch/i,\n /Script error/i,\n /HTTP\\s*404/i,\n ]),\n} as const);\n","import type { ErrorInfo } from \"react\";\n\nimport { DEFAULT_DEDUPE_WINDOW, ERROR_LISTENER_CONFIG } from \"./constants\";\nimport type {\n BrowserEnvironment,\n ErrorContextData,\n ErrorReport,\n} from \"./types\";\n\nconst IS_BROWSER = typeof window !== \"undefined\";\nconst HAS_NAVIGATOR = typeof navigator !== \"undefined\";\n\nconst FINGERPRINT_MESSAGE_LENGTH = 100;\nconst FINGERPRINT_SEPARATOR = \"::\";\nconst DEFAULT_ERROR_NAME = \"UnknownError\";\nconst DEFAULT_BOUNDARY_NAME = \"ErrorBoundary\";\nconst DEFAULT_VARIANT = \"default\";\n\ninterface ErrorContextInput {\n errorInfo?: ErrorInfo | null;\n name?: string;\n title?: string;\n variant?: string;\n}\n\ninterface ReportOptions {\n context?: Record<string, unknown>;\n tags?: Record<string, string>;\n}\n\n/**\n * Current location pathname, or null outside a browser.\n */\nexport const getRuntimePath = (): string | null =>\n IS_BROWSER ? window.location.pathname : null;\n\n/**\n * Current user agent string, or null outside a browser.\n */\nexport const getUserAgent = (): string | null =>\n HAS_NAVIGATOR ? navigator.userAgent : null;\n\n/**\n * Builds the context metadata attached to an error caught by a boundary.\n */\nexport function createErrorContext({\n errorInfo,\n name,\n title,\n variant,\n}: ErrorContextInput): ErrorContextData {\n return {\n componentStack: errorInfo?.componentStack || null,\n route: getRuntimePath(),\n userAgent: getUserAgent(),\n timestamp: new Date().toISOString(),\n name: name || title || DEFAULT_BOUNDARY_NAME,\n variant: variant || DEFAULT_VARIANT,\n source: DEFAULT_BOUNDARY_NAME,\n };\n}\n\n/**\n * Coerces a value to a sample rate between 0 and 1; invalid input becomes 1.\n */\nexport function normalizeSampleRate(value: unknown): number {\n const sampleRate = Number(value);\n return Number.isFinite(sampleRate) ? Math.min(1, Math.max(0, sampleRate)) : 1;\n}\n\n/**\n * Coerces a value to a non-negative de-duplication window in milliseconds.\n */\nexport function normalizeDedupeWindow(value: unknown): number {\n const dedupeWindow = Number(value);\n return Number.isFinite(dedupeWindow)\n ? Math.max(0, dedupeWindow)\n : DEFAULT_DEDUPE_WINDOW;\n}\n\n/**\n * Captures route, URL, user agent, platform, language and online state.\n */\nexport function getBrowserEnvironment(\n route?: string | null,\n): BrowserEnvironment {\n return {\n route: route || (IS_BROWSER ? window.location.pathname : null),\n userAgent: HAS_NAVIGATOR ? navigator.userAgent : null,\n platform: HAS_NAVIGATOR ? navigator.platform : null,\n language: HAS_NAVIGATOR ? navigator.language : null,\n online: HAS_NAVIGATOR ? navigator.onLine : true,\n url: IS_BROWSER ? window.location.href : null,\n };\n}\n\n/**\n * Builds a stable key for an error, used to de-duplicate repeated reports.\n */\nexport function fingerprint(\n error: unknown,\n context: Partial<ErrorContextData> = {},\n): string {\n const stackTop =\n typeof context.componentStack === \"string\"\n ? context.componentStack.split(\"\\n\").find(Boolean) || \"\"\n : \"\";\n\n // Thrown values are untyped; read message/name defensively.\n const errObj = error as { message?: string; name?: string } | null;\n // eslint-disable-next-line @typescript-eslint/no-base-to-string -- error is unknown; a thrown non-Error object stringifies to \"[object Object]\" as before (behaviour kept in 3.2 restructure)\n const errorMessage = (errObj?.message || String(error || \"\")).slice(\n 0,\n FINGERPRINT_MESSAGE_LENGTH,\n );\n const errorName = errObj?.name || DEFAULT_ERROR_NAME;\n const route = context.route || \"\";\n\n return [stackTop, errorMessage, errorName, route]\n .filter(Boolean)\n .join(FINGERPRINT_SEPARATOR);\n}\n\n/**\n * Normalizes any thrown value into an ErrorReport.\n */\nexport function createReport(\n error: unknown,\n { context = {}, tags = {} }: ReportOptions = {},\n): ErrorReport {\n // Thrown values are untyped; read message/name/stack defensively.\n const errObj = error as {\n message?: string;\n name?: string;\n stack?: string;\n } | null;\n return {\n error: {\n message: errObj?.message || String(error),\n stack: errObj?.stack || null,\n name: errObj?.name || DEFAULT_ERROR_NAME,\n },\n fingerprint: fingerprint(error, context),\n timestamp: new Date().toISOString(),\n environment: getBrowserEnvironment(context.route as string | undefined),\n componentStack: (context.componentStack as string) || null,\n context,\n tags,\n };\n}\n\n/**\n * Extracts a trimmed message from any thrown value; empty when there is none.\n */\nexport function getErrorMessage(error: unknown): string {\n if (!error) return \"\";\n if (typeof error === \"string\") return error.trim();\n if (error instanceof Error) return error.message.trim();\n\n const errObj = error as { message?: string; toString?: () => string };\n // eslint-disable-next-line @typescript-eslint/no-base-to-string -- error is unknown; the last fallback stringifies an object without message/toString to \"[object Object]\" as before (behaviour kept in 3.2 restructure)\n return String(errObj?.message || errObj?.toString?.() || error).trim();\n}\n\n/**\n * True for errors that should not be reported, such as not-found and network\n * noise.\n */\nexport function shouldIgnoreError(error: unknown): boolean {\n if (!error) return true;\n\n const errWithNotFound = error as { isNotFound?: () => boolean };\n if (\n typeof errWithNotFound?.isNotFound === \"function\" &&\n errWithNotFound.isNotFound()\n ) {\n return true;\n }\n\n const message = getErrorMessage(error);\n return ERROR_LISTENER_CONFIG.ignored.some((pattern) => pattern.test(message));\n}\n","import {\n DEFAULT_DEDUPE_WINDOW,\n MAX_CONTEXT,\n MAX_FINGERPRINTS,\n} from \"./constants\";\nimport type {\n ErrorReport,\n ErrorReporterHandler,\n ErrorReporterOptions,\n SentryScope,\n} from \"./types\";\nimport {\n createReport,\n normalizeDedupeWindow,\n normalizeSampleRate,\n} from \"./utils\";\n\nconst IS_PRODUCTION = process.env.NODE_ENV === \"production\";\nconst IS_BROWSER = typeof window !== \"undefined\";\n\ndeclare global {\n interface Window {\n Sentry?: {\n captureException: (error: unknown) => void;\n withScope: (callback: (scope: SentryScope) => void) => void;\n };\n }\n}\n\nclass ErrorReporter {\n private handlers: ErrorReporterHandler[] = [];\n private context: Record<string, unknown> = {};\n private tags: Record<string, string> = {};\n private seen = new Set<string>();\n private enabled: boolean;\n private sampleRate: number;\n private beforeSend: ((report: ErrorReport) => ErrorReport | null) | null;\n private dedupeWindow: number;\n\n constructor(options: ErrorReporterOptions = {}) {\n this.enabled = options.enabled ?? true;\n this.sampleRate = normalizeSampleRate(options.sampleRate ?? 1);\n this.beforeSend = options.beforeSend || null;\n this.dedupeWindow = normalizeDedupeWindow(\n options.deduplicateWindow ?? DEFAULT_DEDUPE_WINDOW,\n );\n }\n\n addHandler(handler: ErrorReporterHandler): this {\n if (typeof handler?.handle === \"function\") {\n this.handlers.push(handler);\n }\n return this;\n }\n\n removeHandler(name: string): this {\n this.handlers = this.handlers.filter((handler) => handler.name !== name);\n return this;\n }\n\n setContext(key: string, value: unknown): this {\n if (\n Object.hasOwn(this.context, key) ||\n Object.keys(this.context).length < MAX_CONTEXT\n ) {\n this.context[key] = value;\n }\n return this;\n }\n\n setTag(key: string, value: unknown): this {\n this.tags[key] = String(value);\n return this;\n }\n\n captureError(\n error: unknown,\n extraContext: Record<string, unknown> = {},\n ): ErrorReport | undefined {\n if (!this.enabled || Math.random() > this.sampleRate) return;\n\n this.ensureDefaultHandlers();\n\n const context = { ...this.context, ...extraContext };\n const report = createReport(error, { context, tags: { ...this.tags } });\n\n if (!this.remember(report.fingerprint)) return;\n\n const outgoing = this.transform(report);\n if (!outgoing) return;\n\n this.dispatch(outgoing);\n\n return outgoing;\n }\n\n /** Records a fingerprint for the dedupe window; false when already seen. */\n private remember(dedupeKey: string): boolean {\n if (this.seen.has(dedupeKey)) return false;\n\n if (this.seen.size >= MAX_FINGERPRINTS) {\n const first = this.seen.keys().next().value;\n if (first) this.seen.delete(first);\n }\n\n this.seen.add(dedupeKey);\n setTimeout(() => this.seen.delete(dedupeKey), this.dedupeWindow);\n\n return true;\n }\n\n /** Runs beforeSend; a throwing hook leaves the report unchanged. */\n private transform(report: ErrorReport): ErrorReport | null {\n if (typeof this.beforeSend !== \"function\") return report;\n\n try {\n return this.beforeSend(report);\n } catch {\n return report;\n }\n }\n\n private dispatch(report: ErrorReport): void {\n this.handlers.forEach((handler) => {\n try {\n handler.handle(report);\n } catch {}\n });\n }\n\n captureMessage(\n message: string,\n level = \"info\",\n context: Record<string, unknown> = {},\n ): ErrorReport | undefined {\n const error = new Error(message);\n error.name = \"Message\";\n return this.captureError(error, { ...context, level });\n }\n\n ensureDefaultHandlers(): void {\n if (this.handlers.length || !IS_BROWSER) return;\n\n this.handlers.push(createConsoleHandler());\n\n if (window.Sentry) {\n const sentryHandler = createSentryHandler(window.Sentry);\n if (sentryHandler.name === \"sentry\") {\n this.handlers.push(sentryHandler);\n }\n }\n }\n}\n\nconst GLOBAL_REPORTER_KEY = Symbol.for(\"__base_framework_error_reporter__\");\ntype GlobalWithReporter = typeof globalThis & {\n [GLOBAL_REPORTER_KEY]?: ErrorReporter;\n};\n\nconst _global = globalThis as GlobalWithReporter;\n\n/**\n * Returns the shared error reporter, creating it with the given options on\n * first use.\n */\nexport function getErrorReporter(\n options: ErrorReporterOptions = {},\n): ErrorReporter {\n return (_global[GLOBAL_REPORTER_KEY] ??= new ErrorReporter(options));\n}\n\n/**\n * Creates a reporter handler that logs errors to the console outside\n * production.\n */\nexport function createConsoleHandler(): ErrorReporterHandler {\n return {\n name: \"console\",\n handle(report: ErrorReport) {\n if (IS_PRODUCTION) return;\n console.error(\"[ErrorReporter]\", {\n error: report.error.message,\n fingerprint: report.fingerprint,\n route: report.environment.route,\n });\n },\n };\n}\n\ninterface SentryApi {\n captureException: (err: Error) => void;\n withScope: (cb: (scope: SentryScope) => void) => void;\n}\n\nfunction isSentryApi(value: unknown): value is SentryApi {\n const candidate = value as Partial<SentryApi> | null;\n return (\n !!candidate &&\n typeof candidate.captureException === \"function\" &&\n typeof candidate.withScope === \"function\"\n );\n}\n\nfunction applyReportToScope(scope: SentryScope, report: ErrorReport): void {\n if (report.fingerprint) scope.setFingerprint([report.fingerprint]);\n if (report.user) scope.setUser(report.user);\n\n if (report.tags && typeof report.tags === \"object\") {\n Object.entries(report.tags).forEach(([key, value]) =>\n scope.setTag(key, String(value)),\n );\n }\n\n if (report.environment) scope.setContext(\"environment\", report.environment);\n if (report.context) scope.setContext(\"custom\", report.context);\n if (report.componentStack)\n scope.setExtra(\"componentStack\", report.componentStack);\n}\n\nfunction toSentryError(report: ErrorReport): Error {\n const error = new Error(report.error.message);\n error.name = report.error.name || \"Error\";\n error.stack = report.error.stack || undefined;\n return error;\n}\n\n/**\n * Creates a reporter handler that forwards errors to Sentry, falling back to\n * the console handler when Sentry is unusable.\n */\nexport function createSentryHandler(Sentry: unknown): ErrorReporterHandler {\n // The argument is untyped on purpose (window.Sentry or a user-supplied\n // client); isSentryApi narrows it before use.\n if (!isSentryApi(Sentry)) return createConsoleHandler();\n\n return {\n name: \"sentry\",\n handle(report: ErrorReport) {\n Sentry.withScope((scope: SentryScope) => {\n applyReportToScope(scope, report);\n Sentry.captureException(toSentryError(report));\n });\n },\n };\n}\n","import { defineThemeSpec } from \"@/react/theme\";\n\n/**\n * Styleable slots of the default error fallback screen.\n */\nexport type ErrorThemeSlot = \"screen\" | \"icon\" | \"title\" | \"retryButton\";\n\n/**\n * Theme spec for the default error fallback; override its slots through the\n * theme system.\n */\nexport const errorTheme = defineThemeSpec<ErrorThemeSlot>(\"error\");\n","\"use client\";\n\nimport { usePathname } from \"next/navigation\";\nimport React, { type ErrorInfo, type ReactNode } from \"react\";\n\nimport { EVENT_TYPES, globalEvents } from \"@/foundation/events\";\nimport { report, toUserMessage } from \"@/foundation/utils\";\nimport { useTheme } from \"@/react/theme\";\nimport { Button } from \"@/react/ui/components/button\";\nimport { Icon } from \"@/react/ui/components/icon\";\n\nimport { ERROR_MESSAGES } from \"./constants\";\nimport { getErrorReporter } from \"./reporter\";\nimport { errorTheme } from \"./theme\";\nimport type {\n ComponentErrorProps,\n ErrorBoundaryCoreProps,\n ErrorBoundaryCoreState,\n GlobalErrorProps,\n ModuleErrorProps,\n} from \"./types\";\nimport { createErrorContext } from \"./utils\";\n\nconst ERROR_ICON = \"solar:danger-circle-bold\";\nconst ERROR_ICON_SIZE = 30;\nconst RETRY_LABEL = \"Try again\";\n\n// Button's own prop types do not expose the plain button props used here.\nconst ActionButton = Button as React.ComponentType<{\n children?: ReactNode;\n className?: string;\n onClick?: () => void;\n type?: \"button\" | \"submit\" | \"reset\";\n}>;\n\ninterface DefaultErrorFallbackProps {\n error: Error | null;\n message?: string;\n resetError: () => void;\n title?: string;\n}\n\nfunction DefaultErrorFallback({\n error,\n message,\n resetError,\n}: DefaultErrorFallbackProps) {\n const theme = useTheme(errorTheme);\n\n return (\n <div className={theme.slots.screen}>\n <div className={theme.slots.icon}>\n <Icon icon={ERROR_ICON} size={ERROR_ICON_SIZE} />\n </div>\n <h3 className={theme.slots.title}>\n {message ||\n toUserMessage(error, { fallback: ERROR_MESSAGES.FALLBACK_MSG })}\n </h3>\n <ActionButton\n className={theme.slots.retryButton}\n onClick={resetError}\n type=\"button\"\n >\n {RETRY_LABEL}\n </ActionButton>\n </div>\n );\n}\n\n/**\n * Base React error boundary: catches render errors, reports them, and renders a\n * fallback until reset.\n */\nexport class ErrorBoundaryCore extends React.Component<\n ErrorBoundaryCoreProps,\n ErrorBoundaryCoreState\n> {\n constructor(props: ErrorBoundaryCoreProps) {\n super(props);\n this.state = {\n error: null,\n errorInfo: null,\n hasError: false,\n lastResetKey: props.resetKey,\n };\n }\n\n static getDerivedStateFromError(\n error: Error,\n ): Partial<ErrorBoundaryCoreState> {\n return { error, hasError: true };\n }\n\n static getDerivedStateFromProps(\n props: ErrorBoundaryCoreProps,\n state: ErrorBoundaryCoreState,\n ): Partial<ErrorBoundaryCoreState> | null {\n if (props.resetKey !== state.lastResetKey) {\n return {\n error: null,\n errorInfo: null,\n hasError: false,\n lastResetKey: props.resetKey,\n };\n }\n return null;\n }\n\n override componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n this.setState({ errorInfo });\n\n const { message, name, onError, silent, title, variant } = this.props;\n const context = createErrorContext({ errorInfo, name, title, variant });\n\n try {\n onError?.(error, errorInfo, context);\n } catch (callbackError) {\n report(\"ErrorBoundary onError callback\", callbackError, \"warn\");\n }\n\n if (!silent) {\n globalEvents.emit(EVENT_TYPES.APP_ERROR, {\n error,\n errorInfo,\n message: message || toUserMessage(error),\n resetError: this.resetError,\n });\n }\n\n try {\n const reporter = getErrorReporter();\n reporter?.captureError?.(error, context);\n } catch (reportingError) {\n report(\"ErrorBoundary reporting\", reportingError, \"warn\");\n }\n }\n\n resetError = () => {\n this.setState({\n error: null,\n errorInfo: null,\n hasError: false,\n });\n this.props.onReset?.();\n };\n\n override render(): ReactNode {\n if (!this.state.hasError) return this.props.children;\n\n const { fallback, message, title } = this.props;\n const { error } = this.state;\n\n if (typeof fallback === \"function\") {\n return fallback({ error, resetError: this.resetError });\n }\n\n if (fallback) {\n return fallback;\n }\n\n return (\n <DefaultErrorFallback\n error={error}\n message={message}\n resetError={this.resetError}\n title={title}\n />\n );\n }\n}\n\n/**\n * Application-wide error boundary that resets when the route changes.\n */\nexport function GlobalError({ children, fallback, onReset }: GlobalErrorProps) {\n const pathname = usePathname();\n\n return (\n <ErrorBoundaryCore\n fallback={fallback}\n message={ERROR_MESSAGES.GLOBAL_MSG}\n onReset={onReset}\n resetKey={pathname}\n title={ERROR_MESSAGES.GLOBAL_TITLE}\n variant=\"full\"\n >\n {children}\n </ErrorBoundaryCore>\n );\n}\n\n/**\n * Error boundary scoped to a single module, labelled with its name.\n */\nexport function ModuleError({\n children,\n fallback,\n name,\n onReset,\n}: ModuleErrorProps) {\n return (\n <ErrorBoundaryCore\n fallback={fallback}\n message={ERROR_MESSAGES.MODULE_MSG}\n name={name}\n onReset={onReset}\n title={name ? `${name} Error` : ERROR_MESSAGES.MODULE_TITLE}\n variant=\"module\"\n >\n {children}\n </ErrorBoundaryCore>\n );\n}\n\n/**\n * Inline error boundary for a single component or section.\n */\nexport function ComponentError({\n children,\n fallback,\n message,\n onReset,\n}: ComponentErrorProps) {\n return (\n <ErrorBoundaryCore\n fallback={fallback}\n message={message || ERROR_MESSAGES.COMPONENT_MSG}\n onReset={onReset}\n variant=\"inline\"\n >\n {children}\n </ErrorBoundaryCore>\n );\n}\n","\"use client\";\n\nimport { useEffect, useRef } from \"react\";\n\nimport { EVENT_TYPES, globalEvents } from \"@/foundation/events\";\nimport { report, setReportSink, toUserMessage } from \"@/foundation/utils\";\n\nimport { ERROR_LISTENER_CONFIG } from \"./constants\";\nimport { getErrorReporter } from \"./reporter\";\nimport { getErrorMessage, shouldIgnoreError } from \"./utils\";\n\n/**\n * Sends an error to the configured reporter. Its own failures are reported\n * as warnings. Module level so the try/catch stays out of the component (the\n * compiler cannot lower optional chaining inside a try block).\n */\nfunction captureGlobalError(error: unknown, source: string) {\n try {\n const reporter = getErrorReporter();\n reporter?.captureError?.(error, { globalListener: true, source });\n } catch (reportingError) {\n report(\"GlobalError reporting\", reportingError, \"warn\");\n }\n}\n\n/**\n * Listens for uncaught window errors and unhandled rejections, then reports\n * them and emits an app error event (throttled and de-duplicated).\n */\nexport function GlobalErrorListener(): null {\n const lastError = useRef<number>(0);\n const count = useRef<number>(0);\n const shown = useRef<Set<string>>(new Set());\n\n useEffect(() => {\n const handleError = (error: unknown, source = \"runtime\") => {\n if (shouldIgnoreError(error)) return;\n\n const now = Date.now();\n\n if (count.current >= ERROR_LISTENER_CONFIG.maxErrors) return;\n if (now - lastError.current < ERROR_LISTENER_CONFIG.throttle) return;\n\n const message = getErrorMessage(error);\n const key = message || String(error);\n\n if (shown.current.has(key)) return;\n shown.current.add(key);\n\n lastError.current = now;\n count.current += 1;\n\n captureGlobalError(error, source);\n\n globalEvents.emit(EVENT_TYPES.APP_ERROR, {\n error,\n message: toUserMessage(error),\n });\n };\n\n const removeSink = setReportSink((scope, error, level) => {\n try {\n getErrorReporter().captureError(error, { level, scope });\n } catch {}\n });\n const onError = (event: ErrorEvent) =>\n handleError(event.error || event.message, \"window.onerror\");\n const onRejection = (event: PromiseRejectionEvent) =>\n handleError(event.reason, \"unhandledrejection\");\n\n window.addEventListener(\"error\", onError);\n window.addEventListener(\"unhandledrejection\", onRejection);\n\n return () => {\n removeSink();\n window.removeEventListener(\"error\", onError);\n window.removeEventListener(\"unhandledrejection\", onRejection);\n };\n }, []);\n\n return null;\n}\n"]}
|
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
import { globalEvents, isBrowser } from './chunk-5H6FZW3N.js';
|
|
2
|
+
import { use, useRef, useSyncExternalStore, useEffectEvent, useEffect, useState, useLayoutEffect } from 'react';
|
|
3
|
+
import { c } from 'react/compiler-runtime';
|
|
4
|
+
|
|
5
|
+
function useRequiredContext(context, hookName, providerName) {
|
|
6
|
+
const value = use(context);
|
|
7
|
+
if (value === null) {
|
|
8
|
+
throw new Error(`${hookName} must be used within ${providerName}`);
|
|
9
|
+
}
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
var selectWholeState = (state) => state;
|
|
13
|
+
function useStore(store, t0, t1) {
|
|
14
|
+
const $ = c(5);
|
|
15
|
+
const selector = t0 === void 0 ? selectWholeState : t0;
|
|
16
|
+
const isEqual = t1 === void 0 ? Object.is : t1;
|
|
17
|
+
let t2;
|
|
18
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
19
|
+
t2 = {
|
|
20
|
+
isEqual: null,
|
|
21
|
+
selected: void 0,
|
|
22
|
+
selector: null,
|
|
23
|
+
snapshot: null
|
|
24
|
+
};
|
|
25
|
+
$[0] = t2;
|
|
26
|
+
} else {
|
|
27
|
+
t2 = $[0];
|
|
28
|
+
}
|
|
29
|
+
const cacheRef = useRef(t2);
|
|
30
|
+
let t3;
|
|
31
|
+
if ($[1] !== isEqual || $[2] !== selector || $[3] !== store) {
|
|
32
|
+
t3 = () => {
|
|
33
|
+
const snapshot = store.getSnapshot();
|
|
34
|
+
const cache = cacheRef.current;
|
|
35
|
+
if (cache.snapshot === snapshot && cache.selector === selector && cache.isEqual === isEqual) {
|
|
36
|
+
return cache.selected;
|
|
37
|
+
}
|
|
38
|
+
const selected = selector(snapshot);
|
|
39
|
+
if (cache.snapshot !== null && cache.isEqual === isEqual && isEqual(cache.selected, selected)) {
|
|
40
|
+
cache.snapshot = snapshot;
|
|
41
|
+
cache.selector = selector;
|
|
42
|
+
return cache.selected;
|
|
43
|
+
}
|
|
44
|
+
cacheRef.current = {
|
|
45
|
+
isEqual,
|
|
46
|
+
selected,
|
|
47
|
+
selector,
|
|
48
|
+
snapshot
|
|
49
|
+
};
|
|
50
|
+
return selected;
|
|
51
|
+
};
|
|
52
|
+
$[1] = isEqual;
|
|
53
|
+
$[2] = selector;
|
|
54
|
+
$[3] = store;
|
|
55
|
+
$[4] = t3;
|
|
56
|
+
} else {
|
|
57
|
+
t3 = $[4];
|
|
58
|
+
}
|
|
59
|
+
const getSelectedSnapshot = t3;
|
|
60
|
+
return useSyncExternalStore(store.subscribe, getSelectedSnapshot, getSelectedSnapshot);
|
|
61
|
+
}
|
|
62
|
+
function useClickOutside(ref, callback) {
|
|
63
|
+
const $ = c(6);
|
|
64
|
+
let t0;
|
|
65
|
+
if ($[0] !== callback || $[1] !== ref) {
|
|
66
|
+
t0 = (event) => {
|
|
67
|
+
if (ref?.current && !ref.current.contains(event.target)) {
|
|
68
|
+
callback?.(event);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
$[0] = callback;
|
|
72
|
+
$[1] = ref;
|
|
73
|
+
$[2] = t0;
|
|
74
|
+
} else {
|
|
75
|
+
t0 = $[2];
|
|
76
|
+
}
|
|
77
|
+
const onPointer = useEffectEvent(t0);
|
|
78
|
+
let t1;
|
|
79
|
+
if ($[3] !== onPointer) {
|
|
80
|
+
t1 = () => {
|
|
81
|
+
const handlePointer = (event_0) => onPointer(event_0);
|
|
82
|
+
document.addEventListener("pointerdown", handlePointer);
|
|
83
|
+
return () => document.removeEventListener("pointerdown", handlePointer);
|
|
84
|
+
};
|
|
85
|
+
$[3] = onPointer;
|
|
86
|
+
$[4] = t1;
|
|
87
|
+
} else {
|
|
88
|
+
t1 = $[4];
|
|
89
|
+
}
|
|
90
|
+
let t2;
|
|
91
|
+
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
92
|
+
t2 = [];
|
|
93
|
+
$[5] = t2;
|
|
94
|
+
} else {
|
|
95
|
+
t2 = $[5];
|
|
96
|
+
}
|
|
97
|
+
useEffect(t1, t2);
|
|
98
|
+
}
|
|
99
|
+
function clearTimerRef(ref) {
|
|
100
|
+
if (ref.current === null) return;
|
|
101
|
+
clearTimeout(ref.current);
|
|
102
|
+
ref.current = null;
|
|
103
|
+
}
|
|
104
|
+
function useGlobalEvent(event, callback, options) {
|
|
105
|
+
const $ = c(11);
|
|
106
|
+
let t0;
|
|
107
|
+
if ($[0] !== callback) {
|
|
108
|
+
t0 = (payload) => callback?.(payload);
|
|
109
|
+
$[0] = callback;
|
|
110
|
+
$[1] = t0;
|
|
111
|
+
} else {
|
|
112
|
+
t0 = $[1];
|
|
113
|
+
}
|
|
114
|
+
const onEvent = useEffectEvent(t0);
|
|
115
|
+
const debounceTimerRef = useRef(null);
|
|
116
|
+
const lastThrottleTimeRef = useRef(0);
|
|
117
|
+
const throttleTimerRef = useRef(null);
|
|
118
|
+
const debounceMs = options?.debounceMs;
|
|
119
|
+
const throttleMs = options?.throttleMs;
|
|
120
|
+
let t1;
|
|
121
|
+
if ($[2] !== debounceMs || $[3] !== event || $[4] !== onEvent || $[5] !== throttleMs) {
|
|
122
|
+
t1 = () => {
|
|
123
|
+
if (!event) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const events = Array.isArray(event) ? event.filter(Boolean) : [event];
|
|
127
|
+
if (events.length === 0) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const deliverDebounced = (payload_0, waitMs) => {
|
|
131
|
+
clearTimerRef(debounceTimerRef);
|
|
132
|
+
debounceTimerRef.current = setTimeout(() => {
|
|
133
|
+
debounceTimerRef.current = null;
|
|
134
|
+
onEvent(payload_0);
|
|
135
|
+
}, waitMs);
|
|
136
|
+
};
|
|
137
|
+
const deliverThrottled = (payload_1, limitMs) => {
|
|
138
|
+
const now = Date.now();
|
|
139
|
+
const remaining = limitMs - (now - lastThrottleTimeRef.current);
|
|
140
|
+
if (remaining <= 0) {
|
|
141
|
+
clearTimerRef(throttleTimerRef);
|
|
142
|
+
lastThrottleTimeRef.current = now;
|
|
143
|
+
onEvent(payload_1);
|
|
144
|
+
} else {
|
|
145
|
+
if (throttleTimerRef.current === null) {
|
|
146
|
+
throttleTimerRef.current = setTimeout(() => {
|
|
147
|
+
lastThrottleTimeRef.current = Date.now();
|
|
148
|
+
throttleTimerRef.current = null;
|
|
149
|
+
onEvent(payload_1);
|
|
150
|
+
}, remaining);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const handler = (payload_2) => {
|
|
155
|
+
if (debounceMs != null && debounceMs > 0) {
|
|
156
|
+
deliverDebounced(payload_2, debounceMs);
|
|
157
|
+
} else {
|
|
158
|
+
if (throttleMs != null && throttleMs > 0) {
|
|
159
|
+
deliverThrottled(payload_2, throttleMs);
|
|
160
|
+
} else {
|
|
161
|
+
onEvent(payload_2);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
const unsubs = events.map((ev) => globalEvents.subscribe(ev, handler));
|
|
166
|
+
return () => {
|
|
167
|
+
unsubs.forEach(_temp);
|
|
168
|
+
clearTimerRef(debounceTimerRef);
|
|
169
|
+
clearTimerRef(throttleTimerRef);
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
$[2] = debounceMs;
|
|
173
|
+
$[3] = event;
|
|
174
|
+
$[4] = onEvent;
|
|
175
|
+
$[5] = throttleMs;
|
|
176
|
+
$[6] = t1;
|
|
177
|
+
} else {
|
|
178
|
+
t1 = $[6];
|
|
179
|
+
}
|
|
180
|
+
let t2;
|
|
181
|
+
if ($[7] !== debounceMs || $[8] !== event || $[9] !== throttleMs) {
|
|
182
|
+
t2 = [event, debounceMs, throttleMs];
|
|
183
|
+
$[7] = debounceMs;
|
|
184
|
+
$[8] = event;
|
|
185
|
+
$[9] = throttleMs;
|
|
186
|
+
$[10] = t2;
|
|
187
|
+
} else {
|
|
188
|
+
t2 = $[10];
|
|
189
|
+
}
|
|
190
|
+
useEffect(t1, t2);
|
|
191
|
+
}
|
|
192
|
+
function _temp(unsub) {
|
|
193
|
+
return unsub();
|
|
194
|
+
}
|
|
195
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
196
|
+
var activeFullscreenStateIds = /* @__PURE__ */ new Set();
|
|
197
|
+
var ACTIVE_FULLSCREEN_ROOT_SELECTOR = '[data-fullscreen-state-root="true"][data-affect-global-state="true"]';
|
|
198
|
+
var OBSERVED_ATTRIBUTES = ["data-fullscreen-state", "data-fullscreen-state-root", "data-affect-global-state"];
|
|
199
|
+
var domObserver = null;
|
|
200
|
+
var lastSnapshot = false;
|
|
201
|
+
function getDomSnapshot() {
|
|
202
|
+
if (typeof document === "undefined") {
|
|
203
|
+
return activeFullscreenStateIds.size > 0;
|
|
204
|
+
}
|
|
205
|
+
return document.querySelector(ACTIVE_FULLSCREEN_ROOT_SELECTOR) !== null;
|
|
206
|
+
}
|
|
207
|
+
function emitChange() {
|
|
208
|
+
listeners.forEach((listener2) => listener2());
|
|
209
|
+
}
|
|
210
|
+
function emitIfSnapshotChanged() {
|
|
211
|
+
const nextSnapshot = getDomSnapshot();
|
|
212
|
+
if (nextSnapshot === lastSnapshot) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
lastSnapshot = nextSnapshot;
|
|
216
|
+
emitChange();
|
|
217
|
+
}
|
|
218
|
+
function ensureDomObserver() {
|
|
219
|
+
if (typeof document === "undefined" || domObserver || listeners.size === 0) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
domObserver = new MutationObserver(() => {
|
|
223
|
+
emitIfSnapshotChanged();
|
|
224
|
+
});
|
|
225
|
+
domObserver.observe(document.documentElement, {
|
|
226
|
+
attributes: true,
|
|
227
|
+
childList: true,
|
|
228
|
+
subtree: true,
|
|
229
|
+
attributeFilter: OBSERVED_ATTRIBUTES
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
function releaseDomObserver() {
|
|
233
|
+
if (listeners.size > 0 || !domObserver) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
domObserver.disconnect();
|
|
237
|
+
domObserver = null;
|
|
238
|
+
}
|
|
239
|
+
function subscribe(listener2) {
|
|
240
|
+
listeners.add(listener2);
|
|
241
|
+
ensureDomObserver();
|
|
242
|
+
emitIfSnapshotChanged();
|
|
243
|
+
return () => {
|
|
244
|
+
listeners.delete(listener2);
|
|
245
|
+
releaseDomObserver();
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function getSnapshot() {
|
|
249
|
+
return getDomSnapshot();
|
|
250
|
+
}
|
|
251
|
+
function useIsFullscreenStateActive() {
|
|
252
|
+
return useSyncExternalStore(subscribe, getSnapshot, _temp2);
|
|
253
|
+
}
|
|
254
|
+
function _temp2() {
|
|
255
|
+
return false;
|
|
256
|
+
}
|
|
257
|
+
function useControllableState(t0) {
|
|
258
|
+
const $ = c(8);
|
|
259
|
+
const {
|
|
260
|
+
defaultValue,
|
|
261
|
+
onChange,
|
|
262
|
+
value
|
|
263
|
+
} = t0;
|
|
264
|
+
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
265
|
+
const isControlled = value !== void 0;
|
|
266
|
+
const currentValue = isControlled ? value : uncontrolledValue;
|
|
267
|
+
const valueRef = useRef(currentValue);
|
|
268
|
+
const onChangeRef = useRef(onChange);
|
|
269
|
+
let t1;
|
|
270
|
+
if ($[0] !== currentValue || $[1] !== onChange) {
|
|
271
|
+
t1 = () => {
|
|
272
|
+
valueRef.current = currentValue;
|
|
273
|
+
onChangeRef.current = onChange;
|
|
274
|
+
};
|
|
275
|
+
$[0] = currentValue;
|
|
276
|
+
$[1] = onChange;
|
|
277
|
+
$[2] = t1;
|
|
278
|
+
} else {
|
|
279
|
+
t1 = $[2];
|
|
280
|
+
}
|
|
281
|
+
useLayoutEffect(t1);
|
|
282
|
+
let t2;
|
|
283
|
+
if ($[3] !== isControlled) {
|
|
284
|
+
t2 = (next) => {
|
|
285
|
+
const resolvedNext = typeof next === "function" ? next(valueRef.current) : next;
|
|
286
|
+
if (!Object.is(valueRef.current, resolvedNext)) {
|
|
287
|
+
if (!isControlled) {
|
|
288
|
+
setUncontrolledValue(resolvedNext);
|
|
289
|
+
}
|
|
290
|
+
onChangeRef.current?.(resolvedNext);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
$[3] = isControlled;
|
|
294
|
+
$[4] = t2;
|
|
295
|
+
} else {
|
|
296
|
+
t2 = $[4];
|
|
297
|
+
}
|
|
298
|
+
const setValue = t2;
|
|
299
|
+
let t3;
|
|
300
|
+
if ($[5] !== currentValue || $[6] !== setValue) {
|
|
301
|
+
t3 = [currentValue, setValue];
|
|
302
|
+
$[5] = currentValue;
|
|
303
|
+
$[6] = setValue;
|
|
304
|
+
$[7] = t3;
|
|
305
|
+
} else {
|
|
306
|
+
t3 = $[7];
|
|
307
|
+
}
|
|
308
|
+
return t3;
|
|
309
|
+
}
|
|
310
|
+
function isEditableElement(target) {
|
|
311
|
+
if (!target || typeof target.tagName !== "string") {
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
const element = target;
|
|
315
|
+
const tagName = element.tagName.toLowerCase();
|
|
316
|
+
if (EDITABLE_TAGS.has(tagName)) return true;
|
|
317
|
+
return Boolean(element.isContentEditable);
|
|
318
|
+
}
|
|
319
|
+
var EDITABLE_TAGS = /* @__PURE__ */ new Set(["input", "textarea", "select"]);
|
|
320
|
+
var COMBO_SEPARATOR = "+";
|
|
321
|
+
var MOD_ALIASES = ["mod", "cmd", "meta"];
|
|
322
|
+
var CTRL_ALIASES = ["ctrl", "control"];
|
|
323
|
+
var ALT_ALIASES = ["alt", "option"];
|
|
324
|
+
var SHIFT_ALIAS = "shift";
|
|
325
|
+
var ESCAPE_ALIASES = ["esc", "escape"];
|
|
326
|
+
var SPACE_KEY_NAMES = [" ", "spacebar"];
|
|
327
|
+
var SPACE_ALIAS = "space";
|
|
328
|
+
function parseCombo(combo) {
|
|
329
|
+
const parts = combo.toLowerCase().split(COMBO_SEPARATOR).map((p) => p.trim()).filter(Boolean);
|
|
330
|
+
if (parts.length === 0) return null;
|
|
331
|
+
const modifiers = new Set(parts.slice(0, -1));
|
|
332
|
+
const hasAny = (aliases) => aliases.some((alias) => modifiers.has(alias));
|
|
333
|
+
return {
|
|
334
|
+
key: parts[parts.length - 1],
|
|
335
|
+
wantsMod: hasAny(MOD_ALIASES),
|
|
336
|
+
wantsCtrl: hasAny(CTRL_ALIASES),
|
|
337
|
+
wantsAlt: hasAny(ALT_ALIASES),
|
|
338
|
+
wantsShift: modifiers.has(SHIFT_ALIAS)
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
function modifiersMatch(event, wanted) {
|
|
342
|
+
const isModPressed = event.metaKey || event.ctrlKey;
|
|
343
|
+
if (wanted.wantsMod && !isModPressed) return false;
|
|
344
|
+
if (!wanted.wantsMod && !wanted.wantsCtrl && isModPressed) return false;
|
|
345
|
+
if (wanted.wantsCtrl && !event.ctrlKey) return false;
|
|
346
|
+
if (wanted.wantsAlt !== event.altKey) return false;
|
|
347
|
+
return wanted.wantsShift === event.shiftKey;
|
|
348
|
+
}
|
|
349
|
+
function keyMatches(pressedKey, wantedKey) {
|
|
350
|
+
if (ESCAPE_ALIASES.includes(wantedKey)) {
|
|
351
|
+
return ESCAPE_ALIASES.includes(pressedKey);
|
|
352
|
+
}
|
|
353
|
+
if (wantedKey === SPACE_ALIAS) return SPACE_KEY_NAMES.includes(pressedKey);
|
|
354
|
+
return pressedKey === wantedKey;
|
|
355
|
+
}
|
|
356
|
+
function matchesKeyCombo(event, combo) {
|
|
357
|
+
const wanted = parseCombo(combo);
|
|
358
|
+
if (!wanted || !modifiersMatch(event, wanted)) return false;
|
|
359
|
+
return keyMatches(event.key.toLowerCase(), wanted.key);
|
|
360
|
+
}
|
|
361
|
+
function useHotkey(combo, callback, options) {
|
|
362
|
+
const $ = c(15);
|
|
363
|
+
let t0;
|
|
364
|
+
if ($[0] !== callback) {
|
|
365
|
+
t0 = (event) => callback?.(event);
|
|
366
|
+
$[0] = callback;
|
|
367
|
+
$[1] = t0;
|
|
368
|
+
} else {
|
|
369
|
+
t0 = $[1];
|
|
370
|
+
}
|
|
371
|
+
const onHotkey = useEffectEvent(t0);
|
|
372
|
+
const enabled = options?.enabled ?? true;
|
|
373
|
+
const enableOnFormTags = options?.enableOnFormTags ?? false;
|
|
374
|
+
const preventDefault = options?.preventDefault ?? true;
|
|
375
|
+
const stopPropagation = options?.stopPropagation ?? false;
|
|
376
|
+
let t1;
|
|
377
|
+
if ($[2] !== combo || $[3] !== enableOnFormTags || $[4] !== enabled || $[5] !== onHotkey || $[6] !== preventDefault || $[7] !== stopPropagation) {
|
|
378
|
+
t1 = () => {
|
|
379
|
+
if (!isBrowser || !enabled || !combo) {
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
const combos = (Array.isArray(combo) ? combo : [combo]).filter(Boolean);
|
|
383
|
+
if (combos.length === 0) {
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
const handleKeyDown = (event_0) => {
|
|
387
|
+
if (!enableOnFormTags && isEditableElement(event_0.target)) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
const matched = combos.some((c) => matchesKeyCombo(event_0, c));
|
|
391
|
+
if (!matched) {
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
if (preventDefault) {
|
|
395
|
+
event_0.preventDefault();
|
|
396
|
+
}
|
|
397
|
+
if (stopPropagation) {
|
|
398
|
+
event_0.stopPropagation();
|
|
399
|
+
}
|
|
400
|
+
onHotkey(event_0);
|
|
401
|
+
};
|
|
402
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
403
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
404
|
+
};
|
|
405
|
+
$[2] = combo;
|
|
406
|
+
$[3] = enableOnFormTags;
|
|
407
|
+
$[4] = enabled;
|
|
408
|
+
$[5] = onHotkey;
|
|
409
|
+
$[6] = preventDefault;
|
|
410
|
+
$[7] = stopPropagation;
|
|
411
|
+
$[8] = t1;
|
|
412
|
+
} else {
|
|
413
|
+
t1 = $[8];
|
|
414
|
+
}
|
|
415
|
+
let t2;
|
|
416
|
+
if ($[9] !== combo || $[10] !== enableOnFormTags || $[11] !== enabled || $[12] !== preventDefault || $[13] !== stopPropagation) {
|
|
417
|
+
t2 = [combo, enabled, enableOnFormTags, preventDefault, stopPropagation];
|
|
418
|
+
$[9] = combo;
|
|
419
|
+
$[10] = enableOnFormTags;
|
|
420
|
+
$[11] = enabled;
|
|
421
|
+
$[12] = preventDefault;
|
|
422
|
+
$[13] = stopPropagation;
|
|
423
|
+
$[14] = t2;
|
|
424
|
+
} else {
|
|
425
|
+
t2 = $[14];
|
|
426
|
+
}
|
|
427
|
+
useEffect(t1, t2);
|
|
428
|
+
}
|
|
429
|
+
function useEscapeKey(callback, t0) {
|
|
430
|
+
const $ = c(2);
|
|
431
|
+
const enabled = t0 === void 0 ? true : t0;
|
|
432
|
+
let t1;
|
|
433
|
+
if ($[0] !== enabled) {
|
|
434
|
+
t1 = {
|
|
435
|
+
enabled,
|
|
436
|
+
enableOnFormTags: true,
|
|
437
|
+
preventDefault: false
|
|
438
|
+
};
|
|
439
|
+
$[0] = enabled;
|
|
440
|
+
$[1] = t1;
|
|
441
|
+
} else {
|
|
442
|
+
t1 = $[1];
|
|
443
|
+
}
|
|
444
|
+
useHotkey("escape", callback, t1);
|
|
445
|
+
}
|
|
446
|
+
var SCROLL_LOCK = "data-scroll-lock";
|
|
447
|
+
var holds = 0;
|
|
448
|
+
var startY = 0;
|
|
449
|
+
var listener = {
|
|
450
|
+
capture: true,
|
|
451
|
+
passive: false
|
|
452
|
+
};
|
|
453
|
+
var SCROLL_EDGE_TOLERANCE_PX = 1;
|
|
454
|
+
var SCROLLABLE_OVERFLOW = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]);
|
|
455
|
+
function isScrollContainer(element) {
|
|
456
|
+
if (!(element instanceof HTMLElement)) return false;
|
|
457
|
+
if (element.scrollHeight <= element.clientHeight + SCROLL_EDGE_TOLERANCE_PX) {
|
|
458
|
+
return false;
|
|
459
|
+
}
|
|
460
|
+
return SCROLLABLE_OVERFLOW.has(getComputedStyle(element).overflowY);
|
|
461
|
+
}
|
|
462
|
+
function canScrollFurther(element, delta) {
|
|
463
|
+
const atTop = element.scrollTop <= 0;
|
|
464
|
+
const atEnd = element.scrollTop + element.clientHeight >= element.scrollHeight - SCROLL_EDGE_TOLERANCE_PX;
|
|
465
|
+
return delta === 0 || delta < 0 && !atTop || delta > 0 && !atEnd;
|
|
466
|
+
}
|
|
467
|
+
function canScroll(target, delta) {
|
|
468
|
+
let element = target instanceof Element ? target : null;
|
|
469
|
+
while (element && element !== document.body && element !== document.documentElement) {
|
|
470
|
+
if (isScrollContainer(element)) return canScrollFurther(element, delta);
|
|
471
|
+
element = element.parentElement;
|
|
472
|
+
}
|
|
473
|
+
return false;
|
|
474
|
+
}
|
|
475
|
+
function onWheel(event) {
|
|
476
|
+
if (event.ctrlKey || event.metaKey) return;
|
|
477
|
+
const delta = event.deltaY || event.deltaX;
|
|
478
|
+
if (Math.abs(event.deltaX) > Math.abs(event.deltaY)) {
|
|
479
|
+
event.preventDefault();
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
if (!canScroll(event.target, delta)) event.preventDefault();
|
|
483
|
+
}
|
|
484
|
+
function onTouchStart(event) {
|
|
485
|
+
startY = event.touches[0]?.clientY ?? 0;
|
|
486
|
+
}
|
|
487
|
+
function onTouchMove(event) {
|
|
488
|
+
if (event.touches.length > 1) return;
|
|
489
|
+
const y = event.touches[0]?.clientY ?? startY;
|
|
490
|
+
if (!canScroll(event.target, startY - y)) event.preventDefault();
|
|
491
|
+
}
|
|
492
|
+
function hold() {
|
|
493
|
+
if (holds++ > 0) return;
|
|
494
|
+
document.documentElement.setAttribute(SCROLL_LOCK, "");
|
|
495
|
+
window.addEventListener("wheel", onWheel, listener);
|
|
496
|
+
window.addEventListener("touchstart", onTouchStart, {
|
|
497
|
+
capture: true,
|
|
498
|
+
passive: true
|
|
499
|
+
});
|
|
500
|
+
window.addEventListener("touchmove", onTouchMove, listener);
|
|
501
|
+
}
|
|
502
|
+
function release() {
|
|
503
|
+
if (--holds > 0) return;
|
|
504
|
+
holds = 0;
|
|
505
|
+
document.documentElement.removeAttribute(SCROLL_LOCK);
|
|
506
|
+
window.removeEventListener("wheel", onWheel, listener);
|
|
507
|
+
window.removeEventListener("touchstart", onTouchStart, {
|
|
508
|
+
capture: true
|
|
509
|
+
});
|
|
510
|
+
window.removeEventListener("touchmove", onTouchMove, listener);
|
|
511
|
+
}
|
|
512
|
+
function useScrollLock(active) {
|
|
513
|
+
const $ = c(3);
|
|
514
|
+
let t0;
|
|
515
|
+
let t1;
|
|
516
|
+
if ($[0] !== active) {
|
|
517
|
+
t0 = () => {
|
|
518
|
+
if (!active) {
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
hold();
|
|
522
|
+
return release;
|
|
523
|
+
};
|
|
524
|
+
t1 = [active];
|
|
525
|
+
$[0] = active;
|
|
526
|
+
$[1] = t0;
|
|
527
|
+
$[2] = t1;
|
|
528
|
+
} else {
|
|
529
|
+
t0 = $[1];
|
|
530
|
+
t1 = $[2];
|
|
531
|
+
}
|
|
532
|
+
useEffect(t0, t1);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export { SCROLL_LOCK, useClickOutside, useControllableState, useEscapeKey, useGlobalEvent, useHotkey, useIsFullscreenStateActive, useRequiredContext, useScrollLock, useStore };
|
|
536
|
+
//# sourceMappingURL=chunk-Y2Q74PJP.js.map
|
|
537
|
+
//# sourceMappingURL=chunk-Y2Q74PJP.js.map
|