@intlayer/core 9.3.2 → 9.3.3

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 (205) hide show
  1. package/dist/cjs/dictionaryManipulator/index.cjs +5 -1
  2. package/dist/cjs/dictionaryManipulator/plainDynamicLoader.cjs +71 -0
  3. package/dist/cjs/dictionaryManipulator/plainDynamicLoader.cjs.map +1 -0
  4. package/dist/cjs/dictionaryManipulator/preloadedDynamicLoader.cjs +29 -0
  5. package/dist/cjs/dictionaryManipulator/preloadedDynamicLoader.cjs.map +1 -0
  6. package/dist/cjs/dictionaryManipulator/qualifiedDynamicLoader.cjs +4 -10
  7. package/dist/cjs/dictionaryManipulator/qualifiedDynamicLoader.cjs.map +1 -1
  8. package/dist/cjs/index.cjs +13 -2
  9. package/dist/cjs/localization/comparePaths.cjs +1 -1
  10. package/dist/cjs/localization/comparePaths.cjs.map +1 -1
  11. package/dist/cjs/localization/domainUtils.cjs.map +1 -1
  12. package/dist/cjs/localization/getHTMLTextDir.cjs +11 -10
  13. package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
  14. package/dist/cjs/localization/getLocale.cjs.map +1 -1
  15. package/dist/cjs/localization/getLocaleFromPath.cjs +3 -3
  16. package/dist/cjs/localization/getLocaleFromPath.cjs.map +1 -1
  17. package/dist/cjs/localization/getLocalizedPath.cjs +74 -0
  18. package/dist/cjs/localization/getLocalizedPath.cjs.map +1 -0
  19. package/dist/cjs/localization/getLocalizedPath.test-d.cjs +83 -0
  20. package/dist/cjs/localization/getLocalizedPath.test-d.cjs.map +1 -0
  21. package/dist/cjs/localization/getLocalizedUrl.cjs +9 -25
  22. package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
  23. package/dist/cjs/localization/getLocalizedUrl.test-d.cjs +42 -0
  24. package/dist/cjs/localization/getLocalizedUrl.test-d.cjs.map +1 -0
  25. package/dist/cjs/localization/getPathWithoutLocale.cjs +2 -2
  26. package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
  27. package/dist/cjs/localization/getPrefix.cjs +15 -1
  28. package/dist/cjs/localization/getPrefix.cjs.map +1 -1
  29. package/dist/cjs/localization/index.cjs +7 -1
  30. package/dist/cjs/localization/localeDetector.cjs +5 -3
  31. package/dist/cjs/localization/localeDetector.cjs.map +1 -1
  32. package/dist/cjs/localization/localeMapper.cjs.map +1 -1
  33. package/dist/cjs/localization/localeResolver.cjs.map +1 -1
  34. package/dist/cjs/localization/resolveBrowserLocale.cjs +63 -0
  35. package/dist/cjs/localization/resolveBrowserLocale.cjs.map +1 -0
  36. package/dist/cjs/localization/rewriteUtils.cjs +26 -14
  37. package/dist/cjs/localization/rewriteUtils.cjs.map +1 -1
  38. package/dist/cjs/localization/rewriteUtils.test-d.cjs +48 -0
  39. package/dist/cjs/localization/rewriteUtils.test-d.cjs.map +1 -0
  40. package/dist/cjs/markdown/constants.cjs +3 -0
  41. package/dist/cjs/markdown/constants.cjs.map +1 -1
  42. package/dist/cjs/markdown/index.cjs +1 -0
  43. package/dist/cjs/markdown/utils.cjs +23 -1
  44. package/dist/cjs/markdown/utils.cjs.map +1 -1
  45. package/dist/esm/dictionaryManipulator/index.mjs +2 -1
  46. package/dist/esm/dictionaryManipulator/plainDynamicLoader.mjs +70 -0
  47. package/dist/esm/dictionaryManipulator/plainDynamicLoader.mjs.map +1 -0
  48. package/dist/esm/dictionaryManipulator/preloadedDynamicLoader.mjs +27 -0
  49. package/dist/esm/dictionaryManipulator/preloadedDynamicLoader.mjs.map +1 -0
  50. package/dist/esm/dictionaryManipulator/qualifiedDynamicLoader.mjs +2 -8
  51. package/dist/esm/dictionaryManipulator/qualifiedDynamicLoader.mjs.map +1 -1
  52. package/dist/esm/index.mjs +7 -4
  53. package/dist/esm/localization/comparePaths.mjs +1 -1
  54. package/dist/esm/localization/comparePaths.mjs.map +1 -1
  55. package/dist/esm/localization/domainUtils.mjs.map +1 -1
  56. package/dist/esm/localization/getHTMLTextDir.mjs +11 -10
  57. package/dist/esm/localization/getHTMLTextDir.mjs.map +1 -1
  58. package/dist/esm/localization/getLocale.mjs.map +1 -1
  59. package/dist/esm/localization/getLocaleFromPath.mjs +4 -4
  60. package/dist/esm/localization/getLocaleFromPath.mjs.map +1 -1
  61. package/dist/esm/localization/getLocalizedPath.mjs +73 -0
  62. package/dist/esm/localization/getLocalizedPath.mjs.map +1 -0
  63. package/dist/esm/localization/getLocalizedPath.test-d.mjs +83 -0
  64. package/dist/esm/localization/getLocalizedPath.test-d.mjs.map +1 -0
  65. package/dist/esm/localization/getLocalizedUrl.mjs +10 -26
  66. package/dist/esm/localization/getLocalizedUrl.mjs.map +1 -1
  67. package/dist/esm/localization/getLocalizedUrl.test-d.mjs +42 -0
  68. package/dist/esm/localization/getLocalizedUrl.test-d.mjs.map +1 -0
  69. package/dist/esm/localization/getPathWithoutLocale.mjs +2 -2
  70. package/dist/esm/localization/getPathWithoutLocale.mjs.map +1 -1
  71. package/dist/esm/localization/getPrefix.mjs +15 -2
  72. package/dist/esm/localization/getPrefix.mjs.map +1 -1
  73. package/dist/esm/localization/index.mjs +5 -3
  74. package/dist/esm/localization/localeDetector.mjs +5 -3
  75. package/dist/esm/localization/localeDetector.mjs.map +1 -1
  76. package/dist/esm/localization/localeMapper.mjs.map +1 -1
  77. package/dist/esm/localization/localeResolver.mjs.map +1 -1
  78. package/dist/esm/localization/resolveBrowserLocale.mjs +61 -0
  79. package/dist/esm/localization/resolveBrowserLocale.mjs.map +1 -0
  80. package/dist/esm/localization/rewriteUtils.mjs +26 -14
  81. package/dist/esm/localization/rewriteUtils.mjs.map +1 -1
  82. package/dist/esm/localization/rewriteUtils.test-d.mjs +48 -0
  83. package/dist/esm/localization/rewriteUtils.test-d.mjs.map +1 -0
  84. package/dist/esm/markdown/constants.mjs +3 -1
  85. package/dist/esm/markdown/constants.mjs.map +1 -1
  86. package/dist/esm/markdown/index.mjs +2 -2
  87. package/dist/esm/markdown/utils.mjs +24 -2
  88. package/dist/esm/markdown/utils.mjs.map +1 -1
  89. package/dist/types/@intlayer/core/dist/types/formatters/compact.d.ts +1 -0
  90. package/dist/types/@intlayer/core/dist/types/formatters/currency.d.ts +1 -0
  91. package/dist/types/@intlayer/core/dist/types/formatters/date.d.ts +1 -0
  92. package/dist/types/@intlayer/core/dist/types/formatters/index.d.ts +9 -0
  93. package/dist/types/@intlayer/core/dist/types/formatters/list.d.ts +1 -0
  94. package/dist/types/@intlayer/core/dist/types/formatters/number.d.ts +1 -0
  95. package/dist/types/@intlayer/core/dist/types/formatters/percentage.d.ts +1 -0
  96. package/dist/types/@intlayer/core/dist/types/formatters/relativeTime.d.ts +1 -0
  97. package/dist/types/@intlayer/core/dist/types/formatters/units.d.ts +1 -0
  98. package/dist/types/@intlayer/core/dist/types/interpreter/getCondition.d.ts +2 -0
  99. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +1 -0
  100. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +3 -0
  101. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +3 -0
  102. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +7 -0
  103. package/dist/types/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +4 -0
  104. package/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +2 -0
  105. package/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +2 -0
  106. package/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +2 -0
  107. package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +4 -0
  108. package/dist/types/@intlayer/core/dist/types/interpreter/getNesting.d.ts +6 -0
  109. package/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +3 -0
  110. package/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +2 -0
  111. package/dist/types/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +1 -0
  112. package/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +15 -0
  113. package/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +2 -0
  114. package/dist/types/@intlayer/core/dist/types/localization/comparePaths.d.ts +1 -0
  115. package/dist/types/@intlayer/core/dist/types/localization/domainUtils.d.ts +2 -0
  116. package/dist/types/@intlayer/core/dist/types/localization/generateSitemap.d.ts +2 -0
  117. package/dist/types/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +1 -0
  118. package/dist/types/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +1 -0
  119. package/dist/types/@intlayer/core/dist/types/localization/getLocale.d.ts +1 -0
  120. package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +2 -0
  121. package/dist/types/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +1 -0
  122. package/dist/types/@intlayer/core/dist/types/localization/getLocaleName.d.ts +1 -0
  123. package/dist/types/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +2 -0
  124. package/dist/types/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +2 -0
  125. package/dist/types/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +2 -0
  126. package/dist/types/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +1 -0
  127. package/dist/types/@intlayer/core/dist/types/localization/getPrefix.d.ts +2 -0
  128. package/dist/types/@intlayer/core/dist/types/localization/index.d.ts +20 -0
  129. package/dist/types/@intlayer/core/dist/types/localization/localeDetector.d.ts +2 -0
  130. package/dist/types/@intlayer/core/dist/types/localization/localeMapper.d.ts +1 -0
  131. package/dist/types/@intlayer/core/dist/types/localization/localeResolver.d.ts +1 -0
  132. package/dist/types/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +2 -0
  133. package/dist/types/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +2 -0
  134. package/dist/types/@intlayer/core/dist/types/localization/validatePrefix.d.ts +2 -0
  135. package/dist/types/@intlayer/core/dist/types/markdown/index.d.ts +2 -0
  136. package/dist/types/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +1 -0
  137. package/dist/types/@intlayer/core/dist/types/transpiler/condition/index.d.ts +1 -0
  138. package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +1 -0
  139. package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +1 -0
  140. package/dist/types/@intlayer/core/dist/types/transpiler/file/file.d.ts +1 -0
  141. package/dist/types/@intlayer/core/dist/types/transpiler/file/index.d.ts +1 -0
  142. package/dist/types/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +1 -0
  143. package/dist/types/@intlayer/core/dist/types/transpiler/gender/index.d.ts +1 -0
  144. package/dist/types/@intlayer/core/dist/types/transpiler/html/html.d.ts +1 -0
  145. package/dist/types/@intlayer/core/dist/types/transpiler/html/index.d.ts +1 -0
  146. package/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +22 -0
  147. package/dist/types/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +1 -0
  148. package/dist/types/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +1 -0
  149. package/dist/types/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +1 -0
  150. package/dist/types/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +1 -0
  151. package/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +1 -0
  152. package/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +4 -0
  153. package/dist/types/@intlayer/core/dist/types/transpiler/plural/index.d.ts +1 -0
  154. package/dist/types/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +1 -0
  155. package/dist/types/@intlayer/core/dist/types/transpiler/select/index.d.ts +1 -0
  156. package/dist/types/@intlayer/core/dist/types/transpiler/select/select.d.ts +1 -0
  157. package/dist/types/@intlayer/core/dist/types/transpiler/translation/index.d.ts +1 -0
  158. package/dist/types/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +2 -0
  159. package/dist/types/@intlayer/core/dist/types/utils/index.d.ts +3 -0
  160. package/dist/types/@intlayer/core/dist/types/utils/intl.d.ts +1 -0
  161. package/dist/types/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +1 -0
  162. package/dist/types/@intlayer/core/dist/types/utils/localeStorage.d.ts +2 -0
  163. package/dist/types/dictionaryManipulator/index.d.ts +2 -1
  164. package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +50 -0
  165. package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts.map +1 -0
  166. package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts +38 -0
  167. package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts.map +1 -0
  168. package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +1 -7
  169. package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts.map +1 -1
  170. package/dist/types/index.d.ts +7 -4
  171. package/dist/types/interpreter/getPlural.d.ts +1 -1
  172. package/dist/types/intlayer/dist/types/index.d.ts +14 -0
  173. package/dist/types/localization/domainUtils.d.ts +2 -3
  174. package/dist/types/localization/domainUtils.d.ts.map +1 -1
  175. package/dist/types/localization/getHTMLTextDir.d.ts.map +1 -1
  176. package/dist/types/localization/getLocale.d.ts +2 -2
  177. package/dist/types/localization/getLocale.d.ts.map +1 -1
  178. package/dist/types/localization/getLocaleFromPath.d.ts +2 -2
  179. package/dist/types/localization/getLocaleFromPath.d.ts.map +1 -1
  180. package/dist/types/localization/getLocalizedPath.d.ts +47 -0
  181. package/dist/types/localization/getLocalizedPath.d.ts.map +1 -0
  182. package/dist/types/localization/getLocalizedPath.test-d.d.ts +1 -0
  183. package/dist/types/localization/getLocalizedUrl.d.ts +5 -1
  184. package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
  185. package/dist/types/localization/getLocalizedUrl.test-d.d.ts +1 -0
  186. package/dist/types/localization/getPrefix.d.ts +20 -8
  187. package/dist/types/localization/getPrefix.d.ts.map +1 -1
  188. package/dist/types/localization/index.d.ts +5 -3
  189. package/dist/types/localization/localeDetector.d.ts +2 -1
  190. package/dist/types/localization/localeDetector.d.ts.map +1 -1
  191. package/dist/types/localization/localeMapper.d.ts +4 -5
  192. package/dist/types/localization/localeMapper.d.ts.map +1 -1
  193. package/dist/types/localization/localeResolver.d.ts +2 -3
  194. package/dist/types/localization/localeResolver.d.ts.map +1 -1
  195. package/dist/types/localization/resolveBrowserLocale.d.ts +35 -0
  196. package/dist/types/localization/resolveBrowserLocale.d.ts.map +1 -0
  197. package/dist/types/localization/rewriteUtils.d.ts +51 -11
  198. package/dist/types/localization/rewriteUtils.d.ts.map +1 -1
  199. package/dist/types/localization/rewriteUtils.test-d.d.ts +1 -0
  200. package/dist/types/markdown/constants.d.ts +3 -1
  201. package/dist/types/markdown/constants.d.ts.map +1 -1
  202. package/dist/types/markdown/index.d.ts +2 -2
  203. package/dist/types/markdown/utils.d.ts +6 -0
  204. package/dist/types/markdown/utils.d.ts.map +1 -1
  205. package/package.json +6 -6
