@vertz/ui 0.2.24 → 0.2.25
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/shared/{chunk-2eh4p2n7.js → chunk-09ntccdx.js} +1 -1
- package/dist/shared/{chunk-4gen306a.js → chunk-1jgws7rs.js} +4 -109
- package/dist/shared/{chunk-2wag9c7v.js → chunk-2krx4aqe.js} +5 -5
- package/dist/shared/{chunk-f4d5nphq.js → chunk-7nr2ebrf.js} +1 -1
- package/dist/shared/{chunk-4gmtsf6v.js → chunk-bk7mmn92.js} +1 -1
- package/dist/shared/{chunk-mbnda3pv.js → chunk-djvarb8r.js} +123 -76
- package/dist/shared/{chunk-jtma4sh4.js → chunk-e09mdqcx.js} +2 -2
- package/dist/shared/{chunk-t3rnfxc0.js → chunk-j1a7t906.js} +2 -2
- package/dist/shared/{chunk-656n0x6y.js → chunk-ppr06jgn.js} +8 -2
- package/dist/shared/{chunk-ge2e6y2s.js → chunk-svvqjmyy.js} +1 -1
- package/dist/shared/{chunk-da2w7j7w.js → chunk-xs5s8gqe.js} +1 -1
- package/dist/shared/{chunk-18frwfc4.js → chunk-ymc3wwam.js} +8 -2
- package/dist/src/auth/public.js +4 -4
- package/dist/src/components/index.d.ts +2 -1
- package/dist/src/components/index.js +5 -0
- package/dist/src/css/public.js +3 -4
- package/dist/src/form/public.js +2 -2
- package/dist/src/index.d.ts +26 -44
- package/dist/src/index.js +17 -202
- package/dist/src/internals.d.ts +51 -5
- package/dist/src/internals.js +284 -74
- package/dist/src/query/public.d.ts +1 -32
- package/dist/src/query/public.js +5 -8
- package/dist/src/router/public.js +7 -8
- package/dist/src/test/index.js +3 -3
- package/package.json +3 -3
- package/dist/shared/chunk-2y9f9j62.js +0 -40
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isNavPrefetchActive
|
|
3
3
|
} from "./chunk-jrtrk5z4.js";
|
|
4
|
-
import {
|
|
5
|
-
getAdapter,
|
|
6
|
-
isRenderNode
|
|
7
|
-
} from "./chunk-2y9f9j62.js";
|
|
8
4
|
import {
|
|
9
5
|
registerActiveQuery
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-09ntccdx.js";
|
|
11
7
|
import {
|
|
12
8
|
isBrowser
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-xs5s8gqe.js";
|
|
14
10
|
import {
|
|
15
11
|
_tryOnCleanup,
|
|
16
12
|
batch,
|
|
17
13
|
computed,
|
|
18
|
-
domEffect,
|
|
19
14
|
getSSRContext,
|
|
20
15
|
lifecycleEffect,
|
|
21
|
-
popScope,
|
|
22
|
-
pushScope,
|
|
23
|
-
runCleanups,
|
|
24
16
|
setReadValueCallback,
|
|
25
17
|
signal,
|
|
26
18
|
untrack
|
|
27
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ppr06jgn.js";
|
|
28
20
|
|
|
29
21
|
// src/query/cache.ts
|
|
30
22
|
class MemoryCache {
|
|
@@ -1380,101 +1372,4 @@ function splitRefKey(key) {
|
|
|
1380
1372
|
return [key.slice(0, idx), key.slice(idx + 1)];
|
|
1381
1373
|
}
|
|
1382
1374
|
|
|
1383
|
-
|
|
1384
|
-
var cache = new WeakMap;
|
|
1385
|
-
function queryMatch(queryResult, handlers) {
|
|
1386
|
-
const key = queryResult;
|
|
1387
|
-
const existing = cache.get(key);
|
|
1388
|
-
if (existing && !existing.disposed) {
|
|
1389
|
-
existing.handlers = handlers;
|
|
1390
|
-
return existing.wrapper;
|
|
1391
|
-
}
|
|
1392
|
-
if (existing) {
|
|
1393
|
-
cache.delete(key);
|
|
1394
|
-
}
|
|
1395
|
-
const wrapper = getAdapter().createElement("span");
|
|
1396
|
-
wrapper.style.display = "contents";
|
|
1397
|
-
const entry = { wrapper, handlers, disposed: false };
|
|
1398
|
-
cache.set(key, entry);
|
|
1399
|
-
let currentBranch = null;
|
|
1400
|
-
let branchCleanups = [];
|
|
1401
|
-
const outerScope = pushScope();
|
|
1402
|
-
domEffect(() => {
|
|
1403
|
-
const isLoading = queryResult.loading.value;
|
|
1404
|
-
const err = queryResult.error.value;
|
|
1405
|
-
const dataValue = queryResult.data.value;
|
|
1406
|
-
let branch;
|
|
1407
|
-
if (isLoading || err === undefined && dataValue === undefined) {
|
|
1408
|
-
branch = "loading";
|
|
1409
|
-
} else if (err !== undefined) {
|
|
1410
|
-
branch = "error";
|
|
1411
|
-
} else {
|
|
1412
|
-
branch = "data";
|
|
1413
|
-
}
|
|
1414
|
-
if (branch === currentBranch) {
|
|
1415
|
-
return;
|
|
1416
|
-
}
|
|
1417
|
-
runCleanups(branchCleanups);
|
|
1418
|
-
while (wrapper.firstChild) {
|
|
1419
|
-
wrapper.removeChild(wrapper.firstChild);
|
|
1420
|
-
}
|
|
1421
|
-
currentBranch = branch;
|
|
1422
|
-
const scope = pushScope();
|
|
1423
|
-
let branchResult = null;
|
|
1424
|
-
if (branch === "loading") {
|
|
1425
|
-
branchResult = entry.handlers.loading();
|
|
1426
|
-
} else if (branch === "error") {
|
|
1427
|
-
branchResult = entry.handlers.error(err);
|
|
1428
|
-
} else {
|
|
1429
|
-
const dataSignal = queryResult.data;
|
|
1430
|
-
const dataProxy = new Proxy({}, {
|
|
1431
|
-
get(_target, prop, receiver) {
|
|
1432
|
-
const current = dataSignal.value;
|
|
1433
|
-
if (current == null)
|
|
1434
|
-
return;
|
|
1435
|
-
const value = Reflect.get(current, prop, receiver);
|
|
1436
|
-
if (typeof value === "function") {
|
|
1437
|
-
return value.bind(current);
|
|
1438
|
-
}
|
|
1439
|
-
return value;
|
|
1440
|
-
},
|
|
1441
|
-
has(_target, prop) {
|
|
1442
|
-
const current = dataSignal.value;
|
|
1443
|
-
if (current == null)
|
|
1444
|
-
return false;
|
|
1445
|
-
return Reflect.has(current, prop);
|
|
1446
|
-
},
|
|
1447
|
-
ownKeys() {
|
|
1448
|
-
const current = dataSignal.value;
|
|
1449
|
-
if (current == null)
|
|
1450
|
-
return [];
|
|
1451
|
-
return Reflect.ownKeys(current);
|
|
1452
|
-
},
|
|
1453
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
1454
|
-
const current = dataSignal.value;
|
|
1455
|
-
if (current == null)
|
|
1456
|
-
return;
|
|
1457
|
-
return Reflect.getOwnPropertyDescriptor(current, prop);
|
|
1458
|
-
}
|
|
1459
|
-
});
|
|
1460
|
-
branchResult = entry.handlers.data(dataProxy);
|
|
1461
|
-
}
|
|
1462
|
-
popScope();
|
|
1463
|
-
branchCleanups = scope;
|
|
1464
|
-
if (branchResult != null && isRenderNode(branchResult)) {
|
|
1465
|
-
wrapper.appendChild(branchResult);
|
|
1466
|
-
}
|
|
1467
|
-
});
|
|
1468
|
-
popScope();
|
|
1469
|
-
const dispose = () => {
|
|
1470
|
-
entry.disposed = true;
|
|
1471
|
-
runCleanups(branchCleanups);
|
|
1472
|
-
runCleanups(outerScope);
|
|
1473
|
-
cache.delete(key);
|
|
1474
|
-
};
|
|
1475
|
-
wrapper.dispose = dispose;
|
|
1476
|
-
_tryOnCleanup(dispose);
|
|
1477
|
-
return wrapper;
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
export { MemoryCache, deriveKey, FieldSelectionTracker, registerRelationSchema, getRelationSchema, resetRelationSchemas_TEST_ONLY, EntityStore, QueryEnvelopeStore, getEntityStore, getQueryEnvelopeStore, getMutationEventBus, query, queryMatch };
|
|
1375
|
+
export { MemoryCache, deriveKey, FieldSelectionTracker, registerRelationSchema, getRelationSchema, resetRelationSchemas_TEST_ONLY, EntityStore, QueryEnvelopeStore, getEntityStore, getQueryEnvelopeStore, getMutationEventBus, query };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
beginDeferringMounts,
|
|
4
4
|
discardDeferredMounts,
|
|
5
5
|
flushDeferredMounts
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-svvqjmyy.js";
|
|
7
7
|
import {
|
|
8
8
|
__append,
|
|
9
9
|
__classList,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
__enterChildren,
|
|
12
12
|
__exitChildren,
|
|
13
13
|
__staticText
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-djvarb8r.js";
|
|
15
15
|
import {
|
|
16
16
|
RouterContext
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7nr2ebrf.js";
|
|
18
18
|
import {
|
|
19
19
|
isBrowser
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-xs5s8gqe.js";
|
|
21
21
|
import {
|
|
22
22
|
_tryOnCleanup,
|
|
23
23
|
createContext,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
startHydration,
|
|
33
33
|
untrack,
|
|
34
34
|
useContext
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ppr06jgn.js";
|
|
36
36
|
|
|
37
37
|
// src/component/error-boundary-context.ts
|
|
38
38
|
var handlerStack = [];
|
|
@@ -5,10 +5,7 @@ import {
|
|
|
5
5
|
styleObjectToString
|
|
6
6
|
} from "./chunk-h1fsr8kv.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
isRenderNode
|
|
10
|
-
} from "./chunk-2y9f9j62.js";
|
|
11
|
-
import {
|
|
8
|
+
claimComment,
|
|
12
9
|
claimElement,
|
|
13
10
|
claimText,
|
|
14
11
|
deferredDomEffect,
|
|
@@ -16,39 +13,51 @@ import {
|
|
|
16
13
|
enterChildren,
|
|
17
14
|
exitChildren,
|
|
18
15
|
getIsHydrating,
|
|
16
|
+
getSSRContext,
|
|
19
17
|
pauseHydration,
|
|
20
18
|
popScope,
|
|
21
19
|
pushScope,
|
|
22
20
|
resumeHydration,
|
|
23
21
|
runCleanups
|
|
24
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ppr06jgn.js";
|
|
25
23
|
|
|
26
|
-
// src/dom/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
24
|
+
// src/dom/dom-adapter.ts
|
|
25
|
+
function createDOMAdapter() {
|
|
26
|
+
return {
|
|
27
|
+
createElement: (tag) => document.createElement(tag),
|
|
28
|
+
createElementNS: (ns, tag) => document.createElementNS(ns, tag),
|
|
29
|
+
createTextNode: (text) => document.createTextNode(text),
|
|
30
|
+
createComment: (text) => document.createComment(text),
|
|
31
|
+
createDocumentFragment: () => document.createDocumentFragment(),
|
|
32
|
+
isNode: (value) => typeof Node !== "undefined" && value instanceof Node
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// src/dom/adapter.ts
|
|
37
|
+
var RENDER_NODE_BRAND = Symbol.for("vertz:render-node");
|
|
38
|
+
function isRenderNode(value) {
|
|
39
|
+
if (value == null || typeof value !== "object")
|
|
40
|
+
return false;
|
|
41
|
+
if (RENDER_NODE_BRAND in value)
|
|
42
|
+
return true;
|
|
43
|
+
return typeof Node !== "undefined" && value instanceof Node;
|
|
44
|
+
}
|
|
45
|
+
var currentAdapter = null;
|
|
46
|
+
function getAdapter() {
|
|
47
|
+
const ctx = getSSRContext();
|
|
48
|
+
if (ctx)
|
|
49
|
+
return ctx.adapter;
|
|
50
|
+
if (!currentAdapter) {
|
|
51
|
+
currentAdapter = createDOMAdapter();
|
|
48
52
|
}
|
|
49
|
-
|
|
50
|
-
parent.appendChild(getAdapter().createTextNode(text));
|
|
53
|
+
return currentAdapter;
|
|
51
54
|
}
|
|
55
|
+
function setAdapter(adapter) {
|
|
56
|
+
currentAdapter = adapter;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// src/dom/element.ts
|
|
60
|
+
var MAX_THUNK_DEPTH = 100;
|
|
52
61
|
function __text(fn) {
|
|
53
62
|
if (getIsHydrating()) {
|
|
54
63
|
const claimed = claimText();
|
|
@@ -66,74 +75,112 @@ function __text(fn) {
|
|
|
66
75
|
});
|
|
67
76
|
return node;
|
|
68
77
|
}
|
|
78
|
+
function resolveAndInsertAfter(anchor, value, managed, depth = 0) {
|
|
79
|
+
if (depth >= MAX_THUNK_DEPTH) {
|
|
80
|
+
throw new Error("resolveAndInsertAfter: max recursion depth exceeded — possible circular thunk");
|
|
81
|
+
}
|
|
82
|
+
if (value == null || typeof value === "boolean")
|
|
83
|
+
return;
|
|
84
|
+
if (typeof value === "function") {
|
|
85
|
+
resolveAndInsertAfter(anchor, value(), managed, depth + 1);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (Array.isArray(value)) {
|
|
89
|
+
for (const item of value) {
|
|
90
|
+
resolveAndInsertAfter(anchor, item, managed, depth);
|
|
91
|
+
}
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const node = isRenderNode(value) ? value : getAdapter().createTextNode(typeof value === "string" ? value : String(value));
|
|
95
|
+
if (node.nodeType === 11) {
|
|
96
|
+
const children = Array.from(node.childNodes);
|
|
97
|
+
for (const child of children) {
|
|
98
|
+
const insertAfter2 = managed.length > 0 ? managed[managed.length - 1] : anchor;
|
|
99
|
+
insertAfter2.parentNode.insertBefore(child, insertAfter2.nextSibling);
|
|
100
|
+
managed.push(child);
|
|
101
|
+
}
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const insertAfter = managed.length > 0 ? managed[managed.length - 1] : anchor;
|
|
105
|
+
insertAfter.parentNode.insertBefore(node, insertAfter.nextSibling);
|
|
106
|
+
managed.push(node);
|
|
107
|
+
}
|
|
108
|
+
function childEffect(anchor, fn, managed, childCleanups) {
|
|
109
|
+
return domEffect(() => {
|
|
110
|
+
runCleanups(childCleanups.value);
|
|
111
|
+
const scope = pushScope();
|
|
112
|
+
const value = fn();
|
|
113
|
+
popScope();
|
|
114
|
+
childCleanups.value = scope;
|
|
115
|
+
if (managed.length === 1 && isRenderNode(value) && managed[0] === value) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (managed.length === 1 && managed[0].nodeType === 3 && !isRenderNode(value) && value != null && typeof value !== "boolean" && typeof value !== "function") {
|
|
119
|
+
const text = typeof value === "string" ? value : String(value);
|
|
120
|
+
managed[0].data = text;
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
for (const node of managed) {
|
|
124
|
+
node.parentNode?.removeChild(node);
|
|
125
|
+
}
|
|
126
|
+
managed.length = 0;
|
|
127
|
+
resolveAndInsertAfter(anchor, value, managed);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
69
130
|
function __child(fn) {
|
|
70
|
-
let wrapper;
|
|
71
131
|
if (getIsHydrating()) {
|
|
72
|
-
const claimed =
|
|
132
|
+
const claimed = claimComment();
|
|
73
133
|
if (claimed) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
134
|
+
const anchor2 = claimed;
|
|
135
|
+
const managed2 = [];
|
|
136
|
+
const childCleanups2 = { value: [] };
|
|
137
|
+
let sibling = anchor2.nextSibling;
|
|
138
|
+
while (sibling) {
|
|
139
|
+
if (sibling.nodeType === 8 && sibling.data.trim() === "child") {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
const next = sibling.nextSibling;
|
|
143
|
+
sibling.parentNode?.removeChild(sibling);
|
|
144
|
+
sibling = next;
|
|
77
145
|
}
|
|
78
146
|
pauseHydration();
|
|
79
147
|
try {
|
|
80
|
-
|
|
81
|
-
wrapper.dispose = domEffect(() => {
|
|
82
|
-
runCleanups(childCleanups2);
|
|
148
|
+
const dispose2 = childEffect(anchor2, ((originalFn) => () => {
|
|
83
149
|
const needsPause = getIsHydrating();
|
|
84
150
|
if (needsPause)
|
|
85
151
|
pauseHydration();
|
|
86
152
|
try {
|
|
87
|
-
|
|
88
|
-
const value = fn();
|
|
89
|
-
popScope();
|
|
90
|
-
childCleanups2 = scope;
|
|
91
|
-
if (isRenderNode(value) && wrapper.childNodes.length === 1 && wrapper.firstChild === value) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (!isRenderNode(value) && value != null && typeof value !== "boolean" && wrapper.childNodes.length === 1 && wrapper.firstChild.nodeType === 3) {
|
|
95
|
-
const text = typeof value === "string" ? value : String(value);
|
|
96
|
-
wrapper.firstChild.data = text;
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
while (wrapper.firstChild) {
|
|
100
|
-
wrapper.removeChild(wrapper.firstChild);
|
|
101
|
-
}
|
|
102
|
-
resolveAndAppend(wrapper, value);
|
|
153
|
+
return originalFn();
|
|
103
154
|
} finally {
|
|
104
155
|
if (needsPause)
|
|
105
156
|
resumeHydration();
|
|
106
157
|
}
|
|
158
|
+
})(fn), managed2, childCleanups2);
|
|
159
|
+
const result2 = Object.assign(anchor2, {
|
|
160
|
+
dispose: () => {
|
|
161
|
+
runCleanups(childCleanups2.value);
|
|
162
|
+
dispose2();
|
|
163
|
+
}
|
|
107
164
|
});
|
|
165
|
+
return result2;
|
|
108
166
|
} finally {
|
|
109
167
|
resumeHydration();
|
|
110
168
|
}
|
|
111
|
-
return wrapper;
|
|
112
169
|
}
|
|
113
170
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
if (!isRenderNode(value) && value != null && typeof value !== "boolean" && typeof value !== "function" && wrapper.childNodes.length === 1 && wrapper.firstChild.nodeType === 3) {
|
|
127
|
-
const text = typeof value === "string" ? value : String(value);
|
|
128
|
-
wrapper.firstChild.data = text;
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
while (wrapper.firstChild) {
|
|
132
|
-
wrapper.removeChild(wrapper.firstChild);
|
|
171
|
+
const anchor = getAdapter().createComment("child");
|
|
172
|
+
const fragment = getAdapter().createDocumentFragment();
|
|
173
|
+
fragment.appendChild(anchor);
|
|
174
|
+
const managed = [];
|
|
175
|
+
const childCleanups = { value: [] };
|
|
176
|
+
const dispose = childEffect(anchor, fn, managed, childCleanups);
|
|
177
|
+
const result = Object.assign(fragment, {
|
|
178
|
+
dispose: () => {
|
|
179
|
+
runCleanups(childCleanups.value);
|
|
180
|
+
dispose();
|
|
133
181
|
}
|
|
134
|
-
resolveAndAppend(wrapper, value);
|
|
135
182
|
});
|
|
136
|
-
return
|
|
183
|
+
return result;
|
|
137
184
|
}
|
|
138
185
|
function resolveAndInsert(parent, value, depth = 0) {
|
|
139
186
|
if (depth >= MAX_THUNK_DEPTH) {
|
|
@@ -283,4 +330,4 @@ function __classList(el, classMap) {
|
|
|
283
330
|
};
|
|
284
331
|
}
|
|
285
332
|
|
|
286
|
-
export { __text, __child, __insert, __element, __append, __staticText, __enterChildren, __exitChildren, __attr, __prop, __show, __classList };
|
|
333
|
+
export { createDOMAdapter, RENDER_NODE_BRAND, isRenderNode, getAdapter, setAdapter, __text, __child, __insert, __element, __append, __staticText, __enterChildren, __exitChildren, __attr, __prop, __show, __classList };
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from "./chunk-jrtrk5z4.js";
|
|
8
8
|
import {
|
|
9
9
|
isBrowser
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-xs5s8gqe.js";
|
|
11
11
|
import {
|
|
12
12
|
getSSRContext,
|
|
13
13
|
signal
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ppr06jgn.js";
|
|
15
15
|
|
|
16
16
|
// src/router/view-transitions.ts
|
|
17
17
|
var transitionGen = 0;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
__element,
|
|
5
5
|
__enterChildren,
|
|
6
6
|
__exitChildren
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-djvarb8r.js";
|
|
8
8
|
import {
|
|
9
9
|
getSSRContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ppr06jgn.js";
|
|
11
11
|
|
|
12
12
|
// src/component/children.ts
|
|
13
13
|
var MAX_RESOLVE_DEPTH = 100;
|
|
@@ -411,7 +411,7 @@ function claimText() {
|
|
|
411
411
|
currentNode = text.nextSibling;
|
|
412
412
|
return text;
|
|
413
413
|
}
|
|
414
|
-
if (currentNode.nodeType === Node.ELEMENT_NODE) {
|
|
414
|
+
if (currentNode.nodeType === Node.ELEMENT_NODE || currentNode.nodeType === Node.COMMENT_NODE) {
|
|
415
415
|
break;
|
|
416
416
|
}
|
|
417
417
|
currentNode = currentNode.nextSibling;
|
|
@@ -466,8 +466,14 @@ function findUnclaimedNodes(root, claimed) {
|
|
|
466
466
|
continue;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
if (child.nodeType === Node.
|
|
469
|
+
if (child.nodeType === Node.COMMENT_NODE && claimed.has(child) && child.data.trim() === "child") {
|
|
470
470
|
child = child.nextSibling;
|
|
471
|
+
while (child) {
|
|
472
|
+
if (child.nodeType === Node.COMMENT_NODE && child.data.trim() === "child") {
|
|
473
|
+
break;
|
|
474
|
+
}
|
|
475
|
+
child = child.nextSibling;
|
|
476
|
+
}
|
|
471
477
|
continue;
|
|
472
478
|
}
|
|
473
479
|
if (!claimed.has(child)) {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
injectCSS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-j1a7t906.js";
|
|
4
|
+
import {
|
|
5
|
+
createContext
|
|
6
|
+
} from "./chunk-ppr06jgn.js";
|
|
4
7
|
|
|
5
8
|
// src/dom/animation.ts
|
|
6
9
|
function onAnimationsComplete(el, callback) {
|
|
@@ -417,6 +420,9 @@ var palettes = {
|
|
|
417
420
|
pink,
|
|
418
421
|
rose
|
|
419
422
|
};
|
|
423
|
+
// src/dom/list-animation-context.ts
|
|
424
|
+
var ListAnimationContext = createContext(undefined, "@vertz/ui::ListAnimationContext");
|
|
425
|
+
|
|
420
426
|
// src/hydrate/component-registry.ts
|
|
421
427
|
async function resolveComponent(registry, componentId) {
|
|
422
428
|
const loader = registry[componentId];
|
|
@@ -547,4 +553,4 @@ function hydrateIslands(registry) {
|
|
|
547
553
|
// src/query/index.ts
|
|
548
554
|
import { isQueryDescriptor } from "@vertz/fetch";
|
|
549
555
|
|
|
550
|
-
export { onAnimationsComplete, keyframes, ANIMATION_DURATION, ANIMATION_EASING, fadeIn, fadeOut, zoomIn, zoomOut, slideInFromTop, slideInFromBottom, slideOutToTop, slideOutToBottom, slideInFromLeft, slideInFromRight, slideOutToLeft, slideOutToRight, accordionDown, accordionUp, palettes, resolveComponent, deserializeProps, hydrate, hydrateIslands, isQueryDescriptor };
|
|
556
|
+
export { onAnimationsComplete, keyframes, ANIMATION_DURATION, ANIMATION_EASING, fadeIn, fadeOut, zoomIn, zoomOut, slideInFromTop, slideInFromBottom, slideOutToTop, slideOutToBottom, slideInFromLeft, slideInFromRight, slideOutToLeft, slideOutToRight, accordionDown, accordionUp, palettes, ListAnimationContext, resolveComponent, deserializeProps, hydrate, hydrateIslands, isQueryDescriptor };
|
package/dist/src/auth/public.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RouterContext
|
|
3
|
-
} from "../../shared/chunk-
|
|
3
|
+
} from "../../shared/chunk-7nr2ebrf.js";
|
|
4
4
|
import {
|
|
5
5
|
invalidateTenantQueries
|
|
6
|
-
} from "../../shared/chunk-
|
|
6
|
+
} from "../../shared/chunk-09ntccdx.js";
|
|
7
7
|
import {
|
|
8
8
|
isBrowser
|
|
9
|
-
} from "../../shared/chunk-
|
|
9
|
+
} from "../../shared/chunk-xs5s8gqe.js";
|
|
10
10
|
import {
|
|
11
11
|
_tryOnCleanup,
|
|
12
12
|
computed,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getSSRContext,
|
|
15
15
|
signal,
|
|
16
16
|
useContext
|
|
17
|
-
} from "../../shared/chunk-
|
|
17
|
+
} from "../../shared/chunk-ppr06jgn.js";
|
|
18
18
|
|
|
19
19
|
// src/auth/access-context.ts
|
|
20
20
|
var AccessContext = createContext(undefined, "@vertz/ui::AccessContext");
|
|
@@ -51,6 +51,7 @@ declare const ContextMenu: ThemeComponentMap["ContextMenu"];
|
|
|
51
51
|
declare const Sheet: ThemeComponentMap["Sheet"];
|
|
52
52
|
declare const Drawer: ThemeComponentMap["Drawer"];
|
|
53
53
|
declare const Carousel: ThemeComponentMap["Carousel"];
|
|
54
|
+
declare const List: ThemeComponentMap["List"];
|
|
54
55
|
declare const Calendar: ThemeComponentMap["Calendar"];
|
|
55
56
|
declare const Checkbox: ThemeComponentMap["Checkbox"];
|
|
56
57
|
declare const Switch: ThemeComponentMap["Switch"];
|
|
@@ -67,4 +68,4 @@ declare const NavigationMenu: ThemeComponentMap["NavigationMenu"];
|
|
|
67
68
|
declare const ResizablePanel: ThemeComponentMap["ResizablePanel"];
|
|
68
69
|
declare const ScrollArea: ThemeComponentMap["ScrollArea"];
|
|
69
70
|
declare const ToggleGroup: ThemeComponentMap["ToggleGroup"];
|
|
70
|
-
export { Tooltip, ToggleGroup, Toggle, Toast, ThemeComponentMap, Textarea, Tabs, Table, Switch, Slider, Skeleton, Sheet, Separator, Select, ScrollArea, ResizablePanel, RadioGroup, Progress, Popover, Pagination, NavigationMenu, Menubar, Label, Input, HoverCard, FormGroup, EmptyState, DropdownMenu, Drawer, Dialog, DatePicker, ContextMenu, Command, Collapsible, Checkbox, Carousel, Card, Calendar, Button, Breadcrumb, Badge, Avatar, Alert, Accordion };
|
|
71
|
+
export { Tooltip, ToggleGroup, Toggle, Toast, ThemeComponentMap, Textarea, Tabs, Table, Switch, Slider, Skeleton, Sheet, Separator, Select, ScrollArea, ResizablePanel, RadioGroup, Progress, Popover, Pagination, NavigationMenu, Menubar, List, Label, Input, HoverCard, FormGroup, EmptyState, DropdownMenu, Drawer, Dialog, DatePicker, ContextMenu, Command, Collapsible, Checkbox, Carousel, Card, Calendar, Button, Breadcrumb, Badge, Avatar, Alert, Accordion };
|
|
@@ -145,6 +145,10 @@ var Drawer = /* @__PURE__ */ createCompoundProxy("Drawer", [
|
|
|
145
145
|
"Handle"
|
|
146
146
|
]);
|
|
147
147
|
var Carousel = /* @__PURE__ */ createCompoundProxy("Carousel", ["Slide", "Previous", "Next"]);
|
|
148
|
+
var List = /* @__PURE__ */ createCompoundProxy("List", [
|
|
149
|
+
"Item",
|
|
150
|
+
"DragHandle"
|
|
151
|
+
]);
|
|
148
152
|
var Calendar = /* @__PURE__ */ createPrimitiveProxy("Calendar");
|
|
149
153
|
var Checkbox = /* @__PURE__ */ createPrimitiveProxy("Checkbox");
|
|
150
154
|
var Switch = /* @__PURE__ */ createPrimitiveProxy("Switch");
|
|
@@ -193,6 +197,7 @@ export {
|
|
|
193
197
|
Pagination,
|
|
194
198
|
NavigationMenu,
|
|
195
199
|
Menubar,
|
|
200
|
+
List,
|
|
196
201
|
Label,
|
|
197
202
|
Input,
|
|
198
203
|
HoverCard,
|
package/dist/src/css/public.js
CHANGED
|
@@ -8,11 +8,10 @@ import {
|
|
|
8
8
|
globalCss,
|
|
9
9
|
s,
|
|
10
10
|
variants
|
|
11
|
-
} from "../../shared/chunk-
|
|
12
|
-
import"../../shared/chunk-
|
|
11
|
+
} from "../../shared/chunk-j1a7t906.js";
|
|
12
|
+
import"../../shared/chunk-djvarb8r.js";
|
|
13
13
|
import"../../shared/chunk-h1fsr8kv.js";
|
|
14
|
-
import"../../shared/chunk-
|
|
15
|
-
import"../../shared/chunk-656n0x6y.js";
|
|
14
|
+
import"../../shared/chunk-ppr06jgn.js";
|
|
16
15
|
export {
|
|
17
16
|
variants,
|
|
18
17
|
s,
|
package/dist/src/form/public.js
CHANGED