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/extras.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  optimisticList,
6
6
  persisted,
7
7
  timeline
8
- } from "./chunk-BKZ5N6NK.js";
8
+ } from "./chunk-WFMMSMA5.js";
9
9
  import {
10
10
  DOMPool,
11
11
  Features,
@@ -41,7 +41,7 @@ import {
41
41
  transitionState,
42
42
  uniqueId,
43
43
  yieldToMain
44
- } from "./chunk-UUIKJJIK.js";
44
+ } from "./chunk-RBRITLFL.js";
45
45
  import {
46
46
  MigrationStorageError,
47
47
  VERSION,
@@ -63,7 +63,7 @@ import {
63
63
  preloadCritical,
64
64
  prerenderRoutes,
65
65
  satisfies
66
- } from "./chunk-4TQDTWWN.js";
66
+ } from "./chunk-VIAVYBNQ.js";
67
67
  import {
68
68
  Head,
69
69
  clearWasmCache,
@@ -89,7 +89,7 @@ import {
89
89
  wasm,
90
90
  worker,
91
91
  workerFn
92
- } from "./chunk-BNXRWZZV.js";
92
+ } from "./chunk-OLMZF4RU.js";
93
93
  import {
94
94
  FocusTrap,
95
95
  VirtualList,
@@ -130,7 +130,7 @@ import {
130
130
  toast,
131
131
  withScopedStyle,
132
132
  zipMask
133
- } from "./chunk-JTFQ7IL4.js";
133
+ } from "./chunk-TS6JDK7Y.js";
134
134
  import {
135
135
  RenderProp,
136
136
  assertType,
@@ -157,7 +157,7 @@ import {
157
157
  select,
158
158
  tabs,
159
159
  tooltip
160
- } from "./chunk-TLS4NVIB.js";
160
+ } from "./chunk-LJ2LR5P4.js";
161
161
  import "./chunk-N5TBYXHW.js";
162
162
  import {
163
163
  __resetSpeechCoordinator,
@@ -197,7 +197,7 @@ import {
197
197
  visibility,
198
198
  wakeLock,
199
199
  windowSize
200
- } from "./chunk-A454RAEK.js";
200
+ } from "./chunk-TZNR6E6D.js";
201
201
  import "./chunk-52XFPGSN.js";
