@intlayer/editor-react 7.2.3 → 7.3.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
@@ -24,6 +24,8 @@
24
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
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
+ <a href="https://bountyhub.dev/bounties?repo=intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/badge/Bounties-on%20BountyHub-yellow?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="Bounties on BountyHub"/>
28
+ </a>
27
29
  </p>
28
30
 
29
31
  ![Watch the video](https://github.com/aymericzip/intlayer/blob/main/docs/assets/demo_video.gif)
@@ -1,9 +1,9 @@
1
- import * as react0 from "react";
1
+ import * as react1 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, react0.Dispatch<react0.SetStateAction<IntlayerConfig>>, () => void];
6
+ declare const useConfigurationState: () => [IntlayerConfig, react1.Dispatch<react1.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 react5 from "react";
2
+ import * as react9 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, react5.Dispatch<react5.SetStateAction<boolean>>, () => void];
9
+ declare const useEditorEnabledState: (options?: CrossFrameStateOptions) => [boolean, react9.Dispatch<react9.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
1
  import { CrossFrameStateOptions } from "./useCrossFrameState.js";
2
- import * as react7 from "react";
2
+ import * as react3 from "react";
3
3
 
4
4
  //#region src/useCrossURLPathState.d.ts
5
- declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [string, react7.Dispatch<react7.SetStateAction<string>>, () => void];
6
- declare const useCrossURLPathSetter: (initialState?: string) => [string, react7.Dispatch<react7.SetStateAction<string>>, () => void];
5
+ declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [string, react3.Dispatch<react3.SetStateAction<string>>, () => void];
6
+ declare const useCrossURLPathSetter: (initialState?: string) => [string, react3.Dispatch<react3.SetStateAction<string>>, () => void];
7
7
  //#endregion
8
8
  export { useCrossURLPathSetter, useCrossURLPathState };
9
9
  //# sourceMappingURL=useCrossURLPathState.d.ts.map
@@ -1,9 +1,9 @@
1
- import * as react3 from "react";
1
+ import * as react0 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, react3.Dispatch<react3.SetStateAction<Locale>>, () => void];
6
+ declare const useSetEditorLocale: () => [Locale, react0.Dispatch<react0.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 react1 from "react";
2
+ import * as react7 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: react1.Dispatch<react1.SetStateAction<FileContent>>;
8
+ setFocusedContent: react7.Dispatch<react7.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.2.3",
3
+ "version": "7.3.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": [
@@ -63,18 +63,18 @@
63
63
  "process-files": "ts-node src/transpiler/processFilesCLI.ts --dir $npm_config_dir --extension $npm_config_extension --no-node-snapshot",
64
64
  "prepublish": "cp -f ../../../README.md ./README.md",
65
65
  "publish": "bun publish || true",
66
- "publish:canary": "bun publish --tag canary || true",
67
- "publish:latest": "bun publish --tag latest || true",
66
+ "publish:canary": "bun publish --access public --tag canary || true",
67
+ "publish:latest": "bun publish --access public --tag latest || true",
68
68
  "test": "vitest run",
69
69
  "test:watch": "vitest",
70
70
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
71
71
  },
72
72
  "dependencies": {
73
- "@intlayer/config": "7.2.3",
74
- "@intlayer/core": "7.2.3",
75
- "@intlayer/editor": "7.2.3",
76
- "@intlayer/types": "7.2.3",
77
- "@intlayer/unmerged-dictionaries-entry": "7.2.3"
73
+ "@intlayer/config": "7.3.0",
74
+ "@intlayer/core": "7.3.0",
75
+ "@intlayer/editor": "7.3.0",
76
+ "@intlayer/types": "7.3.0",
77
+ "@intlayer/unmerged-dictionaries-entry": "7.3.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@types/node": "24.10.1",
@@ -88,7 +88,7 @@
88
88
  "rimraf": "6.1.2",
89
89
  "tsdown": "0.16.6",
90
90
  "typescript": "5.9.3",
91
- "vitest": "4.0.12"
91
+ "vitest": "4.0.13"
92
92
  },
93
93
  "peerDependencies": {
94
94
  "react": ">=16.0.0",