@atlaskit/smart-card 42.2.0 → 42.2.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 +9 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/common/inline-lozenge/index.compiled.css +2 -0
- package/dist/cjs/view/InlineCard/common/inline-lozenge/index.js +8 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/common/inline-lozenge/index.compiled.css +2 -0
- package/dist/es2019/view/InlineCard/common/inline-lozenge/index.js +13 -4
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/common/inline-lozenge/index.compiled.css +2 -0
- package/dist/esm/view/InlineCard/common/inline-lozenge/index.js +8 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 42.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`65dbc6709a95d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/65dbc6709a95d) -
|
|
8
|
+
Added a feature flag that makes the inline smart card's Lozenge not cause the smart card to expand
|
|
9
|
+
with 1px
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 42.2.0
|
|
4
13
|
|
|
5
14
|
### 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: "
|
|
14
|
+
packageVersion: "0.0.0-development"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
._154i1n1a{top:-1px}
|
|
1
2
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
2
3
|
._19pkidpf{margin-top:0}
|
|
3
4
|
._1e0c1o8l{display:inline-block}
|
|
4
5
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
6
|
+
._kqswh2mm{position:relative}
|
|
5
7
|
._otyridpf{margin-bottom:0}
|
|
6
8
|
._p12f1osq{max-width:100%}
|
|
7
9
|
._s7n4t94y{vertical-align:1px}
|
|
@@ -11,9 +11,16 @@ require("./index.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
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); }
|
|
15
|
-
var
|
|
16
|
+
var wrapperStylesOld = null;
|
|
17
|
+
var wrapperStylesNew = null;
|
|
16
18
|
var InlineLozenge = function InlineLozenge(props) {
|
|
19
|
+
if ((0, _platformFeatureFlags.fg)('jfp-magma-platform-lozenge-jump-fix')) {
|
|
20
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
className: (0, _runtime.ax)(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
22
|
+
}, /*#__PURE__*/React.createElement(_lozenge.default, props));
|
|
23
|
+
}
|
|
17
24
|
return /*#__PURE__*/React.createElement("span", {
|
|
18
25
|
className: (0, _runtime.ax)(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
19
26
|
}, /*#__PURE__*/React.createElement(_lozenge.default, props));
|
|
@@ -25,7 +25,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
25
25
|
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); }
|
|
26
26
|
var PACKAGE_DATA = {
|
|
27
27
|
packageName: "@atlaskit/smart-card",
|
|
28
|
-
packageVersion: "
|
|
28
|
+
packageVersion: "0.0.0-development",
|
|
29
29
|
componentName: 'linkUrl'
|
|
30
30
|
};
|
|
31
31
|
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: "
|
|
5
|
+
packageVersion: "0.0.0-development"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
._154i1n1a{top:-1px}
|
|
1
2
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
2
3
|
._19pkidpf{margin-top:0}
|
|
3
4
|
._1e0c1o8l{display:inline-block}
|
|
4
5
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
6
|
+
._kqswh2mm{position:relative}
|
|
5
7
|
._otyridpf{margin-bottom:0}
|
|
6
8
|
._p12f1osq{max-width:100%}
|
|
7
9
|
._s7n4t94y{vertical-align:1px}
|
|
@@ -3,8 +3,17 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import Lozenge from '@atlaskit/lozenge';
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
const wrapperStylesOld = null;
|
|
8
|
+
const wrapperStylesNew = null;
|
|
9
|
+
const InlineLozenge = props => {
|
|
10
|
+
if (fg('jfp-magma-platform-lozenge-jump-fix')) {
|
|
11
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
12
|
+
className: ax(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Lozenge, props));
|
|
14
|
+
}
|
|
15
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
16
|
+
className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Lozenge, props));
|
|
18
|
+
};
|
|
10
19
|
export default InlineLozenge;
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
const PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "0.0.0-development",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
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: "
|
|
7
|
+
packageVersion: "0.0.0-development"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
._154i1n1a{top:-1px}
|
|
1
2
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
2
3
|
._19pkidpf{margin-top:0}
|
|
3
4
|
._1e0c1o8l{display:inline-block}
|
|
4
5
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
6
|
+
._kqswh2mm{position:relative}
|
|
5
7
|
._otyridpf{margin-bottom:0}
|
|
6
8
|
._p12f1osq{max-width:100%}
|
|
7
9
|
._s7n4t94y{vertical-align:1px}
|
|
@@ -3,8 +3,15 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import Lozenge from '@atlaskit/lozenge';
|
|
6
|
-
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
var wrapperStylesOld = null;
|
|
8
|
+
var wrapperStylesNew = null;
|
|
7
9
|
var InlineLozenge = function InlineLozenge(props) {
|
|
10
|
+
if (fg('jfp-magma-platform-lozenge-jump-fix')) {
|
|
11
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
12
|
+
className: ax(["_1e0c1o8l _154i1n1a _kqswh2mm _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Lozenge, props));
|
|
14
|
+
}
|
|
8
15
|
return /*#__PURE__*/React.createElement("span", {
|
|
9
16
|
className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o _p12f1osq"])
|
|
10
17
|
}, /*#__PURE__*/React.createElement(Lozenge, props));
|
|
@@ -16,7 +16,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
16
16
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
17
17
|
var PACKAGE_DATA = {
|
|
18
18
|
packageName: "@atlaskit/smart-card",
|
|
19
|
-
packageVersion: "
|
|
19
|
+
packageVersion: "0.0.0-development",
|
|
20
20
|
componentName: 'linkUrl'
|
|
21
21
|
};
|
|
22
22
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "42.2.
|
|
3
|
+
"version": "42.2.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"@atlaskit/checkbox": "^17.1.0",
|
|
37
37
|
"@atlaskit/css": "^0.14.0",
|
|
38
38
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
39
|
-
"@atlaskit/embedded-confluence": "^4.
|
|
39
|
+
"@atlaskit/embedded-confluence": "^4.3.0",
|
|
40
40
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
41
|
-
"@atlaskit/form": "^14.
|
|
41
|
+
"@atlaskit/form": "^14.1.0",
|
|
42
42
|
"@atlaskit/frontend-utilities": "^3.1.0",
|
|
43
43
|
"@atlaskit/heading": "^5.2.0",
|
|
44
|
-
"@atlaskit/icon": "^28.
|
|
44
|
+
"@atlaskit/icon": "^28.3.0",
|
|
45
45
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
46
46
|
"@atlaskit/icon-lab": "^5.7.0",
|
|
47
47
|
"@atlaskit/icon-object": "^7.2.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/logo": "^19.7.0",
|
|
60
60
|
"@atlaskit/lozenge": "^13.0.0",
|
|
61
61
|
"@atlaskit/menu": "^8.4.0",
|
|
62
|
-
"@atlaskit/modal-dialog": "^14.
|
|
62
|
+
"@atlaskit/modal-dialog": "^14.4.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",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
101
101
|
"@atlaskit/css-reset": "^7.3.0",
|
|
102
102
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
103
|
-
"@atlaskit/react-ufo": "^4.
|
|
103
|
+
"@atlaskit/react-ufo": "^4.10.0",
|
|
104
104
|
"@atlaskit/ssr": "workspace:^",
|
|
105
105
|
"@atlassian/analytics-tooling": "^0.5.0",
|
|
106
106
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
@@ -237,6 +237,9 @@
|
|
|
237
237
|
},
|
|
238
238
|
"navx-1895-a11y-close-button-in-preview-modal": {
|
|
239
239
|
"type": "boolean"
|
|
240
|
+
},
|
|
241
|
+
"jfp-magma-platform-lozenge-jump-fix": {
|
|
242
|
+
"type": "boolean"
|
|
240
243
|
}
|
|
241
244
|
},
|
|
242
245
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"
|