@univerjs/action-recorder 1.3.1 → 1.5.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.
Files changed (63) hide show
  1. package/README.md +5 -5
  2. package/lib/cjs/index.js +24 -42
  3. package/lib/cjs/locale/ar-SA.js +1 -2
  4. package/lib/cjs/locale/ca-ES.js +1 -2
  5. package/lib/cjs/locale/de-DE.js +1 -2
  6. package/lib/cjs/locale/en-US.js +1 -2
  7. package/lib/cjs/locale/es-ES.js +1 -2
  8. package/lib/cjs/locale/fa-IR.js +1 -2
  9. package/lib/cjs/locale/fr-FR.js +1 -2
  10. package/lib/cjs/locale/id-ID.js +1 -2
  11. package/lib/cjs/locale/it-IT.js +1 -2
  12. package/lib/cjs/locale/ja-JP.js +1 -2
  13. package/lib/cjs/locale/ko-KR.js +1 -2
  14. package/lib/cjs/locale/pl-PL.js +1 -2
  15. package/lib/cjs/locale/pt-BR.js +1 -2
  16. package/lib/cjs/locale/ru-RU.js +1 -2
  17. package/lib/cjs/locale/sk-SK.js +1 -2
  18. package/lib/cjs/locale/vi-VN.js +1 -2
  19. package/lib/cjs/locale/zh-CN.js +1 -2
  20. package/lib/cjs/locale/zh-HK.js +1 -2
  21. package/lib/cjs/locale/zh-TW.js +1 -2
  22. package/lib/es/index.js +24 -42
  23. package/lib/es/locale/ar-SA.js +1 -2
  24. package/lib/es/locale/ca-ES.js +1 -2
  25. package/lib/es/locale/de-DE.js +1 -2
  26. package/lib/es/locale/en-US.js +1 -2
  27. package/lib/es/locale/es-ES.js +1 -2
  28. package/lib/es/locale/fa-IR.js +1 -2
  29. package/lib/es/locale/fr-FR.js +1 -2
  30. package/lib/es/locale/id-ID.js +1 -2
  31. package/lib/es/locale/it-IT.js +1 -2
  32. package/lib/es/locale/ja-JP.js +1 -2
  33. package/lib/es/locale/ko-KR.js +1 -2
  34. package/lib/es/locale/pl-PL.js +1 -2
  35. package/lib/es/locale/pt-BR.js +1 -2
  36. package/lib/es/locale/ru-RU.js +1 -2
  37. package/lib/es/locale/sk-SK.js +1 -2
  38. package/lib/es/locale/vi-VN.js +1 -2
  39. package/lib/es/locale/zh-CN.js +1 -2
  40. package/lib/es/locale/zh-HK.js +1 -2
  41. package/lib/es/locale/zh-TW.js +1 -2
  42. package/lib/index.js +24 -42
  43. package/lib/locale/ar-SA.js +1 -2
  44. package/lib/locale/ca-ES.js +1 -2
  45. package/lib/locale/de-DE.js +1 -2
  46. package/lib/locale/en-US.js +1 -2
  47. package/lib/locale/es-ES.js +1 -2
  48. package/lib/locale/fa-IR.js +1 -2
  49. package/lib/locale/fr-FR.js +1 -2
  50. package/lib/locale/id-ID.js +1 -2
  51. package/lib/locale/it-IT.js +1 -2
  52. package/lib/locale/ja-JP.js +1 -2
  53. package/lib/locale/ko-KR.js +1 -2
  54. package/lib/locale/pl-PL.js +1 -2
  55. package/lib/locale/pt-BR.js +1 -2
  56. package/lib/locale/ru-RU.js +1 -2
  57. package/lib/locale/sk-SK.js +1 -2
  58. package/lib/locale/vi-VN.js +1 -2
  59. package/lib/locale/zh-CN.js +1 -2
  60. package/lib/locale/zh-HK.js +1 -2
  61. package/lib/locale/zh-TW.js +1 -2
  62. package/lib/umd/index.js +1 -1
  63. package/package.json +13 -13
package/README.md CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ## Package Overview
10
10
 
11
- | Package | UMD global | CSS | Locales | Facade entry |
12
- | --- | --- | :---: | :---: | :---: |
13
- | `@univerjs/action-recorder` | `UniverActionRecorder` | Yes | Yes | No |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs/action-recorder` | `UniverActionRecorder` | Yes | Yes | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,10 +20,10 @@ pnpm add @univerjs/action-recorder
20
20
  npm install @univerjs/action-recorder
21
21
  ```
22
22
 
23
- Keep all `@univerjs/*` packages on the same version.
24
-
25
23
  ## Usage
