@spscommerce/max 0.0.1
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 +1 -0
- package/lib/MaxPanel.d.ts +4 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6359 -0
- package/lib/index.umd.cjs +468 -0
- package/lib/style.css +1 -0
- package/lib/useMaxChat.d.ts +3 -0
- package/package.json +96 -0
- package/vite.config.mjs +25 -0
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spscommerce/max",
|
|
3
|
+
"description": "",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"author": "SPS Commerce",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"repository": "https://github.com/SPSCommerce/sps-agent-ui",
|
|
8
|
+
"homepage": "https://github.com/SPSCommerce/sps-agent-ui",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"module": "./lib/index.js",
|
|
11
|
+
"main": "./lib/index.umd.cjs",
|
|
12
|
+
"types": "./lib/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./lib/index.d.ts",
|
|
16
|
+
"require": "./lib/index.umd.cjs",
|
|
17
|
+
"import": "./lib/index.js",
|
|
18
|
+
"default": "./lib/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./lib/style.css": {
|
|
21
|
+
"import": "./lib/style.css",
|
|
22
|
+
"require": "./lib/style.css"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"react": "^18.3.1",
|
|
30
|
+
"react-dom": "^18.3.1"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@react-stately/collections": "^3.12.7",
|
|
34
|
+
"@sps-woodland/buttons": "^8.36.0",
|
|
35
|
+
"@sps-woodland/core": "^8.34.14",
|
|
36
|
+
"@sps-woodland/illustrations": "^8.34.14",
|
|
37
|
+
"@sps-woodland/tokens": "^8.34.14",
|
|
38
|
+
"@sps-woodland/zero-state": "^8.34.14",
|
|
39
|
+
"@spscommerce/ds-colors": "^8.34.14",
|
|
40
|
+
"@spscommerce/ds-react": "^8.34.14",
|
|
41
|
+
"@spscommerce/ds-shared": "^8.34.14",
|
|
42
|
+
"@spscommerce/ds-styles": "^8.34.14",
|
|
43
|
+
"@spscommerce/i18n": "^8.34.14",
|
|
44
|
+
"@spscommerce/positioning": "^8.34.14",
|
|
45
|
+
"@spscommerce/services": "^8.1.1",
|
|
46
|
+
"@spscommerce/utils": "^8.1.1",
|
|
47
|
+
"axios": "^1.12.2",
|
|
48
|
+
"copy-to-clipboard": "^3.3.3",
|
|
49
|
+
"eventemitter3": "^5.0.1",
|
|
50
|
+
"moment": "^2.30.1",
|
|
51
|
+
"moment-timezone": "^0.6.0",
|
|
52
|
+
"react-markdown": "10.1.0",
|
|
53
|
+
"react-router": "^7.9.1"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
57
|
+
"@eslint/js": "^9.39.1",
|
|
58
|
+
"@spscommerce/eslint-config-typescript": "8.2.3",
|
|
59
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
60
|
+
"@testing-library/dom": "^10.4.1",
|
|
61
|
+
"@testing-library/jest-dom": "^6.8.0",
|
|
62
|
+
"@testing-library/react": "^16.3.0",
|
|
63
|
+
"@testing-library/user-event": "^14.6.1",
|
|
64
|
+
"@types/react": "^18.3.12",
|
|
65
|
+
"@types/react-dom": "^18.3.1",
|
|
66
|
+
"typescript": "^5.9.2",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
68
|
+
"@typescript-eslint/parser": "^8.44.1",
|
|
69
|
+
"@vanilla-extract/css": "^1.17.4",
|
|
70
|
+
"@vanilla-extract/vite-plugin": "^5.1.1",
|
|
71
|
+
"@vitejs/plugin-react": "^4.4.0",
|
|
72
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
73
|
+
"@vitest/ui": "^3.2.4",
|
|
74
|
+
"eslint": "^9.39.1",
|
|
75
|
+
"eslint-config-prettier": "^10.1.8",
|
|
76
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
77
|
+
"eslint-plugin-import": "^2.32.0",
|
|
78
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
79
|
+
"jsdom": "^27.0.0",
|
|
80
|
+
"pre-commit": "^1.2.2",
|
|
81
|
+
"prettier": "^3.6.2",
|
|
82
|
+
"pretty-quick": "^4.2.2",
|
|
83
|
+
"sass": "^1.55.0",
|
|
84
|
+
"vite": "^7.1.11",
|
|
85
|
+
"vite-plugin-mkcert": "^1.17.8",
|
|
86
|
+
"vitest": "^3.2.4"
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"build": "pnpm run build:js && pnpm run build:types",
|
|
90
|
+
"build:js": "vite build",
|
|
91
|
+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
|
|
92
|
+
"watch": "vite build --watch",
|
|
93
|
+
"clean": "git clean -fdX",
|
|
94
|
+
"pub": "node ../../../scripts/publish-package.mjs"
|
|
95
|
+
}
|
|
96
|
+
}
|
package/vite.config.mjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { defineConfig } from "vite";
|
|
3
|
+
import react from "@vitejs/plugin-react";
|
|
4
|
+
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
5
|
+
import mkcert from "vite-plugin-mkcert";
|
|
6
|
+
import pkg from "./package.json";
|
|
7
|
+
|
|
8
|
+
const isCI = process.env.CI === "true";
|
|
9
|
+
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [react(), vanillaExtractPlugin(), ...(!isCI ? [mkcert()] : [])],
|
|
12
|
+
build: {
|
|
13
|
+
lib: {
|
|
14
|
+
entry: path.resolve(__dirname, "src/index.ts"),
|
|
15
|
+
name: "max",
|
|
16
|
+
fileName: "index",
|
|
17
|
+
cssFileName: "style",
|
|
18
|
+
},
|
|
19
|
+
outDir: path.resolve(__dirname, "./lib"),
|
|
20
|
+
emptyOutDir: false,
|
|
21
|
+
rollupOptions: {
|
|
22
|
+
external: pkg.peerDependencies ? Object.keys(pkg.peerDependencies) : [],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|