@atlaskit/smart-card 26.20.1 → 26.22.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/extractors/common/meta/extractIsTrusted.js +7 -0
- package/dist/cjs/state/actions/index.js +16 -52
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +12 -11
- package/dist/cjs/state/hooks/use-invoke-client-action/index.js +78 -0
- package/dist/cjs/state/hooks/use-invoke-client-action/types.js +5 -0
- package/dist/cjs/utils/analytics/analytics.js +5 -9
- package/dist/cjs/utils/mocks.js +9 -4
- package/dist/cjs/view/BlockCard/actions/PreviewAction.js +6 -70
- package/dist/cjs/view/BlockCard/components/Action.js +1 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/common/meta/extractIsTrusted.js +7 -0
- package/dist/es2019/state/actions/index.js +10 -38
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +12 -11
- package/dist/es2019/state/hooks/use-invoke-client-action/index.js +52 -0
- package/dist/es2019/state/hooks/use-invoke-client-action/types.js +1 -0
- package/dist/es2019/utils/analytics/analytics.js +5 -9
- package/dist/es2019/utils/mocks.js +9 -4
- package/dist/es2019/view/BlockCard/actions/PreviewAction.js +3 -44
- package/dist/es2019/view/BlockCard/components/Action.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/common/meta/extractIsTrusted.js +7 -0
- package/dist/esm/state/actions/index.js +16 -49
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +12 -11
- package/dist/esm/state/hooks/use-invoke-client-action/index.js +67 -0
- package/dist/esm/state/hooks/use-invoke-client-action/types.js +1 -0
- package/dist/esm/utils/analytics/analytics.js +5 -9
- package/dist/esm/utils/mocks.js +9 -4
- package/dist/esm/view/BlockCard/actions/PreviewAction.js +8 -65
- package/dist/esm/view/BlockCard/components/Action.js +1 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +3 -3
- package/dist/types/state/flexible-ui-context/index.d.ts +6 -6
- package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +6 -0
- package/dist/types/state/hooks/use-invoke-client-action/types.d.ts +30 -0
- package/dist/types/state/hooks/useSmartLink.d.ts +3 -3
- package/dist/types/utils/analytics/types.d.ts +3 -3
- package/dist/types/utils/mocks.d.ts +3 -3
- package/dist/types/view/BlockCard/actions/PreviewAction.d.ts +0 -5
- package/dist/types/view/FlexibleCard/components/utils.d.ts +3 -3
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +3 -3
- package/dist/types-ts4.5/state/flexible-ui-context/index.d.ts +6 -6
- package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +6 -0
- package/dist/types-ts4.5/state/hooks/use-invoke-client-action/types.d.ts +30 -0
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +3 -3
- package/dist/types-ts4.5/utils/analytics/types.d.ts +3 -3
- package/dist/types-ts4.5/utils/mocks.d.ts +3 -3
- package/dist/types-ts4.5/view/BlockCard/actions/PreviewAction.d.ts +0 -5
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +3 -3
- package/package.json +9 -5
- package/report.api.md +7 -7
- package/tmp/api-report-tmp.d.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.22.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@atlaskit/avatar": "^21.3.0",
|
|
28
28
|
"@atlaskit/avatar-group": "^9.4.0",
|
|
29
29
|
"@atlaskit/badge": "^15.1.0",
|
|
30
|
-
"@atlaskit/button": "^16.
|
|
31
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
30
|
+
"@atlaskit/button": "^16.10.0",
|
|
31
|
+
"@atlaskit/dropdown-menu": "^11.13.0",
|
|
32
32
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
33
33
|
"@atlaskit/icon": "^21.12.0",
|
|
34
34
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/link-client-extension": "^1.6.0",
|
|
40
40
|
"@atlaskit/link-extractors": "^1.1.0",
|
|
41
41
|
"@atlaskit/linking-common": "^4.6.0",
|
|
42
|
-
"@atlaskit/linking-types": "^8.
|
|
42
|
+
"@atlaskit/linking-types": "^8.3.0",
|
|
43
43
|
"@atlaskit/logo": "^13.14.0",
|
|
44
44
|
"@atlaskit/lozenge": "^11.4.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^12.6.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/popup": "^1.9.0",
|
|
49
49
|
"@atlaskit/spinner": "^15.5.0",
|
|
50
50
|
"@atlaskit/theme": "^12.6.0",
|
|
51
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/tokens": "^1.21.0",
|
|
52
52
|
"@atlaskit/tooltip": "^17.8.0",
|
|
53
53
|
"@atlaskit/ufo": "^0.2.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@af/visual-regression": "*",
|
|
75
|
+
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
75
76
|
"@atlaskit/avatar": "^21.3.0",
|
|
76
77
|
"@atlaskit/css-reset": "^6.5.0",
|
|
77
78
|
"@atlaskit/link-test-helpers": "^6.0.0",
|
|
@@ -144,6 +145,9 @@
|
|
|
144
145
|
},
|
|
145
146
|
"platform.linking-platform.smart-card.enable-better-metadata_iojwg": {
|
|
146
147
|
"type": "boolean"
|
|
148
|
+
},
|
|
149
|
+
"platform.linking-platform.smart-card.fix-is-trusted-pop": {
|
|
150
|
+
"type": "boolean"
|
|
147
151
|
}
|
|
148
152
|
},
|
|
149
153
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
package/report.api.md
CHANGED
|
@@ -637,7 +637,7 @@ type InstrumentEventProps = CommonEventProps & {
|
|
|
637
637
|
type InvokeFailedEventProps = CommonEventProps & {
|
|
638
638
|
id: string;
|
|
639
639
|
actionType: string;
|
|
640
|
-
display
|
|
640
|
+
display?: CardInnerAppearance;
|
|
641
641
|
reason: string;
|
|
642
642
|
};
|
|
643
643
|
|
|
@@ -645,7 +645,7 @@ type InvokeFailedEventProps = CommonEventProps & {
|
|
|
645
645
|
type InvokeSucceededEventProps = CommonEventProps & {
|
|
646
646
|
id: string;
|
|
647
647
|
actionType: string;
|
|
648
|
-
display
|
|
648
|
+
display?: CardInnerAppearance;
|
|
649
649
|
};
|
|
650
650
|
|
|
651
651
|
// @public (undocumented)
|
|
@@ -984,7 +984,7 @@ enum TrackQuickActionType {
|
|
|
984
984
|
// @public (undocumented)
|
|
985
985
|
type UiActionClickedEventProps = CommonEventProps & {
|
|
986
986
|
id: string;
|
|
987
|
-
display
|
|
987
|
+
display?: CardInnerAppearance;
|
|
988
988
|
actionType: string;
|
|
989
989
|
invokeType?: InvokeType;
|
|
990
990
|
};
|
|
@@ -1129,11 +1129,11 @@ export const useSmartLinkAnalytics: (
|
|
|
1129
1129
|
destinationSubproduct,
|
|
1130
1130
|
}: UiIframeFocusedEventProps) => void;
|
|
1131
1131
|
actionClickedEvent: ({
|
|
1132
|
-
id,
|
|
1132
|
+
id: experienceId,
|
|
1133
1133
|
actionType,
|
|
1134
1134
|
display,
|
|
1135
1135
|
invokeType,
|
|
1136
|
-
extensionKey,
|
|
1136
|
+
extensionKey: overrideExtensionKey,
|
|
1137
1137
|
definitionId,
|
|
1138
1138
|
resourceType,
|
|
1139
1139
|
destinationProduct,
|
|
@@ -1218,7 +1218,7 @@ export const useSmartLinkAnalytics: (
|
|
|
1218
1218
|
};
|
|
1219
1219
|
operational: {
|
|
1220
1220
|
invokeSucceededEvent: ({
|
|
1221
|
-
id,
|
|
1221
|
+
id: experienceId,
|
|
1222
1222
|
actionType,
|
|
1223
1223
|
display,
|
|
1224
1224
|
extensionKey,
|
|
@@ -1229,7 +1229,7 @@ export const useSmartLinkAnalytics: (
|
|
|
1229
1229
|
location,
|
|
1230
1230
|
}: InvokeSucceededEventProps) => void;
|
|
1231
1231
|
invokeFailedEvent: ({
|
|
1232
|
-
id,
|
|
1232
|
+
id: experienceId,
|
|
1233
1233
|
actionType,
|
|
1234
1234
|
display,
|
|
1235
1235
|
reason,
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -492,7 +492,7 @@ type InstrumentEventProps = CommonEventProps & {
|
|
|
492
492
|
type InvokeFailedEventProps = CommonEventProps & {
|
|
493
493
|
id: string;
|
|
494
494
|
actionType: string;
|
|
495
|
-
display
|
|
495
|
+
display?: CardInnerAppearance;
|
|
496
496
|
reason: string;
|
|
497
497
|
};
|
|
498
498
|
|
|
@@ -500,7 +500,7 @@ type InvokeFailedEventProps = CommonEventProps & {
|
|
|
500
500
|
type InvokeSucceededEventProps = CommonEventProps & {
|
|
501
501
|
id: string;
|
|
502
502
|
actionType: string;
|
|
503
|
-
display
|
|
503
|
+
display?: CardInnerAppearance;
|
|
504
504
|
};
|
|
505
505
|
|
|
506
506
|
// @public (undocumented)
|
|
@@ -833,7 +833,7 @@ enum TrackQuickActionType {
|
|
|
833
833
|
// @public (undocumented)
|
|
834
834
|
type UiActionClickedEventProps = CommonEventProps & {
|
|
835
835
|
id: string;
|
|
836
|
-
display
|
|
836
|
+
display?: CardInnerAppearance;
|
|
837
837
|
actionType: string;
|
|
838
838
|
invokeType?: InvokeType;
|
|
839
839
|
};
|
|
@@ -923,7 +923,7 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
|
|
|
923
923
|
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => void;
|
|
924
924
|
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: UiIframeDwelledEventProps) => void;
|
|
925
925
|
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: UiIframeFocusedEventProps) => void;
|
|
926
|
-
actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
|
|
926
|
+
actionClickedEvent: ({ id: experienceId, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
|
|
927
927
|
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => void;
|
|
928
928
|
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => void;
|
|
929
929
|
modalClosedEvent: (data: Partial<AnalyticsPayload> & {
|
|
@@ -939,8 +939,8 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
|
|
|
939
939
|
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
940
940
|
};
|
|
941
941
|
operational: {
|
|
942
|
-
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
|
|
943
|
-
invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
|
|
942
|
+
invokeSucceededEvent: ({ id: experienceId, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
|
|
943
|
+
invokeFailedEvent: ({ id: experienceId, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
|
|
944
944
|
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
|
|
945
945
|
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
|
|
946
946
|
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;
|