@medialane/ui 0.389.0 → 0.390.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 (55) hide show
  1. package/dist/components/badge.d.cts +1 -1
  2. package/dist/components/badge.d.ts +1 -1
  3. package/dist/components/button.d.cts +1 -1
  4. package/dist/components/button.d.ts +1 -1
  5. package/dist/components/claim-rail.cjs +2 -2
  6. package/dist/components/claim-rail.cjs.map +1 -1
  7. package/dist/components/claim-rail.d.cts +3 -2
  8. package/dist/components/claim-rail.d.ts +3 -2
  9. package/dist/components/claim-rail.js +2 -2
  10. package/dist/components/claim-rail.js.map +1 -1
  11. package/dist/components/create-form-primitives.cjs +1 -1
  12. package/dist/components/create-form-primitives.cjs.map +1 -1
  13. package/dist/components/create-form-primitives.js +1 -1
  14. package/dist/components/create-form-primitives.js.map +1 -1
  15. package/dist/components/drop/create/drop-create.cjs +72 -107
  16. package/dist/components/drop/create/drop-create.cjs.map +1 -1
  17. package/dist/components/drop/create/drop-create.d.cts +12 -6
  18. package/dist/components/drop/create/drop-create.d.ts +12 -6
  19. package/dist/components/drop/create/drop-create.js +73 -110
  20. package/dist/components/drop/create/drop-create.js.map +1 -1
  21. package/dist/components/drop/create/drop-fields.cjs +124 -99
  22. package/dist/components/drop/create/drop-fields.cjs.map +1 -1
  23. package/dist/components/drop/create/drop-fields.d.cts +15 -11
  24. package/dist/components/drop/create/drop-fields.d.ts +15 -11
  25. package/dist/components/drop/create/drop-fields.js +122 -98
  26. package/dist/components/drop/create/drop-fields.js.map +1 -1
  27. package/dist/components/drop/create/launch-dialog.d.cts +0 -1
  28. package/dist/components/drop/create/launch-dialog.d.ts +0 -1
  29. package/dist/components/fast-mint/dropzone.cjs +7 -17
  30. package/dist/components/fast-mint/dropzone.cjs.map +1 -1
  31. package/dist/components/fast-mint/dropzone.d.cts +1 -6
  32. package/dist/components/fast-mint/dropzone.d.ts +1 -6
  33. package/dist/components/fast-mint/dropzone.js +7 -17
  34. package/dist/components/fast-mint/dropzone.js.map +1 -1
  35. package/dist/i18n/catalog/pt.cjs +11 -23
  36. package/dist/i18n/catalog/pt.cjs.map +1 -1
  37. package/dist/i18n/catalog/pt.js +11 -23
  38. package/dist/i18n/catalog/pt.js.map +1 -1
  39. package/dist/index.cjs +0 -3
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.cts +1 -2
  42. package/dist/index.d.ts +1 -2
  43. package/dist/index.js +0 -2
  44. package/dist/index.js.map +1 -1
  45. package/dist/utils/drop/draft.cjs.map +1 -1
  46. package/dist/utils/drop/draft.d.cts +9 -3
  47. package/dist/utils/drop/draft.d.ts +9 -3
  48. package/dist/utils/drop/draft.js.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/components/drop-item-list.cjs +0 -123
  51. package/dist/components/drop-item-list.cjs.map +0 -1
  52. package/dist/components/drop-item-list.d.cts +0 -19
  53. package/dist/components/drop-item-list.d.ts +0 -19
  54. package/dist/components/drop-item-list.js +0 -89
  55. package/dist/components/drop-item-list.js.map +0 -1
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "default" | "secondary" | "soft" | "destructive" | null | undefined;
7
+ variant?: "default" | "destructive" | "soft" | "secondary" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  }
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "default" | "secondary" | "soft" | "destructive" | null | undefined;
7
+ variant?: "default" | "destructive" | "soft" | "secondary" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  }
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "default" | "secondary" | "soft" | "link" | "destructive" | "ghost" | "tonal" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "soft" | "secondary" | "ghost" | "tonal" | null | undefined;
7
7
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "default" | "secondary" | "soft" | "link" | "destructive" | "ghost" | "tonal" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "soft" | "secondary" | "ghost" | "tonal" | null | undefined;
7
7
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -52,10 +52,10 @@ function ClaimRail({
52
52
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm text-foreground/90", children: label })
53
53
  ] }, label)) })
54
54
  ] }),
