@atlaskit/smart-card 44.16.6 → 44.18.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 +28 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-social-proof-message-low-tier--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-social-proof-message-not-low-tier--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-but-no-context-available--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-but-low-percentage--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/cjs/messages.js +13 -8
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +11 -8
- package/dist/cjs/view/EmbedModal/components/link-info/link-info-button/index.js +1 -4
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +4 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-social-proof-message-low-tier--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-social-proof-message-not-low-tier--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-but-no-context-available--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-but-low-percentage--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/es2019/messages.js +13 -8
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +11 -8
- package/dist/es2019/view/EmbedModal/components/link-info/link-info-button/index.js +1 -5
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +4 -4
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-social-proof-message-low-tier--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-social-proof-message-not-low-tier--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-but-no-context-available--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-but-low-percentage--default--platform-sl-3p-preauth-social-proof-inline-cta-true.png +2 -2
- package/dist/esm/messages.js +13 -8
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.js +11 -8
- package/dist/esm/view/EmbedModal/components/link-info/link-info-button/index.js +1 -4
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +4 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/link-info/link-info-button/index.d.ts +1 -2
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/components/link-info/link-info-button/index.d.ts +1 -2
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`f0c69f3f568d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f0c69f3f568d1) -
|
|
8
|
+
NAVX-4957 Updating a11y labels for embed modal open in product/provider
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`015ffd9a2e349`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/015ffd9a2e349) -
|
|
13
|
+
Updated unauthorised Smart Link social proof copy for inline and block card prompts.
|
|
14
|
+
|
|
15
|
+
All changes behind feature gates: `platform_sl_3p_preauth_soc_proof_inline_killswitch`,
|
|
16
|
+
`platform_sl_3p_preauth_social_proof_inline_cta`, and `social-proof-3p-unauth-block-fg`.
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
20
|
+
## 44.17.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- [`fbb51c73ed426`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fbb51c73ed426) -
|
|
25
|
+
Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 44.16.6
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ecf23d8ca9430e7a7822d563282c7e01e522031d4aed43e2b2a4358ca3c3c863
|
|
3
|
+
size 16362
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ea60c642e1bb7dc884beb55e9efb697bcd62bae6d099c4f249f969a29bc59a3f
|
|
3
|
+
size 16959
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:96ef155029fce86ddc1ea27e65061e7294033ccf5777121c8f1e5ee19efe7714
|
|
3
|
+
size 19679
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:815b854a0a5c3cd0c1b66544a2ab4760d3b3b97a49adf1acd1424ae51eb2f61b
|
|
3
|
+
size 18202
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2d08c03cff5d965f20d87dc4f1b03ebd971297fc4c3ed1eb62139658f1ddb8e5
|
|
3
|
+
size 19891
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:0c35266458c27057a961dd7d6e33ff9a7f0f646743e24cd53798a9935b4fd2ff
|
|
3
|
+
size 18959
|
package/dist/cjs/messages.js
CHANGED
|
@@ -198,22 +198,22 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
198
198
|
},
|
|
199
199
|
social_proof_inline_cta_tag_high_with_context: {
|
|
200
200
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_with_context',
|
|
201
|
-
defaultMessage: '<b>{connectedPct}%</b> of your team
|
|
202
|
-
description: 'Social-proof tag pill beside the shortcut "Connect" on an unauthorised inline smart link when adoption is not in the exploratory range. {connectedPct} is the approximate share
|
|
201
|
+
defaultMessage: '<b>{connectedPct}%</b> of your team sees {context} previews',
|
|
202
|
+
description: 'Social-proof tag pill beside the shortcut "Connect" on an unauthorised inline smart link when adoption is not in the exploratory range. {connectedPct} is the approximate share seeing previews for the integration; {context} is the provider display name.'
|
|
203
203
|
},
|
|
204
204
|
social_proof_inline_cta_tag_high_no_context: {
|
|
205
205
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_no_context',
|
|
206
|
-
defaultMessage: '<b>{connectedPct}%</b> of your team previews
|
|
207
|
-
description: 'Social-proof tag pill when adoption is above the exploratory threshold and no provider display name is available; {connectedPct} is the approximate share
|
|
206
|
+
defaultMessage: '<b>{connectedPct}%</b> of your team sees richer previews',
|
|
207
|
+
description: 'Social-proof tag pill when adoption is above the exploratory threshold and no provider display name is available; {connectedPct} is the approximate share seeing richer previews.'
|
|
208
208
|
},
|
|
209
209
|
social_proof_inline_cta_tag_low_with_context: {
|
|
210
210
|
id: 'fabric.linking.social_proof_inline_cta_tag_low_with_context',
|
|
211
|
-
defaultMessage: 'Your team
|
|
211
|
+
defaultMessage: 'Your team sees richer {context} previews',
|
|
212
212
|
description: 'Social-proof tag pill when share is below the percentage headline threshold; shown only when a provider display name is available. Omit the pill entirely when personalization is unavailable or the provider name is unknown.'
|
|
213
213
|
},
|
|
214
214
|
social_proof_inline_cta_tag_low_no_context: {
|
|
215
215
|
id: 'fabric.linking.social_proof_inline_cta_tag_low_no_context',
|
|
216
|
-
defaultMessage: 'Your team
|
|
216
|
+
defaultMessage: 'Your team sees richer previews',
|
|
217
217
|
description: 'Social-proof tag pill for the case when neither percentage nor provider display name are available.'
|
|
218
218
|
},
|
|
219
219
|
connect_unauthorised_account_description: {
|
|
@@ -681,6 +681,11 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
681
681
|
defaultMessage: 'View in',
|
|
682
682
|
description: 'We have a link in our preview modals to the original document. This text goes before the provider name'
|
|
683
683
|
},
|
|
684
|
+
viewInProvider: {
|
|
685
|
+
id: 'fabric.linking.viewinprovider',
|
|
686
|
+
defaultMessage: 'View in {providerName}',
|
|
687
|
+
description: 'We have a link in our preview modals to the original document. This text tells the user where it will open'
|
|
688
|
+
},
|
|
684
689
|
viewOriginal: {
|
|
685
690
|
id: 'fabric.linking.srclinkunknown',
|
|
686
691
|
defaultMessage: 'View Original',
|
|
@@ -1085,12 +1090,12 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
1085
1090
|
// TODO: remove when social-proof-3p-unauth-block-fg is cleaned up
|
|
1086
1091
|
pre_auth_block_social_proof_not_low: {
|
|
1087
1092
|
id: 'fabric.linking.pre_auth_block_social_proof_not_low',
|
|
1088
|
-
defaultMessage: '<b>{percentage}%</b> of your team
|
|
1093
|
+
defaultMessage: '<b>{percentage}%</b> of your team sees <b>{provider}</b> previews.',
|
|
1089
1094
|
description: 'Social proof message shown on unauthorized 3P block cards when 30% or more of the tenant has connected the provider. {percentage} is a number, {provider} is the 3P app name (e.g. OneDrive).'
|
|
1090
1095
|
},
|
|
1091
1096
|
pre_auth_block_social_proof_low: {
|
|
1092
1097
|
id: 'fabric.linking.pre_auth_block_social_proof_low',
|
|
1093
|
-
defaultMessage: 'Your team
|
|
1098
|
+
defaultMessage: 'Your team sees richer <b>{provider}</b> previews.',
|
|
1094
1099
|
description: 'Social proof message shown on unauthorized 3P block cards when less than 30% of the tenant has connected the provider. {provider} is the 3P app name (e.g. OneDrive).'
|
|
1095
1100
|
}
|
|
1096
1101
|
});
|
|
@@ -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: "44.
|
|
14
|
+
packageVersion: "44.17.0" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -17,6 +17,7 @@ var _fullscreenEnter = _interopRequireDefault(require("@atlaskit/icon/core/fulls
|
|
|
17
17
|
var _fullscreenExit = _interopRequireDefault(require("@atlaskit/icon/core/fullscreen-exit"));
|
|
18
18
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
19
19
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
21
22
|
var _messages = require("../../../../messages");
|
|
22
23
|
var _Icon = require("../../../common/Icon");
|
|
@@ -57,13 +58,16 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
57
58
|
color: "currentColor"
|
|
58
59
|
});
|
|
59
60
|
},
|
|
60
|
-
label: _messages.messages.download,
|
|
61
|
+
label: formatMessage(_messages.messages.download),
|
|
61
62
|
onClick: onDownloadButtonClick,
|
|
62
63
|
testId: "".concat(testId, "-download")
|
|
63
64
|
});
|
|
64
|
-
}, [onDownloadButtonClick, testId]);
|
|
65
|
+
}, [onDownloadButtonClick, testId, formatMessage]);
|
|
65
66
|
var urlButton = (0, _react.useMemo)(function () {
|
|
66
67
|
if (onViewButtonClick) {
|
|
68
|
+
var label = providerName && (0, _platformFeatureFlags.fg)('navx-4957-sl-embed-modal-a11y-label') ? formatMessage(_messages.messages.viewInProvider, {
|
|
69
|
+
providerName: providerName
|
|
70
|
+
}) : formatMessage(_messages.messages.viewOriginal);
|
|
67
71
|
var content = providerName ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.viewIn), " ", providerName) : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.viewOriginal);
|
|
68
72
|
return /*#__PURE__*/_react.default.createElement(_linkInfoButton.default, {
|
|
69
73
|
content: content,
|
|
@@ -74,14 +78,13 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
74
78
|
color: "currentColor"
|
|
75
79
|
});
|
|
76
80
|
},
|
|
77
|
-
label:
|
|
81
|
+
label: label,
|
|
78
82
|
onClick: onViewButtonClick,
|
|
79
83
|
testId: "".concat(testId, "-url"),
|
|
80
|
-
role: 'link'
|
|
81
|
-
"aria-label": _messages.messages.viewOriginal
|
|
84
|
+
role: 'link'
|
|
82
85
|
});
|
|
83
86
|
}
|
|
84
|
-
}, [onViewButtonClick, providerName, testId]);
|
|
87
|
+
}, [onViewButtonClick, providerName, testId, formatMessage]);
|
|
85
88
|
var sizeButton = (0, _react.useMemo)(function () {
|
|
86
89
|
var isFullScreen = size === _constants.MAX_MODAL_SIZE;
|
|
87
90
|
var message = isFullScreen ? _messages.messages.preview_min_size : _messages.messages.preview_max_size;
|
|
@@ -99,11 +102,11 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
99
102
|
icon: function icon() {
|
|
100
103
|
return _icon;
|
|
101
104
|
},
|
|
102
|
-
label: message,
|
|
105
|
+
label: formatMessage(message),
|
|
103
106
|
onClick: onResizeButtonClick,
|
|
104
107
|
testId: "".concat(testId, "-resize")
|
|
105
108
|
});
|
|
106
|
-
}, [onResizeButtonClick, size, testId]);
|
|
109
|
+
}, [onResizeButtonClick, size, testId, formatMessage]);
|
|
107
110
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
108
111
|
className: (0, _runtime.ax)(["_zulpu2gc _1e0c1txw _19bv1ejb _u5f31ejb _ca0q1ejb _n3tdpxbi _1wpz1fhb _4t3i1tcg"])
|
|
109
112
|
}, icon && /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactIntl = require("react-intl");
|
|
10
9
|
var _new = require("@atlaskit/button/new");
|
|
11
10
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
12
11
|
var _useLinkClicked = require("../../../../../state/analytics/useLinkClicked");
|
|
@@ -18,8 +17,6 @@ var LinkInfoButton = function LinkInfoButton(_ref) {
|
|
|
18
17
|
testId = _ref.testId,
|
|
19
18
|
role = _ref.role;
|
|
20
19
|
var onMouseDown = (0, _useLinkClicked.useMouseDownEvent)();
|
|
21
|
-
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
22
|
-
formatMessage = _useIntl.formatMessage;
|
|
23
20
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
24
21
|
content: content,
|
|
25
22
|
hideTooltipOnClick: true,
|
|
@@ -28,7 +25,7 @@ var LinkInfoButton = function LinkInfoButton(_ref) {
|
|
|
28
25
|
}, /*#__PURE__*/_react.default.createElement(_new.IconButton, {
|
|
29
26
|
appearance: "subtle",
|
|
30
27
|
icon: icon,
|
|
31
|
-
label:
|
|
28
|
+
label: label,
|
|
32
29
|
onClick: onClick,
|
|
33
30
|
onMouseDown: onMouseDown,
|
|
34
31
|
testId: "".concat(testId, "-button"),
|
|
@@ -81,10 +81,10 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
// As long as pill is shown it will be one of four messages depending on percent and provider presence:
|
|
84
|
-
// - 45% of your team
|
|
85
|
-
// - 45% of your team previews
|
|
86
|
-
// - Your team
|
|
87
|
-
// - Your team
|
|
84
|
+
// - 45% of your team sees Figma previews
|
|
85
|
+
// - 45% of your team sees richer previews
|
|
86
|
+
// - Your team sees richer Figma previews
|
|
87
|
+
// - Your team sees richer previews
|
|
88
88
|
var socialProofPillContent = isSocialProofUsageHighEnough ? hasProviderDisplayName ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _messages.messages.social_proof_inline_cta_tag_high_with_context, {
|
|
89
89
|
values: {
|
|
90
90
|
connectedPct: connectedPct,
|
|
@@ -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: "44.
|
|
22
|
+
packageVersion: "44.17.0",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ecf23d8ca9430e7a7822d563282c7e01e522031d4aed43e2b2a4358ca3c3c863
|
|
3
|
+
size 16362
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ea60c642e1bb7dc884beb55e9efb697bcd62bae6d099c4f249f969a29bc59a3f
|
|
3
|
+
size 16959
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:96ef155029fce86ddc1ea27e65061e7294033ccf5777121c8f1e5ee19efe7714
|
|
3
|
+
size 19679
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:815b854a0a5c3cd0c1b66544a2ab4760d3b3b97a49adf1acd1424ae51eb2f61b
|
|
3
|
+
size 18202
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2d08c03cff5d965f20d87dc4f1b03ebd971297fc4c3ed1eb62139658f1ddb8e5
|
|
3
|
+
size 19891
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:0c35266458c27057a961dd7d6e33ff9a7f0f646743e24cd53798a9935b4fd2ff
|
|
3
|
+
size 18959
|
package/dist/es2019/messages.js
CHANGED
|
@@ -192,22 +192,22 @@ export const messages = defineMessages({
|
|
|
192
192
|
},
|
|
193
193
|
social_proof_inline_cta_tag_high_with_context: {
|
|
194
194
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_with_context',
|
|
195
|
-
defaultMessage: '<b>{connectedPct}%</b> of your team
|
|
196
|
-
description: 'Social-proof tag pill beside the shortcut "Connect" on an unauthorised inline smart link when adoption is not in the exploratory range. {connectedPct} is the approximate share
|
|
195
|
+
defaultMessage: '<b>{connectedPct}%</b> of your team sees {context} previews',
|
|
196
|
+
description: 'Social-proof tag pill beside the shortcut "Connect" on an unauthorised inline smart link when adoption is not in the exploratory range. {connectedPct} is the approximate share seeing previews for the integration; {context} is the provider display name.'
|
|
197
197
|
},
|
|
198
198
|
social_proof_inline_cta_tag_high_no_context: {
|
|
199
199
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_no_context',
|
|
200
|
-
defaultMessage: '<b>{connectedPct}%</b> of your team previews
|
|
201
|
-
description: 'Social-proof tag pill when adoption is above the exploratory threshold and no provider display name is available; {connectedPct} is the approximate share
|
|
200
|
+
defaultMessage: '<b>{connectedPct}%</b> of your team sees richer previews',
|
|
201
|
+
description: 'Social-proof tag pill when adoption is above the exploratory threshold and no provider display name is available; {connectedPct} is the approximate share seeing richer previews.'
|
|
202
202
|
},
|
|
203
203
|
social_proof_inline_cta_tag_low_with_context: {
|
|
204
204
|
id: 'fabric.linking.social_proof_inline_cta_tag_low_with_context',
|
|
205
|
-
defaultMessage: 'Your team
|
|
205
|
+
defaultMessage: 'Your team sees richer {context} previews',
|
|
206
206
|
description: 'Social-proof tag pill when share is below the percentage headline threshold; shown only when a provider display name is available. Omit the pill entirely when personalization is unavailable or the provider name is unknown.'
|
|
207
207
|
},
|
|
208
208
|
social_proof_inline_cta_tag_low_no_context: {
|
|
209
209
|
id: 'fabric.linking.social_proof_inline_cta_tag_low_no_context',
|
|
210
|
-
defaultMessage: 'Your team
|
|
210
|
+
defaultMessage: 'Your team sees richer previews',
|
|
211
211
|
description: 'Social-proof tag pill for the case when neither percentage nor provider display name are available.'
|
|
212
212
|
},
|
|
213
213
|
connect_unauthorised_account_description: {
|
|
@@ -675,6 +675,11 @@ export const messages = defineMessages({
|
|
|
675
675
|
defaultMessage: 'View in',
|
|
676
676
|
description: 'We have a link in our preview modals to the original document. This text goes before the provider name'
|
|
677
677
|
},
|
|
678
|
+
viewInProvider: {
|
|
679
|
+
id: 'fabric.linking.viewinprovider',
|
|
680
|
+
defaultMessage: 'View in {providerName}',
|
|
681
|
+
description: 'We have a link in our preview modals to the original document. This text tells the user where it will open'
|
|
682
|
+
},
|
|
678
683
|
viewOriginal: {
|
|
679
684
|
id: 'fabric.linking.srclinkunknown',
|
|
680
685
|
defaultMessage: 'View Original',
|
|
@@ -1079,12 +1084,12 @@ export const messages = defineMessages({
|
|
|
1079
1084
|
// TODO: remove when social-proof-3p-unauth-block-fg is cleaned up
|
|
1080
1085
|
pre_auth_block_social_proof_not_low: {
|
|
1081
1086
|
id: 'fabric.linking.pre_auth_block_social_proof_not_low',
|
|
1082
|
-
defaultMessage: '<b>{percentage}%</b> of your team
|
|
1087
|
+
defaultMessage: '<b>{percentage}%</b> of your team sees <b>{provider}</b> previews.',
|
|
1083
1088
|
description: 'Social proof message shown on unauthorized 3P block cards when 30% or more of the tenant has connected the provider. {percentage} is a number, {provider} is the 3P app name (e.g. OneDrive).'
|
|
1084
1089
|
},
|
|
1085
1090
|
pre_auth_block_social_proof_low: {
|
|
1086
1091
|
id: 'fabric.linking.pre_auth_block_social_proof_low',
|
|
1087
|
-
defaultMessage: 'Your team
|
|
1092
|
+
defaultMessage: 'Your team sees richer <b>{provider}</b> previews.',
|
|
1088
1093
|
description: 'Social proof message shown on unauthorized 3P block cards when less than 30% of the tenant has connected the provider. {provider} is the 3P app name (e.g. OneDrive).'
|
|
1089
1094
|
}
|
|
1090
1095
|
});
|
|
@@ -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: "44.
|
|
5
|
+
packageVersion: "44.17.0" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -9,6 +9,7 @@ import VidFullScreenOnIcon from '@atlaskit/icon/core/fullscreen-enter';
|
|
|
9
9
|
import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
|
|
10
10
|
import ShortcutIcon from '@atlaskit/icon/core/link-external';
|
|
11
11
|
import { CloseButton, useModal } from '@atlaskit/modal-dialog';
|
|
12
|
+
import { fg } from "@atlaskit/platform-feature-flags";
|
|
12
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
14
|
import { messages } from '../../../../messages';
|
|
14
15
|
import { Icon } from '../../../common/Icon';
|
|
@@ -48,12 +49,15 @@ const LinkInfo = ({
|
|
|
48
49
|
spacing: "spacious",
|
|
49
50
|
color: "currentColor"
|
|
50
51
|
}),
|
|
51
|
-
label: messages.download,
|
|
52
|
+
label: formatMessage(messages.download),
|
|
52
53
|
onClick: onDownloadButtonClick,
|
|
53
54
|
testId: `${testId}-download`
|
|
54
|
-
}), [onDownloadButtonClick, testId]);
|
|
55
|
+
}), [onDownloadButtonClick, testId, formatMessage]);
|
|
55
56
|
const urlButton = useMemo(() => {
|
|
56
57
|
if (onViewButtonClick) {
|
|
58
|
+
const label = providerName && fg('navx-4957-sl-embed-modal-a11y-label') ? formatMessage(messages.viewInProvider, {
|
|
59
|
+
providerName
|
|
60
|
+
}) : formatMessage(messages.viewOriginal);
|
|
57
61
|
const content = providerName ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.viewIn), " ", providerName) : /*#__PURE__*/React.createElement(FormattedMessage, messages.viewOriginal);
|
|
58
62
|
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
59
63
|
content: content,
|
|
@@ -62,14 +66,13 @@ const LinkInfo = ({
|
|
|
62
66
|
spacing: "spacious",
|
|
63
67
|
color: "currentColor"
|
|
64
68
|
}),
|
|
65
|
-
label:
|
|
69
|
+
label: label,
|
|
66
70
|
onClick: onViewButtonClick,
|
|
67
71
|
testId: `${testId}-url`,
|
|
68
|
-
role: 'link'
|
|
69
|
-
"aria-label": messages.viewOriginal
|
|
72
|
+
role: 'link'
|
|
70
73
|
});
|
|
71
74
|
}
|
|
72
|
-
}, [onViewButtonClick, providerName, testId]);
|
|
75
|
+
}, [onViewButtonClick, providerName, testId, formatMessage]);
|
|
73
76
|
const sizeButton = useMemo(() => {
|
|
74
77
|
const isFullScreen = size === MAX_MODAL_SIZE;
|
|
75
78
|
const message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
|
|
@@ -85,11 +88,11 @@ const LinkInfo = ({
|
|
|
85
88
|
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
86
89
|
content: /*#__PURE__*/React.createElement(FormattedMessage, message),
|
|
87
90
|
icon: () => icon,
|
|
88
|
-
label: message,
|
|
91
|
+
label: formatMessage(message),
|
|
89
92
|
onClick: onResizeButtonClick,
|
|
90
93
|
testId: `${testId}-resize`
|
|
91
94
|
});
|
|
92
|
-
}, [onResizeButtonClick, size, testId]);
|
|
95
|
+
}, [onResizeButtonClick, size, testId, formatMessage]);
|
|
93
96
|
return /*#__PURE__*/React.createElement("div", {
|
|
94
97
|
className: ax(["_zulpu2gc _1e0c1txw _19bv1ejb _u5f31ejb _ca0q1ejb _n3tdpxbi _1wpz1fhb _4t3i1tcg"])
|
|
95
98
|
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
2
|
import { IconButton } from '@atlaskit/button/new';
|
|
4
3
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
4
|
import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
|
|
@@ -12,9 +11,6 @@ const LinkInfoButton = ({
|
|
|
12
11
|
role
|
|
13
12
|
}) => {
|
|
14
13
|
const onMouseDown = useMouseDownEvent();
|
|
15
|
-
const {
|
|
16
|
-
formatMessage
|
|
17
|
-
} = useIntl();
|
|
18
14
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
19
15
|
content: content,
|
|
20
16
|
hideTooltipOnClick: true,
|
|
@@ -23,7 +19,7 @@ const LinkInfoButton = ({
|
|
|
23
19
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
24
20
|
appearance: "subtle",
|
|
25
21
|
icon: icon,
|
|
26
|
-
label:
|
|
22
|
+
label: label,
|
|
27
23
|
onClick: onClick,
|
|
28
24
|
onMouseDown: onMouseDown,
|
|
29
25
|
testId: `${testId}-button`,
|
|
@@ -73,10 +73,10 @@ const UnauthorisedConnectWithSocialProof = ({
|
|
|
73
73
|
}, chunks);
|
|
74
74
|
|
|
75
75
|
// As long as pill is shown it will be one of four messages depending on percent and provider presence:
|
|
76
|
-
// - 45% of your team
|
|
77
|
-
// - 45% of your team previews
|
|
78
|
-
// - Your team
|
|
79
|
-
// - Your team
|
|
76
|
+
// - 45% of your team sees Figma previews
|
|
77
|
+
// - 45% of your team sees richer previews
|
|
78
|
+
// - Your team sees richer Figma previews
|
|
79
|
+
// - Your team sees richer previews
|
|
80
80
|
const socialProofPillContent = isSocialProofUsageHighEnough ? hasProviderDisplayName ? /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.social_proof_inline_cta_tag_high_with_context, {
|
|
81
81
|
values: {
|
|
82
82
|
connectedPct,
|
|
@@ -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: "44.
|
|
12
|
+
packageVersion: "44.17.0",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ecf23d8ca9430e7a7822d563282c7e01e522031d4aed43e2b2a4358ca3c3c863
|
|
3
|
+
size 16362
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ea60c642e1bb7dc884beb55e9efb697bcd62bae6d099c4f249f969a29bc59a3f
|
|
3
|
+
size 16959
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:96ef155029fce86ddc1ea27e65061e7294033ccf5777121c8f1e5ee19efe7714
|
|
3
|
+
size 19679
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:815b854a0a5c3cd0c1b66544a2ab4760d3b3b97a49adf1acd1424ae51eb2f61b
|
|
3
|
+
size 18202
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2d08c03cff5d965f20d87dc4f1b03ebd971297fc4c3ed1eb62139658f1ddb8e5
|
|
3
|
+
size 19891
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:0c35266458c27057a961dd7d6e33ff9a7f0f646743e24cd53798a9935b4fd2ff
|
|
3
|
+
size 18959
|
package/dist/esm/messages.js
CHANGED
|
@@ -192,22 +192,22 @@ export var messages = defineMessages({
|
|
|
192
192
|
},
|
|
193
193
|
social_proof_inline_cta_tag_high_with_context: {
|
|
194
194
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_with_context',
|
|
195
|
-
defaultMessage: '<b>{connectedPct}%</b> of your team
|
|
196
|
-
description: 'Social-proof tag pill beside the shortcut "Connect" on an unauthorised inline smart link when adoption is not in the exploratory range. {connectedPct} is the approximate share
|
|
195
|
+
defaultMessage: '<b>{connectedPct}%</b> of your team sees {context} previews',
|
|
196
|
+
description: 'Social-proof tag pill beside the shortcut "Connect" on an unauthorised inline smart link when adoption is not in the exploratory range. {connectedPct} is the approximate share seeing previews for the integration; {context} is the provider display name.'
|
|
197
197
|
},
|
|
198
198
|
social_proof_inline_cta_tag_high_no_context: {
|
|
199
199
|
id: 'fabric.linking.social_proof_inline_cta_tag_high_no_context',
|
|
200
|
-
defaultMessage: '<b>{connectedPct}%</b> of your team previews
|
|
201
|
-
description: 'Social-proof tag pill when adoption is above the exploratory threshold and no provider display name is available; {connectedPct} is the approximate share
|
|
200
|
+
defaultMessage: '<b>{connectedPct}%</b> of your team sees richer previews',
|
|
201
|
+
description: 'Social-proof tag pill when adoption is above the exploratory threshold and no provider display name is available; {connectedPct} is the approximate share seeing richer previews.'
|
|
202
202
|
},
|
|
203
203
|
social_proof_inline_cta_tag_low_with_context: {
|
|
204
204
|
id: 'fabric.linking.social_proof_inline_cta_tag_low_with_context',
|
|
205
|
-
defaultMessage: 'Your team
|
|
205
|
+
defaultMessage: 'Your team sees richer {context} previews',
|
|
206
206
|
description: 'Social-proof tag pill when share is below the percentage headline threshold; shown only when a provider display name is available. Omit the pill entirely when personalization is unavailable or the provider name is unknown.'
|
|
207
207
|
},
|
|
208
208
|
social_proof_inline_cta_tag_low_no_context: {
|
|
209
209
|
id: 'fabric.linking.social_proof_inline_cta_tag_low_no_context',
|
|
210
|
-
defaultMessage: 'Your team
|
|
210
|
+
defaultMessage: 'Your team sees richer previews',
|
|
211
211
|
description: 'Social-proof tag pill for the case when neither percentage nor provider display name are available.'
|
|
212
212
|
},
|
|
213
213
|
connect_unauthorised_account_description: {
|
|
@@ -675,6 +675,11 @@ export var messages = defineMessages({
|
|
|
675
675
|
defaultMessage: 'View in',
|
|
676
676
|
description: 'We have a link in our preview modals to the original document. This text goes before the provider name'
|
|
677
677
|
},
|
|
678
|
+
viewInProvider: {
|
|
679
|
+
id: 'fabric.linking.viewinprovider',
|
|
680
|
+
defaultMessage: 'View in {providerName}',
|
|
681
|
+
description: 'We have a link in our preview modals to the original document. This text tells the user where it will open'
|
|
682
|
+
},
|
|
678
683
|
viewOriginal: {
|
|
679
684
|
id: 'fabric.linking.srclinkunknown',
|
|
680
685
|
defaultMessage: 'View Original',
|
|
@@ -1079,12 +1084,12 @@ export var messages = defineMessages({
|
|
|
1079
1084
|
// TODO: remove when social-proof-3p-unauth-block-fg is cleaned up
|
|
1080
1085
|
pre_auth_block_social_proof_not_low: {
|
|
1081
1086
|
id: 'fabric.linking.pre_auth_block_social_proof_not_low',
|
|
1082
|
-
defaultMessage: '<b>{percentage}%</b> of your team
|
|
1087
|
+
defaultMessage: '<b>{percentage}%</b> of your team sees <b>{provider}</b> previews.',
|
|
1083
1088
|
description: 'Social proof message shown on unauthorized 3P block cards when 30% or more of the tenant has connected the provider. {percentage} is a number, {provider} is the 3P app name (e.g. OneDrive).'
|
|
1084
1089
|
},
|
|
1085
1090
|
pre_auth_block_social_proof_low: {
|
|
1086
1091
|
id: 'fabric.linking.pre_auth_block_social_proof_low',
|
|
1087
|
-
defaultMessage: 'Your team
|
|
1092
|
+
defaultMessage: 'Your team sees richer <b>{provider}</b> previews.',
|
|
1088
1093
|
description: 'Social proof message shown on unauthorized 3P block cards when less than 30% of the tenant has connected the provider. {provider} is the 3P app name (e.g. OneDrive).'
|
|
1089
1094
|
}
|
|
1090
1095
|
});
|
|
@@ -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: "44.
|
|
7
|
+
packageVersion: "44.17.0" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -9,6 +9,7 @@ import VidFullScreenOnIcon from '@atlaskit/icon/core/fullscreen-enter';
|
|
|
9
9
|
import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
|
|
10
10
|
import ShortcutIcon from '@atlaskit/icon/core/link-external';
|
|
11
11
|
import { CloseButton, useModal } from '@atlaskit/modal-dialog';
|
|
12
|
+
import { fg } from "@atlaskit/platform-feature-flags";
|
|
12
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
14
|
import { messages } from '../../../../messages';
|
|
14
15
|
import { Icon } from '../../../common/Icon';
|
|
@@ -48,13 +49,16 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
48
49
|
color: "currentColor"
|
|
49
50
|
});
|
|
50
51
|
},
|
|
51
|
-
label: messages.download,
|
|
52
|
+
label: formatMessage(messages.download),
|
|
52
53
|
onClick: onDownloadButtonClick,
|
|
53
54
|
testId: "".concat(testId, "-download")
|
|
54
55
|
});
|
|
55
|
-
}, [onDownloadButtonClick, testId]);
|
|
56
|
+
}, [onDownloadButtonClick, testId, formatMessage]);
|
|
56
57
|
var urlButton = useMemo(function () {
|
|
57
58
|
if (onViewButtonClick) {
|
|
59
|
+
var label = providerName && fg('navx-4957-sl-embed-modal-a11y-label') ? formatMessage(messages.viewInProvider, {
|
|
60
|
+
providerName: providerName
|
|
61
|
+
}) : formatMessage(messages.viewOriginal);
|
|
58
62
|
var content = providerName ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.viewIn), " ", providerName) : /*#__PURE__*/React.createElement(FormattedMessage, messages.viewOriginal);
|
|
59
63
|
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
60
64
|
content: content,
|
|
@@ -65,14 +69,13 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
65
69
|
color: "currentColor"
|
|
66
70
|
});
|
|
67
71
|
},
|
|
68
|
-
label:
|
|
72
|
+
label: label,
|
|
69
73
|
onClick: onViewButtonClick,
|
|
70
74
|
testId: "".concat(testId, "-url"),
|
|
71
|
-
role: 'link'
|
|
72
|
-
"aria-label": messages.viewOriginal
|
|
75
|
+
role: 'link'
|
|
73
76
|
});
|
|
74
77
|
}
|
|
75
|
-
}, [onViewButtonClick, providerName, testId]);
|
|
78
|
+
}, [onViewButtonClick, providerName, testId, formatMessage]);
|
|
76
79
|
var sizeButton = useMemo(function () {
|
|
77
80
|
var isFullScreen = size === MAX_MODAL_SIZE;
|
|
78
81
|
var message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
|
|
@@ -90,11 +93,11 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
90
93
|
icon: function icon() {
|
|
91
94
|
return _icon;
|
|
92
95
|
},
|
|
93
|
-
label: message,
|
|
96
|
+
label: formatMessage(message),
|
|
94
97
|
onClick: onResizeButtonClick,
|
|
95
98
|
testId: "".concat(testId, "-resize")
|
|
96
99
|
});
|
|
97
|
-
}, [onResizeButtonClick, size, testId]);
|
|
100
|
+
}, [onResizeButtonClick, size, testId, formatMessage]);
|
|
98
101
|
return /*#__PURE__*/React.createElement("div", {
|
|
99
102
|
className: ax(["_zulpu2gc _1e0c1txw _19bv1ejb _u5f31ejb _ca0q1ejb _n3tdpxbi _1wpz1fhb _4t3i1tcg"])
|
|
100
103
|
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
2
|
import { IconButton } from '@atlaskit/button/new';
|
|
4
3
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
4
|
import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
|
|
@@ -11,8 +10,6 @@ var LinkInfoButton = function LinkInfoButton(_ref) {
|
|
|
11
10
|
testId = _ref.testId,
|
|
12
11
|
role = _ref.role;
|
|
13
12
|
var onMouseDown = useMouseDownEvent();
|
|
14
|
-
var _useIntl = useIntl(),
|
|
15
|
-
formatMessage = _useIntl.formatMessage;
|
|
16
13
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
17
14
|
content: content,
|
|
18
15
|
hideTooltipOnClick: true,
|
|
@@ -21,7 +18,7 @@ var LinkInfoButton = function LinkInfoButton(_ref) {
|
|
|
21
18
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
22
19
|
appearance: "subtle",
|
|
23
20
|
icon: icon,
|
|
24
|
-
label:
|
|
21
|
+
label: label,
|
|
25
22
|
onClick: onClick,
|
|
26
23
|
onMouseDown: onMouseDown,
|
|
27
24
|
testId: "".concat(testId, "-button"),
|
|
@@ -74,10 +74,10 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
// As long as pill is shown it will be one of four messages depending on percent and provider presence:
|
|
77
|
-
// - 45% of your team
|
|
78
|
-
// - 45% of your team previews
|
|
79
|
-
// - Your team
|
|
80
|
-
// - Your team
|
|
77
|
+
// - 45% of your team sees Figma previews
|
|
78
|
+
// - 45% of your team sees richer previews
|
|
79
|
+
// - Your team sees richer Figma previews
|
|
80
|
+
// - Your team sees richer previews
|
|
81
81
|
var socialProofPillContent = isSocialProofUsageHighEnough ? hasProviderDisplayName ? /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.social_proof_inline_cta_tag_high_with_context, {
|
|
82
82
|
values: {
|
|
83
83
|
connectedPct: connectedPct,
|
|
@@ -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: "44.
|
|
15
|
+
packageVersion: "44.17.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_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | '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';
|
|
4
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summary_error_generic' | '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' | '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_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | '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' | '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' | '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' | '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_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | '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';
|
|
5
5
|
type Messages = {
|
|
6
6
|
[K in MessageKey]: MessageDescriptor;
|
|
7
7
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl';
|
|
3
2
|
import { type IconProp } from '@atlaskit/button/new';
|
|
4
3
|
export type LinkInfoButtonProps = {
|
|
5
4
|
content: React.ReactNode;
|
|
6
5
|
icon: IconProp;
|
|
7
|
-
label:
|
|
6
|
+
label: string;
|
|
8
7
|
onClick?: () => void;
|
|
9
8
|
role?: string;
|
|
10
9
|
testId?: string;
|
|
@@ -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_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | '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';
|
|
4
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summary_error_generic' | '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' | '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_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | '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' | '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' | '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' | '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_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | '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';
|
|
5
5
|
type Messages = {
|
|
6
6
|
[K in MessageKey]: MessageDescriptor;
|
|
7
7
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl';
|
|
3
2
|
import { type IconProp } from '@atlaskit/button/new';
|
|
4
3
|
export type LinkInfoButtonProps = {
|
|
5
4
|
content: React.ReactNode;
|
|
6
5
|
icon: IconProp;
|
|
7
|
-
label:
|
|
6
|
+
label: string;
|
|
8
7
|
onClick?: () => void;
|
|
9
8
|
role?: string;
|
|
10
9
|
testId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.
|
|
3
|
+
"version": "44.18.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/button": "^23.11.0",
|
|
47
47
|
"@atlaskit/checkbox": "^17.3.0",
|
|
48
48
|
"@atlaskit/css": "^0.19.0",
|
|
49
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
49
|
+
"@atlaskit/dropdown-menu": "^16.10.0",
|
|
50
50
|
"@atlaskit/embedded-confluence": "^5.1.0",
|
|
51
51
|
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
52
52
|
"@atlaskit/flag": "^17.12.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/link-analytics": "^11.1.0",
|
|
63
63
|
"@atlaskit/link-client-extension": "^6.1.0",
|
|
64
64
|
"@atlaskit/link-extractors": "^2.7.0",
|
|
65
|
-
"@atlaskit/link-test-helpers": "^10.
|
|
65
|
+
"@atlaskit/link-test-helpers": "^10.4.0",
|
|
66
66
|
"@atlaskit/linking-common": "^9.12.0",
|
|
67
67
|
"@atlaskit/linking-types": "^14.4.0",
|
|
68
68
|
"@atlaskit/logo": "^20.1.0",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
75
75
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
76
76
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
77
|
-
"@atlaskit/popup": "^4.
|
|
77
|
+
"@atlaskit/popup": "^4.23.0",
|
|
78
78
|
"@atlaskit/primitives": "^19.0.0",
|
|
79
|
-
"@atlaskit/react-ufo": "^6.
|
|
80
|
-
"@atlaskit/rovo-triggers": "^6.
|
|
79
|
+
"@atlaskit/react-ufo": "^6.4.0",
|
|
80
|
+
"@atlaskit/rovo-triggers": "^6.5.0",
|
|
81
81
|
"@atlaskit/section-message": "^8.13.0",
|
|
82
82
|
"@atlaskit/select": "^21.12.0",
|
|
83
83
|
"@atlaskit/spinner": "^19.1.0",
|
|
@@ -272,6 +272,9 @@
|
|
|
272
272
|
},
|
|
273
273
|
"platform_navx_block_card_footer_spacing": {
|
|
274
274
|
"type": "boolean"
|
|
275
|
+
},
|
|
276
|
+
"navx-4957-sl-embed-modal-a11y-label": {
|
|
277
|
+
"type": "boolean"
|
|
275
278
|
}
|
|
276
279
|
},
|
|
277
280
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"
|