@atlaskit/media-ui 25.0.2 → 25.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/media-ui
2
2
 
3
+ ## 25.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#43014](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43014) [`f021d31543e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f021d31543e) - create useFileState hook versions of header and itemviewer, create list-v2, refactor MediaFileStateError to media-client-react
8
+ - [#43014](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43014) [`761551f78ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/761551f78ab) - Implement useFileState hook on Media Viewer under Version 2
9
+ - Updated dependencies
10
+
11
+ ## 25.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 25.0.2
4
18
 
5
19
  ### Patch Changes
@@ -51,7 +51,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
51
51
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */ // Keep media player components used in media-viewer to use static colors from the new color palette to
52
52
  // support the hybrid theming in media viewer https://product-fabric.atlassian.net/browse/DSP-6067
53
53
  var packageName = "@atlaskit/media-ui";
54
- var packageVersion = "25.0.2";
54
+ var packageVersion = "25.0.4";
55
55
  var MEDIUM_VIDEO_MAX_WIDTH = 400;
56
56
  var SMALL_VIDEO_MAX_WIDTH = 160;
57
57
  var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -34,11 +34,7 @@ var Shortcut = exports.Shortcut = /*#__PURE__*/function (_Component) {
34
34
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "keyHandler", function (e) {
35
35
  var _this$props = _this.props,
36
36
  handler = _this$props.handler,
37
- code = _this$props.code,
38
- keyCode = _this$props.keyCode;
39
- if (keyCode !== undefined && e.keyCode === keyCode) {
40
- handler();
41
- }
37
+ code = _this$props.code;
42
38
  if (code !== undefined && e.code === code) {
43
39
  handler();
44
40
  }
@@ -34,7 +34,7 @@ import Tooltip from '@atlaskit/tooltip';
34
34
  import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
35
35
  import { getControlsWrapperClassName } from './getControlsWrapperClassName';
36
36
  const packageName = "@atlaskit/media-ui";
37
- const packageVersion = "25.0.2";
37
+ const packageVersion = "25.0.4";
38
38
  const MEDIUM_VIDEO_MAX_WIDTH = 400;
39
39
  const SMALL_VIDEO_MAX_WIDTH = 160;
40
40
  const MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -12,12 +12,8 @@ export class Shortcut extends Component {
12
12
  _defineProperty(this, "keyHandler", e => {
13
13
  const {
14
14
  handler,
15
- code,
16
- keyCode
15
+ code
17
16
  } = this.props;
18
- if (keyCode !== undefined && e.keyCode === keyCode) {
19
- handler();
20
- }
21
17
  if (code !== undefined && e.code === code) {
22
18
  handler();
23
19
  }
@@ -44,7 +44,7 @@ import Tooltip from '@atlaskit/tooltip';
44
44
  import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
45
45
  import { getControlsWrapperClassName } from './getControlsWrapperClassName';
46
46
  var packageName = "@atlaskit/media-ui";
47
- var packageVersion = "25.0.2";
47
+ var packageVersion = "25.0.4";
48
48
  var MEDIUM_VIDEO_MAX_WIDTH = 400;
49
49
  var SMALL_VIDEO_MAX_WIDTH = 160;
50
50
  var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -27,11 +27,7 @@ export var Shortcut = /*#__PURE__*/function (_Component) {
27
27
  _defineProperty(_assertThisInitialized(_this), "keyHandler", function (e) {
28
28
  var _this$props = _this.props,
29
29
  handler = _this$props.handler,
30
- code = _this$props.code,
31
- keyCode = _this$props.keyCode;
32
- if (keyCode !== undefined && e.keyCode === keyCode) {
33
- handler();
34
- }
30
+ code = _this$props.code;
35
31
  if (code !== undefined && e.code === code) {
36
32
  handler();
37
33
  }
@@ -5,18 +5,13 @@ export declare const keyCodes: {
5
5
  rightArrow: string;
6
6
  leftArrow: string;
7
7
  };
8
- type WithKeyCode = {
9
- /** @deprecated use code: string instead */
10
- keyCode: number;
11
- code?: never;
12
- };
13
8
  type WithCode = {
14
9
  code: string;
15
10
  keyCode?: never;
16
11
  };
17
12
  export type ShortcutProps = {
18
13
  handler: () => void;
19
- } & (WithKeyCode | WithCode);
14
+ } & WithCode;
20
15
  export declare class Shortcut extends Component<ShortcutProps, {}> {
21
16
  componentDidMount(): void;
22
17
  componentWillUnmount(): void;
@@ -5,18 +5,13 @@ export declare const keyCodes: {
5
5
  rightArrow: string;
6
6
  leftArrow: string;
7
7
  };
8
- type WithKeyCode = {
9
- /** @deprecated use code: string instead */
10
- keyCode: number;
11
- code?: never;
12
- };
13
8
  type WithCode = {
14
9
  code: string;
15
10
  keyCode?: never;
16
11
  };
17
12
  export type ShortcutProps = {
18
13
  handler: () => void;
19
- } & (WithKeyCode | WithCode);
14
+ } & WithCode;
20
15
  export declare class Shortcut extends Component<ShortcutProps, {}> {
21
16
  componentDidMount(): void;
22
17
  componentWillUnmount(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-ui",
3
- "version": "25.0.2",
3
+ "version": "25.0.4",
4
4
  "description": "Includes common components and utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@atlaskit/analytics-next": "^9.1.0",
27
- "@atlaskit/button": "^16.10.0",
27
+ "@atlaskit/button": "^16.15.0",
28
28
  "@atlaskit/code": "^14.6.0",
29
29
  "@atlaskit/icon": "^21.12.0",
30
30
  "@atlaskit/icon-file-type": "^6.4.0",
31
- "@atlaskit/locale": "^2.5.0",
32
- "@atlaskit/media-common": "^9.0.0",
31
+ "@atlaskit/locale": "^2.6.0",
32
+ "@atlaskit/media-common": "^11.0.0",
33
33
  "@atlaskit/select": "^16.7.0",
34
34
  "@atlaskit/spinner": "^15.6.0",
35
35
  "@atlaskit/theme": "^12.6.0",
package/report.api.md CHANGED
@@ -753,7 +753,7 @@ export class Shortcut extends Component<ShortcutProps, {}> {
753
753
  // @public (undocumented)
754
754
  export type ShortcutProps = {
755
755
  handler: () => void;
756
- } & (WithCode | WithKeyCode);
756
+ } & WithCode;
757
757
 
758
758
  // @public (undocumented)
759
759
  export const size: (value?: number | string) => string;
@@ -859,12 +859,6 @@ type WithCode = {
859
859
  keyCode?: never;
860
860
  };
861
861
 
862
- // @public (undocumented)
863
- type WithKeyCode = {
864
- keyCode: number;
865
- code?: never;
866
- };
867
-
868
862
  // @public (undocumented)
869
863
  type WithMediaButtonAppearance<T> = Omit<T, 'appearance'> & {
870
864
  appearance?: MediaButtonAppearance;
@@ -551,7 +551,7 @@ export class Shortcut extends Component<ShortcutProps, {}> {
551
551
  // @public (undocumented)
552
552
  export type ShortcutProps = {
553
553
  handler: () => void;
554
- } & (WithCode | WithKeyCode);
554
+ } & WithCode;
555
555
 
556
556
  // @public (undocumented)
557
557
  export const size: (value?: number | string) => string;
@@ -657,12 +657,6 @@ type WithCode = {
657
657
  keyCode?: never;
658
658
  };
659
659
 
660
- // @public (undocumented)
661
- type WithKeyCode = {
662
- keyCode: number;
663
- code?: never;
664
- };
665
-
666
660
  // @public (undocumented)
667
661
  type WithMediaButtonAppearance<T> = Omit<T, 'appearance'> & {
668
662
  appearance?: MediaButtonAppearance;