@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.
package/dist/element.cjs CHANGED
@@ -3545,22 +3545,29 @@ function useCopyFeedback() {
3545
3545
 
3546
3546
  // src/components/buy/GenerateSignerKeyPanel.tsx
3547
3547
  var import_jsx_runtime3 = require("react/jsx-runtime");
3548
- function NumberedStep({ index, title }) {
3549
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.XStack, { gap: "$2", alignItems: "center", children: [
3550
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3551
- import_ui5.YStack,
3552
- {
3553
- width: 24,
3554
- height: 24,
3555
- borderRadius: "$full",
3556
- backgroundColor: "$backgroundSurface",
3557
- alignItems: "center",
3558
- justifyContent: "center",
3559
- flexShrink: 0,
3560
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { fontSize: "$1", fontWeight: "700", children: index })
3561
- }
3562
- ),
3563
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { fontSize: "$3", fontWeight: "700", children: title })
3548
+ function NumberedStep({
3549
+ index,
3550
+ title,
3551
+ note
3552
+ }) {
3553
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.YStack, { gap: "$1", children: [
3554
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.XStack, { gap: "$2", alignItems: "center", children: [
3555
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3556
+ import_ui5.YStack,
3557
+ {
3558
+ width: 24,
3559
+ height: 24,
3560
+ borderRadius: "$full",
3561
+ backgroundColor: "$backgroundSurface",
3562
+ alignItems: "center",
3563
+ justifyContent: "center",
3564
+ flexShrink: 0,
3565
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { fontSize: "$1", fontWeight: "700", children: index })
3566
+ }
3567
+ ),
3568
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { fontSize: "$3", fontWeight: "700", children: title })
3569
+ ] }),
3570
+ note && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { marginLeft: 32, fontSize: "$2", color: "$warning", fontStyle: "italic", lineHeight: "$3", children: note })
3564
3571
  ] });
3565
3572
  }
3566
3573
  function GenerateSignerKeyPanel({
@@ -3594,11 +3601,18 @@ function GenerateSignerKeyPanel({
3594
3601
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.YStack, { gap: "$2", children: [
3595
3602
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 1, title: "Open Antseed Desktop" }),
3596
3603
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 2, title: "Go to Profile \u2192 Signer" }),
3597
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 3, title: "Tap \u2191, paste your Signer Private Key, and save" })
3604
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3605
+ NumberedStep,
3606
+ {
3607
+ index: 3,
3608
+ title: "Back up your existing Signer Key",
3609
+ note: "\u26A0\uFE0F Tap \u2193 to back up your existing signer key. Importing a new signer key will replace it."
3610
+ }
3611
+ ),
3612
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 4, title: "Tap \u2191 to paste your Signer Key, then save." })
3598
3613
  ] }),
3599
3614
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AntseedSignerRow, { mode: "generate", showCaption: false }),
3600
3615
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AiCreditsStatusNotice, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { 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." }) }),
3601
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AiCreditsStatusNotice, { borderColor: "$warning", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { 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." }) }),
3602
3616
  onOpenApiSetup && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.XStack, { gap: "$2", alignItems: "center", children: [
3603
3617
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Icon, { name: "settings", size: "xs", color: "muted" }),
3604
3618
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.Text, { fontSize: "$2", tone: "soft", flex: 1, lineHeight: "$3", children: [
@@ -4250,18 +4264,18 @@ function CreditsManagementCard({ state, actions }) {
4250
4264
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui9.Card, { children: [
4251
4265
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui9.Heading, { level: 6, children: "AI Credits" }),
4252
4266
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
4253
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Total Credit (US$)", children: totalCreditDisplay !== null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatValueText, { fontSize: "$5", children: totalCreditDisplay }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui9.Spinner, { size: "sm" }) }),
4267
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Credit balance (US$)", children: totalCreditDisplay !== null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatValueText, { fontSize: "$5", children: totalCreditDisplay }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui9.Spinner, { size: "sm" }) }),
4254
4268
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Monthly Credit (US$)", children: monthlyStreamUsdDisplay ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatValueText, { fontSize: "$5", color: "$primary", children: [
4255
4269
  "~",
4256
4270
  monthlyStreamUsdDisplay
4257
4271
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatValueText, { fontSize: "$5", children: "\u2014" }) })
4258
4272
  ] }),
4259
4273
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
4260
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Total Deposited (G$)", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CompactGStatValue, { amount: totalGdDepositedG ?? "0.00" }) }),
4274
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Deposited (G$)", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CompactGStatValue, { amount: totalGdDepositedG ?? "0.00" }) }),
4261
4275
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Monthly Stream (G$)", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CompactGStatValue, { amount: monthlyStreamG ?? "0.00" }) })
4262
4276
  ] }),
4263
4277
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
4264
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Bonus Earned (US$)", children: totalBonusDisplay !== null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatValueText, { children: totalBonusDisplay }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui9.Spinner, { size: "sm" }) }),
4278
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Bonus (US$)", children: totalBonusDisplay !== null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatValueText, { children: totalBonusDisplay }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui9.Spinner, { size: "sm" }) }),
4265
4279
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Withdrawable (US$)", children: withdrawableDisplay !== null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatValueText, { children: withdrawableDisplay }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui9.Spinner, { size: "sm" }) })
4266
4280
  ] }),
4267
4281
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui9.YStack, { gap: "$1", width: "100%", children: [