@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.
- package/dist/cjs/{_virtual/_rolldown/runtime.cjs → chunk-Bmb41Sf3.cjs} +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs.map +1 -1
- package/dist/cjs/formatters/compact.cjs +1 -1
- package/dist/cjs/formatters/compact.cjs.map +1 -1
- package/dist/cjs/formatters/currency.cjs +1 -1
- package/dist/cjs/formatters/currency.cjs.map +1 -1
- package/dist/cjs/formatters/date.cjs +1 -1
- package/dist/cjs/formatters/date.cjs.map +1 -1
- package/dist/cjs/formatters/list.cjs +1 -1
- package/dist/cjs/formatters/list.cjs.map +1 -1
- package/dist/cjs/formatters/number.cjs +1 -1
- package/dist/cjs/formatters/number.cjs.map +1 -1
- package/dist/cjs/formatters/percentage.cjs +1 -1
- package/dist/cjs/formatters/percentage.cjs.map +1 -1
- package/dist/cjs/formatters/relativeTime.cjs +1 -1
- package/dist/cjs/formatters/relativeTime.cjs.map +1 -1
- package/dist/cjs/formatters/units.cjs +1 -1
- package/dist/cjs/formatters/units.cjs.map +1 -1
- package/dist/cjs/getContent-DrqM8pqO.cjs +2 -0
- package/dist/cjs/getContent-DrqM8pqO.cjs.map +1 -0
- package/dist/cjs/getStorageAttributes.cjs +1 -1
- package/dist/cjs/getStorageAttributes.cjs.map +1 -1
- package/dist/cjs/html-CZ1N-VL0.cjs +2 -0
- package/dist/cjs/html-CZ1N-VL0.cjs.map +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/interpreter/getContent/deepTransform.cjs +1 -1
- package/dist/cjs/interpreter/getContent/deepTransform.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/getContent.cjs +1 -2
- package/dist/cjs/interpreter/getContent/index.cjs +1 -1
- package/dist/cjs/interpreter/getContent/plugins.cjs +1 -2
- package/dist/cjs/interpreter/getDictionary.cjs +1 -2
- package/dist/cjs/interpreter/getIntlayer.cjs +1 -2
- package/dist/cjs/interpreter/getNesting.cjs +1 -2
- package/dist/cjs/interpreter/index.cjs +1 -1
- package/dist/cjs/localization/getBrowserLocale.cjs +1 -1
- package/dist/cjs/localization/getBrowserLocale.cjs.map +1 -1
- package/dist/cjs/localization/getHTMLTextDir.cjs +1 -1
- package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
- package/dist/cjs/localization/getLocale.cjs +1 -1
- package/dist/cjs/localization/getLocale.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleFromPath.cjs +1 -1
- package/dist/cjs/localization/getLocaleFromPath.cjs.map +1 -1
- package/dist/cjs/localization/getLocalizedUrl.cjs +1 -1
- package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
- package/dist/cjs/localization/getMultilingualUrls.cjs +1 -1
- package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
- package/dist/cjs/localization/getPathWithoutLocale.cjs +1 -1
- package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
- package/dist/cjs/localization/getPrefix.cjs +1 -1
- package/dist/cjs/localization/getPrefix.cjs.map +1 -1
- package/dist/cjs/localization/localeMapper.cjs +1 -1
- package/dist/cjs/localization/localeMapper.cjs.map +1 -1
- package/dist/cjs/localization/localeResolver.cjs +1 -1
- package/dist/cjs/localization/localeResolver.cjs.map +1 -1
- package/dist/cjs/localization/validatePrefix.cjs +1 -1
- package/dist/cjs/localization/validatePrefix.cjs.map +1 -1
- package/dist/cjs/messageFormat/ICU.cjs +1 -1
- package/dist/cjs/messageFormat/ICU.cjs.map +1 -1
- package/dist/cjs/messageFormat/i18next.cjs +1 -1
- package/dist/cjs/messageFormat/i18next.cjs.map +1 -1
- package/dist/cjs/messageFormat/vue-i18n.cjs +1 -1
- package/dist/cjs/messageFormat/vue-i18n.cjs.map +1 -1
- package/dist/cjs/transpiler/condition/condition.cjs +1 -1
- package/dist/cjs/transpiler/condition/condition.cjs.map +1 -1
- package/dist/cjs/transpiler/enumeration/enumeration.cjs +1 -1
- package/dist/cjs/transpiler/enumeration/enumeration.cjs.map +1 -1
- package/dist/cjs/transpiler/file/file.cjs +1 -1
- package/dist/cjs/transpiler/file/file.cjs.map +1 -1
- package/dist/cjs/transpiler/gender/gender.cjs +1 -1
- package/dist/cjs/transpiler/gender/gender.cjs.map +1 -1
- package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs +1 -2
- package/dist/cjs/transpiler/html/html.cjs +1 -2
- package/dist/cjs/transpiler/html/index.cjs +1 -1
- package/dist/cjs/transpiler/index.cjs +1 -1
- package/dist/cjs/transpiler/insertion/insertion.cjs +1 -1
- package/dist/cjs/transpiler/insertion/insertion.cjs.map +1 -1
- package/dist/cjs/transpiler/markdown/markdown.cjs +1 -1
- package/dist/cjs/transpiler/markdown/markdown.cjs.map +1 -1
- package/dist/cjs/transpiler/nesting/nesting.cjs +1 -1
- package/dist/cjs/transpiler/nesting/nesting.cjs.map +1 -1
- package/dist/cjs/transpiler/translation/translation.cjs +1 -1
- package/dist/cjs/transpiler/translation/translation.cjs.map +1 -1
- package/dist/cjs/utils/intl.cjs +1 -1
- package/dist/cjs/utils/intl.cjs.map +1 -1
- package/dist/cjs/utils/localeStorage.cjs +1 -1
- package/dist/cjs/utils/localeStorage.cjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +1 -1
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -1
- package/dist/esm/formatters/list.mjs.map +1 -1
- package/dist/esm/getContent-DKqtIZGL.mjs +2 -0
- package/dist/esm/getContent-DKqtIZGL.mjs.map +1 -0
- package/dist/esm/html-3bo80xzx.mjs +2 -0
- package/dist/esm/html-3bo80xzx.mjs.map +1 -0
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/interpreter/getContent/getContent.mjs +1 -2
- package/dist/esm/interpreter/getContent/index.mjs +1 -1
- package/dist/esm/interpreter/getContent/plugins.mjs +1 -2
- package/dist/esm/interpreter/getDictionary.mjs +1 -2
- package/dist/esm/interpreter/getIntlayer.mjs +1 -2
- package/dist/esm/interpreter/getNesting.mjs +1 -2
- package/dist/esm/interpreter/index.mjs +1 -1
- package/dist/esm/localization/getBrowserLocale.mjs +1 -1
- package/dist/esm/localization/getBrowserLocale.mjs.map +1 -1
- package/dist/esm/localization/getHTMLTextDir.mjs +1 -1
- package/dist/esm/localization/getHTMLTextDir.mjs.map +1 -1
- package/dist/esm/localization/localeMapper.mjs.map +1 -1
- package/dist/esm/messageFormat/ICU.mjs +1 -1
- package/dist/esm/messageFormat/ICU.mjs.map +1 -1
- package/dist/esm/messageFormat/i18next.mjs +1 -1
- package/dist/esm/messageFormat/i18next.mjs.map +1 -1
- package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs +1 -2
- package/dist/esm/transpiler/html/html.mjs +1 -2
- package/dist/esm/transpiler/html/index.mjs +1 -1
- package/dist/esm/transpiler/index.mjs +1 -1
- package/dist/esm/transpiler/markdown/markdown.mjs +1 -1
- package/dist/esm/transpiler/markdown/markdown.mjs.map +1 -1
- package/dist/esm/utils/intl.mjs +1 -1
- package/dist/esm/utils/intl.mjs.map +1 -1
- package/dist/types/ICU-tA3ZHN5U.d.ts +11 -0
- package/dist/types/ICU-tA3ZHN5U.d.ts.map +1 -0
- package/dist/types/checkIsURLAbsolute-CTf3JFU6.d.ts +5 -0
- package/dist/types/checkIsURLAbsolute-CTf3JFU6.d.ts.map +1 -0
- package/dist/types/compact-IHXcM4pT.d.ts +20 -0
- package/dist/types/compact-IHXcM4pT.d.ts.map +1 -0
- package/dist/types/compiler-DFiAsUdH.d.ts +9 -0
- package/dist/types/compiler-DFiAsUdH.d.ts.map +1 -0
- package/dist/types/condition-BDUtoh_1.d.ts +28 -0
- package/dist/types/condition-BDUtoh_1.d.ts.map +1 -0
- package/dist/types/constants-CI_D82B1.d.ts +177 -0
- package/dist/types/constants-CI_D82B1.d.ts.map +1 -0
- package/dist/types/currency-PbMCnHep.d.ts +20 -0
- package/dist/types/currency-PbMCnHep.d.ts.map +1 -0
- package/dist/types/date-C-PI8KqU.d.ts +20 -0
- package/dist/types/date-C-PI8KqU.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +2 -50
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +2 -42
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +2 -34
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +2 -18
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts +2 -10
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +2 -19
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts +2 -32
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +2 -8
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts +2 -43
- package/dist/types/deepTransformPlugins/index.d.ts +10 -10
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +2 -25
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +2 -8
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +2 -9
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +2 -9
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +2 -7
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +2 -7
- package/dist/types/dictionaryManipulator/getNodeType.d.ts +2 -8
- package/dist/types/dictionaryManipulator/index.d.ts +12 -12
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +2 -7
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +2 -9
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +2 -15
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +2 -8
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +2 -8
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +2 -7
- package/dist/types/editDictionaryByKeyPath-BYIHcsyf.d.ts +8 -0
- package/dist/types/editDictionaryByKeyPath-BYIHcsyf.d.ts.map +1 -0
- package/dist/types/enumeration-CtuvB5Zz.d.ts +40 -0
- package/dist/types/enumeration-CtuvB5Zz.d.ts.map +1 -0
- package/dist/types/file-C3q8xvQb.d.ts +28 -0
- package/dist/types/file-C3q8xvQb.d.ts.map +1 -0
- package/dist/types/formatters/compact.d.ts +2 -20
- package/dist/types/formatters/currency.d.ts +2 -20
- package/dist/types/formatters/date.d.ts +2 -20
- package/dist/types/formatters/index.d.ts +10 -10
- package/dist/types/formatters/list.d.ts +2 -24
- package/dist/types/formatters/number.d.ts +2 -16
- package/dist/types/formatters/percentage.d.ts +2 -16
- package/dist/types/formatters/relativeTime.d.ts +2 -11
- package/dist/types/formatters/units.d.ts +2 -16
- package/dist/types/gender-Dd39Ijmf.d.ts +29 -0
- package/dist/types/gender-Dd39Ijmf.d.ts.map +1 -0
- package/dist/types/getBrowserLocale-RD_Mwv1t.d.ts +35 -0
- package/dist/types/getBrowserLocale-RD_Mwv1t.d.ts.map +1 -0
- package/dist/types/getContentNodeByKeyPath-B0Tdi5mj.d.ts +9 -0
- package/dist/types/getContentNodeByKeyPath-B0Tdi5mj.d.ts.map +1 -0
- package/dist/types/getCookie-DPOvVv_h.d.ts +11 -0
- package/dist/types/getCookie-DPOvVv_h.d.ts.map +1 -0
- package/dist/types/getDefaultNode-DQNsje2D.d.ts +9 -0
- package/dist/types/getDefaultNode-DQNsje2D.d.ts.map +1 -0
- package/dist/types/getEmptyNode-DW27TTBj.d.ts +7 -0
- package/dist/types/getEmptyNode-DW27TTBj.d.ts.map +1 -0
- package/dist/types/getFilterMissingTranslationsContent-CDNQqoy1.d.ts +50 -0
- package/dist/types/getFilterMissingTranslationsContent-CDNQqoy1.d.ts.map +1 -0
- package/dist/types/getFilterTranslationsOnlyContent-D2YgBkHn.d.ts +42 -0
- package/dist/types/getFilterTranslationsOnlyContent-D2YgBkHn.d.ts.map +1 -0
- package/dist/types/getFilteredLocalesContent-D0GP-uEg.d.ts +34 -0
- package/dist/types/getFilteredLocalesContent-D0GP-uEg.d.ts.map +1 -0
- package/dist/types/getHTML-CP6OXtdo.d.ts +32 -0
- package/dist/types/getHTML-CP6OXtdo.d.ts.map +1 -0
- package/dist/types/getHTMLTextDir-4Zh8J3x7.d.ts +21 -0
- package/dist/types/getHTMLTextDir-4Zh8J3x7.d.ts.map +1 -0
- package/dist/types/getInsertionValues-Cu9IdbuE.d.ts +5 -0
- package/dist/types/getInsertionValues-Cu9IdbuE.d.ts.map +1 -0
- package/dist/types/getLocale-B9dECUM_.d.ts +11 -0
- package/dist/types/getLocale-B9dECUM_.d.ts.map +1 -0
- package/dist/types/getLocaleFromPath-621W32QA.d.ts +26 -0
- package/dist/types/getLocaleFromPath-621W32QA.d.ts.map +1 -0
- package/dist/types/getLocaleLang-Bcan1gS4.d.ts +20 -0
- package/dist/types/getLocaleLang-Bcan1gS4.d.ts.map +1 -0
- package/dist/types/getLocaleName-CfRAD9Hc.d.ts +7 -0
- package/dist/types/getLocaleName-CfRAD9Hc.d.ts.map +1 -0
- package/dist/types/getLocalizedContent-DOncZd-0.d.ts +18 -0
- package/dist/types/getLocalizedContent-DOncZd-0.d.ts.map +1 -0
- package/dist/types/getLocalizedUrl-BbqeA3-W.d.ts +49 -0
- package/dist/types/getLocalizedUrl-BbqeA3-W.d.ts.map +1 -0
- package/dist/types/getMarkdownMetadata-Bf1S1NQ0.d.ts +5 -0
- package/dist/types/getMarkdownMetadata-Bf1S1NQ0.d.ts.map +1 -0
- package/dist/types/getMaskContent-BwLFqp7v.d.ts +10 -0
- package/dist/types/getMaskContent-BwLFqp7v.d.ts.map +1 -0
- package/dist/types/getMissingLocalesContent-BYffYcdx.d.ts +19 -0
- package/dist/types/getMissingLocalesContent-BYffYcdx.d.ts.map +1 -0
- package/dist/types/getMultilingualDictionary-DO3i1MFs.d.ts +32 -0
- package/dist/types/getMultilingualDictionary-DO3i1MFs.d.ts.map +1 -0
- package/dist/types/getMultilingualUrls-CUxYYfA4.d.ts +47 -0
- package/dist/types/getMultilingualUrls-CUxYYfA4.d.ts.map +1 -0
- package/dist/types/getNodeChildren-OT7Liqke.d.ts +7 -0
- package/dist/types/getNodeChildren-OT7Liqke.d.ts.map +1 -0
- package/dist/types/getNodeType-Cp765I26.d.ts +8 -0
- package/dist/types/getNodeType-Cp765I26.d.ts.map +1 -0
- package/dist/types/getPathWithoutLocale-B_aIR7O0.d.ts +31 -0
- package/dist/types/getPathWithoutLocale-B_aIR7O0.d.ts.map +1 -0
- package/dist/types/getPrefix-X9XKkrZD.d.ts +68 -0
- package/dist/types/getPrefix-X9XKkrZD.d.ts.map +1 -0
- package/dist/types/getReplacedValuesContent-BvL25pdt.d.ts +8 -0
- package/dist/types/getReplacedValuesContent-BvL25pdt.d.ts.map +1 -0
- package/dist/types/getSplittedContent-YD4JDMfB.d.ts +43 -0
- package/dist/types/getSplittedContent-YD4JDMfB.d.ts.map +1 -0
- package/dist/types/getStorageAttributes-CIO2xWqQ.d.ts +29 -0
- package/dist/types/getStorageAttributes-CIO2xWqQ.d.ts.map +1 -0
- package/dist/types/getStorageAttributes.d.ts +2 -29
- package/dist/types/getTranslation-BG2Wg-af.d.ts +30 -0
- package/dist/types/getTranslation-BG2Wg-af.d.ts.map +1 -0
- package/dist/types/html-Dn6KrpJ3.d.ts +25 -0
- package/dist/types/html-Dn6KrpJ3.d.ts.map +1 -0
- package/dist/types/htmlTags-YxTtVUx6.d.ts +115 -0
- package/dist/types/htmlTags-YxTtVUx6.d.ts.map +1 -0
- package/dist/types/i18next-qY0AixrB.d.ts +9 -0
- package/dist/types/i18next-qY0AixrB.d.ts.map +1 -0
- package/dist/types/index-1CTsSKEn.d.ts +1 -0
- package/dist/types/index-B8xF2zGo.d.ts +1 -0
- package/dist/types/index-BcsOTSQF.d.ts +1 -0
- package/dist/types/index-BnEeKNKW.d.ts +322 -0
- package/dist/types/index-BnEeKNKW.d.ts.map +1 -0
- package/dist/types/index-Cf8zm5QQ.d.ts +1 -0
- package/dist/types/index-CfvILin8.d.ts +1 -0
- package/dist/types/index-DK_kKFOF.d.ts +1 -0
- package/dist/types/index-DeJa0xZp.d.ts +1 -0
- package/dist/types/index-Vlqtiwjx.d.ts +1 -0
- package/dist/types/index.d.ts +80 -88
- package/dist/types/insertContentInDictionary-DZ3UzG4K.d.ts +25 -0
- package/dist/types/insertContentInDictionary-DZ3UzG4K.d.ts.map +1 -0
- package/dist/types/insertion-M5fwK-29.d.ts +23 -0
- package/dist/types/insertion-M5fwK-29.d.ts.map +1 -0
- package/dist/types/interpreter/getCondition.d.ts +2 -22
- package/dist/types/interpreter/getContent/deepTransform.d.ts +2 -12
- package/dist/types/interpreter/getContent/getContent.d.ts +2 -16
- package/dist/types/interpreter/getContent/index.d.ts +1 -3
- package/dist/types/interpreter/getContent/plugins.d.ts +2 -151
- package/dist/types/interpreter/getDictionary.d.ts +2 -17
- package/dist/types/interpreter/getEnumeration.d.ts +2 -58
- package/dist/types/interpreter/getGender.d.ts +1 -1
- package/dist/types/interpreter/getGender.d.ts.map +1 -1
- package/dist/types/interpreter/getHTML.d.ts +2 -32
- package/dist/types/interpreter/getInsertion.d.ts +1 -1
- package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayer.d.ts +2 -8
- package/dist/types/interpreter/getNesting.d.ts +2 -27
- package/dist/types/interpreter/getTranslation.d.ts +2 -30
- package/dist/types/interpreter/index.d.ts +4 -11
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts +2 -25
- package/dist/types/intl-B2Ap8I5x.d.ts +33 -0
- package/dist/types/intl-B2Ap8I5x.d.ts.map +1 -0
- package/dist/types/isSameKeyPath-CkH8NdJh.d.ts +7 -0
- package/dist/types/isSameKeyPath-CkH8NdJh.d.ts.map +1 -0
- package/dist/types/isValidReactElement-BsoJ01oP.d.ts +12 -0
- package/dist/types/isValidReactElement-BsoJ01oP.d.ts.map +1 -0
- package/dist/types/list-BdjJM2Gx.d.ts +30 -0
- package/dist/types/list-BdjJM2Gx.d.ts.map +1 -0
- package/dist/types/localeDetector-BWNCQRiZ.d.ts +18 -0
- package/dist/types/localeDetector-BWNCQRiZ.d.ts.map +1 -0
- package/dist/types/localeMapper-DoAnasqf.d.ts +92 -0
- package/dist/types/localeMapper-DoAnasqf.d.ts.map +1 -0
- package/dist/types/localeResolver-bb7AWQNX.d.ts +12 -0
- package/dist/types/localeResolver-bb7AWQNX.d.ts.map +1 -0
- package/dist/types/localeStorage-CZHwY0u3.d.ts +108 -0
- package/dist/types/localeStorage-CZHwY0u3.d.ts.map +1 -0
- package/dist/types/localization/getBrowserLocale.d.ts +2 -35
- package/dist/types/localization/getHTMLTextDir.d.ts +2 -21
- package/dist/types/localization/getLocale.d.ts +2 -11
- package/dist/types/localization/getLocaleFromPath.d.ts +2 -26
- package/dist/types/localization/getLocaleLang.d.ts +2 -20
- package/dist/types/localization/getLocaleName.d.ts +2 -7
- package/dist/types/localization/getLocalizedUrl.d.ts +2 -49
- package/dist/types/localization/getMultilingualUrls.d.ts +2 -47
- package/dist/types/localization/getPathWithoutLocale.d.ts +2 -31
- package/dist/types/localization/getPrefix.d.ts +2 -68
- package/dist/types/localization/index.d.ts +16 -16
- package/dist/types/localization/localeDetector.d.ts +2 -18
- package/dist/types/localization/localeMapper.d.ts +2 -92
- package/dist/types/localization/localeResolver.d.ts +2 -12
- package/dist/types/localization/rewriteUtils.d.ts +2 -34
- package/dist/types/localization/validatePrefix.d.ts +2 -38
- package/dist/types/markdown/compiler.d.ts +2 -9
- package/dist/types/markdown/constants.d.ts +2 -177
- package/dist/types/markdown/index.d.ts +10 -10
- package/dist/types/markdown/parser.d.ts +2 -16
- package/dist/types/markdown/renderer.d.ts +2 -22
- package/dist/types/markdown/types.d.ts +2 -333
- package/dist/types/markdown/utils.d.ts +2 -140
- package/dist/types/markdown-MzfikrI1.d.ts +26 -0
- package/dist/types/markdown-MzfikrI1.d.ts.map +1 -0
- package/dist/types/mergeDictionaries-D6WUMQN5.d.ts +7 -0
- package/dist/types/mergeDictionaries-D6WUMQN5.d.ts.map +1 -0
- package/dist/types/messageFormat/ICU.d.ts +2 -11
- package/dist/types/messageFormat/i18next.d.ts +2 -9
- package/dist/types/messageFormat/index.d.ts +3 -3
- package/dist/types/messageFormat/vue-i18n.d.ts +2 -9
- package/dist/types/normalizeDictionary-coviIGTW.d.ts +9 -0
- package/dist/types/normalizeDictionary-coviIGTW.d.ts.map +1 -0
- package/dist/types/number-C8izkCmU.d.ts +16 -0
- package/dist/types/number-C8izkCmU.d.ts.map +1 -0
- package/dist/types/orderDictionaries-SSCMY6qG.d.ts +15 -0
- package/dist/types/orderDictionaries-SSCMY6qG.d.ts.map +1 -0
- package/dist/types/parseYaml-D5gxutvA.d.ts +5 -0
- package/dist/types/parseYaml-D5gxutvA.d.ts.map +1 -0
- package/dist/types/parser-BVwR6Tjw.d.ts +16 -0
- package/dist/types/parser-BVwR6Tjw.d.ts.map +1 -0
- package/dist/types/percentage-BqsvW0Zw.d.ts +16 -0
- package/dist/types/percentage-BqsvW0Zw.d.ts.map +1 -0
- package/dist/types/relativeTime-mJaYEq7H.d.ts +11 -0
- package/dist/types/relativeTime-mJaYEq7H.d.ts.map +1 -0
- package/dist/types/removeContentNodeByKeyPath-CotCOOsD.d.ts +8 -0
- package/dist/types/removeContentNodeByKeyPath-CotCOOsD.d.ts.map +1 -0
- package/dist/types/renameContentNodeByKeyPath-BuyH5gOr.d.ts +8 -0
- package/dist/types/renameContentNodeByKeyPath-BuyH5gOr.d.ts.map +1 -0
- package/dist/types/renderer-C06x2Orf.d.ts +22 -0
- package/dist/types/renderer-C06x2Orf.d.ts.map +1 -0
- package/dist/types/rewriteUtils-Bd82NiGR.d.ts +34 -0
- package/dist/types/rewriteUtils-Bd82NiGR.d.ts.map +1 -0
- package/dist/types/splitAndJoinInsertion-bkuLa7o2.d.ts +25 -0
- package/dist/types/splitAndJoinInsertion-bkuLa7o2.d.ts.map +1 -0
- package/dist/types/translation-CiC-Avxc.d.ts +33 -0
- package/dist/types/translation-CiC-Avxc.d.ts.map +1 -0
- package/dist/types/transpiler/condition/condition.d.ts +2 -28
- package/dist/types/transpiler/condition/index.d.ts +1 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts +2 -40
- package/dist/types/transpiler/enumeration/index.d.ts +1 -1
- package/dist/types/transpiler/file/file.d.ts +2 -28
- package/dist/types/transpiler/file/fileBrowser.d.ts +1 -1
- package/dist/types/transpiler/file/index.d.ts +1 -1
- package/dist/types/transpiler/gender/gender.d.ts +2 -29
- package/dist/types/transpiler/gender/index.d.ts +1 -1
- package/dist/types/transpiler/html/html.d.ts +2 -25
- package/dist/types/transpiler/html/htmlTags.d.ts +2 -115
- package/dist/types/transpiler/html/index.d.ts +3 -3
- package/dist/types/transpiler/html/validateHTML.d.ts +2 -21
- package/dist/types/transpiler/index.d.ts +15 -15
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts +2 -5
- package/dist/types/transpiler/insertion/index.d.ts +2 -2
- package/dist/types/transpiler/insertion/insertion.d.ts +2 -23
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +2 -5
- package/dist/types/transpiler/markdown/index.d.ts +4 -4
- package/dist/types/transpiler/markdown/markdown.d.ts +2 -26
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts +3 -18
- package/dist/types/transpiler/nesting/index.d.ts +1 -1
- package/dist/types/transpiler/nesting/nesting.d.ts +2 -49
- package/dist/types/transpiler/translation/index.d.ts +1 -1
- package/dist/types/transpiler/translation/translation.d.ts +2 -33
- package/dist/types/types-C2Om0aEM.d.ts +333 -0
- package/dist/types/types-C2Om0aEM.d.ts.map +1 -0
- package/dist/types/units-CouGqa8j.d.ts +16 -0
- package/dist/types/units-CouGqa8j.d.ts.map +1 -0
- package/dist/types/updateNodeChildren-B5Tu1UBZ.d.ts +7 -0
- package/dist/types/updateNodeChildren-B5Tu1UBZ.d.ts.map +1 -0
- package/dist/types/utils/checkIsURLAbsolute.d.ts +2 -5
- package/dist/types/utils/getCookie.d.ts +2 -11
- package/dist/types/utils/index.d.ts +8 -8
- package/dist/types/utils/intl.d.ts +2 -33
- package/dist/types/utils/isSameKeyPath.d.ts +2 -7
- package/dist/types/utils/isValidReactElement.d.ts +2 -12
- package/dist/types/utils/localeStorage.d.ts +2 -108
- package/dist/types/utils/parseYaml.d.ts +2 -5
- package/dist/types/utils-Dcmgh_80.d.ts +140 -0
- package/dist/types/utils-Dcmgh_80.d.ts.map +1 -0
- package/dist/types/validateHTML-U7UKTtFd.d.ts +21 -0
- package/dist/types/validateHTML-U7UKTtFd.d.ts.map +1 -0
- package/dist/types/validateMarkdown-BUaTDDIu.d.ts +18 -0
- package/dist/types/validateMarkdown-BUaTDDIu.d.ts.map +1 -0
- package/dist/types/validatePrefix-Dtmg7QLq.d.ts +38 -0
- package/dist/types/validatePrefix-Dtmg7QLq.d.ts.map +1 -0
- package/dist/types/vue-i18n-JtUB7N_m.d.ts +9 -0
- package/dist/types/vue-i18n-JtUB7N_m.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/cjs/interpreter/getContent/getContent.cjs.map +0 -1
- package/dist/cjs/interpreter/getContent/plugins.cjs.map +0 -1
- package/dist/cjs/interpreter/getDictionary.cjs.map +0 -1
- package/dist/cjs/interpreter/getIntlayer.cjs.map +0 -1
- package/dist/cjs/interpreter/getNesting.cjs.map +0 -1
- package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs.map +0 -1
- package/dist/cjs/transpiler/html/html.cjs.map +0 -1
- package/dist/esm/interpreter/getContent/getContent.mjs.map +0 -1
- package/dist/esm/interpreter/getContent/plugins.mjs.map +0 -1
- package/dist/esm/interpreter/getDictionary.mjs.map +0 -1
- package/dist/esm/interpreter/getIntlayer.mjs.map +0 -1
- package/dist/esm/interpreter/getNesting.mjs.map +0 -1
- package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs.map +0 -1
- package/dist/esm/transpiler/html/html.mjs.map +0 -1
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +0 -1
- package/dist/types/formatters/compact.d.ts.map +0 -1
- package/dist/types/formatters/currency.d.ts.map +0 -1
- package/dist/types/formatters/date.d.ts.map +0 -1
- package/dist/types/formatters/list.d.ts.map +0 -1
- package/dist/types/formatters/number.d.ts.map +0 -1
- package/dist/types/formatters/percentage.d.ts.map +0 -1
- package/dist/types/formatters/relativeTime.d.ts.map +0 -1
- package/dist/types/formatters/units.d.ts.map +0 -1
- package/dist/types/getStorageAttributes.d.ts.map +0 -1
- package/dist/types/interpreter/getCondition.d.ts.map +0 -1
- package/dist/types/interpreter/getContent/deepTransform.d.ts.map +0 -1
- package/dist/types/interpreter/getContent/getContent.d.ts.map +0 -1
- package/dist/types/interpreter/getContent/plugins.d.ts.map +0 -1
- package/dist/types/interpreter/getDictionary.d.ts.map +0 -1
- package/dist/types/interpreter/getEnumeration.d.ts.map +0 -1
- package/dist/types/interpreter/getHTML.d.ts.map +0 -1
- package/dist/types/interpreter/getIntlayer.d.ts.map +0 -1
- package/dist/types/interpreter/getNesting.d.ts.map +0 -1
- package/dist/types/interpreter/getTranslation.d.ts.map +0 -1
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts.map +0 -1
- package/dist/types/localization/getBrowserLocale.d.ts.map +0 -1
- package/dist/types/localization/getHTMLTextDir.d.ts.map +0 -1
- package/dist/types/localization/getLocale.d.ts.map +0 -1
- package/dist/types/localization/getLocaleFromPath.d.ts.map +0 -1
- package/dist/types/localization/getLocaleLang.d.ts.map +0 -1
- package/dist/types/localization/getLocaleName.d.ts.map +0 -1
- package/dist/types/localization/getLocalizedUrl.d.ts.map +0 -1
- package/dist/types/localization/getMultilingualUrls.d.ts.map +0 -1
- package/dist/types/localization/getPathWithoutLocale.d.ts.map +0 -1
- package/dist/types/localization/getPrefix.d.ts.map +0 -1
- package/dist/types/localization/localeDetector.d.ts.map +0 -1
- package/dist/types/localization/localeMapper.d.ts.map +0 -1
- package/dist/types/localization/localeResolver.d.ts.map +0 -1
- package/dist/types/localization/rewriteUtils.d.ts.map +0 -1
- package/dist/types/localization/validatePrefix.d.ts.map +0 -1
- package/dist/types/markdown/compiler.d.ts.map +0 -1
- package/dist/types/markdown/constants.d.ts.map +0 -1
- package/dist/types/markdown/parser.d.ts.map +0 -1
- package/dist/types/markdown/renderer.d.ts.map +0 -1
- package/dist/types/markdown/types.d.ts.map +0 -1
- package/dist/types/markdown/utils.d.ts.map +0 -1
- package/dist/types/messageFormat/ICU.d.ts.map +0 -1
- package/dist/types/messageFormat/i18next.d.ts.map +0 -1
- package/dist/types/messageFormat/vue-i18n.d.ts.map +0 -1
- package/dist/types/transpiler/condition/condition.d.ts.map +0 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +0 -1
- package/dist/types/transpiler/file/file.d.ts.map +0 -1
- package/dist/types/transpiler/gender/gender.d.ts.map +0 -1
- package/dist/types/transpiler/html/html.d.ts.map +0 -1
- package/dist/types/transpiler/html/htmlTags.d.ts.map +0 -1
- package/dist/types/transpiler/html/validateHTML.d.ts.map +0 -1
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +0 -1
- package/dist/types/transpiler/insertion/insertion.d.ts.map +0 -1
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +0 -1
- package/dist/types/transpiler/markdown/markdown.d.ts.map +0 -1
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts.map +0 -1
- package/dist/types/transpiler/nesting/nesting.d.ts.map +0 -1
- package/dist/types/transpiler/translation/translation.d.ts.map +0 -1
- package/dist/types/utils/checkIsURLAbsolute.d.ts.map +0 -1
- package/dist/types/utils/getCookie.d.ts.map +0 -1
- package/dist/types/utils/intl.d.ts.map +0 -1
- package/dist/types/utils/isSameKeyPath.d.ts.map +0 -1
- package/dist/types/utils/isValidReactElement.d.ts.map +0 -1
- package/dist/types/utils/localeStorage.d.ts.map +0 -1
- package/dist/types/utils/parseYaml.d.ts.map +0 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
//#region src/markdown/constants.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Analogous to `node.type`. Please note that the values here may change at any time,
|
|
4
|
+
* so do not hard code against the value directly.
|
|
5
|
+
*/
|
|
6
|
+
declare const RuleType: {
|
|
7
|
+
readonly blockQuote: "0";
|
|
8
|
+
readonly breakLine: "1";
|
|
9
|
+
readonly breakThematic: "2";
|
|
10
|
+
readonly codeBlock: "3";
|
|
11
|
+
readonly codeFenced: "4";
|
|
12
|
+
readonly codeInline: "5";
|
|
13
|
+
readonly footnote: "6";
|
|
14
|
+
readonly footnoteReference: "7";
|
|
15
|
+
readonly gfmTask: "8";
|
|
16
|
+
readonly heading: "9";
|
|
17
|
+
readonly headingSetext: "10"; /** only available if not `disableHTMLParsing` */
|
|
18
|
+
readonly htmlBlock: "11";
|
|
19
|
+
readonly htmlComment: "12"; /** only available if not `disableHTMLParsing` */
|
|
20
|
+
readonly htmlSelfClosing: "13"; /** Custom components like <Tabs>, <TabItem> */
|
|
21
|
+
readonly customComponent: "34";
|
|
22
|
+
readonly image: "14";
|
|
23
|
+
readonly link: "15"; /** emits a `link` 'node', does not render directly */
|
|
24
|
+
readonly linkAngleBraceStyleDetector: "16"; /** emits a `link` 'node', does not render directly */
|
|
25
|
+
readonly linkBareUrlDetector: "17";
|
|
26
|
+
readonly newlineCoalescer: "19";
|
|
27
|
+
readonly orderedList: "20";
|
|
28
|
+
readonly paragraph: "21";
|
|
29
|
+
readonly ref: "22";
|
|
30
|
+
readonly refImage: "23";
|
|
31
|
+
readonly refLink: "24";
|
|
32
|
+
readonly table: "25";
|
|
33
|
+
readonly tableSeparator: "26";
|
|
34
|
+
readonly text: "27";
|
|
35
|
+
readonly textBolded: "28";
|
|
36
|
+
readonly textEmphasized: "29";
|
|
37
|
+
readonly textEscaped: "30";
|
|
38
|
+
readonly textMarked: "31";
|
|
39
|
+
readonly textStrikethroughed: "32";
|
|
40
|
+
readonly unorderedList: "33";
|
|
41
|
+
};
|
|
42
|
+
type RuleTypeValue = (typeof RuleType)[keyof typeof RuleType];
|
|
43
|
+
/**
|
|
44
|
+
* Priority levels for rule ordering.
|
|
45
|
+
*/
|
|
46
|
+
declare const Priority: {
|
|
47
|
+
/** anything that must scan the tree before everything else */readonly MAX: 0; /** scans for block-level constructs */
|
|
48
|
+
readonly HIGH: 1; /** inline w/ more priority than other inline */
|
|
49
|
+
readonly MED: 2; /** inline elements */
|
|
50
|
+
readonly LOW: 3; /** bare text and stuff that is considered leftovers */
|
|
51
|
+
readonly MIN: 4;
|
|
52
|
+
};
|
|
53
|
+
type PriorityValue = (typeof Priority)[keyof typeof Priority];
|
|
54
|
+
/** Threshold for performance logging (in milliseconds) */
|
|
55
|
+
declare const DURATION_DELAY_TRIGGER = 20;
|
|
56
|
+
/**
|
|
57
|
+
* Map of HTML attributes to their JSX prop equivalents.
|
|
58
|
+
* Some renderers use camelCase for certain attributes.
|
|
59
|
+
*/
|
|
60
|
+
declare const ATTRIBUTE_TO_NODE_PROP_MAP: Record<string, string>;
|
|
61
|
+
/**
|
|
62
|
+
* Default HTML entity to unicode mappings.
|
|
63
|
+
*/
|
|
64
|
+
declare const NAMED_CODES_TO_UNICODE: Record<string, string>;
|
|
65
|
+
/** HTML elements that should not have their content processed */
|
|
66
|
+
declare const DO_NOT_PROCESS_HTML_ELEMENTS: string[];
|
|
67
|
+
/** Attributes that require URL sanitization */
|
|
68
|
+
declare const ATTRIBUTES_TO_SANITIZE: string[];
|
|
69
|
+
/** Attribute extractor regex */
|
|
70
|
+
declare const ATTR_EXTRACTOR_R: RegExp;
|
|
71
|
+
/** Block end detection */
|
|
72
|
+
declare const BLOCK_END_R: RegExp;
|
|
73
|
+
/** Blockquote patterns */
|
|
74
|
+
declare const BLOCKQUOTE_R: RegExp;
|
|
75
|
+
declare const BLOCKQUOTE_TRIM_LEFT_MULTILINE_R: RegExp;
|
|
76
|
+
declare const BLOCKQUOTE_ALERT_R: RegExp;
|
|
77
|
+
/** Line break patterns */
|
|
78
|
+
declare const BREAK_LINE_R: RegExp;
|
|
79
|
+
declare const BREAK_THEMATIC_R: RegExp;
|
|
80
|
+
/** Code block patterns */
|
|
81
|
+
declare const CODE_BLOCK_FENCED_R: RegExp;
|
|
82
|
+
declare const CODE_BLOCK_R: RegExp;
|
|
83
|
+
declare const CODE_INLINE_R: RegExp;
|
|
84
|
+
/** Newline patterns */
|
|
85
|
+
declare const CONSECUTIVE_NEWLINE_R: RegExp;
|
|
86
|
+
declare const CR_NEWLINE_R: RegExp;
|
|
87
|
+
/** Footnote patterns */
|
|
88
|
+
declare const FOOTNOTE_R: RegExp;
|
|
89
|
+
declare const FOOTNOTE_REFERENCE_R: RegExp;
|
|
90
|
+
/** Form feed */
|
|
91
|
+
declare const FORMFEED_R: RegExp;
|
|
92
|
+
/** Front matter */
|
|
93
|
+
declare const FRONT_MATTER_R: RegExp;
|
|
94
|
+
/** GFM task */
|
|
95
|
+
declare const GFM_TASK_R: RegExp;
|
|
96
|
+
/** Heading patterns */
|
|
97
|
+
declare const HEADING_R: RegExp;
|
|
98
|
+
declare const HEADING_ATX_COMPLIANT_R: RegExp;
|
|
99
|
+
declare const HEADING_SETEXT_R: RegExp;
|
|
100
|
+
/** HTML patterns */
|
|
101
|
+
declare const HTML_BLOCK_ELEMENT_R: RegExp;
|
|
102
|
+
declare const HTML_CHAR_CODE_R: RegExp;
|
|
103
|
+
declare const HTML_COMMENT_R: RegExp;
|
|
104
|
+
declare const HTML_CUSTOM_ATTR_R: RegExp;
|
|
105
|
+
declare const HTML_SELF_CLOSING_ELEMENT_R: RegExp;
|
|
106
|
+
/** Custom component pattern */
|
|
107
|
+
declare const CUSTOM_COMPONENT_R: RegExp;
|
|
108
|
+
/** Interpolation */
|
|
109
|
+
declare const INTERPOLATION_R: RegExp;
|
|
110
|
+
/** Link patterns */
|
|
111
|
+
declare const LINK_AUTOLINK_BARE_URL_R: RegExp;
|
|
112
|
+
declare const LINK_AUTOLINK_R: RegExp;
|
|
113
|
+
declare const CAPTURE_LETTER_AFTER_HYPHEN: RegExp;
|
|
114
|
+
/** Table patterns */
|
|
115
|
+
declare const NP_TABLE_R: RegExp;
|
|
116
|
+
declare const TABLE_TRIM_PIPES: RegExp;
|
|
117
|
+
declare const TABLE_CENTER_ALIGN: RegExp;
|
|
118
|
+
declare const TABLE_LEFT_ALIGN: RegExp;
|
|
119
|
+
declare const TABLE_RIGHT_ALIGN: RegExp;
|
|
120
|
+
/** Paragraph */
|
|
121
|
+
declare const PARAGRAPH_R: RegExp;
|
|
122
|
+
/** Reference patterns */
|
|
123
|
+
declare const REFERENCE_IMAGE_OR_LINK: RegExp;
|
|
124
|
+
declare const REFERENCE_IMAGE_R: RegExp;
|
|
125
|
+
declare const REFERENCE_LINK_R: RegExp;
|
|
126
|
+
/** Block detection */
|
|
127
|
+
declare const SHOULD_RENDER_AS_BLOCK_R: RegExp;
|
|
128
|
+
/** Tab and whitespace */
|
|
129
|
+
declare const TAB_R: RegExp;
|
|
130
|
+
declare const TRIM_STARTING_NEWLINES: RegExp;
|
|
131
|
+
declare const HTML_LEFT_TRIM_AMOUNT_R: RegExp;
|
|
132
|
+
/** List patterns */
|
|
133
|
+
declare const LIST_LOOKBEHIND_R: RegExp;
|
|
134
|
+
declare const ORDERED_LIST_BULLET = "(?:\\d+\\.)";
|
|
135
|
+
declare const UNORDERED_LIST_BULLET = "(?:[*+-])";
|
|
136
|
+
/** Text formatting patterns */
|
|
137
|
+
declare const TEXT_ESCAPED_R: RegExp;
|
|
138
|
+
declare const UNESCAPE_R: RegExp;
|
|
139
|
+
declare const TEXT_PLAIN_R: RegExp;
|
|
140
|
+
/** Shortcode pattern */
|
|
141
|
+
declare const SHORTCODE_R: RegExp;
|
|
142
|
+
type ListType = 1 | 2;
|
|
143
|
+
declare const ORDERED: ListType;
|
|
144
|
+
declare const UNORDERED: ListType;
|
|
145
|
+
/**
|
|
146
|
+
* Ensure there's at least one more instance of the delimiter later
|
|
147
|
+
* in the current sequence.
|
|
148
|
+
*/
|
|
149
|
+
declare const LOOKAHEAD: (double: number) => string;
|
|
150
|
+
/**
|
|
151
|
+
* For inline formatting, this partial attempts to ignore characters that
|
|
152
|
+
* may appear in nested formatting.
|
|
153
|
+
*/
|
|
154
|
+
declare const INLINE_SKIP_R = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\[^\\s]|[\\s\\S])+?)";
|
|
155
|
+
/** Bold text pattern */
|
|
156
|
+
declare const TEXT_BOLD_R: RegExp;
|
|
157
|
+
/** Emphasized text pattern */
|
|
158
|
+
declare const TEXT_EMPHASIZED_R: RegExp;
|
|
159
|
+
/** Marked text pattern */
|
|
160
|
+
declare const TEXT_MARKED_R: RegExp;
|
|
161
|
+
/** Strikethrough text pattern */
|
|
162
|
+
declare const TEXT_STRIKETHROUGHED_R: RegExp;
|
|
163
|
+
declare const generateListItemPrefix: (type: ListType) => string;
|
|
164
|
+
declare const ORDERED_LIST_ITEM_PREFIX: string;
|
|
165
|
+
declare const UNORDERED_LIST_ITEM_PREFIX: string;
|
|
166
|
+
declare const generateListItemPrefixRegex: (type: ListType) => RegExp;
|
|
167
|
+
declare const ORDERED_LIST_ITEM_PREFIX_R: RegExp;
|
|
168
|
+
declare const UNORDERED_LIST_ITEM_PREFIX_R: RegExp;
|
|
169
|
+
declare const generateListItemRegex: (type: ListType) => RegExp;
|
|
170
|
+
declare const ORDERED_LIST_ITEM_R: RegExp;
|
|
171
|
+
declare const UNORDERED_LIST_ITEM_R: RegExp;
|
|
172
|
+
declare const generateListRegex: (type: ListType) => RegExp;
|
|
173
|
+
declare const ORDERED_LIST_R: RegExp;
|
|
174
|
+
declare const UNORDERED_LIST_R: RegExp;
|
|
175
|
+
//#endregion
|
|
176
|
+
export { REFERENCE_LINK_R as $, HTML_CUSTOM_ATTR_R as A, NAMED_CODES_TO_UNICODE as B, GFM_TASK_R as C, generateListItemPrefix as Ct, HTML_BLOCK_ELEMENT_R as D, HEADING_SETEXT_R as E, generateListRegex as Et, LINK_AUTOLINK_BARE_URL_R as F, ORDERED_LIST_ITEM_PREFIX_R as G, ORDERED as H, LINK_AUTOLINK_R as I, PARAGRAPH_R as J, ORDERED_LIST_ITEM_R as K, LIST_LOOKBEHIND_R as L, HTML_SELF_CLOSING_ELEMENT_R as M, INLINE_SKIP_R as N, HTML_CHAR_CODE_R as O, INTERPOLATION_R as P, REFERENCE_IMAGE_R as Q, LOOKAHEAD as R, FRONT_MATTER_R as S, UNORDERED_LIST_R as St, HEADING_R as T, generateListItemRegex as Tt, ORDERED_LIST_BULLET as U, NP_TABLE_R as V, ORDERED_LIST_ITEM_PREFIX as W, PriorityValue as X, Priority as Y, REFERENCE_IMAGE_OR_LINK as Z, DO_NOT_PROCESS_HTML_ELEMENTS as _, UNORDERED as _t, BLOCKQUOTE_R as a, TABLE_LEFT_ALIGN as at, FOOTNOTE_REFERENCE_R as b, UNORDERED_LIST_ITEM_PREFIX_R as bt, BREAK_LINE_R as c, TAB_R as ct, CODE_BLOCK_FENCED_R as d, TEXT_ESCAPED_R as dt, RuleType as et, CODE_BLOCK_R as f, TEXT_MARKED_R as ft, CUSTOM_COMPONENT_R as g, UNESCAPE_R as gt, CR_NEWLINE_R as h, TRIM_STARTING_NEWLINES as ht, BLOCKQUOTE_ALERT_R as i, TABLE_CENTER_ALIGN as it, HTML_LEFT_TRIM_AMOUNT_R as j, HTML_COMMENT_R as k, BREAK_THEMATIC_R as l, TEXT_BOLD_R as lt, CONSECUTIVE_NEWLINE_R as m, TEXT_STRIKETHROUGHED_R as mt, ATTRIBUTE_TO_NODE_PROP_MAP as n, SHORTCODE_R as nt, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R as o, TABLE_RIGHT_ALIGN as ot, CODE_INLINE_R as p, TEXT_PLAIN_R as pt, ORDERED_LIST_R as q, ATTR_EXTRACTOR_R as r, SHOULD_RENDER_AS_BLOCK_R as rt, BLOCK_END_R as s, TABLE_TRIM_PIPES as st, ATTRIBUTES_TO_SANITIZE as t, RuleTypeValue as tt, CAPTURE_LETTER_AFTER_HYPHEN as u, TEXT_EMPHASIZED_R as ut, DURATION_DELAY_TRIGGER as v, UNORDERED_LIST_BULLET as vt, HEADING_ATX_COMPLIANT_R as w, generateListItemPrefixRegex as wt, FORMFEED_R as x, UNORDERED_LIST_ITEM_R as xt, FOOTNOTE_R as y, UNORDERED_LIST_ITEM_PREFIX as yt, ListType as z };
|
|
177
|
+
//# sourceMappingURL=constants-CI_D82B1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-CI_D82B1.d.ts","names":[],"sources":["../../src/markdown/constants.ts"],"mappings":";;AAQA;;;cAAa,QAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDD,aAAA,WAAwB,QAAA,eAAuB,QAAA;AAS3D;;;AAAA,cAAa,QAAA;;;;mBAaY;EAAA;;KAAb,aAAA,WAAwB,QAAA,eAAuB,QAAA;AAO3D;AAAA,cAAa,sBAAA;;;;AAUb;cAAa,0BAAA,EAA4B,MAAA;;;;cAuD5B,sBAAA,EAAwB,MAAA;;cAcxB,4BAAA;;cAGA,sBAAA;AAHb;AAAA,cAiBa,gBAAA,EAAgB,MAAA;;cAIhB,WAAA,EAAW,MAAA;;cAGX,YAAA,EAAY,MAAA;AAAA,cACZ,gCAAA,EAAgC,MAAA;AAAA,cAChC,kBAAA,EAAkB,MAAA;;cAGlB,YAAA,EAAY,MAAA;AAAA,cACZ,gBAAA,EAAgB,MAAA;;cAGhB,mBAAA,EAAmB,MAAA;AAAA,cAEnB,YAAA,EAAY,MAAA;AAAA,cACZ,aAAA,EAAa,MAAA;AAf1B;AAAA,cAkBa,qBAAA,EAAqB,MAAA;AAAA,cACrB,YAAA,EAAY,MAAA;;cAGZ,UAAA,EAAU,MAAA;AAAA,cACV,oBAAA,EAAoB,MAAA;;cAGpB,UAAA,EAAU,MAAA;;cAGV,cAAA,EAAc,MAAA;AAzB3B;AAAA,cA4Ba,UAAA,EAAU,MAAA;;cAGV,SAAA,EAAS,MAAA;AAAA,cACT,uBAAA,EAAuB,MAAA;AAAA,cAEvB,gBAAA,EAAgB,MAAA;;cAGhB,oBAAA,EAAoB,MAAA;AAAA,cAEpB,gBAAA,EAAgB,MAAA;AAAA,cAEhB,cAAA,EAAc,MAAA;AAAA,cACd,kBAAA,EAAkB,MAAA;AAAA,cAClB,2BAAA,EAA2B,MAAA;;cAI3B,kBAAA,EAAkB,MAAA;;cAIlB,eAAA,EAAe,MAAA;;cAGf,wBAAA,EAAwB,MAAA;AAAA,cACxB,eAAA,EAAe,MAAA;AAAA,cACf,2BAAA,EAA2B,MAAA;AAhDxC;AAAA,cAmDa,UAAA,EAAU,MAAA;AAAA,cAEV,gBAAA,EAAgB,MAAA;AAAA,cAChB,kBAAA,EAAkB,MAAA;AAAA,cAClB,gBAAA,EAAgB,MAAA;AAAA,cAChB,iBAAA,EAAiB,MAAA;;cAGjB,WAAA,EAAW,MAAA;;cAGX,uBAAA,EAAuB,MAAA;AAAA,cAEvB,iBAAA,EAAiB,MAAA;AAAA,cACjB,gBAAA,EAAgB,MAAA;;cAGhB,wBAAA,EAAwB,MAAA;;cAGxB,KAAA,EAAK,MAAA;AAAA,cACL,sBAAA,EAAsB,MAAA;AAAA,cACtB,uBAAA,EAAuB,MAAA;;cAGvB,iBAAA,EAAiB,MAAA;AAAA,cACjB,mBAAA;AAAA,cACA,qBAAA;;cAGA,cAAA,EAAc,MAAA;AAAA,cACd,UAAA,EAAU,MAAA;AAAA,cACV,YAAA,EAAY,MAAA;;cAIZ,WAAA,EAAW,MAAA;AAAA,KAMZ,QAAA;AAAA,cACC,OAAA,EAAS,QAAA;AAAA,cACT,SAAA,EAAW,QAAA;;;;;cAUX,SAAA,GAAa,MAAA;;;;;cAOb,aAAA;;cAIA,WAAA,EAAW,MAAA;;cAKX,iBAAA,EAAiB,MAAA;AArG9B;AAAA,cA0Ga,aAAA,EAAa,MAAA;;cAKb,sBAAA,EAAsB,MAAA;AAAA,cAQtB,sBAAA,GAA0B,IAAA,EAAM,QAAA;AAAA,cAQhC,wBAAA;AAAA,cACA,0BAAA;AAAA,cAEA,2BAAA,GAA+B,IAAA,EAAM,QAAA,KAAW,MAAA;AAAA,cAOhD,0BAAA,EAA0B,MAAA;AAAA,cAC1B,4BAAA,EAA4B,MAAA;AAAA,cAG5B,qBAAA,GAAyB,IAAA,EAAM,QAAA,KAAW,MAAA;AAAA,cAc1C,mBAAA,EAAmB,MAAA;AAAA,cACnB,qBAAA,EAAqB,MAAA;AAAA,cAErB,iBAAA,GAAqB,IAAA,EAAM,QAAA,KAAW,MAAA;AAAA,cAiBtC,cAAA,EAAc,MAAA;AAAA,cACd,gBAAA,EAAgB,MAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
|
|
3
|
+
//#region src/formatters/currency.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Formats a numeric or string value into a localized currency string using the Intl API.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* currency({ value: 1234.5, currency: 'EUR' });
|
|
9
|
+
* // "€1,234.50"
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* currency({ value: "5000", locale: Locales.FRENCH, currency: "CAD", currencyDisplay: "code" });
|
|
13
|
+
* // "5 000,00 CAD"
|
|
14
|
+
*/
|
|
15
|
+
declare const currency: (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
16
|
+
locale?: LocalesValues;
|
|
17
|
+
}) => string;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { currency as t };
|
|
20
|
+
//# sourceMappingURL=currency-PbMCnHep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency-PbMCnHep.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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
|
|
3
|
+
//#region src/formatters/date.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Formats a date/time value into a localized string using Intl.DateTimeFormat.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* date({ date: new Date(), options: "short" });
|
|
9
|
+
* // "08/02/25, 14:30"
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* date({ date: "2025-08-02T14:30:00Z", locale: Locales.FRENCH, options: { month: "long", day: "numeric" } });
|
|
13
|
+
* // "2 août"
|
|
14
|
+
*/
|
|
15
|
+
declare const date: (date: Date | string | number, options?: Intl.DateTimeFormatOptions & {
|
|
16
|
+
locale?: LocalesValues;
|
|
17
|
+
}) => string;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { date as t };
|
|
20
|
+
//# sourceMappingURL=date-C-PI8KqU.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-C-PI8KqU.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,50 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
|
|
6
|
-
//#region src/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts
|
|
7
|
-
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
8
|
-
declare const filterMissingTranslationsOnlyPlugin: (localeToCheck: LocalesValues) => Plugins;
|
|
9
|
-
/**
|
|
10
|
-
* For each translation node, it compare is both localeToCheck and baseLocale are present.
|
|
11
|
-
*
|
|
12
|
-
* If yes, it should remove the node from the content.
|
|
13
|
-
* If no, it should keep the node
|
|
14
|
-
*
|
|
15
|
-
* In complete mode, for large dictionaries, we want to filter all content that is already translated
|
|
16
|
-
*
|
|
17
|
-
* locale: fr
|
|
18
|
-
*
|
|
19
|
-
* { test1: t({ ar: 'Hello', en: 'Hello', fr: 'Bonjour' } }) -> {}
|
|
20
|
-
* { test2: t({ ar: 'Hello', en: 'Hello' }) } -> { test2: t({ ar: 'Hello', en: 'Hello' }) }
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
declare const getFilterMissingTranslationsContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, localeToCheck: L, nodeProps: NodeProps) => any;
|
|
24
|
-
declare const getFilterMissingTranslationsDictionary: (dictionary: Dictionary, localeToCheck: LocalesValues) => {
|
|
25
|
-
content: any;
|
|
26
|
-
$schema?: "https://intlayer.org/schema.json";
|
|
27
|
-
id?: _intlayer_types_dictionary0.DictionaryId;
|
|
28
|
-
projectIds?: string[];
|
|
29
|
-
localId?: _intlayer_types_dictionary0.LocalDictionaryId;
|
|
30
|
-
localIds?: _intlayer_types_dictionary0.LocalDictionaryId[];
|
|
31
|
-
format?: _intlayer_types_dictionary0.DictionaryFormat;
|
|
32
|
-
key: _intlayer_types_dictionary0.DictionaryKey;
|
|
33
|
-
title?: string;
|
|
34
|
-
description?: string;
|
|
35
|
-
versions?: string[];
|
|
36
|
-
version?: string;
|
|
37
|
-
filePath?: string;
|
|
38
|
-
tags?: string[];
|
|
39
|
-
locale?: LocalesValues;
|
|
40
|
-
contentAutoTransformation?: _intlayer_types_dictionary0.ContentAutoTransformation;
|
|
41
|
-
fill?: _intlayer_types_dictionary0.Fill;
|
|
42
|
-
filled?: true;
|
|
43
|
-
priority?: number;
|
|
44
|
-
importMode?: _intlayer_types_dictionary0.ImportMode;
|
|
45
|
-
location?: _intlayer_types_dictionary0.DictionaryLocation;
|
|
46
|
-
schema: undefined;
|
|
47
|
-
};
|
|
48
|
-
//#endregion
|
|
49
|
-
export { filterMissingTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary };
|
|
50
|
-
//# sourceMappingURL=getFilterMissingTranslationsContent.d.ts.map
|
|
1
|
+
import { n as getFilterMissingTranslationsContent, r as getFilterMissingTranslationsDictionary, t as filterMissingTranslationsOnlyPlugin } from "../getFilterMissingTranslationsContent-CDNQqoy1.js";
|
|
2
|
+
export { filterMissingTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary };
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
|
|
6
|
-
//#region src/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts
|
|
7
|
-
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
8
|
-
declare const filterTranslationsOnlyPlugin: (locale: LocalesValues, fallback?: LocalesValues) => Plugins;
|
|
9
|
-
/**
|
|
10
|
-
* Return the content of a node with only the translation plugin.
|
|
11
|
-
*
|
|
12
|
-
* @param node The node to transform.
|
|
13
|
-
* @param locale The locale to use if your transformers need it (e.g. for translations).
|
|
14
|
-
*/
|
|
15
|
-
declare const getFilterTranslationsOnlyContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
16
|
-
declare const getFilterTranslationsOnlyDictionary: (dictionary: Dictionary, locale?: LocalesValues, fallback?: LocalesValues) => {
|
|
17
|
-
content: any;
|
|
18
|
-
$schema?: "https://intlayer.org/schema.json";
|
|
19
|
-
id?: _intlayer_types_dictionary0.DictionaryId;
|
|
20
|
-
projectIds?: string[];
|
|
21
|
-
localId?: _intlayer_types_dictionary0.LocalDictionaryId;
|
|
22
|
-
localIds?: _intlayer_types_dictionary0.LocalDictionaryId[];
|
|
23
|
-
format?: _intlayer_types_dictionary0.DictionaryFormat;
|
|
24
|
-
key: _intlayer_types_dictionary0.DictionaryKey;
|
|
25
|
-
title?: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
versions?: string[];
|
|
28
|
-
version?: string;
|
|
29
|
-
filePath?: string;
|
|
30
|
-
tags?: string[];
|
|
31
|
-
locale?: LocalesValues;
|
|
32
|
-
contentAutoTransformation?: _intlayer_types_dictionary0.ContentAutoTransformation;
|
|
33
|
-
fill?: _intlayer_types_dictionary0.Fill;
|
|
34
|
-
filled?: true;
|
|
35
|
-
priority?: number;
|
|
36
|
-
importMode?: _intlayer_types_dictionary0.ImportMode;
|
|
37
|
-
location?: _intlayer_types_dictionary0.DictionaryLocation;
|
|
38
|
-
schema: undefined;
|
|
39
|
-
};
|
|
40
|
-
//#endregion
|
|
41
|
-
export { filterTranslationsOnlyPlugin, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary };
|
|
42
|
-
//# sourceMappingURL=getFilterTranslationsOnlyContent.d.ts.map
|
|
1
|
+
import { n as getFilterTranslationsOnlyContent, r as getFilterTranslationsOnlyDictionary, t as filterTranslationsOnlyPlugin } from "../getFilterTranslationsOnlyContent-D2YgBkHn.js";
|
|
2
|
+
export { filterTranslationsOnlyPlugin, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary };
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
|
|
6
|
-
//#region src/deepTransformPlugins/getFilteredLocalesContent.d.ts
|
|
7
|
-
declare const getFilteredLocalesContent: (node: ContentNode, locales: LocalesValues | LocalesValues[], nodeProps: NodeProps) => any;
|
|
8
|
-
declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: LocalesValues | LocalesValues[]) => {
|
|
9
|
-
content: any;
|
|
10
|
-
$schema?: "https://intlayer.org/schema.json";
|
|
11
|
-
id?: _intlayer_types_dictionary0.DictionaryId;
|
|
12
|
-
projectIds?: string[];
|
|
13
|
-
localId?: _intlayer_types_dictionary0.LocalDictionaryId;
|
|
14
|
-
localIds?: _intlayer_types_dictionary0.LocalDictionaryId[];
|
|
15
|
-
format?: _intlayer_types_dictionary0.DictionaryFormat;
|
|
16
|
-
key: _intlayer_types_dictionary0.DictionaryKey;
|
|
17
|
-
title?: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
versions?: string[];
|
|
20
|
-
version?: string;
|
|
21
|
-
filePath?: string;
|
|
22
|
-
tags?: string[];
|
|
23
|
-
locale?: LocalesValues;
|
|
24
|
-
contentAutoTransformation?: _intlayer_types_dictionary0.ContentAutoTransformation;
|
|
25
|
-
fill?: _intlayer_types_dictionary0.Fill;
|
|
26
|
-
filled?: true;
|
|
27
|
-
priority?: number;
|
|
28
|
-
importMode?: _intlayer_types_dictionary0.ImportMode;
|
|
29
|
-
location?: _intlayer_types_dictionary0.DictionaryLocation;
|
|
30
|
-
schema: undefined;
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
export { getFilteredLocalesContent, getFilteredLocalesDictionary };
|
|
34
|
-
//# sourceMappingURL=getFilteredLocalesContent.d.ts.map
|
|
1
|
+
import { n as getFilteredLocalesDictionary, t as getFilteredLocalesContent } from "../getFilteredLocalesContent-D0GP-uEg.js";
|
|
2
|
+
export { getFilteredLocalesContent, getFilteredLocalesDictionary };
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
4
|
-
|
|
5
|
-
//#region src/deepTransformPlugins/getLocalizedContent.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Transforms a node in a single pass, applying each plugin as needed.
|
|
8
|
-
* In comparison to `getContent`, this function will only apply the translation plugin.
|
|
9
|
-
* It will not transform enumerations, insertions, or other content types.
|
|
10
|
-
*
|
|
11
|
-
* @param node The node to transform.
|
|
12
|
-
* @param locale The locale to use if your transformers need it (e.g. for translations).
|
|
13
|
-
*/
|
|
14
|
-
declare const getLocalizedContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
15
|
-
declare const getPerLocaleDictionary: <T extends Dictionary, L extends LocalesValues>(dictionary: T, locale: L, fallback?: LocalesValues) => Dictionary;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { getLocalizedContent, getPerLocaleDictionary };
|
|
18
|
-
//# sourceMappingURL=getLocalizedContent.d.ts.map
|
|
1
|
+
import { n as getPerLocaleDictionary, t as getLocalizedContent } from "../getLocalizedContent-DOncZd-0.js";
|
|
2
|
+
export { getLocalizedContent, getPerLocaleDictionary };
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/deepTransformPlugins/getMaskContent.d.ts
|
|
5
|
-
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
6
|
-
declare const buildMaskPlugin: Plugins;
|
|
7
|
-
declare const getMaskContent: (source: Dictionary) => any;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { buildMaskPlugin, getMaskContent };
|
|
10
|
-
//# sourceMappingURL=getMaskContent.d.ts.map
|
|
1
|
+
import { n as getMaskContent, t as buildMaskPlugin } from "../getMaskContent-BwLFqp7v.js";
|
|
2
|
+
export { buildMaskPlugin, getMaskContent };
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
4
|
-
import { Locale } from "@intlayer/types/allLocales";
|
|
5
|
-
|
|
6
|
-
//#region src/deepTransformPlugins/getMissingLocalesContent.d.ts
|
|
7
|
-
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
8
|
-
declare const checkMissingLocalesPlugin: (locales: Locale[], onMissingLocale: (locale: Locale) => void) => Plugins;
|
|
9
|
-
/**
|
|
10
|
-
* Return the content of a node with only the translation plugin.
|
|
11
|
-
*
|
|
12
|
-
* @param node The node to transform.
|
|
13
|
-
* @param locales The locales to check for missing translations.
|
|
14
|
-
*/
|
|
15
|
-
declare const getMissingLocalesContent: <T extends ContentNode>(node: T, locales: LocalesValues[], nodeProps: NodeProps) => Locale[];
|
|
16
|
-
declare const getMissingLocalesContentFromDictionary: (dictionary: Dictionary, locales?: LocalesValues[]) => Locale[];
|
|
17
|
-
//#endregion
|
|
18
|
-
export { checkMissingLocalesPlugin, getMissingLocalesContent, getMissingLocalesContentFromDictionary };
|
|
19
|
-
//# sourceMappingURL=getMissingLocalesContent.d.ts.map
|
|
1
|
+
import { n as getMissingLocalesContent, r as getMissingLocalesContentFromDictionary, t as checkMissingLocalesPlugin } from "../getMissingLocalesContent-BYffYcdx.js";
|
|
2
|
+
export { checkMissingLocalesPlugin, getMissingLocalesContent, getMissingLocalesContentFromDictionary };
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/deepTransformPlugins/getMultilingualDictionary.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Transform a per-locale dictionary into a multilingual dictionary.
|
|
6
|
-
*
|
|
7
|
-
* Example:
|
|
8
|
-
* ```json
|
|
9
|
-
* {
|
|
10
|
-
* "key": "about-page",
|
|
11
|
-
* "locale": "en",
|
|
12
|
-
* "content": {
|
|
13
|
-
* "myContent": "English content"
|
|
14
|
-
* }
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* ```json
|
|
19
|
-
* {
|
|
20
|
-
* "key": "about-page",
|
|
21
|
-
* "content": {
|
|
22
|
-
* "myContent": t({
|
|
23
|
-
* "en": "English content",
|
|
24
|
-
* })
|
|
25
|
-
* }
|
|
26
|
-
* }
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
declare const getMultilingualDictionary: (dictionary: Dictionary) => Dictionary;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { getMultilingualDictionary };
|
|
32
|
-
//# sourceMappingURL=getMultilingualDictionary.d.ts.map
|
|
1
|
+
import { t as getMultilingualDictionary } from "../getMultilingualDictionary-DO3i1MFs.js";
|
|
2
|
+
export { getMultilingualDictionary };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/deepTransformPlugins/getReplacedValuesContent.d.ts
|
|
5
|
-
declare const getReplacedValuesContent: (node: ContentNode, value: string | number | boolean, nodeProps: NodeProps) => any;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { getReplacedValuesContent };
|
|
8
|
-
//# sourceMappingURL=getReplacedValuesContent.d.ts.map
|
|
1
|
+
import { t as getReplacedValuesContent } from "../getReplacedValuesContent-BvL25pdt.js";
|
|
2
|
+
export { getReplacedValuesContent };
|
|
@@ -1,43 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/deepTransformPlugins/getSplittedContent.d.ts
|
|
5
|
-
type SplittedContentOutput<T = ContentNode> = Record<DeclaredLocales, T> & {
|
|
6
|
-
common: T;
|
|
7
|
-
};
|
|
8
|
-
declare const getSplittedContent: (content: ContentNode) => SplittedContentOutput;
|
|
9
|
-
/**
|
|
10
|
-
* Splits the `content` field of a Dictionary into "common" and per-locale buckets.
|
|
11
|
-
*
|
|
12
|
-
* Given a dictionary like:
|
|
13
|
-
* ```js
|
|
14
|
-
* {
|
|
15
|
-
* key: "my-key",
|
|
16
|
-
* content: {
|
|
17
|
-
* commonContent: "common content",
|
|
18
|
-
* multilingualContent: t({
|
|
19
|
-
* en: "english content",
|
|
20
|
-
* fr: "french content",
|
|
21
|
-
* de: "german content",
|
|
22
|
-
* }),
|
|
23
|
-
* },
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* It produces:
|
|
28
|
-
* ```js
|
|
29
|
-
* {
|
|
30
|
-
* common: { commonContent: "common content" },
|
|
31
|
-
* en: { multilingualContent: "english content" },
|
|
32
|
-
* fr: { multilingualContent: "french content" },
|
|
33
|
-
* de: { multilingualContent: "german content" },
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @param dictionary - The input dictionary object with possible multilingual or common content.
|
|
38
|
-
* @returns An object mapping "common" and each locale to their corresponding content subtrees.
|
|
39
|
-
*/
|
|
40
|
-
declare const getSplittedDictionaryContent: (dictionary: Dictionary) => SplittedContentOutput<Dictionary["content"]>;
|
|
41
|
-
//#endregion
|
|
42
|
-
export { getSplittedContent, getSplittedDictionaryContent };
|
|
43
|
-
//# sourceMappingURL=getSplittedContent.d.ts.map
|
|
1
|
+
import { n as getSplittedDictionaryContent, t as getSplittedContent } from "../getSplittedContent-YD4JDMfB.js";
|
|
2
|
+
export { getSplittedContent, getSplittedDictionaryContent };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { getMultilingualDictionary } from "
|
|
8
|
-
import { getReplacedValuesContent } from "
|
|
9
|
-
import {
|
|
10
|
-
import { insertContentInDictionary } from "
|
|
1
|
+
import { n as getFilterMissingTranslationsContent, r as getFilterMissingTranslationsDictionary, t as filterMissingTranslationsOnlyPlugin } from "../getFilterMissingTranslationsContent-CDNQqoy1.js";
|
|
2
|
+
import { n as getFilterTranslationsOnlyContent, r as getFilterTranslationsOnlyDictionary, t as filterTranslationsOnlyPlugin } from "../getFilterTranslationsOnlyContent-D2YgBkHn.js";
|
|
3
|
+
import { n as getFilteredLocalesDictionary, t as getFilteredLocalesContent } from "../getFilteredLocalesContent-D0GP-uEg.js";
|
|
4
|
+
import { n as getPerLocaleDictionary, t as getLocalizedContent } from "../getLocalizedContent-DOncZd-0.js";
|
|
5
|
+
import { n as getMaskContent, t as buildMaskPlugin } from "../getMaskContent-BwLFqp7v.js";
|
|
6
|
+
import { n as getMissingLocalesContent, r as getMissingLocalesContentFromDictionary, t as checkMissingLocalesPlugin } from "../getMissingLocalesContent-BYffYcdx.js";
|
|
7
|
+
import { t as getMultilingualDictionary } from "../getMultilingualDictionary-DO3i1MFs.js";
|
|
8
|
+
import { t as getReplacedValuesContent } from "../getReplacedValuesContent-BvL25pdt.js";
|
|
9
|
+
import { n as getSplittedDictionaryContent, t as getSplittedContent } from "../getSplittedContent-YD4JDMfB.js";
|
|
10
|
+
import { t as insertContentInDictionary } from "../insertContentInDictionary-DZ3UzG4K.js";
|
|
11
11
|
export { buildMaskPlugin, checkMissingLocalesPlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getLocalizedContent, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getPerLocaleDictionary, getReplacedValuesContent, getSplittedContent, getSplittedDictionaryContent, insertContentInDictionary };
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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 };
|
|
25
|
-
//# sourceMappingURL=insertContentInDictionary.d.ts.map
|
|
1
|
+
import { t as insertContentInDictionary } from "../insertContentInDictionary-DZ3UzG4K.js";
|
|
2
|
+
export { insertContentInDictionary };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/dictionaryManipulator/editDictionaryByKeyPath.d.ts
|
|
5
|
-
declare const editDictionaryByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[], newValue: ContentNode) => ContentNode;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { editDictionaryByKeyPath };
|
|
8
|
-
//# sourceMappingURL=editDictionaryByKeyPath.d.ts.map
|
|
1
|
+
import { t as editDictionaryByKeyPath } from "../editDictionaryByKeyPath-BYIHcsyf.js";
|
|
2
|
+
export { editDictionaryByKeyPath };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { KeyPath } from "@intlayer/types/keyPath";
|
|
4
|
-
|
|
5
|
-
//#region src/dictionaryManipulator/getContentNodeByKeyPath.d.ts
|
|
6
|
-
declare const getContentNodeByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[], fallbackLocale?: LocalesValues) => ContentNode;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { getContentNodeByKeyPath };
|
|
9
|
-
//# sourceMappingURL=getContentNodeByKeyPath.d.ts.map
|
|
1
|
+
import { t as getContentNodeByKeyPath } from "../getContentNodeByKeyPath-B0Tdi5mj.js";
|
|
2
|
+
export { getContentNodeByKeyPath };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { NodeType } from "@intlayer/types/nodeType";
|
|
4
|
-
|
|
5
|
-
//#region src/dictionaryManipulator/getDefaultNode.d.ts
|
|
6
|
-
declare const getDefaultNode: (nodeType: NodeType, locales: LocalesValues[], content?: ContentNode) => ContentNode;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { getDefaultNode };
|
|
9
|
-
//# sourceMappingURL=getDefaultNode.d.ts.map
|
|
1
|
+
import { t as getDefaultNode } from "../getDefaultNode-DQNsje2D.js";
|
|
2
|
+
export { getDefaultNode };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/dictionaryManipulator/getEmptyNode.d.ts
|
|
4
|
-
declare const getEmptyNode: (section: ContentNode) => ContentNode;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { getEmptyNode };
|
|
7
|
-
//# sourceMappingURL=getEmptyNode.d.ts.map
|
|
1
|
+
import { t as getEmptyNode } from "../getEmptyNode-DW27TTBj.js";
|
|
2
|
+
export { getEmptyNode };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/dictionaryManipulator/getNodeChildren.d.ts
|
|
4
|
-
declare const getNodeChildren: (section: ContentNode) => ContentNode;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { getNodeChildren };
|
|
7
|
-
//# sourceMappingURL=getNodeChildren.d.ts.map
|
|
1
|
+
import { t as getNodeChildren } from "../getNodeChildren-OT7Liqke.js";
|
|
2
|
+
export { getNodeChildren };
|