@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
|
@@ -1,140 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/utils.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Trim trailing whitespace from a string.
|
|
6
|
-
*/
|
|
7
|
-
declare const trimEnd: (str: string) => string;
|
|
8
|
-
/**
|
|
9
|
-
* Check if string starts with prefix.
|
|
10
|
-
*/
|
|
11
|
-
declare const startsWith: (str: string, prefix: string) => boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Remove symmetrical leading and trailing quotes.
|
|
14
|
-
*/
|
|
15
|
-
declare const unquote: (str: string) => string;
|
|
16
|
-
/**
|
|
17
|
-
* Unescape backslash-escaped characters.
|
|
18
|
-
*/
|
|
19
|
-
declare const unescapeString: (rawString: string) => string;
|
|
20
|
-
/**
|
|
21
|
-
* Join class names, filtering out falsy values.
|
|
22
|
-
*/
|
|
23
|
-
declare const cx: (...args: any[]) => string;
|
|
24
|
-
/**
|
|
25
|
-
* Get a nested property from an object using dot notation.
|
|
26
|
-
*/
|
|
27
|
-
declare const get: (src: any, path: string, fb?: any) => any;
|
|
28
|
-
/**
|
|
29
|
-
* Convert a string to a URL-safe slug.
|
|
30
|
-
* Based on https://stackoverflow.com/a/18123682/1141611
|
|
31
|
-
*/
|
|
32
|
-
declare const slugify: (str: string) => string;
|
|
33
|
-
/**
|
|
34
|
-
* Sanitize URLs to prevent XSS attacks.
|
|
35
|
-
* Returns null if the URL is unsafe.
|
|
36
|
-
*/
|
|
37
|
-
declare const sanitizer: (input: string) => string | null;
|
|
38
|
-
/**
|
|
39
|
-
* Normalize whitespace in source string.
|
|
40
|
-
*/
|
|
41
|
-
declare const normalizeWhitespace: (source: string) => string;
|
|
42
|
-
/**
|
|
43
|
-
* Safely remove a uniform leading indentation from lines, but do NOT touch
|
|
44
|
-
* the content inside fenced code blocks (``` or ~~~).
|
|
45
|
-
*/
|
|
46
|
-
declare const trimLeadingWhitespaceOutsideFences: (text: string, whitespace: string) => string;
|
|
47
|
-
/**
|
|
48
|
-
* Normalize HTML attribute key to JSX prop name.
|
|
49
|
-
*/
|
|
50
|
-
declare const normalizeAttributeKey: (key: string) => string;
|
|
51
|
-
type StyleTuple = [key: string, value: string];
|
|
52
|
-
/**
|
|
53
|
-
* Parse a CSS style string into an array of [key, value] tuples.
|
|
54
|
-
*/
|
|
55
|
-
declare const parseStyleAttribute: (styleString: string) => StyleTuple[];
|
|
56
|
-
/**
|
|
57
|
-
* Convert an attribute value to a Node prop value.
|
|
58
|
-
*/
|
|
59
|
-
declare const attributeValueToNodePropValue: (tag: string, key: string, value: string, sanitizeUrlFn: (value: string, tag: string, attribute: string) => string | null) => any;
|
|
60
|
-
/**
|
|
61
|
-
* Parse table alignment from a separator row.
|
|
62
|
-
*/
|
|
63
|
-
declare const parseTableAlignCapture: (alignCapture: string) => "left" | "right" | "center";
|
|
64
|
-
/**
|
|
65
|
-
* Parse table alignment row.
|
|
66
|
-
*/
|
|
67
|
-
declare const parseTableAlign: (source: string) => ("left" | "right" | "center")[];
|
|
68
|
-
/**
|
|
69
|
-
* Parse a single table row.
|
|
70
|
-
*/
|
|
71
|
-
declare const parseTableRow: (source: string, parse: NestedParser, state: ParseState, tableOutput: boolean) => ParserResult[][];
|
|
72
|
-
/**
|
|
73
|
-
* Parse table cells (multiple rows).
|
|
74
|
-
*/
|
|
75
|
-
declare const parseTableCells: (source: string, parse: NestedParser, state: ParseState) => ParserResult[][][];
|
|
76
|
-
/**
|
|
77
|
-
* Check if a rule qualifies for the current source and state.
|
|
78
|
-
*/
|
|
79
|
-
declare const qualifies: (source: string, state: ParseState, qualify: NonNullable<Rule<any>["_qualify"]>) => boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Marks a matcher function as eligible for being run inside an inline context.
|
|
82
|
-
*/
|
|
83
|
-
declare const allowInline: <T extends (...args: any[]) => any>(fn: T) => T & {
|
|
84
|
-
inline: 1;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Creates a match function for an inline scoped element from a regex.
|
|
88
|
-
*/
|
|
89
|
-
declare const inlineRegex: (regex: RegExp) => ((source: string, state: ParseState) => RegExpMatchArray | null) & {
|
|
90
|
-
inline: 1;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Creates a match function for inline elements except links.
|
|
94
|
-
*/
|
|
95
|
-
declare const simpleInlineRegex: (regex: RegExp) => ((source: string, state: ParseState) => RegExpMatchArray | null) & {
|
|
96
|
-
inline: 1;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Creates a match function for a block scoped element from a regex.
|
|
100
|
-
*/
|
|
101
|
-
declare const blockRegex: (regex: RegExp) => (source: string, state: ParseState) => RegExpMatchArray | null;
|
|
102
|
-
/**
|
|
103
|
-
* Creates a match function from a regex, ignoring block/inline scope.
|
|
104
|
-
*/
|
|
105
|
-
declare const anyScopeRegex: (fn: RegExp | ((source: string, state: ParseState) => RegExpMatchArray | null)) => ((source: string, state: ParseState) => RegExpMatchArray | null) & {
|
|
106
|
-
inline: 1;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Parse inline content (including links).
|
|
110
|
-
*/
|
|
111
|
-
declare const parseInline: (parse: NestedParser, children: string, state: ParseState) => ParserResult[];
|
|
112
|
-
/**
|
|
113
|
-
* Parse simple inline content (no links).
|
|
114
|
-
*/
|
|
115
|
-
declare const parseSimpleInline: (parse: NestedParser, children: string, state: ParseState) => ParserResult[];
|
|
116
|
-
/**
|
|
117
|
-
* Parse block content.
|
|
118
|
-
*/
|
|
119
|
-
declare const parseBlock: (parse: NestedParser, children: string, state?: ParseState) => ParserResult[];
|
|
120
|
-
/**
|
|
121
|
-
* Helper to parse capture group 2 as inline content.
|
|
122
|
-
*/
|
|
123
|
-
declare const parseCaptureInline: (capture: RegExpMatchArray, parse: NestedParser, state: ParseState) => {
|
|
124
|
-
children: ParserResult[];
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* Helper that captures nothing (empty object).
|
|
128
|
-
*/
|
|
129
|
-
declare const captureNothing: () => Record<string, never>;
|
|
130
|
-
/**
|
|
131
|
-
* Helper that renders nothing (null).
|
|
132
|
-
*/
|
|
133
|
-
declare const renderNothing: () => null;
|
|
134
|
-
/**
|
|
135
|
-
* Check if any regex in a list matches the input.
|
|
136
|
-
*/
|
|
137
|
-
declare const some: (regexes: RegExp[], input: string) => boolean;
|
|
138
|
-
//#endregion
|
|
139
|
-
export { 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 };
|
|
140
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
1
|
+
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";
|
|
2
|
+
export { 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 };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NodeType, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
|
+
|
|
3
|
+
//#region src/transpiler/markdown/markdown.d.ts
|
|
4
|
+
type PropsType = 'number' | 'string' | 'node';
|
|
5
|
+
type ComponentName = string;
|
|
6
|
+
type MarkdownContentConstructor<T extends Record<string, any> = {}, Content = unknown> = TypedNodeModel<NodeType.Markdown, Content, T>;
|
|
7
|
+
type MarkdownContent<Content = unknown, Components extends Record<ComponentName, PropsType> = Record<ComponentName, PropsType>> = MarkdownContentConstructor<{
|
|
8
|
+
metadata?: Record<string, any>;
|
|
9
|
+
tags?: string[] | Components;
|
|
10
|
+
}, Content>;
|
|
11
|
+
/**
|
|
12
|
+
* Function intended to be used to build intlayer dictionaries.
|
|
13
|
+
*
|
|
14
|
+
* Allow to pick a content based on a quantity.
|
|
15
|
+
*
|
|
16
|
+
* Usage:
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* markdown('## Hello world!');
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
declare const markdown: <Components extends Record<string, any> = Record<string, any>, Content = unknown>(content: Content, components?: Components) => MarkdownContent<Content, Components>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { MarkdownContentConstructor as n, markdown as r, MarkdownContent as t };
|
|
26
|
+
//# sourceMappingURL=markdown-MzfikrI1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-MzfikrI1.d.ts","names":[],"sources":["../../src/transpiler/markdown/markdown.ts"],"mappings":";;;KAOK,SAAA;AAAA,KAEA,aAAA;AAAA,KAEO,0BAAA,WACA,MAAA,yCAER,cAAA,CAAe,QAAA,CAAS,QAAA,EAAU,OAAA,EAAS,CAAA;AAAA,KAEnC,eAAA,uCAES,MAAA,CAAO,aAAA,EAAe,SAAA,IAAa,MAAA,CACpD,aAAA,EACA,SAAA,KAEA,0BAAA;EAEA,QAAA,GAAW,MAAA;EACX,IAAA,cAAkB,UAAA;AAAA,GAEpB,OAAA;;;;;AAhBF;;;;;;;;cA4CM,QAAA,sBACe,MAAA,gBAAsB,MAAA,kCAGzC,OAAA,EAAS,OAAA,EACT,UAAA,GAAa,UAAA,KACZ,eAAA,CAAgB,OAAA,EAAS,UAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
+
|
|
3
|
+
//#region src/dictionaryManipulator/mergeDictionaries.d.ts
|
|
4
|
+
declare const mergeDictionaries: (dictionaries: Dictionary[]) => Dictionary;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { mergeDictionaries as t };
|
|
7
|
+
//# sourceMappingURL=mergeDictionaries-D6WUMQN5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeDictionaries-D6WUMQN5.d.ts","names":[],"sources":["../../src/dictionaryManipulator/mergeDictionaries.ts"],"mappings":";;;cAiKa,iBAAA,GAAqB,YAAA,EAAc,UAAA,OAAe,UAAA"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/messageFormat/ICU.d.ts
|
|
4
|
-
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
5
|
-
[key: string]: JsonValue;
|
|
6
|
-
};
|
|
7
|
-
declare const intlayerToICUFormatter: (message: Dictionary["content"]) => JsonValue;
|
|
8
|
-
declare const icuToIntlayerFormatter: (message: Dictionary["content"]) => JsonValue;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { JsonValue, icuToIntlayerFormatter, intlayerToICUFormatter };
|
|
11
|
-
//# sourceMappingURL=ICU.d.ts.map
|
|
1
|
+
import { n as icuToIntlayerFormatter, r as intlayerToICUFormatter, t as JsonValue } from "../ICU-tA3ZHN5U.js";
|
|
2
|
+
export { JsonValue, icuToIntlayerFormatter, intlayerToICUFormatter };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/messageFormat/i18next.d.ts
|
|
5
|
-
declare const intlayerToI18nextFormatter: (message: Dictionary["content"]) => JsonValue;
|
|
6
|
-
declare const i18nextToIntlayerFormatter: (message: JsonValue) => Dictionary["content"];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { i18nextToIntlayerFormatter, intlayerToI18nextFormatter };
|
|
9
|
-
//# sourceMappingURL=i18next.d.ts.map
|
|
1
|
+
import { n as intlayerToI18nextFormatter, t as i18nextToIntlayerFormatter } from "../i18next-qY0AixrB.js";
|
|
2
|
+
export { i18nextToIntlayerFormatter, intlayerToI18nextFormatter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as icuToIntlayerFormatter, r as intlayerToICUFormatter, t as JsonValue } from "../ICU-tA3ZHN5U.js";
|
|
2
|
+
import { n as intlayerToI18nextFormatter, t as i18nextToIntlayerFormatter } from "../i18next-qY0AixrB.js";
|
|
3
|
+
import { n as vueI18nToIntlayerFormatter, t as intlayerToVueI18nFormatter } from "../vue-i18n-JtUB7N_m.js";
|
|
4
4
|
export { JsonValue, i18nextToIntlayerFormatter, icuToIntlayerFormatter, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToVueI18nFormatter, vueI18nToIntlayerFormatter };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/messageFormat/vue-i18n.d.ts
|
|
5
|
-
declare const intlayerToVueI18nFormatter: (message: Dictionary["content"]) => JsonValue;
|
|
6
|
-
declare const vueI18nToIntlayerFormatter: (message: JsonValue) => Dictionary["content"];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { intlayerToVueI18nFormatter, vueI18nToIntlayerFormatter };
|
|
9
|
-
//# sourceMappingURL=vue-i18n.d.ts.map
|
|
1
|
+
import { n as vueI18nToIntlayerFormatter, t as intlayerToVueI18nFormatter } from "../vue-i18n-JtUB7N_m.js";
|
|
2
|
+
export { intlayerToVueI18nFormatter, vueI18nToIntlayerFormatter };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
+
|
|
4
|
+
//#region src/dictionaryManipulator/normalizeDictionary.d.ts
|
|
5
|
+
declare const normalizeDictionary: (dictionary: Dictionary, configuration: IntlayerConfig) => Dictionary;
|
|
6
|
+
declare const normalizeDictionaries: (dictionaries: Dictionary[], configuration: IntlayerConfig) => Dictionary[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { normalizeDictionary as n, normalizeDictionaries as t };
|
|
9
|
+
//# sourceMappingURL=normalizeDictionary-coviIGTW.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeDictionary-coviIGTW.d.ts","names":[],"sources":["../../src/dictionaryManipulator/normalizeDictionary.ts"],"mappings":";;;;cAOa,mBAAA,GACX,UAAA,EAAY,UAAA,EACZ,aAAA,EAAe,cAAA,KACd,UAAA;AAAA,cAmCU,qBAAA,GACX,YAAA,EAAc,UAAA,IACd,aAAA,EAAe,cAAA,KACd,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
|
|
3
|
+
//#region src/formatters/number.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Formats a numeric value using locale-aware formatting.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* number({ value: 123456.789 }); // "123,456.789"
|
|
9
|
+
* number({ value: "1000000", locale: Locales.FRENCH }); // "1 000 000"
|
|
10
|
+
*/
|
|
11
|
+
declare const number: (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
12
|
+
locale?: LocalesValues;
|
|
13
|
+
}) => string;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { number as t };
|
|
16
|
+
//# sourceMappingURL=number-C8izkCmU.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-C8izkCmU.d.ts","names":[],"sources":["../../src/formatters/number.ts"],"mappings":";;;;;AAWA;;;;;cAAa,MAAA,GACX,KAAA,mBACA,OAAA,GAAU,IAAA,CAAK,mBAAA;EAAwB,MAAA,GAAS,aAAA;AAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
+
import * as _intlayer_types_config0 from "@intlayer/types/config";
|
|
3
|
+
|
|
4
|
+
//#region src/dictionaryManipulator/orderDictionaries.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Orders dictionaries based on the dictionary priority strategy.
|
|
7
|
+
*
|
|
8
|
+
* @param dictionaries - Array of dictionaries to order
|
|
9
|
+
* @param priorityStrategy - The priority strategy ('local_first' or 'distant_first')
|
|
10
|
+
* @returns Ordered array of dictionaries
|
|
11
|
+
*/
|
|
12
|
+
declare const orderDictionaries: (dictionaries: Dictionary[], configuration?: _intlayer_types_config0.IntlayerConfig) => Dictionary[];
|
|
13
|
+
//#endregion
|
|
14
|
+
export { orderDictionaries as t };
|
|
15
|
+
//# sourceMappingURL=orderDictionaries-SSCMY6qG.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderDictionaries-SSCMY6qG.d.ts","names":[],"sources":["../../src/dictionaryManipulator/orderDictionaries.ts"],"mappings":";;;;;;;AAUA;;;;cAAa,iBAAA,GACX,YAAA,EAAc,UAAA,IACd,aAAA,GADwB,uBAAA,CACxB,cAAA,KACC,UAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseYaml-D5gxutvA.d.ts","names":[],"sources":["../../src/utils/parseYaml.ts"],"mappings":";cAAa,SAAA,YAAsB,KAAA,aAAgB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { F as ParseState, L as ParserResult, W as Rules } from "./types-C2Om0aEM.js";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/parser.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Creates a parser for a given set of rules, with the precedence
|
|
6
|
+
* specified as a list of rules.
|
|
7
|
+
*
|
|
8
|
+
* @param rules - An object containing rule type -> {match, order, parse} objects
|
|
9
|
+
* (lower order is higher precedence)
|
|
10
|
+
*
|
|
11
|
+
* @returns The resulting parse function
|
|
12
|
+
*/
|
|
13
|
+
declare const parserFor: (rules: Rules) => ((source: string, state: ParseState) => ParserResult[]);
|
|
14
|
+
//#endregion
|
|
15
|
+
export { parserFor as t };
|
|
16
|
+
//# sourceMappingURL=parser-BVwR6Tjw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser-BVwR6Tjw.d.ts","names":[],"sources":["../../src/markdown/parser.ts"],"mappings":";;;;;AAaA;;;;;;;cAAa,SAAA,GACX,KAAA,EAAO,KAAA,OACJ,MAAA,UAAgB,KAAA,EAAO,UAAA,KAAe,YAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
|
|
3
|
+
//#region src/formatters/percentage.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Formats a number as a percentage string (e.g., 0.25 → "25%").
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* percentage({ value: 0.25 }) // "25%"
|
|
9
|
+
* percentage({ value: 0.25, minimumFractionDigits: 2 }) // "25.00%"
|
|
10
|
+
*/
|
|
11
|
+
declare const percentage: (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
12
|
+
locale?: LocalesValues;
|
|
13
|
+
}) => string;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { percentage as t };
|
|
16
|
+
//# sourceMappingURL=percentage-BqsvW0Zw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"percentage-BqsvW0Zw.d.ts","names":[],"sources":["../../src/formatters/percentage.ts"],"mappings":";;;;;AAWA;;;;;cAAa,UAAA,GACX,KAAA,mBACA,OAAA,GAAU,IAAA,CAAK,mBAAA;EAAwB,MAAA,GAAS,aAAA;AAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
|
|
3
|
+
//#region src/formatters/relativeTime.d.ts
|
|
4
|
+
type RelativeTimeUnit = Intl.RelativeTimeFormatUnit;
|
|
5
|
+
declare const relativeTime: (from: Date | string | number, to?: Date | string | number, options?: Intl.RelativeTimeFormatOptions & {
|
|
6
|
+
locale?: LocalesValues;
|
|
7
|
+
unit?: RelativeTimeUnit;
|
|
8
|
+
}) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { relativeTime as t };
|
|
11
|
+
//# sourceMappingURL=relativeTime-mJaYEq7H.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relativeTime-mJaYEq7H.d.ts","names":[],"sources":["../../src/formatters/relativeTime.ts"],"mappings":";;;KAIK,gBAAA,GAAmB,IAAA,CAAK,sBAAA;AAAA,cA6BhB,YAAA,GACX,IAAA,EAAM,IAAA,oBACN,EAAA,GAAI,IAAA,oBACJ,OAAA,GAAU,IAAA,CAAK,yBAAA;EACb,MAAA,GAAS,aAAA;EACT,IAAA,GAAO,gBAAA;AAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
|
+
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
|
+
|
|
4
|
+
//#region src/dictionaryManipulator/removeContentNodeByKeyPath.d.ts
|
|
5
|
+
declare const removeContentNodeByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[]) => ContentNode;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { removeContentNodeByKeyPath as t };
|
|
8
|
+
//# sourceMappingURL=removeContentNodeByKeyPath-CotCOOsD.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeContentNodeByKeyPath-CotCOOsD.d.ts","names":[],"sources":["../../src/dictionaryManipulator/removeContentNodeByKeyPath.ts"],"mappings":";;;;cAIa,0BAAA,GACX,iBAAA,EAAmB,WAAA,EACnB,OAAA,EAAS,OAAA,OACR,WAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
|
+
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
|
+
|
|
4
|
+
//#region src/dictionaryManipulator/renameContentNodeByKeyPath.d.ts
|
|
5
|
+
declare const renameContentNodeByKeyPath: (dictionaryContent: ContentNode, newKey: KeyPath["key"], keyPath: KeyPath[]) => ContentNode;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { renameContentNodeByKeyPath as t };
|
|
8
|
+
//# sourceMappingURL=renameContentNodeByKeyPath-BuyH5gOr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renameContentNodeByKeyPath-BuyH5gOr.d.ts","names":[],"sources":["../../src/dictionaryManipulator/renameContentNodeByKeyPath.ts"],"mappings":";;;;cAIa,0BAAA,GACX,iBAAA,EAAmB,WAAA,EACnB,MAAA,EAAQ,OAAA,SACR,OAAA,EAAS,OAAA,OACR,WAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { F as ParseState, L as ParserResult, U as RuleOutput, V as RenderRuleHook, W as Rules } from "./types-C2Om0aEM.js";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/renderer.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Creates a renderer for AST nodes.
|
|
6
|
+
* Renamed from `reactFor` to be framework-agnostic.
|
|
7
|
+
*
|
|
8
|
+
* @param render - The render function to call for each node
|
|
9
|
+
* @returns A function that renders AST to output
|
|
10
|
+
*/
|
|
11
|
+
declare const renderFor: (render: (ast: ParserResult, render: RuleOutput, state: ParseState) => unknown) => (ast: ParserResult | ParserResult[], state?: ParseState) => any;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a renderer from rules with optional custom render hook.
|
|
14
|
+
*
|
|
15
|
+
* @param rules - The rules object containing _render functions
|
|
16
|
+
* @param userRender - Optional custom render hook for full control
|
|
17
|
+
* @returns A render function for AST nodes
|
|
18
|
+
*/
|
|
19
|
+
declare const createRenderer: (rules: Rules, userRender?: RenderRuleHook) => (ast: ParserResult, render: RuleOutput, state: ParseState) => unknown;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { renderFor as n, createRenderer as t };
|
|
22
|
+
//# sourceMappingURL=renderer-C06x2Orf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer-C06x2Orf.d.ts","names":[],"sources":["../../src/markdown/renderer.ts"],"mappings":";;;;;AAgBA;;;;;cAAa,SAAA,GAET,MAAA,GACE,GAAA,EAAK,YAAA,EACL,MAAA,EAAQ,UAAA,EACR,KAAA,EAAO,UAAA,kBAGV,GAAA,EAAK,YAAA,GAAe,YAAA,IAAgB,KAAA,GAAO,UAAA;;;;;;;;cAiEjC,cAAA,GACV,KAAA,EAAO,KAAA,EAAO,UAAA,GAAa,cAAA,MAC3B,GAAA,EAAK,YAAA,EAAc,MAAA,EAAQ,UAAA,EAAY,KAAA,EAAO,UAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
3
|
+
import { RewriteObject, RewriteRules, RoutingConfig } from "@intlayer/types/config";
|
|
4
|
+
|
|
5
|
+
//#region src/localization/rewriteUtils.d.ts
|
|
6
|
+
type LocalizedPathResult = {
|
|
7
|
+
path: string;
|
|
8
|
+
isRewritten: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Normalizes legacy Record format or extracts specialized rules from RewriteObject.
|
|
12
|
+
*/
|
|
13
|
+
declare const getRewriteRules: (rewrite: RoutingConfig["rewrite"], context?: keyof RewriteObject) => RewriteRules | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Given a localized URL (e.g., "/produits/123"), finds the canonical internal path (e.g., "/products/123").
|
|
16
|
+
* If locale is provided, only check for that locale. Otherwise, check for all locales.
|
|
17
|
+
*/
|
|
18
|
+
declare const getCanonicalPath: (localizedPath: string, locale?: Locale, rewriteRules?: RewriteRules) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Given a canonical path (e.g., "/products/123"), finds the localized URL pattern (e.g., "/produits/123").
|
|
21
|
+
*/
|
|
22
|
+
declare const getLocalizedPath: (canonicalPath: string, locale: LocalesValues, rewriteRules?: RewriteRules) => LocalizedPathResult;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the internal path for a given canonical path and locale.
|
|
25
|
+
* Ensures the locale prefix is present exactly once.
|
|
26
|
+
*/
|
|
27
|
+
declare const getInternalPath: (canonicalPath: string, locale: Locale) => string;
|
|
28
|
+
/**
|
|
29
|
+
* Given a current pathname and locale, returns the pretty localized path if a rewrite rule exists and the path is not already localized.
|
|
30
|
+
*/
|
|
31
|
+
declare const getRewritePath: (pathname: string, locale: Locale, rewrite?: RoutingConfig["rewrite"]) => string | undefined;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { getRewritePath as a, getLocalizedPath as i, getCanonicalPath as n, getRewriteRules as o, getInternalPath as r, LocalizedPathResult as t };
|
|
34
|
+
//# sourceMappingURL=rewriteUtils-Bd82NiGR.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rewriteUtils-Bd82NiGR.d.ts","names":[],"sources":["../../src/localization/rewriteUtils.ts"],"mappings":";;;;;KAIY,mBAAA;EACV,IAAA;EACA,WAAA;AAAA;;;;cAMW,eAAA,GACX,OAAA,EAAS,aAAA,aACT,OAAA,SAAe,aAAA,KACd,YAAA;;;;;cA2EU,gBAAA,GACX,aAAA,UACA,MAAA,GAAS,MAAA,EACT,YAAA,GAAe,YAAA;;;;cA2BJ,gBAAA,GACX,aAAA,UACA,MAAA,EAAQ,aAAA,EACR,YAAA,GAAe,YAAA,KACd,mBAAA;;;;;cA4BU,eAAA,GACX,aAAA,UACA,MAAA,EAAQ,MAAA;AAhEV;;;AAAA,cAmFa,cAAA,GACX,QAAA,UACA,MAAA,EAAQ,MAAA,EACR,OAAA,GAAU,aAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/interpreter/splitAndJoinInsertion.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Core logic for splitting insertion strings and joining with values.
|
|
4
|
+
* Returns an array of parts that can be wrapped by framework-specific Fragment implementations.
|
|
5
|
+
*
|
|
6
|
+
* @param template - The template string with {{ placeholder }} syntax
|
|
7
|
+
* @param values - Map of placeholder names to their replacement values
|
|
8
|
+
* @returns Object with `isSimple` flag and `parts` array
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const result = splitInsertionTemplate('Hello {{ name }}!', { name: 'World' });
|
|
13
|
+
* // { isSimple: true, parts: 'Hello World!' }
|
|
14
|
+
*
|
|
15
|
+
* const result = splitInsertionTemplate('Hello {{ name }}!', { name: <Component /> });
|
|
16
|
+
* // { isSimple: false, parts: ['Hello ', <Component />, '!'] }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const splitInsertionTemplate: <T = any>(template: string, values?: Record<string, T>) => {
|
|
20
|
+
isSimple: boolean;
|
|
21
|
+
parts: string | T[];
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { splitInsertionTemplate as t };
|
|
25
|
+
//# sourceMappingURL=splitAndJoinInsertion-bkuLa7o2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splitAndJoinInsertion-bkuLa7o2.d.ts","names":[],"sources":["../../src/interpreter/splitAndJoinInsertion.ts"],"mappings":";;AA+BA;;;;;;;;;;;;;;;;cAAa,sBAAA,YACX,QAAA,UACA,MAAA,GAAQ,MAAA,SAAe,CAAA;EACpB,QAAA;EAAmB,KAAA,WAAgB,CAAA;AAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { NodeType, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
3
|
+
|
|
4
|
+
//#region src/transpiler/translation/translation.d.ts
|
|
5
|
+
type TranslationContent<Content = unknown, RecordContent extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>> = TypedNodeModel<NodeType.Translation, RecordContent>;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* Function intended to be used to build intlayer dictionaries.
|
|
9
|
+
*
|
|
10
|
+
* Get the content of a translation based on the locale.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* translation<string>({
|
|
16
|
+
* "en": "Hello",
|
|
17
|
+
* "fr": "Bonjour",
|
|
18
|
+
* // ... any other available locale
|
|
19
|
+
* })
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* Using TypeScript:
|
|
23
|
+
* - this function require each locale to be defined if defined in the project configuration.
|
|
24
|
+
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
25
|
+
*/
|
|
26
|
+
declare const translation: <Content = unknown, ContentRecord extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>>(content: ContentRecord) => TypedNodeModel<NodeType.Translation, ContentRecord, {
|
|
27
|
+
nodeType: NodeType.Translation | "translation";
|
|
28
|
+
} & {
|
|
29
|
+
translation: ContentRecord;
|
|
30
|
+
}>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { translation as n, TranslationContent as t };
|
|
33
|
+
//# sourceMappingURL=translation-CiC-Avxc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation-CiC-Avxc.d.ts","names":[],"sources":["../../src/transpiler/translation/translation.ts"],"mappings":";;;;KAIY,kBAAA,0CAGR,mBAAA,CAAoB,OAAA,IAAW,mBAAA,CAAoB,OAAA,KACnD,cAAA,CAAe,QAAA,CAAS,WAAA,EAAa,aAAA;AAJzC;;;;;;;;;;;;;;;;;;;;AAAA,cA0BM,WAAA,4CAGF,mBAAA,CAAoB,OAAA,IAAW,mBAAA,CAAoB,OAAA,GAErD,OAAA,EAAS,aAAA,KAAa,cAAA,CAAA,QAAA,CAAA,WAAA,EAAA,aAAA"}
|
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/transpiler/condition/condition.d.ts
|
|
4
|
-
type ConditionContentStates<Content> = Record<`${boolean}`, Content> & {
|
|
5
|
-
fallback?: Content;
|
|
6
|
-
};
|
|
7
|
-
type ConditionContent<Content = unknown> = TypedNodeModel<NodeType.Condition, ConditionContentStates<Content>>;
|
|
8
|
-
/**
|
|
9
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
10
|
-
*
|
|
11
|
-
* Allow to pick a content based on a condition.
|
|
12
|
-
*
|
|
13
|
-
* Usage:
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* cond({
|
|
17
|
-
* 'true': 'The condition is validated',
|
|
18
|
-
* 'false': 'The condition is not validated',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* The last key provided will be used as the fallback value.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
declare const condition: <Content>(content?: ConditionContentStates<Content>) => TypedNodeModel<NodeType.Condition, ConditionContentStates<Content>, {}>;
|
|
26
|
-
//#endregion
|
|
27
|
-
export { ConditionContent, ConditionContentStates, condition as cond };
|
|
28
|
-
//# sourceMappingURL=condition.d.ts.map
|
|
1
|
+
import { n as ConditionContentStates, r as condition, t as ConditionContent } from "../../condition-BDUtoh_1.js";
|
|
2
|
+
export { ConditionContent, ConditionContentStates, condition as cond };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as ConditionContentStates, r as condition, t as ConditionContent } from "../../condition-BDUtoh_1.js";
|
|
2
2
|
export { ConditionContent, ConditionContentStates, condition as cond };
|
|
@@ -1,40 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/transpiler/enumeration/enumeration.d.ts
|
|
4
|
-
type Positive = number | `${number}`;
|
|
5
|
-
type Negative = `-${number}`;
|
|
6
|
-
type Numbers = Positive | Negative;
|
|
7
|
-
type Equal = Numbers;
|
|
8
|
-
type EqualString = `=${Numbers}`;
|
|
9
|
-
type Superior = `>${Numbers}`;
|
|
10
|
-
type SuperiorOrEqual = `>=${Numbers}`;
|
|
11
|
-
type Inferior = `<${Numbers}`;
|
|
12
|
-
type InferiorOrEqual = `<=${Numbers}`;
|
|
13
|
-
type EnterFormat = Equal | EqualString | Superior | SuperiorOrEqual | Inferior | InferiorOrEqual;
|
|
14
|
-
type EnumerationContentState<Content> = Partial<Record<EnterFormat, Content>> & {
|
|
15
|
-
fallback?: Content;
|
|
16
|
-
};
|
|
17
|
-
type EnumerationContent<Content = unknown> = TypedNodeModel<NodeType.Enumeration, EnumerationContentState<Content>>;
|
|
18
|
-
/**
|
|
19
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
20
|
-
*
|
|
21
|
-
* Allow to pick a content based on a quantity.
|
|
22
|
-
*
|
|
23
|
-
* Usage:
|
|
24
|
-
*
|
|
25
|
-
* ```ts
|
|
26
|
-
* enu({
|
|
27
|
-
* '<=-2.3': 'You have less than -2.3',
|
|
28
|
-
* '<1': 'You have less than one',
|
|
29
|
-
* '2': 'You have two',
|
|
30
|
-
* '>=3': 'You have three or more',
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* > The order of the keys will define the priority of the content.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
declare const enumeration: <Content = unknown>(content?: EnumerationContentState<Content>) => TypedNodeModel<NodeType.Enumeration, EnumerationContentState<Content>, {}>;
|
|
38
|
-
//#endregion
|
|
39
|
-
export { EnterFormat, EnumerationContent, EnumerationContentState, enumeration as enu };
|
|
40
|
-
//# sourceMappingURL=enumeration.d.ts.map
|
|
1
|
+
import { i as enumeration, n as EnumerationContent, r as EnumerationContentState, t as EnterFormat } from "../../enumeration-CtuvB5Zz.js";
|
|
2
|
+
export { EnterFormat, EnumerationContent, EnumerationContentState, enumeration as enu };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as enumeration, n as EnumerationContent, r as EnumerationContentState, t as EnterFormat } from "../../enumeration-CtuvB5Zz.js";
|
|
2
2
|
export { EnterFormat, EnumerationContent, EnumerationContentState, enumeration as enu };
|