@lvce-editor/text-search-worker 3.13.0 → 3.14.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.
@@ -985,7 +985,6 @@ const i18nString = (key, placeholders = emptyObject) => {
985
985
  return key;
986
986
  }
987
987
  const replacer = (match, rest) => {
988
- // @ts-ignore
989
988
  return placeholders[rest];
990
989
  };
991
990
  return key.replaceAll(RE_PLACEHOLDER, replacer);
@@ -1537,6 +1536,20 @@ const getActionsVirtualDom = actions => {
1537
1536
  }, ...actions.flatMap(getActionVirtualDom)];
1538
1537
  };
1539
1538
 
1539
+ const getFlags = uid => {
1540
+ const {
1541
+ newState
1542
+ } = get(uid);
1543
+ return newState.flags;
1544
+ };
1545
+
1546
+ const getFocus = uid => {
1547
+ const {
1548
+ newState
1549
+ } = get(uid);
1550
+ return newState.focus;
1551
+ };
1552
+
1540
1553
  const Tab = 2;
1541
1554
  const Enter = 3;
1542
1555
  const End = 255;
@@ -4234,9 +4247,11 @@ const commandMap = {
4234
4247
  'TextSearch.toggleUseRegularExpression': wrapCommand(toggleUseRegularExpression),
4235
4248
  // not wrapped
4236
4249
  'TextSearch.create': create$4,
4250
+ 'TextSearch.getFlags': getFlags,
4251
+ 'TextSearch.getFocus': getFocus,
4252
+ 'TextSearch.getKeyBindings': getKeyBindings,
4237
4253
  'TextSearch.render': doRender,
4238
4254
  'TextSearch.saveState': saveState,
4239
- 'TextSearch.getKeyBindings': getKeyBindings,
4240
4255
  // TODO needed?
4241
4256
  'TextSearch.textSearch': textSearch
4242
4257
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-worker",
3
- "version": "3.13.0",
3
+ "version": "3.14.0",
4
4
  "description": "Text Search Worker",
5
5
  "main": "dist/textSearchWorkerMain.js",
6
6
  "type": "module",