@intlayer/core 8.4.0-canary.0 → 8.4.1

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 (533) hide show
  1. package/dist/cjs/{_virtual/_rolldown/runtime.cjs → chunk-Bmb41Sf3.cjs} +1 -1
  2. package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +1 -1
  3. package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs.map +1 -1
  4. package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +1 -1
  5. package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs.map +1 -1
  6. package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +1 -1
  7. package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -1
  8. package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs +1 -1
  9. package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs.map +1 -1
  10. package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +1 -1
  11. package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs.map +1 -1
  12. package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs +1 -1
  13. package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs.map +1 -1
  14. package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +1 -1
  15. package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs.map +1 -1
  16. package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +1 -1
  17. package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -1
  18. package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +1 -1
  19. package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
  20. package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +1 -1
  21. package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs.map +1 -1
  22. package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +1 -1
  23. package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs.map +1 -1
  24. package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +1 -1
  25. package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs.map +1 -1
  26. package/dist/cjs/dictionaryManipulator/getNodeType.cjs +1 -1
  27. package/dist/cjs/dictionaryManipulator/getNodeType.cjs.map +1 -1
  28. package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +1 -1
  29. package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs.map +1 -1
  30. package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs +1 -1
  31. package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs.map +1 -1
  32. package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +1 -1
  33. package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs.map +1 -1
  34. package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +1 -1
  35. package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs.map +1 -1
  36. package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +1 -1
  37. package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs.map +1 -1
  38. package/dist/cjs/formatters/compact.cjs +1 -1
  39. package/dist/cjs/formatters/compact.cjs.map +1 -1
  40. package/dist/cjs/formatters/currency.cjs +1 -1
  41. package/dist/cjs/formatters/currency.cjs.map +1 -1
  42. package/dist/cjs/formatters/date.cjs +1 -1
  43. package/dist/cjs/formatters/date.cjs.map +1 -1
  44. package/dist/cjs/formatters/list.cjs +1 -1
  45. package/dist/cjs/formatters/list.cjs.map +1 -1
  46. package/dist/cjs/formatters/number.cjs +1 -1
  47. package/dist/cjs/formatters/number.cjs.map +1 -1
  48. package/dist/cjs/formatters/percentage.cjs +1 -1
  49. package/dist/cjs/formatters/percentage.cjs.map +1 -1
  50. package/dist/cjs/formatters/relativeTime.cjs +1 -1
  51. package/dist/cjs/formatters/relativeTime.cjs.map +1 -1
  52. package/dist/cjs/formatters/units.cjs +1 -1
  53. package/dist/cjs/formatters/units.cjs.map +1 -1
  54. package/dist/cjs/getContent-DrqM8pqO.cjs +2 -0
  55. package/dist/cjs/getContent-DrqM8pqO.cjs.map +1 -0
  56. package/dist/cjs/getStorageAttributes.cjs +1 -1
  57. package/dist/cjs/getStorageAttributes.cjs.map +1 -1
  58. package/dist/cjs/html-CZ1N-VL0.cjs +2 -0
  59. package/dist/cjs/html-CZ1N-VL0.cjs.map +1 -0
  60. package/dist/cjs/index.cjs +1 -1
  61. package/dist/cjs/interpreter/getContent/deepTransform.cjs +1 -1
  62. package/dist/cjs/interpreter/getContent/deepTransform.cjs.map +1 -1
  63. package/dist/cjs/interpreter/getContent/getContent.cjs +1 -2
  64. package/dist/cjs/interpreter/getContent/index.cjs +1 -1
  65. package/dist/cjs/interpreter/getContent/plugins.cjs +1 -2
  66. package/dist/cjs/interpreter/getDictionary.cjs +1 -2
  67. package/dist/cjs/interpreter/getIntlayer.cjs +1 -2
  68. package/dist/cjs/interpreter/getNesting.cjs +1 -2
  69. package/dist/cjs/interpreter/index.cjs +1 -1
  70. package/dist/cjs/localization/getBrowserLocale.cjs +1 -1
  71. package/dist/cjs/localization/getBrowserLocale.cjs.map +1 -1
  72. package/dist/cjs/localization/getHTMLTextDir.cjs +1 -1
  73. package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
  74. package/dist/cjs/localization/getLocale.cjs +1 -1
  75. package/dist/cjs/localization/getLocale.cjs.map +1 -1
  76. package/dist/cjs/localization/getLocaleFromPath.cjs +1 -1
  77. package/dist/cjs/localization/getLocaleFromPath.cjs.map +1 -1
  78. package/dist/cjs/localization/getLocalizedUrl.cjs +1 -1
  79. package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
  80. package/dist/cjs/localization/getMultilingualUrls.cjs +1 -1
  81. package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
  82. package/dist/cjs/localization/getPathWithoutLocale.cjs +1 -1
  83. package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
  84. package/dist/cjs/localization/getPrefix.cjs +1 -1
  85. package/dist/cjs/localization/getPrefix.cjs.map +1 -1
  86. package/dist/cjs/localization/localeMapper.cjs +1 -1
  87. package/dist/cjs/localization/localeMapper.cjs.map +1 -1
  88. package/dist/cjs/localization/localeResolver.cjs +1 -1
  89. package/dist/cjs/localization/localeResolver.cjs.map +1 -1
  90. package/dist/cjs/localization/validatePrefix.cjs +1 -1
  91. package/dist/cjs/localization/validatePrefix.cjs.map +1 -1
  92. package/dist/cjs/messageFormat/ICU.cjs +1 -1
  93. package/dist/cjs/messageFormat/ICU.cjs.map +1 -1
  94. package/dist/cjs/messageFormat/i18next.cjs +1 -1
  95. package/dist/cjs/messageFormat/i18next.cjs.map +1 -1
  96. package/dist/cjs/messageFormat/vue-i18n.cjs +1 -1
  97. package/dist/cjs/messageFormat/vue-i18n.cjs.map +1 -1
  98. package/dist/cjs/transpiler/condition/condition.cjs +1 -1
  99. package/dist/cjs/transpiler/condition/condition.cjs.map +1 -1
  100. package/dist/cjs/transpiler/enumeration/enumeration.cjs +1 -1
  101. package/dist/cjs/transpiler/enumeration/enumeration.cjs.map +1 -1
  102. package/dist/cjs/transpiler/file/file.cjs +1 -1
  103. package/dist/cjs/transpiler/file/file.cjs.map +1 -1
  104. package/dist/cjs/transpiler/gender/gender.cjs +1 -1
  105. package/dist/cjs/transpiler/gender/gender.cjs.map +1 -1
  106. package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs +1 -2
  107. package/dist/cjs/transpiler/html/html.cjs +1 -2
  108. package/dist/cjs/transpiler/html/index.cjs +1 -1
  109. package/dist/cjs/transpiler/index.cjs +1 -1
  110. package/dist/cjs/transpiler/insertion/insertion.cjs +1 -1
  111. package/dist/cjs/transpiler/insertion/insertion.cjs.map +1 -1
  112. package/dist/cjs/transpiler/markdown/markdown.cjs +1 -1
  113. package/dist/cjs/transpiler/markdown/markdown.cjs.map +1 -1
  114. package/dist/cjs/transpiler/nesting/nesting.cjs +1 -1
  115. package/dist/cjs/transpiler/nesting/nesting.cjs.map +1 -1
  116. package/dist/cjs/transpiler/translation/translation.cjs +1 -1
  117. package/dist/cjs/transpiler/translation/translation.cjs.map +1 -1
  118. package/dist/cjs/utils/intl.cjs +1 -1
  119. package/dist/cjs/utils/intl.cjs.map +1 -1
  120. package/dist/cjs/utils/localeStorage.cjs +1 -1
  121. package/dist/cjs/utils/localeStorage.cjs.map +1 -1
  122. package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +1 -1
  123. package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -1
  124. package/dist/esm/formatters/list.mjs.map +1 -1
  125. package/dist/esm/getContent-DKqtIZGL.mjs +2 -0
  126. package/dist/esm/getContent-DKqtIZGL.mjs.map +1 -0
  127. package/dist/esm/html-3bo80xzx.mjs +2 -0
  128. package/dist/esm/html-3bo80xzx.mjs.map +1 -0
  129. package/dist/esm/index.mjs +1 -1
  130. package/dist/esm/interpreter/getContent/getContent.mjs +1 -2
  131. package/dist/esm/interpreter/getContent/index.mjs +1 -1
  132. package/dist/esm/interpreter/getContent/plugins.mjs +1 -2
  133. package/dist/esm/interpreter/getDictionary.mjs +1 -2
  134. package/dist/esm/interpreter/getIntlayer.mjs +1 -2
  135. package/dist/esm/interpreter/getNesting.mjs +1 -2
  136. package/dist/esm/interpreter/index.mjs +1 -1
  137. package/dist/esm/localization/getBrowserLocale.mjs +1 -1
  138. package/dist/esm/localization/getBrowserLocale.mjs.map +1 -1
  139. package/dist/esm/localization/getHTMLTextDir.mjs +1 -1
  140. package/dist/esm/localization/getHTMLTextDir.mjs.map +1 -1
  141. package/dist/esm/localization/localeMapper.mjs.map +1 -1
  142. package/dist/esm/messageFormat/ICU.mjs +1 -1
  143. package/dist/esm/messageFormat/ICU.mjs.map +1 -1
  144. package/dist/esm/messageFormat/i18next.mjs +1 -1
  145. package/dist/esm/messageFormat/i18next.mjs.map +1 -1
  146. package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs +1 -2
  147. package/dist/esm/transpiler/html/html.mjs +1 -2
  148. package/dist/esm/transpiler/html/index.mjs +1 -1
  149. package/dist/esm/transpiler/index.mjs +1 -1
  150. package/dist/esm/transpiler/markdown/markdown.mjs +1 -1
  151. package/dist/esm/transpiler/markdown/markdown.mjs.map +1 -1
  152. package/dist/esm/utils/intl.mjs +1 -1
  153. package/dist/esm/utils/intl.mjs.map +1 -1
  154. package/dist/types/ICU-tA3ZHN5U.d.ts +11 -0
  155. package/dist/types/ICU-tA3ZHN5U.d.ts.map +1 -0
  156. package/dist/types/checkIsURLAbsolute-CTf3JFU6.d.ts +5 -0
  157. package/dist/types/checkIsURLAbsolute-CTf3JFU6.d.ts.map +1 -0
  158. package/dist/types/compact-IHXcM4pT.d.ts +20 -0
  159. package/dist/types/compact-IHXcM4pT.d.ts.map +1 -0
  160. package/dist/types/compiler-DFiAsUdH.d.ts +9 -0
  161. package/dist/types/compiler-DFiAsUdH.d.ts.map +1 -0
  162. package/dist/types/condition-BDUtoh_1.d.ts +28 -0
  163. package/dist/types/condition-BDUtoh_1.d.ts.map +1 -0
  164. package/dist/types/constants-CI_D82B1.d.ts +177 -0
  165. package/dist/types/constants-CI_D82B1.d.ts.map +1 -0
  166. package/dist/types/currency-PbMCnHep.d.ts +20 -0
  167. package/dist/types/currency-PbMCnHep.d.ts.map +1 -0
  168. package/dist/types/date-C-PI8KqU.d.ts +20 -0
  169. package/dist/types/date-C-PI8KqU.d.ts.map +1 -0
  170. package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +2 -50
  171. package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +2 -42
  172. package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +2 -34
  173. package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +2 -18
  174. package/dist/types/deepTransformPlugins/getMaskContent.d.ts +2 -10
  175. package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +2 -19
  176. package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts +2 -32
  177. package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +2 -8
  178. package/dist/types/deepTransformPlugins/getSplittedContent.d.ts +2 -43
  179. package/dist/types/deepTransformPlugins/index.d.ts +10 -10
  180. package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +2 -25
  181. package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +2 -8
  182. package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +2 -9
  183. package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +2 -9
  184. package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +2 -7
  185. package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +2 -7
  186. package/dist/types/dictionaryManipulator/getNodeType.d.ts +2 -8
  187. package/dist/types/dictionaryManipulator/index.d.ts +12 -12
  188. package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +2 -7
  189. package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +2 -9
  190. package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +2 -15
  191. package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +2 -8
  192. package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +2 -8
  193. package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +2 -7
  194. package/dist/types/editDictionaryByKeyPath-BYIHcsyf.d.ts +8 -0
  195. package/dist/types/editDictionaryByKeyPath-BYIHcsyf.d.ts.map +1 -0
  196. package/dist/types/enumeration-CtuvB5Zz.d.ts +40 -0
  197. package/dist/types/enumeration-CtuvB5Zz.d.ts.map +1 -0
  198. package/dist/types/file-C3q8xvQb.d.ts +28 -0
  199. package/dist/types/file-C3q8xvQb.d.ts.map +1 -0
  200. package/dist/types/formatters/compact.d.ts +2 -20
  201. package/dist/types/formatters/currency.d.ts +2 -20
  202. package/dist/types/formatters/date.d.ts +2 -20
  203. package/dist/types/formatters/index.d.ts +10 -10
  204. package/dist/types/formatters/list.d.ts +2 -24
  205. package/dist/types/formatters/number.d.ts +2 -16
  206. package/dist/types/formatters/percentage.d.ts +2 -16
  207. package/dist/types/formatters/relativeTime.d.ts +2 -11
  208. package/dist/types/formatters/units.d.ts +2 -16
  209. package/dist/types/gender-Dd39Ijmf.d.ts +29 -0
  210. package/dist/types/gender-Dd39Ijmf.d.ts.map +1 -0
  211. package/dist/types/getBrowserLocale-RD_Mwv1t.d.ts +35 -0
  212. package/dist/types/getBrowserLocale-RD_Mwv1t.d.ts.map +1 -0
  213. package/dist/types/getContentNodeByKeyPath-B0Tdi5mj.d.ts +9 -0
  214. package/dist/types/getContentNodeByKeyPath-B0Tdi5mj.d.ts.map +1 -0
  215. package/dist/types/getCookie-DPOvVv_h.d.ts +11 -0
  216. package/dist/types/getCookie-DPOvVv_h.d.ts.map +1 -0
  217. package/dist/types/getDefaultNode-DQNsje2D.d.ts +9 -0
  218. package/dist/types/getDefaultNode-DQNsje2D.d.ts.map +1 -0
  219. package/dist/types/getEmptyNode-DW27TTBj.d.ts +7 -0
  220. package/dist/types/getEmptyNode-DW27TTBj.d.ts.map +1 -0
  221. package/dist/types/getFilterMissingTranslationsContent-CDNQqoy1.d.ts +50 -0
  222. package/dist/types/getFilterMissingTranslationsContent-CDNQqoy1.d.ts.map +1 -0
  223. package/dist/types/getFilterTranslationsOnlyContent-D2YgBkHn.d.ts +42 -0
  224. package/dist/types/getFilterTranslationsOnlyContent-D2YgBkHn.d.ts.map +1 -0
  225. package/dist/types/getFilteredLocalesContent-D0GP-uEg.d.ts +34 -0
  226. package/dist/types/getFilteredLocalesContent-D0GP-uEg.d.ts.map +1 -0
  227. package/dist/types/getHTML-CP6OXtdo.d.ts +32 -0
  228. package/dist/types/getHTML-CP6OXtdo.d.ts.map +1 -0
  229. package/dist/types/getHTMLTextDir-4Zh8J3x7.d.ts +21 -0
  230. package/dist/types/getHTMLTextDir-4Zh8J3x7.d.ts.map +1 -0
  231. package/dist/types/getInsertionValues-Cu9IdbuE.d.ts +5 -0
  232. package/dist/types/getInsertionValues-Cu9IdbuE.d.ts.map +1 -0
  233. package/dist/types/getLocale-B9dECUM_.d.ts +11 -0
  234. package/dist/types/getLocale-B9dECUM_.d.ts.map +1 -0
  235. package/dist/types/getLocaleFromPath-621W32QA.d.ts +26 -0
  236. package/dist/types/getLocaleFromPath-621W32QA.d.ts.map +1 -0
  237. package/dist/types/getLocaleLang-Bcan1gS4.d.ts +20 -0
  238. package/dist/types/getLocaleLang-Bcan1gS4.d.ts.map +1 -0
  239. package/dist/types/getLocaleName-CfRAD9Hc.d.ts +7 -0
  240. package/dist/types/getLocaleName-CfRAD9Hc.d.ts.map +1 -0
  241. package/dist/types/getLocalizedContent-DOncZd-0.d.ts +18 -0
  242. package/dist/types/getLocalizedContent-DOncZd-0.d.ts.map +1 -0
  243. package/dist/types/getLocalizedUrl-BbqeA3-W.d.ts +49 -0
  244. package/dist/types/getLocalizedUrl-BbqeA3-W.d.ts.map +1 -0
  245. package/dist/types/getMarkdownMetadata-Bf1S1NQ0.d.ts +5 -0
  246. package/dist/types/getMarkdownMetadata-Bf1S1NQ0.d.ts.map +1 -0
  247. package/dist/types/getMaskContent-BwLFqp7v.d.ts +10 -0
  248. package/dist/types/getMaskContent-BwLFqp7v.d.ts.map +1 -0
  249. package/dist/types/getMissingLocalesContent-BYffYcdx.d.ts +19 -0
  250. package/dist/types/getMissingLocalesContent-BYffYcdx.d.ts.map +1 -0
  251. package/dist/types/getMultilingualDictionary-DO3i1MFs.d.ts +32 -0
  252. package/dist/types/getMultilingualDictionary-DO3i1MFs.d.ts.map +1 -0
  253. package/dist/types/getMultilingualUrls-CUxYYfA4.d.ts +47 -0
  254. package/dist/types/getMultilingualUrls-CUxYYfA4.d.ts.map +1 -0
  255. package/dist/types/getNodeChildren-OT7Liqke.d.ts +7 -0
  256. package/dist/types/getNodeChildren-OT7Liqke.d.ts.map +1 -0
  257. package/dist/types/getNodeType-Cp765I26.d.ts +8 -0
  258. package/dist/types/getNodeType-Cp765I26.d.ts.map +1 -0
  259. package/dist/types/getPathWithoutLocale-B_aIR7O0.d.ts +31 -0
  260. package/dist/types/getPathWithoutLocale-B_aIR7O0.d.ts.map +1 -0
  261. package/dist/types/getPrefix-X9XKkrZD.d.ts +68 -0
  262. package/dist/types/getPrefix-X9XKkrZD.d.ts.map +1 -0
  263. package/dist/types/getReplacedValuesContent-BvL25pdt.d.ts +8 -0
  264. package/dist/types/getReplacedValuesContent-BvL25pdt.d.ts.map +1 -0
  265. package/dist/types/getSplittedContent-YD4JDMfB.d.ts +43 -0
  266. package/dist/types/getSplittedContent-YD4JDMfB.d.ts.map +1 -0
  267. package/dist/types/getStorageAttributes-CIO2xWqQ.d.ts +29 -0
  268. package/dist/types/getStorageAttributes-CIO2xWqQ.d.ts.map +1 -0
  269. package/dist/types/getStorageAttributes.d.ts +2 -29
  270. package/dist/types/getTranslation-BG2Wg-af.d.ts +30 -0
  271. package/dist/types/getTranslation-BG2Wg-af.d.ts.map +1 -0
  272. package/dist/types/html-Dn6KrpJ3.d.ts +25 -0
  273. package/dist/types/html-Dn6KrpJ3.d.ts.map +1 -0
  274. package/dist/types/htmlTags-YxTtVUx6.d.ts +115 -0
  275. package/dist/types/htmlTags-YxTtVUx6.d.ts.map +1 -0
  276. package/dist/types/i18next-qY0AixrB.d.ts +9 -0
  277. package/dist/types/i18next-qY0AixrB.d.ts.map +1 -0
  278. package/dist/types/index-1CTsSKEn.d.ts +1 -0
  279. package/dist/types/index-B8xF2zGo.d.ts +1 -0
  280. package/dist/types/index-BcsOTSQF.d.ts +1 -0
  281. package/dist/types/index-BnEeKNKW.d.ts +322 -0
  282. package/dist/types/index-BnEeKNKW.d.ts.map +1 -0
  283. package/dist/types/index-Cf8zm5QQ.d.ts +1 -0
  284. package/dist/types/index-CfvILin8.d.ts +1 -0
  285. package/dist/types/index-DK_kKFOF.d.ts +1 -0
  286. package/dist/types/index-DeJa0xZp.d.ts +1 -0
  287. package/dist/types/index-Vlqtiwjx.d.ts +1 -0
  288. package/dist/types/index.d.ts +80 -88
  289. package/dist/types/insertContentInDictionary-DZ3UzG4K.d.ts +25 -0
  290. package/dist/types/insertContentInDictionary-DZ3UzG4K.d.ts.map +1 -0
  291. package/dist/types/insertion-M5fwK-29.d.ts +23 -0
  292. package/dist/types/insertion-M5fwK-29.d.ts.map +1 -0
  293. package/dist/types/interpreter/getCondition.d.ts +2 -22
  294. package/dist/types/interpreter/getContent/deepTransform.d.ts +2 -12
  295. package/dist/types/interpreter/getContent/getContent.d.ts +2 -16
  296. package/dist/types/interpreter/getContent/index.d.ts +1 -3
  297. package/dist/types/interpreter/getContent/plugins.d.ts +2 -151
  298. package/dist/types/interpreter/getDictionary.d.ts +2 -17
  299. package/dist/types/interpreter/getEnumeration.d.ts +2 -58
  300. package/dist/types/interpreter/getGender.d.ts +1 -1
  301. package/dist/types/interpreter/getGender.d.ts.map +1 -1
  302. package/dist/types/interpreter/getHTML.d.ts +2 -32
  303. package/dist/types/interpreter/getInsertion.d.ts +1 -1
  304. package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
  305. package/dist/types/interpreter/getIntlayer.d.ts +2 -8
  306. package/dist/types/interpreter/getNesting.d.ts +2 -27
  307. package/dist/types/interpreter/getTranslation.d.ts +2 -30
  308. package/dist/types/interpreter/index.d.ts +4 -11
  309. package/dist/types/interpreter/splitAndJoinInsertion.d.ts +2 -25
  310. package/dist/types/intl-B2Ap8I5x.d.ts +33 -0
  311. package/dist/types/intl-B2Ap8I5x.d.ts.map +1 -0
  312. package/dist/types/isSameKeyPath-CkH8NdJh.d.ts +7 -0
  313. package/dist/types/isSameKeyPath-CkH8NdJh.d.ts.map +1 -0
  314. package/dist/types/isValidReactElement-BsoJ01oP.d.ts +12 -0
  315. package/dist/types/isValidReactElement-BsoJ01oP.d.ts.map +1 -0
  316. package/dist/types/list-BdjJM2Gx.d.ts +30 -0
  317. package/dist/types/list-BdjJM2Gx.d.ts.map +1 -0
  318. package/dist/types/localeDetector-BWNCQRiZ.d.ts +18 -0
  319. package/dist/types/localeDetector-BWNCQRiZ.d.ts.map +1 -0
  320. package/dist/types/localeMapper-DoAnasqf.d.ts +92 -0
  321. package/dist/types/localeMapper-DoAnasqf.d.ts.map +1 -0
  322. package/dist/types/localeResolver-bb7AWQNX.d.ts +12 -0
  323. package/dist/types/localeResolver-bb7AWQNX.d.ts.map +1 -0
  324. package/dist/types/localeStorage-CZHwY0u3.d.ts +108 -0
  325. package/dist/types/localeStorage-CZHwY0u3.d.ts.map +1 -0
  326. package/dist/types/localization/getBrowserLocale.d.ts +2 -35
  327. package/dist/types/localization/getHTMLTextDir.d.ts +2 -21
  328. package/dist/types/localization/getLocale.d.ts +2 -11
  329. package/dist/types/localization/getLocaleFromPath.d.ts +2 -26
  330. package/dist/types/localization/getLocaleLang.d.ts +2 -20
  331. package/dist/types/localization/getLocaleName.d.ts +2 -7
  332. package/dist/types/localization/getLocalizedUrl.d.ts +2 -49
  333. package/dist/types/localization/getMultilingualUrls.d.ts +2 -47
  334. package/dist/types/localization/getPathWithoutLocale.d.ts +2 -31
  335. package/dist/types/localization/getPrefix.d.ts +2 -68
  336. package/dist/types/localization/index.d.ts +16 -16
  337. package/dist/types/localization/localeDetector.d.ts +2 -18
  338. package/dist/types/localization/localeMapper.d.ts +2 -92
  339. package/dist/types/localization/localeResolver.d.ts +2 -12
  340. package/dist/types/localization/rewriteUtils.d.ts +2 -34
  341. package/dist/types/localization/validatePrefix.d.ts +2 -38
  342. package/dist/types/markdown/compiler.d.ts +2 -9
  343. package/dist/types/markdown/constants.d.ts +2 -177
  344. package/dist/types/markdown/index.d.ts +10 -10
  345. package/dist/types/markdown/parser.d.ts +2 -16
  346. package/dist/types/markdown/renderer.d.ts +2 -22
  347. package/dist/types/markdown/types.d.ts +2 -333
  348. package/dist/types/markdown/utils.d.ts +2 -140
  349. package/dist/types/markdown-MzfikrI1.d.ts +26 -0
  350. package/dist/types/markdown-MzfikrI1.d.ts.map +1 -0
  351. package/dist/types/mergeDictionaries-D6WUMQN5.d.ts +7 -0
  352. package/dist/types/mergeDictionaries-D6WUMQN5.d.ts.map +1 -0
  353. package/dist/types/messageFormat/ICU.d.ts +2 -11
  354. package/dist/types/messageFormat/i18next.d.ts +2 -9
  355. package/dist/types/messageFormat/index.d.ts +3 -3
  356. package/dist/types/messageFormat/vue-i18n.d.ts +2 -9
  357. package/dist/types/normalizeDictionary-coviIGTW.d.ts +9 -0
  358. package/dist/types/normalizeDictionary-coviIGTW.d.ts.map +1 -0
  359. package/dist/types/number-C8izkCmU.d.ts +16 -0
  360. package/dist/types/number-C8izkCmU.d.ts.map +1 -0
  361. package/dist/types/orderDictionaries-SSCMY6qG.d.ts +15 -0
  362. package/dist/types/orderDictionaries-SSCMY6qG.d.ts.map +1 -0
  363. package/dist/types/parseYaml-D5gxutvA.d.ts +5 -0
  364. package/dist/types/parseYaml-D5gxutvA.d.ts.map +1 -0
  365. package/dist/types/parser-BVwR6Tjw.d.ts +16 -0
  366. package/dist/types/parser-BVwR6Tjw.d.ts.map +1 -0
  367. package/dist/types/percentage-BqsvW0Zw.d.ts +16 -0
  368. package/dist/types/percentage-BqsvW0Zw.d.ts.map +1 -0
  369. package/dist/types/relativeTime-mJaYEq7H.d.ts +11 -0
  370. package/dist/types/relativeTime-mJaYEq7H.d.ts.map +1 -0
  371. package/dist/types/removeContentNodeByKeyPath-CotCOOsD.d.ts +8 -0
  372. package/dist/types/removeContentNodeByKeyPath-CotCOOsD.d.ts.map +1 -0
  373. package/dist/types/renameContentNodeByKeyPath-BuyH5gOr.d.ts +8 -0
  374. package/dist/types/renameContentNodeByKeyPath-BuyH5gOr.d.ts.map +1 -0
  375. package/dist/types/renderer-C06x2Orf.d.ts +22 -0
  376. package/dist/types/renderer-C06x2Orf.d.ts.map +1 -0
  377. package/dist/types/rewriteUtils-Bd82NiGR.d.ts +34 -0
  378. package/dist/types/rewriteUtils-Bd82NiGR.d.ts.map +1 -0
  379. package/dist/types/splitAndJoinInsertion-bkuLa7o2.d.ts +25 -0
  380. package/dist/types/splitAndJoinInsertion-bkuLa7o2.d.ts.map +1 -0
  381. package/dist/types/translation-CiC-Avxc.d.ts +33 -0
  382. package/dist/types/translation-CiC-Avxc.d.ts.map +1 -0
  383. package/dist/types/transpiler/condition/condition.d.ts +2 -28
  384. package/dist/types/transpiler/condition/index.d.ts +1 -1
  385. package/dist/types/transpiler/enumeration/enumeration.d.ts +2 -40
  386. package/dist/types/transpiler/enumeration/index.d.ts +1 -1
  387. package/dist/types/transpiler/file/file.d.ts +2 -28
  388. package/dist/types/transpiler/file/fileBrowser.d.ts +1 -1
  389. package/dist/types/transpiler/file/index.d.ts +1 -1
  390. package/dist/types/transpiler/gender/gender.d.ts +2 -29
  391. package/dist/types/transpiler/gender/index.d.ts +1 -1
  392. package/dist/types/transpiler/html/html.d.ts +2 -25
  393. package/dist/types/transpiler/html/htmlTags.d.ts +2 -115
  394. package/dist/types/transpiler/html/index.d.ts +3 -3
  395. package/dist/types/transpiler/html/validateHTML.d.ts +2 -21
  396. package/dist/types/transpiler/index.d.ts +15 -15
  397. package/dist/types/transpiler/insertion/getInsertionValues.d.ts +2 -5
  398. package/dist/types/transpiler/insertion/index.d.ts +2 -2
  399. package/dist/types/transpiler/insertion/insertion.d.ts +2 -23
  400. package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +2 -5
  401. package/dist/types/transpiler/markdown/index.d.ts +4 -4
  402. package/dist/types/transpiler/markdown/markdown.d.ts +2 -26
  403. package/dist/types/transpiler/markdown/validateMarkdown.d.ts +3 -18
  404. package/dist/types/transpiler/nesting/index.d.ts +1 -1
  405. package/dist/types/transpiler/nesting/nesting.d.ts +2 -49
  406. package/dist/types/transpiler/translation/index.d.ts +1 -1
  407. package/dist/types/transpiler/translation/translation.d.ts +2 -33
  408. package/dist/types/types-C2Om0aEM.d.ts +333 -0
  409. package/dist/types/types-C2Om0aEM.d.ts.map +1 -0
  410. package/dist/types/units-CouGqa8j.d.ts +16 -0
  411. package/dist/types/units-CouGqa8j.d.ts.map +1 -0
  412. package/dist/types/updateNodeChildren-B5Tu1UBZ.d.ts +7 -0
  413. package/dist/types/updateNodeChildren-B5Tu1UBZ.d.ts.map +1 -0
  414. package/dist/types/utils/checkIsURLAbsolute.d.ts +2 -5
  415. package/dist/types/utils/getCookie.d.ts +2 -11
  416. package/dist/types/utils/index.d.ts +8 -8
  417. package/dist/types/utils/intl.d.ts +2 -33
  418. package/dist/types/utils/isSameKeyPath.d.ts +2 -7
  419. package/dist/types/utils/isValidReactElement.d.ts +2 -12
  420. package/dist/types/utils/localeStorage.d.ts +2 -108
  421. package/dist/types/utils/parseYaml.d.ts +2 -5
  422. package/dist/types/utils-Dcmgh_80.d.ts +140 -0
  423. package/dist/types/utils-Dcmgh_80.d.ts.map +1 -0
  424. package/dist/types/validateHTML-U7UKTtFd.d.ts +21 -0
  425. package/dist/types/validateHTML-U7UKTtFd.d.ts.map +1 -0
  426. package/dist/types/validateMarkdown-BUaTDDIu.d.ts +18 -0
  427. package/dist/types/validateMarkdown-BUaTDDIu.d.ts.map +1 -0
  428. package/dist/types/validatePrefix-Dtmg7QLq.d.ts +38 -0
  429. package/dist/types/validatePrefix-Dtmg7QLq.d.ts.map +1 -0
  430. package/dist/types/vue-i18n-JtUB7N_m.d.ts +9 -0
  431. package/dist/types/vue-i18n-JtUB7N_m.d.ts.map +1 -0
  432. package/package.json +6 -6
  433. package/dist/cjs/interpreter/getContent/getContent.cjs.map +0 -1
  434. package/dist/cjs/interpreter/getContent/plugins.cjs.map +0 -1
  435. package/dist/cjs/interpreter/getDictionary.cjs.map +0 -1
  436. package/dist/cjs/interpreter/getIntlayer.cjs.map +0 -1
  437. package/dist/cjs/interpreter/getNesting.cjs.map +0 -1
  438. package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs.map +0 -1
  439. package/dist/cjs/transpiler/html/html.cjs.map +0 -1
  440. package/dist/esm/interpreter/getContent/getContent.mjs.map +0 -1
  441. package/dist/esm/interpreter/getContent/plugins.mjs.map +0 -1
  442. package/dist/esm/interpreter/getDictionary.mjs.map +0 -1
  443. package/dist/esm/interpreter/getIntlayer.mjs.map +0 -1
  444. package/dist/esm/interpreter/getNesting.mjs.map +0 -1
  445. package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs.map +0 -1
  446. package/dist/esm/transpiler/html/html.mjs.map +0 -1
  447. package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +0 -1
  448. package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +0 -1
  449. package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +0 -1
  450. package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +0 -1
  451. package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +0 -1
  452. package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +0 -1
  453. package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts.map +0 -1
  454. package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +0 -1
  455. package/dist/types/deepTransformPlugins/getSplittedContent.d.ts.map +0 -1
  456. package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +0 -1
  457. package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +0 -1
  458. package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +0 -1
  459. package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +0 -1
  460. package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +0 -1
  461. package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +0 -1
  462. package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +0 -1
  463. package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +0 -1
  464. package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +0 -1
  465. package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +0 -1
  466. package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +0 -1
  467. package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +0 -1
  468. package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +0 -1
  469. package/dist/types/formatters/compact.d.ts.map +0 -1
  470. package/dist/types/formatters/currency.d.ts.map +0 -1
  471. package/dist/types/formatters/date.d.ts.map +0 -1
  472. package/dist/types/formatters/list.d.ts.map +0 -1
  473. package/dist/types/formatters/number.d.ts.map +0 -1
  474. package/dist/types/formatters/percentage.d.ts.map +0 -1
  475. package/dist/types/formatters/relativeTime.d.ts.map +0 -1
  476. package/dist/types/formatters/units.d.ts.map +0 -1
  477. package/dist/types/getStorageAttributes.d.ts.map +0 -1
  478. package/dist/types/interpreter/getCondition.d.ts.map +0 -1
  479. package/dist/types/interpreter/getContent/deepTransform.d.ts.map +0 -1
  480. package/dist/types/interpreter/getContent/getContent.d.ts.map +0 -1
  481. package/dist/types/interpreter/getContent/plugins.d.ts.map +0 -1
  482. package/dist/types/interpreter/getDictionary.d.ts.map +0 -1
  483. package/dist/types/interpreter/getEnumeration.d.ts.map +0 -1
  484. package/dist/types/interpreter/getHTML.d.ts.map +0 -1
  485. package/dist/types/interpreter/getIntlayer.d.ts.map +0 -1
  486. package/dist/types/interpreter/getNesting.d.ts.map +0 -1
  487. package/dist/types/interpreter/getTranslation.d.ts.map +0 -1
  488. package/dist/types/interpreter/splitAndJoinInsertion.d.ts.map +0 -1
  489. package/dist/types/localization/getBrowserLocale.d.ts.map +0 -1
  490. package/dist/types/localization/getHTMLTextDir.d.ts.map +0 -1
  491. package/dist/types/localization/getLocale.d.ts.map +0 -1
  492. package/dist/types/localization/getLocaleFromPath.d.ts.map +0 -1
  493. package/dist/types/localization/getLocaleLang.d.ts.map +0 -1
  494. package/dist/types/localization/getLocaleName.d.ts.map +0 -1
  495. package/dist/types/localization/getLocalizedUrl.d.ts.map +0 -1
  496. package/dist/types/localization/getMultilingualUrls.d.ts.map +0 -1
  497. package/dist/types/localization/getPathWithoutLocale.d.ts.map +0 -1
  498. package/dist/types/localization/getPrefix.d.ts.map +0 -1
  499. package/dist/types/localization/localeDetector.d.ts.map +0 -1
  500. package/dist/types/localization/localeMapper.d.ts.map +0 -1
  501. package/dist/types/localization/localeResolver.d.ts.map +0 -1
  502. package/dist/types/localization/rewriteUtils.d.ts.map +0 -1
  503. package/dist/types/localization/validatePrefix.d.ts.map +0 -1
  504. package/dist/types/markdown/compiler.d.ts.map +0 -1
  505. package/dist/types/markdown/constants.d.ts.map +0 -1
  506. package/dist/types/markdown/parser.d.ts.map +0 -1
  507. package/dist/types/markdown/renderer.d.ts.map +0 -1
  508. package/dist/types/markdown/types.d.ts.map +0 -1
  509. package/dist/types/markdown/utils.d.ts.map +0 -1
  510. package/dist/types/messageFormat/ICU.d.ts.map +0 -1
  511. package/dist/types/messageFormat/i18next.d.ts.map +0 -1
  512. package/dist/types/messageFormat/vue-i18n.d.ts.map +0 -1
  513. package/dist/types/transpiler/condition/condition.d.ts.map +0 -1
  514. package/dist/types/transpiler/enumeration/enumeration.d.ts.map +0 -1
  515. package/dist/types/transpiler/file/file.d.ts.map +0 -1
  516. package/dist/types/transpiler/gender/gender.d.ts.map +0 -1
  517. package/dist/types/transpiler/html/html.d.ts.map +0 -1
  518. package/dist/types/transpiler/html/htmlTags.d.ts.map +0 -1
  519. package/dist/types/transpiler/html/validateHTML.d.ts.map +0 -1
  520. package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +0 -1
  521. package/dist/types/transpiler/insertion/insertion.d.ts.map +0 -1
  522. package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +0 -1
  523. package/dist/types/transpiler/markdown/markdown.d.ts.map +0 -1
  524. package/dist/types/transpiler/markdown/validateMarkdown.d.ts.map +0 -1
  525. package/dist/types/transpiler/nesting/nesting.d.ts.map +0 -1
  526. package/dist/types/transpiler/translation/translation.d.ts.map +0 -1
  527. package/dist/types/utils/checkIsURLAbsolute.d.ts.map +0 -1
  528. package/dist/types/utils/getCookie.d.ts.map +0 -1
  529. package/dist/types/utils/intl.d.ts.map +0 -1
  530. package/dist/types/utils/isSameKeyPath.d.ts.map +0 -1
  531. package/dist/types/utils/isValidReactElement.d.ts.map +0 -1
  532. package/dist/types/utils/localeStorage.d.ts.map +0 -1
  533. package/dist/types/utils/parseYaml.d.ts.map +0 -1