26
24
 
25
+ Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
26
+
27
27
  ```ts
28
28
  import '@univerjs/action-recorder/lib/index.css';
29
29
  import EnUS from '@univerjs/action-recorder/locale/en-US';
package/lib/cjs/index.js CHANGED
@@ -10,15 +10,14 @@ let _univerjs_icons = require("@univerjs/icons");
10
10
  let react = require("react");
11
11
  let react_jsx_runtime = require("react/jsx-runtime");
12
12
 
13
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
13
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
14
14
  function __decorateParam(paramIndex, decorator) {
15
15
  return function(target, key) {
16
16
  decorator(target, key, paramIndex);
17
17
  };
18
18
  }
19
19
 
20
- //#endregion
21
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
20
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
22
21
  function __decorate(decorators, target, key, desc) {
23
22
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
23
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -26,8 +25,7 @@ function __decorate(decorators, target, key, desc) {
26
25
  return c > 3 && r && Object.defineProperty(target, key, r), r;
27
26
  }
28
27
 
29
- //#endregion
30
- //#region src/services/replay.service.ts
28
+ // src/services/replay.service.ts
31
29
  let ActionReplayService = class ActionReplayService extends _univerjs_core.Disposable {
32
30
  constructor(_messageService, _instanceService, _localFileService, _logService, _commandService) {
33
31
  super();
@@ -119,8 +117,7 @@ function randomBetween200And1k() {
119
117
  return Math.floor(Math.random() * 800) + 200;
120
118
  }
121
119
 
122
- //#endregion
123
- //#region src/commands/commands/replay.command.ts
120
+ // src/commands/commands/replay.command.ts
124
121
  const ReplayLocalRecordCommand = {
125
122
  id: "action-recorder.command.replay-local-records",
126
123
  type: _univerjs_core.CommandType.COMMAND,
@@ -158,8 +155,7 @@ const ReplayLocalRecordOnActiveCommand = {
158
155
  }
159
156
  };
160
157
 
161
- //#endregion
162
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
158
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
163
159
  function _typeof(o) {
164
160
  "@babel/helpers - typeof";
165
161
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -169,28 +165,25 @@ function _typeof(o) {
169
165
  }, _typeof(o);
170
166
  }
171
167
 
172
- //#endregion
173
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
174
- function toPrimitive(t, r) {
168
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
169
+ function toPrimitive(t, e) {
175
170
  if ("object" != _typeof(t) || !t) return t;
176
- var e = t[Symbol.toPrimitive];
177
- if (void 0 !== e) {
178
- var i = e.call(t, r || "default");
171
+ var r;
172
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
173
+ var i = r.call(t, e || "default");
179
174
  if ("object" != _typeof(i)) return i;
180
175
  throw new TypeError("@@toPrimitive must return a primitive value.");
181
176
  }
182
- return ("string" === r ? String : Number)(t);
177
+ return ("string" === e ? String : Number)(t);
183
178
  }
184
179
 
185
- //#endregion
186
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
180
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
187
181
  function toPropertyKey(t) {
188
182
  var i = toPrimitive(t, "string");
189
183
  return "symbol" == _typeof(i) ? i : i + "";
190
184
  }
191
185
 
192
- //#endregion
193
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
186
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
194
187
  function _defineProperty(e, r, t) {
195
188
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
196
189
  value: t,
@@ -200,8 +193,7 @@ function _defineProperty(e, r, t) {
200
193
  }) : e[r] = t, e;
201
194
  }
202
195
 
203
- //#endregion
204
- //#region src/services/action-recorder.service.ts
196
+ // src/services/action-recorder.service.ts
205
197
  let ActionRecorderService = class ActionRecorderService extends _univerjs_core.Disposable {
206
198
  get recording() {
207
199
  return this._recording$.getValue();
@@ -291,8 +283,7 @@ ActionRecorderService = __decorate([
291
283
  __decorateParam(3, _univerjs_core.IUniverInstanceService)
292
284
  ], ActionRecorderService);
293
285
 
294
- //#endregion
295
- //#region src/commands/operations/operation.ts
286
+ // src/commands/operations/operation.ts
296
287
  const OpenRecordPanelOperation = {
297
288
  id: "action-recorder.operation.open-panel",
298
289
  type: _univerjs_core.CommandType.OPERATION,
@@ -310,8 +301,7 @@ const CloseRecordPanelOperation = {
310
301
  }
311
302
  };
312
303
 
313
- //#endregion
314
- //#region src/menu/action-recorder.menu.ts
304
+ // src/menu/action-recorder.menu.ts
315
305
  const RECORD_MENU_ITEM_ID = "RECORD_MENU_ITEM";
316
306
  function RecordMenuItemFactory() {
317
307
  return {
@@ -372,19 +362,16 @@ const menuSchema = { [_univerjs_ui.RibbonOthersGroup.OTHERS]: { [RECORD_MENU_ITE
372
362
  }
373
363
  } } };
374
364
 
375
- //#endregion
376
- //#region package.json
365
+ // package.json
377
366
  var name = "@univerjs/action-recorder";
378
- var version = "1.3.1";
367
+ var version = "1.5.0";
379
368
 
380
- //#endregion
381
- //#region src/config/config.ts
369
+ // src/config/config.ts
382
370
  const ACTION_RECORDER_PLUGIN_CONFIG_KEY = "action-recorder.config";
383
371
  const configSymbol = Symbol(ACTION_RECORDER_PLUGIN_CONFIG_KEY);
384
372
  const defaultPluginConfig = {};
385
373
 
386
- //#endregion
387
- //#region src/commands/commands/record.command.ts
374
+ // src/commands/commands/record.command.ts
388
375
  const StartRecordingActionCommand = {
389
376
  id: "action-recorder.command.start-recording",
390
377
  type: _univerjs_core.CommandType.COMMAND,
@@ -410,8 +397,7 @@ const StopRecordingActionCommand = {
410
397
  }
411
398
  };
412
399
 
413
- //#endregion
414
- //#region src/views/components/RecorderPanel.tsx
400
+ // src/views/components/RecorderPanel.tsx
415
401
  function RecorderPanel() {
416
402
  const s = (0, _univerjs_ui.useDependency)(ActionRecorderService);
417
403
  if (!(0, _univerjs_ui.useObservable)(s.panelOpened$)) return null;
@@ -473,8 +459,7 @@ function RecordPanelImpl() {
473
459
  });
474
460
  }
475
461
 
476
- //#endregion
477
- //#region src/controllers/action-recorder.controller.ts
462
+ // src/controllers/action-recorder.controller.ts
478
463
  /**
479
464
  * Copyright 2023-present DreamNum Co., Ltd.
480
465
  *
@@ -584,8 +569,7 @@ ActionRecorderController = __decorate([
584
569
  __decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_core.Injector))
585
570
  ], ActionRecorderController);
586
571
 
587
- //#endregion
588
- //#region src/controllers/components.controller.ts
572
+ // src/controllers/components.controller.ts
589
573
  /**
590
574
  * Copyright 2023-present DreamNum Co., Ltd.
591
575
  *
@@ -614,8 +598,7 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
614
598
  };
615
599
  ComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], ComponentsController);
616
600
 
617
- //#endregion
618
- //#region src/plugin.ts
601
+ // src/plugin.ts
619
602
  let UniverActionRecorderPlugin = class UniverActionRecorderPlugin extends _univerjs_core.Plugin {
620
603
  constructor(_config = defaultPluginConfig, _injector, _configService) {
621
604
  super();
@@ -645,7 +628,6 @@ _defineProperty(UniverActionRecorderPlugin, "packageName", name);
645
628
  _defineProperty(UniverActionRecorderPlugin, "version", version);
646
629
  UniverActionRecorderPlugin = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector)), __decorateParam(2, _univerjs_core.IConfigService)], UniverActionRecorderPlugin);
647
630
 
648
- //#endregion
649
631
  exports.ActionRecorderMenuSchema = menuSchema;
650
632
  Object.defineProperty(exports, "ActionRecorderService", {
651
633
  enumerable: true,
@@ -1,4 +1,4 @@
1
- //#region src/locale/ar-SA.ts
1
+ // src/locale/ar-SA.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "جارٍ التسجيل...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/ca-ES.ts
1
+ // src/locale/ca-ES.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "S'està enregistrant...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/de-DE.ts
1
+ // src/locale/de-DE.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Aufnahme läuft...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/en-US.ts
1
+ // src/locale/en-US.ts
2
2
  /**
3
3
  * Copyright 2023-present DreamNum Co., Ltd.
4
4
  *
@@ -33,5 +33,4 @@ const locale = { "action-recorder": {
33
33
  }
34
34
  } };
35
35
 
36
- //#endregion
37
36
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/es-ES.ts
1
+ // src/locale/es-ES.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Grabando...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/fa-IR.ts
1
+ // src/locale/fa-IR.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "در حال ضبط...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/fr-FR.ts
1
+ // src/locale/fr-FR.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Enregistrement...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/id-ID.ts
1
+ // src/locale/id-ID.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Merekam...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/it-IT.ts
1
+ // src/locale/it-IT.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Registrazione...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/ja-JP.ts
1
+ // src/locale/ja-JP.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "記録中...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/ko-KR.ts
1
+ // src/locale/ko-KR.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "기록 중...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/pl-PL.ts
1
+ // src/locale/pl-PL.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Nagrywanie...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/pt-BR.ts
1
+ // src/locale/pt-BR.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Gravando...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/ru-RU.ts
1
+ // src/locale/ru-RU.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Запись...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/sk-SK.ts
1
+ // src/locale/sk-SK.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Nahrávanie...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/vi-VN.ts
1
+ // src/locale/vi-VN.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Đang ghi...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-CN.ts
1
+ // src/locale/zh-CN.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "录制中...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-HK.ts
1
+ // src/locale/zh-HK.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "錄製中...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-TW.ts
1
+ // src/locale/zh-TW.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "錄製中...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  module.exports = locale;
package/lib/es/index.js CHANGED
@@ -9,15 +9,14 @@ import { RecordIcon } from "@univerjs/icons";
9
9
  import { useCallback } from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
 
12
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
12
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
13
13
  function __decorateParam(paramIndex, decorator) {
14
14
  return function(target, key) {
15
15
  decorator(target, key, paramIndex);
16
16
  };
17
17
  }
18
18
 
19
- //#endregion
20
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
19
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
21
20
  function __decorate(decorators, target, key, desc) {
22
21
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23
22
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -25,8 +24,7 @@ function __decorate(decorators, target, key, desc) {
25
24
  return c > 3 && r && Object.defineProperty(target, key, r), r;
26
25
  }
27
26
 
28
- //#endregion
29
- //#region src/services/replay.service.ts
27
+ // src/services/replay.service.ts
30
28
  let ActionReplayService = class ActionReplayService extends Disposable {
31
29
  constructor(_messageService, _instanceService, _localFileService, _logService, _commandService) {
32
30
  super();
@@ -118,8 +116,7 @@ function randomBetween200And1k() {
118
116
  return Math.floor(Math.random() * 800) + 200;
119
117
  }
120
118
 
121
- //#endregion
122
- //#region src/commands/commands/replay.command.ts
119
+ // src/commands/commands/replay.command.ts
123
120
  const ReplayLocalRecordCommand = {
124
121
  id: "action-recorder.command.replay-local-records",
125
122
  type: CommandType.COMMAND,
@@ -157,8 +154,7 @@ const ReplayLocalRecordOnActiveCommand = {
157
154
  }
158
155
  };
159
156
 
160
- //#endregion
161
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
157
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
162
158
  function _typeof(o) {
163
159
  "@babel/helpers - typeof";
164
160
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -168,28 +164,25 @@ function _typeof(o) {
168
164
  }, _typeof(o);
169
165
  }
170
166
 
171
- //#endregion
172
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
173
- function toPrimitive(t, r) {
167
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
168
+ function toPrimitive(t, e) {
174
169
  if ("object" != _typeof(t) || !t) return t;
175
- var e = t[Symbol.toPrimitive];
176
- if (void 0 !== e) {
177
- var i = e.call(t, r || "default");
170
+ var r;
171
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
172
+ var i = r.call(t, e || "default");
178
173
  if ("object" != _typeof(i)) return i;
179
174
  throw new TypeError("@@toPrimitive must return a primitive value.");
180
175
  }
181
- return ("string" === r ? String : Number)(t);
176
+ return ("string" === e ? String : Number)(t);
182
177
  }
183
178
 
184
- //#endregion
185
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
179
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
186
180
  function toPropertyKey(t) {
187
181
  var i = toPrimitive(t, "string");
188
182
  return "symbol" == _typeof(i) ? i : i + "";
189
183
  }
190
184
 
191
- //#endregion
192
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
185
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
193
186
  function _defineProperty(e, r, t) {
194
187
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
195
188
  value: t,
@@ -199,8 +192,7 @@ function _defineProperty(e, r, t) {
199
192
  }) : e[r] = t, e;
200
193
  }
201
194
 
202
- //#endregion
203
- //#region src/services/action-recorder.service.ts
195
+ // src/services/action-recorder.service.ts
204
196
  let ActionRecorderService = class ActionRecorderService extends Disposable {
205
197
  get recording() {
206
198
  return this._recording$.getValue();
@@ -290,8 +282,7 @@ ActionRecorderService = __decorate([
290
282
  __decorateParam(3, IUniverInstanceService)
291
283
  ], ActionRecorderService);
292
284
 
293
- //#endregion
294
- //#region src/commands/operations/operation.ts
285
+ // src/commands/operations/operation.ts
295
286
  const OpenRecordPanelOperation = {
296
287
  id: "action-recorder.operation.open-panel",
297
288
  type: CommandType.OPERATION,
@@ -309,8 +300,7 @@ const CloseRecordPanelOperation = {
309
300
  }
310
301
  };
311
302
 
312
- //#endregion
313
- //#region src/menu/action-recorder.menu.ts
303
+ // src/menu/action-recorder.menu.ts
314
304
  const RECORD_MENU_ITEM_ID = "RECORD_MENU_ITEM";
315
305
  function RecordMenuItemFactory() {
316
306
  return {
@@ -371,19 +361,16 @@ const menuSchema = { [RibbonOthersGroup.OTHERS]: { [RECORD_MENU_ITEM_ID]: {
371
361
  }
372
362
  } } };
373
363
 
374
- //#endregion
375
- //#region package.json
364
+ // package.json
376
365
  var name = "@univerjs/action-recorder";
377
- var version = "1.3.1";
366
+ var version = "1.5.0";
378
367
 
379
- //#endregion
380
- //#region src/config/config.ts
368
+ // src/config/config.ts
381
369
  const ACTION_RECORDER_PLUGIN_CONFIG_KEY = "action-recorder.config";
382
370
  const configSymbol = Symbol(ACTION_RECORDER_PLUGIN_CONFIG_KEY);
383
371
  const defaultPluginConfig = {};
384
372
 
385
- //#endregion
386
- //#region src/commands/commands/record.command.ts
373
+ // src/commands/commands/record.command.ts
387
374
  const StartRecordingActionCommand = {
388
375
  id: "action-recorder.command.start-recording",
389
376
  type: CommandType.COMMAND,
@@ -409,8 +396,7 @@ const StopRecordingActionCommand = {
409
396
  }
410
397
  };
411
398
 
412
- //#endregion
413
- //#region src/views/components/RecorderPanel.tsx
399
+ // src/views/components/RecorderPanel.tsx
414
400
  function RecorderPanel() {
415
401
  const s = useDependency(ActionRecorderService);
416
402
  if (!useObservable(s.panelOpened$)) return null;
@@ -472,8 +458,7 @@ function RecordPanelImpl() {
472
458
  });
473
459
  }
474
460
 
475
- //#endregion
476
- //#region src/controllers/action-recorder.controller.ts
461
+ // src/controllers/action-recorder.controller.ts
477
462
  /**
478
463
  * Copyright 2023-present DreamNum Co., Ltd.
479
464
  *
@@ -583,8 +568,7 @@ ActionRecorderController = __decorate([
583
568
  __decorateParam(4, Inject(Injector))
584
569
  ], ActionRecorderController);
585
570
 
586
- //#endregion
587
- //#region src/controllers/components.controller.ts
571
+ // src/controllers/components.controller.ts
588
572
  /**
589
573
  * Copyright 2023-present DreamNum Co., Ltd.
590
574
  *
@@ -613,8 +597,7 @@ let ComponentsController = class ComponentsController extends Disposable {
613
597
  };
614
598
  ComponentsController = __decorate([__decorateParam(0, Inject(ComponentManager)), __decorateParam(1, Inject(IconManager))], ComponentsController);
615
599
 
616
- //#endregion
617
- //#region src/plugin.ts
600
+ // src/plugin.ts
618
601
  let UniverActionRecorderPlugin = class UniverActionRecorderPlugin extends Plugin {
619
602
  constructor(_config = defaultPluginConfig, _injector, _configService) {
620
603
  super();
@@ -644,5 +627,4 @@ _defineProperty(UniverActionRecorderPlugin, "packageName", name);
644
627
  _defineProperty(UniverActionRecorderPlugin, "version", version);
645
628
  UniverActionRecorderPlugin = __decorate([__decorateParam(1, Inject(Injector)), __decorateParam(2, IConfigService)], UniverActionRecorderPlugin);
646
629
 
647
- //#endregion
648
630
  export { menuSchema as ActionRecorderMenuSchema, ActionRecorderService, ActionReplayService, UniverActionRecorderPlugin };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ar-SA.ts
1
+ // src/locale/ar-SA.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "جارٍ التسجيل...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ca-ES.ts
1
+ // src/locale/ca-ES.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "S'està enregistrant...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/de-DE.ts
1
+ // src/locale/de-DE.ts
2
2
  const locale = { "action-recorder": {
3
3
  panel: {
4
4
  recording: "Aufnahme läuft...",
@@ -18,5 +18,4 @@ const locale = { "action-recorder": {
18
18
  }
19
19
  } };
20
20
 
21
- //#endregion
22
21
  export { locale as default };