@intlayer/editor-react 7.0.8 → 7.0.9-canary.0
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/README.md
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
<p align="center" style="margin-top:15px;">
|
|
21
21
|
<a href="https://www.npmjs.com/package/intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/v/intlayer?style=for-the-badge&labelColor=FFFFFF&color=000000&logoColor=FFFFFF" alt="npm version" height="24"/></a>
|
|
22
22
|
<a href="https://github.com/aymericzip/intlayer/stargazers" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/stars/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logo=github&logoColor=FFD700" alt="GitHub Stars" height="24"/></a>
|
|
23
|
-
<a href="https://www.npmjs.org/package/intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/dm/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000" alt="monthly downloads" height="24"/></a>
|
|
24
|
-
<a href="https://github.com/aymericzip/intlayer/blob/main/LICENSE" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/license/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000" alt="license"/></a>
|
|
25
|
-
<a href="https://github.com/aymericzip/intlayer/commits/main" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/last-commit/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000" alt="last commit"/>
|
|
23
|
+
<a href="https://www.npmjs.org/package/intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/dm/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="monthly downloads" height="24"/></a>
|
|
24
|
+
<a href="https://github.com/aymericzip/intlayer/blob/main/LICENSE" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/license/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="license"/></a>
|
|
25
|
+
<a href="https://github.com/aymericzip/intlayer/commits/main" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/last-commit/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="last commit"/>
|
|
26
26
|
</a>
|
|
27
27
|
</p>
|
|
28
28
|
|
|
@@ -60,7 +60,7 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
|
|
|
60
60
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/static_rendering.png?raw=true" alt="Feature" width="700"> | **Static Rendering**<br><br>Doesn't block Static Rendering. <br><br> - [Next.js integration](https://intlayer.org/doc/environment/nextjs) |
|
|
61
61
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/AI_translation.png?raw=true" alt="Feature" width="700"> | **AI-Powered Translation**<br><br>Transform your website into 231 languages with just one click using Intlayer's advanced AI-powered translation tools using your own AI provider / API key. <br><br> - [CI/CD integration](https://intlayer.org/doc/concept/ci-cd) <br> - [Intlayer CLI](https://intlayer.org/doc/concept/cli) <br> - [Auto fill](https://intlayer.org/doc/concept/auto-fill) |
|
|
62
62
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/mcp.png?raw=true" alt="Feature" width="700"> | **MCP Server Integration**<br><br>Provides an MCP (Model Context Protocol) server for IDE automation, enabling seamless content management and i18n workflows directly within your development environment. <br><br> - [MCP Server](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/mcp_server.md) |
|
|
63
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/vscode_extension.png?raw=true" alt="Feature" width="700"> | **VSCode Extension**<br><br>Intlayer provides a VSCode extension to help you manage your content and translations,
|
|
63
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/vscode_extension.png?raw=true" alt="Feature" width="700"> | **VSCode Extension**<br><br>Intlayer provides a VSCode extension to help you manage your content and translations, building your dictionaries, translating your content, and more. <br><br> - [VSCode Extension](https://intlayer.org/doc/vs-code-extension) |
|
|
64
64
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/interoperability.png?raw=true" alt="Feature" width="700"> | **Interoperability**<br><br>Allow interoperability with react-i18next, next-i18next, next-intl, and react-intl. <br><br> - [Intlayer and react-intl](https://intlayer.org/blog/intlayer-with-react-intl) <br> - [Intlayer and next-intl](https://intlayer.org/blog/intlayer-with-next-intl) <br> - [Intlayer and next-i18next](https://intlayer.org/blog/intlayer-with-next-i18next) |
|
|
65
65
|
|
|
66
66
|
---
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react3 from "react";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/ConfigurationContext.d.ts
|
|
6
|
-
declare const useConfigurationState: () => [IntlayerConfig,
|
|
6
|
+
declare const useConfigurationState: () => [IntlayerConfig, react3.Dispatch<react3.SetStateAction<IntlayerConfig>>, () => void];
|
|
7
7
|
type ConfigurationProviderProps = {
|
|
8
8
|
configuration?: IntlayerConfig;
|
|
9
9
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CrossFrameStateOptions } from "./useCrossFrameState.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react5 from "react";
|
|
3
3
|
import { FC, PropsWithChildren } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/EditorEnabledContext.d.ts
|
|
6
6
|
type EditorEnabledStateProps = {
|
|
7
7
|
enabled: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean,
|
|
9
|
+
declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean, react5.Dispatch<react5.SetStateAction<boolean>>, () => void];
|
|
10
10
|
declare const usePostEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
|
|
11
11
|
declare const useGetEditorEnabledState: <S>(onEventTriggered?: (data: S) => void) => (data?: S) => void;
|
|
12
12
|
declare const EditorEnabledProvider: FC<PropsWithChildren>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react1 from "react";
|
|
2
2
|
import { Locale } from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/useEditorLocale.d.ts
|
|
5
5
|
declare const useEditorLocale: () => Locale;
|
|
6
|
-
declare const useSetEditorLocale: () => [Locale,
|
|
6
|
+
declare const useSetEditorLocale: () => [Locale, react1.Dispatch<react1.SetStateAction<Locale>>, () => void];
|
|
7
7
|
//#endregion
|
|
8
8
|
export { useEditorLocale, useSetEditorLocale };
|
|
9
9
|
//# sourceMappingURL=useEditorLocale.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FileContent } from "./FocusDictionaryContext.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
import { KeyPath } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/useFocusUnmergedDictionary.d.ts
|
|
6
6
|
declare const useFocusUnmergedDictionary: () => {
|
|
7
7
|
focusedContent: FileContent;
|
|
8
|
-
setFocusedContent:
|
|
8
|
+
setFocusedContent: react0.Dispatch<react0.SetStateAction<FileContent>>;
|
|
9
9
|
setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/editor-react",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.9-canary.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Provides the states, contexts, hooks and components to interact with the Intlayer editor for a React application",
|
|
6
6
|
"keywords": [
|
|
@@ -67,20 +67,20 @@
|
|
|
67
67
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@intlayer/config": "7.0.
|
|
71
|
-
"@intlayer/core": "7.0.
|
|
72
|
-
"@intlayer/editor": "7.0.
|
|
73
|
-
"@intlayer/types": "7.0.
|
|
74
|
-
"@intlayer/unmerged-dictionaries-entry": "7.0.
|
|
70
|
+
"@intlayer/config": "7.0.9-canary.0",
|
|
71
|
+
"@intlayer/core": "7.0.9-canary.0",
|
|
72
|
+
"@intlayer/editor": "7.0.9-canary.0",
|
|
73
|
+
"@intlayer/types": "7.0.9-canary.0",
|
|
74
|
+
"@intlayer/unmerged-dictionaries-entry": "7.0.9-canary.0",
|
|
75
75
|
"uuid": "13.0.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@types/node": "24.10.0",
|
|
79
79
|
"@types/react": ">=16.0.0",
|
|
80
80
|
"@types/react-dom": ">=16.0.0",
|
|
81
|
-
"@utils/ts-config": "7.0.
|
|
82
|
-
"@utils/ts-config-types": "7.0.
|
|
83
|
-
"@utils/tsdown-config": "7.0.
|
|
81
|
+
"@utils/ts-config": "7.0.9-canary.0",
|
|
82
|
+
"@utils/ts-config-types": "7.0.9-canary.0",
|
|
83
|
+
"@utils/tsdown-config": "7.0.9-canary.0",
|
|
84
84
|
"react": ">=16.0.0",
|
|
85
85
|
"react-dom": ">=16.0.0",
|
|
86
86
|
"rimraf": "6.1.0",
|
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
"vitest": "4.0.7"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@intlayer/config": "7.0.
|
|
93
|
-
"@intlayer/core": "7.0.
|
|
94
|
-
"@intlayer/types": "7.0.
|
|
95
|
-
"@intlayer/unmerged-dictionaries-entry": "7.0.
|
|
92
|
+
"@intlayer/config": "7.0.9-canary.0",
|
|
93
|
+
"@intlayer/core": "7.0.9-canary.0",
|
|
94
|
+
"@intlayer/types": "7.0.9-canary.0",
|
|
95
|
+
"@intlayer/unmerged-dictionaries-entry": "7.0.9-canary.0",
|
|
96
96
|
"react": ">=16.0.0",
|
|
97
97
|
"react-dom": ">=16.0.0"
|
|
98
98
|
},
|