@@ -0,0 +1,140 @@
1
+ import { F as ParseState, H as Rule, L as ParserResult, j as NestedParser } from "./types-C2Om0aEM.js";
2
+
3
+ //#region src/markdown/utils.d.ts
4
+ /**
5
+ * Trim trailing whitespace from a string.
6
+ */
7
+ declare const trimEnd: (str: string) => string;
8
+ /**
9
+ * Check if string starts with prefix.
10
+ */
11
+ declare const startsWith: (str: string, prefix: string) => boolean;
12
+ /**
13
+ * Remove symmetrical leading and trailing quotes.
14
+ */
15
+ declare const unquote: (str: string) => string;
16
+ /**
17
+ * Unescape backslash-escaped characters.
18
+ */
19
+ declare const unescapeString: (rawString: string) => string;
20
+ /**
21
+ * Join class names, filtering out falsy values.
22
+ */
23
+ declare const cx: (...args: any[]) => string;
24
+ /**
25
+ * Get a nested property from an object using dot notation.
26
+ */
27
+ declare const get: (src: any, path: string, fb?: any) => any;
28
+ /**
29
+ * Convert a string to a URL-safe slug.
30
+ * Based on https://stackoverflow.com/a/18123682/1141611
31
+ */
32
+ declare const slugify: (str: string) => string;
33
+ /**
34
+ * Sanitize URLs to prevent XSS attacks.
35
+ * Returns null if the URL is unsafe.
36
+ */
37
+ declare const sanitizer: (input: string) => string | null;
38
+ /**
39
+ * Normalize whitespace in source string.
40
+ */
41
+ declare const normalizeWhitespace: (source: string) => string;
42
+ /**
43
+ * Safely remove a uniform leading indentation from lines, but do NOT touch
44
+ * the content inside fenced code blocks (``` or ~~~).
45
+ */
46
+ declare const trimLeadingWhitespaceOutsideFences: (text: string, whitespace: string) => string;
47
+ /**
48
+ * Normalize HTML attribute key to JSX prop name.
49
+ */
50
+ declare const normalizeAttributeKey: (key: string) => string;
51
+ type StyleTuple = [key: string, value: string];
52
+ /**
53
+ * Parse a CSS style string into an array of [key, value] tuples.
54
+ */
55
+ declare const parseStyleAttribute: (styleString: string) => StyleTuple[];
56
+ /**
57
+ * Convert an attribute value to a Node prop value.
58
+ */
59
+ declare const attributeValueToNodePropValue: (tag: string, key: string, value: string, sanitizeUrlFn: (value: string, tag: string, attribute: string) => string | null) => any;
60
+ /**
61
+ * Parse table alignment from a separator row.
62
+ */
63
+ declare const parseTableAlignCapture: (alignCapture: string) => "left" | "right" | "center";
64
+ /**
65
+ * Parse table alignment row.
66
+ */
67
+ declare const parseTableAlign: (source: string) => ("left" | "right" | "center")[];
68
+ /**
69
+ * Parse a single table row.
70
+ */
71
+ declare const parseTableRow: (source: string, parse: NestedParser, state: ParseState, tableOutput: boolean) => ParserResult[][];
72
+ /**
73
+ * Parse table cells (multiple rows).
74
+ */
75
+ declare const parseTableCells: (source: string, parse: NestedParser, state: ParseState) => ParserResult[][][];
76
+ /**
77
+ * Check if a rule qualifies for the current source and state.
78
+ */
79
+ declare const qualifies: (source: string, state: ParseState, qualify: NonNullable<Rule<any>["_qualify"]>) => boolean;
80
+ /**
81
+ * Marks a matcher function as eligible for being run inside an inline context.
82
+ */
83
+ declare const allowInline: <T extends (...args: any[]) => any>(fn: T) => T & {
84
+ inline: 1;
85
+ };
86
+ /**
87
+ * Creates a match function for an inline scoped element from a regex.
88
+ */
89
+ declare const inlineRegex: (regex: RegExp) => ((source: string, state: ParseState) => RegExpMatchArray | null) & {
90
+ inline: 1;
91
+ };
92
+ /**
93
+ * Creates a match function for inline elements except links.
94
+ */
95
+ declare const simpleInlineRegex: (regex: RegExp) => ((source: string, state: ParseState) => RegExpMatchArray | null) & {
96
+ inline: 1;
97
+ };
98
+ /**
99
+ * Creates a match function for a block scoped element from a regex.
100
+ */
101
+ declare const blockRegex: (regex: RegExp) => (source: string, state: ParseState) => RegExpMatchArray | null;
102
+ /**
103
+ * Creates a match function from a regex, ignoring block/inline scope.
104
+ */
105
+ declare const anyScopeRegex: (fn: RegExp | ((source: string, state: ParseState) => RegExpMatchArray | null)) => ((source: string, state: ParseState) => RegExpMatchArray | null) & {
106
+ inline: 1;
107
+ };
108
+ /**
109
+ * Parse inline content (including links).
110
+ */
111
+ declare const parseInline: (parse: NestedParser, children: string, state: ParseState) => ParserResult[];
112
+ /**
113
+ * Parse simple inline content (no links).
114
+ */
115
+ declare const parseSimpleInline: (parse: NestedParser, children: string, state: ParseState) => ParserResult[];
116
+ /**
117
+ * Parse block content.
118
+ */
119
+ declare const parseBlock: (parse: NestedParser, children: string, state?: ParseState) => ParserResult[];
120
+ /**
121
+ * Helper to parse capture group 2 as inline content.
122
+ */
123
+ declare const parseCaptureInline: (capture: RegExpMatchArray, parse: NestedParser, state: ParseState) => {
124
+ children: ParserResult[];
125
+ };
126
+ /**
127
+ * Helper that captures nothing (empty object).
128
+ */
129
+ declare const captureNothing: () => Record<string, never>;
130
+ /**
131
+ * Helper that renders nothing (null).
132
+ */
133
+ declare const renderNothing: () => null;
134
+ /**
135
+ * Check if any regex in a list matches the input.
136
+ */
137
+ declare const some: (regexes: RegExp[], input: string) => boolean;
138
+ //#endregion
139
+ export { unquote as A, simpleInlineRegex as C, trimEnd as D, startsWith as E, trimLeadingWhitespaceOutsideFences as O, sanitizer as S, some as T, parseTableAlignCapture as _, captureNothing as a, qualifies as b, inlineRegex as c, parseBlock as d, parseCaptureInline as f, parseTableAlign as g, parseStyleAttribute as h, blockRegex as i, unescapeString as k, normalizeAttributeKey as l, parseSimpleInline as m, anyScopeRegex as n, cx as o, parseInline as p, attributeValueToNodePropValue as r, get as s, allowInline as t, normalizeWhitespace as u, parseTableCells as v, slugify as w, renderNothing as x, parseTableRow as y };
140
+ //# sourceMappingURL=utils-Dcmgh_80.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-Dcmgh_80.d.ts","names":[],"sources":["../../src/markdown/utils.ts"],"mappings":";;;;;AAwBA;cAAa,OAAA,GAAW,GAAA;;;;cAWX,UAAA,GAAc,GAAA,UAAa,MAAA;;;;cAO3B,OAAA,GAAW,GAAA;AAAxB;;;AAAA,cAiBa,cAAA,GAAkB,SAAA;;AAA/B;;cAMa,EAAA,MAAS,IAAA;;;AAAtB;cAKa,GAAA,GAAO,GAAA,OAAU,IAAA,UAAc,EAAA;;;;AAA5C;cAsBa,OAAA,GAAW,GAAA;;;;;cAyBX,SAAA,GAAa,KAAA;;;AAzB1B;cAyDa,mBAAA,GAAuB,MAAA;;;;AAhCpC;cAsDa,kCAAA,GACX,IAAA,UACA,UAAA;;;;cA4DW,qBAAA,GAAyB,GAAA;AAAA,KAYjC,UAAA,IAAc,GAAA,UAAa,KAAA;;;;cAKnB,mBAAA,GAAuB,WAAA,aAAsB,UAAA;;;;cAwE7C,6BAAA,GACX,GAAA,UACA,GAAA,UACA,KAAA,UACA,aAAA,GACE,KAAA,UACA,GAAA,UACA,SAAA;AAhGJ;;;AAAA,cA0Ia,sBAAA,GACX,YAAA;;AAjIA;;cAiJW,eAAA,GACX,MAAA;;;AA3IF;cAoJa,aAAA,GACX,MAAA,UACA,KAAA,EAAO,YAAA,EACP,KAAA,EAAO,UAAA,EACP,WAAA,cACC,YAAA;;;;cAsDU,eAAA,GACX,MAAA,UACA,KAAA,EAAO,YAAA,EACP,KAAA,EAAO,UAAA,KACN,YAAA;;;;cAyBU,SAAA,GACX,MAAA,UACA,KAAA,EAAO,UAAA,EACP,OAAA,EAAS,WAAA,CAAY,IAAA;;;;cAmBV,WAAA,iBAA6B,IAAA,iBACxC,EAAA,EAAI,CAAA,KACH,CAAA;EAAM,MAAA;AAAA;;;AA3IT;cAmJa,WAAA,GAAe,KAAA,EAAO,MAAA,OAAM,MAAA,UACZ,KAAA,EAAS,UAAA,KAAa,gBAAA;;;;AAnInD;;cA8Ia,iBAAA,GAAqB,KAAA,EAAO,MAAA,OAAM,MAAA,UAClB,KAAA,EAAS,UAAA,KAAa,gBAAA;;;AArInD;;;AAAA,cAgJa,UAAA,GACV,KAAA,EAAO,MAAA,MACP,MAAA,UAAgB,KAAA,EAAO,UAAA,KAAa,gBAAA;;;;cAW1B,aAAA,GACX,EAAA,EAAI,MAAA,KAAW,MAAA,UAAgB,KAAA,EAAO,UAAA,KAAe,gBAAA,eAAwB,MAAA,UAElD,KAAA,EAAS,UAAA,KAAa,gBAAA;;;;;;cAUtC,WAAA,GACX,KAAA,EAAO,YAAA,EACP,QAAA,UACA,KAAA,EAAO,UAAA,KACN,YAAA;;;;cAuBU,iBAAA,GACX,KAAA,EAAO,YAAA,EACP,QAAA,UACA,KAAA,EAAO,UAAA,KACN,YAAA;;;;cAwBU,UAAA,GACX,KAAA,EAAO,YAAA,EACP,QAAA,UACA,KAAA,GAAO,UAAA,KACN,YAAA;;;;cA4BU,kBAAA,GACX,OAAA,EAAS,gBAAA,EACT,KAAA,EAAO,YAAA,EACP,KAAA,EAAO,UAAA;EACJ,QAAA,EAAU,YAAA;AAAA;;;;cASF,cAAA,QAAqB,MAAA;;AAtLlC;;cA2La,aAAA;;;;cAKA,IAAA,GAAQ,OAAA,EAAS,MAAA,IAAU,KAAA"}
@@ -0,0 +1,21 @@
1
+ //#region src/transpiler/html/validateHTML.d.ts
2
+ declare const VOID_ELEMENTS: Set<string>;
3
+ type HTMLValidationIssue = {
4
+ type: 'error' | 'warning';
5
+ message: string;
6
+ };
7
+ type HTMLValidationResult = {
8
+ valid: boolean;
9
+ issues: HTMLValidationIssue[];
10
+ };
11
+ /**
12
+ * Validates that HTML tags in `content` are properly opened, nested, and closed.
13
+ * Returns structured issues instead of logging to the console.
14
+ *
15
+ * False-positive exclusions:
16
+ * - Tags whose attribute string starts with `://` are URL autolinks (e.g. `<https://…>`).
17
+ */
18
+ declare const validateHTML: (content: string) => HTMLValidationResult;
19
+ //#endregion
20
+ export { validateHTML as i, HTMLValidationResult as n, VOID_ELEMENTS as r, HTMLValidationIssue as t };
21
+ //# sourceMappingURL=validateHTML-U7UKTtFd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateHTML-U7UKTtFd.d.ts","names":[],"sources":["../../src/transpiler/html/validateHTML.ts"],"mappings":";cAAa,aAAA,EAAa,GAAA;AAAA,KAgBd,mBAAA;EACV,IAAA;EACA,OAAA;AAAA;AAAA,KAGU,oBAAA;EACV,KAAA;EACA,MAAA,EAAQ,mBAAA;AAAA;;;AAFV;;;;;cAmBa,YAAA,GAAgB,OAAA,aAAkB,oBAAA"}
@@ -0,0 +1,18 @@
1
+ import { t as HTMLValidationIssue } from "./validateHTML-U7UKTtFd.js";
2
+
3
+ //#region src/transpiler/markdown/validateMarkdown.d.ts
4
+ type MarkdownValidationResult = {
5
+ valid: boolean;
6
+ issues: HTMLValidationIssue[];
7
+ };
8
+ /**
9
+ * Validates markdown content for structural correctness:
10
+ * - All fenced code blocks are properly closed
11
+ * - HTML tags are properly nested and closed
12
+ *
13
+ * HTML inside code blocks is excluded from HTML validation.
14
+ */
15
+ declare const validateMarkdown: (content: string) => MarkdownValidationResult;
16
+ //#endregion
17
+ export { validateMarkdown as n, MarkdownValidationResult as t };
18
+ //# sourceMappingURL=validateMarkdown-BUaTDDIu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateMarkdown-BUaTDDIu.d.ts","names":[],"sources":["../../src/transpiler/markdown/validateMarkdown.ts"],"mappings":";;;KAIY,wBAAA;EACV,KAAA;EACA,MAAA,EAAQ,mBAAA;AAAA;;;;;;;AAwFV;cAAa,gBAAA,GAAoB,OAAA,aAAkB,wBAAA"}
@@ -0,0 +1,38 @@
1
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
2
+ import configuration from "@intlayer/config/built";
3
+
4
+ //#region src/localization/validatePrefix.d.ts
5
+ type ValidatePrefixResult = {
6
+ isValid: boolean;
7
+ localePrefix: string | undefined;
8
+ };
9
+ /**
10
+ * Checks whether a given locale is valid based on the configured locales.
11
+ *
12
+ * @param locale - The locale value to validate. Can be `undefined` or `null`.
13
+ * @param options - Optional configuration to override default settings.
14
+ * @param options.locales - Array of valid locales. Defaults to the configured internationalization locales.
15
+ * @param options.defaultLocale - The default locale to use as fallback. Defaults to the configured default locale.
16
+ * @param options.mode - The routing mode (`'prefix'`, `'prefix-all'`, or `'no-prefix'`). Defaults to the configured routing mode.
17
+ * @returns An object containing the validation result and the locale prefix.
18
+ *
19
+ * @example
20
+ * // Check if 'en' is a valid locale
21
+ * const { isValid, localePrefix } = validatePrefix('en');
22
+ *
23
+ * @example
24
+ * // Check with custom options
25
+ * const { isValid, localePrefix } = validatePrefix('fr', {
26
+ * locales: ['en', 'fr', 'es'],
27
+ * defaultLocale: 'en',
28
+ * mode: 'prefix-all',
29
+ * });
30
+ */
31
+ declare const validatePrefix: (locale: LocalesValues | undefined | null, options?: {
32
+ locales?: LocalesValues[];
33
+ defaultLocale?: LocalesValues;
34
+ mode?: typeof configuration.routing.mode;
35
+ }) => ValidatePrefixResult;
36
+ //#endregion
37
+ export { validatePrefix as n, ValidatePrefixResult as t };
38
+ //# sourceMappingURL=validatePrefix-Dtmg7QLq.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validatePrefix-Dtmg7QLq.d.ts","names":[],"sources":["../../src/localization/validatePrefix.ts"],"mappings":";;;;KAKY,oBAAA;EACV,OAAA;EACA,YAAA;AAAA;;;;AAyBF;;;;;;;;;;;;;;;;;;;cAAa,cAAA,GACX,MAAA,EAAQ,aAAA,qBACR,OAAA;EACE,OAAA,GAAU,aAAA;EACV,aAAA,GAAgB,aAAA;EAChB,IAAA,UAAc,aAAA,CAAc,OAAA,CAAQ,IAAA;AAAA,MAErC,oBAAA"}
@@ -0,0 +1,9 @@
1
+ import { t as JsonValue } from "./ICU-tA3ZHN5U.js";
2
+ import { Dictionary } from "@intlayer/types/dictionary";
3
+
4
+ //#region src/messageFormat/vue-i18n.d.ts
5
+ declare const intlayerToVueI18nFormatter: (message: Dictionary["content"]) => JsonValue;
6
+ declare const vueI18nToIntlayerFormatter: (message: JsonValue) => Dictionary["content"];
7
+ //#endregion
8
+ export { vueI18nToIntlayerFormatter as n, intlayerToVueI18nFormatter as t };
9
+ //# sourceMappingURL=vue-i18n-JtUB7N_m.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue-i18n-JtUB7N_m.d.ts","names":[],"sources":["../../src/messageFormat/vue-i18n.ts"],"mappings":";;;;cA4Ra,0BAAA,GACX,OAAA,EAAS,UAAA,gBACR,SAAA;AAAA,cAQU,0BAAA,GACX,OAAA,EAAS,SAAA,KACR,UAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/core",
3
- "version": "8.4.0-canary.0",
3
+ "version": "8.4.1",
4
4
  "private": false,
