@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.
- package/README.md +156 -157
- package/lib/{chunk-D2TKEF6D.cjs → chunk-4ILSZKAP.cjs} +3 -2
- package/lib/chunk-4ILSZKAP.cjs.map +1 -0
- package/lib/chunk-5XGN7UAV.js +2 -0
- package/lib/chunk-5XGN7UAV.js.map +1 -0
- package/lib/{chunk-2PRW5PVT.cjs → chunk-ALJ2ZQ2S.cjs} +2 -1
- package/lib/chunk-ALJ2ZQ2S.cjs.map +1 -0
- package/lib/{chunk-F2MMVEVC.cjs → chunk-BYLIBOAU.cjs} +2 -1
- package/lib/chunk-BYLIBOAU.cjs.map +1 -0
- package/lib/{chunk-ND6LFDGK.js → chunk-KBDVUQEE.js} +2 -1
- package/lib/chunk-KBDVUQEE.js.map +1 -0
- package/lib/{chunk-PKXMJNRX.js → chunk-LLLVZOXB.js} +2 -1
- package/lib/chunk-LLLVZOXB.js.map +1 -0
- package/lib/{chunk-DHVODVIA.cjs → chunk-PJWAX2VG.cjs} +2 -1
- package/lib/chunk-PJWAX2VG.cjs.map +1 -0
- package/lib/{chunk-UUR2SQKU.cjs → chunk-QUW3L3UU.cjs} +2 -1
- package/lib/chunk-QUW3L3UU.cjs.map +1 -0
- package/lib/chunk-R57DQBOT.js +2 -0
- package/lib/chunk-R57DQBOT.js.map +1 -0
- package/lib/{chunk-3XSZLKJW.js → chunk-TDGYSF3B.js} +3 -2
- package/lib/chunk-TDGYSF3B.js.map +1 -0
- package/lib/client/index.cjs +2 -1
- package/lib/client/index.cjs.map +1 -0
- package/lib/client/index.js +2 -1
- package/lib/client/index.js.map +1 -0
- package/lib/index.cjs +2 -1
- package/lib/index.cjs.map +1 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -0
- package/lib/prompts/index.cjs +2 -1
- package/lib/prompts/index.cjs.map +1 -0
- package/lib/prompts/index.js +2 -1
- package/lib/prompts/index.js.map +1 -0
- package/lib/react/index.cjs +4 -3
- package/lib/react/index.cjs.map +1 -0
- package/lib/react/index.js +3 -2
- package/lib/react/index.js.map +1 -0
- package/lib/types/index.cjs +2 -1
- package/lib/types/index.cjs.map +1 -0
- package/lib/types/index.js +2 -1
- package/lib/types/index.js.map +1 -0
- package/package.json +161 -152
- package/src/tailwind.css +5 -5
- package/lib/chunk-HRCAI3NV.js +0 -1
- 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.
|
|
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/
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/
|
|
16
|
-
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"build
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"test
|
|
35
|
-
"test:
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"react":
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"react
|
|
53
|
-
"optional": true
|
|
54
|
-
},
|
|
55
|
-
"
|
|
56
|
-
"optional": true
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@types/
|
|
72
|
-
"@
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
},
|
|
121
|
-
"./
|
|
122
|
-
"types": "./lib/
|
|
123
|
-
"import": "./lib/
|
|
124
|
-
"require": "./lib/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
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";
|
package/lib/chunk-HRCAI3NV.js
DELETED
|
@@ -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};
|
package/lib/chunk-O2XFH626.js
DELETED
|
@@ -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};
|