@atlaskit/share 4.0.0 → 4.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d18dc3069a2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d18dc3069a2) - Removing the share to slack FF attribute as part of FF clean up
8
+
3
9
  ## 4.0.0
4
10
 
5
11
  ### Major Changes
@@ -326,7 +326,6 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
326
326
  loadUserOptions = _this$props2.loadUserOptions,
327
327
  renderCustomTriggerButton = _this$props2.renderCustomTriggerButton,
328
328
  shareContentType = _this$props2.shareContentType,
329
- isJwmShareToSlackFFEnabled = _this$props2.isJwmShareToSlackFFEnabled,
330
329
  shareFormTitle = _this$props2.shareFormTitle,
331
330
  shareFormHelperMessage = _this$props2.shareFormHelperMessage,
332
331
  shouldCloseOnEscapePress = _this$props2.shouldCloseOnEscapePress,
@@ -370,7 +369,6 @@ var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Component) {
370
369
  onShareSubmit: this.handleSubmitShare,
371
370
  renderCustomTriggerButton: renderCustomTriggerButton,
372
371
  shareContentType: shareContentType,
373
- isJwmShareToSlackFFEnabled: isJwmShareToSlackFFEnabled,
374
372
  shareFormTitle: shareFormTitle,
375
373
  shareFormHelperMessage: shareFormHelperMessage,
376
374
  copyLinkOrigin: this.getCopyLinkOriginTracing(),
@@ -103,13 +103,11 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
103
103
  });
104
104
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onTabChange", function (index) {
105
105
  var subjectId = 'shareTab';
106
- var _this$props3 = _this.props,
107
- shareContentType = _this$props3.shareContentType,
108
- isJwmShareToSlackFFEnabled = _this$props3.isJwmShareToSlackFFEnabled;
106
+ var shareContentType = _this.props.shareContentType;
109
107
  if (index === 1) {
110
108
  subjectId = 'shareToSlackTab';
111
109
  }
112
- _this.createAndFireEvent((0, _analytics.shareTabClicked)(subjectId, shareContentType, isJwmShareToSlackFFEnabled));
110
+ _this.createAndFireEvent((0, _analytics.shareTabClicked)(subjectId, shareContentType));
113
111
  _this.setState({
114
112
  tabIndex: index
115
113
  });
@@ -187,9 +185,9 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
187
185
  selectedIntegration: null
188
186
  };
189
187
  }, function () {
190
- var _this$props4 = _this.props,
191
- onDialogOpen = _this$props4.onDialogOpen,
192
- isPublicLink = _this$props4.isPublicLink;
188
+ var _this$props3 = _this.props,
189
+ onDialogOpen = _this$props3.onDialogOpen,
190
+ isPublicLink = _this$props3.isPublicLink;
193
191
  var isDialogOpen = _this.state.isDialogOpen;
194
192
  if (isDialogOpen) {
195
193
  _this.start = Date.now();
@@ -228,12 +226,12 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
228
226
  });
229
227
  });
230
228
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleShareSubmit", function (data) {
231
- var _this$props5 = _this.props,
232
- onShareSubmit = _this$props5.onShareSubmit,
233
- shareContentType = _this$props5.shareContentType,
234
- formShareOrigin = _this$props5.formShareOrigin,
235
- showFlags = _this$props5.showFlags,
236
- isPublicLink = _this$props5.isPublicLink;
229
+ var _this$props4 = _this.props,
230
+ onShareSubmit = _this$props4.onShareSubmit,
231
+ shareContentType = _this$props4.shareContentType,
232
+ formShareOrigin = _this$props4.formShareOrigin,
233
+ showFlags = _this$props4.showFlags,
234
+ isPublicLink = _this$props4.isPublicLink;
237
235
  if (!onShareSubmit) {
238
236
  return;
239
237
  }
@@ -268,11 +266,11 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
268
266
  });
269
267
  });
270
268
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleCopyLink", function () {
271
- var _this$props6 = _this.props,
272
- copyLinkOrigin = _this$props6.copyLinkOrigin,
273
- shareContentType = _this$props6.shareContentType,
274
- isPublicLink = _this$props6.isPublicLink,
275
- shareAri = _this$props6.shareAri;
269
+ var _this$props5 = _this.props,
270
+ copyLinkOrigin = _this$props5.copyLinkOrigin,
271
+ shareContentType = _this$props5.shareContentType,
272
+ isPublicLink = _this$props5.isPublicLink,
273
+ shareAri = _this$props5.shareAri;
276
274
  _this.createAndFireEvent((0, _analytics.copyLinkButtonClicked)(_this.start, shareContentType, copyLinkOrigin, isPublicLink, shareAri));
