@atlaskit/share 4.2.0 → 4.2.2

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 (221) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/clients/package.json +2 -2
  3. package/copy-link-button/package.json +2 -2
  4. package/dist/cjs/components/analytics/analytics.js +1 -1
  5. package/dist/cjs/i18n/cs.js +37 -37
  6. package/dist/cjs/i18n/da.js +37 -37
  7. package/dist/cjs/i18n/de.js +37 -37
  8. package/dist/cjs/i18n/en.js +37 -37
  9. package/dist/cjs/i18n/en_GB.js +37 -37
  10. package/dist/cjs/i18n/es.js +37 -37
  11. package/dist/cjs/i18n/fi.js +37 -37
  12. package/dist/cjs/i18n/fr.js +37 -37
  13. package/dist/cjs/i18n/hu.js +37 -37
  14. package/dist/cjs/i18n/it.js +37 -37
  15. package/dist/cjs/i18n/ja.js +37 -37
  16. package/dist/cjs/i18n/ko.js +37 -37
  17. package/dist/cjs/i18n/nb.js +37 -37
  18. package/dist/cjs/i18n/nl.js +37 -37
  19. package/dist/cjs/i18n/pl.js +37 -37
  20. package/dist/cjs/i18n/pt_BR.js +37 -37
  21. package/dist/cjs/i18n/ru.js +37 -37
  22. package/dist/cjs/i18n/sv.js +37 -37
  23. package/dist/cjs/i18n/th.js +37 -37
  24. package/dist/cjs/i18n/tr.js +37 -37
  25. package/dist/cjs/i18n/uk.js +37 -37
  26. package/dist/cjs/i18n/vi.js +37 -37
  27. package/dist/cjs/i18n/zh.js +37 -37
  28. package/dist/cjs/i18n/zh_TW.js +37 -37
  29. package/dist/cjs/version.json +1 -1
  30. package/dist/es2019/components/analytics/analytics.js +1 -1
  31. package/dist/es2019/i18n/cs.js +37 -37
  32. package/dist/es2019/i18n/da.js +37 -37
  33. package/dist/es2019/i18n/de.js +37 -37
  34. package/dist/es2019/i18n/en.js +37 -37
  35. package/dist/es2019/i18n/en_GB.js +37 -37
  36. package/dist/es2019/i18n/es.js +37 -37
  37. package/dist/es2019/i18n/fi.js +37 -37
  38. package/dist/es2019/i18n/fr.js +37 -37
  39. package/dist/es2019/i18n/hu.js +37 -37
  40. package/dist/es2019/i18n/it.js +37 -37
  41. package/dist/es2019/i18n/ja.js +37 -37
  42. package/dist/es2019/i18n/ko.js +37 -37
  43. package/dist/es2019/i18n/nb.js +37 -37
  44. package/dist/es2019/i18n/nl.js +37 -37
  45. package/dist/es2019/i18n/pl.js +37 -37
  46. package/dist/es2019/i18n/pt_BR.js +37 -37
  47. package/dist/es2019/i18n/ru.js +37 -37
  48. package/dist/es2019/i18n/sv.js +37 -37
  49. package/dist/es2019/i18n/th.js +37 -37
  50. package/dist/es2019/i18n/tr.js +37 -37
  51. package/dist/es2019/i18n/uk.js +37 -37
  52. package/dist/es2019/i18n/vi.js +37 -37
  53. package/dist/es2019/i18n/zh.js +37 -37
  54. package/dist/es2019/i18n/zh_TW.js +37 -37
  55. package/dist/es2019/version.json +1 -1
  56. package/dist/esm/components/analytics/analytics.js +1 -1
  57. package/dist/esm/i18n/cs.js +37 -37
  58. package/dist/esm/i18n/da.js +37 -37
  59. package/dist/esm/i18n/de.js +37 -37
  60. package/dist/esm/i18n/en.js +37 -37
  61. package/dist/esm/i18n/en_GB.js +37 -37
  62. package/dist/esm/i18n/es.js +37 -37
  63. package/dist/esm/i18n/fi.js +37 -37
  64. package/dist/esm/i18n/fr.js +37 -37
  65. package/dist/esm/i18n/hu.js +37 -37
  66. package/dist/esm/i18n/it.js +37 -37
  67. package/dist/esm/i18n/ja.js +37 -37
  68. package/dist/esm/i18n/ko.js +37 -37
  69. package/dist/esm/i18n/nb.js +37 -37
  70. package/dist/esm/i18n/nl.js +37 -37
  71. package/dist/esm/i18n/pl.js +37 -37
  72. package/dist/esm/i18n/pt_BR.js +37 -37
  73. package/dist/esm/i18n/ru.js +37 -37
  74. package/dist/esm/i18n/sv.js +37 -37
  75. package/dist/esm/i18n/th.js +37 -37
  76. package/dist/esm/i18n/tr.js +37 -37
  77. package/dist/esm/i18n/uk.js +37 -37
  78. package/dist/esm/i18n/vi.js +37 -37
  79. package/dist/esm/i18n/zh.js +37 -37
  80. package/dist/esm/i18n/zh_TW.js +37 -37
  81. package/dist/esm/version.json +1 -1
  82. package/dist/types/clients/ShareServiceClient.d.ts +3 -3
  83. package/dist/types/components/CommentField.d.ts +1 -1
  84. package/dist/types/components/CopyLinkButton.d.ts +3 -3
  85. package/dist/types/components/IntegrationButton.d.ts +1 -1
  86. package/dist/types/components/IntegrationForm.d.ts +1 -1
  87. package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +1 -1
  88. package/dist/types/components/ShareButton.d.ts +1 -1
  89. package/dist/types/components/ShareDialogContainer.d.ts +1 -1
  90. package/dist/types/components/ShareDialogWithTrigger.d.ts +1 -1
  91. package/dist/types/components/ShareForm.d.ts +2 -2
  92. package/dist/types/components/ShareFormWrapper/ShareFormWrapper.d.ts +1 -1
  93. package/dist/types/components/ShareHeader.d.ts +1 -1
  94. package/dist/types/components/SplitButton.d.ts +1 -1
  95. package/dist/types/components/UserPickerField.d.ts +1 -1
  96. package/dist/types/components/analytics/analytics.d.ts +4 -4
  97. package/dist/types/components/utils.d.ts +3 -4
  98. package/dist/types/i18n/cs.d.ts +39 -39
  99. package/dist/types/i18n/da.d.ts +39 -39
  100. package/dist/types/i18n/de.d.ts +39 -39
  101. package/dist/types/i18n/en.d.ts +39 -39
  102. package/dist/types/i18n/en_GB.d.ts +39 -39
  103. package/dist/types/i18n/en_ZZ.d.ts +6 -6
  104. package/dist/types/i18n/es.d.ts +39 -39
  105. package/dist/types/i18n/et.d.ts +6 -6
  106. package/dist/types/i18n/fi.d.ts +39 -39
  107. package/dist/types/i18n/fr.d.ts +39 -39
  108. package/dist/types/i18n/hu.d.ts +39 -39
  109. package/dist/types/i18n/is.d.ts +6 -6
  110. package/dist/types/i18n/it.d.ts +39 -39
  111. package/dist/types/i18n/ja.d.ts +39 -39
  112. package/dist/types/i18n/ko.d.ts +39 -39
  113. package/dist/types/i18n/languages.d.ts +6 -6
  114. package/dist/types/i18n/nb.d.ts +39 -39
  115. package/dist/types/i18n/nl.d.ts +39 -39
  116. package/dist/types/i18n/pl.d.ts +39 -39
  117. package/dist/types/i18n/pt_BR.d.ts +39 -39
  118. package/dist/types/i18n/pt_PT.d.ts +6 -6
  119. package/dist/types/i18n/ro.d.ts +6 -6
  120. package/dist/types/i18n/ru.d.ts +39 -39
  121. package/dist/types/i18n/sk.d.ts +6 -6
  122. package/dist/types/i18n/sv.d.ts +39 -39
  123. package/dist/types/i18n/th.d.ts +39 -39
  124. package/dist/types/i18n/tr.d.ts +39 -39
  125. package/dist/types/i18n/uk.d.ts +39 -39
  126. package/dist/types/i18n/vi.d.ts +39 -39
  127. package/dist/types/i18n/zh.d.ts +39 -39
  128. package/dist/types/i18n/zh_TW.d.ts +39 -39
  129. package/dist/types/types/Flag.d.ts +3 -3
  130. package/dist/types/types/OriginTracing.d.ts +5 -5
  131. package/dist/types/types/Products.d.ts +2 -2
  132. package/dist/types/types/ShareButton.d.ts +2 -2
  133. package/dist/types/types/ShareContentState.d.ts +3 -3
  134. package/dist/types/types/ShareDialogContainer.d.ts +1 -1
  135. package/dist/types/types/ShareDialogWithTrigger.d.ts +5 -5
  136. package/dist/types/types/ShareEntities.d.ts +6 -6
  137. package/dist/types/types/ShareForm.d.ts +1 -1
  138. package/dist/types/types/User.d.ts +3 -3
  139. package/dist/types/types/form.d.ts +1 -1
  140. package/dist/types/types/index.d.ts +1 -1
  141. package/dist/types/util/i18n-util.d.ts +2 -2
  142. package/dist/types-ts4.5/clients/AtlassianUrlShortenerClient.d.ts +16 -0
  143. package/dist/types-ts4.5/clients/ShareServiceClient.d.ts +25 -0
  144. package/dist/types-ts4.5/clients/index.d.ts +2 -0
  145. package/dist/types-ts4.5/components/CommentField.d.ts +6 -0
  146. package/dist/types-ts4.5/components/CopyLinkButton.d.ts +37 -0
  147. package/dist/types-ts4.5/components/ErrorBoundary.d.ts +4 -0
  148. package/dist/types-ts4.5/components/IntegrationButton.d.ts +10 -0
  149. package/dist/types-ts4.5/components/IntegrationForm.d.ts +11 -0
  150. package/dist/types-ts4.5/components/LazyShareForm/LazyShareForm.d.ts +20 -0
  151. package/dist/types-ts4.5/components/LazyShareForm/index.d.ts +1 -0
  152. package/dist/types-ts4.5/components/LazyShareForm/lazy.d.ts +4 -0
  153. package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +9 -0
  154. package/dist/types-ts4.5/components/ShareButton.d.ts +13 -0
  155. package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +57 -0
  156. package/dist/types-ts4.5/components/ShareDialogWithTrigger.d.ts +43 -0
  157. package/dist/types-ts4.5/components/ShareForm.d.ts +11 -0
  158. package/dist/types-ts4.5/components/ShareFormWrapper/ShareFormWrapper.d.ts +9 -0
  159. package/dist/types-ts4.5/components/ShareFormWrapper/index.d.ts +1 -0
  160. package/dist/types-ts4.5/components/ShareFormWrapper/styled.d.ts +10 -0
  161. package/dist/types-ts4.5/components/ShareHeader.d.ts +8 -0
  162. package/dist/types-ts4.5/components/SlackIcon.d.ts +3 -0
  163. package/dist/types-ts4.5/components/SplitButton.d.ts +19 -0
  164. package/dist/types-ts4.5/components/UserPickerField.d.ts +29 -0
  165. package/dist/types-ts4.5/components/analytics/analytics.d.ts +19 -0
  166. package/dist/types-ts4.5/components/analytics/ufoExperienceHelper.d.ts +2 -0
  167. package/dist/types-ts4.5/components/analytics/ufoExperiences.d.ts +3 -0
  168. package/dist/types-ts4.5/components/colorSlackIcon.d.ts +3 -0
  169. package/dist/types-ts4.5/components/localStorageUtils.d.ts +5 -0
  170. package/dist/types-ts4.5/components/monochromeSlackIcon.d.ts +3 -0
  171. package/dist/types-ts4.5/components/styles.d.ts +5 -0
  172. package/dist/types-ts4.5/components/utils.d.ts +19 -0
  173. package/dist/types-ts4.5/i18n/cs.d.ts +46 -0
  174. package/dist/types-ts4.5/i18n/da.d.ts +46 -0
  175. package/dist/types-ts4.5/i18n/de.d.ts +46 -0
  176. package/dist/types-ts4.5/i18n/en.d.ts +46 -0
  177. package/dist/types-ts4.5/i18n/en_GB.d.ts +46 -0
  178. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +43 -0
  179. package/dist/types-ts4.5/i18n/es.d.ts +46 -0
  180. package/dist/types-ts4.5/i18n/et.d.ts +30 -0
  181. package/dist/types-ts4.5/i18n/fi.d.ts +46 -0
  182. package/dist/types-ts4.5/i18n/fr.d.ts +46 -0
  183. package/dist/types-ts4.5/i18n/hu.d.ts +46 -0
  184. package/dist/types-ts4.5/i18n/index.d.ts +36 -0
  185. package/dist/types-ts4.5/i18n/is.d.ts +33 -0
  186. package/dist/types-ts4.5/i18n/it.d.ts +46 -0
  187. package/dist/types-ts4.5/i18n/ja.d.ts +46 -0
  188. package/dist/types-ts4.5/i18n/ko.d.ts +46 -0
  189. package/dist/types-ts4.5/i18n/languages.d.ts +33 -0
  190. package/dist/types-ts4.5/i18n/nb.d.ts +46 -0
  191. package/dist/types-ts4.5/i18n/nl.d.ts +46 -0
  192. package/dist/types-ts4.5/i18n/pl.d.ts +46 -0
  193. package/dist/types-ts4.5/i18n/pt_BR.d.ts +46 -0
  194. package/dist/types-ts4.5/i18n/pt_PT.d.ts +30 -0
  195. package/dist/types-ts4.5/i18n/ro.d.ts +33 -0
  196. package/dist/types-ts4.5/i18n/ru.d.ts +46 -0
  197. package/dist/types-ts4.5/i18n/sk.d.ts +30 -0
  198. package/dist/types-ts4.5/i18n/sv.d.ts +46 -0
  199. package/dist/types-ts4.5/i18n/th.d.ts +46 -0
  200. package/dist/types-ts4.5/i18n/tr.d.ts +46 -0
  201. package/dist/types-ts4.5/i18n/uk.d.ts +46 -0
  202. package/dist/types-ts4.5/i18n/vi.d.ts +46 -0
  203. package/dist/types-ts4.5/i18n/zh.d.ts +46 -0
  204. package/dist/types-ts4.5/i18n/zh_TW.d.ts +46 -0
  205. package/dist/types-ts4.5/i18n.d.ts +187 -0
  206. package/dist/types-ts4.5/index.d.ts +4 -0
  207. package/dist/types-ts4.5/types/Flag.d.ts +13 -0
  208. package/dist/types-ts4.5/types/OriginTracing.d.ts +17 -0
  209. package/dist/types-ts4.5/types/Products.d.ts +3 -0
  210. package/dist/types-ts4.5/types/ShareButton.d.ts +2 -0
  211. package/dist/types-ts4.5/types/ShareContentState.d.ts +14 -0
  212. package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +147 -0
  213. package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +45 -0
  214. package/dist/types-ts4.5/types/ShareEntities.d.ts +30 -0
  215. package/dist/types-ts4.5/types/ShareForm.d.ts +31 -0
  216. package/dist/types-ts4.5/types/User.d.ts +9 -0
  217. package/dist/types-ts4.5/types/form.d.ts +5 -0
  218. package/dist/types-ts4.5/types/index.d.ts +17 -0
  219. package/dist/types-ts4.5/util/i18n-util.d.ts +17 -0
  220. package/package.json +13 -5
  221. package/tmp/api-report-tmp.d.ts +319 -0
