sibujs 4.11.0 → 4.12.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 (79) hide show
  1. package/README.md +2 -2
  2. package/dist/browser.cjs +1 -1
  3. package/dist/browser.js +4 -4
  4. package/dist/build.cjs +19 -1
  5. package/dist/build.js +13 -12
  6. package/dist/cdn.dev.global.js +12 -12
  7. package/dist/cdn.full.dev.global.js +13 -13
  8. package/dist/cdn.full.global.js +12 -12
  9. package/dist/cdn.global.js +12 -12
  10. package/dist/{chunk-FC6KCJSA.js → chunk-2F4PSJ5Z.js} +162 -67
  11. package/dist/{chunk-R244COCR.js → chunk-653KGQS2.js} +3 -3
  12. package/dist/chunk-AM6DZLBM.js +181 -0
  13. package/dist/{chunk-ADWDDJ5M.js → chunk-B2Y5BJSP.js} +1 -1
  14. package/dist/{chunk-KREPZR2U.js → chunk-CI4W6XAU.js} +4 -4
  15. package/dist/{chunk-NBBFF5VA.js → chunk-DFZL3AX7.js} +6 -6
  16. package/dist/{chunk-OJV2RW4D.js → chunk-EMB5PG7V.js} +1 -1
  17. package/dist/{chunk-3ACAAQIN.js → chunk-F2UWOZ6J.js} +4 -0
  18. package/dist/{chunk-REOAVT2M.js → chunk-HXT2RNH5.js} +1 -1
  19. package/dist/{chunk-F6B5CKF7.js → chunk-IHA62NGJ.js} +1 -1
  20. package/dist/{chunk-VZDMHDVA.js → chunk-LEUEKK4G.js} +2 -2
  21. package/dist/{chunk-WQ7M57JJ.js → chunk-LXBMVGVB.js} +3 -3
  22. package/dist/{chunk-RRKGQKPU.js → chunk-LYTUTXQP.js} +4 -4
  23. package/dist/{chunk-5IODQRR3.js → chunk-NAVLCP4S.js} +4 -4
  24. package/dist/{chunk-YXJHLMRH.js → chunk-NB7TFSJE.js} +5 -5
  25. package/dist/{chunk-5G53CC6L.js → chunk-QLG5IK7F.js} +4 -4
  26. package/dist/{chunk-KFJUMC3Q.js → chunk-RK7EPQPG.js} +1 -1
  27. package/dist/{chunk-LQ2C44YH.js → chunk-T5O2CUHV.js} +1 -1
  28. package/dist/{chunk-CHQPJY47.js → chunk-WFRQ6D7H.js} +1 -1
  29. package/dist/{chunk-3Z7AEJMQ.js → chunk-WH4U2VUE.js} +5 -3
  30. package/dist/{chunk-HMOPAC2Z.js → chunk-XX4BRMWF.js} +15 -3
  31. package/dist/{chunk-7V7VFT7E.js → chunk-ZJCHY2IB.js} +1 -1
  32. package/dist/{chunk-MCPL5WKQ.js → chunk-ZPY2UAKM.js} +3 -3
  33. package/dist/{chunk-DEUONJYR.js → chunk-ZTYCCBU3.js} +19 -11
  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 +9 -1
  39. package/dist/ecosystem.d.cts +1 -1
  40. package/dist/ecosystem.d.ts +1 -1
  41. package/dist/ecosystem.js +8 -8
  42. package/dist/extras.cjs +368 -154
  43. package/dist/extras.d.cts +2 -2
  44. package/dist/extras.d.ts +2 -2
  45. package/dist/extras.js +23 -22
  46. package/dist/index.cjs +19 -1
  47. package/dist/index.d.cts +91 -90
  48. package/dist/index.d.ts +91 -90
  49. package/dist/index.js +13 -12
  50. package/dist/motion.cjs +1 -1
  51. package/dist/motion.js +3 -3
  52. package/dist/patterns.cjs +1 -1
  53. package/dist/patterns.js +5 -5
  54. package/dist/performance.cjs +1 -1
  55. package/dist/performance.d.cts +2 -2
  56. package/dist/performance.d.ts +2 -2
  57. package/dist/performance.js +7 -6
  58. package/dist/plugins.cjs +344 -109
  59. package/dist/plugins.d.cts +1 -1
  60. package/dist/plugins.d.ts +1 -1
  61. package/dist/plugins.js +15 -12
  62. package/dist/{ssr-C8hgIAw7.d.cts → ssr-Db0Sgdu3.d.cts} +7 -4
  63. package/dist/{ssr-C8hgIAw7.d.ts → ssr-Db0Sgdu3.d.ts} +7 -4
  64. package/dist/{ssr-5OWAH3U2.js → ssr-VBM6J5SJ.js} +4 -2
  65. package/dist/ssr.cjs +346 -128
  66. package/dist/ssr.d.cts +1 -1
  67. package/dist/ssr.d.ts +1 -1
  68. package/dist/ssr.js +10 -9
  69. package/dist/{tagFactory-BL2fymez.d.ts → tagFactory-Bnd_Nph9.d.ts} +1 -1
  70. package/dist/{tagFactory-8qL9LCIx.d.cts → tagFactory-DkytnJws.d.cts} +1 -1
  71. package/dist/testing.cjs +1 -1
  72. package/dist/testing.js +2 -2
  73. package/dist/ui.cjs +251 -24
  74. package/dist/ui.d.cts +111 -1
  75. package/dist/ui.d.ts +111 -1
  76. package/dist/ui.js +130 -8
  77. package/dist/widgets.cjs +1 -1
  78. package/dist/widgets.js +6 -6
  79. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  watch
