@lvce-editor/text-search-worker 3.49.0 → 3.51.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.
@@ -2145,7 +2145,7 @@ const getActionsVirtualDom = actions => {
2145
2145
  }, ...actions.flatMap(getActionVirtualDom)];
2146
2146
  };
2147
2147
 
2148
- const commandIds = ['clearSearchResults', 'collapseDetails', 'copy', 'dismissItem', 'expandDetails', 'focusFirst', 'focusIndex', 'focusLast', 'focusMatchCase', 'focusMatchCasePrevious', 'focusMatchWholeWord', 'focusNext', 'focusNextInput', 'focusNextPage', 'focusPreserveCasePrevious', 'focusPrevious', 'focusPreviousInput', 'focusPreviousPage', 'focusRegex', 'focusRegexNext', 'focusReplaceAll', 'focusReplaceValue', 'focusReplaceValueNext', 'focusReplaceValuePrevious', 'focusSearchValue', 'focusSearchValueNext', 'handleClick', 'handleClickAt', 'handleContextMenu', 'handleContextMenuKeyboard', 'handleContextMenuMouseAt', 'handleExcludeInput', 'handleFocusIn', 'handleHeaderClick', 'handleIconThemeChange', 'handleIconThemeChange', 'handleIncludeInput', 'handleInput', 'handleListBlur', 'handleListFocus', 'handleReplaceInput', 'handleScrollBarCaptureLost', 'handleScrollBarClick', 'handleScrollBarMove', 'handleScrollBarThumbPointerMove', 'handleTouchEnd', 'handleTouchMove', 'handleTouchStart', 'handleUpdate', 'handleWheel', 'refresh', 'replaceAll', 'scrollDown', 'selectIndex', 'submit', 'toggleMatchCase', 'toggleMatchWholeWord', 'togglePreserveCase', 'toggleReplace', 'toggleSearchDetails', 'toggleUseRegularExpression'];
2148
+ const commandIds = ['clearSearchResults', 'collapseDetails', 'copy', 'dismissItem', 'expandDetails', 'focusFirst', 'focusIndex', 'focusLast', 'focusMatchCase', 'focusMatchCasePrevious', 'focusMatchWholeWord', 'focusNext', 'focusNextInput', 'focusNextPage', 'focusPreserveCasePrevious', 'focusPrevious', 'focusPreviousInput', 'focusPreviousPage', 'focusRegex', 'focusRegexNext', 'focusReplaceAll', 'focusReplaceValue', 'focusReplaceValueNext', 'focusReplaceValuePrevious', 'focusSearchValue', 'focusSearchValueNext', 'handleClick', 'handleClickAt', 'handleContextMenu', 'handleContextMenuKeyboard', 'handleContextMenuMouseAt', 'handleExcludeInput', 'handleFocusIn', 'handleHeaderClick', 'handleHeaderFocusIn', 'handleIconThemeChange', 'handleIconThemeChange', 'handleIncludeInput', 'handleInput', 'handleListBlur', 'handleListFocus', 'handleReplaceInput', 'handleScrollBarCaptureLost', 'handleScrollBarClick', 'handleScrollBarMove', 'handleScrollBarThumbPointerMove', 'handleTouchEnd', 'handleTouchMove', 'handleTouchStart', 'handleUpdate', 'handleWheel', 'refresh', 'replaceAll', 'scrollDown', 'selectIndex', 'submit', 'toggleMatchCase', 'toggleMatchWholeWord', 'togglePreserveCase', 'toggleReplace', 'toggleSearchDetails', 'toggleUseRegularExpression'];
2149
2149
 
