@atlaskit/teams-public 0.23.5 → 0.23.7

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,23 @@
1
1
  # @atlaskit/teams-public
2
2
 
3
+ ## 0.23.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#137581](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137581)
8
+ [`8bb916474905b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8bb916474905b) -
9
+ [ux] PTC-11531 Build team web link empty state card
10
+ - Updated dependencies
11
+
12
+ ## 0.23.6
13
+
14
+ ### Patch Changes
15
+
16
+ - [#135344](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135344)
17
+ [`a4cd3d4782e62`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a4cd3d4782e62) -
18
+ Add error prop to analytics
19
+ - Updated dependencies
20
+
3
21
  ## 0.23.5
4
22
 
5
23
  ### Patch Changes
@@ -63,6 +63,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
63
63
  id: 'ptc-directory.team-profile-page.team-containers.space-container-text.non-final',
64
64
  defaultMessage: 'space',
65
65
  description: 'Text for space type containers'
66
+ },
67
+ webLinkContainerTitle: {
68
+ id: 'ptc-directory.team-profile-page.team-containers.webLink-container-text.non-final',
69
+ defaultMessage: 'Add any web link',
70
+ description: 'Description of the card to add a web link to a team'
66
71
  }
67
72
  });
68
73
  var getJiraIcon = function getJiraIcon(containerSubTypes) {
@@ -121,6 +126,16 @@ var getContainerProperties = exports.getContainerProperties = function getContai
121
126
  };
122
127
  case 'JiraProject':
123
128
  return getJiraContainerProperties(containerTypeProperties);
129
+ case 'WebLink':
130
+ return {
131
+ description: /*#__PURE__*/_react.default.createElement(_compiled.Text, {
132
+ size: "medium",
133
+ weight: "medium"
134
+ }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.webLinkContainerTitle)),
135
+ icon: null,
136
+ title: null,
137
+ containerTypeText: null
138
+ };
124
139
  default:
125
140
  return {
126
141
  description: null,
@@ -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
- error: (error === null || error === void 0 ? void 0 : error.message) || JSON.stringify(error)
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
- error: (error === null || error === void 0 ? void 0 : error.message) || JSON.stringify(error)
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), {}, {
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { defineMessages, FormattedMessage } from 'react-intl-next';
6
6
  import Image from '@atlaskit/image';
7
- import { Box } from '@atlaskit/primitives/compiled';
7
+ import { Box, Text } from '@atlaskit/primitives/compiled';
8
8
  import ConfluenceIcon from '../assets/ConfluenceIcon.svg';
9
9
  import JiraIcon from '../assets/JiraIcon.svg';
10
10
  import JiraProjectDiscovery from '../assets/JiraProjectDiscovery.svg';
@@ -53,6 +53,11 @@ export const messages = defineMessages({
53
53
  id: 'ptc-directory.team-profile-page.team-containers.space-container-text.non-final',
54
54
  defaultMessage: 'space',
55
55
  description: 'Text for space type containers'
56
+ },
57
+ webLinkContainerTitle: {
58
+ id: 'ptc-directory.team-profile-page.team-containers.webLink-container-text.non-final',
59
+ defaultMessage: 'Add any web link',
60
+ description: 'Description of the card to add a web link to a team'
56
61
  }
57
62
  });
58
63
  const getJiraIcon = containerSubTypes => {
@@ -111,6 +116,16 @@ export const getContainerProperties = (containerType, iconSize = 'small', contai
111
116
  };
112
117
  case 'JiraProject':
113
118
  return getJiraContainerProperties(containerTypeProperties);
119
+ case 'WebLink':
120
+ return {
121
+ description: /*#__PURE__*/React.createElement(Text, {
122
+ size: "medium",
123
+ weight: "medium"
124
+ }, /*#__PURE__*/React.createElement(FormattedMessage, messages.webLinkContainerTitle)),
125
+ icon: null,
126
+ title: null,
127
+ containerTypeText: null
128
+ };
114
129
  default:
115
130
  return {
116
131
  description: null,
@@ -247,7 +247,12 @@ export const useTeamContainers = (teamId, enable = true) => {
247
247
  actionSubject: actionSubject,
248
248
  attributes: {
249
249
  teamId,
250
- error: (error === null || error === void 0 ? void 0 : error.message) || JSON.stringify(error)
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
- error: (error === null || error === void 0 ? void 0 : error.message) || JSON.stringify(error)
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]);
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import React from 'react';
8
8
  import { defineMessages, FormattedMessage } from 'react-intl-next';
9
9
  import Image from '@atlaskit/image';
10
- import { Box } from '@atlaskit/primitives/compiled';
10
+ import { Box, Text } from '@atlaskit/primitives/compiled';
11
11
  import ConfluenceIcon from '../assets/ConfluenceIcon.svg';
12
12
  import JiraIcon from '../assets/JiraIcon.svg';
13
13
  import JiraProjectDiscovery from '../assets/JiraProjectDiscovery.svg';
@@ -56,6 +56,11 @@ export var messages = defineMessages({
56
56
  id: 'ptc-directory.team-profile-page.team-containers.space-container-text.non-final',
57
57
  defaultMessage: 'space',
58
58
  description: 'Text for space type containers'
59
+ },
60
+ webLinkContainerTitle: {
61
+ id: 'ptc-directory.team-profile-page.team-containers.webLink-container-text.non-final',
62
+ defaultMessage: 'Add any web link',
63
+ description: 'Description of the card to add a web link to a team'
59
64
  }
60
65
  });
61
66
  var getJiraIcon = function getJiraIcon(containerSubTypes) {
@@ -114,6 +119,16 @@ export var getContainerProperties = function getContainerProperties(containerTyp
114
119
  };
115
120
  case 'JiraProject':
116
121
  return getJiraContainerProperties(containerTypeProperties);
122
+ case 'WebLink':
123
+ return {
124
+ description: /*#__PURE__*/React.createElement(Text, {
125
+ size: "medium",
126
+ weight: "medium"
127
+ }, /*#__PURE__*/React.createElement(FormattedMessage, messages.webLinkContainerTitle)),
128
+ icon: null,
129
+ title: null,
130
+ containerTypeText: null
131
+ };
117
132
  default:
118
133
  return {
119
134
  description: null,
@@ -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
- error: (error === null || error === void 0 ? void 0 : error.message) || JSON.stringify(error)
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
- error: (error === null || error === void 0 ? void 0 : error.message) || JSON.stringify(error)
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), {}, {
@@ -1,4 +1,4 @@
1
- export type ContainerTypes = 'ConfluenceSpace' | 'JiraProject';
1
+ export type ContainerTypes = 'ConfluenceSpace' | 'JiraProject' | 'WebLink';
2
2
  export declare enum JiraProjectTypes {
3
3
  PRODUCT_DISCOVERY = "Product Discovery",
4
4
  SOFTWARE = "Software",
@@ -48,6 +48,11 @@ export declare const messages: {
48
48
  defaultMessage: string;
49
49
  description: string;
50
50
  };
51
+ webLinkContainerTitle: {
52
+ id: string;
53
+ defaultMessage: string;
54
+ description: string;
55
+ };
51
56
  };
52
57
  export declare const getContainerProperties: (containerType: ContainerTypes, iconSize?: IconSize, containerTypeProperties?: {
53
58
  subType?: ContainerSubTypes;
@@ -1,4 +1,4 @@
1
- export type ContainerTypes = 'ConfluenceSpace' | 'JiraProject';
1
+ export type ContainerTypes = 'ConfluenceSpace' | 'JiraProject' | 'WebLink';
2
2
  export declare enum JiraProjectTypes {
3
3
  PRODUCT_DISCOVERY = "Product Discovery",
4
4
  SOFTWARE = "Software",
@@ -48,6 +48,11 @@ export declare const messages: {
48
48
  defaultMessage: string;
49
49
  description: string;
50
50
  };
51
+ webLinkContainerTitle: {
52
+ id: string;
53
+ defaultMessage: string;
54
+ description: string;
55
+ };
51
56
  };
52
57
  export declare const getContainerProperties: (containerType: ContainerTypes, iconSize?: IconSize, containerTypeProperties?: {
53
58
  subType?: ContainerSubTypes;
package/package.json CHANGED
@@ -33,16 +33,16 @@
33
33
  "@atlaskit/avatar": "^25.0.0",
34
34
  "@atlaskit/button": "^23.0.0",
35
35
  "@atlaskit/css": "^0.10.0",
36
- "@atlaskit/heading": "^5.1.0",
37
- "@atlaskit/icon": "^25.4.0",
36
+ "@atlaskit/heading": "^5.2.0",
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
41
  "@atlaskit/modal-dialog": "^14.1.0",
42
42
  "@atlaskit/people-teams-ui-public": "^3.1.0",
43
- "@atlaskit/primitives": "^14.2.0",
43
+ "@atlaskit/primitives": "^14.4.0",
44
44
  "@atlaskit/theme": "^18.0.0",
45
- "@atlaskit/tokens": "^4.5.0",
45
+ "@atlaskit/tokens": "^4.7.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.5",
109
+ "version": "0.23.7",
110
110
  "description": "Public components related to teams",
111
111
  "author": "Atlassian Pty Ltd",
112
112
  "license": "Apache-2.0",