55
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "p-5 bg-muted/40 flex items-start gap-3", children: [
55
+ trust && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "p-5 bg-muted/40 flex items-start gap-3", children: [
56
56
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TrustIcon, { className: "h-5 w-5 shrink-0 mt-0.5 text-primary" }),
57
57
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-sm text-muted-foreground leading-relaxed", children: [
58
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-semibold text-foreground", children: trustLead }),
58
+ trustLead && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-semibold text-foreground", children: trustLead }),
59
59
  " ",
60
60
  trust
61
61
  ] })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/claim-rail.tsx"],"sourcesContent":["\"use client\";\n\nimport { ShieldCheck, type LucideIcon } from \"lucide-react\";\nimport { useT } from \"../i18n/provider.js\";\nimport { IconTile } from \"./icon-tile.js\";\n\nexport interface ClaimRailProps {\n\n included?: { icon: LucideIcon; title: string; desc: string }[];\n\n steps: string[];\n\n trustLead: string;\n trust: string;\n\n trustIcon?: LucideIcon;\n}\n\nexport function ClaimRail({\n included,\n steps,\n trustLead,\n trust,\n trustIcon: TrustIcon = ShieldCheck,\n}: ClaimRailProps) {\n const t = useT();\n return (\n <div className=\"rounded-2xl bg-muted/50 dark:bg-card divide-y divide-border/60 overflow-hidden\">\n {included && included.length > 0 && (\n <section className=\"p-5\">\n <p className=\"section-label\">{t(\"What's included\")}</p>\n <ul className=\"mt-4 space-y-4\">\n {included.map(({ icon: Icon, title, desc }) => (\n <li key={title} className=\"flex items-start gap-3\">\n <IconTile size=\"sm\">\n <Icon />\n </IconTile>\n <div className=\"min-w-0\">\n <p className=\"text-sm font-semibold text-foreground\">{title}</p>\n <p className=\"text-sm text-muted-foreground leading-relaxed mt-0.5\">{desc}</p>\n </div>\n </li>\n ))}\n </ul>\n </section>\n )}\n\n <section className=\"p-5\">\n <p className=\"section-label\">{t(\"How it works\")}</p>\n <ol className=\"mt-4 space-y-3\">\n {steps.map((label, i) => (\n <li key={label} className=\"flex items-center gap-3\">\n <IconTile size=\"sm\" className=\"tabular-nums\">\n {i + 1}\n </IconTile>\n <span className=\"text-sm text-foreground/90\">{label}</span>\n </li>\n ))}\n </ol>\n </section>\n\n <section className=\"p-5 bg-muted/40 flex items-start gap-3\">\n <TrustIcon className=\"h-5 w-5 shrink-0 mt-0.5 text-primary\" />\n <p className=\"text-sm text-muted-foreground leading-relaxed\">\n <span className=\"font-semibold text-foreground\">{trustLead}</span> {trust}\n </p>\n </section>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BU;AA5BV,0BAA6C;AAC7C,sBAAqB;AACrB,uBAAyB;AAclB,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW,YAAY;AACzB,GAAmB;AACjB,QAAM,QAAI,sBAAK;AACf,SACE,6CAAC,SAAI,WAAU,kFACZ;AAAA,gBAAY,SAAS,SAAS,KAC7B,6CAAC,aAAQ,WAAU,OACjB;AAAA,kDAAC,OAAE,WAAU,iBAAiB,YAAE,iBAAiB,GAAE;AAAA,MACnD,4CAAC,QAAG,WAAU,kBACX,mBAAS,IAAI,CAAC,EAAE,MAAM,MAAM,OAAO,KAAK,MACvC,6CAAC,QAAe,WAAU,0BACxB;AAAA,oDAAC,6BAAS,MAAK,MACb,sDAAC,QAAK,GACR;AAAA,QACA,6CAAC,SAAI,WAAU,WACb;AAAA,sDAAC,OAAE,WAAU,yCAAyC,iBAAM;AAAA,UAC5D,4CAAC,OAAE,WAAU,wDAAwD,gBAAK;AAAA,WAC5E;AAAA,WAPO,KAQT,CACD,GACH;AAAA,OACF;AAAA,IAGF,6CAAC,aAAQ,WAAU,OACjB;AAAA,kDAAC,OAAE,WAAU,iBAAiB,YAAE,cAAc,GAAE;AAAA,MAChD,4CAAC,QAAG,WAAU,kBACX,gBAAM,IAAI,CAAC,OAAO,MACjB,6CAAC,QAAe,WAAU,2BACxB;AAAA,oDAAC,6BAAS,MAAK,MAAK,WAAU,gBAC3B,cAAI,GACP;AAAA,QACA,4CAAC,UAAK,WAAU,8BAA8B,iBAAM;AAAA,WAJ7C,KAKT,CACD,GACH;AAAA,OACF;AAAA,IAEA,6CAAC,aAAQ,WAAU,0CACjB;AAAA,kDAAC,aAAU,WAAU,wCAAuC;AAAA,MAC5D,6CAAC,OAAE,WAAU,iDACX;AAAA,oDAAC,UAAK,WAAU,iCAAiC,qBAAU;AAAA,QAAO;AAAA,QAAE;AAAA,SACtE;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/claim-rail.tsx"],"sourcesContent":["\"use client\";\n\nimport { ShieldCheck, type LucideIcon } from \"lucide-react\";\nimport { useT } from \"../i18n/provider.js\";\nimport { IconTile } from \"./icon-tile.js\";\n\nexport interface ClaimRailProps {\n\n included?: { icon: LucideIcon; title: string; desc: string }[];\n\n steps: string[];\n\n /** Optional closing note; omitted, the rail ends with the steps. */\n trustLead?: string;\n trust?: string;\n\n trustIcon?: LucideIcon;\n}\n\nexport function ClaimRail({\n included,\n steps,\n trustLead,\n trust,\n trustIcon: TrustIcon = ShieldCheck,\n}: ClaimRailProps) {\n const t = useT();\n return (\n <div className=\"rounded-2xl bg-muted/50 dark:bg-card divide-y divide-border/60 overflow-hidden\">\n {included && included.length > 0 && (\n <section className=\"p-5\">\n <p className=\"section-label\">{t(\"What's included\")}</p>\n <ul className=\"mt-4 space-y-4\">\n {included.map(({ icon: Icon, title, desc }) => (\n <li key={title} className=\"flex items-start gap-3\">\n <IconTile size=\"sm\">\n <Icon />\n </IconTile>\n <div className=\"min-w-0\">\n <p className=\"text-sm font-semibold text-foreground\">{title}</p>\n <p className=\"text-sm text-muted-foreground leading-relaxed mt-0.5\">{desc}</p>\n </div>\n </li>\n ))}\n </ul>\n </section>\n )}\n\n <section className=\"p-5\">\n <p className=\"section-label\">{t(\"How it works\")}</p>\n <ol className=\"mt-4 space-y-3\">\n {steps.map((label, i) => (\n <li key={label} className=\"flex items-center gap-3\">\n <IconTile size=\"sm\" className=\"tabular-nums\">\n {i + 1}\n </IconTile>\n <span className=\"text-sm text-foreground/90\">{label}</span>\n </li>\n ))}\n </ol>\n </section>\n\n {trust && (\n <section className=\"p-5 bg-muted/40 flex items-start gap-3\">\n <TrustIcon className=\"h-5 w-5 shrink-0 mt-0.5 text-primary\" />\n <p className=\"text-sm text-muted-foreground leading-relaxed\">\n {trustLead && <span className=\"font-semibold text-foreground\">{trustLead}</span>} {trust}\n </p>\n </section>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BU;AA7BV,0BAA6C;AAC7C,sBAAqB;AACrB,uBAAyB;AAelB,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW,YAAY;AACzB,GAAmB;AACjB,QAAM,QAAI,sBAAK;AACf,SACE,6CAAC,SAAI,WAAU,kFACZ;AAAA,gBAAY,SAAS,SAAS,KAC7B,6CAAC,aAAQ,WAAU,OACjB;AAAA,kDAAC,OAAE,WAAU,iBAAiB,YAAE,iBAAiB,GAAE;AAAA,MACnD,4CAAC,QAAG,WAAU,kBACX,mBAAS,IAAI,CAAC,EAAE,MAAM,MAAM,OAAO,KAAK,MACvC,6CAAC,QAAe,WAAU,0BACxB;AAAA,oDAAC,6BAAS,MAAK,MACb,sDAAC,QAAK,GACR;AAAA,QACA,6CAAC,SAAI,WAAU,WACb;AAAA,sDAAC,OAAE,WAAU,yCAAyC,iBAAM;AAAA,UAC5D,4CAAC,OAAE,WAAU,wDAAwD,gBAAK;AAAA,WAC5E;AAAA,WAPO,KAQT,CACD,GACH;AAAA,OACF;AAAA,IAGF,6CAAC,aAAQ,WAAU,OACjB;AAAA,kDAAC,OAAE,WAAU,iBAAiB,YAAE,cAAc,GAAE;AAAA,MAChD,4CAAC,QAAG,WAAU,kBACX,gBAAM,IAAI,CAAC,OAAO,MACjB,6CAAC,QAAe,WAAU,2BACxB;AAAA,oDAAC,6BAAS,MAAK,MAAK,WAAU,gBAC3B,cAAI,GACP;AAAA,QACA,4CAAC,UAAK,WAAU,8BAA8B,iBAAM;AAAA,WAJ7C,KAKT,CACD,GACH;AAAA,OACF;AAAA,IAEC,SACC,6CAAC,aAAQ,WAAU,0CACjB;AAAA,kDAAC,aAAU,WAAU,wCAAuC;AAAA,MAC5D,6CAAC,OAAE,WAAU,iDACV;AAAA,qBAAa,4CAAC,UAAK,WAAU,iCAAiC,qBAAU;AAAA,QAAQ;AAAA,QAAE;AAAA,SACrF;AAAA,OACF;AAAA,KAEJ;AAEJ;","names":[]}
@@ -8,8 +8,9 @@ interface ClaimRailProps {
8
8
  desc: string;
9
9
  }[];
10
10
  steps: string[];
11
- trustLead: string;
12
- trust: string;
11
+ /** Optional closing note; omitted, the rail ends with the steps. */
12
+ trustLead?: string;
13
+ trust?: string;
13
14
  trustIcon?: LucideIcon;
14
15
  }
15
16
  declare function ClaimRail({ included, steps, trustLead, trust, trustIcon: TrustIcon, }: ClaimRailProps): react_jsx_runtime.JSX.Element;
@@ -8,8 +8,9 @@ interface ClaimRailProps {
8
8
  desc: string;
9
9
  }[];
10
10
  steps: string[];
11
- trustLead: string;
12
- trust: string;
11
+ /** Optional closing note; omitted, the rail ends with the steps. */
12
+ trustLead?: string;
13
+ trust?: string;
13
14
  trustIcon?: LucideIcon;
14
15
  }
15
16
  declare function ClaimRail({ included, steps, trustLead, trust, trustIcon: TrustIcon, }: ClaimRailProps): react_jsx_runtime.JSX.Element;
@@ -29,10 +29,10 @@ function ClaimRail({
29
29
  /* @__PURE__ */ jsx("span", { className: "text-sm text-foreground/90", children: label })
30
30
  ] }, label)) })
31
31
  ] }),
