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.
Files changed (25) hide show
  1. package/README.md +68 -51
  2. package/dist/index.es.js +1 -1
  3. package/dist/index.umd.js +1 -1
  4. package/dist/js/{AddContact-C8k23zBy.js → AddContact-BUZaW62t.js} +1 -1
  5. package/dist/js/{HamburgerMenu-CUR6OZE7.js → HamburgerMenu-CD_oXKjE.js} +1 -1
  6. package/dist/js/{ImageEditorModal-B3p71vBj.js → ImageEditorModal-C3AxlNH3.js} +1 -1
  7. package/dist/js/{LoadingDots-C0nCupfL.js → LoadingDots-BCHF8LdO.js} +1 -1
  8. package/dist/js/{SearchContactBox-UTpVyOTL.js → SearchContactBox-BiSVlLzI.js} +1 -1
  9. package/dist/js/{StartCall-D6GtQRSX.js → StartCall-CcQ5P7hM.js} +1 -1
  10. package/dist/js/{TypingView-OQF-GN7g.js → TypingView-CC7bSaPG.js} +1 -1
  11. package/dist/js/{boredGif-8jdsw0lW.js → boredGif-CpIevNTo.js} +1 -1
  12. package/dist/js/{index-ChBOcTsK.js → index-B12mfnzO.js} +1 -1
  13. package/dist/js/{index-CLDUrLRO.js → index-Bsx5zvm7.js} +6 -6
  14. package/dist/js/{index-CmGtXY--.js → index-CIPRe_IQ.js} +10 -10
  15. package/dist/js/{index-DmBN7RvC.js → index-CQdtLR2k.js} +1 -1
  16. package/dist/js/{index-BDpa1WHv.js → index-Dmr1r_ie.js} +2 -2
  17. package/dist/js/{index-DczzCtFN.js → index-UH8FQi7b.js} +1 -1
  18. package/dist/js/{index-DLrQ40ZP.js → index-trXsI3W8.js} +1 -1
  19. package/dist/js/{main-D3WbAbGg.js → main-zRgi4xWO.js} +2 -2
  20. package/dist/js/{mic-BOinX01o.js → mic-kKnADQki.js} +1 -1
  21. package/dist/js/{unescapeHtml-DOYJ_s64.js → unescapeHtml-DLzkPRj4.js} +1 -1
  22. package/dist/js/{useContactThread-C0UBrclI.js → useContactThread-DHLgloYG.js} +1 -1
  23. package/dist/js/{useCopyToClipboard-Szs99EXZ.js → useCopyToClipboard-YimoFCPU.js} +1 -1
  24. package/dist/talkweb.css +1 -1
  25. package/package.json +3 -1
package/README.md CHANGED
@@ -1,54 +1,71 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
-
14
- ```js
15
- export default tseslint.config({
16
- extends: [
17
- // Remove ...tseslint.configs.recommended and replace with this
18
- ...tseslint.configs.recommendedTypeChecked,
19
- // Alternatively, use this for stricter rules
20
- ...tseslint.configs.strictTypeChecked,
21
- // Optionally, add this for stylistic rules
22
- ...tseslint.configs.stylisticTypeChecked,
23
- ],
24
- languageOptions: {
25
- // other options...
26
- parserOptions: {
27
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
28
- tsconfigRootDir: import.meta.dirname,
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
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
35
-
36
- ```js
37
- // eslint.config.js
38
- import reactX from 'eslint-plugin-react-x'
39
- import reactDom from 'eslint-plugin-react-dom'
40
-
41
- export default tseslint.config({
42
- plugins: {
43
- // Add the react-x and react-dom plugins
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-D3WbAbGg.js";export{a as ReactTalk,s as Talk,m as unmountTalk};
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};