@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 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -1,88 +1,80 @@
1
- import { ConditionContent, ConditionContentStates, cond as condition } from "./transpiler/condition/condition.js";
2
- import { EnterFormat, EnumerationContent, EnumerationContentState, enu as enumeration } from "./transpiler/enumeration/enumeration.js";
3
- import { FileContent, FileContentConstructor, file, fileContent } from "./transpiler/file/file.js";
4
- import { Gender, GenderContent, GenderContentStates, gender } from "./transpiler/gender/gender.js";
5
- import { HTMLContent, HTMLContentConstructor, html } from "./transpiler/html/html.js";
6
- import { HTMLTagsType, HTML_TAGS } from "./transpiler/html/htmlTags.js";
7
- import { HTMLValidationIssue, HTMLValidationResult, VOID_ELEMENTS, validateHTML } from "./transpiler/html/validateHTML.js";
8
- import { getInsertionValues } from "./transpiler/insertion/getInsertionValues.js";
9
- import { InsertionContent, InsertionContentConstructor, insert as insertion } from "./transpiler/insertion/insertion.js";
10
- import { getMarkdownMetadata } from "./transpiler/markdown/getMarkdownMetadata.js";
11
- import { MarkdownContent, MarkdownContentConstructor, md as markdown } from "./transpiler/markdown/markdown.js";
12
- import { MarkdownValidationResult, validateMarkdown } from "./transpiler/markdown/validateMarkdown.js";
13
- import { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nest as nesting } from "./transpiler/nesting/nesting.js";
14
- import { TranslationContent, t as translation } from "./transpiler/translation/translation.js";
15
- import { getCondition } from "./interpreter/getCondition.js";
16
- import { GetNestingResult, getNesting } from "./interpreter/getNesting.js";
17
- import { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin } from "./interpreter/getContent/plugins.js";
18
- import { deepTransformNode } from "./interpreter/getContent/deepTransform.js";
19
- import { getBasePlugins, getContent } from "./interpreter/getContent/getContent.js";
20
- import { getDictionary } from "./interpreter/getDictionary.js";
21
- import { findMatchingCondition, getEnumeration } from "./interpreter/getEnumeration.js";
22
- import { getHTML } from "./interpreter/getHTML.js";
23
- import { getIntlayer } from "./interpreter/getIntlayer.js";
24
- import { getTranslation } from "./interpreter/getTranslation.js";
25
- import { splitInsertionTemplate } from "./interpreter/splitAndJoinInsertion.js";
26
- import { filterMissingTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary } from "./deepTransformPlugins/getFilterMissingTranslationsContent.js";
27
- import { filterTranslationsOnlyPlugin, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary } from "./deepTransformPlugins/getFilterTranslationsOnlyContent.js";
28
- import { getFilteredLocalesContent, getFilteredLocalesDictionary } from "./deepTransformPlugins/getFilteredLocalesContent.js";
29
- import { getLocalizedContent, getPerLocaleDictionary } from "./deepTransformPlugins/getLocalizedContent.js";
30
- import { buildMaskPlugin, getMaskContent } from "./deepTransformPlugins/getMaskContent.js";
31
- import { checkMissingLocalesPlugin, getMissingLocalesContent, getMissingLocalesContentFromDictionary } from "./deepTransformPlugins/getMissingLocalesContent.js";
32
- import { getMultilingualDictionary } from "./deepTransformPlugins/getMultilingualDictionary.js";
33
- import { getReplacedValuesContent } from "./deepTransformPlugins/getReplacedValuesContent.js";
34
- import { getSplittedContent, getSplittedDictionaryContent } from "./deepTransformPlugins/getSplittedContent.js";
35
- import { insertContentInDictionary } from "./deepTransformPlugins/insertContentInDictionary.js";
36
- import { editDictionaryByKeyPath } from "./dictionaryManipulator/editDictionaryByKeyPath.js";
37
- import { getContentNodeByKeyPath } from "./dictionaryManipulator/getContentNodeByKeyPath.js";
38
- import { getDefaultNode } from "./dictionaryManipulator/getDefaultNode.js";
39
- import { getEmptyNode } from "./dictionaryManipulator/getEmptyNode.js";
40
- import { getNodeChildren } from "./dictionaryManipulator/getNodeChildren.js";
41
- import { getNodeType } from "./dictionaryManipulator/getNodeType.js";
42
- import { mergeDictionaries } from "./dictionaryManipulator/mergeDictionaries.js";
43
- import { normalizeDictionaries, normalizeDictionary } from "./dictionaryManipulator/normalizeDictionary.js";
44
- import { orderDictionaries } from "./dictionaryManipulator/orderDictionaries.js";
45
- import { removeContentNodeByKeyPath } from "./dictionaryManipulator/removeContentNodeByKeyPath.js";
46
- import { renameContentNodeByKeyPath } from "./dictionaryManipulator/renameContentNodeByKeyPath.js";
47
- import { updateNodeChildren } from "./dictionaryManipulator/updateNodeChildren.js";
48
- import { compact } from "./formatters/compact.js";
49
- import { currency } from "./formatters/currency.js";
50
- import { date } from "./formatters/date.js";
51
- import { CachedIntl, bindIntl, createCachedIntl } from "./utils/intl.js";
52
- import { list } from "./formatters/list.js";
53
- import { number } from "./formatters/number.js";
54
- import { percentage } from "./formatters/percentage.js";
55
- import { relativeTime } from "./formatters/relativeTime.js";
56
- import { units } from "./formatters/units.js";
57
- import { ProcessedStorageAttributes, getStorageAttributes } from "./getStorageAttributes.js";
58
- import { LocaleStorage, LocaleStorageOptions, getLocaleFromStorage, setLocaleInStorage } from "./utils/localeStorage.js";
59
- import { getBrowserLocale, localeStorageOptions } from "./localization/getBrowserLocale.js";
60
- import { getHTMLTextDir } from "./localization/getHTMLTextDir.js";
61
- import { getLocale } from "./localization/getLocale.js";
62
- import { getLocaleFromPath } from "./localization/getLocaleFromPath.js";
63
- import { getLocaleLang } from "./localization/getLocaleLang.js";
64
- import { getLocaleName } from "./localization/getLocaleName.js";
65
- import { getLocalizedUrl } from "./localization/getLocalizedUrl.js";
66
- import { getMultilingualUrls } from "./localization/getMultilingualUrls.js";
67
- import { getPathWithoutLocale } from "./localization/getPathWithoutLocale.js";
68
- import { GetPrefixOptions, GetPrefixResult, getPrefix } from "./localization/getPrefix.js";
69
- import { localeDetector } from "./localization/localeDetector.js";
70
- import { localeFlatMap, localeMap, localeRecord } from "./localization/localeMapper.js";
71
- import { localeResolver } from "./localization/localeResolver.js";
72
- import { LocalizedPathResult, getCanonicalPath, getInternalPath, getLocalizedPath, getRewritePath, getRewriteRules } from "./localization/rewriteUtils.js";
73
- import { validatePrefix } from "./localization/validatePrefix.js";
74
- import { BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, CustomComponentNode, ElementType, EscapedTextNode, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, HTMLCommentNode, HTMLNode, HTMLSelfClosingNode, HTMLTag, HeadingNode, HeadingSetextNode, ImageNode, ItalicTextNode, LinkAngleBraceNode, LinkBareURLNode, LinkNode, MarkdownContext, MarkdownOptions, MarkdownRuntime, MarkedTextNode, NestedParser, NewlineNode, OrderedListNode, ParagraphNode, ParseState, Parser, ParserResult, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, Rules, StrikethroughTextNode, TableNode, TableSeparatorNode, TextNode, UnorderedListNode } from "./markdown/types.js";
75
- import { compile, compileWithOptions, createCompiler } from "./markdown/compiler.js";
76
- import { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, GFM_TASK_R, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, INLINE_SKIP_R, INTERPOLATION_R, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, ListType, NAMED_CODES_TO_UNICODE, NP_TABLE_R, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, PARAGRAPH_R, Priority, PriorityValue, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, RuleType, RuleTypeValue, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex } from "./markdown/constants.js";
77
- import { parserFor } from "./markdown/parser.js";
78
- import { createRenderer, renderFor } from "./markdown/renderer.js";
79
- import { allowInline, anyScopeRegex, attributeValueToNodePropValue, blockRegex, captureNothing, cx, get, inlineRegex, normalizeAttributeKey, normalizeWhitespace, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, qualifies, renderNothing, sanitizer, simpleInlineRegex, slugify, some, startsWith, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, unquote } from "./markdown/utils.js";
80
- import { JsonValue, icuToIntlayerFormatter, intlayerToICUFormatter } from "./messageFormat/ICU.js";
81
- import { i18nextToIntlayerFormatter, intlayerToI18nextFormatter } from "./messageFormat/i18next.js";
82
- import { intlayerToVueI18nFormatter, vueI18nToIntlayerFormatter } from "./messageFormat/vue-i18n.js";
83
- import { checkIsURLAbsolute } from "./utils/checkIsURLAbsolute.js";
84
- import { getCookie } from "./utils/getCookie.js";
85
- import { isSameKeyPath } from "./utils/isSameKeyPath.js";
86
- import { isValidElement } from "./utils/isValidReactElement.js";
87
- import { parseYaml } from "./utils/parseYaml.js";
88
- export { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, CachedIntl, CachedIntl as Intl, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, ConditionCond, ConditionContent, ConditionContentStates, CustomComponentNode, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, DeepTransformContent, DotPath, ElementType, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, EscapedTextNode, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, FileCond, FileContent, FileContentConstructor, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, GFM_TASK_R, Gender, GenderCond, GenderContent, GenderContentStates, GetNestingResult, GetPrefixOptions, GetPrefixResult, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTMLCommentNode, HTMLContent, HTMLContentConstructor, HTMLNode, HTMLSelfClosingNode, HTMLTag, HTMLTagsType, HTMLValidationIssue, HTMLValidationResult, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, HTML_TAGS, HeadingNode, HeadingSetextNode, IInterpreterPlugin, IInterpreterPluginState, INLINE_SKIP_R, INTERPOLATION_R, ImageNode, InsertionCond, InsertionContent, InsertionContentConstructor, IsAny, ItalicTextNode, JsonValue, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, LinkAngleBraceNode, LinkBareURLNode, LinkNode, ListType, LocaleStorage, LocaleStorageOptions, LocalizedPathResult, MarkdownContent, MarkdownContentConstructor, MarkdownContext, MarkdownOptions, MarkdownRuntime, HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, MarkedTextNode, NAMED_CODES_TO_UNICODE, NP_TABLE_R, NestedCond, NestedContent, NestedContentState, NestedParser, NewlineNode, NodeProps, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, OrderedListNode, PARAGRAPH_R, ParagraphNode, ParseState, Parser, ParserResult, Plugins, Priority, PriorityValue, ProcessedStorageAttributes, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, RuleType, RuleTypeValue, Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, StrikethroughTextNode, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, TableNode, TableSeparatorNode, TextNode, TranslationCond, TranslationContent, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, UnionKeys, UnorderedListNode, VOID_ELEMENTS, ValidDotPathsFor, ValueAtKey, allowInline, anyScopeRegex, attributeValueToNodePropValue, bindIntl, blockRegex, buildMaskPlugin, captureNothing, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, compile, compileWithOptions, condition as cond, conditionPlugin, createCachedIntl, createCompiler, createRenderer, currency, cx, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, file, fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, gender, genderPlugin, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, get, getBasePlugins, getBrowserLocale, getCanonicalPath, getCondition, getContent, getContentNodeByKeyPath, getCookie, getDefaultNode, getDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getHTML, getHTMLTextDir, getInsertionValues, getInternalPath, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPrefix, getReplacedValuesContent, getRewritePath, getRewriteRules, getSplittedContent, getSplittedDictionaryContent, getStorageAttributes, getTranslation, html, i18nextToIntlayerFormatter, icuToIntlayerFormatter, inlineRegex, insertion as insert, insertContentInDictionary, insertionPlugin, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToVueI18nFormatter, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, nesting as nest, nestedPlugin, normalizeAttributeKey, normalizeDictionaries, normalizeDictionary, normalizeWhitespace, number, orderDictionaries, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parseYaml, parserFor, percentage, qualifies, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, renderFor, renderNothing, sanitizer, setLocaleInStorage, simpleInlineRegex, slugify, some, splitInsertionTemplate, startsWith, translation as t, translationPlugin, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, units, unquote, updateNodeChildren, validateHTML, validateMarkdown, validatePrefix, vueI18nToIntlayerFormatter };
1
+ import { n as ConditionContentStates, r as condition, t as ConditionContent } from "./condition-BDUtoh_1.js";
2
+ import { i as enumeration, n as EnumerationContent, r as EnumerationContentState, t as EnterFormat } from "./enumeration-CtuvB5Zz.js";
3
+ import { i as fileContent, n as FileContentConstructor, r as file, t as FileContent } from "./file-C3q8xvQb.js";
4
+ import { i as gender, n as GenderContent, r as GenderContentStates, t as Gender } from "./gender-Dd39Ijmf.js";
5
+ import { n as HTMLContentConstructor, r as html, t as HTMLContent } from "./html-Dn6KrpJ3.js";
6
+ import { n as HTML_TAGS, t as HTMLTagsType } from "./htmlTags-YxTtVUx6.js";
7
+ import { i as validateHTML, n as HTMLValidationResult, r as VOID_ELEMENTS, t as HTMLValidationIssue } from "./validateHTML-U7UKTtFd.js";
8
+ import { t as getInsertionValues } from "./getInsertionValues-Cu9IdbuE.js";
9
+ import { n as InsertionContentConstructor, r as insertion, t as InsertionContent } from "./insertion-M5fwK-29.js";
10
+ import { t as getMarkdownMetadata } from "./getMarkdownMetadata-Bf1S1NQ0.js";
11
+ import { n as MarkdownContentConstructor, r as markdown, t as MarkdownContent } from "./markdown-MzfikrI1.js";
12
+ import { n as validateMarkdown, t as MarkdownValidationResult } from "./validateMarkdown-BUaTDDIu.js";
13
+ import { A as GetNestingResult, C as conditionPlugin, D as insertionPlugin, E as genderPlugin, F as NestedContentState, I as ValidDotPathsFor, L as nesting, M as getCondition, N as DotPath, O as nestedPlugin, P as NestedContent, S as ValueAtKey, T as filePlugin, _ as NestedCond, a as getBasePlugins, b as TranslationCond, c as ConditionCond, d as FileCond, f as GenderCond, g as IsAny, h as InsertionCond, i as getDictionary, j as getNesting, k as translationPlugin, l as DeepTransformContent, m as IInterpreterPluginState, n as findMatchingCondition, o as getContent, p as IInterpreterPlugin, r as getEnumeration, s as deepTransformNode, t as getIntlayer, u as EnumerationCond, v as NodeProps, w as enumerationPlugin, x as UnionKeys, y as Plugins } from "./index-BnEeKNKW.js";
14
+ import { n as translation, t as TranslationContent } from "./translation-CiC-Avxc.js";
15
+ import { t as getHTML } from "./getHTML-CP6OXtdo.js";
16
+ import { t as getTranslation } from "./getTranslation-BG2Wg-af.js";
17
+ import { t as splitInsertionTemplate } from "./splitAndJoinInsertion-bkuLa7o2.js";
18
+ import { n as getFilterMissingTranslationsContent, r as getFilterMissingTranslationsDictionary, t as filterMissingTranslationsOnlyPlugin } from "./getFilterMissingTranslationsContent-CDNQqoy1.js";
19
+ import { n as getFilterTranslationsOnlyContent, r as getFilterTranslationsOnlyDictionary, t as filterTranslationsOnlyPlugin } from "./getFilterTranslationsOnlyContent-D2YgBkHn.js";
20
+ import { n as getFilteredLocalesDictionary, t as getFilteredLocalesContent } from "./getFilteredLocalesContent-D0GP-uEg.js";
21
+ import { n as getPerLocaleDictionary, t as getLocalizedContent } from "./getLocalizedContent-DOncZd-0.js";
22
+ import { n as getMaskContent, t as buildMaskPlugin } from "./getMaskContent-BwLFqp7v.js";
23
+ import { n as getMissingLocalesContent, r as getMissingLocalesContentFromDictionary, t as checkMissingLocalesPlugin } from "./getMissingLocalesContent-BYffYcdx.js";
24
+ import { t as getMultilingualDictionary } from "./getMultilingualDictionary-DO3i1MFs.js";
25
+ import { t as getReplacedValuesContent } from "./getReplacedValuesContent-BvL25pdt.js";
26
+ import { n as getSplittedDictionaryContent, t as getSplittedContent } from "./getSplittedContent-YD4JDMfB.js";
27
+ import { t as insertContentInDictionary } from "./insertContentInDictionary-DZ3UzG4K.js";
28
+ import { t as editDictionaryByKeyPath } from "./editDictionaryByKeyPath-BYIHcsyf.js";
29
+ import { t as getContentNodeByKeyPath } from "./getContentNodeByKeyPath-B0Tdi5mj.js";
30
+ import { t as getDefaultNode } from "./getDefaultNode-DQNsje2D.js";
31
+ import { t as getEmptyNode } from "./getEmptyNode-DW27TTBj.js";
32
+ import { t as getNodeChildren } from "./getNodeChildren-OT7Liqke.js";
33
+ import { t as getNodeType } from "./getNodeType-Cp765I26.js";
34
+ import { t as mergeDictionaries } from "./mergeDictionaries-D6WUMQN5.js";
35
+ import { n as normalizeDictionary, t as normalizeDictionaries } from "./normalizeDictionary-coviIGTW.js";
36
+ import { t as orderDictionaries } from "./orderDictionaries-SSCMY6qG.js";
37
+ import { t as removeContentNodeByKeyPath } from "./removeContentNodeByKeyPath-CotCOOsD.js";
38
+ import { t as renameContentNodeByKeyPath } from "./renameContentNodeByKeyPath-BuyH5gOr.js";
39
+ import { t as updateNodeChildren } from "./updateNodeChildren-B5Tu1UBZ.js";
40
+ import { t as compact } from "./compact-IHXcM4pT.js";
41
+ import { t as currency } from "./currency-PbMCnHep.js";
42
+ import { t as date } from "./date-C-PI8KqU.js";
43
+ import { i as createCachedIntl, n as WrappedIntl, r as bindIntl, t as CachedIntl } from "./intl-B2Ap8I5x.js";
44
+ import { t as list } from "./list-BdjJM2Gx.js";
45
+ import { t as number } from "./number-C8izkCmU.js";
46
+ import { t as percentage } from "./percentage-BqsvW0Zw.js";
47
+ import { t as relativeTime } from "./relativeTime-mJaYEq7H.js";
48
+ import { t as units } from "./units-CouGqa8j.js";
49
+ import { n as getStorageAttributes, t as ProcessedStorageAttributes } from "./getStorageAttributes-CIO2xWqQ.js";
50
+ import { i as setLocaleInStorage, n as LocaleStorageOptions, r as getLocaleFromStorage, t as LocaleStorage } from "./localeStorage-CZHwY0u3.js";
51
+ import { n as getBrowserLocale, r as localeStorageOptions } from "./getBrowserLocale-RD_Mwv1t.js";
52
+ import { t as getHTMLTextDir } from "./getHTMLTextDir-4Zh8J3x7.js";
53
+ import { n as getLocale } from "./getLocale-B9dECUM_.js";
54
+ import { t as getLocaleFromPath } from "./getLocaleFromPath-621W32QA.js";
55
+ import { t as getLocaleLang } from "./getLocaleLang-Bcan1gS4.js";
56
+ import { t as getLocaleName } from "./getLocaleName-CfRAD9Hc.js";
57
+ import { t as getLocalizedUrl } from "./getLocalizedUrl-BbqeA3-W.js";
58
+ import { t as getMultilingualUrls } from "./getMultilingualUrls-CUxYYfA4.js";
59
+ import { t as getPathWithoutLocale } from "./getPathWithoutLocale-B_aIR7O0.js";
60
+ import { n as GetPrefixResult, r as getPrefix, t as GetPrefixOptions } from "./getPrefix-X9XKkrZD.js";
61
+ import { n as localeDetector } from "./localeDetector-BWNCQRiZ.js";
62
+ import { i as localeRecord, n as localeFlatMap, r as localeMap } from "./localeMapper-DoAnasqf.js";
63
+ import { t as localeResolver } from "./localeResolver-bb7AWQNX.js";
64
+ import { a as getRewritePath, i as getLocalizedPath, n as getCanonicalPath, o as getRewriteRules, r as getInternalPath, t as LocalizedPathResult } from "./rewriteUtils-Bd82NiGR.js";
65
+ import { n as validatePrefix } from "./validatePrefix-Dtmg7QLq.js";
66
+ import { A as MarkedTextNode, B as ReferenceNode, C as ItalicTextNode, D as MarkdownContext, E as LinkNode, F as ParseState, G as StrikethroughTextNode, H as Rule, I as Parser, J as TextNode, K as TableNode, L as ParserResult, M as NewlineNode, N as OrderedListNode, O as MarkdownOptions, P as ParagraphNode, R as ReferenceImageNode, S as ImageNode, T as LinkBareURLNode, U as RuleOutput, V as RenderRuleHook, W as Rules, Y as UnorderedListNode, _ as HTMLNode, a as CodeBlockNode, b as HeadingNode, c as CompileOptions, d as ElementType, f as EscapedTextNode, g as HTMLCommentNode, h as GFMTaskNode, i as BreakThematicNode, j as NestedParser, k as MarkdownRuntime, l as ComponentOverrides, m as FootnoteReferenceNode, n as BoldTextNode, o as CodeFencedNode, p as FootnoteNode, q as TableSeparatorNode, r as BreakLineNode, s as CodeInlineNode, t as BlockQuoteNode, u as CustomComponentNode, v as HTMLSelfClosingNode, w as LinkAngleBraceNode, x as HeadingSetextNode, y as HTMLTag, z as ReferenceLinkNode } from "./types-C2Om0aEM.js";
67
+ import { n as compileWithOptions, r as createCompiler, t as compile } from "./compiler-DFiAsUdH.js";
68
+ import { $ as REFERENCE_LINK_R, A as HTML_CUSTOM_ATTR_R, B as NAMED_CODES_TO_UNICODE, C as GFM_TASK_R, Ct as generateListItemPrefix, D as HTML_BLOCK_ELEMENT_R, E as HEADING_SETEXT_R, Et as generateListRegex, F as LINK_AUTOLINK_BARE_URL_R, G as ORDERED_LIST_ITEM_PREFIX_R, H as ORDERED, I as LINK_AUTOLINK_R, J as PARAGRAPH_R, K as ORDERED_LIST_ITEM_R, L as LIST_LOOKBEHIND_R, M as HTML_SELF_CLOSING_ELEMENT_R, N as INLINE_SKIP_R, O as HTML_CHAR_CODE_R, P as INTERPOLATION_R, Q as REFERENCE_IMAGE_R, R as LOOKAHEAD, S as FRONT_MATTER_R, St as UNORDERED_LIST_R, T as HEADING_R, Tt as generateListItemRegex, U as ORDERED_LIST_BULLET, V as NP_TABLE_R, W as ORDERED_LIST_ITEM_PREFIX, X as PriorityValue, Y as Priority, Z as REFERENCE_IMAGE_OR_LINK, _ as DO_NOT_PROCESS_HTML_ELEMENTS, _t as UNORDERED, a as BLOCKQUOTE_R, at as TABLE_LEFT_ALIGN, b as FOOTNOTE_REFERENCE_R, bt as UNORDERED_LIST_ITEM_PREFIX_R, c as BREAK_LINE_R, ct as TAB_R, d as CODE_BLOCK_FENCED_R, dt as TEXT_ESCAPED_R, et as RuleType, f as CODE_BLOCK_R, ft as TEXT_MARKED_R, g as CUSTOM_COMPONENT_R, gt as UNESCAPE_R, h as CR_NEWLINE_R, ht as TRIM_STARTING_NEWLINES, i as BLOCKQUOTE_ALERT_R, it as TABLE_CENTER_ALIGN, j as HTML_LEFT_TRIM_AMOUNT_R, k as HTML_COMMENT_R, l as BREAK_THEMATIC_R, lt as TEXT_BOLD_R, m as CONSECUTIVE_NEWLINE_R, mt as TEXT_STRIKETHROUGHED_R, n as ATTRIBUTE_TO_NODE_PROP_MAP, nt as SHORTCODE_R, o as BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, ot as TABLE_RIGHT_ALIGN, p as CODE_INLINE_R, pt as TEXT_PLAIN_R, q as ORDERED_LIST_R, r as ATTR_EXTRACTOR_R, rt as SHOULD_RENDER_AS_BLOCK_R, s as BLOCK_END_R, st as TABLE_TRIM_PIPES, t as ATTRIBUTES_TO_SANITIZE, tt as RuleTypeValue, u as CAPTURE_LETTER_AFTER_HYPHEN, ut as TEXT_EMPHASIZED_R, v as DURATION_DELAY_TRIGGER, vt as UNORDERED_LIST_BULLET, w as HEADING_ATX_COMPLIANT_R, wt as generateListItemPrefixRegex, x as FORMFEED_R, xt as UNORDERED_LIST_ITEM_R, y as FOOTNOTE_R, yt as UNORDERED_LIST_ITEM_PREFIX, z as ListType } from "./constants-CI_D82B1.js";
69
+ import { t as parserFor } from "./parser-BVwR6Tjw.js";
70
+ import { n as renderFor, t as createRenderer } from "./renderer-C06x2Orf.js";
71
+ import { A as unquote, C as simpleInlineRegex, D as trimEnd, E as startsWith, O as trimLeadingWhitespaceOutsideFences, S as sanitizer, T as some, _ as parseTableAlignCapture, a as captureNothing, b as qualifies, c as inlineRegex, d as parseBlock, f as parseCaptureInline, g as parseTableAlign, h as parseStyleAttribute, i as blockRegex, k as unescapeString, l as normalizeAttributeKey, m as parseSimpleInline, n as anyScopeRegex, o as cx, p as parseInline, r as attributeValueToNodePropValue, s as get, t as allowInline, u as normalizeWhitespace, v as parseTableCells, w as slugify, x as renderNothing, y as parseTableRow } from "./utils-Dcmgh_80.js";
72
+ import { n as icuToIntlayerFormatter, r as intlayerToICUFormatter, t as JsonValue } from "./ICU-tA3ZHN5U.js";
73
+ import { n as intlayerToI18nextFormatter, t as i18nextToIntlayerFormatter } from "./i18next-qY0AixrB.js";
74
+ import { n as vueI18nToIntlayerFormatter, t as intlayerToVueI18nFormatter } from "./vue-i18n-JtUB7N_m.js";
75
+ import { t as checkIsURLAbsolute } from "./checkIsURLAbsolute-CTf3JFU6.js";
76
+ import { t as getCookie } from "./getCookie-DPOvVv_h.js";
77
+ import { t as isSameKeyPath } from "./isSameKeyPath-CkH8NdJh.js";
78
+ import { t as isValidElement } from "./isValidReactElement-BsoJ01oP.js";
79
+ import { t as parseYaml } from "./parseYaml-D5gxutvA.js";
80
+ export { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, CachedIntl, CachedIntl as Intl, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, ConditionCond, ConditionContent, ConditionContentStates, CustomComponentNode, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, DeepTransformContent, DotPath, ElementType, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, EscapedTextNode, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, FileCond, FileContent, FileContentConstructor, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, GFM_TASK_R, Gender, GenderCond, GenderContent, GenderContentStates, GetNestingResult, GetPrefixOptions, GetPrefixResult, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTMLCommentNode, HTMLContent, HTMLContentConstructor, HTMLNode, HTMLSelfClosingNode, HTMLTag, HTMLTagsType, HTMLValidationIssue, HTMLValidationIssue as MarkdownValidationIssue, HTMLValidationResult, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, HTML_TAGS, HeadingNode, HeadingSetextNode, IInterpreterPlugin, IInterpreterPluginState, INLINE_SKIP_R, INTERPOLATION_R, ImageNode, InsertionCond, InsertionContent, InsertionContentConstructor, IsAny, ItalicTextNode, JsonValue, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, LinkAngleBraceNode, LinkBareURLNode, LinkNode, ListType, LocaleStorage, LocaleStorageOptions, LocalizedPathResult, MarkdownContent, MarkdownContentConstructor, MarkdownContext, MarkdownOptions, MarkdownRuntime, MarkdownValidationResult, MarkedTextNode, NAMED_CODES_TO_UNICODE, NP_TABLE_R, NestedCond, NestedContent, NestedContentState, NestedParser, NewlineNode, NodeProps, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, OrderedListNode, PARAGRAPH_R, ParagraphNode, ParseState, Parser, ParserResult, Plugins, Priority, PriorityValue, ProcessedStorageAttributes, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, RuleType, RuleTypeValue, Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, StrikethroughTextNode, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, TableNode, TableSeparatorNode, TextNode, TranslationCond, TranslationContent, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, UnionKeys, UnorderedListNode, VOID_ELEMENTS, ValidDotPathsFor, ValueAtKey, WrappedIntl, allowInline, anyScopeRegex, attributeValueToNodePropValue, bindIntl, blockRegex, buildMaskPlugin, captureNothing, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, compile, compileWithOptions, condition as cond, conditionPlugin, createCachedIntl, createCompiler, createRenderer, currency, cx, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, file, fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, gender, genderPlugin, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, get, getBasePlugins, getBrowserLocale, getCanonicalPath, getCondition, getContent, getContentNodeByKeyPath, getCookie, getDefaultNode, getDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getHTML, getHTMLTextDir, getInsertionValues, getInternalPath, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPrefix, getReplacedValuesContent, getRewritePath, getRewriteRules, getSplittedContent, getSplittedDictionaryContent, getStorageAttributes, getTranslation, html, i18nextToIntlayerFormatter, icuToIntlayerFormatter, inlineRegex, insertion as insert, insertContentInDictionary, insertionPlugin, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToVueI18nFormatter, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, nesting as nest, nestedPlugin, normalizeAttributeKey, normalizeDictionaries, normalizeDictionary, normalizeWhitespace, number, orderDictionaries, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parseYaml, parserFor, percentage, qualifies, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, renderFor, renderNothing, sanitizer, setLocaleInStorage, simpleInlineRegex, slugify, some, splitInsertionTemplate, startsWith, translation as t, translationPlugin, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, units, unquote, updateNodeChildren, validateHTML, validateMarkdown, validatePrefix, vueI18nToIntlayerFormatter };
@@ -0,0 +1,25 @@
1
+ import { Dictionary } from "@intlayer/types/dictionary";
2
+ import { LocalesValues } from "@intlayer/types/module_augmentation";
3
+
4
+ //#region src/deepTransformPlugins/insertContentInDictionary.d.ts
5
+ /**
6
+ * Insert content into a dictionary with deep merge support
7
+ * Handles translation blocks and nested structures
8
+ *
9
+ * @param dictionary - The dictionary to insert content into
10
+ * @param content - The content to insert
11
+ * @param locale - Optional locale to target specific translation
12
+ * @returns Updated dictionary
13
+ *
14
+ * @example
15
+ * // Without locale - deep merge all content
16
+ * insertContentInDictionary(dictionary, { title: 'New Title' })
17
+ *
18
+ * @example
19
+ * // With locale - insert content for specific locale
20
+ * insertContentInDictionary(dictionary, { title: 'このページ' }, 'ja')
21
+ */
22
+ declare const insertContentInDictionary: (dictionary: Dictionary, content: Dictionary["content"], locale?: LocalesValues) => Dictionary;
23
+ //#endregion
24
+ export { insertContentInDictionary as t };
25
+ //# sourceMappingURL=insertContentInDictionary-DZ3UzG4K.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertContentInDictionary-DZ3UzG4K.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"}
@@ -0,0 +1,23 @@
1
+ import { NodeType, TypedNodeModel } from "@intlayer/types/nodeType";
2
+
3
+ //#region src/transpiler/insertion/insertion.d.ts
4
+ type InsertionContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<NodeType.Insertion, Content, T>;
5
+ type InsertionContent<Content = unknown> = InsertionContentConstructor<Content, {
6
+ fields: string[];
7
+ }>;
8
+ /**
9
+ * Function intended to be used to build intlayer dictionaries.
10
+ *
11
+ * Allow to identify insertions inside a content.
12
+ *
13
+ * Usage:
14
+ *
15
+ * ```ts
16
+ * insertion('Hi, my name is {{name}} and I am {{age}} years old.')
17
+ * ```
18
+ *
19
+ */
20
+ declare const insertion: <Content = unknown>(content: Content) => InsertionContent<Content>;
21
+ //#endregion
22
+ export { InsertionContentConstructor as n, insertion as r, InsertionContent as t };
23
+ //# sourceMappingURL=insertion-M5fwK-29.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertion-M5fwK-29.d.ts","names":[],"sources":["../../src/transpiler/insertion/insertion.ts"],"mappings":";;;KAIY,2BAAA,8BAEA,MAAA,sBACR,cAAA,CAAe,QAAA,CAAS,SAAA,EAAW,OAAA,EAAS,CAAA;AAAA,KAEpC,gBAAA,sBAAsC,2BAAA,CAChD,OAAA;EAEE,MAAA;AAAA;;;;;;;;;;;;;cAgBE,SAAA,sBACJ,OAAA,EAAS,OAAA,KACR,gBAAA,CAAiB,OAAA"}
@@ -1,22 +1,2 @@
1
- import { ConditionContentStates } from "../transpiler/condition/condition.js";
2
- //#region src/interpreter/getCondition.d.ts
3
- /**
4
- * Picks content based on a boolean condition.
5
- *
6
- * @param conditionContent - A map with 'true', 'false', and optionally 'fallback' keys.
7
- * @param state - The boolean state to match.
8
- * @returns The matching content.
9
- *
10
- * @example
11
- * ```ts
12
- * const content = getCondition({
13
- * 'true': 'The condition is validated',
14
- * 'false': 'The condition is not validated',
15
- * }, true);
16
- * // 'The condition is validated'
17
- * ```
18
- */
19
- declare const getCondition: <Content>(conditionContent: ConditionContentStates<Content>, state?: boolean) => Content;
20
- //#endregion
21
- export { getCondition };
22
- //# sourceMappingURL=getCondition.d.ts.map
1
+ import { M as getCondition } from "../index-BnEeKNKW.js";
2
+ export { getCondition };
@@ -1,12 +1,2 @@
1
- import { NodeProps } from "./plugins.js";
2
-
3
- //#region src/interpreter/getContent/deepTransform.d.ts
4
- /**
5
- * Recursively traverses a node (object/array/primitive).
6
- * Applies the *first* plugin that can transform a node, then stops descending further.
7
- * If no plugin transforms it, it recurses into its children.
8
- */
9
- declare const deepTransformNode: (node: any, props: NodeProps) => any;
10
- //#endregion
11
- export { deepTransformNode };
12
- //# sourceMappingURL=deepTransform.d.ts.map
1
+ import { s as deepTransformNode } from "../../index-BnEeKNKW.js";
2
+ export { deepTransformNode };
@@ -1,16 +1,2 @@
1
- import { DeepTransformContent, IInterpreterPluginState, NodeProps, Plugins } from "./plugins.js";
2
- import { ContentNode } from "@intlayer/types/dictionary";
3
- import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
4
-
5
- //#region src/interpreter/getContent/getContent.d.ts
6
- declare const getBasePlugins: (locale?: LocalesValues, fallback?: boolean) => Plugins[];
7
- /**
8
- * Transforms a node in a single pass, applying each plugin as needed.
9
- *
10
- * @param node The node to transform.
11
- * @param locale The locale to use if your transformers need it (e.g. for translations).
12
- */
13
- declare const getContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, nodeProps: NodeProps, plugins?: Plugins[]) => DeepTransformContent<T, IInterpreterPluginState, L>;
14
- //#endregion
15
- export { getBasePlugins, getContent };
16
- //# sourceMappingURL=getContent.d.ts.map
1
+ import { a as getBasePlugins, o as getContent } from "../../index-BnEeKNKW.js";
2
+ export { getBasePlugins, getContent };
@@ -1,4 +1,2 @@
1
- import { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin } from "./plugins.js";
2
- import { deepTransformNode } from "./deepTransform.js";
3
- import { getBasePlugins, getContent } from "./getContent.js";
1
+ import { C as conditionPlugin, D as insertionPlugin, E as genderPlugin, O as nestedPlugin, S as ValueAtKey, T as filePlugin, _ as NestedCond, a as getBasePlugins, b as TranslationCond, c as ConditionCond, d as FileCond, f as GenderCond, g as IsAny, h as InsertionCond, k as translationPlugin, l as DeepTransformContent, m as IInterpreterPluginState, o as getContent, p as IInterpreterPlugin, s as deepTransformNode, u as EnumerationCond, v as NodeProps, w as enumerationPlugin, x as UnionKeys, y as Plugins } from "../../index-BnEeKNKW.js";
4
2
  export { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, deepTransformNode, enumerationPlugin, filePlugin, genderPlugin, getBasePlugins, getContent, insertionPlugin, nestedPlugin, translationPlugin };
