@bquery/bquery 1.4.0 → 1.5.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.
Files changed (127) hide show
  1. package/README.md +139 -120
  2. package/dist/component/component.d.ts.map +1 -1
  3. package/dist/component/index.d.ts +2 -0
  4. package/dist/component/index.d.ts.map +1 -1
  5. package/dist/component/library.d.ts +34 -0
  6. package/dist/component/library.d.ts.map +1 -0
  7. package/dist/component/types.d.ts +10 -6
  8. package/dist/component/types.d.ts.map +1 -1
  9. package/dist/component-CY5MVoYN.js +531 -0
  10. package/dist/component-CY5MVoYN.js.map +1 -0
  11. package/dist/component.es.mjs +6 -184
  12. package/dist/config-DRmZZno3.js +40 -0
  13. package/dist/config-DRmZZno3.js.map +1 -0
  14. package/dist/core-CK2Mfpf4.js +648 -0
  15. package/dist/core-CK2Mfpf4.js.map +1 -0
  16. package/dist/core-DPdbItcq.js +112 -0
  17. package/dist/core-DPdbItcq.js.map +1 -0
  18. package/dist/core.es.mjs +45 -1261
  19. package/dist/full.d.ts +6 -6
  20. package/dist/full.d.ts.map +1 -1
  21. package/dist/full.es.mjs +98 -92
  22. package/dist/full.iife.js +173 -3
  23. package/dist/full.iife.js.map +1 -1
  24. package/dist/full.umd.js +173 -3
  25. package/dist/full.umd.js.map +1 -1
  26. package/dist/index.es.mjs +143 -139
  27. package/dist/motion/transition.d.ts +1 -1
  28. package/dist/motion/transition.d.ts.map +1 -1
  29. package/dist/motion/types.d.ts +11 -1
  30. package/dist/motion/types.d.ts.map +1 -1
  31. package/dist/motion-C5DRdPnO.js +415 -0
  32. package/dist/motion-C5DRdPnO.js.map +1 -0
  33. package/dist/motion.es.mjs +25 -361
  34. package/dist/object-qGpWr6-J.js +38 -0
  35. package/dist/object-qGpWr6-J.js.map +1 -0
  36. package/dist/platform/announcer.d.ts +59 -0
  37. package/dist/platform/announcer.d.ts.map +1 -0
  38. package/dist/platform/config.d.ts +92 -0
  39. package/dist/platform/config.d.ts.map +1 -0
  40. package/dist/platform/cookies.d.ts +45 -0
  41. package/dist/platform/cookies.d.ts.map +1 -0
  42. package/dist/platform/index.d.ts +8 -0
  43. package/dist/platform/index.d.ts.map +1 -1
  44. package/dist/platform/meta.d.ts +62 -0
  45. package/dist/platform/meta.d.ts.map +1 -0
  46. package/dist/platform-B7JhGBc7.js +361 -0
  47. package/dist/platform-B7JhGBc7.js.map +1 -0
  48. package/dist/platform.es.mjs +11 -248
  49. package/dist/reactive/async-data.d.ts +114 -0
  50. package/dist/reactive/async-data.d.ts.map +1 -0
  51. package/dist/reactive/index.d.ts +2 -2
  52. package/dist/reactive/index.d.ts.map +1 -1
  53. package/dist/reactive/signal.d.ts +2 -0
  54. package/dist/reactive/signal.d.ts.map +1 -1
  55. package/dist/reactive-BDya-ia8.js +253 -0
  56. package/dist/reactive-BDya-ia8.js.map +1 -0
  57. package/dist/reactive.es.mjs +18 -34
  58. package/dist/router-CijiICxt.js +188 -0
  59. package/dist/router-CijiICxt.js.map +1 -0
  60. package/dist/router.es.mjs +11 -200
  61. package/dist/sanitize-jyJ2ryE2.js +302 -0
  62. package/dist/sanitize-jyJ2ryE2.js.map +1 -0
  63. package/dist/security/constants.d.ts.map +1 -1
  64. package/dist/security.es.mjs +10 -56
  65. package/dist/store-CPK9E62U.js +262 -0
  66. package/dist/store-CPK9E62U.js.map +1 -0
  67. package/dist/store.es.mjs +12 -25
  68. package/dist/view-Cdi0g-qo.js +396 -0
  69. package/dist/view-Cdi0g-qo.js.map +1 -0
  70. package/dist/view.es.mjs +10 -430
  71. package/package.json +15 -11
  72. package/src/component/component.ts +319 -289
  73. package/src/component/index.ts +42 -40
  74. package/src/component/library.ts +504 -0
  75. package/src/component/types.ts +91 -85
  76. package/src/core/collection.ts +628 -628
  77. package/src/core/element.ts +774 -774
  78. package/src/core/index.ts +48 -48
  79. package/src/core/utils/function.ts +151 -151
  80. package/src/full.ts +223 -187
  81. package/src/motion/animate.ts +113 -113
  82. package/src/motion/flip.ts +176 -176
  83. package/src/motion/scroll.ts +57 -57
  84. package/src/motion/spring.ts +150 -150
  85. package/src/motion/timeline.ts +246 -246
  86. package/src/motion/transition.ts +53 -7
  87. package/src/motion/types.ts +208 -198
  88. package/src/platform/announcer.ts +208 -0
  89. package/src/platform/config.ts +163 -0
  90. package/src/platform/cookies.ts +165 -0
  91. package/src/platform/index.ts +39 -18
  92. package/src/platform/meta.ts +168 -0
  93. package/src/platform/storage.ts +215 -215
  94. package/src/reactive/async-data.ts +486 -0
  95. package/src/reactive/core.ts +114 -114
  96. package/src/reactive/effect.ts +54 -54
  97. package/src/reactive/index.ts +37 -23
  98. package/src/reactive/internals.ts +122 -122
  99. package/src/reactive/signal.ts +29 -20
  100. package/src/security/constants.ts +211 -209
  101. package/src/security/sanitize-core.ts +364 -364
  102. package/src/view/evaluate.ts +290 -290
  103. package/dist/batch-x7b2eZST.js +0 -13
  104. package/dist/batch-x7b2eZST.js.map +0 -1
  105. package/dist/component.es.mjs.map +0 -1
  106. package/dist/core-BhpuvPhy.js +0 -170
  107. package/dist/core-BhpuvPhy.js.map +0 -1
  108. package/dist/core.es.mjs.map +0 -1
  109. package/dist/full.es.mjs.map +0 -1
  110. package/dist/index.es.mjs.map +0 -1
  111. package/dist/motion.es.mjs.map +0 -1
  112. package/dist/persisted-DHoi3uEs.js +0 -278
  113. package/dist/persisted-DHoi3uEs.js.map +0 -1
  114. package/dist/platform.es.mjs.map +0 -1
  115. package/dist/reactive.es.mjs.map +0 -1
  116. package/dist/router.es.mjs.map +0 -1
  117. package/dist/sanitize-Cxvxa-DX.js +0 -283
  118. package/dist/sanitize-Cxvxa-DX.js.map +0 -1
  119. package/dist/security.es.mjs.map +0 -1
  120. package/dist/store.es.mjs.map +0 -1
  121. package/dist/type-guards-BdKlYYlS.js +0 -32
  122. package/dist/type-guards-BdKlYYlS.js.map +0 -1
  123. package/dist/untrack-DNnnqdlR.js +0 -6
  124. package/dist/untrack-DNnnqdlR.js.map +0 -1
  125. package/dist/view.es.mjs.map +0 -1
  126. package/dist/watch-DXXv3iAI.js +0 -58
  127. package/dist/watch-DXXv3iAI.js.map +0 -1
