@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.
Files changed (127) hide show
  1. package/dist/{chunk-GKRJOS6S.js → chunk-463X3AW2.js} +3 -3
  2. package/dist/{chunk-MNQVBME4.js → chunk-4HAVKWTJ.js} +4 -4
  3. package/dist/{chunk-PE37UDPF.cjs → chunk-556BG7SX.cjs} +40 -40
  4. package/dist/{chunk-PE37UDPF.cjs.map → chunk-556BG7SX.cjs.map} +1 -1
  5. package/dist/{chunk-N4R7TRF3.js → chunk-56XCRZ7I.js} +3 -3
  6. package/dist/{chunk-VDDNJ6XC.js → chunk-6VR7BJF6.js} +6 -6
  7. package/dist/{chunk-FZIMFLJG.cjs → chunk-6XQJSN7G.cjs} +19 -19
  8. package/dist/{chunk-FZIMFLJG.cjs.map → chunk-6XQJSN7G.cjs.map} +1 -1
  9. package/dist/{chunk-HMTOQGYU.cjs → chunk-ABRDOCVN.cjs} +12 -12
  10. package/dist/{chunk-HMTOQGYU.cjs.map → chunk-ABRDOCVN.cjs.map} +1 -1
  11. package/dist/{chunk-ZSZRJWY3.js → chunk-DH6HTYOV.js} +153 -134
  12. package/dist/chunk-DH6HTYOV.js.map +1 -0
  13. package/dist/{chunk-XYT5PIKZ.cjs → chunk-EFTKJFEF.cjs} +5 -5
  14. package/dist/{chunk-XYT5PIKZ.cjs.map → chunk-EFTKJFEF.cjs.map} +1 -1
  15. package/dist/{chunk-MGJZQ3EE.js → chunk-FHEIG7QO.js} +3 -3
  16. package/dist/{chunk-NYIZVI4I.cjs → chunk-GA5AN24T.cjs} +10 -3
  17. package/dist/chunk-GA5AN24T.cjs.map +1 -0
  18. package/dist/{chunk-X2FPWS3P.js → chunk-HGKWTKW7.js} +10 -3
  19. package/dist/chunk-HGKWTKW7.js.map +1 -0
  20. package/dist/{chunk-G42EXM23.js → chunk-I4XG5PJA.js} +2 -2
  21. package/dist/{chunk-YEWGFWNM.cjs → chunk-ILWSJCWD.cjs} +33 -33
  22. package/dist/{chunk-YEWGFWNM.cjs.map → chunk-ILWSJCWD.cjs.map} +1 -1
  23. package/dist/{chunk-JWBRDNYH.cjs → chunk-J4XR6YYZ.cjs} +23 -4
  24. package/dist/chunk-J4XR6YYZ.cjs.map +1 -0
  25. package/dist/{chunk-VVO7AZKZ.cjs → chunk-J6IQQJJQ.cjs} +1011 -986
  26. package/dist/chunk-J6IQQJJQ.cjs.map +1 -0
  27. package/dist/{chunk-4BVRLCCA.cjs → chunk-KIC4ZEZ7.cjs} +93 -93
  28. package/dist/{chunk-4BVRLCCA.cjs.map → chunk-KIC4ZEZ7.cjs.map} +1 -1
  29. package/dist/{chunk-Y3FREU4B.js → chunk-LAL63W5J.js} +6 -6
  30. package/dist/{chunk-7Q2DZEUA.cjs → chunk-MFRP2UDK.cjs} +32 -32
  31. package/dist/{chunk-7Q2DZEUA.cjs.map → chunk-MFRP2UDK.cjs.map} +1 -1
  32. package/dist/{chunk-URODM26E.js → chunk-MQRTT3DO.js} +6 -6
  33. package/dist/{chunk-4KWIQEZT.js → chunk-MTBFE3JF.js} +2 -2
  34. package/dist/{chunk-2DGA5LHT.cjs → chunk-OPD5V57R.cjs} +19 -19
  35. package/dist/{chunk-2DGA5LHT.cjs.map → chunk-OPD5V57R.cjs.map} +1 -1
  36. package/dist/{chunk-WXOIEYXW.js → chunk-PD5MXNTJ.js} +5 -5
  37. package/dist/{chunk-WBLRUO3F.cjs → chunk-Q3AO2QWK.cjs} +3 -3
  38. package/dist/{chunk-WBLRUO3F.cjs.map → chunk-Q3AO2QWK.cjs.map} +1 -1
  39. package/dist/{chunk-C4DHYDXB.cjs → chunk-QGQ76SSR.cjs} +12 -12
  40. package/dist/{chunk-C4DHYDXB.cjs.map → chunk-QGQ76SSR.cjs.map} +1 -1
  41. package/dist/{chunk-WJSUUOPU.cjs → chunk-RSFHAFZN.cjs} +40 -40
  42. package/dist/{chunk-WJSUUOPU.cjs.map → chunk-RSFHAFZN.cjs.map} +1 -1
  43. package/dist/{chunk-MQXUIYYN.js → chunk-RYPCNUXA.js} +4 -4
  44. package/dist/{chunk-2TBXIW7L.js → chunk-UFP45JLE.js} +3 -3
  45. package/dist/{chunk-B2K5COVE.js → chunk-UYBNOHTC.js} +170 -145
  46. package/dist/{chunk-B2K5COVE.js.map → chunk-UYBNOHTC.js.map} +1 -1
  47. package/dist/{chunk-LBDKAMOH.cjs → chunk-VTSEL7CJ.cjs} +73 -73
  48. package/dist/{chunk-LBDKAMOH.cjs.map → chunk-VTSEL7CJ.cjs.map} +1 -1
  49. package/dist/components/case-studies/index.cjs +10 -10
  50. package/dist/components/case-studies/index.js +4 -4
  51. package/dist/components/chat/index.cjs +4 -4
  52. package/dist/components/chat/index.js +3 -3
  53. package/dist/components/contact/index.cjs +5 -5
  54. package/dist/components/contact/index.js +4 -4
  55. package/dist/components/docs/index.cjs +7 -7
  56. package/dist/components/docs/index.js +6 -6
  57. package/dist/components/embeds/index.cjs +5 -5
  58. package/dist/components/embeds/index.js +4 -4
  59. package/dist/components/faq/index.cjs +6 -6
  60. package/dist/components/faq/index.js +5 -5
  61. package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
  62. package/dist/components/features/auth/complete-account-form.d.ts.map +1 -1
  63. package/dist/components/features/auth/create-organization-form.d.ts.map +1 -1
  64. package/dist/components/features/auth/login-form.d.ts.map +1 -1
  65. package/dist/components/features/auth/openframe-sso-login-form.d.ts.map +1 -1
  66. package/dist/components/features/auth/openframe-sso-signup-form.d.ts.map +1 -1
  67. package/dist/components/features/auth/password-reset-form.d.ts.map +1 -1
  68. package/dist/components/features/index.cjs +4 -4
  69. package/dist/components/features/index.js +3 -3
  70. package/dist/components/help-center-pages/index.cjs +23 -23
  71. package/dist/components/help-center-pages/index.js +14 -14
  72. package/dist/components/index.cjs +149 -149
  73. package/dist/components/index.js +12 -12
  74. package/dist/components/navigation/index.cjs +4 -4
  75. package/dist/components/navigation/index.js +3 -3
  76. package/dist/components/onboarding-guides/index.cjs +8 -8
  77. package/dist/components/onboarding-guides/index.js +7 -7
  78. package/dist/components/related-content/index.cjs +6 -6
  79. package/dist/components/related-content/index.js +5 -5
  80. package/dist/components/tickets/index.cjs +7 -7
  81. package/dist/components/tickets/index.js +6 -6
  82. package/dist/components/ui/field-wrapper.d.ts +1 -1
  83. package/dist/components/ui/field-wrapper.d.ts.map +1 -1
  84. package/dist/components/ui/file-manager/index.cjs +50 -50
  85. package/dist/components/ui/file-manager/index.js +1 -1
  86. package/dist/components/ui/index.cjs +4 -4
  87. package/dist/components/ui/index.js +3 -3
  88. package/dist/hooks/index.cjs +4 -2
  89. package/dist/hooks/index.cjs.map +1 -1
  90. package/dist/hooks/index.js +3 -1
  91. package/dist/hooks/ui/index.d.ts +1 -0
  92. package/dist/hooks/ui/index.d.ts.map +1 -1
  93. package/dist/hooks/ui/use-deferred-error.d.ts +16 -0
  94. package/dist/hooks/ui/use-deferred-error.d.ts.map +1 -0
  95. package/dist/index.cjs +6 -4
  96. package/dist/index.cjs.map +1 -1
  97. package/dist/index.js +5 -3
  98. package/package.json +1 -1
  99. package/src/components/features/auth/auth-benefits-panel.tsx +1 -1
  100. package/src/components/features/auth/complete-account-form.tsx +48 -51
  101. package/src/components/features/auth/create-organization-form.tsx +33 -31
  102. package/src/components/features/auth/login-form.tsx +6 -1
  103. package/src/components/features/auth/openframe-sso-login-form.tsx +9 -2
  104. package/src/components/features/auth/openframe-sso-signup-form.tsx +51 -52
  105. package/src/components/features/auth/password-reset-form.tsx +9 -2
  106. package/src/components/ui/field-wrapper.tsx +6 -3
  107. package/src/hooks/ui/index.ts +1 -0
  108. package/src/hooks/ui/use-deferred-error.ts +38 -0
  109. package/src/stories/Input.stories.tsx +44 -0
  110. package/src/stories/auth/CreateOrganization.stories.tsx +20 -0
  111. package/dist/chunk-JWBRDNYH.cjs.map +0 -1
  112. package/dist/chunk-NYIZVI4I.cjs.map +0 -1
  113. package/dist/chunk-VVO7AZKZ.cjs.map +0 -1
  114. package/dist/chunk-X2FPWS3P.js.map +0 -1
  115. package/dist/chunk-ZSZRJWY3.js.map +0 -1
  116. /package/dist/{chunk-GKRJOS6S.js.map → chunk-463X3AW2.js.map} +0 -0
  117. /package/dist/{chunk-MNQVBME4.js.map → chunk-4HAVKWTJ.js.map} +0 -0
  118. /package/dist/{chunk-N4R7TRF3.js.map → chunk-56XCRZ7I.js.map} +0 -0
  119. /package/dist/{chunk-VDDNJ6XC.js.map → chunk-6VR7BJF6.js.map} +0 -0
  120. /package/dist/{chunk-MGJZQ3EE.js.map → chunk-FHEIG7QO.js.map} +0 -0
  121. /package/dist/{chunk-G42EXM23.js.map → chunk-I4XG5PJA.js.map} +0 -0
  122. /package/dist/{chunk-Y3FREU4B.js.map → chunk-LAL63W5J.js.map} +0 -0
  123. /package/dist/{chunk-URODM26E.js.map → chunk-MQRTT3DO.js.map} +0 -0
  124. /package/dist/{chunk-4KWIQEZT.js.map → chunk-MTBFE3JF.js.map} +0 -0
  125. /package/dist/{chunk-WXOIEYXW.js.map → chunk-PD5MXNTJ.js.map} +0 -0
  126. /package/dist/{chunk-MQXUIYYN.js.map → chunk-RYPCNUXA.js.map} +0 -0
  127. /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-ZSZRJWY3.js";
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-X2FPWS3P.js";
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://openframe.ai",
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__ */ jsxs148("div", { className: "flex gap-[var(--spacing-system-l)]", children: [
25894
- /* @__PURE__ */ jsx193("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx193(
25895
- Input,
25896
- {
25897
- label: "First Name",
25898
- placeholder: "Enter First Name",
25899
- value: firstName,
25900
- error: errors?.firstName,
25901
- disabled: fieldsDisabled,
25902
- onChange: (event) => onFirstNameChange(event.target.value),
25903
- onKeyDown: handleKeyDown
25904
- }
25905
- ) }),
25906
- /* @__PURE__ */ jsx193("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx193(
25907
- Input,
25908
- {
25909
- label: "Last Name",
25910
- placeholder: "Enter Last Name",
25911
- value: lastName,
25912
- error: errors?.lastName,
25913
- disabled: fieldsDisabled,
25914
- onChange: (event) => onLastNameChange(event.target.value),
25915
- onKeyDown: handleKeyDown
25916
- }
25917
- ) })
25918
- ] }),
25919
- /* @__PURE__ */ jsxs148("div", { className: "flex gap-[var(--spacing-system-l)]", children: [
25920
- /* @__PURE__ */ jsx193("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx193(
25921
- PasswordInput,
25922
- {
25923
- label: "Password",
25924
- placeholder: "Enter Password",
25925
- value: password,
25926
- error: errors?.password,
25927
- disabled: fieldsDisabled,
25928
- onChange: (event) => onPasswordChange(event.target.value),
25929
- onKeyDown: handleKeyDown
25930
- }
25931
- ) }),
25932
- /* @__PURE__ */ jsx193("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx193(
25933
- PasswordInput,
25934
- {
25935
- label: "Confirm Password",
25936
- placeholder: "Confirm Password",
25937
- value: confirmPassword,
25938
- error: errors?.confirmPassword,
25939
- disabled: fieldsDisabled,
25940
- onChange: (event) => onConfirmPasswordChange(event.target.value),
25941
- onKeyDown: handleKeyDown
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__ */ jsxs150("div", { className: "flex gap-[var(--spacing-system-l)]", children: [
26065
- /* @__PURE__ */ jsx195("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx195(
26066
- Input,
26067
- {
26068
- type: "email",
26069
- label: "Email",
26070
- placeholder: "username@mail.com",
26071
- value: email,
26072
- error: errors?.email ?? emailStatus?.message,
26073
- errorVariant: errors?.email ? "error" : emailStatus?.variant,
26074
- disabled: fieldsDisabled,
26075
- onChange: (event) => onEmailChange(event.target.value),
26076
- onKeyDown: handleKeyDown
26077
- }
26078
- ) }),
26079
- /* @__PURE__ */ jsx195("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx195(
26080
- Input,
26081
- {
26082
- label: "Organization Name",
26083
- placeholder: "Your Company Name",
26084
- value: organizationName,
26085
- error: errors?.organizationName,
26086
- disabled: fieldsDisabled,
26087
- onChange: (event) => onOrganizationNameChange(event.target.value),
26088
- onKeyDown: handleKeyDown
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: errors?.domain ?? domainStatus?.message,
26100
- errorVariant: errors?.domain ? "error" : domainStatus?.variant,
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-l)]", children: domainSlot })
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: errors?.email,
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: errors?.email,
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: errors?.password,
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: errors?.email,
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__ */ jsxs154("div", { className: "flex gap-[var(--spacing-system-l)]", children: [
26432
- /* @__PURE__ */ jsx199("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx199(
26433
- Input,
26434
- {
26435
- label: "First Name",
26436
- placeholder: "Enter First Name",
26437
- value: firstName,
26438
- error: errors?.firstName,
26439
- disabled: fieldsDisabled,
26440
- onChange: (event) => onFirstNameChange(event.target.value),
26441
- onKeyDown: handleKeyDown
26442
- }
26443
- ) }),
26444
- /* @__PURE__ */ jsx199("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx199(
26445
- Input,
26446
- {
26447
- label: "Last Name",
26448
- placeholder: "Enter Last Name",
26449
- value: lastName,
26450
- error: errors?.lastName,
26451
- disabled: fieldsDisabled,
26452
- onChange: (event) => onLastNameChange(event.target.value),
26453
- onKeyDown: handleKeyDown
26454
- }
26455
- ) })
26456
- ] }),
26457
- /* @__PURE__ */ jsxs154("div", { className: "flex gap-[var(--spacing-system-l)]", children: [
26458
- /* @__PURE__ */ jsx199("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx199(
26459
- PasswordInput,
26460
- {
26461
- label: "Password",
26462
- placeholder: "Enter Password",
26463
- value: password,
26464
- error: errors?.password,
26465
- disabled: fieldsDisabled,
26466
- onChange: (event) => onPasswordChange(event.target.value),
26467
- onKeyDown: handleKeyDown
26468
- }
26469
- ) }),
26470
- /* @__PURE__ */ jsx199("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx199(
26471
- PasswordInput,
26472
- {
26473
- label: "Confirm Password",
26474
- placeholder: "Confirm Password",
26475
- value: confirmPassword,
26476
- error: errors?.confirmPassword,
26477
- disabled: fieldsDisabled,
26478
- onChange: (event) => onConfirmPasswordChange(event.target.value),
26479
- onKeyDown: handleKeyDown
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: errors?.password,
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: errors?.confirmPassword,
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-B2K5COVE.js.map
53303
+ //# sourceMappingURL=chunk-UYBNOHTC.js.map