@loopstack/loopstack-studio 0.29.5 → 0.31.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.
- package/dist/_virtual/rolldown_runtime.js +3 -1
- package/dist/api/config.js +5 -4
- package/dist/api/environments.js +5 -1
- package/dist/api/processor.js +4 -1
- package/dist/app/EnvironmentEmbedRoot.js +22 -30
- package/dist/components/ai-elements/code-block.js +4 -4
- package/dist/components/dynamic-form/CodeContent.js +1 -1
- package/dist/components/dynamic-form/FormBody.js +1 -1
- package/dist/components/layout/StudioSidebar.js +116 -131
- package/dist/components/lists/ListView.js +46 -46
- package/dist/components/motion/FadeIn.js +72 -0
- package/dist/components/motion/StreamingText.js +49 -0
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui-widgets/UiWidget.js +11 -10
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +31 -28
- package/dist/events/sse-client-events.js +7 -1
- package/dist/features/code-explorer/components/FileContentViewer.js +2 -2
- package/dist/features/dashboard/AppLauncher.js +84 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +49 -51
- package/dist/features/documents/DocumentRenderer.js +18 -17
- package/dist/features/documents/components/DocumentItem.js +42 -20
- package/dist/features/documents/components/DocumentList.js +34 -36
- package/dist/features/documents/components/DocumentMetadataPills.js +102 -49
- package/dist/features/documents/document-details/DocumentDetails.js +577 -377
- package/dist/features/documents/document-details/PromptDetails.js +118 -130
- package/dist/features/documents/document-details/document-debug-utils.js +100 -0
- package/dist/features/documents/renderers/ChoicesRenderer.js +41 -38
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +31 -28
- package/dist/features/documents/renderers/DocumentFormRenderer.js +62 -70
- package/dist/features/documents/renderers/LlmMessage.js +52 -47
- package/dist/features/documents/renderers/TextPromptRenderer.js +32 -29
- package/dist/features/documents/renderers/useDocumentTransition.js +4 -4
- package/dist/features/feature-registry/FeatureRegistryProvider.js +32 -10
- package/dist/features/feature-registry/available-features.js +12 -0
- package/dist/features/feature-registry/index.js +2 -1
- package/dist/features/file-explorer/components/FileExplorerPanel.js +55 -51
- package/dist/features/git/components/GitBranchBadge.js +31 -0
- package/dist/features/git/components/GitCommitList.js +46 -0
- package/dist/features/git/components/GitRemoteStatus.js +84 -0
- package/dist/features/git/components/WorkbenchGitPanel.js +81 -0
- package/dist/features/git/git-feature.js +12 -0
- package/dist/features/git/hooks/useGit.js +78 -0
- package/dist/features/git/index.js +1 -0
- package/dist/features/oauth/OAuthPromptRenderer.js +137 -142
- package/dist/features/runs/Runs.js +73 -73
- package/dist/features/secrets/components/WorkbenchSecretsPanel.js +1 -1
- package/dist/features/secrets/renderers/SecretInputRenderer.js +30 -29
- package/dist/features/workbench/Workbench.js +25 -33
- package/dist/features/workbench/WorkflowItem.js +9 -9
- package/dist/features/workbench/WorkflowList.js +61 -62
- package/dist/features/workbench/components/NewRunDialog.js +237 -209
- package/dist/features/workbench/components/RecentRunItem.js +3 -3
- package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +8 -8
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +74 -109
- package/dist/features/workbench/components/WorkbenchSidebarShell.js +3 -3
- package/dist/features/workbench/components/WorkflowForms.js +11 -10
- package/dist/features/workbench/components/WorkflowHistoryItem.js +16 -36
- package/dist/features/workbench/components/WorkflowHistoryList.js +19 -17
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +3 -3
- package/dist/features/workbench/hooks/useLlmStreamingDocuments.js +159 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +58 -31
- package/dist/features/workbench/index.js +2 -2
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +53 -53
- package/dist/features/workspaces/Workspaces.js +166 -136
- package/dist/features/workspaces/components/CreateWorkspace.js +115 -107
- package/dist/features/workspaces/components/ExecutionTimeline.js +2 -2
- package/dist/features/workspaces/components/WorkflowRunForm.js +127 -104
- package/dist/features/workspaces/components/WorkspaceHomePage.js +6 -89
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +1 -1
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +15 -15
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/query-keys.js +43 -30
- package/dist/hooks/useConfig.js +28 -22
- package/dist/hooks/useEnvironments.js +27 -2
- package/dist/hooks/useProcessor.js +14 -1
- package/dist/hooks/useWorkflows.js +4 -4
- package/dist/index.d.ts +119 -18
- package/dist/index.js +10 -9
- package/dist/node_modules/d3/src/index.js +13 -13
- package/dist/node_modules/d3-scale/src/continuous.js +16 -16
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-3BPJPVTR.js +43 -43
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.js +270 -270
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.js +90 -90
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.js +458 -458
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.js +37 -37
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.js +208 -208
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KSCS5N6A.js +145 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ND2GUHAM.js +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.js +41 -41
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WU5MYG2G.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +6 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +30 -30
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OG6HWLK6.js +82 -82
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-TEJ5UH35.js +65 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-I6XJVG4X.js +227 -227
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-6RSMTGT7.js +104 -104
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.js +104 -104
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-JHISSGLW.js +49 -49
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.js +101 -101
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-5OEKKPKP.js +20 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js +354 -354
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-AJRCARHV.js +53 -53
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-PNZ67QCA.js +113 -113
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.js +90 -90
- package/dist/node_modules/mermaid/dist/mermaid.core.js +156 -156
- package/dist/node_modules/motion/dist/es/react.js +9 -2
- package/dist/pages/DashboardPage.js +20 -74
- package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
- package/dist/pages/DebugWorkflowsPage.js +76 -106
- package/dist/pages/EmbedWorkbenchPage.js +1 -1
- package/dist/pages/PreviewWorkbenchPage.js +6 -6
- package/dist/pages/WorkbenchPage.js +43 -47
- package/dist/pages/WorkflowDebugPage.js +6 -12
- package/dist/pages/WorkspacePage.js +40 -66
- package/dist/pages/WorkspaceRunsPage.js +24 -31
- package/dist/routing/LocalRouter.js +1 -1
- package/package.json +2 -2
- package/dist/features/dashboard/Dashboard.js +0 -125
- package/dist/features/dashboard/RunItem.js +0 -78
- package/dist/features/dashboard/RunList.js +0 -32
- package/dist/hooks/useDashboard.js +0 -16
|
@@ -1,203 +1,233 @@
|
|
|
1
1
|
import { useStudio } from "../../providers/StudioProvider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useAppsConfig } from "../../hooks/useConfig.js";
|
|
3
3
|
import { useBatchDeleteWorkspaces, useDeleteWorkspace, useFilterWorkspaces, useSetFavouriteWorkspace } from "../../hooks/useWorkspaces.js";
|
|
4
4
|
import { useComponentOverrides } from "../../providers/ComponentOverridesProvider.js";
|
|
5
5
|
import { Badge } from "../../components/ui/badge.js";
|
|
6
6
|
import { Dialog, DialogContent } from "../../components/ui/dialog.js";
|
|
7
7
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../components/ui/tooltip.js";
|
|
8
8
|
import ListView_default from "../../components/lists/ListView.js";
|
|
9
|
-
import { useDebounce } from "../../hooks/useDebounce.js";
|
|
10
9
|
import CreateWorkspace_default from "./components/CreateWorkspace.js";
|
|
10
|
+
import { useDebounce } from "../../hooks/useDebounce.js";
|
|
11
11
|
import { c } from "react/compiler-runtime";
|
|
12
|
-
import { useEffect, useState } from "react";
|
|
12
|
+
import { useEffect, useMemo, useState } from "react";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { useSearchParams } from "react-router-dom";
|
|
15
15
|
import { Star } from "lucide-react";
|
|
16
16
|
var Workspaces_default = () => {
|
|
17
|
-
let n = c(
|
|
18
|
-
n[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
19
|
-
let [
|
|
20
|
-
n[1] ===
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
17
|
+
let n = c(68), { CreateWorkspace: ke, EditWorkspace: Ae } = useComponentOverrides(), je = ke ?? CreateWorkspace_default, Me = Ae ?? CreateWorkspace_default, { router: Ne } = useStudio(), [r] = useSearchParams(), [i, Pe] = useState(0), [a, Fe] = useState(10), [o, Ie] = useState("createdAt"), [s, Le] = useState("ASC"), [l, Re] = useState(), u;
|
|
18
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {}, n[0] = u) : u = n[0];
|
|
19
|
+
let [d, f] = useState(u), ze = useDebounce(l, 500), [p, m] = useState(!1), [h, Be] = useState(void 0), g, _;
|
|
20
|
+
n[1] === r ? (g = n[2], _ = n[3]) : (g = () => {
|
|
21
|
+
r.get("create") === "true" && m(!0);
|
|
22
|
+
let e = r.get("appName");
|
|
23
|
+
e && f((t) => ({
|
|
24
|
+
...t,
|
|
25
|
+
appName: e
|
|
26
|
+
}));
|
|
27
|
+
}, _ = [r], n[1] = r, n[2] = g, n[3] = _), useEffect(g, _);
|
|
28
|
+
let v = useAppsConfig(), y;
|
|
29
|
+
n[4] === v.data ? y = n[5] : (y = v.data ?? [], n[4] = v.data, n[5] = y);
|
|
30
|
+
let b;
|
|
31
|
+
n[6] === y ? b = n[7] : (b = y.map(_temp), n[6] = y, n[7] = b);
|
|
32
|
+
let x = b, S = useFilterWorkspaces(ze, d, o, s, i, a), C = useDeleteWorkspace(), w = useBatchDeleteWorkspaces(), T = useSetFavouriteWorkspace(), E;
|
|
33
|
+
n[8] === C ? E = n[9] : (E = (e) => {
|
|
34
|
+
C.mutate(e);
|
|
35
|
+
}, n[8] = C, n[9] = E);
|
|
36
|
+
let D = E, O;
|
|
37
|
+
n[10] === w ? O = n[11] : (O = (e) => {
|
|
38
|
+
w.mutate(e);
|
|
39
|
+
}, n[10] = w, n[11] = O);
|
|
40
|
+
let k = O, A;
|
|
41
|
+
n[12] === Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
42
|
+
m(!0);
|
|
43
|
+
}, n[12] = A) : A = n[12];
|
|
44
|
+
let Ve = A, j;
|
|
45
|
+
n[13] === Symbol.for("react.memo_cache_sentinel") ? (j = () => {
|
|
46
|
+
m(!1);
|
|
47
|
+
}, n[13] = j) : j = n[13];
|
|
47
48
|
let He = j, M;
|
|
48
|
-
n[
|
|
49
|
-
|
|
50
|
-
}, n[
|
|
51
|
-
let
|
|
52
|
-
n[
|
|
53
|
-
|
|
54
|
-
n[16]
|
|
49
|
+
n[14] === Ne ? M = n[15] : (M = (e) => {
|
|
50
|
+
Ne.navigateToWorkspace(e);
|
|
51
|
+
}, n[14] = Ne, n[15] = M);
|
|
52
|
+
let N = M, P;
|
|
53
|
+
n[16] === Symbol.for("react.memo_cache_sentinel") ? (P = (e) => {
|
|
54
|
+
Be(e);
|
|
55
|
+
}, n[16] = P) : P = n[16];
|
|
56
|
+
let Ue = P, F;
|
|
57
|
+
n[17] === Symbol.for("react.memo_cache_sentinel") ? (F = () => {
|
|
58
|
+
m(!1), Be(void 0);
|
|
59
|
+
}, n[17] = F) : F = n[17];
|
|
60
|
+
let We = F, Ge = v.isPending || S.isPending, Ke = S.error ?? v.error ?? null, I;
|
|
61
|
+
n[18] === S.data?.data ? I = n[19] : (I = S.data?.data ?? [], n[18] = S.data?.data, n[19] = I);
|
|
62
|
+
let qe = S.data?.total ?? 0, L;
|
|
63
|
+
n[20] === Symbol.for("react.memo_cache_sentinel") ? (L = {
|
|
55
64
|
id: "id",
|
|
56
65
|
label: "ID",
|
|
57
66
|
minWidth: 30,
|
|
58
|
-
format:
|
|
59
|
-
}, n[
|
|
67
|
+
format: _temp2
|
|
68
|
+
}, n[20] = L) : L = n[20];
|
|
60
69
|
let R;
|
|
61
|
-
n[
|
|
70
|
+
n[21] === Symbol.for("react.memo_cache_sentinel") ? (R = {
|
|
71
|
+
id: "title",
|
|
72
|
+
label: "Title",
|
|
73
|
+
minWidth: 100,
|
|
74
|
+
format: (e) => /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
75
|
+
asChild: !0,
|
|
76
|
+
children: /* @__PURE__ */ jsx(Badge, {
|
|
77
|
+
variant: "outline",
|
|
78
|
+
className: "hover:bg-primary/10 cursor-pointer",
|
|
79
|
+
onClick: () => f((t) => ({
|
|
80
|
+
...t,
|
|
81
|
+
appName: e
|
|
82
|
+
})),
|
|
83
|
+
children: e.length > 25 ? e.slice(0, 25) + "..." : e
|
|
84
|
+
})
|
|
85
|
+
}), /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: e }) })] }) })
|
|
86
|
+
}, n[21] = R) : R = n[21];
|
|
87
|
+
let z;
|
|
88
|
+
n[22] === Symbol.for("react.memo_cache_sentinel") ? (z = [
|
|
62
89
|
L,
|
|
90
|
+
R,
|
|
63
91
|
{
|
|
64
|
-
id: "
|
|
65
|
-
label: "
|
|
92
|
+
id: "appName",
|
|
93
|
+
label: "App",
|
|
66
94
|
minWidth: 100,
|
|
67
|
-
format: (e) => /* @__PURE__ */ jsx(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
children: e.length > 25 ? e.slice(0, 25) + "..." : e
|
|
77
|
-
})
|
|
78
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: e }) })] }) })
|
|
95
|
+
format: (e) => /* @__PURE__ */ jsx(Badge, {
|
|
96
|
+
variant: "outline",
|
|
97
|
+
className: "hover:bg-primary/10 cursor-pointer",
|
|
98
|
+
onClick: () => f((t) => ({
|
|
99
|
+
...t,
|
|
100
|
+
appName: e
|
|
101
|
+
})),
|
|
102
|
+
children: e
|
|
103
|
+
})
|
|
79
104
|
},
|
|
80
105
|
{
|
|
81
106
|
id: "environments",
|
|
82
107
|
label: "Environments",
|
|
83
108
|
minWidth: 150,
|
|
84
|
-
format:
|
|
109
|
+
format: _temp4
|
|
85
110
|
},
|
|
86
111
|
{
|
|
87
112
|
id: "createdAt",
|
|
88
113
|
label: "Date Created",
|
|
89
114
|
minWidth: 100,
|
|
90
|
-
format:
|
|
115
|
+
format: _temp5
|
|
91
116
|
}
|
|
92
|
-
], n[
|
|
93
|
-
let z;
|
|
94
|
-
n[18] === Symbol.for("react.memo_cache_sentinel") ? (z = {}, n[18] = z) : z = n[18];
|
|
117
|
+
], n[22] = z) : z = n[22];
|
|
95
118
|
let B;
|
|
96
|
-
n[
|
|
119
|
+
n[23] === Symbol.for("react.memo_cache_sentinel") ? (B = {}, n[23] = B) : B = n[23];
|
|
97
120
|
let V;
|
|
98
|
-
n[
|
|
121
|
+
n[24] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ jsx(Star, { className: "h-4 w-4" }), n[24] = V) : V = n[24];
|
|
122
|
+
let H;
|
|
123
|
+
n[25] === T ? H = n[26] : (H = {
|
|
99
124
|
id: "add-favourite",
|
|
100
125
|
label: "Add to favourites",
|
|
101
|
-
icon:
|
|
102
|
-
condition:
|
|
126
|
+
icon: V,
|
|
127
|
+
condition: _temp6,
|
|
103
128
|
action: (e) => {
|
|
104
|
-
|
|
129
|
+
T.mutate({
|
|
105
130
|
id: e.id,
|
|
106
131
|
isFavourite: !0
|
|
107
132
|
});
|
|
108
133
|
}
|
|
109
|
-
}, n[
|
|
110
|
-
let H;
|
|
111
|
-
n[22] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ jsx(Star, { className: "h-4 w-4 fill-current" }), n[22] = H) : H = n[22];
|
|
134
|
+
}, n[25] = T, n[26] = H);
|
|
112
135
|
let U;
|
|
113
|
-
n[
|
|
136
|
+
n[27] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ jsx(Star, { className: "h-4 w-4 fill-current" }), n[27] = U) : U = n[27];
|
|
137
|
+
let W;
|
|
138
|
+
n[28] === T ? W = n[29] : (W = {
|
|
114
139
|
id: "remove-favourite",
|
|
115
140
|
label: "Remove from favourites",
|
|
116
|
-
icon:
|
|
117
|
-
condition:
|
|
141
|
+
icon: U,
|
|
142
|
+
condition: _temp7,
|
|
118
143
|
action: (e) => {
|
|
119
|
-
|
|
144
|
+
T.mutate({
|
|
120
145
|
id: e.id,
|
|
121
146
|
isFavourite: !1
|
|
122
147
|
});
|
|
123
148
|
}
|
|
124
|
-
}, n[
|
|
125
|
-
let
|
|
126
|
-
n[
|
|
127
|
-
let
|
|
128
|
-
n[
|
|
129
|
-
loading:
|
|
130
|
-
error:
|
|
131
|
-
items:
|
|
132
|
-
totalItems:
|
|
133
|
-
setPage:
|
|
134
|
-
setRowsPerPage:
|
|
135
|
-
setOrderBy:
|
|
136
|
-
setOrder:
|
|
137
|
-
setSearchTerm:
|
|
138
|
-
setFilters:
|
|
139
|
-
orderBy:
|
|
140
|
-
order:
|
|
141
|
-
searchTerm:
|
|
142
|
-
filters:
|
|
143
|
-
page:
|
|
144
|
-
rowsPerPage:
|
|
145
|
-
deleteItem:
|
|
146
|
-
onClick:
|
|
147
|
-
handleNew:
|
|
148
|
-
handleEdit:
|
|
149
|
+
}, n[28] = T, n[29] = W);
|
|
150
|
+
let G;
|
|
151
|
+
n[30] !== H || n[31] !== W ? (G = [H, W], n[30] = H, n[31] = W, n[32] = G) : G = n[32];
|
|
152
|
+
let Je = G, K;
|
|
153
|
+
n[33] !== d || n[34] !== k || n[35] !== D || n[36] !== N || n[37] !== s || n[38] !== o || n[39] !== i || n[40] !== a || n[41] !== l || n[42] !== Ge || n[43] !== Ke || n[44] !== I || n[45] !== qe || n[46] !== Je ? (K = /* @__PURE__ */ jsx(ListView_default, {
|
|
154
|
+
loading: Ge,
|
|
155
|
+
error: Ke,
|
|
156
|
+
items: I,
|
|
157
|
+
totalItems: qe,
|
|
158
|
+
setPage: Pe,
|
|
159
|
+
setRowsPerPage: Fe,
|
|
160
|
+
setOrderBy: Ie,
|
|
161
|
+
setOrder: Le,
|
|
162
|
+
setSearchTerm: Re,
|
|
163
|
+
setFilters: f,
|
|
164
|
+
orderBy: o,
|
|
165
|
+
order: s,
|
|
166
|
+
searchTerm: l,
|
|
167
|
+
filters: d,
|
|
168
|
+
page: i,
|
|
169
|
+
rowsPerPage: a,
|
|
170
|
+
deleteItem: D,
|
|
171
|
+
onClick: N,
|
|
172
|
+
handleNew: Ve,
|
|
173
|
+
handleEdit: Ue,
|
|
149
174
|
enableBatchActions: !0,
|
|
150
|
-
batchDelete:
|
|
151
|
-
columns:
|
|
152
|
-
filterConfig:
|
|
153
|
-
rowActions:
|
|
154
|
-
}), n[
|
|
155
|
-
let K;
|
|
156
|
-
n[43] === y.data ? K = n[44] : (K = y.data ?? [], n[43] = y.data, n[44] = K);
|
|
175
|
+
batchDelete: k,
|
|
176
|
+
columns: z,
|
|
177
|
+
filterConfig: B,
|
|
178
|
+
rowActions: Je
|
|
179
|
+
}), n[33] = d, n[34] = k, n[35] = D, n[36] = N, n[37] = s, n[38] = o, n[39] = i, n[40] = a, n[41] = l, n[42] = Ge, n[43] = Ke, n[44] = I, n[45] = qe, n[46] = Je, n[47] = K) : K = n[47];
|
|
157
180
|
let q;
|
|
158
|
-
n[
|
|
181
|
+
n[48] !== je || n[49] !== x ? (q = /* @__PURE__ */ jsx(DialogContent, {
|
|
159
182
|
className: "max-w-2xl",
|
|
160
|
-
children: /* @__PURE__ */ jsx(
|
|
161
|
-
types:
|
|
162
|
-
onSuccess:
|
|
183
|
+
children: /* @__PURE__ */ jsx(je, {
|
|
184
|
+
types: x,
|
|
185
|
+
onSuccess: He
|
|
163
186
|
})
|
|
164
|
-
}), n[
|
|
187
|
+
}), n[48] = je, n[49] = x, n[50] = q) : q = n[50];
|
|
165
188
|
let J;
|
|
166
|
-
n[
|
|
167
|
-
open:
|
|
168
|
-
onOpenChange:
|
|
189
|
+
n[51] !== p || n[52] !== q ? (J = /* @__PURE__ */ jsx(Dialog, {
|
|
190
|
+
open: p,
|
|
191
|
+
onOpenChange: m,
|
|
169
192
|
children: q
|
|
170
|
-
}), n[
|
|
171
|
-
let
|
|
172
|
-
n[
|
|
193
|
+
}), n[51] = p, n[52] = q, n[53] = J) : J = n[53];
|
|
194
|
+
let Ye = !!h, Y;
|
|
195
|
+
n[54] === Symbol.for("react.memo_cache_sentinel") ? (Y = (e) => !e && We(), n[54] = Y) : Y = n[54];
|
|
173
196
|
let X;
|
|
174
|
-
n[
|
|
175
|
-
types:
|
|
176
|
-
workspace:
|
|
177
|
-
onSuccess:
|
|
178
|
-
}), n[
|
|
197
|
+
n[55] !== Me || n[56] !== x || n[57] !== h ? (X = h && /* @__PURE__ */ jsx(Me, {
|
|
198
|
+
types: x,
|
|
199
|
+
workspace: h,
|
|
200
|
+
onSuccess: We
|
|
201
|
+
}), n[55] = Me, n[56] = x, n[57] = h, n[58] = X) : X = n[58];
|
|
179
202
|
let Z;
|
|
180
|
-
n[
|
|
203
|
+
n[59] === X ? Z = n[60] : (Z = /* @__PURE__ */ jsx(DialogContent, {
|
|
181
204
|
className: "max-w-2xl",
|
|
182
205
|
children: X
|
|
183
|
-
}), n[
|
|
206
|
+
}), n[59] = X, n[60] = Z);
|
|
184
207
|
let Q;
|
|
185
|
-
n[
|
|
186
|
-
open:
|
|
208
|
+
n[61] !== Ye || n[62] !== Z ? (Q = /* @__PURE__ */ jsx(Dialog, {
|
|
209
|
+
open: Ye,
|
|
187
210
|
onOpenChange: Y,
|
|
188
211
|
children: Z
|
|
189
|
-
}), n[
|
|
212
|
+
}), n[61] = Ye, n[62] = Z, n[63] = Q) : Q = n[63];
|
|
190
213
|
let $;
|
|
191
|
-
return n[
|
|
192
|
-
|
|
214
|
+
return n[64] !== K || n[65] !== J || n[66] !== Q ? ($ = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
215
|
+
K,
|
|
193
216
|
J,
|
|
194
217
|
Q
|
|
195
|
-
] }), n[
|
|
218
|
+
] }), n[64] = K, n[65] = J, n[66] = Q, n[67] = $) : $ = n[67], $;
|
|
196
219
|
};
|
|
197
220
|
function _temp(e) {
|
|
198
|
-
return
|
|
221
|
+
return {
|
|
222
|
+
appName: e.appName,
|
|
223
|
+
title: e.title,
|
|
224
|
+
environments: e.extensions?.environments ?? []
|
|
225
|
+
};
|
|
199
226
|
}
|
|
200
227
|
function _temp2(e) {
|
|
228
|
+
return e.slice(0, 6);
|
|
229
|
+
}
|
|
230
|
+
function _temp3(e) {
|
|
201
231
|
return /* @__PURE__ */ jsxs(Badge, {
|
|
202
232
|
variant: "secondary",
|
|
203
233
|
children: [e.envName ?? e.remoteEnvironmentId.slice(0, 8), e.type && /* @__PURE__ */ jsxs("span", {
|
|
@@ -210,20 +240,20 @@ function _temp2(e) {
|
|
|
210
240
|
})]
|
|
211
241
|
}, e.remoteEnvironmentId);
|
|
212
242
|
}
|
|
213
|
-
function
|
|
243
|
+
function _temp4(e) {
|
|
214
244
|
let t = e;
|
|
215
245
|
return !t || t.length === 0 ? "—" : /* @__PURE__ */ jsx("div", {
|
|
216
246
|
className: "flex flex-wrap gap-1",
|
|
217
|
-
children: t.map(
|
|
247
|
+
children: t.map(_temp3)
|
|
218
248
|
});
|
|
219
249
|
}
|
|
220
|
-
function
|
|
250
|
+
function _temp5(e) {
|
|
221
251
|
return new Date(e).toLocaleString();
|
|
222
252
|
}
|
|
223
|
-
function
|
|
253
|
+
function _temp6(e) {
|
|
224
254
|
return !e.isFavourite;
|
|
225
255
|
}
|
|
226
|
-
function
|
|
256
|
+
function _temp7(e) {
|
|
227
257
|
return !!e.isFavourite;
|
|
228
258
|
}
|
|
229
259
|
export { Workspaces_default as default };
|