@intlayer/core 6.1.6-canary.0 → 7.0.0-canary.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/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +213 -0
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs.map +1 -0
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +95 -0
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs.map +1 -0
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +46 -0
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -0
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs +33 -0
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs.map +1 -0
- package/dist/cjs/deepTransformPlugins/getMaskContent.cjs +27 -0
- package/dist/cjs/deepTransformPlugins/getMaskContent.cjs.map +1 -0
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +45 -0
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs.map +1 -0
- package/dist/cjs/deepTransformPlugins/getReplacedValuesContent.cjs +60 -0
- package/dist/cjs/deepTransformPlugins/getReplacedValuesContent.cjs.map +1 -0
- package/dist/cjs/deepTransformPlugins/index.cjs +25 -0
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +107 -0
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +59 -91
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +13 -39
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +48 -94
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +24 -68
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +21 -56
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs +32 -49
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getUnmergedDictionaryByKeyPath.cjs +18 -50
- package/dist/cjs/dictionaryManipulator/getUnmergedDictionaryByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/index.cjs +28 -41
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +69 -0
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/normalizeDictionary.cjs +30 -0
- package/dist/cjs/dictionaryManipulator/normalizeDictionary.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs +48 -0
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +29 -54
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +37 -63
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +36 -76
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs.map +1 -1
- package/dist/cjs/formatters/compact.cjs +24 -46
- package/dist/cjs/formatters/compact.cjs.map +1 -1
- package/dist/cjs/formatters/currency.cjs +28 -50
- package/dist/cjs/formatters/currency.cjs.map +1 -1
- package/dist/cjs/formatters/date.cjs +56 -79
- package/dist/cjs/formatters/date.cjs.map +1 -1
- package/dist/cjs/formatters/index.cjs +17 -37
- package/dist/cjs/formatters/list.cjs +29 -47
- package/dist/cjs/formatters/list.cjs.map +1 -1
- package/dist/cjs/formatters/number.cjs +17 -43
- package/dist/cjs/formatters/number.cjs.map +1 -1
- package/dist/cjs/formatters/percentage.cjs +22 -51
- package/dist/cjs/formatters/percentage.cjs.map +1 -1
- package/dist/cjs/formatters/relativeTime.cjs +28 -70
- package/dist/cjs/formatters/relativeTime.cjs.map +1 -1
- package/dist/cjs/formatters/units.cjs +22 -48
- package/dist/cjs/formatters/units.cjs.map +1 -1
- package/dist/cjs/getStorageAttributes.cjs +116 -0
- package/dist/cjs/getStorageAttributes.cjs.map +1 -0
- package/dist/cjs/index.cjs +154 -45
- package/dist/cjs/interpreter/getCondition.cjs +30 -30
- package/dist/cjs/interpreter/getCondition.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/deepTransform.cjs +38 -63
- package/dist/cjs/interpreter/getContent/deepTransform.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/getContent.cjs +31 -54
- package/dist/cjs/interpreter/getContent/getContent.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/index.cjs +13 -27
- package/dist/cjs/interpreter/getContent/plugins.cjs +135 -175
- package/dist/cjs/interpreter/getContent/plugins.cjs.map +1 -1
- package/dist/cjs/interpreter/getDictionary.cjs +21 -39
- package/dist/cjs/interpreter/getDictionary.cjs.map +1 -1
- package/dist/cjs/interpreter/getEnumeration.cjs +69 -42
- package/dist/cjs/interpreter/getEnumeration.cjs.map +1 -1
- package/dist/cjs/interpreter/getGender.cjs +33 -34
- package/dist/cjs/interpreter/getGender.cjs.map +1 -1
- package/dist/cjs/interpreter/getInsertion.cjs +18 -27
- package/dist/cjs/interpreter/getInsertion.cjs.map +1 -1
- package/dist/cjs/interpreter/getIntlayer.cjs +13 -48
- package/dist/cjs/interpreter/getIntlayer.cjs.map +1 -1
- package/dist/cjs/interpreter/getNesting.cjs +26 -41
- package/dist/cjs/interpreter/getNesting.cjs.map +1 -1
- package/dist/cjs/interpreter/getTranslation.cjs +29 -32
- package/dist/cjs/interpreter/getTranslation.cjs.map +1 -1
- package/dist/cjs/interpreter/index.cjs +26 -39
- package/dist/cjs/localization/getBrowserLocale.cjs +144 -0
- package/dist/cjs/localization/getBrowserLocale.cjs.map +1 -0
- package/dist/cjs/localization/getHTMLTextDir.cjs +49 -255
- package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleFromPath.cjs +40 -56
- package/dist/cjs/localization/getLocaleFromPath.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleLang.cjs +18 -27
- package/dist/cjs/localization/getLocaleLang.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleName.cjs +7 -32
- package/dist/cjs/localization/getLocaleName.cjs.map +1 -1
- package/dist/cjs/localization/getLocalizedUrl.cjs +46 -47
- package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
- package/dist/cjs/localization/getMultilingualUrls.cjs +69 -65
- package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
- package/dist/cjs/localization/getPathWithoutLocale.cjs +53 -61
- package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
- package/dist/cjs/localization/index.cjs +26 -63
- package/dist/cjs/localization/localeDetector.cjs +108 -39
- package/dist/cjs/localization/localeDetector.cjs.map +1 -1
- package/dist/cjs/localization/localeMapper.cjs +118 -72
- package/dist/cjs/localization/localeMapper.cjs.map +1 -1
- package/dist/cjs/localization/localeResolver.cjs +26 -61
- package/dist/cjs/localization/localeResolver.cjs.map +1 -1
- package/dist/cjs/transpiler/condition/condition.cjs +26 -29
- package/dist/cjs/transpiler/condition/condition.cjs.map +1 -1
- package/dist/cjs/transpiler/condition/index.cjs +3 -23
- package/dist/cjs/transpiler/enumeration/enumeration.cjs +28 -29
- package/dist/cjs/transpiler/enumeration/enumeration.cjs.map +1 -1
- package/dist/cjs/transpiler/enumeration/index.cjs +3 -23
- package/dist/cjs/transpiler/file/file.cjs +52 -71
- package/dist/cjs/transpiler/file/file.cjs.map +1 -1
- package/dist/cjs/transpiler/file/fileBrowser.cjs +24 -33
- package/dist/cjs/transpiler/file/fileBrowser.cjs.map +1 -1
- package/dist/cjs/transpiler/file/index.cjs +4 -23
- package/dist/cjs/transpiler/gender/gender.cjs +26 -29
- package/dist/cjs/transpiler/gender/gender.cjs.map +1 -1
- package/dist/cjs/transpiler/gender/index.cjs +3 -23
- package/dist/cjs/transpiler/index.cjs +19 -35
- package/dist/cjs/transpiler/insertion/getInsertionValues.cjs +8 -31
- package/dist/cjs/transpiler/insertion/getInsertionValues.cjs.map +1 -1
- package/dist/cjs/transpiler/insertion/index.cjs +5 -25
- package/dist/cjs/transpiler/insertion/insertion.cjs +34 -51
- package/dist/cjs/transpiler/insertion/insertion.cjs.map +1 -1
- package/dist/cjs/transpiler/markdown/getMarkdownMetadata.cjs +53 -86
- package/dist/cjs/transpiler/markdown/getMarkdownMetadata.cjs.map +1 -1
- package/dist/cjs/transpiler/markdown/index.cjs +5 -25
- package/dist/cjs/transpiler/markdown/markdown.cjs +33 -52
- package/dist/cjs/transpiler/markdown/markdown.cjs.map +1 -1
- package/dist/cjs/transpiler/nesting/index.cjs +3 -23
- package/dist/cjs/transpiler/nesting/nesting.cjs +26 -31
- package/dist/cjs/transpiler/nesting/nesting.cjs.map +1 -1
- package/dist/cjs/transpiler/translation/index.cjs +3 -23
- package/dist/cjs/transpiler/translation/translation.cjs +29 -29
- package/dist/cjs/transpiler/translation/translation.cjs.map +1 -1
- package/dist/cjs/utils/checkIsURLAbsolute.cjs +5 -27
- package/dist/cjs/utils/checkIsURLAbsolute.cjs.map +1 -1
- package/dist/cjs/utils/intl.cjs +48 -74
- package/dist/cjs/utils/intl.cjs.map +1 -1
- package/dist/cjs/utils/isSameKeyPath.cjs +6 -30
- package/dist/cjs/utils/isSameKeyPath.cjs.map +1 -1
- package/dist/cjs/utils/isValidReactElement.cjs +12 -27
- package/dist/cjs/utils/isValidReactElement.cjs.map +1 -1
- package/dist/cjs/utils/localeStorage.cjs +143 -0
- package/dist/cjs/utils/localeStorage.cjs.map +1 -0
- package/dist/cjs/utils/parseYaml.cjs +185 -55
- package/dist/cjs/utils/parseYaml.cjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getFilterMissingTranslationsContent.mjs +208 -0
- package/dist/esm/deepTransformPlugins/getFilterMissingTranslationsContent.mjs.map +1 -0
- package/dist/esm/deepTransformPlugins/getFilterTranslationsOnlyContent.mjs +90 -0
- package/dist/esm/deepTransformPlugins/getFilterTranslationsOnlyContent.mjs.map +1 -0
- package/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +43 -0
- package/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs.map +1 -0
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +32 -0
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -0
- package/dist/esm/deepTransformPlugins/getMaskContent.mjs +26 -0
- package/dist/esm/deepTransformPlugins/getMaskContent.mjs.map +1 -0
- package/dist/esm/deepTransformPlugins/getMissingLocalesContent.mjs +41 -0
- package/dist/esm/deepTransformPlugins/getMissingLocalesContent.mjs.map +1 -0
- package/dist/esm/deepTransformPlugins/getReplacedValuesContent.mjs +60 -0
- package/dist/esm/deepTransformPlugins/getReplacedValuesContent.mjs.map +1 -0
- package/dist/esm/deepTransformPlugins/index.mjs +10 -0
- package/dist/esm/deepTransformPlugins/insertContentInDictionary.mjs +105 -0
- package/dist/esm/deepTransformPlugins/insertContentInDictionary.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs +57 -67
- package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs +11 -15
- package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getDefaultNode.mjs +46 -70
- package/dist/esm/dictionaryManipulator/getDefaultNode.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getEmptyNode.mjs +22 -44
- package/dist/esm/dictionaryManipulator/getEmptyNode.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getNodeChildren.mjs +19 -32
- package/dist/esm/dictionaryManipulator/getNodeChildren.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getNodeType.mjs +31 -26
- package/dist/esm/dictionaryManipulator/getNodeType.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getUnmergedDictionaryByKeyPath.mjs +14 -15
- package/dist/esm/dictionaryManipulator/getUnmergedDictionaryByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/index.mjs +15 -11
- package/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +66 -0
- package/dist/esm/dictionaryManipulator/mergeDictionaries.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +29 -0
- package/dist/esm/dictionaryManipulator/normalizeDictionary.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/orderDictionaries.mjs +46 -0
- package/dist/esm/dictionaryManipulator/orderDictionaries.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/removeContentNodeByKeyPath.mjs +27 -30
- package/dist/esm/dictionaryManipulator/removeContentNodeByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs +35 -39
- package/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/updateNodeChildren.mjs +34 -52
- package/dist/esm/dictionaryManipulator/updateNodeChildren.mjs.map +1 -1
- package/dist/esm/formatters/compact.mjs +21 -11
- package/dist/esm/formatters/compact.mjs.map +1 -1
- package/dist/esm/formatters/currency.mjs +25 -15
- package/dist/esm/formatters/currency.mjs.map +1 -1
- package/dist/esm/formatters/date.mjs +53 -44
- package/dist/esm/formatters/date.mjs.map +1 -1
- package/dist/esm/formatters/index.mjs +10 -9
- package/dist/esm/formatters/list.mjs +26 -12
- package/dist/esm/formatters/list.mjs.map +1 -1
- package/dist/esm/formatters/number.mjs +14 -8
- package/dist/esm/formatters/number.mjs.map +1 -1
- package/dist/esm/formatters/percentage.mjs +19 -16
- package/dist/esm/formatters/percentage.mjs.map +1 -1
- package/dist/esm/formatters/relativeTime.mjs +25 -35
- package/dist/esm/formatters/relativeTime.mjs.map +1 -1
- package/dist/esm/formatters/units.mjs +19 -13
- package/dist/esm/formatters/units.mjs.map +1 -1
- package/dist/esm/getStorageAttributes.mjs +114 -0
- package/dist/esm/getStorageAttributes.mjs.map +1 -0
- package/dist/esm/index.mjs +67 -13
- package/dist/esm/interpreter/getCondition.mjs +29 -6
- package/dist/esm/interpreter/getCondition.mjs.map +1 -1
- package/dist/esm/interpreter/getContent/deepTransform.mjs +36 -39
- package/dist/esm/interpreter/getContent/deepTransform.mjs.map +1 -1
- package/dist/esm/interpreter/getContent/getContent.mjs +28 -26
- package/dist/esm/interpreter/getContent/getContent.mjs.map +1 -1
- package/dist/esm/interpreter/getContent/index.mjs +5 -4
- package/dist/esm/interpreter/getContent/plugins.mjs +121 -139
- package/dist/esm/interpreter/getContent/plugins.mjs.map +1 -1
- package/dist/esm/interpreter/getDictionary.mjs +20 -14
- package/dist/esm/interpreter/getDictionary.mjs.map +1 -1
- package/dist/esm/interpreter/getEnumeration.mjs +67 -17
- package/dist/esm/interpreter/getEnumeration.mjs.map +1 -1
- package/dist/esm/interpreter/getGender.mjs +32 -10
- package/dist/esm/interpreter/getGender.mjs.map +1 -1
- package/dist/esm/interpreter/getInsertion.mjs +17 -3
- package/dist/esm/interpreter/getInsertion.mjs.map +1 -1
- package/dist/esm/interpreter/getIntlayer.mjs +10 -13
- package/dist/esm/interpreter/getIntlayer.mjs.map +1 -1
- package/dist/esm/interpreter/getNesting.mjs +25 -16
- package/dist/esm/interpreter/getNesting.mjs.map +1 -1
- package/dist/esm/interpreter/getTranslation.mjs +28 -8
- package/dist/esm/interpreter/getTranslation.mjs.map +1 -1
- package/dist/esm/interpreter/index.mjs +11 -10
- package/dist/esm/localization/getBrowserLocale.mjs +139 -0
- package/dist/esm/localization/getBrowserLocale.mjs.map +1 -0
- package/dist/esm/localization/getHTMLTextDir.mjs +47 -231
- package/dist/esm/localization/getHTMLTextDir.mjs.map +1 -1
- package/dist/esm/localization/getLocaleFromPath.mjs +36 -21
- package/dist/esm/localization/getLocaleFromPath.mjs.map +1 -1
- package/dist/esm/localization/getLocaleLang.mjs +17 -3
- package/dist/esm/localization/getLocaleLang.mjs.map +1 -1
- package/dist/esm/localization/getLocaleName.mjs +7 -8
- package/dist/esm/localization/getLocaleName.mjs.map +1 -1
- package/dist/esm/localization/getLocalizedUrl.mjs +43 -12
- package/dist/esm/localization/getLocalizedUrl.mjs.map +1 -1
- package/dist/esm/localization/getMultilingualUrls.mjs +65 -29
- package/dist/esm/localization/getMultilingualUrls.mjs.map +1 -1
- package/dist/esm/localization/getPathWithoutLocale.mjs +50 -26
- package/dist/esm/localization/getPathWithoutLocale.mjs.map +1 -1
- package/dist/esm/localization/index.mjs +7 -21
- package/dist/esm/localization/localeDetector.mjs +109 -6
- package/dist/esm/localization/localeDetector.mjs.map +1 -1
- package/dist/esm/localization/localeMapper.mjs +112 -35
- package/dist/esm/localization/localeMapper.mjs.map +1 -1
- package/dist/esm/localization/localeResolver.mjs +23 -26
- package/dist/esm/localization/localeResolver.mjs.map +1 -1
- package/dist/esm/transpiler/condition/condition.mjs +23 -7
- package/dist/esm/transpiler/condition/condition.mjs.map +1 -1
- package/dist/esm/transpiler/condition/index.mjs +3 -2
- package/dist/esm/transpiler/enumeration/enumeration.mjs +25 -7
- package/dist/esm/transpiler/enumeration/enumeration.mjs.map +1 -1
- package/dist/esm/transpiler/enumeration/index.mjs +3 -2
- package/dist/esm/transpiler/file/file.mjs +46 -40
- package/dist/esm/transpiler/file/file.mjs.map +1 -1
- package/dist/esm/transpiler/file/fileBrowser.mjs +22 -9
- package/dist/esm/transpiler/file/fileBrowser.mjs.map +1 -1
- package/dist/esm/transpiler/file/index.mjs +3 -2
- package/dist/esm/transpiler/gender/gender.mjs +23 -7
- package/dist/esm/transpiler/gender/gender.mjs.map +1 -1
- package/dist/esm/transpiler/gender/index.mjs +3 -2
- package/dist/esm/transpiler/index.mjs +11 -8
- package/dist/esm/transpiler/insertion/getInsertionValues.mjs +7 -7
- package/dist/esm/transpiler/insertion/getInsertionValues.mjs.map +1 -1
- package/dist/esm/transpiler/insertion/index.mjs +4 -3
- package/dist/esm/transpiler/insertion/insertion.mjs +31 -29
- package/dist/esm/transpiler/insertion/insertion.mjs.map +1 -1
- package/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs +52 -61
- package/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs.map +1 -1
- package/dist/esm/transpiler/markdown/index.mjs +4 -3
- package/dist/esm/transpiler/markdown/markdown.mjs +29 -29
- package/dist/esm/transpiler/markdown/markdown.mjs.map +1 -1
- package/dist/esm/transpiler/nesting/index.mjs +3 -2
- package/dist/esm/transpiler/nesting/nesting.mjs +23 -9
- package/dist/esm/transpiler/nesting/nesting.mjs.map +1 -1
- package/dist/esm/transpiler/translation/index.mjs +3 -2
- package/dist/esm/transpiler/translation/translation.mjs +26 -7
- package/dist/esm/transpiler/translation/translation.mjs.map +1 -1
- package/dist/esm/utils/checkIsURLAbsolute.mjs +4 -3
- package/dist/esm/utils/checkIsURLAbsolute.mjs.map +1 -1
- package/dist/esm/utils/intl.mjs +44 -49
- package/dist/esm/utils/intl.mjs.map +1 -1
- package/dist/esm/utils/isSameKeyPath.mjs +5 -6
- package/dist/esm/utils/isSameKeyPath.mjs.map +1 -1
- package/dist/esm/utils/isValidReactElement.mjs +11 -3
- package/dist/esm/utils/isValidReactElement.mjs.map +1 -1
- package/dist/esm/utils/localeStorage.mjs +139 -0
- package/dist/esm/utils/localeStorage.mjs.map +1 -0
- package/dist/esm/utils/parseYaml.mjs +184 -31
- package/dist/esm/utils/parseYaml.mjs.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +46 -0
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +38 -0
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +30 -0
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +18 -0
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts +10 -0
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +16 -0
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +8 -0
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/index.d.ts +9 -0
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +25 -0
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +6 -3
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +6 -3
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +6 -3
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +6 -2
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +6 -2
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeType.d.ts +6 -3
- package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getUnmergedDictionaryByKeyPath.d.ts +8 -3
- package/dist/types/dictionaryManipulator/getUnmergedDictionaryByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/index.d.ts +14 -11
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +7 -0
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +8 -0
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +16 -0
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +6 -3
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +6 -3
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +6 -2
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +1 -1
- package/dist/types/formatters/compact.d.ts +8 -3
- package/dist/types/formatters/compact.d.ts.map +1 -1
- package/dist/types/formatters/currency.d.ts +8 -3
- package/dist/types/formatters/currency.d.ts.map +1 -1
- package/dist/types/formatters/date.d.ts +8 -3
- package/dist/types/formatters/date.d.ts.map +1 -1
- package/dist/types/formatters/index.d.ts +9 -9
- package/dist/types/formatters/list.d.ts +8 -3
- package/dist/types/formatters/list.d.ts.map +1 -1
- package/dist/types/formatters/number.d.ts +8 -3
- package/dist/types/formatters/number.d.ts.map +1 -1
- package/dist/types/formatters/percentage.d.ts +8 -3
- package/dist/types/formatters/percentage.d.ts.map +1 -1
- package/dist/types/formatters/relativeTime.d.ts +8 -5
- package/dist/types/formatters/relativeTime.d.ts.map +1 -1
- package/dist/types/formatters/units.d.ts +8 -3
- package/dist/types/formatters/units.d.ts.map +1 -1
- package/dist/types/getStorageAttributes.d.ts +25 -0
- package/dist/types/getStorageAttributes.d.ts.map +1 -0
- package/dist/types/index.d.ts +67 -13
- package/dist/types/interpreter/getCondition.d.ts +7 -2
- package/dist/types/interpreter/getCondition.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/deepTransform.d.ts +7 -2
- package/dist/types/interpreter/getContent/deepTransform.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/getContent.d.ts +8 -4
- package/dist/types/interpreter/getContent/getContent.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/index.d.ts +4 -4
- package/dist/types/interpreter/getContent/plugins.d.ts +68 -66
- package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionary.d.ts +8 -4
- package/dist/types/interpreter/getDictionary.d.ts.map +1 -1
- package/dist/types/interpreter/getEnumeration.d.ts +8 -3
- package/dist/types/interpreter/getEnumeration.d.ts.map +1 -1
- package/dist/types/interpreter/getGender.d.ts +7 -4
- package/dist/types/interpreter/getGender.d.ts.map +1 -1
- package/dist/types/interpreter/getInsertion.d.ts +7 -2
- package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayer.d.ts +7 -5
- package/dist/types/interpreter/getIntlayer.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.d.ts +9 -6
- package/dist/types/interpreter/getNesting.d.ts.map +1 -1
- package/dist/types/interpreter/getTranslation.d.ts +7 -3
- package/dist/types/interpreter/getTranslation.d.ts.map +1 -1
- package/dist/types/interpreter/index.d.ts +10 -10
- package/dist/types/localization/getBrowserLocale.d.ts +35 -0
- package/dist/types/localization/getBrowserLocale.d.ts.map +1 -0
- package/dist/types/localization/getHTMLTextDir.d.ts +6 -3
- package/dist/types/localization/getHTMLTextDir.d.ts.map +1 -1
- package/dist/types/localization/getLocaleFromPath.d.ts +7 -2
- package/dist/types/localization/getLocaleFromPath.d.ts.map +1 -1
- package/dist/types/localization/getLocaleLang.d.ts +7 -2
- package/dist/types/localization/getLocaleLang.d.ts.map +1 -1
- package/dist/types/localization/getLocaleName.d.ts +6 -2
- package/dist/types/localization/getLocaleName.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedUrl.d.ts +30 -17
- package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
- package/dist/types/localization/getMultilingualUrls.d.ts +28 -12
- package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -1
- package/dist/types/localization/getPathWithoutLocale.d.ts +11 -3
- package/dist/types/localization/getPathWithoutLocale.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +12 -12
- package/dist/types/localization/localeDetector.d.ts +7 -2
- package/dist/types/localization/localeDetector.d.ts.map +1 -1
- package/dist/types/localization/localeMapper.d.ts +23 -19
- package/dist/types/localization/localeMapper.d.ts.map +1 -1
- package/dist/types/localization/localeResolver.d.ts +7 -2
- package/dist/types/localization/localeResolver.d.ts.map +1 -1
- package/dist/types/transpiler/condition/condition.d.ts +8 -5
- package/dist/types/transpiler/condition/condition.d.ts.map +1 -1
- package/dist/types/transpiler/condition/index.d.ts +2 -2
- package/dist/types/transpiler/enumeration/enumeration.d.ts +9 -6
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
- package/dist/types/transpiler/enumeration/index.d.ts +2 -2
- package/dist/types/transpiler/file/file.d.ts +11 -6
- package/dist/types/transpiler/file/file.d.ts.map +1 -1
- package/dist/types/transpiler/file/fileBrowser.d.ts +7 -2
- package/dist/types/transpiler/file/fileBrowser.d.ts.map +1 -1
- package/dist/types/transpiler/file/index.d.ts +2 -2
- package/dist/types/transpiler/gender/gender.d.ts +9 -6
- package/dist/types/transpiler/gender/gender.d.ts.map +1 -1
- package/dist/types/transpiler/gender/index.d.ts +2 -2
- package/dist/types/transpiler/index.d.ts +11 -9
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts +4 -1
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +1 -1
- package/dist/types/transpiler/insertion/index.d.ts +3 -3
- package/dist/types/transpiler/insertion/insertion.d.ts +8 -5
- package/dist/types/transpiler/insertion/insertion.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +4 -1
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/index.d.ts +3 -3
- package/dist/types/transpiler/markdown/markdown.d.ts +8 -5
- package/dist/types/transpiler/markdown/markdown.d.ts.map +1 -1
- package/dist/types/transpiler/nesting/index.d.ts +2 -2
- package/dist/types/transpiler/nesting/nesting.d.ts +24 -25
- package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -1
- package/dist/types/transpiler/translation/index.d.ts +2 -2
- package/dist/types/transpiler/translation/translation.d.ts +9 -6
- package/dist/types/transpiler/translation/translation.d.ts.map +1 -1
- package/dist/types/utils/checkIsURLAbsolute.d.ts +4 -1
- package/dist/types/utils/checkIsURLAbsolute.d.ts.map +1 -1
- package/dist/types/utils/intl.d.ts +9 -10
- package/dist/types/utils/intl.d.ts.map +1 -1
- package/dist/types/utils/isSameKeyPath.d.ts +6 -2
- package/dist/types/utils/isSameKeyPath.d.ts.map +1 -1
- package/dist/types/utils/isValidReactElement.d.ts +4 -1
- package/dist/types/utils/isValidReactElement.d.ts.map +1 -1
- package/dist/types/utils/localeStorage.d.ts +105 -0
- package/dist/types/utils/localeStorage.d.ts.map +1 -0
- package/dist/types/utils/parseYaml.d.ts +4 -1
- package/dist/types/utils/parseYaml.d.ts.map +1 -1
- package/package.json +36 -121
- package/LICENSE +0 -202
- package/dist/cjs/deepTranformPlugins/getFilterTranslationsOnlyContent.cjs +0 -130
- package/dist/cjs/deepTranformPlugins/getFilterTranslationsOnlyContent.cjs.map +0 -1
- package/dist/cjs/deepTranformPlugins/getFilteredLocalesContent.cjs +0 -62
- package/dist/cjs/deepTranformPlugins/getFilteredLocalesContent.cjs.map +0 -1
- package/dist/cjs/deepTranformPlugins/getLocalisedContent.cjs +0 -51
- package/dist/cjs/deepTranformPlugins/getLocalisedContent.cjs.map +0 -1
- package/dist/cjs/deepTranformPlugins/getMaskContent.cjs +0 -49
- package/dist/cjs/deepTranformPlugins/getMaskContent.cjs.map +0 -1
- package/dist/cjs/deepTranformPlugins/getMissingLocalesContent.cjs +0 -78
- package/dist/cjs/deepTranformPlugins/getMissingLocalesContent.cjs.map +0 -1
- package/dist/cjs/deepTranformPlugins/getReplacedValuesContent.cjs +0 -82
- package/dist/cjs/deepTranformPlugins/getReplacedValuesContent.cjs.map +0 -1
- package/dist/cjs/deepTranformPlugins/index.cjs +0 -33
- package/dist/cjs/deepTranformPlugins/index.cjs.map +0 -1
- package/dist/cjs/dictionaryManipulator/index.cjs.map +0 -1
- package/dist/cjs/formatters/index.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/interpreter/getContent/index.cjs.map +0 -1
- package/dist/cjs/interpreter/getIntlayerAsync.cjs +0 -37
- package/dist/cjs/interpreter/getIntlayerAsync.cjs.map +0 -1
- package/dist/cjs/interpreter/index.cjs.map +0 -1
- package/dist/cjs/localization/index.cjs.map +0 -1
- package/dist/cjs/localization/localeList.cjs +0 -256
- package/dist/cjs/localization/localeList.cjs.map +0 -1
- package/dist/cjs/transpiler/condition/index.cjs.map +0 -1
- package/dist/cjs/transpiler/enumeration/index.cjs.map +0 -1
- package/dist/cjs/transpiler/file/index.cjs.map +0 -1
- package/dist/cjs/transpiler/gender/index.cjs.map +0 -1
- package/dist/cjs/transpiler/index.cjs.map +0 -1
- package/dist/cjs/transpiler/insertion/index.cjs.map +0 -1
- package/dist/cjs/transpiler/markdown/index.cjs.map +0 -1
- package/dist/cjs/transpiler/nesting/index.cjs.map +0 -1
- package/dist/cjs/transpiler/translation/index.cjs.map +0 -1
- package/dist/cjs/types/dictionary.cjs +0 -17
- package/dist/cjs/types/dictionary.cjs.map +0 -1
- package/dist/cjs/types/index.cjs +0 -29
- package/dist/cjs/types/index.cjs.map +0 -1
- package/dist/cjs/types/intlayer.cjs +0 -35
- package/dist/cjs/types/intlayer.cjs.map +0 -1
- package/dist/cjs/types/keyPath.cjs +0 -17
- package/dist/cjs/types/keyPath.cjs.map +0 -1
- package/dist/cjs/types/nodeType.cjs +0 -53
- package/dist/cjs/types/nodeType.cjs.map +0 -1
- package/dist/cjs/types/translation.cjs +0 -17
- package/dist/cjs/types/translation.cjs.map +0 -1
- package/dist/esm/deepTranformPlugins/getFilterTranslationsOnlyContent.mjs +0 -95
- package/dist/esm/deepTranformPlugins/getFilterTranslationsOnlyContent.mjs.map +0 -1
- package/dist/esm/deepTranformPlugins/getFilteredLocalesContent.mjs +0 -40
- package/dist/esm/deepTranformPlugins/getFilteredLocalesContent.mjs.map +0 -1
- package/dist/esm/deepTranformPlugins/getLocalisedContent.mjs +0 -19
- package/dist/esm/deepTranformPlugins/getLocalisedContent.mjs.map +0 -1
- package/dist/esm/deepTranformPlugins/getMaskContent.mjs +0 -24
- package/dist/esm/deepTranformPlugins/getMaskContent.mjs.map +0 -1
- package/dist/esm/deepTranformPlugins/getMissingLocalesContent.mjs +0 -43
- package/dist/esm/deepTranformPlugins/getMissingLocalesContent.mjs.map +0 -1
- package/dist/esm/deepTranformPlugins/getReplacedValuesContent.mjs +0 -60
- package/dist/esm/deepTranformPlugins/getReplacedValuesContent.mjs.map +0 -1
- package/dist/esm/deepTranformPlugins/index.mjs +0 -7
- package/dist/esm/deepTranformPlugins/index.mjs.map +0 -1
- package/dist/esm/dictionaryManipulator/index.mjs.map +0 -1
- package/dist/esm/formatters/index.mjs.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/interpreter/getContent/index.mjs.map +0 -1
- package/dist/esm/interpreter/getIntlayerAsync.mjs +0 -13
- package/dist/esm/interpreter/getIntlayerAsync.mjs.map +0 -1
- package/dist/esm/interpreter/index.mjs.map +0 -1
- package/dist/esm/localization/index.mjs.map +0 -1
- package/dist/esm/localization/localeList.mjs +0 -232
- package/dist/esm/localization/localeList.mjs.map +0 -1
- package/dist/esm/transpiler/condition/index.mjs.map +0 -1
- package/dist/esm/transpiler/enumeration/index.mjs.map +0 -1
- package/dist/esm/transpiler/file/index.mjs.map +0 -1
- package/dist/esm/transpiler/gender/index.mjs.map +0 -1
- package/dist/esm/transpiler/index.mjs.map +0 -1
- package/dist/esm/transpiler/insertion/index.mjs.map +0 -1
- package/dist/esm/transpiler/markdown/index.mjs.map +0 -1
- package/dist/esm/transpiler/nesting/index.mjs.map +0 -1
- package/dist/esm/transpiler/translation/index.mjs.map +0 -1
- package/dist/esm/types/dictionary.mjs +0 -1
- package/dist/esm/types/dictionary.mjs.map +0 -1
- package/dist/esm/types/index.mjs +0 -5
- package/dist/esm/types/index.mjs.map +0 -1
- package/dist/esm/types/intlayer.mjs +0 -13
- package/dist/esm/types/intlayer.mjs.map +0 -1
- package/dist/esm/types/keyPath.mjs +0 -1
- package/dist/esm/types/keyPath.mjs.map +0 -1
- package/dist/esm/types/nodeType.mjs +0 -28
- package/dist/esm/types/nodeType.mjs.map +0 -1
- package/dist/esm/types/translation.mjs +0 -1
- package/dist/esm/types/translation.mjs.map +0 -1
- package/dist/types/deepTranformPlugins/getFilterTranslationsOnlyContent.d.ts +0 -13
- package/dist/types/deepTranformPlugins/getFilterTranslationsOnlyContent.d.ts.map +0 -1
- package/dist/types/deepTranformPlugins/getFilteredLocalesContent.d.ts +0 -5
- package/dist/types/deepTranformPlugins/getFilteredLocalesContent.d.ts.map +0 -1
- package/dist/types/deepTranformPlugins/getLocalisedContent.d.ts +0 -13
- package/dist/types/deepTranformPlugins/getLocalisedContent.d.ts.map +0 -1
- package/dist/types/deepTranformPlugins/getMaskContent.d.ts +0 -6
- package/dist/types/deepTranformPlugins/getMaskContent.d.ts.map +0 -1
- package/dist/types/deepTranformPlugins/getMissingLocalesContent.d.ts +0 -13
- package/dist/types/deepTranformPlugins/getMissingLocalesContent.d.ts.map +0 -1
- package/dist/types/deepTranformPlugins/getReplacedValuesContent.d.ts +0 -4
- package/dist/types/deepTranformPlugins/getReplacedValuesContent.d.ts.map +0 -1
- package/dist/types/deepTranformPlugins/index.d.ts +0 -7
- package/dist/types/deepTranformPlugins/index.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/index.d.ts.map +0 -1
- package/dist/types/formatters/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/interpreter/getContent/index.d.ts.map +0 -1
- package/dist/types/interpreter/getIntlayerAsync.d.ts +0 -13
- package/dist/types/interpreter/getIntlayerAsync.d.ts.map +0 -1
- package/dist/types/interpreter/index.d.ts.map +0 -1
- package/dist/types/localization/index.d.ts.map +0 -1
- package/dist/types/localization/localeList.d.ts +0 -3
- package/dist/types/localization/localeList.d.ts.map +0 -1
- package/dist/types/transpiler/condition/index.d.ts.map +0 -1
- package/dist/types/transpiler/enumeration/index.d.ts.map +0 -1
- package/dist/types/transpiler/file/index.d.ts.map +0 -1
- package/dist/types/transpiler/gender/index.d.ts.map +0 -1
- package/dist/types/transpiler/index.d.ts.map +0 -1
- package/dist/types/transpiler/insertion/index.d.ts.map +0 -1
- package/dist/types/transpiler/markdown/index.d.ts.map +0 -1
- package/dist/types/transpiler/nesting/index.d.ts.map +0 -1
- package/dist/types/transpiler/translation/index.d.ts.map +0 -1
- package/dist/types/types/dictionary.d.ts +0 -307
- package/dist/types/types/dictionary.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -5
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/intlayer.d.ts +0 -5
- package/dist/types/types/intlayer.d.ts.map +0 -1
- package/dist/types/types/keyPath.d.ts +0 -47
- package/dist/types/types/keyPath.d.ts.map +0 -1
- package/dist/types/types/nodeType.d.ts +0 -30
- package/dist/types/types/nodeType.d.ts.map +0 -1
- package/dist/types/types/translation.d.ts +0 -25
- package/dist/types/types/translation.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { EnterFormat, EnumerationContent, EnumerationContentState, enu as enumeration } from "./enumeration.js";
|
|
2
|
+
export { EnterFormat, EnumerationContent, EnumerationContentState, enumeration as enu };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { NodeType,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { NodeType, TypedNodeModel } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/transpiler/file/file.d.ts
|
|
4
|
+
type FileContentConstructor<T extends Record<string, any> = {}> = TypedNodeModel<NodeType.File, string, T>;
|
|
5
|
+
type FileContent = FileContentConstructor<{
|
|
6
|
+
content: string;
|
|
7
|
+
fixedPath?: string;
|
|
6
8
|
}>;
|
|
9
|
+
declare const fileContent: (path: string, callerDir: string, baseDir: string) => FileContent;
|
|
7
10
|
/**
|
|
8
11
|
* Function intended to be used to build intlayer dictionaries.
|
|
9
12
|
*
|
|
@@ -19,5 +22,7 @@ export type FileContent = FileContentConstructor<{
|
|
|
19
22
|
* file('path/to/file.md') // relative path
|
|
20
23
|
* ```
|
|
21
24
|
*/
|
|
22
|
-
|
|
25
|
+
declare const file: (path: string) => FileContent;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { FileContent, FileContentConstructor, file, fileContent };
|
|
23
28
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","
|
|
1
|
+
{"version":3,"file":"file.d.ts","names":[],"sources":["../../../../src/transpiler/file/file.ts"],"sourcesContent":[],"mappings":";;;KAKY,iCAAiC,4BAC3C,eAAe,QAAA,CAAS,cAAc;KAE5B,WAAA,GAAc;EAHd,OAAA,EAAA,MAAA;EAAiC,SAAA,CAAA,EAAA,MAAA;CAC5B,CAAA;AAAuB,cAO3B,WAP2B,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,GAWrC,WAXqC;;;AAExC;AAKA;AAkEA;;;;;;;;;;;cAAa,wBAAuB"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FileContent } from "./file.js";
|
|
2
|
+
|
|
3
|
+
//#region src/transpiler/file/fileBrowser.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Function intended to be used to build intlayer dictionaries.
|
|
4
7
|
*
|
|
@@ -14,5 +17,7 @@ import type { FileContent } from './file';
|
|
|
14
17
|
* file('path/to/file.md') // relative path
|
|
15
18
|
* ```
|
|
16
19
|
*/
|
|
17
|
-
|
|
20
|
+
declare const file: (path: string) => FileContent;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { file };
|
|
18
23
|
//# sourceMappingURL=fileBrowser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileBrowser.d.ts","
|
|
1
|
+
{"version":3,"file":"fileBrowser.d.ts","names":[],"sources":["../../../../src/transpiler/file/fileBrowser.ts"],"sourcesContent":[],"mappings":";;;;;;AAkBA;;;;;;;;;;;;;cAAa,wBAAuB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { FileContent, FileContentConstructor, file, fileContent } from "./file.js";
|
|
2
|
+
export { FileContent, FileContentConstructor, file, fileContent };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { NodeType,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeType, TypedNodeModel } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/transpiler/gender/gender.d.ts
|
|
4
|
+
type Gender = 'male' | 'female' | 'fallback';
|
|
5
|
+
type GenderContentStates<Content$1> = Record<`${Gender}`, Content$1> & {
|
|
6
|
+
fallback?: Content$1;
|
|
5
7
|
};
|
|
6
|
-
|
|
8
|
+
type GenderContent<Content$1 = unknown> = TypedNodeModel<NodeType.Gender, GenderContentStates<Content$1>>;
|
|
7
9
|
/**
|
|
8
10
|
* Function intended to be used to build intlayer dictionaries.
|
|
9
11
|
*
|
|
@@ -22,5 +24,6 @@ export type GenderContent<Content = unknown> = TypedNodeModel<NodeType.Gender, G
|
|
|
22
24
|
*
|
|
23
25
|
*/
|
|
24
26
|
declare const gender: <Content>(content?: GenderContentStates<Content>) => TypedNodeModel<NodeType.Gender, GenderContentStates<Content>, {}>;
|
|
25
|
-
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Gender, GenderContent, GenderContentStates, gender };
|
|
26
29
|
//# sourceMappingURL=gender.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gender.d.ts","
|
|
1
|
+
{"version":3,"file":"gender.d.ts","names":[],"sources":["../../../../src/transpiler/gender/gender.ts"],"sourcesContent":[],"mappings":";;;KAEY,MAAA;KAEA,iCAA+B,UAAU,UAAU;EAFnD,QAAA,CAAM,EAGL,SAHK;AAElB,CAAA;AAAqD,KAIzC,aAJyC,CAAA,YAAA,OAAA,CAAA,GAIN,cAJM,CAKnD,QAAA,CAAS,MAL0C,EAMnD,mBANmD,CAM/B,SAN+B,CAAA,CAAA;;;;;AAIrD;;;;;;AAGE;;;;;;;cAmBI,MAAyD,EAAA,CAAA,OAAA,CAAA,CAAA,OAAA,CAAA,EAA5B,mBAA4B,CAAR,OAAQ,CAAA,EAAA,GAAA,cAAA,CAAA,QAAA,CAAA,MAAA,EAAA,mBAAA,CAAA,OAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Gender, GenderContent, GenderContentStates, gender } from "./gender.js";
|
|
2
|
+
export { Gender, GenderContent, GenderContentStates, gender };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { ConditionContent, ConditionContentStates, cond as condition } from "./condition/condition.js";
|
|
2
|
+
import { EnterFormat, EnumerationContent, EnumerationContentState, enu as enumeration } from "./enumeration/enumeration.js";
|
|
3
|
+
import { FileContent, FileContentConstructor, file, fileContent } from "./file/file.js";
|
|
4
|
+
import { Gender, GenderContent, GenderContentStates, gender } from "./gender/gender.js";
|
|
5
|
+
import { getInsertionValues } from "./insertion/getInsertionValues.js";
|
|
6
|
+
import { InsertionContent, InsertionContentConstructor, insert as insertion } from "./insertion/insertion.js";
|
|
7
|
+
import { getMarkdownMetadata } from "./markdown/getMarkdownMetadata.js";
|
|
8
|
+
import { MarkdownContent, MarkdownContentConstructor, md as markdown } from "./markdown/markdown.js";
|
|
9
|
+
import { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nest as nesting } from "./nesting/nesting.js";
|
|
10
|
+
import { TranslationContent, t as translation } from "./translation/translation.js";
|
|
11
|
+
export { ConditionContent, ConditionContentStates, DotPath, EnterFormat, EnumerationContent, EnumerationContentState, FileContent, FileContentConstructor, Gender, GenderContent, GenderContentStates, InsertionContent, InsertionContentConstructor, MarkdownContent, MarkdownContentConstructor, NestedContent, NestedContentState, TranslationContent, ValidDotPathsFor, condition as cond, enumeration as enu, file, fileContent, gender, getInsertionValues, getMarkdownMetadata, insertion as insert, markdown as md, nesting as nest, translation as t };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/transpiler/insertion/getInsertionValues.d.ts
|
|
2
|
+
declare const getInsertionValues: (content: string) => string[];
|
|
3
|
+
//#endregion
|
|
4
|
+
export { getInsertionValues };
|
|
2
5
|
//# sourceMappingURL=getInsertionValues.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInsertionValues.d.ts","
|
|
1
|
+
{"version":3,"file":"getInsertionValues.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/getInsertionValues.ts"],"sourcesContent":[],"mappings":";cAAa"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { getInsertionValues } from "./getInsertionValues.js";
|
|
2
|
+
import { InsertionContent, InsertionContentConstructor, insert as insertion } from "./insertion.js";
|
|
3
|
+
export { InsertionContent, InsertionContentConstructor, getInsertionValues, insertion as insert };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { NodeType,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeType, TypedNodeModel } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/transpiler/insertion/insertion.d.ts
|
|
4
|
+
type InsertionContentConstructor<Content$1 = unknown, T extends Record<string, any> = {}> = TypedNodeModel<NodeType.Insertion, Content$1, T>;
|
|
5
|
+
type InsertionContent<Content$1 = unknown> = InsertionContentConstructor<Content$1, {
|
|
6
|
+
fields: string[];
|
|
5
7
|
}>;
|
|
6
8
|
/**
|
|
7
9
|
* Function intended to be used to build intlayer dictionaries.
|
|
@@ -16,5 +18,6 @@ export type InsertionContent<Content = unknown> = InsertionContentConstructor<Co
|
|
|
16
18
|
*
|
|
17
19
|
*/
|
|
18
20
|
declare const insertion: <Content = unknown>(content: Content) => InsertionContent<Content>;
|
|
19
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
export { InsertionContent, InsertionContentConstructor, insertion as insert };
|
|
20
23
|
//# sourceMappingURL=insertion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertion.d.ts","
|
|
1
|
+
{"version":3,"file":"insertion.d.ts","names":[],"sources":["../../../../src/transpiler/insertion/insertion.ts"],"sourcesContent":[],"mappings":";;;KAGY,2DAEA,4BACR,eAAe,QAAA,CAAS,WAAW,WAAS;KAEpC,wCAAsC,4BAChD;EANU,MAAA,EAAA,MAAA,EAAA;CAEA,CAAA;;;;;;AAGZ;AAKE;;;;;;cAcI,wCACK,YACR,iBAAiB"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/transpiler/markdown/getMarkdownMetadata.d.ts
|
|
2
|
+
declare const getMarkdownMetadata: <T extends Record<string, any>>(markdown: string) => T;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { getMarkdownMetadata };
|
|
2
5
|
//# sourceMappingURL=getMarkdownMetadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMarkdownMetadata.d.ts","
|
|
1
|
+
{"version":3,"file":"getMarkdownMetadata.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/getMarkdownMetadata.ts"],"sourcesContent":[],"mappings":";cAEa,gCAAiC,0CAE3C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { getMarkdownMetadata } from "./getMarkdownMetadata.js";
|
|
2
|
+
import { MarkdownContent, MarkdownContentConstructor, md as markdown } from "./markdown.js";
|
|
3
|
+
export { MarkdownContent, MarkdownContentConstructor, getMarkdownMetadata, markdown as md };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { NodeType,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeType, TypedNodeModel } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/transpiler/markdown/markdown.d.ts
|
|
4
|
+
type MarkdownContentConstructor<T extends Record<string, any> = {}, Content$1 = unknown> = TypedNodeModel<NodeType.Markdown, Content$1, T>;
|
|
5
|
+
type MarkdownContent<_Content = unknown> = MarkdownContentConstructor<{
|
|
6
|
+
metadata?: Record<string, any>;
|
|
5
7
|
}>;
|
|
6
8
|
/**
|
|
7
9
|
* Function intended to be used to build intlayer dictionaries.
|
|
@@ -16,5 +18,6 @@ export type MarkdownContent<Content = unknown> = MarkdownContentConstructor<{
|
|
|
16
18
|
*
|
|
17
19
|
*/
|
|
18
20
|
declare const markdown: <Content = unknown>(content: Content) => MarkdownContent;
|
|
19
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
export { MarkdownContent, MarkdownContentConstructor, markdown as md };
|
|
20
23
|
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","names":[],"sources":["../../../../src/transpiler/markdown/markdown.ts"],"sourcesContent":[],"mappings":";;;KAIY,qCACA,iDAER,eAAe,QAAA,CAAS,UAAU,WAAS;KAEnC,sCAAsC;EALtC,QAAA,CAAA,EAMC,MAND,CAAA,MAAA,EAAA,GAA0B,CAAA;CAC1B,CAAA;;;;;;AAIZ;AAEG;;;;;;cA2BG,uCAAwC,YAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nest as nesting } from "./nesting.js";
|
|
2
|
+
export { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nesting as nest };
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { DeepTransformContent } from "../../interpreter/getContent/plugins.js";
|
|
2
|
+
import { DictionaryKeys, DictionaryRegistryContent, NodeType, TypedNodeModel } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/transpiler/nesting/nesting.d.ts
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Recursively builds dot-notation strings for all valid paths in T.
|
|
7
8
|
* Example:
|
|
8
9
|
* type X = { a: { b: { c: string }}, d: number };
|
|
9
10
|
* DotPath<X> = "a" | "a.b" | "a.b.c" | "d"
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type DeepReplace<T, From, To> = T extends From ? To : T extends object ? {
|
|
16
|
-
[K in keyof T]: DeepReplace<T[K], From, To>;
|
|
17
|
-
} : T;
|
|
12
|
+
type DotPath<T> = T extends object ? { [K in keyof T & (string | number)]: T[K] extends object ?
|
|
13
|
+
// Either just K, or K + '.' + deeper path
|
|
14
|
+
`${K}` | `${K}.${DotPath<T[K]>}` : `${K}` }[keyof T & (string | number)] : never;
|
|
15
|
+
type DeepReplace<T, From, To> = T extends From ? To : T extends object ? { [K in keyof T]: DeepReplace<T[K], From, To> } : T;
|
|
18
16
|
/** Build all valid dot-notation strings for a dictionary entry. */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
type ValidDotPathsFor<K$1 extends DictionaryKeys> = DotPath<DeepReplace<DeepTransformContent<DictionaryRegistryContent<K$1>>, {
|
|
18
|
+
type: any;
|
|
19
|
+
props: any;
|
|
20
|
+
key: any;
|
|
23
21
|
}, string>>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
type NestedContentState<K$1 extends DictionaryKeys> = {
|
|
23
|
+
dictionaryKey: K$1;
|
|
24
|
+
/**
|
|
25
|
+
* Path must match existing keys in DictionaryRegistryContent<K>.
|
|
26
|
+
* Can be either:
|
|
27
|
+
* - "dot.dot.dot" format
|
|
28
|
+
*/
|
|
29
|
+
path?: ValidDotPathsFor<K$1>;
|
|
32
30
|
};
|
|
33
|
-
|
|
31
|
+
type NestedContent<K$1 extends DictionaryKeys = never> = TypedNodeModel<NodeType.Nested, NestedContentState<K$1>>;
|
|
34
32
|
/**
|
|
35
33
|
* Function intended to be used to build intlayer dictionaries.
|
|
36
34
|
*
|
|
@@ -47,5 +45,6 @@ export type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<Nod
|
|
|
47
45
|
*
|
|
48
46
|
*/
|
|
49
47
|
declare const nesting: <K extends DictionaryKeys>(dictionaryKey: K, path?: ValidDotPathsFor<K>) => NestedContent<K>;
|
|
50
|
-
|
|
48
|
+
//#endregion
|
|
49
|
+
export { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nesting as nest };
|
|
51
50
|
//# sourceMappingURL=nesting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nesting.d.ts","
|
|
1
|
+
{"version":3,"file":"nesting.d.ts","names":[],"sources":["../../../../src/transpiler/nesting/nesting.ts"],"sourcesContent":[],"mappings":";;;;;;AAeA;;;;;AAIa,KAJD,OAIC,CAAA,CAAA,CAAA,GAJY,CAIZ,SAAA,MAAA,GAAA,QAAS,MAFJ,CAEI,GAAA,CAAA,MAAA,GAAA,MAAA,CAAA,GAFoB,CAEpB,CAFsB,CAEtB,CAAA,SAAA,MAAA;AAAA;AAAa,GAAtB,CAAsB,EAAA,GAAA,GAAb,CAAa,IAAR,OAAQ,CAAA,CAAA,CAAE,CAAF,CAAA,CAAA,EAAA,GAAA,GACtB,CADsB,EAAA,EAAE,CAAA,MAEzB,CAFyB,GAAA,CAAA,MAAA,GAAA,MAAA,CAAA,CAAA,GAAA,KAAA;KAKhC,WALsB,CAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,GAKK,CALL,SAKe,IALf,GAMvB,EANuB,GAOvB,CAPuB,SAAA,MAAA,GAAA,QACd,MAOO,CAPP,GAOW,WAPX,CAOuB,CAPvB,CAOyB,CAPzB,CAAA,EAO6B,IAP7B,EAOmC,EAPnC,CAAA,EACD,GAON,CAPM;;AAGP,KAOO,gBAPI,CAAA,YAOuB,cAPvB,CAAA,GAOyC,OAPzC,CAQd,WARc,CASZ,oBATY,CASS,yBATT,CASmC,GATnC,CAAA,CAAA,EAAA;EAAgB,IAAA,EAAA,GAAA;EAAU,KAAA,EAAA,GAAA;EACtC,GAAA,EAAA,GAAA;CACA,EAAA,MAAA,CAAA,CAAA;AACgB,KAiBR,kBAjBQ,CAAA,YAiBqB,cAjBrB,CAAA,GAAA;EAAgB,aAAA,EAkBnB,GAlBmB;EAAE;;;;;EAC/B,IAAA,CAAA,EAwBE,gBAxBF,CAwBmB,GAxBnB,CAAA;AAGP,CAAA;AAAuC,KAwB3B,aAxB2B,CAAA,YAwBH,cAxBG,GAAA,KAAA,CAAA,GAwBuB,cAxBvB,CAyBrC,QAAA,CAAS,MAzB4B,EA0BrC,kBA1BqC,CA0BlB,GA1BkB,CAAA,CAAA;;;;;;;AAavC;;;;;;AAWA;;;cAoBM,OAlBe,EAAA,CAAA,UAkBM,cAlBN,CAAA,CAAA,aAAA,EAmBJ,CAnBI,EAAA,IAAA,CAAA,EAoBZ,gBApBY,CAoBK,CApBL,CAAA,EAAA,GAqBlB,aArBkB,CAqBJ,CArBI,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { TranslationContent, t as translation } from "./translation.js";
|
|
2
|
+
export { TranslationContent, translation as t };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { NodeType,
|
|
2
|
-
|
|
1
|
+
import { NodeType, StrictModeLocaleMap, TypedNodeModel } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/transpiler/translation/translation.d.ts
|
|
4
|
+
type TranslationContent<Content$1 = unknown, RecordContent extends StrictModeLocaleMap<Content$1> = StrictModeLocaleMap<Content$1>> = TypedNodeModel<NodeType.Translation, RecordContent>;
|
|
3
5
|
/**
|
|
4
6
|
*
|
|
5
7
|
* Function intended to be used to build intlayer dictionaries.
|
|
@@ -20,10 +22,11 @@ export type TranslationContent<Content = unknown, RecordContent extends Language
|
|
|
20
22
|
* - this function require each locale to be defined if defined in the project configuration.
|
|
21
23
|
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
22
24
|
*/
|
|
23
|
-
declare const translation: <Content = unknown, ContentRecord extends
|
|
24
|
-
|
|
25
|
+
declare const translation: <Content = unknown, ContentRecord extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>>(content: ContentRecord) => TypedNodeModel<NodeType.Translation, ContentRecord, {
|
|
26
|
+
nodeType: NodeType.Translation | "translation";
|
|
25
27
|
} & {
|
|
26
|
-
|
|
28
|
+
translation: ContentRecord;
|
|
27
29
|
}>;
|
|
28
|
-
|
|
30
|
+
//#endregion
|
|
31
|
+
export { TranslationContent, translation as t };
|
|
29
32
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","
|
|
1
|
+
{"version":3,"file":"translation.d.ts","names":[],"sources":["../../../../src/transpiler/translation/translation.ts"],"sourcesContent":[],"mappings":";;;KAOY,8DAGR,oBAAoB,aAAW,oBAAoB,cACnD,eAAe,QAAA,CAAS,aAAa;;AAJzC;;;;;;;;;AAIwD;;;;;;;;;;cAsBlD,WAKkB,EAAA,CAAA,UAAA,OAAA,EAAA,sBAFpB,mBAEoB,CAFA,OAEA,CAAA,GAFW,mBAEX,CAF+B,OAE/B,CAAA,CAAA,CAAA,OAAA,EAAb,aAAa,EAAA,GAAA,cAAA,CAAA,QAAA,CAAA,WAAA,EAAA,aAAA,EAAA;EAAA,QAAA,sBAAA,GAAA,aAAA"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/utils/checkIsURLAbsolute.d.ts
|
|
2
|
+
declare const checkIsURLAbsolute: (url: string) => boolean;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { checkIsURLAbsolute };
|
|
2
5
|
//# sourceMappingURL=checkIsURLAbsolute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkIsURLAbsolute.d.ts","
|
|
1
|
+
{"version":3,"file":"checkIsURLAbsolute.d.ts","names":[],"sources":["../../../src/utils/checkIsURLAbsolute.ts"],"sourcesContent":[],"mappings":";cAAa"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
type ReplaceLocaleWithLocalesValues<T> = T extends new (locales: any, options?: infer Options) => infer Instance ? new (locales?: LocalesValues, options?: Options) => Instance : T extends new (locales: any) => infer Instance ? new (locales?: LocalesValues) => Instance : T;
|
|
6
|
-
type WrappedIntl = {
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export declare const createCachedIntl: () => WrappedIntl;
|
|
1
|
+
import { LocalesValues } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/intl.d.ts
|
|
4
|
+
type IntlConstructors = { [K in keyof typeof Intl as (typeof Intl)[K] extends (new (...args: any) => any) ? K : never]: (typeof Intl)[K] };
|
|
5
|
+
type ReplaceLocaleWithLocalesValues<T> = T extends (new (locales: any, options?: infer Options) => infer Instance) ? new (locales?: LocalesValues, options?: Options) => Instance : T extends (new (locales: any) => infer Instance) ? new (locales?: LocalesValues) => Instance : T;
|
|
6
|
+
type WrappedIntl = { [K in keyof typeof Intl]: K extends keyof IntlConstructors ? ReplaceLocaleWithLocalesValues<(typeof Intl)[K]> : (typeof Intl)[K] };
|
|
7
|
+
declare const createCachedIntl: () => WrappedIntl;
|
|
10
8
|
declare const CachedIntl: WrappedIntl;
|
|
11
|
-
|
|
9
|
+
//#endregion
|
|
10
|
+
export { CachedIntl, CachedIntl as Intl, createCachedIntl };
|
|
12
11
|
//# sourceMappingURL=intl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intl.d.ts","
|
|
1
|
+
{"version":3,"file":"intl.d.ts","names":[],"sources":["../../../src/utils/intl.ts"],"sourcesContent":[],"mappings":";;;KA6BK,gBAAA,wBACgB,gBAAgB,MAAM,yCAGrC,oBACgB,MAAM,IAVkC;KAczD,8BARgB,CAAA,CAAA,CAAA,GAQoB,CARpB,UAAA,KAAA,OAAA,EAAA,GAAA,EAAA,OAAA,CAAA,EAAA,KAAA,QAAA,EAAA,GAAA,KAAA,SAAA,IAAA,KAAA,OAAA,CAAA,EAaL,aAbK,EAAA,OAAA,CAAA,EAcL,OAdK,EAAA,GAeZ,QAfY,GAgBjB,CAhBiB,UAAA,KAAA,OAAA,EAAA,GAAA,EAAA,GAAA,KAAA,SAAA,IAAA,KAAA,OAAA,CAAA,EAoBH,aApBG,EAAA,GAqBV,QArBU,GAsBf,CAtBe;KAyBhB,WAAA,GAzBgC,QAAM,MAAA,OA0BtB,IA1BsB,GA0Bf,CA1Be,SAAA,MA0BC,gBA1BD,GA2BrC,8BA3BqC,CAAA,CAAA,OA2BE,IA3BF,CAAA,CA2BQ,CA3BR,CAAA,CAAA,GAAA,CAAA,OA4B7B,IA5B6B,CAAA,CA4BvB,CA5BuB,CAAA,EAGrC;AACgB,cA0FT,gBA1FS,EAAA,GAAA,GA0Fc,WA1Fd;AAAM,cAuGf,UAvGe,EAuGL,WAvGK"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { KeyPath } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/isSameKeyPath.d.ts
|
|
4
|
+
declare const isSameKeyPath: (keyPath1: KeyPath[], keyPath2: KeyPath[]) => boolean;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { isSameKeyPath };
|
|
3
7
|
//# sourceMappingURL=isSameKeyPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSameKeyPath.d.ts","
|
|
1
|
+
{"version":3,"file":"isSameKeyPath.d.ts","names":[],"sources":["../../../src/utils/isSameKeyPath.ts"],"sourcesContent":[],"mappings":";;;cAIa,0BAA2B,qBAAqB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/utils/isValidReactElement.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Verifies the object is a ReactElement.
|
|
3
4
|
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
@@ -5,5 +6,7 @@
|
|
|
5
6
|
* @return True if `object` is a ReactElement.
|
|
6
7
|
* @final
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
declare const isValidElement: (object: any) => boolean;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { isValidElement };
|
|
9
12
|
//# sourceMappingURL=isValidReactElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isValidReactElement.d.ts","
|
|
1
|
+
{"version":3,"file":"isValidReactElement.d.ts","names":[],"sources":["../../../src/utils/isValidReactElement.ts"],"sourcesContent":[],"mappings":";;AAQA;;;;;;cAAa"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Locale, LocalesValues } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/localeStorage.d.ts
|
|
4
|
+
type CookieBuildAttributes = {
|
|
5
|
+
/**
|
|
6
|
+
* Cookie domain to store the locale information
|
|
7
|
+
*
|
|
8
|
+
* Default: undefined
|
|
9
|
+
*
|
|
10
|
+
* Define the domain where the cookie is available. Defaults to
|
|
11
|
+
* the domain of the page where the cookie was created.
|
|
12
|
+
*/
|
|
13
|
+
domain?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Cookie path to store the locale information
|
|
16
|
+
*
|
|
17
|
+
* Default: undefined
|
|
18
|
+
*
|
|
19
|
+
* Define the path where the cookie is available. Defaults to '/'
|
|
20
|
+
*/
|
|
21
|
+
path?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Cookie secure to store the locale information
|
|
24
|
+
*
|
|
25
|
+
* Default: undefined
|
|
26
|
+
*
|
|
27
|
+
* A Boolean indicating if the cookie transmission requires a
|
|
28
|
+
* secure protocol (https). Defaults to false.
|
|
29
|
+
*/
|
|
30
|
+
secure?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Cookie httpOnly to store the locale information
|
|
33
|
+
*
|
|
34
|
+
* Default: undefined
|
|
35
|
+
*
|
|
36
|
+
* The cookie httpOnly where the locale information is stored.
|
|
37
|
+
*/
|
|
38
|
+
httpOnly?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Cookie sameSite to store the locale information
|
|
41
|
+
*
|
|
42
|
+
* Default: undefined
|
|
43
|
+
*
|
|
44
|
+
* Asserts that a cookie must not be sent with cross-origin requests,
|
|
45
|
+
* providing some protection against cross-site request forgery
|
|
46
|
+
* attacks (CSRF)
|
|
47
|
+
*/
|
|
48
|
+
sameSite?: 'strict' | 'lax' | 'none';
|
|
49
|
+
/**
|
|
50
|
+
* Cookie expires to store the locale information
|
|
51
|
+
*
|
|
52
|
+
* Default: undefined
|
|
53
|
+
*
|
|
54
|
+
* Define when the cookie will be removed. Value can be a Number
|
|
55
|
+
* which will be interpreted as days from time of creation or a
|
|
56
|
+
* Date instance. If omitted, the cookie becomes a session cookie.
|
|
57
|
+
*/
|
|
58
|
+
expires?: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
type LocaleStorageOptions = {
|
|
61
|
+
overwrite?: boolean;
|
|
62
|
+
isCookieEnabled?: boolean;
|
|
63
|
+
setCookieStore?: (name: string, value: string, cookie: CookieBuildAttributes) => void;
|
|
64
|
+
setCookieString?: (name: string, cookie: string) => void;
|
|
65
|
+
getCookie?: (name: string) => string | undefined | null;
|
|
66
|
+
setSessionStorage?: (name: string, value: string) => void;
|
|
67
|
+
getSessionStorage?: (name: string) => string | undefined | null;
|
|
68
|
+
setLocaleStorage?: (name: string, value: string) => void;
|
|
69
|
+
getLocaleStorage?: (name: string) => string | undefined | null;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves the locale from various storage mechanisms (cookies, localStorage, sessionStorage).
|
|
73
|
+
* The function checks storage locations in order of priority as defined in the configuration.
|
|
74
|
+
*
|
|
75
|
+
* @returns The locale if found in any storage, or undefined if not found
|
|
76
|
+
*/
|
|
77
|
+
declare const getLocaleFromStorage: (options: Pick<LocaleStorageOptions, "getCookie" | "getSessionStorage" | "getLocaleStorage" | "isCookieEnabled">) => Locale | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Stores the locale in various storage mechanisms (cookies, localStorage, sessionStorage).
|
|
80
|
+
* The function writes to all configured storage locations according to their attributes.
|
|
81
|
+
* Respects overwrite flags for localStorage and sessionStorage.
|
|
82
|
+
*
|
|
83
|
+
* @param locale - The locale to store
|
|
84
|
+
*/
|
|
85
|
+
declare const setLocaleInStorage: (locale: LocalesValues, options?: LocaleStorageOptions) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Utility object to get and set the locale in the storage by considering the configuration
|
|
88
|
+
*
|
|
89
|
+
* @property getLocale - Retrieves the locale from various storage mechanisms (cookies, localStorage, sessionStorage).
|
|
90
|
+
* Retrieves the locale from various storage mechanisms (cookies, localStorage, sessionStorage).
|
|
91
|
+
* The function checks storage locations in order of priority as defined in the configuration.
|
|
92
|
+
*
|
|
93
|
+
* @property setLocale - Stores the locale in various storage mechanisms (cookies, localStorage, sessionStorage).
|
|
94
|
+
* The function writes to all configured storage locations according to their attributes.
|
|
95
|
+
* Respects overwrite flags for localStorage and sessionStorage.
|
|
96
|
+
*
|
|
97
|
+
* @returns The locale if found in any storage, or undefined if not found
|
|
98
|
+
*/
|
|
99
|
+
declare const LocaleStorage: (options: LocaleStorageOptions) => {
|
|
100
|
+
getLocale: () => Locale;
|
|
101
|
+
setLocale: (locale: LocalesValues) => void;
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
export { LocaleStorage, LocaleStorageOptions, getLocaleFromStorage, setLocaleInStorage };
|
|
105
|
+
//# sourceMappingURL=localeStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localeStorage.d.ts","names":[],"sources":["../../../src/utils/localeStorage.ts"],"sourcesContent":[],"mappings":";;;KAIK,qBAAA;;AAH2E;AA+EhF;AAsBA;;;;;EAkGa,MAAA,CAAA,EAAA,MAAA;EAuFA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA/MD,oBAAA;;;yDAMA;;;;;;;;;;;;;;cAgBC,gCACF,KACP,sGAGD;;;;;;;;cA6FU,6BACH,yBACE;;;;;;;;;;;;;;cAqFC,yBAA0B;;sBAEjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseYaml.d.ts","
|
|
1
|
+
{"version":3,"file":"parseYaml.d.ts","names":[],"sources":["../../../src/utils/parseYaml.ts"],"sourcesContent":[],"mappings":";cAAa,uCAAsC"}
|