@lvce-editor/renderer-process 30.70.2 → 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 +16 -2
- package/package.json +1 -1
|
@@ -4710,6 +4710,7 @@ const launchSyntaxHighlightingWorker = async port => {
|
|
|
4710
4710
|
await create$u({
|
|
4711
4711
|
method: ModuleWorkerWithMessagePort,
|
|
4712
4712
|
name: 'Syntax Highlighting Worker',
|
|
4713
|
+
parentName: 'Editor Worker',
|
|
4713
4714
|
port,
|
|
4714
4715
|
url: syntaxHighlightingWorkerUrl
|
|
4715
4716
|
});
|
|
@@ -5231,7 +5232,7 @@ const create$t = (uri, top, left) => {
|
|
|
5231
5232
|
$ImagePreviewImage
|
|
5232
5233
|
};
|
|
5233
5234
|
};
|
|
5234
|
-
const update = (state, uri) => {
|
|
5235
|
+
const update$1 = (state, uri) => {
|
|
5235
5236
|
state.$ImagePreviewImage.uri = uri;
|
|
5236
5237
|
};
|
|
5237
5238
|
const dispose$h = state => {
|
|
@@ -5243,7 +5244,7 @@ const ImagePreview$1 = {
|
|
|
5243
5244
|
create: create$t,
|
|
5244
5245
|
dispose: dispose$h,
|
|
5245
5246
|
showError,
|
|
5246
|
-
update
|
|
5247
|
+
update: update$1
|
|
5247
5248
|
};
|
|
5248
5249
|
|
|
5249
5250
|
/**
|
|
@@ -10881,6 +10882,18 @@ const dispose$3 = id => {
|
|
|
10881
10882
|
close$1($Notification);
|
|
10882
10883
|
}
|
|
10883
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
|
+
};
|
|
10884
10897
|
|
|
10885
10898
|
const createObjectUrl = blob => {
|
|
10886
10899
|
return URL.createObjectURL(blob);
|
|
@@ -12334,6 +12347,7 @@ const commandMap = {
|
|
|
12334
12347
|
'Notification.createWithOptions': createWithOptions,
|
|
12335
12348
|
'Notification.dispose': dispose$3,
|
|
12336
12349
|
'Notification.showWithOptions': showWithOptions,
|
|
12350
|
+
'Notification.update': update,
|
|
12337
12351
|
'ObjectUrl.create': createObjectUrl,
|
|
12338
12352
|
'ObjectUrl.revoke': revokeObjectUrl,
|
|
12339
12353
|
'OffscreenCanvas.create': create$2,
|