@bquery/bquery 1.7.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.
Files changed (262) hide show
  1. package/README.md +760 -716
  2. package/dist/{a11y-C5QOVvRn.js → a11y-DVBCy09c.js} +3 -3
  3. package/dist/a11y-DVBCy09c.js.map +1 -0
  4. package/dist/a11y.es.mjs +1 -1
  5. package/dist/component/library.d.ts.map +1 -1
  6. package/dist/{component-CuuTijA6.js → component-L3-JfOFz.js} +5 -5
  7. package/dist/component-L3-JfOFz.js.map +1 -0
  8. package/dist/component.es.mjs +1 -1
  9. package/dist/{config-BW35FKuA.js → config-DhT9auRm.js} +1 -1
  10. package/dist/{config-BW35FKuA.js.map → config-DhT9auRm.js.map} +1 -1
  11. package/dist/{constraints-3lV9yyBw.js → constraints-D5RHQLmP.js} +1 -1
  12. package/dist/constraints-D5RHQLmP.js.map +1 -0
  13. package/dist/core/collection.d.ts +86 -0
  14. package/dist/core/collection.d.ts.map +1 -1
  15. package/dist/core/element.d.ts +28 -0
  16. package/dist/core/element.d.ts.map +1 -1
  17. package/dist/core/shared.d.ts +6 -0
  18. package/dist/core/shared.d.ts.map +1 -1
  19. package/dist/core-DdtZHzsS.js +168 -0
  20. package/dist/core-DdtZHzsS.js.map +1 -0
  21. package/dist/{core-Cjl7GUu8.js → core-EMYSLzaT.js} +289 -259
  22. package/dist/core-EMYSLzaT.js.map +1 -0
  23. package/dist/core.es.mjs +48 -47
  24. package/dist/{custom-directives-7wAShnnd.js → custom-directives-Dr4C5lVV.js} +1 -1
  25. package/dist/custom-directives-Dr4C5lVV.js.map +1 -0
  26. package/dist/{devtools-D2fQLhDN.js → devtools-BhB2iDPT.js} +2 -2
  27. package/dist/devtools-BhB2iDPT.js.map +1 -0
  28. package/dist/devtools.es.mjs +1 -1
  29. package/dist/{dnd-B8EgyzaI.js → dnd-NwZBYh4l.js} +1 -1
  30. package/dist/dnd-NwZBYh4l.js.map +1 -0
  31. package/dist/dnd.es.mjs +1 -1
  32. package/dist/{env-NeVmr4Gf.js → env-CTdvLaH2.js} +1 -1
  33. package/dist/env-CTdvLaH2.js.map +1 -0
  34. package/dist/forms/create-form.d.ts.map +1 -1
  35. package/dist/forms/index.d.ts +3 -2
  36. package/dist/forms/index.d.ts.map +1 -1
  37. package/dist/forms/types.d.ts +46 -0
  38. package/dist/forms/types.d.ts.map +1 -1
  39. package/dist/forms/use-field.d.ts +34 -0
  40. package/dist/forms/use-field.d.ts.map +1 -0
  41. package/dist/forms/validators.d.ts +25 -0
  42. package/dist/forms/validators.d.ts.map +1 -1
  43. package/dist/forms-UcRHsYxC.js +227 -0
  44. package/dist/forms-UcRHsYxC.js.map +1 -0
  45. package/dist/forms.es.mjs +14 -12
  46. package/dist/full.d.ts +17 -26
  47. package/dist/full.d.ts.map +1 -1
  48. package/dist/full.es.mjs +206 -181
  49. package/dist/full.iife.js +33 -33
  50. package/dist/full.iife.js.map +1 -1
  51. package/dist/full.umd.js +33 -33
  52. package/dist/full.umd.js.map +1 -1
  53. package/dist/function-Cybd57JV.js +33 -0
  54. package/dist/function-Cybd57JV.js.map +1 -0
  55. package/dist/{i18n-BnnhTFOS.js → i18n-kuF6Ekj6.js} +3 -3
  56. package/dist/i18n-kuF6Ekj6.js.map +1 -0
  57. package/dist/i18n.es.mjs +1 -1
  58. package/dist/index.es.mjs +251 -228
  59. package/dist/media/breakpoints.d.ts.map +1 -1
  60. package/dist/media/types.d.ts +2 -2
  61. package/dist/media/types.d.ts.map +1 -1
  62. package/dist/{media-Di2Ta22s.js → media-i-fB5WxI.js} +3 -3
  63. package/dist/media-i-fB5WxI.js.map +1 -0
  64. package/dist/media.es.mjs +1 -1
  65. package/dist/{motion-qPj_TYGv.js → motion-BJsAuULb.js} +2 -2
  66. package/dist/motion-BJsAuULb.js.map +1 -0
  67. package/dist/motion.es.mjs +1 -1
  68. package/dist/{mount-SM07RUa6.js → mount-B4Y8bk8Z.js} +5 -5
  69. package/dist/mount-B4Y8bk8Z.js.map +1 -0
  70. package/dist/{platform-CPbCprb6.js → platform-Dw2gE3zI.js} +3 -3
  71. package/dist/{platform-CPbCprb6.js.map → platform-Dw2gE3zI.js.map} +1 -1
  72. package/dist/platform.es.mjs +2 -2
  73. package/dist/plugin/registry.d.ts.map +1 -1
  74. package/dist/{plugin-cPoOHFLY.js → plugin-C2WuC8SF.js} +20 -18
  75. package/dist/plugin-C2WuC8SF.js.map +1 -0
  76. package/dist/plugin.es.mjs +1 -1
  77. package/dist/reactive/async-data.d.ts +28 -3
  78. package/dist/reactive/async-data.d.ts.map +1 -1
  79. package/dist/reactive/computed.d.ts +3 -0
  80. package/dist/reactive/computed.d.ts.map +1 -1
  81. package/dist/reactive/effect.d.ts +3 -0
  82. package/dist/reactive/effect.d.ts.map +1 -1
  83. package/dist/reactive/http.d.ts +194 -0
  84. package/dist/reactive/http.d.ts.map +1 -0
  85. package/dist/reactive/index.d.ts +2 -2
  86. package/dist/reactive/index.d.ts.map +1 -1
  87. package/dist/reactive/pagination.d.ts +126 -0
  88. package/dist/reactive/pagination.d.ts.map +1 -0
  89. package/dist/reactive/polling.d.ts +55 -0
  90. package/dist/reactive/polling.d.ts.map +1 -0
  91. package/dist/reactive/readonly.d.ts +20 -1
  92. package/dist/reactive/readonly.d.ts.map +1 -1
  93. package/dist/reactive/rest.d.ts +293 -0
  94. package/dist/reactive/rest.d.ts.map +1 -0
  95. package/dist/reactive/scope.d.ts +140 -0
  96. package/dist/reactive/scope.d.ts.map +1 -0
  97. package/dist/reactive/signal.d.ts +16 -2
  98. package/dist/reactive/signal.d.ts.map +1 -1
  99. package/dist/reactive/to-value.d.ts +57 -0
  100. package/dist/reactive/to-value.d.ts.map +1 -0
  101. package/dist/reactive/websocket.d.ts +285 -0
  102. package/dist/reactive/websocket.d.ts.map +1 -0
  103. package/dist/reactive-DwkhUJfP.js +1148 -0
  104. package/dist/reactive-DwkhUJfP.js.map +1 -0
  105. package/dist/reactive.es.mjs +38 -19
  106. package/dist/{registry-CWf368tT.js → registry-B08iilIh.js} +1 -1
  107. package/dist/{registry-CWf368tT.js.map → registry-B08iilIh.js.map} +1 -1
  108. package/dist/router/constraints.d.ts.map +1 -1
  109. package/dist/router/index.d.ts +1 -1
  110. package/dist/router/index.d.ts.map +1 -1
  111. package/dist/router/router.d.ts.map +1 -1
  112. package/dist/router/state.d.ts +25 -2
  113. package/dist/router/state.d.ts.map +1 -1
  114. package/dist/router-CQikC9Ed.js +492 -0
  115. package/dist/router-CQikC9Ed.js.map +1 -0
  116. package/dist/router.es.mjs +9 -8
  117. package/dist/ssr/hydrate.d.ts.map +1 -1
  118. package/dist/{ssr-B2qd_WBB.js → ssr-_dAcGdzu.js} +4 -4
  119. package/dist/ssr-_dAcGdzu.js.map +1 -0
  120. package/dist/ssr.es.mjs +1 -1
  121. package/dist/store/persisted.d.ts.map +1 -1
  122. package/dist/{store-DWpyH6p5.js → store-Cb3gPRve.js} +7 -7
  123. package/dist/store-Cb3gPRve.js.map +1 -0
  124. package/dist/store.es.mjs +2 -2
  125. package/dist/storybook.es.mjs.map +1 -1
  126. package/dist/{testing-CsqjNUyy.js → testing-C5Sjfsna.js} +8 -8
  127. package/dist/testing-C5Sjfsna.js.map +1 -0
  128. package/dist/testing.es.mjs +1 -1
  129. package/dist/{type-guards-Do9DWgNp.js → type-guards-BMX2c0LP.js} +1 -1
  130. package/dist/{type-guards-Do9DWgNp.js.map → type-guards-BMX2c0LP.js.map} +1 -1
  131. package/dist/untrack-D0fnO5k2.js +36 -0
  132. package/dist/untrack-D0fnO5k2.js.map +1 -0
  133. package/dist/view/custom-directives.d.ts.map +1 -1
  134. package/dist/view.es.mjs +4 -4
  135. package/package.json +177 -177
  136. package/src/a11y/announce.ts +131 -131
  137. package/src/a11y/audit.ts +314 -314
  138. package/src/a11y/index.ts +68 -68
  139. package/src/a11y/media-preferences.ts +255 -255
  140. package/src/a11y/roving-tab-index.ts +164 -164
  141. package/src/a11y/skip-link.ts +255 -255
  142. package/src/a11y/trap-focus.ts +184 -184
  143. package/src/a11y/types.ts +183 -183
  144. package/src/component/component.ts +599 -599
  145. package/src/component/html.ts +153 -153
  146. package/src/component/index.ts +52 -52
  147. package/src/component/library.ts +540 -542
  148. package/src/component/scope.ts +212 -212
  149. package/src/component/types.ts +310 -310
  150. package/src/core/collection.ts +876 -707
  151. package/src/core/element.ts +1015 -981
  152. package/src/core/env.ts +60 -60
  153. package/src/core/index.ts +49 -49
  154. package/src/core/shared.ts +77 -62
  155. package/src/core/utils/index.ts +148 -148
  156. package/src/devtools/devtools.ts +410 -410
  157. package/src/devtools/index.ts +48 -48
  158. package/src/devtools/types.ts +104 -104
  159. package/src/dnd/draggable.ts +296 -296
  160. package/src/dnd/droppable.ts +228 -228
  161. package/src/dnd/index.ts +62 -62
  162. package/src/dnd/sortable.ts +307 -307
  163. package/src/dnd/types.ts +293 -293
  164. package/src/forms/create-form.ts +320 -278
  165. package/src/forms/index.ts +70 -65
  166. package/src/forms/types.ts +203 -154
  167. package/src/forms/use-field.ts +231 -0
  168. package/src/forms/validators.ts +294 -265
  169. package/src/full.ts +554 -480
  170. package/src/i18n/formatting.ts +67 -67
  171. package/src/i18n/i18n.ts +200 -200
  172. package/src/i18n/index.ts +67 -67
  173. package/src/i18n/translate.ts +182 -182
  174. package/src/i18n/types.ts +171 -171
  175. package/src/index.ts +108 -108
  176. package/src/media/battery.ts +116 -116
  177. package/src/media/breakpoints.ts +129 -131
  178. package/src/media/clipboard.ts +80 -80
  179. package/src/media/device-sensors.ts +158 -158
  180. package/src/media/geolocation.ts +119 -119
  181. package/src/media/index.ts +76 -76
  182. package/src/media/media-query.ts +92 -92
  183. package/src/media/network.ts +115 -115
  184. package/src/media/types.ts +177 -177
  185. package/src/media/viewport.ts +84 -84
  186. package/src/motion/index.ts +57 -57
  187. package/src/motion/morph.ts +151 -151
  188. package/src/motion/parallax.ts +120 -120
  189. package/src/motion/reduced-motion.ts +66 -66
  190. package/src/motion/types.ts +271 -271
  191. package/src/motion/typewriter.ts +164 -164
  192. package/src/plugin/index.ts +37 -37
  193. package/src/plugin/registry.ts +284 -269
  194. package/src/plugin/types.ts +137 -137
  195. package/src/reactive/async-data.ts +250 -29
  196. package/src/reactive/computed.ts +144 -130
  197. package/src/reactive/effect.ts +29 -6
  198. package/src/reactive/http.ts +790 -0
  199. package/src/reactive/index.ts +60 -0
  200. package/src/reactive/pagination.ts +317 -0
  201. package/src/reactive/polling.ts +179 -0
  202. package/src/reactive/readonly.ts +52 -8
  203. package/src/reactive/rest.ts +859 -0
  204. package/src/reactive/scope.ts +276 -0
  205. package/src/reactive/signal.ts +61 -1
  206. package/src/reactive/to-value.ts +71 -0
  207. package/src/reactive/websocket.ts +849 -0
  208. package/src/router/bq-link.ts +279 -279
  209. package/src/router/constraints.ts +204 -201
  210. package/src/router/index.ts +49 -49
  211. package/src/router/match.ts +312 -312
  212. package/src/router/path-pattern.ts +52 -52
  213. package/src/router/query.ts +38 -38
  214. package/src/router/router.ts +421 -402
  215. package/src/router/state.ts +51 -3
  216. package/src/router/types.ts +139 -139
  217. package/src/router/use-route.ts +68 -68
  218. package/src/router/utils.ts +157 -157
  219. package/src/security/index.ts +12 -12
  220. package/src/ssr/hydrate.ts +84 -82
  221. package/src/ssr/index.ts +70 -70
  222. package/src/ssr/render.ts +508 -508
  223. package/src/ssr/serialize.ts +296 -296
  224. package/src/ssr/types.ts +81 -81
  225. package/src/store/create-store.ts +467 -467
  226. package/src/store/index.ts +27 -27
  227. package/src/store/persisted.ts +245 -249
  228. package/src/store/types.ts +247 -247
  229. package/src/store/utils.ts +135 -135
  230. package/src/storybook/index.ts +480 -480
  231. package/src/testing/index.ts +42 -42
  232. package/src/testing/testing.ts +593 -593
  233. package/src/testing/types.ts +170 -170
  234. package/src/view/custom-directives.ts +28 -30
  235. package/src/view/evaluate.ts +292 -292
  236. package/src/view/process.ts +108 -108
  237. package/dist/a11y-C5QOVvRn.js.map +0 -1
  238. package/dist/component-CuuTijA6.js.map +0 -1
  239. package/dist/constraints-3lV9yyBw.js.map +0 -1
  240. package/dist/core-Cjl7GUu8.js.map +0 -1
  241. package/dist/core-DnlyjbF2.js +0 -112
  242. package/dist/core-DnlyjbF2.js.map +0 -1
  243. package/dist/custom-directives-7wAShnnd.js.map +0 -1
  244. package/dist/devtools-D2fQLhDN.js.map +0 -1
  245. package/dist/dnd-B8EgyzaI.js.map +0 -1
  246. package/dist/env-NeVmr4Gf.js.map +0 -1
  247. package/dist/forms-C3yovgH9.js +0 -141
  248. package/dist/forms-C3yovgH9.js.map +0 -1
  249. package/dist/i18n-BnnhTFOS.js.map +0 -1
  250. package/dist/media-Di2Ta22s.js.map +0 -1
  251. package/dist/motion-qPj_TYGv.js.map +0 -1
  252. package/dist/mount-SM07RUa6.js.map +0 -1
  253. package/dist/plugin-cPoOHFLY.js.map +0 -1
  254. package/dist/reactive-Cfv0RK6x.js +0 -233
  255. package/dist/reactive-Cfv0RK6x.js.map +0 -1
  256. package/dist/router-BrthaP_z.js +0 -473
  257. package/dist/router-BrthaP_z.js.map +0 -1
  258. package/dist/ssr-B2qd_WBB.js.map +0 -1
  259. package/dist/store-DWpyH6p5.js.map +0 -1
  260. package/dist/testing-CsqjNUyy.js.map +0 -1
  261. package/dist/untrack-DJVQQ2WM.js +0 -33
  262. package/dist/untrack-DJVQQ2WM.js.map +0 -1
