@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.
Files changed (141) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/components/IntegrationButton.js +2 -2
  3. package/dist/cjs/components/IntegrationForm.js +1 -1
  4. package/dist/cjs/components/analytics/analytics.js +1 -1
  5. package/dist/cjs/i18n/cs.js +2 -0
  6. package/dist/cjs/i18n/da.js +2 -0
  7. package/dist/cjs/i18n/de.js +2 -0
  8. package/dist/cjs/i18n/en.js +2 -0
  9. package/dist/cjs/i18n/en_GB.js +2 -0
  10. package/dist/cjs/i18n/en_ZZ.js +2 -0
  11. package/dist/cjs/i18n/es.js +2 -0
  12. package/dist/cjs/i18n/fi.js +2 -0
  13. package/dist/cjs/i18n/fr.js +2 -0
  14. package/dist/cjs/i18n/hu.js +2 -0
  15. package/dist/cjs/i18n/it.js +2 -0
  16. package/dist/cjs/i18n/ja.js +2 -0
  17. package/dist/cjs/i18n/ko.js +2 -0
  18. package/dist/cjs/i18n/nb.js +2 -0
  19. package/dist/cjs/i18n/nl.js +2 -0
  20. package/dist/cjs/i18n/pl.js +2 -0
  21. package/dist/cjs/i18n/pt_BR.js +2 -0
  22. package/dist/cjs/i18n/ru.js +2 -0
  23. package/dist/cjs/i18n/sv.js +2 -0
  24. package/dist/cjs/i18n/th.js +2 -0
  25. package/dist/cjs/i18n/tr.js +2 -0
  26. package/dist/cjs/i18n/uk.js +2 -0
  27. package/dist/cjs/i18n/vi.js +2 -0
  28. package/dist/cjs/i18n/zh.js +2 -0
  29. package/dist/cjs/i18n/zh_TW.js +2 -0
  30. package/dist/es2019/components/IntegrationButton.js +4 -4
  31. package/dist/es2019/components/IntegrationForm.js +22 -22
  32. package/dist/es2019/components/analytics/analytics.js +1 -1
  33. package/dist/es2019/i18n/cs.js +2 -0
  34. package/dist/es2019/i18n/da.js +2 -0
  35. package/dist/es2019/i18n/de.js +2 -0
  36. package/dist/es2019/i18n/en.js +2 -0
  37. package/dist/es2019/i18n/en_GB.js +2 -0
  38. package/dist/es2019/i18n/en_ZZ.js +2 -0
  39. package/dist/es2019/i18n/es.js +2 -0
  40. package/dist/es2019/i18n/fi.js +2 -0
  41. package/dist/es2019/i18n/fr.js +2 -0
  42. package/dist/es2019/i18n/hu.js +2 -0
  43. package/dist/es2019/i18n/it.js +2 -0
  44. package/dist/es2019/i18n/ja.js +2 -0
  45. package/dist/es2019/i18n/ko.js +2 -0
  46. package/dist/es2019/i18n/nb.js +2 -0
  47. package/dist/es2019/i18n/nl.js +2 -0
  48. package/dist/es2019/i18n/pl.js +2 -0
  49. package/dist/es2019/i18n/pt_BR.js +2 -0
  50. package/dist/es2019/i18n/ru.js +2 -0
  51. package/dist/es2019/i18n/sv.js +2 -0
  52. package/dist/es2019/i18n/th.js +2 -0
  53. package/dist/es2019/i18n/tr.js +2 -0
  54. package/dist/es2019/i18n/uk.js +2 -0
  55. package/dist/es2019/i18n/vi.js +2 -0
  56. package/dist/es2019/i18n/zh.js +2 -0
  57. package/dist/es2019/i18n/zh_TW.js +2 -0
  58. package/dist/esm/components/IntegrationButton.js +2 -2
  59. package/dist/esm/components/IntegrationForm.js +1 -1
  60. package/dist/esm/components/analytics/analytics.js +1 -1
  61. package/dist/esm/i18n/cs.js +2 -0
  62. package/dist/esm/i18n/da.js +2 -0
  63. package/dist/esm/i18n/de.js +2 -0
  64. package/dist/esm/i18n/en.js +2 -0
  65. package/dist/esm/i18n/en_GB.js +2 -0
  66. package/dist/esm/i18n/en_ZZ.js +2 -0
  67. package/dist/esm/i18n/es.js +2 -0
  68. package/dist/esm/i18n/fi.js +2 -0
  69. package/dist/esm/i18n/fr.js +2 -0
  70. package/dist/esm/i18n/hu.js +2 -0
  71. package/dist/esm/i18n/it.js +2 -0
  72. package/dist/esm/i18n/ja.js +2 -0
  73. package/dist/esm/i18n/ko.js +2 -0
  74. package/dist/esm/i18n/nb.js +2 -0
  75. package/dist/esm/i18n/nl.js +2 -0
  76. package/dist/esm/i18n/pl.js +2 -0
  77. package/dist/esm/i18n/pt_BR.js +2 -0
  78. package/dist/esm/i18n/ru.js +2 -0
  79. package/dist/esm/i18n/sv.js +2 -0
  80. package/dist/esm/i18n/th.js +2 -0
  81. package/dist/esm/i18n/tr.js +2 -0
  82. package/dist/esm/i18n/uk.js +2 -0
  83. package/dist/esm/i18n/vi.js +2 -0
  84. package/dist/esm/i18n/zh.js +2 -0
  85. package/dist/esm/i18n/zh_TW.js +2 -0
  86. package/dist/types/components/ShareMenuItem.d.ts +1 -1
  87. package/dist/types/i18n/cs.d.ts +2 -0
  88. package/dist/types/i18n/da.d.ts +2 -0
  89. package/dist/types/i18n/de.d.ts +2 -0
  90. package/dist/types/i18n/en.d.ts +2 -0
  91. package/dist/types/i18n/en_GB.d.ts +2 -0
  92. package/dist/types/i18n/en_ZZ.d.ts +2 -0
  93. package/dist/types/i18n/es.d.ts +2 -0
  94. package/dist/types/i18n/fi.d.ts +2 -0
  95. package/dist/types/i18n/fr.d.ts +2 -0
  96. package/dist/types/i18n/hu.d.ts +2 -0
  97. package/dist/types/i18n/it.d.ts +2 -0
  98. package/dist/types/i18n/ja.d.ts +2 -0
  99. package/dist/types/i18n/ko.d.ts +2 -0
  100. package/dist/types/i18n/nb.d.ts +2 -0
  101. package/dist/types/i18n/nl.d.ts +2 -0
  102. package/dist/types/i18n/pl.d.ts +2 -0
  103. package/dist/types/i18n/pt_BR.d.ts +2 -0
  104. package/dist/types/i18n/ru.d.ts +2 -0
  105. package/dist/types/i18n/sv.d.ts +2 -0
  106. package/dist/types/i18n/th.d.ts +2 -0
  107. package/dist/types/i18n/tr.d.ts +2 -0
  108. package/dist/types/i18n/uk.d.ts +2 -0
  109. package/dist/types/i18n/vi.d.ts +2 -0
  110. package/dist/types/i18n/zh.d.ts +2 -0
  111. package/dist/types/i18n/zh_TW.d.ts +2 -0
  112. package/dist/types-ts4.5/components/ShareMenuItem.d.ts +1 -1
  113. package/dist/types-ts4.5/i18n/cs.d.ts +2 -0
  114. package/dist/types-ts4.5/i18n/da.d.ts +2 -0
  115. package/dist/types-ts4.5/i18n/de.d.ts +2 -0
  116. package/dist/types-ts4.5/i18n/en.d.ts +2 -0
  117. package/dist/types-ts4.5/i18n/en_GB.d.ts +2 -0
  118. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -0
  119. package/dist/types-ts4.5/i18n/es.d.ts +2 -0
  120. package/dist/types-ts4.5/i18n/fi.d.ts +2 -0
  121. package/dist/types-ts4.5/i18n/fr.d.ts +2 -0
  122. package/dist/types-ts4.5/i18n/hu.d.ts +2 -0
  123. package/dist/types-ts4.5/i18n/it.d.ts +2 -0
  124. package/dist/types-ts4.5/i18n/ja.d.ts +2 -0
  125. package/dist/types-ts4.5/i18n/ko.d.ts +2 -0
  126. package/dist/types-ts4.5/i18n/nb.d.ts +2 -0
  127. package/dist/types-ts4.5/i18n/nl.d.ts +2 -0
  128. package/dist/types-ts4.5/i18n/pl.d.ts +2 -0
  129. package/dist/types-ts4.5/i18n/pt_BR.d.ts +2 -0
  130. package/dist/types-ts4.5/i18n/ru.d.ts +2 -0
  131. package/dist/types-ts4.5/i18n/sv.d.ts +2 -0
  132. package/dist/types-ts4.5/i18n/th.d.ts +2 -0
  133. package/dist/types-ts4.5/i18n/tr.d.ts +2 -0
  134. package/dist/types-ts4.5/i18n/uk.d.ts +2 -0
  135. package/dist/types-ts4.5/i18n/vi.d.ts +2 -0
  136. package/dist/types-ts4.5/i18n/zh.d.ts +2 -0
  137. package/dist/types-ts4.5/i18n/zh_TW.d.ts +2 -0
  138. package/docs/0-intro.tsx +27 -27
  139. package/docs/1-contributing.tsx +5 -3
  140. package/package.json +7 -7
  141. 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 [API Extractor](https://api-extractor.com/).
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
- format: 'adf' | 'plain_text';
38
- value: string;
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
- disableSharingToEmails?: boolean;
45
+ disableSharingToEmails?: boolean;
45
46
  };
