@atlaskit/smart-card 46.7.0 → 46.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -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/BlockCard/views/UnauthorisedView.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/custom-unresolved-action/CustomUnresolvedAction.js +4 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/error-boundary/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +18 -15
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +58 -25
- package/dist/cjs/view/InlineCard/common/inline-lozenge/index.js +1 -1
- package/dist/cjs/view/InlineCard/common/rovo-actions-cta/index.js +6 -5
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/rovo-chat-utils/index.js +2 -2
- 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/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/custom-unresolved-action/CustomUnresolvedAction.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/error-boundary/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/es2019/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +4 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +34 -6
- package/dist/es2019/view/InlineCard/common/inline-lozenge/index.js +1 -1
- package/dist/es2019/view/InlineCard/common/rovo-actions-cta/index.js +2 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/rovo-chat-utils/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/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/custom-unresolved-action/CustomUnresolvedAction.js +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/error-boundary/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/esm/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +4 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +58 -25
- package/dist/esm/view/InlineCard/common/inline-lozenge/index.js +1 -1
- package/dist/esm/view/InlineCard/common/rovo-actions-cta/index.js +2 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/rovo-chat-utils/index.js +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts +1 -1
- package/dist/types/view/InlineCard/common/inline-lozenge/index.d.ts +1 -1
- package/package.json +14 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 46.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 46.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`51aff6da58a78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51aff6da58a78) -
|
|
14
|
+
Prevent inline Smart Link social proof from changing server-rendered markup during hydration
|
|
15
|
+
behind `platform_sl_inline_social_proof_hydration_fix`.
|
|
16
|
+
- [`453452aa2765d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/453452aa2765d) -
|
|
17
|
+
Update unauthorised inline Smart Link connect copy behind platform_sl_3p_preauth_update_cta_fg and
|
|
18
|
+
platform_sl_3p_preauth_update_cta_exp.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 46.7.0
|
|
4
22
|
|
|
5
23
|
### 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.2" || ''
|
|
29
29
|
};
|
|
30
30
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
31
31
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -19,7 +19,7 @@ var _AnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next
|
|
|
19
19
|
var _extractSmartLinkProvider = require("@atlaskit/link-extractors/extract-smart-link-provider");
|
|
20
20
|
var _useSmartLinkContext2 = require("@atlaskit/link-provider/use-smart-link-context");
|
|
21
21
|
var _componentWithFg = require("@atlaskit/platform-feature-flags-react/component-with-fg");
|
|
22
|
-
var
|
|
22
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
23
23
|
var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
|
|
24
24
|
var _constants = require("../../../constants");
|
|
25
25
|
var _messages = require("../../../messages");
|
|
@@ -156,7 +156,7 @@ var UnauthorisedBlock = function UnauthorisedBlock(_ref) {
|
|
|
156
156
|
width: _constants.SmartLinkWidth.Flexible,
|
|
157
157
|
size: _constants.SmartLinkSize.Large,
|
|
158
158
|
className: (0, _runtime.ax)(["_zulpidpf"])
|
|
159
|
-
}, competitorPrompt ? /*#__PURE__*/React.createElement(
|
|
159
|
+
}, competitorPrompt ? /*#__PURE__*/React.createElement(_box.Box, {
|
|
160
160
|
xcss: styles.titleBoxCard
|
|
161
161
|
}, title, competitorPrompt) : title, /*#__PURE__*/React.createElement(_elementGroup.default, {
|
|
162
162
|
size: _constants.SmartLinkSize.Medium,
|
|
@@ -12,7 +12,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
|
-
var
|
|
15
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
16
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
16
17
|
var _constants = require("../../../../../constants");
|
|
17
18
|
var _useFlexibleCardContext = require("../../../../../state/flexible-ui-context/useFlexibleCardContext");
|
|
18
19
|
var _excluded = ["testId", "onlyShowIfAction", "Container"];
|
|
@@ -62,14 +63,14 @@ var CustomUnresolvedAction = exports.CustomUnresolvedAction = function CustomUnr
|
|
|
62
63
|
if (!messageDescriptor) {
|
|
63
64
|
return null;
|
|
64
65
|
}
|
|
65
|
-
var message = /*#__PURE__*/_react.default.createElement(
|
|
66
|
+
var message = /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
66
67
|
testId: "".concat(testId, "-errored-view-message"),
|
|
67
68
|
tabIndex: hasAction ? 0 : undefined,
|
|
68
69
|
xcss: styles.message
|
|
69
70
|
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, messageDescriptor, {
|
|
70
71
|
values: values
|
|
71
72
|
})));
|
|
72
|
-
var component = hasAction ? /*#__PURE__*/_react.default.createElement(
|
|
73
|
+
var component = hasAction ? /*#__PURE__*/_react.default.createElement(_pressable.Pressable, {
|
|
73
74
|
onClick: data.onClick,
|
|
74
75
|
style: {
|
|
75
76
|
color: "inherit",
|
|
@@ -11,7 +11,7 @@ require("./index.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
14
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/new/lozenge"));
|
|
15
15
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
16
|
var _simple = _interopRequireDefault(require("@atlaskit/tag/tag/simple"));
|
|
17
17
|
var _constants = require("../../../../../../constants");
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _reactErrorBoundary = require("react-error-boundary");
|
|
11
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
11
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/new/lozenge"));
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
13
|
var withErrorBoundary = function withErrorBoundary(Component) {
|
|
14
14
|
return function (props) {
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _dropdownMenuItem = _interopRequireDefault(require("@atlaskit/dropdown-menu/dropdown-menu-item"));
|
|
11
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
11
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/new/lozenge"));
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
13
|
var LozengeActionItem = function LozengeActionItem(_ref) {
|
|
14
14
|
var appearance = _ref.appearance,
|
|
@@ -17,8 +17,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
17
17
|
var _react2 = require("@compiled/react");
|
|
18
18
|
var _reactIntl = require("react-intl");
|
|
19
19
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
20
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
21
20
|
var _lozengeDropdownTrigger = _interopRequireDefault(require("@atlaskit/lozenge/lozenge-dropdown-trigger"));
|
|
21
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/new/lozenge"));
|
|
22
22
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
23
23
|
var _box = require("@atlaskit/primitives/compiled/box");
|
|
24
24
|
var _messages = require("../../../../../../../../messages");
|
|
@@ -19,7 +19,10 @@ var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
|
19
19
|
var _rovoChat = _interopRequireDefault(require("@atlaskit/icon/core/rovo-chat"));
|
|
20
20
|
var _extractSmartLinkProvider = require("@atlaskit/link-extractors/extract-smart-link-provider");
|
|
21
21
|
var _atlassianIcon = require("@atlaskit/logo/atlassian-icon");
|
|
22
|
-
var
|
|
22
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
23
|
+
var _inline = require("@atlaskit/primitives/compiled/inline");
|
|
24
|
+
var _stack = require("@atlaskit/primitives/compiled/stack");
|
|
25
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
23
26
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
24
27
|
var _constants = require("../../../../../constants");
|
|
25
28
|
var _messages = require("../../../../../messages");
|
|
@@ -93,7 +96,7 @@ var RovoUnauthorisedView = function RovoUnauthorisedView(_ref) {
|
|
|
93
96
|
removeBlockRestriction: true,
|
|
94
97
|
hidePadding: true
|
|
95
98
|
}
|
|
96
|
-
}), /*#__PURE__*/React.createElement(
|
|
99
|
+
}), /*#__PURE__*/React.createElement(_box.Box, {
|
|
97
100
|
xcss: layoutStyles.header
|
|
98
101
|
}, /*#__PURE__*/React.createElement("div", {
|
|
99
102
|
className: (0, _runtime.ax)(["_1o9zidpf _1e0c1txw _kqswstnw", "_syaz1yjp _154i1ul9 _1ltv1v6z"])
|
|
@@ -101,21 +104,21 @@ var RovoUnauthorisedView = function RovoUnauthorisedView(_ref) {
|
|
|
101
104
|
className: (0, _runtime.ax)(["_1o9zidpf _1e0c1txw _kqswstnw", "_syazwejn _154i1crf _1xi2qslr"])
|
|
102
105
|
}, /*#__PURE__*/React.createElement(_SparseSparkle.SparseSparkle, null)), /*#__PURE__*/React.createElement("div", {
|
|
103
106
|
className: (0, _runtime.ax)(["_1o9zidpf _1e0c1txw _kqswstnw", "_syazuq3u _1bsbqslr _154i1ylp _1xi21v6z"])
|
|
104
|
-
}, /*#__PURE__*/React.createElement(_DenseSparkle.DenseSparkle, null)), /*#__PURE__*/React.createElement(
|
|
107
|
+
}, /*#__PURE__*/React.createElement(_DenseSparkle.DenseSparkle, null)), /*#__PURE__*/React.createElement(_box.Box, {
|
|
105
108
|
xcss: layoutStyles.headerGraphicRow
|
|
106
109
|
}, /*#__PURE__*/React.createElement(_linkIconElement.default, {
|
|
107
110
|
size: _constants.SmartLinkSize.Medium,
|
|
108
111
|
isTiledIcon: true
|
|
109
|
-
}), /*#__PURE__*/React.createElement(
|
|
112
|
+
}), /*#__PURE__*/React.createElement(_box.Box, {
|
|
110
113
|
xcss: layoutStyles.connectorStroke
|
|
111
|
-
}, /*#__PURE__*/React.createElement(_SquiglyArrow.SquiglyArrow, null)), /*#__PURE__*/React.createElement(
|
|
114
|
+
}, /*#__PURE__*/React.createElement(_SquiglyArrow.SquiglyArrow, null)), /*#__PURE__*/React.createElement(_box.Box, {
|
|
112
115
|
xcss: layoutStyles.atlassianIconTile
|
|
113
116
|
}, /*#__PURE__*/React.createElement(_atlassianIcon.AtlassianIcon, {
|
|
114
117
|
appearance: "inverse",
|
|
115
118
|
size: "small"
|
|
116
|
-
}))), /*#__PURE__*/React.createElement(
|
|
119
|
+
}))), /*#__PURE__*/React.createElement(_box.Box, {
|
|
117
120
|
xcss: layoutStyles.headerTitle
|
|
118
|
-
}, /*#__PURE__*/React.createElement(
|
|
121
|
+
}, /*#__PURE__*/React.createElement(_text.Text, {
|
|
119
122
|
weight: "bold",
|
|
120
123
|
size: "medium",
|
|
121
124
|
color: "color.text"
|
|
@@ -123,27 +126,27 @@ var RovoUnauthorisedView = function RovoUnauthorisedView(_ref) {
|
|
|
123
126
|
values: {
|
|
124
127
|
context: providerName
|
|
125
128
|
}
|
|
126
|
-
})) : /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _messages.messages.rovo_unauthorised_title_no_provider)))), /*#__PURE__*/React.createElement(
|
|
129
|
+
})) : /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _messages.messages.rovo_unauthorised_title_no_provider)))), /*#__PURE__*/React.createElement(_box.Box, {
|
|
127
130
|
xcss: layoutStyles.body
|
|
128
|
-
}, /*#__PURE__*/React.createElement(
|
|
131
|
+
}, /*#__PURE__*/React.createElement(_stack.Stack, {
|
|
129
132
|
space: "space.050"
|
|
130
|
-
}, /*#__PURE__*/React.createElement(
|
|
133
|
+
}, /*#__PURE__*/React.createElement(_stack.Stack, {
|
|
131
134
|
space: "space.200"
|
|
132
135
|
}, ROVO_FEATURES.map(function (feature) {
|
|
133
136
|
var FeatureIcon = feature.icon;
|
|
134
|
-
return /*#__PURE__*/React.createElement(
|
|
137
|
+
return /*#__PURE__*/React.createElement(_inline.Inline, {
|
|
135
138
|
key: feature.testIdSuffix,
|
|
136
139
|
space: "space.150",
|
|
137
140
|
alignBlock: "center",
|
|
138
141
|
testId: "".concat(testId, "-feature-").concat(feature.testIdSuffix)
|
|
139
|
-
}, /*#__PURE__*/React.createElement(
|
|
142
|
+
}, /*#__PURE__*/React.createElement(_box.Box, {
|
|
140
143
|
xcss: layoutStyles.featureIconCell
|
|
141
144
|
}, /*#__PURE__*/React.createElement(FeatureIcon, {
|
|
142
145
|
label: ""
|
|
143
|
-
})), /*#__PURE__*/React.createElement(
|
|
144
|
-
})), /*#__PURE__*/React.createElement(
|
|
146
|
+
})), /*#__PURE__*/React.createElement(_text.Text, null, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, feature.message)));
|
|
147
|
+
})), /*#__PURE__*/React.createElement(_box.Box, {
|
|
145
148
|
xcss: layoutStyles.footer
|
|
146
|
-
}, /*#__PURE__*/React.createElement(
|
|
149
|
+
}, /*#__PURE__*/React.createElement(_inline.Inline, {
|
|
147
150
|
space: "space.050",
|
|
148
151
|
alignBlock: "center"
|
|
149
152
|
}, /*#__PURE__*/React.createElement(_button.default, {
|
|
@@ -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
|
}));
|
|
@@ -10,7 +10,7 @@ exports.default = void 0;
|
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
13
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/new/lozenge"));
|
|
14
14
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
16
|
var wrapperStylesOld = null;
|
|
@@ -16,7 +16,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
16
16
|
var _reactIntl = require("react-intl");
|
|
17
17
|
var _extractSmartLinkProvider = require("@atlaskit/link-extractors/extract-smart-link-provider");
|
|
18
18
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
|
-
var
|
|
19
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
20
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
20
21
|
var _extractRovoChatAction = _interopRequireDefault(require("../../../../extractors/flexible/actions/extract-rovo-chat-action"));
|
|
21
22
|
var _getExtensionKey = require("../../../../state/getExtensionKey");
|
|
22
23
|
var _useInvokeClientAction = _interopRequireDefault(require("../../../../state/hooks/use-invoke-client-action"));
|
|
@@ -121,9 +122,9 @@ var InlineRovoActionButtonLegacy = function InlineRovoActionButtonLegacy(_ref) {
|
|
|
121
122
|
return promptData && content ? /*#__PURE__*/_react.default.createElement(_actionButton.ActionButton, {
|
|
122
123
|
onClick: handleClick,
|
|
123
124
|
testId: testId
|
|
124
|
-
}, icon, /*#__PURE__*/_react.default.createElement(
|
|
125
|
+
}, icon, /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
125
126
|
xcss: styles.text
|
|
126
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
127
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
127
128
|
size: "small"
|
|
128
129
|
}, content))) : null;
|
|
129
130
|
};
|
|
@@ -216,9 +217,9 @@ var InlineRovoActionButtonWithSpotlight = function InlineRovoActionButtonWithSpo
|
|
|
216
217
|
var button = promptData && content ? /*#__PURE__*/_react.default.createElement(_actionButton.ActionButton, {
|
|
217
218
|
onClick: handleClick,
|
|
218
219
|
testId: testId
|
|
219
|
-
}, icon, /*#__PURE__*/_react.default.createElement(
|
|
220
|
+
}, icon, /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
220
221
|
xcss: styles.text
|
|
221
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
222
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
222
223
|
size: "small"
|
|
223
224
|
}, content))) : null;
|
|
224
225
|
return button && isRovoChatEnabled && rovoChatAction !== null && rovoChatAction !== void 0 && rovoChatAction.invokeAction ? /*#__PURE__*/_react.default.createElement(_async.OneClickChatSpotlightLoader, {
|
|
@@ -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.2",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -10,7 +10,7 @@ var _aiSearch = _interopRequireDefault(require("@atlaskit/icon-lab/core/ai-searc
|
|
|
10
10
|
var _aiChat = _interopRequireDefault(require("@atlaskit/icon/core/ai-chat"));
|
|
11
11
|
var _aiGenerativeTextSummary = _interopRequireDefault(require("@atlaskit/icon/core/ai-generative-text-summary"));
|
|
12
12
|
var _rovoChat = _interopRequireDefault(require("@atlaskit/icon/core/rovo-chat"));
|
|
13
|
-
var
|
|
13
|
+
var _icon = require("@atlaskit/logo/rovo/icon");
|
|
14
14
|
var _constants = require("../../../constants");
|
|
15
15
|
var _messages = require("../../../messages");
|
|
16
16
|
var _aiChapterIcon = _interopRequireDefault(require("../../FlexibleCard/assets/ai-chapter-icon"));
|
|
@@ -136,7 +136,7 @@ var getPromptAction = exports.getPromptAction = function getPromptAction(_ref) {
|
|
|
136
136
|
url: url
|
|
137
137
|
});
|
|
138
138
|
return {
|
|
139
|
-
icon: cardAppearance === _constants.CardDisplay.Block && !!product && product === 'CONFLUENCE' ? /*#__PURE__*/_react.default.createElement(
|
|
139
|
+
icon: cardAppearance === _constants.CardDisplay.Block && !!product && product === 'CONFLUENCE' ? /*#__PURE__*/_react.default.createElement(_icon.RovoIcon, {
|
|
140
140
|
label: label_ask_rovo_anything,
|
|
141
141
|
size: 'xxsmall'
|
|
142
142
|
}) : /*#__PURE__*/_react.default.createElement(_aiSearchIcon.default, null),
|
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.2" || ''
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,7 +10,7 @@ import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
|
10
10
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
11
11
|
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
12
12
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react/component-with-fg';
|
|
13
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
13
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
14
14
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
15
15
|
import { ElementName, SmartLinkDirection, SmartLinkSize, SmartLinkWidth } from '../../../constants';
|
|
16
16
|
import { messages } from '../../../messages';
|
|
@@ -4,7 +4,8 @@ import "./CustomUnresolvedAction.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl';
|
|
7
|
-
import { Box
|
|
7
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
8
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
8
9
|
import { InternalActionName, SmartLinkStatus } from '../../../../../constants';
|
|
9
10
|
import { useFlexibleCardContext } from '../../../../../state/flexible-ui-context/useFlexibleCardContext';
|
|
10
11
|
const styles = {
|
package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import AtlaskitLozenge from '@atlaskit/lozenge/lozenge';
|
|
6
|
+
import AtlaskitLozenge from '@atlaskit/lozenge/new/lozenge';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import Tag from '@atlaskit/tag/tag/simple';
|
|
9
9
|
import { ElementName } from '../../../../../../constants';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
3
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
3
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
4
4
|
const withErrorBoundary = Component => props => {
|
|
5
5
|
const fallback = useMemo(() => {
|
|
6
6
|
var _props$testId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
3
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
3
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
4
4
|
const LozengeActionItem = ({
|
|
5
5
|
appearance,
|
|
6
6
|
id,
|
|
@@ -9,8 +9,8 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
9
9
|
import { cx } from '@compiled/react';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
11
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
12
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
13
12
|
import LozengeDropdownTrigger from '@atlaskit/lozenge/lozenge-dropdown-trigger';
|
|
13
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
16
16
|
import { messages } from '../../../../../../../../messages';
|
|
@@ -11,7 +11,10 @@ import CoreLinkIcon from '@atlaskit/icon/core/link';
|
|
|
11
11
|
import RovoChatIcon from '@atlaskit/icon/core/rovo-chat';
|
|
12
12
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
13
13
|
import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
16
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
17
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
15
18
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
16
19
|
import { CardDisplay, SmartLinkSize } from '../../../../../constants';
|
|
17
20
|
import { messages } from '../../../../../messages';
|
|
@@ -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
|
}));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
5
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
const wrapperStylesOld = null;
|
|
8
8
|
const wrapperStylesNew = null;
|
|
@@ -5,7 +5,8 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
|
-
import { Box
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
9
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
9
10
|
import extractRovoChatAction from '../../../../extractors/flexible/actions/extract-rovo-chat-action';
|
|
10
11
|
import { getExtensionKey } from '../../../../state/getExtensionKey';
|
|
11
12
|
import useInvokeClientAction from '../../../../state/hooks/use-invoke-client-action';
|
|
@@ -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.2",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -3,7 +3,7 @@ import AiSearchIcon from '@atlaskit/icon-lab/core/ai-search';
|
|
|
3
3
|
import AiChatIcon from '@atlaskit/icon/core/ai-chat';
|
|
4
4
|
import AiGenerativeTextSummaryIcon from '@atlaskit/icon/core/ai-generative-text-summary';
|
|
5
5
|
import RovoChatIcon from '@atlaskit/icon/core/rovo-chat';
|
|
6
|
-
import { RovoIcon } from '@atlaskit/logo';
|
|
6
|
+
import { RovoIcon } from '@atlaskit/logo/rovo/icon';
|
|
7
7
|
import { CardDisplay } from '../../../constants';
|
|
8
8
|
import { messages } from '../../../messages';
|
|
9
9
|
import AiChapterIcon from '../../FlexibleCard/assets/ai-chapter-icon';
|
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.2" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -14,7 +14,7 @@ import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
|
14
14
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
15
15
|
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
16
16
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react/component-with-fg';
|
|
17
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
17
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
18
18
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
19
19
|
import { ElementName, SmartLinkDirection, SmartLinkSize, SmartLinkWidth } from '../../../constants';
|
|
20
20
|
import { messages } from '../../../messages';
|
|
@@ -6,7 +6,8 @@ import "./CustomUnresolvedAction.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl';
|
|
9
|
-
import { Box
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
10
11
|
import { InternalActionName, SmartLinkStatus } from '../../../../../constants';
|
|
11
12
|
import { useFlexibleCardContext } from '../../../../../state/flexible-ui-context/useFlexibleCardContext';
|
|
12
13
|
var styles = {
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import AtlaskitLozenge from '@atlaskit/lozenge/lozenge';
|
|
6
|
+
import AtlaskitLozenge from '@atlaskit/lozenge/new/lozenge';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import Tag from '@atlaskit/tag/tag/simple';
|
|
9
9
|
import { ElementName } from '../../../../../../constants';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
3
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
3
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
4
4
|
var withErrorBoundary = function withErrorBoundary(Component) {
|
|
5
5
|
return function (props) {
|
|
6
6
|
var fallback = useMemo(function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
3
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
3
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
4
4
|
var LozengeActionItem = function LozengeActionItem(_ref) {
|
|
5
5
|
var appearance = _ref.appearance,
|
|
6
6
|
id = _ref.id,
|
|
@@ -12,8 +12,8 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
12
12
|
import { cx } from '@compiled/react';
|
|
13
13
|
import { useIntl } from 'react-intl';
|
|
14
14
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
15
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
16
15
|
import LozengeDropdownTrigger from '@atlaskit/lozenge/lozenge-dropdown-trigger';
|
|
16
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
19
19
|
import { messages } from '../../../../../../../../messages';
|
|
@@ -11,7 +11,10 @@ import CoreLinkIcon from '@atlaskit/icon/core/link';
|
|
|
11
11
|
import RovoChatIcon from '@atlaskit/icon/core/rovo-chat';
|
|
12
12
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
13
13
|
import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
16
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
17
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
15
18
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
16
19
|
import { CardDisplay, SmartLinkSize } from '../../../../../constants';
|
|
17
20
|
import { messages } from '../../../../../messages';
|
|
@@ -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
|
}));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
5
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
var wrapperStylesOld = null;
|
|
8
8
|
var wrapperStylesNew = null;
|
|
@@ -10,7 +10,8 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
11
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
|
-
import { Box
|
|
13
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
14
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
14
15
|
import extractRovoChatAction from '../../../../extractors/flexible/actions/extract-rovo-chat-action';
|
|
15
16
|
import { getExtensionKey } from '../../../../state/getExtensionKey';
|
|
16
17
|
import useInvokeClientAction from '../../../../state/hooks/use-invoke-client-action';
|
|
@@ -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.2",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -3,7 +3,7 @@ import AiSearchIcon from '@atlaskit/icon-lab/core/ai-search';
|
|
|
3
3
|
import AiChatIcon from '@atlaskit/icon/core/ai-chat';
|
|
4
4
|
import AiGenerativeTextSummaryIcon from '@atlaskit/icon/core/ai-generative-text-summary';
|
|
5
5
|
import RovoChatIcon from '@atlaskit/icon/core/rovo-chat';
|
|
6
|
-
import { RovoIcon } from '@atlaskit/logo';
|
|
6
|
+
import { RovoIcon } from '@atlaskit/logo/rovo/icon';
|
|
7
7
|
import { CardDisplay } from '../../../constants';
|
|
8
8
|
import { messages } from '../../../messages';
|
|
9
9
|
import AiChapterIcon from '../../FlexibleCard/assets/ai-chapter-icon';
|
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/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import type { LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge/lozenge';
|
|
6
6
|
import type { LinkLozengeInvokeActions } from '../../../../../../extractors/common/lozenge/types';
|
|
7
7
|
import type { ElementProps } from '../../../elements';
|
|
8
8
|
export type LozengeAppearance = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LozengeProps } from '@atlaskit/lozenge/lozenge';
|
|
2
2
|
import type { NewLozengeProps } from '@atlaskit/lozenge/types';
|
|
3
3
|
type InlineLozengeProps = LozengeProps | NewLozengeProps;
|
|
4
4
|
declare const InlineLozenge: (props: InlineLozengeProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "46.7.
|
|
3
|
+
"version": "46.7.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"@atlaskit/button": "^25.4.0",
|
|
51
51
|
"@atlaskit/checkbox": "^19.3.0",
|
|
52
52
|
"@atlaskit/css": "^1.1.0",
|
|
53
|
+
"@atlaskit/docs": "^12.3.0",
|
|
53
54
|
"@atlaskit/dropdown-menu": "^21.0.0",
|
|
54
55
|
"@atlaskit/embedded-confluence": "^6.4.0",
|
|
55
56
|
"@atlaskit/feature-gate-js-client": "^7.0.0",
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
"@atlaskit/icon-file-type": "^8.3.0",
|
|
62
63
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
63
64
|
"@atlaskit/image": "^5.2.0",
|
|
64
|
-
"@atlaskit/json-ld-types": "^2.
|
|
65
|
+
"@atlaskit/json-ld-types": "^2.1.0",
|
|
65
66
|
"@atlaskit/link": "^5.1.0",
|
|
66
67
|
"@atlaskit/link-analytics": "^13.0.0",
|
|
67
68
|
"@atlaskit/link-client-extension": "^8.0.0",
|
|
@@ -72,15 +73,15 @@
|
|
|
72
73
|
"@atlaskit/logo": "^23.3.0",
|
|
73
74
|
"@atlaskit/lozenge": "^17.0.0",
|
|
74
75
|
"@atlaskit/menu": "^11.0.0",
|
|
75
|
-
"@atlaskit/modal-dialog": "^17.
|
|
76
|
+
"@atlaskit/modal-dialog": "^17.1.0",
|
|
76
77
|
"@atlaskit/motion": "^9.4.0",
|
|
77
78
|
"@atlaskit/object": "^2.3.0",
|
|
78
79
|
"@atlaskit/outbound-auth-flow-client": "^4.2.0",
|
|
79
80
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
80
81
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
81
82
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
82
|
-
"@atlaskit/popup": "^
|
|
83
|
-
"@atlaskit/primitives": "^22.
|
|
83
|
+
"@atlaskit/popup": "^10.0.0",
|
|
84
|
+
"@atlaskit/primitives": "^22.6.0",
|
|
84
85
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
85
86
|
"@atlaskit/react-ufo": "^8.1.0",
|
|
86
87
|
"@atlaskit/rovo-triggers": "^12.3.0",
|
|
@@ -96,7 +97,7 @@
|
|
|
96
97
|
"@atlaskit/tmp-editor-statsig": "^240.0.0",
|
|
97
98
|
"@atlaskit/tokens": "^20.6.0",
|
|
98
99
|
"@atlaskit/tooltip": "^24.4.0",
|
|
99
|
-
"@atlaskit/top-layer": "^6.
|
|
100
|
+
"@atlaskit/top-layer": "^6.3.0",
|
|
100
101
|
"@atlaskit/ufo": "^2.0.0",
|
|
101
102
|
"@atlaskit/width-detector": "^7.2.0",
|
|
102
103
|
"@babel/runtime": "^7.0.0",
|
|
@@ -123,6 +124,7 @@
|
|
|
123
124
|
"@af/integration-testing": "workspace:^",
|
|
124
125
|
"@af/visual-regression": "workspace:^",
|
|
125
126
|
"@atlaskit/analytics-listeners": "^11.4.0",
|
|
127
|
+
"@atlaskit/banner": "^15.3.0",
|
|
126
128
|
"@atlaskit/code": "^20.0.0",
|
|
127
129
|
"@atlaskit/css-reset": "^8.4.0",
|
|
128
130
|
"@atlaskit/datetime-picker": "^19.3.0",
|
|
@@ -207,6 +209,9 @@
|
|
|
207
209
|
"platform_sl_3p_preauth_better_hovercard_killswitch": {
|
|
208
210
|
"type": "boolean"
|
|
209
211
|
},
|
|
212
|
+
"platform_sl_3p_preauth_update_cta_fg": {
|
|
213
|
+
"type": "boolean"
|
|
214
|
+
},
|
|
210
215
|
"platform_lp_use_generator_icon_for_provider": {
|
|
211
216
|
"type": "boolean"
|
|
212
217
|
},
|
|
@@ -229,6 +234,9 @@
|
|
|
229
234
|
"social-proof-3p-unauth-block-fg": {
|
|
230
235
|
"type": "boolean"
|
|
231
236
|
},
|
|
237
|
+
"platform_sl_inline_social_proof_hydration_fix": {
|
|
238
|
+
"type": "boolean"
|
|
239
|
+
},
|
|
232
240
|
"platform_sl_incoming_outgoing_tenant_info_killswitch": {
|
|
233
241
|
"type": "boolean"
|
|
234
242
|
},
|