32
- /* @__PURE__ */ jsxs("section", { className: "p-5 bg-muted/40 flex items-start gap-3", children: [
32
+ trust && /* @__PURE__ */ jsxs("section", { className: "p-5 bg-muted/40 flex items-start gap-3", children: [
33
33
  /* @__PURE__ */ jsx(TrustIcon, { className: "h-5 w-5 shrink-0 mt-0.5 text-primary" }),
34
34
  /* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground leading-relaxed", children: [
35
- /* @__PURE__ */ jsx("span", { className: "font-semibold text-foreground", children: trustLead }),
35
+ trustLead && /* @__PURE__ */ jsx("span", { className: "font-semibold text-foreground", children: trustLead }),
36
36
  " ",
37
37
  trust
38
38
  ] })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/claim-rail.tsx"],"sourcesContent":["\"use client\";\n\nimport { ShieldCheck, type LucideIcon } from \"lucide-react\";\nimport { useT } from \"../i18n/provider.js\";\nimport { IconTile } from \"./icon-tile.js\";\n\nexport interface ClaimRailProps {\n\n included?: { icon: LucideIcon; title: string; desc: string }[];\n\n steps: string[];\n\n trustLead: string;\n trust: string;\n\n trustIcon?: LucideIcon;\n}\n\nexport function ClaimRail({\n included,\n steps,\n trustLead,\n trust,\n trustIcon: TrustIcon = ShieldCheck,\n}: ClaimRailProps) {\n const t = useT();\n return (\n <div className=\"rounded-2xl bg-muted/50 dark:bg-card divide-y divide-border/60 overflow-hidden\">\n {included && included.length > 0 && (\n <section className=\"p-5\">\n <p className=\"section-label\">{t(\"What's included\")}</p>\n <ul className=\"mt-4 space-y-4\">\n {included.map(({ icon: Icon, title, desc }) => (\n <li key={title} className=\"flex items-start gap-3\">\n <IconTile size=\"sm\">\n <Icon />\n </IconTile>\n <div className=\"min-w-0\">\n <p className=\"text-sm font-semibold text-foreground\">{title}</p>\n <p className=\"text-sm text-muted-foreground leading-relaxed mt-0.5\">{desc}</p>\n </div>\n </li>\n ))}\n </ul>\n </section>\n )}\n\n <section className=\"p-5\">\n <p className=\"section-label\">{t(\"How it works\")}</p>\n <ol className=\"mt-4 space-y-3\">\n {steps.map((label, i) => (\n <li key={label} className=\"flex items-center gap-3\">\n <IconTile size=\"sm\" className=\"tabular-nums\">\n {i + 1}\n </IconTile>\n <span className=\"text-sm text-foreground/90\">{label}</span>\n </li>\n ))}\n </ol>\n </section>\n\n <section className=\"p-5 bg-muted/40 flex items-start gap-3\">\n <TrustIcon className=\"h-5 w-5 shrink-0 mt-0.5 text-primary\" />\n <p className=\"text-sm text-muted-foreground leading-relaxed\">\n <span className=\"font-semibold text-foreground\">{trustLead}</span> {trust}\n </p>\n </section>\n </div>\n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AA,OACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/claim-rail.tsx"],"sourcesContent":["\"use client\";\n\nimport { ShieldCheck, type LucideIcon } from \"lucide-react\";\nimport { useT } from \"../i18n/provider.js\";\nimport { IconTile } from \"./icon-tile.js\";\n\nexport interface ClaimRailProps {\n\n included?: { icon: LucideIcon; title: string; desc: string }[];\n\n steps: string[];\n\n /** Optional closing note; omitted, the rail ends with the steps. */\n trustLead?: string;\n trust?: string;\n\n trustIcon?: LucideIcon;\n}\n\nexport function ClaimRail({\n included,\n steps,\n trustLead,\n trust,\n trustIcon: TrustIcon = ShieldCheck,\n}: ClaimRailProps) {\n const t = useT();\n return (\n <div className=\"rounded-2xl bg-muted/50 dark:bg-card divide-y divide-border/60 overflow-hidden\">\n {included && included.length > 0 && (\n <section className=\"p-5\">\n <p className=\"section-label\">{t(\"What's included\")}</p>\n <ul className=\"mt-4 space-y-4\">\n {included.map(({ icon: Icon, title, desc }) => (\n <li key={title} className=\"flex items-start gap-3\">\n <IconTile size=\"sm\">\n <Icon />\n </IconTile>\n <div className=\"min-w-0\">\n <p className=\"text-sm font-semibold text-foreground\">{title}</p>\n <p className=\"text-sm text-muted-foreground leading-relaxed mt-0.5\">{desc}</p>\n </div>\n </li>\n ))}\n </ul>\n </section>\n )}\n\n <section className=\"p-5\">\n <p className=\"section-label\">{t(\"How it works\")}</p>\n <ol className=\"mt-4 space-y-3\">\n {steps.map((label, i) => (\n <li key={label} className=\"flex items-center gap-3\">\n <IconTile size=\"sm\" className=\"tabular-nums\">\n {i + 1}\n </IconTile>\n <span className=\"text-sm text-foreground/90\">{label}</span>\n </li>\n ))}\n </ol>\n </section>\n\n {trust && (\n <section className=\"p-5 bg-muted/40 flex items-start gap-3\">\n <TrustIcon className=\"h-5 w-5 shrink-0 mt-0.5 text-primary\" />\n <p className=\"text-sm text-muted-foreground leading-relaxed\">\n {trustLead && <span className=\"font-semibold text-foreground\">{trustLead}</span>} {trust}\n </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,QAAQ;AAAA,QAAE;AAAA,SACrF;AAAA,OACF;AAAA,KAEJ;AAEJ;","names":[]}
@@ -38,7 +38,7 @@ const OPTION_LABELS = {
38
38
  Free: (0, import_translate.msg)("Free"),
39
39
  Paid: (0, import_translate.msg)("Paid"),
40
40
  Everyone: (0, import_translate.msg)("Everyone"),
41
- "A list": (0, import_translate.msg)("A list"),
41
+ "Invited wallets": (0, import_translate.msg)("Invited wallets"),
42
42
  Edition: (0, import_translate.msg)("Edition"),
43
43
  Collection: (0, import_translate.msg)("Collection")
44
44
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/create-form-primitives.tsx"],"sourcesContent":["import { cn } from \"../utils/cn.js\";\nimport { useT } from \"../i18n/provider.js\";\nimport { msg } from \"../i18n/translate.js\";\n\nconst OPTION_LABELS: Record<string, string> = {\n Allowed: msg(\"Allowed\"),\n \"Not Allowed\": msg(\"Not Allowed\"),\n \"Share-Alike\": msg(\"Share-Alike\"),\n \"Training Only\": msg(\"Training Only\"),\n Required: msg(\"Required\"),\n \"Not Required\": msg(\"Not Required\"),\n Yes: msg(\"Yes\"),\n No: msg(\"No\"),\n Free: msg(\"Free\"),\n Paid: msg(\"Paid\"),\n Everyone: msg(\"Everyone\"),\n \"A list\": msg(\"A list\"),\n Edition: msg(\"Edition\"),\n Collection: msg(\"Collection\"),\n};\n\nexport function ToggleGroup({\n value, options, onChange,\n}: { value: string; options: readonly string[]; onChange: (v: string) => void }) {\n const t = useT();\n return (\n <div className=\"flex rounded-2xl overflow-hidden w-full bg-muted/40\">\n {options.map((opt, i) => (\n <button\n key={opt}\n type=\"button\"\n onClick={() => onChange(opt)}\n className={cn(\n \"flex-1 px-3 py-2 text-sm transition-colors\",\n i > 0 && \"border-l border-border\",\n value === opt\n ? \"bg-primary text-primary-foreground font-medium\"\n : \"bg-background hover:bg-muted text-muted-foreground\",\n )}\n >\n {t(OPTION_LABELS[opt] ?? opt)}\n </button>\n ))}\n </div>\n );\n}\n\nexport function Section({ title, icon, children }: {\n title: string; icon: React.ReactNode; children: React.ReactNode;\n}) {\n return (\n <div className=\"panel p-5 space-y-4\">\n <div className=\"flex items-center gap-2 text-sm font-semibold\">\n <span className=\"text-primary\">{icon}</span>\n {title}\n </div>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4BQ;AA5BR,gBAAmB;AACnB,sBAAqB;AACrB,uBAAoB;AAEpB,MAAM,gBAAwC;AAAA,EAC5C,aAAS,sBAAI,SAAS;AAAA,EACtB,mBAAe,sBAAI,aAAa;AAAA,EAChC,mBAAe,sBAAI,aAAa;AAAA,EAChC,qBAAiB,sBAAI,eAAe;AAAA,EACpC,cAAU,sBAAI,UAAU;AAAA,EACxB,oBAAgB,sBAAI,cAAc;AAAA,EAClC,SAAK,sBAAI,KAAK;AAAA,EACd,QAAI,sBAAI,IAAI;AAAA,EACZ,UAAM,sBAAI,MAAM;AAAA,EAChB,UAAM,sBAAI,MAAM;AAAA,EAChB,cAAU,sBAAI,UAAU;AAAA,EACxB,cAAU,sBAAI,QAAQ;AAAA,EACtB,aAAS,sBAAI,SAAS;AAAA,EACtB,gBAAY,sBAAI,YAAY;AAC9B;AAEO,SAAS,YAAY;AAAA,EAC1B;AAAA,EAAO;AAAA,EAAS;AAClB,GAAiF;AAC/E,QAAM,QAAI,sBAAK;AACf,SACE,4CAAC,SAAI,WAAU,uDACZ,kBAAQ,IAAI,CAAC,KAAK,MACjB;AAAA,IAAC;AAAA;AAAA,MAEC,MAAK;AAAA,MACL,SAAS,MAAM,SAAS,GAAG;AAAA,MAC3B,eAAW;AAAA,QACT;AAAA,QACA,IAAI,KAAK;AAAA,QACT,UAAU,MACN,mDACA;AAAA,MACN;AAAA,MAEC,YAAE,cAAc,GAAG,KAAK,GAAG;AAAA;AAAA,IAXvB;AAAA,EAYP,CACD,GACH;AAEJ;AAEO,SAAS,QAAQ,EAAE,OAAO,MAAM,SAAS,GAE7C;AACD,SACE,6CAAC,SAAI,WAAU,uBACb;AAAA,iDAAC,SAAI,WAAU,iDACb;AAAA,kDAAC,UAAK,WAAU,gBAAgB,gBAAK;AAAA,MACpC;AAAA,OACH;AAAA,IACC;AAAA,KACH;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/create-form-primitives.tsx"],"sourcesContent":["import { cn } from \"../utils/cn.js\";\nimport { useT } from \"../i18n/provider.js\";\nimport { msg } from \"../i18n/translate.js\";\n\nconst OPTION_LABELS: Record<string, string> = {\n Allowed: msg(\"Allowed\"),\n \"Not Allowed\": msg(\"Not Allowed\"),\n \"Share-Alike\": msg(\"Share-Alike\"),\n \"Training Only\": msg(\"Training Only\"),\n Required: msg(\"Required\"),\n \"Not Required\": msg(\"Not Required\"),\n Yes: msg(\"Yes\"),\n No: msg(\"No\"),\n Free: msg(\"Free\"),\n Paid: msg(\"Paid\"),\n Everyone: msg(\"Everyone\"),\n \"Invited wallets\": msg(\"Invited wallets\"),\n Edition: msg(\"Edition\"),\n Collection: msg(\"Collection\"),\n};\n\nexport function ToggleGroup({\n value, options, onChange,\n}: { value: string; options: readonly string[]; onChange: (v: string) => void }) {\n const t = useT();\n return (\n <div className=\"flex rounded-2xl overflow-hidden w-full bg-muted/40\">\n {options.map((opt, i) => (\n <button\n key={opt}\n type=\"button\"\n onClick={() => onChange(opt)}\n className={cn(\n \"flex-1 px-3 py-2 text-sm transition-colors\",\n i > 0 && \"border-l border-border\",\n value === opt\n ? \"bg-primary text-primary-foreground font-medium\"\n : \"bg-background hover:bg-muted text-muted-foreground\",\n )}\n >\n {t(OPTION_LABELS[opt] ?? opt)}\n </button>\n ))}\n </div>\n );\n}\n\nexport function Section({ title, icon, children }: {\n title: string; icon: React.ReactNode; children: React.ReactNode;\n}) {\n return (\n <div className=\"panel p-5 space-y-4\">\n <div className=\"flex items-center gap-2 text-sm font-semibold\">\n <span className=\"text-primary\">{icon}</span>\n {title}\n </div>\n {children}\n </div>\n );\n}\n"],"m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-14,7 +14,7 @@ const OPTION_LABELS = {
14
14
  Free: msg("Free"),
15
15
  Paid: msg("Paid"),
16
16
  Everyone: msg("Everyone"),
17
- "A list": msg("A list"),
17
+ "Invited wallets": msg("Invited wallets"),
18
18
  Edition: msg("Edition"),
19
19
  Collection: msg("Collection")
20
20
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/create-form-primitives.tsx"],"sourcesContent":["import { cn } from \"../utils/cn.js\";\nimport { useT } from \"../i18n/provider.js\";\nimport { msg } from \"../i18n/translate.js\";\n\nconst OPTION_LABELS: Record<string, string> = {\n Allowed: msg(\"Allowed\"),\n \"Not Allowed\": msg(\"Not Allowed\"),\n \"Share-Alike\": msg(\"Share-Alike\"),\n \"Training Only\": msg(\"Training Only\"),\n Required: msg(\"Required\"),\n \"Not Required\": msg(\"Not Required\"),\n Yes: msg(\"Yes\"),\n No: msg(\"No\"),\n Free: msg(\"Free\"),\n Paid: msg(\"Paid\"),\n Everyone: msg(\"Everyone\"),\n \"A list\": msg(\"A list\"),\n Edition: msg(\"Edition\"),\n Collection: msg(\"Collection\"),\n};\n\nexport function ToggleGroup({\n value, options, onChange,\n}: { value: string; options: readonly string[]; onChange: (v: string) => void }) {\n const t = useT();\n return (\n <div className=\"flex rounded-2xl overflow-hidden w-full bg-muted/40\">\n {options.map((opt, i) => (\n <button\n key={opt}\n type=\"button\"\n onClick={() => onChange(opt)}\n className={cn(\n \"flex-1 px-3 py-2 text-sm transition-colors\",\n i > 0 && \"border-l border-border\",\n value === opt\n ? \"bg-primary text-primary-foreground font-medium\"\n : \"bg-background hover:bg-muted text-muted-foreground\",\n )}\n >\n {t(OPTION_LABELS[opt] ?? opt)}\n </button>\n ))}\n </div>\n );\n}\n\nexport function Section({ title, icon, children }: {\n title: string; icon: React.ReactNode; children: React.ReactNode;\n}) {\n return (\n <div className=\"panel p-5 space-y-4\">\n <div className=\"flex items-center gap-2 text-sm font-semibold\">\n <span className=\"text-primary\">{icon}</span>\n {title}\n </div>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.tsx"],"sourcesContent":["import { cn } from \"../utils/cn.js\";\nimport { useT } from \"../i18n/provider.js\";\nimport { msg } from \"../i18n/translate.js\";\n\nconst OPTION_LABELS: Record<string, string> = {\n Allowed: msg(\"Allowed\"),\n \"Not Allowed\": msg(\"Not Allowed\"),\n \"Share-Alike\": msg(\"Share-Alike\"),\n \"Training Only\": msg(\"Training Only\"),\n Required: msg(\"Required\"),\n \"Not Required\": msg(\"Not Required\"),\n Yes: msg(\"Yes\"),\n No: msg(\"No\"),\n Free: msg(\"Free\"),\n Paid: msg(\"Paid\"),\n Everyone: msg(\"Everyone\"),\n \"Invited wallets\": msg(\"Invited wallets\"),\n Edition: msg(\"Edition\"),\n Collection: msg(\"Collection\"),\n};\n\nexport function ToggleGroup({\n value, options, onChange,\n}: { value: string; options: readonly string[]; onChange: (v: string) => void }) {\n const t = useT();\n return (\n <div className=\"flex rounded-2xl overflow-hidden w-full bg-muted/40\">\n {options.map((opt, i) => (\n <button\n key={opt}\n type=\"button\"\n onClick={() => onChange(opt)}\n className={cn(\n \"flex-1 px-3 py-2 text-sm transition-colors\",\n i > 0 && \"border-l border-border\",\n value === opt\n ? \"bg-primary text-primary-foreground font-medium\"\n : \"bg-background hover:bg-muted text-muted-foreground\",\n )}\n >\n {t(OPTION_LABELS[opt] ?? opt)}\n </button>\n ))}\n </div>\n );\n}\n\nexport function Section({ title, icon, children }: {\n title: string; icon: React.ReactNode; children: React.ReactNode;\n}) {\n return (\n <div className=\"panel p-5 space-y-4\">\n <div className=\"flex items-center gap-2 text-sm font-semibold\">\n <span className=\"text-primary\">{icon}</span>\n {title}\n </div>\n {children}\n </div>\n );\n}\n"],"mappings":"AA4BQ,cAwBF,YAxBE;AA5BR,SAAS,UAAU;AACnB,SAAS,YAAY;AACrB,SAAS,WAAW;AAEpB,MAAM,gBAAwC;AAAA,EAC5C,SAAS,IAAI,SAAS;AAAA,EACtB,eAAe,IAAI,aAAa;AAAA,EAChC,eAAe,IAAI,aAAa;AAAA,EAChC,iBAAiB,IAAI,eAAe;AAAA,EACpC,UAAU,IAAI,UAAU;AAAA,EACxB,gBAAgB,IAAI,cAAc;AAAA,EAClC,KAAK,IAAI,KAAK;AAAA,EACd,IAAI,IAAI,IAAI;AAAA,EACZ,MAAM,IAAI,MAAM;AAAA,EAChB,MAAM,IAAI,MAAM;AAAA,EAChB,UAAU,IAAI,UAAU;AAAA,EACxB,mBAAmB,IAAI,iBAAiB;AAAA,EACxC,SAAS,IAAI,SAAS;AAAA,EACtB,YAAY,IAAI,YAAY;AAC9B;AAEO,SAAS,YAAY;AAAA,EAC1B;AAAA,EAAO;AAAA,EAAS;AAClB,GAAiF;AAC/E,QAAM,IAAI,KAAK;AACf,SACE,oBAAC,SAAI,WAAU,uDACZ,kBAAQ,IAAI,CAAC,KAAK,MACjB;AAAA,IAAC;AAAA;AAAA,MAEC,MAAK;AAAA,MACL,SAAS,MAAM,SAAS,GAAG;AAAA,MAC3B,WAAW;AAAA,QACT;AAAA,QACA,IAAI,KAAK;AAAA,QACT,UAAU,MACN,mDACA;AAAA,MACN;AAAA,MAEC,YAAE,cAAc,GAAG,KAAK,GAAG;AAAA;AAAA,IAXvB;AAAA,EAYP,CACD,GACH;AAEJ;AAEO,SAAS,QAAQ,EAAE,OAAO,MAAM,SAAS,GAE7C;AACD,SACE,qBAAC,SAAI,WAAU,uBACb;AAAA,yBAAC,SAAI,WAAU,iDACb;AAAA,0BAAC,UAAK,WAAU,gBAAgB,gBAAK;AAAA,MACpC;AAAA,OACH;AAAA,IACC;AAAA,KACH;AAEJ;","names":[]}
@@ -20,17 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var drop_create_exports = {};
21
21
  __export(drop_create_exports, {
22
22
  DropCreate: () => DropCreate,
23
+ draftFiles: () => draftFiles,
23
24
  dropSymbol: () => dropSymbol,
24
- withArtwork: () => withArtwork
25
+ withArtwork: () => withArtwork,
26
+ withoutArtwork: () => withoutArtwork
25
27
  });
