@opencx/widget 3.0.7 → 3.0.9
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 +30 -30
- package/dist/basic.cjs +34 -34
- package/dist/basic.cjs.map +1 -1
- package/dist/basic.js +1122 -1126
- package/dist/basic.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +2 -2
- package/dist/react.js.map +1 -1
- package/dist/src/headless/react/hooks/useDocumentDir.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/{useUploadFiles-DD-Dptp4.js → useUploadFiles-BsYBWtZE.js} +2 -2
- package/dist/useUploadFiles-BsYBWtZE.js.map +1 -0
- package/dist/{useUploadFiles--ePjdHIP.cjs → useUploadFiles-CVNyTftw.cjs} +2 -2
- package/dist/useUploadFiles-CVNyTftw.cjs.map +1 -0
- package/dist/widget-BeNOCqB5.js.map +1 -1
- package/dist/widget-DlAUwHzU.cjs.map +1 -1
- package/dist-embed/script.js +30 -30
- package/dist-embed/script.js.map +1 -1
- package/package.json +1 -1
- package/dist/useUploadFiles--ePjdHIP.cjs.map +0 -1
- package/dist/useUploadFiles-DD-Dptp4.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# The one and only chat widget for open
|
|
2
|
-
|
|
3
|
-
## How to Get Started
|
|
4
|
-
|
|
5
|
-
### 1. Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pnpm add @opencx/widget
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### 2. Imports
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { Widget, WidgetRoot } from "@opencx/widget/basic";
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### 3. Usage
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
<WidgetRoot options={options}>
|
|
21
|
-
<Widget />
|
|
22
|
-
</WidgetRoot>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
`WidgetRoot` is just the data layer for the widget. It is required to be present in the parent component of the widget.
|
|
26
|
-
You can Pass [options](./react-web/types/options.ts) to the `WidgetRoot` component to customize the widget.
|
|
27
|
-
|
|
28
|
-
## I don't want your UI? can I use my own?
|
|
29
|
-
|
|
30
|
-
Yes, everything in this lib is exported so you can build your own UI on top of it. Check out `core` and `react-lib` directories.
|
|
1
|
+
# The one and only chat widget for open
|
|
2
|
+
|
|
3
|
+
## How to Get Started
|
|
4
|
+
|
|
5
|
+
### 1. Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @opencx/widget
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### 2. Imports
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Widget, WidgetRoot } from "@opencx/widget/basic";
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### 3. Usage
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
<WidgetRoot options={options}>
|
|
21
|
+
<Widget />
|
|
22
|
+
</WidgetRoot>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`WidgetRoot` is just the data layer for the widget. It is required to be present in the parent component of the widget.
|
|
26
|
+
You can Pass [options](./react-web/types/options.ts) to the `WidgetRoot` component to customize the widget.
|
|
27
|
+
|
|
28
|
+
## I don't want your UI? can I use my own?
|
|
29
|
+
|
|
30
|
+
Yes, everything in this lib is exported so you can build your own UI on top of it. Check out `core` and `react-lib` directories.
|