@atlaskit/media-ui 25.4.3 → 25.5.0

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,21 @@
1
1
  # @atlaskit/media-ui
2
2
 
3
+ ## 25.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#87932](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87932) [`9de84130ef6a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9de84130ef6a) - [ux] Fixes text colour in playback speed menu in light mode
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 25.4.4
14
+
15
+ ### Patch Changes
16
+
17
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
18
+
3
19
  ## 25.4.3
4
20
 
5
21
  ### Patch Changes
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/browser.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/browser.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/classNames.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/classNames.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/codeViewer.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/codeViewer.d.ts"
12
12
  ]
@@ -53,7 +53,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
53
53
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* 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
54
54
  // support the hybrid theming in media viewer https://product-fabric.atlassian.net/browse/DSP-6067
55
55
  var packageName = "@atlaskit/media-ui";
56
- var packageVersion = "25.4.3";
56
+ var packageVersion = "25.5.0";
57
57
  var MEDIUM_VIDEO_MAX_WIDTH = 400;
58
58
  var SMALL_VIDEO_MAX_WIDTH = 160;
59
59
  var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -89,7 +89,7 @@ var PlaybackSpeedControls = exports.PlaybackSpeedControls = /*#__PURE__*/functio
89
89
  var isFocused = _ref.isFocused,
90
90
  isSelected = _ref.isSelected;
