@intlayer/design-system 5.8.1 → 6.0.0-canary.1
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 +34 -106
- package/dist/better-auth.CMQ3rA-I-7umXOENE.js.map +1 -1
- package/dist/better-auth.CMQ3rA-I-C2nBKRMa.cjs.map +1 -1
- package/dist/components/Breadcrumb/breadcrumb.content.cjs +3 -1
- package/dist/components/Breadcrumb/breadcrumb.content.cjs.map +1 -1
- package/dist/components/Breadcrumb/breadcrumb.content.d.ts +3 -0
- package/dist/components/Breadcrumb/breadcrumb.content.d.ts.map +1 -1
- package/dist/components/Breadcrumb/breadcrumb.content.mjs +3 -1
- package/dist/components/Breadcrumb/breadcrumb.content.mjs.map +1 -1
- package/dist/components/Breadcrumb/index.cjs.map +1 -1
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.cjs +3 -1
- package/dist/components/CopyButton/CopyButton.content.cjs.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.d.ts +3 -0
- package/dist/components/CopyButton/CopyButton.content.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.mjs +3 -1
- package/dist/components/CopyButton/CopyButton.content.mjs.map +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs +7 -3
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs +7 -3
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditor.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditor.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +83 -34
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +83 -34
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +13 -9
- 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 +12 -8
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +27 -13
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +27 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +27 -13
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs +9 -4
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +9 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs +9 -4
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +29 -25
- 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 +27 -23
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +37 -17
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +64 -2
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +37 -17
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs +25 -12
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +25 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs +25 -12
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +4 -5
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +4 -5
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +25 -12
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +25 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +25 -12
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +36 -31
- 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 +36 -31
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +32 -28
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +32 -5
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +32 -28
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureEditor.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/StructureEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureEditor.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/StructureEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +2 -5
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -5
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs +9 -4
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +9 -0
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs +9 -4
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +3 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +3 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +4 -6
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts +3 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +4 -6
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.cjs +7 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +7 -0
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.mjs +7 -3
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +9 -6
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +9 -4
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +9 -6
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +28 -14
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +29 -2
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +28 -14
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
- package/dist/components/DropDown/index.cjs +2 -2
- package/dist/components/DropDown/index.cjs.map +1 -1
- package/dist/components/DropDown/index.d.ts.map +1 -1
- package/dist/components/DropDown/index.mjs +2 -2
- package/dist/components/DropDown/index.mjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.cjs +2 -5
- package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.mjs +2 -5
- package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.cjs.map +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +2 -2
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts.map +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.mjs.map +1 -1
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs +5 -2
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs.map +1 -1
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts +3 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts.map +1 -1
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs +5 -2
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs.map +1 -1
- package/dist/components/Flags/Flag.cjs +2 -1
- package/dist/components/Flags/Flag.cjs.map +1 -1
- package/dist/components/Flags/Flag.d.ts.map +1 -1
- package/dist/components/Flags/Flag.mjs +2 -1
- package/dist/components/Flags/Flag.mjs.map +1 -1
- package/dist/components/IDE/Code.cjs +8 -8
- package/dist/components/IDE/Code.cjs.map +1 -1
- package/dist/components/IDE/Code.mjs +8 -8
- package/dist/components/IDE/Code.mjs.map +1 -1
- package/dist/components/IDE/CodeBlockClient.cjs +1 -1
- package/dist/components/IDE/CodeBlockClient.cjs.map +1 -1
- package/dist/components/IDE/CodeBlockClient.d.ts +1 -1
- package/dist/components/IDE/CodeBlockClient.d.ts.map +1 -1
- package/dist/components/IDE/CodeBlockClient.mjs +1 -1
- package/dist/components/IDE/CodeBlockClient.mjs.map +1 -1
- package/dist/components/IDE/CodeContext.cjs +1 -3
- package/dist/components/IDE/CodeContext.cjs.map +1 -1
- package/dist/components/IDE/CodeContext.mjs +1 -3
- package/dist/components/IDE/CodeContext.mjs.map +1 -1
- package/dist/components/IDE/code.content.cjs +5 -2
- package/dist/components/IDE/code.content.cjs.map +1 -1
- package/dist/components/IDE/code.content.d.ts +5 -0
- package/dist/components/IDE/code.content.d.ts.map +1 -1
- package/dist/components/IDE/code.content.mjs +5 -2
- package/dist/components/IDE/code.content.mjs.map +1 -1
- package/dist/components/IDE/copyCode.content.cjs +5 -2
- package/dist/components/IDE/copyCode.content.cjs.map +1 -1
- package/dist/components/IDE/copyCode.content.d.ts +5 -0
- package/dist/components/IDE/copyCode.content.d.ts.map +1 -1
- package/dist/components/IDE/copyCode.content.mjs +5 -2
- package/dist/components/IDE/copyCode.content.mjs.map +1 -1
- package/dist/components/Input/Checkbox.cjs.map +1 -1
- package/dist/components/Input/Checkbox.d.ts +2 -2
- package/dist/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/components/Input/Checkbox.mjs.map +1 -1
- package/dist/components/Loader/index.content.cjs +6 -1
- package/dist/components/Loader/index.content.cjs.map +1 -1
- package/dist/components/Loader/index.content.d.ts +33 -2
- package/dist/components/Loader/index.content.d.ts.map +1 -1
- package/dist/components/Loader/index.content.mjs +6 -1
- package/dist/components/Loader/index.content.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +1 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +1 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +1 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.cjs +17 -8
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +17 -0
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs +17 -8
- package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs +13 -6
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +13 -0
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs +13 -6
- package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs.map +1 -1
- package/dist/components/Modal/Modal.cjs +2 -4
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.mjs +2 -4
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.cjs +1 -3
- package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.mjs +1 -3
- package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
- package/dist/components/Navbar/index.cjs +2 -4
- package/dist/components/Navbar/index.cjs.map +1 -1
- package/dist/components/Navbar/index.mjs +2 -4
- package/dist/components/Navbar/index.mjs.map +1 -1
- package/dist/components/SwitchSelector/index.cjs +1 -3
- package/dist/components/SwitchSelector/index.cjs.map +1 -1
- package/dist/components/SwitchSelector/index.mjs +1 -3
- package/dist/components/SwitchSelector/index.mjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +1 -3
- 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 +1 -3
- package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/components/Table/table.content.cjs +3 -1
- package/dist/components/Table/table.content.cjs.map +1 -1
- package/dist/components/Table/table.content.d.ts +3 -0
- package/dist/components/Table/table.content.d.ts.map +1 -1
- package/dist/components/Table/table.content.mjs +3 -1
- package/dist/components/Table/table.content.mjs.map +1 -1
- package/dist/components/Tag/index.cjs +22 -88
- package/dist/components/Tag/index.cjs.map +1 -1
- package/dist/components/Tag/index.d.ts +5 -5
- package/dist/components/Tag/index.mjs +22 -88
- package/dist/components/Tag/index.mjs.map +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.cjs +20 -21
- package/dist/components/TextArea/AutocompleteTextArea.cjs.map +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.d.ts.map +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.mjs +20 -21
- package/dist/components/TextArea/AutocompleteTextArea.mjs.map +1 -1
- package/dist/hooks/auth.cjs +26 -11
- package/dist/hooks/auth.cjs.map +1 -1
- package/dist/hooks/auth.mjs +26 -11
- package/dist/hooks/auth.mjs.map +1 -1
- package/dist/hooks/index.cjs +65 -66
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +1 -3
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.mjs +4 -8
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/hooks/reactQuery.cjs +648 -0
- package/dist/hooks/reactQuery.cjs.map +1 -0
- package/dist/hooks/reactQuery.d.ts +899 -0
- package/dist/hooks/reactQuery.d.ts.map +1 -0
- package/dist/hooks/reactQuery.mjs +646 -0
- package/dist/hooks/reactQuery.mjs.map +1 -0
- package/dist/hooks/useAuth/useOAuth2.cjs +13 -10
- package/dist/hooks/useAuth/useOAuth2.cjs.map +1 -1
- package/dist/hooks/useAuth/useOAuth2.d.ts +1 -1
- package/dist/hooks/useAuth/useOAuth2.d.ts.map +1 -1
- package/dist/hooks/useAuth/useOAuth2.mjs +13 -10
- package/dist/hooks/useAuth/useOAuth2.mjs.map +1 -1
- package/dist/hooks/useAuth/useSession.cjs +23 -26
- package/dist/hooks/useAuth/useSession.cjs.map +1 -1
- package/dist/hooks/useAuth/useSession.d.ts +4 -352
- package/dist/hooks/useAuth/useSession.d.ts.map +1 -1
- package/dist/hooks/useAuth/useSession.mjs +23 -26
- package/dist/hooks/useAuth/useSession.mjs.map +1 -1
- package/dist/hooks/useIntlayerAPI.cjs +2 -3
- package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
- package/dist/hooks/useIntlayerAPI.mjs +2 -3
- package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
- package/dist/hooks/useUser/index.cjs +6 -9
- package/dist/hooks/useUser/index.cjs.map +1 -1
- package/dist/hooks/useUser/index.d.ts +2 -18
- package/dist/hooks/useUser/index.d.ts.map +1 -1
- package/dist/hooks/useUser/index.mjs +6 -9
- package/dist/hooks/useUser/index.mjs.map +1 -1
- package/dist/index-BCuMWKyy.js.map +1 -1
- package/dist/index-BYzBot7l.cjs.map +1 -1
- package/dist/providers/ReactQueryProvider.cjs +85 -0
- package/dist/providers/ReactQueryProvider.cjs.map +1 -0
- package/dist/providers/ReactQueryProvider.d.ts +13 -0
- package/dist/providers/ReactQueryProvider.d.ts.map +1 -0
- package/dist/providers/ReactQueryProvider.mjs +85 -0
- package/dist/providers/ReactQueryProvider.mjs.map +1 -0
- package/dist/providers/index.cjs +5 -0
- package/dist/{hooks/useAsync → providers}/index.cjs.map +1 -1
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.mjs +5 -0
- package/dist/{hooks/useAsync → providers}/index.mjs.map +1 -1
- package/package.json +30 -20
- package/dist/hooks/intlayerAPIHooks.cjs +0 -542
- package/dist/hooks/intlayerAPIHooks.cjs.map +0 -1
- package/dist/hooks/intlayerAPIHooks.d.ts +0 -968
- package/dist/hooks/intlayerAPIHooks.d.ts.map +0 -1
- package/dist/hooks/intlayerAPIHooks.mjs +0 -542
- package/dist/hooks/intlayerAPIHooks.mjs.map +0 -1
- package/dist/hooks/useAsync/index.cjs +0 -8
- package/dist/hooks/useAsync/index.d.ts +0 -3
- package/dist/hooks/useAsync/index.d.ts.map +0 -1
- package/dist/hooks/useAsync/index.mjs +0 -8
- package/dist/hooks/useAsync/useAsync.cjs +0 -244
- package/dist/hooks/useAsync/useAsync.cjs.map +0 -1
- package/dist/hooks/useAsync/useAsync.d.ts +0 -73
- package/dist/hooks/useAsync/useAsync.d.ts.map +0 -1
- package/dist/hooks/useAsync/useAsync.mjs +0 -244
- package/dist/hooks/useAsync/useAsync.mjs.map +0 -1
- package/dist/hooks/useAsync/useAsyncStateStore.cjs +0 -150
- package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +0 -1
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts +0 -52
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +0 -1
- package/dist/hooks/useAsync/useAsyncStateStore.mjs +0 -150
- package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +0 -1
- package/dist/hooks/useAsync/useAsyncWrapper.cjs +0 -10
- package/dist/hooks/useAsync/useAsyncWrapper.cjs.map +0 -1
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts +0 -37
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts.map +0 -1
- package/dist/hooks/useAsync/useAsyncWrapper.mjs +0 -10
- package/dist/hooks/useAsync/useAsyncWrapper.mjs.map +0 -1
- package/dist/hooks/useGetAllDictionaries.cjs +0 -35
- package/dist/hooks/useGetAllDictionaries.cjs.map +0 -1
- package/dist/hooks/useGetAllDictionaries.d.ts +0 -11
- package/dist/hooks/useGetAllDictionaries.d.ts.map +0 -1
- package/dist/hooks/useGetAllDictionaries.mjs +0 -35
- package/dist/hooks/useGetAllDictionaries.mjs.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const useDictionaryDetailsSchemaContent: {
|
|
2
2
|
key: string;
|
|
3
|
+
autoFill: string;
|
|
3
4
|
content: {
|
|
4
5
|
titleRequiredError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
5
6
|
en: string;
|
|
@@ -15,6 +16,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
15
16
|
hi: string;
|
|
16
17
|
ar: string;
|
|
17
18
|
ru: string;
|
|
19
|
+
tr: string;
|
|
18
20
|
}, {
|
|
19
21
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
20
22
|
} & {
|
|
@@ -32,6 +34,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
32
34
|
hi: string;
|
|
33
35
|
ar: string;
|
|
34
36
|
ru: string;
|
|
37
|
+
tr: string;
|
|
35
38
|
};
|
|
36
39
|
}>;
|
|
37
40
|
titleInvalidTypeError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -48,6 +51,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
48
51
|
hi: string;
|
|
49
52
|
ar: string;
|
|
50
53
|
ru: string;
|
|
54
|
+
tr: string;
|
|
51
55
|
}, {
|
|
52
56
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
53
57
|
} & {
|
|
@@ -65,6 +69,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
65
69
|
hi: string;
|
|
66
70
|
ar: string;
|
|
67
71
|
ru: string;
|
|
72
|
+
tr: string;
|
|
68
73
|
};
|
|
69
74
|
}>;
|
|
70
75
|
titleMinLengthError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -81,6 +86,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
81
86
|
hi: string;
|
|
82
87
|
ar: string;
|
|
83
88
|
ru: string;
|
|
89
|
+
tr: string;
|
|
84
90
|
}, {
|
|
85
91
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
86
92
|
} & {
|
|
@@ -98,6 +104,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
98
104
|
hi: string;
|
|
99
105
|
ar: string;
|
|
100
106
|
ru: string;
|
|
107
|
+
tr: string;
|
|
101
108
|
};
|
|
102
109
|
}>;
|
|
103
110
|
keyRequiredError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -114,6 +121,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
114
121
|
hi: string;
|
|
115
122
|
ar: string;
|
|
116
123
|
ru: string;
|
|
124
|
+
tr: string;
|
|
117
125
|
}, {
|
|
118
126
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
119
127
|
} & {
|
|
@@ -131,6 +139,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
131
139
|
hi: string;
|
|
132
140
|
ar: string;
|
|
133
141
|
ru: string;
|
|
142
|
+
tr: string;
|
|
134
143
|
};
|
|
135
144
|
}>;
|
|
136
145
|
keyInvalidTypeError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -147,6 +156,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
147
156
|
hi: string;
|
|
148
157
|
ar: string;
|
|
149
158
|
ru: string;
|
|
159
|
+
tr: string;
|
|
150
160
|
}, {
|
|
151
161
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
152
162
|
} & {
|
|
@@ -164,6 +174,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
164
174
|
hi: string;
|
|
165
175
|
ar: string;
|
|
166
176
|
ru: string;
|
|
177
|
+
tr: string;
|
|
167
178
|
};
|
|
168
179
|
}>;
|
|
169
180
|
keySpaceError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -180,6 +191,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
180
191
|
hi: string;
|
|
181
192
|
ar: string;
|
|
182
193
|
ru: string;
|
|
194
|
+
tr: string;
|
|
183
195
|
}, {
|
|
184
196
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
185
197
|
} & {
|
|
@@ -197,6 +209,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
197
209
|
hi: string;
|
|
198
210
|
ar: string;
|
|
199
211
|
ru: string;
|
|
212
|
+
tr: string;
|
|
200
213
|
};
|
|
201
214
|
}>;
|
|
202
215
|
keyMinLengthError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -213,6 +226,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
213
226
|
hi: string;
|
|
214
227
|
ar: string;
|
|
215
228
|
ru: string;
|
|
229
|
+
tr: string;
|
|
216
230
|
}, {
|
|
217
231
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
218
232
|
} & {
|
|
@@ -230,6 +244,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
230
244
|
hi: string;
|
|
231
245
|
ar: string;
|
|
232
246
|
ru: string;
|
|
247
|
+
tr: string;
|
|
233
248
|
};
|
|
234
249
|
}>;
|
|
235
250
|
descriptionRequiredError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -246,6 +261,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
246
261
|
hi: string;
|
|
247
262
|
ar: string;
|
|
248
263
|
ru: string;
|
|
264
|
+
tr: string;
|
|
249
265
|
}, {
|
|
250
266
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
251
267
|
} & {
|
|
@@ -263,6 +279,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
263
279
|
hi: string;
|
|
264
280
|
ar: string;
|
|
265
281
|
ru: string;
|
|
282
|
+
tr: string;
|
|
266
283
|
};
|
|
267
284
|
}>;
|
|
268
285
|
descriptionInvalidTypeError: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -279,6 +296,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
279
296
|
hi: string;
|
|
280
297
|
ar: string;
|
|
281
298
|
ru: string;
|
|
299
|
+
tr: string;
|
|
282
300
|
}, {
|
|
283
301
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
284
302
|
} & {
|
|
@@ -296,6 +314,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
296
314
|
hi: string;
|
|
297
315
|
ar: string;
|
|
298
316
|
ru: string;
|
|
317
|
+
tr: string;
|
|
299
318
|
};
|
|
300
319
|
}>;
|
|
301
320
|
requiredErrorProjectId: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -312,6 +331,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
312
331
|
hi: string;
|
|
313
332
|
ar: string;
|
|
314
333
|
ru: string;
|
|
334
|
+
tr: string;
|
|
315
335
|
}, {
|
|
316
336
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
317
337
|
} & {
|
|
@@ -329,6 +349,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
329
349
|
hi: string;
|
|
330
350
|
ar: string;
|
|
331
351
|
ru: string;
|
|
352
|
+
tr: string;
|
|
332
353
|
};
|
|
333
354
|
}>;
|
|
334
355
|
invalidTypeErrorProjectId: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -345,6 +366,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
345
366
|
hi: string;
|
|
346
367
|
ar: string;
|
|
347
368
|
ru: string;
|
|
369
|
+
tr: string;
|
|
348
370
|
}, {
|
|
349
371
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
350
372
|
} & {
|
|
@@ -362,6 +384,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
362
384
|
hi: string;
|
|
363
385
|
ar: string;
|
|
364
386
|
ru: string;
|
|
387
|
+
tr: string;
|
|
365
388
|
};
|
|
366
389
|
}>;
|
|
367
390
|
invalidTypeErrorTags: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
|
|
@@ -378,6 +401,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
378
401
|
hi: string;
|
|
379
402
|
ar: string;
|
|
380
403
|
ru: string;
|
|
404
|
+
tr: string;
|
|
381
405
|
}, {
|
|
382
406
|
nodeType: import("@intlayer/core").NodeType.Translation | "translation";
|
|
383
407
|
} & {
|
|
@@ -395,6 +419,7 @@ export declare const useDictionaryDetailsSchemaContent: {
|
|
|
395
419
|
hi: string;
|
|
396
420
|
ar: string;
|
|
397
421
|
ru: string;
|
|
422
|
+
tr: string;
|
|
398
423
|
};
|
|
399
424
|
}>;
|
|
400
425
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionaryDetailsSchema.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"useDictionaryDetailsSchema.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiNxB,CAAC;AAEvB,eAAe,iCAAiC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t } from "intlayer";
|
|
2
2
|
const useDictionaryDetailsSchemaContent = {
|
|
3
3
|
key: "dictionary-detail-schema",
|
|
4
|
+
autoFill: "./{{key}}.content.json",
|
|
4
5
|
content: {
|
|
5
6
|
titleRequiredError: t({
|
|
6
7
|
en: "Please enter a name for your organization.",
|
|
@@ -15,7 +16,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
15
16
|
pt: "Por favor, insira um nome para sua organização.",
|
|
16
17
|
hi: "कृपया अपने संगठन का नाम दर्ज करें।",
|
|
17
18
|
ar: "يرجى إدخال اسم منظمتك.",
|
|
18
|
-
ru: "Пожалуйста, введите название вашей организации."
|
|
19
|
+
ru: "Пожалуйста, введите название вашей организации.",
|
|
20
|
+
tr: "Lütfen organizasyonunuz için bir isim girin."
|
|
19
21
|
}),
|
|
20
22
|
titleInvalidTypeError: t({
|
|
21
23
|
en: "The organization name must be a valid string.",
|
|
@@ -30,7 +32,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
30
32
|
pt: "O nome da organização deve ser uma string válida.",
|
|
31
33
|
hi: "संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।",
|
|
32
34
|
ar: "يجب أن يكون اسم المنظمة سلسلة صحيحة.",
|
|
33
|
-
ru: "Имя организации должно быть правильной строкой."
|
|
35
|
+
ru: "Имя организации должно быть правильной строкой.",
|
|
36
|
+
tr: "Organizasyon adı geçerli bir dize olmalıdır."
|
|
34
37
|
}),
|
|
35
38
|
titleMinLengthError: t({
|
|
36
39
|
en: "The organization name must be at least 4 characters long.",
|
|
@@ -45,7 +48,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
45
48
|
pt: "O nome da organização deve ter pelo menos 4 caracteres.",
|
|
46
49
|
hi: "संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।",
|
|
47
50
|
ar: "يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.",
|
|
48
|
-
ru: "Имя организации должно содержать не менее 4 символов."
|
|
51
|
+
ru: "Имя организации должно содержать не менее 4 символов.",
|
|
52
|
+
tr: "Organizasyon adı en az 4 karakter uzunluğunda olmalıdır."
|
|
49
53
|
}),
|
|
50
54
|
keyRequiredError: t({
|
|
51
55
|
en: "Please enter a key for your organization.",
|
|
@@ -60,7 +64,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
60
64
|
pt: "Por favor, insira uma chave para sua organização.",
|
|
61
65
|
hi: "कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।",
|
|
62
66
|
ar: "يرجى إدخال مفتاح لمنظمتك.",
|
|
63
|
-
ru: "Пожалуйста, введите ключ для вашей организации."
|
|
67
|
+
ru: "Пожалуйста, введите ключ для вашей организации.",
|
|
68
|
+
tr: "Lütfen organizasyonunuz için bir anahtar girin."
|
|
64
69
|
}),
|
|
65
70
|
keyInvalidTypeError: t({
|
|
66
71
|
en: "The key must be a valid string.",
|
|
@@ -75,7 +80,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
75
80
|
pt: "A chave deve ser uma string válida.",
|
|
76
81
|
hi: "कुंजी एक वैध स्ट्रिंग होनी चाहिए।",
|
|
77
82
|
ar: "يجب أن يكون المفتاح سلسلة صحيحة.",
|
|
78
|
-
ru: "Ключ должен быть правильной строкой."
|
|
83
|
+
ru: "Ключ должен быть правильной строкой.",
|
|
84
|
+
tr: "Anahtar geçerli bir dize olmalıdır."
|
|
79
85
|
}),
|
|
80
86
|
keySpaceError: t({
|
|
81
87
|
en: "The key cannot contain spaces or special characters.",
|
|
@@ -90,7 +96,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
90
96
|
pt: "A chave não pode conter espaços ou caracteres especiais.",
|
|
91
97
|
hi: "कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।",
|
|
92
98
|
ar: "لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.",
|
|
93
|
-
ru: "Ключ не может содержать пробелы или специальные символы."
|
|
99
|
+
ru: "Ключ не может содержать пробелы или специальные символы.",
|
|
100
|
+
tr: "Anahtar boşluk veya özel karakterler içeremez."
|
|
94
101
|
}),
|
|
95
102
|
keyMinLengthError: t({
|
|
96
103
|
en: "The key must be at least 4 characters long.",
|
|
@@ -105,7 +112,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
105
112
|
pt: "A chave deve ter pelo menos 4 caracteres.",
|
|
106
113
|
hi: "कुंजी में कम से कम 4 वर्ण होने चाहिए।",
|
|
107
114
|
ar: "يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.",
|
|
108
|
-
ru: "Ключ должен содержать не менее 4 символов."
|
|
115
|
+
ru: "Ключ должен содержать не менее 4 символов.",
|
|
116
|
+
tr: "Anahtar en az 4 karakter uzunluğunda olmalıdır."
|
|
109
117
|
}),
|
|
110
118
|
// Description Field Error Messages
|
|
111
119
|
descriptionRequiredError: t({
|
|
@@ -121,7 +129,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
121
129
|
pt: "Por favor, insira uma descrição para sua organização.",
|
|
122
130
|
hi: "कृपया अपने संगठन का विवरण दर्ज करें।",
|
|
123
131
|
ar: "يرجى إدخال وصف لمنظمتك.",
|
|
124
|
-
ru: "Пожалуйста, введите описание вашей организации."
|
|
132
|
+
ru: "Пожалуйста, введите описание вашей организации.",
|
|
133
|
+
tr: "Lütfen organizasyonunuz için bir açıklama girin."
|
|
125
134
|
}),
|
|
126
135
|
descriptionInvalidTypeError: t({
|
|
127
136
|
en: "The description must be a valid string.",
|
|
@@ -136,7 +145,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
136
145
|
pt: "A descrição deve ser uma string válida.",
|
|
137
146
|
hi: "विवरण एक वैध स्ट्रिंग होना चाहिए।",
|
|
138
147
|
ar: "يجب أن يكون الوصف سلسلة صحيحة.",
|
|
139
|
-
ru: "Описание должно быть правильной строкой."
|
|
148
|
+
ru: "Описание должно быть правильной строкой.",
|
|
149
|
+
tr: "Açıklama geçerli bir dize olmalıdır."
|
|
140
150
|
}),
|
|
141
151
|
requiredErrorProjectId: t({
|
|
142
152
|
en: "Please select a project",
|
|
@@ -151,7 +161,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
151
161
|
pt: "Por favor, selecione um projeto",
|
|
152
162
|
hi: "कृपया एक प्रोजेक्ट चुनें",
|
|
153
163
|
ar: "يرجى اختيار مشروع",
|
|
154
|
-
ru: "Пожалуйста, выберите проект"
|
|
164
|
+
ru: "Пожалуйста, выберите проект",
|
|
165
|
+
tr: "Lütfen bir proje seçin"
|
|
155
166
|
}),
|
|
156
167
|
invalidTypeErrorProjectId: t({
|
|
157
168
|
en: "Please select a valid project",
|
|
@@ -166,7 +177,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
166
177
|
pt: "Por favor, selecione um projeto válido",
|
|
167
178
|
hi: "कृपया एक वैध परियोजना चुनें",
|
|
168
179
|
ar: "يرجى اختيار مشروع صالح",
|
|
169
|
-
ru: "Пожалуйста, выберите действительный проект"
|
|
180
|
+
ru: "Пожалуйста, выберите действительный проект",
|
|
181
|
+
tr: "Lütfen geçerli bir proje seçin"
|
|
170
182
|
}),
|
|
171
183
|
invalidTypeErrorTags: t({
|
|
172
184
|
en: "Please enter a valid tag",
|
|
@@ -181,7 +193,8 @@ const useDictionaryDetailsSchemaContent = {
|
|
|
181
193
|
pt: "Por favor, insira um tag válido",
|
|
182
194
|
hi: "कृपया एक वैध टैग दर्ज करें",
|
|
183
195
|
ar: "يرجى إدخال وسم صالح",
|
|
184
|
-
ru: "Пожалуйста, введите действительный тег"
|
|
196
|
+
ru: "Пожалуйста, введите действительный тег",
|
|
197
|
+
tr: "Lütfen geçerli bir etiket girin"
|
|
185
198
|
})
|
|
186
199
|
}
|
|
187
200
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDictionaryDetailsSchema.content.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],"sourcesContent":["import { t, type Dictionary } from 'intlayer';\n\nexport const useDictionaryDetailsSchemaContent = {\n key: 'dictionary-detail-schema',\n content: {\n titleRequiredError: t({\n en: 'Please enter a name for your organization.',\n 'en-GB': 'Please enter a name for your organization.',\n fr: 'Veuillez saisir un nom pour votre organisation.',\n es: 'Por favor, ingrese un nombre para su organización.',\n de: 'Bitte geben Sie einen Namen für Ihre Organisation ein.',\n ja: 'あなたの組織の名前を入力してください。',\n ko: '조직 이름을 입력하세요.',\n zh: '请输入您组织的名称。',\n it: 'Si prega di inserire un nome per la propria organizzazione.',\n pt: 'Por favor, insira um nome para sua organização.',\n hi: 'कृपया अपने संगठन का नाम दर्ज करें।',\n ar: 'يرجى إدخال اسم منظمتك.',\n ru: 'Пожалуйста, введите название вашей организации.',\n }),\n\n titleInvalidTypeError: t({\n en: 'The organization name must be a valid string.',\n 'en-GB': 'The organization name must be a valid string.',\n fr: 'Le nom de votre organisation doit être une chaîne valide.',\n es: 'El nombre de su organización debe ser una cadena válida.',\n de: 'Der Name der Organisation muss eine gültige Zeichenfolge sein.',\n ja: '組織名は有効な文字列である必要があります。',\n ko: '조직 이름은 유효한 문자열이어야 합니다.',\n zh: '组织名称必须是有效的字符串。',\n it: \"Il nome dell'organizzazione deve essere una stringa valida.\",\n pt: 'O nome da organização deve ser uma string válida.',\n hi: 'संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।',\n ar: 'يجب أن يكون اسم المنظمة سلسلة صحيحة.',\n ru: 'Имя организации должно быть правильной строкой.',\n }),\n\n titleMinLengthError: t({\n en: 'The organization name must be at least 4 characters long.',\n 'en-GB': 'The organization name must be at least 4 characters long.',\n fr: 'Le nom de votre organisation doit comporter au moins 4 caractères.',\n es: 'El nombre de su organización debe tener al menos 4 caracteres.',\n de: 'Der Name der Organisation muss mindestens 4 Zeichen lang sein.',\n ja: '組織名は4文字以上でなければなりません。',\n ko: '조직 이름은 4자 이상이어야 합니다.',\n zh: '组织名称必须至少4个字符。',\n it: \"Il nome dell'organizzazione deve essere lungo almeno 4 caratteri.\",\n pt: 'O nome da organização deve ter pelo menos 4 caracteres.',\n hi: 'संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।',\n ar: 'يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.',\n ru: 'Имя организации должно содержать не менее 4 символов.',\n }),\n\n keyRequiredError: t({\n en: 'Please enter a key for your organization.',\n 'en-GB': 'Please enter a key for your organization.',\n fr: 'Veuillez saisir une clé pour votre organisation.',\n es: 'Por favor, ingrese una clave para su organización.',\n de: 'Bitte geben Sie einen Schlüssel für Ihre Organisation ein.',\n ja: 'あなたの組織のためにキーを入力してください。',\n ko: '조직에 대한 키를 입력하세요.',\n zh: '请输入您组织的键。',\n it: 'Si prega di inserire una chiave per la propria organizzazione.',\n pt: 'Por favor, insira uma chave para sua organização.',\n hi: 'कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।',\n ar: 'يرجى إدخال مفتاح لمنظمتك.',\n ru: 'Пожалуйста, введите ключ для вашей организации.',\n }),\n\n keyInvalidTypeError: t({\n en: 'The key must be a valid string.',\n 'en-GB': 'The key must be a valid string.',\n fr: 'La clé doit être une chaîne valide.',\n es: 'La clave debe ser una cadena válida.',\n de: 'Der Schlüssel muss eine gültige Zeichenfolge sein.',\n ja: 'キーは有効な文字列である必要があります。',\n ko: '키는 유효한 문자열이어야 합니다.',\n zh: '关键字必须是有效的字符串。',\n it: 'La chiave deve essere una stringa valida.',\n pt: 'A chave deve ser uma string válida.',\n hi: 'कुंजी एक वैध स्ट्रिंग होनी चाहिए।',\n ar: 'يجب أن يكون المفتاح سلسلة صحيحة.',\n ru: 'Ключ должен быть правильной строкой.',\n }),\n\n keySpaceError: t({\n en: 'The key cannot contain spaces or special characters.',\n 'en-GB': 'The key cannot contain spaces or special characters.',\n fr: \"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.\",\n es: 'La clave no puede contener espacios o caracteres especiales.',\n de: 'Der Schlüssel darf keine Leerzeichen oder Sonderzeichen enthalten.',\n ja: 'キーにはスペースや特殊文字を含めることはできません。',\n ko: '키에는 공백이나 특수 문자가 포함될 수 없습니다.',\n zh: '关键字不能包含空格或特殊字符。',\n it: 'La chiave non può contenere spazi o caratteri speciali.',\n pt: 'A chave não pode conter espaços ou caracteres especiais.',\n hi: 'कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।',\n ar: 'لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.',\n ru: 'Ключ не может содержать пробелы или специальные символы.',\n }),\n\n keyMinLengthError: t({\n en: 'The key must be at least 4 characters long.',\n 'en-GB': 'The key must be at least 4 characters long.',\n fr: 'La clé doit comporter au moins 4 caractères.',\n es: 'La clave debe tener al menos 4 caracteres.',\n de: 'Der Schlüssel muss mindestens 4 Zeichen lang sein.',\n ja: 'キーは4文字以上でなければなりません。',\n ko: '키는 4자 이상이어야 합니다.',\n zh: '键必须至少为4个字符。',\n it: 'La chiave deve essere lunga almeno 4 caratteri.',\n pt: 'A chave deve ter pelo menos 4 caracteres.',\n hi: 'कुंजी में कम से कम 4 वर्ण होने चाहिए।',\n ar: 'يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.',\n ru: 'Ключ должен содержать не менее 4 символов.',\n }),\n\n // Description Field Error Messages\n descriptionRequiredError: t({\n en: 'Please enter a description for your organization.',\n 'en-GB': 'Please enter a description for your organization.',\n fr: 'Veuillez saisir une description pour votre organisation.',\n es: 'Por favor, ingrese una descripción para su organización.',\n de: 'Bitte geben Sie eine Beschreibung für Ihre Organisation ein.',\n ja: 'あなたの組織の説明を入力してください。',\n ko: '조직에 대한 설명을 입력하세요.',\n zh: '请输入您组织的描述。',\n it: 'Si prega di inserire una descrizione per la propria organizzazione.',\n pt: 'Por favor, insira uma descrição para sua organização.',\n hi: 'कृपया अपने संगठन का विवरण दर्ज करें।',\n ar: 'يرجى إدخال وصف لمنظمتك.',\n ru: 'Пожалуйста, введите описание вашей организации.',\n }),\n\n descriptionInvalidTypeError: t({\n en: 'The description must be a valid string.',\n 'en-GB': 'The description must be a valid string.',\n fr: 'La description doit être une chaîne valide.',\n es: 'La descripción debe ser una cadena válida.',\n de: 'Die Beschreibung muss eine gültige Zeichenfolge sein.',\n ja: '説明は有効な文字列である必要があります。',\n ko: '설명은 유효한 문자열이어야 합니다.',\n zh: '描述必须是有效的字符串。',\n it: 'La descrizione deve essere una stringa valida.',\n pt: 'A descrição deve ser uma string válida.',\n hi: 'विवरण एक वैध स्ट्रिंग होना चाहिए।',\n ar: 'يجب أن يكون الوصف سلسلة صحيحة.',\n ru: 'Описание должно быть правильной строкой.',\n }),\n\n requiredErrorProjectId: t({\n en: 'Please select a project',\n 'en-GB': 'Please select a project',\n fr: 'Veuillez sélectionner un projet',\n es: 'Por favor, seleccione un proyecto',\n de: 'Bitte wählen Sie ein Projekt aus',\n ja: 'プロジェクトを選択してください',\n ko: '프로젝트를 선택하세요',\n zh: '请选择一个项目',\n it: 'Si prega di selezionare un progetto',\n pt: 'Por favor, selecione um projeto',\n hi: 'कृपया एक प्रोजेक्ट चुनें',\n ar: 'يرجى اختيار مشروع',\n ru: 'Пожалуйста, выберите проект',\n }),\n\n invalidTypeErrorProjectId: t({\n en: 'Please select a valid project',\n 'en-GB': 'Please select a valid project',\n fr: 'Veuillez sélectionner un projet valide',\n es: 'Por favor, seleccione un proyecto válido',\n de: 'Bitte wählen Sie ein gültiges Projekt aus',\n ja: '有効なプロジェクトを選択してください',\n ko: '유효한 프로젝트를 선택하세요',\n zh: '请选择有效的项目',\n it: 'Si prega di selezionare un progetto valido',\n pt: 'Por favor, selecione um projeto válido',\n hi: 'कृपया एक वैध परियोजना चुनें',\n ar: 'يرجى اختيار مشروع صالح',\n ru: 'Пожалуйста, выберите действительный проект',\n }),\n\n invalidTypeErrorTags: t({\n en: 'Please enter a valid tag',\n 'en-GB': 'Please enter a valid tag',\n fr: 'Veuillez saisir un tag valide',\n es: 'Por favor, ingrese un tag válido',\n de: 'Bitte geben Sie einen gültigen Tag ein',\n ja: '有効なタグを入力してください',\n ko: '유효한 태그를 입력하세요',\n zh: '请输入有效的标签',\n it: 'Si prega di inserire un tag valido',\n pt: 'Por favor, insira um tag válido',\n hi: 'कृपया एक वैध टैग दर्ज करें',\n ar: 'يرجى إدخال وسم صالح',\n ru: 'Пожалуйста, введите действительный тег',\n }),\n },\n} satisfies Dictionary;\n\nexport default useDictionaryDetailsSchemaContent;\n"],"names":[],"mappings":";AAEO,MAAM,oCAAoC;AAAA,EAC/C,KAAK;AAAA,EACL,SAAS;AAAA,IACP,oBAAoB,EAAE;AAAA,MACpB,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,IAED,uBAAuB,EAAE;AAAA,MACvB,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AA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I;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,IAED,sBAAsB,EAAE;AAAA,MACtB,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,EAAA;AAEL;"}
|
|
1
|
+
{"version":3,"file":"useDictionaryDetailsSchema.content.mjs","sources":["../../../../src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],"sourcesContent":["import { t, type Dictionary } from 'intlayer';\n\nexport const useDictionaryDetailsSchemaContent = {\n key: 'dictionary-detail-schema',\n autoFill: './{{key}}.content.json',\n content: {\n titleRequiredError: t({\n en: 'Please enter a name for your organization.',\n 'en-GB': 'Please enter a name for your organization.',\n fr: 'Veuillez saisir un nom pour votre organisation.',\n es: 'Por favor, ingrese un nombre para su organización.',\n de: 'Bitte geben Sie einen Namen für Ihre Organisation ein.',\n ja: 'あなたの組織の名前を入力してください。',\n ko: '조직 이름을 입력하세요.',\n zh: '请输入您组织的名称。',\n it: 'Si prega di inserire un nome per la propria organizzazione.',\n pt: 'Por favor, insira um nome para sua organização.',\n hi: 'कृपया अपने संगठन का नाम दर्ज करें।',\n ar: 'يرجى إدخال اسم منظمتك.',\n ru: 'Пожалуйста, введите название вашей организации.',\n tr: 'Lütfen organizasyonunuz için bir isim girin.',\n }),\n\n titleInvalidTypeError: t({\n en: 'The organization name must be a valid string.',\n 'en-GB': 'The organization name must be a valid string.',\n fr: 'Le nom de votre organisation doit être une chaîne valide.',\n es: 'El nombre de su organización debe ser una cadena válida.',\n de: 'Der Name der Organisation muss eine gültige Zeichenfolge sein.',\n ja: '組織名は有効な文字列である必要があります。',\n ko: '조직 이름은 유효한 문자열이어야 합니다.',\n zh: '组织名称必须是有效的字符串。',\n it: \"Il nome dell'organizzazione deve essere una stringa valida.\",\n pt: 'O nome da organização deve ser uma string válida.',\n hi: 'संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।',\n ar: 'يجب أن يكون اسم المنظمة سلسلة صحيحة.',\n ru: 'Имя организации должно быть правильной строкой.',\n tr: 'Organizasyon adı geçerli bir dize olmalıdır.',\n }),\n\n titleMinLengthError: t({\n en: 'The organization name must be at least 4 characters long.',\n 'en-GB': 'The organization name must be at least 4 characters long.',\n fr: 'Le nom de votre organisation doit comporter au moins 4 caractères.',\n es: 'El nombre de su organización debe tener al menos 4 caracteres.',\n de: 'Der Name der Organisation muss mindestens 4 Zeichen lang sein.',\n ja: '組織名は4文字以上でなければなりません。',\n ko: '조직 이름은 4자 이상이어야 합니다.',\n zh: '组织名称必须至少4个字符。',\n it: \"Il nome dell'organizzazione deve essere lungo almeno 4 caratteri.\",\n pt: 'O nome da organização deve ter pelo menos 4 caracteres.',\n hi: 'संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।',\n ar: 'يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.',\n ru: 'Имя организации должно содержать не менее 4 символов.',\n tr: 'Organizasyon adı en az 4 karakter uzunluğunda olmalıdır.',\n }),\n\n keyRequiredError: t({\n en: 'Please enter a key for your organization.',\n 'en-GB': 'Please enter a key for your organization.',\n fr: 'Veuillez saisir une clé pour votre organisation.',\n es: 'Por favor, ingrese una clave para su organización.',\n de: 'Bitte geben Sie einen Schlüssel für Ihre Organisation ein.',\n ja: 'あなたの組織のためにキーを入力してください。',\n ko: '조직에 대한 키를 입력하세요.',\n zh: '请输入您组织的键。',\n it: 'Si prega di inserire una chiave per la propria organizzazione.',\n pt: 'Por favor, insira uma chave para sua organização.',\n hi: 'कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।',\n ar: 'يرجى إدخال مفتاح لمنظمتك.',\n ru: 'Пожалуйста, введите ключ для вашей организации.',\n tr: 'Lütfen organizasyonunuz için bir anahtar girin.',\n }),\n\n keyInvalidTypeError: t({\n en: 'The key must be a valid string.',\n 'en-GB': 'The key must be a valid string.',\n fr: 'La clé doit être une chaîne valide.',\n es: 'La clave debe ser una cadena válida.',\n de: 'Der Schlüssel muss eine gültige Zeichenfolge sein.',\n ja: 'キーは有効な文字列である必要があります。',\n ko: '키는 유효한 문자열이어야 합니다.',\n zh: '关键字必须是有效的字符串。',\n it: 'La chiave deve essere una stringa valida.',\n pt: 'A chave deve ser uma string válida.',\n hi: 'कुंजी एक वैध स्ट्रिंग होनी चाहिए।',\n ar: 'يجب أن يكون المفتاح سلسلة صحيحة.',\n ru: 'Ключ должен быть правильной строкой.',\n tr: 'Anahtar geçerli bir dize olmalıdır.',\n }),\n\n keySpaceError: t({\n en: 'The key cannot contain spaces or special characters.',\n 'en-GB': 'The key cannot contain spaces or special characters.',\n fr: \"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.\",\n es: 'La clave no puede contener espacios o caracteres especiales.',\n de: 'Der Schlüssel darf keine Leerzeichen oder Sonderzeichen enthalten.',\n ja: 'キーにはスペースや特殊文字を含めることはできません。',\n ko: '키에는 공백이나 특수 문자가 포함될 수 없습니다.',\n zh: '关键字不能包含空格或特殊字符。',\n it: 'La chiave non può contenere spazi o caratteri speciali.',\n pt: 'A chave não pode conter espaços ou caracteres especiais.',\n hi: 'कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।',\n ar: 'لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.',\n ru: 'Ключ не может содержать пробелы или специальные символы.',\n tr: 'Anahtar boşluk veya özel karakterler içeremez.',\n }),\n\n keyMinLengthError: t({\n en: 'The key must be at least 4 characters long.',\n 'en-GB': 'The key must be at least 4 characters long.',\n fr: 'La clé doit comporter au moins 4 caractères.',\n es: 'La clave debe tener al menos 4 caracteres.',\n de: 'Der Schlüssel muss mindestens 4 Zeichen lang sein.',\n ja: 'キーは4文字以上でなければなりません。',\n ko: '키는 4자 이상이어야 합니다.',\n zh: '键必须至少为4个字符。',\n it: 'La chiave deve essere lunga almeno 4 caratteri.',\n pt: 'A chave deve ter pelo menos 4 caracteres.',\n hi: 'कुंजी में कम से कम 4 वर्ण होने चाहिए।',\n ar: 'يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.',\n ru: 'Ключ должен содержать не менее 4 символов.',\n tr: 'Anahtar en az 4 karakter uzunluğunda olmalıdır.',\n }),\n\n // Description Field Error Messages\n descriptionRequiredError: t({\n en: 'Please enter a description for your organization.',\n 'en-GB': 'Please enter a description for your organization.',\n fr: 'Veuillez saisir une description pour votre organisation.',\n es: 'Por favor, ingrese una descripción para su organización.',\n de: 'Bitte geben Sie eine Beschreibung für Ihre Organisation ein.',\n ja: 'あなたの組織の説明を入力してください。',\n ko: '조직에 대한 설명을 입력하세요.',\n zh: '请输入您组织的描述。',\n it: 'Si prega di inserire una descrizione per la propria organizzazione.',\n pt: 'Por favor, insira uma descrição para sua organização.',\n hi: 'कृपया अपने संगठन का विवरण दर्ज करें।',\n ar: 'يرجى إدخال وصف لمنظمتك.',\n ru: 'Пожалуйста, введите описание вашей организации.',\n tr: 'Lütfen organizasyonunuz için bir açıklama girin.',\n }),\n\n descriptionInvalidTypeError: t({\n en: 'The description must be a valid string.',\n 'en-GB': 'The description must be a valid string.',\n fr: 'La description doit être une chaîne valide.',\n es: 'La descripción debe ser una cadena válida.',\n de: 'Die Beschreibung muss eine gültige Zeichenfolge sein.',\n ja: '説明は有効な文字列である必要があります。',\n ko: '설명은 유효한 문자열이어야 합니다.',\n zh: '描述必须是有效的字符串。',\n it: 'La descrizione deve essere una stringa valida.',\n pt: 'A descrição deve ser uma string válida.',\n hi: 'विवरण एक वैध स्ट्रिंग होना चाहिए।',\n ar: 'يجب أن يكون الوصف سلسلة صحيحة.',\n ru: 'Описание должно быть правильной строкой.',\n tr: 'Açıklama geçerli bir dize olmalıdır.',\n }),\n\n requiredErrorProjectId: t({\n en: 'Please select a project',\n 'en-GB': 'Please select a project',\n fr: 'Veuillez sélectionner un projet',\n es: 'Por favor, seleccione un proyecto',\n de: 'Bitte wählen Sie ein Projekt aus',\n ja: 'プロジェクトを選択してください',\n ko: '프로젝트를 선택하세요',\n zh: '请选择一个项目',\n it: 'Si prega di selezionare un progetto',\n pt: 'Por favor, selecione um projeto',\n hi: 'कृपया एक प्रोजेक्ट चुनें',\n ar: 'يرجى اختيار مشروع',\n ru: 'Пожалуйста, выберите проект',\n tr: 'Lütfen bir proje seçin',\n }),\n\n invalidTypeErrorProjectId: t({\n en: 'Please select a valid project',\n 'en-GB': 'Please select a valid project',\n fr: 'Veuillez sélectionner un projet valide',\n es: 'Por favor, seleccione un proyecto válido',\n de: 'Bitte wählen Sie ein gültiges Projekt aus',\n ja: '有効なプロジェクトを選択してください',\n ko: '유효한 프로젝트를 선택하세요',\n zh: '请选择有效的项目',\n it: 'Si prega di selezionare un progetto valido',\n pt: 'Por favor, selecione um projeto válido',\n hi: 'कृपया एक वैध परियोजना चुनें',\n ar: 'يرجى اختيار مشروع صالح',\n ru: 'Пожалуйста, выберите действительный проект',\n tr: 'Lütfen geçerli bir proje seçin',\n }),\n\n invalidTypeErrorTags: t({\n en: 'Please enter a valid tag',\n 'en-GB': 'Please enter a valid tag',\n fr: 'Veuillez saisir un tag valide',\n es: 'Por favor, ingrese un tag válido',\n de: 'Bitte geben Sie einen gültigen Tag ein',\n ja: '有効なタグを入力してください',\n ko: '유효한 태그를 입력하세요',\n zh: '请输入有效的标签',\n it: 'Si prega di inserire un tag valido',\n pt: 'Por favor, insira um tag válido',\n hi: 'कृपया एक वैध टैग दर्ज करें',\n ar: 'يرجى إدخال وسم صالح',\n ru: 'Пожалуйста, введите действительный тег',\n tr: 'Lütfen geçerli bir etiket girin',\n }),\n },\n} satisfies Dictionary;\n\nexport default useDictionaryDetailsSchemaContent;\n"],"names":[],"mappings":";AAEO,MAAM,oCAAoC;AAAA,EAC/C,KAAK;AAAA,EACL,UAAU;AAAA,EACV,SAAS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
|
15
|
-
require("
|
|
16
|
-
require("../../hooks/useAsync/useAsyncStateStore.cjs");
|
|
15
|
+
require("@tanstack/react-query");
|
|
17
16
|
require("@intlayer/api");
|
|
18
|
-
require("deepmerge");
|
|
19
17
|
require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
|
|
20
18
|
require("../Container/index.cjs");
|
|
21
19
|
require("../DropDown/index.cjs");
|
|
@@ -46,11 +44,12 @@ const DictionaryFieldEditor = ({
|
|
|
46
44
|
ReactExports.useEffect(() => {
|
|
47
45
|
setFocusedContent((prev) => ({
|
|
48
46
|
...prev ?? {},
|
|
49
|
-
dictionaryKey: dictionary.key
|
|
47
|
+
dictionaryKey: dictionary.key,
|
|
48
|
+
dictionaryLocalId: dictionary.localId
|
|
50
49
|
}));
|
|
51
50
|
setLocaleDictionaries((prev) => ({
|
|
52
51
|
...prev,
|
|
53
|
-
[dictionary.
|
|
52
|
+
[dictionary.localId]: dictionary
|
|
54
53
|
}));
|
|
55
54
|
}, []);
|
|
56
55
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryFieldEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport type { Dictionary } from '@intlayer/core';\nimport {\n useConfiguration,\n useDictionariesRecordActions,\n useFocusDictionaryActions,\n} from '@intlayer/editor-react';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\nimport { useIntlayer } from 'react-intlayer';\nimport { Button, ButtonColor, ButtonVariant } from '../Button';\nimport { LocaleSwitcherContentProvider } from '../LocaleSwitcherContentDropDown';\nimport {\n SwitchSelector,\n SwitchSelectorColor,\n SwitchSelectorSize,\n} from '../SwitchSelector';\nimport { ContentEditor } from './ContentEditor';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { JSONEditor } from './JSONEditor';\nimport { SaveForm } from './SaveForm/SaveForm';\nimport { StructureEditor } from './StructureEditor';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n onDelete?: () => void;\n isDarkMode?: boolean;\n mode: ('local' | 'remote')[];\n};\n\nenum EditorViewType {\n DetailsEditor,\n ContentEditor,\n StructureEditor,\n JSONEditor,\n}\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n isDarkMode,\n mode,\n onDelete,\n}) => {\n const config = useConfiguration();\n const [editorView, setEditorView] = useState<EditorViewType>(\n EditorViewType.ContentEditor\n );\n const { returnToDictionaryList } = useIntlayer('dictionary-field-editor');\n const { setFocusedContent } = useFocusDictionaryActions();\n const { setLocaleDictionaries } = useDictionariesRecordActions();\n\n useEffect(() => {\n // Focus the dictionary if not focused\n setFocusedContent((prev) => ({\n ...(prev ?? {}),\n dictionaryKey: dictionary.key,\n }));\n setLocaleDictionaries((prev) => ({\n ...prev,\n [dictionary.
|
|
1
|
+
{"version":3,"file":"DictionaryFieldEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport type { Dictionary } from '@intlayer/core';\nimport {\n useConfiguration,\n useDictionariesRecordActions,\n useFocusDictionaryActions,\n} from '@intlayer/editor-react';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\nimport { useIntlayer } from 'react-intlayer';\nimport { Button, ButtonColor, ButtonVariant } from '../Button';\nimport { LocaleSwitcherContentProvider } from '../LocaleSwitcherContentDropDown';\nimport {\n SwitchSelector,\n SwitchSelectorColor,\n SwitchSelectorSize,\n} from '../SwitchSelector';\nimport { ContentEditor } from './ContentEditor';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { JSONEditor } from './JSONEditor';\nimport { SaveForm } from './SaveForm/SaveForm';\nimport { StructureEditor } from './StructureEditor';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n onDelete?: () => void;\n isDarkMode?: boolean;\n mode: ('local' | 'remote')[];\n};\n\nenum EditorViewType {\n DetailsEditor,\n ContentEditor,\n StructureEditor,\n JSONEditor,\n}\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n isDarkMode,\n mode,\n onDelete,\n}) => {\n const config = useConfiguration();\n const [editorView, setEditorView] = useState<EditorViewType>(\n EditorViewType.ContentEditor\n );\n const { returnToDictionaryList } = useIntlayer('dictionary-field-editor');\n const { setFocusedContent } = useFocusDictionaryActions();\n const { setLocaleDictionaries } = useDictionariesRecordActions();\n\n useEffect(() => {\n // Focus the dictionary if not focused\n setFocusedContent((prev) => ({\n ...(prev ?? {}),\n dictionaryKey: dictionary.key,\n dictionaryLocalId: dictionary.localId,\n }));\n setLocaleDictionaries((prev) => ({\n ...prev,\n [dictionary.localId!]: dictionary,\n }));\n }, []);\n\n return (\n <LocaleSwitcherContentProvider\n availableLocales={config?.internationalization.locales ?? []}\n >\n <div className=\"flex size-full flex-col gap-6 px-2\">\n <Button\n onClick={onClickDictionaryList}\n variant={ButtonVariant.HOVERABLE}\n className=\"z-10 ml-5 mr-auto\"\n color={ButtonColor.TEXT}\n Icon={ArrowLeft}\n label={returnToDictionaryList.label.value}\n >\n {returnToDictionaryList.text}\n </Button>\n\n <SwitchSelector\n defaultValue={editorView}\n onChange={(value) => setEditorView(value)}\n color={SwitchSelectorColor.TEXT}\n size={SwitchSelectorSize.SM}\n className=\"m-auto w-full max-w-xl\"\n choices={[\n {\n content: 'Details',\n value: EditorViewType.DetailsEditor,\n },\n {\n content: 'Structure',\n value: EditorViewType.StructureEditor,\n },\n {\n content: 'Content',\n value: EditorViewType.ContentEditor,\n },\n {\n content: 'JSON',\n value: EditorViewType.JSONEditor,\n },\n ].filter(\n ({ value }) =>\n !(\n !mode.includes('remote') &&\n value === EditorViewType.DetailsEditor\n )\n )}\n />\n\n {editorView === EditorViewType.DetailsEditor && (\n <DictionaryDetailsForm dictionary={dictionary} />\n )}\n {editorView === EditorViewType.StructureEditor && (\n <StructureEditor dictionary={dictionary} />\n )}\n {editorView === EditorViewType.ContentEditor && (\n <ContentEditor dictionary={dictionary} isDarkMode={isDarkMode} />\n )}\n {editorView === EditorViewType.JSONEditor && (\n <JSONEditor dictionary={dictionary} isDarkMode={isDarkMode} />\n )}\n\n <SaveForm\n dictionary={dictionary}\n mode={mode}\n onDelete={() => {\n setFocusedContent(null);\n onDelete?.();\n }}\n />\n </div>\n </LocaleSwitcherContentProvider>\n );\n};\n"],"names":["useConfiguration","useState","useIntlayer","useFocusDictionaryActions","useDictionariesRecordActions","useEffect","jsx","LocaleSwitcherContentProvider","jsxs","Button","ButtonVariant","ButtonColor","ArrowLeft","SwitchSelector","SwitchSelectorColor","SwitchSelectorSize","DictionaryDetailsForm","StructureEditor","ContentEditor","JSONEditor","SaveForm"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCO,MAAM,wBAAwD,CAAC;AAAA,EACpE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,SAASA,YAAAA,iBAAA;AACf,QAAM,CAAC,YAAY,aAAa,IAAIC,aAAAA;AAAAA,IAClC;AAAA;AAAA,EAAA;AAEF,QAAM,EAAE,uBAAA,IAA2BC,cAAAA,YAAY,yBAAyB;AACxE,QAAM,EAAE,kBAAA,IAAsBC,sCAAA;AAC9B,QAAM,EAAE,sBAAA,IAA0BC,yCAAA;AAElCC,eAAAA,UAAU,MAAM;AAEd,sBAAkB,CAAC,UAAU;AAAA,MAC3B,GAAI,QAAQ,CAAA;AAAA,MACZ,eAAe,WAAW;AAAA,MAC1B,mBAAmB,WAAW;AAAA,IAAA,EAC9B;AACF,0BAAsB,CAAC,UAAU;AAAA,MAC/B,GAAG;AAAA,MACH,CAAC,WAAW,OAAQ,GAAG;AAAA,IAAA,EACvB;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QAE1C,eAAe,KACdX,2BAAAA,IAACY,+CAAAA,eAAA,EAAc,YAAwB,YAAwB;AAAA,QAEhE,eAAe,KACdZ,2BAAAA,IAACa,4CAAAA,YAAA,EAAW,YAAwB,YAAwB;AAAA,QAG9Db,2BAAAA;AAAAA,UAACc,mDAAAA;AAAAA,UAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA,UAAU,MAAM;AACd,gCAAkB,IAAI;AACtB,yBAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAAA;AAAA,MACF,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryFieldEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAerD,KAAK,0BAA0B,GAAG;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,CAAC,OAAO,GAAG,QAAQ,CAAC,EAAE,CAAC;CAC9B,CAAC;AASF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"DictionaryFieldEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAerD,KAAK,0BAA0B,GAAG;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,CAAC,OAAO,GAAG,QAAQ,CAAC,EAAE,CAAC;CAC9B,CAAC;AASF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAoGhE,CAAC"}
|
|
@@ -10,10 +10,8 @@ import "@intlayer/core";
|
|
|
10
10
|
import "fuse.js";
|
|
11
11
|
import "@intlayer/config/built";
|
|
12
12
|
import "../../better-auth.CMQ3rA-I-7umXOENE.js";
|
|
13
|
-
import "
|
|
14
|
-
import "../../hooks/useAsync/useAsyncStateStore.mjs";
|
|
13
|
+
import "@tanstack/react-query";
|
|
15
14
|
import "@intlayer/api";
|
|
16
|
-
import "deepmerge";
|
|
17
15
|
import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
|
|
18
16
|
import "../Container/index.mjs";
|
|
19
17
|
import "../DropDown/index.mjs";
|
|
@@ -44,11 +42,12 @@ const DictionaryFieldEditor = ({
|
|
|
44
42
|
useEffect(() => {
|
|
45
43
|
setFocusedContent((prev) => ({
|
|
46
44
|
...prev ?? {},
|
|
47
|
-
dictionaryKey: dictionary.key
|
|
45
|
+
dictionaryKey: dictionary.key,
|
|
46
|
+
dictionaryLocalId: dictionary.localId
|
|
48
47
|
}));
|
|
49
48
|
setLocaleDictionaries((prev) => ({
|
|
50
49
|
...prev,
|
|
51
|
-
[dictionary.
|
|
50
|
+
[dictionary.localId]: dictionary
|
|
52
51
|
}));
|
|
53
52
|
}, []);
|
|
54
53
|
return /* @__PURE__ */ jsx(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryFieldEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport type { Dictionary } from '@intlayer/core';\nimport {\n useConfiguration,\n useDictionariesRecordActions,\n useFocusDictionaryActions,\n} from '@intlayer/editor-react';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\nimport { useIntlayer } from 'react-intlayer';\nimport { Button, ButtonColor, ButtonVariant } from '../Button';\nimport { LocaleSwitcherContentProvider } from '../LocaleSwitcherContentDropDown';\nimport {\n SwitchSelector,\n SwitchSelectorColor,\n SwitchSelectorSize,\n} from '../SwitchSelector';\nimport { ContentEditor } from './ContentEditor';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { JSONEditor } from './JSONEditor';\nimport { SaveForm } from './SaveForm/SaveForm';\nimport { StructureEditor } from './StructureEditor';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n onDelete?: () => void;\n isDarkMode?: boolean;\n mode: ('local' | 'remote')[];\n};\n\nenum EditorViewType {\n DetailsEditor,\n ContentEditor,\n StructureEditor,\n JSONEditor,\n}\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n isDarkMode,\n mode,\n onDelete,\n}) => {\n const config = useConfiguration();\n const [editorView, setEditorView] = useState<EditorViewType>(\n EditorViewType.ContentEditor\n );\n const { returnToDictionaryList } = useIntlayer('dictionary-field-editor');\n const { setFocusedContent } = useFocusDictionaryActions();\n const { setLocaleDictionaries } = useDictionariesRecordActions();\n\n useEffect(() => {\n // Focus the dictionary if not focused\n setFocusedContent((prev) => ({\n ...(prev ?? {}),\n dictionaryKey: dictionary.key,\n }));\n setLocaleDictionaries((prev) => ({\n ...prev,\n [dictionary.
|
|
1
|
+
{"version":3,"file":"DictionaryFieldEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx"],"sourcesContent":["'use client';\n\nimport type { Dictionary } from '@intlayer/core';\nimport {\n useConfiguration,\n useDictionariesRecordActions,\n useFocusDictionaryActions,\n} from '@intlayer/editor-react';\nimport { ArrowLeft } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\nimport { useIntlayer } from 'react-intlayer';\nimport { Button, ButtonColor, ButtonVariant } from '../Button';\nimport { LocaleSwitcherContentProvider } from '../LocaleSwitcherContentDropDown';\nimport {\n SwitchSelector,\n SwitchSelectorColor,\n SwitchSelectorSize,\n} from '../SwitchSelector';\nimport { ContentEditor } from './ContentEditor';\nimport { DictionaryDetailsForm } from './DictionaryDetails/DictionaryDetailsForm';\nimport { JSONEditor } from './JSONEditor';\nimport { SaveForm } from './SaveForm/SaveForm';\nimport { StructureEditor } from './StructureEditor';\n\ntype DictionaryFieldEditorProps = {\n dictionary: Dictionary;\n onClickDictionaryList?: () => void;\n onDelete?: () => void;\n isDarkMode?: boolean;\n mode: ('local' | 'remote')[];\n};\n\nenum EditorViewType {\n DetailsEditor,\n ContentEditor,\n StructureEditor,\n JSONEditor,\n}\n\nexport const DictionaryFieldEditor: FC<DictionaryFieldEditorProps> = ({\n dictionary,\n onClickDictionaryList,\n isDarkMode,\n mode,\n onDelete,\n}) => {\n const config = useConfiguration();\n const [editorView, setEditorView] = useState<EditorViewType>(\n EditorViewType.ContentEditor\n );\n const { returnToDictionaryList } = useIntlayer('dictionary-field-editor');\n const { setFocusedContent } = useFocusDictionaryActions();\n const { setLocaleDictionaries } = useDictionariesRecordActions();\n\n useEffect(() => {\n // Focus the dictionary if not focused\n setFocusedContent((prev) => ({\n ...(prev ?? {}),\n dictionaryKey: dictionary.key,\n dictionaryLocalId: dictionary.localId,\n }));\n setLocaleDictionaries((prev) => ({\n ...prev,\n [dictionary.localId!]: dictionary,\n }));\n }, []);\n\n return (\n <LocaleSwitcherContentProvider\n availableLocales={config?.internationalization.locales ?? []}\n >\n <div className=\"flex size-full flex-col gap-6 px-2\">\n <Button\n onClick={onClickDictionaryList}\n variant={ButtonVariant.HOVERABLE}\n className=\"z-10 ml-5 mr-auto\"\n color={ButtonColor.TEXT}\n Icon={ArrowLeft}\n label={returnToDictionaryList.label.value}\n >\n {returnToDictionaryList.text}\n </Button>\n\n <SwitchSelector\n defaultValue={editorView}\n onChange={(value) => setEditorView(value)}\n color={SwitchSelectorColor.TEXT}\n size={SwitchSelectorSize.SM}\n className=\"m-auto w-full max-w-xl\"\n choices={[\n {\n content: 'Details',\n value: EditorViewType.DetailsEditor,\n },\n {\n content: 'Structure',\n value: EditorViewType.StructureEditor,\n },\n {\n content: 'Content',\n value: EditorViewType.ContentEditor,\n },\n {\n content: 'JSON',\n value: EditorViewType.JSONEditor,\n },\n ].filter(\n ({ value }) =>\n !(\n !mode.includes('remote') &&\n value === EditorViewType.DetailsEditor\n )\n )}\n />\n\n {editorView === EditorViewType.DetailsEditor && (\n <DictionaryDetailsForm dictionary={dictionary} />\n )}\n {editorView === EditorViewType.StructureEditor && (\n <StructureEditor dictionary={dictionary} />\n )}\n {editorView === EditorViewType.ContentEditor && (\n <ContentEditor dictionary={dictionary} isDarkMode={isDarkMode} />\n )}\n {editorView === EditorViewType.JSONEditor && (\n <JSONEditor dictionary={dictionary} isDarkMode={isDarkMode} />\n )}\n\n <SaveForm\n dictionary={dictionary}\n mode={mode}\n onDelete={() => {\n setFocusedContent(null);\n onDelete?.();\n }}\n />\n </div>\n </LocaleSwitcherContentProvider>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAuCO,MAAM,wBAAwD,CAAC;AAAA,EACpE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,SAAS,iBAAA;AACf,QAAM,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC;AAAA;AAAA,EAAA;AAEF,QAAM,EAAE,uBAAA,IAA2B,YAAY,yBAAyB;AACxE,QAAM,EAAE,kBAAA,IAAsB,0BAAA;AAC9B,QAAM,EAAE,sBAAA,IAA0B,6BAAA;AAElC,YAAU,MAAM;AAEd,sBAAkB,CAAC,UAAU;AAAA,MAC3B,GAAI,QAAQ,CAAA;AAAA,MACZ,eAAe,WAAW;AAAA,MAC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ACd,oBAAC,eAAA,EAAc,YAAwB,YAAwB;AAAA,QAEhE,eAAe,KACd,oBAAC,YAAA,EAAW,YAAwB,YAAwB;AAAA,QAG9D;AAAA,UAAC;AAAA,UAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA,UAAU,MAAM;AACd,gCAAkB,IAAI;AACtB,yBAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAAA;AAAA,MACF,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -16,7 +16,7 @@ const JSONEditor = ({ dictionary, isDarkMode }) => {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
const displayedContent = ReactExports.useMemo(
|
|
19
|
-
() => editedContent?.[dictionary.
|
|
19
|
+
() => editedContent?.[dictionary.localId]?.content ?? dictionary?.content ?? {},
|
|
20
20
|
[dictionary]
|
|
21
21
|
);
|
|
22
22
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -32,7 +32,7 @@ const JSONEditor = ({ dictionary, isDarkMode }) => {
|
|
|
32
32
|
language: "json",
|
|
33
33
|
onChange: (content) => {
|
|
34
34
|
if (isValidJSON(content ?? "{}")) {
|
|
35
|
-
setEditedContent(dictionary.
|
|
35
|
+
setEditedContent(dictionary.localId, JSON.parse(content ?? "{}"));
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
isDarkMode,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import type { Dictionary } from '@intlayer/core';\nimport { useEditedContent } from '@intlayer/editor-react';\nimport { useMemo, type FC } from 'react';\nimport { Container } from '../Container';\nimport { MonacoCode } from '../IDE/MonacoCode';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n isDarkMode?: boolean;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary, isDarkMode }) => {\n const { setEditedContent, editedContent } = useEditedContent();\n\n const isValidJSON = (jsonString: string): boolean => {\n try {\n JSON.parse(jsonString);\n return true; // Valid JSON\n } catch (_error) {\n return false; // Invalid JSON\n }\n };\n\n const displayedContent = useMemo(\n ()
|
|
1
|
+
{"version":3,"file":"JSONEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import type { Dictionary } from '@intlayer/core';\nimport { useEditedContent } from '@intlayer/editor-react';\nimport { useMemo, type FC } from 'react';\nimport { Container } from '../Container';\nimport { MonacoCode } from '../IDE/MonacoCode';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n isDarkMode?: boolean;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary, isDarkMode }) => {\n const { setEditedContent, editedContent } = useEditedContent();\n\n const isValidJSON = (jsonString: string): boolean => {\n try {\n JSON.parse(jsonString);\n return true; // Valid JSON\n } catch (_error) {\n return false; // Invalid JSON\n }\n };\n\n const displayedContent = useMemo(\n () =>\n editedContent?.[dictionary.localId!]?.content ??\n dictionary?.content ??\n {},\n\n [dictionary]\n );\n\n return (\n <Container\n background=\"none\"\n border\n roundedSize=\"xl\"\n className=\"w-full overflow-hidden p-3\"\n >\n <MonacoCode\n language=\"json\"\n onChange={(content) => {\n if (isValidJSON(content ?? '{}')) {\n setEditedContent(dictionary.localId!, JSON.parse(content ?? '{}'));\n }\n }}\n isDarkMode={isDarkMode}\n >\n {JSON.stringify(displayedContent, null, 2)}\n </MonacoCode>\n </Container>\n );\n};\n"],"names":["useEditedContent","useMemo","jsx","Container","MonacoCode"],"mappings":";;;;;;;AAWO,MAAM,aAAkC,CAAC,EAAE,YAAY,iBAAiB;AAC7E,QAAM,EAAE,kBAAkB,cAAA,IAAkBA,6BAAA;AAE5C,QAAM,cAAc,CAAC,eAAgC;AACnD,QAAI;AACF,WAAK,MAAM,UAAU;AACrB,aAAO;AAAA,IACT,SAAS,QAAQ;AACf,aAAO;AAAA,IACT;AAAA,EACF;AAEA,QAAM,mBAAmBC,aAAAA;AAAAA,IACvB,MACE,gBAAgB,WAAW,OAAQ,GAAG,WACtC,YAAY,WACZ,CAAA;AAAA,IAEF,CAAC,UAAU;AAAA,EAAA;AAGb,SACEC,2BAAAA;AAAAA,IAACC,2BAAAA;AAAAA,IAAA;AAAA,MACC,YAAW;AAAA,MACX,QAAM;AAAA,MACN,aAAY;AAAA,MACZ,WAAU;AAAA,MAEV,UAAAD,2BAAAA;AAAAA,QAACE,0BAAAA;AAAAA,QAAA;AAAA,UACC,UAAS;AAAA,UACT,UAAU,CAAC,YAAY;AACrB,gBAAI,YAAY,WAAW,IAAI,GAAG;AAChC,+BAAiB,WAAW,SAAU,KAAK,MAAM,WAAW,IAAI,CAAC;AAAA,YACnE;AAAA,UACF;AAAA,UACA;AAAA,UAEC,UAAA,KAAK,UAAU,kBAAkB,MAAM,CAAC;AAAA,QAAA;AAAA,MAAA;AAAA,IAC3C;AAAA,EAAA;AAGN;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIzC,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"JSONEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIzC,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAyC1C,CAAC"}
|
|
@@ -14,7 +14,7 @@ const JSONEditor = ({ dictionary, isDarkMode }) => {
|
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
const displayedContent = useMemo(
|
|
17
|
-
() => editedContent?.[dictionary.
|
|
17
|
+
() => editedContent?.[dictionary.localId]?.content ?? dictionary?.content ?? {},
|
|
18
18
|
[dictionary]
|
|
19
19
|
);
|
|
20
20
|
return /* @__PURE__ */ jsx(
|
|
@@ -30,7 +30,7 @@ const JSONEditor = ({ dictionary, isDarkMode }) => {
|
|
|
30
30
|
language: "json",
|
|
31
31
|
onChange: (content) => {
|
|
32
32
|
if (isValidJSON(content ?? "{}")) {
|
|
33
|
-
setEditedContent(dictionary.
|
|
33
|
+
setEditedContent(dictionary.localId, JSON.parse(content ?? "{}"));
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
isDarkMode,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import type { Dictionary } from '@intlayer/core';\nimport { useEditedContent } from '@intlayer/editor-react';\nimport { useMemo, type FC } from 'react';\nimport { Container } from '../Container';\nimport { MonacoCode } from '../IDE/MonacoCode';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n isDarkMode?: boolean;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary, isDarkMode }) => {\n const { setEditedContent, editedContent } = useEditedContent();\n\n const isValidJSON = (jsonString: string): boolean => {\n try {\n JSON.parse(jsonString);\n return true; // Valid JSON\n } catch (_error) {\n return false; // Invalid JSON\n }\n };\n\n const displayedContent = useMemo(\n ()
|
|
1
|
+
{"version":3,"file":"JSONEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import type { Dictionary } from '@intlayer/core';\nimport { useEditedContent } from '@intlayer/editor-react';\nimport { useMemo, type FC } from 'react';\nimport { Container } from '../Container';\nimport { MonacoCode } from '../IDE/MonacoCode';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n isDarkMode?: boolean;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary, isDarkMode }) => {\n const { setEditedContent, editedContent } = useEditedContent();\n\n const isValidJSON = (jsonString: string): boolean => {\n try {\n JSON.parse(jsonString);\n return true; // Valid JSON\n } catch (_error) {\n return false; // Invalid JSON\n }\n };\n\n const displayedContent = useMemo(\n () =>\n editedContent?.[dictionary.localId!]?.content ??\n dictionary?.content ??\n {},\n\n [dictionary]\n );\n\n return (\n <Container\n background=\"none\"\n border\n roundedSize=\"xl\"\n className=\"w-full overflow-hidden p-3\"\n >\n <MonacoCode\n language=\"json\"\n onChange={(content) => {\n if (isValidJSON(content ?? '{}')) {\n setEditedContent(dictionary.localId!, JSON.parse(content ?? '{}'));\n }\n }}\n isDarkMode={isDarkMode}\n >\n {JSON.stringify(displayedContent, null, 2)}\n </MonacoCode>\n </Container>\n );\n};\n"],"names":[],"mappings":";;;;;AAWO,MAAM,aAAkC,CAAC,EAAE,YAAY,iBAAiB;AAC7E,QAAM,EAAE,kBAAkB,cAAA,IAAkB,iBAAA;AAE5C,QAAM,cAAc,CAAC,eAAgC;AACnD,QAAI;AACF,WAAK,MAAM,UAAU;AACrB,aAAO;AAAA,IACT,SAAS,QAAQ;AACf,aAAO;AAAA,IACT;AAAA,EACF;AAEA,QAAM,mBAAmB;AAAA,IACvB,MACE,gBAAgB,WAAW,OAAQ,GAAG,WACtC,YAAY,WACZ,CAAA;AAAA,IAEF,CAAC,UAAU;AAAA,EAAA;AAGb,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,YAAW;AAAA,MACX,QAAM;AAAA,MACN,aAAY;AAAA,MACZ,WAAU;AAAA,MAEV,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,UAAS;AAAA,UACT,UAAU,CAAC,YAAY;AACrB,gBAAI,YAAY,WAAW,IAAI,GAAG;AAChC,+BAAiB,WAAW,SAAU,KAAK,MAAM,WAAW,IAAI,CAAC;AAAA,YACnE;AAAA,UACF;AAAA,UACA;AAAA,UAEC,UAAA,KAAK,UAAU,kBAAkB,MAAM,CAAC;AAAA,QAAA;AAAA,MAAA;AAAA,IAC3C;AAAA,EAAA;AAGN;"}
|