202
202
  import {
203
203
  __resetQueryCache,
@@ -224,7 +224,7 @@ import {
224
224
  withLoader,
225
225
  withRetry,
226
226
  withholdTransfer
227
- } from "./chunk-SVULV7O4.js";
227
+ } from "./chunk-B2NLNZ3E.js";
228
228
  import {
229
229
  SibuError,
230
230
  checkLeaks,
@@ -262,7 +262,7 @@ import {
262
262
  trackCleanup,
263
263
  walkDependencyGraph,
264
264
  withErrorTracking
265
- } from "./chunk-Y4LUM2XS.js";
265
+ } from "./chunk-NIHGSXOX.js";
266
266
  import {
267
267
  antdAdapter,
268
268
  chakraAdapter,
@@ -272,7 +272,7 @@ import {
272
272
  mobXAdapter,
273
273
  reduxAdapter,
274
274
  zustandAdapter
275
- } from "./chunk-2TTRW2TE.js";
275
+ } from "./chunk-LUZXFMKH.js";
276
276
  import {
277
277
  PluginInstallCancelledError,
278
278
  createPlugin,
@@ -286,7 +286,7 @@ import {
286
286
  triggerPluginMount,
287
287
  triggerPluginUnmount
288
288
  } from "./chunk-3HEX6QJQ.js";
289
- import "./chunk-7ILEHTVX.js";
289
+ import "./chunk-YPLQQTWS.js";
290
290
  import {
291
291
  assembleDocument,
292
292
  collectStream,
@@ -308,19 +308,19 @@ import {
308
308
  ssrSuspense,
309
309
  suspenseSwapScript,
310
310
  trustHTML
311
- } from "./chunk-BOYKGGVD.js";
312
- import "./chunk-CNPT6NKV.js";
311
+ } from "./chunk-TOV4PN3P.js";
312
+ import "./chunk-YIXMS546.js";
313
313
  import "./chunk-LJMX4SQ7.js";
314
- import "./chunk-RVR5NPFL.js";
315
- import "./chunk-CCKUNHVU.js";
314
+ import "./chunk-4XCWNGRY.js";
315
+ import "./chunk-OPRQW4LI.js";
316
316
  import "./chunk-3HZOSMPX.js";
317
317
  import "./chunk-62BDYGAG.js";
318
- import "./chunk-CJ7KS3DF.js";
319
- import "./chunk-HQIAL7F2.js";
318
+ import "./chunk-ZKI4SDZ2.js";
319
+ import "./chunk-3T7TWMSD.js";
320
320
  import "./chunk-RVWJGWCL.js";
321
- import "./chunk-N7A6FKWW.js";
321
+ import "./chunk-ZYK4NZZA.js";
322
322
  import "./chunk-7ZHH77QA.js";
323
- import "./chunk-AE32RGWX.js";
323
+ import "./chunk-FFXZ6ELZ.js";
324
324
  import "./chunk-B3HOT4TK.js";
325
325
  import "./chunk-UYTYNCMZ.js";
326
326
  import {
@@ -345,10 +345,10 @@ import {
345
345
  stagger,
346
346
  transition,
347
347
  viewTransition
348
- } from "./chunk-F67F77IA.js";
348
+ } from "./chunk-55TAOW5M.js";
349
349
  import "./chunk-5HZXGZ6T.js";
350
- import "./chunk-4FJSAUKB.js";
351
- import "./chunk-MIRKTVH4.js";
350
+ import "./chunk-FCWOMATN.js";
351
+ import "./chunk-LAHX7XFG.js";
352
352
  import "./chunk-S37PZD6I.js";
353
353
  import "./chunk-NT3ZYB5S.js";
354
354
  import "./chunk-R5U7XKVJ.js";
package/dist/index.cjs CHANGED
@@ -1874,7 +1874,7 @@ function forEachSubscriber(signal2, visit) {
1874
1874
  }
1875
1875
 
1876
1876
  // src/reactivity/track.ts
1877
- var _runtimeVersion = true ? "4.14.0" : "dev";
1877
+ var _runtimeVersion = true ? "4.14.1" : "dev";
1878
1878
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
1879
1879
  function resolveReactiveApi() {
1880
1880
  const g2 = globalThis;
package/dist/index.js CHANGED
@@ -55,7 +55,7 @@ import {
55
55
  unregisterIsland,
56
56
  when,
57
57
  writable
58
- } from "./chunk-QS6GMWDD.js";
58
+ } from "./chunk-LZKKMDQF.js";
59
59
  import {
60
60
  a,
61
61
  abbr,
@@ -193,37 +193,37 @@ import {
193
193
  use,
194
194
  var_,
195
195
  video
196
- } from "./chunk-7ILEHTVX.js";
196
+ } from "./chunk-YPLQQTWS.js";
197
197
  import {
198
198
  trustHTML
199
- } from "./chunk-BOYKGGVD.js";
200
- import "./chunk-CNPT6NKV.js";
199
+ } from "./chunk-TOV4PN3P.js";
200
+ import "./chunk-YIXMS546.js";
201
201
  import "./chunk-LJMX4SQ7.js";
202
202
  import {
203
203
  watch
204
- } from "./chunk-RVR5NPFL.js";
204
+ } from "./chunk-4XCWNGRY.js";
205
205
  import {
206
206
  __resetIdCounter,
207
207
  createId
208
- } from "./chunk-CCKUNHVU.js";
208
+ } from "./chunk-OPRQW4LI.js";
209
209
  import "./chunk-3HZOSMPX.js";
210
210
  import "./chunk-62BDYGAG.js";
211
211
  import {
212
212
  SVG_NS,
213
213
  tagFactory
214
- } from "./chunk-CJ7KS3DF.js";
214
+ } from "./chunk-ZKI4SDZ2.js";
215
215
  import {
216
216
  bindDynamic
217
- } from "./chunk-HQIAL7F2.js";
217
+ } from "./chunk-3T7TWMSD.js";
218
218
  import "./chunk-RVWJGWCL.js";
219
219
  import {
220
220
  derived
221
- } from "./chunk-N7A6FKWW.js";
221
+ } from "./chunk-ZYK4NZZA.js";
222
222
  import "./chunk-7ZHH77QA.js";
