@strapi/plugin-cloud 4.20.5 → 5.0.0-alpha.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/_chunks/{App-Gh4oSOHw.js → App-WB18u86C.js} +6 -7
- package/dist/_chunks/{App-Gh4oSOHw.js.map → App-WB18u86C.js.map} +1 -1
- package/dist/_chunks/{App-nHWVlMbd.mjs → App-kIPHdJ3i.mjs} +7 -8
- package/dist/_chunks/{App-nHWVlMbd.mjs.map → App-kIPHdJ3i.mjs.map} +1 -1
- package/dist/_chunks/{index-mjWlxKqq.js → index-UCmc-fLL.js} +13 -5
- package/dist/_chunks/index-UCmc-fLL.js.map +1 -0
- package/dist/_chunks/{index-DQ7yF1-E.mjs → index-m5X1jUHK.mjs} +12 -4
- package/dist/_chunks/index-m5X1jUHK.mjs.map +1 -0
- package/dist/admin/index.js +1 -5
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +1 -5
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/src/utils/prefixPluginTranslations.d.ts +3 -0
- package/package.json +14 -15
- package/dist/_chunks/index-DQ7yF1-E.mjs.map +0 -1
- package/dist/_chunks/index-mjWlxKqq.js.map +0 -1
package/dist/admin/index.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require("../_chunks/index-
|
|
3
|
-
require("@strapi/helper-plugin");
|
|
4
|
-
require("react");
|
|
5
|
-
require("react/jsx-runtime");
|
|
6
|
-
require("@strapi/icons");
|
|
2
|
+
const index = require("../_chunks/index-UCmc-fLL.js");
|
|
7
3
|
module.exports = index.index;
|
|
8
4
|
//# sourceMappingURL=index.js.map
|
package/dist/admin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/dist/admin/index.mjs
CHANGED
package/dist/admin/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-cloud",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.1",
|
|
4
4
|
"description": "Instructions to deploy your local project to Strapi Cloud",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
|
-
"
|
|
29
|
+
"dist/"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "strapi plugin:build --force",
|
|
@@ -37,29 +37,28 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@strapi/design-system": "1.16.0",
|
|
40
|
-
"@strapi/helper-plugin": "
|
|
40
|
+
"@strapi/helper-plugin": "5.0.0-alpha.1",
|
|
41
41
|
"@strapi/icons": "1.16.0",
|
|
42
|
-
"react-intl": "6.
|
|
42
|
+
"react-intl": "6.6.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@strapi/strapi": "
|
|
46
|
-
"@types/react": "18.2.
|
|
47
|
-
"@types/react-dom": "18.2.
|
|
48
|
-
"@types/
|
|
49
|
-
"
|
|
50
|
-
"eslint-config-custom": "4.20.5",
|
|
45
|
+
"@strapi/strapi": "5.0.0-alpha.1",
|
|
46
|
+
"@types/react": "18.2.66",
|
|
47
|
+
"@types/react-dom": "18.2.22",
|
|
48
|
+
"@types/styled-components": "5.1.34",
|
|
49
|
+
"eslint-config-custom": "5.0.0-alpha.1",
|
|
51
50
|
"react": "18.2.0",
|
|
52
51
|
"react-dom": "18.2.0",
|
|
53
|
-
"react-router-dom": "
|
|
54
|
-
"styled-components": "5.3.
|
|
55
|
-
"tsconfig": "
|
|
52
|
+
"react-router-dom": "6.22.3",
|
|
53
|
+
"styled-components": "5.3.11",
|
|
54
|
+
"tsconfig": "5.0.0-alpha.1",
|
|
56
55
|
"typescript": "5.2.2"
|
|
57
56
|
},
|
|
58
57
|
"peerDependencies": {
|
|
59
58
|
"@strapi/strapi": "^4.4.0",
|
|
60
59
|
"react": "^17.0.0 || ^18.0.0",
|
|
61
60
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
62
|
-
"react-router-dom": "
|
|
61
|
+
"react-router-dom": "6.21.1",
|
|
63
62
|
"styled-components": "5.3.3"
|
|
64
63
|
},
|
|
65
64
|
"engines": {
|
|
@@ -72,5 +71,5 @@
|
|
|
72
71
|
"kind": "plugin",
|
|
73
72
|
"displayName": "Strapi Cloud"
|
|
74
73
|
},
|
|
75
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "eb70e07ea981311a3ddfbb2fdda0417034b22881"
|
|
76
75
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-DQ7yF1-E.mjs","sources":["../../admin/src/pluginId.ts","../../admin/src/components/Initializer.tsx","../../admin/src/components/PluginIcon.tsx","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'cloud';\n","/**\n *\n * Initializer\n *\n */\n\nimport { useEffect, useRef } from 'react';\n\nimport { pluginId } from '../pluginId';\n\ntype InitializerProps = {\n setPlugin: (id: string) => void;\n};\n\nconst Initializer = ({ setPlugin }: InitializerProps) => {\n const ref = useRef(setPlugin);\n\n useEffect(() => {\n ref.current(pluginId);\n }, []);\n\n return null;\n};\n\nexport { Initializer };\n","/**\n *\n * PluginIcon\n *\n */\n\nimport { Cloud } from '@strapi/icons';\n\nconst PluginIcon = () => <Cloud />;\n\nexport { PluginIcon };\n","/* eslint-disable check-file/filename-naming-convention */\nimport { prefixPluginTranslations } from '@strapi/helper-plugin';\n\nimport { Initializer } from './components/Initializer';\nimport { PluginIcon } from './components/PluginIcon';\nimport { pluginId } from './pluginId';\n\nconst name = '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: PluginIcon,\n intlLabel: {\n id: `${pluginId}.plugin.name`,\n defaultMessage: name,\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,\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":[],"mappings":";;;;;;;;;;;;;AAAO,MAAM,WAAW;ACcxB,MAAM,cAAc,CAAC,EAAE,gBAAkC;AACjD,QAAA,MAAM,OAAO,SAAS;AAE5B,YAAU,MAAM;AACd,QAAI,QAAQ,QAAQ;AAAA,EACtB,GAAG,CAAE,CAAA;AAEE,SAAA;AACT;ACdA,MAAM,aAAa,MAAM,oBAAC,OAAM,EAAA;ACDhC,MAAM,OAAO;AAGb,MAAe,QAAA;AAAA,EACb,SAAS,KAAU;AACX,UAAA,EAAE,WAAW,IAAI,OAAO;AAG1B,QAAA,YAAY,SAAS,WAAW,GAAG;AACrC,UAAI,YAAY;AAAA,QACd,IAAI,YAAY,QAAQ;AAAA,QACxB,MAAM;AAAA,QACN,WAAW;AAAA,UACT,IAAI,GAAG,QAAQ;AAAA,UACf,gBAAgB;AAAA,QAClB;AAAA,QACA,WAAW,YAAY;AACrB,gBAAM,EAAE,IAAA,IAAQ,MAAM,OAAO,oBAAa;AAEnC,iBAAA;AAAA,QACT;AAAA,MAAA,CACD;AACD,YAAM,SAAS;AAAA,QACb,IAAI;AAAA,QACJ,aAAa;AAAA,QACb,SAAS;AAAA,QACT;AAAA,MAAA;AAGF,UAAI,eAAe,MAAM;AAAA,IAC3B;AAAA,EACF;AAAA,EAEA,MAAM,cAAc,KAAU;AACtB,UAAA,EAAE,QAAY,IAAA;AAEd,UAAA,gBAAgB,MAAM,QAAQ;AAAA,MACjC,QAAkB,IAAI,CAAC,WAAW;AAC1B,eAAA,qCAA+B,uBAAA,OAAA,EAAA,0BAAA,MAAA,OAAA,mBAAA,GAAA,0BAAA,MAAA,OAAA,mBAAA,EAAA,CAAA,GAAA,kBAAA,MAAA,OAAA,EACnC,KAAK,CAAC,EAAE,SAAS,WAAW;AACpB,iBAAA;AAAA,YACL,MAAM,yBAAyB,MAAM,QAAQ;AAAA,YAC7C;AAAA,UAAA;AAAA,QACF,CACD,EACA,MAAM,MAAM;AACJ,iBAAA;AAAA,YACL,MAAM,CAAC;AAAA,YACP;AAAA,UAAA;AAAA,QACF,CACD;AAAA,MAAA,CACJ;AAAA,IAAA;AAGI,WAAA,QAAQ,QAAQ,aAAa;AAAA,EACtC;AACF;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-mjWlxKqq.js","sources":["../../admin/src/pluginId.ts","../../admin/src/components/Initializer.tsx","../../admin/src/components/PluginIcon.tsx","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'cloud';\n","/**\n *\n * Initializer\n *\n */\n\nimport { useEffect, useRef } from 'react';\n\nimport { pluginId } from '../pluginId';\n\ntype InitializerProps = {\n setPlugin: (id: string) => void;\n};\n\nconst Initializer = ({ setPlugin }: InitializerProps) => {\n const ref = useRef(setPlugin);\n\n useEffect(() => {\n ref.current(pluginId);\n }, []);\n\n return null;\n};\n\nexport { Initializer };\n","/**\n *\n * PluginIcon\n *\n */\n\nimport { Cloud } from '@strapi/icons';\n\nconst PluginIcon = () => <Cloud />;\n\nexport { PluginIcon };\n","/* eslint-disable check-file/filename-naming-convention */\nimport { prefixPluginTranslations } from '@strapi/helper-plugin';\n\nimport { Initializer } from './components/Initializer';\nimport { PluginIcon } from './components/PluginIcon';\nimport { pluginId } from './pluginId';\n\nconst name = '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: PluginIcon,\n intlLabel: {\n id: `${pluginId}.plugin.name`,\n defaultMessage: name,\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,\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":["useRef","useEffect","jsx","Cloud","prefixPluginTranslations"],"mappings":";;;;;;;;;;;;;;AAAO,MAAM,WAAW;ACcxB,MAAM,cAAc,CAAC,EAAE,gBAAkC;AACjD,QAAA,MAAMA,aAAO,SAAS;AAE5BC,QAAAA,UAAU,MAAM;AACd,QAAI,QAAQ,QAAQ;AAAA,EACtB,GAAG,CAAE,CAAA;AAEE,SAAA;AACT;ACdA,MAAM,aAAa,MAAMC,2BAAAA,IAACC,MAAM,OAAA,EAAA;ACDhC,MAAM,OAAO;AAGb,MAAe,QAAA;AAAA,EACb,SAAS,KAA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