@voxket-ai/voxket-live 1.0.49 → 1.0.50

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 (2) hide show
  1. package/package.json +4 -5
  2. package/CONSUMER_SETUP.md +0 -82
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@voxket-ai/voxket-live",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "A scalable React SDK for embedding Voxket-powered AI agent experiences with complete customization options.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
9
  "files": [
10
- "dist",
11
- "CONSUMER_SETUP.md"
10
+ "dist"
12
11
  ],
13
12
  "repository": {
14
13
  "type": "git",
@@ -16,9 +15,9 @@
16
15
  },
17
16
  "exports": {
18
17
  ".": {
19
- "types": "./dist/index.d.ts",
20
18
  "import": "./dist/index.js",
21
- "require": "./dist/index.cjs"
19
+ "require": "./dist/index.cjs",
20
+ "types": "./dist/index.d.ts"
22
21
  }
23
22
  },
24
23
  "publishConfig": {
package/CONSUMER_SETUP.md DELETED
@@ -1,82 +0,0 @@
1
- # Consumer App Setup Guide
2
-
3
- If you're experiencing the "Cannot read properties of undefined (reading 'ReactCurrentDispatcher')" error, follow these steps:
4
-
5
- ## Step 1: Ensure React Version Compatibility
6
-
7
- Make sure your consumer app uses React 18.3.x or compatible:
8
-
9
- ```json
10
- {
11
- "dependencies": {
12
- "react": "^18.3.1",
13
- "react-dom": "^18.3.1"
14
- }
15
- }
16
- ```
17
-
18
- ## Step 2: Clean Install
19
-
20
- ```bash
21
- rm -rf node_modules package-lock.json
22
- npm install
23
- ```
24
-
25
- ## Step 3: Next.js Configuration (if using Next.js)
26
-
27
- Add this to your `next.config.js`:
28
-
29
- ```javascript
30
- /** @type {import('next').NextConfig} */
31
- const nextConfig = {
32
- experimental: {
33
- esmExternals: false
34
- },
35
- webpack: (config, { isServer }) => {
36
- if (!isServer) {
37
- config.resolve.fallback = {
38
- ...config.resolve.fallback,
39
- fs: false,
40
- net: false,
41
- tls: false,
42
- };
43
- }
44
-
45
- // Ensure React is resolved to the same instance
46
- config.resolve.alias = {
47
- ...config.resolve.alias,
48
- 'react': require.resolve('react'),
49
- 'react-dom': require.resolve('react-dom'),
50
- };
51
-
52
- return config;
53
- },
54
- };
55
-
56
- module.exports = nextConfig;
57
- ```
58
-
59
- ## Step 4: Usage
60
-
61
- ```tsx
62
- 'use client'; // For Next.js app router
63
-
64
- import React from 'react';
65
- import { VoxketClient } from '@voxket-ai/voxket-live';
66
-
67
- function MyComponent() {
68
- return (
69
- <VoxketClient
70
- config={{
71
- // your config
72
- }}
73
- />
74
- );
75
- }
76
- ```
77
-
78
- ## Troubleshooting
79
-
80
- 1. **Clear cache**: `rm -rf .next` (for Next.js) or equivalent for your bundler
81
- 2. **Check React versions**: Ensure all React-related packages use the same version
82
- 3. **Bundle analyzer**: Use webpack-bundle-analyzer to check for duplicate React instances