Skip to content

Commit 846ac60

Browse files
authored
PANA-5615: Add mobile ui element identifier (#341)
1 parent a31d0dc commit 846ac60

8 files changed

Lines changed: 34 additions & 0 deletions

File tree

lib/cjs/generated/mobileSessionReplay.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,10 @@ export interface CommonWireframe {
541541
*/
542542
readonly height: number;
543543
clip?: WireframeClip;
544+
/**
545+
* A globally unique and stable identifier for this UI element, computed as the hash of the element's path (32 lowercase hex characters). Used to correlate wireframes with RUM action events.
546+
*/
547+
readonly permanentId?: string;
544548
}
545549
/**
546550
* Schema of clipping information for a Wireframe.

lib/cjs/generated/rum.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ export type RumActionEvent = CommonProperties & ViewContainerSchema & {
131131
* CSS selector path of the target element
132132
*/
133133
readonly selector?: string;
134+
/**
135+
* Mobile-only: a globally unique and stable identifier for this UI element, computed as the hash of the element's path (32 lowercase hex characters). Used to correlate actions with mobile session replay wireframes.
136+
*/
137+
readonly permanent_id?: string;
134138
/**
135139
* Width of the target element (in pixels)
136140
*/

lib/cjs/generated/sessionReplay.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,10 @@ export interface CommonWireframe {
13471347
*/
13481348
readonly height: number;
13491349
clip?: WireframeClip;
1350+
/**
1351+
* A globally unique and stable identifier for this UI element, computed as the hash of the element's path (32 lowercase hex characters). Used to correlate wireframes with RUM action events.
1352+
*/
1353+
readonly permanentId?: string;
13501354
}
13511355
/**
13521356
* Schema of clipping information for a Wireframe.

lib/esm/generated/mobileSessionReplay.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,10 @@ export interface CommonWireframe {
541541
*/
542542
readonly height: number;
543543
clip?: WireframeClip;
544+
/**
545+
* A globally unique and stable identifier for this UI element, computed as the hash of the element's path (32 lowercase hex characters). Used to correlate wireframes with RUM action events.
546+
*/
547+
readonly permanentId?: string;
544548
}
545549
/**
546550
* Schema of clipping information for a Wireframe.

lib/esm/generated/rum.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ export type RumActionEvent = CommonProperties & ViewContainerSchema & {
131131
* CSS selector path of the target element
132132
*/
133133
readonly selector?: string;
134+
/**
135+
* Mobile-only: a globally unique and stable identifier for this UI element, computed as the hash of the element's path (32 lowercase hex characters). Used to correlate actions with mobile session replay wireframes.
136+
*/
137+
readonly permanent_id?: string;
134138
/**
135139
* Width of the target element (in pixels)
136140
*/

lib/esm/generated/sessionReplay.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,10 @@ export interface CommonWireframe {
13471347
*/
13481348
readonly height: number;
13491349
clip?: WireframeClip;
1350+
/**
1351+
* A globally unique and stable identifier for this UI element, computed as the hash of the element's path (32 lowercase hex characters). Used to correlate wireframes with RUM action events.
1352+
*/
1353+
readonly permanentId?: string;
13501354
}
13511355
/**
13521356
* Schema of clipping information for a Wireframe.

schemas/rum/action-schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@
180180
"description": "CSS selector path of the target element",
181181
"readOnly": true
182182
},
183+
"permanent_id": {
184+
"type": "string",
185+
"description": "Mobile-only: a globally unique and stable identifier for this UI element, computed as the hash of the element's path (32 lowercase hex characters). Used to correlate actions with mobile session replay wireframes.",
186+
"readOnly": true
187+
},
183188
"width": {
184189
"type": "integer",
185190
"description": "Width of the target element (in pixels)",

schemas/session-replay/mobile/_common-wireframe-schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
},
3434
"clip": {
3535
"$ref": "wireframe-clip-schema.json"
36+
},
37+
"permanentId": {
38+
"type": "string",
39+
"description": "A globally unique and stable identifier for this UI element, computed as the hash of the element's path (32 lowercase hex characters). Used to correlate wireframes with RUM action events.",
40+
"readOnly": true
3641
}
3742
}
3843
}

0 commit comments

Comments
 (0)