@atlaskit/smart-card 23.7.2 → 23.8.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.
Files changed (220) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/constants.js +14 -2
  3. package/dist/cjs/extractors/common/actions/extractPreviewAction.js +3 -1
  4. package/dist/cjs/i18n/cs.js +6 -1
  5. package/dist/cjs/i18n/da.js +7 -1
  6. package/dist/cjs/i18n/de.js +6 -1
  7. package/dist/cjs/i18n/en.js +8 -1
  8. package/dist/cjs/i18n/en_GB.js +8 -1
  9. package/dist/cjs/i18n/es.js +5 -1
  10. package/dist/cjs/i18n/fi.js +7 -1
  11. package/dist/cjs/i18n/fr.js +7 -1
  12. package/dist/cjs/i18n/hu.js +6 -1
  13. package/dist/cjs/i18n/it.js +7 -1
  14. package/dist/cjs/i18n/ja.js +11 -5
  15. package/dist/cjs/i18n/ko.js +7 -1
  16. package/dist/cjs/i18n/nb.js +6 -1
  17. package/dist/cjs/i18n/nl.js +7 -1
  18. package/dist/cjs/i18n/pl.js +6 -1
  19. package/dist/cjs/i18n/pt_BR.js +7 -1
  20. package/dist/cjs/i18n/ru.js +7 -1
  21. package/dist/cjs/i18n/sv.js +7 -1
  22. package/dist/cjs/i18n/th.js +7 -1
  23. package/dist/cjs/i18n/tr.js +6 -1
  24. package/dist/cjs/i18n/uk.js +6 -1
  25. package/dist/cjs/i18n/vi.js +7 -1
  26. package/dist/cjs/i18n/zh.js +6 -1
  27. package/dist/cjs/i18n/zh_TW.js +6 -1
  28. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +41 -13
  29. package/dist/cjs/utils/analytics/analytics.js +128 -96
  30. package/dist/cjs/utils/analytics/index.js +12 -0
  31. package/dist/cjs/version.json +1 -1
  32. package/dist/cjs/view/BlockCard/components/flexible/footer/index.js +1 -1
  33. package/dist/cjs/view/BlockCard/index.js +4 -2
  34. package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +1 -1
  35. package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +3 -3
  36. package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +17 -4
  37. package/dist/cjs/view/CardWithUrl/component.js +3 -1
  38. package/dist/cjs/view/EmbedCard/index.js +6 -2
  39. package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +21 -4
  40. package/dist/cjs/view/EmbedModal/components/analytics/index.js +4 -2
  41. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +11 -10
  42. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +6 -4
  43. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +1 -1
  44. package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +26 -7
  45. package/dist/cjs/view/HoverCard/index.js +6 -3
  46. package/dist/cjs/view/HoverCard/utils.js +1 -4
  47. package/dist/cjs/view/InlineCard/ErroredView/index.js +6 -11
  48. package/dist/cjs/view/InlineCard/ForbiddenView/index.js +17 -21
  49. package/dist/cjs/view/InlineCard/Frame/index.js +4 -4
  50. package/dist/cjs/view/InlineCard/Frame/styled.js +22 -34
  51. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +52 -7
  52. package/dist/cjs/view/InlineCard/ResolvingView/index.js +3 -5
  53. package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +10 -12
  54. package/dist/cjs/view/InlineCard/index.js +2 -1
  55. package/dist/cjs/view/InlineCard/styled.js +2 -2
  56. package/dist/cjs/view/common/UnauthorisedViewContent.js +14 -3
  57. package/dist/es2019/constants.js +12 -1
  58. package/dist/es2019/extractors/common/actions/extractPreviewAction.js +2 -1
  59. package/dist/es2019/i18n/cs.js +6 -1
  60. package/dist/es2019/i18n/da.js +7 -1
  61. package/dist/es2019/i18n/de.js +6 -1
  62. package/dist/es2019/i18n/en.js +8 -1
  63. package/dist/es2019/i18n/en_GB.js +8 -1
  64. package/dist/es2019/i18n/es.js +5 -1
  65. package/dist/es2019/i18n/fi.js +7 -1
  66. package/dist/es2019/i18n/fr.js +7 -1
  67. package/dist/es2019/i18n/hu.js +6 -1
  68. package/dist/es2019/i18n/it.js +7 -1
  69. package/dist/es2019/i18n/ja.js +11 -5
  70. package/dist/es2019/i18n/ko.js +7 -1
  71. package/dist/es2019/i18n/nb.js +6 -1
  72. package/dist/es2019/i18n/nl.js +7 -1
  73. package/dist/es2019/i18n/pl.js +6 -1
  74. package/dist/es2019/i18n/pt_BR.js +7 -1
  75. package/dist/es2019/i18n/ru.js +7 -1
  76. package/dist/es2019/i18n/sv.js +7 -1
  77. package/dist/es2019/i18n/th.js +7 -1
  78. package/dist/es2019/i18n/tr.js +6 -1
  79. package/dist/es2019/i18n/uk.js +6 -1
  80. package/dist/es2019/i18n/vi.js +7 -1
  81. package/dist/es2019/i18n/zh.js +6 -1
  82. package/dist/es2019/i18n/zh_TW.js +6 -1
  83. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +33 -8
  84. package/dist/es2019/utils/analytics/analytics.js +28 -4
  85. package/dist/es2019/utils/analytics/index.js +1 -1
  86. package/dist/es2019/version.json +1 -1
  87. package/dist/es2019/view/BlockCard/components/flexible/footer/index.js +1 -1
  88. package/dist/es2019/view/BlockCard/index.js +4 -2
  89. package/dist/es2019/view/BlockCard/views/flexible/FlexibleNotFoundView.js +1 -1
  90. package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +4 -4
  91. package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +15 -3
  92. package/dist/es2019/view/CardWithUrl/component.js +2 -1
  93. package/dist/es2019/view/EmbedCard/index.js +6 -2
  94. package/dist/es2019/view/EmbedCard/views/UnauthorisedView.js +14 -3
  95. package/dist/es2019/view/EmbedModal/components/analytics/index.js +3 -2
  96. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +11 -10
  97. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +8 -6
  98. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +3 -3
  99. package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +23 -7
  100. package/dist/es2019/view/HoverCard/index.js +6 -3
  101. package/dist/es2019/view/HoverCard/utils.js +0 -1
  102. package/dist/es2019/view/InlineCard/ErroredView/index.js +7 -9
  103. package/dist/es2019/view/InlineCard/ForbiddenView/index.js +8 -9
  104. package/dist/es2019/view/InlineCard/Frame/index.js +4 -4
  105. package/dist/es2019/view/InlineCard/Frame/styled.js +18 -31
  106. package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +47 -6
  107. package/dist/es2019/view/InlineCard/ResolvingView/index.js +3 -5
  108. package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +11 -11
  109. package/dist/es2019/view/InlineCard/index.js +2 -1
  110. package/dist/es2019/view/InlineCard/styled.js +1 -6
  111. package/dist/es2019/view/common/UnauthorisedViewContent.js +18 -11
  112. package/dist/esm/constants.js +12 -1
  113. package/dist/esm/extractors/common/actions/extractPreviewAction.js +2 -1
  114. package/dist/esm/i18n/cs.js +6 -1
  115. package/dist/esm/i18n/da.js +7 -1
  116. package/dist/esm/i18n/de.js +6 -1
  117. package/dist/esm/i18n/en.js +8 -1
  118. package/dist/esm/i18n/en_GB.js +8 -1
  119. package/dist/esm/i18n/es.js +5 -1
  120. package/dist/esm/i18n/fi.js +7 -1
  121. package/dist/esm/i18n/fr.js +7 -1
  122. package/dist/esm/i18n/hu.js +6 -1
  123. package/dist/esm/i18n/it.js +7 -1
  124. package/dist/esm/i18n/ja.js +11 -5
  125. package/dist/esm/i18n/ko.js +7 -1
  126. package/dist/esm/i18n/nb.js +6 -1
  127. package/dist/esm/i18n/nl.js +7 -1
  128. package/dist/esm/i18n/pl.js +6 -1
  129. package/dist/esm/i18n/pt_BR.js +7 -1
  130. package/dist/esm/i18n/ru.js +7 -1
  131. package/dist/esm/i18n/sv.js +7 -1
  132. package/dist/esm/i18n/th.js +7 -1
  133. package/dist/esm/i18n/tr.js +6 -1
  134. package/dist/esm/i18n/uk.js +6 -1
  135. package/dist/esm/i18n/vi.js +7 -1
  136. package/dist/esm/i18n/zh.js +6 -1
  137. package/dist/esm/i18n/zh_TW.js +6 -1
  138. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +42 -14
  139. package/dist/esm/utils/analytics/analytics.js +118 -92
  140. package/dist/esm/utils/analytics/index.js +1 -1
  141. package/dist/esm/version.json +1 -1
  142. package/dist/esm/view/BlockCard/components/flexible/footer/index.js +1 -1
  143. package/dist/esm/view/BlockCard/index.js +4 -2
  144. package/dist/esm/view/BlockCard/views/flexible/FlexibleNotFoundView.js +1 -1
  145. package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +4 -4
  146. package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +18 -5
  147. package/dist/esm/view/CardWithUrl/component.js +2 -1
  148. package/dist/esm/view/EmbedCard/index.js +6 -2
  149. package/dist/esm/view/EmbedCard/views/UnauthorisedView.js +15 -4
  150. package/dist/esm/view/EmbedModal/components/analytics/index.js +3 -2
  151. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +11 -10
  152. package/dist/esm/view/HoverCard/components/HoverCardContent.js +8 -6
  153. package/dist/esm/view/HoverCard/components/views/resolved/index.js +3 -3
  154. package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +27 -9
  155. package/dist/esm/view/HoverCard/index.js +6 -3
  156. package/dist/esm/view/HoverCard/utils.js +0 -1
  157. package/dist/esm/view/InlineCard/ErroredView/index.js +7 -9
  158. package/dist/esm/view/InlineCard/ForbiddenView/index.js +18 -20
  159. package/dist/esm/view/InlineCard/Frame/index.js +4 -4
  160. package/dist/esm/view/InlineCard/Frame/styled.js +17 -31
  161. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +49 -7
  162. package/dist/esm/view/InlineCard/ResolvingView/index.js +3 -5
  163. package/dist/esm/view/InlineCard/UnauthorisedView/index.js +11 -11
  164. package/dist/esm/view/InlineCard/index.js +2 -1
  165. package/dist/esm/view/InlineCard/styled.js +2 -2
  166. package/dist/esm/view/common/UnauthorisedViewContent.js +8 -3
  167. package/dist/types/constants.d.ts +8 -0
  168. package/dist/types/i18n/cs.d.ts +5 -0
  169. package/dist/types/i18n/da.d.ts +6 -0
  170. package/dist/types/i18n/de.d.ts +5 -0
  171. package/dist/types/i18n/en.d.ts +7 -0
  172. package/dist/types/i18n/en_GB.d.ts +7 -0
  173. package/dist/types/i18n/es.d.ts +4 -0
  174. package/dist/types/i18n/fi.d.ts +6 -0
  175. package/dist/types/i18n/fr.d.ts +6 -0
  176. package/dist/types/i18n/hu.d.ts +5 -0
  177. package/dist/types/i18n/it.d.ts +6 -0
  178. package/dist/types/i18n/ja.d.ts +6 -0
  179. package/dist/types/i18n/ko.d.ts +6 -0
  180. package/dist/types/i18n/nb.d.ts +5 -0
  181. package/dist/types/i18n/nl.d.ts +6 -0
  182. package/dist/types/i18n/pl.d.ts +5 -0
  183. package/dist/types/i18n/pt_BR.d.ts +6 -0
  184. package/dist/types/i18n/ru.d.ts +6 -0
  185. package/dist/types/i18n/sv.d.ts +6 -0
  186. package/dist/types/i18n/th.d.ts +6 -0
  187. package/dist/types/i18n/tr.d.ts +5 -0
  188. package/dist/types/i18n/uk.d.ts +5 -0
  189. package/dist/types/i18n/vi.d.ts +6 -0
  190. package/dist/types/i18n/zh.d.ts +5 -0
  191. package/dist/types/i18n/zh_TW.d.ts +5 -0
  192. package/dist/types/state/actions/index.d.ts +1 -2
  193. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +17 -4
  194. package/dist/types/state/flexible-ui-context/index.d.ts +8 -4
  195. package/dist/types/state/hooks/useSmartLink.d.ts +5 -3
  196. package/dist/types/utils/analytics/analytics.d.ts +4 -2
  197. package/dist/types/utils/analytics/index.d.ts +1 -1
  198. package/dist/types/utils/analytics/types.d.ts +2 -0
  199. package/dist/types/utils/mocks.d.ts +4 -2
  200. package/dist/types/utils/types.d.ts +1 -1
  201. package/dist/types/view/BlockCard/components/flexible/footer/index.d.ts +1 -1
  202. package/dist/types/view/BlockCard/views/flexible/FlexibleUnauthorisedView.d.ts +1 -1
  203. package/dist/types/view/BlockCard/views/flexible/types.d.ts +17 -13
  204. package/dist/types/view/Card/types.d.ts +1 -1
  205. package/dist/types/view/EmbedCard/views/UnauthorisedView.d.ts +3 -0
  206. package/dist/types/view/HoverCard/components/views/unauthorised/types.d.ts +15 -4
  207. package/dist/types/view/HoverCard/types.d.ts +0 -2
  208. package/dist/types/view/HoverCard/utils.d.ts +0 -1
  209. package/dist/types/view/InlineCard/ErroredView/index.d.ts +1 -1
  210. package/dist/types/view/InlineCard/ForbiddenView/index.d.ts +1 -1
  211. package/dist/types/view/InlineCard/Frame/index.d.ts +0 -1
  212. package/dist/types/view/InlineCard/Frame/styled.d.ts +3 -2
  213. package/dist/types/view/InlineCard/IconAndTitleLayout/index.d.ts +5 -0
  214. package/dist/types/view/InlineCard/ResolvingView/index.d.ts +0 -1
  215. package/dist/types/view/InlineCard/UnauthorisedView/index.d.ts +3 -1
  216. package/dist/types/view/InlineCard/styled.d.ts +1 -1
  217. package/dist/types/view/common/UnauthorisedViewContent.d.ts +7 -1
  218. package/package.json +5 -5
  219. package/report.api.md +15 -1
  220. package/tmp/api-report-tmp.d.ts +8 -4
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  'fabric.linking.connect_link_account_card_view_description': string;
14
14
  'fabric.linking.connect_link_account_card_view_name': string;
