@medialane/ui 0.232.0 → 0.234.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 (59) hide show
  1. package/dist/components/account/input-otp.d.cts +2 -2
  2. package/dist/components/account/input-otp.d.ts +2 -2
  3. package/dist/components/badge.d.cts +1 -1
  4. package/dist/components/badge.d.ts +1 -1
  5. package/dist/components/button.d.cts +2 -2
  6. package/dist/components/button.d.ts +2 -2
  7. package/dist/components/claim-route-shell.cjs +35 -0
  8. package/dist/components/claim-route-shell.cjs.map +1 -0
  9. package/dist/components/claim-route-shell.d.cts +7 -0
  10. package/dist/components/claim-route-shell.d.ts +7 -0
  11. package/dist/components/claim-route-shell.js +11 -0
  12. package/dist/components/claim-route-shell.js.map +1 -0
  13. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  14. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  15. package/dist/components/launchpad/collection-create-form.cjs +302 -0
  16. package/dist/components/launchpad/collection-create-form.cjs.map +1 -0
  17. package/dist/components/launchpad/collection-create-form.d.cts +11 -0
  18. package/dist/components/launchpad/collection-create-form.d.ts +11 -0
  19. package/dist/components/launchpad/collection-create-form.js +275 -0
  20. package/dist/components/launchpad/collection-create-form.js.map +1 -0
  21. package/dist/components/launchpad/collection-create-presets.cjs +147 -0
  22. package/dist/components/launchpad/collection-create-presets.cjs.map +1 -0
  23. package/dist/components/launchpad/collection-create-presets.d.cts +60 -0
  24. package/dist/components/launchpad/collection-create-presets.d.ts +60 -0
  25. package/dist/components/launchpad/collection-create-presets.js +120 -0
  26. package/dist/components/launchpad/collection-create-presets.js.map +1 -0
  27. package/dist/components/rewards/reward-earned.cjs +38 -34
  28. package/dist/components/rewards/reward-earned.cjs.map +1 -1
  29. package/dist/components/rewards/reward-earned.d.cts +2 -3
  30. package/dist/components/rewards/reward-earned.d.ts +2 -3
  31. package/dist/components/rewards/reward-earned.js +37 -33
  32. package/dist/components/rewards/reward-earned.js.map +1 -1
  33. package/dist/components/sheet.d.cts +1 -1
  34. package/dist/components/sheet.d.ts +1 -1
  35. package/dist/components/wallet-required.cjs +62 -0
  36. package/dist/components/wallet-required.cjs.map +1 -0
  37. package/dist/components/wallet-required.d.cts +13 -0
  38. package/dist/components/wallet-required.d.ts +13 -0
  39. package/dist/components/wallet-required.js +38 -0
  40. package/dist/components/wallet-required.js.map +1 -0
  41. package/dist/index.cjs +26 -2
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.cts +7 -1
  44. package/dist/index.d.ts +7 -1
  45. package/dist/index.js +17 -2
  46. package/dist/index.js.map +1 -1
  47. package/dist/utils/portfolio-cache.cjs +34 -0
  48. package/dist/utils/portfolio-cache.cjs.map +1 -0
  49. package/dist/utils/portfolio-cache.d.cts +3 -0
  50. package/dist/utils/portfolio-cache.d.ts +3 -0
  51. package/dist/utils/portfolio-cache.js +10 -0
  52. package/dist/utils/portfolio-cache.js.map +1 -0
  53. package/dist/utils/use-launchpad-image-upload.cjs +103 -0
  54. package/dist/utils/use-launchpad-image-upload.cjs.map +1 -0
  55. package/dist/utils/use-launchpad-image-upload.d.cts +21 -0
  56. package/dist/utils/use-launchpad-image-upload.d.ts +21 -0
  57. package/dist/utils/use-launchpad-image-upload.js +79 -0
  58. package/dist/utils/use-launchpad-image-upload.js.map +1 -0
  59. package/package.json +3 -1
