@playkit-js/transcript 3.7.12-canary.0-8bc7ac4 → 3.7.12
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.
package/package.json
CHANGED
|
@@ -75,3 +75,22 @@
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
|
|
79
|
+
// Copy protection for transcript text in detached mode
|
|
80
|
+
// Replicates global .no-copy styles and adds span child selection protection
|
|
81
|
+
.no-copy-detached {
|
|
82
|
+
user-select: none !important;
|
|
83
|
+
-webkit-user-select: none !important;
|
|
84
|
+
-moz-user-select: none !important;
|
|
85
|
+
-ms-user-select: none !important;
|
|
86
|
+
-webkit-touch-callout: none !important;
|
|
87
|
+
cursor: default;
|
|
88
|
+
|
|
89
|
+
&::selection {
|
|
90
|
+
background: transparent;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
& > span::selection {
|
|
94
|
+
background: transparent;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -138,7 +138,7 @@ export class Caption extends Component<ExtendedCaptionProps> {
|
|
|
138
138
|
return null;
|
|
139
139
|
}
|
|
140
140
|
return (
|
|
141
|
-
<span className={`${styles.captionSpan} no-copy`}>
|
|
141
|
+
<span className={`${styles.captionSpan} no-copy ${styles.noCopyDetached}`}>
|
|
142
142
|
{indexMap
|
|
143
143
|
? indexArray.map((el: string, index: number) => {
|
|
144
144
|
const preSelected = index === 0 ? text.substring(0, indexMap[el]) : '';
|