@playkit-js/transcript 3.7.13-canary.0-8ca264e → 3.7.13
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
|
@@ -137,8 +137,9 @@ export class Caption extends Component<ExtendedCaptionProps> {
|
|
|
137
137
|
if (text?.length === 0) {
|
|
138
138
|
return null;
|
|
139
139
|
}
|
|
140
|
+
const styleDetachedProtection = !!this.props.player?.config.ui.isCopyProtected ? styles.noCopyDetached : '';
|
|
140
141
|
return (
|
|
141
|
-
<span className={`${styles.captionSpan} no-copy ${
|
|
142
|
+
<span className={`${styles.captionSpan} no-copy ${styleDetachedProtection}`}>
|
|
142
143
|
{indexMap
|
|
143
144
|
? indexArray.map((el: string, index: number) => {
|
|
144
145
|
const preSelected = index === 0 ? text.substring(0, indexMap[el]) : '';
|