@omerdlw/base-framework 3.3.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -72
- package/dist/ambient/index.js +10 -10
- package/dist/ambient/server/index.js +3 -3
- package/dist/ambient/server/index.js.map +1 -1
- package/dist/ambient/worker/index.js +7 -4
- package/dist/ambient/worker/index.js.map +1 -1
- package/dist/background/index.js +9 -9
- package/dist/chunk-2E6OASVV.js +17 -0
- package/dist/{chunk-K3LXE6D5.js.map → chunk-2E6OASVV.js.map} +1 -1
- package/dist/{chunk-ESD5EQ5H.js → chunk-3JLG24KI.js} +11 -22
- package/dist/chunk-3JLG24KI.js.map +1 -0
- package/dist/{chunk-CRKJAACG.js → chunk-4QQ3QVY7.js} +10 -10
- package/dist/{chunk-CRKJAACG.js.map → chunk-4QQ3QVY7.js.map} +1 -1
- package/dist/{chunk-7VU2OAJB.js → chunk-6LWCTP2Y.js} +21 -37
- package/dist/chunk-6LWCTP2Y.js.map +1 -0
- package/dist/{chunk-YZS2B6YE.js → chunk-7A47AXKI.js} +9 -11
- package/dist/chunk-7A47AXKI.js.map +1 -0
- package/dist/{chunk-LKYW4LH6.js → chunk-BLWJZHRL.js} +36 -43
- package/dist/chunk-BLWJZHRL.js.map +1 -0
- package/dist/{chunk-ZXRE2KZO.js → chunk-C3SEBNF5.js} +11 -15
- package/dist/chunk-C3SEBNF5.js.map +1 -0
- package/dist/{chunk-KOYTJW5E.js → chunk-DC4XZPDK.js} +7 -7
- package/dist/chunk-DC4XZPDK.js.map +1 -0
- package/dist/{chunk-HFR6YROB.js → chunk-DGVRHX3C.js} +1160 -1171
- package/dist/chunk-DGVRHX3C.js.map +1 -0
- package/dist/{chunk-VNSMNGWP.js → chunk-DMQKXBWO.js} +5 -5
- package/dist/{chunk-VNSMNGWP.js.map → chunk-DMQKXBWO.js.map} +1 -1
- package/dist/{chunk-67MOKJFZ.js → chunk-E2QQJZYY.js} +16 -16
- package/dist/chunk-E2QQJZYY.js.map +1 -0
- package/dist/{chunk-WZ5T2NXH.js → chunk-EBNZXYLT.js} +17 -15
- package/dist/chunk-EBNZXYLT.js.map +1 -0
- package/dist/{chunk-IH3STE7W.js → chunk-ED32WLAD.js} +1168 -1215
- package/dist/chunk-ED32WLAD.js.map +1 -0
- package/dist/{chunk-RGC2VFQO.js → chunk-FLYL76ZT.js} +6 -6
- package/dist/{chunk-RGC2VFQO.js.map → chunk-FLYL76ZT.js.map} +1 -1
- package/dist/{chunk-UQLTP3XB.js → chunk-GTJMM32W.js} +144 -144
- package/dist/chunk-GTJMM32W.js.map +1 -0
- package/dist/{chunk-NCXFWCXP.js → chunk-HPJWMBUS.js} +12054 -11915
- package/dist/chunk-HPJWMBUS.js.map +1 -0
- package/dist/{chunk-TAWTGCWJ.js → chunk-ICFPSAJZ.js} +7 -8
- package/dist/chunk-ICFPSAJZ.js.map +1 -0
- package/dist/{chunk-WQTMOUCA.js → chunk-JWUKAZ3A.js} +45 -67
- package/dist/chunk-JWUKAZ3A.js.map +1 -0
- package/dist/{chunk-QRXDXAQI.js → chunk-KN4KOTC7.js} +161 -165
- package/dist/chunk-KN4KOTC7.js.map +1 -0
- package/dist/{chunk-UE2KBW3D.js → chunk-KRHH3UQ6.js} +34 -37
- package/dist/chunk-KRHH3UQ6.js.map +1 -0
- package/dist/{chunk-R4K6VAOK.js → chunk-M36DFIJ6.js} +11 -18
- package/dist/chunk-M36DFIJ6.js.map +1 -0
- package/dist/{chunk-UDJ7ARCH.js → chunk-S2ZOLTTS.js} +3 -3
- package/dist/{chunk-UDJ7ARCH.js.map → chunk-S2ZOLTTS.js.map} +1 -1
- package/dist/{chunk-D222OCTV.js → chunk-S67HGKJ2.js} +49 -55
- package/dist/chunk-S67HGKJ2.js.map +1 -0
- package/dist/chunk-ST7QOM4O.js +29 -0
- package/dist/chunk-ST7QOM4O.js.map +1 -0
- package/dist/{chunk-RDYYP36I.js → chunk-TMKA5ZHO.js} +7 -6
- package/dist/chunk-TMKA5ZHO.js.map +1 -0
- package/dist/{chunk-XGAYTDSI.js → chunk-UWX7GCNX.js} +23 -26
- package/dist/chunk-UWX7GCNX.js.map +1 -0
- package/dist/{chunk-6IP6YFQX.js → chunk-VMR7ZKIF.js} +21 -31
- package/dist/chunk-VMR7ZKIF.js.map +1 -0
- package/dist/{chunk-BMFHS3GV.js → chunk-YHWA7FXX.js} +22 -12
- package/dist/chunk-YHWA7FXX.js.map +1 -0
- package/dist/{chunk-GKAJ4EM2.js → chunk-ZQI4ZCVU.js} +83 -83
- package/dist/chunk-ZQI4ZCVU.js.map +1 -0
- package/dist/context-menu/index.js +16 -15
- package/dist/controls/index.js +7 -6
- package/dist/core/error/boundary.d.ts.map +1 -1
- package/dist/core/error/constants.d.ts +9 -0
- package/dist/core/error/constants.d.ts.map +1 -1
- package/dist/core/error/index.d.ts +2 -3
- package/dist/core/error/index.d.ts.map +1 -1
- package/dist/core/error/listener.d.ts.map +1 -1
- package/dist/core/error/reporter.d.ts +7 -6
- package/dist/core/error/reporter.d.ts.map +1 -1
- package/dist/core/error/utils.d.ts.map +1 -1
- package/dist/core/kernel/constants.d.ts +1 -1
- package/dist/core/kernel/constants.d.ts.map +1 -1
- package/dist/core/kernel/{compose.d.ts → host/compose.d.ts} +0 -4
- package/dist/core/kernel/host/compose.d.ts.map +1 -0
- package/dist/core/kernel/{installed.d.ts → host/installed.d.ts} +1 -1
- package/dist/core/kernel/host/installed.d.ts.map +1 -0
- package/dist/core/kernel/{module.d.ts → host/module.d.ts} +2 -5
- package/dist/core/kernel/host/module.d.ts.map +1 -0
- package/dist/core/kernel/{adapters.d.ts → host/registration.d.ts} +2 -2
- package/dist/core/kernel/host/registration.d.ts.map +1 -0
- package/dist/core/kernel/index.d.ts +12 -12
- package/dist/core/kernel/index.d.ts.map +1 -1
- package/dist/core/kernel/{page-controller.d.ts → page.d.ts} +2 -2
- package/dist/core/kernel/page.d.ts.map +1 -0
- package/dist/core/kernel/{handlers.d.ts → registry/apply.d.ts} +2 -2
- package/dist/core/kernel/registry/apply.d.ts.map +1 -0
- package/dist/core/kernel/{hooks.d.ts → registry/hooks.d.ts} +1 -1
- package/dist/core/kernel/registry/hooks.d.ts.map +1 -0
- package/dist/core/kernel/{operations.d.ts → registry/operations.d.ts} +2 -2
- package/dist/core/kernel/registry/operations.d.ts.map +1 -0
- package/dist/core/kernel/{provider.d.ts → registry/provider.d.ts} +2 -2
- package/dist/core/kernel/registry/provider.d.ts.map +1 -0
- package/dist/core/kernel/{operations-records.d.ts → registry/records.d.ts} +2 -2
- package/dist/core/kernel/registry/records.d.ts.map +1 -0
- package/dist/core/kernel/registry/registration.d.ts +13 -0
- package/dist/core/kernel/registry/registration.d.ts.map +1 -0
- package/dist/core/kernel/{schema.d.ts → registry/schema.d.ts} +1 -1
- package/dist/core/kernel/registry/schema.d.ts.map +1 -0
- package/dist/core/kernel/{store-snapshots.d.ts → registry/snapshots.d.ts} +3 -3
- package/dist/core/kernel/registry/snapshots.d.ts.map +1 -0
- package/dist/core/kernel/{stabilize.d.ts → registry/stabilize.d.ts} +1 -1
- package/dist/core/kernel/registry/stabilize.d.ts.map +1 -0
- package/dist/core/kernel/{store.d.ts → registry/store.d.ts} +2 -2
- package/dist/core/kernel/registry/store.d.ts.map +1 -0
- package/dist/core/kernel/{store-subscriptions.d.ts → registry/subscriptions.d.ts} +2 -6
- package/dist/core/kernel/registry/subscriptions.d.ts.map +1 -0
- package/dist/core/kernel/{runtime.d.ts → registry/transaction.d.ts} +2 -2
- package/dist/core/kernel/registry/transaction.d.ts.map +1 -0
- package/dist/core/kernel/{types-modules.d.ts → types/modules.d.ts} +4 -4
- package/dist/core/kernel/types/modules.d.ts.map +1 -0
- package/dist/core/kernel/{types-page.d.ts → types/page.d.ts} +3 -3
- package/dist/core/kernel/types/page.d.ts.map +1 -0
- package/dist/core/kernel/{types.d.ts → types/registry.d.ts} +4 -4
- package/dist/core/kernel/types/registry.d.ts.map +1 -0
- package/dist/core/kernel/{types-store.d.ts → types/store.d.ts} +3 -3
- package/dist/core/kernel/types/store.d.ts.map +1 -0
- package/dist/core/kernel/utils.d.ts +1 -1
- package/dist/core/kernel/utils.d.ts.map +1 -1
- package/dist/core/navigation/{navigator-holds.d.ts → holds.d.ts} +2 -1
- package/dist/core/navigation/holds.d.ts.map +1 -0
- package/dist/core/navigation/navigator.d.ts.map +1 -1
- package/dist/core/navigation/{navigator-patience.d.ts → patience.d.ts} +1 -1
- package/dist/core/navigation/patience.d.ts.map +1 -0
- package/dist/core/navigation/{navigator-payload.d.ts → payload.d.ts} +2 -1
- package/dist/core/navigation/payload.d.ts.map +1 -0
- package/dist/core/navigation/{navigator-prefetch.d.ts → prefetch.d.ts} +2 -1
- package/dist/core/navigation/prefetch.d.ts.map +1 -0
- package/dist/core/navigation/settings.d.ts.map +1 -1
- package/dist/core/navigation/state.d.ts.map +1 -1
- package/dist/core/navigation/utils.d.ts +3 -0
- package/dist/core/navigation/utils.d.ts.map +1 -1
- package/dist/core/provider/index.d.ts +1 -1
- package/dist/core/provider/index.d.ts.map +1 -1
- package/dist/dock/index.js +15 -14
- package/dist/error/index.js +7 -7
- package/dist/events/index.js +24 -20
- package/dist/events/index.js.map +1 -1
- package/dist/foundation/events/index.d.ts.map +1 -1
- package/dist/foundation/recipes/recipe.d.ts.map +1 -1
- package/dist/foundation/result/index.d.ts.map +1 -1
- package/dist/foundation/utils/collections.d.ts +11 -0
- package/dist/foundation/utils/collections.d.ts.map +1 -0
- package/dist/foundation/utils/dom.d.ts.map +1 -1
- package/dist/foundation/utils/report.d.ts.map +1 -1
- package/dist/foundation/utils/scheduler.d.ts.map +1 -1
- package/dist/foundation/utils/store.d.ts.map +1 -1
- package/dist/foundation/utils/string.d.ts.map +1 -1
- package/dist/foundation/utils/tempo.d.ts.map +1 -1
- package/dist/foundation/utils/timing.d.ts.map +1 -1
- package/dist/foundation/utils/user-message.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -3
- package/dist/index.js +25 -24
- package/dist/kernel/index.js +4 -4
- package/dist/loading/index.js +8 -8
- package/dist/media/index.js +5 -5
- package/dist/modal/index.js +155 -166
- package/dist/modal/index.js.map +1 -1
- package/dist/modules/ambient/{analyze.d.ts → analysis/analyze.d.ts} +3 -3
- package/dist/modules/ambient/analysis/analyze.d.ts.map +1 -0
- package/dist/modules/ambient/{analyze-bounds.d.ts → analysis/bounds.d.ts} +2 -2
- package/dist/modules/ambient/analysis/bounds.d.ts.map +1 -0
- package/dist/modules/ambient/{analyze-clusters.d.ts → analysis/clusters.d.ts} +3 -3
- package/dist/modules/ambient/analysis/clusters.d.ts.map +1 -0
- package/dist/modules/ambient/{analyze-ground.d.ts → analysis/ground.d.ts} +3 -3
- package/dist/modules/ambient/analysis/ground.d.ts.map +1 -0
- package/dist/modules/ambient/{analyze-measures.d.ts → analysis/measures.d.ts} +2 -2
- package/dist/modules/ambient/analysis/measures.d.ts.map +1 -0
- package/dist/modules/ambient/{oklab.d.ts → analysis/oklab.d.ts} +1 -3
- package/dist/modules/ambient/analysis/oklab.d.ts.map +1 -0
- package/dist/modules/ambient/analysis/quantize.d.ts.map +1 -0
- package/dist/modules/ambient/{analyze-swatches.d.ts → analysis/swatches.d.ts} +3 -3
- package/dist/modules/ambient/analysis/swatches.d.ts.map +1 -0
- package/dist/modules/ambient/hooks.d.ts +0 -1
- 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 +0 -3
- package/dist/modules/ambient/module.d.ts.map +1 -1
- package/dist/modules/ambient/pipeline.d.ts +6 -5
- package/dist/modules/ambient/pipeline.d.ts.map +1 -1
- package/dist/modules/ambient/server/index.d.ts +2 -2
- package/dist/modules/ambient/server/index.d.ts.map +1 -1
- package/dist/modules/ambient/settings.d.ts +0 -2
- package/dist/modules/ambient/settings.d.ts.map +1 -1
- package/dist/modules/ambient/worker/index.d.ts.map +1 -1
- package/dist/modules/background/constants.d.ts +3 -1
- package/dist/modules/background/constants.d.ts.map +1 -1
- package/dist/modules/background/context.d.ts +1 -1
- package/dist/modules/background/context.d.ts.map +1 -1
- package/dist/modules/background/hooks.d.ts +929 -0
- package/dist/modules/background/hooks.d.ts.map +1 -1
- package/dist/modules/background/index.d.ts +6 -6
- package/dist/modules/background/index.d.ts.map +1 -1
- package/dist/modules/background/module.d.ts +1 -1
- package/dist/modules/background/module.d.ts.map +1 -1
- package/dist/modules/background/{hooks/use-native-video-model.d.ts → native-video.d.ts} +4 -8
- package/dist/modules/background/native-video.d.ts.map +1 -0
- package/dist/modules/background/overlay.d.ts.map +1 -0
- package/dist/modules/background/playback.d.ts.map +1 -0
- package/dist/modules/background/{model/state.d.ts → state.d.ts} +11 -1
- package/dist/modules/background/state.d.ts.map +1 -0
- package/dist/modules/background/{model/visual.d.ts → visual.d.ts} +43 -6
- package/dist/modules/background/visual.d.ts.map +1 -0
- package/dist/modules/background/youtube/audio.d.ts.map +1 -0
- package/dist/modules/background/youtube/iframe.d.ts +92 -0
- package/dist/modules/background/youtube/iframe.d.ts.map +1 -0
- package/dist/modules/background/youtube/{lib/parse.d.ts → parse.d.ts} +1 -1
- package/dist/modules/background/youtube/parse.d.ts.map +1 -0
- package/dist/modules/background/youtube/{components/player.d.ts → player.d.ts} +1 -1
- package/dist/modules/background/youtube/player.d.ts.map +1 -0
- package/dist/modules/background/youtube/{lib/timing.d.ts → timing.d.ts} +0 -2
- package/dist/modules/background/youtube/timing.d.ts.map +1 -0
- package/dist/modules/background/youtube/use-iframe-player.d.ts +37 -0
- package/dist/modules/background/youtube/use-iframe-player.d.ts.map +1 -0
- package/dist/modules/background/youtube/{hooks/use-youtube-background-player-model.d.ts → use-player.d.ts} +2 -2
- package/dist/modules/background/youtube/use-player.d.ts.map +1 -0
- package/dist/modules/background/youtube/{hooks/use-youtube-video-sync.d.ts → use-video-sync.d.ts} +8 -4
- package/dist/modules/background/youtube/use-video-sync.d.ts.map +1 -0
- package/dist/modules/background/youtube/{lib/video-events.d.ts → video-events.d.ts} +8 -8
- package/dist/modules/background/youtube/video-events.d.ts.map +1 -0
- package/dist/modules/context-menu/dom.d.ts.map +1 -1
- package/dist/modules/context-menu/items.d.ts.map +1 -1
- package/dist/modules/context-menu/overlay.d.ts +3 -10
- package/dist/modules/context-menu/overlay.d.ts.map +1 -1
- package/dist/modules/context-menu/resolver.d.ts.map +1 -1
- package/dist/modules/controls/overlay.d.ts +0 -10
- package/dist/modules/controls/overlay.d.ts.map +1 -1
- package/dist/modules/dock/{lib → card}/banner.d.ts +3 -16
- package/dist/modules/dock/card/banner.d.ts.map +1 -0
- package/dist/modules/dock/{components/card-item.d.ts → card/card.d.ts} +5 -2
- package/dist/modules/dock/card/card.d.ts.map +1 -0
- package/dist/modules/dock/card/compact.d.ts +9 -0
- package/dist/modules/dock/card/compact.d.ts.map +1 -0
- package/dist/modules/dock/{components/item-content.d.ts → card/content.d.ts} +1 -1
- package/dist/modules/dock/card/content.d.ts.map +1 -0
- package/dist/modules/dock/card/header.d.ts +8 -0
- package/dist/modules/dock/card/header.d.ts.map +1 -0
- package/dist/modules/dock/{components → card}/icon.d.ts +1 -1
- package/dist/modules/dock/card/icon.d.ts.map +1 -0
- package/dist/modules/dock/{lib/card-item.d.ts → card/model.d.ts} +27 -2
- package/dist/modules/dock/card/model.d.ts.map +1 -0
- package/dist/modules/dock/{hooks/use-card-item-model.d.ts → card/use-card.d.ts} +6 -5
- package/dist/modules/dock/{hooks/use-card-item-model.d.ts.map → card/use-card.d.ts.map} +1 -1
- package/dist/modules/dock/commands/command-bar.d.ts.map +1 -0
- package/dist/modules/dock/{runtime/commands.d.ts → commands/registry.d.ts} +1 -1
- package/dist/modules/dock/commands/registry.d.ts.map +1 -0
- package/dist/modules/dock/constants.d.ts +4 -7
- package/dist/modules/dock/constants.d.ts.map +1 -1
- package/dist/modules/dock/context.d.ts +1 -1
- package/dist/modules/dock/context.d.ts.map +1 -1
- package/dist/modules/dock/hooks.d.ts +47 -0
- package/dist/modules/dock/hooks.d.ts.map +1 -0
- package/dist/modules/dock/{hud.d.ts → hud/hud.d.ts} +14 -7
- package/dist/modules/dock/hud/hud.d.ts.map +1 -0
- package/dist/modules/dock/{model/hud-definition.d.ts → hud/model.d.ts} +7 -1
- package/dist/modules/dock/hud/model.d.ts.map +1 -0
- package/dist/modules/dock/{components/hud-view.d.ts → hud/view.d.ts} +1 -1
- package/dist/modules/dock/hud/view.d.ts.map +1 -0
- package/dist/modules/dock/index.d.ts +22 -22
- package/dist/modules/dock/index.d.ts.map +1 -1
- package/dist/modules/dock/items/attention.d.ts +43 -0
- package/dist/modules/dock/items/attention.d.ts.map +1 -0
- package/dist/modules/dock/{runtime/model/items.d.ts → items/build.d.ts} +2 -2
- package/dist/modules/dock/items/build.d.ts.map +1 -0
- package/dist/modules/dock/{runtime → items}/display.d.ts +2 -5
- package/dist/modules/dock/items/display.d.ts.map +1 -0
- package/dist/modules/dock/items/operations.d.ts +22 -0
- package/dist/modules/dock/items/operations.d.ts.map +1 -0
- package/dist/modules/dock/{runtime → items}/pipeline.d.ts +1 -1
- package/dist/modules/dock/items/pipeline.d.ts.map +1 -0
- package/dist/modules/dock/{components/media-action.d.ts → media/controls.d.ts} +5 -2
- package/dist/modules/dock/media/controls.d.ts.map +1 -0
- package/dist/modules/dock/{lib/media.d.ts → media/model.d.ts} +1 -3
- package/dist/modules/dock/media/model.d.ts.map +1 -0
- package/dist/modules/dock/{components/media-scrubber.d.ts → media/scrubber.d.ts} +1 -1
- package/dist/modules/dock/media/scrubber.d.ts.map +1 -0
- package/dist/modules/dock/{hooks/use-media-controls-model.d.ts → media/use-controls.d.ts} +8 -8
- package/dist/modules/dock/media/use-controls.d.ts.map +1 -0
- package/dist/modules/dock/module.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +3 -4
- package/dist/modules/dock/motion.d.ts.map +1 -1
- package/dist/modules/dock/provider.d.ts.map +1 -1
- package/dist/modules/dock/routing/breadcrumbs-card.d.ts.map +1 -0
- package/dist/modules/dock/routing/{model/continuity.d.ts → continuity-state.d.ts} +2 -2
- package/dist/modules/dock/routing/continuity-state.d.ts.map +1 -0
- package/dist/modules/dock/routing/continuity.d.ts +8 -8
- package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
- package/dist/modules/dock/routing/navigation.d.ts +0 -10
- package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
- package/dist/modules/dock/routing/paths.d.ts.map +1 -0
- package/dist/modules/dock/routing/{model/policy.d.ts → policy.d.ts} +1 -1
- package/dist/modules/dock/routing/policy.d.ts.map +1 -0
- package/dist/modules/dock/routing/{hooks/use-route-prefetch.d.ts → prefetch.d.ts} +3 -3
- package/dist/modules/dock/routing/prefetch.d.ts.map +1 -0
- package/dist/modules/dock/routing/route-bridge.d.ts +8 -0
- package/dist/modules/dock/routing/route-bridge.d.ts.map +1 -0
- package/dist/modules/dock/routing/{model/topology.d.ts → topology.d.ts} +1 -1
- package/dist/modules/dock/routing/topology.d.ts.map +1 -0
- package/dist/modules/dock/{runtime/model → stack}/cards.d.ts +11 -5
- package/dist/modules/dock/stack/cards.d.ts.map +1 -0
- package/dist/modules/dock/stack/dock.d.ts.map +1 -0
- package/dist/modules/dock/stack/focus.d.ts +22 -0
- package/dist/modules/dock/stack/focus.d.ts.map +1 -0
- package/dist/modules/dock/{model → stack}/layout.d.ts +10 -4
- package/dist/modules/dock/stack/layout.d.ts.map +1 -0
- package/dist/modules/dock/{runtime/dock.d.ts → stack/use-dock-model.d.ts} +4 -1
- package/dist/modules/dock/stack/use-dock-model.d.ts.map +1 -0
- package/dist/modules/dock/{runtime/hooks → stack}/use-dock.d.ts +9 -9
- package/dist/modules/dock/stack/use-dock.d.ts.map +1 -0
- package/dist/modules/dock/stack/use-height.d.ts +12 -0
- package/dist/modules/dock/stack/use-height.d.ts.map +1 -0
- package/dist/modules/dock/{components/status-actions.d.ts → status/actions.d.ts} +1 -1
- package/dist/modules/dock/status/actions.d.ts.map +1 -0
- package/dist/modules/dock/status/events.d.ts +4 -4
- package/dist/modules/dock/status/events.d.ts.map +1 -1
- package/dist/modules/dock/status/hooks.d.ts.map +1 -1
- package/dist/modules/dock/status/model.d.ts +34 -4
- package/dist/modules/dock/status/model.d.ts.map +1 -1
- package/dist/modules/dock/surface/{model/builder.d.ts → builder.d.ts} +13 -7
- package/dist/modules/dock/surface/builder.d.ts.map +1 -0
- package/dist/modules/dock/{components/surface/item-content.d.ts → surface/content.d.ts} +2 -2
- package/dist/modules/dock/surface/content.d.ts.map +1 -0
- package/dist/modules/dock/surface/context.d.ts +12 -3
- package/dist/modules/dock/surface/context.d.ts.map +1 -1
- package/dist/modules/dock/surface/controls.d.ts +26 -0
- package/dist/modules/dock/surface/controls.d.ts.map +1 -0
- package/dist/modules/dock/surface/definition.d.ts.map +1 -1
- package/dist/modules/dock/{components/surface → surface}/extensions-bar.d.ts +1 -1
- package/dist/modules/dock/surface/extensions-bar.d.ts.map +1 -0
- package/dist/modules/dock/{components/surface/action.d.ts → surface/extensions.d.ts} +4 -2
- package/dist/modules/dock/surface/extensions.d.ts.map +1 -0
- package/dist/modules/dock/{components/surface → surface}/header-button.d.ts +3 -3
- package/dist/modules/dock/surface/header-button.d.ts.map +1 -0
- package/dist/modules/dock/surface/helpers.d.ts +13 -1
- package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
- package/dist/modules/dock/surface/{model/normalize.d.ts → normalize.d.ts} +1 -1
- package/dist/modules/dock/surface/normalize.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/choreography.d.ts +28 -2
- package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -1
- package/dist/modules/dock/surface/runtime/flows.d.ts +1 -1
- package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -1
- package/dist/modules/dock/surface/{machine.d.ts → runtime/machine.d.ts} +1 -1
- package/dist/modules/dock/surface/runtime/machine.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/open.d.ts +1 -2
- package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -1
- package/dist/modules/dock/surface/{model → runtime}/records.d.ts +1 -1
- package/dist/modules/dock/surface/runtime/records.d.ts.map +1 -0
- package/dist/modules/dock/surface/{stack.d.ts → runtime/stack.d.ts} +10 -10
- package/dist/modules/dock/surface/runtime/stack.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/steps.d.ts +1 -1
- package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -1
- package/dist/modules/dock/surface/{model/transition-state.d.ts → runtime/transition.d.ts} +1 -1
- package/dist/modules/dock/surface/runtime/transition.d.ts.map +1 -0
- package/dist/modules/dock/surface/runtime/url.d.ts.map +1 -0
- package/dist/modules/dock/surface/{hooks/use-surface-shell-model.d.ts → shell.d.ts} +9 -3
- package/dist/modules/dock/surface/shell.d.ts.map +1 -0
- package/dist/modules/dock/surface/{hooks/use-surface-flow.d.ts → use-flow.d.ts} +2 -2
- package/dist/modules/dock/surface/use-flow.d.ts.map +1 -0
- package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
- package/dist/modules/dock/{lib/styles.d.ts → theme.d.ts} +8 -4
- package/dist/modules/dock/theme.d.ts.map +1 -0
- package/dist/modules/dock/types/card.d.ts +22 -2
- package/dist/modules/dock/types/card.d.ts.map +1 -1
- package/dist/modules/dock/types/index.d.ts +1 -0
- package/dist/modules/dock/types/index.d.ts.map +1 -1
- package/dist/modules/dock/types/surface.d.ts +2 -2
- package/dist/modules/dock/types/surface.d.ts.map +1 -1
- package/dist/modules/dock/types/theme.d.ts +10 -1
- package/dist/modules/dock/types/theme.d.ts.map +1 -1
- package/dist/modules/dock/{lib/helpers.d.ts → utils.d.ts} +10 -3
- package/dist/modules/dock/utils.d.ts.map +1 -0
- package/dist/modules/index.js +23 -22
- package/dist/modules/loading/hooks.d.ts +2 -1
- package/dist/modules/loading/hooks.d.ts.map +1 -1
- package/dist/modules/loading/state.d.ts.map +1 -1
- package/dist/modules/media/hooks.d.ts.map +1 -1
- package/dist/modules/media/playback.d.ts.map +1 -1
- package/dist/modules/modal/constants.d.ts +3 -1
- package/dist/modules/modal/constants.d.ts.map +1 -1
- package/dist/modules/modal/{components/modal-container.d.ts → container.d.ts} +2 -2
- package/dist/modules/modal/container.d.ts.map +1 -0
- package/dist/modules/modal/context.d.ts +5 -1
- package/dist/modules/modal/context.d.ts.map +1 -1
- package/dist/modules/modal/dom.d.ts.map +1 -0
- package/dist/modules/modal/hooks.d.ts +3 -2
- package/dist/modules/modal/hooks.d.ts.map +1 -1
- package/dist/modules/modal/index.d.ts +7 -7
- package/dist/modules/modal/index.d.ts.map +1 -1
- package/dist/modules/modal/{model/layout.d.ts → layout.d.ts} +1 -1
- package/dist/modules/modal/layout.d.ts.map +1 -0
- package/dist/modules/modal/module.d.ts +1 -1
- package/dist/modules/modal/module.d.ts.map +1 -1
- package/dist/modules/modal/overlay.d.ts.map +1 -0
- package/dist/modules/modal/state.d.ts +52 -0
- package/dist/modules/modal/state.d.ts.map +1 -0
- package/dist/modules/navigation/hooks.d.ts.map +1 -1
- package/dist/modules/notification/hooks.d.ts.map +1 -1
- package/dist/modules/notification/overlay.d.ts +0 -1
- package/dist/modules/notification/overlay.d.ts.map +1 -1
- package/dist/navigation/index.js +33 -41
- package/dist/navigation/index.js.map +1 -1
- package/dist/notification/index.js +8 -7
- package/dist/overlay-YMLS3SAQ.js +14 -0
- package/dist/{overlay-7QLGWHCH.js.map → overlay-YMLS3SAQ.js.map} +1 -1
- package/dist/provider/index.js +12 -11
- package/dist/react/hooks/index.d.ts +3 -1
- package/dist/react/hooks/index.d.ts.map +1 -1
- package/dist/react/hooks/use-client-value.d.ts +15 -0
- package/dist/react/hooks/use-client-value.d.ts.map +1 -0
- package/dist/react/hooks/use-controllable-state.d.ts +8 -1
- package/dist/react/hooks/use-controllable-state.d.ts.map +1 -1
- package/dist/react/hooks/use-fullscreen-state.d.ts +0 -2
- package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -1
- package/dist/react/hooks/use-global-event.d.ts +7 -1
- package/dist/react/hooks/use-global-event.d.ts.map +1 -1
- package/dist/react/hooks/use-hotkey.d.ts +9 -1
- package/dist/react/hooks/use-hotkey.d.ts.map +1 -1
- package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -1
- package/dist/react/hooks/use-store.d.ts +3 -0
- package/dist/react/hooks/use-store.d.ts.map +1 -1
- package/dist/react/theme/index.d.ts.map +1 -1
- package/dist/react/ui/components/avatar.d.ts +4 -0
- package/dist/react/ui/components/avatar.d.ts.map +1 -1
- package/dist/react/ui/components/carousel.d.ts +22 -1
- package/dist/react/ui/components/carousel.d.ts.map +1 -1
- package/dist/react/ui/components/image.d.ts.map +1 -1
- package/dist/react/ui/components/indicator.d.ts +18 -8
- package/dist/react/ui/components/indicator.d.ts.map +1 -1
- package/dist/react/ui/components/segmented.d.ts.map +1 -1
- package/dist/react/ui/components/{select-parts.d.ts → select/options.d.ts} +2 -2
- package/dist/react/ui/components/{select-parts.d.ts.map → select/options.d.ts.map} +1 -1
- package/dist/react/ui/components/{select.d.ts → select/select.d.ts} +1 -1
- package/dist/react/ui/components/select/select.d.ts.map +1 -0
- package/dist/react/ui/components/{tooltip-group.d.ts → tooltip/group.d.ts} +3 -2
- package/dist/react/ui/components/tooltip/group.d.ts.map +1 -0
- package/dist/react/ui/components/{tooltip-placement.d.ts → tooltip/placement.d.ts} +2 -3
- package/dist/react/ui/components/tooltip/placement.d.ts.map +1 -0
- package/dist/react/ui/components/{tooltip-slot.d.ts → tooltip/slot.d.ts} +1 -1
- package/dist/react/ui/components/tooltip/slot.d.ts.map +1 -0
- package/dist/react/ui/components/{tooltip.d.ts → tooltip/tooltip.d.ts} +2 -2
- package/dist/react/ui/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/react/ui/index.d.ts +5 -4
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/react/ui/provider.d.ts.map +1 -1
- package/dist/react/ui/types.d.ts +131 -3
- package/dist/react/ui/types.d.ts.map +1 -1
- package/dist/recipes/index.js +5 -6
- package/dist/recipes/index.js.map +1 -1
- package/dist/result/index.js +12 -15
- package/dist/result/index.js.map +1 -1
- package/dist/theme/index.js +2 -2
- package/dist/ui/index.js +849 -858
- package/dist/ui/index.js.map +1 -1
- package/dist/utils/index.js +31 -34
- package/dist/utils/index.js.map +1 -1
- package/docs/README.md +1 -1
- package/docs/architecture-and-rules.md +35 -24
- package/docs/modules/README.md +15 -15
- package/docs/modules/ambient.md +23 -23
- package/docs/modules/background.md +23 -18
- package/docs/modules/dock.md +34 -20
- package/docs/modules/error-boundary.md +1 -2
- package/docs/modules/kernel.md +28 -30
- package/docs/modules/modal.md +16 -15
- package/docs/modules/navigation.md +14 -14
- package/docs/testing.md +1 -1
- package/package.json +1 -2
- package/dist/chunk-67MOKJFZ.js.map +0 -1
- package/dist/chunk-6IP6YFQX.js.map +0 -1
- package/dist/chunk-7VU2OAJB.js.map +0 -1
- package/dist/chunk-BMFHS3GV.js.map +0 -1
- package/dist/chunk-D222OCTV.js.map +0 -1
- package/dist/chunk-ESD5EQ5H.js.map +0 -1
- package/dist/chunk-GKAJ4EM2.js.map +0 -1
- package/dist/chunk-HFR6YROB.js.map +0 -1
- package/dist/chunk-IH3STE7W.js.map +0 -1
- package/dist/chunk-K3LXE6D5.js +0 -17
- package/dist/chunk-KOYTJW5E.js.map +0 -1
- package/dist/chunk-LKYW4LH6.js.map +0 -1
- package/dist/chunk-NCXFWCXP.js.map +0 -1
- package/dist/chunk-QRXDXAQI.js.map +0 -1
- package/dist/chunk-R4K6VAOK.js.map +0 -1
- package/dist/chunk-RDYYP36I.js.map +0 -1
- package/dist/chunk-TAWTGCWJ.js.map +0 -1
- package/dist/chunk-UE2KBW3D.js.map +0 -1
- package/dist/chunk-UQLTP3XB.js.map +0 -1
- package/dist/chunk-WQTMOUCA.js.map +0 -1
- package/dist/chunk-WZ5T2NXH.js.map +0 -1
- package/dist/chunk-XGAYTDSI.js.map +0 -1
- package/dist/chunk-YZS2B6YE.js.map +0 -1
- package/dist/chunk-ZXRE2KZO.js.map +0 -1
- package/dist/core/error/theme.d.ts +0 -10
- package/dist/core/error/theme.d.ts.map +0 -1
- package/dist/core/kernel/adapters.d.ts.map +0 -1
- package/dist/core/kernel/compose.d.ts.map +0 -1
- package/dist/core/kernel/handlers.d.ts.map +0 -1
- package/dist/core/kernel/hooks.d.ts.map +0 -1
- package/dist/core/kernel/installed.d.ts.map +0 -1
- package/dist/core/kernel/module.d.ts.map +0 -1
- package/dist/core/kernel/operations-records.d.ts.map +0 -1
- package/dist/core/kernel/operations-resolve.d.ts +0 -5
- package/dist/core/kernel/operations-resolve.d.ts.map +0 -1
- package/dist/core/kernel/operations.d.ts.map +0 -1
- package/dist/core/kernel/page-controller.d.ts.map +0 -1
- package/dist/core/kernel/provider.d.ts.map +0 -1
- package/dist/core/kernel/runtime.d.ts.map +0 -1
- package/dist/core/kernel/schema.d.ts.map +0 -1
- package/dist/core/kernel/stabilize.d.ts.map +0 -1
- package/dist/core/kernel/store-batch.d.ts +0 -17
- package/dist/core/kernel/store-batch.d.ts.map +0 -1
- package/dist/core/kernel/store-entries.d.ts +0 -6
- package/dist/core/kernel/store-entries.d.ts.map +0 -1
- package/dist/core/kernel/store-handles.d.ts +0 -4
- package/dist/core/kernel/store-handles.d.ts.map +0 -1
- package/dist/core/kernel/store-registration.d.ts +0 -14
- package/dist/core/kernel/store-registration.d.ts.map +0 -1
- package/dist/core/kernel/store-snapshots.d.ts.map +0 -1
- package/dist/core/kernel/store-subscriptions.d.ts.map +0 -1
- package/dist/core/kernel/store.d.ts.map +0 -1
- package/dist/core/kernel/types-modules.d.ts.map +0 -1
- package/dist/core/kernel/types-page.d.ts.map +0 -1
- package/dist/core/kernel/types-store.d.ts.map +0 -1
- package/dist/core/kernel/types.d.ts.map +0 -1
- package/dist/core/navigation/navigator-defaults.d.ts +0 -4
- package/dist/core/navigation/navigator-defaults.d.ts.map +0 -1
- package/dist/core/navigation/navigator-holds.d.ts.map +0 -1
- package/dist/core/navigation/navigator-patience.d.ts.map +0 -1
- package/dist/core/navigation/navigator-payload.d.ts.map +0 -1
- package/dist/core/navigation/navigator-prefetch.d.ts.map +0 -1
- package/dist/modules/ambient/analyze-bounds.d.ts.map +0 -1
- package/dist/modules/ambient/analyze-clusters.d.ts.map +0 -1
- package/dist/modules/ambient/analyze-ground.d.ts.map +0 -1
- package/dist/modules/ambient/analyze-measures.d.ts.map +0 -1
- package/dist/modules/ambient/analyze-swatches.d.ts.map +0 -1
- package/dist/modules/ambient/analyze.d.ts.map +0 -1
- package/dist/modules/ambient/oklab.d.ts.map +0 -1
- package/dist/modules/ambient/quantize.d.ts.map +0 -1
- package/dist/modules/background/components/background-gradients.d.ts +0 -8
- package/dist/modules/background/components/background-gradients.d.ts.map +0 -1
- package/dist/modules/background/components/edge-gradient.d.ts +0 -9
- package/dist/modules/background/components/edge-gradient.d.ts.map +0 -1
- package/dist/modules/background/components/native-video.d.ts +0 -4
- package/dist/modules/background/components/native-video.d.ts.map +0 -1
- package/dist/modules/background/components/noise-overlay.d.ts +0 -11
- package/dist/modules/background/components/noise-overlay.d.ts.map +0 -1
- package/dist/modules/background/components/overlay.d.ts.map +0 -1
- package/dist/modules/background/components/solid-overlay.d.ts +0 -10
- package/dist/modules/background/components/solid-overlay.d.ts.map +0 -1
- package/dist/modules/background/hooks/use-background-media-source.d.ts +0 -4
- package/dist/modules/background/hooks/use-background-media-source.d.ts.map +0 -1
- package/dist/modules/background/hooks/use-background-motion-model.d.ts +0 -15
- package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +0 -1
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts +0 -929
- package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +0 -1
- package/dist/modules/background/hooks/use-native-video-model.d.ts.map +0 -1
- package/dist/modules/background/lib/theme.d.ts +0 -4
- package/dist/modules/background/lib/theme.d.ts.map +0 -1
- package/dist/modules/background/model/override.d.ts +0 -14
- package/dist/modules/background/model/override.d.ts.map +0 -1
- package/dist/modules/background/model/playback.d.ts.map +0 -1
- package/dist/modules/background/model/state.d.ts.map +0 -1
- package/dist/modules/background/model/video-frame.d.ts +0 -31
- package/dist/modules/background/model/video-frame.d.ts.map +0 -1
- package/dist/modules/background/model/visual.d.ts.map +0 -1
- package/dist/modules/background/youtube/components/player.d.ts.map +0 -1
- package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +0 -1
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +0 -20
- package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +0 -1
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +0 -8
- package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +0 -1
- package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +0 -1
- package/dist/modules/background/youtube/lib/audio.d.ts.map +0 -1
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts +0 -29
- package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +0 -1
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +0 -47
- package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +0 -1
- package/dist/modules/background/youtube/lib/iframe.d.ts +0 -47
- package/dist/modules/background/youtube/lib/iframe.d.ts.map +0 -1
- package/dist/modules/background/youtube/lib/parse.d.ts.map +0 -1
- package/dist/modules/background/youtube/lib/timing.d.ts.map +0 -1
- package/dist/modules/background/youtube/lib/video-events.d.ts.map +0 -1
- package/dist/modules/dock/components/badge.d.ts +0 -5
- package/dist/modules/dock/components/badge.d.ts.map +0 -1
- package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +0 -1
- package/dist/modules/dock/components/card-banner.d.ts +0 -4
- package/dist/modules/dock/components/card-banner.d.ts.map +0 -1
- package/dist/modules/dock/components/card-header.d.ts +0 -4
- package/dist/modules/dock/components/card-header.d.ts.map +0 -1
- package/dist/modules/dock/components/card-item.d.ts.map +0 -1
- package/dist/modules/dock/components/command-bar.d.ts.map +0 -1
- package/dist/modules/dock/components/description.d.ts +0 -4
- package/dist/modules/dock/components/description.d.ts.map +0 -1
- package/dist/modules/dock/components/dock.d.ts.map +0 -1
- package/dist/modules/dock/components/hud-view.d.ts.map +0 -1
- package/dist/modules/dock/components/icon.d.ts.map +0 -1
- package/dist/modules/dock/components/item-content.d.ts.map +0 -1
- package/dist/modules/dock/components/media-action.d.ts.map +0 -1
- package/dist/modules/dock/components/media-controls.d.ts +0 -4
- package/dist/modules/dock/components/media-controls.d.ts.map +0 -1
- package/dist/modules/dock/components/media-scrubber.d.ts.map +0 -1
- package/dist/modules/dock/components/status-actions.d.ts.map +0 -1
- package/dist/modules/dock/components/surface/action.d.ts.map +0 -1
- package/dist/modules/dock/components/surface/controls.d.ts +0 -12
- package/dist/modules/dock/components/surface/controls.d.ts.map +0 -1
- package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +0 -1
- package/dist/modules/dock/components/surface/header-button.d.ts.map +0 -1
- package/dist/modules/dock/components/surface/item-content.d.ts.map +0 -1
- package/dist/modules/dock/components/surface/shell.d.ts +0 -3
- package/dist/modules/dock/components/surface/shell.d.ts.map +0 -1
- package/dist/modules/dock/components/title.d.ts +0 -4
- package/dist/modules/dock/components/title.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-action-slot.d.ts +0 -6
- package/dist/modules/dock/hooks/use-action-slot.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-badge.d.ts +0 -4
- package/dist/modules/dock/hooks/use-badge.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts +0 -18
- package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-card-header-model.d.ts +0 -7
- package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts +0 -12
- package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-banner.d.ts +0 -11
- package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-config.d.ts +0 -19
- package/dist/modules/dock/hooks/use-dock-config.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +0 -7
- package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +0 -7
- package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +0 -6
- package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +0 -11
- package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-registration.d.ts +0 -8
- package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +0 -2
- package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-theme.d.ts +0 -6
- package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts +0 -6
- package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-element-height.d.ts +0 -3
- package/dist/modules/dock/hooks/use-element-height.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-hud-registry.d.ts +0 -16
- package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts +0 -9
- package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +0 -27
- package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +0 -12
- package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +0 -1
- package/dist/modules/dock/hooks/use-surface-return.d.ts +0 -8
- package/dist/modules/dock/hooks/use-surface-return.d.ts.map +0 -1
- package/dist/modules/dock/hud.d.ts.map +0 -1
- package/dist/modules/dock/lib/banner.d.ts.map +0 -1
- package/dist/modules/dock/lib/card-item.d.ts.map +0 -1
- package/dist/modules/dock/lib/card.d.ts +0 -20
- package/dist/modules/dock/lib/card.d.ts.map +0 -1
- package/dist/modules/dock/lib/command-bar.d.ts +0 -8
- package/dist/modules/dock/lib/command-bar.d.ts.map +0 -1
- package/dist/modules/dock/lib/dom.d.ts +0 -7
- package/dist/modules/dock/lib/dom.d.ts.map +0 -1
- package/dist/modules/dock/lib/element-helpers.d.ts +0 -8
- package/dist/modules/dock/lib/element-helpers.d.ts.map +0 -1
- package/dist/modules/dock/lib/helpers.d.ts.map +0 -1
- package/dist/modules/dock/lib/media.d.ts.map +0 -1
- package/dist/modules/dock/lib/styles.d.ts.map +0 -1
- package/dist/modules/dock/model/hud-definition.d.ts.map +0 -1
- package/dist/modules/dock/model/hud.d.ts +0 -10
- package/dist/modules/dock/model/hud.d.ts.map +0 -1
- package/dist/modules/dock/model/layout.d.ts.map +0 -1
- package/dist/modules/dock/model/page-entry.d.ts +0 -11
- package/dist/modules/dock/model/page-entry.d.ts.map +0 -1
- package/dist/modules/dock/model/page-surface.d.ts +0 -4
- package/dist/modules/dock/model/page-surface.d.ts.map +0 -1
- package/dist/modules/dock/model/paths.d.ts.map +0 -1
- package/dist/modules/dock/model/state.d.ts +0 -28
- package/dist/modules/dock/model/state.d.ts.map +0 -1
- package/dist/modules/dock/model/surface-return.d.ts +0 -14
- package/dist/modules/dock/model/surface-return.d.ts.map +0 -1
- package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +0 -1
- package/dist/modules/dock/routing/lib/restore.d.ts +0 -7
- package/dist/modules/dock/routing/lib/restore.d.ts.map +0 -1
- package/dist/modules/dock/routing/model/continuity.d.ts.map +0 -1
- package/dist/modules/dock/routing/model/policy.d.ts.map +0 -1
- package/dist/modules/dock/routing/model/topology.d.ts.map +0 -1
- package/dist/modules/dock/runtime/commands.d.ts.map +0 -1
- package/dist/modules/dock/runtime/display.d.ts.map +0 -1
- package/dist/modules/dock/runtime/dock.d.ts.map +0 -1
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +0 -10
- package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +0 -1
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +0 -10
- package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +0 -1
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +0 -14
- package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +0 -1
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +0 -7
- package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +0 -1
- package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +0 -1
- package/dist/modules/dock/runtime/model/attention.d.ts +0 -25
- package/dist/modules/dock/runtime/model/attention.d.ts.map +0 -1
- package/dist/modules/dock/runtime/model/cards.d.ts.map +0 -1
- package/dist/modules/dock/runtime/model/items.d.ts.map +0 -1
- package/dist/modules/dock/runtime/model/layout.d.ts +0 -10
- package/dist/modules/dock/runtime/model/layout.d.ts.map +0 -1
- package/dist/modules/dock/runtime/pipeline.d.ts.map +0 -1
- package/dist/modules/dock/runtime/provider-actions.d.ts +0 -38
- package/dist/modules/dock/runtime/provider-actions.d.ts.map +0 -1
- package/dist/modules/dock/status/action-options.d.ts +0 -35
- package/dist/modules/dock/status/action-options.d.ts.map +0 -1
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +0 -5
- package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +0 -1
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +0 -7
- package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +0 -1
- package/dist/modules/dock/surface/constants.d.ts +0 -5
- package/dist/modules/dock/surface/constants.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +0 -15
- package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +0 -7
- package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +0 -14
- package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +0 -13
- package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +0 -1
- package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +0 -1
- package/dist/modules/dock/surface/lib/drag.d.ts +0 -9
- package/dist/modules/dock/surface/lib/drag.d.ts.map +0 -1
- package/dist/modules/dock/surface/lib/target.d.ts +0 -8
- package/dist/modules/dock/surface/lib/target.d.ts.map +0 -1
- package/dist/modules/dock/surface/machine.d.ts.map +0 -1
- package/dist/modules/dock/surface/model/builder.d.ts.map +0 -1
- package/dist/modules/dock/surface/model/normalize.d.ts.map +0 -1
- package/dist/modules/dock/surface/model/open.d.ts +0 -26
- package/dist/modules/dock/surface/model/open.d.ts.map +0 -1
- package/dist/modules/dock/surface/model/records.d.ts.map +0 -1
- package/dist/modules/dock/surface/model/steps.d.ts +0 -9
- package/dist/modules/dock/surface/model/steps.d.ts.map +0 -1
- package/dist/modules/dock/surface/model/transition-state.d.ts.map +0 -1
- package/dist/modules/dock/surface/model/url.d.ts.map +0 -1
- package/dist/modules/dock/surface/runtime/context.d.ts +0 -29
- package/dist/modules/dock/surface/runtime/context.d.ts.map +0 -1
- package/dist/modules/dock/surface/runtime/release.d.ts +0 -9
- package/dist/modules/dock/surface/runtime/release.d.ts.map +0 -1
- package/dist/modules/dock/surface/stack.d.ts.map +0 -1
- package/dist/modules/modal/components/close-button.d.ts +0 -6
- package/dist/modules/modal/components/close-button.d.ts.map +0 -1
- package/dist/modules/modal/components/modal-container.d.ts.map +0 -1
- package/dist/modules/modal/components/modal-layer-switcher.d.ts +0 -9
- package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +0 -1
- package/dist/modules/modal/components/modal-layer.d.ts +0 -17
- package/dist/modules/modal/components/modal-layer.d.ts.map +0 -1
- package/dist/modules/modal/components/overlay.d.ts.map +0 -1
- package/dist/modules/modal/components/resolve-header.d.ts +0 -10
- package/dist/modules/modal/components/resolve-header.d.ts.map +0 -1
- package/dist/modules/modal/components/slot-row.d.ts +0 -12
- package/dist/modules/modal/components/slot-row.d.ts.map +0 -1
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +0 -3
- package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +0 -1
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +0 -12
- package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +0 -1
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +0 -3
- package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +0 -1
- package/dist/modules/modal/lib/dom.d.ts.map +0 -1
- package/dist/modules/modal/lib/theme.d.ts +0 -4
- package/dist/modules/modal/lib/theme.d.ts.map +0 -1
- package/dist/modules/modal/model/entry.d.ts +0 -18
- package/dist/modules/modal/model/entry.d.ts.map +0 -1
- package/dist/modules/modal/model/header.d.ts +0 -16
- package/dist/modules/modal/model/header.d.ts.map +0 -1
- package/dist/modules/modal/model/identity.d.ts +0 -13
- package/dist/modules/modal/model/identity.d.ts.map +0 -1
- package/dist/modules/modal/model/layout.d.ts.map +0 -1
- package/dist/modules/modal/model/state.d.ts +0 -10
- package/dist/modules/modal/model/state.d.ts.map +0 -1
- package/dist/overlay-7QLGWHCH.js +0 -13
- package/dist/react/hooks/types.d.ts +0 -25
- package/dist/react/hooks/types.d.ts.map +0 -1
- package/dist/react/ui/components/select.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip-group.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip-placement.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip-slot.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip.d.ts.map +0 -1
- package/dist/react/ui/types-controls.d.ts +0 -133
- package/dist/react/ui/types-controls.d.ts.map +0 -1
- package/dist/react/ui/utils.d.ts +0 -65
- package/dist/react/ui/utils.d.ts.map +0 -1
- package/docs/proposals/navigation.md +0 -210
- /package/dist/modules/ambient/{quantize.d.ts → analysis/quantize.d.ts} +0 -0
- /package/dist/modules/background/{components/overlay.d.ts → overlay.d.ts} +0 -0
- /package/dist/modules/background/{model/playback.d.ts → playback.d.ts} +0 -0
- /package/dist/modules/background/youtube/{lib/audio.d.ts → audio.d.ts} +0 -0
- /package/dist/modules/dock/{components → commands}/command-bar.d.ts +0 -0
- /package/dist/modules/dock/{components → routing}/breadcrumbs-card.d.ts +0 -0
- /package/dist/modules/dock/{model → routing}/paths.d.ts +0 -0
- /package/dist/modules/dock/{components → stack}/dock.d.ts +0 -0
- /package/dist/modules/dock/surface/{model → runtime}/url.d.ts +0 -0
- /package/dist/modules/modal/{lib/dom.d.ts → dom.d.ts} +0 -0
- /package/dist/modules/modal/{components/overlay.d.ts → overlay.d.ts} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { DefineModalOptions, ModalComponent, ModalEntry, ModalInput, ModalOptions, ModalState } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Derives the modal state (top modal fields, open flag) from a stack of entries.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createModalState(modalStack?: ModalEntry[]): ModalState;
|
|
7
|
+
/**
|
|
8
|
+
* Modal state with nothing open.
|
|
9
|
+
*/
|
|
10
|
+
export declare const INITIAL_MODAL_STATE: ModalState;
|
|
11
|
+
/** Whether a stack entry is the modal described by `type` / `component`. */
|
|
12
|
+
export declare function isSameModal(entry: ModalEntry | undefined, type: string, component: ModalComponent | null): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Builds the stack entry for a modal being opened, merging a definition's
|
|
15
|
+
* defaults with the per-call options. Also returns the close callback.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createModalEntry({ component, input, modalId, options, type, }: {
|
|
18
|
+
component: ModalComponent | null;
|
|
19
|
+
input: ModalInput;
|
|
20
|
+
modalId: number;
|
|
21
|
+
options: ModalOptions;
|
|
22
|
+
type: string;
|
|
23
|
+
}): {
|
|
24
|
+
entry: ModalEntry;
|
|
25
|
+
onClose: ModalOptions["onClose"];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Resolves the type name and component of a modal input (string, component or definition).
|
|
29
|
+
*/
|
|
30
|
+
export declare function getModalIdentity(input: ModalInput | DefineModalOptions): {
|
|
31
|
+
component: ModalComponent | null;
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Human-readable label for a modal type, such as "user-settings" to "User Settings".
|
|
36
|
+
*/
|
|
37
|
+
export declare function getModalLabel(modalType?: string | null): string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether a slot value renders anything: not null, undefined, false or an empty string.
|
|
40
|
+
*/
|
|
41
|
+
export declare function hasSlotContent(value: unknown): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether a header value is a config object rather than a React node.
|
|
44
|
+
*/
|
|
45
|
+
export declare function isHeaderConfig(value: unknown): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Resolves header actions, calling them with `close` when they are a function.
|
|
48
|
+
*/
|
|
49
|
+
export declare function resolveHeaderActions(actions: ReactNode | ((props: {
|
|
50
|
+
close?: (result?: unknown) => void;
|
|
51
|
+
}) => ReactNode) | undefined, close?: (result?: unknown) => void): ReactNode;
|
|
52
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/modules/modal/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACX,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,GAAE,UAAU,EAAO,GAAG,UAAU,CAe1E;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,YAAuB,CAAC;AAExD,4EAA4E;AAC5E,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,cAAc,GAAG,IAAI,GAC/B,OAAO,CAMT;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,KAAK,EACL,OAAO,EACP,OAAO,EACP,IAAI,GACL,EAAE;IACD,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;IACjC,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAA;CAAE,CAuB1D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,kBAAkB,GAAG;IACxE,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd,CAaA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAQ/D;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAItD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAOtD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EACH,SAAS,GACT,CAAC,CAAC,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAAE,KAAK,SAAS,CAAC,GAC9D,SAAS,EACb,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,GACjC,SAAS,CAEX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/modules/navigation/hooks.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,cAAc,EACf,MAAM,yBAAyB,CAAC;AAUjC;;GAEG;AACH,wBAAgB,aAAa,IAAI,iBAAiB,CAMjD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,iBAAiB,CAEzD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAAC;AACtD,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,CAAC,EACvC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,GAChC,CAAC,CAAC;AASL;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,cAAc,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,EAC/C,EAAE,OAAc,EAAE,GAAE,qBAA0B,GAC7C,IAAI,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/modules/navigation/hooks.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,cAAc,EACf,MAAM,yBAAyB,CAAC;AAUjC;;GAEG;AACH,wBAAgB,aAAa,IAAI,iBAAiB,CAMjD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,iBAAiB,CAEzD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAAC;AACtD,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,CAAC,EACvC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,GAChC,CAAC,CAAC;AASL;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,cAAc,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,EAC/C,EAAE,OAAc,EAAE,GAAE,qBAA0B,GAC7C,IAAI,CAUN;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,oBAAoB,EACjE,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAC/B,IAAI,CASN;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CAY5E;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,cAAc,GAAG,IAAI,CAMpD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAKnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/modules/notification/hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/modules/notification/hooks.ts"],"names":[],"mappings":"AAwBA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EAGrB,MAAM,SAAS,CAAC;AAUjB;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,mBAAmB,CAM5D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,CAOxD;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,GAAG,mBAAmB,CAKzE;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,IAAI,iBAAiB,CAAC;AAClE,wBAAgB,4BAA4B,CAAC,CAAC,EAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,CAAC,EACzC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,GAChC,CAAC,CAAC;AAaL;;;GAGG;AACH,wBAAgB,8BAA8B,IAAI,mBAAmB,CAGpE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAIhD;AA8ED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,eAAe,CAmDzE;AAOD;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAgB3C;AAED;;GAEG;AACH,wBAAgB,6BAA6B;;;;;EAU5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/modules/notification/overlay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/modules/notification/overlay.tsx"],"names":[],"mappings":"AAoGA,wBAAgB,iBAAiB,gCAOhC"}
|
package/dist/navigation/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { NavigationContext, INERT_NAVIGATION_ACTIONS, NOOP_NAVIGATION_STORE } from '../chunk-
|
|
3
|
-
export { INERT_NAVIGATION_ACTIONS, NavigationContext, NavigationProvider, navigationModule, watchHistory, watchIntent } from '../chunk-
|
|
4
|
-
import { isSamePathname, tripDestination } from '../chunk-
|
|
5
|
-
export { NAVIGATION_EVENTS, NAVIGATION_PHASE, NAVIGATION_REASON, NAVIGATION_SOURCE, NAVIGATION_STATUS, configureNavigation, createNavigator, getNavigationSettings, isSafeInternalHref, locationKeyOf, pathOf } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import { useRequiredContext, useStore } from '../chunk-
|
|
8
|
-
import '../chunk-
|
|
2
|
+
import { NavigationContext, INERT_NAVIGATION_ACTIONS, NOOP_NAVIGATION_STORE } from '../chunk-DMQKXBWO.js';
|
|
3
|
+
export { INERT_NAVIGATION_ACTIONS, NavigationContext, NavigationProvider, navigationModule, watchHistory, watchIntent } from '../chunk-DMQKXBWO.js';
|
|
4
|
+
import { isSamePathname, tripDestination } from '../chunk-UWX7GCNX.js';
|
|
5
|
+
export { NAVIGATION_EVENTS, NAVIGATION_PHASE, NAVIGATION_REASON, NAVIGATION_SOURCE, NAVIGATION_STATUS, configureNavigation, createNavigator, getNavigationSettings, isSafeInternalHref, locationKeyOf, pathOf } from '../chunk-UWX7GCNX.js';
|
|
6
|
+
import '../chunk-ED32WLAD.js';
|
|
7
|
+
import { useRequiredContext, useStore } from '../chunk-JWUKAZ3A.js';
|
|
8
|
+
import '../chunk-S67HGKJ2.js';
|
|
9
9
|
import '../chunk-J3VTDBC6.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-YHWA7FXX.js';
|
|
11
11
|
import { c } from 'react/compiler-runtime';
|
|
12
12
|
import { usePathname } from 'next/navigation';
|
|
13
13
|
import { use, useEffectEvent, useEffect } from 'react';
|
|
@@ -36,9 +36,7 @@ function useNavigationHold(hold, t0) {
|
|
|
36
36
|
history: t2
|
|
37
37
|
} = t1;
|
|
38
38
|
const history = t2 === void 0 ? true : t2;
|
|
39
|
-
const
|
|
40
|
-
hold: register
|
|
41
|
-
} = useOptionalNavigation();
|
|
39
|
+
const navigation = useOptionalNavigation();
|
|
42
40
|
let t3;
|
|
43
41
|
if ($[2] !== hold) {
|
|
44
42
|
t3 = (trip) => hold ? hold(trip) : void 0;
|
|
@@ -50,29 +48,29 @@ function useNavigationHold(hold, t0) {
|
|
|
50
48
|
const runHold = useEffectEvent(t3);
|
|
51
49
|
const enabled = Boolean(hold);
|
|
52
50
|
let t4;
|
|
53
|
-
if ($[4] !== enabled || $[5] !== history || $[6] !==
|
|
51
|
+
if ($[4] !== enabled || $[5] !== history || $[6] !== navigation || $[7] !== runHold) {
|
|
54
52
|
t4 = () => {
|
|
55
53
|
if (!enabled) {
|
|
56
54
|
return;
|
|
57
55
|
}
|
|
58
|
-
return
|
|
56
|
+
return navigation.hold((trip_0) => runHold(trip_0), {
|
|
59
57
|
history
|
|
60
58
|
});
|
|
61
59
|
};
|
|
62
60
|
$[4] = enabled;
|
|
63
61
|
$[5] = history;
|
|
64
|
-
$[6] =
|
|
62
|
+
$[6] = navigation;
|
|
65
63
|
$[7] = runHold;
|
|
66
64
|
$[8] = t4;
|
|
67
65
|
} else {
|
|
68
66
|
t4 = $[8];
|
|
69
67
|
}
|
|
70
68
|
let t5;
|
|
71
|
-
if ($[9] !== enabled || $[10] !== history || $[11] !==
|
|
72
|
-
t5 = [enabled, history,
|
|
69
|
+
if ($[9] !== enabled || $[10] !== history || $[11] !== navigation) {
|
|
70
|
+
t5 = [enabled, history, navigation];
|
|
73
71
|
$[9] = enabled;
|
|
74
72
|
$[10] = history;
|
|
75
|
-
$[11] =
|
|
73
|
+
$[11] = navigation;
|
|
76
74
|
$[12] = t5;
|
|
77
75
|
} else {
|
|
78
76
|
t5 = $[12];
|
|
@@ -81,9 +79,7 @@ function useNavigationHold(hold, t0) {
|
|
|
81
79
|
}
|
|
82
80
|
function useNavigationPayload(key, value) {
|
|
83
81
|
const $ = c(9);
|
|
84
|
-
const
|
|
85
|
-
provide
|
|
86
|
-
} = useOptionalNavigation();
|
|
82
|
+
const navigation = useOptionalNavigation();
|
|
87
83
|
let t0;
|
|
88
84
|
if ($[0] !== value) {
|
|
89
85
|
t0 = () => typeof value === "function" ? value() : value;
|
|
@@ -94,20 +90,20 @@ function useNavigationPayload(key, value) {
|
|
|
94
90
|
}
|
|
95
91
|
const readValue = useEffectEvent(t0);
|
|
96
92
|
let t1;
|
|
97
|
-
if ($[2] !== key || $[3] !==
|
|
98
|
-
t1 = () => provide(key, readValue);
|
|
93
|
+
if ($[2] !== key || $[3] !== navigation || $[4] !== readValue) {
|
|
94
|
+
t1 = () => navigation.provide(key, readValue);
|
|
99
95
|
$[2] = key;
|
|
100
|
-
$[3] =
|
|
96
|
+
$[3] = navigation;
|
|
101
97
|
$[4] = readValue;
|
|
102
98
|
$[5] = t1;
|
|
103
99
|
} else {
|
|
104
100
|
t1 = $[5];
|
|
105
101
|
}
|
|
106
102
|
let t2;
|
|
107
|
-
if ($[6] !== key || $[7] !==
|
|
108
|
-
t2 = [key,
|
|
103
|
+
if ($[6] !== key || $[7] !== navigation) {
|
|
104
|
+
t2 = [key, navigation];
|
|
109
105
|
$[6] = key;
|
|
110
|
-
$[7] =
|
|
106
|
+
$[7] = navigation;
|
|
111
107
|
$[8] = t2;
|
|
112
108
|
} else {
|
|
113
109
|
t2 = $[8];
|
|
@@ -116,9 +112,7 @@ function useNavigationPayload(key, value) {
|
|
|
116
112
|
}
|
|
117
113
|
function useNavigationIntent(listener) {
|
|
118
114
|
const $ = c(7);
|
|
119
|
-
const
|
|
120
|
-
onIntent
|
|
121
|
-
} = useOptionalNavigation();
|
|
115
|
+
const navigation = useOptionalNavigation();
|
|
122
116
|
let t0;
|
|
123
117
|
if ($[0] !== listener) {
|
|
124
118
|
t0 = (path, href) => listener(path, href);
|
|
@@ -129,18 +123,18 @@ function useNavigationIntent(listener) {
|
|
|
129
123
|
}
|
|
130
124
|
const handleIntent = useEffectEvent(t0);
|
|
131
125
|
let t1;
|
|
132
|
-
if ($[2] !== handleIntent || $[3] !==
|
|
133
|
-
t1 = () => onIntent((path_0, href_0) => handleIntent(path_0, href_0));
|
|
126
|
+
if ($[2] !== handleIntent || $[3] !== navigation) {
|
|
127
|
+
t1 = () => navigation.onIntent((path_0, href_0) => handleIntent(path_0, href_0));
|
|
134
128
|
$[2] = handleIntent;
|
|
135
|
-
$[3] =
|
|
129
|
+
$[3] = navigation;
|
|
136
130
|
$[4] = t1;
|
|
137
131
|
} else {
|
|
138
132
|
t1 = $[4];
|
|
139
133
|
}
|
|
140
134
|
let t2;
|
|
141
|
-
if ($[5] !==
|
|
142
|
-
t2 = [
|
|
143
|
-
$[5] =
|
|
135
|
+
if ($[5] !== navigation) {
|
|
136
|
+
t2 = [navigation];
|
|
137
|
+
$[5] = navigation;
|
|
144
138
|
$[6] = t2;
|
|
145
139
|
} else {
|
|
146
140
|
t2 = $[6];
|
|
@@ -169,13 +163,11 @@ function useArrival(pathname) {
|
|
|
169
163
|
const $ = c(3);
|
|
170
164
|
const routePathname = usePathname();
|
|
171
165
|
const target = pathname ?? routePathname;
|
|
172
|
-
const
|
|
173
|
-
arrival
|
|
174
|
-
} = useOptionalNavigation();
|
|
166
|
+
const navigation = useOptionalNavigation();
|
|
175
167
|
let t0;
|
|
176
|
-
if ($[0] !==
|
|
177
|
-
t0 = () => arrival(target);
|
|
178
|
-
$[0] =
|
|
168
|
+
if ($[0] !== navigation || $[1] !== target) {
|
|
169
|
+
t0 = () => navigation.arrival(target);
|
|
170
|
+
$[0] = navigation;
|
|
179
171
|
$[1] = target;
|
|
180
172
|
$[2] = t0;
|
|
181
173
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/modules/navigation/hooks.ts"],"names":["useNavigation","useRequiredContext","NavigationContext","actions","useOptionalNavigation","use","INERT_NAVIGATION_ACTIONS","useNavigationState","selector","isEqual","store","NOOP_NAVIGATION_STORE","useStore","useNavigationHold","hold","t0","$","_c","t1","undefined","history","t2","register","t3","trip","runHold","useEffectEvent","enabled","Boolean","t4","trip_0","t5","useEffect","useNavigationPayload","key","value","provide","readValue","useNavigationIntent","listener","onIntent","path","href","handleIntent","path_0","href_0","useDeparture","pathname","usePathname","active","_temp","isSamePathname","tripDestination","state","useArrival","routePathname","target","arrival"],"mappings":";;;;;;;;;;;;;AA4BO,SAAAA,aAAAA,GAAA;AAAA,EAAA,OACEC,kBAAAA,CACLC,iBAAAA,EACA,eAAA,EACA,oBACF,CAAA,CAACC,OAAAA;AAAQ;AAMJ,SAASC,qBAAAA,GAA2C;AACzD,EAAA,OAAOC,GAAAA,CAAIH,iBAAiB,CAAA,EAAGC,OAAAA,IAAWG,wBAAAA;AAC5C;AAWO,SAAAC,kBAAAA,CAAAC,UAAAC,OAAAA,EAAA;AAIL,EAAA,MAAAC,KAAAA,GAAcL,GAAAA,CAAIH,iBAAwB,CAAA,EAACQ,KAAAA,IAA7BC,qBAAAA;AAAuD,EAAA,OAC9DC,QAAAA,CAASF,KAAAA,EAAOF,QAAAA,EAA2CC,OAAO,CAAA;AAAC;AAOrE,SAAAI,iBAAAA,CAAAC,MAAAC,EAAAA,EAAA;AAAA,EAAA,MAAAC,CAAAA,GAAAC,EAAA,EAAA,CAAA;AAAA,EAAA,IAAAC,EAAAA;AAAA,EAAA,IAAAF,CAAAA,CAAA,CAAA,CAAA,KAAAD,EAAAA,EAAA;AAELG,IAAAA,EAAAA,GAAAH,EAAAA,KAAAI,MAAAA,GAAA,EAA6C,GAA7CJ,EAAAA;AAA8CC,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAD,EAAAA;AAAAC,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAE,EAAAA;EAAA,CAAA,MAAA;AAAAA,IAAAA,EAAAA,GAAAF,EAAA,CAAA,CAAA;AAAA,EAAA;AAA9C,EAAA,MAAA;IAAAI,OAAAA,EAAAC;GAAA,GAAAH,EAAAA;AAAE,EAAA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f,EAAA,MAAA;AAAAE,IAAAA;AAAA,GAAA,GAAoBrD,qBAAAA,EAAsB;AAAE,EAAA,IAAAW,EAAAA;AAAA,EAAA,IAAAC,EAAA,CAAA,CAAA,KAAAyC,WAAAzC,CAAAA,CAAA,CAAA,MAAAwC,MAAAA,EAAA;AAClBzC,IAAAA,EAAAA,GAAAA,MAAM0C,QAAQD,MAAM,CAAA;AAACxC,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAyC,OAAAA;AAAAzC,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAwC,MAAAA;AAAAxC,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAD,EAAAA;EAAA,CAAA,MAAA;AAAAA,IAAAA,EAAAA,GAAAC,EAAA,CAAA,CAAA;AAAA,EAAA;AAAA,EAAA,OAAxCT,mBAAmBQ,EAAqB,CAAA;AAAC","file":"index.js","sourcesContent":["\"use client\";\n\nimport { usePathname } from \"next/navigation\";\nimport { use, useEffect, useEffectEvent } from \"react\";\n\nimport { tripDestination } from \"@/core/navigation/state\";\nimport type {\n NavigationActions,\n NavigationHold,\n NavigationHoldOptions,\n NavigationIntentListener,\n NavigationPayloadKey,\n NavigationPayloadValue,\n NavigationState,\n NavigationTrip,\n} from \"@/core/navigation/types\";\nimport { isSamePathname } from \"@/core/navigation/utils\";\nimport { useRequiredContext, useStore } from \"@/react/hooks\";\n\nimport {\n INERT_NAVIGATION_ACTIONS,\n NavigationContext,\n NOOP_NAVIGATION_STORE,\n} from \"./context\";\n\n/**\n * Returns the navigation actions.\n */\nexport function useNavigation(): NavigationActions {\n return useRequiredContext(\n NavigationContext,\n \"useNavigation\",\n \"NavigationProvider\",\n ).actions;\n}\n\n/**\n * Like useNavigation, but returns inert actions outside a NavigationProvider.\n */\nexport function useOptionalNavigation(): NavigationActions {\n return use(NavigationContext)?.actions ?? INERT_NAVIGATION_ACTIONS;\n}\n\n/**\n * Subscribes to the navigation state. Accepts a selector; works outside a\n * provider with an idle state.\n */\nexport function useNavigationState(): NavigationState;\nexport function useNavigationState<T>(\n selector: (state: NavigationState) => T,\n isEqual?: (a: T, b: T) => boolean,\n): T;\nexport function useNavigationState<T = NavigationState>(\n selector?: (state: NavigationState) => T,\n isEqual?: (a: T, b: T) => boolean,\n): T {\n const store = use(NavigationContext)?.store ?? NOOP_NAVIGATION_STORE;\n return useStore(store, selector as (state: NavigationState) => T, isEqual);\n}\n\n/**\n * Registers a hold that can delay or block navigation while the component is\n * mounted.\n */\nexport function useNavigationHold(\n hold: NavigationHold | false | null | undefined,\n { history = true }: NavigationHoldOptions = {},\n): void {\n // eslint-disable-next-line @typescript-eslint/unbound-method -- the navigation API comes from createNavigator closures or the arrow-function default context, none of which use this\n const { hold: register } = useOptionalNavigation();\n const runHold = useEffectEvent((trip: NavigationTrip) =>\n hold ? hold(trip) : undefined,\n );\n const enabled = Boolean(hold);\n useEffect(() => {\n if (!enabled) return;\n return register((trip) => runHold(trip), { history });\n }, [enabled, history, register]);\n}\n\n/**\n * Attaches a value to every navigation trip under a key while the component is\n * mounted.\n */\nexport function useNavigationPayload<K extends NavigationPayloadKey>(\n key: K,\n value: NavigationPayloadValue<K>,\n): void {\n // eslint-disable-next-line @typescript-eslint/unbound-method -- the navigation API comes from createNavigator closures or the arrow-function default context, none of which use this\n const { provide } = useOptionalNavigation();\n const readValue = useEffectEvent(() =>\n typeof value === \"function\" ? (value as () => unknown)() : value,\n );\n useEffect(\n () => provide(key, readValue as NavigationPayloadValue<K>),\n [key, provide],\n );\n}\n\n/**\n * Calls a listener when the user shows intent to navigate to a route.\n */\nexport function useNavigationIntent(listener: NavigationIntentListener): void {\n // eslint-disable-next-line @typescript-eslint/unbound-method -- the navigation API comes from createNavigator closures or the arrow-function default context, none of which use this\n const { onIntent } = useOptionalNavigation();\n const handleIntent = useEffectEvent(\n (\n path: Parameters<NavigationIntentListener>[0],\n href: Parameters<NavigationIntentListener>[1],\n ) => listener(path, href),\n );\n useEffect(\n () => onIntent((path, href) => handleIntent(path, href)),\n [onIntent],\n );\n}\n\n/**\n * The active trip that is leaving the current page, or null.\n */\nexport function useDeparture(): NavigationTrip | null {\n const pathname = usePathname();\n const active = useNavigationState((state) => state.active);\n return active && !isSamePathname(tripDestination(active), pathname)\n ? active\n : null;\n}\n\n/**\n * The trip that just arrived at a page (default: the current one), or null.\n */\nexport function useArrival(pathname?: string): NavigationTrip | null {\n const routePathname = usePathname();\n const target = pathname ?? routePathname;\n // eslint-disable-next-line @typescript-eslint/unbound-method -- the navigation API comes from createNavigator closures or the arrow-function default context, none of which use this\n const { arrival } = useOptionalNavigation();\n return useNavigationState(() => arrival(target));\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/modules/navigation/hooks.ts"],"names":["useNavigation","useRequiredContext","NavigationContext","actions","useOptionalNavigation","use","INERT_NAVIGATION_ACTIONS","useNavigationState","selector","isEqual","store","NOOP_NAVIGATION_STORE","useStore","useNavigationHold","hold","t0","$","_c","t1","undefined","history","t2","navigation","t3","trip","runHold","useEffectEvent","enabled","Boolean","t4","trip_0","t5","useEffect","useNavigationPayload","key","value","readValue","provide","useNavigationIntent","listener","path","href","handleIntent","onIntent","path_0","href_0","useDeparture","pathname","usePathname","active","_temp","isSamePathname","tripDestination","state","useArrival","routePathname","target","arrival"],"mappings":";;;;;;;;;;;;;AA4BO,SAAAA,aAAAA,GAAA;AAAA,EAAA,OACEC,kBAAAA,CACLC,iBAAAA,EACA,eAAA,EACA,oBACF,CAAA,CAACC,OAAAA;AAAQ;AAMJ,SAASC,qBAAAA,GAA2C;AACzD,EAAA,OAAOC,GAAAA,CAAIH,iBAAiB,CAAA,EAAGC,OAAAA,IAAWG,wBAAAA;AAC5C;AAWO,SAAAC,kBAAAA,CAAAC,UAAAC,OAAAA,EAAA;AAIL,EAAA,MAAAC,KAAAA,GAAcL,GAAAA,CAAIH,iBAAwB,CAAA,EAACQ,KAAAA,IAA7BC,qBAAAA;AAAuD,EAAA,OAC9DC,QAAAA,CAASF,KAAAA,EAAOF,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,MAAAA;AAAAjC,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAA+B,QAAAA;AAAA/B,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAD,EAAAA;EAAA,CAAA,MAAA;AAAAA,IAAAA,EAAAA,GAAAC,EAAA,CAAA,CAAA;AAAA,EAAA;AAAA,EAAA,OAFDD,EAAAA;AAEC;AALH,SAAAmC,MAAAG,KAAAA,EAAA;AAAA,EAAA,OAEwCA,KAAAA,CAAKJ,MAAAA;AAAO;AASpD,SAAAK,WAAAP,QAAAA,EAAA;AAAA,EAAA,MAAA/B,CAAAA,GAAAC,EAAA,CAAA,CAAA;AACL,EAAA,MAAAsC,gBAAsBP,WAAAA,EAAY;AAClC,EAAA,MAAAQ,SAAeT,QAAAA,IAAAQ,aAAAA;AACf,EAAA,MAAAjC,aAAmBlB,qBAAAA,EAAsB;AAAE,EAAA,IAAAW,EAAAA;AAAA,EAAA,IAAAC,EAAA,CAAA,CAAA,KAAAM,cAAAN,CAAAA,CAAA,CAAA,MAAAwC,MAAAA,EAAA;AACjBzC,IAAAA,EAAAA,GAAAA,MAAMO,UAAAA,CAAUmC,OAAAA,CAASD,MAAM,CAAA;AAACxC,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAM,UAAAA;AAAAN,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAwC,MAAAA;AAAAxC,IAAAA,CAAAA,CAAA,CAAA,CAAA,GAAAD,EAAAA;EAAA,CAAA,MAAA;AAAAA,IAAAA,EAAAA,GAAAC,EAAA,CAAA,CAAA;AAAA,EAAA;AAAA,EAAA,OAAnDT,mBAAmBQ,EAAgC,CAAA;AAAC","file":"index.js","sourcesContent":["\"use client\";\n\nimport { usePathname } from \"next/navigation\";\nimport { use, useEffect, useEffectEvent } from \"react\";\n\nimport { tripDestination } from \"@/core/navigation/state\";\nimport type {\n NavigationActions,\n NavigationHold,\n NavigationHoldOptions,\n NavigationIntentListener,\n NavigationPayloadKey,\n NavigationPayloadValue,\n NavigationState,\n NavigationTrip,\n} from \"@/core/navigation/types\";\nimport { isSamePathname } from \"@/core/navigation/utils\";\nimport { useRequiredContext, useStore } from \"@/react/hooks\";\n\nimport {\n INERT_NAVIGATION_ACTIONS,\n NavigationContext,\n NOOP_NAVIGATION_STORE,\n} from \"./context\";\n\n/**\n * Returns the navigation actions.\n */\nexport function useNavigation(): NavigationActions {\n return useRequiredContext(\n NavigationContext,\n \"useNavigation\",\n \"NavigationProvider\",\n ).actions;\n}\n\n/**\n * Like useNavigation, but returns inert actions outside a NavigationProvider.\n */\nexport function useOptionalNavigation(): NavigationActions {\n return use(NavigationContext)?.actions ?? INERT_NAVIGATION_ACTIONS;\n}\n\n/**\n * Subscribes to the navigation state. Accepts a selector; works outside a\n * provider with an idle state.\n */\nexport function useNavigationState(): NavigationState;\nexport function useNavigationState<T>(\n selector: (state: NavigationState) => T,\n isEqual?: (a: T, b: T) => boolean,\n): T;\nexport function useNavigationState<T = NavigationState>(\n selector?: (state: NavigationState) => T,\n isEqual?: (a: T, b: T) => boolean,\n): T {\n const store = use(NavigationContext)?.store ?? NOOP_NAVIGATION_STORE;\n return useStore(store, selector as (state: NavigationState) => T, isEqual);\n}\n\n/**\n * Registers a hold that can delay or block navigation while the component is\n * mounted.\n */\nexport function useNavigationHold(\n hold: NavigationHold | false | null | undefined,\n { history = true }: NavigationHoldOptions = {},\n): void {\n const navigation = useOptionalNavigation();\n const runHold = useEffectEvent((trip: NavigationTrip) =>\n hold ? hold(trip) : undefined,\n );\n const enabled = Boolean(hold);\n useEffect(() => {\n if (!enabled) return;\n return navigation.hold((trip) => runHold(trip), { history });\n }, [enabled, history, navigation]);\n}\n\n/**\n * Attaches a value to every navigation trip under a key while the component is\n * mounted.\n */\nexport function useNavigationPayload<K extends NavigationPayloadKey>(\n key: K,\n value: NavigationPayloadValue<K>,\n): void {\n const navigation = useOptionalNavigation();\n const readValue = useEffectEvent(() =>\n typeof value === \"function\" ? (value as () => unknown)() : value,\n );\n useEffect(\n () => navigation.provide(key, readValue as NavigationPayloadValue<K>),\n [key, navigation],\n );\n}\n\n/**\n * Calls a listener when the user shows intent to navigate to a route.\n */\nexport function useNavigationIntent(listener: NavigationIntentListener): void {\n const navigation = useOptionalNavigation();\n const handleIntent = useEffectEvent(\n (\n path: Parameters<NavigationIntentListener>[0],\n href: Parameters<NavigationIntentListener>[1],\n ) => listener(path, href),\n );\n useEffect(\n () => navigation.onIntent((path, href) => handleIntent(path, href)),\n [navigation],\n );\n}\n\n/**\n * The active trip that is leaving the current page, or null.\n */\nexport function useDeparture(): NavigationTrip | null {\n const pathname = usePathname();\n const active = useNavigationState((state) => state.active);\n return active && !isSamePathname(tripDestination(active), pathname)\n ? active\n : null;\n}\n\n/**\n * The trip that just arrived at a page (default: the current one), or null.\n */\nexport function useArrival(pathname?: string): NavigationTrip | null {\n const routePathname = usePathname();\n const target = pathname ?? routePathname;\n const navigation = useOptionalNavigation();\n return useNavigationState(() => navigation.arrival(target));\n}\n"]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { DOCK_STACK_ELEMENT_ID, INERT_NOTIFICATION_ACTIONS, INITIAL_NOTIFICATION_STATE, NOOP_NOTIFICATION_STORE, NotificationContext, NotificationListener, NotificationProvider, SESSION_EXPIRED_MESSAGE, TOAST_DURATIONS, createNotificationEntry, getActiveNotification, getOutcomeMessage, isNotificationDataObject, normalizeDuration, normalizeFeedbackText, normalizeToastOptions, notificationModule, notificationTheme, useNotification, useNotificationActions, useNotificationContainerModel, useNotificationState, useNotificationVisible, useOptionalNotificationActions, useOptionalNotificationState, useToast, withDefaultDuration } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
2
|
+
export { DOCK_STACK_ELEMENT_ID, INERT_NOTIFICATION_ACTIONS, INITIAL_NOTIFICATION_STATE, NOOP_NOTIFICATION_STORE, NotificationContext, NotificationListener, NotificationProvider, SESSION_EXPIRED_MESSAGE, TOAST_DURATIONS, createNotificationEntry, getActiveNotification, getOutcomeMessage, isNotificationDataObject, normalizeDuration, normalizeFeedbackText, normalizeToastOptions, notificationModule, notificationTheme, useNotification, useNotificationActions, useNotificationContainerModel, useNotificationState, useNotificationVisible, useOptionalNotificationActions, useOptionalNotificationState, useToast, withDefaultDuration } from '../chunk-VMR7ZKIF.js';
|
|
3
|
+
import '../chunk-ST7QOM4O.js';
|
|
4
|
+
import '../chunk-ED32WLAD.js';
|
|
5
|
+
import '../chunk-JWUKAZ3A.js';
|
|
6
|
+
import '../chunk-ICFPSAJZ.js';
|
|
7
|
+
import '../chunk-3JLG24KI.js';
|
|
8
|
+
import '../chunk-S67HGKJ2.js';
|
|
8
9
|
import '../chunk-J3VTDBC6.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-YHWA7FXX.js';
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Modal } from './chunk-GTJMM32W.js';
|
|
2
|
+
import './chunk-KN4KOTC7.js';
|
|
3
|
+
import './chunk-ST7QOM4O.js';
|
|
4
|
+
import './chunk-ED32WLAD.js';
|
|
5
|
+
import './chunk-JWUKAZ3A.js';
|
|
6
|
+
import './chunk-S2ZOLTTS.js';
|
|
7
|
+
import './chunk-6LWCTP2Y.js';
|
|
8
|
+
import './chunk-ICFPSAJZ.js';
|
|
9
|
+
import './chunk-3JLG24KI.js';
|
|
10
|
+
import './chunk-S67HGKJ2.js';
|
|
11
|
+
import './chunk-J3VTDBC6.js';
|
|
12
|
+
import './chunk-YHWA7FXX.js';
|
|
13
|
+
//# sourceMappingURL=overlay-YMLS3SAQ.js.map
|
|
14
|
+
//# sourceMappingURL=overlay-YMLS3SAQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"overlay-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"overlay-YMLS3SAQ.js"}
|
package/dist/provider/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { CoreProvider } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
2
|
+
export { CoreProvider } from '../chunk-FLYL76ZT.js';
|
|
3
|
+
import '../chunk-BLWJZHRL.js';
|
|
4
|
+
import '../chunk-EBNZXYLT.js';
|
|
5
|
+
import '../chunk-ST7QOM4O.js';
|
|
6
|
+
import '../chunk-ED32WLAD.js';
|
|
7
|
+
import '../chunk-JWUKAZ3A.js';
|
|
8
|
+
import '../chunk-S2ZOLTTS.js';
|
|
9
|
+
import '../chunk-6LWCTP2Y.js';
|
|
10
|
+
import '../chunk-ICFPSAJZ.js';
|
|
11
|
+
import '../chunk-3JLG24KI.js';
|
|
12
|
+
import '../chunk-S67HGKJ2.js';
|
|
12
13
|
import '../chunk-J3VTDBC6.js';
|
|
13
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-YHWA7FXX.js';
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,5 +6,7 @@ export { useIsFullscreenStateActive } from "./use-fullscreen-state";
|
|
|
6
6
|
export { useControllableState } from "./use-controllable-state";
|
|
7
7
|
export { useHotkey, useEscapeKey } from "./use-hotkey";
|
|
8
8
|
export { SCROLL_LOCK, useScrollLock } from "./use-scroll-lock";
|
|
9
|
-
export type
|
|
9
|
+
export type { UseControllableStateOptions } from "./use-controllable-state";
|
|
10
|
+
export type { UseGlobalEventOptions } from "./use-global-event";
|
|
11
|
+
export type { UseHotkeyOptions } from "./use-hotkey";
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE/D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE/D,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A browser-only value that never changes: `serverValue` during server
|
|
3
|
+
* rendering and hydration, then `read()` on the client. `read` must return
|
|
4
|
+
* the same value on every call.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useClientValue<T>(read: () => T, serverValue: T): T;
|
|
7
|
+
/**
|
|
8
|
+
* False during server rendering and hydration, true on the client.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useIsClient(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* `document.body` on the client, null during server rendering and hydration.
|
|
13
|
+
*/
|
|
14
|
+
export declare function usePortalTarget(): HTMLElement | null;
|
|
15
|
+
//# sourceMappingURL=use-client-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-client-value.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-client-value.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,CAAC,CAElE;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAID;;GAEG;AACH,wBAAgB,eAAe,IAAI,WAAW,GAAG,IAAI,CAEpD"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Options for `useControllableState`: a default, an optional controlled value and a change callback.
|
|
3
|
+
*/
|
|
4
|
+
export interface UseControllableStateOptions<T> {
|
|
5
|
+
defaultValue: T;
|
|
6
|
+
onChange?: (nextValue: T) => void;
|
|
7
|
+
value?: T;
|
|
8
|
+
}
|
|
2
9
|
/**
|
|
3
10
|
* State that is controlled when `value` is given and uncontrolled otherwise.
|
|
4
11
|
* Returns the current value and a setter that also calls `onChange`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-controllable-state.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-controllable-state.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"use-controllable-state.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-controllable-state.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,2BAA2B,CAAC,CAAC;IAC5C,YAAY,EAAE,CAAC,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EACtC,YAAY,EACZ,QAAQ,EACR,KAAK,GACN,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC,CA8B5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-fullscreen-state.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-fullscreen-state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-fullscreen-state.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-fullscreen-state.ts"],"names":[],"mappings":"AAmDA;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,OAAO,CAEpD"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { type FrameworkEventMap } from "../../foundation/events";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Options for `useGlobalEvent`: debounce or throttle the handler.
|
|
4
|
+
*/
|
|
5
|
+
export interface UseGlobalEventOptions {
|
|
6
|
+
debounceMs?: number;
|
|
7
|
+
throttleMs?: number;
|
|
8
|
+
}
|
|
3
9
|
/**
|
|
4
10
|
* Subscribes to one or more framework events for the life of the component,
|
|
5
11
|
* optionally debounced or throttled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-global-event.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-global-event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAgB,MAAM,qBAAqB,CAAC;AAE3E,
|
|
1
|
+
{"version":3,"file":"use-global-event.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-global-event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAgB,MAAM,qBAAqB,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAYD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,iBAAiB,EAC9D,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EACjC,QAAQ,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,IAAI,EACjD,OAAO,CAAC,EAAE,qBAAqB,GAC9B,IAAI,CAAC;AAER,wBAAgB,cAAc,CAAC,CAAC,GAAG,OAAO,EACxC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAC3C,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,EAC9B,OAAO,CAAC,EAAE,qBAAqB,GAC9B,IAAI,CAAC"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Options for `useHotkey`: whether it is active, whether it fires in form fields, and event handling.
|
|
3
|
+
*/
|
|
4
|
+
export interface UseHotkeyOptions {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
enableOnFormTags?: boolean;
|
|
7
|
+
preventDefault?: boolean;
|
|
8
|
+
stopPropagation?: boolean;
|
|
9
|
+
}
|
|
2
10
|
/**
|
|
3
11
|
* Runs `callback` when a key combination such as "mod+k" is pressed.
|
|
4
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-hotkey.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-hotkey.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"use-hotkey.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-hotkey.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAyED;;GAEG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAC3C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,EACxC,OAAO,CAAC,EAAE,gBAAgB,GACzB,IAAI,CAyBN;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,EACxC,OAAO,UAAO,GACb,IAAI,CAMN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-scroll-lock.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-scroll-lock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-scroll-lock.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-scroll-lock.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,WAAW,qBAAqB,CAAC;AAkF9C;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAMnD"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { type ExternalStore } from "../../foundation/utils";
|
|
2
|
+
/**
|
|
3
|
+
* Subscribes a component to an external store, optionally to a selected slice with a custom equality check.
|
|
4
|
+
*/
|
|
2
5
|
export declare function useStore<TState, TSlice = TState>(store: ExternalStore<TState>, selector?: (state: TState) => TSlice, isEqual?: (a: TSlice, b: TSlice) => boolean): TSlice;
|
|
3
6
|
//# sourceMappingURL=use-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-store.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-store.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-store.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-store.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMxD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAC9C,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAE5B,QAAQ,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAElB,EACX,OAAO,GAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAmB,GACrD,MAAM,CAmDR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/theme/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAgB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/theme/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAgB,MAAM,OAAO,CAAC;AAGzE,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,0BAA0B,CAAC;AAKlC;;GAEG;AACH,MA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AgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE,uBAAuB,+BAKvE"}
|
|
@@ -3,4 +3,8 @@ import type { AvatarProps } from "../types";
|
|
|
3
3
|
* A round image with an initials fallback when the image is missing or fails.
|
|
4
4
|
*/
|
|
5
5
|
export declare function Avatar({ alt, children, className, classNames, fallback, name, ref, size, src, style, ...props }: AvatarProps): import("react").JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* Up to two uppercase initials for a name, or "?" when there is none.
|
|
8
|
+
*/
|
|
9
|
+
export declare function initialsOf(name?: string): string;
|
|
6
10
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAOpD;;GAEG;AACH,wBAAgB,MAAM,CAAC,EACrB,GAAG,EACH,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,GAAG,EACH,KAAK,EACL,GAAG,KAAK,EACT,EAAE,WAAW,+BA+Bb;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAKhD"}
|
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
import type { CarouselProps, ScrollState } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Default selector for the element inside a carousel slide that the clip follows.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FRAME_SELECTOR = "[data-carousel-frame]";
|
|
7
|
+
/**
|
|
8
|
+
* Whether a horizontal track can scroll further left and right.
|
|
9
|
+
*/
|
|
10
|
+
export declare function readScroll(track: HTMLElement): ScrollState;
|
|
11
|
+
/**
|
|
12
|
+
* The scrollLeft a carousel should glide to for one step in a direction, snapping to slide edges.
|
|
13
|
+
*/
|
|
14
|
+
export declare function glideTarget(track: HTMLElement, direction: -1 | 1): number;
|
|
15
|
+
/**
|
|
16
|
+
* A CSS clip-path that rounds the corners of a carousel frame inside its track, or null when not needed.
|
|
17
|
+
*/
|
|
18
|
+
export declare function rackClip(track: HTMLElement, selector?: string): string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Lets a mouse drag scroll the referenced horizontal track, suppressing the click that ends a drag.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDragScroll(ref: RefObject<HTMLElement | null>): void;
|
|
2
23
|
/**
|
|
3
24
|
* A horizontally scrolling row of slides with arrows, drag scrolling and an end callback.
|
|
4
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/carousel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/carousel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,aAAa,EAEb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAoB1B;;GAEG;AACH,eAAO,MAAM,cAAc,0BAA0B,CAAC;AAItD;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAM1D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CA8BzE;AAqCD;;GAEG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,WAAW,EAClB,QAAQ,SAAiB,GACxB,MAAM,GAAG,IAAI,CAaf;AAsBD;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,IAAI,CA+CtE;AAkDD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACvB,cAAc,EACd,QAAQ,EACR,SAAS,EACT,UAAe,EACf,aAA8B,EAC9B,KAAK,EACL,aAAa,EACb,KAAK,EACL,SAAS,EACT,KAAY,EACZ,WAA0B,EAC1B,UAAU,GACX,EAAE,aAAa,+BAmHf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/image.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/image.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAyBnD;;GAEG;AACH,wBAAgB,KAAK,CAAC,EACpB,GAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAkB,EAClB,QAAQ,EACR,aAAa,EACb,IAAI,EACJ,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAgB,EAChB,GAAG,EACH,gBAAgB,EAChB,GAAG,IAAI,EACR,EAAE,UAAU,sCA0FZ"}
|
|
@@ -8,14 +8,6 @@ interface SlidingHighlightProps {
|
|
|
8
8
|
* A highlight that slides between items that share its layout id.
|
|
9
9
|
*/
|
|
10
10
|
export declare function SlidingHighlight({ className, layoutId, }: SlidingHighlightProps): import("react").JSX.Element;
|
|
11
|
-
interface SlidingPillProps {
|
|
12
|
-
box: PillBox;
|
|
13
|
-
className: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A pill that slides to a measured box.
|
|
17
|
-
*/
|
|
18
|
-
export declare function SlidingPill({ box, className }: SlidingPillProps): import("react").JSX.Element;
|
|
19
11
|
interface HighlightGroupProps {
|
|
20
12
|
children: ReactNode;
|
|
21
13
|
className?: string;
|
|
@@ -41,5 +33,23 @@ export declare function useHighlight(key: string, className?: string): {
|
|
|
41
33
|
export declare function useHighlightReset(): {
|
|
42
34
|
onPointerEnter: () => void | undefined;
|
|
43
35
|
};
|
|
36
|
+
interface SlidingPillProps {
|
|
37
|
+
box: PillBox;
|
|
38
|
+
className: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A pill that slides to a measured box.
|
|
42
|
+
*/
|
|
43
|
+
export declare function SlidingPill({ box, className }: SlidingPillProps): import("react").JSX.Element;
|
|
44
|
+
/**
|
|
45
|
+
* Measures the element matching `selector` inside a list so a pill can slide to it.
|
|
46
|
+
* Remeasures when `key` changes.
|
|
47
|
+
*/
|
|
48
|
+
export declare function useSlidingPill<T extends HTMLElement>(selector: string, key: unknown, { wrapping }?: {
|
|
49
|
+
wrapping?: boolean;
|
|
50
|
+
}): {
|
|
51
|
+
box: PillBox | null;
|
|
52
|
+
ref: import("react").RefObject<T | null>;
|
|
53
|
+
};
|
|
44
54
|
export {};
|
|
45
55
|
//# sourceMappingURL=indicator.d.ts.map
|