46
47
 
47
48
  // @public (undocumented)
48
49
  export type Content = {
49
- ari: string;
50
- link: string;
51
- title: string;
52
- type: string;
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
- // (undocumented)
58
- componentWillUnmount(): void;
59
- // (undocumented)
60
- render(): jsx.JSX.Element;
61
- // (undocumented)
62
- renderTriggerButton: (triggerProps: TriggerProps) => jsx.JSX.Element;
63
- // (undocumented)
64
- state: {
65
- shouldShowCopiedMessage: boolean;
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
- users: OptionData[];
72
- comment: Comment_2;
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
- appearance: 'success';
81
- title: MessageDescriptor;
82
- type: FlagType;
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
- formProps: React.DetailedHTMLProps<
91
- React.FormHTMLAttributes<HTMLFormElement>,
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
- type: string;
100
- Icon: React.ComponentType;
101
- Content: React.ComponentType<IntegrationContentProps>;
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
- onClose: () => void;
107
- changeTab?: (index: TabType) => void;
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
- [P in keyof T]: T[P] extends TProp ? P : never;
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
- id: string;
121
- description: string;
122
- defaultMessage: string;
118
+ id: string;
119
+ description: string;
120
+ defaultMessage: string;
123
121
  };
124
122
 
125
123
  // @public (undocumented)
126
124
  export type MetaData = {
127
- productId: string;
128
- atlOriginId: string;
129
- shareeAction?: 'edit' | 'view';
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
- hasGeneratedId: boolean;
135
+ hasGeneratedId: boolean;
138
136
  };
139
137
 
140
138
  // @public (undocumented)
141
139
  export type OriginTracing = {
142
- id: string;
143
- addToUrl: (link: string) => string;
144
- toAnalyticsAttributes: (
145
- attrs: OriginAnalyticAttributes,
146
- ) => OriginTracingForSubSequentEvents | OriginTracingWithIdGenerated;
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
- originId: string;
155
- originProduct: string;
152
+ originId: string;
153
+ originProduct: string;
156
154
  };
157
155
 
158
156
  // @public (undocumented)
159
157
  export type OriginTracingWithIdGenerated = {
160
- originIdGenerated: string;
161
- originProduct: string;
158
+ originIdGenerated: string;
159
+ originProduct: string;
162
160
  };
163
161
 
164
162
  // @public
165
163
  export type ProductId =
166
- | 'bitbucket'
167
- | 'confluence'
168
- | 'jira-addon'
169
- | 'jira-core'
170
- | 'jira-platform'
171
- | 'jira-polaris'
172
- | 'jira-portfolio'
173
- | 'jira-servicedesk'
174
- | 'jira-software'
175
- | 'jira-unknown'
176
- | 'trello';
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
- onLinkCopy?: (link: string) => void;
184
- link: string;
185
- isDisabled?: boolean;
186
- copyTooltipText?: string;
187
- children?: ReactElement | string;
188
- copyLinkButtonText: string;
189
- copiedToClipboardText: string;
190
- iconBefore?: ReactElement;
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
- args: {
196
- error?: ShareError;
197
- isDisabled?: boolean;
198
- isSelected?: boolean;
199
- onClick: () => void;
200
- },
201
- triggerProps: TriggerProps,
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
- // (undocumented)
210
- getConfig(cloudId: string): Promise<ConfigResponse>;
211
- // (undocumented)
212
- share(
213
- content: Content,
214
- recipients: User[],
215
- metadata: MetaData,
216
- comment?: Comment_2,
217
- ): Promise<ShareResponse>;
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
- users: User[];
223
- comment?: Comment_2;
220
+ users: User[];
221
+ comment?: Comment_2;
224
222
  };
