@intlayer/design-system 5.0.2 → 5.0.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.
Files changed (60) hide show
  1. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts +150 -10
  2. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts.map +1 -1
  3. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts +120 -8
  4. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts.map +1 -1
  5. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +75 -5
  6. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts.map +1 -1
  7. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts +105 -7
  8. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts.map +1 -1
  9. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts +45 -3
  10. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts.map +1 -1
  11. package/dist/components/Auth/SignInForm/signIn.content.d.ts +195 -13
  12. package/dist/components/Auth/SignInForm/signIn.content.d.ts.map +1 -1
  13. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts +60 -4
  14. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts.map +1 -1
  15. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts +165 -11
  16. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts.map +1 -1
  17. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts +105 -7
  18. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts.map +1 -1
  19. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts +60 -4
  20. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts.map +1 -1
  21. package/dist/components/Breadcrumb/breadcrumb.content.d.ts +15 -1
  22. package/dist/components/Breadcrumb/breadcrumb.content.d.ts.map +1 -1
  23. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts +114 -8
  24. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -1
  25. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts +30 -2
  26. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts.map +1 -1
  27. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +195 -13
  28. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
  29. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +60 -4
  30. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -1
  31. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +387 -26
  32. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  33. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +180 -12
  34. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
  35. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +3 -3
  36. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
  37. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
  38. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +3 -3
  39. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
  40. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +165 -11
  41. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
  42. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +150 -10
  43. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  44. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +45 -3
  45. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts.map +1 -1
  46. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +60 -4
  47. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
  48. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts +105 -7
  49. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +1 -1
  50. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +135 -9
  51. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
  52. package/dist/components/IDE/CopyButton.content.d.ts +15 -1
  53. package/dist/components/IDE/CopyButton.content.d.ts.map +1 -1
  54. package/dist/components/Loader/index.content.d.ts +12 -1
  55. package/dist/components/Loader/index.content.d.ts.map +1 -1
  56. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +105 -7
  57. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts.map +1 -1
  58. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +75 -5
  59. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts.map +1 -1
  60. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"EditorView.cjs","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/EditorView.tsx"],"sourcesContent":["'use client';\n\nimport { type Locales } from '@intlayer/config';\nimport {\n type KeyPath,\n type Dictionary,\n getContentNodeByKeyPath,\n} from '@intlayer/core';\nimport { useFocusDictionary, useEditedContent } from '@intlayer/editor-react';\nimport { RotateCcw, X } from 'lucide-react';\nimport { useMemo, type FC } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport {\n camelCaseToSentence,\n sentenceToCamelCase,\n} from '../../../utils/camelCase';\nimport { Button } from '../../Button';\nimport { EditableFieldInput } from '../../EditableField';\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 locales: Locales[];\n};\n\nexport const EditorView: FC<EditorViewProps> = ({\n dictionaryKey,\n dictionary,\n locales,\n}) => {\n const { focusedContent, setFocusedContentKeyPath } = useFocusDictionary();\n const keyPath = focusedContent?.keyPath ?? [];\n const initialKeyName = keyPath[keyPath.length - 1]?.key ?? '';\n const { titleInput, deleteButton, nodeTypeSelector, restoreButton } =\n useDictionary(editorViewContent);\n const {\n editedContent,\n renameEditedContent,\n addEditedContent,\n removeEditedContent,\n } = useEditedContent();\n\n const editedSection = editedContent?.[dictionaryKey]?.content\n ? getContentNodeByKeyPath(editedContent?.[dictionaryKey].content, keyPath)\n : undefined;\n\n const dictionarySection = getContentNodeByKeyPath(\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 dictionary={dictionary}\n locales={locales}\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}\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}\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}\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":["useFocusDictionary","useDictionary","editorViewContent","useEditedContent","getContentNodeByKeyPath","useMemo","getIsEditableSection","sentenceToCamelCase","jsxs","Fragment","jsx","TextEditor","Label","EditableFieldInput","camelCaseToSentence","NodeTypeS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ACC,QAAQ,SAAS,KACfP,2BAAA,kBAAA,KAAA,OAAA,EAAI,WAAU,sBACZ,UAAA;AAAA,YACC,YAAAE,2BAAA,kBAAA;AAAA,cAACM,yBAAA;AAAA,cAAA;AAAA,gBACC,OAAO,cAAc;AAAA,gBACrB,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,MAAMC,YAAA;AAAA,gBACN,SAAS,MAAM,oBAAoB,eAAe,OAAO;AAAA,gBAExD,UAAc,cAAA;AAAA,cAAA;AAAA,YACjB;AAAA,YAEFP,2BAAA,kBAAA;AAAA,cAACM,yBAAA;AAAA,cAAA;AAAA,gBACC,OAAO,aAAa;AAAA,gBACpB,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,MAAME,YAAA;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,YAAA;AAAA,UAChB,EACF,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MA7DG,KAAK,UAAU,gBAAgB,OAAO;AAAA,IAiE7C,IAAAR,iDAAC,QAAK,EAAA,WAAU,MAAM,CAAA;AAAA,EAAA,GAE1B;AAEJ;;"}
1
+ {"version":3,"file":"EditorView.cjs","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/EditorView.tsx"],"sourcesContent":["'use client';\n\nimport { type Locales } from '@intlayer/config';\nimport {\n type KeyPath,\n type Dictionary,\n getContentNodeByKeyPath,\n} from '@intlayer/core';\nimport { useFocusDictionary, useEditedContent } from '@intlayer/editor-react';\nimport { RotateCcw, X } from 'lucide-react';\nimport { useMemo, type FC } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport {\n camelCaseToSentence,\n sentenceToCamelCase,\n} from '../../../utils/camelCase';\nimport { Button } from '../../Button';\nimport { EditableFieldInput } from '../../EditableField';\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 locales: Locales[];\n};\n\nexport const EditorView: FC<EditorViewProps> = ({\n dictionaryKey,\n dictionary,\n locales,\n}) => {\n const { focusedContent, setFocusedContentKeyPath } = useFocusDictionary();\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 } = useEditedContent();\n\n const editedSection = editedContent?.[dictionaryKey]?.content\n ? getContentNodeByKeyPath(editedContent?.[dictionaryKey].content, keyPath)\n : undefined;\n\n const dictionarySection = getContentNodeByKeyPath(\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 dictionary={dictionary}\n locales={locales}\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":["useFocusDictionary","useDictionary","editorViewContent","useEditedContent","getContentNodeByKeyPath","useMemo","getIsEditableSection","sentenceToCamelCase","jsxs","Fragment","jsx","TextEditor","Label","EditableFieldInput","camelCaseToSentence","NodeTypeSelector","Button","RotateCcw","X"],"mappings":";;;;;;;;;;;;;;;;;;AA8BO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AA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C,YAAAE,2BAAA,kBAAA;AAAA,cAACM,yBAAA;AAAA,cAAA;AAAA,gBACC,OAAO,cAAc,MAAM;AAAA,gBAC3B,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,MAAMC,YAAA;AAAA,gBACN,SAAS,MAAM,oBAAoB,eAAe,OAAO;AAAA,gBAExD,UAAc,cAAA;AAAA,cAAA;AAAA,YACjB;AAAA,YAEFP,2BAAA,kBAAA;AAAA,cAACM,yBAAA;AAAA,cAAA;AAAA,gBACC,OAAO,aAAa,MAAM;AAAA,gBAC1B,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,MAAME,YAAA;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,YAAA;AAAA,UAChB,EACF,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MA7DG,KAAK,UAAU,gBAAgB,OAAO;AAAA,IAiE7C,IAAAR,iDAAC,QAAK,EAAA,WAAU,MAAM,CAAA;AAAA,EAAA,GAE1B;AAEJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditorView.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/EditorView.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAEL,KAAK,UAAU,EAEhB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAczC,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,OAAO,EAAE,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAqI1C,CAAC"}
1
+ {"version":3,"file":"EditorView.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/EditorView.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAEL,KAAK,UAAU,EAEhB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAczC,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,OAAO,EAAE,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAsI1C,CAAC"}
@@ -76,7 +76,7 @@ const EditorView = ({
76
76
  {
77
77
  name: "key",
78
78
  "aria-label": "Key",
79
- placeholder: titleInput.placeholder,
79
+ placeholder: titleInput.placeholder.value,
80
80
  defaultValue: camelCaseToSentence(initialKeyName),
81
81
  onSave: (value) => handleRenameNodeKey(value),
82
82
  className: "h-8",
@@ -107,7 +107,7 @@ const EditorView = ({
107
107
  isEdited && /* @__PURE__ */ jsxRuntimeExports.jsx(
108
108
  Button,
109
109
  {
110
- label: restoreButton.label,
110
+ label: restoreButton.label.value,
111
111
  variant: "outline",
112
112
  color: "text-inverse",
113
113
  Icon: RotateCcw,
@@ -118,7 +118,7 @@ const EditorView = ({
118
118
  /* @__PURE__ */ jsxRuntimeExports.jsx(
119
119
  Button,
120
120
  {
121
- label: deleteButton.label,
121
+ label: deleteButton.label.value,
122
122
  variant: "outline",
123
123
  color: "error",
124
124
  Icon: X,
@@ -1 +1 @@
1
- {"version":3,"file":"EditorView.mjs","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/EditorView.tsx"],"sourcesContent":["'use client';\n\nimport { type Locales } from '@intlayer/config';\nimport {\n type KeyPath,\n type Dictionary,\n getContentNodeByKeyPath,\n} from '@intlayer/core';\nimport { useFocusDictionary, useEditedContent } from '@intlayer/editor-react';\nimport { RotateCcw, X } from 'lucide-react';\nimport { useMemo, type FC } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport {\n camelCaseToSentence,\n sentenceToCamelCase,\n} from '../../../utils/camelCase';\nimport { Button } from '../../Button';\nimport { EditableFieldInput } from '../../EditableField';\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 locales: Locales[];\n};\n\nexport const EditorView: FC<EditorViewProps> = ({\n dictionaryKey,\n dictionary,\n locales,\n}) => {\n const { focusedContent, setFocusedContentKeyPath } = useFocusDictionary();\n const keyPath = focusedContent?.keyPath ?? [];\n const initialKeyName = keyPath[keyPath.length - 1]?.key ?? '';\n const { titleInput, deleteButton, nodeTypeSelector, restoreButton } =\n useDictionary(editorViewContent);\n const {\n editedContent,\n renameEditedContent,\n addEditedContent,\n removeEditedContent,\n } = useEditedContent();\n\n const editedSection = editedContent?.[dictionaryKey]?.content\n ? getContentNodeByKeyPath(editedContent?.[dictionaryKey].content, keyPath)\n : undefined;\n\n const dictionarySection = getContentNodeByKeyPath(\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 dictionary={dictionary}\n locales={locales}\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}\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}\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}\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"],"mapp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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;AAAA,gBACpB,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,YAAA;AAAA,UAChB,EACF,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MA7DG,KAAK,UAAU,gBAAgB,OAAO;AAAA,IAiE7C,IAAAA,sCAAC,QAAK,EAAA,WAAU,MAAM,CAAA;AAAA,EAAA,GAE1B;AAEJ;"}
1
+ {"version":3,"file":"EditorView.mjs","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/EditorView.tsx"],"sourcesContent":["'use client';\n\nimport { type Locales } from '@intlayer/config';\nimport {\n type KeyPath,\n type Dictionary,\n getContentNodeByKeyPath,\n} from '@intlayer/core';\nimport { useFocusDictionary, useEditedContent } from '@intlayer/editor-react';\nimport { RotateCcw, X } from 'lucide-react';\nimport { useMemo, type FC } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport {\n camelCaseToSentence,\n sentenceToCamelCase,\n} from '../../../utils/camelCase';\nimport { Button } from '../../Button';\nimport { EditableFieldInput } from '../../EditableField';\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 locales: Locales[];\n};\n\nexport const EditorView: FC<EditorViewProps> = ({\n dictionaryKey,\n dictionary,\n locales,\n}) => {\n const { focusedContent, setFocusedContentKeyPath } = useFocusDictionary();\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 } = useEditedContent();\n\n const editedSection = editedContent?.[dictionaryKey]?.content\n ? getContentNodeByKeyPath(editedContent?.[dictionaryKey].content, keyPath)\n : undefined;\n\n const dictionarySection = getContentNodeByKeyPath(\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 dictionary={dictionary}\n locales={locales}\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":";;;;;;;;;;;;;;;;AA8BO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,EAAE,gBAAgB,yBAAyB,IAAI,mBAAmB;AAClE,QAAA,UAAU,gBAAgB,WAAW,CAAC;AAC5C,QAAM,iBAAiB,QAAQ,QAAQ,SAAS,CAAC,GAAG,OAAO;AAC3D,QAAM,EAAE,YAAY,cAAc,kBAAkB,cAAc,IAChE,cAAc,iBAAiB;AAE3B,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,iBAAiB;AAEf,QAAA,gBAAgB,gBAAgB,aAAa,GAAG,UAClD,wBAAwB,gB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AChB,EACF,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MA7DG,KAAK,UAAU,gBAAgB,OAAO;AAAA,IAiE7C,IAAAA,sCAAC,QAAK,EAAA,WAAU,MAAM,CAAA;AAAA,EAAA,GAE1B;AAEJ;"}
@@ -1,30 +1,184 @@
1
1
  export declare const navigationViewContent: {
2
2
  key: string;
3
3
  content: {
4
- tsxNotEditable: import('@intlayer/core').TranslationContent<string>;
4
+ tsxNotEditable: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
5
+ en: string;
6
+ 'en-GB': string;
7
+ fr: string;
8
+ es: string;
9
+ de: string;
10
+ ja: string;
11
+ ko: string;
12
+ zh: string;
13
+ it: string;
14
+ pt: string;
15
+ hi: string;
16
+ ar: string;
17
+ ru: string;
18
+ }>;
5
19
  goToField: {
6
- label: import('@intlayer/core').TranslationContent<string>;
20
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
21
+ en: string;
22
+ 'en-GB': string;
23
+ fr: string;
24
+ es: string;
25
+ de: string;
26
+ ja: string;
27
+ ko: string;
28
+ zh: string;
29
+ it: string;
30
+ pt: string;
31
+ hi: string;
32
+ ar: string;
33
+ ru: string;
34
+ }>;
7
35
  };
8
36
  addNewField: {
9
- label: import('@intlayer/core').TranslationContent<string>;
10
- text: import('@intlayer/core').TranslationContent<string>;
37
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
38
+ en: string;
39
+ 'en-GB': string;
40
+ fr: string;
41
+ es: string;
42
+ de: string;
43
+ ja: string;
44
+ ko: string;
45
+ zh: string;
46
+ it: string;
47
+ pt: string;
48
+ hi: string;
49
+ ar: string;
50
+ ru: string;
51
+ }>;
52
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
53
+ en: string;
54
+ 'en-GB': string;
55
+ fr: string;
56
+ es: string;
57
+ de: string;
58
+ ja: string;
59
+ ko: string;
60
+ zh: string;
61
+ it: string;
62
+ pt: string;
63
+ hi: string;
64
+ ar: string;
65
+ ru: string;
66
+ }>;
11
67
  };
12
68
  goToElement: {
13
- label: import('@intlayer/core').TranslationContent<string>;
69
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
70
+ en: string;
71
+ 'en-GB': string;
72
+ fr: string;
73
+ es: string;
74
+ de: string;
75
+ ja: string;
76
+ ko: string;
77
+ zh: string;
78
+ it: string;
79
+ pt: string;
80
+ hi: string;
81
+ ar: string;
82
+ ru: string;
83
+ }>;
14
84
  };
15
85
  addNewElement: {
16
- label: import('@intlayer/core').TranslationContent<string>;
17
- text: import('@intlayer/core').TranslationContent<string>;
86
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
87
+ en: string;
88
+ 'en-GB': string;
89
+ fr: string;
90
+ es: string;
91
+ de: string;
92
+ ja: string;
93
+ ko: string;
94
+ zh: string;
95
+ it: string;
96
+ pt: string;
97
+ hi: string;
98
+ ar: string;
99
+ ru: string;
100
+ }>;
101
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
102
+ en: string;
103
+ 'en-GB': string;
104
+ fr: string;
105
+ es: string;
106
+ de: string;
107
+ ja: string;
108
+ ko: string;
109
+ zh: string;
110
+ it: string;
111
+ pt: string;
112
+ hi: string;
113
+ ar: string;
114
+ ru: string;
115
+ }>;
18
116
  };
19
117
  goToTranslation: {
20
- label: import('@intlayer/core').TranslationContent<string>;
118
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
119
+ en: string;
120
+ 'en-GB': string;
121
+ fr: string;
122
+ es: string;
123
+ de: string;
124
+ ja: string;
125
+ ko: string;
126
+ zh: string;
127
+ it: string;
128
+ pt: string;
129
+ hi: string;
130
+ ar: string;
131
+ ru: string;
132
+ }>;
21
133
  };
22
134
  goToEnumeration: {
23
- label: import('@intlayer/core').TranslationContent<string>;
135
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
136
+ en: string;
137
+ 'en-GB': string;
138
+ fr: string;
139
+ es: string;
140
+ de: string;
141
+ ja: string;
142
+ ko: string;
143
+ zh: string;
144
+ it: string;
145
+ pt: string;
146
+ hi: string;
147
+ ar: string;
148
+ ru: string;
149
+ }>;
24
150
  };
25
151
  addNewEnumeration: {
26
- label: import('@intlayer/core').TranslationContent<string>;
27
- text: import('@intlayer/core').TranslationContent<string>;
152
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
153
+ en: string;
154
+ 'en-GB': string;
155
+ fr: string;
156
+ es: string;
157
+ de: string;
158
+ ja: string;
159
+ ko: string;
160
+ zh: string;
161
+ it: string;
162
+ pt: string;
163
+ hi: string;
164
+ ar: string;
165
+ ru: string;
166
+ }>;
167
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
168
+ en: string;
169
+ 'en-GB': string;
170
+ fr: string;
171
+ es: string;
172
+ de: string;
173
+ ja: string;
174
+ ko: string;
175
+ zh: string;
176
+ it: string;
177
+ pt: string;
178
+ hi: string;
179
+ ar: string;
180
+ ru: string;
181
+ }>;
28
182
  };
29
183
  };
30
184
  };
