@atlaskit/smart-card 36.15.2 → 37.0.0
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/external.js +7 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/external.js +9 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/external.js +7 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/FlexibleCard/external.d.ts +6 -4
- package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +6 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 37.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#150608](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/150608)
|
|
8
|
+
[`c920f5dbaa727`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c920f5dbaa727) -
|
|
9
|
+
rename prop hidePrefix to hideFormat for OwnedByElement
|
|
10
|
+
|
|
3
11
|
## 36.15.2
|
|
4
12
|
|
|
5
13
|
### 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: "
|
|
14
|
+
packageVersion: "37.0.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -80,7 +80,7 @@ var ModifiedOnElement = exports.ModifiedOnElement = function ModifiedOnElement(p
|
|
|
80
80
|
var OwnedByElement = exports.OwnedByElement = function OwnedByElement(props) {
|
|
81
81
|
if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
|
|
82
82
|
return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, {
|
|
83
|
-
hideFormat: props === null || props === void 0 ? void 0 : props.
|
|
83
|
+
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, null);
|
|
@@ -88,7 +88,12 @@ var OwnedByElement = exports.OwnedByElement = function OwnedByElement(props) {
|
|
|
88
88
|
var OwnedByGroupElement = exports.OwnedByGroupElement = function OwnedByGroupElement() {
|
|
89
89
|
return /*#__PURE__*/_react.default.createElement(_elements.OwnedByGroup, null);
|
|
90
90
|
};
|
|
91
|
-
var PreviewElement = exports.PreviewElement = function PreviewElement() {
|
|
91
|
+
var PreviewElement = exports.PreviewElement = function PreviewElement(props) {
|
|
92
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-additional-flexible-element-props')) {
|
|
93
|
+
return /*#__PURE__*/_react.default.createElement(_elements.Preview, {
|
|
94
|
+
overrideUrl: props === null || props === void 0 ? void 0 : props.url
|
|
95
|
+
});
|
|
96
|
+
}
|
|
92
97
|
return /*#__PURE__*/_react.default.createElement(_elements.Preview, null);
|
|
93
98
|
};
|
|
94
99
|
var PriorityElement = exports.PriorityElement = function PriorityElement() {
|
|
@@ -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: "
|
|
23
|
+
packageVersion: "37.0.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: "
|
|
5
|
+
packageVersion: "37.0.0"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -46,13 +46,20 @@ export const ModifiedOnElement = props => {
|
|
|
46
46
|
export const OwnedByElement = props => {
|
|
47
47
|
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
48
48
|
return /*#__PURE__*/React.createElement(OwnedBy, {
|
|
49
|
-
hideFormat: props === null || props === void 0 ? void 0 : props.
|
|
49
|
+
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
return /*#__PURE__*/React.createElement(OwnedBy, null);
|
|
53
53
|
};
|
|
54
54
|
export const OwnedByGroupElement = () => /*#__PURE__*/React.createElement(OwnedByGroup, null);
|
|
55
|
-
export const PreviewElement =
|
|
55
|
+
export const PreviewElement = props => {
|
|
56
|
+
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
57
|
+
return /*#__PURE__*/React.createElement(Preview, {
|
|
58
|
+
overrideUrl: props === null || props === void 0 ? void 0 : props.url
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return /*#__PURE__*/React.createElement(Preview, null);
|
|
62
|
+
};
|
|
56
63
|
export const PriorityElement = () => /*#__PURE__*/React.createElement(Priority, null);
|
|
57
64
|
export const ProgrammingLanguageElement = () => /*#__PURE__*/React.createElement(ProgrammingLanguage, null);
|
|
58
65
|
export const ProviderElement = () => /*#__PURE__*/React.createElement(Provider, null);
|
|
@@ -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: "
|
|
13
|
+
packageVersion: "37.0.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: "
|
|
7
|
+
packageVersion: "37.0.0"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -72,7 +72,7 @@ export var ModifiedOnElement = function ModifiedOnElement(props) {
|
|
|
72
72
|
export var OwnedByElement = function OwnedByElement(props) {
|
|
73
73
|
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
74
74
|
return /*#__PURE__*/React.createElement(OwnedBy, {
|
|
75
|
-
hideFormat: props === null || props === void 0 ? void 0 : props.
|
|
75
|
+
hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
return /*#__PURE__*/React.createElement(OwnedBy, null);
|
|
@@ -80,7 +80,12 @@ export var OwnedByElement = function OwnedByElement(props) {
|
|
|
80
80
|
export var OwnedByGroupElement = function OwnedByGroupElement() {
|
|
81
81
|
return /*#__PURE__*/React.createElement(OwnedByGroup, null);
|
|
82
82
|
};
|
|
83
|
-
export var PreviewElement = function PreviewElement() {
|
|
83
|
+
export var PreviewElement = function PreviewElement(props) {
|
|
84
|
+
if (fg('platform-linking-additional-flexible-element-props')) {
|
|
85
|
+
return /*#__PURE__*/React.createElement(Preview, {
|
|
86
|
+
overrideUrl: props === null || props === void 0 ? void 0 : props.url
|
|
87
|
+
});
|
|
88
|
+
}
|
|
84
89
|
return /*#__PURE__*/React.createElement(Preview, null);
|
|
85
90
|
};
|
|
86
91
|
export var PriorityElement = function PriorityElement() {
|
|
@@ -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: "
|
|
16
|
+
packageVersion: "37.0.0",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -10,6 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import { type DateTimeProps } from './components/elements/date-time/types';
|
|
11
11
|
import { type IconProps } from './components/elements/icon/types';
|
|
12
12
|
import { type LinkProps } from './components/elements/link/types';
|
|
13
|
+
import { type PreviewProps } from './components/elements/preview/types';
|
|
13
14
|
import { type TextProps } from './components/elements/text/types';
|
|
14
15
|
export declare const AssignedToElement: () => React.JSX.Element;
|
|
15
16
|
export declare const AssignedToGroupElement: () => React.JSX.Element;
|
|
@@ -30,12 +31,13 @@ export declare const LocationElement: () => React.JSX.Element;
|
|
|
30
31
|
export declare const ModifiedByElement: () => React.JSX.Element;
|
|
31
32
|
type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix'>;
|
|
32
33
|
export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
|
|
33
|
-
type OwnedByElementProps =
|
|
34
|
-
hidePrefix?: boolean;
|
|
35
|
-
};
|
|
34
|
+
type OwnedByElementProps = Pick<TextProps, 'hideFormat'>;
|
|
36
35
|
export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
|
|
37
36
|
export declare const OwnedByGroupElement: () => React.JSX.Element;
|
|
38
|
-
|
|
37
|
+
type PreviewElementProps = {
|
|
38
|
+
url?: PreviewProps['overrideUrl'];
|
|
39
|
+
};
|
|
40
|
+
export declare const PreviewElement: (props?: PreviewElementProps) => React.JSX.Element;
|
|
39
41
|
export declare const PriorityElement: () => React.JSX.Element;
|
|
40
42
|
export declare const ProgrammingLanguageElement: () => React.JSX.Element;
|
|
41
43
|
export declare const ProviderElement: () => React.JSX.Element;
|
|
@@ -10,6 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import { type DateTimeProps } from './components/elements/date-time/types';
|
|
11
11
|
import { type IconProps } from './components/elements/icon/types';
|
|
12
12
|
import { type LinkProps } from './components/elements/link/types';
|
|
13
|
+
import { type PreviewProps } from './components/elements/preview/types';
|
|
13
14
|
import { type TextProps } from './components/elements/text/types';
|
|
14
15
|
export declare const AssignedToElement: () => React.JSX.Element;
|
|
15
16
|
export declare const AssignedToGroupElement: () => React.JSX.Element;
|
|
@@ -30,12 +31,13 @@ export declare const LocationElement: () => React.JSX.Element;
|
|
|
30
31
|
export declare const ModifiedByElement: () => React.JSX.Element;
|
|
31
32
|
type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix'>;
|
|
32
33
|
export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
|
|
33
|
-
type OwnedByElementProps =
|
|
34
|
-
hidePrefix?: boolean;
|
|
35
|
-
};
|
|
34
|
+
type OwnedByElementProps = Pick<TextProps, 'hideFormat'>;
|
|
36
35
|
export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
|
|
37
36
|
export declare const OwnedByGroupElement: () => React.JSX.Element;
|
|
38
|
-
|
|
37
|
+
type PreviewElementProps = {
|
|
38
|
+
url?: PreviewProps['overrideUrl'];
|
|
39
|
+
};
|
|
40
|
+
export declare const PreviewElement: (props?: PreviewElementProps) => React.JSX.Element;
|
|
39
41
|
export declare const PriorityElement: () => React.JSX.Element;
|
|
40
42
|
export declare const ProgrammingLanguageElement: () => React.JSX.Element;
|
|
41
43
|
export declare const ProviderElement: () => React.JSX.Element;
|