@medialane/ui 0.259.0 → 0.261.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 (139) hide show
  1. package/dist/components/action-button.cjs +7 -2
  2. package/dist/components/action-button.cjs.map +1 -1
  3. package/dist/components/action-button.d.cts +2 -1
  4. package/dist/components/action-button.d.ts +2 -1
  5. package/dist/components/action-button.js +7 -2
  6. package/dist/components/action-button.js.map +1 -1
  7. package/dist/components/activities-feed.cjs +5 -1
  8. package/dist/components/activities-feed.cjs.map +1 -1
  9. package/dist/components/activities-feed.js +5 -1
  10. package/dist/components/activities-feed.js.map +1 -1
  11. package/dist/components/activity-feed-shell.cjs +3 -1
  12. package/dist/components/activity-feed-shell.cjs.map +1 -1
  13. package/dist/components/activity-feed-shell.js +3 -1
  14. package/dist/components/activity-feed-shell.js.map +1 -1
  15. package/dist/components/asset-access-cards.cjs +21 -33
  16. package/dist/components/asset-access-cards.cjs.map +1 -1
  17. package/dist/components/asset-access-cards.d.cts +3 -3
  18. package/dist/components/asset-access-cards.d.ts +3 -3
  19. package/dist/components/asset-access-cards.js +20 -32
  20. package/dist/components/asset-access-cards.js.map +1 -1
  21. package/dist/components/asset-marketplace-panel.cjs +44 -41
  22. package/dist/components/asset-marketplace-panel.cjs.map +1 -1
  23. package/dist/components/asset-marketplace-panel.js +45 -42
  24. package/dist/components/asset-marketplace-panel.js.map +1 -1
  25. package/dist/components/asset-overview-content.cjs +12 -1
  26. package/dist/components/asset-overview-content.cjs.map +1 -1
  27. package/dist/components/asset-overview-content.d.cts +3 -1
  28. package/dist/components/asset-overview-content.d.ts +3 -1
  29. package/dist/components/asset-overview-content.js +13 -2
  30. package/dist/components/asset-overview-content.js.map +1 -1
  31. package/dist/components/asset-page.cjs +8 -6
  32. package/dist/components/asset-page.cjs.map +1 -1
  33. package/dist/components/asset-page.js +8 -6
  34. package/dist/components/asset-page.js.map +1 -1
  35. package/dist/components/asset-top-sections.cjs +1 -9
  36. package/dist/components/asset-top-sections.cjs.map +1 -1
  37. package/dist/components/asset-top-sections.d.cts +1 -2
  38. package/dist/components/asset-top-sections.d.ts +1 -2
  39. package/dist/components/asset-top-sections.js +1 -9
  40. package/dist/components/asset-top-sections.js.map +1 -1
  41. package/dist/components/coins-explorer.cjs +5 -1
  42. package/dist/components/coins-explorer.cjs.map +1 -1
  43. package/dist/components/coins-explorer.js +6 -2
  44. package/dist/components/coins-explorer.js.map +1 -1
  45. package/dist/components/comments-section.cjs +2 -2
  46. package/dist/components/comments-section.cjs.map +1 -1
  47. package/dist/components/comments-section.js +2 -2
  48. package/dist/components/comments-section.js.map +1 -1
  49. package/dist/components/discover-community-section.cjs +5 -1
  50. package/dist/components/discover-community-section.cjs.map +1 -1
  51. package/dist/components/discover-community-section.js +5 -1
  52. package/dist/components/discover-community-section.js.map +1 -1
  53. package/dist/components/discover-feed-section.cjs +5 -1
  54. package/dist/components/discover-feed-section.cjs.map +1 -1
  55. package/dist/components/discover-feed-section.js +5 -1
  56. package/dist/components/discover-feed-section.js.map +1 -1
  57. package/dist/components/fast-mint/success-view.cjs +2 -2
  58. package/dist/components/fast-mint/success-view.cjs.map +1 -1
  59. package/dist/components/fast-mint/success-view.js +2 -2
  60. package/dist/components/fast-mint/success-view.js.map +1 -1
  61. package/dist/components/ip-type-page.cjs +3 -2
  62. package/dist/components/ip-type-page.cjs.map +1 -1
  63. package/dist/components/ip-type-page.js +3 -2
  64. package/dist/components/ip-type-page.js.map +1 -1
  65. package/dist/components/markdown-text.cjs +53 -0
  66. package/dist/components/markdown-text.cjs.map +1 -0
  67. package/dist/components/markdown-text.d.cts +7 -0
  68. package/dist/components/markdown-text.d.ts +7 -0
  69. package/dist/components/markdown-text.js +19 -0
  70. package/dist/components/markdown-text.js.map +1 -0
  71. package/dist/components/marketplace-dialog-primitives.cjs +1 -1
  72. package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
  73. package/dist/components/marketplace-dialog-primitives.js +1 -1
  74. package/dist/components/marketplace-dialog-primitives.js.map +1 -1
  75. package/dist/components/media-wallet/media-wallet-activity.cjs +5 -1
  76. package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
  77. package/dist/components/media-wallet/media-wallet-activity.js +5 -1
  78. package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
  79. package/dist/components/media-wallet/media-wallet-home.cjs +3 -2
  80. package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
  81. package/dist/components/media-wallet/media-wallet-home.js +3 -2
  82. package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
  83. package/dist/components/media-wallet/media-wallet-send.cjs +5 -2
  84. package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
  85. package/dist/components/media-wallet/media-wallet-send.js +5 -2
  86. package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
  87. package/dist/components/media-wallet/success-dialog.cjs +5 -11
  88. package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
  89. package/dist/components/media-wallet/success-dialog.js +5 -11
  90. package/dist/components/media-wallet/success-dialog.js.map +1 -1
  91. package/dist/components/pop-claim-button.cjs +2 -2
  92. package/dist/components/pop-claim-button.cjs.map +1 -1
  93. package/dist/components/pop-claim-button.js +2 -2
  94. package/dist/components/pop-claim-button.js.map +1 -1
  95. package/dist/components/pop-manage-page.cjs +3 -2
  96. package/dist/components/pop-manage-page.cjs.map +1 -1
  97. package/dist/components/pop-manage-page.js +3 -2
  98. package/dist/components/pop-manage-page.js.map +1 -1
  99. package/dist/components/portfolio-sponsorships.cjs +14 -7
  100. package/dist/components/portfolio-sponsorships.cjs.map +1 -1
  101. package/dist/components/portfolio-sponsorships.js +14 -7
  102. package/dist/components/portfolio-sponsorships.js.map +1 -1
  103. package/dist/components/service-collections-page.cjs +2 -2
  104. package/dist/components/service-collections-page.cjs.map +1 -1
  105. package/dist/components/service-collections-page.d.cts +2 -2
  106. package/dist/components/service-collections-page.d.ts +2 -2
  107. package/dist/components/service-collections-page.js +2 -2
  108. package/dist/components/service-collections-page.js.map +1 -1
  109. package/dist/components/sponsorship-offer-page.cjs +4 -4
  110. package/dist/components/sponsorship-offer-page.cjs.map +1 -1
  111. package/dist/components/sponsorship-offer-page.js +4 -4
  112. package/dist/components/sponsorship-offer-page.js.map +1 -1
  113. package/dist/components/transaction-success.cjs +2 -5
  114. package/dist/components/transaction-success.cjs.map +1 -1
  115. package/dist/components/transaction-success.js +3 -6
  116. package/dist/components/transaction-success.js.map +1 -1
  117. package/dist/components/transfer-collection-ownership.cjs +2 -5
  118. package/dist/components/transfer-collection-ownership.cjs.map +1 -1
  119. package/dist/components/transfer-collection-ownership.js +2 -5
  120. package/dist/components/transfer-collection-ownership.js.map +1 -1
  121. package/dist/index.cjs +3 -0
  122. package/dist/index.cjs.map +1 -1
  123. package/dist/index.d.cts +1 -0
  124. package/dist/index.d.ts +1 -0
  125. package/dist/index.js +2 -0
  126. package/dist/index.js.map +1 -1
  127. package/dist/utils/empty-messages.cjs +62 -0
  128. package/dist/utils/empty-messages.cjs.map +1 -0
  129. package/dist/utils/empty-messages.d.cts +40 -0
  130. package/dist/utils/empty-messages.d.ts +40 -0
  131. package/dist/utils/empty-messages.js +38 -0
  132. package/dist/utils/empty-messages.js.map +1 -0
  133. package/dist/utils/success-messages.cjs +52 -0
  134. package/dist/utils/success-messages.cjs.map +1 -1
  135. package/dist/utils/success-messages.d.cts +27 -0
  136. package/dist/utils/success-messages.d.ts +27 -0
  137. package/dist/utils/success-messages.js +52 -0
  138. package/dist/utils/success-messages.js.map +1 -1
  139. package/package.json +3 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/empty-messages.ts"],"sourcesContent":["export interface EmptyMessage {\n title: string;\n description: string;\n}\n\nexport const emptyMessages = {\n activity: {\n title: \"Activity appears here\",\n description: \"Mints, listings, offers and sales are recorded here as they happen.\",\n },\n walletActivity: {\n title: \"Activity appears here\",\n description: \"Transfers and purchases from this wallet are recorded here.\",\n },\n coins: {\n title: \"Coins appear here\",\n description: \"Each launched coin is listed with its market.\",\n },\n assetsOfType: {\n title: \"Assets of this type appear here\",\n description: \"They are listed as they are minted.\",\n },\n listings: {\n title: \"Listings appear here\",\n description: \"Assets listed for sale are shown here.\",\n },\n offers: {\n title: \"Offers appear here\",\n description: \"Open offers on assets are shown here.\",\n },\n heldLicenses: {\n title: \"Licenses you hold appear here\",\n description: \"You receive a license when a bid is accepted.\",\n },\n issuedLicenses: {\n title: \"Licenses issued on your work appear here\",\n description: \"A license you issue appears here when you accept a bid.\",\n },\n} satisfies Record<string, EmptyMessage>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,gBAAgB;AAAA,EAC3B,UAAU;AAAA,IACR,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,gBAAgB;AAAA,IACd,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,gBAAgB;AAAA,IACd,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AACF;","names":[]}
@@ -0,0 +1,40 @@
1
+ interface EmptyMessage {
2
+ title: string;
3
+ description: string;
4
+ }
5
+ declare const emptyMessages: {
6
+ activity: {
7
+ title: string;
8
+ description: string;
9
+ };
10
+ walletActivity: {
11
+ title: string;
12
+ description: string;
13
+ };
14
+ coins: {
15
+ title: string;
16
+ description: string;
17
+ };
18
+ assetsOfType: {
19
+ title: string;
20
+ description: string;
21
+ };
22
+ listings: {
23
+ title: string;
24
+ description: string;
25
+ };
26
+ offers: {
27
+ title: string;
28
+ description: string;
29
+ };
30
+ heldLicenses: {
31
+ title: string;
32
+ description: string;
33
+ };
34
+ issuedLicenses: {
35
+ title: string;
36
+ description: string;
37
+ };
38
+ };
39
+
40
+ export { type EmptyMessage, emptyMessages };
@@ -0,0 +1,40 @@
1
+ interface EmptyMessage {
2
+ title: string;
3
+ description: string;
4
+ }
5
+ declare const emptyMessages: {
6
+ activity: {
7
+ title: string;
8
+ description: string;
9
+ };
10
+ walletActivity: {
11
+ title: string;
12
+ description: string;
13
+ };
14
+ coins: {
15
+ title: string;
16
+ description: string;
17
+ };
18
+ assetsOfType: {
19
+ title: string;
20
+ description: string;
21
+ };
22
+ listings: {
23
+ title: string;
24
+ description: string;
25
+ };
26
+ offers: {
27
+ title: string;
28
+ description: string;
29
+ };
30
+ heldLicenses: {
31
+ title: string;
32
+ description: string;
33
+ };
34
+ issuedLicenses: {
35
+ title: string;
36
+ description: string;
37
+ };
38
+ };
39
+
40
+ export { type EmptyMessage, emptyMessages };
@@ -0,0 +1,38 @@
1
+ const emptyMessages = {
2
+ activity: {
3
+ title: "Activity appears here",
4
+ description: "Mints, listings, offers and sales are recorded here as they happen."
5
+ },
6
+ walletActivity: {
7
+ title: "Activity appears here",
8
+ description: "Transfers and purchases from this wallet are recorded here."
9
+ },
10
+ coins: {
11
+ title: "Coins appear here",
12
+ description: "Each launched coin is listed with its market."
13
+ },
14
+ assetsOfType: {
15
+ title: "Assets of this type appear here",
16
+ description: "They are listed as they are minted."
17
+ },
18
+ listings: {
19
+ title: "Listings appear here",
20
+ description: "Assets listed for sale are shown here."
21
+ },
22
+ offers: {
23
+ title: "Offers appear here",
24
+ description: "Open offers on assets are shown here."
25
+ },
26
+ heldLicenses: {
27
+ title: "Licenses you hold appear here",
28
+ description: "You receive a license when a bid is accepted."
29
+ },
30
+ issuedLicenses: {
31
+ title: "Licenses issued on your work appear here",
32
+ description: "A license you issue appears here when you accept a bid."
33
+ }
34
+ };
35
+ export {
36
+ emptyMessages
37
+ };
38
+ //# sourceMappingURL=empty-messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/empty-messages.ts"],"sourcesContent":["export interface EmptyMessage {\n title: string;\n description: string;\n}\n\nexport const emptyMessages = {\n activity: {\n title: \"Activity appears here\",\n description: \"Mints, listings, offers and sales are recorded here as they happen.\",\n },\n walletActivity: {\n title: \"Activity appears here\",\n description: \"Transfers and purchases from this wallet are recorded here.\",\n },\n coins: {\n title: \"Coins appear here\",\n description: \"Each launched coin is listed with its market.\",\n },\n assetsOfType: {\n title: \"Assets of this type appear here\",\n description: \"They are listed as they are minted.\",\n },\n listings: {\n title: \"Listings appear here\",\n description: \"Assets listed for sale are shown here.\",\n },\n offers: {\n title: \"Offers appear here\",\n description: \"Open offers on assets are shown here.\",\n },\n heldLicenses: {\n title: \"Licenses you hold appear here\",\n description: \"You receive a license when a bid is accepted.\",\n },\n issuedLicenses: {\n title: \"Licenses issued on your work appear here\",\n description: \"A license you issue appears here when you accept a bid.\",\n },\n} satisfies Record<string, EmptyMessage>;\n"],"mappings":"AAKO,MAAM,gBAAgB;AAAA,EAC3B,UAAU;AAAA,IACR,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,gBAAgB;AAAA,IACd,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,gBAAgB;AAAA,IACd,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AACF;","names":[]}
@@ -42,6 +42,58 @@ const successMessages = {
42
42
  title: "Transfer completed",
43
43
  description: `${name} is owned by ${to}.`
44
44
  }),