2150
2150
  const getCommandIds = () => {
2151
2151
  return commandIds;
@@ -3521,6 +3521,10 @@ const handleHeaderClick = async (state, name) => {
3521
3521
  return fn(state);
3522
3522
  };
3523
3523
 
3524
+ const handleHeaderFocusIn = state => {
3525
+ return state;
3526
+ };
3527
+
3524
3528
  const handleIconThemeChange = async state => {
3525
3529
  const {
3526
3530
  items,
@@ -4190,74 +4194,40 @@ const isEqual$5 = (oldState, newState) => {
4190
4194
  return oldState.excludeValue === newState.excludeValue || newState.inputSource === User;
4191
4195
  };
4192
4196
 
4193
- const DiffExcludeValue = {
4194
- __proto__: null,
4195
- diffType: diffType$5,
4196
- isEqual: isEqual$5
4197
- };
4198
-
4199
4197
  const diffType$4 = RenderFocus;
4200
4198
  const isEqual$4 = (oldState, newState) => {
4201
4199
  return oldState.focus === newState.focus || newState.focusSource === User;
4202
4200
  };
4203
4201
 
4204
- const DiffFocus = {
4205
- __proto__: null,
4206
- diffType: diffType$4,
4207
- isEqual: isEqual$4
4208
- };
4209
-
4210
4202
  const diffType$3 = RenderIncludeValue;
4211
4203
  const isEqual$3 = (oldState, newState) => {
4212
4204
  return oldState.includeValue === newState.includeValue || newState.inputSource === User;
4213
4205
  };
4214
4206
 
4215
- const DiffIncludeValue = {
4216
- __proto__: null,
4217
- diffType: diffType$3,
4218
- isEqual: isEqual$3
4219
- };
4220
-
4221
4207
  const diffType$2 = RenderItems;
4222
4208
  const isEqual$2 = (oldState, newState) => {
4223
4209
  return oldState.items === newState.items && oldState.minLineY === newState.minLineY && oldState.maxLineY === newState.maxLineY && oldState.replacement === newState.replacement && oldState.flags === newState.flags && oldState.message === newState.message && oldState.loaded === newState.loaded && oldState.collapsedPaths === newState.collapsedPaths && oldState.listFocusedIndex === newState.listFocusedIndex && oldState.listFocused === newState.listFocused && oldState.icons === newState.icons && oldState.searchInputErrorMessage === newState.searchInputErrorMessage && oldState.deltaY === newState.deltaY;
4224
4210
  };
4225
4211
 
4226
- const DiffItems = {
4227
- __proto__: null,
4228
- diffType: diffType$2,
4229
- isEqual: isEqual$2
4230
- };
4231
-
4232
4212
  const diffType$1 = RenderReplaceValue;
4233
4213
  const isEqual$1 = (oldState, newState) => {
4234
4214
  return oldState.replacement === newState.replacement || newState.inputSource === User;
4235
4215
  };
4236
4216
 
4237
- const DiffReplaceValue = {
4238
- __proto__: null,
4239
- diffType: diffType$1,
4240
- isEqual: isEqual$1
4241
- };
4242
-
4243
4217
  const diffType = RenderValue;
4244
4218
  const isEqual = (oldState, newState) => {
4245
4219
  return oldState.value === newState.value || newState.inputSource === User;
4246
4220
  };
4247
4221
 
4248
- const DiffValue = {
4249
- __proto__: null,
4250
- diffType,
4251
- isEqual
4252
- };
4253
-
4254
- const modules = [DiffItems, DiffFocus, DiffIncludeValue, DiffExcludeValue, DiffReplaceValue, DiffValue];
4222
+ const modules = [isEqual$2, isEqual$4, isEqual$3, isEqual$5, isEqual$1, isEqual];
4223
+ const numbers = [diffType$2, diffType$4, diffType$3, diffType$5, diffType$1, diffType];
4255
4224
 
4256
4225
  const diff = (oldState, newState) => {
4257
4226
  const diffResult = [];
4258
- for (const module of modules) {
4259
- if (!module.isEqual(oldState, newState)) {
4260
- diffResult.push(module.diffType);
4227
+ for (let i = 0; i < modules.length; i++) {
4228
+ const fn = modules[i];
4229
+ if (!fn(oldState, newState)) {
4230
+ diffResult.push(numbers[i]);
4261
4231
  }
4262
4232
  }
4263
4233
  return diffResult;
@@ -4574,6 +4544,7 @@ const commandMap = {
4574
4544
  'TextSearch.clearSearchResults': wrapCommand(clearSearchResults$1),
4575
4545
  'TextSearch.copy': wrapCommand(copy),
4576
4546
  'TextSearch.dismissItem': wrapCommand(dismissItem),
4547
+ 'TextSearch.handleHeaderFocusIn': wrapCommand(handleHeaderFocusIn),
4577
4548
  'TextSearch.focusFirst': wrapCommand(focusFirst),
4578
4549
  'TextSearch.collapseDetails': wrapCommand(collapseDetails),
4579
4550
  'TextSearch.expandDetails': wrapCommand(expandDetails),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-worker",
3
- "version": "3.49.0",
3
+ "version": "3.51.0",
4
4
  "description": "Text Search Worker",
5
5
  "keywords": [
6
6
  "text-search"