angular-intlayer 8.3.2 → 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.
Files changed (96) hide show
  1. package/dist/cjs/editor/ContentSelectorWrapper.component.cjs +14 -9
  2. package/dist/cjs/editor/ContentSelectorWrapper.component.cjs.map +1 -1
  3. package/dist/cjs/editor/EditedContentRenderer.component.cjs +1 -1
  4. package/dist/cjs/editor/EditedContentRenderer.component.cjs.map +1 -1
  5. package/dist/cjs/editor/communicator.cjs +1 -1
  6. package/dist/cjs/editor/communicator.cjs.map +1 -1
  7. package/dist/cjs/editor/configuration.cjs +1 -1
  8. package/dist/cjs/editor/configuration.cjs.map +1 -1
  9. package/dist/cjs/editor/dictionariesRecord.cjs +1 -1
  10. package/dist/cjs/editor/dictionariesRecord.cjs.map +1 -1
  11. package/dist/cjs/editor/editedContent.cjs +1 -1
  12. package/dist/cjs/editor/editedContent.cjs.map +1 -1
  13. package/dist/cjs/editor/editorEnabled.cjs +1 -1
  14. package/dist/cjs/editor/editorEnabled.cjs.map +1 -1
  15. package/dist/cjs/editor/editorLocale.cjs +1 -1
  16. package/dist/cjs/editor/editorLocale.cjs.map +1 -1
  17. package/dist/cjs/editor/focusDictionary.cjs +1 -1
  18. package/dist/cjs/editor/focusDictionary.cjs.map +1 -1
  19. package/dist/cjs/editor/index.cjs +1 -1
  20. package/dist/cjs/editor/installIntlayerEditor.cjs +1 -1
  21. package/dist/cjs/editor/installIntlayerEditor.cjs.map +1 -1
  22. package/dist/cjs/editor/useCrossFrameMessageListener.cjs +1 -1
  23. package/dist/cjs/editor/useCrossFrameMessageListener.cjs.map +1 -1
  24. package/dist/cjs/editor/useCrossFrameState.cjs +1 -1
  25. package/dist/cjs/editor/useCrossFrameState.cjs.map +1 -1
  26. package/dist/cjs/editor/useCrossURLPathState.cjs +1 -1
  27. package/dist/cjs/editor/useCrossURLPathState.cjs.map +1 -1
  28. package/dist/cjs/editor/useEditor.cjs +1 -1
  29. package/dist/cjs/editor/useEditor.cjs.map +1 -1
  30. package/dist/cjs/editor/useIframeClickInterceptor.cjs +1 -1
  31. package/dist/cjs/editor/useIframeClickInterceptor.cjs.map +1 -1
  32. package/dist/esm/editor/ContentSelectorWrapper.component.mjs +14 -9
  33. package/dist/esm/editor/ContentSelectorWrapper.component.mjs.map +1 -1
  34. package/dist/esm/editor/EditedContentRenderer.component.mjs +1 -1
  35. package/dist/esm/editor/EditedContentRenderer.component.mjs.map +1 -1
  36. package/dist/esm/editor/communicator.mjs +1 -1
  37. package/dist/esm/editor/communicator.mjs.map +1 -1
  38. package/dist/esm/editor/configuration.mjs +1 -1
  39. package/dist/esm/editor/configuration.mjs.map +1 -1
  40. package/dist/esm/editor/dictionariesRecord.mjs +1 -1
  41. package/dist/esm/editor/dictionariesRecord.mjs.map +1 -1
  42. package/dist/esm/editor/editedContent.mjs +1 -1
  43. package/dist/esm/editor/editedContent.mjs.map +1 -1
  44. package/dist/esm/editor/editorEnabled.mjs +1 -1
  45. package/dist/esm/editor/editorEnabled.mjs.map +1 -1
  46. package/dist/esm/editor/editorLocale.mjs +1 -1
  47. package/dist/esm/editor/editorLocale.mjs.map +1 -1
  48. package/dist/esm/editor/focusDictionary.mjs +1 -1
  49. package/dist/esm/editor/focusDictionary.mjs.map +1 -1
  50. package/dist/esm/editor/index.mjs +1 -1
  51. package/dist/esm/editor/installIntlayerEditor.mjs +1 -1
  52. package/dist/esm/editor/installIntlayerEditor.mjs.map +1 -1
  53. package/dist/esm/editor/useCrossFrameMessageListener.mjs +1 -1
  54. package/dist/esm/editor/useCrossFrameMessageListener.mjs.map +1 -1
  55. package/dist/esm/editor/useCrossFrameState.mjs +1 -1
  56. package/dist/esm/editor/useCrossFrameState.mjs.map +1 -1
  57. package/dist/esm/editor/useCrossURLPathState.mjs +1 -1
  58. package/dist/esm/editor/useCrossURLPathState.mjs.map +1 -1
  59. package/dist/esm/editor/useEditor.mjs +1 -1
  60. package/dist/esm/editor/useEditor.mjs.map +1 -1
  61. package/dist/esm/editor/useIframeClickInterceptor.mjs +1 -1
  62. package/dist/esm/editor/useIframeClickInterceptor.mjs.map +1 -1
  63. package/dist/types/client/useDictionaryDynamic.d.ts +2 -2
  64. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  65. package/dist/types/client/useLocale.d.ts +3 -3
  66. package/dist/types/client/useLocaleStorage.d.ts +5 -5
  67. package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
  68. package/dist/types/editor/ContentSelectorWrapper.component.d.ts +9 -12
  69. package/dist/types/editor/ContentSelectorWrapper.component.d.ts.map +1 -1
  70. package/dist/types/editor/communicator.d.ts +3 -27
  71. package/dist/types/editor/communicator.d.ts.map +1 -1
  72. package/dist/types/editor/configuration.d.ts +4 -1
  73. package/dist/types/editor/configuration.d.ts.map +1 -1
  74. package/dist/types/editor/dictionariesRecord.d.ts +6 -12
  75. package/dist/types/editor/dictionariesRecord.d.ts.map +1 -1
  76. package/dist/types/editor/editedContent.d.ts +27 -16
  77. package/dist/types/editor/editedContent.d.ts.map +1 -1
  78. package/dist/types/editor/editorEnabled.d.ts +4 -15
  79. package/dist/types/editor/editorEnabled.d.ts.map +1 -1
  80. package/dist/types/editor/editorLocale.d.ts.map +1 -1
  81. package/dist/types/editor/focusDictionary.d.ts +6 -20
  82. package/dist/types/editor/focusDictionary.d.ts.map +1 -1
  83. package/dist/types/editor/index.d.ts +13 -2
  84. package/dist/types/editor/installIntlayerEditor.d.ts +4 -17
  85. package/dist/types/editor/installIntlayerEditor.d.ts.map +1 -1
  86. package/dist/types/editor/useCrossFrameMessageListener.d.ts +0 -8
  87. package/dist/types/editor/useCrossFrameMessageListener.d.ts.map +1 -1
  88. package/dist/types/editor/useCrossFrameState.d.ts +2 -16
  89. package/dist/types/editor/useCrossFrameState.d.ts.map +1 -1
  90. package/dist/types/editor/useCrossURLPathState.d.ts +2 -17
  91. package/dist/types/editor/useCrossURLPathState.d.ts.map +1 -1
  92. package/dist/types/editor/useEditor.d.ts.map +1 -1
  93. package/dist/types/editor/useIframeClickInterceptor.d.ts +0 -8
  94. package/dist/types/editor/useIframeClickInterceptor.d.ts.map +1 -1
  95. package/dist/types/intlayer/dist/types/index.d.ts +3 -0
  96. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"communicator.d.ts","names":[],"sources":["../../../src/editor/communicator.ts"],"mappings":";;;;;AAQA;KAAY,YAAA;EACV,WAAA,SAAoB,MAAA,CAAO,WAAA;EAC3B,cAAA;EACA,QAAA;AAAA;;;;KAMU,mBAAA,GAAsB,IAAA,CAAK,YAAA;;AAAvC;;;cA4Ba,kBAAA,GACX,OAAA,GAAS,mBAAA,KAAiD,YAAA;;AAD5D;;cAiBa,mBAAA,GACX,SAAA,EAAW,QAAA,EACX,OAAA,GAAS,mBAAA;;;;;cAYE,eAAA,QAAsB,YAAA"}
