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.
- package/README.md +2 -2
- package/dist/browser.cjs +1 -1
- package/dist/browser.js +4 -4
- package/dist/build.cjs +19 -1
- package/dist/build.js +13 -12
- package/dist/cdn.dev.global.js +12 -12
- package/dist/cdn.full.dev.global.js +13 -13
- package/dist/cdn.full.global.js +12 -12
- package/dist/cdn.global.js +12 -12
- package/dist/{chunk-FC6KCJSA.js → chunk-2F4PSJ5Z.js} +162 -67
- package/dist/{chunk-R244COCR.js → chunk-653KGQS2.js} +3 -3
- package/dist/chunk-AM6DZLBM.js +181 -0
- package/dist/{chunk-ADWDDJ5M.js → chunk-B2Y5BJSP.js} +1 -1
- package/dist/{chunk-KREPZR2U.js → chunk-CI4W6XAU.js} +4 -4
- package/dist/{chunk-NBBFF5VA.js → chunk-DFZL3AX7.js} +6 -6
- package/dist/{chunk-OJV2RW4D.js → chunk-EMB5PG7V.js} +1 -1
- package/dist/{chunk-3ACAAQIN.js → chunk-F2UWOZ6J.js} +4 -0
- package/dist/{chunk-REOAVT2M.js → chunk-HXT2RNH5.js} +1 -1
- package/dist/{chunk-F6B5CKF7.js → chunk-IHA62NGJ.js} +1 -1
- package/dist/{chunk-VZDMHDVA.js → chunk-LEUEKK4G.js} +2 -2
- package/dist/{chunk-WQ7M57JJ.js → chunk-LXBMVGVB.js} +3 -3
- package/dist/{chunk-RRKGQKPU.js → chunk-LYTUTXQP.js} +4 -4
- package/dist/{chunk-5IODQRR3.js → chunk-NAVLCP4S.js} +4 -4
- package/dist/{chunk-YXJHLMRH.js → chunk-NB7TFSJE.js} +5 -5
- package/dist/{chunk-5G53CC6L.js → chunk-QLG5IK7F.js} +4 -4
- package/dist/{chunk-KFJUMC3Q.js → chunk-RK7EPQPG.js} +1 -1
- package/dist/{chunk-LQ2C44YH.js → chunk-T5O2CUHV.js} +1 -1
- package/dist/{chunk-CHQPJY47.js → chunk-WFRQ6D7H.js} +1 -1
- package/dist/{chunk-3Z7AEJMQ.js → chunk-WH4U2VUE.js} +5 -3
- package/dist/{chunk-HMOPAC2Z.js → chunk-XX4BRMWF.js} +15 -3
- package/dist/{chunk-7V7VFT7E.js → chunk-ZJCHY2IB.js} +1 -1
- package/dist/{chunk-MCPL5WKQ.js → chunk-ZPY2UAKM.js} +3 -3
- package/dist/{chunk-DEUONJYR.js → chunk-ZTYCCBU3.js} +19 -11
- package/dist/data.cjs +1 -1
- package/dist/data.js +5 -5
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.js +4 -4
- package/dist/ecosystem.cjs +9 -1
- package/dist/ecosystem.d.cts +1 -1
- package/dist/ecosystem.d.ts +1 -1
- package/dist/ecosystem.js +8 -8
- package/dist/extras.cjs +368 -154
- package/dist/extras.d.cts +2 -2
- package/dist/extras.d.ts +2 -2
- package/dist/extras.js +23 -22
- package/dist/index.cjs +19 -1
- package/dist/index.d.cts +91 -90
- package/dist/index.d.ts +91 -90
- package/dist/index.js +13 -12
- package/dist/motion.cjs +1 -1
- package/dist/motion.js +3 -3
- package/dist/patterns.cjs +1 -1
- package/dist/patterns.js +5 -5
- package/dist/performance.cjs +1 -1
- package/dist/performance.d.cts +2 -2
- package/dist/performance.d.ts +2 -2
- package/dist/performance.js +7 -6
- package/dist/plugins.cjs +344 -109
- package/dist/plugins.d.cts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +15 -12
- package/dist/{ssr-C8hgIAw7.d.cts → ssr-Db0Sgdu3.d.cts} +7 -4
- package/dist/{ssr-C8hgIAw7.d.ts → ssr-Db0Sgdu3.d.ts} +7 -4
- package/dist/{ssr-5OWAH3U2.js → ssr-VBM6J5SJ.js} +4 -2
- package/dist/ssr.cjs +346 -128
- package/dist/ssr.d.cts +1 -1
- package/dist/ssr.d.ts +1 -1
- package/dist/ssr.js +10 -9
- package/dist/{tagFactory-BL2fymez.d.ts → tagFactory-Bnd_Nph9.d.ts} +1 -1
- package/dist/{tagFactory-8qL9LCIx.d.cts → tagFactory-DkytnJws.d.cts} +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.js +2 -2
- package/dist/ui.cjs +251 -24
- package/dist/ui.d.cts +111 -1
- package/dist/ui.d.ts +111 -1
- package/dist/ui.js +130 -8
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +6 -6
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
watch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HXT2RNH5.js";
|
|
4
4
|
import {
|
|
5
5
|
createId,
|
|
6
6
|
domBinding,
|
|
7
7
|
idSegment
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WFRQ6D7H.js";
|
|
9
9
|
import {
|
|
10
10
|
derived
|
|
11
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
6
|
+
} from "./chunk-WH4U2VUE.js";
|
|
7
7
|
import {
|
|
8
8
|
derived
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
9
|
+
} from "./chunk-T5O2CUHV.js";
|
|
10
10
|
import {
|
|
11
11
|
STATIC_VALUE_RESOLVER,
|
|
12
12
|
planHeadElementEntry,
|
|
13
13
|
planMetaEntry
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
27
|
+
} from "./chunk-IHA62NGJ.js";
|
|
28
28
|
import {
|
|
29
29
|
bindOwnerScope
|
|
30
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
19
|
+
} from "./chunk-IHA62NGJ.js";
|
|
20
20
|
import {
|
|
21
21
|
untracked
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B2Y5BJSP.js";
|
|
23
23
|
import {
|
|
24
24
|
reportError
|
|
25
25
|
} from "./chunk-NYNYSPK7.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bindAttribute,
|
|
3
|
+
noDocument,
|
|
3
4
|
setSafeAttribute
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XX4BRMWF.js";
|
|
5
6
|
import {
|
|
6
7
|
isBlockedElement
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-7ZHH77QA.js";
|
|
4
4
|
import {
|
|
5
5
|
effect
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
12
|
+
} from "./chunk-IHA62NGJ.js";
|
|
13
13
|
import {
|
|
14
14
|
forEachSubscriber,
|
|
15
15
|
getSubscriberCount,
|
|
16
16
|
getSubscriberDeps
|
|
17
|
-
} from "./chunk-
|
|
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-
|
|
138
|
+
} from "./chunk-T5O2CUHV.js";
|
|
139
139
|
import {
|
|
140
140
|
trustHTML
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-2F4PSJ5Z.js";
|
|
142
142
|
import {
|
|
143
143
|
watch
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-HXT2RNH5.js";
|
|
145
145
|
import {
|
|
146
146
|
__resetIdCounter,
|
|
147
147
|
createId,
|
|
148
148
|
domBinding
|
|
149
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
163
|
+
} from "./chunk-XX4BRMWF.js";
|
|
163
164
|
import {
|
|
164
165
|
isCodeTextElement
|
|
165
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-F2UWOZ6J.js";
|
|
166
167
|
import {
|
|
167
168
|
derived
|
|
168
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-QLG5IK7F.js";
|
|
26
|
+
import "./chunk-RK7EPQPG.js";
|
|
27
27
|
import "./chunk-7ZHH77QA.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-EMB5PG7V.js";
|
|
29
29
|
import "./chunk-EXXSN3BW.js";
|
|
30
30
|
import "./chunk-7XHATCIH.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
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.
|
|
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-
|
|
38
|
+
} from "./chunk-ZPY2UAKM.js";
|
|
39
39
|
import "./chunk-7ZHH77QA.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-EMB5PG7V.js";
|
|
41
41
|
import "./chunk-EXXSN3BW.js";
|
|
42
42
|
import "./chunk-7XHATCIH.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-IHA62NGJ.js";
|
|
44
|
+
import "./chunk-B2Y5BJSP.js";
|
|
45
45
|
import {
|
|
46
46
|
isDev
|
|
47
47
|
} from "./chunk-NYNYSPK7.js";
|
package/dist/ecosystem.cjs
CHANGED
|
@@ -742,7 +742,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
// src/reactivity/track.ts
|
|
745
|
-
var _runtimeVersion = true ? "4.
|
|
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") {
|
package/dist/ecosystem.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SibuPlugin } from './plugin-DVgSnTfK.cjs';
|
|
2
|
-
import { D as DerivedAccessor, T as TagProps } from './tagFactory-
|
|
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
|
|
package/dist/ecosystem.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SibuPlugin } from './plugin-DVgSnTfK.js';
|
|
2
|
-
import { D as DerivedAccessor, T as TagProps } from './tagFactory-
|
|
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-
|
|
10
|
+
} from "./chunk-NAVLCP4S.js";
|
|
11
11
|
import "./chunk-J6FW5TV6.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-IHA62NGJ.js";
|
|
22
|
+
import "./chunk-B2Y5BJSP.js";
|
|
23
23
|
import "./chunk-NYNYSPK7.js";
|
|
24
24
|
export {
|
|
25
25
|
antdAdapter,
|