@atlaskit/share 4.4.2 → 4.4.4
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 +126 -114
- package/dist/cjs/clients/AtlassianUrlShortenerClient.js +2 -3
- package/dist/cjs/clients/ShareServiceClient.js +7 -11
- package/dist/cjs/components/CommentField.js +2 -3
- package/dist/cjs/components/CopyLinkButton.js +5 -10
- package/dist/cjs/components/ErrorBoundary.js +1 -2
- package/dist/cjs/components/IntegrationButton.js +2 -3
- package/dist/cjs/components/IntegrationForm.js +3 -5
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +2 -3
- package/dist/cjs/components/LazyShareForm/lazy.js +2 -3
- package/dist/cjs/components/MessagesIntlProvider.js +3 -4
- package/dist/cjs/components/ShareButton.js +2 -4
- package/dist/cjs/components/ShareDialogContainer.js +5 -8
- package/dist/cjs/components/ShareDialogWithTrigger.js +6 -9
- package/dist/cjs/components/ShareForm.js +8 -11
- package/dist/cjs/components/ShareFormWrapper/ShareFormWrapper.js +1 -2
- package/dist/cjs/components/ShareFormWrapper/styled.js +3 -5
- package/dist/cjs/components/ShareHeader.js +3 -5
- package/dist/cjs/components/SlackIcon.js +1 -2
- package/dist/cjs/components/UserPickerField.js +3 -6
- package/dist/cjs/components/analytics/analytics.js +17 -31
- package/dist/cjs/components/analytics/ufoExperienceHelper.js +2 -3
- package/dist/cjs/components/analytics/ufoExperiences.js +3 -5
- package/dist/cjs/components/colorSlackIcon.js +1 -2
- package/dist/cjs/components/monochromeSlackIcon.js +1 -2
- package/dist/cjs/components/styles.js +4 -6
- package/dist/cjs/components/utils.js +7 -13
- package/dist/cjs/i18n/cs.js +2 -3
- package/dist/cjs/i18n/da.js +2 -3
- package/dist/cjs/i18n/de.js +2 -3
- package/dist/cjs/i18n/en.js +2 -3
- package/dist/cjs/i18n/en_GB.js +2 -3
- package/dist/cjs/i18n/en_ZZ.js +2 -3
- package/dist/cjs/i18n/es.js +2 -3
- package/dist/cjs/i18n/et.js +2 -3
- package/dist/cjs/i18n/fi.js +2 -3
- package/dist/cjs/i18n/fr.js +2 -3
- package/dist/cjs/i18n/hu.js +2 -3
- package/dist/cjs/i18n/is.js +2 -3
- package/dist/cjs/i18n/it.js +2 -3
- package/dist/cjs/i18n/ja.js +2 -3
- package/dist/cjs/i18n/ko.js +2 -3
- package/dist/cjs/i18n/languages.js +2 -3
- package/dist/cjs/i18n/nb.js +2 -3
- package/dist/cjs/i18n/nl.js +2 -3
- package/dist/cjs/i18n/pl.js +2 -3
- package/dist/cjs/i18n/pt_BR.js +2 -3
- package/dist/cjs/i18n/pt_PT.js +2 -3
- package/dist/cjs/i18n/ro.js +2 -3
- package/dist/cjs/i18n/ru.js +2 -3
- package/dist/cjs/i18n/sk.js +2 -3
- package/dist/cjs/i18n/sv.js +2 -3
- package/dist/cjs/i18n/th.js +2 -3
- package/dist/cjs/i18n/tr.js +2 -3
- package/dist/cjs/i18n/uk.js +2 -3
- package/dist/cjs/i18n/vi.js +2 -3
- package/dist/cjs/i18n/zh.js +2 -3
- package/dist/cjs/i18n/zh_TW.js +2 -3
- package/dist/cjs/i18n.js +2 -3
- package/dist/cjs/types/Flag.js +2 -4
- package/dist/cjs/types/ShareEntities.js +2 -3
- package/dist/cjs/util/i18n-util.js +2 -3
- package/dist/es2019/components/CopyLinkButton.js +2 -1
- package/dist/es2019/components/IntegrationButton.js +1 -1
- package/dist/es2019/components/IntegrationForm.js +3 -3
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +1 -1
- package/dist/es2019/components/ShareForm.js +2 -2
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/clients/ShareServiceClient.js +2 -2
- package/dist/esm/components/CopyLinkButton.js +1 -1
- package/dist/esm/components/IntegrationButton.js +1 -1
- package/dist/esm/components/IntegrationForm.js +1 -1
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +1 -1
- package/dist/esm/components/MessagesIntlProvider.js +2 -2
- package/dist/esm/components/ShareDialogContainer.js +2 -2
- package/dist/esm/components/ShareDialogWithTrigger.js +3 -3
- package/dist/esm/components/ShareForm.js +5 -5
- package/dist/esm/components/analytics/analytics.js +3 -3
- package/dist/esm/components/styles.js +2 -2
- package/package.json +10 -10
- package/dist/types-ts4.5/clients/AtlassianUrlShortenerClient.d.ts +0 -16
- package/dist/types-ts4.5/clients/ShareServiceClient.d.ts +0 -25
- package/dist/types-ts4.5/clients/index.d.ts +0 -2
- package/dist/types-ts4.5/components/CommentField.d.ts +0 -6
- package/dist/types-ts4.5/components/CopyLinkButton.d.ts +0 -37
- package/dist/types-ts4.5/components/ErrorBoundary.d.ts +0 -4
- package/dist/types-ts4.5/components/IntegrationButton.d.ts +0 -10
- package/dist/types-ts4.5/components/IntegrationForm.d.ts +0 -11
- package/dist/types-ts4.5/components/LazyShareForm/LazyShareForm.d.ts +0 -20
- package/dist/types-ts4.5/components/LazyShareForm/index.d.ts +0 -1
- package/dist/types-ts4.5/components/LazyShareForm/lazy.d.ts +0 -4
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +0 -9
- package/dist/types-ts4.5/components/ShareButton.d.ts +0 -14
- package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +0 -57
- package/dist/types-ts4.5/components/ShareDialogWithTrigger.d.ts +0 -46
- package/dist/types-ts4.5/components/ShareForm.d.ts +0 -11
- package/dist/types-ts4.5/components/ShareFormWrapper/ShareFormWrapper.d.ts +0 -9
- package/dist/types-ts4.5/components/ShareFormWrapper/index.d.ts +0 -1
- package/dist/types-ts4.5/components/ShareFormWrapper/styled.d.ts +0 -10
- package/dist/types-ts4.5/components/ShareHeader.d.ts +0 -8
- package/dist/types-ts4.5/components/SlackIcon.d.ts +0 -3
- package/dist/types-ts4.5/components/SplitButton.d.ts +0 -19
- package/dist/types-ts4.5/components/UserPickerField.d.ts +0 -30
- package/dist/types-ts4.5/components/analytics/analytics.d.ts +0 -19
- package/dist/types-ts4.5/components/analytics/ufoExperienceHelper.d.ts +0 -2
- package/dist/types-ts4.5/components/analytics/ufoExperiences.d.ts +0 -3
- package/dist/types-ts4.5/components/colorSlackIcon.d.ts +0 -3
- package/dist/types-ts4.5/components/monochromeSlackIcon.d.ts +0 -3
- package/dist/types-ts4.5/components/styles.d.ts +0 -5
- package/dist/types-ts4.5/components/utils.d.ts +0 -19
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -52
- package/dist/types-ts4.5/i18n/da.d.ts +0 -52
- package/dist/types-ts4.5/i18n/de.d.ts +0 -52
- package/dist/types-ts4.5/i18n/en.d.ts +0 -52
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -52
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -52
- package/dist/types-ts4.5/i18n/es.d.ts +0 -52
- package/dist/types-ts4.5/i18n/et.d.ts +0 -30
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -52
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -52
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -52
- package/dist/types-ts4.5/i18n/index.d.ts +0 -36
- package/dist/types-ts4.5/i18n/is.d.ts +0 -33
- package/dist/types-ts4.5/i18n/it.d.ts +0 -52
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -52
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -52
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -33
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -52
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -52
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -52
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -52
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -30
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -33
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -52
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -30
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -52
- package/dist/types-ts4.5/i18n/th.d.ts +0 -52
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -52
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -52
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -52
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -52
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -52
- package/dist/types-ts4.5/i18n.d.ts +0 -217
- package/dist/types-ts4.5/index.d.ts +0 -4
- package/dist/types-ts4.5/types/Flag.d.ts +0 -13
- package/dist/types-ts4.5/types/OriginTracing.d.ts +0 -17
- package/dist/types-ts4.5/types/Products.d.ts +0 -3
- package/dist/types-ts4.5/types/ShareButton.d.ts +0 -2
- package/dist/types-ts4.5/types/ShareContentState.d.ts +0 -17
- package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +0 -147
- package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +0 -45
- package/dist/types-ts4.5/types/ShareEntities.d.ts +0 -30
- package/dist/types-ts4.5/types/ShareForm.d.ts +0 -31
- package/dist/types-ts4.5/types/User.d.ts +0 -9
- package/dist/types-ts4.5/types/form.d.ts +0 -5
- package/dist/types-ts4.5/types/index.d.ts +0 -17
- package/dist/types-ts4.5/util/i18n-util.d.ts +0 -17
- package/tmp/api-report-tmp.d.ts +0 -322
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,322 +0,0 @@
|
|
|
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
|
-
errorCode?: string;
|
|
251
|
-
helpUrl?: string;
|
|
252
|
-
retryable: boolean;
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
// @public (undocumented)
|
|
256
|
-
export type ShareRequest = (content: Content, recipients: User[], metadata: MetaData, comment?: Comment_2) => Promise<ShareResponse>;
|
|
257
|
-
|
|
258
|
-
// @public (undocumented)
|
|
259
|
-
export type ShareResponse = {
|
|
260
|
-
shareRequestId: string;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
// @public (undocumented)
|
|
264
|
-
interface ShortenRequest {
|
|
265
|
-
// (undocumented)
|
|
266
|
-
cloudId?: string;
|
|
267
|
-
// (undocumented)
|
|
268
|
-
originId?: string;
|
|
269
|
-
// (undocumented)
|
|
270
|
-
params: Record<string, string>;
|
|
271
|
-
// (undocumented)
|
|
272
|
-
product: string;
|
|
273
|
-
// (undocumented)
|
|
274
|
-
type: string;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// @public (undocumented)
|
|
278
|
-
interface ShortenResponse {
|
|
279
|
-
// (undocumented)
|
|
280
|
-
shortUrl: string;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// @public (undocumented)
|
|
284
|
-
type State = {
|
|
285
|
-
shouldShowCopiedMessage: boolean;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
// @public (undocumented)
|
|
289
|
-
enum TabType {
|
|
290
|
-
// (undocumented)
|
|
291
|
-
default = 0,
|
|
292
|
-
// (undocumented)
|
|
293
|
-
Slack = 1
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// @public (undocumented)
|
|
297
|
-
export type TooltipPosition = 'bottom' | 'left' | 'mouse' | 'right' | 'top';
|
|
298
|
-
|
|
299
|
-
// @public (undocumented)
|
|
300
|
-
interface UrlShortenerClient {
|
|
301
|
-
// (undocumented)
|
|
302
|
-
shorten(data: ShortenRequest): Promise<ShortenResponse>;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
// @public (undocumented)
|
|
306
|
-
export type User = UserWithEmail | UserWithId;
|
|
307
|
-
|
|
308
|
-
// @public (undocumented)
|
|
309
|
-
export type UserWithEmail = {
|
|
310
|
-
type: 'user';
|
|
311
|
-
email: string;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
// @public (undocumented)
|
|
315
|
-
export type UserWithId = {
|
|
316
|
-
type: 'custom' | 'group' | 'team' | 'user';
|
|
317
|
-
id: string;
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
// (No @packageDocumentation comment for this package)
|
|
321
|
-
|
|
322
|
-
```
|