@hintergrund/ui 0.3.0 → 0.3.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 (25) hide show
  1. package/dist/{BuilderAgentPane-EOT6JCrB.js → BuilderAgentPane-B7-K-t7-.js} +3356 -3267
  2. package/dist/IntegrationHealth-CGj9Gtg3.js +246 -0
  3. package/dist/admin.js +8119 -8540
  4. package/dist/{anthropic-messages-Dl81zJep.js → anthropic-messages-B9cFrV8_.js} +1 -1
  5. package/dist/{azure-openai-responses-CrrDLA8-.js → azure-openai-responses-DDg04vbg.js} +2 -2
  6. package/dist/builder.js +5 -5
  7. package/dist/config.types-iZoywORE.js +15 -0
  8. package/dist/{global-1QvFLK43.js → global-CGPq4E9I.js} +4467 -4457
  9. package/dist/{google-generative-ai-DrT6NouV.js → google-generative-ai-CLKiyDxm.js} +8 -8
  10. package/dist/{google-shared-mbv_hDdk.js → google-shared-BVSu3Wpo.js} +1 -1
  11. package/dist/{google-vertex-CjHfRBgt.js → google-vertex-Cvrx6WS_.js} +15 -15
  12. package/dist/{legacy-ByJa-XpS.js → legacy-Ch3FhyVA.js} +1 -1
  13. package/dist/login.js +50 -50
  14. package/dist/mail.js +195 -195
  15. package/dist/{mistral-conversations-DpV92sl0.js → mistral-conversations-C7SJfbbS.js} +12 -12
  16. package/dist/{openai-codex-responses-Dw4e7edD.js → openai-codex-responses-BLdLSFPf.js} +2 -2
  17. package/dist/{openai-completions-DfWju8NF.js → openai-completions-CSZqjwmH.js} +16 -16
  18. package/dist/{openai-responses-D22Qtayx.js → openai-responses-BLltsSBW.js} +2 -2
  19. package/dist/{openai-responses-shared-DGHcHw_F.js → openai-responses-shared-C_oYyHxW.js} +1 -1
  20. package/dist/{pi-messages-BJSKKlfC.js → pi-messages-BbItJqhU.js} +9 -9
  21. package/dist/{select-cKciKujV.js → select-nmcCSHOs.js} +3 -3
  22. package/dist/setup.js +311 -504
  23. package/package.json +67 -67
  24. package/dist/IntegrationHealth-ZCazAhaQ.js +0 -280
  25. package/dist/brand-DteO2G6R.js +0 -95
@@ -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-mbv_hDdk.js";
2
- import { x as P, z as E, y as A } from "./BuilderAgentPane-EOT6JCrB.js";
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 = U(t, g, n?.headers);
37
- let s = D(t, a, n);
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);
@@ -156,11 +156,11 @@ const k = (t, a, n) => {
156
156
  ...e,
157
157
  thinking: {
158
158
  enabled: !0,
159
- budgetTokens: z(s, c, n.thinkingBudgets)
159
+ budgetTokens: j(s, c, n.thinkingBudgets)
160
160
  }
161
161
  });
162
162
  };
