@cloud-app-dev/vidc 3.0.24 → 3.0.25
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/es/AppContext/index.js +4 -2
- package/es/Config/index.js +2 -1
- package/es/Config/utils.d.ts +2 -0
- package/es/Config/utils.js +10 -0
- package/es/Map/LoaderMap/index.js +1 -1
- package/package.json +1 -1
package/es/AppContext/index.js
CHANGED
|
@@ -156,14 +156,16 @@ function Provider(_ref) {
|
|
|
156
156
|
updateLoginStatus: updateLoginStatus,
|
|
157
157
|
updateStore: updateStore
|
|
158
158
|
};
|
|
159
|
-
},
|
|
159
|
+
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
160
|
+
[state.user, state.operation, state.loginStatus]);
|
|
160
161
|
return /*#__PURE__*/React.createElement(Context.Provider, {
|
|
161
162
|
value: providerValue
|
|
162
163
|
}, children, /*#__PURE__*/React.createElement(Sync, {
|
|
163
164
|
stateChange: stateChange,
|
|
164
165
|
storeChange: storeChange
|
|
165
166
|
}));
|
|
166
|
-
}
|
|
167
|
+
} // eslint-disable-next-line import/no-anonymous-default-export
|
|
168
|
+
|
|
167
169
|
|
|
168
170
|
export default {
|
|
169
171
|
Provider: Provider,
|
package/es/Config/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import produce from 'immer';
|
|
2
|
-
import { insertThemeStyle } from './utils';
|
|
2
|
+
import { insertThemeStyle, lock } from './utils';
|
|
3
3
|
var Config = {
|
|
4
4
|
app: produce({}, function () {}),
|
|
5
5
|
bs: produce({}, function () {}),
|
|
@@ -73,6 +73,7 @@ var LMConfig = function () {
|
|
|
73
73
|
return window['_CONFIG_'];
|
|
74
74
|
} else {
|
|
75
75
|
window['_CONFIG_'] = Config;
|
|
76
|
+
lock();
|
|
76
77
|
return Config;
|
|
77
78
|
}
|
|
78
79
|
}();
|
package/es/Config/utils.d.ts
CHANGED
package/es/Config/utils.js
CHANGED
|
@@ -40,4 +40,14 @@ export function insertThemeStyle(options) {
|
|
|
40
40
|
isInit = true;
|
|
41
41
|
document.head.appendChild(style);
|
|
42
42
|
}
|
|
43
|
+
}
|
|
44
|
+
export function lock() {
|
|
45
|
+
Object.defineProperty(window, '_CONFIG_', {
|
|
46
|
+
writable: false
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export function unlock() {
|
|
50
|
+
Object.defineProperty(window, '_CONFIG_', {
|
|
51
|
+
writable: true
|
|
52
|
+
});
|
|
43
53
|
}
|
|
@@ -31,7 +31,7 @@ function LoaderMap(_a) {
|
|
|
31
31
|
|
|
32
32
|
var glaobalKey = useMemo(function () {
|
|
33
33
|
return MAP_GLABAL_KEY ? MAP_GLABAL_KEY : Config.BSConfig.MAP_GLABAL_KEY || 'L';
|
|
34
|
-
}, []);
|
|
34
|
+
}, [MAP_GLABAL_KEY]);
|
|
35
35
|
var isL = useMemo(function () {
|
|
36
36
|
return glaobalKey === 'L';
|
|
37
37
|
}, [glaobalKey]);
|