@novely/solid-renderer 0.38.0-next → 0.38.0

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.
Files changed (2) hide show
  1. package/dist/index.jsx +260 -138
  2. package/package.json +57 -57
package/dist/index.jsx CHANGED
@@ -1,7 +1,8 @@
1
- // ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/dist/solid.js
1
+ // ../../node_modules/.pnpm/solid-js@1.8.21/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
3
  context: void 0,
4
4
  registry: void 0,
5
+ done: false,
5
6
  getContextId() {
6
7
  return getContextId(this.context.count);
7
8
  },
@@ -274,7 +275,11 @@ function updateComputation(node) {
274
275
  if (!node.fn) return;
275
276
  cleanNode(node);
276
277
  const time = ExecCount;
277
- runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
278
+ runComputation(
279
+ node,
280
+ Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
281
+ time
282
+ );
278
283
  if (Transition && !Transition.running && Transition.sources.has(node)) {
279
284
  queueMicrotask(() => {
280
285
  runUpdates(() => {
@@ -504,7 +509,8 @@ function lookUpstream(node, ignore) {
504
509
  if (source.sources) {
505
510
  const state = runningTransition ? source.tState : source.state;
506
511
  if (state === STALE) {
507
- if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
512
+ if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
513
+ runTop(source);
508
514
  } else if (state === PENDING) lookUpstream(source, ignore);
509
515
  }
510
516
  }
@@ -580,12 +586,13 @@ function handleError(err, owner = Owner) {
580
586
  const fns = ERROR && owner && owner.context && owner.context[ERROR];
581
587
  const error = castError(err);
582
588
  if (!fns) throw error;
583
- if (Effects) Effects.push({
584
- fn() {
585
- runErrors(error, fns, owner);
586
- },
587
- state: STALE
588
- });
589
+ if (Effects)
590
+ Effects.push({
591
+ fn() {
592
+ runErrors(error, fns, owner);
593
+ },
594
+ state: STALE
595
+ });
589
596
  else runErrors(error, fns, owner);
590
597
  }
591
598
  function resolveChildren(children2) {
@@ -603,13 +610,16 @@ function resolveChildren(children2) {
603
610
  function createProvider(id, options) {
604
611
  return function provider(props) {
605
612
  let res;
606
- createRenderEffect(() => res = untrack(() => {
607
- Owner.context = {
608
- ...Owner.context,
609
- [id]: props.value
610
- };
611
- return children(() => props.children);
612
- }), void 0);
613
+ createRenderEffect(
614
+ () => res = untrack(() => {
615
+ Owner.context = {
616
+ ...Owner.context,
617
+ [id]: props.value
618
+ };
619
+ return children(() => props.children);
620
+ }),
621
+ void 0
622
+ );
613
623
  return res;
614
624
  };
615
625
  }
@@ -776,25 +786,29 @@ function mergeProps(...sources) {
776
786
  sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
777
787
  }
778
788
  if (proxy) {
779
- return new Proxy({
780
- get(property) {
781
- for (let i = sources.length - 1; i >= 0; i--) {
782
- const v = resolveSource(sources[i])[property];
783
- if (v !== void 0) return v;
789
+ return new Proxy(
790
+ {
791
+ get(property) {
792
+ for (let i = sources.length - 1; i >= 0; i--) {
793
+ const v = resolveSource(sources[i])[property];
794
+ if (v !== void 0) return v;
795
+ }
796
+ },
797
+ has(property) {
798
+ for (let i = sources.length - 1; i >= 0; i--) {
799
+ if (property in resolveSource(sources[i])) return true;
800
+ }
801
+ return false;
802
+ },
803
+ keys() {
804
+ const keys2 = [];
805
+ for (let i = 0; i < sources.length; i++)
806
+ keys2.push(...Object.keys(resolveSource(sources[i])));
807
+ return [...new Set(keys2)];
784
808
  }
785
809
  },
786
- has(property) {
787
- for (let i = sources.length - 1; i >= 0; i--) {
788
- if (property in resolveSource(sources[i])) return true;
789
- }
790
- return false;
791
- },
792
- keys() {
793
- const keys2 = [];
794
- for (let i = 0; i < sources.length; i++) keys2.push(...Object.keys(resolveSource(sources[i])));
795
- return [...new Set(keys2)];
796
- }
797
- }, propTraps);
810
+ propTraps
811
+ );
798
812
  }
799
813
  const sourcesMap = {};
800
814
  const defined = /* @__PURE__ */ Object.create(null);
@@ -834,29 +848,37 @@ function splitProps(props, ...keys2) {
834
848
  if ($PROXY in props) {
835
849
  const blocked = new Set(keys2.length > 1 ? keys2.flat() : keys2[0]);
836
850
  const res = keys2.map((k) => {
837
- return new Proxy({
838
- get(property) {
839
- return k.includes(property) ? props[property] : void 0;
840
- },
841
- has(property) {
842
- return k.includes(property) && property in props;
851
+ return new Proxy(
852
+ {
853
+ get(property) {
854
+ return k.includes(property) ? props[property] : void 0;
855
+ },
856
+ has(property) {
857
+ return k.includes(property) && property in props;
858
+ },
859
+ keys() {
860
+ return k.filter((property) => property in props);
861
+ }
843
862
  },
844
- keys() {
845
- return k.filter((property) => property in props);
846
- }
847
- }, propTraps);
863
+ propTraps
864
+ );
848
865
  });
849
- res.push(new Proxy({
850
- get(property) {
851
- return blocked.has(property) ? void 0 : props[property];
852
- },
853
- has(property) {
854
- return blocked.has(property) ? false : property in props;
855
- },
856
- keys() {
857
- return Object.keys(props).filter((k) => !blocked.has(k));
858
- }
859
- }, propTraps));
866
+ res.push(
867
+ new Proxy(
868
+ {
869
+ get(property) {
870
+ return blocked.has(property) ? void 0 : props[property];
871
+ },
872
+ has(property) {
873
+ return blocked.has(property) ? false : property in props;
874
+ },
875
+ keys() {
876
+ return Object.keys(props).filter((k) => !blocked.has(k));
877
+ }
878
+ },
879
+ propTraps
880
+ )
881
+ );
860
882
  return res;
861
883
  }
862
884
  const otherObject = {};
@@ -896,55 +918,115 @@ function Show(props) {
896
918
  const condition = createMemo(() => props.when, void 0, {
897
919
  equals: (a, b) => keyed ? a === b : !a === !b
898
920
  });
899
- return createMemo(() => {
900
- const c = condition();
901
- if (c) {
902
- const child = props.children;
903
- const fn = typeof child === "function" && child.length > 0;
904
- return fn ? untrack(() => child(keyed ? c : () => {
905
- if (!untrack(condition)) throw narrowedError("Show");
906
- return props.when;
907
- })) : child;
908
- }
909
- return props.fallback;
910
- }, void 0, void 0);
921
+ return createMemo(
922
+ () => {
923
+ const c = condition();
924
+ if (c) {
925
+ const child = props.children;
926
+ const fn = typeof child === "function" && child.length > 0;
927
+ return fn ? untrack(
928
+ () => child(
929
+ keyed ? c : () => {
930
+ if (!untrack(condition)) throw narrowedError("Show");
931
+ return props.when;
932
+ }
933
+ )
934
+ ) : child;
935
+ }
936
+ return props.fallback;
937
+ },
938
+ void 0,
939
+ void 0
940
+ );
911
941
  }
912
942
  function Switch(props) {
913
943
  let keyed = false;
914
944
  const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
915
- const conditions = children(() => props.children), evalConditions = createMemo(() => {
916
- let conds = conditions();
917
- if (!Array.isArray(conds)) conds = [conds];
918
- for (let i = 0; i < conds.length; i++) {
919
- const c = conds[i].when;
920
- if (c) {
921
- keyed = !!conds[i].keyed;
922
- return [i, c, conds[i]];
945
+ const conditions = children(() => props.children), evalConditions = createMemo(
946
+ () => {
947
+ let conds = conditions();
948
+ if (!Array.isArray(conds)) conds = [conds];
949
+ for (let i = 0; i < conds.length; i++) {
950
+ const c = conds[i].when;
951
+ if (c) {
952
+ keyed = !!conds[i].keyed;
953
+ return [i, c, conds[i]];
954
+ }
923
955
  }
956
+ return [-1];
957
+ },
958
+ void 0,
959
+ {
960
+ equals
924
961
  }
925
- return [-1];
926
- }, void 0, {
927
- equals
928
- });
929
- return createMemo(() => {
930
- const [index, when, cond] = evalConditions();
931
- if (index < 0) return props.fallback;
932
- const c = cond.children;
933
- const fn = typeof c === "function" && c.length > 0;
934
- return fn ? untrack(() => c(keyed ? when : () => {
935
- if (untrack(evalConditions)[0] !== index) throw narrowedError("Match");
936
- return cond.when;
937
- })) : c;
938
- }, void 0, void 0);
962
+ );
963
+ return createMemo(
964
+ () => {
965
+ const [index, when, cond] = evalConditions();
966
+ if (index < 0) return props.fallback;
967
+ const c = cond.children;
968
+ const fn = typeof c === "function" && c.length > 0;
969
+ return fn ? untrack(
970
+ () => c(
971
+ keyed ? when : () => {
972
+ if (untrack(evalConditions)[0] !== index) throw narrowedError("Match");
973
+ return cond.when;
974
+ }
975
+ )
976
+ ) : c;
977
+ },
978
+ void 0,
979
+ void 0
980
+ );
939
981
  }
940
982
  function Match(props) {
941
983
  return props;
942
984
  }
943
985
 
944
- // ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/web/dist/web.js
945
- var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
946
- var Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
947
- var ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
986
+ // ../../node_modules/.pnpm/solid-js@1.8.21/node_modules/solid-js/web/dist/web.js
987
+ var booleans = [
988
+ "allowfullscreen",
989
+ "async",
990
+ "autofocus",
991
+ "autoplay",
992
+ "checked",
993
+ "controls",
994
+ "default",
995
+ "disabled",
996
+ "formnovalidate",
997
+ "hidden",
998
+ "indeterminate",
999
+ "inert",
1000
+ "ismap",
1001
+ "loop",
1002
+ "multiple",
1003
+ "muted",
1004
+ "nomodule",
1005
+ "novalidate",
1006
+ "open",
1007
+ "playsinline",
1008
+ "readonly",
1009
+ "required",
1010
+ "reversed",
1011
+ "seamless",
1012
+ "selected"
1013
+ ];
1014
+ var Properties = /* @__PURE__ */ new Set([
1015
+ "className",
1016
+ "value",
1017
+ "readOnly",
1018
+ "formNoValidate",
1019
+ "isMap",
1020
+ "noModule",
1021
+ "playsInline",
1022
+ ...booleans
1023
+ ]);
1024
+ var ChildProperties = /* @__PURE__ */ new Set([
1025
+ "innerHTML",
1026
+ "textContent",
1027
+ "innerText",
1028
+ "children"
1029
+ ]);
948
1030
  var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
949
1031
  className: "class",
950
1032
  htmlFor: "for"
@@ -978,7 +1060,30 @@ function getPropAlias(prop, tagName) {
978
1060
  const a = PropAliases[prop];
979
1061
  return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
980
1062
  }
981
- var DelegatedEvents = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
1063
+ var DelegatedEvents = /* @__PURE__ */ new Set([
1064
+ "beforeinput",
1065
+ "click",
1066
+ "dblclick",
1067
+ "contextmenu",
1068
+ "focusin",
1069
+ "focusout",
1070
+ "input",
1071
+ "keydown",
1072
+ "keyup",
1073
+ "mousedown",
1074
+ "mousemove",
1075
+ "mouseout",
1076
+ "mouseover",
1077
+ "mouseup",
1078
+ "pointerdown",
1079
+ "pointermove",
1080
+ "pointerout",
1081
+ "pointerover",
1082
+ "pointerup",
1083
+ "touchend",
1084
+ "touchmove",
1085
+ "touchstart"
1086
+ ]);
982
1087
  var SVGNamespace = {
983
1088
  xlink: "http://www.w3.org/1999/xlink",
984
1089
  xml: "http://www.w3.org/XML/1998/namespace"
@@ -1065,17 +1170,17 @@ function delegateEvents(eventNames, document2 = window.document) {
1065
1170
  }
1066
1171
  }
1067
1172
  function setAttribute(node, name, value) {
1068
- if (!!sharedConfig.context && node.isConnected) return;
1173
+ if (isHydrating(node)) return;
1069
1174
  if (value == null) node.removeAttribute(name);
1070
1175
  else node.setAttribute(name, value);
1071
1176
  }
1072
1177
  function setAttributeNS(node, namespace, name, value) {
1073
- if (!!sharedConfig.context && node.isConnected) return;
1178
+ if (isHydrating(node)) return;
1074
1179
  if (value == null) node.removeAttributeNS(namespace, name);
1075
1180
  else node.setAttributeNS(namespace, name, value);
1076
1181
  }
1077
1182
  function className(node, value) {
1078
- if (!!sharedConfig.context && node.isConnected) return;
1183
+ if (isHydrating(node)) return;
1079
1184
  if (value == null) node.removeAttribute("class");
1080
1185
  else node.className = value;
1081
1186
  }
@@ -1131,7 +1236,9 @@ function style(node, value, prev) {
1131
1236
  function spread(node, props = {}, isSVG, skipChildren) {
1132
1237
  const prevProps = {};
1133
1238
  if (!skipChildren) {
1134
- createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
1239
+ createRenderEffect(
1240
+ () => prevProps.children = insertExpression(node, props.children, prevProps.children)
1241
+ );
1135
1242
  }
1136
1243
  createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
1137
1244
  createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
@@ -1162,12 +1269,16 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
1162
1269
  prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef);
1163
1270
  }
1164
1271
  }
1272
+ function isHydrating(node) {
1273
+ return !!sharedConfig.context && !sharedConfig.done && (!node || node.isConnected);
1274
+ }
1165
1275
  function toPropertyName(name) {
1166
1276
  return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
1167
1277
  }
1168
1278
  function toggleClassKey(node, key, value) {
1169
1279
  const classNames = key.trim().split(/\s+/);
1170
- for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
1280
+ for (let i = 0, nameLen = classNames.length; i < nameLen; i++)
1281
+ node.classList.toggle(classNames[i], value);
1171
1282
  }
1172
1283
  function assignProp(node, prop, value, prev, isSVG, skipRef) {
1173
1284
  let isCE, isProp, isChildProp, propAlias, forceProp;
@@ -1201,7 +1312,7 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
1201
1312
  if (forceProp) {
1202
1313
  prop = prop.slice(5);
1203
1314
  isProp = true;
1204
- } else if (!!sharedConfig.context && node.isConnected) return value;
1315
+ } else if (isHydrating(node)) return value;
1205
1316
  if (prop === "class" || prop === "className") className(node, value);
1206
1317
  else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;
1207
1318
  else node[propAlias || prop] = value;
@@ -1213,6 +1324,9 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
1213
1324
  return value;
1214
1325
  }
1215
1326
  function eventHandler(e) {
1327
+ if (sharedConfig.registry && sharedConfig.events) {
1328
+ if (sharedConfig.events.find(([el, ev]) => ev === e)) return;
1329
+ }
1216
1330
  const key = `$$${e.type}`;
1217
1331
  let node = e.composedPath && e.composedPath()[0] || e.target;
1218
1332
  if (e.target !== node) {
@@ -1239,7 +1353,7 @@ function eventHandler(e) {
1239
1353
  }
1240
1354
  }
1241
1355
  function insertExpression(parent, value, current, marker, unwrapArray) {
1242
- const hydrating = !!sharedConfig.context && parent.isConnected;
1356
+ const hydrating = isHydrating(parent);
1243
1357
  if (hydrating) {
1244
1358
  !current && (current = [...parent.childNodes]);
1245
1359
  let cleaned = [];
@@ -1290,9 +1404,10 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1290
1404
  }
1291
1405
  if (hydrating) {
1292
1406
  if (!array.length) return current;
1293
- if (marker === void 0) return [...parent.childNodes];
1407
+ if (marker === void 0) return current = [...parent.childNodes];
1294
1408
  let node = array[0];
1295
- let nodes = [node];
1409
+ if (node.parentNode !== parent) return current;
1410
+ const nodes = [node];
1296
1411
  while ((node = node.nextSibling) !== marker) nodes.push(node);
1297
1412
  return current = nodes;
1298
1413
  }
@@ -1332,7 +1447,11 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
1332
1447
  } else if (t === "function") {
1333
1448
  if (unwrap) {
1334
1449
  while (typeof item === "function") item = item();
1335
- dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
1450
+ dynamic = normalizeIncomingArray(
1451
+ normalized,
1452
+ Array.isArray(item) ? item : [item],
1453
+ Array.isArray(prev) ? prev : [prev]
1454
+ ) || dynamic;
1336
1455
  } else {
1337
1456
  normalized.push(item);
1338
1457
  dynamic = true;
@@ -1357,7 +1476,8 @@ function cleanChildren(parent, current, marker, replacement) {
1357
1476
  const el = current[i];
1358
1477
  if (node !== el) {
1359
1478
  const isParent = el.parentNode === parent;
1360
- if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
1479
+ if (!inserted && !i)
1480
+ isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
1361
1481
  else isParent && el.remove();
1362
1482
  } else inserted = true;
1363
1483
  }
@@ -1371,38 +1491,40 @@ function createElement(tagName, isSVG = false) {
1371
1491
  return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
1372
1492
  }
1373
1493
  function Portal(props) {
1374
- const {
1375
- useShadow
1376
- } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1494
+ const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1377
1495
  let content;
1378
1496
  let hydrating = !!sharedConfig.context;
1379
- createEffect(() => {
1380
- if (hydrating) getOwner().user = hydrating = false;
1381
- content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1382
- const el = mount();
1383
- if (el instanceof HTMLHeadElement) {
1384
- const [clean2, setClean] = createSignal(false);
1385
- const cleanup = () => setClean(true);
1386
- createRoot((dispose2) => insert(el, () => !clean2() ? content() : dispose2(), null));
1387
- onCleanup(cleanup);
1388
- } else {
1389
- const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1390
- mode: "open"
1391
- }) : container;
1392
- Object.defineProperty(container, "_$host", {
1393
- get() {
1394
- return marker.parentNode;
1395
- },
1396
- configurable: true
1397
- });
1398
- insert(renderRoot, content);
1399
- el.appendChild(container);
1400
- props.ref && props.ref(container);
1401
- onCleanup(() => el.removeChild(container));
1497
+ createEffect(
1498
+ () => {
1499
+ if (hydrating) getOwner().user = hydrating = false;
1500
+ content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1501
+ const el = mount();
1502
+ if (el instanceof HTMLHeadElement) {
1503
+ const [clean2, setClean] = createSignal(false);
1504
+ const cleanup = () => setClean(true);
1505
+ createRoot((dispose2) => insert(el, () => !clean2() ? content() : dispose2(), null));
1506
+ onCleanup(cleanup);
1507
+ } else {
1508
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1509
+ mode: "open"
1510
+ }) : container;
1511
+ Object.defineProperty(container, "_$host", {
1512
+ get() {
1513
+ return marker.parentNode;
1514
+ },
1515
+ configurable: true
1516
+ });
1517
+ insert(renderRoot, content);
1518
+ el.appendChild(container);
1519
+ props.ref && props.ref(container);
1520
+ onCleanup(() => el.removeChild(container));
1521
+ }
1522
+ },
1523
+ void 0,
1524
+ {
1525
+ render: !hydrating
1402
1526
  }
1403
- }, void 0, {
1404
- render: !hydrating
1405
- });
1527
+ );
1406
1528
  return marker;
1407
1529
  }
1408
1530
 
@@ -3293,7 +3415,7 @@ var Modal = (props) => {
3293
3415
  })();
3294
3416
  };
3295
3417
 
3296
- // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js
3418
+ // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.21/node_modules/@solid-primitives/transition-group/dist/index.js
3297
3419
  var noop2 = () => {
3298
3420
  };
3299
3421
  var noopTransition = (el, done) => done();
@@ -3361,10 +3483,10 @@ function createSwitchTransition(source, options) {
3361
3483
  return returned;
3362
3484
  }
3363
3485
 
3364
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3486
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.21/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3365
3487
  var access = (v) => typeof v === "function" && !v.length ? v() : v;
3366
3488
 
3367
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js
3489
+ // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.21/node_modules/@solid-primitives/refs/dist/index.js
3368
3490
  var defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
3369
3491
  function getFirstChild(value, predicate) {
3370
3492
  if (predicate(value))
@@ -3385,7 +3507,7 @@ function resolveFirst(fn, predicate = defaultElementPredicate, serverPredicate =
3385
3507
  return createMemo(() => getFirstChild(children2(), isServer ? serverPredicate : predicate));
3386
3508
  }
3387
3509
 
3388
- // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.19/node_modules/solid-transition-group/dist/index.js
3510
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.21/node_modules/solid-transition-group/dist/index.js
3389
3511
  function createClassnames(props) {
3390
3512
  return createMemo(() => {
3391
3513
  const name = props.name || "s";
@@ -3975,7 +4097,7 @@ var clickOutside = (node, handler) => {
3975
4097
  onCleanup(() => document.removeEventListener("click", handleClick, true));
3976
4098
  };
3977
4099
 
3978
- // ../../node_modules/.pnpm/@solid-primitives+destructure@0.1.17_solid-js@1.8.19/node_modules/@solid-primitives/destructure/dist/index.js
4100
+ // ../../node_modules/.pnpm/@solid-primitives+destructure@0.1.17_solid-js@1.8.21/node_modules/@solid-primitives/destructure/dist/index.js
3979
4101
  var isReactiveObject = (value) => typeof value === "object" && value !== null;
3980
4102
  function createProxyCache(obj, get) {
3981
4103
  return new Proxy(
package/package.json CHANGED
@@ -1,58 +1,58 @@
1
1
  {
2
- "name": "@novely/solid-renderer",
3
- "version": "0.38.0-next",
4
- "type": "module",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "types": "./dist/index.d.ts",
9
- "main": "./dist/index.jsx",
10
- "module": "./dist/index.jsx",
11
- "sideEffects": false,
12
- "scripts": {
13
- "dev": "node ./build.js --w",
14
- "build": "node ./build.js && tsc"
15
- },
16
- "devDependencies": {
17
- "esbuild": "^0.23.0",
18
- "esbuild-plugin-solid": "^0.6.0",
19
- "typescript": "^5.5.4"
20
- },
21
- "dependencies": {
22
- "@novely/core": "workspace:*",
23
- "@novely/renderer-toolkit": "workspace:*",
24
- "@novely/typewriter": "workspace:*",
25
- "@solid-primitives/destructure": "^0.1.17",
26
- "clsx": "^2.1.1",
27
- "solid-js": "1.8.19",
28
- "solid-transition-group": "^0.2.3"
29
- },
30
- "peerDependencies": {
31
- "@novely/core": "*",
32
- "solid-js": "*"
33
- },
34
- "license": "ISC",
35
- "bugs": {
36
- "url": "https://github.com/yhdgms1/novely/issues"
37
- },
38
- "homepage": "https://github.com/yhdgms1/novely/tree/main/packages/solid-renderer",
39
- "keywords": [
40
- "novely",
41
- "solid-js",
42
- "solid",
43
- "renderer",
44
- "novel"
45
- ],
46
- "author": {
47
- "name": "Artemiy Schukin",
48
- "url": "https://github.com/yhdgms1"
49
- },
50
- "contributors": [],
51
- "repository": {
52
- "type": "git",
53
- "url": "git+https://github.com/yhdgms1/novely.git"
54
- },
55
- "files": [
56
- "dist/*"
57
- ]
58
- }
2
+ "name": "@novely/solid-renderer",
3
+ "version": "0.38.0",
4
+ "type": "module",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "types": "./dist/index.d.ts",
9
+ "main": "./dist/index.jsx",
10
+ "module": "./dist/index.jsx",
11
+ "sideEffects": false,
12
+ "devDependencies": {
13
+ "esbuild": "^0.23.0",
14
+ "esbuild-plugin-solid": "^0.6.0",
15
+ "typescript": "^5.5.4"
16
+ },
17
+ "dependencies": {
18
+ "@solid-primitives/destructure": "^0.1.17",
19
+ "clsx": "^2.1.1",
20
+ "solid-js": "1.8.21",
21
+ "solid-transition-group": "^0.2.3",
22
+ "@novely/core": "0.40.0",
23
+ "@novely/renderer-toolkit": "0.9.0",
24
+ "@novely/typewriter": "0.5.1"
25
+ },
26
+ "peerDependencies": {
27
+ "@novely/core": "*",
28
+ "solid-js": "*"
29
+ },
30
+ "license": "ISC",
31
+ "bugs": {
32
+ "url": "https://github.com/yhdgms1/novely/issues"
33
+ },
34
+ "homepage": "https://github.com/yhdgms1/novely/tree/main/packages/solid-renderer",
35
+ "keywords": [
36
+ "novely",
37
+ "solid-js",
38
+ "solid",
39
+ "renderer",
40
+ "novel"
41
+ ],
42
+ "author": {
43
+ "name": "Artemiy Schukin",
44
+ "url": "https://github.com/yhdgms1"
45
+ },
46
+ "contributors": [],
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/yhdgms1/novely.git"
50
+ },
51
+ "files": [
52
+ "dist/*"
53
+ ],
54
+ "scripts": {
55
+ "dev": "node ./build.js --w",
56
+ "build": "node ./build.js && tsc"
57
+ }
58
+ }