@flamingo-stack/openframe-frontend-core 0.0.398 → 0.0.399-snapshot.20260710120252
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/{chunk-GKRJOS6S.js → chunk-463X3AW2.js} +3 -3
- package/dist/{chunk-MNQVBME4.js → chunk-4HAVKWTJ.js} +4 -4
- package/dist/{chunk-PE37UDPF.cjs → chunk-556BG7SX.cjs} +40 -40
- package/dist/{chunk-PE37UDPF.cjs.map → chunk-556BG7SX.cjs.map} +1 -1
- package/dist/{chunk-N4R7TRF3.js → chunk-56XCRZ7I.js} +3 -3
- package/dist/{chunk-VDDNJ6XC.js → chunk-6VR7BJF6.js} +6 -6
- package/dist/{chunk-FZIMFLJG.cjs → chunk-6XQJSN7G.cjs} +19 -19
- package/dist/{chunk-FZIMFLJG.cjs.map → chunk-6XQJSN7G.cjs.map} +1 -1
- package/dist/{chunk-HMTOQGYU.cjs → chunk-ABRDOCVN.cjs} +12 -12
- package/dist/{chunk-HMTOQGYU.cjs.map → chunk-ABRDOCVN.cjs.map} +1 -1
- package/dist/{chunk-ZSZRJWY3.js → chunk-DH6HTYOV.js} +153 -134
- package/dist/chunk-DH6HTYOV.js.map +1 -0
- package/dist/{chunk-XYT5PIKZ.cjs → chunk-EFTKJFEF.cjs} +5 -5
- package/dist/{chunk-XYT5PIKZ.cjs.map → chunk-EFTKJFEF.cjs.map} +1 -1
- package/dist/{chunk-MGJZQ3EE.js → chunk-FHEIG7QO.js} +3 -3
- package/dist/{chunk-NYIZVI4I.cjs → chunk-GA5AN24T.cjs} +10 -3
- package/dist/chunk-GA5AN24T.cjs.map +1 -0
- package/dist/{chunk-X2FPWS3P.js → chunk-HGKWTKW7.js} +10 -3
- package/dist/chunk-HGKWTKW7.js.map +1 -0
- package/dist/{chunk-G42EXM23.js → chunk-I4XG5PJA.js} +2 -2
- package/dist/{chunk-YEWGFWNM.cjs → chunk-ILWSJCWD.cjs} +33 -33
- package/dist/{chunk-YEWGFWNM.cjs.map → chunk-ILWSJCWD.cjs.map} +1 -1
- package/dist/{chunk-JWBRDNYH.cjs → chunk-J4XR6YYZ.cjs} +23 -4
- package/dist/chunk-J4XR6YYZ.cjs.map +1 -0
- package/dist/{chunk-VVO7AZKZ.cjs → chunk-J6IQQJJQ.cjs} +1011 -986
- package/dist/chunk-J6IQQJJQ.cjs.map +1 -0
- package/dist/{chunk-4BVRLCCA.cjs → chunk-KIC4ZEZ7.cjs} +93 -93
- package/dist/{chunk-4BVRLCCA.cjs.map → chunk-KIC4ZEZ7.cjs.map} +1 -1
- package/dist/{chunk-Y3FREU4B.js → chunk-LAL63W5J.js} +6 -6
- package/dist/{chunk-7Q2DZEUA.cjs → chunk-MFRP2UDK.cjs} +32 -32
- package/dist/{chunk-7Q2DZEUA.cjs.map → chunk-MFRP2UDK.cjs.map} +1 -1
- package/dist/{chunk-URODM26E.js → chunk-MQRTT3DO.js} +6 -6
- package/dist/{chunk-4KWIQEZT.js → chunk-MTBFE3JF.js} +2 -2
- package/dist/{chunk-2DGA5LHT.cjs → chunk-OPD5V57R.cjs} +19 -19
- package/dist/{chunk-2DGA5LHT.cjs.map → chunk-OPD5V57R.cjs.map} +1 -1
- package/dist/{chunk-WXOIEYXW.js → chunk-PD5MXNTJ.js} +5 -5
- package/dist/{chunk-WBLRUO3F.cjs → chunk-Q3AO2QWK.cjs} +3 -3
- package/dist/{chunk-WBLRUO3F.cjs.map → chunk-Q3AO2QWK.cjs.map} +1 -1
- package/dist/{chunk-C4DHYDXB.cjs → chunk-QGQ76SSR.cjs} +12 -12
- package/dist/{chunk-C4DHYDXB.cjs.map → chunk-QGQ76SSR.cjs.map} +1 -1
- package/dist/{chunk-WJSUUOPU.cjs → chunk-RSFHAFZN.cjs} +40 -40
- package/dist/{chunk-WJSUUOPU.cjs.map → chunk-RSFHAFZN.cjs.map} +1 -1
- package/dist/{chunk-MQXUIYYN.js → chunk-RYPCNUXA.js} +4 -4
- package/dist/{chunk-2TBXIW7L.js → chunk-UFP45JLE.js} +3 -3
- package/dist/{chunk-B2K5COVE.js → chunk-UYBNOHTC.js} +170 -145
- package/dist/{chunk-B2K5COVE.js.map → chunk-UYBNOHTC.js.map} +1 -1
- package/dist/{chunk-LBDKAMOH.cjs → chunk-VTSEL7CJ.cjs} +73 -73
- package/dist/{chunk-LBDKAMOH.cjs.map → chunk-VTSEL7CJ.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/index.js +3 -3
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/auth/complete-account-form.d.ts.map +1 -1
- package/dist/components/features/auth/create-organization-form.d.ts.map +1 -1
- package/dist/components/features/auth/login-form.d.ts.map +1 -1
- package/dist/components/features/auth/openframe-sso-login-form.d.ts.map +1 -1
- package/dist/components/features/auth/openframe-sso-signup-form.d.ts.map +1 -1
- package/dist/components/features/auth/password-reset-form.d.ts.map +1 -1
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +23 -23
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +149 -149
- package/dist/components/index.js +12 -12
- package/dist/components/navigation/index.cjs +4 -4
- package/dist/components/navigation/index.js +3 -3
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/field-wrapper.d.ts +1 -1
- package/dist/components/ui/field-wrapper.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +50 -50
- package/dist/components/ui/file-manager/index.js +1 -1
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/index.js +3 -3
- package/dist/hooks/index.cjs +4 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/ui/index.d.ts +1 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-deferred-error.d.ts +16 -0
- package/dist/hooks/ui/use-deferred-error.d.ts.map +1 -0
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/package.json +1 -1
- package/src/components/features/auth/auth-benefits-panel.tsx +1 -1
- package/src/components/features/auth/complete-account-form.tsx +48 -51
- package/src/components/features/auth/create-organization-form.tsx +33 -31
- package/src/components/features/auth/login-form.tsx +6 -1
- package/src/components/features/auth/openframe-sso-login-form.tsx +9 -2
- package/src/components/features/auth/openframe-sso-signup-form.tsx +51 -52
- package/src/components/features/auth/password-reset-form.tsx +9 -2
- package/src/components/ui/field-wrapper.tsx +6 -3
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-deferred-error.ts +38 -0
- package/src/stories/Input.stories.tsx +44 -0
- package/src/stories/auth/CreateOrganization.stories.tsx +20 -0
- package/dist/chunk-JWBRDNYH.cjs.map +0 -1
- package/dist/chunk-NYIZVI4I.cjs.map +0 -1
- package/dist/chunk-VVO7AZKZ.cjs.map +0 -1
- package/dist/chunk-X2FPWS3P.js.map +0 -1
- package/dist/chunk-ZSZRJWY3.js.map +0 -1
- /package/dist/{chunk-GKRJOS6S.js.map → chunk-463X3AW2.js.map} +0 -0
- /package/dist/{chunk-MNQVBME4.js.map → chunk-4HAVKWTJ.js.map} +0 -0
- /package/dist/{chunk-N4R7TRF3.js.map → chunk-56XCRZ7I.js.map} +0 -0
- /package/dist/{chunk-VDDNJ6XC.js.map → chunk-6VR7BJF6.js.map} +0 -0
- /package/dist/{chunk-MGJZQ3EE.js.map → chunk-FHEIG7QO.js.map} +0 -0
- /package/dist/{chunk-G42EXM23.js.map → chunk-I4XG5PJA.js.map} +0 -0
- /package/dist/{chunk-Y3FREU4B.js.map → chunk-LAL63W5J.js.map} +0 -0
- /package/dist/{chunk-URODM26E.js.map → chunk-MQRTT3DO.js.map} +0 -0
- /package/dist/{chunk-4KWIQEZT.js.map → chunk-MTBFE3JF.js.map} +0 -0
- /package/dist/{chunk-WXOIEYXW.js.map → chunk-PD5MXNTJ.js.map} +0 -0
- /package/dist/{chunk-MQXUIYYN.js.map → chunk-RYPCNUXA.js.map} +0 -0
- /package/dist/{chunk-2TBXIW7L.js.map → chunk-UFP45JLE.js.map} +0 -0
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
useAutoLimitTags,
|
|
14
14
|
useCopyToClipboard,
|
|
15
15
|
useDebounce,
|
|
16
|
+
useDeferredError,
|
|
16
17
|
useHeaderHeight,
|
|
17
18
|
useHorizontalScrollbar,
|
|
18
19
|
useHumanitySignals,
|
|
@@ -25,7 +26,7 @@ import {
|
|
|
25
26
|
useOgPlaceholderUrl,
|
|
26
27
|
useOnboardingState,
|
|
27
28
|
useToast
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DH6HTYOV.js";
|
|
29
30
|
import {
|
|
30
31
|
AlertCircleIcon,
|
|
31
32
|
AnthropicLogoGreyIcon,
|
|
@@ -179,7 +180,7 @@ import {
|
|
|
179
180
|
init_button2,
|
|
180
181
|
init_split_button,
|
|
181
182
|
usePortalContainer
|
|
182
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-HGKWTKW7.js";
|
|
183
184
|
import {
|
|
184
185
|
CheckboxCheckmarkIcon,
|
|
185
186
|
SearchIcon
|
|
@@ -25639,7 +25640,7 @@ function AuthBenefitsPanel({
|
|
|
25639
25640
|
description = DEFAULT_DESCRIPTION,
|
|
25640
25641
|
benefits = DEFAULT_BENEFITS,
|
|
25641
25642
|
learnMoreLabel = "Learn More About OpenFrame",
|
|
25642
|
-
learnMoreUrl = "https://
|
|
25643
|
+
learnMoreUrl = "https://www.flamingo.run/",
|
|
25643
25644
|
className
|
|
25644
25645
|
}) {
|
|
25645
25646
|
return /* @__PURE__ */ jsxs145(
|
|
@@ -25857,6 +25858,10 @@ function CompleteAccountForm({
|
|
|
25857
25858
|
className
|
|
25858
25859
|
}) {
|
|
25859
25860
|
const fieldsDisabled = disabled || loading;
|
|
25861
|
+
const firstNameErr = useDeferredError(errors?.firstName, firstName);
|
|
25862
|
+
const lastNameErr = useDeferredError(errors?.lastName, lastName);
|
|
25863
|
+
const passwordErr = useDeferredError(errors?.password, password);
|
|
25864
|
+
const confirmErr = useDeferredError(errors?.confirmPassword, confirmPassword);
|
|
25860
25865
|
const handleKeyDown = (event) => {
|
|
25861
25866
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
25862
25867
|
onSubmit();
|
|
@@ -25890,58 +25895,58 @@ function CompleteAccountForm({
|
|
|
25890
25895
|
/* @__PURE__ */ jsx193("div", { className: "h-px flex-1 bg-ods-border" })
|
|
25891
25896
|
] })
|
|
25892
25897
|
] }),
|
|
25893
|
-
/* @__PURE__ */
|
|
25894
|
-
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
|
|
25899
|
-
|
|
25900
|
-
|
|
25901
|
-
|
|
25902
|
-
|
|
25903
|
-
|
|
25904
|
-
|
|
25905
|
-
|
|
25906
|
-
|
|
25907
|
-
|
|
25908
|
-
|
|
25909
|
-
|
|
25910
|
-
|
|
25911
|
-
|
|
25912
|
-
|
|
25913
|
-
|
|
25914
|
-
|
|
25915
|
-
|
|
25916
|
-
|
|
25917
|
-
|
|
25918
|
-
|
|
25919
|
-
/* @__PURE__ */
|
|
25920
|
-
|
|
25921
|
-
|
|
25922
|
-
|
|
25923
|
-
|
|
25924
|
-
|
|
25925
|
-
|
|
25926
|
-
|
|
25927
|
-
|
|
25928
|
-
|
|
25929
|
-
|
|
25930
|
-
|
|
25931
|
-
|
|
25932
|
-
|
|
25933
|
-
|
|
25934
|
-
|
|
25935
|
-
|
|
25936
|
-
|
|
25937
|
-
|
|
25938
|
-
|
|
25939
|
-
|
|
25940
|
-
|
|
25941
|
-
|
|
25942
|
-
|
|
25943
|
-
|
|
25944
|
-
|
|
25898
|
+
/* @__PURE__ */ jsx193(
|
|
25899
|
+
Input,
|
|
25900
|
+
{
|
|
25901
|
+
label: "First Name",
|
|
25902
|
+
placeholder: "Enter First Name",
|
|
25903
|
+
value: firstName,
|
|
25904
|
+
error: firstNameErr.error,
|
|
25905
|
+
disabled: fieldsDisabled,
|
|
25906
|
+
onBlur: firstNameErr.onBlur,
|
|
25907
|
+
onChange: (event) => onFirstNameChange(event.target.value),
|
|
25908
|
+
onKeyDown: handleKeyDown
|
|
25909
|
+
}
|
|
25910
|
+
),
|
|
25911
|
+
/* @__PURE__ */ jsx193(
|
|
25912
|
+
Input,
|
|
25913
|
+
{
|
|
25914
|
+
label: "Last Name",
|
|
25915
|
+
placeholder: "Enter Last Name",
|
|
25916
|
+
value: lastName,
|
|
25917
|
+
error: lastNameErr.error,
|
|
25918
|
+
disabled: fieldsDisabled,
|
|
25919
|
+
onBlur: lastNameErr.onBlur,
|
|
25920
|
+
onChange: (event) => onLastNameChange(event.target.value),
|
|
25921
|
+
onKeyDown: handleKeyDown
|
|
25922
|
+
}
|
|
25923
|
+
),
|
|
25924
|
+
/* @__PURE__ */ jsx193(
|
|
25925
|
+
PasswordInput,
|
|
25926
|
+
{
|
|
25927
|
+
label: "Password",
|
|
25928
|
+
placeholder: "Enter Password",
|
|
25929
|
+
value: password,
|
|
25930
|
+
error: passwordErr.error,
|
|
25931
|
+
disabled: fieldsDisabled,
|
|
25932
|
+
onBlur: passwordErr.onBlur,
|
|
25933
|
+
onChange: (event) => onPasswordChange(event.target.value),
|
|
25934
|
+
onKeyDown: handleKeyDown
|
|
25935
|
+
}
|
|
25936
|
+
),
|
|
25937
|
+
/* @__PURE__ */ jsx193(
|
|
25938
|
+
PasswordInput,
|
|
25939
|
+
{
|
|
25940
|
+
label: "Confirm Password",
|
|
25941
|
+
placeholder: "Confirm Password",
|
|
25942
|
+
value: confirmPassword,
|
|
25943
|
+
error: confirmErr.error,
|
|
25944
|
+
disabled: fieldsDisabled,
|
|
25945
|
+
onBlur: confirmErr.onBlur,
|
|
25946
|
+
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
25947
|
+
onKeyDown: handleKeyDown
|
|
25948
|
+
}
|
|
25949
|
+
),
|
|
25945
25950
|
/* @__PURE__ */ jsxs148("div", { className: "flex items-center gap-[var(--spacing-system-l)]", children: [
|
|
25946
25951
|
onBack ? /* @__PURE__ */ jsx193(
|
|
25947
25952
|
Button,
|
|
@@ -26044,6 +26049,9 @@ function CreateOrganizationForm({
|
|
|
26044
26049
|
}) {
|
|
26045
26050
|
const isSsoMode = !!ssoProviders && ssoProviders.length > 0;
|
|
26046
26051
|
const fieldsDisabled = disabled || loading || isSsoMode;
|
|
26052
|
+
const emailErr = useDeferredError(errors?.email, email);
|
|
26053
|
+
const orgNameErr = useDeferredError(errors?.organizationName, organizationName);
|
|
26054
|
+
const domainErr = useDeferredError(errors?.domain, domain);
|
|
26047
26055
|
const handleKeyDown = (event) => {
|
|
26048
26056
|
if (event.key === "Enter" && !fieldsDisabled) {
|
|
26049
26057
|
onSubmit();
|
|
@@ -26061,34 +26069,34 @@ function CreateOrganizationForm({
|
|
|
26061
26069
|
/* @__PURE__ */ jsx195("h1", { className: "text-h2 text-ods-text-primary tracking-[-0.64px]", children: "Create Organization" }),
|
|
26062
26070
|
/* @__PURE__ */ jsx195("p", { className: "text-h4 text-ods-text-secondary", children: "Start your journey with OpenFrame." })
|
|
26063
26071
|
] }),
|
|
26064
|
-
/* @__PURE__ */
|
|
26065
|
-
|
|
26066
|
-
|
|
26067
|
-
|
|
26068
|
-
|
|
26069
|
-
|
|
26070
|
-
|
|
26071
|
-
|
|
26072
|
-
|
|
26073
|
-
|
|
26074
|
-
|
|
26075
|
-
|
|
26076
|
-
|
|
26077
|
-
|
|
26078
|
-
|
|
26079
|
-
|
|
26080
|
-
|
|
26081
|
-
|
|
26082
|
-
|
|
26083
|
-
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
|
|
26089
|
-
|
|
26090
|
-
|
|
26091
|
-
|
|
26072
|
+
/* @__PURE__ */ jsx195(
|
|
26073
|
+
Input,
|
|
26074
|
+
{
|
|
26075
|
+
type: "email",
|
|
26076
|
+
label: "Email",
|
|
26077
|
+
placeholder: "username@mail.com",
|
|
26078
|
+
value: email,
|
|
26079
|
+
error: emailErr.error ?? emailStatus?.message,
|
|
26080
|
+
errorVariant: emailErr.error ? "error" : emailStatus?.variant,
|
|
26081
|
+
disabled: fieldsDisabled,
|
|
26082
|
+
onBlur: emailErr.onBlur,
|
|
26083
|
+
onChange: (event) => onEmailChange(event.target.value),
|
|
26084
|
+
onKeyDown: handleKeyDown
|
|
26085
|
+
}
|
|
26086
|
+
),
|
|
26087
|
+
/* @__PURE__ */ jsx195(
|
|
26088
|
+
Input,
|
|
26089
|
+
{
|
|
26090
|
+
label: "Organization Name",
|
|
26091
|
+
placeholder: "Your Company Name",
|
|
26092
|
+
value: organizationName,
|
|
26093
|
+
error: orgNameErr.error,
|
|
26094
|
+
disabled: fieldsDisabled,
|
|
26095
|
+
onBlur: orgNameErr.onBlur,
|
|
26096
|
+
onChange: (event) => onOrganizationNameChange(event.target.value),
|
|
26097
|
+
onKeyDown: handleKeyDown
|
|
26098
|
+
}
|
|
26099
|
+
),
|
|
26092
26100
|
/* @__PURE__ */ jsxs150("div", { className: "flex flex-col", children: [
|
|
26093
26101
|
/* @__PURE__ */ jsx195(
|
|
26094
26102
|
Input,
|
|
@@ -26096,15 +26104,16 @@ function CreateOrganizationForm({
|
|
|
26096
26104
|
label: "Domain",
|
|
26097
26105
|
placeholder: domainPlaceholder,
|
|
26098
26106
|
value: domain,
|
|
26099
|
-
error:
|
|
26100
|
-
errorVariant:
|
|
26107
|
+
error: domainErr.error ?? domainStatus?.message,
|
|
26108
|
+
errorVariant: domainErr.error ? "error" : domainStatus?.variant,
|
|
26101
26109
|
disabled: fieldsDisabled,
|
|
26110
|
+
onBlur: domainErr.onBlur,
|
|
26102
26111
|
endAdornment: domainSuffix ? /* @__PURE__ */ jsx195("span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
|
|
26103
26112
|
onChange: (event) => onDomainChange(event.target.value),
|
|
26104
26113
|
onKeyDown: handleKeyDown
|
|
26105
26114
|
}
|
|
26106
26115
|
),
|
|
26107
|
-
domainSlot && /* @__PURE__ */ jsx195("div", { className: "pt-[var(--spacing-system-
|
|
26116
|
+
domainSlot && /* @__PURE__ */ jsx195("div", { className: "pt-[var(--spacing-system-s)]", children: domainSlot })
|
|
26108
26117
|
] }),
|
|
26109
26118
|
/* @__PURE__ */ jsx195(
|
|
26110
26119
|
CheckboxBlock,
|
|
@@ -26195,6 +26204,7 @@ function LoginForm({
|
|
|
26195
26204
|
}) {
|
|
26196
26205
|
const isSsoMode = !!ssoProviders && ssoProviders.length > 0;
|
|
26197
26206
|
const fieldDisabled = disabled || loading || isSsoMode;
|
|
26207
|
+
const emailErr = useDeferredError(errors?.email, email);
|
|
26198
26208
|
const handleKeyDown = (event) => {
|
|
26199
26209
|
if (event.key === "Enter" && !fieldDisabled) {
|
|
26200
26210
|
onSubmit();
|
|
@@ -26219,8 +26229,9 @@ function LoginForm({
|
|
|
26219
26229
|
label: "Email",
|
|
26220
26230
|
placeholder: emailPlaceholder,
|
|
26221
26231
|
value: email,
|
|
26222
|
-
error:
|
|
26232
|
+
error: emailErr.error,
|
|
26223
26233
|
disabled: fieldDisabled,
|
|
26234
|
+
onBlur: emailErr.onBlur,
|
|
26224
26235
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26225
26236
|
onKeyDown: handleKeyDown
|
|
26226
26237
|
}
|
|
@@ -26294,6 +26305,8 @@ function OpenFrameSsoLoginForm({
|
|
|
26294
26305
|
className
|
|
26295
26306
|
}) {
|
|
26296
26307
|
const fieldsDisabled = disabled || loading;
|
|
26308
|
+
const emailErr = useDeferredError(errors?.email, email);
|
|
26309
|
+
const passwordErr = useDeferredError(errors?.password, password);
|
|
26297
26310
|
const handleKeyDown = (event) => {
|
|
26298
26311
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26299
26312
|
onSubmit();
|
|
@@ -26318,8 +26331,9 @@ function OpenFrameSsoLoginForm({
|
|
|
26318
26331
|
label: emailLabel,
|
|
26319
26332
|
placeholder: emailPlaceholder,
|
|
26320
26333
|
value: email,
|
|
26321
|
-
error:
|
|
26334
|
+
error: emailErr.error,
|
|
26322
26335
|
disabled: fieldsDisabled,
|
|
26336
|
+
onBlur: emailErr.onBlur,
|
|
26323
26337
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26324
26338
|
onKeyDown: handleKeyDown
|
|
26325
26339
|
}
|
|
@@ -26330,8 +26344,9 @@ function OpenFrameSsoLoginForm({
|
|
|
26330
26344
|
label: passwordLabel,
|
|
26331
26345
|
placeholder: passwordPlaceholder,
|
|
26332
26346
|
value: password,
|
|
26333
|
-
error:
|
|
26347
|
+
error: passwordErr.error,
|
|
26334
26348
|
disabled: fieldsDisabled,
|
|
26349
|
+
onBlur: passwordErr.onBlur,
|
|
26335
26350
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
26336
26351
|
onKeyDown: handleKeyDown
|
|
26337
26352
|
}
|
|
@@ -26398,6 +26413,11 @@ function OpenFrameSsoSignUpForm({
|
|
|
26398
26413
|
className
|
|
26399
26414
|
}) {
|
|
26400
26415
|
const fieldsDisabled = disabled || loading;
|
|
26416
|
+
const emailErr = useDeferredError(errors?.email, email);
|
|
26417
|
+
const firstNameErr = useDeferredError(errors?.firstName, firstName);
|
|
26418
|
+
const lastNameErr = useDeferredError(errors?.lastName, lastName);
|
|
26419
|
+
const passwordErr = useDeferredError(errors?.password, password);
|
|
26420
|
+
const confirmErr = useDeferredError(errors?.confirmPassword, confirmPassword);
|
|
26401
26421
|
const handleKeyDown = (event) => {
|
|
26402
26422
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26403
26423
|
onSubmit();
|
|
@@ -26422,64 +26442,65 @@ function OpenFrameSsoSignUpForm({
|
|
|
26422
26442
|
label: emailLabel,
|
|
26423
26443
|
placeholder: "username@mail.com",
|
|
26424
26444
|
value: email,
|
|
26425
|
-
error:
|
|
26445
|
+
error: emailErr.error,
|
|
26426
26446
|
disabled: fieldsDisabled || emailReadOnly,
|
|
26447
|
+
onBlur: emailErr.onBlur,
|
|
26427
26448
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26428
26449
|
onKeyDown: handleKeyDown
|
|
26429
26450
|
}
|
|
26430
26451
|
),
|
|
26431
|
-
/* @__PURE__ */
|
|
26432
|
-
|
|
26433
|
-
|
|
26434
|
-
|
|
26435
|
-
|
|
26436
|
-
|
|
26437
|
-
|
|
26438
|
-
|
|
26439
|
-
|
|
26440
|
-
|
|
26441
|
-
|
|
26442
|
-
|
|
26443
|
-
|
|
26444
|
-
|
|
26445
|
-
|
|
26446
|
-
|
|
26447
|
-
|
|
26448
|
-
|
|
26449
|
-
|
|
26450
|
-
|
|
26451
|
-
|
|
26452
|
-
|
|
26453
|
-
|
|
26454
|
-
|
|
26455
|
-
|
|
26456
|
-
|
|
26457
|
-
/* @__PURE__ */
|
|
26458
|
-
|
|
26459
|
-
|
|
26460
|
-
|
|
26461
|
-
|
|
26462
|
-
|
|
26463
|
-
|
|
26464
|
-
|
|
26465
|
-
|
|
26466
|
-
|
|
26467
|
-
|
|
26468
|
-
|
|
26469
|
-
|
|
26470
|
-
|
|
26471
|
-
|
|
26472
|
-
|
|
26473
|
-
|
|
26474
|
-
|
|
26475
|
-
|
|
26476
|
-
|
|
26477
|
-
|
|
26478
|
-
|
|
26479
|
-
|
|
26480
|
-
|
|
26481
|
-
|
|
26482
|
-
|
|
26452
|
+
/* @__PURE__ */ jsx199(
|
|
26453
|
+
Input,
|
|
26454
|
+
{
|
|
26455
|
+
label: "First Name",
|
|
26456
|
+
placeholder: "Enter First Name",
|
|
26457
|
+
value: firstName,
|
|
26458
|
+
error: firstNameErr.error,
|
|
26459
|
+
disabled: fieldsDisabled,
|
|
26460
|
+
onBlur: firstNameErr.onBlur,
|
|
26461
|
+
onChange: (event) => onFirstNameChange(event.target.value),
|
|
26462
|
+
onKeyDown: handleKeyDown
|
|
26463
|
+
}
|
|
26464
|
+
),
|
|
26465
|
+
/* @__PURE__ */ jsx199(
|
|
26466
|
+
Input,
|
|
26467
|
+
{
|
|
26468
|
+
label: "Last Name",
|
|
26469
|
+
placeholder: "Enter Last Name",
|
|
26470
|
+
value: lastName,
|
|
26471
|
+
error: lastNameErr.error,
|
|
26472
|
+
disabled: fieldsDisabled,
|
|
26473
|
+
onBlur: lastNameErr.onBlur,
|
|
26474
|
+
onChange: (event) => onLastNameChange(event.target.value),
|
|
26475
|
+
onKeyDown: handleKeyDown
|
|
26476
|
+
}
|
|
26477
|
+
),
|
|
26478
|
+
/* @__PURE__ */ jsx199(
|
|
26479
|
+
PasswordInput,
|
|
26480
|
+
{
|
|
26481
|
+
label: "Password",
|
|
26482
|
+
placeholder: "Enter Password",
|
|
26483
|
+
value: password,
|
|
26484
|
+
error: passwordErr.error,
|
|
26485
|
+
disabled: fieldsDisabled,
|
|
26486
|
+
onBlur: passwordErr.onBlur,
|
|
26487
|
+
onChange: (event) => onPasswordChange(event.target.value),
|
|
26488
|
+
onKeyDown: handleKeyDown
|
|
26489
|
+
}
|
|
26490
|
+
),
|
|
26491
|
+
/* @__PURE__ */ jsx199(
|
|
26492
|
+
PasswordInput,
|
|
26493
|
+
{
|
|
26494
|
+
label: "Confirm Password",
|
|
26495
|
+
placeholder: "Confirm Password",
|
|
26496
|
+
value: confirmPassword,
|
|
26497
|
+
error: confirmErr.error,
|
|
26498
|
+
disabled: fieldsDisabled,
|
|
26499
|
+
onBlur: confirmErr.onBlur,
|
|
26500
|
+
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
26501
|
+
onKeyDown: handleKeyDown
|
|
26502
|
+
}
|
|
26503
|
+
),
|
|
26483
26504
|
/* @__PURE__ */ jsxs154("div", { className: "flex items-center gap-[var(--spacing-system-l)]", children: [
|
|
26484
26505
|
/* @__PURE__ */ jsx199(
|
|
26485
26506
|
Button,
|
|
@@ -26539,6 +26560,8 @@ function PasswordResetForm({
|
|
|
26539
26560
|
className
|
|
26540
26561
|
}) {
|
|
26541
26562
|
const fieldsDisabled = disabled || loading;
|
|
26563
|
+
const passwordErr = useDeferredError(errors?.password, password);
|
|
26564
|
+
const confirmErr = useDeferredError(errors?.confirmPassword, confirmPassword);
|
|
26542
26565
|
const handleKeyDown = (event) => {
|
|
26543
26566
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26544
26567
|
onSubmit();
|
|
@@ -26563,8 +26586,9 @@ function PasswordResetForm({
|
|
|
26563
26586
|
label: newPasswordLabel,
|
|
26564
26587
|
placeholder: newPasswordPlaceholder,
|
|
26565
26588
|
value: password,
|
|
26566
|
-
error:
|
|
26589
|
+
error: passwordErr.error,
|
|
26567
26590
|
disabled: fieldsDisabled,
|
|
26591
|
+
onBlur: passwordErr.onBlur,
|
|
26568
26592
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
26569
26593
|
onKeyDown: handleKeyDown
|
|
26570
26594
|
}
|
|
@@ -26576,8 +26600,9 @@ function PasswordResetForm({
|
|
|
26576
26600
|
label: confirmPasswordLabel,
|
|
26577
26601
|
placeholder: confirmPasswordPlaceholder,
|
|
26578
26602
|
value: confirmPassword,
|
|
26579
|
-
error:
|
|
26603
|
+
error: confirmErr.error,
|
|
26580
26604
|
disabled: fieldsDisabled,
|
|
26605
|
+
onBlur: confirmErr.onBlur,
|
|
26581
26606
|
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
26582
26607
|
onKeyDown: handleKeyDown
|
|
26583
26608
|
}
|
|
@@ -53275,4 +53300,4 @@ export {
|
|
|
53275
53300
|
LogsList,
|
|
53276
53301
|
assets
|
|
53277
53302
|
};
|
|
53278
|
-
//# sourceMappingURL=chunk-
|
|
53303
|
+
//# sourceMappingURL=chunk-UYBNOHTC.js.map
|