@playkit-js/transcript 3.5.7 → 3.5.8-canary.0-6be5a59

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.7",
3
+ "version": "3.5.8-canary.0-6be5a59",
4
4
  "main": "dist/playkit-transcript.js",
5
5
  "license": "AGPL-3.0",
6
6
  "private": false,
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {TranscriptPlugin} from './transcript-plugin';
1
+ import { pluginName, TranscriptPlugin } from "./transcript-plugin";
2
2
 
3
3
  declare var __VERSION__: string;
4
4
  declare var __NAME__: string;
@@ -9,6 +9,4 @@ const NAME = __NAME__;
9
9
  export {TranscriptPlugin as Plugin};
10
10
  export {VERSION, NAME};
11
11
 
12
- const pluginName: string = 'playkit-js-transcript';
13
-
14
12
  KalturaPlayer.core.registerPlugin(pluginName, TranscriptPlugin);
@@ -10,6 +10,8 @@ import {Transcript} from './components/transcript';
10
10
  import {getConfigValue, isBoolean, makePlainText, prepareCuePoint} from './utils';
11
11
  import {TranscriptConfig, PluginStates, HighlightedMap, CuePointData, ItemTypes, CuePoint} from './types';
12
12
 
13
+ export const pluginName: string = 'playkit-js-transcript';
14
+
13
15
  const {SidePanelModes, SidePanelPositions, ReservedPresetNames, ReservedPresetAreas} = ui;
14
16
  const {withText, Text} = KalturaPlayer.ui.preacti18n;
15
17
  const {get} = ObjectUtils;
@@ -267,8 +269,14 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin {
267
269
  showTranscript: <Text id="transcript.show_plugin">Show Transcript</Text>,
268
270
  hideTranscript: <Text id="transcript.hide_plugin">Hide Transcript</Text>
269
271
  };
272
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
273
+ // @ts-ignore
270
274
  this._transcriptIcon = this.upperBarManager!.add({
271
- label: 'Transcript',
275
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
276
+ // @ts-ignore
277
+ displayName: 'Transcript',
278
+ ariaLabel: 'Transcript',
279
+ order: 30,
272
280
  svgIcon: {path: icons.PLUGIN_ICON, viewBox: `0 0 ${icons.BigSize} ${icons.BigSize}`},
273
281
  onClick: this._handleClickOnPluginIcon as () => void,
274
282
  component: withText(translates)((props: {showTranscript: string; hideTranscript: string}) => {
@@ -277,7 +285,7 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin {
277
285
  return (
278
286
  <PluginButton
279
287
  isActive={isActive}
280
- id="transcript-icon"
288
+ id={pluginName}
281
289
  label={label}
282
290
  icon={icons.PLUGIN_ICON}
283
291
  dataTestId="transcript_pluginButton"