@cimulate/copilot-widget 1.7.10 → 1.8.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cimulate/copilot-widget",
3
3
  "description": "A frontend SDK for Cimulate Copilot",
4
- "version": "1.7.10",
4
+ "version": "1.8.0",
5
5
  "keywords": [
6
6
  "cimulate",
7
7
  "copilot",
@@ -32,15 +32,37 @@
32
32
  "default": "./dist/cimulate-copilot-widget.umd.js"
33
33
  }
34
34
  },
35
- "./css": "./dist/cimulate-copilot-widget.css"
35
+ "./copilot": {
36
+ "import": {
37
+ "types": "./dist/copilot.d.ts",
38
+ "default": "./dist/copilot.es.js"
39
+ },
40
+ "require": {
41
+ "types": "./dist/copilot.d.ts",
42
+ "default": "./dist/copilot.umd.js"
43
+ }
44
+ },
45
+ "./messaging": {
46
+ "import": {
47
+ "types": "./dist/messaging.d.ts",
48
+ "default": "./dist/messaging.es.js"
49
+ },
50
+ "require": {
51
+ "types": "./dist/messaging.d.ts",
52
+ "default": "./dist/messaging.umd.js"
53
+ }
54
+ },
55
+ "./css": "./dist/cimulate-copilot-widget.css",
56
+ "./css/copilot": "./dist/copilot.css",
57
+ "./css/messaging": "./dist/messaging.css"
36
58
  },
37
59
  "scripts": {
38
60
  "start": "vite --open --strictPort --port 3001",
39
61
  "start:dev": "npm run start -- --debug",
40
- "build": "tsc -b && vite build --mode production",
62
+ "build": "tsc -b && node scripts/build.mjs",
41
63
  "lint": "npx prettier --check . && npx eslint .",
42
64
  "lint:fix": "npx prettier --write . && npx eslint . --fix",
43
- "preview": "npm run build -- --config vite.preview.config.ts && vite preview --open --strictPort --port 3001",
65
+ "preview": "npm run build && cp -r public/* dist/ && vite preview --open --strictPort --port 3001",
44
66
  "test": "vitest run --project=jest",
45
67
  "test:ui": "vitest --ui --project=jest",
46
68
  "test:watch": "vitest --project=jest",
@@ -54,6 +76,7 @@
54
76
  },
55
77
  "dependencies": {
56
78
  "@ark-ui/react": "~5.27.1",
79
+ "@cimulate/agentforce-sdk": "~1.0.0",
57
80
  "@cimulate/copilot-sdk": "~3.15.0",
58
81
  "@cimulate/search-sdk": "~1.1.0",
59
82
  "axios": "~1.16.1",