@atlaskit/share 3.2.2 → 3.2.3

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 (29) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/components/LazyShareForm/LazyShareForm.js +3 -1
  3. package/dist/cjs/components/ShareDialogContainer.js +2 -0
  4. package/dist/cjs/components/ShareDialogWithTrigger.js +2 -0
  5. package/dist/cjs/components/ShareForm.js +4 -2
  6. package/dist/cjs/components/UserPickerField.js +4 -2
  7. package/dist/cjs/components/analytics/analytics.js +1 -1
  8. package/dist/cjs/version.json +1 -1
  9. package/dist/es2019/components/LazyShareForm/LazyShareForm.js +3 -1
  10. package/dist/es2019/components/ShareDialogContainer.js +2 -0
  11. package/dist/es2019/components/ShareDialogWithTrigger.js +2 -0
  12. package/dist/es2019/components/ShareForm.js +4 -2
  13. package/dist/es2019/components/UserPickerField.js +4 -2
  14. package/dist/es2019/components/analytics/analytics.js +1 -1
  15. package/dist/es2019/version.json +1 -1
  16. package/dist/esm/components/LazyShareForm/LazyShareForm.js +3 -1
  17. package/dist/esm/components/ShareDialogContainer.js +2 -0
  18. package/dist/esm/components/ShareDialogWithTrigger.js +2 -0
  19. package/dist/esm/components/ShareForm.js +4 -2
  20. package/dist/esm/components/UserPickerField.js +4 -2
  21. package/dist/esm/components/analytics/analytics.js +1 -1
  22. package/dist/esm/version.json +1 -1
  23. package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +1 -1
  24. package/dist/types/components/ShareDialogContainer.d.ts +1 -1
  25. package/dist/types/components/UserPickerField.d.ts +1 -0
  26. package/dist/types/types/ShareDialogContainer.d.ts +2 -0
  27. package/dist/types/types/ShareDialogWithTrigger.d.ts +1 -1
  28. package/dist/types/types/ShareForm.d.ts +1 -1
  29. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 3.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bde6e3d6be0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bde6e3d6be0) - Added orgId as an optional prop to Share
8
+
3
9
  ## 3.2.2
4
10
 
5
11
  ### Patch Changes