26
28
  module.exports = __toCommonJS(drop_create_exports);
27
29
  var import_jsx_runtime = require("react/jsx-runtime");
28
30
  var import_react = require("react");
29
31
  var import_lucide_react = require("lucide-react");
32
+ var import_sdk = require("@medialane/sdk");
30
33
  var import_action_button = require("../../action-button.js");
31
34
  var import_collapsible_section = require("../../collapsible-section.js");
32
35
  var import_claim_route_shell = require("../../claim-route-shell.js");
33
- var import_dropzone = require("../../fast-mint/dropzone.js");
34
36
  var import_medialane_collection_card = require("../../medialane-collection-card.js");
35
37
  var import_drop_fields = require("./drop-fields.js");
36
38
  var import_exclusive_fields = require("./exclusive-fields.js");
@@ -38,24 +40,31 @@ var import_launch_dialog = require("./launch-dialog.js");
38
40
  var import_draft = require("../../../utils/drop/draft.js");
39
41
  var import_preview = require("../../../utils/drop/preview.js");
40
42
  var import_launchpad_defaults = require("../../../utils/launchpad-defaults.js");
41
- var import_upload_limits = require("../../../utils/upload-limits.js");
42
- var import_ip = require("../../../data/ip.js");
43
43
  var import_medialane_app = require("../../medialane-app.js");
