@atlaskit/smart-card 44.20.2 → 44.20.3
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 +14 -0
- package/dist/cjs/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +3 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +3 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +3 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.20.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7577685ccfaf2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7577685ccfaf2) -
|
|
8
|
+
Add `bridgeProduct` prop to `SmartCardProvider` for cross-product URL wrapping analytics.
|
|
9
|
+
|
|
10
|
+
`bridgeProduct` allows consumers to override the bridge identifier used when wrapping smart link
|
|
11
|
+
URLs for XPC analytics. When omitted, defaults to `'smartLinks'`. The
|
|
12
|
+
`useSmartLinkCrossProductUrlWrapper` hook now reads `bridgeProduct` from context and passes it
|
|
13
|
+
through to `useCrossProductUrlWrapper`.
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 44.20.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -24,9 +24,10 @@ var useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProductUrlWra
|
|
|
24
24
|
var _product$toLowerCase;
|
|
25
25
|
var details = _ref.details;
|
|
26
26
|
var _useSmartLinkContext = (0, _linkProvider.useSmartLinkContext)(),
|
|
27
|
-
product = _useSmartLinkContext.product
|
|
27
|
+
product = _useSmartLinkContext.product,
|
|
28
|
+
bridgeProduct = _useSmartLinkContext.bridgeProduct;
|
|
28
29
|
var wrapUrl = (0, _useCrossProductUrlWrapper.useCrossProductUrlWrapper)({
|
|
29
|
-
bridge: SMART_LINKS_XPC_BRIDGE,
|
|
30
|
+
bridge: bridgeProduct !== null && bridgeProduct !== void 0 ? bridgeProduct : SMART_LINKS_XPC_BRIDGE,
|
|
30
31
|
product: (_product$toLowerCase = product === null || product === void 0 ? void 0 : product.toLowerCase()) !== null && _product$toLowerCase !== void 0 ? _product$toLowerCase : 'unknown'
|
|
31
32
|
});
|
|
32
33
|
return (0, _react.useCallback)(function (url) {
|
|
@@ -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.20.
|
|
14
|
+
packageVersion: "44.20.2" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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.20.
|
|
22
|
+
packageVersion: "44.20.2",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -15,10 +15,11 @@ const useSmartLinkCrossProductUrlWrapper = ({
|
|
|
15
15
|
}) => {
|
|
16
16
|
var _product$toLowerCase;
|
|
17
17
|
const {
|
|
18
|
-
product
|
|
18
|
+
product,
|
|
19
|
+
bridgeProduct
|
|
19
20
|
} = useSmartLinkContext();
|
|
20
21
|
const wrapUrl = useCrossProductUrlWrapper({
|
|
21
|
-
bridge: SMART_LINKS_XPC_BRIDGE,
|
|
22
|
+
bridge: bridgeProduct !== null && bridgeProduct !== void 0 ? bridgeProduct : SMART_LINKS_XPC_BRIDGE,
|
|
22
23
|
product: (_product$toLowerCase = product === null || product === void 0 ? void 0 : product.toLowerCase()) !== null && _product$toLowerCase !== void 0 ? _product$toLowerCase : 'unknown'
|
|
23
24
|
});
|
|
24
25
|
return useCallback(url => {
|
|
@@ -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.20.
|
|
5
|
+
packageVersion: "44.20.2" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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.20.
|
|
12
|
+
packageVersion: "44.20.2",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -18,9 +18,10 @@ var useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProductUrlWra
|
|
|
18
18
|
var _product$toLowerCase;
|
|
19
19
|
var details = _ref.details;
|
|
20
20
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
21
|
-
product = _useSmartLinkContext.product
|
|
21
|
+
product = _useSmartLinkContext.product,
|
|
22
|
+
bridgeProduct = _useSmartLinkContext.bridgeProduct;
|
|
22
23
|
var wrapUrl = useCrossProductUrlWrapper({
|
|
23
|
-
bridge: SMART_LINKS_XPC_BRIDGE,
|
|
24
|
+
bridge: bridgeProduct !== null && bridgeProduct !== void 0 ? bridgeProduct : SMART_LINKS_XPC_BRIDGE,
|
|
24
25
|
product: (_product$toLowerCase = product === null || product === void 0 ? void 0 : product.toLowerCase()) !== null && _product$toLowerCase !== void 0 ? _product$toLowerCase : 'unknown'
|
|
25
26
|
});
|
|
26
27
|
return useCallback(function (url) {
|
|
@@ -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.20.
|
|
7
|
+
packageVersion: "44.20.2" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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.20.
|
|
15
|
+
packageVersion: "44.20.2",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.20.
|
|
3
|
+
"version": "44.20.3",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/afm-i18n-platform-linking-platform-smart-card": "2.6.0",
|
|
40
40
|
"@atlaskit/analytics-cross-product": "^1.2.0",
|
|
41
41
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
42
|
-
"@atlaskit/analytics-next": "^11.
|
|
42
|
+
"@atlaskit/analytics-next": "^11.3.0",
|
|
43
43
|
"@atlaskit/avatar": "^25.15.0",
|
|
44
44
|
"@atlaskit/avatar-group": "^12.10.0",
|
|
45
45
|
"@atlaskit/badge": "^18.6.0",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
53
53
|
"@atlaskit/flag": "^17.12.0",
|
|
54
54
|
"@atlaskit/form": "^15.5.0",
|
|
55
|
-
"@atlaskit/frontend-utilities": "^3.
|
|
55
|
+
"@atlaskit/frontend-utilities": "^3.4.0",
|
|
56
56
|
"@atlaskit/heading": "^5.4.0",
|
|
57
|
-
"@atlaskit/icon": "^35.
|
|
57
|
+
"@atlaskit/icon": "^35.4.0",
|
|
58
58
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
59
|
-
"@atlaskit/icon-lab": "^6.
|
|
59
|
+
"@atlaskit/icon-lab": "^6.13.0",
|
|
60
60
|
"@atlaskit/image": "^3.0.0",
|
|
61
61
|
"@atlaskit/json-ld-types": "^1.5.0",
|
|
62
62
|
"@atlaskit/link": "^3.4.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/link-client-extension": "^6.1.0",
|
|
65
65
|
"@atlaskit/link-extractors": "^2.7.0",
|
|
66
66
|
"@atlaskit/link-test-helpers": "^10.4.0",
|
|
67
|
-
"@atlaskit/linking-common": "^9.
|
|
67
|
+
"@atlaskit/linking-common": "^9.13.0",
|
|
68
68
|
"@atlaskit/linking-types": "^14.4.0",
|
|
69
69
|
"@atlaskit/logo": "^20.1.0",
|
|
70
70
|
"@atlaskit/lozenge": "^13.8.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/popup": "^4.23.0",
|
|
79
79
|
"@atlaskit/primitives": "^19.0.0",
|
|
80
80
|
"@atlaskit/react-ufo": "^6.6.0",
|
|
81
|
-
"@atlaskit/rovo-triggers": "^7.
|
|
81
|
+
"@atlaskit/rovo-triggers": "^7.3.0",
|
|
82
82
|
"@atlaskit/section-message": "^8.13.0",
|
|
83
83
|
"@atlaskit/select": "^21.12.0",
|
|
84
84
|
"@atlaskit/spinner": "^19.1.0",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"@atlaskit/textfield": "^8.3.0",
|
|
88
88
|
"@atlaskit/theme": "^25.0.0",
|
|
89
89
|
"@atlaskit/tile": "^1.1.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^88.
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^88.4.0",
|
|
91
91
|
"@atlaskit/tokens": "^13.1.0",
|
|
92
|
-
"@atlaskit/tooltip": "^22.
|
|
92
|
+
"@atlaskit/tooltip": "^22.6.0",
|
|
93
93
|
"@atlaskit/ufo": "^0.5.0",
|
|
94
94
|
"@atlaskit/width-detector": "^5.1.0",
|
|
95
95
|
"@babel/runtime": "^7.0.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"uuid": "^3.1.0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
|
-
"@atlaskit/link-provider": "^4.
|
|
110
|
+
"@atlaskit/link-provider": "^4.5.0",
|
|
111
111
|
"react": "^18.2.0",
|
|
112
112
|
"react-dom": "^18.2.0",
|
|
113
113
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|