@omerdlw/base-framework 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +75 -0
- package/README.md +33 -25
- package/dist/ambient/index.d.ts +1 -0
- package/dist/ambient/index.js +14 -0
- package/dist/ambient/server/index.d.ts +1 -0
- package/dist/ambient/server/index.js +238 -0
- package/dist/ambient/server/index.js.map +1 -0
- package/dist/ambient/worker/index.d.ts +1 -0
- package/dist/ambient/worker/index.js +143 -0
- package/dist/ambient/worker/index.js.map +1 -0
- package/dist/background/index.d.ts +1 -0
- package/dist/background/index.js +13 -0
- package/dist/chunk-26K6W4OQ.js +1435 -0
- package/dist/chunk-26K6W4OQ.js.map +1 -0
- package/dist/chunk-2BLGNT5I.js +850 -0
- package/dist/chunk-2BLGNT5I.js.map +1 -0
- package/dist/chunk-2LGI33JP.js +832 -0
- package/dist/chunk-2LGI33JP.js.map +1 -0
- package/dist/chunk-37OBXNEO.js +116 -0
- package/dist/chunk-37OBXNEO.js.map +1 -0
- package/dist/chunk-5GVH4BQV.js +577 -0
- package/dist/chunk-5GVH4BQV.js.map +1 -0
- package/dist/chunk-5H6FZW3N.js +535 -0
- package/dist/chunk-5H6FZW3N.js.map +1 -0
- package/dist/chunk-66MHDFNF.js +3488 -0
- package/dist/chunk-66MHDFNF.js.map +1 -0
- package/dist/chunk-7RSRDKYE.js +22 -0
- package/dist/chunk-7RSRDKYE.js.map +1 -0
- package/dist/chunk-AAT3QWHN.js +567 -0
- package/dist/chunk-AAT3QWHN.js.map +1 -0
- package/dist/chunk-BMFHS3GV.js +118 -0
- package/dist/chunk-BMFHS3GV.js.map +1 -0
- package/dist/chunk-CRKJAACG.js +81 -0
- package/dist/chunk-CRKJAACG.js.map +1 -0
- package/dist/chunk-CT4UILO2.js +537 -0
- package/dist/chunk-CT4UILO2.js.map +1 -0
- package/dist/chunk-ESD5EQ5H.js +178 -0
- package/dist/chunk-ESD5EQ5H.js.map +1 -0
- package/dist/chunk-GQKGOLHJ.js +1766 -0
- package/dist/chunk-GQKGOLHJ.js.map +1 -0
- package/dist/chunk-IR3DCLBM.js +17 -0
- package/dist/chunk-IR3DCLBM.js.map +1 -0
- package/dist/chunk-J3VTDBC6.js +14 -0
- package/dist/chunk-J3VTDBC6.js.map +1 -0
- package/dist/chunk-J4WUCHNR.js +825 -0
- package/dist/chunk-J4WUCHNR.js.map +1 -0
- package/dist/chunk-KMN6J5SL.js +493 -0
- package/dist/chunk-KMN6J5SL.js.map +1 -0
- package/dist/chunk-LA3CQ6NY.js +261 -0
- package/dist/chunk-LA3CQ6NY.js.map +1 -0
- package/dist/chunk-LTO77WSO.js +140 -0
- package/dist/chunk-LTO77WSO.js.map +1 -0
- package/dist/chunk-NTUQYA73.js +110 -0
- package/dist/chunk-NTUQYA73.js.map +1 -0
- package/dist/chunk-OEXWOZPS.js +139 -0
- package/dist/chunk-OEXWOZPS.js.map +1 -0
- package/dist/chunk-PUD4IB3L.js +15762 -0
- package/dist/chunk-PUD4IB3L.js.map +1 -0
- package/dist/chunk-RDYYP36I.js +27 -0
- package/dist/chunk-RDYYP36I.js.map +1 -0
- package/dist/chunk-RF2YGILF.js +656 -0
- package/dist/chunk-RF2YGILF.js.map +1 -0
- package/dist/chunk-WBBM67WL.js +460 -0
- package/dist/chunk-WBBM67WL.js.map +1 -0
- package/dist/chunk-WYVA6AN5.js +590 -0
- package/dist/chunk-WYVA6AN5.js.map +1 -0
- package/dist/chunk-Y2Q74PJP.js +537 -0
- package/dist/chunk-Y2Q74PJP.js.map +1 -0
- package/dist/chunk-ZE6OGGA7.js +2341 -0
- package/dist/chunk-ZE6OGGA7.js.map +1 -0
- package/dist/context-menu/index.d.ts +1 -0
- package/dist/context-menu/index.js +19 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +10 -0
- package/dist/core/error/boundary.d.ts +27 -0
- package/dist/core/error/boundary.d.ts.map +1 -0
- package/dist/core/error/constants.d.ts +33 -0
- package/dist/core/error/constants.d.ts.map +1 -0
- package/dist/core/error/index.d.ts +9 -0
- package/dist/core/error/index.d.ts.map +1 -0
- package/dist/core/error/listener.d.ts +6 -0
- package/dist/core/error/listener.d.ts.map +1 -0
- package/dist/core/error/reporter.d.ts +49 -0
- package/dist/core/error/reporter.d.ts.map +1 -0
- package/dist/core/error/theme.d.ts +10 -0
- package/dist/core/error/theme.d.ts.map +1 -0
- package/dist/core/error/types.d.ts +128 -0
- package/dist/core/error/types.d.ts.map +1 -0
- package/dist/core/error/utils.d.ts +55 -0
- package/dist/core/error/utils.d.ts.map +1 -0
- package/dist/core/kernel/adapters.d.ts +9 -0
- package/dist/core/kernel/adapters.d.ts.map +1 -0
- package/dist/core/kernel/compose.d.ts +21 -0
- package/dist/core/kernel/compose.d.ts.map +1 -0
- package/dist/core/kernel/constants.d.ts +42 -0
- package/dist/core/kernel/constants.d.ts.map +1 -0
- package/dist/core/kernel/handlers.d.ts +7 -0
- package/dist/core/kernel/handlers.d.ts.map +1 -0
- package/dist/core/kernel/hooks.d.ts +13 -0
- package/dist/core/kernel/hooks.d.ts.map +1 -0
- package/dist/core/kernel/index.d.ts +15 -0
- package/dist/core/kernel/index.d.ts.map +1 -0
- package/dist/core/kernel/installed.d.ts +28 -0
- package/dist/core/kernel/installed.d.ts.map +1 -0
- package/dist/core/kernel/module.d.ts +57 -0
- package/dist/core/kernel/module.d.ts.map +1 -0
- package/dist/core/kernel/operations-records.d.ts +25 -0
- package/dist/core/kernel/operations-records.d.ts.map +1 -0
- package/dist/core/kernel/operations-resolve.d.ts +5 -0
- package/dist/core/kernel/operations-resolve.d.ts.map +1 -0
- package/dist/core/kernel/operations.d.ts +23 -0
- package/dist/core/kernel/operations.d.ts.map +1 -0
- package/dist/core/kernel/page-controller.d.ts +20 -0
- package/dist/core/kernel/page-controller.d.ts.map +1 -0
- package/dist/core/kernel/provider.d.ts +29 -0
- package/dist/core/kernel/provider.d.ts.map +1 -0
- package/dist/core/kernel/runtime.d.ts.map +1 -0
- package/dist/core/kernel/schema.d.ts +13 -0
- package/dist/core/kernel/schema.d.ts.map +1 -0
- package/dist/core/kernel/stabilize.d.ts +13 -0
- package/dist/core/kernel/stabilize.d.ts.map +1 -0
- package/dist/core/kernel/store-batch.d.ts +17 -0
- package/dist/core/kernel/store-batch.d.ts.map +1 -0
- package/dist/core/kernel/store-entries.d.ts +6 -0
- package/dist/core/kernel/store-entries.d.ts.map +1 -0
- package/dist/core/kernel/store-handles.d.ts +4 -0
- package/dist/core/kernel/store-handles.d.ts.map +1 -0
- package/dist/core/kernel/store-registration.d.ts +14 -0
- package/dist/core/kernel/store-registration.d.ts.map +1 -0
- package/dist/core/kernel/store-snapshots.d.ts +14 -0
- package/dist/core/kernel/store-snapshots.d.ts.map +1 -0
- package/dist/core/kernel/store-subscriptions.d.ts +16 -0
- package/dist/core/kernel/store-subscriptions.d.ts.map +1 -0
- package/dist/core/kernel/store.d.ts +8 -0
- package/dist/core/kernel/store.d.ts.map +1 -0
- package/dist/core/kernel/types-modules.d.ts +82 -0
- package/dist/core/kernel/types-modules.d.ts.map +1 -0
- package/dist/core/kernel/types-page.d.ts +67 -0
- package/dist/core/kernel/types-page.d.ts.map +1 -0
- package/dist/core/kernel/types-store.d.ts +71 -0
- package/dist/core/kernel/types-store.d.ts.map +1 -0
- package/dist/core/kernel/types.d.ts +169 -0
- package/dist/core/kernel/types.d.ts.map +1 -0
- package/dist/core/kernel/utils.d.ts +21 -0
- package/dist/core/kernel/utils.d.ts.map +1 -0
- package/dist/core/navigation/constants.d.ts +48 -0
- package/dist/core/navigation/constants.d.ts.map +1 -0
- package/dist/core/navigation/navigator-defaults.d.ts +4 -0
- package/dist/core/navigation/navigator-defaults.d.ts.map +1 -0
- package/dist/core/navigation/navigator-holds.d.ts +8 -0
- package/dist/core/navigation/navigator-holds.d.ts.map +1 -0
- package/dist/core/navigation/navigator-patience.d.ts +15 -0
- package/dist/core/navigation/navigator-patience.d.ts.map +1 -0
- package/dist/core/navigation/navigator-payload.d.ts +6 -0
- package/dist/core/navigation/navigator-payload.d.ts.map +1 -0
- package/dist/core/navigation/navigator-prefetch.d.ts +13 -0
- package/dist/core/navigation/navigator-prefetch.d.ts.map +1 -0
- package/dist/core/navigation/navigator.d.ts +7 -0
- package/dist/core/navigation/navigator.d.ts.map +1 -0
- package/dist/core/navigation/settings.d.ts +12 -0
- package/dist/core/navigation/settings.d.ts.map +1 -0
- package/dist/core/navigation/state.d.ts +26 -0
- package/dist/core/navigation/state.d.ts.map +1 -0
- package/dist/core/navigation/types.d.ts +194 -0
- package/dist/core/navigation/types.d.ts.map +1 -0
- package/dist/core/navigation/utils.d.ts +18 -0
- package/dist/core/navigation/utils.d.ts.map +1 -0
- package/dist/core/provider/index.d.ts +31 -0
- package/dist/core/provider/index.d.ts.map +1 -0
- package/dist/dock/index.d.ts +1 -0
- package/dist/dock/index.js +18 -0
- package/dist/error/index.d.ts +1 -9
- package/dist/error/index.js +8 -5
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +83 -0
- package/dist/events/index.js.map +1 -0
- package/dist/foundation/events/index.d.ts +67 -0
- package/dist/foundation/events/index.d.ts.map +1 -0
- package/dist/foundation/recipes/anatomy.d.ts +139 -0
- package/dist/foundation/recipes/anatomy.d.ts.map +1 -0
- package/dist/foundation/recipes/cn.d.ts +17 -0
- package/dist/foundation/recipes/cn.d.ts.map +1 -0
- package/dist/foundation/recipes/define.d.ts +134 -0
- package/dist/foundation/recipes/define.d.ts.map +1 -0
- package/dist/foundation/recipes/index.d.ts +11 -0
- package/dist/foundation/recipes/index.d.ts.map +1 -0
- package/dist/foundation/recipes/recipe.d.ts +97 -0
- package/dist/foundation/recipes/recipe.d.ts.map +1 -0
- package/dist/foundation/recipes/split.d.ts +10 -0
- package/dist/foundation/recipes/split.d.ts.map +1 -0
- package/dist/foundation/result/index.d.ts +98 -0
- package/dist/foundation/result/index.d.ts.map +1 -0
- package/dist/foundation/utils/dom.d.ts +19 -0
- package/dist/foundation/utils/dom.d.ts.map +1 -0
- package/dist/foundation/utils/index.d.ts +17 -0
- package/dist/foundation/utils/index.d.ts.map +1 -0
- package/dist/foundation/utils/number.d.ts +9 -0
- package/dist/foundation/utils/number.d.ts.map +1 -0
- package/dist/foundation/utils/object.d.ts +17 -0
- package/dist/foundation/utils/object.d.ts.map +1 -0
- package/dist/foundation/utils/report.d.ts +18 -0
- package/dist/foundation/utils/report.d.ts.map +1 -0
- package/dist/foundation/utils/scheduler.d.ts +52 -0
- package/dist/foundation/utils/scheduler.d.ts.map +1 -0
- package/dist/foundation/utils/store.d.ts +21 -0
- package/dist/foundation/utils/store.d.ts.map +1 -0
- package/dist/foundation/utils/string.d.ts +18 -0
- package/dist/foundation/utils/string.d.ts.map +1 -0
- package/dist/foundation/utils/tempo.d.ts +61 -0
- package/dist/foundation/utils/tempo.d.ts.map +1 -0
- package/dist/foundation/utils/timing.d.ts +13 -0
- package/dist/foundation/utils/timing.d.ts.map +1 -0
- package/dist/foundation/utils/transform.d.ts +17 -0
- package/dist/foundation/utils/transform.d.ts.map +1 -0
- package/dist/foundation/utils/user-message.d.ts +32 -0
- package/dist/foundation/utils/user-message.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -11
- package/dist/hooks/index.js +3 -1
- package/dist/index.d.ts +8 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -20
- package/dist/kernel/index.d.ts +1 -15
- package/dist/kernel/index.js +5 -2
- package/dist/loading/index.d.ts +1 -0
- package/dist/loading/index.js +12 -0
- package/dist/media/index.d.ts +1 -0
- package/dist/media/index.js +9 -0
- package/dist/modal/index.d.ts +1 -0
- package/dist/modal/index.js +310 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/modules/ambient/analyze-bounds.d.ts +12 -0
- package/dist/modules/ambient/analyze-bounds.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-clusters.d.ts +14 -0
- package/dist/modules/ambient/analyze-clusters.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-measures.d.ts +22 -0
- package/dist/modules/ambient/analyze-measures.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-swatches.d.ts +16 -0
- package/dist/modules/ambient/analyze-swatches.d.ts.map +1 -0
- package/dist/modules/ambient/analyze.d.ts +14 -22
- package/dist/modules/ambient/analyze.d.ts.map +1 -1
- package/dist/modules/ambient/constants.d.ts +4 -1
- package/dist/modules/ambient/constants.d.ts.map +1 -1
- package/dist/modules/ambient/context.d.ts +6 -0
- package/dist/modules/ambient/context.d.ts.map +1 -1
- package/dist/modules/ambient/dom.d.ts +25 -2
- package/dist/modules/ambient/dom.d.ts.map +1 -1
- package/dist/modules/ambient/extractor.d.ts +10 -0
- package/dist/modules/ambient/extractor.d.ts.map +1 -1
- package/dist/modules/ambient/hooks.d.ts +12 -0
- package/dist/modules/ambient/hooks.d.ts.map +1 -1
- package/dist/modules/ambient/module.d.ts +12 -1
- package/dist/modules/ambient/module.d.ts.map +1 -1
- package/dist/modules/ambient/oklab.d.ts +24 -0
- package/dist/modules/ambient/oklab.d.ts.map +1 -1
- package/dist/modules/ambient/quantize.d.ts +4 -0
- package/dist/modules/ambient/quantize.d.ts.map +1 -1
- package/dist/modules/ambient/server/address.d.ts +8 -0
- package/dist/modules/ambient/server/address.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.d.ts +24 -0
- package/dist/modules/ambient/server/index.d.ts.map +1 -1
- package/dist/modules/ambient/settings.d.ts +26 -0
- package/dist/modules/ambient/settings.d.ts.map +1 -1
- package/dist/modules/ambient/types.d.ts +100 -1
- package/dist/modules/ambient/types.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.d.ts +16 -0
- package/dist/modules/ambient/worker/index.d.ts.map +1 -1
- package/dist/modules/background/components/background-gradients.d.ts +8 -0
- package/dist/modules/background/components/background-gradients.d.ts.map +1 -0
- package/dist/modules/background/components/edge-gradient.d.ts +9 -0
- package/dist/modules/background/components/edge-gradient.d.ts.map +1 -0
- package/dist/modules/background/components/native-video.d.ts +4 -0
- package/dist/modules/background/components/native-video.d.ts.map +1 -0
- package/dist/modules/background/components/noise-overlay.d.ts +11 -0
- package/dist/modules/background/components/noise-overlay.d.ts.map +1 -0
- package/dist/modules/background/components/overlay.d.ts +6 -0
- package/dist/modules/background/components/overlay.d.ts.map +1 -0
- package/dist/modules/background/components/solid-overlay.d.ts +10 -0
- package/dist/modules/background/components/solid-overlay.d.ts.map +1 -0
- package/dist/modules/background/constants.d.ts +14 -1
- package/dist/modules/background/constants.d.ts.map +1 -1
- package/dist/modules/background/context.d.ts +7 -0
- package/dist/modules/background/context.d.ts.map +1 -1
- package/dist/modules/background/hooks/use-background-media-source.d.ts +4 -0
- package/dist/modules/background/hooks/use-background-media-source.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts +15 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts +929 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts +22 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts.map +1 -0
- package/dist/modules/background/hooks.d.ts +20 -1
- package/dist/modules/background/hooks.d.ts.map +1 -1
- package/dist/modules/background/index.d.ts +6 -6
- package/dist/modules/background/index.d.ts.map +1 -1
- package/dist/modules/background/lib/theme.d.ts +4 -0
- package/dist/modules/background/lib/theme.d.ts.map +1 -0
- package/dist/modules/background/model/override.d.ts +14 -0
- package/dist/modules/background/model/override.d.ts.map +1 -0
- package/dist/modules/background/model/playback.d.ts +25 -0
- package/dist/modules/background/model/playback.d.ts.map +1 -0
- package/dist/modules/background/model/state.d.ts +31 -0
- package/dist/modules/background/model/state.d.ts.map +1 -0
- package/dist/modules/background/model/video-frame.d.ts +31 -0
- package/dist/modules/background/model/video-frame.d.ts.map +1 -0
- package/dist/modules/background/model/visual.d.ts +932 -0
- package/dist/modules/background/model/visual.d.ts.map +1 -0
- package/dist/modules/background/module.d.ts +11 -0
- package/dist/modules/background/module.d.ts.map +1 -1
- package/dist/modules/background/motion.d.ts.map +1 -1
- package/dist/modules/background/types.d.ts +66 -3
- package/dist/modules/background/types.d.ts.map +1 -1
- package/dist/modules/background/youtube/components/player.d.ts +7 -0
- package/dist/modules/background/youtube/components/player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts +27 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +20 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +8 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts +16 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/audio.d.ts +17 -0
- package/dist/modules/background/youtube/lib/audio.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts +29 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/parse.d.ts +36 -0
- package/dist/modules/background/youtube/lib/parse.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/timing.d.ts +11 -0
- package/dist/modules/background/youtube/lib/timing.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts +53 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts.map +1 -0
- package/dist/modules/context-menu/constants.d.ts +30 -1
- package/dist/modules/context-menu/constants.d.ts.map +1 -1
- package/dist/modules/context-menu/context.d.ts +10 -2
- package/dist/modules/context-menu/context.d.ts.map +1 -1
- package/dist/modules/context-menu/dom.d.ts +13 -0
- package/dist/modules/context-menu/dom.d.ts.map +1 -1
- package/dist/modules/context-menu/hooks.d.ts +32 -5
- package/dist/modules/context-menu/hooks.d.ts.map +1 -1
- package/dist/modules/context-menu/items.d.ts +25 -0
- package/dist/modules/context-menu/items.d.ts.map +1 -1
- package/dist/modules/context-menu/module.d.ts +6 -0
- package/dist/modules/context-menu/module.d.ts.map +1 -1
- package/dist/modules/context-menu/motion.d.ts.map +1 -1
- package/dist/modules/context-menu/overlay.d.ts +30 -8
- package/dist/modules/context-menu/overlay.d.ts.map +1 -1
- package/dist/modules/context-menu/resolver.d.ts +8 -0
- package/dist/modules/context-menu/resolver.d.ts.map +1 -1
- package/dist/modules/context-menu/state.d.ts +9 -0
- package/dist/modules/context-menu/state.d.ts.map +1 -1
- package/dist/modules/context-menu/types.d.ts +85 -3
- package/dist/modules/context-menu/types.d.ts.map +1 -1
- package/dist/modules/controls/constants.d.ts +18 -1
- package/dist/modules/controls/constants.d.ts.map +1 -1
- package/dist/modules/controls/entries.d.ts +23 -1
- package/dist/modules/controls/entries.d.ts.map +1 -1
- package/dist/modules/controls/hooks.d.ts +11 -1
- package/dist/modules/controls/hooks.d.ts.map +1 -1
- package/dist/modules/controls/layout.d.ts +17 -0
- package/dist/modules/controls/layout.d.ts.map +1 -1
- package/dist/modules/controls/module.d.ts +7 -1
- package/dist/modules/controls/module.d.ts.map +1 -1
- package/dist/modules/controls/overlay.d.ts +11 -1
- package/dist/modules/controls/overlay.d.ts.map +1 -1
- package/dist/modules/controls/types.d.ts +51 -2
- package/dist/modules/controls/types.d.ts.map +1 -1
- package/dist/modules/dock/components/badge.d.ts +5 -0
- package/dist/modules/dock/components/badge.d.ts.map +1 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts +6 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +1 -0
- package/dist/modules/dock/components/card-banner.d.ts +4 -0
- package/dist/modules/dock/components/card-banner.d.ts.map +1 -0
- package/dist/modules/dock/components/card-header.d.ts +4 -0
- package/dist/modules/dock/components/card-header.d.ts.map +1 -0
- package/dist/modules/dock/components/card-item.d.ts +3 -0
- package/dist/modules/dock/components/card-item.d.ts.map +1 -0
- package/dist/modules/dock/components/command-bar.d.ts +7 -0
- package/dist/modules/dock/components/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/description.d.ts +4 -0
- package/dist/modules/dock/components/description.d.ts.map +1 -0
- package/dist/modules/dock/components/dock.d.ts +4 -0
- package/dist/modules/dock/components/dock.d.ts.map +1 -0
- package/dist/modules/dock/components/hud-view.d.ts +7 -0
- package/dist/modules/dock/components/hud-view.d.ts.map +1 -0
- package/dist/modules/dock/components/icon.d.ts +6 -0
- package/dist/modules/dock/components/icon.d.ts.map +1 -0
- package/dist/modules/dock/components/item-content.d.ts +4 -0
- package/dist/modules/dock/components/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/media-action.d.ts +4 -0
- package/dist/modules/dock/components/media-action.d.ts.map +1 -0
- package/dist/modules/dock/components/media-controls.d.ts +4 -0
- package/dist/modules/dock/components/media-controls.d.ts.map +1 -0
- package/dist/modules/dock/components/media-scrubber.d.ts +5 -0
- package/dist/modules/dock/components/media-scrubber.d.ts.map +1 -0
- package/dist/modules/dock/components/status-actions.d.ts +10 -0
- package/dist/modules/dock/components/status-actions.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/action.d.ts +17 -0
- package/dist/modules/dock/components/surface/action.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/controls.d.ts +12 -0
- package/dist/modules/dock/components/surface/controls.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts +5 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/header-button.d.ts +14 -0
- package/dist/modules/dock/components/surface/header-button.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/item-content.d.ts +6 -0
- package/dist/modules/dock/components/surface/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/shell.d.ts +3 -0
- package/dist/modules/dock/components/surface/shell.d.ts.map +1 -0
- package/dist/modules/dock/components/title.d.ts +4 -0
- package/dist/modules/dock/components/title.d.ts.map +1 -0
- package/dist/modules/dock/constants.d.ts +11 -2
- package/dist/modules/dock/constants.d.ts.map +1 -1
- package/dist/modules/dock/context.d.ts +8 -2
- package/dist/modules/dock/context.d.ts.map +1 -1
- package/dist/modules/dock/hooks/use-action-slot.d.ts +6 -0
- package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-badge.d.ts +4 -0
- package/dist/modules/dock/hooks/use-badge.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts +18 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts +7 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts +1612 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts +19 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts +8 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +2 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts +3 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts +16 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts +9 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts +8 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts.map +1 -0
- package/dist/modules/dock/hud.d.ts +8 -34
- package/dist/modules/dock/hud.d.ts.map +1 -1
- package/dist/modules/dock/index.d.ts +18 -12
- package/dist/modules/dock/index.d.ts.map +1 -1
- package/dist/modules/dock/lib/banner.d.ts +43 -0
- package/dist/modules/dock/lib/banner.d.ts.map +1 -0
- package/dist/modules/dock/lib/card-item.d.ts +46 -0
- package/dist/modules/dock/lib/card-item.d.ts.map +1 -0
- package/dist/modules/dock/lib/card.d.ts +20 -0
- package/dist/modules/dock/lib/card.d.ts.map +1 -0
- package/dist/modules/dock/lib/command-bar.d.ts +8 -0
- package/dist/modules/dock/lib/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/lib/dom.d.ts +7 -0
- package/dist/modules/dock/lib/dom.d.ts.map +1 -0
- package/dist/modules/dock/lib/element-helpers.d.ts +8 -0
- package/dist/modules/dock/lib/element-helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/helpers.d.ts +19 -0
- package/dist/modules/dock/lib/helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/media.d.ts +35 -0
- package/dist/modules/dock/lib/media.d.ts.map +1 -0
- package/dist/modules/dock/lib/styles.d.ts +902 -0
- package/dist/modules/dock/lib/styles.d.ts.map +1 -0
- package/dist/modules/dock/model/hud-definition.d.ts +13 -0
- package/dist/modules/dock/model/hud-definition.d.ts.map +1 -0
- package/dist/modules/dock/model/hud.d.ts +10 -0
- package/dist/modules/dock/model/hud.d.ts.map +1 -0
- package/dist/modules/dock/model/layout.d.ts +28 -0
- package/dist/modules/dock/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/model/page-entry.d.ts +11 -0
- package/dist/modules/dock/model/page-entry.d.ts.map +1 -0
- package/dist/modules/dock/model/page-surface.d.ts +4 -0
- package/dist/modules/dock/model/page-surface.d.ts.map +1 -0
- package/dist/modules/dock/model/paths.d.ts +15 -0
- package/dist/modules/dock/model/paths.d.ts.map +1 -0
- package/dist/modules/dock/model/state.d.ts +28 -0
- package/dist/modules/dock/model/state.d.ts.map +1 -0
- package/dist/modules/dock/model/surface-return.d.ts +14 -0
- package/dist/modules/dock/model/surface-return.d.ts.map +1 -0
- package/dist/modules/dock/module.d.ts +5 -7
- package/dist/modules/dock/module.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +716 -5
- package/dist/modules/dock/motion.d.ts.map +1 -1
- package/dist/modules/dock/provider.d.ts +2 -1
- package/dist/modules/dock/provider.d.ts.map +1 -1
- package/dist/modules/dock/routing/breadcrumbs.d.ts +6 -2
- package/dist/modules/dock/routing/breadcrumbs.d.ts.map +1 -1
- package/dist/modules/dock/routing/continuity.d.ts +46 -14
- package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
- package/dist/modules/dock/routing/guards.d.ts +10 -1
- package/dist/modules/dock/routing/guards.d.ts.map +1 -1
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts +12 -0
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +1 -0
- package/dist/modules/dock/routing/lib/restore.d.ts +7 -0
- package/dist/modules/dock/routing/lib/restore.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/continuity.d.ts +21 -0
- package/dist/modules/dock/routing/model/continuity.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/policy.d.ts +7 -0
- package/dist/modules/dock/routing/model/policy.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/topology.d.ts +5 -0
- package/dist/modules/dock/routing/model/topology.d.ts.map +1 -0
- package/dist/modules/dock/routing/navigation.d.ts +10 -22
- package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
- package/dist/modules/dock/runtime/commands.d.ts +10 -1
- package/dist/modules/dock/runtime/commands.d.ts.map +1 -1
- package/dist/modules/dock/runtime/display.d.ts +9 -42
- package/dist/modules/dock/runtime/display.d.ts.map +1 -1
- package/dist/modules/dock/runtime/dock.d.ts +11 -70
- package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +14 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +7 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts +30 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/attention.d.ts +25 -0
- package/dist/modules/dock/runtime/model/attention.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/cards.d.ts +64 -0
- package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/items.d.ts +31 -0
- package/dist/modules/dock/runtime/model/items.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/layout.d.ts +10 -0
- package/dist/modules/dock/runtime/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/pipeline.d.ts +1 -1
- package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
- package/dist/modules/dock/runtime/provider-actions.d.ts +38 -0
- package/dist/modules/dock/runtime/provider-actions.d.ts.map +1 -0
- package/dist/modules/dock/status/action-options.d.ts +35 -0
- package/dist/modules/dock/status/action-options.d.ts.map +1 -0
- package/dist/modules/dock/status/events.d.ts +2 -2
- package/dist/modules/dock/status/events.d.ts.map +1 -1
- package/dist/modules/dock/status/hooks.d.ts +1 -1
- package/dist/modules/dock/status/hooks.d.ts.map +1 -1
- package/dist/modules/dock/status/model.d.ts +12 -32
- package/dist/modules/dock/status/model.d.ts.map +1 -1
- package/dist/modules/dock/status/state.d.ts +12 -0
- package/dist/modules/dock/status/state.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +5 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +7 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/constants.d.ts +5 -0
- package/dist/modules/dock/surface/constants.d.ts.map +1 -0
- package/dist/modules/dock/surface/context.d.ts +14 -1
- package/dist/modules/dock/surface/context.d.ts.map +1 -1
- package/dist/modules/dock/surface/definition.d.ts +28 -2
- package/dist/modules/dock/surface/definition.d.ts.map +1 -1
- package/dist/modules/dock/surface/helpers.d.ts +2 -1
- package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +15 -0
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +7 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +14 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts +20 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +13 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts +28 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/drag.d.ts +9 -0
- package/dist/modules/dock/surface/lib/drag.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/target.d.ts +8 -0
- package/dist/modules/dock/surface/lib/target.d.ts.map +1 -0
- package/dist/modules/dock/surface/machine.d.ts +17 -62
- package/dist/modules/dock/surface/machine.d.ts.map +1 -1
- package/dist/modules/dock/surface/model/builder.d.ts +39 -0
- package/dist/modules/dock/surface/model/builder.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/normalize.d.ts +13 -0
- package/dist/modules/dock/surface/model/normalize.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/open.d.ts +26 -0
- package/dist/modules/dock/surface/model/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/records.d.ts +45 -0
- package/dist/modules/dock/surface/model/records.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/steps.d.ts +9 -0
- package/dist/modules/dock/surface/model/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts +23 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/url.d.ts +14 -0
- package/dist/modules/dock/surface/model/url.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts +22 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/context.d.ts +29 -0
- package/dist/modules/dock/surface/runtime/context.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts +21 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/open.d.ts +6 -0
- package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/release.d.ts +9 -0
- package/dist/modules/dock/surface/runtime/release.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts +10 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/stack.d.ts +20 -11
- package/dist/modules/dock/surface/stack.d.ts.map +1 -1
- package/dist/modules/dock/surface/view-model.d.ts +5 -1
- package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
- package/dist/modules/dock/types/card.d.ts +297 -0
- package/dist/modules/dock/types/card.d.ts.map +1 -0
- package/dist/modules/dock/types/hud.d.ts +142 -0
- package/dist/modules/dock/types/hud.d.ts.map +1 -0
- package/dist/modules/dock/types/index.d.ts +8 -0
- package/dist/modules/dock/types/index.d.ts.map +1 -0
- package/dist/modules/dock/types/media.d.ts +66 -0
- package/dist/modules/dock/types/media.d.ts.map +1 -0
- package/dist/modules/dock/types/routing.d.ts +336 -0
- package/dist/modules/dock/types/routing.d.ts.map +1 -0
- package/dist/modules/dock/types/surface-flow.d.ts +231 -0
- package/dist/modules/dock/types/surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/types/surface.d.ts +194 -0
- package/dist/modules/dock/types/surface.d.ts.map +1 -0
- package/dist/modules/dock/types/theme.d.ts +201 -0
- package/dist/modules/dock/types/theme.d.ts.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +23 -18
- package/dist/modules/loading/constants.d.ts +18 -1
- package/dist/modules/loading/constants.d.ts.map +1 -1
- package/dist/modules/loading/context.d.ts +11 -1
- package/dist/modules/loading/context.d.ts.map +1 -1
- package/dist/modules/loading/hooks.d.ts +24 -1
- package/dist/modules/loading/hooks.d.ts.map +1 -1
- package/dist/modules/loading/module.d.ts +6 -0
- package/dist/modules/loading/module.d.ts.map +1 -1
- package/dist/modules/loading/overlay.d.ts +3 -0
- package/dist/modules/loading/overlay.d.ts.map +1 -1
- package/dist/modules/loading/state.d.ts +13 -0
- package/dist/modules/loading/state.d.ts.map +1 -1
- package/dist/modules/loading/types.d.ts +42 -2
- package/dist/modules/loading/types.d.ts.map +1 -1
- package/dist/modules/media/constants.d.ts +19 -0
- package/dist/modules/media/constants.d.ts.map +1 -1
- package/dist/modules/media/context.d.ts +11 -1
- package/dist/modules/media/context.d.ts.map +1 -1
- package/dist/modules/media/hooks.d.ts +17 -0
- package/dist/modules/media/hooks.d.ts.map +1 -1
- package/dist/modules/media/module.d.ts +4 -0
- package/dist/modules/media/module.d.ts.map +1 -1
- package/dist/modules/media/overlay.d.ts +7 -0
- package/dist/modules/media/overlay.d.ts.map +1 -1
- package/dist/modules/media/playback.d.ts +13 -0
- package/dist/modules/media/playback.d.ts.map +1 -1
- package/dist/modules/media/session.d.ts +20 -0
- package/dist/modules/media/session.d.ts.map +1 -1
- package/dist/modules/media/types.d.ts +49 -2
- package/dist/modules/media/types.d.ts.map +1 -1
- package/dist/modules/modal/components/close-button.d.ts +6 -0
- package/dist/modules/modal/components/close-button.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-container.d.ts +7 -0
- package/dist/modules/modal/components/modal-container.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts +9 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer.d.ts +17 -0
- package/dist/modules/modal/components/modal-layer.d.ts.map +1 -0
- package/dist/modules/modal/components/overlay.d.ts +6 -0
- package/dist/modules/modal/components/overlay.d.ts.map +1 -0
- package/dist/modules/modal/components/resolve-header.d.ts +10 -0
- package/dist/modules/modal/components/resolve-header.d.ts.map +1 -0
- package/dist/modules/modal/components/slot-row.d.ts +12 -0
- package/dist/modules/modal/components/slot-row.d.ts.map +1 -0
- package/dist/modules/modal/constants.d.ts +16 -1
- package/dist/modules/modal/constants.d.ts.map +1 -1
- package/dist/modules/modal/context.d.ts +7 -1
- package/dist/modules/modal/context.d.ts.map +1 -1
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +3 -0
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +12 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +3 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +1 -0
- package/dist/modules/modal/hooks.d.ts +30 -4
- package/dist/modules/modal/hooks.d.ts.map +1 -1
- package/dist/modules/modal/index.d.ts +7 -6
- package/dist/modules/modal/index.d.ts.map +1 -1
- package/dist/modules/modal/lib/dom.d.ts +13 -0
- package/dist/modules/modal/lib/dom.d.ts.map +1 -0
- package/dist/modules/modal/lib/theme.d.ts +4 -0
- package/dist/modules/modal/lib/theme.d.ts.map +1 -0
- package/dist/modules/modal/model/entry.d.ts +18 -0
- package/dist/modules/modal/model/entry.d.ts.map +1 -0
- package/dist/modules/modal/model/header.d.ts +16 -0
- package/dist/modules/modal/model/header.d.ts.map +1 -0
- package/dist/modules/modal/model/identity.d.ts +13 -0
- package/dist/modules/modal/model/identity.d.ts.map +1 -0
- package/dist/modules/modal/model/layout.d.ts +37 -0
- package/dist/modules/modal/model/layout.d.ts.map +1 -0
- package/dist/modules/modal/model/state.d.ts +10 -0
- package/dist/modules/modal/model/state.d.ts.map +1 -0
- package/dist/modules/modal/module.d.ts +7 -0
- package/dist/modules/modal/module.d.ts.map +1 -1
- package/dist/modules/modal/motion.d.ts.map +1 -1
- package/dist/modules/modal/types.d.ts +73 -1
- package/dist/modules/modal/types.d.ts.map +1 -1
- package/dist/modules/navigation/context.d.ts +16 -4
- package/dist/modules/navigation/context.d.ts.map +1 -1
- package/dist/modules/navigation/hooks.d.ts +28 -1
- package/dist/modules/navigation/hooks.d.ts.map +1 -1
- package/dist/modules/navigation/index.d.ts +5 -5
- package/dist/modules/navigation/index.d.ts.map +1 -1
- package/dist/modules/navigation/listeners.d.ts +10 -1
- package/dist/modules/navigation/listeners.d.ts.map +1 -1
- package/dist/modules/navigation/module.d.ts +5 -2
- package/dist/modules/navigation/module.d.ts.map +1 -1
- package/dist/modules/notification/constants.d.ts +22 -2
- package/dist/modules/notification/constants.d.ts.map +1 -1
- package/dist/modules/notification/context.d.ts +12 -2
- package/dist/modules/notification/context.d.ts.map +1 -1
- package/dist/modules/notification/hooks.d.ts +32 -1
- package/dist/modules/notification/hooks.d.ts.map +1 -1
- package/dist/modules/notification/module.d.ts +3 -0
- package/dist/modules/notification/module.d.ts.map +1 -1
- package/dist/modules/notification/motion.d.ts.map +1 -1
- package/dist/modules/notification/overlay.d.ts.map +1 -1
- package/dist/modules/notification/state.d.ts +28 -0
- package/dist/modules/notification/state.d.ts.map +1 -1
- package/dist/modules/notification/types.d.ts +48 -2
- package/dist/modules/notification/types.d.ts.map +1 -1
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.js +189 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/index.js +11 -0
- package/dist/overlay-YC336DAS.js +13 -0
- package/dist/overlay-YC336DAS.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.js +14 -0
- package/dist/react/context/index.d.ts +4 -0
- package/dist/react/context/index.d.ts.map +1 -0
- package/dist/react/hooks/index.d.ts +10 -0
- package/dist/react/hooks/index.d.ts.map +1 -0
- package/dist/react/hooks/types.d.ts +25 -0
- package/dist/react/hooks/types.d.ts.map +1 -0
- package/dist/react/hooks/use-click-outside.d.ts +6 -0
- package/dist/react/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/react/hooks/use-controllable-state.d.ts +7 -0
- package/dist/react/hooks/use-controllable-state.d.ts.map +1 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts +7 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -0
- package/dist/react/hooks/use-global-event.d.ts +9 -0
- package/dist/react/hooks/use-global-event.d.ts.map +1 -0
- package/dist/react/hooks/use-hotkey.d.ts +10 -0
- package/dist/react/hooks/use-hotkey.d.ts.map +1 -0
- package/dist/react/hooks/use-required-context.d.ts +6 -0
- package/dist/react/hooks/use-required-context.d.ts.map +1 -0
- package/dist/react/hooks/use-scroll-lock.d.ts +9 -0
- package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/react/hooks/use-store.d.ts +3 -0
- package/dist/react/hooks/use-store.d.ts.map +1 -0
- package/dist/react/theme/index.d.ts +82 -0
- package/dist/react/theme/index.d.ts.map +1 -0
- package/dist/react/ui/components/avatar.d.ts +6 -0
- package/dist/react/ui/components/avatar.d.ts.map +1 -0
- package/dist/react/ui/components/button.d.ts +6 -0
- package/dist/react/ui/components/button.d.ts.map +1 -0
- package/dist/react/ui/components/carousel.d.ts +6 -0
- package/dist/react/ui/components/carousel.d.ts.map +1 -0
- package/dist/react/ui/components/checkbox.d.ts +10 -0
- package/dist/react/ui/components/checkbox.d.ts.map +1 -0
- package/dist/react/ui/components/icon.d.ts +6 -0
- package/dist/react/ui/components/icon.d.ts.map +1 -0
- package/dist/react/ui/components/image.d.ts +6 -0
- package/dist/react/ui/components/image.d.ts.map +1 -0
- package/dist/react/ui/components/indicator.d.ts +45 -0
- package/dist/react/ui/components/indicator.d.ts.map +1 -0
- package/dist/react/ui/components/input.d.ts +10 -0
- package/dist/react/ui/components/input.d.ts.map +1 -0
- package/dist/react/ui/components/loader.d.ts +10 -0
- package/dist/react/ui/components/loader.d.ts.map +1 -0
- package/dist/react/ui/components/segmented.d.ts +6 -0
- package/dist/react/ui/components/segmented.d.ts.map +1 -0
- package/dist/react/ui/components/select-parts.d.ts +22 -0
- package/dist/react/ui/components/select-parts.d.ts.map +1 -0
- package/dist/react/ui/components/select.d.ts +6 -0
- package/dist/react/ui/components/select.d.ts.map +1 -0
- package/dist/react/ui/components/skeleton.d.ts +10 -0
- package/dist/react/ui/components/skeleton.d.ts.map +1 -0
- package/dist/react/ui/components/switch.d.ts +6 -0
- package/dist/react/ui/components/switch.d.ts.map +1 -0
- package/dist/react/ui/components/tooltip.d.ts +11 -0
- package/dist/react/ui/components/tooltip.d.ts.map +1 -0
- package/dist/react/ui/index.d.ts +19 -0
- package/dist/react/ui/index.d.ts.map +1 -0
- package/dist/react/ui/provider.d.ts +22 -0
- package/dist/react/ui/provider.d.ts.map +1 -0
- package/dist/react/ui/types-controls.d.ts +133 -0
- package/dist/react/ui/types-controls.d.ts.map +1 -0
- package/dist/react/ui/types.d.ts +192 -0
- package/dist/react/ui/types.d.ts.map +1 -0
- package/dist/react/ui/utils.d.ts +65 -0
- package/dist/react/ui/utils.d.ts.map +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/recipes/index.js +233 -0
- package/dist/recipes/index.js.map +1 -0
- package/dist/result/index.d.ts +1 -0
- package/dist/result/index.js +98 -0
- package/dist/result/index.js.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +6 -0
- package/dist/ui/index.d.ts +1 -19
- package/dist/ui/index.js +2158 -1860
- package/dist/ui/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -15
- package/dist/utils/index.js +194 -71
- package/dist/utils/index.js.map +1 -1
- package/docs/README.md +58 -61
- package/docs/architecture-and-rules.md +134 -58
- package/docs/core-engine.md +36 -52
- package/docs/custom-modules.md +43 -32
- package/docs/design.md +185 -0
- package/docs/getting-started.md +49 -57
- package/docs/modules/README.md +50 -61
- package/docs/modules/ambient.md +95 -87
- package/docs/modules/background.md +39 -36
- package/docs/modules/context-menu.md +19 -18
- package/docs/modules/controls.md +13 -13
- package/docs/modules/dock.md +74 -93
- package/docs/modules/error-boundary.md +2 -2
- package/docs/modules/kernel.md +38 -26
- package/docs/modules/loading.md +14 -14
- package/docs/modules/media.md +13 -13
- package/docs/modules/modal.md +14 -14
- package/docs/modules/navigation.md +87 -84
- package/docs/modules/notification.md +13 -13
- package/docs/modules/result.md +22 -22
- package/docs/proposals/navigation.md +32 -31
- package/docs/testing.md +34 -28
- package/docs/theming.md +67 -44
- package/package.json +100 -97
- package/templates/AGENTS.md +35 -25
- package/dist/atoms/button.d.ts +0 -11
- package/dist/atoms/button.d.ts.map +0 -1
- package/dist/atoms/icon.d.ts +0 -15
- package/dist/atoms/icon.d.ts.map +0 -1
- package/dist/atoms/index.d.ts +0 -5
- package/dist/atoms/index.d.ts.map +0 -1
- package/dist/atoms/index.js +0 -4
- package/dist/atoms/spinner.d.ts +0 -9
- package/dist/atoms/spinner.d.ts.map +0 -1
- package/dist/atoms/tooltip.d.ts +0 -18
- package/dist/atoms/tooltip.d.ts.map +0 -1
- package/dist/chunk-6UFMD6TK.js +0 -419
- package/dist/chunk-6UFMD6TK.js.map +0 -1
- package/dist/chunk-AA2TWJQI.js +0 -2186
- package/dist/chunk-AA2TWJQI.js.map +0 -1
- package/dist/chunk-ACLLDU3J.js +0 -888
- package/dist/chunk-ACLLDU3J.js.map +0 -1
- package/dist/chunk-DGCQWQLZ.js +0 -61
- package/dist/chunk-DGCQWQLZ.js.map +0 -1
- package/dist/chunk-E6ANX5YP.js +0 -1273
- package/dist/chunk-E6ANX5YP.js.map +0 -1
- package/dist/chunk-GDCVEINL.js +0 -408
- package/dist/chunk-GDCVEINL.js.map +0 -1
- package/dist/chunk-GN666KV5.js +0 -28
- package/dist/chunk-GN666KV5.js.map +0 -1
- package/dist/chunk-HCSDQEFB.js +0 -845
- package/dist/chunk-HCSDQEFB.js.map +0 -1
- package/dist/chunk-HMEWYAWU.js +0 -1889
- package/dist/chunk-HMEWYAWU.js.map +0 -1
- package/dist/chunk-I3IZUBBU.js +0 -97
- package/dist/chunk-I3IZUBBU.js.map +0 -1
- package/dist/chunk-JCZUCKI3.js +0 -27
- package/dist/chunk-JCZUCKI3.js.map +0 -1
- package/dist/chunk-MAGYFVKH.js +0 -67
- package/dist/chunk-MAGYFVKH.js.map +0 -1
- package/dist/chunk-NEBGCFE3.js +0 -521
- package/dist/chunk-NEBGCFE3.js.map +0 -1
- package/dist/chunk-NK2DQB3G.js +0 -306
- package/dist/chunk-NK2DQB3G.js.map +0 -1
- package/dist/chunk-QI3ALLIB.js +0 -38
- package/dist/chunk-QI3ALLIB.js.map +0 -1
- package/dist/chunk-QM2P6TIU.js +0 -353
- package/dist/chunk-QM2P6TIU.js.map +0 -1
- package/dist/chunk-RFP2DJAB.js +0 -658
- package/dist/chunk-RFP2DJAB.js.map +0 -1
- package/dist/chunk-SQ7XZMCN.js +0 -481
- package/dist/chunk-SQ7XZMCN.js.map +0 -1
- package/dist/chunk-TMTMQNEQ.js +0 -372
- package/dist/chunk-TMTMQNEQ.js.map +0 -1
- package/dist/chunk-VDNE3A7X.js +0 -9724
- package/dist/chunk-VDNE3A7X.js.map +0 -1
- package/dist/chunk-XATRMFGU.js +0 -139
- package/dist/chunk-XATRMFGU.js.map +0 -1
- package/dist/chunk-ZAP2YHZG.js +0 -454
- package/dist/chunk-ZAP2YHZG.js.map +0 -1
- package/dist/chunk-ZH5FUYPG.js +0 -349
- package/dist/chunk-ZH5FUYPG.js.map +0 -1
- package/dist/chunk-ZKM4RETZ.js +0 -51
- package/dist/chunk-ZKM4RETZ.js.map +0 -1
- package/dist/error/boundary.d.ts +0 -14
- package/dist/error/boundary.d.ts.map +0 -1
- package/dist/error/constants.d.ts +0 -18
- package/dist/error/constants.d.ts.map +0 -1
- package/dist/error/index.d.ts.map +0 -1
- package/dist/error/listener.d.ts +0 -2
- package/dist/error/listener.d.ts.map +0 -1
- package/dist/error/reporter.d.ts +0 -32
- package/dist/error/reporter.d.ts.map +0 -1
- package/dist/error/theme.d.ts +0 -3
- package/dist/error/theme.d.ts.map +0 -1
- package/dist/error/types.d.ts +0 -91
- package/dist/error/types.d.ts.map +0 -1
- package/dist/error/utils.d.ts +0 -21
- package/dist/error/utils.d.ts.map +0 -1
- package/dist/events.d.ts +0 -51
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -82
- package/dist/events.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/types.d.ts +0 -16
- package/dist/hooks/types.d.ts.map +0 -1
- package/dist/hooks/use-click-outside.d.ts +0 -3
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-controllable-state.d.ts +0 -3
- package/dist/hooks/use-controllable-state.d.ts.map +0 -1
- package/dist/hooks/use-fullscreen-state.d.ts +0 -4
- package/dist/hooks/use-fullscreen-state.d.ts.map +0 -1
- package/dist/hooks/use-global-event.d.ts +0 -5
- package/dist/hooks/use-global-event.d.ts.map +0 -1
- package/dist/hooks/use-hotkey.d.ts +0 -4
- package/dist/hooks/use-hotkey.d.ts.map +0 -1
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +0 -3
- package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +0 -1
- package/dist/hooks/use-required-context.d.ts +0 -3
- package/dist/hooks/use-required-context.d.ts.map +0 -1
- package/dist/hooks/use-scroll-lock.d.ts +0 -3
- package/dist/hooks/use-scroll-lock.d.ts.map +0 -1
- package/dist/hooks/use-store.d.ts +0 -3
- package/dist/hooks/use-store.d.ts.map +0 -1
- package/dist/kernel/adapters.d.ts +0 -5
- package/dist/kernel/adapters.d.ts.map +0 -1
- package/dist/kernel/compose.d.ts +0 -15
- package/dist/kernel/compose.d.ts.map +0 -1
- package/dist/kernel/constants.d.ts +0 -12
- package/dist/kernel/constants.d.ts.map +0 -1
- package/dist/kernel/context-registry.d.ts +0 -3
- package/dist/kernel/context-registry.d.ts.map +0 -1
- package/dist/kernel/handlers.d.ts +0 -3
- package/dist/kernel/handlers.d.ts.map +0 -1
- package/dist/kernel/hooks.d.ts +0 -7
- package/dist/kernel/hooks.d.ts.map +0 -1
- package/dist/kernel/index.d.ts.map +0 -1
- package/dist/kernel/installed.d.ts +0 -21
- package/dist/kernel/installed.d.ts.map +0 -1
- package/dist/kernel/module.d.ts +0 -32
- package/dist/kernel/module.d.ts.map +0 -1
- package/dist/kernel/operations.d.ts +0 -21
- package/dist/kernel/operations.d.ts.map +0 -1
- package/dist/kernel/page-controller.d.ts +0 -8
- package/dist/kernel/page-controller.d.ts.map +0 -1
- package/dist/kernel/provider.d.ts +0 -18
- package/dist/kernel/provider.d.ts.map +0 -1
- package/dist/kernel/runtime.d.ts.map +0 -1
- package/dist/kernel/schema.d.ts +0 -11
- package/dist/kernel/schema.d.ts.map +0 -1
- package/dist/kernel/store.d.ts +0 -4
- package/dist/kernel/store.d.ts.map +0 -1
- package/dist/kernel/types.d.ts +0 -233
- package/dist/kernel/types.d.ts.map +0 -1
- package/dist/kernel/utils.d.ts +0 -18
- package/dist/kernel/utils.d.ts.map +0 -1
- package/dist/modules/ambient/index.js +0 -10
- package/dist/modules/ambient/server/index.js +0 -225
- package/dist/modules/ambient/server/index.js.map +0 -1
- package/dist/modules/ambient/worker/index.js +0 -122
- package/dist/modules/ambient/worker/index.js.map +0 -1
- package/dist/modules/background/index.js +0 -9
- package/dist/modules/background/overlay.d.ts +0 -135
- package/dist/modules/background/overlay.d.ts.map +0 -1
- package/dist/modules/background/playback.d.ts +0 -10
- package/dist/modules/background/playback.d.ts.map +0 -1
- package/dist/modules/background/state.d.ts +0 -9
- package/dist/modules/background/state.d.ts.map +0 -1
- package/dist/modules/background/visual.d.ts +0 -48
- package/dist/modules/background/visual.d.ts.map +0 -1
- package/dist/modules/background/youtube/iframe.d.ts +0 -52
- package/dist/modules/background/youtube/iframe.d.ts.map +0 -1
- package/dist/modules/background/youtube/parse.d.ts +0 -17
- package/dist/modules/background/youtube/parse.d.ts.map +0 -1
- package/dist/modules/background/youtube/player.d.ts +0 -28
- package/dist/modules/background/youtube/player.d.ts.map +0 -1
- package/dist/modules/context-menu/index.js +0 -14
- package/dist/modules/controls/index.js +0 -7
- package/dist/modules/dock/cards.d.ts +0 -1722
- package/dist/modules/dock/cards.d.ts.map +0 -1
- package/dist/modules/dock/dom.d.ts +0 -24
- package/dist/modules/dock/dom.d.ts.map +0 -1
- package/dist/modules/dock/helpers.d.ts +0 -25
- package/dist/modules/dock/helpers.d.ts.map +0 -1
- package/dist/modules/dock/hooks.d.ts +0 -42
- package/dist/modules/dock/hooks.d.ts.map +0 -1
- package/dist/modules/dock/index.js +0 -13
- package/dist/modules/dock/layout.d.ts +0 -26
- package/dist/modules/dock/layout.d.ts.map +0 -1
- package/dist/modules/dock/overlay.d.ts +0 -79
- package/dist/modules/dock/overlay.d.ts.map +0 -1
- package/dist/modules/dock/paths.d.ts +0 -10
- package/dist/modules/dock/paths.d.ts.map +0 -1
- package/dist/modules/dock/state.d.ts +0 -22
- package/dist/modules/dock/state.d.ts.map +0 -1
- package/dist/modules/dock/styles.d.ts +0 -900
- package/dist/modules/dock/styles.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks.d.ts +0 -110
- package/dist/modules/dock/surface/hooks.d.ts.map +0 -1
- package/dist/modules/dock/types.d.ts +0 -1274
- package/dist/modules/dock/types.d.ts.map +0 -1
- package/dist/modules/loading/index.js +0 -8
- package/dist/modules/media/index.js +0 -6
- package/dist/modules/modal/dom.d.ts +0 -4
- package/dist/modules/modal/dom.d.ts.map +0 -1
- package/dist/modules/modal/header.d.ts +0 -7
- package/dist/modules/modal/header.d.ts.map +0 -1
- package/dist/modules/modal/identity.d.ts +0 -7
- package/dist/modules/modal/identity.d.ts.map +0 -1
- package/dist/modules/modal/index.js +0 -11
- package/dist/modules/modal/layout.d.ts +0 -13
- package/dist/modules/modal/layout.d.ts.map +0 -1
- package/dist/modules/modal/overlay.d.ts +0 -4
- package/dist/modules/modal/overlay.d.ts.map +0 -1
- package/dist/modules/modal/state.d.ts +0 -4
- package/dist/modules/modal/state.d.ts.map +0 -1
- package/dist/modules/navigation/constants.d.ts +0 -33
- package/dist/modules/navigation/constants.d.ts.map +0 -1
- package/dist/modules/navigation/index.js +0 -80
- package/dist/modules/navigation/index.js.map +0 -1
- package/dist/modules/navigation/navigator.d.ts +0 -3
- package/dist/modules/navigation/navigator.d.ts.map +0 -1
- package/dist/modules/navigation/settings.d.ts +0 -5
- package/dist/modules/navigation/settings.d.ts.map +0 -1
- package/dist/modules/navigation/state.d.ts +0 -19
- package/dist/modules/navigation/state.d.ts.map +0 -1
- package/dist/modules/navigation/types.d.ts +0 -118
- package/dist/modules/navigation/types.d.ts.map +0 -1
- package/dist/modules/navigation/utils.d.ts +0 -8
- package/dist/modules/navigation/utils.d.ts.map +0 -1
- package/dist/modules/notification/index.js +0 -7
- package/dist/overlay-LTRZUZQD.js +0 -9
- package/dist/overlay-LTRZUZQD.js.map +0 -1
- package/dist/provider.d.ts +0 -23
- package/dist/provider.d.ts.map +0 -1
- package/dist/provider.js +0 -9
- package/dist/provider.js.map +0 -1
- package/dist/result.d.ts +0 -50
- package/dist/result.d.ts.map +0 -1
- package/dist/result.js +0 -102
- package/dist/result.js.map +0 -1
- package/dist/theme.d.ts +0 -46
- package/dist/theme.d.ts.map +0 -1
- package/dist/theme.js +0 -6
- package/dist/theme.js.map +0 -1
- package/dist/tokens/index.d.ts +0 -4
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/index.js +0 -297
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/motion-config.d.ts +0 -35
- package/dist/tokens/motion-config.d.ts.map +0 -1
- package/dist/tokens/motion.d.ts +0 -164
- package/dist/tokens/motion.d.ts.map +0 -1
- package/dist/tokens/tokens.d.ts +0 -34
- package/dist/tokens/tokens.d.ts.map +0 -1
- package/dist/ui/carousel/carousel.d.ts +0 -24
- package/dist/ui/carousel/carousel.d.ts.map +0 -1
- package/dist/ui/carousel/track.d.ts +0 -11
- package/dist/ui/carousel/track.d.ts.map +0 -1
- package/dist/ui/carousel/use-drag-scroll.d.ts +0 -3
- package/dist/ui/carousel/use-drag-scroll.d.ts.map +0 -1
- package/dist/ui/cn.d.ts +0 -19
- package/dist/ui/cn.d.ts.map +0 -1
- package/dist/ui/components/avatar.d.ts +0 -14
- package/dist/ui/components/avatar.d.ts.map +0 -1
- package/dist/ui/components/button.d.ts +0 -9
- package/dist/ui/components/button.d.ts.map +0 -1
- package/dist/ui/components/checkbox.d.ts +0 -18
- package/dist/ui/components/checkbox.d.ts.map +0 -1
- package/dist/ui/components/icon.d.ts +0 -4
- package/dist/ui/components/icon.d.ts.map +0 -1
- package/dist/ui/components/image.d.ts +0 -13
- package/dist/ui/components/image.d.ts.map +0 -1
- package/dist/ui/components/indicator.d.ts +0 -37
- package/dist/ui/components/indicator.d.ts.map +0 -1
- package/dist/ui/components/input.d.ts +0 -15
- package/dist/ui/components/input.d.ts.map +0 -1
- package/dist/ui/components/loader.d.ts +0 -17
- package/dist/ui/components/loader.d.ts.map +0 -1
- package/dist/ui/components/segmented.d.ts +0 -21
- package/dist/ui/components/segmented.d.ts.map +0 -1
- package/dist/ui/components/select.d.ts +0 -34
- package/dist/ui/components/select.d.ts.map +0 -1
- package/dist/ui/components/skeleton.d.ts +0 -16
- package/dist/ui/components/skeleton.d.ts.map +0 -1
- package/dist/ui/components/switch.d.ts +0 -11
- package/dist/ui/components/switch.d.ts.map +0 -1
- package/dist/ui/components/tooltip.d.ts +0 -25
- package/dist/ui/components/tooltip.d.ts.map +0 -1
- package/dist/ui/defaults.d.ts +0 -250
- package/dist/ui/defaults.d.ts.map +0 -1
- package/dist/ui/define.d.ts +0 -112
- package/dist/ui/define.d.ts.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/provider.d.ts +0 -11
- package/dist/ui/provider.d.ts.map +0 -1
- package/dist/ui/recipe.d.ts +0 -70
- package/dist/ui/recipe.d.ts.map +0 -1
- package/dist/ui/recipes.d.ts +0 -9
- package/dist/ui/recipes.d.ts.map +0 -1
- package/dist/ui/recipes.js +0 -648
- package/dist/ui/recipes.js.map +0 -1
- package/dist/ui/split.d.ts +0 -4
- package/dist/ui/split.d.ts.map +0 -1
- package/dist/ui/tones.d.ts +0 -23
- package/dist/ui/tones.d.ts.map +0 -1
- package/dist/utils/cn.d.ts +0 -3
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/dom.d.ts +0 -5
- package/dist/utils/dom.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/number.d.ts +0 -3
- package/dist/utils/number.d.ts.map +0 -1
- package/dist/utils/object.d.ts +0 -5
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/report.d.ts +0 -5
- package/dist/utils/report.d.ts.map +0 -1
- package/dist/utils/scheduler.d.ts +0 -34
- package/dist/utils/scheduler.d.ts.map +0 -1
- package/dist/utils/store.d.ts +0 -11
- package/dist/utils/store.d.ts.map +0 -1
- package/dist/utils/string.d.ts +0 -5
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/timing.d.ts +0 -7
- package/dist/utils/timing.d.ts.map +0 -1
- package/dist/utils/user-message.d.ts +0 -20
- package/dist/utils/user-message.d.ts.map +0 -1
- package/docs/ui.md +0 -183
- package/styles/effects.css +0 -219
- package/styles/index.css +0 -8
- package/styles/interaction.css +0 -273
- package/styles/palette.css +0 -81
- package/styles/time.css +0 -26
- package/styles/tokens.css +0 -114
- package/styles/utilities.css +0 -110
- package/templates/motion/background.ts +0 -15
- package/templates/motion/context-menu.ts +0 -65
- package/templates/motion/dock.ts +0 -421
- package/templates/motion/modal.ts +0 -82
- package/templates/motion/notification.ts +0 -26
- package/templates/motion/tokens.ts +0 -36
- /package/dist/{atoms → ambient}/index.js.map +0 -0
- /package/dist/{modules/ambient → background}/index.js.map +0 -0
- /package/dist/{modules/background → context-menu}/index.js.map +0 -0
- /package/dist/{modules/context-menu → controls}/index.js.map +0 -0
- /package/dist/{kernel → core/kernel}/runtime.d.ts +0 -0
- /package/dist/{modules/controls → dock}/index.js.map +0 -0
- /package/dist/{modules/dock → loading}/index.js.map +0 -0
- /package/dist/{modules/loading → media}/index.js.map +0 -0
- /package/dist/{modules/media → notification}/index.js.map +0 -0
- /package/dist/{modules/modal → provider}/index.js.map +0 -0
- /package/dist/{modules/notification → theme}/index.js.map +0 -0
package/dist/chunk-XATRMFGU.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { createNavigationState, createNavigator, readWindowLocation, NAVIGATION_SOURCE, NAVIGATION_PHASE, isSameLocation, NAVIGATION_REASON, isSamePathname, internalLinkOf, NAVIGATION_PREFETCH_ATTRIBUTE, getNavigationSettings } from './chunk-SQ7XZMCN.js';
|
|
2
|
-
import { getOrCreateGlobalContext, defineModule } from './chunk-HMEWYAWU.js';
|
|
3
|
-
import { createStore, useIsomorphicLayoutEffect } from './chunk-HCSDQEFB.js';
|
|
4
|
-
import { useState, useEffect, useMemo } from 'react';
|
|
5
|
-
import { useRouter, usePathname } from 'next/navigation';
|
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
// src/modules/navigation/listeners.ts
|
|
9
|
-
function watchIntent(navigator, settings, doc = document) {
|
|
10
|
-
let resting = null;
|
|
11
|
-
const stop = () => {
|
|
12
|
-
if (resting) clearTimeout(resting.timer);
|
|
13
|
-
resting = null;
|
|
14
|
-
};
|
|
15
|
-
const wanted = (target) => {
|
|
16
|
-
const { intent } = settings();
|
|
17
|
-
if (!intent) return null;
|
|
18
|
-
const link = internalLinkOf(target);
|
|
19
|
-
if (!link || link.getAttribute(NAVIGATION_PREFETCH_ATTRIBUTE) === "false")
|
|
20
|
-
return null;
|
|
21
|
-
const href = link.getAttribute("href");
|
|
22
|
-
return intent.match(href) ? href : null;
|
|
23
|
-
};
|
|
24
|
-
const onOver = (event) => {
|
|
25
|
-
const { pointerType } = event;
|
|
26
|
-
if (pointerType && pointerType !== "mouse") return;
|
|
27
|
-
const href = wanted(event.target);
|
|
28
|
-
if (!href) return stop();
|
|
29
|
-
if (resting?.href === href) return;
|
|
30
|
-
stop();
|
|
31
|
-
const { intent } = settings();
|
|
32
|
-
const delay = intent ? Math.max(0, intent.delayMs) : 0;
|
|
33
|
-
resting = {
|
|
34
|
-
href,
|
|
35
|
-
timer: setTimeout(() => {
|
|
36
|
-
resting = null;
|
|
37
|
-
navigator.prefetch(href);
|
|
38
|
-
}, delay)
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const onNow = (event) => {
|
|
42
|
-
const href = wanted(event.target);
|
|
43
|
-
if (href) navigator.prefetch(href);
|
|
44
|
-
};
|
|
45
|
-
doc.addEventListener("pointerover", onOver, { passive: true });
|
|
46
|
-
doc.addEventListener("pointerdown", onNow, { passive: true });
|
|
47
|
-
doc.addEventListener("focusin", onNow, { passive: true });
|
|
48
|
-
return () => {
|
|
49
|
-
stop();
|
|
50
|
-
doc.removeEventListener("pointerover", onOver);
|
|
51
|
-
doc.removeEventListener("pointerdown", onNow);
|
|
52
|
-
doc.removeEventListener("focusin", onNow);
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function watchHistory(navigator, win = window) {
|
|
56
|
-
let replaying = false;
|
|
57
|
-
const onPopState = (event) => {
|
|
58
|
-
if (replaying) return;
|
|
59
|
-
const to = readWindowLocation();
|
|
60
|
-
if (!to) return;
|
|
61
|
-
const { active, location } = navigator.store.getSnapshot();
|
|
62
|
-
if (active?.source === NAVIGATION_SOURCE.HISTORY && active.phase === NAVIGATION_PHASE.LEAVING) {
|
|
63
|
-
if (isSameLocation(to, active.from)) {
|
|
64
|
-
navigator.cancel(NAVIGATION_REASON.RETURNED);
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
} else if (isSamePathname(to, location)) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
if (!navigator.holdsHistory()) {
|
|
71
|
-
navigator.depart(to);
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
event.stopImmediatePropagation();
|
|
75
|
-
const { state } = event;
|
|
76
|
-
navigator.depart(to, {
|
|
77
|
-
replay: () => {
|
|
78
|
-
replaying = true;
|
|
79
|
-
try {
|
|
80
|
-
win.dispatchEvent(new PopStateEvent("popstate", { state }));
|
|
81
|
-
} finally {
|
|
82
|
-
replaying = false;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
win.addEventListener("popstate", onPopState, { capture: true });
|
|
88
|
-
return () => win.removeEventListener("popstate", onPopState, { capture: true });
|
|
89
|
-
}
|
|
90
|
-
var NavigationContext = getOrCreateGlobalContext("NavigationContext", null);
|
|
91
|
-
var noop = () => {
|
|
92
|
-
};
|
|
93
|
-
var NOT_HANDLED = Object.freeze({ ok: false, trip: null });
|
|
94
|
-
var INERT_NAVIGATION_ACTIONS = Object.freeze({
|
|
95
|
-
arrival: () => null,
|
|
96
|
-
arrive: noop,
|
|
97
|
-
cancel: () => false,
|
|
98
|
-
depart: () => null,
|
|
99
|
-
hold: () => noop,
|
|
100
|
-
holdsHistory: () => false,
|
|
101
|
-
navigate: async () => NOT_HANDLED,
|
|
102
|
-
onIntent: () => noop,
|
|
103
|
-
prefetch: () => false,
|
|
104
|
-
provide: () => noop,
|
|
105
|
-
setRouter: noop
|
|
106
|
-
});
|
|
107
|
-
var NOOP_NAVIGATION_STORE = createStore(
|
|
108
|
-
createNavigationState()
|
|
109
|
-
);
|
|
110
|
-
function NavigationProvider({ children }) {
|
|
111
|
-
const router = useRouter();
|
|
112
|
-
const pathname = usePathname();
|
|
113
|
-
const [navigator] = useState(() => createNavigator({ router }));
|
|
114
|
-
useIsomorphicLayoutEffect(() => {
|
|
115
|
-
navigator.setRouter(router);
|
|
116
|
-
}, [navigator, router]);
|
|
117
|
-
useEffect(() => {
|
|
118
|
-
navigator.arrive(readWindowLocation() ?? pathname);
|
|
119
|
-
}, [navigator, pathname]);
|
|
120
|
-
useEffect(() => watchHistory(navigator), [navigator]);
|
|
121
|
-
useEffect(() => watchIntent(navigator, getNavigationSettings), [navigator]);
|
|
122
|
-
useEffect(() => () => navigator.dispose(), [navigator]);
|
|
123
|
-
const runtime = useMemo(
|
|
124
|
-
() => ({ actions: navigator, store: navigator.store }),
|
|
125
|
-
[navigator]
|
|
126
|
-
);
|
|
127
|
-
return /* @__PURE__ */ jsx(NavigationContext, { value: runtime, children });
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// src/modules/navigation/module.tsx
|
|
131
|
-
var navigationModule = defineModule({
|
|
132
|
-
id: "navigation",
|
|
133
|
-
context: NavigationContext,
|
|
134
|
-
Provider: NavigationProvider
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
export { INERT_NAVIGATION_ACTIONS, NOOP_NAVIGATION_STORE, NavigationContext, NavigationProvider, navigationModule, watchHistory, watchIntent };
|
|
138
|
-
//# sourceMappingURL=chunk-XATRMFGU.js.map
|
|
139
|
-
//# sourceMappingURL=chunk-XATRMFGU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/modules/navigation/listeners.ts","../src/modules/navigation/context.tsx","../src/modules/navigation/module.tsx"],"names":[],"mappings":"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","file":"chunk-XATRMFGU.js","sourcesContent":["import {\n NAVIGATION_PHASE,\n NAVIGATION_PREFETCH_ATTRIBUTE,\n NAVIGATION_REASON,\n NAVIGATION_SOURCE,\n} from \"./constants\";\nimport type { NavigationSettings, Navigator } from \"./types\";\nimport {\n internalLinkOf,\n isSameLocation,\n isSamePathname,\n readWindowLocation,\n} from \"./utils\";\n\nexport function watchIntent(\n navigator: Pick<Navigator, \"prefetch\">,\n settings: () => NavigationSettings,\n doc: Document = document,\n): () => void {\n let resting: { href: string; timer: ReturnType<typeof setTimeout> } | null =\n null;\n\n const stop = () => {\n if (resting) clearTimeout(resting.timer);\n resting = null;\n };\n\n const wanted = (target: EventTarget | null): string | null => {\n const { intent } = settings();\n if (!intent) return null;\n const link = internalLinkOf(target);\n if (!link || link.getAttribute(NAVIGATION_PREFETCH_ATTRIBUTE) === \"false\")\n return null;\n const href = link.getAttribute(\"href\")!;\n return intent.match(href) ? href : null;\n };\n\n const onOver = (event: Event) => {\n const { pointerType } = event as PointerEvent;\n if (pointerType && pointerType !== \"mouse\") return;\n const href = wanted(event.target);\n if (!href) return stop();\n if (resting?.href === href) return;\n stop();\n const { intent } = settings();\n const delay = intent ? Math.max(0, intent.delayMs) : 0;\n resting = {\n href,\n timer: setTimeout(() => {\n resting = null;\n navigator.prefetch(href);\n }, delay),\n };\n };\n\n const onNow = (event: Event) => {\n const href = wanted(event.target);\n if (href) navigator.prefetch(href);\n };\n\n doc.addEventListener(\"pointerover\", onOver, { passive: true });\n doc.addEventListener(\"pointerdown\", onNow, { passive: true });\n doc.addEventListener(\"focusin\", onNow, { passive: true });\n return () => {\n stop();\n doc.removeEventListener(\"pointerover\", onOver);\n doc.removeEventListener(\"pointerdown\", onNow);\n doc.removeEventListener(\"focusin\", onNow);\n };\n}\n\nexport function watchHistory(\n navigator: Pick<Navigator, \"cancel\" | \"depart\" | \"holdsHistory\" | \"store\">,\n win: Window = window,\n): () => void {\n let replaying = false;\n\n const onPopState = (event: PopStateEvent) => {\n if (replaying) return;\n const to = readWindowLocation();\n if (!to) return;\n const { active, location } = navigator.store.getSnapshot();\n\n if (\n active?.source === NAVIGATION_SOURCE.HISTORY &&\n active.phase === NAVIGATION_PHASE.LEAVING\n ) {\n if (isSameLocation(to, active.from)) {\n navigator.cancel(NAVIGATION_REASON.RETURNED);\n return;\n }\n } else if (isSamePathname(to, location)) {\n return;\n }\n\n if (!navigator.holdsHistory()) {\n navigator.depart(to);\n return;\n }\n\n event.stopImmediatePropagation();\n const { state } = event;\n navigator.depart(to, {\n replay: () => {\n replaying = true;\n try {\n win.dispatchEvent(new PopStateEvent(\"popstate\", { state }));\n } finally {\n replaying = false;\n }\n },\n });\n };\n\n win.addEventListener(\"popstate\", onPopState, { capture: true });\n return () =>\n win.removeEventListener(\"popstate\", onPopState, { capture: true });\n}\n","\"use client\";\n\nimport { useEffect, useMemo, useState, type ReactNode } from \"react\";\nimport { usePathname, useRouter } from \"next/navigation\";\nimport { useIsomorphicLayoutEffect } from \"@/hooks\";\nimport { getOrCreateGlobalContext } from \"@/kernel\";\nimport { createStore } from \"@/utils\";\nimport { watchHistory, watchIntent } from \"./listeners\";\nimport { createNavigator } from \"./navigator\";\nimport { getNavigationSettings } from \"./settings\";\nimport { createNavigationState } from \"./state\";\nimport type {\n NavigationActions,\n NavigationResult,\n NavigationRouter,\n NavigationRuntime,\n NavigationState,\n} from \"./types\";\nimport { readWindowLocation } from \"./utils\";\n\nexport const NavigationContext =\n getOrCreateGlobalContext<NavigationRuntime | null>(\"NavigationContext\", null);\n\nconst noop = () => {};\nconst NOT_HANDLED: NavigationResult = Object.freeze({ ok: false, trip: null });\n\nexport const INERT_NAVIGATION_ACTIONS: NavigationActions = Object.freeze({\n arrival: () => null,\n arrive: noop,\n cancel: () => false,\n depart: () => null,\n hold: () => noop,\n holdsHistory: () => false,\n navigate: async () => NOT_HANDLED,\n onIntent: () => noop,\n prefetch: () => false,\n provide: () => noop,\n setRouter: noop,\n});\n\nexport const NOOP_NAVIGATION_STORE = createStore<NavigationState>(\n createNavigationState(),\n);\n\nexport function NavigationProvider({ children }: { children?: ReactNode }) {\n const router: NavigationRouter = useRouter();\n const pathname = usePathname();\n const [navigator] = useState(() => createNavigator({ router }));\n\n useIsomorphicLayoutEffect(() => {\n navigator.setRouter(router);\n }, [navigator, router]);\n\n useEffect(() => {\n navigator.arrive(readWindowLocation() ?? pathname);\n }, [navigator, pathname]);\n\n useEffect(() => watchHistory(navigator), [navigator]);\n useEffect(() => watchIntent(navigator, getNavigationSettings), [navigator]);\n useEffect(() => () => navigator.dispose(), [navigator]);\n\n const runtime = useMemo<NavigationRuntime>(\n () => ({ actions: navigator, store: navigator.store }),\n [navigator],\n );\n\n return <NavigationContext value={runtime}>{children}</NavigationContext>;\n}\n","\"use client\";\n\nimport { defineModule } from \"@/kernel\";\nimport { NavigationContext, NavigationProvider } from \"./context\";\nimport type { NavigationTrip } from \"./types\";\n\nexport const navigationModule = defineModule({\n id: \"navigation\",\n context: NavigationContext,\n Provider: NavigationProvider,\n});\n\ninterface NavigationEventPayload {\n from: string;\n source: string;\n timestamp: number;\n to: string;\n trip: NavigationTrip;\n type: string;\n [key: string]: unknown;\n}\n\ndeclare module \"@omerdlw/base-framework/events\" {\n interface FrameworkEventMap {\n NAVIGATION_START: NavigationEventPayload;\n NAVIGATION_COMMIT: NavigationEventPayload;\n NAVIGATION_END: NavigationEventPayload;\n }\n}\n\ndeclare module \"@omerdlw/base-framework/kernel\" {\n interface CoreModules {\n navigation: typeof navigationModule;\n }\n}\n"]}
|
package/dist/chunk-ZAP2YHZG.js
DELETED
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
import { defineThemeSpec, useTheme } from './chunk-TMTMQNEQ.js';
|
|
2
|
-
import { report, globalEvents, EVENT_TYPES, toUserMessage, setReportSink } from './chunk-HCSDQEFB.js';
|
|
3
|
-
import { Icon, Button } from './chunk-I3IZUBBU.js';
|
|
4
|
-
import React, { useRef, useCallback, useEffect } from 'react';
|
|
5
|
-
import { usePathname } from 'next/navigation';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
// src/error/constants.ts
|
|
9
|
-
var ERROR_MESSAGES = Object.freeze({
|
|
10
|
-
GLOBAL_TITLE: "Something went wrong",
|
|
11
|
-
GLOBAL_MSG: "We ran into an unexpected problem. Please try again",
|
|
12
|
-
MODULE_TITLE: "Something went wrong",
|
|
13
|
-
MODULE_MSG: "This part of the app isn't working right now. Please try again",
|
|
14
|
-
COMPONENT_MSG: "This section couldn't be loaded. Please try again",
|
|
15
|
-
FALLBACK_TITLE: "Something went wrong",
|
|
16
|
-
FALLBACK_MSG: "This section couldn't be loaded. Please try again"
|
|
17
|
-
});
|
|
18
|
-
var MAX_CONTEXT = 10;
|
|
19
|
-
var MAX_FINGERPRINTS = 100;
|
|
20
|
-
var DEFAULT_DEDUPE_WINDOW = 6e4;
|
|
21
|
-
var ERROR_LISTENER_CONFIG = Object.freeze({
|
|
22
|
-
maxErrors: 10,
|
|
23
|
-
throttle: 2e3,
|
|
24
|
-
ignored: Object.freeze([
|
|
25
|
-
/ResizeObserver loop/i,
|
|
26
|
-
/Network request failed/i,
|
|
27
|
-
/Loading chunk/i,
|
|
28
|
-
/Unexpected end of input/i,
|
|
29
|
-
/Failed to fetch/i,
|
|
30
|
-
/Script error/i,
|
|
31
|
-
/HTTP\s*404/i
|
|
32
|
-
])
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
// src/error/utils.ts
|
|
36
|
-
var IS_BROWSER = typeof window !== "undefined";
|
|
37
|
-
var HAS_NAVIGATOR = typeof navigator !== "undefined";
|
|
38
|
-
var getRuntimePath = () => typeof window !== "undefined" ? window.location.pathname : null;
|
|
39
|
-
var getUserAgent = () => typeof navigator !== "undefined" ? navigator.userAgent : null;
|
|
40
|
-
function createErrorContext({
|
|
41
|
-
errorInfo,
|
|
42
|
-
name,
|
|
43
|
-
title,
|
|
44
|
-
variant
|
|
45
|
-
}) {
|
|
46
|
-
return {
|
|
47
|
-
componentStack: errorInfo?.componentStack || null,
|
|
48
|
-
route: getRuntimePath(),
|
|
49
|
-
userAgent: getUserAgent(),
|
|
50
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
51
|
-
name: name || title || "ErrorBoundary",
|
|
52
|
-
variant: variant || "default",
|
|
53
|
-
source: "ErrorBoundary"
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function normalizeSampleRate(value) {
|
|
57
|
-
const sampleRate = Number(value);
|
|
58
|
-
return Number.isFinite(sampleRate) ? Math.min(1, Math.max(0, sampleRate)) : 1;
|
|
59
|
-
}
|
|
60
|
-
function normalizeDedupeWindow(value) {
|
|
61
|
-
const dedupeWindow = Number(value);
|
|
62
|
-
return Number.isFinite(dedupeWindow) ? Math.max(0, dedupeWindow) : DEFAULT_DEDUPE_WINDOW;
|
|
63
|
-
}
|
|
64
|
-
function getBrowserEnvironment(route) {
|
|
65
|
-
return {
|
|
66
|
-
route: route || (IS_BROWSER ? window.location.pathname : null),
|
|
67
|
-
userAgent: HAS_NAVIGATOR ? navigator.userAgent : null,
|
|
68
|
-
platform: HAS_NAVIGATOR ? navigator.platform : null,
|
|
69
|
-
language: HAS_NAVIGATOR ? navigator.language : null,
|
|
70
|
-
online: HAS_NAVIGATOR ? navigator.onLine : true,
|
|
71
|
-
url: IS_BROWSER ? window.location.href : null
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function fingerprint(error, context = {}) {
|
|
75
|
-
const stackTop = typeof context.componentStack === "string" ? context.componentStack.split("\n").find(Boolean) || "" : "";
|
|
76
|
-
const errObj = error;
|
|
77
|
-
const errorMessage = (errObj?.message || String(error || "")).slice(0, 100);
|
|
78
|
-
const errorName = errObj?.name || "UnknownError";
|
|
79
|
-
const route = context.route || "";
|
|
80
|
-
return [stackTop, errorMessage, errorName, route].filter(Boolean).join("::");
|
|
81
|
-
}
|
|
82
|
-
function createReport(error, {
|
|
83
|
-
context = {},
|
|
84
|
-
tags = {}
|
|
85
|
-
} = {}) {
|
|
86
|
-
const errObj = error;
|
|
87
|
-
return {
|
|
88
|
-
error: {
|
|
89
|
-
message: errObj?.message || String(error),
|
|
90
|
-
stack: errObj?.stack || null,
|
|
91
|
-
name: errObj?.name || "UnknownError"
|
|
92
|
-
},
|
|
93
|
-
fingerprint: fingerprint(error, context),
|
|
94
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
95
|
-
environment: getBrowserEnvironment(context.route),
|
|
96
|
-
componentStack: context.componentStack || null,
|
|
97
|
-
context,
|
|
98
|
-
tags
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
function getErrorMessage(error) {
|
|
102
|
-
if (!error) return "";
|
|
103
|
-
if (typeof error === "string") return error.trim();
|
|
104
|
-
if (error instanceof Error) return error.message.trim();
|
|
105
|
-
const errObj = error;
|
|
106
|
-
return String(errObj?.message || errObj?.toString?.() || error).trim();
|
|
107
|
-
}
|
|
108
|
-
function shouldIgnoreError(error) {
|
|
109
|
-
if (!error) return true;
|
|
110
|
-
const errWithNotFound = error;
|
|
111
|
-
if (typeof errWithNotFound?.isNotFound === "function" && errWithNotFound.isNotFound()) {
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
const message = getErrorMessage(error);
|
|
115
|
-
return ERROR_LISTENER_CONFIG.ignored.some((pattern) => pattern.test(message));
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// src/error/reporter.ts
|
|
119
|
-
var IS_PRODUCTION = process.env.NODE_ENV === "production";
|
|
120
|
-
var IS_BROWSER2 = typeof window !== "undefined";
|
|
121
|
-
var ErrorReporter = class {
|
|
122
|
-
handlers = [];
|
|
123
|
-
context = {};
|
|
124
|
-
tags = {};
|
|
125
|
-
seen = /* @__PURE__ */ new Set();
|
|
126
|
-
enabled;
|
|
127
|
-
sampleRate;
|
|
128
|
-
beforeSend;
|
|
129
|
-
dedupeWindow;
|
|
130
|
-
constructor(options = {}) {
|
|
131
|
-
this.enabled = options.enabled ?? true;
|
|
132
|
-
this.sampleRate = normalizeSampleRate(options.sampleRate ?? 1);
|
|
133
|
-
this.beforeSend = options.beforeSend || null;
|
|
134
|
-
this.dedupeWindow = normalizeDedupeWindow(
|
|
135
|
-
options.deduplicateWindow ?? DEFAULT_DEDUPE_WINDOW
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
addHandler(handler) {
|
|
139
|
-
if (typeof handler?.handle === "function") {
|
|
140
|
-
this.handlers.push(handler);
|
|
141
|
-
}
|
|
142
|
-
return this;
|
|
143
|
-
}
|
|
144
|
-
removeHandler(name) {
|
|
145
|
-
this.handlers = this.handlers.filter((handler) => handler.name !== name);
|
|
146
|
-
return this;
|
|
147
|
-
}
|
|
148
|
-
setContext(key, value) {
|
|
149
|
-
if (Object.hasOwn(this.context, key) || Object.keys(this.context).length < MAX_CONTEXT) {
|
|
150
|
-
this.context[key] = value;
|
|
151
|
-
}
|
|
152
|
-
return this;
|
|
153
|
-
}
|
|
154
|
-
setTag(key, value) {
|
|
155
|
-
this.tags[key] = String(value);
|
|
156
|
-
return this;
|
|
157
|
-
}
|
|
158
|
-
captureError(error, extraContext = {}) {
|
|
159
|
-
if (!this.enabled || Math.random() > this.sampleRate) return;
|
|
160
|
-
this.ensureDefaultHandlers();
|
|
161
|
-
const context = { ...this.context, ...extraContext };
|
|
162
|
-
let report2 = createReport(error, { context, tags: { ...this.tags } });
|
|
163
|
-
const dedupeKey = report2.fingerprint;
|
|
164
|
-
if (this.seen.has(dedupeKey)) return;
|
|
165
|
-
if (this.seen.size >= MAX_FINGERPRINTS) {
|
|
166
|
-
const first = this.seen.keys().next().value;
|
|
167
|
-
if (first) this.seen.delete(first);
|
|
168
|
-
}
|
|
169
|
-
this.seen.add(dedupeKey);
|
|
170
|
-
setTimeout(() => this.seen.delete(dedupeKey), this.dedupeWindow);
|
|
171
|
-
if (typeof this.beforeSend === "function") {
|
|
172
|
-
try {
|
|
173
|
-
const transformed = this.beforeSend(report2);
|
|
174
|
-
if (!transformed) return;
|
|
175
|
-
report2 = transformed;
|
|
176
|
-
} catch {
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
this.handlers.forEach((handler) => {
|
|
180
|
-
try {
|
|
181
|
-
handler.handle(report2);
|
|
182
|
-
} catch {
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
return report2;
|
|
186
|
-
}
|
|
187
|
-
captureMessage(message, level = "info", context = {}) {
|
|
188
|
-
const error = new Error(message);
|
|
189
|
-
error.name = "Message";
|
|
190
|
-
return this.captureError(error, { ...context, level });
|
|
191
|
-
}
|
|
192
|
-
ensureDefaultHandlers() {
|
|
193
|
-
if (this.handlers.length || !IS_BROWSER2) return;
|
|
194
|
-
this.handlers.push(createConsoleHandler());
|
|
195
|
-
if (window.Sentry) {
|
|
196
|
-
const sentryHandler = createSentryHandler(window.Sentry);
|
|
197
|
-
if (sentryHandler.name === "sentry") {
|
|
198
|
-
this.handlers.push(sentryHandler);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
var GLOBAL_REPORTER_KEY = /* @__PURE__ */ Symbol.for("__base_framework_error_reporter__");
|
|
204
|
-
var _global = globalThis;
|
|
205
|
-
function getErrorReporter(options = {}) {
|
|
206
|
-
return _global[GLOBAL_REPORTER_KEY] ??= new ErrorReporter(options);
|
|
207
|
-
}
|
|
208
|
-
function createConsoleHandler() {
|
|
209
|
-
return {
|
|
210
|
-
name: "console",
|
|
211
|
-
handle(report2) {
|
|
212
|
-
if (IS_PRODUCTION) return;
|
|
213
|
-
console.error("[ErrorReporter]", {
|
|
214
|
-
error: report2.error.message,
|
|
215
|
-
fingerprint: report2.fingerprint,
|
|
216
|
-
route: report2.environment.route
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
function createSentryHandler(Sentry) {
|
|
222
|
-
const sentryObj = Sentry;
|
|
223
|
-
if (!sentryObj || typeof sentryObj.captureException !== "function" || typeof sentryObj.withScope !== "function") {
|
|
224
|
-
return createConsoleHandler();
|
|
225
|
-
}
|
|
226
|
-
return {
|
|
227
|
-
name: "sentry",
|
|
228
|
-
handle(report2) {
|
|
229
|
-
sentryObj.withScope((scope) => {
|
|
230
|
-
if (report2.fingerprint) scope.setFingerprint([report2.fingerprint]);
|
|
231
|
-
if (report2.user) scope.setUser(report2.user);
|
|
232
|
-
if (report2.tags && typeof report2.tags === "object") {
|
|
233
|
-
Object.entries(report2.tags).forEach(
|
|
234
|
-
([key, value]) => scope.setTag(key, String(value))
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
|
-
if (report2.environment)
|
|
238
|
-
scope.setContext("environment", report2.environment);
|
|
239
|
-
if (report2.context) scope.setContext("custom", report2.context);
|
|
240
|
-
if (report2.componentStack)
|
|
241
|
-
scope.setExtra("componentStack", report2.componentStack);
|
|
242
|
-
const error = new Error(report2.error.message);
|
|
243
|
-
error.name = report2.error.name || "Error";
|
|
244
|
-
error.stack = report2.error.stack || void 0;
|
|
245
|
-
sentryObj.captureException(error);
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
// src/error/theme.ts
|
|
252
|
-
var errorTheme = defineThemeSpec("error");
|
|
253
|
-
var ActionButton = Button;
|
|
254
|
-
function DefaultErrorFallback({
|
|
255
|
-
error,
|
|
256
|
-
message,
|
|
257
|
-
resetError,
|
|
258
|
-
title
|
|
259
|
-
}) {
|
|
260
|
-
const theme = useTheme(errorTheme);
|
|
261
|
-
return /* @__PURE__ */ jsxs("div", { className: theme.slots.screen, children: [
|
|
262
|
-
/* @__PURE__ */ jsx("div", { className: theme.slots.icon, children: /* @__PURE__ */ jsx(Icon, { icon: "solar:danger-circle-bold", size: 30 }) }),
|
|
263
|
-
/* @__PURE__ */ jsx("h3", { className: theme.slots.title, children: message || toUserMessage(error, { fallback: ERROR_MESSAGES.FALLBACK_MSG }) }),
|
|
264
|
-
/* @__PURE__ */ jsx(
|
|
265
|
-
ActionButton,
|
|
266
|
-
{
|
|
267
|
-
className: theme.slots.retryButton,
|
|
268
|
-
onClick: resetError,
|
|
269
|
-
type: "button",
|
|
270
|
-
children: "Try again"
|
|
271
|
-
}
|
|
272
|
-
)
|
|
273
|
-
] });
|
|
274
|
-
}
|
|
275
|
-
var ErrorBoundaryCore = class extends React.Component {
|
|
276
|
-
constructor(props) {
|
|
277
|
-
super(props);
|
|
278
|
-
this.state = {
|
|
279
|
-
error: null,
|
|
280
|
-
errorInfo: null,
|
|
281
|
-
hasError: false,
|
|
282
|
-
lastResetKey: props.resetKey
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
static getDerivedStateFromError(error) {
|
|
286
|
-
return { error, hasError: true };
|
|
287
|
-
}
|
|
288
|
-
static getDerivedStateFromProps(props, state) {
|
|
289
|
-
if (props.resetKey !== state.lastResetKey) {
|
|
290
|
-
return {
|
|
291
|
-
error: null,
|
|
292
|
-
errorInfo: null,
|
|
293
|
-
hasError: false,
|
|
294
|
-
lastResetKey: props.resetKey
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
return null;
|
|
298
|
-
}
|
|
299
|
-
componentDidCatch(error, errorInfo) {
|
|
300
|
-
this.setState({ errorInfo });
|
|
301
|
-
const { message, name, onError, silent, title, variant } = this.props;
|
|
302
|
-
const context = createErrorContext({ errorInfo, name, title, variant });
|
|
303
|
-
try {
|
|
304
|
-
onError?.(error, errorInfo, context);
|
|
305
|
-
} catch (callbackError) {
|
|
306
|
-
report("ErrorBoundary onError callback", callbackError, "warn");
|
|
307
|
-
}
|
|
308
|
-
if (!silent) {
|
|
309
|
-
globalEvents.emit(EVENT_TYPES.APP_ERROR, {
|
|
310
|
-
error,
|
|
311
|
-
errorInfo,
|
|
312
|
-
message: message || toUserMessage(error),
|
|
313
|
-
resetError: this.resetError
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
try {
|
|
317
|
-
const reporter = getErrorReporter();
|
|
318
|
-
reporter?.captureError?.(error, context);
|
|
319
|
-
} catch (reportingError) {
|
|
320
|
-
report("ErrorBoundary reporting", reportingError, "warn");
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
resetError = () => {
|
|
324
|
-
this.setState({
|
|
325
|
-
error: null,
|
|
326
|
-
errorInfo: null,
|
|
327
|
-
hasError: false
|
|
328
|
-
});
|
|
329
|
-
this.props.onReset?.();
|
|
330
|
-
};
|
|
331
|
-
render() {
|
|
332
|
-
if (!this.state.hasError) return this.props.children;
|
|
333
|
-
const { fallback, message, title } = this.props;
|
|
334
|
-
const { error } = this.state;
|
|
335
|
-
if (typeof fallback === "function") {
|
|
336
|
-
return fallback({ error, resetError: this.resetError });
|
|
337
|
-
}
|
|
338
|
-
if (fallback) {
|
|
339
|
-
return fallback;
|
|
340
|
-
}
|
|
341
|
-
return /* @__PURE__ */ jsx(
|
|
342
|
-
DefaultErrorFallback,
|
|
343
|
-
{
|
|
344
|
-
error,
|
|
345
|
-
message,
|
|
346
|
-
resetError: this.resetError,
|
|
347
|
-
title
|
|
348
|
-
}
|
|
349
|
-
);
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
function GlobalError({ children, fallback, onReset }) {
|
|
353
|
-
const pathname = usePathname();
|
|
354
|
-
return /* @__PURE__ */ jsx(
|
|
355
|
-
ErrorBoundaryCore,
|
|
356
|
-
{
|
|
357
|
-
fallback,
|
|
358
|
-
message: ERROR_MESSAGES.GLOBAL_MSG,
|
|
359
|
-
onReset,
|
|
360
|
-
resetKey: pathname,
|
|
361
|
-
title: ERROR_MESSAGES.GLOBAL_TITLE,
|
|
362
|
-
variant: "full",
|
|
363
|
-
children
|
|
364
|
-
}
|
|
365
|
-
);
|
|
366
|
-
}
|
|
367
|
-
function ModuleError({
|
|
368
|
-
children,
|
|
369
|
-
fallback,
|
|
370
|
-
name,
|
|
371
|
-
onReset
|
|
372
|
-
}) {
|
|
373
|
-
return /* @__PURE__ */ jsx(
|
|
374
|
-
ErrorBoundaryCore,
|
|
375
|
-
{
|
|
376
|
-
fallback,
|
|
377
|
-
message: ERROR_MESSAGES.MODULE_MSG,
|
|
378
|
-
name,
|
|
379
|
-
onReset,
|
|
380
|
-
title: name ? `${name} Error` : ERROR_MESSAGES.MODULE_TITLE,
|
|
381
|
-
variant: "module",
|
|
382
|
-
children
|
|
383
|
-
}
|
|
384
|
-
);
|
|
385
|
-
}
|
|
386
|
-
function ComponentError({
|
|
387
|
-
children,
|
|
388
|
-
fallback,
|
|
389
|
-
message,
|
|
390
|
-
onReset
|
|
391
|
-
}) {
|
|
392
|
-
return /* @__PURE__ */ jsx(
|
|
393
|
-
ErrorBoundaryCore,
|
|
394
|
-
{
|
|
395
|
-
fallback,
|
|
396
|
-
message: message || ERROR_MESSAGES.COMPONENT_MSG,
|
|
397
|
-
onReset,
|
|
398
|
-
variant: "inline",
|
|
399
|
-
children
|
|
400
|
-
}
|
|
401
|
-
);
|
|
402
|
-
}
|
|
403
|
-
function GlobalErrorListener() {
|
|
404
|
-
const lastError = useRef(0);
|
|
405
|
-
const count = useRef(0);
|
|
406
|
-
const shown = useRef(/* @__PURE__ */ new Set());
|
|
407
|
-
const handleError = useCallback((error, source = "runtime") => {
|
|
408
|
-
if (shouldIgnoreError(error)) return;
|
|
409
|
-
const now = Date.now();
|
|
410
|
-
if (count.current >= ERROR_LISTENER_CONFIG.maxErrors) return;
|
|
411
|
-
if (now - lastError.current < ERROR_LISTENER_CONFIG.throttle) return;
|
|
412
|
-
const message = getErrorMessage(error);
|
|
413
|
-
const key = message || String(error);
|
|
414
|
-
if (shown.current.has(key)) return;
|
|
415
|
-
shown.current.add(key);
|
|
416
|
-
lastError.current = now;
|
|
417
|
-
count.current += 1;
|
|
418
|
-
try {
|
|
419
|
-
const reporter = getErrorReporter();
|
|
420
|
-
reporter?.captureError?.(error, {
|
|
421
|
-
globalListener: true,
|
|
422
|
-
source
|
|
423
|
-
});
|
|
424
|
-
} catch (reportingError) {
|
|
425
|
-
report("GlobalError reporting", reportingError, "warn");
|
|
426
|
-
}
|
|
427
|
-
globalEvents.emit(EVENT_TYPES.APP_ERROR, {
|
|
428
|
-
error,
|
|
429
|
-
message: toUserMessage(error)
|
|
430
|
-
});
|
|
431
|
-
}, []);
|
|
432
|
-
useEffect(() => {
|
|
433
|
-
const removeSink = setReportSink((scope, error, level) => {
|
|
434
|
-
try {
|
|
435
|
-
getErrorReporter().captureError(error, { level, scope });
|
|
436
|
-
} catch {
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
const onError = (event) => handleError(event.error || event.message, "window.onerror");
|
|
440
|
-
const onRejection = (event) => handleError(event.reason, "unhandledrejection");
|
|
441
|
-
window.addEventListener("error", onError);
|
|
442
|
-
window.addEventListener("unhandledrejection", onRejection);
|
|
443
|
-
return () => {
|
|
444
|
-
removeSink();
|
|
445
|
-
window.removeEventListener("error", onError);
|
|
446
|
-
window.removeEventListener("unhandledrejection", onRejection);
|
|
447
|
-
};
|
|
448
|
-
}, [handleError]);
|
|
449
|
-
return null;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
export { ComponentError, DEFAULT_DEDUPE_WINDOW, ERROR_LISTENER_CONFIG, ERROR_MESSAGES, ErrorBoundaryCore, GlobalError, GlobalErrorListener, MAX_CONTEXT, MAX_FINGERPRINTS, ModuleError, createConsoleHandler, createErrorContext, createReport, createSentryHandler, errorTheme, fingerprint, getBrowserEnvironment, getErrorMessage, getErrorReporter, getRuntimePath, getUserAgent, normalizeDedupeWindow, normalizeSampleRate, shouldIgnoreError };
|
|
453
|
-
//# sourceMappingURL=chunk-ZAP2YHZG.js.map
|
|
454
|
-
//# sourceMappingURL=chunk-ZAP2YHZG.js.map
|