@atlaskit/smart-card 44.25.1 → 44.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-false.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-true.png +3 -0
- package/dist/cjs/entry-points/hook-use-smart-link-destination-url.js +12 -0
- package/dist/cjs/state/hooks/use-destination-url/index.js +39 -0
- package/dist/cjs/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.compiled.css +6 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +11 -5
- package/dist/cjs/view/InlineCard/common/action-button/index.compiled.css +2 -0
- package/dist/cjs/view/InlineCard/common/action-button/index.js +2 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-false.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-true.png +3 -0
- package/dist/es2019/entry-points/hook-use-smart-link-destination-url.js +1 -0
- package/dist/es2019/state/hooks/use-destination-url/index.js +32 -0
- package/dist/es2019/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.compiled.css +6 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +11 -5
- package/dist/es2019/view/InlineCard/common/action-button/index.compiled.css +2 -0
- package/dist/es2019/view/InlineCard/common/action-button/index.js +2 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-false.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-with-social-proof-in-narrow-container--default--platform-lp-social-proof-inline-overflow-bug-true.png +3 -0
- package/dist/esm/entry-points/hook-use-smart-link-destination-url.js +1 -0
- package/dist/esm/state/hooks/use-destination-url/index.js +34 -0
- package/dist/esm/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.compiled.css +6 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +11 -5
- package/dist/esm/view/InlineCard/common/action-button/index.compiled.css +2 -0
- package/dist/esm/view/InlineCard/common/action-button/index.js +2 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/entry-points/hook-use-smart-link-destination-url.d.ts +1 -0
- package/dist/types/state/hooks/use-destination-url/index.d.ts +1 -0
- package/dist/types/state/hooks/use-smart-link-cross-product-url-wrapper/index.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/hook-use-smart-link-destination-url.d.ts +1 -0
- package/dist/types-ts4.5/state/hooks/use-destination-url/index.d.ts +1 -0
- package/dist/types-ts4.5/state/hooks/use-smart-link-cross-product-url-wrapper/index.d.ts +1 -1
- package/hook/use-smart-link-destination-url/package.json +17 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`92da883bae00d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/92da883bae00d) -
|
|
8
|
+
Add `useSmartLinkDestinationUrl` hook via new entry point
|
|
9
|
+
`@atlaskit/smart-card/hook/use-smart-link-destination-url`.
|
|
10
|
+
|
|
11
|
+
The hook resolves the XPC-wrapped destination URL for a given Smart Link URL behind the
|
|
12
|
+
`platform_smartlink_xpc_url_wrapping` feature gate. When the gate is off or the link has not yet
|
|
13
|
+
resolved, it falls back gracefully to the original URL. This enables consumers (e.g. editor
|
|
14
|
+
toolbar and overlays) to open the cross-product-parameter-enriched URL without re-implementing
|
|
15
|
+
SmartCard's internal URL resolution logic.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`9b6eb080bfa56`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b6eb080bfa56) -
|
|
20
|
+
Keep inline Smart Link social proof CTAs together in narrow containers.
|
|
21
|
+
|
|
22
|
+
All changes behind feature gate: platform_lp_social_proof_inline_overflow_bug. No public API
|
|
23
|
+
change.
|
|
24
|
+
|
|
3
25
|
## 44.25.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "useSmartLinkDestinationUrl", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _useDestinationUrl.useDestinationUrl;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _useDestinationUrl = require("../state/hooks/use-destination-url");
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useDestinationUrl = void 0;
|
|
7
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
8
|
+
var _helpers = require("../../helpers");
|
|
9
|
+
var _store = require("../../store");
|
|
10
|
+
var _useSmartLinkCrossProductUrlWrapper = require("../use-smart-link-cross-product-url-wrapper");
|
|
11
|
+
/**
|
|
12
|
+
* Returns the resolved destination URL for a Smart Link, with cross-product analytics
|
|
13
|
+
* parameters appended when the `platform_smartlink_xpc_url_wrapping` feature gate is enabled.
|
|
14
|
+
*
|
|
15
|
+
* This is the same URL that SmartCard would navigate to when clicked. Use this as an `href`
|
|
16
|
+
* wherever you render a link to a Smart Link URL outside of the SmartCard component itself
|
|
17
|
+
* (e.g. toolbar buttons, overlays).
|
|
18
|
+
*
|
|
19
|
+
* Falls back to the raw `url` when:
|
|
20
|
+
* - The link has not yet resolved
|
|
21
|
+
* - The feature gate is disabled
|
|
22
|
+
* - The link is not a first-party Atlassian link
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* const href = useSmartLinkDestinationUrl(url);
|
|
26
|
+
*
|
|
27
|
+
* Use as <a href={href} target="_blank">Open link</a>
|
|
28
|
+
*/
|
|
29
|
+
var useDestinationUrlImplementation = function useDestinationUrlImplementation(url) {
|
|
30
|
+
var state = (0, _store.useSmartCardState)(url);
|
|
31
|
+
var appendCrossProductAnalyticsParams = (0, _useSmartLinkCrossProductUrlWrapper.useSmartLinkCrossProductUrlWrapper)({
|
|
32
|
+
details: state.details
|
|
33
|
+
});
|
|
34
|
+
var resolvedUrl = (0, _helpers.getClickUrl)(url, state.details);
|
|
35
|
+
return appendCrossProductAnalyticsParams(resolvedUrl);
|
|
36
|
+
};
|
|
37
|
+
var useDestinationUrl = exports.useDestinationUrl = (0, _platformFeatureFlagsReact.functionWithFG)('platform_smartlink_xpc_url_wrapping', useDestinationUrlImplementation, function (url) {
|
|
38
|
+
return url;
|
|
39
|
+
});
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.useSmartLinkCrossProductUrlWrapperGated = exports.getIsFirstPartyLink = void 0;
|
|
7
|
+
exports.useSmartLinkCrossProductUrlWrapperGated = exports.useSmartLinkCrossProductUrlWrapper = exports.getIsFirstPartyLink = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _useCrossProductUrlWrapper = require("@atlaskit/analytics-cross-product/useCrossProductUrlWrapper");
|
|
@@ -24,7 +24,7 @@ var identityUrlWrapper = function identityUrlWrapper(url) {
|
|
|
24
24
|
var useSmartLinkCrossProductUrlWrapperFallback = function useSmartLinkCrossProductUrlWrapperFallback(_args) {
|
|
25
25
|
return identityUrlWrapper;
|
|
26
26
|
};
|
|
27
|
-
var useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProductUrlWrapper(_ref) {
|
|
27
|
+
var useSmartLinkCrossProductUrlWrapper = exports.useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProductUrlWrapper(_ref) {
|
|
28
28
|
var _effectiveProduct$toL;
|
|
29
29
|
var details = _ref.details;
|
|
30
30
|
var _useSmartLinkContext = (0, _linkProvider.useSmartLinkContext)(),
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card" || '',
|
|
14
|
-
packageVersion: "44.25.
|
|
14
|
+
packageVersion: "44.25.1" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}._18m915vq{overflow-y:hidden}
|
|
3
|
+
._18m9ewfl{overflow-y:visible}
|
|
3
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
4
5
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
5
6
|
._1bto1l2s{text-overflow:ellipsis}
|
|
6
|
-
.
|
|
7
|
+
._1btozryt{text-overflow:clip}
|
|
8
|
+
._1e0c1bgi{display:contents}
|
|
7
9
|
._1e0c1nu9{display:inline}
|
|
10
|
+
._1nmz9jpi{word-break:break-all}
|
|
8
11
|
._1reo15vq{overflow-x:hidden}
|
|
12
|
+
._1reoewfl{overflow-x:visible}
|
|
9
13
|
._1wybtjj4{font-size:.8em}
|
|
10
14
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
11
15
|
._4cvr1h6o{align-items:center}
|
|
@@ -16,6 +20,7 @@
|
|
|
16
20
|
._k48pwu06{font-weight:var(--ds-font-weight-bold,653)}
|
|
17
21
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
18
22
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
23
|
+
._o5721btx{white-space:break-spaces}
|
|
19
24
|
._o5721q9c{white-space:nowrap}
|
|
20
25
|
._p12f1osq{max-width:100%}
|
|
21
26
|
._s7n4t94y{vertical-align:1px}
|
|
@@ -12,6 +12,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _reactIntl = require("react-intl");
|
|
14
14
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
15
|
+
var _css = require("@atlaskit/css");
|
|
15
16
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
16
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -38,10 +39,12 @@ var SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD = 30;
|
|
|
38
39
|
var SOCIAL_PROOF_TRAIT_NAME = 'sl_3p_connected_providers_site_pct';
|
|
39
40
|
var socialProofPillStyles = {
|
|
40
41
|
strong: "_k48pwu06",
|
|
41
|
-
inlineContainer: "_1e0c116y _4cvr1h6o",
|
|
42
42
|
root: "_2rko12b0 _1e0c1nu9 _4cvr1h6o _vchhusvi _p12f1osq _bfhk1dpa _syazazsu _y3gn18uv _1wybtjj4 _s7n4t94y _ca0qv77o _n3tdv77o _u5f312x7 _19bv12x7 _2hwx1b66 _irr3plhp _1di61gdz",
|
|
43
43
|
label: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c",
|
|
44
|
-
|
|
44
|
+
wrappingLabel: "_1reoewfl _18m9ewfl _1btozryt _o5721btx _1nmz9jpi",
|
|
45
|
+
button: "_bfhk1j28 _u5f3ze3t _19bvze3t _ca0qze3t _n3tdze3t",
|
|
46
|
+
pressableContents: "_1e0c1bgi",
|
|
47
|
+
inlineGroup: "_1e0c1nu9"
|
|
45
48
|
};
|
|
46
49
|
|
|
47
50
|
/**
|
|
@@ -110,7 +113,7 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
110
113
|
testId: "".concat(testId, "-social-proof-tag")
|
|
111
114
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
112
115
|
as: "span",
|
|
113
|
-
xcss: socialProofPillStyles.label
|
|
116
|
+
xcss: (0, _css.cx)(socialProofPillStyles.label, (0, _platformFeatureFlags.fg)('platform_lp_social_proof_inline_overflow_bug') && socialProofPillStyles.wrappingLabel)
|
|
114
117
|
}, socialProofPillContent)) : null, /*#__PURE__*/_react.default.createElement(_actionButton.ActionButton, {
|
|
115
118
|
onClick: onConnectClick,
|
|
116
119
|
viewType: "unauthorised",
|
|
@@ -126,8 +129,11 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
126
129
|
style: {
|
|
127
130
|
font: "inherit"
|
|
128
131
|
},
|
|
129
|
-
xcss: socialProofPillStyles.button
|
|
130
|
-
},
|
|
132
|
+
xcss: (0, _css.cx)(socialProofPillStyles.button, (0, _platformFeatureFlags.fg)('platform_lp_social_proof_inline_overflow_bug') && socialProofPillStyles.pressableContents)
|
|
133
|
+
}, (0, _platformFeatureFlags.fg)('platform_lp_social_proof_inline_overflow_bug') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
134
|
+
as: "span",
|
|
135
|
+
xcss: socialProofPillStyles.inlineGroup
|
|
136
|
+
}, buttonContent) : buttonContent) : buttonContent;
|
|
131
137
|
};
|
|
132
138
|
var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref2) {
|
|
133
139
|
var url = _ref2.url,
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
5
5
|
._1e0c1bgi{display:contents}
|
|
6
6
|
._1e0c1nu9{display:inline}
|
|
7
|
+
._1nmz4jg8{word-break:normal}
|
|
7
8
|
._1nmz9jpi{word-break:break-all}
|
|
8
9
|
._1o0zlb4i{border-bottom-right-radius:var(--ds-radius-xsmall,2px)}
|
|
9
10
|
._1wybtjj4{font-size:.8em}
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
._n3tdt94y{padding-bottom:1px}
|
|
25
26
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
26
27
|
._o5721btx{white-space:break-spaces}
|
|
28
|
+
._o5721q9c{white-space:nowrap}
|
|
27
29
|
._qrwqlb4i{border-top-right-radius:var(--ds-radius-xsmall,2px)}
|
|
28
30
|
._s7n4t94y{vertical-align:1px}
|
|
29
31
|
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
@@ -22,6 +22,7 @@ var styles = {
|
|
|
22
22
|
button: "_1e0c1bgi",
|
|
23
23
|
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
24
24
|
innerContainerSocialProofConnect: "_2rko12b0 _syaz15cr _80omtlke _bfhkjmqp _2hwxv77o _1e0c1nu9 _4cvr1h6o _1wybtjj4 _1y1m1u8q _16d9qvcn _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _s7n4t94y _o5721btx _1nmz9jpi _irr31q28 _1di612kk",
|
|
25
|
+
innerContainerNoWrap: "_o5721q9c _1nmz4jg8",
|
|
25
26
|
enabled: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
26
27
|
disabled: "_syaz1gmx _80om13gf _bfhk187o",
|
|
27
28
|
unauthorised: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk"
|
|
@@ -51,7 +52,7 @@ var ActionButton = exports.ActionButton = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
51
52
|
},
|
|
52
53
|
xcss: styles.button
|
|
53
54
|
}), /*#__PURE__*/React.createElement("span", {
|
|
54
|
-
className: (0, _runtime.ax)([styles.innerContainerSocialProofConnect])
|
|
55
|
+
className: (0, _runtime.ax)([styles.innerContainerSocialProofConnect, (0, _platformFeatureFlags.fg)('platform_lp_social_proof_inline_overflow_bug') && ""])
|
|
55
56
|
}, children));
|
|
56
57
|
}
|
|
57
58
|
return /*#__PURE__*/React.createElement(_compiled.Pressable, (0, _extends2.default)({}, props, {
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "44.25.
|
|
22
|
+
packageVersion: "44.25.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDestinationUrl as useSmartLinkDestinationUrl } from '../state/hooks/use-destination-url';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { functionWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
2
|
+
import { getClickUrl } from '../../helpers';
|
|
3
|
+
import { useSmartCardState } from '../../store';
|
|
4
|
+
import { useSmartLinkCrossProductUrlWrapper } from '../use-smart-link-cross-product-url-wrapper';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Returns the resolved destination URL for a Smart Link, with cross-product analytics
|
|
8
|
+
* parameters appended when the `platform_smartlink_xpc_url_wrapping` feature gate is enabled.
|
|
9
|
+
*
|
|
10
|
+
* This is the same URL that SmartCard would navigate to when clicked. Use this as an `href`
|
|
11
|
+
* wherever you render a link to a Smart Link URL outside of the SmartCard component itself
|
|
12
|
+
* (e.g. toolbar buttons, overlays).
|
|
13
|
+
*
|
|
14
|
+
* Falls back to the raw `url` when:
|
|
15
|
+
* - The link has not yet resolved
|
|
16
|
+
* - The feature gate is disabled
|
|
17
|
+
* - The link is not a first-party Atlassian link
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const href = useSmartLinkDestinationUrl(url);
|
|
21
|
+
*
|
|
22
|
+
* Use as <a href={href} target="_blank">Open link</a>
|
|
23
|
+
*/
|
|
24
|
+
const useDestinationUrlImplementation = url => {
|
|
25
|
+
const state = useSmartCardState(url);
|
|
26
|
+
const appendCrossProductAnalyticsParams = useSmartLinkCrossProductUrlWrapper({
|
|
27
|
+
details: state.details
|
|
28
|
+
});
|
|
29
|
+
const resolvedUrl = getClickUrl(url, state.details);
|
|
30
|
+
return appendCrossProductAnalyticsParams(resolvedUrl);
|
|
31
|
+
};
|
|
32
|
+
export const useDestinationUrl = functionWithFG('platform_smartlink_xpc_url_wrapping', useDestinationUrlImplementation, url => url);
|
|
@@ -10,7 +10,7 @@ export const getIsFirstPartyLink = details => {
|
|
|
10
10
|
};
|
|
11
11
|
const identityUrlWrapper = url => url;
|
|
12
12
|
const useSmartLinkCrossProductUrlWrapperFallback = _args => identityUrlWrapper;
|
|
13
|
-
const useSmartLinkCrossProductUrlWrapper = ({
|
|
13
|
+
export const useSmartLinkCrossProductUrlWrapper = ({
|
|
14
14
|
details
|
|
15
15
|
}) => {
|
|
16
16
|
var _effectiveProduct$toL;
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card" || '',
|
|
5
|
-
packageVersion: "44.25.
|
|
5
|
+
packageVersion: "44.25.1" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}._18m915vq{overflow-y:hidden}
|
|
3
|
+
._18m9ewfl{overflow-y:visible}
|
|
3
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
4
5
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
5
6
|
._1bto1l2s{text-overflow:ellipsis}
|
|
6
|
-
.
|
|
7
|
+
._1btozryt{text-overflow:clip}
|
|
8
|
+
._1e0c1bgi{display:contents}
|
|
7
9
|
._1e0c1nu9{display:inline}
|
|
10
|
+
._1nmz9jpi{word-break:break-all}
|
|
8
11
|
._1reo15vq{overflow-x:hidden}
|
|
12
|
+
._1reoewfl{overflow-x:visible}
|
|
9
13
|
._1wybtjj4{font-size:.8em}
|
|
10
14
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
11
15
|
._4cvr1h6o{align-items:center}
|
|
@@ -16,6 +20,7 @@
|
|
|
16
20
|
._k48pwu06{font-weight:var(--ds-font-weight-bold,653)}
|
|
17
21
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
18
22
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
23
|
+
._o5721btx{white-space:break-spaces}
|
|
19
24
|
._o5721q9c{white-space:nowrap}
|
|
20
25
|
._p12f1osq{max-width:100%}
|
|
21
26
|
._s7n4t94y{vertical-align:1px}
|
|
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl';
|
|
7
7
|
import { di } from 'react-magnetic-di';
|
|
8
|
+
import { cx } from '@atlaskit/css';
|
|
8
9
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
9
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
@@ -31,10 +32,12 @@ const SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD = 30;
|
|
|
31
32
|
const SOCIAL_PROOF_TRAIT_NAME = 'sl_3p_connected_providers_site_pct';
|
|
32
33
|
const socialProofPillStyles = {
|
|
33
34
|
strong: "_k48pwu06",
|
|
34
|
-
inlineContainer: "_1e0c116y _4cvr1h6o",
|
|
35
35
|
root: "_2rko12b0 _1e0c1nu9 _4cvr1h6o _vchhusvi _p12f1osq _bfhk1dpa _syazazsu _y3gn18uv _1wybtjj4 _s7n4t94y _ca0qv77o _n3tdv77o _u5f312x7 _19bv12x7 _2hwx1b66 _irr3plhp _1di61gdz",
|
|
36
36
|
label: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c",
|
|
37
|
-
|
|
37
|
+
wrappingLabel: "_1reoewfl _18m9ewfl _1btozryt _o5721btx _1nmz9jpi",
|
|
38
|
+
button: "_bfhk1j28 _u5f3ze3t _19bvze3t _ca0qze3t _n3tdze3t",
|
|
39
|
+
pressableContents: "_1e0c1bgi",
|
|
40
|
+
inlineGroup: "_1e0c1nu9"
|
|
38
41
|
};
|
|
39
42
|
|
|
40
43
|
/**
|
|
@@ -102,7 +105,7 @@ const UnauthorisedConnectWithSocialProof = ({
|
|
|
102
105
|
testId: `${testId}-social-proof-tag`
|
|
103
106
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
104
107
|
as: "span",
|
|
105
|
-
xcss: socialProofPillStyles.label
|
|
108
|
+
xcss: cx(socialProofPillStyles.label, fg('platform_lp_social_proof_inline_overflow_bug') && socialProofPillStyles.wrappingLabel)
|
|
106
109
|
}, socialProofPillContent)) : null, /*#__PURE__*/React.createElement(ActionButton, {
|
|
107
110
|
onClick: onConnectClick,
|
|
108
111
|
viewType: "unauthorised",
|
|
@@ -118,8 +121,11 @@ const UnauthorisedConnectWithSocialProof = ({
|
|
|
118
121
|
style: {
|
|
119
122
|
font: `inherit`
|
|
120
123
|
},
|
|
121
|
-
xcss: socialProofPillStyles.button
|
|
122
|
-
},
|
|
124
|
+
xcss: cx(socialProofPillStyles.button, fg('platform_lp_social_proof_inline_overflow_bug') && socialProofPillStyles.pressableContents)
|
|
125
|
+
}, fg('platform_lp_social_proof_inline_overflow_bug') ? /*#__PURE__*/React.createElement(Box, {
|
|
126
|
+
as: "span",
|
|
127
|
+
xcss: socialProofPillStyles.inlineGroup
|
|
128
|
+
}, buttonContent) : buttonContent) : buttonContent;
|
|
123
129
|
};
|
|
124
130
|
export const InlineCardUnauthorizedView = ({
|
|
125
131
|
url,
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
5
5
|
._1e0c1bgi{display:contents}
|
|
6
6
|
._1e0c1nu9{display:inline}
|
|
7
|
+
._1nmz4jg8{word-break:normal}
|
|
7
8
|
._1nmz9jpi{word-break:break-all}
|
|
8
9
|
._1o0zlb4i{border-bottom-right-radius:var(--ds-radius-xsmall,2px)}
|
|
9
10
|
._1wybtjj4{font-size:.8em}
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
._n3tdt94y{padding-bottom:1px}
|
|
25
26
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
26
27
|
._o5721btx{white-space:break-spaces}
|
|
28
|
+
._o5721q9c{white-space:nowrap}
|
|
27
29
|
._qrwqlb4i{border-top-right-radius:var(--ds-radius-xsmall,2px)}
|
|
28
30
|
._s7n4t94y{vertical-align:1px}
|
|
29
31
|
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
@@ -10,6 +10,7 @@ const styles = {
|
|
|
10
10
|
button: "_1e0c1bgi",
|
|
11
11
|
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
12
12
|
innerContainerSocialProofConnect: "_2rko12b0 _syaz15cr _80omtlke _bfhkjmqp _2hwxv77o _1e0c1nu9 _4cvr1h6o _1wybtjj4 _1y1m1u8q _16d9qvcn _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _s7n4t94y _o5721btx _1nmz9jpi _irr31q28 _1di612kk",
|
|
13
|
+
innerContainerNoWrap: "_o5721q9c _1nmz4jg8",
|
|
13
14
|
enabled: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
14
15
|
disabled: "_syaz1gmx _80om13gf _bfhk187o",
|
|
15
16
|
unauthorised: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk"
|
|
@@ -40,7 +41,7 @@ export const ActionButton = /*#__PURE__*/forwardRef(({
|
|
|
40
41
|
},
|
|
41
42
|
xcss: styles.button
|
|
42
43
|
}), /*#__PURE__*/React.createElement("span", {
|
|
43
|
-
className: ax([styles.innerContainerSocialProofConnect])
|
|
44
|
+
className: ax([styles.innerContainerSocialProofConnect, fg('platform_lp_social_proof_inline_overflow_bug') && ""])
|
|
44
45
|
}, children));
|
|
45
46
|
}
|
|
46
47
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, props, {
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "44.25.
|
|
12
|
+
packageVersion: "44.25.1",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDestinationUrl as useSmartLinkDestinationUrl } from '../state/hooks/use-destination-url';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { functionWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
2
|
+
import { getClickUrl } from '../../helpers';
|
|
3
|
+
import { useSmartCardState } from '../../store';
|
|
4
|
+
import { useSmartLinkCrossProductUrlWrapper } from '../use-smart-link-cross-product-url-wrapper';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Returns the resolved destination URL for a Smart Link, with cross-product analytics
|
|
8
|
+
* parameters appended when the `platform_smartlink_xpc_url_wrapping` feature gate is enabled.
|
|
9
|
+
*
|
|
10
|
+
* This is the same URL that SmartCard would navigate to when clicked. Use this as an `href`
|
|
11
|
+
* wherever you render a link to a Smart Link URL outside of the SmartCard component itself
|
|
12
|
+
* (e.g. toolbar buttons, overlays).
|
|
13
|
+
*
|
|
14
|
+
* Falls back to the raw `url` when:
|
|
15
|
+
* - The link has not yet resolved
|
|
16
|
+
* - The feature gate is disabled
|
|
17
|
+
* - The link is not a first-party Atlassian link
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const href = useSmartLinkDestinationUrl(url);
|
|
21
|
+
*
|
|
22
|
+
* Use as <a href={href} target="_blank">Open link</a>
|
|
23
|
+
*/
|
|
24
|
+
var useDestinationUrlImplementation = function useDestinationUrlImplementation(url) {
|
|
25
|
+
var state = useSmartCardState(url);
|
|
26
|
+
var appendCrossProductAnalyticsParams = useSmartLinkCrossProductUrlWrapper({
|
|
27
|
+
details: state.details
|
|
28
|
+
});
|
|
29
|
+
var resolvedUrl = getClickUrl(url, state.details);
|
|
30
|
+
return appendCrossProductAnalyticsParams(resolvedUrl);
|
|
31
|
+
};
|
|
32
|
+
export var useDestinationUrl = functionWithFG('platform_smartlink_xpc_url_wrapping', useDestinationUrlImplementation, function (url) {
|
|
33
|
+
return url;
|
|
34
|
+
});
|
|
@@ -17,7 +17,7 @@ var identityUrlWrapper = function identityUrlWrapper(url) {
|
|
|
17
17
|
var useSmartLinkCrossProductUrlWrapperFallback = function useSmartLinkCrossProductUrlWrapperFallback(_args) {
|
|
18
18
|
return identityUrlWrapper;
|
|
19
19
|
};
|
|
20
|
-
var useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProductUrlWrapper(_ref) {
|
|
20
|
+
export var useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProductUrlWrapper(_ref) {
|
|
21
21
|
var _effectiveProduct$toL;
|
|
22
22
|
var details = _ref.details;
|
|
23
23
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "44.25.
|
|
7
|
+
packageVersion: "44.25.1" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}._18m915vq{overflow-y:hidden}
|
|
3
|
+
._18m9ewfl{overflow-y:visible}
|
|
3
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
4
5
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
5
6
|
._1bto1l2s{text-overflow:ellipsis}
|
|
6
|
-
.
|
|
7
|
+
._1btozryt{text-overflow:clip}
|
|
8
|
+
._1e0c1bgi{display:contents}
|
|
7
9
|
._1e0c1nu9{display:inline}
|
|
10
|
+
._1nmz9jpi{word-break:break-all}
|
|
8
11
|
._1reo15vq{overflow-x:hidden}
|
|
12
|
+
._1reoewfl{overflow-x:visible}
|
|
9
13
|
._1wybtjj4{font-size:.8em}
|
|
10
14
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
11
15
|
._4cvr1h6o{align-items:center}
|
|
@@ -16,6 +20,7 @@
|
|
|
16
20
|
._k48pwu06{font-weight:var(--ds-font-weight-bold,653)}
|
|
17
21
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
18
22
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
23
|
+
._o5721btx{white-space:break-spaces}
|
|
19
24
|
._o5721q9c{white-space:nowrap}
|
|
20
25
|
._p12f1osq{max-width:100%}
|
|
21
26
|
._s7n4t94y{vertical-align:1px}
|
|
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl';
|
|
7
7
|
import { di } from 'react-magnetic-di';
|
|
8
|
+
import { cx } from '@atlaskit/css';
|
|
8
9
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
9
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
@@ -31,10 +32,12 @@ var SOCIAL_PROOF_TEAM_PREVIEW_THRESHOLD = 30;
|
|
|
31
32
|
var SOCIAL_PROOF_TRAIT_NAME = 'sl_3p_connected_providers_site_pct';
|
|
32
33
|
var socialProofPillStyles = {
|
|
33
34
|
strong: "_k48pwu06",
|
|
34
|
-
inlineContainer: "_1e0c116y _4cvr1h6o",
|
|
35
35
|
root: "_2rko12b0 _1e0c1nu9 _4cvr1h6o _vchhusvi _p12f1osq _bfhk1dpa _syazazsu _y3gn18uv _1wybtjj4 _s7n4t94y _ca0qv77o _n3tdv77o _u5f312x7 _19bv12x7 _2hwx1b66 _irr3plhp _1di61gdz",
|
|
36
36
|
label: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c",
|
|
37
|
-
|
|
37
|
+
wrappingLabel: "_1reoewfl _18m9ewfl _1btozryt _o5721btx _1nmz9jpi",
|
|
38
|
+
button: "_bfhk1j28 _u5f3ze3t _19bvze3t _ca0qze3t _n3tdze3t",
|
|
39
|
+
pressableContents: "_1e0c1bgi",
|
|
40
|
+
inlineGroup: "_1e0c1nu9"
|
|
38
41
|
};
|
|
39
42
|
|
|
40
43
|
/**
|
|
@@ -103,7 +106,7 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
103
106
|
testId: "".concat(testId, "-social-proof-tag")
|
|
104
107
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
105
108
|
as: "span",
|
|
106
|
-
xcss: socialProofPillStyles.label
|
|
109
|
+
xcss: cx(socialProofPillStyles.label, fg('platform_lp_social_proof_inline_overflow_bug') && socialProofPillStyles.wrappingLabel)
|
|
107
110
|
}, socialProofPillContent)) : null, /*#__PURE__*/React.createElement(ActionButton, {
|
|
108
111
|
onClick: onConnectClick,
|
|
109
112
|
viewType: "unauthorised",
|
|
@@ -119,8 +122,11 @@ var UnauthorisedConnectWithSocialProof = function UnauthorisedConnectWithSocialP
|
|
|
119
122
|
style: {
|
|
120
123
|
font: "inherit"
|
|
121
124
|
},
|
|
122
|
-
xcss: socialProofPillStyles.button
|
|
123
|
-
},
|
|
125
|
+
xcss: cx(socialProofPillStyles.button, fg('platform_lp_social_proof_inline_overflow_bug') && socialProofPillStyles.pressableContents)
|
|
126
|
+
}, fg('platform_lp_social_proof_inline_overflow_bug') ? /*#__PURE__*/React.createElement(Box, {
|
|
127
|
+
as: "span",
|
|
128
|
+
xcss: socialProofPillStyles.inlineGroup
|
|
129
|
+
}, buttonContent) : buttonContent) : buttonContent;
|
|
124
130
|
};
|
|
125
131
|
export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref2) {
|
|
126
132
|
var url = _ref2.url,
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
5
5
|
._1e0c1bgi{display:contents}
|
|
6
6
|
._1e0c1nu9{display:inline}
|
|
7
|
+
._1nmz4jg8{word-break:normal}
|
|
7
8
|
._1nmz9jpi{word-break:break-all}
|
|
8
9
|
._1o0zlb4i{border-bottom-right-radius:var(--ds-radius-xsmall,2px)}
|
|
9
10
|
._1wybtjj4{font-size:.8em}
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
._n3tdt94y{padding-bottom:1px}
|
|
25
26
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
26
27
|
._o5721btx{white-space:break-spaces}
|
|
28
|
+
._o5721q9c{white-space:nowrap}
|
|
27
29
|
._qrwqlb4i{border-top-right-radius:var(--ds-radius-xsmall,2px)}
|
|
28
30
|
._s7n4t94y{vertical-align:1px}
|
|
29
31
|
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
@@ -13,6 +13,7 @@ var styles = {
|
|
|
13
13
|
button: "_1e0c1bgi",
|
|
14
14
|
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
15
15
|
innerContainerSocialProofConnect: "_2rko12b0 _syaz15cr _80omtlke _bfhkjmqp _2hwxv77o _1e0c1nu9 _4cvr1h6o _1wybtjj4 _1y1m1u8q _16d9qvcn _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _s7n4t94y _o5721btx _1nmz9jpi _irr31q28 _1di612kk",
|
|
16
|
+
innerContainerNoWrap: "_o5721q9c _1nmz4jg8",
|
|
16
17
|
enabled: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
17
18
|
disabled: "_syaz1gmx _80om13gf _bfhk187o",
|
|
18
19
|
unauthorised: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk"
|
|
@@ -42,7 +43,7 @@ export var ActionButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
42
43
|
},
|
|
43
44
|
xcss: styles.button
|
|
44
45
|
}), /*#__PURE__*/React.createElement("span", {
|
|
45
|
-
className: ax([styles.innerContainerSocialProofConnect])
|
|
46
|
+
className: ax([styles.innerContainerSocialProofConnect, fg('platform_lp_social_proof_inline_overflow_bug') && ""])
|
|
46
47
|
}, children));
|
|
47
48
|
}
|
|
48
49
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, props, {
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "44.25.
|
|
15
|
+
packageVersion: "44.25.1",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDestinationUrl as useSmartLinkDestinationUrl } from '../state/hooks/use-destination-url';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDestinationUrl: (url: string) => string;
|
|
@@ -3,6 +3,6 @@ export declare const getIsFirstPartyLink: (details?: SmartLinkResponse) => boole
|
|
|
3
3
|
type UseSmartLinkCrossProductUrlWrapperArgs = {
|
|
4
4
|
details?: SmartLinkResponse;
|
|
5
5
|
};
|
|
6
|
-
declare const useSmartLinkCrossProductUrlWrapper: ({ details, }: UseSmartLinkCrossProductUrlWrapperArgs) => ((url: string) => string);
|
|
6
|
+
export declare const useSmartLinkCrossProductUrlWrapper: ({ details, }: UseSmartLinkCrossProductUrlWrapperArgs) => ((url: string) => string);
|
|
7
7
|
export declare const useSmartLinkCrossProductUrlWrapperGated: typeof useSmartLinkCrossProductUrlWrapper;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDestinationUrl as useSmartLinkDestinationUrl } from '../state/hooks/use-destination-url';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDestinationUrl: (url: string) => string;
|
|
@@ -3,6 +3,6 @@ export declare const getIsFirstPartyLink: (details?: SmartLinkResponse) => boole
|
|
|
3
3
|
type UseSmartLinkCrossProductUrlWrapperArgs = {
|
|
4
4
|
details?: SmartLinkResponse;
|
|
5
5
|
};
|
|
6
|
-
declare const useSmartLinkCrossProductUrlWrapper: ({ details, }: UseSmartLinkCrossProductUrlWrapperArgs) => ((url: string) => string);
|
|
6
|
+
export declare const useSmartLinkCrossProductUrlWrapper: ({ details, }: UseSmartLinkCrossProductUrlWrapperArgs) => ((url: string) => string);
|
|
7
7
|
export declare const useSmartLinkCrossProductUrlWrapperGated: typeof useSmartLinkCrossProductUrlWrapper;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/smart-card/hook/use-smart-link-destination-url",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/hook-use-smart-link-destination-url.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/hook-use-smart-link-destination-url.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/hook-use-smart-link-destination-url.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/entry-points/hook-use-smart-link-destination-url.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../../dist/types-ts4.5/entry-points/hook-use-smart-link-destination-url.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.
|
|
3
|
+
"version": "44.26.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -244,6 +244,9 @@
|
|
|
244
244
|
"platform_sl_3p_preauth_soc_proof_inline_killswitch": {
|
|
245
245
|
"type": "boolean"
|
|
246
246
|
},
|
|
247
|
+
"platform_lp_social_proof_inline_overflow_bug": {
|
|
248
|
+
"type": "boolean"
|
|
249
|
+
},
|
|
247
250
|
"platform_navx_smart_link_icon_label_a11y": {
|
|
248
251
|
"type": "boolean"
|
|
249
252
|
},
|