@spacinbox/sdk 2.0.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 ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@spacinbox/sdk",
3
+ "version": "2.0.0",
4
+ "description": "Official SDK for Spaceinbox",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
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.ts",
23
+ "default": "./dist/browser.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/browser.d.cts",
27
+ "default": "./dist/browser.cjs"
28
+ }
29
+ }
30
+ },
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "scripts": {
35
+ "build:css": "npx @tailwindcss/cli -i src/widget/styles.css -o src/widget/compiled.css && node scripts/embed-css.mjs",
36
+ "build": "NODE_ENV=production npm run build:css && rm -rf dist && NODE_ENV=production tsup",
37
+ "dev": "concurrently \"npx @tailwindcss/cli -i src/widget/styles.css -o src/widget/compiled.css --watch\" \"node scripts/embed-css.mjs --watch\" \"tsup --watch\" \"npx browser-sync start --server --files 'dist/widget.global.js' --startPath /demo --no-ui --no-ghost-mode\"",
38
+ "typecheck": "tsc --noEmit",
39
+ "prepublishOnly": "npm run build"
40
+ },
41
+ "keywords": [
42
+ "simple",
43
+ "login",
44
+ "oauth",
45
+ "authentication",
46
+ "sdk"
47
+ ],
48
+ "license": "MIT",
49
+ "devDependencies": {
50
+ "@tailwindcss/cli": "^4.2.1",
51
+ "@types/debug": "^4.1.12",
52
+ "@types/node": "^25.2.3",
53
+ "concurrently": "^9.2.1",
54
+ "dotenv": "^17.2.4",
55
+ "tailwindcss": "^4.2.1",
56
+ "tsup": "^8.0.0",
57
+ "typescript": "^5.3.0"
58
+ },
59
+ "engines": {
60
+ "node": ">=18.0.0"
61
+ },
62
+ "dependencies": {
63
+ "@preact/signals": "^2.8.1",
64
+ "debug": "^4.4.3",
65
+ "jose": "^6.1.3",
66
+ "lucide-preact": "^0.577.0",
67
+ "preact": "^10.28.4",
68
+ "socket.io-client": "^4.8.3"
69
+ }
70
+ }