@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 6.16.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.16.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
|
|
14
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.16.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"declaration": true,
|
|
5
5
|
"target": "es5",
|
|
6
|
-
"composite": true,
|
|
7
6
|
"outDir": "../../../../../confluence/tsDist/@atlaskit__share",
|
|
8
|
-
"rootDir": "../"
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
9
|
},
|
|
10
10
|
"include": [
|
|
11
11
|
"../src/**/*.ts",
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
"path": "../../util-service-support/afm-cc/tsconfig.json"
|
|
97
97
|
}
|
|
98
98
|
]
|
|
99
|
-
}
|
|
99
|
+
}
|
|
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
13
13
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14
14
|
return _objectSpread({
|
|
15
15
|
packageName: "@atlaskit/share",
|
|
16
|
-
packageVersion: "6.16.
|
|
16
|
+
packageVersion: "6.16.5"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "6.16.
|
|
4
|
+
packageVersion: "6.16.5",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
6
6
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7
7
|
return _objectSpread({
|
|
8
8
|
packageName: "@atlaskit/share",
|
|
9
|
-
packageVersion: "6.16.
|
|
9
|
+
packageVersion: "6.16.5"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -5,8 +5,8 @@ export type ShareResponse = {
|
|
|
5
5
|
shareRequestId: string;
|
|
6
6
|
};
|
|
7
7
|
export interface ShareClient {
|
|
8
|
-
share: ShareRequest;
|
|
9
8
|
getConfig(cloudId: string): Promise<ConfigResponse>;
|
|
9
|
+
share: ShareRequest;
|
|
10
10
|
}
|
|
11
11
|
export type ConfigResponse = {
|
|
12
12
|
disableSharingToEmails?: boolean;
|
|
@@ -8,20 +8,20 @@ import { type TriggerProps } from '@atlaskit/popup';
|
|
|
8
8
|
export declare const AUTO_DISMISS_MS: number;
|
|
9
9
|
export declare const messageContainerStyle: import("@emotion/react").SerializedStyles;
|
|
10
10
|
type InputProps = {
|
|
11
|
-
text: string;
|
|
12
11
|
label: string;
|
|
12
|
+
text: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const HiddenInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
15
|
export type Props = {
|
|
16
|
-
onLinkCopy?: (link: string) => void;
|
|
17
|
-
link: string;
|
|
18
|
-
isDisabled?: boolean;
|
|
19
|
-
copyTooltipText?: string;
|
|
20
16
|
children?: string | ReactElement;
|
|
21
|
-
copyLinkButtonText: string;
|
|
22
17
|
copiedToClipboardText: string;
|
|
18
|
+
copyLinkButtonText: string;
|
|
19
|
+
copyTooltipText?: string;
|
|
23
20
|
iconBefore?: ReactElement;
|
|
21
|
+
isDisabled?: boolean;
|
|
24
22
|
isExtendedShareDialogEnabled?: boolean;
|
|
23
|
+
link: string;
|
|
24
|
+
onLinkCopy?: (link: string) => void;
|
|
25
25
|
};
|
|
26
26
|
export type State = {
|
|
27
27
|
shouldShowCopiedMessage: boolean;
|
|
@@ -2,20 +2,20 @@ import React, { type ReactElement } from 'react';
|
|
|
2
2
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
3
3
|
export declare const AUTO_DISMISS_MS: number;
|
|
4
4
|
type InputProps = {
|
|
5
|
-
text: string;
|
|
6
5
|
label: string;
|
|
6
|
+
text: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const HiddenInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export type Props = {
|
|
10
|
-
onLinkCopy?: (link: string) => void;
|
|
11
|
-
link: string;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
copyTooltipText?: string;
|
|
14
10
|
children?: string | ReactElement;
|
|
15
|
-
copyLinkButtonText: string;
|
|
16
11
|
copiedToClipboardText: string;
|
|
12
|
+
copyLinkButtonText: string;
|
|
13
|
+
copyTooltipText?: string;
|
|
17
14
|
iconBefore?: ReactElement;
|
|
15
|
+
isDisabled?: boolean;
|
|
18
16
|
isExtendedShareDialogEnabled?: boolean;
|
|
17
|
+
link: string;
|
|
18
|
+
onLinkCopy?: (link: string) => void;
|
|
19
19
|
};
|
|
20
20
|
export type State = {
|
|
21
21
|
shouldShowCopiedMessage: boolean;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
7
7
|
type Props = CustomThemeButtonProps & {
|
|
8
|
-
text: React.ReactNode;
|
|
9
8
|
IntegrationIcon: React.ComponentType;
|
|
9
|
+
text: React.ReactNode;
|
|
10
10
|
textColor?: string;
|
|
11
11
|
};
|
|
12
12
|
declare const IntegrationButton: React.FC<Props>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ButtonProps } from '@atlaskit/button/new';
|
|
3
3
|
type Props = {
|
|
4
|
-
text: React.ReactNode;
|
|
5
4
|
IntegrationIcon: React.ComponentType;
|
|
5
|
+
text: React.ReactNode;
|
|
6
6
|
} & Pick<ButtonProps, 'onClick'>;
|
|
7
7
|
declare const IntegrationButton: {
|
|
8
8
|
(props: Props): React.JSX.Element;
|
|
@@ -7,8 +7,8 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import { type ContentProps } from '../types';
|
|
8
8
|
export declare const formWrapperStyle: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export type IntegrationFormProps = {
|
|
10
|
+
changeTab?: (index: number) => void;
|
|
10
11
|
Content: React.ComponentType<ContentProps> | null;
|
|
11
12
|
onIntegrationClose?: () => void;
|
|
12
|
-
changeTab?: (index: number) => void;
|
|
13
13
|
};
|
|
14
14
|
export declare const IntegrationForm: ({ Content, onIntegrationClose, changeTab, }: IntegrationFormProps) => jsx.JSX.Element;
|
|
@@ -3,15 +3,15 @@ import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
|
3
3
|
import type { MenuType, ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
|
|
4
4
|
import { type IntegrationFormProps } from '../IntegrationForm';
|
|
5
5
|
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'productAttributes' | 'customHeader' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'additionalTabs' | 'builtInTabContentWidth' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected' | 'isSubmitShareDisabled' | 'additionalUserFields' | 'isExtendedShareDialogEnabled' | 'CustomSubmitButton'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
6
|
-
|
|
6
|
+
loadOptions?: LoadOptions;
|
|
7
7
|
onDismiss: (data: ShareData) => void;
|
|
8
|
+
onLinkCopy: () => void;
|
|
9
|
+
onMenuItemChange: (menuType: MenuType) => void;
|
|
8
10
|
onSubmit: (data: ShareData) => void;
|
|
9
11
|
onTabChange: (index: number) => void;
|
|
10
|
-
onMenuItemChange: (menuType: MenuType) => void;
|
|
11
|
-
loadOptions?: LoadOptions;
|
|
12
12
|
selectPortalRef: any;
|
|
13
|
-
showTitle: boolean;
|
|
14
13
|
setIsLoading: (isLoading: boolean) => void;
|
|
14
|
+
showTitle: boolean;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* A Share form content which is lazy-loaded.
|
|
@@ -3,15 +3,15 @@ import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
|
3
3
|
import type { MenuType, ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
|
|
4
4
|
import { type IntegrationFormProps } from '../IntegrationForm';
|
|
5
5
|
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'productAttributes' | 'customHeader' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'additionalTabs' | 'builtInTabContentWidth' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected' | 'isSubmitShareDisabled' | 'additionalUserFields' | 'isExtendedShareDialogEnabled' | 'CustomSubmitButton'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
6
|
-
|
|
6
|
+
loadOptions?: LoadOptions;
|
|
7
7
|
onDismiss: (data: ShareData) => void;
|
|
8
|
+
onLinkCopy: () => void;
|
|
9
|
+
onMenuItemChange: (menuType: MenuType) => void;
|
|
8
10
|
onSubmit: (data: ShareData) => void;
|
|
9
11
|
onTabChange: (index: number) => void;
|
|
10
|
-
onMenuItemChange: (menuType: MenuType) => void;
|
|
11
|
-
loadOptions?: LoadOptions;
|
|
12
12
|
selectPortalRef: any;
|
|
13
|
-
showTitle: boolean;
|
|
14
13
|
setIsLoading: (isLoading: boolean) => void;
|
|
14
|
+
showTitle: boolean;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* A Share form content which is lazy-loaded.
|
|
@@ -2,14 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { type Appearance } from '@atlaskit/button/types';
|
|
3
3
|
export type Props = {
|
|
4
4
|
appearance?: Appearance;
|
|
5
|
+
'aria-haspopup'?: boolean;
|
|
6
|
+
autoFocus?: boolean;
|
|
5
7
|
iconBefore?: React.ReactChild;
|
|
8
|
+
isDisabled?: boolean;
|
|
6
9
|
isLoading?: boolean;
|
|
7
10
|
isSelected?: boolean;
|
|
8
|
-
isDisabled?: boolean;
|
|
9
11
|
onClick: (e: React.MouseEvent<HTMLElement>) => void;
|
|
10
12
|
text?: React.ReactNode;
|
|
11
|
-
autoFocus?: boolean;
|
|
12
|
-
'aria-haspopup'?: boolean;
|
|
13
13
|
};
|
|
14
14
|
export declare const ShareButton: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
15
15
|
export default ShareButton;
|
|
@@ -6,9 +6,9 @@ import type { OriginTracing, OriginTracingFactory, ShareData, ShareDialogContain
|
|
|
6
6
|
export declare const defaultConfig: ConfigResponse;
|
|
7
7
|
export type State = {
|
|
8
8
|
config?: ConfigResponse;
|
|
9
|
+
currentPageUrl: string;
|
|
9
10
|
isFetchingConfig: boolean;
|
|
10
11
|
shareActionCount: number;
|
|
11
|
-
currentPageUrl: string;
|
|
12
12
|
shortenedCopyLink: null | string;
|
|
13
13
|
shortenedCopyLinkData?: ShortenRequest;
|
|
14
14
|
};
|
|
@@ -65,49 +65,49 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
|
|
|
65
65
|
additionalUserFields?: React.ReactNode;
|
|
66
66
|
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
67
67
|
CustomSubmitButton?: React.FC<import("../types").RenderCustomSubmitButtonProps> | undefined;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
shareClient?: ShareClient | undefined;
|
|
73
|
-
urlShortenerClient?: UrlShortenerClient | undefined;
|
|
74
|
-
shortLinkData?: ShortenRequest | undefined;
|
|
68
|
+
bottomMessage?: React.ReactNode;
|
|
69
|
+
customFooter?: React.ReactNode;
|
|
70
|
+
customHeader?: React.ReactNode;
|
|
71
|
+
customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
75
72
|
dialogPlacement?: import("../types").DialogPlacement | undefined;
|
|
76
73
|
dialogZIndex?: number | undefined;
|
|
77
74
|
formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
|
|
75
|
+
isAutoOpenDialog?: boolean | undefined;
|
|
76
|
+
isCopyDisabled?: boolean | undefined;
|
|
77
|
+
isMenuItemSelected?: boolean | undefined;
|
|
78
|
+
isSubmitShareDisabled?: boolean | undefined;
|
|
78
79
|
loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
|
|
80
|
+
onDialogClose?: (() => void) | undefined;
|
|
81
|
+
onDialogOpen?: (() => void) | undefined;
|
|
82
|
+
onSubmit?: ((formValues: ShareData) => void | Promise<void>) | undefined;
|
|
83
|
+
onTriggerButtonClick?: (() => void) | undefined;
|
|
79
84
|
originTracingFactory?: OriginTracingFactory | undefined;
|
|
85
|
+
product?: import("../types").ProductName | undefined;
|
|
80
86
|
productId?: import("../types").ProductId | undefined;
|
|
81
87
|
renderCustomTriggerButton?: import("../types").RenderCustomTriggerButton | undefined;
|
|
82
|
-
customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
83
88
|
shareAri?: string | undefined;
|
|
84
|
-
|
|
85
|
-
shareContentSubType?: string | undefined;
|
|
89
|
+
shareClient?: ShareClient | undefined;
|
|
86
90
|
shareContentId?: string | undefined;
|
|
91
|
+
shareContentSubType?: string | undefined;
|
|
92
|
+
shareContentType?: string | undefined;
|
|
93
|
+
shareeAction?: "view" | "edit" | undefined;
|
|
94
|
+
shareFieldsFooter?: React.ReactNode;
|
|
95
|
+
shareFormHelperMessage?: string | undefined;
|
|
96
|
+
shareFormTitle?: React.ReactNode;
|
|
87
97
|
shareLink?: string | undefined;
|
|
88
98
|
shareTitle?: string | undefined;
|
|
89
|
-
|
|
90
|
-
shareFormHelperMessage?: string | undefined;
|
|
99
|
+
shortLinkData?: ShortenRequest | undefined;
|
|
91
100
|
shouldCloseOnEscapePress?: boolean | undefined;
|
|
92
101
|
showFlags?: ((flags: Array<import("../types").Flag>) => void) | undefined;
|
|
102
|
+
tabIndex?: number | undefined;
|
|
93
103
|
triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
|
|
94
104
|
triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
95
105
|
triggerButtonStyle?: import("../types").ShareButtonStyle | undefined;
|
|
96
106
|
triggerButtonTooltipPosition?: import("../types").TooltipPosition | undefined;
|
|
97
107
|
triggerButtonTooltipText?: React.ReactNode;
|
|
98
|
-
|
|
108
|
+
urlShortenerClient?: UrlShortenerClient | undefined;
|
|
99
109
|
useUrlShortener?: boolean | undefined;
|
|
100
|
-
shareeAction?: "view" | "edit" | undefined;
|
|
101
|
-
product?: import("../types").ProductName | undefined;
|
|
102
|
-
customHeader?: React.ReactNode;
|
|
103
|
-
customFooter?: React.ReactNode;
|
|
104
|
-
shareFieldsFooter?: React.ReactNode;
|
|
105
|
-
isCopyDisabled?: boolean | undefined;
|
|
106
|
-
isMenuItemSelected?: boolean | undefined;
|
|
107
|
-
tabIndex?: number | undefined;
|
|
108
110
|
workspaceAri?: string | undefined;
|
|
109
|
-
isSubmitShareDisabled?: boolean | undefined;
|
|
110
|
-
onSubmit?: ((formValues: ShareData) => void | Promise<void>) | undefined;
|
|
111
111
|
} & {
|
|
112
112
|
createAnalyticsEvent?: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | undefined;
|
|
113
113
|
ref?: React.Ref<any> | undefined;
|
|
@@ -8,8 +8,8 @@ import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormPro
|
|
|
8
8
|
export declare const formWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const formFooterStyles: import("@emotion/react").SerializedStyles;
|
|
10
10
|
export type State = {
|
|
11
|
-
selectedTab: TabType;
|
|
12
11
|
selectedMenuItem: MenuType;
|
|
12
|
+
selectedTab: TabType;
|
|
13
13
|
};
|
|
14
14
|
export type InternalFormProps = FormChildrenArgs<ShareData> & ShareFormProps & WrappedComponentProps;
|
|
15
15
|
export declare const ShareForm: React.FC<ShareFormProps>;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
4
4
|
export type State = {
|
|
5
|
-
selectedTab: TabType;
|
|
6
5
|
selectedMenuItem: MenuType;
|
|
6
|
+
selectedTab: TabType;
|
|
7
7
|
};
|
|
8
8
|
export type InternalFormProps = FormChildrenArgs<ShareData> & ShareFormProps & WrappedComponentProps;
|
|
9
9
|
export declare const ShareForm: React.FC<ShareFormProps>;
|
|
@@ -2,12 +2,12 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
import { type ShareDialogWithTriggerProps } from '../../types';
|
|
3
3
|
import { type IntegrationMode } from '../../types/ShareEntities';
|
|
4
4
|
export type ShareFormWrapperProps = Pick<ShareDialogWithTriggerProps, 'shareFormTitle' | 'isExtendedShareDialogEnabled'> & {
|
|
5
|
-
shouldShowTitle?: boolean;
|
|
6
5
|
children?: ReactNode;
|
|
7
|
-
header?: ReactNode;
|
|
8
6
|
footer?: ReactNode;
|
|
7
|
+
header?: ReactNode;
|
|
9
8
|
integrationMode?: IntegrationMode;
|
|
10
9
|
isMenuItemSelected?: boolean;
|
|
10
|
+
shouldShowTitle?: boolean;
|
|
11
11
|
};
|
|
12
12
|
declare const ShareFormWrapper: ({ shareFormTitle, shouldShowTitle, children, header, footer, integrationMode, isMenuItemSelected, isExtendedShareDialogEnabled, }: ShareFormWrapperProps) => React.JSX.Element;
|
|
13
13
|
export default ShareFormWrapper;
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { type IntegrationMode } from '../../types/ShareEntities';
|
|
3
3
|
export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMenuItemSelected, isExtendedShareDialogEnabled, }: React.PropsWithChildren<{
|
|
4
4
|
integrationMode?: IntegrationMode;
|
|
5
|
-
isMenuItemSelected?: boolean;
|
|
6
5
|
isExtendedShareDialogEnabled?: boolean;
|
|
6
|
+
isMenuItemSelected?: boolean;
|
|
7
7
|
}>) => React.JSX.Element;
|
|
8
8
|
export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: {
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
-
label?: string;
|
|
11
10
|
isExtendedShareDialogEnabled?: boolean;
|
|
11
|
+
label?: string;
|
|
12
12
|
}) => React.JSX.Element;
|
|
@@ -7,8 +7,8 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import { type IntegrationMode } from '../../types/ShareEntities';
|
|
8
8
|
export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMenuItemSelected, isExtendedShareDialogEnabled, }: PropsWithChildren<{
|
|
9
9
|
integrationMode?: IntegrationMode;
|
|
10
|
-
isMenuItemSelected?: boolean;
|
|
11
10
|
isExtendedShareDialogEnabled?: boolean;
|
|
11
|
+
isMenuItemSelected?: boolean;
|
|
12
12
|
}>) => jsx.JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* Apply the same styling, as previous @atlaskit/inline-dialog had,
|
|
@@ -17,6 +17,6 @@ export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMe
|
|
|
17
17
|
* packages/design-system/inline-dialog/src/InlineDialog/styled.ts:20:3
|
|
18
18
|
*/
|
|
19
19
|
export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: PropsWithChildren<{
|
|
20
|
-
label?: string;
|
|
21
20
|
isExtendedShareDialogEnabled?: boolean;
|
|
21
|
+
label?: string;
|
|
22
22
|
}>) => jsx.JSX.Element;
|
|
@@ -7,16 +7,16 @@ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
|
7
7
|
import { type IconButtonProps } from '@atlaskit/button/new';
|
|
8
8
|
import { type DialogPlacement, type Integration } from '../types';
|
|
9
9
|
type SplitButtonProps = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
createAndFireEvent: (payload: AnalyticsEventPayload) => void;
|
|
11
|
+
dialogPlacement?: DialogPlacement;
|
|
12
|
+
dialogZIndex?: number;
|
|
12
13
|
handleCloseSplitButton: () => void;
|
|
14
|
+
handleOpenSplitButton: () => void;
|
|
13
15
|
isUsingSplitButton: boolean;
|
|
14
|
-
shareIntegrations: Array<Integration>;
|
|
15
16
|
onIntegrationClick: (integration: Integration) => void;
|
|
17
|
+
shareButton: React.ReactNode;
|
|
18
|
+
shareIntegrations: Array<Integration>;
|
|
16
19
|
triggerButtonAppearance?: IconButtonProps['appearance'];
|
|
17
|
-
dialogZIndex?: number;
|
|
18
|
-
dialogPlacement?: DialogPlacement;
|
|
19
|
-
createAndFireEvent: (payload: AnalyticsEventPayload) => void;
|
|
20
20
|
};
|
|
21
21
|
export default function SplitButton({ shareButton, handleOpenSplitButton, handleCloseSplitButton, isUsingSplitButton, shareIntegrations, onIntegrationClick, triggerButtonAppearance, createAndFireEvent, }: SplitButtonProps): JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -4,25 +4,25 @@ import { type LoadOptions, type OptionData, type Props as SmartUserPickerProps,
|
|
|
4
4
|
import { type ConfigResponse, type ProductName, type ShareError, type UserPickerOptions } from '../types';
|
|
5
5
|
export declare const REQUIRED = "REQUIRED";
|
|
6
6
|
export type Props = {
|
|
7
|
-
|
|
8
|
-
defaultValue?: OptionData[];
|
|
7
|
+
cloudId?: string;
|
|
9
8
|
config?: ConfigResponse;
|
|
10
|
-
|
|
11
|
-
product: ProductName;
|
|
12
|
-
onInputChange?: (query?: string, sessionId?: string) => void;
|
|
9
|
+
defaultValue?: OptionData[];
|
|
13
10
|
enableSmartUserPicker?: boolean;
|
|
11
|
+
helperMessage?: string;
|
|
12
|
+
isBrowseUsersDisabled?: boolean;
|
|
13
|
+
isExtendedShareDialogEnabled?: boolean;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
isPublicLink?: boolean;
|
|
16
|
+
loadOptions?: LoadOptions;
|
|
14
17
|
loggedInAccountId?: string;
|
|
15
|
-
cloudId?: string;
|
|
16
18
|
onChange?: (value: Value) => void;
|
|
17
|
-
|
|
18
|
-
isPublicLink?: boolean;
|
|
19
|
-
helperMessage?: string;
|
|
19
|
+
onInputChange?: (query?: string, sessionId?: string) => void;
|
|
20
20
|
orgId?: string;
|
|
21
|
-
|
|
21
|
+
product: ProductName;
|
|
22
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
23
|
+
selectPortalRef?: React.Ref<HTMLDivElement>;
|
|
22
24
|
shareError?: ShareError;
|
|
23
25
|
userPickerOptions?: UserPickerOptions;
|
|
24
|
-
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
25
|
-
isExtendedShareDialogEnabled?: boolean;
|
|
26
26
|
};
|
|
27
27
|
export declare class UserPickerFieldComponent extends React.Component<WrappedComponentProps & Props> {
|
|
28
28
|
private loadOptions;
|
|
@@ -22,37 +22,37 @@ export declare const shareConfigurationLoaded: (attributes: {
|
|
|
22
22
|
durationMs: number;
|
|
23
23
|
}) => AnalyticsEventPayload;
|
|
24
24
|
export declare const shareConfigurationLoadFailed: (attributes: {
|
|
25
|
-
statusCode: string | number | undefined;
|
|
26
25
|
durationMs: number;
|
|
26
|
+
statusCode: string | number | undefined;
|
|
27
27
|
}) => AnalyticsEventPayload;
|
|
28
28
|
export declare const copyLinkButtonClicked: ({ start, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, ari, }: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
shareContentSubType?: string;
|
|
29
|
+
ari?: string;
|
|
30
|
+
isPublicLink?: boolean;
|
|
32
31
|
shareContentId?: string;
|
|
32
|
+
shareContentSubType?: string;
|
|
33
|
+
shareContentType?: string;
|
|
33
34
|
shareOrigin?: OriginTracing;
|
|
34
|
-
|
|
35
|
-
ari?: string;
|
|
35
|
+
start: number;
|
|
36
36
|
}) => AnalyticsEventPayload;
|
|
37
37
|
export declare const formShareSubmitted: ({ start, data, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, }: {
|
|
38
|
-
start: number;
|
|
39
38
|
data: DialogContentState;
|
|
40
|
-
|
|
41
|
-
shareContentSubType?: string;
|
|
39
|
+
isPublicLink?: boolean;
|
|
42
40
|
shareContentId?: string;
|
|
41
|
+
shareContentSubType?: string;
|
|
42
|
+
shareContentType?: string;
|
|
43
43
|
shareOrigin?: OriginTracing;
|
|
44
|
-
|
|
44
|
+
start: number;
|
|
45
45
|
}) => AnalyticsEventPayload;
|
|
46
46
|
export declare const jiraPageSharedEvent: ({ start, data, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, productAttributes, loggedInAccountId, source, actionSubjectId, }: {
|
|
47
|
-
|
|
47
|
+
actionSubjectId?: string;
|
|
48
48
|
data: DialogContentState;
|
|
49
|
-
shareContentType?: string;
|
|
50
|
-
shareContentSubType?: string;
|
|
51
|
-
shareContentId?: string;
|
|
52
|
-
shareOrigin?: OriginTracing;
|
|
53
49
|
isPublicLink?: boolean;
|
|
54
|
-
productAttributes?: any;
|
|
55
50
|
loggedInAccountId?: string;
|
|
51
|
+
productAttributes?: any;
|
|
52
|
+
shareContentId?: string;
|
|
53
|
+
shareContentSubType?: string;
|
|
54
|
+
shareContentType?: string;
|
|
55
|
+
shareOrigin?: OriginTracing;
|
|
56
56
|
source?: string;
|
|
57
|
-
|
|
57
|
+
start: number;
|
|
58
58
|
}) => AnalyticsEventPayload;
|
|
@@ -2,9 +2,9 @@ export declare const OBJECT_SHARED = "object-shared";
|
|
|
2
2
|
export declare const ADMIN_NOTIFIED = "admin-notified";
|
|
3
3
|
export type FlagType = 'object-shared' | 'admin-notified';
|
|
4
4
|
export type MessageDescriptor = {
|
|
5
|
-
id: string;
|
|
6
|
-
description: string;
|
|
7
5
|
defaultMessage: string;
|
|
6
|
+
description: string;
|
|
7
|
+
id: string;
|
|
8
8
|
};
|
|
9
9
|
export type Flag = {
|
|
10
10
|
appearance: 'success';
|
|
@@ -10,8 +10,8 @@ export type OriginAnalyticAttributes = {
|
|
|
10
10
|
hasGeneratedId: boolean;
|
|
11
11
|
};
|
|
12
12
|
export type OriginTracing = {
|
|
13
|
-
id: string;
|
|
14
13
|
addToUrl: (link: string) => string;
|
|
14
|
+
id: string;
|
|
15
15
|
toAnalyticsAttributes: (attrs: OriginAnalyticAttributes) => OriginTracingWithIdGenerated | OriginTracingForSubSequentEvents;
|
|
16
16
|
};
|
|
17
17
|
export type OriginTracingFactory = () => OriginTracing;
|
|
@@ -2,17 +2,17 @@ import { type OptionData } from '@atlaskit/smart-user-picker';
|
|
|
2
2
|
import { type Comment } from './ShareEntities';
|
|
3
3
|
import { type User } from './User';
|
|
4
4
|
export type ShareContentState = {
|
|
5
|
-
users: User[];
|
|
6
5
|
comment?: Comment;
|
|
6
|
+
users: User[];
|
|
7
7
|
};
|
|
8
8
|
export type ShareError = {
|
|
9
|
-
message: string;
|
|
10
9
|
errorCode?: string;
|
|
11
10
|
helpUrl?: string;
|
|
11
|
+
message: string;
|
|
12
12
|
retryable: boolean;
|
|
13
13
|
};
|
|
14
14
|
export type ShareData = {
|
|
15
|
-
users: OptionData[];
|
|
16
|
-
comment: Comment;
|
|
17
15
|
[key: string]: unknown;
|
|
16
|
+
comment: Comment;
|
|
17
|
+
users: OptionData[];
|
|
18
18
|
};
|