diff --git a/packages/api/package.json b/packages/api/package.json index f6c304e94a..9d6b8f53d9 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -23,7 +23,7 @@ "rollup-plugin-serve": "^2.0.2" }, "dependencies": { - "@embeddedchat/auth": "0.0.1", + "@embeddedchat/auth": "workspace:^", "@rocket.chat/sdk": "^1.0.0-alpha.42" } } diff --git a/packages/htmlembed/package.json b/packages/htmlembed/package.json index 33a8370247..4efecd8d89 100644 --- a/packages/htmlembed/package.json +++ b/packages/htmlembed/package.json @@ -13,7 +13,7 @@ "format:check": "prettier --check 'src/' " }, "dependencies": { - "@embeddedchat/react": "0.1.12", + "@embeddedchat/react": "workspace:^", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/packages/react-native/package.json b/packages/react-native/package.json index c68e9bce87..e4c6e7e6bb 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@embeddedchat/api": "0.0.2", + "@embeddedchat/api": "workspace:^", "@emotion/native": "^11.11.0", "@emotion/react": "11.7.1", "@expo/vector-icons": "^13.0.0", diff --git a/packages/react/package.json b/packages/react/package.json index 6a2c98d89b..ee09107747 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -83,7 +83,7 @@ "react-dom": ">=17.0.2 <19.0.0" }, "dependencies": { - "@embeddedchat/api": "0.0.2", + "@embeddedchat/api": "workspace:^", "@embeddedchat/ui-elements": "workspace:^", "@embeddedchat/ui-kit": "workspace:^", "@emotion/babel-preset-css-prop": "^11.11.0", diff --git a/packages/react/src/theme/DefaultTheme.js b/packages/react/src/theme/DefaultTheme.js index 0a2fe776ca..c7b7b0afd6 100644 --- a/packages/react/src/theme/DefaultTheme.js +++ b/packages/react/src/theme/DefaultTheme.js @@ -60,6 +60,14 @@ const DefaultTheme = { infoForeground: 'hsl(214.4, 75.8%, 19.4%)', }, }, + + components: { + Sidebar: { + styleOverrides: { + width: "350px" + } + }, + }, typography: { default: { diff --git a/packages/ui-elements/src/components/Sidebar/Sidebar.styles.js b/packages/ui-elements/src/components/Sidebar/Sidebar.styles.js index bf7d07ef70..4c85b5b0f0 100644 --- a/packages/ui-elements/src/components/Sidebar/Sidebar.styles.js +++ b/packages/ui-elements/src/components/Sidebar/Sidebar.styles.js @@ -3,7 +3,7 @@ import { css } from '@emotion/react'; export const getSidebarStyles = (theme) => { const styles = { sidebarContainer: css` - min-width: 350px; + width: 350px; height: 100%; box-shadow: ${theme.shadows[2]}; z-index: ${theme.zIndex?.sidebar || 1200}; diff --git a/yarn.lock b/yarn.lock index 39464bc873..4e06f2320a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2287,11 +2287,11 @@ __metadata: languageName: node linkType: hard -"@embeddedchat/api@0.0.2, @embeddedchat/api@workspace:packages/api": +"@embeddedchat/api@workspace:^, @embeddedchat/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@embeddedchat/api@workspace:packages/api" dependencies: - "@embeddedchat/auth": 0.0.1 + "@embeddedchat/auth": "workspace:^" "@rocket.chat/sdk": ^1.0.0-alpha.42 parcel: ^2.10.3 rollup: ^3.23.0 @@ -2301,7 +2301,7 @@ __metadata: languageName: unknown linkType: soft -"@embeddedchat/auth@0.0.1, @embeddedchat/auth@workspace:packages/auth": +"@embeddedchat/auth@workspace:^, @embeddedchat/auth@workspace:packages/auth": version: 0.0.0-use.local resolution: "@embeddedchat/auth@workspace:packages/auth" dependencies: @@ -2316,7 +2316,7 @@ __metadata: version: 0.0.0-use.local resolution: "@embeddedchat/htmlembed@workspace:packages/htmlembed" dependencies: - "@embeddedchat/react": 0.1.12 + "@embeddedchat/react": "workspace:^" "@vitejs/plugin-react": ^3.1.0 live-server: ^1.2.2 react: ^18.2.0 @@ -2399,7 +2399,7 @@ __metadata: dependencies: "@babel/core": ^7.19.3 "@babel/eslint-parser": ^7.22.15 - "@embeddedchat/api": 0.0.2 + "@embeddedchat/api": "workspace:^" "@emotion/native": ^11.11.0 "@emotion/react": 11.7.1 "@expo/vector-icons": ^13.0.0 @@ -2440,7 +2440,7 @@ __metadata: languageName: unknown linkType: soft -"@embeddedchat/react@0.1.12, @embeddedchat/react@workspace:*, @embeddedchat/react@workspace:packages/react": +"@embeddedchat/react@workspace:*, @embeddedchat/react@workspace:^, @embeddedchat/react@workspace:packages/react": version: 0.0.0-use.local resolution: "@embeddedchat/react@workspace:packages/react" dependencies: @@ -2448,7 +2448,7 @@ __metadata: "@babel/plugin-proposal-private-property-in-object": ^7.21.11 "@babel/preset-env": ^7.16.11 "@babel/preset-react": ^7.16.7 - "@embeddedchat/api": 0.0.2 + "@embeddedchat/api": "workspace:^" "@embeddedchat/ui-elements": "workspace:^" "@embeddedchat/ui-kit": "workspace:^" "@emotion/babel-plugin": ^11.11.0