@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,333 @@
|
|
|
1
|
+
//#region src/markdown/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Permissive element type - core doesn't care what frameworks accept.
|
|
4
|
+
* Can be a string tag ('div', 'span') or any component (function, object, class)
|
|
5
|
+
*/
|
|
6
|
+
type ElementType = string | any;
|
|
7
|
+
/**
|
|
8
|
+
* Simple HTML tag type - no need to enumerate all tags
|
|
9
|
+
*/
|
|
10
|
+
type HTMLTag = string;
|
|
11
|
+
/**
|
|
12
|
+
* Runtime interface that framework adapters must implement.
|
|
13
|
+
* This allows the markdown compiler to work with any framework.
|
|
14
|
+
*/
|
|
15
|
+
type MarkdownRuntime = {
|
|
16
|
+
/**
|
|
17
|
+
* Create an element. Signature matches common UI runtimes.
|
|
18
|
+
* @param type - Tag name or component
|
|
19
|
+
* @param props - Element properties
|
|
20
|
+
* @param children - Child elements
|
|
21
|
+
*/
|
|
22
|
+
createElement: (type: ElementType, props: Record<string, any> | null, ...children: any[]) => unknown;
|
|
23
|
+
/**
|
|
24
|
+
* Fragment component for grouping without wrapper DOM node.
|
|
25
|
+
* Optional - falls back to array if not provided.
|
|
26
|
+
*/
|
|
27
|
+
Fragment?: any;
|
|
28
|
+
/**
|
|
29
|
+
* Normalize props for runtime differences.
|
|
30
|
+
* Called before createElement with (tag, props).
|
|
31
|
+
*
|
|
32
|
+
* Examples:
|
|
33
|
+
* - { className } -> { className } (no change needed)
|
|
34
|
+
* - { className } -> { class }
|
|
35
|
+
* - { htmlFor } -> { for }
|
|
36
|
+
*/
|
|
37
|
+
normalizeProps?: (tag: HTMLTag, props: Record<string, any>) => Record<string, any>;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter-specific helpers can be exposed without coupling core.
|
|
40
|
+
*/
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Context passed to the compiler containing runtime and configuration.
|
|
45
|
+
*/
|
|
46
|
+
type MarkdownContext<T> = {
|
|
47
|
+
/** Framework runtime (createElement, etc.) */runtime: MarkdownRuntime; /** Component components for HTML tags */
|
|
48
|
+
components?: ComponentOverrides<T>; /** Custom URL sanitizer */
|
|
49
|
+
sanitizer?: (url: string, tag: HTMLTag, attr: string) => string | null; /** Custom slugify function for heading IDs */
|
|
50
|
+
slugify?: (text: string, defaultFn: (input: string) => string) => string; /** Custom named codes to unicode mappings */
|
|
51
|
+
namedCodesToUnicode?: Record<string, string>;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Parser state passed through parsing and rendering.
|
|
55
|
+
*/
|
|
56
|
+
type ParseState = {
|
|
57
|
+
/** true if the current content is inside anchor link grammar */inAnchor?: boolean; /** true if parsing in an HTML context */
|
|
58
|
+
inHTML?: boolean; /** true if parsing in an inline context (subset of rules around formatting and links) */
|
|
59
|
+
inline?: boolean; /** true if in a table */
|
|
60
|
+
inTable?: boolean; /** use this for the `key` prop */
|
|
61
|
+
key?: string | number; /** true if in a list */
|
|
62
|
+
list?: boolean; /** used for lookbacks */
|
|
63
|
+
prevCapture?: string; /** true if parsing in inline context w/o links */
|
|
64
|
+
simple?: boolean;
|
|
65
|
+
};
|
|
66
|
+
type BlockQuoteNode = {
|
|
67
|
+
type: string;
|
|
68
|
+
alert?: string;
|
|
69
|
+
children: ParserResult[];
|
|
70
|
+
};
|
|
71
|
+
type BreakLineNode = {
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
type BreakThematicNode = {
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
type CodeBlockNode = {
|
|
78
|
+
type: string;
|
|
79
|
+
attrs?: Record<string, any>;
|
|
80
|
+
lang?: string;
|
|
81
|
+
text: string;
|
|
82
|
+
};
|
|
83
|
+
type CodeFencedNode = {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
type CodeInlineNode = {
|
|
87
|
+
type: string;
|
|
88
|
+
text: string;
|
|
89
|
+
};
|
|
90
|
+
type FootnoteNode = {
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
type FootnoteReferenceNode = {
|
|
94
|
+
type: string;
|
|
95
|
+
target: string;
|
|
96
|
+
text: string;
|
|
97
|
+
};
|
|
98
|
+
type GFMTaskNode = {
|
|
99
|
+
type: string;
|
|
100
|
+
completed: boolean;
|
|
101
|
+
};
|
|
102
|
+
type HeadingNode = {
|
|
103
|
+
type: string;
|
|
104
|
+
children: ParserResult[];
|
|
105
|
+
id: string;
|
|
106
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
107
|
+
};
|
|
108
|
+
type HeadingSetextNode = {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
type HTMLCommentNode = {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
type ImageNode = {
|
|
115
|
+
type: string;
|
|
116
|
+
alt?: string;
|
|
117
|
+
target: string;
|
|
118
|
+
title?: string;
|
|
119
|
+
};
|
|
120
|
+
type LinkNode = {
|
|
121
|
+
type: string;
|
|
122
|
+
children: ParserResult[];
|
|
123
|
+
target: string;
|
|
124
|
+
title?: string;
|
|
125
|
+
};
|
|
126
|
+
type LinkAngleBraceNode = {
|
|
127
|
+
type: string;
|
|
128
|
+
};
|
|
129
|
+
type LinkBareURLNode = {
|
|
130
|
+
type: string;
|
|
131
|
+
};
|
|
132
|
+
type OrderedListNode = {
|
|
133
|
+
type: string;
|
|
134
|
+
items: ParserResult[][];
|
|
135
|
+
ordered: true;
|
|
136
|
+
start?: number;
|
|
137
|
+
};
|
|
138
|
+
type UnorderedListNode = {
|
|
139
|
+
type: string;
|
|
140
|
+
items: ParserResult[][];
|
|
141
|
+
ordered: false;
|
|
142
|
+
};
|
|
143
|
+
type NewlineNode = {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
type ParagraphNode = {
|
|
147
|
+
type: string;
|
|
148
|
+
children: ParserResult[];
|
|
149
|
+
};
|
|
150
|
+
type ReferenceNode = {
|
|
151
|
+
type: string;
|
|
152
|
+
};
|
|
153
|
+
type ReferenceImageNode = {
|
|
154
|
+
type: string;
|
|
155
|
+
alt?: string;
|
|
156
|
+
ref: string;
|
|
157
|
+
};
|
|
158
|
+
type ReferenceLinkNode = {
|
|
159
|
+
type: string;
|
|
160
|
+
children: ParserResult[];
|
|
161
|
+
fallbackChildren: string;
|
|
162
|
+
ref: string;
|
|
163
|
+
};
|
|
164
|
+
type TableNode = {
|
|
165
|
+
type: string;
|
|
166
|
+
align: ('left' | 'right' | 'center')[];
|
|
167
|
+
cells: ParserResult[][][];
|
|
168
|
+
header: ParserResult[][];
|
|
169
|
+
};
|
|
170
|
+
type TableSeparatorNode = {
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
type TextNode = {
|
|
174
|
+
type: string;
|
|
175
|
+
text: string;
|
|
176
|
+
};
|
|
177
|
+
type BoldTextNode = {
|
|
178
|
+
type: string;
|
|
179
|
+
children: ParserResult[];
|
|
180
|
+
};
|
|
181
|
+
type ItalicTextNode = {
|
|
182
|
+
type: string;
|
|
183
|
+
children: ParserResult[];
|
|
184
|
+
};
|
|
185
|
+
type EscapedTextNode = {
|
|
186
|
+
type: string;
|
|
187
|
+
};
|
|
188
|
+
type MarkedTextNode = {
|
|
189
|
+
type: string;
|
|
190
|
+
children: ParserResult[];
|
|
191
|
+
};
|
|
192
|
+
type StrikethroughTextNode = {
|
|
193
|
+
type: string;
|
|
194
|
+
children: ParserResult[];
|
|
195
|
+
};
|
|
196
|
+
type HTMLNode = {
|
|
197
|
+
type: string;
|
|
198
|
+
attrs: Record<string, any> | null;
|
|
199
|
+
children?: ParserResult[];
|
|
200
|
+
noInnerParse: boolean;
|
|
201
|
+
tag: HTMLTag;
|
|
202
|
+
text?: string;
|
|
203
|
+
};
|
|
204
|
+
type HTMLSelfClosingNode = {
|
|
205
|
+
type: string;
|
|
206
|
+
attrs: Record<string, any> | null;
|
|
207
|
+
tag: string;
|
|
208
|
+
};
|
|
209
|
+
type CustomComponentNode = {
|
|
210
|
+
type: string;
|
|
211
|
+
attrs: Record<string, any> | null;
|
|
212
|
+
children?: ParserResult[];
|
|
213
|
+
noInnerParse: boolean;
|
|
214
|
+
tag: string;
|
|
215
|
+
text?: string;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Union of all possible parser result node types.
|
|
219
|
+
*/
|
|
220
|
+
type ParserResult = BlockQuoteNode | BreakLineNode | BreakThematicNode | CodeBlockNode | CodeFencedNode | CodeInlineNode | CustomComponentNode | FootnoteNode | FootnoteReferenceNode | GFMTaskNode | HeadingNode | HeadingSetextNode | HTMLCommentNode | ImageNode | LinkNode | LinkAngleBraceNode | LinkBareURLNode | OrderedListNode | UnorderedListNode | NewlineNode | ParagraphNode | ReferenceNode | ReferenceImageNode | ReferenceLinkNode | TableNode | TableSeparatorNode | TextNode | BoldTextNode | ItalicTextNode | EscapedTextNode | MarkedTextNode | StrikethroughTextNode | HTMLNode | HTMLSelfClosingNode;
|
|
221
|
+
/**
|
|
222
|
+
* Nested parser function type.
|
|
223
|
+
*/
|
|
224
|
+
type NestedParser = (input: string, state: ParseState) => ParserResult[];
|
|
225
|
+
/**
|
|
226
|
+
* Parser function type for a rule.
|
|
227
|
+
*/
|
|
228
|
+
type Parser<ParserOutput> = (capture: RegExpMatchArray, nestedParse: NestedParser, state: ParseState) => ParserOutput;
|
|
229
|
+
/**
|
|
230
|
+
* Output function type for rendering.
|
|
231
|
+
*/
|
|
232
|
+
type RuleOutput = (ast: ParserResult | ParserResult[], state: ParseState) => unknown;
|
|
233
|
+
/**
|
|
234
|
+
* Rule definition for parsing and rendering markdown.
|
|
235
|
+
*/
|
|
236
|
+
type Rule<ParserOutput = ParserResult> = {
|
|
237
|
+
/** Match function - returns regex match or null */_match: (source: string, state: ParseState, prevCapturedString?: string) => RegExpMatchArray | null; /** Priority order for rule application */
|
|
238
|
+
_order: number; /** Parse function - converts regex capture to AST node */
|
|
239
|
+
_parse: Parser<Omit<ParserOutput, 'type'>>;
|
|
240
|
+
/**
|
|
241
|
+
* Optional fast check that can quickly determine if this rule
|
|
242
|
+
* should even be attempted.
|
|
243
|
+
*/
|
|
244
|
+
_qualify?: string[] | ((source: string, state: ParseState) => boolean);
|
|
245
|
+
/**
|
|
246
|
+
* Render function - converts AST node to output.
|
|
247
|
+
* Uses context's runtime.createElement for element creation.
|
|
248
|
+
*/
|
|
249
|
+
_render?: (node: ParserOutput, render: RuleOutput, state: ParseState) => unknown;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* Map of all rules keyed by rule type.
|
|
253
|
+
*/
|
|
254
|
+
type Rules = {
|
|
255
|
+
[key: string]: Rule<any>;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Map of tag overrides.
|
|
259
|
+
*/
|
|
260
|
+
type ComponentOverrides<T> = {
|
|
261
|
+
[tag: string]: T;
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* Render rule hook for custom rendering logic.
|
|
265
|
+
*/
|
|
266
|
+
type RenderRuleHook = (/** Resume normal processing, call this function as a fallback */
|
|
267
|
+
|
|
268
|
+
next: () => unknown, /** The current AST node */
|
|
269
|
+
|
|
270
|
+
node: ParserResult, /** Use as renderChildren(node.children) for block nodes */
|
|
271
|
+
|
|
272
|
+
renderChildren: RuleOutput, /** Contains key which should be supplied to the topmost element */
|
|
273
|
+
|
|
274
|
+
state: ParseState) => unknown;
|
|
275
|
+
/**
|
|
276
|
+
* Options for the markdown compiler.
|
|
277
|
+
* This is the framework-agnostic version of MarkdownRendererOptions.
|
|
278
|
+
*/
|
|
279
|
+
type MarkdownOptions = {
|
|
280
|
+
/**
|
|
281
|
+
* Disable automatic link detection for bare URLs.
|
|
282
|
+
*/
|
|
283
|
+
disableAutoLink?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Disable parsing of raw HTML in markdown.
|
|
286
|
+
*/
|
|
287
|
+
disableParsingRawHTML?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Force ATX-compliant headings (require space after #).
|
|
290
|
+
*/
|
|
291
|
+
enforceAtxHeadings?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Force block-level output.
|
|
294
|
+
*/
|
|
295
|
+
forceBlock?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Force inline output.
|
|
298
|
+
*/
|
|
299
|
+
forceInline?: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Force wrapper element even for single children.
|
|
302
|
+
*/
|
|
303
|
+
forceWrapper?: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Custom render rule hook for full control over rendering.
|
|
306
|
+
*/
|
|
307
|
+
renderRule?: RenderRuleHook;
|
|
308
|
+
/**
|
|
309
|
+
* Wrapper element type, or null for no wrapper.
|
|
310
|
+
*/
|
|
311
|
+
wrapper?: HTMLTag | null;
|
|
312
|
+
/**
|
|
313
|
+
* Whether to preserve frontmatter.
|
|
314
|
+
*/
|
|
315
|
+
preserveFrontmatter?: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* Whether to use tag filter.
|
|
318
|
+
*/
|
|
319
|
+
tagfilter?: boolean;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Combined options including context and compiler options.
|
|
323
|
+
* Used by framework adapters.
|
|
324
|
+
*/
|
|
325
|
+
type CompileOptions<T = any> = MarkdownOptions & {
|
|
326
|
+
/** Component components */components?: ComponentOverrides<T>; /** Custom named codes to unicode mappings */
|
|
327
|
+
namedCodesToUnicode?: Record<string, string>; /** Custom sanitizer function */
|
|
328
|
+
sanitizer?: (value: string, tag: HTMLTag, attribute: string) => string | null; /** Custom slugify function */
|
|
329
|
+
slugify?: (input: string, defaultFn: (input: string) => string) => string;
|
|
330
|
+
};
|
|
331
|
+
//#endregion
|
|
332
|
+
export { MarkedTextNode as A, ReferenceNode as B, ItalicTextNode as C, MarkdownContext as D, LinkNode as E, ParseState as F, StrikethroughTextNode as G, Rule as H, Parser as I, TextNode as J, TableNode as K, ParserResult as L, NewlineNode as M, OrderedListNode as N, MarkdownOptions as O, ParagraphNode as P, ReferenceImageNode as R, ImageNode as S, LinkBareURLNode as T, RuleOutput as U, RenderRuleHook as V, Rules as W, UnorderedListNode as Y, HTMLNode as _, CodeBlockNode as a, HeadingNode as b, CompileOptions as c, ElementType as d, EscapedTextNode as f, HTMLCommentNode as g, GFMTaskNode as h, BreakThematicNode as i, NestedParser as j, MarkdownRuntime as k, ComponentOverrides as l, FootnoteReferenceNode as m, BoldTextNode as n, CodeFencedNode as o, FootnoteNode as p, TableSeparatorNode as q, BreakLineNode as r, CodeInlineNode as s, BlockQuoteNode as t, CustomComponentNode as u, HTMLSelfClosingNode as v, LinkAngleBraceNode as w, HeadingSetextNode as x, HTMLTag as y, ReferenceLinkNode as z };
|
|
333
|
+
//# sourceMappingURL=types-C2Om0aEM.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-C2Om0aEM.d.ts","names":[],"sources":["../../src/markdown/types.ts"],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
|
|
3
|
+
//#region src/formatters/units.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Formats a numeric value as a localized unit string.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* units({ value: 5, unit: "kilometer", unitDisplay: "long", locale: "en-GB" })
|
|
9
|
+
* // "5 kilometers"
|
|
10
|
+
*/
|
|
11
|
+
declare const units: (value: number | string, options?: Intl.NumberFormatOptions & {
|
|
12
|
+
locale?: LocalesValues;
|
|
13
|
+
}) => string;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { units as t };
|
|
16
|
+
//# sourceMappingURL=units-CouGqa8j.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"units-CouGqa8j.d.ts","names":[],"sources":["../../src/formatters/units.ts"],"mappings":";;;;;AAWA;;;;;cAAa,KAAA,GACX,KAAA,mBACA,OAAA,GAAU,IAAA,CAAK,mBAAA;EAAwB,MAAA,GAAS,aAAA;AAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
|
+
|
|
3
|
+
//#region src/dictionaryManipulator/updateNodeChildren.d.ts
|
|
4
|
+
declare const updateNodeChildren: <T extends ContentNode, U extends ContentNode>(section: T, newChildren: U) => ContentNode;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { updateNodeChildren as t };
|
|
7
|
+
//# sourceMappingURL=updateNodeChildren-B5Tu1UBZ.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateNodeChildren-B5Tu1UBZ.d.ts","names":[],"sources":["../../src/dictionaryManipulator/updateNodeChildren.ts"],"mappings":";;;cAGa,kBAAA,aACD,WAAA,YACA,WAAA,EAEV,OAAA,EAAS,CAAA,EACT,WAAA,EAAa,CAAA,KACZ,WAAA"}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#endregion
|
|
4
|
-
export { checkIsURLAbsolute };
|
|
5
|
-
//# sourceMappingURL=checkIsURLAbsolute.d.ts.map
|
|
1
|
+
import { t as checkIsURLAbsolute } from "../checkIsURLAbsolute-CTf3JFU6.js";
|
|
2
|
+
export { checkIsURLAbsolute };
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Retrieves a cookie by name from a cookie string or document.cookie
|
|
4
|
-
* @param name - The name of the cookie to retrieve
|
|
5
|
-
* @param cookieString - Optional cookie string to parse (defaults to document.cookie in browser)
|
|
6
|
-
* @returns The cookie value or undefined if not found
|
|
7
|
-
*/
|
|
8
|
-
declare const getCookie: (name: string, cookieString?: string) => string | undefined;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { getCookie };
|
|
11
|
-
//# sourceMappingURL=getCookie.d.ts.map
|
|
1
|
+
import { t as getCookie } from "../getCookie-DPOvVv_h.js";
|
|
2
|
+
export { getCookie };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { checkIsURLAbsolute } from "
|
|
4
|
-
import { getCookie } from "
|
|
5
|
-
import { isSameKeyPath } from "
|
|
6
|
-
import { isValidElement } from "
|
|
7
|
-
import { parseYaml } from "
|
|
8
|
-
export { CachedIntl, CachedIntl as Intl, LocaleStorage, LocaleStorageOptions, bindIntl, checkIsURLAbsolute, createCachedIntl, getCookie, getLocaleFromStorage, isSameKeyPath, isValidElement, parseYaml, setLocaleInStorage };
|
|
1
|
+
import { i as createCachedIntl, n as WrappedIntl, r as bindIntl, t as CachedIntl } from "../intl-B2Ap8I5x.js";
|
|
2
|
+
import { i as setLocaleInStorage, n as LocaleStorageOptions, r as getLocaleFromStorage, t as LocaleStorage } from "../localeStorage-CZHwY0u3.js";
|
|
3
|
+
import { t as checkIsURLAbsolute } from "../checkIsURLAbsolute-CTf3JFU6.js";
|
|
4
|
+
import { t as getCookie } from "../getCookie-DPOvVv_h.js";
|
|
5
|
+
import { t as isSameKeyPath } from "../isSameKeyPath-CkH8NdJh.js";
|
|
6
|
+
import { t as isValidElement } from "../isValidReactElement-BsoJ01oP.js";
|
|
7
|
+
import { t as parseYaml } from "../parseYaml-D5gxutvA.js";
|
|
8
|
+
export { CachedIntl, CachedIntl as Intl, LocaleStorage, LocaleStorageOptions, WrappedIntl, bindIntl, checkIsURLAbsolute, createCachedIntl, getCookie, getLocaleFromStorage, isSameKeyPath, isValidElement, parseYaml, setLocaleInStorage };
|
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/utils/intl.d.ts
|
|
4
|
-
type IntlConstructors = { [K in keyof typeof Intl as (typeof Intl)[K] extends (new (...args: any) => any) ? K : never]: (typeof Intl)[K] };
|
|
5
|
-
type ReplaceLocaleWithLocalesValues<T> = T extends (new (locales: any, options?: infer Options) => infer Instance) ? {
|
|
6
|
-
new (locales?: LocalesValues, options?: Options): Instance;
|
|
7
|
-
new (options?: Options & {
|
|
8
|
-
locale?: LocalesValues;
|
|
9
|
-
}): Instance;
|
|
10
|
-
} : T extends (new (locales: any) => infer Instance) ? {
|
|
11
|
-
new (locales?: LocalesValues): Instance;
|
|
12
|
-
new (options?: {
|
|
13
|
-
locale?: LocalesValues;
|
|
14
|
-
}): Instance;
|
|
15
|
-
} : T;
|
|
16
|
-
type WrappedIntl = { [K in keyof typeof Intl]: K extends keyof IntlConstructors ? ReplaceLocaleWithLocalesValues<(typeof Intl)[K]> : (typeof Intl)[K] };
|
|
17
|
-
/**
|
|
18
|
-
* Factory that turns the global `Intl` into a cached clone.
|
|
19
|
-
*/
|
|
20
|
-
declare const createCachedIntl: () => WrappedIntl;
|
|
21
|
-
declare const CachedIntl: WrappedIntl;
|
|
22
|
-
/**
|
|
23
|
-
* Creates a proxied Intl object with a preset locale.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* const intl = bindIntl(Locales.FRENCH);
|
|
27
|
-
* new intl.NumberFormat(undefined, { style: 'currency', currency: 'EUR' }).format(10);
|
|
28
|
-
* // Uses 'fr' automatically
|
|
29
|
-
*/
|
|
30
|
-
declare const bindIntl: (locale: LocalesValues) => WrappedIntl;
|
|
31
|
-
//#endregion
|
|
32
|
-
export { CachedIntl, CachedIntl as Intl, bindIntl, createCachedIntl };
|
|
33
|
-
//# sourceMappingURL=intl.d.ts.map
|
|
1
|
+
import { i as createCachedIntl, n as WrappedIntl, r as bindIntl, t as CachedIntl } from "../intl-B2Ap8I5x.js";
|
|
2
|
+
export { CachedIntl, CachedIntl as Intl, WrappedIntl, bindIntl, createCachedIntl };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/utils/isSameKeyPath.d.ts
|
|
4
|
-
declare const isSameKeyPath: (keyPath1: KeyPath[], keyPath2: KeyPath[]) => boolean;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { isSameKeyPath };
|
|
7
|
-
//# sourceMappingURL=isSameKeyPath.d.ts.map
|
|
1
|
+
import { t as isSameKeyPath } from "../isSameKeyPath-CkH8NdJh.js";
|
|
2
|
+
export { isSameKeyPath };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Verifies the object is a ReactElement.
|
|
4
|
-
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
5
|
-
* @param object
|
|
6
|
-
* @return True if `object` is a ReactElement.
|
|
7
|
-
* @final
|
|
8
|
-
*/
|
|
9
|
-
declare const isValidElement: (object: any) => boolean;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { isValidElement };
|
|
12
|
-
//# sourceMappingURL=isValidReactElement.d.ts.map
|
|
1
|
+
import { t as isValidElement } from "../isValidReactElement-BsoJ01oP.js";
|
|
2
|
+
export { isValidElement };
|
|
@@ -1,108 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/utils/localeStorage.d.ts
|
|
5
|
-
type CookieBuildAttributes = {
|
|
6
|
-
/**
|
|
7
|
-
* Cookie domain to store the locale information
|
|
8
|
-
*
|
|
9
|
-
* Default: undefined
|
|
10
|
-
*
|
|
11
|
-
* Define the domain where the cookie is available. Defaults to
|
|
12
|
-
* the domain of the page where the cookie was created.
|
|
13
|
-
*/
|
|
14
|
-
domain?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Cookie path to store the locale information
|
|
17
|
-
*
|
|
18
|
-
* Default: undefined
|
|
19
|
-
*
|
|
20
|
-
* Define the path where the cookie is available. Defaults to '/'
|
|
21
|
-
*/
|
|
22
|
-
path?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Cookie secure to store the locale information
|
|
25
|
-
*
|
|
26
|
-
* Default: undefined
|
|
27
|
-
*
|
|
28
|
-
* A Boolean indicating if the cookie transmission requires a
|
|
29
|
-
* secure protocol (https). Defaults to false.
|
|
30
|
-
*/
|
|
31
|
-
secure?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Cookie httpOnly to store the locale information
|
|
34
|
-
*
|
|
35
|
-
* Default: undefined
|
|
36
|
-
*
|
|
37
|
-
* The cookie httpOnly where the locale information is stored.
|
|
38
|
-
*/
|
|
39
|
-
httpOnly?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Cookie sameSite to store the locale information
|
|
42
|
-
*
|
|
43
|
-
* Default: undefined
|
|
44
|
-
*
|
|
45
|
-
* Asserts that a cookie must not be sent with cross-origin requests,
|
|
46
|
-
* providing some protection against cross-site request forgery
|
|
47
|
-
* attacks (CSRF)
|
|
48
|
-
*/
|
|
49
|
-
sameSite?: 'strict' | 'lax' | 'none';
|
|
50
|
-
/**
|
|
51
|
-
* Cookie expires to store the locale information
|
|
52
|
-
*
|
|
53
|
-
* Default: undefined
|
|
54
|
-
*
|
|
55
|
-
* Define when the cookie will be removed. Value can be a Number
|
|
56
|
-
* which will be interpreted as days from time of creation or a
|
|
57
|
-
* Date instance. If omitted, the cookie becomes a session cookie.
|
|
58
|
-
*/
|
|
59
|
-
expires?: number | undefined;
|
|
60
|
-
};
|
|
61
|
-
type LocaleStorageOptions = {
|
|
62
|
-
overwrite?: boolean;
|
|
63
|
-
isCookieEnabled?: boolean;
|
|
64
|
-
setCookieStore?: (name: string, value: string, cookie: CookieBuildAttributes) => void;
|
|
65
|
-
setCookieString?: (name: string, cookie: string) => void;
|
|
66
|
-
getCookie?: (name: string) => string | undefined | null;
|
|
67
|
-
setSessionStorage?: (name: string, value: string) => void;
|
|
68
|
-
getSessionStorage?: (name: string) => string | undefined | null;
|
|
69
|
-
setLocaleStorage?: (name: string, value: string) => void;
|
|
70
|
-
getLocaleStorage?: (name: string) => string | undefined | null;
|
|
71
|
-
getHeader?: (name: string) => string | undefined | null;
|
|
72
|
-
setHeader?: (name: string, value: string) => void;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Retrieves the locale from various storage mechanisms (cookies, localStorage, sessionStorage, headers).
|
|
76
|
-
* The function checks storage locations in order of priority as defined in the configuration.
|
|
77
|
-
*
|
|
78
|
-
* @returns The locale if found in any storage, or undefined if not found
|
|
79
|
-
*/
|
|
80
|
-
declare const getLocaleFromStorage: (options: Pick<LocaleStorageOptions, "getCookie" | "getSessionStorage" | "getLocaleStorage" | "getHeader" | "isCookieEnabled">) => Locale | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Stores the locale in various storage mechanisms (cookies, localStorage, sessionStorage, headers).
|
|
83
|
-
* The function writes to all configured storage locations according to their attributes.
|
|
84
|
-
* Respects overwrite flags for localStorage and sessionStorage.
|
|
85
|
-
*
|
|
86
|
-
* @param locale - The locale to store
|
|
87
|
-
*/
|
|
88
|
-
declare const setLocaleInStorage: (locale: LocalesValues, options?: LocaleStorageOptions) => void;
|
|
89
|
-
/**
|
|
90
|
-
* Utility object to get and set the locale in the storage by considering the configuration
|
|
91
|
-
*
|
|
92
|
-
* @property getLocale - Retrieves the locale from various storage mechanisms (cookies, localStorage, sessionStorage, headers).
|
|
93
|
-
* Retrieves the locale from various storage mechanisms (cookies, localStorage, sessionStorage, headers).
|
|
94
|
-
* The function checks storage locations in order of priority as defined in the configuration.
|
|
95
|
-
*
|
|
96
|
-
* @property setLocale - Stores the locale in various storage mechanisms (cookies, localStorage, sessionStorage, headers).
|
|
97
|
-
* The function writes to all configured storage locations according to their attributes.
|
|
98
|
-
* Respects overwrite flags for localStorage and sessionStorage.
|
|
99
|
-
*
|
|
100
|
-
* @returns The locale if found in any storage, or undefined if not found
|
|
101
|
-
*/
|
|
102
|
-
declare const LocaleStorage: (options: LocaleStorageOptions) => {
|
|
103
|
-
getLocale: () => Locale;
|
|
104
|
-
setLocale: (locale: LocalesValues) => void;
|
|
105
|
-
};
|
|
106
|
-
//#endregion
|
|
107
|
-
export { LocaleStorage, LocaleStorageOptions, getLocaleFromStorage, setLocaleInStorage };
|
|
108
|
-
//# sourceMappingURL=localeStorage.d.ts.map
|
|
1
|
+
import { i as setLocaleInStorage, n as LocaleStorageOptions, r as getLocaleFromStorage, t as LocaleStorage } from "../localeStorage-CZHwY0u3.js";
|
|
2
|
+
export { LocaleStorage, LocaleStorageOptions, getLocaleFromStorage, setLocaleInStorage };
|