angular-intlayer 6.1.6 → 7.0.0-canary.2

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 (237) hide show
  1. package/dist/cjs/UI/ContentSelector.component.cjs +94 -121
  2. package/dist/cjs/UI/ContentSelector.component.cjs.map +1 -1
  3. package/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
  4. package/dist/cjs/client/index.cjs +19 -35
  5. package/dist/cjs/client/installIntlayer.cjs +39 -68
  6. package/dist/cjs/client/installIntlayer.cjs.map +1 -1
  7. package/dist/cjs/client/useDictionary.cjs +13 -36
  8. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  9. package/dist/cjs/client/useDictionaryAsync.cjs +23 -48
  10. package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
  11. package/dist/cjs/client/useDictionaryDynamic.cjs +24 -52
  12. package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
  13. package/dist/cjs/client/useIntlayer.cjs +16 -36
  14. package/dist/cjs/client/useIntlayer.cjs.map +1 -1
  15. package/dist/cjs/client/useLoadDynamic.cjs +26 -42
  16. package/dist/cjs/client/useLoadDynamic.cjs.map +1 -1
  17. package/dist/cjs/client/useLocale.cjs +35 -67
  18. package/dist/cjs/client/useLocale.cjs.map +1 -1
  19. package/dist/cjs/client/useLocaleStorage.cjs +61 -0
  20. package/dist/cjs/client/useLocaleStorage.cjs.map +1 -0
  21. package/dist/cjs/editor/ContentSelectorWrapper.component.cjs +41 -63
  22. package/dist/cjs/editor/ContentSelectorWrapper.component.cjs.map +1 -1
  23. package/dist/cjs/editor/EditedContentRenderer.component.cjs +44 -75
  24. package/dist/cjs/editor/EditedContentRenderer.component.cjs.map +1 -1
  25. package/dist/cjs/editor/EditorSelectorRenderer.component.cjs +25 -45
  26. package/dist/cjs/editor/EditorSelectorRenderer.component.cjs.map +1 -1
  27. package/dist/cjs/editor/communicator.cjs +55 -73
  28. package/dist/cjs/editor/communicator.cjs.map +1 -1
  29. package/dist/cjs/editor/configuration.cjs +21 -54
  30. package/dist/cjs/editor/configuration.cjs.map +1 -1
  31. package/dist/cjs/editor/createSharedComposable.cjs +46 -63
  32. package/dist/cjs/editor/createSharedComposable.cjs.map +1 -1
  33. package/dist/cjs/editor/dictionariesRecord.cjs +47 -77
  34. package/dist/cjs/editor/dictionariesRecord.cjs.map +1 -1
  35. package/dist/cjs/editor/editedContent.cjs +58 -71
  36. package/dist/cjs/editor/editedContent.cjs.map +1 -1
  37. package/dist/cjs/editor/editorEnabled.cjs +45 -70
  38. package/dist/cjs/editor/editorEnabled.cjs.map +1 -1
  39. package/dist/cjs/editor/editorLocale.cjs +21 -45
  40. package/dist/cjs/editor/editorLocale.cjs.map +1 -1
  41. package/dist/cjs/editor/focusDictionary.cjs +58 -74
  42. package/dist/cjs/editor/focusDictionary.cjs.map +1 -1
  43. package/dist/cjs/editor/index.cjs +9 -38
  44. package/dist/cjs/editor/installIntlayerEditor.cjs +46 -64
  45. package/dist/cjs/editor/installIntlayerEditor.cjs.map +1 -1
  46. package/dist/cjs/editor/useCrossFrameMessageListener.cjs +63 -72
  47. package/dist/cjs/editor/useCrossFrameMessageListener.cjs.map +1 -1
  48. package/dist/cjs/editor/useCrossFrameState.cjs +108 -88
  49. package/dist/cjs/editor/useCrossFrameState.cjs.map +1 -1
  50. package/dist/cjs/editor/useCrossURLPathState.cjs +64 -69
  51. package/dist/cjs/editor/useCrossURLPathState.cjs.map +1 -1
  52. package/dist/cjs/editor/useEditedContentRenderer.cjs +25 -54
  53. package/dist/cjs/editor/useEditedContentRenderer.cjs.map +1 -1
  54. package/dist/cjs/editor/useEditor.cjs +22 -44
  55. package/dist/cjs/editor/useEditor.cjs.map +1 -1
  56. package/dist/cjs/editor/useIframeClickInterceptor.cjs +38 -59
  57. package/dist/cjs/editor/useIframeClickInterceptor.cjs.map +1 -1
  58. package/dist/cjs/getDictionary.cjs +14 -39
  59. package/dist/cjs/getDictionary.cjs.map +1 -1
  60. package/dist/cjs/getIntlayer.cjs +14 -35
  61. package/dist/cjs/getIntlayer.cjs.map +1 -1
  62. package/dist/cjs/index.cjs +32 -31
  63. package/dist/cjs/markdown/index.cjs +6 -23
  64. package/dist/cjs/markdown/installIntlayerMarkdown.cjs +33 -60
  65. package/dist/cjs/markdown/installIntlayerMarkdown.cjs.map +1 -1
  66. package/dist/cjs/plugins.cjs +77 -108
  67. package/dist/cjs/plugins.cjs.map +1 -1
  68. package/dist/cjs/renderIntlayerNode.cjs +16 -56
  69. package/dist/cjs/renderIntlayerNode.cjs.map +1 -1
  70. package/dist/cjs/webpack/index.cjs +3 -23
  71. package/dist/cjs/webpack/mergeConfig.cjs +33 -68
  72. package/dist/cjs/webpack/mergeConfig.cjs.map +1 -1
  73. package/dist/esm/UI/ContentSelector.component.mjs +89 -104
  74. package/dist/esm/UI/ContentSelector.component.mjs.map +1 -1
  75. package/dist/esm/client/index.mjs +9 -8
  76. package/dist/esm/client/installIntlayer.mjs +29 -27
  77. package/dist/esm/client/installIntlayer.mjs.map +1 -1
  78. package/dist/esm/client/useDictionary.mjs +10 -11
  79. package/dist/esm/client/useDictionary.mjs.map +1 -1
  80. package/dist/esm/client/useDictionaryAsync.mjs +18 -12
  81. package/dist/esm/client/useDictionaryAsync.mjs.map +1 -1
  82. package/dist/esm/client/useDictionaryDynamic.mjs +18 -15
  83. package/dist/esm/client/useDictionaryDynamic.mjs.map +1 -1
  84. package/dist/esm/client/useIntlayer.mjs +12 -10
  85. package/dist/esm/client/useIntlayer.mjs.map +1 -1
  86. package/dist/esm/client/useLoadDynamic.mjs +23 -17
  87. package/dist/esm/client/useLoadDynamic.mjs.map +1 -1
  88. package/dist/esm/client/useLocale.mjs +30 -31
  89. package/dist/esm/client/useLocale.mjs.map +1 -1
  90. package/dist/esm/client/useLocaleStorage.mjs +54 -0
  91. package/dist/esm/client/useLocaleStorage.mjs.map +1 -0
  92. package/dist/esm/editor/ContentSelectorWrapper.component.mjs +32 -34
  93. package/dist/esm/editor/ContentSelectorWrapper.component.mjs.map +1 -1
  94. package/dist/esm/editor/EditedContentRenderer.component.mjs +38 -49
  95. package/dist/esm/editor/EditedContentRenderer.component.mjs.map +1 -1
  96. package/dist/esm/editor/EditorSelectorRenderer.component.mjs +19 -18
  97. package/dist/esm/editor/EditorSelectorRenderer.component.mjs.map +1 -1
  98. package/dist/esm/editor/communicator.mjs +48 -35
  99. package/dist/esm/editor/communicator.mjs.map +1 -1
  100. package/dist/esm/editor/configuration.mjs +15 -18
  101. package/dist/esm/editor/configuration.mjs.map +1 -1
  102. package/dist/esm/editor/createSharedComposable.mjs +42 -37
  103. package/dist/esm/editor/createSharedComposable.mjs.map +1 -1
  104. package/dist/esm/editor/dictionariesRecord.mjs +38 -38
  105. package/dist/esm/editor/dictionariesRecord.mjs.map +1 -1
  106. package/dist/esm/editor/editedContent.mjs +49 -42
  107. package/dist/esm/editor/editedContent.mjs.map +1 -1
  108. package/dist/esm/editor/editorEnabled.mjs +37 -41
  109. package/dist/esm/editor/editorEnabled.mjs.map +1 -1
  110. package/dist/esm/editor/editorLocale.mjs +15 -18
  111. package/dist/esm/editor/editorLocale.mjs.map +1 -1
  112. package/dist/esm/editor/focusDictionary.mjs +50 -45
  113. package/dist/esm/editor/focusDictionary.mjs.map +1 -1
  114. package/dist/esm/editor/index.mjs +3 -7
  115. package/dist/esm/editor/installIntlayerEditor.mjs +40 -26
  116. package/dist/esm/editor/installIntlayerEditor.mjs.map +1 -1
  117. package/dist/esm/editor/useCrossFrameMessageListener.mjs +58 -46
  118. package/dist/esm/editor/useCrossFrameMessageListener.mjs.map +1 -1
  119. package/dist/esm/editor/useCrossFrameState.mjs +104 -62
  120. package/dist/esm/editor/useCrossFrameState.mjs.map +1 -1
  121. package/dist/esm/editor/useCrossURLPathState.mjs +57 -41
  122. package/dist/esm/editor/useCrossURLPathState.mjs.map +1 -1
  123. package/dist/esm/editor/useEditedContentRenderer.mjs +21 -33
  124. package/dist/esm/editor/useEditedContentRenderer.mjs.map +1 -1
  125. package/dist/esm/editor/useEditor.mjs +16 -14
  126. package/dist/esm/editor/useEditor.mjs.map +1 -1
  127. package/dist/esm/editor/useIframeClickInterceptor.mjs +30 -30
  128. package/dist/esm/editor/useIframeClickInterceptor.mjs.map +1 -1
  129. package/dist/esm/getDictionary.mjs +12 -20
  130. package/dist/esm/getDictionary.mjs.map +1 -1
  131. package/dist/esm/getIntlayer.mjs +12 -16
  132. package/dist/esm/getIntlayer.mjs.map +1 -1
  133. package/dist/esm/index.mjs +13 -6
  134. package/dist/esm/markdown/index.mjs +3 -2
  135. package/dist/esm/markdown/installIntlayerMarkdown.mjs +27 -32
  136. package/dist/esm/markdown/installIntlayerMarkdown.mjs.map +1 -1
  137. package/dist/esm/plugins.mjs +70 -83
  138. package/dist/esm/plugins.mjs.map +1 -1
  139. package/dist/esm/renderIntlayerNode.mjs +15 -32
  140. package/dist/esm/renderIntlayerNode.mjs.map +1 -1
  141. package/dist/esm/webpack/index.mjs +3 -2
  142. package/dist/esm/webpack/mergeConfig.mjs +25 -31
  143. package/dist/esm/webpack/mergeConfig.mjs.map +1 -1
  144. package/dist/types/UI/ContentSelector.component.d.ts +32 -30
  145. package/dist/types/UI/ContentSelector.component.d.ts.map +1 -1
  146. package/dist/types/client/index.d.ts +8 -8
  147. package/dist/types/client/installIntlayer.d.ts +15 -9
  148. package/dist/types/client/installIntlayer.d.ts.map +1 -1
  149. package/dist/types/client/useDictionary.d.ts +7 -4
  150. package/dist/types/client/useDictionary.d.ts.map +1 -1
  151. package/dist/types/client/useDictionaryAsync.d.ts +7 -3
  152. package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
  153. package/dist/types/client/useDictionaryDynamic.d.ts +9 -3
  154. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  155. package/dist/types/client/useIntlayer.d.ts +9 -7
  156. package/dist/types/client/useIntlayer.d.ts.map +1 -1
  157. package/dist/types/client/useLoadDynamic.d.ts +4 -1
  158. package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
  159. package/dist/types/client/useLocale.d.ts +17 -8
  160. package/dist/types/client/useLocale.d.ts.map +1 -1
  161. package/dist/types/client/useLocaleStorage.d.ts +49 -0
  162. package/dist/types/client/useLocaleStorage.d.ts.map +1 -0
  163. package/dist/types/editor/ContentSelectorWrapper.component.d.ts +18 -12
  164. package/dist/types/editor/ContentSelectorWrapper.component.d.ts.map +1 -1
  165. package/dist/types/editor/EditedContentRenderer.component.d.ts +20 -16
  166. package/dist/types/editor/EditedContentRenderer.component.d.ts.map +1 -1
  167. package/dist/types/editor/EditorSelectorRenderer.component.d.ts +11 -6
  168. package/dist/types/editor/EditorSelectorRenderer.component.d.ts.map +1 -1
  169. package/dist/types/editor/communicator.d.ts +14 -9
  170. package/dist/types/editor/communicator.d.ts.map +1 -1
  171. package/dist/types/editor/configuration.d.ts +4 -1
  172. package/dist/types/editor/configuration.d.ts.map +1 -1
  173. package/dist/types/editor/createSharedComposable.d.ts +6 -4
  174. package/dist/types/editor/createSharedComposable.d.ts.map +1 -1
  175. package/dist/types/editor/dictionariesRecord.d.ts +13 -10
  176. package/dist/types/editor/dictionariesRecord.d.ts.map +1 -1
  177. package/dist/types/editor/editedContent.d.ts +13 -10
  178. package/dist/types/editor/editedContent.d.ts.map +1 -1
  179. package/dist/types/editor/editorEnabled.d.ts +12 -8
  180. package/dist/types/editor/editorEnabled.d.ts.map +1 -1
  181. package/dist/types/editor/editorLocale.d.ts +6 -2
  182. package/dist/types/editor/editorLocale.d.ts.map +1 -1
  183. package/dist/types/editor/focusDictionary.d.ts +16 -13
  184. package/dist/types/editor/focusDictionary.d.ts.map +1 -1
  185. package/dist/types/editor/index.d.ts +5 -5
  186. package/dist/types/editor/installIntlayerEditor.d.ts +7 -2
  187. package/dist/types/editor/installIntlayerEditor.d.ts.map +1 -1
  188. package/dist/types/editor/useCrossFrameMessageListener.d.ts +7 -2
  189. package/dist/types/editor/useCrossFrameMessageListener.d.ts.map +1 -1
  190. package/dist/types/editor/useCrossFrameState.d.ts +12 -8
  191. package/dist/types/editor/useCrossFrameState.d.ts.map +1 -1
  192. package/dist/types/editor/useCrossURLPathState.d.ts +9 -3
  193. package/dist/types/editor/useCrossURLPathState.d.ts.map +1 -1
  194. package/dist/types/editor/useEditedContentRenderer.d.ts +15 -11
  195. package/dist/types/editor/useEditedContentRenderer.d.ts.map +1 -1
  196. package/dist/types/editor/useEditor.d.ts +4 -1
  197. package/dist/types/editor/useEditor.d.ts.map +1 -1
  198. package/dist/types/editor/useIframeClickInterceptor.d.ts +5 -2
  199. package/dist/types/editor/useIframeClickInterceptor.d.ts.map +1 -1
  200. package/dist/types/getDictionary.d.ts +8 -4
  201. package/dist/types/getDictionary.d.ts.map +1 -1
  202. package/dist/types/getIntlayer.d.ts +8 -4
  203. package/dist/types/getIntlayer.d.ts.map +1 -1
  204. package/dist/types/index.d.ts +16 -8
  205. package/dist/types/index.d.ts.map +1 -1
  206. package/dist/types/markdown/index.d.ts +2 -2
  207. package/dist/types/markdown/installIntlayerMarkdown.d.ts +15 -12
  208. package/dist/types/markdown/installIntlayerMarkdown.d.ts.map +1 -1
  209. package/dist/types/plugins.d.ts +29 -23
  210. package/dist/types/plugins.d.ts.map +1 -1
  211. package/dist/types/renderIntlayerNode.d.ts +16 -10
  212. package/dist/types/renderIntlayerNode.d.ts.map +1 -1
  213. package/dist/types/webpack/index.d.ts +2 -2
  214. package/dist/types/webpack/mergeConfig.d.ts +5 -2
  215. package/dist/types/webpack/mergeConfig.d.ts.map +1 -1
  216. package/package.json +43 -49
  217. package/LICENSE +0 -202
  218. package/dist/cjs/client/index.cjs.map +0 -1
  219. package/dist/cjs/client/useLocaleCookie.cjs +0 -60
  220. package/dist/cjs/client/useLocaleCookie.cjs.map +0 -1
  221. package/dist/cjs/editor/index.cjs.map +0 -1
  222. package/dist/cjs/index.cjs.map +0 -1
  223. package/dist/cjs/markdown/index.cjs.map +0 -1
  224. package/dist/cjs/webpack/index.cjs.map +0 -1
  225. package/dist/esm/client/index.mjs.map +0 -1
  226. package/dist/esm/client/useLocaleCookie.mjs +0 -24
  227. package/dist/esm/client/useLocaleCookie.mjs.map +0 -1
  228. package/dist/esm/editor/index.mjs.map +0 -1
  229. package/dist/esm/index.mjs.map +0 -1
  230. package/dist/esm/markdown/index.mjs.map +0 -1
  231. package/dist/esm/webpack/index.mjs.map +0 -1
  232. package/dist/types/client/index.d.ts.map +0 -1
  233. package/dist/types/client/useLocaleCookie.d.ts +0 -17
  234. package/dist/types/client/useLocaleCookie.d.ts.map +0 -1
  235. package/dist/types/editor/index.d.ts.map +0 -1
  236. package/dist/types/markdown/index.d.ts.map +0 -1
  237. package/dist/types/webpack/index.d.ts.map +0 -1