5
5
  "description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
6
6
  "keywords": [
@@ -168,11 +168,11 @@
168
168
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
169
169
  },
170
170
  "dependencies": {
171
- "@intlayer/api": "8.4.0-canary.0",
172
- "@intlayer/config": "8.4.0-canary.0",
173
- "@intlayer/dictionaries-entry": "8.4.0-canary.0",
174
- "@intlayer/types": "8.4.0-canary.0",
175
- "@intlayer/unmerged-dictionaries-entry": "8.4.0-canary.0",
171
+ "@intlayer/api": "8.4.1",
172
+ "@intlayer/config": "8.4.1",
173
+ "@intlayer/dictionaries-entry": "8.4.1",
174
+ "@intlayer/types": "8.4.1",
175
+ "@intlayer/unmerged-dictionaries-entry": "8.4.1",
176
176
  "defu": "6.1.4"
177
177
  },
178
178
  "devDependencies": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"getContent.cjs","names":["translationPlugin","configuration","enumerationPlugin","conditionPlugin","insertionPlugin","nestedPlugin","filePlugin","genderPlugin","deepTransformNode"],"sources":["../../../../src/interpreter/getContent/getContent.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { ContentNode } from '@intlayer/types/dictionary';\nimport type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { deepTransformNode } from './deepTransform';\nimport {\n conditionPlugin,\n type DeepTransformContent,\n enumerationPlugin,\n filePlugin,\n genderPlugin,\n type IInterpreterPluginState,\n insertionPlugin,\n type NodeProps,\n nestedPlugin,\n type Plugins,\n translationPlugin,\n} from './plugins';\n\nexport const getBasePlugins = (\n locale?: LocalesValues,\n fallback: boolean = true\n): Plugins[] => [\n translationPlugin(\n locale ?? configuration.internationalization.defaultLocale,\n fallback ? configuration.internationalization.defaultLocale : undefined\n ),\n enumerationPlugin,\n conditionPlugin,\n insertionPlugin,\n nestedPlugin(locale ?? configuration.internationalization.defaultLocale),\n filePlugin,\n genderPlugin,\n];\n\n/**\n * Transforms a node in a single pass, applying each plugin as needed.\n *\n * @param node The node to transform.\n * @param locale The locale to use if your transformers need it (e.g. for translations).\n */\nexport const getContent = <\n T extends ContentNode,\n L extends LocalesValues = DeclaredLocales,\n>(\n node: T,\n nodeProps: NodeProps,\n plugins: Plugins[] = []\n) =>\n deepTransformNode(node, {\n ...nodeProps,\n plugins,\n }) as DeepTransformContent<T, IInterpreterPluginState, L>;\n"],"mappings":"8OAqBA,MAAa,GACX,EACA,EAAoB,KACN,CACdA,EAAAA,kBACE,GAAUC,EAAAA,QAAc,qBAAqB,cAC7C,EAAWA,EAAAA,QAAc,qBAAqB,cAAgB,IAAA,GAC/D,CACDC,EAAAA,kBACAC,EAAAA,gBACAC,EAAAA,gBACAC,EAAAA,aAAa,GAAUJ,EAAAA,QAAc,qBAAqB,cAAc,CACxEK,EAAAA,WACAC,EAAAA,aACD,CAQY,GAIX,EACA,EACA,EAAqB,EAAE,GAEvBC,EAAAA,kBAAkB,EAAM,CACtB,GAAG,EACH,UACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.cjs","names":["NodeType","getTranslation","getEnumeration","getCondition","getInsertion","getGender","getNesting"],"sources":["../../../../src/interpreter/getContent/plugins.ts"],"sourcesContent":["import type { Locale } from '@intlayer/types/allLocales';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type {\n DeclaredLocales,\n DictionaryKeys,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { NodeType } from '@intlayer/types/nodeType';\nimport type {\n ConditionContent,\n EnumerationContent,\n FileContent,\n Gender,\n GenderContent,\n InsertionContent,\n NestedContent,\n TranslationContent,\n} from '../../transpiler';\nimport { getCondition } from '../getCondition';\nimport { getEnumeration } from '../getEnumeration';\nimport { getGender } from '../getGender';\nimport { getInsertion } from '../getInsertion';\nimport { type GetNestingResult, getNesting } from '../getNesting';\nimport { getTranslation } from '../getTranslation';\n\n/** ---------------------------------------------\n * PLUGIN DEFINITION\n * --------------------------------------------- */\n\n/**\n * A plugin/transformer that can optionally transform a node during a single DFS pass.\n * - `canHandle` decides if the node is transformable by this plugin.\n * - `transform` returns the transformed node (and does not recurse further).\n *\n * > `transformFn` is a function that can be used to deeply transform inside the plugin.\n */\nexport type Plugins = {\n id: string;\n canHandle: (node: any) => boolean;\n transform: (\n node: any,\n props: NodeProps,\n transformFn: (node: any, props: NodeProps) => any\n ) => any;\n};\n\n/** ---------------------------------------------\n * TRANSLATION PLUGIN\n * --------------------------------------------- */\n\nexport type UnionKeys<T> = T extends unknown ? keyof T : never;\nexport type ValueAtKey<T, K> = T extends unknown\n ? K extends keyof T\n ? T[K]\n : never\n : never;\n\nexport type TranslationCond<T, S, L extends LocalesValues> = T extends {\n nodeType: NodeType | string;\n [NodeType.Translation]: infer U;\n}\n ? U extends Record<PropertyKey, unknown>\n ? U[keyof U] extends Record<PropertyKey, unknown>\n ? {\n [K in UnionKeys<U[keyof U]>]: L extends keyof U\n ? K extends keyof U[L]\n ? U[L][K]\n : ValueAtKey<U[keyof U], K>\n : ValueAtKey<U[keyof U], K>;\n } extends infer Content\n ? DeepTransformContent<Content, S>\n : never\n : (L extends keyof U ? U[L] : U[keyof U]) extends infer Content\n ? DeepTransformContent<Content, S>\n : never\n : never\n : never;\n\n/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */\nexport const translationPlugin = (\n locale: LocalesValues,\n fallback?: LocalesValues\n): Plugins => ({\n id: 'translation-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Translation,\n transform: (node: TranslationContent, props, deepTransformNode) => {\n const result = {\n ...(node[NodeType.Translation] ?? {}),\n };\n\n for (const key in result) {\n const childProps = {\n ...props,\n children: result[key as keyof typeof result],\n keyPath: [\n ...props.keyPath,\n { type: NodeType.Translation, key } as KeyPath,\n ],\n };\n result[key as keyof typeof result] = deepTransformNode(\n result[key as keyof typeof result],\n childProps\n );\n }\n\n return getTranslation(result, locale, fallback);\n },\n});\n\n/** ---------------------------------------------\n * ENUMERATION PLUGIN\n * --------------------------------------------- */\n\nexport type EnumerationCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Enumeration]: object;\n}\n ? (\n quantity: number\n ) => DeepTransformContent<\n T[NodeType.Enumeration][keyof T[NodeType.Enumeration]],\n S\n >\n : never;\n\n/** Enumeration plugin. Replaces node with a function that takes quantity => string. */\nexport const enumerationPlugin: Plugins = {\n id: 'enumeration-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Enumeration,\n transform: (node: EnumerationContent, props, deepTransformNode) => {\n const result = { ...node[NodeType.Enumeration] };\n\n for (const key in result) {\n const child = result[key as unknown as keyof typeof result];\n const childProps = {\n ...props,\n children: child,\n keyPath: [\n ...props.keyPath,\n { type: NodeType.Enumeration, key } as KeyPath,\n ],\n };\n result[key as unknown as keyof typeof result] = deepTransformNode(\n child,\n childProps\n );\n }\n\n return (arg: number | { count: number }) => {\n const quantity = typeof arg === 'number' ? arg : arg.count;\n const subResult = getEnumeration(result, quantity);\n\n if (typeof subResult === 'function' && typeof arg === 'object') {\n return subResult(arg);\n }\n\n return subResult;\n };\n },\n};\n\n/** ---------------------------------------------\n * CONDITION PLUGIN\n * --------------------------------------------- */\n\nexport type ConditionCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Condition]: object;\n}\n ? (\n value: boolean | { value: boolean }\n ) => DeepTransformContent<\n T[NodeType.Condition][keyof T[NodeType.Condition]],\n S\n >\n : never;\n\n/** Condition plugin. Replaces node with a function that takes boolean => string. */\nexport const conditionPlugin: Plugins = {\n id: 'condition-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Condition,\n transform: (node: ConditionContent, props, deepTransformNode) => {\n const result = { ...node[NodeType.Condition] };\n\n for (const key in result) {\n const child = result[key as keyof typeof result];\n const childProps = {\n ...props,\n children: child,\n keyPath: [\n ...props.keyPath,\n { type: NodeType.Condition, key } as KeyPath,\n ],\n };\n result[key as unknown as keyof typeof result] = deepTransformNode(\n child,\n childProps\n );\n }\n\n return (arg: boolean | { value: boolean }) => {\n const value = typeof arg === 'boolean' ? arg : arg.value;\n const subResult = getCondition(result, value);\n\n if (typeof subResult === 'function' && typeof arg === 'object') {\n return subResult(arg);\n }\n\n return subResult;\n };\n },\n};\n\n/** ---------------------------------------------\n * INSERTION PLUGIN\n * --------------------------------------------- */\n\nexport type InsertionCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Insertion]: string;\n fields: readonly string[];\n}\n ? (\n values: {\n [K in T['fields'][number]]: string | number;\n }\n ) => DeepTransformContent<string, S>\n : never;\n\n/** Insertion plugin. Replaces node with a function that takes quantity => string. */\nexport const insertionPlugin: Plugins = {\n id: 'insertion-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Insertion,\n transform: (node: InsertionContent, props, deepTransformNode) => {\n const newKeyPath: KeyPath[] = [\n ...props.keyPath,\n {\n type: NodeType.Insertion,\n },\n ];\n\n const children = node[NodeType.Insertion];\n\n /** Insertion string plugin. Replaces string node with a component that render the insertion. */\n const insertionStringPlugin: Plugins = {\n id: 'insertion-string-plugin',\n canHandle: (node) => typeof node === 'string',\n transform: (node: string, subProps, deepTransformNode) => {\n const transformedResult = deepTransformNode(node, {\n ...subProps,\n children: node,\n plugins: [\n ...(props.plugins ?? ([] as Plugins[])).filter(\n (plugin) => plugin.id !== 'intlayer-node-plugin'\n ),\n ],\n });\n\n return (\n values: {\n [K in InsertionContent['fields'][number]]: string | number;\n }\n ) => {\n const children = getInsertion(transformedResult, values);\n\n return deepTransformNode(children, {\n ...subProps,\n plugins: props.plugins,\n children,\n });\n };\n },\n };\n\n return deepTransformNode(children, {\n ...props,\n children,\n keyPath: newKeyPath,\n plugins: [insertionStringPlugin, ...(props.plugins ?? [])],\n });\n },\n};\n\n/** ---------------------------------------------\n * GENDER PLUGIN\n * --------------------------------------------- */\n\nexport type GenderCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Gender]: object;\n}\n ? (\n value: Gender\n ) => DeepTransformContent<T[NodeType.Gender][keyof T[NodeType.Gender]], S>\n : never;\n\n/** Gender plugin. Replaces node with a function that takes gender => string. */\nexport const genderPlugin: Plugins = {\n id: 'gender-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Gender,\n transform: (node: GenderContent, props, deepTransformNode) => {\n const result = { ...node[NodeType.Gender] };\n\n for (const key in result) {\n const child = result[key as keyof typeof result];\n const childProps = {\n ...props,\n children: child,\n keyPath: [...props.keyPath, { type: NodeType.Gender, key } as KeyPath],\n };\n result[key as keyof typeof result] = deepTransformNode(child, childProps);\n }\n\n return (value: Gender) => getGender(result, value);\n },\n};\n\n/** ---------------------------------------------\n * NESTED PLUGIN\n * --------------------------------------------- */\n\nexport type NestedCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Nested]: infer U;\n}\n ? U extends {\n dictionaryKey: infer K extends DictionaryKeys;\n path?: infer P;\n }\n ? GetNestingResult<K, P, S>\n : never\n : never;\n\n/** Nested plugin. Replaces node with the result of `getNesting`. */\nexport const nestedPlugin = (locale?: LocalesValues): Plugins => ({\n id: 'nested-plugin',\n canHandle: (node) =>\n typeof node === 'object' &&\n (node?.nodeType === NodeType.Nested || node?.nodeType === 'nested'),\n transform: (node: NestedContent, props) =>\n getNesting(node.nested.dictionaryKey, node.nested.path, {\n ...props,\n locale: (locale ?? props.locale) as Locale,\n }),\n});\n\n/** ---------------------------------------------\n * FILE PLUGIN\n * --------------------------------------------- */\n\nexport type FileCond<T> = T extends {\n nodeType: NodeType | string;\n [NodeType.File]: string;\n content?: string;\n}\n ? string\n : never;\n\n/** File plugin. Replaces node with the result of `getNesting`. */\nexport const filePlugin: Plugins = {\n id: 'file-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.File,\n transform: (node: FileContent, props, deepTransform) =>\n deepTransform(node.content, {\n ...props,\n children: node.content,\n }),\n};\n\n/**\n * PLUGIN RESULT\n */\n\n/**\n * Interface that defines the properties of a node.\n * This interface can be augmented in other packages, such as `react-intlayer`.\n */\nexport interface NodeProps {\n dictionaryKey: string;\n keyPath: KeyPath[];\n plugins?: Plugins[];\n locale?: Locale;\n dictionaryPath?: string;\n children?: any;\n}\n\n/**\n * Interface that defines the plugins that can be used to transform a node.\n * This interface can be augmented in other packages, such as `react-intlayer`.\n */\nexport interface IInterpreterPlugin<T, S, L extends LocalesValues> {\n translation: TranslationCond<T, S, L>;\n enumeration: EnumerationCond<T, S, L>;\n condition: ConditionCond<T, S, L>;\n insertion: InsertionCond<T, S, L>;\n gender: GenderCond<T, S, L>;\n nested: NestedCond<T, S, L>;\n file: FileCond<T>;\n}\n\n/**\n * Allow to avoid overwriting import from `intlayer` package when `IInterpreterPlugin<T>` interface is augmented in another package, such as `react-intlayer`.\n */\nexport type IInterpreterPluginState = {\n translation: true;\n enumeration: true;\n condition: true;\n insertion: true;\n gender: true;\n nested: true;\n file: true;\n};\n\n/**\n * Utility type to check if a plugin can be applied to a node.\n */\ntype CheckApplyPlugin<\n T,\n K extends keyof IInterpreterPlugin<T, S, L>,\n S,\n L extends LocalesValues = DeclaredLocales,\n> = K extends keyof S // Test if the key is a key of S.\n ? // Test if the key of S is true. Then the plugin can be applied.\n S[K] extends true\n ? // Test if the key of S exist\n IInterpreterPlugin<T, S, L>[K] extends never\n ? never\n : // Test if the plugin condition is true (if it's not, the plugin is skipped for this node)\n IInterpreterPlugin<T, S, L>[K]\n : never\n : never;\n\n/**\n * Traverse recursively through an object or array, applying each plugin as needed.\n */\ntype Traverse<T, S, L extends LocalesValues = DeclaredLocales> =\n T extends ReadonlyArray<infer U> // Turn any read-only array into a plain mutable array\n ? Array<DeepTransformContent<U, S, L>>\n : T extends object\n ? { [K in keyof T]: DeepTransformContent<T[K], S, L> }\n : T;\n\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\n\n/**\n * Traverse recursively through an object or array, applying each plugin as needed.\n */\nexport type DeepTransformContent<\n T,\n S = IInterpreterPluginState,\n L extends LocalesValues = DeclaredLocales,\n> =\n IsAny<T> extends true\n ? T\n : CheckApplyPlugin<T, keyof IInterpreterPlugin<T, S, L>, S, L> extends never // Check if there is a plugin for T:\n ? // No plugin was found, so try to transform T recursively:\n Traverse<T, S, L>\n : // A plugin was found – use the plugin’s transformation.\n CheckApplyPlugin<T, keyof IInterpreterPlugin<T, S, L>, S, L>;\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDictionary.cjs","names":["getBasePlugins","getContent"],"sources":["../../../src/interpreter/getDictionary.ts"],"sourcesContent":["import type { Dictionary } from '@intlayer/types/dictionary';\nimport type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport type {\n DeepTransformContent,\n IInterpreterPluginState,\n NodeProps,\n Plugins,\n} from './getContent';\nimport { getBasePlugins, getContent } from './getContent/getContent';\n\n/**\n * Transforms a dictionary in a single pass, applying each plugin as needed.\n *\n * @param dictionary The dictionary to transform.\n * @param locale The locale to use if your transformers need it (e.g. for translations).\n * @param additionalPlugins An array of NodeTransformer that define how to transform recognized nodes.\n * If omitted, we’ll use a default set of plugins.\n */\nexport const getDictionary = <\n T extends Dictionary,\n L extends LocalesValues = DeclaredLocales,\n>(\n dictionary: T,\n locale?: L,\n plugins: Plugins[] = getBasePlugins(locale)\n): DeepTransformContent<T['content'], IInterpreterPluginState, L> => {\n const props: NodeProps = {\n dictionaryKey: dictionary.key,\n dictionaryPath: dictionary.filePath,\n keyPath: [],\n plugins,\n };\n\n return getContent(dictionary.content, props, plugins);\n};\n"],"mappings":"kHAqBa,GAIX,EACA,EACA,EAAqBA,EAAAA,eAAe,EAAO,GACwB,CACnE,IAAM,EAAmB,CACvB,cAAe,EAAW,IAC1B,eAAgB,EAAW,SAC3B,QAAS,EAAE,CACX,UACD,CAED,OAAOC,EAAAA,WAAW,EAAW,QAAS,EAAO,EAAQ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getIntlayer.cjs","names":["configuration","getDictionary"],"sources":["../../../src/interpreter/getIntlayer.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport { colorizeKey, getAppLogger } from '@intlayer/config/logger';\nimport { getDictionaries } from '@intlayer/dictionaries-entry';\nimport type {\n DeclaredLocales,\n DictionaryKeys,\n DictionaryRegistryContent,\n DictionaryRegistryElement,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport type {\n DeepTransformContent,\n IInterpreterPluginState,\n Plugins,\n} from './getContent';\nimport { getDictionary } from './getDictionary';\n\n/**\n * Creates a Recursive Proxy that returns the path of the accessed key\n * stringified. This prevents the app from crashing on undefined access.\n */\nconst createSafeFallback = (path = ''): any => {\n return new Proxy(\n // Target is a function so it can be called if the dictionary expects a function\n () => path,\n {\n get: (_target, prop) => {\n // Handle common object methods to prevent infinite recursion or weird behavior\n if (\n prop === 'toJSON' ||\n prop === Symbol.toPrimitive ||\n prop === 'toString'\n ) {\n return () => path;\n }\n if (prop === 'then') {\n return undefined; // Prevent it from being treated as a Promise\n }\n\n // Recursively build the path (e.g., \"myDictionary.home.title\")\n const nextPath = path ? `${path}.${String(prop)}` : String(prop);\n return createSafeFallback(nextPath);\n },\n // If the code tries to execute the missing key as a function: t.title()\n apply: () => {\n return path;\n },\n }\n );\n};\n\nexport const getIntlayer = <\n T extends DictionaryKeys,\n L extends LocalesValues = DeclaredLocales,\n>(\n key: T,\n locale?: L,\n plugins?: Plugins[]\n): DeepTransformContent<\n DictionaryRegistryContent<T>,\n IInterpreterPluginState,\n L\n> => {\n const dictionaries = getDictionaries();\n const dictionary = dictionaries[key as T] as DictionaryRegistryElement<T>;\n\n if (!dictionary) {\n // Log a warning instead of throwing (so developers know it's missing)\n const logger = getAppLogger(configuration);\n logger(\n `Dictionary ${colorizeKey(key as string)} was not found. Using fallback proxy.`,\n {\n level: 'warn',\n isVerbose: true,\n }\n );\n\n if (process.env.NODE_ENV === 'development') {\n // Return the Safe Proxy\n // We initialize it with the dictionary key name so the UI shows \"my-dictionary.someKey\"\n return createSafeFallback(key as string);\n }\n\n return createSafeFallback(key as string);\n }\n\n return getDictionary<DictionaryRegistryElement<T>, L>(\n dictionary,\n locale,\n plugins\n );\n};\n"],"mappings":"mSAqBA,MAAM,GAAsB,EAAO,KAC1B,IAAI,UAEH,EACN,CACE,KAAM,EAAS,IAAS,CAEtB,GACE,IAAS,UACT,IAAS,OAAO,aAChB,IAAS,WAET,UAAa,EAEX,OAAS,OAMb,OAAO,EADU,EAAO,GAAG,EAAK,GAAG,OAAO,EAAK,GAAK,OAAO,EAAK,CAC7B,EAGrC,UACS,EAEV,CACF,CAGU,GAIX,EACA,EACA,IAKG,CAEH,IAAM,GAAA,EAAA,EAAA,kBADgC,CACN,GAsBhC,OApBK,EAoBEC,EAAAA,cACL,EACA,EACA,EACD,GArBC,EAAA,EAAA,cAD4BD,EAAAA,QAAc,CAExC,eAAA,EAAA,EAAA,aAA0B,EAAc,CAAC,uCACzC,CACE,MAAO,OACP,UAAW,GACZ,CACF,CAEG,QAAQ,IAAI,SAGP,EAAmB,EAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNesting.cjs","names":["getIntlayer"],"sources":["../../../src/interpreter/getNesting.ts"],"sourcesContent":["import type { DictionaryKeys, DictionaryRegistryContent } from '@intlayer/types/module_augmentation';\nimport type { GetSubPath } from '@intlayer/types/dictionary';\nimport type { ValidDotPathsFor } from '../transpiler';\nimport type {\n DeepTransformContent,\n IInterpreterPluginState,\n NodeProps,\n} from './getContent';\nimport { getIntlayer } from './getIntlayer';\n\nexport type GetNestingResult<\n K extends DictionaryKeys,\n P = undefined,\n S = IInterpreterPluginState,\n> = GetSubPath<DeepTransformContent<DictionaryRegistryContent<K>, S>, P>;\n\n/**\n * Extracts content from another dictionary by its key and an optional path.\n *\n * This allows for reusing content across different dictionaries.\n *\n * @param dictionaryKey - The key of the dictionary to nest.\n * @param path - Optional dot-separated path to a specific field within the nested dictionary.\n * @param props - Optional properties like locale and plugins.\n * @returns The nested content.\n *\n * @example\n * ```ts\n * const content = getNesting(\"common\", \"buttons.save\");\n * // 'Save'\n * ```\n */\nexport const getNesting = <K extends DictionaryKeys, P>(\n dictionaryKey: K,\n path?: P extends ValidDotPathsFor<K> ? P : never,\n props?: NodeProps\n): GetNestingResult<K, P> => {\n const dictionary = getIntlayer(dictionaryKey, props?.locale, props?.plugins);\n\n if (typeof path === 'string') {\n const pathArray = (path as string).split('.');\n let current: any = dictionary;\n\n for (const key of pathArray) {\n // Safely traverse down the object using the path\n current = current?.[key];\n // If we cannot find the path, return the whole dictionary as a fallback\n if (current === undefined) {\n return dictionary as any;\n }\n }\n\n return current;\n }\n\n // Default or error handling if path is not a string or otherwise undefined\n return dictionary as any;\n};\n"],"mappings":"wGAgCa,GACX,EACA,EACA,IAC2B,CAC3B,IAAM,EAAaA,EAAAA,YAAY,EAAe,GAAO,OAAQ,GAAO,QAAQ,CAE5E,GAAI,OAAO,GAAS,SAAU,CAC5B,IAAM,EAAa,EAAgB,MAAM,IAAI,CACzC,EAAe,EAEnB,IAAK,IAAM,KAAO,EAIhB,GAFA,EAAU,IAAU,GAEhB,IAAY,IAAA,GACd,OAAO,EAIX,OAAO,EAIT,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getHTMLCustomComponents.cjs","names":["HTML_TAGS"],"sources":["../../../../src/transpiler/html/getHTMLCustomComponents.ts"],"sourcesContent":["import { HTML_TAGS } from './index';\n\nconst parseAttributes = (attributesString: string): Record<string, string> => {\n const attributes: Record<string, string> = {};\n\n if (!attributesString || !attributesString.trim()) {\n return attributes;\n }\n\n // Regex to match attribute names\n // Matches: name=\"value\", name='value', name=value, or just name\n const attrRegex =\n /([a-zA-Z0-9-:_@]+)(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?/g;\n\n const matches = [...attributesString.matchAll(attrRegex)];\n\n matches.forEach((match) => {\n const attrName = match[1];\n attributes[attrName] = 'string';\n });\n\n return attributes;\n};\n\n/**\n * Extracts component names from an HTML string.\n * - Standard HTML tags are set to `true`.\n * - Custom components are parsed to extract their attributes/props.\n */\nexport const getHTMLCustomComponents = (\n content: string\n): Record<string, Record<string, string> | true> => {\n if (typeof content !== 'string') {\n throw new Error('content must be a string');\n }\n\n // Regex to match tags: <Tag ...>, </Tag>, or <Tag ... />\n // Captures: 1: Closing slash (if any), 2: Tag Name, 3: Attributes, 4: Self-closing slash (if any)\n const tagRegex = /<(\\/)?([a-zA-Z0-9.-]+)\\s*([\\s\\S]*?)(\\/?)>/g;\n const matches = [...content.matchAll(tagRegex)];\n\n const components: Record<string, Record<string, string> | true> = {};\n\n matches.forEach((match) => {\n const isClosing = !!match[1];\n const tagName = match[2];\n const attributesString = match[3];\n const isSelfClosing = !!match[4];\n\n // Component extraction logic\n if ((HTML_TAGS as readonly string[]).includes(tagName.toLowerCase())) {\n components[tagName] = true;\n return;\n }\n\n if (!components[tagName]) {\n components[tagName] = {};\n }\n\n // Safety check if we somehow have a collision or logic issue, though loop order handles it\n if (components[tagName] === true) {\n return;\n }\n\n if (isClosing) {\n return;\n }\n\n // Parse attributes for custom components\n const attributes = parseAttributes(attributesString);\n const componentDef = components[tagName] as Record<string, string>;\n Object.assign(componentDef, attributes);\n\n // If not self-closing, assume it has children\n if (!isSelfClosing) {\n componentDef.children = 'string';\n }\n });\n\n return components;\n};\n"],"mappings":"qGAEM,EAAmB,GAAqD,CAC5E,IAAM,EAAqC,EAAE,CAkB7C,MAhBI,CAAC,GAAoB,CAAC,EAAiB,MAAM,EASjC,CAAC,GAAG,EAAiB,SAFnC,6DAEsD,CAAC,CAEjD,QAAS,GAAU,CACzB,IAAM,EAAW,EAAM,GACvB,EAAW,GAAY,UACvB,CAbO,GAuBE,EACX,GACkD,CAClD,GAAI,OAAO,GAAY,SACrB,MAAU,MAAM,2BAA2B,CAM7C,IAAM,EAAU,CAAC,GAAG,EAAQ,SADX,6CAC6B,CAAC,CAEzC,EAA4D,EAAE,CAsCpE,OApCA,EAAQ,QAAS,GAAU,CACzB,IAAM,EAAY,CAAC,CAAC,EAAM,GACpB,EAAU,EAAM,GAChB,EAAmB,EAAM,GACzB,EAAgB,CAAC,CAAC,EAAM,GAG9B,GAAKA,EAAAA,UAAgC,SAAS,EAAQ,aAAa,CAAC,CAAE,CACpE,EAAW,GAAW,GACtB,OAYF,GATK,EAAW,KACd,EAAW,GAAW,EAAE,EAItB,EAAW,KAAa,IAIxB,EACF,OAIF,IAAM,EAAa,EAAgB,EAAiB,CAC9C,EAAe,EAAW,GAChC,OAAO,OAAO,EAAc,EAAW,CAGlC,IACH,EAAa,SAAW,WAE1B,CAEK"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"html.cjs","names":["validateHTML","getHTMLCustomComponents","NodeType"],"sources":["../../../../src/transpiler/html/html.ts"],"sourcesContent":["import type { TypedNodeModel } from '@intlayer/types/nodeType';\nimport { formatNodeType, NodeType } from '@intlayer/types/nodeType';\nimport { getHTMLCustomComponents } from './getHTMLCustomComponents';\nimport { validateHTML } from './validateHTML';\n\ntype PropsType = 'number' | 'string' | 'node';\n\ntype ComponentName = string;\n\nexport type HTMLContentConstructor<\n Content = unknown,\n T extends Record<string, any> = {},\n> = TypedNodeModel<NodeType.HTML, Content, T>;\n\nexport type HTMLContent<\n Content = unknown,\n Components extends Record<ComponentName, PropsType> = Record<\n ComponentName,\n PropsType\n >,\n> = HTMLContentConstructor<\n Content,\n {\n tags: string[] | Components;\n }\n>;\n\n/**\n * Function intended to be used to build intlayer dictionaries.\n *\n * Allow to parse HTML/JSX-like strings and replace tags with components during interpretation.\n *\n * Usage:\n *\n * ```ts\n * html('Hello <b>World</b>')\n * ```\n *\n */\nexport const html = <\n Components extends Record<string, any> = Record<string, any>,\n Content = unknown,\n>(\n content: Content,\n components?: Components\n): HTMLContent<Content, Components> => {\n const getComponents = () => {\n if (components) {\n return components;\n }\n\n if (typeof content === 'string') {\n const { issues } = validateHTML(content);\n\n for (const issue of issues) {\n if (issue.type === 'error') {\n console.error(`[intlayer/html] ${issue.message}`);\n } else {\n console.warn(`[intlayer/html] ${issue.message}`);\n }\n }\n\n return getHTMLCustomComponents(content);\n }\n\n let stringContent: any;\n\n if (typeof content === 'function') {\n stringContent = content();\n } else if (typeof (content as Promise<string>).then === 'function') {\n stringContent = async () =>\n getHTMLCustomComponents((await (content as Promise<string>)) as string);\n }\n\n if (typeof stringContent === 'string') {\n return getHTMLCustomComponents(stringContent);\n }\n\n try {\n return getHTMLCustomComponents(JSON.stringify(content));\n } catch (_e) {\n return [];\n }\n };\n\n return formatNodeType(NodeType.HTML, content, {\n tags: getComponents(),\n });\n};\n"],"mappings":"8OAuCA,MAAa,GAIX,EACA,KAyCA,EAAA,EAAA,gBAAsBE,EAAAA,SAAS,KAAM,EAAS,CAC5C,UAxC0B,CAC1B,GAAI,EACF,OAAO,EAGT,GAAI,OAAO,GAAY,SAAU,CAC/B,GAAM,CAAE,UAAWF,EAAAA,aAAa,EAAQ,CAExC,IAAK,IAAM,KAAS,EACd,EAAM,OAAS,QACjB,QAAQ,MAAM,mBAAmB,EAAM,UAAU,CAEjD,QAAQ,KAAK,mBAAmB,EAAM,UAAU,CAIpD,OAAOC,EAAAA,wBAAwB,EAAQ,CAGzC,IAAI,EASJ,GAPI,OAAO,GAAY,WACrB,EAAgB,GAAS,CAChB,OAAQ,EAA4B,MAAS,aACtD,EAAgB,SACdA,EAAAA,wBAAyB,MAAO,EAAuC,EAGvE,OAAO,GAAkB,SAC3B,OAAOA,EAAAA,wBAAwB,EAAc,CAG/C,GAAI,CACF,OAAOA,EAAAA,wBAAwB,KAAK,UAAU,EAAQ,CAAC,MAC5C,CACX,MAAO,EAAE,KAKU,CACtB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getContent.mjs","names":[],"sources":["../../../../src/interpreter/getContent/getContent.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { ContentNode } from '@intlayer/types/dictionary';\nimport type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { deepTransformNode } from './deepTransform';\nimport {\n conditionPlugin,\n type DeepTransformContent,\n enumerationPlugin,\n filePlugin,\n genderPlugin,\n type IInterpreterPluginState,\n insertionPlugin,\n type NodeProps,\n nestedPlugin,\n type Plugins,\n translationPlugin,\n} from './plugins';\n\nexport const getBasePlugins = (\n locale?: LocalesValues,\n fallback: boolean = true\n): Plugins[] => [\n translationPlugin(\n locale ?? configuration.internationalization.defaultLocale,\n fallback ? configuration.internationalization.defaultLocale : undefined\n ),\n enumerationPlugin,\n conditionPlugin,\n insertionPlugin,\n nestedPlugin(locale ?? configuration.internationalization.defaultLocale),\n filePlugin,\n genderPlugin,\n];\n\n/**\n * Transforms a node in a single pass, applying each plugin as needed.\n *\n * @param node The node to transform.\n * @param locale The locale to use if your transformers need it (e.g. for translations).\n */\nexport const getContent = <\n T extends ContentNode,\n L extends LocalesValues = DeclaredLocales,\n>(\n node: T,\n nodeProps: NodeProps,\n plugins: Plugins[] = []\n) =>\n deepTransformNode(node, {\n ...nodeProps,\n plugins,\n }) as DeepTransformContent<T, IInterpreterPluginState, L>;\n"],"mappings":"qQAqBA,MAAa,GACX,EACA,EAAoB,KACN,CACd,EACE,GAAU,EAAc,qBAAqB,cAC7C,EAAW,EAAc,qBAAqB,cAAgB,IAAA,GAC/D,CACD,EACA,EACA,EACA,EAAa,GAAU,EAAc,qBAAqB,cAAc,CACxE,EACA,EACD,CAQY,GAIX,EACA,EACA,EAAqB,EAAE,GAEvB,EAAkB,EAAM,CACtB,GAAG,EACH,UACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.mjs","names":[],"sources":["../../../../src/interpreter/getContent/plugins.ts"],"sourcesContent":["import type { Locale } from '@intlayer/types/allLocales';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type {\n DeclaredLocales,\n DictionaryKeys,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport { NodeType } from '@intlayer/types/nodeType';\nimport type {\n ConditionContent,\n EnumerationContent,\n FileContent,\n Gender,\n GenderContent,\n InsertionContent,\n NestedContent,\n TranslationContent,\n} from '../../transpiler';\nimport { getCondition } from '../getCondition';\nimport { getEnumeration } from '../getEnumeration';\nimport { getGender } from '../getGender';\nimport { getInsertion } from '../getInsertion';\nimport { type GetNestingResult, getNesting } from '../getNesting';\nimport { getTranslation } from '../getTranslation';\n\n/** ---------------------------------------------\n * PLUGIN DEFINITION\n * --------------------------------------------- */\n\n/**\n * A plugin/transformer that can optionally transform a node during a single DFS pass.\n * - `canHandle` decides if the node is transformable by this plugin.\n * - `transform` returns the transformed node (and does not recurse further).\n *\n * > `transformFn` is a function that can be used to deeply transform inside the plugin.\n */\nexport type Plugins = {\n id: string;\n canHandle: (node: any) => boolean;\n transform: (\n node: any,\n props: NodeProps,\n transformFn: (node: any, props: NodeProps) => any\n ) => any;\n};\n\n/** ---------------------------------------------\n * TRANSLATION PLUGIN\n * --------------------------------------------- */\n\nexport type UnionKeys<T> = T extends unknown ? keyof T : never;\nexport type ValueAtKey<T, K> = T extends unknown\n ? K extends keyof T\n ? T[K]\n : never\n : never;\n\nexport type TranslationCond<T, S, L extends LocalesValues> = T extends {\n nodeType: NodeType | string;\n [NodeType.Translation]: infer U;\n}\n ? U extends Record<PropertyKey, unknown>\n ? U[keyof U] extends Record<PropertyKey, unknown>\n ? {\n [K in UnionKeys<U[keyof U]>]: L extends keyof U\n ? K extends keyof U[L]\n ? U[L][K]\n : ValueAtKey<U[keyof U], K>\n : ValueAtKey<U[keyof U], K>;\n } extends infer Content\n ? DeepTransformContent<Content, S>\n : never\n : (L extends keyof U ? U[L] : U[keyof U]) extends infer Content\n ? DeepTransformContent<Content, S>\n : never\n : never\n : never;\n\n/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */\nexport const translationPlugin = (\n locale: LocalesValues,\n fallback?: LocalesValues\n): Plugins => ({\n id: 'translation-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Translation,\n transform: (node: TranslationContent, props, deepTransformNode) => {\n const result = {\n ...(node[NodeType.Translation] ?? {}),\n };\n\n for (const key in result) {\n const childProps = {\n ...props,\n children: result[key as keyof typeof result],\n keyPath: [\n ...props.keyPath,\n { type: NodeType.Translation, key } as KeyPath,\n ],\n };\n result[key as keyof typeof result] = deepTransformNode(\n result[key as keyof typeof result],\n childProps\n );\n }\n\n return getTranslation(result, locale, fallback);\n },\n});\n\n/** ---------------------------------------------\n * ENUMERATION PLUGIN\n * --------------------------------------------- */\n\nexport type EnumerationCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Enumeration]: object;\n}\n ? (\n quantity: number\n ) => DeepTransformContent<\n T[NodeType.Enumeration][keyof T[NodeType.Enumeration]],\n S\n >\n : never;\n\n/** Enumeration plugin. Replaces node with a function that takes quantity => string. */\nexport const enumerationPlugin: Plugins = {\n id: 'enumeration-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Enumeration,\n transform: (node: EnumerationContent, props, deepTransformNode) => {\n const result = { ...node[NodeType.Enumeration] };\n\n for (const key in result) {\n const child = result[key as unknown as keyof typeof result];\n const childProps = {\n ...props,\n children: child,\n keyPath: [\n ...props.keyPath,\n { type: NodeType.Enumeration, key } as KeyPath,\n ],\n };\n result[key as unknown as keyof typeof result] = deepTransformNode(\n child,\n childProps\n );\n }\n\n return (arg: number | { count: number }) => {\n const quantity = typeof arg === 'number' ? arg : arg.count;\n const subResult = getEnumeration(result, quantity);\n\n if (typeof subResult === 'function' && typeof arg === 'object') {\n return subResult(arg);\n }\n\n return subResult;\n };\n },\n};\n\n/** ---------------------------------------------\n * CONDITION PLUGIN\n * --------------------------------------------- */\n\nexport type ConditionCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Condition]: object;\n}\n ? (\n value: boolean | { value: boolean }\n ) => DeepTransformContent<\n T[NodeType.Condition][keyof T[NodeType.Condition]],\n S\n >\n : never;\n\n/** Condition plugin. Replaces node with a function that takes boolean => string. */\nexport const conditionPlugin: Plugins = {\n id: 'condition-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Condition,\n transform: (node: ConditionContent, props, deepTransformNode) => {\n const result = { ...node[NodeType.Condition] };\n\n for (const key in result) {\n const child = result[key as keyof typeof result];\n const childProps = {\n ...props,\n children: child,\n keyPath: [\n ...props.keyPath,\n { type: NodeType.Condition, key } as KeyPath,\n ],\n };\n result[key as unknown as keyof typeof result] = deepTransformNode(\n child,\n childProps\n );\n }\n\n return (arg: boolean | { value: boolean }) => {\n const value = typeof arg === 'boolean' ? arg : arg.value;\n const subResult = getCondition(result, value);\n\n if (typeof subResult === 'function' && typeof arg === 'object') {\n return subResult(arg);\n }\n\n return subResult;\n };\n },\n};\n\n/** ---------------------------------------------\n * INSERTION PLUGIN\n * --------------------------------------------- */\n\nexport type InsertionCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Insertion]: string;\n fields: readonly string[];\n}\n ? (\n values: {\n [K in T['fields'][number]]: string | number;\n }\n ) => DeepTransformContent<string, S>\n : never;\n\n/** Insertion plugin. Replaces node with a function that takes quantity => string. */\nexport const insertionPlugin: Plugins = {\n id: 'insertion-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Insertion,\n transform: (node: InsertionContent, props, deepTransformNode) => {\n const newKeyPath: KeyPath[] = [\n ...props.keyPath,\n {\n type: NodeType.Insertion,\n },\n ];\n\n const children = node[NodeType.Insertion];\n\n /** Insertion string plugin. Replaces string node with a component that render the insertion. */\n const insertionStringPlugin: Plugins = {\n id: 'insertion-string-plugin',\n canHandle: (node) => typeof node === 'string',\n transform: (node: string, subProps, deepTransformNode) => {\n const transformedResult = deepTransformNode(node, {\n ...subProps,\n children: node,\n plugins: [\n ...(props.plugins ?? ([] as Plugins[])).filter(\n (plugin) => plugin.id !== 'intlayer-node-plugin'\n ),\n ],\n });\n\n return (\n values: {\n [K in InsertionContent['fields'][number]]: string | number;\n }\n ) => {\n const children = getInsertion(transformedResult, values);\n\n return deepTransformNode(children, {\n ...subProps,\n plugins: props.plugins,\n children,\n });\n };\n },\n };\n\n return deepTransformNode(children, {\n ...props,\n children,\n keyPath: newKeyPath,\n plugins: [insertionStringPlugin, ...(props.plugins ?? [])],\n });\n },\n};\n\n/** ---------------------------------------------\n * GENDER PLUGIN\n * --------------------------------------------- */\n\nexport type GenderCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Gender]: object;\n}\n ? (\n value: Gender\n ) => DeepTransformContent<T[NodeType.Gender][keyof T[NodeType.Gender]], S>\n : never;\n\n/** Gender plugin. Replaces node with a function that takes gender => string. */\nexport const genderPlugin: Plugins = {\n id: 'gender-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.Gender,\n transform: (node: GenderContent, props, deepTransformNode) => {\n const result = { ...node[NodeType.Gender] };\n\n for (const key in result) {\n const child = result[key as keyof typeof result];\n const childProps = {\n ...props,\n children: child,\n keyPath: [...props.keyPath, { type: NodeType.Gender, key } as KeyPath],\n };\n result[key as keyof typeof result] = deepTransformNode(child, childProps);\n }\n\n return (value: Gender) => getGender(result, value);\n },\n};\n\n/** ---------------------------------------------\n * NESTED PLUGIN\n * --------------------------------------------- */\n\nexport type NestedCond<T, S, _L> = T extends {\n nodeType: NodeType | string;\n [NodeType.Nested]: infer U;\n}\n ? U extends {\n dictionaryKey: infer K extends DictionaryKeys;\n path?: infer P;\n }\n ? GetNestingResult<K, P, S>\n : never\n : never;\n\n/** Nested plugin. Replaces node with the result of `getNesting`. */\nexport const nestedPlugin = (locale?: LocalesValues): Plugins => ({\n id: 'nested-plugin',\n canHandle: (node) =>\n typeof node === 'object' &&\n (node?.nodeType === NodeType.Nested || node?.nodeType === 'nested'),\n transform: (node: NestedContent, props) =>\n getNesting(node.nested.dictionaryKey, node.nested.path, {\n ...props,\n locale: (locale ?? props.locale) as Locale,\n }),\n});\n\n/** ---------------------------------------------\n * FILE PLUGIN\n * --------------------------------------------- */\n\nexport type FileCond<T> = T extends {\n nodeType: NodeType | string;\n [NodeType.File]: string;\n content?: string;\n}\n ? string\n : never;\n\n/** File plugin. Replaces node with the result of `getNesting`. */\nexport const filePlugin: Plugins = {\n id: 'file-plugin',\n canHandle: (node) =>\n typeof node === 'object' && node?.nodeType === NodeType.File,\n transform: (node: FileContent, props, deepTransform) =>\n deepTransform(node.content, {\n ...props,\n children: node.content,\n }),\n};\n\n/**\n * PLUGIN RESULT\n */\n\n/**\n * Interface that defines the properties of a node.\n * This interface can be augmented in other packages, such as `react-intlayer`.\n */\nexport interface NodeProps {\n dictionaryKey: string;\n keyPath: KeyPath[];\n plugins?: Plugins[];\n locale?: Locale;\n dictionaryPath?: string;\n children?: any;\n}\n\n/**\n * Interface that defines the plugins that can be used to transform a node.\n * This interface can be augmented in other packages, such as `react-intlayer`.\n */\nexport interface IInterpreterPlugin<T, S, L extends LocalesValues> {\n translation: TranslationCond<T, S, L>;\n enumeration: EnumerationCond<T, S, L>;\n condition: ConditionCond<T, S, L>;\n insertion: InsertionCond<T, S, L>;\n gender: GenderCond<T, S, L>;\n nested: NestedCond<T, S, L>;\n file: FileCond<T>;\n}\n\n/**\n * Allow to avoid overwriting import from `intlayer` package when `IInterpreterPlugin<T>` interface is augmented in another package, such as `react-intlayer`.\n */\nexport type IInterpreterPluginState = {\n translation: true;\n enumeration: true;\n condition: true;\n insertion: true;\n gender: true;\n nested: true;\n file: true;\n};\n\n/**\n * Utility type to check if a plugin can be applied to a node.\n */\ntype CheckApplyPlugin<\n T,\n K extends keyof IInterpreterPlugin<T, S, L>,\n S,\n L extends LocalesValues = DeclaredLocales,\n> = K extends keyof S // Test if the key is a key of S.\n ? // Test if the key of S is true. Then the plugin can be applied.\n S[K] extends true\n ? // Test if the key of S exist\n IInterpreterPlugin<T, S, L>[K] extends never\n ? never\n : // Test if the plugin condition is true (if it's not, the plugin is skipped for this node)\n IInterpreterPlugin<T, S, L>[K]\n : never\n : never;\n\n/**\n * Traverse recursively through an object or array, applying each plugin as needed.\n */\ntype Traverse<T, S, L extends LocalesValues = DeclaredLocales> =\n T extends ReadonlyArray<infer U> // Turn any read-only array into a plain mutable array\n ? Array<DeepTransformContent<U, S, L>>\n : T extends object\n ? { [K in keyof T]: DeepTransformContent<T[K], S, L> }\n : T;\n\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\n\n/**\n * Traverse recursively through an object or array, applying each plugin as needed.\n */\nexport type DeepTransformContent<\n T,\n S = IInterpreterPluginState,\n L extends LocalesValues = DeclaredLocales,\n> =\n IsAny<T> extends true\n ? T\n : CheckApplyPlugin<T, keyof IInterpreterPlugin<T, S, L>, S, L> extends never // Check if there is a plugin for T:\n ? // No plugin was found, so try to transform T recursively:\n Traverse<T, S, L>\n : // A plugin was found – use the plugin’s transformation.\n CheckApplyPlugin<T, keyof IInterpreterPlugin<T, S, L>, S, L>;\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDictionary.mjs","names":[],"sources":["../../../src/interpreter/getDictionary.ts"],"sourcesContent":["import type { Dictionary } from '@intlayer/types/dictionary';\nimport type {\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport type {\n DeepTransformContent,\n IInterpreterPluginState,\n NodeProps,\n Plugins,\n} from './getContent';\nimport { getBasePlugins, getContent } from './getContent/getContent';\n\n/**\n * Transforms a dictionary in a single pass, applying each plugin as needed.\n *\n * @param dictionary The dictionary to transform.\n * @param locale The locale to use if your transformers need it (e.g. for translations).\n * @param additionalPlugins An array of NodeTransformer that define how to transform recognized nodes.\n * If omitted, we’ll use a default set of plugins.\n */\nexport const getDictionary = <\n T extends Dictionary,\n L extends LocalesValues = DeclaredLocales,\n>(\n dictionary: T,\n locale?: L,\n plugins: Plugins[] = getBasePlugins(locale)\n): DeepTransformContent<T['content'], IInterpreterPluginState, L> => {\n const props: NodeProps = {\n dictionaryKey: dictionary.key,\n dictionaryPath: dictionary.filePath,\n keyPath: [],\n plugins,\n };\n\n return getContent(dictionary.content, props, plugins);\n};\n"],"mappings":"6EAqBA,MAAa,GAIX,EACA,EACA,EAAqB,EAAe,EAAO,GACwB,CACnE,IAAM,EAAmB,CACvB,cAAe,EAAW,IAC1B,eAAgB,EAAW,SAC3B,QAAS,EAAE,CACX,UACD,CAED,OAAO,EAAW,EAAW,QAAS,EAAO,EAAQ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getIntlayer.mjs","names":[],"sources":["../../../src/interpreter/getIntlayer.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport { colorizeKey, getAppLogger } from '@intlayer/config/logger';\nimport { getDictionaries } from '@intlayer/dictionaries-entry';\nimport type {\n DeclaredLocales,\n DictionaryKeys,\n DictionaryRegistryContent,\n DictionaryRegistryElement,\n LocalesValues,\n} from '@intlayer/types/module_augmentation';\nimport type {\n DeepTransformContent,\n IInterpreterPluginState,\n Plugins,\n} from './getContent';\nimport { getDictionary } from './getDictionary';\n\n/**\n * Creates a Recursive Proxy that returns the path of the accessed key\n * stringified. This prevents the app from crashing on undefined access.\n */\nconst createSafeFallback = (path = ''): any => {\n return new Proxy(\n // Target is a function so it can be called if the dictionary expects a function\n () => path,\n {\n get: (_target, prop) => {\n // Handle common object methods to prevent infinite recursion or weird behavior\n if (\n prop === 'toJSON' ||\n prop === Symbol.toPrimitive ||\n prop === 'toString'\n ) {\n return () => path;\n }\n if (prop === 'then') {\n return undefined; // Prevent it from being treated as a Promise\n }\n\n // Recursively build the path (e.g., \"myDictionary.home.title\")\n const nextPath = path ? `${path}.${String(prop)}` : String(prop);\n return createSafeFallback(nextPath);\n },\n // If the code tries to execute the missing key as a function: t.title()\n apply: () => {\n return path;\n },\n }\n );\n};\n\nexport const getIntlayer = <\n T extends DictionaryKeys,\n L extends LocalesValues = DeclaredLocales,\n>(\n key: T,\n locale?: L,\n plugins?: Plugins[]\n): DeepTransformContent<\n DictionaryRegistryContent<T>,\n IInterpreterPluginState,\n L\n> => {\n const dictionaries = getDictionaries();\n const dictionary = dictionaries[key as T] as DictionaryRegistryElement<T>;\n\n if (!dictionary) {\n // Log a warning instead of throwing (so developers know it's missing)\n const logger = getAppLogger(configuration);\n logger(\n `Dictionary ${colorizeKey(key as string)} was not found. Using fallback proxy.`,\n {\n level: 'warn',\n isVerbose: true,\n }\n );\n\n if (process.env.NODE_ENV === 'development') {\n // Return the Safe Proxy\n // We initialize it with the dictionary key name so the UI shows \"my-dictionary.someKey\"\n return createSafeFallback(key as string);\n }\n\n return createSafeFallback(key as string);\n }\n\n return getDictionary<DictionaryRegistryElement<T>, L>(\n dictionary,\n locale,\n plugins\n );\n};\n"],"mappings":"iOAqBA,MAAM,GAAsB,EAAO,KAC1B,IAAI,UAEH,EACN,CACE,KAAM,EAAS,IAAS,CAEtB,GACE,IAAS,UACT,IAAS,OAAO,aAChB,IAAS,WAET,UAAa,EAEX,OAAS,OAMb,OAAO,EADU,EAAO,GAAG,EAAK,GAAG,OAAO,EAAK,GAAK,OAAO,EAAK,CAC7B,EAGrC,UACS,EAEV,CACF,CAGU,GAIX,EACA,EACA,IAKG,CAEH,IAAM,EADe,GAAiB,CACN,GAsBhC,OApBK,EAoBE,EACL,EACA,EACA,EACD,EAtBgB,EAAa,EAAc,CAExC,cAAc,EAAY,EAAc,CAAC,uCACzC,CACE,MAAO,OACP,UAAW,GACZ,CACF,CAQM,EAAmB,EAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNesting.mjs","names":[],"sources":["../../../src/interpreter/getNesting.ts"],"sourcesContent":["import type { DictionaryKeys, DictionaryRegistryContent } from '@intlayer/types/module_augmentation';\nimport type { GetSubPath } from '@intlayer/types/dictionary';\nimport type { ValidDotPathsFor } from '../transpiler';\nimport type {\n DeepTransformContent,\n IInterpreterPluginState,\n NodeProps,\n} from './getContent';\nimport { getIntlayer } from './getIntlayer';\n\nexport type GetNestingResult<\n K extends DictionaryKeys,\n P = undefined,\n S = IInterpreterPluginState,\n> = GetSubPath<DeepTransformContent<DictionaryRegistryContent<K>, S>, P>;\n\n/**\n * Extracts content from another dictionary by its key and an optional path.\n *\n * This allows for reusing content across different dictionaries.\n *\n * @param dictionaryKey - The key of the dictionary to nest.\n * @param path - Optional dot-separated path to a specific field within the nested dictionary.\n * @param props - Optional properties like locale and plugins.\n * @returns The nested content.\n *\n * @example\n * ```ts\n * const content = getNesting(\"common\", \"buttons.save\");\n * // 'Save'\n * ```\n */\nexport const getNesting = <K extends DictionaryKeys, P>(\n dictionaryKey: K,\n path?: P extends ValidDotPathsFor<K> ? P : never,\n props?: NodeProps\n): GetNestingResult<K, P> => {\n const dictionary = getIntlayer(dictionaryKey, props?.locale, props?.plugins);\n\n if (typeof path === 'string') {\n const pathArray = (path as string).split('.');\n let current: any = dictionary;\n\n for (const key of pathArray) {\n // Safely traverse down the object using the path\n current = current?.[key];\n // If we cannot find the path, return the whole dictionary as a fallback\n if (current === undefined) {\n return dictionary as any;\n }\n }\n\n return current;\n }\n\n // Default or error handling if path is not a string or otherwise undefined\n return dictionary as any;\n};\n"],"mappings":"gDAgCA,MAAa,GACX,EACA,EACA,IAC2B,CAC3B,IAAM,EAAa,EAAY,EAAe,GAAO,OAAQ,GAAO,QAAQ,CAE5E,GAAI,OAAO,GAAS,SAAU,CAC5B,IAAM,EAAa,EAAgB,MAAM,IAAI,CACzC,EAAe,EAEnB,IAAK,IAAM,KAAO,EAIhB,GAFA,EAAU,IAAU,GAEhB,IAAY,IAAA,GACd,OAAO,EAIX,OAAO,EAIT,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getHTMLCustomComponents.mjs","names":[],"sources":["../../../../src/transpiler/html/getHTMLCustomComponents.ts"],"sourcesContent":["import { HTML_TAGS } from './index';\n\nconst parseAttributes = (attributesString: string): Record<string, string> => {\n const attributes: Record<string, string> = {};\n\n if (!attributesString || !attributesString.trim()) {\n return attributes;\n }\n\n // Regex to match attribute names\n // Matches: name=\"value\", name='value', name=value, or just name\n const attrRegex =\n /([a-zA-Z0-9-:_@]+)(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?/g;\n\n const matches = [...attributesString.matchAll(attrRegex)];\n\n matches.forEach((match) => {\n const attrName = match[1];\n attributes[attrName] = 'string';\n });\n\n return attributes;\n};\n\n/**\n * Extracts component names from an HTML string.\n * - Standard HTML tags are set to `true`.\n * - Custom components are parsed to extract their attributes/props.\n */\nexport const getHTMLCustomComponents = (\n content: string\n): Record<string, Record<string, string> | true> => {\n if (typeof content !== 'string') {\n throw new Error('content must be a string');\n }\n\n // Regex to match tags: <Tag ...>, </Tag>, or <Tag ... />\n // Captures: 1: Closing slash (if any), 2: Tag Name, 3: Attributes, 4: Self-closing slash (if any)\n const tagRegex = /<(\\/)?([a-zA-Z0-9.-]+)\\s*([\\s\\S]*?)(\\/?)>/g;\n const matches = [...content.matchAll(tagRegex)];\n\n const components: Record<string, Record<string, string> | true> = {};\n\n matches.forEach((match) => {\n const isClosing = !!match[1];\n const tagName = match[2];\n const attributesString = match[3];\n const isSelfClosing = !!match[4];\n\n // Component extraction logic\n if ((HTML_TAGS as readonly string[]).includes(tagName.toLowerCase())) {\n components[tagName] = true;\n return;\n }\n\n if (!components[tagName]) {\n components[tagName] = {};\n }\n\n // Safety check if we somehow have a collision or logic issue, though loop order handles it\n if (components[tagName] === true) {\n return;\n }\n\n if (isClosing) {\n return;\n }\n\n // Parse attributes for custom components\n const attributes = parseAttributes(attributesString);\n const componentDef = components[tagName] as Record<string, string>;\n Object.assign(componentDef, attributes);\n\n // If not self-closing, assume it has children\n if (!isSelfClosing) {\n componentDef.children = 'string';\n }\n });\n\n return components;\n};\n"],"mappings":"2CAEA,MAAM,EAAmB,GAAqD,CAC5E,IAAM,EAAqC,EAAE,CAkB7C,MAhBI,CAAC,GAAoB,CAAC,EAAiB,MAAM,EASjC,CAAC,GAAG,EAAiB,SAFnC,6DAEsD,CAAC,CAEjD,QAAS,GAAU,CACzB,IAAM,EAAW,EAAM,GACvB,EAAW,GAAY,UACvB,CAbO,GAuBE,EACX,GACkD,CAClD,GAAI,OAAO,GAAY,SACrB,MAAU,MAAM,2BAA2B,CAM7C,IAAM,EAAU,CAAC,GAAG,EAAQ,SADX,6CAC6B,CAAC,CAEzC,EAA4D,EAAE,CAsCpE,OApCA,EAAQ,QAAS,GAAU,CACzB,IAAM,EAAY,CAAC,CAAC,EAAM,GACpB,EAAU,EAAM,GAChB,EAAmB,EAAM,GACzB,EAAgB,CAAC,CAAC,EAAM,GAG9B,GAAK,EAAgC,SAAS,EAAQ,aAAa,CAAC,CAAE,CACpE,EAAW,GAAW,GACtB,OAYF,GATK,EAAW,KACd,EAAW,GAAW,EAAE,EAItB,EAAW,KAAa,IAIxB,EACF,OAIF,IAAM,EAAa,EAAgB,EAAiB,CAC9C,EAAe,EAAW,GAChC,OAAO,OAAO,EAAc,EAAW,CAGlC,IACH,EAAa,SAAW,WAE1B,CAEK"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"html.mjs","names":[],"sources":["../../../../src/transpiler/html/html.ts"],"sourcesContent":["import type { TypedNodeModel } from '@intlayer/types/nodeType';\nimport { formatNodeType, NodeType } from '@intlayer/types/nodeType';\nimport { getHTMLCustomComponents } from './getHTMLCustomComponents';\nimport { validateHTML } from './validateHTML';\n\ntype PropsType = 'number' | 'string' | 'node';\n\ntype ComponentName = string;\n\nexport type HTMLContentConstructor<\n Content = unknown,\n T extends Record<string, any> = {},\n> = TypedNodeModel<NodeType.HTML, Content, T>;\n\nexport type HTMLContent<\n Content = unknown,\n Components extends Record<ComponentName, PropsType> = Record<\n ComponentName,\n PropsType\n >,\n> = HTMLContentConstructor<\n Content,\n {\n tags: string[] | Components;\n }\n>;\n\n/**\n * Function intended to be used to build intlayer dictionaries.\n *\n * Allow to parse HTML/JSX-like strings and replace tags with components during interpretation.\n *\n * Usage:\n *\n * ```ts\n * html('Hello <b>World</b>')\n * ```\n *\n */\nexport const html = <\n Components extends Record<string, any> = Record<string, any>,\n Content = unknown,\n>(\n content: Content,\n components?: Components\n): HTMLContent<Content, Components> => {\n const getComponents = () => {\n if (components) {\n return components;\n }\n\n if (typeof content === 'string') {\n const { issues } = validateHTML(content);\n\n for (const issue of issues) {\n if (issue.type === 'error') {\n console.error(`[intlayer/html] ${issue.message}`);\n } else {\n console.warn(`[intlayer/html] ${issue.message}`);\n }\n }\n\n return getHTMLCustomComponents(content);\n }\n\n let stringContent: any;\n\n if (typeof content === 'function') {\n stringContent = content();\n } else if (typeof (content as Promise<string>).then === 'function') {\n stringContent = async () =>\n getHTMLCustomComponents((await (content as Promise<string>)) as string);\n }\n\n if (typeof stringContent === 'string') {\n return getHTMLCustomComponents(stringContent);\n }\n\n try {\n return getHTMLCustomComponents(JSON.stringify(content));\n } catch (_e) {\n return [];\n }\n };\n\n return formatNodeType(NodeType.HTML, content, {\n tags: getComponents(),\n });\n};\n"],"mappings":"kMAuCA,MAAa,GAIX,EACA,IAyCO,EAAe,EAAS,KAAM,EAAS,CAC5C,UAxC0B,CAC1B,GAAI,EACF,OAAO,EAGT,GAAI,OAAO,GAAY,SAAU,CAC/B,GAAM,CAAE,UAAW,EAAa,EAAQ,CAExC,IAAK,IAAM,KAAS,EACd,EAAM,OAAS,QACjB,QAAQ,MAAM,mBAAmB,EAAM,UAAU,CAEjD,QAAQ,KAAK,mBAAmB,EAAM,UAAU,CAIpD,OAAO,EAAwB,EAAQ,CAGzC,IAAI,EASJ,GAPI,OAAO,GAAY,WACrB,EAAgB,GAAS,CAChB,OAAQ,EAA4B,MAAS,aACtD,EAAgB,SACd,EAAyB,MAAO,EAAuC,EAGvE,OAAO,GAAkB,SAC3B,OAAO,EAAwB,EAAc,CAG/C,GAAI,CACF,OAAO,EAAwB,KAAK,UAAU,EAAQ,CAAC,MAC5C,CACX,MAAO,EAAE,KAKU,CACtB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"mappings":";;;;;;;cAoMa,mCAAA,GACX,aAAA,EAAe,aAAA,KACd,OAAA;;;AAFH;;;;;;;;;AA8LA;;;cAAa,mCAAA,aACD,WAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,IAAA,EAAM,CAAA,EACN,aAAA,EAAe,CAAA,EACf,SAAA,EAAW,SAAA;AAAA,cAoBA,sCAAA,GACX,UAAA,EAAY,UAAA,EACZ,aAAA,EAAe,aAAA;;;OAAa,2BAAA,CAAA,YAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"mappings":";;;;;;;cAqCa,4BAAA,GACX,MAAA,EAAQ,aAAA,EACR,QAAA,GAAW,aAAA,KACV,OAAA;;;AAHH;;;;cAuFa,gCAAA,aACD,WAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,IAAA,EAAM,CAAA,EACN,MAAA,EAAQ,CAAA,EACR,SAAA,EAAW,SAAA,EACX,QAAA,GAAW,aAAA,KAUL,oBAAA,CAAqB,CAAA;AAAA,cAGhB,mCAAA,GACX,UAAA,EAAY,UAAA,EACZ,MAAA,GAAQ,aAAA,EAER,QAAA,GAAW,aAAA;;;OAAa,2BAAA,CAAA,YAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"mappings":";;;;;;cAmCa,yBAAA,GACX,IAAA,EAAM,WAAA,EACN,OAAA,EAAS,aAAA,GAAgB,aAAA,IACzB,SAAA,EAAW,SAAA;AAAA,cAwBA,4BAAA,GACX,UAAA,EAAY,UAAA,EACZ,MAAA,EAAQ,aAAA,GAAgB,aAAA;;;OAAa,2BAAA,CAAA,YAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getLocalizedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getLocalizedContent.ts"],"mappings":";;;;;;;;AAkBA;;;;;cAAa,mBAAA,aACD,WAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,IAAA,EAAM,CAAA,EACN,MAAA,EAAQ,CAAA,EACR,SAAA,EAAW,SAAA,EACX,QAAA,GAAW,aAAA,KAUL,oBAAA,CAAqB,CAAA;AAAA,cAGhB,sBAAA,aACD,UAAA,YACA,aAAA,EAEV,UAAA,EAAY,CAAA,EACZ,MAAA,EAAQ,CAAA,EACR,QAAA,GAAW,aAAA,KACV,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMaskContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMaskContent.ts"],"mappings":";;;;;cAYa,eAAA,EAAiB,OAAA;AAAA,cAMjB,cAAA,GAAkB,MAAA,EAAQ,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMissingLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMissingLocalesContent.ts"],"mappings":";;;;;;;cAiGa,yBAAA,GACX,OAAA,EAAS,MAAA,IACT,eAAA,GAAkB,MAAA,EAAQ,MAAA,cACzB,OAAA;;AAHH;;;;;cA0Ga,wBAAA,aAAsC,WAAA,EACjD,IAAA,EAAM,CAAA,EACN,OAAA,EAAS,aAAA,IACT,SAAA,EAAW,SAAA,KACV,MAAA;AAAA,cAkBU,sCAAA,GACX,UAAA,EAAY,UAAA,EACZ,OAAA,GAAS,aAAA,OAA8D,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMultilingualDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMultilingualDictionary.ts"],"mappings":";;;;;AAmCA;;;;;;;;;;;;;;;;;;;;;;;cAAa,yBAAA,GACX,UAAA,EAAY,UAAA,KACX,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getReplacedValuesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getReplacedValuesContent.ts"],"mappings":";;;;cA8Da,wBAAA,GACX,IAAA,EAAM,WAAA,EACN,KAAA,6BACA,SAAA,EAAW,SAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSplittedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getSplittedContent.ts"],"mappings":";;;;KAIK,qBAAA,KAA0B,WAAA,IAAe,MAAA,CAAO,eAAA,EAAiB,CAAA;EACpE,MAAA,EAAQ,CAAA;AAAA;AAAA,cAsKG,kBAAA,GACX,OAAA,EAAS,WAAA,KACR,qBAAA;;;;;;;;;;;;;;;;;;AAFH;;;;;;;;;AAoDA;;;;;cAAa,4BAAA,GACX,UAAA,EAAY,UAAA,KACX,qBAAA,CAAsB,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"insertContentInDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/insertContentInDictionary.ts"],"mappings":";;;;;;AA0SA;;;;;;;;;;;;;;;cAAa,yBAAA,GACX,UAAA,EAAY,UAAA,EACZ,OAAA,EAAS,UAAA,aACT,MAAA,GAAS,aAAA,KACR,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"editDictionaryByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/editDictionaryByKeyPath.ts"],"mappings":";;;;cAOa,uBAAA,GACX,iBAAA,EAAmB,WAAA,EACnB,OAAA,EAAS,OAAA,IACT,QAAA,EAAU,WAAA,KACT,WAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"mappings":";;;;;cAKa,uBAAA,GACX,iBAAA,EAAmB,WAAA,EACnB,OAAA,EAAS,OAAA,IACT,cAAA,GAAiB,aAAA,KAChB,WAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDefaultNode.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getDefaultNode.ts"],"mappings":";;;;;cAIa,cAAA,GACX,QAAA,EAAU,QAAA,EACV,OAAA,EAAS,aAAA,IACT,OAAA,GAAU,WAAA,KACT,WAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getEmptyNode.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getEmptyNode.ts"],"mappings":";;;cAGa,YAAA,GAAgB,OAAA,EAAS,WAAA,KAAc,WAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNodeChildren.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getNodeChildren.ts"],"mappings":";;;cAGa,eAAA,GAAmB,OAAA,EAAS,WAAA,KAAc,WAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNodeType.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getNodeType.ts"],"mappings":";;;;cAuBa,WAAA,GAAe,OAAA,EAAS,WAAA,KAAc,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mergeDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/mergeDictionaries.ts"],"mappings":";;;cAiKa,iBAAA,GAAqB,YAAA,EAAc,UAAA,OAAe,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalizeDictionary.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/normalizeDictionary.ts"],"mappings":";;;;cAOa,mBAAA,GACX,UAAA,EAAY,UAAA,EACZ,aAAA,EAAe,cAAA,KACd,UAAA;AAAA,cAmCU,qBAAA,GACX,YAAA,EAAc,UAAA,IACd,aAAA,EAAe,cAAA,KACd,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"orderDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/orderDictionaries.ts"],"mappings":";;;;;;;AAUA;;;;cAAa,iBAAA,GACX,YAAA,EAAc,UAAA,IACd,aAAA,GADwB,uBAAA,CACxB,cAAA,KACC,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/removeContentNodeByKeyPath.ts"],"mappings":";;;;cAIa,0BAAA,GACX,iBAAA,EAAmB,WAAA,EACnB,OAAA,EAAS,OAAA,OACR,WAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"renameContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/renameContentNodeByKeyPath.ts"],"mappings":";;;;cAIa,0BAAA,GACX,iBAAA,EAAmB,WAAA,EACnB,MAAA,EAAQ,OAAA,SACR,OAAA,EAAS,OAAA,OACR,WAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateNodeChildren.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/updateNodeChildren.ts"],"mappings":";;;cAGa,kBAAA,aACD,WAAA,YACA,WAAA,EAEV,OAAA,EAAS,CAAA,EACT,WAAA,EAAa,CAAA,KACZ,WAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"compact.d.ts","names":[],"sources":["../../../src/formatters/compact.ts"],"mappings":";;;;;AAeA;;;;;;;;;cAAa,OAAA,GACX,KAAA,mBACA,OAAA,GAAU,IAAA,CAAK,mBAAA;EAAwB,MAAA,GAAS,aAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"currency.d.ts","names":[],"sources":["../../../src/formatters/currency.ts"],"mappings":";;;;;AAeA;;;;;;;;;cAAa,QAAA,GACX,KAAA,mBACA,OAAA,GAAU,IAAA,CAAK,mBAAA;EAAwB,MAAA,GAAS,aAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"date.d.ts","names":[],"sources":["../../../src/formatters/date.ts"],"mappings":";;;;;AAoDA;;;;;;;;;cAAa,IAAA,GACX,IAAA,EAAM,IAAA,oBACN,OAAA,GAAU,IAAA,CAAK,qBAAA;EAA0B,MAAA,GAAS,aAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","names":[],"sources":["../../../src/formatters/list.ts"],"mappings":";;;;;AAmBA;;;;;;;;;;;;;cAAa,IAAA,GACX,MAAA,uBAEA,OAAA,GAAU,IAAA,CAAK,iBAAA;EAAsB,MAAA,GAAS,aAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.d.ts","names":[],"sources":["../../../src/formatters/number.ts"],"mappings":";;;;;AAWA;;;;;cAAa,MAAA,GACX,KAAA,mBACA,OAAA,GAAU,IAAA,CAAK,mBAAA;EAAwB,MAAA,GAAS,aAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"percentage.d.ts","names":[],"sources":["../../../src/formatters/percentage.ts"],"mappings":";;;;;AAWA;;;;;cAAa,UAAA,GACX,KAAA,mBACA,OAAA,GAAU,IAAA,CAAK,mBAAA;EAAwB,MAAA,GAAS,aAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"relativeTime.d.ts","names":[],"sources":["../../../src/formatters/relativeTime.ts"],"mappings":";;;KAIK,gBAAA,GAAmB,IAAA,CAAK,sBAAA;AAAA,cA6BhB,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 +0,0 @@
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"}