@strapi/plugin-cloud 5.29.0 → 5.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/components/CloudFree.js.map +1 -1
- package/dist/admin/components/CloudFree.mjs.map +1 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/utils/getTrad.js.map +1 -1
- package/dist/admin/utils/getTrad.mjs.map +1 -1
- package/dist/admin/utils/prefixPluginTranslations.js.map +1 -1
- package/dist/admin/utils/prefixPluginTranslations.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudFree.js","sources":["../../../admin/src/components/CloudFree.tsx"],"sourcesContent":["import { Box, Flex, Typography } from '@strapi/design-system';\nimport { Check } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\n\nimport { getTrad } from '../utils/getTrad';\n\nconst CloudFree = () => {\n const { formatMessage } = useIntl();\n\n const features = [\n { id: 'api', message: '10K API requests' },\n { id: 'storage', message: '10 GB storage' },\n { id: 'bandwidth', message: '10 GB asset bandwidth' },\n { id: 'cdn', message: 'Global CDN' },\n { id: 'pushToDeploy', message: 'Push to deploy' },\n ];\n\n return (\n <Box>\n <Box paddingBottom={10}>\n <Flex direction=\"column\">\n <Flex direction=\"row\" wrap=\"wrap\">\n {features.map(({ id, message }) => (\n <Flex key={id} paddingRight={5}>\n <Check fill=\"primary500\" />\n <Typography variant=\"omega\" paddingLeft={1}>\n {formatMessage({\n id: getTrad(`Homepage.freePlan.${id}`),\n defaultMessage: message,\n })}\n </Typography>\n </Flex>\n ))}\n </Flex>\n </Flex>\n </Box>\n </Box>\n );\n};\n\nexport { CloudFree };\n"],"names":["CloudFree","formatMessage","useIntl","features","id","message","_jsx","Box","paddingBottom","Flex","direction","wrap","map","_jsxs","paddingRight","Check","fill","Typography","variant","paddingLeft","getTrad","defaultMessage"],"mappings":";;;;;;;;AAMA,M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Box, Flex, Typography } from '@strapi/design-system';\nimport { Check } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\n\nimport { getTrad } from '../utils/getTrad';\n\nconst CloudFree = () => {\n const { formatMessage } = useIntl();\n\n const features = [\n { id: 'api', message: '10K API requests' },\n { id: 'storage', message: '10 GB storage' },\n { id: 'bandwidth', message: '10 GB asset bandwidth' },\n { id: 'cdn', message: 'Global CDN' },\n { id: 'pushToDeploy', message: 'Push to deploy' },\n ];\n\n return (\n <Box>\n <Box paddingBottom={10}>\n <Flex direction=\"column\">\n <Flex direction=\"row\" wrap=\"wrap\">\n {features.map(({ id, message }) => (\n <Flex key={id} paddingRight={5}>\n <Check fill=\"primary500\" />\n <Typography variant=\"omega\" paddingLeft={1}>\n {formatMessage({\n id: getTrad(`Homepage.freePlan.${id}`),\n defaultMessage: message,\n })}\n </Typography>\n </Flex>\n ))}\n </Flex>\n </Flex>\n </Box>\n </Box>\n );\n};\n\nexport { CloudFree };\n"],"names":["CloudFree","formatMessage","useIntl","features","id","message","_jsx","Box","paddingBottom","Flex","direction","wrap","map","_jsxs","paddingRight","Check","fill","Typography","variant","paddingLeft","getTrad","defaultMessage"],"mappings":";;;;;;;;AAMA,MAAMA,SAAY,GAAA,IAAA;IAChB,MAAM,EAAEC,aAAa,EAAE,GAAGC,iBAAAA,EAAAA;AAE1B,IAAA,MAAMC,QAAW,GAAA;AACf,QAAA;YAAEC,EAAI,EAAA,KAAA;YAAOC,OAAS,EAAA;AAAmB,SAAA;AACzC,QAAA;YAAED,EAAI,EAAA,SAAA;YAAWC,OAAS,EAAA;AAAgB,SAAA;AAC1C,QAAA;YAAED,EAAI,EAAA,WAAA;YAAaC,OAAS,EAAA;AAAwB,SAAA;AACpD,QAAA;YAAED,EAAI,EAAA,KAAA;YAAOC,OAAS,EAAA;AAAa,SAAA;AACnC,QAAA;YAAED,EAAI,EAAA,cAAA;YAAgBC,OAAS,EAAA;AAAiB;AACjD,KAAA;AAED,IAAA,qBACEC,cAACC,CAAAA,gBAAAA,EAAAA;AACC,QAAA,QAAA,gBAAAD,cAACC,CAAAA,gBAAAA,EAAAA;YAAIC,aAAe,EAAA,EAAA;AAClB,YAAA,QAAA,gBAAAF,cAACG,CAAAA,iBAAAA,EAAAA;gBAAKC,SAAU,EAAA,QAAA;AACd,gBAAA,QAAA,gBAAAJ,cAACG,CAAAA,iBAAAA,EAAAA;oBAAKC,SAAU,EAAA,KAAA;oBAAMC,IAAK,EAAA,MAAA;8BACxBR,QAASS,CAAAA,GAAG,CAAC,CAAC,EAAER,EAAE,EAAEC,OAAO,EAAE,iBAC5BQ,eAACJ,CAAAA,iBAAAA,EAAAA;4BAAcK,YAAc,EAAA,CAAA;;8CAC3BR,cAACS,CAAAA,WAAAA,EAAAA;oCAAMC,IAAK,EAAA;;8CACZV,cAACW,CAAAA,uBAAAA,EAAAA;oCAAWC,OAAQ,EAAA,OAAA;oCAAQC,WAAa,EAAA,CAAA;8CACtClB,aAAc,CAAA;AACbG,wCAAAA,EAAAA,EAAIgB,eAAQ,CAAA,CAAC,kBAAkB,EAAEhB,EAAI,CAAA,CAAA,CAAA;wCACrCiB,cAAgBhB,EAAAA;AAClB,qCAAA;;;AANOD,yBAAAA,EAAAA,EAAAA,CAAAA;;;;;AAezB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudFree.mjs","sources":["../../../admin/src/components/CloudFree.tsx"],"sourcesContent":["import { Box, Flex, Typography } from '@strapi/design-system';\nimport { Check } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\n\nimport { getTrad } from '../utils/getTrad';\n\nconst CloudFree = () => {\n const { formatMessage } = useIntl();\n\n const features = [\n { id: 'api', message: '10K API requests' },\n { id: 'storage', message: '10 GB storage' },\n { id: 'bandwidth', message: '10 GB asset bandwidth' },\n { id: 'cdn', message: 'Global CDN' },\n { id: 'pushToDeploy', message: 'Push to deploy' },\n ];\n\n return (\n <Box>\n <Box paddingBottom={10}>\n <Flex direction=\"column\">\n <Flex direction=\"row\" wrap=\"wrap\">\n {features.map(({ id, message }) => (\n <Flex key={id} paddingRight={5}>\n <Check fill=\"primary500\" />\n <Typography variant=\"omega\" paddingLeft={1}>\n {formatMessage({\n id: getTrad(`Homepage.freePlan.${id}`),\n defaultMessage: message,\n })}\n </Typography>\n </Flex>\n ))}\n </Flex>\n </Flex>\n </Box>\n </Box>\n );\n};\n\nexport { CloudFree };\n"],"names":["CloudFree","formatMessage","useIntl","features","id","message","_jsx","Box","paddingBottom","Flex","direction","wrap","map","_jsxs","paddingRight","Check","fill","Typography","variant","paddingLeft","getTrad","defaultMessage"],"mappings":";;;;;;AAMA,MAAMA,SAAY,GAAA,IAAA;IAChB,MAAM,EAAEC,aAAa,EAAE,GAAGC,OAAAA,EAAAA;AAE1B,IAAA,MAAMC,QAAW,GAAA;AACf,QAAA;YAAEC,EAAI,EAAA,KAAA;YAAOC,OAAS,EAAA;AAAmB,SAAA;AACzC,QAAA;YAAED,EAAI,EAAA,SAAA;YAAWC,OAAS,EAAA;AAAgB,SAAA;AAC1C,QAAA;YAAED,EAAI,EAAA,WAAA;YAAaC,OAAS,EAAA;AAAwB,SAAA;AACpD,QAAA;YAAED,EAAI,EAAA,KAAA;YAAOC,OAAS,EAAA;AAAa,SAAA;AACnC,QAAA;YAAED,EAAI,EAAA,cAAA;YAAgBC,OAAS,EAAA;AAAiB;AACjD,KAAA;AAED,IAAA,qBACEC,GAACC,CAAAA,GAAAA,EAAAA;AACC,QAAA,QAAA,gBAAAD,GAACC,CAAAA,GAAAA,EAAAA;YAAIC,aAAe,EAAA,EAAA;AAClB,YAAA,QAAA,gBAAAF,GAACG,CAAAA,IAAAA,EAAAA;gBAAKC,SAAU,EAAA,QAAA;AACd,gBAAA,QAAA,gBAAAJ,GAACG,CAAAA,IAAAA,EAAAA;oBAAKC,SAAU,EAAA,KAAA;oBAAMC,IAAK,EAAA,MAAA;8BACxBR,QAASS,CAAAA,GAAG,CAAC,CAAC,EAAER,EAAE,EAAEC,OAAO,EAAE,iBAC5BQ,IAACJ,CAAAA,IAAAA,EAAAA;4BAAcK,YAAc,EAAA,CAAA;;8CAC3BR,GAACS,CAAAA,KAAAA,EAAAA;oCAAMC,IAAK,EAAA;;8CACZV,GAACW,CAAAA,UAAAA,EAAAA;oCAAWC,OAAQ,EAAA,OAAA;oCAAQC,WAAa,EAAA,CAAA;8CACtClB,aAAc,CAAA;AACbG,wCAAAA,EAAAA,EAAIgB,OAAQ,CAAA,CAAC,kBAAkB,EAAEhB,
|
|
1
|
+
{"version":3,"file":"CloudFree.mjs","sources":["../../../admin/src/components/CloudFree.tsx"],"sourcesContent":["import { Box, Flex, Typography } from '@strapi/design-system';\nimport { Check } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\n\nimport { getTrad } from '../utils/getTrad';\n\nconst CloudFree = () => {\n const { formatMessage } = useIntl();\n\n const features = [\n { id: 'api', message: '10K API requests' },\n { id: 'storage', message: '10 GB storage' },\n { id: 'bandwidth', message: '10 GB asset bandwidth' },\n { id: 'cdn', message: 'Global CDN' },\n { id: 'pushToDeploy', message: 'Push to deploy' },\n ];\n\n return (\n <Box>\n <Box paddingBottom={10}>\n <Flex direction=\"column\">\n <Flex direction=\"row\" wrap=\"wrap\">\n {features.map(({ id, message }) => (\n <Flex key={id} paddingRight={5}>\n <Check fill=\"primary500\" />\n <Typography variant=\"omega\" paddingLeft={1}>\n {formatMessage({\n id: getTrad(`Homepage.freePlan.${id}`),\n defaultMessage: message,\n })}\n </Typography>\n </Flex>\n ))}\n </Flex>\n </Flex>\n </Box>\n </Box>\n );\n};\n\nexport { CloudFree };\n"],"names":["CloudFree","formatMessage","useIntl","features","id","message","_jsx","Box","paddingBottom","Flex","direction","wrap","map","_jsxs","paddingRight","Check","fill","Typography","variant","paddingLeft","getTrad","defaultMessage"],"mappings":";;;;;;AAMA,MAAMA,SAAY,GAAA,IAAA;IAChB,MAAM,EAAEC,aAAa,EAAE,GAAGC,OAAAA,EAAAA;AAE1B,IAAA,MAA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version":3,"file":"index.js","sources":["../../admin/src/index.ts"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\n\nimport { Cloud } from '@strapi/icons';\n\nimport { Initializer } from './components/Initializer';\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst pluginName = 'Deploy';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n const { backendURL } = window.strapi;\n\n // Only add the plugin menu link and registering it if the project is on development (localhost).\n if (backendURL?.includes('localhost')) {\n app.addMenuLink({\n to: `plugins/${pluginId}`,\n icon: Cloud,\n intlLabel: {\n id: `${pluginId}.Plugin.name`,\n defaultMessage: pluginName,\n },\n Component: async () => {\n const { App } = await import('./pages/App');\n\n return App;\n },\n });\n const plugin = {\n id: pluginId,\n initializer: Initializer,\n isReady: false,\n name: pluginName,\n };\n\n app.registerPlugin(plugin);\n }\n },\n\n async registerTrads(app: any) {\n const { locales } = app;\n\n const importedTrads = await Promise.all(\n (locales as any[]).map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginName","register","app","backendURL","window","strapi","includes","addMenuLink","to","pluginId","icon","Cloud","intlLabel","id","defaultMessage","Component","App","plugin","initializer","Initializer","isReady","name","registerPlugin","registerTrads","locales","importedTrads","Promise","all","map","locale","then","default","data","prefixPluginTranslations","catch","resolve"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAMA,UAAa,GAAA,QAAA;AAEnB;AACA,YAAe;AACbC,IAAAA,QAAAA,CAAAA,CAASC,GAAQ,EAAA;AACf,QAAA,MAAM,EAAEC,UAAU,EAAE,GAAGC,OAAOC,MAAM;;QAGpC,IAAIF,UAAAA,EAAYG,SAAS,WAAc,CAAA,EAAA;AACrCJ,YAAAA,GAAAA,CAAIK,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../admin/src/index.ts"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\n\nimport { Cloud } from '@strapi/icons';\n\nimport { Initializer } from './components/Initializer';\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst pluginName = 'Deploy';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n const { backendURL } = window.strapi;\n\n // Only add the plugin menu link and registering it if the project is on development (localhost).\n if (backendURL?.includes('localhost')) {\n app.addMenuLink({\n to: `plugins/${pluginId}`,\n icon: Cloud,\n intlLabel: {\n id: `${pluginId}.Plugin.name`,\n defaultMessage: pluginName,\n },\n Component: async () => {\n const { App } = await import('./pages/App');\n\n return App;\n },\n });\n const plugin = {\n id: pluginId,\n initializer: Initializer,\n isReady: false,\n name: pluginName,\n };\n\n app.registerPlugin(plugin);\n }\n },\n\n async registerTrads(app: any) {\n const { locales } = app;\n\n const importedTrads = await Promise.all(\n (locales as any[]).map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginName","register","app","backendURL","window","strapi","includes","addMenuLink","to","pluginId","icon","Cloud","intlLabel","id","defaultMessage","Component","App","plugin","initializer","Initializer","isReady","name","registerPlugin","registerTrads","locales","importedTrads","Promise","all","map","locale","then","default","data","prefixPluginTranslations","catch","resolve"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAMA,UAAa,GAAA,QAAA;AAEnB;AACA,YAAe;AACbC,IAAAA,QAAAA,CAAAA,CAASC,GAAQ,EAAA;AACf,QAAA,MAAM,EAAEC,UAAU,EAAE,GAAGC,OAAOC,MAAM;;QAGpC,IAAIF,UAAAA,EAAYG,SAAS,WAA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,CAAA;QAGF,OAAOH,OAAAA,CAAQS,OAAO,CAACV,aAAAA,CAAAA;AACzB;AACF,CAAE;;;;"}
|
package/dist/admin/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../admin/src/index.ts"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\n\nimport { Cloud } from '@strapi/icons';\n\nimport { Initializer } from './components/Initializer';\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst pluginName = 'Deploy';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n const { backendURL } = window.strapi;\n\n // Only add the plugin menu link and registering it if the project is on development (localhost).\n if (backendURL?.includes('localhost')) {\n app.addMenuLink({\n to: `plugins/${pluginId}`,\n icon: Cloud,\n intlLabel: {\n id: `${pluginId}.Plugin.name`,\n defaultMessage: pluginName,\n },\n Component: async () => {\n const { App } = await import('./pages/App');\n\n return App;\n },\n });\n const plugin = {\n id: pluginId,\n initializer: Initializer,\n isReady: false,\n name: pluginName,\n };\n\n app.registerPlugin(plugin);\n }\n },\n\n async registerTrads(app: any) {\n const { locales } = app;\n\n const importedTrads = await Promise.all(\n (locales as any[]).map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginName","register","app","backendURL","window","strapi","includes","addMenuLink","to","pluginId","icon","Cloud","intlLabel","id","defaultMessage","Component","App","plugin","initializer","Initializer","isReady","name","registerPlugin","registerTrads","locales","importedTrads","Promise","all","map","locale","then","default","data","prefixPluginTranslations","catch","resolve"],"mappings":";;;;;;;;;;;;;;;;;;;;AAQA,MAAMA,UAAa,GAAA,QAAA;AAEnB;AACA,YAAe;AACbC,IAAAA,QAAAA,CAAAA,CAASC,GAAQ,EAAA;AACf,QAAA,MAAM,EAAEC,UAAU,EAAE,GAAGC,OAAOC,MAAM;;QAGpC,IAAIF,UAAAA,EAAYG,SAAS,WAAc,CAAA,EAAA;AACrCJ,YAAAA,GAAAA,CAAIK,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../admin/src/index.ts"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\n\nimport { Cloud } from '@strapi/icons';\n\nimport { Initializer } from './components/Initializer';\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst pluginName = 'Deploy';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n const { backendURL } = window.strapi;\n\n // Only add the plugin menu link and registering it if the project is on development (localhost).\n if (backendURL?.includes('localhost')) {\n app.addMenuLink({\n to: `plugins/${pluginId}`,\n icon: Cloud,\n intlLabel: {\n id: `${pluginId}.Plugin.name`,\n defaultMessage: pluginName,\n },\n Component: async () => {\n const { App } = await import('./pages/App');\n\n return App;\n },\n });\n const plugin = {\n id: pluginId,\n initializer: Initializer,\n isReady: false,\n name: pluginName,\n };\n\n app.registerPlugin(plugin);\n }\n },\n\n async registerTrads(app: any) {\n const { locales } = app;\n\n const importedTrads = await Promise.all(\n (locales as any[]).map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginName","register","app","backendURL","window","strapi","includes","addMenuLink","to","pluginId","icon","Cloud","intlLabel","id","defaultMessage","Component","App","plugin","initializer","Initializer","isReady","name","registerPlugin","registerTrads","locales","importedTrads","Promise","all","map","locale","then","default","data","prefixPluginTranslations","catch","resolve"],"mappings":";;;;;;;;;;;;;;;;;;;;AAQA,MAAMA,UAAa,GAAA,QAAA;AAEnB;AACA,YAAe;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CAAA,CACCK,KAAK,CAAC,IAAA;gBACL,OAAO;AACLF,oBAAAA,IAAAA,EAAM,EAAC;AACPH,oBAAAA;AACF,iBAAA;AACF,aAAA,CAAA;AACJ,SAAA,CAAA,CAAA;QAGF,OAAOH,OAAAA,CAAQS,OAAO,CAACV,aAAAA,CAAAA;AACzB;AACF,CAAE;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTrad.js","sources":["../../../admin/src/utils/getTrad.ts"],"sourcesContent":["import { pluginId } from '../pluginId';\n\nconst getTrad = (id: string) => `${pluginId}.${id}`;\n\nexport { getTrad };\n"],"names":["getTrad","id","pluginId"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"getTrad.js","sources":["../../../admin/src/utils/getTrad.ts"],"sourcesContent":["import { pluginId } from '../pluginId';\n\nconst getTrad = (id: string) => `${pluginId}.${id}`;\n\nexport { getTrad };\n"],"names":["getTrad","id","pluginId"],"mappings":";;;;AAEA,MAAMA,UAAU,CAACC,EAAAA,GAAe,GAAGC,iBAAS,CAAA,CAAC,EAAED,EAAI,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTrad.mjs","sources":["../../../admin/src/utils/getTrad.ts"],"sourcesContent":["import { pluginId } from '../pluginId';\n\nconst getTrad = (id: string) => `${pluginId}.${id}`;\n\nexport { getTrad };\n"],"names":["getTrad","id","pluginId"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getTrad.mjs","sources":["../../../admin/src/utils/getTrad.ts"],"sourcesContent":["import { pluginId } from '../pluginId';\n\nconst getTrad = (id: string) => `${pluginId}.${id}`;\n\nexport { getTrad };\n"],"names":["getTrad","id","pluginId"],"mappings":";;AAEA,MAAMA,UAAU,CAACC,EAAAA,GAAe,GAAGC,QAAS,CAAA,CAAC,EAAED,EAAI,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixPluginTranslations.js","sources":["../../../admin/src/utils/prefixPluginTranslations.ts"],"sourcesContent":["type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n"],"names":["prefixPluginTranslations","trad","pluginId","Object","keys","reduce","acc","current"],"mappings":";;AAEMA,MAAAA,wBAAAA,GAA2B,CAACC,IAAmBC,EAAAA,QAAAA,GAAAA;AAInD,IAAA,OAAOC,OAAOC,IAAI,CAACH,MAAMI,MAAM,CAAC,CAACC,GAAKC,EAAAA,OAAAA,GAAAA;
|
|
1
|
+
{"version":3,"file":"prefixPluginTranslations.js","sources":["../../../admin/src/utils/prefixPluginTranslations.ts"],"sourcesContent":["type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n"],"names":["prefixPluginTranslations","trad","pluginId","Object","keys","reduce","acc","current"],"mappings":";;AAEMA,MAAAA,wBAAAA,GAA2B,CAACC,IAAmBC,EAAAA,QAAAA,GAAAA;AAInD,IAAA,OAAOC,OAAOC,IAAI,CAACH,MAAMI,MAAM,CAAC,CAACC,GAAKC,EAAAA,OAAAA,GAAAA;QACpCD,GAAG,CAAC,CAAGJ,EAAAA,QAAAA,CAAS,CAAC,EAAEK,SAAS,CAAC,GAAGN,IAAI,CAACM,OAAQ,CAAA;QAC7C,OAAOD,GAAAA;AACT,KAAA,EAAG,EAAC,CAAA;AACN;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixPluginTranslations.mjs","sources":["../../../admin/src/utils/prefixPluginTranslations.ts"],"sourcesContent":["type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n"],"names":["prefixPluginTranslations","trad","pluginId","Object","keys","reduce","acc","current"],"mappings":"AAEMA,MAAAA,wBAAAA,GAA2B,CAACC,IAAmBC,EAAAA,QAAAA,GAAAA;AAInD,IAAA,OAAOC,OAAOC,IAAI,CAACH,MAAMI,MAAM,CAAC,CAACC,GAAKC,EAAAA,OAAAA,GAAAA;
|
|
1
|
+
{"version":3,"file":"prefixPluginTranslations.mjs","sources":["../../../admin/src/utils/prefixPluginTranslations.ts"],"sourcesContent":["type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n"],"names":["prefixPluginTranslations","trad","pluginId","Object","keys","reduce","acc","current"],"mappings":"AAEMA,MAAAA,wBAAAA,GAA2B,CAACC,IAAmBC,EAAAA,QAAAA,GAAAA;AAInD,IAAA,OAAOC,OAAOC,IAAI,CAACH,MAAMI,MAAM,CAAC,CAACC,GAAKC,EAAAA,OAAAA,GAAAA;QACpCD,GAAG,CAAC,CAAGJ,EAAAA,QAAAA,CAAS,CAAC,EAAEK,SAAS,CAAC,GAAGN,IAAI,CAACM,OAAQ,CAAA;QAC7C,OAAOD,GAAAA;AACT,KAAA,EAAG,EAAC,CAAA;AACN;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-cloud",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.1",
|
|
4
4
|
"description": "Instructions to deploy your local project to Strapi Cloud",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"react-intl": "6.6.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@strapi/admin": "5.
|
|
49
|
-
"@strapi/strapi": "5.
|
|
50
|
-
"eslint-config-custom": "5.
|
|
48
|
+
"@strapi/admin": "5.30.1",
|
|
49
|
+
"@strapi/strapi": "5.30.1",
|
|
50
|
+
"eslint-config-custom": "5.30.1",
|
|
51
51
|
"react": "18.3.1",
|
|
52
52
|
"react-dom": "18.3.1",
|
|
53
53
|
"react-router-dom": "6.22.3",
|
|
54
54
|
"styled-components": "6.1.8",
|
|
55
|
-
"tsconfig": "5.
|
|
55
|
+
"tsconfig": "5.30.1",
|
|
56
56
|
"typescript": "5.4.4"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|