@atlaskit/share 3.6.1 → 3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 3.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`fb2fac8e456`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fb2fac8e456) - Passing down the shareContentType prop to allow custom feedback messages
8
+
3
9
  ## 3.6.1
4
10
 
5
11
  ### Patch Changes
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
10
12
  var _react = _interopRequireDefault(require("react"));
11
13
 
12
14
  var _react2 = require("@emotion/react");
@@ -71,6 +73,8 @@ function LazyShareForm(props) {
71
73
  defaultValue = props.defaultValue,
72
74
  showTitle = props.showTitle,
73
75
  orgId = props.orgId,
76
+ shareContentType = props.shareContentType,
77
+ isJwmShareToSlackFFEnabled = props.isJwmShareToSlackFFEnabled,
74
78
  isBrowseUsersDisabled = props.isBrowseUsersDisabled;
75
79
  var footer = (0, _react2.jsx)("div", null, bottomMessage ? (0, _react2.jsx)("div", {
76
80
  css: {
@@ -99,7 +103,7 @@ function LazyShareForm(props) {
99
103
  }, (0, _react2.jsx)(_IntegrationForm.IntegrationForm, {
100
104
  Content: selectedIntegration.Content,
101
105
  onIntegrationClose: onDialogClose
102
- })) : (0, _react2.jsx)(_react.default.Fragment, null, allowEmail || !isBrowseUsersDisabled ? (0, _react2.jsx)(_ShareForm.ShareForm, {
106
+ })) : (0, _react2.jsx)(_react.default.Fragment, null, allowEmail || !isBrowseUsersDisabled ? (0, _react2.jsx)(_ShareForm.ShareForm, (0, _extends2.default)({
103
107
  copyLink: copyLink,
104
108
  loadOptions: loadOptions,
105
109
  title: shareFormTitle,
@@ -114,7 +118,10 @@ function LazyShareForm(props) {
114
118
  loggedInAccountId: loggedInAccountId,
115
119
  cloudId: cloudId,
116
120
  fieldsFooter: shareFieldsFooter,
117
- selectPortalRef: selectPortalRef,
121
+ selectPortalRef: selectPortalRef
122
+ }, isJwmShareToSlackFFEnabled && {
123
+ shareContentType: shareContentType
124
+ }, {
118
125
  copyTooltipText: copyTooltipText,
119
126
  integrationMode: integrationMode,
120
127
  shareIntegrations: shareIntegrations,
@@ -129,7 +136,7 @@ function LazyShareForm(props) {
129
136
  handleCloseDialog: onDialogClose,
130
137
  onTabChange: onTabChange,
131
138
  isBrowseUsersDisabled: isBrowseUsersDisabled
132
- }) : (0, _react2.jsx)("p", null, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.formNoPermissions))));
139
+ })) : (0, _react2.jsx)("p", null, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.formNoPermissions))));
133
140
  }
134
141
 
135
142
  var _default = LazyShareForm;
@@ -148,12 +148,15 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
148
148
  });
149
149
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onTabChange", function (index) {
150
150
  var subjectId = 'shareTab';
151
+ var _this$props3 = _this.props,
152
+ shareContentType = _this$props3.shareContentType,
153
+ isJwmShareToSlackFFEnabled = _this$props3.isJwmShareToSlackFFEnabled;
151
154
 
152
155
  if (index === 1) {
153
156
  subjectId = 'shareToSlackTab';
154
157
  }
155
158
 
156
- _this.createAndFireEvent((0, _analytics.shareTabClicked)(subjectId));
159
+ _this.createAndFireEvent((0, _analytics.shareTabClicked)(subjectId, shareContentType, isJwmShareToSlackFFEnabled));
157
160
 
158
161
  _this.setState({
159
162
  tabIndex: index
@@ -239,9 +242,9 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
239
242
  selectedIntegration: null
240
243
  };
241
244
  }, function () {
242
- var _this$props3 = _this.props,
243
- onDialogOpen = _this$props3.onDialogOpen,
244
- isPublicLink = _this$props3.isPublicLink;
245
+ var _this$props4 = _this.props,
246
+ onDialogOpen = _this$props4.onDialogOpen,
247
+ isPublicLink = _this$props4.isPublicLink;
245
248
  var isDialogOpen = _this.state.isDialogOpen;
246
249
 
247
250
  if (isDialogOpen) {
@@ -288,12 +291,12 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
288
291
  });
289
292
  });
