ordering-components-external 13.2.16 → 13.2.17
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/_bundles/{7.ordering-component.6b92f3ab4699d251734f.js → 7.ordering-component.7ec1e035382ea280a237.js} +1 -1
- package/_bundles/{ordering-component.6b92f3ab4699d251734f.js → ordering-component.7ec1e035382ea280a237.js} +2 -2
- package/_modules/contexts/WebsocketContext/index.js +16 -6
- package/package.json +1 -1
- package/src/contexts/WebsocketContext/index.js +7 -3
- /package/_bundles/{0.ordering-component.6b92f3ab4699d251734f.js → 0.ordering-component.7ec1e035382ea280a237.js} +0 -0
- /package/_bundles/{1.ordering-component.6b92f3ab4699d251734f.js → 1.ordering-component.7ec1e035382ea280a237.js} +0 -0
- /package/_bundles/{2.ordering-component.6b92f3ab4699d251734f.js → 2.ordering-component.7ec1e035382ea280a237.js} +0 -0
- /package/_bundles/{4.ordering-component.6b92f3ab4699d251734f.js → 4.ordering-component.7ec1e035382ea280a237.js} +0 -0
- /package/_bundles/{5.ordering-component.6b92f3ab4699d251734f.js → 5.ordering-component.7ec1e035382ea280a237.js} +0 -0
- /package/_bundles/{6.ordering-component.6b92f3ab4699d251734f.js → 6.ordering-component.7ec1e035382ea280a237.js} +0 -0
- /package/_bundles/{7.ordering-component.6b92f3ab4699d251734f.js.LICENSE.txt → 7.ordering-component.7ec1e035382ea280a237.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-component.6b92f3ab4699d251734f.js → 8.ordering-component.7ec1e035382ea280a237.js} +0 -0
- /package/_bundles/{ordering-component.6b92f3ab4699d251734f.js.LICENSE.txt → ordering-component.7ec1e035382ea280a237.js.LICENSE.txt} +0 -0
|
@@ -75,12 +75,12 @@ var WebsocketProvider = exports.WebsocketProvider = function WebsocketProvider(_
|
|
|
75
75
|
(0, _react.useEffect)(function () {
|
|
76
76
|
if (session.auth) return;
|
|
77
77
|
var projectInputInterval = setInterval(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
78
|
-
var project;
|
|
78
|
+
var project, parsedProject;
|
|
79
79
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
80
80
|
while (1) switch (_context.prev = _context.next) {
|
|
81
81
|
case 0:
|
|
82
82
|
project = null;
|
|
83
|
-
if (!
|
|
83
|
+
if (!settings.use_root_point) {
|
|
84
84
|
_context.next = 7;
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
@@ -97,10 +97,20 @@ var WebsocketProvider = exports.WebsocketProvider = function WebsocketProvider(_
|
|
|
97
97
|
clearInterval(projectInputInterval);
|
|
98
98
|
case 10:
|
|
99
99
|
if (project) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
try {
|
|
101
|
+
parsedProject = JSON.parse(project);
|
|
102
|
+
setConfigs(function (prevConfigs) {
|
|
103
|
+
return _objectSpread(_objectSpread({}, prevConfigs), {}, {
|
|
104
|
+
project: parsedProject
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
} catch (error) {
|
|
108
|
+
setConfigs(function (prevConfigs) {
|
|
109
|
+
return _objectSpread(_objectSpread({}, prevConfigs), {}, {
|
|
110
|
+
project: project
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
}
|
|
104
114
|
clearInterval(projectInputInterval);
|
|
105
115
|
}
|
|
106
116
|
case 11:
|
package/package.json
CHANGED
|
@@ -41,15 +41,19 @@ export const WebsocketProvider = ({ settings, children, strategy, isAlsea }) =>
|
|
|
41
41
|
if (session.auth) return
|
|
42
42
|
const projectInputInterval = setInterval(async () => {
|
|
43
43
|
let project = null
|
|
44
|
-
if (
|
|
44
|
+
if (settings.use_root_point) {
|
|
45
45
|
project = await strategy.getItem('project_name')
|
|
46
46
|
} else {
|
|
47
47
|
await strategy.removeItem('project_name')
|
|
48
48
|
clearInterval(projectInputInterval)
|
|
49
49
|
}
|
|
50
50
|
if (project) {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
try {
|
|
52
|
+
const parsedProject = JSON.parse(project)
|
|
53
|
+
setConfigs((prevConfigs) => ({ ...prevConfigs, project: parsedProject }))
|
|
54
|
+
} catch (error) {
|
|
55
|
+
setConfigs((prevConfigs) => ({ ...prevConfigs, project }))
|
|
56
|
+
}
|
|
53
57
|
clearInterval(projectInputInterval)
|
|
54
58
|
}
|
|
55
59
|
}, 1000)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|