@intlayer/editor 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/compareUrls.d.ts +1 -2
- package/dist/types/compareUrls.d.ts.map +1 -1
- package/dist/types/components/ContentSelector.d.ts +2 -3
- package/dist/types/components/ContentSelector.d.ts.map +1 -1
- package/dist/types/components/ContentSelectorWrapper.d.ts +2 -3
- package/dist/types/components/ContentSelectorWrapper.d.ts.map +1 -1
- package/dist/types/components/EditedContent.d.ts +2 -3
- package/dist/types/components/EditedContent.d.ts.map +1 -1
- package/dist/types/components/IntlayerEditor.d.ts +2 -3
- package/dist/types/components/IntlayerEditor.d.ts.map +1 -1
- package/dist/types/core/CrossFrameMessenger.d.ts +3 -4
- package/dist/types/core/CrossFrameMessenger.d.ts.map +1 -1
- package/dist/types/core/CrossFrameStateManager.d.ts +3 -4
- package/dist/types/core/CrossFrameStateManager.d.ts.map +1 -1
- package/dist/types/core/EditorStateManager.d.ts +4 -5
- package/dist/types/core/EditorStateManager.d.ts.map +1 -1
- package/dist/types/core/IframeClickInterceptor.d.ts +1 -2
- package/dist/types/core/IframeClickInterceptor.d.ts.map +1 -1
- package/dist/types/core/UrlStateManager.d.ts +1 -2
- package/dist/types/core/UrlStateManager.d.ts.map +1 -1
- package/dist/types/core/editedContentBus.d.ts +3 -4
- package/dist/types/core/editedContentBus.d.ts.map +1 -1
- package/dist/types/core/focusedContentBus.d.ts +3 -4
- package/dist/types/core/focusedContentBus.d.ts.map +1 -1
- package/dist/types/core/globalManager.d.ts +3 -4
- package/dist/types/core/globalManager.d.ts.map +1 -1
- package/dist/types/core/initEditorClient.d.ts +3 -4
- package/dist/types/core/initEditorClient.d.ts.map +1 -1
- package/dist/types/isEnabled.d.ts +1 -2
- package/dist/types/isEnabled.d.ts.map +1 -1
- package/dist/types/mergeIframeClick.d.ts +1 -2
- package/dist/types/mergeIframeClick.d.ts.map +1 -1
- package/dist/types/messageKey.d.ts +1 -2
- package/dist/types/messageKey.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
* @param url2 - The second URL to compare.
|
|
16
16
|
* @returns Whether the two URLs are equal.
|
|
17
17
|
*/
|
|
18
|
-
declare const compareUrls: (url1: string, url2: string) => boolean;
|
|
18
|
+
export declare const compareUrls: (url1: string, url2: string) => boolean;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { compareUrls };
|
|
21
20
|
//# sourceMappingURL=compareUrls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compareUrls.d.ts","names":[],"sources":["../../src/compareUrls.ts"],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"compareUrls.d.ts","names":[],"sources":["../../src/compareUrls.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAgBa,cAAW,cAAgB"}
|
|
@@ -17,7 +17,7 @@ declare const _HTMLElement: {
|
|
|
17
17
|
* @prop {boolean} isSelecting - Whether this element is currently selected (external state)
|
|
18
18
|
* @prop {number} pressDuration - Long-press threshold in ms. Default: 250
|
|
19
19
|
*/
|
|
20
|
-
declare class IntlayerContentSelectorElement extends _HTMLElement {
|
|
20
|
+
export declare class IntlayerContentSelectorElement extends _HTMLElement {
|
|
21
21
|
private _isSelecting;
|
|
22
22
|
private _pressDuration;
|
|
23
23
|
private _isHovered;
|
|
@@ -48,7 +48,6 @@ declare class IntlayerContentSelectorElement extends _HTMLElement {
|
|
|
48
48
|
* Call this once at application startup (inside IntlayerEditorProvider or similar).
|
|
49
49
|
* Safe to call multiple times — only registers elements that are not yet defined.
|
|
50
50
|
*/
|
|
51
|
-
declare const defineIntlayerElements: () => void;
|
|
51
|
+
export declare const defineIntlayerElements: () => void;
|
|
52
52
|
//#endregion
|
|
53
|
-
export { IntlayerContentSelectorElement, defineIntlayerElements };
|
|
54
53
|
//# sourceMappingURL=ContentSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/components/ContentSelector.ts"],"mappings":";cA4BM;UAAA;aAAA;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ContentSelector.d.ts","names":[],"sources":["../../../src/components/ContentSelector.ts"],"mappings":";cA4BM;UAAA;aAAA;;;;;;;;;;;;;;;;qBAmBO,uCAAuC;UAC1C;UACA;UACA;UACA;UACA;UACA;UACA;aAEG;MAIP;MAGA,YAAY;MAKZ;MAGA,cAAc;EAIlB;EA2BA,yBACE,cACA,wBACA;EAWF;EAYA;UAQQ;UAUA;UAOA;UAMA;UASA;UAMA;UASA;UAOA;;;;;;;qBAWG"}
|
|
@@ -17,7 +17,7 @@ declare const _HTMLElement: {
|
|
|
17
17
|
* @attr {string} key-path - JSON-serialized KeyPath[] for this content node
|
|
18
18
|
* @attr {string} dictionary-key - The dictionary key owning this content node
|
|
19
19
|
*/
|
|
20
|
-
declare class IntlayerContentSelectorWrapperElement extends _HTMLElement {
|
|
20
|
+
export declare class IntlayerContentSelectorWrapperElement extends _HTMLElement {
|
|
21
21
|
private _keyPathJson;
|
|
22
22
|
private _dictionaryKey;
|
|
23
23
|
private _editorEnabled;
|
|
@@ -54,7 +54,6 @@ declare class IntlayerContentSelectorWrapperElement extends _HTMLElement {
|
|
|
54
54
|
private _render;
|
|
55
55
|
private _rebuildContent;
|
|
56
56
|
}
|
|
57
|
-
declare const defineIntlayerContentSelectorWrapper: () => void;
|
|
57
|
+
export declare const defineIntlayerContentSelectorWrapper: () => void;
|
|
58
58
|
//#endregion
|
|
59
|
-
export { IntlayerContentSelectorWrapperElement, defineIntlayerContentSelectorWrapper };
|
|
60
59
|
//# sourceMappingURL=ContentSelectorWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentSelectorWrapper.d.ts","names":[],"sources":["../../../src/components/ContentSelectorWrapper.ts"],"mappings":";cAkBM;UAAA;aAAA;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ContentSelectorWrapper.d.ts","names":[],"sources":["../../../src/components/ContentSelectorWrapper.ts"],"mappings":";cAkBM;UAAA;aAAA;;;;;;;;;;;;;;;;qBAmBO,8CAA8C;UACjD;UACA;UACA;UACA;UACA;UACA;UAEA;UACA;UAEA;UACA;UACA;UACA;aAEG;MAIP;MAGA,YAAY;MAMZ;MAGA,cAAc;EAMlB;EAQA,yBACE,cACA,wBACA;EAaF;EAQA;UAIQ;UAWA;UAQA;UAMA;UAkDA;UAwBA;UA6DA;UASA;UAwBA;UA+BA;UAWA;UAWA;UAQA;UA+BA;;qBAkCG"}
|
|
@@ -17,7 +17,7 @@ declare const _HTMLElement: {
|
|
|
17
17
|
* @attr {string} key-path - JSON-serialized KeyPath[] for this content node
|
|
18
18
|
* @attr {string} locale - The current locale string
|
|
19
19
|
*/
|
|
20
|
-
declare class IntlayerEditedContentElement extends _HTMLElement {
|
|
20
|
+
export declare class IntlayerEditedContentElement extends _HTMLElement {
|
|
21
21
|
private _dictionaryKey;
|
|
22
22
|
private _keyPathJson;
|
|
23
23
|
private _locale;
|
|
@@ -44,7 +44,6 @@ declare class IntlayerEditedContentElement extends _HTMLElement {
|
|
|
44
44
|
private _setupManagerSubscriptions;
|
|
45
45
|
private _subscribeToManager;
|
|
46
46
|
}
|
|
47
|
-
declare const defineIntlayerEditedContent: () => void;
|
|
47
|
+
export declare const defineIntlayerEditedContent: () => void;
|
|
48
48
|
//#endregion
|
|
49
|
-
export { IntlayerEditedContentElement, defineIntlayerEditedContent };
|
|
50
49
|
//# sourceMappingURL=EditedContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditedContent.d.ts","names":[],"sources":["../../../src/components/EditedContent.ts"],"mappings":";cAQM;UAAA;aAAA;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"EditedContent.d.ts","names":[],"sources":["../../../src/components/EditedContent.ts"],"mappings":";cAQM;UAAA;aAAA;;;;;;;;;;;;;;;;qBAmBO,qCAAqC;UACxC;UACA;UACA;UACA;UAEA;UACA;UAEA;UACA;aAEG;MAIP;MAGA,cAAc;MAKd;MAGA,YAAY;MAKZ;MAGA,OAAO;EAIX;EAgBA,yBACE,cACA,wBACA;EAcF;EAIA;UAIQ;UAOA;UAQA;UAaA;UA2CA;UAUA;;qBAmBG"}
|
|
@@ -23,7 +23,7 @@ declare const _HTMLElement: {
|
|
|
23
23
|
* // Vue
|
|
24
24
|
* <intlayer-editor :configuration="config" :locale="currentLocale" />
|
|
25
25
|
*/
|
|
26
|
-
declare class IntlayerEditorElement extends _HTMLElement {
|
|
26
|
+
export declare class IntlayerEditorElement extends _HTMLElement {
|
|
27
27
|
private _configuration;
|
|
28
28
|
private _locale;
|
|
29
29
|
private _initialized;
|
|
@@ -39,7 +39,6 @@ declare class IntlayerEditorElement extends _HTMLElement {
|
|
|
39
39
|
private _init;
|
|
40
40
|
private _syncLocale;
|
|
41
41
|
}
|
|
42
|
-
declare const defineIntlayerEditorElement: () => void;
|
|
42
|
+
export declare const defineIntlayerEditorElement: () => void;
|
|
43
43
|
//#endregion
|
|
44
|
-
export { IntlayerEditorElement, defineIntlayerEditorElement };
|
|
45
44
|
//# sourceMappingURL=IntlayerEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerEditor.d.ts","names":[],"sources":["../../../src/components/IntlayerEditor.ts"],"mappings":";;cAQM;UAAA;aAAA;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"IntlayerEditor.d.ts","names":[],"sources":["../../../src/components/IntlayerEditor.ts"],"mappings":";;cAQM;UAAA;aAAA;;;;;;;;;;;;;;;;;;;;;qBAwBO,8BAA8B;UACjC;UACA;UACA;UACA;aAEG;MAIP,iBAAiB;MAGjB,cAAc,GAAG;MAKjB;MAGA,OAAO;EAKX,yBACE,cACA,wBACA;EAQF;EAIA;UASQ;UAOA;;qBAkBG"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//#region src/core/CrossFrameMessenger.d.ts
|
|
2
|
-
type MessagePayload = {
|
|
2
|
+
export type MessagePayload = {
|
|
3
3
|
type: string;
|
|
4
4
|
data?: unknown;
|
|
5
5
|
senderId?: string;
|
|
6
6
|
/** Unique ID per send() call — used to deduplicate when the same payload arrives via multiple target origins */
|
|
7
7
|
messageId?: string;
|
|
8
8
|
};
|
|
9
|
-
type MessengerConfig = {
|
|
9
|
+
export type MessengerConfig = {
|
|
10
10
|
/**
|
|
11
11
|
* Origins allowed to send messages to this instance.
|
|
12
12
|
* Use '*' to allow all origins (not recommended for production).
|
|
@@ -26,7 +26,7 @@ type MessageHandler<T = unknown> = (data: T, senderId?: string) => void;
|
|
|
26
26
|
*
|
|
27
27
|
* Replaces CommunicatorContext + useCrossFrameMessageListener across all frameworks.
|
|
28
28
|
*/
|
|
29
|
-
declare class CrossFrameMessenger {
|
|
29
|
+
export declare class CrossFrameMessenger {
|
|
30
30
|
readonly senderId: string;
|
|
31
31
|
private readonly _config;
|
|
32
32
|
private readonly _subscribers;
|
|
@@ -50,5 +50,4 @@ declare class CrossFrameMessenger {
|
|
|
50
50
|
private _handleMessage;
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
53
|
-
export { CrossFrameMessenger, MessagePayload, MessengerConfig };
|
|
54
53
|
//# sourceMappingURL=CrossFrameMessenger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CrossFrameMessenger.d.ts","names":[],"sources":["../../../src/core/CrossFrameMessenger.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"CrossFrameMessenger.d.ts","names":[],"sources":["../../../src/core/CrossFrameMessenger.ts"],"mappings":";YAIY;EACV;EACA;EACA;;EAEA;;YAGU;;;;;EAKV;;;;;EAKA,gBAAgB,SAAS,gBAAgB;;KAGtC,eAAe,gBAAgB,MAAM,GAAG;;;;;;;;qBAShC;WACF;mBACQ;mBACA;UAET;;mBAES;;mBAEA;EAEjB,YAAY,QAAQ;;EAMpB;;EAUA;;EAQA,KAAK,cAAc;;;;;EAmBnB,UAAU,aAAa,cAAc,SAAS,eAAe;UAUrD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CrossFrameMessenger } from "./CrossFrameMessenger.js";
|
|
2
2
|
//#region src/core/CrossFrameStateManager.d.ts
|
|
3
|
-
type CrossFrameStateOptions = {
|
|
3
|
+
export type CrossFrameStateOptions = {
|
|
4
4
|
/** Whether to broadcast state changes to other frames. Default: true */
|
|
5
5
|
emit?: boolean;
|
|
6
6
|
/** Whether to listen for state updates from other frames. Default: true */
|
|
@@ -13,7 +13,7 @@ type CrossFrameStateOptions = {
|
|
|
13
13
|
* Updaters are resolved locally before broadcasting: a function can never be
|
|
14
14
|
* structured-cloned by `postMessage`, so only the resolved value crosses frames.
|
|
15
15
|
*/
|
|
16
|
-
type CrossFrameStateAction<T> = T | ((previousValue: T | undefined) => T);
|
|
16
|
+
export type CrossFrameStateAction<T> = T | ((previousValue: T | undefined) => T);
|
|
17
17
|
/**
|
|
18
18
|
* CrossFrameStateManager synchronizes a single named value across frames using
|
|
19
19
|
* the postMessage API via CrossFrameMessenger.
|
|
@@ -26,7 +26,7 @@ type CrossFrameStateAction<T> = T | ((previousValue: T | undefined) => T);
|
|
|
26
26
|
*
|
|
27
27
|
* @fires change — CustomEvent<T> dispatched whenever the value changes (local set or received)
|
|
28
28
|
*/
|
|
29
|
-
declare class CrossFrameStateManager<T> extends EventTarget {
|
|
29
|
+
export declare class CrossFrameStateManager<T> extends EventTarget {
|
|
30
30
|
private _value;
|
|
31
31
|
private readonly _key;
|
|
32
32
|
private readonly _messenger;
|
|
@@ -56,5 +56,4 @@ declare class CrossFrameStateManager<T> extends EventTarget {
|
|
|
56
56
|
postCurrentValue(): void;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
|
-
export { CrossFrameStateAction, CrossFrameStateManager, CrossFrameStateOptions };
|
|
60
59
|
//# sourceMappingURL=CrossFrameStateManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CrossFrameStateManager.d.ts","names":[],"sources":["../../../src/core/CrossFrameStateManager.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"CrossFrameStateManager.d.ts","names":[],"sources":["../../../src/core/CrossFrameStateManager.ts"],"mappings":";;YAEY;;EAEV;;EAEA;;;;;;;;;YAUU,sBAAsB,KAC9B,MACE,eAAe,kBAAkB;;;;;;;;;;;;;qBAc1B,uBAAuB,WAAW;UACrC;mBACS;mBACA;mBACA;mBACA;EAEjB,YACE,aACA,WAAW,qBACX,UAAS;IAA2B,eAAe;;MAcjD,SAAS;;;;;;;;;EAYb,IAAI,UAAU,sBAAsB;;;;;EAiBpC;;EAgCA;;EAMA"}
|
|
@@ -5,14 +5,14 @@ import { Locale } from "@intlayer/types/allLocales";
|
|
|
5
5
|
import { ContentNode, Dictionary, LocalDictionaryId } from "@intlayer/types/dictionary";
|
|
6
6
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
7
7
|
//#region src/core/EditorStateManager.d.ts
|
|
8
|
-
type DictionaryContent = Record<LocalDictionaryId, Dictionary>;
|
|
8
|
+
export type DictionaryContent = Record<LocalDictionaryId, Dictionary>;
|
|
9
9
|
type EditorConfig = Pick<IntlayerConfig, 'editor'>;
|
|
10
|
-
type FileContent = {
|
|
10
|
+
export type FileContent = {
|
|
11
11
|
dictionaryKey: string;
|
|
12
12
|
dictionaryLocalId?: LocalDictionaryId;
|
|
13
13
|
keyPath?: KeyPath[];
|
|
14
14
|
};
|
|
15
|
-
type EditorStateManagerConfig = {
|
|
15
|
+
export type EditorStateManagerConfig = {
|
|
16
16
|
/** 'client' = the app running inside the iframe; 'editor' = the editor wrapping the app */
|
|
17
17
|
mode: 'editor' | 'client';
|
|
18
18
|
/** Cross-frame messaging configuration */
|
|
@@ -28,7 +28,7 @@ type EditorStateManagerConfig = {
|
|
|
28
28
|
* Replaces all context providers, hooks and store files across React, Preact,
|
|
29
29
|
* Solid, Svelte, and Vue integrations.
|
|
30
30
|
*/
|
|
31
|
-
declare class EditorStateManager {
|
|
31
|
+
export declare class EditorStateManager {
|
|
32
32
|
readonly messenger: CrossFrameMessenger;
|
|
33
33
|
readonly editorEnabled: CrossFrameStateManager<boolean>;
|
|
34
34
|
readonly focusedContent: CrossFrameStateManager<FileContent | null>;
|
|
@@ -89,5 +89,4 @@ declare class EditorStateManager {
|
|
|
89
89
|
private _loadDictionaries;
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
|
-
export { DictionaryContent, EditorStateManager, EditorStateManagerConfig, FileContent };
|
|
93
92
|
//# sourceMappingURL=EditorStateManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorStateManager.d.ts","names":[],"sources":["../../../src/core/EditorStateManager.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"EditorStateManager.d.ts","names":[],"sources":["../../../src/core/EditorStateManager.ts"],"mappings":";;;;;;;YAiCY,oBAAoB,OAAO,mBAAmB;KAErD,eAAe,KAAK;YAEb;EACV;EACA,oBAAoB;EACpB,UAAU;;YAGA;;EAEV;;EAEA,WAAW;;EAEX,gBAAgB;;;;;;;;;;qBAWL;WACF,WAAW;WACX,eAAe;WACf,gBAAgB,uBAAuB;WACvC,oBAAoB,uBAAuB;WAC3C,eAAe,uBAAuB;WACtC,eAAe,uBAAuB;WACtC,eAAe,uBAAuB;WACtC,yBAAyB;mBAEjB;mBACA;mBACA;mBACA;UAGT;UACA;UAEA;UAGA;UACA;UACA;UAGA;UACA;UACA;UAGA;UACA;UACA;EAER,YAAY,QAAQ;EA+DpB;EA6BA;;;;;EA6BA;EAQA,yBAAyB,SAAS;EAalC,oBAAoB,YAAY;EAYhC,oBAAoB,SAAS;EAa7B,iBACE,mBAAmB,mBACnB,UAAU;EAaZ,WACE,mBAAmB,mBACnB,UAAU,aACV,UAAS,WACT;EAgDF,cACE,mBAAmB,mBACnB,QAAQ,gBACR,UAAS;EAmBX,cACE,mBAAmB,mBACnB,SAAS;EAwBX,eAAe,mBAAmB;EASlC,aAAa,mBAAmB;EAShC;EAIA,gBACE,wBAAwB,4BACxB,SAAS,YACR;UAsDK;UA+BA;UAcA;UA4BA;UAcA;UAeA;UA8BA;;;;;UAmBA;UAcA;UAsBA;UA2BM"}
|
|
@@ -8,7 +8,7 @@ import { CrossFrameMessenger } from "./CrossFrameMessenger.js";
|
|
|
8
8
|
*
|
|
9
9
|
* Replaces useIframeClickInterceptor / useIframeClickMerger across all frameworks.
|
|
10
10
|
*/
|
|
11
|
-
declare class IframeClickInterceptor {
|
|
11
|
+
export declare class IframeClickInterceptor {
|
|
12
12
|
private readonly _messenger;
|
|
13
13
|
private _mousedownHandler;
|
|
14
14
|
private _unsubscribeMerge;
|
|
@@ -21,5 +21,4 @@ declare class IframeClickInterceptor {
|
|
|
21
21
|
stopMerger(): void;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
export { IframeClickInterceptor };
|
|
25
24
|
//# sourceMappingURL=IframeClickInterceptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IframeClickInterceptor.d.ts","names":[],"sources":["../../../src/core/IframeClickInterceptor.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"IframeClickInterceptor.d.ts","names":[],"sources":["../../../src/core/IframeClickInterceptor.ts"],"mappings":";;;;;;;;;;qBAYa;mBACM;UACT;UACA;EAER,YAAY,WAAW;;EAKvB;;EASA;EAOA;EAOA"}
|
|
@@ -6,7 +6,7 @@ import { CrossFrameMessenger } from "./CrossFrameMessenger.js";
|
|
|
6
6
|
*
|
|
7
7
|
* Replaces useCrossURLPathSetter / useCrossURLPathState across all frameworks.
|
|
8
8
|
*/
|
|
9
|
-
declare class UrlStateManager {
|
|
9
|
+
export declare class UrlStateManager {
|
|
10
10
|
private readonly _messenger;
|
|
11
11
|
private _originalPushState;
|
|
12
12
|
private _originalReplaceState;
|
|
@@ -16,5 +16,4 @@ declare class UrlStateManager {
|
|
|
16
16
|
stop(): void;
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
export { UrlStateManager };
|
|
20
19
|
//# sourceMappingURL=UrlStateManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UrlStateManager.d.ts","names":[],"sources":["../../../src/core/UrlStateManager.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"UrlStateManager.d.ts","names":[],"sources":["../../../src/core/UrlStateManager.ts"],"mappings":";;;;;;;;qBASa;mBACM;UACT;UACA;UACA;EAER,YAAY,WAAW;EAIvB;EA2CA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { DictionaryContent } from "./EditorStateManager.js";
|
|
2
2
|
//#region src/core/editedContentBus.d.ts
|
|
3
|
-
declare const getGlobalEditedContent: () => DictionaryContent;
|
|
4
|
-
declare const setGlobalEditedContent: (content: DictionaryContent, sourceId?: string) => void;
|
|
5
|
-
declare const subscribeToGlobalEditedContent: (cb: (content: DictionaryContent, sourceId?: string) => void) => (() => void);
|
|
3
|
+
export declare const getGlobalEditedContent: () => DictionaryContent;
|
|
4
|
+
export declare const setGlobalEditedContent: (content: DictionaryContent, sourceId?: string) => void;
|
|
5
|
+
export declare const subscribeToGlobalEditedContent: (cb: (content: DictionaryContent, sourceId?: string) => void) => (() => void);
|
|
6
6
|
//#endregion
|
|
7
|
-
export { getGlobalEditedContent, setGlobalEditedContent, subscribeToGlobalEditedContent };
|
|
8
7
|
//# sourceMappingURL=editedContentBus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editedContentBus.d.ts","names":[],"sources":["../../../src/core/editedContentBus.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"editedContentBus.d.ts","names":[],"sources":["../../../src/core/editedContentBus.ts"],"mappings":";;qBAmBa,8BAA6B;qBAK7B,yBAAsB,SACxB,mBAAiB;qBAWf,iCAA8B,KACpC,SAAS,mBAAmB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FileContent } from "./EditorStateManager.js";
|
|
2
2
|
//#region src/core/focusedContentBus.d.ts
|
|
3
|
-
declare const getGlobalFocusedContent: () => FileContent | null | undefined;
|
|
4
|
-
declare const setGlobalFocusedContent: (content: FileContent | null, sourceId?: string) => void;
|
|
5
|
-
declare const subscribeToGlobalFocusedContent: (cb: (content: FileContent | null, sourceId?: string) => void) => (() => void);
|
|
3
|
+
export declare const getGlobalFocusedContent: () => FileContent | null | undefined;
|
|
4
|
+
export declare const setGlobalFocusedContent: (content: FileContent | null, sourceId?: string) => void;
|
|
5
|
+
export declare const subscribeToGlobalFocusedContent: (cb: (content: FileContent | null, sourceId?: string) => void) => (() => void);
|
|
6
6
|
//#endregion
|
|
7
|
-
export { getGlobalFocusedContent, setGlobalFocusedContent, subscribeToGlobalFocusedContent };
|
|
8
7
|
//# sourceMappingURL=focusedContentBus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusedContentBus.d.ts","names":[],"sources":["../../../src/core/focusedContentBus.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"focusedContentBus.d.ts","names":[],"sources":["../../../src/core/focusedContentBus.ts"],"mappings":";;qBAoBa,+BAA8B;qBAO9B,0BAAuB,SACzB,oBAAkB;qBAahB,kCAA+B,KACrC,SAAS,oBAAoB"}
|
|
@@ -7,14 +7,14 @@ import { EditorStateManager } from "./EditorStateManager.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @returns The global EditorStateManager instance or null if not set
|
|
9
9
|
*/
|
|
10
|
-
declare const getGlobalEditorManager: () => EditorStateManager | null;
|
|
10
|
+
export declare const getGlobalEditorManager: () => EditorStateManager | null;
|
|
11
11
|
/**
|
|
12
12
|
* Sets the global editor state manager instance and notifies all listeners
|
|
13
13
|
* of the change through a CustomEvent.
|
|
14
14
|
*
|
|
15
15
|
* @param manager - The EditorStateManager instance to set globally, or null to clear it
|
|
16
16
|
*/
|
|
17
|
-
declare const setGlobalEditorManager: (manager: EditorStateManager | null) => void;
|
|
17
|
+
export declare const setGlobalEditorManager: (manager: EditorStateManager | null) => void;
|
|
18
18
|
/**
|
|
19
19
|
* Registers a callback function to be invoked whenever the global editor
|
|
20
20
|
* manager changes. Useful for reactive updates across the application.
|
|
@@ -32,7 +32,6 @@ declare const setGlobalEditorManager: (manager: EditorStateManager | null) => vo
|
|
|
32
32
|
* unsubscribe();
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
declare const onGlobalEditorManagerChange: (changeCallback: (manager: EditorStateManager | null) => void) => (() => void);
|
|
35
|
+
export declare const onGlobalEditorManagerChange: (changeCallback: (manager: EditorStateManager | null) => void) => (() => void);
|
|
36
36
|
//#endregion
|
|
37
|
-
export { getGlobalEditorManager, onGlobalEditorManagerChange, setGlobalEditorManager };
|
|
38
37
|
//# sourceMappingURL=globalManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalManager.d.ts","names":[],"sources":["../../../src/core/globalManager.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"globalManager.d.ts","names":[],"sources":["../../../src/core/globalManager.ts"],"mappings":";;;;;;;;;qBAmDa,8BAA6B;;;;;;;qBAiB7B,yBAAsB,SACxB;;;;;;;;;;;;;;;;;;qBA+BE,8BAA2B,iBACrB,SAAS"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { MessengerConfig } from "./CrossFrameMessenger.js";
|
|
2
2
|
import { EditorStateManager } from "./EditorStateManager.js";
|
|
3
3
|
//#region src/core/initEditorClient.d.ts
|
|
4
|
-
declare const buildClientMessengerConfig: () => MessengerConfig;
|
|
4
|
+
export declare const buildClientMessengerConfig: () => MessengerConfig;
|
|
5
5
|
/**
|
|
6
6
|
* Initialize the Intlayer editor client singleton.
|
|
7
7
|
* Safe to call multiple times — returns the existing manager if already initialized.
|
|
8
8
|
* Increments a reference counter so nested providers don't destroy the manager
|
|
9
9
|
* prematurely when the inner provider unmounts.
|
|
10
10
|
*/
|
|
11
|
-
declare const initEditorClient: () => EditorStateManager;
|
|
11
|
+
export declare const initEditorClient: () => EditorStateManager;
|
|
12
12
|
/**
|
|
13
13
|
* Decrement the reference count and stop the global editor client singleton
|
|
14
14
|
* only when the last provider unmounts.
|
|
15
15
|
*/
|
|
16
|
-
declare const stopEditorClient: () => void;
|
|
16
|
+
export declare const stopEditorClient: () => void;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { buildClientMessengerConfig, initEditorClient, stopEditorClient };
|
|
19
18
|
//# sourceMappingURL=initEditorClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initEditorClient.d.ts","names":[],"sources":["../../../src/core/initEditorClient.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"initEditorClient.d.ts","names":[],"sources":["../../../src/core/initEditorClient.ts"],"mappings":";;;qBASa,kCAAiC;;;;;;;qBAoCjC,wBAAuB;;;;;qBAuBvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEnabled.d.ts","names":[],"sources":["../../src/isEnabled.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"isEnabled.d.ts","names":[],"sources":["../../src/isEnabled.ts"],"mappings":";qBAIa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeIframeClick.d.ts","names":[],"sources":["../../src/mergeIframeClick.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"mergeIframeClick.d.ts","names":[],"sources":["../../src/mergeIframeClick.ts"],"mappings":";qBACa,mBAAgB,OAAW"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/messageKey.d.ts
|
|
2
|
-
declare enum MessageKey {
|
|
2
|
+
export declare enum MessageKey {
|
|
3
3
|
/** Client → editor: announces the client is ready (also used as response to ARE_YOU_THERE) */
|
|
4
4
|
INTLAYER_CLIENT_READY = "INTLAYER_CLIENT_READY",
|
|
5
5
|
/** Editor → client: asks if the client is still alive */
|
|
@@ -25,5 +25,4 @@ declare enum MessageKey {
|
|
|
25
25
|
INTLAYER_DISPLAYED_DICTIONARY_KEYS = "INTLAYER_DISPLAYED_DICTIONARY_KEYS"
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
|
-
export { MessageKey };
|
|
29
28
|
//# sourceMappingURL=messageKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageKey.d.ts","names":[],"sources":["../../src/messageKey.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"messageKey.d.ts","names":[],"sources":["../../src/messageKey.ts"],"mappings":";oBAAY;;EAEV;;EAEA;;EAEA;;EAEA;;EAGA;EACA;EACA;;EAGA;EACA;;EAGA;EACA;EACA;;EAGA;;EAGA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/editor",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Provides the utilities to interface the application with the Intlayer editor and manipulate dictionaries",
|
|
6
6
|
"keywords": [
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@intlayer/config": "9.4.
|
|
79
|
-
"@intlayer/core": "9.4.
|
|
80
|
-
"@intlayer/types": "9.4.
|
|
81
|
-
"@intlayer/unmerged-dictionaries-entry": "9.4.
|
|
78
|
+
"@intlayer/config": "9.4.4",
|
|
79
|
+
"@intlayer/core": "9.4.4",
|
|
80
|
+
"@intlayer/types": "9.4.4",
|
|
81
|
+
"@intlayer/unmerged-dictionaries-entry": "9.4.4"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@types/node": "26.4.1",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"@utils/ts-config-types": "1.0.4",
|
|
87
87
|
"@utils/tsdown-config": "1.0.4",
|
|
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
|
"engines": {
|
|
94
94
|
"node": ">=14.18"
|