@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/element.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3596,22 +3596,29 @@ function useCopyFeedback() {
|
|
|
3596
3596
|
|
|
3597
3597
|
// src/components/buy/GenerateSignerKeyPanel.tsx
|
|
3598
3598
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
3599
|
-
function NumberedStep({
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3599
|
+
function NumberedStep({
|
|
3600
|
+
index,
|
|
3601
|
+
title,
|
|
3602
|
+
note
|
|
3603
|
+
}) {
|
|
3604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.YStack, { gap: "$1", children: [
|
|
3605
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.XStack, { gap: "$2", alignItems: "center", children: [
|
|
3606
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3607
|
+
import_ui5.YStack,
|
|
3608
|
+
{
|
|
3609
|
+
width: 24,
|
|
3610
|
+
height: 24,
|
|
3611
|
+
borderRadius: "$full",
|
|
3612
|
+
backgroundColor: "$backgroundSurface",
|
|
3613
|
+
alignItems: "center",
|
|
3614
|
+
justifyContent: "center",
|
|
3615
|
+
flexShrink: 0,
|
|
3616
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { fontSize: "$1", fontWeight: "700", children: index })
|
|
3617
|
+
}
|
|
3618
|
+
),
|
|
3619
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { fontSize: "$3", fontWeight: "700", children: title })
|
|
3620
|
+
] }),
|
|
3621
|
+
note && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Text, { marginLeft: 32, fontSize: "$2", color: "$warning", fontStyle: "italic", lineHeight: "$3", children: note })
|
|
3615
3622
|
] });
|
|
3616
3623
|
}
|
|
3617
3624
|
function GenerateSignerKeyPanel({
|
|
@@ -3645,11 +3652,18 @@ function GenerateSignerKeyPanel({
|
|
|
3645
3652
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.YStack, { gap: "$2", children: [
|
|
3646
3653
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 1, title: "Open Antseed Desktop" }),
|
|
3647
3654
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 2, title: "Go to Profile \u2192 Signer" }),
|
|
3648
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3655
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3656
|
+
NumberedStep,
|
|
3657
|
+
{
|
|
3658
|
+
index: 3,
|
|
3659
|
+
title: "Back up your existing Signer Key",
|
|
3660
|
+
note: "\u26A0\uFE0F Tap \u2193 to back up your existing signer key. Importing a new signer key will replace it."
|
|
3661
|
+
}
|
|
3662
|
+
),
|
|
3663
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberedStep, { index: 4, title: "Tap \u2191 to paste your Signer Key, then save." })
|
|
3649
3664
|
] }),
|
|
3650
3665
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AntseedSignerRow, { mode: "generate", showCaption: false }),
|
|
3651
3666
|
/* @__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." }) }),
|
|
3652
|
-
/* @__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." }) }),
|
|
3653
3667
|
onOpenApiSetup && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.XStack, { gap: "$2", alignItems: "center", children: [
|
|
3654
3668
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui5.Icon, { name: "settings", size: "xs", color: "muted" }),
|
|
3655
3669
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_ui5.Text, { fontSize: "$2", tone: "soft", flex: 1, lineHeight: "$3", children: [
|
|
@@ -4301,18 +4315,18 @@ function CreditsManagementCard({ state, actions }) {
|
|
|
4301
4315
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui9.Card, { children: [
|
|
4302
4316
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui9.Heading, { level: 6, children: "AI Credits" }),
|
|
4303
4317
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
|
|
4304
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "
|
|
4318
|
+
/* @__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" }) }),
|
|
4305
4319
|
/* @__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: [
|
|
4306
4320
|
"~",
|
|
4307
4321
|
monthlyStreamUsdDisplay
|
|
4308
4322
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatValueText, { fontSize: "$5", children: "\u2014" }) })
|
|
4309
4323
|
] }),
|
|
4310
4324
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
|
|
4311
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "
|
|
4325
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Deposited (G$)", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CompactGStatValue, { amount: totalGdDepositedG ?? "0.00" }) }),
|
|
4312
4326
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Monthly Stream (G$)", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CompactGStatValue, { amount: monthlyStreamG ?? "0.00" }) })
|
|
4313
4327
|
] }),
|
|
4314
4328
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(StatRow, { children: [
|
|
4315
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatCell, { label: "Bonus
|
|
4329
|
+
/* @__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" }) }),
|
|
4316
4330
|
/* @__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" }) })
|
|
4317
4331
|
] }),
|
|
4318
4332
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui9.YStack, { gap: "$1", width: "100%", children: [
|