277
275
  });
278
276
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleIntegrationClick", function (integration) {
@@ -287,19 +285,19 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
287
285
  var _this$state2 = _this.state,
288
286
  isDialogOpen = _this$state2.isDialogOpen,
289
287
  isUsingSplitButton = _this$state2.isUsingSplitButton;
290
- var _this$props7 = _this.props,
291
- formatMessage = _this$props7.intl.formatMessage,
292
- isDisabled = _this$props7.isDisabled,
293
- renderCustomTriggerButton = _this$props7.renderCustomTriggerButton,
294
- triggerButtonIcon = _this$props7.triggerButtonIcon,
295
- triggerButtonTooltipText = _this$props7.triggerButtonTooltipText,
296
- triggerButtonTooltipPosition = _this$props7.triggerButtonTooltipPosition,
297
- triggerButtonAppearance = _this$props7.triggerButtonAppearance,
298
- triggerButtonStyle = _this$props7.triggerButtonStyle,
299
- integrationMode = _this$props7.integrationMode,
300
- shareIntegrations = _this$props7.shareIntegrations,
301
- dialogZIndex = _this$props7.dialogZIndex,
302
- dialogPlacement = _this$props7.dialogPlacement;
288
+ var _this$props6 = _this.props,
289
+ formatMessage = _this$props6.intl.formatMessage,
290
+ isDisabled = _this$props6.isDisabled,
291
+ renderCustomTriggerButton = _this$props6.renderCustomTriggerButton,
292
+ triggerButtonIcon = _this$props6.triggerButtonIcon,
293
+ triggerButtonTooltipText = _this$props6.triggerButtonTooltipText,
294
+ triggerButtonTooltipPosition = _this$props6.triggerButtonTooltipPosition,
295
+ triggerButtonAppearance = _this$props6.triggerButtonAppearance,
296
+ triggerButtonStyle = _this$props6.triggerButtonStyle,
297
+ integrationMode = _this$props6.integrationMode,
298
+ shareIntegrations = _this$props6.shareIntegrations,
299
+ dialogZIndex = _this$props6.dialogZIndex,
300
+ dialogPlacement = _this$props6.dialogPlacement;
303
301
  var button;
304
302
  var ShareButtonIcon = triggerButtonIcon || _share.default;
305
303
 
@@ -392,31 +390,31 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
392
390
  defaultValue = _this$state3.defaultValue,
393
391
  showIntegrationForm = _this$state3.showIntegrationForm,
394
392
  selectedIntegration = _this$state3.selectedIntegration;
