@bquery/bquery 1.6.0 → 1.8.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 +192 -18
- package/dist/a11y/announce.d.ts +43 -0
- package/dist/a11y/announce.d.ts.map +1 -0
- package/dist/a11y/audit.d.ts +42 -0
- package/dist/a11y/audit.d.ts.map +1 -0
- package/dist/a11y/index.d.ts +53 -0
- package/dist/a11y/index.d.ts.map +1 -0
- package/dist/a11y/media-preferences.d.ts +77 -0
- package/dist/a11y/media-preferences.d.ts.map +1 -0
- package/dist/a11y/roving-tab-index.d.ts +38 -0
- package/dist/a11y/roving-tab-index.d.ts.map +1 -0
- package/dist/a11y/skip-link.d.ts +37 -0
- package/dist/a11y/skip-link.d.ts.map +1 -0
- package/dist/a11y/trap-focus.d.ts +49 -0
- package/dist/a11y/trap-focus.d.ts.map +1 -0
- package/dist/a11y/types.d.ts +152 -0
- package/dist/a11y/types.d.ts.map +1 -0
- package/dist/a11y-DVBCy09c.js +421 -0
- package/dist/a11y-DVBCy09c.js.map +1 -0
- package/dist/a11y.es.mjs +14 -0
- package/dist/component/component.d.ts.map +1 -1
- package/dist/component/html.d.ts.map +1 -1
- package/dist/component/index.d.ts +2 -1
- package/dist/component/index.d.ts.map +1 -1
- package/dist/component/library.d.ts.map +1 -1
- package/dist/component/scope.d.ts +138 -0
- package/dist/component/scope.d.ts.map +1 -0
- package/dist/component/types.d.ts +53 -1
- package/dist/component/types.d.ts.map +1 -1
- package/dist/component-L3-JfOFz.js +684 -0
- package/dist/component-L3-JfOFz.js.map +1 -0
- package/dist/component.es.mjs +9 -6
- package/dist/{config-DRmZZno3.js → config-DhT9auRm.js} +4 -4
- package/dist/{config-DRmZZno3.js.map → config-DhT9auRm.js.map} +1 -1
- package/dist/constraints-D5RHQLmP.js +100 -0
- package/dist/constraints-D5RHQLmP.js.map +1 -0
- package/dist/core/collection.d.ts +134 -0
- package/dist/core/collection.d.ts.map +1 -1
- package/dist/core/element.d.ts +120 -0
- package/dist/core/element.d.ts.map +1 -1
- package/dist/core/env.d.ts +18 -0
- package/dist/core/env.d.ts.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/shared.d.ts +14 -0
- package/dist/core/shared.d.ts.map +1 -1
- package/dist/core/utils/index.d.ts +52 -41
- package/dist/core/utils/index.d.ts.map +1 -1
- package/dist/core-DdtZHzsS.js +168 -0
- package/dist/core-DdtZHzsS.js.map +1 -0
- package/dist/{core-CCEabVHl.js → core-EMYSLzaT.js} +293 -194
- package/dist/core-EMYSLzaT.js.map +1 -0
- package/dist/core.es.mjs +48 -46
- package/dist/custom-directives-Dr4C5lVV.js +9 -0
- package/dist/custom-directives-Dr4C5lVV.js.map +1 -0
- package/dist/devtools/devtools.d.ts +212 -0
- package/dist/devtools/devtools.d.ts.map +1 -0
- package/dist/devtools/index.d.ts +20 -0
- package/dist/devtools/index.d.ts.map +1 -0
- package/dist/devtools/types.d.ts +69 -0
- package/dist/devtools/types.d.ts.map +1 -0
- package/dist/devtools-BhB2iDPT.js +122 -0
- package/dist/devtools-BhB2iDPT.js.map +1 -0
- package/dist/devtools.es.mjs +19 -0
- package/dist/dnd/draggable.d.ts +51 -0
- package/dist/dnd/draggable.d.ts.map +1 -0
- package/dist/dnd/droppable.d.ts +38 -0
- package/dist/dnd/droppable.d.ts.map +1 -0
- package/dist/dnd/index.d.ts +47 -0
- package/dist/dnd/index.d.ts.map +1 -0
- package/dist/dnd/sortable.d.ts +43 -0
- package/dist/dnd/sortable.d.ts.map +1 -0
- package/dist/dnd/types.d.ts +250 -0
- package/dist/dnd/types.d.ts.map +1 -0
- package/dist/dnd-NwZBYh4l.js +244 -0
- package/dist/dnd-NwZBYh4l.js.map +1 -0
- package/dist/dnd.es.mjs +6 -0
- package/dist/env-CTdvLaH2.js +19 -0
- package/dist/env-CTdvLaH2.js.map +1 -0
- package/dist/forms/create-form.d.ts +49 -0
- package/dist/forms/create-form.d.ts.map +1 -0
- package/dist/forms/index.d.ts +40 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/types.d.ts +185 -0
- package/dist/forms/types.d.ts.map +1 -0
- package/dist/forms/use-field.d.ts +34 -0
- package/dist/forms/use-field.d.ts.map +1 -0
- package/dist/forms/validators.d.ts +204 -0
- package/dist/forms/validators.d.ts.map +1 -0
- package/dist/forms-UcRHsYxC.js +227 -0
- package/dist/forms-UcRHsYxC.js.map +1 -0
- package/dist/forms.es.mjs +16 -0
- package/dist/full.d.ts +30 -11
- package/dist/full.d.ts.map +1 -1
- package/dist/full.es.mjs +209 -93
- package/dist/full.iife.js +47 -31
- package/dist/full.iife.js.map +1 -1
- package/dist/full.umd.js +47 -31
- package/dist/full.umd.js.map +1 -1
- package/dist/function-Cybd57JV.js +33 -0
- package/dist/function-Cybd57JV.js.map +1 -0
- package/dist/i18n/formatting.d.ts +40 -0
- package/dist/i18n/formatting.d.ts.map +1 -0
- package/dist/i18n/i18n.d.ts +48 -0
- package/dist/i18n/i18n.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +57 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/translate.d.ts +83 -0
- package/dist/i18n/translate.d.ts.map +1 -0
- package/dist/i18n/types.d.ts +156 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/i18n-kuF6Ekj6.js +89 -0
- package/dist/i18n-kuF6Ekj6.js.map +1 -0
- package/dist/i18n.es.mjs +6 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.mjs +257 -143
- package/dist/media/battery.d.ts +35 -0
- package/dist/media/battery.d.ts.map +1 -0
- package/dist/media/breakpoints.d.ts +51 -0
- package/dist/media/breakpoints.d.ts.map +1 -0
- package/dist/media/clipboard.d.ts +30 -0
- package/dist/media/clipboard.d.ts.map +1 -0
- package/dist/media/device-sensors.d.ts +54 -0
- package/dist/media/device-sensors.d.ts.map +1 -0
- package/dist/media/geolocation.d.ts +38 -0
- package/dist/media/geolocation.d.ts.map +1 -0
- package/dist/media/index.d.ts +42 -0
- package/dist/media/index.d.ts.map +1 -0
- package/dist/media/media-query.d.ts +36 -0
- package/dist/media/media-query.d.ts.map +1 -0
- package/dist/media/network.d.ts +35 -0
- package/dist/media/network.d.ts.map +1 -0
- package/dist/media/types.d.ts +173 -0
- package/dist/media/types.d.ts.map +1 -0
- package/dist/media/viewport.d.ts +32 -0
- package/dist/media/viewport.d.ts.map +1 -0
- package/dist/media-i-fB5WxI.js +340 -0
- package/dist/media-i-fB5WxI.js.map +1 -0
- package/dist/media.es.mjs +12 -0
- package/dist/motion/index.d.ts +7 -3
- package/dist/motion/index.d.ts.map +1 -1
- package/dist/motion/morph.d.ts +27 -0
- package/dist/motion/morph.d.ts.map +1 -0
- package/dist/motion/parallax.d.ts +30 -0
- package/dist/motion/parallax.d.ts.map +1 -0
- package/dist/motion/reduced-motion.d.ts +36 -3
- package/dist/motion/reduced-motion.d.ts.map +1 -1
- package/dist/motion/types.d.ts +58 -0
- package/dist/motion/types.d.ts.map +1 -1
- package/dist/motion/typewriter.d.ts +31 -0
- package/dist/motion/typewriter.d.ts.map +1 -0
- package/dist/motion-BJsAuULb.js +530 -0
- package/dist/motion-BJsAuULb.js.map +1 -0
- package/dist/motion.es.mjs +27 -23
- package/dist/{view-C70lA3vf.js → mount-B4Y8bk8Z.js} +166 -160
- package/dist/mount-B4Y8bk8Z.js.map +1 -0
- package/dist/{object-qGpWr6-J.js → object-BCk-1c8T.js} +5 -4
- package/dist/{object-qGpWr6-J.js.map → object-BCk-1c8T.js.map} +1 -1
- package/dist/{platform-Dr9b6fsq.js → platform-Dw2gE3zI.js} +21 -22
- package/dist/{platform-Dr9b6fsq.js.map → platform-Dw2gE3zI.js.map} +1 -1
- package/dist/platform.es.mjs +2 -2
- package/dist/plugin/index.d.ts +22 -0
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/registry.d.ts +108 -0
- package/dist/plugin/registry.d.ts.map +1 -0
- package/dist/plugin/types.d.ts +110 -0
- package/dist/plugin/types.d.ts.map +1 -0
- package/dist/plugin-C2WuC8SF.js +66 -0
- package/dist/plugin-C2WuC8SF.js.map +1 -0
- package/dist/plugin.es.mjs +9 -0
- package/dist/reactive/async-data.d.ts +28 -3
- package/dist/reactive/async-data.d.ts.map +1 -1
- package/dist/reactive/computed.d.ts +10 -0
- package/dist/reactive/computed.d.ts.map +1 -1
- package/dist/reactive/effect.d.ts +3 -0
- package/dist/reactive/effect.d.ts.map +1 -1
- package/dist/reactive/http.d.ts +194 -0
- package/dist/reactive/http.d.ts.map +1 -0
- package/dist/reactive/index.d.ts +2 -2
- package/dist/reactive/index.d.ts.map +1 -1
- package/dist/reactive/pagination.d.ts +126 -0
- package/dist/reactive/pagination.d.ts.map +1 -0
- package/dist/reactive/polling.d.ts +55 -0
- package/dist/reactive/polling.d.ts.map +1 -0
- package/dist/reactive/readonly.d.ts +20 -1
- package/dist/reactive/readonly.d.ts.map +1 -1
- package/dist/reactive/rest.d.ts +293 -0
- package/dist/reactive/rest.d.ts.map +1 -0
- package/dist/reactive/scope.d.ts +140 -0
- package/dist/reactive/scope.d.ts.map +1 -0
- package/dist/reactive/signal.d.ts +16 -2
- package/dist/reactive/signal.d.ts.map +1 -1
- package/dist/reactive/to-value.d.ts +57 -0
- package/dist/reactive/to-value.d.ts.map +1 -0
- package/dist/reactive/websocket.d.ts +285 -0
- package/dist/reactive/websocket.d.ts.map +1 -0
- package/dist/reactive-DwkhUJfP.js +1148 -0
- package/dist/reactive-DwkhUJfP.js.map +1 -0
- package/dist/reactive.es.mjs +38 -20
- package/dist/registry-B08iilIh.js +26 -0
- package/dist/registry-B08iilIh.js.map +1 -0
- package/dist/router/bq-link.d.ts +112 -0
- package/dist/router/bq-link.d.ts.map +1 -0
- package/dist/router/constraints.d.ts +9 -0
- package/dist/router/constraints.d.ts.map +1 -0
- package/dist/router/index.d.ts +15 -7
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/match.d.ts +0 -1
- package/dist/router/match.d.ts.map +1 -1
- package/dist/router/path-pattern.d.ts +14 -0
- package/dist/router/path-pattern.d.ts.map +1 -0
- package/dist/router/query.d.ts.map +1 -1
- package/dist/router/router.d.ts +3 -1
- package/dist/router/router.d.ts.map +1 -1
- package/dist/router/state.d.ts +25 -2
- package/dist/router/state.d.ts.map +1 -1
- package/dist/router/types.d.ts +48 -4
- package/dist/router/types.d.ts.map +1 -1
- package/dist/router/use-route.d.ts +50 -0
- package/dist/router/use-route.d.ts.map +1 -0
- package/dist/router/utils.d.ts +3 -0
- package/dist/router/utils.d.ts.map +1 -1
- package/dist/router-CQikC9Ed.js +492 -0
- package/dist/router-CQikC9Ed.js.map +1 -0
- package/dist/router.es.mjs +14 -10
- package/dist/{sanitize-Bs2dkMby.js → sanitize-B1V4JswB.js} +2 -1
- package/dist/{sanitize-Bs2dkMby.js.map → sanitize-B1V4JswB.js.map} +1 -1
- package/dist/security/index.d.ts +2 -2
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security.es.mjs +1 -1
- package/dist/ssr/hydrate.d.ts +65 -0
- package/dist/ssr/hydrate.d.ts.map +1 -0
- package/dist/ssr/index.d.ts +59 -0
- package/dist/ssr/index.d.ts.map +1 -0
- package/dist/ssr/render.d.ts +62 -0
- package/dist/ssr/render.d.ts.map +1 -0
- package/dist/ssr/serialize.d.ts +118 -0
- package/dist/ssr/serialize.d.ts.map +1 -0
- package/dist/ssr/types.d.ts +70 -0
- package/dist/ssr/types.d.ts.map +1 -0
- package/dist/ssr-_dAcGdzu.js +248 -0
- package/dist/ssr-_dAcGdzu.js.map +1 -0
- package/dist/ssr.es.mjs +9 -0
- package/dist/store/create-store.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/persisted.d.ts +38 -4
- package/dist/store/persisted.d.ts.map +1 -1
- package/dist/store/types.d.ts +138 -1
- package/dist/store/types.d.ts.map +1 -1
- package/dist/store/utils.d.ts +2 -2
- package/dist/store/utils.d.ts.map +1 -1
- package/dist/store-Cb3gPRve.js +338 -0
- package/dist/store-Cb3gPRve.js.map +1 -0
- package/dist/store.es.mjs +11 -10
- package/dist/storybook/index.d.ts.map +1 -1
- package/dist/storybook.es.mjs +1 -1
- package/dist/storybook.es.mjs.map +1 -1
- package/dist/testing/index.d.ts +23 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/testing.d.ts +156 -0
- package/dist/testing/testing.d.ts.map +1 -0
- package/dist/testing/types.d.ts +134 -0
- package/dist/testing/types.d.ts.map +1 -0
- package/dist/testing-C5Sjfsna.js +224 -0
- package/dist/testing-C5Sjfsna.js.map +1 -0
- package/dist/testing.es.mjs +9 -0
- package/dist/type-guards-BMX2c0LP.js +44 -0
- package/dist/type-guards-BMX2c0LP.js.map +1 -0
- package/dist/untrack-D0fnO5k2.js +36 -0
- package/dist/untrack-D0fnO5k2.js.map +1 -0
- package/dist/view/custom-directives.d.ts +20 -0
- package/dist/view/custom-directives.d.ts.map +1 -0
- package/dist/view/evaluate.d.ts.map +1 -1
- package/dist/view/process.d.ts.map +1 -1
- package/dist/view.es.mjs +9 -9
- package/package.json +47 -11
- package/src/a11y/announce.ts +131 -0
- package/src/a11y/audit.ts +314 -0
- package/src/a11y/index.ts +68 -0
- package/src/a11y/media-preferences.ts +255 -0
- package/src/a11y/roving-tab-index.ts +164 -0
- package/src/a11y/skip-link.ts +255 -0
- package/src/a11y/trap-focus.ts +184 -0
- package/src/a11y/types.ts +183 -0
- package/src/component/component.ts +599 -524
- package/src/component/html.ts +153 -153
- package/src/component/index.ts +52 -50
- package/src/component/library.ts +540 -518
- package/src/component/scope.ts +212 -0
- package/src/component/types.ts +310 -256
- package/src/core/collection.ts +249 -1
- package/src/core/element.ts +252 -11
- package/src/core/env.ts +60 -0
- package/src/core/index.ts +1 -0
- package/src/core/shared.ts +64 -0
- package/src/core/utils/index.ts +66 -1
- package/src/devtools/devtools.ts +410 -0
- package/src/devtools/index.ts +48 -0
- package/src/devtools/types.ts +104 -0
- package/src/dnd/draggable.ts +296 -0
- package/src/dnd/droppable.ts +228 -0
- package/src/dnd/index.ts +62 -0
- package/src/dnd/sortable.ts +307 -0
- package/src/dnd/types.ts +293 -0
- package/src/forms/create-form.ts +320 -0
- package/src/forms/index.ts +70 -0
- package/src/forms/types.ts +203 -0
- package/src/forms/use-field.ts +231 -0
- package/src/forms/validators.ts +294 -0
- package/src/full.ts +554 -229
- package/src/i18n/formatting.ts +67 -0
- package/src/i18n/i18n.ts +200 -0
- package/src/i18n/index.ts +67 -0
- package/src/i18n/translate.ts +182 -0
- package/src/i18n/types.ts +171 -0
- package/src/index.ts +72 -0
- package/src/media/battery.ts +116 -0
- package/src/media/breakpoints.ts +129 -0
- package/src/media/clipboard.ts +80 -0
- package/src/media/device-sensors.ts +158 -0
- package/src/media/geolocation.ts +119 -0
- package/src/media/index.ts +76 -0
- package/src/media/media-query.ts +92 -0
- package/src/media/network.ts +115 -0
- package/src/media/types.ts +177 -0
- package/src/media/viewport.ts +84 -0
- package/src/motion/index.ts +11 -2
- package/src/motion/morph.ts +151 -0
- package/src/motion/parallax.ts +120 -0
- package/src/motion/reduced-motion.ts +52 -3
- package/src/motion/types.ts +63 -0
- package/src/motion/typewriter.ts +164 -0
- package/src/plugin/index.ts +37 -0
- package/src/plugin/registry.ts +284 -0
- package/src/plugin/types.ts +137 -0
- package/src/reactive/async-data.ts +250 -29
- package/src/reactive/computed.ts +53 -1
- package/src/reactive/effect.ts +29 -6
- package/src/reactive/http.ts +790 -0
- package/src/reactive/index.ts +60 -0
- package/src/reactive/pagination.ts +317 -0
- package/src/reactive/polling.ts +179 -0
- package/src/reactive/readonly.ts +52 -8
- package/src/reactive/rest.ts +859 -0
- package/src/reactive/scope.ts +276 -0
- package/src/reactive/signal.ts +61 -1
- package/src/reactive/to-value.ts +71 -0
- package/src/reactive/websocket.ts +849 -0
- package/src/router/bq-link.ts +279 -0
- package/src/router/constraints.ts +204 -0
- package/src/router/index.ts +15 -7
- package/src/router/match.ts +255 -49
- package/src/router/path-pattern.ts +52 -0
- package/src/router/query.ts +3 -0
- package/src/router/router.ts +258 -48
- package/src/router/state.ts +51 -3
- package/src/router/types.ts +50 -4
- package/src/router/use-route.ts +68 -0
- package/src/router/utils.ts +44 -3
- package/src/security/index.ts +12 -17
- package/src/security/sanitize.ts +70 -70
- package/src/security/trusted-html.ts +71 -71
- package/src/ssr/hydrate.ts +84 -0
- package/src/ssr/index.ts +70 -0
- package/src/ssr/render.ts +508 -0
- package/src/ssr/serialize.ts +296 -0
- package/src/ssr/types.ts +81 -0
- package/src/store/create-store.ts +146 -8
- package/src/store/define-store.ts +49 -49
- package/src/store/index.ts +5 -0
- package/src/store/mapping.ts +74 -74
- package/src/store/persisted.ts +245 -62
- package/src/store/types.ts +247 -92
- package/src/store/utils.ts +4 -10
- package/src/store/watch.ts +53 -53
- package/src/storybook/index.ts +480 -479
- package/src/testing/index.ts +42 -0
- package/src/testing/testing.ts +593 -0
- package/src/testing/types.ts +170 -0
- package/src/view/custom-directives.ts +28 -0
- package/src/view/evaluate.ts +2 -0
- package/src/view/process.ts +19 -3
- package/dist/component-BEQgt5hl.js +0 -600
- package/dist/component-BEQgt5hl.js.map +0 -1
- package/dist/core-BGQJVw0-.js +0 -35
- package/dist/core-BGQJVw0-.js.map +0 -1
- package/dist/core-CCEabVHl.js.map +0 -1
- package/dist/effect-AFRW_Plg.js +0 -84
- package/dist/effect-AFRW_Plg.js.map +0 -1
- package/dist/motion-D9TcHxOF.js +0 -415
- package/dist/motion-D9TcHxOF.js.map +0 -1
- package/dist/reactive-DSkct0dO.js +0 -254
- package/dist/reactive-DSkct0dO.js.map +0 -1
- package/dist/router-CbDhl8rS.js +0 -188
- package/dist/router-CbDhl8rS.js.map +0 -1
- package/dist/store-BwDvI45q.js +0 -263
- package/dist/store-BwDvI45q.js.map +0 -1
- package/dist/untrack-B0rVscTc.js +0 -7
- package/dist/untrack-B0rVscTc.js.map +0 -1
- package/dist/view-C70lA3vf.js.map +0 -1
package/dist/index.es.mjs
CHANGED
|
@@ -1,149 +1,263 @@
|
|
|
1
|
-
import { a, c as e, d as t, i, n as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as
|
|
5
|
-
import { a as
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { a as
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
1
|
+
import { a, c as e, d as t, i as r, n as o, o as i, r as n, s as m, t as c } from "./sanitize-B1V4JswB.js";
|
|
2
|
+
import { C as l, S as p, _ as g, a as f, b as d, c as S, d as b, f as C, g as h, h as y, i as k, l as v, m as E, n as D, o as P, p as T, r as R, s as F, t as w, u as x, v as A, w as O, x as I, y as q } from "./core-EMYSLzaT.js";
|
|
3
|
+
import { a as L, n as Q, o as H, r as N, s as z, t as M } from "./object-BCk-1c8T.js";
|
|
4
|
+
import { i as $, n as j, r as G, t as V } from "./function-Cybd57JV.js";
|
|
5
|
+
import { a as J, c as K, i as U, l as X, n as Y, o as Z, r as ss, s as as, t as es, u as ts } from "./type-guards-BMX2c0LP.js";
|
|
6
|
+
import { c as os, i as is, n as ns, o as ms, r as cs, t as us } from "./core-DdtZHzsS.js";
|
|
7
|
+
import { C as ps, D as gs, E as fs, S as ds, T as Ss, _ as bs, a as Cs, b as hs, c as ys, d as ks, f as vs, g as Es, h as Ds, i as Ps, l as Ts, m as Rs, n as Fs, o as ws, r as xs, s as As, t as Os, u as Is, v as qs, w as Bs, x as Ls, y as Qs } from "./reactive-DwkhUJfP.js";
|
|
8
|
+
import { n as Ns, t as zs } from "./config-DhT9auRm.js";
|
|
9
|
+
import { n as _s, r as $s, t as js } from "./untrack-D0fnO5k2.js";
|
|
10
|
+
import { a as Vs, c as Ws, i as Js, l as Ks, n as Us, o as Xs, r as Ys, s as Zs, t as sa } from "./component-L3-JfOFz.js";
|
|
11
|
+
import { C as ea, D as ta, E as ra, O as oa, S as ia, T as na, _ as ma, a as ca, b as ua, c as la, d as pa, f as ga, g as fa, h as da, i as Sa, l as ba, m as Ca, n as ha, o as ya, p as ka, r as va, s as Ea, t as Da, u as Pa, v as Ta, w as Ra, x as Fa, y as wa } from "./motion-BJsAuULb.js";
|
|
12
|
+
import { a as Aa, i as Oa, n as Ia, o as qa, r as Ba, s as La, t as Qa } from "./platform-Dw2gE3zI.js";
|
|
13
|
+
import { a as Na, c as za, d as Ma, f as _a, i as $a, l as ja, m as Ga, n as Va, o as Wa, p as Ja, r as Ka, s as Ua, t as Xa, u as Ya } from "./router-CQikC9Ed.js";
|
|
14
|
+
import { i as se, n as ae, t as ee } from "./registry-B08iilIh.js";
|
|
15
|
+
import { a as re, c as oe, i as ie, n as ne, o as me, r as ce, s as ue, t as le } from "./store-Cb3gPRve.js";
|
|
16
|
+
import { n as ge, r as fe, t as de } from "./mount-B4Y8bk8Z.js";
|
|
17
|
+
import "./view.es.mjs";
|
|
18
|
+
import { a as Ce, c as he, d as ye, f as ke, i as ve, l as Ee, n as De, o as Pe, p as Te, r as Re, s as Fe, t as we, u as xe } from "./forms-UcRHsYxC.js";
|
|
19
|
+
import { n as Oe, r as Ie, t as qe } from "./i18n-kuF6Ekj6.js";
|
|
20
|
+
import { a as Le, d as Qe, i as He, l as Ne, n as ze, o as Me, r as _e, s as $e, t as je, u as Ge } from "./a11y-DVBCy09c.js";
|
|
21
|
+
import { n as We, r as Je, t as Ke } from "./dnd-NwZBYh4l.js";
|
|
22
|
+
import { a as Xe, c as Ye, i as Ze, l as st, n as at, o as et, r as tt, s as rt, t as ot } from "./media-i-fB5WxI.js";
|
|
23
|
+
import { a as nt, i as mt, n as ct, o as ut, r as lt, t as pt } from "./plugin-C2WuC8SF.js";
|
|
24
|
+
import { a as ft, c as dt, d as St, f as bt, g as Ct, h as ht, i as yt, l as kt, m as vt, n as Et, o as Dt, p as Pt, r as Tt, s as Rt, t as Ft, u as wt } from "./devtools-BhB2iDPT.js";
|
|
25
|
+
import { a as At, i as Ot, n as It, o as qt, r as Bt, t as Lt } from "./testing-C5Sjfsna.js";
|
|
26
|
+
import { a as Ht, i as Nt, n as zt, o as Mt, r as _t, t as $t } from "./ssr-_dAcGdzu.js";
|
|
15
27
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
28
|
+
I as $,
|
|
29
|
+
p as $$,
|
|
30
|
+
l as BQueryCollection,
|
|
31
|
+
O as BQueryElement,
|
|
32
|
+
za as BqLinkElement,
|
|
33
|
+
_s as Computed,
|
|
34
|
+
hs as HttpError,
|
|
35
|
+
us as Signal,
|
|
36
|
+
ra as animate,
|
|
37
|
+
Ge as announceToScreenReader,
|
|
38
|
+
Ne as auditA11y,
|
|
39
|
+
Ya as back,
|
|
40
|
+
gs as batch,
|
|
41
|
+
Us as bool,
|
|
42
|
+
Ye as breakpoints,
|
|
43
|
+
La as buckets,
|
|
44
|
+
qa as cache,
|
|
45
|
+
D as capitalize,
|
|
46
|
+
ga as capturePosition,
|
|
47
|
+
h as chunk,
|
|
48
|
+
S as clamp,
|
|
49
|
+
Qe as clearAnnouncements,
|
|
50
|
+
fe as clearExpressionCache,
|
|
51
|
+
Ft as clearTimeline,
|
|
52
|
+
ot as clipboard,
|
|
53
|
+
M as clone,
|
|
54
|
+
g as compact,
|
|
55
|
+
Vs as component,
|
|
56
|
+
$s as computed,
|
|
57
|
+
Te as createForm,
|
|
58
|
+
Ls as createHttp,
|
|
59
|
+
qe as createI18n,
|
|
60
|
+
ne as createPersistedStore,
|
|
61
|
+
ds as createRequestQueue,
|
|
62
|
+
ys as createRestClient,
|
|
63
|
+
Va as createRouter,
|
|
64
|
+
ue as createStore,
|
|
65
|
+
de as createTemplate,
|
|
66
|
+
r as createTrustedHtml,
|
|
67
|
+
Bs as createUseFetch,
|
|
68
|
+
Ja as currentRoute,
|
|
69
|
+
we as custom,
|
|
70
|
+
De as customAsync,
|
|
71
|
+
V as debounce,
|
|
72
|
+
Ts as deduplicateRequest,
|
|
73
|
+
zs as defineBqueryConfig,
|
|
74
|
+
Xs as defineComponent,
|
|
75
|
+
Ia as definePageMeta,
|
|
76
|
+
me as defineStore,
|
|
77
|
+
zt as deserializeStoreState,
|
|
78
|
+
ee as destroyStore,
|
|
79
|
+
Je as draggable,
|
|
80
|
+
We as droppable,
|
|
81
|
+
fa as easeInCubic,
|
|
82
|
+
ma as easeInOutCubic,
|
|
83
|
+
Ta as easeInOutQuad,
|
|
84
|
+
wa as easeInQuad,
|
|
85
|
+
ua as easeOutBack,
|
|
86
|
+
Fa as easeOutCubic,
|
|
87
|
+
ia as easeOutExpo,
|
|
88
|
+
ea as easeOutQuad,
|
|
89
|
+
Ra as easingPresets,
|
|
90
|
+
cs as effect,
|
|
91
|
+
is as effectScope,
|
|
92
|
+
Re as email,
|
|
93
|
+
Et as enableDevtools,
|
|
94
|
+
A as ensureArray,
|
|
95
|
+
c as escapeHtml,
|
|
96
|
+
R as escapeRegExp,
|
|
97
|
+
Lt as fireEvent,
|
|
98
|
+
q as flatten,
|
|
99
|
+
ka as flip,
|
|
100
|
+
Ca as flipElements,
|
|
101
|
+
da as flipList,
|
|
102
|
+
It as flushEffects,
|
|
103
|
+
Oe as formatDate,
|
|
104
|
+
Ie as formatNumber,
|
|
105
|
+
Ma as forward,
|
|
106
|
+
m as generateNonce,
|
|
107
|
+
Tt as generateSignalLabel,
|
|
108
|
+
Ns as getBqueryConfig,
|
|
109
|
+
ms as getCurrentScope,
|
|
110
|
+
pt as getCustomDirective,
|
|
111
|
+
ct as getCustomDirectives,
|
|
112
|
+
yt as getDevtoolsState,
|
|
113
|
+
je as getFocusableElements,
|
|
114
|
+
lt as getInstalledPlugins,
|
|
115
|
+
ae as getStore,
|
|
116
|
+
ft as getTimeline,
|
|
71
117
|
a as getTrustedTypesPolicy,
|
|
72
118
|
e as hasCSPDirective,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
119
|
+
Q as hasOwn,
|
|
120
|
+
Ys as html,
|
|
121
|
+
ps as http,
|
|
122
|
+
Mt as hydrateMount,
|
|
123
|
+
_t as hydrateStore,
|
|
124
|
+
Nt as hydrateStores,
|
|
125
|
+
v as inRange,
|
|
126
|
+
Dt as inspectComponents,
|
|
127
|
+
Rt as inspectSignals,
|
|
128
|
+
dt as inspectStores,
|
|
129
|
+
Wa as interceptLinks,
|
|
130
|
+
Ka as isActive,
|
|
131
|
+
$a as isActiveSignal,
|
|
132
|
+
es as isArray,
|
|
133
|
+
Y as isBoolean,
|
|
134
|
+
ss as isCollection,
|
|
135
|
+
ws as isComputed,
|
|
136
|
+
U as isDate,
|
|
137
|
+
kt as isDevtoolsEnabled,
|
|
138
|
+
J as isElement,
|
|
139
|
+
C as isEmpty,
|
|
140
|
+
Z as isFunction,
|
|
141
|
+
mt as isInstalled,
|
|
142
|
+
Ga as isNavigating,
|
|
143
|
+
as as isNumber,
|
|
144
|
+
K as isObject,
|
|
145
|
+
N as isPlainObject,
|
|
146
|
+
X as isPromise,
|
|
147
|
+
As as isSignal,
|
|
148
|
+
ts as isString,
|
|
149
|
+
i as isTrustedTypesSupported,
|
|
150
|
+
pa as keyframePresets,
|
|
151
|
+
na as linear,
|
|
152
|
+
Ua as link,
|
|
153
|
+
Qs as linkedSignal,
|
|
154
|
+
se as listStores,
|
|
155
|
+
wt as logComponents,
|
|
156
|
+
St as logSignals,
|
|
157
|
+
bt as logStores,
|
|
158
|
+
Pt as logTimeline,
|
|
159
|
+
ce as mapActions,
|
|
160
|
+
ie as mapGetters,
|
|
161
|
+
re as mapState,
|
|
162
|
+
ve as matchField,
|
|
163
|
+
Ce as max,
|
|
164
|
+
Pe as maxLength,
|
|
165
|
+
st as mediaQuery,
|
|
166
|
+
L as merge,
|
|
167
|
+
Fe as min,
|
|
168
|
+
he as minLength,
|
|
169
|
+
Bt as mockRouter,
|
|
170
|
+
Ot as mockSignal,
|
|
171
|
+
Pa as morphElement,
|
|
172
|
+
ge as mount,
|
|
173
|
+
_a as navigate,
|
|
174
|
+
j as noop,
|
|
175
|
+
Oa as notifications,
|
|
176
|
+
H as omit,
|
|
177
|
+
os as onScopeDispose,
|
|
178
|
+
G as once,
|
|
179
|
+
ba as parallax,
|
|
180
|
+
T as parseJson,
|
|
181
|
+
Ee as pattern,
|
|
182
|
+
Es as persistedSignal,
|
|
183
|
+
z as pick,
|
|
184
|
+
Me as prefersColorScheme,
|
|
185
|
+
$e as prefersContrast,
|
|
186
|
+
ta as prefersReducedMotion,
|
|
187
|
+
x as randomInt,
|
|
188
|
+
Rs as readonly,
|
|
189
|
+
vt as recordEvent,
|
|
190
|
+
ja as registerBqLink,
|
|
191
|
+
sa as registerDefaultComponents,
|
|
192
|
+
oe as registerPlugin,
|
|
193
|
+
ze as releaseFocus,
|
|
194
|
+
At as renderComponent,
|
|
195
|
+
$t as renderToString,
|
|
196
|
+
xe as required,
|
|
197
|
+
nt as resetPlugins,
|
|
198
|
+
Na as resolve,
|
|
199
|
+
Le as rovingTabIndex,
|
|
200
|
+
Js as safeHtml,
|
|
201
|
+
o as sanitize,
|
|
202
|
+
o as sanitizeHtml,
|
|
203
|
+
la as scrollAnimate,
|
|
204
|
+
va as sequence,
|
|
205
|
+
Ht as serializeStoreState,
|
|
206
|
+
oa as setReducedMotion,
|
|
207
|
+
ns as signal,
|
|
208
|
+
He as skipLink,
|
|
209
|
+
E as sleep,
|
|
210
|
+
k as slugify,
|
|
211
|
+
Ke as sortable,
|
|
212
|
+
ya as spring,
|
|
213
|
+
Ea as springPresets,
|
|
214
|
+
ca as stagger,
|
|
215
|
+
Qa as storage,
|
|
130
216
|
n as stripTags,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
217
|
+
$ as throttle,
|
|
218
|
+
Sa as timeline,
|
|
219
|
+
f as toCamelCase,
|
|
220
|
+
P as toKebabCase,
|
|
221
|
+
b as toNumber,
|
|
222
|
+
Cs as toValue,
|
|
223
|
+
ht as trackSignal,
|
|
224
|
+
ha as transition,
|
|
225
|
+
_e as trapFocus,
|
|
226
|
+
F as truncate,
|
|
138
227
|
t as trusted,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
228
|
+
Da as typewriter,
|
|
229
|
+
y as uid,
|
|
230
|
+
d as unique,
|
|
231
|
+
js as untrack,
|
|
232
|
+
Ct as untrackSignal,
|
|
233
|
+
ye as url,
|
|
234
|
+
ut as use,
|
|
235
|
+
Ba as useAnnouncer,
|
|
236
|
+
Ss as useAsyncData,
|
|
237
|
+
Xe as useBattery,
|
|
238
|
+
Zs as useComputed,
|
|
239
|
+
Aa as useCookie,
|
|
240
|
+
at as useDeviceMotion,
|
|
241
|
+
tt as useDeviceOrientation,
|
|
242
|
+
Ws as useEffect,
|
|
243
|
+
Os as useEventSource,
|
|
244
|
+
fs as useFetch,
|
|
245
|
+
ke as useFormField,
|
|
246
|
+
Ze as useGeolocation,
|
|
247
|
+
bs as useInfiniteFetch,
|
|
248
|
+
et as useNetworkStatus,
|
|
249
|
+
qs as usePaginatedFetch,
|
|
250
|
+
Ds as usePolling,
|
|
251
|
+
Is as useResource,
|
|
252
|
+
ks as useResourceList,
|
|
253
|
+
Xa as useRoute,
|
|
254
|
+
Ks as useSignal,
|
|
255
|
+
vs as useSubmit,
|
|
256
|
+
rt as useViewport,
|
|
257
|
+
Fs as useWebSocket,
|
|
258
|
+
xs as useWebSocketChannel,
|
|
259
|
+
w as utils,
|
|
260
|
+
qt as waitFor,
|
|
261
|
+
Ps as watch,
|
|
262
|
+
le as watchStore
|
|
149
263
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reactive battery status.
|
|
3
|
+
*
|
|
4
|
+
* Provides a reactive signal tracking the device's battery status
|
|
5
|
+
* via the Battery Status API.
|
|
6
|
+
*
|
|
7
|
+
* @module bquery/media
|
|
8
|
+
*/
|
|
9
|
+
import type { BatterySignal } from './types';
|
|
10
|
+
/**
|
|
11
|
+
* Returns a reactive signal tracking the device's battery status.
|
|
12
|
+
*
|
|
13
|
+
* Uses the Battery Status API (`navigator.getBattery()`) where available.
|
|
14
|
+
* Falls back gracefully to a default state with `supported: false` when
|
|
15
|
+
* the API is not available.
|
|
16
|
+
*
|
|
17
|
+
* @returns A readonly reactive signal with battery state and a `destroy()` method
|
|
18
|
+
* to remove Battery Status API listeners
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { useBattery } from '@bquery/bquery/media';
|
|
23
|
+
* import { effect } from '@bquery/bquery/reactive';
|
|
24
|
+
*
|
|
25
|
+
* const battery = useBattery();
|
|
26
|
+
* effect(() => {
|
|
27
|
+
* if (battery.value.supported) {
|
|
28
|
+
* console.log(`Battery: ${(battery.value.level * 100).toFixed(0)}%`);
|
|
29
|
+
* console.log(`Charging: ${battery.value.charging}`);
|
|
30
|
+
* }
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const useBattery: () => BatterySignal;
|
|
35
|
+
//# sourceMappingURL=battery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../src/media/battery.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,SAAS,CAAC;AAsB3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,UAAU,QAAO,aA2D7B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Named breakpoint signals.
|
|
3
|
+
*
|
|
4
|
+
* Defines named breakpoints that return reactive boolean signals,
|
|
5
|
+
* making it easy to respond to viewport size changes.
|
|
6
|
+
*
|
|
7
|
+
* @module bquery/media
|
|
8
|
+
*/
|
|
9
|
+
import type { BreakpointMap, MediaSignalHandle } from './types';
|
|
10
|
+
type BreakpointSignals<T extends BreakpointMap> = {
|
|
11
|
+
[K in keyof T]: MediaSignalHandle<boolean>;
|
|
12
|
+
} & {
|
|
13
|
+
destroyAll(): void;
|
|
14
|
+
} & ('destroy' extends keyof T ? Record<never, never> : {
|
|
15
|
+
destroy(): void;
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Defines named breakpoints and returns reactive boolean signals for each.
|
|
19
|
+
*
|
|
20
|
+
* Each breakpoint is a minimum-width media query. The returned object maps
|
|
21
|
+
* each breakpoint name to a `ReadonlySignal<boolean>` that is `true` when
|
|
22
|
+
* the viewport width is at or above the breakpoint value.
|
|
23
|
+
*
|
|
24
|
+
* @param bp - An object mapping breakpoint names to minimum widths in pixels
|
|
25
|
+
* @returns An object with the same keys, each a reactive boolean signal with
|
|
26
|
+
* `destroy()`, plus a top-level `destroyAll()` method to clean up all listeners.
|
|
27
|
+
* When no breakpoint is named `destroy`, a `destroy()` alias is also provided.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* import { breakpoints } from '@bquery/bquery/media';
|
|
32
|
+
* import { effect } from '@bquery/bquery/reactive';
|
|
33
|
+
*
|
|
34
|
+
* const bp = breakpoints({ sm: 640, md: 768, lg: 1024, xl: 1280 });
|
|
35
|
+
*
|
|
36
|
+
* effect(() => {
|
|
37
|
+
* if (bp.xl.value) {
|
|
38
|
+
* console.log('Extra large viewport');
|
|
39
|
+
* } else if (bp.lg.value) {
|
|
40
|
+
* console.log('Large viewport');
|
|
41
|
+
* } else if (bp.md.value) {
|
|
42
|
+
* console.log('Medium viewport');
|
|
43
|
+
* } else {
|
|
44
|
+
* console.log('Small viewport');
|
|
45
|
+
* }
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare const breakpoints: <T extends BreakpointMap>(bp: T) => BreakpointSignals<T>;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/media/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEhE,KAAK,iBAAiB,CAAC,CAAC,SAAS,aAAa,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC;CAAE,GAAG;IACjG,UAAU,IAAI,IAAI,CAAC;CACpB,GAAG,CAAC,SAAS,SAAS,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IAAE,OAAO,IAAI,IAAI,CAAA;CAAE,CAAC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,aAAa,EAAE,IAAI,CAAC,KAAG,iBAAiB,CAAC,CAAC,CAgF/E,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Async clipboard API wrappers.
|
|
3
|
+
*
|
|
4
|
+
* Provides simple read/write access to the system clipboard
|
|
5
|
+
* via the Async Clipboard API.
|
|
6
|
+
*
|
|
7
|
+
* @module bquery/media
|
|
8
|
+
*/
|
|
9
|
+
import type { ClipboardAPI } from './types';
|
|
10
|
+
/**
|
|
11
|
+
* Clipboard API wrapper providing simple async read/write access.
|
|
12
|
+
*
|
|
13
|
+
* Uses the modern Async Clipboard API (`navigator.clipboard`) under the hood.
|
|
14
|
+
* Both methods are `Promise`-based and will reject if the API is unavailable
|
|
15
|
+
* or permission is denied.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { clipboard } from '@bquery/bquery/media';
|
|
20
|
+
*
|
|
21
|
+
* // Write text to clipboard
|
|
22
|
+
* await clipboard.write('Hello, world!');
|
|
23
|
+
*
|
|
24
|
+
* // Read text from clipboard
|
|
25
|
+
* const text = await clipboard.read();
|
|
26
|
+
* console.log(text); // "Hello, world!"
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const clipboard: ClipboardAPI;
|
|
30
|
+
//# sourceMappingURL=clipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../src/media/clipboard.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAK5C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,SAAS,EAAE,YA8CvB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reactive device motion and orientation sensors.
|
|
3
|
+
*
|
|
4
|
+
* Provides reactive signals for accelerometer, gyroscope, and
|
|
5
|
+
* compass data via the DeviceMotion and DeviceOrientation APIs.
|
|
6
|
+
*
|
|
7
|
+
* @module bquery/media
|
|
8
|
+
*/
|
|
9
|
+
import type { DeviceMotionSignal, DeviceOrientationSignal } from './types';
|
|
10
|
+
/**
|
|
11
|
+
* Returns a reactive signal tracking device motion (accelerometer + gyroscope).
|
|
12
|
+
*
|
|
13
|
+
* Uses the `devicemotion` event to provide acceleration, acceleration
|
|
14
|
+
* including gravity, and rotation rate data.
|
|
15
|
+
*
|
|
16
|
+
* @returns A readonly reactive signal with motion sensor data and a `destroy()`
|
|
17
|
+
* method to remove the underlying event listener
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* import { useDeviceMotion } from '@bquery/bquery/media';
|
|
22
|
+
* import { effect } from '@bquery/bquery/reactive';
|
|
23
|
+
*
|
|
24
|
+
* const motion = useDeviceMotion();
|
|
25
|
+
* effect(() => {
|
|
26
|
+
* const { acceleration } = motion.value;
|
|
27
|
+
* console.log(`Acceleration: x=${acceleration.x}, y=${acceleration.y}, z=${acceleration.z}`);
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const useDeviceMotion: () => DeviceMotionSignal;
|
|
32
|
+
/**
|
|
33
|
+
* Returns a reactive signal tracking device orientation (compass/gyroscope).
|
|
34
|
+
*
|
|
35
|
+
* Uses the `deviceorientation` event to provide alpha (compass heading),
|
|
36
|
+
* beta (front-to-back tilt), and gamma (left-to-right tilt) data.
|
|
37
|
+
*
|
|
38
|
+
* @returns A readonly reactive signal with orientation data and a `destroy()`
|
|
39
|
+
* method to remove the underlying event listener
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* import { useDeviceOrientation } from '@bquery/bquery/media';
|
|
44
|
+
* import { effect } from '@bquery/bquery/reactive';
|
|
45
|
+
*
|
|
46
|
+
* const orientation = useDeviceOrientation();
|
|
47
|
+
* effect(() => {
|
|
48
|
+
* console.log(`Compass heading: ${orientation.value.alpha}°`);
|
|
49
|
+
* console.log(`Tilt: ${orientation.value.beta}° / ${orientation.value.gamma}°`);
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare const useDeviceOrientation: () => DeviceOrientationSignal;
|
|
54
|
+
//# sourceMappingURL=device-sensors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-sensors.d.ts","sourceRoot":"","sources":["../../src/media/device-sensors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EACV,kBAAkB,EAElB,uBAAuB,EAExB,MAAM,SAAS,CAAC;AAkBjB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,QAAO,kBA8ClC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB,QAAO,uBAkCvC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reactive geolocation.
|
|
3
|
+
*
|
|
4
|
+
* Provides a reactive signal tracking the device's geographic position
|
|
5
|
+
* via the Geolocation API.
|
|
6
|
+
*
|
|
7
|
+
* @module bquery/media
|
|
8
|
+
*/
|
|
9
|
+
import type { GeolocationOptions, GeolocationSignal } from './types';
|
|
10
|
+
/**
|
|
11
|
+
* Returns a reactive signal tracking the device's geographic position.
|
|
12
|
+
*
|
|
13
|
+
* Uses the Geolocation API (`navigator.geolocation`) where available.
|
|
14
|
+
* Can operate in one-shot mode (default) or continuous watch mode.
|
|
15
|
+
*
|
|
16
|
+
* @param options - Configuration for the geolocation request
|
|
17
|
+
* @returns A readonly reactive signal with position data and loading/error state,
|
|
18
|
+
* plus a `destroy()` method to stop an active watcher
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { useGeolocation } from '@bquery/bquery/media';
|
|
23
|
+
* import { effect } from '@bquery/bquery/reactive';
|
|
24
|
+
*
|
|
25
|
+
* // One-shot position
|
|
26
|
+
* const geo = useGeolocation();
|
|
27
|
+
* effect(() => {
|
|
28
|
+
* if (geo.value.loading) return console.log('Getting position...');
|
|
29
|
+
* if (geo.value.error) return console.error(geo.value.error);
|
|
30
|
+
* console.log(`Lat: ${geo.value.latitude}, Lng: ${geo.value.longitude}`);
|
|
31
|
+
* });
|
|
32
|
+
*
|
|
33
|
+
* // Continuous watch with high accuracy
|
|
34
|
+
* const geoWatch = useGeolocation({ watch: true, enableHighAccuracy: true });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare const useGeolocation: (options?: GeolocationOptions) => GeolocationSignal;
|
|
38
|
+
//# sourceMappingURL=geolocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geolocation.d.ts","sourceRoot":"","sources":["../../src/media/geolocation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAoB,MAAM,SAAS,CAAC;AAiBvF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,cAAc,GAAI,UAAS,kBAAuB,KAAG,iBAgEjE,CAAC"}
|