@clivly/chat-widget 0.3.0 → 0.5.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 +81 -4
- package/dist/browser-mount.cjs +284 -67
- package/dist/browser-mount.d.cts +40 -10
- package/dist/browser-mount.d.mts +40 -10
- package/dist/browser-mount.mjs +285 -68
- package/dist/browser.cjs +284 -67
- package/dist/browser.d.cts +41 -10
- package/dist/browser.d.mts +41 -10
- package/dist/browser.mjs +285 -68
- package/dist/index.cjs +285 -67
- package/dist/index.d.cts +59 -11
- package/dist/index.d.mts +59 -11
- package/dist/index.mjs +286 -69
- package/dist/widget.global.js +136 -82
- package/package.json +61 -49
package/package.json
CHANGED
|
@@ -1,75 +1,87 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clivly/chat-widget",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Clivly chat widget — embeddable React and script-tag entrypoints for Clivly conversations.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"exports": {
|
|
10
|
-
".":
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
"require": {
|
|
16
|
-
"types": "./dist/index.d.cts",
|
|
17
|
-
"default": "./dist/index.cjs"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"./browser": {
|
|
21
|
-
"import": {
|
|
22
|
-
"types": "./dist/browser.d.mts",
|
|
23
|
-
"default": "./dist/browser.mjs"
|
|
24
|
-
},
|
|
25
|
-
"require": {
|
|
26
|
-
"types": "./dist/browser.d.cts",
|
|
27
|
-
"default": "./dist/browser.cjs"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"./mount": {
|
|
31
|
-
"import": {
|
|
32
|
-
"types": "./dist/browser-mount.d.mts",
|
|
33
|
-
"default": "./dist/browser-mount.mjs"
|
|
34
|
-
},
|
|
35
|
-
"require": {
|
|
36
|
-
"types": "./dist/browser-mount.d.cts",
|
|
37
|
-
"default": "./dist/browser-mount.cjs"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"./script": {
|
|
41
|
-
"default": "./dist/widget.global.js"
|
|
42
|
-
}
|
|
10
|
+
".": "./src/index.ts",
|
|
11
|
+
"./browser": "./src/browser.tsx",
|
|
12
|
+
"./mount": "./src/browser-mount.tsx",
|
|
13
|
+
"./script": "./src/widget-script.ts"
|
|
43
14
|
},
|
|
44
15
|
"files": [
|
|
45
16
|
"dist"
|
|
46
17
|
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsdown",
|
|
20
|
+
"check-types": "tsc --noEmit",
|
|
21
|
+
"prepublishOnly": "pnpm build",
|
|
22
|
+
"test": "vitest run --environment jsdom"
|
|
23
|
+
},
|
|
47
24
|
"publishConfig": {
|
|
48
|
-
"
|
|
25
|
+
"main": "./dist/index.cjs",
|
|
26
|
+
"module": "./dist/index.mjs",
|
|
27
|
+
"types": "./dist/index.d.cts",
|
|
28
|
+
"unpkg": "./dist/widget.global.js",
|
|
29
|
+
"jsdelivr": "./dist/widget.global.js",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/index.d.mts",
|
|
34
|
+
"default": "./dist/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/index.d.cts",
|
|
38
|
+
"default": "./dist/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"./browser": {
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/browser.d.mts",
|
|
44
|
+
"default": "./dist/browser.mjs"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./dist/browser.d.cts",
|
|
48
|
+
"default": "./dist/browser.cjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"./mount": {
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./dist/browser-mount.d.mts",
|
|
54
|
+
"default": "./dist/browser-mount.mjs"
|
|
55
|
+
},
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./dist/browser-mount.d.cts",
|
|
58
|
+
"default": "./dist/browser-mount.cjs"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"./script": {
|
|
62
|
+
"default": "./dist/widget.global.js"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"access": "public",
|
|
66
|
+
"provenance": true
|
|
49
67
|
},
|
|
50
68
|
"peerDependencies": {
|
|
51
69
|
"react": ">=18.0.0",
|
|
52
70
|
"react-dom": ">=18.0.0"
|
|
53
71
|
},
|
|
54
72
|
"devDependencies": {
|
|
73
|
+
"@clivly.com/config": "workspace:*",
|
|
55
74
|
"@testing-library/react": "^16.3.2",
|
|
56
75
|
"@types/react": "^19.2.15",
|
|
57
|
-
"@types/react-dom": "
|
|
76
|
+
"@types/react-dom": "catalog:",
|
|
58
77
|
"jsdom": "^29.0.2",
|
|
59
78
|
"react": "^19.2.6",
|
|
60
79
|
"react-dom": "^19.2.6",
|
|
61
80
|
"tsdown": "^0.21.9",
|
|
62
|
-
"typescript": "
|
|
63
|
-
"vitest": "
|
|
64
|
-
"@clivly.com/config": "0.0.0"
|
|
65
|
-
},
|
|
66
|
-
"scripts": {
|
|
67
|
-
"build": "tsdown",
|
|
68
|
-
"check-types": "tsc --noEmit",
|
|
69
|
-
"test": "vitest run --environment jsdom"
|
|
81
|
+
"typescript": "catalog:",
|
|
82
|
+
"vitest": "catalog:"
|
|
70
83
|
},
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
84
|
+
"engines": {
|
|
85
|
+
"node": ">=20"
|
|
86
|
+
}
|
|
87
|
+
}
|