@intlayer/design-system 3.3.2 → 3.3.4
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 +233 -180
- package/dist/{Form-DERuauvB.cjs → Form-BDcoNTLV.cjs} +2 -2
- package/dist/{Form-DERuauvB.cjs.map → Form-BDcoNTLV.cjs.map} +1 -1
- package/dist/{Form-CQpKjeW6.js → Form-DhsgC7kB.js} +2 -2
- package/dist/{Form-CQpKjeW6.js.map → Form-DhsgC7kB.js.map} +1 -1
- package/dist/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.mjs +1 -1
- package/dist/components/Auth/AuthModal/index.cjs +1 -1
- package/dist/components/Auth/AuthModal/index.mjs +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +1 -1
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +2 -2
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +2 -2
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +2 -2
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +2 -2
- package/dist/components/Auth/SignInForm/SignInForm.cjs +2 -2
- package/dist/components/Auth/SignInForm/SignInForm.mjs +2 -2
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs +2 -2
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs +2 -2
- package/dist/components/Avatar/index.cjs +1 -1
- package/dist/components/Avatar/index.mjs +1 -1
- package/dist/components/Badge/index.cjs +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Breadcrumb/index.cjs +39 -20
- package/dist/components/Breadcrumb/index.cjs.map +1 -1
- package/dist/components/Breadcrumb/index.d.ts +2 -2
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.mjs +39 -20
- package/dist/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/components/Button/Button.cjs +10 -4
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.mjs +10 -4
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Command/index.cjs +1 -1
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.mjs +1 -1
- package/dist/components/Container/index.cjs +11 -2
- package/dist/components/Container/index.cjs.map +1 -1
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/Container/index.d.ts.map +1 -1
- package/dist/components/Container/index.mjs +11 -2
- package/dist/components/Container/index.mjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditor.cjs +1 -1
- package/dist/components/ContentEditor/ContentEditor.mjs +1 -1
- package/dist/components/ContentEditor/ContentEditorTextArea.cjs +18 -5
- package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +2 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -1
- package/dist/components/ContentEditor/ContentEditorTextArea.mjs +18 -5
- package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
- package/dist/components/ContentSelector/ContentSelector.cjs +1 -1
- package/dist/components/ContentSelector/ContentSelector.mjs +1 -1
- package/dist/components/CopyToClipboard/index.cjs +1 -1
- package/dist/components/CopyToClipboard/index.mjs +1 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs +11 -5
- 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 +11 -5
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
- package/dist/components/DictionaryEditor/ItemLayout.cjs +1 -1
- package/dist/components/DictionaryEditor/ItemLayout.mjs +1 -1
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +1 -1
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +1 -1
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +2 -2
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/NodeWrapper/index.mjs +2 -2
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +2 -2
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +2 -2
- package/dist/components/DictionaryEditor/useEditedContentStore.cjs +13 -10
- package/dist/components/DictionaryEditor/useEditedContentStore.cjs.map +1 -1
- package/dist/components/DictionaryEditor/useEditedContentStore.d.ts +1 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/useEditedContentStore.mjs +13 -10
- package/dist/components/DictionaryEditor/useEditedContentStore.mjs.map +1 -1
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +6 -6
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -1
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +6 -6
- package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +36 -55
- 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 +37 -56
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +50 -23
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +51 -24
- 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/EnumKeyInput.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +59 -0
- package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts +8 -0
- package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +59 -0
- package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/NodeEditor.cjs +98 -0
- package/dist/components/DictionaryFieldEditor/NodeEditor.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts +8 -0
- package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeEditor.mjs +98 -0
- package/dist/components/DictionaryFieldEditor/NodeEditor.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +6 -4
- 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 +6 -4
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +6 -6
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +6 -6
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/editorView.content.cjs +12 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/editorView.content.d.ts +4 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/editorView.content.mjs +12 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.mjs.map +1 -1
- package/dist/components/DropDown/index.cjs +1 -1
- package/dist/components/DropDown/index.mjs +1 -1
- package/dist/components/EditableField/EditableFieldInput.cjs +1 -1
- package/dist/components/EditableField/EditableFieldInput.mjs +1 -1
- package/dist/components/EditableField/EditableFieldLayout.cjs +9 -3
- package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.d.ts +3 -3
- package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.mjs +9 -3
- package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.cjs +23 -6
- package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.mjs +24 -7
- package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
- package/dist/components/Flags/Flag.cjs +1 -1
- package/dist/components/Flags/Flag.mjs +1 -1
- package/dist/components/Footer/index.cjs +1 -1
- package/dist/components/Footer/index.mjs +1 -1
- package/dist/components/Form/Form.cjs +2 -2
- package/dist/components/Form/Form.mjs +2 -2
- package/dist/components/Form/FormBase.cjs +1 -1
- package/dist/components/Form/FormBase.d.ts.map +1 -1
- package/dist/components/Form/FormBase.mjs +1 -1
- package/dist/components/Form/FormControl.cjs +1 -1
- package/dist/components/Form/FormControl.mjs +1 -1
- package/dist/components/Form/FormDescription.cjs +1 -1
- package/dist/components/Form/FormDescription.mjs +1 -1
- package/dist/components/Form/FormField.cjs +1 -1
- package/dist/components/Form/FormField.mjs +1 -1
- package/dist/components/Form/FormItem.cjs +1 -1
- package/dist/components/Form/FormItem.mjs +1 -1
- package/dist/components/Form/FormLabel.cjs +1 -1
- package/dist/components/Form/FormLabel.mjs +1 -1
- package/dist/components/Form/FormMessage.cjs +1 -1
- package/dist/components/Form/FormMessage.mjs +1 -1
- package/dist/components/Form/elements/CheckboxElement.cjs +2 -2
- package/dist/components/Form/elements/CheckboxElement.mjs +2 -2
- package/dist/components/Form/elements/EditableFieldInputElement.cjs +2 -2
- package/dist/components/Form/elements/EditableFieldInputElement.mjs +2 -2
- package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +2 -2
- package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +2 -2
- package/dist/components/Form/elements/FormElement.cjs +2 -2
- package/dist/components/Form/elements/FormElement.mjs +2 -2
- package/dist/components/Form/elements/FormElementWrapper.cjs +1 -1
- package/dist/components/Form/elements/FormElementWrapper.mjs +1 -1
- package/dist/components/Form/elements/InputElement.cjs +2 -2
- package/dist/components/Form/elements/InputElement.mjs +2 -2
- package/dist/components/Form/elements/InputPasswordElement.cjs +2 -2
- package/dist/components/Form/elements/InputPasswordElement.mjs +2 -2
- package/dist/components/Form/elements/MultiselectElement.cjs +2 -2
- package/dist/components/Form/elements/MultiselectElement.mjs +2 -2
- package/dist/components/Form/elements/SelectElement.cjs +2 -2
- package/dist/components/Form/elements/SelectElement.mjs +2 -2
- package/dist/components/Form/elements/SwitchSelectorElement.cjs +2 -2
- package/dist/components/Form/elements/SwitchSelectorElement.mjs +2 -2
- package/dist/components/Form/elements/TextAreaElement.cjs +2 -2
- package/dist/components/Form/elements/TextAreaElement.mjs +2 -2
- package/dist/components/Form/elements/index.cjs +1 -1
- package/dist/components/Form/elements/index.mjs +1 -1
- package/dist/components/Form/index.cjs +1 -1
- package/dist/components/Form/index.mjs +1 -1
- package/dist/components/Form/layout/FormItemLayout.cjs +2 -2
- package/dist/components/Form/layout/FormItemLayout.mjs +2 -2
- package/dist/components/Form/layout/FormLabelLayout.cjs +1 -1
- package/dist/components/Form/layout/FormLabelLayout.mjs +1 -1
- package/dist/components/Form/layout/RequiredStar.cjs +1 -1
- package/dist/components/Form/layout/RequiredStar.mjs +1 -1
- package/dist/components/Form/layout/index.cjs +1 -1
- package/dist/components/Form/layout/index.mjs +1 -1
- package/dist/components/Headers/index.cjs +1 -1
- package/dist/components/Headers/index.mjs +1 -1
- package/dist/components/IDE/CodeRender.cjs +1 -1
- package/dist/components/IDE/CodeRender.mjs +1 -1
- package/dist/components/IDE/FileList.cjs +1 -1
- package/dist/components/IDE/FileList.mjs +1 -1
- package/dist/components/IDE/FileTree.cjs +1 -1
- package/dist/components/IDE/FileTree.mjs +1 -1
- package/dist/components/IDE/IDE.cjs +1 -1
- package/dist/components/IDE/IDE.mjs +1 -1
- package/dist/components/IDE/MarkDownRender.cjs +1 -1
- package/dist/components/IDE/MarkDownRender.mjs +1 -1
- package/dist/components/InformationTag/index.cjs +1 -1
- package/dist/components/InformationTag/index.mjs +1 -1
- package/dist/components/Input/Checkbox.cjs +1 -1
- package/dist/components/Input/Checkbox.d.ts +1 -1
- package/dist/components/Input/Checkbox.mjs +1 -1
- package/dist/components/Input/Input.cjs +1 -1
- package/dist/components/Input/Input.mjs +1 -1
- package/dist/components/Input/InputPassword.cjs +1 -1
- package/dist/components/Input/InputPassword.mjs +1 -1
- package/dist/components/Label/index.cjs +1 -1
- package/dist/components/Label/index.mjs +1 -1
- package/dist/components/Link/Link.cjs +1 -1
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Link/Link.mjs +1 -1
- package/dist/components/Loader/index.cjs +1 -1
- package/dist/components/Loader/index.mjs +1 -1
- package/dist/components/Loader/spinner.cjs +1 -1
- package/dist/components/Loader/spinner.mjs +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +1 -1
- package/dist/components/Logo/LogoCircle.cjs +1 -1
- package/dist/components/Logo/LogoCircle.mjs +1 -1
- package/dist/components/Logo/LogoNoFrame.cjs +1 -1
- package/dist/components/Logo/LogoNoFrame.mjs +1 -1
- package/dist/components/Logo/LogoSquare.cjs +1 -1
- package/dist/components/Logo/LogoSquare.mjs +1 -1
- package/dist/components/Logo/LogoSquircle.cjs +1 -1
- package/dist/components/Logo/LogoSquircle.mjs +1 -1
- package/dist/components/Logo/LogoTextOnly.cjs +1 -1
- package/dist/components/Logo/LogoTextOnly.mjs +1 -1
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs +1 -1
- package/dist/components/Logo/LogoWithTextBelowCircle.mjs +1 -1
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs +1 -1
- package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs +1 -1
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs +1 -1
- package/dist/components/Logo/LogoWithTextBelowSquircle.mjs +1 -1
- package/dist/components/Logo/LogoWithTextCircle.cjs +1 -1
- package/dist/components/Logo/LogoWithTextCircle.mjs +1 -1
- package/dist/components/Logo/LogoWithTextNoFrame.cjs +1 -1
- package/dist/components/Logo/LogoWithTextNoFrame.mjs +1 -1
- package/dist/components/Logo/LogoWithTextSquircle.cjs +1 -1
- package/dist/components/Logo/LogoWithTextSquircle.mjs +1 -1
- package/dist/components/Logo/index.cjs +1 -1
- package/dist/components/Logo/index.mjs +1 -1
- package/dist/components/MarkDownRender/index.cjs +1 -1
- package/dist/components/MarkDownRender/index.mjs +1 -1
- package/dist/components/MaxHeightSmoother/index.cjs +1 -1
- package/dist/components/MaxHeightSmoother/index.mjs +1 -1
- package/dist/components/MaxWidthSmoother/index.cjs +1 -1
- package/dist/components/MaxWidthSmoother/index.mjs +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.mjs +1 -1
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Navbar/Burger.cjs +1 -1
- package/dist/components/Navbar/Burger.mjs +1 -1
- package/dist/components/Navbar/DesktopNavbar.cjs +1 -1
- package/dist/components/Navbar/DesktopNavbar.mjs +1 -1
- package/dist/components/Navbar/MobileNavbar.cjs +1 -1
- package/dist/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/components/Navbar/index.cjs +1 -1
- package/dist/components/Navbar/index.mjs +1 -1
- package/dist/components/Pattern/DotPattern.cjs +1 -1
- package/dist/components/Pattern/DotPattern.mjs +1 -1
- package/dist/components/Pattern/GridPattern.cjs +1 -1
- package/dist/components/Pattern/GridPattern.mjs +1 -1
- package/dist/components/Pattern/SpotLight.cjs +1 -1
- package/dist/components/Pattern/SpotLight.mjs +1 -1
- package/dist/components/Popover/index.cjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/PressableSpan/PressableSpan.cjs +1 -1
- package/dist/components/PressableSpan/PressableSpan.mjs +1 -1
- package/dist/components/ProfileDropDown/index.cjs +1 -1
- package/dist/components/ProfileDropDown/index.mjs +1 -1
- package/dist/components/RightDrawer/RightDrawer.cjs +1 -1
- package/dist/components/RightDrawer/RightDrawer.mjs +1 -1
- package/dist/components/Select/Multiselect.cjs +1 -1
- package/dist/components/Select/Multiselect.d.ts.map +1 -1
- package/dist/components/Select/Multiselect.mjs +1 -1
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.mjs +1 -1
- package/dist/components/SwitchSelector/index.cjs +1 -1
- package/dist/components/SwitchSelector/index.d.ts +1 -1
- package/dist/components/SwitchSelector/index.mjs +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +1 -1
- package/dist/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/components/TabSelector/TabSelector.mjs +1 -1
- package/dist/components/Tag/index.cjs +1 -1
- package/dist/components/Tag/index.mjs +1 -1
- package/dist/components/TextArea/AutoSizeTextArea.cjs +1 -1
- package/dist/components/TextArea/AutoSizeTextArea.mjs +1 -1
- package/dist/components/TextArea/TextArea.cjs +1 -1
- package/dist/components/TextArea/TextArea.mjs +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +1 -1
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs +1 -1
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +1 -1
- package/dist/components/Toaster/Toast.cjs +1 -1
- package/dist/components/Toaster/Toast.mjs +1 -1
- package/dist/components/Toaster/Toaster.cjs +1 -1
- package/dist/components/Toaster/Toaster.mjs +1 -1
- package/dist/components/WithResizer/index.cjs +1 -1
- package/dist/components/WithResizer/index.mjs +1 -1
- package/dist/components/index.cjs +3 -1
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.mjs +3 -1
- package/dist/components/index.mjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.cjs +1 -1
- package/dist/hooks/intlayerAPIHooks.mjs +1 -1
- package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
- package/dist/{index-BZQDMSxb.cjs → index-BtZWYJhL.cjs} +2 -2
- package/dist/index-BtZWYJhL.cjs.map +1 -0
- package/dist/{index-pLq_417z.js → index-D9oaKvKC.js} +2 -2
- package/dist/index-D9oaKvKC.js.map +1 -0
- package/dist/{jsx-runtime-BgSF1HG2.js → jsx-runtime-DaNGiM0W.js} +15 -9
- package/dist/{jsx-runtime-BgSF1HG2.js.map → jsx-runtime-DaNGiM0W.js.map} +1 -1
- package/dist/{jsx-runtime-DvCoRj5u.cjs → jsx-runtime-XHKiWCTo.cjs} +15 -9
- package/dist/{jsx-runtime-DvCoRj5u.cjs.map → jsx-runtime-XHKiWCTo.cjs.map} +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/zod-BV4nCGJE.js.map +1 -1
- package/dist/zod-DSrtTSD_.cjs.map +1 -1
- package/package.json +47 -45
- package/tailwind.config.d.ts +8 -0
- package/tailwind.config.js +215 -0
- package/dist/Form-2XHQV7F_.cjs +0 -295
- package/dist/Form-2XHQV7F_.cjs.map +0 -1
- package/dist/Form-BO0i3nT9.js +0 -300
- package/dist/Form-BO0i3nT9.js.map +0 -1
- package/dist/Form-BaHDK0RZ.cjs +0 -298
- package/dist/Form-BaHDK0RZ.cjs.map +0 -1
- package/dist/Form-BfZMqK2D.js +0 -300
- package/dist/Form-BfZMqK2D.js.map +0 -1
- package/dist/Form-C13KWSZs.cjs +0 -299
- package/dist/Form-C13KWSZs.cjs.map +0 -1
- package/dist/Form-C8K2f8ph.js +0 -300
- package/dist/Form-C8K2f8ph.js.map +0 -1
- package/dist/Form-CKvCgz8c.cjs +0 -299
- package/dist/Form-CKvCgz8c.cjs.map +0 -1
- package/dist/Form-Cbk5Lhpd.js +0 -299
- package/dist/Form-Cbk5Lhpd.js.map +0 -1
- package/dist/Form-Cbu7ff1e.js +0 -278
- package/dist/Form-Cbu7ff1e.js.map +0 -1
- package/dist/Form-CiAgFAPb.cjs +0 -300
- package/dist/Form-CiAgFAPb.cjs.map +0 -1
- package/dist/Form-CnBKDneQ.js +0 -296
- package/dist/Form-CnBKDneQ.js.map +0 -1
- package/dist/Form-DhlDf3ML.cjs +0 -299
- package/dist/Form-DhlDf3ML.cjs.map +0 -1
- package/dist/Form-DkAZ0Jdf.cjs +0 -299
- package/dist/Form-DkAZ0Jdf.cjs.map +0 -1
- package/dist/Form-DqnNP4DA.js +0 -300
- package/dist/Form-DqnNP4DA.js.map +0 -1
- package/dist/Form-DyFBmVya.js +0 -301
- package/dist/Form-DyFBmVya.js.map +0 -1
- package/dist/Form-FW4Odjfm.js +0 -301
- package/dist/Form-FW4Odjfm.js.map +0 -1
- package/dist/Form-wWTTkxTp.cjs +0 -277
- package/dist/Form-wWTTkxTp.cjs.map +0 -1
- package/dist/TabSelector-BmkzVPXl.js +0 -660
- package/dist/TabSelector-BmkzVPXl.js.map +0 -1
- package/dist/TabSelector-o_NRBvPQ.cjs +0 -659
- package/dist/TabSelector-o_NRBvPQ.cjs.map +0 -1
- package/dist/components/Auth/AuthProvider/index.cjs +0 -55
- package/dist/components/Auth/AuthProvider/index.cjs.map +0 -1
- package/dist/components/Auth/AuthProvider/index.d.ts +0 -31
- package/dist/components/Auth/AuthProvider/index.d.ts.map +0 -1
- package/dist/components/Auth/AuthProvider/index.mjs +0 -55
- package/dist/components/Auth/AuthProvider/index.mjs.map +0 -1
- package/dist/components/Auth/AuthProvider/useCSRF.cjs +0 -22
- package/dist/components/Auth/AuthProvider/useCSRF.cjs.map +0 -1
- package/dist/components/Auth/AuthProvider/useCSRF.d.ts +0 -5
- package/dist/components/Auth/AuthProvider/useCSRF.d.ts.map +0 -1
- package/dist/components/Auth/AuthProvider/useCSRF.mjs +0 -22
- package/dist/components/Auth/AuthProvider/useCSRF.mjs.map +0 -1
- package/dist/components/Auth/AuthProvider/useOAuth2.cjs +0 -26
- package/dist/components/Auth/AuthProvider/useOAuth2.cjs.map +0 -1
- package/dist/components/Auth/AuthProvider/useOAuth2.d.ts +0 -4
- package/dist/components/Auth/AuthProvider/useOAuth2.d.ts.map +0 -1
- package/dist/components/Auth/AuthProvider/useOAuth2.mjs +0 -26
- package/dist/components/Auth/AuthProvider/useOAuth2.mjs.map +0 -1
- package/dist/components/Auth/AuthProvider/useSession.cjs +0 -70
- package/dist/components/Auth/AuthProvider/useSession.cjs.map +0 -1
- package/dist/components/Auth/AuthProvider/useSession.d.ts +0 -8
- package/dist/components/Auth/AuthProvider/useSession.d.ts.map +0 -1
- package/dist/components/Auth/AuthProvider/useSession.mjs +0 -70
- package/dist/components/Auth/AuthProvider/useSession.mjs.map +0 -1
- package/dist/hooks/useAsync/useProxyState.d.ts +0 -3
- package/dist/hooks/useAsync/useProxyState.d.ts.map +0 -1
- package/dist/hooks/usePersistenceStore.cjs +0 -22
- package/dist/hooks/usePersistenceStore.cjs.map +0 -1
- package/dist/hooks/usePersistenceStore.d.ts +0 -2
- package/dist/hooks/usePersistenceStore.d.ts.map +0 -1
- package/dist/hooks/usePersistenceStore.mjs +0 -22
- package/dist/hooks/usePersistenceStore.mjs.map +0 -1
- package/dist/index-BUDsCMdX.cjs +0 -204
- package/dist/index-BUDsCMdX.cjs.map +0 -1
- package/dist/index-BZQDMSxb.cjs.map +0 -1
- package/dist/index-C09rI9kw.js +0 -205
- package/dist/index-C09rI9kw.js.map +0 -1
- package/dist/index-pLq_417z.js.map +0 -1
- package/dist/stripe-BsI0lJWz.js +0 -22
- package/dist/stripe-BsI0lJWz.js.map +0 -1
- package/dist/stripe-C-u5RvGh.js +0 -22
- package/dist/stripe-C-u5RvGh.js.map +0 -1
- package/dist/stripe-CF_E65Vu.js +0 -22
- package/dist/stripe-CF_E65Vu.js.map +0 -1
- package/dist/stripe-CpGvfq6T.cjs +0 -21
- package/dist/stripe-CpGvfq6T.cjs.map +0 -1
- package/dist/stripe-DEv4DjAL.cjs +0 -21
- package/dist/stripe-DEv4DjAL.cjs.map +0 -1
- package/dist/stripe-DuG0uaEn.cjs +0 -21
- package/dist/stripe-DuG0uaEn.cjs.map +0 -1
- package/dist/useProxyState-D5GLrY2y.js +0 -20
- package/dist/useProxyState-D5GLrY2y.js.map +0 -1
- package/dist/useProxyState-DewdF3no.cjs +0 -19
- package/dist/useProxyState-DewdF3no.cjs.map +0 -1
- package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs +0 -66
- package/dist/validDictionaryChangeButtons.content-BK9QaXPm.cjs.map +0 -1
- package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs +0 -66
- package/dist/validDictionaryChangeButtons.content-CAAscqJI.cjs.map +0 -1
- package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js +0 -67
- package/dist/validDictionaryChangeButtons.content-D7AvoBdl.js.map +0 -1
- package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs +0 -45
- package/dist/validDictionaryChangeButtons.content-DQwoUNCC.cjs.map +0 -1
- package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js +0 -67
- package/dist/validDictionaryChangeButtons.content-DQxPoIe6.js.map +0 -1
- package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs +0 -66
- package/dist/validDictionaryChangeButtons.content-JUcjGdBx.cjs.map +0 -1
- package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js +0 -67
- package/dist/validDictionaryChangeButtons.content-ejY3-sbG.js.map +0 -1
- package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js +0 -46
- package/dist/validDictionaryChangeButtons.content-iyT0lKy7.js.map +0 -1
- package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs +0 -66
- package/dist/validDictionaryChangeButtons.content-u4qShrQh.cjs.map +0 -1
- package/dist/validDictionaryChangeButtons.content-y4up9NU8.js +0 -67
- package/dist/validDictionaryChangeButtons.content-y4up9NU8.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as jsxRuntimeExports } from "../../../jsx-runtime-
|
|
3
|
-
import { X } from "lucide-react";
|
|
2
|
+
import { j as jsxRuntimeExports } from "../../../jsx-runtime-DaNGiM0W.js";
|
|
3
|
+
import { RotateCcw, X } from "lucide-react";
|
|
4
|
+
import { useMemo } from "react";
|
|
4
5
|
import { useDictionary } from "react-intlayer";
|
|
5
6
|
import { EditableFieldInput } from "../../EditableField/EditableFieldInput.mjs";
|
|
6
7
|
import "../../EditableField/EditableFieldTextArea.mjs";
|
|
@@ -10,7 +11,6 @@ import { Button } from "../../Button/Button.mjs";
|
|
|
10
11
|
import { useEditedContentStore } from "../../DictionaryEditor/useEditedContentStore.mjs";
|
|
11
12
|
import { useEditionPanelStore } from "../../DictionaryEditor/useEditionPanelStore.mjs";
|
|
12
13
|
import "@intlayer/core";
|
|
13
|
-
import "react";
|
|
14
14
|
import "clsx";
|
|
15
15
|
import "tailwind-merge";
|
|
16
16
|
import "../../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
|
|
@@ -22,7 +22,7 @@ import "@intlayer/dictionaries-entry";
|
|
|
22
22
|
import "deepmerge";
|
|
23
23
|
import "../../Form/FormBase.mjs";
|
|
24
24
|
import "../../Form/FormField.mjs";
|
|
25
|
-
import "../../../Form-
|
|
25
|
+
import "../../../Form-DhsgC7kB.js";
|
|
26
26
|
import "../../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
|
|
27
27
|
import "zod";
|
|
28
28
|
import { Label } from "../../Label/index.mjs";
|
|
@@ -42,13 +42,28 @@ const EditorView = ({
|
|
|
42
42
|
);
|
|
43
43
|
const keyPath = focusedContent?.keyPath ?? [];
|
|
44
44
|
const initialKeyName = keyPath[keyPath.length - 1]?.key ?? "";
|
|
45
|
-
const { titleInput, deleteButton, nodeTypeSelector } = useDictionary(editorViewContent);
|
|
46
|
-
const {
|
|
45
|
+
const { titleInput, deleteButton, nodeTypeSelector, restoreButton } = useDictionary(editorViewContent);
|
|
46
|
+
const {
|
|
47
|
+
editedContent,
|
|
48
|
+
renameEditedContent,
|
|
49
|
+
addEditedContent,
|
|
50
|
+
removeEditedContent
|
|
51
|
+
} = useEditedContentStore((s) => ({
|
|
47
52
|
editedContent: s.editedContent,
|
|
48
53
|
renameEditedContent: s.renameEditedContent,
|
|
49
|
-
addEditedContent: s.addEditedContent
|
|
54
|
+
addEditedContent: s.addEditedContent,
|
|
55
|
+
removeEditedContent: s.removeEditedContent
|
|
50
56
|
}));
|
|
51
|
-
const
|
|
57
|
+
const editedSection = editedContent[dictionaryKey]?.content ? getDictionaryValueByKeyPath(editedContent[dictionaryKey].content, keyPath) : void 0;
|
|
58
|
+
const dictionarySection = getDictionaryValueByKeyPath(
|
|
59
|
+
dictionary.content,
|
|
60
|
+
keyPath
|
|
61
|
+
);
|
|
62
|
+
const section = editedSection ?? dictionarySection;
|
|
63
|
+
const isEdited = useMemo(
|
|
64
|
+
() => editedSection && JSON.stringify(editedSection) !== JSON.stringify(dictionarySection),
|
|
65
|
+
[editedSection, dictionarySection]
|
|
66
|
+
);
|
|
52
67
|
const isEditableSection = getIsEditableSection(section);
|
|
53
68
|
const handleRenameNodeKey = (keyName) => {
|
|
54
69
|
const camelCaseSentence = sentenceToCamelCase(keyName);
|
|
@@ -112,22 +127,34 @@ const EditorView = ({
|
|
|
112
127
|
)
|
|
113
128
|
] })
|
|
114
129
|
] }),
|
|
115
|
-
keyPath.length > 0 && /* @__PURE__ */ jsxRuntimeExports.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
keyPath.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ml-auto flex gap-2", children: [
|
|
131
|
+
isEdited && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
132
|
+
Button,
|
|
133
|
+
{
|
|
134
|
+
label: restoreButton.label.value,
|
|
135
|
+
variant: "outline",
|
|
136
|
+
color: "text-inverse",
|
|
137
|
+
Icon: RotateCcw,
|
|
138
|
+
onClick: () => removeEditedContent(dictionaryKey, keyPath),
|
|
139
|
+
children: restoreButton.text
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
143
|
+
Button,
|
|
144
|
+
{
|
|
145
|
+
label: deleteButton.label.value,
|
|
146
|
+
variant: "outline",
|
|
147
|
+
color: "error",
|
|
148
|
+
Icon: X,
|
|
149
|
+
onClick: () => {
|
|
150
|
+
addEditedContent(dictionaryKey, void 0, keyPath);
|
|
151
|
+
const parentKeyPath = keyPath.slice(0, -1);
|
|
152
|
+
setFocusedContentKeyPath(parentKeyPath);
|
|
153
|
+
},
|
|
154
|
+
children: deleteButton.text
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
] })
|
|
131
158
|
]
|
|
132
159
|
},
|
|
133
160
|
JSON.stringify(focusedContent?.keyPath)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorView.mjs","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/EditorView.tsx"],"sourcesContent":["'use client';\n\nimport { type KeyPath, type Dictionary } from '@intlayer/core';\nimport { X } from 'lucide-react';\nimport { type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { EditableFieldInput } from '../..//EditableField';\nimport {\n camelCaseToSentence,\n sentenceToCamelCase,\n} from '../../../utils/camelCase';\nimport { getDictionaryValueByKeyPath } from '../../../utils/dictionary';\nimport { Button } from '../../Button';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../../DictionaryEditor';\nimport { Label } from '../../Label';\nimport { editorViewContent } from '../editorView.content';\nimport { getIsEditableSection } from '../getIsEditableSection';\nimport { NodeTypeSelector } from '../NodeTypeSelector';\nimport { TextEditor } from './TextEditor';\n\ntype EditorViewProps = {\n dictionaryKey: string;\n dictionary: Dictionary;\n};\n\nexport const EditorView: FC<EditorViewProps> = ({\n dictionaryKey,\n dictionary,\n}) => {\n const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(\n (s) => ({\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n focusedContent: s.focusedContent,\n })\n );\n const keyPath = focusedContent?.keyPath ?? [];\n const initialKeyName = keyPath[keyPath.length - 1]?.key ?? '';\n const { titleInput, deleteButton, nodeTypeSelector } =\n useDictionary(editorViewContent);\n\n const {
|
|
1
|
+
{"version":3,"file":"EditorView.mjs","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/EditorView.tsx"],"sourcesContent":["'use client';\n\nimport { type KeyPath, type Dictionary } from '@intlayer/core';\nimport { RotateCcw, X } from 'lucide-react';\nimport { useMemo, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { EditableFieldInput } from '../..//EditableField';\nimport {\n camelCaseToSentence,\n sentenceToCamelCase,\n} from '../../../utils/camelCase';\nimport { getDictionaryValueByKeyPath } from '../../../utils/dictionary';\nimport { Button } from '../../Button';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../../DictionaryEditor';\nimport { Label } from '../../Label';\nimport { editorViewContent } from '../editorView.content';\nimport { getIsEditableSection } from '../getIsEditableSection';\nimport { NodeTypeSelector } from '../NodeTypeSelector';\nimport { TextEditor } from './TextEditor';\n\ntype EditorViewProps = {\n dictionaryKey: string;\n dictionary: Dictionary;\n};\n\nexport const EditorView: FC<EditorViewProps> = ({\n dictionaryKey,\n dictionary,\n}) => {\n const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(\n (s) => ({\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n focusedContent: s.focusedContent,\n })\n );\n const keyPath = focusedContent?.keyPath ?? [];\n const initialKeyName = keyPath[keyPath.length - 1]?.key ?? '';\n const { titleInput, deleteButton, nodeTypeSelector, restoreButton } =\n useDictionary(editorViewContent);\n\n const {\n editedContent,\n renameEditedContent,\n addEditedContent,\n removeEditedContent,\n } = useEditedContentStore((s) => ({\n editedContent: s.editedContent,\n renameEditedContent: s.renameEditedContent,\n addEditedContent: s.addEditedContent,\n removeEditedContent: s.removeEditedContent,\n }));\n\n const editedSection = editedContent[dictionaryKey]?.content\n ? getDictionaryValueByKeyPath(editedContent[dictionaryKey].content, keyPath)\n : undefined;\n\n const dictionarySection = getDictionaryValueByKeyPath(\n dictionary.content,\n keyPath\n );\n\n const section = editedSection ?? dictionarySection;\n\n const isEdited = useMemo(\n () =>\n editedSection &&\n JSON.stringify(editedSection) !== JSON.stringify(dictionarySection),\n [editedSection, dictionarySection]\n );\n\n const isEditableSection = getIsEditableSection(section);\n\n const handleRenameNodeKey = (keyName: string) => {\n const camelCaseSentence = sentenceToCamelCase(keyName);\n renameEditedContent(dictionaryKey, camelCaseSentence, keyPath);\n const prevKeyPath: KeyPath[] = keyPath.slice(0, -1);\n const lastKeyPath: KeyPath = keyPath[keyPath.length - 1];\n const newKeyPath: KeyPath[] = [\n ...prevKeyPath,\n { ...lastKeyPath, key: camelCaseSentence } as KeyPath,\n ];\n setFocusedContentKeyPath(newKeyPath);\n };\n\n return (\n <>\n {isEditableSection && (\n <TextEditor\n key={keyPath.join('.')}\n keyPath={keyPath}\n section={section}\n dictionaryKey={dictionaryKey}\n />\n )}\n\n {keyPath.length > 0 ? (\n <form\n className=\"bg-text text-text-dark dark:bg-text-dark dark:text-text flex w-full flex-col items-start justify-between gap-6 px-4 py-2\"\n key={JSON.stringify(focusedContent?.keyPath)}\n >\n <div className=\"flex w-full flex-wrap items-start justify-between gap-6\">\n {typeof initialKeyName === 'string' && (\n <div className=\"flex flex-col gap-3\">\n <Label>{titleInput.label}</Label>\n <div className=\"flex flex-wrap items-center gap-4\">\n <EditableFieldInput\n name=\"key\"\n aria-label=\"Key\"\n key={initialKeyName}\n placeholder={titleInput.placeholder.value}\n defaultValue={camelCaseToSentence(initialKeyName)}\n onSave={(value) => handleRenameNodeKey(value)}\n className=\"h-8\"\n variant=\"invisible\"\n />\n <span className=\"text-neutral dark:text-neutral-dark text-sm\">\n ({initialKeyName})\n </span>\n </div>\n </div>\n )}\n\n <div>\n <Label>{nodeTypeSelector.label}</Label>\n\n <NodeTypeSelector\n keyPath={keyPath}\n dictionaryKey={dictionaryKey}\n section={section}\n />\n </div>\n </div>\n {keyPath.length > 0 && (\n <div className=\"ml-auto flex gap-2\">\n {isEdited && (\n <Button\n label={restoreButton.label.value}\n variant=\"outline\"\n color=\"text-inverse\"\n Icon={RotateCcw}\n onClick={() => removeEditedContent(dictionaryKey, keyPath)}\n >\n {restoreButton.text}\n </Button>\n )}\n <Button\n label={deleteButton.label.value}\n variant=\"outline\"\n color=\"error\"\n Icon={X}\n onClick={() => {\n addEditedContent(dictionaryKey, undefined, keyPath);\n\n const parentKeyPath: KeyPath[] = keyPath.slice(0, -1);\n setFocusedContentKeyPath(parentKeyPath);\n }}\n >\n {deleteButton.text}\n </Button>\n </div>\n )}\n </form>\n ) : (\n <span className=\"h-8\"></span>\n )}\n </>\n );\n};\n"],"names":["jsxs","Fragment","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AACF,MAAM;AACE,QAAA,EAAE,gBAAgB,yBAAA,IAA6B;AAAA,IACnD,CAAC,OAAO;AAAA,MACN,0BAA0B,EAAE;AAAA,MAC5B,gBAAgB,EAAE;AAAA,IAAA;AAAA,EACpB;AAEI,QAAA,UAAU,gBAAgB,WAAW;AAC3C,QAAM,iBAAiB,QAAQ,QAAQ,SAAS,CAAC,GAAG,OAAO;AAC3D,QAAM,EAAE,YAAY,cAAc,kBAAkB,kBAClD,cAAc,iBAAiB;AAE3B,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,sBAAsB,CAAC,OAAO;AAAA,IAChC,eAAe,EAAE;AAAA,IACjB,qBAAqB,EAAE;AAAA,IACvB,kBAAkB,EAAE;AAAA,IACpB,qBAAqB,EAAE;AAAA,EACvB,EAAA;AAEI,QAAA,gBAAgB,cAAc,aAAa,GAAG,UAChD,4BAA4B,cAAc,aAAa,EAAE,SAAS,OAAO,IACzE;AAEJ,QAAM,oBAAoB;AAAA,IACxB,WAAW;AAAA,IACX;AAAA,EAAA;AAGF,QAAM,UAAU,iBAAiB;AAEjC,QAAM,WAAW;AAAA,IACf,MACE,iBACA,KAAK,UAAU,aAAa,MAAM,KAAK,UAAU,iBAAiB;AAAA,IACpE,CAAC,eAAe,iBAAiB;AAAA,EAAA;AAG7B,QAAA,oBAAoB,qBAAqB,OAAO;AAEhD,QAAA,sBAAsB,CAAC,YAAoB;AACzC,UAAA,oBAAoB,oBAAoB,OAAO;AACjC,wBAAA,eAAe,mBAAmB,OAAO;AAC7D,UAAM,cAAyB,QAAQ,MAAM,GAAG,EAAE;AAClD,UAAM,cAAuB,QAAQ,QAAQ,SAAS,CAAC;AACvD,UAAM,aAAwB;AAAA,MAC5B,GAAG;AAAA,MACH,EAAE,GAAG,aAAa,KAAK,kBAAkB;AAAA,IAAA;AAE3C,6BAAyB,UAAU;AAAA,EAAA;AAGrC,SAEKA,kCAAA,KAAAC,4BAAA,EAAA,UAAA;AAAA,IACC,qBAAAC,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,MAHK,QAAQ,KAAK,GAAG;AAAA,IAIvB;AAAA,IAGD,QAAQ,SAAS,IAChBF,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QAGV,UAAA;AAAA,UAACA,kCAAAA,KAAA,OAAA,EAAI,WAAU,4DACZ,UAAA;AAAA,YAAA,OAAO,mBAAmB,YACxBA,kCAAA,KAAA,OAAA,EAAI,WAAU,uBACb,UAAA;AAAA,cAACE,kCAAAA,IAAA,OAAA,EAAO,qBAAW,MAAM,CAAA;AAAA,cACzBF,kCAAAA,KAAC,OAAI,EAAA,WAAU,qCACb,UAAA;AAAA,gBAAAE,kCAAA;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBACC,MAAK;AAAA,oBACL,cAAW;AAAA,oBAEX,aAAa,WAAW,YAAY;AAAA,oBACpC,cAAc,oBAAoB,cAAc;AAAA,oBAChD,QAAQ,CAAC,UAAU,oBAAoB,KAAK;AAAA,oBAC5C,WAAU;AAAA,oBACV,SAAQ;AAAA,kBAAA;AAAA,kBALH;AAAA,gBAMP;AAAA,gBACAF,kCAAAA,KAAC,QAAK,EAAA,WAAU,+CAA8C,UAAA;AAAA,kBAAA;AAAA,kBAC1D;AAAA,kBAAe;AAAA,gBAAA,GACnB;AAAA,cAAA,GACF;AAAA,YAAA,GACF;AAAA,mDAGD,OACC,EAAA,UAAA;AAAA,cAACE,kCAAAA,IAAA,OAAA,EAAO,2BAAiB,MAAM,CAAA;AAAA,cAE/BA,kCAAA;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC;AAAA,kBACA;AAAA,kBACA;AAAA,gBAAA;AAAA,cACF;AAAA,YAAA,GACF;AAAA,UAAA,GACF;AAAA,UACC,QAAQ,SAAS,KACfF,kCAAA,KAAA,OAAA,EAAI,WAAU,sBACZ,UAAA;AAAA,YACC,YAAAE,kCAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,OAAO,cAAc,MAAM;AAAA,gBAC3B,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,MAAM;AAAA,gBACN,SAAS,MAAM,oBAAoB,eAAe,OAAO;AAAA,gBAExD,UAAc,cAAA;AAAA,cAAA;AAAA,YACjB;AAAA,YAEFA,kCAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,OAAO,aAAa,MAAM;AAAA,gBAC1B,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,MAAM;AAAA,gBACN,SAAS,MAAM;AACI,mCAAA,eAAe,QAAW,OAAO;AAElD,wBAAM,gBAA2B,QAAQ,MAAM,GAAG,EAAE;AACpD,2CAAyB,aAAa;AAAA,gBACxC;AAAA,gBAEC,UAAa,aAAA;AAAA,cAAA;AAAA,YAChB;AAAA,UAAA,GACF;AAAA,QAAA;AAAA,MAAA;AAAA,MA7DG,KAAK,UAAU,gBAAgB,OAAO;AAAA,IAiE7C,IAAAA,kCAAA,IAAC,QAAK,EAAA,WAAU,MAAM,CAAA;AAAA,EAE1B,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("../../../jsx-runtime-
|
|
4
|
+
const jsxRuntime = require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
5
5
|
const client = require("@intlayer/config/client");
|
|
6
6
|
const core = require("@intlayer/core");
|
|
7
7
|
const lucideReact = require("lucide-react");
|
|
@@ -25,7 +25,7 @@ require("@intlayer/dictionaries-entry");
|
|
|
25
25
|
require("deepmerge");
|
|
26
26
|
require("../../Form/FormBase.cjs");
|
|
27
27
|
require("../../Form/FormField.cjs");
|
|
28
|
-
require("../../../Form-
|
|
28
|
+
require("../../../Form-BDcoNTLV.cjs");
|
|
29
29
|
require("../../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
|
|
30
30
|
require("zod");
|
|
31
31
|
const components_DictionaryFieldEditor_EnumKeyInput = require("../EnumKeyInput.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as jsxRuntimeExports } from "../../../jsx-runtime-
|
|
2
|
+
import { j as jsxRuntimeExports } from "../../../jsx-runtime-DaNGiM0W.js";
|
|
3
3
|
import { getConfiguration } from "@intlayer/config/client";
|
|
4
4
|
import { NodeType, getLocaleName } from "@intlayer/core";
|
|
5
5
|
import { X, Plus } from "lucide-react";
|
|
@@ -23,7 +23,7 @@ import "@intlayer/dictionaries-entry";
|
|
|
23
23
|
import "deepmerge";
|
|
24
24
|
import "../../Form/FormBase.mjs";
|
|
25
25
|
import "../../Form/FormField.mjs";
|
|
26
|
-
import "../../../Form-
|
|
26
|
+
import "../../../Form-DhsgC7kB.js";
|
|
27
27
|
import "../../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
|
|
28
28
|
import "zod";
|
|
29
29
|
import { EnumKeyInput } from "../EnumKeyInput.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("../../jsx-runtime-
|
|
4
|
+
const jsxRuntime = require("../../jsx-runtime-XHKiWCTo.cjs");
|
|
5
5
|
const require$$0 = require("react");
|
|
6
6
|
const components_Input_Input = require("../Input/Input.cjs");
|
|
7
7
|
require("../Input/InputPassword.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as jsxRuntimeExports } from "../../jsx-runtime-
|
|
2
|
+
import { j as jsxRuntimeExports } from "../../jsx-runtime-DaNGiM0W.js";
|
|
3
3
|
import { useMemo, useState, useEffect } from "react";
|
|
4
4
|
import { Input } from "../Input/Input.mjs";
|
|
5
5
|
import "../Input/InputPassword.mjs";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
|
+
const components_ContentEditor_ContentEditorTextArea = require("../ContentEditor/ContentEditorTextArea.cjs");
|
|
5
|
+
const components_DictionaryEditor_useEditedContentStore = require("../DictionaryEditor/useEditedContentStore.cjs");
|
|
6
|
+
require("../DictionaryEditor/useEditionPanelStore.cjs");
|
|
7
|
+
require("react");
|
|
8
|
+
require("@intlayer/core");
|
|
9
|
+
require("lucide-react");
|
|
10
|
+
require("clsx");
|
|
11
|
+
require("tailwind-merge");
|
|
12
|
+
require("../Button/Button.cjs");
|
|
13
|
+
require("../EditableField/EditableFieldInput.cjs");
|
|
14
|
+
require("../EditableField/EditableFieldTextArea.cjs");
|
|
15
|
+
require("react-intlayer");
|
|
16
|
+
require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
|
|
17
|
+
require("../../hooks/useAsync/useAsyncStateStore.cjs");
|
|
18
|
+
require("../../libs/intlayer-api/index.cjs");
|
|
19
|
+
require("@intlayer/config/client");
|
|
20
|
+
require("../Toaster/Toast.cjs");
|
|
21
|
+
require("@intlayer/dictionaries-entry");
|
|
22
|
+
require("deepmerge");
|
|
23
|
+
require("../Form/FormBase.cjs");
|
|
24
|
+
require("../Form/FormField.cjs");
|
|
25
|
+
require("../../Form-BDcoNTLV.cjs");
|
|
26
|
+
require("../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
|
|
27
|
+
require("zod");
|
|
28
|
+
const components_DictionaryFieldEditor_SaveForm_SaveForm = require("./SaveForm/SaveForm.cjs");
|
|
29
|
+
const JSONEditor = ({ dictionary }) => {
|
|
30
|
+
const { setEditedContent, editedContent } = components_DictionaryEditor_useEditedContentStore.useEditedContentStore((s) => ({
|
|
31
|
+
editedContent: s.editedContent,
|
|
32
|
+
setEditedContent: s.setEditedContent
|
|
33
|
+
}));
|
|
34
|
+
const isValidJSON = (jsonString) => {
|
|
35
|
+
try {
|
|
36
|
+
JSON.parse(jsonString);
|
|
37
|
+
return true;
|
|
38
|
+
} catch (_error) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const displayedContent = editedContent[dictionary.key]?.content ?? dictionary?.content ?? {};
|
|
43
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
45
|
+
components_ContentEditor_ContentEditorTextArea.ContentEditorTextArea,
|
|
46
|
+
{
|
|
47
|
+
onContentChange: (content) => setEditedContent(dictionary.key, JSON.parse(content)),
|
|
48
|
+
validate: isValidJSON,
|
|
49
|
+
className: "text-sm",
|
|
50
|
+
variant: "default",
|
|
51
|
+
children: JSON.stringify(displayedContent, null, 2)
|
|
52
|
+
},
|
|
53
|
+
JSON.stringify(displayedContent)
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_DictionaryFieldEditor_SaveForm_SaveForm.SaveForm, { dictionary })
|
|
56
|
+
] });
|
|
57
|
+
};
|
|
58
|
+
exports.JSONEditor = JSONEditor;
|
|
59
|
+
//# sourceMappingURL=JSONEditor.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import { Dictionary } from '@intlayer/core';\nimport type { FC } from 'react';\nimport { ContentEditorTextArea } from '../ContentEditor/ContentEditorTextArea';\nimport { useEditedContentStore } from '../DictionaryEditor';\nimport { SaveForm } from './SaveForm/SaveForm';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary }) => {\n const { setEditedContent, editedContent } = useEditedContentStore((s) => ({\n editedContent: s.editedContent,\n setEditedContent: s.setEditedContent,\n }));\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 =\n editedContent[dictionary.key]?.content ?? dictionary?.content ?? {};\n\n return (\n <>\n <ContentEditorTextArea\n key={JSON.stringify(displayedContent)}\n onContentChange={(content) =>\n setEditedContent(dictionary.key, JSON.parse(content))\n }\n validate={isValidJSON}\n className=\"text-sm\"\n variant=\"default\"\n >\n {JSON.stringify(displayedContent, null, 2)}\n </ContentEditorTextArea>\n <SaveForm dictionary={dictionary} />\n </>\n );\n};\n"],"names":["useEditedContentStore","jsxs","Fragment","jsx","ContentEditorTextArea","SaveForm"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,aAAkC,CAAC,EAAE,iBAAiB;AACjE,QAAM,EAAE,kBAAkB,cAAkB,IAAAA,kDAAA,sBAAsB,CAAC,OAAO;AAAA,IACxE,eAAe,EAAE;AAAA,IACjB,kBAAkB,EAAE;AAAA,EACpB,EAAA;AAEI,QAAA,cAAc,CAAC,eAAgC;AAC/C,QAAA;AACF,WAAK,MAAM,UAAU;AACd,aAAA;AAAA,aACA,QAAQ;AACR,aAAA;AAAA,IACT;AAAA,EAAA;AAGI,QAAA,mBACJ,cAAc,WAAW,GAAG,GAAG,WAAW,YAAY,WAAW;AAEnE,SAEIC,2BAAA,kBAAA,KAAAC,uCAAA,EAAA,UAAA;AAAA,IAAAC,2BAAA,kBAAA;AAAA,MAACC,+CAAA;AAAA,MAAA;AAAA,QAEC,iBAAiB,CAAC,YAChB,iBAAiB,WAAW,KAAK,KAAK,MAAM,OAAO,CAAC;AAAA,QAEtD,UAAU;AAAA,QACV,WAAU;AAAA,QACV,SAAQ;AAAA,QAEP,UAAK,KAAA,UAAU,kBAAkB,MAAM,CAAC;AAAA,MAAA;AAAA,MARpC,KAAK,UAAU,gBAAgB;AAAA,IAStC;AAAA,IACAD,iDAACE,mDAAAA,YAAS,YAAwB;AAAA,EACpC,EAAA,CAAA;AAEJ;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAkC1C,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../jsx-runtime-DaNGiM0W.js";
|
|
2
|
+
import { ContentEditorTextArea } from "../ContentEditor/ContentEditorTextArea.mjs";
|
|
3
|
+
import { useEditedContentStore } from "../DictionaryEditor/useEditedContentStore.mjs";
|
|
4
|
+
import "../DictionaryEditor/useEditionPanelStore.mjs";
|
|
5
|
+
import "react";
|
|
6
|
+
import "@intlayer/core";
|
|
7
|
+
import "lucide-react";
|
|
8
|
+
import "clsx";
|
|
9
|
+
import "tailwind-merge";
|
|
10
|
+
import "../Button/Button.mjs";
|
|
11
|
+
import "../EditableField/EditableFieldInput.mjs";
|
|
12
|
+
import "../EditableField/EditableFieldTextArea.mjs";
|
|
13
|
+
import "react-intlayer";
|
|
14
|
+
import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
|
|
15
|
+
import "../../hooks/useAsync/useAsyncStateStore.mjs";
|
|
16
|
+
import "../../libs/intlayer-api/index.mjs";
|
|
17
|
+
import "@intlayer/config/client";
|
|
18
|
+
import "../Toaster/Toast.mjs";
|
|
19
|
+
import "@intlayer/dictionaries-entry";
|
|
20
|
+
import "deepmerge";
|
|
21
|
+
import "../Form/FormBase.mjs";
|
|
22
|
+
import "../Form/FormField.mjs";
|
|
23
|
+
import "../../Form-DhsgC7kB.js";
|
|
24
|
+
import "../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
|
|
25
|
+
import "zod";
|
|
26
|
+
import { SaveForm } from "./SaveForm/SaveForm.mjs";
|
|
27
|
+
const JSONEditor = ({ dictionary }) => {
|
|
28
|
+
const { setEditedContent, editedContent } = useEditedContentStore((s) => ({
|
|
29
|
+
editedContent: s.editedContent,
|
|
30
|
+
setEditedContent: s.setEditedContent
|
|
31
|
+
}));
|
|
32
|
+
const isValidJSON = (jsonString) => {
|
|
33
|
+
try {
|
|
34
|
+
JSON.parse(jsonString);
|
|
35
|
+
return true;
|
|
36
|
+
} catch (_error) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const displayedContent = editedContent[dictionary.key]?.content ?? dictionary?.content ?? {};
|
|
41
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
42
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43
|
+
ContentEditorTextArea,
|
|
44
|
+
{
|
|
45
|
+
onContentChange: (content) => setEditedContent(dictionary.key, JSON.parse(content)),
|
|
46
|
+
validate: isValidJSON,
|
|
47
|
+
className: "text-sm",
|
|
48
|
+
variant: "default",
|
|
49
|
+
children: JSON.stringify(displayedContent, null, 2)
|
|
50
|
+
},
|
|
51
|
+
JSON.stringify(displayedContent)
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SaveForm, { dictionary })
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
JSONEditor
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=JSONEditor.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONEditor.mjs","sources":["../../../src/components/DictionaryFieldEditor/JSONEditor.tsx"],"sourcesContent":["import { Dictionary } from '@intlayer/core';\nimport type { FC } from 'react';\nimport { ContentEditorTextArea } from '../ContentEditor/ContentEditorTextArea';\nimport { useEditedContentStore } from '../DictionaryEditor';\nimport { SaveForm } from './SaveForm/SaveForm';\n\ntype JSONEditorProps = {\n dictionary: Dictionary;\n};\n\nexport const JSONEditor: FC<JSONEditorProps> = ({ dictionary }) => {\n const { setEditedContent, editedContent } = useEditedContentStore((s) => ({\n editedContent: s.editedContent,\n setEditedContent: s.setEditedContent,\n }));\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 =\n editedContent[dictionary.key]?.content ?? dictionary?.content ?? {};\n\n return (\n <>\n <ContentEditorTextArea\n key={JSON.stringify(displayedContent)}\n onContentChange={(content) =>\n setEditedContent(dictionary.key, JSON.parse(content))\n }\n validate={isValidJSON}\n className=\"text-sm\"\n variant=\"default\"\n >\n {JSON.stringify(displayedContent, null, 2)}\n </ContentEditorTextArea>\n <SaveForm dictionary={dictionary} />\n </>\n );\n};\n"],"names":["jsxs","Fragment","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,aAAkC,CAAC,EAAE,iBAAiB;AACjE,QAAM,EAAE,kBAAkB,cAAkB,IAAA,sBAAsB,CAAC,OAAO;AAAA,IACxE,eAAe,EAAE;AAAA,IACjB,kBAAkB,EAAE;AAAA,EACpB,EAAA;AAEI,QAAA,cAAc,CAAC,eAAgC;AAC/C,QAAA;AACF,WAAK,MAAM,UAAU;AACd,aAAA;AAAA,aACA,QAAQ;AACR,aAAA;AAAA,IACT;AAAA,EAAA;AAGI,QAAA,mBACJ,cAAc,WAAW,GAAG,GAAG,WAAW,YAAY,WAAW;AAEnE,SAEIA,kCAAA,KAAAC,4BAAA,EAAA,UAAA;AAAA,IAAAC,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,iBAAiB,CAAC,YAChB,iBAAiB,WAAW,KAAK,KAAK,MAAM,OAAO,CAAC;AAAA,QAEtD,UAAU;AAAA,QACV,WAAU;AAAA,QACV,SAAQ;AAAA,QAEP,UAAK,KAAA,UAAU,kBAAkB,MAAM,CAAC;AAAA,MAAA;AAAA,MARpC,KAAK,UAAU,gBAAgB;AAAA,IAStC;AAAA,IACAA,sCAAC,YAAS,YAAwB;AAAA,EACpC,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("../../jsx-runtime-
|
|
3
|
+
const jsxRuntime = require("../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
const components_Breadcrumb_index = require("../Breadcrumb/index.cjs");
|
|
5
5
|
const KeyPathBreadcrumb = ({
|
|
6
6
|
keyPath,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("../../../jsx-runtime-
|
|
3
|
+
const jsxRuntime = require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
const client = require("@intlayer/config/client");
|
|
5
5
|
const core = require("@intlayer/core");
|
|
6
6
|
const lucideReact = require("lucide-react");
|
|
@@ -24,7 +24,7 @@ require("@intlayer/dictionaries-entry");
|
|
|
24
24
|
require("deepmerge");
|
|
25
25
|
require("../../Form/FormBase.cjs");
|
|
26
26
|
require("../../Form/FormField.cjs");
|
|
27
|
-
require("../../../Form-
|
|
27
|
+
require("../../../Form-BDcoNTLV.cjs");
|
|
28
28
|
require("../../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
|
|
29
29
|
require("zod");
|
|
30
30
|
const components_DictionaryFieldEditor_getIsEditableSection = require("../getIsEditableSection.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../../../jsx-runtime-
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../../jsx-runtime-DaNGiM0W.js";
|
|
2
2
|
import { getConfiguration } from "@intlayer/config/client";
|
|
3
3
|
import { isSameKeyPath, NodeType } from "@intlayer/core";
|
|
4
4
|
import { ChevronRight, Plus } from "lucide-react";
|
|
@@ -22,7 +22,7 @@ import "@intlayer/dictionaries-entry";
|
|
|
22
22
|
import "deepmerge";
|
|
23
23
|
import "../../Form/FormBase.mjs";
|
|
24
24
|
import "../../Form/FormField.mjs";
|
|
25
|
-
import "../../../Form-
|
|
25
|
+
import "../../../Form-DhsgC7kB.js";
|
|
26
26
|
import "../../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
|
|
27
27
|
import "zod";
|
|
28
28
|
import { getIsEditableSection } from "../getIsEditableSection.mjs";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("../../jsx-runtime-XHKiWCTo.cjs");
|
|
5
|
+
const require$$0 = require("react");
|
|
6
|
+
const components_Container_index = require("../Container/index.cjs");
|
|
7
|
+
const components_DictionaryEditor_useEditedContentStore = require("../DictionaryEditor/useEditedContentStore.cjs");
|
|
8
|
+
const components_DictionaryEditor_useEditionPanelStore = require("../DictionaryEditor/useEditionPanelStore.cjs");
|
|
9
|
+
require("@intlayer/core");
|
|
10
|
+
require("lucide-react");
|
|
11
|
+
require("clsx");
|
|
12
|
+
require("tailwind-merge");
|
|
13
|
+
require("../Button/Button.cjs");
|
|
14
|
+
require("../EditableField/EditableFieldInput.cjs");
|
|
15
|
+
require("../EditableField/EditableFieldTextArea.cjs");
|
|
16
|
+
require("react-intlayer");
|
|
17
|
+
require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
|
|
18
|
+
require("../../hooks/useAsync/useAsyncStateStore.cjs");
|
|
19
|
+
require("../../libs/intlayer-api/index.cjs");
|
|
20
|
+
require("@intlayer/config/client");
|
|
21
|
+
require("../Toaster/Toast.cjs");
|
|
22
|
+
require("@intlayer/dictionaries-entry");
|
|
23
|
+
require("deepmerge");
|
|
24
|
+
require("../Form/FormBase.cjs");
|
|
25
|
+
require("../Form/FormField.cjs");
|
|
26
|
+
require("../../Form-BDcoNTLV.cjs");
|
|
27
|
+
require("../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
|
|
28
|
+
require("zod");
|
|
29
|
+
const components_DictionaryFieldEditor_EditorView_EditorView = require("./EditorView/EditorView.cjs");
|
|
30
|
+
const components_DictionaryFieldEditor_KeyPathBreadcrumb = require("./KeyPathBreadcrumb.cjs");
|
|
31
|
+
const components_DictionaryFieldEditor_NavigationView_NavigationViewNode = require("./NavigationView/NavigationViewNode.cjs");
|
|
32
|
+
const components_DictionaryFieldEditor_SaveForm_SaveForm = require("./SaveForm/SaveForm.cjs");
|
|
33
|
+
const NodeEditor = ({ dictionary }) => {
|
|
34
|
+
const { content: dictionaryContent, key } = dictionary;
|
|
35
|
+
const { editedContent, dictionaryRecord, setDictionariesRecord } = components_DictionaryEditor_useEditedContentStore.useEditedContentStore((s) => ({
|
|
36
|
+
editedContent: s.editedContent,
|
|
37
|
+
dictionaryRecord: s.dictionariesRecord,
|
|
38
|
+
setDictionariesRecord: s.setDictionariesRecord
|
|
39
|
+
}));
|
|
40
|
+
const { focusedContent, setFocusedContentKeyPath } = components_DictionaryEditor_useEditionPanelStore.useEditionPanelStore(
|
|
41
|
+
(s) => ({
|
|
42
|
+
focusedContent: s.focusedContent,
|
|
43
|
+
setFocusedContentKeyPath: s.setFocusedContentKeyPath
|
|
44
|
+
})
|
|
45
|
+
);
|
|
46
|
+
const focusedKeyPath = focusedContent?.keyPath;
|
|
47
|
+
const section = editedContent[key]?.content ?? dictionaryContent;
|
|
48
|
+
require$$0.useEffect(() => {
|
|
49
|
+
if (dictionaryRecord[key]) return;
|
|
50
|
+
setDictionariesRecord({
|
|
51
|
+
[key]: dictionary
|
|
52
|
+
});
|
|
53
|
+
}, [dictionary, key, setDictionariesRecord, dictionaryRecord]);
|
|
54
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
|
|
55
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
56
|
+
components_DictionaryFieldEditor_KeyPathBreadcrumb.KeyPathBreadcrumb,
|
|
57
|
+
{
|
|
58
|
+
dictionaryKey: key,
|
|
59
|
+
keyPath: focusedKeyPath ?? [],
|
|
60
|
+
onClickKeyPath: setFocusedContentKeyPath
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex gap-2 max-md:flex-col", children: [
|
|
64
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
65
|
+
components_Container_index.Container,
|
|
66
|
+
{
|
|
67
|
+
border: true,
|
|
68
|
+
background: false,
|
|
69
|
+
className: "top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]",
|
|
70
|
+
roundedSize: "xl",
|
|
71
|
+
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
72
|
+
components_DictionaryFieldEditor_NavigationView_NavigationViewNode.NavigationViewNode,
|
|
73
|
+
{
|
|
74
|
+
keyPath: [],
|
|
75
|
+
section,
|
|
76
|
+
dictionaryKey: key
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "top-6 flex h-full flex-1 flex-col gap-6 md:sticky", children: [
|
|
82
|
+
(focusedKeyPath?.length ?? 0) > 0 && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
83
|
+
components_Container_index.Container,
|
|
84
|
+
{
|
|
85
|
+
border: true,
|
|
86
|
+
background: false,
|
|
87
|
+
className: "h-full flex-1 overflow-hidden",
|
|
88
|
+
roundedSize: "xl",
|
|
89
|
+
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_DictionaryFieldEditor_EditorView_EditorView.EditorView, { dictionary, dictionaryKey: key })
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_DictionaryFieldEditor_SaveForm_SaveForm.SaveForm, { dictionary })
|
|
93
|
+
] })
|
|
94
|
+
] })
|
|
95
|
+
] });
|
|
96
|
+
};
|
|
97
|
+
exports.NodeEditor = NodeEditor;
|
|
98
|
+
//# sourceMappingURL=NodeEditor.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeEditor.cjs","sources":["../../../src/components/DictionaryFieldEditor/NodeEditor.tsx"],"sourcesContent":["'use client';\n\nimport { Dictionary } from '@intlayer/core';\nimport { useEffect, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Container } from '../Container';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../DictionaryEditor';\nimport { EditorView } from './EditorView/EditorView';\nimport { KeyPathBreadcrumb } from './KeyPathBreadcrumb';\nimport { NavigationViewNode } from './NavigationView/NavigationViewNode';\nimport { SaveForm } from './SaveForm/SaveForm';\n\ntype NodeEditorProps = {\n dictionary: Dictionary;\n};\n\nexport const NodeEditor: FC<NodeEditorProps> = ({ dictionary }) => {\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\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 <>\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 </>\n );\n};\n"],"names":["useEditedContentStore","useEditionPanelStore","useEffect","jsxs","Fragment","jsx","KeyPathBreadcrumb","Container","NavigationViewNode","EditorView","SaveForm"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,aAAkC,CAAC,EAAE,iBAAiB;AACjE,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;AAEE,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;AAE7D,SAEIC,2BAAA,kBAAA,KAAAC,uCAAA,EAAA,UAAA;AAAA,IAAAC,2BAAA,kBAAA;AAAA,MAACC,mDAAA;AAAA,MAAA;AAAA,QACC,eAAe;AAAA,QACf,SAAS,kBAAkB,CAAC;AAAA,QAC5B,gBAAgB;AAAA,MAAA;AAAA,IAClB;AAAA,IACAH,2BAAAA,kBAAAA,KAAC,OAAI,EAAA,WAAU,8BACb,UAAA;AAAA,MAAAE,2BAAA,kBAAA;AAAA,QAACE,2BAAA;AAAA,QAAA;AAAA,UACC,QAAM;AAAA,UACN,YAAY;AAAA,UACZ,WAAU;AAAA,UACV,aAAY;AAAA,UAEZ,UAAAF,2BAAA,kBAAA;AAAA,YAACG,mEAAA;AAAA,YAAA;AAAA,cACC,SAAS,CAAC;AAAA,cACV;AAAA,cACA,eAAe;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MACF;AAAA,MACAL,2BAAAA,kBAAAA,KAAC,OAAI,EAAA,WAAU,qDACX,UAAA;AAAA,SAAgB,gBAAA,UAAU,KAAK,KAC/BE,2BAAA,kBAAA;AAAA,UAACE,2BAAA;AAAA,UAAA;AAAA,YACC,QAAM;AAAA,YACN,YAAY;AAAA,YACZ,WAAU;AAAA,YACV,aAAY;AAAA,YAEZ,UAACF,2BAAA,kBAAA,IAAAI,uDAAA,YAAA,EAAW,YAAwB,eAAe,KAAK;AAAA,UAAA;AAAA,QAC1D;AAAA,QAEFJ,iDAACK,mDAAAA,YAAS,YAAwB;AAAA,MAAA,GACpC;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeEditor.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/NodeEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAa,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAa3C,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAgE1C,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as jsxRuntimeExports } from "../../jsx-runtime-DaNGiM0W.js";
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
import { Container } from "../Container/index.mjs";
|
|
5
|
+
import { useEditedContentStore } from "../DictionaryEditor/useEditedContentStore.mjs";
|
|
6
|
+
import { useEditionPanelStore } from "../DictionaryEditor/useEditionPanelStore.mjs";
|
|
7
|
+
import "@intlayer/core";
|
|
8
|
+
import "lucide-react";
|
|
9
|
+
import "clsx";
|
|
10
|
+
import "tailwind-merge";
|
|
11
|
+
import "../Button/Button.mjs";
|
|
12
|
+
import "../EditableField/EditableFieldInput.mjs";
|
|
13
|
+
import "../EditableField/EditableFieldTextArea.mjs";
|
|
14
|
+
import "react-intlayer";
|
|
15
|
+
import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
|
|
16
|
+
import "../../hooks/useAsync/useAsyncStateStore.mjs";
|
|
17
|
+
import "../../libs/intlayer-api/index.mjs";
|
|
18
|
+
import "@intlayer/config/client";
|
|
19
|
+
import "../Toaster/Toast.mjs";
|
|
20
|
+
import "@intlayer/dictionaries-entry";
|
|
21
|
+
import "deepmerge";
|
|
22
|
+
import "../Form/FormBase.mjs";
|
|
23
|
+
import "../Form/FormField.mjs";
|
|
24
|
+
import "../../Form-DhsgC7kB.js";
|
|
25
|
+
import "../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
|
|
26
|
+
import "zod";
|
|
27
|
+
import { EditorView } from "./EditorView/EditorView.mjs";
|
|
28
|
+
import { KeyPathBreadcrumb } from "./KeyPathBreadcrumb.mjs";
|
|
29
|
+
import { NavigationViewNode } from "./NavigationView/NavigationViewNode.mjs";
|
|
30
|
+
import { SaveForm } from "./SaveForm/SaveForm.mjs";
|
|
31
|
+
const NodeEditor = ({ dictionary }) => {
|
|
32
|
+
const { content: dictionaryContent, key } = dictionary;
|
|
33
|
+
const { editedContent, dictionaryRecord, setDictionariesRecord } = useEditedContentStore((s) => ({
|
|
34
|
+
editedContent: s.editedContent,
|
|
35
|
+
dictionaryRecord: s.dictionariesRecord,
|
|
36
|
+
setDictionariesRecord: s.setDictionariesRecord
|
|
37
|
+
}));
|
|
38
|
+
const { focusedContent, setFocusedContentKeyPath } = useEditionPanelStore(
|
|
39
|
+
(s) => ({
|
|
40
|
+
focusedContent: s.focusedContent,
|
|
41
|
+
setFocusedContentKeyPath: s.setFocusedContentKeyPath
|
|
42
|
+
})
|
|
43
|
+
);
|
|
44
|
+
const focusedKeyPath = focusedContent?.keyPath;
|
|
45
|
+
const section = editedContent[key]?.content ?? dictionaryContent;
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (dictionaryRecord[key]) return;
|
|
48
|
+
setDictionariesRecord({
|
|
49
|
+
[key]: dictionary
|
|
50
|
+
});
|
|
51
|
+
}, [dictionary, key, setDictionariesRecord, dictionaryRecord]);
|
|
52
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
53
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
54
|
+
KeyPathBreadcrumb,
|
|
55
|
+
{
|
|
56
|
+
dictionaryKey: key,
|
|
57
|
+
keyPath: focusedKeyPath ?? [],
|
|
58
|
+
onClickKeyPath: setFocusedContentKeyPath
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-2 max-md:flex-col", children: [
|
|
62
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
63
|
+
Container,
|
|
64
|
+
{
|
|
65
|
+
border: true,
|
|
66
|
+
background: false,
|
|
67
|
+
className: "top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]",
|
|
68
|
+
roundedSize: "xl",
|
|
69
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70
|
+
NavigationViewNode,
|
|
71
|
+
{
|
|
72
|
+
keyPath: [],
|
|
73
|
+
section,
|
|
74
|
+
dictionaryKey: key
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "top-6 flex h-full flex-1 flex-col gap-6 md:sticky", children: [
|
|
80
|
+
(focusedKeyPath?.length ?? 0) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
81
|
+
Container,
|
|
82
|
+
{
|
|
83
|
+
border: true,
|
|
84
|
+
background: false,
|
|
85
|
+
className: "h-full flex-1 overflow-hidden",
|
|
86
|
+
roundedSize: "xl",
|
|
87
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(EditorView, { dictionary, dictionaryKey: key })
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SaveForm, { dictionary })
|
|
91
|
+
] })
|
|
92
|
+
] })
|
|
93
|
+
] });
|
|
94
|
+
};
|
|
95
|
+
export {
|
|
96
|
+
NodeEditor
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=NodeEditor.mjs.map
|