@burdenoff/fe-libs 2026.1005.4 → 2026.1006.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.
Files changed (28) hide show
  1. package/dist/connections/ConnectionDialogPanel.d.ts.map +1 -1
  2. package/dist/connections/ConnectionDialogPanel.js +133 -126
  3. package/dist/connections/ConnectionFormTab.d.ts +2 -1
  4. package/dist/connections/ConnectionFormTab.d.ts.map +1 -1
  5. package/dist/connections/ConnectionFormTab.js +43 -42
  6. package/dist/connections/CredentialStorageSelector.d.ts +3 -1
  7. package/dist/connections/CredentialStorageSelector.d.ts.map +1 -1
  8. package/dist/connections/CredentialStorageSelector.js +73 -64
  9. package/dist/connections/connectionFlow.d.ts +4 -1
  10. package/dist/connections/connectionFlow.d.ts.map +1 -1
  11. package/dist/connections/connectionFlow.js +50 -18
  12. package/dist/connections/types.d.ts +3 -1
  13. package/dist/connections/types.d.ts.map +1 -1
  14. package/dist/shared/assistant/index.d.ts +3 -0
  15. package/dist/shared/assistant/index.d.ts.map +1 -1
  16. package/dist/shared/assistant/speech/createSpeechEngine.d.ts.map +1 -1
  17. package/dist/shared/assistant/speech/createSpeechEngine.js +38 -37
  18. package/dist/shared/assistant/speech/notifyCancellationSpeechEngine.d.ts +4 -0
  19. package/dist/shared/assistant/speech/notifyCancellationSpeechEngine.d.ts.map +1 -0
  20. package/dist/shared/assistant/speech/notifyCancellationSpeechEngine.js +38 -0
  21. package/dist/shared/assistant/ui/WorkflowAssistantPanel.d.ts +14 -0
  22. package/dist/shared/assistant/ui/WorkflowAssistantPanel.d.ts.map +1 -0
  23. package/dist/shared/assistant/ui/WorkflowAssistantPanel.js +425 -0
  24. package/dist/shared/assistant/workflowApi.d.ts +100 -0
  25. package/dist/shared/assistant/workflowApi.d.ts.map +1 -0
  26. package/dist/shared/assistant/workflowApi.js +206 -0
  27. package/dist/shared-assistant.js +202 -199
  28. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file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B,KAAK,IAAI,CAAC;IACjD,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,SAAS,CAAC;CACpE;AAUD,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAoXhE,CAAC"}
@@ -1,85 +1,91 @@
1
1
  import { cn as e } from "../lib/utils.js";
2
2
  import { initialValuesFromSchema as t } from "../credentials/schema.js";
3
- import { resolveFlow as n, resolveMethod as r, resolveSchema as i, selectableMethods as ee } from "./connectionFlow.js";
4
- import { authTypeLabel as a } from "./labels.js";
5
- import { ProviderIcon as o } from "./ProviderIcon.js";
6
- import { ConnectionDetailsTab as te, ConnectionSharingTab as ne } from "./ConnectionDetailsTab.js";
7
- import { EMPTY_STORAGE as re } from "./storage.js";
8
- import { TITLE_ID as ie } from "./frame.js";
9
- import { parseScopeOptions as ae, requestedScopes as oe } from "./scopes.js";
10
- import { ConnectionFormTab as se } from "./ConnectionFormTab.js";
11
- import { DialogHeading as ce } from "./DialogHeading.js";
12
- import { ProviderPickerPanel as le } from "./ProviderPickerPanel.js";
13
- import { useConnectionSubmit as ue } from "./useConnectionSubmit.js";
14
- import { useCallback as s, useEffect as de, useId as fe, useMemo as c, useState as l } from "react";
15
- import { AlertCircle as u, Check as pe, CheckCircle2 as me, Info as he, Link2 as ge, Loader2 as d, Share2 as _e, X as ve } from "lucide-react";
16
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
17
- import * as h from "@radix-ui/react-dialog";
3
+ import { normalizeStorageMode as n, resolveFlow as r, resolveMethod as i, resolveSchema as a, selectableMethods as ee, supportedStorageModes as o } from "./connectionFlow.js";
4
+ import { authTypeLabel as te } from "./labels.js";
5
+ import { ProviderIcon as ne } from "./ProviderIcon.js";
6
+ import { ConnectionDetailsTab as re, ConnectionSharingTab as ie } from "./ConnectionDetailsTab.js";
7
+ import { EMPTY_STORAGE as s } from "./storage.js";
8
+ import { TITLE_ID as ae } from "./frame.js";
9
+ import { parseScopeOptions as oe, requestedScopes as se } from "./scopes.js";
10
+ import { ConnectionFormTab as ce } from "./ConnectionFormTab.js";
11
+ import { DialogHeading as le } from "./DialogHeading.js";
12
+ import { ProviderPickerPanel as ue } from "./ProviderPickerPanel.js";
13
+ import { useConnectionSubmit as de } from "./useConnectionSubmit.js";
14
+ import { useCallback as c, useEffect as fe, useId as pe, useMemo as l, useState as u } from "react";
15
+ import { AlertCircle as me, Check as he, CheckCircle2 as ge, Info as _e, Link2 as ve, Loader2 as d, Share2 as f, X as ye } from "lucide-react";
16
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
17
+ import * as g from "@radix-ui/react-dialog";
18
18
  //#region src/connections/ConnectionDialogPanel.tsx
