Skip to content

Commit 7e92fa2

Browse files
Add missing MobileIncrementalSource, WireframeType, and CompositeOperation values (#426)
1 parent 0b3c97f commit 7e92fa2

10 files changed

Lines changed: 82 additions & 6 deletions

lib/cjs/src/session-replay-mobile.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,24 @@ export type RecordType = (typeof RecordType)[keyof typeof RecordType];
2121
export declare const WireframeType: {
2222
Shape: SessionReplay.ShapeWireframe['type'];
2323
Text: SessionReplay.TextWireframe['type'];
24+
Image: SessionReplay.ImageWireframe['type'];
25+
Placeholder: SessionReplay.PlaceholderWireframe['type'];
26+
Webview: SessionReplay.WebviewWireframe['type'];
27+
EmbeddedContent: SessionReplay.EmbeddedContentWireframe['type'];
2428
};
2529
export type WireframeType = (typeof WireframeType)[keyof typeof WireframeType];
2630
export declare const IncrementalSource: {
2731
Mutation: SessionReplay.MobileMutationData['source'];
2832
Touch: SessionReplay.TouchData['source'];
2933
ViewportResize: SessionReplay.ViewportResizeData['source'];
3034
PointerInteraction: SessionReplay.PointerInteractionData['source'];
35+
CompositionTreeMutation: SessionReplay.CompositionTreeMutationData['source'];
3136
};
3237
export type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource];
38+
export declare const CompositeOperation: {
39+
SourceOver: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'sourceOver'>;
40+
DestinationIn: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'destinationIn'>;
41+
DestinationOut: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'destinationOut'>;
42+
PlusDarker: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'plusDarker'>;
43+
};
44+
export type CompositeOperation = (typeof CompositeOperation)[keyof typeof CompositeOperation];

