@atlaskit/share 4.18.2 → 4.18.3
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 +6 -0
- package/dist/cjs/components/IntegrationButton.js +2 -2
- package/dist/cjs/components/IntegrationForm.js +1 -1
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/cjs/i18n/cs.js +2 -0
- package/dist/cjs/i18n/da.js +2 -0
- package/dist/cjs/i18n/de.js +2 -0
- package/dist/cjs/i18n/en.js +2 -0
- package/dist/cjs/i18n/en_GB.js +2 -0
- package/dist/cjs/i18n/en_ZZ.js +2 -0
- package/dist/cjs/i18n/es.js +2 -0
- package/dist/cjs/i18n/fi.js +2 -0
- package/dist/cjs/i18n/fr.js +2 -0
- package/dist/cjs/i18n/hu.js +2 -0
- package/dist/cjs/i18n/it.js +2 -0
- package/dist/cjs/i18n/ja.js +2 -0
- package/dist/cjs/i18n/ko.js +2 -0
- package/dist/cjs/i18n/nb.js +2 -0
- package/dist/cjs/i18n/nl.js +2 -0
- package/dist/cjs/i18n/pl.js +2 -0
- package/dist/cjs/i18n/pt_BR.js +2 -0
- package/dist/cjs/i18n/ru.js +2 -0
- package/dist/cjs/i18n/sv.js +2 -0
- package/dist/cjs/i18n/th.js +2 -0
- package/dist/cjs/i18n/tr.js +2 -0
- package/dist/cjs/i18n/uk.js +2 -0
- package/dist/cjs/i18n/vi.js +2 -0
- package/dist/cjs/i18n/zh.js +2 -0
- package/dist/cjs/i18n/zh_TW.js +2 -0
- package/dist/es2019/components/IntegrationButton.js +4 -4
- package/dist/es2019/components/IntegrationForm.js +22 -22
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/es2019/i18n/cs.js +2 -0
- package/dist/es2019/i18n/da.js +2 -0
- package/dist/es2019/i18n/de.js +2 -0
- package/dist/es2019/i18n/en.js +2 -0
- package/dist/es2019/i18n/en_GB.js +2 -0
- package/dist/es2019/i18n/en_ZZ.js +2 -0
- package/dist/es2019/i18n/es.js +2 -0
- package/dist/es2019/i18n/fi.js +2 -0
- package/dist/es2019/i18n/fr.js +2 -0
- package/dist/es2019/i18n/hu.js +2 -0
- package/dist/es2019/i18n/it.js +2 -0
- package/dist/es2019/i18n/ja.js +2 -0
- package/dist/es2019/i18n/ko.js +2 -0
- package/dist/es2019/i18n/nb.js +2 -0
- package/dist/es2019/i18n/nl.js +2 -0
- package/dist/es2019/i18n/pl.js +2 -0
- package/dist/es2019/i18n/pt_BR.js +2 -0
- package/dist/es2019/i18n/ru.js +2 -0
- package/dist/es2019/i18n/sv.js +2 -0
- package/dist/es2019/i18n/th.js +2 -0
- package/dist/es2019/i18n/tr.js +2 -0
- package/dist/es2019/i18n/uk.js +2 -0
- package/dist/es2019/i18n/vi.js +2 -0
- package/dist/es2019/i18n/zh.js +2 -0
- package/dist/es2019/i18n/zh_TW.js +2 -0
- package/dist/esm/components/IntegrationButton.js +2 -2
- package/dist/esm/components/IntegrationForm.js +1 -1
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/esm/i18n/cs.js +2 -0
- package/dist/esm/i18n/da.js +2 -0
- package/dist/esm/i18n/de.js +2 -0
- package/dist/esm/i18n/en.js +2 -0
- package/dist/esm/i18n/en_GB.js +2 -0
- package/dist/esm/i18n/en_ZZ.js +2 -0
- package/dist/esm/i18n/es.js +2 -0
- package/dist/esm/i18n/fi.js +2 -0
- package/dist/esm/i18n/fr.js +2 -0
- package/dist/esm/i18n/hu.js +2 -0
- package/dist/esm/i18n/it.js +2 -0
- package/dist/esm/i18n/ja.js +2 -0
- package/dist/esm/i18n/ko.js +2 -0
- package/dist/esm/i18n/nb.js +2 -0
- package/dist/esm/i18n/nl.js +2 -0
- package/dist/esm/i18n/pl.js +2 -0
- package/dist/esm/i18n/pt_BR.js +2 -0
- package/dist/esm/i18n/ru.js +2 -0
- package/dist/esm/i18n/sv.js +2 -0
- package/dist/esm/i18n/th.js +2 -0
- package/dist/esm/i18n/tr.js +2 -0
- package/dist/esm/i18n/uk.js +2 -0
- package/dist/esm/i18n/vi.js +2 -0
- package/dist/esm/i18n/zh.js +2 -0
- package/dist/esm/i18n/zh_TW.js +2 -0
- package/dist/types/components/ShareMenuItem.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +2 -0
- package/dist/types/i18n/da.d.ts +2 -0
- package/dist/types/i18n/de.d.ts +2 -0
- package/dist/types/i18n/en.d.ts +2 -0
- package/dist/types/i18n/en_GB.d.ts +2 -0
- package/dist/types/i18n/en_ZZ.d.ts +2 -0
- package/dist/types/i18n/es.d.ts +2 -0
- package/dist/types/i18n/fi.d.ts +2 -0
- package/dist/types/i18n/fr.d.ts +2 -0
- package/dist/types/i18n/hu.d.ts +2 -0
- package/dist/types/i18n/it.d.ts +2 -0
- package/dist/types/i18n/ja.d.ts +2 -0
- package/dist/types/i18n/ko.d.ts +2 -0
- package/dist/types/i18n/nb.d.ts +2 -0
- package/dist/types/i18n/nl.d.ts +2 -0
- package/dist/types/i18n/pl.d.ts +2 -0
- package/dist/types/i18n/pt_BR.d.ts +2 -0
- package/dist/types/i18n/ru.d.ts +2 -0
- package/dist/types/i18n/sv.d.ts +2 -0
- package/dist/types/i18n/th.d.ts +2 -0
- package/dist/types/i18n/tr.d.ts +2 -0
- package/dist/types/i18n/uk.d.ts +2 -0
- package/dist/types/i18n/vi.d.ts +2 -0
- package/dist/types/i18n/zh.d.ts +2 -0
- package/dist/types/i18n/zh_TW.d.ts +2 -0
- package/dist/types-ts4.5/components/ShareMenuItem.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +2 -0
- package/dist/types-ts4.5/i18n/da.d.ts +2 -0
- package/dist/types-ts4.5/i18n/de.d.ts +2 -0
- package/dist/types-ts4.5/i18n/en.d.ts +2 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +2 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -0
- package/dist/types-ts4.5/i18n/es.d.ts +2 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +2 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +2 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +2 -0
- package/dist/types-ts4.5/i18n/it.d.ts +2 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +2 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +2 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +2 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +2 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +2 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +2 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +2 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +2 -0
- package/dist/types-ts4.5/i18n/th.d.ts +2 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +2 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +2 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +2 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +2 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +2 -0
- package/docs/0-intro.tsx +27 -27
- package/docs/1-contributing.tsx +5 -3
- package/package.json +7 -7
- package/report.api.md +229 -237
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/share"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -34,42 +35,42 @@ export const ADMIN_NOTIFIED = 'admin-notified';
|
|
|
34
35
|
|
|
35
36
|
// @public (undocumented)
|
|
36
37
|
type Comment_2 = {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
format: 'adf' | 'plain_text';
|
|
39
|
+
value: string;
|
|
39
40
|
};
|
|
40
41
|
export { Comment_2 as Comment };
|
|
41
42
|
|
|
42
43
|
// @public (undocumented)
|
|
43
44
|
export type ConfigResponse = {
|
|
44
|
-
|
|
45
|
+
disableSharingToEmails?: boolean;
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
// @public (undocumented)
|
|
48
49
|
export type Content = {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
ari: string;
|
|
51
|
+
link: string;
|
|
52
|
+
title: string;
|
|
53
|
+
type: string;
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
// @public (undocumented)
|
|
56
57
|
export class CopyLinkButton extends React_2.Component<Props, State> {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
// (undocumented)
|
|
59
|
+
componentWillUnmount(): void;
|
|
60
|
+
// (undocumented)
|
|
61
|
+
render(): jsx.JSX.Element;
|
|
62
|
+
// (undocumented)
|
|
63
|
+
renderTriggerButton: (triggerProps: TriggerProps) => jsx.JSX.Element;
|
|
64
|
+
// (undocumented)
|
|
65
|
+
state: {
|
|
66
|
+
shouldShowCopiedMessage: boolean;
|
|
67
|
+
};
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
// @public (undocumented)
|
|
70
71
|
export type DialogContentState = {
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
users: OptionData[];
|
|
73
|
+
comment: Comment_2;
|
|
73
74
|
};
|
|
74
75
|
|
|
75
76
|
// @public (undocumented)
|
|
@@ -77,9 +78,9 @@ export type DialogPlacement = Placement;
|
|
|
77
78
|
|
|
78
79
|
// @public (undocumented)
|
|
79
80
|
export type Flag = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
appearance: 'success';
|
|
82
|
+
title: MessageDescriptor;
|
|
83
|
+
type: FlagType;
|
|
83
84
|
};
|
|
84
85
|
|
|
85
86
|
// @public (undocumented)
|
|
@@ -87,24 +88,21 @@ export type FlagType = 'admin-notified' | 'object-shared';
|
|
|
87
88
|
|
|
88
89
|
// @public (undocumented)
|
|
89
90
|
export type FormChildrenArgs<T> = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
HTMLFormElement
|
|
93
|
-
>;
|
|
94
|
-
getValues: () => T;
|
|
91
|
+
formProps: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
|
|
92
|
+
getValues: () => T;
|
|
95
93
|
};
|
|
96
94
|
|
|
97
95
|
// @public (undocumented)
|
|
98
96
|
type Integration = {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
type: string;
|
|
98
|
+
Icon: React.ComponentType;
|
|
99
|
+
Content: React.ComponentType<IntegrationContentProps>;
|
|
102
100
|
};
|
|
103
101
|
|
|
104
102
|
// @public (undocumented)
|
|
105
103
|
type IntegrationContentProps = {
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
onClose: () => void;
|
|
105
|
+
changeTab?: (index: TabType) => void;
|
|
108
106
|
};
|
|
109
107
|
|
|
110
108
|
// @public (undocumented)
|
|
@@ -112,21 +110,21 @@ type IntegrationMode = 'off' | 'split' | 'tabs';
|
|
|
112
110
|
|
|
113
111
|
// @public (undocumented)
|
|
114
112
|
export type KeysOfType<T, TProp> = {
|
|
115
|
-
|
|
113
|
+
[P in keyof T]: T[P] extends TProp ? P : never;
|
|
116
114
|
}[keyof T];
|
|
117
115
|
|
|
118
116
|
// @public (undocumented)
|
|
119
117
|
export type MessageDescriptor = {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
id: string;
|
|
119
|
+
description: string;
|
|
120
|
+
defaultMessage: string;
|
|
123
121
|
};
|
|
124
122
|
|
|
125
123
|
// @public (undocumented)
|
|
126
124
|
export type MetaData = {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
productId: string;
|
|
126
|
+
atlOriginId: string;
|
|
127
|
+
shareeAction?: 'edit' | 'view';
|
|
130
128
|
};
|
|
131
129
|
|
|
132
130
|
// @public (undocumented)
|
|
@@ -134,16 +132,16 @@ export const OBJECT_SHARED = 'object-shared';
|
|
|
134
132
|
|
|
135
133
|
// @public (undocumented)
|
|
136
134
|
export type OriginAnalyticAttributes = {
|
|
137
|
-
|
|
135
|
+
hasGeneratedId: boolean;
|
|
138
136
|
};
|
|
139
137
|
|
|
140
138
|
// @public (undocumented)
|
|
141
139
|
export type OriginTracing = {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
140
|
+
id: string;
|
|
141
|
+
addToUrl: (link: string) => string;
|
|
142
|
+
toAnalyticsAttributes: (
|
|
143
|
+
attrs: OriginAnalyticAttributes,
|
|
144
|
+
) => OriginTracingForSubSequentEvents | OriginTracingWithIdGenerated;
|
|
147
145
|
};
|
|
148
146
|
|
|
149
147
|
// @public (undocumented)
|
|
@@ -151,54 +149,54 @@ export type OriginTracingFactory = () => OriginTracing;
|
|
|
151
149
|
|
|
152
150
|
// @public (undocumented)
|
|
153
151
|
export type OriginTracingForSubSequentEvents = {
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
originId: string;
|
|
153
|
+
originProduct: string;
|
|
156
154
|
};
|
|
157
155
|
|
|
158
156
|
// @public (undocumented)
|
|
159
157
|
export type OriginTracingWithIdGenerated = {
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
originIdGenerated: string;
|
|
159
|
+
originProduct: string;
|
|
162
160
|
};
|
|
163
161
|
|
|
164
162
|
// @public
|
|
165
163
|
export type ProductId =
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
164
|
+
| 'bitbucket'
|
|
165
|
+
| 'confluence'
|
|
166
|
+
| 'jira-addon'
|
|
167
|
+
| 'jira-core'
|
|
168
|
+
| 'jira-platform'
|
|
169
|
+
| 'jira-polaris'
|
|
170
|
+
| 'jira-portfolio'
|
|
171
|
+
| 'jira-servicedesk'
|
|
172
|
+
| 'jira-software'
|
|
173
|
+
| 'jira-unknown'
|
|
174
|
+
| 'trello';
|
|
177
175
|
|
|
178
176
|
// @public (undocumented)
|
|
179
177
|
export type ProductName = 'confluence' | 'jira';
|
|
180
178
|
|
|
181
179
|
// @public (undocumented)
|
|
182
180
|
type Props = {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
181
|
+
onLinkCopy?: (link: string) => void;
|
|
182
|
+
link: string;
|
|
183
|
+
isDisabled?: boolean;
|
|
184
|
+
copyTooltipText?: string;
|
|
185
|
+
children?: ReactElement | string;
|
|
186
|
+
copyLinkButtonText: string;
|
|
187
|
+
copiedToClipboardText: string;
|
|
188
|
+
iconBefore?: ReactElement;
|
|
191
189
|
};
|
|
192
190
|
|
|
193
191
|
// @public (undocumented)
|
|
194
192
|
export type RenderCustomTriggerButton = (
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
193
|
+
args: {
|
|
194
|
+
error?: ShareError;
|
|
195
|
+
isDisabled?: boolean;
|
|
196
|
+
isSelected?: boolean;
|
|
197
|
+
onClick: () => void;
|
|
198
|
+
},
|
|
199
|
+
triggerProps: TriggerProps,
|
|
202
200
|
) => React.ReactNode;
|
|
203
201
|
|
|
204
202
|
// @public (undocumented)
|
|
@@ -206,200 +204,194 @@ export type ShareButtonStyle = 'icon-only' | 'icon-with-text' | 'text-only';
|
|
|
206
204
|
|
|
207
205
|
// @public (undocumented)
|
|
208
206
|
interface ShareClient {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
207
|
+
// (undocumented)
|
|
208
|
+
getConfig(cloudId: string): Promise<ConfigResponse>;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
share(
|
|
211
|
+
content: Content,
|
|
212
|
+
recipients: User[],
|
|
213
|
+
metadata: MetaData,
|
|
214
|
+
comment?: Comment_2,
|
|
215
|
+
): Promise<ShareResponse>;
|
|
218
216
|
}
|
|
219
217
|
|
|
220
218
|
// @public (undocumented)
|
|
221
219
|
export type ShareContentState = {
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
users: User[];
|
|
221
|
+
comment?: Comment_2;
|
|
224
222
|
};
|
|
225
223
|
|
|
226
224
|
// @public (undocumented)
|
|
227
225
|
export const ShareDialogContainer: React_2.ForwardRefExoticComponent<
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
product: string;
|
|
293
|
-
},
|
|
294
|
-
never
|
|
295
|
-
>
|
|
296
|
-
> &
|
|
297
|
-
React_2.RefAttributes<any>
|
|
226
|
+
Pick<
|
|
227
|
+
Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>,
|
|
228
|
+
| 'bottomMessage'
|
|
229
|
+
| 'cloudId'
|
|
230
|
+
| 'copyTooltipText'
|
|
231
|
+
| 'customFooter'
|
|
232
|
+
| 'dialogPlacement'
|
|
233
|
+
| 'dialogZIndex'
|
|
234
|
+
| 'formatCopyLink'
|
|
235
|
+
| 'integrationMode'
|
|
236
|
+
| 'isAutoOpenDialog'
|
|
237
|
+
| 'isBrowseUsersDisabled'
|
|
238
|
+
| 'isCopyDisabled'
|
|
239
|
+
| 'isPublicLink'
|
|
240
|
+
| 'loadUserOptions'
|
|
241
|
+
| 'loggedInAccountId'
|
|
242
|
+
| 'onDialogClose'
|
|
243
|
+
| 'onDialogOpen'
|
|
244
|
+
| 'onTriggerButtonClick'
|
|
245
|
+
| 'onUserSelectionChange'
|
|
246
|
+
| 'orgId'
|
|
247
|
+
| 'originTracingFactory'
|
|
248
|
+
| 'productId'
|
|
249
|
+
| 'renderCustomTriggerButton'
|
|
250
|
+
| 'shareAri'
|
|
251
|
+
| 'shareClient'
|
|
252
|
+
| 'shareContentId'
|
|
253
|
+
| 'shareContentSubType'
|
|
254
|
+
| 'shareContentType'
|
|
255
|
+
| 'shareFieldsFooter'
|
|
256
|
+
| 'shareFormHelperMessage'
|
|
257
|
+
| 'shareFormTitle'
|
|
258
|
+
| 'shareIntegrations'
|
|
259
|
+
| 'shareLink'
|
|
260
|
+
| 'shareTitle'
|
|
261
|
+
| 'shortLinkData'
|
|
262
|
+
| 'shouldCloseOnEscapePress'
|
|
263
|
+
| 'showFlags'
|
|
264
|
+
| 'tabIndex'
|
|
265
|
+
| 'triggerButtonAppearance'
|
|
266
|
+
| 'triggerButtonIcon'
|
|
267
|
+
| 'triggerButtonStyle'
|
|
268
|
+
| 'triggerButtonTooltipPosition'
|
|
269
|
+
| 'triggerButtonTooltipText'
|
|
270
|
+
| 'urlShortenerClient'
|
|
271
|
+
| 'useUrlShortener'
|
|
272
|
+
> &
|
|
273
|
+
Partial<
|
|
274
|
+
Pick<
|
|
275
|
+
Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>,
|
|
276
|
+
'enableSmartUserPicker' | 'product' | 'shareeAction'
|
|
277
|
+
>
|
|
278
|
+
> &
|
|
279
|
+
Partial<
|
|
280
|
+
Pick<
|
|
281
|
+
{
|
|
282
|
+
enableSmartUserPicker: boolean;
|
|
283
|
+
shareeAction: 'edit' | 'view';
|
|
284
|
+
product: string;
|
|
285
|
+
},
|
|
286
|
+
never
|
|
287
|
+
>
|
|
288
|
+
> &
|
|
289
|
+
React_2.RefAttributes<any>
|
|
298
290
|
>;
|
|
299
291
|
|
|
300
292
|
// @public (undocumented)
|
|
301
293
|
export type ShareDialogContainerProps = {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
294
|
+
onTriggerButtonClick?: () => void;
|
|
295
|
+
onDialogOpen?: () => void;
|
|
296
|
+
onDialogClose?: () => void;
|
|
297
|
+
isAutoOpenDialog?: boolean;
|
|
298
|
+
shareClient?: ShareClient;
|
|
299
|
+
urlShortenerClient?: UrlShortenerClient;
|
|
300
|
+
shortLinkData?: ShortenRequest;
|
|
301
|
+
cloudId: string;
|
|
302
|
+
orgId?: string;
|
|
303
|
+
dialogPlacement?: DialogPlacement;
|
|
304
|
+
dialogZIndex?: number;
|
|
305
|
+
formatCopyLink?: (origin: OriginTracing, link: string) => string;
|
|
306
|
+
loadUserOptions?: LoadOptions;
|
|
307
|
+
originTracingFactory: OriginTracingFactory;
|
|
308
|
+
productId: ProductId;
|
|
309
|
+
renderCustomTriggerButton?: RenderCustomTriggerButton;
|
|
310
|
+
shareAri: string;
|
|
311
|
+
shareContentType: string;
|
|
312
|
+
shareContentSubType?: string;
|
|
313
|
+
shareContentId?: string;
|
|
314
|
+
shareLink?: string;
|
|
315
|
+
shareTitle: string;
|
|
316
|
+
shareFormTitle?: React.ReactNode;
|
|
317
|
+
shareFormHelperMessage?: string;
|
|
318
|
+
shouldCloseOnEscapePress?: boolean;
|
|
319
|
+
showFlags: (flags: Array<Flag>) => void;
|
|
320
|
+
enableSmartUserPicker?: boolean;
|
|
321
|
+
loggedInAccountId?: string;
|
|
322
|
+
triggerButtonAppearance?: Appearance;
|
|
323
|
+
triggerButtonIcon?: React.ComponentType<IconProps>;
|
|
324
|
+
triggerButtonStyle?: ShareButtonStyle;
|
|
325
|
+
triggerButtonTooltipPosition?: TooltipPosition;
|
|
326
|
+
triggerButtonTooltipText?: React.ReactNode;
|
|
327
|
+
bottomMessage?: React.ReactNode;
|
|
328
|
+
useUrlShortener?: boolean;
|
|
329
|
+
shareeAction?: 'edit' | 'view';
|
|
330
|
+
product?: ProductName;
|
|
331
|
+
customFooter?: React.ReactNode;
|
|
332
|
+
onUserSelectionChange?: (value: Value) => void;
|
|
333
|
+
shareFieldsFooter?: React.ReactNode;
|
|
334
|
+
isCopyDisabled?: boolean;
|
|
335
|
+
isPublicLink?: boolean;
|
|
336
|
+
integrationMode?: IntegrationMode;
|
|
337
|
+
shareIntegrations?: Array<Integration>;
|
|
338
|
+
tabIndex?: number;
|
|
339
|
+
copyTooltipText?: string;
|
|
340
|
+
isBrowseUsersDisabled?: boolean;
|
|
349
341
|
};
|
|
350
342
|
|
|
351
343
|
// @public (undocumented)
|
|
352
344
|
export type ShareError = {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
345
|
+
message: string;
|
|
346
|
+
errorCode?: string;
|
|
347
|
+
helpUrl?: string;
|
|
348
|
+
retryable: boolean;
|
|
357
349
|
};
|
|
358
350
|
|
|
359
351
|
// @public (undocumented)
|
|
360
352
|
export type ShareRequest = (
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
353
|
+
content: Content,
|
|
354
|
+
recipients: User[],
|
|
355
|
+
metadata: MetaData,
|
|
356
|
+
comment?: Comment_2,
|
|
365
357
|
) => Promise<ShareResponse>;
|
|
366
358
|
|
|
367
359
|
// @public (undocumented)
|
|
368
360
|
export type ShareResponse = {
|
|
369
|
-
|
|
361
|
+
shareRequestId: string;
|
|
370
362
|
};
|
|
371
363
|
|
|
372
364
|
// @public (undocumented)
|
|
373
365
|
interface ShortenRequest {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
366
|
+
// (undocumented)
|
|
367
|
+
cloudId?: string;
|
|
368
|
+
// (undocumented)
|
|
369
|
+
originId?: string;
|
|
370
|
+
// (undocumented)
|
|
371
|
+
params: Record<string, string>;
|
|
372
|
+
// (undocumented)
|
|
373
|
+
product: string;
|
|
374
|
+
// (undocumented)
|
|
375
|
+
type: string;
|
|
384
376
|
}
|
|
385
377
|
|
|
386
378
|
// @public (undocumented)
|
|
387
379
|
interface ShortenResponse {
|
|
388
|
-
|
|
389
|
-
|
|
380
|
+
// (undocumented)
|
|
381
|
+
shortUrl: string;
|
|
390
382
|
}
|
|
391
383
|
|
|
392
384
|
// @public (undocumented)
|
|
393
385
|
type State = {
|
|
394
|
-
|
|
386
|
+
shouldShowCopiedMessage: boolean;
|
|
395
387
|
};
|
|
396
388
|
|
|
397
389
|
// @public (undocumented)
|
|
398
390
|
enum TabType {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
391
|
+
// (undocumented)
|
|
392
|
+
default = 0,
|
|
393
|
+
// (undocumented)
|
|
394
|
+
Slack = 1,
|
|
403
395
|
}
|
|
404
396
|
|
|
405
397
|
// @public (undocumented)
|
|
@@ -407,8 +399,8 @@ export type TooltipPosition = 'bottom' | 'left' | 'mouse' | 'right' | 'top';
|
|
|
407
399
|
|
|
408
400
|
// @public (undocumented)
|
|
409
401
|
interface UrlShortenerClient {
|
|
410
|
-
|
|
411
|
-
|
|
402
|
+
// (undocumented)
|
|
403
|
+
shorten(data: ShortenRequest): Promise<ShortenResponse>;
|
|
412
404
|
}
|
|
413
405
|
|
|
414
406
|
// @public (undocumented)
|
|
@@ -416,14 +408,14 @@ export type User = UserWithEmail | UserWithId;
|
|
|
416
408
|
|
|
417
409
|
// @public (undocumented)
|
|
418
410
|
export type UserWithEmail = {
|
|
419
|
-
|
|
420
|
-
|
|
411
|
+
type: 'user';
|
|
412
|
+
email: string;
|
|
421
413
|
};
|
|
422
414
|
|
|
423
415
|
// @public (undocumented)
|
|
424
416
|
export type UserWithId = {
|
|
425
|
-
|
|
426
|
-
|
|
417
|
+
type: 'custom' | 'group' | 'team' | 'user';
|
|
418
|
+
id: string;
|
|
427
419
|
};
|
|
428
420
|
|
|
429
421
|
// (No @packageDocumentation comment for this package)
|
|
@@ -437,7 +429,7 @@ export type UserWithId = {
|
|
|
437
429
|
|
|
438
430
|
```json
|
|
439
431
|
{
|
|
440
|
-
|
|
432
|
+
"react": "^16.8.0"
|
|
441
433
|
}
|
|
442
434
|
```
|
|
443
435
|
|