noibu-react-native 0.2.11 → 0.2.13

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 (38) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +69 -0
  3. package/dist/api/ClientConfig.d.ts +3 -0
  4. package/dist/api/ClientConfig.js +3 -0
  5. package/dist/api/MetroplexSocket.d.ts +1 -1
  6. package/dist/api/MetroplexSocket.js +15 -8
  7. package/dist/constants.d.ts +0 -6
  8. package/dist/constants.js +1 -1
  9. package/dist/mobileTransformer/mobile-replay/index.d.ts +10 -0
  10. package/dist/mobileTransformer/mobile-replay/index.js +57 -0
  11. package/dist/mobileTransformer/mobile-replay/mobile.types.d.ts +312 -0
  12. package/dist/mobileTransformer/mobile-replay/mobile.types.js +11 -0
  13. package/dist/mobileTransformer/mobile-replay/rrweb.d.ts +573 -0
  14. package/dist/mobileTransformer/mobile-replay/rrweb.js +39 -0
  15. package/dist/mobileTransformer/mobile-replay/schema/mobile/rr-mobile-schema.json.js +1559 -0
  16. package/dist/mobileTransformer/mobile-replay/schema/web/rr-web-schema.json.js +1183 -0
  17. package/dist/mobileTransformer/mobile-replay/transformer/colors.d.ts +1 -0
  18. package/dist/mobileTransformer/mobile-replay/transformer/colors.js +43 -0
  19. package/dist/mobileTransformer/mobile-replay/transformer/screen-chrome.d.ts +13 -0
  20. package/dist/mobileTransformer/mobile-replay/transformer/screen-chrome.js +142 -0
  21. package/dist/mobileTransformer/mobile-replay/transformer/transformers.d.ts +59 -0
  22. package/dist/mobileTransformer/mobile-replay/transformer/transformers.js +1160 -0
  23. package/dist/mobileTransformer/mobile-replay/transformer/types.d.ts +40 -0
  24. package/dist/mobileTransformer/mobile-replay/transformer/wireframeStyle.d.ts +16 -0
  25. package/dist/mobileTransformer/mobile-replay/transformer/wireframeStyle.js +197 -0
  26. package/dist/mobileTransformer/utils.d.ts +1 -0
  27. package/dist/mobileTransformer/utils.js +5 -0
  28. package/dist/monitors/http-tools/GqlErrorValidator.js +4 -3
  29. package/dist/sessionRecorder/SessionRecorder.js +7 -4
  30. package/dist/sessionRecorder/nativeSessionRecorderSubscription.js +23 -3
  31. package/dist/sessionRecorder/types.d.ts +1 -1
  32. package/dist/utils/piiRedactor.js +15 -2
  33. package/dist/utils/piiRedactor.test.d.ts +1 -0
  34. package/ios/IOSPocEmitter.h +7 -0
  35. package/ios/IOSPocEmitter.m +33 -0
  36. package/noibu-react-native.podspec +50 -0
  37. package/package.json +17 -4
  38. package/android/.gitignore +0 -13
