@atlaskit/smart-card 25.3.3 → 25.4.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 +6 -0
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +5 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +5 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +5 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +5 -0
- package/dist/types/view/Card/types.d.ts +5 -0
- package/package.json +1 -1
- package/report.api.md +2 -2
- package/tmp/api-report-tmp.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 25.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`65b0490a5dc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65b0490a5dc) - Deprecates the export of useSmartLinkAnalytics hook and analyticsEvents prop.
|
|
8
|
+
|
|
3
9
|
## 25.3.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -33,6 +33,11 @@ var applyCommonAttributes = function applyCommonAttributes(event, commonAttribut
|
|
|
33
33
|
/**
|
|
34
34
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
35
35
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
36
|
+
*
|
|
37
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
38
|
+
* This hook's external use is deprecated and may no longer be exported from this package in future releases.
|
|
39
|
+
* Please avoid using it in conjunction with the `analyticsEvents` prop.
|
|
40
|
+
*
|
|
36
41
|
* @param url URL of the link
|
|
37
42
|
* @param dispatchAnalytics dispatchAnalytics function
|
|
38
43
|
* @param id fallback id of the events sent if no id is available
|
package/dist/cjs/version.json
CHANGED
|
@@ -19,6 +19,11 @@ const applyCommonAttributes = (event, commonAttributes) => {
|
|
|
19
19
|
/**
|
|
20
20
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
21
21
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
24
|
+
* This hook's external use is deprecated and may no longer be exported from this package in future releases.
|
|
25
|
+
* Please avoid using it in conjunction with the `analyticsEvents` prop.
|
|
26
|
+
*
|
|
22
27
|
* @param url URL of the link
|
|
23
28
|
* @param dispatchAnalytics dispatchAnalytics function
|
|
24
29
|
* @param id fallback id of the events sent if no id is available
|
package/dist/es2019/version.json
CHANGED
|
@@ -26,6 +26,11 @@ var applyCommonAttributes = function applyCommonAttributes(event, commonAttribut
|
|
|
26
26
|
/**
|
|
27
27
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
28
28
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
29
|
+
*
|
|
30
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
31
|
+
* This hook's external use is deprecated and may no longer be exported from this package in future releases.
|
|
32
|
+
* Please avoid using it in conjunction with the `analyticsEvents` prop.
|
|
33
|
+
*
|
|
29
34
|
* @param url URL of the link
|
|
30
35
|
* @param dispatchAnalytics dispatchAnalytics function
|
|
31
36
|
* @param id fallback id of the events sent if no id is available
|
package/dist/esm/version.json
CHANGED
|
@@ -3,6 +3,11 @@ import { CommonEventProps, ConnectFailedEventProps, ConnectSucceededEventProps,
|
|
|
3
3
|
/**
|
|
4
4
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
5
5
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
8
|
+
* This hook's external use is deprecated and may no longer be exported from this package in future releases.
|
|
9
|
+
* Please avoid using it in conjunction with the `analyticsEvents` prop.
|
|
10
|
+
*
|
|
6
11
|
* @param url URL of the link
|
|
7
12
|
* @param dispatchAnalytics dispatchAnalytics function
|
|
8
13
|
* @param id fallback id of the events sent if no id is available
|
|
@@ -55,6 +55,11 @@ export interface CardProps extends WithAnalyticsEventsProps {
|
|
|
55
55
|
children?: React.ReactNode;
|
|
56
56
|
showHoverPreview?: boolean;
|
|
57
57
|
showAuthTooltip?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
60
|
+
* The use of `useSmartLinkAnalytics` external use in conjunction with `analyticsEvents` prop is deprecated and may be removed in future releases.
|
|
61
|
+
* Please avoid using this prop.
|
|
62
|
+
*/
|
|
58
63
|
analyticsEvents?: AnalyticsFacade;
|
|
59
64
|
placeholder?: string;
|
|
60
65
|
}
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -283,7 +283,7 @@ export { CardPlatform };
|
|
|
283
283
|
|
|
284
284
|
// @public (undocumented)
|
|
285
285
|
export interface CardProps extends WithAnalyticsEventsProps {
|
|
286
|
-
// (undocumented)
|
|
286
|
+
// @deprecated (undocumented)
|
|
287
287
|
analyticsEvents?: AnalyticsFacade;
|
|
288
288
|
// (undocumented)
|
|
289
289
|
appearance: CardAppearance;
|
|
@@ -952,7 +952,7 @@ type UiRenderSuccessEventProps = CommonEventProps & {
|
|
|
952
952
|
status: CardType;
|
|
953
953
|
};
|
|
954
954
|
|
|
955
|
-
// @public
|
|
955
|
+
// @public @deprecated
|
|
956
956
|
export const useSmartLinkAnalytics: (
|
|
957
957
|
url: string,
|
|
958
958
|
dispatchAnalytics: AnalyticsHandler,
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -193,7 +193,7 @@ export { CardPlatform }
|
|
|
193
193
|
|
|
194
194
|
// @public (undocumented)
|
|
195
195
|
export interface CardProps extends WithAnalyticsEventsProps {
|
|
196
|
-
// (undocumented)
|
|
196
|
+
// @deprecated (undocumented)
|
|
197
197
|
analyticsEvents?: AnalyticsFacade;
|
|
198
198
|
// (undocumented)
|
|
199
199
|
appearance: CardAppearance;
|
|
@@ -815,7 +815,7 @@ type UiRenderSuccessEventProps = CommonEventProps & {
|
|
|
815
815
|
status: CardType;
|
|
816
816
|
};
|
|
817
817
|
|
|
818
|
-
// @public
|
|
818
|
+
// @public @deprecated
|
|
819
819
|
export const useSmartLinkAnalytics: (url: string, dispatchAnalytics: AnalyticsHandler, id?: string | undefined, defaultLocation?: string | undefined) => {
|
|
820
820
|
ui: {
|
|
821
821
|
authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthEventProps) => void;
|