15
15
  'fabric.linking.connect_to': string;
16
+ 'fabric.linking.connect_unauthorised_account_action': string;
16
17
  'fabric.linking.couldnt_load_link': string;
17
18
  'fabric.linking.create_on_absolute': string;
18
19
  'fabric.linking.create_on_relative': string;
@@ -31,8 +32,12 @@ declare const _default: {
31
32
  'fabric.linking.more_actions': string;
32
33
  'fabric.linking.not_found_description': string;
33
34
  'fabric.linking.not_found_title': string;
35
+ 'fabric.linking.open_link_in_a_new_tab': string;
34
36
  'fabric.linking.pending_request': string;
35
37
  'fabric.linking.preview': string;
38
+ 'fabric.linking.preview_close': string;
39
+ 'fabric.linking.preview_max_size': string;
40
+ 'fabric.linking.preview_min_size': string;
36
41
  'fabric.linking.priority_blocker': string;
37
42
  'fabric.linking.priority_critical': string;
38
43
  'fabric.linking.priority_high': string;
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  'fabric.linking.connect_link_account_card_view_description': string;
14
14
  'fabric.linking.connect_link_account_card_view_name': string;
15
15
  'fabric.linking.connect_to': string;
16
+ 'fabric.linking.connect_unauthorised_account_action': string;
16
17
  'fabric.linking.couldnt_load_link': string;
17
18
  'fabric.linking.create_on_absolute': string;
18
19
  'fabric.linking.create_on_relative': string;
@@ -31,8 +32,12 @@ declare const _default: {
31
32
  'fabric.linking.more_actions': string;
32
33
  'fabric.linking.not_found_description': string;
33
34
  'fabric.linking.not_found_title': string;
35
+ 'fabric.linking.open_link_in_a_new_tab': string;
34
36
  'fabric.linking.pending_request': string;
35
37
  'fabric.linking.preview': string;
38
+ 'fabric.linking.preview_close': string;
39
+ 'fabric.linking.preview_max_size': string;
40
+ 'fabric.linking.preview_min_size': string;
36
41
  'fabric.linking.priority_blocker': string;
37
42
  'fabric.linking.priority_critical': string;
38
43
  'fabric.linking.priority_high': string;
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  'fabric.linking.connect_link_account_card_view_description': string;
14
14
  'fabric.linking.connect_link_account_card_view_name': string;
15
15
  'fabric.linking.connect_to': string;
16
+ 'fabric.linking.connect_unauthorised_account_action': string;
16
17
  'fabric.linking.couldnt_load_link': string;
17
18
  'fabric.linking.create_on_absolute': string;
18
19
  'fabric.linking.create_on_relative': string;
@@ -25,14 +26,19 @@ declare const _default: {
25
26
  'fabric.linking.invalid_permissions': string;
26
27
  'fabric.linking.invalid_permissions_description': string;
27
28
  'fabric.linking.join_to_view': string;
29
+ 'fabric.linking.learn_more_about_smart_links_security': string;
28
30
  'fabric.linking.loading': string;
29
31
  'fabric.linking.modified_on_absolute': string;
30
32
  'fabric.linking.modified_on_relative': string;
31
33
  'fabric.linking.more_actions': string;
32
34
  'fabric.linking.not_found_description': string;
33
35
  'fabric.linking.not_found_title': string;
36
+ 'fabric.linking.open_link_in_a_new_tab': string;
34
37
  'fabric.linking.pending_request': string;
35
38
  'fabric.linking.preview': string;
39
+ 'fabric.linking.preview_close': string;
40
+ 'fabric.linking.preview_max_size': string;
41
+ 'fabric.linking.preview_min_size': string;
36
42
  'fabric.linking.priority_blocker': string;
37
43
  'fabric.linking.priority_critical': string;
38
44
  'fabric.linking.priority_high': string;
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  'fabric.linking.connect_link_account_card_view_description': string;
14
14
  'fabric.linking.connect_link_account_card_view_name': string;
15
15
  'fabric.linking.connect_to': string;
16
+ 'fabric.linking.connect_unauthorised_account_action': string;
16
17
  'fabric.linking.couldnt_load_link': string;
17
18
  'fabric.linking.create_on_absolute': string;
18
19
  'fabric.linking.create_on_relative': string;
@@ -31,8 +32,12 @@ declare const _default: {
31
32
  'fabric.linking.more_actions': string;
32
33
  'fabric.linking.not_found_description': string;
33
34
  'fabric.linking.not_found_title': string;
35
+ 'fabric.linking.open_link_in_a_new_tab': string;
34
36
  'fabric.linking.pending_request': string;
35
37
  'fabric.linking.preview': string;
38
+ 'fabric.linking.preview_close': string;
39
+ 'fabric.linking.preview_max_size': string;
40
+ 'fabric.linking.preview_min_size': string;
36
41
  'fabric.linking.priority_blocker': string;
37
42
  'fabric.linking.priority_critical': string;
38
43
  'fabric.linking.priority_high': string;
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  'fabric.linking.connect_link_account_card_view_description': string;
14
14
  'fabric.linking.connect_link_account_card_view_name': string;
15
15
  'fabric.linking.connect_to': string;
16
+ 'fabric.linking.connect_unauthorised_account_action': string;
16
17
  'fabric.linking.couldnt_load_link': string;
17
18
  'fabric.linking.create_on_absolute': string;
18
19
  'fabric.linking.create_on_relative': string;
@@ -31,8 +32,12 @@ declare const _default: {
31
32
  'fabric.linking.more_actions': string;
32
33
  'fabric.linking.not_found_description': string;
33
34
  'fabric.linking.not_found_title': string;
35
+ 'fabric.linking.open_link_in_a_new_tab': string;
34
36
  'fabric.linking.pending_request': string;
35
37
  'fabric.linking.preview': string;
38
+ 'fabric.linking.preview_close': string;
39
+ 'fabric.linking.preview_max_size': string;
40
+ 'fabric.linking.preview_min_size': string;
36
41
  'fabric.linking.priority_blocker': string;
37
42
  'fabric.linking.priority_critical': string;
38
43
  'fabric.linking.priority_high': string;
@@ -1,12 +1,11 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
- import { CardAppearance } from '../../view/Card';
3
2
  import { InvokeServerOpts, InvokeClientOpts } from '../../model/invoke-opts';
4
3
  import { AnalyticsFacade } from '../analytics';
5
4
  import { CardInnerAppearance } from '../../view/Card/types';
6
5
  export declare const useSmartCardActions: (id: string, url: string, analytics: AnalyticsFacade) => {
7
6
  register: () => Promise<void>;
8
7
  reload: () => void;
9
- authorize: (appearance: CardAppearance) => void;
8
+ authorize: (appearance: CardInnerAppearance) => void;
10
9
  invoke: (opts: InvokeClientOpts | InvokeServerOpts, appearance: CardInnerAppearance) => Promise<JsonLd.Response | void>;
11
10
  loadMetadata: () => Promise<void> | undefined;
12
11
  };
@@ -110,17 +110,23 @@ export declare const useSmartLinkAnalytics: (url: string, dispatchAnalytics: Ana
110
110
  * @param previewInvokeMethod How the preview was triggered.
111
111
  * @returns
112
112
  */
113
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardViewedEventProps) => void;
113
+ hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: UiHoverCardViewedEventProps) => void;
114
114
  /**
115
115
  * This fires an event that represents a hover preview being dismissed.
116
116
  * @param hoverDisplay Whether the hover preview was displayed as a card or embed.
117
117
  * @param hoverTime The duration that the user hovered over a Smart Link before the preview was dismissed.
118
118
  * @param definitionId The definitionId of the Smart Link resolver invoked.
119
- * @param extensionKey The extensionKey of the Smart Link resovler invoked.
119
+ * @param extensionKey The extensionKey of the Smart Link resolver invoked.
120
120
  * @param previewInvokeMethod How the preview was triggered.
121
121
  * @returns
122
122
  */
123
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardDismissedEventProps) => void;
123
+ hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: UiHoverCardDismissedEventProps) => void;
124
+ /**
125
+ * Fires an event that signifies that a "Learn More" link was clicked on an unauthenticated card
126
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
127
+ * @param location The location where a link is displayed (jiraWebLinks, confluencePages etc)
128
+ */
129
+ learnMoreClickedEvent: () => void;
124
130
  };
125
131
  operational: {
126
132
  /**
@@ -168,12 +174,19 @@ export declare const useSmartLinkAnalytics: (url: string, dispatchAnalytics: Ana
168
174
  };
169
175
  track: {
170
176
  /**
171
- * This fires an event which represents a user starting the Smart Link connect account process.
177
+ * This fires an event which represents a user connecting their account to view a Smart Link.
172
178
  * @param definitionId The definitionId of the Smart Link resolver invoked.
173
179
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
174
180
  * @returns
175
181
  */
176
182
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
183
+ /**
184
+ * This fires an event which represents a user starting the Smart Link connect account process.
185
+ * @param location a location where the Smart Link auth action was initiated.
186
+ * @param extensionKey The extensionKey of the Smart Link resolver invoked.
187
+ * @returns
188
+ */
189
+ appAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => void;
177
190
  };
178
191
  screen: {
179
192
  /**
@@ -26,8 +26,9 @@ export declare const FlexibleUiAnalyticsContext: import("react").Context<{
26
26
  }) => void;
27
27
  renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
28
28
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
29
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
30
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
29
+ hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
30
+ hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
31
+ learnMoreClickedEvent: () => void;
31
32
  };
32
33
  operational: {
33
34
  invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
@@ -38,6 +39,7 @@ export declare const FlexibleUiAnalyticsContext: import("react").Context<{
38
39
  };
39
40
  track: {
40
41
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
42
+ appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
41
43
  };
42
44
  screen: {
43
45
  authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
@@ -62,8 +64,9 @@ export declare const useFlexibleUiAnalyticsContext: () => {
62
64
  }) => void;
63
65
  renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
64
66
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
65
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
66
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
67
+ hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
68
+ hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
69
+ learnMoreClickedEvent: () => void;
67
70
  };
68
71
  operational: {
69
72
  invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
@@ -74,6 +77,7 @@ export declare const useFlexibleUiAnalyticsContext: () => {
74
77
  };
75
78
  track: {
76
79
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
80
+ appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
77
81
  };
78
82
  screen: {
79
83
  authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
@@ -4,7 +4,7 @@ export declare function useSmartLink(id: string, url: string, dispatchAnalytics:
4
4
  actions: {
5
5
  register: () => Promise<void>;
6
6
  reload: () => void;
7
- authorize: (appearance: import("@atlaskit/linking-common").CardAppearance) => void;
7
+ authorize: (appearance: import("../../view/Card/types").CardInnerAppearance) => void;
8
8
  invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<void | import("json-ld-types").JsonLd.Response<import("json-ld-types").JsonLd.Data.BaseData>>;
9
9
  loadMetadata: () => Promise<void> | undefined;
10
10
  };
@@ -25,8 +25,9 @@ export declare function useSmartLink(id: string, url: string, dispatchAnalytics:
25
25
  }) => void;
26
26
  renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
27
27
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
28
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
29
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
28
+ hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
29
+ hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
30
+ learnMoreClickedEvent: () => void;
30
31
  };
31
32
  operational: {
32
33
  invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
@@ -37,6 +38,7 @@ export declare function useSmartLink(id: string, url: string, dispatchAnalytics:
37
38
  };
38
39
  track: {
39
40
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
41
+ appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
40
42
  };
41
43
  screen: {
42
44
  authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
@@ -19,6 +19,7 @@ export declare const invokeFailedEvent: ({ id, actionType, display, reason, exte
19
19
  export declare const connectSucceededEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => AnalyticsPayload;
20
20
  export declare const connectFailedEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, reason, }: ConnectFailedEventProps) => AnalyticsPayload;
21
21
  export declare const trackAppAccountConnected: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => AnalyticsPayload;
22
+ export declare const trackAppAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => AnalyticsPayload;
22
23
  export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
23
24
  export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
24
25
  export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
@@ -27,6 +28,7 @@ export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId,
27
28
  export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
28
29
  export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => AnalyticsPayload;
29
30
  export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
30
- export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardViewedEventProps) => AnalyticsPayload;
31
- export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
31
+ export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardViewedEventProps) => AnalyticsPayload;
32
+ export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
32
33
  export declare const uiHoverCardOpenLinkClickedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => AnalyticsPayload;
34
+ export declare const uiLearnMoreLinkClickedEvent: () => AnalyticsPayload;
@@ -1,4 +1,4 @@
1
1
  import { AnalyticsPayload } from '../types';
2
2
  import { InstrumentEventProps } from './types';
3
- export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, } from './analytics';
3
+ export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountAuthStarted, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, } from './analytics';
4
4
  export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
@@ -76,11 +76,13 @@ export declare type UiRenderFailedEventProps = CommonEventProps & {
76
76
  export declare type UiHoverCardViewedEventProps = CommonEventProps & {
77
77
  previewDisplay: PreviewDisplay;
78
78
  previewInvokeMethod?: PreviewInvokeMethod;
79
+ status: CardType;
79
80
  };
80
81
  export declare type UiHoverCardDismissedEventProps = CommonEventProps & {
81
82
  previewDisplay: PreviewDisplay;
82
83
  hoverTime: number;
83
84
  previewInvokeMethod?: PreviewInvokeMethod;
85
+ status: CardType;
84
86
  };
85
87
  export declare type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
86
88
  previewDisplay: PreviewDisplay;
@@ -53,8 +53,9 @@ export declare const mockAnalytics: {
53
53
  }) => void;
54
54
  renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
55
55
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
56
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
57
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
56
+ hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
57
+ hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
58
+ learnMoreClickedEvent: () => void;
58
59
  };
59
60
  operational: {
60
61
  invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
@@ -65,6 +66,7 @@ export declare const mockAnalytics: {
65
66
  };
66
67
  track: {
67
68
  appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
69
+ appAccountAuthStarted: ({ extensionKey, location, }: import("./analytics/types").CommonEventProps) => void;
68
70
  };
69
71
  screen: {
70
72
  authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
@@ -1,6 +1,6 @@
1
1
  import { GasPayload } from '@atlaskit/analytics-gas-types';
2
2
  import { CardInnerAppearance } from '../view/Card/types';
3
- export declare type AnalyticsAction = 'resolved' | 'unresolved' | 'connectSucceeded' | 'connectFailed' | 'connected' | 'clicked' | 'closed' | 'renderFailed' | 'renderWithStatus' | 'renderSuccess' | 'inserted' | 'viewed' | 'dismissed' | 'created';
3
+ export declare type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved';
4
4
  export declare type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal';
5
5
  export declare type AnalyticsName = 'embedPreviewModal';
6
6
  export declare type AnalyticsOrigin = 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { BlockCardFooterProps } from './types';
3
3
  /**
4
- * This Components is a footer that is used in a Block Card with Flexible UI.
4
+ * This Component is a footer that is used in a Block Card with Flexible UI.
5
5
  * It contains a provider icon if provider is present and an actions list if one is passed.
6
6
  * To be shown as a part of Flexible UI, needs to be wrapped inside of a CustomBlock
7
7
  *
@@ -7,5 +7,5 @@ import { FlexibleBlockCardProps } from './types';
7
7
  * @see SmartLinkStatus
8
8
  * @see FlexibleCardProps
9
9
  */
10
- declare const FlexibleUnauthorisedView: ({ cardState, onAuthorize, onClick, onError, testId, ui, url, }: FlexibleBlockCardProps) => JSX.Element;
10
+ declare const FlexibleUnauthorisedView: ({ analytics, cardState, extensionKey, onAuthorize, onClick, onError, testId, ui, url, }: FlexibleBlockCardProps) => JSX.Element;
11
11
  export default FlexibleUnauthorisedView;
@@ -6,20 +6,23 @@ import { OnResolveCallback } from '../../../Card/types';
6
6
  import { CardProviderRenderers } from '@atlaskit/link-provider';
7
7
  import { AnalyticsFacade } from '../../../../state/analytics';
8
8
  export declare type FlexibleBlockCardProps = {
9
+ /**
10
+ * An AnalyticsFacade object used for calling analytics.
11
+ */
12
+ analytics: AnalyticsFacade;
9
13
  /**
10
14
  * Determines the status and data of the Smart Link.
11
15
  * @internal
12
16
  */
13
17
  cardState: CardState;
14
18
  /**
15
- * function to be called after a flexible card has rendered its resolved state
19
+ * Provides the extensionKey of a Smart Link resolver invoked.
16
20
  */
17
- onResolve?: OnResolveCallback;
21
+ extensionKey?: string;
18
22
  /**
19
- * Any additional renderers required by Flexible UI. Currently used by icon
20
- * to render Emoji.
23
+ * A unique id for this Smart Link instance, used for analytics.
21
24
  */
22
- renderers?: CardProviderRenderers;
25
+ id?: string;
23
26
  /**
24
27
  * An additional action that can be performed when link is not resolved, e.g.
25
28
  * connect account to gain access to 403 link.
@@ -35,6 +38,15 @@ export declare type FlexibleBlockCardProps = {
35
38
  * function to be called after a flexible card has rendered its error states
36
39
  */
37
40
  onError?: OnErrorCallback;
41
+ /**
42
+ * function to be called after a flexible card has rendered its resolved state
43
+ */
44
+ onResolve?: OnResolveCallback;
45
+ /**
46
+ * Any additional renderers required by Flexible UI. Currently used by icon
47
+ * to render Emoji.
48
+ */
49
+ renderers?: CardProviderRenderers;
38
50
  /**
39
51
  * A name of the provider, needed to specify to user which account has to be connected
40
52
  */
@@ -50,14 +62,6 @@ export declare type FlexibleBlockCardProps = {
50
62
  * @see FlexibleUiOptions
51
63
  */
52
64
  ui?: FlexibleUiOptions;
53
- /**
54
- * A unique id for this Smart Link instance, used for analytics.
55
- */
56
- id?: string;
57
- /**
58
- * An AnalyticsFacade object used for calling analytics.
59
- */
60
- analytics: AnalyticsFacade;
61
65
  /**
62
66
  * Determines the URL of the Smart Link.
63
67
  */
@@ -5,7 +5,7 @@ import { AnalyticsFacade } from '../../state/analytics';
5
5
  import { FlexibleUiOptions } from '../FlexibleCard/types';
6
6
  import { InlinePreloaderStyle, OnErrorCallback } from '../types';
7
7
  export type { CardAppearance, CardPlatform };
8
- export declare type CardInnerAppearance = CardAppearance | 'preview' | 'flexible';
8
+ export declare type CardInnerAppearance = CardAppearance | 'embedPreview' | 'flexible' | 'hoverCardPreview';
9
9
  export declare type OnResolveCallback = (data: {
10
10
  url?: string;
11
11
  title?: string;
@@ -1,6 +1,8 @@
1
1
  import React, { FC } from 'react';
2
2
  import { ContextViewModel } from '../types';
3
+ import { AnalyticsFacade } from '../../../state/analytics';
3
4
  export interface EmbedCardUnauthorisedViewProps {
5
+ analytics: AnalyticsFacade;
4
6
  context?: ContextViewModel;
5
7
  link: string;
6
8
  isSelected?: boolean;
@@ -8,5 +10,6 @@ export interface EmbedCardUnauthorisedViewProps {
8
10
  onAuthorise?: () => void;
9
11
  inheritDimensions?: boolean;
10
12
  onClick?: (evt: React.MouseEvent) => void;
13
+ extensionKey?: string;
11
14
  }
12
15
  export declare const EmbedCardUnauthorisedView: FC<EmbedCardUnauthorisedViewProps>;
@@ -1,19 +1,30 @@
1
1
  import { FlexibleCardProps } from '../../../../FlexibleCard/types';
2
+ import { AnalyticsFacade } from '../../../../../state/analytics';
2
3
  export declare type HoverCardUnauthorisedProps = {
4
+ /**
5
+ * An AnalyticsFacade object used for calling analytics.
6
+ */
7
+ analytics: AnalyticsFacade;
8
+ /**
9
+ * Provides the extensionKey of a Smart Link resolver invoked.
10
+ */
11
+ extensionKey?: string;
3
12
  /**
4
13
  * Data required for rendering a Flexible Card
5
14
  */
6
15
  flexibleCardProps: FlexibleCardProps;
7
16
  /**
8
- * A function that determines an additional action that can be performed on an unauthorised link, e.g.
9
- * connecting an account to gain access.
10
- * @internal
17
+ * A unique ID for a Smart Link.
11
18
  */
12
- onAuthorize?: () => void;
19
+ id?: string;
13
20
  /**
14
21
  * A `testId` prop is provided for specified elements, which is a unique
15
22
  * string that appears as a data attribute `data-testid` in the rendered code,
16
23
  * serving as a hook for automated tests
17
24
  */
18
25
  testId?: string;
26
+ /**
27
+ * The url that we were trying to resolve and that has the 'unauthorized' state for the current user
28
+ */
29
+ url: string;
19
30
  };
@@ -16,7 +16,6 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
16
16
  export interface HoverCardComponentProps extends HoverCardProps {
17
17
  analyticsHandler: AnalyticsHandler;
18
18
  analytics: AnalyticsFacade;
19
- onAuthorize?: () => void;
20
19
  }
21
20
  export declare type PreviewDisplay = 'card' | 'embed';
22
21
  export declare type PreviewInvokeMethod = 'keyboard' | 'mouse_hover' | 'mouse_click';
@@ -34,7 +33,6 @@ export declare type HoverCardContentProps = {
34
33
  onActionClick: (actionId: string) => void;
35
34
  onResolve: () => void;
36
35
  url: string;
37
- onAuthorize?: () => void;
38
36
  };
39
37
  export declare type SnippetOrPreviewProps = {
40
38
  data: JsonLd.Data.BaseData;
@@ -1,6 +1,5 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
2
  import { LinkAction } from '../../state/hooks-external/useSmartLinkActions';
3
3
  import { ElementItem } from '../FlexibleCard/components/blocks/types';
4
- export declare const SMART_CARD_ANALYTICS_DISPLAY = "flexible";
5
4
  export declare const getSimulatedMetadata: (extensionKey?: string, types?: JsonLd.Primitives.ObjectType[]) => JsonLd.Primitives.Property<any>;
6
5
  export declare const toActionableMetadata: (onActionClick: (actionId: string) => void, extensionKey?: string | undefined, types?: JsonLd.Primitives.ObjectType[], cardActions?: LinkAction[], elementItems?: ElementItem[]) => ElementItem[];
@@ -16,6 +16,6 @@ export interface InlineCardErroredViewProps {
16
16
  }
17
17
  export declare class InlineCardErroredView extends React.Component<InlineCardErroredViewProps> {
18
18
  handleRetry: (event: React.MouseEvent<HTMLElement>) => void;
19
- renderMessage: () => JSX.Element;
19
+ renderRightSide: () => string | JSX.Element;
20
20
  render(): JSX.Element;
21
21
  }
@@ -20,6 +20,6 @@ export interface InlineCardForbiddenViewProps {
20
20
  export declare class InlineCardForbiddenView extends React.Component<InlineCardForbiddenViewProps> {
21
21
  handleRetry: (event: React.MouseEvent<HTMLElement>) => void;
22
22
  renderForbiddenAccessMessage: () => JSX.Element;
23
- renderMessage: () => JSX.Element;
23
+ renderRightSide: () => JSX.Element | null;
24
24
  render(): JSX.Element;
25
25
  }
@@ -4,7 +4,6 @@ export interface FrameViewProps {
4
4
  isSelected?: boolean;
5
5
  /** A flag that determines whether the card needs a backgorund or not */
6
6
  withoutBackground?: boolean;
7
- withoutHover?: boolean;
8
7
  children?: React.ReactNode;
9
8
  link?: string;
10
9
  /** The optional click handler */
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  export interface WrapperProps {
3
+ href?: string;
3
4
  isSelected?: boolean;
4
5
  isInteractive?: boolean;
5
- withoutHover?: boolean;
6
6
  withoutBackground?: boolean;
7
7
  }
8
- export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, WrapperProps, object>;
8
+ export declare const WrapperAnchor: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, WrapperProps, object>;
9
+ export declare const WrapperSpan: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, WrapperProps, object>;
@@ -9,11 +9,16 @@ export interface IconAndTitleLayoutProps {
9
9
  children?: React.ReactNode;
10
10
  defaultIcon?: React.ReactNode;
11
11
  testId?: string;
12
+ link?: string;
13
+ rightSide?: React.ReactNode;
14
+ onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
12
15
  }
13
16
  export declare class IconAndTitleLayout extends React.Component<IconAndTitleLayoutProps> {
14
17
  private renderAtlaskitIcon;
15
18
  private renderImageIcon;
16
19
  private renderIconPlaceholder;
17
20
  renderIcon(testId: string): JSX.Element;
21
+ handleClick: (event: React.MouseEvent) => void;
22
+ handleKeyPress: (event: React.KeyboardEvent<HTMLAnchorElement>) => void;
18
23
  render(): JSX.Element;
19
24
  }
@@ -11,7 +11,6 @@ export interface InlineCardResolvingViewProps {
11
11
  /** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
12
12
  testId?: string;
13
13
  titleTextColor?: string;
14
- withoutHover?: boolean;
15
14
  }
16
15
  export declare class InlineCardResolvingView extends React.Component<InlineCardResolvingViewProps> {
17
16
  render(): JSX.Element;
@@ -16,9 +16,11 @@ export interface InlineCardUnauthorizedViewProps {
16
16
  testId?: string;
17
17
  /** A flag that determines is a tooltip should show up on hover over the unauthorised link */
18
18
  showAuthTooltip?: boolean;
19
+ /** A smart link id that may be used in analytics */
20
+ id?: string;
19
21
  }
20
22
  export declare class InlineCardUnauthorizedView extends React.Component<InlineCardUnauthorizedViewProps> {
21
23
  handleConnectAccount: (event: React.MouseEvent<HTMLElement>) => void;
22
- renderMessage: () => JSX.Element;
24
+ renderRightSide: () => JSX.Element | undefined;
23
25
  render(): JSX.Element;
24
26
  }
@@ -4,6 +4,6 @@ export declare const NoLinkAppearance: import("@emotion/styled-base").StyledComp
4
4
  __ATLASKIT_THEME__: import("@atlaskit/theme").Theme;
5
5
  }>;
6
6
  export declare const LowercaseAppearance: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
7
- export declare const LinkAppearance: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("@emotion/styled-base/types/helper").Overwrapped<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("@atlaskit/theme").ThemeProps | undefined>, never>, {
7
+ export declare const LinkAppearance: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, Pick<import("@emotion/styled-base/types/helper").Overwrapped<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, import("@atlaskit/theme").ThemeProps | undefined>, never>, {
8
8
  __ATLASKIT_THEME__: import("@atlaskit/theme").Theme;
9
9
  }>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { AnalyticsFacade } from '../../state/analytics';
2
3
  declare type UnauthorisedViewContentProps = {
3
4
  /**
4
5
  * Is the name of the provider for the account that needs to be connected
@@ -11,10 +12,15 @@ declare type UnauthorisedViewContentProps = {
11
12
  * serving as a hook for automated tests
12
13
  */
13
14
  testId?: string;
15
+ /**
16
+ * An analytics facade object which will be used to send analytics.
17
+ * @internal
18
+ */
19
+ analytics?: AnalyticsFacade;
14
20
  };
15
21
  /**
16
22
  * This component is used in unauthorized views of a smart link.
17
23
  * It represents the main text that provides a user with information on how to connect their account
18
24
  */
19
- declare const UnauthorisedViewContent: ({ providerName, testId, }: UnauthorisedViewContentProps) => JSX.Element;
25
+ declare const UnauthorisedViewContent: ({ providerName, testId, analytics, }: UnauthorisedViewContentProps) => JSX.Element;
20
26
  export default UnauthorisedViewContent;