@intlayer/core 8.4.4 → 8.4.6

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 (780) hide show
  1. package/dist/cjs/_virtual/_rolldown/runtime.cjs +29 -0
  2. package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +213 -1
  3. package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs.map +1 -1
  4. package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +95 -1
  5. package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs.map +1 -1
  6. package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +46 -1
  7. package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -1
  8. package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs +33 -1
  9. package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs.map +1 -1
  10. package/dist/cjs/deepTransformPlugins/getMaskContent.cjs +27 -1
  11. package/dist/cjs/deepTransformPlugins/getMaskContent.cjs.map +1 -1
  12. package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +151 -1
  13. package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs.map +1 -1
  14. package/dist/cjs/deepTransformPlugins/getMultilingualDictionary.cjs +87 -1
  15. package/dist/cjs/deepTransformPlugins/getMultilingualDictionary.cjs.map +1 -1
  16. package/dist/cjs/deepTransformPlugins/getReplacedValuesContent.cjs +60 -1
  17. package/dist/cjs/deepTransformPlugins/getReplacedValuesContent.cjs.map +1 -1
  18. package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs +123 -1
  19. package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs.map +1 -1
  20. package/dist/cjs/deepTransformPlugins/index.cjs +32 -1
  21. package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +107 -1
  22. package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs.map +1 -1
  23. package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +65 -1
  24. package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -1
  25. package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +19 -1
  26. package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
  27. package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +56 -1
  28. package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs.map +1 -1
  29. package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +27 -1
  30. package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs.map +1 -1
  31. package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +24 -1
  32. package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs.map +1 -1
  33. package/dist/cjs/dictionaryManipulator/getNodeType.cjs +55 -1
  34. package/dist/cjs/dictionaryManipulator/getNodeType.cjs.map +1 -1
  35. package/dist/cjs/dictionaryManipulator/index.cjs +27 -1
  36. package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +69 -1
  37. package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs.map +1 -1
  38. package/dist/cjs/dictionaryManipulator/normalizeDictionary.cjs +30 -1
  39. package/dist/cjs/dictionaryManipulator/normalizeDictionary.cjs.map +1 -1
  40. package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs +48 -1
  41. package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs.map +1 -1
  42. package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +32 -1
  43. package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs.map +1 -1
  44. package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +40 -1
  45. package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs.map +1 -1
  46. package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +39 -1
  47. package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs.map +1 -1
  48. package/dist/cjs/formatters/compact.cjs +25 -1
  49. package/dist/cjs/formatters/compact.cjs.map +1 -1
  50. package/dist/cjs/formatters/currency.cjs +29 -1
  51. package/dist/cjs/formatters/currency.cjs.map +1 -1
  52. package/dist/cjs/formatters/date.cjs +60 -1
  53. package/dist/cjs/formatters/date.cjs.map +1 -1
  54. package/dist/cjs/formatters/index.cjs +23 -1
  55. package/dist/cjs/formatters/list.cjs +30 -1
  56. package/dist/cjs/formatters/list.cjs.map +1 -1
  57. package/dist/cjs/formatters/number.cjs +20 -1
  58. package/dist/cjs/formatters/number.cjs.map +1 -1
  59. package/dist/cjs/formatters/percentage.cjs +27 -1
  60. package/dist/cjs/formatters/percentage.cjs.map +1 -1
  61. package/dist/cjs/formatters/relativeTime.cjs +43 -1
  62. package/dist/cjs/formatters/relativeTime.cjs.map +1 -1
  63. package/dist/cjs/formatters/units.cjs +23 -1
  64. package/dist/cjs/formatters/units.cjs.map +1 -1
  65. package/dist/cjs/getStorageAttributes.cjs +134 -1
  66. package/dist/cjs/getStorageAttributes.cjs.map +1 -1
  67. package/dist/cjs/index.cjs +315 -1
  68. package/dist/cjs/interpreter/getCondition.cjs +27 -1
  69. package/dist/cjs/interpreter/getCondition.cjs.map +1 -1
  70. package/dist/cjs/interpreter/getContent/deepTransform.cjs +42 -1
  71. package/dist/cjs/interpreter/getContent/deepTransform.cjs.map +1 -1
  72. package/dist/cjs/interpreter/getContent/getContent.cjs +32 -1
  73. package/dist/cjs/interpreter/getContent/getContent.cjs.map +1 -0
  74. package/dist/cjs/interpreter/getContent/index.cjs +15 -1
  75. package/dist/cjs/interpreter/getContent/plugins.cjs +163 -1
  76. package/dist/cjs/interpreter/getContent/plugins.cjs.map +1 -0
  77. package/dist/cjs/interpreter/getDictionary.cjs +25 -1
  78. package/dist/cjs/interpreter/getDictionary.cjs.map +1 -0
  79. package/dist/cjs/interpreter/getEnumeration.cjs +72 -1
  80. package/dist/cjs/interpreter/getEnumeration.cjs.map +1 -1
  81. package/dist/cjs/interpreter/getGender.cjs +38 -1
  82. package/dist/cjs/interpreter/getGender.cjs.map +1 -1
  83. package/dist/cjs/interpreter/getHTML.cjs +124 -1
  84. package/dist/cjs/interpreter/getHTML.cjs.map +1 -1
  85. package/dist/cjs/interpreter/getInsertion.cjs +22 -1
  86. package/dist/cjs/interpreter/getInsertion.cjs.map +1 -1
  87. package/dist/cjs/interpreter/getIntlayer.cjs +41 -1
  88. package/dist/cjs/interpreter/getIntlayer.cjs.map +1 -0
  89. package/dist/cjs/interpreter/getNesting.cjs +37 -1
  90. package/dist/cjs/interpreter/getNesting.cjs.map +1 -0
  91. package/dist/cjs/interpreter/getTranslation.cjs +87 -1
  92. package/dist/cjs/interpreter/getTranslation.cjs.map +1 -1
  93. package/dist/cjs/interpreter/index.cjs +32 -1
  94. package/dist/cjs/interpreter/splitAndJoinInsertion.cjs +55 -1
  95. package/dist/cjs/interpreter/splitAndJoinInsertion.cjs.map +1 -1
  96. package/dist/cjs/localization/getBrowserLocale.cjs +143 -1
  97. package/dist/cjs/localization/getBrowserLocale.cjs.map +1 -1
  98. package/dist/cjs/localization/getHTMLTextDir.cjs +40 -1
  99. package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
  100. package/dist/cjs/localization/getLocale.cjs +27 -1
  101. package/dist/cjs/localization/getLocale.cjs.map +1 -1
  102. package/dist/cjs/localization/getLocaleFromPath.cjs +36 -1
  103. package/dist/cjs/localization/getLocaleFromPath.cjs.map +1 -1
  104. package/dist/cjs/localization/getLocaleLang.cjs +20 -1
  105. package/dist/cjs/localization/getLocaleLang.cjs.map +1 -1
  106. package/dist/cjs/localization/getLocaleName.cjs +10 -1
  107. package/dist/cjs/localization/getLocaleName.cjs.map +1 -1
  108. package/dist/cjs/localization/getLocalizedUrl.cjs +73 -1
  109. package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
  110. package/dist/cjs/localization/getMultilingualUrls.cjs +46 -1
  111. package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
  112. package/dist/cjs/localization/getPathWithoutLocale.cjs +55 -1
  113. package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
  114. package/dist/cjs/localization/getPrefix.cjs +73 -1
  115. package/dist/cjs/localization/getPrefix.cjs.map +1 -1
  116. package/dist/cjs/localization/index.cjs +41 -1
  117. package/dist/cjs/localization/localeDetector.cjs +133 -1
  118. package/dist/cjs/localization/localeDetector.cjs.map +1 -1
  119. package/dist/cjs/localization/localeMapper.cjs +124 -1
  120. package/dist/cjs/localization/localeMapper.cjs.map +1 -1
  121. package/dist/cjs/localization/localeResolver.cjs +28 -1
  122. package/dist/cjs/localization/localeResolver.cjs.map +1 -1
  123. package/dist/cjs/localization/rewriteUtils.cjs +110 -1
  124. package/dist/cjs/localization/rewriteUtils.cjs.map +1 -1
  125. package/dist/cjs/localization/validatePrefix.cjs +45 -1
  126. package/dist/cjs/localization/validatePrefix.cjs.map +1 -1
  127. package/dist/cjs/markdown/compiler.cjs +810 -10
  128. package/dist/cjs/markdown/compiler.cjs.map +1 -1
  129. package/dist/cjs/markdown/constants.cjs +328 -1
  130. package/dist/cjs/markdown/constants.cjs.map +1 -1
  131. package/dist/cjs/markdown/index.cjs +126 -1
  132. package/dist/cjs/markdown/parser.cjs +66 -1
  133. package/dist/cjs/markdown/parser.cjs.map +1 -1
  134. package/dist/cjs/markdown/renderer.cjs +61 -1
  135. package/dist/cjs/markdown/renderer.cjs.map +1 -1
  136. package/dist/cjs/markdown/utils.cjs +391 -6
  137. package/dist/cjs/markdown/utils.cjs.map +1 -1
  138. package/dist/cjs/messageFormat/ICU.cjs +334 -1
  139. package/dist/cjs/messageFormat/ICU.cjs.map +1 -1
  140. package/dist/cjs/messageFormat/i18next.cjs +345 -1
  141. package/dist/cjs/messageFormat/i18next.cjs.map +1 -1
  142. package/dist/cjs/messageFormat/index.cjs +11 -1
  143. package/dist/cjs/messageFormat/verify-icu-format.cjs +64 -2
  144. package/dist/cjs/messageFormat/verify-icu-format.cjs.map +1 -1
  145. package/dist/cjs/messageFormat/vue-i18n.cjs +181 -1
  146. package/dist/cjs/messageFormat/vue-i18n.cjs.map +1 -1
  147. package/dist/cjs/transpiler/condition/condition.cjs +26 -1
  148. package/dist/cjs/transpiler/condition/condition.cjs.map +1 -1
  149. package/dist/cjs/transpiler/condition/index.cjs +4 -1
  150. package/dist/cjs/transpiler/enumeration/enumeration.cjs +28 -1
  151. package/dist/cjs/transpiler/enumeration/enumeration.cjs.map +1 -1
  152. package/dist/cjs/transpiler/enumeration/index.cjs +4 -1
  153. package/dist/cjs/transpiler/file/file.cjs +51 -1
  154. package/dist/cjs/transpiler/file/file.cjs.map +1 -1
  155. package/dist/cjs/transpiler/file/fileBrowser.cjs +24 -1
  156. package/dist/cjs/transpiler/file/fileBrowser.cjs.map +1 -1
  157. package/dist/cjs/transpiler/file/index.cjs +5 -1
  158. package/dist/cjs/transpiler/gender/gender.cjs +26 -1
  159. package/dist/cjs/transpiler/gender/gender.cjs.map +1 -1
  160. package/dist/cjs/transpiler/gender/index.cjs +4 -1
  161. package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs +45 -1
  162. package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs.map +1 -0
  163. package/dist/cjs/transpiler/html/html.cjs +44 -1
  164. package/dist/cjs/transpiler/html/html.cjs.map +1 -0
  165. package/dist/cjs/transpiler/html/htmlTags.cjs +116 -1
  166. package/dist/cjs/transpiler/html/htmlTags.cjs.map +1 -1
  167. package/dist/cjs/transpiler/html/index.cjs +9 -1
  168. package/dist/cjs/transpiler/html/validateHTML.cjs +65 -1
  169. package/dist/cjs/transpiler/html/validateHTML.cjs.map +1 -1
  170. package/dist/cjs/transpiler/index.cjs +29 -1
  171. package/dist/cjs/transpiler/insertion/getInsertionValues.cjs +11 -1
  172. package/dist/cjs/transpiler/insertion/getInsertionValues.cjs.map +1 -1
  173. package/dist/cjs/transpiler/insertion/index.cjs +6 -1
  174. package/dist/cjs/transpiler/insertion/insertion.cjs +36 -1
  175. package/dist/cjs/transpiler/insertion/insertion.cjs.map +1 -1
  176. package/dist/cjs/transpiler/markdown/getMarkdownMetadata.cjs +23 -2
  177. package/dist/cjs/transpiler/markdown/getMarkdownMetadata.cjs.map +1 -1
  178. package/dist/cjs/transpiler/markdown/index.cjs +8 -1
  179. package/dist/cjs/transpiler/markdown/markdown.cjs +62 -1
  180. package/dist/cjs/transpiler/markdown/markdown.cjs.map +1 -1
  181. package/dist/cjs/transpiler/markdown/validateMarkdown.cjs +74 -4
  182. package/dist/cjs/transpiler/markdown/validateMarkdown.cjs.map +1 -1
  183. package/dist/cjs/transpiler/nesting/index.cjs +4 -1
  184. package/dist/cjs/transpiler/nesting/nesting.cjs +27 -1
  185. package/dist/cjs/transpiler/nesting/nesting.cjs.map +1 -1
  186. package/dist/cjs/transpiler/translation/index.cjs +4 -1
  187. package/dist/cjs/transpiler/translation/translation.cjs +29 -1
  188. package/dist/cjs/transpiler/translation/translation.cjs.map +1 -1
  189. package/dist/cjs/utils/checkIsURLAbsolute.cjs +7 -1
  190. package/dist/cjs/utils/checkIsURLAbsolute.cjs.map +1 -1
  191. package/dist/cjs/utils/getCookie.cjs +32 -1
  192. package/dist/cjs/utils/getCookie.cjs.map +1 -1
  193. package/dist/cjs/utils/index.cjs +21 -1
  194. package/dist/cjs/utils/intl.cjs +91 -1
  195. package/dist/cjs/utils/intl.cjs.map +1 -1
  196. package/dist/cjs/utils/isSameKeyPath.cjs +7 -1
  197. package/dist/cjs/utils/isSameKeyPath.cjs.map +1 -1
  198. package/dist/cjs/utils/isValidReactElement.cjs +14 -1
  199. package/dist/cjs/utils/isValidReactElement.cjs.map +1 -1
  200. package/dist/cjs/utils/localeStorage.cjs +140 -1
  201. package/dist/cjs/utils/localeStorage.cjs.map +1 -1
  202. package/dist/cjs/utils/parseYaml.cjs +322 -16
  203. package/dist/cjs/utils/parseYaml.cjs.map +1 -1
  204. package/dist/esm/deepTransformPlugins/getFilterMissingTranslationsContent.mjs +207 -1
  205. package/dist/esm/deepTransformPlugins/getFilterMissingTranslationsContent.mjs.map +1 -1
  206. package/dist/esm/deepTransformPlugins/getFilterTranslationsOnlyContent.mjs +89 -1
  207. package/dist/esm/deepTransformPlugins/getFilterTranslationsOnlyContent.mjs.map +1 -1
  208. package/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +42 -1
  209. package/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs.map +1 -1
  210. package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +31 -1
  211. package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -1
  212. package/dist/esm/deepTransformPlugins/getMaskContent.mjs +25 -1
  213. package/dist/esm/deepTransformPlugins/getMaskContent.mjs.map +1 -1
  214. package/dist/esm/deepTransformPlugins/getMissingLocalesContent.mjs +145 -1
  215. package/dist/esm/deepTransformPlugins/getMissingLocalesContent.mjs.map +1 -1
  216. package/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs +86 -1
  217. package/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs.map +1 -1
  218. package/dist/esm/deepTransformPlugins/getReplacedValuesContent.mjs +59 -1
  219. package/dist/esm/deepTransformPlugins/getReplacedValuesContent.mjs.map +1 -1
  220. package/dist/esm/deepTransformPlugins/getSplittedContent.mjs +119 -1
  221. package/dist/esm/deepTransformPlugins/getSplittedContent.mjs.map +1 -1
  222. package/dist/esm/deepTransformPlugins/index.mjs +12 -1
  223. package/dist/esm/deepTransformPlugins/insertContentInDictionary.mjs +104 -1
  224. package/dist/esm/deepTransformPlugins/insertContentInDictionary.mjs.map +1 -1
  225. package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs +62 -1
  226. package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs.map +1 -1
  227. package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs +16 -1
  228. package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs.map +1 -1
  229. package/dist/esm/dictionaryManipulator/getDefaultNode.mjs +53 -1
  230. package/dist/esm/dictionaryManipulator/getDefaultNode.mjs.map +1 -1
  231. package/dist/esm/dictionaryManipulator/getEmptyNode.mjs +24 -1
  232. package/dist/esm/dictionaryManipulator/getEmptyNode.mjs.map +1 -1
  233. package/dist/esm/dictionaryManipulator/getNodeChildren.mjs +21 -1
  234. package/dist/esm/dictionaryManipulator/getNodeChildren.mjs.map +1 -1
  235. package/dist/esm/dictionaryManipulator/getNodeType.mjs +52 -1
  236. package/dist/esm/dictionaryManipulator/getNodeType.mjs.map +1 -1
  237. package/dist/esm/dictionaryManipulator/index.mjs +14 -1
  238. package/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +66 -1
  239. package/dist/esm/dictionaryManipulator/mergeDictionaries.mjs.map +1 -1
  240. package/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +28 -1
  241. package/dist/esm/dictionaryManipulator/normalizeDictionary.mjs.map +1 -1
  242. package/dist/esm/dictionaryManipulator/orderDictionaries.mjs +45 -1
  243. package/dist/esm/dictionaryManipulator/orderDictionaries.mjs.map +1 -1
  244. package/dist/esm/dictionaryManipulator/removeContentNodeByKeyPath.mjs +29 -1
  245. package/dist/esm/dictionaryManipulator/removeContentNodeByKeyPath.mjs.map +1 -1
  246. package/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs +37 -1
  247. package/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs.map +1 -1
  248. package/dist/esm/dictionaryManipulator/updateNodeChildren.mjs +36 -1
  249. package/dist/esm/dictionaryManipulator/updateNodeChildren.mjs.map +1 -1
  250. package/dist/esm/formatters/compact.mjs +22 -1
  251. package/dist/esm/formatters/compact.mjs.map +1 -1
  252. package/dist/esm/formatters/currency.mjs +26 -1
  253. package/dist/esm/formatters/currency.mjs.map +1 -1
  254. package/dist/esm/formatters/date.mjs +57 -1
  255. package/dist/esm/formatters/date.mjs.map +1 -1
  256. package/dist/esm/formatters/index.mjs +11 -1
  257. package/dist/esm/formatters/list.mjs +27 -1
  258. package/dist/esm/formatters/list.mjs.map +1 -1
  259. package/dist/esm/formatters/number.mjs +17 -1
  260. package/dist/esm/formatters/number.mjs.map +1 -1
  261. package/dist/esm/formatters/percentage.mjs +24 -1
  262. package/dist/esm/formatters/percentage.mjs.map +1 -1
  263. package/dist/esm/formatters/relativeTime.mjs +40 -1
  264. package/dist/esm/formatters/relativeTime.mjs.map +1 -1
  265. package/dist/esm/formatters/units.mjs +20 -1
  266. package/dist/esm/formatters/units.mjs.map +1 -1
  267. package/dist/esm/getStorageAttributes.mjs +132 -1
  268. package/dist/esm/getStorageAttributes.mjs.map +1 -1
  269. package/dist/esm/index.mjs +87 -1
  270. package/dist/esm/interpreter/getCondition.mjs +25 -1
  271. package/dist/esm/interpreter/getCondition.mjs.map +1 -1
  272. package/dist/esm/interpreter/getContent/deepTransform.mjs +39 -1
  273. package/dist/esm/interpreter/getContent/deepTransform.mjs.map +1 -1
  274. package/dist/esm/interpreter/getContent/getContent.mjs +28 -1
  275. package/dist/esm/interpreter/getContent/getContent.mjs.map +1 -0
  276. package/dist/esm/interpreter/getContent/index.mjs +5 -1
  277. package/dist/esm/interpreter/getContent/plugins.mjs +154 -1
  278. package/dist/esm/interpreter/getContent/plugins.mjs.map +1 -0
  279. package/dist/esm/interpreter/getDictionary.mjs +24 -1
  280. package/dist/esm/interpreter/getDictionary.mjs.map +1 -0
  281. package/dist/esm/interpreter/getEnumeration.mjs +69 -1
  282. package/dist/esm/interpreter/getEnumeration.mjs.map +1 -1
  283. package/dist/esm/interpreter/getGender.mjs +36 -1
  284. package/dist/esm/interpreter/getGender.mjs.map +1 -1
  285. package/dist/esm/interpreter/getHTML.mjs +122 -1
  286. package/dist/esm/interpreter/getHTML.mjs.map +1 -1
  287. package/dist/esm/interpreter/getInsertion.mjs +20 -1
  288. package/dist/esm/interpreter/getInsertion.mjs.map +1 -1
  289. package/dist/esm/interpreter/getIntlayer.mjs +37 -1
  290. package/dist/esm/interpreter/getIntlayer.mjs.map +1 -0
  291. package/dist/esm/interpreter/getNesting.mjs +36 -1
  292. package/dist/esm/interpreter/getNesting.mjs.map +1 -0
  293. package/dist/esm/interpreter/getTranslation.mjs +85 -1
  294. package/dist/esm/interpreter/getTranslation.mjs.map +1 -1
  295. package/dist/esm/interpreter/index.mjs +13 -1
  296. package/dist/esm/interpreter/splitAndJoinInsertion.mjs +53 -1
  297. package/dist/esm/interpreter/splitAndJoinInsertion.mjs.map +1 -1
  298. package/dist/esm/localization/getBrowserLocale.mjs +138 -1
  299. package/dist/esm/localization/getBrowserLocale.mjs.map +1 -1
  300. package/dist/esm/localization/getHTMLTextDir.mjs +38 -1
  301. package/dist/esm/localization/getHTMLTextDir.mjs.map +1 -1
  302. package/dist/esm/localization/getLocale.mjs +24 -1
  303. package/dist/esm/localization/getLocale.mjs.map +1 -1
  304. package/dist/esm/localization/getLocaleFromPath.mjs +35 -1
  305. package/dist/esm/localization/getLocaleFromPath.mjs.map +1 -1
  306. package/dist/esm/localization/getLocaleLang.mjs +18 -1
  307. package/dist/esm/localization/getLocaleLang.mjs.map +1 -1
  308. package/dist/esm/localization/getLocaleName.mjs +9 -1
  309. package/dist/esm/localization/getLocaleName.mjs.map +1 -1
  310. package/dist/esm/localization/getLocalizedUrl.mjs +70 -1
  311. package/dist/esm/localization/getLocalizedUrl.mjs.map +1 -1
  312. package/dist/esm/localization/getMultilingualUrls.mjs +45 -1
  313. package/dist/esm/localization/getMultilingualUrls.mjs.map +1 -1
  314. package/dist/esm/localization/getPathWithoutLocale.mjs +52 -1
  315. package/dist/esm/localization/getPathWithoutLocale.mjs.map +1 -1
  316. package/dist/esm/localization/getPrefix.mjs +69 -1
  317. package/dist/esm/localization/getPrefix.mjs.map +1 -1
  318. package/dist/esm/localization/index.mjs +18 -1
  319. package/dist/esm/localization/localeDetector.mjs +131 -1
  320. package/dist/esm/localization/localeDetector.mjs.map +1 -1
  321. package/dist/esm/localization/localeMapper.mjs +119 -1
  322. package/dist/esm/localization/localeMapper.mjs.map +1 -1
  323. package/dist/esm/localization/localeResolver.mjs +25 -1
  324. package/dist/esm/localization/localeResolver.mjs.map +1 -1
  325. package/dist/esm/localization/rewriteUtils.mjs +104 -1
  326. package/dist/esm/localization/rewriteUtils.mjs.map +1 -1
  327. package/dist/esm/localization/validatePrefix.mjs +44 -1
  328. package/dist/esm/localization/validatePrefix.mjs.map +1 -1
  329. package/dist/esm/markdown/compiler.mjs +786 -10
  330. package/dist/esm/markdown/compiler.mjs.map +1 -1
  331. package/dist/esm/markdown/constants.mjs +247 -1
  332. package/dist/esm/markdown/constants.mjs.map +1 -1
  333. package/dist/esm/markdown/index.mjs +10 -1
  334. package/dist/esm/markdown/parser.mjs +65 -1
  335. package/dist/esm/markdown/parser.mjs.map +1 -1
  336. package/dist/esm/markdown/renderer.mjs +59 -1
  337. package/dist/esm/markdown/renderer.mjs.map +1 -1
  338. package/dist/esm/markdown/utils.mjs +361 -6
  339. package/dist/esm/markdown/utils.mjs.map +1 -1
  340. package/dist/esm/messageFormat/ICU.mjs +330 -1
  341. package/dist/esm/messageFormat/ICU.mjs.map +1 -1
  342. package/dist/esm/messageFormat/i18next.mjs +341 -1
  343. package/dist/esm/messageFormat/i18next.mjs.map +1 -1
  344. package/dist/esm/messageFormat/index.mjs +5 -1
  345. package/dist/esm/messageFormat/verify-icu-format.mjs +64 -2
  346. package/dist/esm/messageFormat/verify-icu-format.mjs.map +1 -1
  347. package/dist/esm/messageFormat/vue-i18n.mjs +177 -1
  348. package/dist/esm/messageFormat/vue-i18n.mjs.map +1 -1
  349. package/dist/esm/transpiler/condition/condition.mjs +24 -1
  350. package/dist/esm/transpiler/condition/condition.mjs.map +1 -1
  351. package/dist/esm/transpiler/condition/index.mjs +3 -1
  352. package/dist/esm/transpiler/enumeration/enumeration.mjs +26 -1
  353. package/dist/esm/transpiler/enumeration/enumeration.mjs.map +1 -1
  354. package/dist/esm/transpiler/enumeration/index.mjs +3 -1
  355. package/dist/esm/transpiler/file/file.mjs +48 -1
  356. package/dist/esm/transpiler/file/file.mjs.map +1 -1
  357. package/dist/esm/transpiler/file/fileBrowser.mjs +22 -1
  358. package/dist/esm/transpiler/file/fileBrowser.mjs.map +1 -1
  359. package/dist/esm/transpiler/file/index.mjs +3 -1
  360. package/dist/esm/transpiler/gender/gender.mjs +24 -1
  361. package/dist/esm/transpiler/gender/gender.mjs.map +1 -1
  362. package/dist/esm/transpiler/gender/index.mjs +3 -1
  363. package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs +44 -1
  364. package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs.map +1 -0
  365. package/dist/esm/transpiler/html/html.mjs +42 -1
  366. package/dist/esm/transpiler/html/html.mjs.map +1 -0
  367. package/dist/esm/transpiler/html/htmlTags.mjs +114 -1
  368. package/dist/esm/transpiler/html/htmlTags.mjs.map +1 -1
  369. package/dist/esm/transpiler/html/index.mjs +5 -1
  370. package/dist/esm/transpiler/html/validateHTML.mjs +62 -1
  371. package/dist/esm/transpiler/html/validateHTML.mjs.map +1 -1
  372. package/dist/esm/transpiler/index.mjs +15 -1
  373. package/dist/esm/transpiler/insertion/getInsertionValues.mjs +9 -1
  374. package/dist/esm/transpiler/insertion/getInsertionValues.mjs.map +1 -1
  375. package/dist/esm/transpiler/insertion/index.mjs +4 -1
  376. package/dist/esm/transpiler/insertion/insertion.mjs +34 -1
  377. package/dist/esm/transpiler/insertion/insertion.mjs.map +1 -1
  378. package/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs +22 -2
  379. package/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs.map +1 -1
  380. package/dist/esm/transpiler/markdown/index.mjs +5 -1
  381. package/dist/esm/transpiler/markdown/markdown.mjs +60 -1
  382. package/dist/esm/transpiler/markdown/markdown.mjs.map +1 -1
  383. package/dist/esm/transpiler/markdown/validateMarkdown.mjs +73 -4
  384. package/dist/esm/transpiler/markdown/validateMarkdown.mjs.map +1 -1
  385. package/dist/esm/transpiler/nesting/index.mjs +3 -1
  386. package/dist/esm/transpiler/nesting/nesting.mjs +25 -1
  387. package/dist/esm/transpiler/nesting/nesting.mjs.map +1 -1
  388. package/dist/esm/transpiler/translation/index.mjs +3 -1
  389. package/dist/esm/transpiler/translation/translation.mjs +27 -1
  390. package/dist/esm/transpiler/translation/translation.mjs.map +1 -1
  391. package/dist/esm/utils/checkIsURLAbsolute.mjs +5 -1
  392. package/dist/esm/utils/checkIsURLAbsolute.mjs.map +1 -1
  393. package/dist/esm/utils/getCookie.mjs +30 -1
  394. package/dist/esm/utils/getCookie.mjs.map +1 -1
  395. package/dist/esm/utils/index.mjs +9 -1
  396. package/dist/esm/utils/intl.mjs +86 -1
  397. package/dist/esm/utils/intl.mjs.map +1 -1
  398. package/dist/esm/utils/isSameKeyPath.mjs +5 -1
  399. package/dist/esm/utils/isSameKeyPath.mjs.map +1 -1
  400. package/dist/esm/utils/isValidReactElement.mjs +12 -1
  401. package/dist/esm/utils/isValidReactElement.mjs.map +1 -1
  402. package/dist/esm/utils/localeStorage.mjs +135 -1
  403. package/dist/esm/utils/localeStorage.mjs.map +1 -1
  404. package/dist/esm/utils/parseYaml.mjs +320 -16
  405. package/dist/esm/utils/parseYaml.mjs.map +1 -1
  406. package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +50 -2
  407. package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -0
  408. package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +42 -2
  409. package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -0
  410. package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +34 -2
  411. package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -0
  412. package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +18 -2
  413. package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +1 -0
  414. package/dist/types/deepTransformPlugins/getMaskContent.d.ts +10 -2
  415. package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +1 -0
  416. package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +19 -2
  417. package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +1 -0
  418. package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts +32 -2
  419. package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts.map +1 -0
  420. package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +8 -2
  421. package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +1 -0
  422. package/dist/types/deepTransformPlugins/getSplittedContent.d.ts +43 -2
  423. package/dist/types/deepTransformPlugins/getSplittedContent.d.ts.map +1 -0
  424. package/dist/types/deepTransformPlugins/index.d.ts +10 -10
  425. package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +25 -2
  426. package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +1 -0
  427. package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +8 -2
  428. package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +1 -0
  429. package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +9 -2
  430. package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +1 -0
  431. package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +9 -2
  432. package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +1 -0
  433. package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +7 -2
  434. package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +1 -0
  435. package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +7 -2
  436. package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +1 -0
  437. package/dist/types/dictionaryManipulator/getNodeType.d.ts +8 -2
  438. package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +1 -0
  439. package/dist/types/dictionaryManipulator/index.d.ts +12 -12
  440. package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +7 -2
  441. package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +1 -0
  442. package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +9 -2
  443. package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +1 -0
  444. package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +15 -2
  445. package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +1 -0
  446. package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +8 -2
  447. package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +1 -0
  448. package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +8 -2
  449. package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +1 -0
  450. package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +7 -2
  451. package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +1 -0
  452. package/dist/types/formatters/compact.d.ts +20 -2
  453. package/dist/types/formatters/compact.d.ts.map +1 -0
  454. package/dist/types/formatters/currency.d.ts +20 -2
  455. package/dist/types/formatters/currency.d.ts.map +1 -0
  456. package/dist/types/formatters/date.d.ts +20 -2
  457. package/dist/types/formatters/date.d.ts.map +1 -0
  458. package/dist/types/formatters/index.d.ts +9 -9
  459. package/dist/types/formatters/list.d.ts +30 -2
  460. package/dist/types/formatters/list.d.ts.map +1 -0
  461. package/dist/types/formatters/number.d.ts +18 -2
  462. package/dist/types/formatters/number.d.ts.map +1 -0
  463. package/dist/types/formatters/percentage.d.ts +18 -2
  464. package/dist/types/formatters/percentage.d.ts.map +1 -0
  465. package/dist/types/formatters/relativeTime.d.ts +21 -2
  466. package/dist/types/formatters/relativeTime.d.ts.map +1 -0
  467. package/dist/types/formatters/units.d.ts +16 -2
  468. package/dist/types/formatters/units.d.ts.map +1 -0
  469. package/dist/types/getStorageAttributes.d.ts +29 -2
  470. package/dist/types/getStorageAttributes.d.ts.map +1 -0
  471. package/dist/types/index.d.ts +88 -80
  472. package/dist/types/interpreter/getCondition.d.ts +22 -2
  473. package/dist/types/interpreter/getCondition.d.ts.map +1 -0
  474. package/dist/types/interpreter/getContent/deepTransform.d.ts +12 -2
  475. package/dist/types/interpreter/getContent/deepTransform.d.ts.map +1 -0
  476. package/dist/types/interpreter/getContent/getContent.d.ts +16 -2
  477. package/dist/types/interpreter/getContent/getContent.d.ts.map +1 -0
  478. package/dist/types/interpreter/getContent/index.d.ts +3 -1
  479. package/dist/types/interpreter/getContent/plugins.d.ts +152 -2
  480. package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -0
  481. package/dist/types/interpreter/getDictionary.d.ts +17 -2
  482. package/dist/types/interpreter/getDictionary.d.ts.map +1 -0
  483. package/dist/types/interpreter/getEnumeration.d.ts +58 -2
  484. package/dist/types/interpreter/getEnumeration.d.ts.map +1 -0
  485. package/dist/types/interpreter/getGender.d.ts +1 -1
  486. package/dist/types/interpreter/getGender.d.ts.map +1 -1
  487. package/dist/types/interpreter/getHTML.d.ts +32 -2
  488. package/dist/types/interpreter/getHTML.d.ts.map +1 -0
  489. package/dist/types/interpreter/getInsertion.d.ts +1 -1
  490. package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
  491. package/dist/types/interpreter/getIntlayer.d.ts +8 -2
  492. package/dist/types/interpreter/getIntlayer.d.ts.map +1 -0
  493. package/dist/types/interpreter/getNesting.d.ts +27 -2
  494. package/dist/types/interpreter/getNesting.d.ts.map +1 -0
  495. package/dist/types/interpreter/getTranslation.d.ts +30 -2
  496. package/dist/types/interpreter/getTranslation.d.ts.map +1 -0
  497. package/dist/types/interpreter/index.d.ts +11 -4
  498. package/dist/types/interpreter/splitAndJoinInsertion.d.ts +25 -2
  499. package/dist/types/interpreter/splitAndJoinInsertion.d.ts.map +1 -0
  500. package/dist/types/localization/getBrowserLocale.d.ts +35 -2
  501. package/dist/types/localization/getBrowserLocale.d.ts.map +1 -0
  502. package/dist/types/localization/getHTMLTextDir.d.ts +21 -2
  503. package/dist/types/localization/getHTMLTextDir.d.ts.map +1 -0
  504. package/dist/types/localization/getLocale.d.ts +11 -2
  505. package/dist/types/localization/getLocale.d.ts.map +1 -0
  506. package/dist/types/localization/getLocaleFromPath.d.ts +20 -2
  507. package/dist/types/localization/getLocaleFromPath.d.ts.map +1 -0
  508. package/dist/types/localization/getLocaleLang.d.ts +20 -2
  509. package/dist/types/localization/getLocaleLang.d.ts.map +1 -0
  510. package/dist/types/localization/getLocaleName.d.ts +7 -2
  511. package/dist/types/localization/getLocaleName.d.ts.map +1 -0
  512. package/dist/types/localization/getLocalizedUrl.d.ts +44 -2
  513. package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -0
  514. package/dist/types/localization/getMultilingualUrls.d.ts +42 -2
  515. package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -0
  516. package/dist/types/localization/getPathWithoutLocale.d.ts +31 -2
  517. package/dist/types/localization/getPathWithoutLocale.d.ts.map +1 -0
  518. package/dist/types/localization/getPrefix.d.ts +83 -2
  519. package/dist/types/localization/getPrefix.d.ts.map +1 -0
  520. package/dist/types/localization/index.d.ts +16 -16
  521. package/dist/types/localization/localeDetector.d.ts +18 -2
  522. package/dist/types/localization/localeDetector.d.ts.map +1 -0
  523. package/dist/types/localization/localeMapper.d.ts +92 -2
  524. package/dist/types/localization/localeMapper.d.ts.map +1 -0
  525. package/dist/types/localization/localeResolver.d.ts +12 -2
  526. package/dist/types/localization/localeResolver.d.ts.map +1 -0
  527. package/dist/types/localization/rewriteUtils.d.ts +34 -2
  528. package/dist/types/localization/rewriteUtils.d.ts.map +1 -0
  529. package/dist/types/localization/validatePrefix.d.ts +34 -2
  530. package/dist/types/localization/validatePrefix.d.ts.map +1 -0
  531. package/dist/types/markdown/compiler.d.ts +9 -2
  532. package/dist/types/markdown/compiler.d.ts.map +1 -0
  533. package/dist/types/markdown/constants.d.ts +177 -2
  534. package/dist/types/markdown/constants.d.ts.map +1 -0
  535. package/dist/types/markdown/index.d.ts +10 -10
  536. package/dist/types/markdown/parser.d.ts +16 -2
  537. package/dist/types/markdown/parser.d.ts.map +1 -0
  538. package/dist/types/markdown/renderer.d.ts +22 -2
  539. package/dist/types/markdown/renderer.d.ts.map +1 -0
  540. package/dist/types/markdown/types.d.ts +333 -2
  541. package/dist/types/markdown/types.d.ts.map +1 -0
  542. package/dist/types/markdown/utils.d.ts +140 -2
  543. package/dist/types/markdown/utils.d.ts.map +1 -0
  544. package/dist/types/messageFormat/ICU.d.ts +11 -2
  545. package/dist/types/messageFormat/ICU.d.ts.map +1 -0
  546. package/dist/types/messageFormat/i18next.d.ts +9 -2
  547. package/dist/types/messageFormat/i18next.d.ts.map +1 -0
  548. package/dist/types/messageFormat/index.d.ts +3 -3
  549. package/dist/types/messageFormat/vue-i18n.d.ts +9 -2
  550. package/dist/types/messageFormat/vue-i18n.d.ts.map +1 -0
  551. package/dist/types/transpiler/condition/condition.d.ts +28 -2
  552. package/dist/types/transpiler/condition/condition.d.ts.map +1 -0
  553. package/dist/types/transpiler/condition/index.d.ts +1 -1
  554. package/dist/types/transpiler/enumeration/enumeration.d.ts +40 -2
  555. package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -0
  556. package/dist/types/transpiler/enumeration/index.d.ts +1 -1
  557. package/dist/types/transpiler/file/file.d.ts +28 -2
  558. package/dist/types/transpiler/file/file.d.ts.map +1 -0
  559. package/dist/types/transpiler/file/fileBrowser.d.ts +1 -1
  560. package/dist/types/transpiler/file/index.d.ts +1 -1
  561. package/dist/types/transpiler/gender/gender.d.ts +29 -2
  562. package/dist/types/transpiler/gender/gender.d.ts.map +1 -0
  563. package/dist/types/transpiler/gender/index.d.ts +1 -1
  564. package/dist/types/transpiler/html/html.d.ts +25 -2
  565. package/dist/types/transpiler/html/html.d.ts.map +1 -0
  566. package/dist/types/transpiler/html/htmlTags.d.ts +115 -2
  567. package/dist/types/transpiler/html/htmlTags.d.ts.map +1 -0
  568. package/dist/types/transpiler/html/index.d.ts +3 -3
  569. package/dist/types/transpiler/html/validateHTML.d.ts +21 -2
  570. package/dist/types/transpiler/html/validateHTML.d.ts.map +1 -0
  571. package/dist/types/transpiler/index.d.ts +15 -15
  572. package/dist/types/transpiler/insertion/getInsertionValues.d.ts +5 -2
  573. package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +1 -0
  574. package/dist/types/transpiler/insertion/index.d.ts +2 -2
  575. package/dist/types/transpiler/insertion/insertion.d.ts +23 -2
  576. package/dist/types/transpiler/insertion/insertion.d.ts.map +1 -0
  577. package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +5 -2
  578. package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +1 -0
  579. package/dist/types/transpiler/markdown/index.d.ts +4 -4
  580. package/dist/types/transpiler/markdown/markdown.d.ts +26 -2
  581. package/dist/types/transpiler/markdown/markdown.d.ts.map +1 -0
  582. package/dist/types/transpiler/markdown/validateMarkdown.d.ts +18 -3
  583. package/dist/types/transpiler/markdown/validateMarkdown.d.ts.map +1 -0
  584. package/dist/types/transpiler/nesting/index.d.ts +1 -1
  585. package/dist/types/transpiler/nesting/nesting.d.ts +49 -2
  586. package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -0
  587. package/dist/types/transpiler/translation/index.d.ts +1 -1
  588. package/dist/types/transpiler/translation/translation.d.ts +33 -2
  589. package/dist/types/transpiler/translation/translation.d.ts.map +1 -0
  590. package/dist/types/utils/checkIsURLAbsolute.d.ts +5 -2
  591. package/dist/types/utils/checkIsURLAbsolute.d.ts.map +1 -0
  592. package/dist/types/utils/getCookie.d.ts +11 -2
  593. package/dist/types/utils/getCookie.d.ts.map +1 -0
  594. package/dist/types/utils/index.d.ts +7 -7
  595. package/dist/types/utils/intl.d.ts +33 -2
  596. package/dist/types/utils/intl.d.ts.map +1 -0
  597. package/dist/types/utils/isSameKeyPath.d.ts +7 -2
  598. package/dist/types/utils/isSameKeyPath.d.ts.map +1 -0
  599. package/dist/types/utils/isValidReactElement.d.ts +12 -2
  600. package/dist/types/utils/isValidReactElement.d.ts.map +1 -0
  601. package/dist/types/utils/localeStorage.d.ts +108 -2
  602. package/dist/types/utils/localeStorage.d.ts.map +1 -0
  603. package/dist/types/utils/parseYaml.d.ts +5 -2
  604. package/dist/types/utils/parseYaml.d.ts.map +1 -0
  605. package/package.json +6 -6
  606. package/dist/cjs/chunk-Bmb41Sf3.cjs +0 -1
  607. package/dist/cjs/getContent-DrqM8pqO.cjs +0 -2
  608. package/dist/cjs/getContent-DrqM8pqO.cjs.map +0 -1
  609. package/dist/cjs/html-CZ1N-VL0.cjs +0 -2
  610. package/dist/cjs/html-CZ1N-VL0.cjs.map +0 -1
  611. package/dist/esm/getContent-DKqtIZGL.mjs +0 -2
  612. package/dist/esm/getContent-DKqtIZGL.mjs.map +0 -1
  613. package/dist/esm/html-3bo80xzx.mjs +0 -2
  614. package/dist/esm/html-3bo80xzx.mjs.map +0 -1
  615. package/dist/types/ICU-tA3ZHN5U.d.ts +0 -11
  616. package/dist/types/ICU-tA3ZHN5U.d.ts.map +0 -1
  617. package/dist/types/checkIsURLAbsolute-CTf3JFU6.d.ts +0 -5
  618. package/dist/types/checkIsURLAbsolute-CTf3JFU6.d.ts.map +0 -1
  619. package/dist/types/compact-IHXcM4pT.d.ts +0 -20
  620. package/dist/types/compact-IHXcM4pT.d.ts.map +0 -1
  621. package/dist/types/compiler-DFiAsUdH.d.ts +0 -9
  622. package/dist/types/compiler-DFiAsUdH.d.ts.map +0 -1
  623. package/dist/types/condition-BDUtoh_1.d.ts +0 -28
  624. package/dist/types/condition-BDUtoh_1.d.ts.map +0 -1
  625. package/dist/types/constants-CI_D82B1.d.ts +0 -177
  626. package/dist/types/constants-CI_D82B1.d.ts.map +0 -1
  627. package/dist/types/currency-PbMCnHep.d.ts +0 -20
  628. package/dist/types/currency-PbMCnHep.d.ts.map +0 -1
  629. package/dist/types/date-C-PI8KqU.d.ts +0 -20
  630. package/dist/types/date-C-PI8KqU.d.ts.map +0 -1
  631. package/dist/types/editDictionaryByKeyPath-BYIHcsyf.d.ts +0 -8
  632. package/dist/types/editDictionaryByKeyPath-BYIHcsyf.d.ts.map +0 -1
  633. package/dist/types/enumeration-CtuvB5Zz.d.ts +0 -40
  634. package/dist/types/enumeration-CtuvB5Zz.d.ts.map +0 -1
  635. package/dist/types/file-C3q8xvQb.d.ts +0 -28
  636. package/dist/types/file-C3q8xvQb.d.ts.map +0 -1
  637. package/dist/types/gender-Dd39Ijmf.d.ts +0 -29
  638. package/dist/types/gender-Dd39Ijmf.d.ts.map +0 -1
  639. package/dist/types/getBrowserLocale-RD_Mwv1t.d.ts +0 -35
  640. package/dist/types/getBrowserLocale-RD_Mwv1t.d.ts.map +0 -1
  641. package/dist/types/getContentNodeByKeyPath-B0Tdi5mj.d.ts +0 -9
  642. package/dist/types/getContentNodeByKeyPath-B0Tdi5mj.d.ts.map +0 -1
  643. package/dist/types/getCookie-DPOvVv_h.d.ts +0 -11
  644. package/dist/types/getCookie-DPOvVv_h.d.ts.map +0 -1
  645. package/dist/types/getDefaultNode-DQNsje2D.d.ts +0 -9
  646. package/dist/types/getDefaultNode-DQNsje2D.d.ts.map +0 -1
  647. package/dist/types/getEmptyNode-DW27TTBj.d.ts +0 -7
  648. package/dist/types/getEmptyNode-DW27TTBj.d.ts.map +0 -1
  649. package/dist/types/getFilterMissingTranslationsContent-CDNQqoy1.d.ts +0 -50
  650. package/dist/types/getFilterMissingTranslationsContent-CDNQqoy1.d.ts.map +0 -1
  651. package/dist/types/getFilterTranslationsOnlyContent-D2YgBkHn.d.ts +0 -42
  652. package/dist/types/getFilterTranslationsOnlyContent-D2YgBkHn.d.ts.map +0 -1
  653. package/dist/types/getFilteredLocalesContent-D0GP-uEg.d.ts +0 -34
  654. package/dist/types/getFilteredLocalesContent-D0GP-uEg.d.ts.map +0 -1
  655. package/dist/types/getHTML-CP6OXtdo.d.ts +0 -32
  656. package/dist/types/getHTML-CP6OXtdo.d.ts.map +0 -1
  657. package/dist/types/getHTMLTextDir-4Zh8J3x7.d.ts +0 -21
  658. package/dist/types/getHTMLTextDir-4Zh8J3x7.d.ts.map +0 -1
  659. package/dist/types/getInsertionValues-Cu9IdbuE.d.ts +0 -5
  660. package/dist/types/getInsertionValues-Cu9IdbuE.d.ts.map +0 -1
  661. package/dist/types/getLocale-B9dECUM_.d.ts +0 -11
  662. package/dist/types/getLocale-B9dECUM_.d.ts.map +0 -1
  663. package/dist/types/getLocaleFromPath-621W32QA.d.ts +0 -26
  664. package/dist/types/getLocaleFromPath-621W32QA.d.ts.map +0 -1
  665. package/dist/types/getLocaleLang-Bcan1gS4.d.ts +0 -20
  666. package/dist/types/getLocaleLang-Bcan1gS4.d.ts.map +0 -1
  667. package/dist/types/getLocaleName-CfRAD9Hc.d.ts +0 -7
  668. package/dist/types/getLocaleName-CfRAD9Hc.d.ts.map +0 -1
  669. package/dist/types/getLocalizedContent-DOncZd-0.d.ts +0 -18
  670. package/dist/types/getLocalizedContent-DOncZd-0.d.ts.map +0 -1
  671. package/dist/types/getLocalizedUrl-BbqeA3-W.d.ts +0 -49
  672. package/dist/types/getLocalizedUrl-BbqeA3-W.d.ts.map +0 -1
  673. package/dist/types/getMarkdownMetadata-Bf1S1NQ0.d.ts +0 -5
  674. package/dist/types/getMarkdownMetadata-Bf1S1NQ0.d.ts.map +0 -1
  675. package/dist/types/getMaskContent-BwLFqp7v.d.ts +0 -10
  676. package/dist/types/getMaskContent-BwLFqp7v.d.ts.map +0 -1
  677. package/dist/types/getMissingLocalesContent-BYffYcdx.d.ts +0 -19
  678. package/dist/types/getMissingLocalesContent-BYffYcdx.d.ts.map +0 -1
  679. package/dist/types/getMultilingualDictionary-DO3i1MFs.d.ts +0 -32
  680. package/dist/types/getMultilingualDictionary-DO3i1MFs.d.ts.map +0 -1
  681. package/dist/types/getMultilingualUrls-CUxYYfA4.d.ts +0 -47
  682. package/dist/types/getMultilingualUrls-CUxYYfA4.d.ts.map +0 -1
  683. package/dist/types/getNodeChildren-OT7Liqke.d.ts +0 -7
  684. package/dist/types/getNodeChildren-OT7Liqke.d.ts.map +0 -1
  685. package/dist/types/getNodeType-Cp765I26.d.ts +0 -8
  686. package/dist/types/getNodeType-Cp765I26.d.ts.map +0 -1
  687. package/dist/types/getPathWithoutLocale-B_aIR7O0.d.ts +0 -31
  688. package/dist/types/getPathWithoutLocale-B_aIR7O0.d.ts.map +0 -1
  689. package/dist/types/getPrefix-X9XKkrZD.d.ts +0 -68
  690. package/dist/types/getPrefix-X9XKkrZD.d.ts.map +0 -1
  691. package/dist/types/getReplacedValuesContent-BvL25pdt.d.ts +0 -8
  692. package/dist/types/getReplacedValuesContent-BvL25pdt.d.ts.map +0 -1
  693. package/dist/types/getSplittedContent-YD4JDMfB.d.ts +0 -43
  694. package/dist/types/getSplittedContent-YD4JDMfB.d.ts.map +0 -1
  695. package/dist/types/getStorageAttributes-CIO2xWqQ.d.ts +0 -29
  696. package/dist/types/getStorageAttributes-CIO2xWqQ.d.ts.map +0 -1
  697. package/dist/types/getTranslation-BG2Wg-af.d.ts +0 -30
  698. package/dist/types/getTranslation-BG2Wg-af.d.ts.map +0 -1
  699. package/dist/types/html-Dn6KrpJ3.d.ts +0 -25
  700. package/dist/types/html-Dn6KrpJ3.d.ts.map +0 -1
  701. package/dist/types/htmlTags-YxTtVUx6.d.ts +0 -115
  702. package/dist/types/htmlTags-YxTtVUx6.d.ts.map +0 -1
  703. package/dist/types/i18next-qY0AixrB.d.ts +0 -9
  704. package/dist/types/i18next-qY0AixrB.d.ts.map +0 -1
  705. package/dist/types/index-1CTsSKEn.d.ts +0 -1
  706. package/dist/types/index-B8xF2zGo.d.ts +0 -1
  707. package/dist/types/index-BcsOTSQF.d.ts +0 -1
  708. package/dist/types/index-BnEeKNKW.d.ts +0 -322
  709. package/dist/types/index-BnEeKNKW.d.ts.map +0 -1
  710. package/dist/types/index-Cf8zm5QQ.d.ts +0 -1
  711. package/dist/types/index-CfvILin8.d.ts +0 -1
  712. package/dist/types/index-DK_kKFOF.d.ts +0 -1
  713. package/dist/types/index-DeJa0xZp.d.ts +0 -1
  714. package/dist/types/index-Vlqtiwjx.d.ts +0 -1
  715. package/dist/types/insertContentInDictionary-DZ3UzG4K.d.ts +0 -25
  716. package/dist/types/insertContentInDictionary-DZ3UzG4K.d.ts.map +0 -1
  717. package/dist/types/insertion-M5fwK-29.d.ts +0 -23
  718. package/dist/types/insertion-M5fwK-29.d.ts.map +0 -1
  719. package/dist/types/intl-B2Ap8I5x.d.ts +0 -33
  720. package/dist/types/intl-B2Ap8I5x.d.ts.map +0 -1
  721. package/dist/types/isSameKeyPath-CkH8NdJh.d.ts +0 -7
  722. package/dist/types/isSameKeyPath-CkH8NdJh.d.ts.map +0 -1
  723. package/dist/types/isValidReactElement-BsoJ01oP.d.ts +0 -12
  724. package/dist/types/isValidReactElement-BsoJ01oP.d.ts.map +0 -1
  725. package/dist/types/list-BdjJM2Gx.d.ts +0 -30
  726. package/dist/types/list-BdjJM2Gx.d.ts.map +0 -1
  727. package/dist/types/localeDetector-BWNCQRiZ.d.ts +0 -18
  728. package/dist/types/localeDetector-BWNCQRiZ.d.ts.map +0 -1
  729. package/dist/types/localeMapper-DoAnasqf.d.ts +0 -92
  730. package/dist/types/localeMapper-DoAnasqf.d.ts.map +0 -1
  731. package/dist/types/localeResolver-bb7AWQNX.d.ts +0 -12
  732. package/dist/types/localeResolver-bb7AWQNX.d.ts.map +0 -1
  733. package/dist/types/localeStorage-CZHwY0u3.d.ts +0 -108
  734. package/dist/types/localeStorage-CZHwY0u3.d.ts.map +0 -1
  735. package/dist/types/markdown-MzfikrI1.d.ts +0 -26
  736. package/dist/types/markdown-MzfikrI1.d.ts.map +0 -1
  737. package/dist/types/mergeDictionaries-D6WUMQN5.d.ts +0 -7
  738. package/dist/types/mergeDictionaries-D6WUMQN5.d.ts.map +0 -1
  739. package/dist/types/normalizeDictionary-coviIGTW.d.ts +0 -9
  740. package/dist/types/normalizeDictionary-coviIGTW.d.ts.map +0 -1
  741. package/dist/types/number-C8izkCmU.d.ts +0 -16
  742. package/dist/types/number-C8izkCmU.d.ts.map +0 -1
  743. package/dist/types/orderDictionaries-SSCMY6qG.d.ts +0 -15
  744. package/dist/types/orderDictionaries-SSCMY6qG.d.ts.map +0 -1
  745. package/dist/types/parseYaml-D5gxutvA.d.ts +0 -5
  746. package/dist/types/parseYaml-D5gxutvA.d.ts.map +0 -1
  747. package/dist/types/parser-BVwR6Tjw.d.ts +0 -16
  748. package/dist/types/parser-BVwR6Tjw.d.ts.map +0 -1
  749. package/dist/types/percentage-BqsvW0Zw.d.ts +0 -16
  750. package/dist/types/percentage-BqsvW0Zw.d.ts.map +0 -1
  751. package/dist/types/relativeTime-mJaYEq7H.d.ts +0 -11
  752. package/dist/types/relativeTime-mJaYEq7H.d.ts.map +0 -1
  753. package/dist/types/removeContentNodeByKeyPath-CotCOOsD.d.ts +0 -8
  754. package/dist/types/removeContentNodeByKeyPath-CotCOOsD.d.ts.map +0 -1
  755. package/dist/types/renameContentNodeByKeyPath-BuyH5gOr.d.ts +0 -8
  756. package/dist/types/renameContentNodeByKeyPath-BuyH5gOr.d.ts.map +0 -1
  757. package/dist/types/renderer-C06x2Orf.d.ts +0 -22
  758. package/dist/types/renderer-C06x2Orf.d.ts.map +0 -1
  759. package/dist/types/rewriteUtils-Bd82NiGR.d.ts +0 -34
  760. package/dist/types/rewriteUtils-Bd82NiGR.d.ts.map +0 -1
  761. package/dist/types/splitAndJoinInsertion-bkuLa7o2.d.ts +0 -25
  762. package/dist/types/splitAndJoinInsertion-bkuLa7o2.d.ts.map +0 -1
  763. package/dist/types/translation-CiC-Avxc.d.ts +0 -33
  764. package/dist/types/translation-CiC-Avxc.d.ts.map +0 -1
  765. package/dist/types/types-C2Om0aEM.d.ts +0 -333
  766. package/dist/types/types-C2Om0aEM.d.ts.map +0 -1
  767. package/dist/types/units-CouGqa8j.d.ts +0 -16
  768. package/dist/types/units-CouGqa8j.d.ts.map +0 -1
  769. package/dist/types/updateNodeChildren-B5Tu1UBZ.d.ts +0 -7
  770. package/dist/types/updateNodeChildren-B5Tu1UBZ.d.ts.map +0 -1
  771. package/dist/types/utils-Dcmgh_80.d.ts +0 -140
  772. package/dist/types/utils-Dcmgh_80.d.ts.map +0 -1
  773. package/dist/types/validateHTML-U7UKTtFd.d.ts +0 -21
  774. package/dist/types/validateHTML-U7UKTtFd.d.ts.map +0 -1
  775. package/dist/types/validateMarkdown-BUaTDDIu.d.ts +0 -18
  776. package/dist/types/validateMarkdown-BUaTDDIu.d.ts.map +0 -1
  777. package/dist/types/validatePrefix-Dtmg7QLq.d.ts +0 -38
  778. package/dist/types/validatePrefix-Dtmg7QLq.d.ts.map +0 -1
  779. package/dist/types/vue-i18n-JtUB7N_m.d.ts +0 -9
  780. package/dist/types/vue-i18n-JtUB7N_m.d.ts.map +0 -1
