@fluixi/template-runtime 1.0.0-alpha.113 → 1.0.0-alpha.114

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.
@@ -1,4 +1,4 @@
1
- /*! @fluixi/template-runtime v1.0.0-alpha.113 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
1
+ /*! @fluixi/template-runtime v1.0.0-alpha.114 | (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-4WH6Y6HA.mjs
254
- var VERSION = "1.0.0-alpha.113";
253
+ // ../reactive/dist/chunk-ZJDGSNNV.mjs
254
+ var VERSION = "1.0.0-alpha.114";
255
255
 
256
- // ../reactive/dist/chunk-RVJAJZOF.mjs
256
+ // ../reactive/dist/chunk-RAK5NNZX.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-KNAL44HJ.mjs
299
+ // ../reactive/dist/chunk-DG75AJJ7.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-MA6RLJV4.mjs
382
+ // ../reactive/dist/chunk-YM5Y2NGI.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-33UVKKN7.mjs
549
+ // ../reactive/dist/chunk-567YJJN7.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-XO2UKCIP.mjs
773
+ // ../reactive/dist/chunk-4CS4CLLL.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-WRU3NRVH.mjs
881
+ // ../reactive/dist/chunk-NRBVES6C.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-FKHHUEFQ.mjs
919
+ // ../reactive/dist/chunk-ZHH537TH.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-IMT3A2NO.mjs
1007
+ // ../reactive/dist/chunk-7A6ZFPGH.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-XVWSZTTJ.mjs
1147
+ // ../reactive/dist/chunk-2VBOSWRX.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-CPWHEENH.mjs
1153
+ // ../reactive/dist/chunk-RRBU2IA4.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-AXT6GH6A.mjs
1165
+ // ../reactive/dist/chunk-LOGVPQPS.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-N4ALL6PY.mjs
1178
+ // ../reactive/dist/chunk-JL6TMYMK.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-TISWW5QM.mjs
1200
+ // ../reactive/dist/chunk-C5SRGUFR.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-4WH6Y6HA.mjs
1719
- var VERSION2 = "1.0.0-alpha.113";
1718
+ // ../dom/dist/chunk-ZJDGSNNV.mjs
1719
+ var VERSION2 = "1.0.0-alpha.114";
1720
1720
 
1721
- // ../dom/dist/chunk-RVH2QKRE.mjs
1721
+ // ../dom/dist/chunk-COOYUB6Z.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-5Q5QMG7U.mjs
1763
+ // ../dom/dist/chunk-6PP75D6L.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-5JNVE2LK.mjs
1881
+ // ../dom/dist/chunk-ADNKQHFJ.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-P35W2T3R.mjs
1973
+ // ../dom/dist/chunk-CB7Z2QNG.mjs
1974
1974
  function getElementFingerprint(el) {
1975
1975
  const parts = [];
1976
1976
  while (el && el.nodeType === 1) {
@@ -3364,7 +3364,7 @@ var Fluixi = (() => {
3364
3364
  );
3365
3365
  }
3366
3366
 
3367
- // ../dom/dist/chunk-KHKKFGOR.mjs
3367
+ // ../dom/dist/chunk-LOUIC7OS.mjs
3368
3368
  function Portal(props) {
3369
3369
  if (isServer()) return null;
3370
3370
  const getMount = () => {
@@ -3537,7 +3537,7 @@ var Fluixi = (() => {
3537
3537
  }, void 0, { name: "ClassMap" });
3538
3538
  }
3539
3539
 
3540
- // ../dom/dist/chunk-HXA6EA4O.mjs
3540
+ // ../dom/dist/chunk-F7JIKW32.mjs
3541
3541
  function ClientOnly(props) {
3542
3542
  if (isServer()) return props.fallback ?? null;
3543
3543
  const hydrating = hydration.active;
@@ -3549,7 +3549,7 @@ var Fluixi = (() => {
3549
3549
  }
3550
3550
  var NoSsr = ClientOnly;
3551
3551
 
3552
- // ../reactive/dist/chunk-BIS2SL62.mjs
3552
+ // ../reactive/dist/chunk-H3PRIKGZ.mjs
3553
3553
  var $RAW = /* @__PURE__ */ Symbol("store-raw");
3554
3554
  var $NODE2 = /* @__PURE__ */ Symbol("store-node");
3555
3555
  var $HAS = /* @__PURE__ */ Symbol("store-has");
@@ -4091,7 +4091,7 @@ var Fluixi = (() => {
4091
4091
  untrackStore
4092
4092
  });
4093
4093
 