@@ -0,0 +1,573 @@
1
+ export declare type actionWithDelay = {
2
+ doAction: () => void;
3
+ delay: number;
4
+ };
5
+ export declare type addedNodeMutation = {
6
+ parentId: number;
7
+ previousId?: number | null;
8
+ nextId: number | null;
9
+ node: serializedNodeWithId;
10
+ };
11
+ export declare type adoptedStyleSheetCallback = (a: adoptedStyleSheetParam) => void;
12
+ export declare type adoptedStyleSheetData = {
13
+ source: IncrementalSource.AdoptedStyleSheet;
14
+ } & adoptedStyleSheetParam;
15
+ export declare type adoptedStyleSheetParam = {
16
+ id: number;
17
+ styles?: {
18
+ styleId: number;
19
+ rules: styleSheetAddRule[];
20
+ }[];
21
+ styleIds: number[];
22
+ };
23
+ export declare type Arguments<T> = T extends (...payload: infer U) => unknown ? U : unknown;
24
+ export declare type attributeCursor = {
25
+ node: Node;
26
+ attributes: {
27
+ [key: string]: string | styleOMValue | null;
28
+ };
29
+ styleDiff: styleOMValue;
30
+ _unchangedStyles: styleOMValue;
31
+ };
32
+ export declare type attributeMutation = {
33
+ id: number;
34
+ attributes: {
35
+ [key: string]: string | styleOMValue | null;
36
+ };
37
+ };
38
+ export declare type attributes = cssTextKeyAttr & {
39
+ [key: string]: string | number | true | null;
40
+ };
41
+ export declare type blockClass = string | RegExp;
42
+ export declare type CanvasArg = SerializedCanvasArg | string | number | boolean | null | CanvasArg[];
43
+ export declare enum CanvasContext {
44
+ '2D' = 0,
45
+ WebGL = 1,
46
+ WebGL2 = 2
47
+ }
48
+ export declare type canvasEventWithTime = eventWithTime & {
49
+ type: EventType.IncrementalSnapshot;
50
+ data: canvasMutationData;
51
+ };
52
+ export declare type canvasManagerMutationCallback = (target: HTMLCanvasElement, p: canvasMutationWithType) => void;
53
+ export declare type canvasMutationCallback = (p: canvasMutationParam) => void;
54
+ export declare type canvasMutationCommand = {
55
+ property: string;
56
+ args: Array<unknown>;
57
+ setter?: true;
58
+ };
59
+ export declare type canvasMutationData = {
60
+ source: IncrementalSource.CanvasMutation;
61
+ } & canvasMutationParam;
62
+ export declare type canvasMutationParam = {
63
+ id: number;
64
+ type: CanvasContext;
65
+ commands: canvasMutationCommand[];
66
+ } | ({
67
+ id: number;
68
+ type: CanvasContext;
69
+ } & canvasMutationCommand);
70
+ export declare type canvasMutationWithType = {
71
+ type: CanvasContext;
72
+ } & canvasMutationCommand;
73
+ export declare type cdataNode = {
74
+ type: NodeType.CDATA;
75
+ textContent: '';
76
+ };
77
+ export declare type commentNode = {
78
+ type: NodeType.Comment;
79
+ textContent: string;
80
+ };
81
+ declare type cssTextKeyAttr = {
82
+ _cssText?: string;
83
+ };
84
+ export declare type customElementCallback = (c: customElementParam) => void;
85
+ export declare type customElementData = {
86
+ source: IncrementalSource.CustomElement;
87
+ } & customElementParam;
88
+ export declare type customElementParam = {
89
+ define?: {
90
+ name: string;
91
+ };
92
+ };
93
+ export declare type customEvent<T = unknown> = {
94
+ type: EventType.Custom;
95
+ data: {
96
+ tag: string;
97
+ payload: T;
98
+ };
99
+ };
100
+ export declare type DataURLOptions = Partial<{
101
+ type: string;
102
+ quality: number;
103
+ }>;
104
+ export declare type DeprecatedMirror = {
105
+ map: {
106
+ [key: number]: INode;
107
+ };
108
+ getId: (n: Node) => number;
109
+ getNode: (id: number) => INode | null;
110
+ removeNodeFromMap: (n: Node) => void;
111
+ has: (id: number) => boolean;
112
+ reset: () => void;
113
+ };
114
+ export declare type DocumentDimension = {
115
+ x: number;
116
+ y: number;
117
+ relativeScale: number;
118
+ absoluteScale: number;
119
+ };
120
+ export declare type documentNode = {
121
+ type: NodeType.Document;
122
+ childNodes: serializedNodeWithId[];
123
+ compatMode?: string;
124
+ };
125
+ export declare type documentTypeNode = {
126
+ type: NodeType.DocumentType;
127
+ name: string;
128
+ publicId: string;
129
+ systemId: string;
130
+ };
131
+ export declare type domContentLoadedEvent = {
132
+ type: EventType.DomContentLoaded;
133
+ data: unknown;
134
+ };
135
+ export declare type elementNode = {
136
+ type: NodeType.Element;
137
+ tagName: string;
138
+ attributes: attributes;
139
+ childNodes: serializedNodeWithId[];
140
+ isSVG?: true;
141
+ needBlock?: boolean;
142
+ isCustom?: true;
143
+ };
144
+ export declare type Emitter = {
145
+ on(type: string, handler: Handler): void;
146
+ emit(type: string, event?: unknown): void;
147
+ off(type: string, handler: Handler): void;
148
+ };
149
+ declare type event_2 = eventWithoutTime;
150
+ export { event_2 as event };
151
+ export declare enum EventType {
152
+ DomContentLoaded = 0,
153
+ Load = 1,
154
+ FullSnapshot = 2,
155
+ IncrementalSnapshot = 3,
156
+ Meta = 4,
157
+ Custom = 5,
158
+ Plugin = 6
159
+ }
160
+ export declare type eventWithoutTime = domContentLoadedEvent | loadedEvent | fullSnapshotEvent | incrementalSnapshotEvent | metaEvent | customEvent | pluginEvent;
161
+ export declare type eventWithTime = eventWithoutTime & {
162
+ timestamp: number;
163
+ delay?: number;
164
+ };
165
+ export declare type fontCallback = (p: fontParam) => void;
166
+ export declare type fontData = {
167
+ source: IncrementalSource.Font;
168
+ } & fontParam;
169
+ export declare type fontParam = {
170
+ family: string;
171
+ fontSource: string;
172
+ buffer: boolean;
173
+ descriptors?: FontFaceDescriptors;
174
+ };
175
+ export declare type fullSnapshotEvent = {
176
+ type: EventType.FullSnapshot;
177
+ data: {
178
+ node: serializedNodeWithId;
179
+ initialOffset: {
180
+ top: number;
181
+ left: number;
182
+ };
183
+ };
184
+ };
185
+ export declare type GetTypedKeys<Obj extends object, ValueType> = TakeTypeHelper<Obj, ValueType>[keyof TakeTypeHelper<Obj, ValueType>];
186
+ export declare type Handler = (event?: unknown) => void;
187
+ export declare type hookResetter = () => void;
188
+ export declare type hooksParam = {
189
+ mutation?: mutationCallBack;
190
+ mousemove?: mousemoveCallBack;
191
+ mouseInteraction?: mouseInteractionCallBack;
192
+ scroll?: scrollCallback;
193
+ viewportResize?: viewportResizeCallback;
194
+ input?: inputCallback;
195
+ mediaInteaction?: mediaInteractionCallback;
196
+ styleSheetRule?: styleSheetRuleCallback;
197
+ styleDeclaration?: styleDeclarationCallback;
198
+ canvasMutation?: canvasMutationCallback;
199
+ font?: fontCallback;
200
+ selection?: selectionCallback;
201
+ customElement?: customElementCallback;
202
+ };
203
+ export declare interface ICrossOriginIframeMirror {
204
+ getId(iframe: HTMLIFrameElement, remoteId: number, parentToRemoteMap?: Map<number, number>, remoteToParentMap?: Map<number, number>): number;
205
+ getIds(iframe: HTMLIFrameElement, remoteId: number[]): number[];
206
+ getRemoteId(iframe: HTMLIFrameElement, parentId: number, map?: Map<number, number>): number;
207
+ getRemoteIds(iframe: HTMLIFrameElement, parentId: number[]): number[];
208
+ reset(iframe?: HTMLIFrameElement): void;
209
+ }
210
+ export declare type ImageBitmapDataURLWorkerParams = {
211
+ id: number;
212
+ bitmap: ImageBitmap;
213
+ width: number;
214
+ height: number;
215
+ dataURLOptions: DataURLOptions;
216
+ };
217
+ export declare type ImageBitmapDataURLWorkerResponse = {
218
+ id: number;
219
+ } | {
220
+ id: number;
221
+ type: string;
222
+ base64: string;
223
+ width: number;
224
+ height: number;
225
+ };
226
+ export declare interface IMirror<TNode> {
227
+ getId(n: TNode | undefined | null): number;
228
+ getNode(id: number): TNode | null;
229
+ getIds(): number[];
230
+ getMeta(n: TNode): serializedNodeWithId | null;
231
+ removeNodeFromMap(n: TNode): void;
232
+ has(id: number): boolean;
233
+ hasNode(node: TNode): boolean;
234
+ add(n: TNode, meta: serializedNodeWithId): void;
235
+ replace(id: number, n: TNode): void;
236
+ reset(): void;
237
+ }
238
+ export declare type incrementalData = mutationData | mousemoveData | mouseInteractionData | scrollData | viewportResizeData | inputData | mediaInteractionData | styleSheetRuleData | canvasMutationData | fontData | selectionData | styleDeclarationData | adoptedStyleSheetData | customElementData;
239
+ export declare type incrementalSnapshotEvent = {
240
+ type: EventType.IncrementalSnapshot;
241
+ data: incrementalData;
242
+ };
243
+ export declare enum IncrementalSource {
244
+ Mutation = 0,
245
+ MouseMove = 1,
246
+ MouseInteraction = 2,
247
+ Scroll = 3,
248
+ ViewportResize = 4,
249
+ Input = 5,
250
+ TouchMove = 6,
251
+ MediaInteraction = 7,
252
+ StyleSheetRule = 8,
253
+ CanvasMutation = 9,
254
+ Font = 10,
255
+ Log = 11,
256
+ Drag = 12,
257
+ StyleDeclaration = 13,
258
+ Selection = 14,
259
+ AdoptedStyleSheet = 15,
260
+ CustomElement = 16
261
+ }
262
+ declare interface INode extends Node {
263
+ __sn: serializedNodeWithId;
264
+ }
265
+ export declare type inputCallback = (v: inputValue & {
266
+ id: number;
267
+ }) => void;
268
+ export declare type inputData = {
269
+ source: IncrementalSource.Input;
270
+ id: number;
271
+ } & inputValue;
272
+ export declare type inputValue = {
273
+ text: string;
274
+ isChecked: boolean;
275
+ userTriggered?: boolean;
276
+ };
277
+ export declare type IWindow = Window & typeof globalThis;
278
+ export declare type KeepIframeSrcFn = (src: string) => boolean;
279
+ export declare type legacyAttributes = {
280
+ selected: false;
281
+ };
282
+ export declare type listenerHandler = () => void;
283
+ export declare type loadedEvent = {
284
+ type: EventType.Load;
285
+ data: unknown;
286
+ };
287
+ export declare type maskTextClass = string | RegExp;
288
+ export declare type mediaAttributes = {
289
+ rr_mediaState: 'played' | 'paused';
290
+ rr_mediaCurrentTime: number;
291
+ rr_mediaPlaybackRate?: number;
292
+ rr_mediaMuted?: boolean;
293
+ rr_mediaLoop?: boolean;
294
+ rr_mediaVolume?: number;
295
+ };
296
+ export declare type mediaInteractionCallback = (p: mediaInteractionParam) => void;
297
+ export declare type mediaInteractionData = {
298
+ source: IncrementalSource.MediaInteraction;
299
+ } & mediaInteractionParam;
300
+ export declare type mediaInteractionParam = {
301
+ type: MediaInteractions;
302
+ id: number;
303
+ currentTime?: number;
304
+ volume?: number;
305
+ muted?: boolean;
306
+ loop?: boolean;
307
+ playbackRate?: number;
308
+ };
309
+ export declare enum MediaInteractions {
310
+ Play = 0,
311
+ Pause = 1,
312
+ Seeked = 2,
313
+ VolumeChange = 3,
314
+ RateChange = 4
315
+ }
316
+ export declare type metaEvent = {
317
+ type: EventType.Meta;
318
+ data: {
319
+ href: string;
320
+ width: number;
321
+ height: number;
322
+ };
323
+ };
324
+ export declare type mouseInteractionCallBack = (d: mouseInteractionParam) => void;
325
+ export declare type mouseInteractionData = {
326
+ source: IncrementalSource.MouseInteraction;
327
+ } & mouseInteractionParam;
328
+ declare type mouseInteractionParam = {
329
+ type: MouseInteractions;
330
+ id: number;
331
+ x?: number;
332
+ y?: number;
333
+ pointerType?: PointerTypes;
334
+ };
335
+ export declare enum MouseInteractions {
336
+ MouseUp = 0,
337
+ MouseDown = 1,
338
+ Click = 2,
339
+ ContextMenu = 3,
340
+ DblClick = 4,
341
+ Focus = 5,
342
+ Blur = 6,
343
+ TouchStart = 7,
344
+ TouchMove_Departed = 8,
345
+ TouchEnd = 9,
346
+ TouchCancel = 10
347
+ }
348
+ export declare type mousemoveCallBack = (p: mousePosition[], source: IncrementalSource.MouseMove | IncrementalSource.TouchMove | IncrementalSource.Drag) => void;
349
+ export declare type mousemoveData = {
350
+ source: IncrementalSource.MouseMove | IncrementalSource.TouchMove | IncrementalSource.Drag;
351
+ positions: mousePosition[];
352
+ };
353
+ export declare type mouseMovePos = {
354
+ x: number;
355
+ y: number;
356
+ id: number;
357
+ debugData: incrementalData;
358
+ };
359
+ export declare type mousePosition = {
360
+ x: number;
361
+ y: number;
362
+ id: number;
363
+ timeOffset: number;
364
+ };
365
+ export declare type mutationCallBack = (m: mutationCallbackParam) => void;
366
+ export declare type mutationCallbackParam = {
367
+ texts: textMutation[];
368
+ attributes: attributeMutation[];
369
+ removes: removedNodeMutation[];
370
+ adds: addedNodeMutation[];
371
+ isAttachIframe?: true;
372
+ };
373
+ export declare type mutationData = {
374
+ source: IncrementalSource.Mutation;
375
+ } & mutationCallbackParam;
376
+ export declare type mutationRecord = Readonly<{
377
+ type: string;
378
+ target: Node;
379
+ oldValue: string | null;
380
+ addedNodes: NodeList;
381
+ removedNodes: NodeList;
382
+ attributeName: string | null;
383
+ }>;
384
+ export declare enum NodeType {
385
+ Document = 0,
386
+ DocumentType = 1,
387
+ Element = 2,
388
+ Text = 3,
389
+ CDATA = 4,
390
+ Comment = 5
391
+ }
392
+ export declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
393
+ export declare type PackFn = (event: eventWithTime) => string;
394
+ export declare type playerMetaData = {
395
+ startTime: number;
396
+ endTime: number;
397
+ totalTime: number;
398
+ };
399
+ export declare type pluginEvent<T = unknown> = {
400
+ type: EventType.Plugin;
401
+ data: {
402
+ plugin: string;
403
+ payload: T;
404
+ };
405
+ };
406
+ export declare enum PointerTypes {
407
+ Mouse = 0,
408
+ Pen = 1,
409
+ Touch = 2
410
+ }
411
+ export declare type RecordPlugin<TOptions = unknown> = {
412
+ name: string;
413
+ observer?: (cb: (...args: Array<unknown>) => void, win: IWindow, options: TOptions) => listenerHandler;
414
+ eventProcessor?: <TExtend>(event: eventWithTime) => eventWithTime & TExtend;
415
+ getMirror?: (mirrors: {
416
+ nodeMirror: IMirror<Node>;
417
+ crossOriginIframeMirror: ICrossOriginIframeMirror;
418
+ crossOriginIframeStyleMirror: ICrossOriginIframeMirror;
419
+ }) => void;
420
+ options: TOptions;
421
+ };
422
+ export declare type removedNodeMutation = {
423
+ parentId: number;
424
+ id: number;
425
+ isShadow?: boolean;
426
+ };
427
+ export declare enum ReplayerEvents {
428
+ Start = "start",
429
+ Pause = "pause",
430
+ Resume = "resume",
431
+ Resize = "resize",
432
+ Finish = "finish",
433
+ FullsnapshotRebuilded = "fullsnapshot-rebuilded",
434
+ LoadStylesheetStart = "load-stylesheet-start",
435
+ LoadStylesheetEnd = "load-stylesheet-end",
436
+ SkipStart = "skip-start",
437
+ SkipEnd = "skip-end",
438
+ MouseInteraction = "mouse-interaction",
439
+ EventCast = "event-cast",
440
+ CustomEvent = "custom-event",
441
+ Flush = "flush",
442
+ StateChange = "state-change",
443
+ PlayBack = "play-back",
444
+ Destroy = "destroy"
445
+ }
446
+ export declare type SamplingStrategy = Partial<{
447
+ mousemove: boolean | number;
448
+ mousemoveCallback: number;
449
+ mouseInteraction: boolean | Record<string, boolean | undefined>;
450
+ scroll: number;
451
+ media: number;
452
+ input: 'all' | 'last';
453
+ canvas: 'all' | number;
454
+ }>;
455
+ export declare type scrollCallback = (p: scrollPosition) => void;
456
+ export declare type scrollData = {
457
+ source: IncrementalSource.Scroll;
458
+ } & scrollPosition;
459
+ export declare type scrollPosition = {
460
+ id: number;
461
+ x: number;
462
+ y: number;
463
+ };
464
+ export declare type selectionCallback = (p: selectionParam) => void;
465
+ export declare type selectionData = {
466
+ source: IncrementalSource.Selection;
467
+ } & selectionParam;
468
+ export declare type selectionParam = {
469
+ ranges: Array<SelectionRange>;
470
+ };
471
+ export declare type SelectionRange = {
472
+ start: number;
473
+ startOffset: number;
474
+ end: number;
475
+ endOffset: number;
476
+ };
477
+ export declare type SerializedCanvasArg = {
478
+ rr_type: 'ArrayBuffer';
479
+ base64: string;
480
+ } | {
481
+ rr_type: 'Blob';
482
+ data: Array<CanvasArg>;
483
+ type?: string;
484
+ } | {
485
+ rr_type: string;
486
+ src: string;
487
+ } | {
488
+ rr_type: string;
489
+ args: Array<CanvasArg>;
490
+ } | {
491
+ rr_type: string;
492
+ index: number;
493
+ };
494
+ export declare type serializedElementNodeWithId = Extract<serializedNodeWithId, Record<'type', NodeType.Element>>;
495
+ export declare type serializedNode = (documentNode | documentTypeNode | elementNode | textNode | cdataNode | commentNode) & {
496
+ rootId?: number;
497
+ isShadowHost?: boolean;
498
+ isShadow?: boolean;
499
+ };
500
+ export declare type serializedNodeWithId = serializedNode & {
501
+ id: number;
502
+ };
503
+ export declare type styleDeclarationCallback = (s: styleDeclarationParam) => void;
504
+ export declare type styleDeclarationData = {
505
+ source: IncrementalSource.StyleDeclaration;
506
+ } & styleDeclarationParam;
507
+ export declare type styleDeclarationParam = {
508
+ id?: number;
509
+ styleId?: number;
510
+ index: number[];
511
+ set?: {
512
+ property: string;
513
+ value: string | null;
514
+ priority: string | undefined;
515
+ };
516
+ remove?: {
517
+ property: string;
518
+ };
519
+ };
520
+ export declare type styleOMValue = {
521
+ [key: string]: styleValueWithPriority | string | false;
522
+ };
523
+ export declare type styleSheetAddRule = {
524
+ rule: string;
525
+ index?: number | number[];
526
+ };
527
+ export declare type styleSheetDeleteRule = {
528
+ index: number | number[];
529
+ };
530
+ export declare type styleSheetRuleCallback = (s: styleSheetRuleParam) => void;
531
+ export declare type styleSheetRuleData = {
532
+ source: IncrementalSource.StyleSheetRule;
533
+ } & styleSheetRuleParam;
534
+ export declare type styleSheetRuleParam = {
535
+ id?: number;
536
+ styleId?: number;
537
+ removes?: styleSheetDeleteRule[];
538
+ adds?: styleSheetAddRule[];
539
+ replace?: string;
540
+ replaceSync?: string;
541
+ };
542
+ export declare type styleValueWithPriority = [string, string];
543
+ export declare type TakeTypedKeyValues<Obj extends object, Type> = Pick<Obj, TakeTypeHelper<Obj, Type>[keyof TakeTypeHelper<Obj, Type>]>;
544
+ export declare type TakeTypeHelper<Obj extends object, ValueType> = {
545
+ [K in keyof Obj]: Obj[K] extends ValueType ? K : never;
546
+ };
547
+ export declare type textCursor = {
548
+ node: Node;
549
+ value: string | null;
550
+ };
551
+ export declare type textMutation = {
552
+ id: number;
553
+ value: string | null;
554
+ };
555
+ export declare type textNode = {
556
+ type: NodeType.Text;
557
+ textContent: string;
558
+ isStyle?: true;
559
+ };
560
+ export declare type throttleOptions = {
561
+ leading?: boolean;
562
+ trailing?: boolean;
563
+ };
564
+ export declare type UnpackFn = (raw: string) => eventWithTime;
565
+ export declare type viewportResizeCallback = (d: viewportResizeDimension) => void;
566
+ export declare type viewportResizeData = {
567
+ source: IncrementalSource.ViewportResize;
568
+ } & viewportResizeDimension;
569
+ export declare type viewportResizeDimension = {
570
+ width: number;
571
+ height: number;
572
+ };
573
+ export {};
@@ -0,0 +1,39 @@
1
+ /// <reference lib="dom" />
2
+ /// <reference lib="dom.iterable" />
3
+ var EventType;
4
+ (function (EventType) {
5
+ EventType[EventType["DomContentLoaded"] = 0] = "DomContentLoaded";
6
+ EventType[EventType["Load"] = 1] = "Load";
7
+ EventType[EventType["FullSnapshot"] = 2] = "FullSnapshot";
8
+ EventType[EventType["IncrementalSnapshot"] = 3] = "IncrementalSnapshot";
9
+ EventType[EventType["Meta"] = 4] = "Meta";
10
+ EventType[EventType["Custom"] = 5] = "Custom";
11
+ EventType[EventType["Plugin"] = 6] = "Plugin";
12
+ })(EventType || (EventType = {}));
13
+ var IncrementalSource;
14
+ (function (IncrementalSource) {
15
+ IncrementalSource[IncrementalSource["Mutation"] = 0] = "Mutation";
16
+ IncrementalSource[IncrementalSource["MouseMove"] = 1] = "MouseMove";
17
+ IncrementalSource[IncrementalSource["MouseInteraction"] = 2] = "MouseInteraction";
18
+ IncrementalSource[IncrementalSource["Scroll"] = 3] = "Scroll";
19
+ IncrementalSource[IncrementalSource["ViewportResize"] = 4] = "ViewportResize";
20
+ IncrementalSource[IncrementalSource["Input"] = 5] = "Input";
21
+ IncrementalSource[IncrementalSource["TouchMove"] = 6] = "TouchMove";
22
+ IncrementalSource[IncrementalSource["MediaInteraction"] = 7] = "MediaInteraction";
23
+ IncrementalSource[IncrementalSource["StyleSheetRule"] = 8] = "StyleSheetRule";
24
+ IncrementalSource[IncrementalSource["CanvasMutation"] = 9] = "CanvasMutation";
25
+ IncrementalSource[IncrementalSource["Font"] = 10] = "Font";
26
+ IncrementalSource[IncrementalSource["Log"] = 11] = "Log";
27
+ IncrementalSource[IncrementalSource["Drag"] = 12] = "Drag";
28
+ IncrementalSource[IncrementalSource["StyleDeclaration"] = 13] = "StyleDeclaration";
29
+ IncrementalSource[IncrementalSource["Selection"] = 14] = "Selection";
30
+ IncrementalSource[IncrementalSource["AdoptedStyleSheet"] = 15] = "AdoptedStyleSheet";
31
+ IncrementalSource[IncrementalSource["CustomElement"] = 16] = "CustomElement";
32
+ })(IncrementalSource || (IncrementalSource = {}));
33
+ //declare global {
34
+ //interface Window {
35
+ //FontFace: typeof FontFace;
36
+ //}
37
+ //}
38
+
39
+ export { EventType, IncrementalSource };