@deepcitation/deepcitation-js 1.1.49 → 1.1.50

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.
Files changed (45) hide show
  1. package/README.md +156 -157
  2. package/lib/{chunk-D2TKEF6D.cjs → chunk-4ILSZKAP.cjs} +3 -2
  3. package/lib/chunk-4ILSZKAP.cjs.map +1 -0
  4. package/lib/chunk-5XGN7UAV.js +2 -0
  5. package/lib/chunk-5XGN7UAV.js.map +1 -0
  6. package/lib/{chunk-2PRW5PVT.cjs → chunk-ALJ2ZQ2S.cjs} +2 -1
  7. package/lib/chunk-ALJ2ZQ2S.cjs.map +1 -0
  8. package/lib/{chunk-F2MMVEVC.cjs → chunk-BYLIBOAU.cjs} +2 -1
  9. package/lib/chunk-BYLIBOAU.cjs.map +1 -0
  10. package/lib/{chunk-ND6LFDGK.js → chunk-KBDVUQEE.js} +2 -1
  11. package/lib/chunk-KBDVUQEE.js.map +1 -0
  12. package/lib/{chunk-PKXMJNRX.js → chunk-LLLVZOXB.js} +2 -1
  13. package/lib/chunk-LLLVZOXB.js.map +1 -0
  14. package/lib/{chunk-DHVODVIA.cjs → chunk-PJWAX2VG.cjs} +2 -1
  15. package/lib/chunk-PJWAX2VG.cjs.map +1 -0
  16. package/lib/{chunk-UUR2SQKU.cjs → chunk-QUW3L3UU.cjs} +2 -1
  17. package/lib/chunk-QUW3L3UU.cjs.map +1 -0
  18. package/lib/chunk-R57DQBOT.js +2 -0
  19. package/lib/chunk-R57DQBOT.js.map +1 -0
  20. package/lib/{chunk-3XSZLKJW.js → chunk-TDGYSF3B.js} +3 -2
  21. package/lib/chunk-TDGYSF3B.js.map +1 -0
  22. package/lib/client/index.cjs +2 -1
  23. package/lib/client/index.cjs.map +1 -0
  24. package/lib/client/index.js +2 -1
  25. package/lib/client/index.js.map +1 -0
  26. package/lib/index.cjs +2 -1
  27. package/lib/index.cjs.map +1 -0
  28. package/lib/index.js +2 -1
  29. package/lib/index.js.map +1 -0
  30. package/lib/prompts/index.cjs +2 -1
  31. package/lib/prompts/index.cjs.map +1 -0
  32. package/lib/prompts/index.js +2 -1
  33. package/lib/prompts/index.js.map +1 -0
  34. package/lib/react/index.cjs +4 -3
  35. package/lib/react/index.cjs.map +1 -0
  36. package/lib/react/index.js +3 -2
  37. package/lib/react/index.js.map +1 -0
  38. package/lib/types/index.cjs +2 -1
  39. package/lib/types/index.cjs.map +1 -0
  40. package/lib/types/index.js +2 -1
  41. package/lib/types/index.js.map +1 -0
  42. package/package.json +161 -152
  43. package/src/tailwind.css +5 -5
  44. package/lib/chunk-HRCAI3NV.js +0 -1
  45. package/lib/chunk-O2XFH626.js +0 -1
