@customerhero/react 2.2.0 → 2.3.0
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/README.md +19 -0
- package/dist/chunk-BB2DI7WR.js +2932 -0
- package/dist/index.cjs +254 -142
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +20 -2820
- package/dist/preview.cjs +2976 -0
- package/dist/preview.d.cts +32 -0
- package/dist/preview.d.ts +32 -0
- package/dist/preview.js +53 -0
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -61,6 +61,25 @@ Pass an `identity` prop to link conversations to a user record in your system. U
|
|
|
61
61
|
| `locale` | `string` | Widget locale (`"en"`, `"es"`). Auto-detected if omitted. |
|
|
62
62
|
| `suggestedMessages` | `string[]` | Quick-reply options shown before the first message. |
|
|
63
63
|
|
|
64
|
+
### Appearance
|
|
65
|
+
|
|
66
|
+
| Prop | Type | Description |
|
|
67
|
+
| ------------------------ | ----------------------------------- | ---------------------------------------------------------------------------- |
|
|
68
|
+
| `colorScheme` | `"auto" \| "light" \| "dark"` | `auto` follows the visitor's OS preference. Defaults to `light`. |
|
|
69
|
+
| `primaryColorDark` | `string` | Primary color in dark mode. Only honoured when the effective scheme is dark. |
|
|
70
|
+
| `backgroundColorDark` | `string` | Background color in dark mode. |
|
|
71
|
+
| `textColorDark` | `string` | Text color in dark mode. |
|
|
72
|
+
| `size` | `"compact" \| "default" \| "large"` | Launcher diameter, panel dimensions, and base font size. |
|
|
73
|
+
| `cornerStyle` | `"soft" \| "rounded" \| "square"` | Panel border-radius preset. |
|
|
74
|
+
| `launcher.iconUrl` | `string` | Custom launcher icon URL. |
|
|
75
|
+
| `launcher.label` | `string` | CTA label next to the launcher (turns the bubble into a pill). Max 60 chars. |
|
|
76
|
+
| `launcher.showOnlineDot` | `boolean` | Show a small green dot on the launcher when agents are available. |
|
|
77
|
+
| `offset.bottom` | `number` | Pixel offset from the bottom edge. 0–1000. Defaults to 20. |
|
|
78
|
+
| `offset.side` | `number` | Pixel offset from the side. 0–1000. Defaults to 20. |
|
|
79
|
+
| `zIndex` | `number` | Z-index override. Defaults to 99999. |
|
|
80
|
+
|
|
81
|
+
Dark colors are never auto-derived. Set them explicitly when enabling dark or auto modes.
|
|
82
|
+
|
|
64
83
|
See the full reference at [customerhero.app/docs](https://customerhero.app).
|
|
65
84
|
|
|
66
85
|
## License
|