lib/cjs/src/session-replay-mobile.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1414
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1515
};
1616
Object.defineProperty(exports, "__esModule", { value: true });
17-
exports.IncrementalSource = exports.WireframeType = exports.RecordType = exports.MobileSource = void 0;
17+
exports.CompositeOperation = exports.IncrementalSource = exports.WireframeType = exports.RecordType = exports.MobileSource = void 0;
1818
__exportStar(require("../generated/mobileSessionReplay"), exports);
1919
exports.MobileSource = {
2020
Android: 'android',
@@ -35,10 +35,21 @@ exports.RecordType = {
3535
exports.WireframeType = {
3636
Shape: 'shape',
3737
Text: 'text',
38+
Image: 'image',
39+
Placeholder: 'placeholder',
40+
Webview: 'webview',
41+
EmbeddedContent: 'embedded_content',
3842
};
3943
exports.IncrementalSource = {
4044
Mutation: 0,
4145
Touch: 2,
4246
ViewportResize: 4,
4347
PointerInteraction: 9,
48+
CompositionTreeMutation: 10,
49+
};
50+
exports.CompositeOperation = {
51+
SourceOver: 'sourceOver',
52+
DestinationIn: 'destinationIn',
53+
DestinationOut: 'destinationOut',
54+
PlusDarker: 'plusDarker',
4455
};

lib/cjs/src/session-replay.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { IncrementalSource as BrowserIncrementalSource, RecordType as Brows
22
import type { IncrementalSource as MobileIncrementalSource, RecordType as MobileRecordType } from './session-replay-mobile';
33
export * from '../generated/sessionReplay';
44
export { BrowserSource, ChangeType as BrowserChangeType, NodeType, IncrementalSource as BrowserIncrementalSource, MouseInteractionType, MediaInteractionType, PlaybackState, SnapshotFormat, } from './session-replay-browser';
5-
export { IncrementalSource as MobileIncrementalSource, MobileSource, WireframeType } from './session-replay-mobile';
5+
export { CompositeOperation, IncrementalSource as MobileIncrementalSource, MobileSource, WireframeType, } from './session-replay-mobile';
66
export declare const RecordType: {
77
BrowserFullSnapshot: typeof BrowserRecordType.FullSnapshot;
88
BrowserIncrementalSnapshot: typeof BrowserRecordType.IncrementalSnapshot;

lib/cjs/src/session-replay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1414
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1515
};
1616
Object.defineProperty(exports, "__esModule", { value: true });
17-
exports.PointerType = exports.PointerEventType = exports.RecordType = exports.WireframeType = exports.MobileSource = exports.MobileIncrementalSource = exports.SnapshotFormat = exports.PlaybackState = exports.MediaInteractionType = exports.MouseInteractionType = exports.BrowserIncrementalSource = exports.NodeType = exports.BrowserChangeType = exports.BrowserSource = void 0;
17+
exports.PointerType = exports.PointerEventType = exports.RecordType = exports.WireframeType = exports.MobileSource = exports.MobileIncrementalSource = exports.CompositeOperation = exports.SnapshotFormat = exports.PlaybackState = exports.MediaInteractionType = exports.MouseInteractionType = exports.BrowserIncrementalSource = exports.NodeType = exports.BrowserChangeType = exports.BrowserSource = void 0;
1818
__exportStar(require("../generated/sessionReplay"), exports);
1919
var session_replay_browser_1 = require("./session-replay-browser");
2020
Object.defineProperty(exports, "BrowserSource", { enumerable: true, get: function () { return session_replay_browser_1.BrowserSource; } });
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "MediaInteractionType", { enumerable: true, get:
2626
Object.defineProperty(exports, "PlaybackState", { enumerable: true, get: function () { return session_replay_browser_1.PlaybackState; } });
2727
Object.defineProperty(exports, "SnapshotFormat", { enumerable: true, get: function () { return session_replay_browser_1.SnapshotFormat; } });
2828
var session_replay_mobile_1 = require("./session-replay-mobile");
29+
Object.defineProperty(exports, "CompositeOperation", { enumerable: true, get: function () { return session_replay_mobile_1.CompositeOperation; } });
2930
Object.defineProperty(exports, "MobileIncrementalSource", { enumerable: true, get: function () { return session_replay_mobile_1.IncrementalSource; } });
3031
Object.defineProperty(exports, "MobileSource", { enumerable: true, get: function () { return session_replay_mobile_1.MobileSource; } });
3132
Object.defineProperty(exports, "WireframeType", { enumerable: true, get: function () { return session_replay_mobile_1.WireframeType; } });

lib/esm/src/session-replay-mobile.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,24 @@ export type RecordType = (typeof RecordType)[keyof typeof RecordType];
2121
export declare const WireframeType: {
2222
Shape: SessionReplay.ShapeWireframe['type'];
2323
Text: SessionReplay.TextWireframe['type'];
24+
Image: SessionReplay.ImageWireframe['type'];
25+
Placeholder: SessionReplay.PlaceholderWireframe['type'];
26+
Webview: SessionReplay.WebviewWireframe['type'];
27+
EmbeddedContent: SessionReplay.EmbeddedContentWireframe['type'];
2428
};
2529
export type WireframeType = (typeof WireframeType)[keyof typeof WireframeType];
2630
export declare const IncrementalSource: {
2731
Mutation: SessionReplay.MobileMutationData['source'];
2832
Touch: SessionReplay.TouchData['source'];
2933
ViewportResize: SessionReplay.ViewportResizeData['source'];
3034
PointerInteraction: SessionReplay.PointerInteractionData['source'];
35+
CompositionTreeMutation: SessionReplay.CompositionTreeMutationData['source'];
3136
};
3237
export type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource];
38+
export declare const CompositeOperation: {
39+
SourceOver: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'sourceOver'>;
40+
DestinationIn: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'destinationIn'>;
41+
DestinationOut: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'destinationOut'>;
42+
PlusDarker: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'plusDarker'>;
43+
};
44+
export type CompositeOperation = (typeof CompositeOperation)[keyof typeof CompositeOperation];

lib/esm/src/session-replay-mobile.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,21 @@ export var RecordType = {
1818
export var WireframeType = {
1919
Shape: 'shape',
2020
Text: 'text',
21+
Image: 'image',
22+
Placeholder: 'placeholder',
23+
Webview: 'webview',
24+
EmbeddedContent: 'embedded_content',
2125
};
2226
export var IncrementalSource = {
2327
Mutation: 0,
2428
Touch: 2,
2529
ViewportResize: 4,
2630
PointerInteraction: 9,
31+
CompositionTreeMutation: 10,
32+
};
33+
export var CompositeOperation = {
34+
SourceOver: 'sourceOver',
35+
DestinationIn: 'destinationIn',
36+
DestinationOut: 'destinationOut',
37+
PlusDarker: 'plusDarker',
2738
};

lib/esm/src/session-replay.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { IncrementalSource as BrowserIncrementalSource, RecordType as Brows
22
import type { IncrementalSource as MobileIncrementalSource, RecordType as MobileRecordType } from './session-replay-mobile';
33
export * from '../generated/sessionReplay';
44
export { BrowserSource, ChangeType as BrowserChangeType, NodeType, IncrementalSource as BrowserIncrementalSource, MouseInteractionType, MediaInteractionType, PlaybackState, SnapshotFormat, } from './session-replay-browser';
5-
export { IncrementalSource as MobileIncrementalSource, MobileSource, WireframeType } from './session-replay-mobile';
5+
export { CompositeOperation, IncrementalSource as MobileIncrementalSource, MobileSource, WireframeType, } from './session-replay-mobile';
66
export declare const RecordType: {
77
BrowserFullSnapshot: typeof BrowserRecordType.FullSnapshot;
88
BrowserIncrementalSnapshot: typeof BrowserRecordType.IncrementalSnapshot;

lib/esm/src/session-replay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export * from '../generated/sessionReplay';
22
export { BrowserSource, ChangeType as BrowserChangeType, NodeType, IncrementalSource as BrowserIncrementalSource, MouseInteractionType, MediaInteractionType, PlaybackState, SnapshotFormat, } from './session-replay-browser';
3-
export { IncrementalSource as MobileIncrementalSource, MobileSource, WireframeType } from './session-replay-mobile';
3+
export { CompositeOperation, IncrementalSource as MobileIncrementalSource, MobileSource, WireframeType, } from './session-replay-mobile';
44
export var RecordType = {
55
BrowserFullSnapshot: 2,
66
BrowserIncrementalSnapshot: 3,

lib/src/session-replay-mobile.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,17 @@ export type RecordType = (typeof RecordType)[keyof typeof RecordType]
3434
export const WireframeType: {
3535
Shape: SessionReplay.ShapeWireframe['type']
3636
Text: SessionReplay.TextWireframe['type']
37+
Image: SessionReplay.ImageWireframe['type']
38+
Placeholder: SessionReplay.PlaceholderWireframe['type']
39+
Webview: SessionReplay.WebviewWireframe['type']
40+
EmbeddedContent: SessionReplay.EmbeddedContentWireframe['type']
3741
} = {
3842
Shape: 'shape',
3943
Text: 'text',
44+
Image: 'image',
45+
Placeholder: 'placeholder',
46+
Webview: 'webview',
47+
EmbeddedContent: 'embedded_content',
4048
} as const
4149

4250
export type WireframeType = (typeof WireframeType)[keyof typeof WireframeType]
@@ -46,11 +54,27 @@ export const IncrementalSource: {
4654
Touch: SessionReplay.TouchData['source']
4755
ViewportResize: SessionReplay.ViewportResizeData['source']
4856
PointerInteraction: SessionReplay.PointerInteractionData['source']
57+
CompositionTreeMutation: SessionReplay.CompositionTreeMutationData['source']
4958
} = {
5059
Mutation: 0,
5160
Touch: 2,
5261
ViewportResize: 4,
5362
PointerInteraction: 9,
63+
CompositionTreeMutation: 10,
5464
} as const
5565

5666
export type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource]
67+
68+
export const CompositeOperation: {
69+
SourceOver: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'sourceOver'>
70+
DestinationIn: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'destinationIn'>
71+
DestinationOut: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'destinationOut'>
72+
PlusDarker: Extract<SessionReplay.CompositionLayer['compositeOperation'], 'plusDarker'>
73+
} = {
74+
SourceOver: 'sourceOver',
75+
DestinationIn: 'destinationIn',
76+
DestinationOut: 'destinationOut',
77+
PlusDarker: 'plusDarker',
78+
} as const
79+
80+
export type CompositeOperation = (typeof CompositeOperation)[keyof typeof CompositeOperation]

lib/src/session-replay.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ export {
1919
PlaybackState,
2020
SnapshotFormat,
2121
} from './session-replay-browser'
22-
export { IncrementalSource as MobileIncrementalSource, MobileSource, WireframeType } from './session-replay-mobile'
22+
export {
23+
CompositeOperation,
24+
IncrementalSource as MobileIncrementalSource,
25+
MobileSource,
26+
WireframeType,
27+
} from './session-replay-mobile'
2328

2429
export const RecordType: {
2530
BrowserFullSnapshot: typeof BrowserRecordType.FullSnapshot

0 commit comments

Comments
 (0)