@webiny/app 5.20.0-beta.2 → 5.22.0-beta.0
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/components/index.d.ts
CHANGED
package/components/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Image } from "./Image";
|
|
1
|
+
export { Image } from "./Image";
|
|
2
|
+
export { Routes } from "./Routes";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@apollo/react-hooks": "3.1.5",
|
|
18
|
-
"@babel/runtime": "7.16.
|
|
19
|
-
"@emotion/styled": "10.0
|
|
18
|
+
"@babel/runtime": "7.16.7",
|
|
19
|
+
"@emotion/styled": "10.3.0",
|
|
20
20
|
"@types/react": "16.14.2",
|
|
21
|
-
"@webiny/i18n": "5.
|
|
22
|
-
"@webiny/i18n-react": "5.
|
|
23
|
-
"@webiny/plugins": "5.
|
|
24
|
-
"@webiny/react-router": "5.
|
|
25
|
-
"@webiny/ui": "5.
|
|
21
|
+
"@webiny/i18n": "5.22.0-beta.0",
|
|
22
|
+
"@webiny/i18n-react": "5.22.0-beta.0",
|
|
23
|
+
"@webiny/plugins": "5.22.0-beta.0",
|
|
24
|
+
"@webiny/react-router": "5.22.0-beta.0",
|
|
25
|
+
"@webiny/ui": "5.22.0-beta.0",
|
|
26
26
|
"apollo-cache": "1.3.5",
|
|
27
27
|
"apollo-cache-inmemory": "1.6.6",
|
|
28
28
|
"apollo-client": "2.6.10",
|
|
@@ -31,22 +31,23 @@
|
|
|
31
31
|
"apollo-link-error": "1.1.13",
|
|
32
32
|
"apollo-utilities": "1.3.4",
|
|
33
33
|
"boolean": "3.1.4",
|
|
34
|
-
"graphql": "
|
|
34
|
+
"graphql": "15.8.0",
|
|
35
35
|
"invariant": "2.2.4",
|
|
36
36
|
"lodash": "4.17.21",
|
|
37
|
+
"nanoid": "3.1.32",
|
|
37
38
|
"react": "16.14.0",
|
|
38
39
|
"react-dom": "16.14.0",
|
|
39
40
|
"warning": "4.0.3"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@babel/cli": "^7.
|
|
43
|
-
"@babel/core": "^7.
|
|
44
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
45
|
-
"@babel/preset-env": "^7.
|
|
46
|
-
"@babel/preset-react": "^7.
|
|
47
|
-
"@babel/preset-typescript": "^7.
|
|
48
|
-
"@webiny/cli": "^5.
|
|
49
|
-
"@webiny/project-utils": "^5.
|
|
43
|
+
"@babel/cli": "^7.16.0",
|
|
44
|
+
"@babel/core": "^7.16.0",
|
|
45
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
46
|
+
"@babel/preset-env": "^7.16.4",
|
|
47
|
+
"@babel/preset-react": "^7.16.0",
|
|
48
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
49
|
+
"@webiny/cli": "^5.22.0-beta.0",
|
|
50
|
+
"@webiny/project-utils": "^5.22.0-beta.0",
|
|
50
51
|
"babel-plugin-lodash": "^3.3.4",
|
|
51
52
|
"rimraf": "^3.0.2",
|
|
52
53
|
"typescript": "^4.1.3"
|
|
@@ -66,5 +67,5 @@
|
|
|
66
67
|
]
|
|
67
68
|
}
|
|
68
69
|
},
|
|
69
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "487330472a07000c4845340f3b3dfa6b3ae98944"
|
|
70
71
|
}
|
|
@@ -4,6 +4,7 @@ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized
|
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
+
import { nanoid } from "nanoid";
|
|
7
8
|
import { Plugin } from "@webiny/plugins";
|
|
8
9
|
export var ApolloLinkPlugin = /*#__PURE__*/function (_Plugin) {
|
|
9
10
|
_inherits(ApolloLinkPlugin, _Plugin);
|
|
@@ -21,16 +22,23 @@ export var ApolloLinkPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
21
22
|
|
|
22
23
|
_defineProperty(_assertThisInitialized(_this), "factory", void 0);
|
|
23
24
|
|
|
25
|
+
_defineProperty(_assertThisInitialized(_this), "cache", void 0);
|
|
26
|
+
|
|
24
27
|
_this.factory = factory;
|
|
25
|
-
_this.cacheKey =
|
|
28
|
+
_this.cacheKey = nanoid();
|
|
26
29
|
return _this;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
_createClass(ApolloLinkPlugin, [{
|
|
30
33
|
key: "createLink",
|
|
31
34
|
value: function createLink() {
|
|
35
|
+
if (this.cache) {
|
|
36
|
+
return this.cache;
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
if (typeof this.factory === "function") {
|
|
33
|
-
|
|
40
|
+
this.cache = this.factory();
|
|
41
|
+
return this.cache;
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
throw Error("Missing ApolloLinkFactory in plugin \"".concat(this.name, "\"! Either pass a factory to ApolloLinkPlugin constructor or extend the class and override the \"createLink\" method."));
|
|
@@ -9,7 +9,7 @@ import { IconButton } from "@webiny/ui/Button";
|
|
|
9
9
|
import { Typography } from "@webiny/ui/Typography";
|
|
10
10
|
import { i18n } from "../../i18n";
|
|
11
11
|
import { OverlayWrapper, Pre } from "./StyledComponents";
|
|
12
|
-
import { ReactComponent as CloseIcon } from "
|
|
12
|
+
import { ReactComponent as CloseIcon } from "./assets/close_24px.svg";
|
|
13
13
|
var t = i18n.ns("app/graphql/error-overlay");
|
|
14
14
|
var ENVIRONMENT_VARIABLES_ARTICLE_LINK = "https://www.webiny.com/docs/how-to-guides/environment-variables";
|
|
15
15
|
|