@intlayer/editor-react 9.4.3 → 9.4.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.
- package/dist/types/CommunicatorContext.d.ts +3 -3
- package/dist/types/CommunicatorContext.d.ts.map +1 -1
- package/dist/types/ConfigurationContext.d.ts +4 -5
- package/dist/types/ConfigurationContext.d.ts.map +1 -1
- package/dist/types/DictionariesRecordContext.d.ts +3 -3
- package/dist/types/DictionariesRecordContext.d.ts.map +1 -1
- package/dist/types/EditedContentContext.d.ts +5 -5
- package/dist/types/EditedContentContext.d.ts.map +1 -1
- package/dist/types/EditorEnabledContext.d.ts +6 -7
- package/dist/types/EditorEnabledContext.d.ts.map +1 -1
- package/dist/types/EditorProvider.d.ts +2 -3
- package/dist/types/EditorProvider.d.ts.map +1 -1
- package/dist/types/EditorStateContext.d.ts +2 -3
- package/dist/types/EditorStateContext.d.ts.map +1 -1
- package/dist/types/FocusDictionaryContext.d.ts +6 -6
- package/dist/types/FocusDictionaryContext.d.ts.map +1 -1
- package/dist/types/useCrossFrameMessageListener.d.ts +1 -2
- package/dist/types/useCrossFrameMessageListener.d.ts.map +1 -1
- package/dist/types/useCrossFrameState.d.ts +2 -3
- package/dist/types/useCrossFrameState.d.ts.map +1 -1
- package/dist/types/useCrossURLPathState.d.ts +2 -3
- package/dist/types/useCrossURLPathState.d.ts.map +1 -1
- package/dist/types/useEditorLocale.d.ts +2 -3
- package/dist/types/useEditorLocale.d.ts.map +1 -1
- package/dist/types/useFocusUnmergedDictionary.d.ts +1 -2
- package/dist/types/useFocusUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/useIframeClickInterceptor.d.ts +2 -3
- package/dist/types/useIframeClickInterceptor.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessagePayload, MessengerConfig } from "@intlayer/editor";
|
|
2
2
|
//#region src/CommunicatorContext.d.ts
|
|
3
|
-
type UseCrossPlatformStateProps = {
|
|
3
|
+
export type UseCrossPlatformStateProps = {
|
|
4
4
|
postMessage: (payload: MessagePayload) => void;
|
|
5
5
|
allowedOrigins?: string[];
|
|
6
6
|
senderId: string;
|
|
@@ -8,7 +8,7 @@ type UseCrossPlatformStateProps = {
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the communicator API backed by the shared EditorStateManager messenger.
|
|
10
10
|
*/
|
|
11
|
-
declare const useCommunicator: () => UseCrossPlatformStateProps;
|
|
11
|
+
export declare const useCommunicator: () => UseCrossPlatformStateProps;
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export type { MessengerConfig };
|
|
14
14
|
//# sourceMappingURL=CommunicatorContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunicatorContext.d.ts","names":[],"sources":["../../src/CommunicatorContext.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"CommunicatorContext.d.ts","names":[],"sources":["../../src/CommunicatorContext.tsx"],"mappings":";;YAKY;EACV,cAAc,SAAS;EACvB;EACA;;;;;qBAMW,uBAAsB"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
//#region src/ConfigurationContext.d.ts
|
|
4
|
-
type ConfigurationProviderProps = PropsWithChildren<{
|
|
4
|
+
export type ConfigurationProviderProps = PropsWithChildren<{
|
|
5
5
|
configuration?: IntlayerConfig;
|
|
6
6
|
}>;
|
|
7
|
-
declare const ConfigurationProvider: FC<ConfigurationProviderProps>;
|
|
8
|
-
declare const useConfiguration: () => IntlayerConfig | undefined;
|
|
9
|
-
declare const useConfigurationState: () => readonly [IntlayerConfig, import("react").Dispatch<import("react").SetStateAction<IntlayerConfig>>, () => void];
|
|
7
|
+
export declare const ConfigurationProvider: FC<ConfigurationProviderProps>;
|
|
8
|
+
export declare const useConfiguration: () => IntlayerConfig | undefined;
|
|
9
|
+
export declare const useConfigurationState: () => readonly [IntlayerConfig, import("react").Dispatch<import("react").SetStateAction<IntlayerConfig>>, () => void];
|
|
10
10
|
//#endregion
|
|
11
|
-
export { ConfigurationProvider, ConfigurationProviderProps, useConfiguration, useConfigurationState };
|
|
12
11
|
//# sourceMappingURL=ConfigurationContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationContext.d.ts","names":[],"sources":["../../src/ConfigurationContext.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ConfigurationContext.d.ts","names":[],"sources":["../../src/ConfigurationContext.tsx"],"mappings":";;;YAkBY,6BAA6B;EACvC,gBAAgB;;qBAGL,uBAAuB,GAAG;qBAoB1B,wBAAuB;qBA2BvB,uCAAqB,gCAAA,yBAAA,eAAA"}
|
|
@@ -8,8 +8,8 @@ type DictionariesRecordActionsContextType = {
|
|
|
8
8
|
setLocaleDictionaries: (value: DictionaryContent$1) => void;
|
|
9
9
|
setLocaleDictionary: (dictionary: Dictionary) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const useDictionariesRecord: () => DictionariesRecordStatesContextType & DictionariesRecordActionsContextType;
|
|
12
|
-
declare const useDictionariesRecordActions: () => DictionariesRecordActionsContextType;
|
|
11
|
+
export declare const useDictionariesRecord: () => DictionariesRecordStatesContextType & DictionariesRecordActionsContextType;
|
|
12
|
+
export declare const useDictionariesRecordActions: () => DictionariesRecordActionsContextType;
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export type { DictionaryContent };
|
|
15
15
|
//# sourceMappingURL=DictionariesRecordContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionariesRecordContext.d.ts","names":[],"sources":["../../src/DictionariesRecordContext.tsx"],"mappings":";;;KASK;EACH,oBAAoB;;KAEjB;EACH,wBAAwB,OAAO;EAC/B,sBAAsB,YAAY;;
|
|
1
|
+
{"version":3,"file":"DictionariesRecordContext.d.ts","names":[],"sources":["../../src/DictionariesRecordContext.tsx"],"mappings":";;;KASK;EACH,oBAAoB;;KAEjB;EACH,wBAAwB,OAAO;EAC/B,sBAAsB,YAAY;;qBAGvB,6BAA4B,sCACvC;qBAgCW,oCACP"}
|
|
@@ -14,8 +14,8 @@ type EditedContentActionsContextType = {
|
|
|
14
14
|
clearEditedContent: () => void;
|
|
15
15
|
getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary['key'] | string, keyPath: KeyPath[]) => ContentNode | undefined;
|
|
16
16
|
};
|
|
17
|
-
declare const useEditedContentActions: () => EditedContentActionsContextType;
|
|
18
|
-
declare const useEditedContent: () => {
|
|
17
|
+
export declare const useEditedContentActions: () => EditedContentActionsContextType;
|
|
18
|
+
export declare const useEditedContent: () => {
|
|
19
19
|
setEditedContentState: (editedContent: DictionaryContent$1) => void;
|
|
20
20
|
setEditedDictionary: (dict: Dictionary) => void;
|
|
21
21
|
setEditedContent: (localDictionaryId: LocalDictionaryId, newValue: Dictionary['content']) => void;
|
|
@@ -28,8 +28,8 @@ declare const useEditedContent: () => {
|
|
|
28
28
|
getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary['key'] | string, keyPath: KeyPath[]) => ContentNode | undefined;
|
|
29
29
|
editedContent: DictionaryContent$1;
|
|
30
30
|
};
|
|
31
|
-
declare const usePostEditedContentState: <S>(onEventTriggered?: (data: S) => void) => void;
|
|
32
|
-
declare const useGetEditedContentState: () => () => void;
|
|
31
|
+
export declare const usePostEditedContentState: <S>(onEventTriggered?: (data: S) => void) => void;
|
|
32
|
+
export declare const useGetEditedContentState: () => () => void;
|
|
33
33
|
//#endregion
|
|
34
|
-
export {
|
|
34
|
+
export type { DictionaryContent };
|
|
35
35
|
//# sourceMappingURL=EditedContentContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditedContentContext.d.ts","names":[],"sources":["../../src/EditedContentContext.tsx"],"mappings":";;;;KAcK;EACH,wBAAwB,eAAe;EACvC,sBAAsB,MAAM;EAC5B,mBACE,mBAAmB,mBACnB,UAAU;EAEZ,mBACE,mBAAmB,mBACnB,UAAU,kBACV,UAAU,WACV;EAEF,sBACE,mBAAmB,mBACnB,QAAQ,gBACR,UAAU;EAEZ,sBACE,mBAAmB,mBACnB,SAAS;EAEX,uBAAuB,mBAAmB;EAC1C,+BAA+B,mBAAmB;EAClD;EACA,wBACE,wBAAwB,oBAAoB,4BAC5C,SAAS,cACN;;
|
|
1
|
+
{"version":3,"file":"EditedContentContext.d.ts","names":[],"sources":["../../src/EditedContentContext.tsx"],"mappings":";;;;KAcK;EACH,wBAAwB,eAAe;EACvC,sBAAsB,MAAM;EAC5B,mBACE,mBAAmB,mBACnB,UAAU;EAEZ,mBACE,mBAAmB,mBACnB,UAAU,kBACV,UAAU,WACV;EAEF,sBACE,mBAAmB,mBACnB,QAAQ,gBACR,UAAU;EAEZ,sBACE,mBAAmB,mBACnB,SAAS;EAEX,uBAAuB,mBAAmB;EAC1C,+BAA+B,mBAAmB;EAClD;EACA,wBACE,wBAAwB,oBAAoB,4BAC5C,SAAS,cACN;;qBAGM,+BAA8B;qBA0B9B;EAxDY,wBAAC,eAAe;EAClB,sBAAC,MAAM;EACV,mBAChB,mBAAmB,mBACnB,UAAU;EAEM,mBAChB,mBAAmB,mBACnB,UAAU,kBACV,UAAU,WACV;EAEmB,sBACnB,mBAAmB,mBACnB,QAAQ,gBACR,UAAU;EAES,sBACnB,mBAAmB,mBACnB,SAAS;EAEW,uBAAC,mBAAmB;EACZ,+BAAC,mBAAmB;EAC9B;EACG,wBACrB,wBAAwB,oBAAoB,4BAC5C,SAAS,cACN;;;qBA+CM,4BAA6B,GAAC,oBACrB,MAAM;qBAYf"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
//#region src/EditorEnabledContext.d.ts
|
|
2
|
-
type EditorEnabledStateProps = {
|
|
2
|
+
export type EditorEnabledStateProps = {
|
|
3
3
|
enabled: boolean;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* Returns the current editor-enabled state, kept in sync with the shared
|
|
7
7
|
* EditorStateManager. Replaces the old EditorEnabledContext + EditorEnabledProvider.
|
|
8
8
|
*/
|
|
9
|
-
declare const useEditorEnabled: () => EditorEnabledStateProps;
|
|
9
|
+
export declare const useEditorEnabled: () => EditorEnabledStateProps;
|
|
10
10
|
/**
|
|
11
11
|
* Subscribes to incoming "get" requests for editor-enabled state and calls
|
|
12
12
|
* the provided callback so the caller can respond.
|
|
13
13
|
* Used by the editor side to respond when the client asks for the current state.
|
|
14
14
|
*/
|
|
15
|
-
declare const useGetEditorEnabledState: (onRequest?: () => void) => void;
|
|
15
|
+
export declare const useGetEditorEnabledState: (onRequest?: () => void) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Returns a function that sets the editor-enabled state and broadcasts it.
|
|
18
18
|
*/
|
|
19
|
-
declare const usePostEditorEnabledState: () => (value: boolean) => void;
|
|
20
|
-
declare const useEditorEnabledState: () => readonly [boolean, (value: boolean) => void];
|
|
19
|
+
export declare const usePostEditorEnabledState: () => (value: boolean) => void;
|
|
20
|
+
export declare const useEditorEnabledState: () => readonly [boolean, (value: boolean) => void];
|
|
21
21
|
/**
|
|
22
22
|
* Returns a function that re-pings the client via ARE_YOU_THERE.
|
|
23
23
|
* Use this as the onClick for an "Enable Editor" / reconnect button.
|
|
24
24
|
*/
|
|
25
|
-
declare const useEditorPingClient: () => (() => void);
|
|
25
|
+
export declare const useEditorPingClient: () => (() => void);
|
|
26
26
|
//#endregion
|
|
27
|
-
export { EditorEnabledStateProps, useEditorEnabled, useEditorEnabledState, useEditorPingClient, useGetEditorEnabledState, usePostEditorEnabledState };
|
|
28
27
|
//# sourceMappingURL=EditorEnabledContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorEnabledContext.d.ts","names":[],"sources":["../../src/EditorEnabledContext.tsx"],"mappings":";
|
|
1
|
+
{"version":3,"file":"EditorEnabledContext.d.ts","names":[],"sources":["../../src/EditorEnabledContext.tsx"],"mappings":";YAMY;EACV;;;;;;qBAOW,wBAAuB;;;;;;qBAuBvB,2BAAwB;;;;qBAgBxB,kCAAyB;qBASzB,iDAAqB;;;;;qBAYrB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
//#region src/EditorProvider.d.ts
|
|
4
|
-
type EditorProviderProps = {
|
|
4
|
+
export type EditorProviderProps = {
|
|
5
5
|
configuration: Pick<IntlayerConfig, 'editor' | 'internationalization'>;
|
|
6
6
|
postMessage: (data: any) => void;
|
|
7
7
|
allowedOrigins: string[];
|
|
@@ -10,7 +10,6 @@ type EditorProviderProps = {
|
|
|
10
10
|
* EditorProvider creates and manages the lifecycle of an EditorStateManager,
|
|
11
11
|
* provides it to all descendants, and registers the Lit web components.
|
|
12
12
|
*/
|
|
13
|
-
declare const EditorProvider: FC<PropsWithChildren<EditorProviderProps>>;
|
|
13
|
+
export declare const EditorProvider: FC<PropsWithChildren<EditorProviderProps>>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { EditorProvider, EditorProviderProps };
|
|
16
15
|
//# sourceMappingURL=EditorProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../src/EditorProvider.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"EditorProvider.d.ts","names":[],"sources":["../../src/EditorProvider.tsx"],"mappings":";;;YAYY;EACV,eAAe,KAAK;EACpB,cAAc;EACd;;;;;;qBAOW,gBAAgB,GAAG,kBAAkB"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { EditorStateManager } from "@intlayer/editor";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
//#region src/EditorStateContext.d.ts
|
|
4
|
-
declare const EditorStateProvider: FC<PropsWithChildren<{
|
|
4
|
+
export declare const EditorStateProvider: FC<PropsWithChildren<{
|
|
5
5
|
manager: EditorStateManager;
|
|
6
6
|
}>>;
|
|
7
|
-
declare const useEditorStateManager: () => EditorStateManager | null;
|
|
7
|
+
export declare const useEditorStateManager: () => EditorStateManager | null;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { EditorStateProvider, useEditorStateManager };
|
|
10
9
|
//# sourceMappingURL=EditorStateContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorStateContext.d.ts","names":[],"sources":["../../src/EditorStateContext.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"EditorStateContext.d.ts","names":[],"sources":["../../src/EditorStateContext.tsx"],"mappings":";;;qBAYa,qBAAqB,GAChC;EAAoB,SAAS;;qBAOlB,6BAA4B"}
|
|
@@ -2,17 +2,17 @@ import { CrossFrameStateAction, FileContent, FileContent as FileContent$1 } from
|
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
4
4
|
//#region src/FocusDictionaryContext.d.ts
|
|
5
|
-
type FocusDictionaryState = {
|
|
5
|
+
export type FocusDictionaryState = {
|
|
6
6
|
focusedContent: FileContent$1 | null;
|
|
7
7
|
};
|
|
8
|
-
type FocusDictionaryActions = {
|
|
8
|
+
export type FocusDictionaryActions = {
|
|
9
9
|
/** Accepts a value or an updater — `setFocusedContent(prev => …)`. */
|
|
10
10
|
setFocusedContent: (value: CrossFrameStateAction<FileContent$1 | null>) => void;
|
|
11
11
|
setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
|
|
12
12
|
};
|
|
13
|
-
declare const FocusDictionaryProvider: FC<PropsWithChildren>;
|
|
14
|
-
declare const useFocusDictionary: () => FocusDictionaryState & FocusDictionaryActions;
|
|
15
|
-
declare const useFocusDictionaryActions: () => FocusDictionaryActions;
|
|
13
|
+
export declare const FocusDictionaryProvider: FC<PropsWithChildren>;
|
|
14
|
+
export declare const useFocusDictionary: () => FocusDictionaryState & FocusDictionaryActions;
|
|
15
|
+
export declare const useFocusDictionaryActions: () => FocusDictionaryActions;
|
|
16
16
|
//#endregion
|
|
17
|
-
export {
|
|
17
|
+
export type { FileContent };
|
|
18
18
|
//# sourceMappingURL=FocusDictionaryContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusDictionaryContext.d.ts","names":[],"sources":["../../src/FocusDictionaryContext.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"FocusDictionaryContext.d.ts","names":[],"sources":["../../src/FocusDictionaryContext.tsx"],"mappings":";;;;YAkBY;EACV,gBAAgB;;YAGN;;EAEV,oBAAoB,OAAO,sBAAsB;EACjD,2BAA2B,SAAS;;qBAWzB,yBAAyB,GAAG;qBAkD5B,0BAAyB,uBACpC;qBAkDW,iCAAgC"}
|
|
@@ -6,7 +6,6 @@ import { MessageKey } from "@intlayer/editor";
|
|
|
6
6
|
*
|
|
7
7
|
* Backed by CrossFrameMessenger from EditorStateManager.
|
|
8
8
|
*/
|
|
9
|
-
declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void, revalidator?: any) => (data?: S) => void;
|
|
9
|
+
export declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void, revalidator?: any) => (data?: S) => void;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { useCrossFrameMessageListener };
|
|
12
11
|
//# sourceMappingURL=useCrossFrameMessageListener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../src/useCrossFrameMessageListener.tsx"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../src/useCrossFrameMessageListener.tsx"],"mappings":";;;;;;;;qBAYa,+BAAgC,GAAC,QACpC,kBAAkB,uBAAuB,kBAAgB,oBAC7C,MAAM,YAAU,uBACnB,OASF"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { MessageKey } from "@intlayer/editor";
|
|
2
2
|
import { Dispatch, SetStateAction } from "react";
|
|
3
3
|
//#region src/useCrossFrameState.d.ts
|
|
4
|
-
type CrossFrameStateOptions = {
|
|
4
|
+
export type CrossFrameStateOptions = {
|
|
5
5
|
emit?: boolean;
|
|
6
6
|
receive?: boolean;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Synchronizes a React state value across frames using CrossFrameStateManager.
|
|
10
10
|
*/
|
|
11
|
-
declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [S, Dispatch<SetStateAction<S>>, () => void];
|
|
11
|
+
export declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [S, Dispatch<SetStateAction<S>>, () => void];
|
|
12
12
|
//#endregion
|
|
13
|
-
export { CrossFrameStateOptions, useCrossFrameState };
|
|
14
13
|
//# sourceMappingURL=useCrossFrameState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../src/useCrossFrameState.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../src/useCrossFrameState.tsx"],"mappings":";;;YAaY;EACV;EACA;;;;;qBAMW,qBAAsB,GAAC,QAC1B,cAAY,eACL,WAAW,IAAE,UAClB,4BACR,GAAG,SAAS,eAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CrossFrameStateOptions } from "./useCrossFrameState.js";
|
|
2
2
|
//#region src/useCrossURLPathState.d.ts
|
|
3
|
-
declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [string, import("react").Dispatch<import("react").SetStateAction<string>>, () => void];
|
|
4
|
-
declare const useCrossURLPathSetter: (initialState?: string) => [string, import("react").Dispatch<import("react").SetStateAction<string>>, () => void];
|
|
3
|
+
export declare const useCrossURLPathState: (initialState?: string, options?: CrossFrameStateOptions) => [string, import("react").Dispatch<import("react").SetStateAction<string>>, () => void];
|
|
4
|
+
export declare const useCrossURLPathSetter: (initialState?: string) => [string, import("react").Dispatch<import("react").SetStateAction<string>>, () => void];
|
|
5
5
|
//#endregion
|
|
6
|
-
export { useCrossURLPathSetter, useCrossURLPathState };
|
|
7
6
|
//# sourceMappingURL=useCrossURLPathState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../src/useCrossURLPathState.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../src/useCrossURLPathState.tsx"],"mappings":";;qBAQa,uBAAoB,uBACV,UACX,oDAAsB,yBAAA;qBAGrB,wBAAqB,mDAAyB,yBAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Locale } from "@intlayer/types/allLocales";
|
|
2
2
|
//#region src/useEditorLocale.d.ts
|
|
3
|
-
declare const useEditorLocale: () => Locale | undefined;
|
|
4
|
-
declare const useSetEditorLocale: () => (locale: Locale) => void;
|
|
3
|
+
export declare const useEditorLocale: () => Locale | undefined;
|
|
4
|
+
export declare const useSetEditorLocale: () => (locale: Locale) => void;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { useEditorLocale, useSetEditorLocale };
|
|
7
6
|
//# sourceMappingURL=useEditorLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditorLocale.d.ts","names":[],"sources":["../../src/useEditorLocale.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useEditorLocale.d.ts","names":[],"sources":["../../src/useEditorLocale.tsx"],"mappings":";;qBAMa,uBAAsB;qBAkBtB,2BAAkB,QAEb"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FileContent } from "./FocusDictionaryContext.js";
|
|
2
2
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
3
|
//#region src/useFocusUnmergedDictionary.d.ts
|
|
4
|
-
declare const useFocusUnmergedDictionary: () => {
|
|
4
|
+
export declare const useFocusUnmergedDictionary: () => {
|
|
5
5
|
focusedContent: FileContent;
|
|
6
6
|
setFocusedContent: (value: import("@intlayer/editor").CrossFrameStateAction<FileContent | null>) => void;
|
|
7
7
|
setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
10
|
-
export { useFocusUnmergedDictionary };
|
|
11
10
|
//# sourceMappingURL=useFocusUnmergedDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusUnmergedDictionary.d.ts","names":[],"sources":["../../src/useFocusUnmergedDictionary.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useFocusUnmergedDictionary.d.ts","names":[],"sources":["../../src/useFocusUnmergedDictionary.tsx"],"mappings":";;;qBA8Ca"}
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* Note: EditorStateManager.start() already sets this up in client mode.
|
|
6
6
|
* This hook exists for explicit / standalone use cases.
|
|
7
7
|
*/
|
|
8
|
-
declare const useIframeClickInterceptor: () => void;
|
|
8
|
+
export declare const useIframeClickInterceptor: () => void;
|
|
9
9
|
/**
|
|
10
10
|
* Merges received iframe click events into the parent's DOM event stream.
|
|
11
11
|
* Called in the editor (parent frame).
|
|
12
12
|
*/
|
|
13
|
-
declare const useIframeClickMerger: () => void;
|
|
13
|
+
export declare const useIframeClickMerger: () => void;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { useIframeClickInterceptor, useIframeClickMerger };
|
|
16
15
|
//# sourceMappingURL=useIframeClickInterceptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../src/useIframeClickInterceptor.tsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../src/useIframeClickInterceptor.tsx"],"mappings":";;;;;;;qBAWa;;;;;qBAQA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/editor-react",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.4",
|
|
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": [
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@intlayer/config": "9.4.
|
|
74
|
-
"@intlayer/core": "9.4.
|
|
75
|
-
"@intlayer/editor": "9.4.
|
|
76
|
-
"@intlayer/types": "9.4.
|
|
77
|
-
"@intlayer/unmerged-dictionaries-entry": "9.4.
|
|
73
|
+
"@intlayer/config": "9.4.4",
|
|
74
|
+
"@intlayer/core": "9.4.4",
|
|
75
|
+
"@intlayer/editor": "9.4.4",
|
|
76
|
+
"@intlayer/types": "9.4.4",
|
|
77
|
+
"@intlayer/unmerged-dictionaries-entry": "9.4.4"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/node": "26.4.1",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"react": ">=16.0.0",
|
|
87
87
|
"react-dom": ">=16.0.0",
|
|
88
88
|
"rimraf": "6.1.3",
|
|
89
|
-
"tsdown": "0.
|
|
89
|
+
"tsdown": "0.23.0",
|
|
90
90
|
"typescript": "7.0.2",
|
|
91
|
-
"vitest": "
|
|
91
|
+
"vitest": "5.0.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"react": ">=16.0.0",
|