44
44
  var import_use_drops = require("../../../utils/use-drops.js");
45
+ var import_translate = require("../../../i18n/translate.js");
45
46
  var import_provider = require("../../../i18n/provider.js");
46
- var import_i18n = require("../../../i18n/index.js");
47
47
  var import_use_format = require("../../../i18n/use-format.js");
48
48
  const toItem = (file) => ({ id: crypto.randomUUID(), file, previewUrl: URL.createObjectURL(file), name: "", description: "" });
49
+ function draftFiles(draft) {
50
+ return draft.kind === "edition" ? draft.edition ? [draft.edition] : [] : draft.items.map((it) => it.file);
51
+ }
49
52
  function withArtwork(draft, files) {
50
53
  const current = draft.kind === "edition" ? draft.edition ? [toItem(draft.edition)] : [] : draft.items;
51
54
  const items = [...current, ...files.map(toItem)];
52
55
  if (items.length === 1) return { kind: "edition", edition: items[0].file, items: [] };
53
56
  return { kind: "collection", edition: null, items };
54
57
  }
58
+ function withoutArtwork(draft, file) {
59
+ if (draft.kind === "edition") return { edition: null };
60
+ const items = draft.items.filter((it) => it.file !== file);
61
+ if (items.length === 1) return { kind: "edition", edition: items[0].file, items: [] };
62
+ return { items };
63
+ }
55
64
  function dropSymbol(name) {
56
65
  return (0, import_launchpad_defaults.suggestLaunchpadSymbol)(name) || "DROP";
57
66
  }
58
- function DropCreate() {
67
+ function DropCreate({ aside }) {
59
68
  const t = (0, import_provider.useT)();
60
69
  const intl = (0, import_use_format.useFormat)();
61
70
  const app = (0, import_medialane_app.useMedialaneApp)();
@@ -63,81 +72,45 @@ function DropCreate() {
63
72
  const [draft, setDraftState] = (0, import_react.useState)(import_draft.EMPTY_DRAFT);
64
73
  const [tried, setTried] = (0, import_react.useState)(false);
65
74
  const [launching, setLaunching] = (0, import_react.useState)(false);
66
- const [timingOpen, setTimingOpen] = (0, import_react.useState)(false);
67
75
  const [licenseOpen, setLicenseOpen] = (0, import_react.useState)(false);
68
- const coverRef = (0, import_react.useRef)(null);
69
76
  const setDraft = (patch) => setDraftState((d) => ({ ...d, ...patch }));
70
77
  const errors = tried ? (0, import_draft.validateDropDraft)(draft, Math.floor(Date.now() / 1e3)) : {};
71
- const hasArt = draft.kind === "edition" ? !!draft.edition : draft.items.length > 0;
72
- const addFiles = (files) => setDraftState((d) => ({ ...d, ...withArtwork(d, files) }));
78
+ const files = draftFiles(draft);
79
+ const supply = (0, import_draft.draftSupply)(draft);
80
+ const wallet = app.walletAddress;
73
81
  const launch = () => {
74
- if (!app.walletAddress) return app.onRequireWallet();
82
+ if (!wallet) return app.onRequireWallet();
75
83
  setTried(true);
76
- const invalid = (0, import_draft.validateDropDraft)(draft, Math.floor(Date.now() / 1e3));
77
- if (invalid.start || invalid.end || invalid.perWallet) setTimingOpen(true);
78
- if (Object.keys(invalid).length === 0) setLaunching(true);
84
+ if (Object.keys((0, import_draft.validateDropDraft)(draft, Math.floor(Date.now() / 1e3))).length === 0) setLaunching(true);
79
85
  };
80
- const art = draft.cover ?? (draft.kind === "edition" ? draft.edition : draft.items[0]?.file ?? null);
81
- const supply = (0, import_draft.draftSupply)(draft);
82
- const wallet = app.walletAddress;
83
- const preview = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mx-auto w-full max-w-[260px] space-y-2 lg:max-w-none", children: [
84
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
- import_medialane_collection_card.MedialaneCollectionCard,
86
- {
87
- image: art ? (0, import_preview.previewUrl)(art) : null,
88
- name: draft.name,
89
- collection: Number.isFinite(supply) && supply > 0 ? (0, import_draft.supplyLabel)(t, draft.kind, supply, intl.number(supply)) : void 0,
90
- creator: wallet ? `${wallet.slice(0, 6)}\u2026${wallet.slice(-4)}` : void 0
91
- }
92
- ),
93
- hasArt && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "text-center", children: [
94
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", onClick: () => coverRef.current?.click(), className: "text-xs font-semibold text-primary", children: t("Change cover") }),
95
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
96
- "input",
97
- {
98
- ref: coverRef,
99
- type: "file",
100
- accept: (0, import_upload_limits.acceptFor)("image"),
101
- className: "hidden",
102
- onChange: (e) => {
103
- const f = e.target.files?.[0];
104
- if (f) setDraft({ cover: f });
105
- e.target.value = "";
106
- }
107
- }
108
- )
109
- ] })
110
- ] });
111
86
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
112
87
  import_claim_route_shell.ClaimRouteShell,
113
88
  {
114
89
  icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Package, { className: "h-4 w-4 text-white" }),
115
- title: (0, import_i18n.msg)("Create a drop"),
116
- subtitle: (0, import_i18n.msg)("One artwork as copies, or a set of unique pieces."),
117
- aside: preview,
118
- children: [
119
- !hasArt ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
120
- import_dropzone.Dropzone,
90
+ title: (0, import_translate.msg)("Collection drop"),
91
+ subtitle: (0, import_translate.msg)("Release your work to collectors at a price and time you choose. Collectors mint straight from your drop page."),
92
+ aside: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
93
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
94
+ import_medialane_collection_card.MedialaneCollectionCard,
121
95
  {
122
- mediaKindLock: "image",
123
- multiple: true,
124
- title: t("Drop or upload your artwork"),
125
- subtitle: t("One image becomes copies of one artwork. Several images become a set of unique pieces."),
126
- hasWallet: !!wallet,
127
- onRequireWallet: app.onRequireWallet,
128
- connectLabel: app.connectLabel,
129
- onFileSelected: (file) => addFiles([file]),
130
- onFilesSelected: addFiles
96
+ image: files[0] ? (0, import_preview.previewUrl)(files[0]) : null,
97
+ name: draft.name,
98
+ collection: files.length > 0 && Number.isFinite(supply) && supply > 0 ? (0, import_draft.supplyLabel)(t, draft.kind, supply, intl.number(supply)) : void 0,
99
+ creator: wallet ? `${wallet.slice(0, 6)}\u2026${wallet.slice(-4)}` : void 0,
100
+ creatorHref: wallet ? (0, import_sdk.profileHref)({ address: wallet }) : void 0
131
101
  }
132
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-6", children: [
102
+ ),
103
+ aside
104
+ ] }),
105
+ children: [
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-6", children: [
133
107
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
134
- import_drop_fields.ArtworkFields,
108
+ import_drop_fields.ArtworkUpload,
135
109
  {
136
- draft,
137
- setDraft,
138
- errors,
139
- onAddFiles: addFiles,
140
- onRemoveEdition: () => setDraft({ edition: null, cover: null })
110
+ files,
111
+ error: errors.artwork,
112
+ onAdd: (picked) => setDraftState((d) => ({ ...d, ...withArtwork(d, picked) })),
113
+ onRemove: (file) => setDraftState((d) => ({ ...d, ...withoutArtwork(d, file) }))
141
114
  }
142
115
  ),