@@ -1 +1 @@
1
- {"version":3,"file":"navigationViewNode.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuLZ,CAAC"}
1
+ {"version":3,"file":"navigationViewNode.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuLZ,CAAC"}
@@ -2,24 +2,164 @@ export declare const saveDictionaryContent: {
2
2
  key: string;
3
3
  content: {
4
4
  auditButton: {
5
- text: import('@intlayer/core').TranslationContent<string>;
6
- label: import('@intlayer/core').TranslationContent<string>;
5
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
6
+ en: string;
7
+ 'en-GB': string;
8
+ fr: string;
9
+ es: string;
10
+ de: string;
11
+ ja: string;
12
+ ko: string;
13
+ zh: string;
14
+ it: string;
15
+ pt: string;
16
+ hi: string;
17
+ ar: string;
18
+ ru: string;
19
+ }>;
20
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
21
+ en: string;
22
+ 'en-GB': string;
23
+ fr: string;
24
+ es: string;
25
+ de: string;
26
+ ja: string;
27
+ ko: string;
28
+ zh: string;
29
+ it: string;
30
+ pt: string;
31
+ hi: string;
32
+ ar: string;
33
+ ru: string;
34
+ }>;
7
35
  };
8
36
  resetButton: {
9
- text: import('@intlayer/core').TranslationContent<string>;
10
- label: import('@intlayer/core').TranslationContent<string>;
37
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
38
+ en: string;
39
+ 'en-GB': string;
40
+ fr: string;
41
+ es: string;
42
+ de: string;
43
+ ja: string;
44
+ ko: string;
45
+ zh: string;
46
+ it: string;
47
+ pt: string;
48
+ hi: string;
49
+ ar: string;
50
+ ru: string;
51
+ }>;
52
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
53
+ en: string;
54
+ 'en-GB': string;
55
+ fr: string;
56
+ es: string;
57
+ de: string;
58
+ ja: string;
59
+ ko: string;
60
+ zh: string;
61
+ it: string;
62
+ pt: string;
63
+ hi: string;
64
+ ar: string;
65
+ ru: string;
66
+ }>;
11
67
  };
