@atlaskit/media-ui 22.0.0 → 22.1.2

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,28 @@
1
1
  # @atlaskit/media-ui
2
2
 
3
+ ## 22.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
8
+
9
+ ## 22.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`e3d4c39b20c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3d4c39b20c) - Remove version.json file.
14
+ Use injected package name and version from environment variable instead.
15
+
16
+ ## 22.1.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [`ed6cdd2d397`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed6cdd2d397) - added onfullscreenchange property to media to avoid triggering table resizing when media is in full screen mode
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies
25
+
3
26
  ## 22.0.0
4
27
 
5
28
  ### Major Changes
@@ -25,8 +25,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
25
25
 
26
26
  var _react = _interopRequireWildcard(require("react"));
27
27
 
28
- var _version = require("../version.json");
29
-
30
28
  var _analyticsNext = require("@atlaskit/analytics-next");
31
29
 
32
30
  var _vidPlay = _interopRequireDefault(require("@atlaskit/icon/glyph/vid-play"));
@@ -97,6 +95,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
97
95
 
98
96
  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; } }
99
97
 
98
+ var packageName = "@atlaskit/media-ui";
99
+ var packageVersion = "22.1.2";
100
100
  var MEDIUM_VIDEO_MAX_WIDTH = 400;
101
101
  var SMALL_VIDEO_MAX_WIDTH = 160;
102
102
  var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -144,6 +144,10 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
144
144
  var isFullScreenEnabled = !!(0, _fullscreen.getFullscreenElement)();
145
145
 
146
146
  if (currentFullScreenMode !== isFullScreenEnabled) {
147
+ var _this$props$onFullscr, _this$props;
148
+
149
+ (_this$props$onFullscr = (_this$props = _this.props).onFullscreenChange) === null || _this$props$onFullscr === void 0 ? void 0 : _this$props$onFullscr.call(_this$props, isFullScreenEnabled);
150
+
147
151
  _this.setState({
148
152
  isFullScreenEnabled: isFullScreenEnabled
149
153
  });
@@ -170,11 +174,11 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
170
174
  }, (0, _formatDuration.formatDuration)(currentTime), " / ", (0, _formatDuration.formatDuration)(duration));
171
175
  });
172
176
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderHDButton", function () {
173
- var _this$props = _this.props,
174
- type = _this$props.type,
175
- isHDAvailable = _this$props.isHDAvailable,
176
- isHDActive = _this$props.isHDActive,
177
- onHDToggleClick = _this$props.onHDToggleClick;
177
+ var _this$props2 = _this.props,
178
+ type = _this$props2.type,
179
+ isHDAvailable = _this$props2.isHDAvailable,
180
+ isHDActive = _this$props2.isHDActive,
181
+ onHDToggleClick = _this$props2.onHDToggleClick;
178
182
 
179
183
  if (type === 'audio' || !isHDAvailable) {
180
184
  return;
@@ -264,9 +268,9 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
264
268
  }
265
269
  });
266
270
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderFullScreenButton", function () {
267
- var _this$props2 = _this.props,
268
- formatMessage = _this$props2.intl.formatMessage,
269
- type = _this$props2.type;
271
+ var _this$props3 = _this.props,
272
+ formatMessage = _this$props3.intl.formatMessage,
273
+ type = _this$props3.type;
270
274
 
271
275
  if (type === 'audio') {
272
276
  return;
@@ -420,13 +424,13 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
420
424
  };
421
425
  });
422
426
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onViewed", function (videoState) {
423
- var _this$props3 = _this.props,
424
- createAnalyticsEvent = _this$props3.createAnalyticsEvent,
425
- fileId = _this$props3.fileId,
426
- isAutoPlay = _this$props3.isAutoPlay,
427
- isHDAvailable = _this$props3.isHDAvailable,
428
- isHDActive = _this$props3.isHDActive,
429
- type = _this$props3.type;
427
+ var _this$props4 = _this.props,
428
+ createAnalyticsEvent = _this$props4.createAnalyticsEvent,
429
+ fileId = _this$props4.fileId,
430
+ isAutoPlay = _this$props4.isAutoPlay,
431
+ isHDAvailable = _this$props4.isHDAvailable,
432
+ isHDActive = _this$props4.isHDActive,
433
+ type = _this$props4.type;
430
434
  var _this$state = _this.state,