1
+ {"version":3,"file":"communicator.d.ts","names":[],"sources":["../../../src/editor/communicator.ts"],"mappings":";cAEa,eAAA"}
@@ -1,5 +1,8 @@
1
+ import * as _angular_core0 from "@angular/core";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
1
4
  //#region src/editor/configuration.d.ts
2
- declare const useConfiguration: () => void;
5
+ declare const useConfiguration: () => _angular_core0.Signal<IntlayerConfig>;
3
6
  //#endregion
4
7
  export { useConfiguration };
5
8
  //# sourceMappingURL=configuration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","names":[],"sources":["../../../src/editor/configuration.ts"],"mappings":";cAMa,gBAAA"}
1
+ {"version":3,"file":"configuration.d.ts","names":[],"sources":["../../../src/editor/configuration.ts"],"mappings":";;;;cAIa,gBAAA,QAAgB,cAAA,CAAA,MAAA,CAAA,cAAA"}
@@ -1,19 +1,13 @@
1
- import { Injector, Signal } from "@angular/core";
1
+ import * as _angular_core0 from "@angular/core";
2
2
  import { Dictionary } from "@intlayer/types/dictionary";
3
+ import { DictionaryContent } from "@intlayer/editor";
3
4
 
4
5
  //#region src/editor/dictionariesRecord.d.ts
