techne-sdk 0.13.1 → 0.15.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/CHANGELOG.md +93 -3
- package/README.md +66 -17
- package/dist/auth/hints.d.ts +14 -0
- package/dist/auth/hints.js +18 -0
- package/dist/auth/index.d.ts +19 -1
- package/dist/auth/index.js +48 -1
- package/dist/catalog/catalog.gen.d.ts +35 -29
- package/dist/catalog/catalog.gen.js +427 -64
- package/dist/generated/index.d.ts +56 -0
- package/dist/generated/index.js +72 -0
- package/dist/generated/lexicons.d.ts +164 -26
- package/dist/generated/lexicons.js +84 -12
- package/dist/generated/nsid.d.ts +8 -0
- package/dist/generated/nsid.js +8 -0
- package/dist/generated/nsid.json +8 -0
- package/dist/generated/records.d.ts +94 -90
- package/dist/generated/types/pub/techne/draft/beacon.d.ts +2 -0
- package/dist/generated/types/pub/techne/draft/derivation.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/evaluation.d.ts +3 -1
- package/dist/generated/types/pub/techne/draft/follow.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/follow.js +12 -0
- package/dist/generated/types/pub/techne/draft/notificationPref.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/notificationPref.js +12 -0
- package/dist/generated/types/pub/techne/draft/org.d.ts +2 -2
- package/dist/generated/types/pub/techne/draft/statement.d.ts +1 -1
- package/dist/query/index.d.ts +3 -2
- package/dist/react/sign-in.d.ts +34 -0
- package/dist/react/sign-in.js +52 -0
- package/dist/session/phone.d.ts +7 -6
- package/dist/session/phone.js +7 -6
- package/dist/session/relay.d.ts +1 -1
- package/dist/session/relay.js +1 -1
- package/dist/sign-in/index.d.ts +33 -0
- package/dist/sign-in/index.js +479 -0
- package/dist/sign-in/styles.d.ts +22 -0
- package/dist/sign-in/styles.js +108 -0
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +7330 -7332
- package/package.json +14 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "techne-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "TechneSDK: sign in (\"Sign in with Techne\", browser OAuth), put, query, useEvent and the read-time check for apps on the Techne platform. Types and clients are generated from the published lexicons; the logic that must match the platform exactly (the check, version ranking, put's order) is Rust compiled to WebAssembly (wasm2js on hosts without it). Datetime fields are plain strings: send Date.prototype.toISOString() (UTC, trailing Z).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
"types": "./dist/react/query.d.ts",
|
|
65
65
|
"default": "./dist/react/query.js"
|
|
66
66
|
},
|
|
67
|
+
"./react/sign-in": {
|
|
68
|
+
"types": "./dist/react/sign-in.d.ts",
|
|
69
|
+
"default": "./dist/react/sign-in.js"
|
|
70
|
+
},
|
|
67
71
|
"./wasm": {
|
|
68
72
|
"types": "./dist/wasm/index.d.ts",
|
|
69
73
|
"default": "./dist/wasm/index.js"
|
|
@@ -93,6 +97,10 @@
|
|
|
93
97
|
"types": "./dist/auth/index.d.ts",
|
|
94
98
|
"default": "./dist/auth/index.js"
|
|
95
99
|
},
|
|
100
|
+
"./sign-in": {
|
|
101
|
+
"types": "./dist/sign-in/index.d.ts",
|
|
102
|
+
"default": "./dist/sign-in/index.js"
|
|
103
|
+
},
|
|
96
104
|
"./session": {
|
|
97
105
|
"types": "./dist/session/index.d.ts",
|
|
98
106
|
"default": "./dist/session/index.js"
|
|
@@ -109,7 +117,7 @@
|
|
|
109
117
|
"typecheck": "tsc --noEmit && tsc --noEmit -p src/types-cli",
|
|
110
118
|
"build": "node ./scripts/build.mjs",
|
|
111
119
|
"prepack": "npm run build",
|
|
112
|
-
"test": "npm run test:inputs && npm run test:catalog && npm run test:nsid && npm run test:versions && npm run test:wasm && npm run test:put && npm run test:query && npm run test:links && npm run test:read && npm run test:react && npm run test:resend && npm run test:connect && npm run test:auth && npm run test:session && npm run test:types-cli && npm run test:package",
|
|
120
|
+
"test": "npm run test:inputs && npm run test:catalog && npm run test:nsid && npm run test:versions && npm run test:wasm && npm run test:put && npm run test:query && npm run test:links && npm run test:read && npm run test:react && npm run test:resend && npm run test:connect && npm run test:auth && npm run test:sign-in && npm run test:session && npm run test:types-cli && npm run test:package",
|
|
113
121
|
"test:inputs": "node --test ./scripts/inputs-sync.test.mjs",
|
|
114
122
|
"test:catalog": "node --test ./scripts/gen-catalog.test.mjs",
|
|
115
123
|
"test:nsid": "node --test ./scripts/gen-nsid.test.mjs",
|
|
@@ -123,6 +131,7 @@
|
|
|
123
131
|
"test:resend": "node --import tsx --test ./src/resend.test.mjs",
|
|
124
132
|
"test:connect": "node --import tsx --test ./src/connect.test.mjs",
|
|
125
133
|
"test:auth": "node --import tsx --test ./src/auth/auth.test.mjs",
|
|
134
|
+
"test:sign-in": "node --import tsx --test ./src/sign-in/sign-in.test.mjs",
|
|
126
135
|
"test:session": "node --import tsx --test ./src/session/session.test.mjs",
|
|
127
136
|
"test:package": "node --test ./scripts/package.test.mjs",
|
|
128
137
|
"gate": "bash ./scripts/gate.sh",
|
|
@@ -137,7 +146,8 @@
|
|
|
137
146
|
"@atproto/syntax": "^0.4.3",
|
|
138
147
|
"@atproto/xrpc": "^0.6.12",
|
|
139
148
|
"@noble/curves": "^2.4.0",
|
|
140
|
-
"@noble/hashes": "^2.4.0"
|
|
149
|
+
"@noble/hashes": "^2.4.0",
|
|
150
|
+
"libphonenumber-js": "^1.13.17"
|
|
141
151
|
},
|
|
142
152
|
"peerDependencies": {
|
|
143
153
|
"react": "^19",
|
|
@@ -157,6 +167,7 @@
|
|
|
157
167
|
"@tanstack/react-query": "^5.107.1",
|
|
158
168
|
"@types/node": "^22.20.5",
|
|
159
169
|
"@types/react": "^19.3.0",
|
|
170
|
+
"happy-dom": "^21.0.4",
|
|
160
171
|
"multiformats": "^9.9.0",
|
|
161
172
|
"react": "^19.2.3",
|
|
162
173
|
"react-test-renderer": "^19.2.3",
|