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