@medialane/ui 0.258.0 → 0.259.0

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.
Files changed (103) hide show
  1. package/dist/components/comments-section.cjs +5 -4
  2. package/dist/components/comments-section.cjs.map +1 -1
  3. package/dist/components/comments-section.js +5 -4
  4. package/dist/components/comments-section.js.map +1 -1
  5. package/dist/components/launchpad/coin-create.cjs +9 -7
  6. package/dist/components/launchpad/coin-create.cjs.map +1 -1
  7. package/dist/components/launchpad/coin-create.js +9 -7
  8. package/dist/components/launchpad/coin-create.js.map +1 -1
  9. package/dist/components/launchpad/collection-create-form.cjs +11 -14
  10. package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
  11. package/dist/components/launchpad/collection-create-form.js +12 -15
  12. package/dist/components/launchpad/collection-create-form.js.map +1 -1
  13. package/dist/components/launchpad/collection-create-presets.cjs +8 -8
  14. package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
  15. package/dist/components/launchpad/collection-create-presets.d.cts +2 -1
  16. package/dist/components/launchpad/collection-create-presets.d.ts +2 -1
  17. package/dist/components/launchpad/collection-create-presets.js +8 -8
  18. package/dist/components/launchpad/collection-create-presets.js.map +1 -1
  19. package/dist/components/launchpad/edition-mint.cjs +9 -7
  20. package/dist/components/launchpad/edition-mint.cjs.map +1 -1
  21. package/dist/components/launchpad/edition-mint.js +9 -7
  22. package/dist/components/launchpad/edition-mint.js.map +1 -1
  23. package/dist/components/launchpad/pop-create.cjs +5 -6
  24. package/dist/components/launchpad/pop-create.cjs.map +1 -1
  25. package/dist/components/launchpad/pop-create.js +5 -6
  26. package/dist/components/launchpad/pop-create.js.map +1 -1
  27. package/dist/components/launchpad/remix-mint.cjs +9 -7
  28. package/dist/components/launchpad/remix-mint.cjs.map +1 -1
  29. package/dist/components/launchpad/remix-mint.js +9 -7
  30. package/dist/components/launchpad/remix-mint.js.map +1 -1
  31. package/dist/components/launchpad/single-edition-mint.cjs +9 -7
  32. package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
  33. package/dist/components/launchpad/single-edition-mint.js +9 -7
  34. package/dist/components/launchpad/single-edition-mint.js.map +1 -1
  35. package/dist/components/launchpad/sponsorship-create.cjs +5 -6
  36. package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
  37. package/dist/components/launchpad/sponsorship-create.js +5 -6
  38. package/dist/components/launchpad/sponsorship-create.js.map +1 -1
  39. package/dist/components/launchpad/tier-mint-form.cjs +5 -6
  40. package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
  41. package/dist/components/launchpad/tier-mint-form.js +5 -6
  42. package/dist/components/launchpad/tier-mint-form.js.map +1 -1
  43. package/dist/components/launchpad/tier-mint-presets.cjs +2 -2
  44. package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
  45. package/dist/components/launchpad/tier-mint-presets.d.cts +2 -1
  46. package/dist/components/launchpad/tier-mint-presets.d.ts +2 -1
  47. package/dist/components/launchpad/tier-mint-presets.js +2 -2
  48. package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
  49. package/dist/components/marketplace-dialog-primitives.cjs +0 -30
  50. package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
  51. package/dist/components/marketplace-dialog-primitives.d.cts +1 -12
  52. package/dist/components/marketplace-dialog-primitives.d.ts +1 -12
  53. package/dist/components/marketplace-dialog-primitives.js +1 -30
  54. package/dist/components/marketplace-dialog-primitives.js.map +1 -1
  55. package/dist/components/pop-claim-button.cjs +5 -4
  56. package/dist/components/pop-claim-button.cjs.map +1 -1
  57. package/dist/components/pop-claim-button.js +5 -4
  58. package/dist/components/pop-claim-button.js.map +1 -1
  59. package/dist/components/pop-manage-page.cjs +2 -2
  60. package/dist/components/pop-manage-page.cjs.map +1 -1
  61. package/dist/components/pop-manage-page.js +2 -2
  62. package/dist/components/pop-manage-page.js.map +1 -1
  63. package/dist/components/portfolio-sponsorships.cjs +2 -2
  64. package/dist/components/portfolio-sponsorships.cjs.map +1 -1
  65. package/dist/components/portfolio-sponsorships.js +2 -2
  66. package/dist/components/portfolio-sponsorships.js.map +1 -1
  67. package/dist/components/sponsorship-offer-page.cjs +5 -4
  68. package/dist/components/sponsorship-offer-page.cjs.map +1 -1
  69. package/dist/components/sponsorship-offer-page.js +5 -4
  70. package/dist/components/sponsorship-offer-page.js.map +1 -1
  71. package/dist/components/{creation-success.cjs → transaction-success.cjs} +14 -15
  72. package/dist/components/transaction-success.cjs.map +1 -0
  73. package/dist/components/transaction-success.d.cts +20 -0
  74. package/dist/components/transaction-success.d.ts +20 -0
  75. package/dist/components/{creation-success.js → transaction-success.js} +10 -11
  76. package/dist/components/transaction-success.js.map +1 -0
  77. package/dist/components/transfer-collection-ownership.cjs +5 -4
  78. package/dist/components/transfer-collection-ownership.cjs.map +1 -1
  79. package/dist/components/transfer-collection-ownership.js +5 -4
  80. package/dist/components/transfer-collection-ownership.js.map +1 -1
  81. package/dist/index.cjs +6 -8
  82. package/dist/index.cjs.map +1 -1
  83. package/dist/index.d.cts +3 -3
  84. package/dist/index.d.ts +3 -3
  85. package/dist/index.js +4 -6
  86. package/dist/index.js.map +1 -1
  87. package/dist/utils/success-messages.cjs +54 -0
  88. package/dist/utils/success-messages.cjs.map +1 -0
  89. package/dist/utils/success-messages.d.cts +31 -0
  90. package/dist/utils/success-messages.d.ts +31 -0
  91. package/dist/utils/success-messages.js +30 -0
  92. package/dist/utils/success-messages.js.map +1 -0
  93. package/package.json +3 -3
  94. package/dist/components/creation-success.cjs.map +0 -1
  95. package/dist/components/creation-success.d.cts +0 -20
  96. package/dist/components/creation-success.d.ts +0 -20
  97. package/dist/components/creation-success.js.map +0 -1
  98. package/dist/components/transaction-done.cjs +0 -46
  99. package/dist/components/transaction-done.cjs.map +0 -1
  100. package/dist/components/transaction-done.d.cts +0 -18
  101. package/dist/components/transaction-done.d.ts +0 -18
  102. package/dist/components/transaction-done.js +0 -22
  103. package/dist/components/transaction-done.js.map +0 -1