223
223
  import {
224
224
  effect,
225
225
  on
226
- } from "./chunk-AE32RGWX.js";
226
+ } from "./chunk-FFXZ6ELZ.js";
227
227
  import "./chunk-B3HOT4TK.js";
228
228
  import {
229
229
  disableSSR,
@@ -243,12 +243,12 @@ import {
243
243
  external,
244
244
  isBatching,
245
245
  signal
246
- } from "./chunk-4FJSAUKB.js";
246
+ } from "./chunk-FCWOMATN.js";
247
247
  import {
248
248
  retrack,
249
249
  setMaxDrainIterations,
250
250
  untracked
251
- } from "./chunk-MIRKTVH4.js";
251
+ } from "./chunk-LAHX7XFG.js";
252
252
  import {
253
253
  MAX_DRAIN_TEARDOWNS,
254
254
  checkLeaks,
package/dist/motion.cjs CHANGED
@@ -849,7 +849,7 @@ function forEachSubscriber(signal2, visit) {
849
849
  }
850
850
 
851
851
  // src/reactivity/track.ts
852
- var _runtimeVersion = true ? "4.14.0" : "dev";
852
+ var _runtimeVersion = true ? "4.14.1" : "dev";
853
853
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
854
854
  function resolveReactiveApi() {
855
855
  const g = globalThis;
package/dist/motion.js CHANGED
@@ -20,10 +20,10 @@ import {
20
20
  stagger,
21
21
  transition,
22
22
  viewTransition
23
- } from "./chunk-F67F77IA.js";
23
+ } from "./chunk-55TAOW5M.js";
24
24
  import "./chunk-5HZXGZ6T.js";
25
- import "./chunk-4FJSAUKB.js";
26
- import "./chunk-MIRKTVH4.js";
25
+ import "./chunk-FCWOMATN.js";
26
+ import "./chunk-LAHX7XFG.js";
27
27
  import "./chunk-S37PZD6I.js";
28
28
  import "./chunk-NT3ZYB5S.js";
29
29
  import "./chunk-R5U7XKVJ.js";
package/dist/patterns.cjs CHANGED
@@ -745,7 +745,7 @@ function forEachSubscriber(signal2, visit) {
745
745
  }
746
746
 
747
747
  // src/reactivity/track.ts
748
- var _runtimeVersion = true ? "4.14.0" : "dev";
748
+ var _runtimeVersion = true ? "4.14.1" : "dev";
749
749
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
750
750
  function resolveReactiveApi() {
751
751
  const g = globalThis;
package/dist/patterns.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  optimisticList,
6
6
  persisted,
7
7
  timeline
8
- } from "./chunk-BKZ5N6NK.js";
8
+ } from "./chunk-WFMMSMA5.js";
9
9
  import {
10
10
  RenderProp,
11
11
  assertType,
@@ -23,11 +23,11 @@ import {
23
23
  withWrapper
24
24
  } from "./chunk-GIJ33UJZ.js";
25
25
  import "./chunk-62BDYGAG.js";
26
- import "./chunk-N7A6FKWW.js";
27
- import "./chunk-AE32RGWX.js";
26
+ import "./chunk-ZYK4NZZA.js";
27
+ import "./chunk-FFXZ6ELZ.js";
28
28
  import "./chunk-UYTYNCMZ.js";
29
- import "./chunk-4FJSAUKB.js";
30
- import "./chunk-MIRKTVH4.js";
29
+ import "./chunk-FCWOMATN.js";
30
+ import "./chunk-LAHX7XFG.js";
31
31
  import "./chunk-S37PZD6I.js";
32
32
  import "./chunk-NT3ZYB5S.js";
33
33
  import "./chunk-R5U7XKVJ.js";
@@ -1032,7 +1032,7 @@ function forEachSubscriber(signal2, visit) {
1032
1032
  }
1033
1033
 
1034
1034
  // src/reactivity/track.ts
1035
- var _runtimeVersion = true ? "4.14.0" : "dev";
1035
+ var _runtimeVersion = true ? "4.14.1" : "dev";
1036
1036
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
1037
1037
  function resolveReactiveApi() {
1038
1038
  const g = globalThis;
@@ -33,21 +33,21 @@ import {
33
33
  transitionState,
34
34
  uniqueId,
35
35
  yieldToMain
36
- } from "./chunk-UUIKJJIK.js";
36
+ } from "./chunk-RBRITLFL.js";
37
37
  import {
38
38
  trustHTML
39
- } from "./chunk-BOYKGGVD.js";
40
- import "./chunk-CNPT6NKV.js";
39
+ } from "./chunk-TOV4PN3P.js";
40
+ import "./chunk-YIXMS546.js";
41
41
  import "./chunk-LJMX4SQ7.js";
