@medialane/ui 0.235.0 → 0.237.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-picker.cjs +147 -0
- package/dist/components/launchpad/collection-picker.cjs.map +1 -0
- package/dist/components/launchpad/collection-picker.d.cts +13 -0
- package/dist/components/launchpad/collection-picker.d.ts +13 -0
- package/dist/components/launchpad/collection-picker.js +113 -0
- package/dist/components/launchpad/collection-picker.js.map +1 -0
- package/dist/components/launchpad/edition-mint-fields.cjs +308 -0
- package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -0
- package/dist/components/launchpad/edition-mint-fields.d.cts +24 -0
- package/dist/components/launchpad/edition-mint-fields.d.ts +24 -0
- package/dist/components/launchpad/edition-mint-fields.js +274 -0
- package/dist/components/launchpad/edition-mint-fields.js.map +1 -0
- package/dist/components/launchpad/edition-mint-schema.cjs +58 -0
- package/dist/components/launchpad/edition-mint-schema.cjs.map +1 -0
- package/dist/components/launchpad/edition-mint-schema.d.cts +48 -0
- package/dist/components/launchpad/edition-mint-schema.d.ts +48 -0
- package/dist/components/launchpad/edition-mint-schema.js +24 -0
- package/dist/components/launchpad/edition-mint-schema.js.map +1 -0
- package/dist/components/launchpad/edition-mint.cjs +244 -0
- package/dist/components/launchpad/edition-mint.cjs.map +1 -0
- package/dist/components/launchpad/edition-mint.d.cts +9 -0
- package/dist/components/launchpad/edition-mint.d.ts +9 -0
- package/dist/components/launchpad/edition-mint.js +210 -0
- package/dist/components/launchpad/edition-mint.js.map +1 -0
- package/dist/components/launchpad/single-edition-mint.cjs +427 -0
- package/dist/components/launchpad/single-edition-mint.cjs.map +1 -0
- package/dist/components/launchpad/single-edition-mint.d.cts +8 -0
- package/dist/components/launchpad/single-edition-mint.d.ts +8 -0
- package/dist/components/launchpad/single-edition-mint.js +393 -0
- package/dist/components/launchpad/single-edition-mint.js.map +1 -0
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { ChevronDown, ImagePlus, Layers, Loader2, ShieldCheck, Sparkles, X } from "lucide-react";
|
|
5
|
+
import { acceptFor } from "@medialane/sdk";
|
|
6
|
+
import Image from "../image.js";
|
|
7
|
+
import { Button } from "../button.js";
|
|
8
|
+
import { Input } from "../input.js";
|
|
9
|
+
import { Textarea } from "../textarea.js";
|
|
10
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../collapsible.js";
|
|
11
|
+
import { CollapsibleSection } from "../collapsible-section.js";
|
|
12
|
+
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "../form.js";
|
|
13
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../select.js";
|
|
14
|
+
import { FadeIn } from "../motion-primitives.js";
|
|
15
|
+
import { IPTypeFields } from "../ip-type-fields.js";
|
|
16
|
+
import { ToggleGroup } from "../create-form-primitives.js";
|
|
17
|
+
import { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES, LICENSE_TYPES } from "../../data/ip.js";
|
|
18
|
+
import { cn } from "../../utils/cn.js";
|
|
19
|
+
function EditionMintFields({
|
|
20
|
+
form,
|
|
21
|
+
imagePreview,
|
|
22
|
+
imageUri,
|
|
23
|
+
imageUploading,
|
|
24
|
+
mintDisabled,
|
|
25
|
+
fileInputRef,
|
|
26
|
+
onImageSelect,
|
|
27
|
+
onClearImage,
|
|
28
|
+
metadataResetKey,
|
|
29
|
+
onMetadataFieldsChange,
|
|
30
|
+
uploadDocument
|
|
31
|
+
}) {
|
|
32
|
+
const [licensingOpen, setLicensingOpen] = useState(false);
|
|
33
|
+
const [advancedOpen, setAdvancedOpen] = useState(false);
|
|
34
|
+
const [ipTypeOpen, setIpTypeOpen] = useState(false);
|
|
35
|
+
const handleLicenseChange = (value) => {
|
|
36
|
+
form.setValue("licenseType", value);
|
|
37
|
+
const preset = LICENSE_TYPES.find((license) => license.value === value);
|
|
38
|
+
if (preset) {
|
|
39
|
+
form.setValue("commercialUse", preset.commercialUse);
|
|
40
|
+
form.setValue("derivatives", preset.derivatives);
|
|
41
|
+
form.setValue("attribution", preset.attribution);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ jsxs("div", { className: "space-y-5", children: [
|
|
45
|
+
/* @__PURE__ */ jsx(FadeIn, { delay: 0.06, children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
46
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium", children: [
|
|
47
|
+
"Asset image ",
|
|
48
|
+
/* @__PURE__ */ jsx("span", { className: "text-destructive", children: "*" })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
51
|
+
/* @__PURE__ */ jsxs(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
role: "button",
|
|
55
|
+
tabIndex: 0,
|
|
56
|
+
onClick: () => !imageUploading && fileInputRef.current?.click(),
|
|
57
|
+
onKeyDown: (event) => {
|
|
58
|
+
if (event.key === "Enter") fileInputRef.current?.click();
|
|
59
|
+
},
|
|
60
|
+
className: "relative h-20 w-20 rounded-2xl border-2 border-dashed border-border bg-muted flex items-center justify-center overflow-hidden shrink-0 cursor-pointer hover:border-brand-purple/50 transition-colors",
|
|
61
|
+
children: [
|
|
62
|
+
imagePreview ? /* @__PURE__ */ jsx(Image, { src: imagePreview, alt: "Token", fill: true, unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ jsx(ImagePlus, { className: "h-6 w-6 text-muted-foreground" }),
|
|
63
|
+
imageUploading ? /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-background/70 flex items-center justify-center", children: /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }) }) : null
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
"input",
|
|
70
|
+
{
|
|
71
|
+
ref: fileInputRef,
|
|
72
|
+
type: "file",
|
|
73
|
+
accept: acceptFor("image"),
|
|
74
|
+
className: "hidden",
|
|
75
|
+
onChange: (event) => {
|
|
76
|
+
const file = event.target.files?.[0];
|
|
77
|
+
if (file) onImageSelect(file);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
Button,
|
|
83
|
+
{
|
|
84
|
+
type: "button",
|
|
85
|
+
variant: "outline",
|
|
86
|
+
size: "sm",
|
|
87
|
+
disabled: imageUploading,
|
|
88
|
+
onClick: () => fileInputRef.current?.click(),
|
|
89
|
+
children: imageUploading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
90
|
+
/* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 mr-1.5 animate-spin" }),
|
|
91
|
+
"Uploading\u2026"
|
|
92
|
+
] }) : imagePreview ? "Change" : "Upload image"
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
imagePreview ? /* @__PURE__ */ jsxs(
|
|
96
|
+
"button",
|
|
97
|
+
{
|
|
98
|
+
type: "button",
|
|
99
|
+
onClick: onClearImage,
|
|
100
|
+
className: "flex items-center gap-1 text-xs text-muted-foreground hover:text-destructive transition-colors",
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ jsx(X, { className: "h-3 w-3" }),
|
|
103
|
+
" Remove"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
) : null,
|
|
107
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: imageUri ? /* @__PURE__ */ jsx("span", { className: "text-brand-purple", children: "\u2713 Uploaded" }) : "JPG, PNG, SVG or WebP" }),
|
|
108
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "This media and metadata are pinned before the first mint is submitted." })
|
|
109
|
+
] })
|
|
110
|
+
] })
|
|
111
|
+
] }) }),
|
|
112
|
+
/* @__PURE__ */ jsx(FadeIn, { delay: 0.08, children: /* @__PURE__ */ jsx(FormField, { control: form.control, name: "name", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
113
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Token name *" }),
|
|
114
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { placeholder: "Genesis Track #1", ...field }) }),
|
|
115
|
+
/* @__PURE__ */ jsx(FormDescription, { children: "The title collectors will see for this edition." }),
|
|
116
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
117
|
+
] }) }) }),
|
|
118
|
+
/* @__PURE__ */ jsx(FadeIn, { delay: 0.1, children: /* @__PURE__ */ jsx(FormField, { control: form.control, name: "description", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
119
|
+
/* @__PURE__ */ jsxs(FormLabel, { children: [
|
|
120
|
+
"Description ",
|
|
121
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground font-normal", children: "(optional)" })
|
|
122
|
+
] }),
|
|
123
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Textarea, { placeholder: "Describe this digital asset\u2026", rows: 3, ...field }) }),
|
|
124
|
+
/* @__PURE__ */ jsx(FormDescription, { children: "Add context, utility, or creative notes for this token edition." }),
|
|
125
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
126
|
+
] }) }) }),
|
|
127
|
+
/* @__PURE__ */ jsx(FadeIn, { delay: 0.12, children: /* @__PURE__ */ jsx(FormField, { control: form.control, name: "external_url", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
128
|
+
/* @__PURE__ */ jsxs(FormLabel, { children: [
|
|
129
|
+
"External link ",
|
|
130
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground font-normal", children: "(optional)" })
|
|
131
|
+
] }),
|
|
132
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { placeholder: "https://yourwebsite.com", ...field }) }),
|
|
133
|
+
/* @__PURE__ */ jsx(FormDescription, { children: "Canonical link for this edition." }),
|
|
134
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
135
|
+
] }) }) }),
|
|
136
|
+
/* @__PURE__ */ jsx(FadeIn, { delay: 0.14, children: /* @__PURE__ */ jsx(FormField, { control: form.control, name: "value", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
137
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Quantity *" }),
|
|
138
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { type: "number", min: 1, placeholder: "1", className: "max-w-[180px]", ...field }) }),
|
|
139
|
+
/* @__PURE__ */ jsx(FormDescription, { children: "Number of copies to mint for this token ID." }),
|
|
140
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
141
|
+
] }) }) }),
|
|
142
|
+
/* @__PURE__ */ jsx(FadeIn, { delay: 0.16, children: /* @__PURE__ */ jsx(FormField, { control: form.control, name: "recipient", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
143
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Recipient *" }),
|
|
144
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { placeholder: "0x\u2026", ...field }) }),
|
|
145
|
+
/* @__PURE__ */ jsx(FormDescription, { children: "Account that receives the minted tokens. Defaults to your account." }),
|
|
146
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
147
|
+
] }) }) }),
|
|
148
|
+
/* @__PURE__ */ jsx(FadeIn, { delay: 0.18, children: /* @__PURE__ */ jsxs(
|
|
149
|
+
CollapsibleSection,
|
|
150
|
+
{
|
|
151
|
+
open: licensingOpen,
|
|
152
|
+
onOpenChange: setLicensingOpen,
|
|
153
|
+
icon: /* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4 text-primary" }),
|
|
154
|
+
label: "Licensing Terms",
|
|
155
|
+
hint: "Optional \xB7 Berne Convention",
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Set the licensing terms for this edition \u2014 saved permanently with it." }),
|
|
158
|
+
/* @__PURE__ */ jsx(FormField, { control: form.control, name: "licenseType", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
159
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "License" }),
|
|
160
|
+
/* @__PURE__ */ jsxs(Select, { value: field.value, onValueChange: handleLicenseChange, children: [
|
|
161
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, {}) }) }),
|
|
162
|
+
/* @__PURE__ */ jsx(SelectContent, { children: LICENSE_TYPES.map((license) => /* @__PURE__ */ jsx(SelectItem, { value: license.value, children: license.label }, license.value)) })
|
|
163
|
+
] }),
|
|
164
|
+
(() => {
|
|
165
|
+
const preset = LICENSE_TYPES.find((license) => license.value === field.value);
|
|
166
|
+
return preset ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-1", children: preset.description }) : null;
|
|
167
|
+
})(),
|
|
168
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
169
|
+
] }) }),
|
|
170
|
+
/* @__PURE__ */ jsx(FormField, { control: form.control, name: "commercialUse", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
171
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Commercial Use" }),
|
|
172
|
+
/* @__PURE__ */ jsx(ToggleGroup, { value: field.value, options: ["Yes", "No"], onChange: field.onChange })
|
|
173
|
+
] }) }),
|
|
174
|
+
/* @__PURE__ */ jsx(FormField, { control: form.control, name: "derivatives", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
175
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Derivatives" }),
|
|
176
|
+
/* @__PURE__ */ jsx(ToggleGroup, { value: field.value, options: DERIVATIVES_OPTIONS, onChange: field.onChange })
|
|
177
|
+
] }) }),
|
|
178
|
+
/* @__PURE__ */ jsx(FormField, { control: form.control, name: "attribution", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
179
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Attribution" }),
|
|
180
|
+
/* @__PURE__ */ jsx(ToggleGroup, { value: field.value, options: ["Required", "Not Required"], onChange: field.onChange })
|
|
181
|
+
] }) }),
|
|
182
|
+
/* @__PURE__ */ jsxs(Collapsible, { open: advancedOpen, onOpenChange: setAdvancedOpen, children: [
|
|
183
|
+
/* @__PURE__ */ jsx(CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
184
|
+
"button",
|
|
185
|
+
{
|
|
186
|
+
type: "button",
|
|
187
|
+
className: "flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: cn("h-3.5 w-3.5 transition-transform", advancedOpen && "rotate-180") }),
|
|
190
|
+
"Advanced options"
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
) }),
|
|
194
|
+
/* @__PURE__ */ jsxs(CollapsibleContent, { className: "space-y-4 pt-3", children: [
|
|
195
|
+
/* @__PURE__ */ jsx(FormField, { control: form.control, name: "geographicScope", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
196
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Territory" }),
|
|
197
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { placeholder: "Worldwide", ...field }) })
|
|
198
|
+
] }) }),
|
|
199
|
+
/* @__PURE__ */ jsx(FormField, { control: form.control, name: "aiPolicy", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
200
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "AI & Data Mining" }),
|
|
201
|
+
/* @__PURE__ */ jsx(ToggleGroup, { value: field.value, options: AI_POLICIES, onChange: field.onChange })
|
|
202
|
+
] }) }),
|
|
203
|
+
/* @__PURE__ */ jsx(FormField, { control: form.control, name: "royalty", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
204
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "Royalty % (0-50)" }),
|
|
205
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
206
|
+
Input,
|
|
207
|
+
{
|
|
208
|
+
type: "number",
|
|
209
|
+
min: 0,
|
|
210
|
+
max: 50,
|
|
211
|
+
step: 0.5,
|
|
212
|
+
placeholder: "0",
|
|
213
|
+
...field,
|
|
214
|
+
onChange: (event) => field.onChange(parseFloat(event.target.value) || 0)
|
|
215
|
+
}
|
|
216
|
+
) }),
|
|
217
|
+
/* @__PURE__ */ jsx(FormMessage, {})
|
|
218
|
+
] }) })
|
|
219
|
+
] })
|
|
220
|
+
] })
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
) }),
|
|
224
|
+
/* @__PURE__ */ jsx(FadeIn, { delay: 0.2, children: /* @__PURE__ */ jsxs(
|
|
225
|
+
CollapsibleSection,
|
|
226
|
+
{
|
|
227
|
+
open: ipTypeOpen,
|
|
228
|
+
onOpenChange: setIpTypeOpen,
|
|
229
|
+
icon: /* @__PURE__ */ jsx(Layers, { className: "h-4 w-4 text-primary" }),
|
|
230
|
+
label: "IP Type & Metadata",
|
|
231
|
+
hint: "Optional",
|
|
232
|
+
children: [
|
|
233
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Choose a content type, fill suggested metadata, or add your own trait pairs." }),
|
|
234
|
+
/* @__PURE__ */ jsx(FormField, { control: form.control, name: "ipType", render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
235
|
+
/* @__PURE__ */ jsx(FormLabel, { children: "IP Type" }),
|
|
236
|
+
/* @__PURE__ */ jsxs(Select, { onValueChange: field.onChange, value: field.value, children: [
|
|
237
|
+
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, {}) }) }),
|
|
238
|
+
/* @__PURE__ */ jsx(SelectContent, { children: IP_TYPES.map((type) => /* @__PURE__ */ jsx(SelectItem, { value: type, children: type }, type)) })
|
|
239
|
+
] })
|
|
240
|
+
] }) }),
|
|
241
|
+
/* @__PURE__ */ jsx(
|
|
242
|
+
IPTypeFields,
|
|
243
|
+
{
|
|
244
|
+
ipType: form.watch("ipType"),
|
|
245
|
+
onChange: onMetadataFieldsChange,
|
|
246
|
+
uploadDocument
|
|
247
|
+
},
|
|
248
|
+
metadataResetKey
|
|
249
|
+
)
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
) }),
|
|
253
|
+
/* @__PURE__ */ jsxs(FadeIn, { delay: 0.22, children: [
|
|
254
|
+
/* @__PURE__ */ jsxs(
|
|
255
|
+
Button,
|
|
256
|
+
{
|
|
257
|
+
type: "submit",
|
|
258
|
+
size: "lg",
|
|
259
|
+
className: "w-full rounded-xl mt-2",
|
|
260
|
+
disabled: mintDisabled,
|
|
261
|
+
children: [
|
|
262
|
+
/* @__PURE__ */ jsx(Sparkles, { className: "h-4 w-4 mr-2" }),
|
|
263
|
+
"Mint Edition"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
),
|
|
267
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-center text-muted-foreground mt-2", children: "Free to mint \u2014 protocol fee is zero." })
|
|
268
|
+
] })
|
|
269
|
+
] });
|
|
270
|
+
}
|
|
271
|
+
export {
|
|
272
|
+
EditionMintFields
|
|
273
|
+
};
|
|
274
|
+
//# sourceMappingURL=edition-mint-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/edition-mint-fields.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, type RefObject } from \"react\";\nimport type { UseFormReturn } from \"react-hook-form\";\nimport { ChevronDown, ImagePlus, Layers, Loader2, ShieldCheck, Sparkles, X } from \"lucide-react\";\nimport { acceptFor } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport { Button } from \"../button.js\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"../collapsible.js\";\nimport { CollapsibleSection } from \"../collapsible-section.js\";\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from \"../form.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../select.js\";\nimport { FadeIn } from \"../motion-primitives.js\";\nimport { IPTypeFields, type MetadataField } from \"../ip-type-fields.js\";\nimport { ToggleGroup } from \"../create-form-primitives.js\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES, LICENSE_TYPES, type IPType } from \"../../data/ip.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport type { EditionMintValues } from \"./edition-mint-schema.js\";\n\ninterface EditionMintFieldsProps {\n form: UseFormReturn<EditionMintValues>;\n imagePreview: string | null;\n imageUri: string | null;\n imageUploading: boolean;\n mintDisabled: boolean;\n fileInputRef: RefObject<HTMLInputElement | null>;\n onImageSelect: (file: File) => void;\n onClearImage: () => void;\n metadataResetKey: number;\n onMetadataFieldsChange: (fields: MetadataField[]) => void;\n uploadDocument: (file: File) => Promise<string>;\n}\n\nexport function EditionMintFields({\n form,\n imagePreview,\n imageUri,\n imageUploading,\n mintDisabled,\n fileInputRef,\n onImageSelect,\n onClearImage,\n metadataResetKey,\n onMetadataFieldsChange,\n uploadDocument,\n}: EditionMintFieldsProps) {\n const [licensingOpen, setLicensingOpen] = useState(false);\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [ipTypeOpen, setIpTypeOpen] = useState(false);\n\n const handleLicenseChange = (value: string) => {\n form.setValue(\"licenseType\", value);\n const preset = LICENSE_TYPES.find((license) => license.value === value);\n if (preset) {\n form.setValue(\"commercialUse\", preset.commercialUse);\n form.setValue(\"derivatives\", preset.derivatives);\n form.setValue(\"attribution\", preset.attribution);\n }\n };\n\n return (\n <div className=\"space-y-5\">\n <FadeIn delay={0.06}>\n <div className=\"space-y-2\">\n <p className=\"text-sm font-medium\">\n Asset image <span className=\"text-destructive\">*</span>\n </p>\n <div className=\"flex items-center gap-4\">\n <div\n role=\"button\"\n tabIndex={0}\n onClick={() => !imageUploading && fileInputRef.current?.click()}\n onKeyDown={(event) => { if (event.key === \"Enter\") fileInputRef.current?.click(); }}\n className=\"relative h-20 w-20 rounded-2xl border-2 border-dashed border-border bg-muted flex items-center justify-center overflow-hidden shrink-0 cursor-pointer hover:border-brand-purple/50 transition-colors\"\n >\n {imagePreview ? (\n <Image src={imagePreview} alt=\"Token\" fill unoptimized className=\"object-cover\" />\n ) : (\n <ImagePlus className=\"h-6 w-6 text-muted-foreground\" />\n )}\n {imageUploading ? (\n <div className=\"absolute inset-0 bg-background/70 flex items-center justify-center\">\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n </div>\n ) : null}\n </div>\n <div className=\"space-y-1.5\">\n <input\n ref={fileInputRef}\n type=\"file\"\n accept={acceptFor(\"image\")}\n className=\"hidden\"\n onChange={(event) => {\n const file = event.target.files?.[0];\n if (file) onImageSelect(file);\n }}\n />\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n disabled={imageUploading}\n onClick={() => fileInputRef.current?.click()}\n >\n {imageUploading ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 mr-1.5 animate-spin\" />\n Uploading…\n </>\n ) : (\n imagePreview ? \"Change\" : \"Upload image\"\n )}\n </Button>\n {imagePreview ? (\n <button\n type=\"button\"\n onClick={onClearImage}\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 ) : null}\n <p className=\"text-xs text-muted-foreground\">\n {imageUri ? (\n <span className=\"text-brand-purple\">✓ Uploaded</span>\n ) : (\n \"JPG, PNG, SVG or WebP\"\n )}\n </p>\n <p className=\"text-xs text-muted-foreground\">This media and metadata are pinned before the first mint is submitted.</p>\n </div>\n </div>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <FormField control={form.control} name=\"name\" render={({ field }) => (\n <FormItem>\n <FormLabel>Token name *</FormLabel>\n <FormControl><Input placeholder=\"Genesis Track #1\" {...field} /></FormControl>\n <FormDescription>The title collectors will see for this edition.</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.1}>\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>\n <Textarea placeholder=\"Describe this digital asset…\" rows={3} {...field} />\n </FormControl>\n <FormDescription>Add context, utility, or creative notes for this token edition.</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <FormField control={form.control} name=\"external_url\" render={({ field }) => (\n <FormItem>\n <FormLabel>External link <span className=\"text-muted-foreground font-normal\">(optional)</span></FormLabel>\n <FormControl><Input placeholder=\"https://yourwebsite.com\" {...field} /></FormControl>\n <FormDescription>Canonical link for this edition.</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.14}>\n <FormField control={form.control} name=\"value\" render={({ field }) => (\n <FormItem>\n <FormLabel>Quantity *</FormLabel>\n <FormControl>\n <Input type=\"number\" min={1} placeholder=\"1\" className=\"max-w-[180px]\" {...field} />\n </FormControl>\n <FormDescription>Number of copies to mint for this token ID.</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.16}>\n <FormField control={form.control} name=\"recipient\" render={({ field }) => (\n <FormItem>\n <FormLabel>Recipient *</FormLabel>\n <FormControl>\n <Input placeholder=\"0x…\" {...field} />\n </FormControl>\n <FormDescription>Account that receives the minted tokens. Defaults to your account.</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.18}>\n <CollapsibleSection\n open={licensingOpen}\n onOpenChange={setLicensingOpen}\n icon={<ShieldCheck className=\"h-4 w-4 text-primary\" />}\n label=\"Licensing Terms\"\n hint=\"Optional · Berne Convention\"\n >\n <p className=\"text-xs text-muted-foreground\">\n Set the licensing terms for this edition — saved permanently with it.\n </p>\n\n <FormField control={form.control} name=\"licenseType\" render={({ field }) => (\n <FormItem>\n <FormLabel>License</FormLabel>\n <Select value={field.value} onValueChange={handleLicenseChange}>\n <FormControl>\n <SelectTrigger><SelectValue /></SelectTrigger>\n </FormControl>\n <SelectContent>\n {LICENSE_TYPES.map((license) => (\n <SelectItem key={license.value} value={license.value}>{license.label}</SelectItem>\n ))}\n </SelectContent>\n </Select>\n {(() => {\n const preset = LICENSE_TYPES.find((license) => license.value === field.value);\n return preset ? <p className=\"text-xs text-muted-foreground mt-1\">{preset.description}</p> : null;\n })()}\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"commercialUse\" render={({ field }) => (\n <FormItem>\n <FormLabel>Commercial Use</FormLabel>\n <ToggleGroup value={field.value} options={[\"Yes\", \"No\"]} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"derivatives\" render={({ field }) => (\n <FormItem>\n <FormLabel>Derivatives</FormLabel>\n <ToggleGroup value={field.value} options={DERIVATIVES_OPTIONS} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"attribution\" render={({ field }) => (\n <FormItem>\n <FormLabel>Attribution</FormLabel>\n <ToggleGroup value={field.value} options={[\"Required\", \"Not Required\"]} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <Collapsible open={advancedOpen} onOpenChange={setAdvancedOpen}>\n <CollapsibleTrigger asChild>\n <button\n type=\"button\"\n className=\"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors\"\n >\n <ChevronDown className={cn(\"h-3.5 w-3.5 transition-transform\", advancedOpen && \"rotate-180\")} />\n Advanced options\n </button>\n </CollapsibleTrigger>\n <CollapsibleContent className=\"space-y-4 pt-3\">\n <FormField control={form.control} name=\"geographicScope\" render={({ field }) => (\n <FormItem>\n <FormLabel>Territory</FormLabel>\n <FormControl>\n <Input placeholder=\"Worldwide\" {...field} />\n </FormControl>\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"aiPolicy\" render={({ field }) => (\n <FormItem>\n <FormLabel>AI & Data Mining</FormLabel>\n <ToggleGroup value={field.value} options={AI_POLICIES} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"royalty\" render={({ field }) => (\n <FormItem>\n <FormLabel>Royalty % (0-50)</FormLabel>\n <FormControl>\n <Input\n type=\"number\"\n min={0}\n max={50}\n step={0.5}\n placeholder=\"0\"\n {...field}\n onChange={(event) => field.onChange(parseFloat(event.target.value) || 0)}\n />\n </FormControl>\n <FormMessage />\n </FormItem>\n )} />\n </CollapsibleContent>\n </Collapsible>\n </CollapsibleSection>\n </FadeIn>\n\n <FadeIn delay={0.2}>\n <CollapsibleSection\n open={ipTypeOpen}\n onOpenChange={setIpTypeOpen}\n icon={<Layers className=\"h-4 w-4 text-primary\" />}\n label=\"IP Type & Metadata\"\n hint=\"Optional\"\n >\n <p className=\"text-xs text-muted-foreground\">\n Choose a content type, fill suggested metadata, or add your own trait pairs.\n </p>\n\n <FormField control={form.control} name=\"ipType\" render={({ field }) => (\n <FormItem>\n <FormLabel>IP Type</FormLabel>\n <Select onValueChange={field.onChange} value={field.value}>\n <FormControl>\n <SelectTrigger><SelectValue /></SelectTrigger>\n </FormControl>\n <SelectContent>\n {IP_TYPES.map((type) => (\n <SelectItem key={type} value={type}>{type}</SelectItem>\n ))}\n </SelectContent>\n </Select>\n </FormItem>\n )} />\n\n <IPTypeFields\n key={metadataResetKey}\n ipType={form.watch(\"ipType\") as IPType}\n onChange={onMetadataFieldsChange}\n uploadDocument={uploadDocument}\n />\n </CollapsibleSection>\n </FadeIn>\n\n <FadeIn delay={0.22}>\n <Button\n type=\"submit\"\n size=\"lg\"\n className=\"w-full rounded-xl mt-2\"\n disabled={mintDisabled}\n >\n <Sparkles className=\"h-4 w-4 mr-2\" />\n Mint Edition\n </Button>\n <p className=\"text-xs text-center text-muted-foreground mt-2\">\n Free to mint — protocol fee is zero.\n </p>\n </FadeIn>\n </div>\n );\n}\n"],"mappings":";AAkEU,SAyCQ,UAxCM,KADd;AAhEV,SAAS,gBAAgC;AAEzC,SAAS,aAAa,WAAW,QAAQ,SAAS,aAAa,UAAU,SAAS;AAClF,SAAS,iBAAiB;AAC1B,OAAO,WAAW;AAClB,SAAS,cAAc;AACvB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,aAAa,oBAAoB,0BAA0B;AACpE,SAAS,0BAA0B;AACnC,SAAS,aAAa,iBAAiB,WAAW,UAAU,WAAW,mBAAmB;AAC1F,SAAS,QAAQ,eAAe,YAAY,eAAe,mBAAmB;AAC9E,SAAS,cAAc;AACvB,SAAS,oBAAwC;AACjD,SAAS,mBAAmB;AA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AAAA;AAAA,UACC,MAAK;AAAA,UACL,MAAK;AAAA,UACL,WAAU;AAAA,UACV,UAAU;AAAA,UAEV;AAAA,gCAAC,YAAS,WAAU,gBAAe;AAAA,YAAE;AAAA;AAAA;AAAA,MAEvC;AAAA,MACA,oBAAC,OAAE,WAAU,kDAAiD,uDAE9D;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var edition_mint_schema_exports = {};
|
|
30
|
+
__export(edition_mint_schema_exports, {
|
|
31
|
+
editionMintSchema: () => editionMintSchema
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(edition_mint_schema_exports);
|
|
34
|
+
var z = __toESM(require("zod"), 1);
|
|
35
|
+
var import_sdk = require("@medialane/sdk");
|
|
36
|
+
var import_ip = require("../../data/ip.js");
|
|
37
|
+
const editionMintSchema = z.object({
|
|
38
|
+
value: z.string().min(1, "Quantity required").regex(/^\d+$/, "Must be a positive integer").refine((v) => parseInt(v, 10) >= 1, "Minimum 1"),
|
|
39
|
+
recipient: z.string().min(1, "Recipient address required").regex(/^0x[0-9a-fA-F]+$/, "Enter a valid Starknet address"),
|
|
40
|
+
name: z.string().min(1, "Token name required").max(import_sdk.FIELD_LIMITS.name),
|
|
41
|
+
description: z.string().max(import_sdk.FIELD_LIMITS.description).optional(),
|
|
42
|
+
external_url: z.string().max(500).refine((value) => !value || value.startsWith("http://") || value.startsWith("https://"), {
|
|
43
|
+
message: "Must start with http:// or https://"
|
|
44
|
+
}).optional(),
|
|
45
|
+
ipType: z.enum(import_ip.IP_TYPES),
|
|
46
|
+
licenseType: z.string().min(1, "License required"),
|
|
47
|
+
commercialUse: z.enum(["Yes", "No"]),
|
|
48
|
+
derivatives: z.enum(import_ip.DERIVATIVES_OPTIONS),
|
|
49
|
+
attribution: z.enum(["Required", "Not Required"]),
|
|
50
|
+
geographicScope: z.string(),
|
|
51
|
+
aiPolicy: z.enum(import_ip.AI_POLICIES),
|
|
52
|
+
royalty: z.coerce.number().min(0).max(50)
|
|
53
|
+
});
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
editionMintSchema
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=edition-mint-schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/edition-mint-schema.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { FIELD_LIMITS } from \"@medialane/sdk\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES } from \"../../data/ip.js\";\n\nexport const editionMintSchema = z.object({\n value: z\n .string()\n .min(1, \"Quantity required\")\n .regex(/^\\d+$/, \"Must be a positive integer\")\n .refine((v) => parseInt(v, 10) >= 1, \"Minimum 1\"),\n recipient: z\n .string()\n .min(1, \"Recipient address required\")\n .regex(/^0x[0-9a-fA-F]+$/, \"Enter a valid Starknet address\"),\n name: z.string().min(1, \"Token name required\").max(FIELD_LIMITS.name),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_url: z\n .string()\n .max(500)\n .refine((value) => !value || value.startsWith(\"http://\") || value.startsWith(\"https://\"), {\n message: \"Must start with http:// or https://\",\n })\n .optional(),\n ipType: z.enum(IP_TYPES),\n licenseType: z.string().min(1, \"License required\"),\n commercialUse: z.enum([\"Yes\", \"No\"]),\n derivatives: z.enum(DERIVATIVES_OPTIONS),\n attribution: z.enum([\"Required\", \"Not Required\"]),\n geographicScope: z.string(),\n aiPolicy: z.enum(AI_POLICIES),\n royalty: z.coerce.number().min(0).max(50),\n});\n\nexport type EditionMintValues = z.infer<typeof editionMintSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AACnB,iBAA6B;AAC7B,gBAA2D;AAEpD,MAAM,oBAAoB,EAAE,OAAO;AAAA,EACxC,OAAO,EACJ,OAAO,EACP,IAAI,GAAG,mBAAmB,EAC1B,MAAM,SAAS,4BAA4B,EAC3C,OAAO,CAAC,MAAM,SAAS,GAAG,EAAE,KAAK,GAAG,WAAW;AAAA,EAClD,WAAW,EACR,OAAO,EACP,IAAI,GAAG,4BAA4B,EACnC,MAAM,oBAAoB,gCAAgC;AAAA,EAC7D,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,qBAAqB,EAAE,IAAI,wBAAa,IAAI;AAAA,EACpE,aAAa,EAAE,OAAO,EAAE,IAAI,wBAAa,WAAW,EAAE,SAAS;AAAA,EAC/D,cAAc,EACX,OAAO,EACP,IAAI,GAAG,EACP,OAAO,CAAC,UAAU,CAAC,SAAS,MAAM,WAAW,SAAS,KAAK,MAAM,WAAW,UAAU,GAAG;AAAA,IACxF,SAAS;AAAA,EACX,CAAC,EACA,SAAS;AAAA,EACZ,QAAQ,EAAE,KAAK,kBAAQ;AAAA,EACvB,aAAa,EAAE,OAAO,EAAE,IAAI,GAAG,kBAAkB;AAAA,EACjD,eAAe,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC;AAAA,EACnC,aAAa,EAAE,KAAK,6BAAmB;AAAA,EACvC,aAAa,EAAE,KAAK,CAAC,YAAY,cAAc,CAAC;AAAA,EAChD,iBAAiB,EAAE,OAAO;AAAA,EAC1B,UAAU,EAAE,KAAK,qBAAW;AAAA,EAC5B,SAAS,EAAE,OAAO,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AAC1C,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const editionMintSchema: zod.ZodObject<{
|
|
4
|
+
value: zod.ZodEffects<zod.ZodString, string, string>;
|
|
5
|
+
recipient: zod.ZodString;
|
|
6
|
+
name: zod.ZodString;
|
|
7
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
8
|
+
external_url: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
9
|
+
ipType: zod.ZodEnum<["Audio", "Art", "Documents", "NFT", "Video", "Photography", "Patents", "Posts", "Publications", "RWA", "Software", "Custom"]>;
|
|
10
|
+
licenseType: zod.ZodString;
|
|
11
|
+
commercialUse: zod.ZodEnum<["Yes", "No"]>;
|
|
12
|
+
derivatives: zod.ZodEnum<["Allowed", "Not Allowed", "Share-Alike"]>;
|
|
13
|
+
attribution: zod.ZodEnum<["Required", "Not Required"]>;
|
|
14
|
+
geographicScope: zod.ZodString;
|
|
15
|
+
aiPolicy: zod.ZodEnum<["Allowed", "Not Allowed", "Training Only"]>;
|
|
16
|
+
royalty: zod.ZodNumber;
|
|
17
|
+
}, "strip", zod.ZodTypeAny, {
|
|
18
|
+
name: string;
|
|
19
|
+
value: string;
|
|
20
|
+
ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
|
|
21
|
+
licenseType: string;
|
|
22
|
+
commercialUse: "Yes" | "No";
|
|
23
|
+
derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
|
|
24
|
+
attribution: "Required" | "Not Required";
|
|
25
|
+
geographicScope: string;
|
|
26
|
+
aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
|
|
27
|
+
royalty: number;
|
|
28
|
+
recipient: string;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
external_url?: string | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
name: string;
|
|
33
|
+
value: string;
|
|
34
|
+
ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
|
|
35
|
+
licenseType: string;
|
|
36
|
+
commercialUse: "Yes" | "No";
|
|
37
|
+
derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
|
|
38
|
+
attribution: "Required" | "Not Required";
|
|
39
|
+
geographicScope: string;
|
|
40
|
+
aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
|
|
41
|
+
royalty: number;
|
|
42
|
+
recipient: string;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
external_url?: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
type EditionMintValues = zod.infer<typeof editionMintSchema>;
|
|
47
|
+
|
|
48
|
+
export { type EditionMintValues, editionMintSchema };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const editionMintSchema: zod.ZodObject<{
|
|
4
|
+
value: zod.ZodEffects<zod.ZodString, string, string>;
|
|
5
|
+
recipient: zod.ZodString;
|
|
6
|
+
name: zod.ZodString;
|
|
7
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
8
|
+
external_url: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
|
|
9
|
+
ipType: zod.ZodEnum<["Audio", "Art", "Documents", "NFT", "Video", "Photography", "Patents", "Posts", "Publications", "RWA", "Software", "Custom"]>;
|
|
10
|
+
licenseType: zod.ZodString;
|
|
11
|
+
commercialUse: zod.ZodEnum<["Yes", "No"]>;
|
|
12
|
+
derivatives: zod.ZodEnum<["Allowed", "Not Allowed", "Share-Alike"]>;
|
|
13
|
+
attribution: zod.ZodEnum<["Required", "Not Required"]>;
|
|
14
|
+
geographicScope: zod.ZodString;
|
|
15
|
+
aiPolicy: zod.ZodEnum<["Allowed", "Not Allowed", "Training Only"]>;
|
|
16
|
+
royalty: zod.ZodNumber;
|
|
17
|
+
}, "strip", zod.ZodTypeAny, {
|
|
18
|
+
name: string;
|
|
19
|
+
value: string;
|
|
20
|
+
ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
|
|
21
|
+
licenseType: string;
|
|
22
|
+
commercialUse: "Yes" | "No";
|
|
23
|
+
derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
|
|
24
|
+
attribution: "Required" | "Not Required";
|
|
25
|
+
geographicScope: string;
|
|
26
|
+
aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
|
|
27
|
+
royalty: number;
|
|
28
|
+
recipient: string;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
external_url?: string | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
name: string;
|
|
33
|
+
value: string;
|
|
34
|
+
ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
|
|
35
|
+
licenseType: string;
|
|
36
|
+
commercialUse: "Yes" | "No";
|
|
37
|
+
derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
|
|
38
|
+
attribution: "Required" | "Not Required";
|
|
39
|
+
geographicScope: string;
|
|
40
|
+
aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
|
|
41
|
+
royalty: number;
|
|
42
|
+
recipient: string;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
external_url?: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
type EditionMintValues = zod.infer<typeof editionMintSchema>;
|
|
47
|
+
|
|
48
|
+
export { type EditionMintValues, editionMintSchema };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { FIELD_LIMITS } from "@medialane/sdk";
|
|
3
|
+
import { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES } from "../../data/ip.js";
|
|
4
|
+
const editionMintSchema = z.object({
|
|
5
|
+
value: z.string().min(1, "Quantity required").regex(/^\d+$/, "Must be a positive integer").refine((v) => parseInt(v, 10) >= 1, "Minimum 1"),
|
|
6
|
+
recipient: z.string().min(1, "Recipient address required").regex(/^0x[0-9a-fA-F]+$/, "Enter a valid Starknet address"),
|
|
7
|
+
name: z.string().min(1, "Token name required").max(FIELD_LIMITS.name),
|
|
8
|
+
description: z.string().max(FIELD_LIMITS.description).optional(),
|
|
9
|
+
external_url: z.string().max(500).refine((value) => !value || value.startsWith("http://") || value.startsWith("https://"), {
|
|
10
|
+
message: "Must start with http:// or https://"
|
|
11
|
+
}).optional(),
|
|
12
|
+
ipType: z.enum(IP_TYPES),
|
|
13
|
+
licenseType: z.string().min(1, "License required"),
|
|
14
|
+
commercialUse: z.enum(["Yes", "No"]),
|
|
15
|
+
derivatives: z.enum(DERIVATIVES_OPTIONS),
|
|
16
|
+
attribution: z.enum(["Required", "Not Required"]),
|
|
17
|
+
geographicScope: z.string(),
|
|
18
|
+
aiPolicy: z.enum(AI_POLICIES),
|
|
19
|
+
royalty: z.coerce.number().min(0).max(50)
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
editionMintSchema
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=edition-mint-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/edition-mint-schema.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { FIELD_LIMITS } from \"@medialane/sdk\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES } from \"../../data/ip.js\";\n\nexport const editionMintSchema = z.object({\n value: z\n .string()\n .min(1, \"Quantity required\")\n .regex(/^\\d+$/, \"Must be a positive integer\")\n .refine((v) => parseInt(v, 10) >= 1, \"Minimum 1\"),\n recipient: z\n .string()\n .min(1, \"Recipient address required\")\n .regex(/^0x[0-9a-fA-F]+$/, \"Enter a valid Starknet address\"),\n name: z.string().min(1, \"Token name required\").max(FIELD_LIMITS.name),\n description: z.string().max(FIELD_LIMITS.description).optional(),\n external_url: z\n .string()\n .max(500)\n .refine((value) => !value || value.startsWith(\"http://\") || value.startsWith(\"https://\"), {\n message: \"Must start with http:// or https://\",\n })\n .optional(),\n ipType: z.enum(IP_TYPES),\n licenseType: z.string().min(1, \"License required\"),\n commercialUse: z.enum([\"Yes\", \"No\"]),\n derivatives: z.enum(DERIVATIVES_OPTIONS),\n attribution: z.enum([\"Required\", \"Not Required\"]),\n geographicScope: z.string(),\n aiPolicy: z.enum(AI_POLICIES),\n royalty: z.coerce.number().min(0).max(50),\n});\n\nexport type EditionMintValues = z.infer<typeof editionMintSchema>;\n"],"mappings":"AAAA,YAAY,OAAO;AACnB,SAAS,oBAAoB;AAC7B,SAAS,aAAa,qBAAqB,gBAAgB;AAEpD,MAAM,oBAAoB,EAAE,OAAO;AAAA,EACxC,OAAO,EACJ,OAAO,EACP,IAAI,GAAG,mBAAmB,EAC1B,MAAM,SAAS,4BAA4B,EAC3C,OAAO,CAAC,MAAM,SAAS,GAAG,EAAE,KAAK,GAAG,WAAW;AAAA,EAClD,WAAW,EACR,OAAO,EACP,IAAI,GAAG,4BAA4B,EACnC,MAAM,oBAAoB,gCAAgC;AAAA,EAC7D,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,qBAAqB,EAAE,IAAI,aAAa,IAAI;AAAA,EACpE,aAAa,EAAE,OAAO,EAAE,IAAI,aAAa,WAAW,EAAE,SAAS;AAAA,EAC/D,cAAc,EACX,OAAO,EACP,IAAI,GAAG,EACP,OAAO,CAAC,UAAU,CAAC,SAAS,MAAM,WAAW,SAAS,KAAK,MAAM,WAAW,UAAU,GAAG;AAAA,IACxF,SAAS;AAAA,EACX,CAAC,EACA,SAAS;AAAA,EACZ,QAAQ,EAAE,KAAK,QAAQ;AAAA,EACvB,aAAa,EAAE,OAAO,EAAE,IAAI,GAAG,kBAAkB;AAAA,EACjD,eAAe,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC;AAAA,EACnC,aAAa,EAAE,KAAK,mBAAmB;AAAA,EACvC,aAAa,EAAE,KAAK,CAAC,YAAY,cAAc,CAAC;AAAA,EAChD,iBAAiB,EAAE,OAAO;AAAA,EAC1B,UAAU,EAAE,KAAK,WAAW;AAAA,EAC5B,SAAS,EAAE,OAAO,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AAC1C,CAAC;","names":[]}
|