@deepcitation/deepcitation-js 1.1.39 → 1.1.40

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepcitation/deepcitation-js",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "description": "DeepCitation JavaScript SDK for deterministic AI citation verification",
5
5
  "type": "module",
6
6
  "private": false,
@@ -20,10 +20,12 @@
20
20
  "sideEffects": false,
21
21
  "files": [
22
22
  "lib",
23
+ "src/tailwind.css",
23
24
  "LICENSE"
24
25
  ],
25
26
  "scripts": {
26
- "build": "tsup",
27
+ "build": "tsup && npm run build:css",
28
+ "build:css": "tailwindcss -i ./src/styles.css -o ./lib/styles.css --minify",
27
29
  "build:watch": "tsup --watch",
28
30
  "build:tsc": "rimraf lib && tsc",
29
31
  "test": "bun test ./src/__tests__/*.test.ts ./src/__tests__/*.test.tsx",
@@ -39,9 +41,9 @@
39
41
  "node": ">=18"
40
42
  },
41
43
  "peerDependencies": {
44
+ "@radix-ui/react-popover": "^1.0.0",
42
45
  "react": ">=17.0.0",
43
- "react-dom": ">=17.0.0",
44
- "@radix-ui/react-popover": "^1.0.0"
46
+ "react-dom": ">=17.0.0"
45
47
  },
46
48
  "peerDependenciesMeta": {
47
49
  "react": {
@@ -55,10 +57,12 @@
55
57
  }
56
58
  },
57
59
  "devDependencies": {
58
- "@size-limit/preset-small-lib": "^11.0.0",
59
60
  "@happy-dom/global-registrator": "^20.0.11",
60
61
  "@playwright/experimental-ct-react": "^1.57.0",
61
62
  "@playwright/test": "^1.57.0",
63
+ "@radix-ui/react-popover": "^1.1.14",
64
+ "@size-limit/preset-small-lib": "^11.0.0",
65
+ "@tailwindcss/cli": "^4.1.18",
62
66
  "@testing-library/jest-dom": "^6.8.0",
63
67
  "@testing-library/react": "^16.3.0",
64
68
  "@types/jest": "^29.5.14",
@@ -70,11 +74,11 @@
70
74
  "happy-dom": "^20.0.11",
71
75
  "jest": "^29.7.0",
72
76
  "jest-environment-jsdom": "^29.7.0",
73
- "@radix-ui/react-popover": "^1.1.14",
74
77
  "react": "19.2.3",
75
78
  "react-dom": "19.2.3",
76
79
  "rimraf": "^5.0.5",
77
80
  "size-limit": "^11.0.0",
81
+ "tailwindcss": "^4.1.18",
78
82
  "ts-jest": "^29.4.6",
79
83
  "tsup": "^8.0.0",
80
84
  "typescript": "^5.9.3",
@@ -123,7 +127,9 @@
123
127
  "types": "./lib/types/index.d.ts",
124
128
  "import": "./lib/types/index.js",
125
129
  "require": "./lib/types/index.cjs"
126
- }
130
+ },
131
+ "./tailwind.css": "./src/tailwind.css",
132
+ "./styles.css": "./lib/styles.css"
127
133
  },
128
134
  "keywords": [
129
135
  "citation",
@@ -0,0 +1,5 @@
1
+ /* DeepCitation Tailwind v4 source configuration
2
+ * Import this file in your main CSS to include library classes:
3
+ * @import "@deepcitation/deepcitation-js/tailwind.css";
4
+ */
5
+ @source "./react";