@@ -1,2 +1,21 @@
1
- import { t as relativeTime } from "../relativeTime-mJaYEq7H.js";
2
- export { relativeTime };
1
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
2
+
3
+ //#region src/formatters/relativeTime.d.ts
4
+ type RelativeTimeUnit = Intl.RelativeTimeFormatUnit;
5
+ /**
6
+ * Formats the difference between two dates as a localized relative time string.
7
+ *
8
+ * @example
9
+ * relativeTime(new Date(Date.now() - 30000)); // "30 seconds ago"
10
+ *
11
+ * @example
12
+ * relativeTime("2025-01-01", new Date(), { locale: Locales.FRENCH, unit: "day" });
13
+ * // "il y a 443 jours"
14
+ */
15
+ declare const relativeTime: (from: Date | string | number, to?: Date | string | number, options?: Intl.RelativeTimeFormatOptions & {
16
+ locale?: LocalesValues;
17
+ unit?: RelativeTimeUnit;
18
+ }) => string;
19
+ //#endregion
20
+ export { relativeTime };
21
+ //# sourceMappingURL=relativeTime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relativeTime.d.ts","names":[],"sources":["../../../src/formatters/relativeTime.ts"],"mappings":";;;KAIK,gBAAA,GAAmB,IAAA,CAAK,sBAAA;;AAH4C;;;;;AA0CzE;;;;cAAa,YAAA,GACX,IAAA,EAAM,IAAA,oBACN,EAAA,GAAI,IAAA,oBACJ,OAAA,GAAU,IAAA,CAAK,yBAAA;EACb,MAAA,GAAS,aAAA;EACT,IAAA,GAAO,gBAAA;AAAA"}
@@ -1,2 +1,16 @@
1
- import { t as units } from "../units-CouGqa8j.js";
2
- export { units };
1
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
2
+
3
+ //#region src/formatters/units.d.ts
4
+ /**
5
+ * Formats a numeric value as a localized unit string.
6
+ *
7
+ * @example
8
+ * units(5, { unit: "kilometer", unitDisplay: "long", locale: "en-GB" });
9
+ * // "5 kilometers"
10
+ */
11
+ declare const units: (value: number | string, options?: Intl.NumberFormatOptions & {
12
+ locale?: LocalesValues;
13
+ }) => string;
14
+ //#endregion
15
+ export { units };
16
+ //# sourceMappingURL=units.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"units.d.ts","names":[],"sources":["../../../src/formatters/units.ts"],"mappings":";;;;;AAWA;;;;;cAAa,KAAA,GACX,KAAA,mBACA,OAAA,GAAU,IAAA,CAAK,mBAAA;EAAwB,MAAA,GAAS,aAAA;AAAA"}
@@ -1,2 +1,29 @@
1
- import { n as getStorageAttributes, t as ProcessedStorageAttributes } from "./getStorageAttributes-CIO2xWqQ.js";
2
- export { ProcessedStorageAttributes, getStorageAttributes };
1
+ import { CookiesAttributes, IntlayerConfig } from "@intlayer/types/config";
2
+
3
+ //#region src/getStorageAttributes.d.ts
4
+ type CookieEntry = {
5
+ name: string;
6
+ attributes: Omit<CookiesAttributes, 'type' | 'name'>;
7
+ };
8
+ type WebStorageEntry = {
9
+ name: string;
10
+ };
11
+ type HeaderEntry = {
12
+ name: string;
13
+ };
14
+ type ProcessedStorageAttributes = {
15
+ cookies: CookieEntry[];
16
+ localStorage: WebStorageEntry[];
17
+ sessionStorage: WebStorageEntry[];
18
+ headers: HeaderEntry[];
19
+ };
20
+ /**
21
+ * Extracts and normalizes storage configuration into separate arrays for each storage type
22
+ *
23
+ * @param options - The storage configuration from IntlayerConfig
24
+ * @returns An object containing arrays for cookies, localStorage, and sessionStorage
25
+ */
26
+ declare const getStorageAttributes: (options: IntlayerConfig["routing"]["storage"]) => ProcessedStorageAttributes;
27
+ //#endregion
28
+ export { ProcessedStorageAttributes, getStorageAttributes };
29
+ //# sourceMappingURL=getStorageAttributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStorageAttributes.d.ts","names":[],"sources":["../../src/getStorageAttributes.ts"],"mappings":";;;KAeK,WAAA;EACH,IAAA;EACA,UAAA,EAAY,IAAA,CAAK,iBAAA;AAAA;AAAA,KAGd,eAAA;EACH,IAAA;AAAA;AAAA,KAGG,WAAA;EACH,IAAA;AAAA;AAAA,KAGU,0BAAA;EACV,OAAA,EAAS,WAAA;EACT,YAAA,EAAc,eAAA;EACd,cAAA,EAAgB,eAAA;EAChB,OAAA,EAAS,WAAA;AAAA;;AAXL;;;;;cAkMO,oBAAA,GACX,OAAA,EAAS,cAAA,2BACR,0BAAA"}
@@ -1,80 +1,88 @@
1
- import { n as ConditionContentStates, r as condition, t as ConditionContent } from "./condition-BDUtoh_1.js";
2
- import { i as enumeration, n as EnumerationContent, r as EnumerationContentState, t as EnterFormat } from "./enumeration-CtuvB5Zz.js";
3
- import { i as fileContent, n as FileContentConstructor, r as file, t as FileContent } from "./file-C3q8xvQb.js";
4
- import { i as gender, n as GenderContent, r as GenderContentStates, t as Gender } from "./gender-Dd39Ijmf.js";
5
- import { n as HTMLContentConstructor, r as html, t as HTMLContent } from "./html-Dn6KrpJ3.js";
6
- import { n as HTML_TAGS, t as HTMLTagsType } from "./htmlTags-YxTtVUx6.js";
7
- import { i as validateHTML, n as HTMLValidationResult, r as VOID_ELEMENTS, t as HTMLValidationIssue } from "./validateHTML-U7UKTtFd.js";
8
- import { t as getInsertionValues } from "./getInsertionValues-Cu9IdbuE.js";
9
- import { n as InsertionContentConstructor, r as insertion, t as InsertionContent } from "./insertion-M5fwK-29.js";
10
- import { t as getMarkdownMetadata } from "./getMarkdownMetadata-Bf1S1NQ0.js";
11
- import { n as MarkdownContentConstructor, r as markdown, t as MarkdownContent } from "./markdown-MzfikrI1.js";
12
- import { n as validateMarkdown, t as MarkdownValidationResult } from "./validateMarkdown-BUaTDDIu.js";
13
- import { A as GetNestingResult, C as conditionPlugin, D as insertionPlugin, E as genderPlugin, F as NestedContentState, I as ValidDotPathsFor, L as nesting, M as getCondition, N as DotPath, O as nestedPlugin, P as NestedContent, S as ValueAtKey, T as filePlugin, _ as NestedCond, a as getBasePlugins, b as TranslationCond, c as ConditionCond, d as FileCond, f as GenderCond, g as IsAny, h as InsertionCond, i as getDictionary, j as getNesting, k as translationPlugin, l as DeepTransformContent, m as IInterpreterPluginState, n as findMatchingCondition, o as getContent, p as IInterpreterPlugin, r as getEnumeration, s as deepTransformNode, t as getIntlayer, u as EnumerationCond, v as NodeProps, w as enumerationPlugin, x as UnionKeys, y as Plugins } from "./index-BnEeKNKW.js";
14
- import { n as translation, t as TranslationContent } from "./translation-CiC-Avxc.js";
15
- import { t as getHTML } from "./getHTML-CP6OXtdo.js";
16
- import { t as getTranslation } from "./getTranslation-BG2Wg-af.js";
17
- import { t as splitInsertionTemplate } from "./splitAndJoinInsertion-bkuLa7o2.js";
18
- import { n as getFilterMissingTranslationsContent, r as getFilterMissingTranslationsDictionary, t as filterMissingTranslationsOnlyPlugin } from "./getFilterMissingTranslationsContent-CDNQqoy1.js";
19
- import { n as getFilterTranslationsOnlyContent, r as getFilterTranslationsOnlyDictionary, t as filterTranslationsOnlyPlugin } from "./getFilterTranslationsOnlyContent-D2YgBkHn.js";
20
- import { n as getFilteredLocalesDictionary, t as getFilteredLocalesContent } from "./getFilteredLocalesContent-D0GP-uEg.js";
21
- import { n as getPerLocaleDictionary, t as getLocalizedContent } from "./getLocalizedContent-DOncZd-0.js";
22
- import { n as getMaskContent, t as buildMaskPlugin } from "./getMaskContent-BwLFqp7v.js";
23
- import { n as getMissingLocalesContent, r as getMissingLocalesContentFromDictionary, t as checkMissingLocalesPlugin } from "./getMissingLocalesContent-BYffYcdx.js";
24
- import { t as getMultilingualDictionary } from "./getMultilingualDictionary-DO3i1MFs.js";
25
- import { t as getReplacedValuesContent } from "./getReplacedValuesContent-BvL25pdt.js";
26
- import { n as getSplittedDictionaryContent, t as getSplittedContent } from "./getSplittedContent-YD4JDMfB.js";
27
- import { t as insertContentInDictionary } from "./insertContentInDictionary-DZ3UzG4K.js";
28
- import { t as editDictionaryByKeyPath } from "./editDictionaryByKeyPath-BYIHcsyf.js";
29
- import { t as getContentNodeByKeyPath } from "./getContentNodeByKeyPath-B0Tdi5mj.js";
30
- import { t as getDefaultNode } from "./getDefaultNode-DQNsje2D.js";
31
- import { t as getEmptyNode } from "./getEmptyNode-DW27TTBj.js";
32
- import { t as getNodeChildren } from "./getNodeChildren-OT7Liqke.js";
33
- import { t as getNodeType } from "./getNodeType-Cp765I26.js";
34
- import { t as mergeDictionaries } from "./mergeDictionaries-D6WUMQN5.js";
35
- import { n as normalizeDictionary, t as normalizeDictionaries } from "./normalizeDictionary-coviIGTW.js";
36
- import { t as orderDictionaries } from "./orderDictionaries-SSCMY6qG.js";
37
- import { t as removeContentNodeByKeyPath } from "./removeContentNodeByKeyPath-CotCOOsD.js";
38
- import { t as renameContentNodeByKeyPath } from "./renameContentNodeByKeyPath-BuyH5gOr.js";
39
- import { t as updateNodeChildren } from "./updateNodeChildren-B5Tu1UBZ.js";
40
- import { t as compact } from "./compact-IHXcM4pT.js";
41
- import { t as currency } from "./currency-PbMCnHep.js";
42
- import { t as date } from "./date-C-PI8KqU.js";
43
- import { i as createCachedIntl, n as WrappedIntl, r as bindIntl, t as CachedIntl } from "./intl-B2Ap8I5x.js";
44
- import { t as list } from "./list-BdjJM2Gx.js";
45
- import { t as number } from "./number-C8izkCmU.js";
46
- import { t as percentage } from "./percentage-BqsvW0Zw.js";
47
- import { t as relativeTime } from "./relativeTime-mJaYEq7H.js";
48
- import { t as units } from "./units-CouGqa8j.js";
49
- import { n as getStorageAttributes, t as ProcessedStorageAttributes } from "./getStorageAttributes-CIO2xWqQ.js";
50
- import { i as setLocaleInStorage, n as LocaleStorageOptions, r as getLocaleFromStorage, t as LocaleStorage } from "./localeStorage-CZHwY0u3.js";
51
- import { n as getBrowserLocale, r as localeStorageOptions } from "./getBrowserLocale-RD_Mwv1t.js";
52
- import { t as getHTMLTextDir } from "./getHTMLTextDir-4Zh8J3x7.js";
53
- import { n as getLocale } from "./getLocale-B9dECUM_.js";
54
- import { t as getLocaleFromPath } from "./getLocaleFromPath-621W32QA.js";
55
- import { t as getLocaleLang } from "./getLocaleLang-Bcan1gS4.js";
56
- import { t as getLocaleName } from "./getLocaleName-CfRAD9Hc.js";
57
- import { t as getLocalizedUrl } from "./getLocalizedUrl-BbqeA3-W.js";
58
- import { t as getMultilingualUrls } from "./getMultilingualUrls-CUxYYfA4.js";
59
- import { t as getPathWithoutLocale } from "./getPathWithoutLocale-B_aIR7O0.js";
60
- import { n as GetPrefixResult, r as getPrefix, t as GetPrefixOptions } from "./getPrefix-X9XKkrZD.js";
61
- import { n as localeDetector } from "./localeDetector-BWNCQRiZ.js";
62
- import { i as localeRecord, n as localeFlatMap, r as localeMap } from "./localeMapper-DoAnasqf.js";
63
- import { t as localeResolver } from "./localeResolver-bb7AWQNX.js";
64
- import { a as getRewritePath, i as getLocalizedPath, n as getCanonicalPath, o as getRewriteRules, r as getInternalPath, t as LocalizedPathResult } from "./rewriteUtils-Bd82NiGR.js";
65
- import { n as validatePrefix } from "./validatePrefix-Dtmg7QLq.js";
66
- import { A as MarkedTextNode, B as ReferenceNode, C as ItalicTextNode, D as MarkdownContext, E as LinkNode, F as ParseState, G as StrikethroughTextNode, H as Rule, I as Parser, J as TextNode, K as TableNode, L as ParserResult, M as NewlineNode, N as OrderedListNode, O as MarkdownOptions, P as ParagraphNode, R as ReferenceImageNode, S as ImageNode, T as LinkBareURLNode, U as RuleOutput, V as RenderRuleHook, W as Rules, Y as UnorderedListNode, _ as HTMLNode, a as CodeBlockNode, b as HeadingNode, c as CompileOptions, d as ElementType, f as EscapedTextNode, g as HTMLCommentNode, h as GFMTaskNode, i as BreakThematicNode, j as NestedParser, k as MarkdownRuntime, l as ComponentOverrides, m as FootnoteReferenceNode, n as BoldTextNode, o as CodeFencedNode, p as FootnoteNode, q as TableSeparatorNode, r as BreakLineNode, s as CodeInlineNode, t as BlockQuoteNode, u as CustomComponentNode, v as HTMLSelfClosingNode, w as LinkAngleBraceNode, x as HeadingSetextNode, y as HTMLTag, z as ReferenceLinkNode } from "./types-C2Om0aEM.js";
67
- import { n as compileWithOptions, r as createCompiler, t as compile } from "./compiler-DFiAsUdH.js";
68
- import { $ as REFERENCE_LINK_R, A as HTML_CUSTOM_ATTR_R, B as NAMED_CODES_TO_UNICODE, C as GFM_TASK_R, Ct as generateListItemPrefix, D as HTML_BLOCK_ELEMENT_R, E as HEADING_SETEXT_R, Et as generateListRegex, F as LINK_AUTOLINK_BARE_URL_R, G as ORDERED_LIST_ITEM_PREFIX_R, H as ORDERED, I as LINK_AUTOLINK_R, J as PARAGRAPH_R, K as ORDERED_LIST_ITEM_R, L as LIST_LOOKBEHIND_R, M as HTML_SELF_CLOSING_ELEMENT_R, N as INLINE_SKIP_R, O as HTML_CHAR_CODE_R, P as INTERPOLATION_R, Q as REFERENCE_IMAGE_R, R as LOOKAHEAD, S as FRONT_MATTER_R, St as UNORDERED_LIST_R, T as HEADING_R, Tt as generateListItemRegex, U as ORDERED_LIST_BULLET, V as NP_TABLE_R, W as ORDERED_LIST_ITEM_PREFIX, X as PriorityValue, Y as Priority, Z as REFERENCE_IMAGE_OR_LINK, _ as DO_NOT_PROCESS_HTML_ELEMENTS, _t as UNORDERED, a as BLOCKQUOTE_R, at as TABLE_LEFT_ALIGN, b as FOOTNOTE_REFERENCE_R, bt as UNORDERED_LIST_ITEM_PREFIX_R, c as BREAK_LINE_R, ct as TAB_R, d as CODE_BLOCK_FENCED_R, dt as TEXT_ESCAPED_R, et as RuleType, f as CODE_BLOCK_R, ft as TEXT_MARKED_R, g as CUSTOM_COMPONENT_R, gt as UNESCAPE_R, h as CR_NEWLINE_R, ht as TRIM_STARTING_NEWLINES, i as BLOCKQUOTE_ALERT_R, it as TABLE_CENTER_ALIGN, j as HTML_LEFT_TRIM_AMOUNT_R, k as HTML_COMMENT_R, l as BREAK_THEMATIC_R, lt as TEXT_BOLD_R, m as CONSECUTIVE_NEWLINE_R, mt as TEXT_STRIKETHROUGHED_R, n as ATTRIBUTE_TO_NODE_PROP_MAP, nt as SHORTCODE_R, o as BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, ot as TABLE_RIGHT_ALIGN, p as CODE_INLINE_R, pt as TEXT_PLAIN_R, q as ORDERED_LIST_R, r as ATTR_EXTRACTOR_R, rt as SHOULD_RENDER_AS_BLOCK_R, s as BLOCK_END_R, st as TABLE_TRIM_PIPES, t as ATTRIBUTES_TO_SANITIZE, tt as RuleTypeValue, u as CAPTURE_LETTER_AFTER_HYPHEN, ut as TEXT_EMPHASIZED_R, v as DURATION_DELAY_TRIGGER, vt as UNORDERED_LIST_BULLET, w as HEADING_ATX_COMPLIANT_R, wt as generateListItemPrefixRegex, x as FORMFEED_R, xt as UNORDERED_LIST_ITEM_R, y as FOOTNOTE_R, yt as UNORDERED_LIST_ITEM_PREFIX, z as ListType } from "./constants-CI_D82B1.js";
69
- import { t as parserFor } from "./parser-BVwR6Tjw.js";
70
- import { n as renderFor, t as createRenderer } from "./renderer-C06x2Orf.js";
71
- import { A as unquote, C as simpleInlineRegex, D as trimEnd, E as startsWith, O as trimLeadingWhitespaceOutsideFences, S as sanitizer, T as some, _ as parseTableAlignCapture, a as captureNothing, b as qualifies, c as inlineRegex, d as parseBlock, f as parseCaptureInline, g as parseTableAlign, h as parseStyleAttribute, i as blockRegex, k as unescapeString, l as normalizeAttributeKey, m as parseSimpleInline, n as anyScopeRegex, o as cx, p as parseInline, r as attributeValueToNodePropValue, s as get, t as allowInline, u as normalizeWhitespace, v as parseTableCells, w as slugify, x as renderNothing, y as parseTableRow } from "./utils-Dcmgh_80.js";
72
- import { n as icuToIntlayerFormatter, r as intlayerToICUFormatter, t as JsonValue } from "./ICU-tA3ZHN5U.js";
73
- import { n as intlayerToI18nextFormatter, t as i18nextToIntlayerFormatter } from "./i18next-qY0AixrB.js";
74
- import { n as vueI18nToIntlayerFormatter, t as intlayerToVueI18nFormatter } from "./vue-i18n-JtUB7N_m.js";
75
- import { t as checkIsURLAbsolute } from "./checkIsURLAbsolute-CTf3JFU6.js";
76
- import { t as getCookie } from "./getCookie-DPOvVv_h.js";
77
- import { t as isSameKeyPath } from "./isSameKeyPath-CkH8NdJh.js";
78
- import { t as isValidElement } from "./isValidReactElement-BsoJ01oP.js";
79
- import { t as parseYaml } from "./parseYaml-D5gxutvA.js";
80
- 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, BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, CachedIntl, CachedIntl as Intl, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, ConditionCond, ConditionContent, ConditionContentStates, CustomComponentNode, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, DeepTransformContent, DotPath, ElementType, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, EscapedTextNode, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, FileCond, FileContent, FileContentConstructor, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, GFM_TASK_R, Gender, GenderCond, GenderContent, GenderContentStates, GetNestingResult, GetPrefixOptions, GetPrefixResult, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTMLCommentNode, HTMLContent, HTMLContentConstructor, HTMLNode, HTMLSelfClosingNode, HTMLTag, HTMLTagsType, HTMLValidationIssue, HTMLValidationIssue as MarkdownValidationIssue, 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, HeadingNode, HeadingSetextNode, IInterpreterPlugin, IInterpreterPluginState, INLINE_SKIP_R, INTERPOLATION_R, ImageNode, InsertionCond, InsertionContent, InsertionContentConstructor, IsAny, ItalicTextNode, JsonValue, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, LinkAngleBraceNode, LinkBareURLNode, LinkNode, ListType, LocaleStorage, LocaleStorageOptions, LocalizedPathResult, MarkdownContent, MarkdownContentConstructor, MarkdownContext, MarkdownOptions, MarkdownRuntime, MarkdownValidationResult, MarkedTextNode, NAMED_CODES_TO_UNICODE, NP_TABLE_R, NestedCond, NestedContent, NestedContentState, NestedParser, NewlineNode, NodeProps, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, OrderedListNode, PARAGRAPH_R, ParagraphNode, ParseState, Parser, ParserResult, Plugins, Priority, PriorityValue, ProcessedStorageAttributes, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, RuleType, RuleTypeValue, Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, 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, TableNode, TableSeparatorNode, 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, UnorderedListNode, VOID_ELEMENTS, ValidDotPathsFor, ValueAtKey, WrappedIntl, allowInline, anyScopeRegex, attributeValueToNodePropValue, bindIntl, blockRegex, buildMaskPlugin, captureNothing, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, compile, compileWithOptions, condition as cond, conditionPlugin, createCachedIntl, createCompiler, createRenderer, currency, cx, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, file, fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, gender, genderPlugin, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, get, getBasePlugins, getBrowserLocale, getCanonicalPath, getCondition, getContent, getContentNodeByKeyPath, getCookie, getDefaultNode, getDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getHTML, getHTMLTextDir, getInsertionValues, getInternalPath, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPrefix, getReplacedValuesContent, getRewritePath, getRewriteRules, getSplittedContent, getSplittedDictionaryContent, getStorageAttributes, getTranslation, html, i18nextToIntlayerFormatter, icuToIntlayerFormatter, inlineRegex, insertion as insert, insertContentInDictionary, insertionPlugin, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToVueI18nFormatter, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, nesting as nest, nestedPlugin, normalizeAttributeKey, normalizeDictionaries, normalizeDictionary, normalizeWhitespace, number, orderDictionaries, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parseYaml, parserFor, percentage, qualifies, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, renderFor, renderNothing, sanitizer, setLocaleInStorage, simpleInlineRegex, slugify, some, splitInsertionTemplate, startsWith, translation as t, translationPlugin, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, units, unquote, updateNodeChildren, validateHTML, validateMarkdown, validatePrefix, vueI18nToIntlayerFormatter };
1
+ import { ConditionContent, ConditionContentStates, cond as condition } from "./transpiler/condition/condition.js";
2
+ import { EnterFormat, EnumerationContent, EnumerationContentState, enu as enumeration } from "./transpiler/enumeration/enumeration.js";
3
+ import { FileContent, FileContentConstructor, file, fileContent } from "./transpiler/file/file.js";
4
+ import { Gender, GenderContent, GenderContentStates, gender } from "./transpiler/gender/gender.js";
5
+ import { HTMLContent, HTMLContentConstructor, html } from "./transpiler/html/html.js";
6
+ import { HTMLTagsType, HTML_TAGS } from "./transpiler/html/htmlTags.js";
7
+ import { HTMLValidationIssue, HTMLValidationResult, VOID_ELEMENTS, validateHTML } from "./transpiler/html/validateHTML.js";
8
+ import { getInsertionValues } from "./transpiler/insertion/getInsertionValues.js";
9
+ import { InsertionContent, InsertionContentConstructor, insert as insertion } from "./transpiler/insertion/insertion.js";
10
+ import { getMarkdownMetadata } from "./transpiler/markdown/getMarkdownMetadata.js";
11
+ import { MarkdownContent, MarkdownContentConstructor, md as markdown } from "./transpiler/markdown/markdown.js";
12
+ import { MarkdownValidationResult, validateMarkdown } from "./transpiler/markdown/validateMarkdown.js";
13
+ import { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nest as nesting } from "./transpiler/nesting/nesting.js";
14
+ import { TranslationContent, t as translation } from "./transpiler/translation/translation.js";
15
+ import { getCondition } from "./interpreter/getCondition.js";
16
+ import { GetNestingResult, getNesting } from "./interpreter/getNesting.js";
17
+ import { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin } from "./interpreter/getContent/plugins.js";
18
+ import { deepTransformNode } from "./interpreter/getContent/deepTransform.js";
19
+ import { getBasePlugins, getContent } from "./interpreter/getContent/getContent.js";
20
+ import { getDictionary } from "./interpreter/getDictionary.js";
21
+ import { findMatchingCondition, getEnumeration } from "./interpreter/getEnumeration.js";
22
+ import { getHTML } from "./interpreter/getHTML.js";
23
+ import { getIntlayer } from "./interpreter/getIntlayer.js";
24
+ import { getTranslation } from "./interpreter/getTranslation.js";
25
+ import { splitInsertionTemplate } from "./interpreter/splitAndJoinInsertion.js";
26
+ import { filterMissingTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary } from "./deepTransformPlugins/getFilterMissingTranslationsContent.js";
27
+ import { filterTranslationsOnlyPlugin, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary } from "./deepTransformPlugins/getFilterTranslationsOnlyContent.js";
28
+ import { getFilteredLocalesContent, getFilteredLocalesDictionary } from "./deepTransformPlugins/getFilteredLocalesContent.js";
29
+ import { getLocalizedContent, getPerLocaleDictionary } from "./deepTransformPlugins/getLocalizedContent.js";
30
+ import { buildMaskPlugin, getMaskContent } from "./deepTransformPlugins/getMaskContent.js";
31
+ import { checkMissingLocalesPlugin, getMissingLocalesContent, getMissingLocalesContentFromDictionary } from "./deepTransformPlugins/getMissingLocalesContent.js";
32
+ import { getMultilingualDictionary } from "./deepTransformPlugins/getMultilingualDictionary.js";
33
+ import { getReplacedValuesContent } from "./deepTransformPlugins/getReplacedValuesContent.js";
34
+ import { getSplittedContent, getSplittedDictionaryContent } from "./deepTransformPlugins/getSplittedContent.js";
35
+ import { insertContentInDictionary } from "./deepTransformPlugins/insertContentInDictionary.js";
36
+ import { editDictionaryByKeyPath } from "./dictionaryManipulator/editDictionaryByKeyPath.js";
37
+ import { getContentNodeByKeyPath } from "./dictionaryManipulator/getContentNodeByKeyPath.js";
38
+ import { getDefaultNode } from "./dictionaryManipulator/getDefaultNode.js";
39
+ import { getEmptyNode } from "./dictionaryManipulator/getEmptyNode.js";
40
+ import { getNodeChildren } from "./dictionaryManipulator/getNodeChildren.js";
41
+ import { getNodeType } from "./dictionaryManipulator/getNodeType.js";
42
+ import { mergeDictionaries } from "./dictionaryManipulator/mergeDictionaries.js";
43
+ import { normalizeDictionaries, normalizeDictionary } from "./dictionaryManipulator/normalizeDictionary.js";
44
+ import { orderDictionaries } from "./dictionaryManipulator/orderDictionaries.js";
45
+ import { removeContentNodeByKeyPath } from "./dictionaryManipulator/removeContentNodeByKeyPath.js";
46
+ import { renameContentNodeByKeyPath } from "./dictionaryManipulator/renameContentNodeByKeyPath.js";
47
+ import { updateNodeChildren } from "./dictionaryManipulator/updateNodeChildren.js";
48
+ import { compact } from "./formatters/compact.js";
49
+ import { currency } from "./formatters/currency.js";
50
+ import { date } from "./formatters/date.js";
51
+ import { CachedIntl, WrappedIntl, bindIntl, createCachedIntl } from "./utils/intl.js";
52
+ import { list } from "./formatters/list.js";
53
+ import { number } from "./formatters/number.js";
54
+ import { percentage } from "./formatters/percentage.js";
55
+ import { relativeTime } from "./formatters/relativeTime.js";
56
+ import { units } from "./formatters/units.js";
57
+ import { ProcessedStorageAttributes, getStorageAttributes } from "./getStorageAttributes.js";
58
+ import { LocaleStorage, LocaleStorageOptions, getLocaleFromStorage, setLocaleInStorage } from "./utils/localeStorage.js";
59
+ import { getBrowserLocale, localeStorageOptions } from "./localization/getBrowserLocale.js";
60
+ import { getHTMLTextDir } from "./localization/getHTMLTextDir.js";
61
+ import { getLocale } from "./localization/getLocale.js";
62
+ import { GetPrefixOptions, GetPrefixResult, getPrefix } from "./localization/getPrefix.js";
63
+ import { getLocaleFromPath } from "./localization/getLocaleFromPath.js";
64
+ import { getLocaleLang } from "./localization/getLocaleLang.js";
65
+ import { getLocaleName } from "./localization/getLocaleName.js";
66
+ import { getLocalizedUrl } from "./localization/getLocalizedUrl.js";
67
+ import { getMultilingualUrls } from "./localization/getMultilingualUrls.js";
68
+ import { getPathWithoutLocale } from "./localization/getPathWithoutLocale.js";
69
+ import { localeDetector } from "./localization/localeDetector.js";
70
+ import { localeFlatMap, localeMap, localeRecord } from "./localization/localeMapper.js";
71
+ import { localeResolver } from "./localization/localeResolver.js";
72
+ import { LocalizedPathResult, getCanonicalPath, getInternalPath, getLocalizedPath, getRewritePath, getRewriteRules } from "./localization/rewriteUtils.js";
73
+ import { validatePrefix } from "./localization/validatePrefix.js";
74
+ 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";
75
+ import { compile, compileWithOptions, createCompiler } from "./markdown/compiler.js";
76
+ 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";
77
+ import { parserFor } from "./markdown/parser.js";
78
+ import { createRenderer, renderFor } from "./markdown/renderer.js";
79
+ 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";
80
+ import { JsonValue, icuToIntlayerFormatter, intlayerToICUFormatter } from "./messageFormat/ICU.js";
81
+ import { i18nextToIntlayerFormatter, intlayerToI18nextFormatter } from "./messageFormat/i18next.js";
82
+ import { intlayerToVueI18nFormatter, vueI18nToIntlayerFormatter } from "./messageFormat/vue-i18n.js";
83
+ import { checkIsURLAbsolute } from "./utils/checkIsURLAbsolute.js";
84
+ import { getCookie } from "./utils/getCookie.js";
85
+ import { isSameKeyPath } from "./utils/isSameKeyPath.js";
86
+ import { isValidElement } from "./utils/isValidReactElement.js";
87
+ import { parseYaml } from "./utils/parseYaml.js";
88
+ 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, BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, CachedIntl, CachedIntl as Intl, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, ConditionCond, ConditionContent, ConditionContentStates, CustomComponentNode, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, DeepTransformContent, DotPath, ElementType, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, EscapedTextNode, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, FileCond, FileContent, FileContentConstructor, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, GFM_TASK_R, Gender, GenderCond, GenderContent, GenderContentStates, GetNestingResult, GetPrefixOptions, GetPrefixResult, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTMLCommentNode, HTMLContent, HTMLContentConstructor, HTMLNode, HTMLSelfClosingNode, 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, HeadingNode, HeadingSetextNode, IInterpreterPlugin, IInterpreterPluginState, INLINE_SKIP_R, INTERPOLATION_R, ImageNode, InsertionCond, InsertionContent, InsertionContentConstructor, IsAny, ItalicTextNode, JsonValue, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, LinkAngleBraceNode, LinkBareURLNode, LinkNode, ListType, LocaleStorage, LocaleStorageOptions, LocalizedPathResult, MarkdownContent, MarkdownContentConstructor, MarkdownContext, MarkdownOptions, MarkdownRuntime, HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, MarkedTextNode, NAMED_CODES_TO_UNICODE, NP_TABLE_R, NestedCond, NestedContent, NestedContentState, NestedParser, NewlineNode, NodeProps, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, OrderedListNode, PARAGRAPH_R, ParagraphNode, ParseState, Parser, ParserResult, Plugins, Priority, PriorityValue, ProcessedStorageAttributes, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, RuleType, RuleTypeValue, Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, 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, TableNode, TableSeparatorNode, 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, UnorderedListNode, VOID_ELEMENTS, ValidDotPathsFor, ValueAtKey, WrappedIntl, allowInline, anyScopeRegex, attributeValueToNodePropValue, bindIntl, blockRegex, buildMaskPlugin, captureNothing, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, compile, compileWithOptions, condition as cond, conditionPlugin, createCachedIntl, createCompiler, createRenderer, currency, cx, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, file, fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, gender, genderPlugin, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, get, getBasePlugins, getBrowserLocale, getCanonicalPath, getCondition, getContent, getContentNodeByKeyPath, getCookie, getDefaultNode, getDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getHTML, getHTMLTextDir, getInsertionValues, getInternalPath, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPrefix, getReplacedValuesContent, getRewritePath, getRewriteRules, getSplittedContent, getSplittedDictionaryContent, getStorageAttributes, getTranslation, html, i18nextToIntlayerFormatter, icuToIntlayerFormatter, inlineRegex, insertion as insert, insertContentInDictionary, insertionPlugin, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToVueI18nFormatter, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, nesting as nest, nestedPlugin, normalizeAttributeKey, normalizeDictionaries, normalizeDictionary, normalizeWhitespace, number, orderDictionaries, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parseYaml, parserFor, percentage, qualifies, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, renderFor, renderNothing, sanitizer, setLocaleInStorage, simpleInlineRegex, slugify, some, splitInsertionTemplate, startsWith, translation as t, translationPlugin, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, units, unquote, updateNodeChildren, validateHTML, validateMarkdown, validatePrefix, vueI18nToIntlayerFormatter };
@@ -1,2 +1,22 @@
1
- import { M as getCondition } from "../index-BnEeKNKW.js";
2
- export { getCondition };
1
+ import { ConditionContentStates } from "../transpiler/condition/condition.js";
2
+ //#region src/interpreter/getCondition.d.ts
3
+ /**
4
+ * Picks content based on a boolean condition.
5
+ *
6
+ * @param conditionContent - A map with 'true', 'false', and optionally 'fallback' keys.
7
+ * @param state - The boolean state to match.
8
+ * @returns The matching content.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const content = getCondition({
13
+ * 'true': 'The condition is validated',
14
+ * 'false': 'The condition is not validated',
15
+ * }, true);
16
+ * // 'The condition is validated'
17
+ * ```
18
+ */
19
+ declare const getCondition: <Content>(conditionContent: ConditionContentStates<Content>, state?: boolean) => Content;
20
+ //#endregion
21
+ export { getCondition };
22
+ //# sourceMappingURL=getCondition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCondition.d.ts","names":[],"sources":["../../../src/interpreter/getCondition.ts"],"mappings":";;;;;AAkBA;;;;;;;;;;;;;cAAa,YAAA,YACX,gBAAA,EAAkB,sBAAA,CAAuB,OAAA,GACzC,KAAA,eACC,OAAA"}
@@ -1,2 +1,12 @@
1
- import { s as deepTransformNode } from "../../index-BnEeKNKW.js";
2
- export { deepTransformNode };
1
+ import { NodeProps } from "./plugins.js";
2
+
3
+ //#region src/interpreter/getContent/deepTransform.d.ts
4
+ /**
5
+ * Recursively traverses a node (object/array/primitive).
6
+ * Applies the *first* plugin that can transform a node, then stops descending further.
7
+ * If no plugin transforms it, it recurses into its children.
8
+ */
9
+ declare const deepTransformNode: (node: any, props: NodeProps) => any;
10
+ //#endregion
11
+ export { deepTransformNode };
12
+ //# sourceMappingURL=deepTransform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepTransform.d.ts","names":[],"sources":["../../../../src/interpreter/getContent/deepTransform.ts"],"mappings":";;;;;AASA;;;cAAa,iBAAA,GAAqB,IAAA,OAAW,KAAA,EAAO,SAAA"}
@@ -1,2 +1,16 @@
1
- import { a as getBasePlugins, o as getContent } from "../../index-BnEeKNKW.js";
2
- export { getBasePlugins, getContent };
1
+ import { DeepTransformContent, IInterpreterPluginState, NodeProps, Plugins } from "./plugins.js";
2
+ import { ContentNode } from "@intlayer/types/dictionary";
3
+ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
4
+
5
+ //#region src/interpreter/getContent/getContent.d.ts
6
+ declare const getBasePlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
7
+ /**
8
+ * Transforms a node in a single pass, applying each plugin as needed.
9
+ *
10
+ * @param node The node to transform.
11
+ * @param locale The locale to use if your transformers need it (e.g. for translations).
12
+ */
13
+ declare const getContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, nodeProps: NodeProps, plugins?: Plugins[]) => DeepTransformContent<T, IInterpreterPluginState, L>;
14
+ //#endregion
15
+ export { getBasePlugins, getContent };
16
+ //# sourceMappingURL=getContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContent.d.ts","names":[],"sources":["../../../../src/interpreter/getContent/getContent.ts"],"mappings":";;;;;cAqBa,cAAA,GACX,MAAA,GAAS,aAAA,EACT,QAAA,eACC,OAAA;;AAHH;;;;;cAsBa,UAAA,aACD,WAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,IAAA,EAAM,CAAA,EACN,SAAA,EAAW,SAAA,EACX,OAAA,GAAS,OAAA,OAKH,oBAAA,CAAqB,CAAA,EAAG,uBAAA,EAAyB,CAAA"}
@@ -1,2 +1,4 @@
1
- import { C as conditionPlugin, D as insertionPlugin, E as genderPlugin, O as nestedPlugin, S as ValueAtKey, T as filePlugin, _ as NestedCond, a as getBasePlugins, b as TranslationCond, c as ConditionCond, d as FileCond, f as GenderCond, g as IsAny, h as InsertionCond, k as translationPlugin, l as DeepTransformContent, m as IInterpreterPluginState, o as getContent, p as IInterpreterPlugin, s as deepTransformNode, u as EnumerationCond, v as NodeProps, w as enumerationPlugin, x as UnionKeys, y as Plugins } from "../../index-BnEeKNKW.js";
1
+ import { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin } from "./plugins.js";
2
+ import { deepTransformNode } from "./deepTransform.js";
3
+ import { getBasePlugins, getContent } from "./getContent.js";
2
4
  export { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, deepTransformNode, enumerationPlugin, filePlugin, genderPlugin, getBasePlugins, getContent, insertionPlugin, nestedPlugin, translationPlugin };