395
- var _this$props8 = this.props,
396
- copyLink = _this$props8.copyLink,
397
- dialogPlacement = _this$props8.dialogPlacement,
398
- config = _this$props8.config,
399
- isFetchingConfig = _this$props8.isFetchingConfig,
400
- loadUserOptions = _this$props8.loadUserOptions,
401
- shareFormTitle = _this$props8.shareFormTitle,
402
- shareFormHelperMessage = _this$props8.shareFormHelperMessage,
403
- bottomMessage = _this$props8.bottomMessage,
404
- submitButtonLabel = _this$props8.submitButtonLabel,
405
- product = _this$props8.product,
406
- customFooter = _this$props8.customFooter,
407
- enableSmartUserPicker = _this$props8.enableSmartUserPicker,
408
- loggedInAccountId = _this$props8.loggedInAccountId,
409
- cloudId = _this$props8.cloudId,
410
- orgId = _this$props8.orgId,
411
- shareFieldsFooter = _this$props8.shareFieldsFooter,
412
- onUserSelectionChange = _this$props8.onUserSelectionChange,
413
- dialogZIndex = _this$props8.dialogZIndex,
414
- isPublicLink = _this$props8.isPublicLink,
415
- tabIndex = _this$props8.tabIndex,
416
- copyTooltipText = _this$props8.copyTooltipText,
417
- integrationMode = _this$props8.integrationMode,
418
- shareIntegrations = _this$props8.shareIntegrations,
419
- isBrowseUsersDisabled = _this$props8.isBrowseUsersDisabled;
393
+ var _this$props7 = this.props,
394
+ copyLink = _this$props7.copyLink,
395
+ dialogPlacement = _this$props7.dialogPlacement,
396
+ config = _this$props7.config,
397
+ isFetchingConfig = _this$props7.isFetchingConfig,
398
+ loadUserOptions = _this$props7.loadUserOptions,
399
+ shareFormTitle = _this$props7.shareFormTitle,
400
+ shareFormHelperMessage = _this$props7.shareFormHelperMessage,
401
+ bottomMessage = _this$props7.bottomMessage,
402
+ submitButtonLabel = _this$props7.submitButtonLabel,
403
+ product = _this$props7.product,
404
+ customFooter = _this$props7.customFooter,
405
+ enableSmartUserPicker = _this$props7.enableSmartUserPicker,
406
+ loggedInAccountId = _this$props7.loggedInAccountId,
407
+ cloudId = _this$props7.cloudId,
408
+ orgId = _this$props7.orgId,
409
+ shareFieldsFooter = _this$props7.shareFieldsFooter,
410
+ onUserSelectionChange = _this$props7.onUserSelectionChange,
411
+ dialogZIndex = _this$props7.dialogZIndex,
412
+ isPublicLink = _this$props7.isPublicLink,
413
+ tabIndex = _this$props7.tabIndex,
414
+ copyTooltipText = _this$props7.copyTooltipText,
415
+ integrationMode = _this$props7.integrationMode,
416
+ shareIntegrations = _this$props7.shareIntegrations,
417
+ isBrowseUsersDisabled = _this$props7.isBrowseUsersDisabled;
420
418
  var style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
421
419
  outline: 'none'
422
420
  } : undefined;
@@ -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: "4.0.0"
16
+ packageVersion: "4.1.0"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -73,8 +73,8 @@ var shareTriggerButtonClicked = function shareTriggerButtonClicked() {
73
73
  return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'button', 'share');
74
74
  };
75
75
  exports.shareTriggerButtonClicked = shareTriggerButtonClicked;
76
- var shareTabClicked = function shareTabClicked(subjectId, shareContentType, isJwmShareToSlackFFEnabled) {
77
- return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', isJwmShareToSlackFFEnabled && {
76
+ var shareTabClicked = function shareTabClicked(subjectId, shareContentType) {
77
+ return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', {
78
78
  shareContentType: shareContentType
79
79
  });
80
80
  };
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.0.0"
3
+ "version": "4.1.0"
4
4
  }
