@strapi/plugin-cloud 5.44.0 → 5.45.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/index.js
CHANGED
|
@@ -38,10 +38,10 @@ var index = {
|
|
|
38
38
|
id: `${pluginId.pluginId}.Plugin.name`,
|
|
39
39
|
defaultMessage: pluginName
|
|
40
40
|
},
|
|
41
|
-
Component:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
Component: ()=>Promise.resolve().then(function () { return require('./pages/App.js'); }).then((mod)=>({
|
|
42
|
+
default: mod.App
|
|
43
|
+
})),
|
|
44
|
+
permissions: []
|
|
45
45
|
});
|
|
46
46
|
const plugin = {
|
|
47
47
|
id: pluginId.pluginId,
|
package/dist/admin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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:
|
|
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\nimport type { StrapiApp } from '@strapi/admin/strapi-admin';\n\nconst pluginName = 'Deploy';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: StrapiApp) {\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: () => import('./pages/App').then((mod) => ({ default: mod.App })),\n permissions: [],\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","then","mod","default","App","permissions","plugin","initializer","Initializer","isReady","name","registerPlugin","registerTrads","locales","importedTrads","Promise","all","map","locale","data","prefixPluginTranslations","catch","resolve"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAMA,UAAAA,GAAa,QAAA;AAEnB;AACA,YAAe;AACbC,IAAAA,QAAAA,CAAAA,CAASC,GAAc,EAAA;AACrB,QAAA,MAAM,EAAEC,UAAU,EAAE,GAAGC,OAAOC,MAAM;;QAGpC,IAAIF,UAAAA,EAAYG,SAAS,WAAA,CAAA,EAAc;AACrCJ,YAAAA,GAAAA,CAAIK,WAAW,CAAC;gBACdC,EAAAA,EAAI,CAAC,QAAQ,EAAEC,iBAAAA,CAAAA,CAAU;gBACzBC,IAAAA,EAAMC,WAAAA;gBACNC,SAAAA,EAAW;oBACTC,EAAAA,EAAI,CAAA,EAAGJ,iBAAAA,CAAS,YAAY,CAAC;oBAC7BK,cAAAA,EAAgBd;AAClB,iBAAA;gBACAe,SAAAA,EAAW,IAAM,oDAAO,gBAAA,KAAA,CAAeC,IAAI,CAAC,CAACC,OAAS;AAAEC,4BAAAA,OAAAA,EAASD,IAAIE;yBAAI,CAAA,CAAA;AACzEC,gBAAAA,WAAAA,EAAa;AACf,aAAA,CAAA;AACA,YAAA,MAAMC,MAAAA,GAAS;gBACbR,EAAAA,EAAIJ,iBAAAA;gBACJa,WAAAA,EAAaC,uBAAAA;gBACbC,OAAAA,EAAS,KAAA;gBACTC,IAAAA,EAAMzB;AACR,aAAA;AAEAE,YAAAA,GAAAA,CAAIwB,cAAc,CAACL,MAAAA,CAAAA;AACrB,QAAA;AACF,IAAA,CAAA;AAEA,IAAA,MAAMM,eAAczB,GAAQ,EAAA;QAC1B,MAAM,EAAE0B,OAAO,EAAE,GAAG1B,GAAAA;QAEpB,MAAM2B,aAAAA,GAAgB,MAAMC,OAAAA,CAAQC,GAAG,CACrC,OAACH,CAAkBI,GAAG,CAAC,CAACC,MAAAA,GAAAA;AACtB,YAAA,OAAO,iCAAM,CAAC,CAAC,eAAe,EAAEA,MAAAA,CAAO,KAAK,CAAC,CAAA,CAC1CjB,IAAI,CAAC,CAAC,EAAEE,OAAAA,EAASgB,IAAI,EAAE,GAAA;gBACtB,OAAO;AACLA,oBAAAA,IAAAA,EAAMC,kDAAyBD,IAAAA,EAAMzB,iBAAAA,CAAAA;AACrCwB,oBAAAA;AACF,iBAAA;AACF,YAAA,CAAA,CAAA,CACCG,KAAK,CAAC,IAAA;gBACL,OAAO;AACLF,oBAAAA,IAAAA,EAAM,EAAC;AACPD,oBAAAA;AACF,iBAAA;AACF,YAAA,CAAA,CAAA;AACJ,QAAA,CAAA,CAAA,CAAA;QAGF,OAAOH,OAAAA,CAAQO,OAAO,CAACR,aAAAA,CAAAA;AACzB,IAAA;AACF,CAAA;;;;"}
|
package/dist/admin/index.mjs
CHANGED
|
@@ -34,10 +34,10 @@ var index = {
|
|
|
34
34
|
id: `${pluginId}.Plugin.name`,
|
|
35
35
|
defaultMessage: pluginName
|
|
36
36
|
},
|
|
37
|
-
Component:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
Component: ()=>import('./pages/App.mjs').then((mod)=>({
|
|
38
|
+
default: mod.App
|
|
39
|
+
})),
|
|
40
|
+
permissions: []
|
|
41
41
|
});
|
|
42
42
|
const plugin = {
|
|
43
43
|
id: pluginId,
|
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:
|
|
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\nimport type { StrapiApp } from '@strapi/admin/strapi-admin';\n\nconst pluginName = 'Deploy';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: StrapiApp) {\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: () => import('./pages/App').then((mod) => ({ default: mod.App })),\n permissions: [],\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","then","mod","default","App","permissions","plugin","initializer","Initializer","isReady","name","registerPlugin","registerTrads","locales","importedTrads","Promise","all","map","locale","data","prefixPluginTranslations","catch","resolve"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUA,MAAMA,UAAAA,GAAa,QAAA;AAEnB;AACA,YAAe;AACbC,IAAAA,QAAAA,CAAAA,CAASC,GAAc,EAAA;AACrB,QAAA,MAAM,EAAEC,UAAU,EAAE,GAAGC,OAAOC,MAAM;;QAGpC,IAAIF,UAAAA,EAAYG,SAAS,WAAA,CAAA,EAAc;AACrCJ,YAAAA,GAAAA,CAAIK,WAAW,CAAC;gBACdC,EAAAA,EAAI,CAAC,QAAQ,EAAEC,QAAAA,CAAAA,CAAU;gBACzBC,IAAAA,EAAMC,KAAAA;gBACNC,SAAAA,EAAW;oBACTC,EAAAA,EAAI,CAAA,EAAGJ,QAAAA,CAAS,YAAY,CAAC;oBAC7BK,cAAAA,EAAgBd;AAClB,iBAAA;gBACAe,SAAAA,EAAW,IAAM,OAAO,iBAAA,CAAA,CAAeC,IAAI,CAAC,CAACC,OAAS;AAAEC,4BAAAA,OAAAA,EAASD,IAAIE;yBAAI,CAAA,CAAA;AACzEC,gBAAAA,WAAAA,EAAa;AACf,aAAA,CAAA;AACA,YAAA,MAAMC,MAAAA,GAAS;gBACbR,EAAAA,EAAIJ,QAAAA;gBACJa,WAAAA,EAAaC,WAAAA;gBACbC,OAAAA,EAAS,KAAA;gBACTC,IAAAA,EAAMzB;AACR,aAAA;AAEAE,YAAAA,GAAAA,CAAIwB,cAAc,CAACL,MAAAA,CAAAA;AACrB,QAAA;AACF,IAAA,CAAA;AAEA,IAAA,MAAMM,eAAczB,GAAQ,EAAA;QAC1B,MAAM,EAAE0B,OAAO,EAAE,GAAG1B,GAAAA;QAEpB,MAAM2B,aAAAA,GAAgB,MAAMC,OAAAA,CAAQC,GAAG,CACrC,OAACH,CAAkBI,GAAG,CAAC,CAACC,MAAAA,GAAAA;AACtB,YAAA,OAAO,iCAAM,CAAC,CAAC,eAAe,EAAEA,MAAAA,CAAO,KAAK,CAAC,CAAA,CAC1CjB,IAAI,CAAC,CAAC,EAAEE,OAAAA,EAASgB,IAAI,EAAE,GAAA;gBACtB,OAAO;AACLA,oBAAAA,IAAAA,EAAMC,yBAAyBD,IAAAA,EAAMzB,QAAAA,CAAAA;AACrCwB,oBAAAA;AACF,iBAAA;AACF,YAAA,CAAA,CAAA,CACCG,KAAK,CAAC,IAAA;gBACL,OAAO;AACLF,oBAAAA,IAAAA,EAAM,EAAC;AACPD,oBAAAA;AACF,iBAAA;AACF,YAAA,CAAA,CAAA;AACJ,QAAA,CAAA,CAAA,CAAA;QAGF,OAAOH,OAAAA,CAAQO,OAAO,CAACR,aAAAA,CAAAA;AACzB,IAAA;AACF,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-cloud",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.45.1",
|
|
4
4
|
"description": "Instructions to deploy your local project to Strapi Cloud",
|
|
5
5
|
"homepage": "https://strapi.io",
|
|
6
6
|
"bugs": {
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"react-intl": "6.6.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@strapi/admin": "5.
|
|
58
|
-
"@strapi/strapi": "5.
|
|
59
|
-
"eslint-config-custom": "5.
|
|
57
|
+
"@strapi/admin": "5.45.1",
|
|
58
|
+
"@strapi/strapi": "5.45.1",
|
|
59
|
+
"eslint-config-custom": "5.45.1",
|
|
60
60
|
"react": "18.3.1",
|
|
61
61
|
"react-dom": "18.3.1",
|
|
62
62
|
"react-router-dom": "6.30.3",
|
|
63
63
|
"styled-components": "6.1.8",
|
|
64
|
-
"tsconfig": "5.
|
|
64
|
+
"tsconfig": "5.45.1",
|
|
65
65
|
"typescript": "5.4.5"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|