@opencx/widget 3.0.86 → 3.0.88
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/dist/designs.cjs +19 -47
- package/dist/designs.cjs.map +1 -1
- package/dist/designs.js +1297 -18475
- package/dist/designs.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +20 -18
- package/dist/react.js.map +1 -1
- package/dist/src/designs/react/hooks/useCanvas.d.ts +3 -0
- package/dist/src/designs/react/hooks/useTheme.d.ts +6 -0
- package/dist/src/designs/react/index.d.ts +3 -2
- package/dist/src/designs/react/screens/chat/ChatCanvas.d.ts +2 -0
- package/dist/src/headless/core/__tests__/test-utils.d.ts +41 -2
- package/dist/src/headless/core/api/api-caller.d.ts +41 -2
- package/dist/src/headless/core/api/schema.d.ts +179 -75
- package/dist/src/headless/core/context/message.ctx.d.ts +1 -0
- package/dist/src/headless/core/context/session.ctx.d.ts +24 -0
- package/dist/src/headless/core/context/widget.ctx.d.ts +2 -0
- package/dist/src/headless/core/index.d.ts +1 -1
- package/dist/src/headless/core/types/dtos.d.ts +3 -2
- package/dist/src/headless/core/types/widget-config.d.ts +7 -0
- package/dist/src/headless/react/WidgetProvider.d.ts +4 -1
- package/dist/src/headless/react/hooks/useMessages.d.ts +1 -0
- package/dist/src/headless/react/hooks/useModes.d.ts +15 -0
- package/dist/src/headless/react/hooks/useSessions.d.ts +27 -0
- package/dist/src/headless/react/index.d.ts +2 -0
- package/dist/src/headless/react/types/modes.components.d.ts +11 -0
- package/dist/useModes-DSFNdOy3.cjs +2 -0
- package/dist/useModes-DSFNdOy3.cjs.map +1 -0
- package/dist/useModes-DleBrdDK.js +260 -0
- package/dist/useModes-DleBrdDK.js.map +1 -0
- package/dist/widget.ctx-CC3c7FPb.js +1542 -0
- package/dist/widget.ctx-CC3c7FPb.js.map +1 -0
- package/dist/widget.ctx-HuLTTMAM.cjs +5 -0
- package/dist/widget.ctx-HuLTTMAM.cjs.map +1 -0
- package/dist-embed/script.js +83 -83
- package/dist-embed/script.js.map +1 -1
- package/package.json +113 -52
- package/dist/is-exhaustive-9o43S91P.cjs +0 -2
- package/dist/is-exhaustive-9o43S91P.cjs.map +0 -1
- package/dist/is-exhaustive-DGJzQK69.js +0 -7
- package/dist/is-exhaustive-DGJzQK69.js.map +0 -1
- package/dist/useWidgetTrigger-Bi12WVrs.js +0 -1364
- package/dist/useWidgetTrigger-Bi12WVrs.js.map +0 -1
- package/dist/useWidgetTrigger-Bplu_1C-.cjs +0 -18
- package/dist/useWidgetTrigger-Bplu_1C-.cjs.map +0 -1
- package/dist/widget.ctx-DFFwNHvy.js +0 -673
- package/dist/widget.ctx-DFFwNHvy.js.map +0 -1
- package/dist/widget.ctx-oIT8sGvJ.cjs +0 -5
- package/dist/widget.ctx-oIT8sGvJ.cjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencx/widget",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.88",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -17,32 +17,41 @@
|
|
|
17
17
|
"name": "openchatai",
|
|
18
18
|
"url": "https://github.com/openchatai"
|
|
19
19
|
},
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"optional": true
|
|
31
|
-
},
|
|
32
|
-
"react-dom": {
|
|
33
|
-
"optional": true
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"dist-embed"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js",
|
|
29
|
+
"require": "./dist/index.cjs"
|
|
34
30
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
31
|
+
"./react": {
|
|
32
|
+
"types": "./dist/react.d.ts",
|
|
33
|
+
"import": "./dist/react.js",
|
|
34
|
+
"require": "./dist/react.cjs"
|
|
37
35
|
},
|
|
38
|
-
"
|
|
39
|
-
"
|
|
36
|
+
"./designs": {
|
|
37
|
+
"types": "./dist/designs.d.ts",
|
|
38
|
+
"import": "./dist/designs.js",
|
|
39
|
+
"require": "./dist/designs.cjs"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
43
|
"zod": "^3.23.8"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"lodash.isequal": "^4.5.0",
|
|
47
|
+
"openapi-fetch": "^0.13.4",
|
|
48
|
+
"uuid": "^11.0.4"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@types/react": ">=18 <20",
|
|
52
|
+
"@types/react-dom": ">=18 <20",
|
|
53
|
+
"react": ">=18 <20",
|
|
54
|
+
"react-dom": ">=18 <20",
|
|
46
55
|
"@radix-ui/react-avatar": "^1.1.0",
|
|
47
56
|
"@radix-ui/react-dialog": "^1.1.5",
|
|
48
57
|
"@radix-ui/react-dropdown-menu": "^2.1.4",
|
|
@@ -52,35 +61,94 @@
|
|
|
52
61
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
53
62
|
"clsx": "^2.1.1",
|
|
54
63
|
"framer-motion": "^11.3.30",
|
|
55
|
-
"lodash.isequal": "^4.5.0",
|
|
56
64
|
"lucide-react": "^0.436.0",
|
|
57
|
-
"openapi-fetch": "^0.13.4",
|
|
58
|
-
"openapi-typescript": "^7.5.2",
|
|
59
65
|
"react-dropzone": "^14.3.5",
|
|
60
66
|
"tinycolor2": "^1.6.0",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
67
|
+
"zod": "^3.23.8",
|
|
68
|
+
"react-markdown": "^9.0.1",
|
|
69
|
+
"react-use": "^17.5.1",
|
|
70
|
+
"rehype-raw": "^7.0.0",
|
|
71
|
+
"remark-gfm": "^4.0.0",
|
|
72
|
+
"swr": "^2.2.5",
|
|
73
|
+
"tailwind-merge": "^2.4.0",
|
|
74
|
+
"class-variance-authority": "^0.7.0",
|
|
75
|
+
"@uiw/react-iframe": "^1.0.3"
|
|
63
76
|
},
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
],
|
|
68
|
-
"sideEffects": false,
|
|
69
|
-
"exports": {
|
|
70
|
-
".": {
|
|
71
|
-
"types": "./dist/index.d.ts",
|
|
72
|
-
"import": "./dist/index.js",
|
|
73
|
-
"require": "./dist/index.cjs"
|
|
77
|
+
"peerDependenciesMeta": {
|
|
78
|
+
"@types/react": {
|
|
79
|
+
"optional": true
|
|
74
80
|
},
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"import": "./dist/react.js",
|
|
78
|
-
"require": "./dist/react.cjs"
|
|
81
|
+
"@types/react-dom": {
|
|
82
|
+
"optional": true
|
|
79
83
|
},
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
"react": {
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
87
|
+
"react-dom": {
|
|
88
|
+
"optional": true
|
|
89
|
+
},
|
|
90
|
+
"@radix-ui/react-avatar": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
93
|
+
"@radix-ui/react-dialog": {
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"@radix-ui/react-dropdown-menu": {
|
|
97
|
+
"optional": true
|
|
98
|
+
},
|
|
99
|
+
"@radix-ui/react-popover": {
|
|
100
|
+
"optional": true
|
|
101
|
+
},
|
|
102
|
+
"@radix-ui/react-slot": {
|
|
103
|
+
"optional": true
|
|
104
|
+
},
|
|
105
|
+
"@radix-ui/react-switch": {
|
|
106
|
+
"optional": true
|
|
107
|
+
},
|
|
108
|
+
"@radix-ui/react-tooltip": {
|
|
109
|
+
"optional": true
|
|
110
|
+
},
|
|
111
|
+
"clsx": {
|
|
112
|
+
"optional": true
|
|
113
|
+
},
|
|
114
|
+
"framer-motion": {
|
|
115
|
+
"optional": true
|
|
116
|
+
},
|
|
117
|
+
"lucide-react": {
|
|
118
|
+
"optional": true
|
|
119
|
+
},
|
|
120
|
+
"react-dropzone": {
|
|
121
|
+
"optional": true
|
|
122
|
+
},
|
|
123
|
+
"tinycolor2": {
|
|
124
|
+
"optional": true
|
|
125
|
+
},
|
|
126
|
+
"zod": {
|
|
127
|
+
"optional": true
|
|
128
|
+
},
|
|
129
|
+
"react-markdown": {
|
|
130
|
+
"optional": true
|
|
131
|
+
},
|
|
132
|
+
"react-use": {
|
|
133
|
+
"optional": true
|
|
134
|
+
},
|
|
135
|
+
"rehype-raw": {
|
|
136
|
+
"optional": true
|
|
137
|
+
},
|
|
138
|
+
"remark-gfm": {
|
|
139
|
+
"optional": true
|
|
140
|
+
},
|
|
141
|
+
"swr": {
|
|
142
|
+
"optional": true
|
|
143
|
+
},
|
|
144
|
+
"tailwind-merge": {
|
|
145
|
+
"optional": true
|
|
146
|
+
},
|
|
147
|
+
"class-variance-authority": {
|
|
148
|
+
"optional": true
|
|
149
|
+
},
|
|
150
|
+
"@uiw/react-iframe": {
|
|
151
|
+
"optional": true
|
|
84
152
|
}
|
|
85
153
|
},
|
|
86
154
|
"devDependencies": {
|
|
@@ -93,9 +161,9 @@
|
|
|
93
161
|
"@types/tinycolor2": "^1.4.6",
|
|
94
162
|
"@typescript-eslint/eslint-plugin": "^8.29.0",
|
|
95
163
|
"@typescript-eslint/parser": "^8.29.0",
|
|
96
|
-
"@uiw/react-iframe": "^1.0.3",
|
|
97
164
|
"@vitejs/plugin-react": "^4.3.4",
|
|
98
|
-
"
|
|
165
|
+
"tailwindcss": "^3.4.6",
|
|
166
|
+
"tailwindcss-animate": "^1.0.7",
|
|
99
167
|
"eslint": "^9.23.0",
|
|
100
168
|
"eslint-config-prettier": "^10.1.1",
|
|
101
169
|
"eslint-plugin-prettier": "^5.2.6",
|
|
@@ -108,14 +176,7 @@
|
|
|
108
176
|
"lucide": "^0.525.0",
|
|
109
177
|
"postcss": "^8.4.41",
|
|
110
178
|
"prettier": "^3.5.3",
|
|
111
|
-
"
|
|
112
|
-
"react-use": "^17.5.1",
|
|
113
|
-
"rehype-raw": "^7.0.0",
|
|
114
|
-
"remark-gfm": "^4.0.0",
|
|
115
|
-
"swr": "^2.2.5",
|
|
116
|
-
"tailwind-merge": "^2.4.0",
|
|
117
|
-
"tailwindcss": "^3.4.6",
|
|
118
|
-
"tailwindcss-animate": "^1.0.7",
|
|
179
|
+
"openapi-typescript": "^7.5.2",
|
|
119
180
|
"typescript": "^5.5.4",
|
|
120
181
|
"vite": "^5.4.2",
|
|
121
182
|
"vite-plugin-dts": "4.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-exhaustive-9o43S91P.cjs","sources":["../src/headless/core/utils/is-exhaustive.ts"],"sourcesContent":["export function isExhaustive(value: never, funcName: string) {\n console.error(`Missing case for ${value} in ${funcName}`);\n}\n"],"names":["isExhaustive","value","funcName"],"mappings":"aAAgB,SAAAA,EAAaC,EAAcC,EAAkB,CAC3D,QAAQ,MAAM,oBAAoBD,CAAK,OAAOC,CAAQ,EAAE,CAC1D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-exhaustive-DGJzQK69.js","sources":["../src/headless/core/utils/is-exhaustive.ts"],"sourcesContent":["export function isExhaustive(value: never, funcName: string) {\n console.error(`Missing case for ${value} in ${funcName}`);\n}\n"],"names":["isExhaustive","value","funcName"],"mappings":"AAAgB,SAAAA,EAAaC,GAAcC,GAAkB;AAC3D,UAAQ,MAAM,oBAAoBD,CAAK,OAAOC,CAAQ,EAAE;AAC1D;"}
|