@intlayer/core 9.4.3 → 9.5.0
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/README.md +0 -2
- package/dist/cjs/dictionaryManipulator/qualifiedDictionary.cjs.map +1 -1
- package/dist/cjs/formatters/list.cjs.map +1 -1
- package/dist/cjs/index.cjs +5 -8
- package/dist/cjs/interpreter/getPlural.cjs.map +1 -1
- package/dist/cjs/markdown/compiler.cjs +437 -209
- package/dist/cjs/markdown/compiler.cjs.map +1 -1
- package/dist/cjs/markdown/constants.cjs +32 -50
- package/dist/cjs/markdown/constants.cjs.map +1 -1
- package/dist/cjs/markdown/elementScanner.cjs +191 -0
- package/dist/cjs/markdown/elementScanner.cjs.map +1 -0
- package/dist/cjs/markdown/index.cjs +5 -8
- package/dist/cjs/markdown/parser.cjs +90 -48
- package/dist/cjs/markdown/parser.cjs.map +1 -1
- package/dist/cjs/markdown/renderer.cjs +14 -11
- package/dist/cjs/markdown/renderer.cjs.map +1 -1
- package/dist/cjs/markdown/utils.cjs +123 -34
- package/dist/cjs/markdown/utils.cjs.map +1 -1
- package/dist/esm/dictionaryManipulator/qualifiedDictionary.mjs.map +1 -1
- package/dist/esm/formatters/list.mjs.map +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/interpreter/getPlural.mjs.map +1 -1
- package/dist/esm/markdown/compiler.mjs +438 -211
- package/dist/esm/markdown/compiler.mjs.map +1 -1
- package/dist/esm/markdown/constants.mjs +29 -43
- package/dist/esm/markdown/constants.mjs.map +1 -1
- package/dist/esm/markdown/elementScanner.mjs +183 -0
- package/dist/esm/markdown/elementScanner.mjs.map +1 -0
- package/dist/esm/markdown/index.mjs +3 -3
- package/dist/esm/markdown/parser.mjs +90 -48
- package/dist/esm/markdown/parser.mjs.map +1 -1
- package/dist/esm/markdown/renderer.mjs +14 -11
- package/dist/esm/markdown/renderer.mjs.map +1 -1
- package/dist/esm/markdown/utils.mjs +124 -35
- package/dist/esm/markdown/utils.mjs.map +1 -1
- package/dist/types/deepTransformPlugins/getEditedContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getEditedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +3 -4
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +3 -4
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +3 -4
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts +1 -2
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +1 -2
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +1 -2
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +1 -2
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNestedDictionaryReferences.d.ts +4 -5
- package/dist/types/dictionaryManipulator/getNestedDictionaryReferences.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeType.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +1 -2
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/mergeQualifiedDictionaries.d.ts +1 -2
- package/dist/types/dictionaryManipulator/mergeQualifiedDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +2 -3
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +1 -2
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +4 -5
- package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts +4 -4
- package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts +14 -15
- package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDictionaryDeclaration.d.ts +5 -6
- package/dist/types/dictionaryManipulator/qualifiedDictionaryDeclaration.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +7 -7
- package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +1 -2
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +1 -2
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +1 -2
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +1 -1
- package/dist/types/formatters/compact.d.ts +1 -2
- package/dist/types/formatters/compact.d.ts.map +1 -1
- package/dist/types/formatters/currency.d.ts +1 -2
- package/dist/types/formatters/currency.d.ts.map +1 -1
- package/dist/types/formatters/date.d.ts +3 -4
- package/dist/types/formatters/date.d.ts.map +1 -1
- package/dist/types/formatters/index.d.ts +2 -2
- package/dist/types/formatters/list.d.ts +2 -3
- package/dist/types/formatters/list.d.ts.map +1 -1
- package/dist/types/formatters/number.d.ts +1 -2
- package/dist/types/formatters/number.d.ts.map +1 -1
- package/dist/types/formatters/percentage.d.ts +1 -2
- package/dist/types/formatters/percentage.d.ts.map +1 -1
- package/dist/types/formatters/relativeTime.d.ts +1 -2
- package/dist/types/formatters/relativeTime.d.ts.map +1 -1
- package/dist/types/formatters/units.d.ts +1 -2
- package/dist/types/formatters/units.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/interpreter/dictionaryTransformCache.d.ts +4 -5
- package/dist/types/interpreter/dictionaryTransformCache.d.ts.map +1 -1
- package/dist/types/interpreter/getCondition.d.ts +1 -2
- package/dist/types/interpreter/getCondition.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/deepTransform.d.ts +1 -2
- package/dist/types/interpreter/getContent/deepTransform.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/getContent.d.ts +2 -3
- package/dist/types/interpreter/getContent/getContent.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/plugins.d.ts +28 -29
- package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionary.d.ts +1 -2
- package/dist/types/interpreter/getDictionary.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionaryAsync.d.ts +1 -2
- package/dist/types/interpreter/getDictionaryAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getEnumeration.d.ts +2 -3
- package/dist/types/interpreter/getEnumeration.d.ts.map +1 -1
- package/dist/types/interpreter/getGender.d.ts +1 -2
- package/dist/types/interpreter/getGender.d.ts.map +1 -1
- package/dist/types/interpreter/getHTML.d.ts +1 -2
- package/dist/types/interpreter/getHTML.d.ts.map +1 -1
- package/dist/types/interpreter/getInsertion.d.ts +1 -2
- package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayer.d.ts +1 -2
- package/dist/types/interpreter/getIntlayer.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayerAsync.d.ts +1 -2
- package/dist/types/interpreter/getIntlayerAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.d.ts +2 -3
- package/dist/types/interpreter/getNesting.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.optimized.d.ts +1 -2
- package/dist/types/interpreter/getNesting.optimized.d.ts.map +1 -1
- package/dist/types/interpreter/getPlural.d.ts +3 -4
- package/dist/types/interpreter/getPlural.d.ts.map +1 -1
- package/dist/types/interpreter/getSelect.d.ts +1 -2
- package/dist/types/interpreter/getSelect.d.ts.map +1 -1
- package/dist/types/interpreter/getTranslation.d.ts +1 -2
- package/dist/types/interpreter/getTranslation.d.ts.map +1 -1
- package/dist/types/interpreter/interpolableNode.d.ts +5 -6
- package/dist/types/interpreter/interpolableNode.d.ts.map +1 -1
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts +1 -2
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts.map +1 -1
- package/dist/types/localization/comparePaths.d.ts +2 -3
- package/dist/types/localization/comparePaths.d.ts.map +1 -1
- package/dist/types/localization/domainUtils.d.ts +5 -6
- package/dist/types/localization/domainUtils.d.ts.map +1 -1
- package/dist/types/localization/generateSitemap.d.ts +4 -5
- package/dist/types/localization/generateSitemap.d.ts.map +1 -1
- package/dist/types/localization/getBrowserLocale.d.ts +2 -3
- package/dist/types/localization/getBrowserLocale.d.ts.map +1 -1
- package/dist/types/localization/getCanonicalPath.d.ts +1 -2
- package/dist/types/localization/getCanonicalPath.d.ts.map +1 -1
- package/dist/types/localization/getHTMLTextDir.d.ts +1 -2
- package/dist/types/localization/getHTMLTextDir.d.ts.map +1 -1
- package/dist/types/localization/getLocale.d.ts +2 -3
- package/dist/types/localization/getLocale.d.ts.map +1 -1
- package/dist/types/localization/getLocaleFromPath.d.ts +1 -2
- package/dist/types/localization/getLocaleFromPath.d.ts.map +1 -1
- package/dist/types/localization/getLocaleLang.d.ts +1 -2
- package/dist/types/localization/getLocaleLang.d.ts.map +1 -1
- package/dist/types/localization/getLocaleName.d.ts +1 -2
- package/dist/types/localization/getLocaleName.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedPath.d.ts +1 -2
- package/dist/types/localization/getLocalizedPath.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedUrl.d.ts +1 -2
- package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
- package/dist/types/localization/getMultilingualUrls.d.ts +1 -2
- package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -1
- package/dist/types/localization/getPathWithoutLocale.d.ts +1 -2
- package/dist/types/localization/getPathWithoutLocale.d.ts.map +1 -1
- package/dist/types/localization/getPrefix.d.ts +7 -8
- package/dist/types/localization/getPrefix.d.ts.map +1 -1
- package/dist/types/localization/localeDetector.d.ts +2 -3
- package/dist/types/localization/localeDetector.d.ts.map +1 -1
- package/dist/types/localization/localeMapper.d.ts +4 -5
- package/dist/types/localization/localeMapper.d.ts.map +1 -1
- package/dist/types/localization/localeResolver.d.ts +1 -2
- package/dist/types/localization/localeResolver.d.ts.map +1 -1
- package/dist/types/localization/proxyMode.d.ts +4 -5
- package/dist/types/localization/proxyMode.d.ts.map +1 -1
- package/dist/types/localization/resolveBrowserLocale.d.ts +2 -3
- package/dist/types/localization/resolveBrowserLocale.d.ts.map +1 -1
- package/dist/types/localization/rewriteMatch.d.ts +3 -4
- package/dist/types/localization/rewriteMatch.d.ts.map +1 -1
- package/dist/types/localization/rewriteUtils.d.ts +5 -6
- package/dist/types/localization/rewriteUtils.d.ts.map +1 -1
- package/dist/types/localization/validatePrefix.d.ts +2 -3
- package/dist/types/localization/validatePrefix.d.ts.map +1 -1
- package/dist/types/markdown/compiler.d.ts +50 -8
- package/dist/types/markdown/compiler.d.ts.map +1 -1
- package/dist/types/markdown/constants.d.ts +101 -93
- package/dist/types/markdown/constants.d.ts.map +1 -1
- package/dist/types/markdown/elementScanner.d.ts +14 -0
- package/dist/types/markdown/elementScanner.d.ts.map +1 -0
- package/dist/types/markdown/index.d.ts +4 -4
- package/dist/types/markdown/parser.d.ts +1 -7
- package/dist/types/markdown/parser.d.ts.map +1 -1
- package/dist/types/markdown/renderer.d.ts +2 -7
- package/dist/types/markdown/renderer.d.ts.map +1 -1
- package/dist/types/markdown/types.d.ts +62 -50
- package/dist/types/markdown/types.d.ts.map +1 -1
- package/dist/types/markdown/utils.d.ts +35 -31
- package/dist/types/markdown/utils.d.ts.map +1 -1
- package/dist/types/messageFormat/ICU.d.ts +3 -4
- package/dist/types/messageFormat/ICU.d.ts.map +1 -1
- package/dist/types/messageFormat/i18next.d.ts +2 -3
- package/dist/types/messageFormat/i18next.d.ts.map +1 -1
- package/dist/types/messageFormat/navigatePath.d.ts +1 -2
- package/dist/types/messageFormat/navigatePath.d.ts.map +1 -1
- package/dist/types/messageFormat/po.d.ts +3 -4
- package/dist/types/messageFormat/po.d.ts.map +1 -1
- package/dist/types/messageFormat/resolveMessage.d.ts +7 -8
- package/dist/types/messageFormat/resolveMessage.d.ts.map +1 -1
- package/dist/types/messageFormat/vue-i18n.d.ts +2 -3
- package/dist/types/messageFormat/vue-i18n.d.ts.map +1 -1
- package/dist/types/transpiler/condition/condition.d.ts +3 -3
- package/dist/types/transpiler/condition/condition.d.ts.map +1 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts +4 -4
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
- package/dist/types/transpiler/file/file.d.ts +4 -5
- package/dist/types/transpiler/file/file.d.ts.map +1 -1
- package/dist/types/transpiler/file/fileBrowser.d.ts +1 -2
- package/dist/types/transpiler/file/fileBrowser.d.ts.map +1 -1
- package/dist/types/transpiler/gender/gender.d.ts +4 -4
- package/dist/types/transpiler/gender/gender.d.ts.map +1 -1
- package/dist/types/transpiler/html/getHTMLCustomComponents.d.ts +1 -2
- package/dist/types/transpiler/html/getHTMLCustomComponents.d.ts.map +1 -1
- package/dist/types/transpiler/html/html.d.ts +3 -4
- package/dist/types/transpiler/html/html.d.ts.map +1 -1
- package/dist/types/transpiler/html/htmlTags.d.ts +2 -3
- package/dist/types/transpiler/html/htmlTags.d.ts.map +1 -1
- package/dist/types/transpiler/html/validateHTML.d.ts +4 -5
- package/dist/types/transpiler/html/validateHTML.d.ts.map +1 -1
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts +1 -2
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +1 -1
- package/dist/types/transpiler/insertion/insertion.d.ts +3 -3
- package/dist/types/transpiler/insertion/insertion.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +1 -2
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/markdown.d.ts +3 -3
- package/dist/types/transpiler/markdown/markdown.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts +3 -3
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts.map +1 -1
- package/dist/types/transpiler/nesting/nesting.d.ts +5 -5
- package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -1
- package/dist/types/transpiler/plural/plural.d.ts +4 -4
- package/dist/types/transpiler/plural/plural.d.ts.map +1 -1
- package/dist/types/transpiler/select/select.d.ts +3 -3
- package/dist/types/transpiler/select/select.d.ts.map +1 -1
- package/dist/types/transpiler/translation/translation.d.ts +2 -2
- package/dist/types/transpiler/translation/translation.d.ts.map +1 -1
- package/dist/types/utils/checkIsURLAbsolute.d.ts +1 -2
- package/dist/types/utils/checkIsURLAbsolute.d.ts.map +1 -1
- package/dist/types/utils/cookieExpiry.d.ts +2 -3
- package/dist/types/utils/cookieExpiry.d.ts.map +1 -1
- package/dist/types/utils/getCookie.d.ts +1 -2
- package/dist/types/utils/getCookie.d.ts.map +1 -1
- package/dist/types/utils/intl.d.ts +7 -7
- package/dist/types/utils/intl.d.ts.map +1 -1
- package/dist/types/utils/isSameKeyPath.d.ts +1 -2
- package/dist/types/utils/isSameKeyPath.d.ts.map +1 -1
- package/dist/types/utils/isValidReactElement.d.ts +1 -2
- package/dist/types/utils/isValidReactElement.d.ts.map +1 -1
- package/dist/types/utils/localeStorage.d.ts +14 -15
- package/dist/types/utils/localeStorage.d.ts.map +1 -1
- package/dist/types/utils/parseYaml.d.ts +3 -4
- package/dist/types/utils/parseYaml.d.ts.map +1 -1
- package/dist/types/utils/stringifyYaml.d.ts +1 -2
- package/dist/types/utils/stringifyYaml.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/formatters/compact.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/currency.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/date.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/index.d.ts +0 -9
- package/dist/types/@intlayer/core/dist/types/formatters/list.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/number.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/percentage.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/relativeTime.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/units.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/interpreter/dictionaryTransformCache.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/interpreter/getCondition.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +0 -3
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +0 -3
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayerAsync.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/interpreter/getNesting.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -3
- package/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -18
- package/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/localization/comparePaths.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/domainUtils.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/generateSitemap.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getCanonicalPath.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getLocale.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleName.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getPrefix.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/index.d.ts +0 -22
- package/dist/types/@intlayer/core/dist/types/localization/localeDetector.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/localeMapper.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/localeResolver.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/rewriteMatch.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/validatePrefix.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/markdown/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/condition/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/file/file.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/file/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/gender/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/html/html.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/html/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -22
- package/dist/types/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/transpiler/plural/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/select/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/select/select.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/translation/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/utils/index.d.ts +0 -3
- package/dist/types/@intlayer/core/dist/types/utils/intl.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/utils/localeStorage.d.ts +0 -2
- package/dist/types/intlayer/dist/types/index.d.ts +0 -14
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { JsonValue } from "./ICU.js";
|
|
2
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
3
|
//#region src/messageFormat/vue-i18n.d.ts
|
|
4
|
-
declare const intlayerToVueI18nFormatter: (message: Dictionary['content']) => JsonValue;
|
|
5
|
-
declare const vueI18nToIntlayerFormatter: (message: JsonValue) => Dictionary['content'];
|
|
4
|
+
export declare const intlayerToVueI18nFormatter: (message: Dictionary['content']) => JsonValue;
|
|
5
|
+
export declare const vueI18nToIntlayerFormatter: (message: JsonValue) => Dictionary['content'];
|
|
6
6
|
//#endregion
|
|
7
|
-
export { intlayerToVueI18nFormatter, vueI18nToIntlayerFormatter };
|
|
8
7
|
//# sourceMappingURL=vue-i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue-i18n.d.ts","names":[],"sources":["../../../src/messageFormat/vue-i18n.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"vue-i18n.d.ts","names":[],"sources":["../../../src/messageFormat/vue-i18n.ts"],"mappings":";;;qBAoVa,6BAA0B,SAC5B,0BACR;qBAQU,6BAA0B,SAC5B,cACR"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CONDITION, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
2
|
//#region src/transpiler/condition/condition.d.ts
|
|
3
|
-
type ConditionContentStates<Content> = Record<`${boolean}`, Content> & {
|
|
3
|
+
export type ConditionContentStates<Content> = Record<`${boolean}`, Content> & {
|
|
4
4
|
fallback?: Content;
|
|
5
5
|
};
|
|
6
|
-
type ConditionContent<Content = unknown> = TypedNodeModel<typeof CONDITION, ConditionContentStates<Content>>;
|
|
6
|
+
export type ConditionContent<Content = unknown> = TypedNodeModel<typeof CONDITION, ConditionContentStates<Content>>;
|
|
7
7
|
/**
|
|
8
8
|
* Function intended to be used to build intlayer dictionaries.
|
|
9
9
|
*
|
|
@@ -23,5 +23,5 @@ type ConditionContent<Content = unknown> = TypedNodeModel<typeof CONDITION, Cond
|
|
|
23
23
|
*/
|
|
24
24
|
declare const condition: <Content>(content?: ConditionContentStates<Content>) => ConditionContent<Content>;
|
|
25
25
|
//#endregion
|
|
26
|
-
export {
|
|
26
|
+
export { condition as cond };
|
|
27
27
|
//# sourceMappingURL=condition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.d.ts","names":[],"sources":["../../../../src/transpiler/condition/condition.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"condition.d.ts","names":[],"sources":["../../../../src/transpiler/condition/condition.ts"],"mappings":";;YAGY,uBAAuB,WAAW,qBAAqB;EACjE,WAAW;;YAGD,iBAAiB,qBAAqB,sBACzC,WACP,uBAAuB;;;;;;;;;;;;;;;;;;cAoBnB,YAAa,SAAO,UACd,uBAAuB,aAChC,iBAAiB"}
|
|
@@ -9,11 +9,11 @@ type Superior = `>${Numbers}`;
|
|
|
9
9
|
type SuperiorOrEqual = `>=${Numbers}`;
|
|
10
10
|
type Inferior = `<${Numbers}`;
|
|
11
11
|
type InferiorOrEqual = `<=${Numbers}`;
|
|
12
|
-
type EnterFormat = Equal | EqualString | Superior | SuperiorOrEqual | Inferior | InferiorOrEqual;
|
|
13
|
-
type EnumerationContentState<Content> = Partial<Record<EnterFormat, Content>> & {
|
|
12
|
+
export type EnterFormat = Equal | EqualString | Superior | SuperiorOrEqual | Inferior | InferiorOrEqual;
|
|
13
|
+
export type EnumerationContentState<Content> = Partial<Record<EnterFormat, Content>> & {
|
|
14
14
|
fallback?: Content;
|
|
15
15
|
};
|
|
16
|
-
type EnumerationContent<Content = unknown> = TypedNodeModel<typeof ENUMERATION, EnumerationContentState<Content>>;
|
|
16
|
+
export type EnumerationContent<Content = unknown> = TypedNodeModel<typeof ENUMERATION, EnumerationContentState<Content>>;
|
|
17
17
|
/**
|
|
18
18
|
* Function intended to be used to build intlayer dictionaries.
|
|
19
19
|
*
|
|
@@ -35,5 +35,5 @@ type EnumerationContent<Content = unknown> = TypedNodeModel<typeof ENUMERATION,
|
|
|
35
35
|
*/
|
|
36
36
|
declare const enumeration: <Content = unknown>(content?: EnumerationContentState<Content>) => EnumerationContent<Content>;
|
|
37
37
|
//#endregion
|
|
38
|
-
export {
|
|
38
|
+
export { enumeration as enu };
|
|
39
39
|
//# sourceMappingURL=enumeration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enumeration.d.ts","names":[],"sources":["../../../../src/transpiler/enumeration/enumeration.ts"],"mappings":";;KAGK;KACA;KACA,UAAU,WAAW;KAErB,QAAQ;KACR,kBAAkB;KAClB,eAAe;KACf,uBAAuB;KACvB,eAAe;KACf,uBAAuB;
|
|
1
|
+
{"version":3,"file":"enumeration.d.ts","names":[],"sources":["../../../../src/transpiler/enumeration/enumeration.ts"],"mappings":";;KAGK;KACA;KACA,UAAU,WAAW;KAErB,QAAQ;KACR,kBAAkB;KAClB,eAAe;KACf,uBAAuB;KACvB,eAAe;KACf,uBAAuB;YAEhB,cACR,QACA,cACA,WACA,kBACA,WACA;YAEQ,wBAAwB,WAAW,QAC7C,OAAO,aAAa;EAEpB,WAAW;;YAGD,mBAAmB,qBAAqB,sBAC3C,aACP,wBAAwB;;;;;;;;;;;;;;;;;;;;cAsBpB,cAAe,mBAAiB,UAC1B,wBAAwB,aACjC,mBAAmB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FILE, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
2
|
//#region src/transpiler/file/file.d.ts
|
|
3
|
-
type FileContentConstructor<T extends Record<string, any> = {}> = TypedNodeModel<typeof FILE, string, T>;
|
|
4
|
-
type FileContent = FileContentConstructor<{
|
|
3
|
+
export type FileContentConstructor<T extends Record<string, any> = {}> = TypedNodeModel<typeof FILE, string, T>;
|
|
4
|
+
export type FileContent = FileContentConstructor<{
|
|
5
5
|
content: string;
|
|
6
6
|
fixedPath?: string;
|
|
7
7
|
}>;
|
|
8
|
-
declare const fileContent: (path: string, callerDir: string, baseDir: string) => FileContent;
|
|
8
|
+
export declare const fileContent: (path: string, callerDir: string, baseDir: string) => FileContent;
|
|
9
9
|
/**
|
|
10
10
|
* Function intended to be used to build intlayer dictionaries.
|
|
11
11
|
*
|
|
@@ -21,7 +21,6 @@ declare const fileContent: (path: string, callerDir: string, baseDir: string) =>
|
|
|
21
21
|
* file('path/to/file.md') // relative path
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
declare const file: (path: string) => FileContent;
|
|
24
|
+
export declare const file: (path: string) => FileContent;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { FileContent, FileContentConstructor, file, fileContent };
|
|
27
26
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","names":[],"sources":["../../../../src/transpiler/file/file.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"file.d.ts","names":[],"sources":["../../../../src/transpiler/file/file.ts"],"mappings":";;YAMY,uBAAuB,UAAU,4BAC3C,sBAAsB,cAAc;YAE1B,cAAc;EACxB;EACA;;qBAGW,cAAW,cACV,mBACK,oBAEhB;;;;;;;;;;;;;;;;qBAyDU,OAAI,iBAAmB"}
|
|
@@ -15,7 +15,6 @@ import { FileContent } from "./file.js";
|
|
|
15
15
|
* file('path/to/file.md') // relative path
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
declare const file: (_path: string) => FileContent;
|
|
18
|
+
export declare const file: (_path: string) => FileContent;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { file };
|
|
21
20
|
//# sourceMappingURL=fileBrowser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileBrowser.d.ts","names":[],"sources":["../../../../src/transpiler/file/fileBrowser.ts"],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"fileBrowser.d.ts","names":[],"sources":["../../../../src/transpiler/file/fileBrowser.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAiBa,OAAI,kBAAoB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GENDER, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
2
|
//#region src/transpiler/gender/gender.d.ts
|
|
3
|
-
type Gender = 'male' | 'female' | 'fallback';
|
|
4
|
-
type GenderContentStates<Content> = Record<`${Gender}`, Content> & {
|
|
3
|
+
export type Gender = 'male' | 'female' | 'fallback';
|
|
4
|
+
export type GenderContentStates<Content> = Record<`${Gender}`, Content> & {
|
|
5
5
|
fallback?: Content;
|
|
6
6
|
};
|
|
7
|
-
type GenderContent<Content = unknown> = TypedNodeModel<typeof GENDER, GenderContentStates<Content>>;
|
|
7
|
+
export type GenderContent<Content = unknown> = TypedNodeModel<typeof GENDER, GenderContentStates<Content>>;
|
|
8
8
|
/**
|
|
9
9
|
* Function intended to be used to build intlayer dictionaries.
|
|
10
10
|
*
|
|
@@ -24,5 +24,5 @@ type GenderContent<Content = unknown> = TypedNodeModel<typeof GENDER, GenderCont
|
|
|
24
24
|
*/
|
|
25
25
|
declare const gender: <Content>(content?: GenderContentStates<Content>) => GenderContent<Content>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export {
|
|
27
|
+
export { gender };
|
|
28
28
|
//# sourceMappingURL=gender.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gender.d.ts","names":[],"sources":["../../../../src/transpiler/gender/gender.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"gender.d.ts","names":[],"sources":["../../../../src/transpiler/gender/gender.ts"],"mappings":";;YAGY;YAEA,oBAAoB,WAAW,UAAU,UAAU;EAC7D,WAAW;;YAGD,cAAc,qBAAqB,sBACtC,QACP,oBAAoB;;;;;;;;;;;;;;;;;;cAoBhB,SAAU,SAAO,UACX,oBAAoB,aAC7B,cAAc"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* - Standard HTML tags are set to `true`.
|
|
5
5
|
* - Custom components are parsed to extract their attributes/props.
|
|
6
6
|
*/
|
|
7
|
-
declare const getHTMLCustomComponents: (content: string) => Record<string, Record<string, string> | true>;
|
|
7
|
+
export declare const getHTMLCustomComponents: (content: string) => Record<string, Record<string, string> | true>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { getHTMLCustomComponents };
|
|
10
9
|
//# sourceMappingURL=getHTMLCustomComponents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHTMLCustomComponents.d.ts","names":[],"sources":["../../../../src/transpiler/html/getHTMLCustomComponents.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"getHTMLCustomComponents.d.ts","names":[],"sources":["../../../../src/transpiler/html/getHTMLCustomComponents.ts"],"mappings":";;;;;;qBA2Ba,0BAAuB,oBAEjC,eAAe"}
|
|
@@ -2,8 +2,8 @@ import { HTML, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
|
2
2
|
//#region src/transpiler/html/html.d.ts
|
|
3
3
|
type PropsType = 'number' | 'string' | 'node';
|
|
4
4
|
type ComponentName = string;
|
|
5
|
-
type HTMLContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<typeof HTML, Content, T>;
|
|
6
|
-
type HTMLContent<Content = unknown, Components extends Record<ComponentName, PropsType> = Record<ComponentName, PropsType>> = HTMLContentConstructor<Content, {
|
|
5
|
+
export type HTMLContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<typeof HTML, Content, T>;
|
|
6
|
+
export type HTMLContent<Content = unknown, Components extends Record<ComponentName, PropsType> = Record<ComponentName, PropsType>> = HTMLContentConstructor<Content, {
|
|
7
7
|
tags: string[] | Components;
|
|
8
8
|
}>;
|
|
9
9
|
/**
|
|
@@ -18,7 +18,6 @@ type HTMLContent<Content = unknown, Components extends Record<ComponentName, Pro
|
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
declare const html: <Components extends Record<string, any> = Record<string, any>, Content = unknown>(content: Content, components?: Components) => HTMLContent<Content, Components>;
|
|
21
|
+
export declare const html: <Components extends Record<string, any> = Record<string, any>, Content = unknown>(content: Content, components?: Components) => HTMLContent<Content, Components>;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { HTMLContent, HTMLContentConstructor, html };
|
|
24
23
|
//# sourceMappingURL=html.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","names":[],"sources":["../../../../src/transpiler/html/html.ts"],"mappings":";;KAKK;KAEA;
|
|
1
|
+
{"version":3,"file":"html.d.ts","names":[],"sources":["../../../../src/transpiler/html/html.ts"],"mappings":";;KAKK;KAEA;YAEO,uBACV,mBACA,UAAU,4BACR,sBAAsB,MAAM,SAAS;YAE7B,YACV,mBACA,mBAAmB,OAAO,eAAe,aAAa,OACpD,eACA,cAEA,uBACF;EAEE,iBAAiB;;;;;;;;;;;;;;qBAgBR,OACX,mBAAmB,sBAAsB,qBACzC,mBAAiB,SAER,SAAO,aACH,eACZ,YAAY,SAAS"}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Used by framework-specific plugins (react-intlayer, vue-intlayer, etc.)
|
|
8
8
|
* to create default HTML tag components.
|
|
9
9
|
*/
|
|
10
|
-
declare const HTML_TAGS: readonly ['html', 'head', 'body', 'main', 'header', 'footer', 'nav', 'aside', 'article', 'section', 'div', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'a', 'strong', 'b', 'em', 'i', 'u', 's', 'del', 'ins', 'mark', 'small', 'sub', 'sup', 'code', 'pre', 'blockquote', 'q', 'cite', 'abbr', 'address', 'time', 'kbd', 'samp', 'var', 'ul', 'ol', 'li', 'dl', 'dt', 'dd', 'table', 'thead', 'tbody', 'tfoot', 'tr', 'th', 'td', 'caption', 'colgroup', 'col', 'form', 'input', 'textarea', 'button', 'select', 'option', 'optgroup', 'label', 'fieldset', 'legend', 'datalist', 'output', 'progress', 'meter', 'img', 'video', 'audio', 'source', 'track', 'picture', 'figure', 'figcaption', 'iframe', 'embed', 'object', 'canvas', 'svg', 'details', 'summary', 'dialog', 'br', 'hr', 'wbr', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'data', 'template', 'slot'];
|
|
11
|
-
type HTMLTagsType = {
|
|
10
|
+
export declare const HTML_TAGS: readonly ['html', 'head', 'body', 'main', 'header', 'footer', 'nav', 'aside', 'article', 'section', 'div', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'a', 'strong', 'b', 'em', 'i', 'u', 's', 'del', 'ins', 'mark', 'small', 'sub', 'sup', 'code', 'pre', 'blockquote', 'q', 'cite', 'abbr', 'address', 'time', 'kbd', 'samp', 'var', 'ul', 'ol', 'li', 'dl', 'dt', 'dd', 'table', 'thead', 'tbody', 'tfoot', 'tr', 'th', 'td', 'caption', 'colgroup', 'col', 'form', 'input', 'textarea', 'button', 'select', 'option', 'optgroup', 'label', 'fieldset', 'legend', 'datalist', 'output', 'progress', 'meter', 'img', 'video', 'audio', 'source', 'track', 'picture', 'figure', 'figcaption', 'iframe', 'embed', 'object', 'canvas', 'svg', 'details', 'summary', 'dialog', 'br', 'hr', 'wbr', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'data', 'template', 'slot'];
|
|
11
|
+
export type HTMLTagsType = {
|
|
12
12
|
html: HTMLHtmlElement;
|
|
13
13
|
head: HTMLHeadElement;
|
|
14
14
|
body: HTMLBodyElement;
|
|
@@ -111,5 +111,4 @@ type HTMLTagsType = {
|
|
|
111
111
|
slot: HTMLSlotElement;
|
|
112
112
|
};
|
|
113
113
|
//#endregion
|
|
114
|
-
export { HTMLTagsType, HTML_TAGS };
|
|
115
114
|
//# sourceMappingURL=htmlTags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"htmlTags.d.ts","names":[],"sources":["../../../../src/transpiler/html/htmlTags.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"htmlTags.d.ts","names":[],"sources":["../../../../src/transpiler/html/htmlTags.ts"],"mappings":";;;;;;;;;qBAQa;YAgHD;EAEV,MAAM;EACN,MAAM;EACN,MAAM;EACN,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,KAAK;EACL,OAAO;EACP,SAAS;EACT,SAAS;EACT,KAAK;EACL,MAAM;EAGN,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EAGJ,GAAG;EACH,GAAG;EACH,QAAQ;EACR,GAAG;EACH,IAAI;EACJ,GAAG;EACH,GAAG;EACH,GAAG;EACH,KAAK;EACL,KAAK;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL,KAAK;EACL,MAAM;EACN,KAAK;EACL,YAAY;EACZ,GAAG;EACH,MAAM;EACN,MAAM;EACN,SAAS;EACT,MAAM;EACN,KAAK;EACL,MAAM;EACN,KAAK;EAGL,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EAGJ,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,SAAS;EACT,UAAU;EACV,KAAK;EAGL,MAAM;EACN,OAAO;EACP,UAAU;EACV,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,UAAU;EACV,OAAO;EACP,UAAU;EACV,QAAQ;EACR,UAAU;EACV,QAAQ;EACR,UAAU;EACV,OAAO;EAGP,KAAK;EACL,OAAO;EACP,OAAO;EACP,QAAQ;EACR,OAAO;EACP,SAAS;EACT,QAAQ;EACR,YAAY;EACZ,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,KAAK;EAGL,SAAS;EACT,SAAS;EACT,QAAQ;EAGR,IAAI;EACJ,IAAI;EACJ,KAAK;EACL,MAAM;EACN,IAAI;EACJ,IAAI;EACJ,KAAK;EACL,KAAK;EACL,MAAM;EACN,UAAU;EACV,MAAM"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/transpiler/html/validateHTML.d.ts
|
|
2
|
-
declare const VOID_HTML_ELEMENTS: Set<string>;
|
|
3
|
-
type HTMLValidationIssue = {
|
|
2
|
+
export declare const VOID_HTML_ELEMENTS: Set<string>;
|
|
3
|
+
export type HTMLValidationIssue = {
|
|
4
4
|
type: 'error' | 'warning';
|
|
5
5
|
message: string;
|
|
6
6
|
};
|
|
7
|
-
type HTMLValidationResult = {
|
|
7
|
+
export type HTMLValidationResult = {
|
|
8
8
|
valid: boolean;
|
|
9
9
|
issues: HTMLValidationIssue[];
|
|
10
10
|
};
|
|
@@ -15,7 +15,6 @@ type HTMLValidationResult = {
|
|
|
15
15
|
* False-positive exclusions:
|
|
16
16
|
* - Tags whose attribute string starts with `://` are URL autolinks (e.g. `<https://…>`).
|
|
17
17
|
*/
|
|
18
|
-
declare const validateHTML: (content: string) => HTMLValidationResult;
|
|
18
|
+
export declare const validateHTML: (content: string) => HTMLValidationResult;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { HTMLValidationIssue, HTMLValidationResult, VOID_HTML_ELEMENTS, validateHTML };
|
|
21
20
|
//# sourceMappingURL=validateHTML.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateHTML.d.ts","names":[],"sources":["../../../../src/transpiler/html/validateHTML.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"validateHTML.d.ts","names":[],"sources":["../../../../src/transpiler/html/validateHTML.ts"],"mappings":";qBAAa,oBAAkB;YAgBnB;EACV;EACA;;YAGU;EACV;EACA,QAAQ;;;;;;;;;qBAiBG,eAAY,oBAAsB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/transpiler/insertion/getInsertionValues.d.ts
|
|
2
|
-
declare const getInsertionValues: (content: string) => string[];
|
|
2
|
+
export declare const getInsertionValues: (content: string) => string[];
|
|
3
3
|
//#endregion
|
|
4
|
-
export { getInsertionValues };
|
|
5
4
|
//# sourceMappingURL=getInsertionValues.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInsertionValues.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/getInsertionValues.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"getInsertionValues.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/getInsertionValues.ts"],"mappings":";qBAAa,qBAAkB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { INSERTION, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
2
|
//#region src/transpiler/insertion/insertion.d.ts
|
|
3
|
-
type InsertionContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<typeof INSERTION, Content, T>;
|
|
4
|
-
type InsertionContent<Content = unknown> = InsertionContentConstructor<Content, {
|
|
3
|
+
export type InsertionContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<typeof INSERTION, Content, T>;
|
|
4
|
+
export type InsertionContent<Content = unknown> = InsertionContentConstructor<Content, {
|
|
5
5
|
fields: string[];
|
|
6
6
|
}>;
|
|
7
7
|
/**
|
|
@@ -18,5 +18,5 @@ type InsertionContent<Content = unknown> = InsertionContentConstructor<Content,
|
|
|
18
18
|
*/
|
|
19
19
|
declare const insertion: <Content = unknown>(content: Content) => InsertionContent<Content>;
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { insertion as insert };
|
|
22
22
|
//# sourceMappingURL=insertion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertion.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/insertion.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"insertion.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/insertion.ts"],"mappings":";;YAIY,4BACV,mBACA,UAAU,4BACR,sBAAsB,WAAW,SAAS;YAElC,iBAAiB,qBAAqB,4BAChD;EAEE;;;;;;;;;;;;;;cAgBE,YAAa,mBAAiB,SACzB,YACR,iBAAiB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/transpiler/markdown/getMarkdownMetadata.d.ts
|
|
2
|
-
declare const getMarkdownMetadata: <T extends Record<string, any>>(markdown: string) => T;
|
|
2
|
+
export declare const getMarkdownMetadata: <T extends Record<string, any>>(markdown: string) => T;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { getMarkdownMetadata };
|
|
5
4
|
//# sourceMappingURL=getMarkdownMetadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMarkdownMetadata.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/getMarkdownMetadata.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"getMarkdownMetadata.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/getMarkdownMetadata.ts"],"mappings":";qBAEa,sBAAuB,UAAU,qBAAmB,qBAE9D"}
|
|
@@ -2,8 +2,8 @@ import { MARKDOWN, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
|
2
2
|
//#region src/transpiler/markdown/markdown.d.ts
|
|
3
3
|
type PropsType = 'number' | 'string' | 'node';
|
|
4
4
|
type ComponentName = string;
|
|
5
|
-
type MarkdownContentConstructor<T extends Record<string, any> = {}, Content = unknown> = TypedNodeModel<typeof MARKDOWN, Content, T>;
|
|
6
|
-
type MarkdownContent<Content = unknown, Components extends Record<ComponentName, PropsType> = Record<ComponentName, PropsType>> = MarkdownContentConstructor<{
|
|
5
|
+
export type MarkdownContentConstructor<T extends Record<string, any> = {}, Content = unknown> = TypedNodeModel<typeof MARKDOWN, Content, T>;
|
|
6
|
+
export type MarkdownContent<Content = unknown, Components extends Record<ComponentName, PropsType> = Record<ComponentName, PropsType>> = MarkdownContentConstructor<{
|
|
7
7
|
metadata?: Record<string, any>;
|
|
8
8
|
tags?: string[] | Components;
|
|
9
9
|
}, Content>;
|
|
@@ -21,5 +21,5 @@ type MarkdownContent<Content = unknown, Components extends Record<ComponentName,
|
|
|
21
21
|
*/
|
|
22
22
|
declare const markdown: <Components extends Record<string, any> = Record<string, any>, Content = unknown>(content: Content, components?: Components) => MarkdownContent<Content, Components>;
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
24
|
+
export { markdown as md };
|
|
25
25
|
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/markdown.ts"],"mappings":";;KAOK;KAEA;
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/markdown.ts"],"mappings":";;KAOK;KAEA;YAEO,2BACV,UAAU,0BACV,qBACE,sBAAsB,UAAU,SAAS;YAEjC,gBACV,mBACA,mBAAmB,OAAO,eAAe,aAAa,OACpD,eACA,cAEA;EAEA,WAAW;EACX,kBAAkB;GAEpB;;;;;;;;;;;;;cA4BI,WACJ,mBAAmB,sBAAsB,qBACzC,mBAAiB,SAER,SAAO,aACH,eACZ,gBAAgB,SAAS"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLValidationIssue } from "../html/validateHTML.js";
|
|
2
2
|
//#region src/transpiler/markdown/validateMarkdown.d.ts
|
|
3
|
-
type MarkdownValidationResult = {
|
|
3
|
+
export type MarkdownValidationResult = {
|
|
4
4
|
valid: boolean;
|
|
5
5
|
issues: HTMLValidationIssue[];
|
|
6
6
|
};
|
|
@@ -11,7 +11,7 @@ type MarkdownValidationResult = {
|
|
|
11
11
|
*
|
|
12
12
|
* HTML inside code blocks is excluded from HTML validation.
|
|
13
13
|
*/
|
|
14
|
-
declare const validateMarkdown: (content: string) => MarkdownValidationResult;
|
|
14
|
+
export declare const validateMarkdown: (content: string) => MarkdownValidationResult;
|
|
15
15
|
//#endregion
|
|
16
|
-
export {
|
|
16
|
+
export type { HTMLValidationIssue as MarkdownValidationIssue };
|
|
17
17
|
//# sourceMappingURL=validateMarkdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateMarkdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/validateMarkdown.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"validateMarkdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/validateMarkdown.ts"],"mappings":";;YAIY;EACV;EACA,QAAQ;;;;;;;;;qBA6FG,mBAAgB,oBAAsB"}
|
|
@@ -9,16 +9,16 @@ import { NESTED, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
|
9
9
|
* type X = { a: { b: { c: string }}, d: number };
|
|
10
10
|
* DotPath<X> = "a" | "a.b" | "a.b.c" | "d"
|
|
11
11
|
*/
|
|
12
|
-
type DotPath<T> = T extends object ? { [K in keyof T & (string | number)]: T[K] extends object // Either just K, or K + '.' + deeper path
|
|
12
|
+
export type DotPath<T> = T extends object ? { [K in keyof T & (string | number)]: T[K] extends object // Either just K, or K + '.' + deeper path
|
|
13
13
|
? `${K}` | `${K}.${DotPath<T[K]>}` : `${K}`; }[keyof T & (string | number)] : never;
|
|
14
14
|
type DeepReplace<T, From, To> = T extends From ? To : T extends object ? { [K in keyof T]: DeepReplace<T[K], From, To>; } : T;
|
|
15
15
|
/** Build all valid dot-notation strings for a dictionary entry. */
|
|
16
|
-
type ValidDotPathsFor<K extends DictionaryKeys> = DotPath<DeepReplace<DeepTransformContent<DictionaryRegistryContent<K>>, {
|
|
16
|
+
export type ValidDotPathsFor<K extends DictionaryKeys> = DotPath<DeepReplace<DeepTransformContent<DictionaryRegistryContent<K>>, {
|
|
17
17
|
type: any;
|
|
18
18
|
props: any;
|
|
19
19
|
key: any;
|
|
20
20
|
}, string>>;
|
|
21
|
-
type NestedContentState<K extends DictionaryKeys> = {
|
|
21
|
+
export type NestedContentState<K extends DictionaryKeys> = {
|
|
22
22
|
dictionaryKey: K;
|
|
23
23
|
/**
|
|
24
24
|
* Path must match existing keys in DictionaryRegistryContent<K>.
|
|
@@ -27,7 +27,7 @@ type NestedContentState<K extends DictionaryKeys> = {
|
|
|
27
27
|
*/
|
|
28
28
|
path?: ValidDotPathsFor<K>;
|
|
29
29
|
};
|
|
30
|
-
type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<typeof NESTED, NestedContentState<K>>;
|
|
30
|
+
export type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<typeof NESTED, NestedContentState<K>>;
|
|
31
31
|
/**
|
|
32
32
|
* Function intended to be used to build intlayer dictionaries.
|
|
33
33
|
*
|
|
@@ -45,5 +45,5 @@ type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<typeof NES
|
|
|
45
45
|
*/
|
|
46
46
|
declare const nesting: <K extends DictionaryKeys>(dictionaryKey: K, path?: ValidDotPathsFor<K>) => NestedContent<K>;
|
|
47
47
|
//#endregion
|
|
48
|
-
export {
|
|
48
|
+
export { nesting as nest };
|
|
49
49
|
//# sourceMappingURL=nesting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nesting.d.ts","names":[],"sources":["../../../../src/transpiler/nesting/nesting.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"nesting.d.ts","names":[],"sources":["../../../../src/transpiler/nesting/nesting.ts"],"mappings":";;;;;;;;;;;YAeY,QAAQ,KAAK,sBAElB,WAAW,wBAAwB,EAAE;MAE/B,SAAS,KAAK,QAAQ,EAAE,WACxB,aACD;KAGP,YAAY,GAAG,MAAM,MAAM,UAAU,OACtC,KACA,sBACK,WAAW,IAAI,YAAY,EAAE,IAAI,MAAM,SAC1C;;YAGM,iBAAiB,UAAU,kBAAkB,QACvD,YACE,qBAAqB,0BAA0B;EAG7C;EACA;EACA;;YAMM,mBAAmB,UAAU;EACvC,eAAe;;;;;;EAOf,OAAO,iBAAiB;;YAGd,cAAc,UAAU,0BAA0B,sBACrD,QACP,mBAAmB;;;;;;;;;;;;;;;;cAkBf,UAAW,UAAU,gBAAc,eACxB,GAAC,OACT,iBAAiB,OACvB,cAAc"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PLURAL, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
2
|
//#region src/transpiler/plural/plural.d.ts
|
|
3
|
-
type PluralCategory = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
|
|
4
|
-
type PluralContentState<Content> = Partial<Record<PluralCategory, Content>> & {
|
|
3
|
+
export type PluralCategory = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
|
|
4
|
+
export type PluralContentState<Content> = Partial<Record<PluralCategory, Content>> & {
|
|
5
5
|
other: Content;
|
|
6
6
|
};
|
|
7
|
-
type PluralContent<Content = unknown> = TypedNodeModel<typeof PLURAL, PluralContentState<Content>>;
|
|
7
|
+
export type PluralContent<Content = unknown> = TypedNodeModel<typeof PLURAL, PluralContentState<Content>>;
|
|
8
8
|
/**
|
|
9
9
|
* Function intended to be used to build intlayer dictionaries.
|
|
10
10
|
*
|
|
@@ -30,5 +30,5 @@ type PluralContent<Content = unknown> = TypedNodeModel<typeof PLURAL, PluralCont
|
|
|
30
30
|
*/
|
|
31
31
|
declare const plural: <Content = unknown>(content: PluralContentState<Content>) => PluralContent<Content>;
|
|
32
32
|
//#endregion
|
|
33
|
-
export {
|
|
33
|
+
export { plural };
|
|
34
34
|
//# sourceMappingURL=plural.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plural.d.ts","names":[],"sources":["../../../../src/transpiler/plural/plural.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"plural.d.ts","names":[],"sources":["../../../../src/transpiler/plural/plural.ts"],"mappings":";;YAGY;YAEA,mBAAmB,WAAW,QACxC,OAAO,gBAAgB;EAEvB,OAAO;;YAGG,cAAc,qBAAqB,sBACtC,QACP,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;cA0Bf,SAAU,mBAAiB,SACtB,mBAAmB,aAC3B,cAAc"}
|
|
@@ -7,12 +7,12 @@ import { SELECT, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
|
7
7
|
* `'Scheduled'`, …). The optional `fallback` key is picked when the provided
|
|
8
8
|
* value matches no declared case.
|
|
9
9
|
*/
|
|
10
|
-
type SelectContentStates<Content = unknown> = {
|
|
10
|
+
export type SelectContentStates<Content = unknown> = {
|
|
11
11
|
[caseKey: string]: Content;
|
|
12
12
|
} & {
|
|
13
13
|
fallback?: Content;
|
|
14
14
|
};
|
|
15
|
-
type SelectContent<States extends SelectContentStates = SelectContentStates> = TypedNodeModel<typeof SELECT, States, {
|
|
15
|
+
export type SelectContent<States extends SelectContentStates = SelectContentStates> = TypedNodeModel<typeof SELECT, States, {
|
|
16
16
|
/**
|
|
17
17
|
* Name of the variable the cases are selected on.
|
|
18
18
|
*
|
|
@@ -58,5 +58,5 @@ type SelectContent<States extends SelectContentStates = SelectContentStates> = T
|
|
|
58
58
|
*/
|
|
59
59
|
declare const select: <const States extends SelectContentStates>(content?: States, variable?: string) => SelectContent<States>;
|
|
60
60
|
//#endregion
|
|
61
|
-
export {
|
|
61
|
+
export { select };
|
|
62
62
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","names":[],"sources":["../../../../src/transpiler/select/select.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"select.d.ts","names":[],"sources":["../../../../src/transpiler/select/select.ts"],"mappings":";;;;;;;;;YAUY,oBAAoB;GAC7B,kBAAkB;;EAEnB,WAAW;;YAGD,cACV,eAAe,sBAAsB,uBACnC,sBACK,QACP;;;;;;;;;EAUE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCE,eAAgB,eAAe,qBAAmB,UAC5C,QAAM,sBAEf,cAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { TRANSLATION, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
3
3
|
//#region src/transpiler/translation/translation.d.ts
|
|
4
|
-
type TranslationContent<Content = unknown, RecordContent extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>> = TypedNodeModel<typeof TRANSLATION, RecordContent>;
|
|
4
|
+
export type TranslationContent<Content = unknown, RecordContent extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>> = TypedNodeModel<typeof TRANSLATION, RecordContent>;
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
* Function intended to be used to build intlayer dictionaries.
|
|
@@ -24,5 +24,5 @@ type TranslationContent<Content = unknown, RecordContent extends StrictModeLocal
|
|
|
24
24
|
*/
|
|
25
25
|
declare const translation: <Content = unknown, ContentRecord extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>>(content: ContentRecord) => TranslationContent<Content, ContentRecord>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export {
|
|
27
|
+
export { translation as t };
|
|
28
28
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","names":[],"sources":["../../../../src/transpiler/translation/translation.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"translation.d.ts","names":[],"sources":["../../../../src/transpiler/translation/translation.ts"],"mappings":";;;YAIY,mBACV,mBACA,sBACE,oBAAoB,WAAW,oBAAoB,YACnD,sBAAsB,aAAa;;;;;;;;;;;;;;;;;;;;;cAsBjC,cACJ,mBACA,sBACE,oBAAoB,WAAW,oBAAoB,UAAQ,SAEpD,kBACR,mBAAmB,SAAS"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/utils/checkIsURLAbsolute.d.ts
|
|
2
|
-
declare const checkIsURLAbsolute: (url: string) => boolean;
|
|
2
|
+
export declare const checkIsURLAbsolute: (url: string) => boolean;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { checkIsURLAbsolute };
|
|
5
4
|
//# sourceMappingURL=checkIsURLAbsolute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkIsURLAbsolute.d.ts","names":[],"sources":["../../../src/utils/checkIsURLAbsolute.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"checkIsURLAbsolute.d.ts","names":[],"sources":["../../../src/utils/checkIsURLAbsolute.ts"],"mappings":";qBAAa,qBAAkB"}
|
|
@@ -14,7 +14,7 @@ import { ProcessedCookieAttributes } from "@intlayer/types/config";
|
|
|
14
14
|
* @param expires - The normalized `expires` value from the built config.
|
|
15
15
|
* @returns The absolute expiry in epoch milliseconds, or `undefined`.
|
|
16
16
|
*/
|
|
17
|
-
declare const resolveExpiresToTimestamp: (expires: ProcessedCookieAttributes['expires']) => number | undefined;
|
|
17
|
+
export declare const resolveExpiresToTimestamp: (expires: ProcessedCookieAttributes['expires']) => number | undefined;
|
|
18
18
|
/**
|
|
19
19
|
* Serializes a cookie into a `document.cookie` string. Expiry is emitted as an
|
|
20
20
|
* absolute `Expires=` attribute resolved from the normalized `expires` value.
|
|
@@ -24,7 +24,6 @@ declare const resolveExpiresToTimestamp: (expires: ProcessedCookieAttributes['ex
|
|
|
24
24
|
* @param attributes - The normalized cookie attributes.
|
|
25
25
|
* @returns The serialized cookie string.
|
|
26
26
|
*/
|
|
27
|
-
declare const buildCookieString: (name: string, value: string, attributes: ProcessedCookieAttributes) => string;
|
|
27
|
+
export declare const buildCookieString: (name: string, value: string, attributes: ProcessedCookieAttributes) => string;
|
|
28
28
|
//#endregion
|
|
29
|
-
export { buildCookieString, resolveExpiresToTimestamp };
|
|
30
29
|
//# sourceMappingURL=cookieExpiry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookieExpiry.d.ts","names":[],"sources":["../../../src/utils/cookieExpiry.ts"],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"cookieExpiry.d.ts","names":[],"sources":["../../../src/utils/cookieExpiry.ts"],"mappings":";;;;;;;;;;;;;;;;qBAgBa,4BAAyB,SAC3B;;;;;;;;;;qBAmBE,oBAAiB,cAChB,eACC,YACD"}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* @param cookieString - Optional cookie string to parse (defaults to document.cookie in browser)
|
|
6
6
|
* @returns The cookie value or undefined if not found
|
|
7
7
|
*/
|
|
8
|
-
declare const getCookie: (name: string, cookieString?: string) => string | undefined;
|
|
8
|
+
export declare const getCookie: (name: string, cookieString?: string) => string | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { getCookie };
|
|
11
10
|
//# sourceMappingURL=getCookie.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCookie.d.ts","names":[],"sources":["../../../src/utils/getCookie.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"getCookie.d.ts","names":[],"sources":["../../../src/utils/getCookie.ts"],"mappings":";;;;;;;qBAMa,YAAS,cACR"}
|
|
@@ -38,7 +38,7 @@ type IntlInstanceByName = {
|
|
|
38
38
|
/**
|
|
39
39
|
* Names of the `Intl` constructors this module knows how to instantiate.
|
|
40
40
|
*/
|
|
41
|
-
type IntlConstructorName = keyof IntlInstanceByName;
|
|
41
|
+
export type IntlConstructorName = keyof IntlInstanceByName;
|
|
42
42
|
type IntlConstructors = { [K in keyof typeof Intl as (typeof Intl)[K] extends (new (...args: any) => any) ? K : never]: (typeof Intl)[K]; };
|
|
43
43
|
type ReplaceLocaleWithLocalesValues<T> = T extends (new (locales: any, options?: infer Options) => infer Instance) ? {
|
|
44
44
|
new (locales?: LocalesValues, options?: Options): Instance;
|
|
@@ -59,7 +59,7 @@ type ReplaceLocaleWithLocalesValues<T> = T extends (new (locales: any, options?:
|
|
|
59
59
|
locale?: LocalesValues;
|
|
60
60
|
}): Instance;
|
|
61
61
|
} : T;
|
|
62
|
-
type WrappedIntl = { [K in keyof typeof Intl]: K extends keyof IntlConstructors ? ReplaceLocaleWithLocalesValues<(typeof Intl)[K]> : (typeof Intl)[K]; };
|
|
62
|
+
export type WrappedIntl = { [K in keyof typeof Intl]: K extends keyof IntlConstructors ? ReplaceLocaleWithLocalesValues<(typeof Intl)[K]> : (typeof Intl)[K]; };
|
|
63
63
|
/**
|
|
64
64
|
* Generic caching instantiator for Intl constructors.
|
|
65
65
|
*
|
|
@@ -68,14 +68,14 @@ type WrappedIntl = { [K in keyof typeof Intl]: K extends keyof IntlConstructors
|
|
|
68
68
|
* late-installed polyfills are picked up and missing constructors degrade to a
|
|
69
69
|
* fallback instead of throwing.
|
|
70
70
|
*/
|
|
71
|
-
declare function getCachedIntl<Name extends IntlConstructorName>(constructorName: Name, locale?: LocalesValues | string, options?: any): IntlInstanceByName[Name];
|
|
72
|
-
declare function getCachedIntl<T extends new (...args: any[]) => any>(Ctor: T, locale?: LocalesValues | string, options?: any): InstanceType<T>;
|
|
71
|
+
export declare function getCachedIntl<Name extends IntlConstructorName>(constructorName: Name, locale?: LocalesValues | string, options?: any): IntlInstanceByName[Name];
|
|
72
|
+
export declare function getCachedIntl<T extends new (...args: any[]) => any>(Ctor: T, locale?: LocalesValues | string, options?: any): InstanceType<T>;
|
|
73
73
|
/**
|
|
74
74
|
* Optional: Keep bindIntl if your library exports it publicly.
|
|
75
75
|
* It now uses the much smaller getCachedIntl under the hood.
|
|
76
76
|
*/
|
|
77
|
-
declare const bindIntl: (boundLocale: LocalesValues) => WrappedIntl;
|
|
78
|
-
declare const CachedIntl: any;
|
|
77
|
+
export declare const bindIntl: (boundLocale: LocalesValues) => WrappedIntl;
|
|
78
|
+
export declare const CachedIntl: any;
|
|
79
79
|
//#endregion
|
|
80
|
-
export { CachedIntl
|
|
80
|
+
export { CachedIntl as Intl };
|
|
81
81
|
//# sourceMappingURL=intl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intl.d.ts","names":[],"sources":["../../../src/utils/intl.ts"],"mappings":";;;;;;KAoCK;EACH,OAAO,MAAM;EACb,cACE,MAAM;IACH;IAA6B;;;;;;;KAO/B;EACH,QAAQ,gBAAgB;IAAW;IAAiB;;;;;;KAMjD;EACH,UAAU,KAAK;EACf,gBAAgB,KAAK;EACrB,cAAc,KAAK;EACnB,YAAY;EACZ,QAAQ,KAAK;EACb,cAAc,KAAK;EACnB,aAAa,KAAK;EAClB,oBAAoB,KAAK;EACzB,WAAW;;;;;
|
|
1
|
+
{"version":3,"file":"intl.d.ts","names":[],"sources":["../../../src/utils/intl.ts"],"mappings":";;;;;;KAoCK;EACH,OAAO,MAAM;EACb,cACE,MAAM;IACH;IAA6B;;;;;;;KAO/B;EACH,QAAQ,gBAAgB;IAAW;IAAiB;;;;;;KAMjD;EACH,UAAU,KAAK;EACf,gBAAgB,KAAK;EACrB,cAAc,KAAK;EACnB,YAAY;EACZ,QAAQ,KAAK;EACb,cAAc,KAAK;EACnB,aAAa,KAAK;EAClB,oBAAoB,KAAK;EACzB,WAAW;;;;;YAMD,4BAA4B;KAiGnC,sBACF,kBAAkB,gBAAgB,MAAM,oBACpC,qBAED,oBACgB,MAAM;KAGvB,+BAA+B,KAAK,gBACvC,cACA,gBAAgB,kBACP;OAEA,UAAU,eAAe,UAAU,UAAU;OAC7C,UAAU;IAAY,SAAS;MAAkB;GACrD,UAAU,eAAe,UAAU,UAAU;GAC7C,UAAU;IAAY,SAAS;MAAkB;IAEpD,gBACI,uBACS;OAEJ,UAAU,gBAAgB;OAC1B;IAAY,SAAS;MAAkB;GAC3C,UAAU,gBAAgB;GAC1B;IAAY,SAAS;MAAkB;IAE1C;YAEM,iBACT,kBAAkB,OAAO,gBAAgB,mBACtC,uCAAuC,MAAM,cACrC,MAAM;;;;;;;;;wBAWJ,cAAc,aAAa,qBACzC,iBAAiB,MACjB,SAAS,wBACT,gBACC,mBAAmB;wBACN,cAAc,kBAAkB,qBAC9C,MAAM,GACN,SAAS,wBACT,gBACC,aAAa;;;;;qBAgDH,WAAQ,aAAiB,kBAAgB;qBA+BzC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
2
2
|
//#region src/utils/isSameKeyPath.d.ts
|
|
3
|
-
declare const isSameKeyPath: (keyPath1: KeyPath[], keyPath2: KeyPath[]) => boolean;
|
|
3
|
+
export declare const isSameKeyPath: (keyPath1: KeyPath[], keyPath2: KeyPath[]) => boolean;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { isSameKeyPath };
|
|
6
5
|
//# sourceMappingURL=isSameKeyPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSameKeyPath.d.ts","names":[],"sources":["../../../src/utils/isSameKeyPath.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"isSameKeyPath.d.ts","names":[],"sources":["../../../src/utils/isSameKeyPath.ts"],"mappings":";;qBAIa,gBAAa,UAAc,WAAS,UAAY"}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @return True if `object` is a ReactElement.
|
|
7
7
|
* @final
|
|
8
8
|
*/
|
|
9
|
-
declare const isValidElement: (object: any) => boolean;
|
|
9
|
+
export declare const isValidElement: (object: any) => boolean;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { isValidElement };
|
|
12
11
|
//# sourceMappingURL=isValidReactElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isValidReactElement.d.ts","names":[],"sources":["../../../src/utils/isValidReactElement.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"isValidReactElement.d.ts","names":[],"sources":["../../../src/utils/isValidReactElement.ts"],"mappings":";;;;;;;;qBAQa,iBAAc"}
|