@webiny/app-tenancy 5.20.0 → 5.22.0-beta.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/Tenancy.d.ts +3 -0
- package/Tenancy.js +20 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +16 -22
package/Tenancy.d.ts
ADDED
package/Tenancy.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { memo } from "react";
|
|
2
|
+
import { plugins } from "@webiny/plugins";
|
|
3
|
+
import { Provider } from "@webiny/app-admin";
|
|
4
|
+
import installation from "./plugins/installation";
|
|
5
|
+
import { TenancyProvider as ContextProvider } from "./contexts/Tenancy";
|
|
6
|
+
|
|
7
|
+
var TenancyProviderHOC = function TenancyProviderHOC(Component) {
|
|
8
|
+
return function TenancyProvider(_ref) {
|
|
9
|
+
var children = _ref.children;
|
|
10
|
+
return /*#__PURE__*/React.createElement(ContextProvider, null, /*#__PURE__*/React.createElement(Component, null, children));
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export var TenancyExtension = function TenancyExtension() {
|
|
15
|
+
plugins.register(installation);
|
|
16
|
+
return /*#__PURE__*/React.createElement(Provider, {
|
|
17
|
+
hoc: TenancyProviderHOC
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export var Tenancy = /*#__PURE__*/memo(TenancyExtension);
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-tenancy",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.0-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,30 +14,29 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@apollo/react-hooks": "3.1.5",
|
|
17
|
-
"@babel/runtime": "7.16.
|
|
18
|
-
"@emotion/styled": "10.0
|
|
17
|
+
"@babel/runtime": "7.16.7",
|
|
18
|
+
"@emotion/styled": "10.3.0",
|
|
19
19
|
"@types/react": "16.14.2",
|
|
20
|
-
"@webiny/app": "5.
|
|
21
|
-
"@webiny/app-admin": "5.
|
|
22
|
-
"@webiny/plugins": "5.
|
|
23
|
-
"@webiny/ui": "5.
|
|
20
|
+
"@webiny/app": "5.22.0-beta.1",
|
|
21
|
+
"@webiny/app-admin": "5.22.0-beta.1",
|
|
22
|
+
"@webiny/plugins": "5.22.0-beta.1",
|
|
23
|
+
"@webiny/ui": "5.22.0-beta.1",
|
|
24
24
|
"graphql-tag": "2.12.6",
|
|
25
25
|
"react": "16.14.0",
|
|
26
26
|
"react-dom": "16.14.0",
|
|
27
27
|
"store": "2.0.12"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/cli": "^7.
|
|
31
|
-
"@babel/core": "^7.
|
|
32
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
33
|
-
"@babel/preset-env": "^7.
|
|
34
|
-
"@babel/preset-react": "^7.
|
|
35
|
-
"@babel/preset-typescript": "^7.
|
|
36
|
-
"@webiny/cli": "^5.
|
|
37
|
-
"@webiny/project-utils": "^5.
|
|
30
|
+
"@babel/cli": "^7.16.0",
|
|
31
|
+
"@babel/core": "^7.16.0",
|
|
32
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
33
|
+
"@babel/preset-env": "^7.16.4",
|
|
34
|
+
"@babel/preset-react": "^7.16.0",
|
|
35
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
36
|
+
"@webiny/cli": "^5.22.0-beta.1",
|
|
37
|
+
"@webiny/project-utils": "^5.22.0-beta.1",
|
|
38
38
|
"babel-plugin-emotion": "^9.2.8",
|
|
39
39
|
"babel-plugin-lodash": "^3.3.4",
|
|
40
|
-
"babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
|
|
41
40
|
"rimraf": "^3.0.2",
|
|
42
41
|
"ttypescript": "^1.3.2",
|
|
43
42
|
"typescript": "^4.1.3"
|
|
@@ -50,10 +49,5 @@
|
|
|
50
49
|
"build": "yarn webiny run build",
|
|
51
50
|
"watch": "yarn webiny run watch"
|
|
52
51
|
},
|
|
53
|
-
"
|
|
54
|
-
"plugins": {
|
|
55
|
-
"removeViewBox": false
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"gitHead": "816632961750d4ae7f3af0d32d4e8a46c3f287a6"
|
|
52
|
+
"gitHead": "b651010b23f28b3ce1c27130713322ce65b32dcd"
|
|
59
53
|
}
|