intlayer-editor 2.1.5 → 2.1.7
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/cjs/client/index.d.ts +1 -1
- package/dist/cjs/client/renderContentEditor.cjs.map +1 -1
- package/dist/cjs/client/renderContentEditor.d.ts +1 -1
- package/dist/esm/client/index.d.mts +1 -1
- package/dist/esm/client/renderContentEditor.d.mts +1 -1
- package/dist/esm/client/renderContentEditor.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -5,7 +5,7 @@ export { DictionaryListDrawer } from './DictionaryListDrawer/DictionaryListDrawe
|
|
|
5
5
|
export { dictionaryListDrawerIdentifier, useDictionaryListDrawer } from './DictionaryListDrawer/useDictionaryListDrawer.js';
|
|
6
6
|
export { ContentEditionLayout, ContentEditionLayoutProps } from './ContentEditionLayout.js';
|
|
7
7
|
export { useEditorServer } from './useEditorServer.js';
|
|
8
|
-
export { IntlayerEditorElementProps, renderIntlayerEditor } from './renderContentEditor.js';
|
|
8
|
+
export { IntlayerEditorElementProps, RenderIntlayerEditorResult, renderIntlayerEditor } from './renderContentEditor.js';
|
|
9
9
|
export { IntlayerEditorContext, IntlayerEditorProvider, IntlayerEditorProviderProps, useIntlayerEditorContext } from './ContentEditorProvider.js';
|
|
10
10
|
import '@intlayer/config/client';
|
|
11
11
|
import 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/client/renderContentEditor.tsx"],"sourcesContent":["import { getConfiguration } from '@intlayer/config/client';\nimport type { KeyPath } from '@intlayer/core';\nimport type { ReactNode } from 'react';\nimport { ContentSelectorWrapper } from './ContentSelectorWrapper';\n\nconst {\n editor: { enabled },\n} = getConfiguration();\n\nexport type IntlayerEditorElementProps = {\n content: string;\n dictionaryId: string;\n dictionaryPath: string;\n keyPath: KeyPath[];\n};\n\
|
|
1
|
+
{"version":3,"sources":["../../../src/client/renderContentEditor.tsx"],"sourcesContent":["import { getConfiguration } from '@intlayer/config/client';\nimport type { KeyPath } from '@intlayer/core';\nimport type { ReactNode } from 'react';\nimport { ContentSelectorWrapper } from './ContentSelectorWrapper';\n\nconst {\n editor: { enabled },\n} = getConfiguration();\n\nexport type IntlayerEditorElementProps = {\n content: string;\n dictionaryId: string;\n dictionaryPath: string;\n keyPath: KeyPath[];\n};\n\nexport type RenderIntlayerEditorResult = ReactNode & { value: string };\n\nconst IntlayerEditorElement = ({\n content,\n ...props\n}: IntlayerEditorElementProps) => {\n if (enabled) {\n return (\n <ContentSelectorWrapper {...props}>{content}</ContentSelectorWrapper>\n );\n }\n return content;\n};\n\nIntlayerEditorElement.content = '';\n\nexport const renderIntlayerEditor = (\n data: IntlayerEditorElementProps\n): RenderIntlayerEditorResult => {\n const Result = <IntlayerEditorElement {...data} />;\n\n return { ...Result, value: data.content };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBM;AAxBN,oBAAiC;AAGjC,oCAAuC;AAEvC,MAAM;AAAA,EACJ,QAAQ,EAAE,QAAQ;AACpB,QAAI,gCAAiB;AAWrB,MAAM,wBAAwB,CAAC;AAAA,EAC7B;AAAA,EACA,GAAG;AACL,MAAkC;AAChC,MAAI,SAAS;AACX,WACE,4CAAC,wDAAwB,GAAG,OAAQ,mBAAQ;AAAA,EAEhD;AACA,SAAO;AACT;AAEA,sBAAsB,UAAU;AAEzB,MAAM,uBAAuB,CAClC,SAC+B;AAC/B,QAAM,SAAS,4CAAC,yBAAuB,GAAG,MAAM;AAEhD,SAAO,EAAE,GAAG,QAAQ,OAAO,KAAK,QAAQ;AAC1C;","names":[]}
|
|
@@ -12,4 +12,4 @@ type RenderIntlayerEditorResult = ReactNode & {
|
|
|
12
12
|
};
|
|
13
13
|
declare const renderIntlayerEditor: (data: IntlayerEditorElementProps) => RenderIntlayerEditorResult;
|
|
14
14
|
|
|
15
|
-
export { type IntlayerEditorElementProps, renderIntlayerEditor };
|
|
15
|
+
export { type IntlayerEditorElementProps, type RenderIntlayerEditorResult, renderIntlayerEditor };
|
|
@@ -5,7 +5,7 @@ export { DictionaryListDrawer } from './DictionaryListDrawer/DictionaryListDrawe
|
|
|
5
5
|
export { dictionaryListDrawerIdentifier, useDictionaryListDrawer } from './DictionaryListDrawer/useDictionaryListDrawer.mjs';
|
|
6
6
|
export { ContentEditionLayout, ContentEditionLayoutProps } from './ContentEditionLayout.mjs';
|
|
7
7
|
export { useEditorServer } from './useEditorServer.mjs';
|
|
8
|
-
export { IntlayerEditorElementProps, renderIntlayerEditor } from './renderContentEditor.mjs';
|
|
8
|
+
export { IntlayerEditorElementProps, RenderIntlayerEditorResult, renderIntlayerEditor } from './renderContentEditor.mjs';
|
|
9
9
|
export { IntlayerEditorContext, IntlayerEditorProvider, IntlayerEditorProviderProps, useIntlayerEditorContext } from './ContentEditorProvider.mjs';
|
|
10
10
|
import '@intlayer/config/client';
|
|
11
11
|
import 'react';
|
|
@@ -12,4 +12,4 @@ type RenderIntlayerEditorResult = ReactNode & {
|
|
|
12
12
|
};
|
|
13
13
|
declare const renderIntlayerEditor: (data: IntlayerEditorElementProps) => RenderIntlayerEditorResult;
|
|
14
14
|
|
|
15
|
-
export { type IntlayerEditorElementProps, renderIntlayerEditor };
|
|
15
|
+
export { type IntlayerEditorElementProps, type RenderIntlayerEditorResult, renderIntlayerEditor };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/client/renderContentEditor.tsx"],"sourcesContent":["import { getConfiguration } from '@intlayer/config/client';\nimport type { KeyPath } from '@intlayer/core';\nimport type { ReactNode } from 'react';\nimport { ContentSelectorWrapper } from './ContentSelectorWrapper';\n\nconst {\n editor: { enabled },\n} = getConfiguration();\n\nexport type IntlayerEditorElementProps = {\n content: string;\n dictionaryId: string;\n dictionaryPath: string;\n keyPath: KeyPath[];\n};\n\
|
|
1
|
+
{"version":3,"sources":["../../../src/client/renderContentEditor.tsx"],"sourcesContent":["import { getConfiguration } from '@intlayer/config/client';\nimport type { KeyPath } from '@intlayer/core';\nimport type { ReactNode } from 'react';\nimport { ContentSelectorWrapper } from './ContentSelectorWrapper';\n\nconst {\n editor: { enabled },\n} = getConfiguration();\n\nexport type IntlayerEditorElementProps = {\n content: string;\n dictionaryId: string;\n dictionaryPath: string;\n keyPath: KeyPath[];\n};\n\nexport type RenderIntlayerEditorResult = ReactNode & { value: string };\n\nconst IntlayerEditorElement = ({\n content,\n ...props\n}: IntlayerEditorElementProps) => {\n if (enabled) {\n return (\n <ContentSelectorWrapper {...props}>{content}</ContentSelectorWrapper>\n );\n }\n return content;\n};\n\nIntlayerEditorElement.content = '';\n\nexport const renderIntlayerEditor = (\n data: IntlayerEditorElementProps\n): RenderIntlayerEditorResult => {\n const Result = <IntlayerEditorElement {...data} />;\n\n return { ...Result, value: data.content };\n};\n"],"mappings":"AAwBM;AAxBN,SAAS,wBAAwB;AAGjC,SAAS,8BAA8B;AAEvC,MAAM;AAAA,EACJ,QAAQ,EAAE,QAAQ;AACpB,IAAI,iBAAiB;AAWrB,MAAM,wBAAwB,CAAC;AAAA,EAC7B;AAAA,EACA,GAAG;AACL,MAAkC;AAChC,MAAI,SAAS;AACX,WACE,oBAAC,0BAAwB,GAAG,OAAQ,mBAAQ;AAAA,EAEhD;AACA,SAAO;AACT;AAEA,sBAAsB,UAAU;AAEzB,MAAM,uBAAuB,CAClC,SAC+B;AAC/B,QAAM,SAAS,oBAAC,yBAAuB,GAAG,MAAM;AAEhD,SAAO,EAAE,GAAG,QAAQ,OAAO,KAAK,QAAQ;AAC1C;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer-editor",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "IntLayer Editor is a tool that allow you to edit your IntLayer declaration files using a graphical interface.",
|
|
6
6
|
"keywords": [
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"react-dom": "^18.3.1",
|
|
62
62
|
"webpack": "^5.92.1",
|
|
63
63
|
"zustand": "^4.5.2",
|
|
64
|
-
"@intlayer/config": "^2.0.
|
|
65
|
-
"@intlayer/core": "^2.0.
|
|
66
|
-
"@intlayer/design-system": "^2.0.
|
|
67
|
-
"@intlayer/dictionaries-entry": "^2.0.
|
|
68
|
-
"intlayer": "^2.0.
|
|
64
|
+
"@intlayer/config": "^2.0.8",
|
|
65
|
+
"@intlayer/core": "^2.0.8",
|
|
66
|
+
"@intlayer/design-system": "^2.0.8",
|
|
67
|
+
"@intlayer/dictionaries-entry": "^2.0.8",
|
|
68
|
+
"intlayer": "^2.0.8"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@babel/generator": "7.24.4",
|