@atlaskit/media-card 78.5.2 → 78.5.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,20 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 78.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#147531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147531)
8
+ [`8ae1e110621b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ae1e110621b7) -
9
+ Internal changes to feature flag used to toggle new icons
10
+
11
+ ## 78.5.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`9ec2d0a84a183`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9ec2d0a84a183) -
16
+ add initiatorType and responseEnd to mediaCardPerfObserver event
17
+
3
18
  ## 78.5.2
4
19
 
5
20
  ### Patch Changes
@@ -21,7 +21,7 @@ var _excluded = ["identifier"];
21
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
23
  var packageName = "@atlaskit/media-card";
24
- var packageVersion = "78.5.2";
24
+ var packageVersion = "78.5.4";
25
25
  var CardBase = exports.CardBase = function CardBase(_ref) {
26
26
  var identifier = _ref.identifier,
27
27
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -90,7 +90,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
90
90
  }(_react.default.Component);
91
91
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
92
92
  var packageName = "@atlaskit/media-card";
93
- var packageVersion = "78.5.2";
93
+ var packageVersion = "78.5.4";
94
94
 
95
95
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
96
96
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
@@ -57,7 +57,7 @@ var TitleBoxIcon = exports.TitleBoxIcon = function TitleBoxIcon(props) {
57
57
  return (0, _react.jsx)("div", {
58
58
  id: "titleBoxIcon",
59
59
  "data-testid": "title-box-icon",
60
- css: (0, _platformFeatureFlags.fg)('platform.design-system-team.enable-new-icons') ?
60
+ css: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
61
61
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
62
62
  _styles.newTitleBoxIconStyles :
63
63
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -119,7 +119,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
119
119
  ErrorBoundary = _this$state.ErrorBoundary;
120
120
  var analyticsContext = {
121
121
  packageVersion: "@atlaskit/media-card",
122
- packageName: "78.5.2",
122
+ packageName: "78.5.4",
123
123
  componentName: 'mediaInlineCard',
124
124
  component: 'mediaInlineCard'
125
125
  };
@@ -51,6 +51,9 @@ var createAndGetResourceObserver = function createAndGetResourceObserver() {
51
51
  transferSize: entry.transferSize,
52
52
  decodedBodySize: entry.decodedBodySize,
53
53
  totalDuration: entry.duration,
54
+ initiatorType: entry.initiatorType,
55
+ // value can be 'fetch' or 'img'
56
+ responseEnd: entry.responseEnd,
54
57
  tcpHandshakeTime: entry.connectEnd - entry.connectStart,
55
58
  dnsLookupTime: entry.domainLookupEnd - entry.domainLookupStart,
56
59
  redirectTimeTaken: entry.redirectEnd - entry.redirectStart,
@@ -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 = "78.5.2";
18
+ var packageVersion = "78.5.4";
19
19
  var concurrentExperience;
20
20
  var getExperience = function getExperience(id) {
21
21
  if (!concurrentExperience) {
@@ -9,7 +9,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
9
9
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "78.5.2";
12
+ const packageVersion = "78.5.4";
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 = "78.5.2";
69
+ const packageVersion = "78.5.4";
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({
@@ -56,7 +56,7 @@ export const TitleBoxIcon = props => {
56
56
  return jsx("div", {
57
57
  id: "titleBoxIcon",
58
58
  "data-testid": "title-box-icon",
59
- css: fg('platform.design-system-team.enable-new-icons') ?
59
+ css: fg('platform-visual-refresh-icons') ?
60
60
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
61
61
  newTitleBoxIconStyles :
62
62
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -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: "78.5.2",
40
+ packageName: "78.5.4",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -45,6 +45,9 @@ const createAndGetResourceObserver = () => {
45
45
  transferSize: entry.transferSize,
46
46
  decodedBodySize: entry.decodedBodySize,
47
47
  totalDuration: entry.duration,
48
+ initiatorType: entry.initiatorType,
49
+ // value can be 'fetch' or 'img'
50
+ responseEnd: entry.responseEnd,
48
51
  tcpHandshakeTime: entry.connectEnd - entry.connectStart,
49
52
  dnsLookupTime: entry.domainLookupEnd - entry.domainLookupStart,
50
53
  redirectTimeTaken: entry.redirectEnd - entry.redirectStart,
@@ -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 = "78.5.2";
8
+ const packageVersion = "78.5.4";
9
9
  let concurrentExperience;
10
10
  const getExperience = id => {
11
11
  if (!concurrentExperience) {
@@ -11,7 +11,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
11
11
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
13
  var packageName = "@atlaskit/media-card";
14
- var packageVersion = "78.5.2";
14
+ var packageVersion = "78.5.4";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -83,7 +83,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
83
83
  }(React.Component);
84
84
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
85
85
  var packageName = "@atlaskit/media-card";
86
- var packageVersion = "78.5.2";
86
+ var packageVersion = "78.5.4";
87
87
 
88
88
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
89
89
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -50,7 +50,7 @@ export var TitleBoxIcon = function TitleBoxIcon(props) {
50
50
  return jsx("div", {
51
51
  id: "titleBoxIcon",
52
52
  "data-testid": "title-box-icon",
53
- css: fg('platform.design-system-team.enable-new-icons') ?
53
+ css: fg('platform-visual-refresh-icons') ?
54
54
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
55
55
  newTitleBoxIconStyles :
56
56
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -103,7 +103,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
103
103
  ErrorBoundary = _this$state.ErrorBoundary;
104
104
  var analyticsContext = {
105
105
  packageVersion: "@atlaskit/media-card",
106
- packageName: "78.5.2",
106
+ packageName: "78.5.4",
107
107
  componentName: 'mediaInlineCard',
108
108
  component: 'mediaInlineCard'
109
109
  };
@@ -45,6 +45,9 @@ var createAndGetResourceObserver = function createAndGetResourceObserver() {
45
45
  transferSize: entry.transferSize,
46
46
  decodedBodySize: entry.decodedBodySize,
47
47
  totalDuration: entry.duration,
48
+ initiatorType: entry.initiatorType,
49
+ // value can be 'fetch' or 'img'
50
+ responseEnd: entry.responseEnd,
48
51
  tcpHandshakeTime: entry.connectEnd - entry.connectStart,
49
52
  dnsLookupTime: entry.domainLookupEnd - entry.domainLookupStart,
50
53
  redirectTimeTaken: entry.redirectEnd - entry.redirectStart,
@@ -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 = "78.5.2";
11
+ var packageVersion = "78.5.4";
12
12
  var concurrentExperience;
13
13
  var getExperience = function getExperience(id) {
14
14
  if (!concurrentExperience) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "78.5.2",
3
+ "version": "78.5.4",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/analytics-next": "^10.1.0",
39
39
  "@atlaskit/dropdown-menu": "^12.18.0",
40
40
  "@atlaskit/editor-shared-styles": "^3.0.0",
41
- "@atlaskit/icon": "^22.18.0",
41
+ "@atlaskit/icon": "^22.20.0",
42
42
  "@atlaskit/media-client": "^28.0.0",
43
43
  "@atlaskit/media-client-react": "^2.2.0",
44
44
  "@atlaskit/media-common": "^11.5.0",
@@ -109,7 +109,7 @@
109
109
  "platform.media-cdn-single-host": {
110
110
  "type": "boolean"
111
111
  },
112
- "platform.design-system-team.enable-new-icons": {
112
+ "platform-visual-refresh-icons": {
113
113
  "type": "boolean"
114
114
  }
115
115
  },