@lvce-editor/renderer-process 10.30.0 → 10.31.0
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 -23
- package/package.json +1 -1
|
@@ -5883,8 +5883,11 @@ const create$x = (id, uid = id) => {
|
|
|
5883
5883
|
factory: module
|
|
5884
5884
|
};
|
|
5885
5885
|
};
|
|
5886
|
-
const createFunctionalRoot = (id, uid = id) => {
|
|
5887
|
-
|
|
5886
|
+
const createFunctionalRoot = (id, uid = id, hasFunctionalEvents) => {
|
|
5887
|
+
let module = state$6.modules[id];
|
|
5888
|
+
if (hasFunctionalEvents) {
|
|
5889
|
+
module = {};
|
|
5890
|
+
}
|
|
5888
5891
|
if (!module) {
|
|
5889
5892
|
throw new Error(`module not found: ${id}`);
|
|
5890
5893
|
}
|
|
@@ -7778,7 +7781,7 @@ const setSelections$1 = (state, cursorInfos, selectionInfos) => {
|
|
|
7778
7781
|
setCursors(state, cursorInfos);
|
|
7779
7782
|
setSelections$2(state, selectionInfos);
|
|
7780
7783
|
};
|
|
7781
|
-
const setFocused$
|
|
7784
|
+
const setFocused$2 = async (state, isFocused) => {
|
|
7782
7785
|
const {
|
|
7783
7786
|
$EditorInput
|
|
7784
7787
|
} = state;
|
|
@@ -7835,8 +7838,8 @@ const hideOverlayMessage = state => {
|
|
|
7835
7838
|
}
|
|
7836
7839
|
}
|
|
7837
7840
|
};
|
|
7838
|
-
const setFocused$
|
|
7839
|
-
const focus$e = setFocused$
|
|
7841
|
+
const setFocused$1 = setFocused$2;
|
|
7842
|
+
const focus$e = setFocused$2;
|
|
7840
7843
|
const setDecorationsDom = setDecorationsDom$1;
|
|
7841
7844
|
|
|
7842
7845
|
const ViewletEditorText = {
|
|
@@ -7848,7 +7851,7 @@ const ViewletEditorText = {
|
|
|
7848
7851
|
highlightAsLink,
|
|
7849
7852
|
renderGutter,
|
|
7850
7853
|
setDecorationsDom,
|
|
7851
|
-
setFocused: setFocused$
|
|
7854
|
+
setFocused: setFocused$1,
|
|
7852
7855
|
setIncrementalEdits,
|
|
7853
7856
|
setScrollBar,
|
|
7854
7857
|
setScrollBarHorizontal,
|
|
@@ -11051,7 +11054,7 @@ const attachEvents = state => {
|
|
|
11051
11054
|
});
|
|
11052
11055
|
};
|
|
11053
11056
|
const activeClassName = 'TitleBarActive';
|
|
11054
|
-
const setFocused
|
|
11057
|
+
const setFocused = (state, isFocused) => {
|
|
11055
11058
|
const {
|
|
11056
11059
|
$Viewlet
|
|
11057
11060
|
} = state;
|
|
@@ -11066,7 +11069,7 @@ const ViewletTitleBar = {
|
|
|
11066
11069
|
__proto__: null,
|
|
11067
11070
|
attachEvents,
|
|
11068
11071
|
create: create$3,
|
|
11069
|
-
setFocused
|
|
11072
|
+
setFocused
|
|
11070
11073
|
};
|
|
11071
11074
|
|
|
11072
11075
|
/**
|
|
@@ -11493,25 +11496,11 @@ const ViewletTitleBarTitle = {
|
|
|
11493
11496
|
setDom
|
|
11494
11497
|
};
|
|
11495
11498
|
|
|
11496
|
-
const setFocused = (state, selector) => {
|
|
11497
|
-
if (selector === true) {
|
|
11498
|
-
selector = 'button';
|
|
11499
|
-
}
|
|
11500
|
-
if (!selector) {
|
|
11501
|
-
return;
|
|
11502
|
-
}
|
|
11503
|
-
const {
|
|
11504
|
-
$Viewlet
|
|
11505
|
-
} = state;
|
|
11506
|
-
const $Focusable = $Viewlet.querySelector(selector);
|
|
11507
|
-
$Focusable.focus();
|
|
11508
|
-
};
|
|
11509
11499
|
const Events = {};
|
|
11510
11500
|
|
|
11511
11501
|
const ViewletAbout = {
|
|
11512
11502
|
__proto__: null,
|
|
11513
|
-
Events
|
|
11514
|
-
setFocused
|
|
11503
|
+
Events
|
|
11515
11504
|
};
|
|
11516
11505
|
|
|
11517
11506
|
const create$1 = () => {
|