@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,56 +1,60 @@
|
|
|
1
|
+
import { intlayerAPI } from 'src/libs';
|
|
1
2
|
import { UseAsyncOptions } from './useAsync/useAsync';
|
|
2
|
-
|
|
3
|
-
export declare const useAsyncWithAuth: <U extends string, T extends (...args: any[]) => Promise<any>>(key: U, asyncFunction: T, options?: UseAsyncOptions<T>) => import('./useAsync').UseAsyncResult<U, T>;
|
|
4
3
|
/**
|
|
5
4
|
* Auth
|
|
6
5
|
*/
|
|
7
|
-
export declare const useLogin: () => import('./useAsync').UseAsyncResult<"login", (user: import('@intlayer/backend').LoginBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').LoginResult>>;
|
|
8
|
-
export declare const useRegister: () => import('./useAsync').UseAsyncResult<"register", (user: import('@intlayer/backend').RegisterBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').RegisterResult>>;
|
|
9
|
-
export declare const useLogout: () => import('./useAsync').UseAsyncResult<"logout", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<void>>;
|
|
10
|
-
export declare const useChangePassword: () => import('./useAsync').UseAsyncResult<"changePassword", (data: import('@intlayer/backend').UpdatePasswordBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdatePasswordResult>>;
|
|
11
|
-
export declare const useAskResetPassword: () => import('./useAsync').UseAsyncResult<"askResetPassword", (email: import('@intlayer/backend').AskResetPasswordBody["email"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AskResetPasswordResult>>;
|
|
12
|
-
export declare const useResetPassword: () => import('./useAsync').UseAsyncResult<"resetPassword", (params: import('@intlayer/backend').ResetPasswordParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').ResetPasswordResult>>;
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
6
|
+
export declare const useLogin: (args?: UseAsyncOptions<typeof intlayerAPI.auth.login>) => import('./useAsync').UseAsyncResult<"login", (user: import('@intlayer/backend').LoginBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').LoginResult>>;
|
|
7
|
+
export declare const useRegister: (args?: UseAsyncOptions<typeof intlayerAPI.auth.register>) => import('./useAsync').UseAsyncResult<"register", (user: import('@intlayer/backend').RegisterBody, query?: import('@intlayer/backend').RegisterQuery, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').RegisterResult>>;
|
|
8
|
+
export declare const useLogout: (args?: UseAsyncOptions<typeof intlayerAPI.auth.logout>) => import('./useAsync').UseAsyncResult<"logout", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<void>>;
|
|
9
|
+
export declare const useChangePassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.changePassword>) => import('./useAsync').UseAsyncResult<"changePassword", (data: import('@intlayer/backend').UpdatePasswordBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdatePasswordResult>>;
|
|
10
|
+
export declare const useAskResetPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.askResetPassword>) => import('./useAsync').UseAsyncResult<"askResetPassword", (email: import('@intlayer/backend').AskResetPasswordBody["email"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AskResetPasswordResult>>;
|
|
11
|
+
export declare const useResetPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.resetPassword>) => import('./useAsync').UseAsyncResult<"resetPassword", (params: import('@intlayer/backend').ResetPasswordParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').ResetPasswordResult>>;
|
|
12
|
+
export declare const useCheckIfUserHasPassword: (args?: UseAsyncOptions<typeof intlayerAPI.auth.checkIfUserHasPassword>) => import('./useAsync').UseAsyncResult<"checkIfUserHasPassword", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').CheckIfUserHasPasswordResult>>;
|
|
13
|
+
export declare const useVerifyEmail: (args?: UseAsyncOptions<typeof intlayerAPI.auth.verifyEmail>) => import('./useAsync').UseAsyncResult<"verifyEmail", ({ userId, secret }: import('@intlayer/backend').ValidEmailParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').ValidEmailResult>>;
|
|
14
|
+
export declare const useGetUserByAccount: (args?: UseAsyncOptions<typeof intlayerAPI.user.getUserByAccount>) => import('./useAsync').UseAsyncResult<"getUserByAccount", (providerAccountId: import('@intlayer/backend').GetUserByAccountParams["providerAccountId"], provider: import('@intlayer/backend').GetUserByAccountParams["provider"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetUserByAccountResult>>;
|
|
15
15
|
/**
|
|
16
16
|
* User
|
|
17
17
|
*/
|
|
18
|
-
export declare const useGetUsers: () => import('./useAsync').UseAsyncResult<"getUsers", (filters?: import('@intlayer/backend').GetUsersParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetUsersResult>>;
|
|
19
|
-
export declare const useCreateUser: () => import('./useAsync').UseAsyncResult<"createUser", (user: import('@intlayer/backend').CreateUserBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').CreateUserResult>>;
|
|
20
|
-
export declare const useUpdateUser: () => import('./useAsync').UseAsyncResult<"updateUser", (user: import('@intlayer/backend').UpdateUserBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateUserResult>>;
|
|
21
|
-
export declare const useDeleteUser: () => import('./useAsync').UseAsyncResult<"deleteUser", (userId: string, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateUserResult>>;
|
|
18
|
+
export declare const useGetUsers: (args?: UseAsyncOptions<typeof intlayerAPI.user.getUsers>) => import('./useAsync').UseAsyncResult<"getUsers", (filters?: import('@intlayer/backend').GetUsersParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetUsersResult>>;
|
|
19
|
+
export declare const useCreateUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.createUser>) => import('./useAsync').UseAsyncResult<"createUser", (user: import('@intlayer/backend').CreateUserBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').CreateUserResult>>;
|
|
20
|
+
export declare const useUpdateUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.updateUser>) => import('./useAsync').UseAsyncResult<"updateUser", (user: import('@intlayer/backend').UpdateUserBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateUserResult>>;
|
|
21
|
+
export declare const useDeleteUser: (args?: UseAsyncOptions<typeof intlayerAPI.user.deleteUser>) => import('./useAsync').UseAsyncResult<"deleteUser", (userId: string, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateUserResult>>;
|
|
22
22
|
/**
|
|
23
23
|
* Organization
|
|
24
24
|
*/
|
|
25
|
-
export declare const useGetOrganizations: () => import('./useAsync').UseAsyncResult<"getOrganizations", (filters?: import('@intlayer/backend').GetOrganizationsParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetOrganizationsResult>>;
|
|
26
|
-
export declare const useAddOrganization: () => import('./useAsync').UseAsyncResult<"addOrganization", (organization: import('@intlayer/backend').AddOrganizationBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddOrganizationResult>>;
|
|
27
|
-
export declare const useUpdateOrganization: () => import('./useAsync').UseAsyncResult<"updateOrganization", (organization: import('@intlayer/backend').UpdateOrganizationBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateOrganizationResult>>;
|
|
28
|
-
export declare const useUpdateOrganizationMembers: () => import('./useAsync').UseAsyncResult<"updateOrganizationMembers", (body: import('@intlayer/backend').UpdateOrganizationMembersBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateOrganizationMembersResult>>;
|
|
29
|
-
export declare const useAddOrganizationMember: () => import('./useAsync').UseAsyncResult<"addOrganizationMember", (body: import('@intlayer/backend').AddOrganizationMemberBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddOrganizationMemberResult>>;
|
|
30
|
-
export declare const useDeleteOrganization: () => import('./useAsync').UseAsyncResult<"deleteOrganization", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteOrganizationResult>>;
|
|
31
|
-
export declare const useSelectOrganization: () => import('./useAsync').UseAsyncResult<"selectOrganization", (organizationId: import('@intlayer/backend').SelectOrganizationParam["organizationId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').SelectOrganizationResult>>;
|
|
32
|
-
export declare const useUnselectOrganization: () => import('./useAsync').UseAsyncResult<"unselectOrganization", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UnselectOrganizationResult>>;
|
|
25
|
+
export declare const useGetOrganizations: (args?: UseAsyncOptions<typeof intlayerAPI.organization.getOrganizations>) => import('./useAsync').UseAsyncResult<"getOrganizations", (filters?: import('@intlayer/backend').GetOrganizationsParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetOrganizationsResult>>;
|
|
26
|
+
export declare const useAddOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganization>) => import('./useAsync').UseAsyncResult<"addOrganization", (organization: import('@intlayer/backend').AddOrganizationBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddOrganizationResult>>;
|
|
27
|
+
export declare const useUpdateOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganization>) => import('./useAsync').UseAsyncResult<"updateOrganization", (organization: import('@intlayer/backend').UpdateOrganizationBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateOrganizationResult>>;
|
|
28
|
+
export declare const useUpdateOrganizationMembers: (args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganizationMembers>) => import('./useAsync').UseAsyncResult<"updateOrganizationMembers", (body: import('@intlayer/backend').UpdateOrganizationMembersBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateOrganizationMembersResult>>;
|
|
29
|
+
export declare const useAddOrganizationMember: (args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganizationMember>) => import('./useAsync').UseAsyncResult<"addOrganizationMember", (body: import('@intlayer/backend').AddOrganizationMemberBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddOrganizationMemberResult>>;
|
|
30
|
+
export declare const useDeleteOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.deleteOrganization>) => import('./useAsync').UseAsyncResult<"deleteOrganization", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteOrganizationResult>>;
|
|
31
|
+
export declare const useSelectOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.selectOrganization>) => import('./useAsync').UseAsyncResult<"selectOrganization", (organizationId: import('@intlayer/backend').SelectOrganizationParam["organizationId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').SelectOrganizationResult>>;
|
|
32
|
+
export declare const useUnselectOrganization: (args?: UseAsyncOptions<typeof intlayerAPI.organization.unselectOrganization>) => import('./useAsync').UseAsyncResult<"unselectOrganization", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UnselectOrganizationResult>>;
|
|
33
33
|
/**
|
|
34
34
|
* Project
|
|
35
35
|
*/
|
|
36
|
-
export declare const useGetProjects: () => import('./useAsync').UseAsyncResult<"getProjects", (filters?: import('@intlayer/backend').GetProjectsParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetProjectsResult>>;
|
|
37
|
-
export declare const useAddProject: () => import('./useAsync').UseAsyncResult<"addProject", (project: import('@intlayer/backend').AddProjectBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddProjectResult>>;
|
|
38
|
-
export declare const useUpdateProject: () => import('./useAsync').UseAsyncResult<"updateProject", (project: import('@intlayer/backend').UpdateProjectBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateProjectResult>>;
|
|
39
|
-
export declare const useUpdateProjectMembers: () => import('./useAsync').UseAsyncResult<"updateProjectMembers", (body: import('@intlayer/backend').UpdateProjectMembersBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateProjectMembersResult>>;
|
|
40
|
-
export declare const useDeleteProject: () => import('./useAsync').UseAsyncResult<"deleteProject", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteProjectResult>>;
|
|
41
|
-
export declare const useSelectProject: () => import('./useAsync').UseAsyncResult<"selectProject", (projectId: import('@intlayer/backend').SelectProjectParam["projectId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').SelectProjectResult>>;
|
|
42
|
-
export declare const useUnselectProject: () => import('./useAsync').UseAsyncResult<"unselectProject", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UnselectProjectResult>>;
|
|
43
|
-
export declare const useAddNewAccessKey: () => import('./useAsync').UseAsyncResult<"addNewAccessKey", (accessKey: import('@intlayer/backend').AddNewAccessKeyBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddNewAccessKeyResponse>>;
|
|
44
|
-
export declare const useDeleteAccessKey: () => import('./useAsync').UseAsyncResult<"deleteAccessKey", (clientId: import('@intlayer/backend').DeleteAccessKeyBody["clientId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteAccessKeyResponse>>;
|
|
45
|
-
export declare const useRefreshAccessKey: () => import('./useAsync').UseAsyncResult<"refreshAccessKey", (clientId: import('@intlayer/backend').RefreshAccessKeyBody["clientId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').RefreshAccessKeyResponse>>;
|
|
36
|
+
export declare const useGetProjects: (args?: UseAsyncOptions<typeof intlayerAPI.project.getProjects>) => import('./useAsync').UseAsyncResult<"getProjects", (filters?: import('@intlayer/backend').GetProjectsParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetProjectsResult>>;
|
|
37
|
+
export declare const useAddProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.addProject>) => import('./useAsync').UseAsyncResult<"addProject", (project: import('@intlayer/backend').AddProjectBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddProjectResult>>;
|
|
38
|
+
export declare const useUpdateProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.updateProject>) => import('./useAsync').UseAsyncResult<"updateProject", (project: import('@intlayer/backend').UpdateProjectBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateProjectResult>>;
|
|
39
|
+
export declare const useUpdateProjectMembers: (args?: UseAsyncOptions<typeof intlayerAPI.project.updateProjectMembers>) => import('./useAsync').UseAsyncResult<"updateProjectMembers", (body: import('@intlayer/backend').UpdateProjectMembersBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateProjectMembersResult>>;
|
|
40
|
+
export declare const useDeleteProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.deleteProject>) => import('./useAsync').UseAsyncResult<"deleteProject", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteProjectResult>>;
|
|
41
|
+
export declare const useSelectProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.selectProject>) => import('./useAsync').UseAsyncResult<"selectProject", (projectId: import('@intlayer/backend').SelectProjectParam["projectId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').SelectProjectResult>>;
|
|
42
|
+
export declare const useUnselectProject: (args?: UseAsyncOptions<typeof intlayerAPI.project.unselectProject>) => import('./useAsync').UseAsyncResult<"unselectProject", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UnselectProjectResult>>;
|
|
43
|
+
export declare const useAddNewAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.addNewAccessKey>) => import('./useAsync').UseAsyncResult<"addNewAccessKey", (accessKey: import('@intlayer/backend').AddNewAccessKeyBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddNewAccessKeyResponse>>;
|
|
44
|
+
export declare const useDeleteAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.deleteAccessKey>) => import('./useAsync').UseAsyncResult<"deleteAccessKey", (clientId: import('@intlayer/backend').DeleteAccessKeyBody["clientId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteAccessKeyResponse>>;
|
|
45
|
+
export declare const useRefreshAccessKey: (args?: UseAsyncOptions<typeof intlayerAPI.project.refreshAccessKey>) => import('./useAsync').UseAsyncResult<"refreshAccessKey", (clientId: import('@intlayer/backend').RefreshAccessKeyBody["clientId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').RefreshAccessKeyResponse>>;
|
|
46
46
|
/**
|
|
47
47
|
* Dictionary
|
|
48
48
|
*/
|
|
49
|
-
export declare const useGetDictionaries: () => import('./useAsync').UseAsyncResult<"getDictionaries", (filters?: import('@intlayer/backend').GetDictionariesParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionariesResult>>;
|
|
50
|
-
export declare const useGetDictionariesKeys: () => import('./useAsync').UseAsyncResult<"getDictionariesKeys", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionariesKeysResult>>;
|
|
51
|
-
export declare const useGetDictionary: () => import('./useAsync').UseAsyncResult<"getDictionary", (dictionaryKey: import('@intlayer/backend').GetDictionaryParams["dictionaryKey"], version?: import('@intlayer/backend').GetDictionaryQuery["version"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionaryResult>>;
|
|
52
|
-
export declare const useAddDictionary: () => import('./useAsync').UseAsyncResult<"addDictionary", (dictionary: import('@intlayer/backend').AddDictionaryBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddDictionaryResult>>;
|
|
53
|
-
export declare const usePushDictionaries: () => import('./useAsync').UseAsyncResult<"pushDictionaries", (dictionaries: import('@intlayer/backend').PushDictionariesBody["dictionaries"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').PushDictionariesResult>>;
|
|
54
|
-
export declare const useUpdateDictionary: () => import('./useAsync').UseAsyncResult<"updateDictionary", (dictionary: import('@intlayer/backend').UpdateDictionaryBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateDictionaryResult>>;
|
|
55
|
-
export declare const useDeleteDictionary: () => import('./useAsync').UseAsyncResult<"deleteDictionary", (id: import('@intlayer/backend').DeleteDictionaryParam["dictionaryId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteDictionaryResult>>;
|
|
49
|
+
export declare const useGetDictionaries: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionaries>) => import('./useAsync').UseAsyncResult<"getDictionaries", (filters?: import('@intlayer/backend').GetDictionariesParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionariesResult>>;
|
|
50
|
+
export declare const useGetDictionariesKeys: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionariesKeys>) => import('./useAsync').UseAsyncResult<"getDictionariesKeys", (otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionariesKeysResult>>;
|
|
51
|
+
export declare const useGetDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionary>) => import('./useAsync').UseAsyncResult<"getDictionary", (dictionaryKey: import('@intlayer/backend').GetDictionaryParams["dictionaryKey"], version?: import('@intlayer/backend').GetDictionaryQuery["version"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionaryResult>>;
|
|
52
|
+
export declare const useAddDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.addDictionary>) => import('./useAsync').UseAsyncResult<"addDictionary", (dictionary: import('@intlayer/backend').AddDictionaryBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddDictionaryResult>>;
|
|
53
|
+
export declare const usePushDictionaries: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.pushDictionaries>) => import('./useAsync').UseAsyncResult<"pushDictionaries", (dictionaries: import('@intlayer/backend').PushDictionariesBody["dictionaries"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').PushDictionariesResult>>;
|
|
54
|
+
export declare const useUpdateDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>) => import('./useAsync').UseAsyncResult<"updateDictionary", (dictionary: import('@intlayer/backend').UpdateDictionaryBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateDictionaryResult>>;
|
|
55
|
+
export declare const useDeleteDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.deleteDictionary>) => import('./useAsync').UseAsyncResult<"deleteDictionary", (id: import('@intlayer/backend').DeleteDictionaryParam["dictionaryId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteDictionaryResult>>;
|
|
56
|
+
/**
|
|
57
|
+
* Stripe
|
|
58
|
+
*/
|
|
59
|
+
export declare const useGetSubscription: (args?: UseAsyncOptions<typeof intlayerAPI.stripe.getSubscription>) => import('./useAsync').UseAsyncResult<"getSubscription", (body?: import('@intlayer/backend').GetCheckoutSessionBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetCheckoutSessionResult>>;
|
|
56
60
|
//# sourceMappingURL=intlayerAPIHooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intlayerAPIHooks.d.ts","sourceRoot":"","sources":["../../src/hooks/intlayerAPIHooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"intlayerAPIHooks.d.ts","sourceRoot":"","sources":["../../src/hooks/intlayerAPIHooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,EAAY,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAmHhE;;GAEG;AAEH,eAAO,MAAM,QAAQ,UACZ,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,0NAKnD,CAAC;AACL,eAAO,MAAM,WAAW,UACf,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,sRAKtD,CAAC;AACL,eAAO,MAAM,SAAS,UACb,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,2IAKpD,CAAC;AACL,eAAO,MAAM,iBAAiB,UACrB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,qPACe,CAAC;AAChF,eAAO,MAAM,mBAAmB,UACvB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,qQAM/D,CAAC;AACJ,eAAO,MAAM,gBAAgB,UACpB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,sPACc,CAAC;AAC9E,eAAO,MAAM,yBAAyB,UAC7B,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,sBAAsB,CAAC,+MASrE,CAAC;AACJ,eAAO,MAAM,cAAc,UAClB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,0PACY,CAAC;AAE1E,eAAO,MAAM,mBAAmB,UACvB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,yWAM/D,CAAC;AAEJ;;GAEG;AAEH,eAAO,MAAM,WAAW,UACf,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,yOAgBvD,CAAC;AACJ,eAAO,MAAM,aAAa,UACjB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,yOAKxD,CAAC;AACL,eAAO,MAAM,aAAa,UACjB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,yOAKxD,CAAC;AACL,eAAO,MAAM,aAAa,UACjB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,uMAKxD,CAAC;AAEL;;GAEG;AAEH,eAAO,MAAM,mBAAmB,UACvB,eAAe,CAAC,OAAO,WAAW,CAAC,YAAY,CAAC,gBAAgB,CAAC,iQAiBvE,CAAC;AAEJ,eAAO,MAAM,kBAAkB,UACtB,eAAe,CAAC,OAAO,WAAW,CAAC,YAAY,CAAC,eAAe,CAAC,gQAStE,CAAC;AACJ,eAAO,MAAM,qBAAqB,UACzB,eAAe,CAAC,OAAO,WAAW,CAAC,YAAY,CAAC,kBAAkB,CAAC,yQASzE,CAAC;AACJ,eAAO,MAAM,4BAA4B,UAChC,eAAe,CACpB,OAAO,WAAW,CAAC,YAAY,CAAC,yBAAyB,CAC1D,sRASA,CAAC;AACJ,eAAO,MAAM,wBAAwB,UAC5B,eAAe,CAAC,OAAO,WAAW,CAAC,YAAY,CAAC,qBAAqB,CAAC,0QAS5E,CAAC;AACJ,eAAO,MAAM,qBAAqB,UACzB,eAAe,CAAC,OAAO,WAAW,CAAC,YAAY,CAAC,kBAAkB,CAAC,uMASzE,CAAC;AACJ,eAAO,MAAM,qBAAqB,UACzB,eAAe,CAAC,OAAO,WAAW,CAAC,YAAY,CAAC,kBAAkB,CAAC,8RASzE,CAAC;AACJ,eAAO,MAAM,uBAAuB,UAC3B,eAAe,CAAC,OAAO,WAAW,CAAC,YAAY,CAAC,oBAAoB,CAAC,2MAS3E,CAAC;AAEJ;;GAEG;AAEH,eAAO,MAAM,cAAc,UAClB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,kPAkB7D,CAAC;AACJ,eAAO,MAAM,aAAa,UACjB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,4OAK3D,CAAC;AACL,eAAO,MAAM,gBAAgB,UACpB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,qPAK9D,CAAC;AACL,eAAO,MAAM,uBAAuB,UAC3B,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC,uQAStE,CAAC;AACJ,eAAO,MAAM,gBAAgB,UACpB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,6LAK9D,CAAC;AACL,eAAO,MAAM,gBAAgB,UACpB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,qQAK9D,CAAC;AACL,eAAO,MAAM,kBAAkB,UACtB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,iMAKhE,CAAC;AACL,eAAO,MAAM,kBAAkB,UACtB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,+PAKhE,CAAC;AACL,eAAO,MAAM,kBAAkB,UACtB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,0QAKhE,CAAC;AACL,eAAO,MAAM,mBAAmB,UACvB,eAAe,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC,6QAKjE,CAAC;AAEL;;GAEG;AAEH,eAAO,MAAM,kBAAkB,UACtB,eAAe,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,eAAe,CAAC,8PAmBpE,CAAC;AAEJ,eAAO,MAAM,sBAAsB,UAC1B,eAAe,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,mBAAmB,CAAC,yMAmBxE,CAAC;AAEJ,eAAO,MAAM,gBAAgB,UACpB,eAAe,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,mVAkBlE,CAAC;AACJ,eAAO,MAAM,gBAAgB,UACpB,eAAe,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,wPAKjE,CAAC;AAEL,eAAO,MAAM,mBAAmB,UACvB,eAAe,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,gBAAgB,CAAC,mRASrE,CAAC;AACJ,eAAO,MAAM,mBAAmB,UACvB,eAAe,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,gBAAgB,CAAC,iQASrE,CAAC;AACJ,eAAO,MAAM,mBAAmB,UACvB,eAAe,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,gBAAgB,CAAC,0QASrE,CAAC;AAEJ;;GAEG;AAEH,eAAO,MAAM,kBAAkB,UACtB,eAAe,CAAC,OAAO,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC,+PAUhE,CAAC"}
|
|
@@ -1,204 +1,347 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useAuth } from "../components/Auth/
|
|
2
|
+
import { useAuth } from "../components/Auth/useAuth/index.mjs";
|
|
3
|
+
import "../components/Toaster/Toast.mjs";
|
|
4
|
+
import { useToast } from "../components/Toaster/useToast.mjs";
|
|
5
|
+
import "../jsx-runtime-BgSF1HG2.js";
|
|
3
6
|
import { useAsync } from "./useAsync/useAsync.mjs";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import { useIntlayerAuth } from "./useIntlayerAPI.mjs";
|
|
8
|
+
var define_process_env_default = {};
|
|
9
|
+
const useErrorHandling = (options) => {
|
|
10
|
+
const { toast } = useToast();
|
|
11
|
+
return {
|
|
8
12
|
...options,
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
onError: (errorMessage) => {
|
|
14
|
+
let error;
|
|
15
|
+
try {
|
|
16
|
+
error = JSON.parse(errorMessage);
|
|
17
|
+
} catch (e) {
|
|
18
|
+
console.error(e);
|
|
19
|
+
error = errorMessage;
|
|
20
|
+
}
|
|
21
|
+
[error].flatMap((error2) => error2).forEach(
|
|
22
|
+
(error2) => toast({
|
|
23
|
+
title: (define_process_env_default.NODE_ENV === "production" ? error2.title : error2.code) ?? "Error",
|
|
24
|
+
description: error2.message ?? errorMessage ?? "An error occurred",
|
|
25
|
+
variant: "error"
|
|
26
|
+
})
|
|
27
|
+
);
|
|
28
|
+
options.onError?.(errorMessage);
|
|
29
|
+
},
|
|
30
|
+
onSuccess: (data) => {
|
|
31
|
+
if (data.message)
|
|
32
|
+
toast({
|
|
33
|
+
title: data.message,
|
|
34
|
+
description: data.description,
|
|
35
|
+
variant: "success"
|
|
36
|
+
});
|
|
37
|
+
options.onSuccess?.(data);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
11
40
|
};
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
41
|
+
const useAuthEnable = (options, { requireUser, requireProject, requireOrganization } = {}) => {
|
|
42
|
+
const { csrfToken, oAuth2AccessToken, session } = useAuth();
|
|
43
|
+
const user = session ? session.user : oAuth2AccessToken?.user;
|
|
44
|
+
const organization = session ? session.organization : oAuth2AccessToken?.organization;
|
|
45
|
+
const project = session ? session.project : oAuth2AccessToken?.project;
|
|
46
|
+
const isUserEnabled = requireUser ? Boolean(user) : true;
|
|
47
|
+
const isProjectEnabled = requireProject ? Boolean(project) : true;
|
|
48
|
+
const isOrganizationEnabled = requireOrganization ? Boolean(organization) : true;
|
|
49
|
+
const isCSRFEnabled = Boolean(csrfToken) || // If auth using session, csrf token is not required
|
|
50
|
+
!session && Boolean(oAuth2AccessToken);
|
|
51
|
+
const isEnabled = isUserEnabled && isProjectEnabled && isOrganizationEnabled && isCSRFEnabled;
|
|
52
|
+
return {
|
|
53
|
+
...options,
|
|
54
|
+
enable: isEnabled
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
const useAppAsync = (key, asyncFunction, options, authOptions) => {
|
|
58
|
+
const optionsWithAuth = useAuthEnable(options ?? {}, authOptions);
|
|
59
|
+
const optionsWithErrorHandling = useErrorHandling(optionsWithAuth);
|
|
60
|
+
return useAsync(key, asyncFunction, optionsWithErrorHandling);
|
|
61
|
+
};
|
|
62
|
+
const useLogin = (args) => useAppAsync("login", useIntlayerAuth().auth.login, {
|
|
63
|
+
invalidateQueries: ["getSession"],
|
|
64
|
+
...args
|
|
17
65
|
});
|
|
18
|
-
const
|
|
19
|
-
invalidateQueries: ["getSession"]
|
|
66
|
+
const useRegister = (args) => useAppAsync("register", useIntlayerAuth().auth.register, {
|
|
67
|
+
invalidateQueries: ["getSession"],
|
|
68
|
+
...args
|
|
20
69
|
});
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const useVerifyEmail = () => useAsyncWithAuth("verifyEmail", useIntlayerAPI().auth.verifyEmail);
|
|
25
|
-
const useGetUserByAccount = () => useAsyncWithAuth("getUserByAccount", useIntlayerAPI().user.getUserByAccount);
|
|
26
|
-
const useGetUsers = () => useAsyncWithAuth("getUsers", useIntlayerAPI().user.getUsers, {
|
|
27
|
-
cache: true,
|
|
28
|
-
store: true,
|
|
29
|
-
retryLimit: 3,
|
|
30
|
-
autoFetch: true,
|
|
31
|
-
revalidateTime: 5 * 60 * 1e3
|
|
32
|
-
// 5 minutes
|
|
70
|
+
const useLogout = (args) => useAppAsync("logout", useIntlayerAuth().auth.logout, {
|
|
71
|
+
invalidateQueries: ["getSession"],
|
|
72
|
+
...args
|
|
33
73
|
});
|
|
34
|
-
const
|
|
35
|
-
|
|
74
|
+
const useChangePassword = (args) => useAppAsync("changePassword", useIntlayerAuth().auth.changePassword, args);
|
|
75
|
+
const useAskResetPassword = (args) => useAppAsync(
|
|
76
|
+
"askResetPassword",
|
|
77
|
+
useIntlayerAuth().auth.askResetPassword,
|
|
78
|
+
args
|
|
79
|
+
);
|
|
80
|
+
const useResetPassword = (args) => useAppAsync("resetPassword", useIntlayerAuth().auth.resetPassword, args);
|
|
81
|
+
const useCheckIfUserHasPassword = (args) => useAppAsync(
|
|
82
|
+
"checkIfUserHasPassword",
|
|
83
|
+
useIntlayerAuth().auth.checkIfUserHasPassword,
|
|
84
|
+
args,
|
|
85
|
+
{
|
|
86
|
+
requireUser: true
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
const useVerifyEmail = (args) => useAppAsync("verifyEmail", useIntlayerAuth().auth.verifyEmail, args);
|
|
90
|
+
const useGetUserByAccount = (args) => useAppAsync(
|
|
91
|
+
"getUserByAccount",
|
|
92
|
+
useIntlayerAuth().user.getUserByAccount,
|
|
93
|
+
args
|
|
94
|
+
);
|
|
95
|
+
const useGetUsers = (args) => useAppAsync(
|
|
96
|
+
"getUsers",
|
|
97
|
+
useIntlayerAuth().user.getUsers,
|
|
98
|
+
{
|
|
99
|
+
cache: true,
|
|
100
|
+
store: true,
|
|
101
|
+
retryLimit: 3,
|
|
102
|
+
autoFetch: true,
|
|
103
|
+
revalidateTime: 5 * 60 * 1e3,
|
|
104
|
+
// 5 minutes
|
|
105
|
+
...args
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
requireUser: true
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
const useCreateUser = (args) => useAppAsync("createUser", useIntlayerAuth().user.createUser, {
|
|
112
|
+
invalidateQueries: ["getUsers"],
|
|
113
|
+
...args
|
|
36
114
|
});
|
|
37
|
-
const useUpdateUser = () =>
|
|
38
|
-
invalidateQueries: ["getSession"]
|
|
115
|
+
const useUpdateUser = (args) => useAppAsync("updateUser", useIntlayerAuth().user.updateUser, {
|
|
116
|
+
invalidateQueries: ["getSession"],
|
|
117
|
+
...args
|
|
39
118
|
});
|
|
40
|
-
const useDeleteUser = () =>
|
|
41
|
-
invalidateQueries: ["getUsers"]
|
|
119
|
+
const useDeleteUser = (args) => useAppAsync("deleteUser", useIntlayerAuth().user.deleteUser, {
|
|
120
|
+
invalidateQueries: ["getUsers"],
|
|
121
|
+
...args
|
|
42
122
|
});
|
|
43
|
-
const useGetOrganizations = () =>
|
|
123
|
+
const useGetOrganizations = (args) => useAppAsync(
|
|
44
124
|
"getOrganizations",
|
|
45
|
-
|
|
125
|
+
useIntlayerAuth().organization.getOrganizations,
|
|
46
126
|
{
|
|
47
127
|
cache: true,
|
|
48
128
|
store: true,
|
|
49
129
|
retryLimit: 3,
|
|
50
130
|
autoFetch: true,
|
|
51
131
|
revalidation: true,
|
|
52
|
-
revalidateTime: 5 * 60 * 1e3
|
|
132
|
+
revalidateTime: 5 * 60 * 1e3,
|
|
53
133
|
// 5 minutes
|
|
134
|
+
...args
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
requireUser: true
|
|
54
138
|
}
|
|
55
139
|
);
|
|
56
|
-
const useAddOrganization = () =>
|
|
140
|
+
const useAddOrganization = (args) => useAppAsync(
|
|
57
141
|
"addOrganization",
|
|
58
|
-
|
|
142
|
+
useIntlayerAuth().organization.addOrganization,
|
|
59
143
|
{
|
|
60
|
-
invalidateQueries: ["getOrganizations"]
|
|
144
|
+
invalidateQueries: ["getOrganizations"],
|
|
145
|
+
...args
|
|
61
146
|
}
|
|
62
147
|
);
|
|
63
|
-
const useUpdateOrganization = () =>
|
|
148
|
+
const useUpdateOrganization = (args) => useAppAsync(
|
|
64
149
|
"updateOrganization",
|
|
65
|
-
|
|
150
|
+
useIntlayerAuth().organization.updateOrganization,
|
|
66
151
|
{
|
|
67
|
-
invalidateQueries: ["getSession"]
|
|
152
|
+
invalidateQueries: ["getSession"],
|
|
153
|
+
...args
|
|
68
154
|
}
|
|
69
155
|
);
|
|
70
|
-
const useUpdateOrganizationMembers = () =>
|
|
156
|
+
const useUpdateOrganizationMembers = (args) => useAppAsync(
|
|
71
157
|
"updateOrganizationMembers",
|
|
72
|
-
|
|
158
|
+
useIntlayerAuth().organization.updateOrganizationMembers,
|
|
73
159
|
{
|
|
74
|
-
invalidateQueries: ["getOrganizations"]
|
|
160
|
+
invalidateQueries: ["getOrganizations"],
|
|
161
|
+
...args
|
|
75
162
|
}
|
|
76
163
|
);
|
|
77
|
-
const useAddOrganizationMember = () =>
|
|
164
|
+
const useAddOrganizationMember = (args) => useAppAsync(
|
|
78
165
|
"addOrganizationMember",
|
|
79
|
-
|
|
166
|
+
useIntlayerAuth().organization.addOrganizationMember,
|
|
80
167
|
{
|
|
81
|
-
invalidateQueries: ["getOrganizations"]
|
|
168
|
+
invalidateQueries: ["getOrganizations"],
|
|
169
|
+
...args
|
|
82
170
|
}
|
|
83
171
|
);
|
|
84
|
-
const useDeleteOrganization = () =>
|
|
172
|
+
const useDeleteOrganization = (args) => useAppAsync(
|
|
85
173
|
"deleteOrganization",
|
|
86
|
-
|
|
174
|
+
useIntlayerAuth().organization.deleteOrganization,
|
|
87
175
|
{
|
|
88
|
-
invalidateQueries: ["getOrganizations"]
|
|
176
|
+
invalidateQueries: ["getOrganizations"],
|
|
177
|
+
...args
|
|
89
178
|
}
|
|
90
179
|
);
|
|
91
|
-
const useSelectOrganization = () =>
|
|
180
|
+
const useSelectOrganization = (args) => useAppAsync(
|
|
92
181
|
"selectOrganization",
|
|
93
|
-
|
|
182
|
+
useIntlayerAuth().organization.selectOrganization,
|
|
94
183
|
{
|
|
95
|
-
invalidateQueries: ["getSession"]
|
|
184
|
+
invalidateQueries: ["getSession"],
|
|
185
|
+
...args
|
|
96
186
|
}
|
|
97
187
|
);
|
|
98
|
-
const useUnselectOrganization = () =>
|
|
188
|
+
const useUnselectOrganization = (args) => useAppAsync(
|
|
99
189
|
"unselectOrganization",
|
|
100
|
-
|
|
190
|
+
useIntlayerAuth().organization.unselectOrganization,
|
|
101
191
|
{
|
|
102
|
-
invalidateQueries: ["getSession"]
|
|
192
|
+
invalidateQueries: ["getSession"],
|
|
193
|
+
...args
|
|
103
194
|
}
|
|
104
195
|
);
|
|
105
|
-
const useGetProjects = () =>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
retryLimit: 3,
|
|
109
|
-
autoFetch: true,
|
|
110
|
-
revalidation: true,
|
|
111
|
-
revalidateTime: 5 * 60 * 1e3
|
|
112
|
-
// 5 minutes
|
|
113
|
-
});
|
|
114
|
-
const useAddProject = () => useAsyncWithAuth("addProject", useIntlayerAPI().project.addProject, {
|
|
115
|
-
invalidateQueries: ["getProjects"]
|
|
116
|
-
});
|
|
117
|
-
const useUpdateProject = () => useAsyncWithAuth("updateProject", useIntlayerAPI().project.updateProject, {
|
|
118
|
-
invalidateQueries: ["getSession"]
|
|
119
|
-
});
|
|
120
|
-
const useUpdateProjectMembers = () => useAsyncWithAuth(
|
|
121
|
-
"updateProjectMembers",
|
|
122
|
-
useIntlayerAPI().project.updateProjectMembers,
|
|
196
|
+
const useGetProjects = (args) => useAppAsync(
|
|
197
|
+
"getProjects",
|
|
198
|
+
useIntlayerAuth().project.getProjects,
|
|
123
199
|
{
|
|
124
|
-
|
|
200
|
+
cache: true,
|
|
201
|
+
store: true,
|
|
202
|
+
retryLimit: 3,
|
|
203
|
+
autoFetch: true,
|
|
204
|
+
revalidation: true,
|
|
205
|
+
revalidateTime: 5 * 60 * 1e3,
|
|
206
|
+
// 5 minutes
|
|
207
|
+
...args
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
requireUser: true,
|
|
211
|
+
requireOrganization: true
|
|
125
212
|
}
|
|
126
213
|
);
|
|
127
|
-
const
|
|
128
|
-
invalidateQueries: ["getProjects"]
|
|
214
|
+
const useAddProject = (args) => useAppAsync("addProject", useIntlayerAuth().project.addProject, {
|
|
215
|
+
invalidateQueries: ["getProjects"],
|
|
216
|
+
...args
|
|
129
217
|
});
|
|
130
|
-
const
|
|
131
|
-
invalidateQueries: ["getSession"]
|
|
218
|
+
const useUpdateProject = (args) => useAppAsync("updateProject", useIntlayerAuth().project.updateProject, {
|
|
219
|
+
invalidateQueries: ["getSession"],
|
|
220
|
+
...args
|
|
132
221
|
});
|
|
133
|
-
const
|
|
134
|
-
"
|
|
135
|
-
|
|
222
|
+
const useUpdateProjectMembers = (args) => useAppAsync(
|
|
223
|
+
"updateProjectMembers",
|
|
224
|
+
useIntlayerAuth().project.updateProjectMembers,
|
|
136
225
|
{
|
|
137
|
-
invalidateQueries: ["getSession"]
|
|
226
|
+
invalidateQueries: ["getSession"],
|
|
227
|
+
...args
|
|
138
228
|
}
|
|
139
229
|
);
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
230
|
+
const useDeleteProject = (args) => useAppAsync("deleteProject", useIntlayerAuth().project.deleteProject, {
|
|
231
|
+
invalidateQueries: ["getProjects"],
|
|
232
|
+
...args
|
|
233
|
+
});
|
|
234
|
+
const useSelectProject = (args) => useAppAsync("selectProject", useIntlayerAuth().project.selectProject, {
|
|
235
|
+
invalidateQueries: ["getSession"],
|
|
236
|
+
...args
|
|
237
|
+
});
|
|
238
|
+
const useUnselectProject = (args) => useAppAsync("unselectProject", useIntlayerAuth().project.unselectProject, {
|
|
239
|
+
invalidateQueries: ["getSession"],
|
|
240
|
+
...args
|
|
241
|
+
});
|
|
242
|
+
const useAddNewAccessKey = (args) => useAppAsync("addNewAccessKey", useIntlayerAuth().project.addNewAccessKey, {
|
|
243
|
+
invalidateQueries: ["getSession"],
|
|
244
|
+
...args
|
|
245
|
+
});
|
|
246
|
+
const useDeleteAccessKey = (args) => useAppAsync("deleteAccessKey", useIntlayerAuth().project.deleteAccessKey, {
|
|
247
|
+
invalidateQueries: ["getSession"],
|
|
248
|
+
...args
|
|
249
|
+
});
|
|
250
|
+
const useRefreshAccessKey = (args) => useAppAsync("refreshAccessKey", useIntlayerAuth().project.refreshAccessKey, {
|
|
251
|
+
invalidateQueries: ["getSession"],
|
|
252
|
+
...args
|
|
253
|
+
});
|
|
254
|
+
const useGetDictionaries = (args) => useAppAsync(
|
|
147
255
|
"getDictionaries",
|
|
148
|
-
|
|
256
|
+
useIntlayerAuth().dictionary.getDictionaries,
|
|
149
257
|
{
|
|
150
258
|
cache: true,
|
|
151
259
|
store: true,
|
|
152
260
|
retryLimit: 3,
|
|
153
261
|
autoFetch: true,
|
|
154
262
|
revalidation: true,
|
|
155
|
-
revalidateTime: 5 * 60 * 1e3
|
|
263
|
+
revalidateTime: 5 * 60 * 1e3,
|
|
156
264
|
// 5 minutes
|
|
265
|
+
...args
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
requireUser: true,
|
|
269
|
+
requireOrganization: true,
|
|
270
|
+
requireProject: true
|
|
157
271
|
}
|
|
158
272
|
);
|
|
159
|
-
const useGetDictionariesKeys = () =>
|
|
273
|
+
const useGetDictionariesKeys = (args) => useAppAsync(
|
|
160
274
|
"getDictionariesKeys",
|
|
161
|
-
|
|
275
|
+
useIntlayerAuth().dictionary.getDictionariesKeys,
|
|
162
276
|
{
|
|
163
277
|
cache: true,
|
|
164
278
|
store: true,
|
|
165
279
|
retryLimit: 3,
|
|
166
280
|
autoFetch: true,
|
|
167
281
|
revalidation: true,
|
|
168
|
-
revalidateTime: 5 * 60 * 1e3
|
|
282
|
+
revalidateTime: 5 * 60 * 1e3,
|
|
283
|
+
// 5 minutes
|
|
284
|
+
...args
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
requireUser: true,
|
|
288
|
+
requireOrganization: true,
|
|
289
|
+
requireProject: true
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
const useGetDictionary = (args) => useAppAsync(
|
|
293
|
+
"getDictionary",
|
|
294
|
+
useIntlayerAuth().dictionary.getDictionary,
|
|
295
|
+
{
|
|
296
|
+
cache: true,
|
|
297
|
+
store: true,
|
|
298
|
+
retryLimit: 3,
|
|
299
|
+
revalidation: true,
|
|
300
|
+
revalidateTime: 5 * 60 * 1e3,
|
|
169
301
|
// 5 minutes
|
|
302
|
+
...args
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
requireUser: true,
|
|
306
|
+
requireOrganization: true,
|
|
307
|
+
requireProject: true
|
|
170
308
|
}
|
|
171
309
|
);
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
retryLimit: 3,
|
|
176
|
-
revalidation: true,
|
|
177
|
-
revalidateTime: 5 * 60 * 1e3
|
|
178
|
-
// 5 minutes
|
|
179
|
-
});
|
|
180
|
-
const useAddDictionary = () => useAsyncWithAuth("addDictionary", useIntlayerAPI().dictionary.addDictionary, {
|
|
181
|
-
invalidateQueries: ["getDictionaries", "getDictionariesKeys"]
|
|
310
|
+
const useAddDictionary = (args) => useAppAsync("addDictionary", useIntlayerAuth().dictionary.addDictionary, {
|
|
311
|
+
invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
|
|
312
|
+
...args
|
|
182
313
|
});
|
|
183
|
-
const usePushDictionaries = () =>
|
|
314
|
+
const usePushDictionaries = (args) => useAppAsync(
|
|
184
315
|
"pushDictionaries",
|
|
185
|
-
|
|
316
|
+
useIntlayerAuth().dictionary.pushDictionaries,
|
|
186
317
|
{
|
|
187
|
-
invalidateQueries: ["getDictionaries", "getDictionariesKeys"]
|
|
318
|
+
invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
|
|
319
|
+
...args
|
|
188
320
|
}
|
|
189
321
|
);
|
|
190
|
-
const useUpdateDictionary = () =>
|
|
322
|
+
const useUpdateDictionary = (args) => useAppAsync(
|
|
191
323
|
"updateDictionary",
|
|
192
|
-
|
|
324
|
+
useIntlayerAuth().dictionary.updateDictionary,
|
|
193
325
|
{
|
|
194
|
-
invalidateQueries: ["getDictionaries"]
|
|
326
|
+
invalidateQueries: ["getDictionaries"],
|
|
327
|
+
...args
|
|
195
328
|
}
|
|
196
329
|
);
|
|
197
|
-
const useDeleteDictionary = () =>
|
|
330
|
+
const useDeleteDictionary = (args) => useAppAsync(
|
|
198
331
|
"deleteDictionary",
|
|
199
|
-
|
|
332
|
+
useIntlayerAuth().dictionary.deleteDictionary,
|
|
333
|
+
{
|
|
334
|
+
invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
|
|
335
|
+
...args
|
|
336
|
+
}
|
|
337
|
+
);
|
|
338
|
+
const useGetSubscription = (args) => useAppAsync(
|
|
339
|
+
"getSubscription",
|
|
340
|
+
useIntlayerAuth().stripe.getSubscription,
|
|
341
|
+
{ ...args, cache: true },
|
|
200
342
|
{
|
|
201
|
-
|
|
343
|
+
requireUser: true,
|
|
344
|
+
requireOrganization: true
|
|
202
345
|
}
|
|
203
346
|
);
|
|
204
347
|
export {
|
|
@@ -208,8 +351,8 @@ export {
|
|
|
208
351
|
useAddOrganizationMember,
|
|
209
352
|
useAddProject,
|
|
210
353
|
useAskResetPassword,
|
|
211
|
-
useAsyncWithAuth,
|
|
212
354
|
useChangePassword,
|
|
355
|
+
useCheckIfUserHasPassword,
|
|
213
356
|
useCreateUser,
|
|
214
357
|
useDeleteAccessKey,
|
|
215
358
|
useDeleteDictionary,
|
|
@@ -221,6 +364,7 @@ export {
|
|
|
221
364
|
useGetDictionary,
|
|
222
365
|
useGetOrganizations,
|
|
223
366
|
useGetProjects,
|
|
367
|
+
useGetSubscription,
|
|
224
368
|
useGetUserByAccount,
|
|
225
369
|
useGetUsers,
|
|
226
370
|
useLogin,
|