@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 +6 -0
- package/dist/cjs/components/ShareDialogContainer.js +0 -2
- package/dist/cjs/components/ShareDialogWithTrigger.js +54 -56
- package/dist/cjs/components/analytics/analytics.js +3 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/ShareDialogContainer.js +0 -2
- package/dist/es2019/components/ShareDialogWithTrigger.js +2 -3
- package/dist/es2019/components/analytics/analytics.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/ShareDialogContainer.js +0 -2
- package/dist/esm/components/ShareDialogWithTrigger.js +54 -56
- package/dist/esm/components/analytics/analytics.js +3 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/components/ShareDialogContainer.d.ts +1 -1
- package/dist/types/components/analytics/analytics.d.ts +1 -1
- package/dist/types/types/ShareDialogContainer.d.ts +0 -1
- package/dist/types/types/ShareDialogWithTrigger.d.ts +1 -1
- package/package.json +1 -1
- package/report.api.md +0 -2
- package/tmp/api-report-tmp.d.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -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
|
|
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
|
|
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$
|
|
191
|
-
onDialogOpen = _this$
|
|
192
|
-
isPublicLink = _this$
|
|
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$
|
|
232
|
-
onShareSubmit = _this$
|
|
233
|
-
shareContentType = _this$
|
|
234
|
-
formShareOrigin = _this$
|
|
235
|
-
showFlags = _this$
|
|
236
|
-
isPublicLink = _this$
|
|
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$
|
|
272
|
-
copyLinkOrigin = _this$
|
|
273
|
-
shareContentType = _this$
|
|
274
|
-
isPublicLink = _this$
|
|
275
|
-
shareAri = _this$
|
|
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$
|
|
291
|
-
formatMessage = _this$
|
|
292
|
-
isDisabled = _this$
|
|
293
|
-
renderCustomTriggerButton = _this$
|
|
294
|
-
triggerButtonIcon = _this$
|
|
295
|
-
triggerButtonTooltipText = _this$
|
|
296
|
-
triggerButtonTooltipPosition = _this$
|
|
297
|
-
triggerButtonAppearance = _this$
|
|
298
|
-
triggerButtonStyle = _this$
|
|
299
|
-
integrationMode = _this$
|
|
300
|
-
shareIntegrations = _this$
|
|
301
|
-
dialogZIndex = _this$
|
|
302
|
-
dialogPlacement = _this$
|
|
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$
|
|
396
|
-
copyLink = _this$
|
|
397
|
-
dialogPlacement = _this$
|
|
398
|
-
config = _this$
|
|
399
|
-
isFetchingConfig = _this$
|
|
400
|
-
loadUserOptions = _this$
|
|
401
|
-
shareFormTitle = _this$
|
|
402
|
-
shareFormHelperMessage = _this$
|
|
403
|
-
bottomMessage = _this$
|
|
404
|
-
submitButtonLabel = _this$
|
|
405
|
-
product = _this$
|
|
406
|
-
customFooter = _this$
|
|
407
|
-
enableSmartUserPicker = _this$
|
|
408
|
-
loggedInAccountId = _this$
|
|
409
|
-
cloudId = _this$
|
|
410
|
-
orgId = _this$
|
|
411
|
-
shareFieldsFooter = _this$
|
|
412
|
-
onUserSelectionChange = _this$
|
|
413
|
-
dialogZIndex = _this$
|
|
414
|
-
isPublicLink = _this$
|
|
415
|
-
tabIndex = _this$
|
|
416
|
-
copyTooltipText = _this$
|
|
417
|
-
integrationMode = _this$
|
|
418
|
-
shareIntegrations = _this$
|
|
419
|
-
isBrowseUsersDisabled = _this$
|
|
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.
|
|
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
|
|
77
|
-
return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab',
|
|
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
|
};
|
package/dist/cjs/version.json
CHANGED
|
@@ -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
|
|
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.
|
|
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
|
|
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', {
|
package/dist/es2019/version.json
CHANGED
|
@@ -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
|
|
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
|
|
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$
|
|
188
|
-
onDialogOpen = _this$
|
|
189
|
-
isPublicLink = _this$
|
|
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$
|
|
229
|
-
onShareSubmit = _this$
|
|
230
|
-
shareContentType = _this$
|
|
231
|
-
formShareOrigin = _this$
|
|
232
|
-
showFlags = _this$
|
|
233
|
-
isPublicLink = _this$
|
|
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$
|
|
269
|
-
copyLinkOrigin = _this$
|
|
270
|
-
shareContentType = _this$
|
|
271
|
-
isPublicLink = _this$
|
|
272
|
-
shareAri = _this$
|
|
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$
|
|
288
|
-
formatMessage = _this$
|
|
289
|
-
isDisabled = _this$
|
|
290
|
-
renderCustomTriggerButton = _this$
|
|
291
|
-
triggerButtonIcon = _this$
|
|
292
|
-
triggerButtonTooltipText = _this$
|
|
293
|
-
triggerButtonTooltipPosition = _this$
|
|
294
|
-
triggerButtonAppearance = _this$
|
|
295
|
-
triggerButtonStyle = _this$
|
|
296
|
-
integrationMode = _this$
|
|
297
|
-
shareIntegrations = _this$
|
|
298
|
-
dialogZIndex = _this$
|
|
299
|
-
dialogPlacement = _this$
|
|
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$
|
|
393
|
-
copyLink = _this$
|
|
394
|
-
dialogPlacement = _this$
|
|
395
|
-
config = _this$
|
|
396
|
-
isFetchingConfig = _this$
|
|
397
|
-
loadUserOptions = _this$
|
|
398
|
-
shareFormTitle = _this$
|
|
399
|
-
shareFormHelperMessage = _this$
|
|
400
|
-
bottomMessage = _this$
|
|
401
|
-
submitButtonLabel = _this$
|
|
402
|
-
product = _this$
|
|
403
|
-
customFooter = _this$
|
|
404
|
-
enableSmartUserPicker = _this$
|
|
405
|
-
loggedInAccountId = _this$
|
|
406
|
-
cloudId = _this$
|
|
407
|
-
orgId = _this$
|
|
408
|
-
shareFieldsFooter = _this$
|
|
409
|
-
onUserSelectionChange = _this$
|
|
410
|
-
dialogZIndex = _this$
|
|
411
|
-
isPublicLink = _this$
|
|
412
|
-
tabIndex = _this$
|
|
413
|
-
copyTooltipText = _this$
|
|
414
|
-
integrationMode = _this$
|
|
415
|
-
shareIntegrations = _this$
|
|
416
|
-
isBrowseUsersDisabled = _this$
|
|
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.
|
|
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
|
|
62
|
-
return createEvent('ui', ANALYTICS_SOURCE, 'clicked', 'tab', subjectId || 'shareTab',
|
|
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
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -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" | "
|
|
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
|
|
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;
|
|
@@ -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' | '
|
|
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
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)
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -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" | "
|
|
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)
|