42
42
  import "./chunk-3HZOSMPX.js";
43
43
  import "./chunk-62BDYGAG.js";
44
44
  import "./chunk-RVWJGWCL.js";
45
45
  import "./chunk-7ZHH77QA.js";
46
- import "./chunk-AE32RGWX.js";
46
+ import "./chunk-FFXZ6ELZ.js";
47
47
  import "./chunk-B3HOT4TK.js";
48
48
  import "./chunk-UYTYNCMZ.js";
49
- import "./chunk-4FJSAUKB.js";
50
- import "./chunk-MIRKTVH4.js";
49
+ import "./chunk-FCWOMATN.js";
50
+ import "./chunk-LAHX7XFG.js";
51
51
  import "./chunk-S37PZD6I.js";
52
52
  import "./chunk-NT3ZYB5S.js";
53
53
  import "./chunk-R5U7XKVJ.js";
package/dist/plugins.cjs CHANGED
@@ -1692,7 +1692,7 @@ var init_track = __esm({
1692
1692
  "use strict";
1693
1693
  init_dev();
1694
1694
  init_track_core();
1695
- _runtimeVersion = true ? "4.14.0" : "dev";
1695
+ _runtimeVersion = true ? "4.14.1" : "dev";
1696
1696
  REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
1697
1697
  API = resolveReactiveApi();
1698
1698
  suspendTracking2 = API.suspendTracking;
@@ -2314,6 +2314,11 @@ function reflectDisabled(proto) {
2314
2314
  configurable: true
2315
2315
  });
2316
2316
  }
2317
+ function singleSelectOf(option2) {
2318
+ let parent = option2.parentNode;
2319
+ if (parent instanceof ServerElement && parent.localName === "optgroup") parent = parent.parentNode;
2320
+ return parent instanceof ServerSelectElement && !parent.hasAttribute("multiple") ? parent : null;
2321
+ }
2317
2322
  function cssEscapeIdent(value) {
2318
2323
  return value.replace(/([^A-Za-z0-9_-])/g, "\\$1");
2319
2324
  }
