@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/{chunk-635NKGPL.js → chunk-ZDHB2OZ5.js} +36 -22
- package/dist/chunk-ZDHB2OZ5.js.map +1 -0
- package/dist/element.cjs +35 -21
- package/dist/element.cjs.map +1 -1
- package/dist/element.js +1 -1
- package/dist/index.cjs +35 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/mocked/index.cjs +35 -21
- package/dist/mocked/index.cjs.map +1 -1
- package/dist/mocked/index.js +1 -1
- package/dist/register.cjs +35 -21
- package/dist/register.cjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-635NKGPL.js.map +0 -1
package/dist/mocked/index.js
CHANGED
package/dist/register.cjs
CHANGED
|
@@ -3669,22 +3669,29 @@ var init_useCopyFeedback = __esm({
|
|
|
3669
3669
|
});
|
|
3670
3670
|
|
|
3671
3671
|
// src/components/buy/GenerateSignerKeyPanel.tsx
|
|
3672
|
-
function NumberedStep({
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3672
|
+
function NumberedStep({
|
|
3673
|
+
index,
|
|
3674
|
+
title,
|
|
3675
|
+
note
|
|
3676
|
+
}) {
|
|
3677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.YStack, { gap: "$1", children: [
|
|
3678
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.XStack, { gap: "$2", alignItems: "center", children: [
|
|
3679
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3680
|
+
import_ui5.YStack,
|
|
3681
|
+
{
|
|
3682
|
+
width: 24,
|
|
3683
|
+
height: 24,
|
|
3684
|
+
borderRadius: "$full",
|
|
3685
|
+
backgroundColor: "$backgroundSurface",
|
|
3686
|
+
alignItems: "center",
|
|
3687
|
+
justifyContent: "center",
|
|
3688
|
+
flexShrink: 0,
|
|
3689
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { fontSize: "$1", fontWeight: "700", children: index })
|
|
3690
|
+
}
|
|
3691
|
+
),
|
|
3692
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { fontSize: "$3", fontWeight: "700", children: title })
|
|
3693
|
+
] }),
|
|
3694
|
+
note && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { marginLeft: 32, fontSize: "$2", color: "$warning", fontStyle: "italic", lineHeight: "$3", children: note })
|
|
3688
3695
|
] });
|
|
3689
3696
|
}
|
|
3690
3697
|
function GenerateSignerKeyPanel({
|
|
@@ -3718,11 +3725,18 @@ function GenerateSignerKeyPanel({
|
|
|
3718
3725
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.YStack, { gap: "$2", children: [
|
|
3719
3726
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 1, title: "Open Antseed Desktop" }),
|
|
3720
3727
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 2, title: "Go to Profile \u2192 Signer" }),
|
|
3721
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3728
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3729
|
+
NumberedStep,
|
|
3730
|
+
{
|
|
3731
|
+
index: 3,
|
|
3732
|
+
title: "Back up your existing Signer Key",
|
|
3733
|
+
note: "\u26A0\uFE0F Tap \u2193 to back up your existing signer key. Importing a new signer key will replace it."
|
|
3734
|
+
}
|
|
3735
|
+
),
|
|
3736
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 4, title: "Tap \u2191 to paste your Signer Key, then save." })
|
|
3722
3737
|
] }),
|
|
3723
3738
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AntseedSignerRow, { mode: "generate", showCaption: false }),
|
|
3724
3739
|
/* @__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." }) }),
|
|
3725
|
-
/* @__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." }) }),
|
|
3726
3740
|
onOpenApiSetup && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.XStack, { gap: "$2", alignItems: "center", children: [
|
|
3727
3741
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Icon, { name: "settings", size: "xs", color: "muted" }),
|
|
3728
3742
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.Text, { fontSize: "$2", tone: "soft", flex: 1, lineHeight: "$3", children: [
|
|
@@ -4411,18 +4425,18 @@ function CreditsManagementCard({ state, actions }) {
|
|
|
4411
4425
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui9.Card, { children: [
|
|
4412
4426
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui9.Heading, { level: 6, children: "AI Credits" }),
|
|
4413
4427
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
|
|
4414
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "
|
|
4428
|
+
/* @__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" }) }),
|
|
4415
4429
|
/* @__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: [
|
|
4416
4430
|
"~",
|
|
4417
4431
|
monthlyStreamUsdDisplay
|
|
4418
4432
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatValueText, { fontSize: "$5", children: "\u2014" }) })
|
|
4419
4433
|
] }),
|
|
4420
4434
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
|
|
4421
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "
|
|
4435
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Deposited (G$)", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CompactGStatValue, { amount: totalGdDepositedG ?? "0.00" }) }),
|
|
4422
4436
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Monthly Stream (G$)", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CompactGStatValue, { amount: monthlyStreamG ?? "0.00" }) })
|
|
4423
4437
|
] }),
|
|
4424
4438
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
|
|
4425
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Bonus
|
|
4439
|
+
/* @__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" }) }),
|
|
4426
4440
|
/* @__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" }) })
|
|
4427
4441
|
] }),
|
|
4428
4442
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui9.YStack, { gap: "$1", width: "100%", children: [
|