angular-intlayer 9.7.0 → 9.7.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 (177) hide show
  1. package/dist/cjs/UI/IntlayerNode.component.cjs +9 -6
  2. package/dist/cjs/UI/IntlayerNode.component.cjs.map +1 -1
  3. package/dist/cjs/UI/index.cjs +2 -2
  4. package/dist/cjs/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/decorate.cjs +1 -2
  5. package/dist/cjs/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/decorateMetadata.cjs +1 -2
  6. package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
  7. package/dist/cjs/analytics/exposureSink.cjs +1 -2
  8. package/dist/cjs/analytics/index.cjs +3 -3
  9. package/dist/cjs/analytics/useAnalytics.cjs +3 -4
  10. package/dist/cjs/analytics/useConversion.cjs +1 -2
  11. package/dist/cjs/analytics/useExperiment.cjs +1 -2
  12. package/dist/cjs/client/index.cjs +9 -9
  13. package/dist/cjs/client/installIntlayer.cjs +4 -5
  14. package/dist/cjs/client/intlayerToken.cjs +2 -3
  15. package/dist/cjs/client/useDictionary.cjs +3 -4
  16. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  17. package/dist/cjs/client/useDictionaryAsync.cjs +4 -5
  18. package/dist/cjs/client/useDictionaryDynamic.cjs +6 -7
  19. package/dist/cjs/client/useIntlayer.cjs +3 -4
  20. package/dist/cjs/client/useLoadDynamic.cjs +1 -2
  21. package/dist/cjs/client/useLocale.cjs +3 -4
  22. package/dist/cjs/client/useLocaleStorage.cjs +1 -2
  23. package/dist/cjs/client/usePathname.cjs +1 -2
  24. package/dist/cjs/editor/ContentSelector.component.cjs +4 -5
  25. package/dist/cjs/editor/EditorProvider.component.cjs +5 -6
  26. package/dist/cjs/editor/index.cjs +5 -5
  27. package/dist/cjs/editor/useEditor.cjs +3 -4
  28. package/dist/cjs/esbuild/hiddenDirectory.cjs +1 -2
  29. package/dist/cjs/esbuild/index.cjs +1 -1
  30. package/dist/cjs/esbuild/plugin.cjs +3 -4
  31. package/dist/cjs/esbuild/resolvePackageExport.cjs +1 -2
  32. package/dist/cjs/format/index.cjs +9 -9
  33. package/dist/cjs/format/useCompact.cjs +2 -3
  34. package/dist/cjs/format/useCurrency.cjs +2 -3
  35. package/dist/cjs/format/useDate.cjs +2 -3
  36. package/dist/cjs/format/useIntl.cjs +2 -3
  37. package/dist/cjs/format/useList.cjs +2 -3
  38. package/dist/cjs/format/useNumber.cjs +2 -3
  39. package/dist/cjs/format/usePercentage.cjs +2 -3
  40. package/dist/cjs/format/useRelativeTime.cjs +2 -3
  41. package/dist/cjs/format/useUnit.cjs +2 -3
  42. package/dist/cjs/getDictionary.cjs +2 -3
  43. package/dist/cjs/getDictionary.cjs.map +1 -1
  44. package/dist/cjs/getIntlayer.cjs +2 -3
  45. package/dist/cjs/html/index.cjs +2 -2
  46. package/dist/cjs/html/installIntlayerHTML.cjs +3 -4
  47. package/dist/cjs/index.cjs +17 -17
  48. package/dist/cjs/markdown/index.cjs +2 -2
  49. package/dist/cjs/markdown/installIntlayerMarkdown.cjs +3 -4
  50. package/dist/cjs/plugins.cjs +6 -7
  51. package/dist/cjs/renderIntlayerNode.cjs +1 -2
  52. package/dist/cjs/webpack/index.cjs +1 -1
  53. package/dist/cjs/webpack/mergeConfig.cjs +1 -2
  54. package/dist/esm/UI/IntlayerNode.component.mjs +8 -5
  55. package/dist/esm/UI/IntlayerNode.component.mjs.map +1 -1
  56. package/dist/esm/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/decorate.mjs +1 -2
  57. package/dist/esm/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/decorateMetadata.mjs +1 -2
  58. package/dist/esm/analytics/exposureSink.mjs +1 -2
  59. package/dist/esm/analytics/useAnalytics.mjs +2 -3
  60. package/dist/esm/analytics/useConversion.mjs +1 -2
  61. package/dist/esm/analytics/useExperiment.mjs +1 -2
  62. package/dist/esm/client/index.mjs +2 -2
  63. package/dist/esm/client/installIntlayer.mjs +2 -3
  64. package/dist/esm/client/intlayerToken.mjs +1 -2
  65. package/dist/esm/client/useDictionary.mjs +1 -2
  66. package/dist/esm/client/useDictionary.mjs.map +1 -1
  67. package/dist/esm/client/useDictionaryAsync.mjs +2 -3
  68. package/dist/esm/client/useDictionaryDynamic.mjs +2 -3
  69. package/dist/esm/client/useIntlayer.mjs +1 -2
  70. package/dist/esm/client/useLoadDynamic.mjs +1 -2
  71. package/dist/esm/client/useLocale.mjs +2 -3
  72. package/dist/esm/client/useLocaleStorage.mjs +1 -2
  73. package/dist/esm/client/usePathname.mjs +1 -2
  74. package/dist/esm/editor/ContentSelector.component.mjs +3 -4
  75. package/dist/esm/editor/EditorProvider.component.mjs +3 -4
  76. package/dist/esm/editor/index.mjs +1 -1
  77. package/dist/esm/editor/useEditor.mjs +2 -3
  78. package/dist/esm/esbuild/hiddenDirectory.mjs +1 -2
  79. package/dist/esm/esbuild/plugin.mjs +4 -5
  80. package/dist/esm/esbuild/resolvePackageExport.mjs +1 -2
  81. package/dist/esm/format/index.mjs +5 -5
  82. package/dist/esm/format/useCompact.mjs +1 -2
  83. package/dist/esm/format/useCurrency.mjs +1 -2
  84. package/dist/esm/format/useDate.mjs +1 -2
  85. package/dist/esm/format/useIntl.mjs +1 -2
  86. package/dist/esm/format/useList.mjs +1 -2
  87. package/dist/esm/format/useNumber.mjs +1 -2
  88. package/dist/esm/format/usePercentage.mjs +1 -2
  89. package/dist/esm/format/useRelativeTime.mjs +1 -2
  90. package/dist/esm/format/useUnit.mjs +1 -2
  91. package/dist/esm/getDictionary.mjs +1 -2
  92. package/dist/esm/getDictionary.mjs.map +1 -1
  93. package/dist/esm/getIntlayer.mjs +1 -2
  94. package/dist/esm/html/installIntlayerHTML.mjs +2 -3
  95. package/dist/esm/index.mjs +3 -3
  96. package/dist/esm/markdown/installIntlayerMarkdown.mjs +2 -3
  97. package/dist/esm/plugins.mjs +2 -3
  98. package/dist/esm/renderIntlayerNode.mjs +1 -2
  99. package/dist/esm/webpack/mergeConfig.mjs +1 -2
  100. package/dist/types/UI/IntlayerNode.component.d.ts +0 -2
  101. package/dist/types/UI/IntlayerNode.component.d.ts.map +1 -1
  102. package/dist/types/analytics/exposureSink.d.ts +0 -2
  103. package/dist/types/analytics/exposureSink.d.ts.map +1 -1
  104. package/dist/types/analytics/useAnalytics.d.ts +0 -2
  105. package/dist/types/analytics/useAnalytics.d.ts.map +1 -1
  106. package/dist/types/analytics/useConversion.d.ts +0 -2
  107. package/dist/types/analytics/useConversion.d.ts.map +1 -1
  108. package/dist/types/analytics/useExperiment.d.ts +0 -2
  109. package/dist/types/analytics/useExperiment.d.ts.map +1 -1
  110. package/dist/types/client/index.d.ts +1 -1
  111. package/dist/types/client/installIntlayer.d.ts +0 -2
  112. package/dist/types/client/installIntlayer.d.ts.map +1 -1
  113. package/dist/types/client/intlayerToken.d.ts +1 -3
  114. package/dist/types/client/intlayerToken.d.ts.map +1 -1
  115. package/dist/types/client/useDictionary.d.ts +1 -3
  116. package/dist/types/client/useDictionary.d.ts.map +1 -1
  117. package/dist/types/client/useDictionaryAsync.d.ts +0 -2
  118. package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
  119. package/dist/types/client/useDictionaryDynamic.d.ts +0 -2
  120. package/dist/types/client/useDictionaryDynamic.d.ts.map +1 -1
  121. package/dist/types/client/useIntlayer.d.ts +1 -3
  122. package/dist/types/client/useIntlayer.d.ts.map +1 -1
  123. package/dist/types/client/useLoadDynamic.d.ts +0 -2
  124. package/dist/types/client/useLoadDynamic.d.ts.map +1 -1
  125. package/dist/types/client/useLocale.d.ts +1 -3
  126. package/dist/types/client/useLocale.d.ts.map +1 -1
  127. package/dist/types/client/useLocaleStorage.d.ts +0 -2
  128. package/dist/types/client/useLocaleStorage.d.ts.map +1 -1
  129. package/dist/types/client/usePathname.d.ts +0 -2
  130. package/dist/types/client/usePathname.d.ts.map +1 -1
  131. package/dist/types/editor/ContentSelector.component.d.ts +0 -2
  132. package/dist/types/editor/ContentSelector.component.d.ts.map +1 -1
  133. package/dist/types/editor/EditorProvider.component.d.ts +0 -2
  134. package/dist/types/editor/EditorProvider.component.d.ts.map +1 -1
  135. package/dist/types/editor/useEditor.d.ts +0 -2
  136. package/dist/types/editor/useEditor.d.ts.map +1 -1
  137. package/dist/types/esbuild/hiddenDirectory.d.ts +0 -2
  138. package/dist/types/esbuild/hiddenDirectory.d.ts.map +1 -1
  139. package/dist/types/esbuild/plugin.d.ts +0 -2
  140. package/dist/types/esbuild/plugin.d.ts.map +1 -1
  141. package/dist/types/esbuild/resolvePackageExport.d.ts +0 -2
  142. package/dist/types/esbuild/resolvePackageExport.d.ts.map +1 -1
  143. package/dist/types/format/useCompact.d.ts +0 -2
  144. package/dist/types/format/useCompact.d.ts.map +1 -1
  145. package/dist/types/format/useCurrency.d.ts +0 -2
  146. package/dist/types/format/useCurrency.d.ts.map +1 -1
  147. package/dist/types/format/useDate.d.ts +0 -2
  148. package/dist/types/format/useDate.d.ts.map +1 -1
  149. package/dist/types/format/useIntl.d.ts +0 -2
  150. package/dist/types/format/useIntl.d.ts.map +1 -1
  151. package/dist/types/format/useList.d.ts +0 -2
  152. package/dist/types/format/useList.d.ts.map +1 -1
  153. package/dist/types/format/useNumber.d.ts +0 -2
  154. package/dist/types/format/useNumber.d.ts.map +1 -1
  155. package/dist/types/format/usePercentage.d.ts +0 -2
  156. package/dist/types/format/usePercentage.d.ts.map +1 -1
  157. package/dist/types/format/useRelativeTime.d.ts +0 -2
  158. package/dist/types/format/useRelativeTime.d.ts.map +1 -1
  159. package/dist/types/format/useUnit.d.ts +0 -2
  160. package/dist/types/format/useUnit.d.ts.map +1 -1
  161. package/dist/types/getDictionary.d.ts +0 -2
  162. package/dist/types/getDictionary.d.ts.map +1 -1
  163. package/dist/types/getIntlayer.d.ts +0 -2
  164. package/dist/types/getIntlayer.d.ts.map +1 -1
  165. package/dist/types/html/installIntlayerHTML.d.ts +1 -2
  166. package/dist/types/html/installIntlayerHTML.d.ts.map +1 -1
  167. package/dist/types/index.d.ts +4 -6
  168. package/dist/types/index.d.ts.map +1 -1
  169. package/dist/types/markdown/installIntlayerMarkdown.d.ts +0 -2
  170. package/dist/types/markdown/installIntlayerMarkdown.d.ts.map +1 -1
  171. package/dist/types/plugins.d.ts +0 -2
  172. package/dist/types/plugins.d.ts.map +1 -1
  173. package/dist/types/renderIntlayerNode.d.ts +1 -2
  174. package/dist/types/renderIntlayerNode.d.ts.map +1 -1
  175. package/dist/types/webpack/mergeConfig.d.ts +0 -2
  176. package/dist/types/webpack/mergeConfig.d.ts.map +1 -1
  177. package/package.json +59 -59
