@playkit-js/transcript 3.7.12-canary.0-e2073db → 3.7.12-canary.0-02c3445

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playkit-js/transcript",
3
- "version": "3.7.12-canary.0-e2073db",
3
+ "version": "3.7.12-canary.0-02c3445",
4
4
  "main": "dist/playkit-transcript.js",
5
5
  "license": "AGPL-3.0",
6
6
  "private": false,
@@ -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]) : '';
@@ -127,7 +127,7 @@ class TranscriptMenu extends Component<TranscriptMenuProps, TranscriptMenuState>
127
127
  });
128
128
  }
129
129
  const isSmallPlayer = playerWidth! <= PLAYER_BREAK_POINTS.SMALL;
130
- const shouldUseOverlay = !kitchenSinkDetached && (sidePanelPosition === SidePanelPositions.BOTTOM || isMobile || isSmallPlayer);
130
+ const shouldUseOverlay = !kitchenSinkDetached && (sidePanelPosition === SidePanelPositions.BOTTOM || sidePanelPosition === SidePanelPositions.TOP || isMobile || isSmallPlayer);
131
131
 
132
132
  if (shouldUseOverlay) {
133
133
  return (