143
116
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -150,47 +123,37 @@ function DropCreate() {
150
123
  }
151
124
  ),
152
125
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.PriceFields, { draft, setDraft, errors, feeBps }),
126
+ draft.kind === "edition" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.CopiesField, { draft, setDraft, errors }),
153
127
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.AccessFields, { draft, setDraft, errors }),
154
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3", children: [
155
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
156
- import_collapsible_section.CollapsibleSection,
157
- {
158
- open: timingOpen,
159
- onOpenChange: setTimingOpen,
160
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CalendarClock, { className: "h-4 w-4 text-primary" }),
161
- label: t("Timing and limits"),
162
- hint: (0, import_drop_fields.timingSummary)(draft.sale, t),
163
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.TimingFields, { draft, setDraft, errors })
164
- }
165
- ),
166
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
167
- import_collapsible_section.CollapsibleSection,
168
- {
169
- open: licenseOpen,
170
- onOpenChange: setLicenseOpen,
171
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ShieldCheck, { className: "h-4 w-4 text-primary" }),
172
- label: t("License terms"),
173
- hint: t(import_ip.LICENSE_TYPES.find((l) => l.value === draft.license.licenseType)?.label ?? draft.license.licenseType),
174
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.LicenseFields, { draft, setDraft })
175
- }
176
- ),
177
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
178
- import_collapsible_section.CollapsibleSection,
179
- {
180
- open: draft.gated.enabled,
181
- onOpenChange: (enabled) => setDraft({ gated: { ...draft.gated, enabled } }),
182
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Lock, { className: "h-4 w-4 text-primary" }),
183
- label: t("Exclusive content"),
184
- hint: t("Optional \xB7 a private link only holders can open"),
185
- children: [
186
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_exclusive_fields.ExclusiveFields, { value: draft.gated, onChange: (v) => setDraft({ gated: { ...draft.gated, ...v } }) }),
187
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.FieldError, { message: errors.gated })
188
- ]
189
- }
190
- )
191
- ] }),
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.TimingFields, { draft, setDraft, errors }),
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
130
+ import_collapsible_section.CollapsibleSection,
131
+ {
132
+ open: licenseOpen,
133
+ onOpenChange: setLicenseOpen,
134
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ShieldCheck, { className: "h-4 w-4 text-primary" }),
135
+ label: t("License terms"),
136
+ hint: t("Optional \xB7 Berne Convention"),
137
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.LicenseFields, { draft, setDraft })
138
+ }
139
+ ),
140
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
141
+ import_collapsible_section.CollapsibleSection,
142
+ {
143
+ open: draft.gated.enabled,
144
+ onOpenChange: (enabled) => setDraft({ gated: { ...draft.gated, enabled } }),
145
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Lock, { className: "h-4 w-4 text-primary" }),
146
+ label: t("Exclusive content"),
147
+ hint: t("Optional \xB7 a private link only holders can open"),
148
+ children: [
149
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_exclusive_fields.ExclusiveFields, { value: draft.gated, onChange: (v) => setDraft({ gated: { ...draft.gated, ...v } }) }),
150
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.FieldError, { message: errors.gated })
151
+ ]
152
+ }
153
+ ),
192
154
  tried && Object.keys(errors).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm font-medium text-destructive", children: t("Check the highlighted fields.") }),
193
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_action_button.ActionButton, { solid: true, big: true, onClick: launch, className: "w-full", children: wallet ? t("Launch drop") : app.connectLabel ?? t("Sign in to launch") })
155
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_action_button.ActionButton, { solid: true, big: true, onClick: launch, className: "w-full", children: wallet ? t("Launch drop") : app.connectLabel ?? t("Sign in to launch") }),
156
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-center text-xs text-muted-foreground", children: t("Artwork, price and copies can't change after launch.") })
194
157
  ] }),
195
158
  launching && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_launch_dialog.LaunchDialog, { open: true, onClose: () => setLaunching(false), draft })
196
159
  ]