package/package.json CHANGED
@@ -1,152 +1,161 @@
1
- {
2
- "name": "@deepcitation/deepcitation-js",
3
- "version": "1.1.49",
4
- "description": "DeepCitation JavaScript SDK for deterministic AI citation verification",
5
- "type": "module",
6
- "private": false,
7
- "license": "MIT",
8
- "author": "DeepCitation <opensource@deepcitation.com>",
9
- "homepage": "https://deepcitation.com",
10
- "bugs": {
11
- "url": "https://github.com/deepcitation/deepcitation-js/issues"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/deepcitation/deepcitation-js.git"
16
- },
17
- "main": "./lib/index.cjs",
18
- "module": "./lib/index.js",
19
- "types": "./lib/index.d.ts",
20
- "sideEffects": false,
21
- "files": [
22
- "lib",
23
- "src/tailwind.css",
24
- "LICENSE"
25
- ],
26
- "scripts": {
27
- "build": "tsup && npm run build:css",
28
- "build:css": "tailwindcss -i ./src/styles.css -o ./lib/styles.css --minify",
29
- "build:watch": "tsup --watch",
30
- "build:tsc": "rimraf lib && tsc",
31
- "test": "bun test ./src/__tests__/*.test.ts ./src/__tests__/*.test.tsx",
32
- "test:jest": "jest",
33
- "test:watch": "jest --watch",
34
- "test:ct": "playwright test -c playwright-ct.config.ts",
35
- "test:ct:ui": "playwright test -c playwright-ct.config.ts --ui",
36
- "size": "size-limit",
37
- "analyze": "size-limit --why",
38
- "prepublishOnly": "npm run build"
39
- },
40
- "engines": {
41
- "node": ">=18"
42
- },
43
- "peerDependencies": {
44
- "@radix-ui/react-popover": "^1.0.0",
45
- "react": ">=17.0.0",
46
- "react-dom": ">=17.0.0"
47
- },
48
- "peerDependenciesMeta": {
49
- "react": {
50
- "optional": true
51
- },
52
- "react-dom": {
53
- "optional": true
54
- },
55
- "@radix-ui/react-popover": {
56
- "optional": true
57
- }
58
- },
59
- "devDependencies": {
60
- "@happy-dom/global-registrator": "^20.3.3",
61
- "@playwright/experimental-ct-react": "^1.57.0",
62
- "@playwright/test": "^1.57.0",
63
- "@radix-ui/react-popover": "^1.1.15",
64
- "@size-limit/preset-small-lib": "^11.2.0",
65
- "@tailwindcss/cli": "^4.1.18",
66
- "@testing-library/jest-dom": "^6.9.1",
67
- "@testing-library/react": "^16.3.1",
68
- "@types/jest": "^29.5.14",
69
- "@types/node": "^24.10.9",
70
- "@types/react": "^19.2.8",
71
- "@types/react-dom": "^19.2.3",
72
- "@vitejs/plugin-react": "^4.7.0",
73
- "bun-types": "^1.3.6",
74
- "happy-dom": "^20.3.3",
75
- "jest": "^29.7.0",
76
- "jest-environment-jsdom": "^29.7.0",
77
- "react": "19.2.3",
78
- "react-dom": "19.2.3",
79
- "rimraf": "^5.0.10",
80
- "size-limit": "^11.2.0",
81
- "tailwindcss": "^4.1.18",
82
- "ts-jest": "^29.4.6",
83
- "tsup": "^8.5.1",
84
- "typescript": "^5.9.3",
85
- "vite": "^7.3.1"
86
- },
87
- "size-limit": [
88
- {
89
- "path": "lib/index.js",
90
- "limit": "25 KB"
91
- },
92
- {
93
- "path": "lib/client/index.js",
94
- "limit": "10 KB"
95
- },
96
- {
97
- "path": "lib/prompts/index.js",
98
- "limit": "15 KB"
99
- },
100
- {
101
- "path": "lib/react/index.js",
102
- "limit": "15 KB"
103
- }
104
- ],
105
- "exports": {
106
- ".": {
107
- "types": "./lib/index.d.ts",
108
- "import": "./lib/index.js",
109
- "require": "./lib/index.cjs"
110
- },
111
- "./client": {
112
- "types": "./lib/client/index.d.ts",
113
- "import": "./lib/client/index.js",
114
- "require": "./lib/client/index.cjs"
115
- },
116
- "./prompts": {
117
- "types": "./lib/prompts/index.d.ts",
118
- "import": "./lib/prompts/index.js",
119
- "require": "./lib/prompts/index.cjs"
120
- },
121
- "./react": {
122
- "types": "./lib/react/index.d.ts",
123
- "import": "./lib/react/index.js",
124
- "require": "./lib/react/index.cjs"
125
- },
126
- "./types": {
127
- "types": "./lib/types/index.d.ts",
128
- "import": "./lib/types/index.js",
129
- "require": "./lib/types/index.cjs"
130
- },
131
- "./tailwind.css": "./src/tailwind.css",
132
- "./styles.css": "./lib/styles.css"
133
- },
134
- "keywords": [
135
- "citation",
136
- "ai",
137
- "verification",
138
- "llm",
139
- "hallucination",
140
- "react",
141
- "typescript",
142
- "openai",
143
- "anthropic",
144
- "claude",
145
- "gpt",
146
- "rag",
147
- "reference",
148
- "source-verification",
149
- "fact-checking",
150
- "grounding"
151
- ]
152
- }
1
+ {
2
+ "name": "@deepcitation/deepcitation-js",
3
+ "version": "1.1.50",
4
+ "description": "DeepCitation JavaScript SDK for deterministic AI citation verification",
5
+ "type": "module",
6
+ "private": false,
7
+ "license": "MIT",
8
+ "author": "DeepCitation <opensource@deepcitation.com>",
9
+ "homepage": "https://deepcitation.com",
10
+ "bugs": {
11
+ "url": "https://github.com/DeepCitation/deepcitation-js/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/DeepCitation/deepcitation-js.git"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "provenance": true
20
+ },
21
+ "main": "./lib/index.cjs",
22
+ "module": "./lib/index.js",
23
+ "types": "./lib/index.d.ts",
24
+ "sideEffects": false,
25
+ "files": [
26
+ "lib",
27
+ "src/tailwind.css"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsup && npm run build:css",
31
+ "build:css": "tailwindcss -i ./src/styles.css -o ./lib/styles.css --minify",
32
+ "build:watch": "tsup --watch",
33
+ "build:tsc": "rimraf lib && tsc",
34
+ "test": "bun test ./src/__tests__/*.test.ts ./src/__tests__/*.test.tsx",
35
+ "test:jest": "jest",
36
+ "test:watch": "jest --watch",
37
+ "test:ct": "playwright test -c playwright-ct.config.ts",
38
+ "test:ct:ui": "playwright test -c playwright-ct.config.ts --ui",
39
+ "size": "size-limit",
40
+ "analyze": "size-limit --why",
41
+ "prepublishOnly": "npm run build"
42
+ },
43
+ "engines": {
44
+ "node": ">=18"
45
+ },
46
+ "peerDependencies": {
47
+ "@radix-ui/react-popover": "^1.0.0",
48
+ "react": ">=17.0.0",
49
+ "react-dom": ">=17.0.0"
50
+ },
51
+ "peerDependenciesMeta": {
52
+ "react": {
53
+ "optional": true
54
+ },
55
+ "react-dom": {
56
+ "optional": true
57
+ },
58
+ "@radix-ui/react-popover": {
59
+ "optional": true
60
+ }
61
+ },
62
+ "devDependencies": {
63
+ "@happy-dom/global-registrator": "^20.3.3",
64
+ "@playwright/experimental-ct-react": "^1.57.0",
65
+ "@playwright/test": "^1.57.0",
66
+ "@radix-ui/react-popover": "^1.1.15",
67
+ "@size-limit/preset-small-lib": "^11.2.0",
68
+ "@tailwindcss/cli": "^4.1.18",
69
+ "@testing-library/jest-dom": "^6.9.1",
70
+ "@testing-library/react": "^16.3.1",
71
+ "@types/jest": "^29.5.14",
72
+ "@types/node": "^24.10.9",
73
+ "@types/react": "^19.2.8",
74
+ "@types/react-dom": "^19.2.3",
75
+ "@vitejs/plugin-react": "^4.7.0",
76
+ "bun-types": "^1.3.6",
77
+ "happy-dom": "^20.3.3",
78
+ "jest": "^29.7.0",
79
+ "jest-environment-jsdom": "^29.7.0",
80
+ "react": "19.2.3",
81
+ "react-dom": "19.2.3",
82
+ "rimraf": "^5.0.10",
83
+ "size-limit": "^11.2.0",
84
+ "tailwindcss": "^4.1.18",
85
+ "ts-jest": "^29.4.6",
86
+ "tsup": "^8.5.1",
87
+ "typescript": "^5.9.3",
88
+ "vite": "^7.3.1"
89
+ },
90
+ "size-limit": [
91
+ {
92
+ "path": "lib/index.js",
93
+ "limit": "25 KB"
94
+ },
95
+ {
96
+ "path": "lib/client/index.js",
97
+ "limit": "10 KB"
98
+ },
99
+ {
100
+ "path": "lib/prompts/index.js",
101
+ "limit": "15 KB"
102
+ },
103
+ {
104
+ "path": "lib/react/index.js",
105
+ "limit": "15 KB"
106
+ }
107
+ ],
108
+ "exports": {
109
+ ".": {
110
+ "types": "./lib/index.d.ts",
111
+ "import": "./lib/index.js",
112
+ "require": "./lib/index.cjs",
113
+ "default": "./lib/index.js"
114
+ },
115
+ "./client": {
116
+ "types": "./lib/client/index.d.ts",
117
+ "import": "./lib/client/index.js",
118
+ "require": "./lib/client/index.cjs",
119
+ "default": "./lib/client/index.js"
120
+ },
121
+ "./prompts": {
122
+ "types": "./lib/prompts/index.d.ts",
123
+ "import": "./lib/prompts/index.js",
124
+ "require": "./lib/prompts/index.cjs",
125
+ "default": "./lib/prompts/index.js"
126
+ },
127
+ "./react": {
128
+ "types": "./lib/react/index.d.ts",
129
+ "import": "./lib/react/index.js",
130
+ "require": "./lib/react/index.cjs",
131
+ "default": "./lib/react/index.js"
132
+ },
133
+ "./types": {
134
+ "types": "./lib/types/index.d.ts",
135
+ "import": "./lib/types/index.js",
136
+ "require": "./lib/types/index.cjs",
137
+ "default": "./lib/types/index.js"
138
+ },
139
+ "./tailwind.css": "./src/tailwind.css",
140
+ "./styles.css": "./lib/styles.css",
141
+ "./package.json": "./package.json"
142
+ },
143
+ "keywords": [
144
+ "citation",
145
+ "ai",
146
+ "verification",
147
+ "llm",
148
+ "hallucination",
149
+ "react",
150
+ "typescript",
151
+ "openai",
152
+ "anthropic",
153
+ "claude",
154
+ "gpt",
155
+ "rag",
156
+ "reference",
157
+ "source-verification",
158
+ "fact-checking",
159
+ "grounding"
160
+ ]
161
+ }
package/src/tailwind.css CHANGED
@@ -1,5 +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";
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";
@@ -1 +0,0 @@
1
- var t="avif";var e=-1,n=-2,r={attachmentId:null,verifiedPageNumber:e,verifiedMatchSnippet:null,citation:{pageNumber:e},status:"not_found"};export{t as a,e as b,n as c,r as d};
@@ -1 +0,0 @@
1
- var d=Object.defineProperty;var e=(b,a,c)=>a in b?d(b,a,{enumerable:true,configurable:true,writable:true,value:c}):b[a]=c;var f=(b,a,c)=>e(b,typeof a!="symbol"?a+"":a,c);export{f as a};