@intlayer/chokidar 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/api/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/api/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/fetcher.cjs +121 -0
- package/dist/cjs/api/dist/esm/fetcher.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/ai.cjs +164 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/ai.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/audit.cjs +39 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/audit.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/dictionary.cjs +70 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/dictionary.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/editor.cjs +38 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/editor.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/index.cjs +32 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/index.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/newsletter.cjs +41 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/newsletter.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/oAuth.cjs +27 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/oAuth.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/organization.cjs +94 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/organization.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/project.cjs +110 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/project.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/search.cjs +23 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/search.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/stripe.cjs +39 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/stripe.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/tag.cjs +48 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/tag.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/user.cjs +80 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/user.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/proxy.cjs +100 -0
- package/dist/cjs/api/dist/esm/proxy.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +14 -5
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs.map +1 -1
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs +10 -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/config/package.cjs +7 -0
- package/dist/cjs/config/dist/esm/config/package.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 +15 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs +54 -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 +23 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs +11 -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 +58 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs +83 -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 +58 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/logger.cjs +114 -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 +28 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs +416 -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/extractErrorMessage.cjs +95 -0
- package/dist/cjs/config/dist/esm/utils/extractErrorMessage.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/config/package.cjs +12 -0
- package/dist/cjs/config/package.cjs.map +1 -0
- package/dist/cjs/config/src/utils/kebabCaseToCamelCase.cjs +14 -0
- package/dist/cjs/config/src/utils/kebabCaseToCamelCase.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/core/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/logger.cjs +63 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.cjs +43 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getLocalizedContent.cjs +32 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getLocalizedContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMaskContent.cjs +26 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMaskContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.cjs +87 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/getNodeType.cjs +35 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/getNodeType.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/mergeDictionaries.cjs +67 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/mergeDictionaries.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/normalizeDictionary.cjs +29 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/normalizeDictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/orderDictionaries.cjs +46 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/orderDictionaries.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/deepTransform.cjs +39 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/deepTransform.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/plugins.cjs +28 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/plugins.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getTranslation.cjs +32 -0
- package/dist/cjs/core/dist/esm/interpreter/getTranslation.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/localization/getLocaleName.cjs +10 -0
- package/dist/cjs/core/dist/esm/localization/getLocaleName.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/transpiler/translation/translation.cjs +28 -0
- package/dist/cjs/core/dist/esm/transpiler/translation/translation.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs +31 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/utils/intl.cjs +49 -0
- package/dist/cjs/core/dist/esm/utils/intl.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/utils/isValidReactElement.cjs +14 -0
- package/dist/cjs/core/dist/esm/utils/isValidReactElement.cjs.map +1 -0
- package/dist/cjs/core/package.cjs +12 -0
- package/dist/cjs/core/package.cjs.map +1 -0
- package/dist/cjs/core/src/deepTransformPlugins/processContentDeclarationContent.cjs +77 -0
- package/dist/cjs/core/src/deepTransformPlugins/processContentDeclarationContent.cjs.map +1 -0
- package/dist/cjs/createType/createModuleAugmentation.cjs +1 -2
- package/dist/cjs/createType/createModuleAugmentation.cjs.map +1 -1
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +3 -2
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
- package/dist/cjs/index.cjs +0 -4
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs +12 -12
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs.map +1 -1
- package/dist/cjs/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/index.cjs +27 -0
- package/dist/cjs/remote-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 +25 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/index.cjs +27 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/index.cjs.map +1 -0
- package/dist/cjs/utils/camelCaseToSentence.cjs +11 -0
- package/dist/cjs/utils/camelCaseToSentence.cjs.map +1 -0
- package/dist/cjs/utils/cammelCaseToSentense.cjs +11 -0
- package/dist/cjs/utils/cammelCaseToSentense.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +47 -47
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +9 -6
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +1 -0
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs.map +1 -1
- package/dist/esm/api/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/api/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/api/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/api/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/api/dist/esm/fetcher.mjs +120 -0
- package/dist/esm/api/dist/esm/fetcher.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/ai.mjs +164 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/ai.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/audit.mjs +39 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/audit.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/dictionary.mjs +70 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/editor.mjs +38 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/editor.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/index.mjs +32 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/index.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/newsletter.mjs +41 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/oAuth.mjs +27 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/organization.mjs +94 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/organization.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/project.mjs +110 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/project.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/search.mjs +23 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/search.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/stripe.mjs +39 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/tag.mjs +48 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/tag.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/user.mjs +80 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/user.mjs.map +1 -0
- package/dist/esm/api/dist/esm/proxy.mjs +100 -0
- package/dist/esm/api/dist/esm/proxy.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +15 -6
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +1 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs.map +1 -1
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -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 +10 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -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 +14 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -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 +104 -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/extractErrorMessage.mjs +94 -0
- package/dist/esm/config/dist/esm/utils/extractErrorMessage.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/config/package.mjs +6 -0
- package/dist/esm/config/package.mjs.map +1 -0
- package/dist/esm/config/src/utils/kebabCaseToCamelCase.mjs +13 -0
- package/dist/esm/config/src/utils/kebabCaseToCamelCase.mjs.map +1 -0
- package/dist/esm/core/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/core/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/core/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/logger.mjs +59 -0
- package/dist/esm/core/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +43 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +32 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMaskContent.mjs +26 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMaskContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs +87 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/getNodeType.mjs +35 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/getNodeType.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +67 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +29 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/orderDictionaries.mjs +46 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/orderDictionaries.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/deepTransform.mjs +39 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/deepTransform.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/plugins.mjs +28 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/plugins.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getTranslation.mjs +31 -0
- package/dist/esm/core/dist/esm/interpreter/getTranslation.mjs.map +1 -0
- package/dist/esm/core/dist/esm/localization/getLocaleName.mjs +10 -0
- package/dist/esm/core/dist/esm/localization/getLocaleName.mjs.map +1 -0
- package/dist/esm/core/dist/esm/transpiler/translation/translation.mjs +28 -0
- package/dist/esm/core/dist/esm/transpiler/translation/translation.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/core/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs +29 -0
- package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/esm/core/dist/esm/utils/intl.mjs +49 -0
- package/dist/esm/core/dist/esm/utils/intl.mjs.map +1 -0
- package/dist/esm/core/dist/esm/utils/isValidReactElement.mjs +13 -0
- package/dist/esm/core/dist/esm/utils/isValidReactElement.mjs.map +1 -0
- package/dist/esm/core/package.mjs +6 -0
- package/dist/esm/core/package.mjs.map +1 -0
- package/dist/esm/core/src/deepTransformPlugins/processContentDeclarationContent.mjs +76 -0
- package/dist/esm/core/src/deepTransformPlugins/processContentDeclarationContent.mjs.map +1 -0
- package/dist/esm/createType/createModuleAugmentation.mjs +1 -2
- package/dist/esm/createType/createModuleAugmentation.mjs.map +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -3
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs +12 -12
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs.map +1 -1
- package/dist/esm/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/index.mjs +25 -0
- package/dist/esm/remote-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 +24 -0
- package/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/index.mjs +25 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/index.mjs.map +1 -0
- package/dist/esm/utils/camelCaseToSentence.mjs +10 -0
- package/dist/esm/utils/camelCaseToSentence.mjs.map +1 -0
- package/dist/esm/utils/cammelCaseToSentense.mjs +10 -0
- package/dist/esm/utils/cammelCaseToSentense.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs +47 -47
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +9 -6
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +1 -0
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +8 -4
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +2 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +2 -2
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -3
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +3 -3
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/processContentDeclarationContent.d.ts +13 -0
- package/dist/types/processContentDeclarationContent.d.ts.map +1 -0
- package/dist/types/utils/camelCaseToSentence.d.ts +5 -0
- package/dist/types/utils/camelCaseToSentence.d.ts.map +1 -0
- package/dist/types/utils/cammelCaseToSentense.d.ts +5 -0
- package/dist/types/utils/cammelCaseToSentense.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/package.json +24 -21
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/project.mjs
|
|
5
|
+
const getProjectAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const PROJECT_API_ROUTE = `${backendURL}/api/project`;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a list of projects based on filters and pagination.
|
|
11
|
+
* @param filters - Filters and pagination options.
|
|
12
|
+
*/
|
|
13
|
+
const getProjects = async (filters, otherOptions = {}) => await fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {
|
|
14
|
+
cache: "no-store",
|
|
15
|
+
params: filters
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Adds a new project to the database.
|
|
19
|
+
* @param project - Project data.
|
|
20
|
+
*/
|
|
21
|
+
const addProject = async (project, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {
|
|
22
|
+
method: "POST",
|
|
23
|
+
body: project
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Updates an existing project in the database.
|
|
27
|
+
* @param project - Updated project data.
|
|
28
|
+
*/
|
|
29
|
+
const updateProject = async (project, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {
|
|
30
|
+
method: "PUT",
|
|
31
|
+
body: project
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Updates project members in the database.
|
|
35
|
+
* @param project - Updated project data.
|
|
36
|
+
*/
|
|
37
|
+
const updateProjectMembers = async (body, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/members`, authAPIOptions, otherOptions, {
|
|
38
|
+
method: "PUT",
|
|
39
|
+
body
|
|
40
|
+
});
|
|
41
|
+
/** Pushes a project configuration to the database.
|
|
42
|
+
* @param projectConfiguration - Project configuration data.
|
|
43
|
+
*/
|
|
44
|
+
const pushProjectConfiguration = async (projectConfiguration, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/configuration`, authAPIOptions, otherOptions, {
|
|
45
|
+
method: "PUT",
|
|
46
|
+
body: projectConfiguration
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* Deletes a project from the database by its ID.
|
|
50
|
+
* @param id - Project ID.
|
|
51
|
+
*/
|
|
52
|
+
const deleteProject = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, { method: "DELETE" });
|
|
53
|
+
/**
|
|
54
|
+
* Select a project from the database by its ID.
|
|
55
|
+
* @param projectId - Organization ID.
|
|
56
|
+
*/
|
|
57
|
+
const selectProject = async (projectId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${String(projectId)}`, authAPIOptions, otherOptions, { method: "PUT" });
|
|
58
|
+
/**
|
|
59
|
+
* Unselect a project from the database by its ID.
|
|
60
|
+
* @param projectId - Project ID.
|
|
61
|
+
*/
|
|
62
|
+
const unselectProject = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/logout`, authAPIOptions, otherOptions, { method: "POST" });
|
|
63
|
+
/**
|
|
64
|
+
* Add a new access key to a project.
|
|
65
|
+
* @param accessKey - Access key data.
|
|
66
|
+
* @param otherOptions - Fetcher options.
|
|
67
|
+
* @returns The new access key.
|
|
68
|
+
*/
|
|
69
|
+
const addNewAccessKey = async (accessKey, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {
|
|
70
|
+
method: "POST",
|
|
71
|
+
body: accessKey
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* Delete a project access key.
|
|
75
|
+
* @param clientId - Access key client ID.
|
|
76
|
+
* @param otherOptions - Fetcher options.
|
|
77
|
+
* @returns The deleted project.
|
|
78
|
+
*/
|
|
79
|
+
const deleteAccessKey = async (clientId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {
|
|
80
|
+
method: "DELETE",
|
|
81
|
+
body: { clientId }
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* Refreshes an access key from a project.
|
|
85
|
+
* @param clientId - The ID of the client to refresh.
|
|
86
|
+
* @param projectId - The ID of the project to refresh the access key from.
|
|
87
|
+
* @returns The new access key.
|
|
88
|
+
*/
|
|
89
|
+
const refreshAccessKey = async (clientId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {
|
|
90
|
+
method: "PATCH",
|
|
91
|
+
body: { clientId }
|
|
92
|
+
});
|
|
93
|
+
return {
|
|
94
|
+
getProjects,
|
|
95
|
+
addProject,
|
|
96
|
+
updateProject,
|
|
97
|
+
updateProjectMembers,
|
|
98
|
+
pushProjectConfiguration,
|
|
99
|
+
deleteProject,
|
|
100
|
+
selectProject,
|
|
101
|
+
unselectProject,
|
|
102
|
+
addNewAccessKey,
|
|
103
|
+
deleteAccessKey,
|
|
104
|
+
refreshAccessKey
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
export { getProjectAPI };
|
|
110
|
+
//# sourceMappingURL=project.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/project.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/project.ts\nconst getProjectAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst PROJECT_API_ROUTE = `${backendURL}/api/project`;\n\t/**\n\t* Retrieves a list of projects based on filters and pagination.\n\t* @param filters - Filters and pagination options.\n\t*/\n\tconst getProjects = async (filters, otherOptions = {}) => await fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams: filters\n\t});\n\t/**\n\t* Adds a new project to the database.\n\t* @param project - Project data.\n\t*/\n\tconst addProject = async (project, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: project\n\t});\n\t/**\n\t* Updates an existing project in the database.\n\t* @param project - Updated project data.\n\t*/\n\tconst updateProject = async (project, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: project\n\t});\n\t/**\n\t* Updates project members in the database.\n\t* @param project - Updated project data.\n\t*/\n\tconst updateProjectMembers = async (body, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/members`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody\n\t});\n\t/** Pushes a project configuration to the database.\n\t* @param projectConfiguration - Project configuration data.\n\t*/\n\tconst pushProjectConfiguration = async (projectConfiguration, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/configuration`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: projectConfiguration\n\t});\n\t/**\n\t* Deletes a project from the database by its ID.\n\t* @param id - Project ID.\n\t*/\n\tconst deleteProject = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, { method: \"DELETE\" });\n\t/**\n\t* Select a project from the database by its ID.\n\t* @param projectId - Organization ID.\n\t*/\n\tconst selectProject = async (projectId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${String(projectId)}`, authAPIOptions, otherOptions, { method: \"PUT\" });\n\t/**\n\t* Unselect a project from the database by its ID.\n\t* @param projectId - Project ID.\n\t*/\n\tconst unselectProject = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/logout`, authAPIOptions, otherOptions, { method: \"POST\" });\n\t/**\n\t* Add a new access key to a project.\n\t* @param accessKey - Access key data.\n\t* @param otherOptions - Fetcher options.\n\t* @returns The new access key.\n\t*/\n\tconst addNewAccessKey = async (accessKey, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: accessKey\n\t});\n\t/**\n\t* Delete a project access key.\n\t* @param clientId - Access key client ID.\n\t* @param otherOptions - Fetcher options.\n\t* @returns The deleted project.\n\t*/\n\tconst deleteAccessKey = async (clientId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {\n\t\tmethod: \"DELETE\",\n\t\tbody: { clientId }\n\t});\n\t/**\n\t* Refreshes an access key from a project.\n\t* @param clientId - The ID of the client to refresh.\n\t* @param projectId - The ID of the project to refresh the access key from.\n\t* @returns The new access key.\n\t*/\n\tconst refreshAccessKey = async (clientId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PATCH\",\n\t\tbody: { clientId }\n\t});\n\treturn {\n\t\tgetProjects,\n\t\taddProject,\n\t\tupdateProject,\n\t\tupdateProjectMembers,\n\t\tpushProjectConfiguration,\n\t\tdeleteProject,\n\t\tselectProject,\n\t\tunselectProject,\n\t\taddNewAccessKey,\n\t\tdeleteAccessKey,\n\t\trefreshAccessKey\n\t};\n};\n\n//#endregion\nexport { getProjectAPI };\n//# sourceMappingURL=project.mjs.map"],"mappings":";;;;AAIA,MAAM,iBAAiB,iBAAiB,EAAE,EAAE,mBAAmB;CAC9D,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,oBAAoB,GAAG,WAAW;;;;;CAKxC,MAAM,cAAc,OAAO,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,mBAAmB,gBAAgB,cAAc;EACxH,OAAO;EACP,QAAQ;EACR,CAAC;;;;;CAKF,MAAM,aAAa,OAAO,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,gBAAgB,cAAc;EAC5H,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,gBAAgB,OAAO,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,gBAAgB,cAAc;EAC/H,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,uBAAuB,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,WAAW,gBAAgB,cAAc;EAC3I,QAAQ;EACR;EACA,CAAC;;;;CAIF,MAAM,2BAA2B,OAAO,sBAAsB,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,iBAAiB,gBAAgB,cAAc;EACrK,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,gBAAgB,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,gBAAgB,cAAc,EAAE,QAAQ,UAAU,CAAC;;;;;CAK5I,MAAM,gBAAgB,OAAO,WAAW,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,GAAG,OAAO,UAAU,IAAI,gBAAgB,cAAc,EAAE,QAAQ,OAAO,CAAC;;;;;CAKzK,MAAM,kBAAkB,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,UAAU,gBAAgB,cAAc,EAAE,QAAQ,QAAQ,CAAC;;;;;;;CAOnJ,MAAM,kBAAkB,OAAO,WAAW,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,cAAc,gBAAgB,cAAc;EAC9I,QAAQ;EACR,MAAM;EACN,CAAC;;;;;;;CAOF,MAAM,kBAAkB,OAAO,UAAU,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,cAAc,gBAAgB,cAAc;EAC7I,QAAQ;EACR,MAAM,EAAE,UAAU;EAClB,CAAC;;;;;;;CAOF,MAAM,mBAAmB,OAAO,UAAU,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,cAAc,gBAAgB,cAAc;EAC9I,QAAQ;EACR,MAAM,EAAE,UAAU;EAClB,CAAC;AACF,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/search.mjs
|
|
5
|
+
const getSearchAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const AI_API_ROUTE = `${backendURL}/api/search`;
|
|
9
|
+
/**
|
|
10
|
+
* Search documentation
|
|
11
|
+
* @param params - Search parameters containing the input query.
|
|
12
|
+
* @returns Search results with GitHub URLs.
|
|
13
|
+
*/
|
|
14
|
+
const searchDoc = async (params, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/doc`, authAPIOptions, otherOptions, {
|
|
15
|
+
method: "GET",
|
|
16
|
+
params
|
|
17
|
+
});
|
|
18
|
+
return { searchDoc };
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { getSearchAPI };
|
|
23
|
+
//# sourceMappingURL=search.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/search.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/search.ts\nconst getSearchAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst AI_API_ROUTE = `${backendURL}/api/search`;\n\t/**\n\t* Search documentation\n\t* @param params - Search parameters containing the input query.\n\t* @returns Search results with GitHub URLs.\n\t*/\n\tconst searchDoc = async (params, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/doc`, authAPIOptions, otherOptions, {\n\t\tmethod: \"GET\",\n\t\tparams\n\t});\n\treturn { searchDoc };\n};\n\n//#endregion\nexport { getSearchAPI };\n//# sourceMappingURL=search.mjs.map"],"mappings":";;;;AAIA,MAAM,gBAAgB,iBAAiB,EAAE,EAAE,mBAAmB;CAC7D,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,eAAe,GAAG,WAAW;;;;;;CAMnC,MAAM,YAAY,OAAO,QAAQ,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,aAAa,OAAO,gBAAgB,cAAc;EACzH,QAAQ;EACR;EACA,CAAC;AACF,QAAO,EAAE,WAAW"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/stripe.mjs
|
|
5
|
+
const getStripeAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const STRIPE_API_ROUTE = `${backendURL}/api/stripe`;
|
|
9
|
+
/**
|
|
10
|
+
* Get a pricing plan calculated for a given promotion code.
|
|
11
|
+
* @param body - Pricing plan body.
|
|
12
|
+
*/
|
|
13
|
+
const getPricing = async (body, otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/pricing`, authAPIOptions, otherOptions, {
|
|
14
|
+
method: "POST",
|
|
15
|
+
body
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a checkout session.
|
|
19
|
+
* @param body - Checkout session body.
|
|
20
|
+
*/
|
|
21
|
+
const getSubscription = async (body, otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/create-subscription`, authAPIOptions, otherOptions, {
|
|
22
|
+
method: "POST",
|
|
23
|
+
body
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Cancels a subscription.
|
|
27
|
+
* @param body - Checkout session body.
|
|
28
|
+
*/
|
|
29
|
+
const cancelSubscription = async (otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/cancel-subscription`, authAPIOptions, otherOptions, { method: "POST" });
|
|
30
|
+
return {
|
|
31
|
+
getPricing,
|
|
32
|
+
getSubscription,
|
|
33
|
+
cancelSubscription
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { getStripeAPI };
|
|
39
|
+
//# sourceMappingURL=stripe.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripe.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/stripe.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/stripe.ts\nconst getStripeAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst STRIPE_API_ROUTE = `${backendURL}/api/stripe`;\n\t/**\n\t* Get a pricing plan calculated for a given promotion code.\n\t* @param body - Pricing plan body.\n\t*/\n\tconst getPricing = async (body, otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/pricing`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Retrieves a checkout session.\n\t* @param body - Checkout session body.\n\t*/\n\tconst getSubscription = async (body, otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/create-subscription`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Cancels a subscription.\n\t* @param body - Checkout session body.\n\t*/\n\tconst cancelSubscription = async (otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/cancel-subscription`, authAPIOptions, otherOptions, { method: \"POST\" });\n\treturn {\n\t\tgetPricing,\n\t\tgetSubscription,\n\t\tcancelSubscription\n\t};\n};\n\n//#endregion\nexport { getStripeAPI };\n//# sourceMappingURL=stripe.mjs.map"],"mappings":";;;;AAIA,MAAM,gBAAgB,iBAAiB,EAAE,EAAE,mBAAmB;CAC7D,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,mBAAmB,GAAG,WAAW;;;;;CAKvC,MAAM,aAAa,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,iBAAiB,WAAW,gBAAgB,cAAc;EAChI,QAAQ;EACR;EACA,CAAC;;;;;CAKF,MAAM,kBAAkB,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,iBAAiB,uBAAuB,gBAAgB,cAAc;EACjJ,QAAQ;EACR;EACA,CAAC;;;;;CAKF,MAAM,qBAAqB,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,iBAAiB,uBAAuB,gBAAgB,cAAc,EAAE,QAAQ,QAAQ,CAAC;AAClK,QAAO;EACN;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/tag.mjs
|
|
5
|
+
const getTagAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const PROJECT_API_ROUTE = `${backendURL}/api/tag`;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a list of tags based on filters and pagination.
|
|
11
|
+
* @param filters - Filters and pagination options.
|
|
12
|
+
*/
|
|
13
|
+
const getTags = async (filters, otherOptions = {}) => await fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {
|
|
14
|
+
cache: "no-store",
|
|
15
|
+
params: filters
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Adds a new tag to the database.
|
|
19
|
+
* @param tag - Tag data.
|
|
20
|
+
*/
|
|
21
|
+
const addTag = async (tag, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {
|
|
22
|
+
method: "POST",
|
|
23
|
+
body: tag
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Updates an existing tag in the database.
|
|
27
|
+
* @param tag - Updated tag data.
|
|
28
|
+
*/
|
|
29
|
+
const updateTag = async (tagId, tag, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${tagId}`, authAPIOptions, otherOptions, {
|
|
30
|
+
method: "PUT",
|
|
31
|
+
body: tag
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Deletes a tag from the database by its ID.
|
|
35
|
+
* @param tagId - Tag ID.
|
|
36
|
+
*/
|
|
37
|
+
const deleteTag = async (tagId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${tagId}`, authAPIOptions, otherOptions, { method: "DELETE" });
|
|
38
|
+
return {
|
|
39
|
+
getTags,
|
|
40
|
+
addTag,
|
|
41
|
+
updateTag,
|
|
42
|
+
deleteTag
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { getTagAPI };
|
|
48
|
+
//# sourceMappingURL=tag.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/tag.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/tag.ts\nconst getTagAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst PROJECT_API_ROUTE = `${backendURL}/api/tag`;\n\t/**\n\t* Retrieves a list of tags based on filters and pagination.\n\t* @param filters - Filters and pagination options.\n\t*/\n\tconst getTags = async (filters, otherOptions = {}) => await fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams: filters\n\t});\n\t/**\n\t* Adds a new tag to the database.\n\t* @param tag - Tag data.\n\t*/\n\tconst addTag = async (tag, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: tag\n\t});\n\t/**\n\t* Updates an existing tag in the database.\n\t* @param tag - Updated tag data.\n\t*/\n\tconst updateTag = async (tagId, tag, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${tagId}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: tag\n\t});\n\t/**\n\t* Deletes a tag from the database by its ID.\n\t* @param tagId - Tag ID.\n\t*/\n\tconst deleteTag = async (tagId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${tagId}`, authAPIOptions, otherOptions, { method: \"DELETE\" });\n\treturn {\n\t\tgetTags,\n\t\taddTag,\n\t\tupdateTag,\n\t\tdeleteTag\n\t};\n};\n\n//#endregion\nexport { getTagAPI };\n//# sourceMappingURL=tag.mjs.map"],"mappings":";;;;AAIA,MAAM,aAAa,iBAAiB,EAAE,EAAE,mBAAmB;CAC1D,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,oBAAoB,GAAG,WAAW;;;;;CAKxC,MAAM,UAAU,OAAO,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,mBAAmB,gBAAgB,cAAc;EACpH,OAAO;EACP,QAAQ;EACR,CAAC;;;;;CAKF,MAAM,SAAS,OAAO,KAAK,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,gBAAgB,cAAc;EACpH,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,YAAY,OAAO,OAAO,KAAK,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,GAAG,SAAS,gBAAgB,cAAc;EACvI,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,YAAY,OAAO,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,GAAG,SAAS,gBAAgB,cAAc,EAAE,QAAQ,UAAU,CAAC;AACxJ,QAAO;EACN;EACA;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/user.mjs
|
|
5
|
+
const getUserAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const USER_API_ROUTE = `${backendURL}/api/user`;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a list of users based on filters and pagination.
|
|
11
|
+
* @param filters - Filters and pagination options.
|
|
12
|
+
* @returns List of users.
|
|
13
|
+
*/
|
|
14
|
+
const getUsers = async (filters, otherOptions = {}) => await fetcher(USER_API_ROUTE, authAPIOptions, otherOptions, {
|
|
15
|
+
cache: "no-store",
|
|
16
|
+
params: filters
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a user by ID.
|
|
20
|
+
* @param userId - User ID.
|
|
21
|
+
* @returns User object.
|
|
22
|
+
*/
|
|
23
|
+
const getUserById = async (userId, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/${userId}`, authAPIOptions, otherOptions, { cache: "no-store" });
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves a user by email.
|
|
26
|
+
* @param email - User email.
|
|
27
|
+
* @returns User object.
|
|
28
|
+
*/
|
|
29
|
+
const getUserByEmail = async (email, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/email/${email}`, authAPIOptions, otherOptions, { cache: "no-store" });
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves a user by account.
|
|
32
|
+
* @param providerAccountId - The provider account ID.
|
|
33
|
+
* @param provider - The provider of the account.
|
|
34
|
+
*/
|
|
35
|
+
const getUserByAccount = async (providerAccountId, provider, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/account/${provider}/${providerAccountId}`, authAPIOptions, otherOptions, { cache: "no-store" });
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new user.
|
|
38
|
+
* @param user - User credentials.
|
|
39
|
+
* @returns User object.
|
|
40
|
+
*/
|
|
41
|
+
const createUser = async (user, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/`, authAPIOptions, otherOptions, {
|
|
42
|
+
method: "POST",
|
|
43
|
+
body: user
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Updates the user with the provided data.
|
|
47
|
+
* @param user - Updated user data.
|
|
48
|
+
* @returns User object.
|
|
49
|
+
*/
|
|
50
|
+
const updateUser = async (user, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}`, authAPIOptions, otherOptions, {
|
|
51
|
+
method: "PUT",
|
|
52
|
+
body: user
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* Deletes a user with the provided ID.
|
|
56
|
+
* @param userId - User ID.
|
|
57
|
+
* @returns User object.
|
|
58
|
+
*/
|
|
59
|
+
const deleteUser = async (userId, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/${userId}`, authAPIOptions, otherOptions, { method: "DELETE" });
|
|
60
|
+
/**
|
|
61
|
+
* Gets the verify email status URL to use in the SSE.
|
|
62
|
+
* @param userId - User ID.
|
|
63
|
+
* @returns The verify email status URL.
|
|
64
|
+
*/
|
|
65
|
+
const getVerifyEmailStatusURL = (userId) => `${USER_API_ROUTE}/verify-email-status/${String(userId)}`;
|
|
66
|
+
return {
|
|
67
|
+
createUser,
|
|
68
|
+
getUsers,
|
|
69
|
+
getUserById,
|
|
70
|
+
getUserByAccount,
|
|
71
|
+
getUserByEmail,
|
|
72
|
+
updateUser,
|
|
73
|
+
deleteUser,
|
|
74
|
+
getVerifyEmailStatusURL
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
export { getUserAPI };
|
|
80
|
+
//# sourceMappingURL=user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/user.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/user.ts\nconst getUserAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst USER_API_ROUTE = `${backendURL}/api/user`;\n\t/**\n\t* Retrieves a list of users based on filters and pagination.\n\t* @param filters - Filters and pagination options.\n\t* @returns List of users.\n\t*/\n\tconst getUsers = async (filters, otherOptions = {}) => await fetcher(USER_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams: filters\n\t});\n\t/**\n\t* Retrieves a user by ID.\n\t* @param userId - User ID.\n\t* @returns User object.\n\t*/\n\tconst getUserById = async (userId, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/${userId}`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\t/**\n\t* Retrieves a user by email.\n\t* @param email - User email.\n\t* @returns User object.\n\t*/\n\tconst getUserByEmail = async (email, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/email/${email}`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\t/**\n\t* Retrieves a user by account.\n\t* @param providerAccountId - The provider account ID.\n\t* @param provider - The provider of the account.\n\t*/\n\tconst getUserByAccount = async (providerAccountId, provider, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/account/${provider}/${providerAccountId}`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\t/**\n\t* Creates a new user.\n\t* @param user - User credentials.\n\t* @returns User object.\n\t*/\n\tconst createUser = async (user, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: user\n\t});\n\t/**\n\t* Updates the user with the provided data.\n\t* @param user - Updated user data.\n\t* @returns User object.\n\t*/\n\tconst updateUser = async (user, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: user\n\t});\n\t/**\n\t* Deletes a user with the provided ID.\n\t* @param userId - User ID.\n\t* @returns User object.\n\t*/\n\tconst deleteUser = async (userId, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/${userId}`, authAPIOptions, otherOptions, { method: \"DELETE\" });\n\t/**\n\t* Gets the verify email status URL to use in the SSE.\n\t* @param userId - User ID.\n\t* @returns The verify email status URL.\n\t*/\n\tconst getVerifyEmailStatusURL = (userId) => `${USER_API_ROUTE}/verify-email-status/${String(userId)}`;\n\treturn {\n\t\tcreateUser,\n\t\tgetUsers,\n\t\tgetUserById,\n\t\tgetUserByAccount,\n\t\tgetUserByEmail,\n\t\tupdateUser,\n\t\tdeleteUser,\n\t\tgetVerifyEmailStatusURL\n\t};\n};\n\n//#endregion\nexport { getUserAPI };\n//# sourceMappingURL=user.mjs.map"],"mappings":";;;;AAIA,MAAM,cAAc,iBAAiB,EAAE,EAAE,mBAAmB;CAC3D,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,iBAAiB,GAAG,WAAW;;;;;;CAMrC,MAAM,WAAW,OAAO,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,gBAAgB,gBAAgB,cAAc;EAClH,OAAO;EACP,QAAQ;EACR,CAAC;;;;;;CAMF,MAAM,cAAc,OAAO,QAAQ,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,eAAe,GAAG,UAAU,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;;;;;;CAM1J,MAAM,iBAAiB,OAAO,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,eAAe,SAAS,SAAS,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;;;;;;CAMjK,MAAM,mBAAmB,OAAO,mBAAmB,UAAU,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,eAAe,WAAW,SAAS,GAAG,qBAAqB,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;;;;;;CAMnN,MAAM,aAAa,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,eAAe,IAAI,gBAAgB,cAAc;EACvH,QAAQ;EACR,MAAM;EACN,CAAC;;;;;;CAMF,MAAM,aAAa,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,gBAAgB,cAAc;EACtH,QAAQ;EACR,MAAM;EACN,CAAC;;;;;;CAMF,MAAM,aAAa,OAAO,QAAQ,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,eAAe,GAAG,UAAU,gBAAgB,cAAc,EAAE,QAAQ,UAAU,CAAC;;;;;;CAMxJ,MAAM,2BAA2B,WAAW,GAAG,eAAe,uBAAuB,OAAO,OAAO;AACnG,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { getOAuthAPI } from "./getIntlayerAPI/oAuth.mjs";
|
|
2
|
+
import { getIntlayerAPI } from "./getIntlayerAPI/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/proxy.mjs
|
|
5
|
+
const ONE_MINUTE_MS = 6e4;
|
|
6
|
+
/**
|
|
7
|
+
* Returns the expiration timestamp in ms from an OAuth token-like object.
|
|
8
|
+
*/
|
|
9
|
+
const getExpiryTimestamp = (token) => {
|
|
10
|
+
if (!token) return void 0;
|
|
11
|
+
const dateLike = token.accessTokenExpiresAt ?? token.expiresAt;
|
|
12
|
+
if (dateLike) {
|
|
13
|
+
const ts = typeof dateLike === "string" ? Date.parse(dateLike) : dateLike.getTime?.();
|
|
14
|
+
if (typeof ts === "number" && Number.isFinite(ts)) return ts;
|
|
15
|
+
}
|
|
16
|
+
const seconds = token.expires_in ?? token.expiresIn;
|
|
17
|
+
if (typeof seconds === "number" && Number.isFinite(seconds)) return Date.now() + seconds * 1e3;
|
|
18
|
+
};
|
|
19
|
+
let currentAccessToken;
|
|
20
|
+
let currentExpiryTs;
|
|
21
|
+
let pendingRefresh;
|
|
22
|
+
/**
|
|
23
|
+
* Build an auto-auth proxy around getIntlayerAPI that:
|
|
24
|
+
* - Fetches an OAuth2 token when needed
|
|
25
|
+
* - Injects Authorization header for each request
|
|
26
|
+
* - Refreshes token proactively when near expiry
|
|
27
|
+
*
|
|
28
|
+
* The returned API matches the shape of getIntlayerAPI.
|
|
29
|
+
*/
|
|
30
|
+
const getIntlayerAPIProxy = (_baseAuthOptions = {}, intlayerConfig) => {
|
|
31
|
+
const authOptionsRef = { ..._baseAuthOptions };
|
|
32
|
+
const hasCMSAuth = intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;
|
|
33
|
+
const baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);
|
|
34
|
+
const needsRefresh = () => {
|
|
35
|
+
if (!currentAccessToken) return true;
|
|
36
|
+
if (!currentExpiryTs) return false;
|
|
37
|
+
return Date.now() + ONE_MINUTE_MS >= currentExpiryTs;
|
|
38
|
+
};
|
|
39
|
+
const refreshToken = async () => {
|
|
40
|
+
const doRefresh = async () => {
|
|
41
|
+
const tokenData = (await getOAuthAPI(intlayerConfig).getOAuth2AccessToken())?.data;
|
|
42
|
+
currentAccessToken = tokenData?.accessToken;
|
|
43
|
+
currentExpiryTs = getExpiryTimestamp(tokenData);
|
|
44
|
+
};
|
|
45
|
+
if (!pendingRefresh) pendingRefresh = doRefresh().finally(() => {
|
|
46
|
+
pendingRefresh = void 0;
|
|
47
|
+
});
|
|
48
|
+
await pendingRefresh;
|
|
49
|
+
};
|
|
50
|
+
const ensureValidToken = async () => {
|
|
51
|
+
if (needsRefresh()) await refreshToken();
|
|
52
|
+
};
|
|
53
|
+
const applyAuthHeaderToRef = () => {
|
|
54
|
+
if (!currentAccessToken) return;
|
|
55
|
+
authOptionsRef.headers = {
|
|
56
|
+
...authOptionsRef.headers ?? {},
|
|
57
|
+
Authorization: `Bearer ${currentAccessToken}`
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
const wrapSection = (section, skipAuth = !hasCMSAuth) => {
|
|
61
|
+
return new Proxy(section, { get(target, prop, receiver) {
|
|
62
|
+
const value = Reflect.get(target, prop, receiver);
|
|
63
|
+
if (typeof value === "function") return async (...args) => {
|
|
64
|
+
if (!skipAuth) {
|
|
65
|
+
await ensureValidToken();
|
|
66
|
+
applyAuthHeaderToRef();
|
|
67
|
+
}
|
|
68
|
+
try {
|
|
69
|
+
return await value.apply(target, args);
|
|
70
|
+
} catch (err) {
|
|
71
|
+
if (!skipAuth) {
|
|
72
|
+
await refreshToken();
|
|
73
|
+
applyAuthHeaderToRef();
|
|
74
|
+
return await value.apply(target, args);
|
|
75
|
+
}
|
|
76
|
+
throw err;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
return value;
|
|
80
|
+
} });
|
|
81
|
+
};
|
|
82
|
+
return {
|
|
83
|
+
organization: wrapSection(baseApi.organization),
|
|
84
|
+
project: wrapSection(baseApi.project),
|
|
85
|
+
user: wrapSection(baseApi.user),
|
|
86
|
+
oAuth: wrapSection(baseApi.oAuth, true),
|
|
87
|
+
dictionary: wrapSection(baseApi.dictionary),
|
|
88
|
+
stripe: wrapSection(baseApi.stripe),
|
|
89
|
+
ai: wrapSection(baseApi.ai),
|
|
90
|
+
tag: wrapSection(baseApi.tag),
|
|
91
|
+
search: wrapSection(baseApi.search),
|
|
92
|
+
editor: wrapSection(baseApi.editor),
|
|
93
|
+
newsletter: wrapSection(baseApi.newsletter),
|
|
94
|
+
audit: wrapSection(baseApi.audit)
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
export { getIntlayerAPIProxy };
|
|
100
|
+
//# sourceMappingURL=proxy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.mjs","names":[],"sources":["../../../../../../api/dist/esm/proxy.mjs"],"sourcesContent":["import { getOAuthAPI } from \"./getIntlayerAPI/oAuth.mjs\";\nimport { getIntlayerAPI } from \"./getIntlayerAPI/index.mjs\";\n\n//#region src/proxy.ts\nconst ONE_MINUTE_MS = 6e4;\n/**\n* Returns the expiration timestamp in ms from an OAuth token-like object.\n*/\nconst getExpiryTimestamp = (token) => {\n\tif (!token) return void 0;\n\tconst dateLike = token.accessTokenExpiresAt ?? token.expiresAt;\n\tif (dateLike) {\n\t\tconst ts = typeof dateLike === \"string\" ? Date.parse(dateLike) : dateLike.getTime?.();\n\t\tif (typeof ts === \"number\" && Number.isFinite(ts)) return ts;\n\t}\n\tconst seconds = token.expires_in ?? token.expiresIn;\n\tif (typeof seconds === \"number\" && Number.isFinite(seconds)) return Date.now() + seconds * 1e3;\n};\nlet currentAccessToken;\nlet currentExpiryTs;\nlet pendingRefresh;\n/**\n* Build an auto-auth proxy around getIntlayerAPI that:\n* - Fetches an OAuth2 token when needed\n* - Injects Authorization header for each request\n* - Refreshes token proactively when near expiry\n*\n* The returned API matches the shape of getIntlayerAPI.\n*/\nconst getIntlayerAPIProxy = (_baseAuthOptions = {}, intlayerConfig) => {\n\tconst authOptionsRef = { ..._baseAuthOptions };\n\tconst hasCMSAuth = intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;\n\tconst baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);\n\tconst needsRefresh = () => {\n\t\tif (!currentAccessToken) return true;\n\t\tif (!currentExpiryTs) return false;\n\t\treturn Date.now() + ONE_MINUTE_MS >= currentExpiryTs;\n\t};\n\tconst refreshToken = async () => {\n\t\tconst doRefresh = async () => {\n\t\t\tconst tokenData = (await getOAuthAPI(intlayerConfig).getOAuth2AccessToken())?.data;\n\t\t\tcurrentAccessToken = tokenData?.accessToken;\n\t\t\tcurrentExpiryTs = getExpiryTimestamp(tokenData);\n\t\t};\n\t\tif (!pendingRefresh) pendingRefresh = doRefresh().finally(() => {\n\t\t\tpendingRefresh = void 0;\n\t\t});\n\t\tawait pendingRefresh;\n\t};\n\tconst ensureValidToken = async () => {\n\t\tif (needsRefresh()) await refreshToken();\n\t};\n\tconst applyAuthHeaderToRef = () => {\n\t\tif (!currentAccessToken) return;\n\t\tauthOptionsRef.headers = {\n\t\t\t...authOptionsRef.headers ?? {},\n\t\t\tAuthorization: `Bearer ${currentAccessToken}`\n\t\t};\n\t};\n\tconst wrapSection = (section, skipAuth = !hasCMSAuth) => {\n\t\treturn new Proxy(section, { get(target, prop, receiver) {\n\t\t\tconst value = Reflect.get(target, prop, receiver);\n\t\t\tif (typeof value === \"function\") return async (...args) => {\n\t\t\t\tif (!skipAuth) {\n\t\t\t\t\tawait ensureValidToken();\n\t\t\t\t\tapplyAuthHeaderToRef();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\treturn await value.apply(target, args);\n\t\t\t\t} catch (err) {\n\t\t\t\t\tif (!skipAuth) {\n\t\t\t\t\t\tawait refreshToken();\n\t\t\t\t\t\tapplyAuthHeaderToRef();\n\t\t\t\t\t\treturn await value.apply(target, args);\n\t\t\t\t\t}\n\t\t\t\t\tthrow err;\n\t\t\t\t}\n\t\t\t};\n\t\t\treturn value;\n\t\t} });\n\t};\n\treturn {\n\t\torganization: wrapSection(baseApi.organization),\n\t\tproject: wrapSection(baseApi.project),\n\t\tuser: wrapSection(baseApi.user),\n\t\toAuth: wrapSection(baseApi.oAuth, true),\n\t\tdictionary: wrapSection(baseApi.dictionary),\n\t\tstripe: wrapSection(baseApi.stripe),\n\t\tai: wrapSection(baseApi.ai),\n\t\ttag: wrapSection(baseApi.tag),\n\t\tsearch: wrapSection(baseApi.search),\n\t\teditor: wrapSection(baseApi.editor),\n\t\tnewsletter: wrapSection(baseApi.newsletter),\n\t\taudit: wrapSection(baseApi.audit)\n\t};\n};\n\n//#endregion\nexport { getIntlayerAPIProxy };\n//# sourceMappingURL=proxy.mjs.map"],"mappings":";;;;AAIA,MAAM,gBAAgB;;;;AAItB,MAAM,sBAAsB,UAAU;AACrC,KAAI,CAAC,MAAO,QAAO,KAAK;CACxB,MAAM,WAAW,MAAM,wBAAwB,MAAM;AACrD,KAAI,UAAU;EACb,MAAM,KAAK,OAAO,aAAa,WAAW,KAAK,MAAM,SAAS,GAAG,SAAS,WAAW;AACrF,MAAI,OAAO,OAAO,YAAY,OAAO,SAAS,GAAG,CAAE,QAAO;;CAE3D,MAAM,UAAU,MAAM,cAAc,MAAM;AAC1C,KAAI,OAAO,YAAY,YAAY,OAAO,SAAS,QAAQ,CAAE,QAAO,KAAK,KAAK,GAAG,UAAU;;AAE5F,IAAI;AACJ,IAAI;AACJ,IAAI;;;;;;;;;AASJ,MAAM,uBAAuB,mBAAmB,EAAE,EAAE,mBAAmB;CACtE,MAAM,iBAAiB,EAAE,GAAG,kBAAkB;CAC9C,MAAM,aAAa,gBAAgB,QAAQ,YAAY,gBAAgB,QAAQ;CAC/E,MAAM,UAAU,eAAe,gBAAgB,eAAe;CAC9D,MAAM,qBAAqB;AAC1B,MAAI,CAAC,mBAAoB,QAAO;AAChC,MAAI,CAAC,gBAAiB,QAAO;AAC7B,SAAO,KAAK,KAAK,GAAG,iBAAiB;;CAEtC,MAAM,eAAe,YAAY;EAChC,MAAM,YAAY,YAAY;GAC7B,MAAM,aAAa,MAAM,YAAY,eAAe,CAAC,sBAAsB,GAAG;AAC9E,wBAAqB,WAAW;AAChC,qBAAkB,mBAAmB,UAAU;;AAEhD,MAAI,CAAC,eAAgB,kBAAiB,WAAW,CAAC,cAAc;AAC/D,oBAAiB,KAAK;IACrB;AACF,QAAM;;CAEP,MAAM,mBAAmB,YAAY;AACpC,MAAI,cAAc,CAAE,OAAM,cAAc;;CAEzC,MAAM,6BAA6B;AAClC,MAAI,CAAC,mBAAoB;AACzB,iBAAe,UAAU;GACxB,GAAG,eAAe,WAAW,EAAE;GAC/B,eAAe,UAAU;GACzB;;CAEF,MAAM,eAAe,SAAS,WAAW,CAAC,eAAe;AACxD,SAAO,IAAI,MAAM,SAAS,EAAE,IAAI,QAAQ,MAAM,UAAU;GACvD,MAAM,QAAQ,QAAQ,IAAI,QAAQ,MAAM,SAAS;AACjD,OAAI,OAAO,UAAU,WAAY,QAAO,OAAO,GAAG,SAAS;AAC1D,QAAI,CAAC,UAAU;AACd,WAAM,kBAAkB;AACxB,2BAAsB;;AAEvB,QAAI;AACH,YAAO,MAAM,MAAM,MAAM,QAAQ,KAAK;aAC9B,KAAK;AACb,SAAI,CAAC,UAAU;AACd,YAAM,cAAc;AACpB,4BAAsB;AACtB,aAAO,MAAM,MAAM,MAAM,QAAQ,KAAK;;AAEvC,WAAM;;;AAGR,UAAO;KACL,CAAC;;AAEL,QAAO;EACN,cAAc,YAAY,QAAQ,aAAa;EAC/C,SAAS,YAAY,QAAQ,QAAQ;EACrC,MAAM,YAAY,QAAQ,KAAK;EAC/B,OAAO,YAAY,QAAQ,OAAO,KAAK;EACvC,YAAY,YAAY,QAAQ,WAAW;EAC3C,QAAQ,YAAY,QAAQ,OAAO;EACnC,IAAI,YAAY,QAAQ,GAAG;EAC3B,KAAK,YAAY,QAAQ,IAAI;EAC7B,QAAQ,YAAY,QAAQ,OAAO;EACnC,QAAQ,YAAY,QAAQ,OAAO;EACnC,YAAY,YAAY,QAAQ,WAAW;EAC3C,OAAO,YAAY,QAAQ,MAAM;EACjC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { parallelize } from "../utils/parallelize.mjs";
|
|
2
2
|
import { filterInvalidDictionaries } from "../filterInvalidDictionaries.mjs";
|
|
3
3
|
import { writeJsonIfChanged } from "../writeJsonIfChanged.mjs";
|
|
4
|
+
import { groupDictionariesByKey } from "./writeUnmergedDictionary.mjs";
|
|
4
5
|
import { formatDistantDictionaries } from "../loadDictionaries/loadRemoteDictionaries.mjs";
|
|
5
|
-
import { colorizePath, getConfiguration } from "@intlayer/config";
|
|
6
|
+
import { colorizePath, getConfiguration, x } from "@intlayer/config";
|
|
6
7
|
import { resolve } from "node:path";
|
|
8
|
+
import { orderDictionaries } from "@intlayer/core";
|
|
7
9
|
import { mkdir } from "node:fs/promises";
|
|
8
10
|
|
|
9
11
|
//#region src/buildIntlayerDictionary/writeRemoteDictionary.ts
|
|
@@ -26,13 +28,20 @@ import { mkdir } from "node:fs/promises";
|
|
|
26
28
|
const writeRemoteDictionary = async (remoteDictionaries, configuration = getConfiguration()) => {
|
|
27
29
|
const { remoteDictionariesDir } = configuration.content;
|
|
28
30
|
await mkdir(resolve(remoteDictionariesDir), { recursive: true });
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const groupedDictionaries = groupDictionariesByKey(filterInvalidDictionaries(remoteDictionaries, configuration));
|
|
32
|
+
const results = await parallelize(Object.entries(groupedDictionaries), async ([key, dictionaries]) => {
|
|
33
|
+
if (key === "undefined") return;
|
|
34
|
+
const orderedDictionaries = orderDictionaries(formatDistantDictionaries(dictionaries), configuration);
|
|
35
|
+
const unmergedFilePath = resolve(remoteDictionariesDir, `${key}.json`);
|
|
36
|
+
await writeJsonIfChanged(unmergedFilePath, orderedDictionaries).catch((err) => {
|
|
37
|
+
console.error(`${x} Error creating unmerged ${colorizePath(unmergedFilePath)}:`, err);
|
|
33
38
|
});
|
|
39
|
+
return [key, {
|
|
40
|
+
dictionaryPath: unmergedFilePath,
|
|
41
|
+
dictionaries
|
|
42
|
+
}];
|
|
34
43
|
});
|
|
35
|
-
return
|
|
44
|
+
return Object.fromEntries(results.filter(Boolean));
|
|
36
45
|
};
|
|
37
46
|
|
|
38
47
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeRemoteDictionary.mjs","names":[],"sources":["../../../src/buildIntlayerDictionary/writeRemoteDictionary.ts"],"sourcesContent":["import { mkdir } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nimport { colorizePath, getConfiguration } from '@intlayer/config';\nimport type { Dictionary } from '@intlayer/types';\nimport { filterInvalidDictionaries } from '../filterInvalidDictionaries';\nimport { formatDistantDictionaries } from '../loadDictionaries';\nimport { parallelize } from '../utils/parallelize';\nimport { writeJsonIfChanged } from '../writeJsonIfChanged';\n\n/**\n * Write the localized dictionaries to the dictionariesDir\n * @param mergedDictionaries - The merged dictionaries\n * @param configuration - The configuration\n * @returns The final dictionaries\n *\n * @example\n * ```ts\n * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries);\n * const finalDictionaries = await writeFinalDictionaries(unmergedDictionaries);\n * console.log(finalDictionaries);\n *\n * // .intlayer/fetch_dictionaries/home.json\n * // { key: 'home', content: { ... } },\n * ```\n */\nexport const writeRemoteDictionary = async (\n remoteDictionaries: Dictionary[],\n configuration = getConfiguration()\n): Promise<
|
|
1
|
+
{"version":3,"file":"writeRemoteDictionary.mjs","names":[],"sources":["../../../src/buildIntlayerDictionary/writeRemoteDictionary.ts"],"sourcesContent":["import { mkdir } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nimport { colorizePath, getConfiguration, x } from '@intlayer/config';\nimport { orderDictionaries } from '@intlayer/core';\nimport type { Dictionary } from '@intlayer/types';\nimport { filterInvalidDictionaries } from '../filterInvalidDictionaries';\nimport { formatDistantDictionaries } from '../loadDictionaries';\nimport { parallelize } from '../utils/parallelize';\nimport { writeJsonIfChanged } from '../writeJsonIfChanged';\nimport {\n groupDictionariesByKey,\n type UnmergedDictionaryResult,\n} from './writeUnmergedDictionary';\n\nexport type RemoteDictionaryResult = {\n dictionaryPath: string;\n dictionaries: Dictionary[];\n};\n\nexport type RemoteDictionaryOutput = Record<string, RemoteDictionaryResult>;\n\n/**\n * Write the localized dictionaries to the dictionariesDir\n * @param mergedDictionaries - The merged dictionaries\n * @param configuration - The configuration\n * @returns The final dictionaries\n *\n * @example\n * ```ts\n * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries);\n * const finalDictionaries = await writeFinalDictionaries(unmergedDictionaries);\n * console.log(finalDictionaries);\n *\n * // .intlayer/fetch_dictionaries/home.json\n * // { key: 'home', content: { ... } },\n * ```\n */\nexport const writeRemoteDictionary = async (\n remoteDictionaries: Dictionary[],\n configuration = getConfiguration()\n): Promise<RemoteDictionaryOutput> => {\n const { remoteDictionariesDir } = configuration.content;\n\n // Create the dictionaries folder if it doesn't exist\n await mkdir(resolve(remoteDictionariesDir), { recursive: true });\n\n const filteredDictionaries = filterInvalidDictionaries(\n remoteDictionaries,\n configuration\n );\n\n // Group dictionaries by key and write to unmergedDictionariesDir\n const groupedDictionaries = groupDictionariesByKey(filteredDictionaries);\n\n // Merge dictionaries with the same key and write to dictionariesDir\n const results = await parallelize(\n Object.entries(groupedDictionaries),\n async ([key, dictionaries]) => {\n if (key === 'undefined') {\n return undefined as unknown as readonly [\n string,\n UnmergedDictionaryResult,\n ];\n }\n\n const formattedDictionaries = formatDistantDictionaries(dictionaries);\n\n const orderedDictionaries = orderDictionaries(\n formattedDictionaries,\n configuration\n );\n\n const outputFileName = `${key}.json`;\n const unmergedFilePath = resolve(remoteDictionariesDir, outputFileName);\n\n // Write the grouped dictionaries\n await writeJsonIfChanged(unmergedFilePath, orderedDictionaries).catch(\n (err) => {\n console.error(\n `${x} Error creating unmerged ${colorizePath(unmergedFilePath)}:`,\n err\n );\n }\n );\n\n return [\n key,\n {\n dictionaryPath: unmergedFilePath,\n dictionaries,\n } as UnmergedDictionaryResult,\n ] as const;\n }\n );\n\n return Object.fromEntries(\n results.filter(Boolean) as Array<\n readonly [string, UnmergedDictionaryResult]\n >\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAa,wBAAwB,OACnC,oBACA,gBAAgB,kBAAkB,KACE;CACpC,MAAM,EAAE,0BAA0B,cAAc;AAGhD,OAAM,MAAM,QAAQ,sBAAsB,EAAE,EAAE,WAAW,MAAM,CAAC;CAQhE,MAAM,sBAAsB,uBANC,0BAC3B,oBACA,cACD,CAGuE;CAGxE,MAAM,UAAU,MAAM,YACpB,OAAO,QAAQ,oBAAoB,EACnC,OAAO,CAAC,KAAK,kBAAkB;AAC7B,MAAI,QAAQ,YACV;EAQF,MAAM,sBAAsB,kBAFE,0BAA0B,aAAa,EAInE,cACD;EAGD,MAAM,mBAAmB,QAAQ,uBADV,GAAG,IAAI,OACyC;AAGvE,QAAM,mBAAmB,kBAAkB,oBAAoB,CAAC,OAC7D,QAAQ;AACP,WAAQ,MACN,GAAG,EAAE,2BAA2B,aAAa,iBAAiB,CAAC,IAC/D,IACD;IAEJ;AAED,SAAO,CACL,KACA;GACE,gBAAgB;GAChB;GACD,CACF;GAEJ;AAED,QAAO,OAAO,YACZ,QAAQ,OAAO,QAAQ,CAGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeUnmergedDictionary.mjs","names":["dictionaries"],"sources":["../../../src/buildIntlayerDictionary/writeUnmergedDictionary.ts"],"sourcesContent":["import { mkdir } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nimport { colorizePath, x } from '@intlayer/config';\nimport { orderDictionaries } from '@intlayer/core';\nimport type { Dictionary, IntlayerConfig } from '@intlayer/types';\nimport { filterInvalidDictionaries } from '../filterInvalidDictionaries';\nimport { parallelize } from '../utils/parallelize';\nimport { writeJsonIfChanged } from '../writeJsonIfChanged';\n\
|
|
1
|
+
{"version":3,"file":"writeUnmergedDictionary.mjs","names":["dictionaries"],"sources":["../../../src/buildIntlayerDictionary/writeUnmergedDictionary.ts"],"sourcesContent":["import { mkdir } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nimport { colorizePath, x } from '@intlayer/config';\nimport { orderDictionaries } from '@intlayer/core';\nimport type { Dictionary, IntlayerConfig } from '@intlayer/types';\nimport { filterInvalidDictionaries } from '../filterInvalidDictionaries';\nimport { parallelize } from '../utils/parallelize';\nimport { writeJsonIfChanged } from '../writeJsonIfChanged';\n\nexport const groupDictionariesByKey = (\n dictionaries: Dictionary[]\n): Record<string, Dictionary[]> =>\n dictionaries.reduce(\n (acc, dictionary) => {\n const key = dictionary.key;\n if (!acc[key]) {\n acc[key] = [];\n }\n acc[key].push(dictionary);\n return acc;\n },\n {} as Record<string, Dictionary[]>\n );\n\nexport type UnmergedDictionaryResult = {\n dictionaryPath: string;\n dictionaries: Dictionary[];\n};\n\nexport type UnmergedDictionaryOutput = Record<string, UnmergedDictionaryResult>;\n\n/**\n * Write the unmerged dictionaries to the unmergedDictionariesDir\n * @param dictionaries - The dictionaries to write\n * @param configuration - The configuration\n * @returns The grouped dictionaries\n *\n * @example\n * ```ts\n * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries);\n * console.log(unmergedDictionaries);\n *\n * // .intlayer/unmerged_dictionaries/home.json\n * // {\n * // [\n * // { key: 'home', content: { ... } },\n * // { key: 'home', content: { ... } },\n * // ],\n * // }\n * ```\n */\nexport const writeUnmergedDictionaries = async (\n dictionaries: Dictionary[],\n configuration: IntlayerConfig\n): Promise<UnmergedDictionaryOutput> => {\n const { unmergedDictionariesDir } = configuration.content;\n\n // Create the dictionaries folder if it doesn't exist\n await mkdir(resolve(unmergedDictionariesDir), { recursive: true });\n\n const filteredDictionaries = filterInvalidDictionaries(\n dictionaries,\n configuration\n );\n\n // Group dictionaries by key and write to unmergedDictionariesDir\n const groupedDictionaries = groupDictionariesByKey(filteredDictionaries);\n\n const results = await parallelize(\n Object.entries(groupedDictionaries),\n async ([key, dictionaries]) => {\n if (key === 'undefined') {\n return undefined as unknown as readonly [\n string,\n UnmergedDictionaryResult,\n ];\n }\n\n const orderedDictionaries = orderDictionaries(\n dictionaries,\n configuration\n );\n\n const outputFileName = `${key}.json`;\n const unmergedFilePath = resolve(unmergedDictionariesDir, outputFileName);\n\n // Write the grouped dictionaries\n await writeJsonIfChanged(unmergedFilePath, orderedDictionaries).catch(\n (err) => {\n console.error(\n `${x} Error creating unmerged ${colorizePath(unmergedFilePath)}:`,\n err\n );\n }\n );\n\n return [\n key,\n {\n dictionaryPath: unmergedFilePath,\n dictionaries: dictionaries,\n } as UnmergedDictionaryResult,\n ] as const;\n }\n );\n\n return Object.fromEntries(\n results.filter(Boolean) as Array<\n readonly [string, UnmergedDictionaryResult]\n >\n );\n};\n"],"mappings":";;;;;;;;;AASA,MAAa,0BACX,iBAEA,aAAa,QACV,KAAK,eAAe;CACnB,MAAM,MAAM,WAAW;AACvB,KAAI,CAAC,IAAI,KACP,KAAI,OAAO,EAAE;AAEf,KAAI,KAAK,KAAK,WAAW;AACzB,QAAO;GAET,EAAE,CACH;;;;;;;;;;;;;;;;;;;;;AA6BH,MAAa,4BAA4B,OACvC,cACA,kBACsC;CACtC,MAAM,EAAE,4BAA4B,cAAc;AAGlD,OAAM,MAAM,QAAQ,wBAAwB,EAAE,EAAE,WAAW,MAAM,CAAC;CAQlE,MAAM,sBAAsB,uBANC,0BAC3B,cACA,cACD,CAGuE;CAExE,MAAM,UAAU,MAAM,YACpB,OAAO,QAAQ,oBAAoB,EACnC,OAAO,CAAC,KAAKA,oBAAkB;AAC7B,MAAI,QAAQ,YACV;EAMF,MAAM,sBAAsB,kBAC1BA,gBACA,cACD;EAGD,MAAM,mBAAmB,QAAQ,yBADV,GAAG,IAAI,OAC2C;AAGzE,QAAM,mBAAmB,kBAAkB,oBAAoB,CAAC,OAC7D,QAAQ;AACP,WAAQ,MACN,GAAG,EAAE,2BAA2B,aAAa,iBAAiB,CAAC,IAC/D,IACD;IAEJ;AAED,SAAO,CACL,KACA;GACE,gBAAgB;GAChB,cAAcA;GACf,CACF;GAEJ;AAED,QAAO,OAAO,YACZ,QAAQ,OAAO,QAAQ,CAGxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __require as __require$1 } from "../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../config/dist/esm/_virtual/rolldown_runtime.mjs
|
|
4
|
+
var __require = /* @__PURE__ */ ((x) => typeof __require$1 !== "undefined" ? __require$1 : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof __require$1 !== "undefined" ? __require$1 : a)[b] }) : x)(function(x) {
|
|
5
|
+
if (typeof __require$1 !== "undefined") return __require$1.apply(this, arguments);
|
|
6
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { __require };
|
|
11
|
+
//# sourceMappingURL=rolldown_runtime.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolldown_runtime.mjs","names":[],"sources":["../../../../../../../config/dist/esm/_virtual/rolldown_runtime.mjs"],"sourcesContent":["//#region rolldown:runtime\nvar __defProp = Object.defineProperty;\nvar __export = (all) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\treturn target;\n};\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, { get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b] }) : x)(function(x) {\n\tif (typeof require !== \"undefined\") return require.apply(this, arguments);\n\tthrow Error(\"Calling `require` for \\\"\" + x + \"\\\" in an environment that doesn't expose the `require` function.\");\n});\n\n//#endregion\nexport { __export, __require };"],"mappings":";;;AAUA,IAAI,YAA4B,kBAAE,MAAM,uBAAmB,4BAAwB,OAAO,UAAU,cAAc,IAAI,MAAM,GAAG,EAAE,MAAM,GAAG,OAAO,uBAAmB,4BAAwB,GAAG,IAAI,CAAC,GAAG,GAAG,SAAS,GAAG;AACrN,KAAI,uBAAmB,YAAa,oBAAe,MAAM,MAAM,UAAU;AACzE,OAAM,MAAM,6BAA6B,IAAI,mEAAmE;EAC/G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built.mjs","names":[],"sources":["../../../../../../config/dist/esm/built.mjs"],"sourcesContent":["import { getConfiguration } from \"./configFile/getConfiguration.mjs\";\n\n//#region src/built.ts\nconst configuration = getConfiguration();\nvar built_default = configuration;\n\n//#endregion\nexport { built_default as default };\n//# sourceMappingURL=built.mjs.map"],"mappings":";;;AAIA,IAAI,gBADkB,kBAAkB"}
|