290
293
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleShareSubmit", function (data) {
291
- var _this$props4 = _this.props,
292
- onShareSubmit = _this$props4.onShareSubmit,
293
- shareContentType = _this$props4.shareContentType,
294
- formShareOrigin = _this$props4.formShareOrigin,
295
- showFlags = _this$props4.showFlags,
296
- isPublicLink = _this$props4.isPublicLink;
294
+ var _this$props5 = _this.props,
295
+ onShareSubmit = _this$props5.onShareSubmit,
296
+ shareContentType = _this$props5.shareContentType,
297
+ formShareOrigin = _this$props5.formShareOrigin,
298
+ showFlags = _this$props5.showFlags,
299
+ isPublicLink = _this$props5.isPublicLink;
297
300
 
298
301
  if (!onShareSubmit) {
299
302
  return;
@@ -337,11 +340,11 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
337
340
  });
338
341
  });
339
342
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleCopyLink", function () {
340
- var _this$props5 = _this.props,
341
- copyLinkOrigin = _this$props5.copyLinkOrigin,
342
- shareContentType = _this$props5.shareContentType,
343
- isPublicLink = _this$props5.isPublicLink,
344
- shareAri = _this$props5.shareAri;
343
+ var _this$props6 = _this.props,
344
+ copyLinkOrigin = _this$props6.copyLinkOrigin,
345
+ shareContentType = _this$props6.shareContentType,
346
+ isPublicLink = _this$props6.isPublicLink,
347
+ shareAri = _this$props6.shareAri;
345
348
 
346
349
  _this.createAndFireEvent((0, _analytics.copyLinkButtonClicked)(_this.start, shareContentType, copyLinkOrigin, isPublicLink, shareAri));
347
350
  });
@@ -357,19 +360,19 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
357
360
  var _this$state2 = _this.state,
358
361
  isDialogOpen = _this$state2.isDialogOpen,
359
362
  isUsingSplitButton = _this$state2.isUsingSplitButton;
360
- var _this$props6 = _this.props,
361
- formatMessage = _this$props6.intl.formatMessage,
362
- isDisabled = _this$props6.isDisabled,
363
- renderCustomTriggerButton = _this$props6.renderCustomTriggerButton,
364
- triggerButtonIcon = _this$props6.triggerButtonIcon,
365
- triggerButtonTooltipText = _this$props6.triggerButtonTooltipText,
366
- triggerButtonTooltipPosition = _this$props6.triggerButtonTooltipPosition,
367
- triggerButtonAppearance = _this$props6.triggerButtonAppearance,
368
- triggerButtonStyle = _this$props6.triggerButtonStyle,
369
- integrationMode = _this$props6.integrationMode,
370
- shareIntegrations = _this$props6.shareIntegrations,
371
- dialogZIndex = _this$props6.dialogZIndex,
372
- dialogPlacement = _this$props6.dialogPlacement;
363
+ var _this$props7 = _this.props,
364
+ formatMessage = _this$props7.intl.formatMessage,
365
+ isDisabled = _this$props7.isDisabled,
366
+ renderCustomTriggerButton = _this$props7.renderCustomTriggerButton,
367
+ triggerButtonIcon = _this$props7.triggerButtonIcon,
368
+ triggerButtonTooltipText = _this$props7.triggerButtonTooltipText,
369
+ triggerButtonTooltipPosition = _this$props7.triggerButtonTooltipPosition,
370
+ triggerButtonAppearance = _this$props7.triggerButtonAppearance,
371
+ triggerButtonStyle = _this$props7.triggerButtonStyle,
372
+ integrationMode = _this$props7.integrationMode,
373
+ shareIntegrations = _this$props7.shareIntegrations,
374
+ dialogZIndex = _this$props7.dialogZIndex,
375
+ dialogPlacement = _this$props7.dialogPlacement;
373
376
  var button;
374
377
  var ShareButtonIcon = triggerButtonIcon || _share.default; // Render a custom or standard button.
375
378
 
@@ -465,31 +468,32 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
465
468
  defaultValue = _this$state3.defaultValue,
466
469
  showIntegrationForm = _this$state3.showIntegrationForm,
467
470
  selectedIntegration = _this$state3.selectedIntegration;
