@atlaskit/smart-card 45.6.4 → 45.6.5

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,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 45.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`46ee61dd53e91`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/46ee61dd53e91) -
8
+ Remove stale experiment confluence_compact_text_format (FFCLEANUP-85812): inline final values
9
+ (flag enabled), simplify conditions, remove experiment config entries.
10
+ - Updated dependencies
11
+
3
12
  ## 45.6.4
4
13
 
5
14
  ### 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: "45.6.3" || ''
14
+ packageVersion: "45.6.4" || ''
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -10,27 +10,22 @@ 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"));
14
13
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
15
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
15
  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); }
18
16
  var wrapperStylesOld = null;
19
17
  var wrapperStylesNew = null;
20
18
  var wrapperStylesNewLozenge = null;
21
19
  var InlineLozenge = function InlineLozenge(props) {
22
- var shouldAddLozengeAttribute = (0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp');
23
20
  if ((0, _platformFeatureFlags.fg)('jfp-magma-platform-lozenge-jump-fix')) {
24
- return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, shouldAddLozengeAttribute && {
25
- 'data-inline-card-lozenge': true
26
- }, {
21
+ return /*#__PURE__*/React.createElement("span", {
22
+ "data-inline-card-lozenge": true,
27
23
  className: (0, _runtime.ax)(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq", (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') && "_2hwxt94y"])
28
- }), /*#__PURE__*/React.createElement(_lozenge.default, props));
24
+ }, /*#__PURE__*/React.createElement(_lozenge.default, props));
29
25
  }
30
- return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, shouldAddLozengeAttribute && {
31
- 'data-inline-card-lozenge': true
32
- }, {
26
+ return /*#__PURE__*/React.createElement("span", {
27
+ "data-inline-card-lozenge": true,
33
28
  className: (0, _runtime.ax)(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq", (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') && "_2hwxt94y"])
34
- }), /*#__PURE__*/React.createElement(_lozenge.default, props));
29
+ }, /*#__PURE__*/React.createElement(_lozenge.default, props));
35
30
  };
36
31
  var _default = exports.default = InlineLozenge;
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "45.6.3",
22
+ packageVersion: "45.6.4",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -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: "45.6.3" || ''
5
+ packageVersion: "45.6.4" || ''
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,27 +1,22 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import "./index.compiled.css";
4
3
  import * as React from 'react';
5
4
  import { ax, ix } from "@compiled/react/runtime";
6
5
  import Lozenge from '@atlaskit/lozenge';
7
6
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
7
  const wrapperStylesOld = null;
10
8
  const wrapperStylesNew = null;
11
9
  const wrapperStylesNewLozenge = null;
12
10
  const InlineLozenge = props => {
13
- const shouldAddLozengeAttribute = expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
14
11
  if (fg('jfp-magma-platform-lozenge-jump-fix')) {
15
- return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
16
- 'data-inline-card-lozenge': true
17
- }, {
12
+ return /*#__PURE__*/React.createElement("span", {
13
+ "data-inline-card-lozenge": true,
18
14
  className: ax(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq", fg('platform-dst-lozenge-tag-badge-visual-uplifts') && "_2hwxt94y"])
19
- }), /*#__PURE__*/React.createElement(Lozenge, props));
15
+ }, /*#__PURE__*/React.createElement(Lozenge, props));
20
16
  }
21
- return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
22
- 'data-inline-card-lozenge': true
23
- }, {
17
+ return /*#__PURE__*/React.createElement("span", {
18
+ "data-inline-card-lozenge": true,
24
19
  className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq", fg('platform-dst-lozenge-tag-badge-visual-uplifts') && "_2hwxt94y"])
25
- }), /*#__PURE__*/React.createElement(Lozenge, props));
20
+ }, /*#__PURE__*/React.createElement(Lozenge, props));
26
21
  };
27
22
  export default InlineLozenge;
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
9
9
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
10
10
  const PACKAGE_DATA = {
11
11
  packageName: "@atlaskit/smart-card",
12
- packageVersion: "45.6.3",
12
+ packageVersion: "45.6.4",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -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: "45.6.3" || ''
7
+ packageVersion: "45.6.4" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,27 +1,22 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
2
  import "./index.compiled.css";
4
3
  import * as React from 'react';
5
4
  import { ax, ix } from "@compiled/react/runtime";
6
5
  import Lozenge from '@atlaskit/lozenge';
7
6
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
7
  var wrapperStylesOld = null;
10
8
  var wrapperStylesNew = null;
11
9
  var wrapperStylesNewLozenge = null;
12
10
  var InlineLozenge = function InlineLozenge(props) {
13
- var shouldAddLozengeAttribute = expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
14
11
  if (fg('jfp-magma-platform-lozenge-jump-fix')) {
15
- return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
16
- 'data-inline-card-lozenge': true
17
- }, {
12
+ return /*#__PURE__*/React.createElement("span", {
13
+ "data-inline-card-lozenge": true,
18
14
  className: ax(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq", fg('platform-dst-lozenge-tag-badge-visual-uplifts') && "_2hwxt94y"])
19
- }), /*#__PURE__*/React.createElement(Lozenge, props));
15
+ }, /*#__PURE__*/React.createElement(Lozenge, props));
20
16
  }
21
- return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
22
- 'data-inline-card-lozenge': true
23
- }, {
17
+ return /*#__PURE__*/React.createElement("span", {
18
+ "data-inline-card-lozenge": true,
24
19
  className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq", fg('platform-dst-lozenge-tag-badge-visual-uplifts') && "_2hwxt94y"])
25
- }), /*#__PURE__*/React.createElement(Lozenge, props));
20
+ }, /*#__PURE__*/React.createElement(Lozenge, props));
26
21
  };
27
22
  export default InlineLozenge;
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  var PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "45.6.3",
15
+ packageVersion: "45.6.4",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "45.6.4",
3
+ "version": "45.6.5",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -88,7 +88,7 @@
88
88
  "@atlaskit/textfield": "^9.1.0",
89
89
  "@atlaskit/theme": "^26.1.0",
90
90
  "@atlaskit/tile": "^2.1.0",
91
- "@atlaskit/tmp-editor-statsig": "^117.0.0",
91
+ "@atlaskit/tmp-editor-statsig": "^118.0.0",
92
92
  "@atlaskit/tokens": "^15.3.0",
93
93
  "@atlaskit/tooltip": "^23.1.0",
94
94
  "@atlaskit/ufo": "^1.0.0",