@atlaskit/smart-card 43.3.0 → 43.3.1

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,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 43.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2273597b13275`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2273597b13275) -
8
+ [ux] Update product logo to use new design, behind fg navx-1895-new-logo-design
9
+ - Updated dependencies
10
+
3
11
  ## 43.3.0
4
12
 
5
13
  ### Minor Changes
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "0.0.0-development"
14
+ packageVersion: "43.3.0"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
9
  var _react = _interopRequireDefault(require("react"));
9
10
  var _reactLoadable = _interopRequireDefault(require("react-loadable"));
10
11
  var _logo = require("@atlaskit/logo");
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
13
  var _blogIcon = _interopRequireDefault(require("../../../../../common/ui/icons/blog-icon"));
12
14
  var _liveDocumentIcon = _interopRequireDefault(require("../../../../../common/ui/icons/live-document-icon"));
13
15
  var _pageIcon = _interopRequireDefault(require("../../../../../common/ui/icons/page-icon"));
@@ -66,17 +68,21 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
66
68
  var ImportedIcon = importIcon(importFn);
67
69
  switch (icon) {
68
70
  case _constants.IconType.Confluence:
69
- return /*#__PURE__*/_react.default.createElement(_logo.ConfluenceIcon, {
71
+ return /*#__PURE__*/_react.default.createElement(_logo.ConfluenceIcon, (0, _extends2.default)({
70
72
  appearance: "brand",
71
73
  testId: testId,
72
74
  size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'small' : 'xxsmall'
73
- });
75
+ }, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
76
+ shouldUseNewLogoDesign: true
77
+ } : undefined));
74
78
  case _constants.IconType.Jira:
75
- return /*#__PURE__*/_react.default.createElement(_logo.JiraIcon, {
79
+ return /*#__PURE__*/_react.default.createElement(_logo.JiraIcon, (0, _extends2.default)({
76
80
  appearance: "brand",
77
81
  testId: testId,
78
82
  size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'small' : 'xxsmall'
79
- });
83
+ }, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
84
+ shouldUseNewLogoDesign: true
85
+ } : undefined));
80
86
  case _constants.IconType.Error:
81
87
  case _constants.IconType.Forbidden:
82
88
  return /*#__PURE__*/_react.default.createElement(ImportedIcon, {
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
22
22
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
23
23
  var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "0.0.0-development",
25
+ packageVersion: "43.3.0",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "0.0.0-development"
5
+ packageVersion: "43.3.0"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,6 +1,8 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
1
2
  import React from 'react';
2
3
  import Loadable from 'react-loadable';
3
4
  import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
4
6
  import BlogIcon from '../../../../../common/ui/icons/blog-icon';
5
7
  import LiveDocumentIcon from '../../../../../common/ui/icons/live-document-icon';
6
8
  import DocumentIcon from '../../../../../common/ui/icons/page-icon';
@@ -53,17 +55,21 @@ const AtlaskitIcon = ({
53
55
  const ImportedIcon = importIcon(importFn);
54
56
  switch (icon) {
55
57
  case IconType.Confluence:
56
- return /*#__PURE__*/React.createElement(ConfluenceIcon, {
58
+ return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
57
59
  appearance: "brand",
58
60
  testId: testId,
59
61
  size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
60
- });
62
+ }, fg('navx-1895-new-logo-design') ? {
63
+ shouldUseNewLogoDesign: true
64
+ } : undefined));
61
65
  case IconType.Jira:
62
- return /*#__PURE__*/React.createElement(JiraIcon, {
66
+ return /*#__PURE__*/React.createElement(JiraIcon, _extends({
63
67
  appearance: "brand",
64
68
  testId: testId,
65
69
  size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
66
- });
70
+ }, fg('navx-1895-new-logo-design') ? {
71
+ shouldUseNewLogoDesign: true
72
+ } : undefined));
67
73
  case IconType.Error:
68
74
  case IconType.Forbidden:
69
75
  return /*#__PURE__*/React.createElement(ImportedIcon, {
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  const PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "0.0.0-development",
15
+ packageVersion: "43.3.0",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  const Anchor = withLinkClickedEvent('a');
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "0.0.0-development"
7
+ packageVersion: "43.3.0"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,6 +1,8 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
1
2
  import React from 'react';
2
3
  import Loadable from 'react-loadable';
3
4
  import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
4
6
  import BlogIcon from '../../../../../common/ui/icons/blog-icon';
5
7
  import LiveDocumentIcon from '../../../../../common/ui/icons/live-document-icon';
6
8
  import DocumentIcon from '../../../../../common/ui/icons/page-icon';
@@ -59,17 +61,21 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
59
61
  var ImportedIcon = importIcon(importFn);
60
62
  switch (icon) {
61
63
  case IconType.Confluence:
62
- return /*#__PURE__*/React.createElement(ConfluenceIcon, {
64
+ return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
63
65
  appearance: "brand",
64
66
  testId: testId,
65
67
  size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
66
- });
68
+ }, fg('navx-1895-new-logo-design') ? {
69
+ shouldUseNewLogoDesign: true
70
+ } : undefined));
67
71
  case IconType.Jira:
68
- return /*#__PURE__*/React.createElement(JiraIcon, {
72
+ return /*#__PURE__*/React.createElement(JiraIcon, _extends({
69
73
  appearance: "brand",
70
74
  testId: testId,
71
75
  size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
72
- });
76
+ }, fg('navx-1895-new-logo-design') ? {
77
+ shouldUseNewLogoDesign: true
78
+ } : undefined));
73
79
  case IconType.Error:
74
80
  case IconType.Forbidden:
75
81
  return /*#__PURE__*/React.createElement(ImportedIcon, {
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "0.0.0-development",
18
+ packageVersion: "43.3.0",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "43.3.0",
3
+ "version": "43.3.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  "@atlaskit/afm-i18n-platform-linking-platform-smart-card": "2.6.0",
30
30
  "@atlaskit/analytics-gas-types": "^5.1.0",
31
31
  "@atlaskit/analytics-next": "^11.1.0",
32
- "@atlaskit/avatar": "^25.4.0",
32
+ "@atlaskit/avatar": "^25.5.0",
33
33
  "@atlaskit/avatar-group": "^12.3.0",
34
34
  "@atlaskit/badge": "^18.2.0",
35
35
  "@atlaskit/button": "^23.5.0",
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/logo": "^19.9.0",
60
60
  "@atlaskit/lozenge": "^13.0.0",
61
61
  "@atlaskit/menu": "^8.4.0",
62
- "@atlaskit/modal-dialog": "^14.5.0",
62
+ "@atlaskit/modal-dialog": "^14.6.0",
63
63
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
64
64
  "@atlaskit/platform-feature-flags": "^1.1.0",
65
65
  "@atlaskit/popup": "^4.4.0",
@@ -70,7 +70,7 @@
70
70
  "@atlaskit/textarea": "^8.0.0",
71
71
  "@atlaskit/textfield": "^8.0.0",
72
72
  "@atlaskit/theme": "^21.0.0",
73
- "@atlaskit/tmp-editor-statsig": "^13.18.0",
73
+ "@atlaskit/tmp-editor-statsig": "^13.19.0",
74
74
  "@atlaskit/tokens": "^7.0.0",
75
75
  "@atlaskit/tooltip": "^20.6.0",
76
76
  "@atlaskit/ufo": "^0.4.0",
@@ -223,6 +223,9 @@
223
223
  "navx-1895-a11y-close-button-in-preview-modal": {
224
224
  "type": "boolean"
225
225
  },
226
+ "navx-1895-new-logo-design": {
227
+ "type": "boolean"
228
+ },
226
229
  "platform_initial_data_for_smart_cards": {
227
230
  "type": "boolean"
228
231
  },