3
- } from "./chunk-REOAVT2M.js";
3
+ } from "./chunk-HXT2RNH5.js";
4
4
  import {
5
5
  createId,
6
6
  domBinding,
7
7
  idSegment
8
- } from "./chunk-CHQPJY47.js";
8
+ } from "./chunk-WFRQ6D7H.js";
9
9
  import {
10
10
  derived
11
- } from "./chunk-KFJUMC3Q.js";
11
+ } from "./chunk-RK7EPQPG.js";
12
12
  import {
13
13
  stripHtml
14
14
  } from "./chunk-EXXSN3BW.js";
15
15
  import {
16
16
  batch,
17
17
  signal
18
- } from "./chunk-F6B5CKF7.js";
18
+ } from "./chunk-IHA62NGJ.js";
19
19
 
20
20
  // src/widgets/Combobox.ts
21
21
  var boundComboboxes = /* @__PURE__ */ new WeakMap();
@@ -3,23 +3,23 @@ import {
3
3
  } from "./chunk-J6FW5TV6.js";
4
4
  import {
5
5
  tagFactory
6
- } from "./chunk-3Z7AEJMQ.js";
6
+ } from "./chunk-WH4U2VUE.js";
7
7
  import {
8
8
  derived
9
- } from "./chunk-KFJUMC3Q.js";
9
+ } from "./chunk-RK7EPQPG.js";
10
10
  import {
11
11
  globalSingleton
12
12
  } from "./chunk-7ZHH77QA.js";
13
13
  import {
14
14
  effect
15
- } from "./chunk-OJV2RW4D.js";
15
+ } from "./chunk-EMB5PG7V.js";
16
16
  import {
17
17
  sanitizeCSSDeclaration
18
18
  } from "./chunk-EXXSN3BW.js";
19
19
  import {
20
20
  batch,
21
21
  signal
22
- } from "./chunk-F6B5CKF7.js";
22
+ } from "./chunk-IHA62NGJ.js";
23
23
 
24
24
  // src/ecosystem/adapters/mobx.ts
