@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.
Files changed (41) hide show
  1. package/dist/generated/wspace-operations.d.ts +18 -0
  2. package/dist/generated/wspace-operations.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.js +6 -0
  4. package/dist/generated/wspace-operations.js.map +1 -1
  5. package/dist/generated/wspace-types.d.ts +122 -0
  6. package/dist/generated/wspace-types.d.ts.map +1 -1
  7. package/dist/generated/wspace-types.js +8 -0
  8. package/dist/generated/wspace-types.js.map +1 -0
  9. package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -1
  10. package/dist/integrations/components/AddConnectionDialog.js +11 -9
  11. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  12. package/dist/integrations/components/ConnectionCard.d.ts.map +1 -1
  13. package/dist/integrations/components/ConnectionCard.js +71 -48
  14. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  15. package/dist/integrations/components/ConnectionSharing.d.ts +18 -0
  16. package/dist/integrations/components/ConnectionSharing.d.ts.map +1 -0
  17. package/dist/integrations/components/ConnectionSharing.js +33 -0
  18. package/dist/integrations/components/ConnectionSharing.js.map +1 -0
  19. package/dist/integrations/constants/permissions.d.ts +1 -0
  20. package/dist/integrations/constants/permissions.d.ts.map +1 -1
  21. package/dist/integrations/constants/permissions.js +1 -0
  22. package/dist/integrations/constants/permissions.js.map +1 -1
  23. package/dist/integrations/hooks/useConnections.d.ts +3 -0
  24. package/dist/integrations/hooks/useConnections.d.ts.map +1 -1
  25. package/dist/integrations/hooks/useConnections.js.map +1 -1
  26. package/dist/integrations/pages/ConnectionDetail.d.ts.map +1 -1
  27. package/dist/integrations/pages/ConnectionDetail.js +283 -261
  28. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  29. package/dist/integrations/pages/ConnectionsList.d.ts.map +1 -1
  30. package/dist/integrations/pages/ConnectionsList.js +197 -161
  31. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  32. package/dist/integrations/providers/IntegrationsProvider.d.ts.map +1 -1
  33. package/dist/integrations/providers/IntegrationsProvider.js +19 -18
  34. package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
  35. package/dist/integrations/types/index.d.ts +18 -0
  36. package/dist/integrations/types/index.d.ts.map +1 -1
  37. package/dist/integrations/utils/mappers.d.ts +3 -1
  38. package/dist/integrations/utils/mappers.d.ts.map +1 -1
  39. package/dist/integrations/utils/mappers.js +16 -3
  40. package/dist/integrations/utils/mappers.js.map +1 -1
  41. 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 n } from "../constants/permissions.js";
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 { CONNECTION_STATUS_OPTIONS as s, PROVIDER_CATEGORIES as ee } from "../utils/constants.js";
9
- import { useConnections as te } from "../hooks/useConnections.js";
10
- import { ConnectionCard as ne } from "../components/ConnectionCard.js";
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 g, Plus as _, RefreshCw as v, Search as y, X as b } from "lucide-react";
13
- import { usePermissions as x } from "@burdenoff/fe-libs/shared/providers/shell";
14
- import { jsx as S, jsxs as C } from "react/jsx-runtime";
15
- import { Button as w, EmphasisPanel as re, IllustratedEmptyState as ie, PagePurpose as ae } from "@burdenoff/fe-libs/ui";
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
- function T() {
18
- let { basePath: T = "/", navigate: E, onConnectionSelect: D, connectionsDocsUrl: O } = e(), k = t(), { viewMode: A, setViewMode: j, connectionFilter: M, updateConnectionFilter: N, addConnectionDialogOpen: P, openAddConnectionDialog: F, closeAddConnectionDialog: I } = o(), { connections: L, loading: R, answered: z, error: B, refetch: V } = te(), H = !R && !B && !z, { hasPermission: U, isLoading: W } = x(), G = !W && U(n.CONNECTION_CREATE), [K, q] = u(!1), J = c(), Y = `${J}-status`, X = `${J}-category`, Z = l(() => {
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 (M.search) {
21
- let t = M.search.toLowerCase();
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 M.status !== "all" && (e = e.filter((e) => e.status === M.status)), M.providerId && (e = e.filter((e) => e.provider.id === M.providerId)), M.category !== "all" && (e = e.filter((e) => e.provider.category === M.category)), e.sort((e, t) => new Date(t.updatedAt).getTime() - new Date(e.updatedAt).getTime());
25
- }, [L, M]), Q = M.search || M.status !== "all" || M.providerId || M.category !== "all", $ = () => {
26
- N({
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
- }, oe = (e) => {
33
- D?.(e), E?.(i(T, `connections/${e.id}`));
36
+ }), I("all");
37
+ }, de = (e) => {
38
+ se?.(e), E?.(te(s, `connections/${e.id}`));
34
39
  };
35
- return /* @__PURE__ */ C("div", {
40
+ return /* @__PURE__ */ b("div", {
36
41
  className: "space-y-6 p-6 max-w-7xl mx-auto",
37
42
  children: [
38
- /* @__PURE__ */ S("div", {
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__ */ C("div", {
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__ */ C("div", {
48
+ children: [/* @__PURE__ */ b("div", {
44
49
  className: "flex min-w-0 items-center gap-4",
45
50
  children: [
46
- /* @__PURE__ */ S(w, {
51
+ /* @__PURE__ */ y(x, {
47
52
  variant: "ghost",
48
53
  size: "icon",
49
54
  className: "shrink-0",
50
- onClick: () => E?.(T),
51
- "aria-label": k("integrations.connections.actions.backAriaLabel", "Back to overview"),
52
- children: /* @__PURE__ */ S(f, { size: 20 })
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__ */ S("div", {
59
+ /* @__PURE__ */ y("div", {
55
60
  className: "shrink-0 p-2.5 rounded-lg bg-action-primary-bg/10",
56
- children: /* @__PURE__ */ S(h, {
61
+ children: /* @__PURE__ */ y(h, {
57
62
  size: 24,
58
63
  className: "text-primary"
59
64
  })
60
65
  }),
61
- /* @__PURE__ */ C("div", {
66
+ /* @__PURE__ */ b("div", {
62
67
  className: "min-w-0",
63
- children: [/* @__PURE__ */ S("h1", {
68
+ children: [/* @__PURE__ */ y("h1", {
64
69
  className: "text-2xl sm:text-3xl font-bold text-text-primary",
65
- children: k("integrations.connections.title", "Connections")
66
- }), /* @__PURE__ */ S("p", {
70
+ children: D("integrations.connections.title", "Connections")
71
+ }), /* @__PURE__ */ y("p", {
67
72
  className: "text-sm text-text-secondary mt-0.5",
68
- children: k("integrations.connections.subtitle", "Manage your integration connections")
73
+ children: D("integrations.connections.subtitle", "Manage your integration connections")
69
74
  })]
70
75
  })
71
76
  ]
72
- }), G && /* @__PURE__ */ C(w, {
77
+ }), G && /* @__PURE__ */ b(x, {
73
78
  className: "shrink-0",
74
- onClick: () => F(),
75
- children: [/* @__PURE__ */ S(_, { size: 16 }), k("integrations.connections.actions.addConnection", "Add Connection")]
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__ */ S(ae, {
80
- icon: /* @__PURE__ */ S(h, { size: 16 }),
81
- learnMoreHref: O,
82
- learnMoreLabel: k("integrations.connections.learnMore", "Learn more"),
83
- children: k("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
+ /* @__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__ */ C("div", {
90
+ /* @__PURE__ */ b("div", {
86
91
  className: "space-y-4",
87
- children: [/* @__PURE__ */ C("div", {
92
+ children: [/* @__PURE__ */ b("div", {
88
93
  className: "flex flex-col sm:flex-row gap-3",
89
94
  children: [
90
- /* @__PURE__ */ C("div", {
95
+ /* @__PURE__ */ b("div", {
91
96
  className: "flex-1 relative group",
92
97
  "data-tour": "integrations-connections-search",
93
- children: [/* @__PURE__ */ S(y, {
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__ */ S("input", {
101
+ }), /* @__PURE__ */ y("input", {
97
102
  type: "text",
98
- placeholder: k("integrations.connections.search.placeholder", "Search connections..."),
99
- value: M.search,
100
- onChange: (e) => N({ search: e.target.value }),
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": k("integrations.connections.search.ariaLabel", "Search connections")
107
+ "aria-label": D("integrations.connections.search.ariaLabel", "Search connections")
103
108
  })]
104
109
  }),
105
- /* @__PURE__ */ C("button", {
110
+ /* @__PURE__ */ b("button", {
106
111
  type: "button",
107
- onClick: () => q(!K),
108
- className: a("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"),
109
- children: [/* @__PURE__ */ S(p, { size: 16 }), K ? k("integrations.connections.filters.hide", "Hide") : k("integrations.connections.filters.show", "Filter")]
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__ */ C("div", {
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__ */ S("button", {
119
+ children: [/* @__PURE__ */ y("button", {
115
120
  type: "button",
116
- onClick: () => j("grid"),
117
- className: a("p-2.5 transition-colors", A === "grid" ? "bg-action-primary-bg text-action-primary-text" : "hover:bg-accent"),
118
- "aria-label": k("integrations.connections.view.gridAriaLabel", "Grid view"),
119
- children: /* @__PURE__ */ S(m, { size: 16 })
120
- }), /* @__PURE__ */ S("button", {
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: () => j("list"),
123
- className: a("p-2.5 transition-colors", A === "list" ? "bg-action-primary-bg text-action-primary-text" : "hover:bg-accent"),
124
- "aria-label": k("integrations.connections.view.listAriaLabel", "List view"),
125
- children: /* @__PURE__ */ S(g, { size: 16 })
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__ */ C("div", {
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__ */ C("div", {
136
+ children: [/* @__PURE__ */ b("div", {
132
137
  className: "flex items-center justify-between mb-4",
133
- children: [/* @__PURE__ */ C("h3", {
138
+ children: [/* @__PURE__ */ b("h3", {
134
139
  className: "font-semibold text-text-primary flex items-center gap-2",
135
- children: [/* @__PURE__ */ S(p, {
140
+ children: [/* @__PURE__ */ y(p, {
136
141
  size: 16,
137
142
  className: "text-primary"
138
- }), k("integrations.connections.filters.panelTitle", "Filters")]
139
- }), Q && /* @__PURE__ */ C("button", {
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__ */ S(b, { size: 14 }),
149
+ /* @__PURE__ */ y(v, { size: 14 }),
145
150
  " ",
146
- k("integrations.connections.filters.clearAll", "Clear All")
151
+ D("integrations.connections.filters.clearAll", "Clear All")
147
152
  ]
148
153
  })]
149
- }), /* @__PURE__ */ C("div", {
154
+ }), /* @__PURE__ */ b("div", {
150
155
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
151
- children: [/* @__PURE__ */ C("div", {
152
- className: "space-y-2",
153
- children: [/* @__PURE__ */ S("label", {
154
- htmlFor: Y,
155
- className: "block text-sm font-medium text-text-primary",
156
- children: k("integrations.connections.filters.statusLabel", "Status")
157
- }), /* @__PURE__ */ C("select", {
158
- id: Y,
159
- value: M.status,
160
- onChange: (e) => N({ status: e.target.value }),
161
- 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",
162
- children: [/* @__PURE__ */ S("option", {
163
- value: "all",
164
- children: k("integrations.connections.filters.statusAll", "All Statuses")
165
- }), s.map((e) => /* @__PURE__ */ S("option", {
166
- value: e.value,
167
- children: k(`integrations.status.${e.value}`, e.label)
168
- }, e.value))]
169
- })]
170
- }), /* @__PURE__ */ C("div", {
171
- className: "space-y-2",
172
- children: [/* @__PURE__ */ S("label", {
173
- htmlFor: X,
174
- className: "block text-sm font-medium text-text-primary",
175
- children: k("integrations.connections.filters.categoryLabel", "Category")
176
- }), /* @__PURE__ */ C("select", {
177
- id: X,
178
- value: M.category,
179
- onChange: (e) => N({ category: e.target.value }),
180
- 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",
181
- children: [/* @__PURE__ */ S("option", {
182
- value: "all",
183
- children: k("integrations.connections.filters.categoryAll", "All Categories")
184
- }), ee.map((e) => /* @__PURE__ */ S("option", {
185
- value: e.value,
186
- children: k(`integrations.category.${e.value}`, e.label)
187
- }, e.value))]
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__ */ C("div", {
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__ */ S(d, {
231
+ children: [/* @__PURE__ */ y(d, {
196
232
  size: 24,
197
233
  className: "text-status-error-text flex-shrink-0"
198
- }), /* @__PURE__ */ C("div", {
234
+ }), /* @__PURE__ */ b("div", {
199
235
  className: "flex-1",
200
236
  children: [
201
- /* @__PURE__ */ S("h3", {
237
+ /* @__PURE__ */ y("h3", {
202
238
  className: "font-semibold text-status-error-text mb-1",
203
- children: k("integrations.connections.error.title", "Error loading connections")
239
+ children: D("integrations.connections.error.title", "Error loading connections")
204
240
  }),
205
- /* @__PURE__ */ S("p", {
241
+ /* @__PURE__ */ y("p", {
206
242
  className: "text-sm text-status-error-text mb-3",
207
243
  children: B.message
208
244
  }),
209
- /* @__PURE__ */ C("button", {
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__ */ S(v, { size: 14 }),
250
+ /* @__PURE__ */ y(_, { size: 14 }),
215
251
  " ",
216
- k("integrations.common.retry", "Try Again")
252
+ D("integrations.common.retry", "Try Again")
217
253
  ]
218
254
  })
219
255
  ]
220
256
  })]
221
257
  }),
222
- (R || H) && /* @__PURE__ */ S("div", {
223
- className: a(A === "grid" ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4" : "space-y-3"),
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__ */ S("div", {
267
+ ]].map((e, t) => /* @__PURE__ */ y("div", {
232
268
  className: "rounded-xl border border-border-seam bg-bg-surface p-5",
233
- children: /* @__PURE__ */ C("div", {
269
+ children: /* @__PURE__ */ b("div", {
234
270
  className: "flex items-start gap-3",
235
- children: [/* @__PURE__ */ S("div", { className: "size-11 bg-bg-sunken rounded-xl animate-vc-shimmer" }), /* @__PURE__ */ C("div", {
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__ */ S("div", { className: "h-4 w-3/4 bg-bg-sunken rounded animate-vc-shimmer" }), /* @__PURE__ */ S("div", { className: "h-3 w-1/2 bg-bg-sunken rounded animate-vc-shimmer" })]
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__ */ C(re, {
278
+ !R && !B && !H && /* @__PURE__ */ b(S, {
243
279
  className: "overflow-hidden p-0",
244
- children: [/* @__PURE__ */ C("div", {
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__ */ C("div", {
282
+ children: [/* @__PURE__ */ b("div", {
247
283
  className: "flex items-center gap-2",
248
- children: [/* @__PURE__ */ S(h, {
284
+ children: [/* @__PURE__ */ y(h, {
249
285
  size: 18,
250
286
  className: "text-primary"
251
- }), /* @__PURE__ */ C("h2", {
287
+ }), /* @__PURE__ */ b("h2", {
252
288
  className: "font-semibold text-text-primary",
253
- children: [k("integrations.connections.results.title", "Your Connections"), Z.length > 0 && /* @__PURE__ */ C("span", {
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__ */ C(w, {
298
+ }), G && Z.length > 0 && /* @__PURE__ */ b(x, {
263
299
  size: "sm",
264
300
  variant: "outline",
265
- onClick: () => F(),
301
+ onClick: () => N(),
266
302
  children: [
267
- /* @__PURE__ */ S(_, { size: 14 }),
303
+ /* @__PURE__ */ y(g, { size: 14 }),
268
304
  " ",
269
- k("integrations.connections.actions.add", "Add")
305
+ D("integrations.connections.actions.add", "Add")
270
306
  ]
271
307
  })]
272
- }), Z.length > 0 ? /* @__PURE__ */ S("div", {
273
- className: a("p-5", A === "grid" ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4" : "space-y-3"),
274
- children: Z.map((e) => /* @__PURE__ */ S(ne, {
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: A,
277
- onClick: oe
312
+ displayMode: O,
313
+ onClick: de
278
314
  }, e.id))
279
- }) : /* @__PURE__ */ S(ie, {
315
+ }) : /* @__PURE__ */ y(C, {
280
316
  illustration: Q ? "empty-search" : "empty-data",
281
- title: Q ? k("integrations.connections.empty.filteredTitle", "No matching connections") : k("integrations.connections.empty.title", "No connections yet"),
282
- description: Q ? k("integrations.connections.empty.filteredDescription", "Try adjusting your search or filters.") : G ? k("integrations.connections.empty.description", "Add a connection to start integrating with external services.") : k("integrations.connections.empty.readOnlyDescription", "No connections are configured yet. Contact your workspace admin to add one."),
283
- action: Q ? /* @__PURE__ */ C(w, {
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__ */ S(b, { size: 14 }),
323
+ /* @__PURE__ */ y(v, { size: 14 }),
288
324
  " ",
289
- k("integrations.connections.empty.clearFilters", "Clear Filters")
325
+ D("integrations.connections.empty.clearFilters", "Clear Filters")
290
326
  ]
291
- }) : G ? /* @__PURE__ */ C(w, {
292
- onClick: () => F(),
327
+ }) : G ? /* @__PURE__ */ b(x, {
328
+ onClick: () => N(),
293
329
  children: [
294
- /* @__PURE__ */ S(_, { size: 14 }),
330
+ /* @__PURE__ */ y(g, { size: 14 }),
295
331
  " ",
296
- k("integrations.connections.actions.addConnection", "Add Connection")
332
+ D("integrations.connections.actions.addConnection", "Add Connection")
297
333
  ]
298
334
  }) : void 0
299
335
  })]
300
336
  }),
301
- /* @__PURE__ */ S(r, {
302
- open: P,
303
- onClose: I,
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 { T as ConnectionsList };
348
+ export { E as ConnectionsList };
313
349
 
314
350
  //# sourceMappingURL=ConnectionsList.js.map