@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.
Files changed (62) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-cc/tsconfig.json +3 -3
  3. package/dist/cjs/components/analytics/analytics.js +1 -1
  4. package/dist/es2019/components/analytics/analytics.js +1 -1
  5. package/dist/esm/components/analytics/analytics.js +1 -1
  6. package/dist/types/clients/AtlassianUrlShortenerClient.d.ts +2 -2
  7. package/dist/types/clients/ShareServiceClient.d.ts +1 -1
  8. package/dist/types/components/CopyLinkButton.d.ts +6 -6
  9. package/dist/types/components/CopyLinkButtonNext.d.ts +6 -6
  10. package/dist/types/components/IntegrationButton.d.ts +1 -1
  11. package/dist/types/components/IntegrationButtonNext.d.ts +1 -1
  12. package/dist/types/components/IntegrationForm.d.ts +1 -1
  13. package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +4 -4
  14. package/dist/types/components/LazyShareForm/LazyShareFormNext.d.ts +4 -4
  15. package/dist/types/components/ShareButton.d.ts +3 -3
  16. package/dist/types/components/ShareDialogContainer.d.ts +24 -24
  17. package/dist/types/components/ShareForm.d.ts +1 -1
  18. package/dist/types/components/ShareFormNext.d.ts +1 -1
  19. package/dist/types/components/ShareFormWrapper/ShareFormWrapper.d.ts +2 -2
  20. package/dist/types/components/ShareFormWrapper/compiled.d.ts +2 -2
  21. package/dist/types/components/ShareFormWrapper/styled.d.ts +2 -2
  22. package/dist/types/components/SplitButton.d.ts +6 -6
  23. package/dist/types/components/UserPickerField.d.ts +12 -12
  24. package/dist/types/components/analytics/analytics.d.ts +17 -17
  25. package/dist/types/types/Flag.d.ts +2 -2
  26. package/dist/types/types/OriginTracing.d.ts +1 -1
  27. package/dist/types/types/ShareContentState.d.ts +4 -4
  28. package/dist/types/types/ShareDialogContainer.d.ts +80 -80
  29. package/dist/types/types/ShareDialogWithTrigger.d.ts +12 -12
  30. package/dist/types/types/ShareEntities.d.ts +5 -5
  31. package/dist/types/types/ShareForm.d.ts +15 -15
  32. package/dist/types/types/User.d.ts +2 -2
  33. package/dist/types/types/UserPickerOptions.d.ts +12 -12
  34. package/dist/types-ts4.5/clients/AtlassianUrlShortenerClient.d.ts +2 -2
  35. package/dist/types-ts4.5/clients/ShareServiceClient.d.ts +1 -1
  36. package/dist/types-ts4.5/components/CopyLinkButton.d.ts +6 -6
  37. package/dist/types-ts4.5/components/CopyLinkButtonNext.d.ts +6 -6
  38. package/dist/types-ts4.5/components/IntegrationButton.d.ts +1 -1
  39. package/dist/types-ts4.5/components/IntegrationButtonNext.d.ts +1 -1
  40. package/dist/types-ts4.5/components/IntegrationForm.d.ts +1 -1
  41. package/dist/types-ts4.5/components/LazyShareForm/LazyShareForm.d.ts +4 -4
  42. package/dist/types-ts4.5/components/LazyShareForm/LazyShareFormNext.d.ts +4 -4
  43. package/dist/types-ts4.5/components/ShareButton.d.ts +3 -3
  44. package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +24 -24
  45. package/dist/types-ts4.5/components/ShareForm.d.ts +1 -1
  46. package/dist/types-ts4.5/components/ShareFormNext.d.ts +1 -1
  47. package/dist/types-ts4.5/components/ShareFormWrapper/ShareFormWrapper.d.ts +2 -2
  48. package/dist/types-ts4.5/components/ShareFormWrapper/compiled.d.ts +2 -2
  49. package/dist/types-ts4.5/components/ShareFormWrapper/styled.d.ts +2 -2
  50. package/dist/types-ts4.5/components/SplitButton.d.ts +6 -6
  51. package/dist/types-ts4.5/components/UserPickerField.d.ts +12 -12
  52. package/dist/types-ts4.5/components/analytics/analytics.d.ts +17 -17
  53. package/dist/types-ts4.5/types/Flag.d.ts +2 -2
  54. package/dist/types-ts4.5/types/OriginTracing.d.ts +1 -1
  55. package/dist/types-ts4.5/types/ShareContentState.d.ts +4 -4
  56. package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +80 -80
  57. package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +12 -12
  58. package/dist/types-ts4.5/types/ShareEntities.d.ts +5 -5
  59. package/dist/types-ts4.5/types/ShareForm.d.ts +15 -15
  60. package/dist/types-ts4.5/types/User.d.ts +2 -2
  61. package/dist/types-ts4.5/types/UserPickerOptions.d.ts +12 -12
  62. 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
- isFetchingConfig?: boolean;
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
- selectPortalRef?: React.Ref<HTMLDivElement>;
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
- onMenuItemChange?: (menuItem: MenuType) => void;
26
+ onUserInputChange?: (query?: string, sessionId?: string) => void;
27
+ product?: ProductName;
30
28
  selectedMenuItem?: number;
31
- Content?: React.ReactNode;
32
- handleCloseDialog?: () => void;
33
- isSubmitShareDisabled?: boolean;
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
- /** Message to be shown when the menu is open but no options are provided.
5
- * If message is null, no message will be displayed.
6
- * If message is undefined, default message will be displayed.
4
+ /**
5
+ * Label message for the user picker.
7
6
  */
8
- noOptionsMessageHandler?: ((value: {
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.4",
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.1.0",
44
+ "@atlaskit/form": "^12.2.0",
45
45
  "@atlaskit/heading": "^5.2.0",
46
- "@atlaskit/icon": "^28.0.0",
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.11.0",
54
- "@atlaskit/smart-user-picker": "^8.1.0",
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": "^19.0.0",
59
- "@atlaskit/tokens": "^6.0.0",
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",