@goodwidget/ai-credits-widget 0.1.8 → 0.1.9

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.
@@ -3544,22 +3544,29 @@ function useCopyFeedback() {
3544
3544
 
3545
3545
  // src/components/buy/GenerateSignerKeyPanel.tsx
3546
3546
  import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
3547
- function NumberedStep({ index, title }) {
3548
- return /* @__PURE__ */ jsxs3(XStack3, { gap: "$2", alignItems: "center", children: [
3549
- /* @__PURE__ */ jsx3(
3550
- YStack3,
3551
- {
3552
- width: 24,
3553
- height: 24,
3554
- borderRadius: "$full",
3555
- backgroundColor: "$backgroundSurface",
3556
- alignItems: "center",
3557
- justifyContent: "center",
3558
- flexShrink: 0,
3559
- children: /* @__PURE__ */ jsx3(Text3, { fontSize: "$1", fontWeight: "700", children: index })
3560
- }
3561
- ),
3562
- /* @__PURE__ */ jsx3(Text3, { fontSize: "$3", fontWeight: "700", children: title })
3547
+ function NumberedStep({
3548
+ index,
3549
+ title,
3550
+ note
3551
+ }) {
3552
+ return /* @__PURE__ */ jsxs3(YStack3, { gap: "$1", children: [
3553
+ /* @__PURE__ */ jsxs3(XStack3, { gap: "$2", alignItems: "center", children: [
3554
+ /* @__PURE__ */ jsx3(
3555
+ YStack3,
3556
+ {
3557
+ width: 24,
3558
+ height: 24,
3559
+ borderRadius: "$full",
3560
+ backgroundColor: "$backgroundSurface",
3561
+ alignItems: "center",
3562
+ justifyContent: "center",
3563
+ flexShrink: 0,
3564
+ children: /* @__PURE__ */ jsx3(Text3, { fontSize: "$1", fontWeight: "700", children: index })
3565
+ }
3566
+ ),
3567
+ /* @__PURE__ */ jsx3(Text3, { fontSize: "$3", fontWeight: "700", children: title })
3568
+ ] }),
3569
+ note && /* @__PURE__ */ jsx3(Text3, { marginLeft: 32, fontSize: "$2", color: "$warning", fontStyle: "italic", lineHeight: "$3", children: note })
3563
3570
  ] });
3564
3571
  }
3565
3572
  function GenerateSignerKeyPanel({
@@ -3593,11 +3600,18 @@ function GenerateSignerKeyPanel({
3593
3600
  /* @__PURE__ */ jsxs3(YStack3, { gap: "$2", children: [
3594
3601
  /* @__PURE__ */ jsx3(NumberedStep, { index: 1, title: "Open Antseed Desktop" }),
3595
3602
  /* @__PURE__ */ jsx3(NumberedStep, { index: 2, title: "Go to Profile \u2192 Signer" }),
3596
- /* @__PURE__ */ jsx3(NumberedStep, { index: 3, title: "Tap \u2191, paste your Signer Private Key, and save" })
3603
+ /* @__PURE__ */ jsx3(
3604
+ NumberedStep,
3605
+ {
3606
+ index: 3,
3607
+ title: "Back up your existing Signer Key",
3608
+ note: "\u26A0\uFE0F Tap \u2193 to back up your existing signer key. Importing a new signer key will replace it."
3609
+ }
3610
+ ),
3611
+ /* @__PURE__ */ jsx3(NumberedStep, { index: 4, title: "Tap \u2191 to paste your Signer Key, then save." })
3597
3612
  ] }),
3598
3613
  /* @__PURE__ */ jsx3(AntseedSignerRow, { mode: "generate", showCaption: false }),
3599
3614
  /* @__PURE__ */ jsx3(AiCreditsStatusNotice, { children: /* @__PURE__ */ jsx3(Text3, { fontSize: "$2", tone: "soft", lineHeight: "$3", children: "The address you see when you paste your private key is the public address used for your AI credits." }) }),
3600
- /* @__PURE__ */ jsx3(AiCreditsStatusNotice, { borderColor: "$warning", children: /* @__PURE__ */ jsx3(Text3, { color: "$warning", fontSize: "$2", lineHeight: "$3", children: "Back up any existing AntSeed signer key before importing this one. Importing replaces the signer used by your AntSeed account." }) }),
3601
3615
  onOpenApiSetup && /* @__PURE__ */ jsxs3(XStack3, { gap: "$2", alignItems: "center", children: [
3602
3616
  /* @__PURE__ */ jsx3(Icon, { name: "settings", size: "xs", color: "muted" }),
3603
3617
  /* @__PURE__ */ jsxs3(Text3, { fontSize: "$2", tone: "soft", flex: 1, lineHeight: "$3", children: [
@@ -4271,18 +4285,18 @@ function CreditsManagementCard({ state, actions }) {
4271
4285
  return /* @__PURE__ */ jsxs7(Card6, { children: [
4272
4286
  /* @__PURE__ */ jsx7(Heading4, { level: 6, children: "AI Credits" }),
4273
4287
  /* @__PURE__ */ jsxs7(StatRow, { children: [
4274
- /* @__PURE__ */ jsx7(StatCell, { label: "Total Credit (US$)", children: totalCreditDisplay !== null ? /* @__PURE__ */ jsx7(StatValueText, { fontSize: "$5", children: totalCreditDisplay }) : /* @__PURE__ */ jsx7(Spinner4, { size: "sm" }) }),
4288
+ /* @__PURE__ */ jsx7(StatCell, { label: "Credit balance (US$)", children: totalCreditDisplay !== null ? /* @__PURE__ */ jsx7(StatValueText, { fontSize: "$5", children: totalCreditDisplay }) : /* @__PURE__ */ jsx7(Spinner4, { size: "sm" }) }),
4275
4289
  /* @__PURE__ */ jsx7(StatCell, { label: "Monthly Credit (US$)", children: monthlyStreamUsdDisplay ? /* @__PURE__ */ jsxs7(StatValueText, { fontSize: "$5", color: "$primary", children: [
4276
4290
  "~",
4277
4291
  monthlyStreamUsdDisplay
4278
4292
  ] }) : /* @__PURE__ */ jsx7(StatValueText, { fontSize: "$5", children: "\u2014" }) })
4279
4293
  ] }),
4280
4294
  /* @__PURE__ */ jsxs7(StatRow, { children: [
4281
- /* @__PURE__ */ jsx7(StatCell, { label: "Total Deposited (G$)", children: /* @__PURE__ */ jsx7(CompactGStatValue, { amount: totalGdDepositedG ?? "0.00" }) }),
4295
+ /* @__PURE__ */ jsx7(StatCell, { label: "Deposited (G$)", children: /* @__PURE__ */ jsx7(CompactGStatValue, { amount: totalGdDepositedG ?? "0.00" }) }),
4282
4296
  /* @__PURE__ */ jsx7(StatCell, { label: "Monthly Stream (G$)", children: /* @__PURE__ */ jsx7(CompactGStatValue, { amount: monthlyStreamG ?? "0.00" }) })
4283
4297
  ] }),
4284
4298
  /* @__PURE__ */ jsxs7(StatRow, { children: [
4285
- /* @__PURE__ */ jsx7(StatCell, { label: "Bonus Earned (US$)", children: totalBonusDisplay !== null ? /* @__PURE__ */ jsx7(StatValueText, { children: totalBonusDisplay }) : /* @__PURE__ */ jsx7(Spinner4, { size: "sm" }) }),
4299
+ /* @__PURE__ */ jsx7(StatCell, { label: "Bonus (US$)", children: totalBonusDisplay !== null ? /* @__PURE__ */ jsx7(StatValueText, { children: totalBonusDisplay }) : /* @__PURE__ */ jsx7(Spinner4, { size: "sm" }) }),
4286
4300
  /* @__PURE__ */ jsx7(StatCell, { label: "Withdrawable (US$)", children: withdrawableDisplay !== null ? /* @__PURE__ */ jsx7(StatValueText, { children: withdrawableDisplay }) : /* @__PURE__ */ jsx7(Spinner4, { size: "sm" }) })
4287
4301
  ] }),
4288
4302
  /* @__PURE__ */ jsxs7(YStack7, { gap: "$1", width: "100%", children: [
@@ -6812,4 +6826,4 @@ export {
6812
6826
  useAiCreditsAdapter,
6813
6827
  AiCreditsWidget
6814
6828
  };
6815
- //# sourceMappingURL=chunk-635NKGPL.js.map
6829
+ //# sourceMappingURL=chunk-ZDHB2OZ5.js.map