@atlaskit/smart-card 38.13.0 → 38.13.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 +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +6 -10
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +6 -10
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +6 -10
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/__fixtures__/document-entity.d.ts +1 -1
- package/dist/types/view/FlexibleCard/external.d.ts +1 -1
- package/dist/types-ts4.5/__fixtures__/document-entity.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 38.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#172902](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172902)
|
|
8
|
+
[`cb3873e81d762`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cb3873e81d762) -
|
|
9
|
+
Cleanup FG cc_shortcut_ssr_placeholder
|
|
10
|
+
|
|
3
11
|
## 38.13.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: "38.
|
|
14
|
+
packageVersion: "38.13.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
2
3
|
"use strict";
|
|
3
4
|
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
5
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
@@ -11,12 +11,10 @@ require("./index.compiled.css");
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _constants = require("../../../../../constants");
|
|
17
16
|
var _utils = require("../utils");
|
|
18
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); }
|
|
19
|
-
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
20
18
|
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
21
19
|
var BaseBlockStylesOld = null;
|
|
22
20
|
var baseBlockStyles = null;
|
|
@@ -64,11 +62,7 @@ var Block = function Block(_ref) {
|
|
|
64
62
|
(0, _react.useEffect)(function () {
|
|
65
63
|
onRender && onRender();
|
|
66
64
|
}, [onRender]);
|
|
67
|
-
|
|
68
|
-
'data-ssr-placeholder': placeholderId,
|
|
69
|
-
'data-ssr-placeholder-replace': placeholderId
|
|
70
|
-
} : {};
|
|
71
|
-
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
72
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
73
67
|
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _vwz41j6v _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1ouwidpf _f6ju1ns9 _1uzp1mp2 _ytq1bjq5 _a7e8uxlv", (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1uzp1mp2 _a6bxmuej _e4i5bjq5 _1gu21oju _5b7tuxlv _17ae1oju", "_12ji1snc _1qu2agmp _12y310yn _12ji1kw7 _syaz1kw7 _18ql1j28 _1ifmglyw _181uglyw _1rkwglyw _te17glyw _uiztglyw", directionStyles[direction], !(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && gapsStylesOld[size], (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && gapStyles[size], className]),
|
|
74
68
|
"data-smart-block": true,
|
|
@@ -77,7 +71,9 @@ var Block = function Block(_ref) {
|
|
|
77
71
|
ref: blockRef
|
|
78
72
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
79
73
|
,
|
|
80
|
-
style: style
|
|
81
|
-
|
|
74
|
+
style: style,
|
|
75
|
+
"data-ssr-placeholder": placeholderId,
|
|
76
|
+
"data-ssr-placeholder-replace": placeholderId
|
|
77
|
+
}, (0, _utils.renderChildren)(children, size));
|
|
82
78
|
};
|
|
83
79
|
var _default = exports.default = Block;
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "38.
|
|
23
|
+
packageVersion: "38.13.0",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
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: "38.
|
|
5
|
+
packageVersion: "38.13.0"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
|
|
2
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
7
|
-
|
|
8
6
|
import { useEffect } from 'react';
|
|
9
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
8
|
import { SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
|
|
@@ -55,11 +53,7 @@ const Block = ({
|
|
|
55
53
|
useEffect(() => {
|
|
56
54
|
onRender && onRender();
|
|
57
55
|
}, [onRender]);
|
|
58
|
-
|
|
59
|
-
'data-ssr-placeholder': placeholderId,
|
|
60
|
-
'data-ssr-placeholder-replace': placeholderId
|
|
61
|
-
} : {};
|
|
62
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
56
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
63
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
64
58
|
className: ax([!fg('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _vwz41j6v _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1ouwidpf _f6ju1ns9 _1uzp1mp2 _ytq1bjq5 _a7e8uxlv", fg('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1uzp1mp2 _a6bxmuej _e4i5bjq5 _1gu21oju _5b7tuxlv _17ae1oju", "_12ji1snc _1qu2agmp _12y310yn _12ji1kw7 _syaz1kw7 _18ql1j28 _1ifmglyw _181uglyw _1rkwglyw _te17glyw _uiztglyw", directionStyles[direction], !fg('platform-linking-visual-refresh-v1') && gapsStylesOld[size], fg('platform-linking-visual-refresh-v1') && gapStyles[size], className]),
|
|
65
59
|
"data-smart-block": true,
|
|
@@ -68,7 +62,9 @@ const Block = ({
|
|
|
68
62
|
ref: blockRef
|
|
69
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
70
64
|
,
|
|
71
|
-
style: style
|
|
72
|
-
|
|
65
|
+
style: style,
|
|
66
|
+
"data-ssr-placeholder": placeholderId,
|
|
67
|
+
"data-ssr-placeholder-replace": placeholderId
|
|
68
|
+
}, renderChildren(children, size));
|
|
73
69
|
};
|
|
74
70
|
export default Block;
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "38.
|
|
13
|
+
packageVersion: "38.13.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
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: "38.
|
|
7
|
+
packageVersion: "38.13.0"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
|
|
2
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
7
|
-
|
|
8
6
|
import { useEffect } from 'react';
|
|
9
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
8
|
import { SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
|
|
@@ -57,11 +55,7 @@ var Block = function Block(_ref) {
|
|
|
57
55
|
useEffect(function () {
|
|
58
56
|
onRender && onRender();
|
|
59
57
|
}, [onRender]);
|
|
60
|
-
|
|
61
|
-
'data-ssr-placeholder': placeholderId,
|
|
62
|
-
'data-ssr-placeholder-replace': placeholderId
|
|
63
|
-
} : {};
|
|
64
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
58
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
65
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
66
60
|
className: ax([!fg('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _vwz41j6v _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1ouwidpf _f6ju1ns9 _1uzp1mp2 _ytq1bjq5 _a7e8uxlv", fg('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1uzp1mp2 _a6bxmuej _e4i5bjq5 _1gu21oju _5b7tuxlv _17ae1oju", "_12ji1snc _1qu2agmp _12y310yn _12ji1kw7 _syaz1kw7 _18ql1j28 _1ifmglyw _181uglyw _1rkwglyw _te17glyw _uiztglyw", directionStyles[direction], !fg('platform-linking-visual-refresh-v1') && gapsStylesOld[size], fg('platform-linking-visual-refresh-v1') && gapStyles[size], className]),
|
|
67
61
|
"data-smart-block": true,
|
|
@@ -70,7 +64,9 @@ var Block = function Block(_ref) {
|
|
|
70
64
|
ref: blockRef
|
|
71
65
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
72
66
|
,
|
|
73
|
-
style: style
|
|
74
|
-
|
|
67
|
+
style: style,
|
|
68
|
+
"data-ssr-placeholder": placeholderId,
|
|
69
|
+
"data-ssr-placeholder-replace": placeholderId
|
|
70
|
+
}, renderChildren(children, size));
|
|
75
71
|
};
|
|
76
72
|
export default Block;
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "38.
|
|
16
|
+
packageVersion: "38.13.0",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* DO NOT add a new prop to these components until we are ready to support it externally.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { Prettify } from '@atlaskit/linking-common';
|
|
10
|
+
import type { Prettify } from '@atlaskit/linking-common';
|
|
11
11
|
import { CommentCount, LinkIcon, ModifiedOn, OwnedBy, OwnedByGroup, Preview, ReactCount, Snippet, Title } from './components/elements';
|
|
12
12
|
export declare const AssignedToElement: () => React.JSX.Element;
|
|
13
13
|
export declare const AssignedToGroupElement: () => React.JSX.Element;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* DO NOT add a new prop to these components until we are ready to support it externally.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { Prettify } from '@atlaskit/linking-common';
|
|
10
|
+
import type { Prettify } from '@atlaskit/linking-common';
|
|
11
11
|
import { CommentCount, LinkIcon, ModifiedOn, OwnedBy, OwnedByGroup, Preview, ReactCount, Snippet, Title } from './components/elements';
|
|
12
12
|
export declare const AssignedToElement: () => React.JSX.Element;
|
|
13
13
|
export declare const AssignedToGroupElement: () => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "38.13.
|
|
3
|
+
"version": "38.13.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@atlaskit/textarea": "^8.0.0",
|
|
68
68
|
"@atlaskit/textfield": "^8.0.0",
|
|
69
69
|
"@atlaskit/theme": "^18.0.0",
|
|
70
|
-
"@atlaskit/tokens": "^5.
|
|
70
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.3.0",
|
|
72
72
|
"@atlaskit/ufo": "^0.4.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
@@ -167,9 +167,6 @@
|
|
|
167
167
|
".": "./src/index.ts"
|
|
168
168
|
},
|
|
169
169
|
"platform-feature-flags": {
|
|
170
|
-
"cc_shortcut_ssr_placeholder": {
|
|
171
|
-
"type": "boolean"
|
|
172
|
-
},
|
|
173
170
|
"send-smart-link-rendered-ufo-event-half-time": {
|
|
174
171
|
"type": "boolean"
|
|
175
172
|
},
|