12
68
  saveButton: {
13
- text: import('@intlayer/core').TranslationContent<string>;
14
- label: import('@intlayer/core').TranslationContent<string>;
69
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
70
+ en: string;
71
+ 'en-GB': string;
72
+ fr: string;
73
+ es: string;
74
+ de: string;
75
+ ja: string;
76
+ ko: string;
77
+ zh: string;
78
+ it: string;
79
+ pt: string;
80
+ hi: string;
81
+ ar: string;
82
+ ru: string;
83
+ }>;
84
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
85
+ en: string;
86
+ 'en-GB': string;
87
+ fr: string;
88
+ es: string;
89
+ de: string;
90
+ ja: string;
91
+ ko: string;
92
+ zh: string;
93
+ it: string;
94
+ pt: string;
95
+ hi: string;
96
+ ar: string;
97
+ ru: string;
98
+ }>;
15
99
  };
16
100
  publishButton: {
17
- text: import('@intlayer/core').TranslationContent<string>;
18
- label: import('@intlayer/core').TranslationContent<string>;
101
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
102
+ en: string;
103
+ 'en-GB': string;
104
+ fr: string;
105
+ es: string;
106
+ de: string;
107
+ ja: string;
108
+ ko: string;
109
+ zh: string;
110
+ it: string;
111
+ pt: string;
112
+ hi: string;
113
+ ar: string;
114
+ ru: string;
115
+ }>;
116
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
117
+ en: string;
118
+ 'en-GB': string;
119
+ fr: string;
120
+ es: string;
121
+ de: string;
122
+ ja: string;
123
+ ko: string;
124
+ zh: string;
125
+ it: string;
126
+ pt: string;
127
+ hi: string;
128
+ ar: string;
129
+ ru: string;
130
+ }>;
19
131
  };
