From 601afadf12b7779a8b29ab93bc5e9d11db744281 Mon Sep 17 00:00:00 2001 From: Zishan Ahmad Date: Sat, 25 Jan 2025 16:27:38 +0530 Subject: [PATCH] Release-1.0.0 --- .changeset/thick-moose-reply.md | 5 - .changeset/wicked-cats-try.md | 5 - packages/api/CHANGELOG.md | 37 +++++ packages/api/package.json | 4 +- packages/auth/CHANGELOG.md | 21 +++ packages/auth/package.json | 2 +- .../docs/docs/Usage/embeddedchat_setup.md | 17 ++ packages/e2e-react/CHANGELOG.md | 55 +++++++ packages/e2e-react/package.json | 2 +- packages/htmlembed/CHANGELOG.md | 39 +++++ packages/htmlembed/package.json | 4 +- packages/layout_editor/CHANGELOG.md | 25 +++ packages/layout_editor/package.json | 2 +- packages/markups/CHANGELOG.md | 28 ++++ packages/markups/package.json | 2 +- packages/rc-app/CHANGELOG.md | 29 ++++ packages/rc-app/package.json | 2 +- packages/react-native/CHANGELOG.md | 20 +++ packages/react-native/package.json | 4 +- packages/react/CHANGELOG.md | 145 ++++++++++++++++++ packages/react/README.md | 17 ++ packages/react/package.json | 5 +- packages/ui-elements/CHANGELOG.md | 25 +++ packages/ui-elements/package.json | 2 +- .../src/components/Sidebar/Sidebar.styles.js | 2 +- packages/ui-kit/CHANGELOG.md | 27 ++++ packages/ui-kit/package.json | 3 +- yarn.lock | 16 +- 28 files changed, 512 insertions(+), 33 deletions(-) delete mode 100644 .changeset/thick-moose-reply.md delete mode 100644 .changeset/wicked-cats-try.md create mode 100644 packages/auth/CHANGELOG.md create mode 100644 packages/e2e-react/CHANGELOG.md create mode 100644 packages/layout_editor/CHANGELOG.md create mode 100644 packages/markups/CHANGELOG.md create mode 100644 packages/rc-app/CHANGELOG.md create mode 100644 packages/ui-elements/CHANGELOG.md create mode 100644 packages/ui-kit/CHANGELOG.md diff --git a/.changeset/thick-moose-reply.md b/.changeset/thick-moose-reply.md deleted file mode 100644 index df66e72293..0000000000 --- a/.changeset/thick-moose-reply.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@embeddedchat/react": patch ---- - -Fix: Room members avatar invalid avatar url creation diff --git a/.changeset/wicked-cats-try.md b/.changeset/wicked-cats-try.md deleted file mode 100644 index 9f9506c9e2..0000000000 --- a/.changeset/wicked-cats-try.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@embeddedchat/react": patch ---- - -Improve: Added confirmation modal on deleting message diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index 90392b99d7..12895496f5 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/CHANGELOG.md @@ -1,5 +1,42 @@ # @embeddedchat/api +## 0.1.1 + +### Patch Changes + +- - Fixed dependency + +## 0.1.0 + +### Minor Changes + +- 5f604c59: - Configure EC remotely: added settings, refactored read logic, introduced fetch function, and added useRemoteProps hook to override props. + + See [#599](https://github.com/RocketChat/EmbeddedChat/pull/599). + +### Patch Changes + +- 5f604c59: - Restructured Auto Login, added loading screens, and cleaned up code. + + See [#594](https://github.com/RocketChat/EmbeddedChat/pull/594). + +- 5f604c59: - Modularized UiKit folder structure. + + - Added logic for state and view updates, similar to Rocket.Chat. + - Implemented contexts and action handlers for modals and actions. + - Added interactions for sending values to the server. + - Introduced global states for modals and contextual bar. + - Resolved menu issues and added contextual bar support. + - Fixed stylings and addressed minor bugs. + - Added support for static and multi-select elements with custom components. + - Created stories for new components. + + See [#593](https://github.com/RocketChat/EmbeddedChat/pull/593). + +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] + - @embeddedchat/auth@0.1.0 + ## 0.0.2 ### Patch Changes diff --git a/packages/api/package.json b/packages/api/package.json index f6c304e94a..cb96181212 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@embeddedchat/api", - "version": "0.0.2", + "version": "0.1.1", "description": "A comprehensive API wrapper for Rocket.Chat, facilitating seamless integration and interaction with chat functionalities in web applications.", "main": "dist/index.js", "module": "dist/index.mjs", @@ -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/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md new file mode 100644 index 0000000000..093f29c2a9 --- /dev/null +++ b/packages/auth/CHANGELOG.md @@ -0,0 +1,21 @@ +# @embeddedchat/auth + +## 0.1.0 + +### Minor Changes + +- 5f604c59: - Reordered code for better readability. + + - Removed unnecessary global states, handled by ECOptions. + - Cleaned up EmbeddedChat component, moved layout-related functions to ChatLayout.js. + - Added AuthTokenEndpoint in RC-app for token management. + - Modified auth.js to support both secure and localStorage login. + - Added API calls in RocketChatAuth library. + + See [#590](https://github.com/RocketChat/EmbeddedChat/pull/590). + +### Patch Changes + +- 5f604c59: - Restructured Auto Login, added loading screens, and cleaned up code. + + See [#594](https://github.com/RocketChat/EmbeddedChat/pull/594). diff --git a/packages/auth/package.json b/packages/auth/package.json index 0eb2f1a776..986d07d125 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@embeddedchat/auth", - "version": "0.0.1", + "version": "0.1.0", "description": "This is the `@embeddedchat/auth` package, designed to simplify authentication processes in applications using EmbeddedChat. It provides a streamlined and easy-to-use API for handling various authentication methods.", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/packages/docs/docs/Usage/embeddedchat_setup.md b/packages/docs/docs/Usage/embeddedchat_setup.md index 3300e62adb..15cd37a45f 100644 --- a/packages/docs/docs/Usage/embeddedchat_setup.md +++ b/packages/docs/docs/Usage/embeddedchat_setup.md @@ -15,6 +15,23 @@ npm install @embeddedchat/react yarn add @embeddedchat/react ``` +## Vite Configuration (If Applicable) + +If you're using EmbeddedChat in a Vite project, you need to make adjustments to your Vite configuration file to ensure compatibility with how environment variables are handled in the browser. + +### Update `vite.config.js` or `vite.config.ts` + +Add the following settings inside the `defineConfig` function of your Vite configuration file: + +```javascript +base: "/", +define: { + "process.env": {}, +}, +``` + +These changes address compatibility issues and allow EmbeddedChat to function properly in Vite projects. + ## Importing the Component Import the `EmbeddedChat` component into your file: diff --git a/packages/e2e-react/CHANGELOG.md b/packages/e2e-react/CHANGELOG.md new file mode 100644 index 0000000000..b4056cbf91 --- /dev/null +++ b/packages/e2e-react/CHANGELOG.md @@ -0,0 +1,55 @@ +# e2e-react + +## 0.0.4 + +### Patch Changes + +- @embeddedchat/react@1.0.2 + +## 0.0.3 + +### Patch Changes + +- @embeddedchat/react@1.0.1 + +## 0.0.2 + +### Patch Changes + +- Updated dependencies + - @embeddedchat/react@1.0.0 + +## 0.0.1 + +### Patch Changes + +- 5f604c59: - Shifted to ShadCN naming system. + + - Fixed theming system and various component stylings. + - Limited modal size to EC component using React Portals. + - Removed Dropbox + - Fixed ImageGallery and UI inconsistencies. + - Resolved Sidebar overlap issue. + - Redesigned 'RocketChat - Minimalist' UI variant. + - Fixed Popup, member list, and command list popup. + - Fixed swiper bugs and stylings. + - Removed unnecessary dependencies and matched colors. + - Updated test to check .ec-chat-header--channelName instead of .ec-chat-header--channelDescription. + + See [#579](https://github.com/RocketChat/EmbeddedChat/pull/579). + +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [c8c9dee0] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [100c5f79] + - @embeddedchat/react@0.2.0 diff --git a/packages/e2e-react/package.json b/packages/e2e-react/package.json index 40a4543231..5d82ee05e5 100644 --- a/packages/e2e-react/package.json +++ b/packages/e2e-react/package.json @@ -1,7 +1,7 @@ { "name": "e2e-react", "private": true, - "version": "0.0.0", + "version": "0.0.4", "type": "module", "scripts": { "dev": "vite", diff --git a/packages/htmlembed/CHANGELOG.md b/packages/htmlembed/CHANGELOG.md index 143d9b710f..d57a620958 100644 --- a/packages/htmlembed/CHANGELOG.md +++ b/packages/htmlembed/CHANGELOG.md @@ -1,5 +1,44 @@ # @embeddedchat/htmlembed +## 0.0.9 + +### Patch Changes + +- @embeddedchat/react@1.0.2 + +## 0.0.8 + +### Patch Changes + +- @embeddedchat/react@1.0.1 + +## 0.0.7 + +### Patch Changes + +- Updated dependencies + - @embeddedchat/react@1.0.0 + +## 0.0.6 + +### Patch Changes + +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [c8c9dee0] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [100c5f79] + - @embeddedchat/react@0.2.0 + ## 0.0.5 ### Patch Changes diff --git a/packages/htmlembed/package.json b/packages/htmlembed/package.json index 33a8370247..fdea581792 100644 --- a/packages/htmlembed/package.json +++ b/packages/htmlembed/package.json @@ -1,7 +1,7 @@ { "name": "@embeddedchat/htmlembed", "description": "A lightweight and easy-to-use package that allows seamless integration of Embedded Chat into web applications using a simple HTML snippet. Ideal for quickly embedding chat functionalities without complex setup", - "version": "0.0.5", + "version": "0.0.9", "main": "index.js", "license": "MIT", "type": "module", @@ -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/layout_editor/CHANGELOG.md b/packages/layout_editor/CHANGELOG.md new file mode 100644 index 0000000000..61dc8bece6 --- /dev/null +++ b/packages/layout_editor/CHANGELOG.md @@ -0,0 +1,25 @@ +# layout_editor + +## 0.1.1 + +### Patch Changes + +- Updated dependencies + - @embeddedchat/ui-elements@0.1.1 + - @embeddedchat/markups@0.1.1 + +## 0.1.0 + +### Minor Changes + +- 5f604c59: - Introduced 'layout-editor' for real-time drag-and-drop layout customization and theme generation in EmbeddedChat. + + See [#607](https://github.com/RocketChat/EmbeddedChat/pull/607). + +### Patch Changes + +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] + - @embeddedchat/ui-elements@0.1.0 + - @embeddedchat/markups@0.1.0 diff --git a/packages/layout_editor/package.json b/packages/layout_editor/package.json index 9d035a4c71..7f6fa14015 100644 --- a/packages/layout_editor/package.json +++ b/packages/layout_editor/package.json @@ -1,7 +1,7 @@ { "name": "layout_editor", "private": true, - "version": "0.0.0", + "version": "0.1.1", "type": "module", "scripts": { "dev": "vite", diff --git a/packages/markups/CHANGELOG.md b/packages/markups/CHANGELOG.md new file mode 100644 index 0000000000..a3513f5135 --- /dev/null +++ b/packages/markups/CHANGELOG.md @@ -0,0 +1,28 @@ +# @embeddedchat/markups + +## 0.1.1 + +### Patch Changes + +- - Bumping version +- Updated dependencies + - @embeddedchat/ui-elements@0.1.1 + +## 0.1.0 + +### Minor Changes + +- 5f604c59: - Separated components, markups, and ui-kit into individual monorepos. + + See [#604](https://github.com/RocketChat/EmbeddedChat/pull/604). + +### Patch Changes + +- 5f604c59: - Optimized package size for bundling. + + See [#606](https://github.com/RocketChat/EmbeddedChat/pull/606). + +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] + - @embeddedchat/ui-elements@0.1.0 diff --git a/packages/markups/package.json b/packages/markups/package.json index 3b09bc97fc..bd46ba3eb2 100644 --- a/packages/markups/package.json +++ b/packages/markups/package.json @@ -1,6 +1,6 @@ { "name": "@embeddedchat/markups", - "version": "0.0.0", + "version": "0.1.1", "description": "A React component library for handling markup interactions in EmbeddedChat", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/packages/rc-app/CHANGELOG.md b/packages/rc-app/CHANGELOG.md new file mode 100644 index 0000000000..c32717ad58 --- /dev/null +++ b/packages/rc-app/CHANGELOG.md @@ -0,0 +1,29 @@ +# @embeddedchat/rc-app + +## 0.1.0 + +### Minor Changes + +- 5f604c59: - Reordered code for better readability. + + - Removed unnecessary global states, handled by ECOptions. + - Cleaned up EmbeddedChat component, moved layout-related functions to ChatLayout.js. + - Added AuthTokenEndpoint in RC-app for token management. + - Modified auth.js to support both secure and localStorage login. + - Added API calls in RocketChatAuth library. + + See [#590](https://github.com/RocketChat/EmbeddedChat/pull/590). + +- 5f604c59: - Configure EC remotely: added settings, refactored read logic, introduced fetch function, and added useRemoteProps hook to override props. + + See [#599](https://github.com/RocketChat/EmbeddedChat/pull/599). + +### Patch Changes + +- 5f604c59: - Added regex check for valid CSS dimensions and used onPreSettingUpdate to reject invalid updates. + + See [#601](https://github.com/RocketChat/EmbeddedChat/pull/601). + +- 5f604c59: - Introduced 'layout-editor' for real-time drag-and-drop layout customization and theme generation in EmbeddedChat. + + See [#607](https://github.com/RocketChat/EmbeddedChat/pull/607). diff --git a/packages/rc-app/package.json b/packages/rc-app/package.json index a55446ec35..3aad8d29a4 100644 --- a/packages/rc-app/package.json +++ b/packages/rc-app/package.json @@ -1,6 +1,6 @@ { "name": "@embeddedchat/rc-app", - "version": "0.0.1", + "version": "0.1.0", "private": true, "devDependencies": { "@rocket.chat/apps-engine": "^1.36.0", diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index 5f44e53981..742f6eeb8b 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,5 +1,25 @@ # @embeddedchat/react-native +## 0.0.4 + +### Patch Changes + +- Updated dependencies + - @embeddedchat/api@0.1.1 + +## 0.0.3 + +### Patch Changes + +- 5f604c59: - Restructured Auto Login, added loading screens, and cleaned up code. + + See [#594](https://github.com/RocketChat/EmbeddedChat/pull/594). + +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] + - @embeddedchat/api@0.1.0 + ## 0.0.2 ### Patch Changes diff --git a/packages/react-native/package.json b/packages/react-native/package.json index c68e9bce87..1dcd55464b 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", @@ -54,7 +54,7 @@ "storybook:ios": "sb-rn-get-stories && cross-env STORYBOOK_ENABLED='true' expo start --ios", "storybook:android": "sb-rn-get-stories && cross-env STORYBOOK_ENABLED='true' expo start --android" }, - "version": "0.0.2", + "version": "0.0.4", "private": true, "name": "@embeddedchat/react-native", "main": "start-app.js" diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index d7581854b1..94f5188595 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,150 @@ # @embeddedchat/react +## 1.0.2 + +### Patch Changes + +- Updated dependencies + - @embeddedchat/ui-elements@0.1.1 + - @embeddedchat/markups@0.1.1 + - @embeddedchat/ui-kit@0.1.1 + +## 1.0.1 + +### Patch Changes + +- Updated dependencies + - @embeddedchat/api@0.1.1 + +## 1.0.0 + +### Major Changes + +- - This release marks the `@embeddedchat/react` package as feature-complete and stable for general use. While the project remains under active development, this version provides a reliable foundation and can be considered a usable release. + +## 0.2.0 + +### Minor Changes + +- 5f604c59: - Separated components, markups, and ui-kit into individual monorepos. + + See [#604](https://github.com/RocketChat/EmbeddedChat/pull/604). + +- 5f604c59: - Replaced all `Module.css` files with inline styles using Emotion CSS. + + - Fixed emoji alignment by removing a hotfix and applying an actual fix. + - Removed the non-functional grid component and added a new grid component without `Module.css` files. + - Refactored the `search` component into a sidebar. + - Refactored the `Attachment` component to utilize the modal component, removing unnecessary code. + - Replaced `
` and `` with `` for consistency across components. + - Added `styles.js` files for components with more than 2 lines of CSS. + - Restructured the project by separating core components from views. + - Fixed modal stylings. + + See [#576](https://github.com/RocketChat/EmbeddedChat/pull/576). + +- 5f604c59: - Fixed emoji popup behavior when sidebar opens. + + - Cleaned up hardcoded colors, improved UI consistency with themes. + - Fixed TOTP modal issues. + - Fixed bounce effect when closing emoji popup. + - Added customization options in ChatHeader, Message Toolbox, and Formatting Toolbar. + - Designed bubble variant for UI consistency. + - Refactored bubble styles for better alignment. + - Fixed UI for quote and pinned message. + + See [#581](https://github.com/RocketChat/EmbeddedChat/pull/581). + +- 5f604c59: - Reordered code for better readability. + + - Removed unnecessary global states, handled by ECOptions. + - Cleaned up EmbeddedChat component, moved layout-related functions to ChatLayout.js. + - Added AuthTokenEndpoint in RC-app for token management. + - Modified auth.js to support both secure and localStorage login. + - Added API calls in RocketChatAuth library. + + See [#590](https://github.com/RocketChat/EmbeddedChat/pull/590). + +- 5f604c59: - Introduced 'layout-editor' for real-time drag-and-drop layout customization and theme generation in EmbeddedChat. + + See [#607](https://github.com/RocketChat/EmbeddedChat/pull/607). + +- 5f604c59: - Modularized UiKit folder structure. + + - Added logic for state and view updates, similar to Rocket.Chat. + - Implemented contexts and action handlers for modals and actions. + - Added interactions for sending values to the server. + - Introduced global states for modals and contextual bar. + - Resolved menu issues and added contextual bar support. + - Fixed stylings and addressed minor bugs. + - Added support for static and multi-select elements with custom components. + - Created stories for new components. + + See [#593](https://github.com/RocketChat/EmbeddedChat/pull/593). + +- 5f604c59: - Refactored bubble styles to be independent. + + - Refactored sidebar with a common message aggregator to reduce repetition. + - Positioned popup relative to the message. + - Fixed display name prop issues. + - Added popup option for sidebar menus, allowing flexible choice. + - Added random color option for display names. + + See [#584](https://github.com/RocketChat/EmbeddedChat/pull/584). + +- 5f604c59: - Configure EC remotely: added settings, refactored read logic, introduced fetch function, and added useRemoteProps hook to override props. + + See [#599](https://github.com/RocketChat/EmbeddedChat/pull/599). + +- 5f604c59: - Shifted to ShadCN naming system. + + - Fixed theming system and various component stylings. + - Limited modal size to EC component using React Portals. + - Removed Dropbox + - Fixed ImageGallery and UI inconsistencies. + - Resolved Sidebar overlap issue. + - Redesigned 'RocketChat - Minimalist' UI variant. + - Fixed Popup, member list, and command list popup. + - Fixed swiper bugs and stylings. + - Removed unnecessary dependencies and matched colors. + - Updated test to check .ec-chat-header--channelName instead of .ec-chat-header--channelDescription. + + See [#579](https://github.com/RocketChat/EmbeddedChat/pull/579). + +- 5f604c59: - Fixed MemberList and CommandList stylings. + + - Added auto-scroll functionality to MentionList and CommandList menus. + - Added keyboard control in CommandList menu. + - Implemented word break in input component when text exceeds the limit. + - Added scroll functionality in input. + - Fixed Ctrl+B and Ctrl+I toggling, reused existing functionality. + - Refactored code into separate functions and components based on concerns. + + See [#589](https://github.com/RocketChat/EmbeddedChat/pull/589). + +### Patch Changes + +- 5f604c59: - Optimized package size for bundling. + + See [#606](https://github.com/RocketChat/EmbeddedChat/pull/606). + +- 5f604c59: - Restructured Auto Login, added loading screens, and cleaned up code. + + See [#594](https://github.com/RocketChat/EmbeddedChat/pull/594). + +- c8c9dee0: Fix: Room members avatar invalid avatar url creation +- 100c5f79: Improve: Added confirmation modal on deleting message +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] + - @embeddedchat/ui-elements@0.1.0 + - @embeddedchat/ui-kit@0.1.0 + - @embeddedchat/markups@0.1.0 + - @embeddedchat/api@0.1.0 + ## 0.1.12 ### Patch Changes diff --git a/packages/react/README.md b/packages/react/README.md index ce870a425a..9a894cf46a 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -13,6 +13,23 @@ npm install @embeddedchat/react yarn add @embeddedchat/react ``` +## Vite Configuration (If Applicable) + +If you're using EmbeddedChat in a Vite project, you need to make adjustments to your Vite configuration file to ensure compatibility with how environment variables are handled in the browser. + +### Update `vite.config.js` or `vite.config.ts` + +Add the following settings inside the `defineConfig` function of your Vite configuration file: + +```javascript +base: "/", +define: { + "process.env": {}, +}, +``` + +These changes address compatibility issues and allow EmbeddedChat to function properly in Vite projects. + ## Importing the Component Import the `EmbeddedChat` component into your file: diff --git a/packages/react/package.json b/packages/react/package.json index 6a2c98d89b..8277d2802d 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@embeddedchat/react", - "version": "0.1.12", + "version": "1.0.2", "description": "React component library for embedding Rocket.Chat in React applications, providing customizable and feature-rich chat interfaces with easy React integration.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", @@ -83,7 +83,8 @@ "react-dom": ">=17.0.2 <19.0.0" }, "dependencies": { - "@embeddedchat/api": "0.0.2", + "@embeddedchat/api": "workspace:^", + "@embeddedchat/markups": "workspace:^", "@embeddedchat/ui-elements": "workspace:^", "@embeddedchat/ui-kit": "workspace:^", "@emotion/babel-preset-css-prop": "^11.11.0", diff --git a/packages/ui-elements/CHANGELOG.md b/packages/ui-elements/CHANGELOG.md new file mode 100644 index 0000000000..a85ddf58b5 --- /dev/null +++ b/packages/ui-elements/CHANGELOG.md @@ -0,0 +1,25 @@ +# @embeddedchat/ui-elements + +## 0.1.1 + +### Patch Changes + +- - Bumping version + +## 0.1.0 + +### Minor Changes + +- 5f604c59: - Separated components, markups, and ui-kit into individual monorepos. + + See [#604](https://github.com/RocketChat/EmbeddedChat/pull/604). + +- 5f604c59: - Introduced 'layout-editor' for real-time drag-and-drop layout customization and theme generation in EmbeddedChat. + + See [#607](https://github.com/RocketChat/EmbeddedChat/pull/607). + +### Patch Changes + +- 5f604c59: - Optimized package size for bundling. + + See [#606](https://github.com/RocketChat/EmbeddedChat/pull/606). diff --git a/packages/ui-elements/package.json b/packages/ui-elements/package.json index f8e41b8c03..05147a6d76 100644 --- a/packages/ui-elements/package.json +++ b/packages/ui-elements/package.json @@ -1,6 +1,6 @@ { "name": "@embeddedchat/ui-elements", - "version": "0.0.0", + "version": "0.1.1", "description": "Reusable UI components and UI-related hooks for EmbeddedChat.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", 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/packages/ui-kit/CHANGELOG.md b/packages/ui-kit/CHANGELOG.md new file mode 100644 index 0000000000..3ae14013f2 --- /dev/null +++ b/packages/ui-kit/CHANGELOG.md @@ -0,0 +1,27 @@ +# @embeddedchat/ui-kit + +## 0.1.1 + +### Patch Changes + +- - Bumping version +- Updated dependencies + - @embeddedchat/markups@0.1.1 + +## 0.1.0 + +### Minor Changes + +- 5f604c59: - Separated components, markups, and ui-kit into individual monorepos. + + See [#604](https://github.com/RocketChat/EmbeddedChat/pull/604). + +### Patch Changes + +- 5f604c59: - Optimized package size for bundling. + + See [#606](https://github.com/RocketChat/EmbeddedChat/pull/606). + +- Updated dependencies [5f604c59] +- Updated dependencies [5f604c59] + - @embeddedchat/markups@0.1.0 diff --git a/packages/ui-kit/package.json b/packages/ui-kit/package.json index 9d9ddb0d8a..8f5ee17972 100644 --- a/packages/ui-kit/package.json +++ b/packages/ui-kit/package.json @@ -1,6 +1,6 @@ { "name": "@embeddedchat/ui-kit", - "version": "0.0.0", + "version": "0.1.1", "description": "UiKit elements for Rocket.Chat Apps built under EmbeddedChat design system", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", @@ -73,6 +73,7 @@ "react-dom": ">=17.0.2 <19.0.0" }, "dependencies": { + "@embeddedchat/markups": "workspace:^", "@emotion/babel-preset-css-prop": "^11.11.0", "@emotion/react": "11.7.1", "@rocket.chat/message-parser": "^0.31.29", diff --git a/yarn.lock b/yarn.lock index 39464bc873..37796a83ad 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,8 @@ __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/markups": "workspace:^" "@embeddedchat/ui-elements": "workspace:^" "@embeddedchat/ui-kit": "workspace:^" "@emotion/babel-plugin": ^11.11.0 @@ -2593,6 +2594,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/markups": "workspace:^" "@emotion/babel-plugin": ^11.11.0 "@emotion/babel-preset-css-prop": ^11.11.0 "@emotion/react": 11.7.1