@atlaskit/teams-public 0.12.0 → 0.14.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/teams-public
2
2
 
3
+ ## 0.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#128974](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128974)
8
+ [`e7dbbe125c55c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e7dbbe125c55c) -
9
+ [ux] Fix x button not opening th dialog
10
+
11
+ ## 0.13.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#128756](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128756)
16
+ [`348d4bf0e1b06`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/348d4bf0e1b06) -
17
+ [ux] Allow two columns per row in teams and containers section
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 0.12.0
4
24
 
5
25
  ### Minor Changes
@@ -157,7 +157,7 @@ var TeamContainers = exports.TeamContainers = function TeamContainers(_ref) {
157
157
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
158
158
  space: "space.200"
159
159
  }, /*#__PURE__*/_react.default.createElement(_primitives.Grid, {
160
- templateColumns: "repeat(auto-fill, minmax(270px, 1fr))",
160
+ templateColumns: "repeat(auto-fit, minmax(300px, 1fr))",
161
161
  gap: "space.100"
162
162
  }, teamContainers.slice(0, MAX_NUMBER_OF_CONTAINERS_TO_SHOW).map(function (container) {
163
163
  return /*#__PURE__*/_react.default.createElement(LinkedContainerCardComponent, {
@@ -188,7 +188,11 @@ var TeamContainers = exports.TeamContainers = function TeamContainers(_ref) {
188
188
  containerIcon: container.icon || undefined,
189
189
  link: container.link || undefined,
190
190
  onDisconnectButtonClick: function onDisconnectButtonClick() {
191
- return setIsDisconnectDialogOpen(true);
191
+ return handleOpenDisconnectDialog({
192
+ containerId: container.id,
193
+ containerType: container.type,
194
+ containerName: container.name
195
+ });
192
196
  }
193
197
  });
194
198
  })), teamContainers.length > MAX_NUMBER_OF_CONTAINERS_TO_SHOW && /*#__PURE__*/_react.default.createElement(_primitives.Inline, null, /*#__PURE__*/_react.default.createElement(_new.default, {
@@ -109,7 +109,7 @@ export const TeamContainers = ({
109
109
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stack, {
110
110
  space: "space.200"
111
111
  }, /*#__PURE__*/React.createElement(Grid, {
112
- templateColumns: "repeat(auto-fill, minmax(270px, 1fr))",
112
+ templateColumns: "repeat(auto-fit, minmax(300px, 1fr))",
113
113
  gap: "space.100"
114
114
  }, teamContainers.slice(0, MAX_NUMBER_OF_CONTAINERS_TO_SHOW).map(container => {
115
115
  return /*#__PURE__*/React.createElement(LinkedContainerCardComponent, {
@@ -137,7 +137,11 @@ export const TeamContainers = ({
137
137
  title: container.name,
138
138
  containerIcon: container.icon || undefined,
139
139
  link: container.link || undefined,
140
- onDisconnectButtonClick: () => setIsDisconnectDialogOpen(true)
140
+ onDisconnectButtonClick: () => handleOpenDisconnectDialog({
141
+ containerId: container.id,
142
+ containerType: container.type,
143
+ containerName: container.name
144
+ })
141
145
  });
142
146
  })), teamContainers.length > MAX_NUMBER_OF_CONTAINERS_TO_SHOW && /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(Button, {
143
147
  appearance: "subtle",
@@ -147,7 +147,7 @@ export var TeamContainers = function TeamContainers(_ref) {
147
147
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stack, {
148
148
  space: "space.200"
149
149
  }, /*#__PURE__*/React.createElement(Grid, {
150
- templateColumns: "repeat(auto-fill, minmax(270px, 1fr))",
150
+ templateColumns: "repeat(auto-fit, minmax(300px, 1fr))",
151
151
  gap: "space.100"
152
152
  }, teamContainers.slice(0, MAX_NUMBER_OF_CONTAINERS_TO_SHOW).map(function (container) {
153
153
  return /*#__PURE__*/React.createElement(LinkedContainerCardComponent, {
@@ -178,7 +178,11 @@ export var TeamContainers = function TeamContainers(_ref) {
178
178
  containerIcon: container.icon || undefined,
179
179
  link: container.link || undefined,
180
180
  onDisconnectButtonClick: function onDisconnectButtonClick() {
181
- return setIsDisconnectDialogOpen(true);
181
+ return handleOpenDisconnectDialog({
182
+ containerId: container.id,
183
+ containerType: container.type,
184
+ containerName: container.name
185
+ });
182
186
  }
183
187
  });
184
188
  })), teamContainers.length > MAX_NUMBER_OF_CONTAINERS_TO_SHOW && /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(Button, {
package/package.json CHANGED
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/image": "^2.0.0",
39
39
  "@atlaskit/link": "^3.0.0",
40
40
  "@atlaskit/logo": "^16.0.0",
41
- "@atlaskit/modal-dialog": "^13.1.0",
41
+ "@atlaskit/modal-dialog": "^13.2.0",
42
42
  "@atlaskit/people-teams-ui-public": "^3.1.0",
43
43
  "@atlaskit/primitives": "^14.1.0",
44
44
  "@atlaskit/theme": "^18.0.0",
@@ -106,7 +106,7 @@
106
106
  }
107
107
  },
108
108
  "name": "@atlaskit/teams-public",
109
- "version": "0.12.0",
109
+ "version": "0.14.0",
110
110
  "description": "Public components related to teams",
111
111
  "author": "Atlassian Pty Ltd",
112
112
  "license": "Apache-2.0",