foldkit-primitives 0.15.4 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/device/fullscreen.d.ts +28 -0
- package/dist/device/fullscreen.d.ts.map +1 -0
- package/dist/device/fullscreen.js +69 -0
- package/dist/device/fullscreen.js.map +1 -0
- package/dist/device/geolocation.d.ts +56 -0
- package/dist/device/geolocation.d.ts.map +1 -0
- package/dist/device/geolocation.js +87 -0
- package/dist/device/geolocation.js.map +1 -0
- package/dist/device/index.d.ts +5 -0
- package/dist/device/index.js +6 -0
- package/dist/device/media-devices.d.ts +88 -0
- package/dist/device/media-devices.d.ts.map +1 -0
- package/dist/device/media-devices.js +117 -0
- package/dist/device/media-devices.js.map +1 -0
- package/dist/device/media-stream.d.ts +93 -0
- package/dist/device/media-stream.d.ts.map +1 -0
- package/dist/device/media-stream.js +106 -0
- package/dist/device/media-stream.js.map +1 -0
- package/dist/device/permissions.d.ts +106 -0
- package/dist/device/permissions.d.ts.map +1 -0
- package/dist/device/permissions.js +143 -0
- package/dist/device/permissions.js.map +1 -0
- package/dist/dom/autofocus.d.ts +15 -0
- package/dist/dom/autofocus.d.ts.map +1 -0
- package/dist/dom/autofocus.js +22 -0
- package/dist/dom/autofocus.js.map +1 -0
- package/dist/dom/clipboard.d.ts +30 -0
- package/dist/dom/clipboard.d.ts.map +1 -0
- package/dist/dom/clipboard.js +50 -0
- package/dist/dom/clipboard.js.map +1 -0
- package/dist/dom/editable-text.d.ts +72 -0
- package/dist/dom/editable-text.d.ts.map +1 -0
- package/dist/dom/editable-text.js +232 -0
- package/dist/dom/editable-text.js.map +1 -0
- package/dist/dom/fluid-hover.d.ts +93 -0
- package/dist/dom/fluid-hover.d.ts.map +1 -0
- package/dist/dom/fluid-hover.js +294 -0
- package/dist/dom/fluid-hover.js.map +1 -0
- package/dist/dom/focus-scope.d.ts +21 -0
- package/dist/dom/focus-scope.d.ts.map +1 -0
- package/dist/dom/focus-scope.js +93 -0
- package/dist/dom/focus-scope.js.map +1 -0
- package/dist/dom/follow-tab-stop.d.ts +11 -0
- package/dist/dom/follow-tab-stop.d.ts.map +1 -0
- package/dist/dom/follow-tab-stop.js +54 -0
- package/dist/dom/follow-tab-stop.js.map +1 -0
- package/dist/dom/image-decode.d.ts +27 -0
- package/dist/dom/image-decode.d.ts.map +1 -0
- package/dist/dom/image-decode.js +50 -0
- package/dist/dom/image-decode.js.map +1 -0
- package/dist/dom/index.d.ts +24 -0
- package/dist/dom/index.js +25 -0
- package/dist/dom/input-mask.d.ts +35 -0
- package/dist/dom/input-mask.d.ts.map +1 -0
- package/dist/dom/input-mask.js +90 -0
- package/dist/dom/input-mask.js.map +1 -0
- package/dist/dom/keep-in-view.d.ts +16 -0
- package/dist/dom/keep-in-view.d.ts.map +1 -0
- package/dist/dom/keep-in-view.js +38 -0
- package/dist/dom/keep-in-view.js.map +1 -0
- package/dist/dom/keyboard-inset.d.ts +29 -0
- package/dist/dom/keyboard-inset.d.ts.map +1 -0
- package/dist/dom/keyboard-inset.js +45 -0
- package/dist/dom/keyboard-inset.js.map +1 -0
- package/dist/dom/layers.d.ts +6 -0
- package/dist/dom/layers.d.ts.map +1 -0
- package/dist/dom/layers.js +35 -0
- package/dist/dom/layers.js.map +1 -0
- package/dist/dom/measure.d.ts +42 -0
- package/dist/dom/measure.d.ts.map +1 -0
- package/dist/dom/measure.js +123 -0
- package/dist/dom/measure.js.map +1 -0
- package/dist/dom/move.d.ts +45 -0
- package/dist/dom/move.d.ts.map +1 -0
- package/dist/dom/move.js +96 -0
- package/dist/dom/move.js.map +1 -0
- package/dist/dom/pointed-links.d.ts +13 -0
- package/dist/dom/pointed-links.d.ts.map +1 -0
- package/dist/dom/pointed-links.js +59 -0
- package/dist/dom/pointed-links.js.map +1 -0
- package/dist/dom/pointer-drag.d.ts +132 -0
- package/dist/dom/pointer-drag.d.ts.map +1 -0
- package/dist/dom/pointer-drag.js +307 -0
- package/dist/dom/pointer-drag.js.map +1 -0
- package/dist/dom/pointer-position.d.ts +133 -0
- package/dist/dom/pointer-position.d.ts.map +1 -0
- package/dist/dom/pointer-position.js +173 -0
- package/dist/dom/pointer-position.js.map +1 -0
- package/dist/dom/script-loader.d.ts +12 -0
- package/dist/dom/script-loader.d.ts.map +1 -0
- package/dist/dom/script-loader.js +54 -0
- package/dist/dom/script-loader.js.map +1 -0
- package/dist/dom/scroll-bars.d.ts +52 -0
- package/dist/dom/scroll-bars.d.ts.map +1 -0
- package/dist/dom/scroll-bars.js +259 -0
- package/dist/dom/scroll-bars.js.map +1 -0
- package/dist/dom/scroll-settle.d.ts +33 -0
- package/dist/dom/scroll-settle.d.ts.map +1 -0
- package/dist/dom/scroll-settle.js +84 -0
- package/dist/dom/scroll-settle.js.map +1 -0
- package/dist/dom/scroll.d.ts +21 -0
- package/dist/dom/scroll.d.ts.map +1 -0
- package/dist/dom/scroll.js +141 -0
- package/dist/dom/scroll.js.map +1 -0
- package/dist/dom/share.d.ts +19 -0
- package/dist/dom/share.d.ts.map +1 -0
- package/dist/dom/share.js +41 -0
- package/dist/dom/share.js.map +1 -0
- package/dist/dom/swipe.d.ts +121 -0
- package/dist/dom/swipe.d.ts.map +1 -0
- package/dist/dom/swipe.js +291 -0
- package/dist/dom/swipe.js.map +1 -0
- package/dist/dom/targets.d.ts +45 -0
- package/dist/dom/targets.d.ts.map +1 -0
- package/dist/dom/targets.js +70 -0
- package/dist/dom/targets.js.map +1 -0
- package/dist/dom/track-box.d.ts +61 -0
- package/dist/dom/track-box.d.ts.map +1 -0
- package/dist/dom/track-box.js +131 -0
- package/dist/dom/track-box.js.map +1 -0
- package/dist/events/active-element.d.ts +15 -0
- package/dist/events/active-element.d.ts.map +1 -0
- package/dist/events/active-element.js +33 -0
- package/dist/events/active-element.js.map +1 -0
- package/dist/events/hotkeys.d.ts +22 -0
- package/dist/events/hotkeys.d.ts.map +1 -0
- package/dist/events/hotkeys.js +56 -0
- package/dist/events/hotkeys.js.map +1 -0
- package/dist/events/idle.d.ts +29 -0
- package/dist/events/idle.d.ts.map +1 -0
- package/dist/events/idle.js +51 -0
- package/dist/events/idle.js.map +1 -0
- package/dist/events/index.d.ts +9 -0
- package/dist/events/index.js +10 -0
- package/dist/{input-modality-l7InESYh.d.mts → events/input-modality.d.ts} +9 -10
- package/dist/events/input-modality.d.ts.map +1 -0
- package/dist/{input-modality-XwQOFLip.mjs → events/input-modality.js} +2 -2
- package/dist/events/input-modality.js.map +1 -0
- package/dist/events/keyboard.d.ts +30 -0
- package/dist/events/keyboard.d.ts.map +1 -0
- package/dist/events/keyboard.js +55 -0
- package/dist/events/keyboard.js.map +1 -0
- package/dist/events/pointer.d.ts +15 -0
- package/dist/events/pointer.d.ts.map +1 -0
- package/dist/events/pointer.js +28 -0
- package/dist/events/pointer.js.map +1 -0
- package/dist/events/scroll.d.ts +16 -0
- package/dist/events/scroll.d.ts.map +1 -0
- package/dist/events/scroll.js +29 -0
- package/dist/events/scroll.js.map +1 -0
- package/dist/events/visibility.d.ts +25 -0
- package/dist/events/visibility.d.ts.map +1 -0
- package/dist/events/visibility.js +28 -0
- package/dist/events/visibility.js.map +1 -0
- package/dist/events/window-size.d.ts +30 -0
- package/dist/events/window-size.d.ts.map +1 -0
- package/dist/events/window-size.js +63 -0
- package/dist/events/window-size.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +10 -0
- package/dist/interaction/bundle-behavior.d.ts +37 -0
- package/dist/interaction/bundle-behavior.d.ts.map +1 -0
- package/dist/interaction/bundle-behavior.js +34 -0
- package/dist/interaction/bundle-behavior.js.map +1 -0
- package/dist/interaction/dismiss-layer.d.ts +100 -0
- package/dist/interaction/dismiss-layer.d.ts.map +1 -0
- package/dist/interaction/dismiss-layer.js +140 -0
- package/dist/interaction/dismiss-layer.js.map +1 -0
- package/dist/interaction/editable-text.d.ts +13 -0
- package/dist/interaction/editable-text.d.ts.map +1 -0
- package/dist/interaction/editable-text.js +17 -0
- package/dist/interaction/editable-text.js.map +1 -0
- package/dist/interaction/focus-scope.d.ts +21 -0
- package/dist/interaction/focus-scope.d.ts.map +1 -0
- package/dist/interaction/focus-scope.js +25 -0
- package/dist/interaction/focus-scope.js.map +1 -0
- package/dist/interaction/focus-visible.d.ts +9 -0
- package/dist/interaction/focus-visible.d.ts.map +1 -0
- package/dist/interaction/focus-visible.js +10 -0
- package/dist/interaction/focus-visible.js.map +1 -0
- package/dist/interaction/grid-navigation.d.ts +73 -0
- package/dist/interaction/grid-navigation.d.ts.map +1 -0
- package/dist/interaction/grid-navigation.js +137 -0
- package/dist/interaction/grid-navigation.js.map +1 -0
- package/dist/interaction/index.d.ts +21 -0
- package/dist/interaction/index.js +21 -0
- package/dist/interaction/layers.d.ts +12 -0
- package/dist/interaction/layers.d.ts.map +1 -0
- package/dist/interaction/layers.js +14 -0
- package/dist/interaction/layers.js.map +1 -0
- package/dist/interaction/list-navigation.d.ts +105 -0
- package/dist/interaction/list-navigation.d.ts.map +1 -0
- package/dist/interaction/list-navigation.js +168 -0
- package/dist/interaction/list-navigation.js.map +1 -0
- package/dist/interaction/live-announce.d.ts +70 -0
- package/dist/interaction/live-announce.d.ts.map +1 -0
- package/dist/interaction/live-announce.js +115 -0
- package/dist/interaction/live-announce.js.map +1 -0
- package/dist/interaction/long-press.d.ts +102 -0
- package/dist/interaction/long-press.d.ts.map +1 -0
- package/dist/interaction/long-press.js +115 -0
- package/dist/interaction/long-press.js.map +1 -0
- package/dist/interaction/move.d.ts +10 -0
- package/dist/interaction/move.d.ts.map +1 -0
- package/dist/interaction/move.js +17 -0
- package/dist/interaction/move.js.map +1 -0
- package/dist/interaction/overlay.d.ts +45 -0
- package/dist/interaction/overlay.d.ts.map +1 -0
- package/dist/interaction/overlay.js +57 -0
- package/dist/interaction/overlay.js.map +1 -0
- package/dist/interaction/placing.d.ts +86 -0
- package/dist/interaction/placing.d.ts.map +1 -0
- package/dist/interaction/placing.js +239 -0
- package/dist/interaction/placing.js.map +1 -0
- package/dist/interaction/pointer-drag.d.ts +23 -0
- package/dist/interaction/pointer-drag.d.ts.map +1 -0
- package/dist/interaction/pointer-drag.js +21 -0
- package/dist/interaction/pointer-drag.js.map +1 -0
- package/dist/interaction/press.d.ts +152 -0
- package/dist/interaction/press.d.ts.map +1 -0
- package/dist/interaction/press.js +229 -0
- package/dist/interaction/press.js.map +1 -0
- package/dist/interaction/roving-tabindex.d.ts +85 -0
- package/dist/interaction/roving-tabindex.d.ts.map +1 -0
- package/dist/interaction/roving-tabindex.js +142 -0
- package/dist/interaction/roving-tabindex.js.map +1 -0
- package/dist/interaction/selection.d.ts +72 -0
- package/dist/interaction/selection.d.ts.map +1 -0
- package/dist/interaction/selection.js +129 -0
- package/dist/interaction/selection.js.map +1 -0
- package/dist/interaction/targets.d.ts +15 -0
- package/dist/interaction/targets.d.ts.map +1 -0
- package/dist/interaction/targets.js +20 -0
- package/dist/interaction/targets.js.map +1 -0
- package/dist/interaction/tree-navigation.d.ts +111 -0
- package/dist/interaction/tree-navigation.d.ts.map +1 -0
- package/dist/interaction/tree-navigation.js +207 -0
- package/dist/interaction/tree-navigation.js.map +1 -0
- package/dist/interaction/typeahead.d.ts +73 -0
- package/dist/interaction/typeahead.d.ts.map +1 -0
- package/dist/interaction/typeahead.js +113 -0
- package/dist/interaction/typeahead.js.map +1 -0
- package/dist/internal.d.ts +16 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/{internal-C4gHodLc.mjs → internal.js} +7 -5
- package/dist/internal.js.map +1 -0
- package/dist/media/breakpoints.d.ts +37 -0
- package/dist/media/breakpoints.d.ts.map +1 -0
- package/dist/media/breakpoints.js +64 -0
- package/dist/media/breakpoints.js.map +1 -0
- package/dist/media/index.d.ts +3 -0
- package/dist/media/index.js +4 -0
- package/dist/media/mediaquery.d.ts +40 -0
- package/dist/media/mediaquery.d.ts.map +1 -0
- package/dist/media/mediaquery.js +42 -0
- package/dist/media/mediaquery.js.map +1 -0
- package/dist/media/platform.d.ts +30 -0
- package/dist/media/platform.d.ts.map +1 -0
- package/dist/media/platform.js +50 -0
- package/dist/media/platform.js.map +1 -0
- package/dist/motion/index.d.ts +5 -0
- package/dist/motion/index.js +5 -0
- package/dist/motion/motion.d.ts +16 -0
- package/dist/motion/motion.d.ts.map +1 -0
- package/dist/motion/motion.js +25 -0
- package/dist/motion/motion.js.map +1 -0
- package/dist/motion/presence.d.ts +37 -0
- package/dist/motion/presence.d.ts.map +1 -0
- package/dist/motion/presence.js +65 -0
- package/dist/motion/presence.js.map +1 -0
- package/dist/motion/spring.d.ts +50 -0
- package/dist/motion/spring.d.ts.map +1 -0
- package/dist/motion/spring.js +92 -0
- package/dist/motion/spring.js.map +1 -0
- package/dist/motion/tween.d.ts +44 -0
- package/dist/motion/tween.d.ts.map +1 -0
- package/dist/motion/tween.js +65 -0
- package/dist/motion/tween.js.map +1 -0
- package/dist/net/broadcast.d.ts +39 -0
- package/dist/net/broadcast.d.ts.map +1 -0
- package/dist/net/broadcast.js +73 -0
- package/dist/net/broadcast.js.map +1 -0
- package/dist/net/index.d.ts +5 -0
- package/dist/net/index.js +6 -0
- package/dist/net/online.d.ts +24 -0
- package/dist/net/online.d.ts.map +1 -0
- package/dist/net/online.js +26 -0
- package/dist/net/online.js.map +1 -0
- package/dist/net/sharedHost.d.ts +64 -0
- package/dist/net/sharedHost.d.ts.map +1 -0
- package/dist/net/sharedHost.js +124 -0
- package/dist/net/sharedHost.js.map +1 -0
- package/dist/net/sse.d.ts +115 -0
- package/dist/net/sse.d.ts.map +1 -0
- package/dist/net/sse.js +138 -0
- package/dist/net/sse.js.map +1 -0
- package/dist/net/websocket.d.ts +172 -0
- package/dist/net/websocket.d.ts.map +1 -0
- package/dist/net/websocket.js +199 -0
- package/dist/net/websocket.js.map +1 -0
- package/dist/observers/bounds.d.ts +24 -0
- package/dist/observers/bounds.d.ts.map +1 -0
- package/dist/observers/bounds.js +51 -0
- package/dist/observers/bounds.js.map +1 -0
- package/dist/observers/index.d.ts +4 -0
- package/dist/observers/index.js +5 -0
- package/dist/observers/intersection.d.ts +18 -0
- package/dist/observers/intersection.d.ts.map +1 -0
- package/dist/observers/intersection.js +33 -0
- package/dist/observers/intersection.js.map +1 -0
- package/dist/observers/mutation.d.ts +25 -0
- package/dist/observers/mutation.d.ts.map +1 -0
- package/dist/observers/mutation.js +53 -0
- package/dist/observers/mutation.js.map +1 -0
- package/dist/observers/resize.d.ts +18 -0
- package/dist/observers/resize.d.ts.map +1 -0
- package/dist/observers/resize.js +33 -0
- package/dist/observers/resize.js.map +1 -0
- package/dist/state/history.d.ts +115 -0
- package/dist/state/history.d.ts.map +1 -0
- package/dist/state/history.js +167 -0
- package/dist/state/history.js.map +1 -0
- package/dist/state/index.d.ts +6 -0
- package/dist/state/index.js +7 -0
- package/dist/state/locale.d.ts +27 -0
- package/dist/state/locale.d.ts.map +1 -0
- package/dist/state/locale.js +25 -0
- package/dist/state/locale.js.map +1 -0
- package/dist/state/pagination.d.ts +53 -0
- package/dist/state/pagination.d.ts.map +1 -0
- package/dist/state/pagination.js +72 -0
- package/dist/state/pagination.js.map +1 -0
- package/dist/state/range.d.ts +9 -0
- package/dist/state/range.d.ts.map +1 -0
- package/dist/state/range.js +18 -0
- package/dist/state/range.js.map +1 -0
- package/dist/state/selection.d.ts +47 -0
- package/dist/state/selection.d.ts.map +1 -0
- package/dist/state/selection.js +39 -0
- package/dist/state/selection.js.map +1 -0
- package/dist/state/virtual.d.ts +201 -0
- package/dist/state/virtual.d.ts.map +1 -0
- package/dist/state/{index.mjs → virtual.js} +10 -306
- package/dist/state/virtual.js.map +1 -0
- package/dist/time/debounce.d.ts +43 -0
- package/dist/time/debounce.d.ts.map +1 -0
- package/dist/time/debounce.js +65 -0
- package/dist/time/debounce.js.map +1 -0
- package/dist/time/index.d.ts +6 -0
- package/dist/time/index.js +7 -0
- package/dist/time/interval.d.ts +37 -0
- package/dist/time/interval.d.ts.map +1 -0
- package/dist/time/interval.js +52 -0
- package/dist/time/interval.js.map +1 -0
- package/dist/time/relative.d.ts +8 -0
- package/dist/time/relative.d.ts.map +1 -0
- package/dist/time/relative.js +27 -0
- package/dist/time/relative.js.map +1 -0
- package/dist/time/throttle.d.ts +38 -0
- package/dist/time/throttle.d.ts.map +1 -0
- package/dist/time/throttle.js +39 -0
- package/dist/time/throttle.js.map +1 -0
- package/dist/time/ticks.d.ts +21 -0
- package/dist/time/ticks.d.ts.map +1 -0
- package/dist/time/ticks.js +30 -0
- package/dist/time/ticks.js.map +1 -0
- package/dist/time/timer.d.ts +32 -0
- package/dist/time/timer.d.ts.map +1 -0
- package/dist/time/timer.js +50 -0
- package/dist/time/timer.js.map +1 -0
- package/package.json +31 -31
- package/dist/device/index.d.mts +0 -335
- package/dist/device/index.d.mts.map +0 -1
- package/dist/device/index.mjs +0 -493
- package/dist/device/index.mjs.map +0 -1
- package/dist/dom/index.d.mts +0 -714
- package/dist/dom/index.d.mts.map +0 -1
- package/dist/dom/index.mjs +0 -1840
- package/dist/dom/index.mjs.map +0 -1
- package/dist/editable-text-Bg7vil7h.d.mts +0 -307
- package/dist/editable-text-Bg7vil7h.d.mts.map +0 -1
- package/dist/events/index.d.mts +0 -168
- package/dist/events/index.d.mts.map +0 -1
- package/dist/events/index.mjs +0 -307
- package/dist/events/index.mjs.map +0 -1
- package/dist/follow-tab-stop-DM5EI4Ci.mjs +0 -856
- package/dist/follow-tab-stop-DM5EI4Ci.mjs.map +0 -1
- package/dist/index-Bomdwb7e.d.mts +0 -142
- package/dist/index-Bomdwb7e.d.mts.map +0 -1
- package/dist/index.d.mts +0 -12
- package/dist/index.mjs +0 -12
- package/dist/input-modality-XwQOFLip.mjs.map +0 -1
- package/dist/input-modality-l7InESYh.d.mts.map +0 -1
- package/dist/interaction/index.d.mts +0 -1193
- package/dist/interaction/index.d.mts.map +0 -1
- package/dist/interaction/index.mjs +0 -1992
- package/dist/interaction/index.mjs.map +0 -1
- package/dist/internal-C4gHodLc.mjs.map +0 -1
- package/dist/media/index.d.mts +0 -103
- package/dist/media/index.d.mts.map +0 -1
- package/dist/media/index.mjs +0 -146
- package/dist/media/index.mjs.map +0 -1
- package/dist/motion/index.d.mts +0 -2
- package/dist/motion/index.mjs +0 -1
- package/dist/motion-BmlJCjn6.mjs +0 -236
- package/dist/motion-BmlJCjn6.mjs.map +0 -1
- package/dist/net/index.d.mts +0 -338
- package/dist/net/index.d.mts.map +0 -1
- package/dist/net/index.mjs +0 -530
- package/dist/net/index.mjs.map +0 -1
- package/dist/observers/index.d.mts +0 -76
- package/dist/observers/index.d.mts.map +0 -1
- package/dist/observers/index.mjs +0 -155
- package/dist/observers/index.mjs.map +0 -1
- package/dist/rolldown-runtime-D8jQpDG7.mjs +0 -12
- package/dist/state/index.d.mts +0 -432
- package/dist/state/index.d.mts.map +0 -1
- package/dist/state/index.mjs.map +0 -1
- package/dist/time/index.d.mts +0 -167
- package/dist/time/index.d.mts.map +0 -1
- package/dist/time/index.mjs +0 -236
- package/dist/time/index.mjs.map +0 -1
package/dist/device/index.d.mts
DELETED
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
import { Option, Queue, Schema, Stream } from "effect";
|
|
2
|
-
import { Bundle } from "foldkit-bundle";
|
|
3
|
-
import * as ManagedResource from "foldkit/managedResource";
|
|
4
|
-
import { Command } from "foldkit/command";
|
|
5
|
-
export declare const FullscreenMessage: import("foldkit/message").MessageUnion<{
|
|
6
|
-
readonly Changed: {
|
|
7
|
-
active: Schema.Boolean;
|
|
8
|
-
};
|
|
9
|
-
readonly Entered: {};
|
|
10
|
-
readonly Exited: {};
|
|
11
|
-
readonly Failed: {
|
|
12
|
-
message: Schema.String;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
export type FullscreenMessage = typeof FullscreenMessage.Type;
|
|
16
|
-
/**
|
|
17
|
-
* Requests fullscreen for an element. The capability is feature-checked on
|
|
18
|
-
* the element itself (SVG and HTML elements both qualify), falling back to
|
|
19
|
-
* the legacy `webkit` prefix; a platform with neither yields `Failed`
|
|
20
|
-
* instead of throwing.
|
|
21
|
-
*/
|
|
22
|
-
export declare const enterFullscreen: (element: Element) => Command<FullscreenMessage, never, never>;
|
|
23
|
-
/** Leaves fullscreen, with the same legacy fallback. Without a document API it yields `Failed`, not a throw. */
|
|
24
|
-
export declare const exitFullscreen: () => Command<FullscreenMessage, never, never>;
|
|
25
|
-
/**
|
|
26
|
-
* `Changed` whenever fullscreen state flips, starting with the current
|
|
27
|
-
* answer. Without a document the stream is empty instead of throwing.
|
|
28
|
-
*/
|
|
29
|
-
export declare const fullscreenChanges: () => Stream.Stream<FullscreenMessage>;
|
|
30
|
-
export declare const Coordinates: Schema.Struct<{
|
|
31
|
-
readonly latitude: Schema.Number;
|
|
32
|
-
readonly longitude: Schema.Number;
|
|
33
|
-
readonly accuracy: Schema.Number;
|
|
34
|
-
}>;
|
|
35
|
-
export type Coordinates = typeof Coordinates.Type;
|
|
36
|
-
export declare const GeolocationModel: Schema.Struct<{
|
|
37
|
-
readonly status: Schema.Literals<readonly ["unknown", "ready", "denied"]>;
|
|
38
|
-
readonly coords: Schema.NullOr<Schema.Struct<{
|
|
39
|
-
readonly latitude: Schema.Number;
|
|
40
|
-
readonly longitude: Schema.Number;
|
|
41
|
-
readonly accuracy: Schema.Number;
|
|
42
|
-
}>>;
|
|
43
|
-
readonly lastError: Schema.NullOr<Schema.String>;
|
|
44
|
-
}>;
|
|
45
|
-
export type GeolocationModel = typeof GeolocationModel.Type;
|
|
46
|
-
export declare const GeolocationMessage: import("foldkit/message").MessageUnion<{
|
|
47
|
-
readonly Located: {
|
|
48
|
-
latitude: Schema.Number;
|
|
49
|
-
longitude: Schema.Number;
|
|
50
|
-
accuracy: Schema.Number;
|
|
51
|
-
};
|
|
52
|
-
readonly Denied: {};
|
|
53
|
-
readonly Failed: {
|
|
54
|
-
message: Schema.String;
|
|
55
|
-
};
|
|
56
|
-
}>;
|
|
57
|
-
export type GeolocationMessage = typeof GeolocationMessage.Type;
|
|
58
|
-
/**
|
|
59
|
-
* Geolocation as a bundle: the device position in the Model, watched while
|
|
60
|
-
* placed. Permission denial is its own status (actionable UI); transient
|
|
61
|
-
* failures keep the last fix and note the error. No geolocation API yields
|
|
62
|
-
* an empty stream instead of throwing.
|
|
63
|
-
*/
|
|
64
|
-
export declare const Geolocation: Bundle.Bundle<"Geolocation", void, {
|
|
65
|
-
readonly status: "denied" | "ready" | "unknown";
|
|
66
|
-
readonly coords: {
|
|
67
|
-
readonly latitude: number;
|
|
68
|
-
readonly longitude: number;
|
|
69
|
-
readonly accuracy: number;
|
|
70
|
-
} | null;
|
|
71
|
-
readonly lastError: string | null;
|
|
72
|
-
}, {
|
|
73
|
-
readonly _tag: "Denied";
|
|
74
|
-
} | {
|
|
75
|
-
readonly _tag: "Failed";
|
|
76
|
-
readonly message: string;
|
|
77
|
-
} | {
|
|
78
|
-
readonly _tag: "Located";
|
|
79
|
-
readonly latitude: number;
|
|
80
|
-
readonly longitude: number;
|
|
81
|
-
readonly accuracy: number;
|
|
82
|
-
}, never, never, never, void, {}, {}>;
|
|
83
|
-
export declare const MediaDevice: Schema.Struct<{
|
|
84
|
-
readonly deviceId: Schema.String;
|
|
85
|
-
readonly groupId: Schema.String;
|
|
86
|
-
readonly kind: Schema.Literals<readonly ["audioinput", "audiooutput", "videoinput"]>;
|
|
87
|
-
readonly label: Schema.String;
|
|
88
|
-
}>;
|
|
89
|
-
export type MediaDevice = typeof MediaDevice.Type;
|
|
90
|
-
export declare const MediaDevicesModel: Schema.Struct<{
|
|
91
|
-
readonly status: Schema.Literals<readonly ["unknown", "ready", "denied"]>;
|
|
92
|
-
readonly devices: Schema.$Array<Schema.Struct<{
|
|
93
|
-
readonly deviceId: Schema.String;
|
|
94
|
-
readonly groupId: Schema.String;
|
|
95
|
-
readonly kind: Schema.Literals<readonly ["audioinput", "audiooutput", "videoinput"]>;
|
|
96
|
-
readonly label: Schema.String;
|
|
97
|
-
}>>;
|
|
98
|
-
readonly lastError: Schema.NullOr<Schema.String>;
|
|
99
|
-
}>;
|
|
100
|
-
export type MediaDevicesModel = typeof MediaDevicesModel.Type;
|
|
101
|
-
export declare const MediaDevicesMessage: import("foldkit/message").MessageUnion<{
|
|
102
|
-
readonly Scan: {};
|
|
103
|
-
readonly DevicesChanged: {};
|
|
104
|
-
readonly Refreshed: {
|
|
105
|
-
devices: Schema.$Array<Schema.Struct<{
|
|
106
|
-
readonly deviceId: Schema.String;
|
|
107
|
-
readonly groupId: Schema.String;
|
|
108
|
-
readonly kind: Schema.Literals<readonly ["audioinput", "audiooutput", "videoinput"]>;
|
|
109
|
-
readonly label: Schema.String;
|
|
110
|
-
}>>;
|
|
111
|
-
};
|
|
112
|
-
readonly Denied: {};
|
|
113
|
-
readonly Failed: {
|
|
114
|
-
message: Schema.String;
|
|
115
|
-
};
|
|
116
|
-
}>;
|
|
117
|
-
export type MediaDevicesMessage = typeof MediaDevicesMessage.Type;
|
|
118
|
-
/** The slice of MediaDevices the bundle needs; satisfied by the platform object. */
|
|
119
|
-
export interface MediaDevicesHandle {
|
|
120
|
-
enumerateDevices(): Promise<ReadonlyArray<{
|
|
121
|
-
readonly deviceId: string;
|
|
122
|
-
readonly groupId: string;
|
|
123
|
-
readonly kind: string;
|
|
124
|
-
readonly label: string;
|
|
125
|
-
}>>;
|
|
126
|
-
addEventListener(type: string, listener: () => void): void;
|
|
127
|
-
removeEventListener(type: string, listener: () => void): void;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Media devices as a bundle factory: the enumerated device list in the
|
|
131
|
-
* Model, scanned on placement and re-scanned on every `devicechange`.
|
|
132
|
-
* Denial lands as `denied` while keeping the last list (actionable UI over
|
|
133
|
-
* stale data, like Geolocation's last fix); any other failure keeps the
|
|
134
|
-
* list and notes the error. No media-devices API yields an empty stream
|
|
135
|
-
* and a `Failed` scan instead of throwing.
|
|
136
|
-
*/
|
|
137
|
-
export declare const mediaDevices: <const Name extends string>(config: {
|
|
138
|
-
readonly name: Name;
|
|
139
|
-
/** Read lazily so tests can substitute a double, like the SSE bundle. */
|
|
140
|
-
readonly create?: ((navigator: Navigator) => MediaDevicesHandle | null) | undefined;
|
|
141
|
-
}) => Bundle.Bundle<Name, void, {
|
|
142
|
-
readonly status: "denied" | "ready" | "unknown";
|
|
143
|
-
readonly devices: readonly {
|
|
144
|
-
readonly deviceId: string;
|
|
145
|
-
readonly groupId: string;
|
|
146
|
-
readonly kind: "audioinput" | "audiooutput" | "videoinput";
|
|
147
|
-
readonly label: string;
|
|
148
|
-
}[];
|
|
149
|
-
readonly lastError: string | null;
|
|
150
|
-
}, {
|
|
151
|
-
readonly _tag: "Denied";
|
|
152
|
-
} | {
|
|
153
|
-
readonly _tag: "DevicesChanged";
|
|
154
|
-
} | {
|
|
155
|
-
readonly _tag: "Failed";
|
|
156
|
-
readonly message: string;
|
|
157
|
-
} | {
|
|
158
|
-
readonly _tag: "Refreshed";
|
|
159
|
-
readonly devices: readonly {
|
|
160
|
-
readonly deviceId: string;
|
|
161
|
-
readonly groupId: string;
|
|
162
|
-
readonly kind: "audioinput" | "audiooutput" | "videoinput";
|
|
163
|
-
readonly label: string;
|
|
164
|
-
}[];
|
|
165
|
-
} | {
|
|
166
|
-
readonly _tag: "Scan";
|
|
167
|
-
}, never, never, never, void, {}, {}>;
|
|
168
|
-
export declare const MediaStreamModel: Schema.Struct<{
|
|
169
|
-
readonly status: Schema.Literals<readonly ["idle", "requesting", "live", "denied"]>;
|
|
170
|
-
readonly lastError: Schema.NullOr<Schema.String>;
|
|
171
|
-
}>;
|
|
172
|
-
export type MediaStreamModel = typeof MediaStreamModel.Type;
|
|
173
|
-
export declare const MediaStreamMessage: import("foldkit/message").MessageUnion<{
|
|
174
|
-
readonly Started: {};
|
|
175
|
-
readonly Stopped: {};
|
|
176
|
-
readonly Live: {};
|
|
177
|
-
readonly Ended: {};
|
|
178
|
-
readonly Denied: {};
|
|
179
|
-
readonly Failed: {
|
|
180
|
-
message: Schema.String;
|
|
181
|
-
};
|
|
182
|
-
}>;
|
|
183
|
-
export type MediaStreamMessage = typeof MediaStreamMessage.Type;
|
|
184
|
-
/** A single media track: stopped on release. */
|
|
185
|
-
export interface MediaTrackHandle {
|
|
186
|
-
stop(): void;
|
|
187
|
-
}
|
|
188
|
-
/** The live stream: its tracks stop on release. */
|
|
189
|
-
export interface MediaStreamHandle {
|
|
190
|
-
getTracks(): ReadonlyArray<MediaTrackHandle>;
|
|
191
|
-
}
|
|
192
|
-
/** Which tracks `mediaStream` asks `getUserMedia` for. */
|
|
193
|
-
export interface MediaStreamConstraints {
|
|
194
|
-
readonly audio: boolean;
|
|
195
|
-
readonly video: boolean;
|
|
196
|
-
}
|
|
197
|
-
/** The live stream, for commands that attach it to an element. One assembly holds one. */
|
|
198
|
-
export declare const LiveStream: ManagedResource.ManagedResource<MediaStreamHandle, ManagedResource.ManagedResourceService<"media-stream">>;
|
|
199
|
-
/** The stream service a placed camera requires. */
|
|
200
|
-
export type LiveStreamService = ManagedResource.ServiceOf<typeof LiveStream>;
|
|
201
|
-
/**
|
|
202
|
-
* A camera/mic stream as a bundle factory: one live MediaStream held in a
|
|
203
|
-
* Managed Resource while the Model asks for it. `Started` requests,
|
|
204
|
-
* `Stopped` releases; denial parks at `denied` (actionable UI), any other
|
|
205
|
-
* acquire failure parks at `idle` with the error noted — both clear
|
|
206
|
-
* requirements, so a failing device never spins an acquire loop. Release
|
|
207
|
-
* stops every track. No media-devices API fails the acquire instead of
|
|
208
|
-
* throwing.
|
|
209
|
-
*/
|
|
210
|
-
export declare const mediaStream: <const Name extends string>(config: {
|
|
211
|
-
readonly name: Name;
|
|
212
|
-
/** Read lazily so tests can substitute a double, like the SSE bundle. */
|
|
213
|
-
readonly request?: ((constraints: MediaStreamConstraints) => Promise<MediaStreamHandle>) | undefined;
|
|
214
|
-
}) => Bundle.Bundle<Name, {
|
|
215
|
-
readonly audio: boolean;
|
|
216
|
-
readonly video: boolean;
|
|
217
|
-
}, {
|
|
218
|
-
readonly status: "denied" | "idle" | "live" | "requesting";
|
|
219
|
-
readonly lastError: string | null;
|
|
220
|
-
}, {
|
|
221
|
-
readonly _tag: "Started";
|
|
222
|
-
} | {
|
|
223
|
-
readonly _tag: "Stopped";
|
|
224
|
-
} | {
|
|
225
|
-
readonly _tag: "Denied";
|
|
226
|
-
} | {
|
|
227
|
-
readonly _tag: "Ended";
|
|
228
|
-
} | {
|
|
229
|
-
readonly _tag: "Failed";
|
|
230
|
-
readonly message: string;
|
|
231
|
-
} | {
|
|
232
|
-
readonly _tag: "Live";
|
|
233
|
-
}, never, never, never, void, {
|
|
234
|
-
stream: ManagedResource.Entry<{
|
|
235
|
-
readonly status: "denied" | "idle" | "live" | "requesting";
|
|
236
|
-
readonly lastError: string | null;
|
|
237
|
-
}, {
|
|
238
|
-
readonly _tag: "Started";
|
|
239
|
-
} | {
|
|
240
|
-
readonly _tag: "Stopped";
|
|
241
|
-
} | {
|
|
242
|
-
readonly _tag: "Denied";
|
|
243
|
-
} | {
|
|
244
|
-
readonly _tag: "Ended";
|
|
245
|
-
} | {
|
|
246
|
-
readonly _tag: "Failed";
|
|
247
|
-
readonly message: string;
|
|
248
|
-
} | {
|
|
249
|
-
readonly _tag: "Live";
|
|
250
|
-
}, Option.Option<{
|
|
251
|
-
readonly audio: boolean;
|
|
252
|
-
readonly video: boolean;
|
|
253
|
-
}>, MediaStreamHandle, ManagedResource.ManagedResourceService<"media-stream">, () => {
|
|
254
|
-
readonly _tag: "Live";
|
|
255
|
-
}>;
|
|
256
|
-
}, {}>;
|
|
257
|
-
export declare const PermissionState: Schema.Literals<readonly ["granted", "denied", "prompt"]>;
|
|
258
|
-
export type PermissionState = typeof PermissionState.Type;
|
|
259
|
-
export declare const PermissionsModel: Schema.Struct<{
|
|
260
|
-
readonly states: Schema.$Record<Schema.String, Schema.Literals<readonly ["granted", "denied", "prompt"]>>;
|
|
261
|
-
readonly lastError: Schema.NullOr<Schema.String>;
|
|
262
|
-
}>;
|
|
263
|
-
export type PermissionsModel = typeof PermissionsModel.Type;
|
|
264
|
-
export declare const PermissionsMessage: import("foldkit/message").MessageUnion<{
|
|
265
|
-
readonly Snapshot: {
|
|
266
|
-
states: Schema.$Record<Schema.String, Schema.Literals<readonly ["granted", "denied", "prompt"]>>;
|
|
267
|
-
};
|
|
268
|
-
readonly Changed: {
|
|
269
|
-
name: Schema.String;
|
|
270
|
-
state: Schema.Literals<readonly ["granted", "denied", "prompt"]>;
|
|
271
|
-
};
|
|
272
|
-
readonly Cleared: {};
|
|
273
|
-
readonly Failed: {
|
|
274
|
-
message: Schema.String;
|
|
275
|
-
};
|
|
276
|
-
}>;
|
|
277
|
-
export type PermissionsMessage = typeof PermissionsMessage.Type;
|
|
278
|
-
/** A queried permission status; `onchange` fires while watched. */
|
|
279
|
-
export interface PermissionStatusHandle {
|
|
280
|
-
readonly state: string;
|
|
281
|
-
onchange: (() => void) | null;
|
|
282
|
-
}
|
|
283
|
-
/** The slice of the Permissions API the bundle needs. */
|
|
284
|
-
export interface PermissionsHandle {
|
|
285
|
-
query(descriptor: {
|
|
286
|
-
readonly name: string;
|
|
287
|
-
}): Promise<PermissionStatusHandle>;
|
|
288
|
-
}
|
|
289
|
-
interface Acquired {
|
|
290
|
-
readonly statuses: ReadonlyMap<string, PermissionStatusHandle>;
|
|
291
|
-
readonly snapshot: Readonly<Record<string, PermissionState>>;
|
|
292
|
-
readonly events: Queue.Queue<PermissionsMessage>;
|
|
293
|
-
}
|
|
294
|
-
/** The watched statuses, for the changes subscription. One assembly holds one. */
|
|
295
|
-
export declare const Watch: ManagedResource.ManagedResource<Acquired, ManagedResource.ManagedResourceService<"permissions">>;
|
|
296
|
-
/** The watch service a placed Permissions bundle requires. */
|
|
297
|
-
export type WatchService = ManagedResource.ServiceOf<typeof Watch>;
|
|
298
|
-
/**
|
|
299
|
-
* Permission states as a bundle factory: queried on placement, kept current
|
|
300
|
-
* by each status object's `onchange`. A resource holds the status objects
|
|
301
|
-
* (they cannot live in the Model); its queue feeds the subscription, and
|
|
302
|
-
* release detaches every handler. An unknown permission name fails the
|
|
303
|
-
* acquire; an unknown state string fails it too — both become `Failed`,
|
|
304
|
-
* never Model facts.
|
|
305
|
-
*/
|
|
306
|
-
export declare const permissions: <const Name extends string>(config: {
|
|
307
|
-
readonly name: Name;
|
|
308
|
-
/** Read lazily so tests can substitute a double, like the SSE bundle. */
|
|
309
|
-
readonly create?: ((navigator: Navigator) => PermissionsHandle | null) | undefined;
|
|
310
|
-
}) => Bundle.Bundle<Name, {
|
|
311
|
-
readonly names: ReadonlyArray<string>;
|
|
312
|
-
}, {
|
|
313
|
-
readonly states: {
|
|
314
|
-
readonly [x: string]: "denied" | "granted" | "prompt";
|
|
315
|
-
};
|
|
316
|
-
readonly lastError: string | null;
|
|
317
|
-
}, {
|
|
318
|
-
readonly _tag: "Cleared";
|
|
319
|
-
} | {
|
|
320
|
-
readonly _tag: "Changed";
|
|
321
|
-
readonly name: string;
|
|
322
|
-
readonly state: "denied" | "granted" | "prompt";
|
|
323
|
-
} | {
|
|
324
|
-
readonly _tag: "Failed";
|
|
325
|
-
readonly message: string;
|
|
326
|
-
} | {
|
|
327
|
-
readonly _tag: "Snapshot";
|
|
328
|
-
readonly states: {
|
|
329
|
-
readonly [x: string]: "denied" | "granted" | "prompt";
|
|
330
|
-
};
|
|
331
|
-
}, never, never, ManagedResource.ManagedResourceService<"permissions">, void, Readonly<{
|
|
332
|
-
watch: ManagedResource.Entry<PermissionsModel, PermissionsMessage, Option.Option<ReadonlyArray<string>>, Acquired, WatchService, (acquired: Acquired) => PermissionsMessage>;
|
|
333
|
-
}>, {}>;
|
|
334
|
-
export {};
|
|
335
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/device/fullscreen.ts","../../src/device/geolocation.ts","../../src/device/media-devices.ts","../../src/device/media-stream.ts","../../src/device/permissions.ts"],"mappings":";;;;qBAWa,6CAAiB;;IACjB,QAAM,OAAA;;;;;IAGP,SAAO,OAAA;;;YAEP,2BAA2B,kBAAkB;;;;;;;qBAW5C,kBAAe,SAAa,YAAU,QAAQ;;qBA0B9C,sBAAqB,QAAQ;;;;;qBAgC7B,yBAAwB,OAAO,OAAO;qBC/EtC,aAAW,OAAA;;;;;YAKZ,qBAAqB,YAAY;qBAEhC,kBAAgB,OAAA;;;;;;;;;YAKjB,0BAA0B,iBAAiB;qBAE1C,8CAAkB;;IAE3B,UAAQ,OAAA;IACR,WAAS,OAAA;IACT,UAAQ,OAAA;;;;IAGA,SAAO,OAAA;;;YAEP,4BAA4B,mBAAmB;;;;;;;qBAyD9C,aAAW,OAAA;;;;;;;;;;;;;;;;;;;qBChFX,aAAW,OAAA;;;;;;YAMZ,qBAAqB,YAAY;qBAEhC,mBAAiB,OAAA;;;;;;;;;;YAKlB,2BAA2B,kBAAkB;qBAE5C,+CAAmB;;;;IAGjB,SAAO,OAAA,OAAA,OAAA;;;;;;;;;IAEV,SAAO,OAAA;;;YAEP,6BAA6B,oBAAoB;;iBAa5C;EACf,oBAAoB,QAClB;aACW;aACA;aACA;aACA;;EAGb,iBAAiB,cAAc;EAC/B,oBAAoB,cAAc;;;;;;;;;;qBAkBvB,qBAAsB,qBAAmB;WAC3C,MAAM;;WAEN,WAAW,WAAW,cAAc;MAC9C,OAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCnEY,kBAAgB,OAAA;;;;YAIjB,0BAA0B,iBAAiB;qBAE1C,8CAAkB;;;;;;;IAMnB,SAAO,OAAA;;;YAEP,4BAA4B,mBAAmB;;iBAG1C;EACf;;;iBAIe;EACf,aAAa,cAAc;;;iBAIZ;WACN;WACA;;;qBAIE,YAAU,gBAAA,gBAAA,mBAAA,gBAAA;;YAGX,oBAAoB,gBAAgB,iBAAiB;;;;;;;;;;qBA6BpD,oBAAqB,qBAAmB;WAC1C,MAAM;;WAEN,YACH,aAAa,2BAA2B,QAAQ;MAEvD,OAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCtEY,iBAAe,OAAA;YAChB,yBAAyB,gBAAgB;qBAExC,kBAAgB,OAAA;;;;YAIjB,0BAA0B,iBAAiB;qBAE1C,8CAAkB;;IACjB,QAAM,OAAA,QAAA,OAAA,QAAA,OAAA;;;IACP,MAAI,OAAA;IAAiB,OAAK,OAAA;;;;IAE3B,SAAO,OAAA;;;YAEP,4BAA4B,mBAAmB;;iBAG1C;WACN;EACT;;;iBAIe;EACf,MAAM;aAAuB;MAAiB,QAAQ;;UAG9C;WACC,UAAU,oBAAoB;WAC9B,UAAU,SAAS,eAAe;WAClC,QAAQ,MAAM,MAAM;;;qBAIlB,OAAK,gBAAA,gBAAA,UAAA,gBAAA;;YAGN,eAAe,gBAAgB,iBAAiB;;;;;;;;;qBA+B/C,oBAAqB,qBAAmB;WAC1C,MAAM;;WAEN,WAAW,WAAW,cAAc;MAC9C,OAAA,OAAA;WAYqB,OAAA;;;;;;;;;;;;;;;;;;;;;EA5Cb,OAAA,gBAAgB,MACrB,kBACA,oBACA,OAAO,OAAO,wBACd,UACA,eACC,UAAU,aAAa"}
|