@fluixi/template-runtime 1.0.0-alpha.113 → 1.0.0-alpha.115
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 +64 -44
- package/dist/cdn/fluixi.global.js +4 -4
- 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.115 | (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-NHXUZMLI.mjs
|
|
254
|
+
var VERSION = "1.0.0-alpha.115";
|
|
255
255
|
|
|
256
|
-
// ../reactive/dist/chunk-
|
|
256
|
+
// ../reactive/dist/chunk-V72N55C7.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-SC7FFBOE.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-I5OWSQ7Y.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-DOI2AISJ.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-6UA5FLRD.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-WCYYK2LM.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-7F4DYITB.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-KTLZ3AUG.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-4ZW5ZRPB.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-TFYGPKTW.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-GTDVWIIF.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-OZQQXRZX.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-IZ6XFDO3.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-NHXUZMLI.mjs
|
|
1719
|
+
var VERSION2 = "1.0.0-alpha.115";
|
|
1720
1720
|
|
|
1721
|
-
// ../dom/dist/chunk-
|
|
1721
|
+
// ../dom/dist/chunk-PQ4XYSHU.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-UR2DVOUM.mjs
|
|
1764
1764
|
var hydration = {
|
|
1765
1765
|
active: false,
|
|
1766
1766
|
cursor: null,
|
|
@@ -1810,7 +1810,7 @@ var Fluixi = (() => {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
}
|
|
1812
1812
|
function runWithoutHydration(fn) {
|
|
1813
|
-
if (!hydration.active) return fn();
|
|
1813
|
+
if (!hydration.active) return keys ? keys.unkeyed(fn) : fn();
|
|
1814
1814
|
const prevCursor = hydration.cursor;
|
|
1815
1815
|
const prevParents = hydration.parents;
|
|
1816
1816
|
hydration.active = false;
|
|
@@ -1878,7 +1878,7 @@ var Fluixi = (() => {
|
|
|
1878
1878
|
return hydration.active;
|
|
1879
1879
|
}
|
|
1880
1880
|
|
|
1881
|
-
// ../dom/dist/chunk-
|
|
1881
|
+
// ../dom/dist/chunk-L65KD27D.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-QKYO5BT7.mjs
|
|
1974
1974
|
function getElementFingerprint(el) {
|
|
1975
1975
|
const parts = [];
|
|
1976
1976
|
while (el && el.nodeType === 1) {
|
|
@@ -2420,12 +2420,7 @@ var Fluixi = (() => {
|
|
|
2420
2420
|
const keys2 = hydration.active && currentArray.length && hydrationKeys();
|
|
2421
2421
|
if (keys2) keys2.resume(currentArray[0], flatten);
|
|
2422
2422
|
else flatten();
|
|
2423
|
-
const reconciled = reconcileArrays(
|
|
2424
|
-
parent,
|
|
2425
|
-
adopted.size ? currentArray.filter((node) => !adopted.has(node)) : currentArray,
|
|
2426
|
-
array,
|
|
2427
|
-
marker2
|
|
2428
|
-
);
|
|
2423
|
+
const reconciled = reconcileArrays(parent, keys2 ? keys2.slotOrder(parent, currentArray, adopted, reactiveSlots) : currentArray, array, marker2);
|
|
2429
2424
|
for (const slot of reactiveSlots) {
|
|
2430
2425
|
if (slot.wired) continue;
|
|
2431
2426
|
const disposeSlot = insert(parent, slot.sig, slot.marker);
|
|
@@ -2474,6 +2469,7 @@ var Fluixi = (() => {
|
|
|
2474
2469
|
result.push(slot);
|
|
2475
2470
|
if (hydration.active && adopted && hydration.cursor?.parentNode === parent) {
|
|
2476
2471
|
const here = () => hydration.cursor && hydration.cursor.parentNode === parent ? hydration.cursor : null;
|
|
2472
|
+
hydrationKeys()?.slotStart(parent, result);
|
|
2477
2473
|
const start = here();
|
|
2478
2474
|
parent.insertBefore(slot, start);
|
|
2479
2475
|
const disposeSlot = insert(parent, resolved, slot);
|
|
@@ -3364,7 +3360,7 @@ var Fluixi = (() => {
|
|
|
3364
3360
|
);
|
|
3365
3361
|
}
|
|
3366
3362
|
|
|
3367
|
-
// ../dom/dist/chunk-
|
|
3363
|
+
// ../dom/dist/chunk-M3U4A23R.mjs
|
|
3368
3364
|
function Portal(props) {
|
|
3369
3365
|
if (isServer()) return null;
|
|
3370
3366
|
const getMount = () => {
|
|
@@ -3537,7 +3533,7 @@ var Fluixi = (() => {
|
|
|
3537
3533
|
}, void 0, { name: "ClassMap" });
|
|
3538
3534
|
}
|
|
3539
3535
|
|
|
3540
|
-
// ../dom/dist/chunk-
|
|
3536
|
+
// ../dom/dist/chunk-43N5OSQX.mjs
|
|
3541
3537
|
function ClientOnly(props) {
|
|
3542
3538
|
if (isServer()) return props.fallback ?? null;
|
|
3543
3539
|
const hydrating = hydration.active;
|
|
@@ -3549,7 +3545,7 @@ var Fluixi = (() => {
|
|
|
3549
3545
|
}
|
|
3550
3546
|
var NoSsr = ClientOnly;
|
|
3551
3547
|
|
|
3552
|
-
// ../reactive/dist/chunk-
|
|
3548
|
+
// ../reactive/dist/chunk-72IY6ZPK.mjs
|
|
3553
3549
|
var $RAW = /* @__PURE__ */ Symbol("store-raw");
|
|
3554
3550
|
var $NODE2 = /* @__PURE__ */ Symbol("store-node");
|
|
3555
3551
|
var $HAS = /* @__PURE__ */ Symbol("store-has");
|
|
@@ -4091,7 +4087,7 @@ var Fluixi = (() => {
|
|
|
4091
4087
|
untrackStore
|
|
4092
4088
|
});
|
|
4093
4089
|
|
|
4094
|
-
// ../reactive/dist/chunk-
|
|
4090
|
+
// ../reactive/dist/chunk-LJ4WIABT.mjs
|
|
4095
4091
|
function store(initialState, options) {
|
|
4096
4092
|
const [state2, set] = createStore(initialState, options);
|
|
4097
4093
|
return new Proxy(state2, {
|
|
@@ -4100,7 +4096,7 @@ var Fluixi = (() => {
|
|
|
4100
4096
|
});
|
|
4101
4097
|
}
|
|
4102
4098
|
|
|
4103
|
-
// ../dom/dist/chunk-
|
|
4099
|
+
// ../dom/dist/chunk-N5FNNUF4.mjs
|
|
4104
4100
|
var _slotKey = "__fx_dom_create_component__";
|
|
4105
4101
|
var _slot = globalThis[_slotKey] ??= { fn: null };
|
|
4106
4102
|
function registerCreateComponent(createComponent2) {
|
|
@@ -4167,7 +4163,7 @@ var Fluixi = (() => {
|
|
|
4167
4163
|
});
|
|
4168
4164
|
}
|
|
4169
4165
|
|
|
4170
|
-
// ../dom/dist/chunk-
|
|
4166
|
+
// ../dom/dist/chunk-Q2F6VDLA.mjs
|
|
4171
4167
|
function createDynamicElement(type, props = {}) {
|
|
4172
4168
|
if (typeof type === "function") return createComponent(type, props);
|
|
4173
4169
|
if (typeof type !== "string" || type.length === 0) return null;
|
|
@@ -4205,7 +4201,7 @@ var Fluixi = (() => {
|
|
|
4205
4201
|
return (typeof __FLUIXI_SERVER__ !== "undefined" ? __FLUIXI_SERVER__ : isServer()) ? getServerNodes().createComment(data) : document.createComment(data);
|
|
4206
4202
|
}
|
|
4207
4203
|
|
|
4208
|
-
// ../dom/dist/chunk-
|
|
4204
|
+
// ../dom/dist/chunk-5QX7I5J3.mjs
|
|
4209
4205
|
function Dynamic(props) {
|
|
4210
4206
|
const getComponent = () => {
|
|
4211
4207
|
const value = props.component;
|
|
@@ -4494,7 +4490,7 @@ var Fluixi = (() => {
|
|
|
4494
4490
|
}, void 0, { name: "ErrorBoundary" });
|
|
4495
4491
|
}
|
|
4496
4492
|
|
|
4497
|
-
// ../dom/dist/chunk-
|
|
4493
|
+
// ../dom/dist/chunk-SIVBOWBN.mjs
|
|
4498
4494
|
function For(props) {
|
|
4499
4495
|
const each = resolveReactiveProp(() => props.each);
|
|
4500
4496
|
const fallback = () => props.fallback ?? null;
|
|
@@ -4507,7 +4503,7 @@ var Fluixi = (() => {
|
|
|
4507
4503
|
return props.by ? keyArray(each, props.by, (item, index) => render2(item, index), { fallback }) : mapArray(each, (item, index) => render2(item, index), { fallback });
|
|
4508
4504
|
}
|
|
4509
4505
|
|
|
4510
|
-
// ../dom/dist/chunk-
|
|
4506
|
+
// ../dom/dist/chunk-DZNY7EE4.mjs
|
|
4511
4507
|
function Index(props) {
|
|
4512
4508
|
const each = resolveReactiveProp(() => props.each);
|
|
4513
4509
|
return indexArray(
|
|
@@ -5046,7 +5042,7 @@ var Fluixi = (() => {
|
|
|
5046
5042
|
return _scriptCache = parsed;
|
|
5047
5043
|
}
|
|
5048
5044
|
|
|
5049
|
-
// ../dom/dist/chunk-
|
|
5045
|
+
// ../dom/dist/chunk-VYWXK7EN.mjs
|
|
5050
5046
|
var KEY_SCOPE = /* @__PURE__ */ Symbol.for("fluixi.hydrationKeys");
|
|
5051
5047
|
function scopeOf(owner) {
|
|
5052
5048
|
let o = owner;
|
|
@@ -5193,10 +5189,32 @@ var Fluixi = (() => {
|
|
|
5193
5189
|
return value;
|
|
5194
5190
|
}
|
|
5195
5191
|
function useHydrationKeys() {
|
|
5196
|
-
installHydrationKeys({ keyed, next: nextHydrationKey, salt: templateSalt, claim: claimKeyed, keep: keepKeyed, scope: openKeyScope, handOwner, handOwnerTree, holeScope: hydrateHole, resume: runHydrationAt });
|
|
5192
|
+
installHydrationKeys({ keyed, next: nextHydrationKey, salt: templateSalt, claim: claimKeyed, keep: keepKeyed, scope: openKeyScope, handOwner, handOwnerTree, holeScope: hydrateHole, resume: runHydrationAt, unkeyed, slotStart, slotOrder });
|
|
5193
|
+
}
|
|
5194
|
+
function slotStart(parent, members) {
|
|
5195
|
+
const prev = members[members.length - 1];
|
|
5196
|
+
if (prev && prev.parentNode === parent) hydration.cursor = prev.nextSibling;
|
|
5197
|
+
}
|
|
5198
|
+
function slotOrder(parent, current, adopted, slots) {
|
|
5199
|
+
const before = adopted.size ? current.filter((node) => !adopted.has(node)) : current;
|
|
5200
|
+
const placed = slots.filter((slot) => slot.wired).map((slot) => slot.marker);
|
|
5201
|
+
if (!placed.length) return before;
|
|
5202
|
+
const ours = /* @__PURE__ */ new Set([...before, ...placed]);
|
|
5203
|
+
return Array.from(parent.childNodes).filter((node) => ours.has(node));
|
|
5204
|
+
}
|
|
5205
|
+
function unkeyed(fn) {
|
|
5206
|
+
const context2 = isServer() ? getRequestContext() : void 0;
|
|
5207
|
+
if (!context2 || context2.hydrationKeys === false) return fn();
|
|
5208
|
+
const previous = context2.hydrationKeys;
|
|
5209
|
+
context2.hydrationKeys = false;
|
|
5210
|
+
try {
|
|
5211
|
+
return fn();
|
|
5212
|
+
} finally {
|
|
5213
|
+
context2.hydrationKeys = previous;
|
|
5214
|
+
}
|
|
5197
5215
|
}
|
|
5198
5216
|
|
|
5199
|
-
// ../dom/dist/chunk-
|
|
5217
|
+
// ../dom/dist/chunk-Z7AFLYYU.mjs
|
|
5200
5218
|
var _nodesRegistered = false;
|
|
5201
5219
|
function ensureServerNodes() {
|
|
5202
5220
|
if (_nodesRegistered) return;
|
|
@@ -5324,7 +5342,7 @@ var Fluixi = (() => {
|
|
|
5324
5342
|
}
|
|
5325
5343
|
}
|
|
5326
5344
|
|
|
5327
|
-
// ../dom/dist/chunk-
|
|
5345
|
+
// ../dom/dist/chunk-5PS7D4P2.mjs
|
|
5328
5346
|
function recoverCursor() {
|
|
5329
5347
|
for (; ; ) {
|
|
5330
5348
|
while (hydration.cursor && hydration.cursor.nodeType === 3 && hydration.cursor.data === "") {
|
|
@@ -5368,7 +5386,9 @@ var Fluixi = (() => {
|
|
|
5368
5386
|
}
|
|
5369
5387
|
function hydrateElement(tag2) {
|
|
5370
5388
|
recoverCursor();
|
|
5371
|
-
|
|
5389
|
+
let c = hydration.cursor;
|
|
5390
|
+
const next = c?.nextSibling;
|
|
5391
|
+
if (c && c.nodeType === 3 && next && next.nodeType === 1 && next.tagName.toLowerCase() === tag2.toLowerCase()) c = next;
|
|
5372
5392
|
if (c && c.nodeType === 1 && c.tagName.toLowerCase() === tag2.toLowerCase()) {
|
|
5373
5393
|
releaseKeyed(c);
|
|
5374
5394
|
if (VOID_ELEMENTS4.has(tag2.toLowerCase()) || ownsServerContent(c)) {
|
|
@@ -5495,7 +5515,7 @@ var Fluixi = (() => {
|
|
|
5495
5515
|
}
|
|
5496
5516
|
}
|
|
5497
5517
|
|
|
5498
|
-
// ../dom/dist/chunk-
|
|
5518
|
+
// ../dom/dist/chunk-ZNEFAIDT.mjs
|
|
5499
5519
|
var TAG = "fluixi-island";
|
|
5500
5520
|
function Island(props) {
|
|
5501
5521
|
const component = props.component;
|