@medialane/ui 0.233.0 → 0.235.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.
- package/dist/components/account/input-otp.d.cts +2 -2
- package/dist/components/account/input-otp.d.ts +2 -2
- package/dist/components/badge.d.cts +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/launchpad/collection-create-form.cjs +302 -0
- package/dist/components/launchpad/collection-create-form.cjs.map +1 -0
- package/dist/components/launchpad/collection-create-form.d.cts +11 -0
- package/dist/components/launchpad/collection-create-form.d.ts +11 -0
- package/dist/components/launchpad/collection-create-form.js +275 -0
- package/dist/components/launchpad/collection-create-form.js.map +1 -0
- package/dist/components/launchpad/collection-create-presets.cjs +147 -0
- package/dist/components/launchpad/collection-create-presets.cjs.map +1 -0
- package/dist/components/launchpad/collection-create-presets.d.cts +60 -0
- package/dist/components/launchpad/collection-create-presets.d.ts +60 -0
- package/dist/components/launchpad/collection-create-presets.js +120 -0
- package/dist/components/launchpad/collection-create-presets.js.map +1 -0
- package/dist/components/launchpad/tier-mint-form.cjs +425 -0
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -0
- package/dist/components/launchpad/tier-mint-form.d.cts +13 -0
- package/dist/components/launchpad/tier-mint-form.d.ts +13 -0
- package/dist/components/launchpad/tier-mint-form.js +391 -0
- package/dist/components/launchpad/tier-mint-form.js.map +1 -0
- package/dist/components/launchpad/tier-mint-presets.cjs +96 -0
- package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -0
- package/dist/components/launchpad/tier-mint-presets.d.cts +58 -0
- package/dist/components/launchpad/tier-mint-presets.d.ts +58 -0
- package/dist/components/launchpad/tier-mint-presets.js +71 -0
- package/dist/components/launchpad/tier-mint-presets.js.map +1 -0
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/run-intent-calls.cjs +9 -2
- package/dist/utils/run-intent-calls.cjs.map +1 -1
- package/dist/utils/run-intent-calls.d.cts +10 -1
- package/dist/utils/run-intent-calls.d.ts +10 -1
- package/dist/utils/run-intent-calls.js +7 -1
- package/dist/utils/run-intent-calls.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var tier_mint_presets_exports = {};
|
|
20
|
+
__export(tier_mint_presets_exports, {
|
|
21
|
+
CLUB_TIER_PRESET: () => CLUB_TIER_PRESET,
|
|
22
|
+
TICKETS_TIER_PRESET: () => TICKETS_TIER_PRESET
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(tier_mint_presets_exports);
|
|
25
|
+
var import_lucide_react = require("lucide-react");
|
|
26
|
+
var import_use_tiers = require("../../utils/use-tiers.js");
|
|
27
|
+
const CLUB_TIER_PRESET = {
|
|
28
|
+
service: "ip-club",
|
|
29
|
+
predictNextId: import_use_tiers.predictNextMembershipId,
|
|
30
|
+
traitType: "IP Club Membership",
|
|
31
|
+
icon: import_lucide_react.Users,
|
|
32
|
+
iconClass: "text-brand-purple",
|
|
33
|
+
buttonClass: "bg-brand-purple",
|
|
34
|
+
hoverBorderClass: "hover:border-brand-purple/50",
|
|
35
|
+
uploadedClass: "text-brand-purple",
|
|
36
|
+
suggestExternalLink: false,
|
|
37
|
+
signedOut: { title: "Secure your account to create memberships", description: "Create a membership tier and mint its supply to your account." },
|
|
38
|
+
back: { href: "/launchpad/club", label: "\u2190 Back" },
|
|
39
|
+
notOwner: { message: "You don't own this club.", back: { href: "/launchpad/club", label: "\u2190 Back to clubs" } },
|
|
40
|
+
dialog: { title: "Create membership", workingLabel: "Creating your membership\u2026", firstStepLabel: "Upload membership metadata" },
|
|
41
|
+
success: { caption: "Your membership is ready", againLabel: "Create another membership" },
|
|
42
|
+
shell: {
|
|
43
|
+
title: "Create Membership",
|
|
44
|
+
subtitle: (name) => `Add a new membership tier to ${name ?? "your club"} and mint its supply to your wallet, ready to list.`
|
|
45
|
+
},
|
|
46
|
+
cardFallbackSymbol: "Club",
|
|
47
|
+
copy: {
|
|
48
|
+
imageHeading: "Membership image",
|
|
49
|
+
imageAlt: "Membership",
|
|
50
|
+
imageRequired: "Add a membership image.",
|
|
51
|
+
nameLabel: "Membership name",
|
|
52
|
+
nameRequired: "Membership name required",
|
|
53
|
+
namePlaceholder: "Kalamaha Fan Club \u2014 2026 Season Pass",
|
|
54
|
+
descriptionPlaceholder: "What does this membership unlock?",
|
|
55
|
+
validUntilHint: "Blank = lifetime membership.",
|
|
56
|
+
submit: "Create Membership"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const TICKETS_TIER_PRESET = {
|
|
60
|
+
service: "ip-tickets",
|
|
61
|
+
predictNextId: import_use_tiers.predictNextTicketId,
|
|
62
|
+
traitType: "IP Ticket",
|
|
63
|
+
icon: import_lucide_react.Ticket,
|
|
64
|
+
iconClass: "text-teal-500",
|
|
65
|
+
buttonClass: "bg-teal-600",
|
|
66
|
+
hoverBorderClass: "hover:border-teal-500/50",
|
|
67
|
+
uploadedClass: "text-teal-500",
|
|
68
|
+
suggestExternalLink: true,
|
|
69
|
+
signedOut: { title: "Secure your account to mint tickets", description: "Create a ticket type and mint its supply to your account." },
|
|
70
|
+
back: { href: "/launchpad/tickets", label: "\u2190 Back" },
|
|
71
|
+
notOwner: { message: "You don't own this tickets collection.", back: { href: "/launchpad/tickets", label: "\u2190 Back to tickets" } },
|
|
72
|
+
dialog: { title: "Mint tickets", workingLabel: "Minting your tickets\u2026", firstStepLabel: "Upload ticket metadata" },
|
|
73
|
+
success: { caption: "Your tickets are ready", againLabel: "Mint another ticket" },
|
|
74
|
+
shell: {
|
|
75
|
+
title: "Mint Tickets",
|
|
76
|
+
subtitle: (name) => `Add a new ticket type to ${name ?? "your collection"} and mint its supply to your wallet, ready to list.`
|
|
77
|
+
},
|
|
78
|
+
cardFallbackSymbol: "Tickets",
|
|
79
|
+
copy: {
|
|
80
|
+
imageHeading: "Ticket image",
|
|
81
|
+
imageAlt: "Ticket",
|
|
82
|
+
imageRequired: "Add a ticket image.",
|
|
83
|
+
nameLabel: "Ticket name",
|
|
84
|
+
nameRequired: "Ticket name required",
|
|
85
|
+
namePlaceholder: "Summer Concert 2026 \u2014 General Admission",
|
|
86
|
+
descriptionPlaceholder: "What does this ticket admit or unlock?",
|
|
87
|
+
validUntilHint: "Blank = always valid.",
|
|
88
|
+
submit: "Mint Tickets"
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
92
|
+
0 && (module.exports = {
|
|
93
|
+
CLUB_TIER_PRESET,
|
|
94
|
+
TICKETS_TIER_PRESET
|
|
95
|
+
});
|
|
96
|
+
//# sourceMappingURL=tier-mint-presets.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/tier-mint-presets.ts"],"sourcesContent":["import { Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport type { ApiClient } from \"@medialane/sdk\";\nimport { predictNextMembershipId, predictNextTicketId } from \"../../utils/use-tiers.js\";\n\nexport interface TierMintPreset {\n service: \"ip-club\" | \"ip-tickets\";\n predictNextId: (api: ApiClient, contract: string) => Promise<number>;\n traitType: string;\n icon: ElementType;\n iconClass: string;\n buttonClass: string;\n hoverBorderClass: string;\n uploadedClass: string;\n suggestExternalLink: boolean;\n signedOut: { title: string; description: string };\n back: { href: string; label: string };\n notOwner: { message: string; back: { href: string; label: string } };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { caption: string; againLabel: string };\n shell: { title: string; subtitle: (collectionName: string | null) => string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageAlt: string;\n imageRequired: string;\n nameLabel: string;\n nameRequired: string;\n namePlaceholder: string;\n descriptionPlaceholder: string;\n validUntilHint: string;\n submit: string;\n };\n}\n\nexport const CLUB_TIER_PRESET: TierMintPreset = {\n service: \"ip-club\",\n predictNextId: predictNextMembershipId,\n traitType: \"IP Club Membership\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n buttonClass: \"bg-brand-purple\",\n hoverBorderClass: \"hover:border-brand-purple/50\",\n uploadedClass: \"text-brand-purple\",\n suggestExternalLink: false,\n signedOut: { title: \"Secure your account to create memberships\", description: \"Create a membership tier and mint its supply to your account.\" },\n back: { href: \"/launchpad/club\", label: \"← Back\" },\n notOwner: { message: \"You don't own this club.\", back: { href: \"/launchpad/club\", label: \"← Back to clubs\" } },\n dialog: { title: \"Create membership\", workingLabel: \"Creating your membership…\", firstStepLabel: \"Upload membership metadata\" },\n success: { caption: \"Your membership is ready\", againLabel: \"Create another membership\" },\n shell: {\n title: \"Create Membership\",\n subtitle: (name) => `Add a new membership tier to ${name ?? \"your club\"} and mint its supply to your wallet, ready to list.`,\n },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: \"Membership image\",\n imageAlt: \"Membership\",\n imageRequired: \"Add a membership image.\",\n nameLabel: \"Membership name\",\n nameRequired: \"Membership name required\",\n namePlaceholder: \"Kalamaha Fan Club — 2026 Season Pass\",\n descriptionPlaceholder: \"What does this membership unlock?\",\n validUntilHint: \"Blank = lifetime membership.\",\n submit: \"Create Membership\",\n },\n};\n\nexport const TICKETS_TIER_PRESET: TierMintPreset = {\n service: \"ip-tickets\",\n predictNextId: predictNextTicketId,\n traitType: \"IP Ticket\",\n icon: Ticket,\n iconClass: \"text-teal-500\",\n buttonClass: \"bg-teal-600\",\n hoverBorderClass: \"hover:border-teal-500/50\",\n uploadedClass: \"text-teal-500\",\n suggestExternalLink: true,\n signedOut: { title: \"Secure your account to mint tickets\", description: \"Create a ticket type and mint its supply to your account.\" },\n back: { href: \"/launchpad/tickets\", label: \"← Back\" },\n notOwner: { message: \"You don't own this tickets collection.\", back: { href: \"/launchpad/tickets\", label: \"← Back to tickets\" } },\n dialog: { title: \"Mint tickets\", workingLabel: \"Minting your tickets…\", firstStepLabel: \"Upload ticket metadata\" },\n success: { caption: \"Your tickets are ready\", againLabel: \"Mint another ticket\" },\n shell: {\n title: \"Mint Tickets\",\n subtitle: (name) => `Add a new ticket type to ${name ?? \"your collection\"} and mint its supply to your wallet, ready to list.`,\n },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: \"Ticket image\",\n imageAlt: \"Ticket\",\n imageRequired: \"Add a ticket image.\",\n nameLabel: \"Ticket name\",\n nameRequired: \"Ticket name required\",\n namePlaceholder: \"Summer Concert 2026 — General Admission\",\n descriptionPlaceholder: \"What does this ticket admit or unlock?\",\n validUntilHint: \"Blank = always valid.\",\n submit: \"Mint Tickets\",\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA8B;AAG9B,uBAA6D;AAgCtD,MAAM,mBAAmC;AAAA,EAC9C,SAAS;AAAA,EACT,eAAe;AAAA,EACf,WAAW;AAAA,EACX,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,WAAW,EAAE,OAAO,6CAA6C,aAAa,gEAAgE;AAAA,EAC9I,MAAM,EAAE,MAAM,mBAAmB,OAAO,cAAS;AAAA,EACjD,UAAU,EAAE,SAAS,4BAA4B,MAAM,EAAE,MAAM,mBAAmB,OAAO,uBAAkB,EAAE;AAAA,EAC7G,QAAQ,EAAE,OAAO,qBAAqB,cAAc,kCAA6B,gBAAgB,6BAA6B;AAAA,EAC9H,SAAS,EAAE,SAAS,4BAA4B,YAAY,4BAA4B;AAAA,EACxF,OAAO;AAAA,IACL,OAAO;AAAA,IACP,UAAU,CAAC,SAAS,gCAAgC,QAAQ,WAAW;AAAA,EACzE;AAAA,EACA,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,UAAU;AAAA,IACV,eAAe;AAAA,IACf,WAAW;AAAA,IACX,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,wBAAwB;AAAA,IACxB,gBAAgB;AAAA,IAChB,QAAQ;AAAA,EACV;AACF;AAEO,MAAM,sBAAsC;AAAA,EACjD,SAAS;AAAA,EACT,eAAe;AAAA,EACf,WAAW;AAAA,EACX,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,WAAW,EAAE,OAAO,uCAAuC,aAAa,4DAA4D;AAAA,EACpI,MAAM,EAAE,MAAM,sBAAsB,OAAO,cAAS;AAAA,EACpD,UAAU,EAAE,SAAS,0CAA0C,MAAM,EAAE,MAAM,sBAAsB,OAAO,yBAAoB,EAAE;AAAA,EAChI,QAAQ,EAAE,OAAO,gBAAgB,cAAc,8BAAyB,gBAAgB,yBAAyB;AAAA,EACjH,SAAS,EAAE,SAAS,0BAA0B,YAAY,sBAAsB;AAAA,EAChF,OAAO;AAAA,IACL,OAAO;AAAA,IACP,UAAU,CAAC,SAAS,4BAA4B,QAAQ,iBAAiB;AAAA,EAC3E;AAAA,EACA,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,UAAU;AAAA,IACV,eAAe;AAAA,IACf,WAAW;AAAA,IACX,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,wBAAwB;AAAA,IACxB,gBAAgB;AAAA,IAChB,QAAQ;AAAA,EACV;AACF;","names":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { ApiClient } from '@medialane/sdk';
|
|
3
|
+
|
|
4
|
+
interface TierMintPreset {
|
|
5
|
+
service: "ip-club" | "ip-tickets";
|
|
6
|
+
predictNextId: (api: ApiClient, contract: string) => Promise<number>;
|
|
7
|
+
traitType: string;
|
|
8
|
+
icon: ElementType;
|
|
9
|
+
iconClass: string;
|
|
10
|
+
buttonClass: string;
|
|
11
|
+
hoverBorderClass: string;
|
|
12
|
+
uploadedClass: string;
|
|
13
|
+
suggestExternalLink: boolean;
|
|
14
|
+
signedOut: {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
back: {
|
|
19
|
+
href: string;
|
|
20
|
+
label: string;
|
|
21
|
+
};
|
|
22
|
+
notOwner: {
|
|
23
|
+
message: string;
|
|
24
|
+
back: {
|
|
25
|
+
href: string;
|
|
26
|
+
label: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
dialog: {
|
|
30
|
+
title: string;
|
|
31
|
+
workingLabel: string;
|
|
32
|
+
firstStepLabel: string;
|
|
33
|
+
};
|
|
34
|
+
success: {
|
|
35
|
+
caption: string;
|
|
36
|
+
againLabel: string;
|
|
37
|
+
};
|
|
38
|
+
shell: {
|
|
39
|
+
title: string;
|
|
40
|
+
subtitle: (collectionName: string | null) => string;
|
|
41
|
+
};
|
|
42
|
+
cardFallbackSymbol: string;
|
|
43
|
+
copy: {
|
|
44
|
+
imageHeading: string;
|
|
45
|
+
imageAlt: string;
|
|
46
|
+
imageRequired: string;
|
|
47
|
+
nameLabel: string;
|
|
48
|
+
nameRequired: string;
|
|
49
|
+
namePlaceholder: string;
|
|
50
|
+
descriptionPlaceholder: string;
|
|
51
|
+
validUntilHint: string;
|
|
52
|
+
submit: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
declare const CLUB_TIER_PRESET: TierMintPreset;
|
|
56
|
+
declare const TICKETS_TIER_PRESET: TierMintPreset;
|
|
57
|
+
|
|
58
|
+
export { CLUB_TIER_PRESET, TICKETS_TIER_PRESET, type TierMintPreset };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { ApiClient } from '@medialane/sdk';
|
|
3
|
+
|
|
4
|
+
interface TierMintPreset {
|
|
5
|
+
service: "ip-club" | "ip-tickets";
|
|
6
|
+
predictNextId: (api: ApiClient, contract: string) => Promise<number>;
|
|
7
|
+
traitType: string;
|
|
8
|
+
icon: ElementType;
|
|
9
|
+
iconClass: string;
|
|
10
|
+
buttonClass: string;
|
|
11
|
+
hoverBorderClass: string;
|
|
12
|
+
uploadedClass: string;
|
|
13
|
+
suggestExternalLink: boolean;
|
|
14
|
+
signedOut: {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
back: {
|
|
19
|
+
href: string;
|
|
20
|
+
label: string;
|
|
21
|
+
};
|
|
22
|
+
notOwner: {
|
|
23
|
+
message: string;
|
|
24
|
+
back: {
|
|
25
|
+
href: string;
|
|
26
|
+
label: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
dialog: {
|
|
30
|
+
title: string;
|
|
31
|
+
workingLabel: string;
|
|
32
|
+
firstStepLabel: string;
|
|
33
|
+
};
|
|
34
|
+
success: {
|
|
35
|
+
caption: string;
|
|
36
|
+
againLabel: string;
|
|
37
|
+
};
|
|
38
|
+
shell: {
|
|
39
|
+
title: string;
|
|
40
|
+
subtitle: (collectionName: string | null) => string;
|
|
41
|
+
};
|
|
42
|
+
cardFallbackSymbol: string;
|
|
43
|
+
copy: {
|
|
44
|
+
imageHeading: string;
|
|
45
|
+
imageAlt: string;
|
|
46
|
+
imageRequired: string;
|
|
47
|
+
nameLabel: string;
|
|
48
|
+
nameRequired: string;
|
|
49
|
+
namePlaceholder: string;
|
|
50
|
+
descriptionPlaceholder: string;
|
|
51
|
+
validUntilHint: string;
|
|
52
|
+
submit: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
declare const CLUB_TIER_PRESET: TierMintPreset;
|
|
56
|
+
declare const TICKETS_TIER_PRESET: TierMintPreset;
|
|
57
|
+
|
|
58
|
+
export { CLUB_TIER_PRESET, TICKETS_TIER_PRESET, type TierMintPreset };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Ticket, Users } from "lucide-react";
|
|
2
|
+
import { predictNextMembershipId, predictNextTicketId } from "../../utils/use-tiers.js";
|
|
3
|
+
const CLUB_TIER_PRESET = {
|
|
4
|
+
service: "ip-club",
|
|
5
|
+
predictNextId: predictNextMembershipId,
|
|
6
|
+
traitType: "IP Club Membership",
|
|
7
|
+
icon: Users,
|
|
8
|
+
iconClass: "text-brand-purple",
|
|
9
|
+
buttonClass: "bg-brand-purple",
|
|
10
|
+
hoverBorderClass: "hover:border-brand-purple/50",
|
|
11
|
+
uploadedClass: "text-brand-purple",
|
|
12
|
+
suggestExternalLink: false,
|
|
13
|
+
signedOut: { title: "Secure your account to create memberships", description: "Create a membership tier and mint its supply to your account." },
|
|
14
|
+
back: { href: "/launchpad/club", label: "\u2190 Back" },
|
|
15
|
+
notOwner: { message: "You don't own this club.", back: { href: "/launchpad/club", label: "\u2190 Back to clubs" } },
|
|
16
|
+
dialog: { title: "Create membership", workingLabel: "Creating your membership\u2026", firstStepLabel: "Upload membership metadata" },
|
|
17
|
+
success: { caption: "Your membership is ready", againLabel: "Create another membership" },
|
|
18
|
+
shell: {
|
|
19
|
+
title: "Create Membership",
|
|
20
|
+
subtitle: (name) => `Add a new membership tier to ${name ?? "your club"} and mint its supply to your wallet, ready to list.`
|
|
21
|
+
},
|
|
22
|
+
cardFallbackSymbol: "Club",
|
|
23
|
+
copy: {
|
|
24
|
+
imageHeading: "Membership image",
|
|
25
|
+
imageAlt: "Membership",
|
|
26
|
+
imageRequired: "Add a membership image.",
|
|
27
|
+
nameLabel: "Membership name",
|
|
28
|
+
nameRequired: "Membership name required",
|
|
29
|
+
namePlaceholder: "Kalamaha Fan Club \u2014 2026 Season Pass",
|
|
30
|
+
descriptionPlaceholder: "What does this membership unlock?",
|
|
31
|
+
validUntilHint: "Blank = lifetime membership.",
|
|
32
|
+
submit: "Create Membership"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const TICKETS_TIER_PRESET = {
|
|
36
|
+
service: "ip-tickets",
|
|
37
|
+
predictNextId: predictNextTicketId,
|
|
38
|
+
traitType: "IP Ticket",
|
|
39
|
+
icon: Ticket,
|
|
40
|
+
iconClass: "text-teal-500",
|
|
41
|
+
buttonClass: "bg-teal-600",
|
|
42
|
+
hoverBorderClass: "hover:border-teal-500/50",
|
|
43
|
+
uploadedClass: "text-teal-500",
|
|
44
|
+
suggestExternalLink: true,
|
|
45
|
+
signedOut: { title: "Secure your account to mint tickets", description: "Create a ticket type and mint its supply to your account." },
|
|
46
|
+
back: { href: "/launchpad/tickets", label: "\u2190 Back" },
|
|
47
|
+
notOwner: { message: "You don't own this tickets collection.", back: { href: "/launchpad/tickets", label: "\u2190 Back to tickets" } },
|
|
48
|
+
dialog: { title: "Mint tickets", workingLabel: "Minting your tickets\u2026", firstStepLabel: "Upload ticket metadata" },
|
|
49
|
+
success: { caption: "Your tickets are ready", againLabel: "Mint another ticket" },
|
|
50
|
+
shell: {
|
|
51
|
+
title: "Mint Tickets",
|
|
52
|
+
subtitle: (name) => `Add a new ticket type to ${name ?? "your collection"} and mint its supply to your wallet, ready to list.`
|
|
53
|
+
},
|
|
54
|
+
cardFallbackSymbol: "Tickets",
|
|
55
|
+
copy: {
|
|
56
|
+
imageHeading: "Ticket image",
|
|
57
|
+
imageAlt: "Ticket",
|
|
58
|
+
imageRequired: "Add a ticket image.",
|
|
59
|
+
nameLabel: "Ticket name",
|
|
60
|
+
nameRequired: "Ticket name required",
|
|
61
|
+
namePlaceholder: "Summer Concert 2026 \u2014 General Admission",
|
|
62
|
+
descriptionPlaceholder: "What does this ticket admit or unlock?",
|
|
63
|
+
validUntilHint: "Blank = always valid.",
|
|
64
|
+
submit: "Mint Tickets"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
CLUB_TIER_PRESET,
|
|
69
|
+
TICKETS_TIER_PRESET
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=tier-mint-presets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/tier-mint-presets.ts"],"sourcesContent":["import { Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport type { ApiClient } from \"@medialane/sdk\";\nimport { predictNextMembershipId, predictNextTicketId } from \"../../utils/use-tiers.js\";\n\nexport interface TierMintPreset {\n service: \"ip-club\" | \"ip-tickets\";\n predictNextId: (api: ApiClient, contract: string) => Promise<number>;\n traitType: string;\n icon: ElementType;\n iconClass: string;\n buttonClass: string;\n hoverBorderClass: string;\n uploadedClass: string;\n suggestExternalLink: boolean;\n signedOut: { title: string; description: string };\n back: { href: string; label: string };\n notOwner: { message: string; back: { href: string; label: string } };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { caption: string; againLabel: string };\n shell: { title: string; subtitle: (collectionName: string | null) => string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageAlt: string;\n imageRequired: string;\n nameLabel: string;\n nameRequired: string;\n namePlaceholder: string;\n descriptionPlaceholder: string;\n validUntilHint: string;\n submit: string;\n };\n}\n\nexport const CLUB_TIER_PRESET: TierMintPreset = {\n service: \"ip-club\",\n predictNextId: predictNextMembershipId,\n traitType: \"IP Club Membership\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n buttonClass: \"bg-brand-purple\",\n hoverBorderClass: \"hover:border-brand-purple/50\",\n uploadedClass: \"text-brand-purple\",\n suggestExternalLink: false,\n signedOut: { title: \"Secure your account to create memberships\", description: \"Create a membership tier and mint its supply to your account.\" },\n back: { href: \"/launchpad/club\", label: \"← Back\" },\n notOwner: { message: \"You don't own this club.\", back: { href: \"/launchpad/club\", label: \"← Back to clubs\" } },\n dialog: { title: \"Create membership\", workingLabel: \"Creating your membership…\", firstStepLabel: \"Upload membership metadata\" },\n success: { caption: \"Your membership is ready\", againLabel: \"Create another membership\" },\n shell: {\n title: \"Create Membership\",\n subtitle: (name) => `Add a new membership tier to ${name ?? \"your club\"} and mint its supply to your wallet, ready to list.`,\n },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: \"Membership image\",\n imageAlt: \"Membership\",\n imageRequired: \"Add a membership image.\",\n nameLabel: \"Membership name\",\n nameRequired: \"Membership name required\",\n namePlaceholder: \"Kalamaha Fan Club — 2026 Season Pass\",\n descriptionPlaceholder: \"What does this membership unlock?\",\n validUntilHint: \"Blank = lifetime membership.\",\n submit: \"Create Membership\",\n },\n};\n\nexport const TICKETS_TIER_PRESET: TierMintPreset = {\n service: \"ip-tickets\",\n predictNextId: predictNextTicketId,\n traitType: \"IP Ticket\",\n icon: Ticket,\n iconClass: \"text-teal-500\",\n buttonClass: \"bg-teal-600\",\n hoverBorderClass: \"hover:border-teal-500/50\",\n uploadedClass: \"text-teal-500\",\n suggestExternalLink: true,\n signedOut: { title: \"Secure your account to mint tickets\", description: \"Create a ticket type and mint its supply to your account.\" },\n back: { href: \"/launchpad/tickets\", label: \"← Back\" },\n notOwner: { message: \"You don't own this tickets collection.\", back: { href: \"/launchpad/tickets\", label: \"← Back to tickets\" } },\n dialog: { title: \"Mint tickets\", workingLabel: \"Minting your tickets…\", firstStepLabel: \"Upload ticket metadata\" },\n success: { caption: \"Your tickets are ready\", againLabel: \"Mint another ticket\" },\n shell: {\n title: \"Mint Tickets\",\n subtitle: (name) => `Add a new ticket type to ${name ?? \"your collection\"} and mint its supply to your wallet, ready to list.`,\n },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: \"Ticket image\",\n imageAlt: \"Ticket\",\n imageRequired: \"Add a ticket image.\",\n nameLabel: \"Ticket name\",\n nameRequired: \"Ticket name required\",\n namePlaceholder: \"Summer Concert 2026 — General Admission\",\n descriptionPlaceholder: \"What does this ticket admit or unlock?\",\n validUntilHint: \"Blank = always valid.\",\n submit: \"Mint Tickets\",\n },\n};\n"],"mappings":"AAAA,SAAS,QAAQ,aAAa;AAG9B,SAAS,yBAAyB,2BAA2B;AAgCtD,MAAM,mBAAmC;AAAA,EAC9C,SAAS;AAAA,EACT,eAAe;AAAA,EACf,WAAW;AAAA,EACX,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,WAAW,EAAE,OAAO,6CAA6C,aAAa,gEAAgE;AAAA,EAC9I,MAAM,EAAE,MAAM,mBAAmB,OAAO,cAAS;AAAA,EACjD,UAAU,EAAE,SAAS,4BAA4B,MAAM,EAAE,MAAM,mBAAmB,OAAO,uBAAkB,EAAE;AAAA,EAC7G,QAAQ,EAAE,OAAO,qBAAqB,cAAc,kCAA6B,gBAAgB,6BAA6B;AAAA,EAC9H,SAAS,EAAE,SAAS,4BAA4B,YAAY,4BAA4B;AAAA,EACxF,OAAO;AAAA,IACL,OAAO;AAAA,IACP,UAAU,CAAC,SAAS,gCAAgC,QAAQ,WAAW;AAAA,EACzE;AAAA,EACA,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,UAAU;AAAA,IACV,eAAe;AAAA,IACf,WAAW;AAAA,IACX,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,wBAAwB;AAAA,IACxB,gBAAgB;AAAA,IAChB,QAAQ;AAAA,EACV;AACF;AAEO,MAAM,sBAAsC;AAAA,EACjD,SAAS;AAAA,EACT,eAAe;AAAA,EACf,WAAW;AAAA,EACX,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,WAAW,EAAE,OAAO,uCAAuC,aAAa,4DAA4D;AAAA,EACpI,MAAM,EAAE,MAAM,sBAAsB,OAAO,cAAS;AAAA,EACpD,UAAU,EAAE,SAAS,0CAA0C,MAAM,EAAE,MAAM,sBAAsB,OAAO,yBAAoB,EAAE;AAAA,EAChI,QAAQ,EAAE,OAAO,gBAAgB,cAAc,8BAAyB,gBAAgB,yBAAyB;AAAA,EACjH,SAAS,EAAE,SAAS,0BAA0B,YAAY,sBAAsB;AAAA,EAChF,OAAO;AAAA,IACL,OAAO;AAAA,IACP,UAAU,CAAC,SAAS,4BAA4B,QAAQ,iBAAiB;AAAA,EAC3E;AAAA,EACA,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,UAAU;AAAA,IACV,eAAe;AAAA,IACf,WAAW;AAAA,IACX,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,wBAAwB;AAAA,IACxB,gBAAgB;AAAA,IAChB,QAAQ;AAAA,EACV;AACF;","names":[]}
|
|
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
10
10
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
11
11
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const sheetVariants: (props?: ({
|
|
13
|
-
side?: "
|
|
13
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
16
16
|
overlayClassName?: string;
|
|
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
10
10
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
11
11
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const sheetVariants: (props?: ({
|
|
13
|
-
side?: "
|
|
13
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
16
16
|
overlayClassName?: string;
|
package/dist/index.cjs
CHANGED
|
@@ -65,6 +65,8 @@ __export(index_exports, {
|
|
|
65
65
|
BadgeShelf: () => import_badge_shelf.BadgeShelf,
|
|
66
66
|
BadgeUnlocked: () => import_badge_unlocked.BadgeUnlocked,
|
|
67
67
|
Button: () => import_button.Button,
|
|
68
|
+
CLUB_PRESET: () => import_collection_create_presets.CLUB_PRESET,
|
|
69
|
+
CLUB_TIER_PRESET: () => import_tier_mint_presets.CLUB_TIER_PRESET,
|
|
68
70
|
COIN_GRID: () => import_coin_row.COIN_GRID,
|
|
69
71
|
COIN_KINDS: () => import_coins.COIN_KINDS,
|
|
70
72
|
COLLECTION_TYPES: () => import_new_collection_menu.COLLECTION_TYPES,
|
|
@@ -92,6 +94,7 @@ __export(index_exports, {
|
|
|
92
94
|
CollectionActivityTab: () => import_collection_activity_tab.CollectionActivityTab,
|
|
93
95
|
CollectionCard: () => import_collection_card.CollectionCard,
|
|
94
96
|
CollectionCardSkeleton: () => import_collection_card.CollectionCardSkeleton,
|
|
97
|
+
CollectionCreateForm: () => import_collection_create_form.CollectionCreateForm,
|
|
95
98
|
CollectionFiltersBody: () => import_collection_filters.CollectionFiltersBody,
|
|
96
99
|
CollectionFiltersDialog: () => import_collection_filters_dialog.CollectionFiltersDialog,
|
|
97
100
|
CollectionFiltersTrigger: () => import_collection_filters.CollectionFiltersTrigger,
|
|
@@ -167,6 +170,7 @@ __export(index_exports, {
|
|
|
167
170
|
Dropzone: () => import_dropzone.Dropzone,
|
|
168
171
|
DurationPicker: () => import_marketplace_dialog_primitives.DurationPicker,
|
|
169
172
|
EASE_OUT: () => import_motion_primitives.EASE_OUT,
|
|
173
|
+
EDITIONS_PRESET: () => import_collection_create_presets.EDITIONS_PRESET,
|
|
170
174
|
EMBED_PLATFORM_META: () => import_ip_templates.EMBED_PLATFORM_META,
|
|
171
175
|
EMPTY_SPONSORSHIP_TERMS: () => import_license_terms_builder.EMPTY_SPONSORSHIP_TERMS,
|
|
172
176
|
EditionsPage: () => import_editions_page.EditionsPage,
|
|
@@ -307,6 +311,7 @@ __export(index_exports, {
|
|
|
307
311
|
RewardsSection: () => import_rewards_section.RewardsSection,
|
|
308
312
|
SEARCH_MIN_LENGTH: () => import_use_search.SEARCH_MIN_LENGTH,
|
|
309
313
|
SERVICE_HUES: () => import_launchpad_services.SERVICE_HUES,
|
|
314
|
+
SINGLE_PRESET: () => import_collection_create_presets.SINGLE_PRESET,
|
|
310
315
|
SOCIAL_PLATFORM_META: () => import_ip_templates.SOCIAL_PLATFORM_META,
|
|
311
316
|
SORT_OPTIONS: () => import_collection_filters.SORT_OPTIONS,
|
|
312
317
|
SPRING: () => import_motion_primitives.SPRING,
|
|
@@ -350,6 +355,8 @@ __export(index_exports, {
|
|
|
350
355
|
SuccessView: () => import_success_view.SuccessView,
|
|
351
356
|
Switch: () => import_switch.Switch,
|
|
352
357
|
TEMPLATE_TRAIT_TYPES: () => import_ip_templates.TEMPLATE_TRAIT_TYPES,
|
|
358
|
+
TICKETS_PRESET: () => import_collection_create_presets.TICKETS_PRESET,
|
|
359
|
+
TICKETS_TIER_PRESET: () => import_tier_mint_presets.TICKETS_TIER_PRESET,
|
|
353
360
|
TYPE_FILTERS: () => import_activity.TYPE_FILTERS,
|
|
354
361
|
TabEmptyState: () => import_tab_empty_state.TabEmptyState,
|
|
355
362
|
Tabs: () => import_tabs.Tabs,
|
|
@@ -358,6 +365,7 @@ __export(index_exports, {
|
|
|
358
365
|
TabsTrigger: () => import_tabs.TabsTrigger,
|
|
359
366
|
Textarea: () => import_textarea.Textarea,
|
|
360
367
|
ThemeAmbientBackground: () => import_theme_ambient_background.ThemeAmbientBackground,
|
|
368
|
+
TierMintForm: () => import_tier_mint_form.TierMintForm,
|
|
361
369
|
ToggleGroup: () => import_create_form_primitives.ToggleGroup,
|
|
362
370
|
TokenAmount: () => import_token_glyph.TokenAmount,
|
|
363
371
|
TokenCard: () => import_token_card.TokenCard,
|
|
@@ -709,6 +717,10 @@ var import_rewards_section = require("./components/rewards-section.js");
|
|
|
709
717
|
var import_action_button = require("./components/action-button.js");
|
|
710
718
|
var import_gradient_button = require("./components/gradient-button.js");
|
|
711
719
|
var import_coin_launch_preview = require("./components/coin-launch-preview.js");
|
|
720
|
+
var import_collection_create_form = require("./components/launchpad/collection-create-form.js");
|
|
721
|
+
var import_collection_create_presets = require("./components/launchpad/collection-create-presets.js");
|
|
722
|
+
var import_tier_mint_form = require("./components/launchpad/tier-mint-form.js");
|
|
723
|
+
var import_tier_mint_presets = require("./components/launchpad/tier-mint-presets.js");
|
|
712
724
|
var import_wallet_required = require("./components/wallet-required.js");
|
|
713
725
|
var import_claim_route_shell = require("./components/claim-route-shell.js");
|
|
714
726
|
var import_use_launchpad_image_upload = require("./utils/use-launchpad-image-upload.js");
|
|
@@ -847,6 +859,8 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
847
859
|
BadgeShelf,
|
|
848
860
|
BadgeUnlocked,
|
|
849
861
|
Button,
|
|
862
|
+
CLUB_PRESET,
|
|
863
|
+
CLUB_TIER_PRESET,
|
|
850
864
|
COIN_GRID,
|
|
851
865
|
COIN_KINDS,
|
|
852
866
|
COLLECTION_TYPES,
|
|
@@ -874,6 +888,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
874
888
|
CollectionActivityTab,
|
|
875
889
|
CollectionCard,
|
|
876
890
|
CollectionCardSkeleton,
|
|
891
|
+
CollectionCreateForm,
|
|
877
892
|
CollectionFiltersBody,
|
|
878
893
|
CollectionFiltersDialog,
|
|
879
894
|
CollectionFiltersTrigger,
|
|
@@ -949,6 +964,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
949
964
|
Dropzone,
|
|
950
965
|
DurationPicker,
|
|
951
966
|
EASE_OUT,
|
|
967
|
+
EDITIONS_PRESET,
|
|
952
968
|
EMBED_PLATFORM_META,
|
|
953
969
|
EMPTY_SPONSORSHIP_TERMS,
|
|
954
970
|
EditionsPage,
|
|
@@ -1089,6 +1105,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1089
1105
|
RewardsSection,
|
|
1090
1106
|
SEARCH_MIN_LENGTH,
|
|
1091
1107
|
SERVICE_HUES,
|
|
1108
|
+
SINGLE_PRESET,
|
|
1092
1109
|
SOCIAL_PLATFORM_META,
|
|
1093
1110
|
SORT_OPTIONS,
|
|
1094
1111
|
SPRING,
|
|
@@ -1132,6 +1149,8 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1132
1149
|
SuccessView,
|
|
1133
1150
|
Switch,
|
|
1134
1151
|
TEMPLATE_TRAIT_TYPES,
|
|
1152
|
+
TICKETS_PRESET,
|
|
1153
|
+
TICKETS_TIER_PRESET,
|
|
1135
1154
|
TYPE_FILTERS,
|
|
1136
1155
|
TabEmptyState,
|
|
1137
1156
|
Tabs,
|
|
@@ -1140,6 +1159,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
1140
1159
|
TabsTrigger,
|
|
1141
1160
|
Textarea,
|
|
1142
1161
|
ThemeAmbientBackground,
|
|
1162
|
+
TierMintForm,
|
|
1143
1163
|
ToggleGroup,
|
|
1144
1164
|
TokenAmount,
|
|
1145
1165
|
TokenCard,
|