45
+ purchased: ({ name, quantity }) => ({
46
+ title: "Purchase completed",
47
+ 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.`
48
+ }),
49
+ commented: () => ({
50
+ title: "Comment published",
51
+ description: "Your comment is recorded onchain and appears here within about 30 seconds."
52
+ }),
53
+ claimed: () => ({
54
+ title: "Credential claimed",
55
+ description: "The proof of participation is recorded onchain in your wallet."
56
+ }),
57
+ bidPlaced: () => ({
58
+ title: "Bid placed",
59
+ description: "Your bid is recorded onchain."
60
+ }),
61
+ bidAccepted: () => ({
62
+ title: "Bid accepted",
63
+ description: "The license is minted to the sponsor's wallet."
64
+ }),
65
+ responseSent: () => ({
66
+ title: "Response sent",
67
+ description: "Your response is recorded onchain."
68
+ }),
69
+ proposalWithdrawn: () => ({
70
+ title: "Proposal withdrawn",
71
+ description: "The proposal is closed onchain."
72
+ }),
73
+ ownershipTransferred: ({ name, to }) => ({
74
+ title: "Ownership transferred",
75
+ description: `${to} is the owner of ${name}.`
76
+ }),
77
+ credentialIssued: () => ({
78
+ title: "Credential issued",
79
+ description: "The credential is recorded onchain in the participant's wallet."
80
+ }),
81
+ participantsPublished: ({ count }) => ({
82
+ title: "Participants published",
83
+ description: `The list of ${count} participant${count !== 1 ? "s" : ""} is recorded onchain. Each one claims with their own link.`
84
+ }),
85
+ walletActivated: () => ({
86
+ title: "Wallet activated",
87
+ description: "Your wallet is recorded onchain and can receive and send assets."
88
+ }),
89
+ sent: ({ amount, symbol, to }) => ({
90
+ title: "Transfer completed",
91
+ description: `${amount} ${symbol} sent to ${to}. The transfer is recorded onchain.`
92
+ }),
93
+ licenseGranted: ({ price }) => ({
94
+ title: "License granted",
95
+ description: `The remix is minted and listed for ${price}. The buyer completes the purchase from their portfolio.`
96
+ }),
45
97
  cancelled: ({ kind }) => ({
46
98
  title: `${kind.charAt(0).toUpperCase()}${kind.slice(1)} cancelled`,
47
99
  description: "The order is cancelled onchain."
@@ -1 +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 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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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,KAAK,OAAyC;AAAA,IAC1D,OAAO,GAAG,KAAK,OAAO,CAAC,EAAE,YAAY,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC;AAAA,IACtD,aAAa;AAAA,EACf;AACF;","names":[]}
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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,EAAE,MAAM,MAAM,OAAwD;AAAA,IAC7E,OAAO;AAAA,I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5C;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":[]}
@@ -23,6 +23,33 @@ declare const successMessages: {
23
23
  name: string;
24
24
  to: string;
25
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;
26
53
  cancelled: ({ kind }: {
27
54
  kind: string;
28
55
  }) => SuccessMessage;
@@ -23,6 +23,33 @@ declare const successMessages: {
23
23
  name: string;
24
24
  to: string;
25
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;
26
53
  cancelled: ({ kind }: {
27
54
  kind: string;
28
55
  }) => SuccessMessage;
@@ -19,6 +19,58 @@ const successMessages = {
19
19
  title: "Transfer completed",
20
20
  description: `${name} is owned by ${to}.`
21
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
+ }),
22
74
  cancelled: ({ kind }) => ({
23
75
  title: `${kind.charAt(0).toUpperCase()}${kind.slice(1)} cancelled`,
24
76
  description: "The order is cancelled onchain."
@@ -1 +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 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,KAAK,OAAyC;AAAA,IAC1D,OAAO,GAAG,KAAK,OAAO,CAAC,EAAE,YAAY,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC;AAAA,IACtD,aAAa;AAAA,EACf;AACF;","names":[]}
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;AA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;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.259.0",
3
+ "version": "0.261.0",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -75,6 +75,7 @@
75
75
  "react": ">=18.0.0",
76
76
  "react-dom": ">=18.0.0",
77
77
  "react-hook-form": ">=7.50.0",
78
+ "react-markdown": ">=9.0.1",
78
79
  "@hookform/resolvers": ">=3.10.0",
79
80
  "recharts": ">=2.0.0",
80
81
  "starknet": ">=8.0.0",
@@ -117,6 +118,7 @@
117
118
  "react": "^19.0.0",
118
119
  "react-dom": "^19.0.0",
119
120
  "react-hook-form": "^7.82.0",
121
+ "react-markdown": "9.0.1",
120
122
  "recharts": "^3.8.1",
121
123
  "starknet": "^10.0.2",
122
124
  "swr": "^2.4.1",