@sawport/react-sdk 1.0.12 → 1.0.15
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 +0 -22
- package/dist/index.js +33954 -2148
- package/dist/index.umd.js +17 -6
- package/dist/react-sdk.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# Getting Started With Sawport Widget
|
|
2
2
|
|
|
3
|
-
## React Compatibility
|
|
4
|
-
|
|
5
|
-
This SDK supports React 18.x and React 19.x. If you encounter React version mismatch errors (like Error #527), please see our [React Compatibility Guide](./docs/REACT_COMPATIBILITY.md) for solutions.
|
|
6
|
-
|
|
7
|
-
**Supported React Versions:**
|
|
8
|
-
- React 18.0.0+
|
|
9
|
-
- React 19.0.0+
|
|
10
|
-
|
|
11
3
|
## Web Usage
|
|
12
4
|
### Pull the Sawport Widget CSS from your HTML head into your web page.
|
|
13
5
|
```html
|
|
@@ -67,22 +59,8 @@ docReady(() => sawportSDK.setSawportConfig({
|
|
|
67
59
|
|
|
68
60
|
# Usage In REACTJS
|
|
69
61
|
## Install the SDK
|
|
70
|
-
|
|
71
|
-
**Important:** This library requires React as a peer dependency. Ensure you have a compatible React version installed.
|
|
72
|
-
|
|
73
62
|
```bash
|
|
74
|
-
# Install the SDK
|
|
75
63
|
yarn add @sawport/react-sdk
|
|
76
|
-
|
|
77
|
-
# Ensure React is installed (if not already present)
|
|
78
|
-
yarn add react@^18.0.0 react-dom@^18.0.0
|
|
79
|
-
# OR for React 19
|
|
80
|
-
yarn add react@^19.0.0 react-dom@^19.0.0
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**NPM:**
|
|
84
|
-
```bash
|
|
85
|
-
npm install @sawport/react-sdk react@^18.0.0 react-dom@^18.0.0
|
|
86
64
|
```
|
|
87
65
|
|
|
88
66
|
## Configuring The Widget
|