@open-chat/chat-bubble
Version:
Chat bubble component.
105 lines (71 loc) • 1.68 kB
Markdown
# @open-chat/chat-bubble
## 0.4.2
### Patch Changes
- types
## 0.4.1
### Patch Changes
- fixing ts type exports
## 0.4.0
### Minor Changes
- ## You can now change colors, and reflect the changes immediatly.
`@open-chat/chat-bubble` now you can change the color configuration of the `@open-chat/chat-bubble`
### some types
```ts
export type ColorsType = {
light: {
primary?: string;
accent?: string;
};
dark: {
primary?: string;
accent?: string;
};
};
export type Options = {
token: string;
initialMessages: Array<string>;
position?: "inPlace" | "fullScreen" | "bubble";
defaultOpen?: boolean;
theme?: "light" | "dark" | "auto";
side?: "left" | "right";
colors?: ColorsType;
};
```
### and in the initilization function
```ts
initializeChatWidget({
initialMessages: ["how are the things"],
token: "y0TXrJ6w4I9xEg3MzLQm",
position: "bubble",
defaultOpen: true,
colors: {
light: {
primary: "#000",
accent: "#fff",
},
dark: {
primary: "#fff",
accent: "#000",
},
},
});
```
Dark mode isn't supported yet, but it will be soon.
## 0.3.0
### Minor Changes
- adjustments and minor api changes
## 0.2.1
### Patch Changes
- some styling issues, component refactoring.
## 0.2.0
### Minor Changes
- moving to composition pattern for more control over the widget parts,code separation.
## 0.1.0
### Minor Changes
- added defaultOpen to the bubble configuration, opted the fullScreen.
## 0.0.7
### Patch Changes
- ci
## 0.0.6
### Patch Changes
- integrated changeset in chat-bubble