@medialane/ui 0.258.0 → 0.260.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 (167) hide show
  1. package/dist/components/activities-feed.cjs +5 -1
  2. package/dist/components/activities-feed.cjs.map +1 -1
  3. package/dist/components/activities-feed.js +5 -1
  4. package/dist/components/activities-feed.js.map +1 -1
  5. package/dist/components/activity-feed-shell.cjs +3 -1
  6. package/dist/components/activity-feed-shell.cjs.map +1 -1
  7. package/dist/components/activity-feed-shell.js +3 -1
  8. package/dist/components/activity-feed-shell.js.map +1 -1
  9. package/dist/components/button.d.cts +1 -1
  10. package/dist/components/button.d.ts +1 -1
  11. package/dist/components/coins-explorer.cjs +5 -1
  12. package/dist/components/coins-explorer.cjs.map +1 -1
  13. package/dist/components/coins-explorer.js +6 -2
  14. package/dist/components/coins-explorer.js.map +1 -1
  15. package/dist/components/comments-section.cjs +7 -6
  16. package/dist/components/comments-section.cjs.map +1 -1
  17. package/dist/components/comments-section.js +7 -6
  18. package/dist/components/comments-section.js.map +1 -1
  19. package/dist/components/discover-community-section.cjs +5 -1
  20. package/dist/components/discover-community-section.cjs.map +1 -1
  21. package/dist/components/discover-community-section.js +5 -1
  22. package/dist/components/discover-community-section.js.map +1 -1
  23. package/dist/components/discover-feed-section.cjs +5 -1
  24. package/dist/components/discover-feed-section.cjs.map +1 -1
  25. package/dist/components/discover-feed-section.js +5 -1
  26. package/dist/components/discover-feed-section.js.map +1 -1
  27. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  28. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  29. package/dist/components/fast-mint/success-view.cjs +2 -2
  30. package/dist/components/fast-mint/success-view.cjs.map +1 -1
  31. package/dist/components/fast-mint/success-view.js +2 -2
  32. package/dist/components/fast-mint/success-view.js.map +1 -1
  33. package/dist/components/ip-type-page.cjs +3 -2
  34. package/dist/components/ip-type-page.cjs.map +1 -1
  35. package/dist/components/ip-type-page.js +3 -2
  36. package/dist/components/ip-type-page.js.map +1 -1
  37. package/dist/components/launchpad/coin-create.cjs +9 -7
  38. package/dist/components/launchpad/coin-create.cjs.map +1 -1
  39. package/dist/components/launchpad/coin-create.js +9 -7
  40. package/dist/components/launchpad/coin-create.js.map +1 -1
  41. package/dist/components/launchpad/collection-create-form.cjs +11 -14
  42. package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
  43. package/dist/components/launchpad/collection-create-form.js +12 -15
  44. package/dist/components/launchpad/collection-create-form.js.map +1 -1
  45. package/dist/components/launchpad/collection-create-presets.cjs +8 -8
  46. package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
  47. package/dist/components/launchpad/collection-create-presets.d.cts +2 -1
  48. package/dist/components/launchpad/collection-create-presets.d.ts +2 -1
  49. package/dist/components/launchpad/collection-create-presets.js +8 -8
  50. package/dist/components/launchpad/collection-create-presets.js.map +1 -1
  51. package/dist/components/launchpad/edition-mint.cjs +9 -7
  52. package/dist/components/launchpad/edition-mint.cjs.map +1 -1
  53. package/dist/components/launchpad/edition-mint.js +9 -7
  54. package/dist/components/launchpad/edition-mint.js.map +1 -1
  55. package/dist/components/launchpad/pop-create.cjs +5 -6
  56. package/dist/components/launchpad/pop-create.cjs.map +1 -1
  57. package/dist/components/launchpad/pop-create.js +5 -6
  58. package/dist/components/launchpad/pop-create.js.map +1 -1
  59. package/dist/components/launchpad/remix-mint.cjs +9 -7
  60. package/dist/components/launchpad/remix-mint.cjs.map +1 -1
  61. package/dist/components/launchpad/remix-mint.js +9 -7
  62. package/dist/components/launchpad/remix-mint.js.map +1 -1
  63. package/dist/components/launchpad/single-edition-mint.cjs +9 -7
  64. package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
  65. package/dist/components/launchpad/single-edition-mint.js +9 -7
  66. package/dist/components/launchpad/single-edition-mint.js.map +1 -1
  67. package/dist/components/launchpad/sponsorship-create.cjs +5 -6
  68. package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
  69. package/dist/components/launchpad/sponsorship-create.js +5 -6
  70. package/dist/components/launchpad/sponsorship-create.js.map +1 -1
  71. package/dist/components/launchpad/tier-mint-form.cjs +5 -6
  72. package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
  73. package/dist/components/launchpad/tier-mint-form.js +5 -6
  74. package/dist/components/launchpad/tier-mint-form.js.map +1 -1
  75. package/dist/components/launchpad/tier-mint-presets.cjs +2 -2
  76. package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
  77. package/dist/components/launchpad/tier-mint-presets.d.cts +2 -1
  78. package/dist/components/launchpad/tier-mint-presets.d.ts +2 -1
  79. package/dist/components/launchpad/tier-mint-presets.js +2 -2
  80. package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
  81. package/dist/components/marketplace-dialog-primitives.cjs +1 -31
  82. package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
  83. package/dist/components/marketplace-dialog-primitives.d.cts +1 -12
  84. package/dist/components/marketplace-dialog-primitives.d.ts +1 -12
  85. package/dist/components/marketplace-dialog-primitives.js +2 -31
  86. package/dist/components/marketplace-dialog-primitives.js.map +1 -1
  87. package/dist/components/media-wallet/media-wallet-activity.cjs +5 -1
  88. package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
  89. package/dist/components/media-wallet/media-wallet-activity.js +5 -1
  90. package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
  91. package/dist/components/media-wallet/media-wallet-home.cjs +3 -2
  92. package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
  93. package/dist/components/media-wallet/media-wallet-home.js +3 -2
  94. package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
  95. package/dist/components/media-wallet/media-wallet-send.cjs +5 -2
  96. package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
  97. package/dist/components/media-wallet/media-wallet-send.js +5 -2
  98. package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
  99. package/dist/components/media-wallet/success-dialog.cjs +5 -11
  100. package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
  101. package/dist/components/media-wallet/success-dialog.js +5 -11
  102. package/dist/components/media-wallet/success-dialog.js.map +1 -1
  103. package/dist/components/pop-claim-button.cjs +7 -6
  104. package/dist/components/pop-claim-button.cjs.map +1 -1
  105. package/dist/components/pop-claim-button.js +7 -6
  106. package/dist/components/pop-claim-button.js.map +1 -1
  107. package/dist/components/pop-manage-page.cjs +5 -4
  108. package/dist/components/pop-manage-page.cjs.map +1 -1
  109. package/dist/components/pop-manage-page.js +5 -4
  110. package/dist/components/pop-manage-page.js.map +1 -1
  111. package/dist/components/portfolio-sponsorships.cjs +15 -8
  112. package/dist/components/portfolio-sponsorships.cjs.map +1 -1
  113. package/dist/components/portfolio-sponsorships.js +15 -8
  114. package/dist/components/portfolio-sponsorships.js.map +1 -1
  115. package/dist/components/service-collections-page.cjs +2 -2
  116. package/dist/components/service-collections-page.cjs.map +1 -1
  117. package/dist/components/service-collections-page.d.cts +2 -2
  118. package/dist/components/service-collections-page.d.ts +2 -2
  119. package/dist/components/service-collections-page.js +2 -2
  120. package/dist/components/service-collections-page.js.map +1 -1
  121. package/dist/components/sheet.d.cts +1 -1
  122. package/dist/components/sheet.d.ts +1 -1
  123. package/dist/components/sponsorship-offer-page.cjs +9 -8
  124. package/dist/components/sponsorship-offer-page.cjs.map +1 -1
  125. package/dist/components/sponsorship-offer-page.js +9 -8
  126. package/dist/components/sponsorship-offer-page.js.map +1 -1
  127. package/dist/components/transaction-success.cjs +60 -0
  128. package/dist/components/transaction-success.cjs.map +1 -0
  129. package/dist/components/transaction-success.d.cts +20 -0
  130. package/dist/components/transaction-success.d.ts +20 -0
  131. package/dist/components/transaction-success.js +26 -0
  132. package/dist/components/transaction-success.js.map +1 -0
  133. package/dist/components/transfer-collection-ownership.cjs +6 -8
  134. package/dist/components/transfer-collection-ownership.cjs.map +1 -1
  135. package/dist/components/transfer-collection-ownership.js +6 -8
  136. package/dist/components/transfer-collection-ownership.js.map +1 -1
  137. package/dist/index.cjs +9 -8
  138. package/dist/index.cjs.map +1 -1
  139. package/dist/index.d.cts +4 -3
  140. package/dist/index.d.ts +4 -3
  141. package/dist/index.js +6 -6
  142. package/dist/index.js.map +1 -1
  143. package/dist/utils/empty-messages.cjs +62 -0
  144. package/dist/utils/empty-messages.cjs.map +1 -0
  145. package/dist/utils/empty-messages.d.cts +40 -0
  146. package/dist/utils/empty-messages.d.ts +40 -0
  147. package/dist/utils/empty-messages.js +38 -0
  148. package/dist/utils/empty-messages.js.map +1 -0
  149. package/dist/utils/success-messages.cjs +106 -0
  150. package/dist/utils/success-messages.cjs.map +1 -0
  151. package/dist/utils/success-messages.d.cts +58 -0
  152. package/dist/utils/success-messages.d.ts +58 -0
  153. package/dist/utils/success-messages.js +82 -0
  154. package/dist/utils/success-messages.js.map +1 -0
  155. package/package.json +3 -3
  156. package/dist/components/creation-success.cjs +0 -64
  157. package/dist/components/creation-success.cjs.map +0 -1
  158. package/dist/components/creation-success.d.cts +0 -20
  159. package/dist/components/creation-success.d.ts +0 -20
  160. package/dist/components/creation-success.js +0 -30
  161. package/dist/components/creation-success.js.map +0 -1
  162. package/dist/components/transaction-done.cjs +0 -46
  163. package/dist/components/transaction-done.cjs.map +0 -1
  164. package/dist/components/transaction-done.d.cts +0 -18
  165. package/dist/components/transaction-done.d.ts +0 -18
  166. package/dist/components/transaction-done.js +0 -22
  167. package/dist/components/transaction-done.js.map +0 -1