431
435
  isFullScreenEnabled = _this$state.isFullScreenEnabled,
432
436
  playerSize = _this$state.playerSize,
@@ -480,14 +484,14 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
480
484
  (0, _createClass2.default)(CustomMediaPlayerBase, [{
481
485
  key: "componentDidMount",
482
486
  value: function componentDidMount() {
483
- var _this$props4 = this.props,
484
- type = _this$props4.type,
485
- fileId = _this$props4.fileId,
486
- isAutoPlay = _this$props4.isAutoPlay,
487
- isHDAvailable = _this$props4.isHDAvailable,
488
- isHDActive = _this$props4.isHDActive,
489
- onFirstPlay = _this$props4.onFirstPlay,
490
- createAnalyticsEvent = _this$props4.createAnalyticsEvent;
487
+ var _this$props5 = this.props,
488
+ type = _this$props5.type,
489
+ fileId = _this$props5.fileId,
490
+ isAutoPlay = _this$props5.isAutoPlay,
491
+ isHDAvailable = _this$props5.isHDAvailable,
492
+ isHDActive = _this$props5.isHDActive,
493
+ onFirstPlay = _this$props5.onFirstPlay,
494
+ createAnalyticsEvent = _this$props5.createAnalyticsEvent;
491
495
  var _this$state2 = this.state,
492
496
  isFullScreenEnabled = _this$state2.isFullScreenEnabled,
493
497
  playerSize = _this$state2.playerSize,
@@ -531,6 +535,12 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
531
535
  this.videoWrapperRef.current.removeEventListener('fullscreenchange', this.onFullScreenChange);
532
536
  }
533
537
 
538
+ if (this.state.isFullScreenEnabled) {
539
+ var _this$props$onFullscr2, _this$props6;
540
+
541
+ (_this$props$onFullscr2 = (_this$props6 = this.props).onFullscreenChange) === null || _this$props$onFullscr2 === void 0 ? void 0 : _this$props$onFullscr2.call(_this$props6, false);
542
+ }
543
+
534
544
  _simultaneousPlayManager.default.unsubscribe(this);
535
545
  }
536
546
  }, {
@@ -545,13 +555,13 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
545
555
  }, {
546
556
  key: "createAndFireUIEvent",
547
557
  value: function createAndFireUIEvent(eventType, actionSubjectId) {
548
- var _this$props5 = this.props,
549
- type = _this$props5.type,
550
- fileId = _this$props5.fileId,
551
- isHDActive = _this$props5.isHDActive,
552
- isHDAvailable = _this$props5.isHDAvailable,
553
- isAutoPlay = _this$props5.isAutoPlay,
554
- createAnalyticsEvent = _this$props5.createAnalyticsEvent;
558
+ var _this$props7 = this.props,
559
+ type = _this$props7.type,
560
+ fileId = _this$props7.fileId,
561
+ isHDActive = _this$props7.isHDActive,
562
+ isHDAvailable = _this$props7.isHDAvailable,
563
+ isAutoPlay = _this$props7.isAutoPlay,
564
+ createAnalyticsEvent = _this$props7.createAnalyticsEvent;
555
565
  var _this$state3 = this.state,
556
566
  isFullScreenEnabled = _this$state3.isFullScreenEnabled,
557
567
  playerSize = _this$state3.playerSize,
@@ -608,13 +618,13 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
608
618
  value: function render() {
609
619
  var _this2 = this;
610
620
 
611
- var _this$props6 = this.props,
612
- type = _this$props6.type,
613
- src = _this$props6.src,
614
- isAutoPlay = _this$props6.isAutoPlay,
615
- onCanPlay = _this$props6.onCanPlay,
616
- onError = _this$props6.onError,
617
- poster = _this$props6.poster;
621
+ var _this$props8 = this.props,
622
+ type = _this$props8.type,
623
+ src = _this$props8.src,
624
+ isAutoPlay = _this$props8.isAutoPlay,
625
+ onCanPlay = _this$props8.onCanPlay,
626
+ onError = _this$props8.onError,
627
+ poster = _this$props8.poster;
618
628
  return /*#__PURE__*/_react.default.createElement(_styled.CustomVideoWrapper, {
619
629
  ref: this.videoWrapperRef,
620
630
  "data-testid": "custom-media-player"
@@ -685,8 +695,8 @@ var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
685
695
 
686
696
  exports.CustomMediaPlayerBase = CustomMediaPlayerBase;
687
697
  var CustomMediaPlayer = (0, _mediaCommon.withMediaAnalyticsContext)({
688
- packageVersion: _version.version,
689
- packageName: _version.name,
698
+ packageVersion: packageVersion,
699
+ packageName: packageName,
690
700
  componentName: 'customMediaPlayer',
691
701
  component: 'customMediaPlayer'
692
702
  }, {
@@ -8,10 +8,10 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.parsePNGChunks = parsePNGChunks;
9
9
  exports.readPNGXMPMetaData = readPNGXMPMetaData;
10
10
 
11
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
12
-
13
11
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
14
12
 
13
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
14
+
15
15
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
16
16
 
17
17
  var _util = require("../util");
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-ui",
3
- "version": "22.0.0",
3
+ "version": "22.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import { Component } from 'react';
4
- import { version as packageVersion, name as packageName } from '../version.json';
5
4
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
6
5
  import PlayIcon from '@atlaskit/icon/glyph/vid-play';
7
6
  import PauseIcon from '@atlaskit/icon/glyph/vid-pause';
@@ -31,6 +30,8 @@ import { PlayPauseBlanket } from './playPauseBlanket';
31
30
  import Tooltip from '@atlaskit/tooltip';
32
31
  import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
33
32
  import { getControlsWrapperClassName } from './getControlsWrapperClassName';
33
+ const packageName = "@atlaskit/media-ui";
34
+ const packageVersion = "22.1.2";
34
35
  const MEDIUM_VIDEO_MAX_WIDTH = 400;
35
36
  const SMALL_VIDEO_MAX_WIDTH = 160;
36
37
  const MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -74,6 +75,9 @@ export class CustomMediaPlayerBase extends Component {
74
75
  const isFullScreenEnabled = !!getFullscreenElement();
75
76
 
76
77
  if (currentFullScreenMode !== isFullScreenEnabled) {
78
+ var _this$props$onFullscr, _this$props;
79
+
80
+ (_this$props$onFullscr = (_this$props = this.props).onFullscreenChange) === null || _this$props$onFullscr === void 0 ? void 0 : _this$props$onFullscr.call(_this$props, isFullScreenEnabled);
77
81
  this.setState({
78
82
  isFullScreenEnabled
79
83
  });
@@ -507,6 +511,12 @@ export class CustomMediaPlayerBase extends Component {
507
511
  this.videoWrapperRef.current.removeEventListener('fullscreenchange', this.onFullScreenChange);
508
512
  }
509
513
 
514
+ if (this.state.isFullScreenEnabled) {
515
+ var _this$props$onFullscr2, _this$props2;
516
+
517
+ (_this$props$onFullscr2 = (_this$props2 = this.props).onFullscreenChange) === null || _this$props$onFullscr2 === void 0 ? void 0 : _this$props$onFullscr2.call(_this$props2, false);
518
+ }
519
+
510
520
  simultaneousPlayManager.unsubscribe(this);
511
521
  }
512
522
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-ui",
3
- "version": "22.0.0",
3
+ "version": "22.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -16,7 +16,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
16
16
 
17
17
  import React from 'react';
18
18
  import { Component } from 'react';
19
- import { version as packageVersion, name as packageName } from '../version.json';
20
19
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
21
20
  import PlayIcon from '@atlaskit/icon/glyph/vid-play';
22
21
  import PauseIcon from '@atlaskit/icon/glyph/vid-pause';
@@ -46,6 +45,8 @@ import { PlayPauseBlanket } from './playPauseBlanket';
46
45
  import Tooltip from '@atlaskit/tooltip';
47
46
  import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
48
47
  import { getControlsWrapperClassName } from './getControlsWrapperClassName';
48
+ var packageName = "@atlaskit/media-ui";
49
+ var packageVersion = "22.1.2";
49
50
  var MEDIUM_VIDEO_MAX_WIDTH = 400;
50
51
  var SMALL_VIDEO_MAX_WIDTH = 160;
51
52
  var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -99,6 +100,10 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
99
100
  var isFullScreenEnabled = !!getFullscreenElement();
100
101
 
101
102
  if (currentFullScreenMode !== isFullScreenEnabled) {
103
+ var _this$props$onFullscr, _this$props;
104
+
105
+ (_this$props$onFullscr = (_this$props = _this.props).onFullscreenChange) === null || _this$props$onFullscr === void 0 ? void 0 : _this$props$onFullscr.call(_this$props, isFullScreenEnabled);
106
+
102
107
  _this.setState({
103
108
  isFullScreenEnabled: isFullScreenEnabled
104
109
  });
@@ -130,11 +135,11 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
130
135
  });
131
136
 
132
137
  _defineProperty(_assertThisInitialized(_this), "renderHDButton", function () {
133
- var _this$props = _this.props,
134
- type = _this$props.type,
135
- isHDAvailable = _this$props.isHDAvailable,
136
- isHDActive = _this$props.isHDActive,
137
- onHDToggleClick = _this$props.onHDToggleClick;
138
+ var _this$props2 = _this.props,
139
+ type = _this$props2.type,
140
+ isHDAvailable = _this$props2.isHDAvailable,
141
+ isHDActive = _this$props2.isHDActive,
142
+ onHDToggleClick = _this$props2.onHDToggleClick;
138
143
 
139
144
  if (type === 'audio' || !isHDAvailable) {
140
145
  return;
@@ -231,9 +236,9 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
231
236
  });
232
237
 
233
238
  _defineProperty(_assertThisInitialized(_this), "renderFullScreenButton", function () {
234
- var _this$props2 = _this.props,
235
- formatMessage = _this$props2.intl.formatMessage,
236
- type = _this$props2.type;
239
+ var _this$props3 = _this.props,
240
+ formatMessage = _this$props3.intl.formatMessage,
241
+ type = _this$props3.type;
237
242
 
238
243
  if (type === 'audio') {
239
244
  return;
@@ -398,13 +403,13 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
398
403
  });
399
404
 
400
405
  _defineProperty(_assertThisInitialized(_this), "onViewed", function (videoState) {
401
- var _this$props3 = _this.props,
402
- createAnalyticsEvent = _this$props3.createAnalyticsEvent,
403
- fileId = _this$props3.fileId,
404
- isAutoPlay = _this$props3.isAutoPlay,
405
- isHDAvailable = _this$props3.isHDAvailable,
406
- isHDActive = _this$props3.isHDActive,
407
- type = _this$props3.type;
406
+ var _this$props4 = _this.props,
407
+ createAnalyticsEvent = _this$props4.createAnalyticsEvent,
408
+ fileId = _this$props4.fileId,
409
+ isAutoPlay = _this$props4.isAutoPlay,
410
+ isHDAvailable = _this$props4.isHDAvailable,
411
+ isHDActive = _this$props4.isHDActive,
412
+ type = _this$props4.type;
408
413
  var _this$state = _this.state,
409
414
  isFullScreenEnabled = _this$state.isFullScreenEnabled,
410
415
  playerSize = _this$state.playerSize,
@@ -466,14 +471,14 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
466
471
  _createClass(CustomMediaPlayerBase, [{
467
472
  key: "componentDidMount",
468
473
  value: function componentDidMount() {
469
- var _this$props4 = this.props,
470
- type = _this$props4.type,
471
- fileId = _this$props4.fileId,
472
- isAutoPlay = _this$props4.isAutoPlay,
473
- isHDAvailable = _this$props4.isHDAvailable,
474
- isHDActive = _this$props4.isHDActive,
475
- onFirstPlay = _this$props4.onFirstPlay,
476
- createAnalyticsEvent = _this$props4.createAnalyticsEvent;
474
+ var _this$props5 = this.props,
475
+ type = _this$props5.type,
476
+ fileId = _this$props5.fileId,
477
+ isAutoPlay = _this$props5.isAutoPlay,
478
+ isHDAvailable = _this$props5.isHDAvailable,
479
+ isHDActive = _this$props5.isHDActive,
480
+ onFirstPlay = _this$props5.onFirstPlay,
481
+ createAnalyticsEvent = _this$props5.createAnalyticsEvent;
477
482
  var _this$state2 = this.state,
478
483
  isFullScreenEnabled = _this$state2.isFullScreenEnabled,
479
484
  playerSize = _this$state2.playerSize,
@@ -517,6 +522,12 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
517
522
  this.videoWrapperRef.current.removeEventListener('fullscreenchange', this.onFullScreenChange);
518
523
  }
519
524
 
525
+ if (this.state.isFullScreenEnabled) {
526
+ var _this$props$onFullscr2, _this$props6;
527
+
528
+ (_this$props$onFullscr2 = (_this$props6 = this.props).onFullscreenChange) === null || _this$props$onFullscr2 === void 0 ? void 0 : _this$props$onFullscr2.call(_this$props6, false);
529
+ }
530
+
520
531
  simultaneousPlayManager.unsubscribe(this);
521
532
  }
522
533
  }, {
@@ -531,13 +542,13 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
531
542
  }, {
532
543
  key: "createAndFireUIEvent",
533
544
  value: function createAndFireUIEvent(eventType, actionSubjectId) {
534
- var _this$props5 = this.props,
535
- type = _this$props5.type,
536
- fileId = _this$props5.fileId,
537
- isHDActive = _this$props5.isHDActive,
538
- isHDAvailable = _this$props5.isHDAvailable,
539
- isAutoPlay = _this$props5.isAutoPlay,
540
- createAnalyticsEvent = _this$props5.createAnalyticsEvent;
545
+ var _this$props7 = this.props,
546
+ type = _this$props7.type,
547
+ fileId = _this$props7.fileId,
548
+ isHDActive = _this$props7.isHDActive,
549
+ isHDAvailable = _this$props7.isHDAvailable,
550
+ isAutoPlay = _this$props7.isAutoPlay,
551
+ createAnalyticsEvent = _this$props7.createAnalyticsEvent;
541
552
  var _this$state3 = this.state,
542
553
  isFullScreenEnabled = _this$state3.isFullScreenEnabled,
543
554
  playerSize = _this$state3.playerSize,
@@ -594,13 +605,13 @@ export var CustomMediaPlayerBase = /*#__PURE__*/function (_Component) {
594
605
  value: function render() {
595
606
  var _this2 = this;
596
607
 
597
- var _this$props6 = this.props,
598
- type = _this$props6.type,
599
- src = _this$props6.src,
600
- isAutoPlay = _this$props6.isAutoPlay,
601
- onCanPlay = _this$props6.onCanPlay,
602
- onError = _this$props6.onError,
603
- poster = _this$props6.poster;
608
+ var _this$props8 = this.props,
609
+ type = _this$props8.type,
610
+ src = _this$props8.src,
611
+ isAutoPlay = _this$props8.isAutoPlay,
612
+ onCanPlay = _this$props8.onCanPlay,
613
+ onError = _this$props8.onError,
614
+ poster = _this$props8.poster;
604
615
  return /*#__PURE__*/React.createElement(CustomVideoWrapper, {
605
616
  ref: this.videoWrapperRef,
606
617
  "data-testid": "custom-media-player"
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { SupportedImageMetaTag, ExifOrientation } from './types';
4
4
  import { readImageMetaTags } from './metatags';
5
5
  import { loadImage, readImageNaturalOrientationFromDOM } from '../util';
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
 
5
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
6
 
@@ -1,6 +1,6 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _typeof from "@babel/runtime/helpers/typeof";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { SupportedImageMetaTag } from './types';
5
5
  var XResolution = SupportedImageMetaTag.XResolution,
6
6
  YResolution = SupportedImageMetaTag.YResolution;
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { fileToArrayBuffer } from '../util';
4
4
  var pngChunksExtract;
5
5
  export function readPNGXMPMetaData(_x) {
package/dist/esm/util.js CHANGED
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import PdfDocumentIcon from '@atlaskit/icon-file-type/glyph/pdf-document/24';
4
4
  import GifIcon from '@atlaskit/icon-file-type/glyph/gif/24';
5
5
  import PowerpointPresentationIcon from '@atlaskit/icon-file-type/glyph/powerpoint-presentation/24';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-ui",
3
- "version": "22.0.0",
3
+ "version": "22.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -2,4 +2,4 @@
2
2
  export interface WrapperProps {
3
3
  isSelected?: boolean;
4
4
  }
5
- export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, WrapperProps, any>;
5
+ export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, WrapperProps, object>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const Icon: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement>, keyof import("react").ClassAttributes<any>>, any>;
3
- export declare const AKIconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
2
+ export declare const Icon: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, Pick<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement>, keyof import("react").ImgHTMLAttributes<HTMLImageElement>>, object>;
3
+ export declare const AKIconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  export declare const IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
3
3
  export declare const IconOverrides = "\n & > * > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
4
- export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
5
- export declare const EmojiWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
6
- export declare const IconTitleWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
7
- export declare const LozengeWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
8
- export declare const LozengeBlockWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
9
- export declare const RightIconPositionWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
10
- export declare const IconPositionWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
11
- export declare const IconEmptyWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
12
- export declare const TitleWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>>, any>;
4
+ export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
5
+ export declare const EmojiWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
6
+ export declare const IconTitleWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
7
+ export declare const LozengeWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
8
+ export declare const LozengeBlockWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
9
+ export declare const RightIconPositionWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
10
+ export declare const IconPositionWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
11
+ export declare const IconEmptyWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
12
+ export declare const TitleWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
@@ -1,6 +1,14 @@
1
1
  /// <reference types="react" />
2
- export declare const SpinnerWrapper: import("@emotion/styled-base").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>> & {
3
- theme?: any;
4
- } & import("react").Attributes, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").ClassAttributes<any>> & {
5
- theme?: any;
6
- } & import("react").Attributes, keyof import("react").ClassAttributes<any>>, any>;
2
+ export declare const SpinnerWrapper: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Pick<Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
3
+ theme?: object | undefined;
4
+ } & {
5
+ children?: import("react").ReactNode;
6
+ }, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement> | "theme"> & {
7
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
8
+ }, Pick<Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Pick<Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
9
+ theme?: object | undefined;
10
+ } & {
11
+ children?: import("react").ReactNode;
12
+ }, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement> | "theme"> & {
13
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
14
+ }, keyof import("react").HTMLAttributes<HTMLSpanElement> | "theme">, object>;
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const NoLinkAppearance: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@emotion/styled-base/types/helper").Omit<import("@emotion/styled-base/types/helper").Overwrapped<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@atlaskit/theme").ThemeProps | undefined>, keyof import("react").ClassAttributes<any>>, any>;
2
+ export declare const NoLinkAppearance: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("@emotion/styled-base/types/helper").Overwrapped<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@atlaskit/theme").ThemeProps | undefined>, never>, {
3
+ __ATLASKIT_THEME__: import("@atlaskit/theme").Theme;
4
+ }>;
@@ -19,6 +19,7 @@ export interface CustomMediaPlayerProps extends WithPlaybackProps, WithShowContr
19
19
  readonly onError?: () => void;
20
20
  readonly onDownloadClick?: () => void;
21
21
  readonly onFirstPlay?: () => void;
22
+ readonly onFullscreenChange?: (fullscreen: boolean) => void;
22
23
  readonly originalDimensions?: NumericalCardDimensions;
23
24
  readonly featureFlags?: MediaFeatureFlags;
24
25
  readonly poster?: string;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const PlayPauseBlanket: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("@emotion/styled-base/types/helper").Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").ClassAttributes<any>>, any>;
2
+ export declare const PlayPauseBlanket: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;