@burdenoff/fe-libs 2026.930.4 → 2026.1001.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/connections/ConnectionDetailsTab.d.ts +11 -0
- package/dist/connections/ConnectionDetailsTab.d.ts.map +1 -0
- package/dist/connections/ConnectionDetailsTab.js +71 -0
- package/dist/connections/ConnectionDialog.d.ts +57 -0
- package/dist/connections/ConnectionDialog.d.ts.map +1 -0
- package/dist/connections/ConnectionDialog.js +88 -0
- package/dist/connections/ConnectionDialogPanel.d.ts +26 -0
- package/dist/connections/ConnectionDialogPanel.d.ts.map +1 -0
- package/dist/connections/ConnectionDialogPanel.js +272 -0
- package/dist/connections/ConnectionFormTab.d.ts +37 -0
- package/dist/connections/ConnectionFormTab.d.ts.map +1 -0
- package/dist/connections/ConnectionFormTab.js +185 -0
- package/dist/connections/CredentialStorageSelector.d.ts +19 -0
- package/dist/connections/CredentialStorageSelector.d.ts.map +1 -0
- package/dist/connections/CredentialStorageSelector.js +294 -0
- package/dist/connections/DialogHeading.d.ts +7 -0
- package/dist/connections/DialogHeading.d.ts.map +1 -0
- package/dist/connections/DialogHeading.js +16 -0
- package/dist/connections/ProviderIcon.d.ts +10 -0
- package/dist/connections/ProviderIcon.d.ts.map +1 -0
- package/dist/connections/ProviderIcon.js +57 -0
- package/dist/connections/ProviderPickerPanel.d.ts +15 -0
- package/dist/connections/ProviderPickerPanel.d.ts.map +1 -0
- package/dist/connections/ProviderPickerPanel.js +84 -0
- package/dist/connections/ScopePicker.d.ts +15 -0
- package/dist/connections/ScopePicker.d.ts.map +1 -0
- package/dist/connections/ScopePicker.js +38 -0
- package/dist/connections/api.d.ts +60 -0
- package/dist/connections/api.d.ts.map +1 -0
- package/dist/connections/api.js +259 -0
- package/dist/connections/assets/bigconsole.png.js +4 -0
- package/dist/connections/assets/burdenoff.png.js +4 -0
- package/dist/connections/connectionFlow.d.ts +81 -0
- package/dist/connections/connectionFlow.d.ts.map +1 -0
- package/dist/connections/connectionFlow.js +101 -0
- package/dist/connections/frame.d.ts +32 -0
- package/dist/connections/frame.d.ts.map +1 -0
- package/dist/connections/frame.js +13 -0
- package/dist/connections/index.d.ts +24 -0
- package/dist/connections/index.d.ts.map +1 -0
- package/dist/connections/labels.d.ts +5 -0
- package/dist/connections/labels.d.ts.map +1 -0
- package/dist/connections/labels.js +35 -0
- package/dist/connections/oauthPopup.d.ts +48 -0
- package/dist/connections/oauthPopup.d.ts.map +1 -0
- package/dist/connections/oauthPopup.js +70 -0
- package/dist/connections/picker.d.ts +7 -0
- package/dist/connections/picker.d.ts.map +1 -0
- package/dist/connections/picker.js +16 -0
- package/dist/connections/providerIdentity.d.ts +23 -0
- package/dist/connections/providerIdentity.d.ts.map +1 -0
- package/dist/connections/providerIdentity.js +175 -0
- package/dist/connections/scopes.d.ts +42 -0
- package/dist/connections/scopes.d.ts.map +1 -0
- package/dist/connections/scopes.js +30 -0
- package/dist/connections/storage.d.ts +8 -0
- package/dist/connections/storage.d.ts.map +1 -0
- package/dist/connections/storage.js +21 -0
- package/dist/connections/types.d.ts +82 -0
- package/dist/connections/types.d.ts.map +1 -0
- package/dist/connections/useConnectionSubmit.d.ts +22 -0
- package/dist/connections/useConnectionSubmit.d.ts.map +1 -0
- package/dist/connections/useConnectionSubmit.js +99 -0
- package/dist/connections.d.ts +2 -0
- package/dist/connections.js +14 -0
- package/dist/credentials/AuthMethodSelector.d.ts +4 -0
- package/dist/credentials/AuthMethodSelector.d.ts.map +1 -1
- package/dist/credentials/AuthMethodSelector.js +42 -33
- package/dist/credentials/SchemaForm.d.ts +3 -28
- package/dist/credentials/SchemaForm.d.ts.map +1 -1
- package/dist/credentials/SchemaForm.js +116 -162
- package/dist/credentials/index.d.ts +5 -2
- package/dist/credentials/index.d.ts.map +1 -1
- package/dist/credentials/methods.d.ts +11 -0
- package/dist/credentials/methods.d.ts.map +1 -0
- package/dist/credentials/methods.js +6 -0
- package/dist/credentials/schema.d.ts +43 -0
- package/dist/credentials/schema.d.ts.map +1 -0
- package/dist/credentials/schema.js +56 -0
- package/dist/credentials/translate.d.ts +18 -0
- package/dist/credentials/translate.d.ts.map +1 -0
- package/dist/credentials/translate.js +7 -0
- package/dist/credentials/types.d.ts +1 -1
- package/dist/credentials.js +6 -3
- package/dist/shared/assistant/conversation.d.ts +5 -1
- package/dist/shared/assistant/conversation.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyApi.d.ts +25 -9
- package/dist/shared/assistant/history/historyApi.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyApi.js +220 -75
- package/dist/shared/assistant/history/historyControls.d.ts +86 -0
- package/dist/shared/assistant/history/historyControls.d.ts.map +1 -0
- package/dist/shared/assistant/history/historyControls.js +80 -0
- package/dist/shared/assistant/history/historyEngine.d.ts +23 -3
- package/dist/shared/assistant/history/historyEngine.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyEngine.js +578 -369
- package/dist/shared/assistant/history/historyErrors.d.ts +25 -5
- package/dist/shared/assistant/history/historyErrors.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyErrors.js +39 -30
- package/dist/shared/assistant/history/historyList.d.ts +33 -7
- package/dist/shared/assistant/history/historyList.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyList.js +72 -51
- package/dist/shared/assistant/history/historyOperations.d.ts +36 -7
- package/dist/shared/assistant/history/historyOperations.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyOperations.js +100 -25
- package/dist/shared/assistant/history/historyStatus.d.ts +27 -1
- package/dist/shared/assistant/history/historyStatus.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyStatus.js +6 -2
- package/dist/shared/assistant/history/historyStore.d.ts +29 -7
- package/dist/shared/assistant/history/historyStore.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyStore.js +172 -103
- package/dist/shared/assistant/history/historyTransportErrors.d.ts +28 -0
- package/dist/shared/assistant/history/historyTransportErrors.d.ts.map +1 -0
- package/dist/shared/assistant/history/historyTransportErrors.js +16 -0
- package/dist/shared/assistant/history/historyTypes.d.ts +80 -1
- package/dist/shared/assistant/history/historyTypes.d.ts.map +1 -1
- package/dist/shared/assistant/history/stampRegistry.d.ts +19 -1
- package/dist/shared/assistant/history/stampRegistry.d.ts.map +1 -1
- package/dist/shared/assistant/history/stampRegistry.js +13 -1
- package/dist/shared/assistant/index.d.ts +2 -0
- package/dist/shared/assistant/index.d.ts.map +1 -1
- package/dist/shared/assistant/store.d.ts +8 -0
- package/dist/shared/assistant/store.d.ts.map +1 -1
- package/dist/shared/assistant/store.js +50 -46
- package/dist/shared/assistant/writeReplyBinder.d.ts +1 -1
- package/dist/shared-assistant.js +164 -162
- package/package.json +11 -2
|
@@ -1,232 +1,186 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isVisible as e, normalizeOptions as t } from "./schema.js";
|
|
2
|
+
import { englishTranslator as n } from "./translate.js";
|
|
3
|
+
import { useState as r } from "react";
|
|
4
|
+
import { Eye as i, EyeOff as a, Info as o } from "lucide-react";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
6
|
//#region src/credentials/SchemaForm.tsx
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return typeof t.properties != "object" || t.properties === null || Array.isArray(t.properties) ? null : {
|
|
9
|
-
properties: t.properties,
|
|
10
|
-
required: Array.isArray(t.required) ? t.required.filter((e) => typeof e == "string") : []
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function s(e, t, n, r = /* @__PURE__ */ new Set()) {
|
|
14
|
-
return e.showIf ? Object.entries(e.showIf).every(([e, i]) => {
|
|
15
|
-
if (n && !r.has(e)) {
|
|
16
|
-
let i = n.properties[e];
|
|
17
|
-
if (i && !s(i, t, n, new Set([...r, e]))) return !1;
|
|
18
|
-
}
|
|
19
|
-
let a = t[e];
|
|
20
|
-
return Array.isArray(i) ? i.includes(a) : a === i;
|
|
21
|
-
}) : !0;
|
|
22
|
-
}
|
|
23
|
-
function c(e, t) {
|
|
24
|
-
return e.required.every((n) => {
|
|
25
|
-
let r = e.properties[n];
|
|
26
|
-
if (r && !s(r, t, e)) return !0;
|
|
27
|
-
let i = t[n];
|
|
28
|
-
return typeof i == "string" ? i.trim().length > 0 : i != null;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function l(e) {
|
|
32
|
-
return e.map((e) => typeof e == "string" ? {
|
|
33
|
-
label: e,
|
|
34
|
-
value: e
|
|
35
|
-
} : e);
|
|
36
|
-
}
|
|
37
|
-
function u(e) {
|
|
38
|
-
if (!e) return {};
|
|
39
|
-
let t = {};
|
|
40
|
-
for (let [n, r] of Object.entries(e.properties)) {
|
|
41
|
-
if (r.default !== void 0) {
|
|
42
|
-
t[n] = r.default;
|
|
43
|
-
continue;
|
|
44
|
-
}
|
|
45
|
-
r.type === "boolean" && (t[n] = !1);
|
|
46
|
-
}
|
|
47
|
-
return t;
|
|
48
|
-
}
|
|
49
|
-
function d(e, t) {
|
|
50
|
-
if (!e) return t;
|
|
51
|
-
let n = {};
|
|
52
|
-
for (let [r, i] of Object.entries(t)) {
|
|
53
|
-
let a = e.properties[r];
|
|
54
|
-
a && !s(a, t, e) || (n[r] = i);
|
|
55
|
-
}
|
|
56
|
-
return n;
|
|
57
|
-
}
|
|
58
|
-
var f = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("-webkit-text-security", "disc"), p = ({ schema: e, values: t, onChange: n, disabled: r, idPrefix: a = "schema" }) => {
|
|
59
|
-
let o = new Set(e.required);
|
|
60
|
-
return /* @__PURE__ */ i("div", {
|
|
7
|
+
var l = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("-webkit-text-security", "disc"), u = ({ schema: t, values: r, onChange: i, disabled: a, idPrefix: o = "schema", translate: c = n }) => {
|
|
8
|
+
let l = new Set(t.required);
|
|
9
|
+
return /* @__PURE__ */ s("div", {
|
|
61
10
|
className: "space-y-3",
|
|
62
|
-
children: Object.entries(
|
|
63
|
-
id: `${
|
|
11
|
+
children: Object.entries(t.properties).filter(([, n]) => e(n, r, t)).map(([e, t]) => /* @__PURE__ */ s(d, {
|
|
12
|
+
id: `${o}-${e}`,
|
|
64
13
|
name: e,
|
|
65
|
-
property:
|
|
66
|
-
value:
|
|
67
|
-
required:
|
|
68
|
-
disabled:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
14
|
+
property: t,
|
|
15
|
+
value: r[e],
|
|
16
|
+
required: l.has(e),
|
|
17
|
+
disabled: a,
|
|
18
|
+
translate: c,
|
|
19
|
+
onChange: (t) => i({
|
|
20
|
+
...r,
|
|
21
|
+
[e]: t
|
|
72
22
|
})
|
|
73
23
|
}, e))
|
|
74
24
|
});
|
|
75
|
-
},
|
|
76
|
-
let [
|
|
77
|
-
if (
|
|
25
|
+
}, d = ({ id: e, name: n, property: u, value: d, required: f, disabled: p, translate: m, onChange: h }) => {
|
|
26
|
+
let [g, _] = r(!1), [v, y] = r(!1), b = u.title ?? n, x = u.placeholder ?? u.description ?? "";
|
|
27
|
+
if (u.type === "notice") return /* @__PURE__ */ c("div", {
|
|
78
28
|
className: "flex items-start gap-2 px-3 py-2 rounded-md bg-status-info-bg-subtle border border-border-default",
|
|
79
|
-
children: [/* @__PURE__ */
|
|
29
|
+
children: [/* @__PURE__ */ s(o, {
|
|
80
30
|
size: 14,
|
|
81
31
|
className: "text-status-info-text flex-shrink-0 mt-0.5"
|
|
82
|
-
}), /* @__PURE__ */
|
|
32
|
+
}), /* @__PURE__ */ s("span", {
|
|
83
33
|
className: "text-xs text-status-info-text",
|
|
84
|
-
children:
|
|
34
|
+
children: u.description ?? b
|
|
85
35
|
})]
|
|
86
36
|
});
|
|
87
|
-
let
|
|
37
|
+
let S = u.description ? /* @__PURE__ */ s("p", {
|
|
88
38
|
className: "mt-1 text-xs text-text-secondary",
|
|
89
|
-
children:
|
|
90
|
-
}) : null,
|
|
91
|
-
htmlFor:
|
|
39
|
+
children: u.description
|
|
40
|
+
}) : null, C = /* @__PURE__ */ c("label", {
|
|
41
|
+
htmlFor: e,
|
|
92
42
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
93
43
|
children: [
|
|
94
|
-
|
|
44
|
+
b,
|
|
95
45
|
" ",
|
|
96
|
-
|
|
46
|
+
f && /* @__PURE__ */ s("span", {
|
|
97
47
|
className: "text-status-error-text",
|
|
98
48
|
children: "*"
|
|
99
49
|
})
|
|
100
50
|
]
|
|
101
|
-
}),
|
|
102
|
-
if (
|
|
103
|
-
let
|
|
104
|
-
return /* @__PURE__ */
|
|
51
|
+
}), w = "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50";
|
|
52
|
+
if (u.type === "boolean") {
|
|
53
|
+
let t = !!(d ?? u.default ?? !1);
|
|
54
|
+
return /* @__PURE__ */ c("div", {
|
|
105
55
|
className: "flex items-center gap-3",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ s("button", {
|
|
107
57
|
type: "button",
|
|
108
58
|
role: "switch",
|
|
109
|
-
id:
|
|
110
|
-
"aria-checked":
|
|
111
|
-
"aria-label":
|
|
112
|
-
onClick: () =>
|
|
59
|
+
id: e,
|
|
60
|
+
"aria-checked": t,
|
|
61
|
+
"aria-label": b,
|
|
62
|
+
onClick: () => h(!t),
|
|
113
63
|
disabled: p,
|
|
114
|
-
className: `relative inline-flex h-5 w-9 items-center rounded-full transition-colors disabled:opacity-50 ${
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
}), /* @__PURE__ */
|
|
64
|
+
className: `relative inline-flex h-5 w-9 items-center rounded-full transition-colors disabled:opacity-50 ${t ? "bg-primary" : "bg-bg-muted"}`,
|
|
65
|
+
children: /* @__PURE__ */ s("span", { className: `inline-block h-3.5 w-3.5 transform rounded-full bg-bg-surface transition-transform ${t ? "translate-x-4.5" : "translate-x-0.5"}` })
|
|
66
|
+
}), /* @__PURE__ */ c("span", {
|
|
117
67
|
className: "text-sm font-medium text-text-primary",
|
|
118
|
-
children: [
|
|
68
|
+
children: [b, u.description && /* @__PURE__ */ c("span", {
|
|
119
69
|
className: "text-text-secondary font-normal ml-1",
|
|
120
|
-
children: ["— ",
|
|
70
|
+
children: ["— ", u.description]
|
|
121
71
|
})]
|
|
122
72
|
})]
|
|
123
73
|
});
|
|
124
74
|
}
|
|
125
|
-
if (
|
|
126
|
-
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
id:
|
|
129
|
-
"aria-label":
|
|
130
|
-
value: String(
|
|
131
|
-
onChange: (e) =>
|
|
75
|
+
if (u.enum && u.enum.length > 0) return /* @__PURE__ */ c("div", { children: [
|
|
76
|
+
C,
|
|
77
|
+
/* @__PURE__ */ c("select", {
|
|
78
|
+
id: e,
|
|
79
|
+
"aria-label": b,
|
|
80
|
+
value: String(d ?? u.default ?? ""),
|
|
81
|
+
onChange: (e) => h(e.target.value),
|
|
132
82
|
disabled: p,
|
|
133
|
-
className: `${
|
|
134
|
-
children: [/* @__PURE__ */
|
|
83
|
+
className: `${w} scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary`,
|
|
84
|
+
children: [/* @__PURE__ */ s("option", {
|
|
135
85
|
value: "",
|
|
136
|
-
children:
|
|
137
|
-
}),
|
|
86
|
+
children: m("integrations.schemaForm.select", "Select {{label}}", { label: b.toLowerCase() })
|
|
87
|
+
}), t(u.enum).map((e) => /* @__PURE__ */ s("option", {
|
|
138
88
|
value: e.value,
|
|
139
89
|
children: e.label
|
|
140
90
|
}, e.value))]
|
|
141
91
|
}),
|
|
142
|
-
|
|
92
|
+
S
|
|
143
93
|
] });
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
id:
|
|
148
|
-
"aria-label":
|
|
94
|
+
if (u.type === "number") return /* @__PURE__ */ c("div", { children: [
|
|
95
|
+
C,
|
|
96
|
+
/* @__PURE__ */ s("input", {
|
|
97
|
+
id: e,
|
|
98
|
+
"aria-label": b,
|
|
149
99
|
type: "number",
|
|
150
|
-
value:
|
|
151
|
-
onChange: (e) =>
|
|
152
|
-
placeholder:
|
|
100
|
+
value: d == null ? "" : String(d),
|
|
101
|
+
onChange: (e) => h(e.target.value === "" ? void 0 : Number(e.target.value)),
|
|
102
|
+
placeholder: x,
|
|
153
103
|
disabled: p,
|
|
154
|
-
className:
|
|
104
|
+
className: w
|
|
155
105
|
}),
|
|
156
|
-
|
|
106
|
+
S
|
|
157
107
|
] });
|
|
158
|
-
if (
|
|
159
|
-
let
|
|
160
|
-
return
|
|
161
|
-
|
|
162
|
-
/* @__PURE__ */
|
|
108
|
+
if (u.format === "textarea" || u.format === "json") {
|
|
109
|
+
let t = !!u.secret && !g, n = typeof d == "string" && d.length > 0;
|
|
110
|
+
return t && !l && n && !v ? /* @__PURE__ */ c("div", { children: [
|
|
111
|
+
C,
|
|
112
|
+
/* @__PURE__ */ c("div", {
|
|
163
113
|
className: "flex items-center justify-between gap-2 px-3 py-2 border border-border-subtle rounded-md bg-bg-surface",
|
|
164
|
-
children: [/* @__PURE__ */
|
|
114
|
+
children: [/* @__PURE__ */ s("span", {
|
|
165
115
|
className: "text-sm font-mono text-text-secondary select-none",
|
|
166
116
|
children: "••••••••••••"
|
|
167
|
-
}), /* @__PURE__ */
|
|
117
|
+
}), /* @__PURE__ */ c("button", {
|
|
168
118
|
type: "button",
|
|
169
|
-
onClick: () =>
|
|
119
|
+
onClick: () => _(!0),
|
|
170
120
|
disabled: p,
|
|
171
|
-
"aria-label":
|
|
121
|
+
"aria-label": m("integrations.schemaForm.reveal", "Show {{label}}", { label: b }),
|
|
172
122
|
className: "inline-flex items-center gap-1 text-xs text-primary hover:underline disabled:opacity-50",
|
|
173
|
-
children: [
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ s(i, { size: 14 }),
|
|
125
|
+
" ",
|
|
126
|
+
m("integrations.schemaForm.revealToEdit", "Reveal to edit")
|
|
127
|
+
]
|
|
174
128
|
})]
|
|
175
129
|
}),
|
|
176
|
-
|
|
177
|
-
] }) : /* @__PURE__ */
|
|
178
|
-
|
|
179
|
-
/* @__PURE__ */
|
|
130
|
+
S
|
|
131
|
+
] }) : /* @__PURE__ */ c("div", { children: [
|
|
132
|
+
C,
|
|
133
|
+
/* @__PURE__ */ c("div", {
|
|
180
134
|
className: "relative",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
182
|
-
id:
|
|
183
|
-
"aria-label":
|
|
184
|
-
value: String(
|
|
185
|
-
onChange: (e) =>
|
|
186
|
-
onFocus: () =>
|
|
187
|
-
onBlur: () =>
|
|
188
|
-
placeholder:
|
|
135
|
+
children: [/* @__PURE__ */ s("textarea", {
|
|
136
|
+
id: e,
|
|
137
|
+
"aria-label": b,
|
|
138
|
+
value: String(d ?? ""),
|
|
139
|
+
onChange: (e) => h(e.target.value),
|
|
140
|
+
onFocus: () => y(!0),
|
|
141
|
+
onBlur: () => y(!1),
|
|
142
|
+
placeholder: x,
|
|
189
143
|
disabled: p,
|
|
190
144
|
rows: 5,
|
|
191
145
|
autoComplete: "off",
|
|
192
146
|
spellCheck: !1,
|
|
193
|
-
style:
|
|
194
|
-
className: `${
|
|
195
|
-
}),
|
|
147
|
+
style: t ? { WebkitTextSecurity: "disc" } : void 0,
|
|
148
|
+
className: `${w} font-mono ${u.secret ? "pr-10" : ""}`
|
|
149
|
+
}), u.secret && /* @__PURE__ */ s("button", {
|
|
196
150
|
type: "button",
|
|
197
|
-
onClick: () =>
|
|
198
|
-
"aria-label":
|
|
151
|
+
onClick: () => _((e) => !e),
|
|
152
|
+
"aria-label": g ? m("integrations.schemaForm.hide", "Hide {{label}}", { label: b }) : m("integrations.schemaForm.reveal", "Show {{label}}", { label: b }),
|
|
199
153
|
className: "absolute right-2 top-2 text-text-secondary hover:text-text-primary",
|
|
200
|
-
children:
|
|
154
|
+
children: s(g ? a : i, { size: 16 })
|
|
201
155
|
})]
|
|
202
156
|
}),
|
|
203
|
-
|
|
157
|
+
S
|
|
204
158
|
] });
|
|
205
159
|
}
|
|
206
|
-
return /* @__PURE__ */
|
|
207
|
-
|
|
208
|
-
/* @__PURE__ */
|
|
160
|
+
return /* @__PURE__ */ c("div", { children: [
|
|
161
|
+
C,
|
|
162
|
+
/* @__PURE__ */ c("div", {
|
|
209
163
|
className: "relative",
|
|
210
|
-
children: [/* @__PURE__ */
|
|
211
|
-
id:
|
|
212
|
-
"aria-label":
|
|
213
|
-
type:
|
|
214
|
-
value: String(
|
|
215
|
-
onChange: (e) =>
|
|
216
|
-
placeholder:
|
|
164
|
+
children: [/* @__PURE__ */ s("input", {
|
|
165
|
+
id: e,
|
|
166
|
+
"aria-label": b,
|
|
167
|
+
type: u.secret && !g ? "password" : "text",
|
|
168
|
+
value: String(d ?? ""),
|
|
169
|
+
onChange: (e) => h(e.target.value),
|
|
170
|
+
placeholder: x,
|
|
217
171
|
disabled: p,
|
|
218
172
|
autoComplete: "off",
|
|
219
|
-
className: `${
|
|
220
|
-
}),
|
|
173
|
+
className: `${w} ${u.secret ? "font-mono pr-10" : ""}`
|
|
174
|
+
}), u.secret && /* @__PURE__ */ s("button", {
|
|
221
175
|
type: "button",
|
|
222
|
-
onClick: () =>
|
|
223
|
-
"aria-label":
|
|
176
|
+
onClick: () => _((e) => !e),
|
|
177
|
+
"aria-label": g ? m("integrations.schemaForm.hide", "Hide {{label}}", { label: b }) : m("integrations.schemaForm.reveal", "Show {{label}}", { label: b }),
|
|
224
178
|
className: "absolute right-2 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
225
|
-
children:
|
|
179
|
+
children: s(g ? a : i, { size: 16 })
|
|
226
180
|
})]
|
|
227
181
|
}),
|
|
228
|
-
|
|
182
|
+
S
|
|
229
183
|
] });
|
|
230
184
|
};
|
|
231
185
|
//#endregion
|
|
232
|
-
export {
|
|
186
|
+
export { u as SchemaForm };
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
* so adding a provider, or a new way of authenticating against one, is a
|
|
8
8
|
* catalog change rather than React in each consuming app.
|
|
9
9
|
*/
|
|
10
|
-
export { SchemaForm
|
|
10
|
+
export { SchemaForm } from './SchemaForm';
|
|
11
|
+
export { parseFormSchema, isSchemaComplete, initialValuesFromSchema, visibleValues, } from './schema';
|
|
11
12
|
export { AuthMethodSelector, AuthMethodNotice } from './AuthMethodSelector';
|
|
12
|
-
export
|
|
13
|
+
export { resolveSelectedMethod } from './methods';
|
|
14
|
+
export { englishTranslator, interpolate, type Translator } from './translate';
|
|
15
|
+
export type { AuthMethodFlow, AuthMethodLike, FormSchema, SchemaProperty } from './types';
|
|
13
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/credentials/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/credentials/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9E,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthMethodLike } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolve the method a key refers to.
|
|
4
|
+
*
|
|
5
|
+
* A null key means "the provider's default", which is what submission uses, so
|
|
6
|
+
* the dropdown must show that method rather than an empty box. A *stale* key —
|
|
7
|
+
* one matching nothing after switching providers or a method being removed — is
|
|
8
|
+
* the only case that should surface the placeholder.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveSelectedMethod<T extends AuthMethodLike>(selectable: T[], selectedKey: string | null): T | null;
|
|
11
|
+
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/credentials/methods.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,cAAc,EAC5D,UAAU,EAAE,CAAC,EAAE,EACf,WAAW,EAAE,MAAM,GAAG,IAAI,GACzB,CAAC,GAAG,IAAI,CAIV"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FormSchema, SchemaProperty } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Narrow an arbitrary JSON value to a renderable schema. Returns null when the
|
|
4
|
+
* value isn't a usable object schema, so callers can fall back rather than
|
|
5
|
+
* rendering an empty form.
|
|
6
|
+
*/
|
|
7
|
+
export declare function parseFormSchema(raw: unknown): FormSchema | null;
|
|
8
|
+
/**
|
|
9
|
+
* Evaluate a property's `showIf`. A field is visible when every named field
|
|
10
|
+
* holds one of the accepted values, so dependent fields (e.g. "custom scopes"
|
|
11
|
+
* revealed by a toggle) need no bespoke component.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isVisible(property: SchemaProperty, values: Record<string, unknown>, schema?: FormSchema, seen?: ReadonlySet<string>): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Required fields that are visible and filled. Hidden fields are excluded on
|
|
16
|
+
* purpose — a `showIf` field the user never saw must not block submission.
|
|
17
|
+
*/
|
|
18
|
+
export declare function isSchemaComplete(schema: FormSchema, values: Record<string, unknown>): boolean;
|
|
19
|
+
export declare function normalizeOptions(options: Array<string | {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}>): Array<{
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Seed values for a schema's declared defaults.
|
|
28
|
+
*
|
|
29
|
+
* A rendered control shows `property.default` as selected, but nothing was
|
|
30
|
+
* written to form state — so validation treated the visible default as missing
|
|
31
|
+
* and submit dropped it unless the user touched the control. The common
|
|
32
|
+
* "accept the default" path silently lost the value.
|
|
33
|
+
*/
|
|
34
|
+
export declare function initialValuesFromSchema(schema: FormSchema | null): Record<string, unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Drop values whose field is currently hidden by `showIf`.
|
|
37
|
+
*
|
|
38
|
+
* Changing a controlling option hides a field but leaves whatever was typed in
|
|
39
|
+
* it in state; submitting that would store a credential the user can no longer
|
|
40
|
+
* see and did not intend to send.
|
|
41
|
+
*/
|
|
42
|
+
export declare function visibleValues(schema: FormSchema | null, values: Record<string, unknown>): Record<string, unknown>;
|
|
43
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/credentials/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE1D;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAkB/D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,MAAM,CAAC,EAAE,UAAU,EACnB,IAAI,GAAE,WAAW,CAAC,MAAM,CAAa,GACpC,OAAO,CAiBT;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAS7F;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GACxD,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAIzC;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmB1F;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,GAAG,IAAI,EACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASzB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/credentials/schema.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
if (typeof e != "object" || !e || Array.isArray(e)) return null;
|
|
4
|
+
let t = e;
|
|
5
|
+
return typeof t.properties != "object" || t.properties === null || Array.isArray(t.properties) ? null : {
|
|
6
|
+
properties: t.properties,
|
|
7
|
+
required: Array.isArray(t.required) ? t.required.filter((e) => typeof e == "string") : []
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function t(e, n, r, i = /* @__PURE__ */ new Set()) {
|
|
11
|
+
return e.showIf ? Object.entries(e.showIf).every(([e, a]) => {
|
|
12
|
+
if (r && !i.has(e)) {
|
|
13
|
+
let a = r.properties[e];
|
|
14
|
+
if (a && !t(a, n, r, new Set([...i, e]))) return !1;
|
|
15
|
+
}
|
|
16
|
+
let o = n[e];
|
|
17
|
+
return Array.isArray(a) ? a.includes(o) : o === a;
|
|
18
|
+
}) : !0;
|
|
19
|
+
}
|
|
20
|
+
function n(e, n) {
|
|
21
|
+
return e.required.every((r) => {
|
|
22
|
+
let i = e.properties[r];
|
|
23
|
+
if (i && !t(i, n, e)) return !0;
|
|
24
|
+
let a = n[r];
|
|
25
|
+
return typeof a == "string" ? a.trim().length > 0 : a != null;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function r(e) {
|
|
29
|
+
return e.map((e) => typeof e == "string" ? {
|
|
30
|
+
label: e,
|
|
31
|
+
value: e
|
|
32
|
+
} : e);
|
|
33
|
+
}
|
|
34
|
+
function i(e) {
|
|
35
|
+
if (!e) return {};
|
|
36
|
+
let t = new Set(e.required), n = {};
|
|
37
|
+
for (let [r, i] of Object.entries(e.properties)) {
|
|
38
|
+
if (i.default !== void 0) {
|
|
39
|
+
n[r] = i.default;
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
i.type === "boolean" && t.has(r) && (n[r] = !1);
|
|
43
|
+
}
|
|
44
|
+
return n;
|
|
45
|
+
}
|
|
46
|
+
function a(e, n) {
|
|
47
|
+
if (!e) return n;
|
|
48
|
+
let r = {};
|
|
49
|
+
for (let [i, a] of Object.entries(n)) {
|
|
50
|
+
let o = e.properties[i];
|
|
51
|
+
o && !t(o, n, e) || (r[i] = a);
|
|
52
|
+
}
|
|
53
|
+
return r;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { i as initialValuesFromSchema, n as isSchemaComplete, t as isVisible, r as normalizeOptions, e as parseFormSchema, a as visibleValues };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-supplied translation for the credential and connection UI.
|
|
3
|
+
*
|
|
4
|
+
* These components are rendered by hosts with very different i18n setups: the
|
|
5
|
+
* Burdenoff shell mounts an `I18nProvider`, while the FluidGrids SDK also runs
|
|
6
|
+
* inside standalone embeds that have none. `useI18n()` throws without its
|
|
7
|
+
* provider, so these components never call it. The host passes a translator
|
|
8
|
+
* instead, and without one every call renders its English source string.
|
|
9
|
+
*
|
|
10
|
+
* Call sites pass the key as a string literal and the final English copy as
|
|
11
|
+
* the fallback, because i18n extraction reads both from the source.
|
|
12
|
+
*/
|
|
13
|
+
export type Translator = (key: string, fallback: string, params?: Record<string, string | number>) => string;
|
|
14
|
+
/** Substitute `{{name}}` placeholders in a string. */
|
|
15
|
+
export declare function interpolate(template: string, params?: Record<string, string | number>): string;
|
|
16
|
+
/** The no-host default: the English fallback, with placeholders filled. */
|
|
17
|
+
export declare const englishTranslator: Translator;
|
|
18
|
+
//# sourceMappingURL=translate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../src/credentials/translate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,UAAU,GAAG,CACvB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAAM,CAAC;AAEZ,sDAAsD;AACtD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAM9F;AAED,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,EAAE,UACD,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* instead of maintaining its own copy of the renderer.
|
|
9
9
|
*/
|
|
10
10
|
/** How the UI collects the credential for an auth method. */
|
|
11
|
-
export type AuthMethodFlow =
|
|
11
|
+
export type AuthMethodFlow = 'fields' | 'oauth2' | 'minted';
|
|
12
12
|
/**
|
|
13
13
|
* One property in a credential form schema.
|
|
14
14
|
*
|
package/dist/credentials.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { initialValuesFromSchema as e, isSchemaComplete as t, parseFormSchema as n, visibleValues as r } from "./credentials/schema.js";
|
|
2
|
+
import { englishTranslator as i, interpolate as a } from "./credentials/translate.js";
|
|
3
|
+
import { SchemaForm as o } from "./credentials/SchemaForm.js";
|
|
4
|
+
import { resolveSelectedMethod as s } from "./credentials/methods.js";
|
|
5
|
+
import { AuthMethodNotice as c, AuthMethodSelector as l } from "./credentials/AuthMethodSelector.js";
|
|
6
|
+
export { c as AuthMethodNotice, l as AuthMethodSelector, o as SchemaForm, i as englishTranslator, e as initialValuesFromSchema, a as interpolate, t as isSchemaComplete, n as parseFormSchema, s as resolveSelectedMethod, r as visibleValues };
|
|
@@ -302,7 +302,11 @@ export interface ConversationSyncStamp {
|
|
|
302
302
|
hasOlder?: true;
|
|
303
303
|
/** Where "Show earlier messages" continues from. */
|
|
304
304
|
olderCursor?: string;
|
|
305
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* Renamed on this device only — before renames were synced, or while server
|
|
307
|
+
* history could not address it — so the server's title never overwrites it
|
|
308
|
+
* here. A rename that IS synced (BOFF-8159) lifts it.
|
|
309
|
+
*/
|
|
306
310
|
titleLocked?: true;
|
|
307
311
|
/** Why the latest turns are not being saved. */
|
|
308
312
|
blocked?: "quota" | "invalid" | "scope";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/conversation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAIhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,sBAAs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