@@ -0,0 +1,58 @@
1
+ interface SuccessMessage {
2
+ title: string;
3
+ description: string;
4
+ }
5
+ declare const successMessages: {
6
+ listed: ({ name, price }: {
7
+ name: string;
8
+ price: string;
9
+ }) => SuccessMessage;
10
+ offered: ({ name, price }: {
11
+ name: string;
12
+ price: string;
13
+ }) => SuccessMessage;
14
+ accepted: ({ name, price }: {
15
+ name: string;
16
+ price: string;
17
+ }) => SuccessMessage;
18
+ countered: ({ name, price }: {
19
+ name: string;
20
+ price: string;
21
+ }) => SuccessMessage;
22
+ transferred: ({ name, to }: {
23
+ name: string;
24
+ to: string;
25
+ }) => SuccessMessage;
26
+ purchased: ({ name, quantity }: {
27
+ name: string;
28
+ quantity: number;
29
+ }) => SuccessMessage;
30
+ commented: () => SuccessMessage;
31
+ claimed: () => SuccessMessage;
32
+ bidPlaced: () => SuccessMessage;
33
+ bidAccepted: () => SuccessMessage;
34
+ responseSent: () => SuccessMessage;
35
+ proposalWithdrawn: () => SuccessMessage;
36
+ ownershipTransferred: ({ name, to }: {
37
+ name: string;
38
+ to: string;
39
+ }) => SuccessMessage;
40
+ credentialIssued: () => SuccessMessage;
41
+ participantsPublished: ({ count }: {
42
+ count: number;
43
+ }) => SuccessMessage;
44
+ walletActivated: () => SuccessMessage;
45
+ sent: ({ amount, symbol, to }: {
46
+ amount: string;
47
+ symbol: string;
48
+ to: string;
49
+ }) => SuccessMessage;
50
+ licenseGranted: ({ price }: {
51
+ price: string;
52
+ }) => SuccessMessage;
53
+ cancelled: ({ kind }: {
54
+ kind: string;
55
+ }) => SuccessMessage;
56
+ };
57
+
58
+ export { type SuccessMessage, successMessages };
@@ -0,0 +1,82 @@
1
+ const successMessages = {
2
+ listed: ({ name, price }) => ({
3
+ title: "Listing created",
4
+ description: `${name} is listed for ${price}. The order is recorded onchain.`
5
+ }),
6
+ offered: ({ name, price }) => ({
7
+ title: "Offer created",
8
+ description: `Your offer of ${price} on ${name} is recorded onchain.`
9
+ }),
10
+ accepted: ({ name, price }) => ({
11
+ title: "Sale completed",
12
+ description: `${name} sold for ${price}. Ownership is recorded onchain with the buyer's wallet.`
13
+ }),
14
+ countered: ({ name, price }) => ({
15
+ title: "Counter-offer created",
16
+ description: `Your counter of ${price} on ${name} is recorded onchain.`
17
+ }),
18
+ transferred: ({ name, to }) => ({
19
+ title: "Transfer completed",
20
+ description: `${name} is owned by ${to}.`
21
+ }),
22
+ purchased: ({ name, quantity }) => ({
23
+ title: "Purchase completed",
24
+ description: quantity > 1 ? `${quantity} editions of ${name} are owned by your wallet. The sale is recorded onchain.` : `${name} is owned by your wallet. The sale is recorded onchain.`
25
+ }),
26
+ commented: () => ({
27
+ title: "Comment published",
28
+ description: "Your comment is recorded onchain and appears here within about 30 seconds."
29
+ }),
30
+ claimed: () => ({
31
+ title: "Credential claimed",
32
+ description: "The proof of participation is recorded onchain in your wallet."
33
+ }),
34
+ bidPlaced: () => ({
35
+ title: "Bid placed",
36
+ description: "Your bid is recorded onchain."
37
+ }),
38
+ bidAccepted: () => ({
39
+ title: "Bid accepted",
40
+ description: "The license is minted to the sponsor's wallet."
41
+ }),
42
+ responseSent: () => ({
43
+ title: "Response sent",
44
+ description: "Your response is recorded onchain."
45
+ }),
46
+ proposalWithdrawn: () => ({
47
+ title: "Proposal withdrawn",
48
+ description: "The proposal is closed onchain."
49
+ }),
50
+ ownershipTransferred: ({ name, to }) => ({
51
+ title: "Ownership transferred",
52
+ description: `${to} is the owner of ${name}.`
53
+ }),
54
+ credentialIssued: () => ({
55
+ title: "Credential issued",
56
+ description: "The credential is recorded onchain in the participant's wallet."
57
+ }),
58
+ participantsPublished: ({ count }) => ({
59
+ title: "Participants published",
60
+ description: `The list of ${count} participant${count !== 1 ? "s" : ""} is recorded onchain. Each one claims with their own link.`
61
+ }),
62
+ walletActivated: () => ({
63
+ title: "Wallet activated",
64
+ description: "Your wallet is recorded onchain and can receive and send assets."
65
+ }),
66
+ sent: ({ amount, symbol, to }) => ({
67
+ title: "Transfer completed",
68
+ description: `${amount} ${symbol} sent to ${to}. The transfer is recorded onchain.`
69
+ }),
70
+ licenseGranted: ({ price }) => ({
71
+ title: "License granted",
72
+ description: `The remix is minted and listed for ${price}. The buyer completes the purchase from their portfolio.`
73
+ }),
74
+ cancelled: ({ kind }) => ({
75
+ title: `${kind.charAt(0).toUpperCase()}${kind.slice(1)} cancelled`,
76
+ description: "The order is cancelled onchain."
77
+ })
78
+ };
79
+ export {
80
+ successMessages
81
+ };
82
+ //# sourceMappingURL=success-messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/success-messages.ts"],"sourcesContent":["export interface SuccessMessage {\n title: string;\n description: string;\n}\n\nexport const successMessages = {\n listed: ({ name, price }: { name: string; price: string }): SuccessMessage => ({\n title: \"Listing created\",\n description: `${name} is listed for ${price}. The order is recorded onchain.`,\n }),\n offered: ({ name, price }: { name: string; price: string }): SuccessMessage => ({\n title: \"Offer created\",\n description: `Your offer of ${price} on ${name} is recorded onchain.`,\n }),\n accepted: ({ name, price }: { name: string; price: string }): SuccessMessage => ({\n title: \"Sale completed\",\n description: `${name} sold for ${price}. Ownership is recorded onchain with the buyer's wallet.`,\n }),\n countered: ({ name, price }: { name: string; price: string }): SuccessMessage => ({\n title: \"Counter-offer created\",\n description: `Your counter of ${price} on ${name} is recorded onchain.`,\n }),\n transferred: ({ name, to }: { name: string; to: string }): SuccessMessage => ({\n title: \"Transfer completed\",\n description: `${name} is owned by ${to}.`,\n }),\n purchased: ({ name, quantity }: { name: string; quantity: number }): SuccessMessage => ({\n title: \"Purchase completed\",\n description:\n quantity > 1\n ? `${quantity} editions of ${name} are owned by your wallet. The sale is recorded onchain.`\n : `${name} is owned by your wallet. The sale is recorded onchain.`,\n }),\n commented: (): SuccessMessage => ({\n title: \"Comment published\",\n description: \"Your comment is recorded onchain and appears here within about 30 seconds.\",\n }),\n claimed: (): SuccessMessage => ({\n title: \"Credential claimed\",\n description: \"The proof of participation is recorded onchain in your wallet.\",\n }),\n bidPlaced: (): SuccessMessage => ({\n title: \"Bid placed\",\n description: \"Your bid is recorded onchain.\",\n }),\n bidAccepted: (): SuccessMessage => ({\n title: \"Bid accepted\",\n description: \"The license is minted to the sponsor's wallet.\",\n }),\n responseSent: (): SuccessMessage => ({\n title: \"Response sent\",\n description: \"Your response is recorded onchain.\",\n }),\n proposalWithdrawn: (): SuccessMessage => ({\n title: \"Proposal withdrawn\",\n description: \"The proposal is closed onchain.\",\n }),\n ownershipTransferred: ({ name, to }: { name: string; to: string }): SuccessMessage => ({\n title: \"Ownership transferred\",\n description: `${to} is the owner of ${name}.`,\n }),\n credentialIssued: (): SuccessMessage => ({\n title: \"Credential issued\",\n description: \"The credential is recorded onchain in the participant's wallet.\",\n }),\n participantsPublished: ({ count }: { count: number }): SuccessMessage => ({\n title: \"Participants published\",\n description: `The list of ${count} participant${count !== 1 ? \"s\" : \"\"} is recorded onchain. Each one claims with their own link.`,\n }),\n walletActivated: (): SuccessMessage => ({\n title: \"Wallet activated\",\n description: \"Your wallet is recorded onchain and can receive and send assets.\",\n }),\n sent: ({ amount, symbol, to }: { amount: string; symbol: string; to: string }): SuccessMessage => ({\n title: \"Transfer completed\",\n description: `${amount} ${symbol} sent to ${to}. The transfer is recorded onchain.`,\n }),\n licenseGranted: ({ price }: { price: string }): SuccessMessage => ({\n title: \"License granted\",\n description: `The remix is minted and listed for ${price}. The buyer completes the purchase from their portfolio.`,\n }),\n cancelled: ({ kind }: { kind: string }): SuccessMessage => ({\n title: `${kind.charAt(0).toUpperCase()}${kind.slice(1)} cancelled`,\n description: \"The order is cancelled onchain.\",\n }),\n};\n"],"mappings":"AAKO,MAAM,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,EAAE,MAAM,MAAM,OAAwD;AAAA,IAC7E,OAAO;AAAA,IACP,aAAa,GAAG,IAAI,kBAAkB,KAAK;AAAA,EAC7C;AAAA,EACA,SAAS,CAAC,EAAE,MAAM,MAAM,OAAwD;AAAA,IAC9E,OAAO;AAAA,IACP,aAAa,iBAAiB,KAAK,OAAO,IAAI;AAAA,EAChD;AAAA,EACA,UAAU,CAAC,EAAE,MAAM,MAAM,OAAwD;AAAA,IAC/E,OAAO;AAAA,IACP,aAAa,GAAG,IAAI,aAAa,KAAK;AAAA,EACxC;AAAA,EACA,WAAW,CAAC,EAAE,MAAM,MAAM,OAAwD;AAAA,IAChF,OAAO;AAAA,IACP,aAAa,mBAAmB,KAAK,OAAO,IAAI;AAAA,EAClD;AAAA,EACA,aAAa,CAAC,EAAE,MAAM,GAAG,OAAqD;AAAA,IAC5E,OAAO;AAAA,IACP,aAAa,GAAG,IAAI,gBAAgB,EAAE;AAAA,EACxC;AAAA,EACA,WAAW,CAAC,EAAE,MAAM,SAAS,OAA2D;AAAA,IACtF,OAAO;AAAA,IACP,aACE,WAAW,IACP,GAAG,QAAQ,gBAAgB,IAAI,6DAC/B,GAAG,IAAI;AAAA,EACf;AAAA,EACA,WAAW,OAAuB;AAAA,IAChC,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,SAAS,OAAuB;AAAA,IAC9B,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,WAAW,OAAuB;AAAA,IAChC,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,aAAa,OAAuB;AAAA,IAClC,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,cAAc,OAAuB;AAAA,IACnC,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,mBAAmB,OAAuB;AAAA,IACxC,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,sBAAsB,CAAC,EAAE,MAAM,GAAG,OAAqD;AAAA,IACrF,OAAO;AAAA,IACP,aAAa,GAAG,EAAE,oBAAoB,IAAI;AAAA,EAC5C;AAAA,EACA,kBAAkB,OAAuB;AAAA,IACvC,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,uBAAuB,CAAC,EAAE,MAAM,OAA0C;AAAA,IACxE,OAAO;AAAA,IACP,aAAa,eAAe,KAAK,eAAe,UAAU,IAAI,MAAM,EAAE;AAAA,EACxE;AAAA,EACA,iBAAiB,OAAuB;AAAA,IACtC,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,MAAM,CAAC,EAAE,QAAQ,QAAQ,GAAG,OAAuE;AAAA,IACjG,OAAO;AAAA,IACP,aAAa,GAAG,MAAM,IAAI,MAAM,YAAY,EAAE;AAAA,EAChD;AAAA,EACA,gBAAgB,CAAC,EAAE,MAAM,OAA0C;AAAA,IACjE,OAAO;AAAA,IACP,aAAa,sCAAsC,KAAK;AAAA,EAC1D;AAAA,EACA,WAAW,CAAC,EAAE,KAAK,OAAyC;AAAA,IAC1D,OAAO,GAAG,KAAK,OAAO,CAAC,EAAE,YAAY,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC;AAAA,IACtD,aAAa;AAAA,EACf;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medialane/ui",
3
- "version": "0.258.0",
3
+ "version": "0.260.0",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -51,7 +51,7 @@
51
51
  "preview": "vite --config preview/vite.config.ts"
