@intlayer/core 9.4.2 → 9.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/formatters/list.cjs.map +1 -1
- package/dist/esm/formatters/list.mjs.map +1 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +7 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +7 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +6 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/formatters/compact.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/currency.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/date.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/index.d.ts +9 -0
- package/dist/types/@intlayer/core/dist/types/formatters/list.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/number.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/percentage.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/relativeTime.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/formatters/units.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/dictionaryTransformCache.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getCondition.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +3 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +3 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +7 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +6 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayerAsync.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getNesting.d.ts +6 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +3 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +18 -0
- package/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +6 -0
- package/dist/types/@intlayer/core/dist/types/localization/comparePaths.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/domainUtils.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/generateSitemap.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getCanonicalPath.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocale.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleName.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/getPrefix.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/index.d.ts +22 -0
- package/dist/types/@intlayer/core/dist/types/localization/localeDetector.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/localeMapper.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/localeResolver.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/rewriteMatch.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/localization/validatePrefix.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/markdown/index.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/condition/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/file/file.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/file/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/gender/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/html/html.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/html/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +22 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +4 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/plural/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/select/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/select/select.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/translation/index.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +2 -0
- package/dist/types/@intlayer/core/dist/types/utils/index.d.ts +3 -0
- package/dist/types/@intlayer/core/dist/types/utils/intl.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +1 -0
- package/dist/types/@intlayer/core/dist/types/utils/localeStorage.d.ts +2 -0
- 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 +12 -13
- 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 +2 -2
- 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 +2 -3
- 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/intlayer/dist/types/index.d.ts +14 -0
- 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 +7 -8
- package/dist/types/markdown/compiler.d.ts.map +1 -1
- package/dist/types/markdown/constants.d.ts +83 -84
- package/dist/types/markdown/constants.d.ts.map +1 -1
- package/dist/types/markdown/parser.d.ts +1 -2
- package/dist/types/markdown/parser.d.ts.map +1 -1
- package/dist/types/markdown/renderer.d.ts +2 -3
- package/dist/types/markdown/renderer.d.ts.map +1 -1
- package/dist/types/markdown/types.d.ts +49 -50
- package/dist/types/markdown/types.d.ts.map +1 -1
- package/dist/types/markdown/utils.d.ts +30 -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 +8 -8
|
@@ -4,7 +4,7 @@ import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
|
4
4
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
5
|
//#region src/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts
|
|
6
6
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
7
|
-
declare const filterMissingTranslationsOnlyPlugin: (localeToCheck: LocalesValues) => Plugins;
|
|
7
|
+
export declare const filterMissingTranslationsOnlyPlugin: (localeToCheck: LocalesValues) => Plugins;
|
|
8
8
|
/**
|
|
9
9
|
* For each translation node, it compare is both localeToCheck and baseLocale are present.
|
|
10
10
|
*
|
|
@@ -19,8 +19,8 @@ declare const filterMissingTranslationsOnlyPlugin: (localeToCheck: LocalesValues
|
|
|
19
19
|
* { test2: t({ ar: 'Hello', en: 'Hello' }) } -> { test2: t({ ar: 'Hello', en: 'Hello' }) }
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
declare const getFilterMissingTranslationsContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, localeToCheck: L, nodeProps: NodeProps) => any;
|
|
23
|
-
declare const getFilterMissingTranslationsDictionary: (dictionary: Dictionary, localeToCheck: LocalesValues) => {
|
|
22
|
+
export declare const getFilterMissingTranslationsContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, localeToCheck: L, nodeProps: NodeProps) => any;
|
|
23
|
+
export declare const getFilterMissingTranslationsDictionary: (dictionary: Dictionary, localeToCheck: LocalesValues) => {
|
|
24
24
|
$schema?: "https://intlayer.org/schema.json";
|
|
25
25
|
id?: import("@intlayer/types").DictionaryId;
|
|
26
26
|
projectIds?: string[];
|
|
@@ -48,5 +48,4 @@ declare const getFilterMissingTranslationsDictionary: (dictionary: Dictionary, l
|
|
|
48
48
|
content: any;
|
|
49
49
|
};
|
|
50
50
|
//#endregion
|
|
51
|
-
export { filterMissingTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary };
|
|
52
51
|
//# sourceMappingURL=getFilterMissingTranslationsContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"mappings":";;;;;;qBAoMa,sCAAmC,eAC/B,kBACd;;;;;;;;;;;;;;;qBA6LU,sCACX,UAAU,aACV,UAAU,gBAAgB,iBAAe,MAEnC,GAAC,eACQ,GAAC,WACL;qBAoBA,yCAAsC,YACrC,YAAU,eACP"}
|
|
@@ -4,15 +4,15 @@ import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
|
4
4
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
5
|
//#region src/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts
|
|
6
6
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
7
|
-
declare const filterTranslationsOnlyPlugin: (locale: LocalesValues, fallback?: LocalesValues) => Plugins;
|
|
7
|
+
export declare const filterTranslationsOnlyPlugin: (locale: LocalesValues, fallback?: LocalesValues) => Plugins;
|
|
8
8
|
/**
|
|
9
9
|
* Return the content of a node with only the translation plugin.
|
|
10
10
|
*
|
|
11
11
|
* @param node The node to transform.
|
|
12
12
|
* @param locale The locale to use if your transformers need it (e.g. for translations).
|
|
13
13
|
*/
|
|
14
|
-
declare const getFilterTranslationsOnlyContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
15
|
-
declare const getFilterTranslationsOnlyDictionary: (dictionary: Dictionary, locale?: LocalesValues, fallback?: LocalesValues) => {
|
|
14
|
+
export declare const getFilterTranslationsOnlyContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
15
|
+
export declare const getFilterTranslationsOnlyDictionary: (dictionary: Dictionary, locale?: LocalesValues, fallback?: LocalesValues) => {
|
|
16
16
|
$schema?: "https://intlayer.org/schema.json";
|
|
17
17
|
id?: import("@intlayer/types").DictionaryId;
|
|
18
18
|
projectIds?: string[];
|
|
@@ -40,5 +40,4 @@ declare const getFilterTranslationsOnlyDictionary: (dictionary: Dictionary, loca
|
|
|
40
40
|
content: any;
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
43
|
-
export { filterTranslationsOnlyPlugin, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary };
|
|
44
43
|
//# sourceMappingURL=getFilterTranslationsOnlyContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"mappings":";;;;;;qBAqCa,+BAA4B,QAC/B,eAAa,WACV,kBACV;;;;;;;qBAoFU,mCACX,UAAU,aACV,UAAU,gBAAgB,iBAAe,MAEnC,GAAC,QACC,GAAC,WAEE,WAAS,WACT,kBAUL,qBAAqB;qBAGhB,sCAAmC,YAClC,YAAU,SACd,eAAa,WAEV"}
|
|
@@ -3,8 +3,8 @@ import "../interpreter/index.js";
|
|
|
3
3
|
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
5
|
//#region src/deepTransformPlugins/getFilteredLocalesContent.d.ts
|
|
6
|
-
declare const getFilteredLocalesContent: (node: ContentNode, locales: LocalesValues | LocalesValues[], nodeProps: NodeProps) => any;
|
|
7
|
-
declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: LocalesValues | LocalesValues[]) => {
|
|
6
|
+
export declare const getFilteredLocalesContent: (node: ContentNode, locales: LocalesValues | LocalesValues[], nodeProps: NodeProps) => any;
|
|
7
|
+
export declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: LocalesValues | LocalesValues[]) => {
|
|
8
8
|
$schema?: "https://intlayer.org/schema.json";
|
|
9
9
|
id?: import("@intlayer/types").DictionaryId;
|
|
10
10
|
projectIds?: string[];
|
|
@@ -32,5 +32,4 @@ declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: Loc
|
|
|
32
32
|
content: any;
|
|
33
33
|
};
|
|
34
34
|
//#endregion
|
|
35
|
-
export { getFilteredLocalesContent, getFilteredLocalesDictionary };
|
|
36
35
|
//# sourceMappingURL=getFilteredLocalesContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"mappings":";;;;;qBAuCa,4BAAyB,MAC9B,aAAW,SACR,gBAAgB,iBAAe,WAC7B;qBAwBA,+BAA4B,YAC3B,YAAU,QACd,gBAAgB"}
|
|
@@ -11,8 +11,7 @@ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentat
|
|
|
11
11
|
* @param node The node to transform.
|
|
12
12
|
* @param locale The locale to use if your transformers need it (e.g. for translations).
|
|
13
13
|
*/
|
|
14
|
-
declare const getLocalizedContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
15
|
-
declare const getPerLocaleDictionary: <T extends Dictionary, L extends LocalesValues>(dictionary: T, locale: L, fallback?: LocalesValues) => Dictionary;
|
|
14
|
+
export declare const getLocalizedContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
15
|
+
export declare const getPerLocaleDictionary: <T extends Dictionary, L extends LocalesValues>(dictionary: T, locale: L, fallback?: LocalesValues) => Dictionary;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { getLocalizedContent, getPerLocaleDictionary };
|
|
18
17
|
//# sourceMappingURL=getLocalizedContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocalizedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getLocalizedContent.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getLocalizedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getLocalizedContent.ts"],"mappings":";;;;;;;;;;;;;qBAqBa,sBACX,UAAU,aACV,UAAU,gBAAgB,iBAAe,MAEnC,GAAC,QACC,GAAC,WACE,WAAS,WACT,kBAUL,qBAAqB;qBAGhB,yBACX,UAAU,YACV,UAAU,eAAa,YAEX,GAAC,QACL,GAAC,WACE,kBACV"}
|
|
@@ -3,8 +3,7 @@ import "../interpreter/index.js";
|
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
//#region src/deepTransformPlugins/getMaskContent.d.ts
|
|
5
5
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
6
|
-
declare const buildMaskPlugin: Plugins;
|
|
7
|
-
declare const getMaskContent: (source: Dictionary) => any;
|
|
6
|
+
export declare const buildMaskPlugin: Plugins;
|
|
7
|
+
export declare const getMaskContent: (source: Dictionary) => any;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { buildMaskPlugin, getMaskContent };
|
|
10
9
|
//# sourceMappingURL=getMaskContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMaskContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMaskContent.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"getMaskContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMaskContent.ts"],"mappings":";;;;;qBAYa,iBAAiB;qBAMjB,iBAAc,QAAY"}
|
|
@@ -5,15 +5,14 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
|
5
5
|
import { Locale } from "@intlayer/types/allLocales";
|
|
6
6
|
//#region src/deepTransformPlugins/getMissingLocalesContent.d.ts
|
|
7
7
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
8
|
-
declare const checkMissingLocalesPlugin: (locales: Locale[], onMissingLocale: (locale: Locale) => void) => Plugins;
|
|
8
|
+
export declare const checkMissingLocalesPlugin: (locales: Locale[], onMissingLocale: (locale: Locale) => void) => Plugins;
|
|
9
9
|
/**
|
|
10
10
|
* Return the content of a node with only the translation plugin.
|
|
11
11
|
*
|
|
12
12
|
* @param node The node to transform.
|
|
13
13
|
* @param locales The locales to check for missing translations.
|
|
14
14
|
*/
|
|
15
|
-
declare const getMissingLocalesContent: <T extends ContentNode>(node: T, locales: LocalesValues[], nodeProps: NodeProps) => Locale[];
|
|
16
|
-
declare const getMissingLocalesContentFromDictionary: (dictionary: Dictionary, locales?: LocalesValues[]) => Locale[];
|
|
15
|
+
export declare const getMissingLocalesContent: <T extends ContentNode>(node: T, locales: LocalesValues[], nodeProps: NodeProps) => Locale[];
|
|
16
|
+
export declare const getMissingLocalesContentFromDictionary: (dictionary: Dictionary, locales?: LocalesValues[]) => Locale[];
|
|
17
17
|
//#endregion
|
|
18
|
-
export { checkMissingLocalesPlugin, getMissingLocalesContent, getMissingLocalesContentFromDictionary };
|
|
19
18
|
//# sourceMappingURL=getMissingLocalesContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMissingLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMissingLocalesContent.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"getMissingLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMissingLocalesContent.ts"],"mappings":";;;;;;;qBAiGa,4BAAyB,SAC3B,UAAQ,kBACC,QAAQ,oBACzB;;;;;;;qBAuGU,2BAA4B,UAAU,aAAW,MACtD,GAAC,SACE,iBAAe,WAEb,cACV;qBAuBU,yCAAsC,YACrC,YAAU,UACb,oBAAe"}
|
|
@@ -25,7 +25,6 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
25
25
|
* }
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
declare const getMultilingualDictionary: (dictionary: Dictionary) => Dictionary;
|
|
28
|
+
export declare const getMultilingualDictionary: (dictionary: Dictionary) => Dictionary;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { getMultilingualDictionary };
|
|
31
30
|
//# sourceMappingURL=getMultilingualDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMultilingualDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMultilingualDictionary.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getMultilingualDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMultilingualDictionary.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmCa,4BAAyB,YACxB,eACX"}
|
|
@@ -2,7 +2,6 @@ import { NodeProps } from "../interpreter/getContent/plugins.js";
|
|
|
2
2
|
import "../interpreter/index.js";
|
|
3
3
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
4
4
|
//#region src/deepTransformPlugins/getReplacedValuesContent.d.ts
|
|
5
|
-
declare const getReplacedValuesContent: (node: ContentNode, value: string | number | boolean, nodeProps: NodeProps) => any;
|
|
5
|
+
export declare const getReplacedValuesContent: (node: ContentNode, value: string | number | boolean, nodeProps: NodeProps) => any;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { getReplacedValuesContent };
|
|
8
7
|
//# sourceMappingURL=getReplacedValuesContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getReplacedValuesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getReplacedValuesContent.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"getReplacedValuesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getReplacedValuesContent.ts"],"mappings":";;;;qBA8Da,2BAAwB,MAC7B,aAAW,kCACe,WACrB"}
|
|
@@ -4,7 +4,7 @@ import { DeclaredLocales } from "@intlayer/types/module_augmentation";
|
|
|
4
4
|
type SplittedContentOutput<T = ContentNode> = Record<DeclaredLocales, T> & {
|
|
5
5
|
common: T;
|
|
6
6
|
};
|
|
7
|
-
declare const getSplittedContent: (content: ContentNode) => SplittedContentOutput;
|
|
7
|
+
export declare const getSplittedContent: (content: ContentNode) => SplittedContentOutput;
|
|
8
8
|
/**
|
|
9
9
|
* Splits the `content` field of a Dictionary into "common" and per-locale buckets.
|
|
10
10
|
*
|
|
@@ -36,7 +36,6 @@ declare const getSplittedContent: (content: ContentNode) => SplittedContentOutpu
|
|
|
36
36
|
* @param dictionary - The input dictionary object with possible multilingual or common content.
|
|
37
37
|
* @returns An object mapping "common" and each locale to their corresponding content subtrees.
|
|
38
38
|
*/
|
|
39
|
-
declare const getSplittedDictionaryContent: (dictionary: Dictionary) => SplittedContentOutput<Dictionary['content']>;
|
|
39
|
+
export declare const getSplittedDictionaryContent: (dictionary: Dictionary) => SplittedContentOutput<Dictionary['content']>;
|
|
40
40
|
//#endregion
|
|
41
|
-
export { getSplittedContent, getSplittedDictionaryContent };
|
|
42
41
|
//# sourceMappingURL=getSplittedContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSplittedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getSplittedContent.ts"],"mappings":";;;KAIK,sBAAsB,IAAI,eAAe,OAAO,iBAAiB;EACpE,QAAQ;;
|
|
1
|
+
{"version":3,"file":"getSplittedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getSplittedContent.ts"],"mappings":";;;KAIK,sBAAsB,IAAI,eAAe,OAAO,iBAAiB;EACpE,QAAQ;;qBAsKG,qBAAkB,SACpB,gBACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDU,+BAA4B,YAC3B,eACX,sBAAsB"}
|
|
@@ -18,7 +18,6 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
|
18
18
|
* // With locale - insert content for specific locale
|
|
19
19
|
* insertContentInDictionary(dictionary, { title: 'このページ' }, 'ja')
|
|
20
20
|
*/
|
|
21
|
-
declare const insertContentInDictionary: (dictionary: Dictionary, content: Dictionary['content'], locale?: LocalesValues) => Dictionary;
|
|
21
|
+
export declare const insertContentInDictionary: (dictionary: Dictionary, content: Dictionary['content'], locale?: LocalesValues) => Dictionary;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { insertContentInDictionary };
|
|
24
23
|
//# sourceMappingURL=insertContentInDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertContentInDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/insertContentInDictionary.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"insertContentInDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/insertContentInDictionary.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAkQa,4BAAyB,YACxB,YAAU,SACb,uBAAqB,SACrB,kBACR"}
|
|
@@ -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/editDictionaryByKeyPath.d.ts
|
|
4
|
-
declare const editDictionaryByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[], newValue: ContentNode) => ContentNode;
|
|
4
|
+
export declare const editDictionaryByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[], newValue: ContentNode) => ContentNode;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { editDictionaryByKeyPath };
|
|
7
6
|
//# sourceMappingURL=editDictionaryByKeyPath.d.ts.map
|
|
@@ -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"}
|
|
@@ -5,13 +5,13 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
|
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: ProviderVariant | undefined, dictionaryKey: string) => DictionaryVariantChain | undefined;
|
|
120
|
+
export declare const resolveProviderVariant: (providerVariant: ProviderVariant | 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,7 +132,7 @@ 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
138
|
contextVariant?: ProviderVariant;
|
|
@@ -142,7 +142,6 @@ declare const resolveDictionaryArgument: (params: {
|
|
|
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,6BAA2B,0BAE3C;;;;;;;;;;;;;;;qBA0BU,4BAAyB;EACpC,mBAAmB,gBAAgB;EACnC,gBAAgB;EAChB,iBAAiB;EACjB;MACE,gBAAgB;;;;;qBAqCP,gCAA6B,WAC7B"}
|