@lvce-editor/renderer-process 30.70.3 → 30.70.4
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 +15 -2
- package/package.json +1 -1
|
@@ -5232,7 +5232,7 @@ const create$t = (uri, top, left) => {
|
|
|
5232
5232
|
$ImagePreviewImage
|
|
5233
5233
|
};
|
|
5234
5234
|
};
|
|
5235
|
-
const update = (state, uri) => {
|
|
5235
|
+
const update$1 = (state, uri) => {
|
|
5236
5236
|
state.$ImagePreviewImage.uri = uri;
|
|
5237
5237
|
};
|
|
5238
5238
|
const dispose$h = state => {
|
|
@@ -5244,7 +5244,7 @@ const ImagePreview$1 = {
|
|
|
5244
5244
|
create: create$t,
|
|
5245
5245
|
dispose: dispose$h,
|
|
5246
5246
|
showError,
|
|
5247
|
-
update
|
|
5247
|
+
update: update$1
|
|
5248
5248
|
};
|
|
5249
5249
|
|
|
5250
5250
|
/**
|
|
@@ -10882,6 +10882,18 @@ const dispose$3 = id => {
|
|
|
10882
10882
|
close$1($Notification);
|
|
10883
10883
|
}
|
|
10884
10884
|
};
|
|
10885
|
+
const update = (id, message) => {
|
|
10886
|
+
const $Notification = document.getElementById(id);
|
|
10887
|
+
if (!$Notification?.classList.contains('Notification')) {
|
|
10888
|
+
return false;
|
|
10889
|
+
}
|
|
10890
|
+
const $Message = $Notification.querySelector('.NotificationMessage');
|
|
10891
|
+
if (!$Message) {
|
|
10892
|
+
return false;
|
|
10893
|
+
}
|
|
10894
|
+
$Message.textContent = message;
|
|
10895
|
+
return true;
|
|
10896
|
+
};
|
|
10885
10897
|
|
|
10886
10898
|
const createObjectUrl = blob => {
|
|
10887
10899
|
return URL.createObjectURL(blob);
|
|
@@ -12335,6 +12347,7 @@ const commandMap = {
|
|
|
12335
12347
|
'Notification.createWithOptions': createWithOptions,
|
|
12336
12348
|
'Notification.dispose': dispose$3,
|
|
12337
12349
|
'Notification.showWithOptions': showWithOptions,
|
|
12350
|
+
'Notification.update': update,
|
|
12338
12351
|
'ObjectUrl.create': createObjectUrl,
|
|
12339
12352
|
'ObjectUrl.revoke': revokeObjectUrl,
|
|
12340
12353
|
'OffscreenCanvas.create': create$2,
|