25
25
  function mobXAdapter(options) {
@@ -6,28 +6,28 @@ import {
6
6
  import {
7
7
  div,
8
8
  span
9
- } from "./chunk-LQ2C44YH.js";
9
+ } from "./chunk-T5O2CUHV.js";
10
10
  import {
11
11
  STATIC_VALUE_RESOLVER,
12
12
  planHeadElementEntry,
13
13
  planMetaEntry
14
- } from "./chunk-FC6KCJSA.js";
14
+ } from "./chunk-2F4PSJ5Z.js";
15
15
  import {
16
16
  globalSingleton
17
17
  } from "./chunk-7ZHH77QA.js";
18
18
  import {
19
19
  effect
20
- } from "./chunk-OJV2RW4D.js";
20
+ } from "./chunk-EMB5PG7V.js";
21
21
  import {
22
22
  sanitizeUrl
23
23
  } from "./chunk-EXXSN3BW.js";
24
24
  import {
25
25
  batch,
26
26
  signal
27
- } from "./chunk-F6B5CKF7.js";
27
+ } from "./chunk-IHA62NGJ.js";
28
28
  import {
29
29
  bindOwnerScope
30
- } from "./chunk-ADWDDJ5M.js";
30
+ } from "./chunk-B2Y5BJSP.js";
31
31
  import {
32
32
  registerDisposer,
33
33
  replaceChildrenSafely,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  derived
3
- } from "./chunk-KFJUMC3Q.js";
3
+ } from "./chunk-RK7EPQPG.js";
4
4
  import {
5
5
  globalSingleton
6
6
  } from "./chunk-7ZHH77QA.js";
7
7
  import {
8
8
  effect
9
- } from "./chunk-OJV2RW4D.js";
9
+ } from "./chunk-EMB5PG7V.js";
10
10
  import {
11
11
  sanitizeUrl
12
12
  } from "./chunk-EXXSN3BW.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  batch,
18
18
  signal
19
- } from "./chunk-F6B5CKF7.js";
19
+ } from "./chunk-IHA62NGJ.js";
20
20
  import {
21
21
  untracked
22
- } from "./chunk-ADWDDJ5M.js";
22
+ } from "./chunk-B2Y5BJSP.js";
23
23
  import {
24
24
  reportError
25
25
  } from "./chunk-NYNYSPK7.js";
@@ -5,7 +5,7 @@ import {
5
5
  recordDependency,
6
6
  retrack,
7
7
  track
8
- } from "./chunk-ADWDDJ5M.js";
8
+ } from "./chunk-B2Y5BJSP.js";
9
9
  import {
10
10
  devAssert
11
11
  } from "./chunk-NYNYSPK7.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SVG_NS,
3
3
  tagFactory
4
- } from "./chunk-3Z7AEJMQ.js";
4
+ } from "./chunk-WH4U2VUE.js";
5
5
 
6
6
  // src/core/rendering/html.ts
7
7
  var html = tagFactory("html");
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7XHATCIH.js";
5
5
  import {
6
6
  reactiveBinding
7
- } from "./chunk-ADWDDJ5M.js";
7
+ } from "./chunk-B2Y5BJSP.js";
8
8
 
9
9
  // src/core/rendering/createId.ts
10
10
  var COUNTER_KEY = /* @__PURE__ */ Symbol.for("sibujs.createId.v1");
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  bindAttribute,
3
+ noDocument,
3
4
  setSafeAttribute
