@atlaskit/smart-card 46.7.0 → 46.7.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 +12 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-update-cta-treatment-with-social-proof-in-narrow-container--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-update-cta-treatment-without-social-proof--default.png +3 -0
- package/dist/cjs/messages.js +10 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +58 -25
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-update-cta-treatment-with-social-proof-in-narrow-container--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-update-cta-treatment-without-social-proof--default.png +3 -0
- package/dist/es2019/messages.js +10 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +34 -6
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-update-cta-treatment-with-social-proof-in-narrow-container--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-update-cta-treatment-without-social-proof--default.png +3 -0
- package/dist/esm/messages.js +10 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +58 -25
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/package.json +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 46.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`51aff6da58a78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51aff6da58a78) -
|
|
8
|
+
Prevent inline Smart Link social proof from changing server-rendered markup during hydration
|
|
9
|
+
behind `platform_sl_inline_social_proof_hydration_fix`.
|
|
10
|
+
- [`453452aa2765d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/453452aa2765d) -
|
|
11
|
+
Update unauthorised inline Smart Link connect copy behind platform_sl_3p_preauth_update_cta_fg and
|
|
12
|
+
platform_sl_3p_preauth_update_cta_exp.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 46.7.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -236,11 +236,21 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
236
236
|
defaultMessage: 'Connect {context}',
|
|
237
237
|
description: 'Shown on a button to connect user external 3P account to their Atlassian account, e.g. Connect Figma'
|
|
238
238
|
},
|
|
239
|
+
connect_inline_provider_to_update: {
|
|
240
|
+
id: 'fabric.linking.connect_inline_provider_to_update.ai-non-final',
|
|
241
|
+
defaultMessage: 'Connect {context} to update',
|
|
242
|
+
description: 'Text shown on the connect button of an unauthorised inline Smart Link. {context} is replaced with the provider name, and update means updating the Smart Link preview after the account is connected.'
|
|
243
|
+
},
|
|
239
244
|
connect_inline_social_proof: {
|
|
240
245
|
id: 'fabric.linking.connect_inline_social_proof',
|
|
241
246
|
defaultMessage: 'Connect',
|
|
242
247
|
description: 'Shown on a button for unauthorised inline smart links when the social proof inline CTA experiment is active. Replaces the longer "Connect your {context} account" label.'
|
|
243
248
|
},
|
|
249
|
+
connect_inline_to_update: {
|
|
250
|
+
id: 'fabric.linking.connect_inline_to_update.ai-non-final',
|
|
251
|
+
defaultMessage: 'Connect to update',
|
|
252
|
+
description: 'Text shown on the connect button of an unauthorised inline Smart Link. It prompts the user to connect an account, and update means updating the Smart Link preview.'
|
|
253
|
+
},
|
|
244
254
|
social_proof_inline_cta_tag_high_with_context: {
|
|
245
255
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_with_context',
|
|
246
256
|
defaultMessage: '<b>{connectedPct}%</b> of your team sees {context} previews',
|
|
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
25
25
|
var context = exports.context = {
|
|
26
26
|
componentName: 'smart-cards',
|
|
27
27
|
packageName: "@atlaskit/smart-card" || '',
|
|
28
|
-
packageVersion: "46.
|
|
28
|
+
packageVersion: "46.7.0" || ''
|
|
29
29
|
};
|
|
30
30
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
31
31
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -14,6 +14,8 @@ var _reactIntl = require("react-intl");
|
|
|
14
14
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
15
15
|
var _css = require("@atlaskit/css");
|
|
16
16
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
17
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
20
|
var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
|
|
19
21
|
var _messages = require("../../../messages");
|
|
@@ -35,6 +37,11 @@ var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
|
35
37
|
*/
|
|
36
38
|
var SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD = 30;
|
|
37
39
|
var SOCIAL_PROOF_TRAIT_NAME = 'sl_3p_connected_providers_site_pct';
|
|
40
|
+
|
|
41
|
+
// useSyncExternalStore provides hydration snapshots without live cache updates.
|
|
42
|
+
var noopSubscribe = function noopSubscribe() {
|
|
43
|
+
return function () {};
|
|
44
|
+
};
|
|
38
45
|
var socialProofPillStyles = {
|
|
39
46
|
strong: "_k48pwu06",
|
|
40
47
|
root: "_2rko12b0 _1e0c1nu9 _4cvr1h6o _vchhusvi _p12f1osq _bfhk1dpa _syazazsu _y3gn18uv _1wybtjj4 _s7n4t94y _ca0qv77o _n3tdv77o _u5f312x7 _19bv12x7 _2hwx1b66 _irr3plhp _1di61gdz",
|
|
@@ -44,19 +51,43 @@ var socialProofPillStyles = {
|
|
|
44
51
|
pressableContents: "_1e0c1bgi",
|
|
45
52
|
inlineGroup: "_1e0c1nu9"
|
|
46
53
|
};
|
|
54
|
+
var ConnectButtonLabel = function ConnectButtonLabel(_ref) {
|
|
55
|
+
var context = _ref.context,
|
|
56
|
+
isUpdateCtaEnabled = _ref.isUpdateCtaEnabled,
|
|
57
|
+
showSocialProofPill = _ref.showSocialProofPill;
|
|
58
|
+
if (isUpdateCtaEnabled) {
|
|
59
|
+
return showSocialProofPill || !(context !== null && context !== void 0 && context.trim()) ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.connect_inline_to_update) : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_inline_provider_to_update, {
|
|
60
|
+
values: {
|
|
61
|
+
context: context
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
return showSocialProofPill ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.connect_inline_social_proof) : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_link_account_card_name, {
|
|
66
|
+
values: {
|
|
67
|
+
context: context
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
};
|
|
47
71
|
|
|
48
72
|
/**
|
|
49
73
|
* Renders the social-proof pill and Connect button using persisted percentages only ({@link getCachedProviderPctMapAndRefresh}) — no
|
|
50
74
|
* loading skeleton; either the cached percentage is shown or the legacy long connect label is used.
|
|
51
75
|
* Only mounted when the card has an authorisation action.
|
|
52
76
|
*/
|
|
53
|
-
var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialProof(
|
|
77
|
+
var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialProof(_ref2) {
|
|
54
78
|
var _context$trim;
|
|
55
|
-
var context =
|
|
56
|
-
extensionKey =
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
79
|
+
var context = _ref2.context,
|
|
80
|
+
extensionKey = _ref2.extensionKey,
|
|
81
|
+
isUpdateCtaEnabled = _ref2.isUpdateCtaEnabled,
|
|
82
|
+
testId = _ref2.testId,
|
|
83
|
+
onConnectClick = _ref2.onConnectClick;
|
|
84
|
+
var cachedProviderPctMap = (0, _getCachedProviderPctMapAndRefresh.getCachedProviderPctMapAndRefresh)(SOCIAL_PROOF_TRAIT_NAME);
|
|
85
|
+
var canUseCachedProviderPctMap = _react.default.useSyncExternalStore(noopSubscribe, function () {
|
|
86
|
+
return true;
|
|
87
|
+
}, function () {
|
|
88
|
+
return !(0, _fg.fg)('platform_sl_inline_social_proof_hydration_fix');
|
|
89
|
+
});
|
|
90
|
+
var providerPctMap = canUseCachedProviderPctMap ? cachedProviderPctMap : null;
|
|
60
91
|
|
|
61
92
|
// Will be false if this is the first render, when we fetch traits and store to local storage,
|
|
62
93
|
// or if there wasn't our trait for it.
|
|
@@ -113,11 +144,11 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
113
144
|
viewType: "unauthorised",
|
|
114
145
|
testId: "button-connect-account",
|
|
115
146
|
isSlimDesign: showSocialProofPill
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
})))
|
|
147
|
+
}, /*#__PURE__*/_react.default.createElement(ConnectButtonLabel, {
|
|
148
|
+
context: context,
|
|
149
|
+
isUpdateCtaEnabled: isUpdateCtaEnabled,
|
|
150
|
+
showSocialProofPill: showSocialProofPill
|
|
151
|
+
})));
|
|
121
152
|
return showSocialProofPill ? /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
|
|
122
153
|
onClick: onConnectClick,
|
|
123
154
|
style: {
|
|
@@ -129,23 +160,24 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
129
160
|
xcss: socialProofPillStyles.inlineGroup
|
|
130
161
|
}, buttonContent)) : buttonContent;
|
|
131
162
|
};
|
|
132
|
-
var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function InlineCardUnauthorizedView(
|
|
133
|
-
var url =
|
|
134
|
-
id =
|
|
135
|
-
icon =
|
|
136
|
-
onAuthorise =
|
|
137
|
-
onClick =
|
|
138
|
-
isSelected =
|
|
139
|
-
|
|
140
|
-
testId =
|
|
141
|
-
|
|
142
|
-
showHoverPreview =
|
|
143
|
-
truncateInline =
|
|
144
|
-
context =
|
|
145
|
-
extensionKey =
|
|
163
|
+
var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref3) {
|
|
164
|
+
var url = _ref3.url,
|
|
165
|
+
id = _ref3.id,
|
|
166
|
+
icon = _ref3.icon,
|
|
167
|
+
onAuthorise = _ref3.onAuthorise,
|
|
168
|
+
onClick = _ref3.onClick,
|
|
169
|
+
isSelected = _ref3.isSelected,
|
|
170
|
+
_ref3$testId = _ref3.testId,
|
|
171
|
+
testId = _ref3$testId === void 0 ? 'inline-card-unauthorized-view' : _ref3$testId,
|
|
172
|
+
_ref3$showHoverPrevie = _ref3.showHoverPreview,
|
|
173
|
+
showHoverPreview = _ref3$showHoverPrevie === void 0 ? false : _ref3$showHoverPrevie,
|
|
174
|
+
truncateInline = _ref3.truncateInline,
|
|
175
|
+
context = _ref3.context,
|
|
176
|
+
extensionKey = _ref3.extensionKey;
|
|
146
177
|
var frameRef = _react.default.useRef(null);
|
|
147
178
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
148
179
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
180
|
+
var isUpdateCtaEnabled = Boolean(onAuthorise) && (0, _fg.fg)('platform_sl_3p_preauth_update_cta_fg') && (0, _isExperimentEnabled.isExperimentEnabled)('platform_sl_3p_preauth_update_cta_exp');
|
|
149
181
|
var handleConnectAccount = _react.default.useCallback(function (event) {
|
|
150
182
|
event.preventDefault();
|
|
151
183
|
event.stopPropagation();
|
|
@@ -169,6 +201,7 @@ var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function I
|
|
|
169
201
|
}), onAuthorise && /*#__PURE__*/_react.default.createElement(UnauthorisedConnectWithSocialProof, {
|
|
170
202
|
context: context,
|
|
171
203
|
extensionKey: extensionKey,
|
|
204
|
+
isUpdateCtaEnabled: isUpdateCtaEnabled,
|
|
172
205
|
testId: testId,
|
|
173
206
|
onConnectClick: handleConnectAccount
|
|
174
207
|
}));
|
|
@@ -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: "46.
|
|
22
|
+
packageVersion: "46.7.0",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
package/dist/es2019/messages.js
CHANGED
|
@@ -242,11 +242,21 @@ export const messages = defineMessages({
|
|
|
242
242
|
defaultMessage: 'Connect {context}',
|
|
243
243
|
description: 'Shown on a button to connect user external 3P account to their Atlassian account, e.g. Connect Figma'
|
|
244
244
|
},
|
|
245
|
+
connect_inline_provider_to_update: {
|
|
246
|
+
id: 'fabric.linking.connect_inline_provider_to_update.ai-non-final',
|
|
247
|
+
defaultMessage: 'Connect {context} to update',
|
|
248
|
+
description: 'Text shown on the connect button of an unauthorised inline Smart Link. {context} is replaced with the provider name, and update means updating the Smart Link preview after the account is connected.'
|
|
249
|
+
},
|
|
245
250
|
connect_inline_social_proof: {
|
|
246
251
|
id: 'fabric.linking.connect_inline_social_proof',
|
|
247
252
|
defaultMessage: 'Connect',
|
|
248
253
|
description: 'Shown on a button for unauthorised inline smart links when the social proof inline CTA experiment is active. Replaces the longer "Connect your {context} account" label.'
|
|
249
254
|
},
|
|
255
|
+
connect_inline_to_update: {
|
|
256
|
+
id: 'fabric.linking.connect_inline_to_update.ai-non-final',
|
|
257
|
+
defaultMessage: 'Connect to update',
|
|
258
|
+
description: 'Text shown on the connect button of an unauthorised inline Smart Link. It prompts the user to connect an account, and update means updating the Smart Link preview.'
|
|
259
|
+
},
|
|
250
260
|
social_proof_inline_cta_tag_high_with_context: {
|
|
251
261
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_with_context',
|
|
252
262
|
defaultMessage: '<b>{connectedPct}%</b> of your team sees {context} previews',
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "46.
|
|
7
|
+
packageVersion: "46.7.0" || ''
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -7,6 +7,8 @@ import { FormattedMessage } from 'react-intl';
|
|
|
7
7
|
import { di } from 'react-magnetic-di';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
10
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
12
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
11
13
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
12
14
|
import { messages } from '../../../messages';
|
|
@@ -28,6 +30,9 @@ const fallbackUnauthorizedIcon = () => {
|
|
|
28
30
|
*/
|
|
29
31
|
const SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD = 30;
|
|
30
32
|
const SOCIAL_PROOF_TRAIT_NAME = 'sl_3p_connected_providers_site_pct';
|
|
33
|
+
|
|
34
|
+
// useSyncExternalStore provides hydration snapshots without live cache updates.
|
|
35
|
+
const noopSubscribe = () => () => {};
|
|
31
36
|
const socialProofPillStyles = {
|
|
32
37
|
strong: "_k48pwu06",
|
|
33
38
|
root: "_2rko12b0 _1e0c1nu9 _4cvr1h6o _vchhusvi _p12f1osq _bfhk1dpa _syazazsu _y3gn18uv _1wybtjj4 _s7n4t94y _ca0qv77o _n3tdv77o _u5f312x7 _19bv12x7 _2hwx1b66 _irr3plhp _1di61gdz",
|
|
@@ -37,6 +42,24 @@ const socialProofPillStyles = {
|
|
|
37
42
|
pressableContents: "_1e0c1bgi",
|
|
38
43
|
inlineGroup: "_1e0c1nu9"
|
|
39
44
|
};
|
|
45
|
+
const ConnectButtonLabel = ({
|
|
46
|
+
context,
|
|
47
|
+
isUpdateCtaEnabled,
|
|
48
|
+
showSocialProofPill
|
|
49
|
+
}) => {
|
|
50
|
+
if (isUpdateCtaEnabled) {
|
|
51
|
+
return showSocialProofPill || !(context !== null && context !== void 0 && context.trim()) ? /*#__PURE__*/React.createElement(FormattedMessage, messages.connect_inline_to_update) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_inline_provider_to_update, {
|
|
52
|
+
values: {
|
|
53
|
+
context
|
|
54
|
+
}
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
return showSocialProofPill ? /*#__PURE__*/React.createElement(FormattedMessage, messages.connect_inline_social_proof) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
58
|
+
values: {
|
|
59
|
+
context
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
};
|
|
40
63
|
|
|
41
64
|
/**
|
|
42
65
|
* Renders the social-proof pill and Connect button using persisted percentages only ({@link getCachedProviderPctMapAndRefresh}) — no
|
|
@@ -46,11 +69,14 @@ const socialProofPillStyles = {
|
|
|
46
69
|
const UnauthorisedConnectWithSocialProof = ({
|
|
47
70
|
context,
|
|
48
71
|
extensionKey,
|
|
72
|
+
isUpdateCtaEnabled,
|
|
49
73
|
testId,
|
|
50
74
|
onConnectClick
|
|
51
75
|
}) => {
|
|
52
76
|
var _context$trim;
|
|
53
|
-
const
|
|
77
|
+
const cachedProviderPctMap = getCachedProviderPctMapAndRefresh(SOCIAL_PROOF_TRAIT_NAME);
|
|
78
|
+
const canUseCachedProviderPctMap = React.useSyncExternalStore(noopSubscribe, () => true, () => !fg('platform_sl_inline_social_proof_hydration_fix'));
|
|
79
|
+
const providerPctMap = canUseCachedProviderPctMap ? cachedProviderPctMap : null;
|
|
54
80
|
|
|
55
81
|
// Will be false if this is the first render, when we fetch traits and store to local storage,
|
|
56
82
|
// or if there wasn't our trait for it.
|
|
@@ -105,11 +131,11 @@ const UnauthorisedConnectWithSocialProof = ({
|
|
|
105
131
|
viewType: "unauthorised",
|
|
106
132
|
testId: "button-connect-account",
|
|
107
133
|
isSlimDesign: showSocialProofPill
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
})))
|
|
134
|
+
}, /*#__PURE__*/React.createElement(ConnectButtonLabel, {
|
|
135
|
+
context: context,
|
|
136
|
+
isUpdateCtaEnabled: isUpdateCtaEnabled,
|
|
137
|
+
showSocialProofPill: showSocialProofPill
|
|
138
|
+
})));
|
|
113
139
|
return showSocialProofPill ? /*#__PURE__*/React.createElement(Pressable, {
|
|
114
140
|
onClick: onConnectClick,
|
|
115
141
|
style: {
|
|
@@ -138,6 +164,7 @@ export const InlineCardUnauthorizedView = ({
|
|
|
138
164
|
const {
|
|
139
165
|
fireEvent
|
|
140
166
|
} = useAnalyticsEvents();
|
|
167
|
+
const isUpdateCtaEnabled = Boolean(onAuthorise) && fg('platform_sl_3p_preauth_update_cta_fg') && isExperimentEnabled('platform_sl_3p_preauth_update_cta_exp');
|
|
141
168
|
const handleConnectAccount = React.useCallback(event => {
|
|
142
169
|
event.preventDefault();
|
|
143
170
|
event.stopPropagation();
|
|
@@ -161,6 +188,7 @@ export const InlineCardUnauthorizedView = ({
|
|
|
161
188
|
}), onAuthorise && /*#__PURE__*/React.createElement(UnauthorisedConnectWithSocialProof, {
|
|
162
189
|
context: context,
|
|
163
190
|
extensionKey: extensionKey,
|
|
191
|
+
isUpdateCtaEnabled: isUpdateCtaEnabled,
|
|
164
192
|
testId: testId,
|
|
165
193
|
onConnectClick: handleConnectAccount
|
|
166
194
|
}));
|
|
@@ -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: "46.
|
|
12
|
+
packageVersion: "46.7.0",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
package/dist/esm/messages.js
CHANGED
|
@@ -230,11 +230,21 @@ export var messages = defineMessages({
|
|
|
230
230
|
defaultMessage: 'Connect {context}',
|
|
231
231
|
description: 'Shown on a button to connect user external 3P account to their Atlassian account, e.g. Connect Figma'
|
|
232
232
|
},
|
|
233
|
+
connect_inline_provider_to_update: {
|
|
234
|
+
id: 'fabric.linking.connect_inline_provider_to_update.ai-non-final',
|
|
235
|
+
defaultMessage: 'Connect {context} to update',
|
|
236
|
+
description: 'Text shown on the connect button of an unauthorised inline Smart Link. {context} is replaced with the provider name, and update means updating the Smart Link preview after the account is connected.'
|
|
237
|
+
},
|
|
233
238
|
connect_inline_social_proof: {
|
|
234
239
|
id: 'fabric.linking.connect_inline_social_proof',
|
|
235
240
|
defaultMessage: 'Connect',
|
|
236
241
|
description: 'Shown on a button for unauthorised inline smart links when the social proof inline CTA experiment is active. Replaces the longer "Connect your {context} account" label.'
|
|
237
242
|
},
|
|
243
|
+
connect_inline_to_update: {
|
|
244
|
+
id: 'fabric.linking.connect_inline_to_update.ai-non-final',
|
|
245
|
+
defaultMessage: 'Connect to update',
|
|
246
|
+
description: 'Text shown on the connect button of an unauthorised inline Smart Link. It prompts the user to connect an account, and update means updating the Smart Link preview.'
|
|
247
|
+
},
|
|
238
248
|
social_proof_inline_cta_tag_high_with_context: {
|
|
239
249
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_with_context',
|
|
240
250
|
defaultMessage: '<b>{connectedPct}%</b> of your team sees {context} previews',
|
|
@@ -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: "46.
|
|
7
|
+
packageVersion: "46.7.0" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -7,6 +7,8 @@ import { FormattedMessage } from 'react-intl';
|
|
|
7
7
|
import { di } from 'react-magnetic-di';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
10
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
12
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
11
13
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
12
14
|
import { messages } from '../../../messages';
|
|
@@ -28,6 +30,11 @@ var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
|
28
30
|
*/
|
|
29
31
|
var SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD = 30;
|
|
30
32
|
var SOCIAL_PROOF_TRAIT_NAME = 'sl_3p_connected_providers_site_pct';
|
|
33
|
+
|
|
34
|
+
// useSyncExternalStore provides hydration snapshots without live cache updates.
|
|
35
|
+
var noopSubscribe = function noopSubscribe() {
|
|
36
|
+
return function () {};
|
|
37
|
+
};
|
|
31
38
|
var socialProofPillStyles = {
|
|
32
39
|
strong: "_k48pwu06",
|
|
33
40
|
root: "_2rko12b0 _1e0c1nu9 _4cvr1h6o _vchhusvi _p12f1osq _bfhk1dpa _syazazsu _y3gn18uv _1wybtjj4 _s7n4t94y _ca0qv77o _n3tdv77o _u5f312x7 _19bv12x7 _2hwx1b66 _irr3plhp _1di61gdz",
|
|
@@ -37,19 +44,43 @@ var socialProofPillStyles = {
|
|
|
37
44
|
pressableContents: "_1e0c1bgi",
|
|
38
45
|
inlineGroup: "_1e0c1nu9"
|
|
39
46
|
};
|
|
47
|
+
var ConnectButtonLabel = function ConnectButtonLabel(_ref) {
|
|
48
|
+
var context = _ref.context,
|
|
49
|
+
isUpdateCtaEnabled = _ref.isUpdateCtaEnabled,
|
|
50
|
+
showSocialProofPill = _ref.showSocialProofPill;
|
|
51
|
+
if (isUpdateCtaEnabled) {
|
|
52
|
+
return showSocialProofPill || !(context !== null && context !== void 0 && context.trim()) ? /*#__PURE__*/React.createElement(FormattedMessage, messages.connect_inline_to_update) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_inline_provider_to_update, {
|
|
53
|
+
values: {
|
|
54
|
+
context: context
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
return showSocialProofPill ? /*#__PURE__*/React.createElement(FormattedMessage, messages.connect_inline_social_proof) : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
59
|
+
values: {
|
|
60
|
+
context: context
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
};
|
|
40
64
|
|
|
41
65
|
/**
|
|
42
66
|
* Renders the social-proof pill and Connect button using persisted percentages only ({@link getCachedProviderPctMapAndRefresh}) — no
|
|
43
67
|
* loading skeleton; either the cached percentage is shown or the legacy long connect label is used.
|
|
44
68
|
* Only mounted when the card has an authorisation action.
|
|
45
69
|
*/
|
|
46
|
-
var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialProof(
|
|
70
|
+
var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialProof(_ref2) {
|
|
47
71
|
var _context$trim;
|
|
48
|
-
var context =
|
|
49
|
-
extensionKey =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
72
|
+
var context = _ref2.context,
|
|
73
|
+
extensionKey = _ref2.extensionKey,
|
|
74
|
+
isUpdateCtaEnabled = _ref2.isUpdateCtaEnabled,
|
|
75
|
+
testId = _ref2.testId,
|
|
76
|
+
onConnectClick = _ref2.onConnectClick;
|
|
77
|
+
var cachedProviderPctMap = getCachedProviderPctMapAndRefresh(SOCIAL_PROOF_TRAIT_NAME);
|
|
78
|
+
var canUseCachedProviderPctMap = React.useSyncExternalStore(noopSubscribe, function () {
|
|
79
|
+
return true;
|
|
80
|
+
}, function () {
|
|
81
|
+
return !fg('platform_sl_inline_social_proof_hydration_fix');
|
|
82
|
+
});
|
|
83
|
+
var providerPctMap = canUseCachedProviderPctMap ? cachedProviderPctMap : null;
|
|
53
84
|
|
|
54
85
|
// Will be false if this is the first render, when we fetch traits and store to local storage,
|
|
55
86
|
// or if there wasn't our trait for it.
|
|
@@ -106,11 +137,11 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
106
137
|
viewType: "unauthorised",
|
|
107
138
|
testId: "button-connect-account",
|
|
108
139
|
isSlimDesign: showSocialProofPill
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
})))
|
|
140
|
+
}, /*#__PURE__*/React.createElement(ConnectButtonLabel, {
|
|
141
|
+
context: context,
|
|
142
|
+
isUpdateCtaEnabled: isUpdateCtaEnabled,
|
|
143
|
+
showSocialProofPill: showSocialProofPill
|
|
144
|
+
})));
|
|
114
145
|
return showSocialProofPill ? /*#__PURE__*/React.createElement(Pressable, {
|
|
115
146
|
onClick: onConnectClick,
|
|
116
147
|
style: {
|
|
@@ -122,23 +153,24 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
122
153
|
xcss: socialProofPillStyles.inlineGroup
|
|
123
154
|
}, buttonContent)) : buttonContent;
|
|
124
155
|
};
|
|
125
|
-
export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(
|
|
126
|
-
var url =
|
|
127
|
-
id =
|
|
128
|
-
icon =
|
|
129
|
-
onAuthorise =
|
|
130
|
-
onClick =
|
|
131
|
-
isSelected =
|
|
132
|
-
|
|
133
|
-
testId =
|
|
134
|
-
|
|
135
|
-
showHoverPreview =
|
|
136
|
-
truncateInline =
|
|
137
|
-
context =
|
|
138
|
-
extensionKey =
|
|
156
|
+
export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref3) {
|
|
157
|
+
var url = _ref3.url,
|
|
158
|
+
id = _ref3.id,
|
|
159
|
+
icon = _ref3.icon,
|
|
160
|
+
onAuthorise = _ref3.onAuthorise,
|
|
161
|
+
onClick = _ref3.onClick,
|
|
162
|
+
isSelected = _ref3.isSelected,
|
|
163
|
+
_ref3$testId = _ref3.testId,
|
|
164
|
+
testId = _ref3$testId === void 0 ? 'inline-card-unauthorized-view' : _ref3$testId,
|
|
165
|
+
_ref3$showHoverPrevie = _ref3.showHoverPreview,
|
|
166
|
+
showHoverPreview = _ref3$showHoverPrevie === void 0 ? false : _ref3$showHoverPrevie,
|
|
167
|
+
truncateInline = _ref3.truncateInline,
|
|
168
|
+
context = _ref3.context,
|
|
169
|
+
extensionKey = _ref3.extensionKey;
|
|
139
170
|
var frameRef = React.useRef(null);
|
|
140
171
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
141
172
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
173
|
+
var isUpdateCtaEnabled = Boolean(onAuthorise) && fg('platform_sl_3p_preauth_update_cta_fg') && isExperimentEnabled('platform_sl_3p_preauth_update_cta_exp');
|
|
142
174
|
var handleConnectAccount = React.useCallback(function (event) {
|
|
143
175
|
event.preventDefault();
|
|
144
176
|
event.stopPropagation();
|
|
@@ -162,6 +194,7 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
|
|
|
162
194
|
}), onAuthorise && /*#__PURE__*/React.createElement(UnauthorisedConnectWithSocialProof, {
|
|
163
195
|
context: context,
|
|
164
196
|
extensionKey: extensionKey,
|
|
197
|
+
isUpdateCtaEnabled: isUpdateCtaEnabled,
|
|
165
198
|
testId: testId,
|
|
166
199
|
onConnectClick: handleConnectAccount
|
|
167
200
|
}));
|
|
@@ -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: "46.
|
|
15
|
+
packageVersion: "46.7.0",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
3
|
export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights' | 'rovo_prompt_message_summarize_document' | 'rovo_prompt_message_summarize_presentation' | 'rovo_prompt_button_explain_code' | 'rovo_prompt_message_explain_code' | 'rovo_prompt_button_catch_up' | 'rovo_prompt_message_catch_up' | 'rovo_prompt_button_salesforce_prep' | 'rovo_prompt_message_salesforce_prep';
|
|
4
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summary_error_generic_rebrand' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action_rebrand' | 'ai_summary_action_description' | 'ai_summary_action_description_rebrand' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_link_account_embed_carousel_button_next' | 'connect_link_account_embed_carousel_dot_label' | 'connect_link_account_embed_carousel_dot_row_label' | 'connect_link_account_embed_carousel_sl_description' | 'connect_link_account_embed_carousel_sl_title' | 'connect_link_account_embed_carousel_rovo_description' | 'connect_link_account_embed_carousel_rovo_title' | 'connect_link_account_embed_carousel_rovochat_description' | 'connect_link_account_embed_carousel_rovochat_title' | 'connect_link_account_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | 'connect_3p_account' | 'connect_inline_social_proof' | 'social_proof_inline_cta_tag_high_with_context' | 'social_proof_inline_cta_tag_high_no_context' | 'social_proof_inline_cta_tag_low_with_context' | 'social_proof_inline_cta_tag_low_no_context' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'rovo_actions_explore' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | 'view' | 'viewIn' | 'viewInProvider' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify' | 'rovo_summary_loading' | 'ai_disclaimer' | 'rovo_unauthorised_title' | 'rovo_unauthorised_title_no_provider' | 'rovo_unauthorised_feature_clear_link_names' | 'rovo_unauthorised_feature_understand_linked_docs' | 'rovo_unauthorised_feature_go_deeper_smart_suggestions' | 'rovo_unauthorised_connect_account' | 'rovo_unauthorised_not_now' | 'rovo_chat_action_section_header' | 'rovo_prompt_button_summarize_this' | 'rovo_prompt_button_ask_a_specific_question' | 'rovo_prompt_button_show_me_whats_relevant' | RovoChatActionMessageKey | 'pre_auth_block_social_proof_not_low' | 'pre_auth_block_social_proof_low';
|
|
4
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summary_error_generic_rebrand' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action_rebrand' | 'ai_summary_action_description' | 'ai_summary_action_description_rebrand' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_link_account_embed_carousel_button_next' | 'connect_link_account_embed_carousel_dot_label' | 'connect_link_account_embed_carousel_dot_row_label' | 'connect_link_account_embed_carousel_sl_description' | 'connect_link_account_embed_carousel_sl_title' | 'connect_link_account_embed_carousel_rovo_description' | 'connect_link_account_embed_carousel_rovo_title' | 'connect_link_account_embed_carousel_rovochat_description' | 'connect_link_account_embed_carousel_rovochat_title' | 'connect_link_account_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | 'connect_3p_account' | 'connect_inline_provider_to_update' | 'connect_inline_social_proof' | 'connect_inline_to_update' | 'social_proof_inline_cta_tag_high_with_context' | 'social_proof_inline_cta_tag_high_no_context' | 'social_proof_inline_cta_tag_low_with_context' | 'social_proof_inline_cta_tag_low_no_context' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'rovo_actions_explore' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | 'view' | 'viewIn' | 'viewInProvider' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify' | 'rovo_summary_loading' | 'ai_disclaimer' | 'rovo_unauthorised_title' | 'rovo_unauthorised_title_no_provider' | 'rovo_unauthorised_feature_clear_link_names' | 'rovo_unauthorised_feature_understand_linked_docs' | 'rovo_unauthorised_feature_go_deeper_smart_suggestions' | 'rovo_unauthorised_connect_account' | 'rovo_unauthorised_not_now' | 'rovo_chat_action_section_header' | 'rovo_prompt_button_summarize_this' | 'rovo_prompt_button_ask_a_specific_question' | 'rovo_prompt_button_show_me_whats_relevant' | RovoChatActionMessageKey | 'pre_auth_block_social_proof_not_low' | 'pre_auth_block_social_proof_low';
|
|
5
5
|
type Messages = {
|
|
6
6
|
[K in MessageKey]: MessageDescriptor;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "46.7.
|
|
3
|
+
"version": "46.7.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
81
81
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
82
82
|
"@atlaskit/popup": "^9.0.0",
|
|
83
|
-
"@atlaskit/primitives": "^22.
|
|
83
|
+
"@atlaskit/primitives": "^22.6.0",
|
|
84
84
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
85
85
|
"@atlaskit/react-ufo": "^8.1.0",
|
|
86
86
|
"@atlaskit/rovo-triggers": "^12.3.0",
|
|
@@ -207,6 +207,9 @@
|
|
|
207
207
|
"platform_sl_3p_preauth_better_hovercard_killswitch": {
|
|
208
208
|
"type": "boolean"
|
|
209
209
|
},
|
|
210
|
+
"platform_sl_3p_preauth_update_cta_fg": {
|
|
211
|
+
"type": "boolean"
|
|
212
|
+
},
|
|
210
213
|
"platform_lp_use_generator_icon_for_provider": {
|
|
211
214
|
"type": "boolean"
|
|
212
215
|
},
|
|
@@ -229,6 +232,9 @@
|
|
|
229
232
|
"social-proof-3p-unauth-block-fg": {
|
|
230
233
|
"type": "boolean"
|
|
231
234
|
},
|
|
235
|
+
"platform_sl_inline_social_proof_hydration_fix": {
|
|
236
|
+
"type": "boolean"
|
|
237
|
+
},
|
|
232
238
|
"platform_sl_incoming_outgoing_tenant_info_killswitch": {
|
|
233
239
|
"type": "boolean"
|
|
234
240
|
},
|