163
- function U(t, a, n) {
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 D(t, a, n = {}) {
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 = {
@@ -240,7 +240,7 @@ function q(t, a) {
240
240
  return "HIGH";
241
241
  }
242
242
  }
243
- function z(t, a, n) {
243
+ function j(t, a, n) {
244
244
  return n?.[a] !== void 0 ? n[a] : t.id.includes("2.5-pro") ? {
245
245
  minimal: 128,
246
246
  low: 2048,
@@ -1,4 +1,4 @@
1
- import { bH as li } from "./global-1QvFLK43.js";
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,13 +1,13 @@
1
- import { r as v, i as R, a as O, m as _, G as x, c as M, s as S, b as G, d as P, T as h, R as A } from "./google-shared-mbv_hDdk.js";
2
- import { x as N, z as U, y as D } from "./BuilderAgentPane-EOT6JCrB.js";
3
- import { f as V, n as H } from "./error-body-BUPcH4GF.js";
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";
7
7
  typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
8
8
  return Promise.resolve().then(e);
9
9
  } });
10
- const L = "v1", $ = "gcp-vertex-credentials", B = {
10
+ const w = "v1", $ = "gcp-vertex-credentials", B = {
11
11
  THINKING_LEVEL_UNSPECIFIED: h.THINKING_LEVEL_UNSPECIFIED,
12
12
  MINIMAL: h.MINIMAL,
13
13
  LOW: h.LOW,
@@ -116,7 +116,7 @@ const I = (e, t, i) => {
116
116
  cacheWrite: 0,
117
117
  total: 0
118
118
  }
119
- }, U(e, n.usage));
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(H(s)), o.push({ type: "error", reason: n.stopReason, error: n }), o.end();
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 = D(e, i.reasoning), s = n === "off" ? "high" : n, u = e;
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: {
@@ -167,24 +167,24 @@ const I = (e, t, i) => {
167
167
  };
168
168
  function F(e, t, i, o, n) {
169
169
  const s = Q(n);
170
- return new x({
170
+ return new L({
171
171
  vertexai: !0,
172
172
  project: t,
173
173
  location: i,
174
- apiVersion: L,
174
+ apiVersion: w,
175
175
  ...s ? { googleAuthOptions: s } : {},
176
- httpOptions: w(e, o)
176
+ httpOptions: x(e, o)
177
177
  });
178
178
  }
179
179
  function J(e, t, i) {
180
- return new x({
180
+ return new L({
181
181
  vertexai: !0,
182
182
  apiKey: t,
183
- apiVersion: L,
184
- httpOptions: w(e, i)
183
+ apiVersion: w,
184
+ httpOptions: x(e, i)
185
185
  });
186
186
  }
187
- function w(e, t) {
187
+ function x(e, t) {
188
188
  const i = {}, o = z(e.baseUrl);
189
189
  o && (i.baseUrl = o, i.baseUrlResourceScope = A.COLLECTION, X(o) && (i.apiVersion = ""));
190
190
  const n = K({ ...e.headers, ...t });
@@ -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 = S(e.id), u = t.tools?.length ? G(t.tools, i.toolChoice, s) : void 0, d = {
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 && {
@@ -1,4 +1,4 @@
1
- import { bz as o } from "./global-1QvFLK43.js";
1
+ import { bG as o } from "./global-CGPq4E9I.js";
2
2
  typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
3
3
  return Promise.resolve().then(e);
4
4
  } });
package/dist/login.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Y as se, Z as oe, _ as ne, $ as le, a0 as ie, a4 as ue, a5 as o, a7 as n, ac as l, a6 as g, ap as de, aq as ve, aj as p, a8 as d, A as e, aD as ce, ao as fe, a9 as pe, a1 as c, ab as f, ad as me, ae as i, ag as we, an as h, af as $, ay as E, aE as U, al as J } from "./global-1QvFLK43.js";
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
2
  typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(q) {
3
3
  return Promise.resolve().then(q);
4
4
  } });
@@ -7,14 +7,14 @@ const Ce = {
7
7
  hash: "svelte-uxwqu2",
8
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 Se(q, j) {
11
- ne(j, !0), le(q, Ce);
12
- let z = ie(j, "config", 7), a = c("login"), C = c(""), m = c(""), _ = c(""), S = c(""), w = c(""), x = c(""), v = c(!1);
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
13
  ue(() => {
14
14
  const t = new URLSearchParams(window.location.hash.slice(1)).get("reset");
15
- t && (o(S, t, !0), o(a, "reset"), window.history.replaceState({}, "", window.location.pathname));
15
+ t && (o(P, t, !0), o(a, "reset"), window.history.replaceState({}, "", window.location.pathname));
16
16
  });
17
- function D(r) {
17
+ function L(r) {
18
18
  o(a, r, !0), o(w, ""), o(x, ""), o(m, ""), o(_, "");
19
19
  }
20
20
  async function W(r) {
@@ -27,7 +27,7 @@ function Se(q, j) {
27
27
  const t = e(a) === "login" ? "login" : e(a) === "request" ? "password-reset/request" : "password-reset/complete", s = await fetch(`/api/admin/${t}`, {
28
28
  method: "POST",
29
29
  headers: { "Content-Type": "application/json" },
30
- body: JSON.stringify(e(a) === "reset" ? { token: e(S), password: e(m) } : {
30
+ body: JSON.stringify(e(a) === "reset" ? { token: e(P), password: e(m) } : {
31
31
  email: e(C),
32
32
  password: e(a) === "login" ? e(m) : void 0
33
33
  })
@@ -37,91 +37,91 @@ function Se(q, j) {
37
37
  window.location.href = "/admin";
38
38
  return;
39
39
  }
40
- e(a) === "reset" && (o(S, ""), D("login")), o(x, u.message, !0);
40
+ e(a) === "reset" && (o(P, ""), L("login")), o(x, u.message, !0);
41
41
  } catch (t) {
42
42
  o(w, t instanceof Error ? t.message : "Unable to connect. Try again.", !0);
43
43
  } finally {
44
44
  o(v, !1);
45
45
  }
46
46
  }
47
- var Y = {
47
+ var X = {
48
48
  get config() {
49
- return z();
49
+ return E();
50
50
  },
51
51
  set config(r) {
52
- z(r), me();
52
+ E(r), me();
53
53
  }
54
- }, P = ke(), L = l(P), T = l(L), B = n(l(T), 2), Z = l(B, !0);
54
+ }, S = ke(), M = l(S), T = l(M), B = n(l(T), 2), Y = l(B, !0);
55
55
  i(B);
56
- var G = n(B, 2);
56
+ var Z = n(B, 2);
57
57
  {
58
- var H = (r) => {
58
+ var A = (r) => {
59
59
  var t = ge();
60
60
  d(r, t);
61
- }, I = (r) => {
61
+ }, G = (r) => {
62
62
  var t = he();
63
63
  d(r, t);
64
64
  };
65
- g(G, (r) => {
66
- e(a) === "request" ? r(H) : e(a) === "reset" && r(I, 1);
65
+ g(Z, (r) => {
66
+ e(a) === "request" ? r(A) : e(a) === "reset" && r(G, 1);
67
67
  });
68
68
  }
69
69
  i(T);
70
- var M = n(T, 2);
70
+ var N = n(T, 2);
71
71
  {
72
- var K = (r) => {
72
+ var H = (r) => {
73
73
  var t = xe(), s = l(t, !0);
74
74
  i(t), p(() => h(s, e(w))), d(r, t);
75
75
  };
76
- g(M, (r) => {
77
- e(w) && r(K);
76
+ g(N, (r) => {
77
+ e(w) && r(H);
78
78
  });
79
79
  }
80
- var N = n(M, 2);
80
+ var F = n(N, 2);
81
81
  {
82
- var Q = (r) => {
82
+ var I = (r) => {
83
83
  var t = be(), s = l(t, !0);
84
84
  i(t), p(() => h(s, e(x))), d(r, t);
85
85
  };
86
- g(N, (r) => {
87
- e(x) && r(Q);
86
+ g(F, (r) => {
87
+ e(x) && r(I);
88
88
  });
89
89
  }
90
- var y = n(N, 2), O = l(y);
90
+ var y = n(F, 2), J = l(y);
91
91
  {
92
- var V = (r) => {
93
- var t = qe(), s = n($(t));
94
- E(s), p(() => s.disabled = e(v)), U(s, () => e(C), (u) => o(C, u)), d(r, t);
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);
95
95
  };
96
- g(O, (r) => {
97
- e(a) !== "reset" && r(V);
96
+ g(J, (r) => {
97
+ e(a) !== "reset" && r(Q);
98
98
  });
99
99
  }
100
- var R = n(O, 2);
100
+ var O = n(J, 2);
101
101
  {
102
- var X = (r) => {
103
- var t = _e(), s = $(t), u = l(s, !0);
102
+ var V = (r) => {
103
+ var t = _e(), s = U(t), u = l(s, !0);
104
104
  i(s);
105
105
  var b = n(s);
106
- E(b), p(() => {
107
- h(u, e(a) === "reset" ? "New password" : "Password"), J(b, "autocomplete", e(a) === "reset" ? "new-password" : "current-password"), J(b, "minlength", e(a) === "reset" ? 12 : void 0), b.disabled = e(v);
108
- }), U(b, () => e(m), (ae) => o(m, ae)), d(r, t);
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);
109
109
  };
110
- g(R, (r) => {
111
- e(a) !== "request" && r(X);
110
+ g(O, (r) => {
111
+ e(a) !== "request" && r(V);
112
112
  });
113
113
  }
114
- var A = n(R, 2);
114
+ var R = n(O, 2);
115
115
  {
116
116
  var ee = (r) => {
117
- var t = ye(), s = n($(t));
118
- E(s), p(() => s.disabled = e(v)), U(s, () => e(_), (u) => o(_, u)), d(r, t);
117
+ var t = ye(), s = n(U(t));
118
+ $(s), p(() => s.disabled = e(v)), j(s, () => e(_), (u) => o(_, u)), d(r, t);
119
119
  };
120
- g(A, (r) => {
120
+ g(R, (r) => {
121
121
  e(a) === "reset" && r(ee);
122
122
  });
123
123
  }
124
- var re = n(A, 2);
124
+ var re = n(R, 2);
125
125
  de(re, {
126
126
  type: "submit",
127
127
  variant: "primary",
@@ -136,13 +136,13 @@ function Se(q, j) {
136
136
  },
137
137
  $$slots: { default: !0 }
138
138
  }), i(y);
139
- var F = n(y, 2), k = l(F), te = l(k, !0);
140
- return i(k), i(F), i(L), i(P), p(() => {
141
- h(Z, 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, () => D(e(a) === "login" ? "request" : "login")), d(q, P), pe(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);
143
143
  }
144
144
  se(["click"]);
145
- customElements.define("hintergrund-login", oe(Se, { config: {} }, [], []));
145
+ customElements.define("hintergrund-login", oe(Pe, { config: {} }, [], []));
146
146
  export {
147
- Se as default
147
+ Pe as default
148
148
  };