@thurinlabs/identity-kit 0.7.4 → 0.7.5
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 +9 -4
- package/dist/embed.global.js +3 -1
- package/dist/embed.global.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -184,11 +184,14 @@ Hooks-only consumers don't need to import styles.
|
|
|
184
184
|
|
|
185
185
|
## Embed (No React Required)
|
|
186
186
|
|
|
187
|
-
For static sites, Jekyll blogs, WordPress, or any HTML page — use the standalone embed script.
|
|
187
|
+
For static sites, Jekyll blogs, WordPress, or any HTML page — use the standalone embed script. Everything runs client-side; there's no Thurin backend in the path.
|
|
188
188
|
|
|
189
189
|
```html
|
|
190
|
-
<div
|
|
191
|
-
|
|
190
|
+
<div
|
|
191
|
+
data-scry-card="bendoubleu.eth"
|
|
192
|
+
data-theme="thurin"
|
|
193
|
+
data-rpc-url="https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY"
|
|
194
|
+
></div>
|
|
192
195
|
|
|
193
196
|
<script src="https://cdn.jsdelivr.net/npm/@thurinlabs/identity-kit/dist/embed.global.js"></script>
|
|
194
197
|
```
|
|
@@ -197,8 +200,10 @@ For static sites, Jekyll blogs, WordPress, or any HTML page — use the standalo
|
|
|
197
200
|
|-----------|-------------|
|
|
198
201
|
| `data-scry-card` | ENS name or ETH address to look up (required) |
|
|
199
202
|
| `data-theme` | `thurin`, `dark`, or `light` (default: `thurin`) |
|
|
203
|
+
| `data-rpc-url` | An Ethereum RPC that supports `eth_getLogs` — required to verify on-chain claims. The card reads the chain directly, so use your own node or any provider. (Public fallback RPCs throttle `getLogs`.) |
|
|
204
|
+
| `data-neynar-key` | Optional. A Neynar API key, only to verify Farcaster proofs. Without it, Farcaster shows as unverified. |
|
|
200
205
|
|
|
201
|
-
The
|
|
206
|
+
The card talks directly to Ethereum, keys.openpgp.org, and each proof platform — no intermediary. Cards render automatically on page load and for dynamically added elements.
|
|
202
207
|
|
|
203
208
|
## Supported Proof Providers
|
|
204
209
|
|
package/dist/embed.global.js
CHANGED
|
@@ -40001,6 +40001,8 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
40001
40001
|
el2.dataset.scryRendered = "true";
|
|
40002
40002
|
const value = el2.dataset.scryCard;
|
|
40003
40003
|
const theme = el2.dataset.theme || "thurin";
|
|
40004
|
+
const rpcUrl = el2.dataset.rpcUrl;
|
|
40005
|
+
const neynarApiKey = el2.dataset.neynarKey;
|
|
40004
40006
|
const props = isAddress3(value) ? { address: value } : { ens: value };
|
|
40005
40007
|
const shadow = el2.attachShadow({ mode: "open" });
|
|
40006
40008
|
const style = document.createElement("style");
|
|
@@ -40010,7 +40012,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
40010
40012
|
shadow.appendChild(container);
|
|
40011
40013
|
const root = (0, import_client.createRoot)(container);
|
|
40012
40014
|
root.render(
|
|
40013
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IdentityKitProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ScryCard, { ...props, theme }) })
|
|
40015
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IdentityKitProvider, { rpcUrl, neynarApiKey, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ScryCard, { ...props, theme }) })
|
|
40014
40016
|
);
|
|
40015
40017
|
});
|
|
40016
40018
|
}
|