@@ -27,17 +27,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var creation_success_exports = {};
31
- __export(creation_success_exports, {
32
- CreationSuccess: () => CreationSuccess
30
+ var transaction_success_exports = {};
31
+ __export(transaction_success_exports, {
32
+ TransactionSuccess: () => TransactionSuccess
33
33
  });
34
- module.exports = __toCommonJS(creation_success_exports);
34
+ module.exports = __toCommonJS(transaction_success_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_lucide_react = require("lucide-react");
37
37
  var import_link = __toESM(require("./link.js"), 1);
38
38
  var import_image = __toESM(require("./image.js"), 1);
39
39
  var import_button = require("./button.js");
40
- function CreationSuccess({ name, image, caption, primary, secondary, onAgain, againLabel, children }) {
40
+ var import_marketplace_dialog_primitives = require("./marketplace-dialog-primitives.js");
41
+ var import_explorer_url = require("../utils/explorer-url.js");
42
+ function TransactionSuccess({ name, image, title, description, txHash, actions, children }) {
43
+ const shown = actions.filter((a) => !!a);
41
44
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex w-full flex-col items-center gap-6 py-2 text-center", children: [
42
45
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative", children: [
43
46
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative h-40 w-40 overflow-hidden rounded-3xl border border-border bg-muted shadow-lg", children: image ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: image, alt: name, fill: true, sizes: "160px", unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex h-full w-full items-center justify-center text-muted-foreground/40", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ImageIcon, { className: "h-10 w-10" }) }) }),
@@ -45,20 +48,16 @@ function CreationSuccess({ name, image, caption, primary, secondary, onAgain, ag
45
48
  ] }),
46
49
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "w-full min-w-0 space-y-1", children: [
47
50
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "line-clamp-2 break-words text-xl font-bold", children: name }),
48
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: caption })
49
- ] }),
50
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
51
- (primary || secondary) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-2 sm:flex-row", children: [
52
- primary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: primary.href, children: primary.label }) }),
53
- secondary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: true, variant: "outline", className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: secondary.href, children: secondary.label }) })
54
- ] }),
55
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "ghost", size: "sm", className: "text-muted-foreground", onClick: onAgain, children: againLabel })
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-medium", children: title }),
52
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "break-words text-sm text-muted-foreground", children: description }),
53
+ txHash && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_marketplace_dialog_primitives.MarketplaceTxLink, { txHash, explorerUrl: import_explorer_url.EXPLORER_URL, className: "pt-1" })
56
54
  ] }),
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full flex-col gap-2", children: shown.map((action, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { asChild: !!action.href, variant: i === 0 ? "default" : "outline", className: "w-full", onClick: action.onClick, children: action.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: action.href, children: action.label }) : action.label }, action.label)) }),
57
56
  children
58
57
  ] });
59
58
  }
60
59
  // Annotate the CommonJS export names for ESM import in node:
61
60
  0 && (module.exports = {
62
- CreationSuccess
61
+ TransactionSuccess
63
62
  });