4
- } from "./chunk-HMOPAC2Z.js";
5
+ } from "./chunk-XX4BRMWF.js";
5
6
  import {
6
7
  isBlockedElement
7
- } from "./chunk-3ACAAQIN.js";
8
+ } from "./chunk-F2UWOZ6J.js";
8
9
  import {
9
10
  isEventHandlerAttr,
10
11
  sanitizeCSSDeclaration,
@@ -12,7 +13,7 @@ import {
12
13
  } from "./chunk-EXXSN3BW.js";
13
14
  import {
14
15
  reactiveBinding
15
- } from "./chunk-ADWDDJ5M.js";
16
+ } from "./chunk-B2Y5BJSP.js";
16
17
  import {
17
18
  DEV,
18
19
  devWarn,
@@ -383,6 +384,7 @@ function tagFactory(tag, ns) {
383
384
  if (blocked) {
384
385
  throw new Error(`tagFactory: refusing to create <${tag}> \u2014 tag is blocked for security reasons.`);
385
386
  }
387
+ if (typeof document === "undefined") noDocument();
386
388
  const el = ns ? document.createElementNS(ns, tag) : document.createElement(tag);
387
389
  if (first === void 0) return el;
388
390
  if (typeof first === "string") {
@@ -2,7 +2,7 @@ import {
2
2
  ContextualRefusal,
3
3
  contextualAttributeRefusal,
4
4
  settleAttributeProvenance
5
- } from "./chunk-3ACAAQIN.js";
5
+ } from "./chunk-F2UWOZ6J.js";
6
6
  import {
7
7
  isEventHandlerAttr,
8
8
  isHtmlContentAttribute,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-EXXSN3BW.js";
11
11
  import {
12
12
  reactiveBinding
13
- } from "./chunk-ADWDDJ5M.js";
13
+ } from "./chunk-B2Y5BJSP.js";
14
14
  import {
15
15
  DEV,
16
16
  devWarn,
@@ -198,9 +198,21 @@ function bindDynamic(el, nameGetter, valueGetter) {
198
198
  };
199
199
  }
200
200
 
201
+ // src/core/rendering/requireDocument.ts
202
+ function noDocument() {
203
+ throw new Error(
204
+ "[SibuJS] renderToString needs a DOM: register happy-dom or jsdom globals first." + (DEV ? ' There is no global `document`, and SibuJS builds live DOM nodes, on the server too. For example: import { GlobalRegistrator } from "@happy-dom/global-registrator"; GlobalRegistrator.register(); See SSR in AGENTS.md \xA710.' : "")
205
+ );
206
+ }
207
+ function requireDocument() {
208
+ if (typeof document === "undefined") noDocument();
209
+ }
210
+
201
211
  export {
202
212
  setSafeAttribute,
203
213
  setTrustedAttribute,
204
214
  bindAttribute,
205
- bindDynamic
215
+ bindDynamic,
216
+ noDocument,
217
+ requireDocument
206
218
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5HZXGZ6T.js";
4
4
  import {
5
5
  signal
6
- } from "./chunk-F6B5CKF7.js";
6
+ } from "./chunk-IHA62NGJ.js";
7
7
  import {
8
8
  registerDisposer,
9
9
  reportError
@@ -3,18 +3,18 @@ import {
3
3
  } from "./chunk-7ZHH77QA.js";
4
4
  import {
5
5
  effect
6
- } from "./chunk-OJV2RW4D.js";
6
+ } from "./chunk-EMB5PG7V.js";
7
7
  import {
8
8
  stripHtml
9
9
  } from "./chunk-EXXSN3BW.js";
10
10
  import {
11
11
  signal
12
- } from "./chunk-F6B5CKF7.js";
12
+ } from "./chunk-IHA62NGJ.js";
13
13
  import {
14
14
  forEachSubscriber,
15
15
  getSubscriberCount,
16
16
  getSubscriberDeps
17
- } from "./chunk-ADWDDJ5M.js";
17
+ } from "./chunk-B2Y5BJSP.js";
18
18
  import {
19
19
  dispose,
20
20
  isDev
@@ -135,44 +135,45 @@ import {
135
135
  use,
136
136
  var_,
137
137
  video
138
- } from "./chunk-LQ2C44YH.js";
138
+ } from "./chunk-T5O2CUHV.js";
139
139
  import {
140
140
  trustHTML
141
- } from "./chunk-FC6KCJSA.js";
141
+ } from "./chunk-2F4PSJ5Z.js";
142
142
  import {
143
143
  watch
144
- } from "./chunk-REOAVT2M.js";
144
+ } from "./chunk-HXT2RNH5.js";
145
145
  import {
146
146
  __resetIdCounter,
147
147
  createId,
148
148
  domBinding
149
- } from "./chunk-CHQPJY47.js";
149
+ } from "./chunk-WFRQ6D7H.js";
150
150
  import {
151
151
  SVG_NS,
152
152
  bindChildNode,
153
153
  captureFocusWithin,
154
154
  restoreFocusWithin,
155
155
  tagFactory
156
- } from "./chunk-3Z7AEJMQ.js";
156
+ } from "./chunk-WH4U2VUE.js";
157
157
  import {
158
158
  bindAttribute,
159
159
  bindDynamic,
160
+ requireDocument,
160
161
  setSafeAttribute,
161
162
  setTrustedAttribute
162
- } from "./chunk-HMOPAC2Z.js";
163
+ } from "./chunk-XX4BRMWF.js";
163
164
  import {
164
165
  isCodeTextElement
165
- } from "./chunk-3ACAAQIN.js";
166
+ } from "./chunk-F2UWOZ6J.js";
166
167
  import {
167
168
  derived
168
- } from "./chunk-KFJUMC3Q.js";
169
+ } from "./chunk-RK7EPQPG.js";
169
170
  import {
170
171
  globalSingleton
171
172
  } from "./chunk-7ZHH77QA.js";
