@atlaskit/share 6.16.4 → 6.16.6
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 +14 -0
- package/afm-cc/tsconfig.json +3 -3
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/clients/AtlassianUrlShortenerClient.d.ts +2 -2
- package/dist/types/clients/ShareServiceClient.d.ts +1 -1
- package/dist/types/components/CopyLinkButton.d.ts +6 -6
- package/dist/types/components/CopyLinkButtonNext.d.ts +6 -6
- package/dist/types/components/IntegrationButton.d.ts +1 -1
- package/dist/types/components/IntegrationButtonNext.d.ts +1 -1
- package/dist/types/components/IntegrationForm.d.ts +1 -1
- package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +4 -4
- package/dist/types/components/LazyShareForm/LazyShareFormNext.d.ts +4 -4
- package/dist/types/components/ShareButton.d.ts +3 -3
- package/dist/types/components/ShareDialogContainer.d.ts +24 -24
- package/dist/types/components/ShareForm.d.ts +1 -1
- package/dist/types/components/ShareFormNext.d.ts +1 -1
- package/dist/types/components/ShareFormWrapper/ShareFormWrapper.d.ts +2 -2
- package/dist/types/components/ShareFormWrapper/compiled.d.ts +2 -2
- package/dist/types/components/ShareFormWrapper/styled.d.ts +2 -2
- package/dist/types/components/SplitButton.d.ts +6 -6
- package/dist/types/components/UserPickerField.d.ts +12 -12
- package/dist/types/components/analytics/analytics.d.ts +17 -17
- package/dist/types/types/Flag.d.ts +2 -2
- package/dist/types/types/OriginTracing.d.ts +1 -1
- package/dist/types/types/ShareContentState.d.ts +4 -4
- package/dist/types/types/ShareDialogContainer.d.ts +80 -80
- package/dist/types/types/ShareDialogWithTrigger.d.ts +12 -12
- package/dist/types/types/ShareEntities.d.ts +5 -5
- package/dist/types/types/ShareForm.d.ts +15 -15
- package/dist/types/types/User.d.ts +2 -2
- package/dist/types/types/UserPickerOptions.d.ts +12 -12
- package/dist/types-ts4.5/clients/AtlassianUrlShortenerClient.d.ts +2 -2
- package/dist/types-ts4.5/clients/ShareServiceClient.d.ts +1 -1
- package/dist/types-ts4.5/components/CopyLinkButton.d.ts +6 -6
- package/dist/types-ts4.5/components/CopyLinkButtonNext.d.ts +6 -6
- package/dist/types-ts4.5/components/IntegrationButton.d.ts +1 -1
- package/dist/types-ts4.5/components/IntegrationButtonNext.d.ts +1 -1
- package/dist/types-ts4.5/components/IntegrationForm.d.ts +1 -1
- package/dist/types-ts4.5/components/LazyShareForm/LazyShareForm.d.ts +4 -4
- package/dist/types-ts4.5/components/LazyShareForm/LazyShareFormNext.d.ts +4 -4
- package/dist/types-ts4.5/components/ShareButton.d.ts +3 -3
- package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +24 -24
- package/dist/types-ts4.5/components/ShareForm.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareFormNext.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareFormWrapper/ShareFormWrapper.d.ts +2 -2
- package/dist/types-ts4.5/components/ShareFormWrapper/compiled.d.ts +2 -2
- package/dist/types-ts4.5/components/ShareFormWrapper/styled.d.ts +2 -2
- package/dist/types-ts4.5/components/SplitButton.d.ts +6 -6
- package/dist/types-ts4.5/components/UserPickerField.d.ts +12 -12
- package/dist/types-ts4.5/components/analytics/analytics.d.ts +17 -17
- package/dist/types-ts4.5/types/Flag.d.ts +2 -2
- package/dist/types-ts4.5/types/OriginTracing.d.ts +1 -1
- package/dist/types-ts4.5/types/ShareContentState.d.ts +4 -4
- package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +80 -80
- package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +12 -12
- package/dist/types-ts4.5/types/ShareEntities.d.ts +5 -5
- package/dist/types-ts4.5/types/ShareForm.d.ts +15 -15
- package/dist/types-ts4.5/types/User.d.ts +2 -2
- package/dist/types-ts4.5/types/UserPickerOptions.d.ts +12 -12
- package/package.json +7 -7
|
@@ -6,30 +6,30 @@ import type { ShareDialogContainerProps } from './ShareDialogContainer';
|
|
|
6
6
|
import { type MenuType } from './ShareEntities';
|
|
7
7
|
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'additionalTabs' | 'builtInTabContentWidth' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'productAttributes' | 'additionalUserFields' | 'isExtendedShareDialogEnabled' | 'CustomSubmitButton'> & {
|
|
8
8
|
config?: ConfigResponse;
|
|
9
|
-
|
|
9
|
+
Content?: React.ReactNode;
|
|
10
10
|
copyLink: string;
|
|
11
|
-
isSharing?: boolean;
|
|
12
|
-
shareError?: ShareError;
|
|
13
|
-
submitButtonLabel?: React.ReactNode;
|
|
14
|
-
title?: React.ReactNode;
|
|
15
|
-
showTitle?: boolean;
|
|
16
|
-
helperMessage?: string;
|
|
17
11
|
defaultValue?: ShareData;
|
|
18
|
-
product?: ProductName;
|
|
19
12
|
fieldsFooter?: React.ReactNode;
|
|
20
|
-
|
|
13
|
+
handleCloseDialog?: () => void;
|
|
14
|
+
helperMessage?: string;
|
|
21
15
|
isDisabled?: boolean;
|
|
16
|
+
isFetchingConfig?: boolean;
|
|
17
|
+
isSharing?: boolean;
|
|
22
18
|
isSplitButton?: boolean;
|
|
19
|
+
isSubmitShareDisabled?: boolean;
|
|
23
20
|
loadOptions?: LoadOptions;
|
|
21
|
+
onDismiss?: (data: ShareData) => void;
|
|
24
22
|
onLinkCopy?: (link: string) => void;
|
|
23
|
+
onMenuItemChange?: (menuItem: MenuType) => void;
|
|
25
24
|
onSubmit?: (data: ShareData) => void;
|
|
26
|
-
onDismiss?: (data: ShareData) => void;
|
|
27
|
-
onUserInputChange?: (query?: string, sessionId?: string) => void;
|
|
28
25
|
onTabChange?: (index: number) => void;
|
|
29
|
-
|
|
26
|
+
onUserInputChange?: (query?: string, sessionId?: string) => void;
|
|
27
|
+
product?: ProductName;
|
|
30
28
|
selectedMenuItem?: number;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
selectPortalRef?: React.Ref<HTMLDivElement>;
|
|
30
|
+
shareError?: ShareError;
|
|
31
|
+
showTitle?: boolean;
|
|
32
|
+
submitButtonLabel?: React.ReactNode;
|
|
33
|
+
title?: React.ReactNode;
|
|
34
34
|
};
|
|
35
35
|
export type RenderCustomSubmitButtonProps = Pick<ShareFormProps, 'isSharing' | 'isDisabled' | 'isSubmitShareDisabled' | 'isPublicLink' | 'shareError' | 'integrationMode' | 'submitButtonLabel'>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type UserWithId = {
|
|
2
|
-
type: 'user' | 'group' | 'team' | 'custom' | 'external_user';
|
|
3
2
|
id: string;
|
|
3
|
+
type: 'user' | 'group' | 'team' | 'custom' | 'external_user';
|
|
4
4
|
};
|
|
5
5
|
export type UserWithEmail = {
|
|
6
|
-
type: 'user' | 'external_user';
|
|
7
6
|
email: string;
|
|
7
|
+
type: 'user' | 'external_user';
|
|
8
8
|
};
|
|
9
9
|
export type User = UserWithId | UserWithEmail;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
import type { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
|
|
3
3
|
export type UserPickerOptions = Pick<SmartUserPickerProps, 'onFocus' | 'header' | 'includeNonLicensedUsers'> & {
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* If message is undefined, default message will be displayed.
|
|
4
|
+
/**
|
|
5
|
+
* Label message for the user picker.
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
inputValue: string;
|
|
10
|
-
isPublicLink?: boolean;
|
|
11
|
-
allowEmail?: boolean;
|
|
12
|
-
}) => string | null | React.ReactNode) | null;
|
|
7
|
+
getLabelMessage?: (allowEmail?: boolean, isBrowseUsersDisabled?: boolean) => MessageDescriptor;
|
|
13
8
|
/**
|
|
14
9
|
* Placeholder message for the user picker.
|
|
15
10
|
*/
|
|
16
11
|
getPlaceholderMessage?: (allowEmail?: boolean, isBrowseUsersDisabled?: boolean) => MessageDescriptor;
|
|
17
|
-
/**
|
|
18
|
-
* Label message for the user picker.
|
|
19
|
-
*/
|
|
20
|
-
getLabelMessage?: (allowEmail?: boolean, isBrowseUsersDisabled?: boolean) => MessageDescriptor;
|
|
21
12
|
/**
|
|
22
13
|
* Message to be shown when required validation is shown in the user picker.
|
|
23
14
|
*/
|
|
24
15
|
getRequiredMessage?: (allowEmail?: boolean, isBrowseUsersDisabled?: boolean) => MessageDescriptor;
|
|
16
|
+
/** Message to be shown when the menu is open but no options are provided.
|
|
17
|
+
* If message is null, no message will be displayed.
|
|
18
|
+
* If message is undefined, default message will be displayed.
|
|
19
|
+
*/
|
|
20
|
+
noOptionsMessageHandler?: ((value: {
|
|
21
|
+
allowEmail?: boolean;
|
|
22
|
+
inputValue: string;
|
|
23
|
+
isPublicLink?: boolean;
|
|
24
|
+
}) => string | null | React.ReactNode) | null;
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "6.16.
|
|
3
|
+
"version": "6.16.6",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
"@atlaskit/button": "^23.4.0",
|
|
42
42
|
"@atlaskit/css": "^0.12.0",
|
|
43
43
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
44
|
-
"@atlaskit/form": "^12.
|
|
44
|
+
"@atlaskit/form": "^12.2.0",
|
|
45
45
|
"@atlaskit/heading": "^5.2.0",
|
|
46
|
-
"@atlaskit/icon": "^28.
|
|
46
|
+
"@atlaskit/icon": "^28.1.0",
|
|
47
47
|
"@atlaskit/link": "^3.2.0",
|
|
48
48
|
"@atlaskit/menu": "^8.3.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/popper": "^7.1.0",
|
|
51
51
|
"@atlaskit/popup": "^4.3.0",
|
|
52
52
|
"@atlaskit/portal": "^5.1.0",
|
|
53
|
-
"@atlaskit/primitives": "^14.
|
|
54
|
-
"@atlaskit/smart-user-picker": "^8.
|
|
53
|
+
"@atlaskit/primitives": "^14.12.0",
|
|
54
|
+
"@atlaskit/smart-user-picker": "^8.2.0",
|
|
55
55
|
"@atlaskit/spinner": "^19.0.0",
|
|
56
56
|
"@atlaskit/tabs": "^18.1.0",
|
|
57
57
|
"@atlaskit/textarea": "^8.0.0",
|
|
58
|
-
"@atlaskit/theme": "^
|
|
59
|
-
"@atlaskit/tokens": "^6.
|
|
58
|
+
"@atlaskit/theme": "^20.0.0",
|
|
59
|
+
"@atlaskit/tokens": "^6.1.0",
|
|
60
60
|
"@atlaskit/tooltip": "^20.4.0",
|
|
61
61
|
"@atlaskit/ufo": "^0.4.0",
|
|
62
62
|
"@atlaskit/user-picker": "^11.6.0",
|