@powerhousedao/vetra 6.2.0-dev.2 → 6.2.0-dev.21
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/codegen/index.d.ts +4 -4
- package/dist/document-models/app-module/index.d.ts +1 -1
- package/dist/document-models/document-editor/index.d.ts +1 -1
- package/dist/document-models/index.d.ts +5 -5
- package/dist/document-models/processor-module/index.d.ts +1 -1
- package/dist/document-models/subgraph-module/index.d.ts +1 -1
- package/dist/document-models/vetra-package/index.d.ts +1 -1
- package/dist/{editor-CM9tpwzR.js → editor-B560eld_.js} +15 -15
- package/dist/editor-B560eld_.js.map +1 -0
- package/dist/{editor-rYCWiter.js → editor-CAVHtR-v.js} +6 -6
- package/dist/editor-CAVHtR-v.js.map +1 -0
- package/dist/{editor-D-QqGEkw.js → editor-CVCLxUhe.js} +14 -14
- package/dist/editor-CVCLxUhe.js.map +1 -0
- package/dist/{editor-BamOOi9L.js → editor-DnG2Zzet.js} +10 -10
- package/dist/editor-DnG2Zzet.js.map +1 -0
- package/dist/{editor-Dz3cXtzn.js → editor-mor7dV6n.js} +56 -56
- package/dist/editor-mor7dV6n.js.map +1 -0
- package/dist/{editor-je4HFt2f.js → editor-xCnDas6c.js} +30 -30
- package/dist/editor-xCnDas6c.js.map +1 -0
- package/dist/editors/components/index.js +1 -1
- package/dist/editors/components/index.js.map +1 -1
- package/dist/editors/index.js +1 -1
- package/dist/{index-DE_s19VI.d.ts → index-DCNTOgFn.d.ts} +4 -4
- package/dist/index-DCNTOgFn.d.ts.map +1 -0
- package/dist/{index-6u5B5ORH.d.ts → index-DKH5DHrE.d.ts} +4 -4
- package/dist/index-DKH5DHrE.d.ts.map +1 -0
- package/dist/{index-BzDZOr5P.d.ts → index-DsC-4q78.d.ts} +4 -4
- package/dist/index-DsC-4q78.d.ts.map +1 -0
- package/dist/{index-BL4jGAtJ.d.ts → index-uG0ivQaR.d.ts} +4 -4
- package/dist/index-uG0ivQaR.d.ts.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/module-1hr_ne9w.js.map +1 -1
- package/dist/{module-rS5YXFpM.d.ts → module-DTjIlvYU.d.ts} +4 -4
- package/dist/module-DTjIlvYU.d.ts.map +1 -0
- package/dist/{module-DvO77TZz.js → module-DySsSIQV.js} +7 -7
- package/dist/{module-DvO77TZz.js.map → module-DySsSIQV.js.map} +1 -1
- package/dist/utils-B4KdjDnp.js.map +1 -1
- package/dist/utils-BiV3cs9Y.js.map +1 -1
- package/dist/utils-CkWB3DRk.js.map +1 -1
- package/dist/utils-D0ejTHeY.js.map +1 -1
- package/package.json +9 -9
- package/dist/editor-BamOOi9L.js.map +0 -1
- package/dist/editor-CM9tpwzR.js.map +0 -1
- package/dist/editor-D-QqGEkw.js.map +0 -1
- package/dist/editor-Dz3cXtzn.js.map +0 -1
- package/dist/editor-je4HFt2f.js.map +0 -1
- package/dist/editor-rYCWiter.js.map +0 -1
- package/dist/index-6u5B5ORH.d.ts.map +0 -1
- package/dist/index-BL4jGAtJ.d.ts.map +0 -1
- package/dist/index-BzDZOr5P.d.ts.map +0 -1
- package/dist/index-DE_s19VI.d.ts.map +0 -1
- package/dist/module-rS5YXFpM.d.ts.map +0 -1
|
@@ -69,7 +69,7 @@ const DriveInfoItem = ({ label, value }) => {
|
|
|
69
69
|
};
|
|
70
70
|
return /* @__PURE__ */ jsxs("button", {
|
|
71
71
|
"aria-label": `Copy ${label}`,
|
|
72
|
-
className: "flex h-8 items-center gap-1 rounded-lg bg-
|
|
72
|
+
className: "flex h-8 items-center gap-1 rounded-lg bg-background pr-2 pl-1 text-xs whitespace-nowrap text-foreground",
|
|
73
73
|
onClick: handleCopy,
|
|
74
74
|
children: [
|
|
75
75
|
/* @__PURE__ */ jsx(LinkIcon, {
|
|
@@ -78,7 +78,7 @@ const DriveInfoItem = ({ label, value }) => {
|
|
|
78
78
|
}),
|
|
79
79
|
label,
|
|
80
80
|
/* @__PURE__ */ jsx("span", {
|
|
81
|
-
className: "text-
|
|
81
|
+
className: "text-foreground",
|
|
82
82
|
children: value
|
|
83
83
|
})
|
|
84
84
|
]
|
|
@@ -120,7 +120,7 @@ const ShareMenuItem = ({ label, url }) => {
|
|
|
120
120
|
return /* @__PURE__ */ jsxs("div", {
|
|
121
121
|
className: "flex flex-col gap-1",
|
|
122
122
|
children: [/* @__PURE__ */ jsx("span", {
|
|
123
|
-
className: "text-xs text-
|
|
123
|
+
className: "text-xs text-muted-foreground",
|
|
124
124
|
children: label
|
|
125
125
|
}), /* @__PURE__ */ jsxs("div", {
|
|
126
126
|
className: "flex items-center gap-2",
|
|
@@ -132,14 +132,14 @@ const ShareMenuItem = ({ label, url }) => {
|
|
|
132
132
|
type: "text",
|
|
133
133
|
readOnly: true,
|
|
134
134
|
value: url,
|
|
135
|
-
className: "w-[300px] truncate rounded-lg border border-
|
|
135
|
+
className: "w-[300px] truncate rounded-lg border border-border bg-background px-3 py-2 text-xs text-foreground underline outline-none placeholder:text-muted-foreground disabled:disabled-effect"
|
|
136
136
|
}), showTooltip && /* @__PURE__ */ jsx("div", {
|
|
137
|
-
className: "absolute top-full left-0 z-20 mt-1 max-w-md rounded-lg bg-
|
|
137
|
+
className: "absolute top-full left-0 z-20 mt-1 max-w-md rounded-lg bg-primary px-3 py-2 text-xs break-all text-primary-foreground shadow-lg",
|
|
138
138
|
children: url
|
|
139
139
|
})]
|
|
140
140
|
}), /* @__PURE__ */ jsx("button", {
|
|
141
141
|
"aria-label": "Copy URL",
|
|
142
|
-
className: "rounded-sm p-1 transition-colors hover:
|
|
142
|
+
className: "rounded-sm p-1 transition-colors hover:hover-effect",
|
|
143
143
|
onClick: handleCopy,
|
|
144
144
|
children: /* @__PURE__ */ jsx(CopyIcon, {
|
|
145
145
|
width: 16,
|
|
@@ -268,7 +268,7 @@ const VetraIcon = ({ width = 23, height = 22, className = "" }) => {
|
|
|
268
268
|
height,
|
|
269
269
|
viewBox: "0 0 23 22",
|
|
270
270
|
fill: "none",
|
|
271
|
-
className: twMerge(className, "text-
|
|
271
|
+
className: twMerge(className, "text-primary-foreground"),
|
|
272
272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
273
273
|
children: [
|
|
274
274
|
/* @__PURE__ */ jsx("path", {
|
|
@@ -334,18 +334,18 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
334
334
|
}
|
|
335
335
|
}, [driveUrl]);
|
|
336
336
|
return /* @__PURE__ */ jsx("div", {
|
|
337
|
-
className: "bg-
|
|
337
|
+
className: "bg-background px-6 py-4",
|
|
338
338
|
children: /* @__PURE__ */ jsxs("div", {
|
|
339
339
|
className: "flex items-center justify-between",
|
|
340
340
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
341
|
-
className: "flex items-center gap-2 text-
|
|
341
|
+
className: "flex items-center gap-2 text-foreground",
|
|
342
342
|
children: [
|
|
343
343
|
/* @__PURE__ */ jsx(VetraIcon, {
|
|
344
344
|
width: 20,
|
|
345
345
|
height: 20
|
|
346
346
|
}),
|
|
347
347
|
/* @__PURE__ */ jsx("h1", {
|
|
348
|
-
className: "text-lg font-semibold text-
|
|
348
|
+
className: "text-lg font-semibold text-foreground",
|
|
349
349
|
children: "Vetra Studio Drive"
|
|
350
350
|
}),
|
|
351
351
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -354,12 +354,12 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
354
354
|
children: [/* @__PURE__ */ jsx("button", {
|
|
355
355
|
"aria-label": "Drive information",
|
|
356
356
|
"aria-expanded": isInfoMenuOpen,
|
|
357
|
-
className: "rounded-full p-1 text-
|
|
357
|
+
className: "rounded-full p-1 text-muted-foreground transition-colors hover:hover-effect",
|
|
358
358
|
onClick: toggleInfoMenu,
|
|
359
359
|
children: /* @__PURE__ */ jsx(InfoIcon, { className: "" })
|
|
360
360
|
}), isInfoMenuOpen && /* @__PURE__ */ jsxs("div", {
|
|
361
361
|
role: "menu",
|
|
362
|
-
className: "absolute top-full left-0 z-10 mt-2 flex flex-col items-start gap-2 rounded-lg bg-
|
|
362
|
+
className: "absolute top-full left-0 z-10 mt-2 flex flex-col items-start gap-2 rounded-lg bg-background p-3 shadow-lg",
|
|
363
363
|
children: [/* @__PURE__ */ jsx(DriveInfoItem, {
|
|
364
364
|
label: "Name",
|
|
365
365
|
value: driveName
|
|
@@ -375,7 +375,7 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
375
375
|
children: [/* @__PURE__ */ jsx("button", {
|
|
376
376
|
"aria-label": "Share drive",
|
|
377
377
|
"aria-expanded": isShareMenuOpen,
|
|
378
|
-
className: "rounded-full p-1 text-
|
|
378
|
+
className: "rounded-full p-1 text-foreground transition-colors hover:hover-effect",
|
|
379
379
|
onClick: toggleShareMenu,
|
|
380
380
|
children: /* @__PURE__ */ jsx(ShareIcon, {
|
|
381
381
|
width: 16,
|
|
@@ -383,7 +383,7 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
383
383
|
})
|
|
384
384
|
}), isShareMenuOpen && /* @__PURE__ */ jsxs("div", {
|
|
385
385
|
role: "menu",
|
|
386
|
-
className: "absolute top-full left-0 z-10 mt-2 flex w-max flex-col gap-4 rounded-lg bg-
|
|
386
|
+
className: "absolute top-full left-0 z-10 mt-2 flex w-max flex-col gap-4 rounded-lg bg-background p-4 shadow-lg",
|
|
387
387
|
children: [/* @__PURE__ */ jsx(ShareMenuItem, {
|
|
388
388
|
label: "Copy the Drive URL",
|
|
389
389
|
url: driveUrl
|
|
@@ -398,7 +398,7 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
398
398
|
href: "https://academy.vetra.io/",
|
|
399
399
|
target: "_blank",
|
|
400
400
|
rel: "noopener noreferrer",
|
|
401
|
-
className: "flex items-center gap-2 text-sm text-
|
|
401
|
+
className: "flex items-center gap-2 text-sm text-foreground underline transition-colors hover:hover-effect",
|
|
402
402
|
children: [/* @__PURE__ */ jsx(ExternalLinkIcon, {}), "Vetra Academy"]
|
|
403
403
|
})]
|
|
404
404
|
})
|
|
@@ -495,21 +495,21 @@ const Accordion = ({ isOpen, onToggle, header, children, className = "" }) => {
|
|
|
495
495
|
const ModuleAccordion = ({ title, count, onAdd, children, defaultOpen = false, className = "", headerClassName = "" }) => {
|
|
496
496
|
const [isOpen, setIsOpen] = useState(defaultOpen);
|
|
497
497
|
const header = /* @__PURE__ */ jsxs("div", {
|
|
498
|
-
className: twMerge("flex items-center justify-between rounded-md bg-
|
|
498
|
+
className: twMerge("flex items-center justify-between rounded-md bg-background px-3 py-2 text-foreground transition-colors hover:hover-effect", headerClassName),
|
|
499
499
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
500
500
|
className: "flex items-center gap-2",
|
|
501
501
|
children: [
|
|
502
502
|
/* @__PURE__ */ jsx(ChevronIcon, {
|
|
503
503
|
width: 12,
|
|
504
504
|
height: 12,
|
|
505
|
-
className: twMerge("text-
|
|
505
|
+
className: twMerge("text-foreground transition-transform duration-300", isOpen ? "rotate-90" : "")
|
|
506
506
|
}),
|
|
507
507
|
/* @__PURE__ */ jsx("span", {
|
|
508
|
-
className: "text-sm font-medium text-
|
|
508
|
+
className: "text-sm font-medium text-foreground",
|
|
509
509
|
children: title
|
|
510
510
|
}),
|
|
511
511
|
/* @__PURE__ */ jsx("span", {
|
|
512
|
-
className: "rounded-full bg-
|
|
512
|
+
className: "rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground",
|
|
513
513
|
children: count
|
|
514
514
|
})
|
|
515
515
|
]
|
|
@@ -518,11 +518,11 @@ const ModuleAccordion = ({ title, count, onAdd, children, defaultOpen = false, c
|
|
|
518
518
|
e.stopPropagation();
|
|
519
519
|
onAdd?.();
|
|
520
520
|
},
|
|
521
|
-
className: "rounded-sm p-1 transition-colors hover:
|
|
521
|
+
className: "rounded-sm p-1 transition-colors hover:hover-effect",
|
|
522
522
|
children: /* @__PURE__ */ jsx(PlusIcon, {
|
|
523
523
|
width: 16,
|
|
524
524
|
height: 16,
|
|
525
|
-
className: "text-
|
|
525
|
+
className: "text-foreground"
|
|
526
526
|
})
|
|
527
527
|
})]
|
|
528
528
|
});
|
|
@@ -547,7 +547,7 @@ const AddNewIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
547
547
|
height,
|
|
548
548
|
viewBox: "0 0 40 42",
|
|
549
549
|
fill: "none",
|
|
550
|
-
className: twMerge(className, "text-
|
|
550
|
+
className: twMerge(className, "text-foreground"),
|
|
551
551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
552
552
|
children: [
|
|
553
553
|
/* @__PURE__ */ jsx("g", {
|
|
@@ -715,7 +715,7 @@ const AppIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
715
715
|
height,
|
|
716
716
|
viewBox: "0 0 40 42",
|
|
717
717
|
fill: "none",
|
|
718
|
-
className: twMerge(className, "text-
|
|
718
|
+
className: twMerge(className, "text-primary-foreground"),
|
|
719
719
|
xmlns: "http://www.w3.org/2000/svg",
|
|
720
720
|
children: [
|
|
721
721
|
/* @__PURE__ */ jsxs("g", {
|
|
@@ -827,7 +827,7 @@ const DocModelIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
827
827
|
height,
|
|
828
828
|
viewBox: "0 0 40 42",
|
|
829
829
|
fill: "none",
|
|
830
|
-
className: twMerge(className, "text-
|
|
830
|
+
className: twMerge(className, "text-primary-foreground"),
|
|
831
831
|
xmlns: "http://www.w3.org/2000/svg",
|
|
832
832
|
children: [
|
|
833
833
|
/* @__PURE__ */ jsxs("g", {
|
|
@@ -939,7 +939,7 @@ const EditorIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
939
939
|
height,
|
|
940
940
|
viewBox: "0 0 40 42",
|
|
941
941
|
fill: "none",
|
|
942
|
-
className: twMerge(className, "text-
|
|
942
|
+
className: twMerge(className, "text-primary-foreground"),
|
|
943
943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
944
944
|
children: [
|
|
945
945
|
/* @__PURE__ */ jsxs("g", {
|
|
@@ -1072,7 +1072,7 @@ const ProcessorIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
1072
1072
|
height,
|
|
1073
1073
|
viewBox: "0 0 40 42",
|
|
1074
1074
|
fill: "none",
|
|
1075
|
-
className: twMerge(className, "text-
|
|
1075
|
+
className: twMerge(className, "text-primary-foreground"),
|
|
1076
1076
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1077
1077
|
children: [
|
|
1078
1078
|
/* @__PURE__ */ jsxs("g", {
|
|
@@ -1180,7 +1180,7 @@ const SubgraphIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
1180
1180
|
height,
|
|
1181
1181
|
viewBox: "0 0 40 42",
|
|
1182
1182
|
fill: "none",
|
|
1183
|
-
className: twMerge(className, "text-
|
|
1183
|
+
className: twMerge(className, "text-primary-foreground"),
|
|
1184
1184
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1185
1185
|
children: [
|
|
1186
1186
|
/* @__PURE__ */ jsxs("g", {
|
|
@@ -1355,7 +1355,7 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
return /* @__PURE__ */ jsxs("div", {
|
|
1357
1357
|
onClick: () => onClick(fileNode),
|
|
1358
|
-
className: twMerge("group flex w-full cursor-pointer items-center gap-3 rounded-md bg-
|
|
1358
|
+
className: twMerge("group flex w-full cursor-pointer items-center gap-3 rounded-md bg-muted p-1 text-left transition-colors hover:hover-effect", className),
|
|
1359
1359
|
children: [
|
|
1360
1360
|
/* @__PURE__ */ jsx("div", {
|
|
1361
1361
|
className: "shrink-0",
|
|
@@ -1364,10 +1364,10 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1364
1364
|
/* @__PURE__ */ jsxs("div", {
|
|
1365
1365
|
className: "min-w-0 flex-1",
|
|
1366
1366
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
1367
|
-
className: "truncate text-sm font-medium text-
|
|
1367
|
+
className: "truncate text-sm font-medium text-foreground",
|
|
1368
1368
|
children: fileNode.name
|
|
1369
1369
|
}), /* @__PURE__ */ jsx("p", {
|
|
1370
|
-
className: "truncate text-xs text-
|
|
1370
|
+
className: "truncate text-xs text-muted-foreground",
|
|
1371
1371
|
children: fileNode.documentType
|
|
1372
1372
|
})]
|
|
1373
1373
|
}),
|
|
@@ -1376,7 +1376,7 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1376
1376
|
onItemClick: onDropdownMenuOptionClick,
|
|
1377
1377
|
onOpenChange: setIsDropdownMenuOpen,
|
|
1378
1378
|
open: isDropdownMenuOpen,
|
|
1379
|
-
menuClassName: "border-
|
|
1379
|
+
menuClassName: "border-border",
|
|
1380
1380
|
children: /* @__PURE__ */ jsx("button", {
|
|
1381
1381
|
className: twMerge("hidden group-hover:block", isDropdownMenuOpen && "block"),
|
|
1382
1382
|
onClick: (e) => {
|
|
@@ -1384,7 +1384,7 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1384
1384
|
setIsDropdownMenuOpen(true);
|
|
1385
1385
|
},
|
|
1386
1386
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
1387
|
-
className: "text-
|
|
1387
|
+
className: "text-foreground",
|
|
1388
1388
|
name: "VerticalDots"
|
|
1389
1389
|
})
|
|
1390
1390
|
})
|
|
@@ -1397,17 +1397,17 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1397
1397
|
const NewModuleItem = ({ title, subtitle, onClick, className = "" }) => {
|
|
1398
1398
|
return /* @__PURE__ */ jsxs("button", {
|
|
1399
1399
|
onClick,
|
|
1400
|
-
className: twMerge("flex w-full items-center gap-3 rounded-md bg-
|
|
1400
|
+
className: twMerge("flex w-full items-center gap-3 rounded-md bg-muted p-1 text-left transition-colors hover:hover-effect", className),
|
|
1401
1401
|
children: [/* @__PURE__ */ jsx("div", {
|
|
1402
1402
|
className: "shrink-0",
|
|
1403
1403
|
children: /* @__PURE__ */ jsx(AddNewIcon, {})
|
|
1404
1404
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1405
1405
|
className: "min-w-0 flex-1",
|
|
1406
1406
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
1407
|
-
className: "truncate text-sm font-medium text-
|
|
1407
|
+
className: "truncate text-sm font-medium text-foreground",
|
|
1408
1408
|
children: title
|
|
1409
1409
|
}), /* @__PURE__ */ jsx("p", {
|
|
1410
|
-
className: "truncate text-xs text-
|
|
1410
|
+
className: "truncate text-xs text-muted-foreground",
|
|
1411
1411
|
children: subtitle
|
|
1412
1412
|
})]
|
|
1413
1413
|
})]
|
|
@@ -1419,14 +1419,14 @@ const ModuleList = ({ items, documentType, onAddNewSpec = () => {}, onClickItem
|
|
|
1419
1419
|
return /* @__PURE__ */ jsxs("div", {
|
|
1420
1420
|
className: "space-y-2",
|
|
1421
1421
|
children: [items.map((item, index) => /* @__PURE__ */ jsx("div", {
|
|
1422
|
-
className: "px-2 py-1 text-sm text-
|
|
1422
|
+
className: "px-2 py-1 text-sm text-foreground",
|
|
1423
1423
|
children: /* @__PURE__ */ jsx(ModuleItem, {
|
|
1424
1424
|
fileNode: item,
|
|
1425
1425
|
onClick: onClickItem,
|
|
1426
1426
|
onDelete
|
|
1427
1427
|
})
|
|
1428
1428
|
}, index)), /* @__PURE__ */ jsx("div", {
|
|
1429
|
-
className: "px-2 py-1 text-sm text-
|
|
1429
|
+
className: "px-2 py-1 text-sm text-foreground",
|
|
1430
1430
|
children: /* @__PURE__ */ jsx(NewModuleItem, {
|
|
1431
1431
|
title: "Add new specification",
|
|
1432
1432
|
subtitle: documentType,
|
|
@@ -1439,17 +1439,17 @@ const ModuleList = ({ items, documentType, onAddNewSpec = () => {}, onClickItem
|
|
|
1439
1439
|
//#region editors/vetra-drive-app/components/DataIntegrationsColumn.tsx
|
|
1440
1440
|
const DataIntegrationsColumn = ({ subgraphs, processors, codegenProcessors, onAddSubgraph, onAddProcessor, onAddCodegenProcessor, onOpenDocument, onDelete }) => {
|
|
1441
1441
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
1442
|
-
className: "mb-4 text-sm font-normal text-
|
|
1442
|
+
className: "mb-4 text-sm font-normal text-foreground",
|
|
1443
1443
|
children: "3. Data Integrations"
|
|
1444
1444
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1445
|
-
className: "rounded-md border border-
|
|
1445
|
+
className: "rounded-md border border-border bg-background",
|
|
1446
1446
|
children: [
|
|
1447
1447
|
/* @__PURE__ */ jsx(ModuleAccordion, {
|
|
1448
1448
|
title: "Subgraphs",
|
|
1449
1449
|
count: subgraphs.length,
|
|
1450
1450
|
onAdd: onAddSubgraph || (() => console.log("Add subgraph clicked")),
|
|
1451
1451
|
defaultOpen: true,
|
|
1452
|
-
headerClassName: "m-4
|
|
1452
|
+
headerClassName: "m-4 rounded-md border border-border bg-muted hover:hover-effect",
|
|
1453
1453
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1454
1454
|
items: subgraphs,
|
|
1455
1455
|
documentType: DOCUMENT_TYPES.documentSubgraph,
|
|
@@ -1463,7 +1463,7 @@ const DataIntegrationsColumn = ({ subgraphs, processors, codegenProcessors, onAd
|
|
|
1463
1463
|
count: processors.length,
|
|
1464
1464
|
onAdd: onAddProcessor || (() => console.log("Add processor clicked")),
|
|
1465
1465
|
defaultOpen: true,
|
|
1466
|
-
headerClassName: "m-4
|
|
1466
|
+
headerClassName: "m-4 rounded-md border border-border bg-muted hover:hover-effect",
|
|
1467
1467
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1468
1468
|
items: processors,
|
|
1469
1469
|
documentType: DOCUMENT_TYPES.documentProcessor,
|
|
@@ -1477,7 +1477,7 @@ const DataIntegrationsColumn = ({ subgraphs, processors, codegenProcessors, onAd
|
|
|
1477
1477
|
count: codegenProcessors.length,
|
|
1478
1478
|
onAdd: onAddCodegenProcessor || (() => console.log("Add codegen processor clicked")),
|
|
1479
1479
|
defaultOpen: true,
|
|
1480
|
-
headerClassName: "m-4
|
|
1480
|
+
headerClassName: "m-4 rounded-md border border-border bg-muted hover:hover-effect",
|
|
1481
1481
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1482
1482
|
items: codegenProcessors,
|
|
1483
1483
|
documentType: DOCUMENT_TYPES.documentCodegenProcessor,
|
|
@@ -1493,16 +1493,16 @@ const DataIntegrationsColumn = ({ subgraphs, processors, codegenProcessors, onAd
|
|
|
1493
1493
|
//#region editors/vetra-drive-app/components/DocumentModelsColumn.tsx
|
|
1494
1494
|
const DocumentModelsColumn = ({ documentModels, onAddDocumentModel, onOpenDocument, onDelete }) => {
|
|
1495
1495
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
1496
|
-
className: "mb-4 text-sm font-normal text-
|
|
1496
|
+
className: "mb-4 text-sm font-normal text-foreground",
|
|
1497
1497
|
children: "1. Document Models"
|
|
1498
1498
|
}), /* @__PURE__ */ jsx("div", {
|
|
1499
|
-
className: "rounded-md border border-
|
|
1499
|
+
className: "rounded-md border border-border bg-background",
|
|
1500
1500
|
children: /* @__PURE__ */ jsx(ModuleAccordion, {
|
|
1501
1501
|
title: "Document Models",
|
|
1502
1502
|
count: documentModels.length,
|
|
1503
1503
|
onAdd: onAddDocumentModel || (() => console.log("Add document model clicked")),
|
|
1504
1504
|
defaultOpen: true,
|
|
1505
|
-
headerClassName: "m-4
|
|
1505
|
+
headerClassName: "m-4 rounded-md border border-border bg-muted hover:hover-effect",
|
|
1506
1506
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1507
1507
|
items: documentModels,
|
|
1508
1508
|
documentType: DOCUMENT_TYPES.documentModel,
|
|
@@ -1523,15 +1523,15 @@ const SectionAccordion = ({ title, children, defaultOpen = false, className = ""
|
|
|
1523
1523
|
isOpen,
|
|
1524
1524
|
onToggle: () => setIsOpen(!isOpen),
|
|
1525
1525
|
header: /* @__PURE__ */ jsxs("div", {
|
|
1526
|
-
className: "flex items-center gap-2 rounded-md border border-
|
|
1526
|
+
className: "flex items-center gap-2 rounded-md border border-border bg-background px-4 py-2 transition-colors hover:hover-effect",
|
|
1527
1527
|
children: [
|
|
1528
1528
|
/* @__PURE__ */ jsx(ChevronIcon, {
|
|
1529
1529
|
width: 16,
|
|
1530
1530
|
height: 16,
|
|
1531
|
-
className: twMerge("text-
|
|
1531
|
+
className: twMerge("text-foreground transition-transform duration-300", isOpen ? "rotate-90" : "")
|
|
1532
1532
|
}),
|
|
1533
1533
|
/* @__PURE__ */ jsx("h2", {
|
|
1534
|
-
className: "text-base font-semibold text-
|
|
1534
|
+
className: "text-base font-semibold text-foreground",
|
|
1535
1535
|
children: title
|
|
1536
1536
|
}),
|
|
1537
1537
|
actionButton && /* @__PURE__ */ jsx("div", {
|
|
@@ -1551,16 +1551,16 @@ const SectionAccordion = ({ title, children, defaultOpen = false, className = ""
|
|
|
1551
1551
|
//#region editors/vetra-drive-app/components/UserExperiencesColumn.tsx
|
|
1552
1552
|
const UserExperiencesColumn = ({ editors, apps, onAddEditor, onAddApp, onOpenDocument, onDelete }) => {
|
|
1553
1553
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
1554
|
-
className: "mb-4 text-sm font-normal text-
|
|
1554
|
+
className: "mb-4 text-sm font-normal text-foreground",
|
|
1555
1555
|
children: "2. User Experiences"
|
|
1556
1556
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1557
|
-
className: "rounded-md border border-
|
|
1557
|
+
className: "rounded-md border border-border bg-background",
|
|
1558
1558
|
children: [/* @__PURE__ */ jsx(ModuleAccordion, {
|
|
1559
1559
|
title: "Editors",
|
|
1560
1560
|
count: editors.length,
|
|
1561
1561
|
onAdd: onAddEditor || (() => console.log("Add editor clicked")),
|
|
1562
1562
|
defaultOpen: true,
|
|
1563
|
-
headerClassName: "m-4
|
|
1563
|
+
headerClassName: "m-4 rounded-md border border-border bg-muted hover:hover-effect",
|
|
1564
1564
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1565
1565
|
items: editors,
|
|
1566
1566
|
documentType: DOCUMENT_TYPES.documentEditor,
|
|
@@ -1573,7 +1573,7 @@ const UserExperiencesColumn = ({ editors, apps, onAddEditor, onAddApp, onOpenDoc
|
|
|
1573
1573
|
count: apps.length,
|
|
1574
1574
|
onAdd: onAddApp || (() => console.log("Add app clicked")),
|
|
1575
1575
|
defaultOpen: true,
|
|
1576
|
-
headerClassName: "m-4
|
|
1576
|
+
headerClassName: "m-4 rounded-md border border-border bg-muted hover:hover-effect",
|
|
1577
1577
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1578
1578
|
items: apps,
|
|
1579
1579
|
documentType: DOCUMENT_TYPES.documentApp,
|
|
@@ -1644,7 +1644,7 @@ const EditorContainer = (props) => {
|
|
|
1644
1644
|
//#region editors/vetra-drive-app/components/PackageInformationSection.tsx
|
|
1645
1645
|
const PackageInformationSection = ({ className, packageDocumentId, onAddPackageDocument, onOpenPackageDocument }) => {
|
|
1646
1646
|
const createpackageContent = /* @__PURE__ */ jsx("button", {
|
|
1647
|
-
className: "my-2 h-50 w-full rounded-md border border-dashed border-
|
|
1647
|
+
className: "my-2 h-50 w-full rounded-md border border-dashed border-border bg-background",
|
|
1648
1648
|
onClick: onAddPackageDocument,
|
|
1649
1649
|
children: "Click to create package manifest"
|
|
1650
1650
|
});
|
|
@@ -1657,7 +1657,7 @@ const PackageInformationSection = ({ className, packageDocumentId, onAddPackageD
|
|
|
1657
1657
|
e.stopPropagation();
|
|
1658
1658
|
onOpenPackageDocument();
|
|
1659
1659
|
},
|
|
1660
|
-
className: "flex items-center justify-center rounded-sm bg-
|
|
1660
|
+
className: "flex items-center justify-center rounded-sm bg-background p-1 text-foreground transition-colors hover:hover-effect",
|
|
1661
1661
|
"aria-label": "Open package document",
|
|
1662
1662
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
1663
1663
|
name: "Moved",
|
|
@@ -1737,7 +1737,7 @@ function BaseEditor(props) {
|
|
|
1737
1737
|
}, [packageNode]);
|
|
1738
1738
|
return !!children ? children : /* @__PURE__ */ jsx("div", {
|
|
1739
1739
|
style: { height: "100%" },
|
|
1740
|
-
className: "bg-
|
|
1740
|
+
className: "bg-background p-6 after:pointer-events-none after:absolute after:inset-0 after:bg-info after:opacity-0 after:transition after:content-['']",
|
|
1741
1741
|
children: /* @__PURE__ */ jsx(DriveExplorer, {
|
|
1742
1742
|
driveId,
|
|
1743
1743
|
driveName,
|
|
@@ -1769,4 +1769,4 @@ function Editor(props) {
|
|
|
1769
1769
|
//#endregion
|
|
1770
1770
|
export { BaseEditor, Editor as default };
|
|
1771
1771
|
|
|
1772
|
-
//# sourceMappingURL=editor-
|
|
1772
|
+
//# sourceMappingURL=editor-mor7dV6n.js.map
|