signal-bridge 1.0.15 → 1.0.16
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.d.mts +42 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.global.js +11 -0
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -56,6 +56,20 @@ declare function createBridge(appId: string, options: BridgeOptions): {
|
|
|
56
56
|
txn: string;
|
|
57
57
|
key: string;
|
|
58
58
|
};
|
|
59
|
+
track: {
|
|
60
|
+
open_file: (payload?: any) => {
|
|
61
|
+
txn: string;
|
|
62
|
+
key: string;
|
|
63
|
+
};
|
|
64
|
+
open_document: (payload?: any) => {
|
|
65
|
+
txn: string;
|
|
66
|
+
key: string;
|
|
67
|
+
};
|
|
68
|
+
view_document: (payload?: any) => {
|
|
69
|
+
txn: string;
|
|
70
|
+
key: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
59
73
|
destroy(): void;
|
|
60
74
|
};
|
|
61
75
|
declare function resetBridge(): void;
|
|
@@ -97,6 +111,20 @@ declare function signalBridge(): {
|
|
|
97
111
|
txn: string;
|
|
98
112
|
key: string;
|
|
99
113
|
};
|
|
114
|
+
track: {
|
|
115
|
+
open_file: (payload?: any) => {
|
|
116
|
+
txn: string;
|
|
117
|
+
key: string;
|
|
118
|
+
};
|
|
119
|
+
open_document: (payload?: any) => {
|
|
120
|
+
txn: string;
|
|
121
|
+
key: string;
|
|
122
|
+
};
|
|
123
|
+
view_document: (payload?: any) => {
|
|
124
|
+
txn: string;
|
|
125
|
+
key: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
100
128
|
destroy(): void;
|
|
101
129
|
};
|
|
102
130
|
declare function initBridge(appId: string, options: BridgeOptions): {
|
|
@@ -137,6 +165,20 @@ declare function initBridge(appId: string, options: BridgeOptions): {
|
|
|
137
165
|
txn: string;
|
|
138
166
|
key: string;
|
|
139
167
|
};
|
|
168
|
+
track: {
|
|
169
|
+
open_file: (payload?: any) => {
|
|
170
|
+
txn: string;
|
|
171
|
+
key: string;
|
|
172
|
+
};
|
|
173
|
+
open_document: (payload?: any) => {
|
|
174
|
+
txn: string;
|
|
175
|
+
key: string;
|
|
176
|
+
};
|
|
177
|
+
view_document: (payload?: any) => {
|
|
178
|
+
txn: string;
|
|
179
|
+
key: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
140
182
|
destroy(): void;
|
|
141
183
|
};
|
|
142
184
|
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,20 @@ declare function createBridge(appId: string, options: BridgeOptions): {
|
|
|
56
56
|
txn: string;
|
|
57
57
|
key: string;
|
|
58
58
|
};
|
|
59
|
+
track: {
|
|
60
|
+
open_file: (payload?: any) => {
|
|
61
|
+
txn: string;
|
|
62
|
+
key: string;
|
|
63
|
+
};
|
|
64
|
+
open_document: (payload?: any) => {
|
|
65
|
+
txn: string;
|
|
66
|
+
key: string;
|
|
67
|
+
};
|
|
68
|
+
view_document: (payload?: any) => {
|
|
69
|
+
txn: string;
|
|
70
|
+
key: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
59
73
|
destroy(): void;
|
|
60
74
|
};
|
|
61
75
|
declare function resetBridge(): void;
|
|
@@ -97,6 +111,20 @@ declare function signalBridge(): {
|
|
|
97
111
|
txn: string;
|
|
98
112
|
key: string;
|
|
99
113
|
};
|
|
114
|
+
track: {
|
|
115
|
+
open_file: (payload?: any) => {
|
|
116
|
+
txn: string;
|
|
117
|
+
key: string;
|
|
118
|
+
};
|
|
119
|
+
open_document: (payload?: any) => {
|
|
120
|
+
txn: string;
|
|
121
|
+
key: string;
|
|
122
|
+
};
|
|
123
|
+
view_document: (payload?: any) => {
|
|
124
|
+
txn: string;
|
|
125
|
+
key: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
100
128
|
destroy(): void;
|
|
101
129
|
};
|
|
102
130
|
declare function initBridge(appId: string, options: BridgeOptions): {
|
|
@@ -137,6 +165,20 @@ declare function initBridge(appId: string, options: BridgeOptions): {
|
|
|
137
165
|
txn: string;
|
|
138
166
|
key: string;
|
|
139
167
|
};
|
|
168
|
+
track: {
|
|
169
|
+
open_file: (payload?: any) => {
|
|
170
|
+
txn: string;
|
|
171
|
+
key: string;
|
|
172
|
+
};
|
|
173
|
+
open_document: (payload?: any) => {
|
|
174
|
+
txn: string;
|
|
175
|
+
key: string;
|
|
176
|
+
};
|
|
177
|
+
view_document: (payload?: any) => {
|
|
178
|
+
txn: string;
|
|
179
|
+
key: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
140
182
|
destroy(): void;
|
|
141
183
|
};
|
|
142
184
|
|
package/dist/index.global.js
CHANGED
|
@@ -6827,6 +6827,17 @@ var _signalBridgeLib = (() => {
|
|
|
6827
6827
|
emitEncrypted(event, payload) {
|
|
6828
6828
|
return emitToHostEncrypted(event, payload);
|
|
6829
6829
|
},
|
|
6830
|
+
track: (() => {
|
|
6831
|
+
const EVENTS = [
|
|
6832
|
+
"open_file",
|
|
6833
|
+
"open_document",
|
|
6834
|
+
"view_document"
|
|
6835
|
+
];
|
|
6836
|
+
return EVENTS.reduce((acc, event) => {
|
|
6837
|
+
acc[event] = (payload) => emitToHostEncrypted(`activity:${event}`, payload != null ? payload : {});
|
|
6838
|
+
return acc;
|
|
6839
|
+
}, {});
|
|
6840
|
+
})(),
|
|
6830
6841
|
destroy() {
|
|
6831
6842
|
window.removeEventListener("message", messageHandler);
|
|
6832
6843
|
}
|