64
- //# sourceMappingURL=creation-success.cjs.map
63
+ //# sourceMappingURL=transaction-success.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/transaction-success.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Check, ImageIcon } from \"lucide-react\";\nimport Link from \"./link.js\";\nimport Image from \"./image.js\";\nimport { Button } from \"./button.js\";\nimport { MarketplaceTxLink } from \"./marketplace-dialog-primitives.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\n\nexport interface TransactionSuccessAction {\n label: string;\n href?: string;\n onClick?: () => void;\n}\n\nexport interface TransactionSuccessProps {\n name: string;\n image?: string | null;\n title: string;\n description?: ReactNode;\n txHash?: string | null;\n actions: Array<TransactionSuccessAction | undefined>;\n children?: ReactNode;\n}\n\nexport function TransactionSuccess({ name, image, title, description, txHash, actions, children }: TransactionSuccessProps) {\n const shown = actions.filter((a): a is TransactionSuccessAction => !!a);\n return (\n <div className=\"flex w-full flex-col items-center gap-6 py-2 text-center\">\n <div className=\"relative\">\n <div className=\"relative h-40 w-40 overflow-hidden rounded-3xl border border-border bg-muted shadow-lg\">\n {image ? (\n <Image src={image} alt={name} fill sizes=\"160px\" unoptimized className=\"object-cover\" />\n ) : (\n <div className=\"flex h-full w-full items-center justify-center text-muted-foreground/40\">\n <ImageIcon className=\"h-10 w-10\" />\n </div>\n )}\n </div>\n <span className=\"absolute -bottom-2 -right-2 flex h-9 w-9 items-center justify-center rounded-full bg-emerald-500 text-white ring-4 ring-background\">\n <Check className=\"h-5 w-5\" strokeWidth={3} />\n </span>\n </div>\n\n <div className=\"w-full min-w-0 space-y-1\">\n <p className=\"line-clamp-2 break-words text-xl font-bold\">{name}</p>\n <p className=\"font-medium\">{title}</p>\n {description && <div className=\"break-words text-sm text-muted-foreground\">{description}</div>}\n {txHash && <MarketplaceTxLink txHash={txHash} explorerUrl={EXPLORER_URL} className=\"pt-1\" />}\n </div>\n\n <div className=\"flex w-full flex-col gap-2\">\n {shown.map((action, i) => (\n <Button key={action.label} asChild={!!action.href} variant={i === 0 ? \"default\" : \"outline\"} className=\"w-full\" onClick={action.onClick}>\n {action.href ? <Link href={action.href}>{action.label}</Link> : action.label}\n </Button>\n ))}\n </div>\n\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BM;AA3BN,0BAAiC;AACjC,kBAAiB;AACjB,mBAAkB;AAClB,oBAAuB;AACvB,2CAAkC;AAClC,0BAA6B;AAkBtB,SAAS,mBAAmB,EAAE,MAAM,OAAO,OAAO,aAAa,QAAQ,SAAS,SAAS,GAA4B;AAC1H,QAAM,QAAQ,QAAQ,OAAO,CAAC,MAAqC,CAAC,CAAC,CAAC;AACtE,SACE,6CAAC,SAAI,WAAU,4DACb;AAAA,iDAAC,SAAI,WAAU,YACb;AAAA,kDAAC,SAAI,WAAU,0FACZ,kBACC,4CAAC,aAAAA,SAAA,EAAM,KAAK,OAAO,KAAK,MAAM,MAAI,MAAC,OAAM,SAAQ,aAAW,MAAC,WAAU,gBAAe,IAEtF,4CAAC,SAAI,WAAU,2EACb,sDAAC,iCAAU,WAAU,aAAY,GACnC,GAEJ;AAAA,MACA,4CAAC,UAAK,WAAU,sIACd,sDAAC,6BAAM,WAAU,WAAU,aAAa,GAAG,GAC7C;AAAA,OACF;AAAA,IAEA,6CAAC,SAAI,WAAU,4BACb;AAAA,kDAAC,OAAE,WAAU,8CAA8C,gBAAK;AAAA,MAChE,4CAAC,OAAE,WAAU,eAAe,iBAAM;AAAA,MACjC,eAAe,4CAAC,SAAI,WAAU,6CAA6C,uBAAY;AAAA,MACvF,UAAU,4CAAC,0DAAkB,QAAgB,aAAa,kCAAc,WAAU,QAAO;AAAA,OAC5F;AAAA,IAEA,4CAAC,SAAI,WAAU,8BACZ,gBAAM,IAAI,CAAC,QAAQ,MAClB,4CAAC,wBAA0B,SAAS,CAAC,CAAC,OAAO,MAAM,SAAS,MAAM,IAAI,YAAY,WAAW,WAAU,UAAS,SAAS,OAAO,SAC7H,iBAAO,OAAO,4CAAC,YAAAC,SAAA,EAAK,MAAM,OAAO,MAAO,iBAAO,OAAM,IAAU,OAAO,SAD5D,OAAO,KAEpB,CACD,GACH;AAAA,IAEC;AAAA,KACH;AAEJ;","names":["Image","Link"]}
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface TransactionSuccessAction {
5
+ label: string;
6
+ href?: string;
7
+ onClick?: () => void;
8
+ }
9
+ interface TransactionSuccessProps {
10
+ name: string;
11
+ image?: string | null;
12
+ title: string;
13
+ description?: ReactNode;
14
+ txHash?: string | null;
15
+ actions: Array<TransactionSuccessAction | undefined>;
16
+ children?: ReactNode;
17
+ }
18
+ declare function TransactionSuccess({ name, image, title, description, txHash, actions, children }: TransactionSuccessProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { TransactionSuccess, type TransactionSuccessAction, type TransactionSuccessProps };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface TransactionSuccessAction {
5
+ label: string;
6
+ href?: string;
7
+ onClick?: () => void;
8
+ }
9
+ interface TransactionSuccessProps {
10
+ name: string;
11
+ image?: string | null;
12
+ title: string;
13
+ description?: ReactNode;
14
+ txHash?: string | null;
15
+ actions: Array<TransactionSuccessAction | undefined>;
16
+ children?: ReactNode;
17
+ }
18
+ declare function TransactionSuccess({ name, image, title, description, txHash, actions, children }: TransactionSuccessProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { TransactionSuccess, type TransactionSuccessAction, type TransactionSuccessProps };
@@ -4,7 +4,10 @@ import { Check, ImageIcon } from "lucide-react";
4
4
  import Link from "./link.js";
5
5
  import Image from "./image.js";
6
6
  import { Button } from "./button.js";
7
- function CreationSuccess({ name, image, caption, primary, secondary, onAgain, againLabel, children }) {
7
+ import { MarketplaceTxLink } from "./marketplace-dialog-primitives.js";
8
+ import { EXPLORER_URL } from "../utils/explorer-url.js";
9
+ function TransactionSuccess({ name, image, title, description, txHash, actions, children }) {
10
+ const shown = actions.filter((a) => !!a);
8
11
  return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col items-center gap-6 py-2 text-center", children: [
9
12
  /* @__PURE__ */ jsxs("div", { className: "relative", children: [
10
13
  /* @__PURE__ */ jsx("div", { className: "relative h-40 w-40 overflow-hidden rounded-3xl border border-border bg-muted shadow-lg", children: image ? /* @__PURE__ */ jsx(Image, { src: image, alt: name, fill: true, sizes: "160px", unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center text-muted-foreground/40", children: /* @__PURE__ */ jsx(ImageIcon, { className: "h-10 w-10" }) }) }),
@@ -12,19 +15,15 @@ function CreationSuccess({ name, image, caption, primary, secondary, onAgain, ag
12
15
  ] }),
13
16
  /* @__PURE__ */ jsxs("div", { className: "w-full min-w-0 space-y-1", children: [
14
17
  /* @__PURE__ */ jsx("p", { className: "line-clamp-2 break-words text-xl font-bold", children: name }),
15
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: caption })
16
- ] }),
17
- /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-2", children: [
18
- (primary || secondary) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 sm:flex-row", children: [
19
- primary && /* @__PURE__ */ jsx(Button, { asChild: true, className: "flex-1", children: /* @__PURE__ */ jsx(Link, { href: primary.href, children: primary.label }) }),
20
- secondary && /* @__PURE__ */ jsx(Button, { asChild: true, variant: "outline", className: "flex-1", children: /* @__PURE__ */ jsx(Link, { href: secondary.href, children: secondary.label }) })
21
- ] }),
22
- /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", className: "text-muted-foreground", onClick: onAgain, children: againLabel })
18
+ /* @__PURE__ */ jsx("p", { className: "font-medium", children: title }),
19
+ description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm text-muted-foreground", children: description }),
20
+ txHash && /* @__PURE__ */ jsx(MarketplaceTxLink, { txHash, explorerUrl: EXPLORER_URL, className: "pt-1" })
23
21
  ] }),
22
+ /* @__PURE__ */ jsx("div", { className: "flex w-full flex-col gap-2", children: shown.map((action, i) => /* @__PURE__ */ jsx(Button, { asChild: !!action.href, variant: i === 0 ? "default" : "outline", className: "w-full", onClick: action.onClick, children: action.href ? /* @__PURE__ */ jsx(Link, { href: action.href, children: action.label }) : action.label }, action.label)) }),
24
23
  children
25
24
  ] });