@@ -268,7 +268,6 @@ export class ShareDialogContainerInternal extends React.Component {
268
268
  loadUserOptions,
269
269
  renderCustomTriggerButton,
270
270
  shareContentType,
271
- isJwmShareToSlackFFEnabled,
272
271
  shareFormTitle,
273
272
  shareFormHelperMessage,
274
273
  shouldCloseOnEscapePress,
@@ -314,7 +313,6 @@ export class ShareDialogContainerInternal extends React.Component {
314
313
  onShareSubmit: this.handleSubmitShare,
315
314
  renderCustomTriggerButton: renderCustomTriggerButton,
316
315
  shareContentType: shareContentType,
317
- isJwmShareToSlackFFEnabled: isJwmShareToSlackFFEnabled,
318
316
  shareFormTitle: shareFormTitle,
319
317
  shareFormHelperMessage: shareFormHelperMessage,
320
318
  copyLinkOrigin: this.getCopyLinkOriginTracing(),
@@ -87,13 +87,12 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
87
87
  _defineProperty(this, "onTabChange", index => {
88
88
  let subjectId = 'shareTab';
89
89
  const {
90
- shareContentType,
91
- isJwmShareToSlackFFEnabled
90
+ shareContentType
92
91
  } = this.props;
93
92
  if (index === 1) {
94
93
  subjectId = 'shareToSlackTab';
95
94
  }
96
- this.createAndFireEvent(shareTabClicked(subjectId, shareContentType, isJwmShareToSlackFFEnabled));
95
+ this.createAndFireEvent(shareTabClicked(subjectId, shareContentType));
97
96
  this.setState({
98
97
  tabIndex: index
99
98
  });
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.0.0",
4
+ packageVersion: "4.1.0",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -36,7 +36,7 @@ export const errorEncountered = (actionSubjectId, attributes = {}) => createEven
36
36
 
37
37
  // = share dialog invoked. Not to be confused with "share submitted"
38
38
  export const shareTriggerButtonClicked = () => createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'button', 'share');
39
- export const shareTabClicked = (subjectId, shareContentType, isJwmShareToSlackFFEnabled) => createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', isJwmShareToSlackFFEnabled && {
39
+ export const shareTabClicked = (subjectId, shareContentType) => createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', {
40
40
  shareContentType
41
41
  });
42
42
  export const cancelShare = start => createEvent('ui', ANALYTICS_SOURCE, 'pressed', 'keyboardShortcut', 'cancelShare', {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.0.0"
3
+ "version": "4.1.0"
4
4
  }
@@ -318,7 +318,6 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
318
318
  loadUserOptions = _this$props2.loadUserOptions,
319
319
  renderCustomTriggerButton = _this$props2.renderCustomTriggerButton,
320
320
  shareContentType = _this$props2.shareContentType,
321
- isJwmShareToSlackFFEnabled = _this$props2.isJwmShareToSlackFFEnabled,
322
321
  shareFormTitle = _this$props2.shareFormTitle,
323
322
  shareFormHelperMessage = _this$props2.shareFormHelperMessage,
324
323
  shouldCloseOnEscapePress = _this$props2.shouldCloseOnEscapePress,
@@ -362,7 +361,6 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
362
361
  onShareSubmit: this.handleSubmitShare,
363
362
  renderCustomTriggerButton: renderCustomTriggerButton,
364
363
  shareContentType: shareContentType,
365
- isJwmShareToSlackFFEnabled: isJwmShareToSlackFFEnabled,
366
364
  shareFormTitle: shareFormTitle,
367
365
  shareFormHelperMessage: shareFormHelperMessage,
368
366
  copyLinkOrigin: this.getCopyLinkOriginTracing(),
@@ -100,13 +100,11 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
100
100
  });
101
101
  _defineProperty(_assertThisInitialized(_this), "onTabChange", function (index) {
102
102
  var subjectId = 'shareTab';
103
- var _this$props3 = _this.props,
104
- shareContentType = _this$props3.shareContentType,
105
- isJwmShareToSlackFFEnabled = _this$props3.isJwmShareToSlackFFEnabled;
103
+ var shareContentType = _this.props.shareContentType;
106
104
  if (index === 1) {
107
105
  subjectId = 'shareToSlackTab';
108
106
  }
109
- _this.createAndFireEvent(shareTabClicked(subjectId, shareContentType, isJwmShareToSlackFFEnabled));
107
+ _this.createAndFireEvent(shareTabClicked(subjectId, shareContentType));
110
108
  _this.setState({
111
109
  tabIndex: index
112
110
  });
@@ -184,9 +182,9 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
184
182
  selectedIntegration: null
185
183
  };
186
184
  }, function () {
187
- var _this$props4 = _this.props,
188
- onDialogOpen = _this$props4.onDialogOpen,
189
- isPublicLink = _this$props4.isPublicLink;
185
+ var _this$props3 = _this.props,
186
+ onDialogOpen = _this$props3.onDialogOpen,
187
+ isPublicLink = _this$props3.isPublicLink;
190
188
  var isDialogOpen = _this.state.isDialogOpen;
191
189
  if (isDialogOpen) {
192
190
  _this.start = Date.now();
@@ -225,12 +223,12 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
225
223
  });
226
224
  });
227
225
  _defineProperty(_assertThisInitialized(_this), "handleShareSubmit", function (data) {
228
- var _this$props5 = _this.props,
229
- onShareSubmit = _this$props5.onShareSubmit,
230
- shareContentType = _this$props5.shareContentType,
231
- formShareOrigin = _this$props5.formShareOrigin,
232
- showFlags = _this$props5.showFlags,
233
- isPublicLink = _this$props5.isPublicLink;
226
+ var _this$props4 = _this.props,
227
+ onShareSubmit = _this$props4.onShareSubmit,
228
+ shareContentType = _this$props4.shareContentType,
229
+ formShareOrigin = _this$props4.formShareOrigin,
230
+ showFlags = _this$props4.showFlags,
231
+ isPublicLink = _this$props4.isPublicLink;
234
232
  if (!onShareSubmit) {
235
233
  return;
236
234
  }
@@ -265,11 +263,11 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
265
263
  });
