@openreplay/tracker 15.0.5 → 16.0.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/dist/cjs/common/messages.gen.d.ts +14 -1
- package/dist/cjs/index.js +39 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/messages.gen.d.ts +2 -0
- package/dist/cjs/main/modules/attributeSender.d.ts +3 -4
- package/dist/lib/common/messages.gen.d.ts +14 -1
- package/dist/lib/index.js +39 -12
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/messages.gen.d.ts +2 -0
- package/dist/lib/main/modules/attributeSender.d.ts +3 -4
- package/dist/types/common/messages.gen.d.ts +14 -1
- package/dist/types/main/app/messages.gen.d.ts +2 -0
- package/dist/types/main/modules/attributeSender.d.ts +3 -4
- package/package.json +1 -1
|
@@ -25,6 +25,8 @@ export declare function CustomEvent(name: string, payload: string): Messages.Cus
|
|
|
25
25
|
export declare function UserID(id: string): Messages.UserID;
|
|
26
26
|
export declare function UserAnonymousID(id: string): Messages.UserAnonymousID;
|
|
27
27
|
export declare function Metadata(key: string, value: string): Messages.Metadata;
|
|
28
|
+
export declare function StringDictGlobal(key: number, value: string): Messages.StringDictGlobal;
|
|
29
|
+
export declare function SetNodeAttributeDictGlobal(id: number, name: number, value: number): Messages.SetNodeAttributeDictGlobal;
|
|
28
30
|
export declare function CSSInsertRule(id: number, rule: string, index: number): Messages.CSSInsertRule;
|
|
29
31
|
export declare function CSSDeleteRule(id: number, index: number): Messages.CSSDeleteRule;
|
|
30
32
|
export declare function Fetch(method: string, url: string, request: string, response: string, status: number, timestamp: number, duration: number): Messages.Fetch;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import App from '../app/index.js';
|
|
2
2
|
export declare class StringDictionary {
|
|
3
|
-
private
|
|
4
|
-
private
|
|
3
|
+
private lastTs;
|
|
4
|
+
private lastSuffix;
|
|
5
5
|
/** backwards dictionary of
|
|
6
6
|
* [repeated str:key]
|
|
7
7
|
* */
|
|
8
8
|
private backDict;
|
|
9
|
-
|
|
10
|
-
getKey: (str: string) => [string, boolean];
|
|
9
|
+
getKey: (str: string) => [number, boolean];
|
|
11
10
|
}
|
|
12
11
|
export default class AttributeSender {
|
|
13
12
|
private dict;
|
|
@@ -24,6 +24,8 @@ export declare const enum Type {
|
|
|
24
24
|
UserID = 28,
|
|
25
25
|
UserAnonymousID = 29,
|
|
26
26
|
Metadata = 30,
|
|
27
|
+
StringDictGlobal = 34,
|
|
28
|
+
SetNodeAttributeDictGlobal = 35,
|
|
27
29
|
CSSInsertRule = 37,
|
|
28
30
|
CSSDeleteRule = 38,
|
|
29
31
|
Fetch = 39,
|
|
@@ -221,6 +223,17 @@ export type Metadata = [
|
|
|
221
223
|
string,
|
|
222
224
|
string
|
|
223
225
|
];
|
|
226
|
+
export type StringDictGlobal = [
|
|
227
|
+
Type.StringDictGlobal,
|
|
228
|
+
number,
|
|
229
|
+
string
|
|
230
|
+
];
|
|
231
|
+
export type SetNodeAttributeDictGlobal = [
|
|
232
|
+
Type.SetNodeAttributeDictGlobal,
|
|
233
|
+
number,
|
|
234
|
+
number,
|
|
235
|
+
number
|
|
236
|
+
];
|
|
224
237
|
export type CSSInsertRule = [
|
|
225
238
|
Type.CSSInsertRule,
|
|
226
239
|
number,
|
|
@@ -563,5 +576,5 @@ export type WebVitals = [
|
|
|
563
576
|
string,
|
|
564
577
|
string
|
|
565
578
|
];
|
|
566
|
-
type Message = Timestamp | SetPageLocationDeprecated | SetViewportSize | SetViewportScroll | CreateDocument | CreateElementNode | CreateTextNode | MoveNode | RemoveNode | SetNodeAttribute | RemoveNodeAttribute | SetNodeData | SetNodeScroll | SetInputTarget | SetInputValue | SetInputChecked | MouseMove | NetworkRequestDeprecated | ConsoleLog | PageLoadTiming | PageRenderTiming | CustomEvent | UserID | UserAnonymousID | Metadata | CSSInsertRule | CSSDeleteRule | Fetch | Profiler | OTable | StateAction | ReduxDeprecated | Vuex | MobX | NgRx | GraphQLDeprecated | PerformanceTrack | StringDictDeprecated | SetNodeAttributeDictDeprecated | StringDict | SetNodeAttributeDict | ResourceTimingDeprecated | ConnectionInformation | SetPageVisibility | LoadFontFace | SetNodeFocus | LongTask | SetNodeAttributeURLBased | SetCSSDataURLBased | TechnicalInfo | CustomIssue | CSSInsertRuleURLBased | MouseClick | MouseClickDeprecated | CreateIFrameDocument | AdoptedSSReplaceURLBased | AdoptedSSInsertRuleURLBased | AdoptedSSDeleteRule | AdoptedSSAddOwner | AdoptedSSRemoveOwner | JSException | Zustand | BatchMetadata | PartitionedMessage | NetworkRequest | WSChannel | InputChange | SelectionChange | MouseThrashing | UnbindNodes | ResourceTiming | TabChange | TabData | CanvasNode | TagTrigger | Redux | SetPageLocation | GraphQL | WebVitals;
|
|
579
|
+
type Message = Timestamp | SetPageLocationDeprecated | SetViewportSize | SetViewportScroll | CreateDocument | CreateElementNode | CreateTextNode | MoveNode | RemoveNode | SetNodeAttribute | RemoveNodeAttribute | SetNodeData | SetNodeScroll | SetInputTarget | SetInputValue | SetInputChecked | MouseMove | NetworkRequestDeprecated | ConsoleLog | PageLoadTiming | PageRenderTiming | CustomEvent | UserID | UserAnonymousID | Metadata | StringDictGlobal | SetNodeAttributeDictGlobal | CSSInsertRule | CSSDeleteRule | Fetch | Profiler | OTable | StateAction | ReduxDeprecated | Vuex | MobX | NgRx | GraphQLDeprecated | PerformanceTrack | StringDictDeprecated | SetNodeAttributeDictDeprecated | StringDict | SetNodeAttributeDict | ResourceTimingDeprecated | ConnectionInformation | SetPageVisibility | LoadFontFace | SetNodeFocus | LongTask | SetNodeAttributeURLBased | SetCSSDataURLBased | TechnicalInfo | CustomIssue | CSSInsertRuleURLBased | MouseClick | MouseClickDeprecated | CreateIFrameDocument | AdoptedSSReplaceURLBased | AdoptedSSInsertRuleURLBased | AdoptedSSDeleteRule | AdoptedSSAddOwner | AdoptedSSRemoveOwner | JSException | Zustand | BatchMetadata | PartitionedMessage | NetworkRequest | WSChannel | InputChange | SelectionChange | MouseThrashing | UnbindNodes | ResourceTiming | TabChange | TabData | CanvasNode | TagTrigger | Redux | SetPageLocation | GraphQL | WebVitals;
|
|
567
580
|
export default Message;
|
|
@@ -25,6 +25,8 @@ export declare function CustomEvent(name: string, payload: string): Messages.Cus
|
|
|
25
25
|
export declare function UserID(id: string): Messages.UserID;
|
|
26
26
|
export declare function UserAnonymousID(id: string): Messages.UserAnonymousID;
|
|
27
27
|
export declare function Metadata(key: string, value: string): Messages.Metadata;
|
|
28
|
+
export declare function StringDictGlobal(key: number, value: string): Messages.StringDictGlobal;
|
|
29
|
+
export declare function SetNodeAttributeDictGlobal(id: number, name: number, value: number): Messages.SetNodeAttributeDictGlobal;
|
|
28
30
|
export declare function CSSInsertRule(id: number, rule: string, index: number): Messages.CSSInsertRule;
|
|
29
31
|
export declare function CSSDeleteRule(id: number, index: number): Messages.CSSDeleteRule;
|
|
30
32
|
export declare function Fetch(method: string, url: string, request: string, response: string, status: number, timestamp: number, duration: number): Messages.Fetch;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import App from '../app/index.js';
|
|
2
2
|
export declare class StringDictionary {
|
|
3
|
-
private
|
|
4
|
-
private
|
|
3
|
+
private lastTs;
|
|
4
|
+
private lastSuffix;
|
|
5
5
|
/** backwards dictionary of
|
|
6
6
|
* [repeated str:key]
|
|
7
7
|
* */
|
|
8
8
|
private backDict;
|
|
9
|
-
|
|
10
|
-
getKey: (str: string) => [string, boolean];
|
|
9
|
+
getKey: (str: string) => [number, boolean];
|
|
11
10
|
}
|
|
12
11
|
export default class AttributeSender {
|
|
13
12
|
private dict;
|