@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editDictionaryByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/editDictionaryByKeyPath.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"editDictionaryByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/editDictionaryByKeyPath.ts"],"mappings":";;;qBAMa,0BAAuB,mBACf,aAAW,SACrB,WAAS,UACR,gBACT"}
|
|
@@ -2,7 +2,6 @@ import { ContentNode } from "@intlayer/types/dictionary";
|
|
|
2
2
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
4
4
|
//#region src/dictionaryManipulator/getContentNodeByKeyPath.d.ts
|
|
5
|
-
declare const getContentNodeByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[], fallbackLocale?: LocalesValues) => ContentNode;
|
|
5
|
+
export declare const getContentNodeByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[], fallbackLocale?: LocalesValues) => ContentNode;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { getContentNodeByKeyPath };
|
|
8
7
|
//# sourceMappingURL=getContentNodeByKeyPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"getContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"mappings":";;;;qBAKa,0BAAuB,mBACf,aAAW,SACrB,WAAS,iBACD,kBAChB"}
|
|
@@ -2,7 +2,6 @@ import { ContentNode } from "@intlayer/types/dictionary";
|
|
|
2
2
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { NodeType } from "@intlayer/types/nodeType";
|
|
4
4
|
//#region src/dictionaryManipulator/getDefaultNode.d.ts
|
|
5
|
-
declare const getDefaultNode: (nodeType: NodeType, locales: LocalesValues[], content?: ContentNode) => ContentNode;
|
|
5
|
+
export declare const getDefaultNode: (nodeType: NodeType, locales: LocalesValues[], content?: ContentNode) => ContentNode;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { getDefaultNode };
|
|
8
7
|
//# sourceMappingURL=getDefaultNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultNode.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getDefaultNode.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"getDefaultNode.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getDefaultNode.ts"],"mappings":";;;;qBAMa,iBAAc,UACf,UAAQ,SACT,iBAAe,UACd,gBACT"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/dictionaryManipulator/getEmptyNode.d.ts
|
|
3
|
-
declare const getEmptyNode: (section: ContentNode) => ContentNode;
|
|
3
|
+
export declare const getEmptyNode: (section: ContentNode) => ContentNode;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { getEmptyNode };
|
|
6
5
|
//# sourceMappingURL=getEmptyNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEmptyNode.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getEmptyNode.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getEmptyNode.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getEmptyNode.ts"],"mappings":";;qBAIa,eAAY,SAAa,gBAAc"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* (`nest('common')` without a path), so no field of that dictionary may be
|
|
8
8
|
* dropped.
|
|
9
9
|
*/
|
|
10
|
-
type NestedFieldReferences = Set<string> | 'all';
|
|
10
|
+
export type NestedFieldReferences = Set<string> | 'all';
|
|
11
11
|
/**
|
|
12
12
|
* Walks a dictionary tree and collects every dictionary referenced through a
|
|
13
13
|
* `nest()` node, together with the top-level fields those references read.
|
|
@@ -26,14 +26,14 @@ type NestedFieldReferences = Set<string> | 'all';
|
|
|
26
26
|
* // Map { 'common' => Set { 'period' } }
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
declare const getNestedDictionaryReferences: (dictionaries: Iterable<unknown>) => Map<string, NestedFieldReferences>;
|
|
29
|
+
export declare const getNestedDictionaryReferences: (dictionaries: Iterable<unknown>) => Map<string, NestedFieldReferences>;
|
|
30
30
|
/**
|
|
31
31
|
* Keys of every dictionary referenced through a `nest()` node.
|
|
32
32
|
*
|
|
33
33
|
* @param dictionaries - Dictionary objects (or any content subtree) to scan.
|
|
34
34
|
* @returns Set of nest-target dictionary keys.
|
|
35
35
|
*/
|
|
36
|
-
declare const getNestedDictionaryKeys: (dictionaries: Iterable<unknown>) => Set<string>;
|
|
36
|
+
export declare const getNestedDictionaryKeys: (dictionaries: Iterable<unknown>) => Set<string>;
|
|
37
37
|
/**
|
|
38
38
|
* Builds the `nest()` dependency graph of a set of dictionaries: for each
|
|
39
39
|
* dictionary key, the keys of every dictionary it needs in order to resolve its
|
|
@@ -56,7 +56,6 @@ declare const getNestedDictionaryKeys: (dictionaries: Iterable<unknown>) => Set<
|
|
|
56
56
|
* // Map { 'dashboard' => Set { 'common', 'labels' }, 'common' => Set { 'labels' } }
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
declare const getNestedDictionaryGraph: (dictionaries: Iterable<unknown>) => Map<string, Set<string>>;
|
|
59
|
+
export declare const getNestedDictionaryGraph: (dictionaries: Iterable<unknown>) => Map<string, Set<string>>;
|
|
60
60
|
//#endregion
|
|
61
|
-
export { NestedFieldReferences, getNestedDictionaryGraph, getNestedDictionaryKeys, getNestedDictionaryReferences };
|
|
62
61
|
//# sourceMappingURL=getNestedDictionaryReferences.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNestedDictionaryReferences.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getNestedDictionaryReferences.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getNestedDictionaryReferences.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getNestedDictionaryReferences.ts"],"mappings":";;;;;;;;;YAUY,wBAAwB;;;;;;;;;;;;;;;;;;;qBAkEvB,gCAA6B,cAC1B,sBACb,YAAY;;;;;;;qBAkDF,0BAAuB,cACpB,sBACb;;;;;;;;;;;;;;;;;;;;;;;qBAyDU,2BAAwB,cACrB,sBACb,YAAY"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/dictionaryManipulator/getNodeChildren.d.ts
|
|
3
|
-
declare const getNodeChildren: (section: ContentNode) => ContentNode;
|
|
3
|
+
export declare const getNodeChildren: (section: ContentNode) => ContentNode;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { getNodeChildren };
|
|
6
5
|
//# sourceMappingURL=getNodeChildren.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNodeChildren.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getNodeChildren.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getNodeChildren.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getNodeChildren.ts"],"mappings":";;qBAIa,kBAAe,SAAa,gBAAc"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
2
|
import { NodeType } from "@intlayer/types/nodeType";
|
|
3
3
|
//#region src/dictionaryManipulator/getNodeType.d.ts
|
|
4
|
-
declare const getNodeType: (content: ContentNode) => NodeType;
|
|
4
|
+
export declare const getNodeType: (content: ContentNode) => NodeType;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { getNodeType };
|
|
7
6
|
//# sourceMappingURL=getNodeType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNodeType.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getNodeType.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getNodeType.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getNodeType.ts"],"mappings":";;;qBAsDa,cAAW,SAAa,gBAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/dictionaryManipulator/mergeDictionaries.d.ts
|
|
3
|
-
declare const mergeDictionaries: (dictionaries: Dictionary[]) => Dictionary;
|
|
3
|
+
export declare const mergeDictionaries: (dictionaries: Dictionary[]) => Dictionary;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { mergeDictionaries };
|
|
6
5
|
//# sourceMappingURL=mergeDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/mergeDictionaries.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"mergeDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/mergeDictionaries.ts"],"mappings":";;qBAqKa,oBAAiB,cAAkB,iBAAe"}
|
|
@@ -18,7 +18,6 @@ import { Dictionary, QualifiedDictionaryGroup } from "@intlayer/types/dictionary
|
|
|
18
18
|
* Every qualified entry must declare ALL dimensions of the group; an entry that
|
|
19
19
|
* declares only a subset is ambiguous and is rejected with an error log.
|
|
20
20
|
*/
|
|
21
|
-
declare const mergeQualifiedDictionaries: (dictionaries: Dictionary[]) => Dictionary | QualifiedDictionaryGroup;
|
|
21
|
+
export declare const mergeQualifiedDictionaries: (dictionaries: Dictionary[]) => Dictionary | QualifiedDictionaryGroup;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { mergeQualifiedDictionaries };
|
|
24
23
|
//# sourceMappingURL=mergeQualifiedDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeQualifiedDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/mergeQualifiedDictionaries.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"mergeQualifiedDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/mergeQualifiedDictionaries.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAoCa,6BAA0B,cACvB,iBACb,aAAa"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
3
|
//#region src/dictionaryManipulator/normalizeDictionary.d.ts
|
|
4
|
-
declare const normalizeDictionary: (dictionary: Dictionary, configuration: IntlayerConfig) => Dictionary;
|
|
5
|
-
declare const normalizeDictionaries: (dictionaries: Dictionary[], configuration: IntlayerConfig) => Dictionary[];
|
|
4
|
+
export declare const normalizeDictionary: (dictionary: Dictionary, configuration: IntlayerConfig) => Dictionary;
|
|
5
|
+
export declare const normalizeDictionaries: (dictionaries: Dictionary[], configuration: IntlayerConfig) => Dictionary[];
|
|
6
6
|
//#endregion
|
|
7
|
-
export { normalizeDictionaries, normalizeDictionary };
|
|
8
7
|
//# sourceMappingURL=normalizeDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeDictionary.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/normalizeDictionary.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"normalizeDictionary.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/normalizeDictionary.ts"],"mappings":";;;qBAOa,sBAAmB,YAClB,YAAU,eACP,mBACd;qBAmCU,wBAAqB,cAClB,cAAY,eACX,mBACd"}
|
|
@@ -7,11 +7,10 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
7
7
|
* @param priorityStrategy - The priority strategy ('local_first' or 'distant_first')
|
|
8
8
|
* @returns Ordered array of dictionaries
|
|
9
9
|
*/
|
|
10
|
-
declare const orderDictionaries: (dictionaries: Dictionary[], config?: {
|
|
10
|
+
export declare const orderDictionaries: (dictionaries: Dictionary[], config?: {
|
|
11
11
|
editor: {
|
|
12
12
|
dictionaryPriorityStrategy: 'local_first' | 'distant_first';
|
|
13
13
|
};
|
|
14
14
|
}) => Dictionary[];
|
|
15
15
|
//#endregion
|
|
16
|
-
export { orderDictionaries };
|
|
17
16
|
//# sourceMappingURL=orderDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/orderDictionaries.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orderDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/orderDictionaries.ts"],"mappings":";;;;;;;;;qBAUa,oBAAiB,cACd,cAAY;EAExB;IACE;;MAGH"}
|
|
@@ -5,11 +5,11 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
|
5
5
|
* Default export shape of a generated dynamic entry point for a plain (non
|
|
6
6
|
* qualified) key: one lazy chunk loader per emitted locale.
|
|
7
7
|
*/
|
|
8
|
-
type PlainDynamicLoaderMap<T extends Dictionary = Dictionary> = {
|
|
8
|
+
export type PlainDynamicLoaderMap<T extends Dictionary = Dictionary> = {
|
|
9
9
|
[locale: string]: (() => Promise<T>) | undefined;
|
|
10
10
|
};
|
|
11
11
|
/** A chunk loader together with the locale it was emitted for. */
|
|
12
|
-
type ResolvedDynamicLoader<T extends Dictionary = Dictionary> = {
|
|
12
|
+
export type ResolvedDynamicLoader<T extends Dictionary = Dictionary> = {
|
|
13
13
|
/**
|
|
14
14
|
* Locale the returned loader actually serves, which differs from the
|
|
15
15
|
* requested one whenever the fallback chain was walked.
|
|
@@ -31,7 +31,7 @@ type ResolvedDynamicLoader<T extends Dictionary = Dictionary> = {
|
|
|
31
31
|
* @returns The loader to invoke and the locale its chunk holds, or `undefined`
|
|
32
32
|
* when the map holds no chunk for the locale nor for any fallback.
|
|
33
33
|
*/
|
|
34
|
-
declare const findPlainDynamicLoader: <T extends Dictionary>(loaderMap: PlainDynamicLoaderMap<T>, locale: LocalesValues) => ResolvedDynamicLoader<T> | undefined;
|
|
34
|
+
export declare const findPlainDynamicLoader: <T extends Dictionary>(loaderMap: PlainDynamicLoaderMap<T>, locale: LocalesValues) => ResolvedDynamicLoader<T> | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* {@link findPlainDynamicLoader}, for callers that cannot render without a
|
|
37
37
|
* chunk and would otherwise fail on an `undefined` loader with an error naming
|
|
@@ -44,7 +44,6 @@ declare const findPlainDynamicLoader: <T extends Dictionary>(loaderMap: PlainDyn
|
|
|
44
44
|
* @throws When neither the locale nor any of its fallbacks has a chunk, which
|
|
45
45
|
* only happens on a malformed or empty entry point.
|
|
46
46
|
*/
|
|
47
|
-
declare const resolvePlainDynamicLoader: <T extends Dictionary>(loaderMap: PlainDynamicLoaderMap<T>, key: string, locale: LocalesValues) => ResolvedDynamicLoader<T>;
|
|
47
|
+
export declare const resolvePlainDynamicLoader: <T extends Dictionary>(loaderMap: PlainDynamicLoaderMap<T>, key: string, locale: LocalesValues) => ResolvedDynamicLoader<T>;
|
|
48
48
|
//#endregion
|
|
49
|
-
export { PlainDynamicLoaderMap, ResolvedDynamicLoader, findPlainDynamicLoader, resolvePlainDynamicLoader };
|
|
50
49
|
//# sourceMappingURL=plainDynamicLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plainDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/plainDynamicLoader.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"plainDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/plainDynamicLoader.ts"],"mappings":";;;;;;;YAUY,sBAAsB,UAAU,aAAa;GACtD,wBAAwB,QAAQ;;;YAIvB,sBAAsB,UAAU,aAAa;;;;;EAKvD,QAAQ;EACR,cAAc,QAAQ;;;;;;;;;;;;;;;;qBA4CX,yBAA0B,UAAU,YAAU,WAC9C,sBAAsB,IAAE,QAC3B,kBACP,sBAAsB;;;;;;;;;;;;;qBAgCZ,4BAA6B,UAAU,YAAU,WACjD,sBAAsB,IAAE,aACxB,QACH,kBACP,sBAAsB"}
|
|
@@ -10,12 +10,12 @@ import { PRELOADED_DYNAMIC_KEY } from "@intlayer/config/defaultValues";
|
|
|
10
10
|
* (a client-side locale switch, or a resolution the provider overrode) falls
|
|
11
11
|
* back to loading rather than serving content in the wrong language.
|
|
12
12
|
*/
|
|
13
|
-
type PreloadedDynamicEntry = {
|
|
13
|
+
export type PreloadedDynamicEntry = {
|
|
14
14
|
locale: LocalesValues;
|
|
15
15
|
dictionary: Dictionary;
|
|
16
16
|
};
|
|
17
17
|
/** A plain dynamic loader map that may carry a preloaded entry. */
|
|
18
|
-
type PreloadableDynamicLoaderMap = {
|
|
18
|
+
export type PreloadableDynamicLoaderMap = {
|
|
19
19
|
[PRELOADED_DYNAMIC_KEY]?: PreloadedDynamicEntry;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -32,7 +32,7 @@ type PreloadableDynamicLoaderMap = {
|
|
|
32
32
|
* @param locale - Locale the caller is about to render.
|
|
33
33
|
* @returns The dictionary when it was preloaded for `locale`, else `undefined`.
|
|
34
34
|
*/
|
|
35
|
-
declare const getPreloadedDictionary: (loaderMap: unknown, locale: LocalesValues) => Dictionary | undefined;
|
|
35
|
+
export declare const getPreloadedDictionary: (loaderMap: unknown, locale: LocalesValues) => Dictionary | undefined;
|
|
36
36
|
//#endregion
|
|
37
|
-
export { PRELOADED_DYNAMIC_KEY
|
|
37
|
+
export { PRELOADED_DYNAMIC_KEY };
|
|
38
38
|
//# sourceMappingURL=preloadedDynamicLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preloadedDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/preloadedDynamicLoader.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"preloadedDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/preloadedDynamicLoader.ts"],"mappings":";;;;;;;;;;;;YAoBY;EACV,QAAQ;EACR,YAAY;;;YAIF;GACT,yBAAyB;;;;;;;;;;;;;;;;qBAiBf,yBAAsB,oBACf,QACV,kBACP"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Dictionary, DictionarySelector, DictionaryVariantChain, DictionaryVariantValue,
|
|
1
|
+
import { Dictionary, DictionarySelector, DictionaryVariantChain, DictionaryVariantValue, ProviderVariantBase, QualifiedDictionaryGroup } from "@intlayer/types/dictionary";
|
|
2
2
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
3
|
//#region src/dictionaryManipulator/qualifiedDictionary.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Separator joining per-dimension ids into a composite entry id. Also used as
|
|
6
6
|
* the chunk path separator in dynamic mode.
|
|
7
7
|
*/
|
|
8
|
-
declare const COMPOSITE_ID_SEPARATOR = "/";
|
|
8
|
+
export declare const COMPOSITE_ID_SEPARATOR = "/";
|
|
9
9
|
/**
|
|
10
10
|
* Identity of the implicit fallback variant. A selector that pins no variant
|
|
11
11
|
* resolves to it, and a variant that declares no entry of its own falls back to
|
|
12
12
|
* it — so a key only has to ship the entries that actually differ.
|
|
13
13
|
*/
|
|
14
|
-
declare const DEFAULT_VARIANT_ID = "default";
|
|
14
|
+
export declare const DEFAULT_VARIANT_ID = "default";
|
|
15
15
|
/**
|
|
16
16
|
* Canonical serialization of a single variant value into its identity string —
|
|
17
17
|
* the variant segment of a composite id, the chunk directory name in dynamic
|
|
@@ -30,7 +30,7 @@ declare const DEFAULT_VARIANT_ID = "default";
|
|
|
30
30
|
* Two variants resolve to the same entry iff their serializations are equal, so
|
|
31
31
|
* an object variant in a selector must equal the one declared on the dictionary.
|
|
32
32
|
*/
|
|
33
|
-
declare const serializeVariant: (variant: DictionaryVariantValue | undefined) => string;
|
|
33
|
+
export declare const serializeVariant: (variant: DictionaryVariantValue | undefined) => string;
|
|
34
34
|
/**
|
|
35
35
|
* Serializes the variant coordinate of a selector into the ordered list of
|
|
36
36
|
* candidate ids to try, so a single value and a preference chain share one code
|
|
@@ -43,7 +43,7 @@ declare const serializeVariant: (variant: DictionaryVariantValue | undefined) =>
|
|
|
43
43
|
* An empty chain is treated as "no variant pinned" (`['default']`) rather than
|
|
44
44
|
* as an unsatisfiable request.
|
|
45
45
|
*/
|
|
46
|
-
declare const serializeVariantChain: (variant: DictionaryVariantChain | undefined) => string[];
|
|
46
|
+
export declare const serializeVariantChain: (variant: DictionaryVariantChain | undefined) => string[];
|
|
47
47
|
/**
|
|
48
48
|
* Resolves the variant id a selector actually targets among the ids a key
|
|
49
49
|
* declares — the sparse-override fallback.
|
|
@@ -59,13 +59,13 @@ declare const serializeVariantChain: (variant: DictionaryVariantChain | undefine
|
|
|
59
59
|
* list).
|
|
60
60
|
* @param isVariantIdDeclared - Whether the key declares an entry for an id.
|
|
61
61
|
*/
|
|
62
|
-
declare const resolveEffectiveVariantId: (requestedVariantIds: string[], isVariantIdDeclared: (variantId: string) => boolean) => string;
|
|
62
|
+
export declare const resolveEffectiveVariantId: (requestedVariantIds: string[], isVariantIdDeclared: (variantId: string) => boolean) => string;
|
|
63
63
|
/**
|
|
64
64
|
* Type guard discriminating a `QualifiedDictionaryGroup` (merge output of a
|
|
65
65
|
* qualified key) from a plain `Dictionary`. Both carry a `content` field; only
|
|
66
66
|
* the group declares `qualifierTypes`, which is therefore the discriminator.
|
|
67
67
|
*/
|
|
68
|
-
declare const isQualifiedDictionaryGroup: (value: unknown) => value is QualifiedDictionaryGroup;
|
|
68
|
+
export declare const isQualifiedDictionaryGroup: (value: unknown) => value is QualifiedDictionaryGroup;
|
|
69
69
|
/**
|
|
70
70
|
* Reconstructs a resolvable {@link Dictionary} from a single entry of a
|
|
71
71
|
* qualified group: the content node stored under its composite id, plus the
|
|
@@ -77,7 +77,7 @@ declare const isQualifiedDictionaryGroup: (value: unknown) => value is Qualified
|
|
|
77
77
|
* its serialized (encoded) form, e.g. `'id=abc&userId=123'` — matching happens
|
|
78
78
|
* on the composite id segments, never on this reconstructed field.
|
|
79
79
|
*/
|
|
80
|
-
declare const reconstructQualifiedEntry: (group: QualifiedDictionaryGroup, compositeId: string) => Dictionary;
|
|
80
|
+
export declare const reconstructQualifiedEntry: (group: QualifiedDictionaryGroup, compositeId: string) => Dictionary;
|
|
81
81
|
/**
|
|
82
82
|
* Resolves a dictionary (or qualified dictionary group) against a selector,
|
|
83
83
|
* across every declared dimension.
|
|
@@ -93,12 +93,12 @@ declare const reconstructQualifiedEntry: (group: QualifiedDictionaryGroup, compo
|
|
|
93
93
|
* Dimensions compose: e.g. a variant × item key with `{ variant: 'promo' }`
|
|
94
94
|
* returns every promo item as an array; adding `{ item: 2 }` narrows to one.
|
|
95
95
|
*/
|
|
96
|
-
declare const resolveQualifiedDictionary: (dictionaryOrGroup: Dictionary | QualifiedDictionaryGroup, selector?: DictionarySelector) => Dictionary | Dictionary[] | null;
|
|
96
|
+
export declare const resolveQualifiedDictionary: (dictionaryOrGroup: Dictionary | QualifiedDictionaryGroup, selector?: DictionarySelector) => Dictionary | Dictionary[] | null;
|
|
97
97
|
/**
|
|
98
98
|
* Splits the second argument of `getIntlayer` / `getDictionary` into the
|
|
99
99
|
* effective locale and the selector object (if any).
|
|
100
100
|
*/
|
|
101
|
-
declare const parseDictionarySelector: <L extends LocalesValues>(localeOrSelector?: L | DictionarySelector) => {
|
|
101
|
+
export declare const parseDictionarySelector: <L extends LocalesValues>(localeOrSelector?: L | DictionarySelector) => {
|
|
102
102
|
locale?: L;
|
|
103
103
|
selector?: DictionarySelector;
|
|
104
104
|
};
|
|
@@ -117,7 +117,7 @@ declare const parseDictionarySelector: <L extends LocalesValues>(localeOrSelecto
|
|
|
117
117
|
* @param providerVariant - The `variant` prop of the surrounding provider.
|
|
118
118
|
* @param dictionaryKey - The key being read.
|
|
119
119
|
*/
|
|
120
|
-
declare const resolveProviderVariant: (providerVariant:
|
|
120
|
+
export declare const resolveProviderVariant: (providerVariant: ProviderVariantBase | undefined, dictionaryKey: string) => DictionaryVariantChain | undefined;
|
|
121
121
|
/**
|
|
122
122
|
* Builds the effective second argument of a dictionary read by layering the
|
|
123
123
|
* provider defaults under the call-site one — the single place the `locale` and
|
|
@@ -132,17 +132,16 @@ declare const resolveProviderVariant: (providerVariant: ProviderVariant | undefi
|
|
|
132
132
|
* so the existing fast path — and the cache keys built from it — are unchanged
|
|
133
133
|
* for projects that never use variants.
|
|
134
134
|
*/
|
|
135
|
-
declare const resolveDictionaryArgument: (params: {
|
|
135
|
+
export declare const resolveDictionaryArgument: (params: {
|
|
136
136
|
localeOrSelector?: LocalesValues | DictionarySelector;
|
|
137
137
|
contextLocale?: LocalesValues;
|
|
138
|
-
contextVariant?:
|
|
138
|
+
contextVariant?: ProviderVariantBase;
|
|
139
139
|
dictionaryKey: string;
|
|
140
140
|
}) => LocalesValues | DictionarySelector | undefined;
|
|
141
141
|
/**
|
|
142
142
|
* Builds a stable string identity of a selector (excluding `locale`), suitable
|
|
143
143
|
* for cache keys and memoization dependencies.
|
|
144
144
|
*/
|
|
145
|
-
declare const getDictionarySelectorCacheKey: (selector?: DictionarySelector) => string;
|
|
145
|
+
export declare const getDictionarySelectorCacheKey: (selector?: DictionarySelector) => string;
|
|
146
146
|
//#endregion
|
|
147
|
-
export { COMPOSITE_ID_SEPARATOR, DEFAULT_VARIANT_ID, getDictionarySelectorCacheKey, isQualifiedDictionaryGroup, parseDictionarySelector, reconstructQualifiedEntry, resolveDictionaryArgument, resolveEffectiveVariantId, resolveProviderVariant, resolveQualifiedDictionary, serializeVariant, serializeVariantChain };
|
|
148
147
|
//# sourceMappingURL=qualifiedDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualifiedDictionary.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/qualifiedDictionary.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"qualifiedDictionary.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/qualifiedDictionary.ts"],"mappings":";;;;;;;qBAgBa;;;;;;qBAOA;;;;;;;;;;;;;;;;;;;qBAqDA,mBAAgB,SAClB;;;;;;;;;;;;;qBA4BE,wBAAqB,SACvB;;;;;;;;;;;;;;;;qBA0BE,4BAAyB,+BACP,sBACP;;;;;;qBA4CX,6BAA0B,mBAEpC,SAAS;;;;;;;;;;;;qBAkBC,4BAAyB,OAC7B,0BAAwB,wBAE9B;;;;;;;;;;;;;;;;qBAkCU,6BAA0B,mBAClB,aAAa,0BAAwB,WAC7C,uBACV,aAAa;;;;;qBAoDH,0BAA2B,UAAU,eAAa,mBAC1C,IAAI;EACpB,SAAS;EAAG,WAAW;;;;;;;;;;;;;;;;;qBA0Bf,yBAAsB,iBAChB,iCAA+B,0BAE/C;;;;;;;;;;;;;;;qBA0BU,4BAAyB;EACpC,mBAAmB,gBAAgB;EACnC,gBAAgB;EAChB,iBAAiB;EACjB;MACE,gBAAgB;;;;;qBAqCP,gCAA6B,WAC7B"}
|
|
@@ -5,7 +5,7 @@ import { Dictionary, DictionaryQualifierType } from "@intlayer/types/dictionary"
|
|
|
5
5
|
* always nests them in this order, with `item` innermost so it can act as the
|
|
6
6
|
* collection (array) axis.
|
|
7
7
|
*/
|
|
8
|
-
declare const QUALIFIER_ORDER: readonly ["variant", "item"];
|
|
8
|
+
export declare const QUALIFIER_ORDER: readonly ["variant", "item"];
|
|
9
9
|
/**
|
|
10
10
|
* Normalizes the `variant` field of a dictionary into the list of variant ids
|
|
11
11
|
* the declaration registers under. A single value yields one id; an **array**
|
|
@@ -13,13 +13,13 @@ declare const QUALIFIER_ORDER: readonly ["variant", "item"];
|
|
|
13
13
|
* when the dictionary does not declare the variant dimension (no `variant`
|
|
14
14
|
* field, or an empty array).
|
|
15
15
|
*/
|
|
16
|
-
declare const getVariantIds: (variant: Dictionary['variant']) => string[] | undefined;
|
|
16
|
+
export declare const getVariantIds: (variant: Dictionary['variant']) => string[] | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* Returns the qualifier dimensions declared on a dictionary, in canonical
|
|
19
19
|
* order (`variant → item`). Empty when the dictionary is unqualified
|
|
20
20
|
* (plain dictionary or shared base content of a qualified group).
|
|
21
21
|
*/
|
|
22
|
-
declare const getDictionaryQualifierTypes: (dictionary: Dictionary) => DictionaryQualifierType[];
|
|
22
|
+
export declare const getDictionaryQualifierTypes: (dictionary: Dictionary) => DictionaryQualifierType[];
|
|
23
23
|
/**
|
|
24
24
|
* Returns the qualifier identifiers of a dictionary for the given qualifier
|
|
25
25
|
* dimension — the candidate segments of the composite entry ids.
|
|
@@ -28,14 +28,13 @@ declare const getDictionaryQualifierTypes: (dictionary: Dictionary) => Dictionar
|
|
|
28
28
|
* per element (declaration-side fan-out)
|
|
29
29
|
* - 'item' → the item index as a single-element list
|
|
30
30
|
*/
|
|
31
|
-
declare const getDictionaryQualifierIds: (dictionary: Dictionary, qualifierType: DictionaryQualifierType) => string[] | undefined;
|
|
31
|
+
export declare const getDictionaryQualifierIds: (dictionary: Dictionary, qualifierType: DictionaryQualifierType) => string[] | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* Builds every composite entry id of a dictionary — the cartesian product of
|
|
34
34
|
* its per-dimension id lists, joined in canonical order. A dictionary with a
|
|
35
35
|
* plain (non-array) variant yields exactly one id; an array variant fans out
|
|
36
36
|
* into one id per element. `undefined` when a dimension of the set is missing.
|
|
37
37
|
*/
|
|
38
|
-
declare const getDictionaryCompositeIds: (dictionary: Dictionary, qualifierTypes: DictionaryQualifierType[]) => string[] | undefined;
|
|
38
|
+
export declare const getDictionaryCompositeIds: (dictionary: Dictionary, qualifierTypes: DictionaryQualifierType[]) => string[] | undefined;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { QUALIFIER_ORDER, getDictionaryCompositeIds, getDictionaryQualifierIds, getDictionaryQualifierTypes, getVariantIds };
|
|
41
40
|
//# sourceMappingURL=qualifiedDictionaryDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualifiedDictionaryDeclaration.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/qualifiedDictionaryDeclaration.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"qualifiedDictionaryDeclaration.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/qualifiedDictionaryDeclaration.ts"],"mappings":";;;;;;;qBAca;;;;;;;;qBAYA,gBAAa,SACf;;;;;;qBAeE,8BAA2B,YAC1B,eACX;;;;;;;;;qBAmBU,4BAAyB,YACxB,YAAU,eACP;;;;;;;qBAcJ,4BAAyB,YACxB,YAAU,gBACN"}
|
|
@@ -4,12 +4,12 @@ import { QUALIFIER_DYNAMIC_TYPES_KEY } from "@intlayer/config/defaultValues";
|
|
|
4
4
|
/**
|
|
5
5
|
* A lazily-imported per-locale dictionary chunk loader.
|
|
6
6
|
*/
|
|
7
|
-
type DynamicDictionaryLoader = () => Promise<Dictionary>;
|
|
7
|
+
export type DynamicDictionaryLoader = () => Promise<Dictionary>;
|
|
8
8
|
/**
|
|
9
9
|
* Nested tree of chunk loaders: one nesting level per declared dimension (in
|
|
10
10
|
* canonical order), leaves are loaders.
|
|
11
11
|
*/
|
|
12
|
-
type QualifiedDynamicLoaderTree = {
|
|
12
|
+
export type QualifiedDynamicLoaderTree = {
|
|
13
13
|
[segment: string]: QualifiedDynamicLoaderTree | DynamicDictionaryLoader;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
@@ -24,7 +24,7 @@ type QualifiedDynamicLoaderTree = {
|
|
|
24
24
|
* }
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
type QualifiedDynamicLoaderMap = {
|
|
27
|
+
export type QualifiedDynamicLoaderMap = {
|
|
28
28
|
[QUALIFIER_DYNAMIC_TYPES_KEY]: DictionaryQualifierType[];
|
|
29
29
|
[locale: string]: QualifiedDynamicLoaderTree | DictionaryQualifierType[];
|
|
30
30
|
};
|
|
@@ -32,7 +32,7 @@ type QualifiedDynamicLoaderMap = {
|
|
|
32
32
|
* Type guard discriminating a qualified dynamic loader map (collections /
|
|
33
33
|
* variants, possibly combined) from a plain dynamic loader map.
|
|
34
34
|
*/
|
|
35
|
-
declare const isQualifiedDynamicLoaderMap: (value: unknown) => value is QualifiedDynamicLoaderMap;
|
|
35
|
+
export declare const isQualifiedDynamicLoaderMap: (value: unknown) => value is QualifiedDynamicLoaderMap;
|
|
36
36
|
/**
|
|
37
37
|
* Resolves the content of a qualified dynamic loader map against a selector,
|
|
38
38
|
* loading only the chunk(s) the selector actually targets.
|
|
@@ -56,7 +56,7 @@ declare const isQualifiedDynamicLoaderMap: (value: unknown) => value is Qualifie
|
|
|
56
56
|
* @param loadChunk - Reads a started chunk promise, suspending until it resolves.
|
|
57
57
|
* @param transform - Turns a resolved chunk dictionary into final content.
|
|
58
58
|
*/
|
|
59
|
-
declare const resolveQualifiedDynamicContent: <Content>(params: {
|
|
59
|
+
export declare const resolveQualifiedDynamicContent: <Content>(params: {
|
|
60
60
|
loaderMap: QualifiedDynamicLoaderMap;
|
|
61
61
|
key: string;
|
|
62
62
|
locale: string;
|
|
@@ -75,7 +75,7 @@ declare const resolveQualifiedDynamicContent: <Content>(params: {
|
|
|
75
75
|
* @param selector - The selector splitting the qualifier dimensions.
|
|
76
76
|
* @param transform - Turns a resolved chunk dictionary into final content.
|
|
77
77
|
*/
|
|
78
|
-
declare const resolveQualifiedDynamicContentAsync: <Content>(params: {
|
|
78
|
+
export declare const resolveQualifiedDynamicContentAsync: <Content>(params: {
|
|
79
79
|
loaderMap: QualifiedDynamicLoaderMap;
|
|
80
80
|
key: string;
|
|
81
81
|
locale: string;
|
|
@@ -83,5 +83,5 @@ declare const resolveQualifiedDynamicContentAsync: <Content>(params: {
|
|
|
83
83
|
transform: (dictionary: Dictionary) => Content;
|
|
84
84
|
}) => Promise<Content | Content[] | null>;
|
|
85
85
|
//#endregion
|
|
86
|
-
export {
|
|
86
|
+
export { QUALIFIER_DYNAMIC_TYPES_KEY };
|
|
87
87
|
//# sourceMappingURL=qualifiedDynamicLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualifiedDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/qualifiedDynamicLoader.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"qualifiedDynamicLoader.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/qualifiedDynamicLoader.ts"],"mappings":";;;;;;YAuBY,gCAAgC,QAAQ;;;;;YAMxC;GACT,kBAAkB,6BAA6B;;;;;;;;;;;;;;YAetC;GACT,8BAA8B;GAC9B,iBAAiB,6BAA6B;;;;;;qBAOpC,8BAA2B,mBAErC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;qBAiHC,iCAAkC,SAAO;EACpD,WAAW;EACX;EACA;EACA,UAAU;EACV,YAAY,kBAAkB,SAAS,QAAQ,gBAAgB;EAC/D,YAAY,YAAY,eAAe;MACrC,UAAU;;;;;;;;;;;;qBAkCD,sCAA6C,SAAO;EAC/D,WAAW;EACX;EACA;EACA,UAAU;EACV,YAAY,YAAY,eAAe;MACrC,QAAQ,UAAU"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
2
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
3
|
//#region src/dictionaryManipulator/removeContentNodeByKeyPath.d.ts
|
|
4
|
-
declare const removeContentNodeByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[]) => ContentNode;
|
|
4
|
+
export declare const removeContentNodeByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[]) => ContentNode;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { removeContentNodeByKeyPath };
|
|
7
6
|
//# sourceMappingURL=removeContentNodeByKeyPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/removeContentNodeByKeyPath.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"removeContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/removeContentNodeByKeyPath.ts"],"mappings":";;;qBAKa,6BAA0B,mBAClB,aAAW,SACrB,cACR"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
2
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
3
|
//#region src/dictionaryManipulator/renameContentNodeByKeyPath.d.ts
|
|
4
|
-
declare const renameContentNodeByKeyPath: (dictionaryContent: ContentNode, newKey: KeyPath['key'], keyPath: KeyPath[]) => ContentNode;
|
|
4
|
+
export declare const renameContentNodeByKeyPath: (dictionaryContent: ContentNode, newKey: KeyPath['key'], keyPath: KeyPath[]) => ContentNode;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { renameContentNodeByKeyPath };
|
|
7
6
|
//# sourceMappingURL=renameContentNodeByKeyPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renameContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/renameContentNodeByKeyPath.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"renameContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/renameContentNodeByKeyPath.ts"],"mappings":";;;qBAKa,6BAA0B,mBAClB,aAAW,QACtB,gBAAc,SACb,cACR"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/dictionaryManipulator/updateNodeChildren.d.ts
|
|
3
|
-
declare const updateNodeChildren: <T extends ContentNode, U extends ContentNode>(section: T, newChildren: U) => ContentNode;
|
|
3
|
+
export declare const updateNodeChildren: <T extends ContentNode, U extends ContentNode>(section: T, newChildren: U) => ContentNode;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { updateNodeChildren };
|
|
6
5
|
//# sourceMappingURL=updateNodeChildren.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateNodeChildren.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/updateNodeChildren.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"updateNodeChildren.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/updateNodeChildren.ts"],"mappings":";;qBAIa,qBACX,UAAU,aACV,UAAU,aAAW,SAEZ,GAAC,aACG,MACZ"}
|
|
@@ -11,9 +11,8 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
|
11
11
|
* compact("1000000", { locale: Locales.FRENCH, compactDisplay: "long" });
|
|
12
12
|
* // "1 million"
|
|
13
13
|
*/
|
|
14
|
-
declare const compact: (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
14
|
+
export declare const compact: (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
15
15
|
locale?: LocalesValues;
|
|
16
16
|
}) => string;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { compact };
|
|
19
18
|
//# sourceMappingURL=compact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compact.d.ts","names":[],"sources":["../../../src/formatters/compact.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"compact.d.ts","names":[],"sources":["../../../src/formatters/compact.ts"],"mappings":";;;;;;;;;;;;;qBAea,UAAO,wBACI,UACZ,KAAK;EAAwB,SAAS"}
|
|
@@ -11,9 +11,8 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
|
11
11
|
* currency("5000", { locale: Locales.FRENCH, currency: "CAD", currencyDisplay: "code" });
|
|
12
12
|
* // "5 000,00 CAD"
|
|
13
13
|
*/
|
|
14
|
-
declare const currency: (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
14
|
+
export declare const currency: (value: string | number, options?: Intl.NumberFormatOptions & {
|
|
15
15
|
locale?: LocalesValues;
|
|
16
16
|
}) => string;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { currency };
|
|
19
18
|
//# sourceMappingURL=currency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency.d.ts","names":[],"sources":["../../../src/formatters/currency.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"currency.d.ts","names":[],"sources":["../../../src/formatters/currency.ts"],"mappings":";;;;;;;;;;;;;qBAea,WAAQ,wBACG,UACZ,KAAK;EAAwB,SAAS"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
2
|
//#region src/formatters/date.d.ts
|
|
3
|
-
type DateTimePreset = 'short' | 'long' | 'dateOnly' | 'timeOnly' | 'full';
|
|
4
|
-
declare const presets: Record<DateTimePreset, Intl.DateTimeFormatOptions>;
|
|
3
|
+
export type DateTimePreset = 'short' | 'long' | 'dateOnly' | 'timeOnly' | 'full';
|
|
4
|
+
export declare const presets: Record<DateTimePreset, Intl.DateTimeFormatOptions>;
|
|
5
5
|
/**
|
|
6
6
|
* Formats a date/time value into a localized string using Intl.DateTimeFormat.
|
|
7
7
|
*
|
|
@@ -13,9 +13,8 @@ declare const presets: Record<DateTimePreset, Intl.DateTimeFormatOptions>;
|
|
|
13
13
|
* date("2025-08-02T14:30:00Z", { locale: Locales.FRENCH, month: "long", day: "numeric" });
|
|
14
14
|
* // "2 août"
|
|
15
15
|
*/
|
|
16
|
-
declare const date: (date: Date | string | number, options?: (Intl.DateTimeFormatOptions & {
|
|
16
|
+
export declare const date: (date: Date | string | number, options?: (Intl.DateTimeFormatOptions & {
|
|
17
17
|
locale?: LocalesValues;
|
|
18
18
|
}) | DateTimePreset) => string;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { DateTimePreset, date, presets };
|
|
21
20
|
//# sourceMappingURL=date.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","names":[],"sources":["../../../src/formatters/date.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"date.d.ts","names":[],"sources":["../../../src/formatters/date.ts"],"mappings":";;YAIY;qBAOC,SAAS,OAAO,gBAAgB,KAAK;;;;;;;;;;;;qBA8CrC,OAAI,MACT,wBAAsB,WAEvB,KAAK;EAA0B,SAAS;KACzC"}
|
|
@@ -2,9 +2,9 @@ import { compact } from "./compact.js";
|
|
|
2
2
|
import { currency } from "./currency.js";
|
|
3
3
|
import { DateTimePreset, date, presets } from "./date.js";
|
|
4
4
|
import { CachedIntl, IntlConstructorName, WrappedIntl, bindIntl, getCachedIntl } from "../utils/intl.js";
|
|
5
|
-
import { list } from "./list.js";
|
|
5
|
+
import { ListFormatOptions, list } from "./list.js";
|
|
6
6
|
import { number } from "./number.js";
|
|
7
7
|
import { percentage } from "./percentage.js";
|
|
8
8
|
import { relativeTime } from "./relativeTime.js";
|
|
9
9
|
import { units } from "./units.js";
|
|
10
|
-
export { CachedIntl, CachedIntl as Intl, DateTimePreset, IntlConstructorName, WrappedIntl, bindIntl, compact, currency, date, getCachedIntl, list, number, percentage, presets, relativeTime, units };
|
|
10
|
+
export { CachedIntl, CachedIntl as Intl, DateTimePreset, IntlConstructorName, ListFormatOptions, WrappedIntl, bindIntl, compact, currency, date, getCachedIntl, list, number, percentage, presets, relativeTime, units };
|