@atlaskit/share 4.25.4 → 4.25.6
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 +14 -0
- package/dist/cjs/components/ShareDialogWithTrigger.js +17 -1
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/ShareDialogWithTrigger.js +18 -2
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/ShareDialogWithTrigger.js +18 -2
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 4.25.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.25.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#112700](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112700)
|
|
14
|
+
[`801eca471b29b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/801eca471b29b) -
|
|
15
|
+
add new analytic
|
|
16
|
+
|
|
3
17
|
## 4.25.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -262,7 +262,8 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
|
|
|
262
262
|
shareContentId = _this$props4.shareContentId,
|
|
263
263
|
formShareOrigin = _this$props4.formShareOrigin,
|
|
264
264
|
showFlags = _this$props4.showFlags,
|
|
265
|
-
isPublicLink = _this$props4.isPublicLink
|
|
265
|
+
isPublicLink = _this$props4.isPublicLink,
|
|
266
|
+
createAnalyticsEvent = _this$props4.createAnalyticsEvent;
|
|
266
267
|
if (!onShareSubmit) {
|
|
267
268
|
return;
|
|
268
269
|
}
|
|
@@ -279,6 +280,21 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
|
|
|
279
280
|
shareContentSubType: shareContentSubType,
|
|
280
281
|
shareContentId: shareContentId
|
|
281
282
|
}));
|
|
283
|
+
if (createAnalyticsEvent) {
|
|
284
|
+
createAnalyticsEvent({
|
|
285
|
+
type: 'sendTrackEvent',
|
|
286
|
+
data: {
|
|
287
|
+
action: 'shared',
|
|
288
|
+
actionSubject: 'page',
|
|
289
|
+
source: _analytics.ANALYTICS_SOURCE,
|
|
290
|
+
attributes: {
|
|
291
|
+
contentType: shareContentType,
|
|
292
|
+
subContentType: shareContentSubType,
|
|
293
|
+
shareData: data
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}).fire();
|
|
297
|
+
}
|
|
282
298
|
onShareSubmit(data).then(function () {
|
|
283
299
|
_this.closeAndResetDialog();
|
|
284
300
|
_this.setState({
|
|
@@ -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.25.
|
|
16
|
+
packageVersion: "4.25.6"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -17,7 +17,7 @@ import { layers } from '@atlaskit/theme/constants';
|
|
|
17
17
|
import Aktooltip from '@atlaskit/tooltip';
|
|
18
18
|
import { messages } from '../i18n';
|
|
19
19
|
import { OBJECT_SHARED } from '../types';
|
|
20
|
-
import { cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, screenEvent, shareMenuItemClicked, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked
|
|
20
|
+
import { ANALYTICS_SOURCE, cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, screenEvent, shareMenuItemClicked, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked
|
|
21
21
|
// type TabSubjectIdType,
|
|
22
22
|
} from './analytics/analytics';
|
|
23
23
|
// eslint-disable-next-line no-duplicate-imports
|
|
@@ -260,7 +260,8 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
260
260
|
shareContentId,
|
|
261
261
|
formShareOrigin,
|
|
262
262
|
showFlags,
|
|
263
|
-
isPublicLink
|
|
263
|
+
isPublicLink,
|
|
264
|
+
createAnalyticsEvent
|
|
264
265
|
} = this.props;
|
|
265
266
|
if (!onShareSubmit) {
|
|
266
267
|
return;
|
|
@@ -278,6 +279,21 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
278
279
|
shareContentSubType,
|
|
279
280
|
shareContentId
|
|
280
281
|
}));
|
|
282
|
+
if (createAnalyticsEvent) {
|
|
283
|
+
createAnalyticsEvent({
|
|
284
|
+
type: 'sendTrackEvent',
|
|
285
|
+
data: {
|
|
286
|
+
action: 'shared',
|
|
287
|
+
actionSubject: 'page',
|
|
288
|
+
source: ANALYTICS_SOURCE,
|
|
289
|
+
attributes: {
|
|
290
|
+
contentType: shareContentType,
|
|
291
|
+
subContentType: shareContentSubType,
|
|
292
|
+
shareData: data
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}).fire();
|
|
296
|
+
}
|
|
281
297
|
onShareSubmit(data).then(() => {
|
|
282
298
|
this.closeAndResetDialog();
|
|
283
299
|
this.setState({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "4.25.
|
|
4
|
+
packageVersion: "4.25.6",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -28,7 +28,7 @@ import { layers } from '@atlaskit/theme/constants';
|
|
|
28
28
|
import Aktooltip from '@atlaskit/tooltip';
|
|
29
29
|
import { messages } from '../i18n';
|
|
30
30
|
import { OBJECT_SHARED } from '../types';
|
|
31
|
-
import { cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, screenEvent, shareMenuItemClicked, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked
|
|
31
|
+
import { ANALYTICS_SOURCE, cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, screenEvent, shareMenuItemClicked, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked
|
|
32
32
|
// type TabSubjectIdType,
|
|
33
33
|
} from './analytics/analytics';
|
|
34
34
|
// eslint-disable-next-line no-duplicate-imports
|
|
@@ -261,7 +261,8 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
261
261
|
shareContentId = _this$props4.shareContentId,
|
|
262
262
|
formShareOrigin = _this$props4.formShareOrigin,
|
|
263
263
|
showFlags = _this$props4.showFlags,
|
|
264
|
-
isPublicLink = _this$props4.isPublicLink
|
|
264
|
+
isPublicLink = _this$props4.isPublicLink,
|
|
265
|
+
createAnalyticsEvent = _this$props4.createAnalyticsEvent;
|
|
265
266
|
if (!onShareSubmit) {
|
|
266
267
|
return;
|
|
267
268
|
}
|
|
@@ -278,6 +279,21 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
278
279
|
shareContentSubType: shareContentSubType,
|
|
279
280
|
shareContentId: shareContentId
|
|
280
281
|
}));
|
|
282
|
+
if (createAnalyticsEvent) {
|
|
283
|
+
createAnalyticsEvent({
|
|
284
|
+
type: 'sendTrackEvent',
|
|
285
|
+
data: {
|
|
286
|
+
action: 'shared',
|
|
287
|
+
actionSubject: 'page',
|
|
288
|
+
source: ANALYTICS_SOURCE,
|
|
289
|
+
attributes: {
|
|
290
|
+
contentType: shareContentType,
|
|
291
|
+
subContentType: shareContentSubType,
|
|
292
|
+
shareData: data
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}).fire();
|
|
296
|
+
}
|
|
281
297
|
onShareSubmit(data).then(function () {
|
|
282
298
|
_this.closeAndResetDialog();
|
|
283
299
|
_this.setState({
|
|
@@ -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.25.
|
|
9
|
+
packageVersion: "4.25.6"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.6",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/icon": "^23.9.0",
|
|
47
47
|
"@atlaskit/link": "^2.1.0",
|
|
48
48
|
"@atlaskit/menu": "^2.14.0",
|
|
49
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
49
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/popper": "^6.4.0",
|
|
51
51
|
"@atlaskit/popup": "^1.31.0",
|
|
52
52
|
"@atlaskit/portal": "^4.11.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/spinner": "^17.1.0",
|
|
56
56
|
"@atlaskit/tabs": "^17.2.0",
|
|
57
57
|
"@atlaskit/textarea": "^7.0.0",
|
|
58
|
-
"@atlaskit/theme": "^
|
|
58
|
+
"@atlaskit/theme": "^16.0.0",
|
|
59
59
|
"@atlaskit/tokens": "^3.3.0",
|
|
60
60
|
"@atlaskit/tooltip": "^19.1.0",
|
|
61
61
|
"@atlaskit/ufo": "^0.3.0",
|