@@ -1,151 +1,2 @@
1
- import { Gender } from "../../transpiler/gender/gender.js";
2
- import { GetNestingResult } from "../getNesting.js";
3
- import { DeclaredLocales, DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
4
- import { NodeType } from "@intlayer/types/nodeType";
5
- import { Locale } from "@intlayer/types/allLocales";
6
- import { KeyPath } from "@intlayer/types/keyPath";
7
-
8
- //#region src/interpreter/getContent/plugins.d.ts
9
- /** ---------------------------------------------
10
- * PLUGIN DEFINITION
11
- * --------------------------------------------- */
12
- /**
13
- * A plugin/transformer that can optionally transform a node during a single DFS pass.
14
- * - `canHandle` decides if the node is transformable by this plugin.
15
- * - `transform` returns the transformed node (and does not recurse further).
16
- *
17
- * > `transformFn` is a function that can be used to deeply transform inside the plugin.
18
- */
19
- type Plugins = {
20
- id: string;
21
- canHandle: (node: any) => boolean;
22
- transform: (node: any, props: NodeProps, transformFn: (node: any, props: NodeProps) => any) => any;
23
- };
24
- /** ---------------------------------------------
25
- * TRANSLATION PLUGIN
26
- * --------------------------------------------- */
27
- type UnionKeys<T> = T extends unknown ? keyof T : never;
28
- type ValueAtKey<T, K> = T extends unknown ? K extends keyof T ? T[K] : never : never;
29
- type TranslationCond<T, S, L extends LocalesValues> = T extends {
30
- nodeType: NodeType | string;
31
- [NodeType.Translation]: infer U;
32
- } ? U extends Record<PropertyKey, unknown> ? U[keyof U] extends Record<PropertyKey, unknown> ? { [K in UnionKeys<U[keyof U]>]: L extends keyof U ? K extends keyof U[L] ? U[L][K] : ValueAtKey<U[keyof U], K> : ValueAtKey<U[keyof U], K> } extends infer Content ? DeepTransformContent<Content, S> : never : (L extends keyof U ? U[L] : U[keyof U]) extends infer Content ? DeepTransformContent<Content, S> : never : never : never;
33
- /** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
34
- declare const translationPlugin: (locale: LocalesValues, fallback?: LocalesValues) => Plugins;
35
- /** ---------------------------------------------
36
- * ENUMERATION PLUGIN
37
- * --------------------------------------------- */
38
- type EnumerationCond<T, S, _L> = T extends {
39
- nodeType: NodeType | string;
40
- [NodeType.Enumeration]: object;
41
- } ? (quantity: number) => DeepTransformContent<T[NodeType.Enumeration][keyof T[NodeType.Enumeration]], S> : never;
42
- /** Enumeration plugin. Replaces node with a function that takes quantity => string. */
43
- declare const enumerationPlugin: Plugins;
44
- /** ---------------------------------------------
45
- * CONDITION PLUGIN
46
- * --------------------------------------------- */
47
- type ConditionCond<T, S, _L> = T extends {
48
- nodeType: NodeType | string;
49
- [NodeType.Condition]: object;
50
- } ? (value: boolean | {
51
- value: boolean;
52
- }) => DeepTransformContent<T[NodeType.Condition][keyof T[NodeType.Condition]], S> : never;
53
- /** Condition plugin. Replaces node with a function that takes boolean => string. */
54
- declare const conditionPlugin: Plugins;
55
- /** ---------------------------------------------
56
- * INSERTION PLUGIN
57
- * --------------------------------------------- */
58
- type InsertionCond<T, S, _L> = T extends {
59
- nodeType: NodeType | string;
60
- [NodeType.Insertion]: string;
61
- fields: readonly string[];
62
- } ? (values: { [K in T['fields'][number]]: string | number }) => DeepTransformContent<string, S> : never;
63
- /** Insertion plugin. Replaces node with a function that takes quantity => string. */
64
- declare const insertionPlugin: Plugins;
65
- /** ---------------------------------------------
66
- * GENDER PLUGIN
67
- * --------------------------------------------- */
68
- type GenderCond<T, S, _L> = T extends {
69
- nodeType: NodeType | string;
70
- [NodeType.Gender]: object;
71
- } ? (value: Gender) => DeepTransformContent<T[NodeType.Gender][keyof T[NodeType.Gender]], S> : never;
72
- /** Gender plugin. Replaces node with a function that takes gender => string. */
73
- declare const genderPlugin: Plugins;
74
- /** ---------------------------------------------
75
- * NESTED PLUGIN
76
- * --------------------------------------------- */
77
- type NestedCond<T, S, _L> = T extends {
78
- nodeType: NodeType | string;
79
- [NodeType.Nested]: infer U;
80
- } ? U extends {
81
- dictionaryKey: infer K extends DictionaryKeys;
82
- path?: infer P;
83
- } ? GetNestingResult<K, P, S> : never : never;
84
- /** Nested plugin. Replaces node with the result of `getNesting`. */
85
- declare const nestedPlugin: (locale?: LocalesValues) => Plugins;
86
- /** ---------------------------------------------
87
- * FILE PLUGIN
88
- * --------------------------------------------- */
89
- type FileCond<T> = T extends {
90
- nodeType: NodeType | string;
91
- [NodeType.File]: string;
92
- content?: string;
93
- } ? string : never;
94
- /** File plugin. Replaces node with the result of `getNesting`. */
95
- declare const filePlugin: Plugins;
96
- /**
97
- * PLUGIN RESULT
98
- */
99
- /**
100
- * Interface that defines the properties of a node.
101
- * This interface can be augmented in other packages, such as `react-intlayer`.
102
- */
103
- interface NodeProps {
104
- dictionaryKey: string;
105
- keyPath: KeyPath[];
106
- plugins?: Plugins[];
107
- locale?: Locale;
108
- dictionaryPath?: string;
109
- children?: any;
110
- }
111
- /**
112
- * Interface that defines the plugins that can be used to transform a node.
113
- * This interface can be augmented in other packages, such as `react-intlayer`.
114
- */
115
- interface IInterpreterPlugin<T, S, L extends LocalesValues> {
116
- translation: TranslationCond<T, S, L>;
117
- enumeration: EnumerationCond<T, S, L>;
118
- condition: ConditionCond<T, S, L>;
119
- insertion: InsertionCond<T, S, L>;
120
- gender: GenderCond<T, S, L>;
121
- nested: NestedCond<T, S, L>;
122
- file: FileCond<T>;
123
- }
124
- /**
125
- * Allow to avoid overwriting import from `intlayer` package when `IInterpreterPlugin<T>` interface is augmented in another package, such as `react-intlayer`.
126
- */
127
- type IInterpreterPluginState = {
128
- translation: true;
129
- enumeration: true;
130
- condition: true;
131
- insertion: true;
132
- gender: true;
133
- nested: true;
134
- file: true;
135
- };
136
- /**
137
- * Utility type to check if a plugin can be applied to a node.
138
- */
139
- type CheckApplyPlugin<T, K extends keyof IInterpreterPlugin<T, S, L>, S, L extends LocalesValues = DeclaredLocales> = K extends keyof S ? S[K] extends true ? IInterpreterPlugin<T, S, L>[K] extends never ? never : IInterpreterPlugin<T, S, L>[K] : never : never;
140
- /**
141
- * Traverse recursively through an object or array, applying each plugin as needed.
142
- */
143
- type Traverse<T, S, L extends LocalesValues = DeclaredLocales> = T extends ReadonlyArray<infer U> ? Array<DeepTransformContent<U, S, L>> : T extends object ? { [K in keyof T]: DeepTransformContent<T[K], S, L> } : T;
144
- type IsAny<T> = 0 extends 1 & T ? true : false;
145
- /**
146
- * Traverse recursively through an object or array, applying each plugin as needed.
147
- */
148
- type DeepTransformContent<T, S = IInterpreterPluginState, L extends LocalesValues = DeclaredLocales> = IsAny<T> extends true ? T : CheckApplyPlugin<T, keyof IInterpreterPlugin<T, S, L>, S, L> extends never ? Traverse<T, S, L> : CheckApplyPlugin<T, keyof IInterpreterPlugin<T, S, L>, S, L>;
149
- //#endregion
150
- export { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin };
151
- //# sourceMappingURL=plugins.d.ts.map
1
+ import { C as conditionPlugin, D as insertionPlugin, E as genderPlugin, O as nestedPlugin, S as ValueAtKey, T as filePlugin, _ as NestedCond, b as TranslationCond, c as ConditionCond, d as FileCond, f as GenderCond, g as IsAny, h as InsertionCond, k as translationPlugin, l as DeepTransformContent, m as IInterpreterPluginState, p as IInterpreterPlugin, u as EnumerationCond, v as NodeProps, w as enumerationPlugin, x as UnionKeys, y as Plugins } from "../../index-BnEeKNKW.js";
2
+ export { ConditionCond, DeepTransformContent, EnumerationCond, FileCond, GenderCond, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, IsAny, NestedCond, NodeProps, Plugins, TranslationCond, UnionKeys, ValueAtKey, conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin };
@@ -1,17 +1,2 @@
1
- import { DeepTransformContent, IInterpreterPluginState, Plugins } from "./getContent/plugins.js";
2
- import { Dictionary } from "@intlayer/types/dictionary";
3
- import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
4
-
5
- //#region src/interpreter/getDictionary.d.ts
6
- /**
7
- * Transforms a dictionary in a single pass, applying each plugin as needed.
8
- *
9
- * @param dictionary The dictionary to transform.
10
- * @param locale The locale to use if your transformers need it (e.g. for translations).
11
- * @param additionalPlugins An array of NodeTransformer that define how to transform recognized nodes.
12
- * If omitted, we’ll use a default set of plugins.
13
- */
14
- declare const getDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L, plugins?: Plugins[]) => DeepTransformContent<T["content"], IInterpreterPluginState, L>;
15
- //#endregion
16
- export { getDictionary };
17
- //# sourceMappingURL=getDictionary.d.ts.map
1
+ import { i as getDictionary } from "../index-BnEeKNKW.js";
2
+ export { getDictionary };
@@ -1,58 +1,2 @@
1
- import { EnterFormat, EnumerationContentState } from "../transpiler/enumeration/enumeration.js";
2
- //#region src/interpreter/getEnumeration.d.ts
3
- /**
4
- * Find the matching condition for a quantity.
5
- *
6
- * Usage:
7
- *
8
- * ```ts
9
- * const key = findMatchingCondition({
10
- * '<=-2.3': 'You have less than -2.3',
11
- * '<1': 'You have less than one',
12
- * '2': 'You have two',
13
- * '>=3': 'You have three or more',
14
- * }, 2);
15
- * // '2'
16
- * ```
17
- *
18
- * The order of the keys will define the priority of the content.
19
- *
20
- * ```ts
21
- * const key = findMatchingCondition({
22
- * '<4': 'You have less than four',
23
- * '2': 'You have two',
24
- * }, 2);
25
- * // '<4'
26
- * ```
27
- *
28
- * If no keys match, the default key is '1'.
29
- */
30
- declare const findMatchingCondition: <Content>(enumerationContent: EnumerationContentState<Content>, quantity: number) => EnterFormat | undefined;
31
- /**
32
- * Picks content from an enumeration map based on a provided quantity.
33
- *
34
- * Supported keys in the enumeration map:
35
- * - Specific numbers: '0', '1', '2'
36
- * - Comparison operators: '<5', '>=10', '<=2'
37
- * - Fallback: 'fallback'
38
- *
39
- * The first matching key in the object's iteration order will be selected.
40
- *
41
- * @param enumerationContent - A map of conditions/quantities to content.
42
- * @param quantity - The number to match against the conditions.
43
- * @returns The matching content.
44
- *
45
- * @example
46
- * ```ts
47
- * const content = getEnumeration({
48
- * '0': 'No items',
49
- * '1': 'One item',
50
- * '>1': 'Many items',
51
- * }, 5);
52
- * // 'Many items'
53
- * ```
54
- */
55
- declare const getEnumeration: <Content>(enumerationContent: EnumerationContentState<Content>, quantity: number) => Content;
56
- //#endregion
57
- export { findMatchingCondition, getEnumeration };
58
- //# sourceMappingURL=getEnumeration.d.ts.map
1
+ import { n as findMatchingCondition, r as getEnumeration } from "../index-BnEeKNKW.js";
2
+ export { findMatchingCondition, getEnumeration };
@@ -1,4 +1,4 @@
1
- import { Gender, GenderContentStates } from "../transpiler/gender/gender.js";
1
+ import { r as GenderContentStates, t as Gender } from "../gender-Dd39Ijmf.js";
2
2
  //#region src/interpreter/getGender.d.ts
3
3
  type GenderEntry = Gender | 'm' | 'f';
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"getGender.d.ts","names":[],"sources":["../../../src/interpreter/getGender.ts"],"mappings":";;KAEK,WAAA,GAAc,MAAA;;;AAF8C;;;;;AAgCjE;;;;;;;;;;;;;;;cAAa,SAAA,YACX,aAAA,EAAe,mBAAA,CAAoB,OAAA,GACnC,MAAA,EAAQ,WAAA,KACP,OAAA"}
1
+ {"version":3,"file":"getGender.d.ts","names":[],"sources":["../../../src/interpreter/getGender.ts"],"mappings":";;KAEK,WAAA,GAAc,MAAA;;;;;;;;;;;;;;;;;;;AAF8C;;;;cAgCpD,SAAA,YACX,aAAA,EAAe,mBAAA,CAAoB,OAAA,GACnC,MAAA,EAAQ,WAAA,KACP,OAAA"}