@playkit-js/moderation 3.2.6 → 3.2.7

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/moderation",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "main": "dist/playkit-moderation.js",
5
5
  "private": false,
6
6
  "bugs": {
@@ -74,14 +74,14 @@
74
74
  "html5 player"
75
75
  ],
76
76
  "dependencies": {
77
- "@playkit-js/common": "^1.2.9",
78
- "@playkit-js/playkit-js-ui": "^0.77.2",
79
- "@playkit-js/ui-managers": "^1.3.10"
77
+ "@playkit-js/common": "^1.2.10",
78
+ "@playkit-js/playkit-js-ui": "^0.77.3",
79
+ "@playkit-js/ui-managers": "^1.3.11"
80
80
  },
81
81
  "kaltura": {
82
82
  "name": "playkit-js-moderation",
83
83
  "dependencies": {
84
- "playkit-ui-managers": "1.3.10"
84
+ "playkit-ui-managers": "1.3.11"
85
85
  }
86
86
  }
87
87
  }
@@ -1,7 +1,6 @@
1
1
  import {h} from 'preact';
2
2
  import {icons} from '../icons';
3
3
  import {ui} from '@playkit-js/kaltura-player-js';
4
- import {A11yWrapper, OnClick} from '@playkit-js/common/dist/hoc/a11y-wrapper';
5
4
 
6
5
  const {Tooltip, Icon} = KalturaPlayer.ui.components;
7
6
  const {withText, Text} = KalturaPlayer.ui.preacti18n;
@@ -11,14 +10,12 @@ const translates = {
11
10
  };
12
11
 
13
12
  interface PluginButtonProps {
14
- onClick: OnClick;
15
13
  label?: string;
16
14
  }
17
15
 
18
- export const PluginButton = withText(translates)(({onClick, label}: PluginButtonProps) => {
16
+ export const PluginButton = withText(translates)(({label}: PluginButtonProps) => {
19
17
  return (
20
18
  <Tooltip label={label} type="bottom">
21
- <A11yWrapper onClick={onClick}>
22
19
  <button aria-label={label} className={ui.style.upperBarIcon} data-testid="moderationPluginButton">
23
20
  <Icon
24
21
  id="moderation-plugin-button"
@@ -28,7 +25,6 @@ export const PluginButton = withText(translates)(({onClick, label}: PluginButton
28
25
  path={icons.PLUGIN_ICON}
29
26
  />
30
27
  </button>
31
- </A11yWrapper>
32
28
  </Tooltip>
33
29
  );
34
30
  });
@@ -185,7 +185,7 @@ export class ModerationPlugin extends KalturaPlayer.core.BasePlugin {
185
185
  this.player.ready().then(() => {
186
186
  this._pluginIcon = this.upperBarManager!.add({
187
187
  label: 'Moderation',
188
- component: () => <PluginButton onClick={this._toggleOverlay} />,
188
+ component: () => <PluginButton />,
189
189
  svgIcon: {path: icons.PLUGIN_ICON, viewBox: `0 0 ${icons.BigSize} ${icons.BigSize}`},
190
190
  onClick: this._toggleOverlay
191
191
  }) as number;