@fluixi/template-runtime 1.0.0-alpha.115 → 1.0.0-alpha.116
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/cdn/dev/fluixi.global.js +38 -37
- package/dist/cdn/fluixi.global.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @fluixi/template-runtime v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/template-runtime v1.0.0-alpha.116 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
"use strict";
|
|
3
3
|
var Fluixi = (() => {
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -250,10 +250,10 @@ var Fluixi = (() => {
|
|
|
250
250
|
// ../reactive/dist/chunk-ODSDGVE6.mjs
|
|
251
251
|
var $PROXY = /* @__PURE__ */ Symbol.for("fluixi-proxy");
|
|
252
252
|
|
|
253
|
-
// ../reactive/dist/chunk-
|
|
254
|
-
var VERSION = "1.0.0-alpha.
|
|
253
|
+
// ../reactive/dist/chunk-4W5QNHDG.mjs
|
|
254
|
+
var VERSION = "1.0.0-alpha.116";
|
|
255
255
|
|
|
256
|
-
// ../reactive/dist/chunk-
|
|
256
|
+
// ../reactive/dist/chunk-QAFGATWN.mjs
|
|
257
257
|
var MAJOR = VERSION.split(".")[0];
|
|
258
258
|
var KEY = `__fluixi_signal_state_v${MAJOR}__`;
|
|
259
259
|
var VERSIONS_KEY = `__fluixi_signal_builds_v${MAJOR}__`;
|
|
@@ -296,7 +296,7 @@ var Fluixi = (() => {
|
|
|
296
296
|
return [...new Set(realm[VERSIONS_KEY] ?? [])];
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
// ../reactive/dist/chunk-
|
|
299
|
+
// ../reactive/dist/chunk-2QTV6IAK.mjs
|
|
300
300
|
function observeReactiveNodes(next) {
|
|
301
301
|
G.observer = next;
|
|
302
302
|
return () => {
|
|
@@ -379,7 +379,7 @@ var Fluixi = (() => {
|
|
|
379
379
|
return G.observer != null;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
// ../reactive/dist/chunk-
|
|
382
|
+
// ../reactive/dist/chunk-ZSE4RPUS.mjs
|
|
383
383
|
var CLEAN = 0;
|
|
384
384
|
var CHECK = 1;
|
|
385
385
|
var DIRTY = 2;
|
|
@@ -546,7 +546,7 @@ var Fluixi = (() => {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
// ../reactive/dist/chunk-
|
|
549
|
+
// ../reactive/dist/chunk-QPKMP7PH.mjs
|
|
550
550
|
function createChildOwner(parent) {
|
|
551
551
|
const owner = makeOwner(parent);
|
|
552
552
|
if (parent) (parent.owned ??= []).push(owner);
|
|
@@ -770,7 +770,7 @@ var Fluixi = (() => {
|
|
|
770
770
|
return () => node.dispose();
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
// ../reactive/dist/chunk-
|
|
773
|
+
// ../reactive/dist/chunk-HPWLI4GX.mjs
|
|
774
774
|
function isThenable(v) {
|
|
775
775
|
return !!v && typeof v.then === "function";
|
|
776
776
|
}
|
|
@@ -878,7 +878,7 @@ var Fluixi = (() => {
|
|
|
878
878
|
return Promise.resolve();
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
// ../reactive/dist/chunk-
|
|
881
|
+
// ../reactive/dist/chunk-EZILM3YG.mjs
|
|
882
882
|
var ErrorContext = createContext();
|
|
883
883
|
setErrorHandler((error, owner) => {
|
|
884
884
|
const boundary = readContextFrom(owner, ErrorContext);
|
|
@@ -916,7 +916,7 @@ var Fluixi = (() => {
|
|
|
916
916
|
return typeof value === "function" && value[$SIGNAL2] === true;
|
|
917
917
|
}
|
|
918
918
|
|
|
919
|
-
// ../reactive/dist/chunk-
|
|
919
|
+
// ../reactive/dist/chunk-LSRODUQU.mjs
|
|
920
920
|
function scoped(child, provider) {
|
|
921
921
|
return () => {
|
|
922
922
|
const scope = createChildOwner(provider);
|
|
@@ -1004,7 +1004,7 @@ var Fluixi = (() => {
|
|
|
1004
1004
|
_cacheScope = fn;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
|
-
// ../reactive/dist/chunk-
|
|
1007
|
+
// ../reactive/dist/chunk-AWKID2L6.mjs
|
|
1008
1008
|
function isPromise(v) {
|
|
1009
1009
|
return !!v && typeof v.then === "function";
|
|
1010
1010
|
}
|
|
@@ -1144,13 +1144,13 @@ var Fluixi = (() => {
|
|
|
1144
1144
|
];
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
|
-
// ../reactive/dist/chunk-
|
|
1147
|
+
// ../reactive/dist/chunk-67I3ZGVZ.mjs
|
|
1148
1148
|
function resource(...args) {
|
|
1149
1149
|
const [read, actions] = createResource(...args);
|
|
1150
1150
|
return Object.assign(read, actions);
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
|
-
// ../reactive/dist/chunk-
|
|
1153
|
+
// ../reactive/dist/chunk-KCSSF43A.mjs
|
|
1154
1154
|
function withoutHotState(fn) {
|
|
1155
1155
|
const hook2 = G.hot;
|
|
1156
1156
|
if (!hook2) return fn();
|
|
@@ -1162,7 +1162,7 @@ var Fluixi = (() => {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
1165
|
-
// ../reactive/dist/chunk-
|
|
1165
|
+
// ../reactive/dist/chunk-WEKB3G3H.mjs
|
|
1166
1166
|
function signal(value, options) {
|
|
1167
1167
|
const [read, write] = createSignal(value, options);
|
|
1168
1168
|
read.set = write;
|
|
@@ -1175,7 +1175,7 @@ var Fluixi = (() => {
|
|
|
1175
1175
|
return createEffect(fn, value, options);
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
|
-
// ../reactive/dist/chunk-
|
|
1178
|
+
// ../reactive/dist/chunk-6LHXPZIY.mjs
|
|
1179
1179
|
function resolveChildrenValue(children) {
|
|
1180
1180
|
if (typeof children === "function" && !children.length) {
|
|
1181
1181
|
const result = children();
|
|
@@ -1197,7 +1197,7 @@ var Fluixi = (() => {
|
|
|
1197
1197
|
return __DEV__ ? createMemo(() => resolveChildrenValue(children()), void 0, { name: "children" }) : createMemo(() => resolveChildrenValue(children()));
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
|
-
// ../reactive/dist/chunk-
|
|
1200
|
+
// ../reactive/dist/chunk-IIUDLHD3.mjs
|
|
1201
1201
|
function lazyIndex(initial) {
|
|
1202
1202
|
let current = initial;
|
|
1203
1203
|
let state2 = null;
|
|
@@ -1715,10 +1715,10 @@ var Fluixi = (() => {
|
|
|
1715
1715
|
return value;
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
|
-
// ../dom/dist/chunk-
|
|
1719
|
-
var VERSION2 = "1.0.0-alpha.
|
|
1718
|
+
// ../dom/dist/chunk-4W5QNHDG.mjs
|
|
1719
|
+
var VERSION2 = "1.0.0-alpha.116";
|
|
1720
1720
|
|
|
1721
|
-
// ../dom/dist/chunk-
|
|
1721
|
+
// ../dom/dist/chunk-4WQBU6A7.mjs
|
|
1722
1722
|
var versions = { dom: VERSION2, reactive: VERSION };
|
|
1723
1723
|
function registerCoreVersion(version) {
|
|
1724
1724
|
versions.core = version;
|
|
@@ -1760,7 +1760,7 @@ var Fluixi = (() => {
|
|
|
1760
1760
|
);
|
|
1761
1761
|
}
|
|
1762
1762
|
|
|
1763
|
-
// ../dom/dist/chunk-
|
|
1763
|
+
// ../dom/dist/chunk-LMI6RGL4.mjs
|
|
1764
1764
|
var hydration = {
|
|
1765
1765
|
active: false,
|
|
1766
1766
|
cursor: null,
|
|
@@ -1878,7 +1878,7 @@ var Fluixi = (() => {
|
|
|
1878
1878
|
return hydration.active;
|
|
1879
1879
|
}
|
|
1880
1880
|
|
|
1881
|
-
// ../dom/dist/chunk-
|
|
1881
|
+
// ../dom/dist/chunk-FGKHFNMX.mjs
|
|
1882
1882
|
function asRouter(value) {
|
|
1883
1883
|
Object.defineProperty(value, /* @__PURE__ */ Symbol.for("fluixi-router"), { value: true, enumerable: true });
|
|
1884
1884
|
return value;
|
|
@@ -1970,7 +1970,7 @@ var Fluixi = (() => {
|
|
|
1970
1970
|
return asComponent(() => runWithOwner(owner, build3));
|
|
1971
1971
|
}
|
|
1972
1972
|
|
|
1973
|
-
// ../dom/dist/chunk-
|
|
1973
|
+
// ../dom/dist/chunk-P22G3GXT.mjs
|
|
1974
1974
|
function getElementFingerprint(el) {
|
|
1975
1975
|
const parts = [];
|
|
1976
1976
|
while (el && el.nodeType === 1) {
|
|
@@ -3360,7 +3360,7 @@ var Fluixi = (() => {
|
|
|
3360
3360
|
);
|
|
3361
3361
|
}
|
|
3362
3362
|
|
|
3363
|
-
// ../dom/dist/chunk-
|
|
3363
|
+
// ../dom/dist/chunk-ONUHEFRU.mjs
|
|
3364
3364
|
function Portal(props) {
|
|
3365
3365
|
if (isServer()) return null;
|
|
3366
3366
|
const getMount = () => {
|
|
@@ -3465,7 +3465,7 @@ var Fluixi = (() => {
|
|
|
3465
3465
|
}, void 0, { name: "StyleMap" });
|
|
3466
3466
|
}
|
|
3467
3467
|
|
|
3468
|
-
// ../dom/dist/chunk-
|
|
3468
|
+
// ../dom/dist/chunk-OLXCCNWG.mjs
|
|
3469
3469
|
var MATCH_MARKER = /* @__PURE__ */ Symbol("match");
|
|
3470
3470
|
function Match(props) {
|
|
3471
3471
|
return {
|
|
@@ -3510,7 +3510,8 @@ var Fluixi = (() => {
|
|
|
3510
3510
|
enterBranch(i);
|
|
3511
3511
|
return runWithOwner(branchScope, () => {
|
|
3512
3512
|
const children2 = branch.children;
|
|
3513
|
-
|
|
3513
|
+
if (isSignal(children2)) return children2;
|
|
3514
|
+
return typeof children2 === "function" ? untrack2(() => children2(value)) : children2;
|
|
3514
3515
|
});
|
|
3515
3516
|
}
|
|
3516
3517
|
}
|
|
@@ -3533,7 +3534,7 @@ var Fluixi = (() => {
|
|
|
3533
3534
|
}, void 0, { name: "ClassMap" });
|
|
3534
3535
|
}
|
|
3535
3536
|
|
|
3536
|
-
// ../dom/dist/chunk-
|
|
3537
|
+
// ../dom/dist/chunk-QXTTVV6G.mjs
|
|
3537
3538
|
function ClientOnly(props) {
|
|
3538
3539
|
if (isServer()) return props.fallback ?? null;
|
|
3539
3540
|
const hydrating = hydration.active;
|
|
@@ -3545,7 +3546,7 @@ var Fluixi = (() => {
|
|
|
3545
3546
|
}
|
|
3546
3547
|
var NoSsr = ClientOnly;
|
|
3547
3548
|
|
|
3548
|
-
// ../reactive/dist/chunk-
|
|
3549
|
+
// ../reactive/dist/chunk-V4OVF7MU.mjs
|
|
3549
3550
|
var $RAW = /* @__PURE__ */ Symbol("store-raw");
|
|
3550
3551
|
var $NODE2 = /* @__PURE__ */ Symbol("store-node");
|
|
3551
3552
|
var $HAS = /* @__PURE__ */ Symbol("store-has");
|
|
@@ -4087,7 +4088,7 @@ var Fluixi = (() => {
|
|
|
4087
4088
|
untrackStore
|
|
4088
4089
|
});
|
|
4089
4090
|
|
|
4090
|
-
// ../reactive/dist/chunk-
|
|
4091
|
+
// ../reactive/dist/chunk-WQYW3P23.mjs
|
|
4091
4092
|
function store(initialState, options) {
|
|
4092
4093
|
const [state2, set] = createStore(initialState, options);
|
|
4093
4094
|
return new Proxy(state2, {
|
|
@@ -4096,7 +4097,7 @@ var Fluixi = (() => {
|
|
|
4096
4097
|
});
|
|
4097
4098
|
}
|
|
4098
4099
|
|
|
4099
|
-
// ../dom/dist/chunk-
|
|
4100
|
+
// ../dom/dist/chunk-NRI2FIKW.mjs
|
|
4100
4101
|
var _slotKey = "__fx_dom_create_component__";
|
|
4101
4102
|
var _slot = globalThis[_slotKey] ??= { fn: null };
|
|
4102
4103
|
function registerCreateComponent(createComponent2) {
|
|
@@ -4163,7 +4164,7 @@ var Fluixi = (() => {
|
|
|
4163
4164
|
});
|
|
4164
4165
|
}
|
|
4165
4166
|
|
|
4166
|
-
// ../dom/dist/chunk-
|
|
4167
|
+
// ../dom/dist/chunk-ZFSTYSH2.mjs
|
|
4167
4168
|
function createDynamicElement(type, props = {}) {
|
|
4168
4169
|
if (typeof type === "function") return createComponent(type, props);
|
|
4169
4170
|
if (typeof type !== "string" || type.length === 0) return null;
|
|
@@ -4201,7 +4202,7 @@ var Fluixi = (() => {
|
|
|
4201
4202
|
return (typeof __FLUIXI_SERVER__ !== "undefined" ? __FLUIXI_SERVER__ : isServer()) ? getServerNodes().createComment(data) : document.createComment(data);
|
|
4202
4203
|
}
|
|
4203
4204
|
|
|
4204
|
-
// ../dom/dist/chunk-
|
|
4205
|
+
// ../dom/dist/chunk-QU67GRTA.mjs
|
|
4205
4206
|
function Dynamic(props) {
|
|
4206
4207
|
const getComponent = () => {
|
|
4207
4208
|
const value = props.component;
|
|
@@ -4490,7 +4491,7 @@ var Fluixi = (() => {
|
|
|
4490
4491
|
}, void 0, { name: "ErrorBoundary" });
|
|
4491
4492
|
}
|
|
4492
4493
|
|
|
4493
|
-
// ../dom/dist/chunk-
|
|
4494
|
+
// ../dom/dist/chunk-MNMDBGWH.mjs
|
|
4494
4495
|
function For(props) {
|
|
4495
4496
|
const each = resolveReactiveProp(() => props.each);
|
|
4496
4497
|
const fallback = () => props.fallback ?? null;
|
|
@@ -4503,7 +4504,7 @@ var Fluixi = (() => {
|
|
|
4503
4504
|
return props.by ? keyArray(each, props.by, (item, index) => render2(item, index), { fallback }) : mapArray(each, (item, index) => render2(item, index), { fallback });
|
|
4504
4505
|
}
|
|
4505
4506
|
|
|
4506
|
-
// ../dom/dist/chunk-
|
|
4507
|
+
// ../dom/dist/chunk-J5FXHC6R.mjs
|
|
4507
4508
|
function Index(props) {
|
|
4508
4509
|
const each = resolveReactiveProp(() => props.each);
|
|
4509
4510
|
return indexArray(
|
|
@@ -5042,7 +5043,7 @@ var Fluixi = (() => {
|
|
|
5042
5043
|
return _scriptCache = parsed;
|
|
5043
5044
|
}
|
|
5044
5045
|
|
|
5045
|
-
// ../dom/dist/chunk-
|
|
5046
|
+
// ../dom/dist/chunk-OSY5ME32.mjs
|
|
5046
5047
|
var KEY_SCOPE = /* @__PURE__ */ Symbol.for("fluixi.hydrationKeys");
|
|
5047
5048
|
function scopeOf(owner) {
|
|
5048
5049
|
let o = owner;
|
|
@@ -5214,7 +5215,7 @@ var Fluixi = (() => {
|
|
|
5214
5215
|
}
|
|
5215
5216
|
}
|
|
5216
5217
|
|
|
5217
|
-
// ../dom/dist/chunk-
|
|
5218
|
+
// ../dom/dist/chunk-TV5ZEVUS.mjs
|
|
5218
5219
|
var _nodesRegistered = false;
|
|
5219
5220
|
function ensureServerNodes() {
|
|
5220
5221
|
if (_nodesRegistered) return;
|
|
@@ -5342,7 +5343,7 @@ var Fluixi = (() => {
|
|
|
5342
5343
|
}
|
|
5343
5344
|
}
|
|
5344
5345
|
|
|
5345
|
-
// ../dom/dist/chunk-
|
|
5346
|
+
// ../dom/dist/chunk-ZHKWDRL2.mjs
|
|
5346
5347
|
function recoverCursor() {
|
|
5347
5348
|
for (; ; ) {
|
|
5348
5349
|
while (hydration.cursor && hydration.cursor.nodeType === 3 && hydration.cursor.data === "") {
|
|
@@ -5515,7 +5516,7 @@ var Fluixi = (() => {
|
|
|
5515
5516
|
}
|
|
5516
5517
|
}
|
|
5517
5518
|
|
|
5518
|
-
// ../dom/dist/chunk-
|
|
5519
|
+
// ../dom/dist/chunk-5LFDIDYM.mjs
|
|
5519
5520
|
var TAG = "fluixi-island";
|
|
5520
5521
|
function Island(props) {
|
|
5521
5522
|
const component = props.component;
|