sibujs 3.3.1 → 3.3.2
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/dist/browser.cjs +21 -15
- package/dist/browser.js +5 -5
- package/dist/build.cjs +48 -20
- package/dist/build.js +13 -13
- package/dist/cdn.global.js +7 -7
- package/dist/{chunk-IKLYI3RF.js → chunk-2ARSB7NG.js} +36 -13
- package/dist/{chunk-TEFZT5PJ.js → chunk-4NJEAPLI.js} +1 -1
- package/dist/{chunk-F7FXQ3QS.js → chunk-5VH3GIDX.js} +1 -1
- package/dist/{chunk-RYMOSG5B.js → chunk-62V653X2.js} +16 -21
- package/dist/{chunk-XH2RTYEQ.js → chunk-655B7MMR.js} +3 -3
- package/dist/{chunk-37BUKSLH.js → chunk-6TCOWMGY.js} +1 -1
- package/dist/{chunk-6LTFHJQG.js → chunk-A7CZH3GN.js} +3 -3
- package/dist/{chunk-ULLTNDRA.js → chunk-AEOLHSSQ.js} +3 -3
- package/dist/chunk-CCSJMTRN.js +15 -0
- package/dist/{chunk-R3QEDXFS.js → chunk-EX77FXTT.js} +1 -1
- package/dist/{chunk-ZUVLC7TM.js → chunk-FJIRS3FM.js} +1 -1
- package/dist/{chunk-Z37APKBV.js → chunk-FJO2ZL4Q.js} +4 -4
- package/dist/{chunk-WW6DAGGR.js → chunk-G6N3LMO2.js} +1 -1
- package/dist/{chunk-WL7BIR6O.js → chunk-IQJ36UTJ.js} +1 -1
- package/dist/{chunk-WZG2SZOT.js → chunk-JCQG2I2G.js} +1 -1
- package/dist/{chunk-MHBCEJQO.js → chunk-N5TQVEKE.js} +2 -2
- package/dist/{chunk-4UUMSLSL.js → chunk-P7C7SEJV.js} +4 -4
- package/dist/{chunk-VOVVTOEA.js → chunk-Q46YIQYW.js} +2 -2
- package/dist/{chunk-NHKQKKZU.js → chunk-QCFBIVIQ.js} +1 -1
- package/dist/{chunk-SLMFA3ZZ.js → chunk-RLTFJYDN.js} +2 -2
- package/dist/{chunk-GOJMFRBL.js → chunk-S3NFJO6L.js} +20 -14
- package/dist/{chunk-AMIKDMLP.js → chunk-YUBEOWII.js} +5 -5
- package/dist/{chunk-M5KBNOSJ.js → chunk-YUR5SX7F.js} +2 -2
- package/dist/{chunk-LU2MQXQQ.js → chunk-ZEUP4TUD.js} +2 -2
- package/dist/data.cjs +21 -15
- package/dist/data.js +7 -7
- package/dist/devtools.cjs +21 -15
- package/dist/devtools.js +5 -5
- package/dist/ecosystem.cjs +21 -15
- package/dist/ecosystem.js +8 -8
- package/dist/extras.cjs +32 -31
- package/dist/extras.js +22 -22
- package/dist/index.cjs +50 -20
- package/dist/index.d.cts +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.js +17 -13
- package/dist/motion.cjs +1 -1
- package/dist/motion.js +3 -3
- package/dist/patterns.cjs +21 -15
- package/dist/patterns.js +6 -6
- package/dist/performance.cjs +21 -15
- package/dist/performance.js +6 -6
- package/dist/plugins.cjs +110 -103
- package/dist/plugins.js +95 -94
- package/dist/{ssr-6D67RAVB.js → ssr-2PPULEK2.js} +2 -2
- package/dist/ssr.cjs +21 -15
- package/dist/ssr.js +9 -9
- package/dist/testing.cjs +21 -15
- package/dist/testing.js +3 -3
- package/dist/ui.cjs +36 -34
- package/dist/ui.js +8 -8
- package/dist/widgets.cjs +21 -15
- package/dist/widgets.js +7 -7
- package/package.json +1 -1
- package/dist/chunk-YT6HQ6AM.js +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__resetIdCounter,
|
|
3
3
|
createId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CCSJMTRN.js";
|
|
5
5
|
import {
|
|
6
6
|
a,
|
|
7
7
|
abbr,
|
|
@@ -139,28 +139,28 @@ import {
|
|
|
139
139
|
use,
|
|
140
140
|
var_,
|
|
141
141
|
video
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-6TCOWMGY.js";
|
|
143
143
|
import {
|
|
144
144
|
watch
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-RLTFJYDN.js";
|
|
146
146
|
import {
|
|
147
147
|
trustHTML
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-EX77FXTT.js";
|
|
149
149
|
import {
|
|
150
150
|
context
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-5VH3GIDX.js";
|
|
152
152
|
import {
|
|
153
153
|
SVG_NS,
|
|
154
154
|
bindChildNode,
|
|
155
155
|
tagFactory
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-ZEUP4TUD.js";
|
|
157
157
|
import {
|
|
158
158
|
bindAttribute,
|
|
159
159
|
bindDynamic
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-QCFBIVIQ.js";
|
|
161
161
|
import {
|
|
162
162
|
derived
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-G6N3LMO2.js";
|
|
164
164
|
import {
|
|
165
165
|
checkLeaks,
|
|
166
166
|
dispose,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
import {
|
|
176
176
|
effect,
|
|
177
177
|
on
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-N5TQVEKE.js";
|
|
179
179
|
import {
|
|
180
180
|
disableSSR,
|
|
181
181
|
enableSSR,
|
|
@@ -184,13 +184,13 @@ import {
|
|
|
184
184
|
isSSR,
|
|
185
185
|
runInSSRContext,
|
|
186
186
|
withSSR
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-S3NFJO6L.js";
|
|
188
188
|
import {
|
|
189
189
|
batch,
|
|
190
190
|
enqueueBatchedSignal,
|
|
191
191
|
isBatching,
|
|
192
192
|
signal
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-JCQG2I2G.js";
|
|
194
194
|
import {
|
|
195
195
|
notifySubscribers,
|
|
196
196
|
recordDependency,
|
|
@@ -200,7 +200,7 @@ import {
|
|
|
200
200
|
suspendTracking,
|
|
201
201
|
track,
|
|
202
202
|
untracked
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-4NJEAPLI.js";
|
|
204
204
|
import {
|
|
205
205
|
__export,
|
|
206
206
|
devAssert,
|
|
@@ -290,6 +290,7 @@ __export(index_exports, {
|
|
|
290
290
|
footer: () => footer,
|
|
291
291
|
form: () => form,
|
|
292
292
|
g: () => g,
|
|
293
|
+
getAction: () => getAction,
|
|
293
294
|
getRequestScopedCache: () => getRequestScopedCache,
|
|
294
295
|
getSSRStore: () => getSSRStore,
|
|
295
296
|
getSlot: () => getSlot,
|
|
@@ -358,6 +359,7 @@ __export(index_exports, {
|
|
|
358
359
|
reactiveArray: () => reactiveArray,
|
|
359
360
|
rect: () => rect,
|
|
360
361
|
ref: () => ref,
|
|
362
|
+
registerAction: () => registerAction,
|
|
361
363
|
registerComponent: () => registerComponent,
|
|
362
364
|
registerDisposer: () => registerDisposer,
|
|
363
365
|
resolveComponent: () => resolveComponent,
|
|
@@ -1320,7 +1322,21 @@ function KeepAlive(activeKey, cases, options) {
|
|
|
1320
1322
|
}
|
|
1321
1323
|
|
|
1322
1324
|
// src/core/rendering/action.ts
|
|
1323
|
-
|
|
1325
|
+
var ACTIONS_KEY = /* @__PURE__ */ Symbol.for("sibujs.actions.v1");
|
|
1326
|
+
var _actions = globalThis[ACTIONS_KEY] ?? (globalThis[ACTIONS_KEY] = /* @__PURE__ */ new Map());
|
|
1327
|
+
function registerAction(name, fn) {
|
|
1328
|
+
_actions.set(name, fn);
|
|
1329
|
+
}
|
|
1330
|
+
function getAction(name) {
|
|
1331
|
+
return _actions.get(name);
|
|
1332
|
+
}
|
|
1333
|
+
function action(element, action2, param2) {
|
|
1334
|
+
const actionFn = typeof action2 === "string" ? getAction(action2) : action2;
|
|
1335
|
+
if (!actionFn) {
|
|
1336
|
+
throw new Error(
|
|
1337
|
+
`[SibuJS] No action registered under the name "${action2}". Register it with registerAction() before applying it by name.`
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1324
1340
|
const cleanup = actionFn(element, param2);
|
|
1325
1341
|
if (typeof cleanup === "function") {
|
|
1326
1342
|
registerDisposer(element, cleanup);
|
|
@@ -1397,6 +1413,11 @@ var trapFocus = (element) => {
|
|
|
1397
1413
|
element.addEventListener("keydown", handler);
|
|
1398
1414
|
return () => element.removeEventListener("keydown", handler);
|
|
1399
1415
|
};
|
|
1416
|
+
registerAction("clickOutside", clickOutside);
|
|
1417
|
+
registerAction("longPress", longPress);
|
|
1418
|
+
registerAction("copyOnClick", copyOnClick);
|
|
1419
|
+
registerAction("autoResize", autoResize);
|
|
1420
|
+
registerAction("trapFocus", trapFocus);
|
|
1400
1421
|
|
|
1401
1422
|
// src/core/rendering/catch.ts
|
|
1402
1423
|
var globalErrorHandler = null;
|
|
@@ -3164,6 +3185,8 @@ export {
|
|
|
3164
3185
|
when,
|
|
3165
3186
|
match,
|
|
3166
3187
|
KeepAlive,
|
|
3188
|
+
registerAction,
|
|
3189
|
+
getAction,
|
|
3167
3190
|
action,
|
|
3168
3191
|
clickOutside,
|
|
3169
3192
|
longPress,
|
|
@@ -419,7 +419,7 @@ function forEachSubscriber(signal, visit) {
|
|
|
419
419
|
|
|
420
420
|
// src/reactivity/track.ts
|
|
421
421
|
var _isDev2 = isDev();
|
|
422
|
-
var _runtimeVersion =
|
|
422
|
+
var _runtimeVersion = true ? "3.3.2" : "dev";
|
|
423
423
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
424
424
|
function resolveReactiveApi() {
|
|
425
425
|
const g = globalThis;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bindAttribute
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QCFBIVIQ.js";
|
|
4
4
|
import {
|
|
5
5
|
derived
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G6N3LMO2.js";
|
|
7
7
|
import {
|
|
8
8
|
dispose,
|
|
9
9
|
registerDisposer
|
|
10
10
|
} from "./chunk-5VGSK6D2.js";
|
|
11
11
|
import {
|
|
12
12
|
effect
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-N5TQVEKE.js";
|
|
14
14
|
import {
|
|
15
15
|
signal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JCQG2I2G.js";
|
|
17
17
|
import {
|
|
18
18
|
track
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4NJEAPLI.js";
|
|
20
20
|
|
|
21
21
|
// src/ui/form.ts
|
|
22
22
|
function required(message = "This field is required") {
|
|
@@ -74,23 +74,18 @@ function custom(fn, message) {
|
|
|
74
74
|
return (value) => fn(value) ? null : message;
|
|
75
75
|
}
|
|
76
76
|
function bindField(field, extras) {
|
|
77
|
+
const readControlValue = (target) => {
|
|
78
|
+
if ("checked" in target && target.type === "checkbox") {
|
|
79
|
+
return target.checked;
|
|
80
|
+
}
|
|
81
|
+
if (target instanceof HTMLSelectElement && target.multiple) {
|
|
82
|
+
return Array.from(target.selectedOptions, (o) => o.value);
|
|
83
|
+
}
|
|
84
|
+
return target.value;
|
|
85
|
+
};
|
|
77
86
|
const fieldOn = {
|
|
78
|
-
input: (e) =>
|
|
79
|
-
|
|
80
|
-
if (target.type === "checkbox") {
|
|
81
|
-
field.set(target.checked);
|
|
82
|
-
} else {
|
|
83
|
-
field.set(target.value);
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
change: (e) => {
|
|
87
|
-
const target = e.target;
|
|
88
|
-
if ("checked" in target && target.type === "checkbox") {
|
|
89
|
-
field.set(target.checked);
|
|
90
|
-
} else {
|
|
91
|
-
field.set(target.value);
|
|
92
|
-
}
|
|
93
|
-
},
|
|
87
|
+
input: (e) => field.set(readControlValue(e.target)),
|
|
88
|
+
change: (e) => field.set(readControlValue(e.target)),
|
|
94
89
|
blur: () => field.touch()
|
|
95
90
|
};
|
|
96
91
|
const { on: extraOn, value: _ignoreValue, ...restExtras } = extras ?? {};
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-H3SRKIYX.js";
|
|
5
5
|
import {
|
|
6
6
|
derived
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G6N3LMO2.js";
|
|
8
8
|
import {
|
|
9
9
|
effect
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N5TQVEKE.js";
|
|
11
11
|
import {
|
|
12
12
|
batch,
|
|
13
13
|
signal
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JCQG2I2G.js";
|
|
15
15
|
|
|
16
16
|
// src/patterns/machine.ts
|
|
17
17
|
function machine(config) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
div,
|
|
3
3
|
span
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6TCOWMGY.js";
|
|
5
5
|
import {
|
|
6
6
|
isEventHandlerAttr,
|
|
7
7
|
sanitizeUrl,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-L3GAGWCC.js";
|
|
10
10
|
import {
|
|
11
11
|
effect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N5TQVEKE.js";
|
|
13
13
|
import {
|
|
14
14
|
batch,
|
|
15
15
|
signal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JCQG2I2G.js";
|
|
17
17
|
|
|
18
18
|
// src/platform/head.ts
|
|
19
19
|
var HEAD_URL_ATTRS = /* @__PURE__ */ new Set(["href", "src"]);
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-L3GAGWCC.js";
|
|
7
7
|
import {
|
|
8
8
|
effect
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N5TQVEKE.js";
|
|
10
10
|
import {
|
|
11
11
|
signal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JCQG2I2G.js";
|
|
13
13
|
import {
|
|
14
14
|
forEachSubscriber,
|
|
15
15
|
getSubscriberCount,
|
|
16
16
|
getSubscriberDeps
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4NJEAPLI.js";
|
|
18
18
|
import {
|
|
19
19
|
isDev
|
|
20
20
|
} from "./chunk-COY6PUD2.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/core/rendering/createId.ts
|
|
2
|
+
var COUNTER_KEY = /* @__PURE__ */ Symbol.for("sibujs.createId.v1");
|
|
3
|
+
var _counter = globalThis[COUNTER_KEY] ?? (globalThis[COUNTER_KEY] = { n: 0 });
|
|
4
|
+
function createId(prefix = "sibu") {
|
|
5
|
+
_counter.n++;
|
|
6
|
+
return `${prefix}-${_counter.n}`;
|
|
7
|
+
}
|
|
8
|
+
function __resetIdCounter() {
|
|
9
|
+
_counter.n = 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
createId,
|
|
14
|
+
__resetIdCounter
|
|
15
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
watch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RLTFJYDN.js";
|
|
4
4
|
import {
|
|
5
5
|
derived
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G6N3LMO2.js";
|
|
7
7
|
import {
|
|
8
8
|
stripHtml
|
|
9
9
|
} from "./chunk-L3GAGWCC.js";
|
|
10
10
|
import {
|
|
11
11
|
effect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N5TQVEKE.js";
|
|
13
13
|
import {
|
|
14
14
|
batch,
|
|
15
15
|
signal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JCQG2I2G.js";
|
|
17
17
|
|
|
18
18
|
// src/widgets/Combobox.ts
|
|
19
19
|
var comboboxIdCounter = 0;
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-3JHCYHWN.js";
|
|
4
4
|
import {
|
|
5
5
|
tagFactory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZEUP4TUD.js";
|
|
7
7
|
import {
|
|
8
8
|
derived
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-G6N3LMO2.js";
|
|
10
10
|
import {
|
|
11
11
|
effect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N5TQVEKE.js";
|
|
13
13
|
import {
|
|
14
14
|
batch,
|
|
15
15
|
signal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JCQG2I2G.js";
|
|
17
17
|
|
|
18
18
|
// src/ecosystem/adapters/mobx.ts
|
|
19
19
|
function mobXAdapter(options) {
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-H3SRKIYX.js";
|
|
4
4
|
import {
|
|
5
5
|
effect
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N5TQVEKE.js";
|
|
7
7
|
import {
|
|
8
8
|
batch,
|
|
9
9
|
signal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JCQG2I2G.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/media.ts
|
|
13
13
|
function media(query) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isSSR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S3NFJO6L.js";
|
|
4
4
|
import {
|
|
5
5
|
resumeTracking,
|
|
6
6
|
suspendTracking,
|
|
7
7
|
track
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4NJEAPLI.js";
|
|
9
9
|
import {
|
|
10
10
|
devAssert
|
|
11
11
|
} from "./chunk-COY6PUD2.js";
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
// src/core/ssr-context.ts
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var SSR_KEY = /* @__PURE__ */ Symbol.for("sibujs.ssr.v1");
|
|
3
|
+
function detectSSRShared() {
|
|
4
|
+
let detected = null;
|
|
5
|
+
try {
|
|
6
|
+
if (typeof process !== "undefined" && process.versions && process.versions.node) {
|
|
7
|
+
let mod = null;
|
|
8
|
+
const getBuiltin = process.getBuiltinModule;
|
|
9
|
+
if (typeof getBuiltin === "function") {
|
|
10
|
+
mod = getBuiltin("node:async_hooks");
|
|
11
|
+
} else {
|
|
12
|
+
const req = Function("return typeof require==='function'?require:null")();
|
|
13
|
+
if (req) mod = req("node:async_hooks");
|
|
14
|
+
}
|
|
15
|
+
if (mod) detected = new mod.AsyncLocalStorage();
|
|
12
16
|
}
|
|
13
|
-
|
|
17
|
+
} catch {
|
|
18
|
+
detected = null;
|
|
14
19
|
}
|
|
15
|
-
|
|
16
|
-
als = null;
|
|
20
|
+
return { als: detected, fallbackStore: { ssr: false, suspenseIdCounter: 0 } };
|
|
17
21
|
}
|
|
18
|
-
var
|
|
22
|
+
var _shared = globalThis[SSR_KEY] ?? (globalThis[SSR_KEY] = detectSSRShared());
|
|
23
|
+
var als = _shared.als;
|
|
24
|
+
var fallbackStore = _shared.fallbackStore;
|
|
19
25
|
function getSSRStore() {
|
|
20
26
|
if (als) {
|
|
21
27
|
const s = als.getStore();
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
context
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5VH3GIDX.js";
|
|
4
4
|
import {
|
|
5
5
|
derived
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G6N3LMO2.js";
|
|
7
7
|
import {
|
|
8
8
|
sanitizeUrl
|
|
9
9
|
} from "./chunk-L3GAGWCC.js";
|
|
10
10
|
import {
|
|
11
11
|
effect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N5TQVEKE.js";
|
|
13
13
|
import {
|
|
14
14
|
getRequestScopedCache
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-S3NFJO6L.js";
|
|
16
16
|
import {
|
|
17
17
|
batch,
|
|
18
18
|
signal
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JCQG2I2G.js";
|
|
20
20
|
|
|
21
21
|
// src/data/retry.ts
|
|
22
22
|
function calculateDelay(attempt, strategy, baseDelay, maxDelay, jitter) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bindAttribute
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QCFBIVIQ.js";
|
|
4
4
|
import {
|
|
5
5
|
dispose,
|
|
6
6
|
registerDisposer
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
reactiveBinding,
|
|
15
15
|
track
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4NJEAPLI.js";
|
|
17
17
|
import {
|
|
18
18
|
devWarn,
|
|
19
19
|
isDev
|
package/dist/data.cjs
CHANGED
|
@@ -482,7 +482,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
482
482
|
|
|
483
483
|
// src/reactivity/track.ts
|
|
484
484
|
var _isDev3 = isDev();
|
|
485
|
-
var _runtimeVersion =
|
|
485
|
+
var _runtimeVersion = true ? "3.3.2" : "dev";
|
|
486
486
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
487
487
|
function resolveReactiveApi() {
|
|
488
488
|
const g = globalThis;
|
|
@@ -618,23 +618,29 @@ function derived(getter, options) {
|
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
// src/core/ssr-context.ts
|
|
621
|
-
var
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
621
|
+
var SSR_KEY = /* @__PURE__ */ Symbol.for("sibujs.ssr.v1");
|
|
622
|
+
function detectSSRShared() {
|
|
623
|
+
let detected = null;
|
|
624
|
+
try {
|
|
625
|
+
if (typeof process !== "undefined" && process.versions && process.versions.node) {
|
|
626
|
+
let mod = null;
|
|
627
|
+
const getBuiltin = process.getBuiltinModule;
|
|
628
|
+
if (typeof getBuiltin === "function") {
|
|
629
|
+
mod = getBuiltin("node:async_hooks");
|
|
630
|
+
} else {
|
|
631
|
+
const req = Function("return typeof require==='function'?require:null")();
|
|
632
|
+
if (req) mod = req("node:async_hooks");
|
|
633
|
+
}
|
|
634
|
+
if (mod) detected = new mod.AsyncLocalStorage();
|
|
631
635
|
}
|
|
632
|
-
|
|
636
|
+
} catch {
|
|
637
|
+
detected = null;
|
|
633
638
|
}
|
|
634
|
-
|
|
635
|
-
als = null;
|
|
639
|
+
return { als: detected, fallbackStore: { ssr: false, suspenseIdCounter: 0 } };
|
|
636
640
|
}
|
|
637
|
-
var
|
|
641
|
+
var _shared = globalThis[SSR_KEY] ?? (globalThis[SSR_KEY] = detectSSRShared());
|
|
642
|
+
var als = _shared.als;
|
|
643
|
+
var fallbackStore = _shared.fallbackStore;
|
|
638
644
|
function getSSRStore() {
|
|
639
645
|
if (als) {
|
|
640
646
|
const s = als.getStore();
|
package/dist/data.js
CHANGED
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
syncAdapter,
|
|
21
21
|
throttle,
|
|
22
22
|
withRetry
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-YUBEOWII.js";
|
|
24
|
+
import "./chunk-5VH3GIDX.js";
|
|
25
|
+
import "./chunk-G6N3LMO2.js";
|
|
26
26
|
import "./chunk-L3GAGWCC.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-N5TQVEKE.js";
|
|
28
|
+
import "./chunk-S3NFJO6L.js";
|
|
29
|
+
import "./chunk-JCQG2I2G.js";
|
|
30
|
+
import "./chunk-4NJEAPLI.js";
|
|
31
31
|
import "./chunk-COY6PUD2.js";
|
|
32
32
|
export {
|
|
33
33
|
__resetQueryCache,
|