ordify-chat-widget 1.0.1 → 1.0.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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,13 +39,13 @@ Before integrating the chat widget, ensure you have:
|
|
|
39
39
|
### 1. Install the Library
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
npm install
|
|
42
|
+
npm install ordify-chat-widget
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### 2. Add to Your React App
|
|
46
46
|
|
|
47
47
|
```tsx
|
|
48
|
-
import { OrdifyChat } from '
|
|
48
|
+
import { OrdifyChat } from 'ordify-chat-widget'
|
|
49
49
|
|
|
50
50
|
function App() {
|
|
51
51
|
return (
|
|
@@ -125,7 +125,7 @@ Visit [app.ordify.ai/widget-demo](https://app.ordify.ai/widget-demo) to see all
|
|
|
125
125
|
// app/chat/page.tsx
|
|
126
126
|
'use client'
|
|
127
127
|
|
|
128
|
-
import { OrdifyChat } from '
|
|
128
|
+
import { OrdifyChat } from 'ordify-chat-widget'
|
|
129
129
|
|
|
130
130
|
export default function ChatPage() {
|
|
131
131
|
return (
|
|
@@ -146,7 +146,7 @@ export default function ChatPage() {
|
|
|
146
146
|
#### React Component
|
|
147
147
|
```tsx
|
|
148
148
|
// components/ChatWidget.tsx
|
|
149
|
-
import { OrdifyChat } from '
|
|
149
|
+
import { OrdifyChat } from 'ordify-chat-widget'
|
|
150
150
|
|
|
151
151
|
export function ChatWidget() {
|
|
152
152
|
return (
|
|
@@ -165,7 +165,7 @@ export function ChatWidget() {
|
|
|
165
165
|
#### Landing Page Integration
|
|
166
166
|
```tsx
|
|
167
167
|
// pages/index.tsx
|
|
168
|
-
import { OrdifyChat } from '
|
|
168
|
+
import { OrdifyChat } from 'ordify-chat-widget'
|
|
169
169
|
|
|
170
170
|
export default function HomePage() {
|
|
171
171
|
return (
|
package/package.json
CHANGED