@scribeberry/sdk 0.2.1 → 0.3.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/README.md +60 -0
- package/dist/index.js +3 -3
- package/dist/react.d.mts +120 -0
- package/dist/react.d.ts +120 -0
- package/dist/react.js +956 -0
- package/dist/react.mjs +919 -0
- package/package.json +33 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scribeberry/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Official Scribeberry SDK — Medical transcription, AI note generation, and realtime speech-to-text. Works in Node.js and browsers.",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Official Scribeberry SDK — Medical transcription, AI note generation, and realtime speech-to-text. Works in Node.js and browsers. Includes React hooks.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.mjs",
|
|
12
12
|
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./react": {
|
|
15
|
+
"types": "./dist/react.d.ts",
|
|
16
|
+
"import": "./dist/react.mjs",
|
|
17
|
+
"require": "./dist/react.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
"*": {
|
|
22
|
+
"react": [
|
|
23
|
+
"./dist/react.d.ts"
|
|
24
|
+
]
|
|
13
25
|
}
|
|
14
26
|
},
|
|
15
27
|
"files": [
|
|
@@ -19,8 +31,8 @@
|
|
|
19
31
|
],
|
|
20
32
|
"sideEffects": false,
|
|
21
33
|
"scripts": {
|
|
22
|
-
"build": "tsup
|
|
23
|
-
"dev": "tsup
|
|
34
|
+
"build": "tsup",
|
|
35
|
+
"dev": "tsup --watch",
|
|
24
36
|
"publish:npm": "pnpm build && npm publish --access public",
|
|
25
37
|
"publish:dry": "pnpm build && npm publish --dry-run",
|
|
26
38
|
"demo": "pnpm build && npx --yes ts-node demo/test-sdk.ts",
|
|
@@ -38,7 +50,9 @@
|
|
|
38
50
|
"realtime",
|
|
39
51
|
"ai",
|
|
40
52
|
"api",
|
|
41
|
-
"sdk"
|
|
53
|
+
"sdk",
|
|
54
|
+
"react",
|
|
55
|
+
"hooks"
|
|
42
56
|
],
|
|
43
57
|
"author": "Scribeberry <support@scribeberry.com> (https://scribeberry.com)",
|
|
44
58
|
"license": "MIT",
|
|
@@ -50,13 +64,23 @@
|
|
|
50
64
|
"node": ">=18"
|
|
51
65
|
},
|
|
52
66
|
"dependencies": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
67
|
+
"cross-fetch": "^4.1.0",
|
|
68
|
+
"ws": "^8.18.0"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"react": ">=18"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"react": {
|
|
75
|
+
"optional": true
|
|
76
|
+
}
|
|
55
77
|
},
|
|
56
78
|
"devDependencies": {
|
|
57
|
-
"typescript": "^5.6.2",
|
|
58
79
|
"@types/node": "^22.7.3",
|
|
80
|
+
"@types/react": "^19.1.4",
|
|
59
81
|
"@types/ws": "^8.5.13",
|
|
60
|
-
"
|
|
82
|
+
"react": "^19.1.0",
|
|
83
|
+
"tsup": "^8.3.5",
|
|
84
|
+
"typescript": "^5.6.2"
|
|
61
85
|
}
|
|
62
86
|
}
|