468
- var _this$props7 = this.props,
469
- copyLink = _this$props7.copyLink,
470
- dialogPlacement = _this$props7.dialogPlacement,
471
- config = _this$props7.config,
472
- isFetchingConfig = _this$props7.isFetchingConfig,
473
- loadUserOptions = _this$props7.loadUserOptions,
474
- shareFormTitle = _this$props7.shareFormTitle,
475
- shareFormHelperMessage = _this$props7.shareFormHelperMessage,
476
- bottomMessage = _this$props7.bottomMessage,
477
- submitButtonLabel = _this$props7.submitButtonLabel,
478
- product = _this$props7.product,
479
- customFooter = _this$props7.customFooter,
480
- enableSmartUserPicker = _this$props7.enableSmartUserPicker,
481
- loggedInAccountId = _this$props7.loggedInAccountId,
482
- cloudId = _this$props7.cloudId,
483
- orgId = _this$props7.orgId,
484
- shareFieldsFooter = _this$props7.shareFieldsFooter,
485
- onUserSelectionChange = _this$props7.onUserSelectionChange,
486
- dialogZIndex = _this$props7.dialogZIndex,
487
- isPublicLink = _this$props7.isPublicLink,
488
- tabIndex = _this$props7.tabIndex,
489
- copyTooltipText = _this$props7.copyTooltipText,
490
- integrationMode = _this$props7.integrationMode,
491
- shareIntegrations = _this$props7.shareIntegrations,
492
- isBrowseUsersDisabled = _this$props7.isBrowseUsersDisabled;
471
+ var _this$props8 = this.props,
472
+ copyLink = _this$props8.copyLink,
473
+ dialogPlacement = _this$props8.dialogPlacement,
474
+ config = _this$props8.config,
475
+ isFetchingConfig = _this$props8.isFetchingConfig,
476
+ loadUserOptions = _this$props8.loadUserOptions,
477
+ shareFormTitle = _this$props8.shareFormTitle,
478
+ shareFormHelperMessage = _this$props8.shareFormHelperMessage,
479
+ bottomMessage = _this$props8.bottomMessage,
480
+ submitButtonLabel = _this$props8.submitButtonLabel,
481
+ product = _this$props8.product,
482
+ customFooter = _this$props8.customFooter,
483
+ enableSmartUserPicker = _this$props8.enableSmartUserPicker,
484
+ loggedInAccountId = _this$props8.loggedInAccountId,
485
+ cloudId = _this$props8.cloudId,
486
+ orgId = _this$props8.orgId,
487
+ shareFieldsFooter = _this$props8.shareFieldsFooter,
488
+ onUserSelectionChange = _this$props8.onUserSelectionChange,
489
+ dialogZIndex = _this$props8.dialogZIndex,
490
+ isPublicLink = _this$props8.isPublicLink,
491
+ tabIndex = _this$props8.tabIndex,
492
+ copyTooltipText = _this$props8.copyTooltipText,
493
+ integrationMode = _this$props8.integrationMode,
494
+ shareIntegrations = _this$props8.shareIntegrations,
495
+ isBrowseUsersDisabled = _this$props8.isBrowseUsersDisabled,
496
+ shareContentType = _this$props8.shareContentType;
493
497
  var style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
494
498
  outline: 'none'
495
499
  } : undefined;
@@ -517,6 +521,7 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
517
521
  showTitle: integrationMode !== 'tabs' || !shareIntegrations || !shareIntegrations.length,
518
522
  shareFormHelperMessage: shareFormHelperMessage,
519
523
  shareError: shareError,
524
+ shareContentType: shareContentType,
520
525
  defaultValue: defaultValue,
521
526
  config: config,
522
527
  isFetchingConfig: isFetchingConfig,
@@ -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.6.1"
22
+ packageVersion: "3.7.0"
23
23
  }, attributes);
24
24
  };
25
25
 
@@ -92,8 +92,10 @@ var shareTriggerButtonClicked = function shareTriggerButtonClicked() {
92
92
 
93
93
  exports.shareTriggerButtonClicked = shareTriggerButtonClicked;
94
94
 
95
- var shareTabClicked = function shareTabClicked(subjectId) {
96
- return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab');
95
+ var shareTabClicked = function shareTabClicked(subjectId, shareContentType, isJwmShareToSlackFFEnabled) {
96
+ return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', isJwmShareToSlackFFEnabled && {
97
+ shareContentType: shareContentType
98
+ });
97
99
  };
98
100
 
99
101
  exports.shareTabClicked = shareTabClicked;
