@atlaskit/share 6.16.3 → 6.16.5

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 (72) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-cc/tsconfig.json +2 -2
  3. package/afm-townsquare/tsconfig.json +99 -0
  4. package/clients/package.json +1 -1
  5. package/copy-link-button/package.json +1 -1
  6. package/dist/cjs/components/ShareDialogContainer.js +18 -5
  7. package/dist/cjs/components/analytics/analytics.js +12 -2
  8. package/dist/es2019/components/ShareDialogContainer.js +14 -1
  9. package/dist/es2019/components/analytics/analytics.js +9 -1
  10. package/dist/esm/components/ShareDialogContainer.js +19 -6
  11. package/dist/esm/components/analytics/analytics.js +11 -1
  12. package/dist/types/clients/AtlassianUrlShortenerClient.d.ts +2 -2
  13. package/dist/types/clients/ShareServiceClient.d.ts +1 -1
  14. package/dist/types/components/CopyLinkButton.d.ts +6 -6
  15. package/dist/types/components/CopyLinkButtonNext.d.ts +6 -6
  16. package/dist/types/components/ErrorBoundary.d.ts +1 -1
  17. package/dist/types/components/IntegrationButton.d.ts +1 -1
  18. package/dist/types/components/IntegrationButtonNext.d.ts +1 -1
  19. package/dist/types/components/IntegrationForm.d.ts +1 -1
  20. package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +4 -4
  21. package/dist/types/components/LazyShareForm/LazyShareFormNext.d.ts +4 -4
  22. package/dist/types/components/ShareButton.d.ts +3 -3
  23. package/dist/types/components/ShareDialogContainer.d.ts +28 -28
  24. package/dist/types/components/ShareForm.d.ts +1 -1
  25. package/dist/types/components/ShareFormNext.d.ts +1 -1
  26. package/dist/types/components/ShareFormWrapper/ShareFormWrapper.d.ts +2 -2
  27. package/dist/types/components/ShareFormWrapper/compiled.d.ts +5 -5
  28. package/dist/types/components/ShareFormWrapper/styled.d.ts +5 -5
  29. package/dist/types/components/SplitButton.d.ts +6 -6
  30. package/dist/types/components/UserPickerField.d.ts +12 -12
  31. package/dist/types/components/analytics/analytics.d.ts +29 -21
  32. package/dist/types/types/Flag.d.ts +2 -2
  33. package/dist/types/types/OriginTracing.d.ts +1 -1
  34. package/dist/types/types/ShareContentState.d.ts +4 -4
  35. package/dist/types/types/ShareDialogContainer.d.ts +80 -81
  36. package/dist/types/types/ShareDialogWithTrigger.d.ts +12 -13
  37. package/dist/types/types/ShareEntities.d.ts +5 -6
  38. package/dist/types/types/ShareForm.d.ts +15 -16
  39. package/dist/types/types/User.d.ts +2 -2
  40. package/dist/types/types/UserPickerOptions.d.ts +12 -13
  41. package/dist/types/types/form.d.ts +0 -1
  42. package/dist/types-ts4.5/clients/AtlassianUrlShortenerClient.d.ts +2 -2
  43. package/dist/types-ts4.5/clients/ShareServiceClient.d.ts +1 -1
  44. package/dist/types-ts4.5/components/CopyLinkButton.d.ts +6 -6
  45. package/dist/types-ts4.5/components/CopyLinkButtonNext.d.ts +6 -6
  46. package/dist/types-ts4.5/components/ErrorBoundary.d.ts +1 -1
  47. package/dist/types-ts4.5/components/IntegrationButton.d.ts +1 -1
  48. package/dist/types-ts4.5/components/IntegrationButtonNext.d.ts +1 -1
  49. package/dist/types-ts4.5/components/IntegrationForm.d.ts +1 -1
  50. package/dist/types-ts4.5/components/LazyShareForm/LazyShareForm.d.ts +4 -4
  51. package/dist/types-ts4.5/components/LazyShareForm/LazyShareFormNext.d.ts +4 -4
  52. package/dist/types-ts4.5/components/ShareButton.d.ts +3 -3
  53. package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +28 -28
  54. package/dist/types-ts4.5/components/ShareForm.d.ts +1 -1
  55. package/dist/types-ts4.5/components/ShareFormNext.d.ts +1 -1
  56. package/dist/types-ts4.5/components/ShareFormWrapper/ShareFormWrapper.d.ts +2 -2
  57. package/dist/types-ts4.5/components/ShareFormWrapper/compiled.d.ts +5 -5
  58. package/dist/types-ts4.5/components/ShareFormWrapper/styled.d.ts +5 -5
  59. package/dist/types-ts4.5/components/SplitButton.d.ts +6 -6
  60. package/dist/types-ts4.5/components/UserPickerField.d.ts +12 -12
  61. package/dist/types-ts4.5/components/analytics/analytics.d.ts +29 -21
  62. package/dist/types-ts4.5/types/Flag.d.ts +2 -2
  63. package/dist/types-ts4.5/types/OriginTracing.d.ts +1 -1
  64. package/dist/types-ts4.5/types/ShareContentState.d.ts +4 -4
  65. package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +80 -81
  66. package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +12 -13
  67. package/dist/types-ts4.5/types/ShareEntities.d.ts +5 -6
  68. package/dist/types-ts4.5/types/ShareForm.d.ts +15 -16
  69. package/dist/types-ts4.5/types/User.d.ts +2 -2
  70. package/dist/types-ts4.5/types/UserPickerOptions.d.ts +12 -13
  71. package/dist/types-ts4.5/types/form.d.ts +0 -1
  72. package/package.json +11 -8
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type Content = {
3
2
  ari: string;
4
3
  link: string;
@@ -11,13 +10,13 @@ export type Comment = {
11
10
  value: string;
12
11
  };
13
12
  export type MetaData = {
14
- productId: string;
15
13
  atlOriginId: string;
14
+ productId: string;
16
15
  shareeAction?: 'view' | 'edit';
17
16
  };
18
17
  export type ContentProps = {
19
- onClose: () => void;
20
18
  changeTab?: (index: TabType) => void;
19
+ onClose: () => void;
21
20
  };
22
21
  export declare enum TabType {
23
22
  default = 0,
@@ -25,12 +24,12 @@ export declare enum TabType {
25
24
  }
26
25
  export type MenuType = 'none' | 'default' | 'Slack';
27
26
  export type Integration = {
28
- type: string;
29
- Icon: React.ComponentType;
30
27
  Content: React.ComponentType<ContentProps>;
28
+ Icon: React.ComponentType;
29
+ type: string;
31
30
  };
32
31
  export type IntegrationMode = 'tabs' | 'split' | 'menu' | 'off';
33
32
  export type AdditionalTab = {
34
- label: string;
35
33
  Content: React.ComponentType<ContentProps>;
34
+ label: string;
36
35
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { LoadOptions } from '@atlaskit/smart-user-picker';
3
2
  import type { ConfigResponse } from '../clients/ShareServiceClient';
4
3
  import type { ProductName } from './Products';
@@ -7,30 +6,30 @@ import type { ShareDialogContainerProps } from './ShareDialogContainer';
7
6
  import { type MenuType } from './ShareEntities';
8
7
  export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'additionalTabs' | 'builtInTabContentWidth' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'productAttributes' | 'additionalUserFields' | 'isExtendedShareDialogEnabled' | 'CustomSubmitButton'> & {
9
8
  config?: ConfigResponse;
10
- isFetchingConfig?: boolean;
9
+ Content?: React.ReactNode;
11
10
  copyLink: string;
12
- isSharing?: boolean;
13
- shareError?: ShareError;
14
- submitButtonLabel?: React.ReactNode;
15
- title?: React.ReactNode;
16
- showTitle?: boolean;
17
- helperMessage?: string;
18
11
  defaultValue?: ShareData;
19
- product?: ProductName;
20
12
  fieldsFooter?: React.ReactNode;
21
- selectPortalRef?: React.Ref<HTMLDivElement>;
13
+ handleCloseDialog?: () => void;
14
+ helperMessage?: string;
22
15
  isDisabled?: boolean;
16
+ isFetchingConfig?: boolean;
17
+ isSharing?: boolean;
23
18
  isSplitButton?: boolean;
19
+ isSubmitShareDisabled?: boolean;
24
20
  loadOptions?: LoadOptions;
21
+ onDismiss?: (data: ShareData) => void;
25
22
  onLinkCopy?: (link: string) => void;
23
+ onMenuItemChange?: (menuItem: MenuType) => void;
26
24
  onSubmit?: (data: ShareData) => void;
27
- onDismiss?: (data: ShareData) => void;
28
- onUserInputChange?: (query?: string, sessionId?: string) => void;
29
25
  onTabChange?: (index: number) => void;
30
- onMenuItemChange?: (menuItem: MenuType) => void;
26
+ onUserInputChange?: (query?: string, sessionId?: string) => void;
27
+ product?: ProductName;
31
28
  selectedMenuItem?: number;
32
- Content?: React.ReactNode;
33
- handleCloseDialog?: () => void;
34
- isSubmitShareDisabled?: boolean;
29
+ selectPortalRef?: React.Ref<HTMLDivElement>;
30
+ shareError?: ShareError;
31
+ showTitle?: boolean;
32
+ submitButtonLabel?: React.ReactNode;
33
+ title?: React.ReactNode;
35
34
  };
36
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,26 +1,25 @@
1
- /// <reference types="react" />
2
1
  import { type MessageDescriptor } from 'react-intl-next';
3
2
  import type { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
4
3
  export type UserPickerOptions = Pick<SmartUserPickerProps, 'onFocus' | 'header' | 'includeNonLicensedUsers'> & {
5
- /** Message to be shown when the menu is open but no options are provided.
6
- * If message is null, no message will be displayed.
7
- * If message is undefined, default message will be displayed.
4
+ /**
5
+ * Label message for the user picker.
8
6
  */
9
- noOptionsMessageHandler?: ((value: {
10
- inputValue: string;
11
- isPublicLink?: boolean;
12
- allowEmail?: boolean;
13
- }) => string | null | React.ReactNode) | null;
7
+ getLabelMessage?: (allowEmail?: boolean, isBrowseUsersDisabled?: boolean) => MessageDescriptor;
14
8
  /**
15
9
  * Placeholder message for the user picker.
16
10
  */
17
11
  getPlaceholderMessage?: (allowEmail?: boolean, isBrowseUsersDisabled?: boolean) => MessageDescriptor;
18
- /**
19
- * Label message for the user picker.
20
- */
21
- getLabelMessage?: (allowEmail?: boolean, isBrowseUsersDisabled?: boolean) => MessageDescriptor;
22
12
  /**
23
13
  * Message to be shown when required validation is shown in the user picker.
24
14
  */
25
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;
26
25
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type FormChildrenArgs<T> = {
3
2
  formProps: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
4
3
  getValues: () => T;
@@ -1,9 +1,9 @@
1
1
  export interface ShortenRequest {
2
2
  cloudId?: string;
3
+ originId?: string;
4
+ params: Record<string, string>;
3
5
  product: string;
4
6
  type: string;
5
- params: Record<string, string>;
6
- originId?: string;
7
7
  }
8
8
  export interface ShortenResponse {
9
9
  shortUrl: string;
@@ -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;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  declare const _default: React.ForwardRefExoticComponent<Omit<{
4
- children?: React.ReactNode;
4
+ children?: React.ReactNode | undefined;
5
5
  }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
6
6
  export default _default;
@@ -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
- onLinkCopy: () => void;
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
- onLinkCopy: () => void;
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
  };
@@ -49,8 +49,8 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
49
49
  }
50
50
  export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
51
51
  integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
52
- shareIntegrations?: import("../types").Integration[] | undefined;
53
- additionalTabs?: import("../types").AdditionalTab[] | undefined;
52
+ shareIntegrations?: Array<import("../types").Integration> | undefined;
53
+ additionalTabs?: Array<import("../types").AdditionalTab> | undefined;
54
54
  builtInTabContentWidth?: number | undefined;
55
55
  copyTooltipText?: string | undefined;
56
56
  isPublicLink?: boolean | undefined;
@@ -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
- onTriggerButtonClick?: (() => void) | undefined;
69
- onDialogOpen?: (() => void) | undefined;
70
- onDialogClose?: (() => void) | undefined;
71
- isAutoOpenDialog?: boolean | undefined;
72
- shareClient?: ShareClient | undefined;
73
- urlShortenerClient?: UrlShortenerClient | undefined;
74
- shortLinkData?: ShortenRequest | undefined;
75
- dialogPlacement?: import("@popperjs/core").Placement | undefined;
68
+ bottomMessage?: React.ReactNode;
69
+ customFooter?: React.ReactNode;
70
+ customHeader?: React.ReactNode;
71
+ customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
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
- shareContentType?: string | undefined;
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
- shareFormTitle?: React.ReactNode;
90
- shareFormHelperMessage?: string | undefined;
99
+ shortLinkData?: ShortenRequest | undefined;
91
100
  shouldCloseOnEscapePress?: boolean | undefined;
92
- showFlags?: ((flags: import("../types").Flag[]) => void) | undefined;
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
- bottomMessage?: React.ReactNode;
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;
@@ -1,12 +1,12 @@
1
1
  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
- integrationMode?: IntegrationMode | undefined;
5
- isMenuItemSelected?: boolean | undefined;
6
- isExtendedShareDialogEnabled?: boolean | undefined;
4
+ integrationMode?: IntegrationMode;
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 | undefined;
11
- isExtendedShareDialogEnabled?: boolean | undefined;
10
+ isExtendedShareDialogEnabled?: boolean;
11
+ label?: string;
12
12
  }) => React.JSX.Element;
@@ -6,9 +6,9 @@ import { type PropsWithChildren } from 'react';
6
6
  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
- integrationMode?: IntegrationMode | undefined;
10
- isMenuItemSelected?: boolean | undefined;
11
- isExtendedShareDialogEnabled?: boolean | undefined;
9
+ integrationMode?: IntegrationMode;
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 | undefined;
21
- isExtendedShareDialogEnabled?: boolean | undefined;
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
- shareButton: React.ReactNode;
11
- handleOpenSplitButton: () => void;
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
- loadOptions?: LoadOptions;
8
- defaultValue?: OptionData[];
7
+ cloudId?: string;
9
8
  config?: ConfigResponse;
10
- isLoading?: boolean;
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
- selectPortalRef?: React.Ref<HTMLDivElement>;
18
- isPublicLink?: boolean;
19
- helperMessage?: string;
19
+ onInputChange?: (query?: string, sessionId?: string) => void;
20
20
  orgId?: string;
21
- isBrowseUsersDisabled?: boolean;
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;
@@ -17,34 +17,42 @@ export declare const shareMenuItemClicked: (subjectId: MenuItemSubjectIdType, sh
17
17
  export declare const cancelShare: (start: number) => AnalyticsEventPayload;
18
18
  export declare const shortUrlRequested: () => AnalyticsEventPayload;
19
19
  export declare const shortUrlGenerated: (start: number, tooSlow: boolean) => AnalyticsEventPayload;
20
+ export declare const shareConfigurationLoaded: (attributes: {
21
+ disableSharingToEmails: boolean | undefined;
22
+ durationMs: number;
23
+ }) => AnalyticsEventPayload;
24
+ export declare const shareConfigurationLoadFailed: (attributes: {
25
+ durationMs: number;
26
+ statusCode: string | number | undefined;
27
+ }) => AnalyticsEventPayload;
20
28
  export declare const copyLinkButtonClicked: ({ start, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, ari, }: {
29
+ ari?: string;
30
+ isPublicLink?: boolean;
31
+ shareContentId?: string;
32
+ shareContentSubType?: string;
33
+ shareContentType?: string;
34
+ shareOrigin?: OriginTracing;
21
35
  start: number;
22
- shareContentType?: string | undefined;
23
- shareContentSubType?: string | undefined;
24
- shareContentId?: string | undefined;
25
- shareOrigin?: OriginTracing | undefined;
26
- isPublicLink?: boolean | undefined;
27
- ari?: string | undefined;
28
36
  }) => AnalyticsEventPayload;
29
37
  export declare const formShareSubmitted: ({ start, data, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, }: {
30
- start: number;
31
38
  data: DialogContentState;
32
- shareContentType?: string | undefined;
33
- shareContentSubType?: string | undefined;
34
- shareContentId?: string | undefined;
35
- shareOrigin?: OriginTracing | undefined;
36
- isPublicLink?: boolean | undefined;
39
+ isPublicLink?: boolean;
40
+ shareContentId?: string;
41
+ shareContentSubType?: string;
42
+ shareContentType?: string;
43
+ shareOrigin?: OriginTracing;
44
+ start: number;
37
45
  }) => AnalyticsEventPayload;
38
46
  export declare const jiraPageSharedEvent: ({ start, data, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, productAttributes, loggedInAccountId, source, actionSubjectId, }: {
39
- start: number;
47
+ actionSubjectId?: string;
40
48
  data: DialogContentState;
41
- shareContentType?: string | undefined;
42
- shareContentSubType?: string | undefined;
43
- shareContentId?: string | undefined;
44
- shareOrigin?: OriginTracing | undefined;
45
- isPublicLink?: boolean | undefined;
49
+ isPublicLink?: boolean;
50
+ loggedInAccountId?: string;
46
51
  productAttributes?: any;
47
- loggedInAccountId?: string | undefined;
48
- source?: string | undefined;
49
- actionSubjectId?: string | undefined;
52
+ shareContentId?: string;
53
+ shareContentSubType?: string;
54
+ shareContentType?: string;
55
+ shareOrigin?: OriginTracing;
56
+ source?: string;
57
+ start: number;
50
58
  }) => AnalyticsEventPayload;