package/dist/view.es.mjs CHANGED
@@ -1,432 +1,12 @@
1
- import { a as z, i as V, e as E } from "./type-guards-BdKlYYlS.js";
2
- import { s as P } from "./core-BhpuvPhy.js";
3
- import { c as ye } from "./core-BhpuvPhy.js";
4
- import { s as Z } from "./sanitize-Cxvxa-DX.js";
5
- import { b as ge } from "./batch-x7b2eZST.js";
6
- const N = 500;
7
- class D {
8
- constructor(e) {
9
- this.cache = /* @__PURE__ */ new Map(), this.maxSize = e;
10
- }
11
- get(e) {
12
- const s = this.cache.get(e);
13
- return s !== void 0 && (this.cache.delete(e), this.cache.set(e, s)), s;
14
- }
15
- set(e, s) {
16
- if (this.cache.has(e))
17
- this.cache.delete(e);
18
- else if (this.cache.size >= this.maxSize) {
19
- const r = this.cache.keys().next().value;
20
- r !== void 0 && this.cache.delete(r);
21
- }
22
- this.cache.set(e, s);
23
- }
24
- clear() {
25
- this.cache.clear();
26
- }
27
- get size() {
28
- return this.cache.size;
29
- }
30
- }
31
- const I = new D(N), O = new D(N), de = () => {
32
- I.clear(), O.clear();
33
- }, U = (n) => new Proxy(n, {
34
- get(e, s) {
35
- if (typeof s != "string")
36
- return Reflect.get(e, s);
37
- const r = e[s];
38
- return z(r) || V(r) ? r.value : r;
39
- },
40
- has(e, s) {
41
- return typeof s != "string" ? Reflect.has(e, s) : s in e;
42
- }
43
- }), y = (n, e) => {
44
- try {
45
- const s = U(e);
46
- let r = I.get(n);
47
- return r || (r = new Function("$ctx", `with($ctx) { return (${n}); }`), I.set(n, r)), r(s);
48
- } catch (s) {
49
- console.error(`bQuery view: Error evaluating "${n}"`, s);
50
- return;
51
- }
52
- }, M = (n, e) => {
53
- try {
54
- let s = O.get(n);
55
- return s || (s = new Function("$ctx", `with($ctx) { return (${n}); }`), O.set(n, s)), s(e);
56
- } catch (s) {
57
- console.error(`bQuery view: Error evaluating "${n}"`, s);
58
- return;
59
- }
60
- }, _ = (n) => {
61
- const e = {}, s = n.trim().replace(/^\{|\}$/g, "").trim();
62
- if (!s) return e;
63
- const r = [];
64
- let t = "", l = 0, i = null;
65
- for (let c = 0; c < s.length; c++) {
66
- const o = s[c];
67
- if (o === '"' || o === "'" || o === "`") {
68
- let a = 0, u = c - 1;
69
- for (; u >= 0 && s[u] === "\\"; )
70
- a++, u--;
71
- a % 2 === 0 && (i === null ? i = o : i === o && (i = null)), t += o;
72
- continue;
73
- }
74
- if (i !== null) {
75
- t += o;
76
- continue;
77
- }
78
- o === "(" || o === "[" || o === "{" ? (l++, t += o) : o === ")" || o === "]" || o === "}" ? (l--, t += o) : o === "," && l === 0 ? (r.push(t.trim()), t = "") : t += o;
79
- }
80
- t.trim() && r.push(t.trim());
81
- for (const c of r) {
82
- let o = -1, a = 0, u = null;
83
- for (let h = 0; h < c.length; h++) {
84
- const f = c[h];
85
- if (f === '"' || f === "'" || f === "`") {
86
- let q = 0, S = h - 1;
87
- for (; S >= 0 && c[S] === "\\"; )
88
- q++, S--;
89
- q % 2 === 0 && (u === null ? u = f : u === f && (u = null));
90
- continue;
91
- }
92
- if (u === null) {
93
- if (f === "(" || f === "[" || f === "{")
94
- a++;
95
- else if (f === ")" || f === "]" || f === "}")
96
- a--;
97
- else if (f === ":" && a === 0) {
98
- o = h;
99
- break;
100
- }
101
- }
102
- }
103
- if (o > -1) {
104
- const h = c.slice(0, o).trim().replace(/^['"]|['"]$/g, ""), f = c.slice(o + 1).trim();
105
- e[h] = f;
106
- }
107
- }
108
- return e;
109
- }, X = (n) => (e, s, r, t) => {
110
- const l = E(() => {
111
- const i = y(s, r);
112
- i == null || i === !1 ? e.removeAttribute(n) : i === !0 ? e.setAttribute(n, "") : e.setAttribute(n, String(i));
113
- });
114
- t.push(l);
115
- }, G = (n, e, s, r) => {
116
- let t = /* @__PURE__ */ new Set();
117
- const l = E(() => {
118
- const i = /* @__PURE__ */ new Set();
119
- if (e.trimStart().startsWith("{")) {
120
- const c = _(e);
121
- for (const [o, a] of Object.entries(c)) {
122
- const u = y(a, s);
123
- n.classList.toggle(o, !!u), i.add(o);
124
- }
125
- } else if (/^\s*\[/.test(e)) {
126
- const c = y(e, s);
127
- if (Array.isArray(c))
128
- for (const o of c)
129
- o && (n.classList.add(o), i.add(o));
130
- } else {
131
- const c = y(e, s);
132
- typeof c == "string" ? c.split(/\s+/).forEach((o) => {
133
- o && (n.classList.add(o), i.add(o));
134
- }) : Array.isArray(c) && c.forEach((o) => {
135
- o && (n.classList.add(o), i.add(o));
136
- });
137
- }
138
- for (const c of t)
139
- i.has(c) || n.classList.remove(c);
140
- t = i;
141
- });
142
- r.push(l);
143
- }, J = (n, e, s, r, t, l) => {
144
- if (!s)
145
- return e;
146
- const i = {
147
- ...l,
148
- [r]: n
149
- };
150
- return t && (i[t] = e), y(s, i);
151
- }, Y = (n) => {
152
- const { prefix: e, processElement: s, processChildren: r } = n;
153
- return (t, l, i, c) => {
154
- const o = t.parentNode;
155
- if (!o) return;
156
- const a = l.match(/^\(?(\w+)(?:\s*,\s*(\w+))?\)?\s+in\s+(\S.*)$/);
157
- if (!a) {
158
- console.error(`bQuery view: Invalid bq-for expression "${l}"`);
159
- return;
160
- }
161
- const [, u, h, f] = a, q = t.getAttribute(":key") || t.getAttribute(`${e}-key`), S = t.cloneNode(!0);
162
- S.removeAttribute(`${e}-for`), S.removeAttribute(":key"), S.removeAttribute(`${e}-key`);
163
- const Q = document.createComment(`bq-for: ${l}`);
164
- o.replaceChild(Q, t);
165
- let C = /* @__PURE__ */ new Map(), j = [];
166
- const F = (d, p, w) => {
167
- const A = S.cloneNode(!0), k = [], L = P(d), $ = h ? P(p) : null, m = {
168
- ...i,
169
- [u]: L
170
- };
171
- return h && $ && (m[h] = $), s(A, m, e, k), r(A, m, e, k), {
172
- key: w,
173
- element: A,
174
- cleanups: k,
175
- item: d,
176
- index: p,
177
- itemSignal: L,
178
- indexSignal: $
179
- };
180
- }, R = (d) => {
181
- for (const p of d.cleanups)
182
- p();
183
- d.element.remove();
184
- }, K = (d, p, w) => {
185
- Object.is(d.item, p) || (d.item = p, d.itemSignal.value = p), d.index !== w && (d.index = w, d.indexSignal && (d.indexSignal.value = w));
186
- }, B = E(() => {
187
- const d = y(f, i);
188
- if (!Array.isArray(d)) {
189
- for (const m of C.values())
190
- R(m);
191
- C.clear(), j = [];
192
- return;
193
- }
194
- const p = [], w = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Set();
195
- d.forEach((m, v) => {
196
- let b = J(m, v, q, u, h, i);
197
- A.has(b) && (console.warn(
198
- `bq-for: Duplicate key "${String(b)}" detected at index ${v}. Falling back to index-based key for this item. Ensure :key expressions produce unique values for each item.`
199
- ), b = { __bqDuplicateKey: b, __bqIndex: v }), A.add(b), p.push(b), w.set(b, { item: m, index: v });
200
- });
201
- const k = [];
202
- for (const m of j)
203
- w.has(m) || k.push(m);
204
- for (const m of k) {
205
- const v = C.get(m);
206
- v && (R(v), C.delete(m));
207
- }
208
- const L = /* @__PURE__ */ new Map();
209
- let $ = Q;
210
- for (let m = 0; m < p.length; m++) {
211
- const v = p[m], { item: b, index: H } = w.get(v);
212
- let g = C.get(v);
213
- g ? (K(g, b, H), L.set(v, g), $.nextSibling !== g.element && $.after(g.element), $ = g.element) : (g = F(b, H, v), L.set(v, g), $.after(g.element), $ = g.element);
214
- }
215
- C = L, j = p;
216
- });
217
- c.push(() => {
218
- B();
219
- for (const d of C.values())
220
- for (const p of d.cleanups)
221
- p();
222
- C.clear();
223
- });
224
- };
225
- }, x = (n) => (e, s, r, t) => {
226
- const l = E(() => {
227
- const i = y(s, r), c = String(i ?? "");
228
- e.innerHTML = n ? Z(c) : c;
229
- });
230
- t.push(l);
231
- }, ee = (n, e, s, r) => {
232
- const t = document.createComment(`bq-if: ${e}`);
233
- let l = !0;
234
- const i = E(() => {
235
- const c = y(e, s);
236
- c && !l ? (t.replaceWith(n), l = !0) : !c && l && (n.replaceWith(t), l = !1);
237
- });
238
- r.push(i);
239
- }, te = (n, e, s, r) => {
240
- const t = n, l = M(e, s);
241
- if (!z(l)) {
242
- console.warn(`bQuery view: bq-model requires a signal, got "${e}"`);
243
- return;
244
- }
245
- const i = l, c = t.type === "checkbox", o = t.type === "radio", a = () => {
246
- c ? t.checked = !!i.value : o ? t.checked = i.value === t.value : t.value = String(i.value ?? "");
247
- }, u = E(() => {
248
- a();
249
- });
250
- r.push(u);
251
- const h = t.tagName === "SELECT" ? "change" : "input", f = () => {
252
- c ? i.value = t.checked : o ? t.checked && (i.value = t.value) : i.value = t.value;
253
- };
254
- t.addEventListener(h, f), r.push(() => t.removeEventListener(h, f));
255
- }, ne = (n) => (e, s, r, t) => {
256
- const l = (i) => {
257
- const c = { ...r, $event: i, $el: e };
258
- if (!s.includes("(")) {
259
- const a = M(s, c);
260
- if (typeof a == "function") {
261
- a(i);
262
- return;
263
- }
264
- return;
265
- }
266
- M(s, c);
267
- };
268
- e.addEventListener(n, l), t.push(() => e.removeEventListener(n, l));
269
- };
270
- function se(n) {
271
- const e = Object.getOwnPropertyDescriptor(n, "value");
272
- return e ? "value" in e ? e.writable === !0 : typeof e.set == "function" : !1;
273
- }
274
- const re = (n, e, s, r) => {
275
- const t = M(
276
- e,
277
- s
278
- );
279
- z(t) ? (t.value = n, r.push(() => {
280
- t.value = null;
281
- })) : typeof t == "object" && t !== null && se(t) && (t.value = n, r.push(() => {
282
- t.value = null;
283
- }));
284
- }, oe = (n, e, s, r) => {
285
- const t = n;
286
- let l = t.style.display;
287
- if (!l || l === "none") {
288
- const c = t.ownerDocument.defaultView?.getComputedStyle(t).display ?? "";
289
- l = c !== "none" ? c : "";
290
- }
291
- const i = E(() => {
292
- const c = y(e, s);
293
- t.style.display = c ? l : "none";
294
- });
295
- r.push(i);
296
- }, ie = (n, e, s, r) => {
297
- const t = n;
298
- let l = /* @__PURE__ */ new Set();
299
- const i = E(() => {
300
- const c = /* @__PURE__ */ new Set();
301
- if (e.trimStart().startsWith("{")) {
302
- const o = _(e);
303
- for (const [a, u] of Object.entries(o)) {
304
- const h = y(u, s), f = a.replace(/([A-Z])/g, "-$1").toLowerCase();
305
- t.style.setProperty(f, String(h ?? "")), c.add(f);
306
- }
307
- } else {
308
- const o = y(e, s);
309
- if (o && typeof o == "object")
310
- for (const [a, u] of Object.entries(o)) {
311
- const h = a.replace(/([A-Z])/g, "-$1").toLowerCase();
312
- t.style.setProperty(h, String(u ?? "")), c.add(h);
313
- }
314
- }
315
- for (const o of l)
316
- c.has(o) || t.style.removeProperty(o);
317
- l = c;
318
- });
319
- r.push(i);
320
- }, ce = (n, e, s, r) => {
321
- const t = E(() => {
322
- const l = y(e, s);
323
- n.textContent = String(l ?? "");
324
- });
325
- r.push(t);
326
- }, W = (n, e, s, r, t) => {
327
- const l = Array.from(n.attributes);
328
- for (const i of l) {
329
- const { name: c, value: o } = i;
330
- if (!c.startsWith(`${s}-`)) continue;
331
- const a = c.slice(s.length + 1);
332
- if (a === "for") {
333
- t.for(n, o, e, r);
334
- return;
335
- }
336
- if (a === "text")
337
- t.text(n, o, e, r);
338
- else if (a === "html")
339
- t.html(n, o, e, r);
340
- else if (a === "if")
341
- t.if(n, o, e, r);
342
- else if (a === "show")
343
- t.show(n, o, e, r);
344
- else if (a === "class")
345
- t.class(n, o, e, r);
346
- else if (a === "style")
347
- t.style(n, o, e, r);
348
- else if (a === "model")
349
- t.model(n, o, e, r);
350
- else if (a === "ref")
351
- t.ref(n, o, e, r);
352
- else if (a.startsWith("bind:")) {
353
- const u = a.slice(5);
354
- t.bind(u)(n, o, e, r);
355
- } else if (a.startsWith("on:")) {
356
- const u = a.slice(3);
357
- t.on(u)(n, o, e, r);
358
- }
359
- }
360
- }, T = (n, e, s, r, t) => {
361
- const l = Array.from(n.children);
362
- for (const i of l)
363
- i.hasAttribute(`${s}-for`) ? W(i, e, s, r, t) : (W(i, e, s, r, t), T(i, e, s, r, t));
364
- }, le = (n, e, s = {}) => {
365
- const { prefix: r = "bq", sanitize: t = !0 } = s, l = typeof n == "string" ? document.querySelector(n) : n;
366
- if (!l)
367
- throw new Error(`bQuery view: Element "${n}" not found.`);
368
- if (l.hasAttribute(`${r}-for`))
369
- throw new Error(
370
- `bQuery view: Cannot mount on element with ${r}-for directive. Wrap the ${r}-for element in a container instead.`
371
- );
372
- const i = [], c = {
373
- text: ce,
374
- html: x(t),
375
- if: ee,
376
- show: oe,
377
- class: G,
378
- style: ie,
379
- model: te,
380
- ref: re,
381
- for: Y({
382
- prefix: r,
383
- processElement: (a, u, h, f) => W(a, u, h, f, c),
384
- processChildren: (a, u, h, f) => T(a, u, h, f, c)
385
- }),
386
- bind: X,
387
- on: ne
388
- };
389
- return ((a, u, h) => {
390
- const f = a.hasAttribute(`${r}-for`);
391
- W(a, u, r, h, c), f || T(a, u, r, h, c);
392
- })(l, e, i), {
393
- el: l,
394
- context: e,
395
- update: (a) => {
396
- Object.assign(e, a);
397
- },
398
- destroy: () => {
399
- for (const a of i)
400
- a();
401
- i.length = 0;
402
- }
403
- };
404
- }, me = (n, e = {}) => (s) => {
405
- const r = document.createElement("div");
406
- r.innerHTML = n.trim();
407
- const t = r.firstElementChild;
408
- if (!t)
409
- throw new Error("bQuery view: Template must contain a single root element.");
410
- if (r.childElementCount > 1)
411
- throw new Error(
412
- `bQuery view: Template must contain exactly one root element, found ${r.childElementCount}.`
413
- );
414
- const { prefix: l = "bq" } = e;
415
- if (t.hasAttribute(`${l}-for`) || t.hasAttribute(`${l}-if`)) {
416
- const i = t.hasAttribute(`${l}-for`) ? "for" : "if";
417
- throw new Error(
418
- `bQuery view: Template root element cannot have ${l}-${i} directive. Wrap the ${l}-${i} element in a container instead.`
419
- );
420
- }
421
- return le(t, s, e);
422
- };
1
+ import { n as r, r as e } from "./core-DPdbItcq.js";
2
+ import { f as o, p as s } from "./reactive-BDya-ia8.js";
3
+ import { n as p, r as c, t as f } from "./view-Cdi0g-qo.js";
423
4
  export {
424
- ge as batch,
425
- de as clearExpressionCache,
426
- ye as computed,
427
- me as createTemplate,
428
- E as effect,
429
- le as mount,
430
- P as signal
5
+ s as batch,
6
+ c as clearExpressionCache,
7
+ o as computed,
8
+ f as createTemplate,
9
+ e as effect,
10
+ p as mount,
11
+ r as signal
431
12
  };
432
- //# sourceMappingURL=view.es.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bquery/bquery",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "The jQuery for the Modern Web Platform - Zero build, TypeScript-first library with reactivity, components, and motion",
5
5
  "type": "module",
6
6
  "main": "./dist/full.umd.js",
@@ -67,7 +67,8 @@
67
67
  "dev": "vitepress dev docs",
68
68
  "build:docs": "vitepress build docs",
69
69
  "preview": "vitepress preview docs",
70
- "playground": "vite dev playground",
70
+ "storybook": "storybook dev -p 6006",
71
+ "build:storybook": "storybook build",
71
72
  "build": "bun run build:lib && bun run build:umd && bun run build:types",
72
73
  "build:lib": "vite build",
73
74
  "build:umd": "vite build --config vite.umd.config.ts",
@@ -115,18 +116,21 @@
115
116
  "node": ">=18.0.0"
116
117
  },
117
118
  "devDependencies": {
118
- "@typescript-eslint/eslint-plugin": "^8.55.0",
119
- "@typescript-eslint/parser": "^8.55.0",
120
- "bun-types": "^1.3.9",
121
- "eslint": "^9.39.2",
119
+ "@storybook/addon-docs": "^10.2.17",
120
+ "@storybook/web-components-vite": "^10.2.17",
121
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
122
+ "@typescript-eslint/parser": "^8.57.0",
123
+ "bun-types": "^1.3.10",
124
+ "eslint": "^10.0.3",
122
125
  "eslint-config-prettier": "^10.1.8",
123
- "globals": "^17.3.0",
124
- "happy-dom": "^20.6.0",
126
+ "globals": "^17.4.0",
127
+ "happy-dom": "^20.8.3",
125
128
  "prettier": "^3.8.1",
126
- "rimraf": "^6.1.2",
127
- "typedoc": "^0.28.16",
129
+ "rimraf": "^6.1.3",
130
+ "storybook": "^10.2.17",
131
+ "typedoc": "^0.28.17",
128
132
  "typescript": "^5.9.3",
129
- "vite": "^7.3.1",
133
+ "vite": "^8.0.0",
130
134
  "vitepress": "^1.6.4"
131
135
  }
132
136
  }