@@ -0,0 +1,275 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useState } from "react";
4
+ import { useForm } from "react-hook-form";
5
+ import { zodResolver } from "@hookform/resolvers/zod";
6
+ import * as z from "zod";
7
+ import { ImagePlus, Loader2, X } from "lucide-react";
8
+ import {
9
+ FIELD_LIMITS,
10
+ acceptFor,
11
+ buildCollectionMetadata,
12
+ collectionHref,
13
+ getCoordinates,
14
+ profileHref
15
+ } from "@medialane/sdk";
16
+ import { createdCollectionFromReceipt, deployedCollectionFromReceipt } from "@medialane/sdk/starknet";
17
+ import Image from "../image.js";
18
+ import { Button } from "../button.js";
19
+ import { Input } from "../input.js";
20
+ import { Textarea } from "../textarea.js";
21
+ import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "../form.js";
22
+ import { ClaimRouteShell } from "../claim-route-shell.js";
23
+ import { CreationSuccess } from "../creation-success.js";
24
+ import { ExternalLinkField } from "../external-link-field.js";
25
+ import { MedialaneCollectionCard } from "../medialane-collection-card.js";
26
+ import { TransactionDialog } from "../transaction-dialog.js";
27
+ import { WalletRequired } from "../wallet-required.js";
28
+ import { useMedialaneApp } from "../medialane-app.js";
29
+ import { RewardEarned } from "../rewards/reward-earned.js";
30
+ import { runIntentCalls } from "../../utils/run-intent-calls.js";
31
+ import { uploadJsonToIpfs } from "../../utils/ipfs-upload.js";
32
+ import { useTransaction } from "../../utils/use-transaction.js";
33
+ import { useLaunchpadImageUpload } from "../../utils/use-launchpad-image-upload.js";
34
+ import { invalidatePortfolioCache } from "../../utils/portfolio-cache.js";
35
+ import { suggestLaunchpadSymbol } from "../../utils/launchpad-defaults.js";
36
+ const schema = z.object({
37
+ name: z.string().min(1, "Name required").max(FIELD_LIMITS.name),
38
+ symbol: z.string().min(1, "Symbol required").max(FIELD_LIMITS.symbol, `Max ${FIELD_LIMITS.symbol} characters`).regex(/^[A-Z0-9]+$/, "Uppercase letters and numbers only"),
39
+ description: z.string().max(FIELD_LIMITS.description).optional(),
40
+ external_link: z.string().max(500).refine((v) => !v || v.startsWith("http://") || v.startsWith("https://"), {
41
+ message: "Must start with http:// or https://"
42
+ }).optional()
43
+ });
44
+ function CollectionCreateForm({ preset, aside }) {
45
+ const app = useMedialaneApp();
46
+ const walletAddress = app.walletAddress;
47
+ const tx = useTransaction();
48
+ const upload = useLaunchpadImageUpload({ successMessage: "Image uploaded" });
49
+ const { imageFile, imagePreview, imageUri, imageUploading, uploadError, fileInputRef, handleImageSelect, clearImage } = upload;
50
+ const [autoSymbol, setAutoSymbol] = useState("");
51
+ const [viewHref, setViewHref] = useState(null);
52
+ const Icon = preset.icon;
53
+ const form = useForm({
54
+ resolver: zodResolver(schema),
55
+ defaultValues: { name: "", symbol: "", description: "", external_link: "" }
56
+ });
57
+ const name = form.watch("name");
58
+ useEffect(() => {
59
+ if (!preset.suggestSymbol) return;
60
+ const suggested = suggestLaunchpadSymbol(name);
61
+ if (!suggested) return;
62
+ const current = form.getValues("symbol");
63
+ if (!current || current === autoSymbol) {
64
+ form.setValue("symbol", suggested, { shouldDirty: false });
65
+ setAutoSymbol(suggested);
66
+ }
67
+ }, [autoSymbol, name, form, preset.suggestSymbol]);
68
+ const deployedAddress = tx.receipt && preset.service ? deployedCollectionFromReceipt(tx.receipt, preset.service) : null;
69
+ const createdId = tx.receipt && !preset.service ? createdCollectionFromReceipt(tx.receipt, getCoordinates("STARKNET").collection721)?.collectionId ?? null : null;
70
+ useEffect(() => {
71
+ if (tx.phase !== "success") return;
72
+ let alive = true;
73
+ const api = app.getClient().api;
74
+ if (deployedAddress) {
75
+ setViewHref(collectionHref("STARKNET", deployedAddress));
76
+ if (preset.registerAfterDeploy) void api.collections.register(deployedAddress).catch(() => {
77
+ });
78
+ } else if (createdId && walletAddress) {
79
+ api.collections.list({ owner: walletAddress, limit: 50 }).then((res) => {
80
+ const created = (res.data ?? []).find((c) => c.collectionId === createdId);
81
+ if (alive && created) setViewHref(collectionHref("STARKNET", created.contractAddress));
82
+ }).catch(() => {
83
+ });
84
+ }
85
+ return () => {
86
+ alive = false;
87
+ };
88
+ }, [tx.phase, deployedAddress, createdId, walletAddress, app, preset.registerAfterDeploy]);
89
+ const handleAgain = () => {
90
+ tx.reset();
91
+ setViewHref(null);
92
+ setAutoSymbol("");
93
+ form.reset();
94
+ clearImage();
95
+ };
96
+ const onSubmit = (values) => {
97
+ if (imageFile && !imageUri && !imageUploading) return;
98
+ if (!walletAddress) return;
99
+ void tx.run(async (signer) => {
100
+ await app.ensureSignedIn?.();
101
+ const api = app.getClient().api;
102
+ const baseUri = await uploadJsonToIpfs(
103
+ api,
104
+ buildCollectionMetadata({
105
+ name: values.name,
106
+ description: values.description,
107
+ image: imageUri,
108
+ externalLink: values.external_link,
109
+ owner: walletAddress
110
+ })
111
+ );
112
+ await runIntentCalls(
113
+ signer,
114
+ () => api.intents.create("create-collection", {
115
+ owner: walletAddress,
116
+ name: values.name,
117
+ symbol: values.symbol,
118
+ baseUri,
119
+ ...preset.service ? { service: preset.service } : {}
120
+ })
121
+ );
122
+ invalidatePortfolioCache(walletAddress);
123
+ });
124
+ };
125
+ const { copy } = preset;
126
+ const busy = tx.phase !== "idle" || imageUploading;
127
+ const actions = preset.actions({ address: deployedAddress, collectionHref: viewHref });
128
+ return /* @__PURE__ */ jsxs(WalletRequired, { icon: Icon, iconClassName: preset.iconClass, title: preset.signedOut.title, description: preset.signedOut.description, children: [
129
+ /* @__PURE__ */ jsx(TransactionDialog, { tx, title: preset.dialog.title, workingLabel: preset.dialog.workingLabel, firstStepLabel: preset.dialog.firstStepLabel, children: /* @__PURE__ */ jsx(
130
+ CreationSuccess,
131
+ {
132
+ name: name || preset.success.fallbackName,
133
+ image: imagePreview,
134
+ caption: preset.success.caption,
135
+ primary: actions.primary,
136
+ secondary: actions.secondary,
137
+ onAgain: handleAgain,
138
+ againLabel: preset.success.againLabel,
139
+ children: /* @__PURE__ */ jsx(RewardEarned, { actionType: preset.success.reward })
140
+ }
141
+ ) }),
142
+ /* @__PURE__ */ jsx(
143
+ ClaimRouteShell,
144
+ {
145
+ icon: /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4 text-white" }),
146
+ title: preset.shell.title,
147
+ subtitle: preset.shell.subtitle,
148
+ aside: /* @__PURE__ */ jsxs(Fragment, { children: [
149
+ /* @__PURE__ */ jsx(
150
+ MedialaneCollectionCard,
151
+ {
152
+ image: imagePreview,
153
+ name,
154
+ collection: form.watch("symbol") || preset.cardFallbackSymbol,
155
+ creator: walletAddress ? `${walletAddress.slice(0, 6)}\u2026${walletAddress.slice(-4)}` : void 0,
156
+ creatorHref: walletAddress ? profileHref({ address: walletAddress }) : void 0
157
+ }
158
+ ),
159
+ aside
160
+ ] }),
161
+ children: /* @__PURE__ */ jsx(Form, { ...form, children: /* @__PURE__ */ jsxs("form", { onSubmit: form.handleSubmit(onSubmit), className: "space-y-5", children: [
162
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
163
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: copy.imageHeading }),
164
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4", children: [
165
+ /* @__PURE__ */ jsxs(
166
+ "div",
167
+ {
168
+ className: "relative h-28 w-28 rounded-xl border-2 border-dashed border-border bg-muted flex items-center justify-center overflow-hidden shrink-0 cursor-pointer hover:border-primary/50 transition-colors",
169
+ role: "button",
170
+ tabIndex: 0,
171
+ "aria-label": `Upload ${copy.imageHeading.toLowerCase()}`,
172
+ onClick: () => !imageUploading && fileInputRef.current?.click(),
173
+ onKeyDown: (e) => {
174
+ if (e.key === "Enter" || e.key === " ") {
175
+ e.preventDefault();
176
+ if (!imageUploading) fileInputRef.current?.click();
177
+ }
178
+ },
179
+ children: [
180
+ imagePreview ? /* @__PURE__ */ jsx(Image, { src: imagePreview, alt: copy.imageHeading, fill: true, unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ jsx(ImagePlus, { className: "h-8 w-8 text-muted-foreground" }),
181
+ imageUploading && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-background/70 flex items-center justify-center", children: /* @__PURE__ */ jsx(Loader2, { className: "h-5 w-5 animate-spin text-primary" }) })
182
+ ]
183
+ }
184
+ ),
185
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2 flex-1", children: [
186
+ /* @__PURE__ */ jsx(
187
+ "input",
188
+ {
189
+ ref: fileInputRef,
190
+ type: "file",
191
+ accept: acceptFor("image"),
192
+ className: "hidden",
193
+ onChange: (e) => {
194
+ const f = e.target.files?.[0];
195
+ if (f) void handleImageSelect(f);
196
+ }
197
+ }
198
+ ),
199
+ /* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", size: "sm", disabled: imageUploading, onClick: () => fileInputRef.current?.click(), children: imageUploading ? /* @__PURE__ */ jsxs(Fragment, { children: [
200
+ /* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 mr-1.5 animate-spin" }),
201
+ "Uploading\u2026"
202
+ ] }) : imageFile ? "Change image" : "Upload image" }),
203
+ imageFile && /* @__PURE__ */ jsxs(
204
+ "button",
205
+ {
206
+ type: "button",
207
+ onClick: clearImage,
208
+ className: "flex items-center gap-1 text-xs text-muted-foreground hover:text-destructive transition-colors",
209
+ children: [
210
+ /* @__PURE__ */ jsx(X, { className: "h-3 w-3" }),
211
+ " Remove"
212
+ ]
213
+ }
214
+ ),
215
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
216
+ "JPG, PNG, GIF, SVG or WebP",
217
+ imageUri && /* @__PURE__ */ jsx("span", { className: "ml-2 text-emerald-500 font-medium", children: "\u2713 Uploaded" })
218
+ ] }),
219
+ copy.imageHelp && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: copy.imageHelp }),
220
+ uploadError && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: uploadError })
221
+ ] })
222
+ ] })
223
+ ] }),
224
+ /* @__PURE__ */ jsx(FormField, { control: form.control, name: "name", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
225
+ /* @__PURE__ */ jsx(FormLabel, { children: copy.nameLabel }),
226
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { placeholder: copy.namePlaceholder, ...field }) }),
227
+ /* @__PURE__ */ jsx(FormDescription, { children: copy.nameHint }),
228
+ /* @__PURE__ */ jsx(FormMessage, {})
229
+ ] }) }),
230
+ /* @__PURE__ */ jsx(FormField, { control: form.control, name: "symbol", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
231
+ /* @__PURE__ */ jsx(FormLabel, { children: "Symbol *" }),
232
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
233
+ Input,
234
+ {
235
+ placeholder: copy.symbolPlaceholder,
236
+ maxLength: FIELD_LIMITS.symbol,
237
+ ...field,
238
+ onChange: (e) => field.onChange(e.target.value.toUpperCase())
239
+ }
240
+ ) }),
241
+ /* @__PURE__ */ jsx(FormDescription, { children: copy.symbolHint }),
242
+ /* @__PURE__ */ jsx(FormMessage, {})
243
+ ] }) }),
244
+ /* @__PURE__ */ jsx(FormField, { control: form.control, name: "description", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
245
+ /* @__PURE__ */ jsxs(FormLabel, { children: [
246
+ "Description ",
247
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground font-normal", children: "(optional)" })
248
+ ] }),
249
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Textarea, { placeholder: copy.descriptionPlaceholder, rows: 3, ...field }) }),
250
+ copy.descriptionHint && /* @__PURE__ */ jsx(FormDescription, { children: copy.descriptionHint }),
251
+ /* @__PURE__ */ jsx(FormMessage, {})
252
+ ] }) }),
253
+ /* @__PURE__ */ jsx(ExternalLinkField, { form, address: walletAddress }),
254
+ /* @__PURE__ */ jsxs(
255
+ "button",
256
+ {
257
+ type: "submit",
258
+ disabled: busy,
259
+ className: `w-full h-12 text-base font-semibold text-white rounded-xl flex items-center justify-center gap-2 transition-all hover:brightness-110 active:scale-[0.98] ${preset.buttonClass} ${busy ? "opacity-40 pointer-events-none" : ""}`,
260
+ children: [
261
+ /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4" }),
262
+ copy.submit
263
+ ]
264
+ }
265
+ ),
266
+ copy.footnotes.map((note) => /* @__PURE__ */ jsx("p", { className: "text-xs text-center text-muted-foreground", children: note }, note))
267
+ ] }) })
268
+ }
269
+ )
270
+ ] });
271
+ }
272
+ export {
273
+ CollectionCreateForm
274
+ };
275
+ //# sourceMappingURL=collection-create-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/launchpad/collection-create-form.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport * as z from \"zod\";\nimport { ImagePlus, Loader2, X } from \"lucide-react\";\nimport {\n FIELD_LIMITS,\n acceptFor,\n buildCollectionMetadata,\n collectionHref,\n getCoordinates,\n profileHref,\n} from \"@medialane/sdk\";\nimport { createdCollectionFromReceipt, deployedCollectionFromReceipt } from \"@medialane/sdk/starknet\";\nimport Image from \"../image.js\";\nimport { Button } from \"../button.js\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { CreationSuccess } from \"../creation-success.js\";\nimport { ExternalLinkField } from \"../external-link-field.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\nimport { invalidatePortfolioCache } from \"../../utils/portfolio-cache.js\";\nimport { suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport type { CollectionCreatePreset } from \"./collection-create-presets.js\";\n\nconst schema = z.object({\n name: z.string().min(1, \"Name required\").max(FIELD_LIMITS.name),\n symbol: z\n .string()\n .min(1, \"Symbol required\")\n .max(FIELD_LIMITS.symbol, `Max ${FIELD_LIMITS.symbol} characters`)\n .regex(/^[A-Z0-9]+$/, \"Uppercase letters and numbers only\"),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_link: z\n .string()\n .max(500)\n .refine((v) => !v || v.startsWith(\"http://\") || v.startsWith(\"https://\"), {\n message: \"Must start with http:// or https://\",\n })\n .optional(),\n});\ntype FormValues = z.infer<typeof schema>;\n\nexport interface CollectionCreateFormProps {\n preset: CollectionCreatePreset;\n aside?: ReactNode;\n}\n\nexport function CollectionCreateForm({ preset, aside }: CollectionCreateFormProps) {\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: \"Image uploaded\" });\n const { imageFile, imagePreview, imageUri, imageUploading, uploadError, fileInputRef, handleImageSelect, clearImage } = upload;\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n const [viewHref, setViewHref] = useState<string | null>(null);\n const Icon = preset.icon;\n\n const form = useForm<FormValues>({\n resolver: zodResolver(schema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\" },\n });\n const name = form.watch(\"name\");\n\n useEffect(() => {\n if (!preset.suggestSymbol) return;\n const suggested = suggestLaunchpadSymbol(name);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, name, form, preset.suggestSymbol]);\n\n const deployedAddress =\n tx.receipt && preset.service ? deployedCollectionFromReceipt(tx.receipt, preset.service) : null;\n const createdId =\n tx.receipt && !preset.service ? createdCollectionFromReceipt(tx.receipt, getCoordinates(\"STARKNET\").collection721)?.collectionId ?? null : null;\n\n useEffect(() => {\n if (tx.phase !== \"success\") return;\n let alive = true;\n const api = app.getClient().api;\n if (deployedAddress) {\n setViewHref(collectionHref(\"STARKNET\", deployedAddress));\n if (preset.registerAfterDeploy) void api.collections.register(deployedAddress).catch(() => {});\n } else if (createdId && walletAddress) {\n api.collections\n .list({ owner: walletAddress, limit: 50 })\n .then((res) => {\n const created = (res.data ?? []).find((c) => c.collectionId === createdId);\n if (alive && created) setViewHref(collectionHref(\"STARKNET\", created.contractAddress));\n })\n .catch(() => {});\n }\n return () => {\n alive = false;\n };\n }, [tx.phase, deployedAddress, createdId, walletAddress, app, preset.registerAfterDeploy]);\n\n const handleAgain = () => {\n tx.reset();\n setViewHref(null);\n setAutoSymbol(\"\");\n form.reset();\n clearImage();\n };\n\n const onSubmit = (values: FormValues) => {\n if (imageFile && !imageUri && !imageUploading) return;\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(\n api,\n buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n );\n await runIntentCalls(signer, () =>\n api.intents.create(\"create-collection\", {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n ...(preset.service ? { service: preset.service } : {}),\n }),\n );\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const { copy } = preset;\n const busy = tx.phase !== \"idle\" || imageUploading;\n const actions = preset.actions({ address: deployedAddress, collectionHref: viewHref });\n\n return (\n <WalletRequired icon={Icon} iconClassName={preset.iconClass} title={preset.signedOut.title} description={preset.signedOut.description}>\n <TransactionDialog tx={tx} title={preset.dialog.title} workingLabel={preset.dialog.workingLabel} firstStepLabel={preset.dialog.firstStepLabel}>\n <CreationSuccess\n name={name || preset.success.fallbackName}\n image={imagePreview}\n caption={preset.success.caption}\n primary={actions.primary}\n secondary={actions.secondary}\n onAgain={handleAgain}\n againLabel={preset.success.againLabel}\n >\n <RewardEarned actionType={preset.success.reward} />\n </CreationSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Icon className=\"h-4 w-4 text-white\" />}\n title={preset.shell.title}\n subtitle={preset.shell.subtitle}\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={name}\n collection={form.watch(\"symbol\") || preset.cardFallbackSymbol}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <div className=\"space-y-2\">\n <p className=\"text-sm font-medium\">{copy.imageHeading}</p>\n <div className=\"flex items-start gap-4\">\n <div\n className=\"relative h-28 w-28 rounded-xl border-2 border-dashed border-border bg-muted flex items-center justify-center overflow-hidden shrink-0 cursor-pointer hover:border-primary/50 transition-colors\"\n role=\"button\"\n tabIndex={0}\n aria-label={`Upload ${copy.imageHeading.toLowerCase()}`}\n onClick={() => !imageUploading && fileInputRef.current?.click()}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n if (!imageUploading) fileInputRef.current?.click();\n }\n }}\n >\n {imagePreview ? (\n <Image src={imagePreview} alt={copy.imageHeading} fill unoptimized className=\"object-cover\" />\n ) : (\n <ImagePlus className=\"h-8 w-8 text-muted-foreground\" />\n )}\n {imageUploading && (\n <div className=\"absolute inset-0 bg-background/70 flex items-center justify-center\">\n <Loader2 className=\"h-5 w-5 animate-spin text-primary\" />\n </div>\n )}\n </div>\n <div className=\"space-y-2 flex-1\">\n <input\n ref={fileInputRef}\n type=\"file\"\n accept={acceptFor(\"image\")}\n className=\"hidden\"\n onChange={(e) => {\n const f = e.target.files?.[0];\n if (f) void handleImageSelect(f);\n }}\n />\n <Button type=\"button\" variant=\"outline\" size=\"sm\" disabled={imageUploading} onClick={() => fileInputRef.current?.click()}>\n {imageUploading ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 mr-1.5 animate-spin\" />\n Uploading…\n </>\n ) : imageFile ? (\n \"Change image\"\n ) : (\n \"Upload image\"\n )}\n </Button>\n {imageFile && (\n <button\n type=\"button\"\n onClick={clearImage}\n className=\"flex items-center gap-1 text-xs text-muted-foreground hover:text-destructive transition-colors\"\n >\n <X className=\"h-3 w-3\" /> Remove\n </button>\n )}\n <p className=\"text-xs text-muted-foreground\">\n JPG, PNG, GIF, SVG or WebP\n {imageUri && <span className=\"ml-2 text-emerald-500 font-medium\">✓ Uploaded</span>}\n </p>\n {copy.imageHelp && <p className=\"text-xs text-muted-foreground\">{copy.imageHelp}</p>}\n {uploadError && <p className=\"text-xs text-destructive\">{uploadError}</p>}\n </div>\n </div>\n </div>\n\n <FormField control={form.control} name=\"name\" render={({ field }) => (\n <FormItem>\n <FormLabel>{copy.nameLabel}</FormLabel>\n <FormControl><Input placeholder={copy.namePlaceholder} {...field} /></FormControl>\n <FormDescription>{copy.nameHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"symbol\" render={({ field }) => (\n <FormItem>\n <FormLabel>Symbol *</FormLabel>\n <FormControl>\n <Input\n placeholder={copy.symbolPlaceholder}\n maxLength={FIELD_LIMITS.symbol}\n {...field}\n onChange={(e) => field.onChange(e.target.value.toUpperCase())}\n />\n </FormControl>\n <FormDescription>{copy.symbolHint}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"description\" render={({ field }) => (\n <FormItem>\n <FormLabel>Description <span className=\"text-muted-foreground font-normal\">(optional)</span></FormLabel>\n <FormControl><Textarea placeholder={copy.descriptionPlaceholder} rows={3} {...field} /></FormControl>\n {copy.descriptionHint && <FormDescription>{copy.descriptionHint}</FormDescription>}\n <FormMessage />\n </FormItem>\n )} />\n\n <ExternalLinkField form={form} address={walletAddress} />\n\n <button\n type=\"submit\"\n disabled={busy}\n className={`w-full h-12 text-base font-semibold text-white rounded-xl flex items-center justify-center gap-2 transition-all hover:brightness-110 active:scale-[0.98] ${preset.buttonClass} ${busy ? \"opacity-40 pointer-events-none\" : \"\"}`}\n >\n <Icon className=\"h-4 w-4\" />\n {copy.submit}\n </button>\n {copy.footnotes.map((note) => (\n <p key={note} className=\"text-xs text-center text-muted-fo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,aACf,GACC;AAAA,UAEH,oBAAC,aAAU,SAAS,KAAK,SAAS,MAAK,eAAc,QAAQ,CAAC,EAAE,MAAM,MACpE,qBAAC,YACC;AAAA,iCAAC,aAAU;AAAA;AAAA,cAAY,oBAAC,UAAK,WAAU,qCAAoC,wBAAU;AAAA,eAAO;AAAA,YAC5F,oBAAC,eAAY,8BAAC,YAAS,aAAa,KAAK,wBAAwB,MAAM,GAAI,GAAG,OAAO,GAAE;AAAA,YACtF,KAAK,mBAAmB,oBAAC,mBAAiB,eAAK,iBAAgB;AAAA,YAChE,oBAAC,eAAY;AAAA,aACf,GACC;AAAA,UAEH,oBAAC,qBAAkB,MAAY,SAAS,eAAe;AAAA,UAEvD;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,UAAU;AAAA,cACV,WAAW,4JAA4J,OAAO,WAAW,IAAI,OAAO,mCAAmC,EAAE;AAAA,cAEzO;AAAA,oCAAC,QAAK,WAAU,WAAU;AAAA,gBACzB,KAAK;AAAA;AAAA;AAAA,UACR;AAAA,UACC,KAAK,UAAU,IAAI,CAAC,SACnB,oBAAC,OAAa,WAAU,6CAA6C,kBAA7D,IAAkE,CAC3E;AAAA,WACH,GACF;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,147 @@
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 collection_create_presets_exports = {};
20
+ __export(collection_create_presets_exports, {
21
+ CLUB_PRESET: () => CLUB_PRESET,
22
+ EDITIONS_PRESET: () => EDITIONS_PRESET,
23
+ SINGLE_PRESET: () => SINGLE_PRESET,
24
+ TICKETS_PRESET: () => TICKETS_PRESET
25
+ });
26
+ module.exports = __toCommonJS(collection_create_presets_exports);
27
+ var import_lucide_react = require("lucide-react");
28
+ const FREE = "Free to publish \u2014 protocol fee is zero.";
29
+ const CLUB_PRESET = {
30
+ service: "ip-club",
31
+ icon: import_lucide_react.Users,
32
+ iconClass: "text-brand-purple",
33
+ buttonClass: "bg-brand-purple",
34
+ signedOut: { title: "Secure your account to create a club", description: "Create a club, then mint membership cards for your community." },
35
+ shell: { title: "Create Club", subtitle: "One club \u2014 create membership tiers and mint cards to your community." },
36
+ dialog: { title: "Create club", workingLabel: "Creating your club\u2026", firstStepLabel: "Prepare metadata" },
37
+ success: { caption: "Your club is live", fallbackName: "Your club", reward: "create_club", againLabel: "Create another" },
38
+ cardFallbackSymbol: "Club",
39
+ copy: {
40
+ imageHeading: "Club image",
41
+ nameLabel: "Club name *",
42
+ namePlaceholder: "My Club",
43
+ nameHint: "Shown in wallets, explorers, and on every membership card.",
44
+ symbolPlaceholder: "CLUB",
45
+ symbolHint: "Short ticker \u2014 2 to 10 uppercase letters.",
46
+ descriptionPlaceholder: "Describe your club \u2014 what does membership unlock?",
47
+ submit: "Create Club",
48
+ footnotes: [FREE]
49
+ },
50
+ suggestSymbol: false,
51
+ registerAfterDeploy: false,
52
+ actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: "Create memberships" } : void 0 })
53
+ };
54
+ const TICKETS_PRESET = {
55
+ service: "ip-tickets",
56
+ icon: import_lucide_react.Ticket,
57
+ iconClass: "text-teal-500",
58
+ buttonClass: "bg-teal-600",
59
+ signedOut: { title: "Secure your account to create tickets", description: "Create a tickets collection, then mint tickets to your audience." },
60
+ shell: { title: "Create Ticket Collection", subtitle: "One collection \u2014 create tickets and mint them to your audience." },
61
+ dialog: { title: "Create tickets collection", workingLabel: "Creating your collection\u2026", firstStepLabel: "Prepare metadata" },
62
+ success: { caption: "Your collection is live", fallbackName: "Your collection", reward: "create_ticket_collection", againLabel: "Create another" },
63
+ cardFallbackSymbol: "Tickets",
64
+ copy: {
65
+ imageHeading: "Collection image",
66
+ nameLabel: "Collection name *",
67
+ namePlaceholder: "My Tickets",
68
+ nameHint: "Shown in wallets, explorers, and on every ticket.",
69
+ symbolPlaceholder: "TIX",
70
+ symbolHint: "Short ticker \u2014 2 to 10 uppercase letters.",
71
+ descriptionPlaceholder: "Describe your tickets \u2014 what do they admit or unlock?",
72
+ submit: "Create Ticket Collection",
73
+ footnotes: [FREE]
74
+ },
75
+ suggestSymbol: false,
76
+ registerAfterDeploy: false,
77
+ actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: "Create tickets" } : void 0 })
78
+ };
79
+ const EDITIONS_PRESET = {
80
+ service: "mip-erc1155",
81
+ icon: import_lucide_react.Layers,
82
+ iconClass: "text-brand-purple",
83
+ buttonClass: "bg-brand-purple",
84
+ signedOut: { title: "Secure your account to create a collection", description: "Create a collection where each piece can have multiple editions." },
85
+ shell: { title: "Create an Edition Collection", subtitle: "Create a collection where each piece can have multiple editions \u2014 free to publish, and it's yours." },
86
+ dialog: { title: "Create collection", workingLabel: "Creating your collection\u2026", firstStepLabel: "Prepare metadata" },
87
+ success: { caption: "Your collection is live", fallbackName: "Your collection", reward: "create_collection", againLabel: "Create another" },
88
+ cardFallbackSymbol: "Editions",
89
+ copy: {
90
+ imageHeading: "Collection image",
91
+ imageHelp: "This becomes the cover for your collection.",
92
+ nameLabel: "Collection name *",
93
+ namePlaceholder: "My Creative Works",
94
+ nameHint: "The main title collectors see across the collection page, wallets, and future listings.",
95
+ symbolPlaceholder: "MCW",
96
+ symbolHint: "Short ticker (2\u201310 uppercase letters). We suggest one from the collection name.",
97
+ descriptionPlaceholder: "Describe your collection and what kind of work it contains\u2026",
98
+ descriptionHint: "Use this to explain the creative direction, media type, or audience for the collection.",
99
+ submit: "Publish Collection",
100
+ footnotes: [
101
+ FREE,
102
+ "Next step: mint pieces into this collection \u2014 you set the number of copies for each piece when you mint it, and can add more copies later."
103
+ ]
104
+ },
105
+ suggestSymbol: true,
106
+ registerAfterDeploy: true,
107
+ actions: ({ address, collectionHref }) => ({
108
+ primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: "Mint tokens" } : void 0,
109
+ secondary: collectionHref ? { href: collectionHref, label: "View collection" } : void 0
110
+ })
111
+ };
112
+ const SINGLE_PRESET = {
113
+ service: null,
114
+ icon: import_lucide_react.Layers,
115
+ iconClass: "text-brand-blue",
116
+ buttonClass: "bg-brand-blue",
117
+ signedOut: { title: "Secure your account to create a collection", description: "Set up a collection to mint your work into." },
118
+ shell: { title: "Create a Collection", subtitle: "Set up a collection to mint your work into \u2014 free to publish, and it's yours." },
119
+ dialog: { title: "Create collection", workingLabel: "Creating your collection\u2026", firstStepLabel: "Prepare metadata" },
120
+ success: { caption: "Your collection is live", fallbackName: "Your collection", reward: "create_collection", againLabel: "Create another" },
121
+ cardFallbackSymbol: "Collection",
122
+ copy: {
123
+ imageHeading: "Collection image",
124
+ nameLabel: "Collection name *",
125
+ namePlaceholder: "My Creative Works",
126
+ nameHint: "The display name for your collection.",
127
+ symbolPlaceholder: "MCW",
128
+ symbolHint: "Short ticker (2\u201310 uppercase letters). Shown in wallets and marketplaces.",
129
+ descriptionPlaceholder: "Describe your collection and what kind of work it contains\u2026",
130
+ submit: "Create collection",
131
+ footnotes: [FREE]
132
+ },
133
+ suggestSymbol: false,
134
+ registerAfterDeploy: false,
135
+ actions: ({ collectionHref }) => ({
136
+ primary: { href: "/launchpad/single-editions", label: "Mint an asset" },
137
+ secondary: collectionHref ? { href: collectionHref, label: "View collection" } : void 0
138
+ })
139
+ };
140
+ // Annotate the CommonJS export names for ESM import in node:
141
+ 0 && (module.exports = {
142
+ CLUB_PRESET,
143
+ EDITIONS_PRESET,
144
+ SINGLE_PRESET,
145
+ TICKETS_PRESET
146
+ });
147
+ //# sourceMappingURL=collection-create-presets.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n buttonClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { caption: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish — protocol fee is zero.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n buttonClass: \"bg-brand-purple\",\n signedOut: { title: \"Secure your account to create a club\", description: \"Create a club, then mint membership cards for your community.\" },\n shell: { title: \"Create Club\", subtitle: \"One club — create membership tiers and mint cards to your community.\" },\n dialog: { title: \"Create club\", workingLabel: \"Creating your club…\", firstStepLabel: \"Prepare metadata\" },\n success: { caption: \"Your club is live\", fallbackName: \"Your club\", reward: \"create_club\", againLabel: \"Create another\" },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: \"Club image\",\n nameLabel: \"Club name *\",\n namePlaceholder: \"My Club\",\n nameHint: \"Shown in wallets, explorers, and on every membership card.\",\n symbolPlaceholder: \"CLUB\",\n symbolHint: \"Short ticker — 2 to 10 uppercase letters.\",\n descriptionPlaceholder: \"Describe your club — what does membership unlock?\",\n submit: \"Create Club\",\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: \"Create memberships\" } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-teal-500\",\n buttonClass: \"bg-teal-600\",\n signedOut: { title: \"Secure your account to create tickets\", description: \"Create a tickets collection, then mint tickets to your audience.\" },\n shell: { title: \"Create Ticket Collection\", subtitle: \"One collection — create tickets and mint them to your audience.\" },\n dialog: { title: \"Create tickets collection\", workingLabel: \"Creating your collection…\", firstStepLabel: \"Prepare metadata\" },\n success: { caption: \"Your collection is live\", fallbackName: \"Your collection\", reward: \"create_ticket_collection\", againLabel: \"Create another\" },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: \"Collection image\",\n nameLabel: \"Collection name *\",\n namePlaceholder: \"My Tickets\",\n nameHint: \"Shown in wallets, explorers, and on every ticket.\",\n symbolPlaceholder: \"TIX\",\n symbolHint: \"Short ticker — 2 to 10 uppercase letters.\",\n descriptionPlaceholder: \"Describe your tickets — what do they admit or unlock?\",\n submit: \"Create Ticket Collection\",\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: \"Create tickets\" } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n buttonClass: \"bg-brand-purple\",\n signedOut: { title: \"Secure your account to create a collection\", description: \"Create a collection where each piece can have multiple editions.\" },\n shell: { title: \"Create an Edition Collection\", subtitle: \"Create a collection where each piece can have multiple editions — free to publish, and it's yours.\" },\n dialog: { title: \"Create collection\", workingLabel: \"Creating your collection…\", firstStepLabel: \"Prepare metadata\" },\n success: { caption: \"Your collection is live\", fallbackName: \"Your collection\", reward: \"create_collection\", againLabel: \"Create another\" },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: \"Collection image\",\n imageHelp: \"This becomes the cover for your collection.\",\n nameLabel: \"Collection name *\",\n namePlaceholder: \"My Creative Works\",\n nameHint: \"The main title collectors see across the collection page, wallets, and future listings.\",\n symbolPlaceholder: \"MCW\",\n symbolHint: \"Short ticker (2–10 uppercase letters). We suggest one from the collection name.\",\n descriptionPlaceholder: \"Describe your collection and what kind of work it contains…\",\n descriptionHint: \"Use this to explain the creative direction, media type, or audience for the collection.\",\n submit: \"Publish Collection\",\n footnotes: [\n FREE,\n \"Next step: mint pieces into this collection — you set the number of copies for each piece when you mint it, and can add more copies later.\",\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: \"Mint tokens\" } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: \"View collection\" } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n buttonClass: \"bg-brand-blue\",\n signedOut: { title: \"Secure your account to create a collection\", description: \"Set up a collection to mint your work into.\" },\n shell: { title: \"Create a Collection\", subtitle: \"Set up a collection to mint your work into — free to publish, and it's yours.\" },\n dialog: { title: \"Create collection\", workingLabel: \"Creating your collection…\", firstStepLabel: \"Prepare metadata\" },\n success: { caption: \"Your collection is live\", fallbackName: \"Your collection\", reward: \"create_collection\", againLabel: \"Create another\" },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: \"Collection image\",\n nameLabel: \"Collection name *\",\n namePlaceholder: \"My Creative Works\",\n nameHint: \"The display name for your collection.\",\n symbolPlaceholder: \"MCW\",\n symbolHint: \"Short ticker (2–10 uppercase letters). Shown in wallets and marketplaces.\",\n descriptionPlaceholder: \"Describe your collection and what kind of work it contains…\",\n submit: \"Create collection\",\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({\n primary: { href: \"/launchpad/single-editions\", label: \"Mint an asset\" },\n secondary: collectionHref ? { href: collectionHref, label: \"View collection\" } : undefined,\n }),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAsC;AAuCtC,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,WAAW,EAAE,OAAO,wCAAwC,aAAa,gEAAgE;AAAA,EACzI,OAAO,EAAE,OAAO,eAAe,UAAU,4EAAuE;AAAA,EAChH,QAAQ,EAAE,OAAO,eAAe,cAAc,4BAAuB,gBAAgB,mBAAmB;AAAA,EACxG,SAAS,EAAE,SAAS,qBAAqB,cAAc,aAAa,QAAQ,eAAe,YAAY,iBAAiB;AAAA,EACxH,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,UAAU;AAAA,IACV,mBAAmB;AAAA,IACnB,YAAY;AAAA,IACZ,wBAAwB;AAAA,IACxB,QAAQ;AAAA,IACR,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,OAAO,EAAE,SAAS,iBAAiB,EAAE,MAAM,gBAAgB,OAAO,qBAAqB,IAAI,OAAU;AAClI;AAEO,MAAM,iBAAyC;AAAA,EACpD,SAAS;AAAA,EACT,MA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AAiB;AAAA,IACjB,QAAQ;AAAA,IACR,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,SAAS,eAAe,OAAO;AAAA,IACzC,SAAS,UAAU,EAAE,MAAM,0BAA0B,OAAO,SAAS,OAAO,cAAc,IAAI;AAAA,IAC9F,WAAW,iBAAiB,EAAE,MAAM,gBAAgB,OAAO,kBAAkB,IAAI;AAAA,EACnF;AACF;AAEO,MAAM,gBAAwC;AAAA,EACnD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,WAAW,EAAE,OAAO,8CAA8C,aAAa,8CAA8C;AAAA,EAC7H,OAAO,EAAE,OAAO,uBAAuB,UAAU,qFAAgF;AAAA,EACjI,QAAQ,EAAE,OAAO,qBAAqB,cAAc,kCAA6B,gBAAgB,mBAAmB;AAAA,EACpH,SAAS,EAAE,SAAS,2BAA2B,cAAc,mBAAmB,QAAQ,qBAAqB,YAAY,iBAAiB;AAAA,EAC1I,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,UAAU;AAAA,IACV,mBAAmB;AAAA,IACnB,YAAY;AAAA,IACZ,wBAAwB;AAAA,IACxB,QAAQ;AAAA,IACR,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,OAAO;AAAA,IAChC,SAAS,EAAE,MAAM,8BAA8B,OAAO,gBAAgB;AAAA,IACtE,WAAW,iBAAiB,EAAE,MAAM,gBAAgB,OAAO,kBAAkB,IAAI;AAAA,EACnF;AACF;","names":[]}
@@ -0,0 +1,60 @@
1
+ import { ElementType } from 'react';
2
+
3
+ interface CollectionCreateAction {
4
+ href: string;
5
+ label: string;
6
+ }
7
+ interface CollectionCreatePreset {
8
+ service: "ip-club" | "ip-tickets" | "mip-erc1155" | null;
9
+ icon: ElementType;
10
+ iconClass: string;
11
+ buttonClass: string;
12
+ signedOut: {
13
+ title: string;
14
+ description: string;
15
+ };
16
+ shell: {
17
+ title: string;
18
+ subtitle: string;
19
+ };
20
+ dialog: {
21
+ title: string;
22
+ workingLabel: string;
23
+ firstStepLabel: string;
24
+ };
25
+ success: {
26
+ caption: string;
27
+ fallbackName: string;
28
+ reward: string;
29
+ againLabel: string;
30
+ };
31
+ cardFallbackSymbol: string;
32
+ copy: {
33
+ imageHeading: string;
34
+ imageHelp?: string;
35
+ nameLabel: string;
36
+ namePlaceholder: string;
37
+ nameHint: string;
38
+ symbolPlaceholder: string;
39
+ symbolHint: string;
40
+ descriptionPlaceholder: string;
41
+ descriptionHint?: string;
42
+ submit: string;
43
+ footnotes: string[];
44
+ };
45
+ suggestSymbol: boolean;
46
+ registerAfterDeploy: boolean;
47
+ actions: (found: {
48
+ address: string | null;
49
+ collectionHref: string | null;
50
+ }) => {
51
+ primary?: CollectionCreateAction;
52
+ secondary?: CollectionCreateAction;
53
+ };
54
+ }
55
+ declare const CLUB_PRESET: CollectionCreatePreset;
56
+ declare const TICKETS_PRESET: CollectionCreatePreset;
57
+ declare const EDITIONS_PRESET: CollectionCreatePreset;
58
+ declare const SINGLE_PRESET: CollectionCreatePreset;
59
+
60
+ export { CLUB_PRESET, type CollectionCreateAction, type CollectionCreatePreset, EDITIONS_PRESET, SINGLE_PRESET, TICKETS_PRESET };
@@ -0,0 +1,60 @@
1
+ import { ElementType } from 'react';
2
+
3
+ interface CollectionCreateAction {
4
+ href: string;
5
+ label: string;
6
+ }
7
+ interface CollectionCreatePreset {
8
+ service: "ip-club" | "ip-tickets" | "mip-erc1155" | null;
9
+ icon: ElementType;
10
+ iconClass: string;
11
+ buttonClass: string;
12
+ signedOut: {
13
+ title: string;
14
+ description: string;
15
+ };
16
+ shell: {
17
+ title: string;
18
+ subtitle: string;
19
+ };
20
+ dialog: {
21
+ title: string;
22
+ workingLabel: string;
23
+ firstStepLabel: string;
24
+ };
25
+ success: {
26
+ caption: string;
27
+ fallbackName: string;
28
+ reward: string;
29
+ againLabel: string;
30
+ };
31
+ cardFallbackSymbol: string;
32
+ copy: {
33
+ imageHeading: string;
34
+ imageHelp?: string;
35
+ nameLabel: string;
36
+ namePlaceholder: string;
37
+ nameHint: string;
38
+ symbolPlaceholder: string;
39
+ symbolHint: string;
40
+ descriptionPlaceholder: string;
41
+ descriptionHint?: string;
42
+ submit: string;
43
+ footnotes: string[];
44
+ };
45
+ suggestSymbol: boolean;
46
+ registerAfterDeploy: boolean;
47
+ actions: (found: {
48
+ address: string | null;
49
+ collectionHref: string | null;
50
+ }) => {
51
+ primary?: CollectionCreateAction;
52
+ secondary?: CollectionCreateAction;
53
+ };
54
+ }
55
+ declare const CLUB_PRESET: CollectionCreatePreset;
56
+ declare const TICKETS_PRESET: CollectionCreatePreset;
57
+ declare const EDITIONS_PRESET: CollectionCreatePreset;
58
+ declare const SINGLE_PRESET: CollectionCreatePreset;
59
+
60
+ export { CLUB_PRESET, type CollectionCreateAction, type CollectionCreatePreset, EDITIONS_PRESET, SINGLE_PRESET, TICKETS_PRESET };