@atlaskit/smart-card 26.41.2 → 26.42.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 +12 -0
- package/dist/cjs/ssr.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyFallback.js +2 -19
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -2
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +2 -2
- package/dist/cjs/view/CardWithUrl/component-lazy/LoadingCardLink.js +24 -0
- package/dist/cjs/view/CardWithUrl/loader.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/analytics.js +30 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/index.js +19 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +11 -16
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +9 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/analytics.js +51 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +54 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/types.js +5 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/ssr.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyFallback.js +1 -18
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +1 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +1 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/LoadingCardLink.js +18 -0
- package/dist/es2019/view/CardWithUrl/loader.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/analytics.js +19 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/index.js +14 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +12 -15
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +11 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/analytics.js +42 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +44 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/types.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/ssr.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component-lazy/LazyFallback.js +1 -17
- package/dist/esm/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +1 -1
- package/dist/esm/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +1 -1
- package/dist/esm/view/CardWithUrl/component-lazy/LoadingCardLink.js +17 -0
- package/dist/esm/view/CardWithUrl/loader.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/analytics.js +23 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/index.js +19 -8
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +12 -17
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +10 -2
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/analytics.js +44 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +44 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/types.js +1 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/types/view/CardWithUrl/component-lazy/LazyFallback.d.ts +0 -3
- package/dist/types/view/CardWithUrl/component-lazy/LoadingCardLink.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/analytics.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/analytics.d.ts +11 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/types.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/types.d.ts +3 -0
- package/dist/types-ts4.5/utils/types.d.ts +2 -2
- package/dist/types-ts4.5/view/CardWithUrl/component-lazy/LazyFallback.d.ts +0 -3
- package/dist/types-ts4.5/view/CardWithUrl/component-lazy/LoadingCardLink.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/analytics.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/analytics.d.ts +11 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/types.d.ts +10 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/types.d.ts +3 -0
- package/package.json +3 -3
- package/report.api.md +2 -0
- package/tmp/api-report-tmp.d.ts +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GasPayload } from '@atlaskit/analytics-gas-types';
|
|
2
2
|
import { CardInnerAppearance } from '../view/Card/types';
|
|
3
|
-
export type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved' | 'updated' | 'chunkLoadFailed' | 'dwelled' | 'focused' | 'started' | 'success' | 'failed';
|
|
4
|
-
export type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal' | 'smartLinkIframe' | 'link' | 'smartLinkQuickAction';
|
|
3
|
+
export type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved' | 'updated' | 'chunkLoadFailed' | 'dwelled' | 'focused' | 'started' | 'success' | 'failed' | 'loaded';
|
|
4
|
+
export type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal' | 'smartLinkIframe' | 'link' | 'smartLinkQuickAction' | 'relatedLinks';
|
|
5
5
|
export type AnalyticsName = 'embedPreviewModal';
|
|
6
6
|
export type AnalyticsOrigin = 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard';
|
|
7
7
|
export type AnalyticsPayload = GasPayload & {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AnalyticsEventPayload, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { TrackRelatedLinksLoadedEventProps } from './types';
|
|
3
|
+
export declare const fireRelatedLinksLoadedEvent: (createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent) => (attributes: TrackRelatedLinksLoadedEventProps) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnalyticsEventPayload, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { JsonLd } from 'json-ld-types';
|
|
4
|
+
import { UiRelatedLinksViewedEventProps } from './types';
|
|
5
|
+
export declare const fireRelatedLinksViewedEvent: (createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent) => (attributes: UiRelatedLinksViewedEventProps) => void;
|
|
6
|
+
type RelatedUrlItemAnalyticsContextProps = {
|
|
7
|
+
details: JsonLd.Response;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const RelatedUrlItemAnalyticsContext: (props: RelatedUrlItemAnalyticsContextProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
+
export interface ResolvedResultsStackProps {
|
|
4
|
+
testId: string;
|
|
5
|
+
resolvedResults: JsonLd.Response[];
|
|
6
|
+
renderers?: CardProviderRenderers;
|
|
7
|
+
}
|
|
8
|
+
export type UiRelatedLinksViewedEventProps = {
|
|
9
|
+
relatedLinksCount: number;
|
|
10
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GasPayload } from '@atlaskit/analytics-gas-types';
|
|
2
2
|
import { CardInnerAppearance } from '../view/Card/types';
|
|
3
|
-
export type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved' | 'updated' | 'chunkLoadFailed' | 'dwelled' | 'focused' | 'started' | 'success' | 'failed';
|
|
4
|
-
export type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal' | 'smartLinkIframe' | 'link' | 'smartLinkQuickAction';
|
|
3
|
+
export type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved' | 'updated' | 'chunkLoadFailed' | 'dwelled' | 'focused' | 'started' | 'success' | 'failed' | 'loaded';
|
|
4
|
+
export type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal' | 'smartLinkIframe' | 'link' | 'smartLinkQuickAction' | 'relatedLinks';
|
|
5
5
|
export type AnalyticsName = 'embedPreviewModal';
|
|
6
6
|
export type AnalyticsOrigin = 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard';
|
|
7
7
|
export type AnalyticsPayload = GasPayload & {
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/analytics.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AnalyticsEventPayload, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { TrackRelatedLinksLoadedEventProps } from './types';
|
|
3
|
+
export declare const fireRelatedLinksLoadedEvent: (createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent) => (attributes: TrackRelatedLinksLoadedEventProps) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnalyticsEventPayload, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { JsonLd } from 'json-ld-types';
|
|
4
|
+
import { UiRelatedLinksViewedEventProps } from './types';
|
|
5
|
+
export declare const fireRelatedLinksViewedEvent: (createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent) => (attributes: UiRelatedLinksViewedEventProps) => void;
|
|
6
|
+
type RelatedUrlItemAnalyticsContextProps = {
|
|
7
|
+
details: JsonLd.Response;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const RelatedUrlItemAnalyticsContext: (props: RelatedUrlItemAnalyticsContextProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
+
export interface ResolvedResultsStackProps {
|
|
4
|
+
testId: string;
|
|
5
|
+
resolvedResults: JsonLd.Response[];
|
|
6
|
+
renderers?: CardProviderRenderers;
|
|
7
|
+
}
|
|
8
|
+
export type UiRelatedLinksViewedEventProps = {
|
|
9
|
+
relatedLinksCount: number;
|
|
10
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.42.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@atlaskit/avatar": "^21.4.0",
|
|
28
28
|
"@atlaskit/avatar-group": "^9.4.0",
|
|
29
29
|
"@atlaskit/badge": "^15.1.0",
|
|
30
|
-
"@atlaskit/button": "^16.
|
|
30
|
+
"@atlaskit/button": "^16.13.0",
|
|
31
31
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
32
32
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
33
33
|
"@atlaskit/icon": "^21.12.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
39
39
|
"@atlaskit/link-client-extension": "^1.8.0",
|
|
40
40
|
"@atlaskit/link-extractors": "^1.2.0",
|
|
41
|
-
"@atlaskit/linking-common": "^4.
|
|
41
|
+
"@atlaskit/linking-common": "^4.16.0",
|
|
42
42
|
"@atlaskit/linking-types": "^8.4.0",
|
|
43
43
|
"@atlaskit/logo": "^13.14.0",
|
|
44
44
|
"@atlaskit/lozenge": "^11.4.0",
|
package/report.api.md
CHANGED
|
@@ -104,6 +104,7 @@ export type AnalyticsAction =
|
|
|
104
104
|
| 'failed'
|
|
105
105
|
| 'focused'
|
|
106
106
|
| 'inserted'
|
|
107
|
+
| 'loaded'
|
|
107
108
|
| 'renderFailed'
|
|
108
109
|
| 'renderSuccess'
|
|
109
110
|
| 'renderWithStatus'
|
|
@@ -123,6 +124,7 @@ export type AnalyticsActionSubject =
|
|
|
123
124
|
| 'hoverCard'
|
|
124
125
|
| 'link'
|
|
125
126
|
| 'modal'
|
|
127
|
+
| 'relatedLinks'
|
|
126
128
|
| 'smartLink'
|
|
127
129
|
| 'smartLinkAction'
|
|
128
130
|
| 'smartLinkIframe'
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -76,10 +76,10 @@ type ActionProps = {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
// @public (undocumented)
|
|
79
|
-
export type AnalyticsAction = 'authStarted' | 'chunkLoadFailed' | 'clicked' | 'closed' | 'connectFailed' | 'connectSucceeded' | 'connected' | 'created' | 'dismissed' | 'dwelled' | 'failed' | 'focused' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'started' | 'success' | 'unresolved' | 'updated' | 'viewed';
|
|
79
|
+
export type AnalyticsAction = 'authStarted' | 'chunkLoadFailed' | 'clicked' | 'closed' | 'connectFailed' | 'connectSucceeded' | 'connected' | 'created' | 'dismissed' | 'dwelled' | 'failed' | 'focused' | 'inserted' | 'loaded' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'started' | 'success' | 'unresolved' | 'updated' | 'viewed';
|
|
80
80
|
|
|
81
81
|
// @public (undocumented)
|
|
82
|
-
export type AnalyticsActionSubject = 'applicationAccount' | 'button' | 'consentModal' | 'embedPreviewModal' | 'hoverCard' | 'link' | 'modal' | 'smartLink' | 'smartLinkAction' | 'smartLinkIframe' | 'smartLinkQuickAction';
|
|
82
|
+
export type AnalyticsActionSubject = 'applicationAccount' | 'button' | 'consentModal' | 'embedPreviewModal' | 'hoverCard' | 'link' | 'modal' | 'relatedLinks' | 'smartLink' | 'smartLinkAction' | 'smartLinkIframe' | 'smartLinkQuickAction';
|
|
83
83
|
|
|
84
84
|
// @public (undocumented)
|
|
85
85
|
type AnalyticsFacade = ReturnType<typeof useSmartLinkAnalytics>;
|