@thurinlabs/identity-kit 0.4.0 → 0.6.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 +5 -5
- package/dist/embed.global.js +4 -3
- package/dist/embed.global.js.map +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ A self-contained identity card that fetches and displays all available identity
|
|
|
44
44
|
| `address` | `string` | — | ETH address to look up |
|
|
45
45
|
| `theme` | `'thurin' \| 'dark' \| 'light'` | `'thurin'` | Visual theme |
|
|
46
46
|
|
|
47
|
-
**Displays:** ENS avatar, name, address, Signet seal count, verified proof count, EFP follower count, proof provider badges, and a link to the full [Scry](https://
|
|
47
|
+
**Displays:** ENS avatar, name, address, Signet seal count, verified proof count, EFP follower count, proof provider badges, and a link to the full [Scry](https://thurin.id) profile.
|
|
48
48
|
|
|
49
49
|
## Provider
|
|
50
50
|
|
|
@@ -60,7 +60,7 @@ Wrap your app (or just the part using identity-kit) in `IdentityKitProvider`. If
|
|
|
60
60
|
<IdentityKitProvider
|
|
61
61
|
rpcUrl="https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY"
|
|
62
62
|
neynarApiKey="YOUR_NEYNAR_KEY"
|
|
63
|
-
scryBaseUrl="https://
|
|
63
|
+
scryBaseUrl="https://thurin.id"
|
|
64
64
|
>
|
|
65
65
|
<ScryCard ens="vitalik.eth" />
|
|
66
66
|
</IdentityKitProvider>
|
|
@@ -70,7 +70,7 @@ Wrap your app (or just the part using identity-kit) in `IdentityKitProvider`. If
|
|
|
70
70
|
|------|------|---------|-------------|
|
|
71
71
|
| `rpcUrl` | `string` | publicnode | Ethereum RPC endpoint |
|
|
72
72
|
| `neynarApiKey` | `string` | — | Neynar API key for Farcaster proof verification |
|
|
73
|
-
| `scryBaseUrl` | `string` | `https://
|
|
73
|
+
| `scryBaseUrl` | `string` | `https://thurin.id` | Base URL for "View on Scry" links |
|
|
74
74
|
|
|
75
75
|
## Hooks
|
|
76
76
|
|
|
@@ -165,8 +165,8 @@ npm test
|
|
|
165
165
|
|
|
166
166
|
## Links
|
|
167
167
|
|
|
168
|
-
- [Scry](https://
|
|
169
|
-
- [Signet](https://
|
|
168
|
+
- [Scry](https://thurin.id) — Identity explorer
|
|
169
|
+
- [Signet](https://thurin.id/signet) — Create identity claims
|
|
170
170
|
- [Documentation](https://docs.thurin.id)
|
|
171
171
|
- [Codeberg](https://codeberg.org/thurinlabs/identity-kit)
|
|
172
172
|
|
package/dist/embed.global.js
CHANGED
|
@@ -38442,7 +38442,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
38442
38442
|
// src/context.ts
|
|
38443
38443
|
var import_react6 = __toESM(require_react(), 1);
|
|
38444
38444
|
var defaultConfig = {
|
|
38445
|
-
scryBaseUrl: "https://
|
|
38445
|
+
scryBaseUrl: "https://thurin.id"
|
|
38446
38446
|
};
|
|
38447
38447
|
var IdentityKitContext = (0, import_react6.createContext)(defaultConfig);
|
|
38448
38448
|
function useIdentityKitConfig() {
|
|
@@ -38484,7 +38484,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
38484
38484
|
children,
|
|
38485
38485
|
rpcUrl,
|
|
38486
38486
|
neynarApiKey,
|
|
38487
|
-
scryBaseUrl = "https://
|
|
38487
|
+
scryBaseUrl = "https://thurin.id"
|
|
38488
38488
|
}) {
|
|
38489
38489
|
const config = (0, import_react7.useMemo)(
|
|
38490
38490
|
() => ({ rpcUrl, neynarApiKey, scryBaseUrl }),
|
|
@@ -39597,8 +39597,9 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
39597
39597
|
parse: (m2) => ({ instance: m2[1], user: m2[2] })
|
|
39598
39598
|
}
|
|
39599
39599
|
];
|
|
39600
|
+
var ACCEPTED_NAMESPACES = /* @__PURE__ */ new Set(["proof@thurin.id", "proof@ariadne.id"]);
|
|
39600
39601
|
function identifyProof(notation) {
|
|
39601
|
-
if (notation.name
|
|
39602
|
+
if (!ACCEPTED_NAMESPACES.has(notation.name)) return null;
|
|
39602
39603
|
for (const { provider, label, pattern, parse } of PROVIDERS) {
|
|
39603
39604
|
const m2 = notation.value.match(pattern);
|
|
39604
39605
|
if (m2) {
|