@usereq/widget 0.2.25 → 1.0.0-experimental.0
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 +35 -145
- package/dist/embed.js +38 -0
- package/dist/embed.js.map +1 -0
- package/dist/embed.mjs +2839 -0
- package/dist/embed.mjs.map +1 -0
- package/package.json +35 -81
- package/dist/widget.js +0 -255
- package/src/chat-widget/chat-widget-appearance.ts +0 -134
- package/src/chat-widget/message-reveal.ts +0 -52
- package/src/chat-widget/stop-confirmation.ts +0 -288
- package/src/custom-element/agent-widget-element.tsx +0 -682
- package/src/embed.ts +0 -8
- package/src/index.ts +0 -9
- package/src/register.ts +0 -15
- package/src/renderer/index.ts +0 -6
- package/src/renderer/widget-runtime.tsx +0 -395
- package/src/runtime/api-origin.ts +0 -29
- package/src/runtime/api.ts +0 -123
- package/src/runtime/bootstrap.ts +0 -366
- package/src/runtime/debug.ts +0 -104
- package/src/runtime/messages.ts +0 -12
- package/src/runtime/session-storage.ts +0 -32
- package/src/runtime/trigger-rule.ts +0 -182
- package/src/shared/shadow-css.ts +0 -15
- package/src/shared/shadow-theme.ts +0 -115
- package/src/shared/stop-confirmation.ts +0 -20
- package/src/shared/widget-config.ts +0 -171
- package/src/styles/widget.css.ts +0 -83
- package/src/types.ts +0 -98
- package/src/vite-env.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,98 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usereq/widget",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-experimental.0",
|
|
4
|
+
"description": "The UserEQ embed runtime - the script a customer's page loads to render a published surface (chat, banner, testimonials, exit popup) and talk to its agent.",
|
|
5
|
+
"license": "MIT",
|
|
4
6
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
+
"sideEffects": true,
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"main": "./dist/embed.js",
|
|
12
|
+
"module": "./dist/embed.mjs",
|
|
13
|
+
"unpkg": "./dist/embed.js",
|
|
14
|
+
"jsdelivr": "./dist/embed.js",
|
|
7
15
|
"exports": {
|
|
8
16
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"default": "./src/index.ts"
|
|
12
|
-
},
|
|
13
|
-
"./types": {
|
|
14
|
-
"types": "./src/types.ts",
|
|
15
|
-
"import": "./src/types.ts",
|
|
16
|
-
"default": "./src/types.ts"
|
|
17
|
-
},
|
|
18
|
-
"./renderer": {
|
|
19
|
-
"types": "./src/renderer/index.ts",
|
|
20
|
-
"import": "./src/renderer/index.ts",
|
|
21
|
-
"default": "./src/renderer/index.ts"
|
|
22
|
-
},
|
|
23
|
-
"./shared/widget-config": {
|
|
24
|
-
"types": "./src/shared/widget-config.ts",
|
|
25
|
-
"import": "./src/shared/widget-config.ts",
|
|
26
|
-
"default": "./src/shared/widget-config.ts"
|
|
27
|
-
},
|
|
28
|
-
"./shared/analytics": {
|
|
29
|
-
"types": "./src/shared/analytics.ts",
|
|
30
|
-
"import": "./src/shared/analytics.ts",
|
|
31
|
-
"default": "./src/shared/analytics.ts"
|
|
32
|
-
},
|
|
33
|
-
"./shared/shadow-css": {
|
|
34
|
-
"types": "./src/shared/shadow-css.ts",
|
|
35
|
-
"import": "./src/shared/shadow-css.ts",
|
|
36
|
-
"default": "./src/shared/shadow-css.ts"
|
|
17
|
+
"import": "./dist/embed.mjs",
|
|
18
|
+
"default": "./dist/embed.js"
|
|
37
19
|
},
|
|
38
|
-
"./
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
"import": "./src/register.ts",
|
|
46
|
-
"default": "./src/register.ts"
|
|
47
|
-
},
|
|
48
|
-
"./runtime/*": {
|
|
49
|
-
"types": "./src/runtime/*.ts",
|
|
50
|
-
"import": "./src/runtime/*.ts",
|
|
51
|
-
"default": "./src/runtime/*.ts"
|
|
52
|
-
},
|
|
53
|
-
"./custom-element/*": {
|
|
54
|
-
"types": "./src/custom-element/*.tsx",
|
|
55
|
-
"import": "./src/custom-element/*.tsx",
|
|
56
|
-
"default": "./src/custom-element/*.tsx"
|
|
57
|
-
},
|
|
58
|
-
"./embed": "./dist/widget.js"
|
|
20
|
+
"./embed.js": "./dist/embed.js",
|
|
21
|
+
"./embed": "./dist/embed.js"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/UserEQ/usereq-app.git",
|
|
26
|
+
"directory": "packages/embed"
|
|
59
27
|
},
|
|
60
|
-
"files": [
|
|
61
|
-
"src",
|
|
62
|
-
"dist",
|
|
63
|
-
"README.md"
|
|
64
|
-
],
|
|
65
|
-
"unpkg": "./dist/widget.js",
|
|
66
|
-
"jsdelivr": "./dist/widget.js",
|
|
67
28
|
"publishConfig": {
|
|
68
29
|
"access": "public"
|
|
69
30
|
},
|
|
70
|
-
"packageManager": "bun@1.3.11",
|
|
71
31
|
"scripts": {
|
|
72
|
-
"
|
|
73
|
-
"build
|
|
74
|
-
"
|
|
75
|
-
"typecheck": "
|
|
32
|
+
"dev": "vite --config vite.config.ts --port 5173 --open /dev/",
|
|
33
|
+
"build": "vite build",
|
|
34
|
+
"size": "bun run scripts/size.ts",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
36
|
+
"test": "bun test",
|
|
37
|
+
"lint": "eslint",
|
|
38
|
+
"format": "prettier --write \"**/*.{ts,tsx}\""
|
|
76
39
|
},
|
|
77
40
|
"dependencies": {
|
|
78
|
-
"
|
|
79
|
-
"@usereq/ui": "^0.2.24",
|
|
80
|
-
"lucide-react": "^0.553.0",
|
|
81
|
-
"motion": "^12.23.24",
|
|
82
|
-
"react": "^19.2.0",
|
|
83
|
-
"react-dom": "^19.2.0",
|
|
84
|
-
"react-markdown": "^10.1.0",
|
|
85
|
-
"remark-gfm": "^4.0.1",
|
|
86
|
-
"streamdown": "^2.5.0",
|
|
87
|
-
"use-stick-to-bottom": "^1.1.3"
|
|
41
|
+
"preact": "^10.29.0"
|
|
88
42
|
},
|
|
89
43
|
"devDependencies": {
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"typescript": "^5
|
|
96
|
-
"vite": "^8.
|
|
44
|
+
"@types/bun": "latest",
|
|
45
|
+
"@workspace/contracts": "workspace:*",
|
|
46
|
+
"@workspace/eslint-config": "workspace:*",
|
|
47
|
+
"@workspace/typescript-config": "workspace:*",
|
|
48
|
+
"eslint": "^9",
|
|
49
|
+
"typescript": "^5",
|
|
50
|
+
"vite": "^8.2.2"
|
|
97
51
|
}
|
|
98
52
|
}
|