decane-connect-kit 2.0.1 → 2.0.3
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/dist/index.cjs +10 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3519,7 +3519,7 @@ function WalletIcon({ src, name, size = 36 }) {
|
|
|
3519
3519
|
fontWeight: 800,
|
|
3520
3520
|
color: "var(--dc-accent)",
|
|
3521
3521
|
flexShrink: 0,
|
|
3522
|
-
fontFamily: "var(--dc-font-sans)",
|
|
3522
|
+
fontFamily: "var(--dc-font-sans, system-ui, sans-serif)",
|
|
3523
3523
|
letterSpacing: "-0.02em"
|
|
3524
3524
|
}
|
|
3525
3525
|
},
|
|
@@ -3864,7 +3864,10 @@ function WalletSelector({
|
|
|
3864
3864
|
alignItems: "center",
|
|
3865
3865
|
justifyContent: "center",
|
|
3866
3866
|
padding: "16px",
|
|
3867
|
-
|
|
3867
|
+
// Same fallback chain as SocialWalletModal — without it, this modal
|
|
3868
|
+
// drops to the browser default serif whenever the token block hasn't
|
|
3869
|
+
// been injected, while the social modal still lands on system-ui.
|
|
3870
|
+
fontFamily: "var(--dc-font-sans, system-ui, sans-serif)"
|
|
3868
3871
|
}
|
|
3869
3872
|
},
|
|
3870
3873
|
/* @__PURE__ */ React2.createElement(
|
|
@@ -4097,7 +4100,7 @@ function WalletSelector({
|
|
|
4097
4100
|
fontSize: 13,
|
|
4098
4101
|
padding: "8px 12px 8px 32px",
|
|
4099
4102
|
outline: "none",
|
|
4100
|
-
fontFamily: "var(--dc-font-sans)",
|
|
4103
|
+
fontFamily: "var(--dc-font-sans, system-ui, sans-serif)",
|
|
4101
4104
|
transition: "border-color 0.15s",
|
|
4102
4105
|
boxSizing: "border-box"
|
|
4103
4106
|
},
|
|
@@ -4537,7 +4540,7 @@ function RecoverySection({
|
|
|
4537
4540
|
setResult({ kind: "share", version: file.shareSetVersion });
|
|
4538
4541
|
} else {
|
|
4539
4542
|
const file = await onExportPortableBackup({ password, passwordHint: passwordHint || void 0 });
|
|
4540
|
-
downloadJson(file, `decane-
|
|
4543
|
+
downloadJson(file, `decane-full-recovery-${addresses.evm.slice(0, 8)}.json`);
|
|
4541
4544
|
setResult({ kind: "portable", version: file.shareSetVersion });
|
|
4542
4545
|
}
|
|
4543
4546
|
reset();
|
|
@@ -4586,13 +4589,13 @@ function RecoverySection({
|
|
|
4586
4589
|
},
|
|
4587
4590
|
/* @__PURE__ */ React3.createElement("span", { style: { fontSize: 12, fontWeight: 700, color: "var(--dc-text)" } }, "Recovery"),
|
|
4588
4591
|
/* @__PURE__ */ React3.createElement("span", { style: { fontSize: 11, color: "var(--dc-text-muted)" } }, expanded ? "\u25B2" : "\u25BC")
|
|
4589
|
-
), expanded && /* @__PURE__ */ React3.createElement("div", { style: { padding: "12px 14px", borderTop: "1px solid var(--dc-border)" } }, /* @__PURE__ */ React3.createElement("p", { style: { fontSize: 11, color: "var(--dc-text-muted)", lineHeight: 1.5, margin: "0 0 10px" } }, "
|
|
4592
|
+
), expanded && /* @__PURE__ */ React3.createElement("div", { style: { padding: "12px 14px", borderTop: "1px solid var(--dc-border)" } }, /* @__PURE__ */ React3.createElement("p", { style: { fontSize: 11, color: "var(--dc-text-muted)", lineHeight: 1.5, margin: "0 0 10px" } }, "Save a recovery file so you can restore this wallet on a new device."), !mode && /* @__PURE__ */ React3.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 8 } }, /* @__PURE__ */ React3.createElement("button", { onClick: () => {
|
|
4590
4593
|
reset();
|
|
4591
4594
|
setMode("share");
|
|
4592
4595
|
}, style: { ...btnStyle, background: "var(--dc-accent)", color: "var(--dc-accent-text)" } }, "Generate recovery-share file"), /* @__PURE__ */ React3.createElement("button", { onClick: () => {
|
|
4593
4596
|
reset();
|
|
4594
4597
|
setMode("portable");
|
|
4595
|
-
}, style: { ...btnStyle, background: "transparent", border: "1px solid var(--dc-border)", color: "var(--dc-text)" } }, "Generate
|
|
4598
|
+
}, style: { ...btnStyle, background: "transparent", border: "1px solid var(--dc-border)", color: "var(--dc-text)" } }, "Generate full recovery file")), mode === "share" && /* @__PURE__ */ React3.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 8 } }, /* @__PURE__ */ React3.createElement("p", { style: { fontSize: 11, color: "var(--dc-text-muted)", margin: 0 } }, "One share \u2014 useless alone, safe to keep in a password manager or cloud drive. Generating a new one invalidates any previous recovery-share file."), /* @__PURE__ */ React3.createElement("input", { type: "password", placeholder: "Password (min 8 chars)", value: password, onChange: (e) => setPassword(e.target.value), style: inputStyle }), /* @__PURE__ */ React3.createElement("input", { placeholder: "Password hint (optional)", value: passwordHint, onChange: (e) => setPasswordHint(e.target.value), style: inputStyle }), error && /* @__PURE__ */ React3.createElement("div", { style: { fontSize: 11, color: "var(--dc-danger, #ff5533)" } }, error), /* @__PURE__ */ React3.createElement("div", { style: { display: "flex", gap: 8 } }, /* @__PURE__ */ React3.createElement("button", { onClick: handleGenerate, disabled: busy, style: { ...btnStyle, flex: 1, background: "var(--dc-accent)", color: "var(--dc-accent-text)" } }, busy ? "Generating\u2026" : "Generate & download"), /* @__PURE__ */ React3.createElement("button", { onClick: reset, style: { ...btnStyle, background: "transparent", border: "1px solid var(--dc-border)", color: "var(--dc-text-muted)" } }, "Cancel"))), mode === "portable" && /* @__PURE__ */ React3.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 8 } }, /* @__PURE__ */ React3.createElement("div", { style: {
|
|
4596
4599
|
background: "rgba(255,85,51,0.08)",
|
|
4597
4600
|
border: "1px solid rgba(255,85,51,0.3)",
|
|
4598
4601
|
borderRadius: 8,
|
|
@@ -4600,7 +4603,7 @@ function RecoverySection({
|
|
|
4600
4603
|
fontSize: 11,
|
|
4601
4604
|
color: "#ff9977",
|
|
4602
4605
|
lineHeight: 1.5
|
|
4603
|
-
} }, /* @__PURE__ */ React3.createElement("strong", { style: { display: "block", marginBottom: 3, color: "#ff5533" } }, "This file controls your wallet"), "Contains two shares \u2014 file plus password gives complete control. Keep it offline, not a cloud drive. This also invalidates your current recovery-share file."), /* @__PURE__ */ React3.createElement("label", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: 11, color: "var(--dc-text)" } }, /* @__PURE__ */ React3.createElement("input", { type: "checkbox", checked: confirmed, onChange: (e) => setConfirmed(e.target.checked), style: { width: "auto" } }), "I understand this is a bearer secret"), /* @__PURE__ */ React3.createElement("input", { type: "password", placeholder: "Password (min 8 chars)", value: password, onChange: (e) => setPassword(e.target.value), style: inputStyle }), /* @__PURE__ */ React3.createElement("input", { placeholder: "Password hint (optional)", value: passwordHint, onChange: (e) => setPasswordHint(e.target.value), style: inputStyle }), error && /* @__PURE__ */ React3.createElement("div", { style: { fontSize: 11, color: "var(--dc-danger, #ff5533)" } }, error), /* @__PURE__ */ React3.createElement("div", { style: { display: "flex", gap: 8 } }, /* @__PURE__ */ React3.createElement("button", { onClick: handleGenerate, disabled: busy || !confirmed, style: { ...btnStyle, flex: 1, background: "var(--dc-accent)", color: "var(--dc-accent-text)" } }, busy ? "Generating\u2026" : "Generate & download"), /* @__PURE__ */ React3.createElement("button", { onClick: reset, style: { ...btnStyle, background: "transparent", border: "1px solid var(--dc-border)", color: "var(--dc-text-muted)" } }, "Cancel"))), result && /* @__PURE__ */ React3.createElement("div", { style: { marginTop: 10, fontSize: 11, color: "var(--dc-text-muted)", lineHeight: 1.5 } }, result.kind === "share" ? "Recovery-share file" : "
|
|
4606
|
+
} }, /* @__PURE__ */ React3.createElement("strong", { style: { display: "block", marginBottom: 3, color: "#ff5533" } }, "This file controls your wallet"), "Contains two shares \u2014 file plus password gives complete control. Keep it offline, not a cloud drive. This also invalidates your current recovery-share file."), /* @__PURE__ */ React3.createElement("label", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: 11, color: "var(--dc-text)" } }, /* @__PURE__ */ React3.createElement("input", { type: "checkbox", checked: confirmed, onChange: (e) => setConfirmed(e.target.checked), style: { width: "auto" } }), "I understand this is a bearer secret"), /* @__PURE__ */ React3.createElement("input", { type: "password", placeholder: "Password (min 8 chars)", value: password, onChange: (e) => setPassword(e.target.value), style: inputStyle }), /* @__PURE__ */ React3.createElement("input", { placeholder: "Password hint (optional)", value: passwordHint, onChange: (e) => setPasswordHint(e.target.value), style: inputStyle }), error && /* @__PURE__ */ React3.createElement("div", { style: { fontSize: 11, color: "var(--dc-danger, #ff5533)" } }, error), /* @__PURE__ */ React3.createElement("div", { style: { display: "flex", gap: 8 } }, /* @__PURE__ */ React3.createElement("button", { onClick: handleGenerate, disabled: busy || !confirmed, style: { ...btnStyle, flex: 1, background: "var(--dc-accent)", color: "var(--dc-accent-text)" } }, busy ? "Generating\u2026" : "Generate & download"), /* @__PURE__ */ React3.createElement("button", { onClick: reset, style: { ...btnStyle, background: "transparent", border: "1px solid var(--dc-border)", color: "var(--dc-text-muted)" } }, "Cancel"))), result && /* @__PURE__ */ React3.createElement("div", { style: { marginTop: 10, fontSize: 11, color: "var(--dc-text-muted)", lineHeight: 1.5 } }, result.kind === "share" ? "Recovery-share file" : "Full recovery file", " downloaded \u2014 share set is now version ", result.version, ". Any previous recovery file no longer works.")));
|
|
4604
4607
|
}
|
|
4605
4608
|
function SocialWalletModal({
|
|
4606
4609
|
open,
|