@hintergrund/ui 0.2.3 → 0.3.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/{Builder-H8tY8V9I.js → BuilderAgentPane-B7-K-t7-.js} +8133 -8367
- package/dist/IntegrationHealth-CGj9Gtg3.js +246 -0
- package/dist/admin.js +26690 -28910
- package/dist/{anthropic-messages-C3hIUlsA.js → anthropic-messages-B9cFrV8_.js} +1 -1
- package/dist/{azure-openai-responses-t7u41KMr.js → azure-openai-responses-DDg04vbg.js} +6 -6
- package/dist/builder.js +18 -3
- package/dist/config.types-iZoywORE.js +15 -0
- package/dist/{global-Bk9T4Af5.js → global-CGPq4E9I.js} +3014 -2785
- package/dist/{google-generative-ai-6ZG79NDC.js → google-generative-ai-CLKiyDxm.js} +6 -6
- package/dist/{google-shared-C6y4fA42.js → google-shared-BVSu3Wpo.js} +1 -1
- package/dist/{google-vertex-f2myaAmm.js → google-vertex-Cvrx6WS_.js} +7 -7
- package/dist/legacy-Ch3FhyVA.js +5 -0
- package/dist/login.js +113 -75
- package/dist/mail.js +793 -0
- package/dist/{mistral-conversations-D16H8Mgq.js → mistral-conversations-C7SJfbbS.js} +11 -11
- package/dist/{openai-codex-responses-DIHPbnIS.js → openai-codex-responses-BLdLSFPf.js} +11 -11
- package/dist/{openai-completions-vDHGFsWV.js → openai-completions-CSZqjwmH.js} +6 -6
- package/dist/{openai-responses-B0rjAJxx.js → openai-responses-BLltsSBW.js} +2 -2
- package/dist/{openai-responses-shared-DqdzMfa_.js → openai-responses-shared-C_oYyHxW.js} +1 -1
- package/dist/{pi-messages-DB2BtH-g.js → pi-messages-BbItJqhU.js} +10 -10
- package/dist/select-nmcCSHOs.js +78 -0
- package/dist/setup.js +340 -233
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as v, i as M, a as I, m as T, G as R, c as S, s as G, b as L, d as _ } from "./google-shared-
|
|
2
|
-
import {
|
|
1
|
+
import { r as v, i as M, a as I, m as T, G as R, c as S, s as G, b as L, d as _ } from "./google-shared-BVSu3Wpo.js";
|
|
2
|
+
import { D as P, H as E, G as A } from "./BuilderAgentPane-B7-K-t7-.js";
|
|
3
3
|
import { f as O, n as N } from "./error-body-BUPcH4GF.js";
|
|
4
4
|
import { p as H } from "./headers-D4iLzGaS.js";
|
|
5
5
|
import { b as W, s as $ } from "./transform-messages-CsKsy6b4.js";
|
|
@@ -33,8 +33,8 @@ const k = (t, a, n) => {
|
|
|
33
33
|
const g = n?.apiKey;
|
|
34
34
|
if (!g)
|
|
35
35
|
throw new Error(`No API key for provider: ${t.provider}`);
|
|
36
|
-
const c =
|
|
37
|
-
let s =
|
|
36
|
+
const c = D(t, g, n?.headers);
|
|
37
|
+
let s = U(t, a, n);
|
|
38
38
|
const f = await n?.onPayload?.(s, t);
|
|
39
39
|
f !== void 0 && (s = f);
|
|
40
40
|
const h = await v(() => c.models.generateContentStream(s), n);
|
|
@@ -160,7 +160,7 @@ const k = (t, a, n) => {
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
|
-
function
|
|
163
|
+
function D(t, a, n) {
|
|
164
164
|
const i = {};
|
|
165
165
|
t.baseUrl && (i.baseUrl = t.baseUrl, i.apiVersion = "");
|
|
166
166
|
const e = H({ ...t.headers, ...n });
|
|
@@ -169,7 +169,7 @@ function U(t, a, n) {
|
|
|
169
169
|
httpOptions: Object.keys(i).length > 0 ? i : void 0
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function U(t, a, n = {}) {
|
|
173
173
|
const i = S(t, a), e = {};
|
|
174
174
|
n.temperature !== void 0 && (e.temperature = n.temperature), n.maxTokens !== void 0 && (e.maxOutputTokens = n.maxTokens);
|
|
175
175
|
const g = G(t.id), c = a.tools?.length ? L(a.tools, n.toolChoice, g) : void 0, s = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bM as li } from "./global-CGPq4E9I.js";
|
|
2
2
|
import { r as ai } from "./provider-retry-BsigVlMg.js";
|
|
3
3
|
import { t as ui, s as se, d as fo, e as di } from "./transform-messages-CsKsy6b4.js";
|
|
4
4
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as v, i as R, a as O, m as _, G as L, c as M, s as
|
|
2
|
-
import {
|
|
3
|
-
import { f as
|
|
1
|
+
import { r as v, i as R, a as O, m as _, G as L, c as M, s as G, b as S, d as P, T as h, R as A } from "./google-shared-BVSu3Wpo.js";
|
|
2
|
+
import { D as N, H as D, G as U } from "./BuilderAgentPane-B7-K-t7-.js";
|
|
3
|
+
import { f as H, n as V } from "./error-body-BUPcH4GF.js";
|
|
4
4
|
import { p as K } from "./headers-D4iLzGaS.js";
|
|
5
5
|
import { g as m } from "./provider-env-D2VjEV3S.js";
|
|
6
6
|
import { b as W, s as j } from "./transform-messages-CsKsy6b4.js";
|
|
@@ -116,7 +116,7 @@ const I = (e, t, i) => {
|
|
|
116
116
|
cacheWrite: 0,
|
|
117
117
|
total: 0
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
}, D(e, n.usage));
|
|
120
120
|
}
|
|
121
121
|
if (a && (a.type === "text" ? o.push({
|
|
122
122
|
type: "text_end",
|
|
@@ -140,7 +140,7 @@ const I = (e, t, i) => {
|
|
|
140
140
|
} catch (s) {
|
|
141
141
|
for (const u of n.content)
|
|
142
142
|
"index" in u && delete u.index;
|
|
143
|
-
n.stopReason = i?.signal?.aborted ? "aborted" : "error", n.errorMessage = V(
|
|
143
|
+
n.stopReason = i?.signal?.aborted ? "aborted" : "error", n.errorMessage = H(V(s)), o.push({ type: "error", reason: n.stopReason, error: n }), o.end();
|
|
144
144
|
}
|
|
145
145
|
})(), o;
|
|
146
146
|
}, pe = (e, t, i) => {
|
|
@@ -150,7 +150,7 @@ const I = (e, t, i) => {
|
|
|
150
150
|
...o,
|
|
151
151
|
thinking: { enabled: !1 }
|
|
152
152
|
});
|
|
153
|
-
const n =
|
|
153
|
+
const n = U(e, i.reasoning), s = n === "off" ? "high" : n, u = e;
|
|
154
154
|
return y(u) || E(u) ? I(e, t, {
|
|
155
155
|
...o,
|
|
156
156
|
thinking: {
|
|
@@ -229,7 +229,7 @@ function te(e) {
|
|
|
229
229
|
function ne(e, t, i = {}) {
|
|
230
230
|
const o = M(e, t), n = {};
|
|
231
231
|
i.temperature !== void 0 && (n.temperature = i.temperature), i.maxTokens !== void 0 && (n.maxOutputTokens = i.maxTokens);
|
|
232
|
-
const s =
|
|
232
|
+
const s = G(e.id), u = t.tools?.length ? S(t.tools, i.toolChoice, s) : void 0, d = {
|
|
233
233
|
...Object.keys(n).length > 0 && n,
|
|
234
234
|
...t.systemPrompt && { systemInstruction: j(t.systemPrompt) },
|
|
235
235
|
...t.tools && t.tools.length > 0 && {
|
package/dist/login.js
CHANGED
|
@@ -1,110 +1,148 @@
|
|
|
1
|
-
import {
|
|
2
|
-
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(
|
|
3
|
-
return Promise.resolve().then(
|
|
1
|
+
import { J as se, K as oe, L as ne, M as le, N as ie, ar as ue, P as o, a1 as n, a0 as l, Y as g, a3 as de, a5 as ve, a7 as p, Z as d, F as e, ap as ce, a9 as fe, _ as pe, U as c, aa as f, $ as me, a2 as i, a4 as we, a8 as h, X as U, aj as $, aq as j, af as K } from "./global-CGPq4E9I.js";
|
|
2
|
+
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(q) {
|
|
3
|
+
return Promise.resolve().then(q);
|
|
4
4
|
} });
|
|
5
|
-
var
|
|
6
|
-
const
|
|
5
|
+
var ge = f('<p class="svelte-uxwqu2">We’ll send a setup link to your primary email address.</p>'), he = f('<p class="svelte-uxwqu2">Use at least 12 characters. The link works once and expires after one hour.</p>'), xe = f('<div class="flash flash-error svelte-uxwqu2" role="alert"> </div>'), be = f('<div class="flash flash-success svelte-uxwqu2" role="status"> </div>'), qe = f('<label for="email" class="svelte-uxwqu2">Primary email address</label><input id="email" type="email" class="form-control svelte-uxwqu2" autocomplete="username" required=""/>', 1), _e = f('<label for="password" class="svelte-uxwqu2"> </label><input id="password" type="password" class="form-control svelte-uxwqu2" maxlength="256" required=""/>', 1), ye = f('<label for="confirmation" class="svelte-uxwqu2">Confirm password</label><input id="confirmation" type="password" class="form-control svelte-uxwqu2" autocomplete="new-password" minlength="12" maxlength="256" required=""/>', 1), ke = f('<main class="auth-wrapper svelte-uxwqu2"><div class="auth-container svelte-uxwqu2"><header class="svelte-uxwqu2"><svg aria-hidden="true" viewBox="0 0 90 90" width="48" height="48" fill="currentColor"><rect x="12" y="12" width="66" height="66"></rect></svg> <h1 class="svelte-uxwqu2"> </h1> <!></header> <!> <!> <form class="Box Box-body svelte-uxwqu2"><!> <!> <!> <!></form> <footer class="svelte-uxwqu2"><button class="svelte-uxwqu2"> </button></footer></div></main>');
|
|
6
|
+
const Ce = {
|
|
7
7
|
hash: "svelte-uxwqu2",
|
|
8
|
-
code: ".auth-wrapper.svelte-uxwqu2 {min-height:
|
|
8
|
+
code: ".auth-wrapper.svelte-uxwqu2 {min-height:100dvh;display:grid;place-items:center;padding:1.5rem;background:var(--bgColor-muted);color:var(--fgColor-default);}.auth-container.svelte-uxwqu2 {width:100%;max-width:360px;}header.svelte-uxwqu2 {text-align:center;margin-bottom:1.5rem;}h1.svelte-uxwqu2 {font-size:1.4rem;font-weight:400;margin:1rem 0;}p.svelte-uxwqu2 {font-size:.875rem;color:var(--fgColor-muted);}form.svelte-uxwqu2 {display:grid;gap:.75rem;padding:1.5rem;background:var(--bgColor-default);border:1px solid var(--borderColor-default);border-radius:6px;}label.svelte-uxwqu2 {font-weight:600;font-size:.875rem;}input.svelte-uxwqu2 {width:100%;}.flash.svelte-uxwqu2 {margin-bottom:1rem;}footer.svelte-uxwqu2 {text-align:center;margin-top:1rem;}footer.svelte-uxwqu2 button:where(.svelte-uxwqu2) {border:0;background:none;color:var(--fgColor-accent);cursor:pointer;}"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
10
|
+
function Pe(q, z) {
|
|
11
|
+
ne(z, !0), le(q, Ce);
|
|
12
|
+
let E = ie(z, "config", 7), a = c("login"), C = c(""), m = c(""), _ = c(""), P = c(""), w = c(""), x = c(""), v = c(!1);
|
|
13
|
+
ue(() => {
|
|
14
|
+
const t = new URLSearchParams(window.location.hash.slice(1)).get("reset");
|
|
15
|
+
t && (o(P, t, !0), o(a, "reset"), window.history.replaceState({}, "", window.location.pathname));
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
a
|
|
17
|
+
function L(r) {
|
|
18
|
+
o(a, r, !0), o(w, ""), o(x, ""), o(m, ""), o(_, "");
|
|
19
|
+
}
|
|
20
|
+
async function W(r) {
|
|
21
|
+
if (r.preventDefault(), o(w, ""), o(x, ""), e(a) === "reset" && e(m) !== e(_)) {
|
|
22
|
+
o(w, "Passwords do not match.");
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
o(v, !0);
|
|
19
26
|
try {
|
|
20
|
-
const e = {}
|
|
21
|
-
t(_) && (e.email = t(_)), t(m) && (e.password = t(q)), t(f) && (e.otp = t(P));
|
|
22
|
-
const o = await (await fetch("/api/admin/login", {
|
|
27
|
+
const t = e(a) === "login" ? "login" : e(a) === "request" ? "password-reset/request" : "password-reset/complete", s = await fetch(`/api/admin/${t}`, {
|
|
23
28
|
method: "POST",
|
|
24
29
|
headers: { "Content-Type": "application/json" },
|
|
25
|
-
body: JSON.stringify(e)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
body: JSON.stringify(e(a) === "reset" ? { token: e(P), password: e(m) } : {
|
|
31
|
+
email: e(C),
|
|
32
|
+
password: e(a) === "login" ? e(m) : void 0
|
|
33
|
+
})
|
|
34
|
+
}), u = await s.json();
|
|
35
|
+
if (!s.ok) throw new Error(u.error || u.message || "Unable to continue. Try again.");
|
|
36
|
+
if (e(a) === "login") {
|
|
37
|
+
window.location.href = "/admin";
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
e(a) === "reset" && (o(P, ""), L("login")), o(x, u.message, !0);
|
|
41
|
+
} catch (t) {
|
|
42
|
+
o(w, t instanceof Error ? t.message : "Unable to connect. Try again.", !0);
|
|
30
43
|
} finally {
|
|
31
|
-
|
|
44
|
+
o(v, !1);
|
|
32
45
|
}
|
|
33
46
|
}
|
|
34
|
-
var
|
|
47
|
+
var X = {
|
|
35
48
|
get config() {
|
|
36
|
-
return
|
|
49
|
+
return E();
|
|
37
50
|
},
|
|
38
|
-
set config(
|
|
39
|
-
|
|
51
|
+
set config(r) {
|
|
52
|
+
E(r), me();
|
|
40
53
|
}
|
|
41
|
-
},
|
|
54
|
+
}, S = ke(), M = l(S), T = l(M), B = n(l(T), 2), Y = l(B, !0);
|
|
55
|
+
i(B);
|
|
56
|
+
var Z = n(B, 2);
|
|
57
|
+
{
|
|
58
|
+
var A = (r) => {
|
|
59
|
+
var t = ge();
|
|
60
|
+
d(r, t);
|
|
61
|
+
}, G = (r) => {
|
|
62
|
+
var t = he();
|
|
63
|
+
d(r, t);
|
|
64
|
+
};
|
|
65
|
+
g(Z, (r) => {
|
|
66
|
+
e(a) === "request" ? r(A) : e(a) === "reset" && r(G, 1);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
i(T);
|
|
70
|
+
var N = n(T, 2);
|
|
71
|
+
{
|
|
72
|
+
var H = (r) => {
|
|
73
|
+
var t = xe(), s = l(t, !0);
|
|
74
|
+
i(t), p(() => h(s, e(w))), d(r, t);
|
|
75
|
+
};
|
|
76
|
+
g(N, (r) => {
|
|
77
|
+
e(w) && r(H);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
var F = n(N, 2);
|
|
81
|
+
{
|
|
82
|
+
var I = (r) => {
|
|
83
|
+
var t = be(), s = l(t, !0);
|
|
84
|
+
i(t), p(() => h(s, e(x))), d(r, t);
|
|
85
|
+
};
|
|
86
|
+
g(F, (r) => {
|
|
87
|
+
e(x) && r(I);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
var y = n(F, 2), J = l(y);
|
|
42
91
|
{
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
|
|
92
|
+
var Q = (r) => {
|
|
93
|
+
var t = qe(), s = n(U(t));
|
|
94
|
+
$(s), p(() => s.disabled = e(v)), j(s, () => e(C), (u) => o(C, u)), d(r, t);
|
|
46
95
|
};
|
|
47
|
-
|
|
48
|
-
|
|
96
|
+
g(J, (r) => {
|
|
97
|
+
e(a) !== "reset" && r(Q);
|
|
49
98
|
});
|
|
50
99
|
}
|
|
51
|
-
var
|
|
100
|
+
var O = n(J, 2);
|
|
52
101
|
{
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
|
|
102
|
+
var V = (r) => {
|
|
103
|
+
var t = _e(), s = U(t), u = l(s, !0);
|
|
104
|
+
i(s);
|
|
105
|
+
var b = n(s);
|
|
106
|
+
$(b), p(() => {
|
|
107
|
+
h(u, e(a) === "reset" ? "New password" : "Password"), K(b, "autocomplete", e(a) === "reset" ? "new-password" : "current-password"), K(b, "minlength", e(a) === "reset" ? 12 : void 0), b.disabled = e(v);
|
|
108
|
+
}), j(b, () => e(m), (ae) => o(m, ae)), d(r, t);
|
|
56
109
|
};
|
|
57
|
-
|
|
58
|
-
|
|
110
|
+
g(O, (r) => {
|
|
111
|
+
e(a) !== "request" && r(V);
|
|
59
112
|
});
|
|
60
113
|
}
|
|
61
|
-
var R =
|
|
62
|
-
k(L), n(B);
|
|
63
|
-
var J = i(B, 2);
|
|
114
|
+
var R = n(O, 2);
|
|
64
115
|
{
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
}, F = (a) => {
|
|
69
|
-
var e = ve(), r = i(l(e), 2);
|
|
70
|
-
k(r), ne(r, "pattern", "[0-9]6"), n(e), g(() => r.disabled = t(v)), z(r, () => t(P), (o) => s(P, o)), u(a, e);
|
|
116
|
+
var ee = (r) => {
|
|
117
|
+
var t = ye(), s = n(U(t));
|
|
118
|
+
$(s), p(() => s.disabled = e(v)), j(s, () => e(_), (u) => o(_, u)), d(r, t);
|
|
71
119
|
};
|
|
72
|
-
|
|
73
|
-
|
|
120
|
+
g(R, (r) => {
|
|
121
|
+
e(a) === "reset" && r(ee);
|
|
74
122
|
});
|
|
75
123
|
}
|
|
76
|
-
var
|
|
77
|
-
|
|
124
|
+
var re = n(R, 2);
|
|
125
|
+
de(re, {
|
|
78
126
|
type: "submit",
|
|
79
127
|
variant: "primary",
|
|
80
|
-
size: "large",
|
|
81
128
|
block: !0,
|
|
82
129
|
get disabled() {
|
|
83
|
-
return
|
|
130
|
+
return e(v);
|
|
84
131
|
},
|
|
85
|
-
children: (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var h = A("Please wait...");
|
|
90
|
-
u(d, h);
|
|
91
|
-
}, Q = (d) => {
|
|
92
|
-
var h = A("Sign in");
|
|
93
|
-
u(d, h);
|
|
94
|
-
}, V = (d) => {
|
|
95
|
-
var h = A("Continue");
|
|
96
|
-
u(d, h);
|
|
97
|
-
};
|
|
98
|
-
y(o, (d) => {
|
|
99
|
-
t(v) ? d(I) : t(f) ? d(Q, 1) : d(V, -1);
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
u(a, r);
|
|
132
|
+
children: (r, t) => {
|
|
133
|
+
we();
|
|
134
|
+
var s = ve();
|
|
135
|
+
p(() => h(s, e(v) ? "Please wait…" : e(a) === "login" ? "Sign in" : e(a) === "request" ? "Send reset link" : "Save password")), d(r, s);
|
|
103
136
|
},
|
|
104
137
|
$$slots: { default: !0 }
|
|
105
|
-
}),
|
|
138
|
+
}), i(y);
|
|
139
|
+
var D = n(y, 2), k = l(D), te = l(k, !0);
|
|
140
|
+
return i(k), i(D), i(M), i(S), p(() => {
|
|
141
|
+
h(Y, e(a) === "login" ? "Sign in to hintergrund" : e(a) === "request" ? "Reset your password" : "Choose your password"), k.disabled = e(v), h(te, e(a) === "login" ? "Forgot your password?" : "Back to sign in");
|
|
142
|
+
}), ce("submit", y, W), fe("click", k, () => L(e(a) === "login" ? "request" : "login")), d(q, S), pe(X);
|
|
106
143
|
}
|
|
107
|
-
|
|
144
|
+
se(["click"]);
|
|
145
|
+
customElements.define("hintergrund-login", oe(Pe, { config: {} }, [], []));
|
|
108
146
|
export {
|
|
109
|
-
|
|
147
|
+
Pe as default
|
|
110
148
|
};
|