action-lens 1.0.6

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/index.css ADDED
@@ -0,0 +1,5 @@
1
+ /* src/style.css */
2
+ canvas.replayer-mouse-tail {
3
+ position: absolute;
4
+ }
5
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/style.css"],"sourcesContent":["canvas.replayer-mouse-tail {\n position: absolute;\n}"],"mappings":";AAAA,MAAM,CAAC;AACH,YAAU;AACd;","names":[]}
@@ -0,0 +1,76 @@
1
+ import * as _ism_tech_actionlens_type_src_DefaultType from '@ism-tech/actionlens-type/src/DefaultType';
2
+ import { Firestore, Timestamp } from 'firebase/firestore';
3
+ import { User, Project } from '@ism-tech/actionlens-type';
4
+ import { Replayer } from 'rrweb';
5
+
6
+ declare class ActionLensPlayer {
7
+ replayer: Replayer | null;
8
+ overlayContainer: HTMLElement | null;
9
+ playerStatus: "playing" | "paused" | "stopped";
10
+ targetDivId: string;
11
+ db: Firestore;
12
+ prefix: string;
13
+ userId: string | null;
14
+ projectId: string | null;
15
+ currentTime: number;
16
+ totalTime: number;
17
+ private setIntervalId;
18
+ constructor(userId: string, targetDivId: string, projectId: string | null, _db?: Firestore, prefix?: string);
19
+ replayRrwebSession(sessionId: string): Promise<void>;
20
+ private handleCustomEvent;
21
+ private displayEvent;
22
+ setReplayTime(time: number): void;
23
+ setTimeoutTimeline(): void;
24
+ endTimeoutTimeline(): void;
25
+ stopReplay(): void;
26
+ restartReplay(): void;
27
+ getCurrentTime(): number;
28
+ resetReplayer(): void;
29
+ fetchSessionList(): Promise<({
30
+ id: string;
31
+ startTime: Date;
32
+ endTime: Date;
33
+ userId: string;
34
+ originalUserId: string;
35
+ projectId?: string;
36
+ organizationId?: string;
37
+ } & _ism_tech_actionlens_type_src_DefaultType.DefaultType & {
38
+ userData: User;
39
+ })[]>;
40
+ }
41
+
42
+ declare class ActionLensRc {
43
+ sessionId: string;
44
+ stopFnForStore: any;
45
+ userId: string | null;
46
+ db: Firestore | null;
47
+ prefix: string;
48
+ userData: User | null;
49
+ projectId: string | null;
50
+ projectData: Project | null;
51
+ organizationId: string | null;
52
+ originalUserId: string | null;
53
+ constructor(_userId: string | null, projectId: string | null, userMeta: {
54
+ name: string;
55
+ email: string;
56
+ } | null, metaData?: Record<string, any>, _db?: Firestore | null, prefix?: string);
57
+ startConsoleRecording(): void;
58
+ startTimelineRecording(): void;
59
+ startRrwebRecordingForStore(): void;
60
+ stopRrwebRecordingForStore(): void;
61
+ updateActionRecordSession(): void;
62
+ }
63
+
64
+ /** Timestampの時はDateへの変更 */
65
+ declare function convertTimestampToDate(timestamp: Timestamp | Date | null): Date | null;
66
+ /**
67
+ * 時間を文字に変換
68
+ * @param payload Date | Timestamp | string | null
69
+ * @param format YYYY/MM/DD hh:mm:ss
70
+ */
71
+ declare const dateFormat: (payload: Date | Timestamp | string | number | null | undefined | {
72
+ _seconds: number;
73
+ _nanoseconds: number;
74
+ }, format?: string) => string;
75
+
76
+ export { ActionLensPlayer, ActionLensRc, convertTimestampToDate, dateFormat };
@@ -0,0 +1,76 @@
1
+ import * as _ism_tech_actionlens_type_src_DefaultType from '@ism-tech/actionlens-type/src/DefaultType';
2
+ import { Firestore, Timestamp } from 'firebase/firestore';
3
+ import { User, Project } from '@ism-tech/actionlens-type';
4
+ import { Replayer } from 'rrweb';
5
+
6
+ declare class ActionLensPlayer {
7
+ replayer: Replayer | null;
8
+ overlayContainer: HTMLElement | null;
9
+ playerStatus: "playing" | "paused" | "stopped";
10
+ targetDivId: string;
11
+ db: Firestore;
12
+ prefix: string;
13
+ userId: string | null;
14
+ projectId: string | null;
15
+ currentTime: number;
16
+ totalTime: number;
17
+ private setIntervalId;
18
+ constructor(userId: string, targetDivId: string, projectId: string | null, _db?: Firestore, prefix?: string);
19
+ replayRrwebSession(sessionId: string): Promise<void>;
20
+ private handleCustomEvent;
21
+ private displayEvent;
22
+ setReplayTime(time: number): void;
23
+ setTimeoutTimeline(): void;
24
+ endTimeoutTimeline(): void;
25
+ stopReplay(): void;
26
+ restartReplay(): void;
27
+ getCurrentTime(): number;
28
+ resetReplayer(): void;
29
+ fetchSessionList(): Promise<({
30
+ id: string;
31
+ startTime: Date;
32
+ endTime: Date;
33
+ userId: string;
34
+ originalUserId: string;
35
+ projectId?: string;
36
+ organizationId?: string;
37
+ } & _ism_tech_actionlens_type_src_DefaultType.DefaultType & {
38
+ userData: User;
39
+ })[]>;
40
+ }
41
+
42
+ declare class ActionLensRc {
43
+ sessionId: string;
44
+ stopFnForStore: any;
45
+ userId: string | null;
46
+ db: Firestore | null;
47
+ prefix: string;
48
+ userData: User | null;
49
+ projectId: string | null;
50
+ projectData: Project | null;
51
+ organizationId: string | null;
52
+ originalUserId: string | null;
53
+ constructor(_userId: string | null, projectId: string | null, userMeta: {
54
+ name: string;
55
+ email: string;
56
+ } | null, metaData?: Record<string, any>, _db?: Firestore | null, prefix?: string);
57
+ startConsoleRecording(): void;
58
+ startTimelineRecording(): void;
59
+ startRrwebRecordingForStore(): void;
60
+ stopRrwebRecordingForStore(): void;
61
+ updateActionRecordSession(): void;
62
+ }
63
+
64
+ /** Timestampの時はDateへの変更 */
65
+ declare function convertTimestampToDate(timestamp: Timestamp | Date | null): Date | null;
66
+ /**
67
+ * 時間を文字に変換
68
+ * @param payload Date | Timestamp | string | null
69
+ * @param format YYYY/MM/DD hh:mm:ss
70
+ */
71
+ declare const dateFormat: (payload: Date | Timestamp | string | number | null | undefined | {
72
+ _seconds: number;
73
+ _nanoseconds: number;
74
+ }, format?: string) => string;
75
+
76
+ export { ActionLensPlayer, ActionLensRc, convertTimestampToDate, dateFormat };