@burdenoff/microfe-integrations 2026.1023.1 → 2026.1030.1
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/generated/wspace-operations.d.ts +18 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +6 -0
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +122 -0
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +8 -0
- package/dist/generated/wspace-types.js.map +1 -0
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.js +11 -9
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.d.ts.map +1 -1
- package/dist/integrations/components/ConnectionCard.js +71 -48
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ConnectionSharing.d.ts +18 -0
- package/dist/integrations/components/ConnectionSharing.d.ts.map +1 -0
- package/dist/integrations/components/ConnectionSharing.js +33 -0
- package/dist/integrations/components/ConnectionSharing.js.map +1 -0
- package/dist/integrations/constants/permissions.d.ts +1 -0
- package/dist/integrations/constants/permissions.d.ts.map +1 -1
- package/dist/integrations/constants/permissions.js +1 -0
- package/dist/integrations/constants/permissions.js.map +1 -1
- package/dist/integrations/hooks/useConnections.d.ts +3 -0
- package/dist/integrations/hooks/useConnections.d.ts.map +1 -1
- package/dist/integrations/hooks/useConnections.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.js +283 -261
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.d.ts.map +1 -1
- package/dist/integrations/pages/ConnectionsList.js +197 -161
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.js +19 -18
- package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
- package/dist/integrations/types/index.d.ts +18 -0
- package/dist/integrations/types/index.d.ts.map +1 -1
- package/dist/integrations/utils/mappers.d.ts +3 -1
- package/dist/integrations/utils/mappers.d.ts.map +1 -1
- package/dist/integrations/utils/mappers.js +16 -3
- package/dist/integrations/utils/mappers.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,226 +1,262 @@
|
|
|
1
1
|
import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
|
|
2
2
|
import { useTr as t } from "../hooks/useTr.js";
|
|
3
|
-
import { INTEGRATION_PERMISSIONS as
|
|
4
|
-
import { AddConnectionDialog as
|
|
5
|
-
import { joinPath as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { useIntegrationsStore as
|
|
8
|
-
import { CONNECTION_STATUS_OPTIONS as
|
|
9
|
-
import { useConnections as
|
|
10
|
-
import { ConnectionCard as
|
|
3
|
+
import { INTEGRATION_PERMISSIONS as ee } from "../constants/permissions.js";
|
|
4
|
+
import { AddConnectionDialog as n } from "../components/AddConnectionDialog.js";
|
|
5
|
+
import { joinPath as te } from "../utils/navigation.js";
|
|
6
|
+
import { cn as r } from "../utils/cn.js";
|
|
7
|
+
import { useIntegrationsStore as i } from "../store/integrationsStore.js";
|
|
8
|
+
import { CONNECTION_STATUS_OPTIONS as a, PROVIDER_CATEGORIES as o } from "../utils/constants.js";
|
|
9
|
+
import { useConnections as ne } from "../hooks/useConnections.js";
|
|
10
|
+
import { ConnectionCard as re } from "../components/ConnectionCard.js";
|
|
11
|
+
import { ConnectionAccessFilter as s } from "../../generated/wspace-types.js";
|
|
11
12
|
import { useId as c, useMemo as l, useState as u } from "react";
|
|
12
|
-
import { AlertCircle as d, ArrowLeft as f, Filter as p, Grid3x3 as m, Link2 as h, List as
|
|
13
|
-
import { usePermissions as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { Button as
|
|
13
|
+
import { AlertCircle as d, ArrowLeft as f, Filter as p, Grid3x3 as m, Link2 as h, List as ie, Plus as g, RefreshCw as _, Search as ae, X as v } from "lucide-react";
|
|
14
|
+
import { usePermissions as oe } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
15
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
16
|
+
import { Button as x, EmphasisPanel as S, IllustratedEmptyState as C, PagePurpose as w } from "@burdenoff/fe-libs/ui";
|
|
16
17
|
//#region src/integrations/pages/ConnectionsList.tsx
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
var T = {
|
|
19
|
+
mine: s.OwnedByMe,
|
|
20
|
+
shared: s.SharedWithMe
|
|
21
|
+
};
|
|
22
|
+
function E() {
|
|
23
|
+
let { basePath: s = "/", navigate: E, onConnectionSelect: se, connectionsDocsUrl: ce } = e(), D = t(), { viewMode: O, setViewMode: k, connectionFilter: A, updateConnectionFilter: j, addConnectionDialogOpen: M, openAddConnectionDialog: N, closeAddConnectionDialog: P } = i(), [F, I] = u("all"), { connections: L, loading: R, answered: z, error: B, refetch: V } = ne(F === "all" ? void 0 : { access: T[F] }), H = !R && !B && !z, { hasPermission: U, isLoading: W } = oe(), G = !W && U(ee.CONNECTION_CREATE), [K, le] = u(!1), q = c(), J = `${q}-status`, Y = `${q}-category`, X = `${q}-access`, ue = F !== "all" || (L ?? []).some((e) => e.myAccess !== void 0), Z = l(() => {
|
|
19
24
|
let e = L ?? [];
|
|
20
|
-
if (
|
|
21
|
-
let t =
|
|
25
|
+
if (A.search) {
|
|
26
|
+
let t = A.search.toLowerCase();
|
|
22
27
|
e = e.filter((e) => e.name.toLowerCase().includes(t) || e.provider.name.toLowerCase().includes(t) || (e.externalAccountEmail?.toLowerCase().includes(t) ?? !1));
|
|
23
28
|
}
|
|
24
|
-
return
|
|
25
|
-
}, [L,
|
|
26
|
-
|
|
29
|
+
return A.status !== "all" && (e = e.filter((e) => e.status === A.status)), A.providerId && (e = e.filter((e) => e.provider.id === A.providerId)), A.category !== "all" && (e = e.filter((e) => e.provider.category === A.category)), e.sort((e, t) => new Date(t.updatedAt).getTime() - new Date(e.updatedAt).getTime());
|
|
30
|
+
}, [L, A]), Q = A.search || A.status !== "all" || A.providerId || A.category !== "all" || F !== "all", $ = () => {
|
|
31
|
+
j({
|
|
27
32
|
search: "",
|
|
28
33
|
status: "all",
|
|
29
34
|
providerId: null,
|
|
30
35
|
category: "all"
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
|
|
36
|
+
}), I("all");
|
|
37
|
+
}, de = (e) => {
|
|
38
|
+
se?.(e), E?.(te(s, `connections/${e.id}`));
|
|
34
39
|
};
|
|
35
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ b("div", {
|
|
36
41
|
className: "space-y-6 p-6 max-w-7xl mx-auto",
|
|
37
42
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ y("div", {
|
|
39
44
|
className: "rounded-xl border border-border-seam bg-accent-wash p-6",
|
|
40
45
|
"data-tour": "integrations-connections-header",
|
|
41
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ b("div", {
|
|
42
47
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
43
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ b("div", {
|
|
44
49
|
className: "flex min-w-0 items-center gap-4",
|
|
45
50
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ y(x, {
|
|
47
52
|
variant: "ghost",
|
|
48
53
|
size: "icon",
|
|
49
54
|
className: "shrink-0",
|
|
50
|
-
onClick: () => E?.(
|
|
51
|
-
"aria-label":
|
|
52
|
-
children: /* @__PURE__ */
|
|
55
|
+
onClick: () => E?.(s),
|
|
56
|
+
"aria-label": D("integrations.connections.actions.backAriaLabel", "Back to overview"),
|
|
57
|
+
children: /* @__PURE__ */ y(f, { size: 20 })
|
|
53
58
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ y("div", {
|
|
55
60
|
className: "shrink-0 p-2.5 rounded-lg bg-action-primary-bg/10",
|
|
56
|
-
children: /* @__PURE__ */
|
|
61
|
+
children: /* @__PURE__ */ y(h, {
|
|
57
62
|
size: 24,
|
|
58
63
|
className: "text-primary"
|
|
59
64
|
})
|
|
60
65
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ b("div", {
|
|
62
67
|
className: "min-w-0",
|
|
63
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ y("h1", {
|
|
64
69
|
className: "text-2xl sm:text-3xl font-bold text-text-primary",
|
|
65
|
-
children:
|
|
66
|
-
}), /* @__PURE__ */
|
|
70
|
+
children: D("integrations.connections.title", "Connections")
|
|
71
|
+
}), /* @__PURE__ */ y("p", {
|
|
67
72
|
className: "text-sm text-text-secondary mt-0.5",
|
|
68
|
-
children:
|
|
73
|
+
children: D("integrations.connections.subtitle", "Manage your integration connections")
|
|
69
74
|
})]
|
|
70
75
|
})
|
|
71
76
|
]
|
|
72
|
-
}), G && /* @__PURE__ */
|
|
77
|
+
}), G && /* @__PURE__ */ b(x, {
|
|
73
78
|
className: "shrink-0",
|
|
74
|
-
onClick: () =>
|
|
75
|
-
children: [/* @__PURE__ */
|
|
79
|
+
onClick: () => N(),
|
|
80
|
+
children: [/* @__PURE__ */ y(g, { size: 16 }), D("integrations.connections.actions.addConnection", "Add Connection")]
|
|
76
81
|
})]
|
|
77
82
|
})
|
|
78
83
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
icon: /* @__PURE__ */
|
|
81
|
-
learnMoreHref:
|
|
82
|
-
learnMoreLabel:
|
|
83
|
-
children:
|
|
84
|
+
/* @__PURE__ */ y(w, {
|
|
85
|
+
icon: /* @__PURE__ */ y(h, { size: 16 }),
|
|
86
|
+
learnMoreHref: ce,
|
|
87
|
+
learnMoreLabel: D("integrations.connections.learnMore", "Learn more"),
|
|
88
|
+
children: D("integrations.connections.purpose", "A connection is one authenticated link between your workspace and an external service (for example, \"Marketing Slack\" or \"Finance Google Drive\"). Use this page to see every connection at a glance, check its health, search by provider or account, and open one to test, refresh, or revoke its access.")
|
|
84
89
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ b("div", {
|
|
86
91
|
className: "space-y-4",
|
|
87
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ b("div", {
|
|
88
93
|
className: "flex flex-col sm:flex-row gap-3",
|
|
89
94
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ b("div", {
|
|
91
96
|
className: "flex-1 relative group",
|
|
92
97
|
"data-tour": "integrations-connections-search",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
98
|
+
children: [/* @__PURE__ */ y(ae, {
|
|
94
99
|
size: 18,
|
|
95
100
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary group-focus-within:text-primary transition-colors"
|
|
96
|
-
}), /* @__PURE__ */
|
|
101
|
+
}), /* @__PURE__ */ y("input", {
|
|
97
102
|
type: "text",
|
|
98
|
-
placeholder:
|
|
99
|
-
value:
|
|
100
|
-
onChange: (e) =>
|
|
103
|
+
placeholder: D("integrations.connections.search.placeholder", "Search connections..."),
|
|
104
|
+
value: A.search,
|
|
105
|
+
onChange: (e) => j({ search: e.target.value }),
|
|
101
106
|
className: "w-full pl-10 pr-4 py-2.5 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
|
|
102
|
-
"aria-label":
|
|
107
|
+
"aria-label": D("integrations.connections.search.ariaLabel", "Search connections")
|
|
103
108
|
})]
|
|
104
109
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ b("button", {
|
|
106
111
|
type: "button",
|
|
107
|
-
onClick: () =>
|
|
108
|
-
className:
|
|
109
|
-
children: [/* @__PURE__ */
|
|
112
|
+
onClick: () => le(!K),
|
|
113
|
+
className: r("inline-flex items-center gap-2 px-4 py-2.5 rounded-lg border text-sm font-medium transition-all", K || Q ? "bg-action-primary-bg text-action-primary-text border-primary" : "bg-bg-surface text-text-primary border-border-subtle hover:bg-accent"),
|
|
114
|
+
children: [/* @__PURE__ */ y(p, { size: 16 }), K ? D("integrations.connections.filters.hide", "Hide") : D("integrations.connections.filters.show", "Filter")]
|
|
110
115
|
}),
|
|
111
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ b("div", {
|
|
112
117
|
className: "flex items-center border border-border-subtle rounded-lg overflow-hidden",
|
|
113
118
|
"data-tour": "integrations-connections-view-toggle",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
119
|
+
children: [/* @__PURE__ */ y("button", {
|
|
115
120
|
type: "button",
|
|
116
|
-
onClick: () =>
|
|
117
|
-
className:
|
|
118
|
-
"aria-label":
|
|
119
|
-
children: /* @__PURE__ */
|
|
120
|
-
}), /* @__PURE__ */
|
|
121
|
+
onClick: () => k("grid"),
|
|
122
|
+
className: r("p-2.5 transition-colors", O === "grid" ? "bg-action-primary-bg text-action-primary-text" : "hover:bg-accent"),
|
|
123
|
+
"aria-label": D("integrations.connections.view.gridAriaLabel", "Grid view"),
|
|
124
|
+
children: /* @__PURE__ */ y(m, { size: 16 })
|
|
125
|
+
}), /* @__PURE__ */ y("button", {
|
|
121
126
|
type: "button",
|
|
122
|
-
onClick: () =>
|
|
123
|
-
className:
|
|
124
|
-
"aria-label":
|
|
125
|
-
children: /* @__PURE__ */
|
|
127
|
+
onClick: () => k("list"),
|
|
128
|
+
className: r("p-2.5 transition-colors", O === "list" ? "bg-action-primary-bg text-action-primary-text" : "hover:bg-accent"),
|
|
129
|
+
"aria-label": D("integrations.connections.view.listAriaLabel", "List view"),
|
|
130
|
+
children: /* @__PURE__ */ y(ie, { size: 16 })
|
|
126
131
|
})]
|
|
127
132
|
})
|
|
128
133
|
]
|
|
129
|
-
}), K && /* @__PURE__ */
|
|
134
|
+
}), K && /* @__PURE__ */ b("div", {
|
|
130
135
|
className: "rounded-xl border border-border-seam bg-bg-surface p-5 animate-in slide-in-from-top-2 duration-200",
|
|
131
|
-
children: [/* @__PURE__ */
|
|
136
|
+
children: [/* @__PURE__ */ b("div", {
|
|
132
137
|
className: "flex items-center justify-between mb-4",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
138
|
+
children: [/* @__PURE__ */ b("h3", {
|
|
134
139
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
140
|
+
children: [/* @__PURE__ */ y(p, {
|
|
136
141
|
size: 16,
|
|
137
142
|
className: "text-primary"
|
|
138
|
-
}),
|
|
139
|
-
}), Q && /* @__PURE__ */
|
|
143
|
+
}), D("integrations.connections.filters.panelTitle", "Filters")]
|
|
144
|
+
}), Q && /* @__PURE__ */ b("button", {
|
|
140
145
|
type: "button",
|
|
141
146
|
onClick: $,
|
|
142
147
|
className: "text-sm text-text-secondary hover:text-status-error-text transition-colors flex items-center gap-1",
|
|
143
148
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ y(v, { size: 14 }),
|
|
145
150
|
" ",
|
|
146
|
-
|
|
151
|
+
D("integrations.connections.filters.clearAll", "Clear All")
|
|
147
152
|
]
|
|
148
153
|
})]
|
|
149
|
-
}), /* @__PURE__ */
|
|
154
|
+
}), /* @__PURE__ */ b("div", {
|
|
150
155
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
151
|
-
children: [
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
children:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ b("div", {
|
|
158
|
+
className: "space-y-2",
|
|
159
|
+
children: [/* @__PURE__ */ y("label", {
|
|
160
|
+
htmlFor: J,
|
|
161
|
+
className: "block text-sm font-medium text-text-primary",
|
|
162
|
+
children: D("integrations.connections.filters.statusLabel", "Status")
|
|
163
|
+
}), /* @__PURE__ */ b("select", {
|
|
164
|
+
id: J,
|
|
165
|
+
value: A.status,
|
|
166
|
+
onChange: (e) => j({ status: e.target.value }),
|
|
167
|
+
className: "w-full px-3 py-2 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
168
|
+
children: [/* @__PURE__ */ y("option", {
|
|
169
|
+
value: "all",
|
|
170
|
+
children: D("integrations.connections.filters.statusAll", "All Statuses")
|
|
171
|
+
}), a.map((e) => /* @__PURE__ */ y("option", {
|
|
172
|
+
value: e.value,
|
|
173
|
+
children: D(`integrations.status.${e.value}`, e.label)
|
|
174
|
+
}, e.value))]
|
|
175
|
+
})]
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ b("div", {
|
|
178
|
+
className: "space-y-2",
|
|
179
|
+
children: [/* @__PURE__ */ y("label", {
|
|
180
|
+
htmlFor: Y,
|
|
181
|
+
className: "block text-sm font-medium text-text-primary",
|
|
182
|
+
children: D("integrations.connections.filters.categoryLabel", "Category")
|
|
183
|
+
}), /* @__PURE__ */ b("select", {
|
|
184
|
+
id: Y,
|
|
185
|
+
value: A.category,
|
|
186
|
+
onChange: (e) => j({ category: e.target.value }),
|
|
187
|
+
className: "w-full px-3 py-2 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
188
|
+
children: [/* @__PURE__ */ y("option", {
|
|
189
|
+
value: "all",
|
|
190
|
+
children: D("integrations.connections.filters.categoryAll", "All Categories")
|
|
191
|
+
}), o.map((e) => /* @__PURE__ */ y("option", {
|
|
192
|
+
value: e.value,
|
|
193
|
+
children: D(`integrations.category.${e.value}`, e.label)
|
|
194
|
+
}, e.value))]
|
|
195
|
+
})]
|
|
196
|
+
}),
|
|
197
|
+
ue && /* @__PURE__ */ b("div", {
|
|
198
|
+
className: "space-y-2",
|
|
199
|
+
children: [/* @__PURE__ */ y("label", {
|
|
200
|
+
htmlFor: X,
|
|
201
|
+
className: "block text-sm font-medium text-text-primary",
|
|
202
|
+
children: D("integrations.connections.filters.accessLabel", "Access")
|
|
203
|
+
}), /* @__PURE__ */ b("select", {
|
|
204
|
+
id: X,
|
|
205
|
+
value: F,
|
|
206
|
+
onChange: (e) => I(e.target.value),
|
|
207
|
+
className: "w-full px-3 py-2 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
208
|
+
"data-testid": "connections-access-filter",
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ y("option", {
|
|
211
|
+
value: "all",
|
|
212
|
+
children: D("integrations.connections.filters.accessAll", "All I can see")
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ y("option", {
|
|
215
|
+
value: "mine",
|
|
216
|
+
children: D("integrations.connections.filters.accessMine", "Owned by me")
|
|
217
|
+
}),
|
|
218
|
+
/* @__PURE__ */ y("option", {
|
|
219
|
+
value: "shared",
|
|
220
|
+
children: D("integrations.connections.filters.accessShared", "Shared with me")
|
|
221
|
+
})
|
|
222
|
+
]
|
|
223
|
+
})]
|
|
224
|
+
})
|
|
225
|
+
]
|
|
190
226
|
})]
|
|
191
227
|
})]
|
|
192
228
|
}),
|
|
193
|
-
B && /* @__PURE__ */
|
|
229
|
+
B && /* @__PURE__ */ b("div", {
|
|
194
230
|
className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-5 flex items-start gap-4",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
231
|
+
children: [/* @__PURE__ */ y(d, {
|
|
196
232
|
size: 24,
|
|
197
233
|
className: "text-status-error-text flex-shrink-0"
|
|
198
|
-
}), /* @__PURE__ */
|
|
234
|
+
}), /* @__PURE__ */ b("div", {
|
|
199
235
|
className: "flex-1",
|
|
200
236
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ y("h3", {
|
|
202
238
|
className: "font-semibold text-status-error-text mb-1",
|
|
203
|
-
children:
|
|
239
|
+
children: D("integrations.connections.error.title", "Error loading connections")
|
|
204
240
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ y("p", {
|
|
206
242
|
className: "text-sm text-status-error-text mb-3",
|
|
207
243
|
children: B.message
|
|
208
244
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ b("button", {
|
|
210
246
|
type: "button",
|
|
211
247
|
onClick: () => V(),
|
|
212
248
|
className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-status-error-bg-subtle text-status-error-text hover:bg-status-error-bg-subtle/80 transition-colors",
|
|
213
249
|
children: [
|
|
214
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ y(_, { size: 14 }),
|
|
215
251
|
" ",
|
|
216
|
-
|
|
252
|
+
D("integrations.common.retry", "Try Again")
|
|
217
253
|
]
|
|
218
254
|
})
|
|
219
255
|
]
|
|
220
256
|
})]
|
|
221
257
|
}),
|
|
222
|
-
(R || H) && /* @__PURE__ */
|
|
223
|
-
className:
|
|
258
|
+
(R || H) && /* @__PURE__ */ y("div", {
|
|
259
|
+
className: r(O === "grid" ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4" : "space-y-3"),
|
|
224
260
|
children: [...[
|
|
225
261
|
,
|
|
226
262
|
,
|
|
@@ -228,29 +264,29 @@ function T() {
|
|
|
228
264
|
,
|
|
229
265
|
,
|
|
230
266
|
,
|
|
231
|
-
]].map((e, t) => /* @__PURE__ */
|
|
267
|
+
]].map((e, t) => /* @__PURE__ */ y("div", {
|
|
232
268
|
className: "rounded-xl border border-border-seam bg-bg-surface p-5",
|
|
233
|
-
children: /* @__PURE__ */
|
|
269
|
+
children: /* @__PURE__ */ b("div", {
|
|
234
270
|
className: "flex items-start gap-3",
|
|
235
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ y("div", { className: "size-11 bg-bg-sunken rounded-xl animate-vc-shimmer" }), /* @__PURE__ */ b("div", {
|
|
236
272
|
className: "flex-1 space-y-2",
|
|
237
|
-
children: [/* @__PURE__ */
|
|
273
|
+
children: [/* @__PURE__ */ y("div", { className: "h-4 w-3/4 bg-bg-sunken rounded animate-vc-shimmer" }), /* @__PURE__ */ y("div", { className: "h-3 w-1/2 bg-bg-sunken rounded animate-vc-shimmer" })]
|
|
238
274
|
})]
|
|
239
275
|
})
|
|
240
276
|
}, t))
|
|
241
277
|
}),
|
|
242
|
-
!R && !B && !H && /* @__PURE__ */
|
|
278
|
+
!R && !B && !H && /* @__PURE__ */ b(S, {
|
|
243
279
|
className: "overflow-hidden p-0",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ b("div", {
|
|
245
281
|
className: "flex items-center justify-between gap-2 p-5 border-b border-border-seam",
|
|
246
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ b("div", {
|
|
247
283
|
className: "flex items-center gap-2",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ y(h, {
|
|
249
285
|
size: 18,
|
|
250
286
|
className: "text-primary"
|
|
251
|
-
}), /* @__PURE__ */
|
|
287
|
+
}), /* @__PURE__ */ b("h2", {
|
|
252
288
|
className: "font-semibold text-text-primary",
|
|
253
|
-
children: [
|
|
289
|
+
children: [D("integrations.connections.results.title", "Your Connections"), Z.length > 0 && /* @__PURE__ */ b("span", {
|
|
254
290
|
className: "ml-2 text-sm font-normal text-text-secondary tabular-nums",
|
|
255
291
|
children: [
|
|
256
292
|
"(",
|
|
@@ -259,48 +295,48 @@ function T() {
|
|
|
259
295
|
]
|
|
260
296
|
})]
|
|
261
297
|
})]
|
|
262
|
-
}), G && Z.length > 0 && /* @__PURE__ */
|
|
298
|
+
}), G && Z.length > 0 && /* @__PURE__ */ b(x, {
|
|
263
299
|
size: "sm",
|
|
264
300
|
variant: "outline",
|
|
265
|
-
onClick: () =>
|
|
301
|
+
onClick: () => N(),
|
|
266
302
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ y(g, { size: 14 }),
|
|
268
304
|
" ",
|
|
269
|
-
|
|
305
|
+
D("integrations.connections.actions.add", "Add")
|
|
270
306
|
]
|
|
271
307
|
})]
|
|
272
|
-
}), Z.length > 0 ? /* @__PURE__ */
|
|
273
|
-
className:
|
|
274
|
-
children: Z.map((e) => /* @__PURE__ */
|
|
308
|
+
}), Z.length > 0 ? /* @__PURE__ */ y("div", {
|
|
309
|
+
className: r("p-5", O === "grid" ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4" : "space-y-3"),
|
|
310
|
+
children: Z.map((e) => /* @__PURE__ */ y(re, {
|
|
275
311
|
connection: e,
|
|
276
|
-
displayMode:
|
|
277
|
-
onClick:
|
|
312
|
+
displayMode: O,
|
|
313
|
+
onClick: de
|
|
278
314
|
}, e.id))
|
|
279
|
-
}) : /* @__PURE__ */
|
|
315
|
+
}) : /* @__PURE__ */ y(C, {
|
|
280
316
|
illustration: Q ? "empty-search" : "empty-data",
|
|
281
|
-
title: Q ?
|
|
282
|
-
description: Q ?
|
|
283
|
-
action: Q ? /* @__PURE__ */
|
|
317
|
+
title: Q ? D("integrations.connections.empty.filteredTitle", "No matching connections") : D("integrations.connections.empty.title", "No connections yet"),
|
|
318
|
+
description: Q ? D("integrations.connections.empty.filteredDescription", "Try adjusting your search or filters.") : G ? D("integrations.connections.empty.description", "Add a connection to start integrating with external services.") : D("integrations.connections.empty.readOnlyDescription", "No connections are configured yet. Contact your workspace admin to add one."),
|
|
319
|
+
action: Q ? /* @__PURE__ */ b(x, {
|
|
284
320
|
variant: "outline",
|
|
285
321
|
onClick: $,
|
|
286
322
|
children: [
|
|
287
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ y(v, { size: 14 }),
|
|
288
324
|
" ",
|
|
289
|
-
|
|
325
|
+
D("integrations.connections.empty.clearFilters", "Clear Filters")
|
|
290
326
|
]
|
|
291
|
-
}) : G ? /* @__PURE__ */
|
|
292
|
-
onClick: () =>
|
|
327
|
+
}) : G ? /* @__PURE__ */ b(x, {
|
|
328
|
+
onClick: () => N(),
|
|
293
329
|
children: [
|
|
294
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ y(g, { size: 14 }),
|
|
295
331
|
" ",
|
|
296
|
-
|
|
332
|
+
D("integrations.connections.actions.addConnection", "Add Connection")
|
|
297
333
|
]
|
|
298
334
|
}) : void 0
|
|
299
335
|
})]
|
|
300
336
|
}),
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
-
open:
|
|
303
|
-
onClose:
|
|
337
|
+
/* @__PURE__ */ y(n, {
|
|
338
|
+
open: M,
|
|
339
|
+
onClose: P,
|
|
304
340
|
onConnectionCreated: () => {
|
|
305
341
|
V();
|
|
306
342
|
}
|
|
@@ -309,6 +345,6 @@ function T() {
|
|
|
309
345
|
});
|
|
310
346
|
}
|
|
311
347
|
//#endregion
|
|
312
|
-
export {
|
|
348
|
+
export { E as ConnectionsList };
|
|
313
349
|
|
|
314
350
|
//# sourceMappingURL=ConnectionsList.js.map
|