@atlaskit/share 4.16.0 → 4.16.1

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,12 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#76695](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76695) [`dcde4602dfb8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dcde4602dfb8) - Track # of non licensed users when submitShare is fired
8
+ - Updated dependencies
9
+
3
10
  ## 4.16.0
4
11
 
5
12
  ### Minor Changes
@@ -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.0"
16
+ packageVersion: "4.16.1"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -106,7 +106,9 @@ var copyLinkButtonClicked = exports.copyLinkButtonClicked = function copyLinkBut
106
106
  contentSubType: shareContentSubType,
107
107
  contentId: shareContentId,
108
108
  isPublicLink: isPublicLink,
109
- ari: ari
109
+ ari: ari,
110
+ // this specific string is needed for marking a successful navigation session
111
+ navdexPointType: 'navigationSessionEnd'
110
112
  }, getOriginTracingAttributes(shareOrigin)));
111
113
  };
112
114
  var formShareSubmitted = exports.formShareSubmitted = function formShareSubmitted(_ref3) {
@@ -119,6 +121,7 @@ var formShareSubmitted = exports.formShareSubmitted = function formShareSubmitte
119
121
  _ref3$isPublicLink = _ref3.isPublicLink,
120
122
  isPublicLink = _ref3$isPublicLink === void 0 ? false : _ref3$isPublicLink;
121
123
  var users = extractIdsByType(data, _smartUserPicker.isUser);
124
+ var externalUsers = extractIdsByType(data, _smartUserPicker.isExternalUser);
122
125
  var teams = extractIdsByType(data, _smartUserPicker.isTeam);
123
126
  var teamUserCounts = extractMemberCountsFromTeams(data, _smartUserPicker.isTeam);
124
127
  var emails = extractIdsByType(data, _smartUserPicker.isEmail);
@@ -130,6 +133,7 @@ var formShareSubmitted = exports.formShareSubmitted = function formShareSubmitte
130
133
  emailCount: emails.length,
131
134
  teamCount: teams.length,
132
135
  userCount: users.length,
136
+ externalUserCount: externalUsers.length,
133
137
  users: users,
134
138
  teams: teams,
135
139
  teamUserCounts: teamUserCounts,
@@ -1,7 +1,7 @@
1
- import { isEmail, isTeam, isUser } from '@atlaskit/smart-user-picker';
1
+ import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.16.0",
4
+ packageVersion: "4.16.1",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -69,6 +69,8 @@ export const copyLinkButtonClicked = ({
69
69
  contentId: shareContentId,
70
70
  isPublicLink,
71
71
  ari,
72
+ // this specific string is needed for marking a successful navigation session
73
+ navdexPointType: 'navigationSessionEnd',
72
74
  ...getOriginTracingAttributes(shareOrigin)
73
75
  });
74
76
  export const formShareSubmitted = ({
@@ -81,6 +83,7 @@ export const formShareSubmitted = ({
81
83
  isPublicLink = false
82
84
  }) => {
83
85
  const users = extractIdsByType(data, isUser);
86
+ const externalUsers = extractIdsByType(data, isExternalUser);
84
87
  const teams = extractIdsByType(data, isTeam);
85
88
  const teamUserCounts = extractMemberCountsFromTeams(data, isTeam);
86
89
  const emails = extractIdsByType(data, isEmail);
@@ -93,6 +96,7 @@ export const formShareSubmitted = ({
93
96
  emailCount: emails.length,
94
97
  teamCount: teams.length,
95
98
  userCount: users.length,
99
+ externalUserCount: externalUsers.length,
96
100
  users,
97
101
  teams,
98
102
  teamUserCounts,
@@ -1,12 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import { isEmail, isTeam, isUser } from '@atlaskit/smart-user-picker';
4
+ import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
5
5
  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.16.0"
9
+ packageVersion: "4.16.1"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -99,7 +99,9 @@ export var copyLinkButtonClicked = function copyLinkButtonClicked(_ref2) {
99
99
  contentSubType: shareContentSubType,
100
100
  contentId: shareContentId,
101
101
  isPublicLink: isPublicLink,
102
- ari: ari
102
+ ari: ari,
103
+ // this specific string is needed for marking a successful navigation session
104
+ navdexPointType: 'navigationSessionEnd'
103
105
  }, getOriginTracingAttributes(shareOrigin)));
104
106
  };
105
107
  export var formShareSubmitted = function formShareSubmitted(_ref3) {
@@ -112,6 +114,7 @@ export var formShareSubmitted = function formShareSubmitted(_ref3) {
112
114
  _ref3$isPublicLink = _ref3.isPublicLink,
113
115
  isPublicLink = _ref3$isPublicLink === void 0 ? false : _ref3$isPublicLink;
114
116
  var users = extractIdsByType(data, isUser);
117
+ var externalUsers = extractIdsByType(data, isExternalUser);
115
118
  var teams = extractIdsByType(data, isTeam);
116
119
  var teamUserCounts = extractMemberCountsFromTeams(data, isTeam);
117
120
  var emails = extractIdsByType(data, isEmail);
@@ -123,6 +126,7 @@ export var formShareSubmitted = function formShareSubmitted(_ref3) {
123
126
  emailCount: emails.length,
124
127
  teamCount: teams.length,
125
128
  userCount: users.length,
129
+ externalUserCount: externalUsers.length,
126
130
  users: users,
127
131
  teams: teams,
128
132
  teamUserCounts: teamUserCounts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.16.0",
3
+ "version": "4.16.1",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,14 +42,14 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@atlaskit/analytics-next": "^9.2.0",
45
- "@atlaskit/button": "^17.4.0",
45
+ "@atlaskit/button": "^17.6.0",
46
46
  "@atlaskit/dropdown-menu": "^12.5.0",
47
47
  "@atlaskit/form": "^9.0.3",
48
48
  "@atlaskit/icon": "^22.1.0",
49
49
  "@atlaskit/popper": "^5.5.4",
50
50
  "@atlaskit/popup": "^1.12.0",
51
51
  "@atlaskit/portal": "^4.4.0",
52
- "@atlaskit/smart-user-picker": "^6.8.0",
52
+ "@atlaskit/smart-user-picker": "^6.9.0",
53
53
  "@atlaskit/spinner": "^16.0.0",
54
54
  "@atlaskit/tabs": "^14.0.0",
55
55
  "@atlaskit/textarea": "^5.0.0",