@@ -1,2 +1,152 @@
1
- import { C as conditionPlugin, D as insertionPlugin, E as genderPlugin, O as nestedPlugin, S as ValueAtKey, T as filePlugin, _ as NestedCond, b as TranslationCond, c as ConditionCond, d as FileCond, f as GenderCond, g as IsAny, h as InsertionCond, k as translationPlugin, l as DeepTransformContent, m as IInterpreterPluginState, p as IInterpreterPlugin, u as EnumerationCond, v as NodeProps, w as enumerationPlugin, x as UnionKeys, y as Plugins } from "../../index-BnEeKNKW.js";
2
- export { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin };
1
+ import { Gender } from "../../transpiler/gender/gender.js";
2
+ import { GetNestingResult } from "../getNesting.js";
3
+ import { DeclaredLocales, DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
4
+ import * as NodeTypes from "@intlayer/types/nodeType";
5
+ import { NodeType } from "@intlayer/types/nodeType";
6
+ import { Locale } from "@intlayer/types/allLocales";
7
+ import { KeyPath } from "@intlayer/types/keyPath";
8
+
9
+ //#region src/interpreter/getContent/plugins.d.ts
10
+ /** ---------------------------------------------
11
+ * PLUGIN DEFINITION
12
+ * --------------------------------------------- */
13
+ /**
14
+ * A plugin/transformer that can optionally transform a node during a single DFS pass.
15
+ * - `canHandle` decides if the node is transformable by this plugin.
16
+ * - `transform` returns the transformed node (and does not recurse further).
17
+ *
18
+ * > `transformFn` is a function that can be used to deeply transform inside the plugin.
19
+ */
20
+ type Plugins = {
21
+ id: string;
22
+ canHandle: (node: any) => boolean;
23
+ transform: (node: any, props: NodeProps, transformFn: (node: any, props: NodeProps) => any) => any;
24
+ };
25
+ /** ---------------------------------------------
26
+ * TRANSLATION PLUGIN
27
+ * --------------------------------------------- */
28
+ type UnionKeys<T> = T extends unknown ? keyof T : never;
29
+ type ValueAtKey<T, K> = T extends unknown ? K extends keyof T ? T[K] : never : never;
30
+ type TranslationCond<T, S, L extends LocalesValues> = T extends {
31
+ nodeType: NodeType | string;
32
+ [NodeTypes.TRANSLATION]: infer U;
33
+ } ? U extends Record<PropertyKey, unknown> ? U[keyof U] extends Record<PropertyKey, unknown> ? { [K in UnionKeys<U[keyof U]>]: L extends keyof U ? K extends keyof U[L] ? U[L][K] : ValueAtKey<U[keyof U], K> : ValueAtKey<U[keyof U], K> } extends infer Content ? DeepTransformContent<Content, S> : never : (L extends keyof U ? U[L] : U[keyof U]) extends infer Content ? DeepTransformContent<Content, S> : never : never : never;
34
+ /** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
35
+ declare const translationPlugin: (locale: LocalesValues, fallback?: LocalesValues) => Plugins;
36
+ /** ---------------------------------------------
37
+ * ENUMERATION PLUGIN
38
+ * --------------------------------------------- */
39
+ type EnumerationCond<T, S, _L> = T extends {
40
+ nodeType: NodeType | string;
41
+ [NodeTypes.ENUMERATION]: object;
42
+ } ? (quantity: number) => DeepTransformContent<T[typeof NodeTypes.ENUMERATION][keyof T[typeof NodeTypes.ENUMERATION]], S> : never;
43
+ /** Enumeration plugin. Replaces node with a function that takes quantity => string. */
44
+ declare const enumerationPlugin: Plugins;
45
+ /** ---------------------------------------------
46
+ * CONDITION PLUGIN
47
+ * --------------------------------------------- */
48
+ type ConditionCond<T, S, _L> = T extends {
49
+ nodeType: NodeType | string;
50
+ [NodeTypes.CONDITION]: object;
51
+ } ? (value: boolean | {
52
+ value: boolean;
53
+ }) => DeepTransformContent<T[typeof NodeTypes.CONDITION][keyof T[typeof NodeTypes.CONDITION]], S> : never;
54
+ /** Condition plugin. Replaces node with a function that takes boolean => string. */
55
+ declare const conditionPlugin: Plugins;
56
+ /** ---------------------------------------------
57
+ * INSERTION PLUGIN
58
+ * --------------------------------------------- */
59
+ type InsertionCond<T, S, _L> = T extends {
60
+ nodeType: NodeType | string;
61
+ [NodeTypes.INSERTION]: string;
62
+ fields: readonly string[];
63
+ } ? (values: { [K in T['fields'][number]]: string | number }) => DeepTransformContent<string, S> : never;
64
+ /** Insertion plugin. Replaces node with a function that takes quantity => string. */
65
+ declare const insertionPlugin: Plugins;
66
+ /** ---------------------------------------------
67
+ * GENDER PLUGIN
68
+ * --------------------------------------------- */
69
+ type GenderCond<T, S, _L> = T extends {
70
+ nodeType: NodeType | string;
71
+ [NodeTypes.GENDER]: object;
72
+ } ? (value: Gender) => DeepTransformContent<T[typeof NodeTypes.GENDER][keyof T[typeof NodeTypes.GENDER]], S> : never;
73
+ /** Gender plugin. Replaces node with a function that takes gender => string. */
74
+ declare const genderPlugin: Plugins;
75
+ /** ---------------------------------------------
76
+ * NESTED PLUGIN
77
+ * --------------------------------------------- */
78
+ type NestedCond<T, S, _L> = T extends {
79
+ nodeType: NodeType | string;
80
+ [NodeTypes.NESTED]: infer U;
81
+ } ? U extends {
82
+ dictionaryKey: infer K extends DictionaryKeys;
83
+ path?: infer P;
84
+ } ? GetNestingResult<K, P, S> : never : never;
85
+ /** Nested plugin. Replaces node with the result of `getNesting`. */
86
+ declare const nestedPlugin: (locale?: LocalesValues) => Plugins;
87
+ /** ---------------------------------------------
88
+ * FILE PLUGIN
89
+ * --------------------------------------------- */
90
+ type FileCond<T> = T extends {
91
+ nodeType: NodeType | string;
92
+ [NodeTypes.FILE]: string;
93
+ content?: string;
94
+ } ? string : never;
95
+ /** File plugin. Replaces node with the result of `getNesting`. */
96
+ declare const filePlugin: Plugins;
97
+ /**
98
+ * PLUGIN RESULT
99
+ */
100
+ /**
101
+ * Interface that defines the properties of a node.
102
+ * This interface can be augmented in other packages, such as `react-intlayer`.
103
+ */
104
+ interface NodeProps {
105
+ dictionaryKey: string;
106
+ keyPath: KeyPath[];
107
+ plugins?: Plugins[];
108
+ locale?: Locale;
109
+ dictionaryPath?: string;
110
+ children?: any;
111
+ }
112
+ /**
113
+ * Interface that defines the plugins that can be used to transform a node.
114
+ * This interface can be augmented in other packages, such as `react-intlayer`.
115
+ */
116
+ interface IInterpreterPlugin<T, S, L extends LocalesValues> {
117
+ translation: TranslationCond<T, S, L>;
118
+ enumeration: EnumerationCond<T, S, L>;
119
+ condition: ConditionCond<T, S, L>;
120
+ insertion: InsertionCond<T, S, L>;
121
+ gender: GenderCond<T, S, L>;
122
+ nested: NestedCond<T, S, L>;
123
+ file: FileCond<T>;
124
+ }
125
+ /**
126
+ * Allow to avoid overwriting import from `intlayer` package when `IInterpreterPlugin<T>` interface is augmented in another package, such as `react-intlayer`.
127
+ */
128
+ type IInterpreterPluginState = {
129
+ translation: true;
130
+ enumeration: true;
131
+ condition: true;
132
+ insertion: true;
133
+ gender: true;
134
+ nested: true;
135
+ file: true;
136
+ };
137
+ /**
138
+ * Utility type to check if a plugin can be applied to a node.
139
+ */
140
+ type CheckApplyPlugin<T, K extends keyof IInterpreterPlugin<T, S, L>, S, L extends LocalesValues = DeclaredLocales> = K extends keyof S ? S[K] extends true ? IInterpreterPlugin<T, S, L>[K] extends never ? never : IInterpreterPlugin<T, S, L>[K] : never : never;
141
+ /**
142
+ * Traverse recursively through an object or array, applying each plugin as needed.
143
+ */
144
+ type Traverse<T, S, L extends LocalesValues = DeclaredLocales> = T extends ReadonlyArray<infer U> ? Array<DeepTransformContent<U, S, L>> : T extends object ? { [K in keyof T]: DeepTransformContent<T[K], S, L> } : T;
145
+ type IsAny<T> = 0 extends 1 & T ? true : false;
146
+ /**
147
+ * Traverse recursively through an object or array, applying each plugin as needed.
148
+ */
149
+ type DeepTransformContent<T, S = IInterpreterPluginState, L extends LocalesValues = DeclaredLocales> = IsAny<T> extends true ? T : CheckApplyPlugin<T, keyof IInterpreterPlugin<T, S, L>, S, L> extends never ? Traverse<T, S, L> : CheckApplyPlugin<T, keyof IInterpreterPlugin<T, S, L>, S, L>;
150
+ //#endregion
151
+ export { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin };
152
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../../../src/interpreter/getContent/plugins.ts"],"mappings":";;;;;;;;;;;;AAqCA;;;;;;;AAAA,KAAY,OAAA;EACV,EAAA;EACA,SAAA,GAAY,IAAA;EACZ,SAAA,GACE,IAAA,OACA,KAAA,EAAO,SAAA,EACP,WAAA,GAAc,IAAA,OAAW,KAAA,EAAO,SAAA;AAAA;;;;KAQxB,SAAA,MAAe,CAAA,yBAA0B,CAAA;AAAA,KACzC,UAAA,SAAmB,CAAA,mBAC3B,CAAA,eAAgB,CAAA,GACd,CAAA,CAAE,CAAA;AAAA,KAII,eAAA,iBAAgC,aAAA,IAAiB,CAAA;EAC3D,QAAA,EAAU,QAAA;EAAA,CACT,SAAA,CAAU,WAAA;AAAA,IAET,CAAA,SAAU,MAAA,CAAO,WAAA,aACf,CAAA,OAAQ,CAAA,UAAW,MAAA,CAAO,WAAA,qBAEhB,SAAA,CAAU,CAAA,OAAQ,CAAA,KAAM,CAAA,eAAgB,CAAA,GAC1C,CAAA,eAAgB,CAAA,CAAE,CAAA,IAChB,CAAA,CAAE,CAAA,EAAG,CAAA,IACL,UAAA,CAAW,CAAA,OAAQ,CAAA,GAAI,CAAA,IACzB,UAAA,CAAW,CAAA,OAAQ,CAAA,GAAI,CAAA,4BAE3B,oBAAA,CAAqB,OAAA,EAAS,CAAA,aAE/B,CAAA,eAAgB,CAAA,GAAI,CAAA,CAAE,CAAA,IAAK,CAAA,OAAQ,CAAA,2BAClC,oBAAA,CAAqB,OAAA,EAAS,CAAA;;cAM3B,iBAAA,GACX,MAAA,EAAQ,aAAA,EACR,QAAA,GAAW,aAAA,KACV,OAAA;;AA/BH;;KA+DY,eAAA,aAA4B,CAAA;EACtC,QAAA,EAAU,QAAA;EAAA,CACT,SAAA,CAAU,WAAA;AAAA,KAGP,QAAA,aACG,oBAAA,CACH,CAAA,QAAS,SAAA,CAAU,WAAA,QAAmB,CAAA,QAAS,SAAA,CAAU,WAAA,IACzD,CAAA;;cAKO,iBAAA,EAAmB,OAAA;;;;KAwCpB,aAAA,aAA0B,CAAA;EACpC,QAAA,EAAU,QAAA;EAAA,CACT,SAAA,CAAU,SAAA;AAAA,KAGP,KAAA;EAAmB,KAAA;AAAA,MAChB,oBAAA,CACH,CAAA,QAAS,SAAA,CAAU,SAAA,QAAiB,CAAA,QAAS,SAAA,CAAU,SAAA,IACvD,CAAA;;cAKO,eAAA,EAAiB,OAAA;AA3H9B;;;AAAA,KAmKY,aAAA,aAA0B,CAAA;EACpC,QAAA,EAAU,QAAA;EAAA,CACT,SAAA,CAAU,SAAA;EACX,MAAA;AAAA,KAGI,MAAA,UACQ,CAAA,2CAEL,oBAAA,SAA6B,CAAA;;cAIzB,eAAA,EAAiB,OAAA;;;;KA0DlB,UAAA,aAAuB,CAAA;EACjC,QAAA,EAAU,QAAA;EAAA,CACT,SAAA,CAAU,MAAA;AAAA,KAGP,KAAA,EAAO,MAAA,KACJ,oBAAA,CACH,CAAA,QAAS,SAAA,CAAU,MAAA,QAAc,CAAA,QAAS,SAAA,CAAU,MAAA,IACpD,CAAA;;cAKO,YAAA,EAAc,OAAA;;;;KAyBf,UAAA,aAAuB,CAAA;EACjC,QAAA,EAAU,QAAA;EAAA,CACT,SAAA,CAAU,MAAA;AAAA,IAET,CAAA;EACE,aAAA,kBAA+B,cAAA;EAC/B,IAAA;AAAA,IAEA,gBAAA,CAAiB,CAAA,EAAG,CAAA,EAAG,CAAA;;cAKhB,YAAA,GAAgB,MAAA,GAAS,aAAA,KAAgB,OAAA;;;;KAoB1C,QAAA,MAAc,CAAA;EACxB,QAAA,EAAU,QAAA;EAAA,CACT,SAAA,CAAU,IAAA;EACX,OAAA;AAAA;;cAMW,UAAA,EAAY,OAAA;;;;;;;;UAmBR,SAAA;EACf,aAAA;EACA,OAAA,EAAS,OAAA;EACT,OAAA,GAAU,OAAA;EACV,MAAA,GAAS,MAAA;EACT,cAAA;EACA,QAAA;AAAA;;;;;UAOe,kBAAA,iBAAmC,aAAA;EAClD,WAAA,EAAa,eAAA,CAAgB,CAAA,EAAG,CAAA,EAAG,CAAA;EACnC,WAAA,EAAa,eAAA,CAAgB,CAAA,EAAG,CAAA,EAAG,CAAA;EACnC,SAAA,EAAW,aAAA,CAAc,CAAA,EAAG,CAAA,EAAG,CAAA;EAC/B,SAAA,EAAW,aAAA,CAAc,CAAA,EAAG,CAAA,EAAG,CAAA;EAC/B,MAAA,EAAQ,UAAA,CAAW,CAAA,EAAG,CAAA,EAAG,CAAA;EACzB,MAAA,EAAQ,UAAA,CAAW,CAAA,EAAG,CAAA,EAAG,CAAA;EACzB,IAAA,EAAM,QAAA,CAAS,CAAA;AAAA;;;;KAML,uBAAA;EACV,WAAA;EACA,WAAA;EACA,SAAA;EACA,SAAA;EACA,MAAA;EACA,MAAA;EACA,IAAA;AAAA;;;;KAMG,gBAAA,oBAEa,kBAAA,CAAmB,CAAA,EAAG,CAAA,EAAG,CAAA,gBAE/B,aAAA,GAAgB,eAAA,IACxB,CAAA,eAAgB,CAAA,GAEhB,CAAA,CAAE,CAAA,iBAEA,kBAAA,CAAmB,CAAA,EAAG,CAAA,EAAG,CAAA,EAAG,CAAA,0BAG1B,kBAAA,CAAmB,CAAA,EAAG,CAAA,EAAG,CAAA,EAAG,CAAA;;;;KAO/B,QAAA,iBAAyB,aAAA,GAAgB,eAAA,IAC5C,CAAA,SAAU,aAAA,YACN,KAAA,CAAM,oBAAA,CAAqB,CAAA,EAAG,CAAA,EAAG,CAAA,KACjC,CAAA,gCACgB,CAAA,GAAI,oBAAA,CAAqB,CAAA,CAAE,CAAA,GAAI,CAAA,EAAG,CAAA,MAChD,CAAA;AAAA,KAEI,KAAA,oBAAyB,CAAA;;;;KAKzB,oBAAA,QAEN,uBAAA,YACM,aAAA,GAAgB,eAAA,IAE1B,KAAA,CAAM,CAAA,iBACF,CAAA,GACA,gBAAA,CAAiB,CAAA,QAAS,kBAAA,CAAmB,CAAA,EAAG,CAAA,EAAG,CAAA,GAAI,CAAA,EAAG,CAAA,kBAExD,QAAA,CAAS,CAAA,EAAG,CAAA,EAAG,CAAA,IAEf,gBAAA,CAAiB,CAAA,QAAS,kBAAA,CAAmB,CAAA,EAAG,CAAA,EAAG,CAAA,GAAI,CAAA,EAAG,CAAA"}
@@ -1,2 +1,17 @@
1
- import { i as getDictionary } from "../index-BnEeKNKW.js";
2
- export { getDictionary };
1
+ import { DeepTransformContent, IInterpreterPluginState, Plugins } from "./getContent/plugins.js";
2
+ import { Dictionary } from "@intlayer/types/dictionary";
3
+ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
4
+
5
+ //#region src/interpreter/getDictionary.d.ts
6
+ /**
7
+ * Transforms a dictionary in a single pass, applying each plugin as needed.
8
+ *
9
+ * @param dictionary The dictionary to transform.
10
+ * @param locale The locale to use if your transformers need it (e.g. for translations).
11
+ * @param additionalPlugins An array of NodeTransformer that define how to transform recognized nodes.
12
+ * If omitted, we’ll use a default set of plugins.
13
+ */
14
+ declare const getDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L, plugins?: Plugins[]) => DeepTransformContent<T["content"], IInterpreterPluginState, L>;
15
+ //#endregion
16
+ export { getDictionary };
17
+ //# sourceMappingURL=getDictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDictionary.d.ts","names":[],"sources":["../../../src/interpreter/getDictionary.ts"],"mappings":";;;;;;;;AAqBA;;;;;cAAa,aAAA,aACD,UAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,UAAA,EAAY,CAAA,EACZ,MAAA,GAAS,CAAA,EACT,OAAA,GAAS,OAAA,OACR,oBAAA,CAAqB,CAAA,aAAc,uBAAA,EAAyB,CAAA"}