@intlayer/core 7.0.8 → 7.0.9-canary.2
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 +6 -5
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs +20 -0
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs +24 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs +78 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs +36 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/index.cjs +21 -0
- package/dist/cjs/config/dist/esm/defaultValues/index.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs +22 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs +16 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs +26 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs +47 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/logger.cjs +65 -0
- package/dist/cjs/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs +261 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs +26 -0
- package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +47 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +261 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/dictionaries-entry/dist/esm/index.cjs +27 -0
- package/dist/cjs/dictionaries-entry/dist/esm/index.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs +31 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/esm/_virtual/rolldown_runtime.mjs +8 -0
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +20 -0
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs +19 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs +64 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs +27 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/index.mjs +21 -0
- package/dist/esm/config/dist/esm/defaultValues/index.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +18 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs +14 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs +23 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/config/dist/esm/logger.mjs +59 -0
- package/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/dictionaries-entry/dist/esm/index.mjs +25 -0
- package/dist/esm/dictionaries-entry/dist/esm/index.mjs.map +1 -0
- package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/types/dist/esm/nodeType.mjs +29 -0
- package/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/index.d.mts +1323 -0
- package/dist/index.mjs +3348 -0
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +7 -7
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +7 -7
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +7 -7
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
- package/package.json +20 -17
- package/dist/cjs/dictionaryManipulator/getUnmergedDictionaryByKeyPath.cjs +0 -20
- package/dist/cjs/dictionaryManipulator/getUnmergedDictionaryByKeyPath.cjs.map +0 -1
- package/dist/esm/dictionaryManipulator/getUnmergedDictionaryByKeyPath.mjs +0 -17
- package/dist/esm/dictionaryManipulator/getUnmergedDictionaryByKeyPath.mjs.map +0 -1
- package/dist/types/deepTransformPlugins/index.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getUnmergedDictionaryByKeyPath.d.ts +0 -9
- package/dist/types/dictionaryManipulator/getUnmergedDictionaryByKeyPath.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,307 +0,0 @@
|
|
|
1
|
-
import type { ConditionContent } from '../transpiler/condition';
|
|
2
|
-
import type { EnumerationContent } from '../transpiler/enumeration';
|
|
3
|
-
import type { FileContent } from '../transpiler/file';
|
|
4
|
-
import type { GenderContent } from '../transpiler/gender';
|
|
5
|
-
import type { InsertionContent } from '../transpiler/insertion';
|
|
6
|
-
import type { MarkdownContent } from '../transpiler/markdown';
|
|
7
|
-
import type { NestedContent } from '../transpiler/nesting';
|
|
8
|
-
import type { TranslationContent } from '../transpiler/translation';
|
|
9
|
-
import type { IntlayerDictionaryTypesConnector, LanguageContent, LocalesValues } from './intlayer';
|
|
10
|
-
/**
|
|
11
|
-
* Provides a fallback to string type if the generic type T is undefined,
|
|
12
|
-
* otherwise returns T. This is useful for handling cases where no keys are found.
|
|
13
|
-
* Example: StringFallback<undefined> -> string; StringFallback<'key'> -> 'key'
|
|
14
|
-
*/
|
|
15
|
-
export type StringFallback<T> = T extends undefined ? string : T;
|
|
16
|
-
/**
|
|
17
|
-
* Represents the keys of the IntlayerDictionaryTypesConnector,
|
|
18
|
-
* ensuring they are valid dictionary keys or fallback to string if none exist.
|
|
19
|
-
*
|
|
20
|
-
* Example:
|
|
21
|
-
* ```ts
|
|
22
|
-
* DictionaryKeys -> 'key1' | 'key2'
|
|
23
|
-
* // or if IntlayerDictionaryTypesConnector is not defined,
|
|
24
|
-
* DictionaryKeys -> string
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export type DictionaryKeys = StringFallback<keyof IntlayerDictionaryTypesConnector>;
|
|
28
|
-
type BaseNode = number | string | boolean | null | undefined;
|
|
29
|
-
export type TypedNode<NodeType = undefined> = TranslationContent<NodeType> | EnumerationContent<NodeType> | ConditionContent<NodeType> | InsertionContent<NodeType> | MarkdownContent<NodeType> | NestedContent<DictionaryKeys> | GenderContent<NodeType> | FileContent;
|
|
30
|
-
type FetchableContentNode<NodeType> = (args?: any) => ContentNode<NodeType> | Promise<ContentNode<NodeType>>;
|
|
31
|
-
export type ContentNode<T = undefined, FetchableNode = false, NodeType = T extends undefined ? BaseNode : T> = NodeType | TypedNode<NodeType> | ((args?: any) => ContentNode<NodeType>) | (FetchableNode extends true ? FetchableContentNode<NodeType> : undefined);
|
|
32
|
-
type IsArray<T> = T extends any[] ? true : false;
|
|
33
|
-
type ReplaceContentValueArray<T, FetchableNode> = T extends (infer U)[] ? // Allow either a *single* typed node returning the entire array
|
|
34
|
-
ContentNode<T, FetchableNode> | ReplaceContentValue<U, FetchableNode>[] : never;
|
|
35
|
-
type ReplaceContentValueObject<T, FetchableNode> = {
|
|
36
|
-
[K in keyof T]: ReplaceContentValue<T[K], FetchableNode>;
|
|
37
|
-
};
|
|
38
|
-
type ReplaceContentValue<NodeType, FetchableNode = true> = NodeType extends object ? IsArray<NodeType> extends true ? ReplaceContentValueArray<NodeType, FetchableNode> : ContentNode<NodeType, FetchableNode> | ReplaceContentValueObject<NodeType, FetchableNode> : ContentNode<NodeType, FetchableNode>;
|
|
39
|
-
export type AutoFill = true | string | Partial<LanguageContent<string>>;
|
|
40
|
-
export type LocalDictionaryId = string;
|
|
41
|
-
export type Dictionary<ContentType = undefined, FetchableNode = false> = {
|
|
42
|
-
/**
|
|
43
|
-
* _Auto generated by the intlayer, do not modify it_
|
|
44
|
-
*
|
|
45
|
-
* The schema of the dictionary, used for JSON validation
|
|
46
|
-
*/
|
|
47
|
-
$schema?: string;
|
|
48
|
-
/**
|
|
49
|
-
* _Auto generated by the intlayer, do not modify it_
|
|
50
|
-
*
|
|
51
|
-
* For remote dictionaries, the id is the id of the dictionary in the remote server
|
|
52
|
-
*/
|
|
53
|
-
id?: string;
|
|
54
|
-
/**
|
|
55
|
-
* _Auto generated by the intlayer, do not modify it_
|
|
56
|
-
*
|
|
57
|
-
* Unique Identifier for the dictionaries. Auto generated by the intlayer, it helps to identify the dictionary and know if it is a local or remote dictionary, and his location.
|
|
58
|
-
*/
|
|
59
|
-
localId?: LocalDictionaryId;
|
|
60
|
-
/**
|
|
61
|
-
* _Auto generated by the intlayer, do not modify it_
|
|
62
|
-
*
|
|
63
|
-
* For merged dictionaries, the localIds is the ids of the dictionaries that are merged
|
|
64
|
-
*/
|
|
65
|
-
localIds?: LocalDictionaryId[];
|
|
66
|
-
/**
|
|
67
|
-
* The key of the dictionary. If multiple dictionaries have the same key, intlayer will merge them.
|
|
68
|
-
*
|
|
69
|
-
* As convention, use '-' to separate the words in the key.
|
|
70
|
-
*
|
|
71
|
-
* Example:
|
|
72
|
-
* ```json
|
|
73
|
-
* {
|
|
74
|
-
* "key": "about-page-meta",
|
|
75
|
-
* "content": { ... }
|
|
76
|
-
* }
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
key: string;
|
|
80
|
-
/**
|
|
81
|
-
* The title of the dictionary. Helps to identify the dictionary in the editor, and the CMS.
|
|
82
|
-
*
|
|
83
|
-
* Example:
|
|
84
|
-
* ```json
|
|
85
|
-
* {
|
|
86
|
-
* "key": "about-page-meta",
|
|
87
|
-
* "title": "About Page",
|
|
88
|
-
* "content": { ... }
|
|
89
|
-
* }
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
title?: string;
|
|
93
|
-
/**
|
|
94
|
-
* The description of the dictionary. Helps to understand the purpose of the dictionary in the editor, and the CMS.
|
|
95
|
-
* The descrtion is also used as context for translations generation.
|
|
96
|
-
*
|
|
97
|
-
* Example:
|
|
98
|
-
* ```ts
|
|
99
|
-
* {
|
|
100
|
-
* "key": "about-page-meta",
|
|
101
|
-
* "description":[
|
|
102
|
-
* "This dictionary is manage the metadata of the About Page",
|
|
103
|
-
* "Consider good practices for SEO:",
|
|
104
|
-
* "- The title should be between 50 and 60 characters",
|
|
105
|
-
* "- The description should be between 150 and 160 characters",
|
|
106
|
-
* ].join('\n'),
|
|
107
|
-
* "content": { ... }
|
|
108
|
-
* }
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
description?: string;
|
|
112
|
-
/**
|
|
113
|
-
* _Auto generated by the intlayer, do not modify it_
|
|
114
|
-
*
|
|
115
|
-
* The available versions of the remote dictionary. Helps to know the versions of the dictionary that are available.
|
|
116
|
-
*/
|
|
117
|
-
versions?: string[];
|
|
118
|
-
/**
|
|
119
|
-
* _Managable on the CMS, do not modify it locally_
|
|
120
|
-
*
|
|
121
|
-
* The version of the remote dictionary. Helps to know the version of the dictionary that is currently used.
|
|
122
|
-
*/
|
|
123
|
-
version?: string;
|
|
124
|
-
/**
|
|
125
|
-
* _Auto generated by the intlayer, do not modify it_
|
|
126
|
-
*
|
|
127
|
-
* The file path of the local dictionary. Helps to know from what .content file the dictionary has been generated.
|
|
128
|
-
*/
|
|
129
|
-
filePath?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Helps to categorize the dictionaries. The tags can provide more context and instructions for the dictionary.
|
|
132
|
-
*
|
|
133
|
-
* Example:
|
|
134
|
-
* ```json
|
|
135
|
-
* {
|
|
136
|
-
* "key": "about-page-meta",
|
|
137
|
-
* "tags": ["metadata","about-page"]
|
|
138
|
-
* }
|
|
139
|
-
* ```
|
|
140
|
-
*/
|
|
141
|
-
tags?: string[];
|
|
142
|
-
/**
|
|
143
|
-
* Transform the dictionary in a per-locale dictionary.
|
|
144
|
-
* Each field declared in a per-locale dictionary will be transformed in a translation node.
|
|
145
|
-
* If missing, the dictionary will be treated as a multilingual dictionary.
|
|
146
|
-
* If declared, do not use translation nodes in the content.
|
|
147
|
-
*
|
|
148
|
-
* Example:
|
|
149
|
-
* ```json
|
|
150
|
-
* {
|
|
151
|
-
* "key": "about-page",
|
|
152
|
-
* "locale": "en",
|
|
153
|
-
* "content": {
|
|
154
|
-
* "multilingualContent": "English content"
|
|
155
|
-
* }
|
|
156
|
-
* }
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
locale?: LocalesValues;
|
|
160
|
-
/**
|
|
161
|
-
* Instruction to auto fill the dictionary.
|
|
162
|
-
* Can also be declared globally in the `intlayer.config.ts` file.
|
|
163
|
-
*
|
|
164
|
-
* Example:
|
|
165
|
-
* ```json
|
|
166
|
-
* {
|
|
167
|
-
* "key": "about-page",
|
|
168
|
-
* "autoFill": true
|
|
169
|
-
* }
|
|
170
|
-
* ```
|
|
171
|
-
* ```json
|
|
172
|
-
* {
|
|
173
|
-
* "key": "about-page",
|
|
174
|
-
* "autoFill": "./aboutPage.content.json"
|
|
175
|
-
* }
|
|
176
|
-
* ```
|
|
177
|
-
* ```json
|
|
178
|
-
* {
|
|
179
|
-
* "key": "about-page",
|
|
180
|
-
* "autoFill": "/messages/{{locale}}/{{key}}/{{fileName}}.content.json"
|
|
181
|
-
* }
|
|
182
|
-
* ```
|
|
183
|
-
* ```json
|
|
184
|
-
* {
|
|
185
|
-
* "key": "about-page",
|
|
186
|
-
* "autoFill": {
|
|
187
|
-
* "fr": "./aboutPage.fr.content.json",
|
|
188
|
-
* "es": "./aboutPage.es.content.json"
|
|
189
|
-
* }
|
|
190
|
-
* }
|
|
191
|
-
* ```
|
|
192
|
-
*
|
|
193
|
-
*/
|
|
194
|
-
autoFill?: AutoFill;
|
|
195
|
-
/**
|
|
196
|
-
* _Auto generated by the intlayer, do not modify it_
|
|
197
|
-
*
|
|
198
|
-
* Indicates if the dictionary has been auto filled.
|
|
199
|
-
* In the case of conflicts, base dictionaryed will override auto filled dictionary.
|
|
200
|
-
*/
|
|
201
|
-
autoFilled?: true;
|
|
202
|
-
/**
|
|
203
|
-
* Indicates the priority of the dictionary.
|
|
204
|
-
* In the case of conflicts, the dictionary with the highest priority will override the other dictionaries.
|
|
205
|
-
*/
|
|
206
|
-
priority?: number;
|
|
207
|
-
/**
|
|
208
|
-
* _Managable on the CMS, do not modify it locally_
|
|
209
|
-
*
|
|
210
|
-
* For remote dictionaries, indicates if the dictionary is live.
|
|
211
|
-
*
|
|
212
|
-
* Will need the `importMode` to be "live" to be effective in the `intlayer.config.ts` file. Will also need the live server to be running.
|
|
213
|
-
*
|
|
214
|
-
* A live dictionary will be fetched at runtime using the live sync API.
|
|
215
|
-
*
|
|
216
|
-
* If live, the dictionary will by transformed to include fetch functions.
|
|
217
|
-
* If not live, the dictionary will be transformed at build time using "dynamic" mode to optimize the number of fetch queries, and load performance.
|
|
218
|
-
*
|
|
219
|
-
* If live but the fetch request fails, the dictionary will return the dynamic value of the dictionary as fallback.
|
|
220
|
-
*
|
|
221
|
-
*/
|
|
222
|
-
live?: boolean;
|
|
223
|
-
/**
|
|
224
|
-
* _Auto generated by the intlayer, do not modify it_
|
|
225
|
-
*
|
|
226
|
-
* Indicates the location of the dictionary.
|
|
227
|
-
*/
|
|
228
|
-
location?: 'distant' | 'locale' | 'plugin';
|
|
229
|
-
/**
|
|
230
|
-
* The content of the dictionary.
|
|
231
|
-
*
|
|
232
|
-
* Example:
|
|
233
|
-
* ```tsx
|
|
234
|
-
* import { t, enu, cond, nest, md, insert, file } from "intlayer";
|
|
235
|
-
*
|
|
236
|
-
* export default {
|
|
237
|
-
* key: "about-page-meta",
|
|
238
|
-
* content: {
|
|
239
|
-
* stringContent: "About Page Meta",
|
|
240
|
-
* numberContent: 123,
|
|
241
|
-
* booleanContent: true,
|
|
242
|
-
* multilingualContent: t({
|
|
243
|
-
* en: "About Page Meta",
|
|
244
|
-
* fr: "Meta de la page About",
|
|
245
|
-
* es: "Meta de la página About",
|
|
246
|
-
* }),
|
|
247
|
-
* conditionalContent: cond({
|
|
248
|
-
* true: "About Page Meta",
|
|
249
|
-
* false: "About Page Meta",
|
|
250
|
-
* }),
|
|
251
|
-
* insertionContent: insert("About Page Meta"),
|
|
252
|
-
* nestedContent: nest("about-page"),
|
|
253
|
-
* markdownContent: md("# About Page Meta"),
|
|
254
|
-
* fileContent: file("./path/to/file.txt"),
|
|
255
|
-
* jsxContent: <h1>About Page Meta</h1>,
|
|
256
|
-
* },
|
|
257
|
-
*
|
|
258
|
-
* } satisfies Dictionary<Content>;
|
|
259
|
-
* ```
|
|
260
|
-
*
|
|
261
|
-
* ```json
|
|
262
|
-
* {
|
|
263
|
-
* "key": "about-page-meta",
|
|
264
|
-
* "content": {
|
|
265
|
-
* "stringContent": "About Page Meta",
|
|
266
|
-
* "numberContent": 123,
|
|
267
|
-
* "booleanContent": true,
|
|
268
|
-
* "multilingualContent": {
|
|
269
|
-
* "nodeType": "translation",
|
|
270
|
-
* "translation": {
|
|
271
|
-
* "en": "About Page Meta",
|
|
272
|
-
* "fr": "Meta de la page About",
|
|
273
|
-
* "es": "Meta de la página About",
|
|
274
|
-
* },
|
|
275
|
-
* },
|
|
276
|
-
* "conditionalContent": {
|
|
277
|
-
* "nodeType": "condition",
|
|
278
|
-
* "condition": {
|
|
279
|
-
* "true": "About Page Meta",
|
|
280
|
-
* "false": "About Page Meta",
|
|
281
|
-
* },
|
|
282
|
-
* },
|
|
283
|
-
* "insertionContent": {
|
|
284
|
-
* "nodeType": "insertion",
|
|
285
|
-
* "insertion": "About Page Meta",
|
|
286
|
-
* },
|
|
287
|
-
* "nestedContent": {
|
|
288
|
-
* "nodeType": "nested",
|
|
289
|
-
* "nested": { "dictionaryKey": "about-page" },
|
|
290
|
-
* },
|
|
291
|
-
* "markdownContent": {
|
|
292
|
-
* "nodeType": "markdown",
|
|
293
|
-
* "markdown": "# About Page Meta",
|
|
294
|
-
* },
|
|
295
|
-
* "fileContent": {
|
|
296
|
-
* "nodeType": "file",
|
|
297
|
-
* "file": "./path/to/file.txt",
|
|
298
|
-
* },
|
|
299
|
-
* }
|
|
300
|
-
* }
|
|
301
|
-
* ```
|
|
302
|
-
*/
|
|
303
|
-
content: ContentType extends undefined ? any : ReplaceContentValue<ContentType, FetchableNode> | ContentType;
|
|
304
|
-
};
|
|
305
|
-
export type GetSubPath<T, P> = P extends `${infer K}.${infer Rest}` ? K extends keyof T ? GetSubPath<T[K], Rest> : never : P extends keyof T ? T[P] : T;
|
|
306
|
-
export {};
|
|
307
|
-
//# sourceMappingURL=dictionary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/types/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE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,GACtB,KAAK,GACP,CAAC,SAAS,MAAM,CAAC,GACf,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intlayer.d.ts","sourceRoot":"","sources":["../../../src/types/intlayer.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,YAAY,EACV,cAAc,EACd,gCAAgC,EAChC,eAAe,EACf,aAAa,GACd,MAAM,UAAU,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { NodeType } from './nodeType';
|
|
2
|
-
export type ObjectNode = {
|
|
3
|
-
type: NodeType.Object;
|
|
4
|
-
key: string;
|
|
5
|
-
};
|
|
6
|
-
export type ArrayNode = {
|
|
7
|
-
type: NodeType.Array;
|
|
8
|
-
key: number;
|
|
9
|
-
};
|
|
10
|
-
export type EnumerationNode = {
|
|
11
|
-
type: NodeType.Enumeration;
|
|
12
|
-
key: string;
|
|
13
|
-
};
|
|
14
|
-
export type TranslationNode = {
|
|
15
|
-
type: NodeType.Translation;
|
|
16
|
-
key: string;
|
|
17
|
-
};
|
|
18
|
-
export type ConditionNode = {
|
|
19
|
-
type: NodeType.Condition;
|
|
20
|
-
key: string;
|
|
21
|
-
};
|
|
22
|
-
export type GenderNode = {
|
|
23
|
-
type: NodeType.Gender;
|
|
24
|
-
key: string;
|
|
25
|
-
};
|
|
26
|
-
export type InsertionNode = {
|
|
27
|
-
type: NodeType.Insertion;
|
|
28
|
-
key?: undefined;
|
|
29
|
-
};
|
|
30
|
-
export type MarkdownNode = {
|
|
31
|
-
type: NodeType.Markdown;
|
|
32
|
-
key?: undefined;
|
|
33
|
-
};
|
|
34
|
-
export type ReactNode = {
|
|
35
|
-
type: NodeType.ReactNode;
|
|
36
|
-
key?: undefined;
|
|
37
|
-
};
|
|
38
|
-
export type NestedNode = {
|
|
39
|
-
type: NodeType.Nested;
|
|
40
|
-
key?: undefined;
|
|
41
|
-
};
|
|
42
|
-
export type FileNode = {
|
|
43
|
-
type: NodeType.File;
|
|
44
|
-
key?: undefined;
|
|
45
|
-
};
|
|
46
|
-
export type KeyPath = ObjectNode | ArrayNode | TranslationNode | EnumerationNode | InsertionNode | GenderNode | MarkdownNode | ReactNode | ConditionNode | NestedNode | FileNode;
|
|
47
|
-
//# sourceMappingURL=keyPath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyPath.d.ts","sourceRoot":"","sources":["../../../src/types/keyPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;IACzB,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACxB,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;IACzB,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,OAAO,GACf,UAAU,GACV,SAAS,GACT,eAAe,GACf,eAAe,GACf,aAAa,GACb,UAAU,GACV,YAAY,GACZ,SAAS,GACT,aAAa,GACb,UAAU,GACV,QAAQ,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare enum NodeType {
|
|
2
|
-
Translation = "translation",
|
|
3
|
-
Enumeration = "enumeration",
|
|
4
|
-
Condition = "condition",
|
|
5
|
-
Insertion = "insertion",
|
|
6
|
-
File = "file",
|
|
7
|
-
Object = "object",
|
|
8
|
-
Array = "array",
|
|
9
|
-
Nested = "nested",
|
|
10
|
-
ReactNode = "reactNode",
|
|
11
|
-
Markdown = "markdown",
|
|
12
|
-
Text = "text",
|
|
13
|
-
Number = "number",
|
|
14
|
-
Boolean = "boolean",
|
|
15
|
-
Gender = "gender",
|
|
16
|
-
Unknown = "unknown"
|
|
17
|
-
}
|
|
18
|
-
type AdditionalAttributesType = {
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
21
|
-
export type TypedNodeModel<T extends NodeType, Content, AdditionalAttributes extends AdditionalAttributesType = {}> = {
|
|
22
|
-
nodeType: T | `${T}`;
|
|
23
|
-
} & {
|
|
24
|
-
[K in T]: Content;
|
|
25
|
-
} & AdditionalAttributes;
|
|
26
|
-
export declare const formatNodeType: <T extends NodeType, Content = any, AdditionalAttributes extends AdditionalAttributesType = {}>(nodeType: T | `${T}`, content: Content, additionalAttributes?: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}) => TypedNodeModel<T, Content, AdditionalAttributes>;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=nodeType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../src/types/nodeType.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,KAAK,wBAAwB,GAAG;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,QAAQ,EAClB,OAAO,EACP,oBAAoB,SAAS,wBAAwB,GAAG,EAAE,IACxD;IACF,QAAQ,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;CACtB,GAAG;KACD,CAAC,IAAI,CAAC,GAAG,OAAO;CAClB,GAAG,oBAAoB,CAAC;AAEzB,eAAO,MAAM,cAAc,GACzB,CAAC,SAAS,QAAQ,EAClB,OAAO,GAAG,GAAG,EACb,oBAAoB,SAAS,wBAAwB,GAAG,EAAE,EAE1D,UAAU,CAAC,GAAG,GAAG,CAAC,EAAE,EACpB,SAAS,OAAO,EAChB,uBAAuB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,KAMvC,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { LocalesValues } from '@intlayer/config/client';
|
|
2
|
-
import type { IConfigLocales } from './intlayer';
|
|
3
|
-
/**
|
|
4
|
-
* If module augmented, it will return the configured locales such as Locales.ENGLISH | Locales.FRENCH | Locales.SPANISH | ...
|
|
5
|
-
* If not, it will return never
|
|
6
|
-
*/
|
|
7
|
-
export type ConfigLocales = keyof IConfigLocales<unknown>;
|
|
8
|
-
/**
|
|
9
|
-
* Record of locales and content
|
|
10
|
-
*
|
|
11
|
-
* const myVar1: TranslationContentState<string> = {
|
|
12
|
-
* "en": "",
|
|
13
|
-
* "fr": ""
|
|
14
|
-
* }
|
|
15
|
-
*
|
|
16
|
-
* const myVar2: TranslationContentState<{age: number, name: string}> = {
|
|
17
|
-
* "en": {age: 1, name: "test"},
|
|
18
|
-
* "fr": {age: 1, name: "test"}
|
|
19
|
-
* }
|
|
20
|
-
*/
|
|
21
|
-
export type TranslationContentState<Content = unknown> = {
|
|
22
|
-
[locale in LocalesValues]?: Content;
|
|
23
|
-
};
|
|
24
|
-
export type LanguageContent<Content = unknown> = keyof IConfigLocales<unknown> extends never ? TranslationContentState<Content> : IConfigLocales<Content>;
|
|
25
|
-
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/types/translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;AAE1D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI;KACtD,MAAM,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO;CACpC,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,OAAO,GAAG,OAAO,IAC3C,MAAM,cAAc,CAAC,OAAO,CAAC,SAAS,KAAK,GACvC,uBAAuB,CAAC,OAAO,CAAC,GAChC,cAAc,CAAC,OAAO,CAAC,CAAC"}
|