266
264
  });
267
265
  _defineProperty(_assertThisInitialized(_this), "handleCopyLink", function () {
268
- var _this$props6 = _this.props,
269
- copyLinkOrigin = _this$props6.copyLinkOrigin,
270
- shareContentType = _this$props6.shareContentType,
271
- isPublicLink = _this$props6.isPublicLink,
272
- shareAri = _this$props6.shareAri;
266
+ var _this$props5 = _this.props,
267
+ copyLinkOrigin = _this$props5.copyLinkOrigin,
268
+ shareContentType = _this$props5.shareContentType,
269
+ isPublicLink = _this$props5.isPublicLink,
270
+ shareAri = _this$props5.shareAri;
273
271
  _this.createAndFireEvent(copyLinkButtonClicked(_this.start, shareContentType, copyLinkOrigin, isPublicLink, shareAri));
274
272
  });
275
273
  _defineProperty(_assertThisInitialized(_this), "handleIntegrationClick", function (integration) {
@@ -284,19 +282,19 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
284
282
  var _this$state2 = _this.state,
285
283
  isDialogOpen = _this$state2.isDialogOpen,
286
284
  isUsingSplitButton = _this$state2.isUsingSplitButton;
287
- var _this$props7 = _this.props,
288
- formatMessage = _this$props7.intl.formatMessage,
289
- isDisabled = _this$props7.isDisabled,
290
- renderCustomTriggerButton = _this$props7.renderCustomTriggerButton,
291
- triggerButtonIcon = _this$props7.triggerButtonIcon,
292
- triggerButtonTooltipText = _this$props7.triggerButtonTooltipText,
293
- triggerButtonTooltipPosition = _this$props7.triggerButtonTooltipPosition,
294
- triggerButtonAppearance = _this$props7.triggerButtonAppearance,
295
- triggerButtonStyle = _this$props7.triggerButtonStyle,
296
- integrationMode = _this$props7.integrationMode,
297
- shareIntegrations = _this$props7.shareIntegrations,
298
- dialogZIndex = _this$props7.dialogZIndex,
299
- dialogPlacement = _this$props7.dialogPlacement;
285
+ var _this$props6 = _this.props,
286
+ formatMessage = _this$props6.intl.formatMessage,
287
+ isDisabled = _this$props6.isDisabled,
288
+ renderCustomTriggerButton = _this$props6.renderCustomTriggerButton,
289
+ triggerButtonIcon = _this$props6.triggerButtonIcon,
290
+ triggerButtonTooltipText = _this$props6.triggerButtonTooltipText,
291
+ triggerButtonTooltipPosition = _this$props6.triggerButtonTooltipPosition,
292
+ triggerButtonAppearance = _this$props6.triggerButtonAppearance,
293
+ triggerButtonStyle = _this$props6.triggerButtonStyle,
294
+ integrationMode = _this$props6.integrationMode,
295
+ shareIntegrations = _this$props6.shareIntegrations,
296
+ dialogZIndex = _this$props6.dialogZIndex,
297
+ dialogPlacement = _this$props6.dialogPlacement;
300
298
  var button;
301
299
  var ShareButtonIcon = triggerButtonIcon || ShareIcon;
302
300
 
@@ -389,31 +387,31 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
389
387
  defaultValue = _this$state3.defaultValue,
390
388
  showIntegrationForm = _this$state3.showIntegrationForm,
391
389
  selectedIntegration = _this$state3.selectedIntegration;
392
- var _this$props8 = this.props,
393
- copyLink = _this$props8.copyLink,
394
- dialogPlacement = _this$props8.dialogPlacement,
395
- config = _this$props8.config,
396
- isFetchingConfig = _this$props8.isFetchingConfig,
397
- loadUserOptions = _this$props8.loadUserOptions,
398
- shareFormTitle = _this$props8.shareFormTitle,
399
- shareFormHelperMessage = _this$props8.shareFormHelperMessage,
400
- bottomMessage = _this$props8.bottomMessage,
401
- submitButtonLabel = _this$props8.submitButtonLabel,
402
- product = _this$props8.product,
403
- customFooter = _this$props8.customFooter,
404
- enableSmartUserPicker = _this$props8.enableSmartUserPicker,
405
- loggedInAccountId = _this$props8.loggedInAccountId,
406
- cloudId = _this$props8.cloudId,
407
- orgId = _this$props8.orgId,
408
- shareFieldsFooter = _this$props8.shareFieldsFooter,
409
- onUserSelectionChange = _this$props8.onUserSelectionChange,
410
- dialogZIndex = _this$props8.dialogZIndex,
411
- isPublicLink = _this$props8.isPublicLink,
412
- tabIndex = _this$props8.tabIndex,
413
- copyTooltipText = _this$props8.copyTooltipText,
414
- integrationMode = _this$props8.integrationMode,
415
- shareIntegrations = _this$props8.shareIntegrations,
416
- isBrowseUsersDisabled = _this$props8.isBrowseUsersDisabled;
390
+ var _this$props7 = this.props,
391
+ copyLink = _this$props7.copyLink,
392
+ dialogPlacement = _this$props7.dialogPlacement,
393
+ config = _this$props7.config,
394
+ isFetchingConfig = _this$props7.isFetchingConfig,
395
+ loadUserOptions = _this$props7.loadUserOptions,
396
+ shareFormTitle = _this$props7.shareFormTitle,
397
+ shareFormHelperMessage = _this$props7.shareFormHelperMessage,
398
+ bottomMessage = _this$props7.bottomMessage,
399
+ submitButtonLabel = _this$props7.submitButtonLabel,
400
+ product = _this$props7.product,
401
+ customFooter = _this$props7.customFooter,
402
+ enableSmartUserPicker = _this$props7.enableSmartUserPicker,
403
+ loggedInAccountId = _this$props7.loggedInAccountId,
404
+ cloudId = _this$props7.cloudId,
405
+ orgId = _this$props7.orgId,
406
+ shareFieldsFooter = _this$props7.shareFieldsFooter,
407
+ onUserSelectionChange = _this$props7.onUserSelectionChange,
408
+ dialogZIndex = _this$props7.dialogZIndex,
409
+ isPublicLink = _this$props7.isPublicLink,
410
+ tabIndex = _this$props7.tabIndex,
411
+ copyTooltipText = _this$props7.copyTooltipText,
412
+ integrationMode = _this$props7.integrationMode,
413
+ shareIntegrations = _this$props7.shareIntegrations,
414
+ isBrowseUsersDisabled = _this$props7.isBrowseUsersDisabled;
417
415
  var style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
418
416
  outline: 'none'
419
417
  } : undefined;
@@ -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: "4.0.0"
9
+ packageVersion: "4.1.0"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -58,8 +58,8 @@ export var errorEncountered = function errorEncountered(actionSubjectId) {
58
58
  export var shareTriggerButtonClicked = function shareTriggerButtonClicked() {
59
59
  return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'button', 'share');
60
60
  };
61
- export var shareTabClicked = function shareTabClicked(subjectId, shareContentType, isJwmShareToSlackFFEnabled) {
62
- return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', isJwmShareToSlackFFEnabled && {
61
+ export var shareTabClicked = function shareTabClicked(subjectId, shareContentType) {
62
+ return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', {
63
63
  shareContentType: shareContentType
64
64
  });
65
65
  };
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.0.0"
3
+ "version": "4.1.0"
4
4
  }
