@lvce-editor/renderer-process 30.43.5 → 30.44.1
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 +25 -1
- package/package.json +1 -1
|
@@ -8295,6 +8295,12 @@ const ViewletSidebar = {
|
|
|
8295
8295
|
const handleInput$3 = value => {
|
|
8296
8296
|
send$1('SimpleBrowser.handleInput', value);
|
|
8297
8297
|
};
|
|
8298
|
+
const acceptSuggestion = value => {
|
|
8299
|
+
send$1('SimpleBrowser.acceptSuggestion', value);
|
|
8300
|
+
};
|
|
8301
|
+
const closeSuggestions = () => {
|
|
8302
|
+
send$1('SimpleBrowser.closeSuggestions');
|
|
8303
|
+
};
|
|
8298
8304
|
const forward = () => {
|
|
8299
8305
|
send$1('SimpleBrowser.forward');
|
|
8300
8306
|
};
|
|
@@ -8320,6 +8326,14 @@ const handleInput$2 = event => {
|
|
|
8320
8326
|
} = target;
|
|
8321
8327
|
handleInput$3(value);
|
|
8322
8328
|
};
|
|
8329
|
+
const handleClickSuggestion = event => {
|
|
8330
|
+
const suggestion = event.target.closest?.('.SimpleBrowserSuggestion');
|
|
8331
|
+
const value = suggestion?.dataset.value;
|
|
8332
|
+
if (typeof value !== 'string') {
|
|
8333
|
+
return;
|
|
8334
|
+
}
|
|
8335
|
+
acceptSuggestion(value);
|
|
8336
|
+
};
|
|
8323
8337
|
const handleFocus$1 = event => {
|
|
8324
8338
|
const {
|
|
8325
8339
|
target
|
|
@@ -8331,9 +8345,18 @@ const handleFocus$1 = event => {
|
|
|
8331
8345
|
};
|
|
8332
8346
|
const handleBlur$1 = event => {
|
|
8333
8347
|
const {
|
|
8348
|
+
relatedTarget,
|
|
8334
8349
|
target
|
|
8335
8350
|
} = event;
|
|
8336
|
-
|
|
8351
|
+
queueMicrotask(() => {
|
|
8352
|
+
if (!target.isConnected) {
|
|
8353
|
+
return;
|
|
8354
|
+
}
|
|
8355
|
+
target.setSelectionRange(0, 0);
|
|
8356
|
+
if (!relatedTarget?.closest?.('.SimpleBrowserSuggestions')) {
|
|
8357
|
+
closeSuggestions();
|
|
8358
|
+
}
|
|
8359
|
+
});
|
|
8337
8360
|
};
|
|
8338
8361
|
const handleClickForward = () => {
|
|
8339
8362
|
forward();
|
|
@@ -8364,6 +8387,7 @@ const ViewletSimpleBrowserEvents = {
|
|
|
8364
8387
|
handleClickForward,
|
|
8365
8388
|
handleClickOpenExternal,
|
|
8366
8389
|
handleClickReload,
|
|
8390
|
+
handleClickSuggestion,
|
|
8367
8391
|
handleFocus: handleFocus$1,
|
|
8368
8392
|
handleInput: handleInput$2
|
|
8369
8393
|
};
|