talkweb 3.50.41-snapshot.1 → 3.50.42-snapshot.2
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 +12 -16
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/js/{AddContact-BUZaW62t.js → AddContact-DvZ9fBCj.js} +1 -1
- package/dist/js/{HamburgerMenu-CD_oXKjE.js → HamburgerMenu-CVIe70UY.js} +4 -4
- package/dist/js/{ImageEditorModal-C3AxlNH3.js → ImageEditorModal-2UyVcMgJ.js} +1 -1
- package/dist/js/{LoadingDots-BCHF8LdO.js → LoadingDots-H8rV2FyX.js} +3 -2
- package/dist/js/{SearchContactBox-BiSVlLzI.js → SearchContactBox-DOI2hG_M.js} +1 -1
- package/dist/js/{StartCall-CcQ5P7hM.js → StartCall-DLWO_pKG.js} +3 -3
- package/dist/js/{TypingView-CC7bSaPG.js → TypingView-DHpm0ZCl.js} +1 -1
- package/dist/js/{boredGif-CpIevNTo.js → boredGif-DB-xg7Fq.js} +1 -1
- package/dist/js/{index-B12mfnzO.js → index-BW57nzmF.js} +6 -6
- package/dist/js/{index-UH8FQi7b.js → index-Bs0dqmo4.js} +1 -1
- package/dist/js/{index-CIPRe_IQ.js → index-BxThs4ip.js} +62 -62
- package/dist/js/{index-Bsx5zvm7.js → index-CA4dTHW4.js} +3 -3
- package/dist/js/index-CYm_mgRc.js +180 -0
- package/dist/js/{index-trXsI3W8.js → index-CxepSx10.js} +12 -12
- package/dist/js/{index-Dmr1r_ie.js → index-DDMyo-ww.js} +14 -14
- package/dist/js/{main-zRgi4xWO.js → main-CFp-0eTe.js} +11 -11
- package/dist/js/{mic-kKnADQki.js → mic-WwAqI3Tv.js} +1 -1
- package/dist/js/{unescapeHtml-DLzkPRj4.js → unescapeHtml-CtYerfn2.js} +1 -1
- package/dist/js/{useContactThread-DHLgloYG.js → useContactThread-Cl2g17m1.js} +1 -1
- package/dist/js/{useCopyToClipboard-YimoFCPU.js → useCopyToClipboard-DcuSwUC5.js} +1 -1
- package/dist/locale/index.js +3 -3
- package/dist/talkweb.css +1 -1
- package/package.json +2 -1
- package/dist/js/index-CQdtLR2k.js +0 -179
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Modern, flexible chat widget for React applications.
|
|
4
4
|
|
|
5
5
|
```tsx
|
|
6
|
-
import {ReactTalk} from "talkweb";
|
|
6
|
+
import { ReactTalk } from "talkweb";
|
|
7
7
|
import "talkweb/talkweb.css";
|
|
8
8
|
|
|
9
9
|
<ReactTalk
|
|
@@ -16,32 +16,28 @@ import "talkweb/talkweb.css";
|
|
|
16
16
|
AsideBanner={<PromoteAppInstallationBanner />}
|
|
17
17
|
ref={this.chatRef}
|
|
18
18
|
{...serverConfig(
|
|
19
|
-
this.switchingAllowence
|
|
20
|
-
? IsSandbox
|
|
21
|
-
: false,
|
|
19
|
+
this.switchingAllowence ? IsSandbox : false,
|
|
22
20
|
this.foreignSiteAllowence
|
|
23
21
|
)}
|
|
24
22
|
asyncLogging={{
|
|
25
|
-
consoleLogging: this.switchingAllowence
|
|
23
|
+
consoleLogging: this.switchingAllowence
|
|
26
24
|
}}
|
|
27
25
|
onRetryHook={this.retryHook}
|
|
28
26
|
onTypingHook={this.onTypingHook}
|
|
29
27
|
onSignOutHook={this.signOutHook}
|
|
30
28
|
originalServer
|
|
31
|
-
|
|
29
|
+
/>;
|
|
32
30
|
```
|
|
31
|
+
|
|
33
32
|
Features
|
|
34
33
|
|
|
35
|
-
Light / dark theme support with custom background images
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Async logging control
|
|
40
|
-
Foreign site / cross-origin support toggle
|
|
41
|
-
React ref access to chat instance
|
|
42
|
-
CSS class name overriding
|
|
34
|
+
Light / dark theme support with custom background images Server environment
|
|
35
|
+
switching (production / sandbox) Custom sidebar banner Typing indicator & retry
|
|
36
|
+
handling callbacks Async logging control Foreign site / cross-origin support
|
|
37
|
+
toggle React ref access to chat instance CSS class name overriding
|
|
43
38
|
|
|
44
39
|
Installation
|
|
40
|
+
|
|
45
41
|
```
|
|
46
42
|
npm install talkweb
|
|
47
43
|
# or
|
|
@@ -53,6 +49,7 @@ import "talkweb/talkweb.css";
|
|
|
53
49
|
```
|
|
54
50
|
|
|
55
51
|
Quick start (functional component)
|
|
52
|
+
|
|
56
53
|
```tsx
|
|
57
54
|
function App() {
|
|
58
55
|
const token = "your-auth-token-here";
|
|
@@ -67,5 +64,4 @@ function App() {
|
|
|
67
64
|
</div>
|
|
68
65
|
);
|
|
69
66
|
}
|
|
70
|
-
```
|
|
71
|
-
|
|
67
|
+
```
|
package/dist/index.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{fI as a,fH as s,fG as m}from"./js/main-CFp-0eTe.js";export{a as ReactTalk,s as Talk,m as unmountTalk};
|