@vertz/ui 0.2.30 → 0.2.32

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.
@@ -139,14 +139,27 @@ function __child(fn) {
139
139
  const managed2 = [];
140
140
  const childCleanups2 = { value: [] };
141
141
  let sibling = anchor2.nextSibling;
142
+ let depth = 0;
142
143
  while (sibling) {
143
144
  const next = sibling.nextSibling;
144
- if (sibling.nodeType === 8 && sibling.data.trim() === "/child") {
145
- sibling.parentNode?.removeChild(sibling);
146
- break;
147
- }
148
- if (sibling.nodeType === 8 && sibling.data.trim() === "child") {
149
- break;
145
+ if (sibling.nodeType === 8) {
146
+ const data = sibling.data.trim();
147
+ if (data === "/child") {
148
+ if (depth > 0) {
149
+ depth--;
150
+ sibling.parentNode?.removeChild(sibling);
151
+ sibling = next;
152
+ continue;
153
+ }
154
+ sibling.parentNode?.removeChild(sibling);
155
+ break;
156
+ }
157
+ if (data === "child") {
158
+ depth++;
159
+ sibling.parentNode?.removeChild(sibling);
160
+ sibling = next;
161
+ continue;
162
+ }
150
163
  }
151
164
  sibling.parentNode?.removeChild(sibling);
152
165
  sibling = next;
@@ -844,6 +844,8 @@ function query(source, options = {}) {
844
844
  return result.data;
845
845
  }, { ...options, key: source._key, _entityMeta: entityMeta2 });
846
846
  }
847
+ let unsubscribeBus;
848
+ let unregisterFromRegistry;
847
849
  const thunk = source;
848
850
  const {
849
851
  initialData,
@@ -1144,8 +1146,6 @@ function query(source, options = {}) {
1144
1146
  getInflight().delete(key);
1145
1147
  refetchTrigger.value = refetchTrigger.peek() + 1;
1146
1148
  }
1147
- let unsubscribeBus;
1148
- let unregisterFromRegistry;
1149
1149
  let disposeFn;
1150
1150
  let isFirst = true;
1151
1151
  disposeFn = lifecycleEffect(() => {
@@ -1295,7 +1295,7 @@ function query(source, options = {}) {
1295
1295
  startFetch(promise, key);
1296
1296
  }
1297
1297
  });
1298
- function dispose() {
1298
+ const dispose = () => {
1299
1299
  if (referencedKeys.size > 0) {
1300
1300
  const store = getEntityStore();
1301
1301
  for (const key of referencedKeys) {
@@ -1319,7 +1319,7 @@ function query(source, options = {}) {
1319
1319
  getInflight().delete(key);
1320
1320
  }
1321
1321
  inflightKeys.clear();
1322
- }
1322
+ };
1323
1323
  function createClearData(meta) {
1324
1324
  return () => {
1325
1325
  untrack(() => {
@@ -11,7 +11,7 @@ import {
11
11
  __enterChildren,
12
12
  __exitChildren,
13
13
  __staticText
14
- } from "./chunk-1j59xzqm.js";
14
+ } from "./chunk-dh32wkrv.js";
15
15
  import {
16
16
  RouterContext
17
17
  } from "./chunk-9p84cvet.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  injectCSS
3
- } from "./chunk-pwmjtxpn.js";
3
+ } from "./chunk-zkh9sysw.js";
4
4
  import {
5
5
  createContext
6
6
  } from "./chunk-1yd6jfw5.js";
@@ -4,7 +4,7 @@ import {
4
4
  __element,
5
5
  __enterChildren,
6
6
  __exitChildren
7
- } from "./chunk-1j59xzqm.js";
7
+ } from "./chunk-dh32wkrv.js";
8
8
  import {
9
9
  getSSRContext
10
10
  } from "./chunk-1yd6jfw5.js";
@@ -8,8 +8,8 @@ import {
8
8
  globalCss,
9
9
  s,
10
10
  variants
11
- } from "../../shared/chunk-pwmjtxpn.js";
12
- import"../../shared/chunk-1j59xzqm.js";
11
+ } from "../../shared/chunk-zkh9sysw.js";
12
+ import"../../shared/chunk-dh32wkrv.js";
13
13
  import"../../shared/chunk-h1fsr8kv.js";
14
14
  import"../../shared/chunk-1yd6jfw5.js";
15
15
  export {
package/dist/src/index.js CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  slideOutToTop,
26
26
  zoomIn,
27
27
  zoomOut
28
- } from "../shared/chunk-n824qrvk.js";
28
+ } from "../shared/chunk-xyg724n1.js";
29
29
  import {
30
30
  ErrorBoundary,
31
31
  Link,
@@ -36,7 +36,7 @@ import {
36
36
  getCurrentErrorHandler,
37
37
  parseSearchParams,
38
38
  useSearchParams
39
- } from "../shared/chunk-5xm1w16j.js";
39
+ } from "../shared/chunk-jt34jcfg.js";
40
40
  import {
41
41
  beginDeferringMounts,
42
42
  discardDeferredMounts,
@@ -66,7 +66,7 @@ import {
66
66
  query,
67
67
  registerRelationSchema,
68
68
  resetRelationSchemas_TEST_ONLY
69
- } from "../shared/chunk-5vcnmqck.js";
69
+ } from "../shared/chunk-gz7rj5tv.js";
70
70
  import"../shared/chunk-jrtrk5z4.js";
71
71
  import {
72
72
  ThemeProvider,
@@ -83,7 +83,7 @@ import {
83
83
  resolveChildren,
84
84
  s,
85
85
  variants
86
- } from "../shared/chunk-pwmjtxpn.js";
86
+ } from "../shared/chunk-zkh9sysw.js";
87
87
  import {
88
88
  RENDER_NODE_BRAND,
89
89
  __append,
@@ -96,7 +96,7 @@ import {
96
96
  getAdapter,
97
97
  isRenderNode,
98
98
  setAdapter
99
- } from "../shared/chunk-1j59xzqm.js";
99
+ } from "../shared/chunk-dh32wkrv.js";
100
100
  import"../shared/chunk-h1fsr8kv.js";
101
101
  import {
102
102
  RouterContext,
@@ -3,7 +3,7 @@ import {
3
3
  deserializeProps,
4
4
  onAnimationsComplete,
5
5
  resolveComponent
6
- } from "../shared/chunk-n824qrvk.js";
6
+ } from "../shared/chunk-xyg724n1.js";
7
7
  import {
8
8
  __discardMountFrame,
9
9
  __flushMountFrame,
@@ -20,7 +20,7 @@ import {
20
20
  MemoryCache,
21
21
  QueryEnvelopeStore,
22
22
  deriveKey
23
- } from "../shared/chunk-5vcnmqck.js";
23
+ } from "../shared/chunk-gz7rj5tv.js";
24
24
  import"../shared/chunk-jrtrk5z4.js";
25
25
  import {
26
26
  ALIGNMENT_MAP,
@@ -41,7 +41,7 @@ import {
41
41
  SIZE_KEYWORDS,
42
42
  SPACING_SCALE,
43
43
  compileTheme
44
- } from "../shared/chunk-pwmjtxpn.js";
44
+ } from "../shared/chunk-zkh9sysw.js";
45
45
  import {
46
46
  RENDER_NODE_BRAND,
47
47
  __append,
@@ -60,7 +60,7 @@ import {
60
60
  getAdapter,
61
61
  isRenderNode,
62
62
  setAdapter
63
- } from "../shared/chunk-1j59xzqm.js";
63
+ } from "../shared/chunk-dh32wkrv.js";
64
64
  import {
65
65
  SVG_NS,
66
66
  normalizeSVGAttr,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  query
3
- } from "../../shared/chunk-5vcnmqck.js";
3
+ } from "../../shared/chunk-gz7rj5tv.js";
4
4
  import"../../shared/chunk-jrtrk5z4.js";
5
5
  import"../../shared/chunk-pv0apt9z.js";
6
6
  import"../../shared/chunk-sjypbv24.js";
@@ -6,7 +6,7 @@ import {
6
6
  createLink,
7
7
  parseSearchParams,
8
8
  useSearchParams
9
- } from "../../shared/chunk-5xm1w16j.js";
9
+ } from "../../shared/chunk-jt34jcfg.js";
10
10
  import"../../shared/chunk-mntc8w0g.js";
11
11
  import {
12
12
  createRouter
@@ -15,7 +15,7 @@ import {
15
15
  defineRoutes
16
16
  } from "../../shared/chunk-ah86rm07.js";
17
17
  import"../../shared/chunk-jrtrk5z4.js";
18
- import"../../shared/chunk-1j59xzqm.js";
18
+ import"../../shared/chunk-dh32wkrv.js";
19
19
  import"../../shared/chunk-h1fsr8kv.js";
20
20
  import {
21
21
  RouterContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertz/ui",
3
- "version": "0.2.30",
3
+ "version": "0.2.32",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Vertz UI framework — signals, components, JSX runtime",
@@ -74,11 +74,11 @@
74
74
  "typecheck": "tsc --noEmit"
75
75
  },
76
76
  "dependencies": {
77
- "@vertz/fetch": "^0.2.29"
77
+ "@vertz/fetch": "^0.2.30"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@happy-dom/global-registrator": "^20.7.0",
81
- "@vertz/schema": "^0.2.29",
81
+ "@vertz/schema": "^0.2.30",
82
82
  "bunup": "^0.16.31",
83
83
  "happy-dom": "^20.7.0",
84
84
  "typescript": "^5.7.0"