@@ -3,7 +3,7 @@ import { InjectionToken, signal } from "@angular/core";
3
3
  import { internationalization } from "@intlayer/config/built";
4
4
  import { setIntlayerIdentifier } from "@intlayer/config/client";
5
5
 
6
- //#region src/client/intlayerToken.ts
6
+ // src/client/intlayerToken.ts
7
7
  var IntlayerProvider = class {
8
8
  isCookieEnabled = signal(true);
9
9
  _locale = signal(internationalization.defaultLocale);
@@ -42,6 +42,5 @@ const createIntlayerClient = (locale, isCookieEnabled = true, variant) => {
42
42
  return instance;
43
43
  };
44
44
 
45
- //#endregion
46
45
  export { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient };
47
46
  //# sourceMappingURL=intlayerToken.mjs.map
@@ -3,7 +3,7 @@ import { INTLAYER_TOKEN } from "./intlayerToken.mjs";
3
3
  import { computed, inject } from "@angular/core";
4
4
  import { resolveDictionaryArgument } from "@intlayer/core/dictionaryManipulator";
5
5
 
6
- //#region src/client/useDictionary.ts
6
+ // src/client/useDictionary.ts
7
7
  /**
8
8
  * Angular hook that transforms a dictionary (or qualified dictionary group)
9
9
  * and returns its reactive content for the given locale or selector.
@@ -22,6 +22,5 @@ const useDictionary = (dictionary, localeOrSelector) => {
22
22
  });
23
23
  };
24
24
 
25
- //#endregion
26
25
  export { useDictionary };
27
26
  //# sourceMappingURL=useDictionary.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.mjs","names":[],"sources":["../../../src/client/useDictionary.ts"],"sourcesContent":["import { computed, inject, type Signal } from '@angular/core';\nimport { resolveDictionaryArgument } from '@intlayer/core/dictionaryManipulator';\nimport type {\n Dictionary,\n DictionarySelectorForGroup,\n QualifiedDictionaryGroup,\n ResolveQualifiedDictionaryContent,\n} from '@intlayer/types/dictionary';\nimport type {\n DeclaredLocales,\n ExtractSelectorLocale,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { getDictionary } from '../getDictionary';\nimport type { DeepTransformContent } from '../plugins';\nimport { INTLAYER_TOKEN, type IntlayerProvider } from './installIntlayer';\n\n/**\n * Angular hook that transforms a dictionary (or qualified dictionary group)\n * and returns its reactive content for the given locale or selector.\n */\nexport const useDictionary = <\n const T extends Dictionary | QualifiedDictionaryGroup,\n const A extends\n | LocalesValues\n | DictionarySelectorForGroup<T> = DeclaredLocales,\n>(\n dictionary: T,\n localeOrSelector?: A\n): Signal<\n DeepTransformContent<\n ResolveQualifiedDictionaryContent<T, A>,\n ExtractSelectorLocale<A>\n >\n> => {\n const intlayer = inject<IntlayerProvider>(INTLAYER_TOKEN);\n\n /** a *stable* reactive dictionary object */\n const content = computed(() => {\n const currentLocale = intlayer?.locale();\n\n if (process.env.INTLAYER_DICTIONARY_SELECTOR !== 'false') {\n // Layers the provider's locale and variant under the call-site argument.\n // This is also the seam the build-time optimize transform lands on, which\n // rewrites `useIntlayer('key', selector)` into `useDictionary(dict, …)`.\n return getDictionary(\n dictionary,\n resolveDictionaryArgument({\n localeOrSelector,\n contextLocale: currentLocale,\n contextVariant: intlayer?.variant?.(),\n dictionaryKey: dictionary.key,\n }) as A\n ) as any;\n }\n\n return getDictionary(\n dictionary,\n (localeOrSelector ?? currentLocale) as A\n ) as any;\n });\n\n return content; // all consumers keep full reactivity\n};\n"],"mappings":";;;;;;;;;;AAqBA,MAAa,iBAMX,YACA,qBAMG;CACH,MAAM,WAAW,OAAyB,cAAc;CA2BxD,OAxBgB,eAAe;EAC7B,MAAM,gBAAgB,UAAU,OAAO;EAEvC,IAAI,QAAQ,IAAI,iCAAiC,SAI/C,OAAO,cACL,YACA,0BAA0B;GACxB;GACA,eAAe;GACf,gBAAgB,UAAU,UAAU;GACpC,eAAe,WAAW;EAC5B,CAAC,CACH;EAGF,OAAO,cACL,YACC,oBAAoB,aACvB;CACF,CAEa;AACf"}
1
+ {"version":3,"file":"useDictionary.mjs","names":[],"sources":["../../../src/client/useDictionary.ts"],"sourcesContent":["import { computed, inject, type Signal } from '@angular/core';\nimport { resolveDictionaryArgument } from '@intlayer/core/dictionaryManipulator';\nimport type {\n Dictionary,\n DictionarySelectorForGroup,\n QualifiedDictionaryGroup,\n ResolveQualifiedDictionaryContent,\n} from '@intlayer/types/dictionary';\nimport type {\n DeclaredLocales,\n ExtractSelectorLocale,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { getDictionary } from '../getDictionary';\nimport type { DeepTransformContent } from '../plugins';\nimport { INTLAYER_TOKEN, type IntlayerProvider } from './installIntlayer';\n\n/**\n * Angular hook that transforms a dictionary (or qualified dictionary group)\n * and returns its reactive content for the given locale or selector.\n */\nexport const useDictionary = <\n const T extends Dictionary | QualifiedDictionaryGroup,\n const A extends LocalesValues | DictionarySelectorForGroup<T> =\n DeclaredLocales,\n>(\n dictionary: T,\n localeOrSelector?: A\n): Signal<\n DeepTransformContent<\n ResolveQualifiedDictionaryContent<T, A>,\n ExtractSelectorLocale<A>\n >\n> => {\n const intlayer = inject<IntlayerProvider>(INTLAYER_TOKEN);\n\n /** a *stable* reactive dictionary object */\n const content = computed(() => {\n const currentLocale = intlayer?.locale();\n\n if (process.env.INTLAYER_DICTIONARY_SELECTOR !== 'false') {\n // Layers the provider's locale and variant under the call-site argument.\n // This is also the seam the build-time optimize transform lands on, which\n // rewrites `useIntlayer('key', selector)` into `useDictionary(dict, …)`.\n return getDictionary(\n dictionary,\n resolveDictionaryArgument({\n localeOrSelector,\n contextLocale: currentLocale,\n contextVariant: intlayer?.variant?.(),\n dictionaryKey: dictionary.key,\n }) as A\n ) as any;\n }\n\n return getDictionary(\n dictionary,\n (localeOrSelector ?? currentLocale) as A\n ) as any;\n });\n\n return content; // all consumers keep full reactivity\n};\n"],"mappings":";;;;;;;;;;AAqBA,MAAa,iBAKX,YACA,qBAMG;CACH,MAAM,WAAW,OAAyB,cAAc;CA2BxD,OAxBgB,eAAe;EAC7B,MAAM,gBAAgB,UAAU,OAAO;EAEvC,IAAI,QAAQ,IAAI,iCAAiC,SAI/C,OAAO,cACL,YACA,0BAA0B;GACxB;GACA,eAAe;GACf,gBAAgB,UAAU,UAAU;GACpC,eAAe,WAAW;EAC5B,CAAC,CACH;EAGF,OAAO,cACL,YACC,oBAAoB,aACvB;CACF,CAEa;AACf"}
@@ -2,10 +2,10 @@
2
2
 
3
3
  import { INTLAYER_TOKEN } from "./intlayerToken.mjs";
4
4
  import { useDictionary } from "./useDictionary.mjs";
5
- import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
6
5
  import { computed, inject } from "@angular/core";
6
+ import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
7
7
 
8
- //#region src/client/useDictionaryAsync.ts
8
+ // src/client/useDictionaryAsync.ts
9
9
  /**
10
10
  * On the server side, Hook that transform a dictionary and return the content
11
11
  *
@@ -18,6 +18,5 @@ const useDictionaryAsync = async (dictionaryPromise, locale) => {
18
18
  return useDictionary(dictionary, localeTarget());
19
19
  };
20
20
 
21
- //#endregion
22
21
  export { useDictionaryAsync };
23
22
  //# sourceMappingURL=useDictionaryAsync.mjs.map
@@ -4,11 +4,11 @@ import { getDictionary as getDictionary$1 } from "../getDictionary.mjs";
4
4
  import { INTLAYER_TOKEN } from "./intlayerToken.mjs";
5
5
  import { useDictionary } from "./useDictionary.mjs";
6
6
  import { useLoadDynamic } from "./useLoadDynamic.mjs";
7
- import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
8
7
  import { computed, inject, signal } from "@angular/core";
9
8
  import { getPreloadedDictionary, isQualifiedDynamicLoaderMap, parseDictionarySelector, resolveDictionaryArgument, resolveQualifiedDynamicContentAsync } from "@intlayer/core/dictionaryManipulator";
9
+ import { resolveInterpreterLocale } from "@intlayer/core/interpreter";
10
10
 
11
- //#region src/client/useDictionaryDynamic.ts
11
+ // src/client/useDictionaryDynamic.ts
12
12
  /**
13
13
  * Lazily loads a dictionary (plain or qualified) and returns its reactive
14
14
  * content.
@@ -46,6 +46,5 @@ const useDictionaryDynamic = (dictionaryPromise, key, localeOrSelector) => {
46
46
  return useDictionary(dictionary, localeTarget());
47
47
  };
48
48
 
49
- //#endregion
50
49
  export { useDictionaryDynamic };
51
50
  //# sourceMappingURL=useDictionaryDynamic.mjs.map
@@ -3,7 +3,7 @@ import { INTLAYER_TOKEN } from "./intlayerToken.mjs";
3
3
  import { computed, inject } from "@angular/core";
4
4
  import { resolveDictionaryArgument } from "@intlayer/core/dictionaryManipulator";
5
5
 
6
- //#region src/client/useIntlayer.ts
6
+ // src/client/useIntlayer.ts
7
7
  /** guard utility - true only for objects generated by `renderIntlayerNode()` */
8
8
  const isUpdatableNode = (val) => !!val && typeof val === "object" && typeof val.__update === "function";
9
9
  /**
@@ -45,6 +45,5 @@ const useIntlayer = (key, localeOrSelector) => {
45
45
  });
46
46
  };
47
47
 
48
- //#endregion
49
48
  export { isUpdatableNode, useIntlayer };
50
49
  //# sourceMappingURL=useIntlayer.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { signal } from "@angular/core";
2
2
 
3
- //#region src/client/useLoadDynamic.ts
3
+ // src/client/useLoadDynamic.ts
4
4
  /**
5
5
  * A "synchronous" loader for a dynamically‐imported JSON (or anything).
6
6
  *
@@ -22,6 +22,5 @@ const useLoadDynamic = (key, promise) => {
22
22
  return container();
23
23
  };
24
24
 
25
- //#endregion
26
25
  export { useLoadDynamic };
27
26
  //# sourceMappingURL=useLoadDynamic.mjs.map
@@ -1,9 +1,9 @@
1
- import { setLocaleInStorage } from "./useLocaleStorage.mjs";
2
1
  import { INTLAYER_TOKEN } from "./intlayerToken.mjs";
2
+ import { setLocaleInStorage } from "./useLocaleStorage.mjs";
3
3
  import { computed, inject } from "@angular/core";
4
4
  import { internationalization } from "@intlayer/config/built";
5
5
 
6
- //#region src/client/useLocale.ts
6
+ // src/client/useLocale.ts
7
7
  const { defaultLocale, locales: availableLocales } = internationalization ?? {};
8
8
  /**
9
9
  * Angular hook to manage the current locale and related functions.
@@ -53,6 +53,5 @@ const useLocale = ({ isCookieEnabled, onLocaleChange } = {}) => {
53
53
  };
54
54
  };
55
55
 
56
- //#endregion
57
56
  export { useLocale };
58
57
  //# sourceMappingURL=useLocale.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { LocaleStorageClient, getCachedLocaleFromStorageClient, getLocaleFromStorageClient, localeStorageOptions, setLocaleInStorageClient } from "@intlayer/core/utils";
2
2
 
3
- //#region src/client/useLocaleStorage.ts
3
+ // src/client/useLocaleStorage.ts
4
4
  /**
5
5
  * Reads the locale persisted in the browser storage (cookie, localStorage…).
6
6
  *
@@ -56,6 +56,5 @@ const useLocaleCookie = (isCookieEnabled) => {
56
56
  };
57
57
  };
58
58
 
59
- //#endregion
60
59
  export { getLocaleInStorage, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage };
61
60
  //# sourceMappingURL=useLocaleStorage.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { DestroyRef, computed, inject, signal } from "@angular/core";
2
2
  import { getPathWithoutLocale } from "@intlayer/core/localization";
3
3
 
4
- //#region src/client/usePathname.ts
4
+ // src/client/usePathname.ts
5
5
  /**
6
6
  * Angular hook that returns a signal containing the current pathname with
7
7
  * the locale segment removed.
@@ -46,6 +46,5 @@ const usePathname = () => {
46
46
  return computed(() => getPathWithoutLocale(rawPathname()));
47
47
  };
48
48
 
49
- //#endregion
50
49
  export { usePathname };
51
50
  //# sourceMappingURL=usePathname.mjs.map
@@ -1,8 +1,8 @@
1
- import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorateMetadata.mjs";
2
- import __decorate from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.mjs";
1
+ import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/decorateMetadata.mjs";
2
+ import __decorate from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/decorate.mjs";
3
3
  import { CUSTOM_ELEMENTS_SCHEMA, Component, Input } from "@angular/core";
4
4
 
5
- //#region src/editor/ContentSelector.component.ts
5
+ // src/editor/ContentSelector.component.ts
6
6
  let ContentSelectorWrapperComponent = class ContentSelectorWrapperComponent {
7
7
  dictionaryKey;
8
8
  keyPath;
@@ -26,6 +26,5 @@ ContentSelectorWrapperComponent = __decorate([Component({
26
26
  `
27
27
  })], ContentSelectorWrapperComponent);
28
28
 
29
- //#endregion
30
29
  export { ContentSelectorWrapperComponent };
31
30
  //# sourceMappingURL=ContentSelector.component.mjs.map
@@ -1,9 +1,9 @@
1
- import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorateMetadata.mjs";
2
- import __decorate from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.mjs";
3
1
  import { useEditor } from "./useEditor.mjs";
2
+ import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/decorateMetadata.mjs";
3
+ import __decorate from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/decorate.mjs";
4
4
  import { Component } from "@angular/core";
5
5
 
6
- //#region src/editor/EditorProvider.component.ts
6
+ // src/editor/EditorProvider.component.ts
7
7
  let EditorProviderComponent = class EditorProviderComponent {
8
8
  constructor() {
9
9
  useEditor();
@@ -15,6 +15,5 @@ EditorProviderComponent = __decorate([Component({
15
15
  template: `<ng-content />`
16
16
  }), __decorateMetadata("design:paramtypes", [])], EditorProviderComponent);
17
17
 
18
- //#endregion
19
18
  export { EditorProviderComponent };
20
19
  //# sourceMappingURL=EditorProvider.component.mjs.map
@@ -1,5 +1,5 @@
1
1
  import { ContentSelectorWrapperComponent } from "./ContentSelector.component.mjs";
2
- import { provideIntlayerEditor, useEditor } from "./useEditor.mjs";
3
2
  import { EditorProviderComponent } from "./EditorProvider.component.mjs";
3
+ import { provideIntlayerEditor, useEditor } from "./useEditor.mjs";
4
4
 
5
5
  export { ContentSelectorWrapperComponent, EditorProviderComponent, provideIntlayerEditor, useEditor };
@@ -1,9 +1,9 @@
1
- import { setLocaleInStorage } from "../client/useLocaleStorage.mjs";
2
1
  import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
+ import { setLocaleInStorage } from "../client/useLocaleStorage.mjs";
3
3
  import { DestroyRef, Injector, effect, inject, provideAppInitializer, runInInjectionContext, signal } from "@angular/core";
4
4
  import { isEnabled } from "@intlayer/editor/isEnabled";
5
5
 
6
- //#region src/editor/useEditor.ts
6
+ // src/editor/useEditor.ts
7
7
  /**
8
8
  * Initialises the Intlayer editor client singleton when the editor is enabled.
9
9
  * Syncs the current locale from the provided Intlayer client into the editor
@@ -69,6 +69,5 @@ const useEditor = (client) => {
69
69
  */
70
70
  const provideIntlayerEditor = (client) => provideAppInitializer(() => useEditor(client));
71
71
 
72
- //#endregion
73
72
  export { provideIntlayerEditor, useEditor };
74
73
  //# sourceMappingURL=useEditor.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { relative, sep } from "node:path";
2
2
 
3
- //#region src/esbuild/hiddenDirectory.ts
3
+ // src/esbuild/hiddenDirectory.ts
4
4
  /**
5
5
  * Whether `directory` sits under a dot-directory (`.intlayer/…`) of `baseDir`.
6
6
  *
@@ -14,6 +14,5 @@ import { relative, sep } from "node:path";
14
14
  */
15
15
  const isInHiddenDirectory = (baseDir, directory) => relative(baseDir, directory).split(sep).some((segment) => segment.startsWith(".") && segment !== "..");
16
16
 
17
- //#endregion
18
17
  export { isInHiddenDirectory };
19
18
  //# sourceMappingURL=hiddenDirectory.mjs.map
@@ -1,19 +1,19 @@
1
1
  import { isInHiddenDirectory } from "./hiddenDirectory.mjs";
2
2
  import { resolvePackageExport } from "./resolvePackageExport.mjs";
3
+ import { readFile } from "node:fs/promises";
3
4
  import { createRequire } from "node:module";
4
5
  import { basename, dirname, join, relative } from "node:path";
5
- import { getConfiguration } from "@intlayer/config/node";
6
- import { getAlias, getHasDictionarySelector, getUnusedNodeTypesAsync, normalizePath } from "@intlayer/config/utils";
7
- import { readFile } from "node:fs/promises";
8
6
  import { addDynamicEntryPreload, createDynamicEntryFilter, resolvePreloadModuleId } from "@intlayer/config/dictionaryPreload";
9
7
  import { formatDictionarySelectorEnvVar, formatNodeTypeToEnvVar, getConfigEnvVars } from "@intlayer/config/envVars";
10
8
  import { getAppLogger } from "@intlayer/config/logger";
9
+ import { getConfiguration } from "@intlayer/config/node";
10
+ import { getAlias, getHasDictionarySelector, getUnusedNodeTypesAsync, normalizePath } from "@intlayer/config/utils";
11
11
  import { getDictionaries } from "@intlayer/dictionaries-entry";
12
12
  import { prepareIntlayer } from "@intlayer/engine/build";
13
13
  import { logConfigDetails } from "@intlayer/engine/cli";
14
14
  import { startContentWatcher } from "@intlayer/engine/utils";
15
15
 
16
- //#region src/esbuild/plugin.ts
16
+ // src/esbuild/plugin.ts
17
17
  /**
18
18
  * Absolute id of the locale resolver the injected preamble imports.
19
19
  *
@@ -189,6 +189,5 @@ const intlayerEsbuildPlugin = (options) => {
189
189
  };
190
190
  };
191
191
 
192
- //#endregion
193
192
  export { intlayerEsbuildPlugin };
194
193
  //# sourceMappingURL=plugin.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { dirname, join, resolve } from "node:path";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
 
4
- //#region src/esbuild/resolvePackageExport.ts
4
+ // src/esbuild/resolvePackageExport.ts
5
5
  /** Splits a bare specifier into its package name and `./`-prefixed subpath. */
6
6
  const parsePackageSpecifier = (specifier) => {
7
7
  const segments = specifier.split("/");
@@ -110,6 +110,5 @@ const resolvePackageExport = (specifier, resolveDir, conditions) => {
110
110
  };
111
111
  };
112
112
 
113
- //#endregion
114
113
  export { findPackageManifest, parsePackageSpecifier, resolvePackageExport };
115
114
  //# sourceMappingURL=resolvePackageExport.mjs.map
@@ -1,11 +1,11 @@
1
- import { usePercentage } from "./usePercentage.mjs";
2
- import { useUnit } from "./useUnit.mjs";
3
1
  import { useCompact } from "./useCompact.mjs";
4
- import { useNumber } from "./useNumber.mjs";
5
- import { useIntl } from "./useIntl.mjs";
6
- import { useList } from "./useList.mjs";
7
2
  import { useCurrency } from "./useCurrency.mjs";
8
3
  import { useDate } from "./useDate.mjs";
4
+ import { useIntl } from "./useIntl.mjs";
5
+ import { useList } from "./useList.mjs";
6
+ import { useNumber } from "./useNumber.mjs";
7
+ import { usePercentage } from "./usePercentage.mjs";
9
8
  import { useRelativeTime } from "./useRelativeTime.mjs";
9
+ import { useUnit } from "./useUnit.mjs";
10
10
 
11
11
  export { useCompact, useCurrency, useDate, useIntl, useList, useNumber, usePercentage, useRelativeTime, useUnit };
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { compact } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/useCompact.ts
5
+ // src/format/useCompact.ts
6
6
  const useCompact = () => {
7
7
  const intlayer = inject(INTLAYER_TOKEN);
8
8
  return computed(() => (...args) => compact(args[0], {
@@ -11,6 +11,5 @@ const useCompact = () => {
11
11
  }));
12
12
  };
13
13
 
14
- //#endregion
15
14
  export { useCompact };
16
15
  //# sourceMappingURL=useCompact.mjs.map
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { currency } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/useCurrency.ts
5
+ // src/format/useCurrency.ts
6
6
  const useCurrency = () => {
7
7
  const intlayer = inject(INTLAYER_TOKEN);
8
8
  return computed(() => (...args) => currency(args[0], {
@@ -11,6 +11,5 @@ const useCurrency = () => {
11
11
  }));
12
12
  };
13
13
 
14
- //#endregion
15
14
  export { useCurrency };
16
15
  //# sourceMappingURL=useCurrency.mjs.map
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { date, presets } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/useDate.ts
5
+ // src/format/useDate.ts
6
6
  /**
7
7
  * Angular client hook that provides a localized date/time formatter.
8
8
  */
@@ -21,6 +21,5 @@ const useDate = () => {
21
21
  });
22
22
  };
23
23
 
24
- //#endregion
25
24
  export { useDate };
26
25
  //# sourceMappingURL=useDate.mjs.map
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { bindIntl } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/useIntl.ts
5
+ // src/format/useIntl.ts
6
6
  /**
7
7
  * Angular composable that provides a locale-bound `Intl` object as a Signal.
8
8
  */
@@ -14,6 +14,5 @@ const useIntl = (locale) => {
14
14
  });
15
15
  };
16
16
 
17
- //#endregion
18
17
  export { useIntl };
19
18
  //# sourceMappingURL=useIntl.mjs.map
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { list } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/useList.ts
5
+ // src/format/useList.ts
6
6
  const useList = () => {
7
7
  const intlayer = inject(INTLAYER_TOKEN);
8
8
  return computed(() => (...args) => list(args[0], {
@@ -11,6 +11,5 @@ const useList = () => {
11
11
  }));
12
12
  };
13
13
 
14
- //#endregion
15
14
  export { useList };
16
15
  //# sourceMappingURL=useList.mjs.map
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { number } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/useNumber.ts
5
+ // src/format/useNumber.ts
6
6
  /**
7
7
  * Angular client hook that provides a localized number formatter.
8
8
  */
@@ -14,6 +14,5 @@ const useNumber = () => {
14
14
  }));
15
15
  };
16
16
 
17
- //#endregion
18
17
  export { useNumber };
19
18
  //# sourceMappingURL=useNumber.mjs.map
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { percentage } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/usePercentage.ts
5
+ // src/format/usePercentage.ts
6
6
  const usePercentage = () => {
7
7
  const intlayer = inject(INTLAYER_TOKEN);
8
8
  return computed(() => (...args) => percentage(args[0], {
@@ -11,6 +11,5 @@ const usePercentage = () => {
11
11
  }));
12
12
  };
13
13
 
14
- //#endregion
15
14
  export { usePercentage };
16
15
  //# sourceMappingURL=usePercentage.mjs.map
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { relativeTime } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/useRelativeTime.ts
5
+ // src/format/useRelativeTime.ts
6
6
  const useRelativeTime = () => {
7
7
  const intlayer = inject(INTLAYER_TOKEN);
8
8
  return computed(() => (...args) => relativeTime(args[0], args[1], {
@@ -11,6 +11,5 @@ const useRelativeTime = () => {
11
11
  }));
12
12
  };
13
13
 
14
- //#endregion
15
14
  export { useRelativeTime };
16
15
  //# sourceMappingURL=useRelativeTime.mjs.map
@@ -2,7 +2,7 @@ import { INTLAYER_TOKEN } from "../client/intlayerToken.mjs";
2
2
  import { computed, inject } from "@angular/core";
3
3
  import { units } from "@intlayer/core/formatters";
4
4
 
5
- //#region src/format/useUnit.ts
5
+ // src/format/useUnit.ts
6
6
  const useUnit = () => {
7
7
  const intlayer = inject(INTLAYER_TOKEN);
8
8
  return computed(() => (...args) => units(args[0], {
@@ -11,6 +11,5 @@ const useUnit = () => {
11
11
  }));
12
12
  };
13
13
 
14
- //#endregion
15
14
  export { useUnit };
16
15
  //# sourceMappingURL=useUnit.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { getPlugins } from "./plugins.mjs";
2
2
  import { getDictionary as getDictionary$1 } from "@intlayer/core/interpreter";
3
3
 
4
- //#region src/getDictionary.ts
4
+ // src/getDictionary.ts
5
5
  /**
6
6
  * Transforms a dictionary (or qualified dictionary group) and returns its
7
7
  * content for the given locale or selector (`{ item }`, `{ variant }`,
@@ -12,6 +12,5 @@ const getDictionary = (dictionary, localeOrSelector) => {
12
12
  return getDictionary$1(dictionary, localeOrSelector, getPlugins(locale));
13
13
  };
14
14
 
15
- //#endregion
16
15
  export { getDictionary };
17
16
  //# sourceMappingURL=getDictionary.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.mjs","names":["getDictionaryCore"],"sources":["../../src/getDictionary.ts"],"sourcesContent":["import { getDictionary as getDictionaryCore } from '@intlayer/core/interpreter';\nimport type {\n Dictionary,\n DictionarySelectorForGroup,\n QualifiedDictionaryGroup,\n ResolveQualifiedDictionaryContent,\n} from '@intlayer/types/dictionary';\nimport type {\n DeclaredLocales,\n ExtractSelectorLocale,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { type DeepTransformContent, getPlugins } from './plugins';\n\n/**\n * Transforms a dictionary (or qualified dictionary group) and returns its\n * content for the given locale or selector (`{ item }`, `{ variant }`,\n * optionally combined with `locale`).\n */\nexport const getDictionary = <\n const T extends Dictionary | QualifiedDictionaryGroup,\n const A extends\n | LocalesValues\n | DictionarySelectorForGroup<T> = DeclaredLocales,\n>(\n dictionary: T,\n localeOrSelector?: A\n): DeepTransformContent<\n ResolveQualifiedDictionaryContent<T, A>,\n ExtractSelectorLocale<A>\n> => {\n const locale = (\n typeof localeOrSelector === 'object' && localeOrSelector !== null\n ? localeOrSelector.locale\n : localeOrSelector\n ) as LocalesValues | undefined;\n\n return getDictionaryCore(\n dictionary,\n localeOrSelector,\n getPlugins(locale)\n ) as any;\n};\n"],"mappings":";;;;;;;;;AAmBA,MAAa,iBAMX,YACA,qBAIG;CACH,MAAM,SACJ,OAAO,qBAAqB,YAAY,qBAAqB,OACzD,iBAAiB,SACjB;CAGN,OAAOA,gBACL,YACA,kBACA,WAAW,MAAM,CACnB;AACF"}
1
+ {"version":3,"file":"getDictionary.mjs","names":["getDictionaryCore"],"sources":["../../src/getDictionary.ts"],"sourcesContent":["import { getDictionary as getDictionaryCore } from '@intlayer/core/interpreter';\nimport type {\n Dictionary,\n DictionarySelectorForGroup,\n QualifiedDictionaryGroup,\n ResolveQualifiedDictionaryContent,\n} from '@intlayer/types/dictionary';\nimport type {\n DeclaredLocales,\n ExtractSelectorLocale,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { type DeepTransformContent, getPlugins } from './plugins';\n\n/**\n * Transforms a dictionary (or qualified dictionary group) and returns its\n * content for the given locale or selector (`{ item }`, `{ variant }`,\n * optionally combined with `locale`).\n */\nexport const getDictionary = <\n const T extends Dictionary | QualifiedDictionaryGroup,\n const A extends LocalesValues | DictionarySelectorForGroup<T> =\n DeclaredLocales,\n>(\n dictionary: T,\n localeOrSelector?: A\n): DeepTransformContent<\n ResolveQualifiedDictionaryContent<T, A>,\n ExtractSelectorLocale<A>\n> => {\n const locale = (\n typeof localeOrSelector === 'object' && localeOrSelector !== null\n ? localeOrSelector.locale\n : localeOrSelector\n ) as LocalesValues | undefined;\n\n return getDictionaryCore(\n dictionary,\n localeOrSelector,\n getPlugins(locale)\n ) as any;\n};\n"],"mappings":";;;;;;;;;AAmBA,MAAa,iBAKX,YACA,qBAIG;CACH,MAAM,SACJ,OAAO,qBAAqB,YAAY,qBAAqB,OACzD,iBAAiB,SACjB;CAGN,OAAOA,gBACL,YACA,kBACA,WAAW,MAAM,CACnB;AACF"}
@@ -1,7 +1,7 @@
1
1
  import { getPlugins } from "./plugins.mjs";
2
2
  import { getIntlayer as getIntlayer$1 } from "@intlayer/core/interpreter";
3
3
 
4
- //#region src/getIntlayer.ts
4
+ // src/getIntlayer.ts
5
5
  /**
6
6
  * Picks one dictionary by its key and returns its content for the given
7
7
  * locale or selector (`{ item }`, `{ variant }`,
@@ -12,6 +12,5 @@ const getIntlayer = (key, localeOrSelector) => {
12
12
  return getIntlayer$1(key, localeOrSelector, getPlugins(locale));
13
13
  };
14
14
 
15
- //#endregion
16
15
  export { getIntlayer };
17
16
  //# sourceMappingURL=getIntlayer.mjs.map
@@ -1,7 +1,7 @@
1
- import __decorate from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.mjs";
1
+ import __decorate from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/decorate.mjs";
2
2
  import { Injectable, InjectionToken, inject } from "@angular/core";
3
3
 
4
- //#region src/html/installIntlayerHTML.ts
4
+ // src/html/installIntlayerHTML.ts
5
5
  const INTLAYER_HTML_TOKEN = new InjectionToken("intlayerHTML");
6
6
  /**
7
7
  * Default HTML renderer. In Angular, we often just use [innerHTML],
@@ -32,6 +32,5 @@ const useHTML = () => {
32
32
  return htmlProvider;
33
33
  };
34
34
 
35
- //#endregion
36
35
  export { INTLAYER_HTML_TOKEN, IntlayerHTMLService, createIntlayerHTMLProvider, useHTML };
37
36
  //# sourceMappingURL=installIntlayerHTML.mjs.map
@@ -1,15 +1,15 @@
1
- import { getPlugins, htmlPlugin, insertionPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin } from "./plugins.mjs";
2
- import { getDictionary } from "./getDictionary.mjs";
3
- import { getIntlayer } from "./getIntlayer.mjs";
4
1
  import { INTLAYER_TOKEN, IntlayerProvider, createIntlayerClient } from "./client/intlayerToken.mjs";
5
2
  import { provideIntlayerAnalytics, useAnalytics } from "./analytics/useAnalytics.mjs";
6
3
  import { useConversion } from "./analytics/useConversion.mjs";
7
4
  import { useExperiment } from "./analytics/useExperiment.mjs";
8
5
  import { installIntlayer, provideIntlayer } from "./client/installIntlayer.mjs";
6
+ import { getDictionary } from "./getDictionary.mjs";
7
+ import { getIntlayer } from "./getIntlayer.mjs";
9
8
  import { useDictionary } from "./client/useDictionary.mjs";
10
9
  import { useDictionaryAsync } from "./client/useDictionaryAsync.mjs";
11
10
  import { useLoadDynamic } from "./client/useLoadDynamic.mjs";
12
11
  import { useDictionaryDynamic } from "./client/useDictionaryDynamic.mjs";
12
+ import { getPlugins, htmlPlugin, insertionPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin } from "./plugins.mjs";
13
13
  import { isUpdatableNode, useIntlayer } from "./client/useIntlayer.mjs";
14
14
  import { useLocale } from "./client/useLocale.mjs";
15
15
  import { usePathname } from "./client/usePathname.mjs";
@@ -1,8 +1,8 @@
1
- import __decorate from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.mjs";
1
+ import __decorate from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/decorate.mjs";
2
2
  import { Injectable, InjectionToken, inject } from "@angular/core";
3
3
  import { compile, parseMarkdown as parseMarkdown$1, renderMarkdownAst } from "@intlayer/core/markdown";
4
4
 
5
- //#region src/markdown/installIntlayerMarkdown.ts
5
+ // src/markdown/installIntlayerMarkdown.ts
6
6
  /**
7
7
  * Angular `InjectionToken` used to provide a custom markdown renderer via the
8
8
  * DI system. Use `createIntlayerMarkdownProvider` to create the provider value
@@ -156,6 +156,5 @@ const useMarkdown = () => {
156
156
  return markdownProvider;
157
157
  };
158
158
 
159
- //#endregion
160
159
  export { INTLAYER_MARKDOWN_TOKEN, IntlayerMarkdownService, compileMarkdown, createIntlayerMarkdownProvider, htmlRuntime, parseMarkdown, useMarkdown };
161
160
  //# sourceMappingURL=installIntlayerMarkdown.mjs.map
@@ -1,13 +1,13 @@
1
1
  import { reportExposure } from "./analytics/exposureSink.mjs";
2
2
  import { ContentSelectorWrapperComponent } from "./editor/ContentSelector.component.mjs";
3
3
  import { renderIntlayerNode } from "./renderIntlayerNode.mjs";
4
- import { bindInsertedValues, conditionPlugin, enumerationPlugin, fallbackPlugin, filePlugin, genderPlugin, getInsertion, isInterpolableWrapperNode, nestedPlugin, pluralPlugin, resolveInterpreterLocale, selectPlugin, transformInterpolableNode, translationPlugin } from "@intlayer/core/interpreter";
5
4
  import { signal, untracked } from "@angular/core";
6
5
  import { editor, internationalization } from "@intlayer/config/built";
6
+ import { bindInsertedValues, conditionPlugin, enumerationPlugin, fallbackPlugin, filePlugin, genderPlugin, getInsertion, isInterpolableWrapperNode, nestedPlugin, pluralPlugin, resolveInterpreterLocale, selectPlugin, transformInterpolableNode, translationPlugin } from "@intlayer/core/interpreter";
7
7
  import { compile, getMarkdownMetadata } from "@intlayer/core/markdown";
8
8
  import * as NodeTypes from "@intlayer/types/nodeType";
9
9
 
10
- //#region src/plugins.ts
10
+ // src/plugins.ts
11
11
  /**
12
12
  * Code-split markdown renderer, held in a signal.
13
13
  *
@@ -251,6 +251,5 @@ const getPlugins = (locale, fallback = true) => {
251
251
  return enabledPlugins;
252
252
  };
253
253
 
254
- //#endregion
255
254
  export { getPlugins, htmlPlugin, insertionPlugin, intlayerNodePlugins, markdownPlugin, markdownStringPlugin };
256
255
  //# sourceMappingURL=plugins.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { getIntlayerNodePrototype } from "@intlayer/core/utils";
2
2
 
3
- //#region src/renderIntlayerNode.ts
3
+ // src/renderIntlayerNode.ts
4
4
  /**
5
5
  * Builds a node that renders its content and also behaves like its value
6
6
  * (`node.value`, `${node}`, `node.toUpperCase()`), through a shared prototype
@@ -19,6 +19,5 @@ const renderIntlayerNode = ({ children, value, additionalProps = {} }) => {
19
19
  return Object.setPrototypeOf(children, getIntlayerNodePrototype(value, Function.prototype));
20
20
  };
21
21
 
22
- //#endregion
23
22
  export { renderIntlayerNode };
24
23
  //# sourceMappingURL=renderIntlayerNode.mjs.map
@@ -5,7 +5,7 @@ import { getAlias } from "@intlayer/config/utils";
5
5
  import { IntlayerPlugin } from "@intlayer/webpack";
6
6
  import { defu } from "defu";
7
7
 
8
- //#region src/webpack/mergeConfig.ts
8
+ // src/webpack/mergeConfig.ts
9
9
  const _require = createRequire(import.meta.url);
10
10
  const mergeConfig = (baseConfig) => {
11
11
  const intlayerConfig = getConfiguration();
@@ -42,6 +42,5 @@ const mergeConfig = (baseConfig) => {
42
42
  return defu(config, baseConfig);
43
43
  };
44
44
 
45
- //#endregion
46
45
  export { mergeConfig };
47
46
  //# sourceMappingURL=mergeConfig.mjs.map