26
25
  }
27
26
  export {
28
- CreationSuccess
27
+ TransactionSuccess
29
28
  };
30
- //# sourceMappingURL=creation-success.js.map
29
+ //# sourceMappingURL=transaction-success.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/transaction-success.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Check, ImageIcon } from \"lucide-react\";\nimport Link from \"./link.js\";\nimport Image from \"./image.js\";\nimport { Button } from \"./button.js\";\nimport { MarketplaceTxLink } from \"./marketplace-dialog-primitives.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\n\nexport interface TransactionSuccessAction {\n label: string;\n href?: string;\n onClick?: () => void;\n}\n\nexport interface TransactionSuccessProps {\n name: string;\n image?: string | null;\n title: string;\n description?: ReactNode;\n txHash?: string | null;\n actions: Array<TransactionSuccessAction | undefined>;\n children?: ReactNode;\n}\n\nexport function TransactionSuccess({ name, image, title, description, txHash, actions, children }: TransactionSuccessProps) {\n const shown = actions.filter((a): a is TransactionSuccessAction => !!a);\n return (\n <div className=\"flex w-full flex-col items-center gap-6 py-2 text-center\">\n <div className=\"relative\">\n <div className=\"relative h-40 w-40 overflow-hidden rounded-3xl border border-border bg-muted shadow-lg\">\n {image ? (\n <Image src={image} alt={name} fill sizes=\"160px\" unoptimized className=\"object-cover\" />\n ) : (\n <div className=\"flex h-full w-full items-center justify-center text-muted-foreground/40\">\n <ImageIcon className=\"h-10 w-10\" />\n </div>\n )}\n </div>\n <span className=\"absolute -bottom-2 -right-2 flex h-9 w-9 items-center justify-center rounded-full bg-emerald-500 text-white ring-4 ring-background\">\n <Check className=\"h-5 w-5\" strokeWidth={3} />\n </span>\n </div>\n\n <div className=\"w-full min-w-0 space-y-1\">\n <p className=\"line-clamp-2 break-words text-xl font-bold\">{name}</p>\n <p className=\"font-medium\">{title}</p>\n {description && <div className=\"break-words text-sm text-muted-foreground\">{description}</div>}\n {txHash && <MarketplaceTxLink txHash={txHash} explorerUrl={EXPLORER_URL} className=\"pt-1\" />}\n </div>\n\n <div className=\"flex w-full flex-col gap-2\">\n {shown.map((action, i) => (\n <Button key={action.label} asChild={!!action.href} variant={i === 0 ? \"default\" : \"outline\"} className=\"w-full\" onClick={action.onClick}>\n {action.href ? <Link href={action.href}>{action.label}</Link> : action.label}\n </Button>\n ))}\n </div>\n\n {children}\n </div>\n );\n}\n"],"mappings":";AA8BM,SAGM,KAHN;AA3BN,SAAS,OAAO,iBAAiB;AACjC,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAS,cAAc;AACvB,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAkBtB,SAAS,mBAAmB,EAAE,MAAM,OAAO,OAAO,aAAa,QAAQ,SAAS,SAAS,GAA4B;AAC1H,QAAM,QAAQ,QAAQ,OAAO,CAAC,MAAqC,CAAC,CAAC,CAAC;AACtE,SACE,qBAAC,SAAI,WAAU,4DACb;AAAA,yBAAC,SAAI,WAAU,YACb;AAAA,0BAAC,SAAI,WAAU,0FACZ,kBACC,oBAAC,SAAM,KAAK,OAAO,KAAK,MAAM,MAAI,MAAC,OAAM,SAAQ,aAAW,MAAC,WAAU,gBAAe,IAEtF,oBAAC,SAAI,WAAU,2EACb,8BAAC,aAAU,WAAU,aAAY,GACnC,GAEJ;AAAA,MACA,oBAAC,UAAK,WAAU,sIACd,8BAAC,SAAM,WAAU,WAAU,aAAa,GAAG,GAC7C;AAAA,OACF;AAAA,IAEA,qBAAC,SAAI,WAAU,4BACb;AAAA,0BAAC,OAAE,WAAU,8CAA8C,gBAAK;AAAA,MAChE,oBAAC,OAAE,WAAU,eAAe,iBAAM;AAAA,MACjC,eAAe,oBAAC,SAAI,WAAU,6CAA6C,uBAAY;AAAA,MACvF,UAAU,oBAAC,qBAAkB,QAAgB,aAAa,cAAc,WAAU,QAAO;AAAA,OAC5F;AAAA,IAEA,oBAAC,SAAI,WAAU,8BACZ,gBAAM,IAAI,CAAC,QAAQ,MAClB,oBAAC,UAA0B,SAAS,CAAC,CAAC,OAAO,MAAM,SAAS,MAAM,IAAI,YAAY,WAAW,WAAU,UAAS,SAAS,OAAO,SAC7H,iBAAO,OAAO,oBAAC,QAAK,MAAM,OAAO,MAAO,iBAAO,OAAM,IAAU,OAAO,SAD5D,OAAO,KAEpB,CACD,GACH;AAAA,IAEC;AAAA,KACH;AAEJ;","names":[]}
@@ -33,7 +33,7 @@ var import_label = require("./label.js");
33
33
  var import_marketplace_dialog_primitives = require("./marketplace-dialog-primitives.js");
