sibujs 4.14.0 → 4.14.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 (65) hide show
  1. package/dist/browser.cjs +1 -1
  2. package/dist/browser.js +4 -4
  3. package/dist/build.cjs +1 -1
  4. package/dist/build.js +12 -12
  5. package/dist/cdn.dev.global.js +1 -1
  6. package/dist/cdn.full.dev.global.js +1 -1
  7. package/dist/cdn.full.global.js +1 -1
  8. package/dist/cdn.global.js +1 -1
  9. package/dist/{chunk-HQIAL7F2.js → chunk-3T7TWMSD.js} +1 -1
  10. package/dist/{chunk-RVR5NPFL.js → chunk-4XCWNGRY.js} +1 -1
  11. package/dist/{chunk-F67F77IA.js → chunk-55TAOW5M.js} +1 -1
  12. package/dist/{chunk-SVULV7O4.js → chunk-B2NLNZ3E.js} +4 -4
  13. package/dist/{chunk-4FJSAUKB.js → chunk-FCWOMATN.js} +1 -1
  14. package/dist/{chunk-AE32RGWX.js → chunk-FFXZ6ELZ.js} +2 -2
  15. package/dist/{chunk-GVAMIU6K.js → chunk-KTJC7QPA.js} +2 -2
  16. package/dist/{chunk-VM2U5LEL.js → chunk-L2IPKGUJ.js} +6 -6
  17. package/dist/{chunk-MIRKTVH4.js → chunk-LAHX7XFG.js} +1 -1
  18. package/dist/{chunk-TLS4NVIB.js → chunk-LJ2LR5P4.js} +4 -4
  19. package/dist/{chunk-2TTRW2TE.js → chunk-LUZXFMKH.js} +4 -4
  20. package/dist/{chunk-QS6GMWDD.js → chunk-LZKKMDQF.js} +10 -10
  21. package/dist/{chunk-Y4LUM2XS.js → chunk-NIHGSXOX.js} +3 -3
  22. package/dist/{chunk-BNXRWZZV.js → chunk-OLMZF4RU.js} +5 -5
  23. package/dist/{chunk-CCKUNHVU.js → chunk-OPRQW4LI.js} +1 -1
  24. package/dist/{chunk-UUIKJJIK.js → chunk-RBRITLFL.js} +3 -3
  25. package/dist/{chunk-BOYKGGVD.js → chunk-TOV4PN3P.js} +2 -2
  26. package/dist/{chunk-JTFQ7IL4.js → chunk-TS6JDK7Y.js} +5 -5
  27. package/dist/{chunk-A454RAEK.js → chunk-TZNR6E6D.js} +2 -2
  28. package/dist/{chunk-4TQDTWWN.js → chunk-VIAVYBNQ.js} +3 -3
  29. package/dist/{chunk-BKZ5N6NK.js → chunk-WFMMSMA5.js} +3 -3
  30. package/dist/{chunk-CNPT6NKV.js → chunk-YIXMS546.js} +43 -1
  31. package/dist/{chunk-7ILEHTVX.js → chunk-YPLQQTWS.js} +1 -1
  32. package/dist/{chunk-CJ7KS3DF.js → chunk-ZKI4SDZ2.js} +2 -2
  33. package/dist/{chunk-N7A6FKWW.js → chunk-ZYK4NZZA.js} +2 -2
  34. package/dist/data.cjs +1 -1
  35. package/dist/data.js +5 -5
  36. package/dist/devtools.cjs +1 -1
  37. package/dist/devtools.js +4 -4
  38. package/dist/ecosystem.cjs +1 -1
  39. package/dist/ecosystem.js +7 -7
  40. package/dist/extras.cjs +46 -4
  41. package/dist/extras.js +22 -22
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.js +12 -12
  44. package/dist/motion.cjs +1 -1
  45. package/dist/motion.js +3 -3
  46. package/dist/patterns.cjs +1 -1
  47. package/dist/patterns.js +5 -5
  48. package/dist/performance.cjs +1 -1
  49. package/dist/performance.js +6 -6
  50. package/dist/plugins.cjs +46 -4
  51. package/dist/plugins.js +11 -11
  52. package/dist/{ssr-NECEU4X4.js → ssr-HHU3DAD2.js} +3 -3
  53. package/dist/ssr-dom.cjs +43 -1
  54. package/dist/ssr-dom.d.cts +2 -0
  55. package/dist/ssr-dom.d.ts +2 -0
  56. package/dist/ssr-dom.js +1 -1
  57. package/dist/ssr.cjs +44 -2
  58. package/dist/ssr.js +11 -11
  59. package/dist/testing.cjs +44 -2
  60. package/dist/testing.js +9 -9
  61. package/dist/ui.cjs +1 -1
  62. package/dist/ui.js +7 -7
  63. package/dist/widgets.cjs +1 -1
  64. package/dist/widgets.js +6 -6
  65. package/package.json +1 -1
