@playkit-js/transcript 3.5.2-canary.0-ff51a39 → 3.5.2-canary.0-aaedc6e

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.5.2-canary.0-ff51a39",
3
+ "version": "3.5.2-canary.0-aaedc6e",
4
4
  "main": "dist/playkit-transcript.js",
5
5
  "license": "AGPL-3.0",
6
6
  "private": false,
@@ -24,6 +24,7 @@ export const PluginButton = ({isActive, label, id, icon, dataTestId, setRef}: Pl
24
24
  setRef(node);
25
25
  }
26
26
  }}
27
+ type="button"
27
28
  aria-label={label}
28
29
  className={[ui.style.upperBarIcon, styles.pluginButton, isActive ? styles.active : ''].join(' ')}
29
30
  data-testid={dataTestId}>
@@ -13,7 +13,7 @@ import {SmallScreenSlate} from '../small-screen-slate';
13
13
  import {Button, ButtonType, ButtonSize} from '@playkit-js/common/dist/components/button';
14
14
  import {OnClickEvent, OnClick} from '@playkit-js/common/dist/hoc/a11y-wrapper';
15
15
 
16
- const {ENTER, SPACE, TAB, ESC} = ui.utils.KeyMap;
16
+ const {ENTER, SPACE, TAB} = ui.utils.KeyMap;
17
17
  const {withText, Text} = ui.preacti18n;
18
18
 
19
19
  const {SidePanelModes} = ui;
@@ -372,12 +372,6 @@ export class Transcript extends Component<TranscriptProps, TranscriptState> {
372
372
  onActiveSearchIndexChange: debounce(this._setActiveSearchIndex, this.props.searchNextPrevDebounceTimeout)
373
373
  };
374
374
 
375
- private _handleEsc = (event: KeyboardEvent) => {
376
- if (event.keyCode === ESC) {
377
- this.props.onClose(event, true);
378
- }
379
- };
380
-
381
375
  render(props: TranscriptProps) {
382
376
  const {isLoading, kitchenSinkActive, hasError, smallScreen, toggledWithEnter} = props;
383
377
  const renderTranscriptButtons = !(isLoading || hasError);
@@ -387,7 +381,6 @@ export class Transcript extends Component<TranscriptProps, TranscriptState> {
387
381
  ref={node => {
388
382
  this._widgetRootRef = node;
389
383
  }}
390
- onKeyUp={this._handleEsc}
391
384
  data-testid="transcript_root">
392
385
  {smallScreen ? (
393
386
  <SmallScreenSlate onClose={this.props.onClose} toggledWithEnter={toggledWithEnter} />