@atlaskit/smart-card 45.6.0 → 45.6.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 +12 -0
- package/dist/cjs/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +9 -3
- 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 +9 -3
- 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 +9 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -36,9 +36,11 @@ var useSmartLinkCrossProductUrlWrapper = exports.useSmartLinkCrossProductUrlWrap
|
|
|
36
36
|
// xpcProduct takes precedence over product — it identifies the host product for XPC analytics
|
|
37
37
|
// without affecting link resolution (which uses the `product` prop separately).
|
|
38
38
|
var effectiveProduct = xpcProduct !== null && xpcProduct !== void 0 ? xpcProduct : product;
|
|
39
|
+
var effectiveBridge = bridgeProduct !== null && bridgeProduct !== void 0 ? bridgeProduct : SMART_LINKS_XPC_BRIDGE;
|
|
40
|
+
var effectiveProductForWrapper = (_effectiveProduct$toL = effectiveProduct === null || effectiveProduct === void 0 ? void 0 : effectiveProduct.toLowerCase()) !== null && _effectiveProduct$toL !== void 0 ? _effectiveProduct$toL : 'unknown';
|
|
39
41
|
var wrapUrl = (0, _useCrossProductUrlWrapper.useCrossProductUrlWrapper)(_objectSpread({
|
|
40
|
-
bridge:
|
|
41
|
-
product:
|
|
42
|
+
bridge: effectiveBridge,
|
|
43
|
+
product: effectiveProductForWrapper
|
|
42
44
|
}, xpcSubProduct ? {
|
|
43
45
|
subProduct: xpcSubProduct
|
|
44
46
|
} : {}));
|
|
@@ -56,6 +58,10 @@ var useSmartLinkCrossProductUrlWrapper = exports.useSmartLinkCrossProductUrlWrap
|
|
|
56
58
|
return url;
|
|
57
59
|
}
|
|
58
60
|
return wrapUrl(url);
|
|
59
|
-
},
|
|
61
|
+
},
|
|
62
|
+
// Keep bridge/subproduct in the dependency array so consumers that memoize this callback
|
|
63
|
+
// refresh when mini-modal context updates from smartLinks to rovo-chat.
|
|
64
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
|
+
[details, effectiveBridge, effectiveProduct, wrapUrl, xpcSubProduct]);
|
|
60
66
|
};
|
|
61
67
|
var useSmartLinkCrossProductUrlWrapperGated = exports.useSmartLinkCrossProductUrlWrapperGated = (0, _platformFeatureFlagsReact.functionWithFG)('platform_smartlink_xpc_url_wrapping', useSmartLinkCrossProductUrlWrapper, useSmartLinkCrossProductUrlWrapperFallback);
|
|
@@ -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: "45.
|
|
14
|
+
packageVersion: "45.6.1" || ''
|
|
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: "45.
|
|
22
|
+
packageVersion: "45.6.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -24,9 +24,11 @@ export const useSmartLinkCrossProductUrlWrapper = ({
|
|
|
24
24
|
// xpcProduct takes precedence over product — it identifies the host product for XPC analytics
|
|
25
25
|
// without affecting link resolution (which uses the `product` prop separately).
|
|
26
26
|
const effectiveProduct = xpcProduct !== null && xpcProduct !== void 0 ? xpcProduct : product;
|
|
27
|
+
const effectiveBridge = bridgeProduct !== null && bridgeProduct !== void 0 ? bridgeProduct : SMART_LINKS_XPC_BRIDGE;
|
|
28
|
+
const effectiveProductForWrapper = (_effectiveProduct$toL = effectiveProduct === null || effectiveProduct === void 0 ? void 0 : effectiveProduct.toLowerCase()) !== null && _effectiveProduct$toL !== void 0 ? _effectiveProduct$toL : 'unknown';
|
|
27
29
|
const wrapUrl = useCrossProductUrlWrapper({
|
|
28
|
-
bridge:
|
|
29
|
-
product:
|
|
30
|
+
bridge: effectiveBridge,
|
|
31
|
+
product: effectiveProductForWrapper,
|
|
30
32
|
...(xpcSubProduct ? {
|
|
31
33
|
subProduct: xpcSubProduct
|
|
32
34
|
} : {})
|
|
@@ -45,6 +47,10 @@ export const useSmartLinkCrossProductUrlWrapper = ({
|
|
|
45
47
|
return url;
|
|
46
48
|
}
|
|
47
49
|
return wrapUrl(url);
|
|
48
|
-
},
|
|
50
|
+
},
|
|
51
|
+
// Keep bridge/subproduct in the dependency array so consumers that memoize this callback
|
|
52
|
+
// refresh when mini-modal context updates from smartLinks to rovo-chat.
|
|
53
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54
|
+
[details, effectiveBridge, effectiveProduct, wrapUrl, xpcSubProduct]);
|
|
49
55
|
};
|
|
50
56
|
export const useSmartLinkCrossProductUrlWrapperGated = functionWithFG('platform_smartlink_xpc_url_wrapping', useSmartLinkCrossProductUrlWrapper, useSmartLinkCrossProductUrlWrapperFallback);
|
|
@@ -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: "45.
|
|
5
|
+
packageVersion: "45.6.1" || ''
|
|
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: "45.
|
|
12
|
+
packageVersion: "45.6.1",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -29,9 +29,11 @@ export var useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProduc
|
|
|
29
29
|
// xpcProduct takes precedence over product — it identifies the host product for XPC analytics
|
|
30
30
|
// without affecting link resolution (which uses the `product` prop separately).
|
|
31
31
|
var effectiveProduct = xpcProduct !== null && xpcProduct !== void 0 ? xpcProduct : product;
|
|
32
|
+
var effectiveBridge = bridgeProduct !== null && bridgeProduct !== void 0 ? bridgeProduct : SMART_LINKS_XPC_BRIDGE;
|
|
33
|
+
var effectiveProductForWrapper = (_effectiveProduct$toL = effectiveProduct === null || effectiveProduct === void 0 ? void 0 : effectiveProduct.toLowerCase()) !== null && _effectiveProduct$toL !== void 0 ? _effectiveProduct$toL : 'unknown';
|
|
32
34
|
var wrapUrl = useCrossProductUrlWrapper(_objectSpread({
|
|
33
|
-
bridge:
|
|
34
|
-
product:
|
|
35
|
+
bridge: effectiveBridge,
|
|
36
|
+
product: effectiveProductForWrapper
|
|
35
37
|
}, xpcSubProduct ? {
|
|
36
38
|
subProduct: xpcSubProduct
|
|
37
39
|
} : {}));
|
|
@@ -49,6 +51,10 @@ export var useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProduc
|
|
|
49
51
|
return url;
|
|
50
52
|
}
|
|
51
53
|
return wrapUrl(url);
|
|
52
|
-
},
|
|
54
|
+
},
|
|
55
|
+
// Keep bridge/subproduct in the dependency array so consumers that memoize this callback
|
|
56
|
+
// refresh when mini-modal context updates from smartLinks to rovo-chat.
|
|
57
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
58
|
+
[details, effectiveBridge, effectiveProduct, wrapUrl, xpcSubProduct]);
|
|
53
59
|
};
|
|
54
60
|
export var useSmartLinkCrossProductUrlWrapperGated = functionWithFG('platform_smartlink_xpc_url_wrapping', useSmartLinkCrossProductUrlWrapper, useSmartLinkCrossProductUrlWrapperFallback);
|
|
@@ -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: "45.
|
|
7
|
+
packageVersion: "45.6.1" || ''
|
|
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: "45.
|
|
15
|
+
packageVersion: "45.6.1",
|
|
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": "45.6.
|
|
3
|
+
"version": "45.6.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/avatar-group": "^13.1.0",
|
|
45
45
|
"@atlaskit/badge": "^19.1.0",
|
|
46
46
|
"@atlaskit/browser-apis": "^1.1.0",
|
|
47
|
-
"@atlaskit/button": "^24.
|
|
47
|
+
"@atlaskit/button": "^24.3.0",
|
|
48
48
|
"@atlaskit/checkbox": "^18.1.0",
|
|
49
49
|
"@atlaskit/css": "^1.0.0",
|
|
50
50
|
"@atlaskit/dropdown-menu": "^17.1.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/link-test-helpers": "^11.0.0",
|
|
67
67
|
"@atlaskit/linking-common": "^11.0.0",
|
|
68
68
|
"@atlaskit/linking-types": "^15.0.0",
|
|
69
|
-
"@atlaskit/logo": "^21.
|
|
69
|
+
"@atlaskit/logo": "^21.3.0",
|
|
70
70
|
"@atlaskit/lozenge": "^14.1.0",
|
|
71
71
|
"@atlaskit/menu": "^9.1.0",
|
|
72
72
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
@@ -76,20 +76,20 @@
|
|
|
76
76
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
77
77
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
78
78
|
"@atlaskit/popup": "^5.1.0",
|
|
79
|
-
"@atlaskit/primitives": "^20.
|
|
79
|
+
"@atlaskit/primitives": "^20.2.0",
|
|
80
80
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
81
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
82
|
-
"@atlaskit/rovo-triggers": "^9.
|
|
82
|
+
"@atlaskit/rovo-triggers": "^9.5.0",
|
|
83
83
|
"@atlaskit/section-message": "^9.2.0",
|
|
84
|
-
"@atlaskit/select": "^22.
|
|
84
|
+
"@atlaskit/select": "^22.3.0",
|
|
85
85
|
"@atlaskit/spinner": "^20.1.0",
|
|
86
86
|
"@atlaskit/tag": "^15.1.0",
|
|
87
87
|
"@atlaskit/textarea": "^9.1.0",
|
|
88
88
|
"@atlaskit/textfield": "^9.1.0",
|
|
89
89
|
"@atlaskit/theme": "^26.1.0",
|
|
90
90
|
"@atlaskit/tile": "^2.1.0",
|
|
91
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
92
|
-
"@atlaskit/tokens": "^15.
|
|
91
|
+
"@atlaskit/tmp-editor-statsig": "^116.0.0",
|
|
92
|
+
"@atlaskit/tokens": "^15.2.0",
|
|
93
93
|
"@atlaskit/tooltip": "^23.1.0",
|
|
94
94
|
"@atlaskit/ufo": "^1.0.0",
|
|
95
95
|
"@atlaskit/width-detector": "^6.1.0",
|