@atlaskit/teams-public 0.23.4 → 0.23.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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/teams-public
|
|
2
2
|
|
|
3
|
+
## 0.23.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#135344](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135344)
|
|
8
|
+
[`a4cd3d4782e62`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a4cd3d4782e62) -
|
|
9
|
+
Add error prop to analytics
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 0.23.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 0.23.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -350,10 +350,14 @@ var useTeamContainers = exports.useTeamContainers = function useTeamContainers(t
|
|
|
350
350
|
fireOperationalEvent(createAnalyticsEvent, {
|
|
351
351
|
action: action,
|
|
352
352
|
actionSubject: actionSubject,
|
|
353
|
-
attributes: {
|
|
354
|
-
teamId: teamId
|
|
355
|
-
|
|
356
|
-
|
|
353
|
+
attributes: _objectSpread({
|
|
354
|
+
teamId: teamId
|
|
355
|
+
}, error && {
|
|
356
|
+
error: {
|
|
357
|
+
message: error.message || JSON.stringify(error),
|
|
358
|
+
stack: error.stack
|
|
359
|
+
}
|
|
360
|
+
})
|
|
357
361
|
});
|
|
358
362
|
}, [fireOperationalEvent, createAnalyticsEvent, teamId]);
|
|
359
363
|
(0, _react.useEffect)(function () {
|
|
@@ -383,11 +387,15 @@ var useConnectedTeams = exports.useConnectedTeams = function useConnectedTeams()
|
|
|
383
387
|
fireOperationalEvent(createAnalyticsEvent, {
|
|
384
388
|
action: action,
|
|
385
389
|
actionSubject: actionSubject,
|
|
386
|
-
attributes: {
|
|
390
|
+
attributes: _objectSpread({
|
|
387
391
|
containerId: containerId,
|
|
388
|
-
numberOfTeams: numberOfTeams
|
|
389
|
-
|
|
390
|
-
|
|
392
|
+
numberOfTeams: numberOfTeams
|
|
393
|
+
}, error && {
|
|
394
|
+
error: {
|
|
395
|
+
message: error.message || JSON.stringify(error),
|
|
396
|
+
stack: error.stack
|
|
397
|
+
}
|
|
398
|
+
})
|
|
391
399
|
});
|
|
392
400
|
}, [fireOperationalEvent, createAnalyticsEvent]);
|
|
393
401
|
return _objectSpread(_objectSpread({}, state.connectedTeams), {}, {
|
|
@@ -247,7 +247,12 @@ export const useTeamContainers = (teamId, enable = true) => {
|
|
|
247
247
|
actionSubject: actionSubject,
|
|
248
248
|
attributes: {
|
|
249
249
|
teamId,
|
|
250
|
-
|
|
250
|
+
...(error && {
|
|
251
|
+
error: {
|
|
252
|
+
message: error.message || JSON.stringify(error),
|
|
253
|
+
stack: error.stack
|
|
254
|
+
}
|
|
255
|
+
})
|
|
251
256
|
}
|
|
252
257
|
});
|
|
253
258
|
}, [fireOperationalEvent, createAnalyticsEvent, teamId]);
|
|
@@ -282,7 +287,12 @@ export const useConnectedTeams = () => {
|
|
|
282
287
|
attributes: {
|
|
283
288
|
containerId,
|
|
284
289
|
numberOfTeams,
|
|
285
|
-
|
|
290
|
+
...(error && {
|
|
291
|
+
error: {
|
|
292
|
+
message: error.message || JSON.stringify(error),
|
|
293
|
+
stack: error.stack
|
|
294
|
+
}
|
|
295
|
+
})
|
|
286
296
|
}
|
|
287
297
|
});
|
|
288
298
|
}, [fireOperationalEvent, createAnalyticsEvent]);
|
|
@@ -343,10 +343,14 @@ export var useTeamContainers = function useTeamContainers(teamId) {
|
|
|
343
343
|
fireOperationalEvent(createAnalyticsEvent, {
|
|
344
344
|
action: action,
|
|
345
345
|
actionSubject: actionSubject,
|
|
346
|
-
attributes: {
|
|
347
|
-
teamId: teamId
|
|
348
|
-
|
|
349
|
-
|
|
346
|
+
attributes: _objectSpread({
|
|
347
|
+
teamId: teamId
|
|
348
|
+
}, error && {
|
|
349
|
+
error: {
|
|
350
|
+
message: error.message || JSON.stringify(error),
|
|
351
|
+
stack: error.stack
|
|
352
|
+
}
|
|
353
|
+
})
|
|
350
354
|
});
|
|
351
355
|
}, [fireOperationalEvent, createAnalyticsEvent, teamId]);
|
|
352
356
|
useEffect(function () {
|
|
@@ -376,11 +380,15 @@ export var useConnectedTeams = function useConnectedTeams() {
|
|
|
376
380
|
fireOperationalEvent(createAnalyticsEvent, {
|
|
377
381
|
action: action,
|
|
378
382
|
actionSubject: actionSubject,
|
|
379
|
-
attributes: {
|
|
383
|
+
attributes: _objectSpread({
|
|
380
384
|
containerId: containerId,
|
|
381
|
-
numberOfTeams: numberOfTeams
|
|
382
|
-
|
|
383
|
-
|
|
385
|
+
numberOfTeams: numberOfTeams
|
|
386
|
+
}, error && {
|
|
387
|
+
error: {
|
|
388
|
+
message: error.message || JSON.stringify(error),
|
|
389
|
+
stack: error.stack
|
|
390
|
+
}
|
|
391
|
+
})
|
|
384
392
|
});
|
|
385
393
|
}, [fireOperationalEvent, createAnalyticsEvent]);
|
|
386
394
|
return _objectSpread(_objectSpread({}, state.connectedTeams), {}, {
|
package/package.json
CHANGED
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
33
33
|
"@atlaskit/avatar": "^25.0.0",
|
|
34
|
-
"@atlaskit/button": "^
|
|
34
|
+
"@atlaskit/button": "^23.0.0",
|
|
35
35
|
"@atlaskit/css": "^0.10.0",
|
|
36
36
|
"@atlaskit/heading": "^5.1.0",
|
|
37
|
-
"@atlaskit/icon": "^25.
|
|
37
|
+
"@atlaskit/icon": "^25.5.0",
|
|
38
38
|
"@atlaskit/image": "^3.0.0",
|
|
39
39
|
"@atlaskit/link": "^3.1.0",
|
|
40
40
|
"@atlaskit/logo": "^16.0.0",
|
|
41
|
-
"@atlaskit/modal-dialog": "^14.
|
|
41
|
+
"@atlaskit/modal-dialog": "^14.1.0",
|
|
42
42
|
"@atlaskit/people-teams-ui-public": "^3.1.0",
|
|
43
|
-
"@atlaskit/primitives": "^14.
|
|
43
|
+
"@atlaskit/primitives": "^14.3.0",
|
|
44
44
|
"@atlaskit/theme": "^18.0.0",
|
|
45
|
-
"@atlaskit/tokens": "^4.
|
|
45
|
+
"@atlaskit/tokens": "^4.6.0",
|
|
46
46
|
"@atlaskit/tooltip": "^20.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^0.18.3",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"name": "@atlaskit/teams-public",
|
|
109
|
-
"version": "0.23.
|
|
109
|
+
"version": "0.23.6",
|
|
110
110
|
"description": "Public components related to teams",
|
|
111
111
|
"author": "Atlassian Pty Ltd",
|
|
112
112
|
"license": "Apache-2.0",
|