@intlayer/core 8.1.2 → 8.1.3
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 +1 -29
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +1 -212
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +1 -94
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +1 -45
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs +1 -33
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getMaskContent.cjs +1 -27
- package/dist/cjs/deepTransformPlugins/getMaskContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +1 -82
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getMultilingualDictionary.cjs +1 -87
- package/dist/cjs/deepTransformPlugins/getMultilingualDictionary.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getReplacedValuesContent.cjs +1 -60
- package/dist/cjs/deepTransformPlugins/getReplacedValuesContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs +1 -122
- package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/index.cjs +1 -32
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +1 -106
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +1 -64
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +1 -18
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +1 -55
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +1 -26
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +1 -23
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs +1 -36
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/index.cjs +1 -27
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +1 -69
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/normalizeDictionary.cjs +1 -30
- package/dist/cjs/dictionaryManipulator/normalizeDictionary.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs +1 -48
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +1 -31
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +1 -39
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +1 -38
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs.map +1 -1
- package/dist/cjs/formatters/compact.cjs +1 -25
- package/dist/cjs/formatters/compact.cjs.map +1 -1
- package/dist/cjs/formatters/currency.cjs +1 -29
- package/dist/cjs/formatters/currency.cjs.map +1 -1
- package/dist/cjs/formatters/date.cjs +1 -60
- package/dist/cjs/formatters/date.cjs.map +1 -1
- package/dist/cjs/formatters/index.cjs +1 -18
- package/dist/cjs/formatters/list.cjs +1 -30
- package/dist/cjs/formatters/list.cjs.map +1 -1
- package/dist/cjs/formatters/number.cjs +1 -18
- package/dist/cjs/formatters/number.cjs.map +1 -1
- package/dist/cjs/formatters/percentage.cjs +1 -25
- package/dist/cjs/formatters/percentage.cjs.map +1 -1
- package/dist/cjs/formatters/relativeTime.cjs +1 -33
- package/dist/cjs/formatters/relativeTime.cjs.map +1 -1
- package/dist/cjs/formatters/units.cjs +1 -23
- package/dist/cjs/formatters/units.cjs.map +1 -1
- package/dist/cjs/getStorageAttributes.cjs +1 -134
- package/dist/cjs/getStorageAttributes.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -300
- package/dist/cjs/interpreter/getCondition.cjs +1 -27
- package/dist/cjs/interpreter/getCondition.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/deepTransform.cjs +1 -41
- package/dist/cjs/interpreter/getContent/deepTransform.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/getContent.cjs +1 -34
- package/dist/cjs/interpreter/getContent/getContent.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/index.cjs +1 -14
- package/dist/cjs/interpreter/getContent/plugins.cjs +1 -161
- package/dist/cjs/interpreter/getContent/plugins.cjs.map +1 -1
- package/dist/cjs/interpreter/getDictionary.cjs +1 -24
- package/dist/cjs/interpreter/getDictionary.cjs.map +1 -1
- package/dist/cjs/interpreter/getEnumeration.cjs +1 -72
- package/dist/cjs/interpreter/getEnumeration.cjs.map +1 -1
- package/dist/cjs/interpreter/getGender.cjs +1 -38
- package/dist/cjs/interpreter/getGender.cjs.map +1 -1
- package/dist/cjs/interpreter/getHTML.cjs +1 -121
- package/dist/cjs/interpreter/getHTML.cjs.map +1 -1
- package/dist/cjs/interpreter/getInsertion.cjs +1 -22
- package/dist/cjs/interpreter/getInsertion.cjs.map +1 -1
- package/dist/cjs/interpreter/getIntlayer.cjs +1 -40
- package/dist/cjs/interpreter/getIntlayer.cjs.map +1 -1
- package/dist/cjs/interpreter/getNesting.cjs +1 -36
- package/dist/cjs/interpreter/getNesting.cjs.map +1 -1
- package/dist/cjs/interpreter/getTranslation.cjs +1 -112
- package/dist/cjs/interpreter/getTranslation.cjs.map +1 -1
- package/dist/cjs/interpreter/index.cjs +1 -31
- package/dist/cjs/interpreter/splitAndJoinInsertion.cjs +1 -55
- package/dist/cjs/interpreter/splitAndJoinInsertion.cjs.map +1 -1
- package/dist/cjs/localization/getBrowserLocale.cjs +1 -143
- package/dist/cjs/localization/getBrowserLocale.cjs.map +1 -1
- package/dist/cjs/localization/getHTMLTextDir.cjs +1 -64
- package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
- package/dist/cjs/localization/getLocale.cjs +1 -27
- package/dist/cjs/localization/getLocale.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleFromPath.cjs +1 -45
- package/dist/cjs/localization/getLocaleFromPath.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleLang.cjs +1 -20
- package/dist/cjs/localization/getLocaleLang.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleName.cjs +1 -10
- package/dist/cjs/localization/getLocaleName.cjs.map +1 -1
- package/dist/cjs/localization/getLocalizedUrl.cjs +1 -82
- package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
- package/dist/cjs/localization/getMultilingualUrls.cjs +1 -63
- package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
- package/dist/cjs/localization/getPathWithoutLocale.cjs +1 -55
- package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
- package/dist/cjs/localization/getPrefix.cjs +1 -63
- package/dist/cjs/localization/getPrefix.cjs.map +1 -1
- package/dist/cjs/localization/index.cjs +1 -39
- package/dist/cjs/localization/localeDetector.cjs +1 -133
- package/dist/cjs/localization/localeDetector.cjs.map +1 -1
- package/dist/cjs/localization/localeMapper.cjs +1 -119
- package/dist/cjs/localization/localeMapper.cjs.map +1 -1
- package/dist/cjs/localization/localeResolver.cjs +1 -28
- package/dist/cjs/localization/localeResolver.cjs.map +1 -1
- package/dist/cjs/localization/rewriteUtils.cjs +1 -110
- package/dist/cjs/localization/rewriteUtils.cjs.map +1 -1
- package/dist/cjs/localization/validatePrefix.cjs +1 -54
- package/dist/cjs/localization/validatePrefix.cjs.map +1 -1
- package/dist/cjs/markdown/compiler.cjs +10 -810
- package/dist/cjs/markdown/compiler.cjs.map +1 -1
- package/dist/cjs/markdown/constants.cjs +1 -328
- package/dist/cjs/markdown/constants.cjs.map +1 -1
- package/dist/cjs/markdown/index.cjs +1 -120
- package/dist/cjs/markdown/parser.cjs +1 -66
- package/dist/cjs/markdown/parser.cjs.map +1 -1
- package/dist/cjs/markdown/renderer.cjs +1 -61
- package/dist/cjs/markdown/renderer.cjs.map +1 -1
- package/dist/cjs/markdown/utils.cjs +6 -391
- package/dist/cjs/markdown/utils.cjs.map +1 -1
- package/dist/cjs/messageFormat/ICU.cjs +1 -319
- package/dist/cjs/messageFormat/ICU.cjs.map +1 -1
- package/dist/cjs/messageFormat/i18next.cjs +1 -330
- package/dist/cjs/messageFormat/i18next.cjs.map +1 -1
- package/dist/cjs/messageFormat/index.cjs +1 -11
- package/dist/cjs/messageFormat/verify-icu-format.cjs +2 -64
- package/dist/cjs/messageFormat/verify-icu-format.cjs.map +1 -1
- package/dist/cjs/messageFormat/vue-i18n.cjs +1 -166
- package/dist/cjs/messageFormat/vue-i18n.cjs.map +1 -1
- package/dist/cjs/transpiler/condition/condition.cjs +1 -26
- package/dist/cjs/transpiler/condition/condition.cjs.map +1 -1
- package/dist/cjs/transpiler/condition/index.cjs +1 -4
- package/dist/cjs/transpiler/enumeration/enumeration.cjs +1 -28
- package/dist/cjs/transpiler/enumeration/enumeration.cjs.map +1 -1
- package/dist/cjs/transpiler/enumeration/index.cjs +1 -4
- package/dist/cjs/transpiler/file/file.cjs +1 -52
- package/dist/cjs/transpiler/file/file.cjs.map +1 -1
- package/dist/cjs/transpiler/file/fileBrowser.cjs +1 -25
- package/dist/cjs/transpiler/file/fileBrowser.cjs.map +1 -1
- package/dist/cjs/transpiler/file/index.cjs +1 -5
- package/dist/cjs/transpiler/gender/gender.cjs +1 -26
- package/dist/cjs/transpiler/gender/gender.cjs.map +1 -1
- package/dist/cjs/transpiler/gender/index.cjs +1 -4
- package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs +1 -44
- package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs.map +1 -1
- package/dist/cjs/transpiler/html/html.cjs +1 -37
- package/dist/cjs/transpiler/html/html.cjs.map +1 -1
- package/dist/cjs/transpiler/html/htmlTags.cjs +1 -116
- package/dist/cjs/transpiler/html/htmlTags.cjs.map +1 -1
- package/dist/cjs/transpiler/html/index.cjs +1 -6
- package/dist/cjs/transpiler/index.cjs +1 -24
- package/dist/cjs/transpiler/insertion/getInsertionValues.cjs +1 -11
- package/dist/cjs/transpiler/insertion/getInsertionValues.cjs.map +1 -1
- package/dist/cjs/transpiler/insertion/index.cjs +1 -6
- package/dist/cjs/transpiler/insertion/insertion.cjs +1 -36
- package/dist/cjs/transpiler/insertion/insertion.cjs.map +1 -1
- package/dist/cjs/transpiler/markdown/getMarkdownMetadata.cjs +2 -23
- package/dist/cjs/transpiler/markdown/getMarkdownMetadata.cjs.map +1 -1
- package/dist/cjs/transpiler/markdown/index.cjs +1 -6
- package/dist/cjs/transpiler/markdown/markdown.cjs +1 -54
- package/dist/cjs/transpiler/markdown/markdown.cjs.map +1 -1
- package/dist/cjs/transpiler/nesting/index.cjs +1 -4
- package/dist/cjs/transpiler/nesting/nesting.cjs +1 -27
- package/dist/cjs/transpiler/nesting/nesting.cjs.map +1 -1
- package/dist/cjs/transpiler/translation/index.cjs +1 -4
- package/dist/cjs/transpiler/translation/translation.cjs +1 -29
- package/dist/cjs/transpiler/translation/translation.cjs.map +1 -1
- package/dist/cjs/utils/checkIsURLAbsolute.cjs +1 -7
- package/dist/cjs/utils/checkIsURLAbsolute.cjs.map +1 -1
- package/dist/cjs/utils/getCookie.cjs +1 -32
- package/dist/cjs/utils/getCookie.cjs.map +1 -1
- package/dist/cjs/utils/index.cjs +1 -0
- package/dist/cjs/utils/intl.cjs +1 -91
- package/dist/cjs/utils/intl.cjs.map +1 -1
- package/dist/cjs/utils/isSameKeyPath.cjs +1 -7
- package/dist/cjs/utils/isSameKeyPath.cjs.map +1 -1
- package/dist/cjs/utils/isValidReactElement.cjs +1 -14
- package/dist/cjs/utils/isValidReactElement.cjs.map +1 -1
- package/dist/cjs/utils/localeStorage.cjs +1 -140
- package/dist/cjs/utils/localeStorage.cjs.map +1 -1
- package/dist/cjs/utils/parseYaml.cjs +16 -322
- package/dist/cjs/utils/parseYaml.cjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getFilterMissingTranslationsContent.mjs +1 -207
- package/dist/esm/deepTransformPlugins/getFilterMissingTranslationsContent.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getFilterTranslationsOnlyContent.mjs +1 -89
- package/dist/esm/deepTransformPlugins/getFilterTranslationsOnlyContent.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +1 -42
- package/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +1 -31
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getMaskContent.mjs +1 -25
- package/dist/esm/deepTransformPlugins/getMaskContent.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getMissingLocalesContent.mjs +1 -77
- package/dist/esm/deepTransformPlugins/getMissingLocalesContent.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs +1 -86
- package/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getReplacedValuesContent.mjs +1 -59
- package/dist/esm/deepTransformPlugins/getReplacedValuesContent.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getSplittedContent.mjs +1 -119
- package/dist/esm/deepTransformPlugins/getSplittedContent.mjs.map +1 -1
- package/dist/esm/deepTransformPlugins/index.mjs +1 -12
- package/dist/esm/deepTransformPlugins/insertContentInDictionary.mjs +1 -104
- package/dist/esm/deepTransformPlugins/insertContentInDictionary.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs +1 -62
- package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs +1 -16
- package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getDefaultNode.mjs +1 -53
- package/dist/esm/dictionaryManipulator/getDefaultNode.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getEmptyNode.mjs +1 -24
- package/dist/esm/dictionaryManipulator/getEmptyNode.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getNodeChildren.mjs +1 -21
- package/dist/esm/dictionaryManipulator/getNodeChildren.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getNodeType.mjs +1 -34
- package/dist/esm/dictionaryManipulator/getNodeType.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/index.mjs +1 -14
- package/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +1 -66
- package/dist/esm/dictionaryManipulator/mergeDictionaries.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +1 -28
- package/dist/esm/dictionaryManipulator/normalizeDictionary.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/orderDictionaries.mjs +1 -45
- package/dist/esm/dictionaryManipulator/orderDictionaries.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/removeContentNodeByKeyPath.mjs +1 -29
- package/dist/esm/dictionaryManipulator/removeContentNodeByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs +1 -37
- package/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/updateNodeChildren.mjs +1 -36
- package/dist/esm/dictionaryManipulator/updateNodeChildren.mjs.map +1 -1
- package/dist/esm/formatters/compact.mjs +1 -22
- package/dist/esm/formatters/compact.mjs.map +1 -1
- package/dist/esm/formatters/currency.mjs +1 -26
- package/dist/esm/formatters/currency.mjs.map +1 -1
- package/dist/esm/formatters/date.mjs +1 -57
- package/dist/esm/formatters/date.mjs.map +1 -1
- package/dist/esm/formatters/index.mjs +1 -10
- package/dist/esm/formatters/list.mjs +1 -27
- package/dist/esm/formatters/list.mjs.map +1 -1
- package/dist/esm/formatters/number.mjs +1 -15
- package/dist/esm/formatters/number.mjs.map +1 -1
- package/dist/esm/formatters/percentage.mjs +1 -22
- package/dist/esm/formatters/percentage.mjs.map +1 -1
- package/dist/esm/formatters/relativeTime.mjs +1 -30
- package/dist/esm/formatters/relativeTime.mjs.map +1 -1
- package/dist/esm/formatters/units.mjs +1 -20
- package/dist/esm/formatters/units.mjs.map +1 -1
- package/dist/esm/getStorageAttributes.mjs +1 -132
- package/dist/esm/getStorageAttributes.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -82
- package/dist/esm/interpreter/getCondition.mjs +1 -25
- package/dist/esm/interpreter/getCondition.mjs.map +1 -1
- package/dist/esm/interpreter/getContent/deepTransform.mjs +1 -39
- package/dist/esm/interpreter/getContent/deepTransform.mjs.map +1 -1
- package/dist/esm/interpreter/getContent/getContent.mjs +1 -31
- package/dist/esm/interpreter/getContent/getContent.mjs.map +1 -1
- package/dist/esm/interpreter/getContent/index.mjs +1 -5
- package/dist/esm/interpreter/getContent/plugins.mjs +1 -153
- package/dist/esm/interpreter/getContent/plugins.mjs.map +1 -1
- package/dist/esm/interpreter/getDictionary.mjs +1 -23
- package/dist/esm/interpreter/getDictionary.mjs.map +1 -1
- package/dist/esm/interpreter/getEnumeration.mjs +1 -69
- package/dist/esm/interpreter/getEnumeration.mjs.map +1 -1
- package/dist/esm/interpreter/getGender.mjs +1 -36
- package/dist/esm/interpreter/getGender.mjs.map +1 -1
- package/dist/esm/interpreter/getHTML.mjs +1 -119
- package/dist/esm/interpreter/getHTML.mjs.map +1 -1
- package/dist/esm/interpreter/getInsertion.mjs +1 -20
- package/dist/esm/interpreter/getInsertion.mjs.map +1 -1
- package/dist/esm/interpreter/getIntlayer.mjs +1 -36
- package/dist/esm/interpreter/getIntlayer.mjs.map +1 -1
- package/dist/esm/interpreter/getNesting.mjs +1 -35
- package/dist/esm/interpreter/getNesting.mjs.map +1 -1
- package/dist/esm/interpreter/getTranslation.mjs +1 -110
- package/dist/esm/interpreter/getTranslation.mjs.map +1 -1
- package/dist/esm/interpreter/index.mjs +1 -13
- package/dist/esm/interpreter/splitAndJoinInsertion.mjs +1 -53
- package/dist/esm/interpreter/splitAndJoinInsertion.mjs.map +1 -1
- package/dist/esm/localization/getBrowserLocale.mjs +1 -138
- package/dist/esm/localization/getBrowserLocale.mjs.map +1 -1
- package/dist/esm/localization/getHTMLTextDir.mjs +1 -62
- package/dist/esm/localization/getHTMLTextDir.mjs.map +1 -1
- package/dist/esm/localization/getLocale.mjs +1 -24
- package/dist/esm/localization/getLocale.mjs.map +1 -1
- package/dist/esm/localization/getLocaleFromPath.mjs +1 -42
- package/dist/esm/localization/getLocaleFromPath.mjs.map +1 -1
- package/dist/esm/localization/getLocaleLang.mjs +1 -18
- package/dist/esm/localization/getLocaleLang.mjs.map +1 -1
- package/dist/esm/localization/getLocaleName.mjs +1 -9
- package/dist/esm/localization/getLocaleName.mjs.map +1 -1
- package/dist/esm/localization/getLocalizedUrl.mjs +1 -79
- package/dist/esm/localization/getLocalizedUrl.mjs.map +1 -1
- package/dist/esm/localization/getMultilingualUrls.mjs +1 -60
- package/dist/esm/localization/getMultilingualUrls.mjs.map +1 -1
- package/dist/esm/localization/getPathWithoutLocale.mjs +1 -52
- package/dist/esm/localization/getPathWithoutLocale.mjs.map +1 -1
- package/dist/esm/localization/getPrefix.mjs +1 -60
- package/dist/esm/localization/getPrefix.mjs.map +1 -1
- package/dist/esm/localization/index.mjs +1 -17
- package/dist/esm/localization/localeDetector.mjs +1 -131
- package/dist/esm/localization/localeDetector.mjs.map +1 -1
- package/dist/esm/localization/localeMapper.mjs +1 -114
- package/dist/esm/localization/localeMapper.mjs.map +1 -1
- package/dist/esm/localization/localeResolver.mjs +1 -25
- package/dist/esm/localization/localeResolver.mjs.map +1 -1
- package/dist/esm/localization/rewriteUtils.mjs +1 -104
- package/dist/esm/localization/rewriteUtils.mjs.map +1 -1
- package/dist/esm/localization/validatePrefix.mjs +1 -51
- package/dist/esm/localization/validatePrefix.mjs.map +1 -1
- package/dist/esm/markdown/compiler.mjs +10 -786
- package/dist/esm/markdown/compiler.mjs.map +1 -1
- package/dist/esm/markdown/constants.mjs +1 -247
- package/dist/esm/markdown/constants.mjs.map +1 -1
- package/dist/esm/markdown/index.mjs +1 -7
- package/dist/esm/markdown/parser.mjs +1 -65
- package/dist/esm/markdown/parser.mjs.map +1 -1
- package/dist/esm/markdown/renderer.mjs +1 -59
- package/dist/esm/markdown/renderer.mjs.map +1 -1
- package/dist/esm/markdown/utils.mjs +6 -361
- package/dist/esm/markdown/utils.mjs.map +1 -1
- package/dist/esm/messageFormat/ICU.mjs +1 -316
- package/dist/esm/messageFormat/ICU.mjs.map +1 -1
- package/dist/esm/messageFormat/i18next.mjs +1 -327
- package/dist/esm/messageFormat/i18next.mjs.map +1 -1
- package/dist/esm/messageFormat/index.mjs +1 -5
- package/dist/esm/messageFormat/verify-icu-format.mjs +2 -64
- package/dist/esm/messageFormat/verify-icu-format.mjs.map +1 -1
- package/dist/esm/messageFormat/vue-i18n.mjs +1 -163
- package/dist/esm/messageFormat/vue-i18n.mjs.map +1 -1
- package/dist/esm/transpiler/condition/condition.mjs +1 -24
- package/dist/esm/transpiler/condition/condition.mjs.map +1 -1
- package/dist/esm/transpiler/condition/index.mjs +1 -3
- package/dist/esm/transpiler/enumeration/enumeration.mjs +1 -26
- package/dist/esm/transpiler/enumeration/enumeration.mjs.map +1 -1
- package/dist/esm/transpiler/enumeration/index.mjs +1 -3
- package/dist/esm/transpiler/file/file.mjs +1 -49
- package/dist/esm/transpiler/file/file.mjs.map +1 -1
- package/dist/esm/transpiler/file/fileBrowser.mjs +1 -24
- package/dist/esm/transpiler/file/fileBrowser.mjs.map +1 -1
- package/dist/esm/transpiler/file/index.mjs +1 -3
- package/dist/esm/transpiler/gender/gender.mjs +1 -24
- package/dist/esm/transpiler/gender/gender.mjs.map +1 -1
- package/dist/esm/transpiler/gender/index.mjs +1 -3
- package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs +1 -43
- package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs.map +1 -1
- package/dist/esm/transpiler/html/html.mjs +1 -35
- package/dist/esm/transpiler/html/html.mjs.map +1 -1
- package/dist/esm/transpiler/html/htmlTags.mjs +1 -114
- package/dist/esm/transpiler/html/htmlTags.mjs.map +1 -1
- package/dist/esm/transpiler/html/index.mjs +1 -4
- package/dist/esm/transpiler/index.mjs +1 -13
- package/dist/esm/transpiler/insertion/getInsertionValues.mjs +1 -9
- package/dist/esm/transpiler/insertion/getInsertionValues.mjs.map +1 -1
- package/dist/esm/transpiler/insertion/index.mjs +1 -4
- package/dist/esm/transpiler/insertion/insertion.mjs +1 -34
- package/dist/esm/transpiler/insertion/insertion.mjs.map +1 -1
- package/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs +2 -22
- package/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs.map +1 -1
- package/dist/esm/transpiler/markdown/index.mjs +1 -4
- package/dist/esm/transpiler/markdown/markdown.mjs +1 -52
- package/dist/esm/transpiler/markdown/markdown.mjs.map +1 -1
- package/dist/esm/transpiler/nesting/index.mjs +1 -3
- package/dist/esm/transpiler/nesting/nesting.mjs +1 -25
- package/dist/esm/transpiler/nesting/nesting.mjs.map +1 -1
- package/dist/esm/transpiler/translation/index.mjs +1 -3
- package/dist/esm/transpiler/translation/translation.mjs +1 -27
- package/dist/esm/transpiler/translation/translation.mjs.map +1 -1
- package/dist/esm/utils/checkIsURLAbsolute.mjs +1 -5
- package/dist/esm/utils/checkIsURLAbsolute.mjs.map +1 -1
- package/dist/esm/utils/getCookie.mjs +1 -30
- package/dist/esm/utils/getCookie.mjs.map +1 -1
- package/dist/esm/utils/index.mjs +1 -0
- package/dist/esm/utils/intl.mjs +1 -86
- package/dist/esm/utils/intl.mjs.map +1 -1
- package/dist/esm/utils/isSameKeyPath.mjs +1 -5
- package/dist/esm/utils/isSameKeyPath.mjs.map +1 -1
- package/dist/esm/utils/isValidReactElement.mjs +1 -12
- package/dist/esm/utils/isValidReactElement.mjs.map +1 -1
- package/dist/esm/utils/localeStorage.mjs +1 -135
- package/dist/esm/utils/localeStorage.mjs.map +1 -1
- package/dist/esm/utils/parseYaml.mjs +16 -320
- package/dist/esm/utils/parseYaml.mjs.map +1 -1
- package/dist/types/formatters/index.d.ts +2 -1
- package/dist/types/index.d.ts +8 -2
- package/dist/types/interpreter/getContent/plugins.d.ts +4 -4
- package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +2 -1
- package/dist/types/markdown/index.d.ts +4 -1
- package/dist/types/markdown/types.d.ts +1 -1
- package/dist/types/markdown/types.d.ts.map +1 -1
- package/dist/types/transpiler/translation/translation.d.ts +1 -1
- package/dist/types/utils/index.d.ts +8 -0
- package/package.json +65 -11
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,300 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_getStorageAttributes = require('./getStorageAttributes.cjs');
|
|
3
|
-
const require_interpreter_getCondition = require('./interpreter/getCondition.cjs');
|
|
4
|
-
const require_interpreter_getContent_deepTransform = require('./interpreter/getContent/deepTransform.cjs');
|
|
5
|
-
const require_interpreter_getEnumeration = require('./interpreter/getEnumeration.cjs');
|
|
6
|
-
const require_interpreter_getDictionary = require('./interpreter/getDictionary.cjs');
|
|
7
|
-
const require_interpreter_getIntlayer = require('./interpreter/getIntlayer.cjs');
|
|
8
|
-
const require_interpreter_getNesting = require('./interpreter/getNesting.cjs');
|
|
9
|
-
const require_interpreter_getTranslation = require('./interpreter/getTranslation.cjs');
|
|
10
|
-
const require_interpreter_getContent_plugins = require('./interpreter/getContent/plugins.cjs');
|
|
11
|
-
const require_interpreter_getContent_getContent = require('./interpreter/getContent/getContent.cjs');
|
|
12
|
-
const require_interpreter_getHTML = require('./interpreter/getHTML.cjs');
|
|
13
|
-
const require_interpreter_splitAndJoinInsertion = require('./interpreter/splitAndJoinInsertion.cjs');
|
|
14
|
-
const require_deepTransformPlugins_getFilteredLocalesContent = require('./deepTransformPlugins/getFilteredLocalesContent.cjs');
|
|
15
|
-
const require_transpiler_condition_condition = require('./transpiler/condition/condition.cjs');
|
|
16
|
-
const require_transpiler_enumeration_enumeration = require('./transpiler/enumeration/enumeration.cjs');
|
|
17
|
-
const require_transpiler_gender_gender = require('./transpiler/gender/gender.cjs');
|
|
18
|
-
const require_transpiler_html_html = require('./transpiler/html/html.cjs');
|
|
19
|
-
const require_transpiler_html_htmlTags = require('./transpiler/html/htmlTags.cjs');
|
|
20
|
-
const require_transpiler_insertion_getInsertionValues = require('./transpiler/insertion/getInsertionValues.cjs');
|
|
21
|
-
const require_transpiler_insertion_insertion = require('./transpiler/insertion/insertion.cjs');
|
|
22
|
-
const require_utils_parseYaml = require('./utils/parseYaml.cjs');
|
|
23
|
-
const require_transpiler_markdown_getMarkdownMetadata = require('./transpiler/markdown/getMarkdownMetadata.cjs');
|
|
24
|
-
const require_transpiler_markdown_markdown = require('./transpiler/markdown/markdown.cjs');
|
|
25
|
-
const require_transpiler_nesting_nesting = require('./transpiler/nesting/nesting.cjs');
|
|
26
|
-
const require_transpiler_translation_translation = require('./transpiler/translation/translation.cjs');
|
|
27
|
-
const require_deepTransformPlugins_getFilterMissingTranslationsContent = require('./deepTransformPlugins/getFilterMissingTranslationsContent.cjs');
|
|
28
|
-
const require_deepTransformPlugins_getFilterTranslationsOnlyContent = require('./deepTransformPlugins/getFilterTranslationsOnlyContent.cjs');
|
|
29
|
-
const require_deepTransformPlugins_getLocalizedContent = require('./deepTransformPlugins/getLocalizedContent.cjs');
|
|
30
|
-
const require_deepTransformPlugins_getMaskContent = require('./deepTransformPlugins/getMaskContent.cjs');
|
|
31
|
-
const require_deepTransformPlugins_getMissingLocalesContent = require('./deepTransformPlugins/getMissingLocalesContent.cjs');
|
|
32
|
-
const require_deepTransformPlugins_getMultilingualDictionary = require('./deepTransformPlugins/getMultilingualDictionary.cjs');
|
|
33
|
-
const require_deepTransformPlugins_getReplacedValuesContent = require('./deepTransformPlugins/getReplacedValuesContent.cjs');
|
|
34
|
-
const require_deepTransformPlugins_getSplittedContent = require('./deepTransformPlugins/getSplittedContent.cjs');
|
|
35
|
-
const require_deepTransformPlugins_insertContentInDictionary = require('./deepTransformPlugins/insertContentInDictionary.cjs');
|
|
36
|
-
const require_dictionaryManipulator_editDictionaryByKeyPath = require('./dictionaryManipulator/editDictionaryByKeyPath.cjs');
|
|
37
|
-
const require_dictionaryManipulator_getContentNodeByKeyPath = require('./dictionaryManipulator/getContentNodeByKeyPath.cjs');
|
|
38
|
-
const require_dictionaryManipulator_getDefaultNode = require('./dictionaryManipulator/getDefaultNode.cjs');
|
|
39
|
-
const require_dictionaryManipulator_getEmptyNode = require('./dictionaryManipulator/getEmptyNode.cjs');
|
|
40
|
-
const require_dictionaryManipulator_getNodeChildren = require('./dictionaryManipulator/getNodeChildren.cjs');
|
|
41
|
-
const require_utils_isValidReactElement = require('./utils/isValidReactElement.cjs');
|
|
42
|
-
const require_dictionaryManipulator_getNodeType = require('./dictionaryManipulator/getNodeType.cjs');
|
|
43
|
-
const require_dictionaryManipulator_mergeDictionaries = require('./dictionaryManipulator/mergeDictionaries.cjs');
|
|
44
|
-
const require_dictionaryManipulator_orderDictionaries = require('./dictionaryManipulator/orderDictionaries.cjs');
|
|
45
|
-
const require_dictionaryManipulator_normalizeDictionary = require('./dictionaryManipulator/normalizeDictionary.cjs');
|
|
46
|
-
const require_dictionaryManipulator_removeContentNodeByKeyPath = require('./dictionaryManipulator/removeContentNodeByKeyPath.cjs');
|
|
47
|
-
const require_dictionaryManipulator_renameContentNodeByKeyPath = require('./dictionaryManipulator/renameContentNodeByKeyPath.cjs');
|
|
48
|
-
const require_dictionaryManipulator_updateNodeChildren = require('./dictionaryManipulator/updateNodeChildren.cjs');
|
|
49
|
-
const require_utils_intl = require('./utils/intl.cjs');
|
|
50
|
-
const require_formatters_compact = require('./formatters/compact.cjs');
|
|
51
|
-
const require_formatters_currency = require('./formatters/currency.cjs');
|
|
52
|
-
const require_formatters_date = require('./formatters/date.cjs');
|
|
53
|
-
const require_formatters_list = require('./formatters/list.cjs');
|
|
54
|
-
const require_formatters_number = require('./formatters/number.cjs');
|
|
55
|
-
const require_formatters_percentage = require('./formatters/percentage.cjs');
|
|
56
|
-
const require_formatters_relativeTime = require('./formatters/relativeTime.cjs');
|
|
57
|
-
const require_formatters_units = require('./formatters/units.cjs');
|
|
58
|
-
const require_utils_getCookie = require('./utils/getCookie.cjs');
|
|
59
|
-
const require_utils_localeStorage = require('./utils/localeStorage.cjs');
|
|
60
|
-
const require_localization_localeResolver = require('./localization/localeResolver.cjs');
|
|
61
|
-
const require_localization_localeDetector = require('./localization/localeDetector.cjs');
|
|
62
|
-
const require_localization_getBrowserLocale = require('./localization/getBrowserLocale.cjs');
|
|
63
|
-
const require_localization_getHTMLTextDir = require('./localization/getHTMLTextDir.cjs');
|
|
64
|
-
const require_localization_getLocale = require('./localization/getLocale.cjs');
|
|
65
|
-
const require_utils_checkIsURLAbsolute = require('./utils/checkIsURLAbsolute.cjs');
|
|
66
|
-
const require_localization_getLocaleFromPath = require('./localization/getLocaleFromPath.cjs');
|
|
67
|
-
const require_localization_getLocaleLang = require('./localization/getLocaleLang.cjs');
|
|
68
|
-
const require_localization_getLocaleName = require('./localization/getLocaleName.cjs');
|
|
69
|
-
const require_localization_getPathWithoutLocale = require('./localization/getPathWithoutLocale.cjs');
|
|
70
|
-
const require_localization_getPrefix = require('./localization/getPrefix.cjs');
|
|
71
|
-
const require_localization_rewriteUtils = require('./localization/rewriteUtils.cjs');
|
|
72
|
-
const require_localization_getLocalizedUrl = require('./localization/getLocalizedUrl.cjs');
|
|
73
|
-
const require_localization_getMultilingualUrls = require('./localization/getMultilingualUrls.cjs');
|
|
74
|
-
const require_localization_localeMapper = require('./localization/localeMapper.cjs');
|
|
75
|
-
const require_localization_validatePrefix = require('./localization/validatePrefix.cjs');
|
|
76
|
-
const require_markdown_constants = require('./markdown/constants.cjs');
|
|
77
|
-
const require_markdown_utils = require('./markdown/utils.cjs');
|
|
78
|
-
const require_markdown_parser = require('./markdown/parser.cjs');
|
|
79
|
-
const require_markdown_renderer = require('./markdown/renderer.cjs');
|
|
80
|
-
const require_markdown_compiler = require('./markdown/compiler.cjs');
|
|
81
|
-
const require_utils_isSameKeyPath = require('./utils/isSameKeyPath.cjs');
|
|
82
|
-
|
|
83
|
-
exports.ATTRIBUTES_TO_SANITIZE = require_markdown_constants.ATTRIBUTES_TO_SANITIZE;
|
|
84
|
-
exports.ATTRIBUTE_TO_NODE_PROP_MAP = require_markdown_constants.ATTRIBUTE_TO_NODE_PROP_MAP;
|
|
85
|
-
exports.ATTR_EXTRACTOR_R = require_markdown_constants.ATTR_EXTRACTOR_R;
|
|
86
|
-
exports.BLOCKQUOTE_ALERT_R = require_markdown_constants.BLOCKQUOTE_ALERT_R;
|
|
87
|
-
exports.BLOCKQUOTE_R = require_markdown_constants.BLOCKQUOTE_R;
|
|
88
|
-
exports.BLOCKQUOTE_TRIM_LEFT_MULTILINE_R = require_markdown_constants.BLOCKQUOTE_TRIM_LEFT_MULTILINE_R;
|
|
89
|
-
exports.BLOCK_END_R = require_markdown_constants.BLOCK_END_R;
|
|
90
|
-
exports.BREAK_LINE_R = require_markdown_constants.BREAK_LINE_R;
|
|
91
|
-
exports.BREAK_THEMATIC_R = require_markdown_constants.BREAK_THEMATIC_R;
|
|
92
|
-
exports.CAPTURE_LETTER_AFTER_HYPHEN = require_markdown_constants.CAPTURE_LETTER_AFTER_HYPHEN;
|
|
93
|
-
exports.CODE_BLOCK_FENCED_R = require_markdown_constants.CODE_BLOCK_FENCED_R;
|
|
94
|
-
exports.CODE_BLOCK_R = require_markdown_constants.CODE_BLOCK_R;
|
|
95
|
-
exports.CODE_INLINE_R = require_markdown_constants.CODE_INLINE_R;
|
|
96
|
-
exports.CONSECUTIVE_NEWLINE_R = require_markdown_constants.CONSECUTIVE_NEWLINE_R;
|
|
97
|
-
exports.CR_NEWLINE_R = require_markdown_constants.CR_NEWLINE_R;
|
|
98
|
-
exports.CUSTOM_COMPONENT_R = require_markdown_constants.CUSTOM_COMPONENT_R;
|
|
99
|
-
exports.CachedIntl = require_utils_intl.CachedIntl;
|
|
100
|
-
exports.Intl = require_utils_intl.CachedIntl;
|
|
101
|
-
exports.DO_NOT_PROCESS_HTML_ELEMENTS = require_markdown_constants.DO_NOT_PROCESS_HTML_ELEMENTS;
|
|
102
|
-
exports.DURATION_DELAY_TRIGGER = require_markdown_constants.DURATION_DELAY_TRIGGER;
|
|
103
|
-
exports.FOOTNOTE_R = require_markdown_constants.FOOTNOTE_R;
|
|
104
|
-
exports.FOOTNOTE_REFERENCE_R = require_markdown_constants.FOOTNOTE_REFERENCE_R;
|
|
105
|
-
exports.FORMFEED_R = require_markdown_constants.FORMFEED_R;
|
|
106
|
-
exports.FRONT_MATTER_R = require_markdown_constants.FRONT_MATTER_R;
|
|
107
|
-
exports.GFM_TASK_R = require_markdown_constants.GFM_TASK_R;
|
|
108
|
-
exports.HEADING_ATX_COMPLIANT_R = require_markdown_constants.HEADING_ATX_COMPLIANT_R;
|
|
109
|
-
exports.HEADING_R = require_markdown_constants.HEADING_R;
|
|
110
|
-
exports.HEADING_SETEXT_R = require_markdown_constants.HEADING_SETEXT_R;
|
|
111
|
-
exports.HTML_BLOCK_ELEMENT_R = require_markdown_constants.HTML_BLOCK_ELEMENT_R;
|
|
112
|
-
exports.HTML_CHAR_CODE_R = require_markdown_constants.HTML_CHAR_CODE_R;
|
|
113
|
-
exports.HTML_COMMENT_R = require_markdown_constants.HTML_COMMENT_R;
|
|
114
|
-
exports.HTML_CUSTOM_ATTR_R = require_markdown_constants.HTML_CUSTOM_ATTR_R;
|
|
115
|
-
exports.HTML_LEFT_TRIM_AMOUNT_R = require_markdown_constants.HTML_LEFT_TRIM_AMOUNT_R;
|
|
116
|
-
exports.HTML_SELF_CLOSING_ELEMENT_R = require_markdown_constants.HTML_SELF_CLOSING_ELEMENT_R;
|
|
117
|
-
exports.HTML_TAGS = require_transpiler_html_htmlTags.HTML_TAGS;
|
|
118
|
-
exports.INLINE_SKIP_R = require_markdown_constants.INLINE_SKIP_R;
|
|
119
|
-
exports.INTERPOLATION_R = require_markdown_constants.INTERPOLATION_R;
|
|
120
|
-
exports.LINK_AUTOLINK_BARE_URL_R = require_markdown_constants.LINK_AUTOLINK_BARE_URL_R;
|
|
121
|
-
exports.LINK_AUTOLINK_R = require_markdown_constants.LINK_AUTOLINK_R;
|
|
122
|
-
exports.LIST_LOOKBEHIND_R = require_markdown_constants.LIST_LOOKBEHIND_R;
|
|
123
|
-
exports.LOOKAHEAD = require_markdown_constants.LOOKAHEAD;
|
|
124
|
-
exports.LocaleStorage = require_utils_localeStorage.LocaleStorage;
|
|
125
|
-
exports.NAMED_CODES_TO_UNICODE = require_markdown_constants.NAMED_CODES_TO_UNICODE;
|
|
126
|
-
exports.NP_TABLE_R = require_markdown_constants.NP_TABLE_R;
|
|
127
|
-
exports.ORDERED = require_markdown_constants.ORDERED;
|
|
128
|
-
exports.ORDERED_LIST_BULLET = require_markdown_constants.ORDERED_LIST_BULLET;
|
|
129
|
-
exports.ORDERED_LIST_ITEM_PREFIX = require_markdown_constants.ORDERED_LIST_ITEM_PREFIX;
|
|
130
|
-
exports.ORDERED_LIST_ITEM_PREFIX_R = require_markdown_constants.ORDERED_LIST_ITEM_PREFIX_R;
|
|
131
|
-
exports.ORDERED_LIST_ITEM_R = require_markdown_constants.ORDERED_LIST_ITEM_R;
|
|
132
|
-
exports.ORDERED_LIST_R = require_markdown_constants.ORDERED_LIST_R;
|
|
133
|
-
exports.PARAGRAPH_R = require_markdown_constants.PARAGRAPH_R;
|
|
134
|
-
exports.Priority = require_markdown_constants.Priority;
|
|
135
|
-
exports.REFERENCE_IMAGE_OR_LINK = require_markdown_constants.REFERENCE_IMAGE_OR_LINK;
|
|
136
|
-
exports.REFERENCE_IMAGE_R = require_markdown_constants.REFERENCE_IMAGE_R;
|
|
137
|
-
exports.REFERENCE_LINK_R = require_markdown_constants.REFERENCE_LINK_R;
|
|
138
|
-
exports.RuleType = require_markdown_constants.RuleType;
|
|
139
|
-
exports.SHORTCODE_R = require_markdown_constants.SHORTCODE_R;
|
|
140
|
-
exports.SHOULD_RENDER_AS_BLOCK_R = require_markdown_constants.SHOULD_RENDER_AS_BLOCK_R;
|
|
141
|
-
exports.TABLE_CENTER_ALIGN = require_markdown_constants.TABLE_CENTER_ALIGN;
|
|
142
|
-
exports.TABLE_LEFT_ALIGN = require_markdown_constants.TABLE_LEFT_ALIGN;
|
|
143
|
-
exports.TABLE_RIGHT_ALIGN = require_markdown_constants.TABLE_RIGHT_ALIGN;
|
|
144
|
-
exports.TABLE_TRIM_PIPES = require_markdown_constants.TABLE_TRIM_PIPES;
|
|
145
|
-
exports.TAB_R = require_markdown_constants.TAB_R;
|
|
146
|
-
exports.TEXT_BOLD_R = require_markdown_constants.TEXT_BOLD_R;
|
|
147
|
-
exports.TEXT_EMPHASIZED_R = require_markdown_constants.TEXT_EMPHASIZED_R;
|
|
148
|
-
exports.TEXT_ESCAPED_R = require_markdown_constants.TEXT_ESCAPED_R;
|
|
149
|
-
exports.TEXT_MARKED_R = require_markdown_constants.TEXT_MARKED_R;
|
|
150
|
-
exports.TEXT_PLAIN_R = require_markdown_constants.TEXT_PLAIN_R;
|
|
151
|
-
exports.TEXT_STRIKETHROUGHED_R = require_markdown_constants.TEXT_STRIKETHROUGHED_R;
|
|
152
|
-
exports.TRIM_STARTING_NEWLINES = require_markdown_constants.TRIM_STARTING_NEWLINES;
|
|
153
|
-
exports.UNESCAPE_R = require_markdown_constants.UNESCAPE_R;
|
|
154
|
-
exports.UNORDERED = require_markdown_constants.UNORDERED;
|
|
155
|
-
exports.UNORDERED_LIST_BULLET = require_markdown_constants.UNORDERED_LIST_BULLET;
|
|
156
|
-
exports.UNORDERED_LIST_ITEM_PREFIX = require_markdown_constants.UNORDERED_LIST_ITEM_PREFIX;
|
|
157
|
-
exports.UNORDERED_LIST_ITEM_PREFIX_R = require_markdown_constants.UNORDERED_LIST_ITEM_PREFIX_R;
|
|
158
|
-
exports.UNORDERED_LIST_ITEM_R = require_markdown_constants.UNORDERED_LIST_ITEM_R;
|
|
159
|
-
exports.UNORDERED_LIST_R = require_markdown_constants.UNORDERED_LIST_R;
|
|
160
|
-
exports.allowInline = require_markdown_utils.allowInline;
|
|
161
|
-
exports.anyScopeRegex = require_markdown_utils.anyScopeRegex;
|
|
162
|
-
exports.attributeValueToNodePropValue = require_markdown_utils.attributeValueToNodePropValue;
|
|
163
|
-
exports.bindIntl = require_utils_intl.bindIntl;
|
|
164
|
-
exports.blockRegex = require_markdown_utils.blockRegex;
|
|
165
|
-
exports.buildMaskPlugin = require_deepTransformPlugins_getMaskContent.buildMaskPlugin;
|
|
166
|
-
exports.captureNothing = require_markdown_utils.captureNothing;
|
|
167
|
-
exports.checkIsURLAbsolute = require_utils_checkIsURLAbsolute.checkIsURLAbsolute;
|
|
168
|
-
exports.checkMissingLocalesPlugin = require_deepTransformPlugins_getMissingLocalesContent.checkMissingLocalesPlugin;
|
|
169
|
-
exports.compact = require_formatters_compact.compact;
|
|
170
|
-
exports.compile = require_markdown_compiler.compile;
|
|
171
|
-
exports.compileWithOptions = require_markdown_compiler.compileWithOptions;
|
|
172
|
-
exports.cond = require_transpiler_condition_condition.cond;
|
|
173
|
-
exports.conditionPlugin = require_interpreter_getContent_plugins.conditionPlugin;
|
|
174
|
-
exports.createCachedIntl = require_utils_intl.createCachedIntl;
|
|
175
|
-
exports.createCompiler = require_markdown_compiler.createCompiler;
|
|
176
|
-
exports.createRenderer = require_markdown_renderer.createRenderer;
|
|
177
|
-
exports.currency = require_formatters_currency.currency;
|
|
178
|
-
exports.cx = require_markdown_utils.cx;
|
|
179
|
-
exports.date = require_formatters_date.date;
|
|
180
|
-
exports.deepTransformNode = require_interpreter_getContent_deepTransform.deepTransformNode;
|
|
181
|
-
exports.editDictionaryByKeyPath = require_dictionaryManipulator_editDictionaryByKeyPath.editDictionaryByKeyPath;
|
|
182
|
-
exports.enu = require_transpiler_enumeration_enumeration.enu;
|
|
183
|
-
exports.enumerationPlugin = require_interpreter_getContent_plugins.enumerationPlugin;
|
|
184
|
-
exports.filePlugin = require_interpreter_getContent_plugins.filePlugin;
|
|
185
|
-
exports.filterMissingTranslationsOnlyPlugin = require_deepTransformPlugins_getFilterMissingTranslationsContent.filterMissingTranslationsOnlyPlugin;
|
|
186
|
-
exports.filterTranslationsOnlyPlugin = require_deepTransformPlugins_getFilterTranslationsOnlyContent.filterTranslationsOnlyPlugin;
|
|
187
|
-
exports.findMatchingCondition = require_interpreter_getEnumeration.findMatchingCondition;
|
|
188
|
-
exports.gender = require_transpiler_gender_gender.gender;
|
|
189
|
-
exports.genderPlugin = require_interpreter_getContent_plugins.genderPlugin;
|
|
190
|
-
exports.generateListItemPrefix = require_markdown_constants.generateListItemPrefix;
|
|
191
|
-
exports.generateListItemPrefixRegex = require_markdown_constants.generateListItemPrefixRegex;
|
|
192
|
-
exports.generateListItemRegex = require_markdown_constants.generateListItemRegex;
|
|
193
|
-
exports.generateListRegex = require_markdown_constants.generateListRegex;
|
|
194
|
-
exports.get = require_markdown_utils.get;
|
|
195
|
-
exports.getBrowserLocale = require_localization_getBrowserLocale.getBrowserLocale;
|
|
196
|
-
exports.getCanonicalPath = require_localization_rewriteUtils.getCanonicalPath;
|
|
197
|
-
exports.getCondition = require_interpreter_getCondition.getCondition;
|
|
198
|
-
exports.getContent = require_interpreter_getContent_getContent.getContent;
|
|
199
|
-
exports.getContentNodeByKeyPath = require_dictionaryManipulator_getContentNodeByKeyPath.getContentNodeByKeyPath;
|
|
200
|
-
exports.getCookie = require_utils_getCookie.getCookie;
|
|
201
|
-
exports.getDefaultNode = require_dictionaryManipulator_getDefaultNode.getDefaultNode;
|
|
202
|
-
exports.getDictionary = require_interpreter_getDictionary.getDictionary;
|
|
203
|
-
exports.getEmptyNode = require_dictionaryManipulator_getEmptyNode.getEmptyNode;
|
|
204
|
-
exports.getEnumeration = require_interpreter_getEnumeration.getEnumeration;
|
|
205
|
-
exports.getFilterMissingTranslationsContent = require_deepTransformPlugins_getFilterMissingTranslationsContent.getFilterMissingTranslationsContent;
|
|
206
|
-
exports.getFilterMissingTranslationsDictionary = require_deepTransformPlugins_getFilterMissingTranslationsContent.getFilterMissingTranslationsDictionary;
|
|
207
|
-
exports.getFilterTranslationsOnlyContent = require_deepTransformPlugins_getFilterTranslationsOnlyContent.getFilterTranslationsOnlyContent;
|
|
208
|
-
exports.getFilterTranslationsOnlyDictionary = require_deepTransformPlugins_getFilterTranslationsOnlyContent.getFilterTranslationsOnlyDictionary;
|
|
209
|
-
exports.getFilteredLocalesContent = require_deepTransformPlugins_getFilteredLocalesContent.getFilteredLocalesContent;
|
|
210
|
-
exports.getFilteredLocalesDictionary = require_deepTransformPlugins_getFilteredLocalesContent.getFilteredLocalesDictionary;
|
|
211
|
-
exports.getHTML = require_interpreter_getHTML.getHTML;
|
|
212
|
-
exports.getHTMLTextDir = require_localization_getHTMLTextDir.getHTMLTextDir;
|
|
213
|
-
exports.getInsertionValues = require_transpiler_insertion_getInsertionValues.getInsertionValues;
|
|
214
|
-
exports.getInternalPath = require_localization_rewriteUtils.getInternalPath;
|
|
215
|
-
exports.getIntlayer = require_interpreter_getIntlayer.getIntlayer;
|
|
216
|
-
exports.getLocale = require_localization_getLocale.getLocale;
|
|
217
|
-
exports.getLocaleFromPath = require_localization_getLocaleFromPath.getLocaleFromPath;
|
|
218
|
-
exports.getLocaleFromStorage = require_utils_localeStorage.getLocaleFromStorage;
|
|
219
|
-
exports.getLocaleLang = require_localization_getLocaleLang.getLocaleLang;
|
|
220
|
-
exports.getLocaleName = require_localization_getLocaleName.getLocaleName;
|
|
221
|
-
exports.getLocalizedContent = require_deepTransformPlugins_getLocalizedContent.getLocalizedContent;
|
|
222
|
-
exports.getLocalizedPath = require_localization_rewriteUtils.getLocalizedPath;
|
|
223
|
-
exports.getLocalizedUrl = require_localization_getLocalizedUrl.getLocalizedUrl;
|
|
224
|
-
exports.getMarkdownMetadata = require_transpiler_markdown_getMarkdownMetadata.getMarkdownMetadata;
|
|
225
|
-
exports.getMaskContent = require_deepTransformPlugins_getMaskContent.getMaskContent;
|
|
226
|
-
exports.getMissingLocalesContent = require_deepTransformPlugins_getMissingLocalesContent.getMissingLocalesContent;
|
|
227
|
-
exports.getMissingLocalesContentFromDictionary = require_deepTransformPlugins_getMissingLocalesContent.getMissingLocalesContentFromDictionary;
|
|
228
|
-
exports.getMultilingualDictionary = require_deepTransformPlugins_getMultilingualDictionary.getMultilingualDictionary;
|
|
229
|
-
exports.getMultilingualUrls = require_localization_getMultilingualUrls.getMultilingualUrls;
|
|
230
|
-
exports.getNesting = require_interpreter_getNesting.getNesting;
|
|
231
|
-
exports.getNodeChildren = require_dictionaryManipulator_getNodeChildren.getNodeChildren;
|
|
232
|
-
exports.getNodeType = require_dictionaryManipulator_getNodeType.getNodeType;
|
|
233
|
-
exports.getPathWithoutLocale = require_localization_getPathWithoutLocale.getPathWithoutLocale;
|
|
234
|
-
exports.getPerLocaleDictionary = require_deepTransformPlugins_getLocalizedContent.getPerLocaleDictionary;
|
|
235
|
-
exports.getPrefix = require_localization_getPrefix.getPrefix;
|
|
236
|
-
exports.getReplacedValuesContent = require_deepTransformPlugins_getReplacedValuesContent.getReplacedValuesContent;
|
|
237
|
-
exports.getRewritePath = require_localization_rewriteUtils.getRewritePath;
|
|
238
|
-
exports.getRewriteRules = require_localization_rewriteUtils.getRewriteRules;
|
|
239
|
-
exports.getSplittedContent = require_deepTransformPlugins_getSplittedContent.getSplittedContent;
|
|
240
|
-
exports.getSplittedDictionaryContent = require_deepTransformPlugins_getSplittedContent.getSplittedDictionaryContent;
|
|
241
|
-
exports.getStorageAttributes = require_getStorageAttributes.getStorageAttributes;
|
|
242
|
-
exports.getTranslation = require_interpreter_getTranslation.getTranslation;
|
|
243
|
-
exports.html = require_transpiler_html_html.html;
|
|
244
|
-
exports.inlineRegex = require_markdown_utils.inlineRegex;
|
|
245
|
-
exports.insert = require_transpiler_insertion_insertion.insert;
|
|
246
|
-
exports.insertContentInDictionary = require_deepTransformPlugins_insertContentInDictionary.insertContentInDictionary;
|
|
247
|
-
exports.insertionPlugin = require_interpreter_getContent_plugins.insertionPlugin;
|
|
248
|
-
exports.isSameKeyPath = require_utils_isSameKeyPath.isSameKeyPath;
|
|
249
|
-
exports.isValidElement = require_utils_isValidReactElement.isValidElement;
|
|
250
|
-
exports.list = require_formatters_list.list;
|
|
251
|
-
exports.localeDetector = require_localization_localeDetector.localeDetector;
|
|
252
|
-
exports.localeFlatMap = require_localization_localeMapper.localeFlatMap;
|
|
253
|
-
exports.localeMap = require_localization_localeMapper.localeMap;
|
|
254
|
-
exports.localeRecord = require_localization_localeMapper.localeRecord;
|
|
255
|
-
exports.localeResolver = require_localization_localeResolver.localeResolver;
|
|
256
|
-
exports.localeStorageOptions = require_localization_getBrowserLocale.localeStorageOptions;
|
|
257
|
-
exports.md = require_transpiler_markdown_markdown.md;
|
|
258
|
-
exports.mergeDictionaries = require_dictionaryManipulator_mergeDictionaries.mergeDictionaries;
|
|
259
|
-
exports.nest = require_transpiler_nesting_nesting.nest;
|
|
260
|
-
exports.nestedPlugin = require_interpreter_getContent_plugins.nestedPlugin;
|
|
261
|
-
exports.normalizeAttributeKey = require_markdown_utils.normalizeAttributeKey;
|
|
262
|
-
exports.normalizeDictionaries = require_dictionaryManipulator_normalizeDictionary.normalizeDictionaries;
|
|
263
|
-
exports.normalizeDictionary = require_dictionaryManipulator_normalizeDictionary.normalizeDictionary;
|
|
264
|
-
exports.normalizeWhitespace = require_markdown_utils.normalizeWhitespace;
|
|
265
|
-
exports.number = require_formatters_number.number;
|
|
266
|
-
exports.orderDictionaries = require_dictionaryManipulator_orderDictionaries.orderDictionaries;
|
|
267
|
-
exports.parseBlock = require_markdown_utils.parseBlock;
|
|
268
|
-
exports.parseCaptureInline = require_markdown_utils.parseCaptureInline;
|
|
269
|
-
exports.parseInline = require_markdown_utils.parseInline;
|
|
270
|
-
exports.parseSimpleInline = require_markdown_utils.parseSimpleInline;
|
|
271
|
-
exports.parseStyleAttribute = require_markdown_utils.parseStyleAttribute;
|
|
272
|
-
exports.parseTableAlign = require_markdown_utils.parseTableAlign;
|
|
273
|
-
exports.parseTableAlignCapture = require_markdown_utils.parseTableAlignCapture;
|
|
274
|
-
exports.parseTableCells = require_markdown_utils.parseTableCells;
|
|
275
|
-
exports.parseTableRow = require_markdown_utils.parseTableRow;
|
|
276
|
-
exports.parseYaml = require_utils_parseYaml.parseYaml;
|
|
277
|
-
exports.parserFor = require_markdown_parser.parserFor;
|
|
278
|
-
exports.percentage = require_formatters_percentage.percentage;
|
|
279
|
-
exports.qualifies = require_markdown_utils.qualifies;
|
|
280
|
-
exports.relativeTime = require_formatters_relativeTime.relativeTime;
|
|
281
|
-
exports.removeContentNodeByKeyPath = require_dictionaryManipulator_removeContentNodeByKeyPath.removeContentNodeByKeyPath;
|
|
282
|
-
exports.renameContentNodeByKeyPath = require_dictionaryManipulator_renameContentNodeByKeyPath.renameContentNodeByKeyPath;
|
|
283
|
-
exports.renderFor = require_markdown_renderer.renderFor;
|
|
284
|
-
exports.renderNothing = require_markdown_utils.renderNothing;
|
|
285
|
-
exports.sanitizer = require_markdown_utils.sanitizer;
|
|
286
|
-
exports.setLocaleInStorage = require_utils_localeStorage.setLocaleInStorage;
|
|
287
|
-
exports.simpleInlineRegex = require_markdown_utils.simpleInlineRegex;
|
|
288
|
-
exports.slugify = require_markdown_utils.slugify;
|
|
289
|
-
exports.some = require_markdown_utils.some;
|
|
290
|
-
exports.splitInsertionTemplate = require_interpreter_splitAndJoinInsertion.splitInsertionTemplate;
|
|
291
|
-
exports.startsWith = require_markdown_utils.startsWith;
|
|
292
|
-
exports.t = require_transpiler_translation_translation.t;
|
|
293
|
-
exports.translationPlugin = require_interpreter_getContent_plugins.translationPlugin;
|
|
294
|
-
exports.trimEnd = require_markdown_utils.trimEnd;
|
|
295
|
-
exports.trimLeadingWhitespaceOutsideFences = require_markdown_utils.trimLeadingWhitespaceOutsideFences;
|
|
296
|
-
exports.unescapeString = require_markdown_utils.unescapeString;
|
|
297
|
-
exports.units = require_formatters_units.units;
|
|
298
|
-
exports.unquote = require_markdown_utils.unquote;
|
|
299
|
-
exports.updateNodeChildren = require_dictionaryManipulator_updateNodeChildren.updateNodeChildren;
|
|
300
|
-
exports.validatePrefix = require_localization_validatePrefix.validatePrefix;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getStorageAttributes.cjs`),t=require(`./interpreter/getCondition.cjs`),n=require(`./interpreter/getContent/deepTransform.cjs`),r=require(`./interpreter/getEnumeration.cjs`),i=require(`./interpreter/getDictionary.cjs`),a=require(`./interpreter/getIntlayer.cjs`),o=require(`./interpreter/getNesting.cjs`),s=require(`./interpreter/getTranslation.cjs`),c=require(`./interpreter/getContent/plugins.cjs`),l=require(`./interpreter/getContent/getContent.cjs`),u=require(`./interpreter/getHTML.cjs`),d=require(`./interpreter/splitAndJoinInsertion.cjs`),f=require(`./deepTransformPlugins/getFilteredLocalesContent.cjs`),ee=require(`./transpiler/condition/condition.cjs`),te=require(`./transpiler/enumeration/enumeration.cjs`),ne=require(`./transpiler/gender/gender.cjs`),re=require(`./transpiler/html/html.cjs`),ie=require(`./transpiler/html/htmlTags.cjs`),ae=require(`./transpiler/insertion/getInsertionValues.cjs`),oe=require(`./transpiler/insertion/insertion.cjs`),se=require(`./utils/parseYaml.cjs`),ce=require(`./transpiler/markdown/getMarkdownMetadata.cjs`),le=require(`./transpiler/markdown/markdown.cjs`),ue=require(`./transpiler/nesting/nesting.cjs`),p=require(`./transpiler/translation/translation.cjs`),m=require(`./deepTransformPlugins/getFilterMissingTranslationsContent.cjs`),h=require(`./deepTransformPlugins/getFilterTranslationsOnlyContent.cjs`),g=require(`./deepTransformPlugins/getLocalizedContent.cjs`),_=require(`./deepTransformPlugins/getMaskContent.cjs`),v=require(`./deepTransformPlugins/getMissingLocalesContent.cjs`),y=require(`./deepTransformPlugins/getMultilingualDictionary.cjs`),b=require(`./deepTransformPlugins/getReplacedValuesContent.cjs`),x=require(`./deepTransformPlugins/getSplittedContent.cjs`),S=require(`./deepTransformPlugins/insertContentInDictionary.cjs`),C=require(`./dictionaryManipulator/editDictionaryByKeyPath.cjs`),w=require(`./dictionaryManipulator/getContentNodeByKeyPath.cjs`),T=require(`./dictionaryManipulator/getDefaultNode.cjs`),E=require(`./dictionaryManipulator/getEmptyNode.cjs`),D=require(`./dictionaryManipulator/getNodeChildren.cjs`),O=require(`./utils/isValidReactElement.cjs`),k=require(`./dictionaryManipulator/getNodeType.cjs`),A=require(`./dictionaryManipulator/mergeDictionaries.cjs`),j=require(`./dictionaryManipulator/orderDictionaries.cjs`),M=require(`./dictionaryManipulator/normalizeDictionary.cjs`),N=require(`./dictionaryManipulator/removeContentNodeByKeyPath.cjs`),P=require(`./dictionaryManipulator/renameContentNodeByKeyPath.cjs`),F=require(`./dictionaryManipulator/updateNodeChildren.cjs`),I=require(`./utils/intl.cjs`),L=require(`./formatters/compact.cjs`),R=require(`./formatters/currency.cjs`),z=require(`./formatters/date.cjs`),de=require(`./formatters/list.cjs`),B=require(`./formatters/number.cjs`),V=require(`./formatters/percentage.cjs`),H=require(`./formatters/relativeTime.cjs`),fe=require(`./formatters/units.cjs`),pe=require(`./utils/getCookie.cjs`),U=require(`./utils/localeStorage.cjs`),me=require(`./localization/localeResolver.cjs`),he=require(`./localization/localeDetector.cjs`),W=require(`./localization/getBrowserLocale.cjs`),ge=require(`./localization/getHTMLTextDir.cjs`),_e=require(`./localization/getLocale.cjs`),ve=require(`./utils/checkIsURLAbsolute.cjs`),ye=require(`./localization/getLocaleFromPath.cjs`),be=require(`./localization/getLocaleLang.cjs`),xe=require(`./localization/getLocaleName.cjs`),Se=require(`./localization/getPathWithoutLocale.cjs`),Ce=require(`./localization/getPrefix.cjs`),G=require(`./localization/rewriteUtils.cjs`),we=require(`./localization/getLocalizedUrl.cjs`),Te=require(`./localization/getMultilingualUrls.cjs`),K=require(`./localization/localeMapper.cjs`),Ee=require(`./localization/validatePrefix.cjs`),q=require(`./markdown/constants.cjs`),J=require(`./markdown/utils.cjs`),De=require(`./markdown/parser.cjs`),Y=require(`./markdown/renderer.cjs`),X=require(`./markdown/compiler.cjs`),Z=require(`./messageFormat/ICU.cjs`),Q=require(`./messageFormat/i18next.cjs`),$=require(`./messageFormat/vue-i18n.cjs`),Oe=require(`./utils/isSameKeyPath.cjs`);exports.ATTRIBUTES_TO_SANITIZE=q.ATTRIBUTES_TO_SANITIZE,exports.ATTRIBUTE_TO_NODE_PROP_MAP=q.ATTRIBUTE_TO_NODE_PROP_MAP,exports.ATTR_EXTRACTOR_R=q.ATTR_EXTRACTOR_R,exports.BLOCKQUOTE_ALERT_R=q.BLOCKQUOTE_ALERT_R,exports.BLOCKQUOTE_R=q.BLOCKQUOTE_R,exports.BLOCKQUOTE_TRIM_LEFT_MULTILINE_R=q.BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,exports.BLOCK_END_R=q.BLOCK_END_R,exports.BREAK_LINE_R=q.BREAK_LINE_R,exports.BREAK_THEMATIC_R=q.BREAK_THEMATIC_R,exports.CAPTURE_LETTER_AFTER_HYPHEN=q.CAPTURE_LETTER_AFTER_HYPHEN,exports.CODE_BLOCK_FENCED_R=q.CODE_BLOCK_FENCED_R,exports.CODE_BLOCK_R=q.CODE_BLOCK_R,exports.CODE_INLINE_R=q.CODE_INLINE_R,exports.CONSECUTIVE_NEWLINE_R=q.CONSECUTIVE_NEWLINE_R,exports.CR_NEWLINE_R=q.CR_NEWLINE_R,exports.CUSTOM_COMPONENT_R=q.CUSTOM_COMPONENT_R,exports.CachedIntl=I.CachedIntl,exports.Intl=I.CachedIntl,exports.DO_NOT_PROCESS_HTML_ELEMENTS=q.DO_NOT_PROCESS_HTML_ELEMENTS,exports.DURATION_DELAY_TRIGGER=q.DURATION_DELAY_TRIGGER,exports.FOOTNOTE_R=q.FOOTNOTE_R,exports.FOOTNOTE_REFERENCE_R=q.FOOTNOTE_REFERENCE_R,exports.FORMFEED_R=q.FORMFEED_R,exports.FRONT_MATTER_R=q.FRONT_MATTER_R,exports.GFM_TASK_R=q.GFM_TASK_R,exports.HEADING_ATX_COMPLIANT_R=q.HEADING_ATX_COMPLIANT_R,exports.HEADING_R=q.HEADING_R,exports.HEADING_SETEXT_R=q.HEADING_SETEXT_R,exports.HTML_BLOCK_ELEMENT_R=q.HTML_BLOCK_ELEMENT_R,exports.HTML_CHAR_CODE_R=q.HTML_CHAR_CODE_R,exports.HTML_COMMENT_R=q.HTML_COMMENT_R,exports.HTML_CUSTOM_ATTR_R=q.HTML_CUSTOM_ATTR_R,exports.HTML_LEFT_TRIM_AMOUNT_R=q.HTML_LEFT_TRIM_AMOUNT_R,exports.HTML_SELF_CLOSING_ELEMENT_R=q.HTML_SELF_CLOSING_ELEMENT_R,exports.HTML_TAGS=ie.HTML_TAGS,exports.INLINE_SKIP_R=q.INLINE_SKIP_R,exports.INTERPOLATION_R=q.INTERPOLATION_R,exports.LINK_AUTOLINK_BARE_URL_R=q.LINK_AUTOLINK_BARE_URL_R,exports.LINK_AUTOLINK_R=q.LINK_AUTOLINK_R,exports.LIST_LOOKBEHIND_R=q.LIST_LOOKBEHIND_R,exports.LOOKAHEAD=q.LOOKAHEAD,exports.LocaleStorage=U.LocaleStorage,exports.NAMED_CODES_TO_UNICODE=q.NAMED_CODES_TO_UNICODE,exports.NP_TABLE_R=q.NP_TABLE_R,exports.ORDERED=q.ORDERED,exports.ORDERED_LIST_BULLET=q.ORDERED_LIST_BULLET,exports.ORDERED_LIST_ITEM_PREFIX=q.ORDERED_LIST_ITEM_PREFIX,exports.ORDERED_LIST_ITEM_PREFIX_R=q.ORDERED_LIST_ITEM_PREFIX_R,exports.ORDERED_LIST_ITEM_R=q.ORDERED_LIST_ITEM_R,exports.ORDERED_LIST_R=q.ORDERED_LIST_R,exports.PARAGRAPH_R=q.PARAGRAPH_R,exports.Priority=q.Priority,exports.REFERENCE_IMAGE_OR_LINK=q.REFERENCE_IMAGE_OR_LINK,exports.REFERENCE_IMAGE_R=q.REFERENCE_IMAGE_R,exports.REFERENCE_LINK_R=q.REFERENCE_LINK_R,exports.RuleType=q.RuleType,exports.SHORTCODE_R=q.SHORTCODE_R,exports.SHOULD_RENDER_AS_BLOCK_R=q.SHOULD_RENDER_AS_BLOCK_R,exports.TABLE_CENTER_ALIGN=q.TABLE_CENTER_ALIGN,exports.TABLE_LEFT_ALIGN=q.TABLE_LEFT_ALIGN,exports.TABLE_RIGHT_ALIGN=q.TABLE_RIGHT_ALIGN,exports.TABLE_TRIM_PIPES=q.TABLE_TRIM_PIPES,exports.TAB_R=q.TAB_R,exports.TEXT_BOLD_R=q.TEXT_BOLD_R,exports.TEXT_EMPHASIZED_R=q.TEXT_EMPHASIZED_R,exports.TEXT_ESCAPED_R=q.TEXT_ESCAPED_R,exports.TEXT_MARKED_R=q.TEXT_MARKED_R,exports.TEXT_PLAIN_R=q.TEXT_PLAIN_R,exports.TEXT_STRIKETHROUGHED_R=q.TEXT_STRIKETHROUGHED_R,exports.TRIM_STARTING_NEWLINES=q.TRIM_STARTING_NEWLINES,exports.UNESCAPE_R=q.UNESCAPE_R,exports.UNORDERED=q.UNORDERED,exports.UNORDERED_LIST_BULLET=q.UNORDERED_LIST_BULLET,exports.UNORDERED_LIST_ITEM_PREFIX=q.UNORDERED_LIST_ITEM_PREFIX,exports.UNORDERED_LIST_ITEM_PREFIX_R=q.UNORDERED_LIST_ITEM_PREFIX_R,exports.UNORDERED_LIST_ITEM_R=q.UNORDERED_LIST_ITEM_R,exports.UNORDERED_LIST_R=q.UNORDERED_LIST_R,exports.allowInline=J.allowInline,exports.anyScopeRegex=J.anyScopeRegex,exports.attributeValueToNodePropValue=J.attributeValueToNodePropValue,exports.bindIntl=I.bindIntl,exports.blockRegex=J.blockRegex,exports.buildMaskPlugin=_.buildMaskPlugin,exports.captureNothing=J.captureNothing,exports.checkIsURLAbsolute=ve.checkIsURLAbsolute,exports.checkMissingLocalesPlugin=v.checkMissingLocalesPlugin,exports.compact=L.compact,exports.compile=X.compile,exports.compileWithOptions=X.compileWithOptions,exports.cond=ee.cond,exports.conditionPlugin=c.conditionPlugin,exports.createCachedIntl=I.createCachedIntl,exports.createCompiler=X.createCompiler,exports.createRenderer=Y.createRenderer,exports.currency=R.currency,exports.cx=J.cx,exports.date=z.date,exports.deepTransformNode=n.deepTransformNode,exports.editDictionaryByKeyPath=C.editDictionaryByKeyPath,exports.enu=te.enu,exports.enumerationPlugin=c.enumerationPlugin,exports.filePlugin=c.filePlugin,exports.filterMissingTranslationsOnlyPlugin=m.filterMissingTranslationsOnlyPlugin,exports.filterTranslationsOnlyPlugin=h.filterTranslationsOnlyPlugin,exports.findMatchingCondition=r.findMatchingCondition,exports.gender=ne.gender,exports.genderPlugin=c.genderPlugin,exports.generateListItemPrefix=q.generateListItemPrefix,exports.generateListItemPrefixRegex=q.generateListItemPrefixRegex,exports.generateListItemRegex=q.generateListItemRegex,exports.generateListRegex=q.generateListRegex,exports.get=J.get,exports.getBrowserLocale=W.getBrowserLocale,exports.getCanonicalPath=G.getCanonicalPath,exports.getCondition=t.getCondition,exports.getContent=l.getContent,exports.getContentNodeByKeyPath=w.getContentNodeByKeyPath,exports.getCookie=pe.getCookie,exports.getDefaultNode=T.getDefaultNode,exports.getDictionary=i.getDictionary,exports.getEmptyNode=E.getEmptyNode,exports.getEnumeration=r.getEnumeration,exports.getFilterMissingTranslationsContent=m.getFilterMissingTranslationsContent,exports.getFilterMissingTranslationsDictionary=m.getFilterMissingTranslationsDictionary,exports.getFilterTranslationsOnlyContent=h.getFilterTranslationsOnlyContent,exports.getFilterTranslationsOnlyDictionary=h.getFilterTranslationsOnlyDictionary,exports.getFilteredLocalesContent=f.getFilteredLocalesContent,exports.getFilteredLocalesDictionary=f.getFilteredLocalesDictionary,exports.getHTML=u.getHTML,exports.getHTMLTextDir=ge.getHTMLTextDir,exports.getInsertionValues=ae.getInsertionValues,exports.getInternalPath=G.getInternalPath,exports.getIntlayer=a.getIntlayer,exports.getLocale=_e.getLocale,exports.getLocaleFromPath=ye.getLocaleFromPath,exports.getLocaleFromStorage=U.getLocaleFromStorage,exports.getLocaleLang=be.getLocaleLang,exports.getLocaleName=xe.getLocaleName,exports.getLocalizedContent=g.getLocalizedContent,exports.getLocalizedPath=G.getLocalizedPath,exports.getLocalizedUrl=we.getLocalizedUrl,exports.getMarkdownMetadata=ce.getMarkdownMetadata,exports.getMaskContent=_.getMaskContent,exports.getMissingLocalesContent=v.getMissingLocalesContent,exports.getMissingLocalesContentFromDictionary=v.getMissingLocalesContentFromDictionary,exports.getMultilingualDictionary=y.getMultilingualDictionary,exports.getMultilingualUrls=Te.getMultilingualUrls,exports.getNesting=o.getNesting,exports.getNodeChildren=D.getNodeChildren,exports.getNodeType=k.getNodeType,exports.getPathWithoutLocale=Se.getPathWithoutLocale,exports.getPerLocaleDictionary=g.getPerLocaleDictionary,exports.getPrefix=Ce.getPrefix,exports.getReplacedValuesContent=b.getReplacedValuesContent,exports.getRewritePath=G.getRewritePath,exports.getRewriteRules=G.getRewriteRules,exports.getSplittedContent=x.getSplittedContent,exports.getSplittedDictionaryContent=x.getSplittedDictionaryContent,exports.getStorageAttributes=e.getStorageAttributes,exports.getTranslation=s.getTranslation,exports.html=re.html,exports.i18nextToIntlayerFormatter=Q.i18nextToIntlayerFormatter,exports.icuToIntlayerFormatter=Z.icuToIntlayerFormatter,exports.inlineRegex=J.inlineRegex,exports.insert=oe.insert,exports.insertContentInDictionary=S.insertContentInDictionary,exports.insertionPlugin=c.insertionPlugin,exports.intlayerToI18nextFormatter=Q.intlayerToI18nextFormatter,exports.intlayerToICUFormatter=Z.intlayerToICUFormatter,exports.intlayerToVueI18nFormatter=$.intlayerToVueI18nFormatter,exports.isSameKeyPath=Oe.isSameKeyPath,exports.isValidElement=O.isValidElement,exports.list=de.list,exports.localeDetector=he.localeDetector,exports.localeFlatMap=K.localeFlatMap,exports.localeMap=K.localeMap,exports.localeRecord=K.localeRecord,exports.localeResolver=me.localeResolver,exports.localeStorageOptions=W.localeStorageOptions,exports.md=le.md,exports.mergeDictionaries=A.mergeDictionaries,exports.nest=ue.nest,exports.nestedPlugin=c.nestedPlugin,exports.normalizeAttributeKey=J.normalizeAttributeKey,exports.normalizeDictionaries=M.normalizeDictionaries,exports.normalizeDictionary=M.normalizeDictionary,exports.normalizeWhitespace=J.normalizeWhitespace,exports.number=B.number,exports.orderDictionaries=j.orderDictionaries,exports.parseBlock=J.parseBlock,exports.parseCaptureInline=J.parseCaptureInline,exports.parseInline=J.parseInline,exports.parseSimpleInline=J.parseSimpleInline,exports.parseStyleAttribute=J.parseStyleAttribute,exports.parseTableAlign=J.parseTableAlign,exports.parseTableAlignCapture=J.parseTableAlignCapture,exports.parseTableCells=J.parseTableCells,exports.parseTableRow=J.parseTableRow,exports.parseYaml=se.parseYaml,exports.parserFor=De.parserFor,exports.percentage=V.percentage,exports.qualifies=J.qualifies,exports.relativeTime=H.relativeTime,exports.removeContentNodeByKeyPath=N.removeContentNodeByKeyPath,exports.renameContentNodeByKeyPath=P.renameContentNodeByKeyPath,exports.renderFor=Y.renderFor,exports.renderNothing=J.renderNothing,exports.sanitizer=J.sanitizer,exports.setLocaleInStorage=U.setLocaleInStorage,exports.simpleInlineRegex=J.simpleInlineRegex,exports.slugify=J.slugify,exports.some=J.some,exports.splitInsertionTemplate=d.splitInsertionTemplate,exports.startsWith=J.startsWith,exports.t=p.t,exports.translationPlugin=c.translationPlugin,exports.trimEnd=J.trimEnd,exports.trimLeadingWhitespaceOutsideFences=J.trimLeadingWhitespaceOutsideFences,exports.unescapeString=J.unescapeString,exports.units=fe.units,exports.unquote=J.unquote,exports.updateNodeChildren=F.updateNodeChildren,exports.validatePrefix=Ee.validatePrefix,exports.vueI18nToIntlayerFormatter=$.vueI18nToIntlayerFormatter;
|
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
|
|
3
|
-
//#region src/interpreter/getCondition.ts
|
|
4
|
-
/**
|
|
5
|
-
* Picks content based on a boolean condition.
|
|
6
|
-
*
|
|
7
|
-
* @param conditionContent - A map with 'true', 'false', and optionally 'fallback' keys.
|
|
8
|
-
* @param state - The boolean state to match.
|
|
9
|
-
* @returns The matching content.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const content = getCondition({
|
|
14
|
-
* 'true': 'The condition is validated',
|
|
15
|
-
* 'false': 'The condition is not validated',
|
|
16
|
-
* }, true);
|
|
17
|
-
* // 'The condition is validated'
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
const getCondition = (conditionContent, state) => {
|
|
21
|
-
const stateList = Object.keys(conditionContent);
|
|
22
|
-
const fallbackState = stateList[stateList.length - 1];
|
|
23
|
-
return conditionContent[`${state}`] ?? conditionContent.fallback ?? conditionContent[fallbackState];
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
exports.getCondition = getCondition;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=(e,t)=>{let n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]};exports.getCondition=e;
|
|
28
2
|
//# sourceMappingURL=getCondition.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCondition.cjs","names":[],"sources":["../../../src/interpreter/getCondition.ts"],"sourcesContent":["import type { ConditionContentStates } from '../transpiler';\n\n/**\n * Picks content based on a boolean condition.\n *\n * @param conditionContent - A map with 'true', 'false', and optionally 'fallback' keys.\n * @param state - The boolean state to match.\n * @returns The matching content.\n *\n * @example\n * ```ts\n * const content = getCondition({\n * 'true': 'The condition is validated',\n * 'false': 'The condition is not validated',\n * }, true);\n * // 'The condition is validated'\n * ```\n */\nexport const getCondition = <Content>(\n conditionContent: ConditionContentStates<Content>,\n state?: boolean\n): Content => {\n const stateList = Object.keys(conditionContent);\n const fallbackState = stateList[\n stateList.length - 1\n ] as keyof typeof conditionContent;\n\n // Default or error handling if no keys match\n return (\n conditionContent[`${state}` as keyof typeof conditionContent] ??\n conditionContent.fallback ??\n (conditionContent[fallbackState] as Content)\n );\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCondition.cjs","names":[],"sources":["../../../src/interpreter/getCondition.ts"],"sourcesContent":["import type { ConditionContentStates } from '../transpiler';\n\n/**\n * Picks content based on a boolean condition.\n *\n * @param conditionContent - A map with 'true', 'false', and optionally 'fallback' keys.\n * @param state - The boolean state to match.\n * @returns The matching content.\n *\n * @example\n * ```ts\n * const content = getCondition({\n * 'true': 'The condition is validated',\n * 'false': 'The condition is not validated',\n * }, true);\n * // 'The condition is validated'\n * ```\n */\nexport const getCondition = <Content>(\n conditionContent: ConditionContentStates<Content>,\n state?: boolean\n): Content => {\n const stateList = Object.keys(conditionContent);\n const fallbackState = stateList[\n stateList.length - 1\n ] as keyof typeof conditionContent;\n\n // Default or error handling if no keys match\n return (\n conditionContent[`${state}` as keyof typeof conditionContent] ??\n conditionContent.fallback ??\n (conditionContent[fallbackState] as Content)\n );\n};\n"],"mappings":"mEAkBA,MAAa,GACX,EACA,IACY,CACZ,IAAM,EAAY,OAAO,KAAK,EAAiB,CACzC,EAAgB,EACpB,EAAU,OAAS,GAIrB,OACE,EAAiB,GAAG,MACpB,EAAiB,UAChB,EAAiB"}
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _intlayer_types = require("@intlayer/types");
|
|
4
|
-
|
|
5
|
-
//#region src/interpreter/getContent/deepTransform.ts
|
|
6
|
-
/**
|
|
7
|
-
* Recursively traverses a node (object/array/primitive).
|
|
8
|
-
* Applies the *first* plugin that can transform a node, then stops descending further.
|
|
9
|
-
* If no plugin transforms it, it recurses into its children.
|
|
10
|
-
*/
|
|
11
|
-
const deepTransformNode = (node, props) => {
|
|
12
|
-
for (const plugin of props.plugins ?? []) if (plugin.canHandle(node)) return plugin.transform(node, props, (node, props) => deepTransformNode(node, props));
|
|
13
|
-
if (node === null || typeof node !== "object") return node;
|
|
14
|
-
if (node.$$typeof !== void 0 || node.__v_isVNode !== void 0 || node._isVNode !== void 0 || node.isJSX !== void 0 || typeof node === "function") return node;
|
|
15
|
-
if (Array.isArray(node)) return node.map((child, index) => {
|
|
16
|
-
return deepTransformNode(child, {
|
|
17
|
-
...props,
|
|
18
|
-
children: child,
|
|
19
|
-
keyPath: [...props.keyPath, {
|
|
20
|
-
type: _intlayer_types.NodeType.Array,
|
|
21
|
-
key: index
|
|
22
|
-
}]
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
const result = {};
|
|
26
|
-
for (const key in node) {
|
|
27
|
-
const childProps = {
|
|
28
|
-
...props,
|
|
29
|
-
children: node[key],
|
|
30
|
-
keyPath: [...props.keyPath, {
|
|
31
|
-
type: _intlayer_types.NodeType.Object,
|
|
32
|
-
key
|
|
33
|
-
}]
|
|
34
|
-
};
|
|
35
|
-
result[key] = deepTransformNode(node[key], childProps);
|
|
36
|
-
}
|
|
37
|
-
return result;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
exports.deepTransformNode = deepTransformNode;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@intlayer/types`);const t=(n,r)=>{for(let e of r.plugins??[])if(e.canHandle(n))return e.transform(n,r,(e,n)=>t(e,n));if(typeof n!=`object`||!n||n.$$typeof!==void 0||n.__v_isVNode!==void 0||n._isVNode!==void 0||n.isJSX!==void 0||typeof n==`function`)return n;if(Array.isArray(n))return n.map((n,i)=>t(n,{...r,children:n,keyPath:[...r.keyPath,{type:e.NodeType.Array,key:i}]}));let i={};for(let a in n){let o={...r,children:n[a],keyPath:[...r.keyPath,{type:e.NodeType.Object,key:a}]};i[a]=t(n[a],o)}return i};exports.deepTransformNode=t;
|
|
42
2
|
//# sourceMappingURL=deepTransform.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepTransform.cjs","names":["NodeType"],"sources":["../../../../src/interpreter/getContent/deepTransform.ts"],"sourcesContent":["import { type KeyPath, NodeType } from '@intlayer/types';\nimport type { NodeProps } from './plugins';\n\n/**\n * Recursively traverses a node (object/array/primitive).\n * Applies the *first* plugin that can transform a node, then stops descending further.\n * If no plugin transforms it, it recurses into its children.\n */\nexport const deepTransformNode = (node: any, props: NodeProps): any => {\n // Otherwise, if it's an object, check if any plugin can handle it:\n for (const plugin of props.plugins ?? []) {\n if (plugin.canHandle(node)) {\n // Return the transformed node => do NOT recurse further\n return plugin.transform(node, props, (node: any, props: any) =>\n deepTransformNode(node, props)\n );\n }\n }\n\n // If it's null/undefined or not an object, just return it directly:\n if (node === null || typeof node !== 'object') {\n return node;\n }\n\n // If it's a framework-specific virtual node or already a transformed Proxy,\n // return it directly to avoid re-transforming its internal properties.\n if (\n (node as any).$$typeof !== undefined ||\n (node as any).__v_isVNode !== undefined ||\n (node as any)._isVNode !== undefined ||\n (node as any).isJSX !== undefined ||\n typeof node === 'function' // Proxies for html/markdown are functions\n ) {\n return node;\n }\n\n // If it's an array, transform each element:\n if (Array.isArray(node)) {\n return node.map((child, index) => {\n const childProps = {\n ...props,\n children: child,\n keyPath: [\n ...props.keyPath,\n { type: NodeType.Array, key: index } as KeyPath,\n ],\n };\n return deepTransformNode(child, childProps);\n });\n }\n\n // If no plugin transforms it, we keep traversing its properties.\n const result: Record<string, any> = {};\n for (const key in node) {\n const childProps = {\n ...props,\n children: node[key],\n keyPath: [...props.keyPath, { type: NodeType.Object, key } as KeyPath],\n };\n result[key] = deepTransformNode(node[key], childProps);\n }\n\n return result;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"deepTransform.cjs","names":["NodeType"],"sources":["../../../../src/interpreter/getContent/deepTransform.ts"],"sourcesContent":["import { type KeyPath, NodeType } from '@intlayer/types';\nimport type { NodeProps } from './plugins';\n\n/**\n * Recursively traverses a node (object/array/primitive).\n * Applies the *first* plugin that can transform a node, then stops descending further.\n * If no plugin transforms it, it recurses into its children.\n */\nexport const deepTransformNode = (node: any, props: NodeProps): any => {\n // Otherwise, if it's an object, check if any plugin can handle it:\n for (const plugin of props.plugins ?? []) {\n if (plugin.canHandle(node)) {\n // Return the transformed node => do NOT recurse further\n return plugin.transform(node, props, (node: any, props: any) =>\n deepTransformNode(node, props)\n );\n }\n }\n\n // If it's null/undefined or not an object, just return it directly:\n if (node === null || typeof node !== 'object') {\n return node;\n }\n\n // If it's a framework-specific virtual node or already a transformed Proxy,\n // return it directly to avoid re-transforming its internal properties.\n if (\n (node as any).$$typeof !== undefined ||\n (node as any).__v_isVNode !== undefined ||\n (node as any)._isVNode !== undefined ||\n (node as any).isJSX !== undefined ||\n typeof node === 'function' // Proxies for html/markdown are functions\n ) {\n return node;\n }\n\n // If it's an array, transform each element:\n if (Array.isArray(node)) {\n return node.map((child, index) => {\n const childProps = {\n ...props,\n children: child,\n keyPath: [\n ...props.keyPath,\n { type: NodeType.Array, key: index } as KeyPath,\n ],\n };\n return deepTransformNode(child, childProps);\n });\n }\n\n // If no plugin transforms it, we keep traversing its properties.\n const result: Record<string, any> = {};\n for (const key in node) {\n const childProps = {\n ...props,\n children: node[key],\n keyPath: [...props.keyPath, { type: NodeType.Object, key } as KeyPath],\n };\n result[key] = deepTransformNode(node[key], childProps);\n }\n\n return result;\n};\n"],"mappings":"oJAQA,MAAa,GAAqB,EAAW,IAA0B,CAErE,IAAK,IAAM,KAAU,EAAM,SAAW,EAAE,CACtC,GAAI,EAAO,UAAU,EAAK,CAExB,OAAO,EAAO,UAAU,EAAM,GAAQ,EAAW,IAC/C,EAAkB,EAAM,EAAM,CAC/B,CAWL,GANqB,OAAO,GAAS,WAAjC,GAOD,EAAa,WAAa,IAAA,IAC1B,EAAa,cAAgB,IAAA,IAC7B,EAAa,WAAa,IAAA,IAC1B,EAAa,QAAU,IAAA,IACxB,OAAO,GAAS,WAEhB,OAAO,EAIT,GAAI,MAAM,QAAQ,EAAK,CACrB,OAAO,EAAK,KAAK,EAAO,IASf,EAAkB,EARN,CACjB,GAAG,EACH,SAAU,EACV,QAAS,CACP,GAAG,EAAM,QACT,CAAE,KAAMA,EAAAA,SAAS,MAAO,IAAK,EAAO,CACrC,CACF,CAC0C,CAC3C,CAIJ,IAAM,EAA8B,EAAE,CACtC,IAAK,IAAM,KAAO,EAAM,CACtB,IAAM,EAAa,CACjB,GAAG,EACH,SAAU,EAAK,GACf,QAAS,CAAC,GAAG,EAAM,QAAS,CAAE,KAAMA,EAAAA,SAAS,OAAQ,MAAK,CAAY,CACvE,CACD,EAAO,GAAO,EAAkB,EAAK,GAAM,EAAW,CAGxD,OAAO"}
|
|
@@ -1,35 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_interpreter_getContent_deepTransform = require('./deepTransform.cjs');
|
|
4
|
-
const require_interpreter_getContent_plugins = require('./plugins.cjs');
|
|
5
|
-
let _intlayer_config_built = require("@intlayer/config/built");
|
|
6
|
-
_intlayer_config_built = require_runtime.__toESM(_intlayer_config_built);
|
|
7
|
-
|
|
8
|
-
//#region src/interpreter/getContent/getContent.ts
|
|
9
|
-
/**
|
|
10
|
-
* Transforms a node in a single pass, applying each plugin as needed.
|
|
11
|
-
*
|
|
12
|
-
* @param node The node to transform.
|
|
13
|
-
* @param locale The locale to use if your transformers need it (e.g. for translations).
|
|
14
|
-
*/
|
|
15
|
-
const getContent = (node, nodeProps, locale, fallback) => {
|
|
16
|
-
const defaultLocale = _intlayer_config_built.default?.internationalization?.defaultLocale;
|
|
17
|
-
const plugins = [
|
|
18
|
-
require_interpreter_getContent_plugins.translationPlugin(locale ?? defaultLocale, fallback ? defaultLocale : void 0),
|
|
19
|
-
require_interpreter_getContent_plugins.enumerationPlugin,
|
|
20
|
-
require_interpreter_getContent_plugins.conditionPlugin,
|
|
21
|
-
require_interpreter_getContent_plugins.nestedPlugin(locale ?? defaultLocale),
|
|
22
|
-
require_interpreter_getContent_plugins.filePlugin,
|
|
23
|
-
require_interpreter_getContent_plugins.insertionPlugin,
|
|
24
|
-
require_interpreter_getContent_plugins.genderPlugin,
|
|
25
|
-
...nodeProps.plugins ?? []
|
|
26
|
-
];
|
|
27
|
-
return require_interpreter_getContent_deepTransform.deepTransformNode(node, {
|
|
28
|
-
...nodeProps,
|
|
29
|
-
plugins
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
exports.getContent = getContent;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`./deepTransform.cjs`),n=require(`./plugins.cjs`);let r=require(`@intlayer/config/built`);r=e.__toESM(r);const i=(e,i,a,o)=>{let s=r.default?.internationalization?.defaultLocale,c=[n.translationPlugin(a??s,o?s:void 0),n.enumerationPlugin,n.conditionPlugin,n.nestedPlugin(a??s),n.filePlugin,n.insertionPlugin,n.genderPlugin,...i.plugins??[]];return t.deepTransformNode(e,{...i,plugins:c})};exports.getContent=i;
|
|
35
2
|
//# sourceMappingURL=getContent.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContent.cjs","names":["configuration","translationPlugin","enumerationPlugin","conditionPlugin","nestedPlugin","filePlugin","insertionPlugin","genderPlugin","deepTransformNode"],"sources":["../../../../src/interpreter/getContent/getContent.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type {\n ContentNode,\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types';\nimport { deepTransformNode } from './deepTransform';\nimport {\n conditionPlugin,\n type DeepTransformContent,\n enumerationPlugin,\n filePlugin,\n genderPlugin,\n type IInterpreterPluginState,\n insertionPlugin,\n type NodeProps,\n nestedPlugin,\n type Plugins,\n translationPlugin,\n} from './plugins';\n\n/**\n * Transforms a node in a single pass, applying each plugin as needed.\n *\n * @param node The node to transform.\n * @param locale The locale to use if your transformers need it (e.g. for translations).\n */\nexport const getContent = <\n T extends ContentNode,\n L extends LocalesValues = DeclaredLocales,\n>(\n node: T,\n nodeProps: NodeProps,\n locale?: L,\n fallback?: boolean\n) => {\n const defaultLocale = configuration?.internationalization?.defaultLocale;\n\n const plugins: Plugins[] = [\n translationPlugin(\n locale ?? defaultLocale,\n fallback ? defaultLocale : undefined\n ),\n enumerationPlugin,\n conditionPlugin,\n nestedPlugin(locale ?? defaultLocale),\n filePlugin,\n insertionPlugin,\n genderPlugin,\n ...(nodeProps.plugins ?? []),\n ];\n\n return deepTransformNode(node, {\n ...nodeProps,\n plugins,\n }) as DeepTransformContent<T, IInterpreterPluginState, L>;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getContent.cjs","names":["configuration","translationPlugin","enumerationPlugin","conditionPlugin","nestedPlugin","filePlugin","insertionPlugin","genderPlugin","deepTransformNode"],"sources":["../../../../src/interpreter/getContent/getContent.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type {\n ContentNode,\n DeclaredLocales,\n LocalesValues,\n} from '@intlayer/types';\nimport { deepTransformNode } from './deepTransform';\nimport {\n conditionPlugin,\n type DeepTransformContent,\n enumerationPlugin,\n filePlugin,\n genderPlugin,\n type IInterpreterPluginState,\n insertionPlugin,\n type NodeProps,\n nestedPlugin,\n type Plugins,\n translationPlugin,\n} from './plugins';\n\n/**\n * Transforms a node in a single pass, applying each plugin as needed.\n *\n * @param node The node to transform.\n * @param locale The locale to use if your transformers need it (e.g. for translations).\n */\nexport const getContent = <\n T extends ContentNode,\n L extends LocalesValues = DeclaredLocales,\n>(\n node: T,\n nodeProps: NodeProps,\n locale?: L,\n fallback?: boolean\n) => {\n const defaultLocale = configuration?.internationalization?.defaultLocale;\n\n const plugins: Plugins[] = [\n translationPlugin(\n locale ?? defaultLocale,\n fallback ? defaultLocale : undefined\n ),\n enumerationPlugin,\n conditionPlugin,\n nestedPlugin(locale ?? defaultLocale),\n filePlugin,\n insertionPlugin,\n genderPlugin,\n ...(nodeProps.plugins ?? []),\n ];\n\n return deepTransformNode(node, {\n ...nodeProps,\n plugins,\n }) as DeepTransformContent<T, IInterpreterPluginState, L>;\n};\n"],"mappings":"8OA2BA,MAAa,GAIX,EACA,EACA,EACA,IACG,CACH,IAAM,EAAgBA,EAAAA,SAAe,sBAAsB,cAErD,EAAqB,CACzBC,EAAAA,kBACE,GAAU,EACV,EAAW,EAAgB,IAAA,GAC5B,CACDC,EAAAA,kBACAC,EAAAA,gBACAC,EAAAA,aAAa,GAAU,EAAc,CACrCC,EAAAA,WACAC,EAAAA,gBACAC,EAAAA,aACA,GAAI,EAAU,SAAW,EAAE,CAC5B,CAED,OAAOC,EAAAA,kBAAkB,EAAM,CAC7B,GAAG,EACH,UACD,CAAC"}
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
const require_interpreter_getContent_deepTransform = require('./deepTransform.cjs');
|
|
3
|
-
const require_interpreter_getContent_plugins = require('./plugins.cjs');
|
|
4
|
-
const require_interpreter_getContent_getContent = require('./getContent.cjs');
|
|
5
|
-
|
|
6
|
-
exports.conditionPlugin = require_interpreter_getContent_plugins.conditionPlugin;
|
|
7
|
-
exports.deepTransformNode = require_interpreter_getContent_deepTransform.deepTransformNode;
|
|
8
|
-
exports.enumerationPlugin = require_interpreter_getContent_plugins.enumerationPlugin;
|
|
9
|
-
exports.filePlugin = require_interpreter_getContent_plugins.filePlugin;
|
|
10
|
-
exports.genderPlugin = require_interpreter_getContent_plugins.genderPlugin;
|
|
11
|
-
exports.getContent = require_interpreter_getContent_getContent.getContent;
|
|
12
|
-
exports.insertionPlugin = require_interpreter_getContent_plugins.insertionPlugin;
|
|
13
|
-
exports.nestedPlugin = require_interpreter_getContent_plugins.nestedPlugin;
|
|
14
|
-
exports.translationPlugin = require_interpreter_getContent_plugins.translationPlugin;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./deepTransform.cjs`),t=require(`./plugins.cjs`),n=require(`./getContent.cjs`);exports.conditionPlugin=t.conditionPlugin,exports.deepTransformNode=e.deepTransformNode,exports.enumerationPlugin=t.enumerationPlugin,exports.filePlugin=t.filePlugin,exports.genderPlugin=t.genderPlugin,exports.getContent=n.getContent,exports.insertionPlugin=t.insertionPlugin,exports.nestedPlugin=t.nestedPlugin,exports.translationPlugin=t.translationPlugin;
|