4094
- // ../reactive/dist/chunk-2P7EAYZD.mjs
4094
+ // ../reactive/dist/chunk-XGKJITXF.mjs
4095
4095
  function store(initialState, options) {
4096
4096
  const [state2, set] = createStore(initialState, options);
4097
4097
  return new Proxy(state2, {
@@ -4100,7 +4100,7 @@ var Fluixi = (() => {
4100
4100
  });
4101
4101
  }
4102
4102
 
4103
- // ../dom/dist/chunk-EXD5WYAD.mjs
4103
+ // ../dom/dist/chunk-4RTKERYO.mjs
4104
4104
  var _slotKey = "__fx_dom_create_component__";
4105
4105
  var _slot = globalThis[_slotKey] ??= { fn: null };
4106
4106
  function registerCreateComponent(createComponent2) {
@@ -4167,7 +4167,7 @@ var Fluixi = (() => {
4167
4167
  });
4168
4168
  }
4169
4169
 
4170
- // ../dom/dist/chunk-CBPCNHYC.mjs
4170
+ // ../dom/dist/chunk-JEYDHAJU.mjs
4171
4171
  function createDynamicElement(type, props = {}) {
4172
4172
  if (typeof type === "function") return createComponent(type, props);
4173
4173
  if (typeof type !== "string" || type.length === 0) return null;
@@ -4205,7 +4205,7 @@ var Fluixi = (() => {
4205
4205
  return (typeof __FLUIXI_SERVER__ !== "undefined" ? __FLUIXI_SERVER__ : isServer()) ? getServerNodes().createComment(data) : document.createComment(data);
4206
4206
  }
4207
4207
 
4208
- // ../dom/dist/chunk-Z2SYKF3L.mjs
4208
+ // ../dom/dist/chunk-LXQV4UHC.mjs
4209
4209
  function Dynamic(props) {
4210
4210
  const getComponent = () => {
4211
4211
  const value = props.component;
@@ -4494,7 +4494,7 @@ var Fluixi = (() => {
4494
4494
  }, void 0, { name: "ErrorBoundary" });
4495
4495
  }
4496
4496
 
4497
- // ../dom/dist/chunk-XYCZPSHK.mjs
4497
+ // ../dom/dist/chunk-VGI3KDPB.mjs
4498
4498
  function For(props) {
4499
4499
  const each = resolveReactiveProp(() => props.each);
4500
4500
  const fallback = () => props.fallback ?? null;
@@ -4507,7 +4507,7 @@ var Fluixi = (() => {
4507
4507
  return props.by ? keyArray(each, props.by, (item, index) => render2(item, index), { fallback }) : mapArray(each, (item, index) => render2(item, index), { fallback });
4508
4508
  }
4509
4509
 
4510
- // ../dom/dist/chunk-RNGP46LT.mjs
4510
+ // ../dom/dist/chunk-5ZCB3GHC.mjs
4511
4511
  function Index(props) {
4512
4512
  const each = resolveReactiveProp(() => props.each);
4513
4513
  return indexArray(
@@ -5046,7 +5046,7 @@ var Fluixi = (() => {
5046
5046
  return _scriptCache = parsed;
5047
5047
  }
5048
5048
 
5049
- // ../dom/dist/chunk-EW3WXEK7.mjs
5049
+ // ../dom/dist/chunk-5FU63N34.mjs
5050
5050
  var KEY_SCOPE = /* @__PURE__ */ Symbol.for("fluixi.hydrationKeys");
5051
5051
  function scopeOf(owner) {
5052
5052
  let o = owner;
@@ -5193,10 +5193,21 @@ var Fluixi = (() => {
5193
5193
  return value;
5194
5194
  }
5195
5195
  function useHydrationKeys() {
5196
- installHydrationKeys({ keyed, next: nextHydrationKey, salt: templateSalt, claim: claimKeyed, keep: keepKeyed, scope: openKeyScope, handOwner, handOwnerTree, holeScope: hydrateHole, resume: runHydrationAt });
5196
+ installHydrationKeys({ keyed, next: nextHydrationKey, salt: templateSalt, claim: claimKeyed, keep: keepKeyed, scope: openKeyScope, handOwner, handOwnerTree, holeScope: hydrateHole, resume: runHydrationAt, unkeyed });
5197
+ }
5198
+ function unkeyed(fn) {
5199
+ const context2 = isServer() ? getRequestContext() : void 0;
5200
+ if (!context2 || context2.hydrationKeys === false) return fn();
5201
+ const previous = context2.hydrationKeys;
5202
+ context2.hydrationKeys = false;
5203
+ try {
5204
+ return fn();
5205
+ } finally {
5206
+ context2.hydrationKeys = previous;
5207
+ }
5197
5208
  }
5198
5209
 
5199
- // ../dom/dist/chunk-RZQSUTIR.mjs
5210
+ // ../dom/dist/chunk-IFKH757W.mjs
5200
5211
  var _nodesRegistered = false;
5201
5212
  function ensureServerNodes() {
5202
5213
  if (_nodesRegistered) return;
@@ -5324,7 +5335,7 @@ var Fluixi = (() => {
5324
5335
  }
5325
5336
  }
5326
5337
 
5327
- // ../dom/dist/chunk-DA2EMIOT.mjs
5338
+ // ../dom/dist/chunk-NDHIWVU4.mjs
5328
5339
  function recoverCursor() {
5329
5340
  for (; ; ) {
5330
5341
  while (hydration.cursor && hydration.cursor.nodeType === 3 && hydration.cursor.data === "") {
@@ -5495,7 +5506,7 @@ var Fluixi = (() => {
5495
5506
  }
5496
5507
  }
5497
5508
 
5498
- // ../dom/dist/chunk-HBKFIZUF.mjs
5509
+ // ../dom/dist/chunk-36FIKUUG.mjs
5499
5510
  var TAG = "fluixi-island";
5500
5511
  function Island(props) {
5501
5512
  const component = props.component;