package/dist/cjs/i18n.js CHANGED
@@ -171,7 +171,7 @@ var messages = (0, _reactIntlNext.defineMessages)({
171
171
  shareSuccessMessage: {
172
172
  id: 'fabric.elements.share.success.message',
173
173
  defaultMessage: '{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' + // this is a placeholder for Invite to edit in Confluence
174
- 'filter {Filter shared}' + 'issue {Issue shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Roadmap shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
174
+ 'filter {Filter shared}' + 'issue {Issue shared}' + 'summary {Summary shared}' + 'list {List shared}' + 'timeline {Timeline shared}' + 'form {Form shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Roadmap shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
175
175
  description: 'Default text for share success message displayed in a flag'
176
176
  },
177
177
  shareToIntegrationButtonText: {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.6.1"
3
+ "version": "3.7.0"
4
4
  }
@@ -1,3 +1,5 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+
1
3
  /** @jsx jsx */
2
4
 
3
5
  /** @jsxFrag */
@@ -55,6 +57,8 @@ function LazyShareForm(props) {
55
57
  defaultValue,
56
58
  showTitle,
57
59
  orgId,
60
+ shareContentType,
61
+ isJwmShareToSlackFFEnabled,
58
62
  isBrowseUsersDisabled
59
63
  } = props;
60
64
  const footer = jsx("div", null, bottomMessage ? jsx("div", {
@@ -82,7 +86,7 @@ function LazyShareForm(props) {
82
86
  }, jsx(IntegrationForm, {
83
87
  Content: selectedIntegration.Content,
84
88
  onIntegrationClose: onDialogClose
85
- })) : jsx(React.Fragment, null, allowEmail || !isBrowseUsersDisabled ? jsx(ShareForm, {
89
+ })) : jsx(React.Fragment, null, allowEmail || !isBrowseUsersDisabled ? jsx(ShareForm, _extends({
86
90
  copyLink: copyLink,
87
91
  loadOptions: loadOptions,
88
92
  title: shareFormTitle,
@@ -97,7 +101,10 @@ function LazyShareForm(props) {
97
101
  loggedInAccountId: loggedInAccountId,
98
102
  cloudId: cloudId,
99
103
  fieldsFooter: shareFieldsFooter,
100
- selectPortalRef: selectPortalRef,
104
+ selectPortalRef: selectPortalRef
105
+ }, isJwmShareToSlackFFEnabled && {
106
+ shareContentType
107
+ }, {
101
108
  copyTooltipText: copyTooltipText,
102
109
  integrationMode: integrationMode,
103
110
  shareIntegrations: shareIntegrations,
@@ -112,7 +119,7 @@ function LazyShareForm(props) {
112
119
  handleCloseDialog: onDialogClose,
113
120
  onTabChange: onTabChange,
114
121
  isBrowseUsersDisabled: isBrowseUsersDisabled
115
- }) : jsx("p", null, jsx(FormattedMessage, messages.formNoPermissions))));
122
+ })) : jsx("p", null, jsx(FormattedMessage, messages.formNoPermissions))));
116
123
  }
117
124
 
118
125
  export default LazyShareForm;
@@ -96,12 +96,16 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
96
96
 
97
97
  _defineProperty(this, "onTabChange", index => {
98
98
  let subjectId = 'shareTab';
99
+ const {
100
+ shareContentType,
101
+ isJwmShareToSlackFFEnabled
102
+ } = this.props;
99
103
 
100
104
  if (index === 1) {
101
105
  subjectId = 'shareToSlackTab';
102
106
  }
103
107
 
104
- this.createAndFireEvent(shareTabClicked(subjectId));
108
+ this.createAndFireEvent(shareTabClicked(subjectId, shareContentType, isJwmShareToSlackFFEnabled));
105
109
  this.setState({
106
110
  tabIndex: index
107
111
  });
@@ -442,7 +446,8 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
442
446
  copyTooltipText,
443
447
  integrationMode,
444
448
  shareIntegrations,
445
- isBrowseUsersDisabled
449
+ isBrowseUsersDisabled,
450
+ shareContentType
446
451
  } = this.props;
447
452
  const style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
448
453
  outline: 'none'
@@ -470,6 +475,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
470
475
  showTitle: integrationMode !== 'tabs' || !shareIntegrations || !shareIntegrations.length,
471
476
  shareFormHelperMessage: shareFormHelperMessage,
472
477
  shareError: shareError,
478
+ shareContentType: shareContentType,
473
479
  defaultValue: defaultValue,
474
480
  config: config,
475
481
  isFetchingConfig: isFetchingConfig,
@@ -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.6.1",
5
+ packageVersion: "3.7.0",
6
6
  ...attributes
7
7
  });
8
8
 
@@ -38,7 +38,9 @@ export const errorEncountered = (actionSubjectId, attributes = {}) => createEven
38
38
  }); // = share dialog invoked. Not to be confused with "share submitted"
39
39
 
