talkweb 3.50.40 → 3.50.41-snapshot.1
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 +68 -51
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/js/{AddContact-C8k23zBy.js → AddContact-BUZaW62t.js} +1 -1
- package/dist/js/{HamburgerMenu-CUR6OZE7.js → HamburgerMenu-CD_oXKjE.js} +1 -1
- package/dist/js/{ImageEditorModal-B3p71vBj.js → ImageEditorModal-C3AxlNH3.js} +1 -1
- package/dist/js/{LoadingDots-C0nCupfL.js → LoadingDots-BCHF8LdO.js} +1 -1
- package/dist/js/{SearchContactBox-UTpVyOTL.js → SearchContactBox-BiSVlLzI.js} +1 -1
- package/dist/js/{StartCall-D6GtQRSX.js → StartCall-CcQ5P7hM.js} +1 -1
- package/dist/js/{TypingView-OQF-GN7g.js → TypingView-CC7bSaPG.js} +1 -1
- package/dist/js/{boredGif-8jdsw0lW.js → boredGif-CpIevNTo.js} +1 -1
- package/dist/js/{index-ChBOcTsK.js → index-B12mfnzO.js} +1 -1
- package/dist/js/{index-CLDUrLRO.js → index-Bsx5zvm7.js} +6 -6
- package/dist/js/{index-CmGtXY--.js → index-CIPRe_IQ.js} +10 -10
- package/dist/js/{index-DmBN7RvC.js → index-CQdtLR2k.js} +1 -1
- package/dist/js/{index-BDpa1WHv.js → index-Dmr1r_ie.js} +2 -2
- package/dist/js/{index-DczzCtFN.js → index-UH8FQi7b.js} +1 -1
- package/dist/js/{index-DLrQ40ZP.js → index-trXsI3W8.js} +1 -1
- package/dist/js/{main-D3WbAbGg.js → main-zRgi4xWO.js} +2 -2
- package/dist/js/{mic-BOinX01o.js → mic-kKnADQki.js} +1 -1
- package/dist/js/{unescapeHtml-DOYJ_s64.js → unescapeHtml-DLzkPRj4.js} +1 -1
- package/dist/js/{useContactThread-C0UBrclI.js → useContactThread-DHLgloYG.js} +1 -1
- package/dist/js/{useCopyToClipboard-Szs99EXZ.js → useCopyToClipboard-YimoFCPU.js} +1 -1
- package/dist/talkweb.css +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,54 +1,71 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
# ReactTalk – Talkweb Chat Component
|
|
2
|
+
|
|
3
|
+
Modern, flexible chat widget for React applications.
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import {ReactTalk} from "talkweb";
|
|
7
|
+
import "talkweb/talkweb.css";
|
|
8
|
+
|
|
9
|
+
<ReactTalk
|
|
10
|
+
token={token}
|
|
11
|
+
// bgDarkUrl={"/assets/background/7.webp"}
|
|
12
|
+
bgDarkUrl={"/assets/bg-dark.svg"}
|
|
13
|
+
bgLightUrl={"/assets/bg-light.svg"}
|
|
14
|
+
clearCache={this.clearCache}
|
|
15
|
+
customClassName={style.Podchatbox}
|
|
16
|
+
AsideBanner={<PromoteAppInstallationBanner />}
|
|
17
|
+
ref={this.chatRef}
|
|
18
|
+
{...serverConfig(
|
|
19
|
+
this.switchingAllowence
|
|
20
|
+
? IsSandbox
|
|
21
|
+
: false,
|
|
22
|
+
this.foreignSiteAllowence
|
|
23
|
+
)}
|
|
24
|
+
asyncLogging={{
|
|
25
|
+
consoleLogging: this.switchingAllowence,
|
|
26
|
+
}}
|
|
27
|
+
onRetryHook={this.retryHook}
|
|
28
|
+
onTypingHook={this.onTypingHook}
|
|
29
|
+
onSignOutHook={this.signOutHook}
|
|
30
|
+
originalServer
|
|
31
|
+
/>
|
|
32
32
|
```
|
|
33
|
+
Features
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'react-x': reactX,
|
|
45
|
-
'react-dom': reactDom,
|
|
46
|
-
},
|
|
47
|
-
rules: {
|
|
48
|
-
// other rules...
|
|
49
|
-
// Enable its recommended typescript rules
|
|
50
|
-
...reactX.configs['recommended-typescript'].rules,
|
|
51
|
-
...reactDom.configs.recommended.rules,
|
|
52
|
-
},
|
|
53
|
-
})
|
|
35
|
+
Light / dark theme support with custom background images
|
|
36
|
+
Server environment switching (production / sandbox)
|
|
37
|
+
Custom sidebar banner
|
|
38
|
+
Typing indicator & retry handling callbacks
|
|
39
|
+
Async logging control
|
|
40
|
+
Foreign site / cross-origin support toggle
|
|
41
|
+
React ref access to chat instance
|
|
42
|
+
CSS class name overriding
|
|
43
|
+
|
|
44
|
+
Installation
|
|
54
45
|
```
|
|
46
|
+
npm install talkweb
|
|
47
|
+
# or
|
|
48
|
+
yarn add talkweb
|
|
49
|
+
# or
|
|
50
|
+
pnpm add talkweb
|
|
51
|
+
|
|
52
|
+
import "talkweb/talkweb.css";
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Quick start (functional component)
|
|
56
|
+
```tsx
|
|
57
|
+
function App() {
|
|
58
|
+
const token = "your-auth-token-here";
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<div style={{ height: "100vh" }}>
|
|
62
|
+
<ReactTalk
|
|
63
|
+
token={token}
|
|
64
|
+
bgDarkUrl="/assets/bg-dark.svg"
|
|
65
|
+
bgLightUrl="/assets/bg-light.svg"
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
package/dist/index.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fH as a,fG as s,fF as m}from"./js/main-
|
|
1
|
+
import{fH as a,fG as s,fF as m}from"./js/main-zRgi4xWO.js";export{a as ReactTalk,s as Talk,m as unmountTalk};
|