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