@intlayer/design-system 2.0.12 → 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 +1871 -395
- 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 +11 -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 +6 -4
- 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 +7 -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 +10 -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 +22 -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 +79 -40
- package/dist/MarkDownRender-BeQGOIow.cjs +0 -14
- package/dist/MarkDownRender-gURA8GAt.js +0 -315
- 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/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 -9
- 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 -11
- package/dist/components/IDE/CodeRender.es.js +0 -833
- package/dist/components/IDE/IDE.cjs.js +0 -1
- package/dist/components/IDE/IDE.es.js +0 -127
- package/dist/components/IDE/MarkDownRender.cjs.js +0 -1
- package/dist/components/IDE/MarkDownRender.es.js +0 -7
- 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 -6
- package/dist/components/RedirectionButton/RedirectionButton.d.ts +0 -8
- package/dist/components/RedirectionButton/RedirectionButton.es.js +0 -42
- 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 -118
- 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/index.cjs.js +0 -1
- package/dist/components/index.es.js +0 -63
- 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-B2ncVbtX.cjs +0 -1
- package/dist/index-D-PWvdb-.js +0 -91
- 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,168 @@
|
|
|
1
|
+
import { create } from "zustand";
|
|
2
|
+
const createDefaultStates = () => ({
|
|
3
|
+
isFetched: false,
|
|
4
|
+
fetchedDateTime: null,
|
|
5
|
+
isLoading: false,
|
|
6
|
+
isInvalidated: false,
|
|
7
|
+
error: null,
|
|
8
|
+
isSuccess: false,
|
|
9
|
+
data: null,
|
|
10
|
+
retryCount: 0,
|
|
11
|
+
isEnabled: true
|
|
12
|
+
});
|
|
13
|
+
const ensureArray = (value) => {
|
|
14
|
+
if (!value) {
|
|
15
|
+
return [];
|
|
16
|
+
} else if (Array.isArray(value)) {
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
return [value];
|
|
20
|
+
};
|
|
21
|
+
const getMatchKeys = (selectorsKeys, keysWithArgs) => {
|
|
22
|
+
const matchedKeys = keysWithArgs.filter(
|
|
23
|
+
(key) => selectorsKeys.includes(key.split("/")[0])
|
|
24
|
+
);
|
|
25
|
+
return matchedKeys;
|
|
26
|
+
};
|
|
27
|
+
const useAsyncStateStore = create((set, get) => ({
|
|
28
|
+
states: {},
|
|
29
|
+
getStates: (key) => get().states[key] ?? createDefaultStates(),
|
|
30
|
+
setIsFetched: (key, value) => set((state) => ({
|
|
31
|
+
states: {
|
|
32
|
+
...state.states,
|
|
33
|
+
[key]: {
|
|
34
|
+
...state.states[key] ?? createDefaultStates(),
|
|
35
|
+
isFetched: value,
|
|
36
|
+
fetchedDateTime: /* @__PURE__ */ new Date()
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
})),
|
|
40
|
+
setIsLoading: (key, value) => set((state) => ({
|
|
41
|
+
states: {
|
|
42
|
+
...state.states,
|
|
43
|
+
[key]: {
|
|
44
|
+
...state.states[key] ?? createDefaultStates(),
|
|
45
|
+
isLoading: value
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
})),
|
|
49
|
+
setError: (key, value) => set((state) => ({
|
|
50
|
+
states: {
|
|
51
|
+
...state.states,
|
|
52
|
+
[key]: {
|
|
53
|
+
...state.states[key] ?? createDefaultStates(),
|
|
54
|
+
error: value
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
})),
|
|
58
|
+
setIsSuccess: (key, value) => set((state) => ({
|
|
59
|
+
states: {
|
|
60
|
+
...state.states,
|
|
61
|
+
[key]: {
|
|
62
|
+
...state.states[key] ?? createDefaultStates(),
|
|
63
|
+
isSuccess: value
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
})),
|
|
67
|
+
setIsInvalidated: (key, value) => set((state) => {
|
|
68
|
+
if (value === true) {
|
|
69
|
+
const allKeys = Object.keys(state.states);
|
|
70
|
+
const matchedKeys = getMatchKeys([key], allKeys);
|
|
71
|
+
matchedKeys.forEach((key2) => {
|
|
72
|
+
sessionStorage.removeItem(key2);
|
|
73
|
+
});
|
|
74
|
+
return {
|
|
75
|
+
states: {
|
|
76
|
+
...state.states,
|
|
77
|
+
[key]: {
|
|
78
|
+
...createDefaultStates(),
|
|
79
|
+
isInvalidated: true
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
states: {
|
|
86
|
+
...state.states,
|
|
87
|
+
[key]: {
|
|
88
|
+
...state.states[key] ?? createDefaultStates(),
|
|
89
|
+
isInvalidated: false
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}),
|
|
94
|
+
setData: (key, value) => set((state) => ({
|
|
95
|
+
states: {
|
|
96
|
+
...state.states,
|
|
97
|
+
[key]: {
|
|
98
|
+
...state.states[key] ?? createDefaultStates(),
|
|
99
|
+
data: value
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
})),
|
|
103
|
+
incrementRetryCount: (key) => set((state) => {
|
|
104
|
+
const prevState = state.states[key] ?? createDefaultStates();
|
|
105
|
+
return {
|
|
106
|
+
states: {
|
|
107
|
+
...state.states,
|
|
108
|
+
[key]: {
|
|
109
|
+
...prevState,
|
|
110
|
+
retryCount: prevState.retryCount + 1
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}),
|
|
115
|
+
resetRetryCount: (key) => set((state) => {
|
|
116
|
+
const prevState = state.states[key] ?? createDefaultStates();
|
|
117
|
+
return {
|
|
118
|
+
states: {
|
|
119
|
+
...state.states,
|
|
120
|
+
[key]: {
|
|
121
|
+
...prevState,
|
|
122
|
+
retryCount: 0
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}),
|
|
127
|
+
setIsEnabled: (key, value) => set((state) => ({
|
|
128
|
+
states: {
|
|
129
|
+
...state.states,
|
|
130
|
+
[key]: {
|
|
131
|
+
...state.states[key] ?? createDefaultStates(),
|
|
132
|
+
isEnabled: value
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
})),
|
|
136
|
+
resetKeyState: (key) => set((state) => {
|
|
137
|
+
const keys = ensureArray(key);
|
|
138
|
+
const allKeys = Object.keys(state.states);
|
|
139
|
+
const matchedKeys = getMatchKeys(keys, allKeys);
|
|
140
|
+
const newStates = { ...state.states };
|
|
141
|
+
matchedKeys.forEach((k) => {
|
|
142
|
+
newStates[k] = createDefaultStates();
|
|
143
|
+
});
|
|
144
|
+
return {
|
|
145
|
+
states: newStates
|
|
146
|
+
};
|
|
147
|
+
}),
|
|
148
|
+
resetState: (excludedKey) => set((state) => {
|
|
149
|
+
const excludedKeys = ensureArray(excludedKey);
|
|
150
|
+
const allKeys = Object.keys(state.states);
|
|
151
|
+
const matchedKeys = getMatchKeys(excludedKeys, allKeys);
|
|
152
|
+
const newStates = Object.keys(state.states).reduce((acc, key) => {
|
|
153
|
+
if (matchedKeys.includes(key)) {
|
|
154
|
+
acc[key] = state.states[key];
|
|
155
|
+
} else {
|
|
156
|
+
acc[key] = createDefaultStates();
|
|
157
|
+
}
|
|
158
|
+
return acc;
|
|
159
|
+
}, {});
|
|
160
|
+
return {
|
|
161
|
+
states: newStates
|
|
162
|
+
};
|
|
163
|
+
})
|
|
164
|
+
}));
|
|
165
|
+
export {
|
|
166
|
+
useAsyncStateStore
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=useAsyncStateStore.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsyncStateStore.mjs","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":["key"],"mappings":";AAqCA,MAAM,sBAAsB,OAAqB;AAAA,EAC/C,WAAW;AAAA,EACX,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,eAAe;AAAA,EACf,OAAO;AAAA,EACP,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AACb;AAQA,MAAM,cAAc,CAAI,UAAyB;AAC/C,MAAI,CAAC,OAAO;AACV,WAAO;EACE,WAAA,MAAM,QAAQ,KAAK,GAAG;AACxB,WAAA;AAAA,EACT;AAEA,SAAO,CAAC,KAAK;AACf;AASA,MAAM,eAAe,CACnB,eACA,iBACa;AACb,QAAM,cAAwB,aAAa;AAAA,IAAO,CAAC,QACjD,cAAc,SAAS,IAAI,MAAM,GAAG,EAAE,CAAC,CAAC;AAAA,EAAA;AAGnC,SAAA;AACT;AAEO,MAAM,qBAAqB,OAA4B,CAAC,KAAK,SAAS;AAAA,EAC3E,QAAQ,CAAC;AAAA,EAET,WAAW,CAAC,QACT,IAAA,EAAM,OAAO,GAAG,KAAyB,oBAA6B;AAAA,EAEzE,cAAc,CAAC,KAAK,UAClB,IAAI,CAAC,WAAW;AAAA,IACd,QAAQ;AAAA,MACN,GAAG,MAAM;AAAA,MACT,CAAC,GAAG,GAAG;AAAA,QACL,GAAK,MAAM,OAAO,GAAG,KACnB,oBAA6B;AAAA,QAC/B,WAAW;AAAA,QACX,qCAAqB,KAAK;AAAA,MAC5B;AAAA,IACF;AAAA,EAAA,EACA;AAAA,EAEJ,cAAc,CAAC,KAAK,UAClB,IAAI,CAAC,WAAW;AAAA,IACd,QAAQ;AAAA,MACN,GAAG,MAAM;AAAA,MACT,CAAC,GAAG,GAAG;AAAA,QACL,GAAK,MAAM,OAAO,GAAG,KACnB,oBAA6B;AAAA,QAC/B,WAAW;AAAA,MACb;AAAA,IACF;AAAA,EAAA,EACA;AAAA,EAEJ,UAAU,CAAC,KAAK,UACd,IAAI,CAAC,WAAW;AAAA,IACd,QAAQ;AAAA,MACN,GAAG,MAAM;AAAA,MACT,CAAC,GAAG,GAAG;AAAA,QACL,GAAK,MAAM,OAAO,GAAG,KACnB,oBAA6B;AAAA,QAC/B,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EAAA,EACA;AAAA,EAEJ,cAAc,CAAC,KAAK,UAClB,IAAI,CAAC,WAAW;AAAA,IACd,QAAQ;AAAA,MACN,GAAG,MAAM;AAAA,MACT,CAAC,GAAG,GAAG;AAAA,QACL,GAAK,MAAM,OAAO,GAAG,KACnB,oBAA6B;AAAA,QAC/B,WAAW;AAAA,MACb;AAAA,IACF;AAAA,EAAA,EACA;AAAA,EAEJ,kBAAkB,CAAC,KAAK,UACtB,IAAI,CAAC,UAAU;AACb,QAAI,UAAU,MAAM;AAClB,YAAM,UAAU,OAAO,KAAK,MAAM,MAAM;AACxC,YAAM,cAAc,aAAa,CAAC,GAAG,GAAG,OAAO;AAEnC,kBAAA,QAAQ,CAACA,SAAQ;AAC3B,uBAAe,WAAWA,IAAG;AAAA,MAAA,CAC9B;AAEM,aAAA;AAAA,QACL,QAAQ;AAAA,UACN,GAAG,MAAM;AAAA,UACT,CAAC,GAAG,GAAG;AAAA,YACL,GAAG,oBAA6B;AAAA,YAChC,eAAe;AAAA,UACjB;AAAA,QACF;AAAA,MAAA;AAAA,IAEJ;AAEO,WAAA;AAAA,MACL,QAAQ;AAAA,QACN,GAAG,MAAM;AAAA,QACT,CAAC,GAAG,GAAG;AAAA,UACL,GAAK,MAAM,OAAO,GAAG,KACnB,oBAA6B;AAAA,UAC/B,eAAe;AAAA,QACjB;AAAA,MACF;AAAA,IAAA;AAAA,EACF,CACD;AAAA,EAEH,SAAS,CAAC,KAAK,UACb,IAAI,CAAC,WAAW;AAAA,IACd,QAAQ;AAAA,MACN,GAAG,MAAM;AAAA,MACT,CAAC,GAAG,GAAG;AAAA,QACL,GAAK,MAAM,OAAO,GAAG,KACnB,oBAA6B;AAAA,QAC/B,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EAAA,EACA;AAAA,EAEJ,qBAAqB,CAAC,QACpB,IAAI,CAAC,UAAU;AACb,UAAM,YACH,MAAM,OAAO,GAAG,KACjB,oBAA6B;AACxB,WAAA;AAAA,MACL,QAAQ;AAAA,QACN,GAAG,MAAM;AAAA,QACT,CAAC,GAAG,GAAG;AAAA,UACL,GAAG;AAAA,UACH,YAAY,UAAU,aAAa;AAAA,QACrC;AAAA,MACF;AAAA,IAAA;AAAA,EACF,CACD;AAAA,EAEH,iBAAiB,CAAC,QAChB,IAAI,CAAC,UAAU;AACb,UAAM,YACH,MAAM,OAAO,GAAG,KACjB,oBAA6B;AACxB,WAAA;AAAA,MACL,QAAQ;AAAA,QACN,GAAG,MAAM;AAAA,QACT,CAAC,GAAG,GAAG;AAAA,UACL,GAAG;AAAA,UACH,YAAY;AAAA,QACd;AAAA,MACF;AAAA,IAAA;AAAA,EACF,CACD;AAAA,EAEH,cAAc,CAAC,KAAK,UAClB,IAAI,CAAC,WAAW;AAAA,IACd,QAAQ;AAAA,MACN,GAAG,MAAM;AAAA,MACT,CAAC,GAAG,GAAG;AAAA,QACL,GAAK,MAAM,OAAO,GAAG,KACnB,oBAA6B;AAAA,QAC/B,WAAW;AAAA,MACb;AAAA,IACF;AAAA,EAAA,EACA;AAAA,EAEJ,eAAe,CAAC,QACd,IAAI,CAAC,UAAU;AACP,UAAA,OAAO,YAAY,GAAG;AAE5B,UAAM,UAAU,OAAO,KAAK,MAAM,MAAM;AAClC,UAAA,cAAc,aAAa,MAAM,OAAO;AAE9C,UAAM,YAAY,EAAE,GAAG,MAAM,OAAO;AACxB,gBAAA,QAAQ,CAAC,MAAM;AACf,gBAAA,CAAC,IAAI;IAA6B,CAC7C;AACM,WAAA;AAAA,MACL,QAAQ;AAAA,IAAA;AAAA,EACV,CACD;AAAA,EAEH,YAAY,CAAC,gBACX,IAAI,CAAC,UAAU;AACP,UAAA,eAAe,YAAY,WAAW;AAE5C,UAAM,UAAU,OAAO,KAAK,MAAM,MAAM;AAClC,UAAA,cAAc,aAAa,cAAc,OAAO;AAEhD,UAAA,YAAY,OAAO,KAAK,MAAM,MAAM,EAAE,OAAO,CAAC,KAAK,QAAQ;AAC3D,UAAA,YAAY,SAAS,GAAG,GAAG;AAC7B,YAAI,GAAG,IAAI,MAAM,OAAO,GAAG;AAAA,MAAA,OACtB;AACD,YAAA,GAAG,IAAI;MACb;AACO,aAAA;AAAA,IACT,GAAG,CAAyB,CAAA;AAErB,WAAA;AAAA,MACL,QAAQ;AAAA,IAAA;AAAA,EACV,CACD;AACL,EAAE;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const hooks_useAsync_useAsync = require("./useAsync.cjs");
|
|
5
|
+
const useAsyncWrapper = (key, asyncFunction, options) => (...args) => hooks_useAsync_useAsync.useAsync(key, asyncFunction, {
|
|
6
|
+
...options,
|
|
7
|
+
args
|
|
8
|
+
});
|
|
9
|
+
exports.useAsyncWrapper = useAsyncWrapper;
|
|
10
|
+
//# sourceMappingURL=useAsyncWrapper.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsyncWrapper.cjs","sources":["../../../src/hooks/useAsync/useAsyncWrapper.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n'use client';\n\nimport { UseAsyncOptions, UseAsyncResult, useAsync } from './useAsync';\n\n/**\n * This hook allow the declaration of a custom hook that wraps an async function.\n * It provides a simpler way to make your useAsync hook more readable and maintainable.\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 * // Define a custom hook that wraps the fetchUserData function\n * const useUserDetails = useAsyncWrapper('userDetails', fetchUserData);\n *\n * // Use the custom hook to fetch user data\n * const UserDetails = ({ userId }) => {\n * const {\n * isLoading,\n * data,\n * error,\n * revalidate,\n * } = useUserDetails(userId);\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 useAsyncWrapper =\n <U extends string, T extends (...args: any[]) => Promise<any>>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>\n ): ((...args: Parameters<T>) => UseAsyncResult<U, T>) =>\n (...args: Parameters<T>) =>\n useAsync(key, asyncFunction, {\n ...options,\n args,\n });\n"],"names":["useAsync"],"mappings":";;;;AAuCa,MAAA,kBACX,CACE,KACA,eACA,YAEF,IAAI,SACFA,wBAAAA,SAAS,KAAK,eAAe;AAAA,EAC3B,GAAG;AAAA,EACH;AACF,CAAC;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseAsyncOptions, UseAsyncResult } from './useAsync';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This hook allow the declaration of a custom hook that wraps an async function.
|
|
5
|
+
* It provides a simpler way to make your useAsync hook more readable and maintainable.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* // Example of using useAsync to manage fetching user data from an API.
|
|
9
|
+
* const fetchUserData = async (userId) => {
|
|
10
|
+
* const response = await fetch(`/api/users/${userId}`);
|
|
11
|
+
* if (!response.ok) throw new Error('Failed to fetch');
|
|
12
|
+
* return await response.json();
|
|
13
|
+
* };
|
|
14
|
+
*
|
|
15
|
+
* // Define a custom hook that wraps the fetchUserData function
|
|
16
|
+
* const useUserDetails = useAsyncWrapper('userDetails', fetchUserData);
|
|
17
|
+
*
|
|
18
|
+
* // Use the custom hook to fetch user data
|
|
19
|
+
* const UserDetails = ({ userId }) => {
|
|
20
|
+
* const {
|
|
21
|
+
* isLoading,
|
|
22
|
+
* data,
|
|
23
|
+
* error,
|
|
24
|
+
* revalidate,
|
|
25
|
+
* } = useUserDetails(userId);
|
|
26
|
+
*
|
|
27
|
+
* if (isLoading) return <div>Loading...</div>;
|
|
28
|
+
* if (error) return <div>Error: {error}</div>;
|
|
29
|
+
* return (
|
|
30
|
+
* <div>
|
|
31
|
+
* <h1>{data.name}</h1>
|
|
32
|
+
* <button onClick={() => revalidate()}>Refresh</button>
|
|
33
|
+
* </div>
|
|
34
|
+
* );
|
|
35
|
+
* };
|
|
36
|
+
*/
|
|
37
|
+
export declare const useAsyncWrapper: <U extends string, T extends (...args: any[]) => Promise<any>>(key: U, asyncFunction: T, options?: UseAsyncOptions<T>) => ((...args: Parameters<T>) => UseAsyncResult<U, T>);
|
|
38
|
+
//# sourceMappingURL=useAsyncWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsyncWrapper.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAsync/useAsyncWrapper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,eAAe,GACzB,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,OACtD,CAAC,iBACS,CAAC,YACN,eAAe,CAAC,CAAC,CAAC,KAC3B,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAKhD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useAsync } from "./useAsync.mjs";
|
|
3
|
+
const useAsyncWrapper = (key, asyncFunction, options) => (...args) => useAsync(key, asyncFunction, {
|
|
4
|
+
...options,
|
|
5
|
+
args
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
useAsyncWrapper
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useAsyncWrapper.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsyncWrapper.mjs","sources":["../../../src/hooks/useAsync/useAsyncWrapper.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n'use client';\n\nimport { UseAsyncOptions, UseAsyncResult, useAsync } from './useAsync';\n\n/**\n * This hook allow the declaration of a custom hook that wraps an async function.\n * It provides a simpler way to make your useAsync hook more readable and maintainable.\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 * // Define a custom hook that wraps the fetchUserData function\n * const useUserDetails = useAsyncWrapper('userDetails', fetchUserData);\n *\n * // Use the custom hook to fetch user data\n * const UserDetails = ({ userId }) => {\n * const {\n * isLoading,\n * data,\n * error,\n * revalidate,\n * } = useUserDetails(userId);\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 useAsyncWrapper =\n <U extends string, T extends (...args: any[]) => Promise<any>>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>\n ): ((...args: Parameters<T>) => UseAsyncResult<U, T>) =>\n (...args: Parameters<T>) =>\n useAsync(key, asyncFunction, {\n ...options,\n args,\n });\n"],"names":[],"mappings":";;AAuCa,MAAA,kBACX,CACE,KACA,eACA,YAEF,IAAI,SACF,SAAS,KAAK,eAAe;AAAA,EAC3B,GAAG;AAAA,EACH;AACF,CAAC;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const require$$0 = require("react");
|
|
5
|
+
const getBreakpointFromSize = (breakpoint) => {
|
|
6
|
+
switch (breakpoint) {
|
|
7
|
+
case "sm":
|
|
8
|
+
return 640;
|
|
9
|
+
case "md":
|
|
10
|
+
return 768;
|
|
11
|
+
case "lg":
|
|
12
|
+
return 1024;
|
|
13
|
+
case "xl":
|
|
14
|
+
return 1280;
|
|
15
|
+
case "2xl":
|
|
16
|
+
return 1536;
|
|
17
|
+
default:
|
|
18
|
+
return breakpoint;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const checkIsMobileUserAgent = () => {
|
|
22
|
+
if (typeof window === "undefined") return;
|
|
23
|
+
const userAgent = window.navigator?.userAgent;
|
|
24
|
+
if (typeof userAgent === "undefined") return;
|
|
25
|
+
return /android|bb\d+|meego|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(
|
|
26
|
+
userAgent
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
const checkIsMobileScreen = (breakpoint) => {
|
|
30
|
+
if (typeof window === "undefined") return;
|
|
31
|
+
return (window?.innerWidth ?? 0) <= breakpoint;
|
|
32
|
+
};
|
|
33
|
+
const calculateIsMobile = (breakpoint) => {
|
|
34
|
+
const breakpointValue = getBreakpointFromSize(breakpoint);
|
|
35
|
+
const isMobileUserAgent = checkIsMobileUserAgent();
|
|
36
|
+
const isMobileScreen = checkIsMobileScreen(breakpointValue);
|
|
37
|
+
const isMobile = isMobileScreen ?? isMobileUserAgent;
|
|
38
|
+
return {
|
|
39
|
+
isMobileScreen,
|
|
40
|
+
// Is the screen width within a mobile breakpoint.
|
|
41
|
+
isMobileUserAgent,
|
|
42
|
+
// Is the user agent indicative of a mobile device.
|
|
43
|
+
isMobile
|
|
44
|
+
// Combines both checks to determine if the device is mobile.
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
const useDevice = (breakpoint = "md") => {
|
|
48
|
+
const [result, setResult] = require$$0.useState(
|
|
49
|
+
calculateIsMobile(breakpoint)
|
|
50
|
+
);
|
|
51
|
+
require$$0.useEffect(() => {
|
|
52
|
+
const handleResize = () => {
|
|
53
|
+
setResult(calculateIsMobile(breakpoint));
|
|
54
|
+
};
|
|
55
|
+
window.addEventListener("resize", handleResize);
|
|
56
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
57
|
+
}, [breakpoint]);
|
|
58
|
+
return result;
|
|
59
|
+
};
|
|
60
|
+
exports.useDevice = useDevice;
|
|
61
|
+
//# sourceMappingURL=useDevice.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDevice.cjs","sources":["../../src/hooks/useDevice.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\n\nexport type SizeType = 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\nconst getBreakpointFromSize = (breakpoint: SizeType | number) => {\n switch (breakpoint) {\n case 'sm':\n return 640;\n case 'md':\n return 768;\n case 'lg':\n return 1024;\n case 'xl':\n return 1280;\n case '2xl':\n return 1536;\n default:\n return breakpoint;\n }\n};\n\nconst checkIsMobileUserAgent = (): boolean | undefined => {\n if (typeof window === 'undefined') return;\n\n const userAgent = window.navigator?.userAgent;\n\n if (typeof userAgent === 'undefined') return;\n\n // eslint-disable-next-line sonarjs/regex-complexity\n return /android|bb\\d+|meego|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(\n userAgent\n );\n};\n\nconst checkIsMobileScreen = (breakpoint: number): boolean | undefined => {\n if (typeof window === 'undefined') return;\n\n return (window?.innerWidth ?? 0) <= breakpoint;\n};\n\ntype UseDeviceState = {\n isMobileScreen: boolean | undefined;\n isMobileUserAgent: boolean | undefined;\n isMobile: boolean | undefined;\n};\n\nconst calculateIsMobile = (breakpoint: SizeType | number) => {\n const breakpointValue = getBreakpointFromSize(breakpoint);\n\n const isMobileUserAgent = checkIsMobileUserAgent();\n const isMobileScreen = checkIsMobileScreen(breakpointValue);\n const isMobile = isMobileScreen ?? isMobileUserAgent;\n\n return {\n isMobileScreen, // Is the screen width within a mobile breakpoint.\n isMobileUserAgent, // Is the user agent indicative of a mobile device.\n isMobile, // Combines both checks to determine if the device is mobile.\n };\n};\n\nexport const useDevice = (breakpoint: SizeType | number = 'md') => {\n const [result, setResult] = useState<UseDeviceState>(\n calculateIsMobile(breakpoint)\n );\n\n useEffect(() => {\n const handleResize = () => {\n setResult(calculateIsMobile(breakpoint));\n };\n\n window.addEventListener('resize', handleResize);\n\n // Cleanup listener on unmount\n return () => window.removeEventListener('resize', handleResize);\n }, [breakpoint]); // Empty dependency array ensures this effect runs only once on mount\n\n return result;\n};\n"],"names":["useState","useEffect"],"mappings":";;;;AAMA,MAAM,wBAAwB,CAAC,eAAkC;AAC/D,UAAQ,YAAY;AAAA,IAClB,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT;AACS,aAAA;AAAA,EACX;AACF;AAEA,MAAM,yBAAyB,MAA2B;AACpD,MAAA,OAAO,WAAW,YAAa;AAE7B,QAAA,YAAY,OAAO,WAAW;AAEhC,MAAA,OAAO,cAAc,YAAa;AAGtC,SAAO,mVAAmV;AAAA,IACxV;AAAA,EAAA;AAEJ;AAEA,MAAM,sBAAsB,CAAC,eAA4C;AACnE,MAAA,OAAO,WAAW,YAAa;AAE3B,UAAA,QAAQ,cAAc,MAAM;AACtC;AAQA,MAAM,oBAAoB,CAAC,eAAkC;AACrD,QAAA,kBAAkB,sBAAsB,UAAU;AAExD,QAAM,oBAAoB;AACpB,QAAA,iBAAiB,oBAAoB,eAAe;AAC1D,QAAM,WAAW,kBAAkB;AAE5B,SAAA;AAAA,IACL;AAAA;AAAA,IACA;AAAA;AAAA,IACA;AAAA;AAAA,EAAA;AAEJ;AAEa,MAAA,YAAY,CAAC,aAAgC,SAAS;AAC3D,QAAA,CAAC,QAAQ,SAAS,IAAIA,WAAA;AAAA,IAC1B,kBAAkB,UAAU;AAAA,EAAA;AAG9BC,aAAAA,UAAU,MAAM;AACd,UAAM,eAAe,MAAM;AACf,gBAAA,kBAAkB,UAAU,CAAC;AAAA,IAAA;AAGlC,WAAA,iBAAiB,UAAU,YAAY;AAG9C,WAAO,MAAM,OAAO,oBAAoB,UAAU,YAAY;AAAA,EAAA,GAC7D,CAAC,UAAU,CAAC;AAER,SAAA;AACT;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDevice.d.ts","sourceRoot":"","sources":["../../src/hooks/useDevice.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAsCzD,KAAK,cAAc,GAAG;IACpB,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,iBAAiB,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAgBF,eAAO,MAAM,SAAS,gBAAgB,QAAQ,GAAG,MAAM,mBAiBtD,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
const getBreakpointFromSize = (breakpoint) => {
|
|
4
|
+
switch (breakpoint) {
|
|
5
|
+
case "sm":
|
|
6
|
+
return 640;
|
|
7
|
+
case "md":
|
|
8
|
+
return 768;
|
|
9
|
+
case "lg":
|
|
10
|
+
return 1024;
|
|
11
|
+
case "xl":
|
|
12
|
+
return 1280;
|
|
13
|
+
case "2xl":
|
|
14
|
+
return 1536;
|
|
15
|
+
default:
|
|
16
|
+
return breakpoint;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const checkIsMobileUserAgent = () => {
|
|
20
|
+
if (typeof window === "undefined") return;
|
|
21
|
+
const userAgent = window.navigator?.userAgent;
|
|
22
|
+
if (typeof userAgent === "undefined") return;
|
|
23
|
+
return /android|bb\d+|meego|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(
|
|
24
|
+
userAgent
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
const checkIsMobileScreen = (breakpoint) => {
|
|
28
|
+
if (typeof window === "undefined") return;
|
|
29
|
+
return (window?.innerWidth ?? 0) <= breakpoint;
|
|
30
|
+
};
|
|
31
|
+
const calculateIsMobile = (breakpoint) => {
|
|
32
|
+
const breakpointValue = getBreakpointFromSize(breakpoint);
|
|
33
|
+
const isMobileUserAgent = checkIsMobileUserAgent();
|
|
34
|
+
const isMobileScreen = checkIsMobileScreen(breakpointValue);
|
|
35
|
+
const isMobile = isMobileScreen ?? isMobileUserAgent;
|
|
36
|
+
return {
|
|
37
|
+
isMobileScreen,
|
|
38
|
+
// Is the screen width within a mobile breakpoint.
|
|
39
|
+
isMobileUserAgent,
|
|
40
|
+
// Is the user agent indicative of a mobile device.
|
|
41
|
+
isMobile
|
|
42
|
+
// Combines both checks to determine if the device is mobile.
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
const useDevice = (breakpoint = "md") => {
|
|
46
|
+
const [result, setResult] = useState(
|
|
47
|
+
calculateIsMobile(breakpoint)
|
|
48
|
+
);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
const handleResize = () => {
|
|
51
|
+
setResult(calculateIsMobile(breakpoint));
|
|
52
|
+
};
|
|
53
|
+
window.addEventListener("resize", handleResize);
|
|
54
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
55
|
+
}, [breakpoint]);
|
|
56
|
+
return result;
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
useDevice
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=useDevice.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDevice.mjs","sources":["../../src/hooks/useDevice.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\n\nexport type SizeType = 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\nconst getBreakpointFromSize = (breakpoint: SizeType | number) => {\n switch (breakpoint) {\n case 'sm':\n return 640;\n case 'md':\n return 768;\n case 'lg':\n return 1024;\n case 'xl':\n return 1280;\n case '2xl':\n return 1536;\n default:\n return breakpoint;\n }\n};\n\nconst checkIsMobileUserAgent = (): boolean | undefined => {\n if (typeof window === 'undefined') return;\n\n const userAgent = window.navigator?.userAgent;\n\n if (typeof userAgent === 'undefined') return;\n\n // eslint-disable-next-line sonarjs/regex-complexity\n return /android|bb\\d+|meego|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(\n userAgent\n );\n};\n\nconst checkIsMobileScreen = (breakpoint: number): boolean | undefined => {\n if (typeof window === 'undefined') return;\n\n return (window?.innerWidth ?? 0) <= breakpoint;\n};\n\ntype UseDeviceState = {\n isMobileScreen: boolean | undefined;\n isMobileUserAgent: boolean | undefined;\n isMobile: boolean | undefined;\n};\n\nconst calculateIsMobile = (breakpoint: SizeType | number) => {\n const breakpointValue = getBreakpointFromSize(breakpoint);\n\n const isMobileUserAgent = checkIsMobileUserAgent();\n const isMobileScreen = checkIsMobileScreen(breakpointValue);\n const isMobile = isMobileScreen ?? isMobileUserAgent;\n\n return {\n isMobileScreen, // Is the screen width within a mobile breakpoint.\n isMobileUserAgent, // Is the user agent indicative of a mobile device.\n isMobile, // Combines both checks to determine if the device is mobile.\n };\n};\n\nexport const useDevice = (breakpoint: SizeType | number = 'md') => {\n const [result, setResult] = useState<UseDeviceState>(\n calculateIsMobile(breakpoint)\n );\n\n useEffect(() => {\n const handleResize = () => {\n setResult(calculateIsMobile(breakpoint));\n };\n\n window.addEventListener('resize', handleResize);\n\n // Cleanup listener on unmount\n return () => window.removeEventListener('resize', handleResize);\n }, [breakpoint]); // Empty dependency array ensures this effect runs only once on mount\n\n return result;\n};\n"],"names":[],"mappings":";;AAMA,MAAM,wBAAwB,CAAC,eAAkC;AAC/D,UAAQ,YAAY;AAAA,IAClB,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT;AACS,aAAA;AAAA,EACX;AACF;AAEA,MAAM,yBAAyB,MAA2B;AACpD,MAAA,OAAO,WAAW,YAAa;AAE7B,QAAA,YAAY,OAAO,WAAW;AAEhC,MAAA,OAAO,cAAc,YAAa;AAGtC,SAAO,mVAAmV;AAAA,IACxV;AAAA,EAAA;AAEJ;AAEA,MAAM,sBAAsB,CAAC,eAA4C;AACnE,MAAA,OAAO,WAAW,YAAa;AAE3B,UAAA,QAAQ,cAAc,MAAM;AACtC;AAQA,MAAM,oBAAoB,CAAC,eAAkC;AACrD,QAAA,kBAAkB,sBAAsB,UAAU;AAExD,QAAM,oBAAoB;AACpB,QAAA,iBAAiB,oBAAoB,eAAe;AAC1D,QAAM,WAAW,kBAAkB;AAE5B,SAAA;AAAA,IACL;AAAA;AAAA,IACA;AAAA;AAAA,IACA;AAAA;AAAA,EAAA;AAEJ;AAEa,MAAA,YAAY,CAAC,aAAgC,SAAS;AAC3D,QAAA,CAAC,QAAQ,SAAS,IAAI;AAAA,IAC1B,kBAAkB,UAAU;AAAA,EAAA;AAG9B,YAAU,MAAM;AACd,UAAM,eAAe,MAAM;AACf,gBAAA,kBAAkB,UAAU,CAAC;AAAA,IAAA;AAGlC,WAAA,iBAAiB,UAAU,YAAY;AAG9C,WAAO,MAAM,OAAO,oBAAoB,UAAU,YAAY;AAAA,EAAA,GAC7D,CAAC,UAAU,CAAC;AAER,SAAA;AACT;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const localeDictionaries = require("@intlayer/dictionaries-entry");
|
|
5
|
+
const merge = require("deepmerge");
|
|
6
|
+
const require$$0 = require("react");
|
|
7
|
+
const hooks_intlayerAPIHooks = require("./intlayerAPIHooks.cjs");
|
|
8
|
+
const useGetAllDictionaries = () => {
|
|
9
|
+
const { data: onlineDictionariesAPI, isLoading } = hooks_intlayerAPIHooks.useGetDictionaries();
|
|
10
|
+
const onlineDictionaries = require$$0.useMemo(
|
|
11
|
+
() => (onlineDictionariesAPI?.data ?? []).reduce(
|
|
12
|
+
(acc, dictionary) => {
|
|
13
|
+
acc[dictionary.key] = dictionary;
|
|
14
|
+
return acc;
|
|
15
|
+
},
|
|
16
|
+
{}
|
|
17
|
+
),
|
|
18
|
+
[onlineDictionariesAPI]
|
|
19
|
+
);
|
|
20
|
+
const allDictionaries = require$$0.useMemo(
|
|
21
|
+
() => merge(onlineDictionaries ?? {}, localeDictionaries),
|
|
22
|
+
[onlineDictionaries]
|
|
23
|
+
);
|
|
24
|
+
return {
|
|
25
|
+
online: onlineDictionaries,
|
|
26
|
+
locale: localeDictionaries,
|
|
27
|
+
all: allDictionaries,
|
|
28
|
+
isLoading
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
exports.useGetAllDictionaries = useGetAllDictionaries;
|
|
32
|
+
//# sourceMappingURL=useGetAllDictionaries.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetAllDictionaries.cjs","sources":["../../src/hooks/useGetAllDictionaries.tsx"],"sourcesContent":["'use client';\n\n/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\nimport { Dictionary } from '@intlayer/core';\nimport localeDictionaries from '@intlayer/dictionaries-entry';\nimport merge from 'deepmerge';\nimport { useMemo } from 'react';\nimport { useGetDictionaries } from './intlayerAPIHooks';\n\nexport const useGetAllDictionaries = () => {\n const { data: onlineDictionariesAPI, isLoading } = useGetDictionaries();\n\n const onlineDictionaries: Record<string, Dictionary> = useMemo(\n () =>\n (onlineDictionariesAPI?.data ?? []).reduce(\n (acc, dictionary) => {\n acc[dictionary.key] = dictionary;\n return acc;\n },\n {} as Record<string, Dictionary>\n ),\n [onlineDictionariesAPI]\n );\n\n const allDictionaries: Record<string, Dictionary> = useMemo(\n () => merge(onlineDictionaries ?? {}, localeDictionaries),\n [onlineDictionaries]\n );\n\n return {\n online: onlineDictionaries,\n locale: localeDictionaries,\n all: allDictionaries,\n isLoading,\n };\n};\n"],"names":["useGetDictionaries","useMemo"],"mappings":";;;;;;;AAaO,MAAM,wBAAwB,MAAM;AACzC,QAAM,EAAE,MAAM,uBAAuB,cAAcA,uBAAmB,mBAAA;AAEtE,QAAM,qBAAiDC,WAAA;AAAA,IACrD,OACG,uBAAuB,QAAQ,CAAA,GAAI;AAAA,MAClC,CAAC,KAAK,eAAe;AACf,YAAA,WAAW,GAAG,IAAI;AACf,eAAA;AAAA,MACT;AAAA,MACA,CAAC;AAAA,IACH;AAAA,IACF,CAAC,qBAAqB;AAAA,EAAA;AAGxB,QAAM,kBAA8CA,WAAA;AAAA,IAClD,MAAM,MAAM,sBAAsB,IAAI,kBAAkB;AAAA,IACxD,CAAC,kBAAkB;AAAA,EAAA;AAGd,SAAA;AAAA,IACL,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,KAAK;AAAA,IACL;AAAA,EAAA;AAEJ;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dictionary } from '@intlayer/core';
|
|
2
|
+
|
|
3
|
+
export declare const useGetAllDictionaries: () => {
|
|
4
|
+
online: Record<string, Dictionary>;
|
|
5
|
+
locale: Record<string, Dictionary>;
|
|
6
|
+
all: Record<string, Dictionary>;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useGetAllDictionaries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetAllDictionaries.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetAllDictionaries.tsx"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM5C,eAAO,MAAM,qBAAqB;;;;;CA0BjC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import localeDictionaries from "@intlayer/dictionaries-entry";
|
|
3
|
+
import merge from "deepmerge";
|
|
4
|
+
import { useMemo } from "react";
|
|
5
|
+
import { useGetDictionaries } from "./intlayerAPIHooks.mjs";
|
|
6
|
+
const useGetAllDictionaries = () => {
|
|
7
|
+
const { data: onlineDictionariesAPI, isLoading } = useGetDictionaries();
|
|
8
|
+
const onlineDictionaries = useMemo(
|
|
9
|
+
() => (onlineDictionariesAPI?.data ?? []).reduce(
|
|
10
|
+
(acc, dictionary) => {
|
|
11
|
+
acc[dictionary.key] = dictionary;
|
|
12
|
+
return acc;
|
|
13
|
+
},
|
|
14
|
+
{}
|
|
15
|
+
),
|
|
16
|
+
[onlineDictionariesAPI]
|
|
17
|
+
);
|
|
18
|
+
const allDictionaries = useMemo(
|
|
19
|
+
() => merge(onlineDictionaries ?? {}, localeDictionaries),
|
|
20
|
+
[onlineDictionaries]
|
|
21
|
+
);
|
|
22
|
+
return {
|
|
23
|
+
online: onlineDictionaries,
|
|
24
|
+
locale: localeDictionaries,
|
|
25
|
+
all: allDictionaries,
|
|
26
|
+
isLoading
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
useGetAllDictionaries
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=useGetAllDictionaries.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetAllDictionaries.mjs","sources":["../../src/hooks/useGetAllDictionaries.tsx"],"sourcesContent":["'use client';\n\n/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\nimport { Dictionary } from '@intlayer/core';\nimport localeDictionaries from '@intlayer/dictionaries-entry';\nimport merge from 'deepmerge';\nimport { useMemo } from 'react';\nimport { useGetDictionaries } from './intlayerAPIHooks';\n\nexport const useGetAllDictionaries = () => {\n const { data: onlineDictionariesAPI, isLoading } = useGetDictionaries();\n\n const onlineDictionaries: Record<string, Dictionary> = useMemo(\n () =>\n (onlineDictionariesAPI?.data ?? []).reduce(\n (acc, dictionary) => {\n acc[dictionary.key] = dictionary;\n return acc;\n },\n {} as Record<string, Dictionary>\n ),\n [onlineDictionariesAPI]\n );\n\n const allDictionaries: Record<string, Dictionary> = useMemo(\n () => merge(onlineDictionaries ?? {}, localeDictionaries),\n [onlineDictionaries]\n );\n\n return {\n online: onlineDictionaries,\n locale: localeDictionaries,\n all: allDictionaries,\n isLoading,\n };\n};\n"],"names":[],"mappings":";;;;;AAaO,MAAM,wBAAwB,MAAM;AACzC,QAAM,EAAE,MAAM,uBAAuB,cAAc,mBAAmB;AAEtE,QAAM,qBAAiD;AAAA,IACrD,OACG,uBAAuB,QAAQ,CAAA,GAAI;AAAA,MAClC,CAAC,KAAK,eAAe;AACf,YAAA,WAAW,GAAG,IAAI;AACf,eAAA;AAAA,MACT;AAAA,MACA,CAAC;AAAA,IACH;AAAA,IACF,CAAC,qBAAqB;AAAA,EAAA;AAGxB,QAAM,kBAA8C;AAAA,IAClD,MAAM,MAAM,sBAAsB,IAAI,kBAAkB;AAAA,IACxD,CAAC,kBAAkB;AAAA,EAAA;AAGd,SAAA;AAAA,IACL,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,KAAK;AAAA,IACL;AAAA,EAAA;AAEJ;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const require$$0 = require("react");
|
|
5
|
+
const useGetElementOrWindow = (container) => {
|
|
6
|
+
const [containerElement, setContainerElement] = require$$0.useState(container);
|
|
7
|
+
require$$0.useEffect(() => {
|
|
8
|
+
setContainerElement(container ?? window.document.body);
|
|
9
|
+
}, [container]);
|
|
10
|
+
return containerElement;
|
|
11
|
+
};
|
|
12
|
+
exports.useGetElementOrWindow = useGetElementOrWindow;
|
|
13
|
+
//# sourceMappingURL=useGetElementOrWindow.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetElementOrWindow.cjs","sources":["../../src/hooks/useGetElementOrWindow.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\n\nexport const useGetElementOrWindow = (container?: HTMLElement) => {\n const [containerElement, setContainerElement] = useState<\n HTMLElement | undefined\n >(container);\n\n // This useEffect avoids the error of not finding the container\n useEffect(() => {\n setContainerElement(container ?? window.document.body);\n }, [container]);\n\n return containerElement;\n};\n"],"names":["useState","useEffect"],"mappings":";;;;AAIa,MAAA,wBAAwB,CAAC,cAA4B;AAChE,QAAM,CAAC,kBAAkB,mBAAmB,IAAIA,oBAE9C,SAAS;AAGXC,aAAAA,UAAU,MAAM;AACM,wBAAA,aAAa,OAAO,SAAS,IAAI;AAAA,EAAA,GACpD,CAAC,SAAS,CAAC;AAEP,SAAA;AACT;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetElementOrWindow.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetElementOrWindow.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,eAAgB,WAAW,4BAW5D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
const useGetElementOrWindow = (container) => {
|
|
4
|
+
const [containerElement, setContainerElement] = useState(container);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
setContainerElement(container ?? window.document.body);
|
|
7
|
+
}, [container]);
|
|
8
|
+
return containerElement;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
useGetElementOrWindow
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useGetElementOrWindow.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetElementOrWindow.mjs","sources":["../../src/hooks/useGetElementOrWindow.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\n\nexport const useGetElementOrWindow = (container?: HTMLElement) => {\n const [containerElement, setContainerElement] = useState<\n HTMLElement | undefined\n >(container);\n\n // This useEffect avoids the error of not finding the container\n useEffect(() => {\n setContainerElement(container ?? window.document.body);\n }, [container]);\n\n return containerElement;\n};\n"],"names":[],"mappings":";;AAIa,MAAA,wBAAwB,CAAC,cAA4B;AAChE,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,SAE9C,SAAS;AAGX,YAAU,MAAM;AACM,wBAAA,aAAa,OAAO,SAAS,IAAI;AAAA,EAAA,GACpD,CAAC,SAAS,CAAC;AAEP,SAAA;AACT;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const require$$0 = require("react");
|
|
4
|
+
const components_Auth_AuthProvider_index = require("../components/Auth/AuthProvider/index.cjs");
|
|
5
|
+
const libs_intlayerApi_index = require("../libs/intlayer-api/index.cjs");
|
|
6
|
+
const useIntlayerAPI = () => {
|
|
7
|
+
const { csrfToken, oAuth2AccessToken } = components_Auth_AuthProvider_index.useAuth();
|
|
8
|
+
const headers = require$$0.useMemo(
|
|
9
|
+
() => oAuth2AccessToken?.accessToken ? {
|
|
10
|
+
Authorization: `Bearer ${oAuth2AccessToken.accessToken}`
|
|
11
|
+
} : void 0,
|
|
12
|
+
[oAuth2AccessToken?.accessToken]
|
|
13
|
+
);
|
|
14
|
+
const body = require$$0.useMemo(
|
|
15
|
+
() => csrfToken ? { csrf_token: csrfToken } : void 0,
|
|
16
|
+
[csrfToken]
|
|
17
|
+
);
|
|
18
|
+
return require$$0.useMemo(
|
|
19
|
+
() => libs_intlayerApi_index.getIntlayerAPI({
|
|
20
|
+
headers,
|
|
21
|
+
body
|
|
22
|
+
}),
|
|
23
|
+
[body, headers]
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
exports.useIntlayerAPI = useIntlayerAPI;
|
|
27
|
+
//# sourceMappingURL=useIntlayerAPI.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIntlayerAPI.cjs","sources":["../../src/hooks/useIntlayerAPI.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { useAuth } from '../components/Auth/AuthProvider';\nimport { getIntlayerAPI } from '../libs/intlayer-api';\n\nexport const useIntlayerAPI = () => {\n const { csrfToken, oAuth2AccessToken } = useAuth();\n\n const headers = useMemo(\n () =>\n oAuth2AccessToken?.accessToken\n ? {\n Authorization: `Bearer ${oAuth2AccessToken.accessToken}`,\n }\n : undefined,\n [oAuth2AccessToken?.accessToken]\n );\n\n const body = useMemo(\n () => (csrfToken ? { csrf_token: csrfToken } : undefined),\n [csrfToken]\n );\n\n return useMemo(\n () =>\n getIntlayerAPI({\n headers,\n body,\n }),\n [body, headers]\n );\n};\n"],"names":["useAuth","useMemo","getIntlayerAPI"],"mappings":";;;;;AAIO,MAAM,iBAAiB,MAAM;AAClC,QAAM,EAAE,WAAW,kBAAkB,IAAIA,mCAAQ,QAAA;AAEjD,QAAM,UAAUC,WAAA;AAAA,IACd,MACE,mBAAmB,cACf;AAAA,MACE,eAAe,UAAU,kBAAkB,WAAW;AAAA,IAExD,IAAA;AAAA,IACN,CAAC,mBAAmB,WAAW;AAAA,EAAA;AAGjC,QAAM,OAAOA,WAAA;AAAA,IACX,MAAO,YAAY,EAAE,YAAY,cAAc;AAAA,IAC/C,CAAC,SAAS;AAAA,EAAA;AAGL,SAAAA,WAAA;AAAA,IACL,MACEC,sCAAe;AAAA,MACb;AAAA,MACA;AAAA,IAAA,CACD;AAAA,IACH,CAAC,MAAM,OAAO;AAAA,EAAA;AAElB;;"}
|