package/dist/ssr.cjs CHANGED
@@ -1000,7 +1000,7 @@ function forEachSubscriber(signal2, visit) {
1000
1000
  }
1001
1001
 
1002
1002
  // src/reactivity/track.ts
1003
- var _runtimeVersion = true ? "4.14.0" : "dev";
1003
+ var _runtimeVersion = true ? "4.14.1" : "dev";
1004
1004
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
1005
1005
  function resolveReactiveApi() {
1006
1006
  const g2 = globalThis;
@@ -2888,9 +2888,15 @@ var ServerAttr = class {
2888
2888
  get nodeValue() {
2889
2889
  return this._value;
2890
2890
  }
2891
+ set nodeValue(v) {
2892
+ this.value = v;
2893
+ }
2891
2894
  get textContent() {
2892
2895
  return this._value;
2893
2896
  }
2897
+ set textContent(v) {
2898
+ this.value = v;
2899
+ }
2894
2900
  };
2895
2901
  var ServerNamedNodeMap = class extends Array {
2896
2902
  static get [Symbol.species]() {
@@ -3438,6 +3444,10 @@ var ServerInputElement = class extends ServerHTMLElement {
3438
3444
  get defaultChecked() {
3439
3445
  return this.hasAttribute("checked");
3440
3446
  }
3447
+ /** Reflects to the `checked` attribute; `checked` follows it until written (dirty checkedness). */
3448
+ set defaultChecked(v) {
3449
+ this.toggleAttribute("checked", !!v);
3450
+ }
3441
3451
  get type() {
3442
3452
  return (this.getAttribute("type") ?? "text").toLowerCase();
3443
3453
  }
@@ -3495,8 +3505,10 @@ reflectDisabled(ServerTextAreaElement.prototype);
3495
3505
  var ServerOptionElement = class extends ServerHTMLElement {
3496
3506
  constructor() {
3497
3507
  super(...arguments);
3498
- /** @internal */
3508
+ /** Selectedness; `null` while it follows the `selected` attribute. @internal */
3499
3509
  this._selected = null;
3510
+ /** Set by a `selected` write: the attribute no longer decides selectedness. @internal */
3511
+ this._dirty = false;
3500
3512
  }
3501
3513
  get value() {
3502
3514
  return this.getAttribute("value") ?? this.text;
@@ -3513,18 +3525,48 @@ var ServerOptionElement = class extends ServerHTMLElement {
3513
3525
  get label() {
3514
3526
  return this.getAttribute("label") ?? this.text;
3515
3527
  }
3528
+ set label(v) {
3529
+ this.setAttribute("label", v);
3530
+ }
3516
3531
  get selected() {
3517
3532
  return this._selected ?? this.hasAttribute("selected");
3518
3533
  }
3519
3534
  set selected(v) {
3520
3535
  this._selected = !!v;
3536
+ this._dirty = true;
3537
+ const select2 = singleSelectOf(this);
3538
+ if (select2 && v) {
3539
+ for (const o of select2.options) if (o !== this) o._selected = false;
3540
+ }
3521
3541
  }
3522
3542
  get defaultSelected() {
3523
3543
  return this.hasAttribute("selected");
3524
3544
  }
3545
+ /** Reflects to the `selected` attribute; `selected` follows it unless written. */
3546
+ set defaultSelected(v) {
3547
+ this.toggleAttribute("selected", !!v);
3548
+ if (this._dirty) return;
3549
+ this._selected = null;
3550
+ const select2 = singleSelectOf(this);
3551
+ if (!select2) return;
3552
+ let last = null;
3553
+ for (const o of select2.options) if (o.selected) last = o;
3554
+ for (const o of select2.options) if (o !== last && o.selected) o._selected = false;
3555
+ }
3525
3556
  };
3557
+ function singleSelectOf(option2) {
3558
+ let parent = option2.parentNode;
3559
+ if (parent instanceof ServerElement && parent.localName === "optgroup") parent = parent.parentNode;
3560
+ return parent instanceof ServerSelectElement && !parent.hasAttribute("multiple") ? parent : null;
3561
+ }
3526
3562
  reflectDisabled(ServerOptionElement.prototype);
3527
3563
  var ServerSelectElement = class extends ServerHTMLElement {
3564
+ get multiple() {
3565
+ return this.hasAttribute("multiple");
3566
+ }
3567
+ set multiple(v) {
3568
+ this.toggleAttribute("multiple", !!v);
3569
+ }
3528
3570
  get options() {
3529
3571
  return this.querySelectorAll("option");
3530
3572
  }
package/dist/ssr.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  renderRoute
3
- } from "./chunk-GVAMIU6K.js";
3
+ } from "./chunk-KTJC7QPA.js";
4
4
  import {
5
5
  isPrerendering,
6
6
  prerenderRoute,
7
7
  prerenderWait
8
- } from "./chunk-VM2U5LEL.js";
8
+ } from "./chunk-L2IPKGUJ.js";
9
9
  import {
10
10
  Head,
11
11
  clearWasmCache,
@@ -31,9 +31,9 @@ import {
31
31
  wasm,
32
32
  worker,
33
33
  workerFn
34
- } from "./chunk-BNXRWZZV.js";
34
+ } from "./chunk-OLMZF4RU.js";
35
35
  import "./chunk-52XFPGSN.js";
36
- import "./chunk-7ILEHTVX.js";
36
+ import "./chunk-YPLQQTWS.js";
37
37
  import {
38
38
  ADOPT_ID_ATTR,
39
39
  DEFAULT_SETTLE_TIMEOUT,
@@ -67,20 +67,20 @@ import {
67
67
  ssrSuspense,
68
68
  suspenseSwapScript,
69
69
  trustHTML
70
- } from "./chunk-BOYKGGVD.js";
71
- import "./chunk-CNPT6NKV.js";
70
+ } from "./chunk-TOV4PN3P.js";
71
+ import "./chunk-YIXMS546.js";
72
72
  import "./chunk-LJMX4SQ7.js";
73
73
  import "./chunk-3HZOSMPX.js";
74
74
  import "./chunk-62BDYGAG.js";
75
- import "./chunk-CJ7KS3DF.js";
76
- import "./chunk-HQIAL7F2.js";
75
+ import "./chunk-ZKI4SDZ2.js";
76
+ import "./chunk-3T7TWMSD.js";
77
77
  import "./chunk-RVWJGWCL.js";
78
78
  import "./chunk-7ZHH77QA.js";
79
- import "./chunk-AE32RGWX.js";
79
+ import "./chunk-FFXZ6ELZ.js";
80
80
  import "./chunk-B3HOT4TK.js";
81
81
  import "./chunk-UYTYNCMZ.js";
82
- import "./chunk-4FJSAUKB.js";
83
- import "./chunk-MIRKTVH4.js";
82
+ import "./chunk-FCWOMATN.js";
83
+ import "./chunk-LAHX7XFG.js";
84
84
  import "./chunk-S37PZD6I.js";
85
85
  import "./chunk-NT3ZYB5S.js";
86
86
  import "./chunk-R5U7XKVJ.js";
package/dist/testing.cjs CHANGED
@@ -985,7 +985,7 @@ function forEachSubscriber(signal2, visit) {
985
985
  }
986
986
 
987
987
  // src/reactivity/track.ts
988
- var _runtimeVersion = true ? "4.14.0" : "dev";
988
+ var _runtimeVersion = true ? "4.14.1" : "dev";
989
989
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
990
990
  function resolveReactiveApi() {
991
991
  const g = globalThis;
@@ -6752,9 +6752,15 @@ var ServerAttr = class {
6752
6752
  get nodeValue() {
6753
6753
  return this._value;
6754
6754
  }
6755
+ set nodeValue(v) {
6756
+ this.value = v;
6757
+ }
6755
6758
  get textContent() {
6756
6759
  return this._value;
6757
6760
  }
6761
+ set textContent(v) {
6762
+ this.value = v;
6763
+ }
6758
6764
  };
6759
6765
  var ServerNamedNodeMap = class extends Array {
6760
6766
  static get [Symbol.species]() {
@@ -7302,6 +7308,10 @@ var ServerInputElement = class extends ServerHTMLElement {
7302
7308
  get defaultChecked() {
7303
7309
  return this.hasAttribute("checked");
7304
7310
  }
7311
+ /** Reflects to the `checked` attribute; `checked` follows it until written (dirty checkedness). */
7312
+ set defaultChecked(v) {
7313
+ this.toggleAttribute("checked", !!v);
7314
+ }
7305
7315
  get type() {
7306
7316
  return (this.getAttribute("type") ?? "text").toLowerCase();
7307
7317
  }
@@ -7359,8 +7369,10 @@ reflectDisabled(ServerTextAreaElement.prototype);
7359
7369
  var ServerOptionElement = class extends ServerHTMLElement {
7360
7370
  constructor() {
7361
7371
  super(...arguments);
7362
- /** @internal */
7372
+ /** Selectedness; `null` while it follows the `selected` attribute. @internal */
7363
7373
  this._selected = null;
7374
+ /** Set by a `selected` write: the attribute no longer decides selectedness. @internal */
7375
+ this._dirty = false;
7364
7376
  }
7365
7377
  get value() {
7366
7378
  return this.getAttribute("value") ?? this.text;
@@ -7377,18 +7389,48 @@ var ServerOptionElement = class extends ServerHTMLElement {
7377
7389
  get label() {
7378
7390
  return this.getAttribute("label") ?? this.text;
7379
7391
  }
7392
+ set label(v) {
7393
+ this.setAttribute("label", v);
7394
+ }
7380
7395
  get selected() {
7381
7396
  return this._selected ?? this.hasAttribute("selected");
7382
7397
  }
7383
7398
  set selected(v) {
7384
7399
  this._selected = !!v;
7400
+ this._dirty = true;
7401
+ const select = singleSelectOf(this);
7402
+ if (select && v) {
7403
+ for (const o of select.options) if (o !== this) o._selected = false;
7404
+ }
7385
7405
  }
7386
7406
  get defaultSelected() {
7387
7407
  return this.hasAttribute("selected");
7388
7408
  }
7409
+ /** Reflects to the `selected` attribute; `selected` follows it unless written. */
7410
+ set defaultSelected(v) {
7411
+ this.toggleAttribute("selected", !!v);
7412
+ if (this._dirty) return;
7413
+ this._selected = null;
7414
+ const select = singleSelectOf(this);
7415
+ if (!select) return;
7416
+ let last = null;
7417
+ for (const o of select.options) if (o.selected) last = o;
7418
+ for (const o of select.options) if (o !== last && o.selected) o._selected = false;
7419
+ }
7389
7420
  };
7421
+ function singleSelectOf(option) {
7422
+ let parent = option.parentNode;
7423
+ if (parent instanceof ServerElement && parent.localName === "optgroup") parent = parent.parentNode;
7424
+ return parent instanceof ServerSelectElement && !parent.hasAttribute("multiple") ? parent : null;
7425
+ }
7390
7426
  reflectDisabled(ServerOptionElement.prototype);
7391
7427
  var ServerSelectElement = class extends ServerHTMLElement {
7428
+ get multiple() {
7429
+ return this.hasAttribute("multiple");
7430
+ }
7431
+ set multiple(v) {
7432
+ this.toggleAttribute("multiple", !!v);
7433
+ }
7392
7434
  get options() {
7393
7435
  return this.querySelectorAll("option");
7394
7436
  }
package/dist/testing.js CHANGED
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  renderRoute
3
- } from "./chunk-GVAMIU6K.js";
4
- import "./chunk-VM2U5LEL.js";
3
+ } from "./chunk-KTJC7QPA.js";
4
+ import "./chunk-L2IPKGUJ.js";
5
5
  import "./chunk-52XFPGSN.js";
6
6
  import {
7
7
  hydrate,
8
8
  renderToStringAsync
9
- } from "./chunk-BOYKGGVD.js";
10
- import "./chunk-CNPT6NKV.js";
9
+ } from "./chunk-TOV4PN3P.js";
10
+ import "./chunk-YIXMS546.js";
11
11
  import "./chunk-LJMX4SQ7.js";
12
12
  import {
13
13
  __resetTransfer
14
14
  } from "./chunk-3HZOSMPX.js";
15
15
  import "./chunk-62BDYGAG.js";
16
- import "./chunk-CJ7KS3DF.js";
17
- import "./chunk-HQIAL7F2.js";
16
+ import "./chunk-ZKI4SDZ2.js";
17
+ import "./chunk-3T7TWMSD.js";
18
18
  import "./chunk-RVWJGWCL.js";
19
19
  import {
20
20
  globalSingleton
21
21
  } from "./chunk-7ZHH77QA.js";
22
22
  import {
23
23
  effect
24
- } from "./chunk-AE32RGWX.js";
24
+ } from "./chunk-FFXZ6ELZ.js";
25
25
  import "./chunk-B3HOT4TK.js";
26
26
  import "./chunk-UYTYNCMZ.js";
27
- import "./chunk-4FJSAUKB.js";
28
- import "./chunk-MIRKTVH4.js";
27
+ import "./chunk-FCWOMATN.js";
28
+ import "./chunk-LAHX7XFG.js";
29
29
  import {
30
30
  dispose,
31
31
  replaceChildrenSafely,
package/dist/ui.cjs CHANGED
@@ -946,7 +946,7 @@ function forEachSubscriber(signal2, visit) {
946
946
  }
947
947
 
948
948
  // src/reactivity/track.ts
949
- var _runtimeVersion = true ? "4.14.0" : "dev";
949
+ var _runtimeVersion = true ? "4.14.1" : "dev";
950
950
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
951
951
  function resolveReactiveApi() {
952
952
  const g = globalThis;
package/dist/ui.js CHANGED
@@ -38,7 +38,7 @@ import {
38
38
  toast,
39
39
  withScopedStyle,
40
40
  zipMask
41
- } from "./chunk-JTFQ7IL4.js";
41
+ } from "./chunk-TS6JDK7Y.js";
42
42
  import {
43
43
  RenderProp,
44
44
  assertType,
@@ -69,28 +69,28 @@ import {
69
69
  } from "./chunk-LJMX4SQ7.js";
70
70
  import {
71
71
  createId
72
- } from "./chunk-CCKUNHVU.js";
72
+ } from "./chunk-OPRQW4LI.js";
73
73
  import {
74
74
  noDocument
75
- } from "./chunk-HQIAL7F2.js";
75
+ } from "./chunk-3T7TWMSD.js";
76
76
  import "./chunk-RVWJGWCL.js";
77
- import "./chunk-N7A6FKWW.js";
77
+ import "./chunk-ZYK4NZZA.js";
78
78
  import {
79
79
  globalSingleton
80
80
  } from "./chunk-7ZHH77QA.js";
81
81
  import {
82
82
  effect
83
- } from "./chunk-AE32RGWX.js";
83
+ } from "./chunk-FFXZ6ELZ.js";
84
84
  import "./chunk-B3HOT4TK.js";
85
85
  import "./chunk-UYTYNCMZ.js";
86
86
  import "./chunk-5HZXGZ6T.js";
87
87
  import {
88
88
  batch,
89
89
  signal
90
- } from "./chunk-4FJSAUKB.js";
90
+ } from "./chunk-FCWOMATN.js";
91
91
  import {
92
92
  reactiveBinding
93
- } from "./chunk-MIRKTVH4.js";
93
+ } from "./chunk-LAHX7XFG.js";
94
94
  import {
95
95
  registerDisposer,
96
96
  unregisterDisposer
package/dist/widgets.cjs CHANGED
@@ -802,7 +802,7 @@ function forEachSubscriber(signal2, visit) {
802
802
  }
803
803
 
804
804
  // src/reactivity/track.ts
805
- var _runtimeVersion = true ? "4.14.0" : "dev";
805
+ var _runtimeVersion = true ? "4.14.1" : "dev";
806
806
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
807
807
  function resolveReactiveApi() {
808
808
  const g = globalThis;
package/dist/widgets.js CHANGED
@@ -9,27 +9,27 @@ import {
9
9
  snapshotAttributes,
10
10
  tabs,
11
11
  tooltip
12
- } from "./chunk-TLS4NVIB.js";
12
+ } from "./chunk-LJ2LR5P4.js";
13
13
  import {
14
14
  claimWidgetKey,
15
15
  isWidgetKeyEvent,
16
16
  widgetKeyOwner
17
17
  } from "./chunk-N5TBYXHW.js";
18
- import "./chunk-RVR5NPFL.js";
18
+ import "./chunk-4XCWNGRY.js";
19
19
  import {
20
20
  createId,
21
21
  domBinding
22
- } from "./chunk-CCKUNHVU.js";
23
- import "./chunk-N7A6FKWW.js";
22
+ } from "./chunk-OPRQW4LI.js";
23
+ import "./chunk-ZYK4NZZA.js";
24
24
  import "./chunk-B3HOT4TK.js";
25
25
  import "./chunk-UYTYNCMZ.js";
26
26
  import {
27
27
  batch,
28
28
  signal
29
- } from "./chunk-4FJSAUKB.js";
29
+ } from "./chunk-FCWOMATN.js";
30
30
  import {
31
31
  untracked
32
- } from "./chunk-MIRKTVH4.js";
32
+ } from "./chunk-LAHX7XFG.js";
33
33
  import "./chunk-S37PZD6I.js";
34
34
  import "./chunk-NT3ZYB5S.js";
35
35
  import "./chunk-R5U7XKVJ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sibujs",
3
- "version": "4.14.0",
3
+ "version": "4.14.1",
4
4
  "description": "A function-based frontend framework with fine-grained reactivity and no virtual DOM. Tag factories return live DOM nodes you can hold and mutate, signals update only what changed, and nothing needs a compiler — it runs from a script tag or a bundler.",
5
5
  "keywords": [
6
6
  "frontend",