40
40
  export const shareTriggerButtonClicked = () => createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'button', 'share');
41
- export const shareTabClicked = subjectId => createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab');
41
+ export const shareTabClicked = (subjectId, shareContentType, isJwmShareToSlackFFEnabled) => createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', isJwmShareToSlackFFEnabled && {
42
+ shareContentType
43
+ });
42
44
  export const cancelShare = start => createEvent('ui', ANALYTICS_SOURCE, 'pressed', 'keyboardShortcut', 'cancelShare', {
43
45
  source: ANALYTICS_SOURCE,
44
46
  duration: duration(start)
@@ -163,7 +163,7 @@ export const messages = defineMessages({
163
163
  shareSuccessMessage: {
164
164
  id: 'fabric.elements.share.success.message',
165
165
  defaultMessage: '{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' + // this is a placeholder for Invite to edit in Confluence
166
- 'filter {Filter shared}' + 'issue {Issue shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Roadmap shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
166
+ 'filter {Filter shared}' + 'issue {Issue shared}' + 'summary {Summary shared}' + 'list {List shared}' + 'timeline {Timeline shared}' + 'form {Form shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Roadmap shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
167
167
  description: 'Default text for share success message displayed in a flag'
168
168
  },
169
169
  shareToIntegrationButtonText: {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.6.1"
3
+ "version": "3.7.0"
4
4
  }
@@ -1,3 +1,5 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+
1
3
  /** @jsx jsx */
2
4
 
3
5
  /** @jsxFrag */
@@ -51,6 +53,8 @@ function LazyShareForm(props) {
51
53
  defaultValue = props.defaultValue,
52
54
  showTitle = props.showTitle,
53
55
  orgId = props.orgId,
56
+ shareContentType = props.shareContentType,
57
+ isJwmShareToSlackFFEnabled = props.isJwmShareToSlackFFEnabled,
54
58
  isBrowseUsersDisabled = props.isBrowseUsersDisabled;
55
59
  var footer = jsx("div", null, bottomMessage ? jsx("div", {
56
60
  css: {
@@ -77,7 +81,7 @@ function LazyShareForm(props) {
77
81
  }, jsx(IntegrationForm, {
78
82
  Content: selectedIntegration.Content,
79
83
  onIntegrationClose: onDialogClose
80
- })) : jsx(React.Fragment, null, allowEmail || !isBrowseUsersDisabled ? jsx(ShareForm, {
84
+ })) : jsx(React.Fragment, null, allowEmail || !isBrowseUsersDisabled ? jsx(ShareForm, _extends({
81
85
  copyLink: copyLink,
82
86
  loadOptions: loadOptions,
83
87
  title: shareFormTitle,
@@ -92,7 +96,10 @@ function LazyShareForm(props) {
92
96
  loggedInAccountId: loggedInAccountId,
93
97
  cloudId: cloudId,
94
98
  fieldsFooter: shareFieldsFooter,
95
- selectPortalRef: selectPortalRef,
99
+ selectPortalRef: selectPortalRef
100
+ }, isJwmShareToSlackFFEnabled && {
101
+ shareContentType: shareContentType
102
+ }, {
96
103
  copyTooltipText: copyTooltipText,
97
104
  integrationMode: integrationMode,
98
105
  shareIntegrations: shareIntegrations,
@@ -107,7 +114,7 @@ function LazyShareForm(props) {
107
114
  handleCloseDialog: onDialogClose,
108
115
  onTabChange: onTabChange,
109
116
  isBrowseUsersDisabled: isBrowseUsersDisabled
110
- }) : jsx("p", null, jsx(FormattedMessage, messages.formNoPermissions))));
117
+ })) : jsx("p", null, jsx(FormattedMessage, messages.formNoPermissions))));
111
118
  }
112
119
 
113
120
  export default LazyShareForm;
@@ -121,12 +121,15 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
121
121
 
122
122
  _defineProperty(_assertThisInitialized(_this), "onTabChange", function (index) {
123
123
  var subjectId = 'shareTab';
124
+ var _this$props3 = _this.props,
125
+ shareContentType = _this$props3.shareContentType,
126
+ isJwmShareToSlackFFEnabled = _this$props3.isJwmShareToSlackFFEnabled;
124
127
 
125
128
  if (index === 1) {
126
129
  subjectId = 'shareToSlackTab';
127
130
  }
128
131
 
129
- _this.createAndFireEvent(shareTabClicked(subjectId));
132
+ _this.createAndFireEvent(shareTabClicked(subjectId, shareContentType, isJwmShareToSlackFFEnabled));
130
133
 
131
134
  _this.setState({
132
135
  tabIndex: index
@@ -217,9 +220,9 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
217
220
  selectedIntegration: null
218
221
  };
219
222
  }, function () {
220
- var _this$props3 = _this.props,
221
- onDialogOpen = _this$props3.onDialogOpen,
222
- isPublicLink = _this$props3.isPublicLink;
223
+ var _this$props4 = _this.props,
224
+ onDialogOpen = _this$props4.onDialogOpen,
225
+ isPublicLink = _this$props4.isPublicLink;
223
226
  var isDialogOpen = _this.state.isDialogOpen;
224
227
 
225
228
  if (isDialogOpen) {
@@ -269,12 +272,12 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
269
272
  });
270
273
 
271
274
  _defineProperty(_assertThisInitialized(_this), "handleShareSubmit", function (data) {
272
- var _this$props4 = _this.props,
273
- onShareSubmit = _this$props4.onShareSubmit,
274
- shareContentType = _this$props4.shareContentType,
275
- formShareOrigin = _this$props4.formShareOrigin,
276
- showFlags = _this$props4.showFlags,
277
- isPublicLink = _this$props4.isPublicLink;
275
+ var _this$props5 = _this.props,
276
+ onShareSubmit = _this$props5.onShareSubmit,
277
+ shareContentType = _this$props5.shareContentType,
278
+ formShareOrigin = _this$props5.formShareOrigin,
279
+ showFlags = _this$props5.showFlags,
280
+ isPublicLink = _this$props5.isPublicLink;
278
281
 
279
282
  if (!onShareSubmit) {
280
283
  return;
@@ -319,11 +322,11 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
319
322
  });
320
323
 
321
324
  _defineProperty(_assertThisInitialized(_this), "handleCopyLink", function () {
322
- var _this$props5 = _this.props,
323
- copyLinkOrigin = _this$props5.copyLinkOrigin,
324
- shareContentType = _this$props5.shareContentType,
325
- isPublicLink = _this$props5.isPublicLink,
326
- shareAri = _this$props5.shareAri;
325
+ var _this$props6 = _this.props,
326
+ copyLinkOrigin = _this$props6.copyLinkOrigin,
327
+ shareContentType = _this$props6.shareContentType,
328
+ isPublicLink = _this$props6.isPublicLink,
329
+ shareAri = _this$props6.shareAri;
327
330
 
328
331
  _this.createAndFireEvent(copyLinkButtonClicked(_this.start, shareContentType, copyLinkOrigin, isPublicLink, shareAri));
329
332
  });
@@ -341,19 +344,19 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
341
344
  var _this$state2 = _this.state,
342
345
  isDialogOpen = _this$state2.isDialogOpen,
343
346
  isUsingSplitButton = _this$state2.isUsingSplitButton;
344
- var _this$props6 = _this.props,
345
- formatMessage = _this$props6.intl.formatMessage,
346
- isDisabled = _this$props6.isDisabled,
347
- renderCustomTriggerButton = _this$props6.renderCustomTriggerButton,
348
- triggerButtonIcon = _this$props6.triggerButtonIcon,
349
- triggerButtonTooltipText = _this$props6.triggerButtonTooltipText,
350
- triggerButtonTooltipPosition = _this$props6.triggerButtonTooltipPosition,
351
- triggerButtonAppearance = _this$props6.triggerButtonAppearance,
352
- triggerButtonStyle = _this$props6.triggerButtonStyle,
353
- integrationMode = _this$props6.integrationMode,
354
- shareIntegrations = _this$props6.shareIntegrations,
355
- dialogZIndex = _this$props6.dialogZIndex,
356
- dialogPlacement = _this$props6.dialogPlacement;
347
+ var _this$props7 = _this.props,
348
+ formatMessage = _this$props7.intl.formatMessage,
349
+ isDisabled = _this$props7.isDisabled,
350
+ renderCustomTriggerButton = _this$props7.renderCustomTriggerButton,
351
+ triggerButtonIcon = _this$props7.triggerButtonIcon,
352
+ triggerButtonTooltipText = _this$props7.triggerButtonTooltipText,
353
+ triggerButtonTooltipPosition = _this$props7.triggerButtonTooltipPosition,
354
+ triggerButtonAppearance = _this$props7.triggerButtonAppearance,
355
+ triggerButtonStyle = _this$props7.triggerButtonStyle,
356
+ integrationMode = _this$props7.integrationMode,
357
+ shareIntegrations = _this$props7.shareIntegrations,
358
+ dialogZIndex = _this$props7.dialogZIndex,
359
+ dialogPlacement = _this$props7.dialogPlacement;
357
360
  var button;
358
361
  var ShareButtonIcon = triggerButtonIcon || ShareIcon; // Render a custom or standard button.
359
362
 
@@ -452,31 +455,32 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
452
455
  defaultValue = _this$state3.defaultValue,
453
456
  showIntegrationForm = _this$state3.showIntegrationForm,
454
457
  selectedIntegration = _this$state3.selectedIntegration;
455
- var _this$props7 = this.props,
456
- copyLink = _this$props7.copyLink,
457
- dialogPlacement = _this$props7.dialogPlacement,
458
- config = _this$props7.config,
459
- isFetchingConfig = _this$props7.isFetchingConfig,
460
- loadUserOptions = _this$props7.loadUserOptions,
461
- shareFormTitle = _this$props7.shareFormTitle,
462
- shareFormHelperMessage = _this$props7.shareFormHelperMessage,
463
- bottomMessage = _this$props7.bottomMessage,
464
- submitButtonLabel = _this$props7.submitButtonLabel,
465
- product = _this$props7.product,
466
- customFooter = _this$props7.customFooter,
467
- enableSmartUserPicker = _this$props7.enableSmartUserPicker,
468
- loggedInAccountId = _this$props7.loggedInAccountId,
469
- cloudId = _this$props7.cloudId,
470
- orgId = _this$props7.orgId,
471
- shareFieldsFooter = _this$props7.shareFieldsFooter,
472
- onUserSelectionChange = _this$props7.onUserSelectionChange,
473
- dialogZIndex = _this$props7.dialogZIndex,
474
- isPublicLink = _this$props7.isPublicLink,
475
- tabIndex = _this$props7.tabIndex,
476
- copyTooltipText = _this$props7.copyTooltipText,
477
- integrationMode = _this$props7.integrationMode,
478
- shareIntegrations = _this$props7.shareIntegrations,
479
- isBrowseUsersDisabled = _this$props7.isBrowseUsersDisabled;
458
+ var _this$props8 = this.props,
459
+ copyLink = _this$props8.copyLink,
460
+ dialogPlacement = _this$props8.dialogPlacement,
461
+ config = _this$props8.config,
462
+ isFetchingConfig = _this$props8.isFetchingConfig,
463
+ loadUserOptions = _this$props8.loadUserOptions,
464
+ shareFormTitle = _this$props8.shareFormTitle,
465
+ shareFormHelperMessage = _this$props8.shareFormHelperMessage,
466
+ bottomMessage = _this$props8.bottomMessage,
467
+ submitButtonLabel = _this$props8.submitButtonLabel,
468
+ product = _this$props8.product,
469
+ customFooter = _this$props8.customFooter,
470
+ enableSmartUserPicker = _this$props8.enableSmartUserPicker,
471
+ loggedInAccountId = _this$props8.loggedInAccountId,
472
+ cloudId = _this$props8.cloudId,
473
+ orgId = _this$props8.orgId,
474
+ shareFieldsFooter = _this$props8.shareFieldsFooter,
475
+ onUserSelectionChange = _this$props8.onUserSelectionChange,
476
+ dialogZIndex = _this$props8.dialogZIndex,
477
+ isPublicLink = _this$props8.isPublicLink,
478
+ tabIndex = _this$props8.tabIndex,
479
+ copyTooltipText = _this$props8.copyTooltipText,
480
+ integrationMode = _this$props8.integrationMode,
481
+ shareIntegrations = _this$props8.shareIntegrations,
482
+ isBrowseUsersDisabled = _this$props8.isBrowseUsersDisabled,
483
+ shareContentType = _this$props8.shareContentType;
480
484
  var style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
481
485
  outline: 'none'
482
486
  } : undefined;
@@ -504,6 +508,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
504
508
  showTitle: integrationMode !== 'tabs' || !shareIntegrations || !shareIntegrations.length,
505
509
  shareFormHelperMessage: shareFormHelperMessage,
506
510
  shareError: shareError,
511
+ shareContentType: shareContentType,
507
512
  defaultValue: defaultValue,
508
513
  config: config,
509
514
  isFetchingConfig: isFetchingConfig,
@@ -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.6.1"
13
+ packageVersion: "3.7.0"
14
14
  }, attributes);
15
15
  };
16
16
 
@@ -64,8 +64,10 @@ export var errorEncountered = function errorEncountered(actionSubjectId) {
64
64
  export var shareTriggerButtonClicked = function shareTriggerButtonClicked() {
65
65
  return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'button', 'share');
66
66
  };
67
- export var shareTabClicked = function shareTabClicked(subjectId) {
68
- return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab');
67
+ export var shareTabClicked = function shareTabClicked(subjectId, shareContentType, isJwmShareToSlackFFEnabled) {
68
+ return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab', isJwmShareToSlackFFEnabled && {
69
+ shareContentType: shareContentType
70
+ });
69
71
  };
70
72
  export var cancelShare = function cancelShare(start) {
71
73
  return createEvent('ui', ANALYTICS_SOURCE, 'pressed', 'keyboardShortcut', 'cancelShare', {
package/dist/esm/i18n.js CHANGED
@@ -163,7 +163,7 @@ export var messages = defineMessages({
163
163
  shareSuccessMessage: {
164
164
  id: 'fabric.elements.share.success.message',
165
165
  defaultMessage: '{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' + // this is a placeholder for Invite to edit in Confluence
166
- 'filter {Filter shared}' + 'issue {Issue shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Roadmap shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
166
+ 'filter {Filter shared}' + 'issue {Issue shared}' + 'summary {Summary shared}' + 'list {List shared}' + 'timeline {Timeline shared}' + 'form {Form shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Roadmap shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
167
167
  description: 'Default text for share success message displayed in a flag'
168
168
  },
169
169
  shareToIntegrationButtonText: {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.6.1"
3
+ "version": "3.7.0"
4
4
  }
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
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' | 'orgId' | 'isBrowseUsersDisabled'> & 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' | 'shareContentType' | 'isJwmShareToSlackFFEnabled' | 'isBrowseUsersDisabled'> & 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" | "orgId" | "isBrowseUsersDisabled" | "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" | "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<{
56
56
  enableSmartUserPicker: boolean;
57
57
  shareeAction: "view" | "edit";
58
58
  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) => AnalyticsEventPayload;
14
+ export declare const shareTabClicked: (subjectId: TabSubjectIdType, shareContentType?: string | undefined, isJwmShareToSlackFFEnabled?: boolean | 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;
@@ -142,4 +142,5 @@ export declare type ShareDialogContainerProps = {
142
142
  tabIndex?: number;
143
143
  copyTooltipText?: string;
144
144
  isBrowseUsersDisabled?: boolean;
145
+ isJwmShareToSlackFFEnabled?: boolean;
145
146
  };
@@ -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' | 'orgId' | 'isBrowseUsersDisabled'> & {
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'> & {
23
23
  config?: ConfigResponse;
24
24
  isFetchingConfig?: boolean;
25
25
  children?: RenderCustomTriggerButton;
@@ -16,6 +16,7 @@ export declare type ShareFormProps = Pick<ShareDialogContainerProps, 'integratio
16
16
  helperMessage?: string;
17
17
  defaultValue?: ShareData;
18
18
  product?: ProductName;
19
+ shareContentType?: string;
19
20
  fieldsFooter?: React.ReactNode;
20
21
  selectPortalRef?: React.Ref<HTMLDivElement>;
21
22
  isDisabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.6.1",
3
+ "version": "3.7.0",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/report.api.md CHANGED
@@ -241,6 +241,7 @@ export const ShareDialogContainer: React_2.ForwardRefExoticComponent<
241
241
  | 'isAutoOpenDialog'
242
242
  | 'isBrowseUsersDisabled'
243
243
  | 'isCopyDisabled'
244
+ | 'isJwmShareToSlackFFEnabled'
244
245
  | 'isPublicLink'
245
246
  | 'loadUserOptions'
246
247
  | 'loggedInAccountId'
@@ -342,6 +343,7 @@ export type ShareDialogContainerProps = {
342
343
  tabIndex?: number;
343
344
  copyTooltipText?: string;
344
345
  isBrowseUsersDisabled?: boolean;
346
+ isJwmShareToSlackFFEnabled?: boolean;
345
347
  };
346
348
 
347
349
  // @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" | "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" | "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<{
193
193
  enableSmartUserPicker: boolean;
194
194
  shareeAction: "edit" | "view";
195
195
  product: string;
@@ -242,6 +242,7 @@ export type ShareDialogContainerProps = {
242
242
  tabIndex?: number;
243
243
  copyTooltipText?: string;
244
244
  isBrowseUsersDisabled?: boolean;
245
+ isJwmShareToSlackFFEnabled?: boolean;
245
246
  };
246
247
 
247
248
  // @public (undocumented)