@intlayer/core 9.6.0 → 9.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/cjs/deepTransformPlugins/getEditedContent.cjs +2 -3
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +5 -6
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +4 -5
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +3 -4
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs +3 -4
- package/dist/cjs/deepTransformPlugins/getMaskContent.cjs +2 -3
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +3 -4
- package/dist/cjs/deepTransformPlugins/getMultilingualDictionary.cjs +3 -4
- package/dist/cjs/deepTransformPlugins/getReplacedValuesContent.cjs +2 -3
- package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs +2 -3
- package/dist/cjs/deepTransformPlugins/index.cjs +11 -11
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +7 -4
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/getNestedDictionaryReferences.cjs +1 -2
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs +3 -4
- package/dist/cjs/dictionaryManipulator/index.cjs +31 -21
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +3 -4
- package/dist/cjs/dictionaryManipulator/mergeQualifiedDictionaries.cjs +4 -5
- package/dist/cjs/dictionaryManipulator/normalizeDictionary.cjs +4 -5
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs +1 -2
- package/dist/cjs/dictionaryManipulator/plainDynamicLoader.cjs +1 -2
- package/dist/cjs/dictionaryManipulator/preloadedDynamicLoader.cjs +7 -3
- package/dist/cjs/dictionaryManipulator/qualifiedDictionary.cjs +1 -2
- package/dist/cjs/dictionaryManipulator/qualifiedDictionaryDeclaration.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/qualifiedDynamicLoader.cjs +8 -4
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +2 -3
- package/dist/cjs/formatters/compact.cjs +3 -5
- package/dist/cjs/formatters/compact.cjs.map +1 -1
- package/dist/cjs/formatters/currency.cjs +3 -5
- package/dist/cjs/formatters/currency.cjs.map +1 -1
- package/dist/cjs/formatters/date.cjs +3 -5
- package/dist/cjs/formatters/date.cjs.map +1 -1
- package/dist/cjs/formatters/index.cjs +9 -9
- package/dist/cjs/formatters/list.cjs +3 -5
- package/dist/cjs/formatters/list.cjs.map +1 -1
- package/dist/cjs/formatters/number.cjs +3 -5
- package/dist/cjs/formatters/number.cjs.map +1 -1
- package/dist/cjs/formatters/percentage.cjs +3 -5
- package/dist/cjs/formatters/percentage.cjs.map +1 -1
- package/dist/cjs/formatters/relativeTime.cjs +3 -5
- package/dist/cjs/formatters/relativeTime.cjs.map +1 -1
- package/dist/cjs/formatters/units.cjs +3 -5
- package/dist/cjs/formatters/units.cjs.map +1 -1
- package/dist/cjs/index.cjs +130 -119
- package/dist/cjs/interpreter/dictionaryTransformCache.cjs +1 -2
- package/dist/cjs/interpreter/getCondition.cjs +1 -2
- package/dist/cjs/interpreter/getContent/deepTransform.cjs +2 -3
- package/dist/cjs/interpreter/getContent/getContent.cjs +3 -4
- package/dist/cjs/interpreter/getContent/index.cjs +3 -3
- package/dist/cjs/interpreter/getContent/plugins.cjs +17 -16
- package/dist/cjs/interpreter/getContent/plugins.cjs.map +1 -1
- package/dist/cjs/interpreter/getDictionary.cjs +5 -6
- package/dist/cjs/interpreter/getDictionaryAsync.cjs +7 -8
- package/dist/cjs/interpreter/getEnumeration.cjs +1 -2
- package/dist/cjs/interpreter/getGender.cjs +1 -2
- package/dist/cjs/interpreter/getHTML.cjs +1 -2
- package/dist/cjs/interpreter/getInsertion.cjs +1 -2
- package/dist/cjs/interpreter/getIntlayer.cjs +2 -3
- package/dist/cjs/interpreter/getIntlayerAsync.cjs +3 -4
- package/dist/cjs/interpreter/getNesting.cjs +2 -3
- package/dist/cjs/interpreter/getNesting.optimized.cjs +2 -3
- package/dist/cjs/interpreter/getPlural.cjs +2 -3
- package/dist/cjs/interpreter/getSelect.cjs +1 -2
- package/dist/cjs/interpreter/getTranslation.cjs +1 -2
- package/dist/cjs/interpreter/index.cjs +20 -20
- package/dist/cjs/interpreter/interpolableNode.cjs +3 -4
- package/dist/cjs/interpreter/resolveInterpreterLocale.cjs +2 -3
- package/dist/cjs/interpreter/splitAndJoinInsertion.cjs +1 -2
- package/dist/cjs/localization/comparePaths.cjs +3 -4
- package/dist/cjs/localization/domainUtils.cjs +1 -2
- package/dist/cjs/localization/generateSitemap.cjs +4 -5
- package/dist/cjs/localization/getBrowserLocale.cjs +3 -4
- package/dist/cjs/localization/getCanonicalPath.cjs +2 -3
- package/dist/cjs/localization/getHTMLTextDir.cjs +1 -2
- package/dist/cjs/localization/getLocale.cjs +4 -5
- package/dist/cjs/localization/getLocaleFromPath.cjs +3 -4
- package/dist/cjs/localization/getLocaleFromRequest.cjs +5 -6
- package/dist/cjs/localization/getLocaleLang.cjs +1 -2
- package/dist/cjs/localization/getLocaleName.cjs +2 -3
- package/dist/cjs/localization/getLocalizedPath.cjs +6 -7
- package/dist/cjs/localization/getLocalizedUrl.cjs +5 -6
- package/dist/cjs/localization/getMultilingualUrls.cjs +3 -4
- package/dist/cjs/localization/getPathWithoutLocale.cjs +2 -3
- package/dist/cjs/localization/getPrefix.cjs +2 -3
- package/dist/cjs/localization/index.cjs +24 -24
- package/dist/cjs/localization/localeDetector.cjs +2 -3
- package/dist/cjs/localization/localeMapper.cjs +2 -3
- package/dist/cjs/localization/localeResolver.cjs +1 -2
- package/dist/cjs/localization/proxyMode.cjs +2 -3
- package/dist/cjs/localization/resolveBrowserLocale.cjs +5 -6
- package/dist/cjs/localization/rewriteMatch.cjs +1 -2
- package/dist/cjs/localization/rewriteUtils.cjs +3 -4
- package/dist/cjs/localization/validatePrefix.cjs +2 -3
- package/dist/cjs/markdown/compiler.cjs +6 -7
- package/dist/cjs/markdown/constants.cjs +6 -4
- package/dist/cjs/markdown/constants.cjs.map +1 -1
- package/dist/cjs/markdown/elementScanner.cjs +1 -2
- package/dist/cjs/markdown/index.cjs +8 -8
- package/dist/cjs/markdown/parser.cjs +3 -4
- package/dist/cjs/markdown/renderer.cjs +1 -2
- package/dist/cjs/markdown/utils.cjs +2 -3
- package/dist/cjs/messageFormat/ICU.cjs +9 -10
- package/dist/cjs/messageFormat/i18next.cjs +9 -10
- package/dist/cjs/messageFormat/index.cjs +6 -6
- package/dist/cjs/messageFormat/navigatePath.cjs +1 -2
- package/dist/cjs/messageFormat/po.cjs +8 -9
- package/dist/cjs/messageFormat/resolveMessage.cjs +9 -10
- package/dist/cjs/messageFormat/verify-icu-format.cjs +5 -6
- package/dist/cjs/messageFormat/vue-i18n.cjs +5 -6
- package/dist/cjs/transpiler/condition/condition.cjs +1 -2
- package/dist/cjs/transpiler/condition/index.cjs +1 -1
- package/dist/cjs/transpiler/enumeration/enumeration.cjs +1 -2
- package/dist/cjs/transpiler/enumeration/index.cjs +1 -1
- package/dist/cjs/transpiler/file/file.cjs +1 -2
- package/dist/cjs/transpiler/file/fileBrowser.cjs +1 -2
- package/dist/cjs/transpiler/file/index.cjs +1 -1
- package/dist/cjs/transpiler/gender/gender.cjs +1 -2
- package/dist/cjs/transpiler/gender/index.cjs +1 -1
- package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs +1 -2
- package/dist/cjs/transpiler/html/html.cjs +3 -4
- package/dist/cjs/transpiler/html/htmlTags.cjs +1 -2
- package/dist/cjs/transpiler/html/index.cjs +3 -3
- package/dist/cjs/transpiler/html/validateHTML.cjs +1 -2
- package/dist/cjs/transpiler/index.cjs +16 -15
- package/dist/cjs/transpiler/insertion/getInsertionValues.cjs +1 -2
- package/dist/cjs/transpiler/insertion/index.cjs +2 -2
- package/dist/cjs/transpiler/insertion/insertion.cjs +2 -3
- package/dist/cjs/transpiler/markdown/getMarkdownMetadata.cjs +2 -3
- package/dist/cjs/transpiler/markdown/index.cjs +3 -3
- package/dist/cjs/transpiler/markdown/markdown.cjs +5 -6
- package/dist/cjs/transpiler/markdown/validateMarkdown.cjs +2 -3
- package/dist/cjs/transpiler/nesting/index.cjs +1 -1
- package/dist/cjs/transpiler/nesting/nesting.cjs +1 -2
- package/dist/cjs/transpiler/plural/index.cjs +2 -1
- package/dist/cjs/transpiler/plural/plural.cjs +21 -3
- package/dist/cjs/transpiler/plural/plural.cjs.map +1 -1
- package/dist/cjs/transpiler/select/index.cjs +1 -1
- package/dist/cjs/transpiler/select/select.cjs +1 -2
- package/dist/cjs/transpiler/translation/index.cjs +1 -1
- package/dist/cjs/transpiler/translation/translation.cjs +1 -2
- package/dist/cjs/utils/checkIsURLAbsolute.cjs +1 -2
- package/dist/cjs/utils/cookieExpiry.cjs +1 -2
- package/dist/cjs/utils/getCookie.cjs +1 -2
- package/dist/cjs/utils/index.cjs +9 -9
- package/dist/cjs/utils/intl.cjs +3 -29
- package/dist/cjs/utils/intl.cjs.map +1 -1
- package/dist/cjs/utils/intlayerNodePrototype.cjs +1 -2
- package/dist/cjs/utils/isSameKeyPath.cjs +1 -2
- package/dist/cjs/utils/isValidReactElement.cjs +1 -2
- package/dist/cjs/utils/localeStorage.cjs +3 -4
- package/dist/cjs/utils/parseYaml.cjs +1 -2
- package/dist/cjs/utils/stringifyYaml.cjs +1 -2
- package/dist/esm/deepTransformPlugins/getEditedContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getFilterMissingTranslationsContent.mjs +2 -3
- package/dist/esm/deepTransformPlugins/getFilterTranslationsOnlyContent.mjs +2 -3
- package/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +2 -3
- package/dist/esm/deepTransformPlugins/getMaskContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getMissingLocalesContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getReplacedValuesContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getSplittedContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/insertContentInDictionary.mjs +1 -2
- package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs +6 -3
- package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getDefaultNode.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getEmptyNode.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getNestedDictionaryReferences.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getNodeChildren.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getNodeType.mjs +1 -2
- package/dist/esm/dictionaryManipulator/index.mjs +6 -6
- package/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +1 -2
- package/dist/esm/dictionaryManipulator/mergeQualifiedDictionaries.mjs +2 -3
- package/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +2 -3
- package/dist/esm/dictionaryManipulator/orderDictionaries.mjs +1 -2
- package/dist/esm/dictionaryManipulator/plainDynamicLoader.mjs +1 -2
- package/dist/esm/dictionaryManipulator/preloadedDynamicLoader.mjs +1 -2
- package/dist/esm/dictionaryManipulator/qualifiedDictionary.mjs +1 -2
- package/dist/esm/dictionaryManipulator/qualifiedDictionaryDeclaration.mjs +1 -2
- package/dist/esm/dictionaryManipulator/qualifiedDynamicLoader.mjs +1 -2
- package/dist/esm/dictionaryManipulator/removeContentNodeByKeyPath.mjs +1 -2
- package/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs +1 -2
- package/dist/esm/dictionaryManipulator/updateNodeChildren.mjs +1 -2
- package/dist/esm/formatters/compact.mjs +2 -4
- package/dist/esm/formatters/compact.mjs.map +1 -1
- package/dist/esm/formatters/currency.mjs +2 -4
- package/dist/esm/formatters/currency.mjs.map +1 -1
- package/dist/esm/formatters/date.mjs +2 -4
- package/dist/esm/formatters/date.mjs.map +1 -1
- package/dist/esm/formatters/list.mjs +2 -4
- package/dist/esm/formatters/list.mjs.map +1 -1
- package/dist/esm/formatters/number.mjs +2 -4
- package/dist/esm/formatters/number.mjs.map +1 -1
- package/dist/esm/formatters/percentage.mjs +2 -4
- package/dist/esm/formatters/percentage.mjs.map +1 -1
- package/dist/esm/formatters/relativeTime.mjs +2 -4
- package/dist/esm/formatters/relativeTime.mjs.map +1 -1
- package/dist/esm/formatters/units.mjs +2 -4
- package/dist/esm/formatters/units.mjs.map +1 -1
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/interpreter/dictionaryTransformCache.mjs +1 -2
- package/dist/esm/interpreter/getCondition.mjs +1 -2
- package/dist/esm/interpreter/getContent/deepTransform.mjs +1 -2
- package/dist/esm/interpreter/getContent/getContent.mjs +1 -2
- package/dist/esm/interpreter/getContent/index.mjs +1 -1
- package/dist/esm/interpreter/getContent/plugins.mjs +6 -5
- package/dist/esm/interpreter/getContent/plugins.mjs.map +1 -1
- package/dist/esm/interpreter/getDictionary.mjs +3 -4
- package/dist/esm/interpreter/getDictionaryAsync.mjs +5 -6
- package/dist/esm/interpreter/getEnumeration.mjs +1 -2
- package/dist/esm/interpreter/getGender.mjs +1 -2
- package/dist/esm/interpreter/getHTML.mjs +1 -2
- package/dist/esm/interpreter/getInsertion.mjs +1 -2
- package/dist/esm/interpreter/getIntlayer.mjs +1 -2
- package/dist/esm/interpreter/getIntlayerAsync.mjs +2 -3
- package/dist/esm/interpreter/getNesting.mjs +1 -2
- package/dist/esm/interpreter/getNesting.optimized.mjs +1 -2
- package/dist/esm/interpreter/getPlural.mjs +1 -2
- package/dist/esm/interpreter/getSelect.mjs +1 -2
- package/dist/esm/interpreter/getTranslation.mjs +1 -2
- package/dist/esm/interpreter/index.mjs +7 -7
- package/dist/esm/interpreter/interpolableNode.mjs +1 -2
- package/dist/esm/interpreter/resolveInterpreterLocale.mjs +1 -2
- package/dist/esm/interpreter/splitAndJoinInsertion.mjs +1 -2
- package/dist/esm/localization/comparePaths.mjs +1 -2
- package/dist/esm/localization/domainUtils.mjs +1 -2
- package/dist/esm/localization/generateSitemap.mjs +2 -3
- package/dist/esm/localization/getBrowserLocale.mjs +1 -2
- package/dist/esm/localization/getCanonicalPath.mjs +1 -2
- package/dist/esm/localization/getHTMLTextDir.mjs +1 -2
- package/dist/esm/localization/getLocale.mjs +2 -3
- package/dist/esm/localization/getLocaleFromPath.mjs +1 -2
- package/dist/esm/localization/getLocaleFromRequest.mjs +2 -3
- package/dist/esm/localization/getLocaleLang.mjs +1 -2
- package/dist/esm/localization/getLocaleName.mjs +1 -2
- package/dist/esm/localization/getLocalizedPath.mjs +3 -4
- package/dist/esm/localization/getLocalizedUrl.mjs +2 -3
- package/dist/esm/localization/getMultilingualUrls.mjs +2 -3
- package/dist/esm/localization/getPathWithoutLocale.mjs +1 -2
- package/dist/esm/localization/getPrefix.mjs +1 -2
- package/dist/esm/localization/index.mjs +10 -10
- package/dist/esm/localization/localeDetector.mjs +1 -2
- package/dist/esm/localization/localeMapper.mjs +1 -2
- package/dist/esm/localization/localeResolver.mjs +1 -2
- package/dist/esm/localization/proxyMode.mjs +1 -2
- package/dist/esm/localization/resolveBrowserLocale.mjs +2 -3
- package/dist/esm/localization/rewriteMatch.mjs +1 -2
- package/dist/esm/localization/rewriteUtils.mjs +2 -3
- package/dist/esm/localization/validatePrefix.mjs +1 -2
- package/dist/esm/markdown/compiler.mjs +2 -3
- package/dist/esm/markdown/constants.mjs +6 -4
- package/dist/esm/markdown/constants.mjs.map +1 -1
- package/dist/esm/markdown/elementScanner.mjs +1 -2
- package/dist/esm/markdown/index.mjs +2 -2
- package/dist/esm/markdown/parser.mjs +1 -2
- package/dist/esm/markdown/renderer.mjs +1 -2
- package/dist/esm/markdown/utils.mjs +1 -2
- package/dist/esm/messageFormat/ICU.mjs +1 -2
- package/dist/esm/messageFormat/i18next.mjs +1 -2
- package/dist/esm/messageFormat/index.mjs +1 -1
- package/dist/esm/messageFormat/navigatePath.mjs +1 -2
- package/dist/esm/messageFormat/po.mjs +1 -2
- package/dist/esm/messageFormat/resolveMessage.mjs +2 -3
- package/dist/esm/messageFormat/verify-icu-format.mjs +1 -2
- package/dist/esm/messageFormat/vue-i18n.mjs +1 -2
- package/dist/esm/transpiler/condition/condition.mjs +1 -2
- package/dist/esm/transpiler/enumeration/enumeration.mjs +1 -2
- package/dist/esm/transpiler/file/file.mjs +1 -2
- package/dist/esm/transpiler/file/fileBrowser.mjs +1 -2
- package/dist/esm/transpiler/gender/gender.mjs +1 -2
- package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs +1 -2
- package/dist/esm/transpiler/html/html.mjs +1 -2
- package/dist/esm/transpiler/html/htmlTags.mjs +1 -2
- package/dist/esm/transpiler/html/index.mjs +1 -1
- package/dist/esm/transpiler/html/validateHTML.mjs +1 -2
- package/dist/esm/transpiler/index.mjs +2 -2
- package/dist/esm/transpiler/insertion/getInsertionValues.mjs +1 -2
- package/dist/esm/transpiler/insertion/insertion.mjs +1 -2
- package/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs +1 -2
- package/dist/esm/transpiler/markdown/index.mjs +1 -1
- package/dist/esm/transpiler/markdown/markdown.mjs +1 -2
- package/dist/esm/transpiler/markdown/validateMarkdown.mjs +1 -2
- package/dist/esm/transpiler/nesting/nesting.mjs +1 -2
- package/dist/esm/transpiler/plural/index.mjs +2 -2
- package/dist/esm/transpiler/plural/plural.mjs +21 -4
- package/dist/esm/transpiler/plural/plural.mjs.map +1 -1
- package/dist/esm/transpiler/select/select.mjs +1 -2
- package/dist/esm/transpiler/translation/translation.mjs +1 -2
- package/dist/esm/utils/checkIsURLAbsolute.mjs +1 -2
- package/dist/esm/utils/cookieExpiry.mjs +1 -2
- package/dist/esm/utils/getCookie.mjs +1 -2
- package/dist/esm/utils/index.mjs +4 -4
- package/dist/esm/utils/intl.mjs +3 -29
- package/dist/esm/utils/intl.mjs.map +1 -1
- package/dist/esm/utils/intlayerNodePrototype.mjs +1 -2
- package/dist/esm/utils/isSameKeyPath.mjs +1 -2
- package/dist/esm/utils/isValidReactElement.mjs +1 -2
- package/dist/esm/utils/localeStorage.mjs +1 -2
- package/dist/esm/utils/parseYaml.mjs +1 -2
- package/dist/esm/utils/stringifyYaml.mjs +1 -2
- package/dist/types/deepTransformPlugins/getEditedContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getEditedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts +1 -2
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/index.d.ts +1 -1
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +0 -2
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +0 -2
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNestedDictionaryReferences.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getNestedDictionaryReferences.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeType.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/index.d.ts +2 -2
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +0 -2
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/mergeQualifiedDictionaries.d.ts +0 -2
- package/dist/types/dictionaryManipulator/mergeQualifiedDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +0 -2
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +0 -2
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +0 -2
- package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts +0 -2
- package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts +0 -2
- package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDictionaryDeclaration.d.ts +0 -2
- package/dist/types/dictionaryManipulator/qualifiedDictionaryDeclaration.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -2
- package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +0 -2
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +0 -2
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +0 -2
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +1 -1
- package/dist/types/formatters/compact.d.ts +0 -2
- package/dist/types/formatters/compact.d.ts.map +1 -1
- package/dist/types/formatters/currency.d.ts +0 -2
- package/dist/types/formatters/currency.d.ts.map +1 -1
- package/dist/types/formatters/date.d.ts +0 -2
- package/dist/types/formatters/date.d.ts.map +1 -1
- package/dist/types/formatters/index.d.ts +1 -1
- package/dist/types/formatters/list.d.ts +0 -2
- package/dist/types/formatters/list.d.ts.map +1 -1
- package/dist/types/formatters/number.d.ts +0 -2
- package/dist/types/formatters/number.d.ts.map +1 -1
- package/dist/types/formatters/percentage.d.ts +0 -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 +0 -2
- package/dist/types/formatters/units.d.ts.map +1 -1
- package/dist/types/index.d.ts +10 -10
- package/dist/types/interpreter/dictionaryTransformCache.d.ts +0 -2
- package/dist/types/interpreter/dictionaryTransformCache.d.ts.map +1 -1
- package/dist/types/interpreter/getCondition.d.ts +0 -2
- package/dist/types/interpreter/getCondition.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/deepTransform.d.ts +0 -2
- package/dist/types/interpreter/getContent/deepTransform.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/getContent.d.ts +0 -2
- package/dist/types/interpreter/getContent/getContent.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/index.d.ts +1 -1
- package/dist/types/interpreter/getContent/plugins.d.ts +8 -5
- package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionary.d.ts +0 -2
- package/dist/types/interpreter/getDictionary.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionaryAsync.d.ts +1 -3
- package/dist/types/interpreter/getDictionaryAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getEnumeration.d.ts +0 -2
- 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 +0 -2
- package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayer.d.ts +0 -2
- package/dist/types/interpreter/getIntlayer.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayerAsync.d.ts +0 -2
- package/dist/types/interpreter/getIntlayerAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.d.ts +0 -2
- package/dist/types/interpreter/getNesting.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.optimized.d.ts +2 -4
- package/dist/types/interpreter/getNesting.optimized.d.ts.map +1 -1
- package/dist/types/interpreter/getPlural.d.ts +0 -2
- package/dist/types/interpreter/getPlural.d.ts.map +1 -1
- package/dist/types/interpreter/getSelect.d.ts +0 -2
- package/dist/types/interpreter/getSelect.d.ts.map +1 -1
- package/dist/types/interpreter/getTranslation.d.ts +0 -2
- package/dist/types/interpreter/getTranslation.d.ts.map +1 -1
- package/dist/types/interpreter/index.d.ts +3 -3
- package/dist/types/interpreter/interpolableNode.d.ts +0 -2
- package/dist/types/interpreter/interpolableNode.d.ts.map +1 -1
- package/dist/types/interpreter/resolveInterpreterLocale.d.ts +0 -2
- package/dist/types/interpreter/resolveInterpreterLocale.d.ts.map +1 -1
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts +0 -2
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts.map +1 -1
- package/dist/types/localization/comparePaths.d.ts +0 -2
- package/dist/types/localization/comparePaths.d.ts.map +1 -1
- package/dist/types/localization/domainUtils.d.ts +0 -2
- package/dist/types/localization/domainUtils.d.ts.map +1 -1
- package/dist/types/localization/generateSitemap.d.ts +0 -2
- package/dist/types/localization/generateSitemap.d.ts.map +1 -1
- package/dist/types/localization/getBrowserLocale.d.ts +1 -2
- package/dist/types/localization/getBrowserLocale.d.ts.map +1 -1
- package/dist/types/localization/getCanonicalPath.d.ts +0 -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 +0 -2
- package/dist/types/localization/getLocale.d.ts.map +1 -1
- package/dist/types/localization/getLocaleFromPath.d.ts +0 -2
- package/dist/types/localization/getLocaleFromPath.d.ts.map +1 -1
- package/dist/types/localization/getLocaleFromRequest.d.ts +0 -2
- package/dist/types/localization/getLocaleFromRequest.d.ts.map +1 -1
- package/dist/types/localization/getLocaleLang.d.ts +0 -2
- package/dist/types/localization/getLocaleLang.d.ts.map +1 -1
- package/dist/types/localization/getLocaleName.d.ts +0 -2
- package/dist/types/localization/getLocaleName.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedPath.d.ts +0 -2
- package/dist/types/localization/getLocalizedPath.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedUrl.d.ts +0 -2
- package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
- package/dist/types/localization/getMultilingualUrls.d.ts +0 -2
- package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -1
- package/dist/types/localization/getPathWithoutLocale.d.ts +0 -2
- package/dist/types/localization/getPathWithoutLocale.d.ts.map +1 -1
- package/dist/types/localization/getPrefix.d.ts +0 -2
- package/dist/types/localization/getPrefix.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +1 -1
- package/dist/types/localization/localeDetector.d.ts +0 -2
- package/dist/types/localization/localeDetector.d.ts.map +1 -1
- package/dist/types/localization/localeMapper.d.ts +0 -2
- package/dist/types/localization/localeMapper.d.ts.map +1 -1
- package/dist/types/localization/localeResolver.d.ts +0 -2
- package/dist/types/localization/localeResolver.d.ts.map +1 -1
- package/dist/types/localization/proxyMode.d.ts +0 -2
- package/dist/types/localization/proxyMode.d.ts.map +1 -1
- package/dist/types/localization/resolveBrowserLocale.d.ts +0 -2
- package/dist/types/localization/resolveBrowserLocale.d.ts.map +1 -1
- package/dist/types/localization/rewriteMatch.d.ts +0 -2
- package/dist/types/localization/rewriteMatch.d.ts.map +1 -1
- package/dist/types/localization/rewriteUtils.d.ts +1 -2
- package/dist/types/localization/rewriteUtils.d.ts.map +1 -1
- package/dist/types/localization/validatePrefix.d.ts +0 -2
- package/dist/types/localization/validatePrefix.d.ts.map +1 -1
- package/dist/types/markdown/compiler.d.ts +2 -3
- package/dist/types/markdown/compiler.d.ts.map +1 -1
- package/dist/types/markdown/constants.d.ts +4 -3
- package/dist/types/markdown/constants.d.ts.map +1 -1
- package/dist/types/markdown/elementScanner.d.ts +0 -2
- package/dist/types/markdown/elementScanner.d.ts.map +1 -1
- package/dist/types/markdown/index.d.ts +2 -2
- package/dist/types/markdown/parser.d.ts +0 -2
- package/dist/types/markdown/parser.d.ts.map +1 -1
- package/dist/types/markdown/renderer.d.ts +0 -2
- package/dist/types/markdown/renderer.d.ts.map +1 -1
- package/dist/types/markdown/types.d.ts +0 -2
- package/dist/types/markdown/types.d.ts.map +1 -1
- package/dist/types/markdown/utils.d.ts +1 -2
- package/dist/types/markdown/utils.d.ts.map +1 -1
- package/dist/types/messageFormat/ICU.d.ts +0 -2
- package/dist/types/messageFormat/ICU.d.ts.map +1 -1
- package/dist/types/messageFormat/i18next.d.ts +0 -2
- package/dist/types/messageFormat/i18next.d.ts.map +1 -1
- package/dist/types/messageFormat/navigatePath.d.ts +0 -2
- package/dist/types/messageFormat/navigatePath.d.ts.map +1 -1
- package/dist/types/messageFormat/po.d.ts +0 -2
- package/dist/types/messageFormat/po.d.ts.map +1 -1
- package/dist/types/messageFormat/resolveMessage.d.ts +0 -2
- package/dist/types/messageFormat/resolveMessage.d.ts.map +1 -1
- package/dist/types/messageFormat/vue-i18n.d.ts +0 -2
- package/dist/types/messageFormat/vue-i18n.d.ts.map +1 -1
- package/dist/types/transpiler/condition/condition.d.ts +0 -2
- package/dist/types/transpiler/condition/condition.d.ts.map +1 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts +0 -2
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
- package/dist/types/transpiler/file/file.d.ts +0 -2
- package/dist/types/transpiler/file/file.d.ts.map +1 -1
- package/dist/types/transpiler/file/fileBrowser.d.ts +0 -2
- package/dist/types/transpiler/file/fileBrowser.d.ts.map +1 -1
- package/dist/types/transpiler/gender/gender.d.ts +0 -2
- package/dist/types/transpiler/gender/gender.d.ts.map +1 -1
- package/dist/types/transpiler/html/getHTMLCustomComponents.d.ts +0 -2
- package/dist/types/transpiler/html/getHTMLCustomComponents.d.ts.map +1 -1
- package/dist/types/transpiler/html/html.d.ts +1 -2
- package/dist/types/transpiler/html/html.d.ts.map +1 -1
- package/dist/types/transpiler/html/htmlTags.d.ts +0 -2
- package/dist/types/transpiler/html/htmlTags.d.ts.map +1 -1
- package/dist/types/transpiler/html/validateHTML.d.ts +0 -2
- package/dist/types/transpiler/html/validateHTML.d.ts.map +1 -1
- package/dist/types/transpiler/index.d.ts +2 -2
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts +0 -2
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +1 -1
- package/dist/types/transpiler/insertion/insertion.d.ts +0 -2
- package/dist/types/transpiler/insertion/insertion.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +0 -2
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/markdown.d.ts +0 -2
- package/dist/types/transpiler/markdown/markdown.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts +0 -2
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts.map +1 -1
- package/dist/types/transpiler/nesting/nesting.d.ts +0 -2
- package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -1
- package/dist/types/transpiler/plural/index.d.ts +2 -2
- package/dist/types/transpiler/plural/plural.d.ts +31 -4
- package/dist/types/transpiler/plural/plural.d.ts.map +1 -1
- package/dist/types/transpiler/select/select.d.ts +0 -2
- package/dist/types/transpiler/select/select.d.ts.map +1 -1
- package/dist/types/transpiler/translation/translation.d.ts +0 -2
- package/dist/types/transpiler/translation/translation.d.ts.map +1 -1
- package/dist/types/utils/checkIsURLAbsolute.d.ts +0 -2
- package/dist/types/utils/checkIsURLAbsolute.d.ts.map +1 -1
- package/dist/types/utils/cookieExpiry.d.ts +0 -2
- package/dist/types/utils/cookieExpiry.d.ts.map +1 -1
- package/dist/types/utils/getCookie.d.ts +0 -2
- package/dist/types/utils/getCookie.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/intl.d.ts +1 -3
- package/dist/types/utils/intl.d.ts.map +1 -1
- package/dist/types/utils/intlayerNodePrototype.d.ts +0 -2
- package/dist/types/utils/intlayerNodePrototype.d.ts.map +1 -1
- package/dist/types/utils/isSameKeyPath.d.ts +0 -2
- package/dist/types/utils/isSameKeyPath.d.ts.map +1 -1
- package/dist/types/utils/isValidReactElement.d.ts +0 -2
- package/dist/types/utils/isValidReactElement.d.ts.map +1 -1
- package/dist/types/utils/localeStorage.d.ts +0 -2
- package/dist/types/utils/localeStorage.d.ts.map +1 -1
- package/dist/types/utils/parseYaml.d.ts +0 -2
- package/dist/types/utils/parseYaml.d.ts.map +1 -1
- package/dist/types/utils/stringifyYaml.d.ts +0 -2
- package/dist/types/utils/stringifyYaml.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","names":[],"sources":["../../../../src/transpiler/file/file.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"file.d.ts","names":[],"sources":["../../../../src/transpiler/file/file.ts"],"mappings":";YAMY,uBAAuB,UAAU,4BAC3C,sBAAsB,cAAc;YAE1B,cAAc;EACxB;EACA;;qBAGW,cAAW,cACV,mBACK,oBAEhB;;;;;;;;;;;;;;;;qBAyDU,OAAI,iBAAmB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FileContent } from "./file.js";
|
|
2
|
-
//#region src/transpiler/file/fileBrowser.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Function intended to be used to build intlayer dictionaries.
|
|
5
4
|
*
|
|
@@ -16,5 +15,4 @@ import { FileContent } from "./file.js";
|
|
|
16
15
|
* ```
|
|
17
16
|
*/
|
|
18
17
|
export declare const file: (_path: string) => FileContent;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=fileBrowser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileBrowser.d.ts","names":[],"sources":["../../../../src/transpiler/file/fileBrowser.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fileBrowser.d.ts","names":[],"sources":["../../../../src/transpiler/file/fileBrowser.ts"],"mappings":";;;;;;;;;;;;;;;;qBAiBa,OAAI,kBAAoB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GENDER, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
|
-
//#region src/transpiler/gender/gender.d.ts
|
|
3
2
|
export type Gender = 'male' | 'female' | 'fallback';
|
|
4
3
|
export type GenderContentStates<Content> = Record<`${Gender}`, Content> & {
|
|
5
4
|
fallback?: Content;
|
|
@@ -23,6 +22,5 @@ export type GenderContent<Content = unknown> = TypedNodeModel<typeof GENDER, Gen
|
|
|
23
22
|
*
|
|
24
23
|
*/
|
|
25
24
|
declare const gender: <Content>(content?: GenderContentStates<Content>) => GenderContent<Content>;
|
|
26
|
-
//#endregion
|
|
27
25
|
export { gender };
|
|
28
26
|
//# sourceMappingURL=gender.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gender.d.ts","names":[],"sources":["../../../../src/transpiler/gender/gender.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"gender.d.ts","names":[],"sources":["../../../../src/transpiler/gender/gender.ts"],"mappings":";YAGY;YAEA,oBAAoB,WAAW,UAAU,UAAU;EAC7D,WAAW;;YAGD,cAAc,qBAAqB,sBACtC,QACP,oBAAoB;;;;;;;;;;;;;;;;;;cAoBhB,SAAU,SAAO,UACX,oBAAoB,aAC7B,cAAc"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/transpiler/html/getHTMLCustomComponents.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Extracts component names from an HTML string.
|
|
4
3
|
* - Standard HTML tags are set to `true`.
|
|
5
4
|
* - Custom components are parsed to extract their attributes/props.
|
|
6
5
|
*/
|
|
7
6
|
export declare const getHTMLCustomComponents: (content: string) => Record<string, Record<string, string> | true>;
|
|
8
|
-
//#endregion
|
|
9
7
|
//# sourceMappingURL=getHTMLCustomComponents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHTMLCustomComponents.d.ts","names":[],"sources":["../../../../src/transpiler/html/getHTMLCustomComponents.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getHTMLCustomComponents.d.ts","names":[],"sources":["../../../../src/transpiler/html/getHTMLCustomComponents.ts"],"mappings":";;;;;qBA2Ba,0BAAuB,oBAEjC,eAAe"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTML, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
|
-
//#region src/transpiler/html/html.d.ts
|
|
3
2
|
type PropsType = 'number' | 'string' | 'node';
|
|
4
3
|
type ComponentName = string;
|
|
5
4
|
export type HTMLContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<typeof HTML, Content, T>;
|
|
@@ -19,5 +18,5 @@ export type HTMLContent<Content = unknown, Components extends Record<ComponentNa
|
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
20
|
export declare const html: <Components extends Record<string, any> = Record<string, any>, Content = unknown>(content: Content, components?: Components) => HTMLContent<Content, Components>;
|
|
22
|
-
|
|
21
|
+
export {};
|
|
23
22
|
//# sourceMappingURL=html.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","names":[],"sources":["../../../../src/transpiler/html/html.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"html.d.ts","names":[],"sources":["../../../../src/transpiler/html/html.ts"],"mappings":";KAKK;KAEA;YAEO,uBACV,mBACA,UAAU,4BACR,sBAAsB,MAAM,SAAS;YAE7B,YACV,mBACA,mBAAmB,OAAO,eAAe,aAAa,OACpD,eACA,cAEA,uBACF;EAEE,iBAAiB;;;;;;;;;;;;;;qBAgBR,OACX,mBAAmB,sBAAsB,qBACzC,mBAAiB,SAER,SAAO,aACH,eACZ,YAAY,SAAS"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/transpiler/html/htmlTags.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* List of standard HTML tags to provide as default components.
|
|
4
3
|
* These allow users to use standard HTML tags in their html() content
|
|
@@ -110,5 +109,4 @@ export type HTMLTagsType = {
|
|
|
110
109
|
template: HTMLTemplateElement;
|
|
111
110
|
slot: HTMLSlotElement;
|
|
112
111
|
};
|
|
113
|
-
//#endregion
|
|
114
112
|
//# sourceMappingURL=htmlTags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"htmlTags.d.ts","names":[],"sources":["../../../../src/transpiler/html/htmlTags.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"htmlTags.d.ts","names":[],"sources":["../../../../src/transpiler/html/htmlTags.ts"],"mappings":";;;;;;;;qBAQa;YAgHD;EAEV,MAAM;EACN,MAAM;EACN,MAAM;EACN,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,KAAK;EACL,OAAO;EACP,SAAS;EACT,SAAS;EACT,KAAK;EACL,MAAM;EAGN,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EAGJ,GAAG;EACH,GAAG;EACH,QAAQ;EACR,GAAG;EACH,IAAI;EACJ,GAAG;EACH,GAAG;EACH,GAAG;EACH,KAAK;EACL,KAAK;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL,KAAK;EACL,MAAM;EACN,KAAK;EACL,YAAY;EACZ,GAAG;EACH,MAAM;EACN,MAAM;EACN,SAAS;EACT,MAAM;EACN,KAAK;EACL,MAAM;EACN,KAAK;EAGL,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EAGJ,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,SAAS;EACT,UAAU;EACV,KAAK;EAGL,MAAM;EACN,OAAO;EACP,UAAU;EACV,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,UAAU;EACV,OAAO;EACP,UAAU;EACV,QAAQ;EACR,UAAU;EACV,QAAQ;EACR,UAAU;EACV,OAAO;EAGP,KAAK;EACL,OAAO;EACP,OAAO;EACP,QAAQ;EACR,OAAO;EACP,SAAS;EACT,QAAQ;EACR,YAAY;EACZ,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,KAAK;EAGL,SAAS;EACT,SAAS;EACT,QAAQ;EAGR,IAAI;EACJ,IAAI;EACJ,KAAK;EACL,MAAM;EACN,IAAI;EACJ,IAAI;EACJ,KAAK;EACL,KAAK;EACL,MAAM;EACN,UAAU;EACV,MAAM"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/transpiler/html/validateHTML.d.ts
|
|
2
1
|
export declare const VOID_HTML_ELEMENTS: Set<string>;
|
|
3
2
|
export type HTMLValidationIssue = {
|
|
4
3
|
type: 'error' | 'warning';
|
|
@@ -16,5 +15,4 @@ export type HTMLValidationResult = {
|
|
|
16
15
|
* - Tags whose attribute string starts with `://` are URL autolinks (e.g. `<https://…>`).
|
|
17
16
|
*/
|
|
18
17
|
export declare const validateHTML: (content: string) => HTMLValidationResult;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=validateHTML.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateHTML.d.ts","names":[],"sources":["../../../../src/transpiler/html/validateHTML.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"validateHTML.d.ts","names":[],"sources":["../../../../src/transpiler/html/validateHTML.ts"],"mappings":"A,qBAAa,oBAAkB;YAgBnB;EACV;EACA;;YAGU;EACV;EACA,QAAQ;;;;;;;;;qBAiBG,eAAY,oBAAsB"}
|
|
@@ -19,10 +19,10 @@ import { MarkdownValidationResult, validateMarkdown } from "./markdown/validateM
|
|
|
19
19
|
import "./markdown/index.js";
|
|
20
20
|
import { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nest as nesting } from "./nesting/nesting.js";
|
|
21
21
|
import "./nesting/index.js";
|
|
22
|
-
import { PluralCategory, PluralContent, PluralContentState, plural } from "./plural/plural.js";
|
|
22
|
+
import { DEFAULT_PLURAL_VARIABLE, PluralCategory, PluralContent, PluralContentState, PluralOptions, plural } from "./plural/plural.js";
|
|
23
23
|
import "./plural/index.js";
|
|
24
24
|
import { SelectContent, SelectContentStates, select } from "./select/select.js";
|
|
25
25
|
import "./select/index.js";
|
|
26
26
|
import { TranslationContent, t as translation } from "./translation/translation.js";
|
|
27
27
|
import "./translation/index.js";
|
|
28
|
-
export { ConditionContent, ConditionContentStates, DotPath, EnterFormat, EnumerationContent, EnumerationContentState, type FileContent, type FileContentConstructor, Gender, GenderContent, GenderContentStates, HTMLContent, HTMLContentConstructor, HTMLTagsType, HTMLValidationIssue, HTMLValidationResult, HTML_TAGS, InsertionContent, InsertionContentConstructor, MarkdownContent, MarkdownContentConstructor, type HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, NestedContent, NestedContentState, PluralCategory, PluralContent, PluralContentState, SelectContent, SelectContentStates, TranslationContent, VOID_HTML_ELEMENTS, ValidDotPathsFor, condition as cond, enumeration as enu, type file, type fileContent, gender, getInsertionValues, getMarkdownMetadata, html, insertion as insert, markdown as md, nesting as nest, plural, select, translation as t, validateHTML, validateMarkdown };
|
|
28
|
+
export { ConditionContent, ConditionContentStates, DEFAULT_PLURAL_VARIABLE, DotPath, EnterFormat, EnumerationContent, EnumerationContentState, type FileContent, type FileContentConstructor, Gender, GenderContent, GenderContentStates, HTMLContent, HTMLContentConstructor, HTMLTagsType, HTMLValidationIssue, HTMLValidationResult, HTML_TAGS, InsertionContent, InsertionContentConstructor, MarkdownContent, MarkdownContentConstructor, type HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, NestedContent, NestedContentState, PluralCategory, PluralContent, PluralContentState, PluralOptions, SelectContent, SelectContentStates, TranslationContent, VOID_HTML_ELEMENTS, ValidDotPathsFor, condition as cond, enumeration as enu, type file, type fileContent, gender, getInsertionValues, getMarkdownMetadata, html, insertion as insert, markdown as md, nesting as nest, plural, select, translation as t, validateHTML, validateMarkdown };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInsertionValues.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/getInsertionValues.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getInsertionValues.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/getInsertionValues.ts"],"mappings":"A,qBAAa,qBAAkB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { INSERTION, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
|
-
//#region src/transpiler/insertion/insertion.d.ts
|
|
3
2
|
export type InsertionContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<typeof INSERTION, Content, T>;
|
|
4
3
|
export type InsertionContent<Content = unknown> = InsertionContentConstructor<Content, {
|
|
5
4
|
fields: string[];
|
|
@@ -17,6 +16,5 @@ export type InsertionContent<Content = unknown> = InsertionContentConstructor<Co
|
|
|
17
16
|
*
|
|
18
17
|
*/
|
|
19
18
|
declare const insertion: <Content = unknown>(content: Content) => InsertionContent<Content>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export { insertion as insert };
|
|
22
20
|
//# sourceMappingURL=insertion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertion.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/insertion.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"insertion.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/insertion.ts"],"mappings":";YAIY,4BACV,mBACA,UAAU,4BACR,sBAAsB,WAAW,SAAS;YAElC,iBAAiB,qBAAqB,4BAChD;EAEE;;;;;;;;;;;;;;cAgBE,YAAa,mBAAiB,SACzB,YACR,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMarkdownMetadata.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/getMarkdownMetadata.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getMarkdownMetadata.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/getMarkdownMetadata.ts"],"mappings":"A,qBA2Ca,sBAAuB,UAAU,qBAAmB,qBAE9D"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MARKDOWN, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
|
-
//#region src/transpiler/markdown/markdown.d.ts
|
|
3
2
|
type PropsType = 'number' | 'string' | 'node';
|
|
4
3
|
type ComponentName = string;
|
|
5
4
|
export type MarkdownContentConstructor<T extends Record<string, any> = {}, Content = unknown> = TypedNodeModel<typeof MARKDOWN, Content, T>;
|
|
@@ -20,6 +19,5 @@ export type MarkdownContent<Content = unknown, Components extends Record<Compone
|
|
|
20
19
|
*
|
|
21
20
|
*/
|
|
22
21
|
declare const markdown: <Components extends Record<string, any> = Record<string, any>, Content = unknown>(content: Content, components?: Components) => MarkdownContent<Content, Components>;
|
|
23
|
-
//#endregion
|
|
24
22
|
export { markdown as md };
|
|
25
23
|
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/markdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/markdown.ts"],"mappings":";KAOK;KAEA;YAEO,2BACV,UAAU,0BACV,qBACE,sBAAsB,UAAU,SAAS;YAEjC,gBACV,mBACA,mBAAmB,OAAO,eAAe,aAAa,OACpD,eACA,cAEA;EAEA,WAAW;EACX,kBAAkB;GAEpB;;;;;;;;;;;;;cA4BI,WACJ,mBAAmB,sBAAsB,qBACzC,mBAAiB,SAER,SAAO,aACH,eACZ,gBAAgB,SAAS"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLValidationIssue } from "../html/validateHTML.js";
|
|
2
|
-
//#region src/transpiler/markdown/validateMarkdown.d.ts
|
|
3
2
|
export type MarkdownValidationResult = {
|
|
4
3
|
valid: boolean;
|
|
5
4
|
issues: HTMLValidationIssue[];
|
|
@@ -12,6 +11,5 @@ export type MarkdownValidationResult = {
|
|
|
12
11
|
* HTML inside code blocks is excluded from HTML validation.
|
|
13
12
|
*/
|
|
14
13
|
export declare const validateMarkdown: (content: string) => MarkdownValidationResult;
|
|
15
|
-
//#endregion
|
|
16
14
|
export type { HTMLValidationIssue as MarkdownValidationIssue };
|
|
17
15
|
//# sourceMappingURL=validateMarkdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateMarkdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/validateMarkdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"validateMarkdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/validateMarkdown.ts"],"mappings":";YAIY;EACV;EACA,QAAQ;;;;;;;;;qBA6FG,mBAAgB,oBAAsB"}
|
|
@@ -2,7 +2,6 @@ import { DeepTransformContent } from "../../interpreter/getContent/plugins.js";
|
|
|
2
2
|
import "../../interpreter/index.js";
|
|
3
3
|
import { DictionaryKeys, DictionaryRegistryContent } from "@intlayer/types/module_augmentation";
|
|
4
4
|
import { NESTED, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
5
|
-
//#region src/transpiler/nesting/nesting.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Recursively builds dot-notation strings for all valid paths in T.
|
|
8
7
|
* Example:
|
|
@@ -44,6 +43,5 @@ export type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<typ
|
|
|
44
43
|
*
|
|
45
44
|
*/
|
|
46
45
|
declare const nesting: <K extends DictionaryKeys>(dictionaryKey: K, path?: ValidDotPathsFor<K>) => NestedContent<K>;
|
|
47
|
-
//#endregion
|
|
48
46
|
export { nesting as nest };
|
|
49
47
|
//# sourceMappingURL=nesting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nesting.d.ts","names":[],"sources":["../../../../src/transpiler/nesting/nesting.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"nesting.d.ts","names":[],"sources":["../../../../src/transpiler/nesting/nesting.ts"],"mappings":";;;;;;;;;;YAeY,QAAQ,KAAK,sBAElB,WAAW,wBAAwB,EAAE;MAE/B,SAAS,KAAK,QAAQ,EAAE,WACxB,aACD;KAGP,YAAY,GAAG,MAAM,MAAM,UAAU,OACtC,KACA,sBACK,WAAW,IAAI,YAAY,EAAE,IAAI,MAAM,SAC1C;;YAGM,iBAAiB,UAAU,kBAAkB,QACvD,YACE,qBAAqB,0BAA0B;EAG7C;EACA;EACA;;YAMM,mBAAmB,UAAU;EACvC,eAAe;;;;;;EAOf,OAAO,iBAAiB;;YAGd,cAAc,UAAU,0BAA0B,sBACrD,QACP,mBAAmB;;;;;;;;;;;;;;;;cAkBf,UAAW,UAAU,gBAAc,eACxB,GAAC,OACT,iBAAiB,OACvB,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PluralCategory, PluralContent, PluralContentState, plural } from "./plural.js";
|
|
2
|
-
export { PluralCategory, PluralContent, PluralContentState, plural };
|
|
1
|
+
import { DEFAULT_PLURAL_VARIABLE, PluralCategory, PluralContent, PluralContentState, PluralOptions, plural } from "./plural.js";
|
|
2
|
+
export { DEFAULT_PLURAL_VARIABLE, PluralCategory, PluralContent, PluralContentState, PluralOptions, plural };
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { PLURAL, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
|
-
//#region src/transpiler/plural/plural.d.ts
|
|
3
2
|
export type PluralCategory = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
|
|
4
3
|
export type PluralContentState<Content> = Partial<Record<PluralCategory, Content>> & {
|
|
5
4
|
other: Content;
|
|
6
5
|
};
|
|
7
|
-
|
|
6
|
+
/** Name of the value a plural selects on when no `variable` is declared. */
|
|
7
|
+
export declare const DEFAULT_PLURAL_VARIABLE = "count";
|
|
8
|
+
export type PluralOptions<Variable extends string = string> = {
|
|
9
|
+
/**
|
|
10
|
+
* Name of the value the plural category is selected on.
|
|
11
|
+
*
|
|
12
|
+
* Defaults to `count`. Set it to nest plurals over independent quantities:
|
|
13
|
+
* the resolved function then takes `{ [variable]: number, … }`.
|
|
14
|
+
*/
|
|
15
|
+
variable?: Variable;
|
|
16
|
+
};
|
|
17
|
+
export type PluralContent<Content = unknown, Variable extends string = typeof DEFAULT_PLURAL_VARIABLE> = TypedNodeModel<typeof PLURAL, PluralContentState<Content>, {
|
|
18
|
+
variable?: Variable;
|
|
19
|
+
}>;
|
|
8
20
|
/**
|
|
9
21
|
* Function intended to be used to build intlayer dictionaries.
|
|
10
22
|
*
|
|
@@ -27,8 +39,23 @@ export type PluralContent<Content = unknown> = TypedNodeModel<typeof PLURAL, Plu
|
|
|
27
39
|
* other: '{{count}} вакансий',
|
|
28
40
|
* });
|
|
29
41
|
* ```
|
|
42
|
+
*
|
|
43
|
+
* Nest plurals declaring a `variable` to select on several quantities:
|
|
44
|
+
*
|
|
45
|
+
* ```ts
|
|
46
|
+
* plural(
|
|
47
|
+
* {
|
|
48
|
+
* one: plural(
|
|
49
|
+
* { one: '{{files}} file in {{folders}} folder', other: '…' },
|
|
50
|
+
* { variable: 'folders' }
|
|
51
|
+
* ),
|
|
52
|
+
* other: plural({ … }, { variable: 'folders' }),
|
|
53
|
+
* },
|
|
54
|
+
* { variable: 'files' }
|
|
55
|
+
* );
|
|
56
|
+
* // content.filesInFolders({ files: 1, folders: 2 })
|
|
57
|
+
* ```
|
|
30
58
|
*/
|
|
31
|
-
declare const plural: <Content = unknown>(content: PluralContentState<Content>) => PluralContent<Content>;
|
|
32
|
-
//#endregion
|
|
59
|
+
declare const plural: <Content = unknown, const Variable extends string = typeof DEFAULT_PLURAL_VARIABLE>(content: PluralContentState<Content>, options?: PluralOptions<Variable>) => PluralContent<Content, Variable>;
|
|
33
60
|
export { plural };
|
|
34
61
|
//# sourceMappingURL=plural.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plural.d.ts","names":[],"sources":["../../../../src/transpiler/plural/plural.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plural.d.ts","names":[],"sources":["../../../../src/transpiler/plural/plural.ts"],"mappings":";YAGY;YAEA,mBAAmB,WAAW,QACxC,OAAO,gBAAgB;EAEvB,OAAO;;;qBAII;YAED,cAAc;;;;;;;EAOxB,WAAW;;YAGD,cACV,mBACA,iCAAiC,2BAC/B,sBACK,QACP,mBAAmB;EACjB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CT,SACJ,yBACM,iCAAiC,yBAAuB,SAErD,mBAAmB,UAAQ,UAC1B,cAAc,cACvB,cAAc,SAAS"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SELECT, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
2
|
-
//#region src/transpiler/select/select.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Map of arbitrary string cases to their content.
|
|
5
4
|
*
|
|
@@ -57,6 +56,5 @@ export type SelectContent<States extends SelectContentStates = SelectContentStat
|
|
|
57
56
|
* for the ICU / i18next round-trip; unused at runtime.
|
|
58
57
|
*/
|
|
59
58
|
declare const select: <const States extends SelectContentStates>(content?: States, variable?: string) => SelectContent<States>;
|
|
60
|
-
//#endregion
|
|
61
59
|
export { select };
|
|
62
60
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","names":[],"sources":["../../../../src/transpiler/select/select.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.d.ts","names":[],"sources":["../../../../src/transpiler/select/select.ts"],"mappings":";;;;;;;;YAUY,oBAAoB;GAC7B,kBAAkB;;EAEnB,WAAW;;YAGD,cACV,eAAe,sBAAsB,uBACnC,sBACK,QACP;;;;;;;;;EAUE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCE,eAAgB,eAAe,qBAAmB,UAC5C,QAAM,sBAEf,cAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { TRANSLATION, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
3
|
-
//#region src/transpiler/translation/translation.d.ts
|
|
4
3
|
export type TranslationContent<Content = unknown, RecordContent extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>> = TypedNodeModel<typeof TRANSLATION, RecordContent>;
|
|
5
4
|
/**
|
|
6
5
|
*
|
|
@@ -23,6 +22,5 @@ export type TranslationContent<Content = unknown, RecordContent extends StrictMo
|
|
|
23
22
|
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
24
23
|
*/
|
|
25
24
|
declare const translation: <Content = unknown, ContentRecord extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>>(content: ContentRecord) => TranslationContent<Content, ContentRecord>;
|
|
26
|
-
//#endregion
|
|
27
25
|
export { translation as t };
|
|
28
26
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","names":[],"sources":["../../../../src/transpiler/translation/translation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"translation.d.ts","names":[],"sources":["../../../../src/transpiler/translation/translation.ts"],"mappings":";;YAIY,mBACV,mBACA,sBACE,oBAAoB,WAAW,oBAAoB,YACnD,sBAAsB,aAAa;;;;;;;;;;;;;;;;;;;;;cAsBjC,cACJ,mBACA,sBACE,oBAAoB,WAAW,oBAAoB,UAAQ,SAEpD,kBACR,mBAAmB,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkIsURLAbsolute.d.ts","names":[],"sources":["../../../src/utils/checkIsURLAbsolute.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkIsURLAbsolute.d.ts","names":[],"sources":["../../../src/utils/checkIsURLAbsolute.ts"],"mappings":"A,qBAAa,qBAAkB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ProcessedCookieAttributes } from "@intlayer/types/config";
|
|
2
|
-
//#region src/utils/cookieExpiry.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Resolves a normalized cookie `expires` value to an absolute timestamp
|
|
5
4
|
* (epoch ms). The value is produced by the config-build merge step, so it is
|
|
@@ -25,5 +24,4 @@ export declare const resolveExpiresToTimestamp: (expires: ProcessedCookieAttribu
|
|
|
25
24
|
* @returns The serialized cookie string.
|
|
26
25
|
*/
|
|
27
26
|
export declare const buildCookieString: (name: string, value: string, attributes: ProcessedCookieAttributes) => string;
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=cookieExpiry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookieExpiry.d.ts","names":[],"sources":["../../../src/utils/cookieExpiry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cookieExpiry.d.ts","names":[],"sources":["../../../src/utils/cookieExpiry.ts"],"mappings":";;;;;;;;;;;;;;;qBAgBa,4BAAyB,SAC3B;;;;;;;;;;qBAmBE,oBAAiB,cAChB,eACC,YACD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/getCookie.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Retrieves a cookie by name from a cookie string or document.cookie
|
|
4
3
|
* @param name - The name of the cookie to retrieve
|
|
@@ -6,5 +5,4 @@
|
|
|
6
5
|
* @returns The cookie value or undefined if not found
|
|
7
6
|
*/
|
|
8
7
|
export declare const getCookie: (name: string, cookieString?: string) => string | undefined;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=getCookie.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCookie.d.ts","names":[],"sources":["../../../src/utils/getCookie.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCookie.d.ts","names":[],"sources":["../../../src/utils/getCookie.ts"],"mappings":";;;;;;qBAMa,YAAS,cACR"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CachedIntl, IntlConstructorName, WrappedIntl, bindIntl, getCachedIntl } from "./intl.js";
|
|
2
1
|
import { checkIsURLAbsolute } from "./checkIsURLAbsolute.js";
|
|
3
2
|
import { getCookie } from "./getCookie.js";
|
|
3
|
+
import { CachedIntl, IntlConstructorName, WrappedIntl, bindIntl, getCachedIntl } from "./intl.js";
|
|
4
4
|
import { getIntlayerNodePrototype } from "./intlayerNodePrototype.js";
|
|
5
5
|
import { isSameKeyPath } from "./isSameKeyPath.js";
|
|
6
6
|
import { isValidElement } from "./isValidReactElement.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
-
//#region src/utils/intl.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Minimal `Intl.ListFormat` surface, declared locally so consumers do not need
|
|
5
4
|
* the `ES2021.Intl` lib in their tsconfig.
|
|
@@ -74,8 +73,7 @@ export declare function getCachedIntl<T extends new (...args: any[]) => any>(Cto
|
|
|
74
73
|
* Optional: Keep bindIntl if your library exports it publicly.
|
|
75
74
|
* It now uses the much smaller getCachedIntl under the hood.
|
|
76
75
|
*/
|
|
77
|
-
export declare const bindIntl: (boundLocale
|
|
76
|
+
export declare const bindIntl: (boundLocale?: LocalesValues) => WrappedIntl;
|
|
78
77
|
export declare const CachedIntl: any;
|
|
79
|
-
//#endregion
|
|
80
78
|
export { CachedIntl as Intl };
|
|
81
79
|
//# sourceMappingURL=intl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intl.d.ts","names":[],"sources":["../../../src/utils/intl.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"intl.d.ts","names":[],"sources":["../../../src/utils/intl.ts"],"mappings":";;;;;KAoCK;EACH,OAAO,MAAM;EACb,cACE,MAAM;IACH;IAA6B;;;;;;;KAO/B;EACH,QAAQ,gBAAgB;IAAW;IAAiB;;;;;;KAMjD;EACH,UAAU,KAAK;EACf,gBAAgB,KAAK;EACrB,cAAc,KAAK;EACnB,YAAY;EACZ,QAAQ,KAAK;EACb,cAAc,KAAK;EACnB,aAAa,KAAK;EAClB,oBAAoB,KAAK;EACzB,WAAW;;;;;YAMD,4BAA4B;KAiGnC,sBACF,kBAAkB,gBAAgB,MAAM,oBACpC,qBAED,oBACgB,MAAM;KAGvB,+BAA+B,KAAK,gBACvC,cACA,gBAAgB,kBACP;OAEA,UAAU,eAAe,UAAU,UAAU;OAC7C,UAAU;IAAY,SAAS;MAAkB;GACrD,UAAU,eAAe,UAAU,UAAU;GAC7C,UAAU;IAAY,SAAS;MAAkB;IAEpD,gBACI,uBACS;OAEJ,UAAU,gBAAgB;OAC1B;IAAY,SAAS;MAAkB;GAC3C,UAAU,gBAAgB;GAC1B;IAAY,SAAS;MAAkB;IAE1C;YAEM,iBACT,kBAAkB,OAAO,gBAAgB,mBACtC,uCAAuC,MAAM,cACrC,MAAM;;;;;;;;;wBAWJ,cAAc,aAAa,qBACzC,iBAAiB,MACjB,SAAS,wBACT,gBACC,mBAAmB;wBACN,cAAc,kBAAkB,qBAC9C,MAAM,GACN,SAAS,wBACT,gBACC,aAAa;;;;;qBAiDH,WAAQ,cAAkB,kBAAgB;qBA+B1C"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/intlayerNodePrototype.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Returns the prototype an Intlayer node is built on, so the node behaves like
|
|
4
3
|
* its `value` (`${node}`, `node.toUpperCase()`, `'trim' in node`) while staying
|
|
@@ -11,5 +10,4 @@
|
|
|
11
10
|
* @returns The shared prototype to create the node with.
|
|
12
11
|
*/
|
|
13
12
|
export declare const getIntlayerNodePrototype: (value: unknown, basePrototype?: object) => object;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=intlayerNodePrototype.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intlayerNodePrototype.d.ts","names":[],"sources":["../../../src/utils/intlayerNodePrototype.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"intlayerNodePrototype.d.ts","names":[],"sources":["../../../src/utils/intlayerNodePrototype.ts"],"mappings":";;;;;;;;;;;qBA8Ea,2BAAwB,gBACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSameKeyPath.d.ts","names":[],"sources":["../../../src/utils/isSameKeyPath.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isSameKeyPath.d.ts","names":[],"sources":["../../../src/utils/isSameKeyPath.ts"],"mappings":";qBAIa,gBAAa,UAAc,WAAS,UAAY"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/isValidReactElement.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Verifies the object is a ReactElement.
|
|
4
3
|
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
@@ -7,5 +6,4 @@
|
|
|
7
6
|
* @final
|
|
8
7
|
*/
|
|
9
8
|
export declare const isValidElement: (object: any) => boolean;
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=isValidReactElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isValidReactElement.d.ts","names":[],"sources":["../../../src/utils/isValidReactElement.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isValidReactElement.d.ts","names":[],"sources":["../../../src/utils/isValidReactElement.ts"],"mappings":";;;;;;;qBAQa,iBAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
|
-
//#region src/utils/localeStorage.d.ts
|
|
4
3
|
export type CookieBuildAttributes = {
|
|
5
4
|
domain?: string;
|
|
6
5
|
path?: string;
|
|
@@ -134,5 +133,4 @@ export declare const LocaleStorage: (options: LocaleStorageOptions) => {
|
|
|
134
133
|
getLocale: () => Locale;
|
|
135
134
|
setLocale: (locale: LocalesValues) => void;
|
|
136
135
|
};
|
|
137
|
-
//#endregion
|
|
138
136
|
//# sourceMappingURL=localeStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localeStorage.d.ts","names":[],"sources":["../../../src/utils/localeStorage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"localeStorage.d.ts","names":[],"sources":["../../../src/utils/localeStorage.ts"],"mappings":";;YAsCY;EACV;EACA;EACA;EACA;EACA;;;;;;EAMA;;YAQU;EACV;EACA;EACA,kBACE,cACA,eACA,QAAQ;EAEV,mBAAmB,cAAc;EACjC,aAAa;EACb,qBAAqB,cAAc;EACnC,qBAAqB;EACrB,oBAAoB,cAAc;EAClC,oBAAoB;;qBAMT,sBAAsB;;;;;;qBA+BtB,6BAA0B,UAC5B,+BACR;;;;;;;;;qBAmDU,wCAAuC;;;;;;qBAkBvC,2BAAwB,QAC3B,eAAa,UACX;;;;;;;;;;;;;qBA2EC,sBAAmB,SAAa;EAC3C,iBAAS;EACT,YAAS,QAAW;;YASV;EACV;EACA;EACA,kBACE,cACA,eACA,QAAQ;EAEV,mBAAmB,cAAc;EACjC,aAAa;EACb,aAAa;EACb,aAAa,cAAc;;;;;;;qBAQhB,6BAA0B,SAC5B,+BACR;;;;;qBA+BU,2BAAwB,QAC3B,eAAa,UACX;;;;;;;;;;;;;;;;;;qBA0DC,sBAAmB,SAAa;EAC3C,iBAAS;EACT,YAAS,QAAW;;;;;YAYV,uBAAuB,6BACjC;;;;;;;;qBASW,uBAAoB,SACtB,KACP,oHAOD;;;;;;;;qBA+DU,qBAAkB,QACrB,eAAa,UACX;;;;;;;qBA8EC,gBAAa,SAAa;EACrC,iBAAS;EACT,YAAS,QAAW"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/parseYaml.d.ts
|
|
2
1
|
export interface YamlRecord {
|
|
3
2
|
[key: string]: YamlValue;
|
|
4
3
|
}
|
|
@@ -10,5 +9,4 @@ export type YamlValue = string | number | YamlValue[] | YamlRecord;
|
|
|
10
9
|
* not coerced to their native JS equivalents.
|
|
11
10
|
*/
|
|
12
11
|
export declare const parseYaml: <T = YamlValue>(input: string) => T | null;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=parseYaml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseYaml.d.ts","names":[],"sources":["../../../src/utils/parseYaml.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseYaml.d.ts","names":[],"sources":["../../../src/utils/parseYaml.ts"],"mappings":"A,iBAciB;GACd,cAAc;;YAEL,8BAA8B,cAAc;;;;;;;qBAQ3C,YAAa,IAAI,WAAS,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringifyYaml.d.ts","names":[],"sources":["../../../src/utils/stringifyYaml.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stringifyYaml.d.ts","names":[],"sources":["../../../src/utils/stringifyYaml.ts"],"mappings":"A,qBAwGa,gBAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/core",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
|
|
6
6
|
"keywords": [
|
|
@@ -173,21 +173,21 @@
|
|
|
173
173
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
174
174
|
},
|
|
175
175
|
"dependencies": {
|
|
176
|
-
"@intlayer/api": "9.
|
|
177
|
-
"@intlayer/config": "9.
|
|
178
|
-
"@intlayer/dictionaries-entry": "9.
|
|
179
|
-
"@intlayer/types": "9.
|
|
176
|
+
"@intlayer/api": "9.7.1",
|
|
177
|
+
"@intlayer/config": "9.7.1",
|
|
178
|
+
"@intlayer/dictionaries-entry": "9.7.1",
|
|
179
|
+
"@intlayer/types": "9.7.1",
|
|
180
180
|
"defu": "6.1.7"
|
|
181
181
|
},
|
|
182
182
|
"devDependencies": {
|
|
183
|
-
"@types/node": "^
|
|
183
|
+
"@types/node": "^26",
|
|
184
184
|
"@utils/ts-config": "1.0.4",
|
|
185
185
|
"@utils/ts-config-types": "1.0.4",
|
|
186
186
|
"@utils/tsdown-config": "1.0.4",
|
|
187
187
|
"rimraf": "6.1.3",
|
|
188
|
-
"tsdown": "0.23.
|
|
188
|
+
"tsdown": "0.23.4",
|
|
189
189
|
"typescript": "7.0.2",
|
|
190
|
-
"vitest": "5.0
|
|
190
|
+
"vitest": "5.1.0"
|
|
191
191
|
},
|
|
192
192
|
"engines": {
|
|
193
193
|
"node": ">=14.18"
|