@atlaskit/smart-card 19.1.9 → 19.1.12

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 (213) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/extractors/common/context/extractAccessContext.js +1 -1
  3. package/dist/cjs/i18n/cs.js +127 -5
  4. package/dist/cjs/i18n/da.js +126 -5
  5. package/dist/cjs/i18n/de.js +127 -5
  6. package/dist/cjs/i18n/en.js +127 -5
  7. package/dist/cjs/i18n/en_GB.js +127 -5
  8. package/dist/cjs/i18n/en_ZZ.js +127 -5
  9. package/dist/cjs/i18n/es.js +127 -5
  10. package/dist/cjs/i18n/et.js +87 -1
  11. package/dist/cjs/i18n/fi.js +127 -5
  12. package/dist/cjs/i18n/fr.js +127 -5
  13. package/dist/cjs/i18n/hu.js +127 -5
  14. package/dist/cjs/i18n/index.js +239 -0
  15. package/dist/cjs/i18n/is.js +77 -0
  16. package/dist/cjs/i18n/it.js +127 -5
  17. package/dist/cjs/i18n/ja.js +127 -5
  18. package/dist/cjs/i18n/ko.js +127 -5
  19. package/dist/cjs/i18n/languages.js +33 -0
  20. package/dist/cjs/i18n/nb.js +127 -5
  21. package/dist/cjs/i18n/nl.js +127 -5
  22. package/dist/cjs/i18n/pl.js +127 -5
  23. package/dist/cjs/i18n/pt_BR.js +127 -5
  24. package/dist/cjs/i18n/pt_PT.js +87 -1
  25. package/dist/cjs/i18n/ro.js +77 -0
  26. package/dist/cjs/i18n/ru.js +127 -5
  27. package/dist/cjs/i18n/sk.js +87 -1
  28. package/dist/cjs/i18n/sv.js +127 -5
  29. package/dist/cjs/i18n/th.js +127 -5
  30. package/dist/cjs/i18n/tr.js +127 -5
  31. package/dist/cjs/i18n/uk.js +127 -5
  32. package/dist/cjs/i18n/vi.js +127 -5
  33. package/dist/cjs/i18n/zh.js +127 -5
  34. package/dist/cjs/i18n/zh_TW.js +127 -5
  35. package/dist/cjs/messages.js +167 -2
  36. package/dist/cjs/utils/index.js +8 -2
  37. package/dist/cjs/version.json +1 -1
  38. package/dist/cjs/view/BlockCard/actions/AuthorizeAction.js +1 -1
  39. package/dist/cjs/view/BlockCard/actions/DownloadAction.js +1 -1
  40. package/dist/cjs/view/BlockCard/actions/ForbiddenAction.js +1 -1
  41. package/dist/cjs/view/BlockCard/actions/PreviewAction.js +1 -1
  42. package/dist/cjs/view/BlockCard/actions/RetryAction.js +1 -1
  43. package/dist/cjs/view/BlockCard/actions/ViewAction.js +1 -1
  44. package/dist/cjs/view/BlockCard/views/ErroredView.js +1 -1
  45. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +1 -1
  46. package/dist/cjs/view/BlockCard/views/NotFoundView.js +1 -1
  47. package/dist/cjs/view/BlockCard/views/ResolvingView.js +1 -1
  48. package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +1 -1
  49. package/dist/cjs/view/CardWithUrl/component-lazy/index.js +3 -3
  50. package/dist/cjs/view/EmbedCard/components/styled.js +29 -13
  51. package/dist/cjs/view/EmbedCard/views/ErroredView.js +1 -1
  52. package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +1 -1
  53. package/dist/cjs/view/FlexibleCard/utils.js +2 -2
  54. package/dist/cjs/view/InlineCard/ErroredView/index.js +1 -1
  55. package/dist/cjs/view/InlineCard/ForbiddenView/index.js +1 -1
  56. package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -1
  57. package/dist/cjs/view/common/ModalHeader.js +1 -1
  58. package/dist/es2019/extractors/common/context/extractAccessContext.js +1 -1
  59. package/dist/es2019/i18n/cs.js +127 -5
  60. package/dist/es2019/i18n/da.js +126 -5
  61. package/dist/es2019/i18n/de.js +127 -5
  62. package/dist/es2019/i18n/en.js +127 -5
  63. package/dist/es2019/i18n/en_GB.js +127 -5
  64. package/dist/es2019/i18n/en_ZZ.js +127 -5
  65. package/dist/es2019/i18n/es.js +127 -5
  66. package/dist/es2019/i18n/et.js +87 -1
  67. package/dist/es2019/i18n/fi.js +127 -5
  68. package/dist/es2019/i18n/fr.js +127 -5
  69. package/dist/es2019/i18n/hu.js +127 -5
  70. package/dist/es2019/i18n/index.js +35 -0
  71. package/dist/es2019/i18n/is.js +70 -0
  72. package/dist/es2019/i18n/it.js +127 -5
  73. package/dist/es2019/i18n/ja.js +127 -5
  74. package/dist/es2019/i18n/ko.js +127 -5
  75. package/dist/es2019/i18n/languages.js +26 -0
  76. package/dist/es2019/i18n/nb.js +127 -5
  77. package/dist/es2019/i18n/nl.js +127 -5
  78. package/dist/es2019/i18n/pl.js +127 -5
  79. package/dist/es2019/i18n/pt_BR.js +127 -5
  80. package/dist/es2019/i18n/pt_PT.js +87 -1
  81. package/dist/es2019/i18n/ro.js +70 -0
  82. package/dist/es2019/i18n/ru.js +127 -5
  83. package/dist/es2019/i18n/sk.js +87 -1
  84. package/dist/es2019/i18n/sv.js +127 -5
  85. package/dist/es2019/i18n/th.js +127 -5
  86. package/dist/es2019/i18n/tr.js +127 -5
  87. package/dist/es2019/i18n/uk.js +127 -5
  88. package/dist/es2019/i18n/vi.js +127 -5
  89. package/dist/es2019/i18n/zh.js +127 -5
  90. package/dist/es2019/i18n/zh_TW.js +127 -5
  91. package/dist/es2019/messages.js +167 -2
  92. package/dist/es2019/utils/index.js +2 -1
  93. package/dist/es2019/version.json +1 -1
  94. package/dist/es2019/view/BlockCard/actions/AuthorizeAction.js +1 -1
  95. package/dist/es2019/view/BlockCard/actions/DownloadAction.js +1 -1
  96. package/dist/es2019/view/BlockCard/actions/ForbiddenAction.js +1 -1
  97. package/dist/es2019/view/BlockCard/actions/PreviewAction.js +1 -1
  98. package/dist/es2019/view/BlockCard/actions/RetryAction.js +1 -1
  99. package/dist/es2019/view/BlockCard/actions/ViewAction.js +1 -1
  100. package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
  101. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -1
  102. package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
  103. package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -1
  104. package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +1 -1
  105. package/dist/es2019/view/CardWithUrl/component-lazy/index.js +1 -1
  106. package/dist/es2019/view/EmbedCard/components/styled.js +22 -4
  107. package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
  108. package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +1 -1
  109. package/dist/es2019/view/FlexibleCard/utils.js +2 -2
  110. package/dist/es2019/view/InlineCard/ErroredView/index.js +1 -1
  111. package/dist/es2019/view/InlineCard/ForbiddenView/index.js +1 -1
  112. package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +1 -1
  113. package/dist/es2019/view/common/ModalHeader.js +1 -1
  114. package/dist/esm/extractors/common/context/extractAccessContext.js +1 -1
  115. package/dist/esm/i18n/cs.js +127 -5
  116. package/dist/esm/i18n/da.js +126 -5
  117. package/dist/esm/i18n/de.js +127 -5
  118. package/dist/esm/i18n/en.js +127 -5
  119. package/dist/esm/i18n/en_GB.js +127 -5
  120. package/dist/esm/i18n/en_ZZ.js +127 -5
  121. package/dist/esm/i18n/es.js +127 -5
  122. package/dist/esm/i18n/et.js +87 -1
  123. package/dist/esm/i18n/fi.js +127 -5
  124. package/dist/esm/i18n/fr.js +127 -5
  125. package/dist/esm/i18n/hu.js +127 -5
  126. package/dist/esm/i18n/index.js +35 -0
  127. package/dist/esm/i18n/is.js +70 -0
  128. package/dist/esm/i18n/it.js +127 -5
  129. package/dist/esm/i18n/ja.js +127 -5
  130. package/dist/esm/i18n/ko.js +127 -5
  131. package/dist/esm/i18n/languages.js +26 -0
  132. package/dist/esm/i18n/nb.js +127 -5
  133. package/dist/esm/i18n/nl.js +127 -5
  134. package/dist/esm/i18n/pl.js +127 -5
  135. package/dist/esm/i18n/pt_BR.js +127 -5
  136. package/dist/esm/i18n/pt_PT.js +87 -1
  137. package/dist/esm/i18n/ro.js +70 -0
  138. package/dist/esm/i18n/ru.js +127 -5
  139. package/dist/esm/i18n/sk.js +87 -1
  140. package/dist/esm/i18n/sv.js +127 -5
  141. package/dist/esm/i18n/th.js +127 -5
  142. package/dist/esm/i18n/tr.js +127 -5
  143. package/dist/esm/i18n/uk.js +127 -5
  144. package/dist/esm/i18n/vi.js +127 -5
  145. package/dist/esm/i18n/zh.js +127 -5
  146. package/dist/esm/i18n/zh_TW.js +127 -5
  147. package/dist/esm/messages.js +167 -2
  148. package/dist/esm/state/actions/index.js +1 -1
  149. package/dist/esm/state/hooks/usePrefetch.js +1 -1
  150. package/dist/esm/utils/index.js +3 -0
  151. package/dist/esm/utils/mocks.js +1 -1
  152. package/dist/esm/version.json +1 -1
  153. package/dist/esm/view/BlockCard/actions/AuthorizeAction.js +1 -1
  154. package/dist/esm/view/BlockCard/actions/DownloadAction.js +2 -2
  155. package/dist/esm/view/BlockCard/actions/ForbiddenAction.js +1 -1
  156. package/dist/esm/view/BlockCard/actions/PreviewAction.js +2 -2
  157. package/dist/esm/view/BlockCard/actions/RetryAction.js +2 -2
  158. package/dist/esm/view/BlockCard/actions/ViewAction.js +2 -2
  159. package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
  160. package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -1
  161. package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
  162. package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -1
  163. package/dist/esm/view/BlockCard/views/UnauthorizedView.js +1 -1
  164. package/dist/esm/view/CardWithUrl/component-lazy/index.js +1 -1
  165. package/dist/esm/view/EmbedCard/components/styled.js +14 -4
  166. package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
  167. package/dist/esm/view/EmbedCard/views/UnresolvedView.js +1 -1
  168. package/dist/esm/view/FlexibleCard/utils.js +2 -2
  169. package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
  170. package/dist/esm/view/InlineCard/ForbiddenView/index.js +1 -1
  171. package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -1
  172. package/dist/esm/view/common/ModalHeader.js +1 -1
  173. package/dist/types/i18n/cs.d.ts +126 -4
  174. package/dist/types/i18n/da.d.ts +125 -4
  175. package/dist/types/i18n/de.d.ts +126 -4
  176. package/dist/types/i18n/en.d.ts +126 -4
  177. package/dist/types/i18n/en_GB.d.ts +126 -4
  178. package/dist/types/i18n/en_ZZ.d.ts +126 -4
  179. package/dist/types/i18n/es.d.ts +126 -4
  180. package/dist/types/i18n/et.d.ts +87 -1
  181. package/dist/types/i18n/fi.d.ts +126 -4
  182. package/dist/types/i18n/fr.d.ts +126 -4
  183. package/dist/types/i18n/hu.d.ts +126 -4
  184. package/dist/types/i18n/index.d.ts +35 -0
  185. package/dist/types/i18n/is.d.ts +70 -0
  186. package/dist/types/i18n/it.d.ts +126 -4
  187. package/dist/types/i18n/ja.d.ts +126 -4
  188. package/dist/types/i18n/ko.d.ts +126 -4
  189. package/dist/types/i18n/languages.d.ts +27 -0
  190. package/dist/types/i18n/nb.d.ts +126 -4
  191. package/dist/types/i18n/nl.d.ts +126 -4
  192. package/dist/types/i18n/pl.d.ts +126 -4
  193. package/dist/types/i18n/pt_BR.d.ts +126 -4
  194. package/dist/types/i18n/pt_PT.d.ts +87 -1
  195. package/dist/types/i18n/ro.d.ts +70 -0
  196. package/dist/types/i18n/ru.d.ts +126 -4
  197. package/dist/types/i18n/sk.d.ts +87 -1
  198. package/dist/types/i18n/sv.d.ts +126 -4
  199. package/dist/types/i18n/th.d.ts +126 -4
  200. package/dist/types/i18n/tr.d.ts +126 -4
  201. package/dist/types/i18n/uk.d.ts +126 -4
  202. package/dist/types/i18n/vi.d.ts +126 -4
  203. package/dist/types/i18n/zh.d.ts +126 -4
  204. package/dist/types/i18n/zh_TW.d.ts +126 -4
  205. package/dist/types/messages.d.ts +2 -1
  206. package/dist/types/types.d.ts +1 -1
  207. package/dist/types/utils/index.d.ts +1 -0
  208. package/dist/types/view/EmbedCard/components/styled.d.ts +3 -0
  209. package/dist/types/view/EmbedCard/types.d.ts +1 -1
  210. package/dist/types/view/EmbedCard/views/UnresolvedView.d.ts +1 -1
  211. package/dist/types/view/__mocks__/intersection-observer.mock.d.ts +12 -0
  212. package/dist/types/view/types.d.ts +1 -1
  213. package/package.json +8 -9
