@atlaskit/share 6.6.2 → 6.7.0

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 (42) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/components/LazyShareForm/LazyShareForm.js +4 -2
  3. package/dist/cjs/components/LazyShareForm/LazyShareFormNext.js +4 -2
  4. package/dist/cjs/components/ShareDialogContainer.js +4 -2
  5. package/dist/cjs/components/ShareDialogWithTrigger.js +4 -2
  6. package/dist/cjs/components/ShareDialogWithTriggerNext.js +4 -2
  7. package/dist/cjs/components/ShareForm.js +79 -167
  8. package/dist/cjs/components/ShareFormNext.js +70 -169
  9. package/dist/cjs/components/analytics/analytics.js +1 -1
  10. package/dist/es2019/components/LazyShareForm/LazyShareForm.js +4 -2
  11. package/dist/es2019/components/LazyShareForm/LazyShareFormNext.js +4 -2
  12. package/dist/es2019/components/ShareDialogContainer.js +4 -2
  13. package/dist/es2019/components/ShareDialogWithTrigger.js +4 -2
  14. package/dist/es2019/components/ShareDialogWithTriggerNext.js +4 -2
  15. package/dist/es2019/components/ShareForm.js +47 -121
  16. package/dist/es2019/components/ShareFormNext.js +37 -122
  17. package/dist/es2019/components/analytics/analytics.js +1 -1
  18. package/dist/esm/components/LazyShareForm/LazyShareForm.js +4 -2
  19. package/dist/esm/components/LazyShareForm/LazyShareFormNext.js +4 -2
  20. package/dist/esm/components/ShareDialogContainer.js +4 -2
  21. package/dist/esm/components/ShareDialogWithTrigger.js +4 -2
  22. package/dist/esm/components/ShareDialogWithTriggerNext.js +4 -2
  23. package/dist/esm/components/ShareForm.js +79 -167
  24. package/dist/esm/components/ShareFormNext.js +70 -169
  25. package/dist/esm/components/analytics/analytics.js +1 -1
  26. package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +1 -1
  27. package/dist/types/components/LazyShareForm/LazyShareFormNext.d.ts +1 -1
  28. package/dist/types/components/ShareDialogContainer.d.ts +35 -34
  29. package/dist/types/index.d.ts +1 -1
  30. package/dist/types/types/ShareDialogContainer.d.ts +2 -0
  31. package/dist/types/types/ShareDialogWithTrigger.d.ts +1 -1
  32. package/dist/types/types/ShareForm.d.ts +2 -1
  33. package/dist/types/types/index.d.ts +1 -1
  34. package/dist/types-ts4.5/components/LazyShareForm/LazyShareForm.d.ts +1 -1
  35. package/dist/types-ts4.5/components/LazyShareForm/LazyShareFormNext.d.ts +1 -1
  36. package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +35 -34
  37. package/dist/types-ts4.5/index.d.ts +1 -1
  38. package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +2 -0
  39. package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +1 -1
  40. package/dist/types-ts4.5/types/ShareForm.d.ts +2 -1
  41. package/dist/types-ts4.5/types/index.d.ts +1 -1
  42. package/package.json +4 -7
@@ -11,6 +11,7 @@ import type { ProductId, ProductName } from './Products';
11
11
  import type { ShareButtonStyle, TooltipPosition } from './ShareButton';
12
12
  import type { DialogPlacement, RenderCustomTriggerButton } from './ShareDialogWithTrigger';
13
13
  import type { AdditionalTab, Integration, IntegrationMode } from './ShareEntities';
14
+ import { RenderCustomSubmitButtonProps } from './ShareForm';
14
15
  import type { UserPickerOptions } from './UserPickerOptions';