@@ -3147,9 +3152,15 @@ var init_serverDom = __esm({
3147
3152
  get nodeValue() {
3148
3153
  return this._value;
3149
3154
  }
3155
+ set nodeValue(v) {
3156
+ this.value = v;
3157
+ }
3150
3158
  get textContent() {
3151
3159
  return this._value;
3152
3160
  }
3161
+ set textContent(v) {
3162
+ this.value = v;
3163
+ }
3153
3164
  };
3154
3165
  ServerNamedNodeMap = class extends Array {
3155
3166
  static get [Symbol.species]() {
@@ -3639,6 +3650,10 @@ var init_serverDom = __esm({
3639
3650
  get defaultChecked() {
3640
3651
  return this.hasAttribute("checked");
3641
3652
  }
3653
+ /** Reflects to the `checked` attribute; `checked` follows it until written (dirty checkedness). */
3654
+ set defaultChecked(v) {
3655
+ this.toggleAttribute("checked", !!v);
3656
+ }
3642
3657
  get type() {
3643
3658
  return (this.getAttribute("type") ?? "text").toLowerCase();
3644
3659
  }
@@ -3696,8 +3711,10 @@ var init_serverDom = __esm({
3696
3711
  ServerOptionElement = class extends ServerHTMLElement {
3697
3712
  constructor() {
3698
3713
  super(...arguments);
3699
- /** @internal */
3714
+ /** Selectedness; `null` while it follows the `selected` attribute. @internal */
3700
3715
  this._selected = null;
3716
+ /** Set by a `selected` write: the attribute no longer decides selectedness. @internal */
3717
+ this._dirty = false;
3701
3718
  }
3702
3719
  get value() {
3703
3720
  return this.getAttribute("value") ?? this.text;
@@ -3714,18 +3731,43 @@ var init_serverDom = __esm({
3714
3731
  get label() {
3715
3732
  return this.getAttribute("label") ?? this.text;
3716
3733
  }
3734
+ set label(v) {
3735
+ this.setAttribute("label", v);
3736
+ }
3717
3737
  get selected() {
3718
3738
  return this._selected ?? this.hasAttribute("selected");
3719
3739
  }
3720
3740
  set selected(v) {
3721
3741
  this._selected = !!v;
3742
+ this._dirty = true;
3743
+ const select2 = singleSelectOf(this);
3744
+ if (select2 && v) {
3745
+ for (const o of select2.options) if (o !== this) o._selected = false;
3746
+ }
3722
3747
  }
3723
3748
  get defaultSelected() {
3724
3749
  return this.hasAttribute("selected");
3725
3750
  }
3751
+ /** Reflects to the `selected` attribute; `selected` follows it unless written. */
3752
+ set defaultSelected(v) {
3753
+ this.toggleAttribute("selected", !!v);
3754
+ if (this._dirty) return;
3755
+ this._selected = null;
3756
+ const select2 = singleSelectOf(this);
3757
+ if (!select2) return;
3758
+ let last = null;
3759
+ for (const o of select2.options) if (o.selected) last = o;
3760
+ for (const o of select2.options) if (o !== last && o.selected) o._selected = false;
3761
+ }
3726
3762
  };
3727
3763
  reflectDisabled(ServerOptionElement.prototype);
3728
3764
  ServerSelectElement = class extends ServerHTMLElement {
3765
+ get multiple() {
3766
+ return this.hasAttribute("multiple");
3767
+ }
3768
+ set multiple(v) {
3769
+ this.toggleAttribute("multiple", !!v);
3770
+ }
3729
3771
  get options() {
3730
3772
  return this.querySelectorAll("option");
3731
3773
  }
@@ -7066,7 +7108,7 @@ var CDN_ENTRY_POINTS = {
7066
7108
  };
7067
7109
  var packageInfo = {
7068
7110
  name: "sibujs",
7069
- version: true ? "4.14.0" : "dev",
7111
+ version: true ? "4.14.1" : "dev",
7070
7112
  entryPoints: MODULE_ENTRY_POINTS,
7071
7113
  /**
7072
7114
  * Generate the package.json `exports` map. Module entries resolve to the
@@ -10611,7 +10653,7 @@ function createBootSequence() {
10611
10653
 
10612
10654
  // src/plugins/versioning.ts
10613
10655
  init_globalSingleton();
10614
- var VERSION = true ? "4.14.0" : "dev";
10656
+ var VERSION = true ? "4.14.1" : "dev";
10615
10657
  var NUM = "(?:0|[1-9]\\d*)";
10616
10658
  var PRE_ID = `(?:${NUM}|\\d*[a-zA-Z-][0-9a-zA-Z-]*)`;
10617
10659
  var BUILD_ID = "[0-9a-zA-Z-]+";
package/dist/plugins.js CHANGED
@@ -38,7 +38,7 @@ import {
38
38
  serializeJsonLd,
39
39
  setRouteTransition,
40
40
  setRoutes
41
- } from "./chunk-VM2U5LEL.js";
41
+ } from "./chunk-L2IPKGUJ.js";
42
42
  import {
43
43
  MigrationStorageError,
44
44
  VERSION,
@@ -60,7 +60,7 @@ import {
60
60
  preloadCritical,
61
61
  prerenderRoutes,
62
62
  satisfies
63
- } from "./chunk-4TQDTWWN.js";
63
+ } from "./chunk-VIAVYBNQ.js";
64
64
  import "./chunk-52XFPGSN.js";
65
65
  import {
66
66
  PluginInstallCancelledError,
@@ -77,26 +77,26 @@ import {
77
77
  } from "./chunk-3HEX6QJQ.js";
78
78
  import {
79
79
  span
80
- } from "./chunk-7ILEHTVX.js";
80
+ } from "./chunk-YPLQQTWS.js";
81
81
  import {
82
82
  escapeScriptJson,
83
83
  renderToString,
84
84
  serializeHeadEntry
85
- } from "./chunk-BOYKGGVD.js";
86
- import "./chunk-CNPT6NKV.js";
85
+ } from "./chunk-TOV4PN3P.js";
86
+ import "./chunk-YIXMS546.js";
87
87
  import "./chunk-LJMX4SQ7.js";
88
88
  import "./chunk-3HZOSMPX.js";
89
89
  import {
90
90
  isUnsafeKey,
91
91
  readOwnGlobal
92
92
  } from "./chunk-62BDYGAG.js";
93
- import "./chunk-CJ7KS3DF.js";
94
- import "./chunk-HQIAL7F2.js";
93
+ import "./chunk-ZKI4SDZ2.js";
94
+ import "./chunk-3T7TWMSD.js";
95
95
  import "./chunk-RVWJGWCL.js";
96
96
  import {
97
97
  globalSingleton
98
98
  } from "./chunk-7ZHH77QA.js";
99
- import "./chunk-AE32RGWX.js";
99
+ import "./chunk-FFXZ6ELZ.js";
100
100
  import {
101
101
  sanitizeUrl
102
102
  } from "./chunk-B3HOT4TK.js";
@@ -106,8 +106,8 @@ import {
106
106
  import "./chunk-5HZXGZ6T.js";
107
107
  import {
108
108
  signal
109
- } from "./chunk-4FJSAUKB.js";
110
- import "./chunk-MIRKTVH4.js";
109
+ } from "./chunk-FCWOMATN.js";
110
+ import "./chunk-LAHX7XFG.js";
111
111
  import "./chunk-S37PZD6I.js";
112
112
  import "./chunk-NT3ZYB5S.js";
113
113
  import "./chunk-R5U7XKVJ.js";
@@ -430,7 +430,7 @@ function hydrateRouter(routes, options) {
430
430
  const liveUrl = `${window.location.pathname}${window.location.search}${window.location.hash}`;
431
431
  const resolved = resolveServerRoute(liveUrl, routes);
432
432
  const bootstrapEpoch = __getNavigationEpoch();
433
- import("./ssr-NECEU4X4.js").then(async ({ hydrate }) => {
433
+ import("./ssr-HHU3DAD2.js").then(async ({ hydrate }) => {
434
434
  const { replaceChildrenSafely } = await import("./dispose-EIHHHDC7.js");
435
435
  if (__getNavigationEpoch() !== bootstrapEpoch) return;
436
436
  if (resolved.component) {
@@ -19,8 +19,8 @@ import {
19
19
  ssrSuspense,
20
20
  suspenseSwapScript,
21
21
  trustHTML
22
- } from "./chunk-BOYKGGVD.js";
23
- import "./chunk-CNPT6NKV.js";
22
+ } from "./chunk-TOV4PN3P.js";
23
+ import "./chunk-YIXMS546.js";
24
24
  import "./chunk-LJMX4SQ7.js";
25
25
  import "./chunk-3HZOSMPX.js";
26
26
  import "./chunk-62BDYGAG.js";
@@ -28,7 +28,7 @@ import "./chunk-RVWJGWCL.js";
28
28
  import "./chunk-7ZHH77QA.js";
29
29
  import "./chunk-B3HOT4TK.js";
30
30
  import "./chunk-UYTYNCMZ.js";
31
- import "./chunk-MIRKTVH4.js";
31
+ import "./chunk-LAHX7XFG.js";
32
32
  import "./chunk-S37PZD6I.js";
33
33
  import "./chunk-NT3ZYB5S.js";
34
34
  import "./chunk-R5U7XKVJ.js";
package/dist/ssr-dom.cjs CHANGED
@@ -707,9 +707,15 @@ var ServerAttr = class {
707
707
  get nodeValue() {
708
708
  return this._value;
709
709
  }
710
+ set nodeValue(v) {
711
+ this.value = v;
712
+ }
710
713
  get textContent() {
711
714
  return this._value;
712
715
  }
716
+ set textContent(v) {
717
+ this.value = v;
718
+ }
713
719
  };
714
720
  var ServerNamedNodeMap = class extends Array {
715
721
  static get [Symbol.species]() {
@@ -1257,6 +1263,10 @@ var ServerInputElement = class extends ServerHTMLElement {
1257
1263
  get defaultChecked() {
1258
1264
  return this.hasAttribute("checked");
1259
1265
  }
1266
+ /** Reflects to the `checked` attribute; `checked` follows it until written (dirty checkedness). */
1267
+ set defaultChecked(v) {
1268
+ this.toggleAttribute("checked", !!v);
1269
+ }
1260
1270
  get type() {
1261
1271
  return (this.getAttribute("type") ?? "text").toLowerCase();
1262
1272
  }
@@ -1314,8 +1324,10 @@ reflectDisabled(ServerTextAreaElement.prototype);
1314
1324
  var ServerOptionElement = class extends ServerHTMLElement {
1315
1325
  constructor() {
1316
1326
  super(...arguments);
1317
- /** @internal */
1327
+ /** Selectedness; `null` while it follows the `selected` attribute. @internal */
1318
1328
  this._selected = null;
1329
+ /** Set by a `selected` write: the attribute no longer decides selectedness. @internal */
1330
+ this._dirty = false;
1319
1331
  }
1320
1332
  get value() {
1321
1333
  return this.getAttribute("value") ?? this.text;
@@ -1332,18 +1344,48 @@ var ServerOptionElement = class extends ServerHTMLElement {
1332
1344
  get label() {
1333
1345
  return this.getAttribute("label") ?? this.text;
1334
1346
  }
1347
+ set label(v) {
1348
+ this.setAttribute("label", v);
1349
+ }
1335
1350
  get selected() {
1336
1351
  return this._selected ?? this.hasAttribute("selected");
1337
1352
  }
1338
1353
  set selected(v) {
1339
1354
  this._selected = !!v;
1355
+ this._dirty = true;
1356
+ const select = singleSelectOf(this);
1357
+ if (select && v) {
1358
+ for (const o of select.options) if (o !== this) o._selected = false;
1359
+ }
1340
1360
  }
1341
1361
  get defaultSelected() {
1342
1362
  return this.hasAttribute("selected");
1343
1363
  }
1364
+ /** Reflects to the `selected` attribute; `selected` follows it unless written. */
1365
+ set defaultSelected(v) {
1366
+ this.toggleAttribute("selected", !!v);
1367
+ if (this._dirty) return;
1368
+ this._selected = null;
1369
+ const select = singleSelectOf(this);
1370
+ if (!select) return;
1371
+ let last = null;
1372
+ for (const o of select.options) if (o.selected) last = o;
1373
+ for (const o of select.options) if (o !== last && o.selected) o._selected = false;
1374
+ }
1344
1375
  };
1376
+ function singleSelectOf(option) {
1377
+ let parent = option.parentNode;
1378
+ if (parent instanceof ServerElement && parent.localName === "optgroup") parent = parent.parentNode;
1379
+ return parent instanceof ServerSelectElement && !parent.hasAttribute("multiple") ? parent : null;
1380
+ }
1345
1381
  reflectDisabled(ServerOptionElement.prototype);
1346
1382
  var ServerSelectElement = class extends ServerHTMLElement {
1383
+ get multiple() {
1384
+ return this.hasAttribute("multiple");
1385
+ }
1386
+ set multiple(v) {
1387
+ this.toggleAttribute("multiple", !!v);
1388
+ }
1347
1389
  get options() {
1348
1390
  return this.querySelectorAll("option");
1349
1391
  }
@@ -132,7 +132,9 @@ declare class ServerAttr {
132
132
  get value(): string;
133
133
  set value(v: string);
134
134
  get nodeValue(): string;
135
+ set nodeValue(v: string);
135
136
  get textContent(): string;
137
+ set textContent(v: string);
136
138
  }
137
139
  declare class ServerNamedNodeMap extends Array<ServerAttr> {
138
140
  static get [Symbol.species](): ArrayConstructor;
package/dist/ssr-dom.d.ts CHANGED
@@ -132,7 +132,9 @@ declare class ServerAttr {
132
132
  get value(): string;
133
133
  set value(v: string);
134
134
  get nodeValue(): string;
135
+ set nodeValue(v: string);
135
136
  get textContent(): string;
137
+ set textContent(v: string);
136
138
  }
137
139
  declare class ServerNamedNodeMap extends Array<ServerAttr> {
138
140
  static get [Symbol.species](): ArrayConstructor;
package/dist/ssr-dom.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  createServerDocument,
6
6
  installServerDom,
7
7
  isServerDom
8
- } from "./chunk-CNPT6NKV.js";
8
+ } from "./chunk-YIXMS546.js";
9
9
  import "./chunk-UYTYNCMZ.js";
10
10
  import "./chunk-NT3ZYB5S.js";
11
11
  import "./chunk-R5U7XKVJ.js";