@lvce-editor/renderer-process 30.68.13 → 30.68.14
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/dist/rendererProcessMain.js +12 -5
- package/package.json +1 -1
|
@@ -3215,9 +3215,9 @@ const set$c = (viewletId, instance) => {
|
|
|
3215
3215
|
};
|
|
3216
3216
|
|
|
3217
3217
|
const getEventListenerOptions = (eventName, value) => {
|
|
3218
|
-
if (value.passive) {
|
|
3218
|
+
if (value.passive === true || value.passive === false) {
|
|
3219
3219
|
return {
|
|
3220
|
-
passive:
|
|
3220
|
+
passive: value.passive
|
|
3221
3221
|
};
|
|
3222
3222
|
}
|
|
3223
3223
|
if (value.capture) {
|
|
@@ -3269,9 +3269,9 @@ const getWrappedListener = (listener, returnValue) => {
|
|
|
3269
3269
|
|
|
3270
3270
|
const attachedListeners = new WeakMap();
|
|
3271
3271
|
const getOptions = fn => {
|
|
3272
|
-
if (fn.passive) {
|
|
3272
|
+
if (fn.passive === true || fn.passive === false) {
|
|
3273
3273
|
return {
|
|
3274
|
-
passive:
|
|
3274
|
+
passive: fn.passive
|
|
3275
3275
|
};
|
|
3276
3276
|
}
|
|
3277
3277
|
if (fn.capture) {
|
|
@@ -3305,7 +3305,7 @@ const attachEvent = ($Node, eventMap, key, value, newEventMap) => {
|
|
|
3305
3305
|
console.warn('listener not found', value);
|
|
3306
3306
|
return;
|
|
3307
3307
|
}
|
|
3308
|
-
const options = getEventListenerOptions(key,
|
|
3308
|
+
const options = getEventListenerOptions(key, listener);
|
|
3309
3309
|
const wrapped = getWrappedListener(listener, eventMap.returnValue);
|
|
3310
3310
|
$Node.addEventListener(keyLower, wrapped, options);
|
|
3311
3311
|
listenersByEvent.set(keyLower, {
|
|
@@ -11558,6 +11558,12 @@ const getStorage = storageType => {
|
|
|
11558
11558
|
}
|
|
11559
11559
|
};
|
|
11560
11560
|
|
|
11561
|
+
const getAll = storageType => {
|
|
11562
|
+
const storage = getStorage(storageType);
|
|
11563
|
+
return {
|
|
11564
|
+
...storage
|
|
11565
|
+
};
|
|
11566
|
+
};
|
|
11561
11567
|
const getItem = (storageType, key) => {
|
|
11562
11568
|
const storage = getStorage(storageType);
|
|
11563
11569
|
return storage.getItem(key) || undefined;
|
|
@@ -12138,6 +12144,7 @@ const commandMap = {
|
|
|
12138
12144
|
'WebRtc.startWebRtcAudioStream': startWebRtcAudioStream,
|
|
12139
12145
|
'WebRtc.stopWebRtcAudioStream': stopWebRtcAudioStream,
|
|
12140
12146
|
'WebStorage.clear': clear,
|
|
12147
|
+
'WebStorage.getAll': getAll,
|
|
12141
12148
|
'WebStorage.getItem': getItem,
|
|
12142
12149
|
'WebStorage.setItem': setItem,
|
|
12143
12150
|
'WebStorage.setJsonObjects': setJsonObjects,
|