15
16
  export type ShareDialogContainerProps = {
16
17
  onTriggerButtonClick?: () => void;
@@ -165,4 +166,5 @@ export type ShareDialogContainerProps = {
165
166
  isExtendedShareDialogEnabled?: boolean;
166
167
  additionalUserFields?: React.ReactNode;
167
168
  onSubmit?: (formValues: ShareData) => void | Promise<void>;
169
+ CustomSubmitButton?: React.FC<RenderCustomSubmitButtonProps>;
168
170
  };
@@ -19,7 +19,7 @@ export type DialogPlacement = Placement;
19
19
  * with the demo page and clearly visible options on that page.
20
20
  */
21
21
  export type DialogBoundariesElement = 'viewport' | 'window' | 'scrollParent';
22
- export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'productAttributes' | 'customHeader' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'additionalTabs' | 'builtInTabContentWidth' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isSubmitShareDisabled' | 'additionalUserFields' | 'isExtendedShareDialogEnabled'> & {
22
+ export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'productAttributes' | 'customHeader' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'additionalTabs' | 'builtInTabContentWidth' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isSubmitShareDisabled' | 'additionalUserFields' | 'isExtendedShareDialogEnabled' | 'CustomSubmitButton'> & {
23
23
  config?: ConfigResponse;
24
24
  isFetchingConfig?: boolean;
25
25
  children?: RenderCustomTriggerButton;
@@ -5,7 +5,7 @@ import type { ProductName } from './Products';
5
5
  import type { ShareData, ShareError } from './ShareContentState';
6
6
  import type { ShareDialogContainerProps } from './ShareDialogContainer';
7
7
  import { type MenuType } from './ShareEntities';
8
- export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'additionalTabs' | 'builtInTabContentWidth' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'productAttributes' | 'additionalUserFields' | 'isExtendedShareDialogEnabled'> & {
8
+ export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'additionalTabs' | 'builtInTabContentWidth' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'productAttributes' | 'additionalUserFields' | 'isExtendedShareDialogEnabled' | 'CustomSubmitButton'> & {
9
9
  config?: ConfigResponse;
10
10
  isFetchingConfig?: boolean;
11
11
  copyLink: string;
@@ -33,3 +33,4 @@ export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' |
33
33
  handleCloseDialog?: () => void;
34
34
  isSubmitShareDisabled?: boolean;
35
35
  };
36
+ export type RenderCustomSubmitButtonProps = Pick<ShareFormProps, 'isSharing' | 'isDisabled' | 'isSubmitShareDisabled' | 'isPublicLink' | 'shareError' | 'integrationMode' | 'submitButtonLabel'>;
@@ -15,5 +15,5 @@ export type KeysOfType<T, TProp> = {
15
15
  [P in keyof T]: T[P] extends TProp ? P : never;
16
16
  }[keyof T];
17
17
  export type { ShareDialogContainerProps } from './ShareDialogContainer';
18
- export type { ShareFormProps } from './ShareForm';
18
+ export type { ShareFormProps, RenderCustomSubmitButtonProps } from './ShareForm';
19
19
  export type { UserPickerOptions } from './UserPickerOptions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "6.6.2",
3
+ "version": "6.7.0",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,12 +44,12 @@
44
44
  "@atlaskit/dropdown-menu": "^16.0.0",
45
45
  "@atlaskit/form": "^12.0.0",
46
46
  "@atlaskit/heading": "^5.2.0",
47
- "@atlaskit/icon": "^26.1.0",
47
+ "@atlaskit/icon": "^26.3.0",
48
48
  "@atlaskit/link": "^3.2.0",
49
49
  "@atlaskit/menu": "^8.0.0",
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
51
  "@atlaskit/popper": "^7.0.0",
52
- "@atlaskit/popup": "^4.2.0",
52
+ "@atlaskit/popup": "^4.3.0",
53
53
  "@atlaskit/portal": "^5.1.0",
54
54
  "@atlaskit/primitives": "^14.8.0",
55
55
  "@atlaskit/smart-user-picker": "^8.0.0",
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/textarea": "^8.0.0",
59
59
  "@atlaskit/theme": "^18.0.0",
60
60
  "@atlaskit/tokens": "^4.9.0",
61
- "@atlaskit/tooltip": "^20.0.0",
61
+ "@atlaskit/tooltip": "^20.1.0",
62
62
  "@atlaskit/ufo": "^0.4.0",
63
63
  "@atlaskit/user-picker": "^11.1.0",
64
64
  "@atlaskit/util-service-support": "^6.3.0",
@@ -125,9 +125,6 @@
125
125
  "smart_links_for_plans_platform": {
126
126
  "type": "boolean"
127
127
  },
128
- "plans_outgoing_mail_fix": {
129
- "type": "boolean"
130
- },
131
128
  "jira-issue-terminology-refresh-m3": {
132
129
  "type": "boolean"
133
130
  },