@bquery/bquery 1.5.0 → 1.7.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/README.md +193 -23
- 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-C5QOVvRn.js +421 -0
- package/dist/a11y-C5QOVvRn.js.map +1 -0
- package/dist/a11y.es.mjs +14 -0
- package/dist/component/component.d.ts +13 -5
- package/dist/component/component.d.ts.map +1 -1
- package/dist/component/html.d.ts +40 -3
- package/dist/component/html.d.ts.map +1 -1
- package/dist/component/index.d.ts +3 -2
- 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 +184 -17
- package/dist/component/types.d.ts.map +1 -1
- package/dist/component-CuuTijA6.js +684 -0
- package/dist/component-CuuTijA6.js.map +1 -0
- package/dist/component.es.mjs +10 -6
- package/dist/{config-DRmZZno3.js → config-BW35FKuA.js} +4 -4
- package/dist/config-BW35FKuA.js.map +1 -0
- package/dist/constraints-3lV9yyBw.js +100 -0
- package/dist/constraints-3lV9yyBw.js.map +1 -0
- package/dist/core/collection.d.ts +48 -0
- package/dist/core/collection.d.ts.map +1 -1
- package/dist/core/element.d.ts +92 -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 +8 -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-Cjl7GUu8.js +717 -0
- package/dist/core-Cjl7GUu8.js.map +1 -0
- package/dist/{core-DPdbItcq.js → core-DnlyjbF2.js} +1 -1
- package/dist/{core-DPdbItcq.js.map → core-DnlyjbF2.js.map} +1 -1
- package/dist/core.es.mjs +45 -44
- package/dist/custom-directives-7wAShnnd.js +9 -0
- package/dist/custom-directives-7wAShnnd.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-D2fQLhDN.js +122 -0
- package/dist/devtools-D2fQLhDN.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-B8EgyzaI.js +244 -0
- package/dist/dnd-B8EgyzaI.js.map +1 -0
- package/dist/dnd.es.mjs +6 -0
- package/dist/env-NeVmr4Gf.js +19 -0
- package/dist/env-NeVmr4Gf.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 +39 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/types.d.ts +139 -0
- package/dist/forms/types.d.ts.map +1 -0
- package/dist/forms/validators.d.ts +179 -0
- package/dist/forms/validators.d.ts.map +1 -0
- package/dist/forms-C3yovgH9.js +141 -0
- package/dist/forms-C3yovgH9.js.map +1 -0
- package/dist/forms.es.mjs +14 -0
- package/dist/full.d.ts +37 -9
- package/dist/full.d.ts.map +1 -1
- package/dist/full.es.mjs +186 -91
- 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/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-BnnhTFOS.js +89 -0
- package/dist/i18n-BnnhTFOS.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 +233 -138
- 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-Di2Ta22s.js +340 -0
- package/dist/media-Di2Ta22s.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-qPj_TYGv.js +530 -0
- package/dist/motion-qPj_TYGv.js.map +1 -0
- package/dist/motion.es.mjs +27 -23
- package/dist/mount-SM07RUa6.js +403 -0
- package/dist/mount-SM07RUa6.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-B7JhGBc7.js → platform-CPbCprb6.js} +3 -3
- package/dist/platform-CPbCprb6.js.map +1 -0
- 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-cPoOHFLY.js +64 -0
- package/dist/plugin-cPoOHFLY.js.map +1 -0
- package/dist/plugin.es.mjs +9 -0
- package/dist/reactive/computed.d.ts +7 -0
- package/dist/reactive/computed.d.ts.map +1 -1
- package/dist/reactive-Cfv0RK6x.js +233 -0
- package/dist/reactive-Cfv0RK6x.js.map +1 -0
- package/dist/reactive.es.mjs +18 -17
- package/dist/registry-CWf368tT.js +26 -0
- package/dist/registry-CWf368tT.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 +14 -6
- 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/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-BrthaP_z.js +473 -0
- package/dist/router-BrthaP_z.js.map +1 -0
- package/dist/router.es.mjs +13 -10
- package/dist/{sanitize-jyJ2ryE2.js → sanitize-B1V4JswB.js} +95 -83
- package/dist/sanitize-B1V4JswB.js.map +1 -0
- package/dist/security/index.d.ts +2 -0
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/sanitize.d.ts +4 -1
- package/dist/security/sanitize.d.ts.map +1 -1
- package/dist/security/trusted-html.d.ts +53 -0
- package/dist/security/trusted-html.d.ts.map +1 -0
- package/dist/security.es.mjs +10 -9
- 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-B2qd_WBB.js +248 -0
- package/dist/ssr-B2qd_WBB.js.map +1 -0
- package/dist/ssr.es.mjs +9 -0
- package/dist/store/create-store.d.ts.map +1 -1
- package/dist/store/define-store.d.ts +1 -1
- package/dist/store/define-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/mapping.d.ts +1 -1
- package/dist/store/mapping.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 +140 -3
- 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/watch.d.ts +1 -1
- package/dist/store/watch.d.ts.map +1 -1
- package/dist/store-DWpyH6p5.js +338 -0
- package/dist/store-DWpyH6p5.js.map +1 -0
- package/dist/store.es.mjs +11 -10
- package/dist/storybook/index.d.ts +37 -0
- package/dist/storybook/index.d.ts.map +1 -0
- package/dist/storybook.es.mjs +151 -0
- package/dist/storybook.es.mjs.map +1 -0
- 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-CsqjNUyy.js +224 -0
- package/dist/testing-CsqjNUyy.js.map +1 -0
- package/dist/testing.es.mjs +9 -0
- package/dist/type-guards-Do9DWgNp.js +44 -0
- package/dist/type-guards-Do9DWgNp.js.map +1 -0
- package/dist/untrack-DJVQQ2WM.js +33 -0
- package/dist/untrack-DJVQQ2WM.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 +11 -10
- package/package.json +52 -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 +345 -65
- package/src/component/html.ts +153 -53
- package/src/component/index.ts +12 -2
- package/src/component/library.ts +66 -28
- package/src/component/scope.ts +212 -0
- package/src/component/types.ts +238 -19
- package/src/core/collection.ts +707 -628
- package/src/core/element.ts +981 -774
- package/src/core/env.ts +60 -0
- package/src/core/index.ts +49 -48
- package/src/core/shared.ts +62 -13
- package/src/core/utils/index.ts +148 -83
- 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 +278 -0
- package/src/forms/index.ts +65 -0
- package/src/forms/types.ts +154 -0
- package/src/forms/validators.ts +265 -0
- package/src/full.ts +260 -3
- 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 +108 -36
- package/src/media/battery.ts +116 -0
- package/src/media/breakpoints.ts +131 -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 +57 -48
- package/src/motion/morph.ts +151 -0
- package/src/motion/parallax.ts +120 -0
- package/src/motion/reduced-motion.ts +66 -17
- package/src/motion/transition.ts +97 -97
- package/src/motion/types.ts +63 -0
- package/src/motion/typewriter.ts +164 -0
- package/src/platform/announcer.ts +208 -208
- package/src/platform/config.ts +163 -163
- package/src/platform/cookies.ts +165 -165
- package/src/platform/index.ts +39 -39
- package/src/platform/meta.ts +168 -168
- package/src/plugin/index.ts +37 -0
- package/src/plugin/registry.ts +269 -0
- package/src/plugin/types.ts +137 -0
- package/src/reactive/async-data.ts +486 -486
- package/src/reactive/computed.ts +130 -92
- package/src/reactive/index.ts +37 -37
- package/src/reactive/signal.ts +29 -29
- package/src/router/bq-link.ts +279 -0
- package/src/router/constraints.ts +201 -0
- package/src/router/index.ts +49 -41
- package/src/router/match.ts +312 -106
- package/src/router/path-pattern.ts +52 -0
- package/src/router/query.ts +38 -35
- package/src/router/router.ts +402 -211
- package/src/router/types.ts +139 -93
- package/src/router/use-route.ts +68 -0
- package/src/router/utils.ts +157 -116
- package/src/security/constants.ts +211 -211
- package/src/security/index.ts +12 -10
- package/src/security/sanitize.ts +6 -2
- package/src/security/trusted-html.ts +71 -0
- package/src/ssr/hydrate.ts +82 -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 +467 -329
- package/src/store/define-store.ts +2 -1
- package/src/store/index.ts +27 -22
- package/src/store/mapping.ts +2 -1
- package/src/store/persisted.ts +249 -61
- package/src/store/types.ts +247 -94
- package/src/store/utils.ts +135 -141
- package/src/store/watch.ts +2 -1
- package/src/storybook/index.ts +480 -0
- 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 +30 -0
- package/src/view/evaluate.ts +292 -290
- package/src/view/process.ts +108 -92
- package/dist/component-CY5MVoYN.js +0 -531
- package/dist/component-CY5MVoYN.js.map +0 -1
- package/dist/config-DRmZZno3.js.map +0 -1
- package/dist/core-CK2Mfpf4.js +0 -648
- package/dist/core-CK2Mfpf4.js.map +0 -1
- package/dist/motion-C5DRdPnO.js +0 -415
- package/dist/motion-C5DRdPnO.js.map +0 -1
- package/dist/platform-B7JhGBc7.js.map +0 -1
- package/dist/reactive-BDya-ia8.js +0 -253
- package/dist/reactive-BDya-ia8.js.map +0 -1
- package/dist/router-CijiICxt.js +0 -188
- package/dist/router-CijiICxt.js.map +0 -1
- package/dist/sanitize-jyJ2ryE2.js.map +0 -1
- package/dist/store-CPK9E62U.js +0 -262
- package/dist/store-CPK9E62U.js.map +0 -1
- package/dist/view-Cdi0g-qo.js +0 -396
- package/dist/view-Cdi0g-qo.js.map +0 -1
package/dist/index.es.mjs
CHANGED
|
@@ -1,145 +1,240 @@
|
|
|
1
|
-
import { a, c as e,
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
10
|
-
import { a as
|
|
11
|
-
import { a as
|
|
12
|
-
import { n as
|
|
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 l } from "./sanitize-B1V4JswB.js";
|
|
2
|
+
import { C as u, D as p, E as g, O as f, S as d, T as S, _ as b, a as C, b as y, c as h, d as k, f as v, g as E, h as T, i as D, l as P, m as O, n as A, o as w, p as x, r as B, s as I, t as R, u as F, v as L, w as q, x as Q, y as z } from "./core-Cjl7GUu8.js";
|
|
3
|
+
import { a as N, n as H, o as $, r as j, s as G, t as _ } from "./object-BCk-1c8T.js";
|
|
4
|
+
import { a as K, c as U, i as V, l as W, n as X, o as Y, r as Z, s as ss, t as as, u as es } from "./type-guards-Do9DWgNp.js";
|
|
5
|
+
import { n as rs, r as os, t as is } from "./core-DnlyjbF2.js";
|
|
6
|
+
import { a as ms, c as ls, i as cs, l as us, n as ps, o as gs, r as fs, s as ds, t as Ss, u as bs } from "./reactive-Cfv0RK6x.js";
|
|
7
|
+
import { n as ys, t as hs } from "./config-BW35FKuA.js";
|
|
8
|
+
import { n as vs, r as Es, t as Ts } from "./untrack-DJVQQ2WM.js";
|
|
9
|
+
import { a as Ps, c as Os, i as As, l as ws, n as xs, o as Bs, r as Is, s as Rs, t as Fs } from "./component-CuuTijA6.js";
|
|
10
|
+
import { C as qs, D as Qs, E as zs, O as Ms, S as Ns, T as Hs, _ as $s, a as js, b as Gs, c as _s, d as Js, f as Ks, g as Us, h as Vs, i as Ws, l as Xs, m as Ys, n as Zs, o as sa, p as aa, r as ea, s as ta, t as ra, u as oa, v as ia, w as na, x as ma, y as la } from "./motion-qPj_TYGv.js";
|
|
11
|
+
import { a as ua, i as pa, n as ga, o as fa, r as da, s as Sa, t as ba } from "./platform-CPbCprb6.js";
|
|
12
|
+
import { a as ya, c as ha, d as ka, f as va, i as Ea, l as Ta, n as Da, o as Pa, p as Oa, r as Aa, s as wa, t as xa, u as Ba } from "./router-BrthaP_z.js";
|
|
13
|
+
import { i as Ra, n as Fa, t as La } from "./registry-CWf368tT.js";
|
|
14
|
+
import { a as Qa, c as za, i as Ma, n as Na, o as Ha, r as $a, s as ja, t as Ga } from "./store-DWpyH6p5.js";
|
|
15
|
+
import { n as Ja, r as Ka, t as Ua } from "./mount-SM07RUa6.js";
|
|
16
|
+
import "./view.es.mjs";
|
|
17
|
+
import { a as Xa, c as Ya, d as Za, i as se, l as ae, n as ee, o as te, r as re, s as oe, t as ie, u as ne } from "./forms-C3yovgH9.js";
|
|
18
|
+
import { n as le, r as ce, t as ue } from "./i18n-BnnhTFOS.js";
|
|
19
|
+
import { a as ge, d as fe, i as de, l as Se, n as be, o as Ce, r as ye, s as he, t as ke, u as ve } from "./a11y-C5QOVvRn.js";
|
|
20
|
+
import { n as Te, r as De, t as Pe } from "./dnd-B8EgyzaI.js";
|
|
21
|
+
import { a as Ae, c as we, i as xe, l as Be, n as Ie, o as Re, r as Fe, s as Le, t as qe } from "./media-Di2Ta22s.js";
|
|
22
|
+
import { a as ze, i as Me, n as Ne, o as He, r as $e, t as je } from "./plugin-cPoOHFLY.js";
|
|
23
|
+
import { a as _e, c as Je, d as Ke, f as Ue, g as Ve, h as We, i as Xe, l as Ye, m as Ze, n as st, o as at, p as et, r as tt, s as rt, t as ot, u as it } from "./devtools-D2fQLhDN.js";
|
|
24
|
+
import { a as mt, i as lt, n as ct, o as ut, r as pt, t as gt } from "./testing-CsqjNUyy.js";
|
|
25
|
+
import { a as dt, i as St, n as bt, o as Ct, r as yt, t as ht } from "./ssr-B2qd_WBB.js";
|
|
13
26
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
27
|
+
S as $,
|
|
28
|
+
g as $$,
|
|
29
|
+
p as BQueryCollection,
|
|
30
|
+
f as BQueryElement,
|
|
31
|
+
ha as BqLinkElement,
|
|
32
|
+
vs as Computed,
|
|
19
33
|
is as Signal,
|
|
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
|
-
Us as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
34
|
+
zs as animate,
|
|
35
|
+
ve as announceToScreenReader,
|
|
36
|
+
Se as auditA11y,
|
|
37
|
+
Ba as back,
|
|
38
|
+
bs as batch,
|
|
39
|
+
xs as bool,
|
|
40
|
+
we as breakpoints,
|
|
41
|
+
Sa as buckets,
|
|
42
|
+
fa as cache,
|
|
43
|
+
A as capitalize,
|
|
44
|
+
Ks as capturePosition,
|
|
45
|
+
y as chunk,
|
|
46
|
+
h as clamp,
|
|
47
|
+
fe as clearAnnouncements,
|
|
48
|
+
Ka as clearExpressionCache,
|
|
49
|
+
ot as clearTimeline,
|
|
50
|
+
qe as clipboard,
|
|
51
|
+
_ as clone,
|
|
52
|
+
Q as compact,
|
|
53
|
+
Ps as component,
|
|
54
|
+
Es as computed,
|
|
55
|
+
Za as createForm,
|
|
56
|
+
ue as createI18n,
|
|
57
|
+
Na as createPersistedStore,
|
|
58
|
+
Da as createRouter,
|
|
59
|
+
ja as createStore,
|
|
60
|
+
Ua as createTemplate,
|
|
61
|
+
r as createTrustedHtml,
|
|
62
|
+
ds as createUseFetch,
|
|
63
|
+
Oa as currentRoute,
|
|
64
|
+
ie as custom,
|
|
65
|
+
ee as customAsync,
|
|
66
|
+
E as debounce,
|
|
67
|
+
hs as defineBqueryConfig,
|
|
68
|
+
Bs as defineComponent,
|
|
69
|
+
ga as definePageMeta,
|
|
70
|
+
Ha as defineStore,
|
|
71
|
+
bt as deserializeStoreState,
|
|
72
|
+
La as destroyStore,
|
|
73
|
+
De as draggable,
|
|
74
|
+
Te as droppable,
|
|
75
|
+
Us as easeInCubic,
|
|
76
|
+
$s as easeInOutCubic,
|
|
77
|
+
ia as easeInOutQuad,
|
|
78
|
+
la as easeInQuad,
|
|
79
|
+
Gs as easeOutBack,
|
|
80
|
+
ma as easeOutCubic,
|
|
81
|
+
Ns as easeOutExpo,
|
|
82
|
+
qs as easeOutQuad,
|
|
83
|
+
na as easingPresets,
|
|
84
|
+
os as effect,
|
|
85
|
+
re as email,
|
|
86
|
+
st as enableDevtools,
|
|
87
|
+
d as ensureArray,
|
|
88
|
+
l as escapeHtml,
|
|
89
|
+
B as escapeRegExp,
|
|
90
|
+
gt as fireEvent,
|
|
91
|
+
u as flatten,
|
|
92
|
+
aa as flip,
|
|
93
|
+
Ys as flipElements,
|
|
94
|
+
Vs as flipList,
|
|
95
|
+
ct as flushEffects,
|
|
96
|
+
le as formatDate,
|
|
97
|
+
ce as formatNumber,
|
|
98
|
+
ka as forward,
|
|
99
|
+
m as generateNonce,
|
|
100
|
+
tt as generateSignalLabel,
|
|
101
|
+
ys as getBqueryConfig,
|
|
102
|
+
je as getCustomDirective,
|
|
103
|
+
Ne as getCustomDirectives,
|
|
104
|
+
Xe as getDevtoolsState,
|
|
105
|
+
ke as getFocusableElements,
|
|
106
|
+
$e as getInstalledPlugins,
|
|
107
|
+
Fa as getStore,
|
|
108
|
+
_e as getTimeline,
|
|
68
109
|
a as getTrustedTypesPolicy,
|
|
69
110
|
e as hasCSPDirective,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
$
|
|
111
|
+
H as hasOwn,
|
|
112
|
+
Is as html,
|
|
113
|
+
Ct as hydrateMount,
|
|
114
|
+
yt as hydrateStore,
|
|
115
|
+
St as hydrateStores,
|
|
116
|
+
P as inRange,
|
|
117
|
+
at as inspectComponents,
|
|
118
|
+
rt as inspectSignals,
|
|
119
|
+
Je as inspectStores,
|
|
120
|
+
Pa as interceptLinks,
|
|
121
|
+
Aa as isActive,
|
|
122
|
+
Ea as isActiveSignal,
|
|
123
|
+
as as isArray,
|
|
124
|
+
X as isBoolean,
|
|
125
|
+
Z as isCollection,
|
|
126
|
+
ps as isComputed,
|
|
127
|
+
V as isDate,
|
|
128
|
+
Ye as isDevtoolsEnabled,
|
|
129
|
+
K as isElement,
|
|
130
|
+
v as isEmpty,
|
|
131
|
+
Y as isFunction,
|
|
132
|
+
Me as isInstalled,
|
|
133
|
+
ss as isNumber,
|
|
134
|
+
U as isObject,
|
|
135
|
+
j as isPlainObject,
|
|
136
|
+
W as isPromise,
|
|
137
|
+
fs as isSignal,
|
|
138
|
+
es as isString,
|
|
139
|
+
i as isTrustedTypesSupported,
|
|
140
|
+
Js as keyframePresets,
|
|
141
|
+
Hs as linear,
|
|
142
|
+
wa as link,
|
|
143
|
+
gs as linkedSignal,
|
|
144
|
+
Ra as listStores,
|
|
145
|
+
it as logComponents,
|
|
146
|
+
Ke as logSignals,
|
|
147
|
+
Ue as logStores,
|
|
148
|
+
et as logTimeline,
|
|
149
|
+
$a as mapActions,
|
|
150
|
+
Ma as mapGetters,
|
|
151
|
+
Qa as mapState,
|
|
152
|
+
se as max,
|
|
153
|
+
Xa as maxLength,
|
|
154
|
+
Be as mediaQuery,
|
|
155
|
+
N as merge,
|
|
156
|
+
te as min,
|
|
157
|
+
oe as minLength,
|
|
158
|
+
pt as mockRouter,
|
|
159
|
+
lt as mockSignal,
|
|
160
|
+
oa as morphElement,
|
|
161
|
+
Ja as mount,
|
|
162
|
+
va as navigate,
|
|
163
|
+
b as noop,
|
|
164
|
+
pa as notifications,
|
|
165
|
+
$ as omit,
|
|
166
|
+
L as once,
|
|
167
|
+
Xs as parallax,
|
|
168
|
+
x as parseJson,
|
|
169
|
+
Ya as pattern,
|
|
170
|
+
ms as persistedSignal,
|
|
171
|
+
G as pick,
|
|
172
|
+
Ce as prefersColorScheme,
|
|
173
|
+
he as prefersContrast,
|
|
174
|
+
Qs as prefersReducedMotion,
|
|
175
|
+
F as randomInt,
|
|
176
|
+
cs as readonly,
|
|
177
|
+
Ze as recordEvent,
|
|
178
|
+
Ta as registerBqLink,
|
|
179
|
+
Fs as registerDefaultComponents,
|
|
180
|
+
za as registerPlugin,
|
|
181
|
+
be as releaseFocus,
|
|
182
|
+
mt as renderComponent,
|
|
183
|
+
ht as renderToString,
|
|
184
|
+
ae as required,
|
|
185
|
+
ze as resetPlugins,
|
|
186
|
+
ya as resolve,
|
|
187
|
+
ge as rovingTabIndex,
|
|
188
|
+
As as safeHtml,
|
|
189
|
+
o as sanitize,
|
|
190
|
+
o as sanitizeHtml,
|
|
191
|
+
_s as scrollAnimate,
|
|
192
|
+
ea as sequence,
|
|
193
|
+
dt as serializeStoreState,
|
|
194
|
+
Ms as setReducedMotion,
|
|
195
|
+
rs as signal,
|
|
196
|
+
de as skipLink,
|
|
197
|
+
O as sleep,
|
|
198
|
+
D as slugify,
|
|
199
|
+
Pe as sortable,
|
|
200
|
+
sa as spring,
|
|
201
|
+
ta as springPresets,
|
|
125
202
|
js as stagger,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
203
|
+
ba as storage,
|
|
204
|
+
n as stripTags,
|
|
205
|
+
z as throttle,
|
|
206
|
+
Ws as timeline,
|
|
207
|
+
C as toCamelCase,
|
|
208
|
+
w as toKebabCase,
|
|
209
|
+
k as toNumber,
|
|
210
|
+
We as trackSignal,
|
|
211
|
+
Zs as transition,
|
|
212
|
+
ye as trapFocus,
|
|
213
|
+
I as truncate,
|
|
214
|
+
t as trusted,
|
|
215
|
+
ra as typewriter,
|
|
216
|
+
T as uid,
|
|
217
|
+
q as unique,
|
|
218
|
+
Ts as untrack,
|
|
219
|
+
Ve as untrackSignal,
|
|
220
|
+
ne as url,
|
|
221
|
+
He as use,
|
|
222
|
+
da as useAnnouncer,
|
|
223
|
+
ls as useAsyncData,
|
|
224
|
+
Ae as useBattery,
|
|
225
|
+
Rs as useComputed,
|
|
226
|
+
ua as useCookie,
|
|
227
|
+
Ie as useDeviceMotion,
|
|
228
|
+
Fe as useDeviceOrientation,
|
|
229
|
+
Os as useEffect,
|
|
230
|
+
us as useFetch,
|
|
231
|
+
xe as useGeolocation,
|
|
232
|
+
Re as useNetworkStatus,
|
|
233
|
+
xa as useRoute,
|
|
234
|
+
ws as useSignal,
|
|
235
|
+
Le as useViewport,
|
|
236
|
+
R as utils,
|
|
237
|
+
ut as waitFor,
|
|
143
238
|
Ss as watch,
|
|
144
|
-
|
|
239
|
+
Ga as watchStore
|
|
145
240
|
};
|
|
@@ -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,EACjD,IAAI,CAAC,KACJ,iBAAiB,CAAC,CAAC,CAgFrB,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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* bQuery Media module — reactive browser and device API signals.
|
|
3
|
+
*
|
|
4
|
+
* Provides reactive wrappers around browser media queries, viewport,
|
|
5
|
+
* network status, battery, geolocation, device sensors, and clipboard.
|
|
6
|
+
*
|
|
7
|
+
* @module bquery/media
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { mediaQuery, breakpoints, useViewport, useNetworkStatus, clipboard } from '@bquery/bquery/media';
|
|
12
|
+
* import { effect } from '@bquery/bquery/reactive';
|
|
13
|
+
*
|
|
14
|
+
* // Reactive media query
|
|
15
|
+
* const isDark = mediaQuery('(prefers-color-scheme: dark)');
|
|
16
|
+
*
|
|
17
|
+
* // Named breakpoints
|
|
18
|
+
* const bp = breakpoints({ sm: 640, md: 768, lg: 1024, xl: 1280 });
|
|
19
|
+
*
|
|
20
|
+
* // Viewport tracking
|
|
21
|
+
* const viewport = useViewport();
|
|
22
|
+
* effect(() => console.log(viewport.value.width));
|
|
23
|
+
*
|
|
24
|
+
* // Network status
|
|
25
|
+
* const net = useNetworkStatus();
|
|
26
|
+
* effect(() => console.log('Online:', net.value.online));
|
|
27
|
+
*
|
|
28
|
+
* // Clipboard
|
|
29
|
+
* await clipboard.write('Hello!');
|
|
30
|
+
* const text = await clipboard.read();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export { mediaQuery } from './media-query';
|
|
34
|
+
export { breakpoints } from './breakpoints';
|
|
35
|
+
export { useViewport } from './viewport';
|
|
36
|
+
export { useNetworkStatus } from './network';
|
|
37
|
+
export { useBattery } from './battery';
|
|
38
|
+
export { useGeolocation } from './geolocation';
|
|
39
|
+
export { useDeviceMotion, useDeviceOrientation } from './device-sensors';
|
|
40
|
+
export { clipboard } from './clipboard';
|
|
41
|
+
export type { BatterySignal, BatteryState, BreakpointMap, ClipboardAPI, DeviceMotionSignal, DeviceMotionState, DeviceOrientationSignal, DeviceOrientationState, GeolocationOptions, GeolocationSignal, GeolocationState, MediaSignalHandle, NetworkSignal, NetworkState, ViewportSignal, ViewportState, } from './types';
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGzE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,YAAY,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,GACd,MAAM,SAAS,CAAC"}
|