34
34
  var import_medialane_app = require("./medialane-app.js");
35
35
  var import_transaction_dialog = require("./transaction-dialog.js");
36
- var import_transaction_done = require("./transaction-done.js");
36
+ var import_transaction_success = require("./transaction-success.js");
37
37
  var import_address = require("../utils/address.js");
38
38
  var import_run_intent_calls = require("../utils/run-intent-calls.js");
39
39
  var import_use_transaction = require("../utils/use-transaction.js");
@@ -117,15 +117,16 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
117
117
  ] })
118
118
  ] }) }),
119
119
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: "Transfer ownership", workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
120
- import_transaction_done.TransactionDone,
120
+ import_transaction_success.TransactionSuccess,
121
121
  {
122
- tx,
123
122
  name: collectionName ?? "Collection",
124
123
  title: "Ownership transferred",
125
124
  description: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "tabular-nums", children: [
126
125
  "New owner: ",
127
126
  (0, import_address.shortenAddress)(trimmed)
128
- ] })
127
+ ] }),
128
+ txHash: tx.txHash,
129
+ actions: [{ label: "Done", onClick: tx.reset }]
129
130
  }
130
131
  ) })
131
132
  ] });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionDone } from \"./transaction-done.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().api.intents.create(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected.</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel=\"Back\"\n onSecondary={() => setConfirming(false)}\n primaryLabel=\"Transfer ownership\"\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">Transfer collection ownership</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">New owner address</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">Not a valid Starknet address.</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">This is already the current owner.</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n Cancel\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n Continue\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title=\"Transfer ownership\" workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionDone\n tx={tx}\n name={collectionName ?? \"Collection\"}\n title=\"Ownership transferred\"\n description={<span className=\"tabular-nums\">New owner: {shortenAddress(trimmed)}</span>}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsDI;AApDJ,mBAAyB;AACzB,0BAA6B;AAC7B,iBAAiC;AACjC,oBAAuB;AACvB,oBAAsE;AACtE,mBAAsB;AACtB,mBAAsB;AACtB,2CAAuC;AACvC,2BAAgC;AAChC,gCAAkC;AAClC,8BAAgC;AAChC,qBAA+B;AAC/B,8BAA+B;AAC/B,6BAA+B;AASxB,SAAS,4BAA4B,EAAE,cAAc,cAAc,gBAAgB,cAAc,GAAqC;AAC3I,QAAM,UAAM,sCAAgB;AAC5B,QAAM,SAAK,uCAAe;AAC1B,QAAM,CAAC,MAAM,OAAO,QAAI,uBAAS,KAAK;AACtC,QAAM,CAAC,YAAY,aAAa,QAAI,uBAAS,KAAK;AAClD,QAAM,CAAC,UAAU,WAAW,QAAI,uBAAS,EAAE;AAE3C,QAAM,UAAU,SAAS,KAAK;AAC9B,QAAM,UAAU,wBAAwB,KAAK,OAAO;AACpD,QAAM,YAAY,eAAW,6BAAiB,YAAY,OAAO,UAAM,6BAAiB,YAAY,YAAY;AAE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;AAAA,WAChE;AAAA,QACA,4CAAC,OAAE,WAAU,iCAAgC,oIAE7C;AAAA,QACA,6CAAC,SAAI,WAAU,aACb;AAAA,sDAAC,sBAAM,SAAQ,aAAY,+BAAiB;AAAA,UAC5C;AAAA,YAAC;AAAA;AAAA,cACC,IAAG;AAAA,cACH,aAAY;AAAA,cACZ,OAAO;AAAA,cACP,UAAU,CAAC,MAAM,YAAY,EAAE,OAAO,KAAK;AAAA,cAC3C,WAAU;AAAA,cACV,YAAY;AAAA,cACZ,cAAa;AAAA;AAAA,UACf;AAAA,UACC,WAAW,CAAC,WAAW,4CAAC,OAAE,WAAU,wBAAuB,2CAA6B;AAAA,UACxF,aAAa,4CAAC,OAAE,WAAU,0BAAyB,gDAAkC;AAAA,WACxF;AAAA,QACA,6CAAC,SAAI,WAAU,mBACb;AAAA,sDAAC,wBAAO,SAAQ,SAAQ,WAAU,UAAS,SAAS,OAAO,oBAE3D;AAAA,UACA,4CAAC,wBAAO,WAAU,UAAS,SAAS,MAAM,cAAc,IAAI,GAAG,UAAU,CAAC,WAAW,aAAa,CAAC,IAAI,eAAe,sBAEtH;AAAA,WACF;AAAA,SACF;AAAA,OAEJ,GACF;AAAA,IAEA,4CAAC,+CAAkB,IAAQ,OAAM,sBAAqB,cAAa,gCAA0B,gBAAe,oBAC1G;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,MAAM,kBAAkB;AAAA,QACxB,OAAM;AAAA,QACN,aAAa,6CAAC,UAAK,WAAU,gBAAe;AAAA;AAAA,cAAY,+BAAe,OAAO;AAAA,WAAE;AAAA;AAAA,IAClF,GACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().api.intents.create(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected.</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel=\"Back\"\n onSecondary={() => setConfirming(false)}\n primaryLabel=\"Transfer ownership\"\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">Transfer collection ownership</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">New owner address</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">Not a valid Starknet address.</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">This is already the current owner.</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n Cancel\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n Continue\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title=\"Transfer ownership\" workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n title=\"Ownership transferred\"\n description={<span className=\"tabular-nums\">New owner: {shortenAddress(trimmed)}</span>}\n txHash={tx.txHash}\n actions={[{ label: \"Done\", onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;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wBAAO,WAAU,UAAS,SAAS,MAAM,cAAc,IAAI,GAAG,UAAU,CAAC,WAAW,aAAa,CAAC,IAAI,eAAe,sBAEtH;AAAA,WACF;AAAA,SACF;AAAA,OAEJ,GACF;AAAA,IAEA,4CAAC,+CAAkB,IAAQ,OAAM,sBAAqB,cAAa,gCAA0B,gBAAe,oBAC1G;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,kBAAkB;AAAA,QACxB,OAAM;AAAA,QACN,aAAa,6CAAC,UAAK,WAAU,gBAAe;AAAA;AAAA,cAAY,+BAAe,OAAO;AAAA,WAAE;AAAA,QAChF,QAAQ,GAAG;AAAA,QACX,SAAS,CAAC,EAAE,OAAO,QAAQ,SAAS,GAAG,MAAM,CAAC;AAAA;AAAA,IAChD,GACF;AAAA,KACF;AAEJ;","names":[]}
