@lvce-editor/file-search-worker 3.16.0 → 3.18.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/fileSearchWorkerMain.js +6 -34
- package/package.json +1 -1
|
@@ -3751,63 +3751,35 @@ const isEqual$4 = (oldState, newState) => {
|
|
|
3751
3751
|
return oldState.focused === newState.focused;
|
|
3752
3752
|
};
|
|
3753
3753
|
|
|
3754
|
-
const DiffFocus = {
|
|
3755
|
-
__proto__: null,
|
|
3756
|
-
diffType: diffType$4,
|
|
3757
|
-
isEqual: isEqual$4
|
|
3758
|
-
};
|
|
3759
|
-
|
|
3760
3754
|
const diffType$3 = RenderFocusedIndex;
|
|
3761
3755
|
const isEqual$3 = (oldState, newState) => {
|
|
3762
3756
|
return oldState.focusedIndex === newState.focusedIndex;
|
|
3763
3757
|
};
|
|
3764
3758
|
|
|
3765
|
-
const DiffFocusedIndex = {
|
|
3766
|
-
__proto__: null,
|
|
3767
|
-
diffType: diffType$3,
|
|
3768
|
-
isEqual: isEqual$3
|
|
3769
|
-
};
|
|
3770
|
-
|
|
3771
3759
|
const diffType$2 = Height;
|
|
3772
3760
|
const isEqual$2 = (oldState, newState) => {
|
|
3773
3761
|
return oldState.items.length === newState.items.length;
|
|
3774
3762
|
};
|
|
3775
3763
|
|
|
3776
|
-
const DiffHeight = {
|
|
3777
|
-
__proto__: null,
|
|
3778
|
-
diffType: diffType$2,
|
|
3779
|
-
isEqual: isEqual$2
|
|
3780
|
-
};
|
|
3781
|
-
|
|
3782
3764
|
const diffType$1 = RenderItems;
|
|
3783
3765
|
const isEqual$1 = (oldState, newState) => {
|
|
3784
3766
|
return oldState.items === newState.items && oldState.minLineY === newState.minLineY && oldState.maxLineY === newState.maxLineY && oldState.focusedIndex === newState.focusedIndex;
|
|
3785
3767
|
};
|
|
3786
3768
|
|
|
3787
|
-
const DiffItems = {
|
|
3788
|
-
__proto__: null,
|
|
3789
|
-
diffType: diffType$1,
|
|
3790
|
-
isEqual: isEqual$1
|
|
3791
|
-
};
|
|
3792
|
-
|
|
3793
3769
|
const diffType = RenderValue;
|
|
3794
3770
|
const isEqual = (oldState, newState) => {
|
|
3795
3771
|
return newState.inputSource === User || oldState.value === newState.value;
|
|
3796
3772
|
};
|
|
3797
3773
|
|
|
3798
|
-
const
|
|
3799
|
-
|
|
3800
|
-
diffType,
|
|
3801
|
-
isEqual
|
|
3802
|
-
};
|
|
3803
|
-
|
|
3804
|
-
const modules = [DiffHeight, DiffItems, DiffFocus, DiffFocus, DiffValue, DiffFocusedIndex];
|
|
3774
|
+
const modules = [isEqual$2, isEqual$1, isEqual$4, isEqual, isEqual$3];
|
|
3775
|
+
const numbers = [diffType$2, diffType$1, diffType$4, diffType, diffType$3];
|
|
3805
3776
|
|
|
3806
3777
|
const diff = (oldState, newState) => {
|
|
3807
3778
|
const diffResult = [];
|
|
3808
|
-
for (
|
|
3809
|
-
|
|
3810
|
-
|
|
3779
|
+
for (let i = 0; i < modules.length; i++) {
|
|
3780
|
+
const fn = modules[i];
|
|
3781
|
+
if (!fn(oldState, newState)) {
|
|
3782
|
+
diffResult.push(numbers[i]);
|
|
3811
3783
|
}
|
|
3812
3784
|
}
|
|
3813
3785
|
return diffResult;
|