@almadar/ui 4.51.5 → 4.51.7
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/avl/index.cjs +14 -7
- package/dist/avl/index.js +14 -7
- package/dist/components/index.cjs +11 -4
- package/dist/components/index.js +11 -4
- package/dist/providers/index.cjs +11 -4
- package/dist/providers/index.js +11 -4
- package/dist/runtime/index.cjs +14 -7
- package/dist/runtime/index.js +14 -7
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -26230,7 +26230,7 @@ var init_FileTree = __esm({
|
|
|
26230
26230
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
26231
26231
|
Box,
|
|
26232
26232
|
{
|
|
26233
|
-
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-
|
|
26233
|
+
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`,
|
|
26234
26234
|
style: { paddingLeft: depth * indent + 8 },
|
|
26235
26235
|
onClick: handleClick,
|
|
26236
26236
|
role: "treeitem",
|
|
@@ -26250,18 +26250,25 @@ var init_FileTree = __esm({
|
|
|
26250
26250
|
{
|
|
26251
26251
|
name: isDir ? expanded ? "folder-open" : "folder" : fileIcon(node.name),
|
|
26252
26252
|
size: "xs",
|
|
26253
|
-
className: isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
26253
|
+
className: isSelected ? "text-inherit" : isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
26254
26254
|
}
|
|
26255
26255
|
),
|
|
26256
26256
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26257
26257
|
Typography,
|
|
26258
26258
|
{
|
|
26259
26259
|
variant: "caption",
|
|
26260
|
-
className: `truncate font-mono text-[11px] ${isSelected ? "font-semibold" : ""}`,
|
|
26260
|
+
className: `truncate font-mono text-[11px] !text-inherit ${isSelected ? "font-semibold" : ""}`,
|
|
26261
26261
|
children: node.name
|
|
26262
26262
|
}
|
|
26263
26263
|
),
|
|
26264
|
-
!isDir && node.size !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
26264
|
+
!isDir && node.size !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
26265
|
+
Typography,
|
|
26266
|
+
{
|
|
26267
|
+
variant: "caption",
|
|
26268
|
+
className: `text-[9px] ml-auto flex-shrink-0 ${isSelected ? "!text-inherit opacity-80" : "text-[var(--color-muted-foreground)]"}`,
|
|
26269
|
+
children: node.size < 1024 ? `${node.size}B` : `${Math.round(node.size / 1024)}KB`
|
|
26270
|
+
}
|
|
26271
|
+
)
|
|
26265
26272
|
]
|
|
26266
26273
|
}
|
|
26267
26274
|
),
|
|
@@ -57214,7 +57221,7 @@ function useResolvedSchema(schema, pageName) {
|
|
|
57214
57221
|
const ir = React93.useMemo(() => {
|
|
57215
57222
|
if (!schema) return null;
|
|
57216
57223
|
try {
|
|
57217
|
-
const resolved = core.schemaToIR(schema);
|
|
57224
|
+
const resolved = core.schemaToIR(schema, false);
|
|
57218
57225
|
const callSiteListensByTrait = /* @__PURE__ */ new Map();
|
|
57219
57226
|
for (const orb of schema.orbitals) {
|
|
57220
57227
|
for (const traitRef of orb.traits ?? []) {
|
|
@@ -58687,11 +58694,11 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
58687
58694
|
const prevTraitsRef = React93.useRef(void 0);
|
|
58688
58695
|
React93.useEffect(() => {
|
|
58689
58696
|
const refChanged = prevTraitsRef.current !== void 0 && prevTraitsRef.current !== traits2;
|
|
58690
|
-
navLog.
|
|
58697
|
+
navLog.debug("page:traits-effect", () => ({
|
|
58691
58698
|
refChanged,
|
|
58692
58699
|
traitsCount: Array.isArray(traits2) ? traits2.length : -1,
|
|
58693
58700
|
hadPrev: prevTraitsRef.current !== void 0
|
|
58694
|
-
});
|
|
58701
|
+
}));
|
|
58695
58702
|
if (refChanged) {
|
|
58696
58703
|
uiSlots.clearAll();
|
|
58697
58704
|
initSentRef.current = false;
|
package/dist/avl/index.js
CHANGED
|
@@ -26184,7 +26184,7 @@ var init_FileTree = __esm({
|
|
|
26184
26184
|
/* @__PURE__ */ jsxs(
|
|
26185
26185
|
Box,
|
|
26186
26186
|
{
|
|
26187
|
-
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-
|
|
26187
|
+
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`,
|
|
26188
26188
|
style: { paddingLeft: depth * indent + 8 },
|
|
26189
26189
|
onClick: handleClick,
|
|
26190
26190
|
role: "treeitem",
|
|
@@ -26204,18 +26204,25 @@ var init_FileTree = __esm({
|
|
|
26204
26204
|
{
|
|
26205
26205
|
name: isDir ? expanded ? "folder-open" : "folder" : fileIcon(node.name),
|
|
26206
26206
|
size: "xs",
|
|
26207
|
-
className: isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
26207
|
+
className: isSelected ? "text-inherit" : isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
26208
26208
|
}
|
|
26209
26209
|
),
|
|
26210
26210
|
/* @__PURE__ */ jsx(
|
|
26211
26211
|
Typography,
|
|
26212
26212
|
{
|
|
26213
26213
|
variant: "caption",
|
|
26214
|
-
className: `truncate font-mono text-[11px] ${isSelected ? "font-semibold" : ""}`,
|
|
26214
|
+
className: `truncate font-mono text-[11px] !text-inherit ${isSelected ? "font-semibold" : ""}`,
|
|
26215
26215
|
children: node.name
|
|
26216
26216
|
}
|
|
26217
26217
|
),
|
|
26218
|
-
!isDir && node.size !== void 0 && /* @__PURE__ */ jsx(
|
|
26218
|
+
!isDir && node.size !== void 0 && /* @__PURE__ */ jsx(
|
|
26219
|
+
Typography,
|
|
26220
|
+
{
|
|
26221
|
+
variant: "caption",
|
|
26222
|
+
className: `text-[9px] ml-auto flex-shrink-0 ${isSelected ? "!text-inherit opacity-80" : "text-[var(--color-muted-foreground)]"}`,
|
|
26223
|
+
children: node.size < 1024 ? `${node.size}B` : `${Math.round(node.size / 1024)}KB`
|
|
26224
|
+
}
|
|
26225
|
+
)
|
|
26219
26226
|
]
|
|
26220
26227
|
}
|
|
26221
26228
|
),
|
|
@@ -57168,7 +57175,7 @@ function useResolvedSchema(schema, pageName) {
|
|
|
57168
57175
|
const ir = useMemo(() => {
|
|
57169
57176
|
if (!schema) return null;
|
|
57170
57177
|
try {
|
|
57171
|
-
const resolved = schemaToIR(schema);
|
|
57178
|
+
const resolved = schemaToIR(schema, false);
|
|
57172
57179
|
const callSiteListensByTrait = /* @__PURE__ */ new Map();
|
|
57173
57180
|
for (const orb of schema.orbitals) {
|
|
57174
57181
|
for (const traitRef of orb.traits ?? []) {
|
|
@@ -58641,11 +58648,11 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
58641
58648
|
const prevTraitsRef = useRef(void 0);
|
|
58642
58649
|
useEffect(() => {
|
|
58643
58650
|
const refChanged = prevTraitsRef.current !== void 0 && prevTraitsRef.current !== traits2;
|
|
58644
|
-
navLog.
|
|
58651
|
+
navLog.debug("page:traits-effect", () => ({
|
|
58645
58652
|
refChanged,
|
|
58646
58653
|
traitsCount: Array.isArray(traits2) ? traits2.length : -1,
|
|
58647
58654
|
hadPrev: prevTraitsRef.current !== void 0
|
|
58648
|
-
});
|
|
58655
|
+
}));
|
|
58649
58656
|
if (refChanged) {
|
|
58650
58657
|
uiSlots.clearAll();
|
|
58651
58658
|
initSentRef.current = false;
|
|
@@ -21397,7 +21397,7 @@ var init_FileTree = __esm({
|
|
|
21397
21397
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21398
21398
|
exports.Box,
|
|
21399
21399
|
{
|
|
21400
|
-
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-
|
|
21400
|
+
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`,
|
|
21401
21401
|
style: { paddingLeft: depth * indent + 8 },
|
|
21402
21402
|
onClick: handleClick,
|
|
21403
21403
|
role: "treeitem",
|
|
@@ -21417,18 +21417,25 @@ var init_FileTree = __esm({
|
|
|
21417
21417
|
{
|
|
21418
21418
|
name: isDir ? expanded ? "folder-open" : "folder" : fileIcon(node.name),
|
|
21419
21419
|
size: "xs",
|
|
21420
|
-
className: isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
21420
|
+
className: isSelected ? "text-inherit" : isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
21421
21421
|
}
|
|
21422
21422
|
),
|
|
21423
21423
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21424
21424
|
exports.Typography,
|
|
21425
21425
|
{
|
|
21426
21426
|
variant: "caption",
|
|
21427
|
-
className: `truncate font-mono text-[11px] ${isSelected ? "font-semibold" : ""}`,
|
|
21427
|
+
className: `truncate font-mono text-[11px] !text-inherit ${isSelected ? "font-semibold" : ""}`,
|
|
21428
21428
|
children: node.name
|
|
21429
21429
|
}
|
|
21430
21430
|
),
|
|
21431
|
-
!isDir && node.size !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21431
|
+
!isDir && node.size !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21432
|
+
exports.Typography,
|
|
21433
|
+
{
|
|
21434
|
+
variant: "caption",
|
|
21435
|
+
className: `text-[9px] ml-auto flex-shrink-0 ${isSelected ? "!text-inherit opacity-80" : "text-[var(--color-muted-foreground)]"}`,
|
|
21436
|
+
children: node.size < 1024 ? `${node.size}B` : `${Math.round(node.size / 1024)}KB`
|
|
21437
|
+
}
|
|
21438
|
+
)
|
|
21432
21439
|
]
|
|
21433
21440
|
}
|
|
21434
21441
|
),
|
package/dist/components/index.js
CHANGED
|
@@ -21351,7 +21351,7 @@ var init_FileTree = __esm({
|
|
|
21351
21351
|
/* @__PURE__ */ jsxs(
|
|
21352
21352
|
Box,
|
|
21353
21353
|
{
|
|
21354
|
-
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-
|
|
21354
|
+
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`,
|
|
21355
21355
|
style: { paddingLeft: depth * indent + 8 },
|
|
21356
21356
|
onClick: handleClick,
|
|
21357
21357
|
role: "treeitem",
|
|
@@ -21371,18 +21371,25 @@ var init_FileTree = __esm({
|
|
|
21371
21371
|
{
|
|
21372
21372
|
name: isDir ? expanded ? "folder-open" : "folder" : fileIcon(node.name),
|
|
21373
21373
|
size: "xs",
|
|
21374
|
-
className: isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
21374
|
+
className: isSelected ? "text-inherit" : isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
21375
21375
|
}
|
|
21376
21376
|
),
|
|
21377
21377
|
/* @__PURE__ */ jsx(
|
|
21378
21378
|
Typography,
|
|
21379
21379
|
{
|
|
21380
21380
|
variant: "caption",
|
|
21381
|
-
className: `truncate font-mono text-[11px] ${isSelected ? "font-semibold" : ""}`,
|
|
21381
|
+
className: `truncate font-mono text-[11px] !text-inherit ${isSelected ? "font-semibold" : ""}`,
|
|
21382
21382
|
children: node.name
|
|
21383
21383
|
}
|
|
21384
21384
|
),
|
|
21385
|
-
!isDir && node.size !== void 0 && /* @__PURE__ */ jsx(
|
|
21385
|
+
!isDir && node.size !== void 0 && /* @__PURE__ */ jsx(
|
|
21386
|
+
Typography,
|
|
21387
|
+
{
|
|
21388
|
+
variant: "caption",
|
|
21389
|
+
className: `text-[9px] ml-auto flex-shrink-0 ${isSelected ? "!text-inherit opacity-80" : "text-[var(--color-muted-foreground)]"}`,
|
|
21390
|
+
children: node.size < 1024 ? `${node.size}B` : `${Math.round(node.size / 1024)}KB`
|
|
21391
|
+
}
|
|
21392
|
+
)
|
|
21386
21393
|
]
|
|
21387
21394
|
}
|
|
21388
21395
|
),
|
package/dist/providers/index.cjs
CHANGED
|
@@ -22642,7 +22642,7 @@ var init_FileTree = __esm({
|
|
|
22642
22642
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
22643
22643
|
Box,
|
|
22644
22644
|
{
|
|
22645
|
-
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-
|
|
22645
|
+
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`,
|
|
22646
22646
|
style: { paddingLeft: depth * indent + 8 },
|
|
22647
22647
|
onClick: handleClick,
|
|
22648
22648
|
role: "treeitem",
|
|
@@ -22662,18 +22662,25 @@ var init_FileTree = __esm({
|
|
|
22662
22662
|
{
|
|
22663
22663
|
name: isDir ? expanded ? "folder-open" : "folder" : fileIcon(node.name),
|
|
22664
22664
|
size: "xs",
|
|
22665
|
-
className: isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
22665
|
+
className: isSelected ? "text-inherit" : isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
22666
22666
|
}
|
|
22667
22667
|
),
|
|
22668
22668
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22669
22669
|
Typography,
|
|
22670
22670
|
{
|
|
22671
22671
|
variant: "caption",
|
|
22672
|
-
className: `truncate font-mono text-[11px] ${isSelected ? "font-semibold" : ""}`,
|
|
22672
|
+
className: `truncate font-mono text-[11px] !text-inherit ${isSelected ? "font-semibold" : ""}`,
|
|
22673
22673
|
children: node.name
|
|
22674
22674
|
}
|
|
22675
22675
|
),
|
|
22676
|
-
!isDir && node.size !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
22676
|
+
!isDir && node.size !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
22677
|
+
Typography,
|
|
22678
|
+
{
|
|
22679
|
+
variant: "caption",
|
|
22680
|
+
className: `text-[9px] ml-auto flex-shrink-0 ${isSelected ? "!text-inherit opacity-80" : "text-[var(--color-muted-foreground)]"}`,
|
|
22681
|
+
children: node.size < 1024 ? `${node.size}B` : `${Math.round(node.size / 1024)}KB`
|
|
22682
|
+
}
|
|
22683
|
+
)
|
|
22677
22684
|
]
|
|
22678
22685
|
}
|
|
22679
22686
|
),
|
package/dist/providers/index.js
CHANGED
|
@@ -22596,7 +22596,7 @@ var init_FileTree = __esm({
|
|
|
22596
22596
|
/* @__PURE__ */ jsxs(
|
|
22597
22597
|
Box,
|
|
22598
22598
|
{
|
|
22599
|
-
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-
|
|
22599
|
+
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`,
|
|
22600
22600
|
style: { paddingLeft: depth * indent + 8 },
|
|
22601
22601
|
onClick: handleClick,
|
|
22602
22602
|
role: "treeitem",
|
|
@@ -22616,18 +22616,25 @@ var init_FileTree = __esm({
|
|
|
22616
22616
|
{
|
|
22617
22617
|
name: isDir ? expanded ? "folder-open" : "folder" : fileIcon(node.name),
|
|
22618
22618
|
size: "xs",
|
|
22619
|
-
className: isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
22619
|
+
className: isSelected ? "text-inherit" : isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
22620
22620
|
}
|
|
22621
22621
|
),
|
|
22622
22622
|
/* @__PURE__ */ jsx(
|
|
22623
22623
|
Typography,
|
|
22624
22624
|
{
|
|
22625
22625
|
variant: "caption",
|
|
22626
|
-
className: `truncate font-mono text-[11px] ${isSelected ? "font-semibold" : ""}`,
|
|
22626
|
+
className: `truncate font-mono text-[11px] !text-inherit ${isSelected ? "font-semibold" : ""}`,
|
|
22627
22627
|
children: node.name
|
|
22628
22628
|
}
|
|
22629
22629
|
),
|
|
22630
|
-
!isDir && node.size !== void 0 && /* @__PURE__ */ jsx(
|
|
22630
|
+
!isDir && node.size !== void 0 && /* @__PURE__ */ jsx(
|
|
22631
|
+
Typography,
|
|
22632
|
+
{
|
|
22633
|
+
variant: "caption",
|
|
22634
|
+
className: `text-[9px] ml-auto flex-shrink-0 ${isSelected ? "!text-inherit opacity-80" : "text-[var(--color-muted-foreground)]"}`,
|
|
22635
|
+
children: node.size < 1024 ? `${node.size}B` : `${Math.round(node.size / 1024)}KB`
|
|
22636
|
+
}
|
|
22637
|
+
)
|
|
22631
22638
|
]
|
|
22632
22639
|
}
|
|
22633
22640
|
),
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -22411,7 +22411,7 @@ var init_FileTree = __esm({
|
|
|
22411
22411
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
22412
22412
|
Box,
|
|
22413
22413
|
{
|
|
22414
|
-
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-
|
|
22414
|
+
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`,
|
|
22415
22415
|
style: { paddingLeft: depth * indent + 8 },
|
|
22416
22416
|
onClick: handleClick,
|
|
22417
22417
|
role: "treeitem",
|
|
@@ -22431,18 +22431,25 @@ var init_FileTree = __esm({
|
|
|
22431
22431
|
{
|
|
22432
22432
|
name: isDir ? expanded ? "folder-open" : "folder" : fileIcon(node.name),
|
|
22433
22433
|
size: "xs",
|
|
22434
|
-
className: isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
22434
|
+
className: isSelected ? "text-inherit" : isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
22435
22435
|
}
|
|
22436
22436
|
),
|
|
22437
22437
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22438
22438
|
Typography,
|
|
22439
22439
|
{
|
|
22440
22440
|
variant: "caption",
|
|
22441
|
-
className: `truncate font-mono text-[11px] ${isSelected ? "font-semibold" : ""}`,
|
|
22441
|
+
className: `truncate font-mono text-[11px] !text-inherit ${isSelected ? "font-semibold" : ""}`,
|
|
22442
22442
|
children: node.name
|
|
22443
22443
|
}
|
|
22444
22444
|
),
|
|
22445
|
-
!isDir && node.size !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
22445
|
+
!isDir && node.size !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
22446
|
+
Typography,
|
|
22447
|
+
{
|
|
22448
|
+
variant: "caption",
|
|
22449
|
+
className: `text-[9px] ml-auto flex-shrink-0 ${isSelected ? "!text-inherit opacity-80" : "text-[var(--color-muted-foreground)]"}`,
|
|
22450
|
+
children: node.size < 1024 ? `${node.size}B` : `${Math.round(node.size / 1024)}KB`
|
|
22451
|
+
}
|
|
22452
|
+
)
|
|
22446
22453
|
]
|
|
22447
22454
|
}
|
|
22448
22455
|
),
|
|
@@ -45839,7 +45846,7 @@ function useResolvedSchema(schema, pageName) {
|
|
|
45839
45846
|
const ir = React80.useMemo(() => {
|
|
45840
45847
|
if (!schema) return null;
|
|
45841
45848
|
try {
|
|
45842
|
-
const resolved = core.schemaToIR(schema);
|
|
45849
|
+
const resolved = core.schemaToIR(schema, false);
|
|
45843
45850
|
const callSiteListensByTrait = /* @__PURE__ */ new Map();
|
|
45844
45851
|
for (const orb of schema.orbitals) {
|
|
45845
45852
|
for (const traitRef of orb.traits ?? []) {
|
|
@@ -46578,11 +46585,11 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
46578
46585
|
const prevTraitsRef = React80.useRef(void 0);
|
|
46579
46586
|
React80.useEffect(() => {
|
|
46580
46587
|
const refChanged = prevTraitsRef.current !== void 0 && prevTraitsRef.current !== traits2;
|
|
46581
|
-
navLog.
|
|
46588
|
+
navLog.debug("page:traits-effect", () => ({
|
|
46582
46589
|
refChanged,
|
|
46583
46590
|
traitsCount: Array.isArray(traits2) ? traits2.length : -1,
|
|
46584
46591
|
hadPrev: prevTraitsRef.current !== void 0
|
|
46585
|
-
});
|
|
46592
|
+
}));
|
|
46586
46593
|
if (refChanged) {
|
|
46587
46594
|
uiSlots.clearAll();
|
|
46588
46595
|
initSentRef.current = false;
|
package/dist/runtime/index.js
CHANGED
|
@@ -22365,7 +22365,7 @@ var init_FileTree = __esm({
|
|
|
22365
22365
|
/* @__PURE__ */ jsxs(
|
|
22366
22366
|
Box,
|
|
22367
22367
|
{
|
|
22368
|
-
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-
|
|
22368
|
+
className: `flex items-center gap-1.5 py-0.5 px-2 cursor-pointer rounded-sm transition-colors ${isSelected ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`,
|
|
22369
22369
|
style: { paddingLeft: depth * indent + 8 },
|
|
22370
22370
|
onClick: handleClick,
|
|
22371
22371
|
role: "treeitem",
|
|
@@ -22385,18 +22385,25 @@ var init_FileTree = __esm({
|
|
|
22385
22385
|
{
|
|
22386
22386
|
name: isDir ? expanded ? "folder-open" : "folder" : fileIcon(node.name),
|
|
22387
22387
|
size: "xs",
|
|
22388
|
-
className: isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
22388
|
+
className: isSelected ? "text-inherit" : isDir ? "text-[var(--color-warning)]" : "text-[var(--color-muted-foreground)]"
|
|
22389
22389
|
}
|
|
22390
22390
|
),
|
|
22391
22391
|
/* @__PURE__ */ jsx(
|
|
22392
22392
|
Typography,
|
|
22393
22393
|
{
|
|
22394
22394
|
variant: "caption",
|
|
22395
|
-
className: `truncate font-mono text-[11px] ${isSelected ? "font-semibold" : ""}`,
|
|
22395
|
+
className: `truncate font-mono text-[11px] !text-inherit ${isSelected ? "font-semibold" : ""}`,
|
|
22396
22396
|
children: node.name
|
|
22397
22397
|
}
|
|
22398
22398
|
),
|
|
22399
|
-
!isDir && node.size !== void 0 && /* @__PURE__ */ jsx(
|
|
22399
|
+
!isDir && node.size !== void 0 && /* @__PURE__ */ jsx(
|
|
22400
|
+
Typography,
|
|
22401
|
+
{
|
|
22402
|
+
variant: "caption",
|
|
22403
|
+
className: `text-[9px] ml-auto flex-shrink-0 ${isSelected ? "!text-inherit opacity-80" : "text-[var(--color-muted-foreground)]"}`,
|
|
22404
|
+
children: node.size < 1024 ? `${node.size}B` : `${Math.round(node.size / 1024)}KB`
|
|
22405
|
+
}
|
|
22406
|
+
)
|
|
22400
22407
|
]
|
|
22401
22408
|
}
|
|
22402
22409
|
),
|
|
@@ -45793,7 +45800,7 @@ function useResolvedSchema(schema, pageName) {
|
|
|
45793
45800
|
const ir = useMemo(() => {
|
|
45794
45801
|
if (!schema) return null;
|
|
45795
45802
|
try {
|
|
45796
|
-
const resolved = schemaToIR(schema);
|
|
45803
|
+
const resolved = schemaToIR(schema, false);
|
|
45797
45804
|
const callSiteListensByTrait = /* @__PURE__ */ new Map();
|
|
45798
45805
|
for (const orb of schema.orbitals) {
|
|
45799
45806
|
for (const traitRef of orb.traits ?? []) {
|
|
@@ -46532,11 +46539,11 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
46532
46539
|
const prevTraitsRef = useRef(void 0);
|
|
46533
46540
|
useEffect(() => {
|
|
46534
46541
|
const refChanged = prevTraitsRef.current !== void 0 && prevTraitsRef.current !== traits2;
|
|
46535
|
-
navLog.
|
|
46542
|
+
navLog.debug("page:traits-effect", () => ({
|
|
46536
46543
|
refChanged,
|
|
46537
46544
|
traitsCount: Array.isArray(traits2) ? traits2.length : -1,
|
|
46538
46545
|
hadPrev: prevTraitsRef.current !== void 0
|
|
46539
|
-
});
|
|
46546
|
+
}));
|
|
46540
46547
|
if (refChanged) {
|
|
46541
46548
|
uiSlots.clearAll();
|
|
46542
46549
|
initSentRef.current = false;
|