@@ -1,13 +1,18 @@
1
- import { type NodeProps } from '@intlayer/core';
1
+ import { NodeProps } from "@intlayer/core";
2
+
3
+ //#region src/editor/EditorSelectorRenderer.component.d.ts
4
+
2
5
  /**
3
6
  * Combine your NodeProps (which include dictionaryKey & keyPath)
4
7
  * with any other div-like attributes.
5
8
  */
6
- export interface EditorSelectorRendererProps extends NodeProps {
7
- [key: string]: any;
9
+ interface EditorSelectorRendererProps extends NodeProps {
10
+ [key: string]: any;
8
11
  }
9
- export declare class EditorSelectorRendererComponent {
10
- dictionaryKey: string;
11
- keyPath: any[];
12
+ declare class EditorSelectorRendererComponent {
13
+ dictionaryKey: string;
14
+ keyPath: any[];
12
15
  }
16
+ //#endregion
17
+ export { EditorSelectorRendererComponent, EditorSelectorRendererProps };
13
18
  //# sourceMappingURL=EditorSelectorRenderer.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorSelectorRenderer.component.d.ts","sourceRoot":"","sources":["../../../src/editor/EditorSelectorRenderer.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,qBAsBa,+BAA+B;IACjC,aAAa,EAAG,MAAM,CAAC;IACvB,OAAO,EAAG,GAAG,EAAE,CAAC;CAC1B"}
1
+ {"version":3,"file":"EditorSelectorRenderer.component.d.ts","names":[],"sources":["../../../src/editor/EditorSelectorRenderer.component.ts"],"sourcesContent":[],"mappings":";;;;;;AAUA;AAIA;UAJiB,2BAAA,SAAoC;;;cA0BxC,+BAAA"}
@@ -1,28 +1,33 @@
1
- import { Injector } from '@angular/core';
1
+ import { Injector } from "@angular/core";
2
+
3
+ //#region src/editor/communicator.d.ts
4
+
2
5
  /**
3
6
  * Interface defining a cross-frame communicator
4
7
  */
5
- export type Communicator = {
6
- postMessage: typeof window.postMessage;
7
- allowedOrigins?: string[];
8
- senderId: string;
8
+ type Communicator = {
9
+ postMessage: typeof window.postMessage;
10
+ allowedOrigins?: string[];
11
+ senderId: string;
9
12
  };
10
13
  /**
11
14
  * Configuration options for the communicator
12
15
  */
13
- export type CommunicatorOptions = Omit<Communicator, 'senderId'>;
16
+ type CommunicatorOptions = Omit<Communicator, 'senderId'>;
14
17
  /**
15
18
  * Creates a communicator client
16
19
  * @param options - Options for configuring the communicator
17
20
  */
18
- export declare const createCommunicator: (options?: CommunicatorOptions) => Communicator;
21
+ declare const createCommunicator: (options?: CommunicatorOptions) => Communicator;
19
22
  /**
20
23
  * Helper to install the Intlayer communicator into the injector
21
24
  */
22
- export declare const installCommunicator: (injector: Injector, options?: CommunicatorOptions) => void;
25
+ declare const installCommunicator: (_injector: Injector, options?: CommunicatorOptions) => void;
23
26
  /**
24
27
  * Hook to access the communicator
25
28
  * @returns The communicator instance
26
29
  */
27
- export declare const useCommunicator: () => Communicator;
30
+ declare const useCommunicator: () => Communicator;
31
+ //#endregion
32
+ export { Communicator, CommunicatorOptions, createCommunicator, installCommunicator, useCommunicator };
28
33
  //# sourceMappingURL=communicator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"communicator.d.ts","sourceRoot":"","sources":["../../../src/editor/communicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIzC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,OAAO,MAAM,CAAC,WAAW,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AAwBjE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAS,mBAAiD,iBAW3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,QAAQ,EAClB,UAAS,mBAAiD,SAM3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,YAalC,CAAC"}
1
+ {"version":3,"file":"communicator.d.ts","names":[],"sources":["../../../src/editor/communicator.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AASY,KATA,YAAA,GASmB;EA4BlB,WAAA,EAAA,OApCS,MAAA,CAAO,WAqClB;EAgBE,cAAA,CAAA,EAAA,MAQZ,EAAA;EAMY,QAAA,EAAA,MAAA;;;;;KA3DD,mBAAA,GAAsB,KAAK;;;;;cA4B1B,+BACF,wBAAiD;;;;cAgB/C,iCACA,oBACF;;;;;cAYE,uBAAsB"}
@@ -1,2 +1,5 @@
1
- export declare const useConfiguration: () => void;
1
+ //#region src/editor/configuration.d.ts
2
+ declare const useConfiguration: () => void;
3
+ //#endregion
4
+ export { useConfiguration };
2
5
  //# sourceMappingURL=configuration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/editor/configuration.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,YAoB5B,CAAC"}
1
+ {"version":3,"file":"configuration.d.ts","names":[],"sources":["../../../src/editor/configuration.ts"],"sourcesContent":[],"mappings":";cAMa"}
@@ -1,14 +1,16 @@
1
+ //#region src/editor/createSharedComposable.d.ts
1
2
  type AnyFn = (...args: any[]) => any;
2
- export type SharedComposableReturn<T extends AnyFn = AnyFn> = T;
3
+ type SharedComposableReturn<T extends AnyFn = AnyFn> = T;
3
4
  /**
4
5
  * Angular replacement for Vue's tryOnScopeDispose
5
6
  * Uses Angular's DestroyRef to handle cleanup when the injection context is destroyed
6
7
  */
7
- export declare function tryOnScopeDispose(fn: () => void): boolean;
8
+ declare function tryOnScopeDispose(fn: () => void): boolean;
8
9
  /**
9
10
  * Angular equivalent of Vue's createSharedComposable
10
11
  * Creates a singleton pattern for services/composables
11
12
  */
12
- export declare const createSharedComposable: <Fn extends AnyFn>(composable: Fn) => SharedComposableReturn<Fn>;
13
- export {};
13
+ declare const createSharedComposable: <Fn extends AnyFn>(composable: Fn) => SharedComposableReturn<Fn>;
14
+ //#endregion
15
+ export { SharedComposableReturn, createSharedComposable, tryOnScopeDispose };
14
16
  //# sourceMappingURL=createSharedComposable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createSharedComposable.d.ts","sourceRoot":"","sources":["../../../src/editor/createSharedComposable.ts"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAErC,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,IAAI,CAAC,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,WAY/C;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,EAAE,SAAS,KAAK,EACrD,YAAY,EAAE,KACb,sBAAsB,CAAC,EAAE,CA4B3B,CAAC"}
1
+ {"version":3,"file":"createSharedComposable.d.ts","names":[],"sources":["../../../src/editor/createSharedComposable.ts"],"sourcesContent":[],"mappings":";KAEK,KAAA;AAAA,KAEO,sBAFF,CAAA,UAEmC,KAFnC,GAE2C,KAF3C,CAAA,GAEoD,CAFpD;AAEV;;;;AAA+D,iBAM/C,iBAAA,CAN+C,EAAA,EAAA,GAAA,GAAA,IAAA,CAAA,EAAA,OAAA;AAM/D;AAkBA;;;AAE0B,cAFb,sBAEa,EAAA,CAAA,WAFwB,KAExB,CAAA,CAAA,UAAA,EADZ,EACY,EAAA,GAAvB,sBAAuB,CAAA,EAAA,CAAA"}
@@ -1,16 +1,19 @@
1
- import { Injector, Signal } from '@angular/core';
2
- import type { Dictionary } from '@intlayer/core';
3
- export type DictionaryContent = Record<Dictionary['key'], Dictionary>;
1
+ import { Injector, Signal } from "@angular/core";
2
+ import { Dictionary } from "@intlayer/types";
3
+
4
+ //#region src/editor/dictionariesRecord.d.ts
5
+ type DictionaryContent = Record<Dictionary['key'], Dictionary>;
4
6
  type DictionariesRecordClient = {
5
- localeDictionaries: Signal<DictionaryContent>;
6
- setLocaleDictionaries: (newValue: DictionaryContent) => void;
7
- setLocaleDictionary: (d: Dictionary) => void;
7
+ localeDictionaries: Signal<DictionaryContent>;
8
+ setLocaleDictionaries: (newValue: DictionaryContent) => void;
9
+ setLocaleDictionary: (d: Dictionary) => void;
8
10
  };
9
- export declare const createDictionaryRecordClient: () => DictionariesRecordClient;
11
+ declare const createDictionaryRecordClient: () => DictionariesRecordClient;
10
12
  /**
11
13
  * Helper to install the provider into the injector
12
14
  */
13
- export declare const installDictionariesRecord: (injector: Injector) => void;
14
- export declare const useDictionariesRecord: () => void;
15
- export {};
15
+ declare const installDictionariesRecord: (_injector: Injector) => void;
16
+ declare const useDictionariesRecord: () => void;
17
+ //#endregion
18
+ export { DictionaryContent, createDictionaryRecordClient, installDictionariesRecord, useDictionariesRecord };
16
19
  //# sourceMappingURL=dictionariesRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionariesRecord.d.ts","sourceRoot":"","sources":["../../../src/editor/dictionariesRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAWjD,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEtE,KAAK,wBAAwB,GAAG;IAC9B,kBAAkB,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC9C,qBAAqB,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7D,mBAAmB,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,4BAA4B,gCAsBxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,GAAI,UAAU,QAAQ,SAK3D,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAkBhC,CAAC"}
1
+ {"version":3,"file":"dictionariesRecord.d.ts","names":[],"sources":["../../../src/editor/dictionariesRecord.ts"],"sourcesContent":[],"mappings":";;;;KAYY,iBAAA,GAAoB,OAAO,mBAAmB;KAErD,wBAAA;EAFO,kBAAA,EAGU,MAHO,CAGA,iBAHA,CAAA;EAAU,qBAAA,EAAA,CAAA,QAAA,EAIH,iBAJG,EAAA,GAAA,IAAA;EAAmB,mBAAA,EAAA,CAAA,CAAA,EAK/B,UAL+B,EAAA,GAAA,IAAA;CAA1B;AAAM,cAQzB,4BARyB,EAAA,GAAA,GAQG,wBARH;AAAgC;;;AAIlC,cAgCvB,yBAhCuB,EAAA,CAAA,SAAA,EAgCiB,QAhCjB,EAAA,GAAA,IAAA;AACT,cAsCd,qBAtCc,EAAA,GAAA,GAAA,IAAA"}
@@ -1,19 +1,22 @@
1
- import { Injector, Signal } from '@angular/core';
2
- import type { ContentNode, Dictionary, KeyPath } from '@intlayer/core';
3
- export type EditedContent = Record<Dictionary['key'], Dictionary>;
1
+ import { Injector, Signal } from "@angular/core";
2
+ import { ContentNode, Dictionary, KeyPath, LocalDictionaryId } from "@intlayer/types";
3
+
4
+ //#region src/editor/editedContent.d.ts
5
+ type EditedContent = Record<Dictionary['key'], Dictionary>;
4
6
  type EditedContentClient = {
5
- editedContent: Signal<EditedContent>;
6
- setEditedContent: (editedContent: EditedContent) => void;
7
- getEditedContentValue: (dictionaryKey: Dictionary['key'], keyPath: KeyPath[]) => ContentNode | undefined;
7
+ editedContent: Signal<EditedContent>;
8
+ setEditedContent: (editedContent: EditedContent) => void;
9
+ getEditedContentValue: (localDictionaryIdOrKey: LocalDictionaryId | Dictionary['key'] | string, keyPath: KeyPath[]) => ContentNode | undefined;
8
10
  };
9
11
  /**
10
12
  * Creates an edited content client
11
13
  */
12
- export declare const createEditedContentClient: () => EditedContentClient;
14
+ declare const createEditedContentClient: () => EditedContentClient;
13
15
  /**
14
16
  * Helper to install the edited content into the injector
15
17
  */
16
- export declare const installEditedContent: (injector: Injector) => void;
17
- export declare const useEditedContent: () => EditedContentClient;
18
- export {};
18
+ declare const installEditedContent: (_injector: Injector) => void;
19
+ declare const useEditedContent: () => EditedContentClient;
20
+ //#endregion
21
+ export { EditedContent, createEditedContentClient, installEditedContent, useEditedContent };
19
22
  //# sourceMappingURL=editedContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editedContent.d.ts","sourceRoot":"","sources":["../../../src/editor/editedContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAMvE,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAElE,KAAK,mBAAmB,GAAG;IACzB,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IACrC,gBAAgB,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC;IACzD,qBAAqB,EAAE,CACrB,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,EAChC,OAAO,EAAE,OAAO,EAAE,KACf,WAAW,GAAG,SAAS,CAAC;CAC9B,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,yBAAyB,2BAsBrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,QAAQ,SAKtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,2BAwB3B,CAAC"}
1
+ {"version":3,"file":"editedContent.d.ts","names":[],"sources":["../../../src/editor/editedContent.ts"],"sourcesContent":[],"mappings":";;;;KAYY,aAAA,GAAgB,OAAO,mBAAmB;KAEjD,mBAAA;EAFO,aAAA,EAGK,MAHQ,CAGD,aAHC,CAAA;EAAU,gBAAA,EAAA,CAAA,aAAA,EAIC,aAJD,EAAA,GAAA,IAAA;EAAmB,qBAAA,EAAA,CAAA,sBAAA,EAM1B,iBAN0B,GAMN,UANM,CAAA,KAAA,CAAA,GAAA,MAAA,EAAA,OAAA,EAOzC,OAPyC,EAAA,EAAA,GAQ/C,WAR+C,GAAA,SAAA;CAA1B;;AAAsC;;AAGjD,cAkBJ,yBAlBI,EAAA,GAAA,GAkBqB,mBAlBrB;;;;AAIJ,cAqEA,oBArEA,EAAA,CAAA,SAAA,EAqEmC,QArEnC,EAAA,GAAA,IAAA;AACN,cA2EM,gBA3EN,EAAA,GAAA,GA2EsB,mBA3EtB"}
@@ -1,16 +1,20 @@
1
- import { Injector, Signal } from '@angular/core';
2
- export type EditorEnabledStateProps = {
3
- wrapperEnabled: Signal<boolean>;
4
- isInIframe: Signal<boolean>;
5
- enabled: Signal<boolean>;
1
+ import { Injector, Signal } from "@angular/core";
2
+
3
+ //#region src/editor/editorEnabled.d.ts
4
+ type EditorEnabledStateProps = {
5
+ wrapperEnabled: Signal<boolean>;
6
+ isInIframe: Signal<boolean>;
7
+ enabled: Signal<boolean>;
6
8
  };
7
9
  /**
8
10
  * Creates an editor wrapperEnabled client
9
11
  */
10
- export declare const createEditorEnabledClient: () => EditorEnabledStateProps;
12
+ declare const createEditorEnabledClient: () => EditorEnabledStateProps;
11
13
  /**
12
14
  * Helper to install the editor wrapperEnabled state into the injector
13
15
  */
14
- export declare const installEditorEnabled: (injector: Injector) => void;
15
- export declare const useEditorEnabled: () => EditorEnabledStateProps;
16
+ declare const installEditorEnabled: (_injector: Injector) => void;
17
+ declare const useEditorEnabled: () => EditorEnabledStateProps;
18
+ //#endregion
19
+ export { EditorEnabledStateProps, createEditorEnabledClient, installEditorEnabled, useEditorEnabled };
16
20
  //# sourceMappingURL=editorEnabled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editorEnabled.d.ts","sourceRoot":"","sources":["../../../src/editor/editorEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AAQ3E,MAAM,MAAM,uBAAuB,GAAG;IACpC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CAC1B,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,yBAAyB,+BAgBrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,QAAQ,SAKtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BA0B3B,CAAC"}
1
+ {"version":3,"file":"editorEnabled.d.ts","names":[],"sources":["../../../src/editor/editorEnabled.ts"],"sourcesContent":[],"mappings":";;;KAcY,uBAAA;kBACM;EADN,UAAA,EAEE,MAFF,CAAA,OAAuB,CAAA;EACjB,OAAA,EAEP,MAFO,CAAA,OAAA,CAAA;CACJ;;;AAcd;AAqBa,cArBA,yBAqBmC,EAAQ,GAAA,GArBlB,uBAqBkB;AAOxD;;;cAPa,kCAAmC;cAOnC,wBAAgB"}
@@ -1,3 +1,7 @@
1
- import { IntlayerProvider } from '../client';
2
- export declare const useEditorLocale: () => IntlayerProvider;
1
+ import { IntlayerProvider } from "../client/installIntlayer.js";
2
+
3
+ //#region src/editor/editorLocale.d.ts
4
+ declare const useEditorLocale: () => IntlayerProvider;
5
+ //#endregion
6
+ export { useEditorLocale };
3
7
  //# sourceMappingURL=editorLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editorLocale.d.ts","sourceRoot":"","sources":["../../../src/editor/editorLocale.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7D,eAAO,MAAM,eAAe,wBAkB1B,CAAC"}
1
+ {"version":3,"file":"editorLocale.d.ts","names":[],"sources":["../../../src/editor/editorLocale.ts"],"sourcesContent":[],"mappings":";;;cAOa,uBAAe"}
@@ -1,24 +1,27 @@
1
- import { Injector, Signal } from '@angular/core';
2
- import type { KeyPath } from '@intlayer/core';
3
- export type FileContent = {
4
- dictionaryKey: string;
5
- keyPath?: KeyPath[];
6
- dictionaryPath?: string;
1
+ import { Injector, Signal } from "@angular/core";
2
+ import { KeyPath } from "@intlayer/types";
3
+
4
+ //#region src/editor/focusDictionary.d.ts
5
+ type FileContent = {
6
+ dictionaryKey: string;
7
+ keyPath?: KeyPath[];
8
+ dictionaryPath?: string;
7
9
  };
8
10
  type FocusDictionaryClient = {
9
- focusedContent: Signal<FileContent | null>;
10
- setFocusedContent: (focussedContent: FileContent | null) => void;
11
- setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
11
+ focusedContent: Signal<FileContent | null>;
12
+ setFocusedContent: (focussedContent: FileContent | null) => void;
13
+ setFocusedContentKeyPath: (keyPath: KeyPath[]) => void;
12
14
  };
13
15
  /**
14
16
  * Creates a focus dictionary client
15
17
  */
16
- export declare const createFocusDictionaryClient: () => FocusDictionaryClient;
18
+ declare const createFocusDictionaryClient: () => FocusDictionaryClient;
17
19
  /**
18
20
  * Helper to install the focus dictionary into the injector
19
21
  */
20
- export declare const installFocusDictionary: (injector: Injector) => void;
22
+ declare const installFocusDictionary: (_injector: Injector) => void;
21
23
  /** consumer */
22
- export declare const useFocusDictionary: () => FocusDictionaryClient;
23
- export {};
24
+ declare const useFocusDictionary: () => FocusDictionaryClient;
25
+ //#endregion
26
+ export { FileContent, createFocusDictionaryClient, installFocusDictionary, useFocusDictionary };
24
27
  //# sourceMappingURL=focusDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusDictionary.d.ts","sourceRoot":"","sources":["../../../src/editor/focusDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAK9C,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,cAAc,EAAE,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC3C,iBAAiB,EAAE,CAAC,eAAe,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACjE,wBAAwB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACxD,CAAC;AAOF;;GAEG;AACH,eAAO,MAAM,2BAA2B,6BAsBvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAU,QAAQ,SAKxD,CAAC;AAEF,eAAe;AACf,eAAO,MAAM,kBAAkB,6BA6B7B,CAAC"}
1
+ {"version":3,"file":"focusDictionary.d.ts","names":[],"sources":["../../../src/editor/focusDictionary.ts"],"sourcesContent":[],"mappings":";;;;KAMY,WAAA;;EAAA,OAAA,CAAA,EAEA,OAFW,EAAA;EAMlB,cAAA,CAAA,EAAA,MAAA;CACoB;KADpB,qBAAA,GACa;EACqB,cAAA,EADrB,MACqB,CADd,WACc,GAAA,IAAA,CAAA;EACD,iBAAA,EAAA,CAAA,eAAA,EADC,WACD,GAAA,IAAA,EAAA,GAAA,IAAA;EAAO,wBAAA,EAAA,CAAA,OAAA,EAAP,OAAO,EAAA,EAAA,GAAA,IAAA;AAW7C,CAAA;AA2BA;AAQA;;cAnCa,mCAA2B;;;;cA2B3B,oCAAqC;;cAQrC,0BAAkB"}
@@ -1,5 +1,5 @@
1
- export { ContentSelectorWrapperComponent } from './ContentSelectorWrapper.component';
2
- export { EditedContentRendererComponent } from './EditedContentRenderer.component';
3
- export { EditorSelectorRendererComponent } from './EditorSelectorRenderer.component';
4
- export * from './installIntlayerEditor';
5
- //# sourceMappingURL=index.d.ts.map
1
+ import { ContentSelectorWrapperComponent } from "./ContentSelectorWrapper.component.js";
2
+ import { EditedContentRendererComponent } from "./EditedContentRenderer.component.js";
3
+ import { EditorSelectorRendererComponent } from "./EditorSelectorRenderer.component.js";
4
+ import { installIntlayerEditor } from "./installIntlayerEditor.js";
5
+ export { ContentSelectorWrapperComponent, EditedContentRendererComponent, EditorSelectorRendererComponent, installIntlayerEditor };
@@ -1,4 +1,7 @@
1
- import { Injector } from '@angular/core';
1
+ import { Injector } from "@angular/core";
2
+
3
+ //#region src/editor/installIntlayerEditor.d.ts
4
+
2
5
  /**
3
6
  * Angular-side replacement for the former <IntlayerEditorProvider> React component.
4
7
  *
@@ -14,5 +17,7 @@ import { Injector } from '@angular/core';
14
17
  * });
15
18
  * ```
16
19
  */
17
- export declare const installIntlayerEditor: (injector: Injector) => void;
20
+ declare const installIntlayerEditor: (injector: Injector) => void;
21
+ //#endregion
22
+ export { installIntlayerEditor };
18
23
  //# sourceMappingURL=installIntlayerEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installIntlayerEditor.d.ts","sourceRoot":"","sources":["../../../src/editor/installIntlayerEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AA+BzC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,QAAQ,KAAG,IAa1D,CAAC"}
1
+ {"version":3,"file":"installIntlayerEditor.d.ts","names":[],"sources":["../../../src/editor/installIntlayerEditor.ts"],"sourcesContent":[],"mappings":";;;;;;AA8CA;;;;;;;;;;;;;cAAa,kCAAmC"}
@@ -1,4 +1,7 @@
1
- import { type MessageKey } from '@intlayer/editor';
1
+ import { MessageKey } from "@intlayer/editor";
2
+
3
+ //#region src/editor/useCrossFrameMessageListener.d.ts
4
+
2
5
  /**
3
6
  * useCrossFrameMessageListener
4
7
  *
@@ -7,5 +10,7 @@ import { type MessageKey } from '@intlayer/editor';
7
10
  * @param onEventTriggered optional callback when a matching message arrives
8
11
  * @returns postMessage(data?) helper scoped to this key
9
12
  */
10
- export declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void) => (data?: S) => void;
13
+ declare const useCrossFrameMessageListener: <S>(key: `${MessageKey}` | `${MessageKey}/post` | `${MessageKey}/get`, onEventTriggered?: (data: S) => void) => (data?: S) => void;
14
+ //#endregion
15
+ export { useCrossFrameMessageListener };
11
16
  //# sourceMappingURL=useCrossFrameMessageListener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossFrameMessageListener.d.ts","sourceRoot":"","sources":["../../../src/editor/useCrossFrameMessageListener.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,kBAAkB,CAAC;AAsDhE;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,EAC5C,KAAK,GAAG,UAAU,EAAE,GAAG,GAAG,UAAU,OAAO,GAAG,GAAG,UAAU,MAAM,EACjE,mBAAmB,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,aA8BD,CAAC,SAKrC,CAAC"}
1
+ {"version":3,"file":"useCrossFrameMessageListener.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameMessageListener.ts"],"sourcesContent":[],"mappings":";;;;;;AAiEA;;;;;;AAgCsC,cAhCzB,4BAgCyB,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA,EAAA,GA/B5B,UA+B4B,EAAA,GAAA,GA/BV,UA+BU,OAAA,GAAA,GA/Ba,UA+Bb,MAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,IAAA,EA9BV,CA8BU,EAAA,GAAA,IAAA,EAAA,GAAA,CAAA,IAAA,CAAA,EAAD,CAAC,EAAA,GAAA,IAAA"}
@@ -1,10 +1,12 @@
1
- import { Signal } from '@angular/core';
2
- import { type MessageKey } from '@intlayer/editor';
3
- export type CrossFrameStateOptions = {
4
- /** Whether to broadcast state changes to other instances (default: true) */
5
- emit?: boolean;
6
- /** Whether to listen for state updates from other instances (default: true) */
7
- receive?: boolean;
1
+ import { Signal } from "@angular/core";
2
+ import { MessageKey } from "@intlayer/editor";
3
+
4
+ //#region src/editor/useCrossFrameState.d.ts
5
+ type CrossFrameStateOptions = {
6
+ /** Whether to broadcast state changes to other instances (default: true) */
7
+ emit?: boolean;
8
+ /** Whether to listen for state updates from other instances (default: true) */
9
+ receive?: boolean;
8
10
  };
9
11
  /**
10
12
  * Angular replacement for Vue's cross-frame state composable.
@@ -20,5 +22,7 @@ export type CrossFrameStateOptions = {
20
22
  * - `setState` – Setter with the same API as React's `setState`.
21
23
  * - `postState` – Manually broadcast the current state (useful after mutations outside `setState`).
22
24
  */
23
- export declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [Signal<S | undefined>, (v: S | ((prev: S | undefined) => S)) => void, () => void];
25
+ declare const useCrossFrameState: <S>(key: `${MessageKey}`, initialState?: S | (() => S), options?: CrossFrameStateOptions) => [Signal<S | undefined>, (v: S | ((prev: S | undefined) => S)) => void, () => void];
26
+ //#endregion
27
+ export { CrossFrameStateOptions, useCrossFrameState };
24
28
  //# sourceMappingURL=useCrossFrameState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossFrameState.d.ts","sourceRoot":"","sources":["../../../src/editor/useCrossFrameState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD,MAAM,MAAM,sBAAsB,GAAG;IACnC,4EAA4E;IAC5E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAkCF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAClC,KAAK,GAAG,UAAU,EAAE,EACpB,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAC5B,UAAS,sBAAsD,KAC9D,CACD,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC,EACrB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,KAAK,CAAC,CAAC,KAAK,IAAI,EAC7C,MAAM,IAAI,CAkGX,CAAC"}
1
+ {"version":3,"file":"useCrossFrameState.d.ts","names":[],"sources":["../../../src/editor/useCrossFrameState.ts"],"sourcesContent":[],"mappings":";;;;KAKY,sBAAA;;EAAA,IAAA,CAAA,EAAA,OAAA;EAqDC;EACH,OAAA,CAAA,EAAA,OAAA;CACO;;;;;;;;;;;;;;;cAFJ,gCACH,6BACO,WAAW,cACjB,4BAET,OAAO,oBACH,YAAY,kBAAkB"}
@@ -1,16 +1,22 @@
1
- import { useCrossFrameState } from './useCrossFrameState';
1
+ import { useCrossFrameState } from "./useCrossFrameState.js";
2
+ import * as _angular_core1 from "@angular/core";
3
+
4
+ //#region src/editor/useCrossURLPathState.d.ts
5
+
2
6
  /**
3
7
  * Hook to create and manage a cross-frame synchronized URL path state
4
8
  * @param initial - The initial URL path
5
9
  * @param opts - Options for controlling emit and receive behavior
6
10
  * @returns A tuple containing [state signal, setState function, forceSync function]
7
11
  */
8
- export declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [import("@angular/core").Signal<string>, (v: string | ((prev: string) => string)) => void, () => void];
12
+ declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [_angular_core1.Signal<string>, (v: string | ((prev: string) => string)) => void, () => void];
9
13
  /**
10
14
  * Hook for host applications to push URL path changes into the shared state
11
15
  * This also monkey patches history methods to capture navigation events
12
16
  * @param initial - The initial URL path
13
17
  * @returns A tuple containing [state signal, setState function]
14
18
  */
15
- export declare const useCrossURLPathSetter: (initial?: string) => readonly [import("@angular/core").Signal<string>, (v: string | ((prev: string) => string)) => void];
19
+ declare const useCrossURLPathSetter: (initial?: string) => readonly [_angular_core1.Signal<string>, (v: string | ((prev: string) => string)) => void];
20
+ //#endregion
21
+ export { useCrossURLPathSetter, useCrossURLPathState };
16
22
  //# sourceMappingURL=useCrossURLPathState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCrossURLPathState.d.ts","sourceRoot":"","sources":["../../../src/editor/useCrossURLPathState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,MAAM,EAChB,OAAO,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,2GAC6B,CAAC;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,wGAiErD,CAAC"}
1
+ {"version":3,"file":"useCrossURLPathState.d.ts","names":[],"sources":["../../../src/editor/useCrossURLPathState.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAUA;;;AAEmB,cAFN,oBAEoC,EAAA,CAAA,OAAA,CAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAAxC,UAAwC,CAAA,OAAtB,kBAAsB,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAA9B,cAAA,CAA8B,MAAA,CAAA,MAAA,CAAA,EAAA,CAAA,CAAA,EAAA,MAAA,GAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GAAA,MAAA,CAAA,EAAA,GAAA,IAAA,EAAA,GAAA,GAAA,IAAA,CAAA;;AASjD;;;;;cAAa,uDAiEZ,cAAA,CAjEqD"}
@@ -1,17 +1,21 @@
1
- import { InjectionToken, Signal } from '@angular/core';
2
- import { type KeyPath } from '@intlayer/core';
3
- export interface EditedContentActions {
4
- getEditedContentValue(dictionaryKey: string, keyPath: KeyPath[]): unknown;
1
+ import { InjectionToken, Signal } from "@angular/core";
2
+ import { KeyPath } from "@intlayer/types";
3
+
4
+ //#region src/editor/useEditedContentRenderer.d.ts
5
+ interface EditedContentActions {
6
+ getEditedContentValue(dictionaryKey: string, keyPath: KeyPath[]): unknown;
5
7
  }
6
- export declare const EDITED_CONTENT_ACTIONS_TOKEN: InjectionToken<EditedContentActions>;
7
- export declare class EditedContentRendererService {
8
- /**
9
- * Mirrors the React hook one-for-one.
10
- */
11
- useEditedContentRenderer(dictionaryKey: string, keyPath: KeyPath[], fallback: unknown): Signal<unknown>;
8
+ declare const EDITED_CONTENT_ACTIONS_TOKEN: InjectionToken<EditedContentActions>;
9
+ declare class EditedContentRendererService {
10
+ /**
11
+ * Mirrors the React hook one-for-one.
12
+ */
13
+ useEditedContentRenderer(dictionaryKey: string, keyPath: KeyPath[], fallback: unknown): Signal<unknown>;
12
14
  }
13
15
  /**
14
16
  * Standalone function that can be used like the Vue composable
15
17
  */
16
- export declare const useEditedContentRenderer: (dictionaryKey: string, keyPath: KeyPath[], fallback: unknown) => Signal<unknown>;
18
+ declare const useEditedContentRenderer: (dictionaryKey: string, keyPath: KeyPath[], fallback: unknown) => Signal<unknown>;
19
+ //#endregion
20
+ export { EDITED_CONTENT_ACTIONS_TOKEN, EditedContentActions, EditedContentRendererService, useEditedContentRenderer };
17
21
  //# sourceMappingURL=useEditedContentRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEditedContentRenderer.d.ts","sourceRoot":"","sources":["../../../src/editor/useEditedContentRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,cAAc,EACd,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,oBAAoB;IACnC,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;CAC3E;AAED,eAAO,MAAM,4BAA4B,sCACgC,CAAC;AAE1E,qBAGa,4BAA4B;IACvC;;OAEG;IACH,wBAAwB,CACtB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,OAAO,EAAE,EAClB,QAAQ,EAAE,OAAO,GAChB,MAAM,CAAC,OAAO,CAAC;CAcnB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,eAAe,MAAM,EACrB,SAAS,OAAO,EAAE,EAClB,UAAU,OAAO,KAChB,MAAM,CAAC,OAAO,CAGhB,CAAC"}
1
+ {"version":3,"file":"useEditedContentRenderer.d.ts","names":[],"sources":["../../../src/editor/useEditedContentRenderer.ts"],"sourcesContent":[],"mappings":";;;;UASiB,oBAAA;wDACuC;AADxD;AAIa,cAAA,4BAA4B,EAAA,cAAA,CAAA,oBAAA,CAAA;AAM5B,cAAA,4BAAA,CAMA;EAqBA;;;2DArBA,+BAER;;;;;cAmBQ,2DAEF,iCAER"}
@@ -1,2 +1,5 @@
1
- export declare const useEditor: () => void;
1
+ //#region src/editor/useEditor.d.ts
2
+ declare const useEditor: () => void;
3
+ //#endregion
4
+ export { useEditor };
2
5
  //# sourceMappingURL=useEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../src/editor/useEditor.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS,YASpB,CAAC"}
1
+ {"version":3,"file":"useEditor.d.ts","names":[],"sources":["../../../src/editor/useEditor.ts"],"sourcesContent":[],"mappings":";cASa"}
@@ -1,11 +1,14 @@
1
+ //#region src/editor/useIframeClickInterceptor.d.ts
1
2
  /**
2
3
  * Hook that intercepts clicks in the iframe and sends them to the parent window
3
4
  * This allows the parent window to know when the iframe is clicked
4
5
  */
5
- export declare const useIframeClickInterceptor: () => void;
6
+ declare const useIframeClickInterceptor: () => void;
6
7
  /**
7
8
  * Hook for the parent window to listen for iframe clicks and merge them
8
9
  * This makes iframe clicks behave as if they happened in the parent window
9
10
  */
10
- export declare const useIframeClickMerger: () => void;
11
+ declare const useIframeClickMerger: () => void;
12
+ //#endregion
13
+ export { useIframeClickInterceptor, useIframeClickMerger };
11
14
  //# sourceMappingURL=useIframeClickInterceptor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIframeClickInterceptor.d.ts","sourceRoot":"","sources":["../../../src/editor/useIframeClickInterceptor.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,eAAO,MAAM,yBAAyB,YA4BpC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,YAO/B,CAAC"}
1
+ {"version":3,"file":"useIframeClickInterceptor.d.ts","names":[],"sources":["../../../src/editor/useIframeClickInterceptor.ts"],"sourcesContent":[],"mappings":";;AAaA;AAkCA;;cAlCa;;;;;cAkCA"}
@@ -1,5 +1,9 @@
1
- import type { Locales, LocalesValues } from '@intlayer/config/client';
2
- import { Dictionary, Plugins } from '@intlayer/core';
3
- import { DeepTransformContent } from './plugins';
4
- export declare const getDictionary: <T extends Dictionary, L extends LocalesValues = Locales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<T["content"]>;
1
+ import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
2
+ import * as _intlayer_core0 from "@intlayer/core";
3
+ import { Plugins } from "@intlayer/core";
4
+
5
+ //#region src/getDictionary.d.ts
6
+ declare const getDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L, additionalPlugins?: Plugins[]) => _intlayer_core0.DeepTransformContent<T["content"], _intlayer_core0.IInterpreterPluginState, L>;
7
+ //#endregion
8
+ export { getDictionary };
5
9
  //# sourceMappingURL=getDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.d.ts","sourceRoot":"","sources":["../../src/getDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,UAAU,EACV,OAAO,EAER,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,oBAAoB,EAGrB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,aAAa,GACxB,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,aAAa,GAAG,OAAO,EAEjC,YAAY,CAAC,EACb,SAAS,CAAC,EACV,oBAAoB,OAAO,EAAE,KAYjB,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,CAAC"}
1
+ {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../src/getDictionary.ts"],"sourcesContent":[],"mappings":";;;;;cAWa,0BACD,sBACA,gBAAgB,6BAEd,YACH,uBACW,cAAS,eAAA,CAAA,qBAAA,cAAA,eAAA,CAAA,uBAAA,EAAA"}
@@ -1,5 +1,9 @@
1
- import { DictionaryKeys, Plugins } from '@intlayer/core';
2
- import type { IntlayerDictionaryTypesConnector, LocalesValues } from 'intlayer';
3
- import { DeepTransformContent } from './plugins';
4
- export declare const getIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent<IntlayerDictionaryTypesConnector[T]["content"]>;
1
+ import { DeepTransformContent as DeepTransformContent$1 } from "./plugins.js";
2
+ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types";
3
+ import { Plugins } from "@intlayer/core";
4
+
5
+ //#region src/getIntlayer.d.ts
6
+ declare const getIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L, additionalPlugins?: Plugins[]) => DeepTransformContent$1<DictionaryRegistryContent<T>>;
7
+ //#endregion
8
+ export { getIntlayer };
5
9
  //# sourceMappingURL=getIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../src/getIntlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAEd,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,gCAAgC,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EACL,oBAAoB,EAGrB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,aAAa,EAC3E,KAAK,CAAC,EACN,SAAS,CAAC,EACV,oBAAoB,OAAO,EAAE,KAQ0B,oBAAoB,CACzE,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAEjD,CAAC"}
1
+ {"version":3,"file":"getIntlayer.d.ts","names":[],"sources":["../../src/getIntlayer.ts"],"sourcesContent":[],"mappings":";;;;;cAaa,wBACD,0BACA,gBAAgB,sBAErB,YACI,uBACW,cASkC,uBACpD,0BAA0B"}
@@ -1,11 +1,19 @@
1
- import { IInterpreterPluginAngular } from './plugins';
1
+ import { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient, installIntlayer } from "./client/installIntlayer.js";
2
+ import { DeepTransformContent, IInterpreterPluginAngular, IInterpreterPluginState, IntlayerNode, IntlayerNodeCond, MarkdownCond, MarkdownStringCond, intlayerNodePlugins, markdownPlugin, markdownStringPlugin } from "./plugins.js";
3
+ import { useDictionary } from "./client/useDictionary.js";
4
+ import { useDictionaryAsync } from "./client/useDictionaryAsync.js";
5
+ import { getDictionary } from "./getDictionary.js";
6
+ import { getIntlayer } from "./getIntlayer.js";
7
+ import { INTLAYER_MARKDOWN_TOKEN, IntlayerMarkdownProvider, IntlayerMarkdownService, createIntlayerMarkdownProvider, useMarkdown } from "./markdown/installIntlayerMarkdown.js";
8
+ import { useDictionaryDynamic } from "./client/useDictionaryDynamic.js";
9
+ import { isUpdatableNode, useIntlayer } from "./client/useIntlayer.js";
10
+ import { useLoadDynamic } from "./client/useLoadDynamic.js";
11
+ import { useLocale } from "./client/useLocale.js";
12
+
13
+ //#region src/index.d.ts
2
14
  declare module '@intlayer/core' {
3
- interface IInterpreterPlugin<T, S> extends IInterpreterPluginAngular<T> {
4
- }
15
+ interface IInterpreterPlugin<T, S, L> extends IInterpreterPluginAngular<T> {}
5
16
  }
6
- export * from './client';
7
- export * from './getDictionary';
8
- export * from './getIntlayer';
9
- export * from './markdown';
10
- export * from './plugins';
17
+ //#endregion
18
+ export { DeepTransformContent, IInterpreterPluginAngular, IInterpreterPluginState, INTLAYER_MARKDOWN_TOKEN, INTLAYER_TOKEN, IntlayerMarkdownProvider, IntlayerMarkdownService, IntlayerNode, IntlayerNodeCond, IntlayerProvider, MarkdownCond, MarkdownStringCond, createIntlayerClient, createIntlayerMarkdownProvider, getDictionary, getIntlayer, installIntlayer, intlayerNodePlugins, isUpdatableNode, markdownPlugin, markdownStringPlugin, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntlayer, useLoadDynamic, useLocale, useMarkdown };
11
19
  //# sourceMappingURL=index.d.ts.map