@@ -50,7 +50,7 @@ export declare class ShareDialogContainerInternal extends React.Component<WithAn
50
50
  getFormShareLink: () => string;
51
51
  render(): JSX.Element;
52
52
  }
53
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "isJwmShareToSlackFFEnabled" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "orgId" | "isBrowseUsersDisabled" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
53
+ 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" | "isBrowseUsersDisabled" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
54
54
  enableSmartUserPicker: boolean;
55
55
  shareeAction: "view" | "edit";
56
56
  product: string;
@@ -11,7 +11,7 @@ export declare const shareIntegrationButtonEvent: (type?: string) => AnalyticsEv
11
11
  export declare const errorEncountered: (actionSubjectId: string | undefined, attributes?: any) => AnalyticsEventPayload;
12
12
  export declare const shareTriggerButtonClicked: () => AnalyticsEventPayload;
13
13
  export declare type TabSubjectIdType = 'shareTab' | 'shareToSlackTab';
14
- export declare const shareTabClicked: (subjectId: TabSubjectIdType, shareContentType?: string | undefined, isJwmShareToSlackFFEnabled?: boolean | undefined) => AnalyticsEventPayload;
14
+ export declare const shareTabClicked: (subjectId: TabSubjectIdType, shareContentType?: string | undefined) => AnalyticsEventPayload;
15
15
  export declare const cancelShare: (start: number) => AnalyticsEventPayload;
