@atlaskit/media-card 79.3.6 → 79.3.8

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,17 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 79.3.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 79.3.7
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 79.3.6
4
16
 
5
17
  ### Patch Changes
@@ -20,7 +20,7 @@ var _label = _interopRequireDefault(require("@atlaskit/react-ufo/label"));
20
20
  var _excluded = ["identifier"];
21
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
22
  var packageName = "@atlaskit/media-card";
23
- var packageVersion = "79.3.6";
23
+ var packageVersion = "79.3.7";
24
24
  var CardBase = exports.CardBase = function CardBase(_ref) {
25
25
  var identifier = _ref.identifier,
26
26
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -87,7 +87,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
87
87
  }(_react.default.Component);
88
88
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
89
89
  var packageName = "@atlaskit/media-card";
90
- var packageVersion = "79.3.6";
90
+ var packageVersion = "79.3.7";
91
91
 
92
92
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
93
93
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
@@ -116,7 +116,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
116
116
  ErrorBoundary = _this$state.ErrorBoundary;
117
117
  var analyticsContext = {
118
118
  packageVersion: "@atlaskit/media-card",
119
- packageName: "79.3.6",
119
+ packageName: "79.3.7",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -15,7 +15,7 @@ var _mediaClient = require("@atlaskit/media-client");
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  var packageName = "@atlaskit/media-card";
18
- var packageVersion = "79.3.6";
18
+ var packageVersion = "79.3.7";
19
19
  var SAMPLE_RATE = 0.05;
20
20
  var concurrentExperience;
21
21
  var getExperience = function getExperience(id) {
@@ -9,7 +9,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
9
9
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import UFOLabel from '@atlaskit/react-ufo/label';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "79.3.6";
12
+ const packageVersion = "79.3.7";
13
13
  export const CardBase = ({
14
14
  identifier,
15
15
  ...otherProps
@@ -66,7 +66,7 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
66
66
  }
67
67
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
68
68
  const packageName = "@atlaskit/media-card";
69
- const packageVersion = "79.3.6";
69
+ const packageVersion = "79.3.7";
70
70
 
71
71
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
72
72
  const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -37,7 +37,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
37
37
  } = this.state;
38
38
  const analyticsContext = {
39
39
  packageVersion: "@atlaskit/media-card",
40
- packageName: "79.3.6",
40
+ packageName: "79.3.7",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -5,7 +5,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
5
5
  import { MediaCardError } from '../errors';
6
6
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
7
7
  const packageName = "@atlaskit/media-card";
8
- const packageVersion = "79.3.6";
8
+ const packageVersion = "79.3.7";
9
9
  const SAMPLE_RATE = 0.05;
10
10
  let concurrentExperience;
11
11
  const getExperience = id => {
@@ -11,7 +11,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
11
11
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
12
12
  import UFOLabel from '@atlaskit/react-ufo/label';
13
13
  var packageName = "@atlaskit/media-card";
14
- var packageVersion = "79.3.6";
14
+ var packageVersion = "79.3.7";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -80,7 +80,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
80
80
  }(React.Component);
81
81
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
82
82
  var packageName = "@atlaskit/media-card";
83
- var packageVersion = "79.3.6";
83
+ var packageVersion = "79.3.7";
84
84
 
85
85
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
86
86
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -101,7 +101,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
101
101
  ErrorBoundary = _this$state.ErrorBoundary;
102
102
  var analyticsContext = {
103
103
  packageVersion: "@atlaskit/media-card",
104
- packageName: "79.3.6",
104
+ packageName: "79.3.7",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
@@ -8,7 +8,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
8
8
  import { MediaCardError } from '../errors';
9
9
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
10
10
  var packageName = "@atlaskit/media-card";
11
- var packageVersion = "79.3.6";
11
+ var packageVersion = "79.3.7";
12
12
  var SAMPLE_RATE = 0.05;
13
13
  var concurrentExperience;
14
14
  var getExperience = function getExperience(id) {
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { type MouseEvent } from 'react';
6
6
  import { type FileDetails, type MediaClient, type Identifier, type ImageResizeMode, type FileState } from '@atlaskit/media-client';
7
+ import { type MediaSettings } from '@atlaskit/media-client-react';
7
8
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
8
9
  import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
9
10
  import { type CardAction } from './card/actions';
@@ -85,16 +86,28 @@ export interface CardEventProps {
85
86
  readonly videoControlsWrapperRef?: React.Ref<HTMLDivElement>;
86
87
  }
87
88
  export interface CardProps extends SharedCardProps, CardEventProps {
89
+ /** Instance of MediaClient. */
88
90
  readonly mediaClient: MediaClient;
91
+ /** Instance of file identifier. */
89
92
  readonly identifier: Identifier;
93
+ /** Lazy loads the media file. */
90
94
  readonly isLazy?: boolean;
95
+ /** Uses the inline player for media file. */
91
96
  readonly useInlinePlayer?: boolean;
97
+ /** Uses media MediaViewer to preview the media file. */
92
98
  readonly shouldOpenMediaViewer?: boolean;
99
+ /** Media file list to display in Media Viewer. */
93
100
  readonly mediaViewerItems?: Identifier[];
101
+ /** Retrieve auth based on a given context. */
94
102
  readonly contextId?: string;
103
+ /** Enables the download button for media file. */
95
104
  readonly shouldEnableDownloadButton?: boolean;
105
+ /** Server-Side-Rendering modes are "server" and "client" */
96
106
  readonly ssr?: SSR;
107
+ /** Disable tooltip for the card */
97
108
  readonly shouldHideTooltip?: boolean;
109
+ /** General Media Settings */
110
+ readonly mediaSettings?: MediaSettings;
98
111
  }
99
112
  export interface CardState {
100
113
  status: CardStatus;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { type MouseEvent } from 'react';
6
6
  import { type FileDetails, type MediaClient, type Identifier, type ImageResizeMode, type FileState } from '@atlaskit/media-client';
7
+ import { type MediaSettings } from '@atlaskit/media-client-react';
7
8
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
8
9
  import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
9
10
  import { type CardAction } from './card/actions';
@@ -85,16 +86,28 @@ export interface CardEventProps {
85
86
  readonly videoControlsWrapperRef?: React.Ref<HTMLDivElement>;
86
87
  }
87
88
  export interface CardProps extends SharedCardProps, CardEventProps {
89
+ /** Instance of MediaClient. */
88
90
  readonly mediaClient: MediaClient;
91
+ /** Instance of file identifier. */
89
92
  readonly identifier: Identifier;
93
+ /** Lazy loads the media file. */
90
94
  readonly isLazy?: boolean;
95
+ /** Uses the inline player for media file. */
91
96
  readonly useInlinePlayer?: boolean;
97
+ /** Uses media MediaViewer to preview the media file. */
92
98
  readonly shouldOpenMediaViewer?: boolean;
99
+ /** Media file list to display in Media Viewer. */
93
100
  readonly mediaViewerItems?: Identifier[];
101
+ /** Retrieve auth based on a given context. */
94
102
  readonly contextId?: string;
103
+ /** Enables the download button for media file. */
95
104
  readonly shouldEnableDownloadButton?: boolean;
105
+ /** Server-Side-Rendering modes are "server" and "client" */
96
106
  readonly ssr?: SSR;
107
+ /** Disable tooltip for the card */
97
108
  readonly shouldHideTooltip?: boolean;
109
+ /** General Media Settings */
110
+ readonly mediaSettings?: MediaSettings;
98
111
  }
99
112
  export interface CardState {
100
113
  status: CardStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "79.3.6",
3
+ "version": "79.3.8",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,17 +38,17 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-next": "^11.1.0",
41
- "@atlaskit/dropdown-menu": "^16.0.0",
41
+ "@atlaskit/dropdown-menu": "^16.1.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.4.0",
43
- "@atlaskit/icon": "^26.4.0",
43
+ "@atlaskit/icon": "^27.0.0",
44
44
  "@atlaskit/link": "^3.2.0",
45
- "@atlaskit/media-client": "^33.4.0",
45
+ "@atlaskit/media-client": "^34.0.0",
46
46
  "@atlaskit/media-client-react": "^4.1.0",
47
47
  "@atlaskit/media-common": "^12.2.0",
48
48
  "@atlaskit/media-file-preview": "^0.11.0",
49
49
  "@atlaskit/media-svg": "^2.1.0",
50
50
  "@atlaskit/media-ui": "^28.3.0",
51
- "@atlaskit/media-viewer": "^52.2.0",
51
+ "@atlaskit/media-viewer": "^52.3.0",
52
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
53
  "@atlaskit/primitives": "^14.8.0",
54
54
  "@atlaskit/react-ufo": "^3.13.0",
@@ -79,11 +79,11 @@
79
79
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
80
80
  "@atlaskit/form": "^12.0.0",
81
81
  "@atlaskit/inline-message": "^15.3.0",
82
- "@atlaskit/media-core": "^36.1.0",
83
- "@atlaskit/media-picker": "^69.0.0",
82
+ "@atlaskit/media-core": "^37.0.0",
83
+ "@atlaskit/media-picker": "^70.0.0",
84
84
  "@atlaskit/media-state": "^1.6.0",
85
85
  "@atlaskit/media-test-data": "^3.1.0",
86
- "@atlaskit/media-test-helpers": "^36.1.0",
86
+ "@atlaskit/media-test-helpers": "^37.0.0",
87
87
  "@atlaskit/radio": "^8.1.0",
88
88
  "@atlaskit/range": "^9.1.0",
89
89
  "@atlaskit/ssr": "workspace:^",