20
132
  downloadButton: {
21
- text: import('@intlayer/core').TranslationContent<string>;
22
- label: import('@intlayer/core').TranslationContent<string>;
133
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
134
+ en: string;
135
+ 'en-GB': string;
136
+ fr: string;
137
+ es: string;
138
+ de: string;
139
+ ja: string;
140
+ ko: string;
141
+ zh: string;
142
+ it: string;
143
+ pt: string;
144
+ hi: string;
145
+ ar: string;
146
+ ru: string;
147
+ }>;
148
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
149
+ en: string;
150
+ 'en-GB': string;
151
+ fr: string;
152
+ es: string;
153
+ de: string;
154
+ ja: string;
155
+ ko: string;
156
+ zh: string;
157
+ it: string;
158
+ pt: string;
159
+ hi: string;
160
+ ar: string;
161
+ ru: string;
162
+ }>;
23
163
  };
24
164
  };
25
165
  };
@@ -1 +1 @@
1
- {"version":3,"file":"saveForm.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;CAoKZ,CAAC"}
1
+ {"version":3,"file":"saveForm.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoKZ,CAAC"}
@@ -1,9 +1,51 @@
1
1
  declare const versionSwitcherContent: {
2
2
  key: string;
3
3
  content: {
4
- versionSwitcherLabel: import('@intlayer/core').TranslationContent<string>;
5
- versionListLabel: import('@intlayer/core').TranslationContent<string>;
6
- switchTo: import('@intlayer/core').TranslationContent<string>;
4
+ versionSwitcherLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
5
+ en: string;
6
+ 'en-GB': string;
7
+ fr: string;
8
+ es: string;
9
+ de: string;
10
+ ja: string;
11
+ ko: string;
12
+ zh: string;
13
+ it: string;
14
+ pt: string;
15
+ hi: string;
16
+ ar: string;
17
+ ru: string;
18
+ }>;
19
+ versionListLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
20
+ en: string;
21
+ 'en-GB': string;
22
+ fr: string;
23
+ es: string;
24
+ de: string;
25
+ ja: string;
26
+ ko: string;
27
+ zh: string;
28
+ it: string;
29
+ pt: string;
30
+ hi: string;
31
+ ar: string;
32
+ ru: string;
33
+ }>;
34
+ switchTo: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
35
+ en: string;
36
+ fr: string;
37
+ es: string;
38
+ 'en-GB': string;
39
+ de: string;
40
+ ja: string;
41
+ ko: string;
42
+ zh: string;
43
+ it: string;
44
+ pt: string;
45
+ hi: string;
46
+ ar: string;
47
+ ru: string;
48
+ }>;
7
49
  };
