@intlayer/design-system 2.0.13 → 3.0.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 +1798 -369
- package/dist/Form-Cbu7ff1e.js +278 -0
- package/dist/Form-Cbu7ff1e.js.map +1 -0
- package/dist/Form-wWTTkxTp.cjs +277 -0
- package/dist/Form-wWTTkxTp.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.cjs +64 -0
- package/dist/components/Accordion/Accordion.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +17 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.mjs +64 -0
- package/dist/components/Accordion/Accordion.mjs.map +1 -0
- package/dist/components/Accordion/index.cjs +5 -0
- package/dist/components/Accordion/index.cjs.map +1 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Accordion/index.mjs +5 -0
- package/dist/components/Accordion/index.mjs.map +1 -0
- package/dist/components/Auth/AuthModal/index.cjs +157 -0
- package/dist/components/Auth/AuthModal/index.cjs.map +1 -0
- package/dist/components/Auth/AuthModal/index.d.ts +21 -0
- package/dist/components/Auth/AuthModal/index.d.ts.map +1 -0
- package/dist/components/Auth/AuthModal/index.mjs +157 -0
- package/dist/components/Auth/AuthModal/index.mjs.map +1 -0
- package/dist/components/Auth/AuthProvider/index.cjs +71 -0
- package/dist/components/Auth/AuthProvider/index.cjs.map +1 -0
- package/dist/components/Auth/AuthProvider/index.d.ts +30 -0
- package/dist/components/Auth/AuthProvider/index.d.ts.map +1 -0
- package/dist/components/Auth/AuthProvider/index.mjs +71 -0
- package/dist/components/Auth/AuthProvider/index.mjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useCSRF.cjs +22 -0
- package/dist/components/Auth/AuthProvider/useCSRF.cjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useCSRF.d.ts +5 -0
- package/dist/components/Auth/AuthProvider/useCSRF.d.ts.map +1 -0
- package/dist/components/Auth/AuthProvider/useCSRF.mjs +22 -0
- package/dist/components/Auth/AuthProvider/useCSRF.mjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.cjs +26 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.cjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.d.ts +4 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.d.ts.map +1 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.mjs +26 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.mjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useSession.cjs +67 -0
- package/dist/components/Auth/AuthProvider/useSession.cjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useSession.d.ts +9 -0
- package/dist/components/Auth/AuthProvider/useSession.d.ts.map +1 -0
- package/dist/components/Auth/AuthProvider/useSession.mjs +67 -0
- package/dist/components/Auth/AuthProvider/useSession.mjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +36 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts +6 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +36 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs +22 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +9 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs +22 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs +15 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +5 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs +15 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/index.cjs +7 -0
- package/dist/components/Auth/AuthenticationBarrier/index.cjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/index.d.ts +24 -0
- package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/index.mjs +7 -0
- package/dist/components/Auth/AuthenticationBarrier/index.mjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +91 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +11 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +91 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs +66 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts +25 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs +66 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.cjs +7 -0
- package/dist/components/Auth/ChangePasswordForm/index.cjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.cjs +67 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.cjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.d.ts +23 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.d.ts.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.mjs +67 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.mjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.d.ts +3 -0
- package/dist/components/Auth/ChangePasswordForm/index.d.ts.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.mjs +7 -0
- package/dist/components/Auth/ChangePasswordForm/index.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +61 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts +6 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +61 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs +15 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts +4 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs +15 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs +23 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts +4 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs +23 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs +36 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +12 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs +36 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.cjs +7 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.d.ts +2 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.mjs +7 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.mjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +110 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +12 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +110 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs +29 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts +11 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs +29 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.cjs +7 -0
- package/dist/components/Auth/ResetPasswordForm/index.cjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.cjs +50 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.cjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.d.ts +18 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.d.ts.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.mjs +50 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.mjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.d.ts +3 -0
- package/dist/components/Auth/ResetPasswordForm/index.d.ts.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.mjs +7 -0
- package/dist/components/Auth/ResetPasswordForm/index.mjs.map +1 -0
- package/dist/components/Auth/SignInForm/SignInForm.cjs +94 -0
- package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -0
- package/dist/components/Auth/SignInForm/SignInForm.d.ts +12 -0
- package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -0
- package/dist/components/Auth/SignInForm/SignInForm.mjs +94 -0
- package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -0
- package/dist/components/Auth/SignInForm/SignInSchema.cjs +38 -0
- package/dist/components/Auth/SignInForm/SignInSchema.cjs.map +1 -0
- package/dist/components/Auth/SignInForm/SignInSchema.d.ts +14 -0
- package/dist/components/Auth/SignInForm/SignInSchema.d.ts.map +1 -0
- package/dist/components/Auth/SignInForm/SignInSchema.mjs +38 -0
- package/dist/components/Auth/SignInForm/SignInSchema.mjs.map +1 -0
- package/dist/components/Auth/SignInForm/index.cjs +7 -0
- package/dist/components/Auth/SignInForm/index.cjs.map +1 -0
- package/dist/components/Auth/SignInForm/index.content.cjs +84 -0
- package/dist/components/Auth/SignInForm/index.content.cjs.map +1 -0
- package/dist/components/Auth/SignInForm/index.content.d.ts +28 -0
- package/dist/components/Auth/SignInForm/index.content.d.ts.map +1 -0
- package/dist/components/Auth/SignInForm/index.content.mjs +84 -0
- package/dist/components/Auth/SignInForm/index.content.mjs.map +1 -0
- package/dist/components/Auth/SignInForm/index.d.ts +3 -0
- package/dist/components/Auth/SignInForm/index.d.ts.map +1 -0
- package/dist/components/Auth/SignInForm/index.mjs +7 -0
- package/dist/components/Auth/SignInForm/index.mjs.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs +96 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +11 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs +96 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.cjs +61 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.cjs.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts +25 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.mjs +61 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.mjs.map +1 -0
- package/dist/components/Auth/SignUpForm/index.cjs +7 -0
- package/dist/components/Auth/SignUpForm/index.cjs.map +1 -0
- package/dist/components/Auth/SignUpForm/index.content.cjs +72 -0
- package/dist/components/Auth/SignUpForm/index.content.cjs.map +1 -0
- package/dist/components/Auth/SignUpForm/index.content.d.ts +24 -0
- package/dist/components/Auth/SignUpForm/index.content.d.ts.map +1 -0
- package/dist/components/Auth/SignUpForm/index.content.mjs +72 -0
- package/dist/components/Auth/SignUpForm/index.content.mjs.map +1 -0
- package/dist/components/Auth/SignUpForm/index.d.ts +3 -0
- package/dist/components/Auth/SignUpForm/index.d.ts.map +1 -0
- package/dist/components/Auth/SignUpForm/index.mjs +7 -0
- package/dist/components/Auth/SignUpForm/index.mjs.map +1 -0
- package/dist/components/Auth/index.cjs +35 -0
- package/dist/components/Auth/index.cjs.map +1 -0
- package/dist/components/Auth/index.d.ts +10 -0
- package/dist/components/Auth/index.d.ts.map +1 -0
- package/dist/components/Auth/index.mjs +35 -0
- package/dist/components/Auth/index.mjs.map +1 -0
- package/dist/components/Auth/useUser/index.cjs +31 -0
- package/dist/components/Auth/useUser/index.cjs.map +1 -0
- package/dist/components/Auth/useUser/index.d.ts +8 -0
- package/dist/components/Auth/useUser/index.d.ts.map +1 -0
- package/dist/components/Auth/useUser/index.mjs +31 -0
- package/dist/components/Auth/useUser/index.mjs.map +1 -0
- package/dist/components/Avatar/index.cjs +63 -0
- package/dist/components/Avatar/index.cjs.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -1
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Avatar/index.mjs +63 -0
- package/dist/components/Avatar/index.mjs.map +1 -0
- package/dist/components/Badge/index.cjs +42 -0
- package/dist/components/Badge/index.cjs.map +1 -0
- package/dist/components/Badge/index.d.ts +10 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Badge/index.mjs +42 -0
- package/dist/components/Badge/index.mjs.map +1 -0
- package/dist/components/Breadcrumb/index.cjs +52 -0
- package/dist/components/Breadcrumb/index.cjs.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +14 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.mjs +52 -0
- package/dist/components/Breadcrumb/index.mjs.map +1 -0
- package/dist/components/Button/Button.cjs +155 -0
- package/dist/components/Button/Button.cjs.map +1 -0
- package/dist/components/Button/Button.d.ts +27 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.mjs +155 -0
- package/dist/components/Button/Button.mjs.map +1 -0
- package/dist/components/Button/index.cjs +5 -0
- package/dist/components/Button/index.cjs.map +1 -0
- package/dist/components/Button/index.d.ts +2 -22
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.mjs +5 -0
- package/dist/components/Button/index.mjs.map +1 -0
- package/dist/components/Command/index.cjs +121 -0
- package/dist/components/Command/index.cjs.map +1 -0
- package/dist/components/Command/index.d.ts +136 -0
- package/dist/components/Command/index.d.ts.map +1 -0
- package/dist/components/Command/index.mjs +121 -0
- package/dist/components/Command/index.mjs.map +1 -0
- package/dist/components/Container/index.cjs +101 -0
- package/dist/components/Container/index.cjs.map +1 -0
- package/dist/components/Container/index.d.ts +15 -20
- package/dist/components/Container/index.d.ts.map +1 -0
- package/dist/components/Container/index.mjs +101 -0
- package/dist/components/Container/index.mjs.map +1 -0
- package/dist/components/ContentEditor/ContentEditor.cjs +62 -0
- package/dist/components/ContentEditor/ContentEditor.cjs.map +1 -0
- package/dist/components/ContentEditor/ContentEditor.d.ts +3 -2
- package/dist/components/ContentEditor/ContentEditor.d.ts.map +1 -0
- package/dist/components/ContentEditor/ContentEditor.mjs +62 -0
- package/dist/components/ContentEditor/ContentEditor.mjs.map +1 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.cjs +68 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +9 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.mjs +68 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -0
- package/dist/components/ContentEditor/index.cjs +5 -0
- package/dist/components/ContentEditor/index.cjs.map +1 -0
- package/dist/components/ContentEditor/index.d.ts +1 -0
- package/dist/components/ContentEditor/index.d.ts.map +1 -0
- package/dist/components/ContentEditor/index.mjs +5 -0
- package/dist/components/ContentEditor/index.mjs.map +1 -0
- package/dist/components/ContentSelector/ContentSelector.cjs +21 -0
- package/dist/components/ContentSelector/ContentSelector.cjs.map +1 -0
- package/dist/components/ContentSelector/ContentSelector.d.ts +1 -1
- package/dist/components/ContentSelector/ContentSelector.d.ts.map +1 -0
- package/dist/components/ContentSelector/ContentSelector.mjs +21 -0
- package/dist/components/ContentSelector/ContentSelector.mjs.map +1 -0
- package/dist/components/ContentSelector/index.cjs +5 -0
- package/dist/components/ContentSelector/index.cjs.map +1 -0
- package/dist/components/ContentSelector/index.d.ts +1 -0
- package/dist/components/ContentSelector/index.d.ts.map +1 -0
- package/dist/components/ContentSelector/index.mjs +5 -0
- package/dist/components/ContentSelector/index.mjs.map +1 -0
- package/dist/components/CopyToClipboard/index.cjs +45 -0
- package/dist/components/CopyToClipboard/index.cjs.map +1 -0
- package/dist/components/CopyToClipboard/index.d.ts +8 -0
- package/dist/components/CopyToClipboard/index.d.ts.map +1 -0
- package/dist/components/CopyToClipboard/index.mjs +45 -0
- package/dist/components/CopyToClipboard/index.mjs.map +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs +35 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +5 -7
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs +35 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.cjs +54 -0
- package/dist/components/DictionaryEditor/ItemLayout.cjs.map +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.d.ts +1 -4
- package/dist/components/DictionaryEditor/ItemLayout.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.mjs +54 -0
- package/dist/components/DictionaryEditor/ItemLayout.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs +8 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +8 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +47 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +47 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs +7 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +7 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs +10 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +6 -5
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.mjs +10 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.mjs.map +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +29 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +6 -4
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +29 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -0
- package/dist/components/DictionaryEditor/index.cjs +9 -0
- package/dist/components/DictionaryEditor/index.cjs.map +1 -0
- package/dist/components/DictionaryEditor/index.d.ts +3 -0
- package/dist/components/DictionaryEditor/index.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/index.mjs +9 -0
- package/dist/components/DictionaryEditor/index.mjs.map +1 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.cjs +492 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.cjs.map +1 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.d.ts +28 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.mjs +492 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.mjs.map +1 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.cjs +15 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.cjs.map +1 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts +16 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.mjs +15 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +54 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +8 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +54 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.cjs +20 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts +8 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.mjs +20 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +111 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts +4 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +111 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +129 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +49 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +129 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs +40 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts +14 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs +40 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +195 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts +9 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +195 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs +85 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts +20 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs +85 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +149 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +53 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +149 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +128 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +10 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +128 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +129 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts +10 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +129 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +298 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts +11 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +298 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs +71 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.d.ts +20 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +71 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs +22 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts +11 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs +22 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +298 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts +11 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +298 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +79 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +31 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +79 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +99 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts +11 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +99 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +129 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts +9 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +129 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.cjs +8 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.d.ts +5 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.mjs +8 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +67 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +27 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +67 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +32 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +12 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +32 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.cjs +41 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.d.ts +17 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.mjs +41 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.cjs +38 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts +4 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.mjs +38 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/index.cjs +9 -0
- package/dist/components/DictionaryFieldEditor/index.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/index.d.ts +4 -0
- package/dist/components/DictionaryFieldEditor/index.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/index.mjs +9 -0
- package/dist/components/DictionaryFieldEditor/index.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +40 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +12 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +40 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -0
- package/dist/components/DropDown/index.cjs +77 -0
- package/dist/components/DropDown/index.cjs.map +1 -0
- package/dist/components/DropDown/index.d.ts +21 -2
- package/dist/components/DropDown/index.d.ts.map +1 -0
- package/dist/components/DropDown/index.mjs +77 -0
- package/dist/components/DropDown/index.mjs.map +1 -0
- package/dist/components/DropDown/types.cjs +2 -0
- package/dist/components/DropDown/types.cjs.map +1 -0
- package/dist/components/DropDown/types.d.ts +11 -6
- package/dist/components/DropDown/types.d.ts.map +1 -0
- package/dist/components/DropDown/types.mjs +2 -0
- package/dist/components/DropDown/types.mjs.map +1 -0
- package/dist/components/EditableField/EditableFieldInput.cjs +28 -0
- package/dist/components/EditableField/EditableFieldInput.cjs.map +1 -0
- package/dist/components/EditableField/EditableFieldInput.d.ts +10 -0
- package/dist/components/EditableField/EditableFieldInput.d.ts.map +1 -0
- package/dist/components/EditableField/EditableFieldInput.mjs +28 -0
- package/dist/components/EditableField/EditableFieldInput.mjs.map +1 -0
- package/dist/components/EditableField/EditableFieldLayout.cjs +121 -0
- package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -0
- package/dist/components/EditableField/EditableFieldLayout.d.ts +12 -0
- package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -0
- package/dist/components/EditableField/EditableFieldLayout.mjs +121 -0
- package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -0
- package/dist/components/EditableField/EditableFieldTextArea.cjs +29 -0
- package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -0
- package/dist/components/EditableField/EditableFieldTextArea.d.ts +5 -0
- package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -0
- package/dist/components/EditableField/EditableFieldTextArea.mjs +29 -0
- package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -0
- package/dist/components/EditableField/index.cjs +7 -0
- package/dist/components/EditableField/index.cjs.map +1 -0
- package/dist/components/EditableField/index.d.ts +3 -0
- package/dist/components/EditableField/index.d.ts.map +1 -0
- package/dist/components/EditableField/index.mjs +7 -0
- package/dist/components/EditableField/index.mjs.map +1 -0
- package/dist/components/Flags/Flag.cjs +369 -0
- package/dist/components/Flags/Flag.cjs.map +1 -0
- package/dist/components/Flags/Flag.d.ts +9 -0
- package/dist/components/Flags/Flag.d.ts.map +1 -0
- package/dist/components/Flags/Flag.mjs +369 -0
- package/dist/components/Flags/Flag.mjs.map +1 -0
- package/dist/components/Flags/index.cjs +5 -0
- package/dist/components/Flags/index.cjs.map +1 -0
- package/dist/components/Flags/index.d.ts +2 -0
- package/dist/components/Flags/index.d.ts.map +1 -0
- package/dist/components/Flags/index.mjs +5 -0
- package/dist/components/Flags/index.mjs.map +1 -0
- package/dist/components/Footer/index.cjs +23 -0
- package/dist/components/Footer/index.cjs.map +1 -0
- package/dist/components/Footer/index.d.ts +3 -2
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/Footer/index.mjs +23 -0
- package/dist/components/Footer/index.mjs.map +1 -0
- package/dist/components/Form/Form.cjs +14 -0
- package/dist/components/Form/Form.cjs.map +1 -0
- package/dist/components/Form/Form.d.ts +54 -0
- package/dist/components/Form/Form.d.ts.map +1 -0
- package/dist/components/Form/Form.mjs +14 -0
- package/dist/components/Form/Form.mjs.map +1 -0
- package/dist/components/Form/FormBase.cjs +72 -0
- package/dist/components/Form/FormBase.cjs.map +1 -0
- package/dist/components/Form/FormBase.d.ts +21 -0
- package/dist/components/Form/FormBase.d.ts.map +1 -0
- package/dist/components/Form/FormBase.mjs +72 -0
- package/dist/components/Form/FormBase.mjs.map +1 -0
- package/dist/components/Form/FormControl.cjs +23 -0
- package/dist/components/Form/FormControl.cjs.map +1 -0
- package/dist/components/Form/FormControl.d.ts +2 -0
- package/dist/components/Form/FormControl.d.ts.map +1 -0
- package/dist/components/Form/FormControl.mjs +23 -0
- package/dist/components/Form/FormControl.mjs.map +1 -0
- package/dist/components/Form/FormDescription.cjs +21 -0
- package/dist/components/Form/FormDescription.cjs.map +1 -0
- package/dist/components/Form/FormDescription.d.ts +4 -0
- package/dist/components/Form/FormDescription.d.ts.map +1 -0
- package/dist/components/Form/FormDescription.mjs +21 -0
- package/dist/components/Form/FormDescription.mjs.map +1 -0
- package/dist/components/Form/FormField.cjs +42 -0
- package/dist/components/Form/FormField.cjs.map +1 -0
- package/dist/components/Form/FormField.d.ts +16 -0
- package/dist/components/Form/FormField.d.ts.map +1 -0
- package/dist/components/Form/FormField.mjs +42 -0
- package/dist/components/Form/FormField.mjs.map +1 -0
- package/dist/components/Form/FormItem.cjs +22 -0
- package/dist/components/Form/FormItem.cjs.map +1 -0
- package/dist/components/Form/FormItem.d.ts +9 -0
- package/dist/components/Form/FormItem.d.ts.map +1 -0
- package/dist/components/Form/FormItem.mjs +22 -0
- package/dist/components/Form/FormItem.mjs.map +1 -0
- package/dist/components/Form/FormLabel.cjs +23 -0
- package/dist/components/Form/FormLabel.cjs.map +1 -0
- package/dist/components/Form/FormLabel.d.ts +2 -0
- package/dist/components/Form/FormLabel.d.ts.map +1 -0
- package/dist/components/Form/FormLabel.mjs +23 -0
- package/dist/components/Form/FormLabel.mjs.map +1 -0
- package/dist/components/Form/FormMessage.cjs +27 -0
- package/dist/components/Form/FormMessage.cjs.map +1 -0
- package/dist/components/Form/FormMessage.d.ts +4 -0
- package/dist/components/Form/FormMessage.d.ts.map +1 -0
- package/dist/components/Form/FormMessage.mjs +27 -0
- package/dist/components/Form/FormMessage.mjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldInputElement.cjs +7 -0
- package/dist/components/Form/elements/EditableFieldInputElement.cjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldInputElement.d.ts +14 -0
- package/dist/components/Form/elements/EditableFieldInputElement.d.ts.map +1 -0
- package/dist/components/Form/elements/EditableFieldInputElement.mjs +7 -0
- package/dist/components/Form/elements/EditableFieldInputElement.mjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +7 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts +14 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts.map +1 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +7 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs.map +1 -0
- package/dist/components/Form/elements/FormElement.cjs +11 -0
- package/dist/components/Form/elements/FormElement.cjs.map +1 -0
- package/dist/components/Form/elements/FormElement.d.ts +21 -0
- package/dist/components/Form/elements/FormElement.d.ts.map +1 -0
- package/dist/components/Form/elements/FormElement.mjs +11 -0
- package/dist/components/Form/elements/FormElement.mjs.map +1 -0
- package/dist/components/Form/elements/FormElementWrapper.cjs +37 -0
- package/dist/components/Form/elements/FormElementWrapper.cjs.map +1 -0
- package/dist/components/Form/elements/FormElementWrapper.d.ts +10 -0
- package/dist/components/Form/elements/FormElementWrapper.d.ts.map +1 -0
- package/dist/components/Form/elements/FormElementWrapper.mjs +37 -0
- package/dist/components/Form/elements/FormElementWrapper.mjs.map +1 -0
- package/dist/components/Form/elements/InputElement.cjs +8 -0
- package/dist/components/Form/elements/InputElement.cjs.map +1 -0
- package/dist/components/Form/elements/InputElement.d.ts +10 -0
- package/dist/components/Form/elements/InputElement.d.ts.map +1 -0
- package/dist/components/Form/elements/InputElement.mjs +8 -0
- package/dist/components/Form/elements/InputElement.mjs.map +1 -0
- package/dist/components/Form/elements/InputPasswordElement.cjs +8 -0
- package/dist/components/Form/elements/InputPasswordElement.cjs.map +1 -0
- package/dist/components/Form/elements/InputPasswordElement.d.ts +11 -0
- package/dist/components/Form/elements/InputPasswordElement.d.ts.map +1 -0
- package/dist/components/Form/elements/InputPasswordElement.mjs +8 -0
- package/dist/components/Form/elements/InputPasswordElement.mjs.map +1 -0
- package/dist/components/Form/elements/MultiselectElement.cjs +9 -0
- package/dist/components/Form/elements/MultiselectElement.cjs.map +1 -0
- package/dist/components/Form/elements/MultiselectElement.d.ts +14 -0
- package/dist/components/Form/elements/MultiselectElement.d.ts.map +1 -0
- package/dist/components/Form/elements/MultiselectElement.mjs +9 -0
- package/dist/components/Form/elements/MultiselectElement.mjs.map +1 -0
- package/dist/components/Form/elements/SelectElement.cjs +9 -0
- package/dist/components/Form/elements/SelectElement.cjs.map +1 -0
- package/dist/components/Form/elements/SelectElement.d.ts +14 -0
- package/dist/components/Form/elements/SelectElement.d.ts.map +1 -0
- package/dist/components/Form/elements/SelectElement.mjs +9 -0
- package/dist/components/Form/elements/SelectElement.mjs.map +1 -0
- package/dist/components/Form/elements/SwitchSelectorElement.cjs +9 -0
- package/dist/components/Form/elements/SwitchSelectorElement.cjs.map +1 -0
- package/dist/components/Form/elements/SwitchSelectorElement.d.ts +14 -0
- package/dist/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -0
- package/dist/components/Form/elements/SwitchSelectorElement.mjs +9 -0
- package/dist/components/Form/elements/SwitchSelectorElement.mjs.map +1 -0
- package/dist/components/Form/elements/TextAreaElement.cjs +7 -0
- package/dist/components/Form/elements/TextAreaElement.cjs.map +1 -0
- package/dist/components/Form/elements/TextAreaElement.d.ts +10 -0
- package/dist/components/Form/elements/TextAreaElement.d.ts.map +1 -0
- package/dist/components/Form/elements/TextAreaElement.mjs +7 -0
- package/dist/components/Form/elements/TextAreaElement.mjs.map +1 -0
- package/dist/components/Form/elements/index.cjs +10 -0
- package/dist/components/Form/elements/index.cjs.map +1 -0
- package/dist/components/Form/elements/index.d.ts +7 -0
- package/dist/components/Form/elements/index.d.ts.map +1 -0
- package/dist/components/Form/elements/index.mjs +10 -0
- package/dist/components/Form/elements/index.mjs.map +1 -0
- package/dist/components/Form/index.cjs +9 -0
- package/dist/components/Form/index.cjs.map +1 -0
- package/dist/components/Form/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Form/index.mjs +9 -0
- package/dist/components/Form/index.mjs.map +1 -0
- package/dist/components/Form/layout/FormItemLayout.cjs +7 -0
- package/dist/components/Form/layout/FormItemLayout.cjs.map +1 -0
- package/dist/components/Form/layout/FormItemLayout.d.ts +11 -0
- package/dist/components/Form/layout/FormItemLayout.d.ts.map +1 -0
- package/dist/components/Form/layout/FormItemLayout.mjs +7 -0
- package/dist/components/Form/layout/FormItemLayout.mjs.map +1 -0
- package/dist/components/Form/layout/FormLabelLayout.cjs +22 -0
- package/dist/components/Form/layout/FormLabelLayout.cjs.map +1 -0
- package/dist/components/Form/layout/FormLabelLayout.d.ts +11 -0
- package/dist/components/Form/layout/FormLabelLayout.d.ts.map +1 -0
- package/dist/components/Form/layout/FormLabelLayout.mjs +22 -0
- package/dist/components/Form/layout/FormLabelLayout.mjs.map +1 -0
- package/dist/components/Form/layout/RequiredStar.cjs +6 -0
- package/dist/components/Form/layout/RequiredStar.cjs.map +1 -0
- package/dist/components/Form/layout/RequiredStar.d.ts +8 -0
- package/dist/components/Form/layout/RequiredStar.d.ts.map +1 -0
- package/dist/components/Form/layout/RequiredStar.mjs +6 -0
- package/dist/components/Form/layout/RequiredStar.mjs.map +1 -0
- package/dist/components/Form/layout/index.cjs +7 -0
- package/dist/components/Form/layout/index.cjs.map +1 -0
- package/dist/components/Form/layout/index.d.ts +3 -0
- package/dist/components/Form/layout/index.d.ts.map +1 -0
- package/dist/components/Form/layout/index.mjs +7 -0
- package/dist/components/Form/layout/index.mjs.map +1 -0
- package/dist/components/Headers/SectionScroller.cjs +29 -0
- package/dist/components/Headers/SectionScroller.cjs.map +1 -0
- package/dist/components/Headers/SectionScroller.d.ts +1 -0
- package/dist/components/Headers/SectionScroller.d.ts.map +1 -0
- package/dist/components/Headers/SectionScroller.mjs +29 -0
- package/dist/components/Headers/SectionScroller.mjs.map +1 -0
- package/dist/components/Headers/index.cjs +122 -0
- package/dist/components/Headers/index.cjs.map +1 -0
- package/dist/components/Headers/index.d.ts +11 -6
- package/dist/components/Headers/index.d.ts.map +1 -0
- package/dist/components/Headers/index.mjs +122 -0
- package/dist/components/Headers/index.mjs.map +1 -0
- package/dist/components/IDE/CodeRender.cjs +627 -0
- package/dist/components/IDE/CodeRender.cjs.map +1 -0
- package/dist/components/IDE/CodeRender.d.ts +1 -0
- package/dist/components/IDE/CodeRender.d.ts.map +1 -0
- package/dist/components/IDE/CodeRender.mjs +605 -0
- package/dist/components/IDE/CodeRender.mjs.map +1 -0
- package/dist/components/IDE/FileList.cjs +24 -0
- package/dist/components/IDE/FileList.cjs.map +1 -0
- package/dist/components/IDE/FileList.d.ts +7 -0
- package/dist/components/IDE/FileList.d.ts.map +1 -0
- package/dist/components/IDE/FileList.mjs +24 -0
- package/dist/components/IDE/FileList.mjs.map +1 -0
- package/dist/components/IDE/FileTree.cjs +105 -0
- package/dist/components/IDE/FileTree.cjs.map +1 -0
- package/dist/components/IDE/FileTree.d.ts +1 -0
- package/dist/components/IDE/FileTree.d.ts.map +1 -0
- package/dist/components/IDE/FileTree.mjs +105 -0
- package/dist/components/IDE/FileTree.mjs.map +1 -0
- package/dist/components/IDE/IDE.cjs +89 -0
- package/dist/components/IDE/IDE.cjs.map +1 -0
- package/dist/components/IDE/IDE.d.ts +1 -0
- package/dist/components/IDE/IDE.d.ts.map +1 -0
- package/dist/components/IDE/IDE.mjs +89 -0
- package/dist/components/IDE/IDE.mjs.map +1 -0
- package/dist/components/IDE/MarkDownRender.cjs +26 -0
- package/dist/components/IDE/MarkDownRender.cjs.map +1 -0
- package/dist/components/IDE/MarkDownRender.d.ts +1 -0
- package/dist/components/IDE/MarkDownRender.d.ts.map +1 -0
- package/dist/components/IDE/MarkDownRender.mjs +26 -0
- package/dist/components/IDE/MarkDownRender.mjs.map +1 -0
- package/dist/components/IDE/createFileTree.cjs +25 -0
- package/dist/components/IDE/createFileTree.cjs.map +1 -0
- package/dist/components/IDE/createFileTree.d.ts +1 -0
- package/dist/components/IDE/createFileTree.d.ts.map +1 -0
- package/dist/components/IDE/createFileTree.mjs +25 -0
- package/dist/components/IDE/createFileTree.mjs.map +1 -0
- package/dist/components/IDE/index.cjs +9 -0
- package/dist/components/IDE/index.cjs.map +1 -0
- package/dist/components/IDE/index.d.ts +2 -0
- package/dist/components/IDE/index.d.ts.map +1 -0
- package/dist/components/IDE/index.mjs +9 -0
- package/dist/components/IDE/index.mjs.map +1 -0
- package/dist/components/InformationTag/index.cjs +14 -0
- package/dist/components/InformationTag/index.cjs.map +1 -0
- package/dist/components/InformationTag/index.d.ts +6 -0
- package/dist/components/InformationTag/index.d.ts.map +1 -0
- package/dist/components/InformationTag/index.mjs +14 -0
- package/dist/components/InformationTag/index.mjs.map +1 -0
- package/dist/components/Input/Input.cjs +46 -0
- package/dist/components/Input/Input.cjs.map +1 -0
- package/dist/components/Input/Input.d.ts +12 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/Input.mjs +46 -0
- package/dist/components/Input/Input.mjs.map +1 -0
- package/dist/components/Input/InputPassword.cjs +47 -0
- package/dist/components/Input/InputPassword.cjs.map +1 -0
- package/dist/components/Input/InputPassword.d.ts +6 -0
- package/dist/components/Input/InputPassword.d.ts.map +1 -0
- package/dist/components/Input/InputPassword.mjs +47 -0
- package/dist/components/Input/InputPassword.mjs.map +1 -0
- package/dist/components/Input/index.cjs +8 -0
- package/dist/components/Input/index.cjs.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Input/index.mjs +8 -0
- package/dist/components/Input/index.mjs.map +1 -0
- package/dist/components/Label/index.cjs +16 -0
- package/dist/components/Label/index.cjs.map +1 -0
- package/dist/components/Label/index.d.ts +4 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Label/index.mjs +16 -0
- package/dist/components/Label/index.mjs.map +1 -0
- package/dist/components/Link/Link.cjs +67 -0
- package/dist/components/Link/Link.cjs.map +1 -0
- package/dist/components/Link/Link.d.ts +14 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/Link.mjs +67 -0
- package/dist/components/Link/Link.mjs.map +1 -0
- package/dist/components/Link/index.cjs +5 -0
- package/dist/components/Link/index.cjs.map +1 -0
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/Link/index.mjs +5 -0
- package/dist/components/Link/index.mjs.map +1 -0
- package/dist/components/Loader/index.cjs +20 -0
- package/dist/components/Loader/index.cjs.map +1 -0
- package/dist/components/Loader/index.d.ts +21 -0
- package/dist/components/Loader/index.d.ts.map +1 -0
- package/dist/components/Loader/index.mjs +20 -0
- package/dist/components/Loader/index.mjs.map +1 -0
- package/dist/components/Loader/spinner.cjs +75 -0
- package/dist/components/Loader/spinner.cjs.map +1 -0
- package/dist/components/Loader/spinner.d.ts +1 -0
- package/dist/components/Loader/spinner.d.ts.map +1 -0
- package/dist/components/Loader/spinner.mjs +75 -0
- package/dist/components/Loader/spinner.mjs.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +76 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +3 -2
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +76 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.cjs +5 -0
- package/dist/components/LocaleSwitcherDropDown/index.cjs.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.d.ts +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.d.ts.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.mjs +5 -0
- package/dist/components/LocaleSwitcherDropDown/index.mjs.map +1 -0
- package/dist/components/Logo/LogoCircle.cjs +28 -0
- package/dist/components/Logo/LogoCircle.cjs.map +1 -0
- package/dist/components/Logo/LogoCircle.d.ts +1 -0
- package/dist/components/Logo/LogoCircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoCircle.mjs +28 -0
- package/dist/components/Logo/LogoCircle.mjs.map +1 -0
- package/dist/components/Logo/LogoNoFrame.cjs +111 -0
- package/dist/components/Logo/LogoNoFrame.cjs.map +1 -0
- package/dist/components/Logo/LogoNoFrame.d.ts +1 -0
- package/dist/components/Logo/LogoNoFrame.d.ts.map +1 -0
- package/dist/components/Logo/LogoNoFrame.mjs +111 -0
- package/dist/components/Logo/LogoNoFrame.mjs.map +1 -0
- package/dist/components/Logo/LogoSquare.cjs +28 -0
- package/dist/components/Logo/LogoSquare.cjs.map +1 -0
- package/dist/components/Logo/LogoSquare.d.ts +1 -0
- package/dist/components/Logo/LogoSquare.d.ts.map +1 -0
- package/dist/components/Logo/LogoSquare.mjs +28 -0
- package/dist/components/Logo/LogoSquare.mjs.map +1 -0
- package/dist/components/Logo/LogoSquircle.cjs +65 -0
- package/dist/components/Logo/LogoSquircle.cjs.map +1 -0
- package/dist/components/Logo/LogoSquircle.d.ts +1 -0
- package/dist/components/Logo/LogoSquircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoSquircle.mjs +65 -0
- package/dist/components/Logo/LogoSquircle.mjs.map +1 -0
- package/dist/components/Logo/LogoTextOnly.cjs +102 -0
- package/dist/components/Logo/LogoTextOnly.cjs.map +1 -0
- package/dist/components/Logo/LogoTextOnly.d.ts +1 -0
- package/dist/components/Logo/LogoTextOnly.d.ts.map +1 -0
- package/dist/components/Logo/LogoTextOnly.mjs +102 -0
- package/dist/components/Logo/LogoTextOnly.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs +115 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.mjs +115 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs +114 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs +114 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs +68 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.mjs +68 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextCircle.cjs +202 -0
- package/dist/components/Logo/LogoWithTextCircle.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextCircle.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextCircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextCircle.mjs +202 -0
- package/dist/components/Logo/LogoWithTextCircle.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.cjs +114 -0
- package/dist/components/Logo/LogoWithTextNoFrame.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.mjs +114 -0
- package/dist/components/Logo/LogoWithTextNoFrame.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.cjs +68 -0
- package/dist/components/Logo/LogoWithTextSquircle.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.mjs +68 -0
- package/dist/components/Logo/LogoWithTextSquircle.mjs.map +1 -0
- package/dist/components/Logo/index.cjs +67 -0
- package/dist/components/Logo/index.cjs.map +1 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Logo/index.d.ts.map +1 -0
- package/dist/components/Logo/index.mjs +67 -0
- package/dist/components/Logo/index.mjs.map +1 -0
- package/dist/components/MarkDownRender/index.cjs +104 -0
- package/dist/components/MarkDownRender/index.cjs.map +1 -0
- package/dist/components/MarkDownRender/index.d.ts +1 -0
- package/dist/components/MarkDownRender/index.d.ts.map +1 -0
- package/dist/components/MarkDownRender/index.mjs +104 -0
- package/dist/components/MarkDownRender/index.mjs.map +1 -0
- package/dist/components/MaxHeightSmoother/index.cjs +42 -0
- package/dist/components/MaxHeightSmoother/index.cjs.map +1 -0
- package/dist/components/MaxHeightSmoother/index.d.ts +1 -0
- package/dist/components/MaxHeightSmoother/index.d.ts.map +1 -0
- package/dist/components/MaxHeightSmoother/index.mjs +42 -0
- package/dist/components/MaxHeightSmoother/index.mjs.map +1 -0
- package/dist/components/MaxWidthSmoother/index.cjs +36 -0
- package/dist/components/MaxWidthSmoother/index.cjs.map +1 -0
- package/dist/components/MaxWidthSmoother/index.d.ts +4 -4
- package/dist/components/MaxWidthSmoother/index.d.ts.map +1 -0
- package/dist/components/MaxWidthSmoother/index.mjs +36 -0
- package/dist/components/MaxWidthSmoother/index.mjs.map +1 -0
- package/dist/components/Modal/Modal.cjs +119 -0
- package/dist/components/Modal/Modal.cjs.map +1 -0
- package/dist/components/Modal/Modal.d.ts +24 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.mjs +119 -0
- package/dist/components/Modal/Modal.mjs.map +1 -0
- package/dist/components/Modal/index.cjs +5 -0
- package/dist/components/Modal/index.cjs.map +1 -0
- package/dist/components/Modal/index.d.ts +2 -9
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/index.mjs +5 -0
- package/dist/components/Modal/index.mjs.map +1 -0
- package/dist/components/Navbar/Burger.cjs +60 -0
- package/dist/components/Navbar/Burger.cjs.map +1 -0
- package/dist/components/Navbar/Burger.d.ts +2 -1
- package/dist/components/Navbar/Burger.d.ts.map +1 -0
- package/dist/components/Navbar/Burger.mjs +60 -0
- package/dist/components/Navbar/Burger.mjs.map +1 -0
- package/dist/components/Navbar/DesktopNavbar.cjs +44 -0
- package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -0
- package/dist/components/Navbar/DesktopNavbar.d.ts +1 -0
- package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -0
- package/dist/components/Navbar/DesktopNavbar.mjs +44 -0
- package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -0
- package/dist/components/Navbar/MobileNavbar.cjs +170 -0
- package/dist/components/Navbar/MobileNavbar.cjs.map +1 -0
- package/dist/components/Navbar/MobileNavbar.d.ts +2 -0
- package/dist/components/Navbar/MobileNavbar.d.ts.map +1 -0
- package/dist/components/Navbar/MobileNavbar.mjs +170 -0
- package/dist/components/Navbar/MobileNavbar.mjs.map +1 -0
- package/dist/components/Navbar/index.cjs +53 -0
- package/dist/components/Navbar/index.cjs.map +1 -0
- package/dist/components/Navbar/index.d.ts +2 -0
- package/dist/components/Navbar/index.d.ts.map +1 -0
- package/dist/components/Navbar/index.mjs +53 -0
- package/dist/components/Navbar/index.mjs.map +1 -0
- package/dist/components/Navbar/useNavigation.cjs +57 -0
- package/dist/components/Navbar/useNavigation.cjs.map +1 -0
- package/dist/components/Navbar/useNavigation.d.ts +1 -0
- package/dist/components/Navbar/useNavigation.d.ts.map +1 -0
- package/dist/components/Navbar/useNavigation.mjs +57 -0
- package/dist/components/Navbar/useNavigation.mjs.map +1 -0
- package/dist/components/Pattern/DotPattern.cjs +47 -0
- package/dist/components/Pattern/DotPattern.cjs.map +1 -0
- package/dist/components/Pattern/DotPattern.d.ts +14 -0
- package/dist/components/Pattern/DotPattern.d.ts.map +1 -0
- package/dist/components/Pattern/DotPattern.mjs +47 -0
- package/dist/components/Pattern/DotPattern.mjs.map +1 -0
- package/dist/components/Pattern/GridPattern.cjs +63 -0
- package/dist/components/Pattern/GridPattern.cjs.map +1 -0
- package/dist/components/Pattern/GridPattern.d.ts +13 -0
- package/dist/components/Pattern/GridPattern.d.ts.map +1 -0
- package/dist/components/Pattern/GridPattern.mjs +63 -0
- package/dist/components/Pattern/GridPattern.mjs.map +1 -0
- package/dist/components/Pattern/SpotLight.cjs +73 -0
- package/dist/components/Pattern/SpotLight.cjs.map +1 -0
- package/dist/components/Pattern/SpotLight.d.ts +13 -0
- package/dist/components/Pattern/SpotLight.d.ts.map +1 -0
- package/dist/components/Pattern/SpotLight.mjs +73 -0
- package/dist/components/Pattern/SpotLight.mjs.map +1 -0
- package/dist/components/Pattern/index.cjs +9 -0
- package/dist/components/Pattern/index.cjs.map +1 -0
- package/dist/components/Pattern/index.d.ts +4 -0
- package/dist/components/Pattern/index.d.ts.map +1 -0
- package/dist/components/Pattern/index.mjs +9 -0
- package/dist/components/Pattern/index.mjs.map +1 -0
- package/dist/components/Popover/index.cjs +25 -0
- package/dist/components/Popover/index.cjs.map +1 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Popover/index.mjs +25 -0
- package/dist/components/Popover/index.mjs.map +1 -0
- package/dist/components/PressableSpan/PressableSpan.cjs +90 -0
- package/dist/components/PressableSpan/PressableSpan.cjs.map +1 -0
- package/dist/components/PressableSpan/PressableSpan.d.ts +11 -0
- package/dist/components/PressableSpan/PressableSpan.d.ts.map +1 -0
- package/dist/components/PressableSpan/PressableSpan.mjs +90 -0
- package/dist/components/PressableSpan/PressableSpan.mjs.map +1 -0
- package/dist/components/PressableSpan/index.cjs +5 -0
- package/dist/components/PressableSpan/index.cjs.map +1 -0
- package/dist/components/PressableSpan/index.d.ts +2 -0
- package/dist/components/PressableSpan/index.d.ts.map +1 -0
- package/dist/components/PressableSpan/index.mjs +5 -0
- package/dist/components/PressableSpan/index.mjs.map +1 -0
- package/dist/components/ProfileDropDown/index.cjs +25 -0
- package/dist/components/ProfileDropDown/index.cjs.map +1 -0
- package/dist/components/ProfileDropDown/index.d.ts +1 -0
- package/dist/components/ProfileDropDown/index.d.ts.map +1 -0
- package/dist/components/ProfileDropDown/index.mjs +25 -0
- package/dist/components/ProfileDropDown/index.mjs.map +1 -0
- package/dist/components/RightDrawer/RightDrawer.cjs +89 -0
- package/dist/components/RightDrawer/RightDrawer.cjs.map +1 -0
- package/dist/components/RightDrawer/RightDrawer.d.ts +1 -0
- package/dist/components/RightDrawer/RightDrawer.d.ts.map +1 -0
- package/dist/components/RightDrawer/RightDrawer.mjs +89 -0
- package/dist/components/RightDrawer/RightDrawer.mjs.map +1 -0
- package/dist/components/RightDrawer/index.cjs +8 -0
- package/dist/components/RightDrawer/index.cjs.map +1 -0
- package/dist/components/RightDrawer/index.d.ts +1 -0
- package/dist/components/RightDrawer/index.d.ts.map +1 -0
- package/dist/components/RightDrawer/index.mjs +8 -0
- package/dist/components/RightDrawer/index.mjs.map +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.cjs +18 -0
- package/dist/components/RightDrawer/useRightDrawerStore.cjs.map +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.d.ts +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.d.ts.map +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.mjs +18 -0
- package/dist/components/RightDrawer/useRightDrawerStore.mjs.map +1 -0
- package/dist/components/Select/Multiselect.cjs +334 -0
- package/dist/components/Select/Multiselect.cjs.map +1 -0
- package/dist/components/Select/Multiselect.d.ts +97 -0
- package/dist/components/Select/Multiselect.d.ts.map +1 -0
- package/dist/components/Select/Multiselect.mjs +334 -0
- package/dist/components/Select/Multiselect.mjs.map +1 -0
- package/dist/components/Select/Select.cjs +152 -0
- package/dist/components/Select/Select.cjs.map +1 -0
- package/dist/components/Select/Select.d.ts +42 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.mjs +135 -0
- package/dist/components/Select/Select.mjs.map +1 -0
- package/dist/components/Select/index.cjs +10 -0
- package/dist/components/Select/index.cjs.map +1 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select/index.mjs +10 -0
- package/dist/components/Select/index.mjs.map +1 -0
- package/dist/components/SwitchSelector/index.cjs +143 -0
- package/dist/components/SwitchSelector/index.cjs.map +1 -0
- package/dist/components/SwitchSelector/index.d.ts +41 -0
- package/dist/components/SwitchSelector/index.d.ts.map +1 -0
- package/dist/components/SwitchSelector/index.mjs +143 -0
- package/dist/components/SwitchSelector/index.mjs.map +1 -0
- package/dist/components/TabSelector/TabSelector.cjs +108 -0
- package/dist/components/TabSelector/TabSelector.cjs.map +1 -0
- package/dist/components/TabSelector/TabSelector.d.ts +35 -0
- package/dist/components/TabSelector/TabSelector.d.ts.map +1 -0
- package/dist/components/TabSelector/TabSelector.mjs +108 -0
- package/dist/components/TabSelector/TabSelector.mjs.map +1 -0
- package/dist/components/TabSelector/index.cjs +5 -0
- package/dist/components/TabSelector/index.cjs.map +1 -0
- package/dist/components/TabSelector/index.d.ts +2 -0
- package/dist/components/TabSelector/index.d.ts.map +1 -0
- package/dist/components/TabSelector/index.mjs +5 -0
- package/dist/components/TabSelector/index.mjs.map +1 -0
- package/dist/components/TextArea/AutoSizeTextArea.cjs +54 -0
- package/dist/components/TextArea/AutoSizeTextArea.cjs.map +1 -0
- package/dist/components/TextArea/AutoSizeTextArea.d.ts +8 -0
- package/dist/components/TextArea/AutoSizeTextArea.d.ts.map +1 -0
- package/dist/components/TextArea/AutoSizeTextArea.mjs +54 -0
- package/dist/components/TextArea/AutoSizeTextArea.mjs.map +1 -0
- package/dist/components/TextArea/TextArea.cjs +27 -0
- package/dist/components/TextArea/TextArea.cjs.map +1 -0
- package/dist/components/TextArea/TextArea.d.ts +9 -0
- package/dist/components/TextArea/TextArea.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.mjs +27 -0
- package/dist/components/TextArea/TextArea.mjs.map +1 -0
- package/dist/components/TextArea/index.cjs +7 -0
- package/dist/components/TextArea/index.cjs.map +1 -0
- package/dist/components/TextArea/index.d.ts +3 -0
- package/dist/components/TextArea/index.d.ts.map +1 -0
- package/dist/components/TextArea/index.mjs +7 -0
- package/dist/components/TextArea/index.mjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs +89 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +89 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs +84 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +84 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.cjs +9 -0
- package/dist/components/ThemeSwitcherDropDown/index.cjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.d.ts +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.d.ts.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.mjs +9 -0
- package/dist/components/ThemeSwitcherDropDown/index.mjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.cjs +10 -0
- package/dist/components/ThemeSwitcherDropDown/types.cjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.d.ts +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.d.ts.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.mjs +10 -0
- package/dist/components/ThemeSwitcherDropDown/types.mjs.map +1 -0
- package/dist/components/Toaster/Toast.cjs +117 -0
- package/dist/components/Toaster/Toast.cjs.map +1 -0
- package/dist/components/Toaster/Toast.d.ts +16 -0
- package/dist/components/Toaster/Toast.d.ts.map +1 -0
- package/dist/components/Toaster/Toast.mjs +100 -0
- package/dist/components/Toaster/Toast.mjs.map +1 -0
- package/dist/components/Toaster/Toaster.cjs +22 -0
- package/dist/components/Toaster/Toaster.cjs.map +1 -0
- package/dist/components/Toaster/Toaster.d.ts +2 -0
- package/dist/components/Toaster/Toaster.d.ts.map +1 -0
- package/dist/components/Toaster/Toaster.mjs +22 -0
- package/dist/components/Toaster/Toaster.mjs.map +1 -0
- package/dist/components/Toaster/index.cjs +17 -0
- package/dist/components/Toaster/index.cjs.map +1 -0
- package/dist/components/Toaster/index.d.ts +4 -0
- package/dist/components/Toaster/index.d.ts.map +1 -0
- package/dist/components/Toaster/index.mjs +17 -0
- package/dist/components/Toaster/index.mjs.map +1 -0
- package/dist/components/Toaster/useToast.cjs +124 -0
- package/dist/components/Toaster/useToast.cjs.map +1 -0
- package/dist/components/Toaster/useToast.d.ts +49 -0
- package/dist/components/Toaster/useToast.d.ts.map +1 -0
- package/dist/components/Toaster/useToast.mjs +124 -0
- package/dist/components/Toaster/useToast.mjs.map +1 -0
- package/dist/components/WithResizer/index.cjs +91 -0
- package/dist/components/WithResizer/index.cjs.map +1 -0
- package/dist/components/WithResizer/index.d.ts +1 -0
- package/dist/components/WithResizer/index.d.ts.map +1 -0
- package/dist/components/WithResizer/index.mjs +91 -0
- package/dist/components/WithResizer/index.mjs.map +1 -0
- package/dist/components/index.cjs +172 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.ts +21 -2
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.mjs +172 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/hooks/index.cjs +58 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.mjs +58 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/hooks/intlayerAPIHooks.cjs +244 -0
- package/dist/hooks/intlayerAPIHooks.cjs.map +1 -0
- package/dist/hooks/intlayerAPIHooks.d.ts +56 -0
- package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -0
- package/dist/hooks/intlayerAPIHooks.mjs +244 -0
- package/dist/hooks/intlayerAPIHooks.mjs.map +1 -0
- package/dist/hooks/useAsync/index.cjs +5 -0
- package/dist/hooks/useAsync/index.cjs.map +1 -0
- package/dist/hooks/useAsync/index.d.ts +2 -0
- package/dist/hooks/useAsync/index.d.ts.map +1 -0
- package/dist/hooks/useAsync/index.mjs +5 -0
- package/dist/hooks/useAsync/index.mjs.map +1 -0
- package/dist/hooks/useAsync/useAsync.cjs +275 -0
- package/dist/hooks/useAsync/useAsync.cjs.map +1 -0
- package/dist/hooks/useAsync/useAsync.d.ts +93 -0
- package/dist/hooks/useAsync/useAsync.d.ts.map +1 -0
- package/dist/hooks/useAsync/useAsync.mjs +275 -0
- package/dist/hooks/useAsync/useAsync.mjs.map +1 -0
- package/dist/hooks/useAsync/useAsyncStateStore.cjs +168 -0
- package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -0
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts +34 -0
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -0
- package/dist/hooks/useAsync/useAsyncStateStore.mjs +168 -0
- package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -0
- package/dist/hooks/useAsync/useAsyncWrapper.cjs +10 -0
- package/dist/hooks/useAsync/useAsyncWrapper.cjs.map +1 -0
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts +38 -0
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts.map +1 -0
- package/dist/hooks/useAsync/useAsyncWrapper.mjs +10 -0
- package/dist/hooks/useAsync/useAsyncWrapper.mjs.map +1 -0
- package/dist/hooks/useDevice.cjs +61 -0
- package/dist/hooks/useDevice.cjs.map +1 -0
- package/dist/hooks/useDevice.d.ts +1 -0
- package/dist/hooks/useDevice.d.ts.map +1 -0
- package/dist/hooks/useDevice.mjs +61 -0
- package/dist/hooks/useDevice.mjs.map +1 -0
- package/dist/hooks/useGetAllDictionaries.cjs +32 -0
- package/dist/hooks/useGetAllDictionaries.cjs.map +1 -0
- package/dist/hooks/useGetAllDictionaries.d.ts +9 -0
- package/dist/hooks/useGetAllDictionaries.d.ts.map +1 -0
- package/dist/hooks/useGetAllDictionaries.mjs +32 -0
- package/dist/hooks/useGetAllDictionaries.mjs.map +1 -0
- package/dist/hooks/useGetElementOrWindow.cjs +13 -0
- package/dist/hooks/useGetElementOrWindow.cjs.map +1 -0
- package/dist/hooks/useGetElementOrWindow.d.ts +1 -0
- package/dist/hooks/useGetElementOrWindow.d.ts.map +1 -0
- package/dist/hooks/useGetElementOrWindow.mjs +13 -0
- package/dist/hooks/useGetElementOrWindow.mjs.map +1 -0
- package/dist/hooks/useIntlayerAPI.cjs +27 -0
- package/dist/hooks/useIntlayerAPI.cjs.map +1 -0
- package/dist/hooks/useIntlayerAPI.d.ts +59 -0
- package/dist/hooks/useIntlayerAPI.d.ts.map +1 -0
- package/dist/hooks/useIntlayerAPI.mjs +27 -0
- package/dist/hooks/useIntlayerAPI.mjs.map +1 -0
- package/dist/hooks/useIsMounted.cjs +13 -0
- package/dist/hooks/useIsMounted.cjs.map +1 -0
- package/dist/hooks/useIsMounted.d.ts +1 -0
- package/dist/hooks/useIsMounted.d.ts.map +1 -0
- package/dist/hooks/useIsMounted.mjs +13 -0
- package/dist/hooks/useIsMounted.mjs.map +1 -0
- package/dist/hooks/useItemSelector.cjs +89 -0
- package/dist/hooks/useItemSelector.cjs.map +1 -0
- package/dist/hooks/useItemSelector.d.ts +11 -0
- package/dist/hooks/useItemSelector.d.ts.map +1 -0
- package/dist/hooks/useItemSelector.mjs +89 -0
- package/dist/hooks/useItemSelector.mjs.map +1 -0
- package/dist/hooks/useScrollBlockage/index.cjs +27 -0
- package/dist/hooks/useScrollBlockage/index.cjs.map +1 -0
- package/dist/hooks/useScrollBlockage/index.d.ts +1 -0
- package/dist/hooks/useScrollBlockage/index.d.ts.map +1 -0
- package/dist/hooks/useScrollBlockage/index.mjs +27 -0
- package/dist/hooks/useScrollBlockage/index.mjs.map +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs +63 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.map +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts.map +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.mjs +63 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.mjs.map +1 -0
- package/dist/hooks/useScrollDetection.cjs +71 -0
- package/dist/hooks/useScrollDetection.cjs.map +1 -0
- package/dist/hooks/useScrollDetection.d.ts +1 -0
- package/dist/hooks/useScrollDetection.d.ts.map +1 -0
- package/dist/hooks/useScrollDetection.mjs +71 -0
- package/dist/hooks/useScrollDetection.mjs.map +1 -0
- package/dist/index-BZQDMSxb.cjs +200 -0
- package/dist/index-BZQDMSxb.cjs.map +1 -0
- package/dist/index-pLq_417z.js +201 -0
- package/dist/index-pLq_417z.js.map +1 -0
- package/dist/jsx-runtime-BgSF1HG2.js +939 -0
- package/dist/jsx-runtime-BgSF1HG2.js.map +1 -0
- package/dist/jsx-runtime-DvCoRj5u.cjs +938 -0
- package/dist/jsx-runtime-DvCoRj5u.cjs.map +1 -0
- package/dist/libs/index.cjs +6 -0
- package/dist/libs/index.cjs.map +1 -0
- package/dist/libs/index.d.ts +2 -0
- package/dist/libs/index.d.ts.map +1 -0
- package/dist/libs/index.mjs +6 -0
- package/dist/libs/index.mjs.map +1 -0
- package/dist/libs/intlayer-api/auth.cjs +129 -0
- package/dist/libs/intlayer-api/auth.cjs.map +1 -0
- package/dist/libs/intlayer-api/auth.d.ts +34 -0
- package/dist/libs/intlayer-api/auth.d.ts.map +1 -0
- package/dist/libs/intlayer-api/auth.mjs +129 -0
- package/dist/libs/intlayer-api/auth.mjs.map +1 -0
- package/dist/libs/intlayer-api/dictionary.cjs +78 -0
- package/dist/libs/intlayer-api/dictionary.cjs.map +1 -0
- package/dist/libs/intlayer-api/dictionary.d.ts +22 -0
- package/dist/libs/intlayer-api/dictionary.d.ts.map +1 -0
- package/dist/libs/intlayer-api/dictionary.mjs +78 -0
- package/dist/libs/intlayer-api/dictionary.mjs.map +1 -0
- package/dist/libs/intlayer-api/fetcher.cjs +72 -0
- package/dist/libs/intlayer-api/fetcher.cjs.map +1 -0
- package/dist/libs/intlayer-api/fetcher.d.ts +70 -0
- package/dist/libs/intlayer-api/fetcher.d.ts.map +1 -0
- package/dist/libs/intlayer-api/fetcher.mjs +72 -0
- package/dist/libs/intlayer-api/fetcher.mjs.map +1 -0
- package/dist/libs/intlayer-api/index.cjs +18 -0
- package/dist/libs/intlayer-api/index.cjs.map +1 -0
- package/dist/libs/intlayer-api/index.d.ts +119 -0
- package/dist/libs/intlayer-api/index.d.ts.map +1 -0
- package/dist/libs/intlayer-api/index.mjs +18 -0
- package/dist/libs/intlayer-api/index.mjs.map +1 -0
- package/dist/libs/intlayer-api/organization.cjs +95 -0
- package/dist/libs/intlayer-api/organization.cjs.map +1 -0
- package/dist/libs/intlayer-api/organization.d.ts +26 -0
- package/dist/libs/intlayer-api/organization.d.ts.map +1 -0
- package/dist/libs/intlayer-api/organization.mjs +95 -0
- package/dist/libs/intlayer-api/organization.mjs.map +1 -0
- package/dist/libs/intlayer-api/project.cjs +110 -0
- package/dist/libs/intlayer-api/project.cjs.map +1 -0
- package/dist/libs/intlayer-api/project.d.ts +28 -0
- package/dist/libs/intlayer-api/project.d.ts.map +1 -0
- package/dist/libs/intlayer-api/project.mjs +110 -0
- package/dist/libs/intlayer-api/project.mjs.map +1 -0
- package/dist/libs/intlayer-api/user.cjs +70 -0
- package/dist/libs/intlayer-api/user.cjs.map +1 -0
- package/dist/libs/intlayer-api/user.d.ts +22 -0
- package/dist/libs/intlayer-api/user.d.ts.map +1 -0
- package/dist/libs/intlayer-api/user.mjs +70 -0
- package/dist/libs/intlayer-api/user.mjs.map +1 -0
- package/dist/tailwind.css +1 -0
- package/dist/utils/camelCase.cjs +15 -0
- package/dist/utils/camelCase.cjs.map +1 -0
- package/dist/utils/camelCase.d.ts +3 -0
- package/dist/utils/camelCase.d.ts.map +1 -0
- package/dist/utils/camelCase.mjs +15 -0
- package/dist/utils/camelCase.mjs.map +1 -0
- package/dist/utils/capitalize.cjs +10 -0
- package/dist/utils/capitalize.cjs.map +1 -0
- package/dist/utils/capitalize.d.ts +1 -0
- package/dist/utils/capitalize.d.ts.map +1 -0
- package/dist/utils/capitalize.mjs +10 -0
- package/dist/utils/capitalize.mjs.map +1 -0
- package/dist/utils/cn.cjs +7 -0
- package/dist/utils/cn.cjs.map +1 -0
- package/dist/utils/cn.d.ts +1 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.mjs +7 -0
- package/dist/utils/cn.mjs.map +1 -0
- package/dist/utils/dictionary.cjs +122 -0
- package/dist/utils/dictionary.cjs.map +1 -0
- package/dist/utils/dictionary.d.ts +7 -0
- package/dist/utils/dictionary.d.ts.map +1 -0
- package/dist/utils/dictionary.mjs +122 -0
- package/dist/utils/dictionary.mjs.map +1 -0
- package/dist/utils/isElementAtTopAndNotCovered.cjs +17 -0
- package/dist/utils/isElementAtTopAndNotCovered.cjs.map +1 -0
- package/dist/utils/isElementAtTopAndNotCovered.d.ts +2 -0
- package/dist/utils/isElementAtTopAndNotCovered.d.ts.map +1 -0
- package/dist/utils/isElementAtTopAndNotCovered.mjs +17 -0
- package/dist/utils/isElementAtTopAndNotCovered.mjs.map +1 -0
- package/dist/utils/object.cjs +22 -0
- package/dist/utils/object.cjs.map +1 -0
- package/dist/utils/object.d.ts +18 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/object.mjs +22 -0
- package/dist/utils/object.mjs.map +1 -0
- package/dist/zod-BV4nCGJE.js +47 -0
- package/dist/zod-BV4nCGJE.js.map +1 -0
- package/dist/zod-DSrtTSD_.cjs +46 -0
- package/dist/zod-DSrtTSD_.cjs.map +1 -0
- package/package.json +77 -35
- package/dist/MarkDownRender-7oiSvDiM.cjs +0 -14
- package/dist/MarkDownRender-JEDIcxQT.js +0 -316
- package/dist/StringWrapper-CW70GPXq.js +0 -28
- package/dist/StringWrapper-DUDqtkwz.cjs +0 -1
- package/dist/check-BLEiR8OY.js +0 -12
- package/dist/check-rhNgx2ZQ.cjs +0 -6
- package/dist/chevron-right-D3LPoNy5.js +0 -14
- package/dist/chevron-right-bKrhRS9t.cjs +0 -6
- package/dist/components/Accordion/Accordion.cjs.js +0 -8
- package/dist/components/Accordion/Accordion.es.js +0 -48
- package/dist/components/Accordion/index.cjs.js +0 -1
- package/dist/components/Accordion/index.es.js +0 -5
- package/dist/components/Avatar/index.cjs.js +0 -6
- package/dist/components/Avatar/index.es.js +0 -71
- package/dist/components/Button/index.cjs.js +0 -6
- package/dist/components/Button/index.es.js +0 -306
- package/dist/components/Container/index.cjs.js +0 -7
- package/dist/components/Container/index.es.js +0 -152
- package/dist/components/ContentEditor/ContentEditor.cjs.js +0 -5
- package/dist/components/ContentEditor/ContentEditor.es.js +0 -75
- package/dist/components/ContentEditor/index.cjs.js +0 -1
- package/dist/components/ContentEditor/index.es.js +0 -5
- package/dist/components/ContentSelector/ContentSelector.cjs.js +0 -1
- package/dist/components/ContentSelector/ContentSelector.es.js +0 -14
- package/dist/components/ContentSelector/index.cjs.js +0 -1
- package/dist/components/ContentSelector/index.es.js +0 -5
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.js +0 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.es.js +0 -25
- package/dist/components/DictionaryEditor/ItemLayout.cjs.js +0 -1
- package/dist/components/DictionaryEditor/ItemLayout.es.js +0 -81
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.es.js +0 -10
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.es.js +0 -9
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.es.js +0 -9
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.es.js +0 -9
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.es.js +0 -7
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/index.es.js +0 -11
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.js +0 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.es.js +0 -40
- package/dist/components/DictionaryEditor/index.cjs.js +0 -1
- package/dist/components/DictionaryEditor/index.es.js +0 -5
- package/dist/components/DropDown/index.cjs.js +0 -5
- package/dist/components/DropDown/index.es.js +0 -50
- package/dist/components/DropDown/types.cjs.js +0 -1
- package/dist/components/DropDown/types.es.js +0 -1
- package/dist/components/Footer/index.cjs.js +0 -1
- package/dist/components/Footer/index.es.js +0 -71
- package/dist/components/Headers/SectionScroller.cjs.js +0 -1
- package/dist/components/Headers/SectionScroller.es.js +0 -20
- package/dist/components/Headers/index.cjs.js +0 -1
- package/dist/components/Headers/index.es.js +0 -103
- package/dist/components/IDE/CodeRender.cjs.js +0 -26
- package/dist/components/IDE/CodeRender.es.js +0 -22872
- package/dist/components/IDE/FileTree.cjs.js +0 -1
- package/dist/components/IDE/FileTree.es.js +0 -112
- package/dist/components/IDE/IDE.cjs.js +0 -1
- package/dist/components/IDE/IDE.es.js +0 -187
- package/dist/components/IDE/MarkDownRender.cjs.js +0 -1
- package/dist/components/IDE/MarkDownRender.es.js +0 -7
- package/dist/components/IDE/createFileTree.cjs.js +0 -1
- package/dist/components/IDE/createFileTree.es.js +0 -25
- package/dist/components/IDE/index.cjs.js +0 -1
- package/dist/components/IDE/index.es.js +0 -7
- package/dist/components/Loader/index.cjs.js +0 -1
- package/dist/components/Loader/index.es.js +0 -23
- package/dist/components/Loader/spinner.cjs.js +0 -1
- package/dist/components/Loader/spinner.es.js +0 -22
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.js +0 -6
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.es.js +0 -571
- package/dist/components/LocaleSwitcherDropDown/index.cjs.js +0 -1
- package/dist/components/LocaleSwitcherDropDown/index.es.js +0 -5
- package/dist/components/Logo/LogoCircle.cjs.js +0 -1
- package/dist/components/Logo/LogoCircle.es.js +0 -12
- package/dist/components/Logo/LogoNoFrame.cjs.js +0 -1
- package/dist/components/Logo/LogoNoFrame.es.js +0 -28
- package/dist/components/Logo/LogoSquare.cjs.js +0 -1
- package/dist/components/Logo/LogoSquare.es.js +0 -12
- package/dist/components/Logo/LogoSquircle.cjs.js +0 -1
- package/dist/components/Logo/LogoSquircle.es.js +0 -17
- package/dist/components/Logo/LogoTextOnly.cjs.js +0 -1
- package/dist/components/Logo/LogoTextOnly.es.js +0 -28
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextBelowCircle.es.js +0 -30
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextBelowNoFrame.es.js +0 -28
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextBelowSquircle.es.js +0 -17
- package/dist/components/Logo/LogoWithTextCircle.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextCircle.es.js +0 -51
- package/dist/components/Logo/LogoWithTextNoFrame.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextNoFrame.es.js +0 -28
- package/dist/components/Logo/LogoWithTextSquircle.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextSquircle.es.js +0 -17
- package/dist/components/Logo/index.cjs.js +0 -1
- package/dist/components/Logo/index.es.js +0 -65
- package/dist/components/MarkDownRender/index.cjs.js +0 -1
- package/dist/components/MarkDownRender/index.es.js +0 -106
- package/dist/components/MaxHeightSmoother/index.cjs.js +0 -6
- package/dist/components/MaxHeightSmoother/index.es.js +0 -52
- package/dist/components/MaxWidthSmoother/index.cjs.js +0 -6
- package/dist/components/MaxWidthSmoother/index.es.js +0 -39
- package/dist/components/Modal/index.cjs.js +0 -1
- package/dist/components/Modal/index.es.js +0 -64
- package/dist/components/Navbar/Burger.cjs.js +0 -1
- package/dist/components/Navbar/Burger.es.js +0 -84
- package/dist/components/Navbar/DesktopNavbar.cjs.js +0 -7
- package/dist/components/Navbar/DesktopNavbar.es.js +0 -76
- package/dist/components/Navbar/MobileNavbar.cjs.js +0 -9
- package/dist/components/Navbar/MobileNavbar.es.js +0 -199
- package/dist/components/Navbar/index.cjs.js +0 -1
- package/dist/components/Navbar/index.es.js +0 -25
- package/dist/components/Navbar/useNavigation.cjs.js +0 -1
- package/dist/components/Navbar/useNavigation.es.js +0 -39
- package/dist/components/Popover/index.cjs.js +0 -1
- package/dist/components/Popover/index.es.js +0 -52
- package/dist/components/PressableDiv/PressableDiv.cjs.js +0 -1
- package/dist/components/PressableDiv/PressableDiv.d.ts +0 -10
- package/dist/components/PressableDiv/PressableDiv.es.js +0 -63
- package/dist/components/PressableDiv/index.cjs.js +0 -1
- package/dist/components/PressableDiv/index.d.ts +0 -1
- package/dist/components/PressableDiv/index.es.js +0 -5
- package/dist/components/ProfileDropDown/index.cjs.js +0 -6
- package/dist/components/ProfileDropDown/index.es.js +0 -37
- package/dist/components/RedirectionButton/RedirectionButton.cjs.js +0 -1
- package/dist/components/RedirectionButton/RedirectionButton.d.ts +0 -8
- package/dist/components/RedirectionButton/RedirectionButton.es.js +0 -34
- package/dist/components/RedirectionButton/index.cjs.js +0 -1
- package/dist/components/RedirectionButton/index.d.ts +0 -1
- package/dist/components/RedirectionButton/index.es.js +0 -5
- package/dist/components/RightDrawer/RightDrawer.cjs.js +0 -8
- package/dist/components/RightDrawer/RightDrawer.es.js +0 -124
- package/dist/components/RightDrawer/index.cjs.js +0 -1
- package/dist/components/RightDrawer/index.es.js +0 -8
- package/dist/components/RightDrawer/useRightDrawerStore.cjs.js +0 -1
- package/dist/components/RightDrawer/useRightDrawerStore.es.js +0 -15
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.js +0 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.es.js +0 -69
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.js +0 -1
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.es.js +0 -65
- package/dist/components/ThemeSwitcherDropDown/index.cjs.js +0 -1
- package/dist/components/ThemeSwitcherDropDown/index.es.js +0 -9
- package/dist/components/ThemeSwitcherDropDown/types.cjs.js +0 -1
- package/dist/components/ThemeSwitcherDropDown/types.es.js +0 -5
- package/dist/components/WithResizer/index.cjs.js +0 -1
- package/dist/components/WithResizer/index.es.js +0 -82
- package/dist/components/index.cjs.js +0 -1
- package/dist/components/index.es.js +0 -65
- package/dist/createLucideIcon-DlZEiEGq.js +0 -80
- package/dist/createLucideIcon-ZOnO-fn6.cjs +0 -21
- package/dist/hooks/index.cjs.js +0 -1
- package/dist/hooks/index.es.js +0 -13
- package/dist/hooks/useDevice.cjs.js +0 -1
- package/dist/hooks/useDevice.es.js +0 -48
- package/dist/hooks/useGetElementOrWindow.cjs.js +0 -1
- package/dist/hooks/useGetElementOrWindow.es.js +0 -11
- package/dist/hooks/useIsMounted.cjs.js +0 -1
- package/dist/hooks/useIsMounted.es.js +0 -11
- package/dist/hooks/useScrollBlockage/index.cjs.js +0 -1
- package/dist/hooks/useScrollBlockage/index.es.js +0 -24
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.js +0 -1
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.es.js +0 -40
- package/dist/hooks/useScrollDetection.cjs.js +0 -1
- package/dist/hooks/useScrollDetection.es.js +0 -41
- package/dist/index-CJEkIqT6.cjs +0 -1
- package/dist/index-DBWNacRP.js +0 -133
- package/dist/intlayer-editor/src/client/renderContentEditor.d.ts +0 -13
- package/dist/jsx-runtime-D6agescH.cjs +0 -30
- package/dist/jsx-runtime-Tw_Kw2GZ.js +0 -638
- package/dist/localeList-CaRF-907.js +0 -300
- package/dist/localeList-DlUgKn8J.cjs +0 -1
- package/dist/motion-minimal-BFpJTMRN.js +0 -788
- package/dist/motion-minimal-CwdK8lup.cjs +0 -1
- package/dist/styled-components.browser.esm-D6kkzXl4.js +0 -1085
- package/dist/styled-components.browser.esm-GqWwDlfY.cjs +0 -58
- package/dist/sun-BQYZHcpc.cjs +0 -16
- package/dist/sun-BrKC5Qwg.js +0 -49
- package/dist/utils/capitalize.cjs.js +0 -1
- package/dist/utils/capitalize.es.js +0 -5
- package/dist/utils/cn.cjs.js +0 -1
- package/dist/utils/cn.es.js +0 -2338
- package/dist/x-BKwnSvvj.js +0 -15
- package/dist/x-DIXoN4xe.cjs +0 -6
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
type UseAsyncResultBase<T extends (...args: any[]) => Promise<any>> = {
|
|
2
|
+
isFetched: boolean;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
isInvalidated: boolean;
|
|
5
|
+
isSuccess: boolean;
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
error: string | null;
|
|
8
|
+
data: Awaited<ReturnType<T>> | null;
|
|
9
|
+
retryCount: number;
|
|
10
|
+
revalidate: T;
|
|
11
|
+
setData: (data: Awaited<ReturnType<T> | null>) => void;
|
|
12
|
+
};
|
|
13
|
+
export type UseAsyncOptions<T extends (...args: any[]) => Promise<any>> = {
|
|
14
|
+
retryLimit?: number;
|
|
15
|
+
retryTime?: number;
|
|
16
|
+
cache?: boolean;
|
|
17
|
+
store?: boolean;
|
|
18
|
+
enable?: boolean;
|
|
19
|
+
autoFetch?: boolean;
|
|
20
|
+
revalidation?: boolean;
|
|
21
|
+
revalidateTime?: number;
|
|
22
|
+
isInvalidated?: boolean;
|
|
23
|
+
invalidateQueries?: string[];
|
|
24
|
+
updateQueries?: string[];
|
|
25
|
+
onSuccess?: (data: Awaited<ReturnType<T>>) => void;
|
|
26
|
+
onError?: (error: string) => void;
|
|
27
|
+
args?: Parameters<T>;
|
|
28
|
+
};
|
|
29
|
+
export type UseAsyncResult<U extends string, T extends (...args: any[]) => Promise<any>> = UseAsyncResultBase<T> & Record<U, T>;
|
|
30
|
+
/**
|
|
31
|
+
* A custom React hook that manages asynchronous operations, providing easy-to-use states and controls over fetching, caching, and retry mechanisms.
|
|
32
|
+
* This hook abstracts away the complexity of handling loading, error, and success states for any asynchronous function.
|
|
33
|
+
*
|
|
34
|
+
* @template U - A string type that extends the keys of the async function, used as a key to store and retrieve state.
|
|
35
|
+
* @template T - A function type that must return a Promise, representing the asynchronous operation to be managed.
|
|
36
|
+
*
|
|
37
|
+
* @param {U} key - A unique identifier for the async operation, used to handle state internally and avoid conflicts.
|
|
38
|
+
* @param {T} asyncFunction - The asynchronous function that will be managed by this hook. This function should return a Promise.
|
|
39
|
+
* @param {UseAsyncOptions<T>} [options] - Optional configuration options to customize the behavior of the hook.
|
|
40
|
+
* @returns {UseAsyncResult<U, T>} The states and controls related to the managed async function. Includes states like isLoading, isSuccess, and provides control methods like revalidate and setData.
|
|
41
|
+
*
|
|
42
|
+
* @typedef {Object} UseAsyncOptions
|
|
43
|
+
* @property {number} [retryTime=300000] - Time in milliseconds for retrying the data after an error occurs.
|
|
44
|
+
* @property {number} [retryLimit=1] - The number of times the hook should retry the asynchronous function on failure before giving up.
|
|
45
|
+
* @property {boolean} [revalidation=false] - Enable revalidation.
|
|
46
|
+
* @property {number} [revalidateTime=300000] - Time in milliseconds after which the cached data is considered stale and the async function is re-invoked, if caching is enabled.
|
|
47
|
+
* @property {boolean} [cache=false] - Whether to cache the result of the async function. When enabled, revalidation is controlled by `revalidateTime`.
|
|
48
|
+
* @property {boolean} [store=false] - Store the result of the function in session storage.
|
|
49
|
+
* @property {boolean} [autoFetch=false] - Whether the hook should automatically invoke the asynchronous function on mount.
|
|
50
|
+
* @property {number} [revalidateTime=300000] - Time in milliseconds after which the cached data is considered stale and the async function is re-invoked, if caching is enabled.
|
|
51
|
+
* @property {boolean} [isInvalidated=false] - Determine if the data is invalidated and should be refetched.
|
|
52
|
+
* @property {string[]} [updateQueries=[]] - Update other queries when the data is updated.
|
|
53
|
+
* @property {string[]} [invalidateQueries=[]] - Invalidate other queries when the data is updated.
|
|
54
|
+
* @property {(data: Awaited<ReturnType<T>>) => void} [onSuccess] - Callback function that is called when the asynchronous function resolves successfully.
|
|
55
|
+
* @property {(error: string) => void} [onError] - Callback function that is called when the asynchronous function rejects or encounters an error.
|
|
56
|
+
* @property {Parameters<T>} [args=[]] - Arguments to pass to the asynchronous function.
|
|
57
|
+
*
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* // Example of using useAsync to manage fetching user data from an API.
|
|
61
|
+
* const fetchUserData = async (userId) => {
|
|
62
|
+
* const response = await fetch(`/api/users/${userId}`);
|
|
63
|
+
* if (!response.ok) throw new Error('Failed to fetch');
|
|
64
|
+
* return await response.json();
|
|
65
|
+
* };
|
|
66
|
+
*
|
|
67
|
+
* const UserDetails = ({ userId }) => {
|
|
68
|
+
* const {
|
|
69
|
+
* isLoading,
|
|
70
|
+
* data,
|
|
71
|
+
* error,
|
|
72
|
+
* revalidate,
|
|
73
|
+
* } = useAsync('userDetails', fetchUserData, {
|
|
74
|
+
* cache: true,
|
|
75
|
+
* revalidateTime: 60000, // 1 minute
|
|
76
|
+
* autoFetch: true,
|
|
77
|
+
* onSuccess: (data) => console.log('User data fetched successfully:', data),
|
|
78
|
+
* onError: (error) => console.error('Error fetching user data:', error),
|
|
79
|
+
* });
|
|
80
|
+
*
|
|
81
|
+
* if (isLoading) return <div>Loading...</div>;
|
|
82
|
+
* if (error) return <div>Error: {error}</div>;
|
|
83
|
+
* return (
|
|
84
|
+
* <div>
|
|
85
|
+
* <h1>{data.name}</h1>
|
|
86
|
+
* <button onClick={() => revalidate()}>Refresh</button>
|
|
87
|
+
* </div>
|
|
88
|
+
* );
|
|
89
|
+
* };
|
|
90
|
+
*/
|
|
91
|
+
export declare const useAsync: <U extends string, T extends (...args: any[]) => Promise<any>>(key: U, asyncFunction: T, options?: UseAsyncOptions<T>) => UseAsyncResult<U, T>;
|
|
92
|
+
export {};
|
|
93
|
+
//# sourceMappingURL=useAsync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsync.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAsync/useAsync.ts"],"names":[],"mappings":"AAaA,KAAK,kBAAkB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,IAAI;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC;CACxD,CAAC;AAGF,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,IAAI;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CACtB,CAAC;AAaF,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,IACxC,kBAAkB,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAKzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,eAAO,MAAM,QAAQ,GACnB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,OAErC,CAAC,iBACS,CAAC,YACN,eAAe,CAAC,CAAC,CAAC,KAC3B,cAAc,CAAC,CAAC,EAAE,CAAC,CAuRrB,CAAC"}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import require$$0, { useRef as useRef$1, useCallback, useEffect } from "react";
|
|
3
|
+
import { useAsyncStateStore } from "./useAsyncStateStore.mjs";
|
|
4
|
+
function shallow(objA, objB) {
|
|
5
|
+
if (Object.is(objA, objB)) {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
if (objA instanceof Map && objB instanceof Map) {
|
|
12
|
+
if (objA.size !== objB.size) return false;
|
|
13
|
+
for (const [key, value] of objA) {
|
|
14
|
+
if (!Object.is(value, objB.get(key))) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
if (objA instanceof Set && objB instanceof Set) {
|
|
21
|
+
if (objA.size !== objB.size) return false;
|
|
22
|
+
for (const value of objA) {
|
|
23
|
+
if (!objB.has(value)) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
const keysA = Object.keys(objA);
|
|
30
|
+
if (keysA.length !== Object.keys(objB).length) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
for (const keyA of keysA) {
|
|
34
|
+
if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
const { useRef } = require$$0;
|
|
41
|
+
function useShallow(selector) {
|
|
42
|
+
const prev = useRef();
|
|
43
|
+
return (state) => {
|
|
44
|
+
const next = selector(state);
|
|
45
|
+
return shallow(prev.current, next) ? prev.current : prev.current = next;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const pendingPromises = /* @__PURE__ */ new Map();
|
|
49
|
+
const DEFAULT_CACHE_ENABLED = false;
|
|
50
|
+
const DEFAULT_STORE_ENABLED = false;
|
|
51
|
+
const DEFAULT_ENABLED = true;
|
|
52
|
+
const DEFAULT_AUTO_FETCH = false;
|
|
53
|
+
const DEFAULT_RETRY_LIMIT = 1;
|
|
54
|
+
const DEFAULT_REVALIDATION_ENABLED = false;
|
|
55
|
+
const DEFAULT_REVALIDATE_TIME = 5 * 60 * 1e3;
|
|
56
|
+
const DEFAULT_RETRY_TIME = 5 * 60 * 1e3;
|
|
57
|
+
const getKeyWithArgs = (key, args) => args.length > 0 ? `${key}/${JSON.stringify(args)}` : key;
|
|
58
|
+
const useAsync = (key, asyncFunction, options) => {
|
|
59
|
+
const retryLimit = options?.retryLimit ?? DEFAULT_RETRY_LIMIT;
|
|
60
|
+
const autoFetch = options?.autoFetch ?? DEFAULT_AUTO_FETCH;
|
|
61
|
+
const retryTime = options?.retryTime ?? DEFAULT_RETRY_TIME;
|
|
62
|
+
const cacheEnabled = options?.cache ?? DEFAULT_CACHE_ENABLED;
|
|
63
|
+
const storeEnabled = options?.store ?? DEFAULT_STORE_ENABLED;
|
|
64
|
+
const enabled = options?.enable ?? DEFAULT_ENABLED;
|
|
65
|
+
const revalidationEnabled = options?.revalidation ?? DEFAULT_REVALIDATION_ENABLED;
|
|
66
|
+
const revalidateTime = options?.revalidateTime ?? DEFAULT_REVALIDATE_TIME;
|
|
67
|
+
const isInvalidatedProps = options?.isInvalidated ?? false;
|
|
68
|
+
const updateQueries = options?.updateQueries ?? [];
|
|
69
|
+
const invalidateQueries = options?.invalidateQueries ?? [];
|
|
70
|
+
const onSuccess = options?.onSuccess;
|
|
71
|
+
const onError = options?.onError;
|
|
72
|
+
const args = options?.args ?? [];
|
|
73
|
+
const {
|
|
74
|
+
setIsFetched,
|
|
75
|
+
setIsLoading,
|
|
76
|
+
setError,
|
|
77
|
+
setIsSuccess,
|
|
78
|
+
setData,
|
|
79
|
+
setIsInvalidated,
|
|
80
|
+
setIsEnabled,
|
|
81
|
+
incrementRetryCount,
|
|
82
|
+
resetRetryCount
|
|
83
|
+
} = useAsyncStateStore(
|
|
84
|
+
useShallow((state) => ({
|
|
85
|
+
setIsFetched: state.setIsFetched,
|
|
86
|
+
setIsLoading: state.setIsLoading,
|
|
87
|
+
setError: state.setError,
|
|
88
|
+
setIsSuccess: state.setIsSuccess,
|
|
89
|
+
setIsInvalidated: state.setIsInvalidated,
|
|
90
|
+
setIsEnabled: state.setIsEnabled,
|
|
91
|
+
setData: state.setData,
|
|
92
|
+
incrementRetryCount: state.incrementRetryCount,
|
|
93
|
+
resetRetryCount: state.resetRetryCount
|
|
94
|
+
}))
|
|
95
|
+
);
|
|
96
|
+
const storedArgsRef = useRef$1(args ?? []);
|
|
97
|
+
const keyWithArgs = getKeyWithArgs(key, storedArgsRef.current);
|
|
98
|
+
const {
|
|
99
|
+
isFetched,
|
|
100
|
+
fetchedDateTime,
|
|
101
|
+
isLoading,
|
|
102
|
+
isEnabled: isEnabledState,
|
|
103
|
+
error,
|
|
104
|
+
isSuccess,
|
|
105
|
+
isInvalidated,
|
|
106
|
+
data,
|
|
107
|
+
retryCount: errorCount
|
|
108
|
+
} = useAsyncStateStore((state) => state.getStates(keyWithArgs));
|
|
109
|
+
const isEnabled = isEnabledState || enabled;
|
|
110
|
+
const isDisabled = !isEnabled;
|
|
111
|
+
const fetch = useCallback(
|
|
112
|
+
async (...args2) => {
|
|
113
|
+
const keyWithArgs2 = getKeyWithArgs(key, args2);
|
|
114
|
+
if (pendingPromises.has(keyWithArgs2)) {
|
|
115
|
+
return pendingPromises.get(keyWithArgs2);
|
|
116
|
+
}
|
|
117
|
+
const promise = (async () => {
|
|
118
|
+
setIsLoading(keyWithArgs2, true);
|
|
119
|
+
let response = null;
|
|
120
|
+
let errorResponse = null;
|
|
121
|
+
await asyncFunction(...args2).then((result) => {
|
|
122
|
+
const isResultChanged = JSON.stringify(result) !== JSON.stringify(data);
|
|
123
|
+
response = result;
|
|
124
|
+
if (isResultChanged) {
|
|
125
|
+
setData(keyWithArgs2, result);
|
|
126
|
+
}
|
|
127
|
+
setIsSuccess(keyWithArgs2, true);
|
|
128
|
+
onSuccess?.(result);
|
|
129
|
+
resetRetryCount(keyWithArgs2);
|
|
130
|
+
if (storeEnabled) {
|
|
131
|
+
sessionStorage.setItem(keyWithArgs2, JSON.stringify(result));
|
|
132
|
+
}
|
|
133
|
+
if (isResultChanged && updateQueries.length > 0) {
|
|
134
|
+
updateQueries.forEach((key2) => {
|
|
135
|
+
setData(key2, result);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
if (isResultChanged && invalidateQueries.length > 0) {
|
|
139
|
+
invalidateQueries.forEach((key2) => {
|
|
140
|
+
setIsInvalidated(key2, true);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}).catch((error2) => {
|
|
144
|
+
const errorMessage = error2.message ?? "An error occurred";
|
|
145
|
+
setData(keyWithArgs2, null);
|
|
146
|
+
setError(keyWithArgs2, errorMessage);
|
|
147
|
+
incrementRetryCount(keyWithArgs2);
|
|
148
|
+
onError?.(errorMessage);
|
|
149
|
+
errorResponse = error2;
|
|
150
|
+
}).finally(() => {
|
|
151
|
+
setIsLoading(keyWithArgs2, false);
|
|
152
|
+
setIsFetched(keyWithArgs2, true);
|
|
153
|
+
setIsInvalidated(keyWithArgs2, false);
|
|
154
|
+
pendingPromises.delete(keyWithArgs2);
|
|
155
|
+
});
|
|
156
|
+
if (errorResponse) {
|
|
157
|
+
throw new Error(errorResponse);
|
|
158
|
+
}
|
|
159
|
+
return response;
|
|
160
|
+
})();
|
|
161
|
+
pendingPromises.set(keyWithArgs2, promise);
|
|
162
|
+
},
|
|
163
|
+
[asyncFunction, keyWithArgs]
|
|
164
|
+
);
|
|
165
|
+
const execute = useCallback(
|
|
166
|
+
async (...args2) => {
|
|
167
|
+
if (isDisabled) return;
|
|
168
|
+
if (isLoading) return;
|
|
169
|
+
if (isSuccess && cacheEnabled && data) return data;
|
|
170
|
+
if (args2) {
|
|
171
|
+
storedArgsRef.current = args2;
|
|
172
|
+
}
|
|
173
|
+
await fetch(...args2);
|
|
174
|
+
},
|
|
175
|
+
[isDisabled, cacheEnabled, isSuccess, data, isLoading]
|
|
176
|
+
);
|
|
177
|
+
const revalidate = useCallback(
|
|
178
|
+
async (...args2) => {
|
|
179
|
+
if (isDisabled) return;
|
|
180
|
+
if (isSuccess) return;
|
|
181
|
+
if (isLoading) return;
|
|
182
|
+
if (args2) {
|
|
183
|
+
storedArgsRef.current = args2;
|
|
184
|
+
}
|
|
185
|
+
await fetch(...storedArgsRef.current);
|
|
186
|
+
},
|
|
187
|
+
[isDisabled, storedArgsRef, isSuccess, isLoading]
|
|
188
|
+
);
|
|
189
|
+
const autoRevalidate = useCallback(() => {
|
|
190
|
+
if (isDisabled) return;
|
|
191
|
+
if (isLoading || !(cacheEnabled || storeEnabled)) return;
|
|
192
|
+
if (!revalidationEnabled || revalidateTime <= 0 || !isSuccess) return;
|
|
193
|
+
if (!fetchedDateTime) return;
|
|
194
|
+
const now = (/* @__PURE__ */ new Date()).getTime();
|
|
195
|
+
const lastFetchedTime = new Date(fetchedDateTime).getTime();
|
|
196
|
+
const shouldRevalidate = now - lastFetchedTime >= revalidateTime;
|
|
197
|
+
if (shouldRevalidate) {
|
|
198
|
+
fetch(...storedArgsRef.current);
|
|
199
|
+
}
|
|
200
|
+
}, [
|
|
201
|
+
cacheEnabled,
|
|
202
|
+
revalidationEnabled,
|
|
203
|
+
revalidateTime,
|
|
204
|
+
isSuccess,
|
|
205
|
+
fetchedDateTime,
|
|
206
|
+
isLoading,
|
|
207
|
+
isDisabled
|
|
208
|
+
]);
|
|
209
|
+
useEffect(() => {
|
|
210
|
+
setIsEnabled(keyWithArgs, enabled);
|
|
211
|
+
}, [enabled]);
|
|
212
|
+
useEffect(() => {
|
|
213
|
+
if (!autoFetch) return;
|
|
214
|
+
if (isDisabled) return;
|
|
215
|
+
if (isFetched || isLoading) return;
|
|
216
|
+
fetch(...storedArgsRef.current);
|
|
217
|
+
}, [autoFetch, isFetched, isDisabled, isLoading]);
|
|
218
|
+
useEffect(() => {
|
|
219
|
+
const isRetryEnabled = errorCount > 0 && retryLimit > 0;
|
|
220
|
+
const isRetryLimitReached = errorCount >= retryLimit;
|
|
221
|
+
if (isDisabled) return;
|
|
222
|
+
if (!(cacheEnabled || storeEnabled)) return;
|
|
223
|
+
if (!isRetryEnabled || isRetryLimitReached) return;
|
|
224
|
+
if (isSuccess) return;
|
|
225
|
+
if (isLoading) return;
|
|
226
|
+
const timeOut = setTimeout(() => {
|
|
227
|
+
if (isRetryEnabled && !isRetryLimitReached && !isSuccess) {
|
|
228
|
+
execute(...storedArgsRef.current);
|
|
229
|
+
}
|
|
230
|
+
}, retryTime);
|
|
231
|
+
return () => clearTimeout(timeOut);
|
|
232
|
+
}, [execute, errorCount, retryLimit, retryTime, isSuccess]);
|
|
233
|
+
useEffect(() => {
|
|
234
|
+
const interval = setInterval(autoRevalidate, revalidateTime);
|
|
235
|
+
return () => clearInterval(interval);
|
|
236
|
+
}, [autoRevalidate, revalidateTime]);
|
|
237
|
+
useEffect(() => {
|
|
238
|
+
if (isDisabled) return;
|
|
239
|
+
if (!storeEnabled) return;
|
|
240
|
+
if (isInvalidated) return;
|
|
241
|
+
if (isFetched) return;
|
|
242
|
+
const storedData = sessionStorage.getItem(keyWithArgs);
|
|
243
|
+
if (storedData) {
|
|
244
|
+
setData(keyWithArgs, JSON.parse(storedData));
|
|
245
|
+
}
|
|
246
|
+
}, [storeEnabled, keyWithArgs, isFetched, isInvalidated, isDisabled]);
|
|
247
|
+
useEffect(() => {
|
|
248
|
+
if (!isInvalidatedProps) return;
|
|
249
|
+
setIsInvalidated(keyWithArgs, isInvalidatedProps);
|
|
250
|
+
}, [isInvalidatedProps]);
|
|
251
|
+
const setDataMemo = useCallback(
|
|
252
|
+
(data2) => {
|
|
253
|
+
setData(keyWithArgs, data2);
|
|
254
|
+
},
|
|
255
|
+
[keyWithArgs]
|
|
256
|
+
);
|
|
257
|
+
return {
|
|
258
|
+
isFetched,
|
|
259
|
+
isLoading,
|
|
260
|
+
isInvalidated,
|
|
261
|
+
error,
|
|
262
|
+
isSuccess,
|
|
263
|
+
data,
|
|
264
|
+
retryCount: errorCount,
|
|
265
|
+
isDisabled,
|
|
266
|
+
isEnabled,
|
|
267
|
+
[key]: execute,
|
|
268
|
+
revalidate,
|
|
269
|
+
setData: setDataMemo
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
export {
|
|
273
|
+
useAsync
|
|
274
|
+
};
|
|
275
|
+
//# sourceMappingURL=useAsync.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsync.mjs","sources":["../../../../../../node_modules/.pnpm/zustand@4.5.5_@types+react@18.3.11_react@18.3.1/node_modules/zustand/esm/react/shallow.mjs","../../../src/hooks/useAsync/useAsync.ts"],"sourcesContent":["import ReactExports from 'react';\n\nfunction shallow(objA, objB) {\n if (Object.is(objA, objB)) {\n return true;\n }\n if (typeof objA !== \"object\" || objA === null || typeof objB !== \"object\" || objB === null) {\n return false;\n }\n if (objA instanceof Map && objB instanceof Map) {\n if (objA.size !== objB.size) return false;\n for (const [key, value] of objA) {\n if (!Object.is(value, objB.get(key))) {\n return false;\n }\n }\n return true;\n }\n if (objA instanceof Set && objB instanceof Set) {\n if (objA.size !== objB.size) return false;\n for (const value of objA) {\n if (!objB.has(value)) {\n return false;\n }\n }\n return true;\n }\n const keysA = Object.keys(objA);\n if (keysA.length !== Object.keys(objB).length) {\n return false;\n }\n for (const keyA of keysA) {\n if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {\n return false;\n }\n }\n return true;\n}\n\nconst { useRef } = ReactExports;\nfunction useShallow(selector) {\n const prev = useRef();\n return (state) => {\n const next = selector(state);\n return shallow(prev.current, next) ? prev.current : prev.current = next;\n };\n}\n\nexport { useShallow };\n","'use client';\n\n// This is an ESLint directive to disable specific rules.\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { useCallback, useEffect, useRef } from 'react';\nimport { useShallow } from 'zustand/react/shallow';\nimport { useAsyncStateStore } from './useAsyncStateStore';\n\n// Pending promises cache to prevent parallel requests when multiple components use the hook\nconst pendingPromises = new Map();\n\n// Defines the base structure for the result of the custom hook.\ntype UseAsyncResultBase<T extends (...args: any[]) => Promise<any>> = {\n isFetched: boolean;\n isLoading: boolean;\n isInvalidated: boolean;\n isSuccess: boolean;\n isDisabled: boolean;\n error: string | null;\n data: Awaited<ReturnType<T>> | null;\n retryCount: number;\n revalidate: T;\n setData: (data: Awaited<ReturnType<T> | null>) => void;\n};\n\n// Options type for the hook, allowing customization of behavior.\nexport type UseAsyncOptions<T extends (...args: any[]) => Promise<any>> = {\n retryLimit?: number; // The number of times the hook should retry the function on failure before giving up\n retryTime?: number; // Time in milliseconds for retrying the data\n cache?: boolean; // Cache the result of the function using zustand\n store?: boolean; // Store the result of the function in session storage\n enable?: boolean; // Enable the hook\n autoFetch?: boolean; // Automatically fetch the data when the hook is mounted\n revalidation?: boolean; // Enable revalidation\n revalidateTime?: number; // Time in milliseconds for revalidating the data\n isInvalidated?: boolean; // Determine if the data is invalidated and should be refetched\n invalidateQueries?: string[]; // Invalidate other queries when the data is updated\n updateQueries?: string[]; // Update other queries when the data is updated\n onSuccess?: (data: Awaited<ReturnType<T>>) => void; // Callback function that is called when the asynchronous function resolves successfully\n onError?: (error: string) => void; // Callback function that is called when the asynchronous function rejects or encounters an error\n args?: Parameters<T>; // Arguments to pass to the asynchronous function\n};\n\n// Default values for the hook's options\nconst DEFAULT_CACHE_ENABLED = false;\nconst DEFAULT_STORE_ENABLED = false;\nconst DEFAULT_ENABLED = true;\nconst DEFAULT_AUTO_FETCH = false;\nconst DEFAULT_RETRY_LIMIT = 1;\nconst DEFAULT_REVALIDATION_ENABLED = false;\nconst DEFAULT_REVALIDATE_TIME = 5 * 60 * 1000; // 5 minutes\nconst DEFAULT_RETRY_TIME = 5 * 60 * 1000; // 5 minutes\n\n// The main hook type that includes the async function along with its additional properties.\nexport type UseAsyncResult<\n U extends string,\n T extends (...args: any[]) => Promise<any>,\n> = UseAsyncResultBase<T> & Record<U, T>;\n\nconst getKeyWithArgs = (key: string, args: any[]) =>\n args.length > 0 ? `${key}/${JSON.stringify(args)}` : key;\n\n/**\n * A custom React hook that manages asynchronous operations, providing easy-to-use states and controls over fetching, caching, and retry mechanisms.\n * This hook abstracts away the complexity of handling loading, error, and success states for any asynchronous function.\n *\n * @template U - A string type that extends the keys of the async function, used as a key to store and retrieve state.\n * @template T - A function type that must return a Promise, representing the asynchronous operation to be managed.\n *\n * @param {U} key - A unique identifier for the async operation, used to handle state internally and avoid conflicts.\n * @param {T} asyncFunction - The asynchronous function that will be managed by this hook. This function should return a Promise.\n * @param {UseAsyncOptions<T>} [options] - Optional configuration options to customize the behavior of the hook.\n * @returns {UseAsyncResult<U, T>} The states and controls related to the managed async function. Includes states like isLoading, isSuccess, and provides control methods like revalidate and setData.\n *\n * @typedef {Object} UseAsyncOptions\n * @property {number} [retryTime=300000] - Time in milliseconds for retrying the data after an error occurs.\n * @property {number} [retryLimit=1] - The number of times the hook should retry the asynchronous function on failure before giving up.\n * @property {boolean} [revalidation=false] - Enable revalidation.\n * @property {number} [revalidateTime=300000] - Time in milliseconds after which the cached data is considered stale and the async function is re-invoked, if caching is enabled.\n * @property {boolean} [cache=false] - Whether to cache the result of the async function. When enabled, revalidation is controlled by `revalidateTime`.\n * @property {boolean} [store=false] - Store the result of the function in session storage.\n * @property {boolean} [autoFetch=false] - Whether the hook should automatically invoke the asynchronous function on mount.\n * @property {number} [revalidateTime=300000] - Time in milliseconds after which the cached data is considered stale and the async function is re-invoked, if caching is enabled.\n * @property {boolean} [isInvalidated=false] - Determine if the data is invalidated and should be refetched.\n * @property {string[]} [updateQueries=[]] - Update other queries when the data is updated.\n * @property {string[]} [invalidateQueries=[]] - Invalidate other queries when the data is updated.\n * @property {(data: Awaited<ReturnType<T>>) => void} [onSuccess] - Callback function that is called when the asynchronous function resolves successfully.\n * @property {(error: string) => void} [onError] - Callback function that is called when the asynchronous function rejects or encounters an error.\n * @property {Parameters<T>} [args=[]] - Arguments to pass to the asynchronous function.\n *\n *\n * @example\n * // Example of using useAsync to manage fetching user data from an API.\n * const fetchUserData = async (userId) => {\n * const response = await fetch(`/api/users/${userId}`);\n * if (!response.ok) throw new Error('Failed to fetch');\n * return await response.json();\n * };\n *\n * const UserDetails = ({ userId }) => {\n * const {\n * isLoading,\n * data,\n * error,\n * revalidate,\n * } = useAsync('userDetails', fetchUserData, {\n * cache: true,\n * revalidateTime: 60000, // 1 minute\n * autoFetch: true,\n * onSuccess: (data) => console.log('User data fetched successfully:', data),\n * onError: (error) => console.error('Error fetching user data:', error),\n * });\n *\n * if (isLoading) return <div>Loading...</div>;\n * if (error) return <div>Error: {error}</div>;\n * return (\n * <div>\n * <h1>{data.name}</h1>\n * <button onClick={() => revalidate()}>Refresh</button>\n * </div>\n * );\n * };\n */\nexport const useAsync = <\n U extends string,\n T extends (...args: any[]) => Promise<any>,\n>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>\n): UseAsyncResult<U, T> => {\n // Resolving optional parameters with default values\n const retryLimit = options?.retryLimit ?? DEFAULT_RETRY_LIMIT;\n const autoFetch = options?.autoFetch ?? DEFAULT_AUTO_FETCH;\n const retryTime = options?.retryTime ?? DEFAULT_RETRY_TIME;\n const cacheEnabled = options?.cache ?? DEFAULT_CACHE_ENABLED;\n const storeEnabled = options?.store ?? DEFAULT_STORE_ENABLED;\n const enabled = options?.enable ?? DEFAULT_ENABLED;\n const revalidationEnabled =\n options?.revalidation ?? DEFAULT_REVALIDATION_ENABLED;\n const revalidateTime = options?.revalidateTime ?? DEFAULT_REVALIDATE_TIME;\n const isInvalidatedProps = options?.isInvalidated ?? false;\n const updateQueries = options?.updateQueries ?? [];\n const invalidateQueries = options?.invalidateQueries ?? [];\n const onSuccess = options?.onSuccess;\n const onError = options?.onError;\n const args = options?.args ?? [];\n\n // Using a custom hook to manage state specific to asynchronous operations\n const {\n setIsFetched,\n setIsLoading,\n setError,\n setIsSuccess,\n setData,\n setIsInvalidated,\n setIsEnabled,\n incrementRetryCount,\n resetRetryCount,\n } = useAsyncStateStore(\n useShallow((state) => ({\n setIsFetched: state.setIsFetched,\n setIsLoading: state.setIsLoading,\n setError: state.setError,\n setIsSuccess: state.setIsSuccess,\n setIsInvalidated: state.setIsInvalidated,\n setIsEnabled: state.setIsEnabled,\n setData: state.setData,\n incrementRetryCount: state.incrementRetryCount,\n resetRetryCount: state.resetRetryCount,\n }))\n );\n\n // Storing the last arguments used to call the async function\n const storedArgsRef = useRef<any>(args ?? []);\n\n // Apply different key for different requests\n const keyWithArgs = getKeyWithArgs(key, storedArgsRef.current);\n\n // Retrieving the current state of async operations using the same custom hook\n const {\n isFetched,\n fetchedDateTime,\n isLoading,\n isEnabled: isEnabledState,\n error,\n isSuccess,\n isInvalidated,\n data,\n retryCount: errorCount,\n } = useAsyncStateStore((state) => state.getStates(keyWithArgs));\n\n const isEnabled = isEnabledState || enabled;\n const isDisabled = !isEnabled;\n\n // The core fetching function, designed to be called directly or automatically based on configuration\n const fetch: T = useCallback<T>(\n (async (...args) => {\n const keyWithArgs = getKeyWithArgs(key, args);\n\n if (pendingPromises.has(keyWithArgs)) {\n // Return the existing pending promise\n return pendingPromises.get(keyWithArgs);\n }\n\n const promise = (async () => {\n setIsLoading(keyWithArgs, true);\n let response = null;\n let errorResponse = null;\n\n await asyncFunction(...args)\n .then((result) => {\n const isResultChanged =\n JSON.stringify(result) !== JSON.stringify(data);\n\n response = result;\n if (isResultChanged) {\n setData(keyWithArgs, result);\n }\n setIsSuccess(keyWithArgs, true);\n onSuccess?.(result);\n resetRetryCount(keyWithArgs);\n\n // Store the result in session storage\n if (storeEnabled) {\n sessionStorage.setItem(keyWithArgs, JSON.stringify(result));\n }\n\n // Update other queries if necessary\n if (isResultChanged && updateQueries.length > 0) {\n updateQueries.forEach((key) => {\n setData(key, result);\n });\n }\n\n // Invalidate other queries if necessary\n if (isResultChanged && invalidateQueries.length > 0) {\n invalidateQueries.forEach((key) => {\n setIsInvalidated(key, true);\n });\n }\n })\n .catch((error) => {\n const errorMessage = error.message ?? 'An error occurred';\n\n setData(keyWithArgs, null);\n setError(keyWithArgs, errorMessage);\n incrementRetryCount(keyWithArgs);\n onError?.(errorMessage);\n errorResponse = error;\n })\n .finally(() => {\n setIsLoading(keyWithArgs, false);\n setIsFetched(keyWithArgs, true);\n setIsInvalidated(keyWithArgs, false);\n\n // Remove the pending promise from the cache\n pendingPromises.delete(keyWithArgs);\n });\n\n if (errorResponse) {\n throw new Error(errorResponse);\n }\n\n return response;\n })();\n\n // Store the pending promise in the cache\n pendingPromises.set(keyWithArgs, promise);\n }) as T,\n [asyncFunction, keyWithArgs]\n );\n\n // Wrapped execution function to handle disabled state and check for success before re-fetching\n const execute: T = useCallback<T>(\n (async (...args) => {\n if (isDisabled) return;\n if (isLoading) return;\n if (isSuccess && cacheEnabled && data) return data;\n\n if (args) {\n storedArgsRef.current = args;\n }\n\n await fetch(...args);\n }) as T,\n [isDisabled, cacheEnabled, isSuccess, data, isLoading]\n );\n\n // Function to revalidate the data when necessary\n const revalidate: T = useCallback<T>(\n (async (...args) => {\n if (isDisabled) return;\n if (isSuccess) return;\n if (isLoading) return;\n\n if (args) {\n storedArgsRef.current = args;\n }\n\n await fetch(...storedArgsRef.current);\n }) as T,\n [isDisabled, storedArgsRef, isSuccess, isLoading]\n );\n\n const autoRevalidate = useCallback(() => {\n if (isDisabled) return;\n if (isLoading || !(cacheEnabled || storeEnabled)) return;\n if (!revalidationEnabled || revalidateTime <= 0 || !isSuccess) return;\n if (!fetchedDateTime) return;\n\n const now = new Date().getTime();\n const lastFetchedTime = new Date(fetchedDateTime).getTime();\n const shouldRevalidate = now - lastFetchedTime >= revalidateTime;\n if (shouldRevalidate) {\n fetch(...storedArgsRef.current);\n }\n }, [\n cacheEnabled,\n revalidationEnabled,\n revalidateTime,\n isSuccess,\n fetchedDateTime,\n isLoading,\n isDisabled,\n ]);\n\n useEffect(() => {\n setIsEnabled(keyWithArgs, enabled);\n }, [enabled]);\n\n // Auto-fetch data on hook mount if autoFetch is true\n useEffect(() => {\n if (!autoFetch) return;\n if (isDisabled) return;\n if (isFetched || isLoading) return;\n\n fetch(...storedArgsRef.current);\n }, [autoFetch, isFetched, isDisabled, isLoading]);\n\n // Handle retry based on conditions set in options\n useEffect(() => {\n const isRetryEnabled = errorCount > 0 && retryLimit > 0;\n const isRetryLimitReached = errorCount >= retryLimit;\n if (isDisabled) return;\n if (!(cacheEnabled || storeEnabled)) return;\n if (!isRetryEnabled || isRetryLimitReached) return;\n if (isSuccess) return;\n if (isLoading) return;\n\n const timeOut = setTimeout(() => {\n if (isRetryEnabled && !isRetryLimitReached && !isSuccess) {\n execute(...storedArgsRef.current);\n }\n }, retryTime);\n\n return () => clearTimeout(timeOut);\n }, [execute, errorCount, retryLimit, retryTime, isSuccess]);\n\n // Handle periodic revalidation if caching is enabled\n useEffect(() => {\n const interval = setInterval(autoRevalidate, revalidateTime);\n\n return () => clearInterval(interval);\n }, [autoRevalidate, revalidateTime]);\n\n // Load data from session storage if storeEnabled is true\n useEffect(() => {\n if (isDisabled) return;\n if (!storeEnabled) return;\n if (isInvalidated) return;\n if (isFetched) return;\n\n const storedData = sessionStorage.getItem(keyWithArgs);\n\n if (storedData) {\n setData(keyWithArgs, JSON.parse(storedData));\n }\n }, [storeEnabled, keyWithArgs, isFetched, isInvalidated, isDisabled]);\n\n // Handle invalidation if props are changed\n useEffect(() => {\n if (!isInvalidatedProps) return;\n setIsInvalidated(keyWithArgs, isInvalidatedProps);\n }, [isInvalidatedProps]);\n\n // Memoization of the setData function to prevent unnecessary re-renders\n const setDataMemo = useCallback(\n (data: Awaited<ReturnType<T> | null>) => {\n setData(keyWithArgs, data);\n },\n [keyWithArgs]\n );\n\n // Return the hook's result, including all state and control functions\n return {\n isFetched,\n isLoading,\n isInvalidated,\n error,\n isSuccess,\n data,\n retryCount: errorCount,\n isDisabled,\n isEnabled,\n [key]: execute,\n revalidate,\n setData: setDataMemo,\n } as UseAsyncResultBase<T> & Record<U, T>;\n};\n"],"names":["ReactExports","useRef","args","keyWithArgs","key","error","data"],"mappings":";;;AAEA,SAAS,QAAQ,MAAM,MAAM;AAC3B,MAAI,OAAO,GAAG,MAAM,IAAI,GAAG;AACzB,WAAO;AAAA,EACR;AACD,MAAI,OAAO,SAAS,YAAY,SAAS,QAAQ,OAAO,SAAS,YAAY,SAAS,MAAM;AAC1F,WAAO;AAAA,EACR;AACD,MAAI,gBAAgB,OAAO,gBAAgB,KAAK;AAC9C,QAAI,KAAK,SAAS,KAAK,KAAM,QAAO;AACpC,eAAW,CAAC,KAAK,KAAK,KAAK,MAAM;AAC/B,UAAI,CAAC,OAAO,GAAG,OAAO,KAAK,IAAI,GAAG,CAAC,GAAG;AACpC,eAAO;AAAA,MACR;AAAA,IACF;AACD,WAAO;AAAA,EACR;AACD,MAAI,gBAAgB,OAAO,gBAAgB,KAAK;AAC9C,QAAI,KAAK,SAAS,KAAK,KAAM,QAAO;AACpC,eAAW,SAAS,MAAM;AACxB,UAAI,CAAC,KAAK,IAAI,KAAK,GAAG;AACpB,eAAO;AAAA,MACR;AAAA,IACF;AACD,WAAO;AAAA,EACR;AACD,QAAM,QAAQ,OAAO,KAAK,IAAI;AAC9B,MAAI,MAAM,WAAW,OAAO,KAAK,IAAI,EAAE,QAAQ;AAC7C,WAAO;AAAA,EACR;AACD,aAAW,QAAQ,OAAO;AACxB,QAAI,CAAC,OAAO,UAAU,eAAe,KAAK,MAAM,IAAI,KAAK,CAAC,OAAO,GAAG,KAAK,IAAI,GAAG,KAAK,IAAI,CAAC,GAAG;AAC3F,aAAO;AAAA,IACR;AAAA,EACF;AACD,SAAO;AACT;AAEA,MAAM,EAAE,OAAQ,IAAGA;AACnB,SAAS,WAAW,UAAU;AAC5B,QAAM,OAAO;AACb,SAAO,CAAC,UAAU;AAChB,UAAM,OAAO,SAAS,KAAK;AAC3B,WAAO,QAAQ,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,KAAK,UAAU;AAAA,EACvE;AACA;ACpCA,MAAM,sCAAsB;AAmC5B,MAAM,wBAAwB;AAC9B,MAAM,wBAAwB;AAC9B,MAAM,kBAAkB;AACxB,MAAM,qBAAqB;AAC3B,MAAM,sBAAsB;AAC5B,MAAM,+BAA+B;AACrC,MAAM,0BAA0B,IAAI,KAAK;AACzC,MAAM,qBAAqB,IAAI,KAAK;AAQpC,MAAM,iBAAiB,CAAC,KAAa,SACnC,KAAK,SAAS,IAAI,GAAG,GAAG,IAAI,KAAK,UAAU,IAAI,CAAC,KAAK;AA+DhD,MAAM,WAAW,CAItB,KACA,eACA,YACyB;AAEnB,QAAA,aAAa,SAAS,cAAc;AACpC,QAAA,YAAY,SAAS,aAAa;AAClC,QAAA,YAAY,SAAS,aAAa;AAClC,QAAA,eAAe,SAAS,SAAS;AACjC,QAAA,eAAe,SAAS,SAAS;AACjC,QAAA,UAAU,SAAS,UAAU;AAC7B,QAAA,sBACJ,SAAS,gBAAgB;AACrB,QAAA,iBAAiB,SAAS,kBAAkB;AAC5C,QAAA,qBAAqB,SAAS,iBAAiB;AAC/C,QAAA,gBAAgB,SAAS,iBAAiB;AAC1C,QAAA,oBAAoB,SAAS,qBAAqB;AACxD,QAAM,YAAY,SAAS;AAC3B,QAAM,UAAU,SAAS;AACnB,QAAA,OAAO,SAAS,QAAQ;AAGxB,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE;AAAA,IACF,WAAW,CAAC,WAAW;AAAA,MACrB,cAAc,MAAM;AAAA,MACpB,cAAc,MAAM;AAAA,MACpB,UAAU,MAAM;AAAA,MAChB,cAAc,MAAM;AAAA,MACpB,kBAAkB,MAAM;AAAA,MACxB,cAAc,MAAM;AAAA,MACpB,SAAS,MAAM;AAAA,MACf,qBAAqB,MAAM;AAAA,MAC3B,iBAAiB,MAAM;AAAA,IAAA,EACvB;AAAA,EAAA;AAIJ,QAAM,gBAAgBC,SAAY,QAAQ,CAAE,CAAA;AAG5C,QAAM,cAAc,eAAe,KAAK,cAAc,OAAO;AAGvD,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EAAA,IACV,mBAAmB,CAAC,UAAU,MAAM,UAAU,WAAW,CAAC;AAE9D,QAAM,YAAY,kBAAkB;AACpC,QAAM,aAAa,CAAC;AAGpB,QAAM,QAAW;AAAA,IACd,UAAUC,UAAS;AACZC,YAAAA,eAAc,eAAe,KAAKD,KAAI;AAExC,UAAA,gBAAgB,IAAIC,YAAW,GAAG;AAE7B,eAAA,gBAAgB,IAAIA,YAAW;AAAA,MACxC;AAEA,YAAM,WAAW,YAAY;AAC3B,qBAAaA,cAAa,IAAI;AAC9B,YAAI,WAAW;AACf,YAAI,gBAAgB;AAEpB,cAAM,cAAc,GAAGD,KAAI,EACxB,KAAK,CAAC,WAAW;AAChB,gBAAM,kBACJ,KAAK,UAAU,MAAM,MAAM,KAAK,UAAU,IAAI;AAErC,qBAAA;AACX,cAAI,iBAAiB;AACnB,oBAAQC,cAAa,MAAM;AAAA,UAC7B;AACA,uBAAaA,cAAa,IAAI;AAC9B,sBAAY,MAAM;AAClB,0BAAgBA,YAAW;AAG3B,cAAI,cAAc;AAChB,2BAAe,QAAQA,cAAa,KAAK,UAAU,MAAM,CAAC;AAAA,UAC5D;AAGI,cAAA,mBAAmB,cAAc,SAAS,GAAG;AACjC,0BAAA,QAAQ,CAACC,SAAQ;AAC7B,sBAAQA,MAAK,MAAM;AAAA,YAAA,CACpB;AAAA,UACH;AAGI,cAAA,mBAAmB,kBAAkB,SAAS,GAAG;AACjC,8BAAA,QAAQ,CAACA,SAAQ;AACjC,+BAAiBA,MAAK,IAAI;AAAA,YAAA,CAC3B;AAAA,UACH;AAAA,QAAA,CACD,EACA,MAAM,CAACC,WAAU;AACV,gBAAA,eAAeA,OAAM,WAAW;AAEtC,kBAAQF,cAAa,IAAI;AACzB,mBAASA,cAAa,YAAY;AAClC,8BAAoBA,YAAW;AAC/B,oBAAU,YAAY;AACNE,0BAAAA;AAAAA,QAAA,CACjB,EACA,QAAQ,MAAM;AACb,uBAAaF,cAAa,KAAK;AAC/B,uBAAaA,cAAa,IAAI;AAC9B,2BAAiBA,cAAa,KAAK;AAGnC,0BAAgB,OAAOA,YAAW;AAAA,QAAA,CACnC;AAEH,YAAI,eAAe;AACX,gBAAA,IAAI,MAAM,aAAa;AAAA,QAC/B;AAEO,eAAA;AAAA,MAAA;AAIO,sBAAA,IAAIA,cAAa,OAAO;AAAA,IAC1C;AAAA,IACA,CAAC,eAAe,WAAW;AAAA,EAAA;AAI7B,QAAM,UAAa;AAAA,IAChB,UAAUD,UAAS;AAClB,UAAI,WAAY;AAChB,UAAI,UAAW;AACX,UAAA,aAAa,gBAAgB,KAAa,QAAA;AAE9C,UAAIA,OAAM;AACR,sBAAc,UAAUA;AAAAA,MAC1B;AAEM,YAAA,MAAM,GAAGA,KAAI;AAAA,IACrB;AAAA,IACA,CAAC,YAAY,cAAc,WAAW,MAAM,SAAS;AAAA,EAAA;AAIvD,QAAM,aAAgB;AAAA,IACnB,UAAUA,UAAS;AAClB,UAAI,WAAY;AAChB,UAAI,UAAW;AACf,UAAI,UAAW;AAEf,UAAIA,OAAM;AACR,sBAAc,UAAUA;AAAAA,MAC1B;AAEM,YAAA,MAAM,GAAG,cAAc,OAAO;AAAA,IACtC;AAAA,IACA,CAAC,YAAY,eAAe,WAAW,SAAS;AAAA,EAAA;AAG5C,QAAA,iBAAiB,YAAY,MAAM;AACvC,QAAI,WAAY;AACZ,QAAA,aAAa,EAAE,gBAAgB,cAAe;AAClD,QAAI,CAAC,uBAAuB,kBAAkB,KAAK,CAAC,UAAW;AAC/D,QAAI,CAAC,gBAAiB;AAEtB,UAAM,OAAM,oBAAI,KAAK,GAAE,QAAQ;AAC/B,UAAM,kBAAkB,IAAI,KAAK,eAAe,EAAE,QAAQ;AACpD,UAAA,mBAAmB,MAAM,mBAAmB;AAClD,QAAI,kBAAkB;AACd,YAAA,GAAG,cAAc,OAAO;AAAA,IAChC;AAAA,EAAA,GACC;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAED,YAAU,MAAM;AACd,iBAAa,aAAa,OAAO;AAAA,EAAA,GAChC,CAAC,OAAO,CAAC;AAGZ,YAAU,MAAM;AACd,QAAI,CAAC,UAAW;AAChB,QAAI,WAAY;AAChB,QAAI,aAAa,UAAW;AAEtB,UAAA,GAAG,cAAc,OAAO;AAAA,KAC7B,CAAC,WAAW,WAAW,YAAY,SAAS,CAAC;AAGhD,YAAU,MAAM;AACR,UAAA,iBAAiB,aAAa,KAAK,aAAa;AACtD,UAAM,sBAAsB,cAAc;AAC1C,QAAI,WAAY;AACZ,QAAA,EAAE,gBAAgB,cAAe;AACjC,QAAA,CAAC,kBAAkB,oBAAqB;AAC5C,QAAI,UAAW;AACf,QAAI,UAAW;AAET,UAAA,UAAU,WAAW,MAAM;AAC/B,UAAI,kBAAkB,CAAC,uBAAuB,CAAC,WAAW;AAChD,gBAAA,GAAG,cAAc,OAAO;AAAA,MAClC;AAAA,OACC,SAAS;AAEL,WAAA,MAAM,aAAa,OAAO;AAAA,EAAA,GAChC,CAAC,SAAS,YAAY,YAAY,WAAW,SAAS,CAAC;AAG1D,YAAU,MAAM;AACR,UAAA,WAAW,YAAY,gBAAgB,cAAc;AAEpD,WAAA,MAAM,cAAc,QAAQ;AAAA,EAAA,GAClC,CAAC,gBAAgB,cAAc,CAAC;AAGnC,YAAU,MAAM;AACd,QAAI,WAAY;AAChB,QAAI,CAAC,aAAc;AACnB,QAAI,cAAe;AACnB,QAAI,UAAW;AAET,UAAA,aAAa,eAAe,QAAQ,WAAW;AAErD,QAAI,YAAY;AACd,cAAQ,aAAa,KAAK,MAAM,UAAU,CAAC;AAAA,IAC7C;AAAA,EAAA,GACC,CAAC,cAAc,aAAa,WAAW,eAAe,UAAU,CAAC;AAGpE,YAAU,MAAM;AACd,QAAI,CAAC,mBAAoB;AACzB,qBAAiB,aAAa,kBAAkB;AAAA,EAAA,GAC/C,CAAC,kBAAkB,CAAC;AAGvB,QAAM,cAAc;AAAA,IAClB,CAACI,UAAwC;AACvC,cAAQ,aAAaA,KAAI;AAAA,IAC3B;AAAA,IACA,CAAC,WAAW;AAAA,EAAA;AAIP,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,CAAC,GAAG,GAAG;AAAA,IACP;AAAA,IACA,SAAS;AAAA,EAAA;AAEb;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const zustand = require("zustand");
|
|
4
|
+
const createDefaultStates = () => ({
|
|
5
|
+
isFetched: false,
|
|
6
|
+
fetchedDateTime: null,
|
|
7
|
+
isLoading: false,
|
|
8
|
+
isInvalidated: false,
|
|
9
|
+
error: null,
|
|
10
|
+
isSuccess: false,
|
|
11
|
+
data: null,
|
|
12
|
+
retryCount: 0,
|
|
13
|
+
isEnabled: true
|
|
14
|
+
});
|
|
15
|
+
const ensureArray = (value) => {
|
|
16
|
+
if (!value) {
|
|
17
|
+
return [];
|
|
18
|
+
} else if (Array.isArray(value)) {
|
|
19
|
+
return value;
|
|
20
|
+
}
|
|
21
|
+
return [value];
|
|
22
|
+
};
|
|
23
|
+
const getMatchKeys = (selectorsKeys, keysWithArgs) => {
|
|
24
|
+
const matchedKeys = keysWithArgs.filter(
|
|
25
|
+
(key) => selectorsKeys.includes(key.split("/")[0])
|
|
26
|
+
);
|
|
27
|
+
return matchedKeys;
|
|
28
|
+
};
|
|
29
|
+
const useAsyncStateStore = zustand.create((set, get) => ({
|
|
30
|
+
states: {},
|
|
31
|
+
getStates: (key) => get().states[key] ?? createDefaultStates(),
|
|
32
|
+
setIsFetched: (key, value) => set((state) => ({
|
|
33
|
+
states: {
|
|
34
|
+
...state.states,
|
|
35
|
+
[key]: {
|
|
36
|
+
...state.states[key] ?? createDefaultStates(),
|
|
37
|
+
isFetched: value,
|
|
38
|
+
fetchedDateTime: /* @__PURE__ */ new Date()
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
})),
|
|
42
|
+
setIsLoading: (key, value) => set((state) => ({
|
|
43
|
+
states: {
|
|
44
|
+
...state.states,
|
|
45
|
+
[key]: {
|
|
46
|
+
...state.states[key] ?? createDefaultStates(),
|
|
47
|
+
isLoading: value
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
})),
|
|
51
|
+
setError: (key, value) => set((state) => ({
|
|
52
|
+
states: {
|
|
53
|
+
...state.states,
|
|
54
|
+
[key]: {
|
|
55
|
+
...state.states[key] ?? createDefaultStates(),
|
|
56
|
+
error: value
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
})),
|
|
60
|
+
setIsSuccess: (key, value) => set((state) => ({
|
|
61
|
+
states: {
|
|
62
|
+
...state.states,
|
|
63
|
+
[key]: {
|
|
64
|
+
...state.states[key] ?? createDefaultStates(),
|
|
65
|
+
isSuccess: value
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
})),
|
|
69
|
+
setIsInvalidated: (key, value) => set((state) => {
|
|
70
|
+
if (value === true) {
|
|
71
|
+
const allKeys = Object.keys(state.states);
|
|
72
|
+
const matchedKeys = getMatchKeys([key], allKeys);
|
|
73
|
+
matchedKeys.forEach((key2) => {
|
|
74
|
+
sessionStorage.removeItem(key2);
|
|
75
|
+
});
|
|
76
|
+
return {
|
|
77
|
+
states: {
|
|
78
|
+
...state.states,
|
|
79
|
+
[key]: {
|
|
80
|
+
...createDefaultStates(),
|
|
81
|
+
isInvalidated: true
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
states: {
|
|
88
|
+
...state.states,
|
|
89
|
+
[key]: {
|
|
90
|
+
...state.states[key] ?? createDefaultStates(),
|
|
91
|
+
isInvalidated: false
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}),
|
|
96
|
+
setData: (key, value) => set((state) => ({
|
|
97
|
+
states: {
|
|
98
|
+
...state.states,
|
|
99
|
+
[key]: {
|
|
100
|
+
...state.states[key] ?? createDefaultStates(),
|
|
101
|
+
data: value
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
})),
|
|
105
|
+
incrementRetryCount: (key) => set((state) => {
|
|
106
|
+
const prevState = state.states[key] ?? createDefaultStates();
|
|
107
|
+
return {
|
|
108
|
+
states: {
|
|
109
|
+
...state.states,
|
|
110
|
+
[key]: {
|
|
111
|
+
...prevState,
|
|
112
|
+
retryCount: prevState.retryCount + 1
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}),
|
|
117
|
+
resetRetryCount: (key) => set((state) => {
|
|
118
|
+
const prevState = state.states[key] ?? createDefaultStates();
|
|
119
|
+
return {
|
|
120
|
+
states: {
|
|
121
|
+
...state.states,
|
|
122
|
+
[key]: {
|
|
123
|
+
...prevState,
|
|
124
|
+
retryCount: 0
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}),
|
|
129
|
+
setIsEnabled: (key, value) => set((state) => ({
|
|
130
|
+
states: {
|
|
131
|
+
...state.states,
|
|
132
|
+
[key]: {
|
|
133
|
+
...state.states[key] ?? createDefaultStates(),
|
|
134
|
+
isEnabled: value
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
})),
|
|
138
|
+
resetKeyState: (key) => set((state) => {
|
|
139
|
+
const keys = ensureArray(key);
|
|
140
|
+
const allKeys = Object.keys(state.states);
|
|
141
|
+
const matchedKeys = getMatchKeys(keys, allKeys);
|
|
142
|
+
const newStates = { ...state.states };
|
|
143
|
+
matchedKeys.forEach((k) => {
|
|
144
|
+
newStates[k] = createDefaultStates();
|
|
145
|
+
});
|
|
146
|
+
return {
|
|
147
|
+
states: newStates
|
|
148
|
+
};
|
|
149
|
+
}),
|
|
150
|
+
resetState: (excludedKey) => set((state) => {
|
|
151
|
+
const excludedKeys = ensureArray(excludedKey);
|
|
152
|
+
const allKeys = Object.keys(state.states);
|
|
153
|
+
const matchedKeys = getMatchKeys(excludedKeys, allKeys);
|
|
154
|
+
const newStates = Object.keys(state.states).reduce((acc, key) => {
|
|
155
|
+
if (matchedKeys.includes(key)) {
|
|
156
|
+
acc[key] = state.states[key];
|
|
157
|
+
} else {
|
|
158
|
+
acc[key] = createDefaultStates();
|
|
159
|
+
}
|
|
160
|
+
return acc;
|
|
161
|
+
}, {});
|
|
162
|
+
return {
|
|
163
|
+
states: newStates
|
|
164
|
+
};
|
|
165
|
+
})
|
|
166
|
+
}));
|
|
167
|
+
exports.useAsyncStateStore = useAsyncStateStore;
|
|
168
|
+
//# sourceMappingURL=useAsyncStateStore.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsyncStateStore.cjs","sources":["../../../src/hooks/useAsync/useAsyncStateStore.ts"],"sourcesContent":["import { create } from 'zustand';\n\ntype States<T> = {\n isLoading: boolean;\n isFetched: boolean;\n isInvalidated: boolean;\n fetchedDateTime: null | Date;\n error: string | null;\n isSuccess: boolean;\n data: T | null;\n retryCount: number;\n isEnabled: boolean;\n};\n\ntype StateSlice<T> = {\n [key: string]: States<T>;\n};\n\ntype Actions<T> = {\n getStates: (key: string) => States<T>;\n setIsFetched: (key: string, value: boolean) => void;\n setIsLoading: (key: string, value: boolean) => void;\n setIsInvalidated: (key: string, value: boolean) => void;\n setError: (key: string, value: string | null) => void;\n setIsSuccess: (key: string, value: boolean) => void;\n setData: (key: string, value: T | null) => void;\n incrementRetryCount: (key: string) => void;\n resetRetryCount: (key: string) => void;\n setIsEnabled: (key: string, value: boolean) => void;\n resetKeyState: (key: string[]) => void;\n resetState: (excludedKey: string[]) => void;\n};\n\ntype AsyncState<T> = {\n states: StateSlice<T>;\n} & Actions<T>;\n\nconst createDefaultStates = <T>(): States<T> => ({\n isFetched: false,\n fetchedDateTime: null,\n isLoading: false,\n isInvalidated: false,\n error: null,\n isSuccess: false,\n data: null,\n retryCount: 0,\n isEnabled: true,\n});\n\n/**\n * If the value is not an array. Transform it en array\n *\n * @param value value to transform en array if not array\n * @returns array\n */\nconst ensureArray = <T>(value?: T | T[]): T[] => {\n if (!value) {\n return [];\n } else if (Array.isArray(value)) {\n return value;\n }\n\n return [value];\n};\n\n/**\n * Return all keys that match\n *\n * @param {string[]} selectorsKeys - List of key to check - example: ['getProducts']\n * @param {string[]} keysWithArgs - List of keys that can includes args - example: [\"getProducts\", \"getProducts/{'ids':['id1','id2']}\", \"getUsers\", \"getUsers/{'ids':['id1','id2']}\" ]\n * @returns {string[]} - key that match the selectors - example: [\"getProducts\", \"getProducts/{'ids':['id1','id2']}\" ]\n */\nconst getMatchKeys = (\n selectorsKeys: string[],\n keysWithArgs: string[]\n): string[] => {\n const matchedKeys: string[] = keysWithArgs.filter((key) =>\n selectorsKeys.includes(key.split('/')[0])\n );\n\n return matchedKeys;\n};\n\nexport const useAsyncStateStore = create<AsyncState<unknown>>((set, get) => ({\n states: {} as StateSlice<unknown>,\n\n getStates: (key) =>\n (get().states[key] as States<unknown>) ?? createDefaultStates<unknown>(),\n\n setIsFetched: (key, value) =>\n set((state) => ({\n states: {\n ...state.states,\n [key]: {\n ...((state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>()),\n isFetched: value,\n fetchedDateTime: new Date(),\n },\n },\n })),\n\n setIsLoading: (key, value) =>\n set((state) => ({\n states: {\n ...state.states,\n [key]: {\n ...((state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>()),\n isLoading: value,\n },\n },\n })),\n\n setError: (key, value) =>\n set((state) => ({\n states: {\n ...state.states,\n [key]: {\n ...((state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>()),\n error: value,\n },\n },\n })),\n\n setIsSuccess: (key, value) =>\n set((state) => ({\n states: {\n ...state.states,\n [key]: {\n ...((state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>()),\n isSuccess: value,\n },\n },\n })),\n\n setIsInvalidated: (key, value) =>\n set((state) => {\n if (value === true) {\n const allKeys = Object.keys(state.states);\n const matchedKeys = getMatchKeys([key], allKeys);\n\n matchedKeys.forEach((key) => {\n sessionStorage.removeItem(key);\n });\n\n return {\n states: {\n ...state.states,\n [key]: {\n ...createDefaultStates<unknown>(),\n isInvalidated: true,\n },\n },\n };\n }\n\n return {\n states: {\n ...state.states,\n [key]: {\n ...((state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>()),\n isInvalidated: false,\n },\n },\n };\n }),\n\n setData: (key, value) =>\n set((state) => ({\n states: {\n ...state.states,\n [key]: {\n ...((state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>()),\n data: value,\n },\n },\n })),\n\n incrementRetryCount: (key) =>\n set((state) => {\n const prevState =\n (state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>();\n return {\n states: {\n ...state.states,\n [key]: {\n ...prevState,\n retryCount: prevState.retryCount + 1,\n },\n },\n };\n }),\n\n resetRetryCount: (key) =>\n set((state) => {\n const prevState =\n (state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>();\n return {\n states: {\n ...state.states,\n [key]: {\n ...prevState,\n retryCount: 0,\n },\n },\n };\n }),\n\n setIsEnabled: (key, value) =>\n set((state) => ({\n states: {\n ...state.states,\n [key]: {\n ...((state.states[key] as States<unknown>) ??\n createDefaultStates<unknown>()),\n isEnabled: value,\n },\n },\n })),\n\n resetKeyState: (key: string | string[]) =>\n set((state) => {\n const keys = ensureArray(key);\n\n const allKeys = Object.keys(state.states);\n const matchedKeys = getMatchKeys(keys, allKeys);\n\n const newStates = { ...state.states };\n matchedKeys.forEach((k) => {\n newStates[k] = createDefaultStates<unknown>();\n });\n return {\n states: newStates,\n };\n }),\n\n resetState: (excludedKey?: string | string[]) =>\n set((state) => {\n const excludedKeys = ensureArray(excludedKey);\n\n const allKeys = Object.keys(state.states);\n const matchedKeys = getMatchKeys(excludedKeys, allKeys);\n\n const newStates = Object.keys(state.states).reduce((acc, key) => {\n if (matchedKeys.includes(key)) {\n acc[key] = state.states[key];\n } else {\n acc[key] = createDefaultStates<unknown>();\n }\n return acc;\n }, {} as StateSlice<unknown>);\n\n return {\n states: newStates,\n };\n }),\n}));\n"],"names":["create","key"],"mappings":"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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type States<T> = {
|
|
2
|
+
isLoading: boolean;
|
|
3
|
+
isFetched: boolean;
|
|
4
|
+
isInvalidated: boolean;
|
|
5
|
+
fetchedDateTime: null | Date;
|
|
6
|
+
error: string | null;
|
|
7
|
+
isSuccess: boolean;
|
|
8
|
+
data: T | null;
|
|
9
|
+
retryCount: number;
|
|
10
|
+
isEnabled: boolean;
|
|
11
|
+
};
|
|
12
|
+
type StateSlice<T> = {
|
|
13
|
+
[key: string]: States<T>;
|
|
14
|
+
};
|
|
15
|
+
type Actions<T> = {
|
|
16
|
+
getStates: (key: string) => States<T>;
|
|
17
|
+
setIsFetched: (key: string, value: boolean) => void;
|
|
18
|
+
setIsLoading: (key: string, value: boolean) => void;
|
|
19
|
+
setIsInvalidated: (key: string, value: boolean) => void;
|
|
20
|
+
setError: (key: string, value: string | null) => void;
|
|
21
|
+
setIsSuccess: (key: string, value: boolean) => void;
|
|
22
|
+
setData: (key: string, value: T | null) => void;
|
|
23
|
+
incrementRetryCount: (key: string) => void;
|
|
24
|
+
resetRetryCount: (key: string) => void;
|
|
25
|
+
setIsEnabled: (key: string, value: boolean) => void;
|
|
26
|
+
resetKeyState: (key: string[]) => void;
|
|
27
|
+
resetState: (excludedKey: string[]) => void;
|
|
28
|
+
};
|
|
29
|
+
type AsyncState<T> = {
|
|
30
|
+
states: StateSlice<T>;
|
|
31
|
+
} & Actions<T>;
|
|
32
|
+
export declare const useAsyncStateStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AsyncState<unknown>>>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=useAsyncStateStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsyncStateStore.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAsync/useAsyncStateStore.ts"],"names":[],"mappings":"AAEA,KAAK,MAAM,CAAC,CAAC,IAAI;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,UAAU,CAAC,CAAC,IAAI;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;CAC1B,CAAC;AAEF,KAAK,OAAO,CAAC,CAAC,IAAI;IAChB,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC;IACtC,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACvC,UAAU,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,KAAK,UAAU,CAAC,CAAC,IAAI;IACnB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CACvB,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAgDf,eAAO,MAAM,kBAAkB,kFAoL5B,CAAC"}
|