@@ -0,0 +1,6 @@
1
+ import "./getContent/index.js";
2
+ import "./getContent/plugins.js";
3
+ import "../transpiler/nesting/nesting.js";
4
+ import "../transpiler/index.js";
5
+ import { GetSubPath } from "@intlayer/types/dictionary";
6
+ import { DictionaryKeys, DictionaryRegistryContent } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,3 @@
1
+ import "../transpiler/plural/plural.js";
2
+ import "../../../../../intlayer/dist/types/index.js";
3
+ import { DeclaredLocales } from "@intlayer/types";
@@ -0,0 +1,2 @@
1
+ import "../transpiler/select/select.js";
2
+ import "../transpiler/index.js";
@@ -0,0 +1 @@
1
+ import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,15 @@
1
+ import "./getContent/deepTransform.js";
2
+ import "./getContent/getContent.js";
3
+ import "./getContent/index.js";
4
+ import "./getNesting.js";
5
+ import "./getContent/plugins.js";
6
+ import "./getCondition.js";
7
+ import "./getDictionary.js";
8
+ import "./getEnumeration.js";
9
+ import "./getGender.js";
10
+ import "./getInsertion.js";
11
+ import "./getIntlayer.js";
12
+ import "./getPlural.js";
13
+ import "./getSelect.js";
14
+ import "./getTranslation.js";
15
+ import "./interpolableNode.js";
@@ -0,0 +1,2 @@
1
+ import "./getContent/plugins.js";
2
+ import "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
2
+ import { RoutingConfig } from "@intlayer/types/config";
@@ -0,0 +1,2 @@
1
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
2
+ import { RoutingConfig } from "@intlayer/types/config";
@@ -0,0 +1 @@
1
+ import { Locale } from "@intlayer/types/allLocales";
@@ -0,0 +1 @@
1
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1 @@
1
+ import { DeclaredLocales } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import "./getPrefix.js";
2
+ import { DeclaredLocales } from "@intlayer/types/module_augmentation";
@@ -0,0 +1 @@
1
+ import { GetLocaleLang, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1 @@
1
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import "./getPrefix.js";
2
+ import { LocalesValues, LocalizedPathname, ResolvedDefaultLocale } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import "./getPrefix.js";
2
+ import { LocalesValues, LocalizedUrl, ResolvedDefaultLocale } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import "./getPrefix.js";
2
+ import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
@@ -0,0 +1 @@
1
+ import { DeclaredLocales, LocalesValues, PathWithoutLocale } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import { DeclaredLocales, LocalesValues, ResolvedDefaultLocale, ResolvedRoutingMode } from "@intlayer/types/module_augmentation";
2
+ import { RewriteRules, RoutingConfig } from "@intlayer/types/config";
@@ -0,0 +1,20 @@
1
+ import "./comparePaths.js";
2
+ import "./domainUtils.js";
3
+ import "./generateSitemap.js";
4
+ import "./getBrowserLocale.js";
5
+ import "./getHTMLTextDir.js";
6
+ import "./getLocale.js";
7
+ import "./getPrefix.js";
8
+ import "./getLocaleFromPath.js";
9
+ import "./getLocaleLang.js";
10
+ import "./getLocaleName.js";
11
+ import "./getLocalizedPath.js";
12
+ import "./getLocalizedUrl.js";
13
+ import "./getMultilingualUrls.js";
14
+ import "./getPathWithoutLocale.js";
15
+ import "./localeDetector.js";
16
+ import "./localeMapper.js";
17
+ import "./localeResolver.js";
18
+ import "./resolveBrowserLocale.js";
19
+ import "./rewriteUtils.js";
20
+ import "./validatePrefix.js";
@@ -0,0 +1,2 @@
1
+ import { DeclaredLocales } from "@intlayer/types/module_augmentation";
2
+ import { Locale } from "@intlayer/types/allLocales";
@@ -0,0 +1 @@
1
+ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1 @@
1
+ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import "./getPrefix.js";
2
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import { LocalesValues, ResolvedDefaultLocale } from "@intlayer/types/module_augmentation";
2
+ import { RewriteObject, RewriteRules, RoutingConfig } from "@intlayer/types/config";
@@ -0,0 +1,2 @@
1
+ import "./getPrefix.js";
2
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1,2 @@
1
+ import "../transpiler/markdown/markdown.js";
2
+ import "../transpiler/markdown/index.js";
@@ -0,0 +1 @@
1
+ import { CONDITION, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./condition.js";
@@ -0,0 +1 @@
1
+ import { ENUMERATION, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./enumeration.js";
@@ -0,0 +1 @@
1
+ import { FILE, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./file.js";
@@ -0,0 +1 @@
1
+ import { GENDER, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./gender.js";
@@ -0,0 +1 @@
1
+ import { HTML, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./html.js";
@@ -0,0 +1,22 @@
1
+ import "./file/file.js";
2
+ import "./condition/condition.js";
3
+ import "./condition/index.js";
4
+ import "./enumeration/enumeration.js";
5
+ import "./enumeration/index.js";
6
+ import "./file/index.js";
7
+ import "./gender/gender.js";
8
+ import "./gender/index.js";
9
+ import "./html/html.js";
10
+ import "./html/index.js";
11
+ import "./insertion/insertion.js";
12
+ import "./insertion/index.js";
13
+ import "./markdown/markdown.js";
14
+ import "./markdown/index.js";
15
+ import "./nesting/nesting.js";
16
+ import "./nesting/index.js";
17
+ import "./plural/plural.js";
18
+ import "./plural/index.js";
19
+ import "./select/select.js";
20
+ import "./select/index.js";
21
+ import "./translation/translation.js";
22
+ import "./translation/index.js";
@@ -0,0 +1 @@
1
+ import "./insertion.js";
@@ -0,0 +1 @@
1
+ import { INSERTION, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./markdown.js";
@@ -0,0 +1 @@
1
+ import { MARKDOWN, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./nesting.js";
@@ -0,0 +1,4 @@
1
+ import "../../interpreter/getContent/plugins.js";
2
+ import "../../interpreter/index.js";
3
+ import { DictionaryKeys, DictionaryRegistryContent } from "@intlayer/types/module_augmentation";
4
+ import { NESTED, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./plural.js";
@@ -0,0 +1 @@
1
+ import { PLURAL, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./select.js";
@@ -0,0 +1 @@
1
+ import { SELECT, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1 @@
1
+ import "./translation.js";
@@ -0,0 +1,2 @@
1
+ import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
2
+ import { TRANSLATION, TypedNodeModel } from "@intlayer/types/nodeType";
@@ -0,0 +1,3 @@
1
+ import "./intl.js";
2
+ import "./isSameKeyPath.js";
3
+ import "./localeStorage.js";
@@ -0,0 +1 @@
1
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -0,0 +1 @@
1
+ import { KeyPath } from "@intlayer/types/keyPath";
@@ -0,0 +1,2 @@
1
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
2
+ import { Locale } from "@intlayer/types/allLocales";
@@ -9,10 +9,11 @@ import { mergeDictionaries } from "./mergeDictionaries.js";
9
9
  import { mergeQualifiedDictionaries } from "./mergeQualifiedDictionaries.js";
10
10
  import { normalizeDictionaries, normalizeDictionary } from "./normalizeDictionary.js";
11
11
  import { orderDictionaries } from "./orderDictionaries.js";
12
+ import { PRELOADED_DYNAMIC_KEY, PreloadableDynamicLoaderMap, PreloadedDynamicEntry, getPreloadedDictionary } from "./preloadedDynamicLoader.js";
12
13
  import { COMPOSITE_ID_SEPARATOR, DEFAULT_VARIANT_ID, getDictionarySelectorCacheKey, isQualifiedDictionaryGroup, parseDictionarySelector, reconstructQualifiedEntry, resolveDictionaryArgument, resolveEffectiveVariantId, resolveProviderVariant, resolveQualifiedDictionary, serializeVariant, serializeVariantChain } from "./qualifiedDictionary.js";
13
14
  import { QUALIFIER_ORDER, getDictionaryCompositeIds, getDictionaryQualifierIds, getDictionaryQualifierTypes, getVariantIds } from "./qualifiedDictionaryDeclaration.js";
14
15
  import { DynamicDictionaryLoader, QUALIFIER_DYNAMIC_TYPES_KEY, QualifiedDynamicLoaderMap, QualifiedDynamicLoaderTree, isQualifiedDynamicLoaderMap, resolveQualifiedDynamicContent, resolveQualifiedDynamicContentAsync } from "./qualifiedDynamicLoader.js";
15
16
  import { removeContentNodeByKeyPath } from "./removeContentNodeByKeyPath.js";
16
17
  import { renameContentNodeByKeyPath } from "./renameContentNodeByKeyPath.js";
17
18
  import { updateNodeChildren } from "./updateNodeChildren.js";
18
- export { COMPOSITE_ID_SEPARATOR, DEFAULT_VARIANT_ID, DynamicDictionaryLoader, NestedFieldReferences, QUALIFIER_DYNAMIC_TYPES_KEY, QUALIFIER_ORDER, QualifiedDynamicLoaderMap, QualifiedDynamicLoaderTree, editDictionaryByKeyPath, getContentNodeByKeyPath, getDefaultNode, getDictionaryCompositeIds, getDictionaryQualifierIds, getDictionaryQualifierTypes, getDictionarySelectorCacheKey, getEmptyNode, getNestedDictionaryGraph, getNestedDictionaryKeys, getNestedDictionaryReferences, getNodeChildren, getNodeType, getVariantIds, isQualifiedDictionaryGroup, isQualifiedDynamicLoaderMap, mergeDictionaries, mergeQualifiedDictionaries, normalizeDictionaries, normalizeDictionary, orderDictionaries, parseDictionarySelector, reconstructQualifiedEntry, removeContentNodeByKeyPath, renameContentNodeByKeyPath, resolveDictionaryArgument, resolveEffectiveVariantId, resolveProviderVariant, resolveQualifiedDictionary, resolveQualifiedDynamicContent, resolveQualifiedDynamicContentAsync, serializeVariant, serializeVariantChain, updateNodeChildren };
19
+ export { COMPOSITE_ID_SEPARATOR, DEFAULT_VARIANT_ID, DynamicDictionaryLoader, NestedFieldReferences, PRELOADED_DYNAMIC_KEY, PreloadableDynamicLoaderMap, PreloadedDynamicEntry, QUALIFIER_DYNAMIC_TYPES_KEY, QUALIFIER_ORDER, QualifiedDynamicLoaderMap, QualifiedDynamicLoaderTree, editDictionaryByKeyPath, getContentNodeByKeyPath, getDefaultNode, getDictionaryCompositeIds, getDictionaryQualifierIds, getDictionaryQualifierTypes, getDictionarySelectorCacheKey, getEmptyNode, getNestedDictionaryGraph, getNestedDictionaryKeys, getNestedDictionaryReferences, getNodeChildren, getNodeType, getPreloadedDictionary, getVariantIds, isQualifiedDictionaryGroup, isQualifiedDynamicLoaderMap, mergeDictionaries, mergeQualifiedDictionaries, normalizeDictionaries, normalizeDictionary, orderDictionaries, parseDictionarySelector, reconstructQualifiedEntry, removeContentNodeByKeyPath, renameContentNodeByKeyPath, resolveDictionaryArgument, resolveEffectiveVariantId, resolveProviderVariant, resolveQualifiedDictionary, resolveQualifiedDynamicContent, resolveQualifiedDynamicContentAsync, serializeVariant, serializeVariantChain, updateNodeChildren };
@@ -0,0 +1,50 @@
1
+ import { Dictionary } from "@intlayer/types/dictionary";
2
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
3
+ //#region src/dictionaryManipulator/plainDynamicLoader.d.ts
4
+ /**
5
+ * Default export shape of a generated dynamic entry point for a plain (non
6
+ * qualified) key: one lazy chunk loader per emitted locale.
7
+ */
8
+ type PlainDynamicLoaderMap<T extends Dictionary = Dictionary> = {
9
+ [locale: string]: (() => Promise<T>) | undefined;
10
+ };
11
+ /** A chunk loader together with the locale it was emitted for. */
12
+ type ResolvedDynamicLoader<T extends Dictionary = Dictionary> = {
13
+ /**
14
+ * Locale the returned loader actually serves, which differs from the
15
+ * requested one whenever the fallback chain was walked.
16
+ */
17
+ locale: LocalesValues;
18
+ loader: () => Promise<T>;
19
+ };
20
+ /**
21
+ * Picks the chunk loader serving a locale out of a plain dynamic loader map.
22
+ *
23
+ * A dictionary is only emitted for the locales it declares, so a read for any
24
+ * other locale — an undeclared one, or a partially translated dictionary under
25
+ * `requiredLocales` — has no chunk of its own. Static mode answers such a read
26
+ * with the default locale's content rather than nothing, and this walks the
27
+ * same chain so dynamic mode stays interchangeable with it.
28
+ *
29
+ * @param loaderMap - Default export of a generated dynamic entry point.
30
+ * @param locale - Locale the caller is about to render.
31
+ * @returns The loader to invoke and the locale its chunk holds, or `undefined`
32
+ * when the map holds no chunk for the locale nor for any fallback.
33
+ */
34
+ declare const findPlainDynamicLoader: <T extends Dictionary>(loaderMap: PlainDynamicLoaderMap<T>, locale: LocalesValues) => ResolvedDynamicLoader<T> | undefined;
35
+ /**
36
+ * {@link findPlainDynamicLoader}, for callers that cannot render without a
37
+ * chunk and would otherwise fail on an `undefined` loader with an error naming
38
+ * neither the dictionary nor the locale.
39
+ *
40
+ * @param loaderMap - Default export of a generated dynamic entry point.
41
+ * @param key - Dictionary key, used to describe an unresolvable lookup.
42
+ * @param locale - Locale the caller is about to render.
43
+ * @returns The loader to invoke, and the locale its chunk holds.
44
+ * @throws When neither the locale nor any of its fallbacks has a chunk, which
45
+ * only happens on a malformed or empty entry point.
46
+ */
47
+ declare const resolvePlainDynamicLoader: <T extends Dictionary>(loaderMap: PlainDynamicLoaderMap<T>, key: string, locale: LocalesValues) => ResolvedDynamicLoader<T>;
48
+ //#endregion
49
+ export { PlainDynamicLoaderMap, ResolvedDynamicLoader, findPlainDynamicLoader, resolvePlainDynamicLoader };
50
+ //# sourceMappingURL=plainDynamicLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plainDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/plainDynamicLoader.ts"],"mappings":";;;;;;;KAUY,sBAAsB,UAAU,aAAa;GACtD,wBAAwB,QAAQ;;;KAIvB,sBAAsB,UAAU,aAAa;;;;;EAKvD,QAAQ;EACR,cAAc,QAAQ;;;;;;;;;;;;;;;;cA4CX,yBAA0B,UAAU,YAAU,WAC9C,sBAAsB,IAAE,QAC3B,kBACP,sBAAsB;;;;;;;;;;;;;cAgCZ,4BAA6B,UAAU,YAAU,WACjD,sBAAsB,IAAE,aACxB,QACH,kBACP,sBAAsB"}
@@ -0,0 +1,38 @@
1
+ import { Dictionary } from "@intlayer/types/dictionary";
2
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
3
+ import { PRELOADED_DYNAMIC_KEY } from "@intlayer/config/defaultValues";
4
+ //#region src/dictionaryManipulator/preloadedDynamicLoader.d.ts
5
+ /**
6
+ * The value attached under {@link PRELOADED_DYNAMIC_KEY}.
7
+ *
8
+ * `locale` is the locale the preamble resolved at module-evaluation time. It is
9
+ * compared against the locale the read actually asks for, so a disagreement
10
+ * (a client-side locale switch, or a resolution the provider overrode) falls
11
+ * back to loading rather than serving content in the wrong language.
12
+ */
13
+ type PreloadedDynamicEntry = {
14
+ locale: LocalesValues;
15
+ dictionary: Dictionary;
16
+ };
17
+ /** A plain dynamic loader map that may carry a preloaded entry. */
18
+ type PreloadableDynamicLoaderMap = {
19
+ [PRELOADED_DYNAMIC_KEY]?: PreloadedDynamicEntry;
20
+ };
21
+ /**
22
+ * Reads the preloaded dictionary of a dynamic loader map, when one was resolved
23
+ * for the requested locale.
24
+ *
25
+ * Deliberately synchronous, and deliberately not routed through the suspender
26
+ * cache: a suspender only leaves `pending` inside a `.then` callback, so feeding
27
+ * it an already-resolved promise would still suspend for one microtask — long
28
+ * enough for a pending fallback to paint, which is the flash this whole
29
+ * mechanism exists to remove.
30
+ *
31
+ * @param loaderMap - Default export of a generated dynamic entry point.
32
+ * @param locale - Locale the caller is about to render.
33
+ * @returns The dictionary when it was preloaded for `locale`, else `undefined`.
34
+ */
35
+ declare const getPreloadedDictionary: (loaderMap: unknown, locale: LocalesValues) => Dictionary | undefined;
36
+ //#endregion
37
+ export { PRELOADED_DYNAMIC_KEY, PreloadableDynamicLoaderMap, PreloadedDynamicEntry, getPreloadedDictionary };
38
+ //# sourceMappingURL=preloadedDynamicLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preloadedDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/preloadedDynamicLoader.ts"],"mappings":";;;;;;;;;;;;KAoBY;EACV,QAAQ;EACR,YAAY;;;KAIF;GACT,yBAAyB;;;;;;;;;;;;;;;;cAiBf,yBAAsB,oBACf,QACV,kBACP"}
@@ -1,12 +1,6 @@
1
1
  import { Dictionary, DictionaryQualifierType, DictionarySelector } from "@intlayer/types/dictionary";
2
+ import { QUALIFIER_DYNAMIC_TYPES_KEY } from "@intlayer/config/defaultValues";
2
3
  //#region src/dictionaryManipulator/qualifiedDynamicLoader.d.ts
3
- /**
4
- * Marker property carrying the ordered qualifier dimensions on a dynamic loader
5
- * map. Its presence distinguishes a qualified group loader map (a nested tree
6
- * of chunks) from a plain dynamic loader map (one chunk per `locale`). Prefixed
7
- * and unlikely to collide with a real locale code.
8
- */
9
- declare const QUALIFIER_DYNAMIC_TYPES_KEY = "__intlayerQualifierTypes";
10
4
  /**
11
5
  * A lazily-imported per-locale dictionary chunk loader.
12
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"qualifiedDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/qualifiedDynamicLoader.ts"],"mappings":";;;;;;;;cAiBa;;;;KAKD,gCAAgC,QAAQ;;;;;KAMxC;GACT,kBAAkB,6BAA6B;;;;;;;;;;;;;;KAetC;GACT,8BAA8B;GAC9B,iBAAiB,6BAA6B;;;;;;cAOpC,8BAA2B,mBAErC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;cAiHC,iCAAkC,SAAO;EACpD,WAAW;EACX;EACA;EACA,UAAU;EACV,YAAY,kBAAkB,SAAS,QAAQ,gBAAgB;EAC/D,YAAY,YAAY,eAAe;MACrC,UAAU;;;;;;;;;;;;cAkCD,sCAA6C,SAAO;EAC/D,WAAW;EACX;EACA;EACA,UAAU;EACV,YAAY,YAAY,eAAe;MACrC,QAAQ,UAAU"}
1
+ {"version":3,"file":"qualifiedDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/qualifiedDynamicLoader.ts"],"mappings":";;;;;;KAuBY,gCAAgC,QAAQ;;;;;KAMxC;GACT,kBAAkB,6BAA6B;;;;;;;;;;;;;;KAetC;GACT,8BAA8B;GAC9B,iBAAiB,6BAA6B;;;;;;cAOpC,8BAA2B,mBAErC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;cAiHC,iCAAkC,SAAO;EACpD,WAAW;EACX;EACA;EACA,UAAU;EACV,YAAY,kBAAkB,SAAS,QAAQ,gBAAgB;EAC/D,YAAY,YAAY,eAAe;MACrC,UAAU;;;;;;;;;;;;cAkCD,sCAA6C,SAAO;EAC/D,WAAW;EACX;EACA;EACA,UAAU;EACV,YAAY,YAAY,eAAe;MACrC,QAAQ,UAAU"}
@@ -55,6 +55,7 @@ import { mergeDictionaries } from "./dictionaryManipulator/mergeDictionaries.js"
55
55
  import { mergeQualifiedDictionaries } from "./dictionaryManipulator/mergeQualifiedDictionaries.js";
56
56
  import { normalizeDictionaries, normalizeDictionary } from "./dictionaryManipulator/normalizeDictionary.js";
57
57
  import { orderDictionaries } from "./dictionaryManipulator/orderDictionaries.js";
58
+ import { PRELOADED_DYNAMIC_KEY, PreloadableDynamicLoaderMap, PreloadedDynamicEntry, getPreloadedDictionary } from "./dictionaryManipulator/preloadedDynamicLoader.js";
58
59
  import { COMPOSITE_ID_SEPARATOR, DEFAULT_VARIANT_ID, getDictionarySelectorCacheKey, isQualifiedDictionaryGroup, parseDictionarySelector, reconstructQualifiedEntry, resolveDictionaryArgument, resolveEffectiveVariantId, resolveProviderVariant, resolveQualifiedDictionary, serializeVariant, serializeVariantChain } from "./dictionaryManipulator/qualifiedDictionary.js";
59
60
  import { QUALIFIER_ORDER, getDictionaryCompositeIds, getDictionaryQualifierIds, getDictionaryQualifierTypes, getVariantIds } from "./dictionaryManipulator/qualifiedDictionaryDeclaration.js";
60
61
  import { DynamicDictionaryLoader, QUALIFIER_DYNAMIC_TYPES_KEY, QualifiedDynamicLoaderMap, QualifiedDynamicLoaderTree, isQualifiedDynamicLoaderMap, resolveQualifiedDynamicContent, resolveQualifiedDynamicContentAsync } from "./dictionaryManipulator/qualifiedDynamicLoader.js";
@@ -78,10 +79,11 @@ import { GenerateSitemapOptions, SitemapUrlEntry, generateSitemap, generateSitem
78
79
  import { getBrowserLocale } from "./localization/getBrowserLocale.js";
79
80
  import { getHTMLTextDir } from "./localization/getHTMLTextDir.js";
80
81
  import { getLocale } from "./localization/getLocale.js";
81
- import { GetPrefixOptions, GetPrefixResult, getPrefix } from "./localization/getPrefix.js";
82
+ import { GetPrefixOptions, GetPrefixResult, getPrefix, isDeclaredLocale } from "./localization/getPrefix.js";
82
83
  import { getLocaleFromPath } from "./localization/getLocaleFromPath.js";
83
84
  import { getLocaleLang } from "./localization/getLocaleLang.js";
84
85
  import { getLocaleName } from "./localization/getLocaleName.js";
86
+ import { getLocalizedPath } from "./localization/getLocalizedPath.js";
85
87
  import { getLocalizedUrl } from "./localization/getLocalizedUrl.js";
86
88
  import { getMultilingualUrls } from "./localization/getMultilingualUrls.js";
87
89
  import { getPathWithoutLocale } from "./localization/getPathWithoutLocale.js";
@@ -89,12 +91,13 @@ import { localeDetector } from "./localization/localeDetector.js";
89
91
  import { localeFlatMap, localeMap, localeRecord } from "./localization/localeMapper.js";
90
92
  import { localeResolver } from "./localization/localeResolver.js";
91
93
  import { ProxyMode, formatProxyEnabledMessage, isProxyStorageLocaleEnabled, resolveProxyMode } from "./localization/proxyMode.js";
92
- import { LocalizedPathResult, getCanonicalPath, getInternalPath, getLocalizedPath, getRewritePath, getRewriteRules } from "./localization/rewriteUtils.js";
94
+ import { getPreloadLocale, resolveBrowserLocale } from "./localization/resolveBrowserLocale.js";
95
+ import { LocalizedPathResult, getCanonicalPath, getInternalPath, getRewritePath, getRewriteRules, resolveLocalizedPath } from "./localization/rewriteUtils.js";
93
96
  import { validatePrefix } from "./localization/validatePrefix.js";
94
97
  import "./localization/index.js";
95
98
  import { BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, CustomComponentNode, ElementType, EscapedTextNode, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, HTMLCommentNode, HTMLNode, HTMLSelfClosingNode, HTMLTag, HeadingNode, HeadingSetextNode, ImageNode, ItalicTextNode, LinkAngleBraceNode, LinkBareURLNode, LinkNode, MarkdownContext, MarkdownOptions, MarkdownRuntime, MarkedTextNode, NestedParser, NewlineNode, OrderedListNode, ParagraphNode, ParseState, Parser, ParserResult, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, Rules, StrikethroughTextNode, TableNode, TableSeparatorNode, TextNode, UnorderedListNode } from "./markdown/types.js";
96
99
  import { MarkdownReferences, ParsedMarkdown, compile, compileWithOptions, createCompiler, parseMarkdown, renderMarkdownAst } from "./markdown/compiler.js";
97
- import { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, GFM_TASK_R, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, INLINE_SKIP_R, INTERPOLATION_R, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, ListType, NAMED_CODES_TO_UNICODE, NP_TABLE_R, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, PARAGRAPH_R, Priority, PriorityValue, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, RuleType, RuleTypeValue, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex } from "./markdown/constants.js";
100
+ import { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, FENCE_DELIMITER_R, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, GFM_TASK_R, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, INLINE_SKIP_R, INTERPOLATION_R, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, ListType, NAMED_CODES_TO_UNICODE, NP_TABLE_R, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, PARAGRAPH_R, Priority, PriorityValue, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, RuleType, RuleTypeValue, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex } from "./markdown/constants.js";
98
101
  import { parserFor } from "./markdown/parser.js";
99
102
  import { createRenderer, renderFor } from "./markdown/renderer.js";
100
103
  import { allowInline, anyScopeRegex, attributeValueToNodePropValue, blockRegex, captureNothing, cx, get, inlineRegex, normalizeAttributeKey, normalizeWhitespace, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, qualifies, renderNothing, sanitizer, simpleInlineRegex, slugify, some, startsWith, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, unquote } from "./markdown/utils.js";
@@ -114,4 +117,4 @@ import { CookieBuildAttributes, LocaleStorage, LocaleStorageClient, LocaleStorag
114
117
  import { YamlRecord, YamlValue, parseYaml } from "./utils/parseYaml.js";
115
118
  import { stringifyYaml } from "./utils/stringifyYaml.js";
116
119
  import "./utils/index.js";
117
- export { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, type BlockQuoteNode, type BoldTextNode, type BreakLineNode, type BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, COMPOSITE_ID_SEPARATOR, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, CachedIntl, CachedIntl as Intl, type CodeBlockNode, type CodeFencedNode, type CodeInlineNode, type CompileOptions, type ComponentOverrides, ConditionCond, ConditionContent, ConditionContentStates, CookieBuildAttributes, type CustomComponentNode, DEFAULT_VARIANT_ID, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, DateTimePreset, DeepTransformContent, DotPath, DynamicDictionaryLoader, type ElementType, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, type EscapedTextNode, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, FileCond, type FileContent, type FileContentConstructor, type FootnoteNode, type FootnoteReferenceNode, type GFMTaskNode, GFM_TASK_R, Gender, GenderCond, GenderContent, GenderContentStates, type GenerateSitemapOptions, GetNestingResult, type GetPrefixOptions, type GetPrefixResult, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, type HTMLCommentNode, HTMLContent, HTMLContentConstructor, type HTMLNode, type HTMLSelfClosingNode, type HTMLTag, HTMLTagsType, HTMLValidationIssue, HTMLValidationResult, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, HTML_TAGS, type HeadingNode, type HeadingSetextNode, IInterpreterPlugin, IInterpreterPluginState, INLINE_SKIP_R, INTERPOLATION_R, type ImageNode, InsertionCond, InsertionContent, InsertionContentConstructor, InterpolableNode, IntlConstructorName, IsAny, type ItalicTextNode, JsonValue, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, type LinkAngleBraceNode, type LinkBareURLNode, type LinkNode, ListType, type LocaleDomainMap, LocaleStorage, LocaleStorageClient, LocaleStorageClientOptions, LocaleStorageOptions, LocaleStorageServer, LocaleStorageServerOptions, type LocalizedPathResult, MarkdownContent, MarkdownContentConstructor, type MarkdownContext, type MarkdownOptions, MarkdownReferences, type MarkdownRuntime, type HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, type MarkedTextNode, MessageFormatDialect, MessageValues, NAMED_CODES_TO_UNICODE, NP_TABLE_R, NestedCond, NestedContent, NestedContentState, NestedFieldReferences, type NestedParser, type NewlineNode, NodeProps, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, type OrderedListNode, PARAGRAPH_R, type ParagraphNode, type ParseState, ParsedMarkdown, type Parser, type ParserResult, Plugins, PluralCategory, PluralCond, PluralContent, PluralContentState, PortableObject, Priority, PriorityValue, type ProxyMode, QUALIFIER_DYNAMIC_TYPES_KEY, QUALIFIER_ORDER, QualifiedDynamicLoaderMap, QualifiedDynamicLoaderTree, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, type ReferenceImageNode, type ReferenceLinkNode, type ReferenceNode, type RenderRuleHook, type Rule, type RuleOutput, RuleType, RuleTypeValue, type Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, SelectCond, SelectContent, SelectContentStates, SelectSelector, type SitemapUrlEntry, type StrikethroughTextNode, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, type TableNode, type TableSeparatorNode, TaggedMessageToken, type TextNode, TranslationCond, TranslationContent, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, UnionKeys, type UnorderedListNode, VOID_HTML_ELEMENTS, ValidDotPathsFor, ValueAtKey, WrappedIntl, YamlRecord, YamlValue, allowInline, anyScopeRegex, attributeValueToNodePropValue, bindIntl, blockRegex, buildMaskPlugin, captureNothing, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, comparePaths, compile, compileWithOptions, condition as cond, conditionPlugin, createCompiler, createRenderer, currency, cx, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, fallbackPlugin, type file, type fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, formatProxyEnabledMessage, gender, genderPlugin, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, generateSitemap, generateSitemapUrl, get, getBasePlugins, getBrowserLocale, getCachedIntl, getCanonicalPath, getCondition, getContent, getContentNodeByKeyPath, getCookie, getDefaultNode, getDictionary, getDictionaryCompositeIds, getDictionaryQualifierIds, getDictionaryQualifierTypes, getDictionarySelectorCacheKey, getDomainHostname, getDomainOrigin, getEditedContent, getEditedDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getGender, getHTML, getHTMLTextDir, getInsertion, getInsertionValues, getInternalPath, getInterpolableContent, getIntlayer, getLocale, getLocaleFromDomain, getLocaleFromPath, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNestedDictionaryGraph, getNestedDictionaryKeys, getNestedDictionaryReferences, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPlural, getPrefix, getReplacedValuesContent, getRewritePath, getRewriteRules, getSelect, getSplittedContent, getSplittedDictionaryContent, getTranslation, getVariantIds, html, i18nextToIntlayerFormatter, icuToIntlayerFormatter, inlineRegex, insertion as insert, insertContentInDictionary, insertionPlugin, interpolateMessage, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToPortableObjectFormatter, intlayerToVueI18nFormatter, isInterpolableWrapperNode, isLocaleExclusiveOnDomain, isProxyStorageLocaleEnabled, isQualifiedDictionaryGroup, isQualifiedDynamicLoaderMap, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, mergeQualifiedDictionaries, navigatePath, nesting as nest, nestedPlugin, normalizeAttributeKey, normalizeDictionaries, normalizeDictionary, normalizePath, normalizeWhitespace, number, orderDictionaries, parseBlock, parseCaptureInline, parseDictionarySelector, parseInline, parseMarkdown, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parseTaggedMessage, parseYaml, parserFor, percentage, plural, pluralPlugin, portableObjectToIntlayerFormatter, presets, qualifies, rebuildInterpolableContent, reconstructQualifiedEntry, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, renderFor, renderMarkdownAst, renderNothing, resolveDictionaryArgument, resolveEffectiveVariantId, resolveMessage, resolveMessageNode, resolveProviderVariant, resolveProxyMode, resolveQualifiedDictionary, resolveQualifiedDynamicContent, resolveQualifiedDynamicContentAsync, sanitizer, select, selectPlugin, serializeVariant, serializeVariantChain, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, simpleInlineRegex, slugify, some, splitInsertionTemplate, startsWith, stringifyYaml, translation as t, transformInterpolableNode, translationPlugin, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, units, unquote, updateNodeChildren, validateHTML, validateMarkdown, validatePrefix, vueI18nToIntlayerFormatter };
120
+ export { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, type BlockQuoteNode, type BoldTextNode, type BreakLineNode, type BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, COMPOSITE_ID_SEPARATOR, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, CachedIntl, CachedIntl as Intl, type CodeBlockNode, type CodeFencedNode, type CodeInlineNode, type CompileOptions, type ComponentOverrides, ConditionCond, ConditionContent, ConditionContentStates, CookieBuildAttributes, type CustomComponentNode, DEFAULT_VARIANT_ID, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, DateTimePreset, DeepTransformContent, DotPath, DynamicDictionaryLoader, type ElementType, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, type EscapedTextNode, FENCE_DELIMITER_R, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, FileCond, type FileContent, type FileContentConstructor, type FootnoteNode, type FootnoteReferenceNode, type GFMTaskNode, GFM_TASK_R, Gender, GenderCond, GenderContent, GenderContentStates, type GenerateSitemapOptions, GetNestingResult, type GetPrefixOptions, type GetPrefixResult, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, type HTMLCommentNode, HTMLContent, HTMLContentConstructor, type HTMLNode, type HTMLSelfClosingNode, type HTMLTag, HTMLTagsType, HTMLValidationIssue, HTMLValidationResult, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, HTML_TAGS, type HeadingNode, type HeadingSetextNode, IInterpreterPlugin, IInterpreterPluginState, INLINE_SKIP_R, INTERPOLATION_R, type ImageNode, InsertionCond, InsertionContent, InsertionContentConstructor, InterpolableNode, IntlConstructorName, IsAny, type ItalicTextNode, JsonValue, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, type LinkAngleBraceNode, type LinkBareURLNode, type LinkNode, ListType, type LocaleDomainMap, LocaleStorage, LocaleStorageClient, LocaleStorageClientOptions, LocaleStorageOptions, LocaleStorageServer, LocaleStorageServerOptions, type LocalizedPathResult, MarkdownContent, MarkdownContentConstructor, type MarkdownContext, type MarkdownOptions, MarkdownReferences, type MarkdownRuntime, type HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, type MarkedTextNode, MessageFormatDialect, MessageValues, NAMED_CODES_TO_UNICODE, NP_TABLE_R, NestedCond, NestedContent, NestedContentState, NestedFieldReferences, type NestedParser, type NewlineNode, NodeProps, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, type OrderedListNode, PARAGRAPH_R, PRELOADED_DYNAMIC_KEY, type ParagraphNode, type ParseState, ParsedMarkdown, type Parser, type ParserResult, Plugins, PluralCategory, PluralCond, PluralContent, PluralContentState, PortableObject, PreloadableDynamicLoaderMap, PreloadedDynamicEntry, Priority, PriorityValue, type ProxyMode, QUALIFIER_DYNAMIC_TYPES_KEY, QUALIFIER_ORDER, QualifiedDynamicLoaderMap, QualifiedDynamicLoaderTree, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, type ReferenceImageNode, type ReferenceLinkNode, type ReferenceNode, type RenderRuleHook, type Rule, type RuleOutput, RuleType, RuleTypeValue, type Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, SelectCond, SelectContent, SelectContentStates, SelectSelector, type SitemapUrlEntry, type StrikethroughTextNode, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, type TableNode, type TableSeparatorNode, TaggedMessageToken, type TextNode, TranslationCond, TranslationContent, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, UnionKeys, type UnorderedListNode, VOID_HTML_ELEMENTS, ValidDotPathsFor, ValueAtKey, WrappedIntl, YamlRecord, YamlValue, allowInline, anyScopeRegex, attributeValueToNodePropValue, bindIntl, blockRegex, buildMaskPlugin, captureNothing, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, comparePaths, compile, compileWithOptions, condition as cond, conditionPlugin, createCompiler, createRenderer, currency, cx, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, fallbackPlugin, type file, type fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, formatProxyEnabledMessage, gender, genderPlugin, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, generateSitemap, generateSitemapUrl, get, getBasePlugins, getBrowserLocale, getCachedIntl, getCanonicalPath, getCondition, getContent, getContentNodeByKeyPath, getCookie, getDefaultNode, getDictionary, getDictionaryCompositeIds, getDictionaryQualifierIds, getDictionaryQualifierTypes, getDictionarySelectorCacheKey, getDomainHostname, getDomainOrigin, getEditedContent, getEditedDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getGender, getHTML, getHTMLTextDir, getInsertion, getInsertionValues, getInternalPath, getInterpolableContent, getIntlayer, getLocale, getLocaleFromDomain, getLocaleFromPath, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNestedDictionaryGraph, getNestedDictionaryKeys, getNestedDictionaryReferences, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPlural, getPrefix, getPreloadLocale, getPreloadedDictionary, getReplacedValuesContent, getRewritePath, getRewriteRules, getSelect, getSplittedContent, getSplittedDictionaryContent, getTranslation, getVariantIds, html, i18nextToIntlayerFormatter, icuToIntlayerFormatter, inlineRegex, insertion as insert, insertContentInDictionary, insertionPlugin, interpolateMessage, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToPortableObjectFormatter, intlayerToVueI18nFormatter, isDeclaredLocale, isInterpolableWrapperNode, isLocaleExclusiveOnDomain, isProxyStorageLocaleEnabled, isQualifiedDictionaryGroup, isQualifiedDynamicLoaderMap, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, mergeQualifiedDictionaries, navigatePath, nesting as nest, nestedPlugin, normalizeAttributeKey, normalizeDictionaries, normalizeDictionary, normalizePath, normalizeWhitespace, number, orderDictionaries, parseBlock, parseCaptureInline, parseDictionarySelector, parseInline, parseMarkdown, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parseTaggedMessage, parseYaml, parserFor, percentage, plural, pluralPlugin, portableObjectToIntlayerFormatter, presets, qualifies, rebuildInterpolableContent, reconstructQualifiedEntry, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, renderFor, renderMarkdownAst, renderNothing, resolveBrowserLocale, resolveDictionaryArgument, resolveEffectiveVariantId, resolveLocalizedPath, resolveMessage, resolveMessageNode, resolveProviderVariant, resolveProxyMode, resolveQualifiedDictionary, resolveQualifiedDynamicContent, resolveQualifiedDynamicContentAsync, sanitizer, select, selectPlugin, serializeVariant, serializeVariantChain, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, simpleInlineRegex, slugify, some, splitInsertionTemplate, startsWith, stringifyYaml, translation as t, transformInterpolableNode, translationPlugin, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, units, unquote, updateNodeChildren, validateHTML, validateMarkdown, validatePrefix, vueI18nToIntlayerFormatter };
@@ -1,6 +1,6 @@
1
1
  import { PluralContentState } from "../transpiler/plural/plural.js";
2
+ import { LocalesValues } from "../intlayer/dist/types/index.js";
2
3
  import { DeclaredLocales } from "@intlayer/types";
3
- import { LocalesValues } from "intlayer";
4
4
  //#region src/interpreter/getPlural.d.ts
5
5
  /**
6
6
  * Picks content from a plural map based on a count and locale, using CLDR
@@ -0,0 +1,14 @@
1
+ import "../../../@intlayer/core/dist/types/transpiler/file/file.js";
2
+ import "../../../@intlayer/core/dist/types/formatters/index.js";
3
+ import "../../../@intlayer/core/dist/types/transpiler/index.js";
4
+ import "../../../@intlayer/core/dist/types/interpreter/index.js";
5
+ import "../../../@intlayer/core/dist/types/localization/index.js";
6
+ import "../../../@intlayer/core/dist/types/markdown/index.js";
7
+ import "../../../@intlayer/core/dist/types/utils/index.js";
8
+ import { Dictionary } from "@intlayer/types/dictionary";
9
+ import { LocalesValues as LocalesValues$1 } from "@intlayer/types/module_augmentation";
10
+ import "@intlayer/types/allLocales";
11
+ import { IntlayerConfig } from "@intlayer/types/config";
12
+ import "@intlayer/types/locales";
13
+ import "@intlayer/config/built";
14
+ export type { LocalesValues$1 as LocalesValues };
@@ -1,5 +1,4 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
2
- import { Locale } from "@intlayer/types/allLocales";
1
+ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
3
2
  import { RoutingConfig } from "@intlayer/types/config";
4
3
  //#region src/localization/domainUtils.d.ts
5
4
  /**
@@ -52,7 +51,7 @@ declare const getDomainOrigin: (domain: string) => string;
52
51
  * @param domains - The configured locale → domain map.
53
52
  * @returns The exclusively mapped locale, or `undefined`.
54
53
  */
55
- declare const getLocaleFromDomain: (hostname: string, domains: LocaleDomainMap) => Locale | undefined;
54
+ declare const getLocaleFromDomain: (hostname: string, domains: LocaleDomainMap) => DeclaredLocales | undefined;
56
55
  /**
57
56
  * Checks whether a locale is the only locale mapped to its configured domain.
58
57
  * When true, the domain alone identifies the locale and no URL prefix is needed.
@@ -1 +1 @@
1
- {"version":3,"file":"domainUtils.d.ts","names":[],"sources":["../../../src/localization/domainUtils.ts"],"mappings":";;;;;;;;KAQY,kBAAkB;;;;;;;;;;;;;;cAejB,oBAAiB;;;;;;;;;;;;;;;cAsBjB,kBAAe;;;;;;;;;;;;;;;;;cAmBf,sBAAmB,kBACd,SACP,oBACR;;;;;;;;;;;cAuBU,4BAAyB,QAC5B,eAAa,SACZ"}
1
+ {"version":3,"file":"domainUtils.d.ts","names":[],"sources":["../../../src/localization/domainUtils.ts"],"mappings":";;;;;;;KAUY,kBAAkB;;;;;;;;;;;;;;cAejB,oBAAiB;;;;;;;;;;;;;;;cAsBjB,kBAAe;;;;;;;;;;;;;;;;;cAmBf,sBAAmB,kBACd,SACP,oBACR;;;;;;;;;;;cAuBU,4BAAyB,QAC5B,eAAa,SACZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"getHTMLTextDir.d.ts","names":[],"sources":["../../../src/localization/getHTMLTextDir.ts"],"mappings":";;KAEK;;;;;;;;;;;;;;cAeQ,iBAAc,SAAa,kBAAgB"}
1
+ {"version":3,"file":"getHTMLTextDir.d.ts","names":[],"sources":["../../../src/localization/getHTMLTextDir.ts"],"mappings":";;KAEK;;;;;;;;;;;;;;cA0BQ,iBAAc,SAAa,kBAAgB"}
@@ -1,10 +1,10 @@
1
- import { Locale } from "@intlayer/types/allLocales";
1
+ import { DeclaredLocales } from "@intlayer/types/module_augmentation";
2
2
  //#region src/localization/getLocale.d.ts
3
3
  type RequestContext = {
4
4
  getHeader?: (name: string) => string | null | undefined;
5
5
  getCookie?: (name: string) => string | null | undefined;
6
6
  };
7
- declare const getLocale: (ctx?: RequestContext) => Promise<Locale>;
7
+ declare const getLocale: (ctx?: RequestContext) => Promise<DeclaredLocales>;
8
8
  //#endregion
9
9
  export { RequestContext, getLocale };
10
10
  //# sourceMappingURL=getLocale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLocale.d.ts","names":[],"sources":["../../../src/localization/getLocale.ts"],"mappings":";;KAOY;EACV,aAAa;EACb,aAAa;;cAGF,YAAS,MAAe,mBAAsB,QAAQ"}
1
+ {"version":3,"file":"getLocale.d.ts","names":[],"sources":["../../../src/localization/getLocale.ts"],"mappings":";;KAOY;EACV,aAAa;EACb,aAAa;;cAGF,YAAS,MACf,mBACJ,QAAQ"}
@@ -1,5 +1,5 @@
1
1
  import { RoutingOptions } from "./getPrefix.js";
2
- import { Locale } from "@intlayer/types/allLocales";
2
+ import { DeclaredLocales } from "@intlayer/types/module_augmentation";
3
3
  //#region src/localization/getLocaleFromPath.d.ts
4
4
  /**
5
5
  * Extracts the locale segment from the given URL or pathname based on the routing mode.
@@ -13,7 +13,7 @@ import { Locale } from "@intlayer/types/allLocales";
13
13
  * @param inputUrl - The complete URL string or pathname to process.
14
14
  * @returns The detected locale, default locale (if fallback/implicit), or undefined.
15
15
  */
16
- declare const getLocaleFromPath: (inputUrl?: string, options?: RoutingOptions) => Locale | undefined;
16
+ declare const getLocaleFromPath: (inputUrl?: string, options?: RoutingOptions) => DeclaredLocales | undefined;
17
17
  //#endregion
18
18
  export { getLocaleFromPath };
19
19
  //# sourceMappingURL=getLocaleFromPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLocaleFromPath.d.ts","names":[],"sources":["../../../src/localization/getLocaleFromPath.ts"],"mappings":";;;;;;;;;;;;;;;cAgBa,oBAAiB,mBACZ,UACN,mBACT"}
1
+ {"version":3,"file":"getLocaleFromPath.d.ts","names":[],"sources":["../../../src/localization/getLocaleFromPath.ts"],"mappings":";;;;;;;;;;;;;;;cAoBa,oBAAiB,mBACZ,UACN,mBACT"}