angular-intlayer 6.1.6 → 7.0.0-canary.0

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,34 +1,17 @@
1
- const renderIntlayerNode = ({
2
- children,
3
- value,
4
- additionalProps = {}
5
- }) => {
6
- if (children == null) {
7
- return new Proxy({}, {
8
- get(target, prop, receiver) {
9
- if (prop === "value") {
10
- return value;
11
- }
12
- if (additionalProps && Object.keys(additionalProps).includes(prop)) {
13
- return additionalProps[prop];
14
- }
15
- return Reflect.get(target, prop, receiver);
16
- }
17
- });
18
- }
19
- return new Proxy(children, {
20
- get(target, prop, receiver) {
21
- if (prop === "value") {
22
- return value;
23
- }
24
- if (additionalProps && Object.keys(additionalProps).includes(prop)) {
25
- return additionalProps[prop];
26
- }
27
- return Reflect.get(target, prop, receiver);
28
- }
29
- });
30
- };
31
- export {
32
- renderIntlayerNode
1
+ //#region src/renderIntlayerNode.ts
2
+ const renderIntlayerNode = ({ children, value, additionalProps = {} }) => {
3
+ if (children == null) return new Proxy({}, { get(target, prop, receiver) {
4
+ if (prop === "value") return value;
5
+ if (additionalProps && Object.keys(additionalProps).includes(prop)) return additionalProps[prop];
6
+ return Reflect.get(target, prop, receiver);
7
+ } });
8
+ return new Proxy(children, { get(target, prop, receiver) {
9
+ if (prop === "value") return value;
10
+ if (additionalProps && Object.keys(additionalProps).includes(prop)) return additionalProps[prop];
11
+ return Reflect.get(target, prop, receiver);
12
+ } });
33
13
  };
14
+
15
+ //#endregion
16
+ export { renderIntlayerNode };
34
17
  //# sourceMappingURL=renderIntlayerNode.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/renderIntlayerNode.ts"],"sourcesContent":["export type IntlayerNode<T = string, AdditionalProps = {}> = any & {\n value: T;\n} & AdditionalProps;\n\ntype RenderIntlayerNodeProps<T> = {\n value: T;\n children: any;\n additionalProps?: { [key: string]: any };\n};\n\nexport const renderIntlayerNode = <\n T extends number | string | boolean | undefined | null,\n>({\n children,\n value,\n additionalProps = {},\n}: RenderIntlayerNodeProps<T>): IntlayerNode<T> => {\n // If children is null or undefined, return a simple object with the value\n if (children == null) {\n return new Proxy({} as any, {\n get(target, prop, receiver) {\n if (prop === 'value') {\n return value;\n }\n\n if (\n additionalProps &&\n Object.keys(additionalProps).includes(prop as string)\n ) {\n return additionalProps[prop as keyof typeof additionalProps];\n }\n\n return Reflect.get(target, prop, receiver);\n },\n }) as IntlayerNode<T>;\n }\n\n // Return a Proxy that pretends to be the original content\n // but also has a .value getter and additional props.\n return new Proxy(children, {\n get(target, prop, receiver) {\n if (prop === 'value') {\n return value;\n }\n\n if (\n additionalProps &&\n Object.keys(additionalProps).includes(prop as string)\n ) {\n return additionalProps[prop as keyof typeof additionalProps];\n }\n\n return Reflect.get(target, prop, receiver);\n },\n }) as IntlayerNode<T>;\n};\n"],"mappings":"AAUO,MAAM,qBAAqB,CAEhC;AAAA,EACA;AAAA,EACA;AAAA,EACA,kBAAkB,CAAC;AACrB,MAAmD;AAEjD,MAAI,YAAY,MAAM;AACpB,WAAO,IAAI,MAAM,CAAC,GAAU;AAAA,MAC1B,IAAI,QAAQ,MAAM,UAAU;AAC1B,YAAI,SAAS,SAAS;AACpB,iBAAO;AAAA,QACT;AAEA,YACE,mBACA,OAAO,KAAK,eAAe,EAAE,SAAS,IAAc,GACpD;AACA,iBAAO,gBAAgB,IAAoC;AAAA,QAC7D;AAEA,eAAO,QAAQ,IAAI,QAAQ,MAAM,QAAQ;AAAA,MAC3C;AAAA,IACF,CAAC;AAAA,EACH;AAIA,SAAO,IAAI,MAAM,UAAU;AAAA,IACzB,IAAI,QAAQ,MAAM,UAAU;AAC1B,UAAI,SAAS,SAAS;AACpB,eAAO;AAAA,MACT;AAEA,UACE,mBACA,OAAO,KAAK,eAAe,EAAE,SAAS,IAAc,GACpD;AACA,eAAO,gBAAgB,IAAoC;AAAA,MAC7D;AAEA,aAAO,QAAQ,IAAI,QAAQ,MAAM,QAAQ;AAAA,IAC3C;AAAA,EACF,CAAC;AACH;","names":[]}
1
+ {"version":3,"file":"renderIntlayerNode.mjs","names":[],"sources":["../../src/renderIntlayerNode.ts"],"sourcesContent":["export type IntlayerNode<T = string, AdditionalProps = {}> = any & {\n value: T;\n} & AdditionalProps;\n\ntype RenderIntlayerNodeProps<T> = {\n value: T;\n children: any;\n additionalProps?: { [key: string]: any };\n};\n\nexport const renderIntlayerNode = <\n T extends number | string | boolean | undefined | null,\n>({\n children,\n value,\n additionalProps = {},\n}: RenderIntlayerNodeProps<T>): IntlayerNode<T> => {\n // If children is null or undefined, return a simple object with the value\n if (children == null) {\n return new Proxy({} as any, {\n get(target, prop, receiver) {\n if (prop === 'value') {\n return value;\n }\n\n if (\n additionalProps &&\n Object.keys(additionalProps).includes(prop as string)\n ) {\n return additionalProps[prop as keyof typeof additionalProps];\n }\n\n return Reflect.get(target, prop, receiver);\n },\n }) as IntlayerNode<T>;\n }\n\n // Return a Proxy that pretends to be the original content\n // but also has a .value getter and additional props.\n return new Proxy(children, {\n get(target, prop, receiver) {\n if (prop === 'value') {\n return value;\n }\n\n if (\n additionalProps &&\n Object.keys(additionalProps).includes(prop as string)\n ) {\n return additionalProps[prop as keyof typeof additionalProps];\n }\n\n return Reflect.get(target, prop, receiver);\n },\n }) as IntlayerNode<T>;\n};\n"],"mappings":";AAUA,MAAa,sBAEX,EACA,UACA,OACA,kBAAkB,EAAE,OAC6B;AAEjD,KAAI,YAAY,KACd,QAAO,IAAI,MAAM,EAAE,EAAS,EAC1B,IAAI,QAAQ,MAAM,UAAU;AAC1B,MAAI,SAAS,QACX,QAAO;AAGT,MACE,mBACA,OAAO,KAAK,gBAAgB,CAAC,SAAS,KAAe,CAErD,QAAO,gBAAgB;AAGzB,SAAO,QAAQ,IAAI,QAAQ,MAAM,SAAS;IAE7C,CAAC;AAKJ,QAAO,IAAI,MAAM,UAAU,EACzB,IAAI,QAAQ,MAAM,UAAU;AAC1B,MAAI,SAAS,QACX,QAAO;AAGT,MACE,mBACA,OAAO,KAAK,gBAAgB,CAAC,SAAS,KAAe,CAErD,QAAO,gBAAgB;AAGzB,SAAO,QAAQ,IAAI,QAAQ,MAAM,SAAS;IAE7C,CAAC"}
@@ -1,2 +1,3 @@
1
- export * from "./mergeConfig.mjs";
2
- //# sourceMappingURL=index.mjs.map
1
+ import { mergeConfig } from "./mergeConfig.mjs";
2
+
3
+ export { mergeConfig };
@@ -1,37 +1,31 @@
1
+ import { resolve } from "node:path";
1
2
  import { getAlias, getConfiguration } from "@intlayer/config";
2
3
  import { IntlayerPlugin } from "@intlayer/webpack";
3
4
  import merge from "deepmerge";
4
- import { resolve } from "path";
5
+
6
+ //#region src/webpack/mergeConfig.ts
5
7
  const mergeConfig = (baseConfig) => {
6
- const intlayerConfig = getConfiguration();
7
- const config = {
8
- resolve: {
9
- alias: getAlias({
10
- configuration: intlayerConfig,
11
- formatter: (value) => resolve(value)
12
- // get absolute path
13
- })
14
- },
15
- externals: {
16
- esbuild: "esbuild",
17
- module: "module",
18
- fs: "fs",
19
- chokidar: "chokidar",
20
- fsevents: "fsevents"
21
- },
22
- module: {
23
- rules: [
24
- {
25
- test: /\.node$/,
26
- loader: "node-loader"
27
- }
28
- ]
29
- },
30
- plugins: [new IntlayerPlugin()]
31
- };
32
- return merge(baseConfig, config);
33
- };
34
- export {
35
- mergeConfig
8
+ const intlayerConfig = getConfiguration();
9
+ return merge(baseConfig, {
10
+ resolve: { alias: getAlias({
11
+ configuration: intlayerConfig,
12
+ formatter: (value) => resolve(value)
13
+ }) },
14
+ externals: {
15
+ esbuild: "esbuild",
16
+ module: "module",
17
+ fs: "fs",
18
+ chokidar: "chokidar",
19
+ fsevents: "fsevents"
20
+ },
21
+ module: { rules: [{
22
+ test: /\.node$/,
23
+ loader: "node-loader"
24
+ }] },
25
+ plugins: [new IntlayerPlugin(intlayerConfig)]
26
+ });
36
27
  };
28
+
29
+ //#endregion
30
+ export { mergeConfig };
37
31
  //# sourceMappingURL=mergeConfig.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport merge from 'deepmerge';\nimport { resolve } from 'path';\nimport type { Configuration as WebpackConfig } from 'webpack';\n\nexport const mergeConfig = (baseConfig: WebpackConfig): WebpackConfig => {\n const intlayerConfig = getConfiguration();\n\n const config = {\n resolve: {\n alias: getAlias({\n configuration: intlayerConfig,\n formatter: (value: string) => resolve(value), // get absolute path\n }),\n },\n externals: {\n esbuild: 'esbuild',\n module: 'module',\n fs: 'fs',\n chokidar: 'chokidar',\n fsevents: 'fsevents',\n },\n module: {\n rules: [\n {\n test: /\\.node$/,\n loader: 'node-loader',\n },\n ],\n },\n plugins: [new IntlayerPlugin()],\n };\n\n return merge(baseConfig, config);\n};\n"],"mappings":"AAAA,SAAS,UAAU,wBAAwB;AAC3C,SAAS,sBAAsB;AAC/B,OAAO,WAAW;AAClB,SAAS,eAAe;AAGjB,MAAM,cAAc,CAAC,eAA6C;AACvE,QAAM,iBAAiB,iBAAiB;AAExC,QAAM,SAAS;AAAA,IACb,SAAS;AAAA,MACP,OAAO,SAAS;AAAA,QACd,eAAe;AAAA,QACf,WAAW,CAAC,UAAkB,QAAQ,KAAK;AAAA;AAAA,MAC7C,CAAC;AAAA,IACH;AAAA,IACA,WAAW;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,UAAU;AAAA,MACV,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,OAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS,CAAC,IAAI,eAAe,CAAC;AAAA,EAChC;AAEA,SAAO,MAAM,YAAY,MAAM;AACjC;","names":[]}
1
+ {"version":3,"file":"mergeConfig.mjs","names":[],"sources":["../../../src/webpack/mergeConfig.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin } from '@intlayer/webpack'; // adjust path if needed\nimport merge from 'deepmerge';\n/** @ts-ignore Configuration type exist but raise error */\nimport type { Configuration as WebpackConfig } from 'webpack';\n\nexport const mergeConfig = (baseConfig: WebpackConfig): WebpackConfig => {\n const intlayerConfig = getConfiguration();\n\n const config = {\n resolve: {\n alias: getAlias({\n configuration: intlayerConfig,\n formatter: (value: string) => resolve(value), // get absolute path\n }),\n },\n externals: {\n esbuild: 'esbuild',\n module: 'module',\n fs: 'fs',\n chokidar: 'chokidar',\n fsevents: 'fsevents',\n },\n module: {\n rules: [\n {\n test: /\\.node$/,\n loader: 'node-loader',\n },\n ],\n },\n plugins: [new IntlayerPlugin(intlayerConfig)],\n };\n\n return merge(baseConfig, config);\n};\n"],"mappings":";;;;;;AAOA,MAAa,eAAe,eAA6C;CACvE,MAAM,iBAAiB,kBAAkB;AA2BzC,QAAO,MAAM,YAzBE;EACb,SAAS,EACP,OAAO,SAAS;GACd,eAAe;GACf,YAAY,UAAkB,QAAQ,MAAM;GAC7C,CAAC,EACH;EACD,WAAW;GACT,SAAS;GACT,QAAQ;GACR,IAAI;GACJ,UAAU;GACV,UAAU;GACX;EACD,QAAQ,EACN,OAAO,CACL;GACE,MAAM;GACN,QAAQ;GACT,CACF,EACF;EACD,SAAS,CAAC,IAAI,eAAe,eAAe,CAAC;EAC9C,CAE+B"}
@@ -1,32 +1,34 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- export declare class ContentSelectorComponent implements OnInit, OnDestroy {
3
- private cdr;
4
- onClickOutside?: () => void;
5
- pressDuration?: number;
6
- isSelecting?: boolean;
7
- click: EventEmitter<MouseEvent>;
8
- press: EventEmitter<void>;
9
- containerRef: ElementRef<HTMLSpanElement>;
10
- private isHovered;
11
- private isSelectingState;
12
- private pressTimerRef;
13
- private readonly isSelectingComputed;
14
- private readonly isStringSlot;
15
- constructor(cdr: ChangeDetectorRef);
16
- ngOnInit(): void;
17
- ngOnDestroy(): void;
18
- onDocumentMouseDown(event: MouseEvent): void;
19
- private handleOnLongPress;
20
- private startPressTimer;
21
- private clearPressTimer;
22
- handleMouseDown(): void;
23
- handleMouseUp(): void;
24
- private handleClickOutside;
25
- handleClick(e: MouseEvent): void;
26
- handleBlur(): void;
27
- onMouseEnter(): void;
28
- getContainerStyle(): {
29
- [key: string]: any;
30
- };
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
+
3
+ //#region src/UI/ContentSelector.component.d.ts
4
+ declare class ContentSelectorComponent implements OnInit, OnDestroy {
5
+ onClickOutside?: () => void;
6
+ pressDuration?: number;
7
+ isSelecting?: boolean;
8
+ click: EventEmitter<MouseEvent>;
9
+ press: EventEmitter<void>;
10
+ containerRef: ElementRef<HTMLSpanElement>;
11
+ private isHovered;
12
+ private isSelectingState;
13
+ private pressTimerRef;
14
+ private readonly isSelectingComputed;
15
+ private readonly isStringSlot;
16
+ ngOnInit(): void;
17
+ ngOnDestroy(): void;
18
+ onDocumentMouseDown(event: MouseEvent): void;
19
+ private handleOnLongPress;
20
+ private startPressTimer;
21
+ private clearPressTimer;
22
+ handleMouseDown(): void;
23
+ handleMouseUp(): void;
24
+ private handleClickOutside;
25
+ handleClick(e: MouseEvent): void;
26
+ handleBlur(): void;
27
+ onMouseEnter(): void;
28
+ getContainerStyle(): {
29
+ [key: string]: any;
30
+ };
31
31
  }
32
+ //#endregion
33
+ export { ContentSelectorComponent };
32
34
  //# sourceMappingURL=ContentSelector.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSelector.component.d.ts","sourceRoot":"","sources":["../../../src/UI/ContentSelector.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAGjB,UAAU,EACV,YAAY,EAGZ,SAAS,EACT,MAAM,EAIP,MAAM,eAAe,CAAC;AAIvB,qBAwBa,wBAAyB,YAAW,MAAM,EAAE,SAAS;IAyBpD,OAAO,CAAC,GAAG;IAxBd,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAErB,KAAK,2BAAkC;IACvC,KAAK,qBAA4B;IAG3C,YAAY,EAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAE3C,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,gBAAgB,CAAiB;IACzC,OAAO,CAAC,aAAa,CAA8C;IAEnE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAElC;IAEF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAI1B;gBAEiB,GAAG,EAAE,iBAAiB;IAE1C,QAAQ,IAAI,IAAI;IAIhB,WAAW,IAAI,IAAI;IAKnB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAI5C,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,eAAe;IAOvB,eAAe,IAAI,IAAI;IAKvB,aAAa,IAAI,IAAI;IAKrB,OAAO,CAAC,kBAAkB;IAU1B,WAAW,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAQhC,UAAU,IAAI,IAAI;IAIlB,YAAY,IAAI,IAAI;IAIpB,iBAAiB,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CAgB5C"}
1
+ {"version":3,"file":"ContentSelector.component.d.ts","names":[],"sources":["../../../src/UI/ContentSelector.component.ts"],"sourcesContent":[],"mappings":";;;cAyCa,wBAAA,YAAoC,QAAQ;;EAA5C,aAAA,CAAA,EAAA,MAAA;EAKI,WAAA,CAAA,EAAA,OAAA;EAAA,KAAA,EAAA,YAAA,CAAA,UAAA,CAAA;EACA,KAAA,EAAA,YAAA,CAAA,IAAA,CAAA;EAGW,YAAA,EAAX,UAAW,CAAA,eAAA,CAAA;EAAX,QAAA,SAAA;EAyBY,QAAA,gBAAA;EA0CZ,QAAA,aAAA;EA5EgC,iBAAA,mBAAA;EAAQ,iBAAA,YAAA;EAAS,QAAA,CAAA,CAAA,EAAA,IAAA;;6BAkCrC;;;;;;;iBA0CZ"}
@@ -1,8 +1,8 @@
1
- export * from './installIntlayer';
2
- export * from './useDictionary';
3
- export * from './useDictionaryAsync';
4
- export * from './useDictionaryDynamic';
5
- export * from './useIntlayer';
6
- export * from './useLoadDynamic';
7
- export * from './useLocale';
8
- //# sourceMappingURL=index.d.ts.map
1
+ import { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient, installIntlayer } from "./installIntlayer.js";
2
+ import { useDictionary } from "./useDictionary.js";
3
+ import { useDictionaryAsync } from "./useDictionaryAsync.js";
4
+ import { useDictionaryDynamic } from "./useDictionaryDynamic.js";
5
+ import { isUpdatableNode, useIntlayer } from "./useIntlayer.js";
6
+ import { useLoadDynamic } from "./useLoadDynamic.js";
7
+ import { useLocale } from "./useLocale.js";
8
+ export { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient, installIntlayer, isUpdatableNode, useDictionary, useDictionaryAsync, useDictionaryDynamic, useIntlayer, useLoadDynamic, useLocale };
@@ -1,17 +1,23 @@
1
- import { InjectionToken, Signal } from '@angular/core';
2
- import type { Locales, LocalesValues } from '@intlayer/config/client';
3
- export declare const INTLAYER_TOKEN: InjectionToken<IntlayerProvider>;
4
- export declare class IntlayerProvider {
5
- private _locale;
6
- readonly locale: Signal<Locales>;
7
- setLocale: (locale: LocalesValues) => void;
1
+ import * as _angular_core5 from "@angular/core";
2
+ import { InjectionToken, Signal } from "@angular/core";
3
+ import { LocalesValues } from "@intlayer/types";
4
+
5
+ //#region src/client/installIntlayer.d.ts
6
+ declare const INTLAYER_TOKEN: InjectionToken<IntlayerProvider>;
7
+ declare class IntlayerProvider {
8
+ isCookieEnabled: _angular_core5.WritableSignal<boolean>;
9
+ private _locale;
10
+ readonly locale: Signal<LocalesValues>;
11
+ setLocale: (locale: LocalesValues) => void;
8
12
  }
9
13
  /**
10
14
  * Create and return a single IntlayerProvider instance
11
15
  */
12
- export declare const createIntlayerClient: (locale?: LocalesValues) => IntlayerProvider;
16
+ declare const createIntlayerClient: (locale?: LocalesValues, isCookieEnabled?: boolean) => IntlayerProvider;
13
17
  /**
14
18
  * Helper to install the Intlayer provider
15
19
  */
16
- export declare const installIntlayer: (locale?: LocalesValues) => IntlayerProvider;
20
+ declare const installIntlayer: (locale?: LocalesValues, isCookieEnabled?: boolean) => IntlayerProvider;
21
+ //#endregion
22
+ export { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient, installIntlayer };
17
23
  //# sourceMappingURL=installIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installIntlayer.d.ts","sourceRoot":"","sources":["../../../src/client/installIntlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AAE3E,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEtE,eAAO,MAAM,cAAc,kCAAmD,CAAC;AAO/E,qBAGa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAEb;IAEF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAA6B;IAE7D,SAAS,GAAI,QAAQ,aAAa,UAEhC;CACH;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,aAAa,KACrB,gBAUF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,aAAa,qBAOrD,CAAC"}
1
+ {"version":3,"file":"installIntlayer.d.ts","names":[],"sources":["../../../src/client/installIntlayer.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,gBAAc,eAAA;cAUd,gBAAA;mBAAgB,cAAA,CACZ;EAXJ,QAAA,OAAA;EAUA,SAAA,MAAA,EAMM,MANU,CAMH,aANG,CAAA;EAAA,SAAA,EAAA,CACZ,MAAA,EAOM,aAPN,EAAA,GAAA,IAAA;;;;;AAeJ,cAAA,oBACF,EAAA,CAAA,MAER,CAFQ,EAAA,aAER,EAAA,eAWF,CAAA,EAAA,OAAA,EAAA,GAXE,gBAWF;AAKD;;;cAAa,2BACF,6CACa"}
@@ -1,5 +1,8 @@
1
- import type { LocalesValues } from '@intlayer/config/client';
2
- import { type Dictionary } from '@intlayer/core';
3
- import { DeepTransformContent } from '../plugins';
4
- export declare const useDictionary: <T extends Dictionary>(dictionary: T, locale?: LocalesValues) => DeepTransformContent<T["content"]>;
1
+ import { DeepTransformContent } from "../plugins.js";
2
+ import { Dictionary, LocalesValues } from "@intlayer/types";
3
+
4
+ //#region src/client/useDictionary.d.ts
5
+ declare const useDictionary: <T extends Dictionary>(dictionary: T, locale?: LocalesValues) => DeepTransformContent<T["content"]>;
6
+ //#endregion
7
+ export { useDictionary };
5
8
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlD,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,UAAU,EAChD,YAAY,CAAC,EACb,SAAS,aAAa,KACrB,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAWnC,CAAC"}
1
+ {"version":3,"file":"useDictionary.d.ts","names":[],"sources":["../../../src/client/useDictionary.ts"],"sourcesContent":[],"mappings":";;;;cAMa,0BAA2B,wBAC1B,YACH,kBACR,qBAAqB"}
@@ -1,9 +1,13 @@
1
- import type { LocalesValues } from '@intlayer/config/client';
2
- import type { Dictionary, LanguageContent } from '@intlayer/core';
1
+ import { Dictionary, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
2
+
3
+ //#region src/client/useDictionaryAsync.d.ts
4
+
3
5
  /**
4
6
  * On the server side, Hook that transform a dictionary and return the content
5
7
  *
6
8
  * If the locale is not provided, it will use the locale from the client context
7
9
  */
8
- export declare const useDictionaryAsync: <T extends Dictionary>(dictionaryPromise: LanguageContent<() => Promise<T>>, locale?: LocalesValues) => Promise<any>;
10
+ declare const useDictionaryAsync: <T extends Dictionary>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: LocalesValues) => Promise<any>;
11
+ //#endregion
12
+ export { useDictionaryAsync };
9
13
  //# sourceMappingURL=useDictionaryAsync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryAsync.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionaryAsync.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIlE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAU,CAAC,SAAS,UAAU,EAC3D,mBAAmB,eAAe,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,EACpD,SAAS,aAAa,iBAcvB,CAAC"}
1
+ {"version":3,"file":"useDictionaryAsync.d.ts","names":[],"sources":["../../../src/client/useDictionaryAsync.ts"],"sourcesContent":[],"mappings":";;;;;;AAiBA;;;AAC+C,cADlC,kBACkC,EAAA,CAAA,UADI,UACJ,CAAA,CAAA,iBAAA,EAA1B,mBAA0B,CAAA,GAAA,GAAA,OAAA,CAAQ,CAAR,CAAA,CAAA,EAAA,MAAA,CAAA,EACpC,aADoC,EAAA,GACvB,OADuB,CAAA,GAAA,CAAA"}
@@ -1,9 +1,15 @@
1
- import type { LocalesValues } from '@intlayer/config/client';
2
- import type { Dictionary, DictionaryKeys, LanguageContent } from '@intlayer/core';
1
+ import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
+ import { Dictionary, DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
3
+ import * as _intlayer_core1 from "@intlayer/core";
4
+ import * as intlayer0 from "intlayer";
5
+
6
+ //#region src/client/useDictionaryDynamic.d.ts
3
7
  /**
4
8
  * On the server side, Hook that transform a dictionary and return the content
5
9
  *
6
10
  * If the locale is not provided, it will use the locale from the client context
7
11
  */
8
- export declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: LanguageContent<() => Promise<T>>, key: K, locale?: LocalesValues) => import("@intlayer/core").DeepTransformContent<T["content"], import("..").IInterpreterPluginState>;
12
+ declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => _intlayer_core1.DeepTransformContent<T["content"], IInterpreterPluginState$1, intlayer0.Locale>;
13
+ //#endregion
14
+ export { useDictionaryDynamic };
9
15
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionaryDynamic.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAKxB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,cAAc,EAExB,mBAAmB,eAAe,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,EACpD,KAAK,CAAC,EACN,SAAS,aAAa,sGAiBvB,CAAC"}
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAmBa,cAAA,oBAuBZ,EAAA,CAAA,UAtBW,UAsBX,EAAA,UArBW,cAqBX,CAAA,CAAA,iBAAA,EAnBoB,mBAmBpB,CAAA,GAAA,GAnB8C,OAmB9C,CAnBsD,CAmBtD,CAAA,CAAA,EAAA,GAAA,EAlBM,CAkBN,EAAA,MAAA,CAAA,EAjBU,aAiBV,EAAA,GAjBuB,eAAA,CAAA,oBAiBvB,CAjBuB,CAiBvB,CAAA,SAAA,CAAA,EAjBuB,yBAAA,EAAA,SAAA,CAAA,MAAA,CAiBvB"}
@@ -1,10 +1,12 @@
1
- import type { LocalesValues } from '@intlayer/config/client';
2
- import { DictionaryKeys } from '@intlayer/core';
3
- import type { IntlayerDictionaryTypesConnector } from 'intlayer';
4
- import { DeepTransformContent } from '../plugins';
1
+ import { DeepTransformContent } from "../plugins.js";
2
+ import { DictionaryKeys, DictionaryRegistryContent, LocalesValues } from "@intlayer/types";
3
+
4
+ //#region src/client/useIntlayer.d.ts
5
5
  /** guard utility - true only for objects generated by `renderIntlayerNode()` */
6
- export declare const isUpdatableNode: (val: unknown) => val is {
7
- __update: (n: unknown) => void;
6
+ declare const isUpdatableNode: (val: unknown) => val is {
7
+ __update: (n: unknown) => void;
8
8
  };
9
- export declare const useIntlayer: <T extends DictionaryKeys>(key: T, locale?: LocalesValues) => DeepTransformContent<IntlayerDictionaryTypesConnector[T]["content"]>;
9
+ declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: LocalesValues) => DeepTransformContent<DictionaryRegistryContent<T>>;
10
+ //#endregion
11
+ export { isUpdatableNode, useIntlayer };
10
12
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntlayer.d.ts","sourceRoot":"","sources":["../../../src/client/useIntlayer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlD,gFAAgF;AAChF,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,KACX,GAAG,IAAI;IAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAGG,CAAC;AAE9C,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAClD,KAAK,CAAC,EACN,SAAS,aAAa,KACrB,oBAAoB,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAYrE,CAAC"}
1
+ {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/client/useIntlayer.ts"],"sourcesContent":[],"mappings":";;;;;cAWa;EAAA,QAAA,EAAA,CAAA,CAAA,EAAA,OAKgC,EAAA,GAAA,IAAA;AAE7C,CAAA;AAAsC,cAAzB,WAAyB,EAAA,CAAA,UAAA,cAAA,EAAA,UAA0B,aAA1B,CAAA,CAAA,GAAA,EAC/B,CAD+B,EAAA,MAAA,CAAA,EAE3B,aAF2B,EAAA,GAGnC,oBAHmC,CAGd,yBAHc,CAGY,CAHZ,CAAA,CAAA"}
@@ -1,8 +1,11 @@
1
+ //#region src/client/useLoadDynamic.d.ts
1
2
  /**
2
3
  * A "synchronous" loader for a dynamically‐imported JSON (or anything).
3
4
  *
4
5
  * - Immediately returns a reactive signal so that Angular can properly track changes.
5
6
  * - When the Promise resolves, it replaces the signal's value with the real data.
6
7
  */
7
- export declare const useLoadDynamic: <T extends Record<string, any>>(key: string, promise: Promise<T>) => T;
8
+ declare const useLoadDynamic: <T extends Record<string, any>>(key: string, promise: Promise<T>) => T;
9
+ //#endregion
10
+ export { useLoadDynamic };
8
11
  //# sourceMappingURL=useLoadDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadDynamic.d.ts","sourceRoot":"","sources":["../../../src/client/useLoadDynamic.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1D,KAAK,MAAM,EACX,SAAS,OAAO,CAAC,CAAC,CAAC,KAClB,CA0BF,CAAC"}
1
+ {"version":3,"file":"useLoadDynamic.d.ts","names":[],"sources":["../../../src/client/useLoadDynamic.ts"],"sourcesContent":[],"mappings":";;AAQA;;;;;AA6BC,cA7BY,cA6BZ,EAAA,CAAA,UA7BwC,MA6BxC,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,GAAA,EAAA,MAAA,EAAA,OAAA,EA3BU,OA2BV,CA3BkB,CA2BlB,CAAA,EAAA,GA1BE,CA0BF"}
@@ -1,15 +1,24 @@
1
- import type { LocalesValues } from '@intlayer/config/client';
1
+ import * as _angular_core4 from "@angular/core";
2
+ import { LocalesValues } from "@intlayer/types";
3
+ import * as intlayer0 from "intlayer";
4
+
5
+ //#region src/client/useLocale.d.ts
2
6
  type useLocaleProps = {
3
- onLocaleChange?: (locale: LocalesValues) => void;
7
+ isCookieEnabled?: boolean;
8
+ onLocaleChange?: (locale: LocalesValues) => void;
4
9
  };
5
10
  /**
6
11
  * On the client side, composable to get the current locale and all related fields
7
12
  */
8
- export declare const useLocale: ({ onLocaleChange }?: useLocaleProps) => {
9
- locale: import("@angular/core").Signal<import("@intlayer/config").Locales>;
10
- defaultLocale: import("@intlayer/config").Locales;
11
- availableLocales: import("@intlayer/config").Locales[];
12
- setLocale: (newLocale: LocalesValues) => void;
13
+ declare const useLocale: ({
14
+ isCookieEnabled,
15
+ onLocaleChange
16
+ }?: useLocaleProps) => {
17
+ locale: _angular_core4.Signal<intlayer0.Locale | (string & {})>;
18
+ defaultLocale: intlayer0.Locale;
19
+ availableLocales: intlayer0.Locale[];
20
+ setLocale: (newLocale: LocalesValues) => void;
13
21
  };
14
- export {};
22
+ //#endregion
23
+ export { useLocale };
15
24
  //# sourceMappingURL=useLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../../src/client/useLocale.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,KAAK,cAAc,GAAG;IACpB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,qBAAoB,cAAmB;;;;2BASjC,aAAa;CAmB5C,CAAC"}
1
+ {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"sourcesContent":[],"mappings":";;;;;KAMK,cAAA;;4BAEuB;;AANyB;AAYrD;;AAA0B,cAAb,SAAa,EAAA,CAAA;EAAA,eAAA;EAAA;AAAA,CAAA,CAAA,EAGvB,cAHuB,EAAA,GAAA;EAGvB,MAAA,uBAAA,CAAmB,SAAA,CAAA,MAAA,GAAnB,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA,CAAA;EAAmB,aAAA,kBAAA;;yBAWU"}
@@ -0,0 +1,49 @@
1
+ import { LocalesValues } from "@intlayer/types";
2
+ import * as intlayer3 from "intlayer";
3
+
4
+ //#region src/client/useLocaleStorage.d.ts
5
+
6
+ /**
7
+ * Get the locale cookie
8
+ */
9
+ /**
10
+ * Get the locale cookie
11
+ */
12
+ declare const localeInStorage: intlayer3.Locale;
13
+ /**
14
+ * @deprecated Use localeInStorage instead
15
+ *
16
+ * Get the locale cookie
17
+ */
18
+ declare const localeCookie: intlayer3.Locale;
19
+ /**
20
+ * Set the locale cookie
21
+ */
22
+ declare const setLocaleInStorage: (locale: LocalesValues, isCookieEnabled: boolean) => void;
23
+ /**
24
+ * @deprecated Use setLocaleInStorage instead
25
+ *
26
+ * Set the locale cookie
27
+ */
28
+ declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: boolean) => void;
29
+ /**
30
+ * Hook that provides the locale storage and a function to set it
31
+ */
32
+ declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
33
+ getLocale: () => intlayer3.Locale;
34
+ setLocale: (locale: LocalesValues) => void;
35
+ };
36
+ /**
37
+ * @deprecated Use useLocaleStorage instead
38
+ *
39
+ * For GDPR compliance, use useLocaleStorage instead
40
+ *
41
+ * Hook that provides the locale cookie and a function to set it
42
+ */
43
+ declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
44
+ localeCookie: intlayer3.Locale;
45
+ setLocaleCookie: (locale: LocalesValues) => void;
46
+ };
47
+ //#endregion
48
+ export { localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage };
49
+ //# sourceMappingURL=useLocaleStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocaleStorage.d.ts","names":[],"sources":["../../../src/client/useLocaleStorage.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAcA;AAMA;AAKA;AAca,cAzBA,eAYH,EAZ+D,SAAA,CAA7C,MAYL;AAkBvB;AAaA;;;;cArCa,cAA8B,SAAA,CAAlB;;;;cAKZ,6BACH;;;;;;cAaG,0BAbH;;;;cAkBG;mBAIT,SAAA,CAAA;sBAAA;;;;;;;;;cASS;gBAOZ,SAAA,CAAA;4BAAA"}
@@ -1,19 +1,25 @@
1
- import { type NodeProps } from '@intlayer/core';
1
+ import * as _angular_core0 from "@angular/core";
2
+ import { NodeProps } from "@intlayer/core";
3
+
4
+ //#region src/editor/ContentSelectorWrapper.component.d.ts
5
+
2
6
  /**
3
7
  * Combine your NodeProps (which include dictionaryKey & keyPath)
4
8
  * with any other div-like attributes.
5
9
  */
6
- export interface ContentSelectorWrapperProps extends NodeProps {
7
- [key: string]: any;
10
+ interface ContentSelectorWrapperProps extends NodeProps {
11
+ [key: string]: any;
8
12
  }
9
- export declare class ContentSelectorWrapperComponent {
10
- dictionaryKey: string;
11
- keyPath: any[];
12
- private focusDictionary;
13
- private editorEnabled;
14
- constructor();
15
- isSelected: import("@angular/core").Signal<boolean>;
16
- enabled: import("@angular/core").Signal<boolean>;
17
- handleSelect(): void;
13
+ declare class ContentSelectorWrapperComponent {
14
+ dictionaryKey: string;
15
+ keyPath: any[];
16
+ private focusDictionary;
17
+ private editorEnabled;
18
+ constructor();
19
+ isSelected: _angular_core0.Signal<boolean>;
20
+ enabled: _angular_core0.Signal<boolean>;
21
+ handleSelect(): void;
18
22
  }
23
+ //#endregion
24
+ export { ContentSelectorWrapperComponent, ContentSelectorWrapperProps };
19
25
  //# sourceMappingURL=ContentSelectorWrapper.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSelectorWrapper.component.d.ts","sourceRoot":"","sources":["../../../src/editor/ContentSelectorWrapper.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM/D;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,qBAea,+BAA+B;IACjC,aAAa,EAAG,MAAM,CAAC;IACvB,OAAO,EAAG,GAAG,EAAE,CAAC;IAGzB,OAAO,CAAC,eAAe,CAAwB;IAC/C,OAAO,CAAC,aAAa,CAAsB;;IAO3C,UAAU,0CAOP;IAEH,OAAO,0CAAgD;IAGvD,YAAY;CAMb"}
1
+ {"version":3,"file":"ContentSelectorWrapper.component.d.ts","names":[],"sources":["../../../src/editor/ContentSelectorWrapper.component.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAYA;AAmBa,UAnBI,2BAAA,SAAoC,SAmBT,CAAA;;;cAA/B,+BAAA;;;;;;cAA+B,cAAA,CAahC;WAAA,cAAA,CASH"}
@@ -1,19 +1,23 @@
1
- import type { Locales } from '@intlayer/config/client';
2
- import { type KeyPath } from '@intlayer/core';
3
- export interface EditedContentRendererProps {
4
- dictionaryKey: string;
5
- keyPath: KeyPath[];
6
- locale?: Locales;
1
+ import * as _angular_core3 from "@angular/core";
2
+ import { KeyPath, Locale } from "@intlayer/types";
3
+
4
+ //#region src/editor/EditedContentRenderer.component.d.ts
5
+ interface EditedContentRendererProps {
6
+ dictionaryKey: string;
7
+ keyPath: KeyPath[];
8
+ locale?: Locale;
7
9
  }
8
- export declare class EditedContentRendererComponent {
9
- dictionaryKey: string;
10
- keyPath: KeyPath[];
11
- locale?: Locales;
12
- private fallback;
13
- private rawContent;
14
- /**
15
- * Object → getContent → string, same as the React version.
16
- */
17
- renderedContent: import("@angular/core").Signal<string>;
10
+ declare class EditedContentRendererComponent {
11
+ dictionaryKey: string;
12
+ keyPath: KeyPath[];
13
+ locale?: Locale;
14
+ private fallback;
15
+ private rawContent;
16
+ /**
17
+ * Object → getContent → string, same as the React version.
18
+ */
19
+ renderedContent: _angular_core3.Signal<string>;
18
20
  }
21
+ //#endregion
22
+ export { EditedContentRendererComponent, EditedContentRendererProps };
19
23
  //# sourceMappingURL=EditedContentRenderer.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditedContentRenderer.component.d.ts","sourceRoot":"","sources":["../../../src/editor/EditedContentRenderer.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAA2B,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGvE,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBAMa,8BAA8B;IAChC,aAAa,EAAG,MAAM,CAAC;IACvB,OAAO,EAAG,OAAO,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IAE1B,OAAO,CAAC,QAAQ,CAAc;IAE9B,OAAO,CAAC,UAAU,CAMf;IAEH;;OAEG;IACH,eAAe,yCAyBZ;CACJ"}
1
+ {"version":3,"file":"EditedContentRenderer.component.d.ts","names":[],"sources":["../../../src/editor/EditedContentRenderer.component.ts"],"sourcesContent":[],"mappings":";;;;UAMiB,0BAAA;;WAEN;EAFM,MAAA,CAAA,EAGN,MAHM;AAMjB;AAQqB,cAFR,8BAAA,CAEQ;EACD,aAAA,EAAA,MAAA;EAAM,OAAA,EADL,OAgBJ,EAAA;EAAA,MAAA,CAAA,EAfG,MAeH;;;;;;mBAfS,cAAA,CAeT"}