@@ -10,7 +10,7 @@ import { Label } from "./label.js";
10
10
  import { MarketplaceConfirmStep } from "./marketplace-dialog-primitives.js";
11
11
  import { useMedialaneApp } from "./medialane-app.js";
12
12
  import { TransactionDialog } from "./transaction-dialog.js";
13
- import { TransactionDone } from "./transaction-done.js";
13
+ import { TransactionSuccess } from "./transaction-success.js";
14
14
  import { shortenAddress } from "../utils/address.js";
15
15
  import { runIntentCalls } from "../utils/run-intent-calls.js";
16
16
  import { useTransaction } from "../utils/use-transaction.js";
@@ -94,15 +94,16 @@ function TransferCollectionOwnership({ collectionId, currentOwner, collectionNam
94
94
  ] })
95
95
  ] }) }),
96
96
  /* @__PURE__ */ jsx(TransactionDialog, { tx, title: "Transfer ownership", workingLabel: "Transferring ownership\u2026", firstStepLabel: "Prepare transfer", children: /* @__PURE__ */ jsx(
97
- TransactionDone,
97
+ TransactionSuccess,
98
98
  {
99
- tx,
100
99
  name: collectionName ?? "Collection",
101
100
  title: "Ownership transferred",
102
101
  description: /* @__PURE__ */ jsxs("span", { className: "tabular-nums", children: [
103
102
  "New owner: ",
104
103
  shortenAddress(trimmed)
105
- ] })
104
+ ] }),
105
+ txHash: tx.txHash,
106
+ actions: [{ label: "Done", onClick: tx.reset }]
106
107
  }
107
108
  ) })
