@intlayer/design-system 3.0.3 → 3.2.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/.vite/manifest.json +269 -117
- package/dist/Form-2XHQV7F_.cjs +295 -0
- package/dist/Form-2XHQV7F_.cjs.map +1 -0
- package/dist/Form-BO0i3nT9.js +300 -0
- package/dist/Form-BO0i3nT9.js.map +1 -0
- package/dist/Form-BaHDK0RZ.cjs +298 -0
- package/dist/Form-BaHDK0RZ.cjs.map +1 -0
- package/dist/Form-BfZMqK2D.js +300 -0
- package/dist/Form-BfZMqK2D.js.map +1 -0
- package/dist/Form-C13KWSZs.cjs +299 -0
- package/dist/Form-C13KWSZs.cjs.map +1 -0
- package/dist/Form-C8K2f8ph.js +300 -0
- package/dist/Form-C8K2f8ph.js.map +1 -0
- package/dist/Form-CKvCgz8c.cjs +299 -0
- package/dist/Form-CKvCgz8c.cjs.map +1 -0
- package/dist/Form-Cbk5Lhpd.js +299 -0
- package/dist/Form-Cbk5Lhpd.js.map +1 -0
- package/dist/Form-CiAgFAPb.cjs +300 -0
- package/dist/Form-CiAgFAPb.cjs.map +1 -0
- package/dist/Form-CnBKDneQ.js +296 -0
- package/dist/Form-CnBKDneQ.js.map +1 -0
- package/dist/Form-DERuauvB.cjs +300 -0
- package/dist/Form-DERuauvB.cjs.map +1 -0
- package/dist/Form-DhlDf3ML.cjs +299 -0
- package/dist/Form-DhlDf3ML.cjs.map +1 -0
- package/dist/Form-DkAZ0Jdf.cjs +299 -0
- package/dist/Form-DkAZ0Jdf.cjs.map +1 -0
- package/dist/Form-DqnNP4DA.js +300 -0
- package/dist/Form-DqnNP4DA.js.map +1 -0
- package/dist/Form-DyFBmVya.js +301 -0
- package/dist/Form-DyFBmVya.js.map +1 -0
- package/dist/Form-FW4Odjfm.js +301 -0
- package/dist/Form-FW4Odjfm.js.map +1 -0
- package/dist/TabSelector-BmkzVPXl.js +660 -0
- package/dist/TabSelector-BmkzVPXl.js.map +1 -0
- package/dist/TabSelector-o_NRBvPQ.cjs +659 -0
- package/dist/TabSelector-o_NRBvPQ.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +0 -1
- package/dist/components/Auth/AuthModal/index.cjs +17 -62
- package/dist/components/Auth/AuthModal/index.cjs.map +1 -1
- package/dist/components/Auth/AuthModal/index.d.ts +0 -1
- package/dist/components/Auth/AuthModal/index.d.ts.map +1 -1
- package/dist/components/Auth/AuthModal/index.mjs +17 -62
- package/dist/components/Auth/AuthModal/index.mjs.map +1 -1
- package/dist/components/Auth/AuthProvider/index.cjs +5 -21
- package/dist/components/Auth/AuthProvider/index.cjs.map +1 -1
- package/dist/components/Auth/AuthProvider/index.d.ts +7 -6
- package/dist/components/Auth/AuthProvider/index.d.ts.map +1 -1
- package/dist/components/Auth/AuthProvider/index.mjs +6 -22
- package/dist/components/Auth/AuthProvider/index.mjs.map +1 -1
- package/dist/components/Auth/AuthProvider/useSession.cjs +14 -11
- package/dist/components/Auth/AuthProvider/useSession.cjs.map +1 -1
- package/dist/components/Auth/AuthProvider/useSession.d.ts +0 -1
- package/dist/components/Auth/AuthProvider/useSession.d.ts.map +1 -1
- package/dist/components/Auth/AuthProvider/useSession.mjs +14 -11
- package/dist/components/Auth/AuthProvider/useSession.mjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +2 -2
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts +0 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +2 -3
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +1 -2
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/index.d.ts +3 -4
- package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +2 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +1 -2
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +2 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts +0 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/index.content.cjs.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/index.content.mjs.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +3 -2
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts +0 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +3 -2
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts +0 -1
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts +0 -1
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +2 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +1 -2
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +2 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts +0 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/index.content.cjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/index.content.mjs.map +1 -1
- package/dist/components/Auth/SignInForm/SignInForm.cjs +5 -4
- package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
- package/dist/components/Auth/SignInForm/SignInForm.d.ts +1 -2
- package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -1
- package/dist/components/Auth/SignInForm/SignInForm.mjs +5 -4
- package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
- package/dist/components/Auth/SignInForm/SignInSchema.cjs.map +1 -1
- package/dist/components/Auth/SignInForm/SignInSchema.d.ts +0 -1
- package/dist/components/Auth/SignInForm/SignInSchema.mjs.map +1 -1
- package/dist/components/Auth/SignInForm/index.content.cjs.map +1 -1
- package/dist/components/Auth/SignInForm/index.content.mjs.map +1 -1
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs +4 -4
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
- package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +1 -2
- package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs +4 -4
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
- package/dist/components/Auth/SignUpForm/SignUpSchema.cjs.map +1 -1
- package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts +0 -1
- package/dist/components/Auth/SignUpForm/SignUpSchema.mjs.map +1 -1
- package/dist/components/Auth/SignUpForm/index.content.cjs.map +1 -1
- package/dist/components/Auth/SignUpForm/index.content.mjs.map +1 -1
- package/dist/components/Auth/index.cjs +2 -4
- package/dist/components/Auth/index.cjs.map +1 -1
- package/dist/components/Auth/index.d.ts +1 -1
- package/dist/components/Auth/index.d.ts.map +1 -1
- package/dist/components/Auth/index.mjs +1 -3
- package/dist/components/Auth/useAuth/index.cjs +39 -0
- package/dist/components/Auth/useAuth/index.cjs.map +1 -0
- package/dist/components/Auth/useAuth/index.d.ts +24 -0
- package/dist/components/Auth/useAuth/index.d.ts.map +1 -0
- package/dist/components/Auth/useAuth/index.mjs +39 -0
- package/dist/components/Auth/useAuth/index.mjs.map +1 -0
- package/dist/components/Auth/useAuth/useCSRF.cjs +22 -0
- package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -0
- package/dist/components/Auth/useAuth/useCSRF.d.ts +5 -0
- package/dist/components/Auth/useAuth/useCSRF.d.ts.map +1 -0
- package/dist/components/Auth/useAuth/useCSRF.mjs +22 -0
- package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -0
- package/dist/components/Auth/useAuth/useOAuth2.cjs +26 -0
- package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -0
- package/dist/components/Auth/useAuth/useOAuth2.d.ts +4 -0
- package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -0
- package/dist/components/Auth/useAuth/useOAuth2.mjs +26 -0
- package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -0
- package/dist/components/Auth/useAuth/useSession.cjs +60 -0
- package/dist/components/Auth/useAuth/useSession.cjs.map +1 -0
- package/dist/components/Auth/useAuth/useSession.d.ts +8 -0
- package/dist/components/Auth/useAuth/useSession.d.ts.map +1 -0
- package/dist/components/Auth/useAuth/useSession.mjs +60 -0
- package/dist/components/Auth/useAuth/useSession.mjs.map +1 -0
- package/dist/components/Auth/useUser/index.cjs +3 -3
- package/dist/components/Auth/useUser/index.cjs.map +1 -1
- package/dist/components/Auth/useUser/index.d.ts.map +1 -1
- package/dist/components/Auth/useUser/index.mjs +3 -3
- package/dist/components/Auth/useUser/index.mjs.map +1 -1
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Breadcrumb/index.d.ts +0 -1
- package/dist/components/Button/Button.cjs +1 -0
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +1 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.mjs +1 -0
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Command/index.d.ts +9 -10
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Container/index.cjs +1 -0
- package/dist/components/Container/index.cjs.map +1 -1
- package/dist/components/Container/index.d.ts +20 -7
- package/dist/components/Container/index.d.ts.map +1 -1
- package/dist/components/Container/index.mjs +1 -0
- package/dist/components/Container/index.mjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditor.d.ts +0 -1
- package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +0 -1
- package/dist/components/ContentSelector/ContentSelector.d.ts +0 -1
- package/dist/components/CopyToClipboard/index.d.ts +0 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs +30 -24
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +0 -7
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs +30 -24
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
- package/dist/components/DictionaryEditor/ItemLayout.cjs +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.cjs.map +1 -1
- package/dist/components/DictionaryEditor/ItemLayout.d.ts +0 -1
- package/dist/components/DictionaryEditor/ItemLayout.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/ItemLayout.mjs +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.mjs.map +1 -1
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +7 -5
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.map +1 -1
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +7 -5
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs.map +1 -1
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +0 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +98 -19
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +1 -5
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +99 -20
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
- package/dist/components/DictionaryEditor/useEditedContentStore.cjs +18 -20
- package/dist/components/DictionaryEditor/useEditedContentStore.cjs.map +1 -1
- package/dist/components/DictionaryEditor/useEditedContentStore.d.ts +0 -1
- package/dist/components/DictionaryEditor/useEditedContentStore.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/useEditedContentStore.mjs +19 -21
- package/dist/components/DictionaryEditor/useEditedContentStore.mjs.map +1 -1
- package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts +0 -1
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +46 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts +18 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +46 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.cjs +8 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.cjs.map +1 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.d.ts +4 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.mjs +8 -0
- package/dist/components/DictionaryEditor/validDictionaryChangeButtonsSchema.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +10 -3
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +10 -3
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +8 -25
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +7 -24
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +0 -42
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +0 -18
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +0 -42
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +5 -37
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +4 -36
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts +2 -3
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +2 -49
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +0 -19
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +2 -49
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +38 -13
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +38 -13
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +22 -6
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +22 -6
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +29 -14
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +29 -14
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs +1 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +18 -2
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +18 -2
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +18 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +18 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +14 -28
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +14 -28
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.d.ts +0 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +2 -23
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +0 -9
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +2 -23
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts +0 -1
- package/dist/components/DropDown/index.d.ts +0 -1
- package/dist/components/DropDown/types.d.ts +0 -1
- package/dist/components/EditableField/EditableFieldInput.cjs +12 -5
- package/dist/components/EditableField/EditableFieldInput.cjs.map +1 -1
- package/dist/components/EditableField/EditableFieldInput.d.ts +2 -4
- package/dist/components/EditableField/EditableFieldInput.d.ts.map +1 -1
- package/dist/components/EditableField/EditableFieldInput.mjs +13 -6
- package/dist/components/EditableField/EditableFieldInput.mjs.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.d.ts +0 -1
- package/dist/components/EditableField/EditableFieldTextArea.cjs +17 -4
- package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.d.ts +6 -3
- package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.mjs +18 -5
- package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
- package/dist/components/Flags/Flag.d.ts +0 -1
- package/dist/components/Footer/index.d.ts +0 -1
- package/dist/components/Form/Form.cjs +1 -1
- package/dist/components/Form/Form.d.ts +2 -1
- package/dist/components/Form/Form.d.ts.map +1 -1
- package/dist/components/Form/Form.mjs +1 -1
- package/dist/components/Form/FormBase.cjs +4 -1
- package/dist/components/Form/FormBase.cjs.map +1 -1
- package/dist/components/Form/FormBase.d.ts +1 -2
- package/dist/components/Form/FormBase.d.ts.map +1 -1
- package/dist/components/Form/FormBase.mjs +4 -1
- package/dist/components/Form/FormBase.mjs.map +1 -1
- package/dist/components/Form/FormDescription.d.ts +0 -1
- package/dist/components/Form/FormField.d.ts +0 -1
- package/dist/components/Form/FormItem.d.ts +0 -1
- package/dist/components/Form/FormMessage.d.ts +0 -1
- package/dist/components/Form/elements/CheckboxElement.cjs +10 -0
- package/dist/components/Form/elements/CheckboxElement.cjs.map +1 -0
- package/dist/components/Form/elements/CheckboxElement.d.ts +10 -0
- package/dist/components/Form/elements/CheckboxElement.d.ts.map +1 -0
- package/dist/components/Form/elements/CheckboxElement.mjs +10 -0
- package/dist/components/Form/elements/CheckboxElement.mjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldInputElement.cjs +1 -1
- package/dist/components/Form/elements/EditableFieldInputElement.d.ts +0 -1
- package/dist/components/Form/elements/EditableFieldInputElement.mjs +1 -1
- package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +1 -1
- package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts +0 -1
- package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +1 -1
- package/dist/components/Form/elements/FormElement.cjs +1 -1
- package/dist/components/Form/elements/FormElement.d.ts +0 -1
- package/dist/components/Form/elements/FormElement.mjs +1 -1
- package/dist/components/Form/elements/FormElementWrapper.d.ts +0 -1
- package/dist/components/Form/elements/InputElement.cjs +2 -1
- package/dist/components/Form/elements/InputElement.cjs.map +1 -1
- package/dist/components/Form/elements/InputElement.d.ts +2 -3
- package/dist/components/Form/elements/InputElement.d.ts.map +1 -1
- package/dist/components/Form/elements/InputElement.mjs +2 -1
- package/dist/components/Form/elements/InputElement.mjs.map +1 -1
- package/dist/components/Form/elements/InputPasswordElement.cjs +2 -1
- package/dist/components/Form/elements/InputPasswordElement.cjs.map +1 -1
- package/dist/components/Form/elements/InputPasswordElement.d.ts +2 -3
- package/dist/components/Form/elements/InputPasswordElement.d.ts.map +1 -1
- package/dist/components/Form/elements/InputPasswordElement.mjs +2 -1
- package/dist/components/Form/elements/InputPasswordElement.mjs.map +1 -1
- package/dist/components/Form/elements/MultiselectElement.cjs +1 -1
- package/dist/components/Form/elements/MultiselectElement.d.ts +0 -1
- package/dist/components/Form/elements/MultiselectElement.mjs +1 -1
- package/dist/components/Form/elements/SelectElement.cjs +1 -1
- package/dist/components/Form/elements/SelectElement.d.ts +0 -1
- package/dist/components/Form/elements/SelectElement.mjs +1 -1
- package/dist/components/Form/elements/SwitchSelectorElement.cjs +1 -1
- package/dist/components/Form/elements/SwitchSelectorElement.d.ts +0 -1
- package/dist/components/Form/elements/SwitchSelectorElement.mjs +1 -1
- package/dist/components/Form/elements/TextAreaElement.cjs +1 -1
- package/dist/components/Form/elements/TextAreaElement.d.ts +0 -1
- package/dist/components/Form/elements/TextAreaElement.mjs +1 -1
- package/dist/components/Form/elements/index.cjs +1 -1
- package/dist/components/Form/elements/index.mjs +1 -1
- package/dist/components/Form/index.cjs +1 -1
- package/dist/components/Form/index.mjs +1 -1
- package/dist/components/Form/layout/FormItemLayout.cjs +1 -1
- package/dist/components/Form/layout/FormItemLayout.d.ts +1 -2
- package/dist/components/Form/layout/FormItemLayout.d.ts.map +1 -1
- package/dist/components/Form/layout/FormItemLayout.mjs +1 -1
- package/dist/components/Form/layout/FormLabelLayout.d.ts +0 -1
- package/dist/components/Form/layout/RequiredStar.d.ts +0 -1
- package/dist/components/Form/layout/index.cjs +1 -1
- package/dist/components/Form/layout/index.mjs +1 -1
- package/dist/components/Headers/index.d.ts +0 -1
- package/dist/components/IDE/CodeRender.cjs.map +1 -1
- package/dist/components/IDE/CodeRender.d.ts +0 -1
- package/dist/components/IDE/CodeRender.mjs.map +1 -1
- package/dist/components/IDE/FileList.d.ts +0 -1
- package/dist/components/IDE/FileTree.d.ts +0 -1
- package/dist/components/IDE/IDE.d.ts +0 -1
- package/dist/components/IDE/MarkDownRender.d.ts +0 -1
- package/dist/components/InformationTag/index.d.ts +0 -1
- package/dist/components/Input/Checkbox.cjs +80 -0
- package/dist/components/Input/Checkbox.cjs.map +1 -0
- package/dist/components/Input/Checkbox.d.ts +14 -0
- package/dist/components/Input/Checkbox.d.ts.map +1 -0
- package/dist/components/Input/Checkbox.mjs +80 -0
- package/dist/components/Input/Checkbox.mjs.map +1 -0
- package/dist/components/Input/Input.cjs +8 -2
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.mjs +8 -2
- package/dist/components/Input/Input.mjs.map +1 -1
- package/dist/components/Input/InputPassword.d.ts +0 -1
- package/dist/components/Input/index.cjs +3 -0
- package/dist/components/Input/index.cjs.map +1 -1
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.mjs +3 -0
- package/dist/components/Input/index.mjs.map +1 -1
- package/dist/components/Label/index.d.ts +0 -1
- package/dist/components/Link/Link.cjs +7 -2
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.d.ts +2 -2
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/Link.mjs +7 -2
- package/dist/components/Link/Link.mjs.map +1 -1
- package/dist/components/Loader/index.d.ts +0 -1
- package/dist/components/Loader/spinner.d.ts +0 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +0 -1
- package/dist/components/Logo/LogoCircle.d.ts +0 -1
- package/dist/components/Logo/LogoNoFrame.d.ts +0 -1
- package/dist/components/Logo/LogoSquare.d.ts +0 -1
- package/dist/components/Logo/LogoSquircle.d.ts +0 -1
- package/dist/components/Logo/LogoTextOnly.d.ts +0 -1
- package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +0 -1
- package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +0 -1
- package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +0 -1
- package/dist/components/Logo/LogoWithTextCircle.d.ts +0 -1
- package/dist/components/Logo/LogoWithTextNoFrame.d.ts +0 -1
- package/dist/components/Logo/LogoWithTextSquircle.d.ts +0 -1
- package/dist/components/Logo/index.d.ts +0 -1
- package/dist/components/MarkDownRender/index.d.ts +0 -1
- package/dist/components/MaxHeightSmoother/index.d.ts +0 -1
- package/dist/components/MaxWidthSmoother/index.d.ts +0 -1
- package/dist/components/Modal/Modal.cjs +22 -16
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.mjs +22 -16
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Navbar/Burger.d.ts +0 -1
- package/dist/components/Navbar/DesktopNavbar.cjs +10 -26
- package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.d.ts +6 -6
- package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.mjs +10 -26
- package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.cjs +6 -58
- package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.d.ts +6 -7
- package/dist/components/Navbar/MobileNavbar.d.ts.map +1 -1
- package/dist/components/Navbar/MobileNavbar.mjs +6 -58
- package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
- package/dist/components/Navbar/index.cjs +7 -3
- package/dist/components/Navbar/index.cjs.map +1 -1
- package/dist/components/Navbar/index.d.ts +9 -15
- package/dist/components/Navbar/index.d.ts.map +1 -1
- package/dist/components/Navbar/index.mjs +7 -3
- package/dist/components/Navbar/index.mjs.map +1 -1
- package/dist/components/Pattern/DotPattern.d.ts +0 -1
- package/dist/components/Pattern/GridPattern.d.ts +0 -1
- package/dist/components/Pattern/SpotLight.d.ts +0 -1
- package/dist/components/Popover/index.d.ts +0 -1
- package/dist/components/PressableSpan/PressableSpan.d.ts +0 -1
- package/dist/components/ProfileDropDown/index.d.ts +0 -1
- package/dist/components/RightDrawer/RightDrawer.d.ts +0 -1
- package/dist/components/Select/Multiselect.d.ts +2 -3
- package/dist/components/Select/Multiselect.d.ts.map +1 -1
- package/dist/components/SwitchSelector/index.cjs +3 -1
- package/dist/components/SwitchSelector/index.cjs.map +1 -1
- package/dist/components/SwitchSelector/index.d.ts +0 -1
- package/dist/components/SwitchSelector/index.mjs +3 -1
- package/dist/components/SwitchSelector/index.mjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +15 -10
- package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.d.ts +1 -2
- package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
- package/dist/components/TabSelector/TabSelector.mjs +15 -10
- package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/components/Tag/index.cjs +79 -0
- package/dist/components/Tag/index.cjs.map +1 -0
- package/dist/components/Tag/index.d.ts +12 -0
- package/dist/components/Tag/index.d.ts.map +1 -0
- package/dist/components/Tag/index.mjs +79 -0
- package/dist/components/Tag/index.mjs.map +1 -0
- package/dist/components/TextArea/AutoSizeTextArea.d.ts +0 -1
- package/dist/components/TextArea/TextArea.cjs +1 -0
- package/dist/components/TextArea/TextArea.cjs.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts +0 -1
- package/dist/components/TextArea/TextArea.mjs +1 -0
- package/dist/components/TextArea/TextArea.mjs.map +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +0 -1
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +0 -1
- package/dist/components/Toaster/useToast.d.ts +0 -1
- package/dist/components/WithResizer/index.d.ts +0 -1
- package/dist/components/index.cjs +8 -7
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.mjs +7 -6
- package/dist/components/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +4 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.mjs +5 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.cjs +258 -114
- package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.d.ts +43 -39
- package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
- package/dist/hooks/intlayerAPIHooks.mjs +259 -115
- package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.cjs +142 -108
- package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.d.ts +0 -2
- package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
- package/dist/hooks/useAsync/useAsync.mjs +143 -109
- package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.cjs +50 -112
- package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts +3 -9
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.mjs +50 -112
- package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts +0 -1
- package/dist/hooks/useAsync/useProxyState.d.ts +3 -0
- package/dist/hooks/useAsync/useProxyState.d.ts.map +1 -0
- package/dist/hooks/useGetAllDictionaries.d.ts +0 -1
- package/dist/hooks/useIntlayerAPI.cjs +6 -5
- package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
- package/dist/hooks/useIntlayerAPI.d.ts +51 -45
- package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
- package/dist/hooks/useIntlayerAPI.mjs +5 -4
- package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
- package/dist/hooks/useItemSelector.cjs +11 -2
- package/dist/hooks/useItemSelector.cjs.map +1 -1
- package/dist/hooks/useItemSelector.d.ts +3 -3
- package/dist/hooks/useItemSelector.d.ts.map +1 -1
- package/dist/hooks/useItemSelector.mjs +11 -2
- package/dist/hooks/useItemSelector.mjs.map +1 -1
- package/dist/hooks/usePersistedStore.cjs +22 -0
- package/dist/hooks/usePersistedStore.cjs.map +1 -0
- package/dist/hooks/usePersistedStore.d.ts +2 -0
- package/dist/hooks/usePersistedStore.d.ts.map +1 -0
- package/dist/hooks/usePersistedStore.mjs +22 -0
- package/dist/hooks/usePersistedStore.mjs.map +1 -0
- package/dist/hooks/usePersistenceStore.cjs +22 -0
- package/dist/hooks/usePersistenceStore.cjs.map +1 -0
- package/dist/hooks/usePersistenceStore.d.ts +2 -0
- package/dist/hooks/usePersistenceStore.d.ts.map +1 -0
- package/dist/hooks/usePersistenceStore.mjs +22 -0
- package/dist/hooks/usePersistenceStore.mjs.map +1 -0
- package/dist/index-BUDsCMdX.cjs +204 -0
- package/dist/index-BUDsCMdX.cjs.map +1 -0
- package/dist/index-C09rI9kw.js +205 -0
- package/dist/index-C09rI9kw.js.map +1 -0
- package/dist/libs/intlayer-api/auth.cjs +14 -2
- package/dist/libs/intlayer-api/auth.cjs.map +1 -1
- package/dist/libs/intlayer-api/auth.d.ts +7 -4
- package/dist/libs/intlayer-api/auth.d.ts.map +1 -1
- package/dist/libs/intlayer-api/auth.mjs +14 -2
- package/dist/libs/intlayer-api/auth.mjs.map +1 -1
- package/dist/libs/intlayer-api/dictionary.d.ts +0 -1
- package/dist/libs/intlayer-api/fetcher.cjs +4 -3
- package/dist/libs/intlayer-api/fetcher.cjs.map +1 -1
- package/dist/libs/intlayer-api/fetcher.d.ts.map +1 -1
- package/dist/libs/intlayer-api/fetcher.mjs +4 -3
- package/dist/libs/intlayer-api/fetcher.mjs.map +1 -1
- package/dist/libs/intlayer-api/index.cjs +3 -1
- package/dist/libs/intlayer-api/index.cjs.map +1 -1
- package/dist/libs/intlayer-api/index.d.ts +12 -3
- package/dist/libs/intlayer-api/index.d.ts.map +1 -1
- package/dist/libs/intlayer-api/index.mjs +3 -1
- package/dist/libs/intlayer-api/index.mjs.map +1 -1
- package/dist/libs/intlayer-api/organization.d.ts +0 -1
- package/dist/libs/intlayer-api/project.d.ts +0 -1
- package/dist/libs/intlayer-api/stripe.cjs +22 -0
- package/dist/libs/intlayer-api/stripe.cjs.map +1 -0
- package/dist/libs/intlayer-api/stripe.d.ts +6 -0
- package/dist/libs/intlayer-api/stripe.d.ts.map +1 -0
- package/dist/libs/intlayer-api/stripe.mjs +22 -0
- package/dist/libs/intlayer-api/stripe.mjs.map +1 -0
- package/dist/libs/intlayer-api/user.d.ts +0 -1
- package/dist/stripe-BsI0lJWz.js +22 -0
- package/dist/stripe-BsI0lJWz.js.map +1 -0
- package/dist/stripe-C-u5RvGh.js +22 -0
- package/dist/stripe-C-u5RvGh.js.map +1 -0
- package/dist/stripe-CF_E65Vu.js +22 -0
- package/dist/stripe-CF_E65Vu.js.map +1 -0
- package/dist/stripe-CpGvfq6T.cjs +21 -0
- package/dist/stripe-CpGvfq6T.cjs.map +1 -0
- package/dist/stripe-DEv4DjAL.cjs +21 -0
- package/dist/stripe-DEv4DjAL.cjs.map +1 -0
- package/dist/stripe-DuG0uaEn.cjs +21 -0
- package/dist/stripe-DuG0uaEn.cjs.map +1 -0
- package/dist/tailwind.css +1 -1
- package/dist/useProxyState-D5GLrY2y.js +20 -0
- package/dist/useProxyState-D5GLrY2y.js.map +1 -0
- package/dist/useProxyState-DewdF3no.cjs +19 -0
- package/dist/useProxyState-DewdF3no.cjs.map +1 -0
- package/dist/utils/cn.d.ts +0 -1
- package/dist/utils/dictionary.cjs +37 -1
- package/dist/utils/dictionary.cjs.map +1 -1
- package/dist/utils/dictionary.d.ts +1 -1
- package/dist/utils/dictionary.d.ts.map +1 -1
- package/dist/utils/dictionary.mjs +38 -2
- package/dist/utils/dictionary.mjs.map +1 -1
- package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs +66 -0
- package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs.map +1 -0
- package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs +66 -0
- package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs.map +1 -0
- package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js +67 -0
- package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js.map +1 -0
- package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs +45 -0
- package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs.map +1 -0
- package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js +67 -0
- package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js.map +1 -0
- package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs +66 -0
- package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs.map +1 -0
- package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js +67 -0
- package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js.map +1 -0
- package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js +46 -0
- package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js.map +1 -0
- package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs +66 -0
- package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs.map +1 -0
- package/dist/validDictionaryChangeButtons.content-y4up9NU8.js +67 -0
- package/dist/validDictionaryChangeButtons.content-y4up9NU8.js.map +1 -0
- package/dist/zod-BV4nCGJE.js.map +1 -1
- package/dist/zod-DSrtTSD_.cjs.map +1 -1
- package/package.json +87 -56
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as jsxRuntimeExports } from "../../../jsx-runtime-BgSF1HG2.js";
|
|
3
|
-
import { createContext, useContext,
|
|
3
|
+
import { createContext, useContext, useMemo } from "react";
|
|
4
4
|
import { useCSRF } from "./useCSRF.mjs";
|
|
5
5
|
import { useOAuth2 } from "./useOAuth2.mjs";
|
|
6
6
|
import { useSession } from "./useSession.mjs";
|
|
@@ -12,8 +12,8 @@ const AuthContext = createContext({
|
|
|
12
12
|
csrfToken: null,
|
|
13
13
|
csrfTokenFetched: false,
|
|
14
14
|
oAuth2AccessToken: null,
|
|
15
|
-
isProjectAdmin:
|
|
16
|
-
isOrganizationAdmin:
|
|
15
|
+
isProjectAdmin: null,
|
|
16
|
+
isOrganizationAdmin: null
|
|
17
17
|
});
|
|
18
18
|
const useAuth = () => useContext(AuthContext);
|
|
19
19
|
const AuthProvider = ({
|
|
@@ -23,20 +23,6 @@ const AuthProvider = ({
|
|
|
23
23
|
const { csrfToken, csrfTokenFetched } = useCSRF();
|
|
24
24
|
const { session, fetchSession, revalidateSession, setSession } = useSession(sessionProp);
|
|
25
25
|
const { oAuth2AccessToken } = useOAuth2(csrfToken);
|
|
26
|
-
const [isProjectAdmin, setIsProjectAdmin] = useState(false);
|
|
27
|
-
const [isOrganizationAdmin, setIsOrganizationAdmin] = useState(false);
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
if (session?.user && session.organization) {
|
|
30
|
-
setIsOrganizationAdmin(
|
|
31
|
-
session.organization.adminsIds.includes(session.user._id)
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
if (session?.user && session.project) {
|
|
35
|
-
setIsProjectAdmin(
|
|
36
|
-
session.project?.adminsIds.includes(session.user._id) ?? false
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
}, [session]);
|
|
40
26
|
const memoValue = useMemo(
|
|
41
27
|
() => ({
|
|
42
28
|
session,
|
|
@@ -46,8 +32,8 @@ const AuthProvider = ({
|
|
|
46
32
|
csrfToken,
|
|
47
33
|
csrfTokenFetched,
|
|
48
34
|
oAuth2AccessToken,
|
|
49
|
-
isProjectAdmin,
|
|
50
|
-
isOrganizationAdmin
|
|
35
|
+
isProjectAdmin: session?.isProjectAdmin,
|
|
36
|
+
isOrganizationAdmin: session?.isOrganizationAdmin
|
|
51
37
|
}),
|
|
52
38
|
[
|
|
53
39
|
session,
|
|
@@ -56,9 +42,7 @@ const AuthProvider = ({
|
|
|
56
42
|
revalidateSession,
|
|
57
43
|
csrfToken,
|
|
58
44
|
csrfTokenFetched,
|
|
59
|
-
oAuth2AccessToken
|
|
60
|
-
isProjectAdmin,
|
|
61
|
-
isOrganizationAdmin
|
|
45
|
+
oAuth2AccessToken
|
|
62
46
|
]
|
|
63
47
|
);
|
|
64
48
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(AuthContext.Provider, { value: memoValue, children });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../src/components/Auth/AuthProvider/index.tsx"],"sourcesContent":["'use client';\n\nimport type {\n OAuth2Token,\n
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/Auth/AuthProvider/index.tsx"],"sourcesContent":["'use client';\n\nimport type {\n OAuth2Token,\n OrganizationAPI,\n ProjectAPI,\n UserAPI,\n} from '@intlayer/backend';\nimport {\n type PropsWithChildren,\n type FC,\n createContext,\n useContext,\n useMemo,\n} from 'react';\nimport { useCSRF } from './useCSRF';\nimport { useOAuth2 } from './useOAuth2';\nimport { useSession } from './useSession';\n\nexport type Session = {\n user: UserAPI | null;\n organization: OrganizationAPI | null;\n project: ProjectAPI | null;\n isOrganizationAdmin: boolean;\n isProjectAdmin: boolean;\n};\n\ntype SessionContextProps = {\n session: Session | null | undefined;\n setSession: (session: Session | null) => void;\n fetchSession: () => Promise<Session | null | undefined>;\n revalidateSession: () => Promise<Session | null | undefined>;\n csrfToken: string | null | undefined;\n csrfTokenFetched: boolean;\n oAuth2AccessToken: OAuth2Token | null | undefined;\n isProjectAdmin: boolean | null | undefined;\n isOrganizationAdmin: boolean | null | undefined;\n};\n\nexport const AuthContext = createContext<SessionContextProps>({\n session: undefined,\n setSession: () => null,\n fetchSession: () => Promise.resolve(undefined),\n revalidateSession: () => Promise.resolve(undefined),\n csrfToken: null,\n csrfTokenFetched: false,\n oAuth2AccessToken: null,\n isProjectAdmin: null,\n isOrganizationAdmin: null,\n});\n\nexport const useAuth = () => useContext(AuthContext);\n\nexport type AuthProviderProps = PropsWithChildren<{\n /**\n * auth session\n */\n session?: Session | null;\n}>;\n\nexport const AuthProvider: FC<PropsWithChildren<AuthProviderProps>> = ({\n children,\n session: sessionProp,\n}) => {\n const { csrfToken, csrfTokenFetched } = useCSRF();\n const { session, fetchSession, revalidateSession, setSession } =\n useSession(sessionProp);\n const { oAuth2AccessToken } = useOAuth2(csrfToken);\n\n const memoValue: SessionContextProps = useMemo(\n () => ({\n session,\n fetchSession,\n setSession,\n revalidateSession,\n csrfToken,\n csrfTokenFetched,\n oAuth2AccessToken,\n isProjectAdmin: session?.isProjectAdmin,\n isOrganizationAdmin: session?.isOrganizationAdmin,\n }),\n [\n session,\n setSession,\n fetchSession,\n revalidateSession,\n csrfToken,\n csrfTokenFetched,\n oAuth2AccessToken,\n ]\n );\n\n return (\n <AuthContext.Provider value={memoValue}>{children}</AuthContext.Provider>\n );\n};\n"],"names":[],"mappings":";;;;;;AAuCO,MAAM,cAAc,cAAmC;AAAA,EAC5D,SAAS;AAAA,EACT,YAAY,MAAM;AAAA,EAClB,cAAc,MAAM,QAAQ,QAAQ,MAAS;AAAA,EAC7C,mBAAmB,MAAM,QAAQ,QAAQ,MAAS;AAAA,EAClD,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,qBAAqB;AACvB,CAAC;AAEY,MAAA,UAAU,MAAM,WAAW,WAAW;AAS5C,MAAM,eAAyD,CAAC;AAAA,EACrE;AAAA,EACA,SAAS;AACX,MAAM;AACJ,QAAM,EAAE,WAAW,iBAAiB,IAAI,QAAQ;AAChD,QAAM,EAAE,SAAS,cAAc,mBAAmB,eAChD,WAAW,WAAW;AACxB,QAAM,EAAE,kBAAA,IAAsB,UAAU,SAAS;AAEjD,QAAM,YAAiC;AAAA,IACrC,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,gBAAgB,SAAS;AAAA,MACzB,qBAAqB,SAAS;AAAA,IAAA;AAAA,IAEhC;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EAAA;AAGF,+CACG,YAAY,UAAZ,EAAqB,OAAO,WAAY,SAAS,CAAA;AAEtD;"}
|
|
@@ -5,20 +5,30 @@ const require$$0 = require("react");
|
|
|
5
5
|
const hooks_useAsync_useAsync = require("../../../hooks/useAsync/useAsync.cjs");
|
|
6
6
|
const libs_intlayerApi_index = require("../../../libs/intlayer-api/index.cjs");
|
|
7
7
|
const useSession = (sessionProp) => {
|
|
8
|
-
const
|
|
8
|
+
const {
|
|
9
|
+
getSession,
|
|
10
|
+
revalidate,
|
|
11
|
+
data,
|
|
12
|
+
setData: setSession,
|
|
13
|
+
isFetched
|
|
14
|
+
} = hooks_useAsync_useAsync.useAsync(
|
|
9
15
|
"getSession",
|
|
10
16
|
async () => {
|
|
11
17
|
try {
|
|
12
18
|
const result = await libs_intlayerApi_index.getIntlayerAPI().auth.getSession();
|
|
13
19
|
if (result.data) {
|
|
20
|
+
const { user, organization, project } = result.data;
|
|
14
21
|
const formattedSession = {
|
|
15
|
-
user
|
|
16
|
-
organization
|
|
17
|
-
|
|
22
|
+
user,
|
|
23
|
+
organization,
|
|
24
|
+
isOrganizationAdmin: (user && (organization?.adminsIds ?? []).includes(user._id)) ?? false,
|
|
25
|
+
project,
|
|
26
|
+
isProjectAdmin: (user && (project?.adminsIds ?? []).includes(user._id)) ?? false
|
|
18
27
|
};
|
|
19
28
|
return formattedSession;
|
|
20
29
|
}
|
|
21
30
|
} catch (_error) {
|
|
31
|
+
console.error(_error);
|
|
22
32
|
}
|
|
23
33
|
return null;
|
|
24
34
|
},
|
|
@@ -35,13 +45,6 @@ const useSession = (sessionProp) => {
|
|
|
35
45
|
]
|
|
36
46
|
}
|
|
37
47
|
);
|
|
38
|
-
const {
|
|
39
|
-
getSession,
|
|
40
|
-
revalidate,
|
|
41
|
-
data,
|
|
42
|
-
setData: setSession,
|
|
43
|
-
isFetched
|
|
44
|
-
} = useGetSession();
|
|
45
48
|
const fetchSession = require$$0.useCallback(async () => {
|
|
46
49
|
if (sessionProp) {
|
|
47
50
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSession.cjs","sources":["../../../../src/components/Auth/AuthProvider/useSession.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useCallback, useMemo } from 'react';\nimport { useAsync } from '../../../hooks/useAsync';\nimport { getIntlayerAPI } from '../../../libs/intlayer-api';\nimport type { Session } from './index';\n\nexport const useSession = (sessionProp?: Session | null) => {\n const
|
|
1
|
+
{"version":3,"file":"useSession.cjs","sources":["../../../../src/components/Auth/AuthProvider/useSession.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useCallback, useMemo } from 'react';\nimport { useAsync } from '../../../hooks/useAsync';\nimport { getIntlayerAPI } from '../../../libs/intlayer-api';\nimport type { Session } from './index';\n\nexport const useSession = (sessionProp?: Session | null) => {\n const {\n getSession,\n revalidate,\n data,\n setData: setSession,\n isFetched,\n } = useAsync(\n 'getSession',\n async () => {\n try {\n const result = await getIntlayerAPI().auth.getSession();\n\n if (result.data) {\n const { user, organization, project } = result.data;\n\n const formattedSession: Session = {\n user,\n organization,\n isOrganizationAdmin:\n (user && (organization?.adminsIds ?? []).includes(user._id!)) ??\n false,\n project,\n isProjectAdmin:\n (user && (project?.adminsIds ?? []).includes(user._id!)) ?? false,\n };\n\n return formattedSession;\n }\n } catch (_error) {\n console.error(_error);\n // Failed to fetch session\n }\n\n return null;\n },\n {\n cache: true,\n store: true,\n autoFetch: true,\n enable: !sessionProp,\n invalidateQueries: [\n 'getOrganizations',\n 'getProjects',\n 'getUsers',\n 'getDictionaries',\n ],\n }\n );\n\n const fetchSession = useCallback(async () => {\n if (sessionProp) {\n return;\n }\n\n return await getSession();\n }, [sessionProp]);\n\n const revalidateSession = revalidate;\n\n useEffect(() => {\n // Fetch session if sessionProp is not provided when the component is mounted\n fetchSession();\n }, [fetchSession]);\n\n const session = useMemo(\n () => data ?? (isFetched ? null : undefined),\n [data, isFetched]\n );\n\n return {\n session,\n fetchSession,\n revalidateSession,\n setSession,\n };\n};\n"],"names":["useAsync","getIntlayerAPI","useCallback","useEffect","useMemo"],"mappings":";;;;;;AAOa,MAAA,aAAa,CAAC,gBAAiC;AACpD,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,EAAA,IACEA,wBAAA;AAAA,IACF;AAAA,IACA,YAAY;AACN,UAAA;AACF,cAAM,SAAS,MAAMC,uBAAAA,eAAe,EAAE,KAAK,WAAW;AAEtD,YAAI,OAAO,MAAM;AACf,gBAAM,EAAE,MAAM,cAAc,QAAA,IAAY,OAAO;AAE/C,gBAAM,mBAA4B;AAAA,YAChC;AAAA,YACA;AAAA,YACA,sBACG,SAAS,cAAc,aAAa,CAAI,GAAA,SAAS,KAAK,GAAI,MAC3D;AAAA,YACF;AAAA,YACA,iBACG,SAAS,SAAS,aAAa,CAAI,GAAA,SAAS,KAAK,GAAI,MAAM;AAAA,UAAA;AAGzD,iBAAA;AAAA,QACT;AAAA,eACO,QAAQ;AACf,gBAAQ,MAAM,MAAM;AAAA,MAEtB;AAEO,aAAA;AAAA,IACT;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,WAAW;AAAA,MACX,QAAQ,CAAC;AAAA,MACT,mBAAmB;AAAA,QACjB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EAAA;AAGI,QAAA,eAAeC,WAAAA,YAAY,YAAY;AAC3C,QAAI,aAAa;AACf;AAAA,IACF;AAEA,WAAO,MAAM,WAAW;AAAA,EAAA,GACvB,CAAC,WAAW,CAAC;AAEhB,QAAM,oBAAoB;AAE1BC,aAAAA,UAAU,MAAM;AAED;EAAA,GACZ,CAAC,YAAY,CAAC;AAEjB,QAAM,UAAUC,WAAA;AAAA,IACd,MAAM,SAAS,YAAY,OAAO;AAAA,IAClC,CAAC,MAAM,SAAS;AAAA,EAAA;AAGX,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSession.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/AuthProvider/useSession.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,UAAU,iBAAkB,OAAO,GAAG,IAAI;;;;;
|
|
1
|
+
{"version":3,"file":"useSession.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/AuthProvider/useSession.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,UAAU,iBAAkB,OAAO,GAAG,IAAI;;;;;CA4EtD,CAAC"}
|
|
@@ -3,20 +3,30 @@ import { useCallback, useEffect, useMemo } from "react";
|
|
|
3
3
|
import { useAsync } from "../../../hooks/useAsync/useAsync.mjs";
|
|
4
4
|
import { getIntlayerAPI } from "../../../libs/intlayer-api/index.mjs";
|
|
5
5
|
const useSession = (sessionProp) => {
|
|
6
|
-
const
|
|
6
|
+
const {
|
|
7
|
+
getSession,
|
|
8
|
+
revalidate,
|
|
9
|
+
data,
|
|
10
|
+
setData: setSession,
|
|
11
|
+
isFetched
|
|
12
|
+
} = useAsync(
|
|
7
13
|
"getSession",
|
|
8
14
|
async () => {
|
|
9
15
|
try {
|
|
10
16
|
const result = await getIntlayerAPI().auth.getSession();
|
|
11
17
|
if (result.data) {
|
|
18
|
+
const { user, organization, project } = result.data;
|
|
12
19
|
const formattedSession = {
|
|
13
|
-
user
|
|
14
|
-
organization
|
|
15
|
-
|
|
20
|
+
user,
|
|
21
|
+
organization,
|
|
22
|
+
isOrganizationAdmin: (user && (organization?.adminsIds ?? []).includes(user._id)) ?? false,
|
|
23
|
+
project,
|
|
24
|
+
isProjectAdmin: (user && (project?.adminsIds ?? []).includes(user._id)) ?? false
|
|
16
25
|
};
|
|
17
26
|
return formattedSession;
|
|
18
27
|
}
|
|
19
28
|
} catch (_error) {
|
|
29
|
+
console.error(_error);
|
|
20
30
|
}
|
|
21
31
|
return null;
|
|
22
32
|
},
|
|
@@ -33,13 +43,6 @@ const useSession = (sessionProp) => {
|
|
|
33
43
|
]
|
|
34
44
|
}
|
|
35
45
|
);
|
|
36
|
-
const {
|
|
37
|
-
getSession,
|
|
38
|
-
revalidate,
|
|
39
|
-
data,
|
|
40
|
-
setData: setSession,
|
|
41
|
-
isFetched
|
|
42
|
-
} = useGetSession();
|
|
43
46
|
const fetchSession = useCallback(async () => {
|
|
44
47
|
if (sessionProp) {
|
|
45
48
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSession.mjs","sources":["../../../../src/components/Auth/AuthProvider/useSession.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useCallback, useMemo } from 'react';\nimport { useAsync } from '../../../hooks/useAsync';\nimport { getIntlayerAPI } from '../../../libs/intlayer-api';\nimport type { Session } from './index';\n\nexport const useSession = (sessionProp?: Session | null) => {\n const
|
|
1
|
+
{"version":3,"file":"useSession.mjs","sources":["../../../../src/components/Auth/AuthProvider/useSession.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useCallback, useMemo } from 'react';\nimport { useAsync } from '../../../hooks/useAsync';\nimport { getIntlayerAPI } from '../../../libs/intlayer-api';\nimport type { Session } from './index';\n\nexport const useSession = (sessionProp?: Session | null) => {\n const {\n getSession,\n revalidate,\n data,\n setData: setSession,\n isFetched,\n } = useAsync(\n 'getSession',\n async () => {\n try {\n const result = await getIntlayerAPI().auth.getSession();\n\n if (result.data) {\n const { user, organization, project } = result.data;\n\n const formattedSession: Session = {\n user,\n organization,\n isOrganizationAdmin:\n (user && (organization?.adminsIds ?? []).includes(user._id!)) ??\n false,\n project,\n isProjectAdmin:\n (user && (project?.adminsIds ?? []).includes(user._id!)) ?? false,\n };\n\n return formattedSession;\n }\n } catch (_error) {\n console.error(_error);\n // Failed to fetch session\n }\n\n return null;\n },\n {\n cache: true,\n store: true,\n autoFetch: true,\n enable: !sessionProp,\n invalidateQueries: [\n 'getOrganizations',\n 'getProjects',\n 'getUsers',\n 'getDictionaries',\n ],\n }\n );\n\n const fetchSession = useCallback(async () => {\n if (sessionProp) {\n return;\n }\n\n return await getSession();\n }, [sessionProp]);\n\n const revalidateSession = revalidate;\n\n useEffect(() => {\n // Fetch session if sessionProp is not provided when the component is mounted\n fetchSession();\n }, [fetchSession]);\n\n const session = useMemo(\n () => data ?? (isFetched ? null : undefined),\n [data, isFetched]\n );\n\n return {\n session,\n fetchSession,\n revalidateSession,\n setSession,\n };\n};\n"],"names":[],"mappings":";;;;AAOa,MAAA,aAAa,CAAC,gBAAiC;AACpD,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,EAAA,IACE;AAAA,IACF;AAAA,IACA,YAAY;AACN,UAAA;AACF,cAAM,SAAS,MAAM,eAAe,EAAE,KAAK,WAAW;AAEtD,YAAI,OAAO,MAAM;AACf,gBAAM,EAAE,MAAM,cAAc,QAAA,IAAY,OAAO;AAE/C,gBAAM,mBAA4B;AAAA,YAChC;AAAA,YACA;AAAA,YACA,sBACG,SAAS,cAAc,aAAa,CAAI,GAAA,SAAS,KAAK,GAAI,MAC3D;AAAA,YACF;AAAA,YACA,iBACG,SAAS,SAAS,aAAa,CAAI,GAAA,SAAS,KAAK,GAAI,MAAM;AAAA,UAAA;AAGzD,iBAAA;AAAA,QACT;AAAA,eACO,QAAQ;AACf,gBAAQ,MAAM,MAAM;AAAA,MAEtB;AAEO,aAAA;AAAA,IACT;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,WAAW;AAAA,MACX,QAAQ,CAAC;AAAA,MACT,mBAAmB;AAAA,QACjB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EAAA;AAGI,QAAA,eAAe,YAAY,YAAY;AAC3C,QAAI,aAAa;AACf;AAAA,IACF;AAEA,WAAO,MAAM,WAAW;AAAA,EAAA,GACvB,CAAC,WAAW,CAAC;AAEhB,QAAM,oBAAoB;AAE1B,YAAU,MAAM;AAED;EAAA,GACZ,CAAC,YAAY,CAAC;AAEjB,QAAM,UAAU;AAAA,IACd,MAAM,SAAS,YAAY,OAAO;AAAA,IAClC,CAAC,MAAM,SAAS;AAAA,EAAA;AAGX,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
4
4
|
const jsxRuntime = require("../../../jsx-runtime-DvCoRj5u.cjs");
|
|
5
5
|
const require$$0 = require("react");
|
|
6
6
|
const components_Loader_index = require("../../Loader/index.cjs");
|
|
7
|
-
const
|
|
7
|
+
const components_Auth_useAuth_useSession = require("../useAuth/useSession.cjs");
|
|
8
8
|
const components_Auth_AuthenticationBarrier_accessValidation = require("./accessValidation.cjs");
|
|
9
9
|
const AuthenticationBarrierClient = ({
|
|
10
10
|
children,
|
|
@@ -13,7 +13,7 @@ const AuthenticationBarrierClient = ({
|
|
|
13
13
|
session: sessionProp,
|
|
14
14
|
redirectionFunction
|
|
15
15
|
}) => {
|
|
16
|
-
const { session: sessionClient, setSession } =
|
|
16
|
+
const { session: sessionClient, setSession } = components_Auth_useAuth_useSession.useSession(sessionProp);
|
|
17
17
|
const isLoading = sessionClient === void 0 && sessionProp === void 0;
|
|
18
18
|
require$$0.useEffect(() => {
|
|
19
19
|
if (!sessionClient && sessionProp) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationBarrierClient.cjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, type FC } from 'react';\nimport { Loader } from '../../Loader';\nimport { useSession } from '../
|
|
1
|
+
{"version":3,"file":"AuthenticationBarrierClient.cjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, type FC } from 'react';\nimport { Loader } from '../../Loader';\nimport { useSession } from '../useAuth/useSession';\nimport { accessValidation } from './accessValidation';\nimport type { AuthenticationBarrierProps } from '.';\n\nexport type AuthenticationBarrierClientProps = Omit<\n AuthenticationBarrierProps,\n 'sessionToken'\n>;\n\nexport const AuthenticationBarrierClient: FC<\n AuthenticationBarrierClientProps\n> = ({\n children,\n accessRule = 'public',\n redirectionRoute = '/',\n session: sessionProp,\n redirectionFunction,\n}) => {\n const { session: sessionClient, setSession } = useSession(sessionProp);\n const isLoading = sessionClient === undefined && sessionProp === undefined;\n\n useEffect(() => {\n if (!sessionClient && sessionProp) {\n setSession(sessionProp ?? null);\n }\n }, [sessionClient, sessionProp, setSession]);\n\n useEffect(() => {\n if (typeof sessionClient !== 'undefined') {\n accessValidation(\n accessRule,\n sessionClient,\n redirectionFunction,\n redirectionRoute\n );\n }\n }, [accessRule, redirectionRoute, redirectionFunction, sessionClient]);\n\n return <Loader isLoading={isLoading}>{children}</Loader>;\n};\n"],"names":["useSession","useEffect","accessValidation","jsx","Loader"],"mappings":";;;;;;;;AAaO,MAAM,8BAET,CAAC;AAAA,EACH;AAAA,EACA,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT;AACF,MAAM;AACJ,QAAM,EAAE,SAAS,eAAe,WAAW,IAAIA,mCAAAA,WAAW,WAAW;AAC/D,QAAA,YAAY,kBAAkB,UAAa,gBAAgB;AAEjEC,aAAAA,UAAU,MAAM;AACV,QAAA,CAAC,iBAAiB,aAAa;AACjC,iBAAW,eAAe,IAAI;AAAA,IAChC;AAAA,EACC,GAAA,CAAC,eAAe,aAAa,UAAU,CAAC;AAE3CA,aAAAA,UAAU,MAAM;AACV,QAAA,OAAO,kBAAkB,aAAa;AACxCC,6DAAA;AAAA,QACE;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAEJ;AAAA,KACC,CAAC,YAAY,kBAAkB,qBAAqB,aAAa,CAAC;AAE9D,SAAAC,2BAAA,kBAAA,IAACC,wBAAO,QAAA,EAAA,WAAuB,SAAS,CAAA;AACjD;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { AuthenticationBarrierProps } from '.';
|
|
3
|
-
|
|
4
3
|
export type AuthenticationBarrierClientProps = Omit<AuthenticationBarrierProps, 'sessionToken'>;
|
|
5
4
|
export declare const AuthenticationBarrierClient: FC<AuthenticationBarrierClientProps>;
|
|
6
5
|
//# sourceMappingURL=AuthenticationBarrierClient.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { j as jsxRuntimeExports } from "../../../jsx-runtime-BgSF1HG2.js";
|
|
3
3
|
import { useEffect } from "react";
|
|
4
4
|
import { Loader } from "../../Loader/index.mjs";
|
|
5
|
-
import { useSession } from "../
|
|
5
|
+
import { useSession } from "../useAuth/useSession.mjs";
|
|
6
6
|
import { accessValidation } from "./accessValidation.mjs";
|
|
7
7
|
const AuthenticationBarrierClient = ({
|
|
8
8
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationBarrierClient.mjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, type FC } from 'react';\nimport { Loader } from '../../Loader';\nimport { useSession } from '../
|
|
1
|
+
{"version":3,"file":"AuthenticationBarrierClient.mjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, type FC } from 'react';\nimport { Loader } from '../../Loader';\nimport { useSession } from '../useAuth/useSession';\nimport { accessValidation } from './accessValidation';\nimport type { AuthenticationBarrierProps } from '.';\n\nexport type AuthenticationBarrierClientProps = Omit<\n AuthenticationBarrierProps,\n 'sessionToken'\n>;\n\nexport const AuthenticationBarrierClient: FC<\n AuthenticationBarrierClientProps\n> = ({\n children,\n accessRule = 'public',\n redirectionRoute = '/',\n session: sessionProp,\n redirectionFunction,\n}) => {\n const { session: sessionClient, setSession } = useSession(sessionProp);\n const isLoading = sessionClient === undefined && sessionProp === undefined;\n\n useEffect(() => {\n if (!sessionClient && sessionProp) {\n setSession(sessionProp ?? null);\n }\n }, [sessionClient, sessionProp, setSession]);\n\n useEffect(() => {\n if (typeof sessionClient !== 'undefined') {\n accessValidation(\n accessRule,\n sessionClient,\n redirectionFunction,\n redirectionRoute\n );\n }\n }, [accessRule, redirectionRoute, redirectionFunction, sessionClient]);\n\n return <Loader isLoading={isLoading}>{children}</Loader>;\n};\n"],"names":["jsx"],"mappings":";;;;;;AAaO,MAAM,8BAET,CAAC;AAAA,EACH;AAAA,EACA,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT;AACF,MAAM;AACJ,QAAM,EAAE,SAAS,eAAe,WAAW,IAAI,WAAW,WAAW;AAC/D,QAAA,YAAY,kBAAkB,UAAa,gBAAgB;AAEjE,YAAU,MAAM;AACV,QAAA,CAAC,iBAAiB,aAAa;AACjC,iBAAW,eAAe,IAAI;AAAA,IAChC;AAAA,EACC,GAAA,CAAC,eAAe,aAAa,UAAU,CAAC;AAE3C,YAAU,MAAM;AACV,QAAA,OAAO,kBAAkB,aAAa;AACxC;AAAA,QACE;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAEJ;AAAA,KACC,CAAC,YAAY,kBAAkB,qBAAqB,aAAa,CAAC;AAE9D,SAAAA,kCAAA,IAAC,QAAO,EAAA,WAAuB,SAAS,CAAA;AACjD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationBarrierServer.cjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type {
|
|
1
|
+
{"version":3,"file":"AuthenticationBarrierServer.cjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { Session } from '../useAuth';\nimport { accessValidation } from './accessValidation';\nimport type { AuthenticationBarrierProps } from '.';\n\nexport type AuthenticationBarrierClientProps = Omit<\n AuthenticationBarrierProps,\n 'sessionToken'\n> & {\n session: Session;\n};\n\nexport const AuthenticationBarrierServer: FC<AuthenticationBarrierProps> = ({\n children,\n accessRule = 'public',\n redirectionRoute = '/',\n session,\n redirectionFunction,\n}) => {\n if (typeof session !== 'undefined') {\n accessValidation(\n accessRule,\n session,\n redirectionFunction,\n redirectionRoute\n );\n }\n\n return children;\n};\n"],"names":["accessValidation"],"mappings":";;;AAYO,MAAM,8BAA8D,CAAC;AAAA,EAC1E;AAAA,EACA,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB;AAAA,EACA;AACF,MAAM;AACA,MAAA,OAAO,YAAY,aAAa;AAClCA,2DAAA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EAEJ;AAEO,SAAA;AACT;;"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Session } from '../useAuth';
|
|
3
3
|
import { AuthenticationBarrierProps } from '.';
|
|
4
|
-
|
|
5
4
|
export type AuthenticationBarrierClientProps = Omit<AuthenticationBarrierProps, 'sessionToken'> & {
|
|
6
|
-
session:
|
|
5
|
+
session: Session;
|
|
7
6
|
};
|
|
8
7
|
export declare const AuthenticationBarrierServer: FC<AuthenticationBarrierProps>;
|
|
9
8
|
//# sourceMappingURL=AuthenticationBarrierServer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationBarrierServer.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AuthenticationBarrierServer.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAEpD,MAAM,MAAM,gCAAgC,GAAG,IAAI,CACjD,0BAA0B,EAC1B,cAAc,CACf,GAAG;IACF,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC,0BAA0B,CAiBtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationBarrierServer.mjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type {
|
|
1
|
+
{"version":3,"file":"AuthenticationBarrierServer.mjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { Session } from '../useAuth';\nimport { accessValidation } from './accessValidation';\nimport type { AuthenticationBarrierProps } from '.';\n\nexport type AuthenticationBarrierClientProps = Omit<\n AuthenticationBarrierProps,\n 'sessionToken'\n> & {\n session: Session;\n};\n\nexport const AuthenticationBarrierServer: FC<AuthenticationBarrierProps> = ({\n children,\n accessRule = 'public',\n redirectionRoute = '/',\n session,\n redirectionFunction,\n}) => {\n if (typeof session !== 'undefined') {\n accessValidation(\n accessRule,\n session,\n redirectionFunction,\n redirectionRoute\n );\n }\n\n return children;\n};\n"],"names":[],"mappings":";AAYO,MAAM,8BAA8D,CAAC;AAAA,EAC1E;AAAA,EACA,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB;AAAA,EACA;AACF,MAAM;AACA,MAAA,OAAO,YAAY,aAAa;AAClC;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EAEJ;AAEO,SAAA;AACT;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessValidation.cjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/accessValidation.ts"],"sourcesContent":["import type { Session } from '../
|
|
1
|
+
{"version":3,"file":"accessValidation.cjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/accessValidation.ts"],"sourcesContent":["import type { Session } from '../useAuth';\nimport type { AuthenticationBarrierProps } from '.';\n\nexport const accessValidation = (\n accessRule: AuthenticationBarrierProps['accessRule'],\n session: Session | null,\n redirectionFunction: (redirectionRoute: string) => void,\n redirectionRoute: string\n) => {\n if (\n !session?.user &&\n (accessRule === 'authenticated' || accessRule === 'admin')\n ) {\n redirectionFunction(redirectionRoute);\n }\n\n if (session?.user && accessRule === 'none-authenticated') {\n redirectionFunction(redirectionRoute);\n }\n\n if (\n session?.user &&\n accessRule === 'admin' &&\n !session.user?.role.includes('admin')\n ) {\n redirectionFunction(redirectionRoute);\n }\n};\n"],"names":[],"mappings":";;AAGO,MAAM,mBAAmB,CAC9B,YACA,SACA,qBACA,qBACG;AACH,MACE,CAAC,SAAS,SACT,eAAe,mBAAmB,eAAe,UAClD;AACA,wBAAoB,gBAAgB;AAAA,EACtC;AAEI,MAAA,SAAS,QAAQ,eAAe,sBAAsB;AACxD,wBAAoB,gBAAgB;AAAA,EACtC;AAGE,MAAA,SAAS,QACT,eAAe,WACf,CAAC,QAAQ,MAAM,KAAK,SAAS,OAAO,GACpC;AACA,wBAAoB,gBAAgB;AAAA,EACtC;AACF;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Session } from '../
|
|
1
|
+
import { Session } from '../useAuth';
|
|
2
2
|
import { AuthenticationBarrierProps } from '.';
|
|
3
|
-
|
|
4
3
|
export declare const accessValidation: (accessRule: AuthenticationBarrierProps["accessRule"], session: Session | null, redirectionFunction: (redirectionRoute: string) => void, redirectionRoute: string) => void;
|
|
5
4
|
//# sourceMappingURL=accessValidation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessValidation.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/AuthenticationBarrier/accessValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accessValidation.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/AuthenticationBarrier/accessValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAEpD,eAAO,MAAM,gBAAgB,eACf,0BAA0B,CAAC,YAAY,CAAC,WAC3C,OAAO,GAAG,IAAI,uBACF,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,oBACrC,MAAM,SAoBzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessValidation.mjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/accessValidation.ts"],"sourcesContent":["import type { Session } from '../
|
|
1
|
+
{"version":3,"file":"accessValidation.mjs","sources":["../../../../src/components/Auth/AuthenticationBarrier/accessValidation.ts"],"sourcesContent":["import type { Session } from '../useAuth';\nimport type { AuthenticationBarrierProps } from '.';\n\nexport const accessValidation = (\n accessRule: AuthenticationBarrierProps['accessRule'],\n session: Session | null,\n redirectionFunction: (redirectionRoute: string) => void,\n redirectionRoute: string\n) => {\n if (\n !session?.user &&\n (accessRule === 'authenticated' || accessRule === 'admin')\n ) {\n redirectionFunction(redirectionRoute);\n }\n\n if (session?.user && accessRule === 'none-authenticated') {\n redirectionFunction(redirectionRoute);\n }\n\n if (\n session?.user &&\n accessRule === 'admin' &&\n !session.user?.role.includes('admin')\n ) {\n redirectionFunction(redirectionRoute);\n }\n};\n"],"names":[],"mappings":"AAGO,MAAM,mBAAmB,CAC9B,YACA,SACA,qBACA,qBACG;AACH,MACE,CAAC,SAAS,SACT,eAAe,mBAAmB,eAAe,UAClD;AACA,wBAAoB,gBAAgB;AAAA,EACtC;AAEI,MAAA,SAAS,QAAQ,eAAe,sBAAsB;AACxD,wBAAoB,gBAAgB;AAAA,EACtC;AAGE,MAAA,SAAS,QACT,eAAe,WACf,CAAC,QAAQ,MAAM,KAAK,SAAS,OAAO,GACpC;AACA,wBAAoB,gBAAgB;AAAA,EACtC;AACF;"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Session } from '../useAuth';
|
|
4
3
|
export { AuthenticationBarrierServer } from './AuthenticationBarrierServer';
|
|
5
4
|
export { AuthenticationBarrierClient } from './AuthenticationBarrierClient';
|
|
6
|
-
export type AuthenticationBarrierProps =
|
|
5
|
+
export type AuthenticationBarrierProps = {
|
|
7
6
|
children?: ReactNode;
|
|
8
7
|
accessRule?: 'public' | 'authenticated' | 'admin' | 'none-authenticated';
|
|
9
8
|
redirectionRoute?: string;
|
|
10
|
-
session?:
|
|
9
|
+
session?: Session;
|
|
11
10
|
sessionToken?: string;
|
|
12
11
|
/**
|
|
13
12
|
* Function to replace for a nextjs redirection
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/AuthenticationBarrier/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/AuthenticationBarrier/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,oBAAoB,CAAC;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;;;OASG;IACH,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("../../../jsx-runtime-DvCoRj5u.cjs");
|
|
4
4
|
const components_Form_FormBase = require("../../Form/FormBase.cjs");
|
|
5
5
|
require("../../Form/FormField.cjs");
|
|
6
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
6
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-DERuauvB.cjs");
|
|
7
7
|
const components_Auth_ChangePasswordForm_ChangePasswordSchema = require("./ChangePasswordSchema.cjs");
|
|
8
8
|
const components_Auth_ChangePasswordForm_index_content = require("./index.content.cjs");
|
|
9
9
|
const ChangePasswordForm = ({
|
|
@@ -67,6 +67,7 @@ const ChangePasswordForm = ({
|
|
|
67
67
|
{
|
|
68
68
|
className: "mt-12 w-full",
|
|
69
69
|
type: "submit",
|
|
70
|
+
color: "text",
|
|
70
71
|
isLoading: isSubmitting,
|
|
71
72
|
disabled: !isValid,
|
|
72
73
|
variant: isSubmitted ? "outline" : "default",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangePasswordForm.cjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Form, useForm } from '../../Form';\nimport {\n getChangePasswordSchema,\n type ChangePassword,\n} from './ChangePasswordSchema';\nimport { getChangePasswordContent } from './index.content';\n\ntype ChangePasswordFormProps = {\n onSubmitSuccess: (data: ChangePassword) => Promise<void>;\n
|
|
1
|
+
{"version":3,"file":"ChangePasswordForm.cjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Form, useForm } from '../../Form';\nimport {\n getChangePasswordSchema,\n type ChangePassword,\n} from './ChangePasswordSchema';\nimport { getChangePasswordContent } from './index.content';\n\ntype ChangePasswordFormProps = {\n onSubmitSuccess: (data: ChangePassword) => Promise<void>;\n onClickBackToHome: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const ChangePasswordForm: FC<ChangePasswordFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickBackToHome,\n}) => {\n const {\n currentPasswordInput,\n newPasswordInput,\n confirmPasswordInput,\n changePasswordButton,\n backToHomeButton,\n } = getChangePasswordContent();\n const ChangePasswordSchema = getChangePasswordSchema();\n\n const { form, isSubmitting, isSubmitted, isValid } =\n useForm(ChangePasswordSchema);\n\n return (\n <Form\n schema={ChangePasswordSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\n autoComplete\n className=\"gap-y-0\"\n {...form}\n >\n <div className=\"flex flex-col gap-y-6\">\n <Form.InputPassword\n name=\"currentPassword\"\n label={currentPasswordInput.label}\n placeholder={currentPasswordInput.placeholder}\n autoComplete=\"current-password\"\n isRequired\n />\n <Form.InputPassword\n name=\"newPassword\"\n label={newPasswordInput.label}\n placeholder={newPasswordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n <Form.InputPassword\n name=\"newPasswordConfirmation\"\n label={confirmPasswordInput.label}\n placeholder={confirmPasswordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n </div>\n\n <Form.Button\n className=\"mt-12 w-full\"\n type=\"submit\"\n color=\"text\"\n isLoading={isSubmitting}\n disabled={!isValid}\n variant={isSubmitted ? 'outline' : 'default'}\n label={changePasswordButton.ariaLabel}\n >\n {changePasswordButton.text}\n </Form.Button>\n {isSubmitted && (\n <Form.Button\n className=\"mt-4 w-full\"\n label={backToHomeButton.ariaLabel}\n onClick={onClickBackToHome}\n >\n {backToHomeButton.text}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["getChangePasswordContent","getChangePasswordSchema","useForm","jsxs","Form","jsx"],"mappings":";;;;;;;;AAcO,MAAM,qBAAkD,CAAC;AAAA,EAC9D;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACEA,iDAAyB,yBAAA;AAC7B,QAAM,uBAAuBC,wDAAAA;AAE7B,QAAM,EAAE,MAAM,cAAc,aAAa,YACvCC,yBAAAA,QAAQ,oBAAoB;AAG5B,SAAAC,2BAAA,kBAAA;AAAA,IAACC,sCAAA;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACZ,WAAU;AAAA,MACT,GAAG;AAAA,MAEJ,UAAA;AAAA,QAACD,2BAAAA,kBAAAA,KAAA,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,UAAAE,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,qBAAqB;AAAA,cAC5B,aAAa,qBAAqB;AAAA,cAClC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,iBAAiB;AAAA,cACxB,aAAa,iBAAiB;AAAA,cAC9B,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,qBAAqB;AAAA,cAC5B,aAAa,qBAAqB;AAAA,cAClC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,QAAA,GACF;AAAA,QAEAC,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,OAAM;AAAA,YACN,WAAW;AAAA,YACX,UAAU,CAAC;AAAA,YACX,SAAS,cAAc,YAAY;AAAA,YACnC,OAAO,qBAAqB;AAAA,YAE3B,UAAqB,qBAAA;AAAA,UAAA;AAAA,QACxB;AAAA,QACC,eACCC,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,OAAO,iBAAiB;AAAA,YACxB,SAAS;AAAA,YAER,UAAiB,iBAAA;AAAA,UAAA;AAAA,QACpB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;;"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ChangePassword } from './ChangePasswordSchema';
|
|
3
|
-
|
|
4
3
|
type ChangePasswordFormProps = {
|
|
5
4
|
onSubmitSuccess: (data: ChangePassword) => Promise<void>;
|
|
6
|
-
onSubmitError: (error: Error) => void;
|
|
7
5
|
onClickBackToHome: () => void;
|
|
6
|
+
onSubmitError?: (error: Error) => void;
|
|
8
7
|
};
|
|
9
8
|
export declare const ChangePasswordForm: FC<ChangePasswordFormProps>;
|
|
10
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangePasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAGhC,KAAK,uBAAuB,GAAG;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,
|
|
1
|
+
{"version":3,"file":"ChangePasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAGhC,KAAK,uBAAuB,GAAG;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAwE1D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../../jsx-runtime-BgSF1HG2.js";
|
|
2
2
|
import { useForm } from "../../Form/FormBase.mjs";
|
|
3
3
|
import "../../Form/FormField.mjs";
|
|
4
|
-
import { F as Form } from "../../../Form-
|
|
4
|
+
import { F as Form } from "../../../Form-DyFBmVya.js";
|
|
5
5
|
import { getChangePasswordSchema } from "./ChangePasswordSchema.mjs";
|
|
6
6
|
import { getChangePasswordContent } from "./index.content.mjs";
|
|
7
7
|
const ChangePasswordForm = ({
|
|
@@ -65,6 +65,7 @@ const ChangePasswordForm = ({
|
|
|
65
65
|
{
|
|
66
66
|
className: "mt-12 w-full",
|
|
67
67
|
type: "submit",
|
|
68
|
+
color: "text",
|
|
68
69
|
isLoading: isSubmitting,
|
|
69
70
|
disabled: !isValid,
|
|
70
71
|
variant: isSubmitted ? "outline" : "default",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangePasswordForm.mjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Form, useForm } from '../../Form';\nimport {\n getChangePasswordSchema,\n type ChangePassword,\n} from './ChangePasswordSchema';\nimport { getChangePasswordContent } from './index.content';\n\ntype ChangePasswordFormProps = {\n onSubmitSuccess: (data: ChangePassword) => Promise<void>;\n
|
|
1
|
+
{"version":3,"file":"ChangePasswordForm.mjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Form, useForm } from '../../Form';\nimport {\n getChangePasswordSchema,\n type ChangePassword,\n} from './ChangePasswordSchema';\nimport { getChangePasswordContent } from './index.content';\n\ntype ChangePasswordFormProps = {\n onSubmitSuccess: (data: ChangePassword) => Promise<void>;\n onClickBackToHome: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const ChangePasswordForm: FC<ChangePasswordFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickBackToHome,\n}) => {\n const {\n currentPasswordInput,\n newPasswordInput,\n confirmPasswordInput,\n changePasswordButton,\n backToHomeButton,\n } = getChangePasswordContent();\n const ChangePasswordSchema = getChangePasswordSchema();\n\n const { form, isSubmitting, isSubmitted, isValid } =\n useForm(ChangePasswordSchema);\n\n return (\n <Form\n schema={ChangePasswordSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\n autoComplete\n className=\"gap-y-0\"\n {...form}\n >\n <div className=\"flex flex-col gap-y-6\">\n <Form.InputPassword\n name=\"currentPassword\"\n label={currentPasswordInput.label}\n placeholder={currentPasswordInput.placeholder}\n autoComplete=\"current-password\"\n isRequired\n />\n <Form.InputPassword\n name=\"newPassword\"\n label={newPasswordInput.label}\n placeholder={newPasswordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n <Form.InputPassword\n name=\"newPasswordConfirmation\"\n label={confirmPasswordInput.label}\n placeholder={confirmPasswordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n </div>\n\n <Form.Button\n className=\"mt-12 w-full\"\n type=\"submit\"\n color=\"text\"\n isLoading={isSubmitting}\n disabled={!isValid}\n variant={isSubmitted ? 'outline' : 'default'}\n label={changePasswordButton.ariaLabel}\n >\n {changePasswordButton.text}\n </Form.Button>\n {isSubmitted && (\n <Form.Button\n className=\"mt-4 w-full\"\n label={backToHomeButton.ariaLabel}\n onClick={onClickBackToHome}\n >\n {backToHomeButton.text}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;AAcO,MAAM,qBAAkD,CAAC;AAAA,EAC9D;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,yBAAyB;AAC7B,QAAM,uBAAuB;AAE7B,QAAM,EAAE,MAAM,cAAc,aAAa,YACvC,QAAQ,oBAAoB;AAG5B,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACZ,WAAU;AAAA,MACT,GAAG;AAAA,MAEJ,UAAA;AAAA,QAACA,kCAAAA,KAAA,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,UAAAC,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,qBAAqB;AAAA,cAC5B,aAAa,qBAAqB;AAAA,cAClC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAA,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,iBAAiB;AAAA,cACxB,aAAa,iBAAiB;AAAA,cAC9B,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAA,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,qBAAqB;AAAA,cAC5B,aAAa,qBAAqB;AAAA,cAClC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,QAAA,GACF;AAAA,QAEAA,kCAAA;AAAA,UAAC,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,OAAM;AAAA,YACN,WAAW;AAAA,YACX,UAAU,CAAC;AAAA,YACX,SAAS,cAAc,YAAY;AAAA,YACnC,OAAO,qBAAqB;AAAA,YAE3B,UAAqB,qBAAA;AAAA,UAAA;AAAA,QACxB;AAAA,QACC,eACCA,kCAAA;AAAA,UAAC,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,OAAO,iBAAiB;AAAA,YACxB,SAAS;AAAA,YAER,UAAiB,iBAAA;AAAA,UAAA;AAAA,QACpB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangePasswordSchema.cjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts"],"sourcesContent":["//
|
|
1
|
+
{"version":3,"file":"ChangePasswordSchema.cjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts"],"sourcesContent":["// @ts-ignore react-intlayer not build yet\n// @ts-ignore react-intlayer not build yet\nimport { t } from 'react-intlayer';\nimport { z } from 'zod';\n\nexport const getChangePasswordSchema = () => {\n const requiredErrorPassword = t({\n en: 'Please enter your current password',\n fr: 'Veuillez saisir votre mot de passe actuel',\n es: 'Por favor, ingrese su contraseña actual',\n });\n\n const invalidTypeErrorPassword = t({\n en: 'Please enter a valid password',\n fr: 'Veuillez saisir un mot de passe valide',\n es: 'Por favor, ingrese una contraseña válida',\n });\n\n const invalidPasswordLengthError = t({\n en: 'Your password must be at least 8 characters',\n fr: 'Votre mot de passe doit comporter au moins 8 caractères',\n es: 'Su contraseña debe tener al menos 8 caracteres',\n });\n\n const requiredErrorNewPassword = t({\n en: 'Please enter your new password',\n fr: 'Veuillez saisir votre nouveau mot de passe',\n es: 'Por favor, ingrese su nueva contraseña',\n });\n\n const invalidTypeErrorNewPassword = t({\n en: 'Please enter a valid new password',\n fr: 'Veuillez saisir un nouveau mot de passe valide',\n es: 'Por favor, ingrese una nueva contraseña válida',\n });\n\n const requiredErrorNewPasswordConfirmation = t({\n en: 'Please enter your new password again',\n fr: 'Veuillez saisir votre nouveau mot de passe à nouveau',\n es: 'Por favor, ingrese su nueva contraseña nuevamente',\n });\n\n const invalidTypeErrorNewPasswordConfirmation = t({\n en: 'Please enter a valid new password again',\n es: 'Por favor, ingrese una nueva contraseña válida nuevamente',\n fr: 'Veuillez saisir un nouveau mot de passe valide à nouveau',\n });\n\n const passwordNotMatchError = t({\n en: 'New password and password confirmation must match',\n fr: 'Le nouveau mot de passe et la confirmation de mot de passe doivent correspondre',\n es: 'La nueva contraseña y la confirmación de la contraseña deben coincidir',\n });\n\n return z\n .object({\n currentPassword: z\n .string({\n required_error: requiredErrorPassword,\n invalid_type_error: invalidTypeErrorPassword,\n })\n .min(8, { message: invalidPasswordLengthError }),\n newPassword: z\n .string({\n required_error: requiredErrorNewPassword,\n invalid_type_error: invalidTypeErrorNewPassword,\n })\n .min(8, { message: invalidPasswordLengthError }),\n newPasswordConfirmation: z\n .string({\n required_error: requiredErrorNewPasswordConfirmation,\n invalid_type_error: invalidTypeErrorNewPasswordConfirmation,\n })\n .min(8, { message: invalidPasswordLengthError }),\n })\n .refine((data) => data.newPassword === data.newPasswordConfirmation, {\n message: passwordNotMatchError,\n path: ['newPasswordConfirmation'], // This specifies which field the error should be associated with\n });\n};\nexport type ChangePassword = z.infer<\n ReturnType<typeof getChangePasswordSchema>\n>;\n"],"names":["t","z"],"mappings":";;;;AAKO,MAAM,0BAA0B,MAAM;AAC3C,QAAM,wBAAwBA,cAAAA,EAAE;AAAA,IAC9B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,2BAA2BA,cAAAA,EAAE;AAAA,IACjC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,6BAA6BA,cAAAA,EAAE;AAAA,IACnC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,2BAA2BA,cAAAA,EAAE;AAAA,IACjC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,8BAA8BA,cAAAA,EAAE;AAAA,IACpC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,uCAAuCA,cAAAA,EAAE;AAAA,IAC7C,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,0CAA0CA,cAAAA,EAAE;AAAA,IAChD,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,wBAAwBA,cAAAA,EAAE;AAAA,IAC9B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,SAAOC,IAAAA,EACJ,OAAO;AAAA,IACN,iBAAiBA,MACd,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,4BAA4B;AAAA,IACjD,aAAaA,MACV,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,4BAA4B;AAAA,IACjD,yBAAyBA,MACtB,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,4BAA4B;AAAA,EAAA,CAClD,EACA,OAAO,CAAC,SAAS,KAAK,gBAAgB,KAAK,yBAAyB;AAAA,IACnE,SAAS;AAAA,IACT,MAAM,CAAC,yBAAyB;AAAA;AAAA,EAAA,CACjC;AACL;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangePasswordSchema.mjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts"],"sourcesContent":["//
|
|
1
|
+
{"version":3,"file":"ChangePasswordSchema.mjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts"],"sourcesContent":["// @ts-ignore react-intlayer not build yet\n// @ts-ignore react-intlayer not build yet\nimport { t } from 'react-intlayer';\nimport { z } from 'zod';\n\nexport const getChangePasswordSchema = () => {\n const requiredErrorPassword = t({\n en: 'Please enter your current password',\n fr: 'Veuillez saisir votre mot de passe actuel',\n es: 'Por favor, ingrese su contraseña actual',\n });\n\n const invalidTypeErrorPassword = t({\n en: 'Please enter a valid password',\n fr: 'Veuillez saisir un mot de passe valide',\n es: 'Por favor, ingrese una contraseña válida',\n });\n\n const invalidPasswordLengthError = t({\n en: 'Your password must be at least 8 characters',\n fr: 'Votre mot de passe doit comporter au moins 8 caractères',\n es: 'Su contraseña debe tener al menos 8 caracteres',\n });\n\n const requiredErrorNewPassword = t({\n en: 'Please enter your new password',\n fr: 'Veuillez saisir votre nouveau mot de passe',\n es: 'Por favor, ingrese su nueva contraseña',\n });\n\n const invalidTypeErrorNewPassword = t({\n en: 'Please enter a valid new password',\n fr: 'Veuillez saisir un nouveau mot de passe valide',\n es: 'Por favor, ingrese una nueva contraseña válida',\n });\n\n const requiredErrorNewPasswordConfirmation = t({\n en: 'Please enter your new password again',\n fr: 'Veuillez saisir votre nouveau mot de passe à nouveau',\n es: 'Por favor, ingrese su nueva contraseña nuevamente',\n });\n\n const invalidTypeErrorNewPasswordConfirmation = t({\n en: 'Please enter a valid new password again',\n es: 'Por favor, ingrese una nueva contraseña válida nuevamente',\n fr: 'Veuillez saisir un nouveau mot de passe valide à nouveau',\n });\n\n const passwordNotMatchError = t({\n en: 'New password and password confirmation must match',\n fr: 'Le nouveau mot de passe et la confirmation de mot de passe doivent correspondre',\n es: 'La nueva contraseña y la confirmación de la contraseña deben coincidir',\n });\n\n return z\n .object({\n currentPassword: z\n .string({\n required_error: requiredErrorPassword,\n invalid_type_error: invalidTypeErrorPassword,\n })\n .min(8, { message: invalidPasswordLengthError }),\n newPassword: z\n .string({\n required_error: requiredErrorNewPassword,\n invalid_type_error: invalidTypeErrorNewPassword,\n })\n .min(8, { message: invalidPasswordLengthError }),\n newPasswordConfirmation: z\n .string({\n required_error: requiredErrorNewPasswordConfirmation,\n invalid_type_error: invalidTypeErrorNewPasswordConfirmation,\n })\n .min(8, { message: invalidPasswordLengthError }),\n })\n .refine((data) => data.newPassword === data.newPasswordConfirmation, {\n message: passwordNotMatchError,\n path: ['newPasswordConfirmation'], // This specifies which field the error should be associated with\n });\n};\nexport type ChangePassword = z.infer<\n ReturnType<typeof getChangePasswordSchema>\n>;\n"],"names":[],"mappings":";;AAKO,MAAM,0BAA0B,MAAM;AAC3C,QAAM,wBAAwB,EAAE;AAAA,IAC9B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,2BAA2B,EAAE;AAAA,IACjC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,6BAA6B,EAAE;AAAA,IACnC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,2BAA2B,EAAE;AAAA,IACjC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,8BAA8B,EAAE;AAAA,IACpC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,uCAAuC,EAAE;AAAA,IAC7C,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,0CAA0C,EAAE;AAAA,IAChD,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,QAAM,wBAAwB,EAAE;AAAA,IAC9B,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,CACL;AAED,SAAO,EACJ,OAAO;AAAA,IACN,iBAAiB,EACd,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,4BAA4B;AAAA,IACjD,aAAa,EACV,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,4BAA4B;AAAA,IACjD,yBAAyB,EACtB,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,4BAA4B;AAAA,EAAA,CAClD,EACA,OAAO,CAAC,SAAS,KAAK,gBAAgB,KAAK,yBAAyB;AAAA,IACnE,SAAS;AAAA,IACT,MAAM,CAAC,yBAAyB;AAAA;AAAA,EAAA,CACjC;AACL;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.content.cjs","sources":["../../../../src/components/Auth/ChangePasswordForm/index.content.ts"],"sourcesContent":["//
|
|
1
|
+
{"version":3,"file":"index.content.cjs","sources":["../../../../src/components/Auth/ChangePasswordForm/index.content.ts"],"sourcesContent":["// @ts-ignore react-intlayer not build yet\n// @ts-ignore react-intlayer not build yet\nimport { t } from 'react-intlayer';\n\nexport const getChangePasswordContent = () => ({\n currentPasswordInput: {\n label: t({\n en: 'Current password',\n fr: 'Mot de passe actuel',\n es: 'Contraseña actual',\n }),\n placeholder: t({\n en: 'Enter actual password',\n fr: 'Entrez votre mot de passe actuel',\n es: 'Ingresa tu contraseña actual',\n }),\n },\n newPasswordInput: {\n label: t({\n en: 'New password',\n fr: 'Nouveau mot de passe',\n es: 'Nueva contraseña',\n }),\n placeholder: t({\n en: 'Enter new password',\n fr: 'Entrez votre nouveau mot de passe',\n es: 'Ingresa tu nueva contraseña',\n }),\n },\n confirmPasswordInput: {\n label: t({\n en: 'Confirm new password',\n fr: 'Confirmez le nouveau mot de passe',\n es: 'Confirma tu nueva contraseña',\n }),\n placeholder: t({\n en: 'Confirm new password',\n fr: 'Confirmez votre nouveau mot de passe',\n es: 'Confirma tu nueva contraseña',\n }),\n },\n changePasswordButton: {\n text: t({\n en: 'Change password',\n fr: 'Changer le mot de passe',\n es: 'Cambiar la contraseña',\n }),\n ariaLabel: t({\n en: 'Click to change password',\n fr: 'Cliquez pour changer le mot de passe',\n es: 'Haz clic para cambiar la contraseña',\n }),\n },\n backToHomeButton: {\n text: t({\n en: 'Back to home page',\n fr: 'Retour à la page d’accueil',\n es: 'Volver a la página de inicio',\n }),\n ariaLabel: t({\n en: 'Click to go back to the home page',\n fr: 'Cliquez pour revenir à la page d’accueil',\n es: 'Haz clic para volver a la página de inicio',\n }),\n },\n});\n"],"names":["t"],"mappings":";;;AAIO,MAAM,2BAA2B,OAAO;AAAA,EAC7C,sBAAsB;AAAA,IACpB,OAAOA,cAAAA,EAAE;AAAA,MACP,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,IACD,aAAaA,cAAAA,EAAE;AAAA,MACb,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,EACH;AAAA,EACA,kBAAkB;AAAA,IAChB,OAAOA,cAAAA,EAAE;AAAA,MACP,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,IACD,aAAaA,cAAAA,EAAE;AAAA,MACb,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,EACH;AAAA,EACA,sBAAsB;AAAA,IACpB,OAAOA,cAAAA,EAAE;AAAA,MACP,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,IACD,aAAaA,cAAAA,EAAE;AAAA,MACb,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,EACH;AAAA,EACA,sBAAsB;AAAA,IACpB,MAAMA,cAAAA,EAAE;AAAA,MACN,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,IACD,WAAWA,cAAAA,EAAE;AAAA,MACX,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,EACH;AAAA,EACA,kBAAkB;AAAA,IAChB,MAAMA,cAAAA,EAAE;AAAA,MACN,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,IACD,WAAWA,cAAAA,EAAE;AAAA,MACX,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,EACH;AACF;;"}
|