@burdenoff/microfe-integrations 2026.1109.3 → 2026.1113.2
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 +4 -0
- package/dist/generated/wspace-operations.js +1 -0
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts +7 -0
- package/dist/integrations/IntegrationsUserRoutes.js +57 -47
- package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts +8 -2
- package/dist/integrations/components/AddConnectionDialog.js +17 -15
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/ConnectedAppsMoreMenu.d.ts +12 -0
- package/dist/integrations/components/ConnectedAppsMoreMenu.js +60 -0
- package/dist/integrations/components/ConnectedAppsMoreMenu.js.map +1 -0
- package/dist/integrations/components/ConnectionCard.d.ts +7 -1
- package/dist/integrations/components/ConnectionCard.js +40 -26
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/PopularAppTiles.d.ts +7 -0
- package/dist/integrations/components/PopularAppTiles.js +33 -0
- package/dist/integrations/components/PopularAppTiles.js.map +1 -0
- package/dist/integrations/components/ProviderCard.d.ts +6 -0
- package/dist/integrations/components/ProviderCard.js +67 -61
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/components/RecentActivity.d.ts +7 -0
- package/dist/integrations/components/RecentActivity.js +74 -0
- package/dist/integrations/components/RecentActivity.js.map +1 -0
- package/dist/integrations/hooks/useLogs.d.ts +2 -0
- package/dist/integrations/hooks/useLogs.js +2 -1
- package/dist/integrations/hooks/useLogs.js.map +1 -1
- package/dist/integrations/hooks/useVaultName.d.ts +1 -0
- package/dist/integrations/hooks/useVaultName.js +27 -0
- package/dist/integrations/hooks/useVaultName.js.map +1 -0
- package/dist/integrations/pages/ConnectionDetail.js +561 -283
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts +3 -0
- package/dist/integrations/pages/ConnectionLogs.js +178 -142
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.js +376 -243
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.js +199 -179
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.js +284 -265
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.js +22 -21
- package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
- package/dist/integrations/types/index.d.ts +12 -0
- package/dist/integrations/utils/connectedApps.d.ts +26 -0
- package/dist/integrations/utils/connectedApps.js +46 -0
- package/dist/integrations/utils/connectedApps.js.map +1 -0
- package/dist/integrations/utils/mappers.js +1 -0
- package/dist/integrations/utils/mappers.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,15 +7,15 @@ import { useProviders as a } from "../hooks/useProviders.js";
|
|
|
7
7
|
import { joinPath as o } from "../utils/navigation.js";
|
|
8
8
|
import { ProviderCard as ee } from "../components/ProviderCard.js";
|
|
9
9
|
import { AddConnectionDialog as te } from "../components/AddConnectionDialog.js";
|
|
10
|
-
import { AUTH_TYPE_OPTIONS as ne, PLUGIN_STATUS_OPTIONS as
|
|
11
|
-
import { useMemo as
|
|
12
|
-
import { AlertCircle as
|
|
13
|
-
import { usePermissions as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { Button as
|
|
10
|
+
import { AUTH_TYPE_OPTIONS as ne, PLUGIN_STATUS_OPTIONS as re, PROVIDER_CATEGORIES as s } from "../utils/constants.js";
|
|
11
|
+
import { useMemo as c, useState as l } from "react";
|
|
12
|
+
import { AlertCircle as u, ArrowLeft as ie, ClipboardCheck as ae, Filter as d, Grid3x3 as oe, List as f, RefreshCw as p, Search as se, Store as m, Upload as h, X as g } from "lucide-react";
|
|
13
|
+
import { usePermissions as _ } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
14
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
15
|
+
import { Button as b, EmphasisPanel as x, IllustratedEmptyState as S, PagePurpose as C } from "@burdenoff/fe-libs/ui";
|
|
16
16
|
// src/integrations/pages/ProviderCatalog.tsx
|
|
17
17
|
function w({ showCreateProviderButton: w = !1 }) {
|
|
18
|
-
let { basePath: T = "/", navigate: E, onProviderSelect: D } = n(), O = t(), { viewMode: k, setViewMode: A, providerFilter: j, updateProviderFilter: M, addConnectionDialogOpen: N, addConnectionProviderId: P, openAddConnectionDialog: F, closeAddConnectionDialog: I } = i(), { providers: L, loading: R, error: z, refetch: B } = a(), { hasPermission: V, isLoading: H } =
|
|
18
|
+
let { basePath: T = "/", navigate: E, onProviderSelect: ce, navigationV2: D = !1 } = n(), O = t(), { viewMode: k, setViewMode: A, providerFilter: j, updateProviderFilter: M, addConnectionDialogOpen: N, addConnectionProviderId: P, openAddConnectionDialog: F, closeAddConnectionDialog: I } = i(), { providers: L, loading: R, error: z, refetch: B } = a(), { hasPermission: V, isLoading: H } = _(), U = !H && V(r.CONNECTION_CREATE), W = !H && V(r.PROVIDER_CREATE), [G, le] = l(!1), [K, q] = l("all"), J = c(() => {
|
|
19
19
|
let e = L ?? [];
|
|
20
20
|
if (j.search) {
|
|
21
21
|
let t = j.search.toLowerCase();
|
|
@@ -26,228 +26,247 @@ function w({ showCreateProviderButton: w = !1 }) {
|
|
|
26
26
|
L,
|
|
27
27
|
j,
|
|
28
28
|
K
|
|
29
|
-
]), Y = j.search || j.category !== "all" || j.pluginStatus !== "all" || K !== "all", X = () => {
|
|
29
|
+
]), ue = s.map((e) => e.value).filter((e) => (L ?? []).some((t) => t.category === e)), Y = j.search || j.category !== "all" || j.pluginStatus !== "all" || K !== "all", X = () => {
|
|
30
30
|
M({
|
|
31
31
|
search: "",
|
|
32
32
|
category: "all",
|
|
33
33
|
pluginStatus: "all"
|
|
34
34
|
}), q("all");
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
},
|
|
35
|
+
}, de = (e) => {
|
|
36
|
+
ce?.(e), E?.(o(T, `providers/${e.id}`));
|
|
37
|
+
}, fe = (e) => {
|
|
38
38
|
F(e.id);
|
|
39
39
|
}, Z = (e) => e === "all" ? O("integrations.providerCatalog.filters.category.all", "All Categories") : O(`integrations.category.${e}`, e), Q = (e) => e === "all" ? O("integrations.providerCatalog.filters.authType.all", "All Auth Types") : O(`integrations.authType.${e}`, e), $ = (e) => e === "all" ? O("integrations.providerCatalog.filters.pluginStatus.all", "All Statuses") : O(`integrations.pluginStatus.${e}`, e);
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ y("div", {
|
|
41
41
|
className: "space-y-6 p-6 max-w-7xl mx-auto",
|
|
42
42
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ v("div", {
|
|
44
44
|
className: "rounded-xl border border-border-seam bg-accent-wash p-6",
|
|
45
45
|
"data-tour": "integrations-providers-header",
|
|
46
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ y("div", {
|
|
47
47
|
className: "flex flex-wrap items-center gap-4",
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */ b
|
|
49
|
+
/* @__PURE__ */ v(b, {
|
|
50
50
|
variant: "ghost",
|
|
51
51
|
size: "icon",
|
|
52
52
|
onClick: () => E?.(T),
|
|
53
53
|
"aria-label": O("integrations.providerCatalog.actions.backAriaLabel", "Back to overview"),
|
|
54
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ v(ie, { size: 20 })
|
|
55
55
|
}),
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ v("div", {
|
|
57
57
|
className: "p-2.5 rounded-lg bg-action-primary-bg/10",
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ v(m, {
|
|
59
59
|
size: 24,
|
|
60
60
|
className: "text-primary"
|
|
61
61
|
})
|
|
62
62
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h1", {
|
|
64
64
|
className: "text-2xl sm:text-3xl font-bold text-text-primary",
|
|
65
65
|
children: O("integrations.providerCatalog.title", "Provider Catalog")
|
|
66
|
-
}), /* @__PURE__ */
|
|
66
|
+
}), /* @__PURE__ */ v("p", {
|
|
67
67
|
className: "text-sm text-text-secondary mt-0.5",
|
|
68
68
|
children: O("integrations.providerCatalog.subtitle", "Browse, install, and manage integration providers")
|
|
69
69
|
})] }),
|
|
70
|
-
w && W && /* @__PURE__ */
|
|
70
|
+
w && W && /* @__PURE__ */ y("div", {
|
|
71
71
|
className: "ml-auto flex flex-wrap gap-2",
|
|
72
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: [/* @__PURE__ */ y(b, {
|
|
73
73
|
variant: "ghost",
|
|
74
74
|
onClick: () => E?.(o(T, "connector-reviews")),
|
|
75
|
-
children: [/* @__PURE__ */
|
|
76
|
-
}), /* @__PURE__ */
|
|
75
|
+
children: [/* @__PURE__ */ v(ae, { size: 16 }), O("integrations.providerCatalog.actions.connectorReviews", "Connector reviews")]
|
|
76
|
+
}), /* @__PURE__ */ y(b, {
|
|
77
77
|
onClick: () => E?.(o(T, "providers/new")),
|
|
78
|
-
children: [/* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ v(m, { size: 16 }), O("integrations.providerCatalog.actions.addProvider", "Add Provider")]
|
|
79
79
|
})]
|
|
80
80
|
}),
|
|
81
|
-
!w && /* @__PURE__ */
|
|
81
|
+
!w && /* @__PURE__ */ y(b, {
|
|
82
82
|
variant: "ghost",
|
|
83
83
|
className: "ml-auto",
|
|
84
84
|
onClick: () => E?.(o(T, "developer/connectors")),
|
|
85
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ v(h, { size: 16 }), O("integrations.providerCatalog.actions.publishConnector", "Publish a connector")]
|
|
86
86
|
})
|
|
87
87
|
]
|
|
88
88
|
})
|
|
89
89
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
icon: /* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ v(C, {
|
|
91
|
+
icon: /* @__PURE__ */ v(m, { size: 16 }),
|
|
92
92
|
children: O("integrations.providerCatalog.purpose", "A provider is a definition of an external service the platform knows how to talk to (Slack, GitHub, Google Drive, and so on). Browse the catalog to find one, see how it authenticates and what features it supports, then connect it to start using it in your workspace.")
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ y("div", {
|
|
95
95
|
className: "space-y-4",
|
|
96
|
-
children: [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/* @__PURE__ */ x("div", {
|
|
100
|
-
className: "flex-1 relative group",
|
|
101
|
-
"data-tour": "integrations-providers-search",
|
|
102
|
-
children: [/* @__PURE__ */ b(h, {
|
|
103
|
-
size: 18,
|
|
104
|
-
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary group-focus-within:text-primary transition-colors"
|
|
105
|
-
}), /* @__PURE__ */ b("input", {
|
|
106
|
-
type: "text",
|
|
107
|
-
placeholder: O("integrations.providerCatalog.search.placeholder", "Search providers by name, description, or key..."),
|
|
108
|
-
value: j.search,
|
|
109
|
-
onChange: (e) => M({ search: e.target.value }),
|
|
110
|
-
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",
|
|
111
|
-
"aria-label": O("integrations.providerCatalog.search.ariaLabel", "Search providers")
|
|
112
|
-
})]
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ x("button", {
|
|
115
|
-
type: "button",
|
|
116
|
-
onClick: () => ce(!G),
|
|
117
|
-
className: e("inline-flex items-center gap-2 px-4 py-2.5 rounded-lg border text-sm font-medium transition-all", G || Y ? "bg-action-primary-bg text-action-primary-text border-primary" : "bg-bg-surface text-text-primary border-border-subtle hover:bg-accent"),
|
|
118
|
-
children: [
|
|
119
|
-
/* @__PURE__ */ b(m, { size: 16 }),
|
|
120
|
-
G ? O("integrations.providerCatalog.filters.hide", "Hide") : O("integrations.providerCatalog.filters.show", "Filter"),
|
|
121
|
-
Y && /* @__PURE__ */ b("span", {
|
|
122
|
-
className: "ml-1 px-1.5 py-0.5 text-xs rounded-full bg-primary-foreground/20",
|
|
123
|
-
children: [
|
|
124
|
-
j.category !== "all",
|
|
125
|
-
j.pluginStatus !== "all",
|
|
126
|
-
K !== "all"
|
|
127
|
-
].filter(Boolean).length
|
|
128
|
-
})
|
|
129
|
-
]
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ x("div", {
|
|
132
|
-
className: "flex items-center border border-border-subtle rounded-lg overflow-hidden",
|
|
133
|
-
children: [/* @__PURE__ */ b("button", {
|
|
134
|
-
type: "button",
|
|
135
|
-
onClick: () => A("grid"),
|
|
136
|
-
className: e("p-2.5 transition-colors", k === "grid" ? "bg-action-primary-bg text-action-primary-text" : "hover:bg-accent"),
|
|
137
|
-
"aria-label": O("integrations.providerCatalog.view.gridAriaLabel", "Grid view"),
|
|
138
|
-
children: /* @__PURE__ */ b(re, { size: 16 })
|
|
139
|
-
}), /* @__PURE__ */ b("button", {
|
|
140
|
-
type: "button",
|
|
141
|
-
onClick: () => A("list"),
|
|
142
|
-
className: e("p-2.5 transition-colors", k === "list" ? "bg-action-primary-bg text-action-primary-text" : "hover:bg-accent"),
|
|
143
|
-
"aria-label": O("integrations.providerCatalog.view.listAriaLabel", "List view"),
|
|
144
|
-
children: /* @__PURE__ */ b(ie, { size: 16 })
|
|
145
|
-
})]
|
|
146
|
-
})
|
|
147
|
-
]
|
|
148
|
-
}), G && /* @__PURE__ */ x("div", {
|
|
149
|
-
className: "rounded-xl border border-border-seam bg-bg-surface p-5 animate-in slide-in-from-top-2 duration-200",
|
|
150
|
-
children: [/* @__PURE__ */ x("div", {
|
|
151
|
-
className: "flex items-center justify-between mb-4",
|
|
152
|
-
children: [/* @__PURE__ */ x("h3", {
|
|
153
|
-
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
154
|
-
children: [/* @__PURE__ */ b(m, {
|
|
155
|
-
size: 16,
|
|
156
|
-
className: "text-primary"
|
|
157
|
-
}), O("integrations.providerCatalog.filters.panelTitle", "Filters")]
|
|
158
|
-
}), Y && /* @__PURE__ */ x("button", {
|
|
159
|
-
type: "button",
|
|
160
|
-
onClick: X,
|
|
161
|
-
className: "text-sm text-text-secondary hover:text-status-error-text transition-colors flex items-center gap-1",
|
|
162
|
-
children: [/* @__PURE__ */ b(v, { size: 14 }), O("integrations.providerCatalog.filters.clearAll", "Clear All")]
|
|
163
|
-
})]
|
|
164
|
-
}), /* @__PURE__ */ x("div", {
|
|
165
|
-
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ y("div", {
|
|
98
|
+
className: "flex flex-col sm:flex-row gap-3",
|
|
166
99
|
children: [
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
className: "
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
value: e.value,
|
|
181
|
-
children: Z(e.value)
|
|
182
|
-
}, e.value))]
|
|
100
|
+
/* @__PURE__ */ y("div", {
|
|
101
|
+
className: "flex-1 relative group",
|
|
102
|
+
"data-tour": "integrations-providers-search",
|
|
103
|
+
children: [/* @__PURE__ */ v(se, {
|
|
104
|
+
size: 18,
|
|
105
|
+
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary group-focus-within:text-primary transition-colors"
|
|
106
|
+
}), /* @__PURE__ */ v("input", {
|
|
107
|
+
type: "text",
|
|
108
|
+
placeholder: O("integrations.providerCatalog.search.placeholder", "Search providers by name, description, or key..."),
|
|
109
|
+
value: j.search,
|
|
110
|
+
onChange: (e) => M({ search: e.target.value }),
|
|
111
|
+
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",
|
|
112
|
+
"aria-label": O("integrations.providerCatalog.search.ariaLabel", "Search providers")
|
|
183
113
|
})]
|
|
184
114
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
})]
|
|
115
|
+
/* @__PURE__ */ y("button", {
|
|
116
|
+
type: "button",
|
|
117
|
+
onClick: () => le(!G),
|
|
118
|
+
className: e("inline-flex items-center gap-2 px-4 py-2.5 rounded-lg border text-sm font-medium transition-all", G || Y ? "bg-action-primary-bg text-action-primary-text border-primary" : "bg-bg-surface text-text-primary border-border-subtle hover:bg-accent"),
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ v(d, { size: 16 }),
|
|
121
|
+
G ? O("integrations.providerCatalog.filters.hide", "Hide") : O("integrations.providerCatalog.filters.show", "Filter"),
|
|
122
|
+
Y && /* @__PURE__ */ v("span", {
|
|
123
|
+
className: "ml-1 px-1.5 py-0.5 text-xs rounded-full bg-primary-foreground/20",
|
|
124
|
+
children: [
|
|
125
|
+
j.category !== "all",
|
|
126
|
+
j.pluginStatus !== "all",
|
|
127
|
+
K !== "all"
|
|
128
|
+
].filter(Boolean).length
|
|
129
|
+
})
|
|
130
|
+
]
|
|
202
131
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
-
className: "
|
|
205
|
-
children: [/* @__PURE__ */
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
children: $(e.value)
|
|
218
|
-
}, e.value))]
|
|
132
|
+
/* @__PURE__ */ y("div", {
|
|
133
|
+
className: "flex items-center border border-border-subtle rounded-lg overflow-hidden",
|
|
134
|
+
children: [/* @__PURE__ */ v("button", {
|
|
135
|
+
type: "button",
|
|
136
|
+
onClick: () => A("grid"),
|
|
137
|
+
className: e("p-2.5 transition-colors", k === "grid" ? "bg-action-primary-bg text-action-primary-text" : "hover:bg-accent"),
|
|
138
|
+
"aria-label": O("integrations.providerCatalog.view.gridAriaLabel", "Grid view"),
|
|
139
|
+
children: /* @__PURE__ */ v(oe, { size: 16 })
|
|
140
|
+
}), /* @__PURE__ */ v("button", {
|
|
141
|
+
type: "button",
|
|
142
|
+
onClick: () => A("list"),
|
|
143
|
+
className: e("p-2.5 transition-colors", k === "list" ? "bg-action-primary-bg text-action-primary-text" : "hover:bg-accent"),
|
|
144
|
+
"aria-label": O("integrations.providerCatalog.view.listAriaLabel", "List view"),
|
|
145
|
+
children: /* @__PURE__ */ v(f, { size: 16 })
|
|
219
146
|
})]
|
|
220
147
|
})
|
|
221
148
|
]
|
|
222
|
-
})
|
|
223
|
-
|
|
149
|
+
}),
|
|
150
|
+
D && /* @__PURE__ */ v("div", {
|
|
151
|
+
className: "flex flex-wrap gap-2",
|
|
152
|
+
role: "group",
|
|
153
|
+
"aria-label": O("integrations.providerCatalog.filters.category.label", "Category"),
|
|
154
|
+
"data-testid": "provider-category-chips",
|
|
155
|
+
children: ["all", ...ue].map((t) => {
|
|
156
|
+
let n = j.category === t;
|
|
157
|
+
return /* @__PURE__ */ v("button", {
|
|
158
|
+
type: "button",
|
|
159
|
+
"aria-pressed": n,
|
|
160
|
+
onClick: () => M({ category: t }),
|
|
161
|
+
className: e("rounded-full border px-3 py-1 text-sm transition-colors", n ? "bg-action-primary-bg text-action-primary-text border-primary" : "bg-bg-surface text-text-primary border-border-subtle hover:bg-accent"),
|
|
162
|
+
children: Z(t)
|
|
163
|
+
}, t);
|
|
164
|
+
})
|
|
165
|
+
}),
|
|
166
|
+
G && /* @__PURE__ */ y("div", {
|
|
167
|
+
className: "rounded-xl border border-border-seam bg-bg-surface p-5 animate-in slide-in-from-top-2 duration-200",
|
|
168
|
+
children: [/* @__PURE__ */ y("div", {
|
|
169
|
+
className: "flex items-center justify-between mb-4",
|
|
170
|
+
children: [/* @__PURE__ */ y("h3", {
|
|
171
|
+
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
172
|
+
children: [/* @__PURE__ */ v(d, {
|
|
173
|
+
size: 16,
|
|
174
|
+
className: "text-primary"
|
|
175
|
+
}), O("integrations.providerCatalog.filters.panelTitle", "Filters")]
|
|
176
|
+
}), Y && /* @__PURE__ */ y("button", {
|
|
177
|
+
type: "button",
|
|
178
|
+
onClick: X,
|
|
179
|
+
className: "text-sm text-text-secondary hover:text-status-error-text transition-colors flex items-center gap-1",
|
|
180
|
+
children: [/* @__PURE__ */ v(g, { size: 14 }), O("integrations.providerCatalog.filters.clearAll", "Clear All")]
|
|
181
|
+
})]
|
|
182
|
+
}), /* @__PURE__ */ y("div", {
|
|
183
|
+
className: e("grid grid-cols-1 gap-4", D ? "sm:grid-cols-2" : "sm:grid-cols-3"),
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ y("div", {
|
|
186
|
+
className: e("space-y-2", D && "hidden"),
|
|
187
|
+
children: [/* @__PURE__ */ v("label", {
|
|
188
|
+
className: "block text-sm font-medium text-text-primary",
|
|
189
|
+
children: O("integrations.providerCatalog.filters.category.label", "Category")
|
|
190
|
+
}), /* @__PURE__ */ y("select", {
|
|
191
|
+
value: j.category,
|
|
192
|
+
onChange: (e) => M({ category: e.target.value }),
|
|
193
|
+
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",
|
|
194
|
+
children: [/* @__PURE__ */ v("option", {
|
|
195
|
+
value: "all",
|
|
196
|
+
children: Z("all")
|
|
197
|
+
}), s.map((e) => /* @__PURE__ */ v("option", {
|
|
198
|
+
value: e.value,
|
|
199
|
+
children: Z(e.value)
|
|
200
|
+
}, e.value))]
|
|
201
|
+
})]
|
|
202
|
+
}),
|
|
203
|
+
/* @__PURE__ */ y("div", {
|
|
204
|
+
className: "space-y-2",
|
|
205
|
+
children: [/* @__PURE__ */ v("label", {
|
|
206
|
+
className: "block text-sm font-medium text-text-primary",
|
|
207
|
+
children: O("integrations.providerCatalog.filters.authType.label", "Auth Type")
|
|
208
|
+
}), /* @__PURE__ */ y("select", {
|
|
209
|
+
value: K,
|
|
210
|
+
onChange: (e) => q(e.target.value),
|
|
211
|
+
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",
|
|
212
|
+
children: [/* @__PURE__ */ v("option", {
|
|
213
|
+
value: "all",
|
|
214
|
+
children: Q("all")
|
|
215
|
+
}), ne.map((e) => /* @__PURE__ */ v("option", {
|
|
216
|
+
value: e.value,
|
|
217
|
+
children: Q(e.value)
|
|
218
|
+
}, e.value))]
|
|
219
|
+
})]
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ y("div", {
|
|
222
|
+
className: "space-y-2",
|
|
223
|
+
children: [/* @__PURE__ */ v("label", {
|
|
224
|
+
className: "block text-sm font-medium text-text-primary",
|
|
225
|
+
children: O("integrations.providerCatalog.filters.pluginStatus.label", "Plugin Status")
|
|
226
|
+
}), /* @__PURE__ */ y("select", {
|
|
227
|
+
value: j.pluginStatus,
|
|
228
|
+
onChange: (e) => M({ pluginStatus: e.target.value }),
|
|
229
|
+
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",
|
|
230
|
+
children: [/* @__PURE__ */ v("option", {
|
|
231
|
+
value: "all",
|
|
232
|
+
children: $("all")
|
|
233
|
+
}), re.map((e) => /* @__PURE__ */ v("option", {
|
|
234
|
+
value: e.value,
|
|
235
|
+
children: $(e.value)
|
|
236
|
+
}, e.value))]
|
|
237
|
+
})]
|
|
238
|
+
})
|
|
239
|
+
]
|
|
240
|
+
})]
|
|
241
|
+
})
|
|
242
|
+
]
|
|
224
243
|
}),
|
|
225
|
-
z && /* @__PURE__ */
|
|
244
|
+
z && /* @__PURE__ */ y("div", {
|
|
226
245
|
className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-5 flex items-start gap-4",
|
|
227
|
-
children: [/* @__PURE__ */
|
|
246
|
+
children: [/* @__PURE__ */ v(u, {
|
|
228
247
|
size: 24,
|
|
229
248
|
className: "text-status-error-text flex-shrink-0"
|
|
230
|
-
}), /* @__PURE__ */
|
|
249
|
+
}), /* @__PURE__ */ y("div", {
|
|
231
250
|
className: "flex-1",
|
|
232
251
|
children: [
|
|
233
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ v("h3", {
|
|
234
253
|
className: "font-semibold text-status-error-text mb-1",
|
|
235
254
|
children: O("integrations.providerCatalog.error.title", "Error loading providers")
|
|
236
255
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ v("p", {
|
|
238
257
|
className: "text-sm text-status-error-text mb-3",
|
|
239
258
|
children: z.message
|
|
240
259
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ y("button", {
|
|
242
261
|
type: "button",
|
|
243
262
|
onClick: () => B(),
|
|
244
263
|
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",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ v(p, { size: 14 }), O("integrations.providerCatalog.error.retry", "Try Again")]
|
|
246
265
|
})
|
|
247
266
|
]
|
|
248
267
|
})]
|
|
249
268
|
}),
|
|
250
|
-
R && /* @__PURE__ */
|
|
269
|
+
R && /* @__PURE__ */ v("div", {
|
|
251
270
|
className: e(k === "grid" ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4" : "space-y-3"),
|
|
252
271
|
children: [...[
|
|
253
272
|
,
|
|
@@ -256,30 +275,30 @@ function w({ showCreateProviderButton: w = !1 }) {
|
|
|
256
275
|
,
|
|
257
276
|
,
|
|
258
277
|
,
|
|
259
|
-
]].map((e, t) => /* @__PURE__ */
|
|
278
|
+
]].map((e, t) => /* @__PURE__ */ y("div", {
|
|
260
279
|
className: "rounded-xl border border-border-seam bg-bg-surface p-5",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ y("div", {
|
|
262
281
|
className: "flex items-start gap-3",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ v("div", { className: "size-12 bg-bg-sunken rounded-xl animate-vc-shimmer" }), /* @__PURE__ */ y("div", {
|
|
264
283
|
className: "flex-1 space-y-2",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ v("div", { className: "h-4 w-3/4 bg-bg-sunken rounded animate-vc-shimmer" }), /* @__PURE__ */ v("div", { className: "h-3 w-full bg-bg-sunken rounded animate-vc-shimmer" })]
|
|
266
285
|
})]
|
|
267
|
-
}), /* @__PURE__ */
|
|
286
|
+
}), /* @__PURE__ */ y("div", {
|
|
268
287
|
className: "flex gap-2 mt-4",
|
|
269
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ v("div", { className: "h-5 w-16 bg-bg-sunken rounded-full animate-vc-shimmer" }), /* @__PURE__ */ v("div", { className: "h-5 w-20 bg-bg-sunken rounded-full animate-vc-shimmer" })]
|
|
270
289
|
})]
|
|
271
290
|
}, t))
|
|
272
291
|
}),
|
|
273
|
-
!R && !z && /* @__PURE__ */ x
|
|
292
|
+
!R && !z && /* @__PURE__ */ y(x, {
|
|
274
293
|
className: "overflow-hidden p-0",
|
|
275
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ y("div", {
|
|
276
295
|
className: "flex items-center gap-2 p-5 border-b border-border-seam",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ v(m, {
|
|
278
297
|
size: 18,
|
|
279
298
|
className: "text-primary"
|
|
280
|
-
}), /* @__PURE__ */
|
|
299
|
+
}), /* @__PURE__ */ y("h2", {
|
|
281
300
|
className: "font-semibold text-text-primary",
|
|
282
|
-
children: [O("integrations.providerCatalog.results.title", "Available Providers"), J.length > 0 && /* @__PURE__ */
|
|
301
|
+
children: [O("integrations.providerCatalog.results.title", "Available Providers"), J.length > 0 && /* @__PURE__ */ y("span", {
|
|
283
302
|
className: "ml-2 text-sm font-normal text-text-secondary tabular-nums",
|
|
284
303
|
children: [
|
|
285
304
|
"(",
|
|
@@ -288,29 +307,30 @@ function w({ showCreateProviderButton: w = !1 }) {
|
|
|
288
307
|
]
|
|
289
308
|
})]
|
|
290
309
|
})]
|
|
291
|
-
}), J.length > 0 ? /* @__PURE__ */
|
|
310
|
+
}), J.length > 0 ? /* @__PURE__ */ v("div", {
|
|
292
311
|
className: e("p-5", k === "grid" ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4" : "space-y-3"),
|
|
293
|
-
children: J.map((e, t) => /* @__PURE__ */
|
|
312
|
+
children: J.map((e, t) => /* @__PURE__ */ v("div", {
|
|
294
313
|
style: { animationDelay: `${t * 30}ms` },
|
|
295
|
-
children: /* @__PURE__ */
|
|
314
|
+
children: /* @__PURE__ */ v(ee, {
|
|
296
315
|
provider: e,
|
|
297
316
|
displayMode: k,
|
|
298
|
-
onClick:
|
|
299
|
-
onConnect: U ?
|
|
317
|
+
onClick: de,
|
|
318
|
+
onConnect: U ? fe : void 0,
|
|
319
|
+
simple: D
|
|
300
320
|
})
|
|
301
321
|
}, e.id))
|
|
302
|
-
}) : /* @__PURE__ */
|
|
322
|
+
}) : /* @__PURE__ */ v(S, {
|
|
303
323
|
illustration: Y ? "empty-search" : "empty-data",
|
|
304
324
|
title: Y ? O("integrations.providerCatalog.empty.filteredTitle", "No matching providers") : O("integrations.providerCatalog.empty.title", "No providers available"),
|
|
305
325
|
description: Y ? O("integrations.providerCatalog.empty.filteredDescription", "Try adjusting your search or filters.") : O("integrations.providerCatalog.empty.description", "Integration providers will appear here once configured."),
|
|
306
|
-
action: Y ? /* @__PURE__ */
|
|
326
|
+
action: Y ? /* @__PURE__ */ y(b, {
|
|
307
327
|
variant: "outline",
|
|
308
328
|
onClick: X,
|
|
309
|
-
children: [/* @__PURE__ */
|
|
329
|
+
children: [/* @__PURE__ */ v(g, { size: 14 }), O("integrations.providerCatalog.empty.clearFilters", "Clear Filters")]
|
|
310
330
|
}) : void 0
|
|
311
331
|
})]
|
|
312
332
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ v(te, {
|
|
314
334
|
open: N,
|
|
315
335
|
onClose: I,
|
|
316
336
|
preselectedProviderId: P
|