@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.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/extractors/common/context/extractAccessContext.js +1 -1
- package/dist/cjs/i18n/cs.js +127 -5
- package/dist/cjs/i18n/da.js +126 -5
- package/dist/cjs/i18n/de.js +127 -5
- package/dist/cjs/i18n/en.js +127 -5
- package/dist/cjs/i18n/en_GB.js +127 -5
- package/dist/cjs/i18n/en_ZZ.js +127 -5
- package/dist/cjs/i18n/es.js +127 -5
- package/dist/cjs/i18n/et.js +87 -1
- package/dist/cjs/i18n/fi.js +127 -5
- package/dist/cjs/i18n/fr.js +127 -5
- package/dist/cjs/i18n/hu.js +127 -5
- package/dist/cjs/i18n/index.js +239 -0
- package/dist/cjs/i18n/is.js +77 -0
- package/dist/cjs/i18n/it.js +127 -5
- package/dist/cjs/i18n/ja.js +127 -5
- package/dist/cjs/i18n/ko.js +127 -5
- package/dist/cjs/i18n/languages.js +33 -0
- package/dist/cjs/i18n/nb.js +127 -5
- package/dist/cjs/i18n/nl.js +127 -5
- package/dist/cjs/i18n/pl.js +127 -5
- package/dist/cjs/i18n/pt_BR.js +127 -5
- package/dist/cjs/i18n/pt_PT.js +87 -1
- package/dist/cjs/i18n/ro.js +77 -0
- package/dist/cjs/i18n/ru.js +127 -5
- package/dist/cjs/i18n/sk.js +87 -1
- package/dist/cjs/i18n/sv.js +127 -5
- package/dist/cjs/i18n/th.js +127 -5
- package/dist/cjs/i18n/tr.js +127 -5
- package/dist/cjs/i18n/uk.js +127 -5
- package/dist/cjs/i18n/vi.js +127 -5
- package/dist/cjs/i18n/zh.js +127 -5
- package/dist/cjs/i18n/zh_TW.js +127 -5
- package/dist/cjs/messages.js +167 -2
- package/dist/cjs/utils/index.js +8 -2
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/actions/AuthorizeAction.js +1 -1
- package/dist/cjs/view/BlockCard/actions/DownloadAction.js +1 -1
- package/dist/cjs/view/BlockCard/actions/ForbiddenAction.js +1 -1
- package/dist/cjs/view/BlockCard/actions/PreviewAction.js +1 -1
- package/dist/cjs/view/BlockCard/actions/RetryAction.js +1 -1
- package/dist/cjs/view/BlockCard/actions/ViewAction.js +1 -1
- package/dist/cjs/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +1 -1
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/cjs/view/CardWithUrl/component-lazy/index.js +3 -3
- package/dist/cjs/view/EmbedCard/components/styled.js +29 -13
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/cjs/view/FlexibleCard/utils.js +2 -2
- package/dist/cjs/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/cjs/view/common/ModalHeader.js +1 -1
- package/dist/es2019/extractors/common/context/extractAccessContext.js +1 -1
- package/dist/es2019/i18n/cs.js +127 -5
- package/dist/es2019/i18n/da.js +126 -5
- package/dist/es2019/i18n/de.js +127 -5
- package/dist/es2019/i18n/en.js +127 -5
- package/dist/es2019/i18n/en_GB.js +127 -5
- package/dist/es2019/i18n/en_ZZ.js +127 -5
- package/dist/es2019/i18n/es.js +127 -5
- package/dist/es2019/i18n/et.js +87 -1
- package/dist/es2019/i18n/fi.js +127 -5
- package/dist/es2019/i18n/fr.js +127 -5
- package/dist/es2019/i18n/hu.js +127 -5
- package/dist/es2019/i18n/index.js +35 -0
- package/dist/es2019/i18n/is.js +70 -0
- package/dist/es2019/i18n/it.js +127 -5
- package/dist/es2019/i18n/ja.js +127 -5
- package/dist/es2019/i18n/ko.js +127 -5
- package/dist/es2019/i18n/languages.js +26 -0
- package/dist/es2019/i18n/nb.js +127 -5
- package/dist/es2019/i18n/nl.js +127 -5
- package/dist/es2019/i18n/pl.js +127 -5
- package/dist/es2019/i18n/pt_BR.js +127 -5
- package/dist/es2019/i18n/pt_PT.js +87 -1
- package/dist/es2019/i18n/ro.js +70 -0
- package/dist/es2019/i18n/ru.js +127 -5
- package/dist/es2019/i18n/sk.js +87 -1
- package/dist/es2019/i18n/sv.js +127 -5
- package/dist/es2019/i18n/th.js +127 -5
- package/dist/es2019/i18n/tr.js +127 -5
- package/dist/es2019/i18n/uk.js +127 -5
- package/dist/es2019/i18n/vi.js +127 -5
- package/dist/es2019/i18n/zh.js +127 -5
- package/dist/es2019/i18n/zh_TW.js +127 -5
- package/dist/es2019/messages.js +167 -2
- package/dist/es2019/utils/index.js +2 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/actions/AuthorizeAction.js +1 -1
- package/dist/es2019/view/BlockCard/actions/DownloadAction.js +1 -1
- package/dist/es2019/view/BlockCard/actions/ForbiddenAction.js +1 -1
- package/dist/es2019/view/BlockCard/actions/PreviewAction.js +1 -1
- package/dist/es2019/view/BlockCard/actions/RetryAction.js +1 -1
- package/dist/es2019/view/BlockCard/actions/ViewAction.js +1 -1
- package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -1
- package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/index.js +1 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +22 -4
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/es2019/view/FlexibleCard/utils.js +2 -2
- package/dist/es2019/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/es2019/view/common/ModalHeader.js +1 -1
- package/dist/esm/extractors/common/context/extractAccessContext.js +1 -1
- package/dist/esm/i18n/cs.js +127 -5
- package/dist/esm/i18n/da.js +126 -5
- package/dist/esm/i18n/de.js +127 -5
- package/dist/esm/i18n/en.js +127 -5
- package/dist/esm/i18n/en_GB.js +127 -5
- package/dist/esm/i18n/en_ZZ.js +127 -5
- package/dist/esm/i18n/es.js +127 -5
- package/dist/esm/i18n/et.js +87 -1
- package/dist/esm/i18n/fi.js +127 -5
- package/dist/esm/i18n/fr.js +127 -5
- package/dist/esm/i18n/hu.js +127 -5
- package/dist/esm/i18n/index.js +35 -0
- package/dist/esm/i18n/is.js +70 -0
- package/dist/esm/i18n/it.js +127 -5
- package/dist/esm/i18n/ja.js +127 -5
- package/dist/esm/i18n/ko.js +127 -5
- package/dist/esm/i18n/languages.js +26 -0
- package/dist/esm/i18n/nb.js +127 -5
- package/dist/esm/i18n/nl.js +127 -5
- package/dist/esm/i18n/pl.js +127 -5
- package/dist/esm/i18n/pt_BR.js +127 -5
- package/dist/esm/i18n/pt_PT.js +87 -1
- package/dist/esm/i18n/ro.js +70 -0
- package/dist/esm/i18n/ru.js +127 -5
- package/dist/esm/i18n/sk.js +87 -1
- package/dist/esm/i18n/sv.js +127 -5
- package/dist/esm/i18n/th.js +127 -5
- package/dist/esm/i18n/tr.js +127 -5
- package/dist/esm/i18n/uk.js +127 -5
- package/dist/esm/i18n/vi.js +127 -5
- package/dist/esm/i18n/zh.js +127 -5
- package/dist/esm/i18n/zh_TW.js +127 -5
- package/dist/esm/messages.js +167 -2
- package/dist/esm/state/actions/index.js +1 -1
- package/dist/esm/state/hooks/usePrefetch.js +1 -1
- package/dist/esm/utils/index.js +3 -0
- package/dist/esm/utils/mocks.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/actions/AuthorizeAction.js +1 -1
- package/dist/esm/view/BlockCard/actions/DownloadAction.js +2 -2
- package/dist/esm/view/BlockCard/actions/ForbiddenAction.js +1 -1
- package/dist/esm/view/BlockCard/actions/PreviewAction.js +2 -2
- package/dist/esm/view/BlockCard/actions/RetryAction.js +2 -2
- package/dist/esm/view/BlockCard/actions/ViewAction.js +2 -2
- package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -1
- package/dist/esm/view/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/esm/view/CardWithUrl/component-lazy/index.js +1 -1
- package/dist/esm/view/EmbedCard/components/styled.js +14 -4
- package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/esm/view/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/esm/view/FlexibleCard/utils.js +2 -2
- package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/esm/view/common/ModalHeader.js +1 -1
- package/dist/types/i18n/cs.d.ts +126 -4
- package/dist/types/i18n/da.d.ts +125 -4
- package/dist/types/i18n/de.d.ts +126 -4
- package/dist/types/i18n/en.d.ts +126 -4
- package/dist/types/i18n/en_GB.d.ts +126 -4
- package/dist/types/i18n/en_ZZ.d.ts +126 -4
- package/dist/types/i18n/es.d.ts +126 -4
- package/dist/types/i18n/et.d.ts +87 -1
- package/dist/types/i18n/fi.d.ts +126 -4
- package/dist/types/i18n/fr.d.ts +126 -4
- package/dist/types/i18n/hu.d.ts +126 -4
- package/dist/types/i18n/index.d.ts +35 -0
- package/dist/types/i18n/is.d.ts +70 -0
- package/dist/types/i18n/it.d.ts +126 -4
- package/dist/types/i18n/ja.d.ts +126 -4
- package/dist/types/i18n/ko.d.ts +126 -4
- package/dist/types/i18n/languages.d.ts +27 -0
- package/dist/types/i18n/nb.d.ts +126 -4
- package/dist/types/i18n/nl.d.ts +126 -4
- package/dist/types/i18n/pl.d.ts +126 -4
- package/dist/types/i18n/pt_BR.d.ts +126 -4
- package/dist/types/i18n/pt_PT.d.ts +87 -1
- package/dist/types/i18n/ro.d.ts +70 -0
- package/dist/types/i18n/ru.d.ts +126 -4
- package/dist/types/i18n/sk.d.ts +87 -1
- package/dist/types/i18n/sv.d.ts +126 -4
- package/dist/types/i18n/th.d.ts +126 -4
- package/dist/types/i18n/tr.d.ts +126 -4
- package/dist/types/i18n/uk.d.ts +126 -4
- package/dist/types/i18n/vi.d.ts +126 -4
- package/dist/types/i18n/zh.d.ts +126 -4
- package/dist/types/i18n/zh_TW.d.ts +126 -4
- package/dist/types/messages.d.ts +2 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/view/EmbedCard/components/styled.d.ts +3 -0
- package/dist/types/view/EmbedCard/types.d.ts +1 -1
- package/dist/types/view/EmbedCard/views/UnresolvedView.d.ts +1 -1
- package/dist/types/view/__mocks__/intersection-observer.mock.d.ts +12 -0
- package/dist/types/view/types.d.ts +1 -1
- package/package.json +8 -9
package/dist/es2019/messages.js
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl-next';
|
|
2
2
|
export const messages = defineMessages({
|
|
3
|
+
actions: {
|
|
4
|
+
id: 'fabric.linking.actions',
|
|
5
|
+
defaultMessage: 'Actions',
|
|
6
|
+
description: ''
|
|
7
|
+
},
|
|
8
|
+
add_account: {
|
|
9
|
+
id: 'fabric.linking.add_account',
|
|
10
|
+
defaultMessage: 'Add account',
|
|
11
|
+
description: 'Allows to add a new account'
|
|
12
|
+
},
|
|
13
|
+
cancel: {
|
|
14
|
+
id: 'fabric.linking.cancel',
|
|
15
|
+
defaultMessage: 'Cancel',
|
|
16
|
+
description: 'cancel'
|
|
17
|
+
},
|
|
3
18
|
cannot_connect: {
|
|
4
19
|
id: 'fabric.linking.cannot_connect',
|
|
5
20
|
defaultMessage: "Can't connect, try again",
|
|
@@ -12,14 +27,54 @@ export const messages = defineMessages({
|
|
|
12
27
|
},
|
|
13
28
|
click_to_join: {
|
|
14
29
|
id: 'fabric.linking.click_to_join',
|
|
15
|
-
defaultMessage: 'Join {context}
|
|
30
|
+
defaultMessage: 'Join {context}',
|
|
16
31
|
description: 'Allows the user join the product or service immediately'
|
|
17
32
|
},
|
|
33
|
+
click_to_join_description: {
|
|
34
|
+
id: 'fabric.linking.click_to_join_description',
|
|
35
|
+
defaultMessage: "You've been approved, so you can join {context} right away.",
|
|
36
|
+
description: 'Informs the user that they have access to this product, and can sign up or join right away.'
|
|
37
|
+
},
|
|
38
|
+
close: {
|
|
39
|
+
id: 'fabric.linking.close',
|
|
40
|
+
defaultMessage: 'Close',
|
|
41
|
+
description: ''
|
|
42
|
+
},
|
|
43
|
+
connect_to: {
|
|
44
|
+
id: 'fabric.linking.connect_to',
|
|
45
|
+
defaultMessage: 'Connect to {name}',
|
|
46
|
+
description: 'Allows the user to connect with different types of external services'
|
|
47
|
+
},
|
|
48
|
+
connect_account_description: {
|
|
49
|
+
id: 'fabric.linking.connect_account_description',
|
|
50
|
+
defaultMessage: "We'll open a new page to help you connect your {name} account",
|
|
51
|
+
description: 'Explains what will happen when the users connects to a new account'
|
|
52
|
+
},
|
|
18
53
|
connect_link_account: {
|
|
19
54
|
id: 'fabric.linking.connect_link_account',
|
|
20
55
|
defaultMessage: 'Connect to preview',
|
|
21
56
|
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link.'
|
|
22
57
|
},
|
|
58
|
+
connect_link_account_card: {
|
|
59
|
+
id: 'fabric.linking.connect_link_account_card_view',
|
|
60
|
+
defaultMessage: 'Connect',
|
|
61
|
+
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.'
|
|
62
|
+
},
|
|
63
|
+
connect_link_account_card_name: {
|
|
64
|
+
id: 'fabric.linking.connect_link_account_card_view_name',
|
|
65
|
+
defaultMessage: 'Connect your {context} account',
|
|
66
|
+
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.'
|
|
67
|
+
},
|
|
68
|
+
connect_link_account_card_description: {
|
|
69
|
+
id: 'fabric.linking.connect_link_account_card_view_description',
|
|
70
|
+
defaultMessage: 'To show a preview of this link, connect your {context} account.',
|
|
71
|
+
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.'
|
|
72
|
+
},
|
|
73
|
+
could_not_load_link: {
|
|
74
|
+
id: 'fabric.linking.couldnt_load_link',
|
|
75
|
+
defaultMessage: "We couldn't load this link for an unknown reason.",
|
|
76
|
+
description: 'Error case for card view - link could not be loaded.'
|
|
77
|
+
},
|
|
23
78
|
created_by: {
|
|
24
79
|
id: 'fabric.linking.created_by',
|
|
25
80
|
defaultMessage: 'Created by {context}',
|
|
@@ -40,11 +95,41 @@ export const messages = defineMessages({
|
|
|
40
95
|
defaultMessage: 'Delete',
|
|
41
96
|
description: 'Allow a user to delete a link'
|
|
42
97
|
},
|
|
98
|
+
download: {
|
|
99
|
+
id: 'fabric.linking.download',
|
|
100
|
+
defaultMessage: 'Download',
|
|
101
|
+
description: ''
|
|
102
|
+
},
|
|
43
103
|
edit: {
|
|
44
104
|
id: 'fabric.linking.edit',
|
|
45
105
|
defaultMessage: 'Edit',
|
|
46
106
|
description: 'Allow a user to edit a link'
|
|
47
107
|
},
|
|
108
|
+
forbidden_description: {
|
|
109
|
+
id: 'fabric.linking.forbidden_description',
|
|
110
|
+
defaultMessage: 'You don’t have access to this preview. Contact the site admin if you need access.',
|
|
111
|
+
description: 'Informs the user that they cannot view this content.'
|
|
112
|
+
},
|
|
113
|
+
invalid_permissions: {
|
|
114
|
+
id: 'fabric.linking.invalid_permissions',
|
|
115
|
+
defaultMessage: 'Restricted link',
|
|
116
|
+
description: 'Message shown when a user does not have permissions to view an item'
|
|
117
|
+
},
|
|
118
|
+
invalid_permissions_description: {
|
|
119
|
+
id: 'fabric.linking.invalid_permissions_description',
|
|
120
|
+
defaultMessage: "You'll need to request access or try a different account to view this preview.",
|
|
121
|
+
description: 'Message shown when a user does not have permissions to view an item. Displayed as description.'
|
|
122
|
+
},
|
|
123
|
+
join_to_view: {
|
|
124
|
+
id: 'fabric.linking.join_to_view',
|
|
125
|
+
defaultMessage: 'Join {context} to view this issue',
|
|
126
|
+
description: 'Allows the user join the product or service immediately'
|
|
127
|
+
},
|
|
128
|
+
loading: {
|
|
129
|
+
id: 'fabric.linking.loading',
|
|
130
|
+
defaultMessage: 'Loading...',
|
|
131
|
+
description: 'Indicates an element on a page is loading.'
|
|
132
|
+
},
|
|
48
133
|
modified_by: {
|
|
49
134
|
id: 'fabric.linking.updated_by',
|
|
50
135
|
defaultMessage: 'Modified by {context}',
|
|
@@ -65,6 +150,21 @@ export const messages = defineMessages({
|
|
|
65
150
|
defaultMessage: 'More actions',
|
|
66
151
|
description: 'Allows the users to see more link actions'
|
|
67
152
|
},
|
|
153
|
+
not_found_description: {
|
|
154
|
+
id: 'fabric.linking.not_found_description',
|
|
155
|
+
defaultMessage: "We couldn't find the link. Check the url and try editing or paste again.",
|
|
156
|
+
description: 'Error case for when a provided item is not found within the list of items'
|
|
157
|
+
},
|
|
158
|
+
not_found_title: {
|
|
159
|
+
id: 'fabric.linking.not_found_title',
|
|
160
|
+
defaultMessage: "Uh oh. We can't find this link!",
|
|
161
|
+
description: 'Error case for when a provided link is not found'
|
|
162
|
+
},
|
|
163
|
+
preview: {
|
|
164
|
+
id: 'fabric.linking.preview',
|
|
165
|
+
defaultMessage: 'Preview',
|
|
166
|
+
description: 'Click to view a richer view of your content, without needing to navigate to it.'
|
|
167
|
+
},
|
|
68
168
|
priority_blocker: {
|
|
69
169
|
id: 'fabric.linking.priority_blocker',
|
|
70
170
|
defaultMessage: 'Blocker',
|
|
@@ -131,12 +231,32 @@ export const messages = defineMessages({
|
|
|
131
231
|
description: 'Shown when a user has requested an access but status is pending.'
|
|
132
232
|
},
|
|
133
233
|
restricted_link: {
|
|
134
|
-
id: 'fabric.linking.
|
|
234
|
+
id: 'fabric.linking.restricted_link',
|
|
135
235
|
defaultMessage: 'Restricted link, try another account',
|
|
136
236
|
description: 'Message shown when a user does not have permissions to view an item'
|
|
137
237
|
},
|
|
138
238
|
request_access: {
|
|
139
239
|
id: 'fabric.linking.request_access',
|
|
240
|
+
defaultMessage: 'Request access',
|
|
241
|
+
description: 'Allows the user to request access to a product or service'
|
|
242
|
+
},
|
|
243
|
+
request_access_description: {
|
|
244
|
+
id: 'fabric.linking.request_access_description',
|
|
245
|
+
defaultMessage: 'Request access to {context} view this preview.',
|
|
246
|
+
description: 'Allows the user to request access to a product'
|
|
247
|
+
},
|
|
248
|
+
request_access_pending: {
|
|
249
|
+
id: 'fabric.linking.request_access_pending',
|
|
250
|
+
defaultMessage: 'Access pending',
|
|
251
|
+
description: 'Allows the user to try an action again with their current account'
|
|
252
|
+
},
|
|
253
|
+
request_access_pending_description: {
|
|
254
|
+
id: 'fabric.linking.request_access_pending_description',
|
|
255
|
+
defaultMessage: 'Your access request is pending.',
|
|
256
|
+
description: 'Informs the user that their request to view this content is pending'
|
|
257
|
+
},
|
|
258
|
+
request_access_to_view: {
|
|
259
|
+
id: 'fabric.linking.request_access_to_view',
|
|
140
260
|
defaultMessage: 'Request access to {context} to view this issue',
|
|
141
261
|
description: 'Allows the user to request access to a product or service'
|
|
142
262
|
},
|
|
@@ -144,5 +264,50 @@ export const messages = defineMessages({
|
|
|
144
264
|
id: 'fabric.linking.request_denied',
|
|
145
265
|
defaultMessage: 'Your access request was denied',
|
|
146
266
|
description: 'The user had request access but the request was denied by a product or service'
|
|
267
|
+
},
|
|
268
|
+
request_denied_description: {
|
|
269
|
+
id: 'fabric.linking.request_denied_description',
|
|
270
|
+
defaultMessage: 'Your access request was denied. Contact the site admin if you still need access.',
|
|
271
|
+
description: 'Informs the user that their request to view this content was denied'
|
|
272
|
+
},
|
|
273
|
+
retry: {
|
|
274
|
+
id: 'fabric.linking.retry',
|
|
275
|
+
defaultMessage: 'Retry',
|
|
276
|
+
description: 'Allows user to perform an action again'
|
|
277
|
+
},
|
|
278
|
+
save: {
|
|
279
|
+
id: 'fabric.linking.save',
|
|
280
|
+
defaultMessage: 'Save',
|
|
281
|
+
description: 'Just the "save" word'
|
|
282
|
+
},
|
|
283
|
+
try_again: {
|
|
284
|
+
id: 'fabric.linking.try_again',
|
|
285
|
+
defaultMessage: 'Try again',
|
|
286
|
+
description: 'Allow the user to try an action again'
|
|
287
|
+
},
|
|
288
|
+
try_another_account: {
|
|
289
|
+
id: 'fabric.linking.try_another_account',
|
|
290
|
+
defaultMessage: 'Try another account',
|
|
291
|
+
description: 'Allows the user to try an action again with a different account'
|
|
292
|
+
},
|
|
293
|
+
unlink_account: {
|
|
294
|
+
id: 'fabric.linking.unlink_account',
|
|
295
|
+
defaultMessage: 'Unlink Account',
|
|
296
|
+
description: 'Allows to remove a connected account from the user'
|
|
297
|
+
},
|
|
298
|
+
view: {
|
|
299
|
+
id: 'fabric.linking.view',
|
|
300
|
+
defaultMessage: 'View',
|
|
301
|
+
description: 'Go through to a piece of content to view it in its original context.'
|
|
302
|
+
},
|
|
303
|
+
viewIn: {
|
|
304
|
+
id: 'fabric.linking.srclink',
|
|
305
|
+
defaultMessage: 'View in',
|
|
306
|
+
description: 'We have a link in our preview modals to the original document. This text goes before the provider name'
|
|
307
|
+
},
|
|
308
|
+
viewOriginal: {
|
|
309
|
+
id: 'fabric.linking.srclinkunknown',
|
|
310
|
+
defaultMessage: 'View Original',
|
|
311
|
+
description: "We have a link in our preview modals to the original document. This is for when we don't know the provider name"
|
|
147
312
|
}
|
|
148
313
|
});
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
3
|
-
import { messages } from '
|
|
3
|
+
import { messages } from '../../../messages';
|
|
4
4
|
export const AuthorizeAction = handler => ({
|
|
5
5
|
id: 'connect-account',
|
|
6
6
|
text: /*#__PURE__*/React.createElement(FormattedMessage, messages.connect_link_account_card),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
3
3
|
import { downloadUrl } from '@atlaskit/media-common';
|
|
4
|
-
import { messages } from '
|
|
4
|
+
import { messages } from '../../../messages';
|
|
5
5
|
export async function downloadFunction({
|
|
6
6
|
url
|
|
7
7
|
}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import { messages } from '
|
|
4
|
+
import { messages } from '../../../messages';
|
|
5
5
|
export const ForbiddenAction = (handler, id = 'connect-other-account', message = messages.try_another_account, context = '') => ({
|
|
6
6
|
id,
|
|
7
7
|
text: /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, message, {
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import { IntlProvider, FormattedMessage } from 'react-intl-next';
|
|
5
|
-
import { messages } from '
|
|
5
|
+
import { messages } from '../../../messages';
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Explanatory note:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
3
|
-
import { messages } from '
|
|
3
|
+
import { messages } from '../../../messages';
|
|
4
4
|
export const RetryAction = handler => ({
|
|
5
5
|
id: 'try-again',
|
|
6
6
|
promise: async () => handler(),
|
|
@@ -8,7 +8,7 @@ import { Frame } from '../components/Frame';
|
|
|
8
8
|
import { Byline } from '../../common/Byline';
|
|
9
9
|
import { ActionList } from '../components/ActionList';
|
|
10
10
|
import { Content } from '../components/Content';
|
|
11
|
-
import { messages } from '
|
|
11
|
+
import { messages } from '../../../messages';
|
|
12
12
|
import { ContentFooter } from '../components/ContentFooter';
|
|
13
13
|
import { ContentHeader } from '../components/ContentHeader';
|
|
14
14
|
import { handleClickCommon } from '../utils/handlers';
|
|
@@ -11,7 +11,7 @@ import { Provider } from '../components/Provider';
|
|
|
11
11
|
import { Byline } from '../../common/Byline';
|
|
12
12
|
import { ActionList } from '../components/ActionList';
|
|
13
13
|
import { Content } from '../components/Content';
|
|
14
|
-
import { messages } from '
|
|
14
|
+
import { messages } from '../../../messages';
|
|
15
15
|
import { ContentFooter } from '../components/ContentFooter';
|
|
16
16
|
import { ContentHeader } from '../components/ContentHeader';
|
|
17
17
|
import { handleClickCommon } from '../utils/handlers';
|
|
@@ -8,7 +8,7 @@ import { Frame } from '../components/Frame';
|
|
|
8
8
|
import { Provider } from '../components/Provider';
|
|
9
9
|
import { Byline } from '../../common/Byline';
|
|
10
10
|
import { Content } from '../components/Content';
|
|
11
|
-
import { messages } from '
|
|
11
|
+
import { messages } from '../../../messages';
|
|
12
12
|
import { ContentFooter } from '../components/ContentFooter';
|
|
13
13
|
import { ContentHeader } from '../components/ContentHeader';
|
|
14
14
|
import { Link } from '../components/Link';
|
|
@@ -7,7 +7,7 @@ import { token } from '@atlaskit/tokens';
|
|
|
7
7
|
import { Frame } from '../components/Frame';
|
|
8
8
|
import { gs } from '../../common/utils';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
-
import { messages } from '
|
|
10
|
+
import { messages } from '../../../messages';
|
|
11
11
|
export const blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
12
12
|
export const ResolvingView = ({
|
|
13
13
|
isSelected = false,
|
|
@@ -8,7 +8,7 @@ import { Provider } from '../components/Provider';
|
|
|
8
8
|
import { Byline } from '../../common/Byline';
|
|
9
9
|
import { ActionList } from '../components/ActionList';
|
|
10
10
|
import { Content } from '../components/Content';
|
|
11
|
-
import { messages } from '
|
|
11
|
+
import { messages } from '../../../messages';
|
|
12
12
|
import { ContentHeader } from '../components/ContentHeader';
|
|
13
13
|
import { ContentFooter } from '../components/ContentFooter';
|
|
14
14
|
import { handleClickCommon } from '../utils/handlers';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { isIntersectionObserverSupported } from '@atlaskit/media-ui';
|
|
3
2
|
import { LazyLazilyRenderCard } from './LazyLazilyRenderCard';
|
|
4
3
|
import { LazyIntersectionObserverCard } from './LazyIntersectionObserverCard';
|
|
4
|
+
import { isIntersectionObserverSupported } from '../../../utils';
|
|
5
5
|
export default function LazyCardWithUrlContent(props) {
|
|
6
6
|
if (isIntersectionObserverSupported()) {
|
|
7
7
|
return /*#__PURE__*/React.createElement(LazyIntersectionObserverCard, props);
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
import {
|
|
3
|
-
import { fontFamily } from '@atlaskit/theme/constants';
|
|
2
|
+
import { borderRadius as akBorderRadius, fontFamily } from '@atlaskit/theme/constants';
|
|
4
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
4
|
import { token } from '@atlaskit/tokens';
|
|
6
5
|
import { gs as gridSize } from '../../common/utils';
|
|
7
6
|
export const className = 'media-card-frame';
|
|
8
7
|
export const cardShadow = ``;
|
|
8
|
+
export const borderRadius = `
|
|
9
|
+
border-radius: ${akBorderRadius()}px;
|
|
10
|
+
`;
|
|
11
|
+
export const ellipsis = (maxWidth = '100%') => {
|
|
12
|
+
const unit = typeof maxWidth === 'number' ? 'px' : '';
|
|
13
|
+
return `
|
|
14
|
+
max-width: ${maxWidth}${unit};
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
export const csssize = (value = '100%') => {
|
|
21
|
+
const unit = typeof value === 'number' ? 'px' : '';
|
|
22
|
+
return `
|
|
23
|
+
width: ${value}${unit};
|
|
24
|
+
height: ${value}${unit};
|
|
25
|
+
`;
|
|
26
|
+
};
|
|
9
27
|
|
|
10
28
|
function minWidth({
|
|
11
29
|
minWidth
|
|
@@ -135,7 +153,7 @@ export const Header = styled.div`
|
|
|
135
153
|
`;
|
|
136
154
|
export const IconWrapper = styled.div`
|
|
137
155
|
${borderRadius}
|
|
138
|
-
${
|
|
156
|
+
${csssize(16)}
|
|
139
157
|
${({
|
|
140
158
|
isPlaceholder
|
|
141
159
|
}) => {
|
|
@@ -253,7 +271,7 @@ export const ResolvedViewIconWrapper = styled.div`
|
|
|
253
271
|
`;
|
|
254
272
|
export const Thumbnail = styled.div`
|
|
255
273
|
${borderRadius}
|
|
256
|
-
${
|
|
274
|
+
${csssize(48)}
|
|
257
275
|
float: right;
|
|
258
276
|
margin: 4px 0 12px 12px;
|
|
259
277
|
background-color: ${token('color.skeleton', colors.N30)};
|
|
@@ -7,7 +7,7 @@ import { R300 } from '@atlaskit/theme/colors';
|
|
|
7
7
|
import { token } from '@atlaskit/tokens';
|
|
8
8
|
import { Frame } from '../../BlockCard/components/Frame';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
-
import { messages } from '
|
|
10
|
+
import { messages } from '../../../messages';
|
|
11
11
|
import { gs } from '../../common/utils';
|
|
12
12
|
export const EmbedCardErroredView = ({
|
|
13
13
|
onRetry,
|
|
@@ -5,7 +5,7 @@ import { jsx } from '@emotion/core';
|
|
|
5
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
6
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
|
-
import { messages } from '
|
|
8
|
+
import { messages } from '../../../messages';
|
|
9
9
|
import { gs as gridSize } from '../../common/utils';
|
|
10
10
|
export const EmbedCardUnresolvedView = ({
|
|
11
11
|
image,
|
|
@@ -39,10 +39,10 @@ const getForbiddenMessageKey = meta => {
|
|
|
39
39
|
|
|
40
40
|
switch (accessType) {
|
|
41
41
|
case 'DIRECT_ACCESS':
|
|
42
|
-
return '
|
|
42
|
+
return 'join_to_view';
|
|
43
43
|
|
|
44
44
|
case 'REQUEST_ACCESS':
|
|
45
|
-
return '
|
|
45
|
+
return 'request_access_to_view';
|
|
46
46
|
|
|
47
47
|
case 'PENDING_REQUEST_EXISTS':
|
|
48
48
|
return 'pending_request';
|
|
@@ -7,7 +7,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
7
7
|
import { Frame } from '../Frame';
|
|
8
8
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
9
9
|
import { AKIconWrapper } from '../Icon';
|
|
10
|
-
import { messages } from '
|
|
10
|
+
import { messages } from '../../../messages';
|
|
11
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
12
|
import { LinkAppearance, IconStyledButton, LowercaseAppearance, NoLinkAppearance } from '../styled';
|
|
13
13
|
export class InlineCardErroredView extends React.Component {
|
|
@@ -8,7 +8,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
8
8
|
import { Frame } from '../Frame';
|
|
9
9
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
10
10
|
import { AKIconWrapper } from '../Icon';
|
|
11
|
-
import { messages } from '
|
|
11
|
+
import { messages } from '../../../messages';
|
|
12
12
|
import { FormattedMessage } from 'react-intl-next';
|
|
13
13
|
import { IconStyledButton, LowercaseAppearance, LinkAppearance } from '../styled';
|
|
14
14
|
const FallbackForbiddenIcon = /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
@@ -5,7 +5,7 @@ import { N500, R400 } from '@atlaskit/theme/colors';
|
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
|
-
import { messages } from '
|
|
8
|
+
import { messages } from '../../../messages';
|
|
9
9
|
import { Frame } from '../Frame';
|
|
10
10
|
import { AKIconWrapper } from '../Icon';
|
|
11
11
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
@@ -12,7 +12,7 @@ import { gs } from './utils';
|
|
|
12
12
|
import { Icon } from './Icon';
|
|
13
13
|
import { MetadataList } from './MetadataList';
|
|
14
14
|
import { Byline } from './Byline';
|
|
15
|
-
import { messages } from '
|
|
15
|
+
import { messages } from '../../messages';
|
|
16
16
|
export const Header = ({
|
|
17
17
|
title,
|
|
18
18
|
label,
|
|
@@ -4,7 +4,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import { messages } from '
|
|
7
|
+
import { messages } from '../../../messages';
|
|
8
8
|
import { ForbiddenAction } from '../../../view/BlockCard/actions/ForbiddenAction';
|
|
9
9
|
export var extractRequestAccessContext = function extractRequestAccessContext(_ref) {
|
|
10
10
|
var _jsonLd$requestAccess;
|