@intlayer/design-system 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +481 -455
- package/dist/TabSelector-BmkzVPXl.js +660 -0
- package/dist/TabSelector-BmkzVPXl.js.map +1 -0
- package/dist/TabSelector-o_NRBvPQ.cjs +659 -0
- package/dist/TabSelector-o_NRBvPQ.cjs.map +1 -0
- package/dist/components/Auth/AuthModal/index.cjs +17 -62
- package/dist/components/Auth/AuthModal/index.cjs.map +1 -1
- package/dist/components/Auth/AuthModal/index.d.ts.map +1 -1
- package/dist/components/Auth/AuthModal/index.mjs +17 -62
- package/dist/components/Auth/AuthModal/index.mjs.map +1 -1
- package/dist/components/Auth/AuthProvider/index.cjs.map +1 -1
- package/dist/components/Auth/AuthProvider/index.d.ts +3 -3
- package/dist/components/Auth/AuthProvider/index.d.ts.map +1 -1
- package/dist/components/Auth/AuthProvider/index.mjs.map +1 -1
- package/dist/components/Auth/AuthProvider/useSession.cjs +7 -8
- package/dist/components/Auth/AuthProvider/useSession.cjs.map +1 -1
- package/dist/components/Auth/AuthProvider/useSession.d.ts.map +1 -1
- package/dist/components/Auth/AuthProvider/useSession.mjs +7 -8
- package/dist/components/Auth/AuthProvider/useSession.mjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +2 -2
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +2 -2
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +1 -1
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +1 -1
- package/dist/components/Auth/AuthenticationBarrier/index.d.ts +3 -3
- package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/index.content.d.ts +10 -10
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +3 -2
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +3 -2
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +5 -5
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/index.content.d.ts +7 -7
- package/dist/components/Auth/SignInForm/SignInForm.cjs +4 -3
- package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
- package/dist/components/Auth/SignInForm/SignInForm.d.ts +1 -1
- package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -1
- package/dist/components/Auth/SignInForm/SignInForm.mjs +4 -3
- package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
- package/dist/components/Auth/SignInForm/index.content.d.ts +13 -13
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs +3 -3
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
- package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +1 -1
- package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs +3 -3
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
- package/dist/components/Auth/SignUpForm/index.content.d.ts +11 -11
- package/dist/components/Auth/index.cjs +2 -4
- package/dist/components/Auth/index.cjs.map +1 -1
- package/dist/components/Auth/index.d.ts +1 -1
- package/dist/components/Auth/index.d.ts.map +1 -1
- package/dist/components/Auth/index.mjs +1 -3
- package/dist/components/Auth/useAuth/index.cjs +39 -0
- package/dist/components/Auth/useAuth/index.cjs.map +1 -0
- package/dist/components/Auth/useAuth/index.d.ts +24 -0
- package/dist/components/Auth/useAuth/index.d.ts.map +1 -0
- package/dist/components/Auth/useAuth/index.mjs +39 -0
- package/dist/components/Auth/useAuth/index.mjs.map +1 -0
- package/dist/components/Auth/useAuth/useCSRF.cjs +22 -0
- package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -0
- package/dist/components/Auth/useAuth/useCSRF.d.ts +5 -0
- package/dist/components/Auth/useAuth/useCSRF.d.ts.map +1 -0
- package/dist/components/Auth/useAuth/useCSRF.mjs +22 -0
- package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -0
- package/dist/components/Auth/useAuth/useOAuth2.cjs +26 -0
- package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -0
- package/dist/components/Auth/useAuth/useOAuth2.d.ts +4 -0
- package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -0
- package/dist/components/Auth/useAuth/useOAuth2.mjs +26 -0
- package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -0
- package/dist/components/Auth/useAuth/useSession.cjs +60 -0
- package/dist/components/Auth/useAuth/useSession.cjs.map +1 -0
- package/dist/components/Auth/useAuth/useSession.d.ts +8 -0
- package/dist/components/Auth/useAuth/useSession.d.ts.map +1 -0
- package/dist/components/Auth/useAuth/useSession.mjs +60 -0
- package/dist/components/Auth/useAuth/useSession.mjs.map +1 -0
- package/dist/components/Auth/useUser/index.cjs +3 -3
- package/dist/components/Auth/useUser/index.cjs.map +1 -1
- package/dist/components/Auth/useUser/index.d.ts.map +1 -1
- package/dist/components/Auth/useUser/index.mjs +3 -3
- package/dist/components/Auth/useUser/index.mjs.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Command/index.d.ts +2 -2
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Container/index.cjs +1 -0
- package/dist/components/Container/index.cjs.map +1 -1
- package/dist/components/Container/index.d.ts +8 -8
- package/dist/components/Container/index.d.ts.map +1 -1
- package/dist/components/Container/index.mjs +1 -0
- package/dist/components/Container/index.mjs.map +1 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +4 -17
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +4 -17
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +0 -21
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -1
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts +0 -9
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +0 -21
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +3 -2
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +3 -2
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +7 -24
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +6 -23
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +0 -42
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +0 -18
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +0 -42
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts +2 -2
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +4 -36
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +3 -35
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts +4 -4
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +0 -47
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +0 -19
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +0 -47
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +3 -2
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +3 -2
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +3 -2
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +3 -2
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +4 -17
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +4 -17
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +0 -21
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +0 -9
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +0 -21
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
- package/dist/components/Form/FormBase.cjs +4 -1
- package/dist/components/Form/FormBase.cjs.map +1 -1
- package/dist/components/Form/FormBase.d.ts +1 -1
- package/dist/components/Form/FormBase.d.ts.map +1 -1
- package/dist/components/Form/FormBase.mjs +4 -1
- package/dist/components/Form/FormBase.mjs.map +1 -1
- package/dist/components/Input/Checkbox.d.ts +1 -1
- package/dist/components/Input/Input.cjs +8 -2
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.d.ts +1 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.mjs +8 -2
- package/dist/components/Input/Input.mjs.map +1 -1
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Modal/Modal.cjs +3 -1
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.mjs +3 -1
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.cjs +3 -1
- package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.mjs +3 -1
- package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
- package/dist/components/Navbar/index.cjs +3 -1
- package/dist/components/Navbar/index.cjs.map +1 -1
- package/dist/components/Navbar/index.mjs +3 -1
- package/dist/components/Navbar/index.mjs.map +1 -1
- package/dist/components/Select/Multiselect.d.ts +1 -1
- package/dist/components/Select/Multiselect.d.ts.map +1 -1
- package/dist/components/SwitchSelector/index.cjs +3 -1
- package/dist/components/SwitchSelector/index.cjs.map +1 -1
- package/dist/components/SwitchSelector/index.d.ts +1 -1
- package/dist/components/SwitchSelector/index.mjs +3 -1
- package/dist/components/SwitchSelector/index.mjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +13 -10
- package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
- package/dist/components/TabSelector/TabSelector.mjs +13 -10
- package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/components/Tag/index.cjs +79 -0
- package/dist/components/Tag/index.cjs.map +1 -0
- package/dist/components/Tag/index.d.ts +12 -0
- package/dist/components/Tag/index.d.ts.map +1 -0
- package/dist/components/Tag/index.mjs +79 -0
- package/dist/components/Tag/index.mjs.map +1 -0
- package/dist/components/Toaster/Toast.d.ts +1 -1
- package/dist/components/index.cjs +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.mjs +3 -3
- package/dist/components/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +4 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.mjs +5 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.cjs +257 -126
- package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.d.ts +43 -38
- package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
- package/dist/hooks/intlayerAPIHooks.mjs +258 -127
- package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.cjs +142 -104
- package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.d.ts +0 -2
- package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
- package/dist/hooks/useAsync/useAsync.mjs +143 -105
- package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.cjs +50 -112
- package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts +3 -9
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.mjs +50 -112
- package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
- package/dist/hooks/useAsync/useProxyState.d.ts +3 -0
- package/dist/hooks/useAsync/useProxyState.d.ts.map +1 -0
- package/dist/hooks/useIntlayerAPI.cjs +6 -5
- package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
- package/dist/hooks/useIntlayerAPI.d.ts +51 -45
- package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
- package/dist/hooks/useIntlayerAPI.mjs +5 -4
- package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
- package/dist/hooks/useItemSelector.cjs +11 -2
- package/dist/hooks/useItemSelector.cjs.map +1 -1
- package/dist/hooks/useItemSelector.d.ts +3 -2
- package/dist/hooks/useItemSelector.d.ts.map +1 -1
- package/dist/hooks/useItemSelector.mjs +11 -2
- package/dist/hooks/useItemSelector.mjs.map +1 -1
- package/dist/hooks/usePersistedStore.cjs +22 -0
- package/dist/hooks/usePersistedStore.cjs.map +1 -0
- package/dist/hooks/usePersistedStore.d.ts +2 -0
- package/dist/hooks/usePersistedStore.d.ts.map +1 -0
- package/dist/hooks/usePersistedStore.mjs +22 -0
- package/dist/hooks/usePersistedStore.mjs.map +1 -0
- package/dist/hooks/usePersistenceStore.cjs +22 -0
- package/dist/hooks/usePersistenceStore.cjs.map +1 -0
- package/dist/hooks/usePersistenceStore.d.ts +2 -0
- package/dist/hooks/usePersistenceStore.d.ts.map +1 -0
- package/dist/hooks/usePersistenceStore.mjs +22 -0
- package/dist/hooks/usePersistenceStore.mjs.map +1 -0
- package/dist/libs/intlayer-api/auth.cjs +14 -2
- package/dist/libs/intlayer-api/auth.cjs.map +1 -1
- package/dist/libs/intlayer-api/auth.d.ts +7 -3
- package/dist/libs/intlayer-api/auth.d.ts.map +1 -1
- package/dist/libs/intlayer-api/auth.mjs +14 -2
- package/dist/libs/intlayer-api/auth.mjs.map +1 -1
- package/dist/libs/intlayer-api/fetcher.cjs +7 -1
- package/dist/libs/intlayer-api/fetcher.cjs.map +1 -1
- package/dist/libs/intlayer-api/fetcher.d.ts.map +1 -1
- package/dist/libs/intlayer-api/fetcher.mjs +7 -1
- package/dist/libs/intlayer-api/fetcher.mjs.map +1 -1
- package/dist/libs/intlayer-api/index.cjs +3 -1
- package/dist/libs/intlayer-api/index.cjs.map +1 -1
- package/dist/libs/intlayer-api/index.d.ts +12 -2
- package/dist/libs/intlayer-api/index.d.ts.map +1 -1
- package/dist/libs/intlayer-api/index.mjs +3 -1
- package/dist/libs/intlayer-api/index.mjs.map +1 -1
- package/dist/libs/intlayer-api/stripe.cjs +22 -0
- package/dist/libs/intlayer-api/stripe.cjs.map +1 -0
- package/dist/libs/intlayer-api/stripe.d.ts +6 -0
- package/dist/libs/intlayer-api/stripe.d.ts.map +1 -0
- package/dist/libs/intlayer-api/stripe.mjs +22 -0
- package/dist/libs/intlayer-api/stripe.mjs.map +1 -0
- package/dist/stripe-BsI0lJWz.js +22 -0
- package/dist/stripe-BsI0lJWz.js.map +1 -0
- package/dist/stripe-C-u5RvGh.js +22 -0
- package/dist/stripe-C-u5RvGh.js.map +1 -0
- package/dist/stripe-CF_E65Vu.js +22 -0
- package/dist/stripe-CF_E65Vu.js.map +1 -0
- package/dist/stripe-CpGvfq6T.cjs +21 -0
- package/dist/stripe-CpGvfq6T.cjs.map +1 -0
- package/dist/stripe-DEv4DjAL.cjs +21 -0
- package/dist/stripe-DEv4DjAL.cjs.map +1 -0
- package/dist/stripe-DuG0uaEn.cjs +21 -0
- package/dist/stripe-DuG0uaEn.cjs.map +1 -0
- package/dist/tailwind.css +1 -1
- package/dist/useProxyState-D5GLrY2y.js +20 -0
- package/dist/useProxyState-D5GLrY2y.js.map +1 -0
- package/dist/useProxyState-DewdF3no.cjs +19 -0
- package/dist/useProxyState-DewdF3no.cjs.map +1 -0
- package/package.json +15 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaryCreationForm.content.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryFormContent = {\n key: 'dictionary-form',\n content: {\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clée de votre dictionaire',\n es: 'Ingrese el clave de su diccionario',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\n },\n\n noDictionaryView: {\n title: t({\n en: 'No dictionary',\n fr: 'Aucune dictionaire',\n es: 'Sin diccionario',\n }),\n description: t({\n en: 'Create your first dictionary to start using Intlayer',\n fr: 'Créez votre première dictionaire pour commencer à utiliser Intlayer',\n es: 'Cree su primera diccionario para comenzar a usar Intlayer',\n }),\n },\n\n dictionaryList: {\n title: t({\n en: 'Dictionary list',\n fr: 'Liste des dictionnaires',\n es: 'Lista de diccionarios',\n }),\n },\n\n createDictionaryTitle: t({\n en: 'No dictionary',\n fr: 'Aucune dictionaire',\n es: 'Sin diccionario',\n }),\n\n createDictionaryDescription: t({\n en: 'Create your first dictionary to start using Intlayer',\n fr: 'Créez votre première dictionaire pour commencer à utiliser Intlayer',\n es: 'Cree su primera diccionario para comenzar a usar Intlayer',\n }),\n\n createDictionaryButton: {\n text: t({\n en: 'Create dictionary',\n fr: 'Créer un dictionair',\n es: 'Crear un diccionario',\n }),\n ariaLabel: t({\n en: 'Click to create dictionary',\n fr: 'Cliquez pour créer un dictionair',\n es: 'Haga clic para crear un diccionario',\n }),\n },\n\n
|
|
1
|
+
{"version":3,"file":"dictionaryCreationForm.content.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryFormContent = {\n key: 'dictionary-form',\n content: {\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clée de votre dictionaire',\n es: 'Ingrese el clave de su diccionario',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\n },\n\n noDictionaryView: {\n title: t({\n en: 'No dictionary',\n fr: 'Aucune dictionaire',\n es: 'Sin diccionario',\n }),\n description: t({\n en: 'Create your first dictionary to start using Intlayer',\n fr: 'Créez votre première dictionaire pour commencer à utiliser Intlayer',\n es: 'Cree su primera diccionario para comenzar a usar Intlayer',\n }),\n },\n\n dictionaryList: {\n title: t({\n en: 'Dictionary list',\n fr: 'Liste des dictionnaires',\n es: 'Lista de diccionarios',\n }),\n },\n\n createDictionaryTitle: t({\n en: 'No dictionary',\n fr: 'Aucune dictionaire',\n es: 'Sin diccionario',\n }),\n\n createDictionaryDescription: t({\n en: 'Create your first dictionary to start using Intlayer',\n fr: 'Créez votre première dictionaire pour commencer à utiliser Intlayer',\n es: 'Cree su primera diccionario para comenzar a usar Intlayer',\n }),\n\n createDictionaryButton: {\n text: t({\n en: 'Create dictionary',\n fr: 'Créer un dictionair',\n es: 'Crear un diccionario',\n }),\n ariaLabel: t({\n en: 'Click to create dictionary',\n fr: 'Cliquez pour créer un dictionair',\n es: 'Haga clic para crear un diccionario',\n }),\n },\n\n editButton: {\n text: t({\n en: 'Edit dictionary',\n fr: \"Modifier l'dictionaire\",\n es: 'Editar la diccionario',\n }),\n ariaLabel: t({\n en: 'Click to edit',\n fr: 'Cliquez pour modifier',\n es: 'Haga clic para editar',\n }),\n },\n },\n} satisfies DeclarationContent;\n"],"names":[],"mappings":";AAEO,MAAM,wBAAwB;AAAA,EACnC,KAAK;AAAA,EACL,SAAS;AAAA,IACP,UAAU;AAAA,MACR,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IAEA,cAAc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Schema.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ export declare const getDictionarySchema: (projectId: string) => z.ZodObject<{
|
|
|
3
3
|
key: z.ZodDefault<z.ZodString>;
|
|
4
4
|
projectIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
key: string;
|
|
7
6
|
projectIds: string[];
|
|
7
|
+
key: string;
|
|
8
8
|
}, {
|
|
9
|
-
key?: string | undefined;
|
|
10
9
|
projectIds?: string[] | undefined;
|
|
10
|
+
key?: string | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
export type DictionaryFormData = z.infer<ReturnType<typeof getDictionarySchema>>;
|
|
13
13
|
//# sourceMappingURL=dictionaryFormSchema.d.ts.map
|
|
@@ -15,6 +15,7 @@ require("../../../libs/intlayer-api/auth.cjs");
|
|
|
15
15
|
require("../../../libs/intlayer-api/dictionary.cjs");
|
|
16
16
|
require("../../../libs/intlayer-api/organization.cjs");
|
|
17
17
|
require("../../../libs/intlayer-api/project.cjs");
|
|
18
|
+
require("../../../libs/intlayer-api/stripe.cjs");
|
|
18
19
|
require("../../../libs/intlayer-api/user.cjs");
|
|
19
20
|
require("../../Button/Button.cjs");
|
|
20
21
|
const components_Form_FormBase = require("../../Form/FormBase.cjs");
|
|
@@ -22,9 +23,7 @@ require("../../Form/FormField.cjs");
|
|
|
22
23
|
const components_Form_layout_FormItemLayout = require("../../../Form-DERuauvB.cjs");
|
|
23
24
|
require("zod");
|
|
24
25
|
require("../../Modal/Modal.cjs");
|
|
25
|
-
require("../../
|
|
26
|
-
const components_Toaster_useToast = require("../../Toaster/useToast.cjs");
|
|
27
|
-
const components_Auth_AuthProvider_index = require("../../Auth/AuthProvider/index.cjs");
|
|
26
|
+
const components_Auth_useAuth_index = require("../../Auth/useAuth/index.cjs");
|
|
28
27
|
const components_Select_Multiselect = require("../../Select/Multiselect.cjs");
|
|
29
28
|
require("../../Select/Select.cjs");
|
|
30
29
|
const components_DictionaryFieldEditor_DictionaryDetails_dictionaryDetails_content = require("./dictionaryDetails.content.cjs");
|
|
@@ -32,7 +31,7 @@ const components_DictionaryFieldEditor_DictionaryDetails_DictionaryDetailsSchema
|
|
|
32
31
|
const DictionaryDetailsForm = ({
|
|
33
32
|
dictionary
|
|
34
33
|
}) => {
|
|
35
|
-
const { session } =
|
|
34
|
+
const { session } = components_Auth_useAuth_index.useAuth();
|
|
36
35
|
const { project } = session ?? {};
|
|
37
36
|
const { pushDictionaries } = hooks_intlayerAPIHooks.usePushDictionaries();
|
|
38
37
|
const { data: projects } = hooks_intlayerAPIHooks.useGetProjects();
|
|
@@ -43,8 +42,6 @@ const DictionaryDetailsForm = ({
|
|
|
43
42
|
defaultValues: dictionary
|
|
44
43
|
});
|
|
45
44
|
const {
|
|
46
|
-
pushDictionariesToasts,
|
|
47
|
-
updateDictionaryToasts,
|
|
48
45
|
titleInput,
|
|
49
46
|
keyInput,
|
|
50
47
|
descriptionInput,
|
|
@@ -52,7 +49,6 @@ const DictionaryDetailsForm = ({
|
|
|
52
49
|
saveButton,
|
|
53
50
|
projectInput
|
|
54
51
|
} = reactIntlayer.useDictionary(components_DictionaryFieldEditor_DictionaryDetails_dictionaryDetails_content.dictionaryDetailsContent);
|
|
55
|
-
const { toast } = components_Toaster_useToast.useToast();
|
|
56
52
|
require$$0.useEffect(() => {
|
|
57
53
|
form.reset(dictionary);
|
|
58
54
|
}, [dictionary, form?.reset]);
|
|
@@ -64,35 +60,7 @@ const DictionaryDetailsForm = ({
|
|
|
64
60
|
...dictionary,
|
|
65
61
|
...data
|
|
66
62
|
}
|
|
67
|
-
])
|
|
68
|
-
if (isLocalDictionary) {
|
|
69
|
-
toast({
|
|
70
|
-
title: pushDictionariesToasts.updated.title.value,
|
|
71
|
-
description: pushDictionariesToasts.updated.description.value,
|
|
72
|
-
variant: "success"
|
|
73
|
-
});
|
|
74
|
-
} else {
|
|
75
|
-
toast({
|
|
76
|
-
title: updateDictionaryToasts.updated.title.value,
|
|
77
|
-
description: updateDictionaryToasts.updated.description.value,
|
|
78
|
-
variant: "success"
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}).catch((error) => {
|
|
82
|
-
if (isLocalDictionary) {
|
|
83
|
-
toast({
|
|
84
|
-
title: pushDictionariesToasts.failed.title.value,
|
|
85
|
-
description: pushDictionariesToasts.failed.description.value,
|
|
86
|
-
variant: "error"
|
|
87
|
-
});
|
|
88
|
-
} else {
|
|
89
|
-
toast({
|
|
90
|
-
title: updateDictionaryToasts.failed.title.value,
|
|
91
|
-
description: error.message,
|
|
92
|
-
variant: "error"
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
});
|
|
63
|
+
]);
|
|
96
64
|
};
|
|
97
65
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
98
66
|
components_Form_layout_FormItemLayout.Form,
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryDetailsForm.cjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary as DistantDictionary } from '@intlayer/backend';\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowUpFromLine, Save } from 'lucide-react';\nimport { type FC, useEffect } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { useGetProjects, usePushDictionaries } from '../../../hooks';\nimport { cn } from '../../../utils/cn';\nimport { useAuth } from '../../Auth';\nimport { Form, useForm } from '../../Form';\nimport { MultiSelect } from '../../Select';\nimport {
|
|
1
|
+
{"version":3,"file":"DictionaryDetailsForm.cjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary as DistantDictionary } from '@intlayer/backend';\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowUpFromLine, Save } from 'lucide-react';\nimport { type FC, useEffect } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { useGetProjects, usePushDictionaries } from '../../../hooks';\nimport { cn } from '../../../utils/cn';\nimport { useAuth } from '../../Auth';\nimport { Form, useForm } from '../../Form';\nimport { MultiSelect } from '../../Select';\nimport { dictionaryDetailsContent } from './dictionaryDetails.content';\nimport {\n getDictionaryDetailsSchema,\n DictionaryDetailsFormData,\n} from './DictionaryDetailsSchema';\n\ntype DictionaryDetailsProps = {\n dictionary: Dictionary;\n};\n\nexport const DictionaryDetailsForm: FC<DictionaryDetailsProps> = ({\n dictionary,\n}) => {\n const { session } = useAuth();\n const { project } = session ?? {};\n const { pushDictionaries } = usePushDictionaries();\n const { data: projects } = useGetProjects();\n\n const DictionaryDetailsSchema = getDictionaryDetailsSchema(\n String(project?._id)\n );\n const { form, isSubmitting } = useForm(DictionaryDetailsSchema, {\n defaultValues: dictionary,\n });\n const {\n titleInput,\n keyInput,\n descriptionInput,\n publishButton,\n saveButton,\n projectInput,\n } = useDictionary(dictionaryDetailsContent);\n\n useEffect(() => {\n form.reset(dictionary);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dictionary, form?.reset]);\n\n const isFormEdited = form.formState.isDirty;\n const isLocalDictionary =\n typeof (dictionary as DistantDictionary)?._id === 'undefined';\n\n const onSubmitSuccess = async (data: DictionaryDetailsFormData) => {\n await pushDictionaries([\n {\n ...dictionary,\n ...data,\n },\n ]);\n };\n\n return (\n <Form\n className=\"flex size-full flex-1 flex-col gap-8\"\n {...form}\n schema={DictionaryDetailsSchema}\n onSubmitSuccess={onSubmitSuccess}\n >\n <div className=\"flex size-full flex-1 gap-8 max-md:flex-col\">\n <Form.EditableFieldInput\n name=\"title\"\n label={titleInput.label.value}\n placeholder={titleInput.placeholder.value}\n description={titleInput.description.value}\n disabled={isSubmitting}\n />\n <Form.EditableFieldInput\n name=\"key\"\n label={keyInput.label.value}\n placeholder={keyInput.label.value}\n description={keyInput.description.value}\n disabled={isSubmitting}\n required\n />\n </div>\n\n <Form.EditableFieldTextArea\n name=\"description\"\n label={descriptionInput.label.value}\n placeholder={descriptionInput.placeholder.value}\n description={descriptionInput.description.value}\n disabled={isSubmitting}\n />\n\n <Form.MultiSelect\n name=\"projectIds\"\n label={projectInput.label.value}\n description={projectInput.description.value}\n >\n <MultiSelect.Trigger\n getBadgeValue={(value) =>\n projects?.data?.find((project) => String(project._id) === value)\n ?.name ?? value\n }\n >\n <MultiSelect.Input placeholder={projectInput.placeholder.value} />\n </MultiSelect.Trigger>\n <MultiSelect.Content>\n <MultiSelect.List>\n {projects?.data?.map((project) => (\n <MultiSelect.Item\n key={String(project._id)}\n value={String(project._id)}\n >\n {project.name}\n </MultiSelect.Item>\n ))}\n </MultiSelect.List>\n </MultiSelect.Content>\n </Form.MultiSelect>\n\n {isLocalDictionary ? (\n <Form.Button\n type=\"submit\"\n label={publishButton.label.value}\n disabled={isSubmitting || !isFormEdited}\n Icon={ArrowUpFromLine}\n isFullWidth={false}\n color=\"text\"\n isLoading={isSubmitting}\n className=\"ml-auto\"\n >\n {publishButton.text}\n </Form.Button>\n ) : (\n <Form.Button\n type=\"submit\"\n label={saveButton.label.value}\n disabled={isSubmitting}\n isFullWidth={false}\n className={cn('ml-auto', isFormEdited ? '' : 'invisible')}\n Icon={Save}\n color=\"text\"\n isLoading={isSubmitting}\n >\n {saveButton.text}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["useAuth","usePushDictionaries","useGetProjects","getDictionaryDetailsSchema","useForm","useDictionary","dictionaryDetailsContent","useEffect","jsxs","Form","jsx","MultiSelect","project","ArrowUpFromLine","cn","Save"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBO,MAAM,wBAAoD,CAAC;AAAA,EAChE;AACF,MAAM;AACE,QAAA,EAAE,YAAYA,8BAAAA;AACpB,QAAM,EAAE,QAAA,IAAY,WA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AACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,MAAK;AAAA,YACL,OAAO,cAAc,MAAM;AAAA,YAC3B,UAAU,gBAAgB,CAAC;AAAA,YAC3B,MAAMI,YAAA;AAAA,YACN,aAAa;AAAA,YACb,OAAM;AAAA,YACN,WAAW;AAAA,YACX,WAAU;AAAA,YAET,UAAc,cAAA;AAAA,UAAA;AAAA,QAAA,IAGjBH,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,MAAK;AAAA,YACL,OAAO,WAAW,MAAM;AAAA,YACxB,UAAU;AAAA,YACV,aAAa;AAAA,YACb,WAAWK,SAAAA,GAAG,WAAW,eAAe,KAAK,WAAW;AAAA,YACxD,MAAMC,YAAA;AAAA,YACN,OAAM;AAAA,YACN,WAAW;AAAA,YAEV,UAAW,WAAA;AAAA,UAAA;AAAA,QACd;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;;"}
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryDetailsForm.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,EAAa,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DictionaryDetailsForm.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,EAAa,MAAM,OAAO,CAAC;AAc3C,KAAK,sBAAsB,GAAG;IAC5B,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,sBAAsB,CAkI5D,CAAC"}
|
|
@@ -13,6 +13,7 @@ import "../../../libs/intlayer-api/auth.mjs";
|
|
|
13
13
|
import "../../../libs/intlayer-api/dictionary.mjs";
|
|
14
14
|
import "../../../libs/intlayer-api/organization.mjs";
|
|
15
15
|
import "../../../libs/intlayer-api/project.mjs";
|
|
16
|
+
import "../../../libs/intlayer-api/stripe.mjs";
|
|
16
17
|
import "../../../libs/intlayer-api/user.mjs";
|
|
17
18
|
import "../../Button/Button.mjs";
|
|
18
19
|
import { useForm } from "../../Form/FormBase.mjs";
|
|
@@ -20,9 +21,7 @@ import "../../Form/FormField.mjs";
|
|
|
20
21
|
import { F as Form } from "../../../Form-DyFBmVya.js";
|
|
21
22
|
import "zod";
|
|
22
23
|
import "../../Modal/Modal.mjs";
|
|
23
|
-
import "../../
|
|
24
|
-
import { useToast } from "../../Toaster/useToast.mjs";
|
|
25
|
-
import { useAuth } from "../../Auth/AuthProvider/index.mjs";
|
|
24
|
+
import { useAuth } from "../../Auth/useAuth/index.mjs";
|
|
26
25
|
import { MultiSelect } from "../../Select/Multiselect.mjs";
|
|
27
26
|
import "../../Select/Select.mjs";
|
|
28
27
|
import { dictionaryDetailsContent } from "./dictionaryDetails.content.mjs";
|
|
@@ -41,8 +40,6 @@ const DictionaryDetailsForm = ({
|
|
|
41
40
|
defaultValues: dictionary
|
|
42
41
|
});
|
|
43
42
|
const {
|
|
44
|
-
pushDictionariesToasts,
|
|
45
|
-
updateDictionaryToasts,
|
|
46
43
|
titleInput,
|
|
47
44
|
keyInput,
|
|
48
45
|
descriptionInput,
|
|
@@ -50,7 +47,6 @@ const DictionaryDetailsForm = ({
|
|
|
50
47
|
saveButton,
|
|
51
48
|
projectInput
|
|
52
49
|
} = useDictionary(dictionaryDetailsContent);
|
|
53
|
-
const { toast } = useToast();
|
|
54
50
|
useEffect(() => {
|
|
55
51
|
form.reset(dictionary);
|
|
56
52
|
}, [dictionary, form?.reset]);
|
|
@@ -62,35 +58,7 @@ const DictionaryDetailsForm = ({
|
|
|
62
58
|
...dictionary,
|
|
63
59
|
...data
|
|
64
60
|
}
|
|
65
|
-
])
|
|
66
|
-
if (isLocalDictionary) {
|
|
67
|
-
toast({
|
|
68
|
-
title: pushDictionariesToasts.updated.title.value,
|
|
69
|
-
description: pushDictionariesToasts.updated.description.value,
|
|
70
|
-
variant: "success"
|
|
71
|
-
});
|
|
72
|
-
} else {
|
|
73
|
-
toast({
|
|
74
|
-
title: updateDictionaryToasts.updated.title.value,
|
|
75
|
-
description: updateDictionaryToasts.updated.description.value,
|
|
76
|
-
variant: "success"
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}).catch((error) => {
|
|
80
|
-
if (isLocalDictionary) {
|
|
81
|
-
toast({
|
|
82
|
-
title: pushDictionariesToasts.failed.title.value,
|
|
83
|
-
description: pushDictionariesToasts.failed.description.value,
|
|
84
|
-
variant: "error"
|
|
85
|
-
});
|
|
86
|
-
} else {
|
|
87
|
-
toast({
|
|
88
|
-
title: updateDictionaryToasts.failed.title.value,
|
|
89
|
-
description: error.message,
|
|
90
|
-
variant: "error"
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
});
|
|
61
|
+
]);
|
|
94
62
|
};
|
|
95
63
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
96
64
|
Form,
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryDetailsForm.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary as DistantDictionary } from '@intlayer/backend';\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowUpFromLine, Save } from 'lucide-react';\nimport { type FC, useEffect } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { useGetProjects, usePushDictionaries } from '../../../hooks';\nimport { cn } from '../../../utils/cn';\nimport { useAuth } from '../../Auth';\nimport { Form, useForm } from '../../Form';\nimport { MultiSelect } from '../../Select';\nimport {
|
|
1
|
+
{"version":3,"file":"DictionaryDetailsForm.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary as DistantDictionary } from '@intlayer/backend';\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowUpFromLine, Save } from 'lucide-react';\nimport { type FC, useEffect } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { useGetProjects, usePushDictionaries } from '../../../hooks';\nimport { cn } from '../../../utils/cn';\nimport { useAuth } from '../../Auth';\nimport { Form, useForm } from '../../Form';\nimport { MultiSelect } from '../../Select';\nimport { dictionaryDetailsContent } from './dictionaryDetails.content';\nimport {\n getDictionaryDetailsSchema,\n DictionaryDetailsFormData,\n} from './DictionaryDetailsSchema';\n\ntype DictionaryDetailsProps = {\n dictionary: Dictionary;\n};\n\nexport const DictionaryDetailsForm: FC<DictionaryDetailsProps> = ({\n dictionary,\n}) => {\n const { session } = useAuth();\n const { project } = session ?? {};\n const { pushDictionaries } = usePushDictionaries();\n const { data: projects } = useGetProjects();\n\n const DictionaryDetailsSchema = getDictionaryDetailsSchema(\n String(project?._id)\n );\n const { form, isSubmitting } = useForm(DictionaryDetailsSchema, {\n defaultValues: dictionary,\n });\n const {\n titleInput,\n keyInput,\n descriptionInput,\n publishButton,\n saveButton,\n projectInput,\n } = useDictionary(dictionaryDetailsContent);\n\n useEffect(() => {\n form.reset(dictionary);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dictionary, form?.reset]);\n\n const isFormEdited = form.formState.isDirty;\n const isLocalDictionary =\n typeof (dictionary as DistantDictionary)?._id === 'undefined';\n\n const onSubmitSuccess = async (data: DictionaryDetailsFormData) => {\n await pushDictionaries([\n {\n ...dictionary,\n ...data,\n },\n ]);\n };\n\n return (\n <Form\n className=\"flex size-full flex-1 flex-col gap-8\"\n {...form}\n schema={DictionaryDetailsSchema}\n onSubmitSuccess={onSubmitSuccess}\n >\n <div className=\"flex size-full flex-1 gap-8 max-md:flex-col\">\n <Form.EditableFieldInput\n name=\"title\"\n label={titleInput.label.value}\n placeholder={titleInput.placeholder.value}\n description={titleInput.description.value}\n disabled={isSubmitting}\n />\n <Form.EditableFieldInput\n name=\"key\"\n label={keyInput.label.value}\n placeholder={keyInput.label.value}\n description={keyInput.description.value}\n disabled={isSubmitting}\n required\n />\n </div>\n\n <Form.EditableFieldTextArea\n name=\"description\"\n label={descriptionInput.label.value}\n placeholder={descriptionInput.placeholder.value}\n description={descriptionInput.description.value}\n disabled={isSubmitting}\n />\n\n <Form.MultiSelect\n name=\"projectIds\"\n label={projectInput.label.value}\n description={projectInput.description.value}\n >\n <MultiSelect.Trigger\n getBadgeValue={(value) =>\n projects?.data?.find((project) => String(project._id) === value)\n ?.name ?? value\n }\n >\n <MultiSelect.Input placeholder={projectInput.placeholder.value} />\n </MultiSelect.Trigger>\n <MultiSelect.Content>\n <MultiSelect.List>\n {projects?.data?.map((project) => (\n <MultiSelect.Item\n key={String(project._id)}\n value={String(project._id)}\n >\n {project.name}\n </MultiSelect.Item>\n ))}\n </MultiSelect.List>\n </MultiSelect.Content>\n </Form.MultiSelect>\n\n {isLocalDictionary ? (\n <Form.Button\n type=\"submit\"\n label={publishButton.label.value}\n disabled={isSubmitting || !isFormEdited}\n Icon={ArrowUpFromLine}\n isFullWidth={false}\n color=\"text\"\n isLoading={isSubmitting}\n className=\"ml-auto\"\n >\n {publishButton.text}\n </Form.Button>\n ) : (\n <Form.Button\n type=\"submit\"\n label={saveButton.label.value}\n disabled={isSubmitting}\n isFullWidth={false}\n className={cn('ml-auto', isFormEdited ? '' : 'invisible')}\n Icon={Save}\n color=\"text\"\n isLoading={isSubmitting}\n >\n {saveButton.text}\n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C,MAAK;AAAA,YACL,OAAO,cAAc,MAAM;AAAA,YAC3B,UAAU,gBAAgB,CAAC;AAAA,YAC3B,MAAM;AAAA,YACN,aAAa;AAAA,YACb,OAAM;AAAA,YACN,WAAW;AAAA,YACX,WAAU;AAAA,YAET,UAAc,cAAA;AAAA,UAAA;AAAA,QAAA,IAGjBA,kCAAA;AAAA,UAAC,KAAK;AAAA,UAAL;AAAA,YACC,MAAK;AAAA,YACL,OAAO,WAAW,MAAM;AAAA,YACxB,UAAU;AAAA,YACV,aAAa;AAAA,YACb,WAAW,GAAG,WAAW,eAAe,KAAK,WAAW;AAAA,YACxD,MAAM;AAAA,YACN,OAAM;AAAA,YACN,WAAW;AAAA,YAEV,UAAW,WAAA;AAAA,UAAA;AAAA,QACd;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts
CHANGED
|
@@ -5,15 +5,15 @@ export declare const getDictionaryDetailsSchema: (projectId: string) => z.ZodObj
|
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
6
6
|
projectIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
key: string;
|
|
9
8
|
projectIds: string[];
|
|
10
|
-
|
|
9
|
+
key: string;
|
|
11
10
|
description?: string | undefined;
|
|
11
|
+
title?: string | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
|
|
13
|
+
description?: string | undefined;
|
|
14
14
|
projectIds?: string[] | undefined;
|
|
15
|
+
key?: string | undefined;
|
|
15
16
|
title?: string | undefined;
|
|
16
|
-
description?: string | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type DictionaryDetailsFormData = z.infer<ReturnType<typeof getDictionaryDetailsSchema>>;
|
|
19
19
|
//# sourceMappingURL=DictionaryDetailsSchema.d.ts.map
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs
CHANGED
|
@@ -95,53 +95,6 @@ const dictionaryDetailsContent = {
|
|
|
95
95
|
fr: "Cliquez pour publier le dictionnaire",
|
|
96
96
|
es: "Haga clic para publicar el diccionario"
|
|
97
97
|
})
|
|
98
|
-
},
|
|
99
|
-
updateDictionaryToasts: {
|
|
100
|
-
updated: {
|
|
101
|
-
title: intlayer.t({
|
|
102
|
-
en: "Dictionary updated",
|
|
103
|
-
fr: "Dictionnaire mis à jour",
|
|
104
|
-
es: "Diccionario actualizado"
|
|
105
|
-
}),
|
|
106
|
-
description: intlayer.t({
|
|
107
|
-
en: "Your dictionary has been updated successfully",
|
|
108
|
-
fr: "Votre dictionnaire a été mis à jour avec succès",
|
|
109
|
-
es: "Su diccionario se ha actualizado con éxito"
|
|
110
|
-
})
|
|
111
|
-
},
|
|
112
|
-
failed: {
|
|
113
|
-
title: intlayer.t({
|
|
114
|
-
en: "Organization update failed",
|
|
115
|
-
fr: "La mise à jour de l'organisation a échoué",
|
|
116
|
-
es: "La actualización de la organización ha fallado"
|
|
117
|
-
})
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
pushDictionariesToasts: {
|
|
121
|
-
updated: {
|
|
122
|
-
title: intlayer.t({
|
|
123
|
-
en: "Dictionary updated",
|
|
124
|
-
fr: "Dictionnaire mis à jour",
|
|
125
|
-
es: "Diccionario actualizado"
|
|
126
|
-
}),
|
|
127
|
-
description: intlayer.t({
|
|
128
|
-
en: "Your dictionary has been updated successfully",
|
|
129
|
-
fr: "Votre dictionnaire a été mis à jour avec succès",
|
|
130
|
-
es: "Su diccionario se ha actualizado con éxito"
|
|
131
|
-
})
|
|
132
|
-
},
|
|
133
|
-
failed: {
|
|
134
|
-
title: intlayer.t({
|
|
135
|
-
en: "Dictionary update failed",
|
|
136
|
-
fr: "La mise à jour de l'dictionnaire a échoué",
|
|
137
|
-
es: "La actualización del diccionario ha fallado"
|
|
138
|
-
}),
|
|
139
|
-
description: intlayer.t({
|
|
140
|
-
en: "An error occurred while updating your dictionary",
|
|
141
|
-
fr: "Une erreur s'est produite lors de la mise à jour de votre dictionnaire",
|
|
142
|
-
es: "Se produjo un error al actualizar su diccionario"
|
|
143
|
-
})
|
|
144
|
-
}
|
|
145
98
|
}
|
|
146
99
|
}
|
|
147
100
|
};
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaryDetails.content.cjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryDetailsContent = {\n key: 'dictionary-details',\n content: {\n titleInput: {\n label: t({\n en: 'Title',\n fr: 'Titre',\n es: 'Título',\n }),\n description: t({\n en: 'The title of your dictionary allows you to easily identify it',\n fr: \"Le titre de votre dictionnaire permet de l'identifier facilement\",\n es: 'El título de su diccionario le permite identificar fácilmente',\n }),\n placeholder: t({\n en: 'Enter the title of your dictionary',\n fr: 'Entrez le titre de votre dictionnaire',\n es: 'Ingrese el título de su diccionario',\n }),\n },\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n description: t({\n en: 'The key of your dictionary is used to identify it in the application',\n fr: \"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application\",\n es: 'La clave de su diccionario se utiliza para identificarla en la aplicación',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n }),\n },\n descriptionInput: {\n label: t({\n en: 'Description',\n fr: 'Description',\n es: 'Descripción',\n }),\n placeholder: t({\n en: 'Enter the description of your dictionary',\n fr: 'Entrez la description de votre dictionnaire',\n es: 'Ingrese la descripción de su diccionario',\n }),\n description: t({\n en: 'The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.',\n fr: \"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.\",\n es: 'La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n description: t({\n en: 'A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.',\n fr: 'Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.',\n es: 'Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\n },\n\n saveButton: {\n text: t({\n en: 'Save changes',\n fr: 'Enregistrer les modifications',\n es: 'Guardar cambios',\n }),\n label: t({\n en: 'Click to save changes',\n fr: 'Cliquez pour enregistrer les modifications',\n es: 'Haga clic para guardar los cambios',\n }),\n },\n publishButton: {\n text: t({\n en: 'Publish dictionary',\n fr: 'Publier le dictionnaire',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier le dictionnaire',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n
|
|
1
|
+
{"version":3,"file":"dictionaryDetails.content.cjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryDetailsContent = {\n key: 'dictionary-details',\n content: {\n titleInput: {\n label: t({\n en: 'Title',\n fr: 'Titre',\n es: 'Título',\n }),\n description: t({\n en: 'The title of your dictionary allows you to easily identify it',\n fr: \"Le titre de votre dictionnaire permet de l'identifier facilement\",\n es: 'El título de su diccionario le permite identificar fácilmente',\n }),\n placeholder: t({\n en: 'Enter the title of your dictionary',\n fr: 'Entrez le titre de votre dictionnaire',\n es: 'Ingrese el título de su diccionario',\n }),\n },\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n description: t({\n en: 'The key of your dictionary is used to identify it in the application',\n fr: \"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application\",\n es: 'La clave de su diccionario se utiliza para identificarla en la aplicación',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n }),\n },\n descriptionInput: {\n label: t({\n en: 'Description',\n fr: 'Description',\n es: 'Descripción',\n }),\n placeholder: t({\n en: 'Enter the description of your dictionary',\n fr: 'Entrez la description de votre dictionnaire',\n es: 'Ingrese la descripción de su diccionario',\n }),\n description: t({\n en: 'The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.',\n fr: \"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.\",\n es: 'La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n description: t({\n en: 'A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.',\n fr: 'Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.',\n es: 'Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\n },\n\n saveButton: {\n text: t({\n en: 'Save changes',\n fr: 'Enregistrer les modifications',\n es: 'Guardar cambios',\n }),\n label: t({\n en: 'Click to save changes',\n fr: 'Cliquez pour enregistrer les modifications',\n es: 'Haga clic para guardar los cambios',\n }),\n },\n publishButton: {\n text: t({\n en: 'Publish dictionary',\n fr: 'Publier le dictionnaire',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier le dictionnaire',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n },\n} satisfies DeclarationContent;\n"],"names":["t"],"mappings":";;;AAEO,MAAM,2BAA2B;AAAA,EACtC,KAAK;AAAA,EACL,SAAS;AAAA,IACP,YAAY;AAAA,MACV,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,UAAU;AAAA,MACR,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,kBAAkB;AAAA,MAChB,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IAEA,cAAc;AAAA,MACZ,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAaA,SAAAA,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IAEA,YAAY;AAAA,MACV,MAAMA,SAAAA,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,eAAe;AAAA,MACb,MAAMA,SAAAA,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAOA,SAAAA,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,EACF;AACF;;"}
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts
CHANGED
|
@@ -29,25 +29,6 @@ export declare const dictionaryDetailsContent: {
|
|
|
29
29
|
text: import('@intlayer/core').TranslationContent<string>;
|
|
30
30
|
label: import('@intlayer/core').TranslationContent<string>;
|
|
31
31
|
};
|
|
32
|
-
updateDictionaryToasts: {
|
|
33
|
-
updated: {
|
|
34
|
-
title: import('@intlayer/core').TranslationContent<string>;
|
|
35
|
-
description: import('@intlayer/core').TranslationContent<string>;
|
|
36
|
-
};
|
|
37
|
-
failed: {
|
|
38
|
-
title: import('@intlayer/core').TranslationContent<string>;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
pushDictionariesToasts: {
|
|
42
|
-
updated: {
|
|
43
|
-
title: import('@intlayer/core').TranslationContent<string>;
|
|
44
|
-
description: import('@intlayer/core').TranslationContent<string>;
|
|
45
|
-
};
|
|
46
|
-
failed: {
|
|
47
|
-
title: import('@intlayer/core').TranslationContent<string>;
|
|
48
|
-
description: import('@intlayer/core').TranslationContent<string>;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
32
|
};
|
|
52
33
|
};
|
|
53
34
|
//# sourceMappingURL=dictionaryDetails.content.d.ts.map
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaryDetails.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"dictionaryDetails.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGP,CAAC"}
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs
CHANGED
|
@@ -93,53 +93,6 @@ const dictionaryDetailsContent = {
|
|
|
93
93
|
fr: "Cliquez pour publier le dictionnaire",
|
|
94
94
|
es: "Haga clic para publicar el diccionario"
|
|
95
95
|
})
|
|
96
|
-
},
|
|
97
|
-
updateDictionaryToasts: {
|
|
98
|
-
updated: {
|
|
99
|
-
title: t({
|
|
100
|
-
en: "Dictionary updated",
|
|
101
|
-
fr: "Dictionnaire mis à jour",
|
|
102
|
-
es: "Diccionario actualizado"
|
|
103
|
-
}),
|
|
104
|
-
description: t({
|
|
105
|
-
en: "Your dictionary has been updated successfully",
|
|
106
|
-
fr: "Votre dictionnaire a été mis à jour avec succès",
|
|
107
|
-
es: "Su diccionario se ha actualizado con éxito"
|
|
108
|
-
})
|
|
109
|
-
},
|
|
110
|
-
failed: {
|
|
111
|
-
title: t({
|
|
112
|
-
en: "Organization update failed",
|
|
113
|
-
fr: "La mise à jour de l'organisation a échoué",
|
|
114
|
-
es: "La actualización de la organización ha fallado"
|
|
115
|
-
})
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
pushDictionariesToasts: {
|
|
119
|
-
updated: {
|
|
120
|
-
title: t({
|
|
121
|
-
en: "Dictionary updated",
|
|
122
|
-
fr: "Dictionnaire mis à jour",
|
|
123
|
-
es: "Diccionario actualizado"
|
|
124
|
-
}),
|
|
125
|
-
description: t({
|
|
126
|
-
en: "Your dictionary has been updated successfully",
|
|
127
|
-
fr: "Votre dictionnaire a été mis à jour avec succès",
|
|
128
|
-
es: "Su diccionario se ha actualizado con éxito"
|
|
129
|
-
})
|
|
130
|
-
},
|
|
131
|
-
failed: {
|
|
132
|
-
title: t({
|
|
133
|
-
en: "Dictionary update failed",
|
|
134
|
-
fr: "La mise à jour de l'dictionnaire a échoué",
|
|
135
|
-
es: "La actualización del diccionario ha fallado"
|
|
136
|
-
}),
|
|
137
|
-
description: t({
|
|
138
|
-
en: "An error occurred while updating your dictionary",
|
|
139
|
-
fr: "Une erreur s'est produite lors de la mise à jour de votre dictionnaire",
|
|
140
|
-
es: "Se produjo un error al actualizar su diccionario"
|
|
141
|
-
})
|
|
142
|
-
}
|
|
143
96
|
}
|
|
144
97
|
}
|
|
145
98
|
};
|
package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaryDetails.content.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryDetailsContent = {\n key: 'dictionary-details',\n content: {\n titleInput: {\n label: t({\n en: 'Title',\n fr: 'Titre',\n es: 'Título',\n }),\n description: t({\n en: 'The title of your dictionary allows you to easily identify it',\n fr: \"Le titre de votre dictionnaire permet de l'identifier facilement\",\n es: 'El título de su diccionario le permite identificar fácilmente',\n }),\n placeholder: t({\n en: 'Enter the title of your dictionary',\n fr: 'Entrez le titre de votre dictionnaire',\n es: 'Ingrese el título de su diccionario',\n }),\n },\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n description: t({\n en: 'The key of your dictionary is used to identify it in the application',\n fr: \"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application\",\n es: 'La clave de su diccionario se utiliza para identificarla en la aplicación',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n }),\n },\n descriptionInput: {\n label: t({\n en: 'Description',\n fr: 'Description',\n es: 'Descripción',\n }),\n placeholder: t({\n en: 'Enter the description of your dictionary',\n fr: 'Entrez la description de votre dictionnaire',\n es: 'Ingrese la descripción de su diccionario',\n }),\n description: t({\n en: 'The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.',\n fr: \"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.\",\n es: 'La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n description: t({\n en: 'A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.',\n fr: 'Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.',\n es: 'Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\n },\n\n saveButton: {\n text: t({\n en: 'Save changes',\n fr: 'Enregistrer les modifications',\n es: 'Guardar cambios',\n }),\n label: t({\n en: 'Click to save changes',\n fr: 'Cliquez pour enregistrer les modifications',\n es: 'Haga clic para guardar los cambios',\n }),\n },\n publishButton: {\n text: t({\n en: 'Publish dictionary',\n fr: 'Publier le dictionnaire',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier le dictionnaire',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n
|
|
1
|
+
{"version":3,"file":"dictionaryDetails.content.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],"sourcesContent":["import { t, type DeclarationContent } from 'intlayer';\n\nexport const dictionaryDetailsContent = {\n key: 'dictionary-details',\n content: {\n titleInput: {\n label: t({\n en: 'Title',\n fr: 'Titre',\n es: 'Título',\n }),\n description: t({\n en: 'The title of your dictionary allows you to easily identify it',\n fr: \"Le titre de votre dictionnaire permet de l'identifier facilement\",\n es: 'El título de su diccionario le permite identificar fácilmente',\n }),\n placeholder: t({\n en: 'Enter the title of your dictionary',\n fr: 'Entrez le titre de votre dictionnaire',\n es: 'Ingrese el título de su diccionario',\n }),\n },\n keyInput: {\n label: t({\n en: 'Key',\n fr: 'Clé',\n es: 'Clave',\n }),\n description: t({\n en: 'The key of your dictionary is used to identify it in the application',\n fr: \"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application\",\n es: 'La clave de su diccionario se utiliza para identificarla en la aplicación',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n }),\n },\n descriptionInput: {\n label: t({\n en: 'Description',\n fr: 'Description',\n es: 'Descripción',\n }),\n placeholder: t({\n en: 'Enter the description of your dictionary',\n fr: 'Entrez la description de votre dictionnaire',\n es: 'Ingrese la descripción de su diccionario',\n }),\n description: t({\n en: 'The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.',\n fr: \"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.\",\n es: 'La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n }),\n description: t({\n en: 'A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.',\n fr: 'Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.',\n es: 'Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n }),\n },\n\n saveButton: {\n text: t({\n en: 'Save changes',\n fr: 'Enregistrer les modifications',\n es: 'Guardar cambios',\n }),\n label: t({\n en: 'Click to save changes',\n fr: 'Cliquez pour enregistrer les modifications',\n es: 'Haga clic para guardar los cambios',\n }),\n },\n publishButton: {\n text: t({\n en: 'Publish dictionary',\n fr: 'Publier le dictionnaire',\n es: 'Publicar diccionario',\n }),\n label: t({\n en: 'Click to publish dictionary',\n fr: 'Cliquez pour publier le dictionnaire',\n es: 'Haga clic para publicar el diccionario',\n }),\n },\n },\n} satisfies DeclarationContent;\n"],"names":[],"mappings":";AAEO,MAAM,2BAA2B;AAAA,EACtC,KAAK;AAAA,EACL,SAAS;AAAA,IACP,YAAY;AAAA,MACV,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,UAAU;AAAA,MACR,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,kBAAkB;AAAA,MAChB,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IAEA,cAAc;AAAA,MACZ,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,aAAa,EAAE;AAAA,QACb,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IAEA,YAAY;AAAA,MACV,MAAM,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,IACA,eAAe;AAAA,MACb,MAAM,EAAE;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,MACD,OAAO,EAAE;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA,CACL;AAAA,IACH;AAAA,EACF;AACF;"}
|
|
@@ -16,18 +16,19 @@ require("../EditableField/EditableFieldInput.cjs");
|
|
|
16
16
|
require("../EditableField/EditableFieldTextArea.cjs");
|
|
17
17
|
require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
|
|
18
18
|
require("../../hooks/useAsync/useAsyncStateStore.cjs");
|
|
19
|
-
require("../Auth/AuthProvider/index.cjs");
|
|
20
19
|
require("../../libs/intlayer-api/auth.cjs");
|
|
21
20
|
require("../../libs/intlayer-api/dictionary.cjs");
|
|
22
21
|
require("../../libs/intlayer-api/organization.cjs");
|
|
23
22
|
require("../../libs/intlayer-api/project.cjs");
|
|
23
|
+
require("../../libs/intlayer-api/stripe.cjs");
|
|
24
24
|
require("../../libs/intlayer-api/user.cjs");
|
|
25
|
+
require("@intlayer/config/client");
|
|
26
|
+
require("../Toaster/Toast.cjs");
|
|
25
27
|
require("@intlayer/dictionaries-entry");
|
|
26
28
|
require("deepmerge");
|
|
27
29
|
require("../Form/FormBase.cjs");
|
|
28
30
|
require("../Form/FormField.cjs");
|
|
29
31
|
require("../../Form-DERuauvB.cjs");
|
|
30
|
-
require("../Toaster/Toast.cjs");
|
|
31
32
|
require("../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
|
|
32
33
|
require("zod");
|
|
33
34
|
const components_Headers_index = require("../Headers/index.cjs");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryFieldEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Button } from '../Button';\nimport { Container } from '../Container';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../DictionaryEditor';\nimport { H2 } from '../Headers';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { dictionaryFieldEditorContent } from './dictionaryFieldEditor.content';\nimport { EditorView } from './EditorView/EditorView';\nimport { KeyPathBreadcrumb } from './KeyPathBreadcrumb';\nimport { NavigationViewNode } from './NavigationView/NavigationViewNode';\nimport { SaveForm } from './SaveForm/SaveForm';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n};\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n}) => {\n const { content: dictionaryContent, key } = dictionary;\n const { editedContent, dictionaryRecord, setDictionariesRecord } =\n useEditedContentStore((s) => ({\n editedContent: s.editedContent,\n dictionaryRecord: s.dictionariesRecord,\n setDictionariesRecord: s.setDictionariesRecord,\n }));\n const { returnToDictionaryList, titleContent, titleInformation } =\n useDictionary(dictionaryFieldEditorContent);\n\n const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(\n (s) => ({\n focusedContent: s.focusedContent,\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n })\n );\n\n const focusedKeyPath = focusedContent?.keyPath;\n\n const section = editedContent[key]?.content ?? dictionaryContent;\n\n useEffect(() => {\n if (dictionaryRecord[key]) return;\n\n setDictionariesRecord({\n [key]: dictionary,\n });\n }, [dictionary, key, setDictionariesRecord, dictionaryRecord]);\n\n return (\n <div className=\"flex size-full flex-1 flex-col gap-10\">\n <div className=\"flex items-center gap-2\">\n <Button\n onClick={() => onClickDictionaryList?.()}\n variant=\"hoverable\"\n size=\"icon-md\"\n color=\"text\"\n id=\"return-to-dictionary-list\"\n Icon={ArrowLeft}\n label={returnToDictionaryList.label.value}\n />\n <label\n className=\"cursor-pointer text-xs hover:underline\"\n htmlFor=\"return-to-dictionary-list\"\n >\n {returnToDictionaryList.text}\n </label>\n </div>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleInformation}</H2>\n\n <DictionaryDetailsForm dictionary={dictionary} />\n </Container>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleContent}</H2>\n\n <KeyPathBreadcrumb\n dictionaryKey={key}\n keyPath={focusedKeyPath ?? []}\n onClickKeyPath={setFocusedContentKeyPath}\n />\n <div className=\"flex gap-2 max-md:flex-col\">\n <Container\n border\n background={false}\n className=\"top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]\"\n roundedSize=\"xl\"\n >\n <NavigationViewNode\n keyPath={[]}\n section={section}\n dictionaryKey={key}\n />\n </Container>\n <div className=\"top-6 flex h-full flex-1 flex-col gap-6 md:sticky\">\n {(focusedKeyPath?.length ?? 0) > 0 && (\n <Container\n border\n background={false}\n className=\"h-full flex-1 overflow-hidden\"\n roundedSize=\"xl\"\n >\n <EditorView dictionary={dictionary} dictionaryKey={key} />\n </Container>\n )}\n <SaveForm dictionary={dictionary} />\n </div>\n </div>\n </Container>\n </div>\n );\n};\n"],"names":["useEditedContentStore","useDictionary","dictionaryFieldEditorContent","useEditionPanelStore","useEffect","jsxs","jsx","Button","ArrowLeft","Container","H2","DictionaryDetailsForm","KeyPathBreadcrumb","NavigationViewNode","EditorView","SaveForm"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DictionaryFieldEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary } from '@intlayer/core';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Button } from '../Button';\nimport { Container } from '../Container';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../DictionaryEditor';\nimport { H2 } from '../Headers';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { dictionaryFieldEditorContent } from './dictionaryFieldEditor.content';\nimport { EditorView } from './EditorView/EditorView';\nimport { KeyPathBreadcrumb } from './KeyPathBreadcrumb';\nimport { NavigationViewNode } from './NavigationView/NavigationViewNode';\nimport { SaveForm } from './SaveForm/SaveForm';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n};\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n}) => {\n const { content: dictionaryContent, key } = dictionary;\n const { editedContent, dictionaryRecord, setDictionariesRecord } =\n useEditedContentStore((s) => ({\n editedContent: s.editedContent,\n dictionaryRecord: s.dictionariesRecord,\n setDictionariesRecord: s.setDictionariesRecord,\n }));\n const { returnToDictionaryList, titleContent, titleInformation } =\n useDictionary(dictionaryFieldEditorContent);\n\n const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(\n (s) => ({\n focusedContent: s.focusedContent,\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n })\n );\n\n const focusedKeyPath = focusedContent?.keyPath;\n\n const section = editedContent[key]?.content ?? dictionaryContent;\n\n useEffect(() => {\n if (dictionaryRecord[key]) return;\n\n setDictionariesRecord({\n [key]: dictionary,\n });\n }, [dictionary, key, setDictionariesRecord, dictionaryRecord]);\n\n return (\n <div className=\"flex size-full flex-1 flex-col gap-10\">\n <div className=\"flex items-center gap-2\">\n <Button\n onClick={() => onClickDictionaryList?.()}\n variant=\"hoverable\"\n size=\"icon-md\"\n color=\"text\"\n id=\"return-to-dictionary-list\"\n Icon={ArrowLeft}\n label={returnToDictionaryList.label.value}\n />\n <label\n className=\"cursor-pointer text-xs hover:underline\"\n htmlFor=\"return-to-dictionary-list\"\n >\n {returnToDictionaryList.text}\n </label>\n </div>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleInformation}</H2>\n\n <DictionaryDetailsForm dictionary={dictionary} />\n </Container>\n\n <Container\n className=\"flex size-full justify-center gap-10 p-6\"\n roundedSize=\"xl\"\n >\n <H2>{titleContent}</H2>\n\n <KeyPathBreadcrumb\n dictionaryKey={key}\n keyPath={focusedKeyPath ?? []}\n onClickKeyPath={setFocusedContentKeyPath}\n />\n <div className=\"flex gap-2 max-md:flex-col\">\n <Container\n border\n background={false}\n className=\"top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]\"\n roundedSize=\"xl\"\n >\n <NavigationViewNode\n keyPath={[]}\n section={section}\n dictionaryKey={key}\n />\n </Container>\n <div className=\"top-6 flex h-full flex-1 flex-col gap-6 md:sticky\">\n {(focusedKeyPath?.length ?? 0) > 0 && (\n <Container\n border\n background={false}\n className=\"h-full flex-1 overflow-hidden\"\n roundedSize=\"xl\"\n >\n <EditorView dictionary={dictionary} dictionaryKey={key} />\n </Container>\n )}\n <SaveForm dictionary={dictionary} />\n </div>\n </div>\n </Container>\n </div>\n );\n};\n"],"names":["useEditedContentStore","useDictionary","dictionaryFieldEditorContent","useEditionPanelStore","useEffect","jsxs","jsx","Button","ArrowLeft","Container","H2","DictionaryDetailsForm","KeyPathBreadcrumb","NavigationViewNode","EditorView","SaveForm"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,MAAM,wBAAwD,CAAC;AAAA,EACpE;AAAA,EACA;AACF,MAAM;AACJ,QAAM,EAAE,SAAS,mBAAmB,IAAA,IAAQ;AAC5C,QAAM,EAAE,eAAe,kBAAkB,0BACvCA,kDAAAA,sBAAsB,CAAC,OAAO;AAAA,IAC5B,eAAe,EAAE;AAAA,IACjB,kBAAkB,EAAE;AAAA,IACpB,uBAAuB,EAAE;AAAA,EACzB,EAAA;AACJ,QAAM,EAAE,wBAAwB,cAAc,iBAAiB,IAC7DC,cAAAA,cAAcC,+DAAAA,4BAA4B;AAEtC,QAAA,EAAE,gBAAgB,yBAAA,IAA6BC,iDAAA;AAAA,IACnD,CAAC,OAAO;AAAA,MACN,gBAAgB,EAAE;AAAA,MAClB,0BAA0B,EAAE;AAAA,IAAA;AAAA,EAC9B;AAGF,QAAM,iBAAiB,gBAAgB;AAEvC,QAAM,UAAU,cAAc,GAAG,GAAG,WAAW;AAE/CC,aAAAA,UAAU,MAAM;AACV,QAAA,iBAAiB,GAAG,EAAG;AAEL,0BAAA;AAAA,MACpB,CAAC,GAAG,GAAG;AAAA,IAAA,CACR;AAAA,KACA,CAAC,YAAY,KAAK,uBAAuB,gBAAgB,CAAC;AAG3D,SAAAC,2BAAA,kBAAA,KAAC,OAAI,EAAA,WAAU,yCACb,UAAA;AAAA,IAACA,2BAAAA,kBAAAA,KAAA,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,MAAAC,2BAAA,kBAAA;AAAA,QAACC,yBAAA;AAAA,QAAA;AAAA,UACC,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AAA,kBAAA;AAAA,gBACjB;AAAA,cAAA;AAAA,YACF;AAAA,YACAR,2BAAAA,kBAAAA,KAAC,OAAI,EAAA,WAAU,qDACX,UAAA;AAAA,eAAgB,gBAAA,UAAU,KAAK,KAC/BC,2BAAA,kBAAA;AAAA,gBAACG,2BAAA;AAAA,gBAAA;AAAA,kBACC,QAAM;AAAA,kBACN,YAAY;AAAA,kBACZ,WAAU;AAAA,kBACV,aAAY;AAAA,kBAEZ,UAACH,2BAAA,kBAAA,IAAAQ,uDAAA,YAAA,EAAW,YAAwB,eAAe,KAAK;AAAA,gBAAA;AAAA,cAC1D;AAAA,cAEFR,iDAACS,mDAAAA,YAAS,YAAwB;AAAA,YAAA,GACpC;AAAA,UAAA,GACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ;;"}
|
|
@@ -14,18 +14,19 @@ import "../EditableField/EditableFieldInput.mjs";
|
|
|
14
14
|
import "../EditableField/EditableFieldTextArea.mjs";
|
|
15
15
|
import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
|
|
16
16
|
import "../../hooks/useAsync/useAsyncStateStore.mjs";
|
|
17
|
-
import "../Auth/AuthProvider/index.mjs";
|
|
18
17
|
import "../../libs/intlayer-api/auth.mjs";
|
|
19
18
|
import "../../libs/intlayer-api/dictionary.mjs";
|
|
20
19
|
import "../../libs/intlayer-api/organization.mjs";
|
|
21
20
|
import "../../libs/intlayer-api/project.mjs";
|
|
21
|
+
import "../../libs/intlayer-api/stripe.mjs";
|
|
22
22
|
import "../../libs/intlayer-api/user.mjs";
|
|
23
|
+
import "@intlayer/config/client";
|
|
24
|
+
import "../Toaster/Toast.mjs";
|
|
23
25
|
import "@intlayer/dictionaries-entry";
|
|
24
26
|
import "deepmerge";
|
|
25
27
|
import "../Form/FormBase.mjs";
|
|
26
28
|
import "../Form/FormField.mjs";
|
|
27
29
|
import "../../Form-DyFBmVya.js";
|
|
28
|
-
import "../Toaster/Toast.mjs";
|
|
29
30
|
import "../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
|
|
30
31
|
import "zod";
|
|
31
32
|
import { H2 } from "../Headers/index.mjs";
|