@burdenoff/fe-libs 2026.1118.13 → 2026.1119.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/chrome/globalSearch/AdvancedFiltersPanel.js +128 -127
- package/dist/chrome/notificationCenter/NotificationFilters.js +45 -44
- package/dist/connections/CredentialStorageSelector.js +135 -134
- package/dist/connections/SharePanels.js +70 -69
- package/dist/credentials/AuthMethodSelector.js +33 -32
- package/dist/credentials/SchemaForm.js +96 -95
- package/dist/shared/assistant/avatar/live/LiveAvatarSettingsFields.js +74 -73
- package/dist/shared/assistant/ui/AssistantLanguageMenu.d.ts +2 -0
- package/dist/shared/assistant/ui/AssistantLanguageMenu.js +41 -40
- package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.js +26 -25
- package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.js +22 -21
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.d.ts +2 -1
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.js +17 -16
- package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.js +22 -21
- package/dist/shared/pages/searchPage/FiltersPanel.js +129 -128
- package/dist/shared/pages/searchPage/SearchToolbar.js +24 -23
- package/dist/shared/providers/AppShellProvider.d.ts +8 -0
- package/dist/shared/providers/AppShellProvider.js +199 -193
- package/dist/shared/providers/shell/ThemeProvider.d.ts +6 -1
- package/dist/shared/providers/shell/ThemeProvider.js +65 -62
- package/dist/shared/providers/shell/themedNativeControls.d.ts +25 -0
- package/dist/shared/providers/shell/themedNativeControls.js +13 -0
- package/dist/sharing/ShareDialog.js +33 -32
- package/dist/storage/StorageFolderPicker.js +50 -49
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/themed-select-context.d.ts +9 -0
- package/dist/ui/themed-select-context.js +15 -0
- package/dist/ui/themed-select-options.d.ts +42 -0
- package/dist/ui/themed-select-options.js +88 -0
- package/dist/ui/themed-select.d.ts +7 -0
- package/dist/ui/themed-select.js +234 -0
- package/dist/ui.js +31 -29
- package/package.json +1 -1
- package/src/shared/tokens/tokens.css +100 -0
|
@@ -1,146 +1,147 @@
|
|
|
1
1
|
import { compatibleSecrets as e, withDefaultVault as t } from "./storage.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ThemedSelect as n } from "../ui/themed-select.js";
|
|
3
|
+
import { useCallback as r, useEffect as i, useEffectEvent as a, useId as o, useState as s } from "react";
|
|
4
|
+
import { AlertCircle as c, Database as l, FolderKey as u, KeyRound as d, Loader2 as f, Plus as p, X as m } from "lucide-react";
|
|
5
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
5
6
|
// src/connections/CredentialStorageSelector.tsx
|
|
6
|
-
var
|
|
7
|
-
let [
|
|
8
|
-
|
|
7
|
+
var v = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-60", y = `${v} scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary`, b = ({ api: c, value: m, onChange: b, supportedStorageModes: S = ["managed", "existing"], authType: C, requireVault: w, canCreateVault: T, translate: E, disabled: D, autoSelectVault: O = !1, onVaultsLoaded: k }) => {
|
|
8
|
+
let [A, j] = s([]), [M, N] = s(!0), [P, F] = s([]), [I, L] = s(!1), [R, z] = s(!1), B = o(), V = S.includes("managed"), H = S.includes("existing"), U = w || !V, W = r(async () => {
|
|
9
|
+
N(!0);
|
|
9
10
|
try {
|
|
10
|
-
let e = await
|
|
11
|
-
return
|
|
11
|
+
let e = await c.listVaults();
|
|
12
|
+
return j(e), e;
|
|
12
13
|
} catch {
|
|
13
|
-
return
|
|
14
|
+
return j([]), [];
|
|
14
15
|
} finally {
|
|
15
|
-
|
|
16
|
+
N(!1);
|
|
16
17
|
}
|
|
17
|
-
}, [
|
|
18
|
-
|
|
18
|
+
}, [c]), G = a((e) => {
|
|
19
|
+
k?.(e.length), O && U && b((n) => t(n, e));
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
+
i(() => {
|
|
21
22
|
let e = !1;
|
|
22
|
-
return
|
|
23
|
-
e ||
|
|
23
|
+
return W().then((t) => {
|
|
24
|
+
e || G(t);
|
|
24
25
|
}), () => {
|
|
25
26
|
e = !0;
|
|
26
27
|
};
|
|
27
|
-
}, [
|
|
28
|
-
if (!
|
|
29
|
-
|
|
28
|
+
}, [W]), i(() => {
|
|
29
|
+
if (!H || m.mode !== "existing" || !m.vaultId) {
|
|
30
|
+
F([]), L(!1);
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
32
33
|
let t = !1;
|
|
33
|
-
return
|
|
34
|
-
t ||
|
|
34
|
+
return L(!0), c.listVaultSecrets(m.vaultId).then((n) => {
|
|
35
|
+
t || F(e(n, C));
|
|
35
36
|
}).catch(() => {
|
|
36
|
-
t ||
|
|
37
|
+
t || F([]);
|
|
37
38
|
}).finally(() => {
|
|
38
|
-
t ||
|
|
39
|
+
t || L(!1);
|
|
39
40
|
}), () => {
|
|
40
41
|
t = !0;
|
|
41
42
|
};
|
|
42
43
|
}, [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
c,
|
|
45
|
+
C,
|
|
46
|
+
H,
|
|
47
|
+
m.mode,
|
|
48
|
+
m.vaultId
|
|
48
49
|
]);
|
|
49
|
-
let
|
|
50
|
-
await
|
|
50
|
+
let K = async (e) => {
|
|
51
|
+
await W(), b((t) => ({
|
|
51
52
|
...t,
|
|
52
53
|
vaultId: e,
|
|
53
54
|
secretId: ""
|
|
54
|
-
})),
|
|
55
|
-
},
|
|
56
|
-
if (!
|
|
55
|
+
})), z(!1);
|
|
56
|
+
}, q = `${B}-vault`, J = `${B}-managed-name`, Y = `${B}-existing-secret`, X = U ? E("integrations.addConnection.credentialStorage.selectVault", "Select a vault") : E("integrations.addConnection.credentialStorage.noVault", "No vault — stored encrypted by the integrations service");
|
|
57
|
+
if (!V && !H) return /* @__PURE__ */ g("div", {
|
|
57
58
|
role: "alert",
|
|
58
59
|
className: "rounded-md border border-border-default bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
59
|
-
children:
|
|
60
|
+
children: E("integrations.addConnection.credentialStorage.noCompatibleMode", "This authentication method has no compatible credential storage mode. Ask an administrator to correct its configuration.")
|
|
60
61
|
});
|
|
61
|
-
let
|
|
62
|
-
let i = t, a =
|
|
63
|
-
return /* @__PURE__ */
|
|
62
|
+
let Z = (e, t, n, r) => {
|
|
63
|
+
let i = t, a = m.mode === e;
|
|
64
|
+
return /* @__PURE__ */ _("button", {
|
|
64
65
|
type: "button",
|
|
65
|
-
disabled:
|
|
66
|
+
disabled: D,
|
|
66
67
|
"aria-pressed": a,
|
|
67
68
|
onClick: () => {
|
|
68
|
-
|
|
69
|
+
S.includes(e) && b((t) => ({
|
|
69
70
|
...t,
|
|
70
71
|
mode: e,
|
|
71
72
|
...e === "managed" ? { secretId: "" } : {}
|
|
72
73
|
}));
|
|
73
74
|
},
|
|
74
75
|
className: `rounded-xl border px-4 py-3 text-start transition-colors disabled:opacity-60 ${a ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:border-primary/40 hover:bg-accent/30"}`,
|
|
75
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ _("span", {
|
|
76
77
|
className: "flex items-center gap-2 text-sm font-medium text-text-primary",
|
|
77
|
-
children: [/* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ g(i, {
|
|
78
79
|
size: 16,
|
|
79
80
|
className: "text-primary"
|
|
80
81
|
}), n]
|
|
81
|
-
}), /* @__PURE__ */
|
|
82
|
+
}), /* @__PURE__ */ g("span", {
|
|
82
83
|
className: "mt-1 block text-xs text-text-secondary",
|
|
83
84
|
children: r
|
|
84
85
|
})]
|
|
85
86
|
});
|
|
86
87
|
};
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ _("div", {
|
|
88
89
|
className: "space-y-4 rounded-xl border border-border-subtle/50 bg-bg-surface p-4",
|
|
89
90
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("h3", {
|
|
91
92
|
className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
92
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ g(l, {
|
|
93
94
|
size: 16,
|
|
94
95
|
className: "text-primary"
|
|
95
|
-
}),
|
|
96
|
-
}), /* @__PURE__ */
|
|
96
|
+
}), E("integrations.addConnection.credentialStorage.title", "Credential Storage")]
|
|
97
|
+
}), /* @__PURE__ */ g("p", {
|
|
97
98
|
className: "mt-1 text-xs text-text-secondary",
|
|
98
|
-
children:
|
|
99
|
+
children: V && H ? U ? E("integrations.addConnection.credentialStorage.description", "Connections use vault-managed secrets by default. You can also reuse an existing compatible secret.") : E("integrations.addConnection.credentialStorage.optionalDescription", "Optional. Without a vault, the integrations service stores the credential encrypted. Pick a vault to manage it yourself, or reuse an existing secret.") : V ? U ? E("integrations.addConnection.credentialStorage.managedOnlyDescription", "Choose a vault to create a dedicated secret for this connection.") : E("integrations.addConnection.credentialStorage.managedOnlyOptionalDescription", "Without a vault, the integrations service stores the credential encrypted. You can choose a vault for a dedicated secret.") : E("integrations.addConnection.credentialStorage.existingOnlyDescription", "Choose a vault and an existing compatible secret.")
|
|
99
100
|
})] }),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
className: `grid grid-cols-1 gap-3 ${
|
|
102
|
-
children: [
|
|
101
|
+
/* @__PURE__ */ _("div", {
|
|
102
|
+
className: `grid grid-cols-1 gap-3 ${V && H ? "sm:grid-cols-2" : ""}`,
|
|
103
|
+
children: [V && Z("managed", u, E("integrations.addConnection.credentialStorage.dedicatedSecret", "Dedicated secret"), E("integrations.addConnection.credentialStorage.dedicatedSecretDescription", "Create and own a vault secret for this connection.")), H && Z("existing", d, E("integrations.addConnection.credentialStorage.existingSecret", "Existing secret"), E("integrations.addConnection.credentialStorage.existingSecretDescription", "Reference an already stored secret from the vault."))]
|
|
103
104
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ _("div", {
|
|
105
106
|
className: "space-y-2",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ _("div", {
|
|
107
108
|
className: "flex items-center justify-between gap-2",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
109
|
-
htmlFor:
|
|
109
|
+
children: [/* @__PURE__ */ g("label", {
|
|
110
|
+
htmlFor: q,
|
|
110
111
|
className: "block text-xs font-semibold uppercase tracking-wide text-text-primary",
|
|
111
|
-
children:
|
|
112
|
-
}), !
|
|
112
|
+
children: E("integrations.addConnection.credentialStorage.vaultLabel", "Vault")
|
|
113
|
+
}), !R && T && /* @__PURE__ */ _("button", {
|
|
113
114
|
type: "button",
|
|
114
|
-
disabled:
|
|
115
|
-
onClick: () =>
|
|
115
|
+
disabled: D,
|
|
116
|
+
onClick: () => z(!0),
|
|
116
117
|
className: "inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",
|
|
117
118
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ g(p, { size: 13 }),
|
|
119
120
|
" ",
|
|
120
|
-
|
|
121
|
+
E("integrations.addConnection.credentialStorage.newVault", "New vault")
|
|
121
122
|
]
|
|
122
123
|
})]
|
|
123
|
-
}),
|
|
124
|
-
api:
|
|
125
|
-
translate:
|
|
126
|
-
onCreated: (e) => void
|
|
127
|
-
onCancel: () =>
|
|
128
|
-
}) : /* @__PURE__ */
|
|
124
|
+
}), R ? /* @__PURE__ */ g(x, {
|
|
125
|
+
api: c,
|
|
126
|
+
translate: E,
|
|
127
|
+
onCreated: (e) => void K(e),
|
|
128
|
+
onCancel: () => z(!1)
|
|
129
|
+
}) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
|
|
129
130
|
className: "relative",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
131
|
-
id:
|
|
132
|
-
value:
|
|
133
|
-
disabled:
|
|
134
|
-
onChange: (e) =>
|
|
131
|
+
children: [/* @__PURE__ */ _(n, {
|
|
132
|
+
id: q,
|
|
133
|
+
value: m.vaultId,
|
|
134
|
+
disabled: D,
|
|
135
|
+
onChange: (e) => b((t) => ({
|
|
135
136
|
...t,
|
|
136
137
|
vaultId: e.target.value,
|
|
137
138
|
secretId: ""
|
|
138
139
|
})),
|
|
139
|
-
className:
|
|
140
|
-
children: [/* @__PURE__ */
|
|
140
|
+
className: y,
|
|
141
|
+
children: [/* @__PURE__ */ g("option", {
|
|
141
142
|
value: "",
|
|
142
|
-
children:
|
|
143
|
-
}),
|
|
143
|
+
children: X
|
|
144
|
+
}), A.map((e) => /* @__PURE__ */ _("option", {
|
|
144
145
|
value: e.id,
|
|
145
146
|
children: [
|
|
146
147
|
e.name,
|
|
@@ -149,75 +150,75 @@ var _ = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5
|
|
|
149
150
|
")"
|
|
150
151
|
]
|
|
151
152
|
}, e.id))]
|
|
152
|
-
}),
|
|
153
|
+
}), M && /* @__PURE__ */ g(f, {
|
|
153
154
|
size: 16,
|
|
154
155
|
className: "absolute end-3 top-3 animate-spin text-text-secondary"
|
|
155
156
|
})]
|
|
156
|
-
}),
|
|
157
|
+
}), U && !M && A.length === 0 && (T ? /* @__PURE__ */ _("p", {
|
|
157
158
|
className: "text-xs text-text-secondary",
|
|
158
159
|
children: [
|
|
159
|
-
|
|
160
|
+
E("integrations.addConnection.credentialStorage.noVaults.canCreate", "No vaults yet. Create one to store this connection's credentials."),
|
|
160
161
|
" ",
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ g("button", {
|
|
162
163
|
type: "button",
|
|
163
|
-
onClick: () =>
|
|
164
|
+
onClick: () => z(!0),
|
|
164
165
|
className: "font-medium text-primary hover:underline",
|
|
165
|
-
children:
|
|
166
|
+
children: E("integrations.addConnection.credentialStorage.noVaults.createOne", "Create one")
|
|
166
167
|
})
|
|
167
168
|
]
|
|
168
|
-
}) : /* @__PURE__ */
|
|
169
|
+
}) : /* @__PURE__ */ g("p", {
|
|
169
170
|
className: "text-xs text-text-secondary",
|
|
170
|
-
children:
|
|
171
|
+
children: E("integrations.addConnection.credentialStorage.noVaults.readOnly", "No vaults yet. Ask an administrator to create one — a connection needs a vault to store its credentials.")
|
|
171
172
|
}))] })]
|
|
172
173
|
}),
|
|
173
|
-
|
|
174
|
+
m.mode === "managed" || !H ? V && m.vaultId ? /* @__PURE__ */ _("div", {
|
|
174
175
|
className: "space-y-2",
|
|
175
176
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
htmlFor:
|
|
177
|
+
/* @__PURE__ */ g("label", {
|
|
178
|
+
htmlFor: J,
|
|
178
179
|
className: "block text-xs font-semibold uppercase tracking-wide text-text-primary",
|
|
179
|
-
children:
|
|
180
|
+
children: E("integrations.addConnection.credentialStorage.managedSecretName", "Managed secret name")
|
|
180
181
|
}),
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
id:
|
|
182
|
+
/* @__PURE__ */ g("input", {
|
|
183
|
+
id: J,
|
|
183
184
|
type: "text",
|
|
184
|
-
value:
|
|
185
|
-
disabled:
|
|
186
|
-
onChange: (e) =>
|
|
185
|
+
value: m.managedSecretName,
|
|
186
|
+
disabled: D,
|
|
187
|
+
onChange: (e) => b((t) => ({
|
|
187
188
|
...t,
|
|
188
189
|
managedSecretName: e.target.value
|
|
189
190
|
})),
|
|
190
|
-
placeholder:
|
|
191
|
-
className:
|
|
191
|
+
placeholder: E("integrations.addConnection.credentialStorage.managedSecretPlaceholder", "Optional custom vault secret name"),
|
|
192
|
+
className: v
|
|
192
193
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ g("p", {
|
|
194
195
|
className: "text-xs text-text-secondary",
|
|
195
|
-
children:
|
|
196
|
+
children: E("integrations.addConnection.credentialStorage.managedSecretHint", "Leave empty to auto-generate a secret name from the connection and provider.")
|
|
196
197
|
})
|
|
197
198
|
]
|
|
198
|
-
}) : null : /* @__PURE__ */
|
|
199
|
+
}) : null : /* @__PURE__ */ _("div", {
|
|
199
200
|
className: "space-y-2",
|
|
200
201
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
htmlFor:
|
|
202
|
+
/* @__PURE__ */ g("label", {
|
|
203
|
+
htmlFor: Y,
|
|
203
204
|
className: "block text-xs font-semibold uppercase tracking-wide text-text-primary",
|
|
204
|
-
children:
|
|
205
|
+
children: E("integrations.addConnection.credentialStorage.existingSecretLabel", "Existing secret")
|
|
205
206
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ _("div", {
|
|
207
208
|
className: "relative",
|
|
208
|
-
children: [/* @__PURE__ */
|
|
209
|
-
id:
|
|
210
|
-
value:
|
|
211
|
-
onChange: (e) =>
|
|
209
|
+
children: [/* @__PURE__ */ _(n, {
|
|
210
|
+
id: Y,
|
|
211
|
+
value: m.secretId,
|
|
212
|
+
onChange: (e) => b((t) => ({
|
|
212
213
|
...t,
|
|
213
214
|
secretId: e.target.value
|
|
214
215
|
})),
|
|
215
|
-
disabled:
|
|
216
|
-
className:
|
|
217
|
-
children: [/* @__PURE__ */
|
|
216
|
+
disabled: D || !m.vaultId,
|
|
217
|
+
className: y,
|
|
218
|
+
children: [/* @__PURE__ */ g("option", {
|
|
218
219
|
value: "",
|
|
219
|
-
children:
|
|
220
|
-
}),
|
|
220
|
+
children: E("integrations.addConnection.credentialStorage.selectExistingSecret", "Select an existing secret")
|
|
221
|
+
}), P.map((e) => /* @__PURE__ */ _("option", {
|
|
221
222
|
value: e.id,
|
|
222
223
|
children: [
|
|
223
224
|
e.name,
|
|
@@ -225,81 +226,81 @@ var _ = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5
|
|
|
225
226
|
e.type
|
|
226
227
|
]
|
|
227
228
|
}, e.id))]
|
|
228
|
-
}),
|
|
229
|
+
}), I && /* @__PURE__ */ g(f, {
|
|
229
230
|
size: 16,
|
|
230
231
|
className: "absolute end-3 top-3 animate-spin text-text-secondary"
|
|
231
232
|
})]
|
|
232
233
|
}),
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ g("p", {
|
|
234
235
|
className: "text-xs text-text-secondary",
|
|
235
|
-
children:
|
|
236
|
+
children: E("integrations.addConnection.credentialStorage.existingSecretHint", "For OAuth and basic auth, choose a structured credential secret created for integrations.")
|
|
236
237
|
})
|
|
237
238
|
]
|
|
238
239
|
})
|
|
239
240
|
]
|
|
240
241
|
});
|
|
241
|
-
},
|
|
242
|
-
let [i,
|
|
242
|
+
}, x = ({ api: e, translate: t, onCreated: n, onCancel: r }) => {
|
|
243
|
+
let [i, a] = s(""), [l, u] = s(!1), [d, h] = s(null), y = o(), b = async () => {
|
|
243
244
|
if (i.trim() && !l) {
|
|
244
|
-
u(!0),
|
|
245
|
+
u(!0), h(null);
|
|
245
246
|
try {
|
|
246
247
|
n((await e.createVault(i)).id);
|
|
247
248
|
} catch (e) {
|
|
248
|
-
|
|
249
|
+
h(e instanceof Error ? e.message : t("integrations.addConnection.credentialStorage.createVaultFailed", "The vault could not be created"));
|
|
249
250
|
} finally {
|
|
250
251
|
u(!1);
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
254
|
};
|
|
254
|
-
return /* @__PURE__ */
|
|
255
|
+
return /* @__PURE__ */ _("div", {
|
|
255
256
|
className: "space-y-2 rounded-lg border border-primary/40 bg-action-primary-bg/5 p-3",
|
|
256
257
|
children: [
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ _("div", {
|
|
258
259
|
className: "flex items-center justify-between gap-2",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
260
|
+
children: [/* @__PURE__ */ g("label", {
|
|
260
261
|
htmlFor: y,
|
|
261
262
|
className: "text-xs font-medium text-text-primary",
|
|
262
263
|
children: t("integrations.addConnection.credentialStorage.newVaultName", "New vault name")
|
|
263
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ g("button", {
|
|
264
265
|
type: "button",
|
|
265
266
|
onClick: r,
|
|
266
267
|
"aria-label": t("integrations.addConnection.credentialStorage.cancelCreateVault", "Cancel creating a vault"),
|
|
267
268
|
className: "text-text-secondary hover:text-text-primary",
|
|
268
|
-
children: /* @__PURE__ */
|
|
269
|
+
children: /* @__PURE__ */ g(m, { size: 14 })
|
|
269
270
|
})]
|
|
270
271
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ g("input", {
|
|
272
273
|
id: y,
|
|
273
274
|
type: "text",
|
|
274
275
|
value: i,
|
|
275
276
|
autoFocus: !0,
|
|
276
|
-
onChange: (e) =>
|
|
277
|
+
onChange: (e) => a(e.target.value),
|
|
277
278
|
onKeyDown: (e) => {
|
|
278
279
|
e.key === "Enter" && (e.preventDefault(), b());
|
|
279
280
|
},
|
|
280
281
|
placeholder: t("integrations.addConnection.credentialStorage.newVaultPlaceholder", "e.g. Integrations"),
|
|
281
282
|
disabled: l,
|
|
282
|
-
className:
|
|
283
|
+
className: v
|
|
283
284
|
}),
|
|
284
|
-
|
|
285
|
+
d && /* @__PURE__ */ _("p", {
|
|
285
286
|
className: "flex items-center gap-1.5 text-xs text-status-error-text",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ g(c, {
|
|
287
288
|
size: 13,
|
|
288
289
|
className: "flex-shrink-0"
|
|
289
|
-
}),
|
|
290
|
+
}), d]
|
|
290
291
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ _("div", {
|
|
292
293
|
className: "flex items-center gap-2",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ _("button", {
|
|
294
295
|
type: "button",
|
|
295
296
|
onClick: () => void b(),
|
|
296
297
|
disabled: l || !i.trim(),
|
|
297
298
|
className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg/90 disabled:opacity-50",
|
|
298
|
-
children: [l ? /* @__PURE__ */
|
|
299
|
+
children: [l ? /* @__PURE__ */ g(f, {
|
|
299
300
|
size: 13,
|
|
300
301
|
className: "animate-spin"
|
|
301
|
-
}) : /* @__PURE__ */
|
|
302
|
-
}), /* @__PURE__ */
|
|
302
|
+
}) : /* @__PURE__ */ g(p, { size: 13 }), t("integrations.addConnection.credentialStorage.createVault", "Create vault")]
|
|
303
|
+
}), /* @__PURE__ */ g("span", {
|
|
303
304
|
className: "text-xs text-text-secondary",
|
|
304
305
|
children: t("integrations.addConnection.credentialStorage.scopedHint", "Scoped to this workspace.")
|
|
305
306
|
})]
|
|
@@ -307,4 +308,4 @@ var _ = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5
|
|
|
307
308
|
]
|
|
308
309
|
});
|
|
309
310
|
};
|
|
310
|
-
export {
|
|
311
|
+
export { b as CredentialStorageSelector };
|