@atlaskit/smart-card 46.1.10 → 46.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/state/hooks/use-social-proof-experiment/index.js +1 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -9
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +5 -22
- package/dist/cjs/view/InlineCard/common/action-button/index.js +1 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/use-social-proof-experiment/index.js +0 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/experiment-meta-event-attributes/index.js +0 -9
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +5 -22
- package/dist/es2019/view/InlineCard/common/action-button/index.js +1 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/use-social-proof-experiment/index.js +0 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -9
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +5 -22
- package/dist/esm/view/InlineCard/common/action-button/index.js +1 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/hooks/use-social-proof-experiment/index.d.ts +0 -4
- package/dist/types/view/CardWithUrl/experiment-meta-event-attributes/index.d.ts +2 -2
- package/package.json +3 -6
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-but-no-context-available---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof---disabled-fgs--default.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof--default--platform-sl-3p-preauth-social-proof-inline-cta-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-but-low-percentage---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/cjs/state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta.js +0 -13
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-but-no-context-available---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof---disabled-fgs--default.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof--default--platform-sl-3p-preauth-social-proof-inline-cta-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-but-low-percentage---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/es2019/state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta.js +0 -5
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-but-no-context-available---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof---disabled-fgs--default.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof--default--platform-sl-3p-preauth-social-proof-inline-cta-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-but-low-percentage---disabled-fgs--default.png +0 -3
- 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-false.png +0 -3
- package/dist/esm/state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta.js +0 -6
- package/dist/types/state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta.d.ts +0 -5
- /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 → inline-card-unauthorised-social-proof-but-no-context-available--default.png} +0 -0
- /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 → inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage--default.png} +0 -0
- /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 → inline-card-unauthorised-with-social-proof--default.png} +0 -0
- /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 → inline-card-unauthorised-with-social-proof-but-low-percentage--default.png} +0 -0
- /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 → inline-card-unauthorised-social-proof-but-no-context-available--default.png} +0 -0
- /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 → inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage--default.png} +0 -0
- /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 → inline-card-unauthorised-with-social-proof--default.png} +0 -0
- /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 → inline-card-unauthorised-with-social-proof-but-low-percentage--default.png} +0 -0
- /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 → inline-card-unauthorised-social-proof-but-no-context-available--default.png} +0 -0
- /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 → inline-card-unauthorised-social-proof-with-no-context-and-no-provider-specific-percentage--default.png} +0 -0
- /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 → inline-card-unauthorised-with-social-proof--default.png} +0 -0
- /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 → inline-card-unauthorised-with-social-proof-but-low-percentage--default.png} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 46.1.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 46.1.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4a467a9d5ed8b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4a467a9d5ed8b) -
|
|
14
|
+
Clean up experiment `platform_sl_3p_preauth_social_proof_inline_cta` and feature gate
|
|
15
|
+
`platform_sl_3p_preauth_soc_proof_inline_killswitch`. Inline Smart Links now permanently show the
|
|
16
|
+
social proof CTA when personalization data is available, retaining the long connect label while
|
|
17
|
+
data is unavailable. Remove the completed experiment’s analytics metadata. No public API changes.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 46.1.10
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -4,13 +4,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.SOCIAL_PROOF_TIER_THRESHOLD = exports.SOCIAL_PROOF_3P_UNAUTH_BLOCK_EXPERIMENT_KEY =
|
|
7
|
+
exports.default = exports.SOCIAL_PROOF_TIER_THRESHOLD = exports.SOCIAL_PROOF_3P_UNAUTH_BLOCK_EXPERIMENT_KEY = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
10
10
|
var _useSocialProof2 = _interopRequireDefault(require("../use-social-proof"));
|
|
11
11
|
var _getSocialProofTier2 = require("./getSocialProofTier");
|
|
12
12
|
var SOCIAL_PROOF_3P_UNAUTH_BLOCK_EXPERIMENT_KEY = exports.SOCIAL_PROOF_3P_UNAUTH_BLOCK_EXPERIMENT_KEY = 'social_proof_3p_unauth_block_exp';
|
|
13
|
-
var INLINE_SOCIAL_PROOF_EXPERIMENT_KEY = exports.INLINE_SOCIAL_PROOF_EXPERIMENT_KEY = 'platform_sl_3p_preauth_social_proof_inline_cta';
|
|
14
13
|
var SOCIAL_PROOF_TIER_THRESHOLD = exports.SOCIAL_PROOF_TIER_THRESHOLD = 30;
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -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.1.
|
|
28
|
+
packageVersion: "46.1.11" || ''
|
|
29
29
|
};
|
|
30
30
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
31
31
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -11,7 +11,6 @@ var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
|
11
11
|
var _getExtensionKey = require("../../../state/getExtensionKey");
|
|
12
12
|
var _getEmbedRovoActionsFooterExperimentMeta = require("../../../state/hooks/use-embed-rovo-actions-footer-experiment/getEmbedRovoActionsFooterExperimentMeta");
|
|
13
13
|
var _useRovoConfig2 = _interopRequireDefault(require("../../../state/hooks/use-rovo-config"));
|
|
14
|
-
var _getInlineSocialProofExperimentMeta = require("../../../state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta");
|
|
15
14
|
var _getSocialProofExperimentMeta = require("../../../state/hooks/use-social-proof-experiment/getSocialProofExperimentMeta");
|
|
16
15
|
var _rovo = require("../../../utils/rovo");
|
|
17
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -35,18 +34,11 @@ var useExperimentMetaEventAttributes = function useExperimentMetaEventAttributes
|
|
|
35
34
|
isRovoChatEnabled: (0, _rovo.getIsRovoChatEnabled)(rovoOptions),
|
|
36
35
|
product: product
|
|
37
36
|
}) : undefined;
|
|
38
|
-
if (!embedRovoActionsFooterExperimentMeta && !(0, _fg.fg)('social-proof-3p-unauth-block-fg') && !(0, _fg.fg)('platform_sl_3p_preauth_soc_proof_inline_killswitch')) {
|
|
39
|
-
return undefined;
|
|
40
|
-
}
|
|
41
37
|
var blockSocialProofExperimentMeta = appearance === 'block' && status === 'unauthorized' && (0, _fg.fg)('social-proof-3p-unauth-block-fg') ? (0, _getSocialProofExperimentMeta.getSocialProofExperimentMeta)({
|
|
42
38
|
extensionKey: extensionKey,
|
|
43
39
|
baseUriWithNoTrailingSlash: baseUriWithNoTrailingSlash
|
|
44
40
|
}) : undefined;
|
|
45
|
-
var
|
|
46
|
-
extensionKey: extensionKey,
|
|
47
|
-
baseUriWithNoTrailingSlash: baseUriWithNoTrailingSlash
|
|
48
|
-
}) : undefined;
|
|
49
|
-
var experimentMeta = _objectSpread(_objectSpread(_objectSpread({}, blockSocialProofExperimentMeta), inlineSocialProofExperimentMeta), embedRovoActionsFooterExperimentMeta);
|
|
41
|
+
var experimentMeta = _objectSpread(_objectSpread({}, blockSocialProofExperimentMeta), embedRovoActionsFooterExperimentMeta);
|
|
50
42
|
if (Object.keys(experimentMeta).length > 0) {
|
|
51
43
|
return experimentMeta;
|
|
52
44
|
}
|
|
@@ -14,9 +14,7 @@ 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 _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
18
|
var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
|
|
21
19
|
var _messages = require("../../../messages");
|
|
22
20
|
var _getCachedProviderPctMapAndRefresh = require("../../../state/services/personalization/getCachedProviderPctMapAndRefresh");
|
|
@@ -50,9 +48,7 @@ var socialProofPillStyles = {
|
|
|
50
48
|
/**
|
|
51
49
|
* Renders the social-proof pill and Connect button using persisted percentages only ({@link getCachedProviderPctMapAndRefresh}) — no
|
|
52
50
|
* loading skeleton; either the cached percentage is shown or the legacy long connect label is used.
|
|
53
|
-
*
|
|
54
|
-
* Only mounted when the parent has passed the killswitch and
|
|
55
|
-
* `platform_sl_3p_preauth_social_proof_inline_cta`. See platform docs: `rules-of-hooks.md` "Should §1".
|
|
51
|
+
* Only mounted when the card has an authorisation action.
|
|
56
52
|
*/
|
|
57
53
|
var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialProof(_ref) {
|
|
58
54
|
var _context$trim;
|
|
@@ -72,10 +68,8 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
72
68
|
var hasProviderDisplayName = trimmedProviderDisplayName.length > 0;
|
|
73
69
|
var isSocialProofUsageHighEnough = connectedPct !== undefined && connectedPct >= SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD;
|
|
74
70
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*/
|
|
78
|
-
var showSocialProofPill = providerPctMap !== null && (0, _expValEquals.expValEquals)('platform_sl_3p_preauth_social_proof_inline_cta', 'isEnabled', true);
|
|
71
|
+
// Show the social proof pill once the trait data is available.
|
|
72
|
+
var showSocialProofPill = isProviderPctMapLoaded;
|
|
79
73
|
var bold = function bold(chunks) {
|
|
80
74
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
81
75
|
as: "strong",
|
|
@@ -160,17 +154,6 @@ var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function I
|
|
|
160
154
|
onAuthorise();
|
|
161
155
|
}
|
|
162
156
|
}, [fireEvent, onAuthorise]);
|
|
163
|
-
var renderActionButton = _react.default.useCallback(function () {
|
|
164
|
-
return /*#__PURE__*/_react.default.createElement(_actionButton.ActionButton, {
|
|
165
|
-
onClick: handleConnectAccount,
|
|
166
|
-
viewType: 'unauthorised',
|
|
167
|
-
testId: "button-connect-account"
|
|
168
|
-
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_link_account_card_name, {
|
|
169
|
-
values: {
|
|
170
|
-
context: context
|
|
171
|
-
}
|
|
172
|
-
})));
|
|
173
|
-
}, [handleConnectAccount, context]);
|
|
174
157
|
var inlineCardUnauthenticatedView = /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
175
158
|
testId: testId,
|
|
176
159
|
isSelected: isSelected,
|
|
@@ -183,12 +166,12 @@ var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function I
|
|
|
183
166
|
link: url,
|
|
184
167
|
onClick: onClick,
|
|
185
168
|
titleColor: "var(--ds-text-subtle, #505258)"
|
|
186
|
-
}), onAuthorise &&
|
|
169
|
+
}), onAuthorise && /*#__PURE__*/_react.default.createElement(UnauthorisedConnectWithSocialProof, {
|
|
187
170
|
context: context,
|
|
188
171
|
extensionKey: extensionKey,
|
|
189
172
|
testId: testId,
|
|
190
173
|
onConnectClick: handleConnectAccount
|
|
191
|
-
})
|
|
174
|
+
}));
|
|
192
175
|
if (onAuthorise && showHoverPreview) {
|
|
193
176
|
return /*#__PURE__*/_react.default.createElement(_HoverCard.HoverCard, {
|
|
194
177
|
url: url,
|
|
@@ -13,7 +13,6 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
17
|
var _excluded = ["children", "isDisabled", "viewType", "isSlimDesign"],
|
|
19
18
|
_excluded2 = ["onClick"];
|
|
@@ -41,7 +40,7 @@ var ActionButton = exports.ActionButton = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
41
40
|
_ref$isSlimDesign = _ref.isSlimDesign,
|
|
42
41
|
isSlimDesign = _ref$isSlimDesign === void 0 ? false : _ref$isSlimDesign,
|
|
43
42
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
44
|
-
var shouldUseUnauthorisedSlimStyle = viewType === 'unauthorised' && isSlimDesign
|
|
43
|
+
var shouldUseUnauthorisedSlimStyle = viewType === 'unauthorised' && isSlimDesign;
|
|
45
44
|
if (shouldUseUnauthorisedSlimStyle && !isDisabled) {
|
|
46
45
|
var onClick = props.onClick,
|
|
47
46
|
boxProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
@@ -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.1.
|
|
22
|
+
packageVersion: "46.1.11",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -3,7 +3,6 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
3
3
|
import useSocialProof from '../use-social-proof';
|
|
4
4
|
import { getSocialProofTier } from './getSocialProofTier';
|
|
5
5
|
export const SOCIAL_PROOF_3P_UNAUTH_BLOCK_EXPERIMENT_KEY = 'social_proof_3p_unauth_block_exp';
|
|
6
|
-
export const INLINE_SOCIAL_PROOF_EXPERIMENT_KEY = 'platform_sl_3p_preauth_social_proof_inline_cta';
|
|
7
6
|
export const SOCIAL_PROOF_TIER_THRESHOLD = 30;
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -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.1.
|
|
7
|
+
packageVersion: "46.1.11" || ''
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,7 +3,6 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
3
3
|
import { getExtensionKey } from '../../../state/getExtensionKey';
|
|
4
4
|
import { getEmbedRovoActionsFooterExperimentMeta } from '../../../state/hooks/use-embed-rovo-actions-footer-experiment/getEmbedRovoActionsFooterExperimentMeta';
|
|
5
5
|
import useRovoConfig from '../../../state/hooks/use-rovo-config';
|
|
6
|
-
import { getInlineSocialProofExperimentMeta } from '../../../state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta';
|
|
7
6
|
import { getSocialProofExperimentMeta } from '../../../state/hooks/use-social-proof-experiment/getSocialProofExperimentMeta';
|
|
8
7
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
9
8
|
const useExperimentMetaEventAttributes = ({
|
|
@@ -34,20 +33,12 @@ const useExperimentMetaEventAttributes = ({
|
|
|
34
33
|
isRovoChatEnabled: getIsRovoChatEnabled(rovoOptions),
|
|
35
34
|
product
|
|
36
35
|
}) : undefined;
|
|
37
|
-
if (!embedRovoActionsFooterExperimentMeta && !fg('social-proof-3p-unauth-block-fg') && !fg('platform_sl_3p_preauth_soc_proof_inline_killswitch')) {
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
36
|
const blockSocialProofExperimentMeta = appearance === 'block' && status === 'unauthorized' && fg('social-proof-3p-unauth-block-fg') ? getSocialProofExperimentMeta({
|
|
41
37
|
extensionKey,
|
|
42
38
|
baseUriWithNoTrailingSlash
|
|
43
39
|
}) : undefined;
|
|
44
|
-
const inlineSocialProofExperimentMeta = appearance === 'inline' && status === 'unauthorized' && fg('platform_sl_3p_preauth_soc_proof_inline_killswitch') ? getInlineSocialProofExperimentMeta({
|
|
45
|
-
extensionKey,
|
|
46
|
-
baseUriWithNoTrailingSlash
|
|
47
|
-
}) : undefined;
|
|
48
40
|
const experimentMeta = {
|
|
49
41
|
...blockSocialProofExperimentMeta,
|
|
50
|
-
...inlineSocialProofExperimentMeta,
|
|
51
42
|
...embedRovoActionsFooterExperimentMeta
|
|
52
43
|
};
|
|
53
44
|
if (Object.keys(experimentMeta).length > 0) {
|
|
@@ -7,9 +7,7 @@ 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 { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
11
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
14
12
|
import { messages } from '../../../messages';
|
|
15
13
|
import { getCachedProviderPctMapAndRefresh } from '../../../state/services/personalization/getCachedProviderPctMapAndRefresh';
|
|
@@ -43,9 +41,7 @@ const socialProofPillStyles = {
|
|
|
43
41
|
/**
|
|
44
42
|
* Renders the social-proof pill and Connect button using persisted percentages only ({@link getCachedProviderPctMapAndRefresh}) — no
|
|
45
43
|
* loading skeleton; either the cached percentage is shown or the legacy long connect label is used.
|
|
46
|
-
*
|
|
47
|
-
* Only mounted when the parent has passed the killswitch and
|
|
48
|
-
* `platform_sl_3p_preauth_social_proof_inline_cta`. See platform docs: `rules-of-hooks.md` "Should §1".
|
|
44
|
+
* Only mounted when the card has an authorisation action.
|
|
49
45
|
*/
|
|
50
46
|
const UnauthorisedConnectWithSocialProof = ({
|
|
51
47
|
context,
|
|
@@ -66,10 +62,8 @@ const UnauthorisedConnectWithSocialProof = ({
|
|
|
66
62
|
const hasProviderDisplayName = trimmedProviderDisplayName.length > 0;
|
|
67
63
|
const isSocialProofUsageHighEnough = connectedPct !== undefined && connectedPct >= SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD;
|
|
68
64
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*/
|
|
72
|
-
const showSocialProofPill = providerPctMap !== null && expValEquals('platform_sl_3p_preauth_social_proof_inline_cta', 'isEnabled', true);
|
|
65
|
+
// Show the social proof pill once the trait data is available.
|
|
66
|
+
const showSocialProofPill = isProviderPctMapLoaded;
|
|
73
67
|
const bold = chunks => /*#__PURE__*/React.createElement(Box, {
|
|
74
68
|
as: "strong",
|
|
75
69
|
xcss: socialProofPillStyles.strong
|
|
@@ -152,17 +146,6 @@ export const InlineCardUnauthorizedView = ({
|
|
|
152
146
|
onAuthorise();
|
|
153
147
|
}
|
|
154
148
|
}, [fireEvent, onAuthorise]);
|
|
155
|
-
const renderActionButton = React.useCallback(() => {
|
|
156
|
-
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
157
|
-
onClick: handleConnectAccount,
|
|
158
|
-
viewType: 'unauthorised',
|
|
159
|
-
testId: "button-connect-account"
|
|
160
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
161
|
-
values: {
|
|
162
|
-
context
|
|
163
|
-
}
|
|
164
|
-
})));
|
|
165
|
-
}, [handleConnectAccount, context]);
|
|
166
149
|
const inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
167
150
|
testId: testId,
|
|
168
151
|
isSelected: isSelected,
|
|
@@ -175,12 +158,12 @@ export const InlineCardUnauthorizedView = ({
|
|
|
175
158
|
link: url,
|
|
176
159
|
onClick: onClick,
|
|
177
160
|
titleColor: "var(--ds-text-subtle, #505258)"
|
|
178
|
-
}), onAuthorise &&
|
|
161
|
+
}), onAuthorise && /*#__PURE__*/React.createElement(UnauthorisedConnectWithSocialProof, {
|
|
179
162
|
context: context,
|
|
180
163
|
extensionKey: extensionKey,
|
|
181
164
|
testId: testId,
|
|
182
165
|
onConnectClick: handleConnectAccount
|
|
183
|
-
})
|
|
166
|
+
}));
|
|
184
167
|
if (onAuthorise && showHoverPreview) {
|
|
185
168
|
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
186
169
|
url: url,
|
|
@@ -4,7 +4,6 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
import { Pressable, Box } from '@atlaskit/primitives/compiled';
|
|
9
8
|
const styles = {
|
|
10
9
|
button: "_1e0c1bgi",
|
|
@@ -28,7 +27,7 @@ export const ActionButton = /*#__PURE__*/forwardRef(({
|
|
|
28
27
|
isSlimDesign = false,
|
|
29
28
|
...props
|
|
30
29
|
}, ref) => {
|
|
31
|
-
const shouldUseUnauthorisedSlimStyle = viewType === 'unauthorised' && isSlimDesign
|
|
30
|
+
const shouldUseUnauthorisedSlimStyle = viewType === 'unauthorised' && isSlimDesign;
|
|
32
31
|
if (shouldUseUnauthorisedSlimStyle && !isDisabled) {
|
|
33
32
|
const {
|
|
34
33
|
onClick,
|
|
@@ -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.1.
|
|
12
|
+
packageVersion: "46.1.11",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -3,7 +3,6 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
3
3
|
import useSocialProof from '../use-social-proof';
|
|
4
4
|
import { getSocialProofTier } from './getSocialProofTier';
|
|
5
5
|
export var SOCIAL_PROOF_3P_UNAUTH_BLOCK_EXPERIMENT_KEY = 'social_proof_3p_unauth_block_exp';
|
|
6
|
-
export var INLINE_SOCIAL_PROOF_EXPERIMENT_KEY = 'platform_sl_3p_preauth_social_proof_inline_cta';
|
|
7
6
|
export var SOCIAL_PROOF_TIER_THRESHOLD = 30;
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -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.1.
|
|
7
|
+
packageVersion: "46.1.11" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -6,7 +6,6 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
6
6
|
import { getExtensionKey } from '../../../state/getExtensionKey';
|
|
7
7
|
import { getEmbedRovoActionsFooterExperimentMeta } from '../../../state/hooks/use-embed-rovo-actions-footer-experiment/getEmbedRovoActionsFooterExperimentMeta';
|
|
8
8
|
import useRovoConfig from '../../../state/hooks/use-rovo-config';
|
|
9
|
-
import { getInlineSocialProofExperimentMeta } from '../../../state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta';
|
|
10
9
|
import { getSocialProofExperimentMeta } from '../../../state/hooks/use-social-proof-experiment/getSocialProofExperimentMeta';
|
|
11
10
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
12
11
|
var useExperimentMetaEventAttributes = function useExperimentMetaEventAttributes(_ref) {
|
|
@@ -28,18 +27,11 @@ var useExperimentMetaEventAttributes = function useExperimentMetaEventAttributes
|
|
|
28
27
|
isRovoChatEnabled: getIsRovoChatEnabled(rovoOptions),
|
|
29
28
|
product: product
|
|
30
29
|
}) : undefined;
|
|
31
|
-
if (!embedRovoActionsFooterExperimentMeta && !fg('social-proof-3p-unauth-block-fg') && !fg('platform_sl_3p_preauth_soc_proof_inline_killswitch')) {
|
|
32
|
-
return undefined;
|
|
33
|
-
}
|
|
34
30
|
var blockSocialProofExperimentMeta = appearance === 'block' && status === 'unauthorized' && fg('social-proof-3p-unauth-block-fg') ? getSocialProofExperimentMeta({
|
|
35
31
|
extensionKey: extensionKey,
|
|
36
32
|
baseUriWithNoTrailingSlash: baseUriWithNoTrailingSlash
|
|
37
33
|
}) : undefined;
|
|
38
|
-
var
|
|
39
|
-
extensionKey: extensionKey,
|
|
40
|
-
baseUriWithNoTrailingSlash: baseUriWithNoTrailingSlash
|
|
41
|
-
}) : undefined;
|
|
42
|
-
var experimentMeta = _objectSpread(_objectSpread(_objectSpread({}, blockSocialProofExperimentMeta), inlineSocialProofExperimentMeta), embedRovoActionsFooterExperimentMeta);
|
|
34
|
+
var experimentMeta = _objectSpread(_objectSpread({}, blockSocialProofExperimentMeta), embedRovoActionsFooterExperimentMeta);
|
|
43
35
|
if (Object.keys(experimentMeta).length > 0) {
|
|
44
36
|
return experimentMeta;
|
|
45
37
|
}
|
|
@@ -7,9 +7,7 @@ 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 { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
11
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
14
12
|
import { messages } from '../../../messages';
|
|
15
13
|
import { getCachedProviderPctMapAndRefresh } from '../../../state/services/personalization/getCachedProviderPctMapAndRefresh';
|
|
@@ -43,9 +41,7 @@ var socialProofPillStyles = {
|
|
|
43
41
|
/**
|
|
44
42
|
* Renders the social-proof pill and Connect button using persisted percentages only ({@link getCachedProviderPctMapAndRefresh}) — no
|
|
45
43
|
* loading skeleton; either the cached percentage is shown or the legacy long connect label is used.
|
|
46
|
-
*
|
|
47
|
-
* Only mounted when the parent has passed the killswitch and
|
|
48
|
-
* `platform_sl_3p_preauth_social_proof_inline_cta`. See platform docs: `rules-of-hooks.md` "Should §1".
|
|
44
|
+
* Only mounted when the card has an authorisation action.
|
|
49
45
|
*/
|
|
50
46
|
var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialProof(_ref) {
|
|
51
47
|
var _context$trim;
|
|
@@ -65,10 +61,8 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
65
61
|
var hasProviderDisplayName = trimmedProviderDisplayName.length > 0;
|
|
66
62
|
var isSocialProofUsageHighEnough = connectedPct !== undefined && connectedPct >= SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD;
|
|
67
63
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
*/
|
|
71
|
-
var showSocialProofPill = providerPctMap !== null && expValEquals('platform_sl_3p_preauth_social_proof_inline_cta', 'isEnabled', true);
|
|
64
|
+
// Show the social proof pill once the trait data is available.
|
|
65
|
+
var showSocialProofPill = isProviderPctMapLoaded;
|
|
72
66
|
var bold = function bold(chunks) {
|
|
73
67
|
return /*#__PURE__*/React.createElement(Box, {
|
|
74
68
|
as: "strong",
|
|
@@ -153,17 +147,6 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
|
|
|
153
147
|
onAuthorise();
|
|
154
148
|
}
|
|
155
149
|
}, [fireEvent, onAuthorise]);
|
|
156
|
-
var renderActionButton = React.useCallback(function () {
|
|
157
|
-
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
158
|
-
onClick: handleConnectAccount,
|
|
159
|
-
viewType: 'unauthorised',
|
|
160
|
-
testId: "button-connect-account"
|
|
161
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
162
|
-
values: {
|
|
163
|
-
context: context
|
|
164
|
-
}
|
|
165
|
-
})));
|
|
166
|
-
}, [handleConnectAccount, context]);
|
|
167
150
|
var inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
168
151
|
testId: testId,
|
|
169
152
|
isSelected: isSelected,
|
|
@@ -176,12 +159,12 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
|
|
|
176
159
|
link: url,
|
|
177
160
|
onClick: onClick,
|
|
178
161
|
titleColor: "var(--ds-text-subtle, #505258)"
|
|
179
|
-
}), onAuthorise &&
|
|
162
|
+
}), onAuthorise && /*#__PURE__*/React.createElement(UnauthorisedConnectWithSocialProof, {
|
|
180
163
|
context: context,
|
|
181
164
|
extensionKey: extensionKey,
|
|
182
165
|
testId: testId,
|
|
183
166
|
onConnectClick: handleConnectAccount
|
|
184
|
-
})
|
|
167
|
+
}));
|
|
185
168
|
if (onAuthorise && showHoverPreview) {
|
|
186
169
|
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
187
170
|
url: url,
|
|
@@ -7,7 +7,6 @@ import "./index.compiled.css";
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
9
|
import { forwardRef } from 'react';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
import { Pressable, Box } from '@atlaskit/primitives/compiled';
|
|
12
11
|
var styles = {
|
|
13
12
|
button: "_1e0c1bgi",
|
|
@@ -32,7 +31,7 @@ export var ActionButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32
31
|
_ref$isSlimDesign = _ref.isSlimDesign,
|
|
33
32
|
isSlimDesign = _ref$isSlimDesign === void 0 ? false : _ref$isSlimDesign,
|
|
34
33
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35
|
-
var shouldUseUnauthorisedSlimStyle = viewType === 'unauthorised' && isSlimDesign
|
|
34
|
+
var shouldUseUnauthorisedSlimStyle = viewType === 'unauthorised' && isSlimDesign;
|
|
36
35
|
if (shouldUseUnauthorisedSlimStyle && !isDisabled) {
|
|
37
36
|
var onClick = props.onClick,
|
|
38
37
|
boxProps = _objectWithoutProperties(props, _excluded2);
|
|
@@ -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.1.
|
|
15
|
+
packageVersion: "46.1.11",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type SocialProofTier = 'low' | 'not-low';
|
|
2
2
|
export declare const SOCIAL_PROOF_3P_UNAUTH_BLOCK_EXPERIMENT_KEY = "social_proof_3p_unauth_block_exp";
|
|
3
|
-
export declare const INLINE_SOCIAL_PROOF_EXPERIMENT_KEY = "platform_sl_3p_preauth_social_proof_inline_cta";
|
|
4
3
|
export type SocialProofExperimentMetadata = {
|
|
5
4
|
isEligible: boolean;
|
|
6
5
|
tier?: SocialProofTier;
|
|
@@ -8,9 +7,6 @@ export type SocialProofExperimentMetadata = {
|
|
|
8
7
|
export type BlockCardSocialProofExperimentMeta = {
|
|
9
8
|
[SOCIAL_PROOF_3P_UNAUTH_BLOCK_EXPERIMENT_KEY]: SocialProofExperimentMetadata;
|
|
10
9
|
};
|
|
11
|
-
export type InlineSocialProofExperimentMeta = {
|
|
12
|
-
[INLINE_SOCIAL_PROOF_EXPERIMENT_KEY]: SocialProofExperimentMetadata;
|
|
13
|
-
};
|
|
14
10
|
export interface SocialProofExperiment {
|
|
15
11
|
/**
|
|
16
12
|
* The raw connected users percentage for the current provider, or undefined if not loaded/available.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { CardState } from '@atlaskit/linking-common/store';
|
|
2
2
|
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
3
3
|
import type { EmbedRovoActionsFooterExperimentMeta } from '../../../state/hooks/use-embed-rovo-actions-footer-experiment';
|
|
4
|
-
import type { BlockCardSocialProofExperimentMeta
|
|
4
|
+
import type { BlockCardSocialProofExperimentMeta } from '../../../state/hooks/use-social-proof-experiment';
|
|
5
5
|
import type { InternalCardActionOptions } from '../../Card/types';
|
|
6
|
-
type ExperimentMetaEventAttributes = Partial<BlockCardSocialProofExperimentMeta &
|
|
6
|
+
type ExperimentMetaEventAttributes = Partial<BlockCardSocialProofExperimentMeta & EmbedRovoActionsFooterExperimentMeta>;
|
|
7
7
|
type ExperimentMetaEventAttributesParams = {
|
|
8
8
|
actionOptions?: InternalCardActionOptions;
|
|
9
9
|
appearance: CardAppearance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "46.1.
|
|
3
|
+
"version": "46.1.12",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@atlaskit/primitives": "^22.5.0",
|
|
84
84
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
85
85
|
"@atlaskit/react-ufo": "^8.0.0",
|
|
86
|
-
"@atlaskit/rovo-triggers": "^11.
|
|
86
|
+
"@atlaskit/rovo-triggers": "^11.6.0",
|
|
87
87
|
"@atlaskit/section-message": "^10.2.0",
|
|
88
88
|
"@atlaskit/select": "^23.1.0",
|
|
89
89
|
"@atlaskit/spinner": "^20.4.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@atlaskit/textfield": "^10.2.0",
|
|
94
94
|
"@atlaskit/theme": "^28.2.0",
|
|
95
95
|
"@atlaskit/tile": "^5.0.0",
|
|
96
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
96
|
+
"@atlaskit/tmp-editor-statsig": "^217.0.0",
|
|
97
97
|
"@atlaskit/tokens": "^20.1.0",
|
|
98
98
|
"@atlaskit/tooltip": "^24.3.0",
|
|
99
99
|
"@atlaskit/ufo": "^2.0.0",
|
|
@@ -207,9 +207,6 @@
|
|
|
207
207
|
"platform_sl_3p_preauth_better_hovercard_killswitch": {
|
|
208
208
|
"type": "boolean"
|
|
209
209
|
},
|
|
210
|
-
"platform_sl_3p_preauth_soc_proof_inline_killswitch": {
|
|
211
|
-
"type": "boolean"
|
|
212
|
-
},
|
|
213
210
|
"platform_navx_smart_link_icon_label_a11y": {
|
|
214
211
|
"type": "boolean"
|
|
215
212
|
},
|
package/dist/cjs/state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.getInlineSocialProofExperimentMeta = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _getSocialProofExperimentMetadata = require("./getSocialProofExperimentMetadata");
|
|
10
|
-
var _index = require("./index");
|
|
11
|
-
var getInlineSocialProofExperimentMeta = exports.getInlineSocialProofExperimentMeta = function getInlineSocialProofExperimentMeta(params) {
|
|
12
|
-
return (0, _defineProperty2.default)({}, _index.INLINE_SOCIAL_PROOF_EXPERIMENT_KEY, (0, _getSocialProofExperimentMetadata.getSocialProofExperimentMetadata)(params));
|
|
13
|
-
};
|
package/dist/es2019/state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { getSocialProofExperimentMetadata } from './getSocialProofExperimentMetadata';
|
|
2
|
-
import { INLINE_SOCIAL_PROOF_EXPERIMENT_KEY } from './index';
|
|
3
|
-
export const getInlineSocialProofExperimentMeta = params => ({
|
|
4
|
-
[INLINE_SOCIAL_PROOF_EXPERIMENT_KEY]: getSocialProofExperimentMetadata(params)
|
|
5
|
-
});
|
package/dist/esm/state/hooks/use-social-proof-experiment/getInlineSocialProofExperimentMeta.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { getSocialProofExperimentMetadata } from './getSocialProofExperimentMetadata';
|
|
3
|
-
import { INLINE_SOCIAL_PROOF_EXPERIMENT_KEY } from './index';
|
|
4
|
-
export var getInlineSocialProofExperimentMeta = function getInlineSocialProofExperimentMeta(params) {
|
|
5
|
-
return _defineProperty({}, INLINE_SOCIAL_PROOF_EXPERIMENT_KEY, getSocialProofExperimentMetadata(params));
|
|
6
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|