@blaze-cms/admin 0.146.0-core-styles.42 → 0.146.0-node18.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/CHANGELOG.md +11 -166
- package/lib/components/LeaveAction/LeaveAction.js +4 -3
- package/lib/components/LeaveAction/LeaveAction.js.map +1 -1
- package/lib/components/PageHeader/PageHeader.js +1 -0
- package/lib/components/PageHeader/PageHeader.js.map +1 -1
- package/lib/utils/build-interface.js +10 -7
- package/lib/utils/build-interface.js.map +1 -1
- package/lib-es/components/LeaveAction/LeaveAction.js +4 -3
- package/lib-es/components/LeaveAction/LeaveAction.js.map +1 -1
- package/lib-es/utils/build-interface.js +5 -3
- package/lib-es/utils/build-interface.js.map +1 -1
- package/package.json +27 -31
- package/src/components/LeaveAction/LeaveAction.js +6 -3
- package/src/utils/build-interface.js +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,180 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [0.146.0-
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [0.146.0-core-styles.41](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.40...v0.146.0-core-styles.41) (2024-12-16)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [0.146.0-core-styles.40](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.39...v0.146.0-core-styles.40) (2024-12-13)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# [0.146.0-core-styles.38](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.37...v0.146.0-core-styles.38) (2024-11-20)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [0.146.0-core-styles.37](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.36...v0.146.0-core-styles.37) (2024-11-12)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# [0.146.0-core-styles.36](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.35...v0.146.0-core-styles.36) (2024-11-07)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# [0.146.0-core-styles.35](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.34...v0.146.0-core-styles.35) (2024-11-06)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
# [0.146.0-core-styles.33](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.32...v0.146.0-core-styles.33) (2024-11-05)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
# [0.146.0-core-styles.32](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.31...v0.146.0-core-styles.32) (2024-10-31)
|
|
71
|
-
|
|
72
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
# [0.146.0-core-styles.30](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.29...v0.146.0-core-styles.30) (2024-10-29)
|
|
79
|
-
|
|
80
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
# [0.146.0-core-styles.26](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.25...v0.146.0-core-styles.26) (2024-10-28)
|
|
87
|
-
|
|
88
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
# [0.146.0-core-styles.25](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.24...v0.146.0-core-styles.25) (2024-10-25)
|
|
95
|
-
|
|
96
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
# [0.146.0-core-styles.23](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.22...v0.146.0-core-styles.23) (2024-10-23)
|
|
103
|
-
|
|
104
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
# [0.146.0-core-styles.21](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.20...v0.146.0-core-styles.21) (2024-10-18)
|
|
111
|
-
|
|
112
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
# [0.146.0-core-styles.11](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.10...v0.146.0-core-styles.11) (2024-10-01)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
# [0.146.0-core-styles.10](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.9...v0.146.0-core-styles.10) (2024-09-25)
|
|
127
|
-
|
|
128
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
# [0.146.0-core-styles.8](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.7...v0.146.0-core-styles.8) (2024-09-24)
|
|
135
|
-
|
|
136
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
# [0.146.0-core-styles.7](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.6...v0.146.0-core-styles.7) (2024-09-20)
|
|
143
|
-
|
|
144
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
# [0.146.0-core-styles.6](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.5...v0.146.0-core-styles.6) (2024-09-20)
|
|
151
|
-
|
|
152
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
153
|
-
|
|
154
|
-
|
|
6
|
+
# [0.146.0-node18.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18.0) (2025-03-12)
|
|
155
7
|
|
|
156
8
|
|
|
9
|
+
### Bug Fixes
|
|
157
10
|
|
|
158
|
-
|
|
11
|
+
* bumped apollo versions ([b371dc7](https://github.com/thebyte9/blaze/commit/b371dc7e7bbe814a0cc4d57af2b959ab5e1b1bfd))
|
|
12
|
+
* fixed more tests ([46a2fb9](https://github.com/thebyte9/blaze/commit/46a2fb9467f9f3c9cf320c9caf36c66503cc1f49))
|
|
13
|
+
* fixed remaining failing tests ([8a5963f](https://github.com/thebyte9/blaze/commit/8a5963ff8a0bf615a2ced9fb77b8986a9b05d80c))
|
|
14
|
+
* more test fixes ([a2a2f7a](https://github.com/thebyte9/blaze/commit/a2a2f7a650bb2c995660ba8e88e2d8f1c54586d7))
|
|
15
|
+
* udpated yarn lock ([0cd4fa4](https://github.com/thebyte9/blaze/commit/0cd4fa4a185fca4b80b57e472badb771dd649ec2))
|
|
16
|
+
* updated with dev ([90f545f](https://github.com/thebyte9/blaze/commit/90f545f1beabb35e26ba6fb2b45a7a0dfd072927))
|
|
17
|
+
* updated with dev ([729bb6e](https://github.com/thebyte9/blaze/commit/729bb6ee7e87946081d51564a4ab45538f7be1e7))
|
|
18
|
+
* updated with latest ([21cde6f](https://github.com/thebyte9/blaze/commit/21cde6f157c9279ed1eccb326870547821bc3dde))
|
|
159
19
|
|
|
160
20
|
|
|
161
21
|
### Features
|
|
162
22
|
|
|
163
23
|
* add generic loading component ([#4477](https://github.com/thebyte9/blaze/issues/4477)) ([70a84ea](https://github.com/thebyte9/blaze/commit/70a84ea25aba26eed16bbb2bffdd805b2894dc71))
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
# [0.146.0-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.145.1-core-styles.1...v0.146.0-core-styles.0) (2024-09-03)
|
|
170
|
-
|
|
171
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
## [0.145.1-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.145.1-core-styles.0) (2024-08-22)
|
|
178
|
-
|
|
179
|
-
**Note:** Version bump only for package @blaze-cms/admin
|
|
24
|
+
* updated react to 18 ([9335f84](https://github.com/thebyte9/blaze/commit/9335f8432b376494501abb9c3deef1ddaa9b35a8))
|
|
180
25
|
|
|
181
26
|
|
|
182
27
|
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _client = require("react-dom/client");
|
|
11
11
|
var _modal = _interopRequireDefault(require("@blaze-react/modal"));
|
|
12
12
|
var LeaveAction = function LeaveAction(message, callback) {
|
|
13
13
|
var container = document.getElementById('leave-container');
|
|
@@ -17,8 +17,9 @@ var LeaveAction = function LeaveAction(message, callback) {
|
|
|
17
17
|
container.id = 'leave-container';
|
|
18
18
|
document.body.appendChild(container);
|
|
19
19
|
}
|
|
20
|
+
var root = (0, _client.createRoot)(container);
|
|
20
21
|
var closeModal = function closeModal(callbackState) {
|
|
21
|
-
|
|
22
|
+
root.unmount();
|
|
22
23
|
callback(callbackState);
|
|
23
24
|
};
|
|
24
25
|
var alertActions = [{
|
|
@@ -29,7 +30,7 @@ var LeaveAction = function LeaveAction(message, callback) {
|
|
|
29
30
|
modifiers: ['small'],
|
|
30
31
|
textButton: 'Leave'
|
|
31
32
|
}];
|
|
32
|
-
|
|
33
|
+
root.render(/*#__PURE__*/_react["default"].createElement(_modal["default"], {
|
|
33
34
|
actions: alertActions,
|
|
34
35
|
onClose: function onClose() {
|
|
35
36
|
return closeModal(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeaveAction.js","names":["_react","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"file":"LeaveAction.js","names":["_react","_interopRequireDefault","require","_client","_modal","LeaveAction","message","callback","container","document","getElementById","createElement","setAttribute","id","body","appendChild","root","createRoot","closeModal","callbackState","unmount","alertActions","event","stopPropagation","modifiers","textButton","render","actions","onClose","isAlert","_default","exports"],"sources":["../../../src/components/LeaveAction/LeaveAction.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Modal from '@blaze-react/modal';\n\nconst LeaveAction = (message, callback) => {\n let container = document.getElementById('leave-container');\n\n if (!container) {\n container = document.createElement('div');\n container.setAttribute('confirmation-modal', '');\n container.id = 'leave-container';\n document.body.appendChild(container);\n }\n\n const root = createRoot(container);\n\n const closeModal = callbackState => {\n root.unmount();\n callback(callbackState);\n };\n\n const alertActions = [\n {\n callback: event => {\n event.stopPropagation();\n closeModal(true);\n },\n modifiers: ['small'],\n textButton: 'Leave'\n }\n ];\n\n root.render(\n <Modal actions={alertActions} onClose={() => closeModal(false)} isAlert>\n <p>{message}</p>\n </Modal>,\n container\n );\n};\n\nexport default LeaveAction;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAMG,WAAW,GAAG,SAAdA,WAAWA,CAAIC,OAAO,EAAEC,QAAQ,EAAK;EACzC,IAAIC,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAC,iBAAiB,CAAC;EAE1D,IAAI,CAACF,SAAS,EAAE;IACdA,SAAS,GAAGC,QAAQ,CAACE,aAAa,CAAC,KAAK,CAAC;IACzCH,SAAS,CAACI,YAAY,CAAC,oBAAoB,EAAE,EAAE,CAAC;IAChDJ,SAAS,CAACK,EAAE,GAAG,iBAAiB;IAChCJ,QAAQ,CAACK,IAAI,CAACC,WAAW,CAACP,SAAS,CAAC;EACtC;EAEA,IAAMQ,IAAI,GAAG,IAAAC,kBAAU,EAACT,SAAS,CAAC;EAElC,IAAMU,UAAU,GAAG,SAAbA,UAAUA,CAAGC,aAAa,EAAI;IAClCH,IAAI,CAACI,OAAO,CAAC,CAAC;IACdb,QAAQ,CAACY,aAAa,CAAC;EACzB,CAAC;EAED,IAAME,YAAY,GAAG,CACnB;IACEd,QAAQ,EAAE,SAAVA,QAAQA,CAAEe,KAAK,EAAI;MACjBA,KAAK,CAACC,eAAe,CAAC,CAAC;MACvBL,UAAU,CAAC,IAAI,CAAC;IAClB,CAAC;IACDM,SAAS,EAAE,CAAC,OAAO,CAAC;IACpBC,UAAU,EAAE;EACd,CAAC,CACF;EAEDT,IAAI,CAACU,MAAM,cACT1B,MAAA,YAAAW,aAAA,CAACP,MAAA,WAAK;IAACuB,OAAO,EAAEN,YAAa;IAACO,OAAO,EAAE,SAATA,OAAOA,CAAA;MAAA,OAAQV,UAAU,CAAC,KAAK,CAAC;IAAA,CAAC;IAACW,OAAO;EAAA,gBACrE7B,MAAA,YAAAW,aAAA,YAAIL,OAAW,CACV,CAAC,EACRE,SACF,CAAC;AACH,CAAC;AAAC,IAAAsB,QAAA,GAAAC,OAAA,cAEa1B,WAAW","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
require("core-js/modules/es.array.map.js");
|
|
10
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
11
|
var _react = _interopRequireDefault(require("react"));
|
|
11
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
13
|
var _MetaTitle = _interopRequireDefault(require("../MetaTitle/MetaTitle"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.js","names":["_react","_interopRequireDefault","require","_propTypes","_MetaTitle","PageHeader","_ref","title","subtitle","children","pageName","onViewUrl","createElement","Fragment","className","onClick","role","propTypes","PropTypes","string","isRequired","oneOfType","array","object","func","defaultProps","PageHeaderActions","_ref2","React","Children","map","child","cloneElement","Actions","_default","exports"],"sources":["../../../src/components/PageHeader/PageHeader.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport MetaTitle from '../MetaTitle/MetaTitle';\n\nconst PageHeader = ({ title, subtitle, children, pageName, onViewUrl }) => (\n <>\n <MetaTitle title={title} pageName={pageName} />\n <div className=\"page-header--wrapper\">\n <div className=\"page-header page-header--sticky\">\n {onViewUrl ? (\n <div\n className=\"page-header__heading page-header__heading--active\"\n onClick={onViewUrl}\n role=\"button\">\n {title}\n </div>\n ) : (\n <div className=\"page-header__heading\">{title}</div>\n )}\n <div className=\"page-header__button\">{children}</div>\n </div>\n <div className=\"page-header page-header--base\">\n <div className=\"page-header__subheading\">{subtitle}</div>\n </div>\n </div>\n </>\n);\n\nPageHeader.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n pageName: PropTypes.string,\n onViewUrl: PropTypes.func\n};\n\nPageHeader.defaultProps = {\n subtitle: '',\n children: '',\n pageName: '',\n onViewUrl: null\n};\n\nconst PageHeaderActions = ({ children }) => (\n <>{React.Children.map(children, child => child && React.cloneElement(child))}</>\n);\n\nPageHeaderActions.propTypes = {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired\n};\n\nPageHeader.Actions = PageHeaderActions;\n\nexport default PageHeader;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PageHeader.js","names":["_react","_interopRequireDefault","require","_propTypes","_MetaTitle","PageHeader","_ref","title","subtitle","children","pageName","onViewUrl","createElement","Fragment","className","onClick","role","propTypes","PropTypes","string","isRequired","oneOfType","array","object","func","defaultProps","PageHeaderActions","_ref2","React","Children","map","child","cloneElement","Actions","_default","exports"],"sources":["../../../src/components/PageHeader/PageHeader.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport MetaTitle from '../MetaTitle/MetaTitle';\n\nconst PageHeader = ({ title, subtitle, children, pageName, onViewUrl }) => (\n <>\n <MetaTitle title={title} pageName={pageName} />\n <div className=\"page-header--wrapper\">\n <div className=\"page-header page-header--sticky\">\n {onViewUrl ? (\n <div\n className=\"page-header__heading page-header__heading--active\"\n onClick={onViewUrl}\n role=\"button\">\n {title}\n </div>\n ) : (\n <div className=\"page-header__heading\">{title}</div>\n )}\n <div className=\"page-header__button\">{children}</div>\n </div>\n <div className=\"page-header page-header--base\">\n <div className=\"page-header__subheading\">{subtitle}</div>\n </div>\n </div>\n </>\n);\n\nPageHeader.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n pageName: PropTypes.string,\n onViewUrl: PropTypes.func\n};\n\nPageHeader.defaultProps = {\n subtitle: '',\n children: '',\n pageName: '',\n onViewUrl: null\n};\n\nconst PageHeaderActions = ({ children }) => (\n <>{React.Children.map(children, child => child && React.cloneElement(child))}</>\n);\n\nPageHeaderActions.propTypes = {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired\n};\n\nPageHeader.Actions = PageHeaderActions;\n\nexport default PageHeader;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAMG,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA;EAAA,IAAMC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAEC,SAAS,GAAAL,IAAA,CAATK,SAAS;EAAA,oBAClEX,MAAA,YAAAY,aAAA,CAAAZ,MAAA,YAAAa,QAAA,qBACEb,MAAA,YAAAY,aAAA,CAACR,UAAA,WAAS;IAACG,KAAK,EAAEA,KAAM;IAACG,QAAQ,EAAEA;EAAS,CAAE,CAAC,eAC/CV,MAAA,YAAAY,aAAA;IAAKE,SAAS,EAAC;EAAsB,gBACnCd,MAAA,YAAAY,aAAA;IAAKE,SAAS,EAAC;EAAiC,GAC7CH,SAAS,gBACRX,MAAA,YAAAY,aAAA;IACEE,SAAS,EAAC,mDAAmD;IAC7DC,OAAO,EAAEJ,SAAU;IACnBK,IAAI,EAAC;EA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CAAC,CAACH,qBAAS,CAACI,KAAK,EAAEJ,qBAAS,CAACK,MAAM,CAAC,CAAC,CAACH;AACrE,CAAC;AAEDf,UAAU,CAAC4B,OAAO,GAAGP,iBAAiB;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAExB9B,UAAU","ignoreList":[]}
|
|
@@ -8,10 +8,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports["default"] = buildInterface;
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
require("core-js/modules/es.array.map.js");
|
|
11
|
+
require("core-js/modules/es.object.to-string.js");
|
|
11
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
13
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
14
|
+
var _client = require("react-dom/client");
|
|
15
|
+
var _client2 = require("@apollo/client");
|
|
15
16
|
var _reactRouterDom = require("react-router-dom");
|
|
16
17
|
var _history = require("history");
|
|
17
18
|
var _toaster = require("@blaze-react/toaster");
|
|
@@ -23,7 +24,7 @@ function buildInterface(_x) {
|
|
|
23
24
|
}
|
|
24
25
|
function _buildInterface() {
|
|
25
26
|
_buildInterface = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(app) {
|
|
26
|
-
var Layout, routes, client, browserHistory;
|
|
27
|
+
var Layout, routes, client, browserHistory, container, root;
|
|
27
28
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
28
29
|
while (1) switch (_context.prev = _context.next) {
|
|
29
30
|
case 0:
|
|
@@ -37,9 +38,11 @@ function _buildInterface() {
|
|
|
37
38
|
_context.next = 8;
|
|
38
39
|
return (0, _coreAuthUi.setupCheckAccessToken)(client);
|
|
39
40
|
case 8:
|
|
40
|
-
|
|
41
|
+
container = document.getElementById('root');
|
|
42
|
+
root = (0, _client.createRoot)(container);
|
|
43
|
+
root.render(/*#__PURE__*/_react["default"].createElement(_coreErrorsUi["default"], {
|
|
41
44
|
app: app
|
|
42
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement(_client2.ApolloProvider, {
|
|
43
46
|
client: client
|
|
44
47
|
}, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Router, {
|
|
45
48
|
history: browserHistory
|
|
@@ -68,8 +71,8 @@ function _buildInterface() {
|
|
|
68
71
|
exact: exact,
|
|
69
72
|
key: key
|
|
70
73
|
});
|
|
71
|
-
})))))))))
|
|
72
|
-
case
|
|
74
|
+
}))))))))));
|
|
75
|
+
case 11:
|
|
73
76
|
case "end":
|
|
74
77
|
return _context.stop();
|
|
75
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-interface.js","names":["_react","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"file":"build-interface.js","names":["_react","_interopRequireDefault","require","_client","_client2","_reactRouterDom","_history","_toaster","_coreErrorsUi","_coreAuthUi","_LeaveAction","buildInterface","_x","_buildInterface","apply","arguments","_asyncToGenerator2","_regenerator","mark","_callee","app","Layout","routes","client","browserHistory","container","root","wrap","_callee$","_context","prev","next","init","getLayout","getRoutes","createClient","createBrowserHistory","setupCheckAccessToken","document","getElementById","createRoot","render","createElement","ApolloProvider","Router","history","BrowserRouter","getUserConfirmation","message","callback","LeaveAction","ToastProvider","Suspense","fallback","Switch","map","_ref","component","path","exact","key","redirect","Redirect","to","from","Route","stop"],"sources":["../../src/utils/build-interface.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { ApolloProvider } from '@apollo/client';\nimport { Router, Switch, Route, Redirect, BrowserRouter } from 'react-router-dom';\nimport { createBrowserHistory } from 'history';\nimport { ToastProvider } from '@blaze-react/toaster';\nimport ErrorBoundary from '@blaze-cms/core-errors-ui';\nimport { setupCheckAccessToken } from '@blaze-cms/core-auth-ui';\nimport LeaveAction from '../components/LeaveAction';\n\nexport default async function buildInterface(app) {\n await app.init();\n\n const Layout = app.getLayout();\n const routes = app.getRoutes();\n const client = app.createClient();\n const browserHistory = createBrowserHistory();\n\n await setupCheckAccessToken(client);\n const container = document.getElementById('root');\n const root = createRoot(container);\n\n root.render(\n <ErrorBoundary app={app}>\n <ApolloProvider client={client}>\n <Router history={browserHistory}>\n <BrowserRouter\n getUserConfirmation={(message, callback) => LeaveAction(message, callback)}>\n <ToastProvider>\n <Layout>\n <React.Suspense fallback={() => <div>loading...</div>}>\n <Switch>\n {routes.map(({ component, path, exact, key, redirect }) =>\n redirect ? (\n <Redirect to={redirect} from={path} exact={exact} key={key} />\n ) : (\n <Route component={component} path={path} exact={exact} key={key} />\n )\n )}\n </Switch>\n </React.Suspense>\n </Layout>\n </ToastProvider>\n </BrowserRouter>\n </Router>\n </ApolloProvider>\n </ErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAoD,SAEtBS,cAAcA,CAAAC,EAAA;EAAA,OAAAC,eAAA,CAAAC,KAAA,OAAAC,SAAA;AAAA;AAAA,SAAAF,gBAAA;EAAAA,eAAA,OAAAG,kBAAA,0BAAAC,YAAA,YAAAC,IAAA,CAA7B,SAAAC,QAA8BC,GAAG;IAAA,IAAAC,MAAA,EAAAC,MAAA,EAAAC,MAAA,EAAAC,cAAA,EAAAC,SAAA,EAAAC,IAAA;IAAA,OAAAT,YAAA,YAAAU,IAAA,UAAAC,SAAAC,QAAA;MAAA,k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K,YAAe,CAAC;YAAA;UAAC,gBACpD1C,MAAA,YAAA0C,aAAA,CAACrC,eAAA,CAAAiD,MAAM,QACJhC,MAAM,CAACiC,GAAG,CAAC,UAAAC,IAAA;YAAA,IAAGC,SAAS,GAAAD,IAAA,CAATC,SAAS;cAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;cAAEC,KAAK,GAAAH,IAAA,CAALG,KAAK;cAAEC,GAAG,GAAAJ,IAAA,CAAHI,GAAG;cAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;YAAA,OAClDA,QAAQ,gBACN7D,MAAA,YAAA0C,aAAA,CAACrC,eAAA,CAAAyD,QAAQ;cAACC,EAAE,EAAEF,QAAS;cAACG,IAAI,EAAEN,IAAK;cAACC,KAAK,EAAEA,KAAM;cAACC,GAAG,EAAEA;YAAI,CAAE,CAAC,gBAE9D5D,MAAA,YAAA0C,aAAA,CAACrC,eAAA,CAAA4D,KAAK;cAACR,SAAS,EAAEA,SAAU;cAACC,IAAI,EAAEA,IAAK;cAACC,KAAK,EAAEA,KAAM;cAACC,GAAG,EAAEA;YAAI,CAAE,CACnE;UAAA,CACH,CACM,CACM,CACV,CACK,CACF,CACT,CACM,CACH,CACjB,CAAC;QAAC;QAAA;UAAA,OAAA/B,QAAA,CAAAqC,IAAA;MAAA;IAAA,GAAA/C,OAAA;EAAA,CACH;EAAA,OAAAN,eAAA,CAAAC,KAAA,OAAAC,SAAA;AAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { createRoot } from 'react-dom/client';
|
|
3
3
|
import Modal from '@blaze-react/modal';
|
|
4
4
|
const LeaveAction = (message, callback) => {
|
|
5
5
|
let container = document.getElementById('leave-container');
|
|
@@ -9,8 +9,9 @@ const LeaveAction = (message, callback) => {
|
|
|
9
9
|
container.id = 'leave-container';
|
|
10
10
|
document.body.appendChild(container);
|
|
11
11
|
}
|
|
12
|
+
const root = createRoot(container);
|
|
12
13
|
const closeModal = callbackState => {
|
|
13
|
-
|
|
14
|
+
root.unmount();
|
|
14
15
|
callback(callbackState);
|
|
15
16
|
};
|
|
16
17
|
const alertActions = [{
|
|
@@ -21,7 +22,7 @@ const LeaveAction = (message, callback) => {
|
|
|
21
22
|
modifiers: ['small'],
|
|
22
23
|
textButton: 'Leave'
|
|
23
24
|
}];
|
|
24
|
-
|
|
25
|
+
root.render(/*#__PURE__*/React.createElement(Modal, {
|
|
25
26
|
actions: alertActions,
|
|
26
27
|
onClose: () => closeModal(false),
|
|
27
28
|
isAlert: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeaveAction.js","names":["React","
|
|
1
|
+
{"version":3,"file":"LeaveAction.js","names":["React","createRoot","Modal","LeaveAction","message","callback","container","document","getElementById","createElement","setAttribute","id","body","appendChild","root","closeModal","callbackState","unmount","alertActions","event","stopPropagation","modifiers","textButton","render","actions","onClose","isAlert"],"sources":["../../../src/components/LeaveAction/LeaveAction.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Modal from '@blaze-react/modal';\n\nconst LeaveAction = (message, callback) => {\n let container = document.getElementById('leave-container');\n\n if (!container) {\n container = document.createElement('div');\n container.setAttribute('confirmation-modal', '');\n container.id = 'leave-container';\n document.body.appendChild(container);\n }\n\n const root = createRoot(container);\n\n const closeModal = callbackState => {\n root.unmount();\n callback(callbackState);\n };\n\n const alertActions = [\n {\n callback: event => {\n event.stopPropagation();\n closeModal(true);\n },\n modifiers: ['small'],\n textButton: 'Leave'\n }\n ];\n\n root.render(\n <Modal actions={alertActions} onClose={() => closeModal(false)} isAlert>\n <p>{message}</p>\n </Modal>,\n container\n );\n};\n\nexport default LeaveAction;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,MAAMC,WAAW,GAAGA,CAACC,OAAO,EAAEC,QAAQ,KAAK;EACzC,IAAIC,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAC,iBAAiB,CAAC;EAE1D,IAAI,CAACF,SAAS,EAAE;IACdA,SAAS,GAAGC,QAAQ,CAACE,aAAa,CAAC,KAAK,CAAC;IACzCH,SAAS,CAACI,YAAY,CAAC,oBAAoB,EAAE,EAAE,CAAC;IAChDJ,SAAS,CAACK,EAAE,GAAG,iBAAiB;IAChCJ,QAAQ,CAACK,IAAI,CAACC,WAAW,CAACP,SAAS,CAAC;EACtC;EAEA,MAAMQ,IAAI,GAAGb,UAAU,CAACK,SAAS,CAAC;EAElC,MAAMS,UAAU,GAAGC,aAAa,IAAI;IAClCF,IAAI,CAACG,OAAO,CAAC,CAAC;IACdZ,QAAQ,CAACW,aAAa,CAAC;EACzB,CAAC;EAED,MAAME,YAAY,GAAG,CACnB;IACEb,QAAQ,EAAEc,KAAK,IAAI;MACjBA,KAAK,CAACC,eAAe,CAAC,CAAC;MACvBL,UAAU,CAAC,IAAI,CAAC;IAClB,CAAC;IACDM,SAAS,EAAE,CAAC,OAAO,CAAC;IACpBC,UAAU,EAAE;EACd,CAAC,CACF;EAEDR,IAAI,CAACS,MAAM,cACTvB,KAAA,CAAAS,aAAA,CAACP,KAAK;IAACsB,OAAO,EAAEN,YAAa;IAACO,OAAO,EAAEA,CAAA,KAAMV,UAAU,CAAC,KAAK,CAAE;IAACW,OAAO;EAAA,gBACrE1B,KAAA,CAAAS,aAAA,YAAIL,OAAW,CACV,CAAC,EACRE,SACF,CAAC;AACH,CAAC;AAED,eAAeH,WAAW","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { createRoot } from 'react-dom/client';
|
|
3
3
|
import { ApolloProvider } from '@apollo/client';
|
|
4
4
|
import { Router, Switch, Route, Redirect, BrowserRouter } from 'react-router-dom';
|
|
5
5
|
import { createBrowserHistory } from 'history';
|
|
@@ -14,7 +14,9 @@ export default async function buildInterface(app) {
|
|
|
14
14
|
const client = app.createClient();
|
|
15
15
|
const browserHistory = createBrowserHistory();
|
|
16
16
|
await setupCheckAccessToken(client);
|
|
17
|
-
|
|
17
|
+
const container = document.getElementById('root');
|
|
18
|
+
const root = createRoot(container);
|
|
19
|
+
root.render(/*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
18
20
|
app: app
|
|
19
21
|
}, /*#__PURE__*/React.createElement(ApolloProvider, {
|
|
20
22
|
client: client
|
|
@@ -40,6 +42,6 @@ export default async function buildInterface(app) {
|
|
|
40
42
|
path: path,
|
|
41
43
|
exact: exact,
|
|
42
44
|
key: key
|
|
43
|
-
}))))))))))
|
|
45
|
+
})))))))))));
|
|
44
46
|
}
|
|
45
47
|
//# sourceMappingURL=build-interface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-interface.js","names":["React","
|
|
1
|
+
{"version":3,"file":"build-interface.js","names":["React","createRoot","ApolloProvider","Router","Switch","Route","Redirect","BrowserRouter","createBrowserHistory","ToastProvider","ErrorBoundary","setupCheckAccessToken","LeaveAction","buildInterface","app","init","Layout","getLayout","routes","getRoutes","client","createClient","browserHistory","container","document","getElementById","root","render","createElement","history","getUserConfirmation","message","callback","Suspense","fallback","map","component","path","exact","key","redirect","to","from"],"sources":["../../src/utils/build-interface.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { ApolloProvider } from '@apollo/client';\nimport { Router, Switch, Route, Redirect, BrowserRouter } from 'react-router-dom';\nimport { createBrowserHistory } from 'history';\nimport { ToastProvider } from '@blaze-react/toaster';\nimport ErrorBoundary from '@blaze-cms/core-errors-ui';\nimport { setupCheckAccessToken } from '@blaze-cms/core-auth-ui';\nimport LeaveAction from '../components/LeaveAction';\n\nexport default async function buildInterface(app) {\n await app.init();\n\n const Layout = app.getLayout();\n const routes = app.getRoutes();\n const client = app.createClient();\n const browserHistory = createBrowserHistory();\n\n await setupCheckAccessToken(client);\n const container = document.getElementById('root');\n const root = createRoot(container);\n\n root.render(\n <ErrorBoundary app={app}>\n <ApolloProvider client={client}>\n <Router history={browserHistory}>\n <BrowserRouter\n getUserConfirmation={(message, callback) => LeaveAction(message, callback)}>\n <ToastProvider>\n <Layout>\n <React.Suspense fallback={() => <div>loading...</div>}>\n <Switch>\n {routes.map(({ component, path, exact, key, redirect }) =>\n redirect ? (\n <Redirect to={redirect} from={path} exact={exact} key={key} />\n ) : (\n <Route component={component} path={path} exact={exact} key={key} />\n )\n )}\n </Switch>\n </React.Suspense>\n </Layout>\n </ToastProvider>\n </BrowserRouter>\n </Router>\n </ApolloProvider>\n </ErrorBoundary>\n );\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,MAAM,EAAEC,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,aAAa,QAAQ,kBAAkB;AACjF,SAASC,oBAAoB,QAAQ,SAAS;AAC9C,SAASC,aAAa,QAAQ,sBAAsB;AACpD,OAAOC,aAAa,MAAM,2BAA2B;AACrD,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,OAAOC,WAAW,MAAM,2BAA2B;AAEnD,eAAe,eAAeC,cAAcA,CAACC,GAAG,EAAE;EAChD,MAAMA,GAAG,CAACC,IAAI,CAAC,CAAC;EAEhB,MAAMC,MAAM,GAAGF,GAAG,CAACG,SAAS,CAAC,CAAC;EAC9B,MAAMC,MAAM,GAAGJ,GAAG,CAACK,SAAS,CAAC,CAAC;EAC9B,MAAMC,MAAM,GAAGN,GAAG,CAACO,YAAY,CAAC,CAAC;EACjC,MAAMC,cAAc,GAAGd,oBAAoB,CAAC,CAAC;EAE7C,MAAMG,qBAAqB,CAACS,MAAM,CAAC;EACnC,MAAMG,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAC,MAAM,CAAC;EACjD,MAAMC,IAA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|
{
|
|
2
2
|
"name": "@blaze-cms/admin",
|
|
3
|
-
"version": "0.146.0-
|
|
3
|
+
"version": "0.146.0-node18.0",
|
|
4
4
|
"description": "Blaze example project",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"test": "jest",
|
|
13
|
-
"lint": "
|
|
13
|
+
"lint": "npm run lint:js",
|
|
14
14
|
"lint:js": "eslint .",
|
|
15
15
|
"clean": "rm -Rf ./lib/ && rm -Rf ./lib-es/",
|
|
16
16
|
"build:cjs": "BABEL_ENV=cjs ../../node_modules/.bin/babel ./src --out-dir ./lib --source-maps --root-mode upward",
|
|
17
17
|
"build:esm": "BABEL_ENV=esm ../../node_modules/.bin/babel ./src --out-dir ./lib-es --source-maps --root-mode upward",
|
|
18
|
-
"build": "
|
|
19
|
-
"build:clean": "
|
|
20
|
-
"prepublishOnly": "
|
|
21
|
-
"postpublish": "
|
|
18
|
+
"build": "npm run build:cjs && npm run build:esm",
|
|
19
|
+
"build:clean": "npm run clean && npm run build",
|
|
20
|
+
"prepublishOnly": "npm run build:clean",
|
|
21
|
+
"postpublish": "npm run clean"
|
|
22
22
|
},
|
|
23
23
|
"author": {
|
|
24
24
|
"email": "hello@thebyte9.com",
|
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@apollo/client": "3.
|
|
31
|
-
"@blaze-cms/admin-ui-utils": "0.146.0-
|
|
32
|
-
"@blaze-cms/core-errors-ui": "0.
|
|
33
|
-
"@blaze-cms/core-ui": "0.146.0-
|
|
34
|
-
"@blaze-cms/plugin-admin-core-ui": "0.146.0-
|
|
35
|
-
"@blaze-cms/plugin-auth-local-ui": "0.146.0-
|
|
36
|
-
"@blaze-cms/plugin-auth-ui": "0.146.0-
|
|
37
|
-
"@blaze-cms/plugin-data-ui": "0.146.0-
|
|
38
|
-
"@blaze-cms/plugin-google-maps-ui": "0.146.0-
|
|
39
|
-
"@blaze-cms/plugin-gtm-ui": "0.146.0-
|
|
40
|
-
"@blaze-cms/plugin-media-ui": "0.146.0-
|
|
41
|
-
"@blaze-cms/plugin-page-builder-ui": "0.146.0-
|
|
42
|
-
"@blaze-cms/react-form-builder": "0.146.0-
|
|
43
|
-
"@blaze-cms/setup-ui": "0.
|
|
44
|
-
"@blaze-react/alert": "0.
|
|
45
|
-
"@blaze-react/modal": "0.
|
|
46
|
-
"@blaze-react/toaster": "0.
|
|
30
|
+
"@apollo/client": "^3.9.2",
|
|
31
|
+
"@blaze-cms/admin-ui-utils": "0.146.0-node18.0",
|
|
32
|
+
"@blaze-cms/core-errors-ui": "0.146.0-node18.0",
|
|
33
|
+
"@blaze-cms/core-ui": "0.146.0-node18.0",
|
|
34
|
+
"@blaze-cms/plugin-admin-core-ui": "0.146.0-node18.0",
|
|
35
|
+
"@blaze-cms/plugin-auth-local-ui": "0.146.0-node18.0",
|
|
36
|
+
"@blaze-cms/plugin-auth-ui": "0.146.0-node18.0",
|
|
37
|
+
"@blaze-cms/plugin-data-ui": "0.146.0-node18.0",
|
|
38
|
+
"@blaze-cms/plugin-google-maps-ui": "0.146.0-node18.0",
|
|
39
|
+
"@blaze-cms/plugin-gtm-ui": "0.146.0-node18.0",
|
|
40
|
+
"@blaze-cms/plugin-media-ui": "0.146.0-node18.0",
|
|
41
|
+
"@blaze-cms/plugin-page-builder-ui": "0.146.0-node18.0",
|
|
42
|
+
"@blaze-cms/react-form-builder": "0.146.0-node18.0",
|
|
43
|
+
"@blaze-cms/setup-ui": "0.146.0-node18.0",
|
|
44
|
+
"@blaze-react/alert": "^0.7.0",
|
|
45
|
+
"@blaze-react/modal": "^0.7.0",
|
|
46
|
+
"@blaze-react/toaster": "^0.7.0",
|
|
47
47
|
"core-js": "^3.2.1",
|
|
48
|
-
"graphql": "^
|
|
48
|
+
"graphql": "^15.2.0",
|
|
49
49
|
"history": "^5.0.0",
|
|
50
50
|
"lodash.capitalize": "^4.2.1",
|
|
51
51
|
"react-helmet": "^6.1.0",
|
|
@@ -53,18 +53,14 @@
|
|
|
53
53
|
"react-router-dom": "^5.0.1",
|
|
54
54
|
"regenerator-runtime": "^0.13.3"
|
|
55
55
|
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"react": "^17.0.2",
|
|
58
|
-
"react-dom": "^17.0.2"
|
|
59
|
-
},
|
|
60
56
|
"peerDependencies": {
|
|
61
57
|
"prop-types": "^15.7.2",
|
|
62
|
-
"react": "^
|
|
63
|
-
"react-dom": "^
|
|
58
|
+
"react": "^18.2.0",
|
|
59
|
+
"react-dom": "^18.2.0"
|
|
64
60
|
},
|
|
65
61
|
"eslintIgnore": [
|
|
66
62
|
"lib/*",
|
|
67
63
|
"lib-es/*"
|
|
68
64
|
],
|
|
69
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "c60370714e89e0c96f2169d61e4c56bc542f7686"
|
|
70
66
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { createRoot } from 'react-dom/client';
|
|
3
3
|
import Modal from '@blaze-react/modal';
|
|
4
4
|
|
|
5
5
|
const LeaveAction = (message, callback) => {
|
|
6
6
|
let container = document.getElementById('leave-container');
|
|
7
|
+
|
|
7
8
|
if (!container) {
|
|
8
9
|
container = document.createElement('div');
|
|
9
10
|
container.setAttribute('confirmation-modal', '');
|
|
@@ -11,8 +12,10 @@ const LeaveAction = (message, callback) => {
|
|
|
11
12
|
document.body.appendChild(container);
|
|
12
13
|
}
|
|
13
14
|
|
|
15
|
+
const root = createRoot(container);
|
|
16
|
+
|
|
14
17
|
const closeModal = callbackState => {
|
|
15
|
-
|
|
18
|
+
root.unmount();
|
|
16
19
|
callback(callbackState);
|
|
17
20
|
};
|
|
18
21
|
|
|
@@ -27,7 +30,7 @@ const LeaveAction = (message, callback) => {
|
|
|
27
30
|
}
|
|
28
31
|
];
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
root.render(
|
|
31
34
|
<Modal actions={alertActions} onClose={() => closeModal(false)} isAlert>
|
|
32
35
|
<p>{message}</p>
|
|
33
36
|
</Modal>,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { createRoot } from 'react-dom/client';
|
|
3
3
|
import { ApolloProvider } from '@apollo/client';
|
|
4
4
|
import { Router, Switch, Route, Redirect, BrowserRouter } from 'react-router-dom';
|
|
5
5
|
import { createBrowserHistory } from 'history';
|
|
@@ -17,8 +17,10 @@ export default async function buildInterface(app) {
|
|
|
17
17
|
const browserHistory = createBrowserHistory();
|
|
18
18
|
|
|
19
19
|
await setupCheckAccessToken(client);
|
|
20
|
+
const container = document.getElementById('root');
|
|
21
|
+
const root = createRoot(container);
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
root.render(
|
|
22
24
|
<ErrorBoundary app={app}>
|
|
23
25
|
<ApolloProvider client={client}>
|
|
24
26
|
<Router history={browserHistory}>
|
|
@@ -28,13 +30,12 @@ export default async function buildInterface(app) {
|
|
|
28
30
|
<Layout>
|
|
29
31
|
<React.Suspense fallback={() => <div>loading...</div>}>
|
|
30
32
|
<Switch>
|
|
31
|
-
{routes.map(
|
|
32
|
-
|
|
33
|
-
redirect
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
)
|
|
33
|
+
{routes.map(({ component, path, exact, key, redirect }) =>
|
|
34
|
+
redirect ? (
|
|
35
|
+
<Redirect to={redirect} from={path} exact={exact} key={key} />
|
|
36
|
+
) : (
|
|
37
|
+
<Route component={component} path={path} exact={exact} key={key} />
|
|
38
|
+
)
|
|
38
39
|
)}
|
|
39
40
|
</Switch>
|
|
40
41
|
</React.Suspense>
|
|
@@ -43,7 +44,6 @@ export default async function buildInterface(app) {
|
|
|
43
44
|
</BrowserRouter>
|
|
44
45
|
</Router>
|
|
45
46
|
</ApolloProvider>
|
|
46
|
-
</ErrorBoundary
|
|
47
|
-
document.getElementById('root')
|
|
47
|
+
</ErrorBoundary>
|
|
48
48
|
);
|
|
49
49
|
}
|