91
91
  return _objectSpread(_objectSpread({}, styles), {}, {
92
- color: isSelected ? '#579dff' : 'inherit',
92
+ color: isSelected ? '#579dff' : _colors.DN900,
93
93
  backgroundColor: isSelected ? '#082145' : isFocused ? '#a1bdd914' : '#22272b',
94
94
  ':active': {
95
95
  backgroundColor: '#a6c5e229'
@@ -36,7 +36,7 @@ import Tooltip from '@atlaskit/tooltip';
36
36
  import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
37
37
  import { getControlsWrapperClassName } from './getControlsWrapperClassName';
38
38
  const packageName = "@atlaskit/media-ui";
39
- const packageVersion = "25.4.3";
39
+ const packageVersion = "25.5.0";
40
40
  const MEDIUM_VIDEO_MAX_WIDTH = 400;
41
41
  const SMALL_VIDEO_MAX_WIDTH = 160;
42
42
  const MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import React from 'react';
6
6
  import { Component } from 'react';
7
7
  import { PopupSelect } from '@atlaskit/select';
8
- import { N600 } from '@atlaskit/theme/colors';
8
+ import { N600, DN900 } from '@atlaskit/theme/colors';
9
9
  import { FormattedMessage, injectIntl } from 'react-intl-next';
10
10
  import Tooltip from '@atlaskit/tooltip';
11
11
  import MediaButton from '../MediaButton';
@@ -64,7 +64,7 @@ export class PlaybackSpeedControls extends Component {
64
64
  isSelected
65
65
  }) => ({
66
66
  ...styles,
67
- color: isSelected ? '#579dff' : 'inherit',
67
+ color: isSelected ? '#579dff' : DN900,
68
68
  backgroundColor: isSelected ? '#082145' : isFocused ? '#a1bdd914' : '#22272b',
69
69
  ':active': {
70
70
  backgroundColor: '#a6c5e229'
@@ -46,7 +46,7 @@ import Tooltip from '@atlaskit/tooltip';
46
46
  import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
47
47
  import { getControlsWrapperClassName } from './getControlsWrapperClassName';
48
48
  var packageName = "@atlaskit/media-ui";
49
- var packageVersion = "25.4.3";
49
+ var packageVersion = "25.5.0";
50
50
  var MEDIUM_VIDEO_MAX_WIDTH = 400;
51
51
  var SMALL_VIDEO_MAX_WIDTH = 160;
52
52
  var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
@@ -15,7 +15,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
15
15
  import React from 'react';
16
16
  import { Component } from 'react';
17
17
  import { PopupSelect } from '@atlaskit/select';
18
- import { N600 } from '@atlaskit/theme/colors';
18
+ import { N600, DN900 } from '@atlaskit/theme/colors';
19
19
  import { FormattedMessage, injectIntl } from 'react-intl-next';
20
20
  import Tooltip from '@atlaskit/tooltip';
21
21
  import MediaButton from '../MediaButton';
@@ -82,7 +82,7 @@ export var PlaybackSpeedControls = /*#__PURE__*/function (_Component) {
82
82
  var isFocused = _ref.isFocused,
83
83
  isSelected = _ref.isSelected;
84
84
  return _objectSpread(_objectSpread({}, styles), {}, {
85
- color: isSelected ? '#579dff' : 'inherit',
85
+ color: isSelected ? '#579dff' : DN900,
86
86
  backgroundColor: isSelected ? '#082145' : isFocused ? '#a1bdd914' : '#22272b',
87
87
  ':active': {
88
88
  backgroundColor: '#a6c5e229'
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  import { ReactWrapper, ShallowWrapper } from 'enzyme';
4
4
  import { ReactElement } from 'react';
5
- export declare const mountWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: React.ReactElement<P & WrappedComponentProps<"intl">, string | React.JSXElementConstructor<any>>, { context, childContextTypes, ...additionalOptions }?: {
5
+ export declare const mountWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: ReactElement<P & WrappedComponentProps>, { context, childContextTypes, ...additionalOptions }?: {
6
6
  context?: {} | undefined;
7
7
  childContextTypes?: {} | undefined;
8
- }) => ReactWrapper<P & WrappedComponentProps<"intl">, S, C>;
9
- export declare const shallowWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: React.ReactElement<P & WrappedComponentProps<"intl">, string | React.JSXElementConstructor<any>>, { context, ...additionalOptions }?: {
8
+ }) => ReactWrapper<P & WrappedComponentProps, S, C>;
9
+ export declare const shallowWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: ReactElement<P & WrappedComponentProps>, { context, ...additionalOptions }?: {
10
10
  context?: {} | undefined;
11
- }) => ShallowWrapper<P & WrappedComponentProps<"intl">, S, C>;
11
+ }) => ShallowWrapper<P & WrappedComponentProps, S, C>;
12
12
  export declare const mountWithIntlWrapper: (node: React.ReactElement) => ReactWrapper;
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  import { ReactWrapper, ShallowWrapper } from 'enzyme';
4
4
  import { ReactElement } from 'react';
5
- export declare const mountWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: React.ReactElement<P & WrappedComponentProps<"intl">, string | React.JSXElementConstructor<any>>, { context, childContextTypes, ...additionalOptions }?: {
5
+ export declare const mountWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: ReactElement<P & WrappedComponentProps>, { context, childContextTypes, ...additionalOptions }?: {
6
6
  context?: {} | undefined;
7
7
  childContextTypes?: {} | undefined;
8
- }) => ReactWrapper<P & WrappedComponentProps<"intl">, S, C>;
9
- export declare const shallowWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: React.ReactElement<P & WrappedComponentProps<"intl">, string | React.JSXElementConstructor<any>>, { context, ...additionalOptions }?: {
8
+ }) => ReactWrapper<P & WrappedComponentProps, S, C>;
9
+ export declare const shallowWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: ReactElement<P & WrappedComponentProps>, { context, ...additionalOptions }?: {
10
10
  context?: {} | undefined;
11
- }) => ShallowWrapper<P & WrappedComponentProps<"intl">, S, C>;
11
+ }) => ShallowWrapper<P & WrappedComponentProps, S, C>;
12
12
  export declare const mountWithIntlWrapper: (node: React.ReactElement) => ReactWrapper;
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/errorIcon.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/errorIcon.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/formatDate.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/formatDate.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/locales.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/locales.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/media-type-icon.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/media-type-icon.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/messages.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/messages.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/mime-type-icon.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/mime-type-icon.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/modalSpinner.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/modalSpinner.d.ts"
12
12
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-ui",
3
- "version": "25.4.3",
3
+ "version": "25.5.0",
4
4
  "description": "Includes common components and utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,18 +24,18 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@atlaskit/analytics-next": "^9.2.0",
27
- "@atlaskit/button": "^17.7.0",
27
+ "@atlaskit/button": "^17.8.0",
28
28
  "@atlaskit/code": "^15.1.0",
29
29
  "@atlaskit/icon": "^22.1.0",
30
30
  "@atlaskit/icon-file-type": "^6.4.0",
31
31
  "@atlaskit/locale": "^2.6.0",
32
32
  "@atlaskit/media-common": "^11.1.0",
33
33
  "@atlaskit/platform-feature-flags": "^0.2.5",
34
- "@atlaskit/primitives": "^5.0.0",
35
- "@atlaskit/select": "^17.3.0",
34
+ "@atlaskit/primitives": "^5.5.0",
35
+ "@atlaskit/select": "^17.5.0",
36
36
  "@atlaskit/spinner": "^16.0.0",
37
- "@atlaskit/theme": "^12.6.0",
38
- "@atlaskit/tokens": "^1.41.0",
37
+ "@atlaskit/theme": "^12.7.0",
38
+ "@atlaskit/tokens": "^1.43.0",
39
39
  "@atlaskit/tooltip": "^18.1.0",
40
40
  "@atlaskit/width-detector": "^4.1.0",
41
41
  "@babel/runtime": "^7.0.0",
@@ -72,7 +72,7 @@
72
72
  "react": "^16.8.0",
73
73
  "react-dom": "^16.8.0",
74
74
  "react-intl-next": "npm:react-intl@^5.18.1",
75
- "typescript": "~4.9.5",
75
+ "typescript": "~5.4.2",
76
76
  "wait-for-expect": "^1.2.0"
77
77
  },
78
78
  "techstack": {
@@ -118,4 +118,4 @@
118
118
  "type": "boolean"
119
119
  }
120
120
  }
121
- }
121
+ }
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/truncateText.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/truncateText.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/types.d.ts"
12
12
  ]
package/util/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/util.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/util.d.ts"
12
12
  ]