@@ -56,7 +56,8 @@ function LazyShareForm(props) {
56
56
  isSharing = props.isSharing,
57
57
  shareError = props.shareError,
58
58
  defaultValue = props.defaultValue,
59
- showTitle = props.showTitle;
59
+ showTitle = props.showTitle,
60
+ orgId = props.orgId;
60
61
 
61
62
  var footer = /*#__PURE__*/_react.default.createElement("div", null, bottomMessage ? /*#__PURE__*/_react.default.createElement(_styled.BottomMessageWrapper, null, bottomMessage) : null, customFooter && selectedIntegration === null && /*#__PURE__*/_react.default.createElement(_styled.CustomFooterWrapper, null, customFooter));
62
63
 
@@ -94,6 +95,7 @@ function LazyShareForm(props) {
94
95
  isSharing: isSharing,
95
96
  isFetchingConfig: isFetchingConfig,
96
97
  isPublicLink: isPublicLink,
98
+ orgId: orgId,
97
99
  onSubmit: onSubmit,
98
100
  onDismiss: onDismiss,
99
101
  onLinkCopy: onLinkCopy,
@@ -420,6 +420,7 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
420
420
  value: function render() {
421
421
  var _this$props2 = this.props,
422
422
  cloudId = _this$props2.cloudId,
423
+ orgId = _this$props2.orgId,
423
424
  isAutoOpenDialog = _this$props2.isAutoOpenDialog,
424
425
  dialogPlacement = _this$props2.dialogPlacement,
425
426
  loadUserOptions = _this$props2.loadUserOptions,
@@ -476,6 +477,7 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
476
477
  enableSmartUserPicker: enableSmartUserPicker,
477
478
  loggedInAccountId: loggedInAccountId,
478
479
  cloudId: cloudId,
480
+ orgId: orgId,
479
481
  triggerButtonAppearance: triggerButtonAppearance,
480
482
  triggerButtonIcon: triggerButtonIcon,
481
483
  triggerButtonStyle: triggerButtonStyle,
@@ -471,6 +471,7 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
471
471
  enableSmartUserPicker = _this$props7.enableSmartUserPicker,
472
472
  loggedInAccountId = _this$props7.loggedInAccountId,
473
473
  cloudId = _this$props7.cloudId,
474
+ orgId = _this$props7.orgId,
474
475
  shareFieldsFooter = _this$props7.shareFieldsFooter,
475
476
  onUserSelectionChange = _this$props7.onUserSelectionChange,
476
477
  dialogZIndex = _this$props7.dialogZIndex,
@@ -513,6 +514,7 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
513
514
  enableSmartUserPicker: enableSmartUserPicker,
514
515
  loggedInAccountId: loggedInAccountId,
515
516
  cloudId: cloudId,
517
+ orgId: orgId,
516
518
  onUserSelectionChange: onUserSelectionChange,
517
519
  shareFieldsFooter: shareFieldsFooter,
518
520
  isPublicLink: isPublicLink,
@@ -149,7 +149,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
149
149
  isDisabled = _this$props.isDisabled,
150
150
  isPublicLink = _this$props.isPublicLink,
151
151
  copyTooltipText = _this$props.copyTooltipText,
152
- helperMessage = _this$props.helperMessage;
152
+ helperMessage = _this$props.helperMessage,
153
+ orgId = _this$props.orgId;
153
154
  return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
154
155
  data: {
155
156
  source: _analytics.ANALYTICS_SOURCE
@@ -169,7 +170,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
169
170
  cloudId: cloudId,
170
171
  selectPortalRef: selectPortalRef,
171
172
  isPublicLink: isPublicLink,
172
- helperMessage: helperMessage
173
+ helperMessage: helperMessage,
174
+ orgId: orgId
173
175
  })), /*#__PURE__*/_react.default.createElement(FormField, null, /*#__PURE__*/_react.default.createElement(_CommentField.CommentField, {
174
176
  defaultValue: defaultValue && defaultValue.comment
175
177
  })), fieldsFooter, /*#__PURE__*/_react.default.createElement(FormFooter, null, /*#__PURE__*/_react.default.createElement(_CopyLinkButton.default, {
@@ -178,14 +178,16 @@ var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
178
178
  loggedInAccountId = _this$props2.loggedInAccountId,
179
179
  cloudId = _this$props2.cloudId,
180
180
  selectPortalRef = _this$props2.selectPortalRef,
181
- isPublicLink = _this$props2.isPublicLink;
181
+ isPublicLink = _this$props2.isPublicLink,
182
+ orgId = _this$props2.orgId;
182
183
  var smartUserPickerProps = enableSmartUserPicker ? {
183
184
  productKey: product,
184
185
  principalId: loggedInAccountId,
185
186
  siteId: cloudId || '',
186
187
  includeTeams: true,
187
188
  includeGroups: true,
188
- debounceTime: DEBOUNCE_MS
189
+ debounceTime: DEBOUNCE_MS,
190
+ orgId: orgId
189
191
  } : {};
190
192
  var allowEmail = (0, _utils.allowEmails)(config);
191
193
  var requiredMessage = getRequiredMessage(product, allowEmail);
@@ -19,7 +19,7 @@ var buildAttributes = function buildAttributes() {
19
19
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
20
20
  return _objectSpread({
21
21
  packageName: "@atlaskit/share",
22
- packageVersion: "3.2.2"
22
+ packageVersion: "3.2.3"
23
23
  }, attributes);
24
24
  };
25
25
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.2.2"
3
+ "version": "3.2.3"
4
4
  }
@@ -45,7 +45,8 @@ function LazyShareForm(props) {
45
45
  isSharing,
46
46
  shareError,
47
47
  defaultValue,
48
- showTitle
48
+ showTitle,
49
+ orgId
49
50
  } = props;
50
51
  const footer = /*#__PURE__*/React.createElement("div", null, bottomMessage ? /*#__PURE__*/React.createElement(BottomMessageWrapper, null, bottomMessage) : null, customFooter && selectedIntegration === null && /*#__PURE__*/React.createElement(CustomFooterWrapper, null, customFooter));
51
52
  return /*#__PURE__*/React.createElement(ShareFormWrapper, {
@@ -82,6 +83,7 @@ function LazyShareForm(props) {
82
83
  isSharing: isSharing,
83
84
  isFetchingConfig: isFetchingConfig,
84
85
  isPublicLink: isPublicLink,
86
+ orgId: orgId,
85
87
  onSubmit: onSubmit,
86
88
  onDismiss: onDismiss,
87
89
  onLinkCopy: onLinkCopy,
@@ -327,6 +327,7 @@ export class ShareDialogContainerInternal extends React.Component {
327
327
  render() {
328
328
  const {
329
329
  cloudId,
330
+ orgId,
330
331
  isAutoOpenDialog,
331
332
  dialogPlacement,
332
333
  loadUserOptions,
@@ -385,6 +386,7 @@ export class ShareDialogContainerInternal extends React.Component {
385
386
  enableSmartUserPicker: enableSmartUserPicker,
386
387
  loggedInAccountId: loggedInAccountId,
387
388
  cloudId: cloudId,
389
+ orgId: orgId,
388
390
  triggerButtonAppearance: triggerButtonAppearance,
389
391
  triggerButtonIcon: triggerButtonIcon,
390
392
  triggerButtonStyle: triggerButtonStyle,
@@ -423,6 +423,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
423
423
  enableSmartUserPicker,
424
424
  loggedInAccountId,
425
425
  cloudId,
426
+ orgId,
426
427
  shareFieldsFooter,
427
428
  onUserSelectionChange,
428
429
  dialogZIndex,
@@ -465,6 +466,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
465
466
  enableSmartUserPicker: enableSmartUserPicker,
466
467
  loggedInAccountId: loggedInAccountId,
467
468
  cloudId: cloudId,
469
+ orgId: orgId,
468
470
  onUserSelectionChange: onUserSelectionChange,
469
471
  shareFieldsFooter: shareFieldsFooter,
470
472
  isPublicLink: isPublicLink,
@@ -96,7 +96,8 @@ class InternalForm extends React.PureComponent {
96
96
  isDisabled,
97
97
  isPublicLink,
98
98
  copyTooltipText,
99
- helperMessage
99
+ helperMessage,
100
+ orgId
100
101
  } = this.props;
101
102
  return /*#__PURE__*/React.createElement(AnalyticsContext, {
102
103
  data: {
@@ -117,7 +118,8 @@ class InternalForm extends React.PureComponent {
117
118
  cloudId: cloudId,
118
119
  selectPortalRef: selectPortalRef,
119
120
  isPublicLink: isPublicLink,
120
- helperMessage: helperMessage
121
+ helperMessage: helperMessage,
122
+ orgId: orgId
121
123
  })), /*#__PURE__*/React.createElement(FormField, null, /*#__PURE__*/React.createElement(CommentField, {
122
124
  defaultValue: defaultValue && defaultValue.comment
123
125
  })), fieldsFooter, /*#__PURE__*/React.createElement(FormFooter, null, /*#__PURE__*/React.createElement(CopyLinkButton, {
@@ -121,7 +121,8 @@ export class UserPickerFieldComponent extends React.Component {
121
121
  loggedInAccountId,
122
122
  cloudId,
123
123
  selectPortalRef,
124
- isPublicLink
124
+ isPublicLink,
125
+ orgId
125
126
  } = this.props;
126
127
  const smartUserPickerProps = enableSmartUserPicker ? {
127
128
  productKey: product,
@@ -129,7 +130,8 @@ export class UserPickerFieldComponent extends React.Component {
129
130
  siteId: cloudId || '',
130
131
  includeTeams: true,
131
132
  includeGroups: true,
132
- debounceTime: DEBOUNCE_MS
133
+ debounceTime: DEBOUNCE_MS,
134
+ orgId
133
135
  } : {};
134
136
  const allowEmail = allowEmails(config);
135
137
  const requiredMessage = getRequiredMessage(product, allowEmail);
@@ -2,7 +2,7 @@ import { isEmail, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
 
3
3
  const buildAttributes = (attributes = {}) => ({
4
4
  packageName: "@atlaskit/share",
5
- packageVersion: "3.2.2",
5
+ packageVersion: "3.2.3",
6
6
  ...attributes
7
7
  });
8
8
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.2.2"
3
+ "version": "3.2.3"
4
4
  }
@@ -41,7 +41,8 @@ function LazyShareForm(props) {
41
41
  isSharing = props.isSharing,
42
42
  shareError = props.shareError,
43
43
  defaultValue = props.defaultValue,
44
- showTitle = props.showTitle;
44
+ showTitle = props.showTitle,
45
+ orgId = props.orgId;
45
46
  var footer = /*#__PURE__*/React.createElement("div", null, bottomMessage ? /*#__PURE__*/React.createElement(BottomMessageWrapper, null, bottomMessage) : null, customFooter && selectedIntegration === null && /*#__PURE__*/React.createElement(CustomFooterWrapper, null, customFooter));
46
47
  return /*#__PURE__*/React.createElement(ShareFormWrapper, {
47
48
  footer: footer // form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
@@ -77,6 +78,7 @@ function LazyShareForm(props) {
77
78
  isSharing: isSharing,
78
79
  isFetchingConfig: isFetchingConfig,
79
80
  isPublicLink: isPublicLink,
81
+ orgId: orgId,
80
82
  onSubmit: onSubmit,
81
83
  onDismiss: onDismiss,
82
84
  onLinkCopy: onLinkCopy,
@@ -396,6 +396,7 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
396
396
  value: function render() {
397
397
  var _this$props2 = this.props,
398
398
  cloudId = _this$props2.cloudId,
399
+ orgId = _this$props2.orgId,
399
400
  isAutoOpenDialog = _this$props2.isAutoOpenDialog,
400
401
  dialogPlacement = _this$props2.dialogPlacement,
401
402
  loadUserOptions = _this$props2.loadUserOptions,
@@ -452,6 +453,7 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
452
453
  enableSmartUserPicker: enableSmartUserPicker,
453
454
  loggedInAccountId: loggedInAccountId,
454
455
  cloudId: cloudId,
456
+ orgId: orgId,
455
457
  triggerButtonAppearance: triggerButtonAppearance,
456
458
  triggerButtonIcon: triggerButtonIcon,
457
459
  triggerButtonStyle: triggerButtonStyle,
@@ -455,6 +455,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
455
455
  enableSmartUserPicker = _this$props7.enableSmartUserPicker,
456
456
  loggedInAccountId = _this$props7.loggedInAccountId,
457
457
  cloudId = _this$props7.cloudId,
458
+ orgId = _this$props7.orgId,
458
459
  shareFieldsFooter = _this$props7.shareFieldsFooter,
459
460
  onUserSelectionChange = _this$props7.onUserSelectionChange,
460
461
  dialogZIndex = _this$props7.dialogZIndex,
@@ -497,6 +498,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
497
498
  enableSmartUserPicker: enableSmartUserPicker,
498
499
  loggedInAccountId: loggedInAccountId,
499
500
  cloudId: cloudId,
501
+ orgId: orgId,
500
502
  onUserSelectionChange: onUserSelectionChange,
501
503
  shareFieldsFooter: shareFieldsFooter,
502
504
  isPublicLink: isPublicLink,
@@ -98,7 +98,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
98
98
  isDisabled = _this$props.isDisabled,
99
99
  isPublicLink = _this$props.isPublicLink,
100
100
  copyTooltipText = _this$props.copyTooltipText,
101
- helperMessage = _this$props.helperMessage;
101
+ helperMessage = _this$props.helperMessage,
102
+ orgId = _this$props.orgId;
102
103
  return /*#__PURE__*/React.createElement(AnalyticsContext, {
103
104
  data: {
104
105
  source: ANALYTICS_SOURCE
@@ -118,7 +119,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
118
119
  cloudId: cloudId,
119
120
  selectPortalRef: selectPortalRef,
120
121
  isPublicLink: isPublicLink,
121
- helperMessage: helperMessage
122
+ helperMessage: helperMessage,
123
+ orgId: orgId
122
124
  })), /*#__PURE__*/React.createElement(FormField, null, /*#__PURE__*/React.createElement(CommentField, {
123
125
  defaultValue: defaultValue && defaultValue.comment
124
126
  })), fieldsFooter, /*#__PURE__*/React.createElement(FormFooter, null, /*#__PURE__*/React.createElement(CopyLinkButton, {
@@ -151,14 +151,16 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
151
151
  loggedInAccountId = _this$props2.loggedInAccountId,
152
152
  cloudId = _this$props2.cloudId,
153
153
  selectPortalRef = _this$props2.selectPortalRef,
154
- isPublicLink = _this$props2.isPublicLink;
154
+ isPublicLink = _this$props2.isPublicLink,
155
+ orgId = _this$props2.orgId;
155
156
  var smartUserPickerProps = enableSmartUserPicker ? {
156
157
  productKey: product,
157
158
  principalId: loggedInAccountId,
158
159
  siteId: cloudId || '',
159
160
  includeTeams: true,
160
161
  includeGroups: true,
161
- debounceTime: DEBOUNCE_MS
162
+ debounceTime: DEBOUNCE_MS,
163
+ orgId: orgId
162
164
  } : {};
163
165
  var allowEmail = allowEmails(config);
164
166
  var requiredMessage = getRequiredMessage(product, allowEmail);
@@ -10,7 +10,7 @@ var buildAttributes = function buildAttributes() {
10
10
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
11
11
  return _objectSpread({
12
12
  packageName: "@atlaskit/share",
13
- packageVersion: "3.2.2"
13
+ packageVersion: "3.2.3"
14
14
  }, attributes);
15
15
  };
16
16
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.2.2"
3
+ "version": "3.2.3"
4
4
  }
@@ -2,7 +2,7 @@
2
2
  import type { LoadOptions } from '@atlaskit/smart-user-picker';
3
3
  import type { ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
4
4
  import { IntegrationFormProps } from '../IntegrationForm';
5
- export declare type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
5
+ export declare type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
6
6
  onLinkCopy: () => void;
7
7
  onDismiss: (data: ShareData) => void;
8
8
  onSubmit: (data: ShareData) => void;
@@ -52,7 +52,7 @@ export declare class ShareDialogContainerInternal extends React.Component<WithAn
52
52
  getFormShareLink: () => string;
53
53
  render(): JSX.Element;
54
54
  }
55
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
55
+ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "orgId" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
56
56
  enableSmartUserPicker: boolean;
57
57
  shareeAction: "view" | "edit";
58
58
  product: string;
@@ -17,6 +17,7 @@ export declare type Props = {
17
17
  selectPortalRef?: React.Ref<HTMLDivElement>;
18
18
  isPublicLink?: boolean;
19
19
  helperMessage?: string;
20
+ orgId?: string;
20
21
  };
21
22
  export declare class UserPickerFieldComponent extends React.Component<WrappedComponentProps & Props> {
22
23
  private loadOptions;
@@ -28,6 +28,8 @@ export declare type ShareDialogContainerProps = {
28
28
  /** Cloud ID of the instance.
29
29
  * Note: we assume this props is stable. */
30
30
  cloudId: string;
31
+ /** Organisation ID of the instance. */
32
+ orgId?: string;
31
33
  /** Placement of the modal to the trigger button. */
32
34
  dialogPlacement?: DialogPlacement;
33
35
  /**
@@ -19,7 +19,7 @@ export declare type DialogPlacement = Placement;
19
19
  * with the demo page and clearly visible options on that page.
20
20
  */
21
21
  export declare type DialogBoundariesElement = 'viewport' | 'window' | 'scrollParent';
22
- export declare type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex'> & {
22
+ export declare type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId'> & {
23
23
  config?: ConfigResponse;
24
24
  isFetchingConfig?: boolean;
25
25
  children?: RenderCustomTriggerButton;
@@ -4,7 +4,7 @@ import type { ConfigResponse } from '../clients/ShareServiceClient';
4
4
  import type { ProductName } from './Products';
5
5
  import type { ShareData, ShareError } from './ShareContentState';
6
6
  import type { ShareDialogContainerProps } from './ShareDialogContainer';
7
- export declare type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker'> & {
7
+ export declare type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId'> & {
8
8
  config?: ConfigResponse;
9
9
  isFetchingConfig?: boolean;
10
10
  copyLink: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,12 +32,12 @@
32
32
  "dependencies": {
33
33
  "@atlaskit/analytics-next": "^8.2.0",
34
34
  "@atlaskit/button": "^16.3.0",
35
- "@atlaskit/dropdown-menu": "^11.1.0",
35
+ "@atlaskit/dropdown-menu": "^11.2.0",
36
36
  "@atlaskit/form": "^8.5.0",
37
37
  "@atlaskit/icon": "^21.10.0",
38
38
  "@atlaskit/popup": "^1.3.0",
39
39
  "@atlaskit/portal": "^4.0.0",
40
- "@atlaskit/smart-user-picker": "^5.0.0",
40
+ "@atlaskit/smart-user-picker": "^5.1.0",
41
41
  "@atlaskit/spinner": "^15.1.4",
42
42
  "@atlaskit/tabs": "^13.2.3",
43
43
  "@atlaskit/textarea": "^4.3.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/tokens": "^0.10.0",
46
46
  "@atlaskit/tooltip": "^17.5.0",
47
47
  "@atlaskit/ufo": "^0.1.0",
48
- "@atlaskit/user-picker": "^9.0.0",
48
+ "@atlaskit/user-picker": "^9.1.0",
49
49
  "@atlaskit/util-service-support": "^6.1.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "fast-deep-equal": "^3.1.1",
@@ -63,9 +63,9 @@
63
63
  "@atlaskit/editor-test-helpers": "^17.0.0",
64
64
  "@atlaskit/flag": "^14.5.0",
65
65
  "@atlaskit/section-message": "^6.0.0",
66
- "@atlaskit/select": "^15.0.0",
66
+ "@atlaskit/select": "^15.3.0",
67
67
  "@atlaskit/toggle": "^12.4.0",
68
- "@atlaskit/util-data-test": "^17.2.0",
68
+ "@atlaskit/util-data-test": "^17.3.0",
69
69
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
70
70
  "enzyme": "^3.10.0",
71
71
  "enzyme-adapter-react-16": "^1.15.1",