8
50
  };
9
51
  export default versionSwitcherContent;
@@ -1 +1 @@
1
- {"version":3,"file":"versionSwitcherDropDown.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB;;;;;;;CAiDN,CAAC;AAEvB,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"versionSwitcherDropDown.content.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDN,CAAC;AAEvB,eAAe,sBAAsB,CAAC"}
@@ -1,11 +1,67 @@
1
1
  export declare const dictionaryFieldEditorContent: {
2
2
  key: string;
3
3
  content: {
4
- titleInformation: import('@intlayer/core').TranslationContent<string>;
5
- titleContent: import('@intlayer/core').TranslationContent<string>;
4
+ titleInformation: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
5
+ en: string;
6
+ 'en-GB': string;
7
+ fr: string;
8
+ es: string;
9
+ de: string;
10
+ ja: string;
11
+ ko: string;
12
+ zh: string;
13
+ it: string;
14
+ pt: string;
15
+ hi: string;
16
+ ar: string;
17
+ ru: string;
18
+ }>;
19
+ titleContent: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
20
+ en: string;
21
+ 'en-GB': string;
22
+ fr: string;
23
+ es: string;
24
+ de: string;
25
+ ja: string;
26
+ ko: string;
27
+ zh: string;
28
+ it: string;
29
+ pt: string;
30
+ hi: string;
31
+ ar: string;
32
+ ru: string;
33
+ }>;
6
34
  returnToDictionaryList: {
7
- label: import('@intlayer/core').TranslationContent<string>;
8
- text: import('@intlayer/core').TranslationContent<string>;
35
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
36
+ en: string;
37
+ 'en-GB': string;
38
+ fr: string;
39
+ es: string;
40
+ de: string;
41
+ ja: string;
42
+ ko: string;
43
+ zh: string;
44
+ it: string;
45
+ pt: string;
46
+ hi: string;
47
+ ar: string;
48
+ ru: string;
49
+ }>;
50
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
51
+ en: string;
52
+ 'en-GB': string;
53
+ fr: string;
54
+ es: string;
55
+ de: string;
56
+ ja: string;
57
+ ko: string;
58
+ zh: string;
59
+ it: string;
60
+ pt: string;
61
+ hi: string;
62
+ ar: string;
63
+ ru: string;
64
+ }>;
9
65
  };
10
66
  };
11
67
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dictionaryFieldEditor.content.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;;;;;CAkEnB,CAAC"}
1
+ {"version":3,"file":"dictionaryFieldEditor.content.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEnB,CAAC"}