angular-intlayer 8.3.3 → 8.3.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/cjs/editor/ContentSelectorWrapper.component.cjs +14 -9
- package/dist/cjs/editor/ContentSelectorWrapper.component.cjs.map +1 -1
- package/dist/cjs/editor/EditedContentRenderer.component.cjs +1 -1
- package/dist/cjs/editor/EditedContentRenderer.component.cjs.map +1 -1
- package/dist/cjs/editor/communicator.cjs +1 -1
- package/dist/cjs/editor/communicator.cjs.map +1 -1
- package/dist/cjs/editor/configuration.cjs +1 -1
- package/dist/cjs/editor/configuration.cjs.map +1 -1
- package/dist/cjs/editor/dictionariesRecord.cjs +1 -1
- package/dist/cjs/editor/dictionariesRecord.cjs.map +1 -1
- package/dist/cjs/editor/editedContent.cjs +1 -1
- package/dist/cjs/editor/editedContent.cjs.map +1 -1
- package/dist/cjs/editor/editorEnabled.cjs +1 -1
- package/dist/cjs/editor/editorEnabled.cjs.map +1 -1
- package/dist/cjs/editor/editorLocale.cjs +1 -1
- package/dist/cjs/editor/editorLocale.cjs.map +1 -1
- package/dist/cjs/editor/focusDictionary.cjs +1 -1
- package/dist/cjs/editor/focusDictionary.cjs.map +1 -1
- package/dist/cjs/editor/index.cjs +1 -1
- package/dist/cjs/editor/installIntlayerEditor.cjs +1 -1
- package/dist/cjs/editor/installIntlayerEditor.cjs.map +1 -1
- package/dist/cjs/editor/useCrossFrameMessageListener.cjs +1 -1
- package/dist/cjs/editor/useCrossFrameMessageListener.cjs.map +1 -1
- package/dist/cjs/editor/useCrossFrameState.cjs +1 -1
- package/dist/cjs/editor/useCrossFrameState.cjs.map +1 -1
- package/dist/cjs/editor/useCrossURLPathState.cjs +1 -1
- package/dist/cjs/editor/useCrossURLPathState.cjs.map +1 -1
- package/dist/cjs/editor/useEditor.cjs +1 -1
- package/dist/cjs/editor/useEditor.cjs.map +1 -1
- package/dist/cjs/editor/useIframeClickInterceptor.cjs +1 -1
- package/dist/cjs/editor/useIframeClickInterceptor.cjs.map +1 -1
- package/dist/esm/editor/ContentSelectorWrapper.component.mjs +14 -9
- package/dist/esm/editor/ContentSelectorWrapper.component.mjs.map +1 -1
- package/dist/esm/editor/EditedContentRenderer.component.mjs +1 -1
- package/dist/esm/editor/EditedContentRenderer.component.mjs.map +1 -1
- package/dist/esm/editor/communicator.mjs +1 -1
- package/dist/esm/editor/communicator.mjs.map +1 -1
- package/dist/esm/editor/configuration.mjs +1 -1
- package/dist/esm/editor/configuration.mjs.map +1 -1
- package/dist/esm/editor/dictionariesRecord.mjs +1 -1
- package/dist/esm/editor/dictionariesRecord.mjs.map +1 -1
- package/dist/esm/editor/editedContent.mjs +1 -1
- package/dist/esm/editor/editedContent.mjs.map +1 -1
- package/dist/esm/editor/editorEnabled.mjs +1 -1
- package/dist/esm/editor/editorEnabled.mjs.map +1 -1
- package/dist/esm/editor/editorLocale.mjs +1 -1
- package/dist/esm/editor/editorLocale.mjs.map +1 -1
- package/dist/esm/editor/focusDictionary.mjs +1 -1
- package/dist/esm/editor/focusDictionary.mjs.map +1 -1
- package/dist/esm/editor/index.mjs +1 -1
- package/dist/esm/editor/installIntlayerEditor.mjs +1 -1
- package/dist/esm/editor/installIntlayerEditor.mjs.map +1 -1
- package/dist/esm/editor/useCrossFrameMessageListener.mjs +1 -1
- package/dist/esm/editor/useCrossFrameMessageListener.mjs.map +1 -1
- package/dist/esm/editor/useCrossFrameState.mjs +1 -1
- package/dist/esm/editor/useCrossFrameState.mjs.map +1 -1
- package/dist/esm/editor/useCrossURLPathState.mjs +1 -1
- package/dist/esm/editor/useCrossURLPathState.mjs.map +1 -1
- package/dist/esm/editor/useEditor.mjs +1 -1
- package/dist/esm/editor/useEditor.mjs.map +1 -1
- package/dist/esm/editor/useIframeClickInterceptor.mjs +1 -1
- package/dist/esm/editor/useIframeClickInterceptor.mjs.map +1 -1
- package/dist/types/editor/ContentSelectorWrapper.component.d.ts +9 -12
- package/dist/types/editor/ContentSelectorWrapper.component.d.ts.map +1 -1
- package/dist/types/editor/communicator.d.ts +3 -27
- package/dist/types/editor/communicator.d.ts.map +1 -1
- package/dist/types/editor/configuration.d.ts +4 -1
- package/dist/types/editor/configuration.d.ts.map +1 -1
- package/dist/types/editor/dictionariesRecord.d.ts +6 -12
- package/dist/types/editor/dictionariesRecord.d.ts.map +1 -1
- package/dist/types/editor/editedContent.d.ts +27 -16
- package/dist/types/editor/editedContent.d.ts.map +1 -1
- package/dist/types/editor/editorEnabled.d.ts +4 -15
- package/dist/types/editor/editorEnabled.d.ts.map +1 -1
- package/dist/types/editor/editorLocale.d.ts.map +1 -1
- package/dist/types/editor/focusDictionary.d.ts +6 -20
- package/dist/types/editor/focusDictionary.d.ts.map +1 -1
- package/dist/types/editor/index.d.ts +13 -2
- package/dist/types/editor/installIntlayerEditor.d.ts +4 -17
- package/dist/types/editor/installIntlayerEditor.d.ts.map +1 -1
- package/dist/types/editor/useCrossFrameMessageListener.d.ts +0 -8
- package/dist/types/editor/useCrossFrameMessageListener.d.ts.map +1 -1
- package/dist/types/editor/useCrossFrameState.d.ts +2 -16
- package/dist/types/editor/useCrossFrameState.d.ts.map +1 -1
- package/dist/types/editor/useCrossURLPathState.d.ts +2 -17
- package/dist/types/editor/useCrossURLPathState.d.ts.map +1 -1
- package/dist/types/editor/useEditor.d.ts.map +1 -1
- package/dist/types/editor/useIframeClickInterceptor.d.ts +0 -8
- package/dist/types/editor/useIframeClickInterceptor.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _angular_core0 from "@angular/core";
|
|
2
2
|
import { ContentNode, Dictionary, LocalDictionaryId } from "@intlayer/types/dictionary";
|
|
3
3
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
4
|
+
import { DictionaryContent } from "@intlayer/editor";
|
|
4
5
|
|
|
5
6
|
//#region src/editor/editedContent.d.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
declare const useEditedContent: () => {
|
|
8
|
+
editedContent: _angular_core0.Signal<DictionaryContent>;
|
|
9
|
+
setEditedContentState: (value: DictionaryContent) => void;
|
|
10
|
+
setEditedDictionary: (dict: Dictionary) => void;
|
|
11
|
+
setEditedContent: (localId: LocalDictionaryId, value: Dictionary["content"]) => void;
|
|
12
|
+
addEditedContent: (localId: LocalDictionaryId, value: ContentNode, keyPath?: KeyPath[], overwrite?: boolean) => void;
|
|
13
|
+
renameEditedContent: (localId: LocalDictionaryId, newKey: KeyPath["key"], keyPath?: KeyPath[]) => void;
|
|
14
|
+
removeEditedContent: (localId: LocalDictionaryId, keyPath: KeyPath[]) => void;
|
|
15
|
+
restoreEditedContent: (localId: LocalDictionaryId) => void;
|
|
16
|
+
clearEditedDictionaryContent: (localId: LocalDictionaryId) => void;
|
|
17
|
+
clearEditedContent: () => void;
|
|
18
|
+
getEditedContentValue: (localIdOrKey: LocalDictionaryId | string, keyPath: KeyPath[]) => ContentNode | undefined;
|
|
19
|
+
};
|
|
20
|
+
declare const useEditedContentActions: () => {
|
|
21
|
+
setEditedContentState: (value: DictionaryContent) => void;
|
|
22
|
+
setEditedDictionary: (dict: Dictionary) => void;
|
|
23
|
+
setEditedContent: (localId: LocalDictionaryId, value: Dictionary["content"]) => void;
|
|
24
|
+
addEditedContent: (localId: LocalDictionaryId, value: ContentNode, keyPath?: KeyPath[], overwrite?: boolean) => void;
|
|
25
|
+
renameEditedContent: (localId: LocalDictionaryId, newKey: KeyPath["key"], keyPath?: KeyPath[]) => void;
|
|
26
|
+
removeEditedContent: (localId: LocalDictionaryId, keyPath: KeyPath[]) => void;
|
|
27
|
+
restoreEditedContent: (localId: LocalDictionaryId) => void;
|
|
28
|
+
clearEditedDictionaryContent: (localId: LocalDictionaryId) => void;
|
|
29
|
+
clearEditedContent: () => void;
|
|
30
|
+
getEditedContentValue: (localIdOrKey: LocalDictionaryId | string, keyPath: KeyPath[]) => ContentNode | undefined;
|
|
11
31
|
};
|
|
12
|
-
/**
|
|
13
|
-
* Creates an edited content client
|
|
14
|
-
*/
|
|
15
|
-
declare const createEditedContentClient: () => EditedContentClient;
|
|
16
|
-
/**
|
|
17
|
-
* Helper to install the edited content into the injector
|
|
18
|
-
*/
|
|
19
|
-
declare const installEditedContent: (_injector: Injector) => void;
|
|
20
|
-
declare const useEditedContent: () => EditedContentClient;
|
|
21
32
|
//#endregion
|
|
22
|
-
export {
|
|
33
|
+
export { useEditedContent, useEditedContentActions };
|
|
23
34
|
//# sourceMappingURL=editedContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editedContent.d.ts","names":[],"sources":["../../../src/editor/editedContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"editedContent.d.ts","names":[],"sources":["../../../src/editor/editedContent.ts"],"mappings":";;;;;;cAUa,gBAAA;;iCAqBsB,iBAAA;8BAEH,UAAA;8BAGjB,iBAAA,EAAiB,KAAA,EACnB,UAAA;8BAGE,iBAAA,EAAiB,KAAA,EACnB,WAAA,EAAW,OAAA,GACR,OAAA,IAAS,SAAA;iCAIV,iBAAA,EAAiB,MAAA,EAClB,OAAA,SAAc,OAAA,GACZ,OAAA;iCAEmB,iBAAA,EAAiB,OAAA,EAAW,OAAA;kCAE3B,iBAAA;0CAEQ,iBAAA;;wCAIxB,iBAAA,WAA0B,OAAA,EAC/B,OAAA,OACR,WAAA;AAAA;AAAA,cAKM,uBAAA;iCAlCsB,iBAAA;8BAEH,UAAA;8BAGjB,iBAAA,EAAiB,KAAA,EACnB,UAAA;8BAGE,iBAAA,EAAiB,KAAA,EACnB,WAAA,EAAW,OAAA,GACR,OAAA,IAAS,SAAA;iCAIV,iBAAA,EAAiB,MAAA,EAClB,OAAA,SAAc,OAAA,GACZ,OAAA;iCAEmB,iBAAA,EAAiB,OAAA,EAAW,OAAA;kCAE3B,iBAAA;0CAEQ,iBAAA;;wCAIxB,iBAAA,WAA0B,OAAA,EAC/B,OAAA,OACR,WAAA;AAAA"}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _angular_core0 from "@angular/core";
|
|
2
2
|
|
|
3
3
|
//#region src/editor/editorEnabled.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isInIframe: Signal<boolean>;
|
|
7
|
-
enabled: Signal<boolean>;
|
|
4
|
+
declare const useEditorEnabled: () => {
|
|
5
|
+
enabled: _angular_core0.Signal<boolean>;
|
|
8
6
|
};
|
|
9
|
-
/**
|
|
10
|
-
* Creates an editor wrapperEnabled client
|
|
11
|
-
*/
|
|
12
|
-
declare const createEditorEnabledClient: () => EditorEnabledStateProps;
|
|
13
|
-
/**
|
|
14
|
-
* Helper to install the editor wrapperEnabled state into the injector
|
|
15
|
-
*/
|
|
16
|
-
declare const installEditorEnabled: (_injector: Injector) => void;
|
|
17
|
-
declare const useEditorEnabled: () => EditorEnabledStateProps;
|
|
18
7
|
//#endregion
|
|
19
|
-
export {
|
|
8
|
+
export { useEditorEnabled };
|
|
20
9
|
//# sourceMappingURL=editorEnabled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorEnabled.d.ts","names":[],"sources":["../../../src/editor/editorEnabled.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"editorEnabled.d.ts","names":[],"sources":["../../../src/editor/editorEnabled.ts"],"mappings":";;;cAGa,gBAAA;WAkBZ,cAAA,CAAA,MAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorLocale.d.ts","names":[],"sources":["../../../src/editor/editorLocale.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"editorLocale.d.ts","names":[],"sources":["../../../src/editor/editorLocale.ts"],"mappings":";;cAKa,eAAA,QAAe,gBAAA"}
|
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _angular_core0 from "@angular/core";
|
|
2
2
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
|
+
import { FileContent } from "@intlayer/editor";
|
|
3
4
|
|
|
4
5
|
//#region src/editor/focusDictionary.d.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
dictionaryPath?: string;
|
|
9
|
-
};
|
|
10
|
-
type FocusDictionaryClient = {
|
|
11
|
-
focusedContent: Signal<FileContent | null>;
|
|
12
|
-
setFocusedContent: (focussedContent: FileContent | null) => void;
|
|
6
|
+
declare const useFocusDictionary: () => {
|
|
7
|
+
focusedContent: _angular_core0.Signal<FileContent>;
|
|
8
|
+
setFocusedContent: (value: FileContent | null) => void;
|
|
13
9
|
setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
|
|
14
10
|
};
|
|
15
|
-
/**
|
|
16
|
-
* Creates a focus dictionary client
|
|
17
|
-
*/
|
|
18
|
-
declare const createFocusDictionaryClient: () => FocusDictionaryClient;
|
|
19
|
-
/**
|
|
20
|
-
* Helper to install the focus dictionary into the injector
|
|
21
|
-
*/
|
|
22
|
-
declare const installFocusDictionary: (_injector: Injector) => void;
|
|
23
|
-
/** consumer */
|
|
24
|
-
declare const useFocusDictionary: () => FocusDictionaryClient;
|
|
25
11
|
//#endregion
|
|
26
|
-
export { FileContent,
|
|
12
|
+
export { type FileContent, useFocusDictionary };
|
|
27
13
|
//# sourceMappingURL=focusDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusDictionary.d.ts","names":[],"sources":["../../../src/editor/focusDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"focusDictionary.d.ts","names":[],"sources":["../../../src/editor/focusDictionary.ts"],"mappings":";;;;;cAOa,kBAAA;;6BAqBkB,WAAA;sCAES,OAAA;AAAA"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { ContentSelectorWrapperComponent } from "./ContentSelectorWrapper.component.js";
|
|
2
2
|
import { EditedContentRendererComponent } from "./EditedContentRenderer.component.js";
|
|
3
3
|
import { EditorSelectorRendererComponent } from "./EditorSelectorRenderer.component.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { useCommunicator } from "./communicator.js";
|
|
5
|
+
import { useConfiguration } from "./configuration.js";
|
|
6
|
+
import { DictionaryContent, useDictionariesRecord } from "./dictionariesRecord.js";
|
|
7
|
+
import { useEditedContent, useEditedContentActions } from "./editedContent.js";
|
|
8
|
+
import { useEditorEnabled } from "./editorEnabled.js";
|
|
9
|
+
import { useEditorLocale } from "./editorLocale.js";
|
|
10
|
+
import { FileContent, useFocusDictionary } from "./focusDictionary.js";
|
|
11
|
+
import { getEditorStateManager, installIntlayerEditor } from "./installIntlayerEditor.js";
|
|
12
|
+
import { useCrossFrameMessageListener } from "./useCrossFrameMessageListener.js";
|
|
13
|
+
import { CrossFrameStateOptions, useCrossFrameState } from "./useCrossFrameState.js";
|
|
14
|
+
import { useEditor } from "./useEditor.js";
|
|
15
|
+
import { useIframeClickInterceptor, useIframeClickMerger } from "./useIframeClickInterceptor.js";
|
|
16
|
+
export { ContentSelectorWrapperComponent, CrossFrameStateOptions, DictionaryContent, EditedContentRendererComponent, EditorSelectorRendererComponent, FileContent, getEditorStateManager, installIntlayerEditor, useCommunicator, useConfiguration, useCrossFrameMessageListener, useCrossFrameState, useDictionariesRecord, useEditedContent, useEditedContentActions, useEditor, useEditorEnabled, useEditorLocale, useFocusDictionary, useIframeClickInterceptor, useIframeClickMerger };
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import { Injector } from "@angular/core";
|
|
2
|
+
import { EditorStateManager } from "@intlayer/editor";
|
|
2
3
|
|
|
3
4
|
//#region src/editor/installIntlayerEditor.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* Call **once** in your Angular application's bootstrap function or main module:
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { bootstrapApplication } from '@angular/platform-browser';
|
|
11
|
-
* import { AppComponent } from './app/app.component';
|
|
12
|
-
* import { installIntlayerEditor } from 'angular-intlayer';
|
|
13
|
-
*
|
|
14
|
-
* bootstrapApplication(AppComponent).then(appRef => {
|
|
15
|
-
* installIntlayerEditor(appRef.injector);
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
declare const installIntlayerEditor: (injector: Injector) => void;
|
|
5
|
+
declare const installIntlayerEditor: (_injector: Injector) => void;
|
|
6
|
+
declare const getEditorStateManager: () => EditorStateManager | null;
|
|
20
7
|
//#endregion
|
|
21
|
-
export { installIntlayerEditor };
|
|
8
|
+
export { getEditorStateManager, installIntlayerEditor };
|
|
22
9
|
//# sourceMappingURL=installIntlayerEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installIntlayerEditor.d.ts","names":[],"sources":["../../../src/editor/installIntlayerEditor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"installIntlayerEditor.d.ts","names":[],"sources":["../../../src/editor/installIntlayerEditor.ts"],"mappings":";;;;cA2Ba,qBAAA,GAAyB,SAAA,EAAW,QAAA;AAAA,cAcpC,qBAAA,QAA4B,kBAAA"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { MessageKey } from "@intlayer/editor";
|
|
2
2
|
|
|
3
3
|
//#region src/editor/useCrossFrameMessageListener.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* useCrossFrameMessageListener
|
|
6
|
-
*
|
|
7
|
-
* @template S - type of the message payload
|
|
8
|
-
* @param key message type we care about
|
|
9
|
-
* @param onEventTriggered optional callback when a matching message arrives
|
|
10
|
-
* @returns postMessage(data?) helper scoped to this key
|
|
11
|
-
*/
|
|
12
4
|
declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void) => (data?: S) => void;
|
|
13
5
|
//#endregion
|
|
14
6
|
export { useCrossFrameMessageListener };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameMessageListener.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameMessageListener.ts"],"mappings":";;;cAIa,4BAAA,MACX,GAAA,KAAQ,UAAA,QAAkB,UAAA,aAAuB,UAAA,QACjD,gBAAA,IAAoB,IAAA,EAAM,CAAA,eAgBlB,IAAA,GAAO,CAAA"}
|
|
@@ -3,24 +3,10 @@ import { MessageKey } from "@intlayer/editor";
|
|
|
3
3
|
|
|
4
4
|
//#region src/editor/useCrossFrameState.d.ts
|
|
5
5
|
type CrossFrameStateOptions = {
|
|
6
|
-
|
|
6
|
+
emit?: boolean;
|
|
7
7
|
receive?: boolean;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
* Angular replacement for Vue's cross-frame state composable.
|
|
11
|
-
* It synchronises a reactive value across frames/windows via the `postMessage` API.
|
|
12
|
-
*
|
|
13
|
-
* @template S The type of the state being synchronised.
|
|
14
|
-
* @param key Unique key identifying this state channel.
|
|
15
|
-
* @param initialState Initial value (or lazy factory) for the state.
|
|
16
|
-
* @param options Control flags for emitting/receiving updates.
|
|
17
|
-
*
|
|
18
|
-
* @returns `[stateSignal, setState, postState]`
|
|
19
|
-
* - `stateSignal` – Angular `Signal<S | undefined>` holding the current state.
|
|
20
|
-
* - `setState` – Setter with the same API as React's `setState`.
|
|
21
|
-
* - `postState` – Manually broadcast the current state (useful after mutations outside `setState`).
|
|
22
|
-
*/
|
|
23
|
-
declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [Signal<S | undefined>, (v: S | ((prev: S | undefined) => S)) => void, () => void];
|
|
9
|
+
declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S, options?: CrossFrameStateOptions) => [Signal<S | undefined>, (value: S) => void, () => void];
|
|
24
10
|
//#endregion
|
|
25
11
|
export { CrossFrameStateOptions, useCrossFrameState };
|
|
26
12
|
//# sourceMappingURL=useCrossFrameState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameState.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameState.ts"],"mappings":";;;;KAIY,sBAAA;EACV,IAAA;EACA,OAAA;AAAA;AAAA,cAGW,kBAAA,MACX,GAAA,KAAQ,UAAA,IACR,YAAA,GAAe,CAAA,EACf,OAAA,GAAS,sBAAA,MACP,MAAA,CAAO,CAAA,gBAAiB,KAAA,EAAO,CAAA"}
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
import { useCrossFrameState } from "./useCrossFrameState.js";
|
|
2
|
-
import * as _angular_core0 from "@angular/core";
|
|
3
|
-
|
|
4
1
|
//#region src/editor/useCrossURLPathState.d.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @param initial - The initial URL path
|
|
8
|
-
* @param opts - Options for controlling emit and receive behavior
|
|
9
|
-
* @returns A tuple containing [state signal, setState function, forceSync function]
|
|
10
|
-
*/
|
|
11
|
-
declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [_angular_core0.Signal<string>, (v: string | ((prev: string) => string)) => void, () => void];
|
|
12
|
-
/**
|
|
13
|
-
* Hook for host applications to push URL path changes into the shared state
|
|
14
|
-
* This also monkey patches history methods to capture navigation events
|
|
15
|
-
* @param initial - The initial URL path
|
|
16
|
-
* @returns A tuple containing [state signal, setState function]
|
|
17
|
-
*/
|
|
18
|
-
declare const useCrossURLPathSetter: (initial?: string) => readonly [_angular_core0.Signal<string>, (v: string | ((prev: string) => string)) => void];
|
|
2
|
+
declare const useCrossURLPathSetter: () => void;
|
|
3
|
+
declare const useCrossURLPathState: () => void;
|
|
19
4
|
//#endregion
|
|
20
5
|
export { useCrossURLPathSetter, useCrossURLPathState };
|
|
21
6
|
//# sourceMappingURL=useCrossURLPathState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../../src/editor/useCrossURLPathState.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../../src/editor/useCrossURLPathState.ts"],"mappings":";cAEa,qBAAA;AAAA,cAIA,oBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.ts"],"mappings":";cAOa,SAAA"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
//#region src/editor/useIframeClickInterceptor.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Hook that intercepts clicks in the iframe and sends them to the parent window
|
|
4
|
-
* This allows the parent window to know when the iframe is clicked
|
|
5
|
-
*/
|
|
6
2
|
declare const useIframeClickInterceptor: () => void;
|
|
7
|
-
/**
|
|
8
|
-
* Hook for the parent window to listen for iframe clicks and merge them
|
|
9
|
-
* This makes iframe clicks behave as if they happened in the parent window
|
|
10
|
-
*/
|
|
11
3
|
declare const useIframeClickMerger: () => void;
|
|
12
4
|
//#endregion
|
|
13
5
|
export { useIframeClickInterceptor, useIframeClickMerger };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.ts"],"mappings":";cAGa,yBAAA;AAAA,cAIA,oBAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@babel/plugin-syntax-import-attributes": "^7.28.6",
|
|
88
88
|
"@babel/preset-env": "^7.29.0",
|
|
89
|
-
"@intlayer/chokidar": "8.3.
|
|
90
|
-
"@intlayer/config": "8.3.
|
|
91
|
-
"@intlayer/core": "8.3.
|
|
92
|
-
"@intlayer/dictionaries-entry": "8.3.
|
|
93
|
-
"@intlayer/editor": "8.3.
|
|
94
|
-
"@intlayer/types": "8.3.
|
|
95
|
-
"@intlayer/webpack": "8.3.
|
|
89
|
+
"@intlayer/chokidar": "8.3.4",
|
|
90
|
+
"@intlayer/config": "8.3.4",
|
|
91
|
+
"@intlayer/core": "8.3.4",
|
|
92
|
+
"@intlayer/dictionaries-entry": "8.3.4",
|
|
93
|
+
"@intlayer/editor": "8.3.4",
|
|
94
|
+
"@intlayer/types": "8.3.4",
|
|
95
|
+
"@intlayer/webpack": "8.3.4",
|
|
96
96
|
"babel-loader": "^10.1.1",
|
|
97
97
|
"defu": "6.1.4"
|
|
98
98
|
},
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@utils/ts-config-types": "1.0.4",
|
|
104
104
|
"@utils/tsdown-config": "1.0.4",
|
|
105
105
|
"rimraf": "6.1.3",
|
|
106
|
-
"tsdown": "0.21.
|
|
106
|
+
"tsdown": "0.21.4",
|
|
107
107
|
"typescript": "5.9.3",
|
|
108
108
|
"vitest": "4.1.0"
|
|
109
109
|
},
|