lilact 0.26.3 → 0.26.5

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.
@@ -1703,6 +1703,23 @@ __export(misc_exports, {
1703
1703
  });
1704
1704
 
1705
1705
  // .tmp/src/symbols.jsx
1706
+ var symbols_exports = {};
1707
+ __export(symbols_exports, {
1708
+ ARGS: () => ARGS,
1709
+ CALLBACK: () => CALLBACK,
1710
+ CHILD_CLASS_ADDENDUM: () => CHILD_CLASS_ADDENDUM,
1711
+ CLEARED: () => CLEARED,
1712
+ COMPONENT: () => COMPONENT,
1713
+ CORE: () => CORE,
1714
+ DUE: () => DUE,
1715
+ IDX: () => IDX,
1716
+ INTERVAL: () => INTERVAL,
1717
+ IS_ZOMBIE: () => IS_ZOMBIE,
1718
+ LAZY: () => LAZY,
1719
+ MEMOIZED: () => MEMOIZED,
1720
+ REPEAT: () => REPEAT,
1721
+ TEXT: () => TEXT2
1722
+ });
1706
1723
  var [
1707
1724
  CORE,
1708
1725
  COMPONENT,
@@ -3643,7 +3660,7 @@ function run(jsx, path = `InlineJSX-${++lilact_default.eval_num}`, { isInline, i
3643
3660
  }
3644
3661
  }
3645
3662
  function require2(path2) {
3646
- var _a, _b, _c, _d, _e, _f;
3663
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
3647
3664
  let forceUpdate, checkExport, requirer, isLazy;
3648
3665
  if (arguments.length === 2 && typeof (arguments[1] === "object")) {
3649
3666
  forceUpdate = (_a = arguments[1]) == null ? void 0 : _a.forceUpdate;
@@ -3664,22 +3681,41 @@ function require2(path2) {
3664
3681
  }
3665
3682
  if (((_f = lilact_default) == null ? void 0 : _f[LAZY]) || isLazy) {
3666
3683
  lilact_default[LAZY] = false;
3667
- return fetch(path2).then((res2) => {
3668
- if (!res2.ok) throw new Error(`HTTP ${res2.status}`);
3669
- return res2.text();
3670
- }).then((res2) => {
3684
+ let p = (_h = (_g = lilact_default).resolver) == null ? void 0 : _h.call(_g, path2);
3685
+ if (p) {
3686
+ p = Promise.resolve(p);
3687
+ } else {
3688
+ p = fetch(path2).then((res2) => {
3689
+ if (!res2.ok) throw new Error(`HTTP ${res2.status}`);
3690
+ return res2.text();
3691
+ });
3692
+ }
3693
+ return p.then((res2) => {
3671
3694
  var _a2;
3695
+ if (path2.endsWith(".css")) {
3696
+ injectGlobal(res2);
3697
+ return;
3698
+ }
3672
3699
  res2 = run(res2, path2, false);
3673
3700
  return (_a2 = res2 == null ? void 0 : res2.default) != null ? _a2 : res2;
3674
3701
  }).catch((err) => {
3675
3702
  throw err;
3676
3703
  });
3677
3704
  } else {
3678
- const request = new XMLHttpRequest();
3679
- request.open("GET", path2, { isInline: false });
3680
- request.send(null);
3681
- if (request.status === 200) {
3682
- return run(request.responseText, path2, false);
3705
+ const p = (_j = (_i = lilact_default).resolver) == null ? void 0 : _j.call(_i, path2);
3706
+ if (p) {
3707
+ return run(p, path2, false);
3708
+ } else {
3709
+ const request = new XMLHttpRequest();
3710
+ request.open("GET", path2, { isInline: false });
3711
+ request.send(null);
3712
+ if (request.status === 200) {
3713
+ if (path2.endsWith(".css")) {
3714
+ injectGlobal(res);
3715
+ return;
3716
+ }
3717
+ return run(request.responseText, path2, false);
3718
+ }
3683
3719
  }
3684
3720
  }
3685
3721
  }
@@ -5144,7 +5180,7 @@ var SplitPane = forwardRef(function SplitPane2({
5144
5180
  const computedSplitterStyle = {
5145
5181
  background: "rgba(0,0,0,0.08)",
5146
5182
  boxShadow: "inset 0 0 2px rgba(0,0,0,0.25)",
5147
- zIndex: 10,
5183
+ zIndex: 1e6,
5148
5184
  position: "absolute",
5149
5185
  cursor: internalMode === "horizontal" ? "col-resize" : "row-resize",
5150
5186
  touchAction: "none",
@@ -5607,21 +5643,27 @@ function processImportExports(node3, jsx2) {
5607
5643
  node3.out[i2] = null;
5608
5644
  node3.out[m.index].cjs = "module.exports.default =";
5609
5645
  continue;
5610
- case "V":
5611
- case "F":
5612
- const j = i2;
5613
- const type = s[i2] === "F" ? `= ${node3.out[i2]} ` : "";
5646
+ case "V": {
5647
+ const tp = node3.out[i2];
5614
5648
  node3.out[i2] = null;
5615
5649
  i2++;
5616
5650
  skip_spaces();
5617
5651
  const name = node3.out[i2];
5618
- if (s[j] === "V") {
5619
- node3.out[i2] = null;
5620
- i2++;
5621
- }
5652
+ node3.out[i2] = null;
5653
+ i2++;
5654
+ skip_spaces();
5655
+ node3.out[m.index].cjs = `${tp} ${name} = module.exports.${name} `;
5656
+ continue;
5657
+ }
5658
+ case "F": {
5659
+ const tp = node3.out[i2];
5660
+ node3.out[i2] = null;
5661
+ i2++;
5622
5662
  skip_spaces();
5623
- node3.out[m.index].cjs = `module.exports.${name} ${type}`;
5663
+ const name = node3.out[i2];
5664
+ node3.out[m.index].cjs = `module.exports.${name} = ${tp} `;
5624
5665
  continue;
5666
+ }
5625
5667
  case "*":
5626
5668
  node3.out[i2] = null;
5627
5669
  i2++;
@@ -5648,16 +5690,16 @@ function processImportExports(node3, jsx2) {
5648
5690
  props_regexp.lastIndex = -1;
5649
5691
  if (!props_regexp.test(sj)) throw "incorrect export properties definition.";
5650
5692
  const ps = node3.out[i2].out;
5651
- for (let j2 = 1; j2 < sj.length - 1; j2++) {
5652
- while (sj[j2] === " " || sj[j2] === "\n" || sj[j2] === "C" || sj[j2] === ",") j2++;
5653
- const prop = ps[j2];
5654
- j2++;
5655
- while (sj[j2] === " " || sj[j2] === "\n" || sj[j2] === "C") j2++;
5656
- if (sj[j2] === "a") {
5657
- j2++;
5658
- while (sj[j2] === " " || sj[j2] === "\n" || sj[j2] === "C") j2++;
5659
- exports[ps[j2]] = prop;
5660
- j2++;
5693
+ for (let j = 1; j < sj.length - 1; j++) {
5694
+ while (sj[j] === " " || sj[j] === "\n" || sj[j] === "C" || sj[j] === ",") j++;
5695
+ const prop = ps[j];
5696
+ j++;
5697
+ while (sj[j] === " " || sj[j] === "\n" || sj[j] === "C") j++;
5698
+ if (sj[j] === "a") {
5699
+ j++;
5700
+ while (sj[j] === " " || sj[j] === "\n" || sj[j] === "C") j++;
5701
+ exports[ps[j]] = prop;
5702
+ j++;
5661
5703
  } else {
5662
5704
  exports[prop] = prop;
5663
5705
  }
@@ -6591,6 +6633,7 @@ var Lilact2 = {
6591
6633
  ...timers_exports,
6592
6634
  ...events_exports,
6593
6635
  ...errors_exports,
6636
+ ...symbols_exports,
6594
6637
  ...router_exports,
6595
6638
  ...accessories_exports,
6596
6639
  transpileJSX,
@@ -6624,20 +6667,33 @@ if (true) {
6624
6667
  console.log(`Copyright(C) 2024-2026 Arash Kazemi <contact.arash.kazemi@gmail.com>`);
6625
6668
  }
6626
6669
  export {
6670
+ ARGS,
6671
+ CALLBACK,
6672
+ CHILD_CLASS_ADDENDUM,
6673
+ CLEARED,
6674
+ COMPONENT,
6675
+ CORE,
6627
6676
  CSSTransition,
6628
6677
  Children,
6629
6678
  Component,
6679
+ DUE,
6630
6680
  DragHandle,
6631
6681
  ErrorBoundary,
6632
6682
  Fragment2 as Fragment,
6633
6683
  HTMLComponent,
6634
6684
  HashRouter,
6685
+ IDX,
6686
+ INTERVAL,
6687
+ IS_ZOMBIE,
6688
+ LAZY,
6635
6689
  Lilact2 as Lilact,
6636
6690
  Link,
6691
+ MEMOIZED,
6637
6692
  NavLink,
6638
6693
  Portal,
6639
6694
  PropTypes,
6640
6695
  Provider,
6696
+ REPEAT,
6641
6697
  RootComponent,
6642
6698
  Route,
6643
6699
  Routes,
@@ -6645,6 +6701,7 @@ export {
6645
6701
  SplitPane,
6646
6702
  Suspense,
6647
6703
  SwitchTransition,
6704
+ TEXT2 as TEXT,
6648
6705
  Transition,
6649
6706
  TransitionGroup,
6650
6707
  addWrappedEventListener,