@@ -200,7 +163,9 @@ function DropCreate() {
200
163
  // Annotate the CommonJS export names for ESM import in node:
201
164
  0 && (module.exports = {
202
165
  DropCreate,
166
+ draftFiles,
203
167
  dropSymbol,
204
- withArtwork
168
+ withArtwork,
169
+ withoutArtwork
205
170
  });
206
171
  //# sourceMappingURL=drop-create.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/drop/create/drop-create.tsx"],"sourcesContent":["\"use client\";\n\nimport { useRef, useState } from \"react\";\nimport { CalendarClock, Lock, Package, ShieldCheck } from \"lucide-react\";\nimport { ActionButton } from \"../../action-button.js\";\nimport { CollapsibleSection } from \"../../collapsible-section.js\";\nimport { ClaimRouteShell } from \"../../claim-route-shell.js\";\nimport { Dropzone } from \"../../fast-mint/dropzone.js\";\nimport { MedialaneCollectionCard } from \"../../medialane-collection-card.js\";\nimport type { DraftItem } from \"../../drop-item-list.js\";\nimport { AccessFields, ArtworkFields, FieldError, LicenseFields, NameFields, PriceFields, TimingFields, timingSummary } from \"./drop-fields.js\";\nimport { ExclusiveFields } from \"./exclusive-fields.js\";\nimport { LaunchDialog } from \"./launch-dialog.js\";\nimport { EMPTY_DRAFT, draftSupply, validateDropDraft, type DropDraft, supplyLabel } from \"../../../utils/drop/draft.js\";\nimport { previewUrl } from \"../../../utils/drop/preview.js\";\nimport { suggestLaunchpadSymbol } from \"../../../utils/launchpad-defaults.js\";\nimport { acceptFor } from \"../../../utils/upload-limits.js\";\nimport { LICENSE_TYPES } from \"../../../data/ip.js\";\nimport { useMedialaneApp } from \"../../medialane-app.js\";\nimport { useDropFee } from \"../../../utils/use-drops.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport { msg } from \"../../../i18n/index.js\";\nimport { useFormat } from \"../../../i18n/use-format.js\";\n\nconst toItem = (file: File): DraftItem => ({ id: crypto.randomUUID(), file, previewUrl: URL.createObjectURL(file), name: \"\", description: \"\" });\n\n/** The draft with these images: one image is an edition, several are a collection. */\nexport function withArtwork(draft: DropDraft, files: File[]): Partial<DropDraft> {\n const current: DraftItem[] = draft.kind === \"edition\" ? (draft.edition ? [toItem(draft.edition)] : []) : draft.items;\n const items = [...current, ...files.map(toItem)];\n if (items.length === 1) return { kind: \"edition\", edition: items[0]!.file, items: [] };\n return { kind: \"collection\", edition: null, items };\n}\n\n/** The collection's symbol, made from the drop's name. */\nexport function dropSymbol(name: string): string {\n return suggestLaunchpadSymbol(name) || \"DROP\";\n}\n\n/**\n * Create a drop on one screen: the artwork first, then the name, price and who can mint, with\n * timing, license and exclusive content in panels that stay closed until needed.\n */\nexport function DropCreate() {\n const t = useT();\n const intl = useFormat();\n const app = useMedialaneApp();\n const feeBps = useDropFee();\n const [draft, setDraftState] = useState<DropDraft>(EMPTY_DRAFT);\n const [tried, setTried] = useState(false);\n const [launching, setLaunching] = useState(false);\n const [timingOpen, setTimingOpen] = useState(false);\n const [licenseOpen, setLicenseOpen] = useState(false);\n const coverRef = useRef<HTMLInputElement | null>(null);\n const setDraft = (patch: Partial<DropDraft>) => setDraftState((d) => ({ ...d, ...patch }));\n const errors = tried ? validateDropDraft(draft, Math.floor(Date.now() / 1000)) : {};\n const hasArt = draft.kind === \"edition\" ? !!draft.edition : draft.items.length > 0;\n\n const addFiles = (files: File[]) => setDraftState((d) => ({ ...d, ...withArtwork(d, files) }));\n\n const launch = () => {\n if (!app.walletAddress) return app.onRequireWallet();\n setTried(true);\n const invalid = validateDropDraft(draft, Math.floor(Date.now() / 1000));\n if (invalid.start || invalid.end || invalid.perWallet) setTimingOpen(true);\n if (Object.keys(invalid).length === 0) setLaunching(true);\n };\n\n const art = draft.cover ?? (draft.kind === \"edition\" ? draft.edition : draft.items[0]?.file ?? null);\n const supply = draftSupply(draft);\n const wallet = app.walletAddress;\n\n const preview = (\n <div className=\"mx-auto w-full max-w-[260px] space-y-2 lg:max-w-none\">\n <MedialaneCollectionCard\n image={art ? previewUrl(art) : null}\n name={draft.name}\n collection={Number.isFinite(supply) && supply > 0 ? supplyLabel(t, draft.kind, supply, intl.number(supply)) : undefined}\n creator={wallet ? `${wallet.slice(0, 6)}…${wallet.slice(-4)}` : undefined}\n />\n {hasArt && (\n <div className=\"text-center\">\n <button type=\"button\" onClick={() => coverRef.current?.click()} className=\"text-xs font-semibold text-primary\">\n {t(\"Change cover\")}\n </button>\n <input ref={coverRef} type=\"file\" accept={acceptFor(\"image\")} className=\"hidden\"\n onChange={(e) => { const f = e.target.files?.[0]; if (f) setDraft({ cover: f }); e.target.value = \"\"; }} />\n </div>\n )}\n </div>\n );\n\n return (\n <ClaimRouteShell\n icon={<Package className=\"h-4 w-4 text-white\" />}\n title={msg(\"Create a drop\")}\n subtitle={msg(\"One artwork as copies, or a set of unique pieces.\")}\n aside={preview}\n >\n {!hasArt ? (\n <Dropzone\n mediaKindLock=\"image\"\n multiple\n title={t(\"Drop or upload your artwork\")}\n subtitle={t(\"One image becomes copies of one artwork. Several images become a set of unique pieces.\")}\n hasWallet={!!wallet}\n onRequireWallet={app.onRequireWallet}\n connectLabel={app.connectLabel}\n onFileSelected={(file) => addFiles([file])}\n onFilesSelected={addFiles}\n />\n ) : (\n <div className=\"space-y-6\">\n <ArtworkFields draft={draft} setDraft={setDraft} errors={errors} onAddFiles={addFiles}\n onRemoveEdition={() => setDraft({ edition: null, cover: null })} />\n <NameFields draft={draft} setDraft={setDraft} errors={errors}\n onNameChange={(name) => setDraft({ name, symbol: dropSymbol(name) })} />\n <PriceFields draft={draft} setDraft={setDraft} errors={errors} feeBps={feeBps} />\n <AccessFields draft={draft} setDraft={setDraft} errors={errors} />\n\n <div className=\"space-y-3\">\n <CollapsibleSection open={timingOpen} onOpenChange={setTimingOpen}\n icon={<CalendarClock className=\"h-4 w-4 text-primary\" />}\n label={t(\"Timing and limits\")} hint={timingSummary(draft.sale, t)}>\n <TimingFields draft={draft} setDraft={setDraft} errors={errors} />\n </CollapsibleSection>\n <CollapsibleSection open={licenseOpen} onOpenChange={setLicenseOpen}\n icon={<ShieldCheck className=\"h-4 w-4 text-primary\" />}\n label={t(\"License terms\")} hint={t(LICENSE_TYPES.find((l) => l.value === draft.license.licenseType)?.label ?? draft.license.licenseType)}>\n <LicenseFields draft={draft} setDraft={setDraft} />\n </CollapsibleSection>\n <CollapsibleSection open={draft.gated.enabled}\n onOpenChange={(enabled) => setDraft({ gated: { ...draft.gated, enabled } })}\n icon={<Lock className=\"h-4 w-4 text-primary\" />}\n label={t(\"Exclusive content\")} hint={t(\"Optional · a private link only holders can open\")}>\n <ExclusiveFields value={draft.gated} onChange={(v) => setDraft({ gated: { ...draft.gated, ...v } })} />\n <FieldError message={errors.gated} />\n </CollapsibleSection>\n </div>\n\n {tried && Object.keys(errors).length > 0 && <p className=\"text-sm font-medium text-destructive\">{t(\"Check the highlighted fields.\")}</p>}\n <ActionButton solid big onClick={launch} className=\"w-full\">\n {wallet ? t(\"Launch drop\") : app.connectLabel ?? t(\"Sign in to launch\")}\n </ActionButton>\n </div>\n )}\n {launching && <LaunchDialog open onClose={() => setLaunching(false)} draft={draft} />}\n </ClaimRouteShell>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AO;AAAA;AAAA;AAAA,YACrC;AAAA,aACF;AAAA,UAEC,SAAS,OAAO,KAAK,MAAM,EAAE,SAAS,KAAK,4CAAC,OAAE,WAAU,wCAAwC,YAAE,+BAA+B,GAAE;AAAA,UACpI,4CAAC,qCAAa,OAAK,MAAC,KAAG,MAAC,SAAS,QAAQ,WAAU,UAChD,mBAAS,EAAE,aAAa,IAAI,IAAI,gBAAgB,EAAE,mBAAmB,GACxE;AAAA,WACF;AAAA,QAED,aAAa,4CAAC,qCAAa,MAAI,MAAC,SAAS,MAAM,aAAa,KAAK,GAAG,OAAc;AAAA;AAAA;AAAA,EACrF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/drop/create/drop-create.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, type ReactNode } from \"react\";\nimport { Lock, Package, ShieldCheck } from \"lucide-react\";\nimport { profileHref } from \"@medialane/sdk\";\nimport { ActionButton } from \"../../action-button.js\";\nimport { CollapsibleSection } from \"../../collapsible-section.js\";\nimport { ClaimRouteShell } from \"../../claim-route-shell.js\";\nimport { MedialaneCollectionCard } from \"../../medialane-collection-card.js\";\nimport { AccessFields, ArtworkUpload, CopiesField, FieldError, LicenseFields, NameFields, PriceFields, TimingFields } from \"./drop-fields.js\";\nimport { ExclusiveFields } from \"./exclusive-fields.js\";\nimport { LaunchDialog } from \"./launch-dialog.js\";\nimport { EMPTY_DRAFT, draftSupply, validateDropDraft, type DraftItem, type DropDraft, supplyLabel } from \"../../../utils/drop/draft.js\";\nimport { previewUrl } from \"../../../utils/drop/preview.js\";\nimport { suggestLaunchpadSymbol } from \"../../../utils/launchpad-defaults.js\";\nimport { useMedialaneApp } from \"../../medialane-app.js\";\nimport { useDropFee } from \"../../../utils/use-drops.js\";\nimport { msg } from \"../../../i18n/translate.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport { useFormat } from \"../../../i18n/use-format.js\";\n\nconst toItem = (file: File): DraftItem => ({ id: crypto.randomUUID(), file, previewUrl: URL.createObjectURL(file), name: \"\", description: \"\" });\n\n/** The images of a draft, in order. */\nexport function draftFiles(draft: DropDraft): File[] {\n return draft.kind === \"edition\" ? (draft.edition ? [draft.edition] : []) : draft.items.map((it) => it.file);\n}\n\n/** The draft with these images added: one image is an edition, several are a collection. */\nexport function withArtwork(draft: DropDraft, files: File[]): Partial<DropDraft> {\n const current: DraftItem[] = draft.kind === \"edition\" ? (draft.edition ? [toItem(draft.edition)] : []) : draft.items;\n const items = [...current, ...files.map(toItem)];\n if (items.length === 1) return { kind: \"edition\", edition: items[0]!.file, items: [] };\n return { kind: \"collection\", edition: null, items };\n}\n\n/** The draft without this image; a single image left makes it an edition again. */\nexport function withoutArtwork(draft: DropDraft, file: File): Partial<DropDraft> {\n if (draft.kind === \"edition\") return { edition: null };\n const items = draft.items.filter((it) => it.file !== file);\n if (items.length === 1) return { kind: \"edition\", edition: items[0]!.file, items: [] };\n return { items };\n}\n\n/** The collection's symbol, made from the drop's name. */\nexport function dropSymbol(name: string): string {\n return suggestLaunchpadSymbol(name) || \"DROP\";\n}\n\n/**\n * Create a collection drop in the launchpad layout: the form in the main column, the live preview\n * and the app's `aside` in the secondary one.\n */\nexport function DropCreate({ aside }: { aside?: ReactNode }) {\n const t = useT();\n const intl = useFormat();\n const app = useMedialaneApp();\n const feeBps = useDropFee();\n const [draft, setDraftState] = useState<DropDraft>(EMPTY_DRAFT);\n const [tried, setTried] = useState(false);\n const [launching, setLaunching] = useState(false);\n const [licenseOpen, setLicenseOpen] = useState(false);\n const setDraft = (patch: Partial<DropDraft>) => setDraftState((d) => ({ ...d, ...patch }));\n const errors = tried ? validateDropDraft(draft, Math.floor(Date.now() / 1000)) : {};\n const files = draftFiles(draft);\n const supply = draftSupply(draft);\n const wallet = app.walletAddress;\n\n const launch = () => {\n if (!wallet) return app.onRequireWallet();\n setTried(true);\n if (Object.keys(validateDropDraft(draft, Math.floor(Date.now() / 1000))).length === 0) setLaunching(true);\n };\n\n return (\n <ClaimRouteShell\n icon={<Package className=\"h-4 w-4 text-white\" />}\n title={msg(\"Collection drop\")}\n subtitle={msg(\"Release your work to collectors at a price and time you choose. Collectors mint straight from your drop page.\")}\n aside={\n <>\n <MedialaneCollectionCard\n image={files[0] ? previewUrl(files[0]) : null}\n name={draft.name}\n collection={files.length > 0 && Number.isFinite(supply) && supply > 0 ? supplyLabel(t, draft.kind, supply, intl.number(supply)) : undefined}\n creator={wallet ? `${wallet.slice(0, 6)}…${wallet.slice(-4)}` : undefined}\n creatorHref={wallet ? profileHref({ address: wallet }) : undefined}\n />\n {aside}\n </>\n }\n >\n <div className=\"space-y-6\">\n <ArtworkUpload\n files={files}\n error={errors.artwork}\n onAdd={(picked) => setDraftState((d) => ({ ...d, ...withArtwork(d, picked) }))}\n onRemove={(file) => setDraftState((d) => ({ ...d, ...withoutArtwork(d, file) }))}\n />\n <NameFields draft={draft} setDraft={setDraft} errors={errors}\n onNameChange={(name) => setDraft({ name, symbol: dropSymbol(name) })} />\n <PriceFields draft={draft} setDraft={setDraft} errors={errors} feeBps={feeBps} />\n {draft.kind === \"edition\" && <CopiesField draft={draft} setDraft={setDraft} errors={errors} />}\n <AccessFields draft={draft} setDraft={setDraft} errors={errors} />\n <TimingFields draft={draft} setDraft={setDraft} errors={errors} />\n\n <CollapsibleSection open={licenseOpen} onOpenChange={setLicenseOpen}\n icon={<ShieldCheck className=\"h-4 w-4 text-primary\" />}\n label={t(\"License terms\")} hint={t(\"Optional · Berne Convention\")}>\n <LicenseFields draft={draft} setDraft={setDraft} />\n </CollapsibleSection>\n <CollapsibleSection open={draft.gated.enabled}\n onOpenChange={(enabled) => setDraft({ gated: { ...draft.gated, enabled } })}\n icon={<Lock className=\"h-4 w-4 text-primary\" />}\n label={t(\"Exclusive content\")} hint={t(\"Optional · a private link only holders can open\")}>\n <ExclusiveFields value={draft.gated} onChange={(v) => setDraft({ gated: { ...draft.gated, ...v } })} />\n <FieldError message={errors.gated} />\n </CollapsibleSection>\n\n {tried && Object.keys(errors).length > 0 && <p className=\"text-sm font-medium text-destructive\">{t(\"Check the highlighted fields.\")}</p>}\n <ActionButton solid big onClick={launch} className=\"w-full\">\n {wallet ? t(\"Launch drop\") : app.connectLabel ?? t(\"Sign in to launch\")}\n </ActionButton>\n <p className=\"text-center text-xs text-muted-foreground\">{t(\"Artwork, price and copies can't change after launch.\")}</p>\n </div>\n {launching && <LaunchDialog open onClose={() => setLaunching(false)} draft={draft} />}\n </ClaimRouteShell>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4EY;AA1EZ,mBAAyC;AACzC,0BAA2C;AAC3C,iBAA4B;AAC5B,2BAA6B;AAC7B,iCAAmC;AACnC,+BAAgC;AAChC,uCAAwC;AACxC,yBAA2H;AAC3H,8BAAgC;AAChC,2BAA6B;AAC7B,mBAAyG;AACzG,qBAA2B;AAC3B,gCAAuC;AACvC,2BAAgC;AAChC,uBAA2B;AAC3B,uBAAoB;AACpB,sBAAqB;AACrB,wBAA0B;AAE1B,MAAM,SAAS,CAAC,UAA2B,EAAE,IAAI,OAAO,WAAW,GAAG,MAAM,YAAY,IAAI,gBAAgB,IAAI,GAAG,MAAM,IAAI,aAAa,GAAG;AAGtI,SAAS,WAAW,OAA0B;AACnD,SAAO,MAAM,SAAS,YAAa,MAAM,UAAU,CAAC,MAAM,OAAO,IAAI,CAAC,IAAK,MAAM,MAAM,IAAI,CAAC,OAAO,GAAG,IAAI;AAC5G;AAGO,SAAS,YAAY,OAAkB,OAAmC;AAC/E,QAAM,UAAuB,MAAM,SAAS,YAAa,MAAM,UAAU,CAAC,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,IAAK,MAAM;AAC/G,QAAM,QAAQ,CAAC,GAAG,SAAS,GAAG,MAAM,IAAI,MAAM,CAAC;AAC/C,MAAI,MAAM,WAAW,EAAG,QAAO,EAAE,MAAM,WAAW,SAAS,MAAM,CAAC,EAAG,MAAM,OAAO,C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J;","names":[]}
@@ -1,20 +1,26 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
2
3
  import { DropDraft } from '../../../utils/drop/draft.cjs';
3
4
  import '../../../i18n/make-t.cjs';
4
5
  import '../../../i18n/translate.cjs';
5
- import '../../drop-item-list.cjs';
6
6
  import '../../../utils/drop/metadata.cjs';
7
7
  import '@medialane/sdk';
8
8
  import '../../../utils/drop/sale.cjs';
9
9
 
10
- /** The draft with these images: one image is an edition, several are a collection. */
10
+ /** The images of a draft, in order. */
11
+ declare function draftFiles(draft: DropDraft): File[];
12
+ /** The draft with these images added: one image is an edition, several are a collection. */
11
13
  declare function withArtwork(draft: DropDraft, files: File[]): Partial<DropDraft>;
14
+ /** The draft without this image; a single image left makes it an edition again. */
15
+ declare function withoutArtwork(draft: DropDraft, file: File): Partial<DropDraft>;
12
16
  /** The collection's symbol, made from the drop's name. */
13
17
  declare function dropSymbol(name: string): string;
14
18
  /**
15
- * Create a drop on one screen: the artwork first, then the name, price and who can mint, with
16
- * timing, license and exclusive content in panels that stay closed until needed.
19
+ * Create a collection drop in the launchpad layout: the form in the main column, the live preview
20
+ * and the app's `aside` in the secondary one.
17
21
  */
18
- declare function DropCreate(): react_jsx_runtime.JSX.Element;
22
+ declare function DropCreate({ aside }: {
23
+ aside?: ReactNode;
24
+ }): react_jsx_runtime.JSX.Element;
19
25
 
20
- export { DropCreate, dropSymbol, withArtwork };
26
+ export { DropCreate, draftFiles, dropSymbol, withArtwork, withoutArtwork };
@@ -1,20 +1,26 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
2
3
  import { DropDraft } from '../../../utils/drop/draft.js';
3
4
  import '../../../i18n/make-t.js';
4
5
  import '../../../i18n/translate.js';
5
- import '../../drop-item-list.js';
6
6
  import '../../../utils/drop/metadata.js';
7
7
  import '@medialane/sdk';
8
8
  import '../../../utils/drop/sale.js';
9
9
 
10
- /** The draft with these images: one image is an edition, several are a collection. */
10
+ /** The images of a draft, in order. */
11
+ declare function draftFiles(draft: DropDraft): File[];
12
+ /** The draft with these images added: one image is an edition, several are a collection. */
11
13
  declare function withArtwork(draft: DropDraft, files: File[]): Partial<DropDraft>;
14
+ /** The draft without this image; a single image left makes it an edition again. */
15
+ declare function withoutArtwork(draft: DropDraft, file: File): Partial<DropDraft>;
12
16
  /** The collection's symbol, made from the drop's name. */
13
17
  declare function dropSymbol(name: string): string;
14
18
  /**
15
- * Create a drop on one screen: the artwork first, then the name, price and who can mint, with
16
- * timing, license and exclusive content in panels that stay closed until needed.
19
+ * Create a collection drop in the launchpad layout: the form in the main column, the live preview
20
+ * and the app's `aside` in the secondary one.
17
21
  */
18
- declare function DropCreate(): react_jsx_runtime.JSX.Element;
22
+ declare function DropCreate({ aside }: {
23
+ aside?: ReactNode;
24
+ }): react_jsx_runtime.JSX.Element;
19
25
 
20
- export { DropCreate, dropSymbol, withArtwork };
26
+ export { DropCreate, draftFiles, dropSymbol, withArtwork, withoutArtwork };