@intlayer/core 9.4.3 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/cjs/dictionaryManipulator/qualifiedDictionary.cjs.map +1 -1
- package/dist/cjs/formatters/list.cjs.map +1 -1
- package/dist/cjs/index.cjs +5 -8
- package/dist/cjs/interpreter/getPlural.cjs.map +1 -1
- package/dist/cjs/markdown/compiler.cjs +437 -209
- package/dist/cjs/markdown/compiler.cjs.map +1 -1
- package/dist/cjs/markdown/constants.cjs +32 -50
- package/dist/cjs/markdown/constants.cjs.map +1 -1
- package/dist/cjs/markdown/elementScanner.cjs +191 -0
- package/dist/cjs/markdown/elementScanner.cjs.map +1 -0
- package/dist/cjs/markdown/index.cjs +5 -8
- package/dist/cjs/markdown/parser.cjs +90 -48
- package/dist/cjs/markdown/parser.cjs.map +1 -1
- package/dist/cjs/markdown/renderer.cjs +14 -11
- package/dist/cjs/markdown/renderer.cjs.map +1 -1
- package/dist/cjs/markdown/utils.cjs +123 -34
- package/dist/cjs/markdown/utils.cjs.map +1 -1
- package/dist/esm/dictionaryManipulator/qualifiedDictionary.mjs.map +1 -1
- package/dist/esm/formatters/list.mjs.map +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/interpreter/getPlural.mjs.map +1 -1
- package/dist/esm/markdown/compiler.mjs +438 -211
- package/dist/esm/markdown/compiler.mjs.map +1 -1
- package/dist/esm/markdown/constants.mjs +29 -43
- package/dist/esm/markdown/constants.mjs.map +1 -1
- package/dist/esm/markdown/elementScanner.mjs +183 -0
- package/dist/esm/markdown/elementScanner.mjs.map +1 -0
- package/dist/esm/markdown/index.mjs +3 -3
- package/dist/esm/markdown/parser.mjs +90 -48
- package/dist/esm/markdown/parser.mjs.map +1 -1
- package/dist/esm/markdown/renderer.mjs +14 -11
- package/dist/esm/markdown/renderer.mjs.map +1 -1
- package/dist/esm/markdown/utils.mjs +124 -35
- package/dist/esm/markdown/utils.mjs.map +1 -1
- package/dist/types/deepTransformPlugins/getEditedContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getEditedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +3 -4
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +3 -4
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +3 -4
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts +1 -2
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +1 -2
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts +2 -3
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +1 -2
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +1 -2
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNestedDictionaryReferences.d.ts +4 -5
- package/dist/types/dictionaryManipulator/getNestedDictionaryReferences.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeType.d.ts +1 -2
- package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +1 -2
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/mergeQualifiedDictionaries.d.ts +1 -2
- package/dist/types/dictionaryManipulator/mergeQualifiedDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +2 -3
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +1 -2
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +4 -5
- package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts +4 -4
- package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts +14 -15
- package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDictionaryDeclaration.d.ts +5 -6
- package/dist/types/dictionaryManipulator/qualifiedDictionaryDeclaration.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +7 -7
- package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +1 -2
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +1 -2
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +1 -2
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +1 -1
- package/dist/types/formatters/compact.d.ts +1 -2
- package/dist/types/formatters/compact.d.ts.map +1 -1
- package/dist/types/formatters/currency.d.ts +1 -2
- package/dist/types/formatters/currency.d.ts.map +1 -1
- package/dist/types/formatters/date.d.ts +3 -4
- package/dist/types/formatters/date.d.ts.map +1 -1
- package/dist/types/formatters/index.d.ts +2 -2
- package/dist/types/formatters/list.d.ts +2 -3
- package/dist/types/formatters/list.d.ts.map +1 -1
- package/dist/types/formatters/number.d.ts +1 -2
- package/dist/types/formatters/number.d.ts.map +1 -1
- package/dist/types/formatters/percentage.d.ts +1 -2
- package/dist/types/formatters/percentage.d.ts.map +1 -1
- package/dist/types/formatters/relativeTime.d.ts +1 -2
- package/dist/types/formatters/relativeTime.d.ts.map +1 -1
- package/dist/types/formatters/units.d.ts +1 -2
- package/dist/types/formatters/units.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/interpreter/dictionaryTransformCache.d.ts +4 -5
- package/dist/types/interpreter/dictionaryTransformCache.d.ts.map +1 -1
- package/dist/types/interpreter/getCondition.d.ts +1 -2
- package/dist/types/interpreter/getCondition.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/deepTransform.d.ts +1 -2
- package/dist/types/interpreter/getContent/deepTransform.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/getContent.d.ts +2 -3
- package/dist/types/interpreter/getContent/getContent.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/plugins.d.ts +28 -29
- package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionary.d.ts +1 -2
- package/dist/types/interpreter/getDictionary.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionaryAsync.d.ts +1 -2
- package/dist/types/interpreter/getDictionaryAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getEnumeration.d.ts +2 -3
- package/dist/types/interpreter/getEnumeration.d.ts.map +1 -1
- package/dist/types/interpreter/getGender.d.ts +1 -2
- package/dist/types/interpreter/getGender.d.ts.map +1 -1
- package/dist/types/interpreter/getHTML.d.ts +1 -2
- package/dist/types/interpreter/getHTML.d.ts.map +1 -1
- package/dist/types/interpreter/getInsertion.d.ts +1 -2
- package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayer.d.ts +1 -2
- package/dist/types/interpreter/getIntlayer.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayerAsync.d.ts +1 -2
- package/dist/types/interpreter/getIntlayerAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.d.ts +2 -3
- package/dist/types/interpreter/getNesting.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.optimized.d.ts +1 -2
- package/dist/types/interpreter/getNesting.optimized.d.ts.map +1 -1
- package/dist/types/interpreter/getPlural.d.ts +3 -4
- package/dist/types/interpreter/getPlural.d.ts.map +1 -1
- package/dist/types/interpreter/getSelect.d.ts +1 -2
- package/dist/types/interpreter/getSelect.d.ts.map +1 -1
- package/dist/types/interpreter/getTranslation.d.ts +1 -2
- package/dist/types/interpreter/getTranslation.d.ts.map +1 -1
- package/dist/types/interpreter/interpolableNode.d.ts +5 -6
- package/dist/types/interpreter/interpolableNode.d.ts.map +1 -1
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts +1 -2
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts.map +1 -1
- package/dist/types/localization/comparePaths.d.ts +2 -3
- package/dist/types/localization/comparePaths.d.ts.map +1 -1
- package/dist/types/localization/domainUtils.d.ts +5 -6
- package/dist/types/localization/domainUtils.d.ts.map +1 -1
- package/dist/types/localization/generateSitemap.d.ts +4 -5
- package/dist/types/localization/generateSitemap.d.ts.map +1 -1
- package/dist/types/localization/getBrowserLocale.d.ts +2 -3
- package/dist/types/localization/getBrowserLocale.d.ts.map +1 -1
- package/dist/types/localization/getCanonicalPath.d.ts +1 -2
- package/dist/types/localization/getCanonicalPath.d.ts.map +1 -1
- package/dist/types/localization/getHTMLTextDir.d.ts +1 -2
- package/dist/types/localization/getHTMLTextDir.d.ts.map +1 -1
- package/dist/types/localization/getLocale.d.ts +2 -3
- package/dist/types/localization/getLocale.d.ts.map +1 -1
- package/dist/types/localization/getLocaleFromPath.d.ts +1 -2
- package/dist/types/localization/getLocaleFromPath.d.ts.map +1 -1
- package/dist/types/localization/getLocaleLang.d.ts +1 -2
- package/dist/types/localization/getLocaleLang.d.ts.map +1 -1
- package/dist/types/localization/getLocaleName.d.ts +1 -2
- package/dist/types/localization/getLocaleName.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedPath.d.ts +1 -2
- package/dist/types/localization/getLocalizedPath.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedUrl.d.ts +1 -2
- package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
- package/dist/types/localization/getMultilingualUrls.d.ts +1 -2
- package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -1
- package/dist/types/localization/getPathWithoutLocale.d.ts +1 -2
- package/dist/types/localization/getPathWithoutLocale.d.ts.map +1 -1
- package/dist/types/localization/getPrefix.d.ts +7 -8
- package/dist/types/localization/getPrefix.d.ts.map +1 -1
- package/dist/types/localization/localeDetector.d.ts +2 -3
- package/dist/types/localization/localeDetector.d.ts.map +1 -1
- package/dist/types/localization/localeMapper.d.ts +4 -5
- package/dist/types/localization/localeMapper.d.ts.map +1 -1
- package/dist/types/localization/localeResolver.d.ts +1 -2
- package/dist/types/localization/localeResolver.d.ts.map +1 -1
- package/dist/types/localization/proxyMode.d.ts +4 -5
- package/dist/types/localization/proxyMode.d.ts.map +1 -1
- package/dist/types/localization/resolveBrowserLocale.d.ts +2 -3
- package/dist/types/localization/resolveBrowserLocale.d.ts.map +1 -1
- package/dist/types/localization/rewriteMatch.d.ts +3 -4
- package/dist/types/localization/rewriteMatch.d.ts.map +1 -1
- package/dist/types/localization/rewriteUtils.d.ts +5 -6
- package/dist/types/localization/rewriteUtils.d.ts.map +1 -1
- package/dist/types/localization/validatePrefix.d.ts +2 -3
- package/dist/types/localization/validatePrefix.d.ts.map +1 -1
- package/dist/types/markdown/compiler.d.ts +50 -8
- package/dist/types/markdown/compiler.d.ts.map +1 -1
- package/dist/types/markdown/constants.d.ts +101 -93
- package/dist/types/markdown/constants.d.ts.map +1 -1
- package/dist/types/markdown/elementScanner.d.ts +14 -0
- package/dist/types/markdown/elementScanner.d.ts.map +1 -0
- package/dist/types/markdown/index.d.ts +4 -4
- package/dist/types/markdown/parser.d.ts +1 -7
- package/dist/types/markdown/parser.d.ts.map +1 -1
- package/dist/types/markdown/renderer.d.ts +2 -7
- package/dist/types/markdown/renderer.d.ts.map +1 -1
- package/dist/types/markdown/types.d.ts +62 -50
- package/dist/types/markdown/types.d.ts.map +1 -1
- package/dist/types/markdown/utils.d.ts +35 -31
- package/dist/types/markdown/utils.d.ts.map +1 -1
- package/dist/types/messageFormat/ICU.d.ts +3 -4
- package/dist/types/messageFormat/ICU.d.ts.map +1 -1
- package/dist/types/messageFormat/i18next.d.ts +2 -3
- package/dist/types/messageFormat/i18next.d.ts.map +1 -1
- package/dist/types/messageFormat/navigatePath.d.ts +1 -2
- package/dist/types/messageFormat/navigatePath.d.ts.map +1 -1
- package/dist/types/messageFormat/po.d.ts +3 -4
- package/dist/types/messageFormat/po.d.ts.map +1 -1
- package/dist/types/messageFormat/resolveMessage.d.ts +7 -8
- package/dist/types/messageFormat/resolveMessage.d.ts.map +1 -1
- package/dist/types/messageFormat/vue-i18n.d.ts +2 -3
- package/dist/types/messageFormat/vue-i18n.d.ts.map +1 -1
- package/dist/types/transpiler/condition/condition.d.ts +3 -3
- package/dist/types/transpiler/condition/condition.d.ts.map +1 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts +4 -4
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
- package/dist/types/transpiler/file/file.d.ts +4 -5
- package/dist/types/transpiler/file/file.d.ts.map +1 -1
- package/dist/types/transpiler/file/fileBrowser.d.ts +1 -2
- package/dist/types/transpiler/file/fileBrowser.d.ts.map +1 -1
- package/dist/types/transpiler/gender/gender.d.ts +4 -4
- package/dist/types/transpiler/gender/gender.d.ts.map +1 -1
- package/dist/types/transpiler/html/getHTMLCustomComponents.d.ts +1 -2
- package/dist/types/transpiler/html/getHTMLCustomComponents.d.ts.map +1 -1
- package/dist/types/transpiler/html/html.d.ts +3 -4
- package/dist/types/transpiler/html/html.d.ts.map +1 -1
- package/dist/types/transpiler/html/htmlTags.d.ts +2 -3
- package/dist/types/transpiler/html/htmlTags.d.ts.map +1 -1
- package/dist/types/transpiler/html/validateHTML.d.ts +4 -5
- package/dist/types/transpiler/html/validateHTML.d.ts.map +1 -1
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts +1 -2
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +1 -1
- package/dist/types/transpiler/insertion/insertion.d.ts +3 -3
- package/dist/types/transpiler/insertion/insertion.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +1 -2
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/markdown.d.ts +3 -3
- package/dist/types/transpiler/markdown/markdown.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts +3 -3
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts.map +1 -1
- package/dist/types/transpiler/nesting/nesting.d.ts +5 -5
- package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -1
- package/dist/types/transpiler/plural/plural.d.ts +4 -4
- package/dist/types/transpiler/plural/plural.d.ts.map +1 -1
- package/dist/types/transpiler/select/select.d.ts +3 -3
- package/dist/types/transpiler/select/select.d.ts.map +1 -1
- package/dist/types/transpiler/translation/translation.d.ts +2 -2
- package/dist/types/transpiler/translation/translation.d.ts.map +1 -1
- package/dist/types/utils/checkIsURLAbsolute.d.ts +1 -2
- package/dist/types/utils/checkIsURLAbsolute.d.ts.map +1 -1
- package/dist/types/utils/cookieExpiry.d.ts +2 -3
- package/dist/types/utils/cookieExpiry.d.ts.map +1 -1
- package/dist/types/utils/getCookie.d.ts +1 -2
- package/dist/types/utils/getCookie.d.ts.map +1 -1
- package/dist/types/utils/intl.d.ts +7 -7
- package/dist/types/utils/intl.d.ts.map +1 -1
- package/dist/types/utils/isSameKeyPath.d.ts +1 -2
- package/dist/types/utils/isSameKeyPath.d.ts.map +1 -1
- package/dist/types/utils/isValidReactElement.d.ts +1 -2
- package/dist/types/utils/isValidReactElement.d.ts.map +1 -1
- package/dist/types/utils/localeStorage.d.ts +14 -15
- package/dist/types/utils/localeStorage.d.ts.map +1 -1
- package/dist/types/utils/parseYaml.d.ts +3 -4
- package/dist/types/utils/parseYaml.d.ts.map +1 -1
- package/dist/types/utils/stringifyYaml.d.ts +1 -2
- package/dist/types/utils/stringifyYaml.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/formatters/compact.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/currency.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/date.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/index.d.ts +0 -9
- package/dist/types/@intlayer/core/dist/types/formatters/list.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/number.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/percentage.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/relativeTime.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/formatters/units.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/interpreter/dictionaryTransformCache.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/interpreter/getCondition.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +0 -3
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +0 -3
- package/dist/types/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +0 -7
- package/dist/types/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayerAsync.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/interpreter/getNesting.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -3
- package/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -18
- package/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
- package/dist/types/@intlayer/core/dist/types/localization/comparePaths.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/domainUtils.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/generateSitemap.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getCanonicalPath.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getLocale.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getLocaleName.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/getPrefix.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/index.d.ts +0 -22
- package/dist/types/@intlayer/core/dist/types/localization/localeDetector.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/localeMapper.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/localeResolver.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/rewriteMatch.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/localization/validatePrefix.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/markdown/index.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/condition/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/file/file.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/file/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/gender/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/html/html.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/html/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -22
- package/dist/types/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -4
- package/dist/types/@intlayer/core/dist/types/transpiler/plural/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/select/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/select/select.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/translation/index.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +0 -2
- package/dist/types/@intlayer/core/dist/types/utils/index.d.ts +0 -3
- package/dist/types/@intlayer/core/dist/types/utils/intl.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +0 -1
- package/dist/types/@intlayer/core/dist/types/utils/localeStorage.d.ts +0 -2
- package/dist/types/intlayer/dist/types/index.d.ts +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
//#region src/utils/localeStorage.d.ts
|
|
4
|
-
type CookieBuildAttributes = {
|
|
4
|
+
export type CookieBuildAttributes = {
|
|
5
5
|
domain?: string;
|
|
6
6
|
path?: string;
|
|
7
7
|
secure?: boolean;
|
|
@@ -14,7 +14,7 @@ type CookieBuildAttributes = {
|
|
|
14
14
|
*/
|
|
15
15
|
expires?: number | undefined;
|
|
16
16
|
};
|
|
17
|
-
type LocaleStorageClientOptions = {
|
|
17
|
+
export type LocaleStorageClientOptions = {
|
|
18
18
|
overwrite?: boolean;
|
|
19
19
|
isCookieEnabled?: boolean;
|
|
20
20
|
setCookieStore?: (name: string, value: string, cookie: CookieBuildAttributes) => void;
|
|
@@ -25,19 +25,19 @@ type LocaleStorageClientOptions = {
|
|
|
25
25
|
setLocaleStorage?: (name: string, value: string) => void;
|
|
26
26
|
getLocaleStorage?: (name: string) => string | undefined | null;
|
|
27
27
|
};
|
|
28
|
-
declare const localeStorageOptions: LocaleStorageClientOptions;
|
|
28
|
+
export declare const localeStorageOptions: LocaleStorageClientOptions;
|
|
29
29
|
/**
|
|
30
30
|
* Retrieves the locale from browser storage mechanisms
|
|
31
31
|
* (cookies, localStorage, sessionStorage).
|
|
32
32
|
* Does not read from headers — use `getLocaleFromStorageServer` for that.
|
|
33
33
|
*/
|
|
34
|
-
declare const getLocaleFromStorageClient: (options?: LocaleStorageClientOptions) => Locale | undefined;
|
|
34
|
+
export declare const getLocaleFromStorageClient: (options?: LocaleStorageClientOptions) => Locale | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Stores the locale in browser storage mechanisms
|
|
37
37
|
* (cookies, localStorage, sessionStorage).
|
|
38
38
|
* Does not write to headers — use `setLocaleInStorageServer` for that.
|
|
39
39
|
*/
|
|
40
|
-
declare const setLocaleInStorageClient: (locale: LocalesValues, options?: LocaleStorageClientOptions) => void;
|
|
40
|
+
export declare const setLocaleInStorageClient: (locale: LocalesValues, options?: LocaleStorageClientOptions) => void;
|
|
41
41
|
/**
|
|
42
42
|
* Client-side locale storage utility.
|
|
43
43
|
* Handles cookies (browser), localStorage and sessionStorage.
|
|
@@ -50,11 +50,11 @@ declare const setLocaleInStorageClient: (locale: LocalesValues, options?: Locale
|
|
|
50
50
|
* storage.setLocale('fr');
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
declare const LocaleStorageClient: (options: LocaleStorageClientOptions) => {
|
|
53
|
+
export declare const LocaleStorageClient: (options: LocaleStorageClientOptions) => {
|
|
54
54
|
getLocale: () => Locale;
|
|
55
55
|
setLocale: (locale: LocalesValues) => void;
|
|
56
56
|
};
|
|
57
|
-
type LocaleStorageServerOptions = {
|
|
57
|
+
export type LocaleStorageServerOptions = {
|
|
58
58
|
overwrite?: boolean;
|
|
59
59
|
isCookieEnabled?: boolean;
|
|
60
60
|
setCookieStore?: (name: string, value: string, cookie: CookieBuildAttributes) => void;
|
|
@@ -68,12 +68,12 @@ type LocaleStorageServerOptions = {
|
|
|
68
68
|
* Does not access localStorage or sessionStorage.
|
|
69
69
|
* No browser cookie fallback — the caller must provide `getCookie`.
|
|
70
70
|
*/
|
|
71
|
-
declare const getLocaleFromStorageServer: (options: LocaleStorageServerOptions) => Locale | undefined;
|
|
71
|
+
export declare const getLocaleFromStorageServer: (options: LocaleStorageServerOptions) => Locale | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* Stores the locale in server-side storage mechanisms (cookies, headers).
|
|
74
74
|
* Does not write to localStorage or sessionStorage.
|
|
75
75
|
*/
|
|
76
|
-
declare const setLocaleInStorageServer: (locale: LocalesValues, options?: LocaleStorageServerOptions) => void;
|
|
76
|
+
export declare const setLocaleInStorageServer: (locale: LocalesValues, options?: LocaleStorageServerOptions) => void;
|
|
77
77
|
/**
|
|
78
78
|
* Server-side locale storage utility.
|
|
79
79
|
* Handles cookies (via injected getter/setter) and headers.
|
|
@@ -91,14 +91,14 @@ declare const setLocaleInStorageServer: (locale: LocalesValues, options?: Locale
|
|
|
91
91
|
* storage.setLocale('fr');
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
|
-
declare const LocaleStorageServer: (options: LocaleStorageServerOptions) => {
|
|
94
|
+
export declare const LocaleStorageServer: (options: LocaleStorageServerOptions) => {
|
|
95
95
|
getLocale: () => Locale;
|
|
96
96
|
setLocale: (locale: LocalesValues) => void;
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
99
99
|
* @deprecated Use {@link LocaleStorageClientOptions} or {@link LocaleStorageServerOptions} instead.
|
|
100
100
|
*/
|
|
101
|
-
type LocaleStorageOptions = LocaleStorageClientOptions & LocaleStorageServerOptions;
|
|
101
|
+
export type LocaleStorageOptions = LocaleStorageClientOptions & LocaleStorageServerOptions;
|
|
102
102
|
/**
|
|
103
103
|
* Retrieves the locale from all storage mechanisms
|
|
104
104
|
* (cookies, localStorage, sessionStorage, headers).
|
|
@@ -106,7 +106,7 @@ type LocaleStorageOptions = LocaleStorageClientOptions & LocaleStorageServerOpti
|
|
|
106
106
|
* @deprecated Use {@link getLocaleFromStorageClient} (browser) or
|
|
107
107
|
* {@link getLocaleFromStorageServer} (server) instead.
|
|
108
108
|
*/
|
|
109
|
-
declare const getLocaleFromStorage: (options: Pick<LocaleStorageOptions, 'getCookie' | 'getSessionStorage' | 'getLocaleStorage' | 'getHeader' | 'isCookieEnabled'>) => Locale | undefined;
|
|
109
|
+
export declare const getLocaleFromStorage: (options: Pick<LocaleStorageOptions, 'getCookie' | 'getSessionStorage' | 'getLocaleStorage' | 'getHeader' | 'isCookieEnabled'>) => Locale | undefined;
|
|
110
110
|
/**
|
|
111
111
|
* Stores the locale in all configured storage mechanisms
|
|
112
112
|
* (cookies, localStorage, sessionStorage, headers).
|
|
@@ -114,17 +114,16 @@ declare const getLocaleFromStorage: (options: Pick<LocaleStorageOptions, 'getCoo
|
|
|
114
114
|
* @deprecated Use {@link setLocaleInStorageClient} (browser) or
|
|
115
115
|
* {@link setLocaleInStorageServer} (server) instead.
|
|
116
116
|
*/
|
|
117
|
-
declare const setLocaleInStorage: (locale: LocalesValues, options?: LocaleStorageOptions) => void;
|
|
117
|
+
export declare const setLocaleInStorage: (locale: LocalesValues, options?: LocaleStorageOptions) => void;
|
|
118
118
|
/**
|
|
119
119
|
* Utility object to get and set the locale in storage based on configuration.
|
|
120
120
|
*
|
|
121
121
|
* @deprecated Use {@link LocaleStorageClient} (browser) or
|
|
122
122
|
* {@link LocaleStorageServer} (server) instead.
|
|
123
123
|
*/
|
|
124
|
-
declare const LocaleStorage: (options: LocaleStorageOptions) => {
|
|
124
|
+
export declare const LocaleStorage: (options: LocaleStorageOptions) => {
|
|
125
125
|
getLocale: () => Locale;
|
|
126
126
|
setLocale: (locale: LocalesValues) => void;
|
|
127
127
|
};
|
|
128
128
|
//#endregion
|
|
129
|
-
export { CookieBuildAttributes, LocaleStorage, LocaleStorageClient, LocaleStorageClientOptions, LocaleStorageOptions, LocaleStorageServer, LocaleStorageServerOptions, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, localeStorageOptions, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer };
|
|
130
129
|
//# 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;;;;;;qBA6CU,2BAAwB,QAC3B,eAAa,UACX;;;;;;;;;;;;;qBAwEC,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,15 +1,14 @@
|
|
|
1
1
|
//#region src/utils/parseYaml.d.ts
|
|
2
|
-
interface YamlRecord {
|
|
2
|
+
export interface YamlRecord {
|
|
3
3
|
[key: string]: YamlValue;
|
|
4
4
|
}
|
|
5
|
-
type YamlValue = string | number | YamlValue[] | YamlRecord;
|
|
5
|
+
export type YamlValue = string | number | YamlValue[] | YamlRecord;
|
|
6
6
|
/**
|
|
7
7
|
* Parses a YAML/JSON-like string into a typed value.
|
|
8
8
|
* Supports scalars, quoted strings, inline arrays/objects, and indented YAML syntax.
|
|
9
9
|
* Boolean/null literals (true, false, null, yes, no, etc.) are preserved as strings,
|
|
10
10
|
* not coerced to their native JS equivalents.
|
|
11
11
|
*/
|
|
12
|
-
declare const parseYaml: <T = YamlValue>(input: string) => T | null;
|
|
12
|
+
export declare const parseYaml: <T = YamlValue>(input: string) => T | null;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { YamlRecord, YamlValue, parseYaml };
|
|
15
14
|
//# 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":";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":";qBAwGa,gBAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/core",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
|
|
6
6
|
"keywords": [
|
|
@@ -172,22 +172,22 @@
|
|
|
172
172
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
173
173
|
},
|
|
174
174
|
"dependencies": {
|
|
175
|
-
"@intlayer/api": "9.
|
|
176
|
-
"@intlayer/config": "9.
|
|
177
|
-
"@intlayer/dictionaries-entry": "9.
|
|
178
|
-
"@intlayer/types": "9.
|
|
179
|
-
"@intlayer/unmerged-dictionaries-entry": "9.
|
|
175
|
+
"@intlayer/api": "9.5.0",
|
|
176
|
+
"@intlayer/config": "9.5.0",
|
|
177
|
+
"@intlayer/dictionaries-entry": "9.5.0",
|
|
178
|
+
"@intlayer/types": "9.5.0",
|
|
179
|
+
"@intlayer/unmerged-dictionaries-entry": "9.5.0",
|
|
180
180
|
"defu": "6.1.7"
|
|
181
181
|
},
|
|
182
182
|
"devDependencies": {
|
|
183
|
-
"@types/node": "26.
|
|
183
|
+
"@types/node": "26.5.0",
|
|
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.
|
|
188
|
+
"tsdown": "0.23.0",
|
|
189
189
|
"typescript": "7.0.2",
|
|
190
|
-
"vitest": "
|
|
190
|
+
"vitest": "5.0.0"
|
|
191
191
|
},
|
|
192
192
|
"engines": {
|
|
193
193
|
"node": ">=14.18"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/config/defaultValues";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../dictionaryManipulator/qualifiedDynamicLoader.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../../../intlayer/dist/types/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/types/nodeType";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./nesting.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../interpreter/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/config/defaultValues";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../dictionaryManipulator/qualifiedDynamicLoader.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../intlayer/dist/types/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/types/nodeType";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "../../../@intlayer/core/dist/types/interpreter/index.js";
|
|
2
|
-
import "../../../@intlayer/core/dist/types/transpiler/index.js";
|
|
3
|
-
import "@intlayer/types/module_augmentation";
|
|
4
|
-
import "@intlayer/types/allLocales";
|
|
5
|
-
import "@intlayer/types/locales";
|
|
6
|
-
import "@intlayer/config/built";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./nesting.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../interpreter/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/config/defaultValues";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../dictionaryManipulator/qualifiedDynamicLoader.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../intlayer/dist/types/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/types/nodeType";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "../../../@intlayer/core/dist/types/transpiler/index.js";
|
|
2
|
-
import "../../../@intlayer/core/dist/types/interpreter/index.js";
|
|
3
|
-
import "@intlayer/types/module_augmentation";
|
|
4
|
-
import "@intlayer/types/allLocales";
|
|
5
|
-
import "@intlayer/types/locales";
|
|
6
|
-
import "@intlayer/config/built";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./nesting.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../interpreter/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/config/defaultValues";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../dictionaryManipulator/qualifiedDynamicLoader.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../intlayer/dist/types/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/types/nodeType";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "../../../@intlayer/core/dist/types/interpreter/index.js";
|
|
2
|
-
import "../../../@intlayer/core/dist/types/transpiler/index.js";
|
|
3
|
-
import "@intlayer/types/module_augmentation";
|
|
4
|
-
import "@intlayer/types/allLocales";
|
|
5
|
-
import "@intlayer/types/locales";
|
|
6
|
-
import "@intlayer/config/built";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./nesting.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../interpreter/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/config/defaultValues";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../dictionaryManipulator/qualifiedDynamicLoader.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../intlayer/dist/types/index.js";
|
package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../transpiler/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@intlayer/types/nodeType";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "../../../@intlayer/core/dist/types/transpiler/index.js";
|
|
2
|
-
import "../../../@intlayer/core/dist/types/interpreter/index.js";
|
|
3
|
-
import "@intlayer/types/module_augmentation";
|
|
4
|
-
import "@intlayer/types/allLocales";
|
|
5
|
-
import "@intlayer/types/locales";
|
|
6
|
-
import "@intlayer/config/built";
|
package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./nesting.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../interpreter/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./plugins.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "../../transpiler/gender/gender.js";
|
|
2
|
-
import "../../transpiler/index.js";
|
|
3
|
-
import "../getNesting.js";
|
|
4
|
-
import { DeclaredLocales, DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
import { Locale } from "@intlayer/types/allLocales";
|
|
6
|
-
import { KeyPath } from "@intlayer/types/keyPath";
|
|
7
|
-
import { NodeType } from "@intlayer/types/nodeType";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "./getContent/plugins.js";
|
|
2
|
-
import "./getContent/index.js";
|
|
3
|
-
import { Dictionary, DictionarySelector, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from "@intlayer/types/dictionary";
|
|
4
|
-
import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "./getContent/plugins.js";
|
|
2
|
-
import "./getContent/index.js";
|
|
3
|
-
import "../dictionaryManipulator/plainDynamicLoader.js";
|
|
4
|
-
import "../dictionaryManipulator/qualifiedDynamicLoader.js";
|
|
5
|
-
import { Dictionary, DictionarySelector } from "@intlayer/types/dictionary";
|
|
6
|
-
import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "./getContent/plugins.js";
|
|
2
|
-
import "./getContent/index.js";
|
|
3
|
-
import { DictionarySelector } from "@intlayer/types/dictionary";
|
|
4
|
-
import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
|