@atlaskit/smart-card 45.2.2 → 45.2.4
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 +17 -0
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +3 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +3 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +3 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7ecbb011395dc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ecbb011395dc) -
|
|
8
|
+
[ux] Updates jira/confluence icon in smart list footer to have label='' to reduce a11y redudancy
|
|
9
|
+
on icons
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 45.2.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`646db528187d4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/646db528187d4) -
|
|
17
|
+
Fix feature gate logic for SmartLink inline CTA
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 45.2.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
8
8
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
9
10
|
var _constants = require("../../../constants");
|
|
10
11
|
var _helpers = require("../../../state/helpers");
|
|
11
12
|
var _useBlockCardRovoActionExperiment = require("../../../state/hooks/use-block-card-rovo-action-experiment");
|
|
@@ -31,9 +32,10 @@ var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
|
31
32
|
var extensionKey = (0, _helpers.getExtensionKey)(response);
|
|
32
33
|
var isGoogleProvider = extensionKey === 'google-object-provider';
|
|
33
34
|
var is3PBlockExperimentEnabled = (0, _useBlockCardRovoActionExperiment.isBlockCardRovoActionExperimentEnabled)((_rovoConfig$product = rovoConfig === null || rovoConfig === void 0 ? void 0 : rovoConfig.product) !== null && _rovoConfig$product !== void 0 ? _rovoConfig$product : product);
|
|
35
|
+
var isInlineExperimentEnabled = (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_inline_tailored_cta_killswitch') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
34
36
|
var is3PAuthRovoActionEnabled = isGoogleProvider && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch');
|
|
35
37
|
var is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && is3PBlockExperimentEnabled;
|
|
36
|
-
var isSupportedFeature = is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled;
|
|
38
|
+
var isSupportedFeature = is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled || isInlineExperimentEnabled;
|
|
37
39
|
var isOptIn = (actionOptions === null || actionOptions === void 0 || (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
38
40
|
var url = (0, _linkExtractors.extractSmartLinkUrl)(response);
|
|
39
41
|
return isSupportedFeature && isOptIn ? {
|
|
@@ -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.2.
|
|
14
|
+
packageVersion: "45.2.3" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -138,7 +138,10 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
|
138
138
|
case _constants.IconType.Confluence:
|
|
139
139
|
return /*#__PURE__*/_react.default.createElement(_logo.ConfluenceIcon, (0, _extends2.default)({
|
|
140
140
|
appearance: "brand",
|
|
141
|
-
testId: testId
|
|
141
|
+
testId: testId
|
|
142
|
+
}, (0, _platformFeatureFlags.fg)('billplat_a11y_icon_label_fix') ? {
|
|
143
|
+
label: ''
|
|
144
|
+
} : undefined, {
|
|
142
145
|
size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'small' : 'xxsmall'
|
|
143
146
|
}, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
|
|
144
147
|
shouldUseNewLogoDesign: true
|
|
@@ -146,7 +149,10 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
|
146
149
|
case _constants.IconType.Jira:
|
|
147
150
|
return /*#__PURE__*/_react.default.createElement(_logo.JiraIcon, (0, _extends2.default)({
|
|
148
151
|
appearance: "brand",
|
|
149
|
-
testId: testId
|
|
152
|
+
testId: testId
|
|
153
|
+
}, (0, _platformFeatureFlags.fg)('billplat_a11y_icon_label_fix') ? {
|
|
154
|
+
label: ''
|
|
155
|
+
} : undefined, {
|
|
150
156
|
size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'small' : 'xxsmall'
|
|
151
157
|
}, (0, _platformFeatureFlags.fg)('navx-1895-new-logo-design') ? {
|
|
152
158
|
shouldUseNewLogoDesign: true
|
|
@@ -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.2.
|
|
22
|
+
packageVersion: "45.2.3",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { extractSmartLinkUrl } from '@atlaskit/link-extractors';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
3
4
|
import { ActionName, CardAction } from '../../../constants';
|
|
4
5
|
import { getDefinitionId, getExtensionKey, getResourceType } from '../../../state/helpers';
|
|
5
6
|
import { isBlockCardRovoActionExperimentEnabled } from '../../../state/hooks/use-block-card-rovo-action-experiment';
|
|
@@ -26,9 +27,10 @@ const extractRovoChatAction = ({
|
|
|
26
27
|
const extensionKey = getExtensionKey(response);
|
|
27
28
|
const isGoogleProvider = extensionKey === 'google-object-provider';
|
|
28
29
|
const is3PBlockExperimentEnabled = isBlockCardRovoActionExperimentEnabled((_rovoConfig$product = rovoConfig === null || rovoConfig === void 0 ? void 0 : rovoConfig.product) !== null && _rovoConfig$product !== void 0 ? _rovoConfig$product : product);
|
|
30
|
+
const isInlineExperimentEnabled = fg('platform_sl_3p_auth_inline_tailored_cta_killswitch') && expValEqualsNoExposure('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
29
31
|
const is3PAuthRovoActionEnabled = isGoogleProvider && fg('platform_sl_3p_auth_rovo_action_kill_switch');
|
|
30
32
|
const is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && is3PBlockExperimentEnabled;
|
|
31
|
-
const isSupportedFeature = is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled;
|
|
33
|
+
const isSupportedFeature = is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled || isInlineExperimentEnabled;
|
|
32
34
|
const isOptIn = (actionOptions === null || actionOptions === void 0 ? void 0 : (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
33
35
|
const url = extractSmartLinkUrl(response);
|
|
34
36
|
return isSupportedFeature && isOptIn ? {
|
|
@@ -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.2.
|
|
5
|
+
packageVersion: "45.2.3" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -117,7 +117,10 @@ const AtlaskitIcon = ({
|
|
|
117
117
|
case IconType.Confluence:
|
|
118
118
|
return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
|
|
119
119
|
appearance: "brand",
|
|
120
|
-
testId: testId
|
|
120
|
+
testId: testId
|
|
121
|
+
}, fg('billplat_a11y_icon_label_fix') ? {
|
|
122
|
+
label: ''
|
|
123
|
+
} : undefined, {
|
|
121
124
|
size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
|
|
122
125
|
}, fg('navx-1895-new-logo-design') ? {
|
|
123
126
|
shouldUseNewLogoDesign: true
|
|
@@ -125,7 +128,10 @@ const AtlaskitIcon = ({
|
|
|
125
128
|
case IconType.Jira:
|
|
126
129
|
return /*#__PURE__*/React.createElement(JiraIcon, _extends({
|
|
127
130
|
appearance: "brand",
|
|
128
|
-
testId: testId
|
|
131
|
+
testId: testId
|
|
132
|
+
}, fg('billplat_a11y_icon_label_fix') ? {
|
|
133
|
+
label: ''
|
|
134
|
+
} : undefined, {
|
|
129
135
|
size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
|
|
130
136
|
}, fg('navx-1895-new-logo-design') ? {
|
|
131
137
|
shouldUseNewLogoDesign: true
|
|
@@ -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.2.
|
|
12
|
+
packageVersion: "45.2.3",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { extractSmartLinkUrl } from '@atlaskit/link-extractors';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
3
4
|
import { ActionName, CardAction } from '../../../constants';
|
|
4
5
|
import { getDefinitionId, getExtensionKey, getResourceType } from '../../../state/helpers';
|
|
5
6
|
import { isBlockCardRovoActionExperimentEnabled } from '../../../state/hooks/use-block-card-rovo-action-experiment';
|
|
@@ -25,9 +26,10 @@ var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
|
25
26
|
var extensionKey = getExtensionKey(response);
|
|
26
27
|
var isGoogleProvider = extensionKey === 'google-object-provider';
|
|
27
28
|
var is3PBlockExperimentEnabled = isBlockCardRovoActionExperimentEnabled((_rovoConfig$product = rovoConfig === null || rovoConfig === void 0 ? void 0 : rovoConfig.product) !== null && _rovoConfig$product !== void 0 ? _rovoConfig$product : product);
|
|
29
|
+
var isInlineExperimentEnabled = fg('platform_sl_3p_auth_inline_tailored_cta_killswitch') && expValEqualsNoExposure('platform_sl_3p_auth_inline_tailored_cta', 'isEnabled', true);
|
|
28
30
|
var is3PAuthRovoActionEnabled = isGoogleProvider && fg('platform_sl_3p_auth_rovo_action_kill_switch');
|
|
29
31
|
var is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && is3PBlockExperimentEnabled;
|
|
30
|
-
var isSupportedFeature = is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled;
|
|
32
|
+
var isSupportedFeature = is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled || isInlineExperimentEnabled;
|
|
31
33
|
var isOptIn = (actionOptions === null || actionOptions === void 0 || (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
32
34
|
var url = extractSmartLinkUrl(response);
|
|
33
35
|
return isSupportedFeature && isOptIn ? {
|
|
@@ -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.2.
|
|
7
|
+
packageVersion: "45.2.3" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -131,7 +131,10 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
|
131
131
|
case IconType.Confluence:
|
|
132
132
|
return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
|
|
133
133
|
appearance: "brand",
|
|
134
|
-
testId: testId
|
|
134
|
+
testId: testId
|
|
135
|
+
}, fg('billplat_a11y_icon_label_fix') ? {
|
|
136
|
+
label: ''
|
|
137
|
+
} : undefined, {
|
|
135
138
|
size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
|
|
136
139
|
}, fg('navx-1895-new-logo-design') ? {
|
|
137
140
|
shouldUseNewLogoDesign: true
|
|
@@ -139,7 +142,10 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
|
139
142
|
case IconType.Jira:
|
|
140
143
|
return /*#__PURE__*/React.createElement(JiraIcon, _extends({
|
|
141
144
|
appearance: "brand",
|
|
142
|
-
testId: testId
|
|
145
|
+
testId: testId
|
|
146
|
+
}, fg('billplat_a11y_icon_label_fix') ? {
|
|
147
|
+
label: ''
|
|
148
|
+
} : undefined, {
|
|
143
149
|
size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
|
|
144
150
|
}, fg('navx-1895-new-logo-design') ? {
|
|
145
151
|
shouldUseNewLogoDesign: true
|
|
@@ -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.2.
|
|
15
|
+
packageVersion: "45.2.3",
|
|
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.2.
|
|
3
|
+
"version": "45.2.4",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -79,15 +79,15 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^20.0.0",
|
|
80
80
|
"@atlaskit/react-ufo": "^7.1.0",
|
|
81
81
|
"@atlaskit/rovo-triggers": "^9.2.0",
|
|
82
|
-
"@atlaskit/section-message": "^9.
|
|
83
|
-
"@atlaskit/select": "^22.
|
|
82
|
+
"@atlaskit/section-message": "^9.1.0",
|
|
83
|
+
"@atlaskit/select": "^22.1.0",
|
|
84
84
|
"@atlaskit/spinner": "^20.0.0",
|
|
85
85
|
"@atlaskit/tag": "^15.0.0",
|
|
86
86
|
"@atlaskit/textarea": "^9.0.0",
|
|
87
87
|
"@atlaskit/textfield": "^9.0.0",
|
|
88
88
|
"@atlaskit/theme": "^26.0.0",
|
|
89
89
|
"@atlaskit/tile": "^2.0.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^109.
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^109.3.0",
|
|
91
91
|
"@atlaskit/tokens": "^14.0.0",
|
|
92
92
|
"@atlaskit/tooltip": "^23.0.0",
|
|
93
93
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"react-ace": "^6.1.0",
|
|
146
146
|
"react-beautiful-dnd": "^12.2.0",
|
|
147
147
|
"react-dom": "^18.2.0",
|
|
148
|
-
"react-intl": "^
|
|
148
|
+
"react-intl": "^7.0.0",
|
|
149
149
|
"react-test-renderer": "^18.2.0",
|
|
150
150
|
"ts-jest": "^29.2.2",
|
|
151
151
|
"xhr-mock": "^2.4.0"
|
|
@@ -239,6 +239,10 @@
|
|
|
239
239
|
"platform_navx_smart_link_icon_label_a11y": {
|
|
240
240
|
"type": "boolean"
|
|
241
241
|
},
|
|
242
|
+
"billplat_a11y_icon_label_fix": {
|
|
243
|
+
"type": "boolean",
|
|
244
|
+
"referenceOnly": true
|
|
245
|
+
},
|
|
242
246
|
"platform-dst-lozenge-tag-badge-visual-uplifts": {
|
|
243
247
|
"type": "boolean"
|
|
244
248
|
},
|