172
173
  import {
173
174
  effect,
174
175
  on
175
- } from "./chunk-OJV2RW4D.js";
176
+ } from "./chunk-EMB5PG7V.js";
176
177
  import {
177
178
  disableSSR,
178
179
  enableSSR,
@@ -191,7 +192,7 @@ import {
191
192
  external,
192
193
  isBatching,
193
194
  signal
194
- } from "./chunk-F6B5CKF7.js";
195
+ } from "./chunk-IHA62NGJ.js";
195
196
  import {
196
197
  bindOwnerScope,
197
198
  emitDevtools,
@@ -206,7 +207,7 @@ import {
206
207
  suspendTracking,
207
208
  track,
208
209
  untracked
209
- } from "./chunk-ADWDDJ5M.js";
210
+ } from "./chunk-B2Y5BJSP.js";
210
211
  import {
211
212
  DEV,
212
213
  MAX_DRAIN_TEARDOWNS,
@@ -1870,6 +1871,7 @@ function releaseBranchNode(node, owned) {
1870
1871
  node.parentNode?.removeChild(node);
1871
1872
  }
1872
1873
  function when(condition, thenBranch, elseBranch) {
1874
+ requireDocument();
1873
1875
  const anchor = document.createComment("when");
1874
1876
  let currentNode = null;
1875
1877
  let lastCondition;
@@ -1913,6 +1915,7 @@ function when(condition, thenBranch, elseBranch) {
1913
1915
  return anchor;
1914
1916
  }
1915
1917
  function match(value, cases, fallback) {
1918
+ requireDocument();
1916
1919
  const anchor = document.createComment("match");
1917
1920
  let currentNode = null;
1918
1921
  let lastKey;
@@ -2049,6 +2052,7 @@ function each(getArray, render, options) {
2049
2052
  options && typeof options.key === "function",
2050
2053
  "each: options.key must be a function that returns a unique key per item."
2051
2054
  );
2055
+ requireDocument();
2052
2056
  const anchor = document.createComment("each:anchor");
2053
2057
  const end = document.createComment("each:end");
2054
2058
  const oldKeysBufA = [];
@@ -2256,6 +2260,7 @@ function each(getArray, render, options) {
2256
2260
 
2257
2261
  // src/core/rendering/fragment.ts
2258
2262
  function Fragment(nodes) {
2263
+ requireDocument();
2259
2264
  const frag = document.createDocumentFragment();
2260
2265
  for (const child of nodes) {
2261
2266
  if (child == null || typeof child === "boolean") continue;
@@ -2622,6 +2627,7 @@ function __renderParsedTemplate(tree, values) {
2622
2627
  return renderTemplate(tree, values);
2623
2628
  }
2624
2629
  function renderTemplate(tmpl, values) {
2630
+ requireDocument();
2625
2631
  if (tmpl.length === 1 && tmpl[0].t === 0) {
2626
2632
  return executeElement(tmpl[0].el, values);
2627
2633
  }
@@ -2667,6 +2673,7 @@ function renderTemplate(tmpl, values) {
2667
2673
 
2668
2674
  // src/core/rendering/keepAlive.ts
2669
2675
  function KeepAlive(activeKey, cases, options) {
2676
+ requireDocument();
2670
2677
  const anchor = document.createComment("keep-alive");
2671
2678
  const cache2 = /* @__PURE__ */ new Map();
2672
2679
  const lruOrder = [];
@@ -2832,6 +2839,7 @@ function unmountRange(start, end) {
2832
2839
 
2833
2840
  // src/core/rendering/portal.ts
2834
2841
  function Portal(nodes, target) {
2842
+ requireDocument();
2835
2843
  const anchor = document.createComment("portal");
2836
2844
  const container = target || document.body;
2837
2845
  let portalContent = null;
package/dist/data.cjs CHANGED
@@ -686,7 +686,7 @@ function forEachSubscriber(signal2, visit) {
686
686
  }
687
687
 
688
688
  // src/reactivity/track.ts
689
- var _runtimeVersion = true ? "4.11.0" : "dev";
689
+ var _runtimeVersion = true ? "4.12.0" : "dev";
690
690
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
691
691
  function resolveReactiveApi() {
692
692
  const g = globalThis;
package/dist/data.js CHANGED
@@ -22,14 +22,14 @@ import {
22
22
  throttle,
23
23
  withLoader,
24
24
  withRetry
25
- } from "./chunk-5G53CC6L.js";
26
- import "./chunk-KFJUMC3Q.js";
25
+ } from "./chunk-QLG5IK7F.js";
26
+ import "./chunk-RK7EPQPG.js";
27
27
  import "./chunk-7ZHH77QA.js";
28
- import "./chunk-OJV2RW4D.js";
28
+ import "./chunk-EMB5PG7V.js";
29
29
  import "./chunk-EXXSN3BW.js";
30
30
  import "./chunk-7XHATCIH.js";
31
- import "./chunk-F6B5CKF7.js";
32
- import "./chunk-ADWDDJ5M.js";
31
+ import "./chunk-IHA62NGJ.js";
32
+ import "./chunk-B2Y5BJSP.js";
33
33
  import "./chunk-NYNYSPK7.js";
34
34
  export {
35
35
  __resetQueryCache,
package/dist/devtools.cjs CHANGED
@@ -870,7 +870,7 @@ function forEachSubscriber(signal2, visit) {
870
870
  }
871
871
 
872
872
  // src/reactivity/track.ts
873
- var _runtimeVersion = true ? "4.11.0" : "dev";
873
+ var _runtimeVersion = true ? "4.12.0" : "dev";
874
874
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
875
875
  function resolveReactiveApi() {
876
876
  const g = globalThis;
package/dist/devtools.js CHANGED
@@ -35,13 +35,13 @@ import {
35
35
  trackCleanup,
36
36
  walkDependencyGraph,
37
37
  withErrorTracking
38
- } from "./chunk-MCPL5WKQ.js";
38
+ } from "./chunk-ZPY2UAKM.js";
39
39
  import "./chunk-7ZHH77QA.js";
40
- import "./chunk-OJV2RW4D.js";
40
+ import "./chunk-EMB5PG7V.js";
41
41
  import "./chunk-EXXSN3BW.js";
42
42
  import "./chunk-7XHATCIH.js";
43
- import "./chunk-F6B5CKF7.js";
44
- import "./chunk-ADWDDJ5M.js";
43
+ import "./chunk-IHA62NGJ.js";
44
+ import "./chunk-B2Y5BJSP.js";
45
45
  import {
46
46
  isDev
47
47
  } from "./chunk-NYNYSPK7.js";
@@ -742,7 +742,7 @@ function forEachSubscriber(signal2, visit) {
742
742
  }
743
743
 
744
744
  // src/reactivity/track.ts
745
- var _runtimeVersion = true ? "4.11.0" : "dev";
745
+ var _runtimeVersion = true ? "4.12.0" : "dev";
746
746
  var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
747
747
  function resolveReactiveApi() {
748
748
  const g = globalThis;
@@ -2363,6 +2363,13 @@ function bindChildNode(placeholder, getter) {
2363
2363
  return reactiveBinding2(commit, placeholder);
2364
2364
  }
2365
2365
 
2366
+ // src/core/rendering/requireDocument.ts
2367
+ function noDocument() {
2368
+ throw new Error(
2369
+ "[SibuJS] renderToString needs a DOM: register happy-dom or jsdom globals first." + (DEV ? ' There is no global `document`, and SibuJS builds live DOM nodes, on the server too. For example: import { GlobalRegistrator } from "@happy-dom/global-registrator"; GlobalRegistrator.register(); See SSR in AGENTS.md \xA710.' : "")
2370
+ );
2371
+ }
2372
+
2366
2373
  // src/core/rendering/tagFactory.ts
2367
2374
  var CLOBBER_RISKY_IDS = /* @__PURE__ */ new Set([
2368
2375
  "config",
@@ -2542,6 +2549,7 @@ function tagFactory(tag, ns) {
2542
2549
  if (blocked) {
2543
2550
  throw new Error(`tagFactory: refusing to create <${tag}> \u2014 tag is blocked for security reasons.`);
2544
2551
  }
2552
+ if (typeof document === "undefined") noDocument();
2545
2553
  const el = ns ? document.createElementNS(ns, tag) : document.createElement(tag);
2546
2554
  if (first === void 0) return el;
2547
2555
  if (typeof first === "string") {
@@ -1,5 +1,5 @@
1
1
  import { S as SibuPlugin } from './plugin-DVgSnTfK.cjs';
2
- import { D as DerivedAccessor, T as TagProps } from './tagFactory-8qL9LCIx.cjs';
2
+ import { D as DerivedAccessor, T as TagProps } from './tagFactory-DkytnJws.cjs';
3
3
  import { N as NodeChildren } from './types-CJFViL6Q.cjs';
4
4
  import './signal-EotCj4hS.cjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { S as SibuPlugin } from './plugin-DVgSnTfK.js';
2
- import { D as DerivedAccessor, T as TagProps } from './tagFactory-BL2fymez.js';
2
+ import { D as DerivedAccessor, T as TagProps } from './tagFactory-Bnd_Nph9.js';
3
3
  import { N as NodeChildren } from './types-CJFViL6Q.js';
4
4
  import './signal-EotCj4hS.js';
5
5
 
package/dist/ecosystem.js CHANGED
@@ -7,19 +7,19 @@ import {
7
7
  mobXAdapter,
8
8
  reduxAdapter,
9
9
  zustandAdapter
10
- } from "./chunk-5IODQRR3.js";
10
+ } from "./chunk-NAVLCP4S.js";
11
11
  import "./chunk-J6FW5TV6.js";
12
- import "./chunk-3Z7AEJMQ.js";
13
- import "./chunk-HMOPAC2Z.js";
14
- import "./chunk-3ACAAQIN.js";
15
- import "./chunk-KFJUMC3Q.js";
12
+ import "./chunk-WH4U2VUE.js";
13
+ import "./chunk-XX4BRMWF.js";
14
+ import "./chunk-F2UWOZ6J.js";
15
+ import "./chunk-RK7EPQPG.js";
16
16
  import "./chunk-7ZHH77QA.js";
17
- import "./chunk-OJV2RW4D.js";
17
+ import "./chunk-EMB5PG7V.js";
18
18
  import "./chunk-EXXSN3BW.js";
19
19
  import "./chunk-7XHATCIH.js";
20
20
  import "./chunk-5HZXGZ6T.js";
21
- import "./chunk-F6B5CKF7.js";
22
- import "./chunk-ADWDDJ5M.js";
21
+ import "./chunk-IHA62NGJ.js";
22
+ import "./chunk-B2Y5BJSP.js";
23
23
  import "./chunk-NYNYSPK7.js";
24
24
  export {
25
25
  antdAdapter,