225
223
 
226
224
  // @public (undocumented)
227
225
  export const ShareDialogContainer: React_2.ForwardRefExoticComponent<
228
- Pick<
229
- Omit<
230
- WithAnalyticsEventsProps & ShareDialogContainerProps,
231
- keyof WithAnalyticsEventsProps
232
- >,
233
- | 'bottomMessage'
234
- | 'cloudId'
235
- | 'copyTooltipText'
236
- | 'customFooter'
237
- | 'dialogPlacement'
238
- | 'dialogZIndex'
239
- | 'formatCopyLink'
240
- | 'integrationMode'
241
- | 'isAutoOpenDialog'
242
- | 'isBrowseUsersDisabled'
243
- | 'isCopyDisabled'
244
- | 'isPublicLink'
245
- | 'loadUserOptions'
246
- | 'loggedInAccountId'
247
- | 'onDialogClose'
248
- | 'onDialogOpen'
249
- | 'onTriggerButtonClick'
250
- | 'onUserSelectionChange'
251
- | 'orgId'
252
- | 'originTracingFactory'
253
- | 'productId'
254
- | 'renderCustomTriggerButton'
255
- | 'shareAri'
256
- | 'shareClient'
257
- | 'shareContentId'
258
- | 'shareContentSubType'
259
- | 'shareContentType'
260
- | 'shareFieldsFooter'
261
- | 'shareFormHelperMessage'
262
- | 'shareFormTitle'
263
- | 'shareIntegrations'
264
- | 'shareLink'
265
- | 'shareTitle'
266
- | 'shortLinkData'
267
- | 'shouldCloseOnEscapePress'
268
- | 'showFlags'
269
- | 'tabIndex'
270
- | 'triggerButtonAppearance'
271
- | 'triggerButtonIcon'
272
- | 'triggerButtonStyle'
273
- | 'triggerButtonTooltipPosition'
274
- | 'triggerButtonTooltipText'
275
- | 'urlShortenerClient'
276
- | 'useUrlShortener'
277
- > &
278
- Partial<
279
- Pick<
280
- Omit<
281
- WithAnalyticsEventsProps & ShareDialogContainerProps,
282
- keyof WithAnalyticsEventsProps
283
- >,
284
- 'enableSmartUserPicker' | 'product' | 'shareeAction'
285
- >
286
- > &
287
- Partial<
288
- Pick<
289
- {
290
- enableSmartUserPicker: boolean;
291
- shareeAction: 'edit' | 'view';
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
- onTriggerButtonClick?: () => void;
303
- onDialogOpen?: () => void;
304
- onDialogClose?: () => void;
305
- isAutoOpenDialog?: boolean;
306
- shareClient?: ShareClient;
307
- urlShortenerClient?: UrlShortenerClient;
308
- shortLinkData?: ShortenRequest;
309
- cloudId: string;
310
- orgId?: string;
311
- dialogPlacement?: DialogPlacement;
312
- dialogZIndex?: number;
313
- formatCopyLink?: (origin: OriginTracing, link: string) => string;
314
- loadUserOptions?: LoadOptions;
315
- originTracingFactory: OriginTracingFactory;
316
- productId: ProductId;
317
- renderCustomTriggerButton?: RenderCustomTriggerButton;
318
- shareAri: string;
319
- shareContentType: string;
320
- shareContentSubType?: string;
321
- shareContentId?: string;
322
- shareLink?: string;
323
- shareTitle: string;
324
- shareFormTitle?: React.ReactNode;
325
- shareFormHelperMessage?: string;
326
- shouldCloseOnEscapePress?: boolean;
327
- showFlags: (flags: Array<Flag>) => void;
328
- enableSmartUserPicker?: boolean;
329
- loggedInAccountId?: string;
330
- triggerButtonAppearance?: Appearance;
331
- triggerButtonIcon?: React.ComponentType<IconProps>;
332
- triggerButtonStyle?: ShareButtonStyle;
333
- triggerButtonTooltipPosition?: TooltipPosition;
334
- triggerButtonTooltipText?: React.ReactNode;
335
- bottomMessage?: React.ReactNode;
336
- useUrlShortener?: boolean;
337
- shareeAction?: 'edit' | 'view';
338
- product?: ProductName;
339
- customFooter?: React.ReactNode;
340
- onUserSelectionChange?: (value: Value) => void;
341
- shareFieldsFooter?: React.ReactNode;
342
- isCopyDisabled?: boolean;
343
- isPublicLink?: boolean;
344
- integrationMode?: IntegrationMode;
345
- shareIntegrations?: Array<Integration>;
346
- tabIndex?: number;
347
- copyTooltipText?: string;
348
- isBrowseUsersDisabled?: boolean;
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
- message: string;
354
- errorCode?: string;
355
- helpUrl?: string;
356
- retryable: boolean;
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
- content: Content,
362
- recipients: User[],
363
- metadata: MetaData,
364
- comment?: Comment_2,
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
- shareRequestId: string;
361
+ shareRequestId: string;
370
362
  };