5
- type DictionaryContent = Record<Dictionary['key'], Dictionary>;
6
- type DictionariesRecordClient = {
7
- localeDictionaries: Signal<DictionaryContent>;
8
- setLocaleDictionaries: (newValue: DictionaryContent) => void;
6
+ declare const useDictionariesRecord: () => {
7
+ localeDictionaries: _angular_core0.Signal<DictionaryContent>;
8
+ setLocaleDictionaries: (value: DictionaryContent) => void;
9
9
  setLocaleDictionary: (dictionary: Dictionary) => void;
10
10
  };
11
- declare const createDictionaryRecordClient: () => DictionariesRecordClient;
12
- /**
13
- * Helper to install the provider into the injector
14
- */
15
- declare const installDictionariesRecord: (_injector: Injector) => void;
16
- declare const useDictionariesRecord: () => void;
17
11
  //#endregion
18
- export { DictionaryContent, createDictionaryRecordClient, installDictionariesRecord, useDictionariesRecord };
12
+ export { type DictionaryContent, useDictionariesRecord };
19
13
  //# sourceMappingURL=dictionariesRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionariesRecord.d.ts","names":[],"sources":["../../../src/editor/dictionariesRecord.ts"],"mappings":";;;;KAWY,iBAAA,GAAoB,MAAA,CAAO,UAAA,SAAmB,UAAA;AAAA,KAErD,wBAAA;EACH,kBAAA,EAAoB,MAAA,CAAO,iBAAA;EAC3B,qBAAA,GAAwB,QAAA,EAAU,iBAAA;EAClC,mBAAA,GAAsB,UAAA,EAAY,UAAA;AAAA;AAAA,cAGvB,4BAAA,QAA4B,wBAAA;;;;cA8B5B,yBAAA,GAA6B,SAAA,EAAW,QAAA;AAAA,cAOxC,qBAAA"}
1
+ {"version":3,"file":"dictionariesRecord.d.ts","names":[],"sources":["../../../src/editor/dictionariesRecord.ts"],"mappings":";;;;;cAOa,qBAAA;;iCAuBsB,iBAAA;oCAEG,UAAA;AAAA"}
@@ -1,23 +1,34 @@
1
- import { Injector, Signal } from "@angular/core";
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
- type EditedContent = Record<Dictionary['key'], Dictionary>;
7
- type EditedContentClient = {
8
- editedContent: Signal<EditedContent>;
9
- setEditedContent: (editedContent: EditedContent) => void;
10
- getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary['key'] | string, keyPath: KeyPath[]) => ContentNode | undefined;
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 { EditedContent, createEditedContentClient, installEditedContent, useEditedContent };
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":";;;;;KAQY,aAAA,GAAgB,MAAA,CAAO,UAAA,SAAmB,UAAA;AAAA,KAEjD,mBAAA;EACH,aAAA,EAAe,MAAA,CAAO,aAAA;EACtB,gBAAA,GAAmB,aAAA,EAAe,aAAA;EAClC,qBAAA,GACE,sBAAA,EAAwB,iBAAA,GAAoB,UAAA,kBAC5C,OAAA,EAAS,OAAA,OACN,WAAA;AAAA;;;;cAaM,yBAAA,QAAyB,mBAAA;;;;cAuDzB,oBAAA,GAAwB,SAAA,EAAW,QAAA;AAAA,cAOnC,gBAAA,QAAgB,mBAAA"}
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 { Injector, Signal } from "@angular/core";
1
+ import * as _angular_core0 from "@angular/core";
2
2
 
3
3
  //#region src/editor/editorEnabled.d.ts
4
- type EditorEnabledStateProps = {
5
- wrapperEnabled: Signal<boolean>;
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 { EditorEnabledStateProps, createEditorEnabledClient, installEditorEnabled, useEditorEnabled };
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":";;;KAcY,uBAAA;EACV,cAAA,EAAgB,MAAA;EAChB,UAAA,EAAY,MAAA;EACZ,OAAA,EAAS,MAAA;AAAA;;;;cAaE,yBAAA,QAAyB,uBAAA;;;;cAqBzB,oBAAA,GAAwB,SAAA,EAAW,QAAA;AAAA,cAOnC,gBAAA,QAAgB,uBAAA"}
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":";;cAQa,eAAA,QAAe,gBAAA"}
1
+ {"version":3,"file":"editorLocale.d.ts","names":[],"sources":["../../../src/editor/editorLocale.ts"],"mappings":";;cAKa,eAAA,QAAe,gBAAA"}
@@ -1,27 +1,13 @@
1
- import { Injector, Signal } from "@angular/core";
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
- type FileContent = {
6
- dictionaryKey: string;
7
- keyPath?: KeyPath[];
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, createFocusDictionaryClient, installFocusDictionary, useFocusDictionary };
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":";;;;KAMY,WAAA;EACV,aAAA;EACA,OAAA,GAAU,OAAA;EACV,cAAA;AAAA;AAAA,KAGG,qBAAA;EACH,cAAA,EAAgB,MAAA,CAAO,WAAA;EACvB,iBAAA,GAAoB,eAAA,EAAiB,WAAA;EACrC,wBAAA,GAA2B,OAAA,EAAS,OAAA;AAAA;;;AALpC;cAgBW,2BAAA,QAA2B,qBAAA;;;;cA2B3B,sBAAA,GAA0B,SAAA,EAAW,QAAA;;cAQrC,kBAAA,QAAkB,qBAAA"}
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 { installIntlayerEditor } from "./installIntlayerEditor.js";
5
- export { ContentSelectorWrapperComponent, EditedContentRendererComponent, EditorSelectorRendererComponent, installIntlayerEditor };
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
- * Angular-side replacement for the former <IntlayerEditorProvider> React component.
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":";;;;;AA8CA;;;;;;;;;;;;;cAAa,qBAAA,GAAyB,QAAA,EAAU,QAAA"}
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":";;;;;AAmEA;;;;;;cAAa,4BAAA,MACX,GAAA,KAAQ,UAAA,QAAkB,UAAA,aAAuB,UAAA,QACjD,gBAAA,IAAoB,IAAA,EAAM,CAAA,eAAU,IAAA,GA8BD,CAAA"}
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
- /** Whether to broadcast state changes to other instances (default: true) */emit?: boolean; /** Whether to listen for state updates from other instances (default: true) */
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":";;;;KAKY,sBAAA;8EAEV,IAAA,YAFgC;EAIhC,OAAA;AAAA;;AAiDF;;;;;;;;;;;;;cAAa,kBAAA,MACX,GAAA,KAAQ,UAAA,IACR,YAAA,GAAe,CAAA,UAAW,CAAA,GAC1B,OAAA,GAAS,sBAAA,MAET,MAAA,CAAO,CAAA,gBACN,CAAA,EAAG,CAAA,KAAM,IAAA,EAAM,CAAA,iBAAkB,CAAA"}
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
- * Hook to create and manage a cross-frame synchronized URL path state
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":";;;;;;;AAUA;;;cAAa,oBAAA,GACX,OAAA,WACA,IAAA,GAAO,UAAA,QAAkB,kBAAA,UAAR,cAAA,CAA8B,MAAA,WAAA,CAAA,aAAA,IAAA;;;;;;;cASpC,qBAAA,GAAyB,OAAA,wBAiErC,cAAA,CAjEqD,MAAA,WAAA,CAAA,aAAA,IAAA"}
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":";cASa,SAAA"}
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":";;AAaA;;;cAAa,yBAAA;;AAkCb;;;cAAa,oBAAA"}
1
+ {"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.ts"],"mappings":";cAGa,yBAAA;AAAA,cAIA,oBAAA"}
@@ -0,0 +1,3 @@
1
+ import { Dictionary } from "@intlayer/types/dictionary";
2
+ import { Locale as Locale$1 } from "@intlayer/types/allLocales";
3
+ export { type Locale$1 as Locale };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-intlayer",
3
- "version": "8.3.2",
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.2",
90
- "@intlayer/config": "8.3.2",
91
- "@intlayer/core": "8.3.2",
92
- "@intlayer/dictionaries-entry": "8.3.2",
93
- "@intlayer/editor": "8.3.2",
94
- "@intlayer/types": "8.3.2",
95
- "@intlayer/webpack": "8.3.2",
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.2",
106
+ "tsdown": "0.21.4",
107
107
  "typescript": "5.9.3",
108
108
  "vitest": "4.1.0"
109
109
  },