@welshare/react 0.0.1-alpha.1
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/LICENSE +7 -0
- package/README.md +124 -0
- package/dist/esm/components/connect-button.d.ts +6 -0
- package/dist/esm/components/connect-button.d.ts.map +1 -0
- package/dist/esm/components/connect-button.js +58 -0
- package/dist/esm/hooks/use-welshare.d.ts +10 -0
- package/dist/esm/hooks/use-welshare.d.ts.map +1 -0
- package/dist/esm/hooks/use-welshare.js +111 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/types.d.ts +32 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +1 -0
- package/dist/node_modules/@welshare/react/.gitignore +6 -0
- package/dist/node_modules/@welshare/react/.npmignore +34 -0
- package/dist/node_modules/@welshare/react/.tshy/build.json +8 -0
- package/dist/node_modules/@welshare/react/.tshy/esm.json +16 -0
- package/dist/node_modules/@welshare/react/LICENSE +7 -0
- package/dist/node_modules/@welshare/react/README.md +124 -0
- package/dist/node_modules/@welshare/react/dist/esm/components/connect-button.d.ts +6 -0
- package/dist/node_modules/@welshare/react/dist/esm/components/connect-button.d.ts.map +1 -0
- package/dist/node_modules/@welshare/react/dist/esm/components/connect-button.js +58 -0
- package/dist/node_modules/@welshare/react/dist/esm/hooks/use-welshare.d.ts +10 -0
- package/dist/node_modules/@welshare/react/dist/esm/hooks/use-welshare.d.ts.map +1 -0
- package/dist/node_modules/@welshare/react/dist/esm/hooks/use-welshare.js +111 -0
- package/dist/node_modules/@welshare/react/dist/esm/index.d.ts +7 -0
- package/dist/node_modules/@welshare/react/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/@welshare/react/dist/esm/index.js +10 -0
- package/dist/node_modules/@welshare/react/dist/esm/package.json +3 -0
- package/dist/node_modules/@welshare/react/dist/esm/types.d.ts +32 -0
- package/dist/node_modules/@welshare/react/dist/esm/types.d.ts.map +1 -0
- package/dist/node_modules/@welshare/react/dist/esm/types.js +1 -0
- package/dist/node_modules/@welshare/react/eslint.config.mjs +4 -0
- package/dist/node_modules/@welshare/react/package.json +88 -0
- package/dist/node_modules/@welshare/react/src/components/connect-button.tsx +99 -0
- package/dist/node_modules/@welshare/react/src/hooks/use-welshare.ts +148 -0
- package/dist/node_modules/@welshare/react/src/index.ts +13 -0
- package/dist/node_modules/@welshare/react/src/types.ts +37 -0
- package/dist/node_modules/@welshare/react/tsconfig.json +21 -0
- package/package.json +87 -0
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@welshare/react",
|
|
3
|
+
"version": "0.0.1-alpha.1",
|
|
4
|
+
"description": "React library for integrating with Welshare's sovereign data sharing platform",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"welshare",
|
|
8
|
+
"data-sharing",
|
|
9
|
+
"health",
|
|
10
|
+
"questionnaire",
|
|
11
|
+
"fhir"
|
|
12
|
+
],
|
|
13
|
+
"author": "Welshare UG (haftungsbeschränkt)",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/welshare/surveys-monorepo.git",
|
|
18
|
+
"directory": "packages/welshare-react"
|
|
19
|
+
},
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/welshare/surveys-monorepo/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://welshare.health",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^19",
|
|
27
|
+
"react-dom": "^19"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@turbo/gen": "^2.4.2",
|
|
31
|
+
"@types/node": "^22",
|
|
32
|
+
"@types/react": "^19",
|
|
33
|
+
"tshy": "^3.0.2",
|
|
34
|
+
"typescript": "^5.7.3",
|
|
35
|
+
"vitest": "^3.2.4",
|
|
36
|
+
"@vitest/ui": "^3.2.4",
|
|
37
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
38
|
+
"jsdom": "^26.1.0",
|
|
39
|
+
"@workspace/typescript-config": "0.0.0",
|
|
40
|
+
"@workspace/eslint-config": "0.0.0"
|
|
41
|
+
},
|
|
42
|
+
"tshy": {
|
|
43
|
+
"dialects": [
|
|
44
|
+
"esm"
|
|
45
|
+
],
|
|
46
|
+
"exclude": [
|
|
47
|
+
"src/**/__tests__/**"
|
|
48
|
+
],
|
|
49
|
+
"exports": {
|
|
50
|
+
"./package.json": "./package.json",
|
|
51
|
+
"./types": "./src/types.ts",
|
|
52
|
+
".": "./src/index.ts"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"exports": {
|
|
56
|
+
"./package.json": "./package.json",
|
|
57
|
+
"./types": {
|
|
58
|
+
"import": {
|
|
59
|
+
"types": "./dist/esm/types.d.ts",
|
|
60
|
+
"default": "./dist/esm/types.js"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
".": {
|
|
64
|
+
"import": {
|
|
65
|
+
"types": "./dist/esm/index.d.ts",
|
|
66
|
+
"default": "./dist/esm/index.js"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"module": "./dist/esm/index.js",
|
|
71
|
+
"files": [
|
|
72
|
+
"dist/**/*",
|
|
73
|
+
"README.md",
|
|
74
|
+
"LICENSE"
|
|
75
|
+
],
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": ">=20.0.0"
|
|
78
|
+
},
|
|
79
|
+
"scripts": {
|
|
80
|
+
"lint": "eslint . --max-warnings 10",
|
|
81
|
+
"build": "tshy",
|
|
82
|
+
"build:clean": "rm -rf ./dist",
|
|
83
|
+
"test": "vitest",
|
|
84
|
+
"test:run": "vitest run",
|
|
85
|
+
"test:coverage": "vitest run --coverage"
|
|
86
|
+
}
|
|
87
|
+
}
|