Skip to content

Commit 72236fa

Browse files
authored
[PANA-4766] Add truncationMode property to TextStyle schema (#318)
1 parent fe242fe commit 72236fa

5 files changed

Lines changed: 22 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
@@ -119,6 +119,10 @@ export declare type TextStyle = {
119119
* The font color as a string hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.
120120
*/
121121
readonly color: string;
122+
/**
123+
* Defines how text should be truncated when it exceeds the wireframe bounds. If omitted, text wraps naturally.
124+
*/
125+
readonly truncationMode?: 'clip' | 'head' | 'tail' | 'middle';
122126
};
123127
/**
124128
* Schema of all properties of a TextPosition.

lib/cjs/generated/sessionReplay.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ export declare type TextStyle = {
429429
* The font color as a string hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.
430430
*/
431431
readonly color: string;
432+
/**
433+
* Defines how text should be truncated when it exceeds the wireframe bounds. If omitted, text wraps naturally.
434+
*/
435+
readonly truncationMode?: 'clip' | 'head' | 'tail' | 'middle';
432436
};
433437
/**
434438
* Schema of all properties of a TextPosition.

lib/esm/generated/mobileSessionReplay.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ export declare type TextStyle = {
119119
* The font color as a string hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.
120120
*/
121121
readonly color: string;
122+
/**
123+
* Defines how text should be truncated when it exceeds the wireframe bounds. If omitted, text wraps naturally.
124+
*/
125+
readonly truncationMode?: 'clip' | 'head' | 'tail' | 'middle';
122126
};
123127
/**
124128
* Schema of all properties of a TextPosition.

lib/esm/generated/sessionReplay.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ export declare type TextStyle = {
429429
* The font color as a string hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.
430430
*/
431431
readonly color: string;
432+
/**
433+
* Defines how text should be truncated when it exceeds the wireframe bounds. If omitted, text wraps naturally.
434+
*/
435+
readonly truncationMode?: 'clip' | 'head' | 'tail' | 'middle';
432436
};
433437
/**
434438
* Schema of all properties of a TextPosition.

schemas/session-replay/mobile/text-style-schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
"pattern": "^#[A-Fa-f0-9]{6}([A-Fa-f0-9]{2})?$",
2424
"description": "The font color as a string hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.",
2525
"readOnly": true
26+
},
27+
"truncationMode": {
28+
"type": "string",
29+
"description": "Defines how text should be truncated when it exceeds the wireframe bounds. If omitted, text wraps naturally.",
30+
"enum": ["clip", "head", "tail", "middle"],
31+
"readOnly": true
2632
}
2733
},
2834
"readOnly": true

0 commit comments

Comments
 (0)