371
363
 
372
364
  // @public (undocumented)
373
365
  interface ShortenRequest {
374
- // (undocumented)
375
- cloudId?: string;
376
- // (undocumented)
377
- originId?: string;
378
- // (undocumented)
379
- params: Record<string, string>;
380
- // (undocumented)
381
- product: string;
382
- // (undocumented)
383
- type: string;
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
- // (undocumented)
389
- shortUrl: string;
380
+ // (undocumented)
381
+ shortUrl: string;
390
382
  }
391
383
 
392
384
  // @public (undocumented)
393
385
  type State = {
394
- shouldShowCopiedMessage: boolean;
386
+ shouldShowCopiedMessage: boolean;
395
387
  };
396
388
 
397
389
  // @public (undocumented)
398
390
  enum TabType {
399
- // (undocumented)
400
- default = 0,
401
- // (undocumented)
402
- Slack = 1,
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
- // (undocumented)
411
- shorten(data: ShortenRequest): Promise<ShortenResponse>;
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
- type: 'user';
420
- email: string;
411
+ type: 'user';
412
+ email: string;
421
413
  };
422
414
 
423
415
  // @public (undocumented)
424
416
  export type UserWithId = {
425
- type: 'custom' | 'group' | 'team' | 'user';
426
- id: string;
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
- "react": "^16.8.0"
432
+ "react": "^16.8.0"
441
433
  }
442
434
  ```
443
435