52
52
  },
53
53
  "peerDependencies": {
54
- "@medialane/sdk": ">=0.206.0 <0.207.0",
54
+ "@medialane/sdk": ">=0.207.0 <0.208.0",
55
55
  "@radix-ui/react-checkbox": ">=1.1.0",
56
56
  "@radix-ui/react-collapsible": ">=1.1.0",
57
57
  "@radix-ui/react-dialog": ">=1.1.0",
@@ -85,7 +85,7 @@
85
85
  "devDependencies": {
86
86
  "@happy-dom/global-registrator": "^20.14.5",
87
87
  "@hookform/resolvers": "^3.10.0",
88
- "@medialane/sdk": "0.206.0",
88
+ "@medialane/sdk": "0.207.0",
89
89
  "@radix-ui/react-checkbox": "^1.3.8",
90
90
  "@radix-ui/react-collapsible": "^1.1.17",
91
91
  "@radix-ui/react-dialog": "^1.1.20",
@@ -1,64 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var creation_success_exports = {};
31
- __export(creation_success_exports, {
32
- CreationSuccess: () => CreationSuccess
33
- });
34
- module.exports = __toCommonJS(creation_success_exports);
35
- var import_jsx_runtime = require("react/jsx-runtime");
36
- var import_lucide_react = require("lucide-react");
37
- var import_link = __toESM(require("./link.js"), 1);
38
- var import_image = __toESM(require("./image.js"), 1);
39
- var import_button = require("./button.js");
40
- function CreationSuccess({ name, image, caption, primary, secondary, onAgain, againLabel, children }) {
41
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex w-full flex-col items-center gap-6 py-2 text-center", children: [
42
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative", children: [
43
- /* @__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" }) }) }),
44
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("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", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Check, { className: "h-5 w-5", strokeWidth: 3 }) })
45
- ] }),
46
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "w-full min-w-0 space-y-1", children: [
47
- /* @__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 })
56
- ] }),
57
- children
58
- ] });
59
- }
60
- // Annotate the CommonJS export names for ESM import in node:
61
- 0 && (module.exports = {
62
- CreationSuccess
63
- });
64
- //# sourceMappingURL=creation-success.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/creation-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\";\n\nexport interface CreationSuccessAction {\n href: string;\n label: string;\n}\n\nexport interface CreationSuccessProps {\n name: string;\n image?: string | null;\n caption: string;\n primary?: CreationSuccessAction;\n secondary?: CreationSuccessAction;\n onAgain: () => void;\n againLabel: string;\n children?: ReactNode;\n}\n\nexport function CreationSuccess({ name, image, caption, primary, secondary, onAgain, againLabel, children }: CreationSuccessProps) {\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=\"text-sm text-muted-foreground\">{caption}</p>\n </div>\n\n <div className=\"flex w-full flex-col gap-2\">\n {(primary || secondary) && (\n <div className=\"flex flex-col gap-2 sm:flex-row\">\n {primary && (\n <Button asChild className=\"flex-1\">\n <Link href={primary.href}>{primary.label}</Link>\n </Button>\n )}\n {secondary && (\n <Button asChild variant=\"outline\" className=\"flex-1\">\n <Link href={secondary.href}>{secondary.label}</Link>\n </Button>\n )}\n </div>\n )}\n <Button variant=\"ghost\" size=\"sm\" className=\"text-muted-foreground\" onClick={onAgain}>\n {againLabel}\n </Button>\n </div>\n\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BM;AAxBN,0BAAiC;AACjC,kBAAiB;AACjB,mBAAkB;AAClB,oBAAuB;AAkBhB,SAAS,gBAAgB,EAAE,MAAM,OAAO,SAAS,SAAS,WAAW,SAAS,YAAY,SAAS,GAAyB;AACjI,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,iCAAiC,mBAAQ;AAAA,OACxD;AAAA,IAEA,6CAAC,SAAI,WAAU,8BACX;AAAA,kBAAW,cACX,6CAAC,SAAI,WAAU,mCACZ;AAAA,mBACC,4CAAC,wBAAO,SAAO,MAAC,WAAU,UACxB,sDAAC,YAAAC,SAAA,EAAK,MAAM,QAAQ,MAAO,kBAAQ,OAAM,GAC3C;AAAA,QAED,aACC,4CAAC,wBAAO,SAAO,MAAC,SAAQ,WAAU,WAAU,UAC1C,sDAAC,YAAAA,SAAA,EAAK,MAAM,UAAU,MAAO,oBAAU,OAAM,GAC/C;AAAA,SAEJ;AAAA,MAEF,4CAAC,wBAAO,SAAQ,SAAQ,MAAK,MAAK,WAAU,yBAAwB,SAAS,SAC1E,sBACH;AAAA,OACF;AAAA,IAEC;AAAA,KACH;AAEJ;","names":["Image","Link"]}
@@ -1,20 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- interface CreationSuccessAction {
5
- href: string;
6
- label: string;
7
- }
8
- interface CreationSuccessProps {
9
- name: string;
10
- image?: string | null;
11
- caption: string;
12
- primary?: CreationSuccessAction;
13
- secondary?: CreationSuccessAction;
14
- onAgain: () => void;
15
- againLabel: string;
16
- children?: ReactNode;
17
- }
18
- declare function CreationSuccess({ name, image, caption, primary, secondary, onAgain, againLabel, children }: CreationSuccessProps): react_jsx_runtime.JSX.Element;
19
-
20
- export { CreationSuccess, type CreationSuccessAction, type CreationSuccessProps };
@@ -1,20 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- interface CreationSuccessAction {
5
- href: string;
6
- label: string;
7
- }
8
- interface CreationSuccessProps {
9
- name: string;
10
- image?: string | null;
11
- caption: string;
12
- primary?: CreationSuccessAction;
13
- secondary?: CreationSuccessAction;
14
- onAgain: () => void;
15
- againLabel: string;
16
- children?: ReactNode;
17
- }
18
- declare function CreationSuccess({ name, image, caption, primary, secondary, onAgain, againLabel, children }: CreationSuccessProps): react_jsx_runtime.JSX.Element;
19
-
20
- export { CreationSuccess, type CreationSuccessAction, type CreationSuccessProps };
@@ -1,30 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Check, ImageIcon } from "lucide-react";
4
- import Link from "./link.js";
5
- import Image from "./image.js";
6
- import { Button } from "./button.js";
7
- function CreationSuccess({ name, image, caption, primary, secondary, onAgain, againLabel, children }) {
8
- return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col items-center gap-6 py-2 text-center", children: [
9
- /* @__PURE__ */ jsxs("div", { className: "relative", children: [
10
- /* @__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" }) }) }),
11
- /* @__PURE__ */ jsx("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", children: /* @__PURE__ */ jsx(Check, { className: "h-5 w-5", strokeWidth: 3 }) })
12
- ] }),
13
- /* @__PURE__ */ jsxs("div", { className: "w-full min-w-0 space-y-1", children: [
14
- /* @__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 })
23
- ] }),
24
- children
25
- ] });
26
- }
27
- export {
28
- CreationSuccess
29
- };
30
- //# sourceMappingURL=creation-success.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/creation-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\";\n\nexport interface CreationSuccessAction {\n href: string;\n label: string;\n}\n\nexport interface CreationSuccessProps {\n name: string;\n image?: string | null;\n caption: string;\n primary?: CreationSuccessAction;\n secondary?: CreationSuccessAction;\n onAgain: () => void;\n againLabel: string;\n children?: ReactNode;\n}\n\nexport function CreationSuccess({ name, image, caption, primary, secondary, onAgain, againLabel, children }: CreationSuccessProps) {\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=\"text-sm text-muted-foreground\">{caption}</p>\n </div>\n\n <div className=\"flex w-full flex-col gap-2\">\n {(primary || secondary) && (\n <div className=\"flex flex-col gap-2 sm:flex-row\">\n {primary && (\n <Button asChild className=\"flex-1\">\n <Link href={primary.href}>{primary.label}</Link>\n </Button>\n )}\n {secondary && (\n <Button asChild variant=\"outline\" className=\"flex-1\">\n <Link href={secondary.href}>{secondary.label}</Link>\n </Button>\n )}\n </div>\n )}\n <Button variant=\"ghost\" size=\"sm\" className=\"text-muted-foreground\" onClick={onAgain}>\n {againLabel}\n </Button>\n </div>\n\n {children}\n </div>\n );\n}\n"],"mappings":";AA2BM,SAGM,KAHN;AAxBN,SAAS,OAAO,iBAAiB;AACjC,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAS,cAAc;AAkBhB,SAAS,gBAAgB,EAAE,MAAM,OAAO,SAAS,SAAS,WAAW,SAAS,YAAY,SAAS,GAAyB;AACjI,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,iCAAiC,mBAAQ;AAAA,OACxD;AAAA,IAEA,qBAAC,SAAI,WAAU,8BACX;AAAA,kBAAW,cACX,qBAAC,SAAI,WAAU,mCACZ;AAAA,mBACC,oBAAC,UAAO,SAAO,MAAC,WAAU,UACxB,8BAAC,QAAK,MAAM,QAAQ,MAAO,kBAAQ,OAAM,GAC3C;AAAA,QAED,aACC,oBAAC,UAAO,SAAO,MAAC,SAAQ,WAAU,WAAU,UAC1C,8BAAC,QAAK,MAAM,UAAU,MAAO,oBAAU,OAAM,GAC/C;AAAA,SAEJ;AAAA,MAEF,oBAAC,UAAO,SAAQ,SAAQ,MAAK,MAAK,WAAU,yBAAwB,SAAS,SAC1E,sBACH;AAAA,OACF;AAAA,IAEC;AAAA,KACH;AAEJ;","names":[]}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var transaction_done_exports = {};
21
- __export(transaction_done_exports, {
22
- TransactionDone: () => TransactionDone
23
- });
24
- module.exports = __toCommonJS(transaction_done_exports);
25
- var import_jsx_runtime = require("react/jsx-runtime");
26
- var import_marketplace_dialog_primitives = require("./marketplace-dialog-primitives.js");
27
- var import_explorer_url = require("../utils/explorer-url.js");
28
- function TransactionDone({ tx, name, title, description, footer }) {
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
30
- import_marketplace_dialog_primitives.MarketplaceSuccessState,
31
- {
32
- name,
33
- title,
34
- description,
35
- txHash: tx.txHash,
36
- explorerUrl: import_explorer_url.EXPLORER_URL,
37
- footer,
38
- onDone: tx.reset
39
- }
40
- );
41
- }
42
- // Annotate the CommonJS export names for ESM import in node:
43
- 0 && (module.exports = {
44
- TransactionDone
45
- });
46
- //# sourceMappingURL=transaction-done.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/transaction-done.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { MarketplaceSuccessState } from \"./marketplace-dialog-primitives.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransactionDoneProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"txHash\" | \"reset\">;\n name: string;\n title: string;\n description: ReactNode;\n footer?: ReactNode;\n}\n\nexport function TransactionDone({ tx, name, title, description, footer }: TransactionDoneProps) {\n return (\n <MarketplaceSuccessState\n name={name}\n title={title}\n description={description}\n txHash={tx.txHash}\n explorerUrl={EXPLORER_URL}\n footer={footer}\n onDone={tx.reset}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBI;AAdJ,2CAAwC;AACxC,0BAA6B;AAWtB,SAAS,gBAAgB,EAAE,IAAI,MAAM,OAAO,aAAa,OAAO,GAAyB;AAC9F,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,QAAQ,GAAG;AAAA,MACX,aAAa;AAAA,MACb;AAAA,MACA,QAAQ,GAAG;AAAA;AAAA,EACb;AAEJ;","names":[]}
@@ -1,18 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
- import { useTransaction } from '../utils/use-transaction.cjs';
4
- import '@medialane/sdk/starknet';
5
- import './fast-mint/types.cjs';
6
- import 'starknet';
7
- import '@medialane/sdk';
8
-
9
- interface TransactionDoneProps {
10
- tx: Pick<ReturnType<typeof useTransaction>, "txHash" | "reset">;
11
- name: string;
12
- title: string;
13
- description: ReactNode;
14
- footer?: ReactNode;
15
- }
16
- declare function TransactionDone({ tx, name, title, description, footer }: TransactionDoneProps): react_jsx_runtime.JSX.Element;
17
-
18
- export { TransactionDone, type TransactionDoneProps };
@@ -1,18 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
- import { useTransaction } from '../utils/use-transaction.js';
4
- import '@medialane/sdk/starknet';
5
- import './fast-mint/types.js';
6
- import 'starknet';
7
- import '@medialane/sdk';
8
-
9
- interface TransactionDoneProps {
10
- tx: Pick<ReturnType<typeof useTransaction>, "txHash" | "reset">;
11
- name: string;
12
- title: string;
13
- description: ReactNode;
14
- footer?: ReactNode;
15
- }
16
- declare function TransactionDone({ tx, name, title, description, footer }: TransactionDoneProps): react_jsx_runtime.JSX.Element;
17
-
18
- export { TransactionDone, type TransactionDoneProps };
@@ -1,22 +0,0 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { MarketplaceSuccessState } from "./marketplace-dialog-primitives.js";
4
- import { EXPLORER_URL } from "../utils/explorer-url.js";
5
- function TransactionDone({ tx, name, title, description, footer }) {
6
- return /* @__PURE__ */ jsx(
7
- MarketplaceSuccessState,
8
- {
9
- name,
10
- title,
11
- description,
12
- txHash: tx.txHash,
13
- explorerUrl: EXPLORER_URL,
14
- footer,
15
- onDone: tx.reset
16
- }
17
- );
18
- }
19
- export {
20
- TransactionDone
21
- };
22
- //# sourceMappingURL=transaction-done.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/transaction-done.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { MarketplaceSuccessState } from \"./marketplace-dialog-primitives.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport type { useTransaction } from \"../utils/use-transaction.js\";\n\nexport interface TransactionDoneProps {\n tx: Pick<ReturnType<typeof useTransaction>, \"txHash\" | \"reset\">;\n name: string;\n title: string;\n description: ReactNode;\n footer?: ReactNode;\n}\n\nexport function TransactionDone({ tx, name, title, description, footer }: TransactionDoneProps) {\n return (\n <MarketplaceSuccessState\n name={name}\n title={title}\n description={description}\n txHash={tx.txHash}\n explorerUrl={EXPLORER_URL}\n footer={footer}\n onDone={tx.reset}\n />\n );\n}\n"],"mappings":";AAiBI;AAdJ,SAAS,+BAA+B;AACxC,SAAS,oBAAoB;AAWtB,SAAS,gBAAgB,EAAE,IAAI,MAAM,OAAO,aAAa,OAAO,GAAyB;AAC9F,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,QAAQ,GAAG;AAAA,MACX,aAAa;AAAA,MACb;AAAA,MACA,QAAQ,GAAG;AAAA;AAAA,EACb;AAEJ;","names":[]}