@appquality/unguess-design-system 2.10.17 → 2.10.18

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,3 +1,15 @@
1
+ # v2.10.18 (Thu May 12 2022)
2
+
3
+ #### ⚠️ Pushed to `master`
4
+
5
+ - fix(brand-item): update ws schema ([@cannarocks](https://github.com/cannarocks))
6
+
7
+ #### Authors: 1
8
+
9
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
10
+
11
+ ---
12
+
1
13
  # v2.10.17 (Thu May 12 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -1567,10 +1567,10 @@ var BrandItem = function (props) {
1567
1567
  setSelectedWorkspace(workspace);
1568
1568
  props.onWorkspaceChange && props.onWorkspaceChange(workspace);
1569
1569
  }, downshiftProps: {
1570
- itemToString: function (item) { return item && item.name; },
1570
+ itemToString: function (item) { return item && item.company; },
1571
1571
  } }, { children: [jsxRuntime.jsx(reactDropdowns.Field, { children: jsxRuntime.jsx(Select, __assign({ style: { color: theme.colors.primaryHue } }, { children: selectedWorkspace
1572
- ? selectedWorkspace.name + "'s workspace"
1573
- : "Select workspace" })) }), jsxRuntime.jsxs(Menu, { children: [jsxRuntime.jsx(MenuHeaderItem, { children: jsxRuntime.jsx(MD, __assign({ isBold: true, style: { color: theme.palette.grey[800] } }, { children: props.workspacesLabel || "Workspaces" })) }), jsxRuntime.jsx(Separator, {}), props.workspaces.map(function (item) { return (jsxRuntime.jsx(Item, __assign({ value: item }, { children: item.name }))); })] })] })) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.brandName && (jsxRuntime.jsx(BrandName, __assign({}, props, { children: jsxRuntime.jsx(HeaderItemText, { children: props.brandName }) }))) }))] }));
1572
+ ? selectedWorkspace.company + "'s workspace"
1573
+ : "Select workspace" })) }), jsxRuntime.jsxs(Menu, { children: [jsxRuntime.jsx(MenuHeaderItem, { children: jsxRuntime.jsx(MD, __assign({ isBold: true, style: { color: theme.palette.grey[800] } }, { children: props.workspacesLabel || "Workspaces" })) }), jsxRuntime.jsx(Separator, {}), props.workspaces.map(function (item) { return (jsxRuntime.jsx(Item, __assign({ value: item }, { children: item.company }))); })] })] })) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.brandName && (jsxRuntime.jsx(BrandName, __assign({}, props, { children: jsxRuntime.jsx(HeaderItemText, { children: props.brandName }) }))) }))] }));
1574
1574
  };
1575
1575
  var templateObject_1$s, templateObject_2$c, templateObject_3$7, templateObject_4$5;
1576
1576
 
@@ -2,7 +2,17 @@ import { ButtonHTMLAttributes, HTMLAttributes } from "react";
2
2
  import { IHeaderItemProps, IHeaderItemTextProps } from "@zendeskgarden/react-chrome";
3
3
  export interface Workspace {
4
4
  id: number;
5
- name: string;
5
+ company: string;
6
+ tokens?: number;
7
+ logo?: string;
8
+ csm?: {
9
+ id: number;
10
+ email: string;
11
+ name: string;
12
+ profile_id: number;
13
+ tryber_wp_user_id: number;
14
+ picture?: string;
15
+ };
6
16
  }
7
17
  export interface HeaderItemArgs extends IHeaderItemProps {
8
18
  /** Maximizes the width of a flex item in the header */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.10.17",
3
+ "version": "2.10.18",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/css-bedrock": "^9.0.0",
6
6
  "@zendeskgarden/react-accordions": "^8.49.0",