package/src/full.ts CHANGED
@@ -1,480 +1,554 @@
1
- /**
2
- * bQuery.js — Full Bundle
3
- *
4
- * This is the complete bundle containing all modules for CDN usage.
5
- * Use this when you want all features without tree-shaking concerns.
6
- *
7
- * @module bquery/full
8
- *
9
- * @example CDN Usage (ES Modules)
10
- * ```html
11
- * <script type="module">
12
- * import { $, signal, component } from 'https://unpkg.com/bquery@1/dist/full.es.mjs';
13
- *
14
- * const count = signal(0);
15
- * $('#counter').text(count.value);
16
- * </script>
17
- * ```
18
- *
19
- * @example CDN Usage (UMD/Global)
20
- * ```html
21
- * <script src="https://unpkg.com/bquery@1/dist/full.umd.js"></script>
22
- * <script>
23
- * const { $, signal } = bQuery;
24
- * const count = signal(0);
25
- * </script>
26
- * ```
27
- *
28
- * @example CDN Usage (IIFE)
29
- * ```html
30
- * <script src="https://unpkg.com/bquery@1/dist/full.iife.js"></script>
31
- * <script>
32
- * // bQuery is available as a global variable
33
- * const { $, $$ } = bQuery;
34
- * </script>
35
- * ```
36
- */
37
-
38
- // ============================================================================
39
- // Core Module: Selectors, DOM operations, events, utilities
40
- // ============================================================================
41
- export { $, $$, BQueryCollection, BQueryElement, utils } from './core/index';
42
- export type { BQueryUtils } from './core/index';
43
-
44
- // ============================================================================
45
- // Reactive Module: Signals, computed values, effects, batching
46
- // ============================================================================
47
- export {
48
- Computed,
49
- Signal,
50
- batch,
51
- computed,
52
- createUseFetch,
53
- effect,
54
- isComputed,
55
- isSignal,
56
- linkedSignal,
57
- persistedSignal,
58
- readonly,
59
- signal,
60
- useAsyncData,
61
- useFetch,
62
- untrack,
63
- watch,
64
- } from './reactive/index';
65
- export type {
66
- AsyncDataState,
67
- AsyncDataStatus,
68
- AsyncWatchSource,
69
- CleanupFn,
70
- FetchInput,
71
- LinkedSignal,
72
- Observer,
73
- ReadonlySignal,
74
- UseAsyncDataOptions,
75
- UseFetchOptions,
76
- } from './reactive/index';
77
-
78
- // ============================================================================
79
- // Component Module: Web Components helper with Shadow DOM
80
- // ============================================================================
81
- export {
82
- bool,
83
- component,
84
- defineComponent,
85
- html,
86
- registerDefaultComponents,
87
- safeHtml,
88
- useComputed,
89
- useEffect,
90
- useSignal,
91
- } from './component/index';
92
- export type {
93
- AttributeChange,
94
- ComponentDefinition,
95
- ComponentRenderContext,
96
- ComponentStateKey,
97
- ComponentSignalLike,
98
- ComponentSignals,
99
- DefaultComponentLibraryOptions,
100
- PropDefinition,
101
- RegisteredDefaultComponents,
102
- ShadowMode,
103
- } from './component/index';
104
-
105
- // ============================================================================
106
- // Motion Module: View transitions, FLIP animations, springs
107
- // ============================================================================
108
- export {
109
- animate,
110
- capturePosition,
111
- easeInCubic,
112
- easeInOutCubic,
113
- easeInOutQuad,
114
- easeInQuad,
115
- easeOutBack,
116
- easeOutCubic,
117
- easeOutExpo,
118
- easeOutQuad,
119
- easingPresets,
120
- flip,
121
- flipElements,
122
- flipList,
123
- keyframePresets,
124
- linear,
125
- morphElement,
126
- parallax,
127
- prefersReducedMotion,
128
- scrollAnimate,
129
- sequence,
130
- setReducedMotion,
131
- spring,
132
- springPresets,
133
- stagger,
134
- timeline,
135
- transition,
136
- typewriter,
137
- } from './motion/index';
138
- export type {
139
- AnimateOptions,
140
- EasingFunction,
141
- ElementBounds,
142
- FlipGroupOptions,
143
- FlipOptions,
144
- MorphOptions,
145
- ParallaxCleanup,
146
- ParallaxOptions,
147
- ScrollAnimateCleanup,
148
- ScrollAnimateOptions,
149
- SequenceOptions,
150
- SequenceStep,
151
- Spring,
152
- SpringConfig,
153
- StaggerFunction,
154
- StaggerOptions,
155
- TimelineConfig,
156
- TimelineControls,
157
- TimelineStep,
158
- TransitionOptions,
159
- TypewriterControls,
160
- TypewriterOptions,
161
- } from './motion/index';
162
-
163
- // ============================================================================
164
- // Security Module: Sanitization, CSP compatibility, Trusted Types
165
- // ============================================================================
166
- export {
167
- createTrustedHtml,
168
- escapeHtml,
169
- generateNonce,
170
- getTrustedTypesPolicy,
171
- hasCSPDirective,
172
- isTrustedTypesSupported,
173
- sanitize,
174
- sanitizeHtml,
175
- stripTags,
176
- trusted,
177
- } from './security/index';
178
- export type { SanitizedHtml, SanitizeOptions, TrustedHtml } from './security/index';
179
-
180
- // ============================================================================
181
- // Platform Module: Storage, buckets, notifications, cache
182
- // ============================================================================
183
- export {
184
- buckets,
185
- cache,
186
- defineBqueryConfig,
187
- definePageMeta,
188
- getBqueryConfig,
189
- notifications,
190
- storage,
191
- useAnnouncer,
192
- useCookie,
193
- } from './platform/index';
194
- export type {
195
- AnnounceOptions,
196
- AnnouncerHandle,
197
- Bucket,
198
- BqueryConfig,
199
- CacheHandle,
200
- IndexedDBOptions,
201
- NotificationOptions,
202
- PageMetaDefinition,
203
- StorageAdapter,
204
- UseAnnouncerOptions,
205
- UseCookieOptions,
206
- } from './platform/index';
207
-
208
- // ============================================================================
209
- // Router Module: SPA routing, navigation guards, lazy loading
210
- // ============================================================================
211
- export {
212
- back,
213
- BqLinkElement,
214
- createRouter,
215
- currentRoute,
216
- forward,
217
- interceptLinks,
218
- isActive,
219
- isActiveSignal,
220
- link,
221
- navigate,
222
- registerBqLink,
223
- resolve,
224
- useRoute,
225
- } from './router/index';
226
- export type {
227
- NavigationGuard,
228
- Route,
229
- RouteDefinition,
230
- Router,
231
- RouterOptions,
232
- UseRouteReturn,
233
- } from './router/index';
234
-
235
- // ============================================================================
236
- // Store Module: Signal-based state management
237
- // ============================================================================
238
- export {
239
- createPersistedStore,
240
- createStore,
241
- destroyStore,
242
- getStore,
243
- listStores,
244
- mapActions,
245
- mapState,
246
- registerPlugin,
247
- } from './store/index';
248
- export type {
249
- ActionContext,
250
- OnActionCallback,
251
- PersistedStoreOptions,
252
- StateFactory,
253
- StorageBackend,
254
- Store,
255
- StoreDefinition,
256
- StorePlugin,
257
- StoreSerializer,
258
- } from './store/index';
259
-
260
- // ============================================================================
261
- // View Module: Declarative DOM bindings without compiler
262
- // ============================================================================
263
- export { createTemplate, mount } from './view/index';
264
- export type { BindingContext, MountOptions, View } from './view/index';
265
-
266
- // ============================================================================
267
- // Forms Module: Reactive form handling and validation
268
- // ============================================================================
269
- export {
270
- createForm,
271
- custom,
272
- customAsync,
273
- email,
274
- max,
275
- maxLength,
276
- min,
277
- minLength,
278
- pattern,
279
- required,
280
- url,
281
- } from './forms/index';
282
- export type {
283
- AsyncValidator,
284
- CrossFieldValidator,
285
- FieldConfig,
286
- Form,
287
- FormConfig,
288
- FormErrors,
289
- FormField,
290
- FormFields,
291
- SubmitHandler,
292
- SyncValidator,
293
- ValidationResult,
294
- Validator,
295
- } from './forms/index';
296
-
297
- // ============================================================================
298
- // i18n Module: Internationalization, translations, formatting
299
- // ============================================================================
300
- export { createI18n, formatDate, formatNumber } from './i18n/index';
301
- export type {
302
- DateFormatOptions,
303
- I18nConfig,
304
- I18nInstance,
305
- LocaleLoader,
306
- LocaleMessages,
307
- Messages,
308
- NumberFormatOptions,
309
- TranslateParams,
310
- } from './i18n/index';
311
-
312
- // ============================================================================
313
- // a11y Module: Accessibility utilities
314
- // ============================================================================
315
- // Note: prefersReducedMotion is not re-exported here to avoid naming conflict
316
- // with the motion module's prefersReducedMotion(). Use @bquery/bquery/a11y for
317
- // the reactive signal version.
318
- export {
319
- announceToScreenReader,
320
- auditA11y,
321
- clearAnnouncements,
322
- getFocusableElements,
323
- prefersColorScheme,
324
- prefersContrast,
325
- releaseFocus,
326
- rovingTabIndex,
327
- skipLink,
328
- trapFocus,
329
- } from './a11y/index';
330
- export type {
331
- AnnouncePriority,
332
- AuditFinding,
333
- AuditResult,
334
- AuditSeverity,
335
- ColorScheme,
336
- ContrastPreference,
337
- FocusTrapHandle,
338
- RovingTabIndexHandle,
339
- RovingTabIndexOptions,
340
- SkipLinkHandle,
341
- SkipLinkOptions,
342
- TrapFocusOptions,
343
- } from './a11y/index';
344
-
345
- // ============================================================================
346
- // DnD Module: Drag-and-drop, drop zones, sortable lists
347
- // ============================================================================
348
- export { draggable } from './dnd/index';
349
- export { droppable } from './dnd/index';
350
- export { sortable } from './dnd/index';
351
- export type {
352
- BoundsRect,
353
- DragAxis,
354
- DragBounds,
355
- DragEventData,
356
- DragPosition,
357
- DraggableHandle,
358
- DraggableOptions,
359
- DropEventData,
360
- DroppableHandle,
361
- DroppableOptions,
362
- SortEventData,
363
- SortableHandle,
364
- SortableOptions,
365
- } from './dnd/index';
366
-
367
- // ============================================================================
368
- // Media Module: Reactive browser and device API signals
369
- // ============================================================================
370
- export { mediaQuery } from './media/index';
371
- export { breakpoints } from './media/index';
372
- export { useViewport } from './media/index';
373
- export { useNetworkStatus } from './media/index';
374
- export { useBattery } from './media/index';
375
- export { useGeolocation } from './media/index';
376
- export { useDeviceMotion, useDeviceOrientation } from './media/index';
377
- export { clipboard } from './media/index';
378
- export type {
379
- BatteryState,
380
- BreakpointMap,
381
- ClipboardAPI,
382
- DeviceMotionState,
383
- DeviceOrientationState,
384
- GeolocationOptions,
385
- GeolocationState,
386
- NetworkState,
387
- ViewportState,
388
- } from './media/index';
389
-
390
- // ---------------------------------------------------------------------------
391
- // Plugin module
392
- // ---------------------------------------------------------------------------
393
- export {
394
- use,
395
- isInstalled,
396
- getInstalledPlugins,
397
- getCustomDirective,
398
- getCustomDirectives,
399
- resetPlugins,
400
- } from './plugin/index';
401
- export type {
402
- BQueryPlugin,
403
- CustomDirective,
404
- CustomDirectiveHandler,
405
- PluginInstallContext,
406
- } from './plugin/index';
407
-
408
- // ---------------------------------------------------------------------------
409
- // DevTools module
410
- // ---------------------------------------------------------------------------
411
- export {
412
- enableDevtools,
413
- isDevtoolsEnabled,
414
- trackSignal,
415
- untrackSignal,
416
- generateSignalLabel,
417
- inspectSignals,
418
- inspectStores,
419
- inspectComponents,
420
- recordEvent,
421
- getTimeline,
422
- clearTimeline,
423
- getDevtoolsState,
424
- logSignals,
425
- logStores,
426
- logComponents,
427
- logTimeline,
428
- } from './devtools/index';
429
- export type {
430
- ComponentSnapshot,
431
- DevtoolsOptions,
432
- DevtoolsState,
433
- SignalSnapshot,
434
- StoreSnapshot,
435
- TimelineEntry,
436
- TimelineEventType,
437
- } from './devtools/index';
438
-
439
- // ---------------------------------------------------------------------------
440
- // Testing module
441
- // ---------------------------------------------------------------------------
442
- export {
443
- renderComponent,
444
- flushEffects,
445
- mockSignal,
446
- mockRouter,
447
- fireEvent,
448
- waitFor,
449
- } from './testing/index';
450
- export type {
451
- FireEventOptions,
452
- MockRouter,
453
- MockRouterOptions,
454
- MockSignal,
455
- RenderComponentOptions,
456
- RenderResult,
457
- TestRoute,
458
- WaitForOptions,
459
- } from './testing/index';
460
-
461
- // ---------------------------------------------------------------------------
462
- // SSR module
463
- // ---------------------------------------------------------------------------
464
- export {
465
- renderToString,
466
- hydrateMount,
467
- serializeStoreState,
468
- deserializeStoreState,
469
- hydrateStore,
470
- hydrateStores,
471
- } from './ssr/index';
472
- export type {
473
- DeserializedStoreState,
474
- HydrateMountOptions,
475
- HydrationOptions,
476
- RenderOptions,
477
- SSRResult,
478
- SerializeOptions,
479
- SerializeResult,
480
- } from './ssr/index';
1
+ /**
2
+ * bQuery.js — Full Bundle
3
+ *
4
+ * This is the complete bundle containing all modules for CDN usage.
5
+ * Use this when you want all features without tree-shaking concerns.
6
+ *
7
+ * @module bquery/full
8
+ *
9
+ * @example CDN Usage (ES Modules)
10
+ * ```html
11
+ * <script type="module">
12
+ * import { $, signal, component } from 'https://unpkg.com/bquery@1/dist/full.es.mjs';
13
+ *
14
+ * const count = signal(0);
15
+ * $('#counter').text(count.value);
16
+ * </script>
17
+ * ```
18
+ *
19
+ * @example CDN Usage (UMD/Global)
20
+ * ```html
21
+ * <script src="https://unpkg.com/bquery@1/dist/full.umd.js"></script>
22
+ * <script>
23
+ * const { $, signal } = bQuery;
24
+ * const count = signal(0);
25
+ * </script>
26
+ * ```
27
+ *
28
+ * @example CDN Usage (IIFE)
29
+ * ```html
30
+ * <script src="https://unpkg.com/bquery@1/dist/full.iife.js"></script>
31
+ * <script>
32
+ * // bQuery is available as a global variable
33
+ * const { $, $$ } = bQuery;
34
+ * </script>
35
+ * ```
36
+ */
37
+
38
+ // ============================================================================
39
+ // Core Module: Selectors, DOM operations, events, utilities
40
+ // ============================================================================
41
+ export { $, $$, BQueryCollection, BQueryElement, utils } from './core/index';
42
+ export type { BQueryUtils } from './core/index';
43
+
44
+ // ============================================================================
45
+ // Reactive Module: Signals, computed values, effects, batching
46
+ // ============================================================================
47
+ export {
48
+ batch,
49
+ Computed,
50
+ computed,
51
+ createHttp,
52
+ createRequestQueue,
53
+ createRestClient,
54
+ createUseFetch,
55
+ deduplicateRequest,
56
+ effect,
57
+ effectScope,
58
+ getCurrentScope,
59
+ http,
60
+ HttpError,
61
+ isComputed,
62
+ isSignal,
63
+ linkedSignal,
64
+ onScopeDispose,
65
+ persistedSignal,
66
+ readonly,
67
+ Signal,
68
+ signal,
69
+ toValue,
70
+ untrack,
71
+ useAsyncData,
72
+ useEventSource,
73
+ useFetch,
74
+ useInfiniteFetch,
75
+ usePaginatedFetch,
76
+ usePolling,
77
+ useResource,
78
+ useResourceList,
79
+ useSubmit,
80
+ useWebSocket,
81
+ useWebSocketChannel,
82
+ watch,
83
+ } from './reactive/index';
84
+ export type {
85
+ AsyncDataState,
86
+ AsyncDataStatus,
87
+ AsyncWatchSource,
88
+ ChannelMessage,
89
+ ChannelSubscription,
90
+ CleanupFn,
91
+ EffectScope,
92
+ EventSourceStatus,
93
+ FetchInput,
94
+ HttpClient,
95
+ HttpProgressEvent,
96
+ HttpRequestConfig,
97
+ HttpResponse,
98
+ IdExtractor,
99
+ InfiniteState,
100
+ Interceptor,
101
+ InterceptorManager,
102
+ LinkedSignal,
103
+ MaybeSignal,
104
+ Observer,
105
+ PaginatedState,
106
+ PollingState,
107
+ ReadonlySignal,
108
+ ReadonlySignalHandle,
109
+ RequestQueue,
110
+ RequestQueueOptions,
111
+ ResourceListActions,
112
+ RestClient,
113
+ RetryConfig,
114
+ UseAsyncDataOptions,
115
+ UseEventSourceOptions,
116
+ UseEventSourceReturn,
117
+ UseFetchOptions,
118
+ UseFetchRetryConfig,
119
+ UseInfiniteFetchOptions,
120
+ UsePaginatedFetchOptions,
121
+ UsePollingOptions,
122
+ UseResourceListOptions,
123
+ UseResourceListReturn,
124
+ UseResourceOptions,
125
+ UseResourceReturn,
126
+ UseSubmitOptions,
127
+ UseSubmitReturn,
128
+ UseWebSocketChannelOptions,
129
+ UseWebSocketChannelReturn,
130
+ UseWebSocketOptions,
131
+ UseWebSocketReturn,
132
+ WebSocketHeartbeatConfig,
133
+ WebSocketReconnectConfig,
134
+ WebSocketSerializer,
135
+ WebSocketStatus,
136
+ } from './reactive/index';
137
+
138
+ // ============================================================================
139
+ // Component Module: Web Components helper with Shadow DOM
140
+ // ============================================================================
141
+ export {
142
+ bool,
143
+ component,
144
+ defineComponent,
145
+ html,
146
+ registerDefaultComponents,
147
+ safeHtml,
148
+ useComputed,
149
+ useEffect,
150
+ useSignal,
151
+ } from './component/index';
152
+ export type {
153
+ AttributeChange,
154
+ ComponentDefinition,
155
+ ComponentRenderContext,
156
+ ComponentSignalLike,
157
+ ComponentSignals,
158
+ ComponentStateKey,
159
+ DefaultComponentLibraryOptions,
160
+ PropDefinition,
161
+ RegisteredDefaultComponents,
162
+ ShadowMode,
163
+ } from './component/index';
164
+
165
+ // ============================================================================
166
+ // Motion Module: View transitions, FLIP animations, springs
167
+ // ============================================================================
168
+ export {
169
+ animate,
170
+ capturePosition,
171
+ easeInCubic,
172
+ easeInOutCubic,
173
+ easeInOutQuad,
174
+ easeInQuad,
175
+ easeOutBack,
176
+ easeOutCubic,
177
+ easeOutExpo,
178
+ easeOutQuad,
179
+ easingPresets,
180
+ flip,
181
+ flipElements,
182
+ flipList,
183
+ keyframePresets,
184
+ linear,
185
+ morphElement,
186
+ parallax,
187
+ prefersReducedMotion,
188
+ scrollAnimate,
189
+ sequence,
190
+ setReducedMotion,
191
+ spring,
192
+ springPresets,
193
+ stagger,
194
+ timeline,
195
+ transition,
196
+ typewriter,
197
+ } from './motion/index';
198
+ export type {
199
+ AnimateOptions,
200
+ EasingFunction,
201
+ ElementBounds,
202
+ FlipGroupOptions,
203
+ FlipOptions,
204
+ MorphOptions,
205
+ ParallaxCleanup,
206
+ ParallaxOptions,
207
+ ScrollAnimateCleanup,
208
+ ScrollAnimateOptions,
209
+ SequenceOptions,
210
+ SequenceStep,
211
+ Spring,
212
+ SpringConfig,
213
+ StaggerFunction,
214
+ StaggerOptions,
215
+ TimelineConfig,
216
+ TimelineControls,
217
+ TimelineStep,
218
+ TransitionOptions,
219
+ TypewriterControls,
220
+ TypewriterOptions,
221
+ } from './motion/index';
222
+
223
+ // ============================================================================
224
+ // Security Module: Sanitization, CSP compatibility, Trusted Types
225
+ // ============================================================================
226
+ export {
227
+ createTrustedHtml,
228
+ escapeHtml,
229
+ generateNonce,
230
+ getTrustedTypesPolicy,
231
+ hasCSPDirective,
232
+ isTrustedTypesSupported,
233
+ sanitize,
234
+ sanitizeHtml,
235
+ stripTags,
236
+ trusted,
237
+ } from './security/index';
238
+ export type { SanitizedHtml, SanitizeOptions, TrustedHtml } from './security/index';
239
+
240
+ // ============================================================================
241
+ // Platform Module: Storage, buckets, notifications, cache
242
+ // ============================================================================
243
+ export {
244
+ buckets,
245
+ cache,
246
+ defineBqueryConfig,
247
+ definePageMeta,
248
+ getBqueryConfig,
249
+ notifications,
250
+ storage,
251
+ useAnnouncer,
252
+ useCookie,
253
+ } from './platform/index';
254
+ export type {
255
+ AnnounceOptions,
256
+ AnnouncerHandle,
257
+ BqueryConfig,
258
+ Bucket,
259
+ CacheHandle,
260
+ IndexedDBOptions,
261
+ NotificationOptions,
262
+ PageMetaDefinition,
263
+ StorageAdapter,
264
+ UseAnnouncerOptions,
265
+ UseCookieOptions,
266
+ } from './platform/index';
267
+
268
+ // ============================================================================
269
+ // Router Module: SPA routing, navigation guards, lazy loading
270
+ // ============================================================================
271
+ export {
272
+ back,
273
+ BqLinkElement,
274
+ createRouter,
275
+ currentRoute,
276
+ forward,
277
+ interceptLinks,
278
+ isActive,
279
+ isActiveSignal,
280
+ isNavigating,
281
+ link,
282
+ navigate,
283
+ registerBqLink,
284
+ resolve,
285
+ useRoute,
286
+ } from './router/index';
287
+ export type {
288
+ NavigationGuard,
289
+ Route,
290
+ RouteDefinition,
291
+ Router,
292
+ RouterOptions,
293
+ UseRouteReturn,
294
+ } from './router/index';
295
+
296
+ // ============================================================================
297
+ // Store Module: Signal-based state management
298
+ // ============================================================================
299
+ export {
300
+ createPersistedStore,
301
+ createStore,
302
+ defineStore,
303
+ destroyStore,
304
+ getStore,
305
+ listStores,
306
+ mapActions,
307
+ mapGetters,
308
+ mapState,
309
+ registerPlugin,
310
+ watchStore,
311
+ } from './store/index';
312
+ export type {
313
+ ActionContext,
314
+ Actions,
315
+ Getters,
316
+ OnActionCallback,
317
+ PersistedStoreOptions,
318
+ StateFactory,
319
+ StorageBackend,
320
+ Store,
321
+ StoreDefinition,
322
+ StorePatch,
323
+ StorePlugin,
324
+ StoreSerializer,
325
+ StoreSubscriber,
326
+ } from './store/index';
327
+
328
+ // ============================================================================
329
+ // View Module: Declarative DOM bindings without compiler
330
+ // ============================================================================
331
+ export { createTemplate, mount } from './view/index';
332
+ export type { BindingContext, MountOptions, View } from './view/index';
333
+
334
+ // ============================================================================
335
+ // Forms Module: Reactive form handling and validation
336
+ // ============================================================================
337
+ export {
338
+ createForm,
339
+ custom,
340
+ customAsync,
341
+ email,
342
+ matchField,
343
+ max,
344
+ maxLength,
345
+ min,
346
+ minLength,
347
+ pattern,
348
+ required,
349
+ url,
350
+ useFormField,
351
+ } from './forms/index';
352
+ export type {
353
+ AsyncValidator,
354
+ CrossFieldValidator,
355
+ FieldConfig,
356
+ Form,
357
+ FormConfig,
358
+ FormErrors,
359
+ FormField,
360
+ FormFields,
361
+ FormFieldValidationMode,
362
+ SubmitHandler,
363
+ SyncValidator,
364
+ UseFormFieldOptions,
365
+ UseFormFieldReturn,
366
+ ValidationResult,
367
+ Validator,
368
+ } from './forms/index';
369
+
370
+ // ============================================================================
371
+ // i18n Module: Internationalization, translations, formatting
372
+ // ============================================================================
373
+ export { createI18n, formatDate, formatNumber } from './i18n/index';
374
+ export type {
375
+ DateFormatOptions,
376
+ I18nConfig,
377
+ I18nInstance,
378
+ LocaleLoader,
379
+ LocaleMessages,
380
+ Messages,
381
+ NumberFormatOptions,
382
+ TranslateParams,
383
+ } from './i18n/index';
384
+
385
+ // ============================================================================
386
+ // a11y Module: Accessibility utilities
387
+ // ============================================================================
388
+ // Note: prefersReducedMotion is not re-exported here to avoid naming conflict
389
+ // with the motion module's prefersReducedMotion(). Use @bquery/bquery/a11y for
390
+ // the reactive signal version.
391
+ export {
392
+ announceToScreenReader,
393
+ auditA11y,
394
+ clearAnnouncements,
395
+ getFocusableElements,
396
+ prefersColorScheme,
397
+ prefersContrast,
398
+ releaseFocus,
399
+ rovingTabIndex,
400
+ skipLink,
401
+ trapFocus,
402
+ } from './a11y/index';
403
+ export type {
404
+ AnnouncePriority,
405
+ AuditFinding,
406
+ AuditResult,
407
+ AuditSeverity,
408
+ ColorScheme,
409
+ ContrastPreference,
410
+ FocusTrapHandle,
411
+ RovingTabIndexHandle,
412
+ RovingTabIndexOptions,
413
+ SkipLinkHandle,
414
+ SkipLinkOptions,
415
+ TrapFocusOptions,
416
+ } from './a11y/index';
417
+
418
+ // ============================================================================
419
+ // DnD Module: Drag-and-drop, drop zones, sortable lists
420
+ // ============================================================================
421
+ export { draggable, droppable, sortable } from './dnd/index';
422
+ export type {
423
+ BoundsRect,
424
+ DragAxis,
425
+ DragBounds,
426
+ DragEventData,
427
+ DraggableHandle,
428
+ DraggableOptions,
429
+ DragPosition,
430
+ DropEventData,
431
+ DroppableHandle,
432
+ DroppableOptions,
433
+ SortableHandle,
434
+ SortableOptions,
435
+ SortEventData,
436
+ } from './dnd/index';
437
+
438
+ // ============================================================================
439
+ // Media Module: Reactive browser and device API signals
440
+ // ============================================================================
441
+ export {
442
+ breakpoints,
443
+ clipboard,
444
+ mediaQuery,
445
+ useBattery,
446
+ useDeviceMotion,
447
+ useDeviceOrientation,
448
+ useGeolocation,
449
+ useNetworkStatus,
450
+ useViewport,
451
+ } from './media/index';
452
+ export type {
453
+ BatteryState,
454
+ BreakpointMap,
455
+ ClipboardAPI,
456
+ DeviceMotionState,
457
+ DeviceOrientationState,
458
+ GeolocationOptions,
459
+ GeolocationState,
460
+ NetworkState,
461
+ ViewportState,
462
+ } from './media/index';
463
+
464
+ // ---------------------------------------------------------------------------
465
+ // Plugin module
466
+ // ---------------------------------------------------------------------------
467
+ export {
468
+ getCustomDirective,
469
+ getCustomDirectives,
470
+ getInstalledPlugins,
471
+ isInstalled,
472
+ resetPlugins,
473
+ use,
474
+ } from './plugin/index';
475
+ export type {
476
+ BQueryPlugin,
477
+ CustomDirective,
478
+ CustomDirectiveHandler,
479
+ PluginInstallContext,
480
+ } from './plugin/index';
481
+
482
+ // ---------------------------------------------------------------------------
483
+ // DevTools module
484
+ // ---------------------------------------------------------------------------
485
+ export {
486
+ clearTimeline,
487
+ enableDevtools,
488
+ generateSignalLabel,
489
+ getDevtoolsState,
490
+ getTimeline,
491
+ inspectComponents,
492
+ inspectSignals,
493
+ inspectStores,
494
+ isDevtoolsEnabled,
495
+ logComponents,
496
+ logSignals,
497
+ logStores,
498
+ logTimeline,
499
+ recordEvent,
500
+ trackSignal,
501
+ untrackSignal,
502
+ } from './devtools/index';
503
+ export type {
504
+ ComponentSnapshot,
505
+ DevtoolsOptions,
506
+ DevtoolsState,
507
+ SignalSnapshot,
508
+ StoreSnapshot,
509
+ TimelineEntry,
510
+ TimelineEventType,
511
+ } from './devtools/index';
512
+
513
+ // ---------------------------------------------------------------------------
514
+ // Testing module
515
+ // ---------------------------------------------------------------------------
516
+ export {
517
+ fireEvent,
518
+ flushEffects,
519
+ mockRouter,
520
+ mockSignal,
521
+ renderComponent,
522
+ waitFor,
523
+ } from './testing/index';
524
+ export type {
525
+ FireEventOptions,
526
+ MockRouter,
527
+ MockRouterOptions,
528
+ MockSignal,
529
+ RenderComponentOptions,
530
+ RenderResult,
531
+ TestRoute,
532
+ WaitForOptions,
533
+ } from './testing/index';
534
+
535
+ // ---------------------------------------------------------------------------
536
+ // SSR module
537
+ // ---------------------------------------------------------------------------
538
+ export {
539
+ deserializeStoreState,
540
+ hydrateMount,
541
+ hydrateStore,
542
+ hydrateStores,
543
+ renderToString,
544
+ serializeStoreState,
545
+ } from './ssr/index';
546
+ export type {
547
+ DeserializedStoreState,
548
+ HydrateMountOptions,
549
+ HydrationOptions,
550
+ RenderOptions,
551
+ SerializeOptions,
552
+ SerializeResult,
553
+ SSRResult,
554
+ } from './ssr/index';