@atlaskit/smart-card 43.29.0 → 43.29.2
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 +14 -0
- package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -3
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +3 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -3
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +3 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +3 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +2 -2
- package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.29.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 43.29.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c029ee58de1cb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c029ee58de1cb) -
|
|
14
|
+
Fix no-literal-string-in-object ESLint violations
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 43.29.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -140,11 +140,9 @@ function typeToIconDescriptor(_ref3) {
|
|
|
140
140
|
};
|
|
141
141
|
case 'atlassian:Task':
|
|
142
142
|
if ((0, _platformFeatureFlags.fg)('platform_navx_smart_link_icon_label_a11y')) {
|
|
143
|
-
// Not user-facing copy: icon descriptor label for a11y (see go/i18n-no-literal-string-in-object).
|
|
144
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
145
143
|
var taskIconDescriptor = {
|
|
146
144
|
icon: _constants.IconType.Task,
|
|
147
|
-
label: '
|
|
145
|
+
label: descriptorLabel('task')
|
|
148
146
|
};
|
|
149
147
|
if (isJiraProvider(providerId)) {
|
|
150
148
|
var _extractTaskNew = extractTaskNew(data),
|
|
@@ -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.
|
|
14
|
+
packageVersion: "43.29.1"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -111,7 +111,9 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
111
111
|
maxWidth: maxWidth,
|
|
112
112
|
testId: testId,
|
|
113
113
|
ref: triggerRef,
|
|
114
|
-
"aria-label": (0, _platformFeatureFlags.fg)('platform_navx_flex_card_status_dropdown_a11y_fix') ?
|
|
114
|
+
"aria-label": (0, _platformFeatureFlags.fg)('platform_navx_flex_card_status_dropdown_a11y_fix') ?
|
|
115
|
+
// The `as unknown` type cast is needed for react-intl v7 upgrade
|
|
116
|
+
intl.formatMessage(_messages.messages.change_status, {
|
|
115
117
|
status: text
|
|
116
118
|
}) : undefined
|
|
117
119
|
}), text)) : /*#__PURE__*/React.createElement("button", (0, _extends2.default)({
|
|
@@ -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.
|
|
25
|
+
packageVersion: "43.29.1",
|
|
26
26
|
componentName: 'linkUrl'
|
|
27
27
|
};
|
|
28
28
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -135,11 +135,9 @@ function typeToIconDescriptor({
|
|
|
135
135
|
};
|
|
136
136
|
case 'atlassian:Task':
|
|
137
137
|
if (fg('platform_navx_smart_link_icon_label_a11y')) {
|
|
138
|
-
// Not user-facing copy: icon descriptor label for a11y (see go/i18n-no-literal-string-in-object).
|
|
139
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
140
138
|
const taskIconDescriptor = {
|
|
141
139
|
icon: IconType.Task,
|
|
142
|
-
label: '
|
|
140
|
+
label: descriptorLabel('task')
|
|
143
141
|
};
|
|
144
142
|
if (isJiraProvider(providerId)) {
|
|
145
143
|
const {
|
|
@@ -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.
|
|
5
|
+
packageVersion: "43.29.1"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -88,7 +88,9 @@ const LozengeActionTrigger = ({
|
|
|
88
88
|
maxWidth: maxWidth,
|
|
89
89
|
testId: testId,
|
|
90
90
|
ref: triggerRef,
|
|
91
|
-
"aria-label": fg('platform_navx_flex_card_status_dropdown_a11y_fix') ?
|
|
91
|
+
"aria-label": fg('platform_navx_flex_card_status_dropdown_a11y_fix') ?
|
|
92
|
+
// The `as unknown` type cast is needed for react-intl v7 upgrade
|
|
93
|
+
intl.formatMessage(messages.change_status, {
|
|
92
94
|
status: text
|
|
93
95
|
}) : undefined
|
|
94
96
|
}), text)) : /*#__PURE__*/React.createElement("button", _extends({
|
|
@@ -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.
|
|
15
|
+
packageVersion: "43.29.1",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -133,11 +133,9 @@ function typeToIconDescriptor(_ref3) {
|
|
|
133
133
|
};
|
|
134
134
|
case 'atlassian:Task':
|
|
135
135
|
if (fg('platform_navx_smart_link_icon_label_a11y')) {
|
|
136
|
-
// Not user-facing copy: icon descriptor label for a11y (see go/i18n-no-literal-string-in-object).
|
|
137
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
138
136
|
var taskIconDescriptor = {
|
|
139
137
|
icon: IconType.Task,
|
|
140
|
-
label: '
|
|
138
|
+
label: descriptorLabel('task')
|
|
141
139
|
};
|
|
142
140
|
if (isJiraProvider(providerId)) {
|
|
143
141
|
var _extractTaskNew = extractTaskNew(data),
|
|
@@ -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.
|
|
7
|
+
packageVersion: "43.29.1"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -103,7 +103,9 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
103
103
|
maxWidth: maxWidth,
|
|
104
104
|
testId: testId,
|
|
105
105
|
ref: triggerRef,
|
|
106
|
-
"aria-label": fg('platform_navx_flex_card_status_dropdown_a11y_fix') ?
|
|
106
|
+
"aria-label": fg('platform_navx_flex_card_status_dropdown_a11y_fix') ?
|
|
107
|
+
// The `as unknown` type cast is needed for react-intl v7 upgrade
|
|
108
|
+
intl.formatMessage(messages.change_status, {
|
|
107
109
|
status: text
|
|
108
110
|
}) : undefined
|
|
109
111
|
}), text)) : /*#__PURE__*/React.createElement("button", _extends({
|
|
@@ -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.
|
|
18
|
+
packageVersion: "43.29.1",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -5,9 +5,9 @@ import { type PopupComponentProps } from '@atlaskit/popup';
|
|
|
5
5
|
* HoverCard border implementation is in ContentContainer where it can
|
|
6
6
|
* change between the default border and prism border during runtime.
|
|
7
7
|
*/
|
|
8
|
-
declare const CustomPopupContainer: React.ForwardRefExoticComponent<
|
|
8
|
+
declare const CustomPopupContainer: React.ForwardRefExoticComponent<PopupComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
/**
|
|
10
10
|
* Factory function to create a CustomPopupContainer with a specific z-index
|
|
11
11
|
*/
|
|
12
|
-
export declare const createCustomPopupContainer: (zIndex?: number) => React.ForwardRefExoticComponent<
|
|
12
|
+
export declare const createCustomPopupContainer: (zIndex?: number) => React.ForwardRefExoticComponent<PopupComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export default CustomPopupContainer;
|
|
@@ -5,9 +5,9 @@ import { type PopupComponentProps } from '@atlaskit/popup';
|
|
|
5
5
|
* HoverCard border implementation is in ContentContainer where it can
|
|
6
6
|
* change between the default border and prism border during runtime.
|
|
7
7
|
*/
|
|
8
|
-
declare const CustomPopupContainer: React.ForwardRefExoticComponent<
|
|
8
|
+
declare const CustomPopupContainer: React.ForwardRefExoticComponent<PopupComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
/**
|
|
10
10
|
* Factory function to create a CustomPopupContainer with a specific z-index
|
|
11
11
|
*/
|
|
12
|
-
export declare const createCustomPopupContainer: (zIndex?: number) => React.ForwardRefExoticComponent<
|
|
12
|
+
export declare const createCustomPopupContainer: (zIndex?: number) => React.ForwardRefExoticComponent<PopupComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export default CustomPopupContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.29.
|
|
3
|
+
"version": "43.29.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/form": "^15.5.0",
|
|
45
45
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
46
46
|
"@atlaskit/heading": "^5.3.0",
|
|
47
|
-
"@atlaskit/icon": "^
|
|
47
|
+
"@atlaskit/icon": "^34.0.0",
|
|
48
48
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
49
49
|
"@atlaskit/icon-object": "^7.5.0",
|
|
50
50
|
"@atlaskit/image": "^3.0.0",
|
|
@@ -59,26 +59,26 @@
|
|
|
59
59
|
"@atlaskit/logo": "^19.10.0",
|
|
60
60
|
"@atlaskit/lozenge": "^13.5.0",
|
|
61
61
|
"@atlaskit/menu": "^8.4.0",
|
|
62
|
-
"@atlaskit/modal-dialog": "^14.
|
|
62
|
+
"@atlaskit/modal-dialog": "^14.14.0",
|
|
63
63
|
"@atlaskit/motion": "^5.5.0",
|
|
64
64
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
67
|
-
"@atlaskit/popup": "^4.
|
|
67
|
+
"@atlaskit/popup": "^4.16.0",
|
|
68
68
|
"@atlaskit/primitives": "^18.1.0",
|
|
69
|
-
"@atlaskit/react-ufo": "^5.
|
|
69
|
+
"@atlaskit/react-ufo": "^5.10.0",
|
|
70
70
|
"@atlaskit/rovo-triggers": "^5.34.0",
|
|
71
71
|
"@atlaskit/section-message": "^8.12.0",
|
|
72
|
-
"@atlaskit/select": "^21.
|
|
72
|
+
"@atlaskit/select": "^21.10.0",
|
|
73
73
|
"@atlaskit/spinner": "^19.0.0",
|
|
74
74
|
"@atlaskit/tag": "^14.6.0",
|
|
75
75
|
"@atlaskit/textarea": "^8.2.0",
|
|
76
76
|
"@atlaskit/textfield": "^8.2.0",
|
|
77
77
|
"@atlaskit/theme": "^22.0.0",
|
|
78
78
|
"@atlaskit/tile": "^1.0.0",
|
|
79
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
79
|
+
"@atlaskit/tmp-editor-statsig": "^53.0.0",
|
|
80
80
|
"@atlaskit/tokens": "^11.4.0",
|
|
81
|
-
"@atlaskit/tooltip": "^21.
|
|
81
|
+
"@atlaskit/tooltip": "^21.1.0",
|
|
82
82
|
"@atlaskit/ufo": "^0.4.0",
|
|
83
83
|
"@babel/runtime": "^7.0.0",
|
|
84
84
|
"@compiled/react": "^0.20.0",
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
"@atlaskit/css-reset": "^7.4.0",
|
|
108
108
|
"@atlaskit/media-test-helpers": "^40.0.0",
|
|
109
109
|
"@atlaskit/ssr": "workspace:^",
|
|
110
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
110
|
+
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
111
111
|
"@atlassian/analytics-tooling": "workspace:^",
|
|
112
112
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
113
|
-
"@atlassian/gemini": "^1.
|
|
113
|
+
"@atlassian/gemini": "^1.39.0",
|
|
114
114
|
"@atlassian/testing-library": "^0.5.0",
|
|
115
115
|
"@testing-library/dom": "^10.1.0",
|
|
116
116
|
"@testing-library/jest-dom": "^6.4.5",
|