@datatechsolutions/ui 3.8.0 → 3.9.0
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/astrlabe/index.js +107 -107
- package/dist/astrlabe/index.mjs +3 -3
- package/dist/astrlabe/workflow-canvas.js +3 -3
- package/dist/astrlabe/workflow-canvas.mjs +2 -2
- package/dist/{chunk-KKXI7CPF.mjs → chunk-2E7HYTS7.mjs} +3 -3
- package/dist/{chunk-KKXI7CPF.mjs.map → chunk-2E7HYTS7.mjs.map} +1 -1
- package/dist/{chunk-EWYAM4WJ.mjs → chunk-2ZY3IQ2I.mjs} +3 -3
- package/dist/{chunk-EWYAM4WJ.mjs.map → chunk-2ZY3IQ2I.mjs.map} +1 -1
- package/dist/{chunk-VPFVW7ZF.js → chunk-6E2YH67A.js} +35 -35
- package/dist/{chunk-VPFVW7ZF.js.map → chunk-6E2YH67A.js.map} +1 -1
- package/dist/{chunk-A4A3SQTV.mjs → chunk-6QJI5YOJ.mjs} +3 -3
- package/dist/{chunk-A4A3SQTV.mjs.map → chunk-6QJI5YOJ.mjs.map} +1 -1
- package/dist/{chunk-3X3IYDG6.js → chunk-7AM2SXEF.js} +68 -68
- package/dist/{chunk-3X3IYDG6.js.map → chunk-7AM2SXEF.js.map} +1 -1
- package/dist/{chunk-H37VDL7Y.js → chunk-A2RIX2RK.js} +4 -4
- package/dist/{chunk-H37VDL7Y.js.map → chunk-A2RIX2RK.js.map} +1 -1
- package/dist/{chunk-32DHEVOH.mjs → chunk-ARLYOLSO.mjs} +3 -3
- package/dist/{chunk-32DHEVOH.mjs.map → chunk-ARLYOLSO.mjs.map} +1 -1
- package/dist/{chunk-5YVOLHSW.mjs → chunk-AXBD6OAF.mjs} +4 -4
- package/dist/{chunk-5YVOLHSW.mjs.map → chunk-AXBD6OAF.mjs.map} +1 -1
- package/dist/{chunk-ZP37M2QK.mjs → chunk-BWUFLW5W.mjs} +6 -6
- package/dist/{chunk-ZP37M2QK.mjs.map → chunk-BWUFLW5W.mjs.map} +1 -1
- package/dist/{chunk-HBOORO52.js → chunk-CLTNCBSP.js} +4 -4
- package/dist/{chunk-HBOORO52.js.map → chunk-CLTNCBSP.js.map} +1 -1
- package/dist/{chunk-F35GFICG.js → chunk-CRBGZA6Y.js} +13 -13
- package/dist/{chunk-F35GFICG.js.map → chunk-CRBGZA6Y.js.map} +1 -1
- package/dist/{chunk-7JZFNKJD.js → chunk-DQIEVLA3.js} +35 -35
- package/dist/{chunk-7JZFNKJD.js.map → chunk-DQIEVLA3.js.map} +1 -1
- package/dist/{chunk-57E4TCB2.mjs → chunk-EAIE4QGD.mjs} +3 -3
- package/dist/{chunk-57E4TCB2.mjs.map → chunk-EAIE4QGD.mjs.map} +1 -1
- package/dist/{chunk-5W6LMDXV.mjs → chunk-GQWC4EKE.mjs} +4 -4
- package/dist/{chunk-5W6LMDXV.mjs.map → chunk-GQWC4EKE.mjs.map} +1 -1
- package/dist/{chunk-FKUIVS6I.js → chunk-IVKFXPLO.js} +28 -28
- package/dist/{chunk-FKUIVS6I.js.map → chunk-IVKFXPLO.js.map} +1 -1
- package/dist/{chunk-FNA66TT4.js → chunk-MT66VKLS.js} +163 -219
- package/dist/chunk-MT66VKLS.js.map +1 -0
- package/dist/{chunk-74BU2EBZ.mjs → chunk-OEZ7GAJY.mjs} +6 -6
- package/dist/{chunk-74BU2EBZ.mjs.map → chunk-OEZ7GAJY.mjs.map} +1 -1
- package/dist/{chunk-CZZOCKEA.mjs → chunk-OVQ4MKCV.mjs} +3 -3
- package/dist/{chunk-CZZOCKEA.mjs.map → chunk-OVQ4MKCV.mjs.map} +1 -1
- package/dist/{chunk-WDBVIU7W.mjs → chunk-PD3JLDA5.mjs} +3 -3
- package/dist/{chunk-WDBVIU7W.mjs.map → chunk-PD3JLDA5.mjs.map} +1 -1
- package/dist/{chunk-TJPPZU77.js → chunk-R6GEJBFC.js} +34 -34
- package/dist/{chunk-TJPPZU77.js.map → chunk-R6GEJBFC.js.map} +1 -1
- package/dist/{chunk-Q4QORAMH.js → chunk-RFUSH7WD.js} +10 -10
- package/dist/{chunk-Q4QORAMH.js.map → chunk-RFUSH7WD.js.map} +1 -1
- package/dist/{chunk-VS6PTRQ7.mjs → chunk-SJ6SUS7H.mjs} +3 -3
- package/dist/{chunk-VS6PTRQ7.mjs.map → chunk-SJ6SUS7H.mjs.map} +1 -1
- package/dist/{chunk-E57RZXOR.js → chunk-T4IYOKHR.js} +25 -25
- package/dist/{chunk-E57RZXOR.js.map → chunk-T4IYOKHR.js.map} +1 -1
- package/dist/{chunk-3H5CFLVK.js → chunk-U6VFS3RD.js} +135 -135
- package/dist/{chunk-3H5CFLVK.js.map → chunk-U6VFS3RD.js.map} +1 -1
- package/dist/{chunk-RCHTRG7R.js → chunk-UZIICTIY.js} +55 -55
- package/dist/{chunk-RCHTRG7R.js.map → chunk-UZIICTIY.js.map} +1 -1
- package/dist/{chunk-TCP45Q4B.js → chunk-WJENX6KB.js} +9 -9
- package/dist/{chunk-TCP45Q4B.js.map → chunk-WJENX6KB.js.map} +1 -1
- package/dist/{chunk-PYNXIDG3.mjs → chunk-WS3IJFPW.mjs} +3 -3
- package/dist/{chunk-PYNXIDG3.mjs.map → chunk-WS3IJFPW.mjs.map} +1 -1
- package/dist/{chunk-Q7HRCCFT.js → chunk-ZDXEGSCF.js} +45 -45
- package/dist/{chunk-Q7HRCCFT.js.map → chunk-ZDXEGSCF.js.map} +1 -1
- package/dist/{chunk-PCUINUIC.mjs → chunk-ZQEMKEEH.mjs} +3 -3
- package/dist/{chunk-PCUINUIC.mjs.map → chunk-ZQEMKEEH.mjs.map} +1 -1
- package/dist/{chunk-E6C7MFHJ.mjs → chunk-ZQRUAXGP.mjs} +164 -218
- package/dist/chunk-ZQRUAXGP.mjs.map +1 -0
- package/dist/index.d.mts +43 -42
- package/dist/index.d.ts +43 -42
- package/dist/index.js +662 -670
- package/dist/index.mjs +1 -1
- package/dist/platform/admin/index.js +9 -9
- package/dist/platform/admin/index.mjs +3 -3
- package/dist/platform/agents-workspace.js +6 -6
- package/dist/platform/agents-workspace.mjs +5 -5
- package/dist/platform/app-shell.js +3 -3
- package/dist/platform/app-shell.mjs +2 -2
- package/dist/platform/auth/index.js +21 -21
- package/dist/platform/auth/index.mjs +3 -3
- package/dist/platform/billing/index.js +3 -3
- package/dist/platform/billing/index.mjs +2 -2
- package/dist/platform/impersonation/index.js +3 -3
- package/dist/platform/impersonation/index.mjs +2 -2
- package/dist/platform/index.d.mts +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +74 -74
- package/dist/platform/index.mjs +17 -17
- package/dist/platform/pages/index.d.mts +93 -4
- package/dist/platform/pages/index.d.ts +93 -4
- package/dist/platform/pages/index.js +1009 -575
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +805 -372
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +6 -6
- package/dist/platform/settings/index.mjs +5 -5
- package/dist/platform/workflow-canvas-shell.js +4 -4
- package/dist/platform/workflow-canvas-shell.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-E6C7MFHJ.mjs.map +0 -1
- package/dist/chunk-FNA66TT4.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkQGLGQXJE_js = require('./chunk-QGLGQXJE.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkMT66VKLS_js = require('./chunk-MT66VKLS.js');
|
|
6
6
|
var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
|
|
7
7
|
var chunkBHOT22QL_js = require('./chunk-BHOT22QL.js');
|
|
8
8
|
var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
|
|
@@ -20,7 +20,7 @@ function MfaChallenge({
|
|
|
20
20
|
embedded = false
|
|
21
21
|
}) {
|
|
22
22
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
23
|
-
const { verifyMFA } =
|
|
23
|
+
const { verifyMFA } = chunkMT66VKLS_js.useAuth();
|
|
24
24
|
const [method, setMethod] = react.useState("totp");
|
|
25
25
|
const [totpCode, setTotpCode] = react.useState("");
|
|
26
26
|
const [backupCode, setBackupCode] = react.useState("");
|
|
@@ -84,7 +84,7 @@ function MfaChallenge({
|
|
|
84
84
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: method === "totp" ? t("mfa.challenge.descriptionTotp") : t("mfa.challenge.descriptionBackup") })
|
|
85
85
|
] }),
|
|
86
86
|
availableMethods.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
87
|
-
|
|
87
|
+
chunkMT66VKLS_js.SegmentedControl,
|
|
88
88
|
{
|
|
89
89
|
segments,
|
|
90
90
|
value: method,
|
|
@@ -105,11 +105,11 @@ function MfaChallenge({
|
|
|
105
105
|
autoFocus: true
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
|
-
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
108
|
+
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Spinner, {}) })
|
|
109
109
|
] }),
|
|
110
110
|
method === "backup" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
111
111
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
-
|
|
112
|
+
chunkMT66VKLS_js.Input,
|
|
113
113
|
{
|
|
114
114
|
value: backupCode,
|
|
115
115
|
onChange: (event) => setBackupCode(event.target.value),
|
|
@@ -146,7 +146,7 @@ function MfaChallenge({
|
|
|
146
146
|
) })
|
|
147
147
|
] });
|
|
148
148
|
if (embedded) return content;
|
|
149
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
149
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: content });
|
|
150
150
|
}
|
|
151
151
|
function SignIn({
|
|
152
152
|
onSuccess,
|
|
@@ -160,8 +160,8 @@ function SignIn({
|
|
|
160
160
|
heroPanel
|
|
161
161
|
}) {
|
|
162
162
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
163
|
-
const { loginWithCredentials, loginWithProvider } =
|
|
164
|
-
const discovered =
|
|
163
|
+
const { loginWithCredentials, loginWithProvider } = chunkMT66VKLS_js.useAuth();
|
|
164
|
+
const discovered = chunkMT66VKLS_js.useSocialProviders();
|
|
165
165
|
const effectiveSocialProviders = socialProviders ?? discovered.providers;
|
|
166
166
|
const [email, setEmail] = react.useState(defaultEmail);
|
|
167
167
|
const [password, setPassword] = react.useState("");
|
|
@@ -214,7 +214,7 @@ function SignIn({
|
|
|
214
214
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red", role: "alert", children: error }),
|
|
215
215
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
216
216
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
217
|
-
|
|
217
|
+
chunkMT66VKLS_js.Input,
|
|
218
218
|
{
|
|
219
219
|
label: t("emailLabel"),
|
|
220
220
|
type: "email",
|
|
@@ -227,7 +227,7 @@ function SignIn({
|
|
|
227
227
|
}
|
|
228
228
|
),
|
|
229
229
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
-
|
|
230
|
+
chunkMT66VKLS_js.PasswordInput,
|
|
231
231
|
{
|
|
232
232
|
label: t("passwordLabel"),
|
|
233
233
|
value: password,
|
|
@@ -314,7 +314,7 @@ function VerifyEmail({
|
|
|
314
314
|
embedded = false
|
|
315
315
|
}) {
|
|
316
316
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
317
|
-
const { client } =
|
|
317
|
+
const { client } = chunkMT66VKLS_js.useAuth();
|
|
318
318
|
const [code, setCode] = react.useState("");
|
|
319
319
|
const [error, setError] = react.useState(null);
|
|
320
320
|
const [isSubmitting, setIsSubmitting] = react.useState(false);
|
|
@@ -382,7 +382,7 @@ function VerifyEmail({
|
|
|
382
382
|
autoFocus: true
|
|
383
383
|
}
|
|
384
384
|
),
|
|
385
|
-
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
385
|
+
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Spinner, {}) }),
|
|
386
386
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-1", children: [
|
|
387
387
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: t("verifyEmailNoCode") }),
|
|
388
388
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -399,7 +399,7 @@ function VerifyEmail({
|
|
|
399
399
|
] })
|
|
400
400
|
] });
|
|
401
401
|
if (embedded) return content;
|
|
402
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
402
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: content });
|
|
403
403
|
}
|
|
404
404
|
function SignUp({
|
|
405
405
|
onSuccess,
|
|
@@ -410,8 +410,8 @@ function SignUp({
|
|
|
410
410
|
heroPanel
|
|
411
411
|
}) {
|
|
412
412
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
413
|
-
const { client, loginWithProvider } =
|
|
414
|
-
const discovered =
|
|
413
|
+
const { client, loginWithProvider } = chunkMT66VKLS_js.useAuth();
|
|
414
|
+
const discovered = chunkMT66VKLS_js.useSocialProviders();
|
|
415
415
|
const effectiveSocialProviders = socialProviders ?? discovered.providers;
|
|
416
416
|
const [phase, setPhase] = react.useState("form");
|
|
417
417
|
const [registeredEmail, setRegisteredEmail] = react.useState("");
|
|
@@ -466,7 +466,7 @@ function SignUp({
|
|
|
466
466
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red", role: "alert", children: error }),
|
|
467
467
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
468
468
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
469
|
-
|
|
469
|
+
chunkMT66VKLS_js.Input,
|
|
470
470
|
{
|
|
471
471
|
label: t("nameLabel"),
|
|
472
472
|
type: "text",
|
|
@@ -480,7 +480,7 @@ function SignUp({
|
|
|
480
480
|
}
|
|
481
481
|
),
|
|
482
482
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
483
|
-
|
|
483
|
+
chunkMT66VKLS_js.Input,
|
|
484
484
|
{
|
|
485
485
|
label: t("emailLabel"),
|
|
486
486
|
type: "email",
|
|
@@ -495,7 +495,7 @@ function SignUp({
|
|
|
495
495
|
),
|
|
496
496
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
497
497
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
498
|
-
|
|
498
|
+
chunkMT66VKLS_js.PasswordInput,
|
|
499
499
|
{
|
|
500
500
|
label: t("passwordLabel"),
|
|
501
501
|
value: password,
|
|
@@ -517,7 +517,7 @@ function SignUp({
|
|
|
517
517
|
)
|
|
518
518
|
] }),
|
|
519
519
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
520
|
-
|
|
520
|
+
chunkMT66VKLS_js.FormCheckbox,
|
|
521
521
|
{
|
|
522
522
|
checked: termsAccepted,
|
|
523
523
|
onChange: setTermsAccepted,
|
|
@@ -577,7 +577,7 @@ function ForgotPassword({
|
|
|
577
577
|
embedded = false
|
|
578
578
|
}) {
|
|
579
579
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
580
|
-
const { client } =
|
|
580
|
+
const { client } = chunkMT66VKLS_js.useAuth();
|
|
581
581
|
const [phase, setPhase] = react.useState("form");
|
|
582
582
|
const [email, setEmail] = react.useState(defaultEmail);
|
|
583
583
|
const [error, setError] = react.useState(null);
|
|
@@ -601,7 +601,7 @@ function ForgotPassword({
|
|
|
601
601
|
);
|
|
602
602
|
const sentContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
|
|
603
603
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
604
|
-
|
|
604
|
+
chunkMT66VKLS_js.EmptyState,
|
|
605
605
|
{
|
|
606
606
|
variant: "minimal",
|
|
607
607
|
icon: outline.CheckCircleIcon,
|
|
@@ -626,7 +626,7 @@ function ForgotPassword({
|
|
|
626
626
|
] }),
|
|
627
627
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red", role: "alert", children: error }),
|
|
628
628
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
629
|
-
|
|
629
|
+
chunkMT66VKLS_js.BaseForm,
|
|
630
630
|
{
|
|
631
631
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.EnvelopeIcon, { className: "h-5 w-5" }),
|
|
632
632
|
iconColor: "blue",
|
|
@@ -638,7 +638,7 @@ function ForgotPassword({
|
|
|
638
638
|
submitDisabled: !email.trim(),
|
|
639
639
|
showHeader: false,
|
|
640
640
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
641
|
-
|
|
641
|
+
chunkMT66VKLS_js.Input,
|
|
642
642
|
{
|
|
643
643
|
label: t("emailLabel"),
|
|
644
644
|
type: "email",
|
|
@@ -666,7 +666,7 @@ function ForgotPassword({
|
|
|
666
666
|
] });
|
|
667
667
|
const activeContent = phase === "sent" ? sentContent : formContent;
|
|
668
668
|
if (embedded) return activeContent;
|
|
669
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
669
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
670
670
|
}
|
|
671
671
|
function ResetPassword({
|
|
672
672
|
token,
|
|
@@ -675,7 +675,7 @@ function ResetPassword({
|
|
|
675
675
|
embedded = false
|
|
676
676
|
}) {
|
|
677
677
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
678
|
-
const { client } =
|
|
678
|
+
const { client } = chunkMT66VKLS_js.useAuth();
|
|
679
679
|
const [phase, setPhase] = react.useState("form");
|
|
680
680
|
const [password, setPassword] = react.useState("");
|
|
681
681
|
const [confirmPassword, setConfirmPassword] = react.useState("");
|
|
@@ -705,7 +705,7 @@ function ResetPassword({
|
|
|
705
705
|
[client, token, password, passwordsMatch, onSuccess, t]
|
|
706
706
|
);
|
|
707
707
|
const successContent = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-5", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
708
|
-
|
|
708
|
+
chunkMT66VKLS_js.EmptyState,
|
|
709
709
|
{
|
|
710
710
|
variant: "minimal",
|
|
711
711
|
icon: outline.CheckCircleIcon,
|
|
@@ -722,7 +722,7 @@ function ResetPassword({
|
|
|
722
722
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
723
723
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
724
724
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
725
|
-
|
|
725
|
+
chunkMT66VKLS_js.PasswordInput,
|
|
726
726
|
{
|
|
727
727
|
label: t("newPasswordLabel"),
|
|
728
728
|
value: password,
|
|
@@ -745,7 +745,7 @@ function ResetPassword({
|
|
|
745
745
|
)
|
|
746
746
|
] }),
|
|
747
747
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
748
|
-
|
|
748
|
+
chunkMT66VKLS_js.PasswordInput,
|
|
749
749
|
{
|
|
750
750
|
label: t("confirmPasswordLabel"),
|
|
751
751
|
value: confirmPassword,
|
|
@@ -774,7 +774,7 @@ function ResetPassword({
|
|
|
774
774
|
] });
|
|
775
775
|
const activeContent = phase === "success" ? successContent : formContent;
|
|
776
776
|
if (embedded) return activeContent;
|
|
777
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
777
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
778
778
|
}
|
|
779
779
|
function PasswordlessSignIn({
|
|
780
780
|
defaultMethod = "email",
|
|
@@ -785,7 +785,7 @@ function PasswordlessSignIn({
|
|
|
785
785
|
embedded = false
|
|
786
786
|
}) {
|
|
787
787
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
788
|
-
const { client } =
|
|
788
|
+
const { client } = chunkMT66VKLS_js.useAuth();
|
|
789
789
|
const [step, setStep] = react.useState("input");
|
|
790
790
|
const [channel, setChannel] = react.useState(
|
|
791
791
|
allowedChannels.includes(defaultMethod) ? defaultMethod : allowedChannels[0] ?? "email"
|
|
@@ -835,7 +835,7 @@ function PasswordlessSignIn({
|
|
|
835
835
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: t("passwordlessSubtitle") })
|
|
836
836
|
] }),
|
|
837
837
|
allowedChannels.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
838
|
-
|
|
838
|
+
chunkMT66VKLS_js.SegmentedControl,
|
|
839
839
|
{
|
|
840
840
|
segments: channelSegments,
|
|
841
841
|
value: channel,
|
|
@@ -849,7 +849,7 @@ function PasswordlessSignIn({
|
|
|
849
849
|
) }),
|
|
850
850
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red", role: "alert", children: error }),
|
|
851
851
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
852
|
-
|
|
852
|
+
chunkMT66VKLS_js.Input,
|
|
853
853
|
{
|
|
854
854
|
label: channel === "email" ? t("emailLabel") : t("phoneLabel"),
|
|
855
855
|
type: channel === "email" ? "email" : "tel",
|
|
@@ -886,7 +886,7 @@ function PasswordlessSignIn({
|
|
|
886
886
|
] });
|
|
887
887
|
const sentContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
888
888
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
889
|
-
|
|
889
|
+
chunkMT66VKLS_js.EmptyState,
|
|
890
890
|
{
|
|
891
891
|
variant: "minimal",
|
|
892
892
|
icon: outline.PaperAirplaneIcon,
|
|
@@ -894,7 +894,7 @@ function PasswordlessSignIn({
|
|
|
894
894
|
description: channel === "email" ? t("passwordlessCodeSentEmailDescription", { email: identifier }) : t("passwordlessCodeSentSmsDescription", { phone: identifier })
|
|
895
895
|
}
|
|
896
896
|
),
|
|
897
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
897
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Spinner, {}) })
|
|
898
898
|
] });
|
|
899
899
|
const verifyContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
900
900
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
|
|
@@ -913,7 +913,7 @@ function PasswordlessSignIn({
|
|
|
913
913
|
autoFocus: true
|
|
914
914
|
}
|
|
915
915
|
),
|
|
916
|
-
isVerifying && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
916
|
+
isVerifying && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Spinner, {}) }),
|
|
917
917
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
918
918
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
919
919
|
"button",
|
|
@@ -946,7 +946,7 @@ function PasswordlessSignIn({
|
|
|
946
946
|
] });
|
|
947
947
|
const activeContent = step === "input" ? inputContent : step === "sent" ? sentContent : verifyContent;
|
|
948
948
|
if (embedded) return activeContent;
|
|
949
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
949
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
950
950
|
}
|
|
951
951
|
function ConsentScreen({
|
|
952
952
|
application,
|
|
@@ -980,10 +980,10 @@ function ConsentScreen({
|
|
|
980
980
|
onDeny();
|
|
981
981
|
}, [onDeny]);
|
|
982
982
|
const appInitials = application.name.split(" ").map((word) => word[0]).join("").slice(0, 2).toUpperCase();
|
|
983
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkQGLGQXJE_js.AuthLayout, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
983
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQGLGQXJE_js.AuthLayout, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkMT66VKLS_js.CardContent, { className: "space-y-6 p-6 sm:p-8", children: [
|
|
984
984
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
985
985
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
986
|
-
|
|
986
|
+
chunkMT66VKLS_js.Avatar,
|
|
987
987
|
{
|
|
988
988
|
src: application.logoUrl,
|
|
989
989
|
initials: appInitials,
|
|
@@ -1005,11 +1005,11 @@ function ConsentScreen({
|
|
|
1005
1005
|
] }),
|
|
1006
1006
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1007
1007
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-medium uppercase tracking-wide text-gray-500 dark:text-gray-400", children: t("consent.permissionsLabel") }),
|
|
1008
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1009
|
-
|
|
1008
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.ListCard, { children: scopes.map((scope) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1009
|
+
chunkMT66VKLS_js.ListCardItem,
|
|
1010
1010
|
{
|
|
1011
1011
|
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1012
|
-
|
|
1012
|
+
chunkMT66VKLS_js.FormCheckbox,
|
|
1013
1013
|
{
|
|
1014
1014
|
checked: checkedScopes.has(scope.id),
|
|
1015
1015
|
onChange: (checked) => handleScopeToggle(scope.id, checked),
|
|
@@ -1055,20 +1055,20 @@ function SsoConnectorList({ connectors, onSelect, loading = false }) {
|
|
|
1055
1055
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
1056
1056
|
if (loading) {
|
|
1057
1057
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2 py-8 text-sm text-gray-500 dark:text-gray-400", children: [
|
|
1058
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1058
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.InlineSpinner, {}),
|
|
1059
1059
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t("sso.connectorList.loading") })
|
|
1060
1060
|
] });
|
|
1061
1061
|
}
|
|
1062
1062
|
if (connectors.length === 0) {
|
|
1063
1063
|
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "py-6 text-center text-sm text-gray-500 dark:text-gray-400", children: t("sso.connectorList.empty") });
|
|
1064
1064
|
}
|
|
1065
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1065
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.ListCard, { children: connectors.map((connector) => {
|
|
1066
1066
|
const initials = connector.name.split(" ").map((word) => word[0]).join("").slice(0, 2).toUpperCase();
|
|
1067
1067
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1068
|
-
|
|
1068
|
+
chunkMT66VKLS_js.ListCardItem,
|
|
1069
1069
|
{
|
|
1070
1070
|
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1071
|
-
|
|
1071
|
+
chunkMT66VKLS_js.Avatar,
|
|
1072
1072
|
{
|
|
1073
1073
|
src: connector.logoUrl,
|
|
1074
1074
|
initials,
|
|
@@ -1162,16 +1162,16 @@ function SsoEmailForm({
|
|
|
1162
1162
|
) })
|
|
1163
1163
|
] });
|
|
1164
1164
|
if (embedded) return connectorsContent;
|
|
1165
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1165
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.CardContent, { className: "p-6 sm:p-8", children: connectorsContent }) });
|
|
1166
1166
|
}
|
|
1167
1167
|
const emailContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1168
1168
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
1169
1169
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-gray-900 dark:text-white", children: t("sso.emailForm.title") }),
|
|
1170
1170
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: t("sso.emailForm.subtitle") })
|
|
1171
1171
|
] }),
|
|
1172
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1172
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkMT66VKLS_js.BaseForm, { onSubmit: handleEmailSubmit, submitLabel: t("sso.emailForm.continueButton"), showFooter: false, children: [
|
|
1173
1173
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1174
|
-
|
|
1174
|
+
chunkMT66VKLS_js.Input,
|
|
1175
1175
|
{
|
|
1176
1176
|
type: "email",
|
|
1177
1177
|
label: t("sso.emailForm.emailLabel"),
|
|
@@ -1202,7 +1202,7 @@ function SsoEmailForm({
|
|
|
1202
1202
|
] })
|
|
1203
1203
|
] });
|
|
1204
1204
|
if (embedded) return emailContent;
|
|
1205
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1205
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsx(chunkMT66VKLS_js.CardContent, { className: "p-6 sm:p-8", children: emailContent }) });
|
|
1206
1206
|
}
|
|
1207
1207
|
var DEFAULT_LABELS = {
|
|
1208
1208
|
menuLabel: "User menu",
|
|
@@ -1214,7 +1214,7 @@ var DEFAULT_LABELS = {
|
|
|
1214
1214
|
};
|
|
1215
1215
|
function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
1216
1216
|
const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
|
|
1217
|
-
const { user, logout, status } =
|
|
1217
|
+
const { user, logout, status } = chunkMT66VKLS_js.useAuth();
|
|
1218
1218
|
const [confirmSignOut, setConfirmSignOut] = react.useState(false);
|
|
1219
1219
|
if (status !== "authenticated") {
|
|
1220
1220
|
return null;
|
|
@@ -1247,7 +1247,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1247
1247
|
"aria-label": resolvedLabels.menuLabel,
|
|
1248
1248
|
children: [
|
|
1249
1249
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1250
|
-
|
|
1250
|
+
chunkMT66VKLS_js.Avatar,
|
|
1251
1251
|
{
|
|
1252
1252
|
src: resolvedAvatarUrl,
|
|
1253
1253
|
initials: userInitials,
|
|
@@ -1271,7 +1271,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1271
1271
|
children: /* @__PURE__ */ jsxRuntime.jsxs(react$1.Menu.Items, { className: "liquid-surface absolute right-0 z-50 mt-2 w-60 origin-top-right rounded-2xl shadow-lg ring-1 ring-black/5 focus:outline-none dark:ring-white/10", children: [
|
|
1272
1272
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 border-b border-gray-200/60 px-4 py-3 dark:border-white/10", children: [
|
|
1273
1273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1274
|
-
|
|
1274
|
+
chunkMT66VKLS_js.Avatar,
|
|
1275
1275
|
{
|
|
1276
1276
|
src: resolvedAvatarUrl,
|
|
1277
1277
|
initials: userInitials,
|
|
@@ -1318,7 +1318,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1318
1318
|
)
|
|
1319
1319
|
] }),
|
|
1320
1320
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1321
|
-
|
|
1321
|
+
chunkMT66VKLS_js.DynamicIslandConfirm,
|
|
1322
1322
|
{
|
|
1323
1323
|
open: confirmSignOut,
|
|
1324
1324
|
onClose: handleSignOutCancel,
|
|
@@ -1342,5 +1342,5 @@ exports.SsoConnectorList = SsoConnectorList;
|
|
|
1342
1342
|
exports.SsoEmailForm = SsoEmailForm;
|
|
1343
1343
|
exports.UserButton = UserButton;
|
|
1344
1344
|
exports.VerifyEmail = VerifyEmail;
|
|
1345
|
-
//# sourceMappingURL=chunk-
|
|
1346
|
-
//# sourceMappingURL=chunk-
|
|
1345
|
+
//# sourceMappingURL=chunk-UZIICTIY.js.map
|
|
1346
|
+
//# sourceMappingURL=chunk-UZIICTIY.js.map
|