@lvce-editor/text-search-worker 3.45.0 → 3.46.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/textSearchWorkerMain.js +18 -3
- package/package.json +1 -1
|
@@ -3755,9 +3755,6 @@ const renderItems = (oldState, newState) => {
|
|
|
3755
3755
|
return ['Viewlet.setDom2', newState.uid, dom];
|
|
3756
3756
|
};
|
|
3757
3757
|
|
|
3758
|
-
const renderFocus = (oldState, newState) => {
|
|
3759
|
-
return oldState.focus === newState.focus || newState.focusSource === User;
|
|
3760
|
-
};
|
|
3761
3758
|
const renderValue = (oldState, newState) => {
|
|
3762
3759
|
return ['Viewlet.send', newState.uid, 'setValue', newState.value, `[name="${SearchValue}"]`];
|
|
3763
3760
|
};
|
|
@@ -3770,6 +3767,10 @@ const renderIncludeValue = (oldState, newState) => {
|
|
|
3770
3767
|
const renderExcludeValue = (oldState, newState) => {
|
|
3771
3768
|
return ['Viewlet.send', newState.uid, 'setValue', newState.excludeValue, `[name=${FilesToExclude}]`];
|
|
3772
3769
|
};
|
|
3770
|
+
|
|
3771
|
+
const renderFocus = (oldState, newState) => {
|
|
3772
|
+
return oldState.focus === newState.focus || newState.focusSource === User;
|
|
3773
|
+
};
|
|
3773
3774
|
const getRenderer = diffType => {
|
|
3774
3775
|
switch (diffType) {
|
|
3775
3776
|
case RenderValue:
|
|
@@ -3885,6 +3886,19 @@ const doRender = uid => {
|
|
|
3885
3886
|
return applyRender(oldState, newState, diffResult);
|
|
3886
3887
|
};
|
|
3887
3888
|
|
|
3889
|
+
const renderActions = uid => {
|
|
3890
|
+
const {
|
|
3891
|
+
oldState,
|
|
3892
|
+
newState
|
|
3893
|
+
} = get(uid);
|
|
3894
|
+
if (oldState === newState) {
|
|
3895
|
+
return [];
|
|
3896
|
+
}
|
|
3897
|
+
const actions = [];
|
|
3898
|
+
const dom = getActionsVirtualDom(actions);
|
|
3899
|
+
return dom;
|
|
3900
|
+
};
|
|
3901
|
+
|
|
3888
3902
|
const renderEventListeners = () => {
|
|
3889
3903
|
return [{
|
|
3890
3904
|
name: HandleExcludeInput,
|
|
@@ -4529,6 +4543,7 @@ const commandMap = {
|
|
|
4529
4543
|
'TextSearch.focusReplaceValue': wrapCommand(focusReplaceValue$1),
|
|
4530
4544
|
'TextSearch.focusReplaceValueNext': wrapCommand(focusReplaceValueNext),
|
|
4531
4545
|
'TextSearch.focusReplaceValuePrevious': wrapCommand(focusReplaceValuePrevious),
|
|
4546
|
+
'TextSearch.renderActions': wrapCommand(renderActions),
|
|
4532
4547
|
'TextSearch.focusSearchValue': wrapCommand(focusSearchValue$1),
|
|
4533
4548
|
'TextSearch.focusSearchValueNext': wrapCommand(focusSearchValueNext),
|
|
4534
4549
|
'TextSearch.getActions': wrapCommand(getActions),
|