108
109
  ] });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionDone } from \"./transaction-done.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().api.intents.create(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected.</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel=\"Back\"\n onSecondary={() => setConfirming(false)}\n primaryLabel=\"Transfer ownership\"\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">Transfer collection ownership</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">New owner address</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">Not a valid Starknet address.</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">This is already the current owner.</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n Cancel\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n Continue\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title=\"Transfer ownership\" workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionDone\n tx={tx}\n name={collectionName ?? \"Collection\"}\n title=\"Ownership transferred\"\n description={<span className=\"tabular-nums\">New owner: {shortenAddress(trimmed)}</span>}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";AAsDI,mBAEI,KADF,YADF;AApDJ,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,cAAc;AACvB,SAAS,QAAQ,eAAe,mBAAmB,mBAAmB;AACtE,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,8BAA8B;AACvC,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AASxB,SAAS,4BAA4B,EAAE,cAAc,cAAc,gBAAgB,cAAc,GAAqC;AAC3I,QAAM,MAAM,gBAAgB;AAC5B,QAAM,KAAK,eAAe;AAC1B,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,KAAK;AAClD,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,EAAE;AAE3C,QAAM,UAAU,SAAS,KAAK;AAC9B,QAAM,UAAU,wBAAwB,KAAK,OAAO;AACpD,QAAM,YAAY,WAAW,iBAAiB,YAAY,OAAO,MAAM,iBAAiB,YAAY,YAAY;AAEhH,QAAM,QAAQ,MAAM;AAClB,YAAQ,KAAK;AACb,kBAAc,KAAK;AAAA,EACrB;AAEA,QAAM,WAAW,MAAM;AACrB,UAAM;AACN,SAAK,GACF,IAAI,OAAO,WAAW;AACrB,YAAM;AAAA,QAAe;AAAA,QAAQ,MAC3B,IAAI,UAAU,EAAE,IAAI,QAAQ,OAAO,iCAAiC,EAAE,OAAO,OAAO,SAAS,cAAc,OAAO,YAAY,GAAG,UAAU,QAAQ,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V,YAAY;AAAA,cACZ,cAAa;AAAA;AAAA,UACf;AAAA,UACC,WAAW,CAAC,WAAW,oBAAC,OAAE,WAAU,wBAAuB,2CAA6B;AAAA,UACxF,aAAa,oBAAC,OAAE,WAAU,0BAAyB,gDAAkC;AAAA,WACxF;AAAA,QACA,qBAAC,SAAI,WAAU,mBACb;AAAA,8BAAC,UAAO,SAAQ,SAAQ,WAAU,UAAS,SAAS,OAAO,oBAE3D;AAAA,UACA,oBAAC,UAAO,WAAU,UAAS,SAAS,MAAM,cAAc,IAAI,GAAG,UAAU,CAAC,WAAW,aAAa,CAAC,IAAI,eAAe,sBAEtH;AAAA,WACF;AAAA,SACF;AAAA,OAEJ,GACF;AAAA,IAEA,oBAAC,qBAAkB,IAAQ,OAAM,sBAAqB,cAAa,gCAA0B,gBAAe,oBAC1G;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,MAAM,kBAAkB;AAAA,QACxB,OAAM;AAAA,QACN,aAAa,qBAAC,UAAK,WAAU,gBAAe;AAAA;AAAA,UAAY,eAAe,OAAO;AAAA,WAAE;AAAA;AAAA,IAClF,GACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/transfer-collection-ownership.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { UserRoundCog } from \"lucide-react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"./dialog.js\";\nimport { Input } from \"./input.js\";\nimport { Label } from \"./label.js\";\nimport { MarketplaceConfirmStep } from \"./marketplace-dialog-primitives.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { shortenAddress } from \"../utils/address.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransferCollectionOwnershipProps {\n collectionId: string;\n currentOwner: string;\n collectionName?: string | null;\n onTransferred?: () => void;\n}\n\nexport function TransferCollectionOwnership({ collectionId, currentOwner, collectionName, onTransferred }: TransferCollectionOwnershipProps) {\n const app = useMedialaneApp();\n const tx = useTransaction();\n const [open, setOpen] = useState(false);\n const [confirming, setConfirming] = useState(false);\n const [newOwner, setNewOwner] = useState(\"\");\n\n const trimmed = newOwner.trim();\n const isValid = /^0x[0-9a-fA-F]{1,64}$/.test(trimmed);\n const wouldNoop = isValid && normalizeAddress(\"STARKNET\", trimmed) === normalizeAddress(\"STARKNET\", currentOwner);\n\n const close = () => {\n setOpen(false);\n setConfirming(false);\n };\n\n const transfer = () => {\n close();\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () =>\n app.getClient().api.intents.create(\"transfer-collection-ownership\", { owner: signer.address, collectionId: String(collectionId), newOwner: trimmed }),\n );\n })\n .then((ok) => {\n if (ok) onTransferred?.();\n });\n };\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" className=\"gap-2\" onClick={() => { setNewOwner(\"\"); setOpen(true); }}>\n <UserRoundCog className=\"h-4 w-4\" />\n Transfer ownership\n </Button>\n\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"max-w-[calc(100%-6px)] sm:max-w-md p-0 overflow-hidden gap-0 rounded-2xl\">\n <DialogTitle className=\"sr-only\">Transfer ownership of {collectionName ?? \"collection\"}</DialogTitle>\n <DialogDescription className=\"sr-only\">Transfer the on-chain owner of this collection. Existing tokens are unaffected.</DialogDescription>\n\n {confirming ? (\n <MarketplaceConfirmStep\n description={`Transfer ownership to ${shortenAddress(trimmed)}?`}\n secondaryLabel=\"Back\"\n onSecondary={() => setConfirming(false)}\n primaryLabel=\"Transfer ownership\"\n onPrimary={transfer}\n primaryIcon={<UserRoundCog className=\"h-4 w-4\" />}\n />\n ) : (\n <div className=\"p-6 space-y-4\">\n <div className=\"flex items-center gap-2\">\n <UserRoundCog className=\"h-5 w-5\" />\n <p className=\"font-bold text-lg\">Transfer collection ownership</p>\n </div>\n <p className=\"text-sm text-muted-foreground\">\n The new owner will control minting and future ownership transfers for this collection. Existing tokens are unaffected.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"new-owner\">New owner address</Label>\n <Input\n id=\"new-owner\"\n placeholder=\"0x…\"\n value={newOwner}\n onChange={(e) => setNewOwner(e.target.value)}\n className=\"tabular-nums text-sm\"\n spellCheck={false}\n autoComplete=\"off\"\n />\n {trimmed && !isValid && <p className=\"text-xs text-red-500\">Not a valid Starknet address.</p>}\n {wouldNoop && <p className=\"text-xs text-amber-500\">This is already the current owner.</p>}\n </div>\n <div className=\"flex gap-2 pt-2\">\n <Button variant=\"ghost\" className=\"flex-1\" onClick={close}>\n Cancel\n </Button>\n <Button className=\"flex-1\" onClick={() => setConfirming(true)} disabled={!isValid || wouldNoop || !app.walletAddress}>\n Continue\n </Button>\n </div>\n </div>\n )}\n </DialogContent>\n </Dialog>\n\n <TransactionDialog tx={tx} title=\"Transfer ownership\" workingLabel=\"Transferring ownership…\" firstStepLabel=\"Prepare transfer\">\n <TransactionSuccess\n name={collectionName ?? \"Collection\"}\n title=\"Ownership transferred\"\n description={<span className=\"tabular-nums\">New owner: {shortenAddress(trimmed)}</span>}\n txHash={tx.txHash}\n actions={[{ label: \"Done\", onClick: tx.reset }]}\n />\n </TransactionDialog>\n </>\n );\n}\n"],"mappings":";AAsDI,mBAEI,KADF,YADF;AApDJ,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,cAAc;AACvB,SAAS,QAAQ,eAAe,mBAAmB,mBAAmB;AACtE,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,8BAA8B;AACvC,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AASxB,SAAS,4B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BAAkB;AAAA,QACxB,OAAM;AAAA,QACN,aAAa,qBAAC,UAAK,WAAU,gBAAe;AAAA;AAAA,UAAY,eAAe,OAAO;AAAA,WAAE;AAAA,QAChF,QAAQ,GAAG;AAAA,QACX,SAAS,CAAC,EAAE,OAAO,QAAQ,SAAS,GAAG,MAAM,CAAC;AAAA;AAAA,IAChD,GACF;AAAA,KACF;AAEJ;","names":[]}