16
16
  export declare const shortUrlRequested: () => AnalyticsEventPayload;
17
17
  export declare const shortUrlGenerated: (start: number, tooSlow: boolean) => AnalyticsEventPayload;
@@ -144,5 +144,4 @@ export declare type ShareDialogContainerProps = {
144
144
  tabIndex?: number;
145
145
  copyTooltipText?: string;
146
146
  isBrowseUsersDisabled?: boolean;
147
- isJwmShareToSlackFFEnabled?: boolean;
148
147
  };
@@ -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' | 'isJwmShareToSlackFFEnabled' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled'> & {
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' | 'isBrowseUsersDisabled'> & {
23
23
  config?: ConfigResponse;
24
24
  isFetchingConfig?: boolean;
25
25
  children?: RenderCustomTriggerButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/report.api.md CHANGED
@@ -241,7 +241,6 @@ export const ShareDialogContainer: React_2.ForwardRefExoticComponent<
241
241
  | 'isAutoOpenDialog'
242
242
  | 'isBrowseUsersDisabled'
243
243
  | 'isCopyDisabled'
244
- | 'isJwmShareToSlackFFEnabled'
245
244
  | 'isPublicLink'
246
245
  | 'loadUserOptions'
247
246
  | 'loggedInAccountId'
@@ -343,7 +342,6 @@ export type ShareDialogContainerProps = {
343
342
  tabIndex?: number;
344
343
  copyTooltipText?: string;
345
344
  isBrowseUsersDisabled?: boolean;
346
- isJwmShareToSlackFFEnabled?: boolean;
347
345
  };
348
346
 
349
347
  // @public (undocumented)
@@ -189,7 +189,7 @@ export type ShareContentState = {
189
189
  };
190
190
 
191
191
  // @public (undocumented)
192
- export const ShareDialogContainer: React_2.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "bottomMessage" | "cloudId" | "copyTooltipText" | "customFooter" | "dialogPlacement" | "dialogZIndex" | "formatCopyLink" | "integrationMode" | "isAutoOpenDialog" | "isBrowseUsersDisabled" | "isCopyDisabled" | "isJwmShareToSlackFFEnabled" | "isPublicLink" | "loadUserOptions" | "loggedInAccountId" | "onDialogClose" | "onDialogOpen" | "onTriggerButtonClick" | "onUserSelectionChange" | "orgId" | "originTracingFactory" | "productId" | "renderCustomTriggerButton" | "shareAri" | "shareClient" | "shareContentType" | "shareFieldsFooter" | "shareFormHelperMessage" | "shareFormTitle" | "shareIntegrations" | "shareLink" | "shareTitle" | "shortLinkData" | "shouldCloseOnEscapePress" | "showFlags" | "tabIndex" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "urlShortenerClient" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
192
+ export const ShareDialogContainer: React_2.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "bottomMessage" | "cloudId" | "copyTooltipText" | "customFooter" | "dialogPlacement" | "dialogZIndex" | "formatCopyLink" | "integrationMode" | "isAutoOpenDialog" | "isBrowseUsersDisabled" | "isCopyDisabled" | "isPublicLink" | "loadUserOptions" | "loggedInAccountId" | "onDialogClose" | "onDialogOpen" | "onTriggerButtonClick" | "onUserSelectionChange" | "orgId" | "originTracingFactory" | "productId" | "renderCustomTriggerButton" | "shareAri" | "shareClient" | "shareContentType" | "shareFieldsFooter" | "shareFormHelperMessage" | "shareFormTitle" | "shareIntegrations" | "shareLink" | "shareTitle" | "shortLinkData" | "shouldCloseOnEscapePress" | "showFlags" | "tabIndex" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "urlShortenerClient" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
193
193
  enableSmartUserPicker: boolean;
194
194
  shareeAction: "edit" | "view";
195
195
  product: string;
@@ -242,7 +242,6 @@ export type ShareDialogContainerProps = {
242
242
  tabIndex?: number;
243
243
  copyTooltipText?: string;
244
244
  isBrowseUsersDisabled?: boolean;
245
- isJwmShareToSlackFFEnabled?: boolean;
246
245
  };
247
246
 
248
247
  // @public (undocumented)