@dori-ai/dori-side-widget 1.11.6 → 1.11.7

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 CHANGED
@@ -1,179 +1,179 @@
1
- # Dori Chat Widget
2
-
3
- A modern, responsive chat widget built with React and Chakra UI, designed for seamless integration into any website. The widget provides an AI-powered chat experience with e-commerce capabilities, perfect for customer support and sales assistance.
4
-
5
- ## 🚀 Features
6
-
7
- - **AI-Powered Chat**: Intelligent conversation capabilities with natural language processing
8
- - **E-commerce Integration**: Product recommendations, shopping cart, and checkout flows
9
- - **Responsive Design**: Mobile-first approach that works on all devices
10
- - **Persian/Farsi Support**: Full RTL support with Persian UI elements
11
- - **Customizable**: Easy to customize colors, branding, and behavior
12
- - **Shadow DOM**: Isolated styling that won't conflict with your website
13
- - **TypeScript**: Built with TypeScript for better development experience
14
-
15
- ## 📦 Installation
16
-
17
- ### Quick Start
18
-
19
- Add this HTML structure to your page:
20
-
21
- ```html
22
- <div id="dori-react-widget-host"></div>
23
- <script
24
- id="dori-react-widget"
25
- data-sharing-id="your-sharing-id"
26
- src="https://cdn.jsdelivr.net/npm/dori-chat-widget@latest/dist/widget.js"
27
- ></script>
28
- ```
29
-
30
- ## 🎨 Customization
31
-
32
- ### Styling
33
-
34
- The widget automatically adapts to your website's design while maintaining its own identity. You can customize:
35
-
36
- - **Colors**: Primary and accent colors
37
- - **Branding**: Logo and company information
38
- - **Messages**: Welcome text and default responses
39
- - **Behavior**: Chat flow and interaction patterns
40
-
41
-
42
- ## 🔧 Development
43
-
44
- ### Local Development
45
-
46
- 1. Clone the repository:
47
- ```bash
48
- git clone <repository-url>
49
- cd my-app
50
- ```
51
-
52
- 2. Install dependencies:
53
- ```bash
54
- npm install
55
- ```
56
-
57
- 3. Start development server:
58
- ```bash
59
- npm run dev
60
- ```
61
-
62
- 4. Open your browser to `http://localhost:3000`
63
-
64
- ### Building for Production
65
-
66
- ```bash
67
- npm run build
68
- ```
69
-
70
- This will create a `dist` folder with the production-ready widget files.
71
-
72
- ### Scoped NPM Publish (`@dori-ai/dori-side-widget`)
73
-
74
- Use these scripts to publish the scoped package with branch-safe tags:
75
-
76
- ```bash
77
- # From dev branch -> publishes tag "dev" with auto dev timestamp version
78
- npm run publish:dev:scoped
79
-
80
- # From main branch -> publishes tag "latest" with package.json version
81
- npm run publish:prod:scoped
82
- ```
83
-
84
- Dry-run checks:
85
-
86
- ```bash
87
- npm run publish:dev:dry
88
- npm run publish:prod:dry
89
- ```
90
-
91
- ### Development vs Production
92
-
93
- - **Development**: `npm run dev` - Uses direct DOM rendering for easier debugging
94
- - **Production**: `npm run build` - Creates optimized bundle with shadow DOM isolation
95
-
96
- ## 📱 Widget Components
97
-
98
- ### Core Features
99
-
100
- - **Welcome Screen**: Initial greeting with animated logo
101
- - **Chat Interface**: Full-featured chat with message history
102
- - **Product Recommendations**: AI-powered product suggestions
103
- - **Shopping Cart**: Integrated e-commerce functionality
104
- - **Responsive Design**: Works seamlessly on all devices
105
-
106
- ### Technical Architecture
107
-
108
- - **React 19**: Latest React with modern hooks and features
109
- - **Chakra UI**: Consistent, accessible component library
110
- - **TypeScript**: Full type safety and better development experience
111
- - **Shadow DOM**: Isolated styling and DOM structure
112
- - **Vite**: Fast build tooling and development server
113
-
114
- ## 🌐 Browser Support
115
-
116
- - Chrome 88+
117
- - Firefox 85+
118
- - Safari 14+
119
- - Edge 88+
120
-
121
- ## 📊 Analytics & Tracking
122
-
123
- The widget automatically tracks:
124
- - Conversation sessions
125
- - User interactions
126
- - Product recommendations
127
- - Conversion metrics
128
-
129
- All data is associated with your `data-sharing-id` for easy analysis.
130
-
131
- ## 🔒 Security & Privacy
132
-
133
- - **Isolated Environment**: Widget runs in shadow DOM for security
134
- - **No Cross-Site Scripting**: Secure communication protocols
135
- - **Data Privacy**: User data is handled according to privacy standards
136
- - **GDPR Compliant**: Built with privacy regulations in mind
137
-
138
- ## 🚀 Performance
139
-
140
- - **Lightweight**: Optimized bundle size for fast loading
141
- - **Lazy Loading**: Components load only when needed
142
- - **Efficient Rendering**: React 19 optimizations for smooth performance
143
- - **CDN Delivery**: Fast global distribution via jsDelivr
144
-
145
- ## 📞 Support
146
-
147
- For technical support or questions:
148
- - Open an issue in the repository
149
- - Contact support at support@dori.com
150
- - Check the documentation for common solutions
151
-
152
- ## 📄 License
153
-
154
- This project is licensed under the MIT License.
155
-
156
- ## 🤝 Contributing
157
-
158
- We welcome contributions! Please feel free to:
159
- - Submit bug reports
160
- - Request new features
161
- - Contribute code improvements
162
- - Improve documentation
163
-
164
- ## 🔄 Updates
165
-
166
- The widget automatically updates when you use the `@latest` tag. For version-specific deployments, use:
167
-
168
- ```html
169
- <div id="dori-react-widget-host"></div>
170
- <script
171
- id="dori-react-widget"
172
- data-sharing-id="your-id"
173
- src="https://cdn.jsdelivr.net/npm/dori-chat-widget@1.0.0/dist/widget.js"
174
- ></script>
175
- ```
176
-
177
- ---
178
-
179
- **Dori Chat Widget** - Making customer support smarter and more engaging.
1
+ # Dori Chat Widget
2
+
3
+ A modern, responsive chat widget built with React and Chakra UI, designed for seamless integration into any website. The widget provides an AI-powered chat experience with e-commerce capabilities, perfect for customer support and sales assistance.
4
+
5
+ ## 🚀 Features
6
+
7
+ - **AI-Powered Chat**: Intelligent conversation capabilities with natural language processing
8
+ - **E-commerce Integration**: Product recommendations, shopping cart, and checkout flows
9
+ - **Responsive Design**: Mobile-first approach that works on all devices
10
+ - **Persian/Farsi Support**: Full RTL support with Persian UI elements
11
+ - **Customizable**: Easy to customize colors, branding, and behavior
12
+ - **Shadow DOM**: Isolated styling that won't conflict with your website
13
+ - **TypeScript**: Built with TypeScript for better development experience
14
+
15
+ ## 📦 Installation
16
+
17
+ ### Quick Start
18
+
19
+ Add this HTML structure to your page:
20
+
21
+ ```html
22
+ <div id="dori-react-widget-host"></div>
23
+ <script
24
+ id="dori-react-widget"
25
+ data-sharing-id="your-sharing-id"
26
+ src="https://cdn.jsdelivr.net/npm/dori-chat-widget@latest/dist/widget.js"
27
+ ></script>
28
+ ```
29
+
30
+ ## 🎨 Customization
31
+
32
+ ### Styling
33
+
34
+ The widget automatically adapts to your website's design while maintaining its own identity. You can customize:
35
+
36
+ - **Colors**: Primary and accent colors
37
+ - **Branding**: Logo and company information
38
+ - **Messages**: Welcome text and default responses
39
+ - **Behavior**: Chat flow and interaction patterns
40
+
41
+
42
+ ## 🔧 Development
43
+
44
+ ### Local Development
45
+
46
+ 1. Clone the repository:
47
+ ```bash
48
+ git clone <repository-url>
49
+ cd my-app
50
+ ```
51
+
52
+ 2. Install dependencies:
53
+ ```bash
54
+ npm install
55
+ ```
56
+
57
+ 3. Start development server:
58
+ ```bash
59
+ npm run dev
60
+ ```
61
+
62
+ 4. Open your browser to `http://localhost:3000`
63
+
64
+ ### Building for Production
65
+
66
+ ```bash
67
+ npm run build
68
+ ```
69
+
70
+ This will create a `dist` folder with the production-ready widget files.
71
+
72
+ ### Scoped NPM Publish (`@dori-ai/dori-side-widget`)
73
+
74
+ Use these scripts to publish the scoped package with branch-safe tags:
75
+
76
+ ```bash
77
+ # From dev branch -> publishes tag "dev" with auto dev timestamp version
78
+ npm run publish:dev:scoped
79
+
80
+ # From main branch -> publishes tag "latest" with package.json version
81
+ npm run publish:prod:scoped
82
+ ```
83
+
84
+ Dry-run checks:
85
+
86
+ ```bash
87
+ npm run publish:dev:dry
88
+ npm run publish:prod:dry
89
+ ```
90
+
91
+ ### Development vs Production
92
+
93
+ - **Development**: `npm run dev` - Uses direct DOM rendering for easier debugging
94
+ - **Production**: `npm run build` - Creates optimized bundle with shadow DOM isolation
95
+
96
+ ## 📱 Widget Components
97
+
98
+ ### Core Features
99
+
100
+ - **Welcome Screen**: Initial greeting with animated logo
101
+ - **Chat Interface**: Full-featured chat with message history
102
+ - **Product Recommendations**: AI-powered product suggestions
103
+ - **Shopping Cart**: Integrated e-commerce functionality
104
+ - **Responsive Design**: Works seamlessly on all devices
105
+
106
+ ### Technical Architecture
107
+
108
+ - **React 19**: Latest React with modern hooks and features
109
+ - **Chakra UI**: Consistent, accessible component library
110
+ - **TypeScript**: Full type safety and better development experience
111
+ - **Shadow DOM**: Isolated styling and DOM structure
112
+ - **Vite**: Fast build tooling and development server
113
+
114
+ ## 🌐 Browser Support
115
+
116
+ - Chrome 88+
117
+ - Firefox 85+
118
+ - Safari 14+
119
+ - Edge 88+
120
+
121
+ ## 📊 Analytics & Tracking
122
+
123
+ The widget automatically tracks:
124
+ - Conversation sessions
125
+ - User interactions
126
+ - Product recommendations
127
+ - Conversion metrics
128
+
129
+ All data is associated with your `data-sharing-id` for easy analysis.
130
+
131
+ ## 🔒 Security & Privacy
132
+
133
+ - **Isolated Environment**: Widget runs in shadow DOM for security
134
+ - **No Cross-Site Scripting**: Secure communication protocols
135
+ - **Data Privacy**: User data is handled according to privacy standards
136
+ - **GDPR Compliant**: Built with privacy regulations in mind
137
+
138
+ ## 🚀 Performance
139
+
140
+ - **Lightweight**: Optimized bundle size for fast loading
141
+ - **Lazy Loading**: Components load only when needed
142
+ - **Efficient Rendering**: React 19 optimizations for smooth performance
143
+ - **CDN Delivery**: Fast global distribution via jsDelivr
144
+
145
+ ## 📞 Support
146
+
147
+ For technical support or questions:
148
+ - Open an issue in the repository
149
+ - Contact support at support@dori.com
150
+ - Check the documentation for common solutions
151
+
152
+ ## 📄 License
153
+
154
+ This project is licensed under the MIT License.
155
+
156
+ ## 🤝 Contributing
157
+
158
+ We welcome contributions! Please feel free to:
159
+ - Submit bug reports
160
+ - Request new features
161
+ - Contribute code improvements
162
+ - Improve documentation
163
+
164
+ ## 🔄 Updates
165
+
166
+ The widget automatically updates when you use the `@latest` tag. For version-specific deployments, use:
167
+
168
+ ```html
169
+ <div id="dori-react-widget-host"></div>
170
+ <script
171
+ id="dori-react-widget"
172
+ data-sharing-id="your-id"
173
+ src="https://cdn.jsdelivr.net/npm/dori-chat-widget@1.0.0/dist/widget.js"
174
+ ></script>
175
+ ```
176
+
177
+ ---
178
+
179
+ **Dori Chat Widget** - Making customer support smarter and more engaging.