@atlaskit/smart-card 43.1.5 → 43.1.7

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/smart-card
2
2
 
3
+ ## 43.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a91dedaff8d02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a91dedaff8d02) -
8
+ [ux] Migrate legacy icons.
9
+ - [`c8fcf531a86b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c8fcf531a86b8) -
10
+ [ux] Scale status in smart link inside excerpt when content in dense mode
11
+
12
+ ## 43.1.6
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 43.1.5
4
19
 
5
20
  ### Patch 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: "43.1.4"
14
+ packageVersion: "43.1.6"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -12,10 +12,10 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _reactIntlNext = require("react-intl-next");
14
14
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
15
+ var _automation = _interopRequireDefault(require("@atlaskit/icon/core/automation"));
15
16
  var _manualTriggerIcon = _interopRequireDefault(require("@atlaskit/legacy-custom-icons/manual-trigger-icon"));
16
17
  var _modalDialog = require("@atlaskit/modal-dialog");
17
18
  var _compiled = require("@atlaskit/primitives/compiled");
18
- var _colors = require("@atlaskit/theme/colors");
19
19
  var _menuContext = require("../../menu-context");
20
20
  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); }
21
21
  var styles = {
@@ -49,10 +49,13 @@ var AutomationModalHeader = exports.AutomationModalHeader = function AutomationM
49
49
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
50
50
  ,
51
51
  backgroundColor: "color.background.accent.green.subtlest"
52
- }, /*#__PURE__*/React.createElement(_manualTriggerIcon.default, {
52
+ }, /*#__PURE__*/React.createElement(_automation.default, {
53
53
  size: "small",
54
54
  label: formatMessage(i18n.modalHeaderIconLabel),
55
- primaryColor: "var(--ds-icon-accent-green, ".concat(_colors.G50, ")")
55
+ color: "var(--ds-icon-accent-green, #22A06B)",
56
+ spacing: "compact",
57
+ LEGACY_fallbackIcon: _manualTriggerIcon.default,
58
+ LEGACY_size: "small"
56
59
  })), /*#__PURE__*/React.createElement(_heading.default, {
57
60
  size: "medium",
58
61
  id: titleId
@@ -10,19 +10,26 @@ exports.default = void 0;
10
10
  require("./index.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
14
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
14
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
17
  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); }
16
18
  var wrapperStylesOld = null;
17
19
  var wrapperStylesNew = null;
18
20
  var InlineLozenge = function InlineLozenge(props) {
21
+ var shouldAddLozengeAttribute = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp');
19
22
  if ((0, _platformFeatureFlags.fg)('jfp-magma-platform-lozenge-jump-fix')) {
20
- return /*#__PURE__*/React.createElement("span", {
23
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, shouldAddLozengeAttribute && {
24
+ 'data-inline-card-lozenge': true
25
+ }, {
21
26
  className: (0, _runtime.ax)(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
22
- }, /*#__PURE__*/React.createElement(_lozenge.default, props));
27
+ }), /*#__PURE__*/React.createElement(_lozenge.default, props));
23
28
  }
24
- return /*#__PURE__*/React.createElement("span", {
29
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, shouldAddLozengeAttribute && {
30
+ 'data-inline-card-lozenge': true
31
+ }, {
25
32
  className: (0, _runtime.ax)(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
26
- }, /*#__PURE__*/React.createElement(_lozenge.default, props));
33
+ }), /*#__PURE__*/React.createElement(_lozenge.default, props));
27
34
  };
28
35
  var _default = exports.default = InlineLozenge;
@@ -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: "43.1.4",
25
+ packageVersion: "43.1.6",
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: "43.1.4"
5
+ packageVersion: "43.1.6"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -4,10 +4,10 @@ import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { defineMessages, useIntl } from 'react-intl-next';
6
6
  import Heading from '@atlaskit/heading';
7
+ import AutomationIcon from '@atlaskit/icon/core/automation';
7
8
  import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
8
9
  import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
9
10
  import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
10
- import { G50 } from '@atlaskit/theme/colors';
11
11
  import { useAutomationMenu } from '../../menu-context';
12
12
  const styles = {
13
13
  iconStyle: "_2rko12b0 _18zr1b66 _1rjcv77o _2hwxutpp",
@@ -44,10 +44,13 @@ export const AutomationModalHeader = ({
44
44
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
45
45
  ,
46
46
  backgroundColor: "color.background.accent.green.subtlest"
47
- }, /*#__PURE__*/React.createElement(LegacyManualTriggerIcon, {
47
+ }, /*#__PURE__*/React.createElement(AutomationIcon, {
48
48
  size: "small",
49
49
  label: formatMessage(i18n.modalHeaderIconLabel),
50
- primaryColor: `var(--ds-icon-accent-green, ${G50})`
50
+ color: "var(--ds-icon-accent-green, #22A06B)",
51
+ spacing: "compact",
52
+ LEGACY_fallbackIcon: LegacyManualTriggerIcon,
53
+ LEGACY_size: "small"
51
54
  })), /*#__PURE__*/React.createElement(Heading, {
52
55
  size: "medium",
53
56
  id: titleId
@@ -1,19 +1,26 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
2
3
  import "./index.compiled.css";
3
4
  import * as React from 'react';
4
5
  import { ax, ix } from "@compiled/react/runtime";
5
6
  import Lozenge from '@atlaskit/lozenge';
6
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
9
  const wrapperStylesOld = null;
8
10
  const wrapperStylesNew = null;
9
11
  const InlineLozenge = props => {
12
+ const shouldAddLozengeAttribute = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
10
13
  if (fg('jfp-magma-platform-lozenge-jump-fix')) {
11
- return /*#__PURE__*/React.createElement("span", {
14
+ return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
15
+ 'data-inline-card-lozenge': true
16
+ }, {
12
17
  className: ax(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
13
- }, /*#__PURE__*/React.createElement(Lozenge, props));
18
+ }), /*#__PURE__*/React.createElement(Lozenge, props));
14
19
  }
15
- return /*#__PURE__*/React.createElement("span", {
20
+ return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
21
+ 'data-inline-card-lozenge': true
22
+ }, {
16
23
  className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
17
- }, /*#__PURE__*/React.createElement(Lozenge, props));
24
+ }), /*#__PURE__*/React.createElement(Lozenge, props));
18
25
  };
19
26
  export default InlineLozenge;
@@ -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: "43.1.4",
15
+ packageVersion: "43.1.6",
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: "43.1.4"
7
+ packageVersion: "43.1.6"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -4,10 +4,10 @@ import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { defineMessages, useIntl } from 'react-intl-next';
6
6
  import Heading from '@atlaskit/heading';
7
+ import AutomationIcon from '@atlaskit/icon/core/automation';
7
8
  import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
8
9
  import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
9
10
  import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
10
- import { G50 } from '@atlaskit/theme/colors';
11
11
  import { useAutomationMenu } from '../../menu-context';
12
12
  var styles = {
13
13
  iconStyle: "_2rko12b0 _18zr1b66 _1rjcv77o _2hwxutpp",
@@ -40,10 +40,13 @@ export var AutomationModalHeader = function AutomationModalHeader(_ref) {
40
40
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
41
41
  ,
42
42
  backgroundColor: "color.background.accent.green.subtlest"
43
- }, /*#__PURE__*/React.createElement(LegacyManualTriggerIcon, {
43
+ }, /*#__PURE__*/React.createElement(AutomationIcon, {
44
44
  size: "small",
45
45
  label: formatMessage(i18n.modalHeaderIconLabel),
46
- primaryColor: "var(--ds-icon-accent-green, ".concat(G50, ")")
46
+ color: "var(--ds-icon-accent-green, #22A06B)",
47
+ spacing: "compact",
48
+ LEGACY_fallbackIcon: LegacyManualTriggerIcon,
49
+ LEGACY_size: "small"
47
50
  })), /*#__PURE__*/React.createElement(Heading, {
48
51
  size: "medium",
49
52
  id: titleId
@@ -1,19 +1,26 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
2
3
  import "./index.compiled.css";
3
4
  import * as React from 'react';
4
5
  import { ax, ix } from "@compiled/react/runtime";
5
6
  import Lozenge from '@atlaskit/lozenge';
6
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
9
  var wrapperStylesOld = null;
8
10
  var wrapperStylesNew = null;
9
11
  var InlineLozenge = function InlineLozenge(props) {
12
+ var shouldAddLozengeAttribute = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
10
13
  if (fg('jfp-magma-platform-lozenge-jump-fix')) {
11
- return /*#__PURE__*/React.createElement("span", {
14
+ return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
15
+ 'data-inline-card-lozenge': true
16
+ }, {
12
17
  className: ax(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
13
- }, /*#__PURE__*/React.createElement(Lozenge, props));
18
+ }), /*#__PURE__*/React.createElement(Lozenge, props));
14
19
  }
15
- return /*#__PURE__*/React.createElement("span", {
20
+ return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
21
+ 'data-inline-card-lozenge': true
22
+ }, {
16
23
  className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
17
- }, /*#__PURE__*/React.createElement(Lozenge, props));
24
+ }), /*#__PURE__*/React.createElement(Lozenge, props));
18
25
  };
19
26
  export default InlineLozenge;
@@ -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: "43.1.4",
18
+ packageVersion: "43.1.6",
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.1.5",
3
+ "version": "43.1.7",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/badge": "^18.2.0",
35
35
  "@atlaskit/button": "^23.5.0",
36
36
  "@atlaskit/checkbox": "^17.1.0",
37
- "@atlaskit/css": "^0.14.0",
37
+ "@atlaskit/css": "^0.15.0",
38
38
  "@atlaskit/dropdown-menu": "^16.3.0",
39
39
  "@atlaskit/embedded-confluence": "^4.3.0",
40
40
  "@atlaskit/feature-gate-js-client": "^5.5.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/icon": "^28.5.0",
45
45
  "@atlaskit/icon-file-type": "^7.0.0",
46
46
  "@atlaskit/icon-lab": "^5.10.0",
47
- "@atlaskit/icon-object": "^7.2.0",
47
+ "@atlaskit/icon-object": "^7.3.0",
48
48
  "@atlaskit/icon-priority": "^6.3.0",
49
49
  "@atlaskit/image": "^3.0.0",
50
50
  "@atlaskit/json-ld-types": "^1.4.0",
@@ -63,7 +63,7 @@
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",
66
- "@atlaskit/primitives": "^14.15.0",
66
+ "@atlaskit/primitives": "^15.0.0",
67
67
  "@atlaskit/section-message": "^8.7.0",
68
68
  "@atlaskit/select": "^21.3.0",
69
69
  "@atlaskit/spinner": "^19.0.0",
@@ -71,7 +71,7 @@
71
71
  "@atlaskit/textfield": "^8.0.0",
72
72
  "@atlaskit/theme": "^21.0.0",
73
73
  "@atlaskit/tmp-editor-statsig": "^13.10.0",
74
- "@atlaskit/tokens": "^6.4.0",
74
+ "@atlaskit/tokens": "^6.5.0",
75
75
  "@atlaskit/tooltip": "^20.5.0",
76
76
  "@atlaskit/ufo": "^0.4.0",
77
77
  "@babel/runtime": "^7.0.0",
@@ -187,6 +187,9 @@
187
187
  "cc-ai-linking-platform-snippet-renderer": {
188
188
  "type": "boolean"
189
189
  },
190
+ "platform_editor_content_mode_button_mvp": {
191
+ "type": "boolean"
192
+ },
190
193
  "should-render-to-parent-should-be-true-linking-pla": {
191
194
  "type": "boolean"
192
195
  },