@thurinlabs/identity-kit 0.3.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 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://scry.thurin.id) profile.
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://scry.thurin.id"
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://scry.thurin.id` | Base URL for "View on Scry" links |
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://scry.thurin.id) — Identity explorer
169
- - [Signet](https://signet.thurin.id) — Create identity claims
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
 
@@ -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://scry.thurin.id"
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://scry.thurin.id"
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 !== "proof@thurin.id") return null;
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) {
@@ -39879,7 +39880,7 @@ ${prettyStateOverride(stateOverride)}`;
39879
39880
  const input = ens || address;
39880
39881
  const identity = useScryIdentity(input);
39881
39882
  const config = useIdentityKitConfig();
39882
- const scryUrl = identity.address ? `${config.scryBaseUrl}/#/eth/${identity.address}` : ens ? `${config.scryBaseUrl}/#/ens/${ens}` : null;
39883
+ const scryUrl = identity.address ? `${config.scryBaseUrl}/eth/${identity.address}` : ens ? `${config.scryBaseUrl}/ens/${ens}` : null;
39883
39884
  if (identity.isLoading) {
39884
39885
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "scry-card", "data-scry-theme": theme, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "scry-card-loading", children: "Loading identity..." }) });
39885
39886
  }