@omerdlw/base-framework 3.0.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +75 -0
- package/README.md +33 -25
- package/dist/ambient/index.d.ts +1 -0
- package/dist/ambient/index.js +14 -0
- package/dist/ambient/server/index.d.ts +1 -0
- package/dist/ambient/server/index.js +238 -0
- package/dist/ambient/server/index.js.map +1 -0
- package/dist/ambient/worker/index.d.ts +1 -0
- package/dist/ambient/worker/index.js +143 -0
- package/dist/ambient/worker/index.js.map +1 -0
- package/dist/background/index.d.ts +1 -0
- package/dist/background/index.js +13 -0
- package/dist/chunk-2223J34C.js +850 -0
- package/dist/chunk-2223J34C.js.map +1 -0
- package/dist/chunk-2LGI33JP.js +832 -0
- package/dist/chunk-2LGI33JP.js.map +1 -0
- package/dist/chunk-37OBXNEO.js +116 -0
- package/dist/chunk-37OBXNEO.js.map +1 -0
- package/dist/chunk-4OQGXZIH.js +1435 -0
- package/dist/chunk-4OQGXZIH.js.map +1 -0
- package/dist/chunk-5H6FZW3N.js +535 -0
- package/dist/chunk-5H6FZW3N.js.map +1 -0
- package/dist/chunk-7RSRDKYE.js +22 -0
- package/dist/chunk-7RSRDKYE.js.map +1 -0
- package/dist/chunk-AYUEZPAN.js +15762 -0
- package/dist/chunk-AYUEZPAN.js.map +1 -0
- package/dist/chunk-BCFJSPTI.js +261 -0
- package/dist/chunk-BCFJSPTI.js.map +1 -0
- package/dist/chunk-BMFHS3GV.js +118 -0
- package/dist/chunk-BMFHS3GV.js.map +1 -0
- package/dist/chunk-CRKJAACG.js +81 -0
- package/dist/chunk-CRKJAACG.js.map +1 -0
- package/dist/chunk-CT4UILO2.js +537 -0
- package/dist/chunk-CT4UILO2.js.map +1 -0
- package/dist/chunk-ESD5EQ5H.js +178 -0
- package/dist/chunk-ESD5EQ5H.js.map +1 -0
- package/dist/chunk-GCHQ5OC4.js +460 -0
- package/dist/chunk-GCHQ5OC4.js.map +1 -0
- package/dist/chunk-GT4COZI7.js +110 -0
- package/dist/chunk-GT4COZI7.js.map +1 -0
- package/dist/chunk-H6HRU3XN.js +567 -0
- package/dist/chunk-H6HRU3XN.js.map +1 -0
- package/dist/chunk-J3VTDBC6.js +14 -0
- package/dist/chunk-J3VTDBC6.js.map +1 -0
- package/dist/chunk-LTO77WSO.js +140 -0
- package/dist/chunk-LTO77WSO.js.map +1 -0
- package/dist/chunk-MCYHKFZL.js +17 -0
- package/dist/chunk-MCYHKFZL.js.map +1 -0
- package/dist/chunk-NHOJWICA.js +2367 -0
- package/dist/chunk-NHOJWICA.js.map +1 -0
- package/dist/chunk-QMFV53PP.js +1766 -0
- package/dist/chunk-QMFV53PP.js.map +1 -0
- package/dist/chunk-RDYYP36I.js +27 -0
- package/dist/chunk-RDYYP36I.js.map +1 -0
- package/dist/chunk-RF2YGILF.js +656 -0
- package/dist/chunk-RF2YGILF.js.map +1 -0
- package/dist/chunk-RTCJ35UC.js +825 -0
- package/dist/chunk-RTCJ35UC.js.map +1 -0
- package/dist/chunk-TUUGWQY5.js +3488 -0
- package/dist/chunk-TUUGWQY5.js.map +1 -0
- package/dist/chunk-WXEOP6Z4.js +577 -0
- package/dist/chunk-WXEOP6Z4.js.map +1 -0
- package/dist/chunk-WYVA6AN5.js +590 -0
- package/dist/chunk-WYVA6AN5.js.map +1 -0
- package/dist/chunk-Y2Q74PJP.js +537 -0
- package/dist/chunk-Y2Q74PJP.js.map +1 -0
- package/dist/chunk-ZFTQY7OF.js +139 -0
- package/dist/chunk-ZFTQY7OF.js.map +1 -0
- package/dist/chunk-ZSNP26VU.js +493 -0
- package/dist/chunk-ZSNP26VU.js.map +1 -0
- package/dist/context-menu/index.d.ts +1 -0
- package/dist/context-menu/index.js +19 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +10 -0
- package/dist/core/error/boundary.d.ts +27 -0
- package/dist/core/error/boundary.d.ts.map +1 -0
- package/dist/core/error/constants.d.ts +33 -0
- package/dist/core/error/constants.d.ts.map +1 -0
- package/dist/core/error/index.d.ts +9 -0
- package/dist/core/error/index.d.ts.map +1 -0
- package/dist/core/error/listener.d.ts +6 -0
- package/dist/core/error/listener.d.ts.map +1 -0
- package/dist/core/error/reporter.d.ts +49 -0
- package/dist/core/error/reporter.d.ts.map +1 -0
- package/dist/core/error/theme.d.ts +10 -0
- package/dist/core/error/theme.d.ts.map +1 -0
- package/dist/core/error/types.d.ts +128 -0
- package/dist/core/error/types.d.ts.map +1 -0
- package/dist/core/error/utils.d.ts +55 -0
- package/dist/core/error/utils.d.ts.map +1 -0
- package/dist/core/kernel/adapters.d.ts +9 -0
- package/dist/core/kernel/adapters.d.ts.map +1 -0
- package/dist/core/kernel/compose.d.ts +21 -0
- package/dist/core/kernel/compose.d.ts.map +1 -0
- package/dist/core/kernel/constants.d.ts +42 -0
- package/dist/core/kernel/constants.d.ts.map +1 -0
- package/dist/core/kernel/handlers.d.ts +7 -0
- package/dist/core/kernel/handlers.d.ts.map +1 -0
- package/dist/core/kernel/hooks.d.ts +13 -0
- package/dist/core/kernel/hooks.d.ts.map +1 -0
- package/dist/core/kernel/index.d.ts +15 -0
- package/dist/core/kernel/index.d.ts.map +1 -0
- package/dist/core/kernel/installed.d.ts +28 -0
- package/dist/core/kernel/installed.d.ts.map +1 -0
- package/dist/core/kernel/module.d.ts +57 -0
- package/dist/core/kernel/module.d.ts.map +1 -0
- package/dist/core/kernel/operations-records.d.ts +25 -0
- package/dist/core/kernel/operations-records.d.ts.map +1 -0
- package/dist/core/kernel/operations-resolve.d.ts +5 -0
- package/dist/core/kernel/operations-resolve.d.ts.map +1 -0
- package/dist/core/kernel/operations.d.ts +23 -0
- package/dist/core/kernel/operations.d.ts.map +1 -0
- package/dist/core/kernel/page-controller.d.ts +20 -0
- package/dist/core/kernel/page-controller.d.ts.map +1 -0
- package/dist/core/kernel/provider.d.ts +29 -0
- package/dist/core/kernel/provider.d.ts.map +1 -0
- package/dist/core/kernel/runtime.d.ts.map +1 -0
- package/dist/core/kernel/schema.d.ts +13 -0
- package/dist/core/kernel/schema.d.ts.map +1 -0
- package/dist/core/kernel/stabilize.d.ts +13 -0
- package/dist/core/kernel/stabilize.d.ts.map +1 -0
- package/dist/core/kernel/store-batch.d.ts +17 -0
- package/dist/core/kernel/store-batch.d.ts.map +1 -0
- package/dist/core/kernel/store-entries.d.ts +6 -0
- package/dist/core/kernel/store-entries.d.ts.map +1 -0
- package/dist/core/kernel/store-handles.d.ts +4 -0
- package/dist/core/kernel/store-handles.d.ts.map +1 -0
- package/dist/core/kernel/store-registration.d.ts +14 -0
- package/dist/core/kernel/store-registration.d.ts.map +1 -0
- package/dist/core/kernel/store-snapshots.d.ts +14 -0
- package/dist/core/kernel/store-snapshots.d.ts.map +1 -0
- package/dist/core/kernel/store-subscriptions.d.ts +16 -0
- package/dist/core/kernel/store-subscriptions.d.ts.map +1 -0
- package/dist/core/kernel/store.d.ts +8 -0
- package/dist/core/kernel/store.d.ts.map +1 -0
- package/dist/core/kernel/types-modules.d.ts +82 -0
- package/dist/core/kernel/types-modules.d.ts.map +1 -0
- package/dist/core/kernel/types-page.d.ts +67 -0
- package/dist/core/kernel/types-page.d.ts.map +1 -0
- package/dist/core/kernel/types-store.d.ts +71 -0
- package/dist/core/kernel/types-store.d.ts.map +1 -0
- package/dist/core/kernel/types.d.ts +169 -0
- package/dist/core/kernel/types.d.ts.map +1 -0
- package/dist/core/kernel/utils.d.ts +21 -0
- package/dist/core/kernel/utils.d.ts.map +1 -0
- package/dist/core/navigation/constants.d.ts +48 -0
- package/dist/core/navigation/constants.d.ts.map +1 -0
- package/dist/core/navigation/navigator-defaults.d.ts +4 -0
- package/dist/core/navigation/navigator-defaults.d.ts.map +1 -0
- package/dist/core/navigation/navigator-holds.d.ts +8 -0
- package/dist/core/navigation/navigator-holds.d.ts.map +1 -0
- package/dist/core/navigation/navigator-patience.d.ts +15 -0
- package/dist/core/navigation/navigator-patience.d.ts.map +1 -0
- package/dist/core/navigation/navigator-payload.d.ts +6 -0
- package/dist/core/navigation/navigator-payload.d.ts.map +1 -0
- package/dist/core/navigation/navigator-prefetch.d.ts +13 -0
- package/dist/core/navigation/navigator-prefetch.d.ts.map +1 -0
- package/dist/core/navigation/navigator.d.ts +7 -0
- package/dist/core/navigation/navigator.d.ts.map +1 -0
- package/dist/core/navigation/settings.d.ts +12 -0
- package/dist/core/navigation/settings.d.ts.map +1 -0
- package/dist/core/navigation/state.d.ts +26 -0
- package/dist/core/navigation/state.d.ts.map +1 -0
- package/dist/core/navigation/types.d.ts +194 -0
- package/dist/core/navigation/types.d.ts.map +1 -0
- package/dist/core/navigation/utils.d.ts +18 -0
- package/dist/core/navigation/utils.d.ts.map +1 -0
- package/dist/core/provider/index.d.ts +31 -0
- package/dist/core/provider/index.d.ts.map +1 -0
- package/dist/dock/index.d.ts +1 -0
- package/dist/dock/index.js +18 -0
- package/dist/error/index.d.ts +1 -9
- package/dist/error/index.js +8 -5
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +83 -0
- package/dist/events/index.js.map +1 -0
- package/dist/foundation/events/index.d.ts +67 -0
- package/dist/foundation/events/index.d.ts.map +1 -0
- package/dist/foundation/recipes/anatomy.d.ts +139 -0
- package/dist/foundation/recipes/anatomy.d.ts.map +1 -0
- package/dist/foundation/recipes/cn.d.ts +17 -0
- package/dist/foundation/recipes/cn.d.ts.map +1 -0
- package/dist/foundation/recipes/define.d.ts +134 -0
- package/dist/foundation/recipes/define.d.ts.map +1 -0
- package/dist/foundation/recipes/index.d.ts +11 -0
- package/dist/foundation/recipes/index.d.ts.map +1 -0
- package/dist/foundation/recipes/recipe.d.ts +97 -0
- package/dist/foundation/recipes/recipe.d.ts.map +1 -0
- package/dist/foundation/recipes/split.d.ts +10 -0
- package/dist/foundation/recipes/split.d.ts.map +1 -0
- package/dist/foundation/result/index.d.ts +98 -0
- package/dist/foundation/result/index.d.ts.map +1 -0
- package/dist/foundation/utils/dom.d.ts +19 -0
- package/dist/foundation/utils/dom.d.ts.map +1 -0
- package/dist/foundation/utils/index.d.ts +17 -0
- package/dist/foundation/utils/index.d.ts.map +1 -0
- package/dist/foundation/utils/number.d.ts +9 -0
- package/dist/foundation/utils/number.d.ts.map +1 -0
- package/dist/foundation/utils/object.d.ts +17 -0
- package/dist/foundation/utils/object.d.ts.map +1 -0
- package/dist/foundation/utils/report.d.ts +18 -0
- package/dist/foundation/utils/report.d.ts.map +1 -0
- package/dist/foundation/utils/scheduler.d.ts +52 -0
- package/dist/foundation/utils/scheduler.d.ts.map +1 -0
- package/dist/foundation/utils/store.d.ts +21 -0
- package/dist/foundation/utils/store.d.ts.map +1 -0
- package/dist/foundation/utils/string.d.ts +18 -0
- package/dist/foundation/utils/string.d.ts.map +1 -0
- package/dist/foundation/utils/tempo.d.ts +61 -0
- package/dist/foundation/utils/tempo.d.ts.map +1 -0
- package/dist/foundation/utils/timing.d.ts +13 -0
- package/dist/foundation/utils/timing.d.ts.map +1 -0
- package/dist/foundation/utils/transform.d.ts +17 -0
- package/dist/foundation/utils/transform.d.ts.map +1 -0
- package/dist/foundation/utils/user-message.d.ts +32 -0
- package/dist/foundation/utils/user-message.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -10
- package/dist/hooks/index.js +3 -1
- package/dist/index.d.ts +8 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -20
- package/dist/kernel/index.d.ts +1 -15
- package/dist/kernel/index.js +5 -2
- package/dist/loading/index.d.ts +1 -0
- package/dist/loading/index.js +12 -0
- package/dist/media/index.d.ts +1 -0
- package/dist/media/index.js +9 -0
- package/dist/modal/index.d.ts +1 -0
- package/dist/modal/index.js +310 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/modules/ambient/analyze-bounds.d.ts +12 -0
- package/dist/modules/ambient/analyze-bounds.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-clusters.d.ts +14 -0
- package/dist/modules/ambient/analyze-clusters.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-measures.d.ts +22 -0
- package/dist/modules/ambient/analyze-measures.d.ts.map +1 -0
- package/dist/modules/ambient/analyze-swatches.d.ts +16 -0
- package/dist/modules/ambient/analyze-swatches.d.ts.map +1 -0
- package/dist/modules/ambient/analyze.d.ts +9 -49
- package/dist/modules/ambient/analyze.d.ts.map +1 -1
- package/dist/modules/ambient/constants.d.ts +4 -1
- package/dist/modules/ambient/constants.d.ts.map +1 -1
- package/dist/modules/ambient/context.d.ts +6 -0
- package/dist/modules/ambient/context.d.ts.map +1 -1
- package/dist/modules/ambient/dom.d.ts +23 -12
- package/dist/modules/ambient/dom.d.ts.map +1 -1
- package/dist/modules/ambient/extractor.d.ts +6 -4
- package/dist/modules/ambient/extractor.d.ts.map +1 -1
- package/dist/modules/ambient/hooks.d.ts +12 -0
- package/dist/modules/ambient/hooks.d.ts.map +1 -1
- package/dist/modules/ambient/index.d.ts +2 -2
- package/dist/modules/ambient/index.d.ts.map +1 -1
- package/dist/modules/ambient/module.d.ts +12 -1
- package/dist/modules/ambient/module.d.ts.map +1 -1
- package/dist/modules/ambient/oklab.d.ts +18 -13
- package/dist/modules/ambient/oklab.d.ts.map +1 -1
- package/dist/modules/ambient/pipeline.d.ts +0 -7
- package/dist/modules/ambient/pipeline.d.ts.map +1 -1
- package/dist/modules/ambient/quantize.d.ts +2 -9
- package/dist/modules/ambient/quantize.d.ts.map +1 -1
- package/dist/modules/ambient/server/address.d.ts +8 -3
- package/dist/modules/ambient/server/address.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.d.ts +20 -23
- package/dist/modules/ambient/server/index.d.ts.map +1 -1
- package/dist/modules/ambient/settings.d.ts +23 -3
- package/dist/modules/ambient/settings.d.ts.map +1 -1
- package/dist/modules/ambient/types.d.ts +98 -36
- package/dist/modules/ambient/types.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.d.ts +16 -1
- package/dist/modules/ambient/worker/index.d.ts.map +1 -1
- package/dist/modules/background/components/background-gradients.d.ts +8 -0
- package/dist/modules/background/components/background-gradients.d.ts.map +1 -0
- package/dist/modules/background/components/edge-gradient.d.ts +9 -0
- package/dist/modules/background/components/edge-gradient.d.ts.map +1 -0
- package/dist/modules/background/components/native-video.d.ts +4 -0
- package/dist/modules/background/components/native-video.d.ts.map +1 -0
- package/dist/modules/background/components/noise-overlay.d.ts +11 -0
- package/dist/modules/background/components/noise-overlay.d.ts.map +1 -0
- package/dist/modules/background/components/overlay.d.ts +6 -0
- package/dist/modules/background/components/overlay.d.ts.map +1 -0
- package/dist/modules/background/components/solid-overlay.d.ts +10 -0
- package/dist/modules/background/components/solid-overlay.d.ts.map +1 -0
- package/dist/modules/background/constants.d.ts +14 -1
- package/dist/modules/background/constants.d.ts.map +1 -1
- package/dist/modules/background/context.d.ts +7 -0
- package/dist/modules/background/context.d.ts.map +1 -1
- package/dist/modules/background/hooks/use-background-media-source.d.ts +4 -0
- package/dist/modules/background/hooks/use-background-media-source.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts +15 -0
- package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts +929 -0
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +1 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts +22 -0
- package/dist/modules/background/hooks/use-native-video-model.d.ts.map +1 -0
- package/dist/modules/background/hooks.d.ts +20 -1
- package/dist/modules/background/hooks.d.ts.map +1 -1
- package/dist/modules/background/index.d.ts +7 -7
- package/dist/modules/background/index.d.ts.map +1 -1
- package/dist/modules/background/lib/theme.d.ts +4 -0
- package/dist/modules/background/lib/theme.d.ts.map +1 -0
- package/dist/modules/background/model/override.d.ts +14 -0
- package/dist/modules/background/model/override.d.ts.map +1 -0
- package/dist/modules/background/model/playback.d.ts +25 -0
- package/dist/modules/background/model/playback.d.ts.map +1 -0
- package/dist/modules/background/model/state.d.ts +31 -0
- package/dist/modules/background/model/state.d.ts.map +1 -0
- package/dist/modules/background/model/video-frame.d.ts +31 -0
- package/dist/modules/background/model/video-frame.d.ts.map +1 -0
- package/dist/modules/background/model/visual.d.ts +932 -0
- package/dist/modules/background/model/visual.d.ts.map +1 -0
- package/dist/modules/background/module.d.ts +11 -0
- package/dist/modules/background/module.d.ts.map +1 -1
- package/dist/modules/background/motion.d.ts.map +1 -1
- package/dist/modules/background/types.d.ts +66 -10
- package/dist/modules/background/types.d.ts.map +1 -1
- package/dist/modules/background/youtube/components/player.d.ts +7 -0
- package/dist/modules/background/youtube/components/player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts +27 -0
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +20 -0
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +8 -0
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +1 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts +16 -0
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/audio.d.ts +17 -0
- package/dist/modules/background/youtube/lib/audio.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts +29 -0
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts +47 -0
- package/dist/modules/background/youtube/lib/iframe.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/parse.d.ts +36 -0
- package/dist/modules/background/youtube/lib/parse.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/timing.d.ts +11 -0
- package/dist/modules/background/youtube/lib/timing.d.ts.map +1 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts +53 -0
- package/dist/modules/background/youtube/lib/video-events.d.ts.map +1 -0
- package/dist/modules/context-menu/constants.d.ts +30 -1
- package/dist/modules/context-menu/constants.d.ts.map +1 -1
- package/dist/modules/context-menu/context.d.ts +10 -2
- package/dist/modules/context-menu/context.d.ts.map +1 -1
- package/dist/modules/context-menu/dom.d.ts +13 -0
- package/dist/modules/context-menu/dom.d.ts.map +1 -1
- package/dist/modules/context-menu/hooks.d.ts +32 -5
- package/dist/modules/context-menu/hooks.d.ts.map +1 -1
- package/dist/modules/context-menu/index.d.ts +1 -1
- package/dist/modules/context-menu/index.d.ts.map +1 -1
- package/dist/modules/context-menu/items.d.ts +25 -0
- package/dist/modules/context-menu/items.d.ts.map +1 -1
- package/dist/modules/context-menu/module.d.ts +6 -0
- package/dist/modules/context-menu/module.d.ts.map +1 -1
- package/dist/modules/context-menu/motion.d.ts.map +1 -1
- package/dist/modules/context-menu/overlay.d.ts +30 -8
- package/dist/modules/context-menu/overlay.d.ts.map +1 -1
- package/dist/modules/context-menu/resolver.d.ts +8 -0
- package/dist/modules/context-menu/resolver.d.ts.map +1 -1
- package/dist/modules/context-menu/state.d.ts +9 -0
- package/dist/modules/context-menu/state.d.ts.map +1 -1
- package/dist/modules/context-menu/types.d.ts +85 -9
- package/dist/modules/context-menu/types.d.ts.map +1 -1
- package/dist/modules/controls/constants.d.ts +18 -1
- package/dist/modules/controls/constants.d.ts.map +1 -1
- package/dist/modules/controls/entries.d.ts +23 -1
- package/dist/modules/controls/entries.d.ts.map +1 -1
- package/dist/modules/controls/hooks.d.ts +11 -1
- package/dist/modules/controls/hooks.d.ts.map +1 -1
- package/dist/modules/controls/layout.d.ts +17 -0
- package/dist/modules/controls/layout.d.ts.map +1 -1
- package/dist/modules/controls/module.d.ts +7 -1
- package/dist/modules/controls/module.d.ts.map +1 -1
- package/dist/modules/controls/overlay.d.ts +11 -1
- package/dist/modules/controls/overlay.d.ts.map +1 -1
- package/dist/modules/controls/types.d.ts +51 -2
- package/dist/modules/controls/types.d.ts.map +1 -1
- package/dist/modules/dock/components/badge.d.ts +5 -0
- package/dist/modules/dock/components/badge.d.ts.map +1 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts +6 -0
- package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +1 -0
- package/dist/modules/dock/components/card-banner.d.ts +4 -0
- package/dist/modules/dock/components/card-banner.d.ts.map +1 -0
- package/dist/modules/dock/components/card-header.d.ts +4 -0
- package/dist/modules/dock/components/card-header.d.ts.map +1 -0
- package/dist/modules/dock/components/card-item.d.ts +3 -0
- package/dist/modules/dock/components/card-item.d.ts.map +1 -0
- package/dist/modules/dock/components/command-bar.d.ts +7 -0
- package/dist/modules/dock/components/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/description.d.ts +4 -0
- package/dist/modules/dock/components/description.d.ts.map +1 -0
- package/dist/modules/dock/components/dock.d.ts +4 -0
- package/dist/modules/dock/components/dock.d.ts.map +1 -0
- package/dist/modules/dock/components/hud-view.d.ts +7 -0
- package/dist/modules/dock/components/hud-view.d.ts.map +1 -0
- package/dist/modules/dock/components/icon.d.ts +6 -0
- package/dist/modules/dock/components/icon.d.ts.map +1 -0
- package/dist/modules/dock/components/item-content.d.ts +4 -0
- package/dist/modules/dock/components/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/media-action.d.ts +4 -0
- package/dist/modules/dock/components/media-action.d.ts.map +1 -0
- package/dist/modules/dock/components/media-controls.d.ts +4 -0
- package/dist/modules/dock/components/media-controls.d.ts.map +1 -0
- package/dist/modules/dock/components/media-scrubber.d.ts +5 -0
- package/dist/modules/dock/components/media-scrubber.d.ts.map +1 -0
- package/dist/modules/dock/components/status-actions.d.ts +10 -0
- package/dist/modules/dock/components/status-actions.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/action.d.ts +17 -0
- package/dist/modules/dock/components/surface/action.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/controls.d.ts +12 -0
- package/dist/modules/dock/components/surface/controls.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts +5 -0
- package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/header-button.d.ts +14 -0
- package/dist/modules/dock/components/surface/header-button.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/item-content.d.ts +6 -0
- package/dist/modules/dock/components/surface/item-content.d.ts.map +1 -0
- package/dist/modules/dock/components/surface/shell.d.ts +3 -0
- package/dist/modules/dock/components/surface/shell.d.ts.map +1 -0
- package/dist/modules/dock/components/title.d.ts +4 -0
- package/dist/modules/dock/components/title.d.ts.map +1 -0
- package/dist/modules/dock/constants.d.ts +11 -2
- package/dist/modules/dock/constants.d.ts.map +1 -1
- package/dist/modules/dock/context.d.ts +8 -2
- package/dist/modules/dock/context.d.ts.map +1 -1
- package/dist/modules/dock/hooks/use-action-slot.d.ts +6 -0
- package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-badge.d.ts +4 -0
- package/dist/modules/dock/hooks/use-badge.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts +18 -0
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts +7 -0
- package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts +1612 -0
- package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts +19 -0
- package/dist/modules/dock/hooks/use-dock-config.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +7 -0
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +11 -0
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts +8 -0
- package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +2 -0
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts +6 -0
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts +3 -0
- package/dist/modules/dock/hooks/use-element-height.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts +16 -0
- package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts +9 -0
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +27 -0
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +12 -0
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +1 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts +8 -0
- package/dist/modules/dock/hooks/use-surface-return.d.ts.map +1 -0
- package/dist/modules/dock/hud.d.ts +8 -34
- package/dist/modules/dock/hud.d.ts.map +1 -1
- package/dist/modules/dock/index.d.ts +18 -12
- package/dist/modules/dock/index.d.ts.map +1 -1
- package/dist/modules/dock/lib/banner.d.ts +43 -0
- package/dist/modules/dock/lib/banner.d.ts.map +1 -0
- package/dist/modules/dock/lib/card-item.d.ts +46 -0
- package/dist/modules/dock/lib/card-item.d.ts.map +1 -0
- package/dist/modules/dock/lib/card.d.ts +20 -0
- package/dist/modules/dock/lib/card.d.ts.map +1 -0
- package/dist/modules/dock/lib/command-bar.d.ts +8 -0
- package/dist/modules/dock/lib/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/lib/dom.d.ts +7 -0
- package/dist/modules/dock/lib/dom.d.ts.map +1 -0
- package/dist/modules/dock/lib/element-helpers.d.ts +8 -0
- package/dist/modules/dock/lib/element-helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/helpers.d.ts +19 -0
- package/dist/modules/dock/lib/helpers.d.ts.map +1 -0
- package/dist/modules/dock/lib/media.d.ts +35 -0
- package/dist/modules/dock/lib/media.d.ts.map +1 -0
- package/dist/modules/dock/lib/styles.d.ts +902 -0
- package/dist/modules/dock/lib/styles.d.ts.map +1 -0
- package/dist/modules/dock/model/hud-definition.d.ts +13 -0
- package/dist/modules/dock/model/hud-definition.d.ts.map +1 -0
- package/dist/modules/dock/model/hud.d.ts +10 -0
- package/dist/modules/dock/model/hud.d.ts.map +1 -0
- package/dist/modules/dock/model/layout.d.ts +28 -0
- package/dist/modules/dock/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/model/page-entry.d.ts +11 -0
- package/dist/modules/dock/model/page-entry.d.ts.map +1 -0
- package/dist/modules/dock/model/page-surface.d.ts +4 -0
- package/dist/modules/dock/model/page-surface.d.ts.map +1 -0
- package/dist/modules/dock/model/paths.d.ts +15 -0
- package/dist/modules/dock/model/paths.d.ts.map +1 -0
- package/dist/modules/dock/model/state.d.ts +28 -0
- package/dist/modules/dock/model/state.d.ts.map +1 -0
- package/dist/modules/dock/model/surface-return.d.ts +14 -0
- package/dist/modules/dock/model/surface-return.d.ts.map +1 -0
- package/dist/modules/dock/module.d.ts +5 -7
- package/dist/modules/dock/module.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +716 -11
- package/dist/modules/dock/motion.d.ts.map +1 -1
- package/dist/modules/dock/provider.d.ts +2 -1
- package/dist/modules/dock/provider.d.ts.map +1 -1
- package/dist/modules/dock/routing/breadcrumbs.d.ts +6 -2
- package/dist/modules/dock/routing/breadcrumbs.d.ts.map +1 -1
- package/dist/modules/dock/routing/continuity.d.ts +46 -14
- package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
- package/dist/modules/dock/routing/guards.d.ts +10 -1
- package/dist/modules/dock/routing/guards.d.ts.map +1 -1
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts +12 -0
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +1 -0
- package/dist/modules/dock/routing/lib/restore.d.ts +7 -0
- package/dist/modules/dock/routing/lib/restore.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/continuity.d.ts +21 -0
- package/dist/modules/dock/routing/model/continuity.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/policy.d.ts +7 -0
- package/dist/modules/dock/routing/model/policy.d.ts.map +1 -0
- package/dist/modules/dock/routing/model/topology.d.ts +5 -0
- package/dist/modules/dock/routing/model/topology.d.ts.map +1 -0
- package/dist/modules/dock/routing/navigation.d.ts +10 -23
- package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
- package/dist/modules/dock/runtime/commands.d.ts +10 -1
- package/dist/modules/dock/runtime/commands.d.ts.map +1 -1
- package/dist/modules/dock/runtime/display.d.ts +9 -48
- package/dist/modules/dock/runtime/display.d.ts.map +1 -1
- package/dist/modules/dock/runtime/dock.d.ts +11 -70
- package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +10 -0
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +14 -0
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +7 -0
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +1 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts +30 -0
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/attention.d.ts +25 -0
- package/dist/modules/dock/runtime/model/attention.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/cards.d.ts +64 -0
- package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/items.d.ts +31 -0
- package/dist/modules/dock/runtime/model/items.d.ts.map +1 -0
- package/dist/modules/dock/runtime/model/layout.d.ts +10 -0
- package/dist/modules/dock/runtime/model/layout.d.ts.map +1 -0
- package/dist/modules/dock/runtime/pipeline.d.ts +1 -1
- package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
- package/dist/modules/dock/runtime/provider-actions.d.ts +38 -0
- package/dist/modules/dock/runtime/provider-actions.d.ts.map +1 -0
- package/dist/modules/dock/status/action-options.d.ts +35 -0
- package/dist/modules/dock/status/action-options.d.ts.map +1 -0
- package/dist/modules/dock/status/events.d.ts +2 -2
- package/dist/modules/dock/status/events.d.ts.map +1 -1
- package/dist/modules/dock/status/hooks.d.ts +1 -1
- package/dist/modules/dock/status/hooks.d.ts.map +1 -1
- package/dist/modules/dock/status/model.d.ts +12 -32
- package/dist/modules/dock/status/model.d.ts.map +1 -1
- package/dist/modules/dock/status/state.d.ts +12 -0
- package/dist/modules/dock/status/state.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +5 -0
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +7 -0
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +1 -0
- package/dist/modules/dock/surface/constants.d.ts +5 -0
- package/dist/modules/dock/surface/constants.d.ts.map +1 -0
- package/dist/modules/dock/surface/context.d.ts +14 -1
- package/dist/modules/dock/surface/context.d.ts.map +1 -1
- package/dist/modules/dock/surface/definition.d.ts +28 -2
- package/dist/modules/dock/surface/definition.d.ts.map +1 -1
- package/dist/modules/dock/surface/helpers.d.ts +2 -1
- package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +15 -0
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +7 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +14 -0
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts +20 -0
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +13 -0
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts +28 -0
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/drag.d.ts +9 -0
- package/dist/modules/dock/surface/lib/drag.d.ts.map +1 -0
- package/dist/modules/dock/surface/lib/target.d.ts +8 -0
- package/dist/modules/dock/surface/lib/target.d.ts.map +1 -0
- package/dist/modules/dock/surface/machine.d.ts +17 -62
- package/dist/modules/dock/surface/machine.d.ts.map +1 -1
- package/dist/modules/dock/surface/model/builder.d.ts +39 -0
- package/dist/modules/dock/surface/model/builder.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/normalize.d.ts +13 -0
- package/dist/modules/dock/surface/model/normalize.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/open.d.ts +26 -0
- package/dist/modules/dock/surface/model/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/records.d.ts +45 -0
- package/dist/modules/dock/surface/model/records.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/steps.d.ts +9 -0
- package/dist/modules/dock/surface/model/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts +23 -0
- package/dist/modules/dock/surface/model/transition-state.d.ts.map +1 -0
- package/dist/modules/dock/surface/model/url.d.ts +14 -0
- package/dist/modules/dock/surface/model/url.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts +22 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/context.d.ts +29 -0
- package/dist/modules/dock/surface/runtime/context.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts +21 -0
- package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/open.d.ts +6 -0
- package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/release.d.ts +9 -0
- package/dist/modules/dock/surface/runtime/release.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts +10 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -0
- package/dist/modules/dock/surface/stack.d.ts +20 -11
- package/dist/modules/dock/surface/stack.d.ts.map +1 -1
- package/dist/modules/dock/surface/view-model.d.ts +5 -1
- package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
- package/dist/modules/dock/types/card.d.ts +297 -0
- package/dist/modules/dock/types/card.d.ts.map +1 -0
- package/dist/modules/dock/types/hud.d.ts +142 -0
- package/dist/modules/dock/types/hud.d.ts.map +1 -0
- package/dist/modules/dock/types/index.d.ts +8 -0
- package/dist/modules/dock/types/index.d.ts.map +1 -0
- package/dist/modules/dock/types/media.d.ts +66 -0
- package/dist/modules/dock/types/media.d.ts.map +1 -0
- package/dist/modules/dock/types/routing.d.ts +336 -0
- package/dist/modules/dock/types/routing.d.ts.map +1 -0
- package/dist/modules/dock/types/surface-flow.d.ts +231 -0
- package/dist/modules/dock/types/surface-flow.d.ts.map +1 -0
- package/dist/modules/dock/types/surface.d.ts +194 -0
- package/dist/modules/dock/types/surface.d.ts.map +1 -0
- package/dist/modules/dock/types/theme.d.ts +201 -0
- package/dist/modules/dock/types/theme.d.ts.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +23 -18
- package/dist/modules/loading/constants.d.ts +18 -1
- package/dist/modules/loading/constants.d.ts.map +1 -1
- package/dist/modules/loading/context.d.ts +11 -1
- package/dist/modules/loading/context.d.ts.map +1 -1
- package/dist/modules/loading/hooks.d.ts +24 -1
- package/dist/modules/loading/hooks.d.ts.map +1 -1
- package/dist/modules/loading/index.d.ts +1 -1
- package/dist/modules/loading/index.d.ts.map +1 -1
- package/dist/modules/loading/module.d.ts +6 -0
- package/dist/modules/loading/module.d.ts.map +1 -1
- package/dist/modules/loading/overlay.d.ts +3 -0
- package/dist/modules/loading/overlay.d.ts.map +1 -1
- package/dist/modules/loading/state.d.ts +13 -0
- package/dist/modules/loading/state.d.ts.map +1 -1
- package/dist/modules/loading/types.d.ts +42 -2
- package/dist/modules/loading/types.d.ts.map +1 -1
- package/dist/modules/media/constants.d.ts +19 -0
- package/dist/modules/media/constants.d.ts.map +1 -1
- package/dist/modules/media/context.d.ts +11 -1
- package/dist/modules/media/context.d.ts.map +1 -1
- package/dist/modules/media/hooks.d.ts +17 -0
- package/dist/modules/media/hooks.d.ts.map +1 -1
- package/dist/modules/media/index.d.ts +1 -1
- package/dist/modules/media/index.d.ts.map +1 -1
- package/dist/modules/media/module.d.ts +4 -0
- package/dist/modules/media/module.d.ts.map +1 -1
- package/dist/modules/media/overlay.d.ts +7 -0
- package/dist/modules/media/overlay.d.ts.map +1 -1
- package/dist/modules/media/playback.d.ts +13 -0
- package/dist/modules/media/playback.d.ts.map +1 -1
- package/dist/modules/media/session.d.ts +20 -0
- package/dist/modules/media/session.d.ts.map +1 -1
- package/dist/modules/media/types.d.ts +49 -2
- package/dist/modules/media/types.d.ts.map +1 -1
- package/dist/modules/modal/components/close-button.d.ts +6 -0
- package/dist/modules/modal/components/close-button.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-container.d.ts +7 -0
- package/dist/modules/modal/components/modal-container.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts +9 -0
- package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +1 -0
- package/dist/modules/modal/components/modal-layer.d.ts +17 -0
- package/dist/modules/modal/components/modal-layer.d.ts.map +1 -0
- package/dist/modules/modal/components/overlay.d.ts +6 -0
- package/dist/modules/modal/components/overlay.d.ts.map +1 -0
- package/dist/modules/modal/components/resolve-header.d.ts +10 -0
- package/dist/modules/modal/components/resolve-header.d.ts.map +1 -0
- package/dist/modules/modal/components/slot-row.d.ts +12 -0
- package/dist/modules/modal/components/slot-row.d.ts.map +1 -0
- package/dist/modules/modal/constants.d.ts +16 -1
- package/dist/modules/modal/constants.d.ts.map +1 -1
- package/dist/modules/modal/context.d.ts +7 -1
- package/dist/modules/modal/context.d.ts.map +1 -1
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +3 -0
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +12 -0
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +1 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +3 -0
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +1 -0
- package/dist/modules/modal/hooks.d.ts +30 -4
- package/dist/modules/modal/hooks.d.ts.map +1 -1
- package/dist/modules/modal/index.d.ts +8 -7
- package/dist/modules/modal/index.d.ts.map +1 -1
- package/dist/modules/modal/lib/dom.d.ts +13 -0
- package/dist/modules/modal/lib/dom.d.ts.map +1 -0
- package/dist/modules/modal/lib/theme.d.ts +4 -0
- package/dist/modules/modal/lib/theme.d.ts.map +1 -0
- package/dist/modules/modal/model/entry.d.ts +18 -0
- package/dist/modules/modal/model/entry.d.ts.map +1 -0
- package/dist/modules/modal/model/header.d.ts +16 -0
- package/dist/modules/modal/model/header.d.ts.map +1 -0
- package/dist/modules/modal/model/identity.d.ts +13 -0
- package/dist/modules/modal/model/identity.d.ts.map +1 -0
- package/dist/modules/modal/model/layout.d.ts +37 -0
- package/dist/modules/modal/model/layout.d.ts.map +1 -0
- package/dist/modules/modal/model/state.d.ts +10 -0
- package/dist/modules/modal/model/state.d.ts.map +1 -0
- package/dist/modules/modal/module.d.ts +7 -0
- package/dist/modules/modal/module.d.ts.map +1 -1
- package/dist/modules/modal/motion.d.ts.map +1 -1
- package/dist/modules/modal/types.d.ts +73 -10
- package/dist/modules/modal/types.d.ts.map +1 -1
- package/dist/modules/navigation/context.d.ts +16 -5
- package/dist/modules/navigation/context.d.ts.map +1 -1
- package/dist/modules/navigation/hooks.d.ts +22 -13
- package/dist/modules/navigation/hooks.d.ts.map +1 -1
- package/dist/modules/navigation/index.d.ts +5 -5
- package/dist/modules/navigation/index.d.ts.map +1 -1
- package/dist/modules/navigation/listeners.d.ts +6 -8
- package/dist/modules/navigation/listeners.d.ts.map +1 -1
- package/dist/modules/navigation/module.d.ts +5 -2
- package/dist/modules/navigation/module.d.ts.map +1 -1
- package/dist/modules/notification/constants.d.ts +22 -2
- package/dist/modules/notification/constants.d.ts.map +1 -1
- package/dist/modules/notification/context.d.ts +12 -2
- package/dist/modules/notification/context.d.ts.map +1 -1
- package/dist/modules/notification/hooks.d.ts +32 -1
- package/dist/modules/notification/hooks.d.ts.map +1 -1
- package/dist/modules/notification/module.d.ts +3 -0
- package/dist/modules/notification/module.d.ts.map +1 -1
- package/dist/modules/notification/motion.d.ts.map +1 -1
- package/dist/modules/notification/overlay.d.ts.map +1 -1
- package/dist/modules/notification/state.d.ts +28 -0
- package/dist/modules/notification/state.d.ts.map +1 -1
- package/dist/modules/notification/types.d.ts +48 -5
- package/dist/modules/notification/types.d.ts.map +1 -1
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.js +189 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/index.js +11 -0
- package/dist/overlay-QHSJBV3O.js +13 -0
- package/dist/overlay-QHSJBV3O.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.js +14 -0
- package/dist/react/context/index.d.ts +4 -0
- package/dist/react/context/index.d.ts.map +1 -0
- package/dist/react/hooks/index.d.ts +10 -0
- package/dist/react/hooks/index.d.ts.map +1 -0
- package/dist/react/hooks/types.d.ts +25 -0
- package/dist/react/hooks/types.d.ts.map +1 -0
- package/dist/react/hooks/use-click-outside.d.ts +6 -0
- package/dist/react/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/react/hooks/use-controllable-state.d.ts +7 -0
- package/dist/react/hooks/use-controllable-state.d.ts.map +1 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts +7 -0
- package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -0
- package/dist/react/hooks/use-global-event.d.ts +9 -0
- package/dist/react/hooks/use-global-event.d.ts.map +1 -0
- package/dist/react/hooks/use-hotkey.d.ts +10 -0
- package/dist/react/hooks/use-hotkey.d.ts.map +1 -0
- package/dist/react/hooks/use-required-context.d.ts +6 -0
- package/dist/react/hooks/use-required-context.d.ts.map +1 -0
- package/dist/react/hooks/use-scroll-lock.d.ts +9 -0
- package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/react/hooks/use-store.d.ts +3 -0
- package/dist/react/hooks/use-store.d.ts.map +1 -0
- package/dist/react/theme/index.d.ts +82 -0
- package/dist/react/theme/index.d.ts.map +1 -0
- package/dist/react/ui/components/avatar.d.ts +6 -0
- package/dist/react/ui/components/avatar.d.ts.map +1 -0
- package/dist/react/ui/components/button.d.ts +6 -0
- package/dist/react/ui/components/button.d.ts.map +1 -0
- package/dist/react/ui/components/carousel.d.ts +6 -0
- package/dist/react/ui/components/carousel.d.ts.map +1 -0
- package/dist/react/ui/components/checkbox.d.ts +10 -0
- package/dist/react/ui/components/checkbox.d.ts.map +1 -0
- package/dist/react/ui/components/icon.d.ts +6 -0
- package/dist/react/ui/components/icon.d.ts.map +1 -0
- package/dist/react/ui/components/image.d.ts +6 -0
- package/dist/react/ui/components/image.d.ts.map +1 -0
- package/dist/react/ui/components/indicator.d.ts +45 -0
- package/dist/react/ui/components/indicator.d.ts.map +1 -0
- package/dist/react/ui/components/input.d.ts +10 -0
- package/dist/react/ui/components/input.d.ts.map +1 -0
- package/dist/react/ui/components/loader.d.ts +10 -0
- package/dist/react/ui/components/loader.d.ts.map +1 -0
- package/dist/react/ui/components/segmented.d.ts +6 -0
- package/dist/react/ui/components/segmented.d.ts.map +1 -0
- package/dist/react/ui/components/select-parts.d.ts +22 -0
- package/dist/react/ui/components/select-parts.d.ts.map +1 -0
- package/dist/react/ui/components/select.d.ts +6 -0
- package/dist/react/ui/components/select.d.ts.map +1 -0
- package/dist/react/ui/components/skeleton.d.ts +10 -0
- package/dist/react/ui/components/skeleton.d.ts.map +1 -0
- package/dist/react/ui/components/switch.d.ts +6 -0
- package/dist/react/ui/components/switch.d.ts.map +1 -0
- package/dist/react/ui/components/tooltip.d.ts +11 -0
- package/dist/react/ui/components/tooltip.d.ts.map +1 -0
- package/dist/react/ui/index.d.ts +19 -0
- package/dist/react/ui/index.d.ts.map +1 -0
- package/dist/react/ui/provider.d.ts +22 -0
- package/dist/react/ui/provider.d.ts.map +1 -0
- package/dist/react/ui/types-controls.d.ts +133 -0
- package/dist/react/ui/types-controls.d.ts.map +1 -0
- package/dist/react/ui/types.d.ts +192 -0
- package/dist/react/ui/types.d.ts.map +1 -0
- package/dist/react/ui/utils.d.ts +65 -0
- package/dist/react/ui/utils.d.ts.map +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/recipes/index.js +233 -0
- package/dist/recipes/index.js.map +1 -0
- package/dist/result/index.d.ts +1 -0
- package/dist/result/index.js +98 -0
- package/dist/result/index.js.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +6 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +2268 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/utils/index.d.ts +1 -15
- package/dist/utils/index.js +194 -71
- package/dist/utils/index.js.map +1 -1
- package/docs/README.md +58 -57
- package/docs/architecture-and-rules.md +133 -58
- package/docs/core-engine.md +36 -52
- package/docs/custom-modules.md +43 -32
- package/docs/design.md +185 -0
- package/docs/getting-started.md +49 -57
- package/docs/modules/README.md +50 -61
- package/docs/modules/ambient.md +95 -87
- package/docs/modules/background.md +39 -36
- package/docs/modules/context-menu.md +19 -18
- package/docs/modules/controls.md +13 -13
- package/docs/modules/dock.md +74 -93
- package/docs/modules/error-boundary.md +2 -2
- package/docs/modules/kernel.md +38 -26
- package/docs/modules/loading.md +14 -14
- package/docs/modules/media.md +13 -13
- package/docs/modules/modal.md +14 -14
- package/docs/modules/navigation.md +87 -84
- package/docs/modules/notification.md +13 -13
- package/docs/modules/result.md +22 -22
- package/docs/proposals/navigation.md +32 -31
- package/docs/testing.md +34 -28
- package/docs/theming.md +67 -44
- package/package.json +106 -88
- package/templates/AGENTS.md +35 -25
- package/dist/atoms/button.d.ts +0 -11
- package/dist/atoms/button.d.ts.map +0 -1
- package/dist/atoms/icon.d.ts +0 -15
- package/dist/atoms/icon.d.ts.map +0 -1
- package/dist/atoms/index.d.ts +0 -5
- package/dist/atoms/index.d.ts.map +0 -1
- package/dist/atoms/index.js +0 -4
- package/dist/atoms/spinner.d.ts +0 -9
- package/dist/atoms/spinner.d.ts.map +0 -1
- package/dist/atoms/tooltip.d.ts +0 -18
- package/dist/atoms/tooltip.d.ts.map +0 -1
- package/dist/chunk-3BUP64Q6.js +0 -105
- package/dist/chunk-3BUP64Q6.js.map +0 -1
- package/dist/chunk-4GMQKD6F.js +0 -353
- package/dist/chunk-4GMQKD6F.js.map +0 -1
- package/dist/chunk-66EYJBIP.js +0 -300
- package/dist/chunk-66EYJBIP.js.map +0 -1
- package/dist/chunk-7HQMXTNP.js +0 -419
- package/dist/chunk-7HQMXTNP.js.map +0 -1
- package/dist/chunk-7TAVYJ3A.js +0 -371
- package/dist/chunk-7TAVYJ3A.js.map +0 -1
- package/dist/chunk-AQ4BNXA2.js +0 -349
- package/dist/chunk-AQ4BNXA2.js.map +0 -1
- package/dist/chunk-CGHZSSFR.js +0 -2166
- package/dist/chunk-CGHZSSFR.js.map +0 -1
- package/dist/chunk-DGCQWQLZ.js +0 -61
- package/dist/chunk-DGCQWQLZ.js.map +0 -1
- package/dist/chunk-FIMPHODX.js +0 -67
- package/dist/chunk-FIMPHODX.js.map +0 -1
- package/dist/chunk-GF7TUX5I.js +0 -1889
- package/dist/chunk-GF7TUX5I.js.map +0 -1
- package/dist/chunk-HHWRTQKQ.js +0 -610
- package/dist/chunk-HHWRTQKQ.js.map +0 -1
- package/dist/chunk-HLL5EHXC.js +0 -485
- package/dist/chunk-HLL5EHXC.js.map +0 -1
- package/dist/chunk-I5GK7VOV.js +0 -28
- package/dist/chunk-I5GK7VOV.js.map +0 -1
- package/dist/chunk-JELG4JLT.js +0 -454
- package/dist/chunk-JELG4JLT.js.map +0 -1
- package/dist/chunk-K676GL7Z.js +0 -51
- package/dist/chunk-K676GL7Z.js.map +0 -1
- package/dist/chunk-QI3ALLIB.js +0 -38
- package/dist/chunk-QI3ALLIB.js.map +0 -1
- package/dist/chunk-R2YGFJDJ.js +0 -408
- package/dist/chunk-R2YGFJDJ.js.map +0 -1
- package/dist/chunk-RFZQWLC5.js +0 -27
- package/dist/chunk-RFZQWLC5.js.map +0 -1
- package/dist/chunk-RIOKLMYM.js +0 -145
- package/dist/chunk-RIOKLMYM.js.map +0 -1
- package/dist/chunk-RRAZKP3J.js +0 -888
- package/dist/chunk-RRAZKP3J.js.map +0 -1
- package/dist/chunk-SYAVGTOX.js +0 -521
- package/dist/chunk-SYAVGTOX.js.map +0 -1
- package/dist/chunk-TG6NMHXI.js +0 -1218
- package/dist/chunk-TG6NMHXI.js.map +0 -1
- package/dist/chunk-TV3WEF5G.js +0 -784
- package/dist/chunk-TV3WEF5G.js.map +0 -1
- package/dist/chunk-WVRMABDN.js +0 -9727
- package/dist/chunk-WVRMABDN.js.map +0 -1
- package/dist/error/boundary.d.ts +0 -14
- package/dist/error/boundary.d.ts.map +0 -1
- package/dist/error/constants.d.ts +0 -18
- package/dist/error/constants.d.ts.map +0 -1
- package/dist/error/index.d.ts.map +0 -1
- package/dist/error/listener.d.ts +0 -2
- package/dist/error/listener.d.ts.map +0 -1
- package/dist/error/reporter.d.ts +0 -32
- package/dist/error/reporter.d.ts.map +0 -1
- package/dist/error/theme.d.ts +0 -3
- package/dist/error/theme.d.ts.map +0 -1
- package/dist/error/types.d.ts +0 -91
- package/dist/error/types.d.ts.map +0 -1
- package/dist/error/utils.d.ts +0 -21
- package/dist/error/utils.d.ts.map +0 -1
- package/dist/events.d.ts +0 -51
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -82
- package/dist/events.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/types.d.ts +0 -16
- package/dist/hooks/types.d.ts.map +0 -1
- package/dist/hooks/use-click-outside.d.ts +0 -3
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-controllable-state.d.ts +0 -3
- package/dist/hooks/use-controllable-state.d.ts.map +0 -1
- package/dist/hooks/use-fullscreen-state.d.ts +0 -4
- package/dist/hooks/use-fullscreen-state.d.ts.map +0 -1
- package/dist/hooks/use-global-event.d.ts +0 -5
- package/dist/hooks/use-global-event.d.ts.map +0 -1
- package/dist/hooks/use-hotkey.d.ts +0 -4
- package/dist/hooks/use-hotkey.d.ts.map +0 -1
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +0 -3
- package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +0 -1
- package/dist/hooks/use-required-context.d.ts +0 -3
- package/dist/hooks/use-required-context.d.ts.map +0 -1
- package/dist/hooks/use-store.d.ts +0 -3
- package/dist/hooks/use-store.d.ts.map +0 -1
- package/dist/kernel/adapters.d.ts +0 -5
- package/dist/kernel/adapters.d.ts.map +0 -1
- package/dist/kernel/compose.d.ts +0 -15
- package/dist/kernel/compose.d.ts.map +0 -1
- package/dist/kernel/constants.d.ts +0 -12
- package/dist/kernel/constants.d.ts.map +0 -1
- package/dist/kernel/context-registry.d.ts +0 -3
- package/dist/kernel/context-registry.d.ts.map +0 -1
- package/dist/kernel/handlers.d.ts +0 -3
- package/dist/kernel/handlers.d.ts.map +0 -1
- package/dist/kernel/hooks.d.ts +0 -7
- package/dist/kernel/hooks.d.ts.map +0 -1
- package/dist/kernel/index.d.ts.map +0 -1
- package/dist/kernel/installed.d.ts +0 -21
- package/dist/kernel/installed.d.ts.map +0 -1
- package/dist/kernel/module.d.ts +0 -32
- package/dist/kernel/module.d.ts.map +0 -1
- package/dist/kernel/operations.d.ts +0 -21
- package/dist/kernel/operations.d.ts.map +0 -1
- package/dist/kernel/page-controller.d.ts +0 -8
- package/dist/kernel/page-controller.d.ts.map +0 -1
- package/dist/kernel/provider.d.ts +0 -18
- package/dist/kernel/provider.d.ts.map +0 -1
- package/dist/kernel/runtime.d.ts.map +0 -1
- package/dist/kernel/schema.d.ts +0 -11
- package/dist/kernel/schema.d.ts.map +0 -1
- package/dist/kernel/store.d.ts +0 -4
- package/dist/kernel/store.d.ts.map +0 -1
- package/dist/kernel/types.d.ts +0 -233
- package/dist/kernel/types.d.ts.map +0 -1
- package/dist/kernel/utils.d.ts +0 -18
- package/dist/kernel/utils.d.ts.map +0 -1
- package/dist/modules/ambient/index.js +0 -10
- package/dist/modules/ambient/server/index.js +0 -221
- package/dist/modules/ambient/server/index.js.map +0 -1
- package/dist/modules/ambient/worker/index.js +0 -114
- package/dist/modules/ambient/worker/index.js.map +0 -1
- package/dist/modules/background/index.js +0 -9
- package/dist/modules/background/overlay.d.ts +0 -135
- package/dist/modules/background/overlay.d.ts.map +0 -1
- package/dist/modules/background/playback.d.ts +0 -10
- package/dist/modules/background/playback.d.ts.map +0 -1
- package/dist/modules/background/state.d.ts +0 -9
- package/dist/modules/background/state.d.ts.map +0 -1
- package/dist/modules/background/visual.d.ts +0 -48
- package/dist/modules/background/visual.d.ts.map +0 -1
- package/dist/modules/background/youtube/iframe.d.ts +0 -52
- package/dist/modules/background/youtube/iframe.d.ts.map +0 -1
- package/dist/modules/background/youtube/parse.d.ts +0 -17
- package/dist/modules/background/youtube/parse.d.ts.map +0 -1
- package/dist/modules/background/youtube/player.d.ts +0 -28
- package/dist/modules/background/youtube/player.d.ts.map +0 -1
- package/dist/modules/context-menu/index.js +0 -14
- package/dist/modules/controls/index.js +0 -7
- package/dist/modules/dock/cards.d.ts +0 -1722
- package/dist/modules/dock/cards.d.ts.map +0 -1
- package/dist/modules/dock/dom.d.ts +0 -24
- package/dist/modules/dock/dom.d.ts.map +0 -1
- package/dist/modules/dock/helpers.d.ts +0 -25
- package/dist/modules/dock/helpers.d.ts.map +0 -1
- package/dist/modules/dock/hooks.d.ts +0 -42
- package/dist/modules/dock/hooks.d.ts.map +0 -1
- package/dist/modules/dock/index.js +0 -13
- package/dist/modules/dock/layout.d.ts +0 -26
- package/dist/modules/dock/layout.d.ts.map +0 -1
- package/dist/modules/dock/overlay.d.ts +0 -79
- package/dist/modules/dock/overlay.d.ts.map +0 -1
- package/dist/modules/dock/paths.d.ts +0 -10
- package/dist/modules/dock/paths.d.ts.map +0 -1
- package/dist/modules/dock/state.d.ts +0 -22
- package/dist/modules/dock/state.d.ts.map +0 -1
- package/dist/modules/dock/styles.d.ts +0 -900
- package/dist/modules/dock/styles.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks.d.ts +0 -110
- package/dist/modules/dock/surface/hooks.d.ts.map +0 -1
- package/dist/modules/dock/types.d.ts +0 -1362
- package/dist/modules/dock/types.d.ts.map +0 -1
- package/dist/modules/loading/index.js +0 -8
- package/dist/modules/media/index.js +0 -6
- package/dist/modules/modal/dom.d.ts +0 -4
- package/dist/modules/modal/dom.d.ts.map +0 -1
- package/dist/modules/modal/header.d.ts +0 -7
- package/dist/modules/modal/header.d.ts.map +0 -1
- package/dist/modules/modal/identity.d.ts +0 -7
- package/dist/modules/modal/identity.d.ts.map +0 -1
- package/dist/modules/modal/index.js +0 -11
- package/dist/modules/modal/layout.d.ts +0 -13
- package/dist/modules/modal/layout.d.ts.map +0 -1
- package/dist/modules/modal/overlay.d.ts +0 -4
- package/dist/modules/modal/overlay.d.ts.map +0 -1
- package/dist/modules/modal/state.d.ts +0 -4
- package/dist/modules/modal/state.d.ts.map +0 -1
- package/dist/modules/navigation/constants.d.ts +0 -37
- package/dist/modules/navigation/constants.d.ts.map +0 -1
- package/dist/modules/navigation/index.js +0 -81
- package/dist/modules/navigation/index.js.map +0 -1
- package/dist/modules/navigation/navigator.d.ts +0 -8
- package/dist/modules/navigation/navigator.d.ts.map +0 -1
- package/dist/modules/navigation/settings.d.ts +0 -10
- package/dist/modules/navigation/settings.d.ts.map +0 -1
- package/dist/modules/navigation/state.d.ts +0 -20
- package/dist/modules/navigation/state.d.ts.map +0 -1
- package/dist/modules/navigation/types.d.ts +0 -168
- package/dist/modules/navigation/types.d.ts.map +0 -1
- package/dist/modules/navigation/utils.d.ts +0 -11
- package/dist/modules/navigation/utils.d.ts.map +0 -1
- package/dist/modules/notification/index.js +0 -7
- package/dist/overlay-TZ6L52A5.js +0 -9
- package/dist/overlay-TZ6L52A5.js.map +0 -1
- package/dist/provider.d.ts +0 -23
- package/dist/provider.d.ts.map +0 -1
- package/dist/provider.js +0 -9
- package/dist/provider.js.map +0 -1
- package/dist/result.d.ts +0 -50
- package/dist/result.d.ts.map +0 -1
- package/dist/result.js +0 -102
- package/dist/result.js.map +0 -1
- package/dist/theme.d.ts +0 -63
- package/dist/theme.d.ts.map +0 -1
- package/dist/theme.js +0 -6
- package/dist/theme.js.map +0 -1
- package/dist/tokens/index.d.ts +0 -4
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/index.js +0 -296
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/motion-config.d.ts +0 -44
- package/dist/tokens/motion-config.d.ts.map +0 -1
- package/dist/tokens/motion.d.ts +0 -164
- package/dist/tokens/motion.d.ts.map +0 -1
- package/dist/tokens/tokens.d.ts +0 -34
- package/dist/tokens/tokens.d.ts.map +0 -1
- package/dist/utils/cn.d.ts +0 -3
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/dom.d.ts +0 -5
- package/dist/utils/dom.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/number.d.ts +0 -3
- package/dist/utils/number.d.ts.map +0 -1
- package/dist/utils/object.d.ts +0 -5
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/report.d.ts +0 -5
- package/dist/utils/report.d.ts.map +0 -1
- package/dist/utils/scheduler.d.ts +0 -34
- package/dist/utils/scheduler.d.ts.map +0 -1
- package/dist/utils/store.d.ts +0 -11
- package/dist/utils/store.d.ts.map +0 -1
- package/dist/utils/string.d.ts +0 -5
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/timing.d.ts +0 -7
- package/dist/utils/timing.d.ts.map +0 -1
- package/dist/utils/user-message.d.ts +0 -20
- package/dist/utils/user-message.d.ts.map +0 -1
- package/templates/motion/background.ts +0 -17
- package/templates/motion/context-menu.ts +0 -63
- package/templates/motion/dock.ts +0 -395
- package/templates/motion/modal.ts +0 -79
- package/templates/motion/notification.ts +0 -27
- package/templates/motion/tokens.ts +0 -47
- /package/dist/{atoms → ambient}/index.js.map +0 -0
- /package/dist/{modules/ambient → background}/index.js.map +0 -0
- /package/dist/{modules/background → context-menu}/index.js.map +0 -0
- /package/dist/{modules/context-menu → controls}/index.js.map +0 -0
- /package/dist/{kernel → core/kernel}/runtime.d.ts +0 -0
- /package/dist/{modules/controls → dock}/index.js.map +0 -0
- /package/dist/{modules/dock → loading}/index.js.map +0 -0
- /package/dist/{modules/loading → media}/index.js.map +0 -0
- /package/dist/{modules/media → notification}/index.js.map +0 -0
- /package/dist/{modules/modal → provider}/index.js.map +0 -0
- /package/dist/{modules/notification → theme}/index.js.map +0 -0
package/dist/kernel/module.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { type BoundaryComponent } from "./installed";
|
|
3
|
-
import type { AnyCoreModule, AppRegistryEntry, CoreModule, CoreModules, ModuleId, ModuleRuntimeOf, ModuleStateOf } from "./types";
|
|
4
|
-
export declare function defineModule<TId extends string, TRuntime = never, TSlice = never, TController = never>(coreModule: CoreModule<TId, TRuntime, TSlice, TController>): CoreModule<TId, TRuntime, TSlice, TController>;
|
|
5
|
-
export interface ModuleHostProps {
|
|
6
|
-
boundary?: BoundaryComponent;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
modules?: readonly AnyCoreModule[];
|
|
9
|
-
registryEntries?: readonly AppRegistryEntry[];
|
|
10
|
-
}
|
|
11
|
-
export declare function ModuleHost({ boundary, children, modules, registryEntries, }: ModuleHostProps): import("react").JSX.Element;
|
|
12
|
-
export declare function useModule<K extends ModuleId>(id: K): ModuleRuntimeOf<CoreModules[K]> | null;
|
|
13
|
-
type ModuleActionsOf<K extends ModuleId> = ModuleRuntimeOf<CoreModules[K]> extends {
|
|
14
|
-
actions: infer TActions;
|
|
15
|
-
} ? TActions : never;
|
|
16
|
-
export interface ModulePeer<K extends ModuleId> {
|
|
17
|
-
useActions(): ModuleActionsOf<K>;
|
|
18
|
-
useRuntime(): ModuleRuntimeOf<CoreModules[K]>;
|
|
19
|
-
useState<T>(selector: (state: ModuleStateOf<K>) => T, isEqual?: (a: T, b: T) => boolean): T;
|
|
20
|
-
}
|
|
21
|
-
export declare function definePeer<K extends ModuleId>(id: K, inert: ModuleRuntimeOf<CoreModules[K]>): ModulePeer<K>;
|
|
22
|
-
export declare function useModuleState<K extends ModuleId, T>(id: K, selector: (state: ModuleStateOf<K>) => T, fallback: T, isEqual?: (a: T, b: T) => boolean): T;
|
|
23
|
-
export declare function ModuleBoundary({ children, name, }: {
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
name?: string;
|
|
26
|
-
}): import("react").ReactElement<{
|
|
27
|
-
children?: ReactNode;
|
|
28
|
-
name?: string;
|
|
29
|
-
}, string | import("react").JSXElementConstructor<any>>;
|
|
30
|
-
export declare function useIsModuleInstalled(id: ModuleId): boolean;
|
|
31
|
-
export {};
|
|
32
|
-
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/kernel/module.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrE,OAAO,EAML,KAAK,iBAAiB,EAEvB,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,QAAQ,EACR,eAAe,EACf,aAAa,EACd,MAAM,SAAS,CAAC;AAGjB,wBAAgB,YAAY,CAC1B,GAAG,SAAS,MAAM,EAClB,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,KAAK,EACd,WAAW,GAAG,KAAK,EAEnB,UAAU,EAAE,UAAU,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,GACzD,UAAU,CAAC,GAAG,EAAE,QAAQ,E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S,QAAQ,EAAE,CAAC,EAClD,EAAE,EAAE,CAAC,EACL,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,EACxC,QAAQ,EAAE,CAAC,EACX,OAAO,GAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAmB,GAC3C,CAAC,CAOH;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;;;wDAGA;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAE1D"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { RegisterOperation, RegistryDefinitions, RegistryEntryRecords, RegistryMetadata, RegistryOperation, RegistrySourceOrOptions, RegistryState, UnregisterOperation } from "./types";
|
|
2
|
-
type MaybeEntry = RegistryEntryRecords | null | undefined;
|
|
3
|
-
export declare function createRecordKey(source: string, instanceId?: string | null, scope?: string): string;
|
|
4
|
-
export declare function createRegisterOperation(type: string, key: string, item: unknown, sourceOrOptions: RegistrySourceOrOptions | undefined, optionsArg: RegistryMetadata | undefined, timestamp: number, sequence?: number): RegisterOperation;
|
|
5
|
-
export declare function createUnregisterOperation(type: string, key: string, sourceOrOptions: RegistrySourceOrOptions | undefined): UnregisterOperation;
|
|
6
|
-
export declare function createRegistryOperations(definitions: RegistryDefinitions): Readonly<{
|
|
7
|
-
applyOperation: (state: RegistryState, operation: RegistryOperation) => RegistryState;
|
|
8
|
-
createInitialRegistries: () => RegistryState;
|
|
9
|
-
createResolverCache: () => (type: string, entry: MaybeEntry, scope?: string | null) => unknown;
|
|
10
|
-
hasOperationEffect: (state: RegistryState, operation: RegistryOperation) => boolean;
|
|
11
|
-
isRegistryType: (type: string) => boolean;
|
|
12
|
-
isValidRegistryTarget: (type: string, key: unknown) => boolean;
|
|
13
|
-
resolveEffectiveOperations: (state: RegistryState, operations: RegistryOperation[]) => {
|
|
14
|
-
effectiveOperations: RegistryOperation[];
|
|
15
|
-
nextState: RegistryState;
|
|
16
|
-
};
|
|
17
|
-
resolveEntryValue: (type: string, entry: MaybeEntry, scope?: string | null) => unknown;
|
|
18
|
-
}>;
|
|
19
|
-
export type RegistryOperations = ReturnType<typeof createRegistryOperations>;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/kernel/operations.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EAEb,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,KAAK,UAAU,GAAG,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC;AAsC1D,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,KAAK,GAAE,MAA+B,GACrC,MAAM,CAWR;AAsQD,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,OAAO,EACb,eAAe,EAAE,uBAAuB,GAAG,SAAS,EACpD,UAAU,EAAE,gBAAgB,GAAG,SAAS,EACxC,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,MAAkB,GAC3B,iBAAiB,CAuBnB;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,uBAAuB,GAAG,SAAS,GACnD,mBAAmB,CAUrB;AAqGD,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,mBAAmB;4BAE7C,aAAa,aAAa,iBAAiB;;sCA9K7D,MAAM,SAAS,UAAU,UAAU,MAAM,GAAG,IAAI,KAAK,OAAO;gCAkLtC,aAAa,aAAa,iBAAiB;2BAEhD,MAAM;kCACC,MAAM,OAAO,OAAO;wCAGzC,aAAa,cACR,iBAAiB,EAAE;6BA1BX,iBAAiB,EAAE;mBAAa,aAAa;;8BA6B3D,MAAM,SACL,UAAU,UACV,MAAM,GAAG,IAAI;GAGzB;AAED,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { PageConfig, PageController, PageOptions } from "./types";
|
|
3
|
-
export declare function PageControllerProvider({ children }: {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
}): import("react").JSX.Element;
|
|
6
|
-
export declare function usePageController(): PageController;
|
|
7
|
-
export declare function usePage(pageConfig?: PageConfig, options?: PageOptions): PageController;
|
|
8
|
-
//# sourceMappingURL=page-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-controller.d.ts","sourceRoot":"","sources":["../../src/kernel/page-controller.tsx"],"names":[],"mappings":"AAEA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAQf,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EAId,WAAW,EACZ,MAAM,SAAS,CAAC;AAwGjB,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,+BAS5E;AAaD,wBAAgB,iBAAiB,IAAI,cAAc,CAkBlD;AAED,wBAAgB,OAAO,CACrB,UAAU,GAAE,UAAyB,EACrC,OAAO,CAAC,EAAE,WAAW,GACpB,cAAc,CA8EhB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { RegistryDefinitions, RegistrySchema, RegistryStore } from "./types";
|
|
3
|
-
import { type InitialRegistryEntries } from "./store";
|
|
4
|
-
type RegistryValueOf<K extends string> = K extends keyof RegistrySchema ? RegistrySchema[K] : unknown;
|
|
5
|
-
interface RegistryContextValue {
|
|
6
|
-
actions: Pick<RegistryStore, "batch" | "register" | "transaction" | "unregister">;
|
|
7
|
-
subscription: Pick<RegistryStore, "getEntriesSnapshot" | "getSnapshot" | "subscribe">;
|
|
8
|
-
}
|
|
9
|
-
export declare function RegistryProvider({ children, definitions, initialEntries, }: {
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
definitions?: RegistryDefinitions;
|
|
12
|
-
initialEntries?: InitialRegistryEntries;
|
|
13
|
-
}): import("react").JSX.Element;
|
|
14
|
-
export declare function useRegistryActions(): RegistryContextValue["actions"];
|
|
15
|
-
export declare function useRegistryValue<K extends string = string, T = RegistryValueOf<K>>(type: K, key: string): T | undefined;
|
|
16
|
-
export declare function useRegistryEntries<K extends string = string, T = RegistryValueOf<K>>(type: K): Record<string, T>;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/kernel/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAuB,KAAK,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE3E,KAAK,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,MAAM,cAAc,GACnE,cAAc,CAAC,CAAC,CAAC,GACjB,OAAO,CAAC;AAEZ,UAAU,oBAAoB;IAC5B,OAAO,EAAE,IAAI,CACX,aAAa,EACb,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,YAAY,CACpD,CAAC;IACF,YAAY,EAAE,IAAI,CAChB,aAAa,EACb,oBA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Q,CAAC,UAAU,EAAE,SAAS,eAAe,EAAE,CAAC;IAChD,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,sBAAsB,CAAC;IACtD,GAAG,EAAE,CACH,QAAQ,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,KAChD,yBAAyB,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,CACR,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,gBAAgB,KACvB,kBAAkB,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC7E;AAED,UAAU,gBAAgB;IACxB,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,KAAK,OAAO,CAAC;CACtE;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,gBAAgB,EACvB,QAAQ,GAAE,gBAAgB,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GACtE,mBAAmB,CAkHrB"}
|
package/dist/kernel/schema.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { NormalizedRegistryMetadata, RegistryDefinitions, RegistryLifecycle, RegistryMetadata, ValidationResult } from "./types";
|
|
2
|
-
export declare function validateRegistryMetadata(metadata: unknown): ValidationResult;
|
|
3
|
-
export declare function validateRegistryKey(type: string, key: unknown, definitions: RegistryDefinitions): ValidationResult;
|
|
4
|
-
export declare function validateRegistryValue(type: string, key: unknown, value: unknown, definitions: RegistryDefinitions): ValidationResult;
|
|
5
|
-
export declare function normalizeRegistryMetadata(metadata: unknown, { defaultCleanupDelayMs, defaultLifecycle, defaultSource, }?: {
|
|
6
|
-
defaultCleanupDelayMs?: number | null;
|
|
7
|
-
defaultLifecycle?: RegistryLifecycle | null;
|
|
8
|
-
defaultSource?: string;
|
|
9
|
-
}): NormalizedRegistryMetadata;
|
|
10
|
-
export declare function pickRegistryMetadata(options: unknown): RegistryMetadata;
|
|
11
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/kernel/schema.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAEhB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAYjB,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAqD5E;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO,EACZ,WAAW,EAAE,mBAAmB,GAC/B,gBAAgB,CA8BlB;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,OAAO,EACd,WAAW,EAAE,mBAAmB,GAC/B,gBAAgB,CAyBlB;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,OAAO,EACjB,EACE,qBAA4B,EAC5B,gBAAuB,EACvB,aAA8B,GAC/B,GAAE;IACD,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,gBAAgB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;CACnB,GACL,0BAA0B,CAqD5B;AAMD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,gBAAgB,CAOvE"}
|
package/dist/kernel/store.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AppRegistryEntry, RegistryDefinitions, RegistryStore } from "./types";
|
|
2
|
-
export type InitialRegistryEntries = readonly AppRegistryEntry[];
|
|
3
|
-
export declare function createRegistryStore(initialEntries?: InitialRegistryEntries, definitions?: RegistryDefinitions): RegistryStore;
|
|
4
|
-
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/kernel/store.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EACV,gBAAgB,EAGhB,mBAAmB,EAMnB,aAAa,EAEd,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,sBAAsB,GAAG,SAAS,gBAAgB,EAAE,CAAC;AAmSjE,wBAAgB,mBAAmB,CACjC,cAAc,GAAE,sBAA2B,EAC3C,WAAW,GAAE,mBAAoC,GAChD,aAAa,CA0Rf"}
|
package/dist/kernel/types.d.ts
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, Context, ReactNode } from "react";
|
|
2
|
-
import type { ExternalStore } from "../utils";
|
|
3
|
-
export type AnyFunction = (...args: unknown[]) => unknown;
|
|
4
|
-
export interface AppRegistryEntry<T = unknown> {
|
|
5
|
-
type: string;
|
|
6
|
-
items: Record<string, T>;
|
|
7
|
-
instanceId?: string;
|
|
8
|
-
options?: RegistryMetadata;
|
|
9
|
-
source?: string;
|
|
10
|
-
}
|
|
11
|
-
export type RegistrySource = "static" | "dynamic" | "user" | (string & {});
|
|
12
|
-
export type RegistryLifecycle = "immediate" | "graceful" | "persistent" | "route";
|
|
13
|
-
export type RegistryValidationMode = "warn" | "strict";
|
|
14
|
-
export type RegistryScopeKind = "app" | "session" | "route" | "instance" | "workspace";
|
|
15
|
-
export interface RegistryMetadata {
|
|
16
|
-
cleanup?: RegistryLifecycle;
|
|
17
|
-
cleanupDelayMs?: number | null;
|
|
18
|
-
instanceId?: string | null;
|
|
19
|
-
lifecycle?: RegistryLifecycle;
|
|
20
|
-
priority?: number;
|
|
21
|
-
source?: string;
|
|
22
|
-
scope?: string;
|
|
23
|
-
validation?: RegistryValidationMode;
|
|
24
|
-
}
|
|
25
|
-
type RegistryKeyPolicy = "singleton" | "named" | "path" | "route";
|
|
26
|
-
export interface RegistryDefinition<TValue = unknown> {
|
|
27
|
-
keyPolicy: RegistryKeyPolicy;
|
|
28
|
-
lifecycle: RegistryLifecycle;
|
|
29
|
-
cleanupDelayMs?: number | null;
|
|
30
|
-
singletonKey?: string;
|
|
31
|
-
reservedKeys?: readonly string[];
|
|
32
|
-
valueKind?: "object" | "component";
|
|
33
|
-
merge?(valuesLowToHigh: TValue[]): TValue;
|
|
34
|
-
validate?(value: unknown): ValidationResult;
|
|
35
|
-
}
|
|
36
|
-
export interface RegistryDefinitions {
|
|
37
|
-
get(type: string): RegistryDefinition | undefined;
|
|
38
|
-
keys(): Iterable<string>;
|
|
39
|
-
}
|
|
40
|
-
export interface ValidationResult {
|
|
41
|
-
valid: boolean;
|
|
42
|
-
issues: string[];
|
|
43
|
-
reason?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface SourceRecord<T = unknown> {
|
|
46
|
-
updatedAt: number;
|
|
47
|
-
sequence: number;
|
|
48
|
-
instanceId: string | null;
|
|
49
|
-
priority: number;
|
|
50
|
-
source: string;
|
|
51
|
-
scope: string;
|
|
52
|
-
value: T;
|
|
53
|
-
}
|
|
54
|
-
export interface RegisterOperation<T = unknown> {
|
|
55
|
-
kind: "register";
|
|
56
|
-
validation?: RegistryValidationMode;
|
|
57
|
-
source: string;
|
|
58
|
-
scope: string;
|
|
59
|
-
record: SourceRecord<T>;
|
|
60
|
-
instanceId: string | null;
|
|
61
|
-
type: string;
|
|
62
|
-
key: string;
|
|
63
|
-
}
|
|
64
|
-
export interface UnregisterOperation {
|
|
65
|
-
kind: "unregister";
|
|
66
|
-
instanceId: string | null;
|
|
67
|
-
scope: string | null;
|
|
68
|
-
source: string;
|
|
69
|
-
type: string;
|
|
70
|
-
key: string;
|
|
71
|
-
}
|
|
72
|
-
export type RegistryOperation = RegisterOperation | UnregisterOperation;
|
|
73
|
-
export interface RegistrationHandle<T = unknown> {
|
|
74
|
-
(reason?: string): boolean;
|
|
75
|
-
active: boolean;
|
|
76
|
-
dispose: (reason?: string) => boolean;
|
|
77
|
-
instanceId: string | null;
|
|
78
|
-
key: string;
|
|
79
|
-
priority: number;
|
|
80
|
-
reason?: string;
|
|
81
|
-
source: string;
|
|
82
|
-
status: "active" | "disposed" | "superseded" | "rejected" | "ignored";
|
|
83
|
-
type: string;
|
|
84
|
-
update: (value: T, options?: RegistryMetadata) => RegistrationHandle<T>;
|
|
85
|
-
updatedAt: number;
|
|
86
|
-
validation: string;
|
|
87
|
-
}
|
|
88
|
-
export interface RegistrySchema {
|
|
89
|
-
[key: string]: unknown;
|
|
90
|
-
}
|
|
91
|
-
type RegistryTypeKey = keyof RegistrySchema & string;
|
|
92
|
-
export interface NormalizedRegistryMetadata {
|
|
93
|
-
cleanupDelayMs: number | null;
|
|
94
|
-
lifecycle: RegistryLifecycle | null;
|
|
95
|
-
priority: number | null;
|
|
96
|
-
registerOptions: RegistryMetadata;
|
|
97
|
-
scope?: string;
|
|
98
|
-
source: string;
|
|
99
|
-
validation?: RegistryValidationMode;
|
|
100
|
-
}
|
|
101
|
-
export type RegistryEntryRecords = Record<string, unknown>;
|
|
102
|
-
export type RegistryState = Record<string, Record<string, RegistryEntryRecords>>;
|
|
103
|
-
export type RegistrySourceOrOptions = string | RegistryMetadata;
|
|
104
|
-
type RegistryRegisterFn = <K extends RegistryTypeKey = RegistryTypeKey, T = RegistrySchema[K]>(type: K, key: string, item: T, sourceOrOptions?: RegistrySourceOrOptions, optionsArg?: RegistryMetadata) => RegistrationHandle<T>;
|
|
105
|
-
type RegistryUnregisterFn = <K extends RegistryTypeKey = RegistryTypeKey>(type: K, key: string, sourceOrOptions?: RegistrySourceOrOptions) => void;
|
|
106
|
-
export interface RegistryQueue {
|
|
107
|
-
register: RegistryRegisterFn;
|
|
108
|
-
unregister: RegistryUnregisterFn;
|
|
109
|
-
}
|
|
110
|
-
export interface RegistryCleanupTimer {
|
|
111
|
-
cancelled: boolean;
|
|
112
|
-
timerId: ReturnType<typeof setTimeout> | null;
|
|
113
|
-
}
|
|
114
|
-
export interface RegistryApplyContext extends RegistryQueue {
|
|
115
|
-
batch: (executor: (queue: RegistryQueue) => void) => number;
|
|
116
|
-
cleanupScope: Map<string, RegistryCleanupTimer>;
|
|
117
|
-
instanceId: string;
|
|
118
|
-
modules?: readonly AnyCoreModule[];
|
|
119
|
-
pathname: string;
|
|
120
|
-
}
|
|
121
|
-
export interface RegistryTransactionResult {
|
|
122
|
-
applied?: number;
|
|
123
|
-
queued?: number;
|
|
124
|
-
status: "open" | "committed" | "rolled-back";
|
|
125
|
-
traceId: string;
|
|
126
|
-
}
|
|
127
|
-
export interface RegistryTransactionRef {
|
|
128
|
-
index: number;
|
|
129
|
-
status: "open" | "committed" | "rolled-back" | "queued";
|
|
130
|
-
traceId: string;
|
|
131
|
-
}
|
|
132
|
-
export interface RegistryTransactionQueue {
|
|
133
|
-
register: (type: string, key: string, value: unknown, sourceOrOptions?: RegistrySourceOrOptions, optionsArg?: RegistryMetadata) => RegistryTransactionRef;
|
|
134
|
-
unregister: (type: string, key: string, sourceOrOptions?: RegistrySourceOrOptions) => RegistryTransactionRef;
|
|
135
|
-
}
|
|
136
|
-
export interface RegistryStore {
|
|
137
|
-
batch: (executor: (queue: RegistryQueue) => void) => number;
|
|
138
|
-
dispose: (operation: RegisterOperation, reason?: string) => boolean;
|
|
139
|
-
getEntriesSnapshot: <K extends RegistryTypeKey = RegistryTypeKey, T = RegistrySchema[K]>(type: K, scope?: string | null) => Record<string, T>;
|
|
140
|
-
getSnapshot: <K extends RegistryTypeKey = RegistryTypeKey, T = RegistrySchema[K]>(type: K, key: string, scope?: string | null) => T | undefined;
|
|
141
|
-
isCurrent: (operation: RegisterOperation) => boolean;
|
|
142
|
-
register: RegistryRegisterFn;
|
|
143
|
-
subscribe: <K extends RegistryTypeKey = RegistryTypeKey>(type: K, key: string | null | undefined, listener: () => void) => () => void;
|
|
144
|
-
transaction: (executor: (tx: RegistryTransactionQueue) => void, metadata?: RegistryMetadata) => RegistryTransactionResult;
|
|
145
|
-
unregister: RegistryUnregisterFn;
|
|
146
|
-
}
|
|
147
|
-
export interface PageOptions {
|
|
148
|
-
instanceId?: string;
|
|
149
|
-
lifecycle?: RegistryLifecycle;
|
|
150
|
-
priority?: number;
|
|
151
|
-
scope?: string;
|
|
152
|
-
source?: string;
|
|
153
|
-
[key: string]: unknown;
|
|
154
|
-
}
|
|
155
|
-
export interface PageConfig {
|
|
156
|
-
registry?: RegistryMetadata;
|
|
157
|
-
title?: string;
|
|
158
|
-
}
|
|
159
|
-
export interface PageController {
|
|
160
|
-
Provider: ({ children }: {
|
|
161
|
-
children?: ReactNode;
|
|
162
|
-
}) => ReactNode;
|
|
163
|
-
config: PageConfig;
|
|
164
|
-
modules: PageModules;
|
|
165
|
-
reset: () => void;
|
|
166
|
-
set: (partial: Partial<PageConfig>) => void;
|
|
167
|
-
}
|
|
168
|
-
export interface RegistrationEntry {
|
|
169
|
-
cleanupDelayMs: number | null;
|
|
170
|
-
key: string;
|
|
171
|
-
lifecycle: RegistryLifecycle | null;
|
|
172
|
-
registerOptions: RegistryMetadata;
|
|
173
|
-
scope: string | undefined;
|
|
174
|
-
source: string;
|
|
175
|
-
value: unknown;
|
|
176
|
-
}
|
|
177
|
-
export interface StableFunctionEntry {
|
|
178
|
-
current: AnyFunction;
|
|
179
|
-
stable: AnyFunction;
|
|
180
|
-
}
|
|
181
|
-
export interface PageControllerStore {
|
|
182
|
-
getSnapshot: () => PageController | null;
|
|
183
|
-
notify: () => void;
|
|
184
|
-
register: (id: string, controllerRef: {
|
|
185
|
-
current: PageController | null;
|
|
186
|
-
}) => void;
|
|
187
|
-
subscribe: (listener: () => void) => () => void;
|
|
188
|
-
unregister: (id: string) => void;
|
|
189
|
-
}
|
|
190
|
-
export interface CoreModules {
|
|
191
|
-
}
|
|
192
|
-
export type ModuleId = keyof CoreModules & string;
|
|
193
|
-
export interface ModuleRuntime<TState = unknown, TActions = unknown> {
|
|
194
|
-
readonly actions: TActions;
|
|
195
|
-
readonly store: ExternalStore<TState>;
|
|
196
|
-
}
|
|
197
|
-
export interface PageRegistration {
|
|
198
|
-
key: string;
|
|
199
|
-
value: unknown;
|
|
200
|
-
}
|
|
201
|
-
export interface ModulePageContext {
|
|
202
|
-
pathname: string;
|
|
203
|
-
}
|
|
204
|
-
export interface PageModuleApi {
|
|
205
|
-
set: (partial: Partial<PageConfig>) => void;
|
|
206
|
-
}
|
|
207
|
-
type ModuleSliceItem<TSlice> = TSlice extends readonly (infer TItem)[] ? TItem : TSlice;
|
|
208
|
-
interface ModulePageSpec<TSlice, TController> {
|
|
209
|
-
select?(config: PageConfig): TSlice | null | undefined;
|
|
210
|
-
entries?(item: ModuleSliceItem<TSlice>, context: ModulePageContext): readonly PageRegistration[] | null | undefined;
|
|
211
|
-
use?(slice: TSlice | null, page: PageModuleApi): TController;
|
|
212
|
-
}
|
|
213
|
-
export interface CoreModule<TId extends string = string, TRuntime = unknown, TSlice = unknown, TController = unknown> {
|
|
214
|
-
readonly id: TId;
|
|
215
|
-
readonly context?: Context<TRuntime | null>;
|
|
216
|
-
readonly Provider?: ComponentType<{
|
|
217
|
-
children?: ReactNode;
|
|
218
|
-
}>;
|
|
219
|
-
readonly Backdrop?: ComponentType;
|
|
220
|
-
readonly Overlay?: ComponentType;
|
|
221
|
-
readonly uses?: readonly string[];
|
|
222
|
-
readonly registry?: RegistryDefinition;
|
|
223
|
-
readonly page?: ModulePageSpec<TSlice, TController>;
|
|
224
|
-
}
|
|
225
|
-
export type AnyCoreModule = CoreModule<string, any, any, any>;
|
|
226
|
-
export type ModuleRuntimeOf<M> = M extends CoreModule<string, infer TRuntime, any, any> ? TRuntime : never;
|
|
227
|
-
export type ModuleStateOf<K extends ModuleId> = ModuleRuntimeOf<CoreModules[K]> extends ModuleRuntime<infer TState, unknown> ? TState : never;
|
|
228
|
-
type ModuleControllerOf<M> = M extends CoreModule<string, any, any, infer TController> ? TController : never;
|
|
229
|
-
export type PageModules = {
|
|
230
|
-
[K in ModuleId as [ModuleControllerOf<CoreModules[K]>] extends [never] ? never : K]?: ModuleControllerOf<CoreModules[K]>;
|
|
231
|
-
};
|
|
232
|
-
export {};
|
|
233
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/kernel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;AAE1D,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE3E,MAAM,MAAM,iBAAiB,GAC3B,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAC3B,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;AAEzD,MAAM,WA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AAQ,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GACjE,KAAK,GACL,CAAC,CACN,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CACvC,CAAC"}
|
package/dist/kernel/utils.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { RegistryMetadata } from "./types";
|
|
2
|
-
export declare function hasOwnProperty(target: object, key: string): boolean;
|
|
3
|
-
export declare function parseFiniteNumber(value: unknown): number | null;
|
|
4
|
-
export declare function getValidString(value: unknown, fallback?: string | null): string | null;
|
|
5
|
-
export declare function resolveInstanceId(value: unknown): string | null;
|
|
6
|
-
export declare function getSourceRank(source: string): number;
|
|
7
|
-
export declare function resolveRegisterInput(sourceOrOptions: unknown, optionsArg?: unknown): {
|
|
8
|
-
source: string;
|
|
9
|
-
options: RegistryMetadata;
|
|
10
|
-
};
|
|
11
|
-
export declare function resolveScope(options: RegistryMetadata | null | undefined): string;
|
|
12
|
-
export declare function resolveUnregisterInput(sourceOrOptions: unknown): {
|
|
13
|
-
instanceId: string | null;
|
|
14
|
-
scope: string | null;
|
|
15
|
-
source: string;
|
|
16
|
-
};
|
|
17
|
-
export declare function mergeModuleConfigs<T extends object>(base: T, patch: Partial<T>): T;
|
|
18
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/kernel/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAEnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAG/D;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,OAAO,EACd,QAAQ,GAAE,MAAM,GAAG,IAAW,GAC7B,MAAM,GAAG,IAAI,CAEf;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAI/D;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,OAAO,EACxB,UAAU,CAAC,EAAE,OAAO,GACnB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAoB/C;AAED,wBAAgB,YAAY,CAC1B,OAAO,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GAC3C,MAAM,CAIR;AAED,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,OAAO,GAAG;IAChE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAmBA;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EACjD,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAChB,CAAC,CAqBH"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
export { AMBIENT_ANALYSIS_VERSION, AMBIENT_REGIONS, AMBIENT_ROLES, AMBIENT_TONES, AmbientContext, AmbientProvider, DEFAULT_ANALYSIS, DEFAULT_CSS_VAR_NAMES, DEFAULT_LINGER_MS, ambientModule, ambientTheme, analyzeAmbientPixels, applyScopedCssVariables, configureAmbient, contrastRatio, defineAmbient, extractPaletteFromImage, findContentBounds, formatOklch, getAmbientSettings, getCachedAmbientPalette, maxChroma, normalizeColorMap, onColorFor, paletteVarMap, primeAmbientPalette, resolveAmbientVarMap, resolveCssVarNames, resolvePageAmbientTheme, resolveTargetElement, skinLikeness, srgbToOklab, toneOf, useAmbient, useAmbientColor, useAmbientTheme } from '../../chunk-TG6NMHXI.js';
|
|
3
|
-
import '../../chunk-CGHZSSFR.js';
|
|
4
|
-
import '../../chunk-R2YGFJDJ.js';
|
|
5
|
-
import '../../chunk-7TAVYJ3A.js';
|
|
6
|
-
import '../../chunk-GF7TUX5I.js';
|
|
7
|
-
import '../../chunk-TV3WEF5G.js';
|
|
8
|
-
import '../../chunk-3BUP64Q6.js';
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { resolveAnalysis, analyzeAmbientPixels } from '../../../chunk-HHWRTQKQ.js';
|
|
2
|
-
export { AMBIENT_ANALYSIS_VERSION, analyzeAmbientPixels, configureAmbient, contrastRatio, findContentBounds, fitSample, formatOklch, getAmbientSettings, maxChroma, onColorFor, srgbToOklab, toneOf } from '../../../chunk-HHWRTQKQ.js';
|
|
3
|
-
|
|
4
|
-
// src/modules/ambient/server/address.ts
|
|
5
|
-
var PRIVATE_NAMES = /(^|\.)(localhost|local|internal|intranet|lan|home\.arpa|localdomain)$/;
|
|
6
|
-
function normalizeHost(hostname) {
|
|
7
|
-
return hostname.toLowerCase().replace(/\.+$/, "").replace(/^\[|\]$/g, "");
|
|
8
|
-
}
|
|
9
|
-
function parseIPv4(value) {
|
|
10
|
-
const parts = value.split(".");
|
|
11
|
-
if (parts.length !== 4) return null;
|
|
12
|
-
const bytes = parts.map((part) => /^\d{1,3}$/.test(part) ? Number(part) : NaN);
|
|
13
|
-
return bytes.every((byte) => byte >= 0 && byte <= 255) ? bytes : null;
|
|
14
|
-
}
|
|
15
|
-
function isPrivateIPv4([a, b, c]) {
|
|
16
|
-
return a === 0 || // "this network"
|
|
17
|
-
a === 10 || a === 127 || a === 100 && b >= 64 && b <= 127 || // CGNAT
|
|
18
|
-
a === 169 && b === 254 || // link-local, cloud metadata
|
|
19
|
-
a === 172 && b >= 16 && b <= 31 || a === 192 && b === 168 || a === 192 && b === 0 && c === 0 || // IETF protocol assignments
|
|
20
|
-
a === 198 && (b === 18 || b === 19) || // benchmarking
|
|
21
|
-
a >= 224;
|
|
22
|
-
}
|
|
23
|
-
function parseIPv6(value) {
|
|
24
|
-
let text = value.split("%")[0];
|
|
25
|
-
const tail = text.match(/^(.*:)(\d+\.\d+\.\d+\.\d+)$/);
|
|
26
|
-
if (tail) {
|
|
27
|
-
const v4 = parseIPv4(tail[2]);
|
|
28
|
-
if (!v4) return null;
|
|
29
|
-
text = `${tail[1]}${(v4[0] << 8 | v4[1]).toString(16)}:${(v4[2] << 8 | v4[3]).toString(16)}`;
|
|
30
|
-
}
|
|
31
|
-
const halves = text.split("::");
|
|
32
|
-
if (halves.length > 2) return null;
|
|
33
|
-
const read = (part) => part ? part.split(":") : [];
|
|
34
|
-
const head = read(halves[0]);
|
|
35
|
-
const rest = halves.length === 2 ? read(halves[1]) : [];
|
|
36
|
-
const missing = 8 - head.length - rest.length;
|
|
37
|
-
if (halves.length === 1 ? missing !== 0 : missing < 1) return null;
|
|
38
|
-
const groups = [...head, ...Array(halves.length === 2 ? missing : 0).fill("0"), ...rest];
|
|
39
|
-
const words = groups.map((group) => /^[0-9a-f]{1,4}$/.test(group) ? parseInt(group, 16) : NaN);
|
|
40
|
-
return words.length === 8 && words.every((word) => word >= 0) ? words : null;
|
|
41
|
-
}
|
|
42
|
-
function isPrivateIPv6(words) {
|
|
43
|
-
const [w0, w1, w2, w3, w4, w5, w6, w7] = words;
|
|
44
|
-
const embedded = () => [w6 >> 8, w6 & 255, w7 >> 8, w7 & 255];
|
|
45
|
-
if (words.slice(0, 7).every((word) => word === 0)) return w7 <= 1;
|
|
46
|
-
if (w0 === 0 && w1 === 0 && w2 === 0 && w3 === 0 && w4 === 0 && (w5 === 65535 || w5 === 0)) {
|
|
47
|
-
return isPrivateIPv4(embedded());
|
|
48
|
-
}
|
|
49
|
-
if (w0 === 100 && w1 === 65435) return isPrivateIPv4(embedded());
|
|
50
|
-
if (w0 === 8194) return isPrivateIPv4([w1 >> 8, w1 & 255, w2 >> 8, w2 & 255]);
|
|
51
|
-
return (w0 & 65024) === 64512 || // unique local
|
|
52
|
-
(w0 & 65472) === 65152 || // link-local
|
|
53
|
-
(w0 & 65280) === 65280 || // multicast
|
|
54
|
-
w0 === 8193 && w1 === 3512;
|
|
55
|
-
}
|
|
56
|
-
function isPrivateAddress(address) {
|
|
57
|
-
const host = normalizeHost(address);
|
|
58
|
-
const v4 = parseIPv4(host);
|
|
59
|
-
if (v4) return isPrivateIPv4(v4);
|
|
60
|
-
const v6 = parseIPv6(host);
|
|
61
|
-
return v6 ? isPrivateIPv6(v6) : false;
|
|
62
|
-
}
|
|
63
|
-
var isIpLiteral = (hostname) => {
|
|
64
|
-
const host = normalizeHost(hostname);
|
|
65
|
-
return parseIPv4(host) !== null || parseIPv6(host) !== null;
|
|
66
|
-
};
|
|
67
|
-
function isPrivateHostname(hostname) {
|
|
68
|
-
const host = normalizeHost(hostname);
|
|
69
|
-
if (!host) return true;
|
|
70
|
-
if (isIpLiteral(host)) return isPrivateAddress(host);
|
|
71
|
-
return PRIVATE_NAMES.test(host) || !host.includes(".");
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// src/modules/ambient/server/index.ts
|
|
75
|
-
var MAX_BYTES = 12 * 1024 * 1024;
|
|
76
|
-
var TIMEOUT_MS = 8e3;
|
|
77
|
-
var CACHE_LIMIT = 500;
|
|
78
|
-
function isPublicImageUrl(url) {
|
|
79
|
-
return (url.protocol === "https:" || url.protocol === "http:") && !url.username && !url.password && !isPrivateHostname(url.hostname);
|
|
80
|
-
}
|
|
81
|
-
async function lookupAll(hostname) {
|
|
82
|
-
const { lookup } = await import('dns/promises');
|
|
83
|
-
return (await lookup(hostname, { all: true, verbatim: true })).map(
|
|
84
|
-
(entry) => entry.address
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
async function reachesOnlyPublic(url, resolve) {
|
|
88
|
-
if (resolve === false) return true;
|
|
89
|
-
const host = normalizeHost(url.hostname);
|
|
90
|
-
try {
|
|
91
|
-
const addresses = isIpLiteral(host) ? [host] : await (resolve ?? lookupAll)(host);
|
|
92
|
-
return addresses.length > 0 && !addresses.some(isPrivateAddress);
|
|
93
|
-
} catch {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
var AmbientDecoderMissingError = class extends Error {
|
|
98
|
-
name = "AmbientDecoderMissingError";
|
|
99
|
-
};
|
|
100
|
-
var sharpModule = null;
|
|
101
|
-
var SHARP = "sharp";
|
|
102
|
-
function loadSharp() {
|
|
103
|
-
sharpModule ??= import(
|
|
104
|
-
/* webpackIgnore: true */
|
|
105
|
-
/* turbopackIgnore: true */
|
|
106
|
-
SHARP
|
|
107
|
-
).then((mod) => mod.default ?? mod).catch((error) => {
|
|
108
|
-
sharpModule = null;
|
|
109
|
-
throw new AmbientDecoderMissingError(
|
|
110
|
-
"ambient/server: `sharp` is not installed. Install it or pass `decode`.",
|
|
111
|
-
{ cause: error }
|
|
112
|
-
);
|
|
113
|
-
});
|
|
114
|
-
return sharpModule;
|
|
115
|
-
}
|
|
116
|
-
var sharpDecoder = async (bytes, size) => {
|
|
117
|
-
const sharp = await loadSharp();
|
|
118
|
-
const { data, info } = await sharp(bytes, { failOn: "none" }).rotate().resize(size, size, { fit: "inside", withoutEnlargement: true }).ensureAlpha().raw().toBuffer({ resolveWithObject: true });
|
|
119
|
-
return { data, height: info.height, width: info.width };
|
|
120
|
-
};
|
|
121
|
-
async function readLimited(response, maxBytes) {
|
|
122
|
-
const declared = Number(response.headers.get("content-length"));
|
|
123
|
-
if (declared > maxBytes) throw new Error("ambient/server: image too large");
|
|
124
|
-
if (!response.body) return new Uint8Array(await response.arrayBuffer());
|
|
125
|
-
const reader = response.body.getReader();
|
|
126
|
-
const chunks = [];
|
|
127
|
-
let length = 0;
|
|
128
|
-
for (; ; ) {
|
|
129
|
-
const { done, value } = await reader.read();
|
|
130
|
-
if (done) break;
|
|
131
|
-
length += value.byteLength;
|
|
132
|
-
if (length > maxBytes) {
|
|
133
|
-
await reader.cancel();
|
|
134
|
-
throw new Error("ambient/server: image too large");
|
|
135
|
-
}
|
|
136
|
-
chunks.push(value);
|
|
137
|
-
}
|
|
138
|
-
const bytes = new Uint8Array(length);
|
|
139
|
-
let offset = 0;
|
|
140
|
-
for (const chunk of chunks) {
|
|
141
|
-
bytes.set(chunk, offset);
|
|
142
|
-
offset += chunk.byteLength;
|
|
143
|
-
}
|
|
144
|
-
return bytes;
|
|
145
|
-
}
|
|
146
|
-
async function extractAmbientPaletteFromBytes(bytes, options = {}) {
|
|
147
|
-
const analysis = resolveAnalysis(options.analysis);
|
|
148
|
-
const pixels = await (options.decode ?? sharpDecoder)(bytes, analysis.sampleSize);
|
|
149
|
-
return analyzeAmbientPixels(pixels, analysis);
|
|
150
|
-
}
|
|
151
|
-
var cache = /* @__PURE__ */ new Map();
|
|
152
|
-
var inFlight = /* @__PURE__ */ new Map();
|
|
153
|
-
function remember(key, palette) {
|
|
154
|
-
cache.delete(key);
|
|
155
|
-
while (cache.size >= CACHE_LIMIT) {
|
|
156
|
-
const oldest = cache.keys().next().value;
|
|
157
|
-
if (oldest === void 0) break;
|
|
158
|
-
cache.delete(oldest);
|
|
159
|
-
}
|
|
160
|
-
cache.set(key, palette);
|
|
161
|
-
}
|
|
162
|
-
async function fetchAndExtract(url, options) {
|
|
163
|
-
const allow = options.allow ?? isPublicImageUrl;
|
|
164
|
-
const doFetch = options.fetch ?? fetch;
|
|
165
|
-
const signal = AbortSignal.timeout(options.timeoutMs ?? TIMEOUT_MS);
|
|
166
|
-
let current = url;
|
|
167
|
-
for (let hop = 0; hop <= 5; hop++) {
|
|
168
|
-
if (!allow(current)) return null;
|
|
169
|
-
if (!await reachesOnlyPublic(current, options.resolve)) return null;
|
|
170
|
-
const response = await doFetch(current, {
|
|
171
|
-
...options.init,
|
|
172
|
-
redirect: "manual",
|
|
173
|
-
signal
|
|
174
|
-
});
|
|
175
|
-
if (response.status >= 300 && response.status < 400) {
|
|
176
|
-
const location = response.headers.get("location");
|
|
177
|
-
await response.body?.cancel();
|
|
178
|
-
if (!location) return null;
|
|
179
|
-
current = new URL(location, current);
|
|
180
|
-
continue;
|
|
181
|
-
}
|
|
182
|
-
if (!response.ok) return null;
|
|
183
|
-
const type = response.headers.get("content-type") ?? "";
|
|
184
|
-
if (type && !type.toLowerCase().startsWith("image/")) return null;
|
|
185
|
-
const bytes = await readLimited(response, options.maxBytes ?? MAX_BYTES);
|
|
186
|
-
const palette = await extractAmbientPaletteFromBytes(bytes, options);
|
|
187
|
-
return { ...palette, source: url.href };
|
|
188
|
-
}
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
async function extractAmbientPalette(src, options = {}) {
|
|
192
|
-
let url;
|
|
193
|
-
try {
|
|
194
|
-
url = new URL(src);
|
|
195
|
-
} catch {
|
|
196
|
-
return null;
|
|
197
|
-
}
|
|
198
|
-
const useCache = options.cache !== false;
|
|
199
|
-
const key = options.analysis ? `${url.href}#${JSON.stringify(options.analysis)}` : url.href;
|
|
200
|
-
if (useCache) {
|
|
201
|
-
const hit = cache.get(key);
|
|
202
|
-
if (hit) return hit;
|
|
203
|
-
const pending = inFlight.get(key);
|
|
204
|
-
if (pending) return pending;
|
|
205
|
-
}
|
|
206
|
-
const task = fetchAndExtract(url, options).catch((error) => {
|
|
207
|
-
if (error instanceof AmbientDecoderMissingError) throw error;
|
|
208
|
-
return null;
|
|
209
|
-
});
|
|
210
|
-
if (!useCache) return task;
|
|
211
|
-
const shared = task.then((palette) => {
|
|
212
|
-
if (palette) remember(key, palette);
|
|
213
|
-
return palette;
|
|
214
|
-
}).finally(() => inFlight.delete(key));
|
|
215
|
-
inFlight.set(key, shared);
|
|
216
|
-
return shared;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export { AmbientDecoderMissingError, extractAmbientPalette, extractAmbientPaletteFromBytes, isPrivateAddress, isPrivateHostname, isPublicImageUrl, sharpDecoder };
|
|
220
|
-
//# sourceMappingURL=index.js.map
|
|
221
|
-
//# sourceMappingURL=index.js.map
|