@flamingo-stack/openframe-frontend-core 0.0.399 → 0.0.400
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-4K5XJ5EJ.js → chunk-463X3AW2.js} +3 -3
- package/dist/{chunk-XBCAY6NE.js → chunk-4HAVKWTJ.js} +3 -3
- package/dist/{chunk-G5NDKTX6.cjs → chunk-556BG7SX.cjs} +40 -40
- package/dist/{chunk-G5NDKTX6.cjs.map → chunk-556BG7SX.cjs.map} +1 -1
- package/dist/{chunk-2L6ALD2Q.js → chunk-56XCRZ7I.js} +2 -2
- package/dist/{chunk-BSJO5VFV.js → chunk-6VR7BJF6.js} +5 -5
- package/dist/{chunk-VOHOA3WV.cjs → chunk-6XQJSN7G.cjs} +15 -15
- package/dist/{chunk-VOHOA3WV.cjs.map → chunk-6XQJSN7G.cjs.map} +1 -1
- package/dist/{chunk-QNYNXSYQ.cjs → chunk-ABRDOCVN.cjs} +7 -7
- package/dist/{chunk-QNYNXSYQ.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-YWCCKB4J.cjs → chunk-EFTKJFEF.cjs} +5 -5
- package/dist/{chunk-YWCCKB4J.cjs.map → chunk-EFTKJFEF.cjs.map} +1 -1
- package/dist/{chunk-G3A7QHCX.js → chunk-FHEIG7QO.js} +2 -2
- package/dist/{chunk-Z5ERSGP2.js → chunk-I4XG5PJA.js} +2 -2
- package/dist/{chunk-D5IHYUBY.cjs → chunk-ILWSJCWD.cjs} +29 -29
- package/dist/{chunk-D5IHYUBY.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-7OKNKZBW.cjs → chunk-J6IQQJJQ.cjs} +566 -531
- package/dist/chunk-J6IQQJJQ.cjs.map +1 -0
- package/dist/{chunk-O5NA3ULU.cjs → chunk-KIC4ZEZ7.cjs} +73 -73
- package/dist/{chunk-O5NA3ULU.cjs.map → chunk-KIC4ZEZ7.cjs.map} +1 -1
- package/dist/{chunk-VVKWNVKE.js → chunk-LAL63W5J.js} +6 -6
- package/dist/{chunk-JBLBFJ4N.cjs → chunk-MFRP2UDK.cjs} +32 -32
- package/dist/{chunk-JBLBFJ4N.cjs.map → chunk-MFRP2UDK.cjs.map} +1 -1
- package/dist/{chunk-A6KGHQRF.js → chunk-MQRTT3DO.js} +6 -6
- package/dist/{chunk-4KWIQEZT.js → chunk-MTBFE3JF.js} +2 -2
- package/dist/{chunk-RIC4TCPD.cjs → chunk-OPD5V57R.cjs} +19 -19
- package/dist/{chunk-RIC4TCPD.cjs.map → chunk-OPD5V57R.cjs.map} +1 -1
- package/dist/{chunk-CRRH7RJX.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-4PEC5KU6.cjs → chunk-QGQ76SSR.cjs} +12 -12
- package/dist/{chunk-4PEC5KU6.cjs.map → chunk-QGQ76SSR.cjs.map} +1 -1
- package/dist/{chunk-ZDT2MBKE.cjs → chunk-RSFHAFZN.cjs} +40 -40
- package/dist/{chunk-ZDT2MBKE.cjs.map → chunk-RSFHAFZN.cjs.map} +1 -1
- package/dist/{chunk-4H2ICJYB.js → chunk-RYPCNUXA.js} +4 -4
- package/dist/{chunk-FXWURWDU.js → chunk-UFP45JLE.js} +3 -3
- package/dist/{chunk-2XVOYDRF.js → chunk-UYBNOHTC.js} +57 -22
- package/dist/{chunk-2XVOYDRF.js.map → chunk-UYBNOHTC.js.map} +1 -1
- package/dist/{chunk-NCW22SII.cjs → chunk-VTSEL7CJ.cjs} +73 -73
- package/dist/{chunk-NCW22SII.cjs.map → chunk-VTSEL7CJ.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- 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 +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +125 -125
- package/dist/components/index.js +11 -11
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- 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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- 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 +15 -4
- package/src/components/features/auth/create-organization-form.tsx +14 -5
- 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 +18 -5
- package/src/components/features/auth/password-reset-form.tsx +9 -2
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-deferred-error.ts +38 -0
- package/src/stories/Input.stories.tsx +1 -1
- package/src/stories/auth/CreateOrganization.stories.tsx +2 -1
- package/dist/chunk-7OKNKZBW.cjs.map +0 -1
- package/dist/chunk-JWBRDNYH.cjs.map +0 -1
- package/dist/chunk-ZSZRJWY3.js.map +0 -1
- /package/dist/{chunk-4K5XJ5EJ.js.map → chunk-463X3AW2.js.map} +0 -0
- /package/dist/{chunk-XBCAY6NE.js.map → chunk-4HAVKWTJ.js.map} +0 -0
- /package/dist/{chunk-2L6ALD2Q.js.map → chunk-56XCRZ7I.js.map} +0 -0
- /package/dist/{chunk-BSJO5VFV.js.map → chunk-6VR7BJF6.js.map} +0 -0
- /package/dist/{chunk-G3A7QHCX.js.map → chunk-FHEIG7QO.js.map} +0 -0
- /package/dist/{chunk-Z5ERSGP2.js.map → chunk-I4XG5PJA.js.map} +0 -0
- /package/dist/{chunk-VVKWNVKE.js.map → chunk-LAL63W5J.js.map} +0 -0
- /package/dist/{chunk-A6KGHQRF.js.map → chunk-MQRTT3DO.js.map} +0 -0
- /package/dist/{chunk-4KWIQEZT.js.map → chunk-MTBFE3JF.js.map} +0 -0
- /package/dist/{chunk-CRRH7RJX.js.map → chunk-PD5MXNTJ.js.map} +0 -0
- /package/dist/{chunk-4H2ICJYB.js.map → chunk-RYPCNUXA.js.map} +0 -0
- /package/dist/{chunk-FXWURWDU.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,
|
|
@@ -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();
|
|
@@ -25896,8 +25901,9 @@ function CompleteAccountForm({
|
|
|
25896
25901
|
label: "First Name",
|
|
25897
25902
|
placeholder: "Enter First Name",
|
|
25898
25903
|
value: firstName,
|
|
25899
|
-
error:
|
|
25904
|
+
error: firstNameErr.error,
|
|
25900
25905
|
disabled: fieldsDisabled,
|
|
25906
|
+
onBlur: firstNameErr.onBlur,
|
|
25901
25907
|
onChange: (event) => onFirstNameChange(event.target.value),
|
|
25902
25908
|
onKeyDown: handleKeyDown
|
|
25903
25909
|
}
|
|
@@ -25908,8 +25914,9 @@ function CompleteAccountForm({
|
|
|
25908
25914
|
label: "Last Name",
|
|
25909
25915
|
placeholder: "Enter Last Name",
|
|
25910
25916
|
value: lastName,
|
|
25911
|
-
error:
|
|
25917
|
+
error: lastNameErr.error,
|
|
25912
25918
|
disabled: fieldsDisabled,
|
|
25919
|
+
onBlur: lastNameErr.onBlur,
|
|
25913
25920
|
onChange: (event) => onLastNameChange(event.target.value),
|
|
25914
25921
|
onKeyDown: handleKeyDown
|
|
25915
25922
|
}
|
|
@@ -25920,8 +25927,9 @@ function CompleteAccountForm({
|
|
|
25920
25927
|
label: "Password",
|
|
25921
25928
|
placeholder: "Enter Password",
|
|
25922
25929
|
value: password,
|
|
25923
|
-
error:
|
|
25930
|
+
error: passwordErr.error,
|
|
25924
25931
|
disabled: fieldsDisabled,
|
|
25932
|
+
onBlur: passwordErr.onBlur,
|
|
25925
25933
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
25926
25934
|
onKeyDown: handleKeyDown
|
|
25927
25935
|
}
|
|
@@ -25932,8 +25940,9 @@ function CompleteAccountForm({
|
|
|
25932
25940
|
label: "Confirm Password",
|
|
25933
25941
|
placeholder: "Confirm Password",
|
|
25934
25942
|
value: confirmPassword,
|
|
25935
|
-
error:
|
|
25943
|
+
error: confirmErr.error,
|
|
25936
25944
|
disabled: fieldsDisabled,
|
|
25945
|
+
onBlur: confirmErr.onBlur,
|
|
25937
25946
|
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
25938
25947
|
onKeyDown: handleKeyDown
|
|
25939
25948
|
}
|
|
@@ -26040,6 +26049,9 @@ function CreateOrganizationForm({
|
|
|
26040
26049
|
}) {
|
|
26041
26050
|
const isSsoMode = !!ssoProviders && ssoProviders.length > 0;
|
|
26042
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);
|
|
26043
26055
|
const handleKeyDown = (event) => {
|
|
26044
26056
|
if (event.key === "Enter" && !fieldsDisabled) {
|
|
26045
26057
|
onSubmit();
|
|
@@ -26064,9 +26076,10 @@ function CreateOrganizationForm({
|
|
|
26064
26076
|
label: "Email",
|
|
26065
26077
|
placeholder: "username@mail.com",
|
|
26066
26078
|
value: email,
|
|
26067
|
-
error:
|
|
26068
|
-
errorVariant:
|
|
26079
|
+
error: emailErr.error ?? emailStatus?.message,
|
|
26080
|
+
errorVariant: emailErr.error ? "error" : emailStatus?.variant,
|
|
26069
26081
|
disabled: fieldsDisabled,
|
|
26082
|
+
onBlur: emailErr.onBlur,
|
|
26070
26083
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26071
26084
|
onKeyDown: handleKeyDown
|
|
26072
26085
|
}
|
|
@@ -26077,8 +26090,9 @@ function CreateOrganizationForm({
|
|
|
26077
26090
|
label: "Organization Name",
|
|
26078
26091
|
placeholder: "Your Company Name",
|
|
26079
26092
|
value: organizationName,
|
|
26080
|
-
error:
|
|
26093
|
+
error: orgNameErr.error,
|
|
26081
26094
|
disabled: fieldsDisabled,
|
|
26095
|
+
onBlur: orgNameErr.onBlur,
|
|
26082
26096
|
onChange: (event) => onOrganizationNameChange(event.target.value),
|
|
26083
26097
|
onKeyDown: handleKeyDown
|
|
26084
26098
|
}
|
|
@@ -26090,9 +26104,10 @@ function CreateOrganizationForm({
|
|
|
26090
26104
|
label: "Domain",
|
|
26091
26105
|
placeholder: domainPlaceholder,
|
|
26092
26106
|
value: domain,
|
|
26093
|
-
error:
|
|
26094
|
-
errorVariant:
|
|
26107
|
+
error: domainErr.error ?? domainStatus?.message,
|
|
26108
|
+
errorVariant: domainErr.error ? "error" : domainStatus?.variant,
|
|
26095
26109
|
disabled: fieldsDisabled,
|
|
26110
|
+
onBlur: domainErr.onBlur,
|
|
26096
26111
|
endAdornment: domainSuffix ? /* @__PURE__ */ jsx195("span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
|
|
26097
26112
|
onChange: (event) => onDomainChange(event.target.value),
|
|
26098
26113
|
onKeyDown: handleKeyDown
|
|
@@ -26189,6 +26204,7 @@ function LoginForm({
|
|
|
26189
26204
|
}) {
|
|
26190
26205
|
const isSsoMode = !!ssoProviders && ssoProviders.length > 0;
|
|
26191
26206
|
const fieldDisabled = disabled || loading || isSsoMode;
|
|
26207
|
+
const emailErr = useDeferredError(errors?.email, email);
|
|
26192
26208
|
const handleKeyDown = (event) => {
|
|
26193
26209
|
if (event.key === "Enter" && !fieldDisabled) {
|
|
26194
26210
|
onSubmit();
|
|
@@ -26213,8 +26229,9 @@ function LoginForm({
|
|
|
26213
26229
|
label: "Email",
|
|
26214
26230
|
placeholder: emailPlaceholder,
|
|
26215
26231
|
value: email,
|
|
26216
|
-
error:
|
|
26232
|
+
error: emailErr.error,
|
|
26217
26233
|
disabled: fieldDisabled,
|
|
26234
|
+
onBlur: emailErr.onBlur,
|
|
26218
26235
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26219
26236
|
onKeyDown: handleKeyDown
|
|
26220
26237
|
}
|
|
@@ -26288,6 +26305,8 @@ function OpenFrameSsoLoginForm({
|
|
|
26288
26305
|
className
|
|
26289
26306
|
}) {
|
|
26290
26307
|
const fieldsDisabled = disabled || loading;
|
|
26308
|
+
const emailErr = useDeferredError(errors?.email, email);
|
|
26309
|
+
const passwordErr = useDeferredError(errors?.password, password);
|
|
26291
26310
|
const handleKeyDown = (event) => {
|
|
26292
26311
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26293
26312
|
onSubmit();
|
|
@@ -26312,8 +26331,9 @@ function OpenFrameSsoLoginForm({
|
|
|
26312
26331
|
label: emailLabel,
|
|
26313
26332
|
placeholder: emailPlaceholder,
|
|
26314
26333
|
value: email,
|
|
26315
|
-
error:
|
|
26334
|
+
error: emailErr.error,
|
|
26316
26335
|
disabled: fieldsDisabled,
|
|
26336
|
+
onBlur: emailErr.onBlur,
|
|
26317
26337
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26318
26338
|
onKeyDown: handleKeyDown
|
|
26319
26339
|
}
|
|
@@ -26324,8 +26344,9 @@ function OpenFrameSsoLoginForm({
|
|
|
26324
26344
|
label: passwordLabel,
|
|
26325
26345
|
placeholder: passwordPlaceholder,
|
|
26326
26346
|
value: password,
|
|
26327
|
-
error:
|
|
26347
|
+
error: passwordErr.error,
|
|
26328
26348
|
disabled: fieldsDisabled,
|
|
26349
|
+
onBlur: passwordErr.onBlur,
|
|
26329
26350
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
26330
26351
|
onKeyDown: handleKeyDown
|
|
26331
26352
|
}
|
|
@@ -26392,6 +26413,11 @@ function OpenFrameSsoSignUpForm({
|
|
|
26392
26413
|
className
|
|
26393
26414
|
}) {
|
|
26394
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);
|
|
26395
26421
|
const handleKeyDown = (event) => {
|
|
26396
26422
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26397
26423
|
onSubmit();
|
|
@@ -26416,8 +26442,9 @@ function OpenFrameSsoSignUpForm({
|
|
|
26416
26442
|
label: emailLabel,
|
|
26417
26443
|
placeholder: "username@mail.com",
|
|
26418
26444
|
value: email,
|
|
26419
|
-
error:
|
|
26445
|
+
error: emailErr.error,
|
|
26420
26446
|
disabled: fieldsDisabled || emailReadOnly,
|
|
26447
|
+
onBlur: emailErr.onBlur,
|
|
26421
26448
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26422
26449
|
onKeyDown: handleKeyDown
|
|
26423
26450
|
}
|
|
@@ -26428,8 +26455,9 @@ function OpenFrameSsoSignUpForm({
|
|
|
26428
26455
|
label: "First Name",
|
|
26429
26456
|
placeholder: "Enter First Name",
|
|
26430
26457
|
value: firstName,
|
|
26431
|
-
error:
|
|
26458
|
+
error: firstNameErr.error,
|
|
26432
26459
|
disabled: fieldsDisabled,
|
|
26460
|
+
onBlur: firstNameErr.onBlur,
|
|
26433
26461
|
onChange: (event) => onFirstNameChange(event.target.value),
|
|
26434
26462
|
onKeyDown: handleKeyDown
|
|
26435
26463
|
}
|
|
@@ -26440,8 +26468,9 @@ function OpenFrameSsoSignUpForm({
|
|
|
26440
26468
|
label: "Last Name",
|
|
26441
26469
|
placeholder: "Enter Last Name",
|
|
26442
26470
|
value: lastName,
|
|
26443
|
-
error:
|
|
26471
|
+
error: lastNameErr.error,
|
|
26444
26472
|
disabled: fieldsDisabled,
|
|
26473
|
+
onBlur: lastNameErr.onBlur,
|
|
26445
26474
|
onChange: (event) => onLastNameChange(event.target.value),
|
|
26446
26475
|
onKeyDown: handleKeyDown
|
|
26447
26476
|
}
|
|
@@ -26452,8 +26481,9 @@ function OpenFrameSsoSignUpForm({
|
|
|
26452
26481
|
label: "Password",
|
|
26453
26482
|
placeholder: "Enter Password",
|
|
26454
26483
|
value: password,
|
|
26455
|
-
error:
|
|
26484
|
+
error: passwordErr.error,
|
|
26456
26485
|
disabled: fieldsDisabled,
|
|
26486
|
+
onBlur: passwordErr.onBlur,
|
|
26457
26487
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
26458
26488
|
onKeyDown: handleKeyDown
|
|
26459
26489
|
}
|
|
@@ -26464,8 +26494,9 @@ function OpenFrameSsoSignUpForm({
|
|
|
26464
26494
|
label: "Confirm Password",
|
|
26465
26495
|
placeholder: "Confirm Password",
|
|
26466
26496
|
value: confirmPassword,
|
|
26467
|
-
error:
|
|
26497
|
+
error: confirmErr.error,
|
|
26468
26498
|
disabled: fieldsDisabled,
|
|
26499
|
+
onBlur: confirmErr.onBlur,
|
|
26469
26500
|
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
26470
26501
|
onKeyDown: handleKeyDown
|
|
26471
26502
|
}
|
|
@@ -26529,6 +26560,8 @@ function PasswordResetForm({
|
|
|
26529
26560
|
className
|
|
26530
26561
|
}) {
|
|
26531
26562
|
const fieldsDisabled = disabled || loading;
|
|
26563
|
+
const passwordErr = useDeferredError(errors?.password, password);
|
|
26564
|
+
const confirmErr = useDeferredError(errors?.confirmPassword, confirmPassword);
|
|
26532
26565
|
const handleKeyDown = (event) => {
|
|
26533
26566
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26534
26567
|
onSubmit();
|
|
@@ -26553,8 +26586,9 @@ function PasswordResetForm({
|
|
|
26553
26586
|
label: newPasswordLabel,
|
|
26554
26587
|
placeholder: newPasswordPlaceholder,
|
|
26555
26588
|
value: password,
|
|
26556
|
-
error:
|
|
26589
|
+
error: passwordErr.error,
|
|
26557
26590
|
disabled: fieldsDisabled,
|
|
26591
|
+
onBlur: passwordErr.onBlur,
|
|
26558
26592
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
26559
26593
|
onKeyDown: handleKeyDown
|
|
26560
26594
|
}
|
|
@@ -26566,8 +26600,9 @@ function PasswordResetForm({
|
|
|
26566
26600
|
label: confirmPasswordLabel,
|
|
26567
26601
|
placeholder: confirmPasswordPlaceholder,
|
|
26568
26602
|
value: confirmPassword,
|
|
26569
|
-
error:
|
|
26603
|
+
error: confirmErr.error,
|
|
26570
26604
|
disabled: fieldsDisabled,
|
|
26605
|
+
onBlur: confirmErr.onBlur,
|
|
26571
26606
|
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
26572
26607
|
onKeyDown: handleKeyDown
|
|
26573
26608
|
}
|
|
@@ -53265,4 +53300,4 @@ export {
|
|
|
53265
53300
|
LogsList,
|
|
53266
53301
|
assets
|
|
53267
53302
|
};
|
|
53268
|
-
//# sourceMappingURL=chunk-
|
|
53303
|
+
//# sourceMappingURL=chunk-UYBNOHTC.js.map
|