package/dist/index.cjs CHANGED
@@ -108,7 +108,6 @@ __export(index_exports, {
108
108
  CollectionsPage: () => import_collections_page.CollectionsPage,
109
109
  CommentsSection: () => import_comments_section.CommentsSection,
110
110
  CreationRecord: () => import_creation_record.CreationRecord,
111
- CreationSuccess: () => import_creation_success.CreationSuccess,
112
111
  CreatorAnalytics: () => import_creator_analytics.CreatorAnalytics,
113
112
  CreatorChip: () => import_creator_chip.CreatorChip,
114
113
  CreatorHeader: () => import_creator_header.CreatorHeader,
@@ -261,7 +260,6 @@ __export(index_exports, {
261
260
  MarketplaceErrorState: () => import_marketplace_dialog_primitives.MarketplaceErrorState,
262
261
  MarketplaceProcessingState: () => import_marketplace_dialog_primitives.MarketplaceProcessingState,
263
262
  MarketplaceSignInGate: () => import_marketplace_dialog_primitives.MarketplaceSignInGate,
264
- MarketplaceSuccessState: () => import_marketplace_dialog_primitives.MarketplaceSuccessState,
265
263
  MarketplaceTxLink: () => import_marketplace_dialog_primitives.MarketplaceTxLink,
266
264
  MediaWalletOverlay: () => import_media_wallet_overlay.MediaWalletOverlay,
267
265
  MedialaneAppProvider: () => import_medialane_app.MedialaneAppProvider,
@@ -387,7 +385,7 @@ __export(index_exports, {
387
385
  TokenCardSkeleton: () => import_token_card.TokenCardSkeleton,
388
386
  TokenGlyph: () => import_token_glyph.TokenGlyph,
389
387
  TransactionDialog: () => import_transaction_dialog.TransactionDialog,
390
- TransactionDone: () => import_transaction_done.TransactionDone,
388
+ TransactionSuccess: () => import_transaction_success.TransactionSuccess,
391
389
  TransferCollectionOwnership: () => import_transfer_collection_ownership.TransferCollectionOwnership,
392
390
  UserFacingError: () => import_describe_error.UserFacingError,
393
391
  WalletRequired: () => import_wallet_required.WalletRequired,
@@ -470,6 +468,7 @@ __export(index_exports, {
470
468
  sitemapEntries: () => import_sitemap_data.sitemapEntries,
471
469
  sitemapIndexXml: () => import_sitemap_data.sitemapIndexXml,
472
470
  sortOrders: () => import_order_sort_control.sortOrders,
471
+ successMessages: () => import_success_messages.successMessages,
473
472
  suggestLaunchpadSymbol: () => import_launchpad_defaults.suggestLaunchpadSymbol,
474
473
  timeAgo: () => import_time.timeAgo,
475
474
  timeUntil: () => import_time.timeUntil,
@@ -756,14 +755,14 @@ var import_sponsorship_offers_page = require("./components/sponsorship-offers-pa
756
755
  var import_sponsorship_offer_page = require("./components/sponsorship-offer-page.js");
757
756
  var import_portfolio_sponsorships = require("./components/portfolio-sponsorships.js");
758
757
  var import_transfer_collection_ownership = require("./components/transfer-collection-ownership.js");
759
- var import_transaction_done = require("./components/transaction-done.js");
760
758
  var import_coin_create = require("./components/launchpad/coin-create.js");
761
759
  var import_wallet_required = require("./components/wallet-required.js");
762
760
  var import_claim_route_shell = require("./components/claim-route-shell.js");
763
761
  var import_use_launchpad_image_upload = require("./utils/use-launchpad-image-upload.js");
764
762
  var import_portfolio_cache = require("./utils/portfolio-cache.js");
765
763
  var import_transaction_dialog = require("./components/transaction-dialog.js");
766
- var import_creation_success = require("./components/creation-success.js");
764
+ var import_transaction_success = require("./components/transaction-success.js");
765
+ var import_success_messages = require("./utils/success-messages.js");
767
766
  var import_medialane_collection_card = require("./components/medialane-collection-card.js");
768
767
  var import_token_glyph = require("./components/token-glyph.js");
769
768
  var import_stat_tile = require("./components/stat-tile.js");
@@ -939,7 +938,6 @@ var import_asset_accents = require("./utils/asset-accents.js");
939
938
  CollectionsPage,
940
939
  CommentsSection,
941
940
  CreationRecord,
942
- CreationSuccess,
943
941
  CreatorAnalytics,
944
942
  CreatorChip,
945
943
  CreatorHeader,
@@ -1092,7 +1090,6 @@ var import_asset_accents = require("./utils/asset-accents.js");
1092
1090
  MarketplaceErrorState,
1093
1091
  MarketplaceProcessingState,
1094
1092
  MarketplaceSignInGate,
1095
- MarketplaceSuccessState,
1096
1093
  MarketplaceTxLink,
1097
1094
  MediaWalletOverlay,
1098
1095
  MedialaneAppProvider,
@@ -1218,7 +1215,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1218
1215
  TokenCardSkeleton,
1219
1216
  TokenGlyph,
1220
1217
  TransactionDialog,
1221
- TransactionDone,
1218
+ TransactionSuccess,
1222
1219
  TransferCollectionOwnership,
1223
1220
  UserFacingError,
1224
1221
  WalletRequired,
@@ -1301,6 +1298,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1301
1298
  sitemapEntries,
1302
1299
  sitemapIndexXml,
1303
1300
  sortOrders,
1301
+ successMessages,
1304
1302
  suggestLaunchpadSymbol,
1305
1303
  timeAgo,
1306
1304
  timeUntil,