Skip to content

Commit

Permalink
introduce webview wireframe
Browse files Browse the repository at this point in the history
  • Loading branch information
mquentin committed Oct 12, 2023
1 parent f693b8d commit cd68550
Show file tree
Hide file tree
Showing 8 changed files with 174 additions and 8 deletions.
30 changes: 28 additions & 2 deletions lib/cjs/generated/mobileSessionReplay.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export declare type MobileFullSnapshotRecord = CommonRecordSchema & {
/**
* Schema of a Wireframe type.
*/
export declare type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe;
export declare type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe | WebviewWireframe;
/**
* Schema of all properties of a ShapeWireframe.
*/
Expand Down Expand Up @@ -187,6 +187,19 @@ export declare type PlaceholderWireframe = CommonWireframe & {
*/
label?: string;
};
/**
* Schema of all properties of a WebviewWireframe.
*/
export declare type WebviewWireframe = CommonShapeWireframe & {
/**
* The type of the wireframe.
*/
readonly type: 'webview';
/**
* Defines the unique ID of the webview.
*/
readonly webViewId: number;
};
/**
* Mobile-specific. Schema of a Record type which contains mutations of a screen.
*/
Expand Down Expand Up @@ -241,7 +254,7 @@ export declare type MobileMutationPayload = {
/**
* Schema of a WireframeUpdateMutation type.
*/
export declare type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate;
export declare type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate | WebviewWireframeUpdate;
/**
* Schema of all properties of a TextWireframeUpdate.
*/
Expand Down Expand Up @@ -307,6 +320,19 @@ export declare type PlaceholderWireframeUpdate = CommonWireframeUpdate & {
*/
label?: string;
};
/**
* Schema of all properties of a WebviewWireframeUpdate.
*/
export declare type WebviewWireframeUpdate = CommonShapeWireframeUpdate & {
/**
* The type of the wireframe.
*/
readonly type: 'webview';
/**
* Defines the unique ID of the webview.
*/
readonly webViewId: number;
};
/**
* Schema of a TouchData.
*/
Expand Down
30 changes: 28 additions & 2 deletions lib/cjs/generated/sessionReplay.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export declare type MobileFullSnapshotRecord = CommonRecordSchema & {
/**
* Schema of a Wireframe type.
*/
export declare type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe;
export declare type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe | WebviewWireframe;
/**
* Schema of all properties of a ShapeWireframe.
*/
Expand Down Expand Up @@ -488,6 +488,19 @@ export declare type PlaceholderWireframe = CommonWireframe & {
*/
label?: string;
};
/**
* Schema of all properties of a WebviewWireframe.
*/
export declare type WebviewWireframe = CommonShapeWireframe & {
/**
* The type of the wireframe.
*/
readonly type: 'webview';
/**
* Defines the unique ID of the webview.
*/
readonly webViewId: number;
};
/**
* Mobile-specific. Schema of a Record type which contains mutations of a screen.
*/
Expand Down Expand Up @@ -542,7 +555,7 @@ export declare type MobileMutationPayload = {
/**
* Schema of a WireframeUpdateMutation type.
*/
export declare type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate;
export declare type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate | WebviewWireframeUpdate;
/**
* Schema of all properties of a TextWireframeUpdate.
*/
Expand Down Expand Up @@ -608,6 +621,19 @@ export declare type PlaceholderWireframeUpdate = CommonWireframeUpdate & {
*/
label?: string;
};
/**
* Schema of all properties of a WebviewWireframeUpdate.
*/
export declare type WebviewWireframeUpdate = CommonShapeWireframeUpdate & {
/**
* The type of the wireframe.
*/
readonly type: 'webview';
/**
* Defines the unique ID of the webview.
*/
readonly webViewId: number;
};
/**
* Schema of a TouchData.
*/
Expand Down
30 changes: 28 additions & 2 deletions lib/esm/generated/mobileSessionReplay.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export declare type MobileFullSnapshotRecord = CommonRecordSchema & {
/**
* Schema of a Wireframe type.
*/
export declare type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe;
export declare type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe | WebviewWireframe;
/**
* Schema of all properties of a ShapeWireframe.
*/
Expand Down Expand Up @@ -187,6 +187,19 @@ export declare type PlaceholderWireframe = CommonWireframe & {
*/
label?: string;
};
/**
* Schema of all properties of a WebviewWireframe.
*/
export declare type WebviewWireframe = CommonShapeWireframe & {
/**
* The type of the wireframe.
*/
readonly type: 'webview';
/**
* Defines the unique ID of the webview.
*/
readonly webViewId: number;
};
/**
* Mobile-specific. Schema of a Record type which contains mutations of a screen.
*/
Expand Down Expand Up @@ -241,7 +254,7 @@ export declare type MobileMutationPayload = {
/**
* Schema of a WireframeUpdateMutation type.
*/
export declare type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate;
export declare type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate | WebviewWireframeUpdate;
/**
* Schema of all properties of a TextWireframeUpdate.
*/
Expand Down Expand Up @@ -307,6 +320,19 @@ export declare type PlaceholderWireframeUpdate = CommonWireframeUpdate & {
*/
label?: string;
};
/**
* Schema of all properties of a WebviewWireframeUpdate.
*/
export declare type WebviewWireframeUpdate = CommonShapeWireframeUpdate & {
/**
* The type of the wireframe.
*/
readonly type: 'webview';
/**
* Defines the unique ID of the webview.
*/
readonly webViewId: number;
};
/**
* Schema of a TouchData.
*/
Expand Down
30 changes: 28 additions & 2 deletions lib/esm/generated/sessionReplay.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export declare type MobileFullSnapshotRecord = CommonRecordSchema & {
/**
* Schema of a Wireframe type.
*/
export declare type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe;
export declare type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe | WebviewWireframe;
/**
* Schema of all properties of a ShapeWireframe.
*/
Expand Down Expand Up @@ -488,6 +488,19 @@ export declare type PlaceholderWireframe = CommonWireframe & {
*/
label?: string;
};
/**
* Schema of all properties of a WebviewWireframe.
*/
export declare type WebviewWireframe = CommonShapeWireframe & {
/**
* The type of the wireframe.
*/
readonly type: 'webview';
/**
* Defines the unique ID of the webview.
*/
readonly webViewId: number;
};
/**
* Mobile-specific. Schema of a Record type which contains mutations of a screen.
*/
Expand Down Expand Up @@ -542,7 +555,7 @@ export declare type MobileMutationPayload = {
/**
* Schema of a WireframeUpdateMutation type.
*/
export declare type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate;
export declare type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate | WebviewWireframeUpdate;
/**
* Schema of all properties of a TextWireframeUpdate.
*/
Expand Down Expand Up @@ -608,6 +621,19 @@ export declare type PlaceholderWireframeUpdate = CommonWireframeUpdate & {
*/
label?: string;
};
/**
* Schema of all properties of a WebviewWireframeUpdate.
*/
export declare type WebviewWireframeUpdate = CommonShapeWireframeUpdate & {
/**
* The type of the wireframe.
*/
readonly type: 'webview';
/**
* Defines the unique ID of the webview.
*/
readonly webViewId: number;
};
/**
* Schema of a TouchData.
*/
Expand Down
28 changes: 28 additions & 0 deletions schemas/session-replay/mobile/webview-wireframe-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "session-replay/mobile/webview-wireframe-schema.json",
"title": "WebviewWireframe",
"type": "object",
"description": "Schema of all properties of a WebviewWireframe.",
"allOf": [
{
"$ref": "_common-shape-wireframe-schema.json"
},
{
"required": ["type", "webViewId"],
"properties": {
"type": {
"type": "string",
"description": "The type of the wireframe.",
"const": "webview",
"readOnly": true
},
"webViewId": {
"type": "integer",
"description": "Defines the unique ID of the webview.",
"readOnly": true
}
}
}
]
}
28 changes: 28 additions & 0 deletions schemas/session-replay/mobile/webview-wireframe-update-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "session-replay/mobile/webview-wireframe-update-schema.json",
"title": "WebviewWireframeUpdate",
"type": "object",
"description": "Schema of all properties of a WebviewWireframeUpdate.",
"allOf": [
{
"$ref": "_common-shape-wireframe-update-schema.json"
},
{
"required": ["type", "webViewId"],
"properties": {
"type": {
"type": "string",
"description": "The type of the wireframe.",
"const": "webview",
"readOnly": true
},
"webViewId": {
"type": "integer",
"description": "Defines the unique ID of the webview.",
"readOnly": true
}
}
}
]
}
3 changes: 3 additions & 0 deletions schemas/session-replay/mobile/wireframe-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
},
{
"$ref": "placeholder-wireframe-schema.json"
},
{
"$ref": "webview-wireframe-schema.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
},
{
"$ref": "placeholder-wireframe-update-schema.json"
},
{
"$ref": "webview-wireframe-update-schema.json"
}
]
}

0 comments on commit cd68550

Please sign in to comment.