@@ -8,6 +8,21 @@ exports.messages = void 0;
8
8
  var _reactIntlNext = require("react-intl-next");
9
9
 
10
10
  var messages = (0, _reactIntlNext.defineMessages)({
11
+ actions: {
12
+ id: 'fabric.linking.actions',
13
+ defaultMessage: 'Actions',
14
+ description: ''
15
+ },
16
+ add_account: {
17
+ id: 'fabric.linking.add_account',
18
+ defaultMessage: 'Add account',
19
+ description: 'Allows to add a new account'
20
+ },
21
+ cancel: {
22
+ id: 'fabric.linking.cancel',
23
+ defaultMessage: 'Cancel',
24
+ description: 'cancel'
25
+ },
11
26
  cannot_connect: {
12
27
  id: 'fabric.linking.cannot_connect',
13
28
  defaultMessage: "Can't connect, try again",
@@ -20,14 +35,54 @@ var messages = (0, _reactIntlNext.defineMessages)({
20
35
  },
21
36
  click_to_join: {
22
37
  id: 'fabric.linking.click_to_join',
23
- defaultMessage: 'Join {context} to view this issue',
38
+ defaultMessage: 'Join {context}',
24
39
  description: 'Allows the user join the product or service immediately'
25
40
  },
41
+ click_to_join_description: {
42
+ id: 'fabric.linking.click_to_join_description',
43
+ defaultMessage: "You've been approved, so you can join {context} right away.",
44
+ description: 'Informs the user that they have access to this product, and can sign up or join right away.'
45
+ },
46
+ close: {
47
+ id: 'fabric.linking.close',
48
+ defaultMessage: 'Close',
49
+ description: ''
50
+ },
51
+ connect_to: {
52
+ id: 'fabric.linking.connect_to',
53
+ defaultMessage: 'Connect to {name}',
54
+ description: 'Allows the user to connect with different types of external services'
55
+ },
56
+ connect_account_description: {
57
+ id: 'fabric.linking.connect_account_description',
58
+ defaultMessage: "We'll open a new page to help you connect your {name} account",
59
+ description: 'Explains what will happen when the users connects to a new account'
60
+ },
26
61
  connect_link_account: {
27
62
  id: 'fabric.linking.connect_link_account',
28
63
  defaultMessage: 'Connect to preview',
29
64
  description: 'Shown when a user does not have access to a link, but can connect their external account to view the link.'
30
65
  },
66
+ connect_link_account_card: {
67
+ id: 'fabric.linking.connect_link_account_card_view',
68
+ defaultMessage: 'Connect',
69
+ description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view.'
70
+ },
71
+ connect_link_account_card_name: {
72
+ id: 'fabric.linking.connect_link_account_card_view_name',
73
+ defaultMessage: 'Connect your {context} account',
74
+ description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view. Displayed in title.'
75
+ },
76
+ connect_link_account_card_description: {
77
+ id: 'fabric.linking.connect_link_account_card_view_description',
78
+ defaultMessage: 'To show a preview of this link, connect your {context} account.',
79
+ description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view. Displayed in byline.'
80
+ },
81
+ could_not_load_link: {
82
+ id: 'fabric.linking.couldnt_load_link',
83
+ defaultMessage: "We couldn't load this link for an unknown reason.",
84
+ description: 'Error case for card view - link could not be loaded.'
85
+ },
31
86
  created_by: {
32
87
  id: 'fabric.linking.created_by',
33
88
  defaultMessage: 'Created by {context}',
@@ -48,11 +103,41 @@ var messages = (0, _reactIntlNext.defineMessages)({
48
103
  defaultMessage: 'Delete',
49
104
  description: 'Allow a user to delete a link'
50
105
  },
106
+ download: {
107
+ id: 'fabric.linking.download',
108
+ defaultMessage: 'Download',
109
+ description: ''
110
+ },
51
111
  edit: {
52
112
  id: 'fabric.linking.edit',
53
113
  defaultMessage: 'Edit',
54
114
  description: 'Allow a user to edit a link'
55
115
  },
116
+ forbidden_description: {
117
+ id: 'fabric.linking.forbidden_description',
118
+ defaultMessage: 'You don’t have access to this preview. Contact the site admin if you need access.',
119
+ description: 'Informs the user that they cannot view this content.'
120
+ },
121
+ invalid_permissions: {
122
+ id: 'fabric.linking.invalid_permissions',
123
+ defaultMessage: 'Restricted link',
124
+ description: 'Message shown when a user does not have permissions to view an item'
125
+ },
126
+ invalid_permissions_description: {
127
+ id: 'fabric.linking.invalid_permissions_description',
128
+ defaultMessage: "You'll need to request access or try a different account to view this preview.",
129
+ description: 'Message shown when a user does not have permissions to view an item. Displayed as description.'
130
+ },
131
+ join_to_view: {
132
+ id: 'fabric.linking.join_to_view',
133
+ defaultMessage: 'Join {context} to view this issue',
134
+ description: 'Allows the user join the product or service immediately'
135
+ },
136
+ loading: {
137
+ id: 'fabric.linking.loading',
138
+ defaultMessage: 'Loading...',
139
+ description: 'Indicates an element on a page is loading.'
140
+ },
56
141
  modified_by: {
57
142
  id: 'fabric.linking.updated_by',
58
143
  defaultMessage: 'Modified by {context}',
@@ -73,6 +158,21 @@ var messages = (0, _reactIntlNext.defineMessages)({
73
158
  defaultMessage: 'More actions',
74
159
  description: 'Allows the users to see more link actions'
75
160
  },
161
+ not_found_description: {
162
+ id: 'fabric.linking.not_found_description',
163
+ defaultMessage: "We couldn't find the link. Check the url and try editing or paste again.",
164
+ description: 'Error case for when a provided item is not found within the list of items'
165
+ },
166
+ not_found_title: {
167
+ id: 'fabric.linking.not_found_title',
168
+ defaultMessage: "Uh oh. We can't find this link!",
169
+ description: 'Error case for when a provided link is not found'
170
+ },
171
+ preview: {
172
+ id: 'fabric.linking.preview',
173
+ defaultMessage: 'Preview',
174
+ description: 'Click to view a richer view of your content, without needing to navigate to it.'
175
+ },
76
176
  priority_blocker: {
77
177
  id: 'fabric.linking.priority_blocker',
78
178
  defaultMessage: 'Blocker',
@@ -139,12 +239,32 @@ var messages = (0, _reactIntlNext.defineMessages)({
139
239
  description: 'Shown when a user has requested an access but status is pending.'
140
240
  },
141
241
  restricted_link: {
142
- id: 'fabric.linking.invalid_permissions',
242
+ id: 'fabric.linking.restricted_link',
143
243
  defaultMessage: 'Restricted link, try another account',
144
244
  description: 'Message shown when a user does not have permissions to view an item'
145
245
  },
146
246
  request_access: {
147
247
  id: 'fabric.linking.request_access',
248
+ defaultMessage: 'Request access',
249
+ description: 'Allows the user to request access to a product or service'
250
+ },
251
+ request_access_description: {
252
+ id: 'fabric.linking.request_access_description',
253
+ defaultMessage: 'Request access to {context} view this preview.',
254
+ description: 'Allows the user to request access to a product'
255
+ },
256
+ request_access_pending: {
257
+ id: 'fabric.linking.request_access_pending',
258
+ defaultMessage: 'Access pending',
259
+ description: 'Allows the user to try an action again with their current account'
260
+ },
261
+ request_access_pending_description: {
262
+ id: 'fabric.linking.request_access_pending_description',
263
+ defaultMessage: 'Your access request is pending.',
264
+ description: 'Informs the user that their request to view this content is pending'
265
+ },
266
+ request_access_to_view: {
267
+ id: 'fabric.linking.request_access_to_view',
148
268
  defaultMessage: 'Request access to {context} to view this issue',
149
269
  description: 'Allows the user to request access to a product or service'
150
270
  },
@@ -152,6 +272,51 @@ var messages = (0, _reactIntlNext.defineMessages)({
152
272
  id: 'fabric.linking.request_denied',
153
273
  defaultMessage: 'Your access request was denied',
154
274
  description: 'The user had request access but the request was denied by a product or service'
275
+ },
276
+ request_denied_description: {
277
+ id: 'fabric.linking.request_denied_description',
278
+ defaultMessage: 'Your access request was denied. Contact the site admin if you still need access.',
279
+ description: 'Informs the user that their request to view this content was denied'
280
+ },
281
+ retry: {
282
+ id: 'fabric.linking.retry',
283
+ defaultMessage: 'Retry',
284
+ description: 'Allows user to perform an action again'
285
+ },
286
+ save: {
287
+ id: 'fabric.linking.save',
288
+ defaultMessage: 'Save',
289
+ description: 'Just the "save" word'
290
+ },
291
+ try_again: {
292
+ id: 'fabric.linking.try_again',
293
+ defaultMessage: 'Try again',
294
+ description: 'Allow the user to try an action again'
295
+ },
296
+ try_another_account: {
297
+ id: 'fabric.linking.try_another_account',
298
+ defaultMessage: 'Try another account',
299
+ description: 'Allows the user to try an action again with a different account'
300
+ },
301
+ unlink_account: {
302
+ id: 'fabric.linking.unlink_account',
303
+ defaultMessage: 'Unlink Account',
304
+ description: 'Allows to remove a connected account from the user'
305
+ },
306
+ view: {
307
+ id: 'fabric.linking.view',
308
+ defaultMessage: 'View',
309
+ description: 'Go through to a piece of content to view it in its original context.'
310
+ },
311
+ viewIn: {
312
+ id: 'fabric.linking.srclink',
313
+ defaultMessage: 'View in',
314
+ description: 'We have a link in our preview modals to the original document. This text goes before the provider name'
315
+ },
316
+ viewOriginal: {
317
+ id: 'fabric.linking.srclinkunknown',
318
+ defaultMessage: 'View Original',
319
+ description: "We have a link in our preview modals to the original document. This is for when we don't know the provider name"
155
320
  }
156
321
  });
157
322
  exports.messages = messages;
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.isSpecialKey = exports.isSpecialEvent = exports.isSpecialClick = exports.isIframe = exports.isCardWithData = exports.handleOnClick = exports.getLabelForFileType = exports.getIframeSandboxAttribute = exports.getIconForFileType = void 0;
10
+ exports.isSpecialKey = exports.isSpecialEvent = exports.isSpecialClick = exports.isIntersectionObserverSupported = exports.isIframe = exports.isCardWithData = exports.handleOnClick = exports.getLabelForFileType = exports.getIframeSandboxAttribute = exports.getIconForFileType = void 0;
11
11
 
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
 
@@ -368,4 +368,10 @@ var handleOnClick = function handleOnClick(handler) {
368
368
  };
369
369
  };
370
370
 
371
- exports.handleOnClick = handleOnClick;
371
+ exports.handleOnClick = handleOnClick;
372
+
373
+ var isIntersectionObserverSupported = function isIntersectionObserverSupported() {
374
+ return typeof IntersectionObserver !== 'undefined';
375
+ };
376
+
377
+ exports.isIntersectionObserverSupported = isIntersectionObserverSupported;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "19.1.9",
3
+ "version": "19.1.12",
4
4
  "sideEffects": false
5
5
  }
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  var _reactIntlNext = require("react-intl-next");
13
13
 
14
- var _messages = require("@atlaskit/media-ui/messages");
14
+ var _messages = require("../../../messages");
15
15
 
16
16
  var AuthorizeAction = function AuthorizeAction(handler) {
17
17
  return {
@@ -18,7 +18,7 @@ var _reactIntlNext = require("react-intl-next");
18
18
 
19
19
  var _mediaCommon = require("@atlaskit/media-common");
20
20
 
21
- var _messages = require("@atlaskit/media-ui/messages");
21
+ var _messages = require("../../../messages");
22
22
 
23
23
  function downloadFunction(_x) {
24
24
  return _downloadFunction.apply(this, arguments);
@@ -13,7 +13,7 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _reactIntlNext = require("react-intl-next");
15
15
 
16
- var _messages = require("@atlaskit/media-ui/messages");
16
+ var _messages = require("../../../messages");
17
17
 
18
18
  var ForbiddenAction = function ForbiddenAction(handler) {
19
19
  var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'connect-other-account';
@@ -26,7 +26,7 @@ var _reactDom = _interopRequireDefault(require("react-dom"));
26
26
 
27
27
  var _reactIntlNext = require("react-intl-next");
28
28
 
29
- var _messages = require("@atlaskit/media-ui/messages");
29
+ var _messages = require("../../../messages");
30
30
 
31
31
  var _excluded = ["popupMountPointId", "onClose"],
32
32
  _excluded2 = ["details"];
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _reactIntlNext = require("react-intl-next");
17
17
 
18
- var _messages = require("@atlaskit/media-ui/messages");
18
+ var _messages = require("../../../messages");
19
19
 
20
20
  var RetryAction = function RetryAction(handler) {
21
21
  return {
@@ -16,7 +16,7 @@ var _react = _interopRequireDefault(require("react"));
16
16
 
17
17
  var _reactIntlNext = require("react-intl-next");
18
18
 
19
- var _messages = require("@atlaskit/media-ui/messages");
19
+ var _messages = require("../../../messages");
20
20
 
21
21
  function viewFunction(_x) {
22
22
  return _viewFunction.apply(this, arguments);
@@ -27,7 +27,7 @@ var _ActionList = require("../components/ActionList");
27
27
 
28
28
  var _Content = require("../components/Content");
29
29
 
30
- var _messages = require("@atlaskit/media-ui/messages");
30
+ var _messages = require("../../../messages");
31
31
 
32
32
  var _ContentFooter = require("../components/ContentFooter");
33
33
 
@@ -31,7 +31,7 @@ var _ActionList = require("../components/ActionList");
31
31
 
32
32
  var _Content = require("../components/Content");
33
33
 
34
- var _messages = require("@atlaskit/media-ui/messages");
34
+ var _messages = require("../../../messages");
35
35
 
36
36
  var _ContentFooter = require("../components/ContentFooter");
37
37
 
@@ -27,7 +27,7 @@ var _Byline = require("../../common/Byline");
27
27
 
28
28
  var _Content = require("../components/Content");
29
29
 
30
- var _messages = require("@atlaskit/media-ui/messages");
30
+ var _messages = require("../../../messages");
31
31
 
32
32
  var _ContentFooter = require("../components/ContentFooter");
33
33
 
@@ -23,7 +23,7 @@ var _utils = require("../../common/utils");
23
23
 
24
24
  var _reactIntlNext = require("react-intl-next");
25
25
 
26
- var _messages = require("@atlaskit/media-ui/messages");
26
+ var _messages = require("../../../messages");
27
27
 
28
28
  /** @jsx jsx */
29
29
  var blockCardResolvingViewClassName = 'block-card-resolving-view';
@@ -25,7 +25,7 @@ var _ActionList = require("../components/ActionList");
25
25
 
26
26
  var _Content = require("../components/Content");
27
27
 
28
- var _messages = require("@atlaskit/media-ui/messages");
28
+ var _messages = require("../../../messages");
29
29
 
30
30
  var _ContentHeader = require("../components/ContentHeader");
31
31
 
@@ -9,14 +9,14 @@ exports.default = LazyCardWithUrlContent;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _mediaUi = require("@atlaskit/media-ui");
13
-
14
12
  var _LazyLazilyRenderCard = require("./LazyLazilyRenderCard");
15
13
 
16
14
  var _LazyIntersectionObserverCard = require("./LazyIntersectionObserverCard");
17
15
 
16
+ var _utils = require("../../../utils");
17
+
18
18
  function LazyCardWithUrlContent(props) {
19
- if ((0, _mediaUi.isIntersectionObserverSupported)()) {
19
+ if ((0, _utils.isIntersectionObserverSupported)()) {
20
20
  return /*#__PURE__*/_react.default.createElement(_LazyIntersectionObserverCard.LazyIntersectionObserverCard, props);
21
21
  } else {
22
22
  return /*#__PURE__*/_react.default.createElement(_LazyLazilyRenderCard.LazyLazilyRenderCard, props);
@@ -7,14 +7,12 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.maxAvatarCount = exports.embedHeaderHeight = exports.className = exports.cardShadow = exports.Wrapper = exports.UsersWrapper = exports.Title = exports.Thumbnail = exports.TextWrapper = exports.ResolvedViewIconWrapper = exports.LinkWrapper = exports.Image = exports.IconWrapper = exports.Header = exports.Description = exports.ContentWrapper = exports.Content = exports.Byline = exports.AlertWrapper = exports.ActionsWrapper = void 0;
10
+ exports.maxAvatarCount = exports.embedHeaderHeight = exports.ellipsis = exports.csssize = exports.className = exports.cardShadow = exports.borderRadius = exports.Wrapper = exports.UsersWrapper = exports.Title = exports.Thumbnail = exports.TextWrapper = exports.ResolvedViewIconWrapper = exports.LinkWrapper = exports.Image = exports.IconWrapper = exports.Header = exports.Description = exports.ContentWrapper = exports.Content = exports.Byline = exports.AlertWrapper = exports.ActionsWrapper = void 0;
11
11
 
12
12
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
13
 
14
14
  var _styled = _interopRequireDefault(require("@emotion/styled"));
15
15
 
16
- var _mediaUi = require("@atlaskit/media-ui");
17
-
18
16
  var _constants = require("@atlaskit/theme/constants");
19
17
 
20
18
  var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
@@ -33,6 +31,24 @@ var className = 'media-card-frame';
33
31
  exports.className = className;
34
32
  var cardShadow = "";
35
33
  exports.cardShadow = cardShadow;
34
+ var borderRadius = "\n border-radius: ".concat((0, _constants.borderRadius)(), "px;\n");
35
+ exports.borderRadius = borderRadius;
36
+
37
+ var ellipsis = function ellipsis() {
38
+ var maxWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
39
+ var unit = typeof maxWidth === 'number' ? 'px' : '';
40
+ return "\n max-width: ".concat(maxWidth).concat(unit, ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ");
41
+ };
42
+
43
+ exports.ellipsis = ellipsis;
44
+
45
+ var csssize = function csssize() {
46
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
47
+ var unit = typeof value === 'number' ? 'px' : '';
48
+ return "\n width: ".concat(value).concat(unit, ";\n height: ").concat(value).concat(unit, ";\n ");
49
+ };
50
+
51
+ exports.csssize = csssize;
36
52
 
37
53
  function minWidth(_ref) {
38
54
  var minWidth = _ref.minWidth;
@@ -64,7 +80,7 @@ function getinteractiveStyles(_ref3) {
64
80
 
65
81
  function selected(_ref4) {
66
82
  var isSelected = _ref4.isSelected;
67
- return isSelected ? "\n ".concat(visibleStyles, "\n &::after {\n cursor: pointer;\n box-shadow: 0 0 0 3px ").concat((0, _tokens.token)('color.border.selected', colors.B100), ";\n content: '';\n outline: none;\n position: absolute;\n height: 100%;\n width: 100%;\n left: 0;\n ").concat(_mediaUi.borderRadius, "\n }\n ") : '';
83
+ return isSelected ? "\n ".concat(visibleStyles, "\n &::after {\n cursor: pointer;\n box-shadow: 0 0 0 3px ").concat((0, _tokens.token)('color.border.selected', colors.B100), ";\n content: '';\n outline: none;\n position: absolute;\n height: 100%;\n width: 100%;\n left: 0;\n ").concat(borderRadius, "\n }\n ") : '';
68
84
  }
69
85
 
70
86
  var height = function height(_ref5) {
@@ -73,7 +89,7 @@ var height = function height(_ref5) {
73
89
  };
74
90
 
75
91
  var wrapperStyles = function wrapperStyles(props) {
76
- return "\n ".concat(_mediaUi.borderRadius, "\n ").concat(minWidth(props), "\n ").concat(maxWidth(props), "\n ").concat(getinteractiveStyles(props), "\n ").concat(visible(props), "\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n font-family: ").concat((0, _constants.fontFamily)(), ";\n width: 100%;\n user-select: none;\n line-height: initial;\n transition: background 0.3s;\n position: relative;\n ").concat(height(props), ";\n ").concat(selected(props), "\n\n &:after {\n content: '';\n background: transparent;\n transition: background 0.3s, box-shadow 0.3s;\n position: absolute;\n width: calc(100% + ").concat((0, _utils.gs)(2), ");\n height: calc(100% + ").concat((0, _utils.gs)(1), ");\n left: -").concat((0, _utils.gs)(1), ";\n ").concat(_mediaUi.borderRadius, "\n }\n");
92
+ return "\n ".concat(borderRadius, "\n ").concat(minWidth(props), "\n ").concat(maxWidth(props), "\n ").concat(getinteractiveStyles(props), "\n ").concat(visible(props), "\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n font-family: ").concat((0, _constants.fontFamily)(), ";\n width: 100%;\n user-select: none;\n line-height: initial;\n transition: background 0.3s;\n position: relative;\n ").concat(height(props), ";\n ").concat(selected(props), "\n\n &:after {\n content: '';\n background: transparent;\n transition: background 0.3s, box-shadow 0.3s;\n position: absolute;\n width: calc(100% + ").concat((0, _utils.gs)(2), ");\n height: calc(100% + ").concat((0, _utils.gs)(1), ");\n left: -").concat((0, _utils.gs)(1), ";\n ").concat(borderRadius, "\n }\n");
77
93
  };
78
94
 
79
95
  var visibleStyles = "\n background-color: ".concat((0, _tokens.token)('color.background.neutral.subtle', colors.N30), ";\n\n &:after {\n background: ").concat((0, _tokens.token)('color.background.neutral', colors.N30), " !important;\n }\n .embed-header {\n opacity: 1;\n }");
@@ -101,7 +117,7 @@ var Header = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _ta
101
117
 
102
118
  exports.Header = Header;
103
119
 
104
- var IconWrapper = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n ", " margin-right: 4px;\n"])), _mediaUi.borderRadius, (0, _mediaUi.size)(16), function (_ref7) {
120
+ var IconWrapper = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n ", " margin-right: 4px;\n"])), borderRadius, csssize(16), function (_ref7) {
105
121
  var isPlaceholder = _ref7.isPlaceholder;
106
122
 
107
123
  if (isPlaceholder) {
@@ -117,18 +133,18 @@ var TextWrapper = _styled.default.div(_templateObject5 || (_templateObject5 = (0
117
133
  var isPlaceholder = _ref8.isPlaceholder;
118
134
 
119
135
  if (isPlaceholder) {
120
- return "\n ".concat(_mediaUi.borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ").concat((0, _tokens.token)('color.skeleton', colors.N30), ";\n ");
136
+ return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ").concat((0, _tokens.token)('color.skeleton', colors.N30), ";\n ");
121
137
  } else {
122
138
  return '';
123
139
  }
124
- }, (0, _tokens.token)('color.text.subtlest', colors.N300), (0, _mediaUi.ellipsis)('none'));
140
+ }, (0, _tokens.token)('color.text.subtlest', colors.N300), ellipsis('none'));
125
141
 
126
142
  exports.TextWrapper = TextWrapper;
127
143
 
128
144
  // NB: `overflow` is kept as `hidden` since
129
145
  // the internal contents of the `iframe` should
130
146
  // manage scrolling behaviour.
131
- var Content = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n top: ", ";\n overflow: hidden;\n height: calc(100% - ", ");\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", ";\n"])), _mediaUi.borderRadius, cardShadow, (0, _tokens.token)('elevation.surface', 'white'), (0, _utils.gs)(4), (0, _utils.gs)(4), function (_ref9) {
147
+ var Content = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n top: ", ";\n overflow: hidden;\n height: calc(100% - ", ");\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", ";\n"])), borderRadius, cardShadow, (0, _tokens.token)('elevation.surface', 'white'), (0, _utils.gs)(4), (0, _utils.gs)(4), function (_ref9) {
132
148
  var isInteractive = _ref9.isInteractive;
133
149
 
134
150
  if (isInteractive) {
@@ -142,8 +158,8 @@ exports.Content = Content;
142
158
 
143
159
  var Image = _styled.default.img(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n\n /* hide the alt text when the image cannot be found */\n overflow: hidden;\n"])), function (_ref10) {
144
160
  var size = _ref10.size;
145
- return (0, _mediaUi.size)(size);
146
- }, _mediaUi.borderRadius);
161
+ return csssize(size);
162
+ }, borderRadius);
147
163
 
148
164
  exports.Image = Image;
149
165
  var maxAvatarCount = 6;
@@ -157,7 +173,7 @@ var Title = _styled.default.div(_templateObject9 || (_templateObject9 = (0, _tag
157
173
 
158
174
  exports.Title = Title;
159
175
 
160
- var Byline = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 4px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n ", ";\n"])), (0, _tokens.token)('color.text.subtlest', colors.N300), 16 / 12, (0, _mediaUi.ellipsis)('100%'));
176
+ var Byline = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 4px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n ", ";\n"])), (0, _tokens.token)('color.text.subtlest', colors.N300), 16 / 12, ellipsis('100%'));
161
177
 
162
178
  exports.Byline = Byline;
163
179
 
@@ -169,7 +185,7 @@ var ResolvedViewIconWrapper = _styled.default.div(_templateObject12 || (_templat
169
185
 
170
186
  exports.ResolvedViewIconWrapper = ResolvedViewIconWrapper;
171
187
 
172
- var Thumbnail = _styled.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n float: right;\n margin: 4px 0 12px 12px;\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), _mediaUi.borderRadius, (0, _mediaUi.size)(48), (0, _tokens.token)('color.skeleton', colors.N30), function (_ref11) {
188
+ var Thumbnail = _styled.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n float: right;\n margin: 4px 0 12px 12px;\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), borderRadius, csssize(48), (0, _tokens.token)('color.skeleton', colors.N30), function (_ref11) {
173
189
  var src = _ref11.src;
174
190
  return src;
175
191
  });
@@ -23,7 +23,7 @@ var _Frame = require("../../BlockCard/components/Frame");
23
23
 
24
24
  var _reactIntlNext = require("react-intl-next");
25
25
 
26
- var _messages = require("@atlaskit/media-ui/messages");
26
+ var _messages = require("../../../messages");
27
27
 
28
28
  var _utils = require("../../common/utils");
29
29
 
@@ -17,7 +17,7 @@ var _constants = require("@atlaskit/theme/constants");
17
17
 
18
18
  var _reactIntlNext = require("react-intl-next");
19
19
 
20
- var _messages = require("@atlaskit/media-ui/messages");
20
+ var _messages = require("../../../messages");
21
21
 
22
22
  var _utils = require("../../common/utils");
23
23
 
@@ -57,10 +57,10 @@ var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
57
57
 
58
58
  switch (accessType) {
59
59
  case 'DIRECT_ACCESS':
60
- return 'click_to_join';
60
+ return 'join_to_view';
61
61
 
62
62
  case 'REQUEST_ACCESS':
63
- return 'request_access';
63
+ return 'request_access_to_view';
64
64
 
65
65
  case 'PENDING_REQUEST_EXISTS':
66
66
  return 'pending_request';
@@ -37,7 +37,7 @@ var _IconAndTitleLayout = require("../IconAndTitleLayout");
37
37
 
38
38
  var _Icon = require("../Icon");
39
39
 
40
- var _messages = require("@atlaskit/media-ui/messages");
40
+ var _messages = require("../../../messages");
41
41
 
42
42
  var _reactIntlNext = require("react-intl-next");
43
43
 
@@ -39,7 +39,7 @@ var _IconAndTitleLayout = require("../IconAndTitleLayout");
39
39
 
40
40
  var _Icon = require("../Icon");
41
41
 
42
- var _messages = require("@atlaskit/media-ui/messages");
42
+ var _messages = require("../../../messages");
43
43
 
44
44
  var _reactIntlNext = require("react-intl-next");
45
45
 
@@ -33,7 +33,7 @@ var _react = _interopRequireDefault(require("react"));
33
33
 
34
34
  var _reactIntlNext = require("react-intl-next");
35
35
 
36
- var _messages = require("@atlaskit/media-ui/messages");
36
+ var _messages = require("../../../messages");
37
37
 
38
38
  var _Frame = require("../Frame");
39
39
 
@@ -33,7 +33,7 @@ var _MetadataList = require("./MetadataList");
33
33
 
34
34
  var _Byline = require("./Byline");
35
35
 
36
- var _messages = require("@atlaskit/media-ui/messages");
36
+ var _messages = require("../../messages");
37
37
 
38
38
  /** @jsx jsx */
39
39
  var Header = function Header(_ref) {
@@ -1,4 +1,4 @@
1
- import { messages } from '@atlaskit/media-ui/messages';
1
+ import { messages } from '../../../messages';
2
2
  import { ForbiddenAction } from '../../../view/BlockCard/actions/ForbiddenAction';
3
3
  export const extractRequestAccessContext = ({
4
4
  jsonLd,