@playkit-js/transcript 3.4.6-canary.0-3e3c2cc → 3.4.6

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.4.6-canary.0-3e3c2cc",
3
+ "version": "3.4.6",
4
4
  "main": "dist/playkit-transcript.js",
5
5
  "license": "AGPL-3.0",
6
6
  "private": false,
@@ -73,9 +73,10 @@ const initialSearch = {
73
73
  };
74
74
 
75
75
  const SEARCHBAR_HEIGHT = 38; // height of search bar with margins
76
+ const smallScreen = PLAYER_BREAK_POINTS?.SMALL || 480;
76
77
 
77
78
  const mapStateToProps = (state: any, ownProps: Pick<TranscriptProps, 'expandMode'>) => ({
78
- smallScreen: ownProps.expandMode === SidePanelModes.ALONGSIDE && state.shell.playerClientRect?.width < PLAYER_BREAK_POINTS.SMALL
79
+ smallScreen: ownProps.expandMode === SidePanelModes.ALONGSIDE && state.shell.playerClientRect?.width < smallScreen
79
80
  });
80
81
 
81
82
  // @ts-ignore