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 2c617f5266..0ea846f57a 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 `