@@ -0,0 +1,319 @@
1
+ ## API Report File for "@atlaskit/share"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import type { Appearance } from '@atlaskit/button/types';
10
+ import type { IconProps } from '@atlaskit/icon';
11
+ import { jsx } from '@emotion/react';
12
+ import type { LoadOptions } from '@atlaskit/smart-user-picker';
13
+ import { OptionData } from '@atlaskit/smart-user-picker';
14
+ import type { Placement } from '@atlaskit/popper';
15
+ import { default as React_2 } from 'react';
16
+ import { ReactElement } from 'react';
17
+ import { TriggerProps } from '@atlaskit/popup';
18
+ import type { Value } from '@atlaskit/smart-user-picker';
19
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
20
+
21
+ // @public (undocumented)
22
+ export const ADMIN_NOTIFIED = "admin-notified";
23
+
24
+ // @public (undocumented)
25
+ type Comment_2 = {
26
+ format: 'adf' | 'plain_text';
27
+ value: string;
28
+ };
29
+ export { Comment_2 as Comment }
30
+
31
+ // @public (undocumented)
32
+ export type ConfigResponse = {
33
+ disableSharingToEmails?: boolean;
34
+ };
35
+
36
+ // @public (undocumented)
37
+ export type Content = {
38
+ ari: string;
39
+ link: string;
40
+ title: string;
41
+ type: string;
42
+ };
43
+
44
+ // @public (undocumented)
45
+ export class CopyLinkButton extends React_2.Component<Props, State> {
46
+ // (undocumented)
47
+ componentWillUnmount(): void;
48
+ // (undocumented)
49
+ render(): jsx.JSX.Element;
50
+ // (undocumented)
51
+ renderTriggerButton: (triggerProps: TriggerProps) => jsx.JSX.Element;
52
+ // (undocumented)
53
+ state: {
54
+ shouldShowCopiedMessage: boolean;
55
+ };
56
+ }
57
+
58
+ // @public (undocumented)
59
+ export type DialogContentState = {
60
+ users: OptionData[];
61
+ comment: Comment_2;
62
+ };
63
+
64
+ // @public (undocumented)
65
+ export type DialogPlacement = Placement;
66
+
67
+ // @public (undocumented)
68
+ export type Flag = {
69
+ appearance: 'success';
70
+ title: MessageDescriptor;
71
+ type: FlagType;
72
+ };
73
+
74
+ // @public (undocumented)
75
+ export type FlagType = 'admin-notified' | 'object-shared';
76
+
77
+ // @public (undocumented)
78
+ export type FormChildrenArgs<T> = {
79
+ formProps: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
80
+ getValues: () => T;
81
+ };
82
+
83
+ // @public (undocumented)
84
+ type Integration = {
85
+ type: string;
86
+ Icon: React.ComponentType;
87
+ Content: React.ComponentType<IntegrationContentProps>;
88
+ };
89
+
90
+ // @public (undocumented)
91
+ type IntegrationContentProps = {
92
+ onClose: () => void;
93
+ changeTab?: (index: TabType) => void;
94
+ };
95
+
96
+ // @public (undocumented)
97
+ type IntegrationMode = 'off' | 'split' | 'tabs';
98
+
99
+ // @public (undocumented)
100
+ export type KeysOfType<T, TProp> = {
101
+ [P in keyof T]: T[P] extends TProp ? P : never;
102
+ }[keyof T];
103
+
104
+ // @public (undocumented)
105
+ export type MessageDescriptor = {
106
+ id: string;
107
+ description: string;
108
+ defaultMessage: string;
109
+ };
110
+
111
+ // @public (undocumented)
112
+ export type MetaData = {
113
+ productId: string;
114
+ atlOriginId: string;
115
+ shareeAction?: 'edit' | 'view';
116
+ };
117
+
118
+ // @public (undocumented)
119
+ export const OBJECT_SHARED = "object-shared";
120
+
121
+ // @public (undocumented)
122
+ export type OriginAnalyticAttributes = {
123
+ hasGeneratedId: boolean;
124
+ };
125
+
126
+ // @public (undocumented)
127
+ export type OriginTracing = {
128
+ id: string;
129
+ addToUrl: (link: string) => string;
130
+ toAnalyticsAttributes: (attrs: OriginAnalyticAttributes) => OriginTracingForSubSequentEvents | OriginTracingWithIdGenerated;
131
+ };
132
+
133
+ // @public (undocumented)
134
+ export type OriginTracingFactory = () => OriginTracing;
135
+
136
+ // @public (undocumented)
137
+ export type OriginTracingForSubSequentEvents = {
138
+ originId: string;
139
+ originProduct: string;
140
+ };
141
+
142
+ // @public (undocumented)
143
+ export type OriginTracingWithIdGenerated = {
144
+ originIdGenerated: string;
145
+ originProduct: string;
146
+ };
147
+
148
+ // @public
149
+ export type ProductId = 'bitbucket' | 'confluence' | 'jira-addon' | 'jira-core' | 'jira-platform' | 'jira-polaris' | 'jira-portfolio' | 'jira-servicedesk' | 'jira-software' | 'jira-unknown' | 'trello';
150
+
151
+ // @public (undocumented)
152
+ export type ProductName = 'confluence' | 'jira';
153
+
154
+ // @public (undocumented)
155
+ type Props = {
156
+ onLinkCopy?: (link: string) => void;
157
+ link: string;
158
+ isDisabled?: boolean;
159
+ copyTooltipText?: string;
160
+ children?: ReactElement | string;
161
+ copyLinkButtonText: string;
162
+ copiedToClipboardText: string;
163
+ iconBefore?: ReactElement;
164
+ };
165
+
166
+ // @public (undocumented)
167
+ export type RenderCustomTriggerButton = (args: {
168
+ error?: ShareError;
169
+ isDisabled?: boolean;
170
+ isSelected?: boolean;
171
+ onClick: () => void;
172
+ }, triggerProps: TriggerProps) => React.ReactNode;
173
+
174
+ // @public (undocumented)
175
+ export type ShareButtonStyle = 'icon-only' | 'icon-with-text' | 'text-only';
176
+
177
+ // @public (undocumented)
178
+ interface ShareClient {
179
+ // (undocumented)
180
+ getConfig(cloudId: string): Promise<ConfigResponse>;
181
+ // (undocumented)
182
+ share(content: Content, recipients: User[], metadata: MetaData, comment?: Comment_2): Promise<ShareResponse>;
183
+ }
184
+
185
+ // @public (undocumented)
186
+ export type ShareContentState = {
187
+ users: User[];
188
+ comment?: Comment_2;
189
+ };
190
+
191
+ // @public (undocumented)
192
+ export const ShareDialogContainer: React_2.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "bottomMessage" | "cloudId" | "copyTooltipText" | "customFooter" | "dialogPlacement" | "dialogZIndex" | "formatCopyLink" | "integrationMode" | "isAutoOpenDialog" | "isBrowseUsersDisabled" | "isCopyDisabled" | "isPublicLink" | "loadUserOptions" | "loggedInAccountId" | "onDialogClose" | "onDialogOpen" | "onTriggerButtonClick" | "onUserSelectionChange" | "orgId" | "originTracingFactory" | "productId" | "renderCustomTriggerButton" | "shareAri" | "shareClient" | "shareContentType" | "shareFieldsFooter" | "shareFormHelperMessage" | "shareFormTitle" | "shareIntegrations" | "shareLink" | "shareTitle" | "shortLinkData" | "shouldCloseOnEscapePress" | "showFlags" | "tabIndex" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "urlShortenerClient" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
193
+ enableSmartUserPicker: boolean;
194
+ shareeAction: "edit" | "view";
195
+ product: string;
196
+ }, never>> & React_2.RefAttributes<any>>;
197
+
198
+ // @public (undocumented)
199
+ export type ShareDialogContainerProps = {
200
+ onTriggerButtonClick?: () => void;
201
+ onDialogOpen?: () => void;
202
+ onDialogClose?: () => void;
203
+ isAutoOpenDialog?: boolean;
204
+ shareClient?: ShareClient;
205
+ urlShortenerClient?: UrlShortenerClient;
206
+ shortLinkData?: ShortenRequest;
207
+ cloudId: string;
208
+ orgId?: string;
209
+ dialogPlacement?: DialogPlacement;
210
+ dialogZIndex?: number;
211
+ formatCopyLink?: (origin: OriginTracing, link: string) => string;
212
+ loadUserOptions?: LoadOptions;
213
+ originTracingFactory: OriginTracingFactory;
214
+ productId: ProductId;
215
+ renderCustomTriggerButton?: RenderCustomTriggerButton;
216
+ shareAri: string;
217
+ shareContentType: string;
218
+ shareLink?: string;
219
+ shareTitle: string;
220
+ shareFormTitle?: React.ReactNode;
221
+ shareFormHelperMessage?: string;
222
+ shouldCloseOnEscapePress?: boolean;
223
+ showFlags: (flags: Array<Flag>) => void;
224
+ enableSmartUserPicker?: boolean;
225
+ loggedInAccountId?: string;
226
+ triggerButtonAppearance?: Appearance;
227
+ triggerButtonIcon?: React.ComponentType<IconProps>;
228
+ triggerButtonStyle?: ShareButtonStyle;
229
+ triggerButtonTooltipPosition?: TooltipPosition;
230
+ triggerButtonTooltipText?: React.ReactNode;
231
+ bottomMessage?: React.ReactNode;
232
+ useUrlShortener?: boolean;
233
+ shareeAction?: 'edit' | 'view';
234
+ product?: ProductName;
235
+ customFooter?: React.ReactNode;
236
+ onUserSelectionChange?: (value: Value) => void;
237
+ shareFieldsFooter?: React.ReactNode;
238
+ isCopyDisabled?: boolean;
239
+ isPublicLink?: boolean;
240
+ integrationMode?: IntegrationMode;
241
+ shareIntegrations?: Array<Integration>;
242
+ tabIndex?: number;
243
+ copyTooltipText?: string;
244
+ isBrowseUsersDisabled?: boolean;
245
+ };
246
+
247
+ // @public (undocumented)
248
+ export type ShareError = {
249
+ message: string;
250
+ };
251
+
252
+ // @public (undocumented)
253
+ export type ShareRequest = (content: Content, recipients: User[], metadata: MetaData, comment?: Comment_2) => Promise<ShareResponse>;
254
+
255
+ // @public (undocumented)
256
+ export type ShareResponse = {
257
+ shareRequestId: string;
258
+ };
259
+
260
+ // @public (undocumented)
261
+ interface ShortenRequest {
262
+ // (undocumented)
263
+ cloudId?: string;
264
+ // (undocumented)
265
+ originId?: string;
266
+ // (undocumented)
267
+ params: Record<string, string>;
268
+ // (undocumented)
269
+ product: string;
270
+ // (undocumented)
271
+ type: string;
272
+ }
273
+
274
+ // @public (undocumented)
275
+ interface ShortenResponse {
276
+ // (undocumented)
277
+ shortUrl: string;
278
+ }
279
+
280
+ // @public (undocumented)
281
+ type State = {
282
+ shouldShowCopiedMessage: boolean;
283
+ };
284
+
285
+ // @public (undocumented)
286
+ enum TabType {
287
+ // (undocumented)
288
+ default = 0,
289
+ // (undocumented)
290
+ Slack = 1
291
+ }
292
+
293
+ // @public (undocumented)
294
+ export type TooltipPosition = 'bottom' | 'left' | 'mouse' | 'right' | 'top';
295
+
296
+ // @public (undocumented)
297
+ interface UrlShortenerClient {
298
+ // (undocumented)
299
+ shorten(data: ShortenRequest): Promise<ShortenResponse>;
300
+ }
301
+
302
+ // @public (undocumented)
303
+ export type User = UserWithEmail | UserWithId;
304
+
305
+ // @public (undocumented)
306
+ export type UserWithEmail = {
307
+ type: 'user';
308
+ email: string;
309
+ };
310
+
311
+ // @public (undocumented)
312
+ export type UserWithId = {
313
+ type: 'custom' | 'group' | 'team' | 'user';
314
+ id: string;
315
+ };
316
+
317
+ // (No @packageDocumentation comment for this package)
318
+
319
+ ```