@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
|
@@ -0,0 +1,850 @@
|
|
|
1
|
+
import { defineModule } from './chunk-ZE6OGGA7.js';
|
|
2
|
+
import { useRequiredContext, useStore, useGlobalEvent } from './chunk-Y2Q74PJP.js';
|
|
3
|
+
import { cn } from './chunk-7RSRDKYE.js';
|
|
4
|
+
import { defineThemeSpec, useTheme, useModuleMotion } from './chunk-ESD5EQ5H.js';
|
|
5
|
+
import { USER_MESSAGES, createStore, toUserMessage, EVENT_TYPES, UserError, report } from './chunk-5H6FZW3N.js';
|
|
6
|
+
import { getOrCreateGlobalContext } from './chunk-J3VTDBC6.js';
|
|
7
|
+
import { isObject } from './chunk-BMFHS3GV.js';
|
|
8
|
+
import { c } from 'react/compiler-runtime';
|
|
9
|
+
import { useState, useRef, useEffect, use, useSyncExternalStore } from 'react';
|
|
10
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
|
+
import { AnimatePresence, motion } from 'motion/react';
|
|
12
|
+
import { createPortal } from 'react-dom';
|
|
13
|
+
|
|
14
|
+
// src/modules/notification/constants.ts
|
|
15
|
+
var TOAST_DURATIONS = Object.freeze({
|
|
16
|
+
DEFAULT: 2e3,
|
|
17
|
+
SHORT: 1500
|
|
18
|
+
});
|
|
19
|
+
var MESSAGE_ID_LENGTH = 64;
|
|
20
|
+
var SESSION_EXPIRED_MESSAGE = USER_MESSAGES.unauthorized;
|
|
21
|
+
var DOCK_STACK_ELEMENT_ID = "dock-card-stack";
|
|
22
|
+
var notificationTheme = defineThemeSpec("notification");
|
|
23
|
+
var INITIAL_NOTIFICATION_STATE = Object.freeze({
|
|
24
|
+
notifications: {}
|
|
25
|
+
});
|
|
26
|
+
var INERT_NOTIFICATION_ACTIONS = Object.freeze({
|
|
27
|
+
dismissAllNotifications: () => {
|
|
28
|
+
},
|
|
29
|
+
dismissNotification: () => {
|
|
30
|
+
},
|
|
31
|
+
showNotification: () => null
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// src/foundation/result/index.ts
|
|
35
|
+
function ok(data, code) {
|
|
36
|
+
return { data, success: true, ...code ? { code } : {} };
|
|
37
|
+
}
|
|
38
|
+
function err(error, code) {
|
|
39
|
+
return { error, success: false, ...code ? { code } : {} };
|
|
40
|
+
}
|
|
41
|
+
function isResult(value) {
|
|
42
|
+
return typeof value === "object" && value !== null && "success" in value && typeof value.success === "boolean" && ("data" in value && value.success === true || "error" in value && value.success === false);
|
|
43
|
+
}
|
|
44
|
+
function isOk(result) {
|
|
45
|
+
return result.success === true;
|
|
46
|
+
}
|
|
47
|
+
function isErr(result) {
|
|
48
|
+
return result.success === false;
|
|
49
|
+
}
|
|
50
|
+
function unwrap(result) {
|
|
51
|
+
if (result.success) {
|
|
52
|
+
return result.data;
|
|
53
|
+
}
|
|
54
|
+
if (result.error instanceof Error) {
|
|
55
|
+
throw result.error;
|
|
56
|
+
}
|
|
57
|
+
throw new Error(
|
|
58
|
+
typeof result.error === "string" ? result.error : String(result.error)
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
function unwrapOr(result, fallback) {
|
|
62
|
+
return result.success ? result.data : fallback;
|
|
63
|
+
}
|
|
64
|
+
function map(result, fn) {
|
|
65
|
+
return result.success ? ok(fn(result.data), result.code) : result;
|
|
66
|
+
}
|
|
67
|
+
function mapErr(result, fn) {
|
|
68
|
+
return result.success ? result : err(fn(result.error), result.code);
|
|
69
|
+
}
|
|
70
|
+
function match(result, branches) {
|
|
71
|
+
return result.success ? branches.ok(result.data) : branches.err(result.error);
|
|
72
|
+
}
|
|
73
|
+
function mapCaught(error, mapError) {
|
|
74
|
+
if (!(error instanceof UserError)) report("Result", error);
|
|
75
|
+
return mapError ? mapError(error) : toUserMessage(error);
|
|
76
|
+
}
|
|
77
|
+
async function tryCatch(promiseOrFn, mapError) {
|
|
78
|
+
try {
|
|
79
|
+
const data = typeof promiseOrFn === "function" ? await promiseOrFn() : await promiseOrFn;
|
|
80
|
+
return ok(data);
|
|
81
|
+
} catch (error) {
|
|
82
|
+
return err(mapCaught(error, mapError));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
var VALIDATION_ERROR_CODE = "VALIDATION_ERROR";
|
|
86
|
+
var INVALID_INPUT_MESSAGE = "Invalid input";
|
|
87
|
+
var VALIDATION_FAILED_MESSAGE = "Validation failed";
|
|
88
|
+
function createSafeAction(handler, options = {}) {
|
|
89
|
+
const { errorCode, mapError, schema, validate } = options;
|
|
90
|
+
const validationError = (message) => err(
|
|
91
|
+
// Without mapError the message stands in for E, by contract.
|
|
92
|
+
mapError ? mapError(message) : message,
|
|
93
|
+
errorCode ?? VALIDATION_ERROR_CODE
|
|
94
|
+
);
|
|
95
|
+
const rejectionOf = (outcome) => {
|
|
96
|
+
if (isResult(outcome)) return isErr(outcome) ? outcome : null;
|
|
97
|
+
if (outcome === false) return validationError(VALIDATION_FAILED_MESSAGE);
|
|
98
|
+
if (typeof outcome === "string" && outcome.length > 0) {
|
|
99
|
+
return validationError(outcome);
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
};
|
|
103
|
+
return async (...args) => {
|
|
104
|
+
try {
|
|
105
|
+
let effectiveArgs = args;
|
|
106
|
+
if (schema) {
|
|
107
|
+
const parsed = schema.safeParse(args[0]);
|
|
108
|
+
if (!parsed.success) {
|
|
109
|
+
return validationError(
|
|
110
|
+
parsed.error?.issues?.[0]?.message || parsed.error?.message || INVALID_INPUT_MESSAGE
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
effectiveArgs = [parsed.data, ...args.slice(1)];
|
|
114
|
+
}
|
|
115
|
+
const rejection = validate ? rejectionOf(validate(...effectiveArgs)) : null;
|
|
116
|
+
if (rejection) return rejection;
|
|
117
|
+
const output = await handler(...effectiveArgs);
|
|
118
|
+
if (isResult(output)) return output;
|
|
119
|
+
return ok(output);
|
|
120
|
+
} catch (error) {
|
|
121
|
+
return err(mapCaught(error, mapError), errorCode);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// src/modules/notification/state.ts
|
|
127
|
+
function normalizeFeedbackText(value) {
|
|
128
|
+
if (typeof value !== "string") return value;
|
|
129
|
+
return value.trim().replace(/[.\s]+$/, "");
|
|
130
|
+
}
|
|
131
|
+
function getActiveNotification(notifications) {
|
|
132
|
+
let active = null;
|
|
133
|
+
for (const entry of Object.values(notifications)) {
|
|
134
|
+
if (!active || entry.timestamp >= active.timestamp) active = entry;
|
|
135
|
+
}
|
|
136
|
+
return active;
|
|
137
|
+
}
|
|
138
|
+
function normalizeToastOptions(options) {
|
|
139
|
+
return typeof options === "number" ? {
|
|
140
|
+
duration: options
|
|
141
|
+
} : options || {};
|
|
142
|
+
}
|
|
143
|
+
function normalizeDuration(value) {
|
|
144
|
+
if (value === null) return null;
|
|
145
|
+
if (value === void 0) return TOAST_DURATIONS.DEFAULT;
|
|
146
|
+
const duration = Number(value);
|
|
147
|
+
return Number.isFinite(duration) && duration > 0 ? duration : null;
|
|
148
|
+
}
|
|
149
|
+
function withDefaultDuration(duration, options) {
|
|
150
|
+
const normalized = normalizeToastOptions(options);
|
|
151
|
+
return {
|
|
152
|
+
...normalized,
|
|
153
|
+
duration: normalized.duration !== void 0 ? normalized.duration : duration
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function isNotificationDataObject(value) {
|
|
157
|
+
return isObject(value) && "message" in value;
|
|
158
|
+
}
|
|
159
|
+
function resolveMessage(message, arg) {
|
|
160
|
+
return typeof message === "function" ? message(arg) : message;
|
|
161
|
+
}
|
|
162
|
+
function getOutcomeMessage(value, messages) {
|
|
163
|
+
if (!isResult(value)) return resolveMessage(messages.success, value);
|
|
164
|
+
return value.success ? resolveMessage(messages.success, value.data) : resolveMessage(messages.error, value.error) || toUserMessage(value.error);
|
|
165
|
+
}
|
|
166
|
+
var isEmptyMessage = (message) => message === null || message === void 0 || message === "";
|
|
167
|
+
function deriveNotificationId(message, fallbackId) {
|
|
168
|
+
if (typeof message === "string") return message.slice(0, MESSAGE_ID_LENGTH);
|
|
169
|
+
return fallbackId || `notification-${Date.now()}`;
|
|
170
|
+
}
|
|
171
|
+
function createNotificationEntry(messageOrData, options, fallbackId) {
|
|
172
|
+
const normalizedOptions = normalizeToastOptions(options);
|
|
173
|
+
const payload = isNotificationDataObject(messageOrData) ? {
|
|
174
|
+
...normalizedOptions,
|
|
175
|
+
...messageOrData
|
|
176
|
+
} : {
|
|
177
|
+
...normalizedOptions,
|
|
178
|
+
message: messageOrData
|
|
179
|
+
};
|
|
180
|
+
const normalizedMessage = normalizeFeedbackText(payload.message);
|
|
181
|
+
if (isEmptyMessage(normalizedMessage)) return null;
|
|
182
|
+
const id = payload.dedupeKey || payload.id || deriveNotificationId(normalizedMessage, fallbackId);
|
|
183
|
+
const entry = {
|
|
184
|
+
dedupeKey: payload.dedupeKey,
|
|
185
|
+
duration: payload.duration,
|
|
186
|
+
id,
|
|
187
|
+
message: normalizedMessage,
|
|
188
|
+
timestamp: Date.now()
|
|
189
|
+
};
|
|
190
|
+
return {
|
|
191
|
+
duration: normalizeDuration(payload.duration),
|
|
192
|
+
entry
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
var NotificationContext = getOrCreateGlobalContext("NotificationContext", null);
|
|
196
|
+
var NOOP_NOTIFICATION_STORE = createStore(INITIAL_NOTIFICATION_STATE);
|
|
197
|
+
var notificationIdCounter = 0;
|
|
198
|
+
function nextNotificationId() {
|
|
199
|
+
notificationIdCounter += 1;
|
|
200
|
+
return notificationIdCounter;
|
|
201
|
+
}
|
|
202
|
+
function NotificationProvider(t0) {
|
|
203
|
+
const $ = c(21);
|
|
204
|
+
const {
|
|
205
|
+
children
|
|
206
|
+
} = t0;
|
|
207
|
+
const [store] = useState(_temp);
|
|
208
|
+
let t1;
|
|
209
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
210
|
+
t1 = /* @__PURE__ */ new Map();
|
|
211
|
+
$[0] = t1;
|
|
212
|
+
} else {
|
|
213
|
+
t1 = $[0];
|
|
214
|
+
}
|
|
215
|
+
const timersRef = useRef(t1);
|
|
216
|
+
let t2;
|
|
217
|
+
if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
218
|
+
t2 = () => {
|
|
219
|
+
timersRef.current.forEach(clearTimeout);
|
|
220
|
+
timersRef.current.clear();
|
|
221
|
+
};
|
|
222
|
+
$[1] = t2;
|
|
223
|
+
} else {
|
|
224
|
+
t2 = $[1];
|
|
225
|
+
}
|
|
226
|
+
const clearTimers = t2;
|
|
227
|
+
let t3;
|
|
228
|
+
let t4;
|
|
229
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
230
|
+
t3 = () => clearTimers;
|
|
231
|
+
t4 = [clearTimers];
|
|
232
|
+
$[2] = t3;
|
|
233
|
+
$[3] = t4;
|
|
234
|
+
} else {
|
|
235
|
+
t3 = $[2];
|
|
236
|
+
t4 = $[3];
|
|
237
|
+
}
|
|
238
|
+
useEffect(t3, t4);
|
|
239
|
+
let t5;
|
|
240
|
+
if ($[4] !== store) {
|
|
241
|
+
t5 = (id) => {
|
|
242
|
+
clearTimeout(timersRef.current.get(id));
|
|
243
|
+
timersRef.current.delete(id);
|
|
244
|
+
store.publish((prev) => {
|
|
245
|
+
if (!Object.hasOwn(prev.notifications, id)) {
|
|
246
|
+
return prev;
|
|
247
|
+
}
|
|
248
|
+
const notifications = {
|
|
249
|
+
...prev.notifications
|
|
250
|
+
};
|
|
251
|
+
delete notifications[id];
|
|
252
|
+
return {
|
|
253
|
+
notifications
|
|
254
|
+
};
|
|
255
|
+
});
|
|
256
|
+
};
|
|
257
|
+
$[4] = store;
|
|
258
|
+
$[5] = t5;
|
|
259
|
+
} else {
|
|
260
|
+
t5 = $[5];
|
|
261
|
+
}
|
|
262
|
+
const dismissNotification = t5;
|
|
263
|
+
let t6;
|
|
264
|
+
if ($[6] !== store) {
|
|
265
|
+
t6 = () => {
|
|
266
|
+
clearTimers();
|
|
267
|
+
store.publish(_temp2);
|
|
268
|
+
};
|
|
269
|
+
$[6] = store;
|
|
270
|
+
$[7] = t6;
|
|
271
|
+
} else {
|
|
272
|
+
t6 = $[7];
|
|
273
|
+
}
|
|
274
|
+
const dismissAllNotifications = t6;
|
|
275
|
+
let t7;
|
|
276
|
+
if ($[8] !== dismissNotification || $[9] !== store) {
|
|
277
|
+
t7 = (messageOrData, options) => {
|
|
278
|
+
const fallbackId = `notification-${nextNotificationId()}`;
|
|
279
|
+
const result = createNotificationEntry(messageOrData, options, fallbackId);
|
|
280
|
+
if (!result) {
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
const {
|
|
284
|
+
entry,
|
|
285
|
+
duration
|
|
286
|
+
} = result;
|
|
287
|
+
const {
|
|
288
|
+
id: id_0
|
|
289
|
+
} = entry;
|
|
290
|
+
clearTimers();
|
|
291
|
+
store.publish({
|
|
292
|
+
notifications: {
|
|
293
|
+
[id_0]: entry
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
if (duration) {
|
|
297
|
+
timersRef.current.set(id_0, setTimeout(() => dismissNotification(id_0), duration));
|
|
298
|
+
}
|
|
299
|
+
return id_0;
|
|
300
|
+
};
|
|
301
|
+
$[8] = dismissNotification;
|
|
302
|
+
$[9] = store;
|
|
303
|
+
$[10] = t7;
|
|
304
|
+
} else {
|
|
305
|
+
t7 = $[10];
|
|
306
|
+
}
|
|
307
|
+
const showNotification = t7;
|
|
308
|
+
let t8;
|
|
309
|
+
if ($[11] !== dismissAllNotifications || $[12] !== dismissNotification || $[13] !== showNotification) {
|
|
310
|
+
t8 = {
|
|
311
|
+
dismissAllNotifications,
|
|
312
|
+
dismissNotification,
|
|
313
|
+
showNotification
|
|
314
|
+
};
|
|
315
|
+
$[11] = dismissAllNotifications;
|
|
316
|
+
$[12] = dismissNotification;
|
|
317
|
+
$[13] = showNotification;
|
|
318
|
+
$[14] = t8;
|
|
319
|
+
} else {
|
|
320
|
+
t8 = $[14];
|
|
321
|
+
}
|
|
322
|
+
const actions = t8;
|
|
323
|
+
let t9;
|
|
324
|
+
if ($[15] !== actions || $[16] !== store) {
|
|
325
|
+
t9 = {
|
|
326
|
+
actions,
|
|
327
|
+
store
|
|
328
|
+
};
|
|
329
|
+
$[15] = actions;
|
|
330
|
+
$[16] = store;
|
|
331
|
+
$[17] = t9;
|
|
332
|
+
} else {
|
|
333
|
+
t9 = $[17];
|
|
334
|
+
}
|
|
335
|
+
const value = t9;
|
|
336
|
+
let t10;
|
|
337
|
+
if ($[18] !== children || $[19] !== value) {
|
|
338
|
+
t10 = /* @__PURE__ */ jsx(NotificationContext, { value, children });
|
|
339
|
+
$[18] = children;
|
|
340
|
+
$[19] = value;
|
|
341
|
+
$[20] = t10;
|
|
342
|
+
} else {
|
|
343
|
+
t10 = $[20];
|
|
344
|
+
}
|
|
345
|
+
return t10;
|
|
346
|
+
}
|
|
347
|
+
function _temp2(prev_0) {
|
|
348
|
+
return Object.keys(prev_0.notifications).length === 0 ? prev_0 : {
|
|
349
|
+
notifications: {}
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
function _temp() {
|
|
353
|
+
return createStore(INITIAL_NOTIFICATION_STATE, {
|
|
354
|
+
freezeSnapshots: false
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
var toastPromiseIdCounter = 0;
|
|
358
|
+
function nextToastPromiseId() {
|
|
359
|
+
toastPromiseIdCounter += 1;
|
|
360
|
+
return toastPromiseIdCounter;
|
|
361
|
+
}
|
|
362
|
+
function useNotificationActions() {
|
|
363
|
+
return useRequiredContext(NotificationContext, "useNotificationActions", "NotificationProvider").actions;
|
|
364
|
+
}
|
|
365
|
+
function useNotificationState() {
|
|
366
|
+
const {
|
|
367
|
+
store
|
|
368
|
+
} = useRequiredContext(NotificationContext, "useNotificationState", "NotificationProvider");
|
|
369
|
+
return useStore(store);
|
|
370
|
+
}
|
|
371
|
+
function useNotification() {
|
|
372
|
+
const $ = c(3);
|
|
373
|
+
const actions = useNotificationActions();
|
|
374
|
+
const state = useNotificationState();
|
|
375
|
+
let t0;
|
|
376
|
+
if ($[0] !== actions || $[1] !== state) {
|
|
377
|
+
t0 = {
|
|
378
|
+
...actions,
|
|
379
|
+
...state
|
|
380
|
+
};
|
|
381
|
+
$[0] = actions;
|
|
382
|
+
$[1] = state;
|
|
383
|
+
$[2] = t0;
|
|
384
|
+
} else {
|
|
385
|
+
t0 = $[2];
|
|
386
|
+
}
|
|
387
|
+
return t0;
|
|
388
|
+
}
|
|
389
|
+
function useOptionalNotificationState(selector, isEqual) {
|
|
390
|
+
const ctx = use(NotificationContext);
|
|
391
|
+
return useStore(ctx?.store ?? NOOP_NOTIFICATION_STORE, selector, isEqual);
|
|
392
|
+
}
|
|
393
|
+
function useOptionalNotificationActions() {
|
|
394
|
+
const ctx = use(NotificationContext);
|
|
395
|
+
return ctx?.actions ?? INERT_NOTIFICATION_ACTIONS;
|
|
396
|
+
}
|
|
397
|
+
function useNotificationVisible() {
|
|
398
|
+
return useOptionalNotificationState(_temp3);
|
|
399
|
+
}
|
|
400
|
+
function _temp3(t0) {
|
|
401
|
+
const {
|
|
402
|
+
notifications
|
|
403
|
+
} = t0;
|
|
404
|
+
return Object.keys(notifications).length > 0;
|
|
405
|
+
}
|
|
406
|
+
async function runToastPromise({
|
|
407
|
+
dismiss,
|
|
408
|
+
showNotification,
|
|
409
|
+
triggerToast
|
|
410
|
+
}, promiseOrFn, messages = {}, options) {
|
|
411
|
+
const normalized = normalizeToastOptions(options);
|
|
412
|
+
const id = normalized.id || normalized.dedupeKey || `toast-promise-${nextToastPromiseId()}`;
|
|
413
|
+
const sharedOptions = {
|
|
414
|
+
...normalized,
|
|
415
|
+
id
|
|
416
|
+
};
|
|
417
|
+
if (messages.loading) {
|
|
418
|
+
showNotification(messages.loading, {
|
|
419
|
+
...sharedOptions,
|
|
420
|
+
duration: null
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
try {
|
|
424
|
+
const resolved = await (typeof promiseOrFn === "function" ? promiseOrFn() : promiseOrFn);
|
|
425
|
+
const message = getOutcomeMessage(resolved, messages);
|
|
426
|
+
if (message) triggerToast(message, sharedOptions);
|
|
427
|
+
else if (messages.loading) dismiss(id);
|
|
428
|
+
return resolved;
|
|
429
|
+
} catch (error) {
|
|
430
|
+
triggerToast(resolveMessage(messages.error, error) || toUserMessage(error), sharedOptions);
|
|
431
|
+
throw error;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
function useToastPromise(t0) {
|
|
435
|
+
const $ = c(4);
|
|
436
|
+
const {
|
|
437
|
+
dismiss,
|
|
438
|
+
showNotification,
|
|
439
|
+
triggerToast
|
|
440
|
+
} = t0;
|
|
441
|
+
let t1;
|
|
442
|
+
if ($[0] !== dismiss || $[1] !== showNotification || $[2] !== triggerToast) {
|
|
443
|
+
t1 = (promiseOrFn, t2, options) => {
|
|
444
|
+
const messages = t2 === void 0 ? {} : t2;
|
|
445
|
+
return runToastPromise({
|
|
446
|
+
dismiss,
|
|
447
|
+
showNotification,
|
|
448
|
+
triggerToast
|
|
449
|
+
}, promiseOrFn, messages, options);
|
|
450
|
+
};
|
|
451
|
+
$[0] = dismiss;
|
|
452
|
+
$[1] = showNotification;
|
|
453
|
+
$[2] = triggerToast;
|
|
454
|
+
$[3] = t1;
|
|
455
|
+
} else {
|
|
456
|
+
t1 = $[3];
|
|
457
|
+
}
|
|
458
|
+
return t1;
|
|
459
|
+
}
|
|
460
|
+
function useToast(defaultDuration) {
|
|
461
|
+
const $ = c(20);
|
|
462
|
+
const {
|
|
463
|
+
dismissAllNotifications,
|
|
464
|
+
dismissNotification,
|
|
465
|
+
showNotification
|
|
466
|
+
} = useNotificationActions();
|
|
467
|
+
const resolvedDefaultDuration = defaultDuration ?? TOAST_DURATIONS.DEFAULT;
|
|
468
|
+
let t0;
|
|
469
|
+
if ($[0] !== resolvedDefaultDuration || $[1] !== showNotification) {
|
|
470
|
+
t0 = (message, options) => showNotification(message, withDefaultDuration(resolvedDefaultDuration, options));
|
|
471
|
+
$[0] = resolvedDefaultDuration;
|
|
472
|
+
$[1] = showNotification;
|
|
473
|
+
$[2] = t0;
|
|
474
|
+
} else {
|
|
475
|
+
t0 = $[2];
|
|
476
|
+
}
|
|
477
|
+
const triggerToast = t0;
|
|
478
|
+
let t1;
|
|
479
|
+
if ($[3] !== dismissAllNotifications || $[4] !== dismissNotification) {
|
|
480
|
+
t1 = (id) => {
|
|
481
|
+
if (id) {
|
|
482
|
+
dismissNotification(id);
|
|
483
|
+
} else {
|
|
484
|
+
dismissAllNotifications();
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
$[3] = dismissAllNotifications;
|
|
488
|
+
$[4] = dismissNotification;
|
|
489
|
+
$[5] = t1;
|
|
490
|
+
} else {
|
|
491
|
+
t1 = $[5];
|
|
492
|
+
}
|
|
493
|
+
const dismiss = t1;
|
|
494
|
+
let t2;
|
|
495
|
+
if ($[6] !== triggerToast) {
|
|
496
|
+
t2 = (result, t32, options_0) => {
|
|
497
|
+
const messages = t32 === void 0 ? {} : t32;
|
|
498
|
+
const message_0 = getOutcomeMessage(result, messages);
|
|
499
|
+
if (message_0) {
|
|
500
|
+
triggerToast(message_0, options_0);
|
|
501
|
+
}
|
|
502
|
+
return result;
|
|
503
|
+
};
|
|
504
|
+
$[6] = triggerToast;
|
|
505
|
+
$[7] = t2;
|
|
506
|
+
} else {
|
|
507
|
+
t2 = $[7];
|
|
508
|
+
}
|
|
509
|
+
const fromResult = t2;
|
|
510
|
+
let t3;
|
|
511
|
+
if ($[8] !== dismiss || $[9] !== showNotification || $[10] !== triggerToast) {
|
|
512
|
+
t3 = {
|
|
513
|
+
dismiss,
|
|
514
|
+
showNotification,
|
|
515
|
+
triggerToast
|
|
516
|
+
};
|
|
517
|
+
$[8] = dismiss;
|
|
518
|
+
$[9] = showNotification;
|
|
519
|
+
$[10] = triggerToast;
|
|
520
|
+
$[11] = t3;
|
|
521
|
+
} else {
|
|
522
|
+
t3 = $[11];
|
|
523
|
+
}
|
|
524
|
+
const promise = useToastPromise(t3);
|
|
525
|
+
let t4;
|
|
526
|
+
if ($[12] !== dismiss || $[13] !== dismissAllNotifications || $[14] !== fromResult || $[15] !== promise || $[16] !== triggerToast) {
|
|
527
|
+
let t5;
|
|
528
|
+
if ($[18] !== triggerToast) {
|
|
529
|
+
t5 = (message_1, options_1) => triggerToast(message_1, options_1);
|
|
530
|
+
$[18] = triggerToast;
|
|
531
|
+
$[19] = t5;
|
|
532
|
+
} else {
|
|
533
|
+
t5 = $[19];
|
|
534
|
+
}
|
|
535
|
+
t4 = Object.assign(t5, {
|
|
536
|
+
dismiss,
|
|
537
|
+
dismissAll: dismissAllNotifications,
|
|
538
|
+
fromResult,
|
|
539
|
+
promise
|
|
540
|
+
});
|
|
541
|
+
$[12] = dismiss;
|
|
542
|
+
$[13] = dismissAllNotifications;
|
|
543
|
+
$[14] = fromResult;
|
|
544
|
+
$[15] = promise;
|
|
545
|
+
$[16] = triggerToast;
|
|
546
|
+
$[17] = t4;
|
|
547
|
+
} else {
|
|
548
|
+
t4 = $[17];
|
|
549
|
+
}
|
|
550
|
+
return t4;
|
|
551
|
+
}
|
|
552
|
+
var emptySubscribe = () => () => {
|
|
553
|
+
};
|
|
554
|
+
function NotificationListener() {
|
|
555
|
+
const $ = c(4);
|
|
556
|
+
const {
|
|
557
|
+
showNotification
|
|
558
|
+
} = useNotificationActions();
|
|
559
|
+
let t0;
|
|
560
|
+
if ($[0] !== showNotification) {
|
|
561
|
+
t0 = (data) => {
|
|
562
|
+
if (!data?.notify || !data.message) {
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
showNotification(data.message);
|
|
566
|
+
};
|
|
567
|
+
$[0] = showNotification;
|
|
568
|
+
$[1] = t0;
|
|
569
|
+
} else {
|
|
570
|
+
t0 = $[1];
|
|
571
|
+
}
|
|
572
|
+
const showRequested = t0;
|
|
573
|
+
let t1;
|
|
574
|
+
if ($[2] !== showNotification) {
|
|
575
|
+
t1 = (data_0) => {
|
|
576
|
+
if (data_0?.source && data_0.source !== "app") {
|
|
577
|
+
return;
|
|
578
|
+
}
|
|
579
|
+
showNotification(SESSION_EXPIRED_MESSAGE);
|
|
580
|
+
};
|
|
581
|
+
$[2] = showNotification;
|
|
582
|
+
$[3] = t1;
|
|
583
|
+
} else {
|
|
584
|
+
t1 = $[3];
|
|
585
|
+
}
|
|
586
|
+
useGlobalEvent(EVENT_TYPES.API_UNAUTHORIZED, t1);
|
|
587
|
+
useGlobalEvent(EVENT_TYPES.APP_ERROR, showRequested);
|
|
588
|
+
useGlobalEvent(EVENT_TYPES.STATE_CHANGE, showRequested);
|
|
589
|
+
return null;
|
|
590
|
+
}
|
|
591
|
+
function useNotificationContainerModel() {
|
|
592
|
+
const $ = c(7);
|
|
593
|
+
const {
|
|
594
|
+
notifications
|
|
595
|
+
} = useNotificationState();
|
|
596
|
+
const {
|
|
597
|
+
dismissNotification
|
|
598
|
+
} = useNotificationActions();
|
|
599
|
+
const isHydrated = useSyncExternalStore(emptySubscribe, _temp22, _temp32);
|
|
600
|
+
let t0;
|
|
601
|
+
if ($[0] !== notifications) {
|
|
602
|
+
t0 = getActiveNotification(notifications);
|
|
603
|
+
$[0] = notifications;
|
|
604
|
+
$[1] = t0;
|
|
605
|
+
} else {
|
|
606
|
+
t0 = $[1];
|
|
607
|
+
}
|
|
608
|
+
const activeEntry = t0;
|
|
609
|
+
const theme = useTheme(notificationTheme);
|
|
610
|
+
let t1;
|
|
611
|
+
if ($[2] !== activeEntry || $[3] !== dismissNotification || $[4] !== isHydrated || $[5] !== theme) {
|
|
612
|
+
t1 = {
|
|
613
|
+
dismissNotification,
|
|
614
|
+
isHydrated,
|
|
615
|
+
activeEntry,
|
|
616
|
+
theme
|
|
617
|
+
};
|
|
618
|
+
$[2] = activeEntry;
|
|
619
|
+
$[3] = dismissNotification;
|
|
620
|
+
$[4] = isHydrated;
|
|
621
|
+
$[5] = theme;
|
|
622
|
+
$[6] = t1;
|
|
623
|
+
} else {
|
|
624
|
+
t1 = $[6];
|
|
625
|
+
}
|
|
626
|
+
return t1;
|
|
627
|
+
}
|
|
628
|
+
function _temp32() {
|
|
629
|
+
return false;
|
|
630
|
+
}
|
|
631
|
+
function _temp22() {
|
|
632
|
+
return true;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
// src/modules/notification/motion.ts
|
|
636
|
+
var NOTIFICATION_COMPOSITOR_STYLE = Object.freeze({
|
|
637
|
+
WebkitBackfaceVisibility: "hidden",
|
|
638
|
+
WebkitFontSmoothing: "antialiased",
|
|
639
|
+
backfaceVisibility: "hidden",
|
|
640
|
+
transform: "translateZ(0)",
|
|
641
|
+
willChange: "transform, opacity, filter"
|
|
642
|
+
});
|
|
643
|
+
function useNotificationMotion() {
|
|
644
|
+
return useModuleMotion(notificationTheme);
|
|
645
|
+
}
|
|
646
|
+
function Toast(t0) {
|
|
647
|
+
const $ = c(17);
|
|
648
|
+
const {
|
|
649
|
+
className,
|
|
650
|
+
entry,
|
|
651
|
+
messageClassName,
|
|
652
|
+
onDismiss,
|
|
653
|
+
polite,
|
|
654
|
+
style
|
|
655
|
+
} = t0;
|
|
656
|
+
const toastMotion = useNotificationMotion();
|
|
657
|
+
const t1 = polite ? "polite" : void 0;
|
|
658
|
+
let t2;
|
|
659
|
+
if ($[0] !== style) {
|
|
660
|
+
t2 = {
|
|
661
|
+
...NOTIFICATION_COMPOSITOR_STYLE,
|
|
662
|
+
...style
|
|
663
|
+
};
|
|
664
|
+
$[0] = style;
|
|
665
|
+
$[1] = t2;
|
|
666
|
+
} else {
|
|
667
|
+
t2 = $[1];
|
|
668
|
+
}
|
|
669
|
+
let t3;
|
|
670
|
+
let t4;
|
|
671
|
+
if ($[2] !== onDismiss) {
|
|
672
|
+
t3 = (event) => {
|
|
673
|
+
event.stopPropagation();
|
|
674
|
+
onDismiss();
|
|
675
|
+
};
|
|
676
|
+
t4 = (event_0) => {
|
|
677
|
+
if (event_0.key !== "Escape") {
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
event_0.preventDefault();
|
|
681
|
+
event_0.stopPropagation();
|
|
682
|
+
onDismiss();
|
|
683
|
+
};
|
|
684
|
+
$[2] = onDismiss;
|
|
685
|
+
$[3] = t3;
|
|
686
|
+
$[4] = t4;
|
|
687
|
+
} else {
|
|
688
|
+
t3 = $[3];
|
|
689
|
+
t4 = $[4];
|
|
690
|
+
}
|
|
691
|
+
let t5;
|
|
692
|
+
if ($[5] !== entry.message || $[6] !== messageClassName) {
|
|
693
|
+
t5 = /* @__PURE__ */ jsx("div", { className: messageClassName, children: entry.message });
|
|
694
|
+
$[5] = entry.message;
|
|
695
|
+
$[6] = messageClassName;
|
|
696
|
+
$[7] = t5;
|
|
697
|
+
} else {
|
|
698
|
+
t5 = $[7];
|
|
699
|
+
}
|
|
700
|
+
let t6;
|
|
701
|
+
if ($[8] !== className || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t5 || $[14] !== toastMotion.toast || $[15] !== toastMotion.transition) {
|
|
702
|
+
t6 = /* @__PURE__ */ jsx(motion.div, { role: "alert", "aria-atomic": "true", "aria-live": t1, "aria-keyshortcuts": "Escape", tabIndex: 0, variants: toastMotion.toast, initial: "hidden", animate: "visible", exit: "exit", transition: toastMotion.transition, style: t2, className, onClick: t3, onKeyDown: t4, children: t5 });
|
|
703
|
+
$[8] = className;
|
|
704
|
+
$[9] = t1;
|
|
705
|
+
$[10] = t2;
|
|
706
|
+
$[11] = t3;
|
|
707
|
+
$[12] = t4;
|
|
708
|
+
$[13] = t5;
|
|
709
|
+
$[14] = toastMotion.toast;
|
|
710
|
+
$[15] = toastMotion.transition;
|
|
711
|
+
$[16] = t6;
|
|
712
|
+
} else {
|
|
713
|
+
t6 = $[16];
|
|
714
|
+
}
|
|
715
|
+
return t6;
|
|
716
|
+
}
|
|
717
|
+
function NotificationContainer() {
|
|
718
|
+
const $ = c(20);
|
|
719
|
+
const {
|
|
720
|
+
dismissNotification,
|
|
721
|
+
isHydrated,
|
|
722
|
+
activeEntry,
|
|
723
|
+
theme
|
|
724
|
+
} = useNotificationContainerModel();
|
|
725
|
+
if (!isHydrated) {
|
|
726
|
+
return null;
|
|
727
|
+
}
|
|
728
|
+
let renderToast;
|
|
729
|
+
let t0;
|
|
730
|
+
if ($[0] !== activeEntry || $[1] !== dismissNotification || $[2] !== theme.slots.toast || $[3] !== theme.slots.toastDocked || $[4] !== theme.slots.toastMessage || $[5] !== theme.styles) {
|
|
731
|
+
t0 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
732
|
+
bb0: {
|
|
733
|
+
const dockElement = document.getElementById(DOCK_STACK_ELEMENT_ID);
|
|
734
|
+
let t12;
|
|
735
|
+
if ($[8] !== activeEntry || $[9] !== dismissNotification || $[10] !== theme.slots.toastMessage || $[11] !== theme.styles) {
|
|
736
|
+
t12 = (className, polite) => /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: activeEntry && /* @__PURE__ */ jsx(Toast, { className, entry: activeEntry, messageClassName: theme.slots.toastMessage, polite, style: theme.styles.toast, onDismiss: () => dismissNotification(activeEntry.id) }, activeEntry.id) });
|
|
737
|
+
$[8] = activeEntry;
|
|
738
|
+
$[9] = dismissNotification;
|
|
739
|
+
$[10] = theme.slots.toastMessage;
|
|
740
|
+
$[11] = theme.styles;
|
|
741
|
+
$[12] = t12;
|
|
742
|
+
} else {
|
|
743
|
+
t12 = $[12];
|
|
744
|
+
}
|
|
745
|
+
renderToast = t12;
|
|
746
|
+
if (dockElement) {
|
|
747
|
+
t0 = createPortal(renderToast(cn(theme.slots.toast, theme.slots.toastDocked), true), dockElement);
|
|
748
|
+
break bb0;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
$[0] = activeEntry;
|
|
752
|
+
$[1] = dismissNotification;
|
|
753
|
+
$[2] = theme.slots.toast;
|
|
754
|
+
$[3] = theme.slots.toastDocked;
|
|
755
|
+
$[4] = theme.slots.toastMessage;
|
|
756
|
+
$[5] = theme.styles;
|
|
757
|
+
$[6] = renderToast;
|
|
758
|
+
$[7] = t0;
|
|
759
|
+
} else {
|
|
760
|
+
renderToast = $[6];
|
|
761
|
+
t0 = $[7];
|
|
762
|
+
}
|
|
763
|
+
if (t0 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
|
|
764
|
+
return t0;
|
|
765
|
+
}
|
|
766
|
+
const t1 = theme.slots.layer;
|
|
767
|
+
const t2 = theme.styles.layer;
|
|
768
|
+
let t3;
|
|
769
|
+
if ($[13] !== renderToast || $[14] !== theme.slots.toast) {
|
|
770
|
+
t3 = renderToast(theme.slots.toast);
|
|
771
|
+
$[13] = renderToast;
|
|
772
|
+
$[14] = theme.slots.toast;
|
|
773
|
+
$[15] = t3;
|
|
774
|
+
} else {
|
|
775
|
+
t3 = $[15];
|
|
776
|
+
}
|
|
777
|
+
let t4;
|
|
778
|
+
if ($[16] !== t3 || $[17] !== theme.slots.layer || $[18] !== theme.styles.layer) {
|
|
779
|
+
t4 = createPortal(/* @__PURE__ */ jsx("div", { "aria-atomic": "true", "aria-live": "polite", className: t1, style: t2, children: t3 }), document.body);
|
|
780
|
+
$[16] = t3;
|
|
781
|
+
$[17] = theme.slots.layer;
|
|
782
|
+
$[18] = theme.styles.layer;
|
|
783
|
+
$[19] = t4;
|
|
784
|
+
} else {
|
|
785
|
+
t4 = $[19];
|
|
786
|
+
}
|
|
787
|
+
return t4;
|
|
788
|
+
}
|
|
789
|
+
function NotificationLayer() {
|
|
790
|
+
const $ = c(1);
|
|
791
|
+
let t0;
|
|
792
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
793
|
+
t0 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
794
|
+
/* @__PURE__ */ jsx(NotificationListener, {}),
|
|
795
|
+
/* @__PURE__ */ jsx(NotificationContainer, {})
|
|
796
|
+
] });
|
|
797
|
+
$[0] = t0;
|
|
798
|
+
} else {
|
|
799
|
+
t0 = $[0];
|
|
800
|
+
}
|
|
801
|
+
return t0;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
// src/modules/notification/module.tsx
|
|
805
|
+
function selectToastDuration(config) {
|
|
806
|
+
const notification = config.notification;
|
|
807
|
+
if (typeof notification === "number") return notification;
|
|
808
|
+
return notification?.duration ?? null;
|
|
809
|
+
}
|
|
810
|
+
function useNotificationPage(duration, page) {
|
|
811
|
+
const $ = c(5);
|
|
812
|
+
const toast = useToast(duration);
|
|
813
|
+
let t0;
|
|
814
|
+
if ($[0] !== page) {
|
|
815
|
+
t0 = (notification) => page.set({
|
|
816
|
+
notification
|
|
817
|
+
});
|
|
818
|
+
$[0] = page;
|
|
819
|
+
$[1] = t0;
|
|
820
|
+
} else {
|
|
821
|
+
t0 = $[1];
|
|
822
|
+
}
|
|
823
|
+
let t1;
|
|
824
|
+
if ($[2] !== t0 || $[3] !== toast) {
|
|
825
|
+
t1 = {
|
|
826
|
+
set: t0,
|
|
827
|
+
toast
|
|
828
|
+
};
|
|
829
|
+
$[2] = t0;
|
|
830
|
+
$[3] = toast;
|
|
831
|
+
$[4] = t1;
|
|
832
|
+
} else {
|
|
833
|
+
t1 = $[4];
|
|
834
|
+
}
|
|
835
|
+
return t1;
|
|
836
|
+
}
|
|
837
|
+
var notificationModule = defineModule({
|
|
838
|
+
id: "notification",
|
|
839
|
+
context: NotificationContext,
|
|
840
|
+
Provider: NotificationProvider,
|
|
841
|
+
Overlay: NotificationLayer,
|
|
842
|
+
page: {
|
|
843
|
+
select: selectToastDuration,
|
|
844
|
+
use: useNotificationPage
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
export { DOCK_STACK_ELEMENT_ID, INERT_NOTIFICATION_ACTIONS, INITIAL_NOTIFICATION_STATE, NOOP_NOTIFICATION_STORE, NotificationContext, NotificationListener, NotificationProvider, SESSION_EXPIRED_MESSAGE, TOAST_DURATIONS, createNotificationEntry, createSafeAction, err, getActiveNotification, getOutcomeMessage, isErr, isNotificationDataObject, isOk, isResult, map, mapErr, match, normalizeDuration, normalizeFeedbackText, normalizeToastOptions, notificationModule, notificationTheme, ok, tryCatch, unwrap, unwrapOr, useNotification, useNotificationActions, useNotificationContainerModel, useNotificationState, useNotificationVisible, useOptionalNotificationActions, useOptionalNotificationState, useToast, withDefaultDuration };
|
|
849
|
+
//# sourceMappingURL=chunk-2BLGNT5I.js.map
|
|
850
|
+
//# sourceMappingURL=chunk-2BLGNT5I.js.map
|