19
- function g(e, n) {
20
- return t(i(e, r(e, n)));
19
+ function _(e, n) {
20
+ return t(a(e, i(e, n)));
21
21
  }
22
- var _ = ({ api: t, onClose: _, callbackUrl: v, translate: y, providerId: b, providerKey: x, providerSource: ye, requireVault: S, canCreateVault: be, defaultName: C, extraConfig: xe, showSharingTab: Se, pickerTitle: Ce, searchInputRef: we, onConnectionCreated: Te, onError: w, onEvent: T, renderSuccessAction: E }) => {
23
- let D = !!(b || x), [O, Ee] = l(null), [k, De] = l(D), [A, j] = l("connection"), [M, N] = l(C ?? ""), [P, Oe] = l(""), [ke, F] = l(null), [I, L] = l({}), [R, z] = l(null), [B, Ae] = l(re), V = fe(), H = s((e) => `${V}-${e}`, [V]), { submit: je, busy: U, oauthWaiting: Me, errorMessage: Ne, setErrorMessage: W, created: G } = ue({
22
+ var v = ({ api: t, onClose: v, callbackUrl: y, translate: b, providerId: x, providerKey: S, providerSource: be, requireVault: C, canCreateVault: xe, defaultName: w, extraConfig: Se, showSharingTab: Ce, pickerTitle: we, searchInputRef: Te, onConnectionCreated: Ee, onError: De, onEvent: Oe, renderSuccessAction: T }) => {
23
+ let E = !!(x || S), [D, ke] = u(null), [O, k] = u(E), [A, j] = u("connection"), [M, N] = u(w ?? ""), [P, Ae] = u(""), [je, F] = u(null), [I, L] = u({}), [R, z] = u(null), [B, V] = u(s), H = pe(), U = c((e) => `${H}-${e}`, [H]), { submit: Me, busy: W, oauthWaiting: Ne, errorMessage: Pe, setErrorMessage: G, created: K } = de({
24
24
  api: t,
25
- callbackUrl: v,
26
- translate: y,
27
- onConnectionCreated: Te,
28
- onError: w,
29
- onEvent: T
30
- }), K = s((e) => {
31
- Ee(e), N(C ?? `${e.name} Connection`), F(null), L(g(e, null)), z(null), W("");
32
- }, [C, W]), q = s((e) => {
33
- O && (F(e), L(g(O, e)), z(null), W(""));
34
- }, [O, W]);
35
- de(() => {
25
+ callbackUrl: y,
26
+ translate: b,
27
+ onConnectionCreated: Ee,
28
+ onError: De,
29
+ onEvent: Oe
30
+ }), q = c((e) => {
31
+ ke(e), N(w ?? `${e.name} Connection`), F(null), L(_(e, null)), V(n(s, o(e, i(e, null)))), z(null), G("");
32
+ }, [w, G]), Fe = c((e) => {
36
33
  if (!D) return;
34
+ F(e), L(_(D, e));
35
+ let t = o(D, i(D, e));
36
+ V((e) => ({
37
+ ...n(e, t),
38
+ secretId: ""
39
+ })), z(null), G("");
40
+ }, [D, G]);
41
+ fe(() => {
42
+ if (!E) return;
37
43
  let e = !1;
38
44
  return t.getProvider({
39
- id: b ?? void 0,
40
- key: x ?? void 0
45
+ id: x ?? void 0,
46
+ key: S ?? void 0
41
47
  }).then((t) => {
42
- !e && t && K(t);
48
+ !e && t && q(t);
43
49
  }).catch(() => void 0).finally(() => {
44
- e || De(!1);
50
+ e || k(!1);
45
51
  }), () => {
46
52
  e = !0;
47
53
  };
48
54
  }, [
49
- D,
50
- b,
55
+ E,
51
56
  x,
57
+ S,
52
58
  t,
53
- K
59
+ q
54
60
  ]);
55
- let J = O ? r(O, ke) : null, Pe = O ? n(O, J) : "fields", Fe = c(() => O ? i(O, J) : null, [O, J]), Y = c(() => ae(J?.availableScopes ?? O?.availableScopes), [J, O]), Ie = J && J.defaultScopes.length > 0 ? J.defaultScopes : O?.defaultScopes ?? [], Le = () => {
56
- O && je({
57
- provider: O,
61
+ let J = D ? i(D, je) : null, Ie = D ? r(D, J) : "fields", Le = l(() => D ? a(D, J) : null, [D, J]), Y = l(() => oe(J?.availableScopes ?? D?.availableScopes), [J, D]), Re = J && J.defaultScopes.length > 0 ? J.defaultScopes : D?.defaultScopes ?? [], ze = () => {
62
+ D && Me({
63
+ provider: D,
58
64
  method: J,
59
65
  name: M,
60
66
  description: P,
61
67
  values: I,
62
68
  storage: B,
63
- requireVault: S,
64
- extraConfig: xe
65
- }, oe(R, Y));
69
+ requireVault: C,
70
+ extraConfig: Se
71
+ }, se(R, Y));
66
72
  }, X = [
67
73
  {
68
74
  key: "connection",
69
- label: y("integrations.addConnection.tabs.connection", "Connection"),
70
- icon: ge
75
+ label: b("integrations.addConnection.tabs.connection", "Connection"),
76
+ icon: ve
71
77
  },
72
- ...Se ? [{
78
+ ...Ce ? [{
73
79
  key: "sharing",
74
- label: y("integrations.addConnection.tabs.sharing", "Sharing"),
75
- icon: _e
80
+ label: b("integrations.addConnection.tabs.sharing", "Sharing"),
81
+ icon: f
76
82
  }] : [],
77
83
  {
78
84
  key: "details",
79
- label: y("integrations.addConnection.tabs.details", "Details"),
80
- icon: he
85
+ label: b("integrations.addConnection.tabs.details", "Details"),
86
+ icon: _e
81
87
  }
82
- ], Z = (e) => H(`tab-${e}`), Q = H("tabpanel"), Re = (e) => {
88
+ ], Z = (e) => U(`tab-${e}`), Q = U("tabpanel"), Be = (e) => {
83
89
  let t = X.map((e) => e.key), n = t.indexOf(A), r = {
84
90
  ArrowRight: n + 1,
85
91
  ArrowDown: n + 1,
@@ -91,98 +97,98 @@ var _ = ({ api: t, onClose: _, callbackUrl: v, translate: y, providerId: b, prov
91
97
  if (r === void 0) return;
92
98
  let i = t[(r + t.length) % t.length];
93
99
  e.preventDefault(), j(i), document.getElementById(Z(i))?.focus();
94
- }, $ = !!O && !G;
95
- return /* @__PURE__ */ m(f, { children: [
96
- /* @__PURE__ */ m("div", {
100
+ }, $ = !!D && !K;
101
+ return /* @__PURE__ */ h(p, { children: [
102
+ /* @__PURE__ */ h("div", {
97
103
  className: "flex flex-shrink-0 items-center justify-between border-b border-border-subtle px-5 py-4",
98
- children: [/* @__PURE__ */ m("div", {
104
+ children: [/* @__PURE__ */ h("div", {
99
105
  className: "flex min-w-0 items-center gap-3",
100
- children: [O && /* @__PURE__ */ p(o, {
101
- provider: O,
106
+ children: [D && /* @__PURE__ */ m(ne, {
107
+ provider: D,
102
108
  size: 32
103
- }), /* @__PURE__ */ m("div", {
109
+ }), /* @__PURE__ */ h("div", {
104
110
  className: "min-w-0",
105
- children: [/* @__PURE__ */ p(ce, {
106
- id: ie,
107
- className: e("text-base font-semibold text-text-primary", O && "truncate"),
108
- children: O ? y("integrations.addConnection.dialog.accountTitle", "{{provider}} account", { provider: O.name }) : Ce ?? y("integrations.addConnection.dialog.title", "Add new credential")
109
- }), /* @__PURE__ */ p(h.Description, {
111
+ children: [/* @__PURE__ */ m(le, {
112
+ id: ae,
113
+ className: e("text-base font-semibold text-text-primary", D && "truncate"),
114
+ children: D ? b("integrations.addConnection.dialog.accountTitle", "{{provider}} account", { provider: D.name }) : we ?? b("integrations.addConnection.dialog.title", "Add new credential")
115
+ }), /* @__PURE__ */ m(g.Description, {
110
116
  className: "text-xs text-text-secondary",
111
- children: O ? a(J?.authType ?? O.authType, y) : y("integrations.addConnection.dialog.subtitle", "Select an app or service to connect to")
117
+ children: D ? te(J?.authType ?? D.authType, b) : b("integrations.addConnection.dialog.subtitle", "Select an app or service to connect to")
112
118
  })]
113
119
  })]
114
- }), /* @__PURE__ */ p(h.Close, {
120
+ }), /* @__PURE__ */ m(g.Close, {
115
121
  asChild: !0,
116
- children: /* @__PURE__ */ p("button", {
122
+ children: /* @__PURE__ */ m("button", {
117
123
  type: "button",
118
124
  className: "flex-shrink-0 rounded-md p-1.5 text-text-secondary transition-colors hover:bg-accent hover:text-text-primary",
119
- "aria-label": y("integrations.addConnection.actions.close", "Close dialog"),
120
- children: /* @__PURE__ */ p(ve, { size: 20 })
125
+ "aria-label": b("integrations.addConnection.actions.close", "Close dialog"),
126
+ children: /* @__PURE__ */ m(ye, { size: 20 })
121
127
  })
122
128
  })]
123
129
  }),
124
- /* @__PURE__ */ m("div", {
130
+ /* @__PURE__ */ h("div", {
125
131
  "data-testid": "add-connection-body",
126
132
  className: "flex min-h-0 flex-1 flex-col overflow-hidden sm:flex-row",
127
133
  children: [
128
- !D && !O && /* @__PURE__ */ p(le, {
134
+ !E && !D && /* @__PURE__ */ m(ue, {
129
135
  api: t,
130
- source: ye,
131
- translate: y,
132
- searchInputRef: we,
133
- onSelect: K
136
+ source: be,
137
+ translate: b,
138
+ searchInputRef: Te,
139
+ onSelect: q
134
140
  }),
135
- D && !O && k && /* @__PURE__ */ p("div", {
141
+ E && !D && O && /* @__PURE__ */ m("div", {
136
142
  className: "flex flex-1 items-center justify-center p-8",
137
- children: /* @__PURE__ */ p(d, {
143
+ children: /* @__PURE__ */ m(d, {
138
144
  size: 32,
139
145
  className: "animate-spin text-text-secondary"
140
146
  })
141
147
  }),
142
- D && !O && !k && /* @__PURE__ */ m("div", {
148
+ E && !D && !O && /* @__PURE__ */ h("div", {
143
149
  className: "flex flex-1 flex-col items-center justify-center p-8 text-center",
144
- children: [/* @__PURE__ */ p(u, {
150
+ children: [/* @__PURE__ */ m(me, {
145
151
  size: 32,
146
152
  className: "mb-3 text-text-secondary"
147
- }), /* @__PURE__ */ p("p", {
153
+ }), /* @__PURE__ */ m("p", {
148
154
  className: "text-sm text-text-secondary",
149
- children: y("integrations.addConnection.providerUnavailable", "This provider isn't available.")
155
+ children: b("integrations.addConnection.providerUnavailable", "This provider isn't available.")
150
156
  })]
151
157
  }),
152
- O && G && /* @__PURE__ */ m("div", {
158
+ D && K && /* @__PURE__ */ h("div", {
153
159
  className: "flex flex-1 flex-col items-center justify-center p-8 text-center",
154
160
  children: [
155
- /* @__PURE__ */ p("div", {
161
+ /* @__PURE__ */ m("div", {
156
162
  className: "mb-4 rounded-full bg-status-success-bg-subtle p-3",
157
- children: /* @__PURE__ */ p(me, {
163
+ children: /* @__PURE__ */ m(ge, {
158
164
  size: 48,
159
165
  className: "text-status-success-text"
160
166
  })
161
167
  }),
162
- /* @__PURE__ */ p("h3", {
168
+ /* @__PURE__ */ m("h3", {
163
169
  className: "mb-1 text-lg font-semibold text-text-primary",
164
- children: y("integrations.addConnection.success.title", "Connection Created!")
170
+ children: b("integrations.addConnection.success.title", "Connection Created!")
165
171
  }),
166
- /* @__PURE__ */ p("p", {
172
+ /* @__PURE__ */ m("p", {
167
173
  className: "mb-6 text-sm text-text-secondary",
168
- children: y("integrations.addConnection.success.description", "Your {{provider}} connection has been set up successfully.", { provider: O.name })
174
+ children: b("integrations.addConnection.success.description", "Your {{provider}} connection has been set up successfully.", { provider: D.name })
169
175
  }),
170
- E ? E(G) : /* @__PURE__ */ p("button", {
176
+ T ? T(K) : /* @__PURE__ */ m("button", {
171
177
  type: "button",
172
- onClick: _,
178
+ onClick: v,
173
179
  className: "rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg/90",
174
- children: y("integrations.addConnection.actions.done", "Done")
180
+ children: b("integrations.addConnection.actions.done", "Done")
175
181
  })
176
182
  ]
177
183
  }),
178
- O && $ && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
184
+ D && $ && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
179
185
  role: "tablist",
180
186
  "aria-labelledby": "add-connection-dialog-title",
181
187
  "data-testid": "add-connection-tabs",
182
188
  className: "flex flex-shrink-0 overflow-x-auto border-b border-border-subtle sm:block sm:w-40 sm:overflow-x-visible sm:border-b-0 sm:border-r sm:py-3",
183
189
  children: X.map((t) => {
184
190
  let n = t.icon, r = A === t.key;
185
- return /* @__PURE__ */ m("button", {
191
+ return /* @__PURE__ */ h("button", {
186
192
  id: Z(t.key),
187
193
  type: "button",
188
194
  role: "tab",
@@ -190,83 +196,84 @@ var _ = ({ api: t, onClose: _, callbackUrl: v, translate: y, providerId: b, prov
190
196
  "aria-controls": Q,
191
197
  tabIndex: r ? 0 : -1,
192
198
  onClick: () => j(t.key),
193
- onKeyDown: Re,
199
+ onKeyDown: Be,
194
200
  className: e("flex min-w-max items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors sm:w-full sm:border-b-0 sm:border-l-2", r ? "border-primary bg-accent/50 text-text-primary" : "border-transparent text-text-secondary hover:bg-accent/30 hover:text-text-primary"),
195
- children: [/* @__PURE__ */ p(n, {
201
+ children: [/* @__PURE__ */ m(n, {
196
202
  size: 16,
197
203
  "aria-hidden": "true"
198
204
  }), t.label]
199
205
  }, t.key);
200
206
  })
201
- }), /* @__PURE__ */ m("div", {
207
+ }), /* @__PURE__ */ h("div", {
202
208
  id: Q,
203
209
  role: "tabpanel",
204
210
  "aria-labelledby": Z(A),
205
211
  "data-testid": "add-connection-pane",
206
212
  className: "min-h-0 min-w-0 flex-1 overflow-y-auto p-5",
207
213
  children: [
208
- A === "connection" && /* @__PURE__ */ p(se, {
214
+ A === "connection" && /* @__PURE__ */ m(ce, {
209
215
  api: t,
210
- provider: O,
211
- methods: ee(O),
216
+ provider: D,
217
+ methods: ee(D),
212
218
  method: J,
213
- flow: Pe,
214
- schema: Fe,
219
+ flow: Ie,
220
+ schema: Le,
215
221
  name: M,
216
222
  onNameChange: N,
217
223
  description: P,
218
- onDescriptionChange: Oe,
224
+ onDescriptionChange: Ae,
219
225
  values: I,
220
226
  setValues: L,
221
- onMethodChange: q,
227
+ onMethodChange: Fe,
222
228
  storage: B,
223
- setStorage: Ae,
229
+ setStorage: V,
230
+ supportedStorageModes: o(D, J),
224
231
  scopeOptions: Y,
225
- defaultScopes: Ie,
232
+ defaultScopes: Re,
226
233
  scopeSelection: R,
227
234
  setScopeSelection: z,
228
- callbackUrl: v,
229
- requireVault: S,
230
- canCreateVault: be,
231
- errorMessage: Ne,
232
- busy: U,
233
- translate: y,
234
- fieldId: H
235
+ callbackUrl: y,
236
+ requireVault: C,
237
+ canCreateVault: xe,
238
+ errorMessage: Pe,
239
+ busy: W,
240
+ translate: b,
241
+ fieldId: U
235
242
  }),
236
- A === "sharing" && /* @__PURE__ */ p(ne, { translate: y }),
237
- A === "details" && /* @__PURE__ */ p(te, {
238
- provider: O,
239
- translate: y
243
+ A === "sharing" && /* @__PURE__ */ m(ie, { translate: b }),
244
+ A === "details" && /* @__PURE__ */ m(re, {
245
+ provider: D,
246
+ translate: b
240
247
  })
241
248
  ]
242
249
  })] })
243
250
  ]
244
251
  }),
245
- O && $ && /* @__PURE__ */ m("div", {
252
+ D && $ && /* @__PURE__ */ h("div", {
246
253
  "data-testid": "add-connection-footer",
247
254
  className: "flex flex-shrink-0 items-center justify-end gap-2 border-t border-border-subtle px-5 py-3",
248
- children: [/* @__PURE__ */ p("button", {
255
+ children: [/* @__PURE__ */ m("button", {
249
256
  type: "button",
250
- onClick: _,
257
+ onClick: v,
251
258
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-accent",
252
- children: y("integrations.addConnection.actions.cancel", "Cancel")
253
- }), /* @__PURE__ */ m("button", {
259
+ children: b("integrations.addConnection.actions.cancel", "Cancel")
260
+ }), /* @__PURE__ */ h("button", {
254
261
  type: "button",
255
262
  "data-testid": "add-connection-submit",
256
- onClick: Le,
257
- disabled: U || !M.trim(),
263
+ onClick: ze,
264
+ disabled: W || !M.trim(),
258
265
  className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg/90 disabled:opacity-50",
259
- children: [U ? /* @__PURE__ */ p(d, {
266
+ children: [W ? /* @__PURE__ */ m(d, {
260
267
  size: 14,
261
268
  className: "animate-spin",
262
269
  "aria-hidden": "true"
263
- }) : /* @__PURE__ */ p(pe, {
270
+ }) : /* @__PURE__ */ m(he, {
264
271
  size: 14,
265
272
  "aria-hidden": "true"
266
- }), Me ? y("integrations.addConnection.actions.waiting", "Waiting...") : y("integrations.addConnection.actions.connect", "Connect")]
273
+ }), Ne ? b("integrations.addConnection.actions.waiting", "Waiting...") : b("integrations.addConnection.actions.connect", "Connect")]
267
274
  })]
268
275
  })
269
276
  ] });
270
277
  };
271
278
  //#endregion
272
- export { _ as ConnectionDialogPanel };
279
+ export { v as ConnectionDialogPanel };
@@ -3,7 +3,7 @@ import { Translator } from '../credentials/translate';
3
3
  import { AuthMethodFlow, FormSchema } from '../credentials/types';
4
4
  import { ConnectionsApi } from './api';
5
5
  import { ScopeOption, ScopeSelection } from './scopes';
6
- import { ConnectionAuthMethod, ConnectionProvider, CredentialStorageState } from './types';
6
+ import { ConnectionAuthMethod, ConnectionProvider, CredentialStorageMode, CredentialStorageState } from './types';
7
7
  export interface ConnectionFormTabProps {
8
8
  api: ConnectionsApi;
9
9
  provider: ConnectionProvider;
@@ -20,6 +20,7 @@ export interface ConnectionFormTabProps {
20
20
  onMethodChange: (key: string) => void;
21
21
  storage: CredentialStorageState;
22
22
  setStorage: (update: (current: CredentialStorageState) => CredentialStorageState) => void;
23
+ supportedStorageModes: readonly CredentialStorageMode[];
23
24
  scopeOptions: ScopeOption[];
24
25
  defaultScopes: string[];
25
26
  scopeSelection: ScopeSelection;
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectionFormTab.d.ts","sourceRoot":"","sources":["../../src/connections/ConnectionFormTab.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC5D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