@intlayer/design-system 3.5.6 → 3.5.8
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 +92 -168
- package/dist/Form-0D7KBafQ.cjs +311 -0
- package/dist/Form-0D7KBafQ.cjs.map +1 -0
- package/dist/Form-7BqwvjVI.cjs +320 -0
- package/dist/Form-7BqwvjVI.cjs.map +1 -0
- package/dist/Form-B2UufQRJ.cjs +319 -0
- package/dist/Form-B2UufQRJ.cjs.map +1 -0
- package/dist/Form-BDcoNTLV.cjs.map +1 -1
- package/dist/Form-BTogr-fp.js +312 -0
- package/dist/Form-BTogr-fp.js.map +1 -0
- package/dist/Form-BVkkvSKP.js +312 -0
- package/dist/Form-BVkkvSKP.js.map +1 -0
- package/dist/Form-Be6Uhb5-.js +312 -0
- package/dist/Form-Be6Uhb5-.js.map +1 -0
- package/dist/Form-BmQQnl-6.js +312 -0
- package/dist/Form-BmQQnl-6.js.map +1 -0
- package/dist/Form-Bp_ubH9I.cjs +311 -0
- package/dist/Form-Bp_ubH9I.cjs.map +1 -0
- package/dist/Form-BtqRbgLu.cjs +311 -0
- package/dist/Form-BtqRbgLu.cjs.map +1 -0
- package/dist/Form-COVZyto7.cjs +311 -0
- package/dist/Form-COVZyto7.cjs.map +1 -0
- package/dist/Form-CVD_3nCD.js +312 -0
- package/dist/Form-CVD_3nCD.js.map +1 -0
- package/dist/Form-Cfklj1_H.js +320 -0
- package/dist/Form-Cfklj1_H.js.map +1 -0
- package/dist/Form-ClAAiVNm.cjs +311 -0
- package/dist/Form-ClAAiVNm.cjs.map +1 -0
- package/dist/Form-DhsgC7kB.js.map +1 -1
- package/dist/Form-OK9zfg6E.js +321 -0
- package/dist/Form-OK9zfg6E.js.map +1 -0
- package/dist/components/Accordion/Accordion.cjs +7 -15
- package/dist/components/Accordion/Accordion.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.d.ts +0 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.mjs +8 -16
- package/dist/components/Accordion/Accordion.mjs.map +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +1 -1
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +1 -1
- package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.d.ts +4 -4
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +3 -3
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +1 -1
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +1 -1
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +1 -1
- package/dist/components/Auth/SignInForm/SignInForm.cjs +1 -1
- package/dist/components/Auth/SignInForm/SignInForm.mjs +1 -1
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs +1 -1
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs +1 -1
- package/dist/components/Auth/useAuth/useCSRF.cjs +2 -2
- package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -1
- package/dist/components/Auth/useAuth/useCSRF.d.ts +1 -1
- package/dist/components/Auth/useAuth/useCSRF.mjs +1 -1
- package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -1
- package/dist/components/Auth/useAuth/useOAuth2.cjs +2 -2
- package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -1
- package/dist/components/Auth/useAuth/useOAuth2.d.ts +1 -1
- package/dist/components/Auth/useAuth/useOAuth2.mjs +1 -1
- package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -1
- package/dist/components/Auth/useAuth/useSession.cjs +2 -2
- package/dist/components/Auth/useAuth/useSession.cjs.map +1 -1
- package/dist/components/Auth/useAuth/useSession.mjs +1 -1
- package/dist/components/Auth/useAuth/useSession.mjs.map +1 -1
- package/dist/components/Button/Button.cjs +47 -25
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.mjs +47 -25
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Container/index.cjs +1 -1
- package/dist/components/Container/index.cjs.map +1 -1
- package/dist/components/Container/index.mjs +1 -1
- package/dist/components/Container/index.mjs.map +1 -1
- package/dist/components/CopyToClipboard/index.cjs +1 -1
- package/dist/components/CopyToClipboard/index.cjs.map +1 -1
- package/dist/components/CopyToClipboard/index.d.ts.map +1 -1
- package/dist/components/CopyToClipboard/index.mjs +1 -1
- package/dist/components/CopyToClipboard/index.mjs.map +1 -1
- package/dist/components/DictionaryEditor/ItemLayout.cjs +0 -1
- package/dist/components/DictionaryEditor/ItemLayout.cjs.map +1 -1
- package/dist/components/DictionaryEditor/ItemLayout.d.ts.map +1 -1
- package/dist/components/DictionaryEditor/ItemLayout.mjs +0 -1
- package/dist/components/DictionaryEditor/ItemLayout.mjs.map +1 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +1 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +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 +2 -2
- 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 +2 -2
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +14 -13
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +15 -14
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +6 -10
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +6 -10
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeEditor.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/NodeEditor.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +2 -2
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +2 -2
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +1 -1
- package/dist/components/Form/Form.cjs +1 -1
- package/dist/components/Form/Form.d.ts +2 -0
- package/dist/components/Form/Form.d.ts.map +1 -1
- package/dist/components/Form/Form.mjs +1 -1
- package/dist/components/Form/elements/AutoSizeTextAreaElement.cjs +7 -0
- package/dist/components/Form/elements/AutoSizeTextAreaElement.cjs.map +1 -0
- package/dist/components/Form/elements/AutoSizeTextAreaElement.d.ts +9 -0
- package/dist/components/Form/elements/AutoSizeTextAreaElement.d.ts.map +1 -0
- package/dist/components/Form/elements/AutoSizeTextAreaElement.mjs +7 -0
- package/dist/components/Form/elements/AutoSizeTextAreaElement.mjs.map +1 -0
- package/dist/components/Form/elements/CheckboxElement.cjs +1 -1
- package/dist/components/Form/elements/CheckboxElement.mjs +1 -1
- package/dist/components/Form/elements/EditableFieldInputElement.cjs +1 -1
- package/dist/components/Form/elements/EditableFieldInputElement.mjs +1 -1
- package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +1 -1
- package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +1 -1
- package/dist/components/Form/elements/FormElement.cjs +1 -1
- package/dist/components/Form/elements/FormElement.mjs +1 -1
- package/dist/components/Form/elements/InputElement.cjs +1 -1
- package/dist/components/Form/elements/InputElement.mjs +1 -1
- package/dist/components/Form/elements/InputPasswordElement.cjs +1 -1
- package/dist/components/Form/elements/InputPasswordElement.mjs +1 -1
- package/dist/components/Form/elements/MultiselectElement.cjs +1 -1
- package/dist/components/Form/elements/MultiselectElement.mjs +1 -1
- package/dist/components/Form/elements/SelectElement.cjs +1 -1
- package/dist/components/Form/elements/SelectElement.mjs +1 -1
- package/dist/components/Form/elements/SwitchSelectorElement.cjs +1 -1
- package/dist/components/Form/elements/SwitchSelectorElement.mjs +1 -1
- package/dist/components/Form/elements/TextAreaElement.cjs +1 -1
- package/dist/components/Form/elements/TextAreaElement.mjs +1 -1
- 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 +1 -1
- package/dist/components/Form/layout/FormItemLayout.d.ts.map +1 -1
- package/dist/components/Form/layout/FormItemLayout.mjs +1 -1
- package/dist/components/Form/layout/index.cjs +1 -1
- package/dist/components/Form/layout/index.mjs +1 -1
- package/dist/components/IDE/Code.cjs +1 -1
- package/dist/components/IDE/Code.cjs.map +1 -1
- package/dist/components/IDE/Code.mjs +1 -1
- package/dist/components/IDE/Code.mjs.map +1 -1
- package/dist/components/IDE/CodeContext.cjs +1 -1
- package/dist/components/IDE/CodeContext.mjs +1 -1
- package/dist/components/Link/Link.cjs +3 -4
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/Link.mjs +3 -4
- package/dist/components/Link/Link.mjs.map +1 -1
- package/dist/components/Loader/index.cjs +6 -1
- package/dist/components/Loader/index.cjs.map +1 -1
- package/dist/components/Loader/index.content.cjs +23 -0
- package/dist/components/Loader/index.content.cjs.map +1 -0
- package/dist/components/Loader/index.content.d.ts +8 -0
- package/dist/components/Loader/index.content.d.ts.map +1 -0
- package/dist/components/Loader/index.content.mjs +23 -0
- package/dist/components/Loader/index.content.mjs.map +1 -0
- package/dist/components/Loader/index.d.ts +2 -2
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Loader/index.mjs +6 -1
- package/dist/components/Loader/index.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +1 -1
- package/dist/components/MarkDownRender/index.cjs +39 -4
- package/dist/components/MarkDownRender/index.cjs.map +1 -1
- package/dist/components/MarkDownRender/index.d.ts.map +1 -1
- package/dist/components/MarkDownRender/index.mjs +40 -5
- package/dist/components/MarkDownRender/index.mjs.map +1 -1
- package/dist/components/Modal/Modal.cjs +19 -11
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.mjs +20 -12
- package/dist/components/Modal/Modal.mjs.map +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/SwitchSelector/index.cjs +1 -1
- package/dist/components/SwitchSelector/index.mjs +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +1 -1
- package/dist/components/TabSelector/TabSelector.mjs +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/index.cjs +1 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -1
- package/dist/hooks/intlayerAPIHooks.cjs +2 -0
- package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.d.ts +50 -49
- package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
- package/dist/hooks/intlayerAPIHooks.mjs +2 -0
- package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.cjs +81 -78
- package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.d.ts +5 -25
- package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
- package/dist/hooks/useAsync/useAsync.mjs +81 -78
- package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.cjs +2 -2
- package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts +1 -1
- package/dist/hooks/useAsync/useAsyncStateStore.mjs +2 -2
- package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
- package/dist/hooks/useGetAllDictionaries.cjs +2 -2
- package/dist/hooks/useGetAllDictionaries.cjs.map +1 -1
- package/dist/hooks/useGetAllDictionaries.d.ts +1 -1
- package/dist/hooks/useGetAllDictionaries.d.ts.map +1 -1
- package/dist/hooks/useGetAllDictionaries.mjs +2 -2
- package/dist/hooks/useGetAllDictionaries.mjs.map +1 -1
- package/dist/hooks/useIntlayerAPI.cjs +2 -2
- package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
- package/dist/hooks/useIntlayerAPI.d.ts +59 -58
- package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
- package/dist/hooks/useIntlayerAPI.mjs +1 -1
- package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
- package/dist/hooks/usePersistedStore.cjs +7 -5
- package/dist/hooks/usePersistedStore.cjs.map +1 -1
- package/dist/hooks/usePersistedStore.d.ts.map +1 -1
- package/dist/hooks/usePersistedStore.mjs +7 -5
- package/dist/hooks/usePersistedStore.mjs.map +1 -1
- package/dist/index-DFc7og1d.cjs +671 -0
- package/dist/index-DFc7og1d.cjs.map +1 -0
- package/dist/index-DcWYZrJW.js +672 -0
- package/dist/index-DcWYZrJW.js.map +1 -0
- package/dist/libs/intlayer-api/ai.cjs +11 -1
- package/dist/libs/intlayer-api/ai.cjs.map +1 -1
- package/dist/libs/intlayer-api/ai.d.ts +3 -1
- package/dist/libs/intlayer-api/ai.d.ts.map +1 -1
- package/dist/libs/intlayer-api/ai.mjs +11 -1
- package/dist/libs/intlayer-api/ai.mjs.map +1 -1
- package/dist/libs/intlayer-api/index.d.ts +2 -0
- package/dist/libs/intlayer-api/index.d.ts.map +1 -1
- package/dist/tailwind.css +1 -1
- package/package.json +18 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationViewNode.mjs","sources":["../../../../src/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.tsx"],"sourcesContent":["import { getConfiguration } from '@intlayer/config/client';\nimport {\n type EnumerationContent,\n NodeType,\n type KeyPath,\n type DictionaryValue,\n isSameKeyPath,\n} from '@intlayer/core';\nimport { ChevronRight, Plus } from 'lucide-react';\nimport { useCallback, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { useShallow } from 'zustand/react/shallow';\nimport { camelCaseToSentence } from '../../../utils/camelCase';\nimport {\n getDictionaryValueByKeyPath,\n getSectionType,\n} from '../../../utils/dictionary';\nimport { Accordion } from '../../Accordion';\nimport { Button } from '../../Button';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../../DictionaryEditor';\nimport { getIsEditableSection } from '../getIsEditableSection';\nimport { navigationViewContent } from './navigationViewNode.content';\n\nexport const traceKeys: string[] = ['filePath', 'id', 'nodeType'];\n\nexport type NodeWrapperProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n section: DictionaryValue;\n};\n\nexport const NavigationViewNode: FC<NodeWrapperProps> = ({\n section: sectionProp,\n keyPath,\n dictionaryKey,\n}) => {\n const { locales } = getConfiguration().internationalization;\n const section = getDictionaryValueByKeyPath(sectionProp, keyPath);\n const addEditedContent = useEditedContentStore(\n useShallow((s) => s.addEditedContent)\n );\n const { setFocusedContentKeyPath, focusedContent } = useEditionPanelStore(\n useShallow((s) => ({\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n focusedContent: s.focusedContent,\n }))\n );\n const {\n addNewElement,\n addNewField,\n goToElement,\n goToField,\n goToEnumeration,\n goToTranslation,\n } = useDictionary(navigationViewContent);\n const nodeType = getSectionType(section);\n const isEditableSection = getIsEditableSection(section);\n const getIsSelected = useCallback(\n (keyPath: KeyPath[]) =>\n (focusedContent?.keyPath?.length ?? 0) > 0 &&\n isSameKeyPath(keyPath, focusedContent?.keyPath ?? []),\n [focusedContent?.keyPath]\n );\n\n if (isEditableSection) return <>-</>;\n\n if (!section) return <>-</>;\n\n if (typeof section === 'object') {\n if (nodeType === NodeType.ReactNode) {\n return <>React Node</>;\n }\n\n if (nodeType === NodeType.Translation) {\n return (\n <div className=\"flex flex-col justify-between gap-2\">\n {locales.map((translationKey) => {\n const childKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Translation, key: translationKey },\n ];\n const subSection = getDictionaryValueByKeyPath(\n sectionProp,\n childKeyPath\n );\n const isEditableSubSection = getIsEditableSection(subSection);\n\n if (isEditableSubSection) {\n return (\n <Button\n label={`${goToTranslation.label} ${translationKey}`}\n key={translationKey}\n isActive={getIsSelected(childKeyPath)}\n variant=\"hoverable\"\n color=\"text\"\n className=\"w-full\"\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n IconRight={ChevronRight}\n >\n {translationKey}\n </Button>\n );\n }\n\n return (\n <Accordion\n key={translationKey}\n identifier={translationKey}\n label={`${goToTranslation.label} ${translationKey}`}\n isActive={getIsSelected(childKeyPath)}\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n header={translationKey}\n >\n <div className=\"flex w-full max-w-full\">\n <div className=\"flex-1 pl-10\">\n <NavigationViewNode\n keyPath={childKeyPath}\n section={sectionProp}\n dictionaryKey={dictionaryKey}\n />\n </div>\n </div>\n </Accordion>\n );\n })}\n </div>\n );\n }\n\n if (nodeType === NodeType.Enumeration) {\n return (\n <div className=\"flex flex-col justify-between gap-2\">\n {Object.keys(\n (section as EnumerationContent<DictionaryValue>)[\n NodeType.Enumeration\n ]\n ).map((key) => {\n const childKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Enumeration, key },\n ];\n const subSection = getDictionaryValueByKeyPath(\n sectionProp,\n childKeyPath\n );\n const isEditableSubSection = getIsEditableSection(subSection);\n\n if (isEditableSubSection) {\n return (\n <Button\n label={`${goToEnumeration.label} ${key}`}\n key={key}\n isActive={getIsSelected(childKeyPath)}\n variant=\"hoverable\"\n color=\"text\"\n className=\"w-full\"\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n IconRight={ChevronRight}\n >\n {key}\n </Button>\n );\n }\n\n return (\n <Accordion\n key={key}\n identifier={key}\n label={`${goToEnumeration.label} ${key}`}\n isActive={getIsSelected(childKeyPath)}\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n header={key}\n >\n <div className=\"flex w-full max-w-full\">\n <div className=\"flex-1 pl-10\">\n <NavigationViewNode\n keyPath={childKeyPath}\n section={sectionProp}\n dictionaryKey={dictionaryKey}\n />\n </div>\n </div>\n </Accordion>\n );\n })}\n </div>\n );\n }\n\n if (nodeType === NodeType.Array) {\n return (\n <div className=\"flex flex-col justify-between gap-2\">\n {(section as DictionaryValue[]).map((subSection, index) => {\n const childKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Array, key: index },\n ];\n\n const isEditableSubSection = getIsEditableSection(subSection);\n\n if (isEditableSubSection) {\n return (\n <Button\n label={`${goToElement.label} ${index}`}\n key={`${index}`}\n isActive={getIsSelected(childKeyPath)}\n variant=\"hoverable\"\n color=\"text\"\n className=\"w-full\"\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n IconRight={ChevronRight}\n >\n {index}\n </Button>\n );\n }\n\n return (\n <Accordion\n key={`${index}`}\n identifier={`${index}`}\n label={`${goToElement.label} ${index}`}\n isActive={getIsSelected(childKeyPath)}\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n header={index}\n >\n <div className=\"flex w-full max-w-full\">\n <div className=\"flex-1 pl-10\">\n <NavigationViewNode\n keyPath={childKeyPath}\n section={sectionProp}\n dictionaryKey={dictionaryKey}\n />\n </div>\n </div>\n </Accordion>\n );\n })}\n\n <Button\n label={addNewElement.label}\n variant=\"hoverable\"\n color=\"neutral\"\n textAlign=\"left\"\n onClick={() => {\n const newKeyPath: KeyPath[] = [\n ...keyPath,\n {\n type: NodeType.Array,\n key: (section as DictionaryValue[]).length,\n },\n ];\n addEditedContent(dictionaryKey, {}, newKeyPath, false);\n setFocusedContentKeyPath(newKeyPath);\n }}\n Icon={Plus}\n >\n {addNewElement.text}\n </Button>\n </div>\n );\n }\n\n const sectionArray = Object.keys(section);\n return (\n <div className=\"flex w-full max-w-full flex-col justify-between gap-2\">\n {sectionArray.map((key) => {\n const childKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Object, key },\n ];\n const subSection = getDictionaryValueByKeyPath(\n sectionProp,\n childKeyPath\n );\n const isEditableSubSection = getIsEditableSection(subSection);\n\n if (isEditableSubSection) {\n return (\n <Button\n label={`${goToField.label} ${key}`}\n key={key}\n isActive={getIsSelected(childKeyPath)}\n variant=\"hoverable\"\n color=\"text\"\n className=\"w-full\"\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n IconRight={ChevronRight}\n >\n {camelCaseToSentence(key)}\n </Button>\n );\n }\n\n return (\n <Accordion\n key={key}\n identifier={key}\n label={`${goToField.label} ${key}`}\n isActive={getIsSelected(childKeyPath)}\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n header={camelCaseToSentence(key)}\n >\n <div className=\"flex w-full max-w-full\">\n <div className=\"flex-1 pl-10\">\n <NavigationViewNode\n keyPath={childKeyPath}\n section={sectionProp}\n dictionaryKey={dictionaryKey}\n />\n </div>\n </div>\n </Accordion>\n );\n })}\n\n <Button\n label={addNewField.label}\n variant=\"hoverable\"\n color=\"neutral\"\n textAlign=\"left\"\n onClick={() => {\n const newKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Object, key: 'newField' },\n ];\n addEditedContent(dictionaryKey, {}, newKeyPath, false);\n setFocusedContentKeyPath(newKeyPath);\n }}\n Icon={Plus}\n >\n {addNewField.text}\n </Button>\n </div>\n );\n }\n\n return (\n <>\n Error loading section --\n {nodeType}\n --\n {JSON.stringify(section)}\n --\n {JSON.stringify(keyPath)}\n </>\n );\n};\n"],"names":["keyPath","jsx","Fragment","jsxs"],"mappings":";;;;;;;;;;;;;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C;AACA,6BAAiB,eAAe,IAAI,YAAY,KAAK;AACrD,qCAAyB,UAAU;AAAA,UACrC;AAAA,UACA,MAAM;AAAA,UAEL,UAAY,YAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACf,GACF;AAAA,EAAA;AAIJ,SACIE,kCAAA,KAAAD,4BAAA,EAAA,UAAA;AAAA,IAAA;AAAA,IAEC;AAAA,IAAS;AAAA,IAET,KAAK,UAAU,OAAO;AAAA,IAAE;AAAA,IAExB,KAAK,UAAU,OAAO;AAAA,EAAA,GACzB;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"NavigationViewNode.mjs","sources":["../../../../src/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.tsx"],"sourcesContent":["import { getConfiguration } from '@intlayer/config/client';\nimport {\n type EnumerationContent,\n NodeType,\n type KeyPath,\n type DictionaryValue,\n isSameKeyPath,\n} from '@intlayer/core';\nimport { ChevronRight, Plus } from 'lucide-react';\nimport { useCallback, type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { useShallow } from 'zustand/react/shallow';\nimport { camelCaseToSentence } from '../../../utils/camelCase';\nimport {\n getDictionaryValueByKeyPath,\n getSectionType,\n} from '../../../utils/dictionary';\nimport { Accordion } from '../../Accordion';\nimport { Button } from '../../Button';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../../DictionaryEditor';\nimport { getIsEditableSection } from '../getIsEditableSection';\nimport { navigationViewContent } from './navigationViewNode.content';\n\nexport const traceKeys: string[] = ['filePath', 'id', 'nodeType'];\n\nexport type NodeWrapperProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n section: DictionaryValue;\n};\n\nexport const NavigationViewNode: FC<NodeWrapperProps> = ({\n section: sectionProp,\n keyPath,\n dictionaryKey,\n}) => {\n const { locales } = getConfiguration().internationalization;\n const section = getDictionaryValueByKeyPath(sectionProp, keyPath);\n const addEditedContent = useEditedContentStore(\n useShallow((s) => s.addEditedContent)\n );\n const { setFocusedContentKeyPath, focusedContent } = useEditionPanelStore(\n useShallow((s) => ({\n setFocusedContentKeyPath: s.setFocusedContentKeyPath,\n focusedContent: s.focusedContent,\n }))\n );\n const {\n addNewElement,\n addNewField,\n goToElement,\n goToField,\n goToEnumeration,\n goToTranslation,\n } = useDictionary(navigationViewContent);\n const nodeType = getSectionType(section);\n const isEditableSection = getIsEditableSection(section);\n const getIsSelected = useCallback(\n (keyPath: KeyPath[]) =>\n (focusedContent?.keyPath?.length ?? 0) > 0 &&\n isSameKeyPath(keyPath, focusedContent?.keyPath ?? []),\n [focusedContent?.keyPath]\n );\n\n if (isEditableSection) return <>-</>;\n\n if (!section) return <>-</>;\n\n if (typeof section === 'object') {\n if (nodeType === NodeType.ReactNode) {\n return <>React Node</>;\n }\n\n if (nodeType === NodeType.Translation) {\n return (\n <div className=\"flex flex-col justify-between gap-2\">\n {locales.map((translationKey) => {\n const childKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Translation, key: translationKey },\n ];\n const subSection = getDictionaryValueByKeyPath(\n sectionProp,\n childKeyPath\n );\n const isEditableSubSection = getIsEditableSection(subSection);\n\n if (isEditableSubSection) {\n return (\n <Button\n label={`${goToTranslation.label} ${translationKey}`}\n key={translationKey}\n isActive={getIsSelected(childKeyPath)}\n variant=\"hoverable\"\n color=\"text\"\n className=\"w-full\"\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n IconRight={ChevronRight}\n >\n {translationKey}\n </Button>\n );\n }\n\n return (\n <Accordion\n key={translationKey}\n label={`${goToTranslation.label} ${translationKey}`}\n isActive={getIsSelected(childKeyPath)}\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n header={translationKey}\n >\n <div className=\"mt-2 flex w-full max-w-full\">\n <div className=\"flex-1 pl-10\">\n <NavigationViewNode\n keyPath={childKeyPath}\n section={sectionProp}\n dictionaryKey={dictionaryKey}\n />\n </div>\n </div>\n </Accordion>\n );\n })}\n </div>\n );\n }\n\n if (nodeType === NodeType.Enumeration) {\n return (\n <div className=\"flex flex-col justify-between gap-2\">\n {Object.keys(\n (section as EnumerationContent<DictionaryValue>)[\n NodeType.Enumeration\n ]\n ).map((key) => {\n const childKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Enumeration, key },\n ];\n const subSection = getDictionaryValueByKeyPath(\n sectionProp,\n childKeyPath\n );\n const isEditableSubSection = getIsEditableSection(subSection);\n\n if (isEditableSubSection) {\n return (\n <Button\n label={`${goToEnumeration.label} ${key}`}\n key={key}\n isActive={getIsSelected(childKeyPath)}\n variant=\"hoverable\"\n color=\"text\"\n className=\"w-full\"\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n IconRight={ChevronRight}\n >\n {key}\n </Button>\n );\n }\n\n return (\n <Accordion\n key={key}\n label={`${goToEnumeration.label} ${key}`}\n isActive={getIsSelected(childKeyPath)}\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n header={key}\n >\n <div className=\"mt-2 flex w-full max-w-full\">\n <div className=\"flex-1 pl-10\">\n <NavigationViewNode\n keyPath={childKeyPath}\n section={sectionProp}\n dictionaryKey={dictionaryKey}\n />\n </div>\n </div>\n </Accordion>\n );\n })}\n </div>\n );\n }\n\n if (nodeType === NodeType.Array) {\n return (\n <div className=\"flex flex-col justify-between gap-2\">\n {(section as DictionaryValue[]).map((subSection, index) => {\n const childKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Array, key: index },\n ];\n\n const isEditableSubSection = getIsEditableSection(subSection);\n\n if (isEditableSubSection) {\n return (\n <Button\n label={`${goToElement.label} ${index}`}\n key={`${index}`}\n isActive={getIsSelected(childKeyPath)}\n variant=\"hoverable\"\n color=\"text\"\n className=\"w-full\"\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n IconRight={ChevronRight}\n >\n {index}\n </Button>\n );\n }\n\n return (\n <Accordion\n key={`${index}`}\n label={`${goToElement.label} ${index}`}\n isActive={getIsSelected(childKeyPath)}\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n header={index}\n >\n <div className=\"mt-2 flex w-full max-w-full\">\n <div className=\"flex-1 pl-10\">\n <NavigationViewNode\n keyPath={childKeyPath}\n section={sectionProp}\n dictionaryKey={dictionaryKey}\n />\n </div>\n </div>\n </Accordion>\n );\n })}\n\n <Button\n label={addNewElement.label}\n variant=\"hoverable\"\n color=\"neutral\"\n textAlign=\"left\"\n onClick={() => {\n const newKeyPath: KeyPath[] = [\n ...keyPath,\n {\n type: NodeType.Array,\n key: (section as DictionaryValue[]).length,\n },\n ];\n addEditedContent(dictionaryKey, {}, newKeyPath, false);\n setFocusedContentKeyPath(newKeyPath);\n }}\n Icon={Plus}\n >\n {addNewElement.text}\n </Button>\n </div>\n );\n }\n\n const sectionArray = Object.keys(section);\n return (\n <div className=\"flex w-full max-w-full flex-col justify-between gap-2\">\n {sectionArray.map((key) => {\n const childKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Object, key },\n ];\n const subSection = getDictionaryValueByKeyPath(\n sectionProp,\n childKeyPath\n );\n const isEditableSubSection = getIsEditableSection(subSection);\n\n if (isEditableSubSection) {\n return (\n <Button\n label={`${goToField.label} ${key}`}\n key={key}\n isActive={getIsSelected(childKeyPath)}\n variant=\"hoverable\"\n color=\"text\"\n className=\"w-full\"\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n IconRight={ChevronRight}\n >\n {camelCaseToSentence(key)}\n </Button>\n );\n }\n\n return (\n <Accordion\n key={key}\n label={`${goToField.label} ${key}`}\n isActive={getIsSelected(childKeyPath)}\n onClick={() => setFocusedContentKeyPath(childKeyPath)}\n header={camelCaseToSentence(key)}\n >\n <div className=\"mt-2 flex w-full max-w-full\">\n <div className=\"flex-1 pl-10\">\n <NavigationViewNode\n keyPath={childKeyPath}\n section={sectionProp}\n dictionaryKey={dictionaryKey}\n />\n </div>\n </div>\n </Accordion>\n );\n })}\n\n <Button\n label={addNewField.label}\n variant=\"hoverable\"\n color=\"neutral\"\n textAlign=\"left\"\n onClick={() => {\n const newKeyPath: KeyPath[] = [\n ...keyPath,\n { type: NodeType.Object, key: 'newField' },\n ];\n addEditedContent(dictionaryKey, {}, newKeyPath, false);\n setFocusedContentKeyPath(newKeyPath);\n }}\n Icon={Plus}\n >\n {addNewField.text}\n </Button>\n </div>\n );\n }\n\n return (\n <>\n Error loading section --\n {nodeType}\n --\n {JSON.stringify(section)}\n --\n {JSON.stringify(keyPath)}\n </>\n );\n};\n"],"names":["keyPath","jsx","Fragment","jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BO,MAAM,YAAsB,CAAC,YAAY,MAAM,UAAU;AAQzD,MAAM,qBAA2C,CAAC;AAAA,EACvD,SAAS;AAAA,EACT;AAAA,EACA;AACF,MAAM;AACJ,QAAM,EAAE,QAAA,IAAY,iBAAA,EAAmB;AACjC,QAAA,UAAU,4BAA4B,aAAa,OAAO;AAChE,QAAM,mBAAmB;AAAA,IACvB,WAAW,CAAC,MAAM,EAAE,gBAAgB;AAAA,EACtC;AACM,QAAA,EAAE,0BAA0B,eAAA,IAAmB;AAAA,IACnD,WAAW,CAAC,OAAO;AAAA,MACjB,0BAA0B,EAAE;AAAA,MAC5B,gBAAgB,EAAE;AAAA,IAAA,EAClB;AAAA,EACJ;AACM,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,cAAc,qBAAqB;AACjC,QAAA,WAAW,eAAe,OAAO;AACjC,QAAA,oBAAoB,qBAAqB,OAAO;AACtD,QAAM,gBAAgB;AAAA,IACpB,CAACA,cACE,gBAAgB,SAAS,UAAU,KAAK,KACzC,cAAcA,UAAS,gBAAgB,WAAW,CAAA,CAAE;AAAA,IACtD,CAAC,gBAAgB,OAAO;AAAA,EAC1B;AAEI,MAAA,kBAA0B,QAAAC,kCAAA,IAAAC,kBAAA,UAAA,EAAE,UAAC,KAAA;AAEjC,MAAI,CAAC,QAAgB,QAAAD,kCAAA,IAAAC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DA,kCAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,OAAO,YAAY;AAAA,UACnB,SAAQ;AAAA,UACR,OAAM;AAAA,UACN,WAAU;AAAA,UACV,SAAS,MAAM;AACb,kBAAM,aAAwB;AAAA,cAC5B,GAAG;AAAA,cACH,EAAE,MAAM,SAAS,QAAQ,KAAK,WAAW;AAAA,YAC3C;AACA,6BAAiB,eAAe,IAAI,YAAY,KAAK;AACrD,qCAAyB,UAAU;AAAA,UACrC;AAAA,UACA,MAAM;AAAA,UAEL,UAAY,YAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACf,GACF;AAAA,EAAA;AAIJ,SACIE,kCAAA,KAAAD,4BAAA,EAAA,UAAA;AAAA,IAAA;AAAA,IAEC;AAAA,IAAS;AAAA,IAET,KAAK,UAAU,OAAO;AAAA,IAAE;AAAA,IAExB,KAAK,UAAU,OAAO;AAAA,EAAA,GACzB;AAEJ;"}
|
|
@@ -17,14 +17,14 @@ require("../EditableField/EditableFieldTextArea.cjs");
|
|
|
17
17
|
require("react-intlayer");
|
|
18
18
|
require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
|
|
19
19
|
require("../../hooks/useAsync/useAsyncStateStore.cjs");
|
|
20
|
-
require("../../
|
|
20
|
+
require("../../index-DFc7og1d.cjs");
|
|
21
21
|
require("@intlayer/config/client");
|
|
22
22
|
require("../Toaster/Toast.cjs");
|
|
23
23
|
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-7BqwvjVI.cjs");
|
|
28
28
|
require("../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
|
|
29
29
|
require("zod");
|
|
30
30
|
const components_LocaleSwitcherContentDropDown_LocaleSwitcherContent = require("../LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs");
|
|
@@ -15,14 +15,14 @@ import "../EditableField/EditableFieldTextArea.mjs";
|
|
|
15
15
|
import "react-intlayer";
|
|
16
16
|
import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
|
|
17
17
|
import "../../hooks/useAsync/useAsyncStateStore.mjs";
|
|
18
|
-
import "../../
|
|
18
|
+
import "../../index-DcWYZrJW.js";
|
|
19
19
|
import "@intlayer/config/client";
|
|
20
20
|
import "../Toaster/Toast.mjs";
|
|
21
21
|
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-OK9zfg6E.js";
|
|
26
26
|
import "../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
|
|
27
27
|
import "zod";
|
|
28
28
|
import { LocaleSwitcherContent } from "../LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs";
|
|
@@ -18,13 +18,13 @@ require("../EditableField/EditableFieldInput.cjs");
|
|
|
18
18
|
require("../EditableField/EditableFieldTextArea.cjs");
|
|
19
19
|
require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
|
|
20
20
|
require("../../hooks/useAsync/useAsyncStateStore.cjs");
|
|
21
|
-
require("../../
|
|
21
|
+
require("../../index-DFc7og1d.cjs");
|
|
22
22
|
require("../Toaster/Toast.cjs");
|
|
23
23
|
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-7BqwvjVI.cjs");
|
|
28
28
|
require("../DictionaryEditor/validDictionaryChangeButtons.content.cjs");
|
|
29
29
|
require("zod");
|
|
30
30
|
require("../Select/Multiselect.cjs");
|
|
@@ -16,13 +16,13 @@ import "../EditableField/EditableFieldInput.mjs";
|
|
|
16
16
|
import "../EditableField/EditableFieldTextArea.mjs";
|
|
17
17
|
import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
|
|
18
18
|
import "../../hooks/useAsync/useAsyncStateStore.mjs";
|
|
19
|
-
import "../../
|
|
19
|
+
import "../../index-DcWYZrJW.js";
|
|
20
20
|
import "../Toaster/Toast.mjs";
|
|
21
21
|
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-OK9zfg6E.js";
|
|
26
26
|
import "../DictionaryEditor/validDictionaryChangeButtons.content.mjs";
|
|
27
27
|
import "zod";
|
|
28
28
|
import "../Select/Multiselect.mjs";
|
|
@@ -7,12 +7,12 @@ const lucideReact = require("lucide-react");
|
|
|
7
7
|
const require$$0 = require("react");
|
|
8
8
|
const reactIntlayer = require("react-intlayer");
|
|
9
9
|
const shallow = require("../../../shallow-lhDIFtEp.cjs");
|
|
10
|
-
require("../../../
|
|
10
|
+
require("../../../index-DFc7og1d.cjs");
|
|
11
11
|
require("../../Button/Button.cjs");
|
|
12
12
|
require("../../Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs");
|
|
13
13
|
const components_Form_FormBase = require("../../Form/FormBase.cjs");
|
|
14
14
|
require("../../Form/FormField.cjs");
|
|
15
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
15
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
16
16
|
require("../../Auth/SignInForm/signIn.content.cjs");
|
|
17
17
|
require("zod");
|
|
18
18
|
require("../../Auth/SignInForm/useSignInSchema.content.cjs");
|
|
@@ -5,12 +5,12 @@ import { WandSparkles, RotateCcw, ArrowUpFromLine, Save } from "lucide-react";
|
|
|
5
5
|
import { useMemo, useCallback } from "react";
|
|
6
6
|
import { useDictionary } from "react-intlayer";
|
|
7
7
|
import { u as useShallow } from "../../../shallow-m9BpCkKh.js";
|
|
8
|
-
import "../../../
|
|
8
|
+
import "../../../index-DcWYZrJW.js";
|
|
9
9
|
import "../../Button/Button.mjs";
|
|
10
10
|
import "../../Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs";
|
|
11
11
|
import { useForm } from "../../Form/FormBase.mjs";
|
|
12
12
|
import "../../Form/FormField.mjs";
|
|
13
|
-
import { F as Form } from "../../../Form-
|
|
13
|
+
import { F as Form } from "../../../Form-OK9zfg6E.js";
|
|
14
14
|
import "../../Auth/SignInForm/signIn.content.mjs";
|
|
15
15
|
import "zod";
|
|
16
16
|
import "../../Auth/SignInForm/useSignInSchema.content.mjs";
|
package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const jsxRuntime = require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
|
5
5
|
const require$$0 = require("react");
|
|
6
6
|
require("../../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
|
|
7
7
|
require("../../../hooks/useAsync/useAsyncStateStore.cjs");
|
|
8
|
-
require("../../../
|
|
8
|
+
require("../../../index-DFc7og1d.cjs");
|
|
9
9
|
require("@intlayer/config/client");
|
|
10
10
|
require("../../Toaster/Toast.cjs");
|
|
11
11
|
require("@intlayer/dictionaries-entry");
|
package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { j as jsxRuntimeExports } from "../../../jsx-runtime-DaNGiM0W.js";
|
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
import "../../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
|
|
5
5
|
import "../../../hooks/useAsync/useAsyncStateStore.mjs";
|
|
6
|
-
import "../../../
|
|
6
|
+
import "../../../index-DcWYZrJW.js";
|
|
7
7
|
import "@intlayer/config/client";
|
|
8
8
|
import "../../Toaster/Toast.mjs";
|
|
9
9
|
import "@intlayer/dictionaries-entry";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../Button/Button.cjs");
|
|
4
|
-
const components_Form_layout_FormItemLayout = require("../../Form-
|
|
4
|
+
const components_Form_layout_FormItemLayout = require("../../Form-7BqwvjVI.cjs");
|
|
5
5
|
require("./FormBase.cjs");
|
|
6
6
|
require("./FormControl.cjs");
|
|
7
7
|
require("./FormDescription.cjs");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from '../Button';
|
|
2
2
|
import { FormElement, InputElement, InputPasswordElement, TextAreaElement } from './elements';
|
|
3
|
+
import { AutoSizedTextAreaElement } from './elements/AutoSizeTextAreaElement';
|
|
3
4
|
import { CheckboxElement } from './elements/CheckboxElement';
|
|
4
5
|
import { EditableFieldInputElement } from './elements/EditableFieldInputElement';
|
|
5
6
|
import { EditableFieldTextAreaElement } from './elements/EditableFieldTextAreaElement';
|
|
@@ -26,6 +27,7 @@ type FormType = typeof FormRoot & {
|
|
|
26
27
|
InputPassword: typeof InputPasswordElement;
|
|
27
28
|
Checkbox: typeof CheckboxElement;
|
|
28
29
|
TextArea: typeof TextAreaElement;
|
|
30
|
+
AutoSizedTextArea: typeof AutoSizedTextAreaElement;
|
|
29
31
|
MultiSelect: typeof MultiSelectElement;
|
|
30
32
|
Select: typeof SelectElement;
|
|
31
33
|
EditableFieldInput: typeof EditableFieldInputElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,eAAe,EAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCA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,EAAE,OAAO,QAAQ,CAAC;IACtB,KAAK,EAAE,OAAO,eAAe,CAAC;IAC9B,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,KAAK,EAAE,OAAO,YAAY,CAAC;IAC3B,aAAa,EAAE,OAAO,oBAAoB,CAAC;IAC3C,QAAQ,EAAE,OAAO,eAAe,CAAC;IACjC,QAAQ,EAAE,OAAO,eAAe,CAAC;IACjC,iBAAiB,EAAE,OAAO,wBAAwB,CAAC;IACnD,WAAW,EAAE,OAAO,kBAAkB,CAAC;IACvC,MAAM,EAAE,OAAO,aAAa,CAAC;IAC7B,kBAAkB,EAAE,OAAO,yBAAyB,CAAC;IACrD,qBAAqB,EAAE,OAAO,4BAA4B,CAAC;IAC3D,cAAc,EAAE,OAAO,qBAAqB,CAAC;CAC9C,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,IAAI,EAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
|
+
require("../../TextArea/AutoSizeTextArea.cjs");
|
|
5
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
6
|
+
exports.AutoSizedTextAreaElement = components_Form_layout_FormItemLayout.AutoSizedTextAreaElement;
|
|
7
|
+
//# sourceMappingURL=AutoSizeTextAreaElement.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoSizeTextAreaElement.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AutoSizedTextArea } from '../../TextArea/AutoSizeTextArea';
|
|
3
|
+
import { FormElementProps } from './FormElement';
|
|
4
|
+
type AutoSizedTextAreaElementsProps = Omit<FormElementProps<typeof AutoSizedTextArea>, 'Element'> & React.ComponentProps<typeof AutoSizedTextArea> & {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const AutoSizedTextAreaElement: FC<AutoSizedTextAreaElementsProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=AutoSizeTextAreaElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoSizeTextAreaElement.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/elements/AutoSizeTextAreaElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,KAAK,8BAA8B,GAAG,IAAI,CACxC,gBAAgB,CAAC,OAAO,iBAAiB,CAAC,EAC1C,SAAS,CACV,GACC,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEJ,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,8BAA8B,CASvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoSizeTextAreaElement.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -5,6 +5,6 @@ require("react");
|
|
|
5
5
|
require("../../Input/Input.cjs");
|
|
6
6
|
require("../../Input/InputPassword.cjs");
|
|
7
7
|
require("../../Input/Checkbox.cjs");
|
|
8
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
8
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
9
9
|
exports.CheckboxElement = components_Form_layout_FormItemLayout.CheckboxElement;
|
|
10
10
|
//# sourceMappingURL=CheckboxElement.cjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
require("../../EditableField/EditableFieldInput.cjs");
|
|
5
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
5
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
6
6
|
exports.EditableFieldInputElement = components_Form_layout_FormItemLayout.EditableFieldInputElement;
|
|
7
7
|
//# sourceMappingURL=EditableFieldInputElement.cjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
require("../../EditableField/EditableFieldTextArea.cjs");
|
|
5
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
5
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
6
6
|
exports.EditableFieldTextAreaElement = components_Form_layout_FormItemLayout.EditableFieldTextAreaElement;
|
|
7
7
|
//# sourceMappingURL=EditableFieldTextAreaElement.cjs.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
require("react-hook-form");
|
|
5
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
5
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
6
6
|
require("../FormField.cjs");
|
|
7
7
|
require("clsx");
|
|
8
8
|
require("tailwind-merge");
|
|
@@ -4,6 +4,6 @@ require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
|
4
4
|
require("../../Input/Input.cjs");
|
|
5
5
|
require("../../Input/InputPassword.cjs");
|
|
6
6
|
require("../../Input/Checkbox.cjs");
|
|
7
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
7
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
8
8
|
exports.InputElement = components_Form_layout_FormItemLayout.InputElement;
|
|
9
9
|
//# sourceMappingURL=InputElement.cjs.map
|
|
@@ -2,7 +2,7 @@ import "../../../jsx-runtime-DaNGiM0W.js";
|
|
|
2
2
|
import "../../Input/Input.mjs";
|
|
3
3
|
import "../../Input/InputPassword.mjs";
|
|
4
4
|
import "../../Input/Checkbox.mjs";
|
|
5
|
-
import { I } from "../../../Form-
|
|
5
|
+
import { I } from "../../../Form-OK9zfg6E.js";
|
|
6
6
|
export {
|
|
7
7
|
I as InputElement
|
|
8
8
|
};
|
|
@@ -4,6 +4,6 @@ require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
|
4
4
|
require("../../Input/Input.cjs");
|
|
5
5
|
require("../../Input/InputPassword.cjs");
|
|
6
6
|
require("../../Input/Checkbox.cjs");
|
|
7
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
7
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
8
8
|
exports.InputPasswordElement = components_Form_layout_FormItemLayout.InputPasswordElement;
|
|
9
9
|
//# sourceMappingURL=InputPasswordElement.cjs.map
|
|
@@ -2,7 +2,7 @@ import "../../../jsx-runtime-DaNGiM0W.js";
|
|
|
2
2
|
import "../../Input/Input.mjs";
|
|
3
3
|
import "../../Input/InputPassword.mjs";
|
|
4
4
|
import "../../Input/Checkbox.mjs";
|
|
5
|
-
import { b } from "../../../Form-
|
|
5
|
+
import { b } from "../../../Form-OK9zfg6E.js";
|
|
6
6
|
export {
|
|
7
7
|
b as InputPasswordElement
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
require("react-hook-form");
|
|
5
5
|
require("../../Select/Multiselect.cjs");
|
|
6
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
6
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
7
7
|
require("../FormField.cjs");
|
|
8
8
|
exports.MultiSelectElement = components_Form_layout_FormItemLayout.MultiSelectElement;
|
|
9
9
|
//# sourceMappingURL=MultiselectElement.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../jsx-runtime-DaNGiM0W.js";
|
|
2
2
|
import "react-hook-form";
|
|
3
3
|
import "../../Select/Multiselect.mjs";
|
|
4
|
-
import { M } from "../../../Form-
|
|
4
|
+
import { M } from "../../../Form-OK9zfg6E.js";
|
|
5
5
|
import "../FormField.mjs";
|
|
6
6
|
export {
|
|
7
7
|
M as MultiSelectElement
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
require("react-hook-form");
|
|
5
5
|
require("../../Select/Select.cjs");
|
|
6
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
6
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
7
7
|
require("../FormField.cjs");
|
|
8
8
|
exports.SelectElement = components_Form_layout_FormItemLayout.SelectElement;
|
|
9
9
|
//# sourceMappingURL=SelectElement.cjs.map
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
require("react-hook-form");
|
|
5
5
|
require("../../SwitchSelector/index.cjs");
|
|
6
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
6
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
7
7
|
require("../FormField.cjs");
|
|
8
8
|
exports.SwitchSelectorElement = components_Form_layout_FormItemLayout.SwitchSelectorElement;
|
|
9
9
|
//# sourceMappingURL=SwitchSelectorElement.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../jsx-runtime-DaNGiM0W.js";
|
|
2
2
|
import "react-hook-form";
|
|
3
3
|
import "../../SwitchSelector/index.mjs";
|
|
4
|
-
import { e } from "../../../Form-
|
|
4
|
+
import { e } from "../../../Form-OK9zfg6E.js";
|
|
5
5
|
import "../FormField.mjs";
|
|
6
6
|
export {
|
|
7
7
|
e as SwitchSelectorElement
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
4
|
require("../../TextArea/TextArea.cjs");
|
|
5
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
5
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
6
6
|
exports.TextAreaElement = components_Form_layout_FormItemLayout.TextAreaElement;
|
|
7
7
|
//# sourceMappingURL=TextAreaElement.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
3
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
4
4
|
exports.EditableFieldInputElement = components_Form_layout_FormItemLayout.EditableFieldInputElement;
|
|
5
5
|
exports.EditableFieldTextAreaElement = components_Form_layout_FormItemLayout.EditableFieldTextAreaElement;
|
|
6
6
|
exports.FormElement = components_Form_layout_FormItemLayout.FormElement;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const components_Form_FormBase = require("./FormBase.cjs");
|
|
4
4
|
const components_Form_FormField = require("./FormField.cjs");
|
|
5
|
-
const components_Form_layout_FormItemLayout = require("../../Form-
|
|
5
|
+
const components_Form_layout_FormItemLayout = require("../../Form-7BqwvjVI.cjs");
|
|
6
6
|
exports.useForm = components_Form_FormBase.useForm;
|
|
7
7
|
exports.useFormField = components_Form_FormField.useFormField;
|
|
8
8
|
exports.Form = components_Form_layout_FormItemLayout.Form;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../../../jsx-runtime-XHKiWCTo.cjs");
|
|
4
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
4
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
5
5
|
require("./FormLabelLayout.cjs");
|
|
6
6
|
exports.FormItemLayout = components_Form_layout_FormItemLayout.FormItemLayout;
|
|
7
7
|
//# sourceMappingURL=FormItemLayout.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormItemLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/layout/FormItemLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,GAAG;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"FormItemLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/layout/FormItemLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,GAAG;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA4BlD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const components_Form_layout_FormItemLayout = require("../../../Form-
|
|
3
|
+
const components_Form_layout_FormItemLayout = require("../../../Form-7BqwvjVI.cjs");
|
|
4
4
|
const components_Form_layout_FormLabelLayout = require("./FormLabelLayout.cjs");
|
|
5
5
|
exports.FormItemLayout = components_Form_layout_FormItemLayout.FormItemLayout;
|
|
6
6
|
exports.FormLabelLayout = components_Form_layout_FormLabelLayout.FormLabelLayout;
|
|
@@ -57,7 +57,7 @@ const Code = require$$0.forwardRef(
|
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
59
|
className: utils_cn.cn([
|
|
60
|
-
"absolute bottom-0 right-2 flex h-
|
|
60
|
+
"absolute bottom-0 right-2 flex h-7 items-center",
|
|
61
61
|
hadSelectInHeader && "h-11"
|
|
62
62
|
]),
|
|
63
63
|
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_IDE_CopyButton.CopyButton, { content: code })
|