@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.
- package/README.md +5 -5
- package/lib/cjs/index.js +24 -42
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/index.js +24 -42
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/index.js +24 -42
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
package/lib/es/locale/en-US.js
CHANGED
package/lib/es/locale/es-ES.js
CHANGED
package/lib/es/locale/fa-IR.js
CHANGED
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
export { locale as default };
|
package/lib/es/locale/id-ID.js
CHANGED
package/lib/es/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
export { locale as default };
|
package/lib/es/locale/ja-JP.js
CHANGED
package/lib/es/locale/ko-KR.js
CHANGED
package/lib/es/locale/pl-PL.js
CHANGED
package/lib/es/locale/pt-BR.js
CHANGED
package/lib/es/locale/ru-RU.js
CHANGED
package/lib/es/locale/sk-SK.js
CHANGED
package/lib/es/locale/vi-VN.js
CHANGED
package/lib/es/locale/zh-CN.js
CHANGED
package/lib/es/locale/zh-HK.js
CHANGED
package/lib/es/locale/zh-TW.js
CHANGED
package/lib/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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
172
|
-
|
|
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
|
|
176
|
-
if (void 0 !==
|
|
177
|
-
var i =
|
|
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" ===
|
|
176
|
+
return ("string" === e ? String : Number)(t);
|
|
182
177
|
}
|
|
183
178
|
|
|
184
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
375
|
-
//#region package.json
|
|
364
|
+
// package.json
|
|
376
365
|
var name = "@univerjs/action-recorder";
|
|
377
|
-
var version = "1.
|
|
366
|
+
var version = "1.5.0";
|
|
378
367
|
|
|
379
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|
package/lib/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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 };
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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 };
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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 };
|
package/lib/locale/en-US.js
CHANGED
package/lib/locale/es-ES.js
CHANGED
package/lib/locale/fa-IR.js
CHANGED
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
export { locale as default };
|
package/lib/locale/id-ID.js
CHANGED
package/lib/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
export { locale as default };
|
package/lib/locale/ja-JP.js
CHANGED
package/lib/locale/ko-KR.js
CHANGED
package/lib/locale/pl-PL.js
CHANGED
package/lib/locale/pt-BR.js
CHANGED
package/lib/locale/ru-RU.js
CHANGED
package/lib/locale/sk-SK.js
CHANGED
package/lib/locale/vi-VN.js
CHANGED
package/lib/locale/zh-CN.js
CHANGED
package/lib/locale/zh-HK.js
CHANGED
package/lib/locale/zh-TW.js
CHANGED