@medialane/ui 0.243.0 → 0.245.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 (41) hide show
  1. package/dist/components/account/input-otp.d.cts +2 -2
  2. package/dist/components/account/input-otp.d.ts +2 -2
  3. package/dist/components/button.d.cts +2 -2
  4. package/dist/components/button.d.ts +2 -2
  5. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  6. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  7. package/dist/components/launchpad/coin-create.cjs +424 -0
  8. package/dist/components/launchpad/coin-create.cjs.map +1 -0
  9. package/dist/components/launchpad/coin-create.d.cts +10 -0
  10. package/dist/components/launchpad/coin-create.d.ts +10 -0
  11. package/dist/components/launchpad/coin-create.js +402 -0
  12. package/dist/components/launchpad/coin-create.js.map +1 -0
  13. package/dist/components/launchpad/edition-mint-schema.d.cts +2 -2
  14. package/dist/components/launchpad/edition-mint-schema.d.ts +2 -2
  15. package/dist/components/launchpad/pop-create-fields.cjs +295 -0
  16. package/dist/components/launchpad/pop-create-fields.cjs.map +1 -0
  17. package/dist/components/launchpad/pop-create-fields.d.cts +25 -0
  18. package/dist/components/launchpad/pop-create-fields.d.ts +25 -0
  19. package/dist/components/launchpad/pop-create-fields.js +273 -0
  20. package/dist/components/launchpad/pop-create-fields.js.map +1 -0
  21. package/dist/components/launchpad/pop-create-schema.cjs +71 -0
  22. package/dist/components/launchpad/pop-create-schema.cjs.map +1 -0
  23. package/dist/components/launchpad/pop-create-schema.d.cts +41 -0
  24. package/dist/components/launchpad/pop-create-schema.d.ts +41 -0
  25. package/dist/components/launchpad/pop-create-schema.js +37 -0
  26. package/dist/components/launchpad/pop-create-schema.js.map +1 -0
  27. package/dist/components/launchpad/pop-create.cjs +191 -0
  28. package/dist/components/launchpad/pop-create.cjs.map +1 -0
  29. package/dist/components/launchpad/pop-create.d.cts +8 -0
  30. package/dist/components/launchpad/pop-create.d.ts +8 -0
  31. package/dist/components/launchpad/pop-create.js +167 -0
  32. package/dist/components/launchpad/pop-create.js.map +1 -0
  33. package/dist/components/sheet.d.cts +1 -1
  34. package/dist/components/sheet.d.ts +1 -1
  35. package/dist/index.cjs +6 -0
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +2 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.js +4 -0
  40. package/dist/index.js.map +1 -1
  41. package/package.json +1 -1
@@ -0,0 +1,191 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var pop_create_exports = {};
21
+ __export(pop_create_exports, {
22
+ PopCreate: () => PopCreate
23
+ });
24
+ module.exports = __toCommonJS(pop_create_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_react = require("react");
27
+ var import_react_hook_form = require("react-hook-form");
28
+ var import_zod = require("@hookform/resolvers/zod");
29
+ var import_lucide_react = require("lucide-react");
30
+ var import_sdk = require("@medialane/sdk");
31
+ var import_form = require("../form.js");
32
+ var import_claim_route_shell = require("../claim-route-shell.js");
33
+ var import_creation_success = require("../creation-success.js");
34
+ var import_medialane_collection_card = require("../medialane-collection-card.js");
35
+ var import_transaction_dialog = require("../transaction-dialog.js");
36
+ var import_wallet_required = require("../wallet-required.js");
37
+ var import_medialane_app = require("../medialane-app.js");
38
+ var import_reward_earned = require("../rewards/reward-earned.js");
39
+ var import_pop_create_fields = require("./pop-create-fields.js");
40
+ var import_pop_create_schema = require("./pop-create-schema.js");
41
+ var import_launchpad_defaults = require("../../utils/launchpad-defaults.js");
42
+ var import_run_intent_calls = require("../../utils/run-intent-calls.js");
43
+ var import_ipfs_upload = require("../../utils/ipfs-upload.js");
44
+ var import_use_transaction = require("../../utils/use-transaction.js");
45
+ var import_use_launchpad_image_upload = require("../../utils/use-launchpad-image-upload.js");
46
+ function PopCreate({ aside }) {
47
+ const app = (0, import_medialane_app.useMedialaneApp)();
48
+ const walletAddress = app.walletAddress;
49
+ const tx = (0, import_use_transaction.useTransaction)();
50
+ const upload = (0, import_use_launchpad_image_upload.useLaunchpadImageUpload)({ successMessage: "Badge image uploaded", failureMessage: "Image upload failed" });
51
+ const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;
52
+ const [eventType, setEventType] = (0, import_react.useState)("Conference");
53
+ const [isPublic, setIsPublic] = (0, import_react.useState)(false);
54
+ const [autoSymbol, setAutoSymbol] = (0, import_react.useState)("");
55
+ const form = (0, import_react_hook_form.useForm)({
56
+ resolver: (0, import_zod.zodResolver)(import_pop_create_schema.popCreateSchema),
57
+ defaultValues: { name: "", symbol: "", description: "", external_link: "", claimEndDate: "", claimEndTime: "23:59" }
58
+ });
59
+ const eventName = form.watch("name");
60
+ (0, import_react.useEffect)(() => {
61
+ const defaults = (0, import_launchpad_defaults.getDefaultClaimWindow)();
62
+ if (!form.getValues("claimEndDate")) {
63
+ form.setValue("claimEndDate", defaults.claimEndDate, { shouldDirty: false });
64
+ form.setValue("claimEndTime", defaults.claimEndTime, { shouldDirty: false });
65
+ }
66
+ }, [form]);
67
+ (0, import_react.useEffect)(() => {
68
+ const suggested = (0, import_launchpad_defaults.suggestLaunchpadSymbol)(eventName);
69
+ if (!suggested) return;
70
+ const current = form.getValues("symbol");
71
+ if (!current || current === autoSymbol) {
72
+ form.setValue("symbol", suggested, { shouldDirty: false });
73
+ setAutoSymbol(suggested);
74
+ }
75
+ }, [autoSymbol, eventName, form]);
76
+ const handleAgain = () => {
77
+ const defaults = (0, import_launchpad_defaults.getDefaultClaimWindow)();
78
+ tx.reset();
79
+ form.reset({ name: "", symbol: "", claimEndDate: defaults.claimEndDate, claimEndTime: defaults.claimEndTime });
80
+ clearImage();
81
+ setEventType("Conference");
82
+ setIsPublic(false);
83
+ setAutoSymbol("");
84
+ };
85
+ const onSubmit = (values) => {
86
+ if (!walletAddress) return;
87
+ void tx.run(async (signer) => {
88
+ await app.ensureSignedIn?.();
89
+ const api = app.getClient().api;
90
+ const baseUri = await (0, import_ipfs_upload.uploadJsonToIpfs)(api, {
91
+ ...(0, import_sdk.buildCollectionMetadata)({
92
+ name: values.name,
93
+ description: values.description,
94
+ image: imageUri,
95
+ externalLink: values.external_link,
96
+ owner: walletAddress
97
+ }),
98
+ attributes: [
99
+ { trait_type: "Visibility", value: isPublic ? "Public" : "Private" },
100
+ { trait_type: "Event Type", value: eventType }
101
+ ]
102
+ });
103
+ const claimEndTimestamp = Math.floor((/* @__PURE__ */ new Date(`${values.claimEndDate}T${values.claimEndTime}:00`)).getTime() / 1e3);
104
+ await (0, import_run_intent_calls.runIntentCalls)(
105
+ signer,
106
+ () => api.intents.create("create-collection", {
107
+ owner: walletAddress,
108
+ name: values.name,
109
+ symbol: values.symbol,
110
+ baseUri,
111
+ service: "pop-protocol",
112
+ claimEndTimestamp
113
+ })
114
+ );
115
+ });
116
+ };
117
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
118
+ import_wallet_required.WalletRequired,
119
+ {
120
+ icon: import_lucide_react.Award,
121
+ iconClassName: "text-green-500",
122
+ title: "Secure your account to create a POP event",
123
+ description: "Secure your account to deploy a credential collection onchain.",
124
+ children: [
125
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_transaction_dialog.TransactionDialog, { tx, title: "Create POP event", workingLabel: "Creating your POP event\u2026", firstStepLabel: "Upload badge metadata", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
126
+ import_creation_success.CreationSuccess,
127
+ {
128
+ name: eventName || "Your event",
129
+ image: imagePreview,
130
+ caption: "Your event is live",
131
+ primary: { href: "/launchpad/pop", label: "Back to POP launchpad" },
132
+ onAgain: handleAgain,
133
+ againLabel: "Create another",
134
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_reward_earned.RewardEarned, { actionType: "launch_launchpad" })
135
+ }
136
+ ) }),
137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
138
+ import_claim_route_shell.ClaimRouteShell,
139
+ {
140
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Award, { className: "h-4 w-4 text-white" }),
141
+ title: "Create a POP Event",
142
+ subtitle: "Give attendees a collectible badge that proves they were part of your event \u2014 free to publish.",
143
+ aside: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
144
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
145
+ import_medialane_collection_card.MedialaneCollectionCard,
146
+ {
147
+ image: imagePreview,
148
+ name: eventName,
149
+ collection: form.watch("symbol") || "POP Event",
150
+ creator: walletAddress ? `${walletAddress.slice(0, 6)}\u2026${walletAddress.slice(-4)}` : void 0,
151
+ creatorHref: walletAddress ? (0, import_sdk.profileHref)({ address: walletAddress }) : void 0
152
+ }
153
+ ),
154
+ aside
155
+ ] }),
156
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", { onSubmit: form.handleSubmit(onSubmit), className: "space-y-5", children: [
157
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
158
+ import_pop_create_fields.PopCreateFields,
159
+ {
160
+ walletAddress,
161
+ form,
162
+ eventType,
163
+ isPublic,
164
+ imagePreview,
165
+ imageUri,
166
+ imageUploading,
167
+ isSubmitting: tx.phase !== "idle",
168
+ fileInputRef,
169
+ onSetEventType: setEventType,
170
+ onSetPublic: setIsPublic,
171
+ onImageSelect: handleImageSelect,
172
+ onClearImage: clearImage
173
+ }
174
+ ),
175
+ uploadError && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-destructive mt-1", children: uploadError }),
176
+ uploadSuccess && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-xs text-emerald-500 mt-1", children: [
177
+ "\u2713 ",
178
+ uploadSuccess
179
+ ] })
180
+ ] }) })
181
+ }
182
+ )
183
+ ]
184
+ }
185
+ );
186
+ }
187
+ // Annotate the CommonJS export names for ESM import in node:
188
+ 0 && (module.exports = {
189
+ PopCreate
190
+ });
191
+ //# sourceMappingURL=pop-create.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/launchpad/pop-create.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Award } from \"lucide-react\";\nimport { buildCollectionMetadata, profileHref } from \"@medialane/sdk\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { CreationSuccess } from \"../creation-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { PopCreateFields, type PopEventType } from \"./pop-create-fields.js\";\nimport { popCreateSchema, type PopCreateValues } from \"./pop-create-schema.js\";\nimport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\n\nexport function PopCreate({ aside }: { aside?: ReactNode }) {\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: \"Badge image uploaded\", failureMessage: \"Image upload failed\" });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [eventType, setEventType] = useState<PopEventType>(\"Conference\");\n const [isPublic, setIsPublic] = useState(false);\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n\n const form = useForm<PopCreateValues>({\n resolver: zodResolver(popCreateSchema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\", claimEndDate: \"\", claimEndTime: \"23:59\" },\n });\n const eventName = form.watch(\"name\");\n\n useEffect(() => {\n const defaults = getDefaultClaimWindow();\n if (!form.getValues(\"claimEndDate\")) {\n form.setValue(\"claimEndDate\", defaults.claimEndDate, { shouldDirty: false });\n form.setValue(\"claimEndTime\", defaults.claimEndTime, { shouldDirty: false });\n }\n }, [form]);\n\n useEffect(() => {\n const suggested = suggestLaunchpadSymbol(eventName);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, eventName, form]);\n\n const handleAgain = () => {\n const defaults = getDefaultClaimWindow();\n tx.reset();\n form.reset({ name: \"\", symbol: \"\", claimEndDate: defaults.claimEndDate, claimEndTime: defaults.claimEndTime });\n clearImage();\n setEventType(\"Conference\");\n setIsPublic(false);\n setAutoSymbol(\"\");\n };\n\n const onSubmit = (values: PopCreateValues) => {\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(api, {\n ...buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n attributes: [\n { trait_type: \"Visibility\", value: isPublic ? \"Public\" : \"Private\" },\n { trait_type: \"Event Type\", value: eventType },\n ],\n });\n const claimEndTimestamp = Math.floor(new Date(`${values.claimEndDate}T${values.claimEndTime}:00`).getTime() / 1000);\n await runIntentCalls(signer, () =>\n api.intents.create(\"create-collection\", {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n service: \"pop-protocol\",\n claimEndTimestamp,\n }),\n );\n });\n };\n\n return (\n <WalletRequired\n icon={Award}\n iconClassName=\"text-green-500\"\n title=\"Secure your account to create a POP event\"\n description=\"Secure your account to deploy a credential collection onchain.\"\n >\n <TransactionDialog tx={tx} title=\"Create POP event\" workingLabel=\"Creating your POP event…\" firstStepLabel=\"Upload badge metadata\">\n <CreationSuccess\n name={eventName || \"Your event\"}\n image={imagePreview}\n caption=\"Your event is live\"\n primary={{ href: \"/launchpad/pop\", label: \"Back to POP launchpad\" }}\n onAgain={handleAgain}\n againLabel=\"Create another\"\n >\n <RewardEarned actionType=\"launch_launchpad\" />\n </CreationSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Award className=\"h-4 w-4 text-white\" />}\n title=\"Create a POP Event\"\n subtitle=\"Give attendees a collectible badge that proves they were part of your event — free to publish.\"\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={eventName}\n collection={form.watch(\"symbol\") || \"POP Event\"}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <PopCreateFields\n walletAddress={walletAddress}\n form={form}\n eventType={eventType}\n isPublic={isPublic}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n isSubmitting={tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onSetEventType={setEventType}\n onSetPublic={setIsPublic}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-emerald-500 mt-1\">✓ {uploadSuccess}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmHU;AAjHV,mBAAoD;AACpD,6BAAwB;AACxB,iBAA4B;AAC5B,0BAAsB;AACtB,iBAAqD;AACrD,kBAAqB;AACrB,+BAAgC;AAChC,8BAAgC;AAChC,uCAAwC;AACxC,gCAAkC;AAClC,6BAA+B;AAC/B,2BAAgC;AAChC,2BAA6B;AAC7B,+BAAmD;AACnD,+BAAsD;AACtD,gCAA8D;AAC9D,8BAA+B;AAC/B,yBAAiC;AACjC,6BAA+B;AAC/B,wCAAwC;AAEjC,SAAS,UAAU,EAAE,MAAM,GAA0B;AAC1D,QAAM,UAAM,sCAAgB;AAC5B,QAAM,gBAAgB,IAAI;AAC1B,QAAM,SAAK,uCAAe;AAC1B,QAAM,aAAS,2DAAwB,EAAE,gBAAgB,wBAAwB,gBAAgB,sBAAsB,CAAC;AACxH,QAAM,EAAE,cAAc,UAAU,gBAAgB,aAAa,eAAe,cAAc,mBAAmB,WAAW,IAAI;AAC5H,QAAM,CAAC,WAAW,YAAY,QAAI,uBAAuB,YAAY;AACrE,QAAM,CAAC,UAAU,WAAW,QAAI,uBAAS,KAAK;AAC9C,QAAM,CAAC,YAAY,aAAa,QAAI,uBAAS,EAAE;AAE/C,QAAM,WAAO,gCAAyB;AAAA,IACpC,cAAU,wBAAY,wCAAe;AAAA,IACrC,eAAe,EAAE,MAAM,IAAI,QAAQ,IAAI,aAAa,IAAI,eAAe,IAAI,cAAc,IAAI,c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Y,EAAE,SAAS,cAAc,CAAC,IAAI;AAAA;AAAA,cACzE;AAAA,cACC;AAAA,eACH;AAAA,YAGF,sDAAC,oBAAM,GAAG,MACR,uDAAC,UAAK,UAAU,KAAK,aAAa,QAAQ,GAAG,WAAU,aACrD;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,kBACA,cAAc,GAAG,UAAU;AAAA,kBAC3B;AAAA,kBACA,gBAAgB;AAAA,kBAChB,aAAa;AAAA,kBACb,eAAe;AAAA,kBACf,cAAc;AAAA;AAAA,cAChB;AAAA,cACC,eAAe,4CAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,cACzE,iBAAiB,6CAAC,OAAE,WAAU,iCAAgC;AAAA;AAAA,gBAAG;AAAA,iBAAc;AAAA,eAClF,GACF;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ declare function PopCreate({ aside }: {
5
+ aside?: ReactNode;
6
+ }): react_jsx_runtime.JSX.Element;
7
+
8
+ export { PopCreate };
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ declare function PopCreate({ aside }: {
5
+ aside?: ReactNode;
6
+ }): react_jsx_runtime.JSX.Element;
7
+
8
+ export { PopCreate };
@@ -0,0 +1,167 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useState } from "react";
4
+ import { useForm } from "react-hook-form";
5
+ import { zodResolver } from "@hookform/resolvers/zod";
6
+ import { Award } from "lucide-react";
7
+ import { buildCollectionMetadata, profileHref } from "@medialane/sdk";
8
+ import { Form } from "../form.js";
9
+ import { ClaimRouteShell } from "../claim-route-shell.js";
10
+ import { CreationSuccess } from "../creation-success.js";
11
+ import { MedialaneCollectionCard } from "../medialane-collection-card.js";
12
+ import { TransactionDialog } from "../transaction-dialog.js";
13
+ import { WalletRequired } from "../wallet-required.js";
14
+ import { useMedialaneApp } from "../medialane-app.js";
15
+ import { RewardEarned } from "../rewards/reward-earned.js";
16
+ import { PopCreateFields } from "./pop-create-fields.js";
17
+ import { popCreateSchema } from "./pop-create-schema.js";
18
+ import { getDefaultClaimWindow, suggestLaunchpadSymbol } from "../../utils/launchpad-defaults.js";
19
+ import { runIntentCalls } from "../../utils/run-intent-calls.js";
20
+ import { uploadJsonToIpfs } from "../../utils/ipfs-upload.js";
21
+ import { useTransaction } from "../../utils/use-transaction.js";
22
+ import { useLaunchpadImageUpload } from "../../utils/use-launchpad-image-upload.js";
23
+ function PopCreate({ aside }) {
24
+ const app = useMedialaneApp();
25
+ const walletAddress = app.walletAddress;
26
+ const tx = useTransaction();
27
+ const upload = useLaunchpadImageUpload({ successMessage: "Badge image uploaded", failureMessage: "Image upload failed" });
28
+ const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;
29
+ const [eventType, setEventType] = useState("Conference");
30
+ const [isPublic, setIsPublic] = useState(false);
31
+ const [autoSymbol, setAutoSymbol] = useState("");
32
+ const form = useForm({
33
+ resolver: zodResolver(popCreateSchema),
34
+ defaultValues: { name: "", symbol: "", description: "", external_link: "", claimEndDate: "", claimEndTime: "23:59" }
35
+ });
36
+ const eventName = form.watch("name");
37
+ useEffect(() => {
38
+ const defaults = getDefaultClaimWindow();
39
+ if (!form.getValues("claimEndDate")) {
40
+ form.setValue("claimEndDate", defaults.claimEndDate, { shouldDirty: false });
41
+ form.setValue("claimEndTime", defaults.claimEndTime, { shouldDirty: false });
42
+ }
43
+ }, [form]);
44
+ useEffect(() => {
45
+ const suggested = suggestLaunchpadSymbol(eventName);
46
+ if (!suggested) return;
47
+ const current = form.getValues("symbol");
48
+ if (!current || current === autoSymbol) {
49
+ form.setValue("symbol", suggested, { shouldDirty: false });
50
+ setAutoSymbol(suggested);
51
+ }
52
+ }, [autoSymbol, eventName, form]);
53
+ const handleAgain = () => {
54
+ const defaults = getDefaultClaimWindow();
55
+ tx.reset();
56
+ form.reset({ name: "", symbol: "", claimEndDate: defaults.claimEndDate, claimEndTime: defaults.claimEndTime });
57
+ clearImage();
58
+ setEventType("Conference");
59
+ setIsPublic(false);
60
+ setAutoSymbol("");
61
+ };
62
+ const onSubmit = (values) => {
63
+ if (!walletAddress) return;
64
+ void tx.run(async (signer) => {
65
+ await app.ensureSignedIn?.();
66
+ const api = app.getClient().api;
67
+ const baseUri = await uploadJsonToIpfs(api, {
68
+ ...buildCollectionMetadata({
69
+ name: values.name,
70
+ description: values.description,
71
+ image: imageUri,
72
+ externalLink: values.external_link,
73
+ owner: walletAddress
74
+ }),
75
+ attributes: [
76
+ { trait_type: "Visibility", value: isPublic ? "Public" : "Private" },
77
+ { trait_type: "Event Type", value: eventType }
78
+ ]
79
+ });
80
+ const claimEndTimestamp = Math.floor((/* @__PURE__ */ new Date(`${values.claimEndDate}T${values.claimEndTime}:00`)).getTime() / 1e3);
81
+ await runIntentCalls(
82
+ signer,
83
+ () => api.intents.create("create-collection", {
84
+ owner: walletAddress,
85
+ name: values.name,
86
+ symbol: values.symbol,
87
+ baseUri,
88
+ service: "pop-protocol",
89
+ claimEndTimestamp
90
+ })
91
+ );
92
+ });
93
+ };
94
+ return /* @__PURE__ */ jsxs(
95
+ WalletRequired,
96
+ {
97
+ icon: Award,
98
+ iconClassName: "text-green-500",
99
+ title: "Secure your account to create a POP event",
100
+ description: "Secure your account to deploy a credential collection onchain.",
101
+ children: [
102
+ /* @__PURE__ */ jsx(TransactionDialog, { tx, title: "Create POP event", workingLabel: "Creating your POP event\u2026", firstStepLabel: "Upload badge metadata", children: /* @__PURE__ */ jsx(
103
+ CreationSuccess,
104
+ {
105
+ name: eventName || "Your event",
106
+ image: imagePreview,
107
+ caption: "Your event is live",
108
+ primary: { href: "/launchpad/pop", label: "Back to POP launchpad" },
109
+ onAgain: handleAgain,
110
+ againLabel: "Create another",
111
+ children: /* @__PURE__ */ jsx(RewardEarned, { actionType: "launch_launchpad" })
112
+ }
113
+ ) }),
114
+ /* @__PURE__ */ jsx(
115
+ ClaimRouteShell,
116
+ {
117
+ icon: /* @__PURE__ */ jsx(Award, { className: "h-4 w-4 text-white" }),
118
+ title: "Create a POP Event",
119
+ subtitle: "Give attendees a collectible badge that proves they were part of your event \u2014 free to publish.",
120
+ aside: /* @__PURE__ */ jsxs(Fragment, { children: [
121
+ /* @__PURE__ */ jsx(
122
+ MedialaneCollectionCard,
123
+ {
124
+ image: imagePreview,
125
+ name: eventName,
126
+ collection: form.watch("symbol") || "POP Event",
127
+ creator: walletAddress ? `${walletAddress.slice(0, 6)}\u2026${walletAddress.slice(-4)}` : void 0,
128
+ creatorHref: walletAddress ? profileHref({ address: walletAddress }) : void 0
129
+ }
130
+ ),
131
+ aside
132
+ ] }),
133
+ children: /* @__PURE__ */ jsx(Form, { ...form, children: /* @__PURE__ */ jsxs("form", { onSubmit: form.handleSubmit(onSubmit), className: "space-y-5", children: [
134
+ /* @__PURE__ */ jsx(
135
+ PopCreateFields,
136
+ {
137
+ walletAddress,
138
+ form,
139
+ eventType,
140
+ isPublic,
141
+ imagePreview,
142
+ imageUri,
143
+ imageUploading,
144
+ isSubmitting: tx.phase !== "idle",
145
+ fileInputRef,
146
+ onSetEventType: setEventType,
147
+ onSetPublic: setIsPublic,
148
+ onImageSelect: handleImageSelect,
149
+ onClearImage: clearImage
150
+ }
151
+ ),
152
+ uploadError && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive mt-1", children: uploadError }),
153
+ uploadSuccess && /* @__PURE__ */ jsxs("p", { className: "text-xs text-emerald-500 mt-1", children: [
154
+ "\u2713 ",
155
+ uploadSuccess
156
+ ] })
157
+ ] }) })
158
+ }
159
+ )
160
+ ]
161
+ }
162
+ );
163
+ }
164
+ export {
165
+ PopCreate
166
+ };
167
+ //# sourceMappingURL=pop-create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/launchpad/pop-create.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState, type ReactNode } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { Award } from \"lucide-react\";\nimport { buildCollectionMetadata, profileHref } from \"@medialane/sdk\";\nimport { Form } from \"../form.js\";\nimport { ClaimRouteShell } from \"../claim-route-shell.js\";\nimport { CreationSuccess } from \"../creation-success.js\";\nimport { MedialaneCollectionCard } from \"../medialane-collection-card.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { PopCreateFields, type PopEventType } from \"./pop-create-fields.js\";\nimport { popCreateSchema, type PopCreateValues } from \"./pop-create-schema.js\";\nimport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"../../utils/launchpad-defaults.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { useLaunchpadImageUpload } from \"../../utils/use-launchpad-image-upload.js\";\n\nexport function PopCreate({ aside }: { aside?: ReactNode }) {\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const upload = useLaunchpadImageUpload({ successMessage: \"Badge image uploaded\", failureMessage: \"Image upload failed\" });\n const { imagePreview, imageUri, imageUploading, uploadError, uploadSuccess, fileInputRef, handleImageSelect, clearImage } = upload;\n const [eventType, setEventType] = useState<PopEventType>(\"Conference\");\n const [isPublic, setIsPublic] = useState(false);\n const [autoSymbol, setAutoSymbol] = useState(\"\");\n\n const form = useForm<PopCreateValues>({\n resolver: zodResolver(popCreateSchema),\n defaultValues: { name: \"\", symbol: \"\", description: \"\", external_link: \"\", claimEndDate: \"\", claimEndTime: \"23:59\" },\n });\n const eventName = form.watch(\"name\");\n\n useEffect(() => {\n const defaults = getDefaultClaimWindow();\n if (!form.getValues(\"claimEndDate\")) {\n form.setValue(\"claimEndDate\", defaults.claimEndDate, { shouldDirty: false });\n form.setValue(\"claimEndTime\", defaults.claimEndTime, { shouldDirty: false });\n }\n }, [form]);\n\n useEffect(() => {\n const suggested = suggestLaunchpadSymbol(eventName);\n if (!suggested) return;\n const current = form.getValues(\"symbol\");\n if (!current || current === autoSymbol) {\n form.setValue(\"symbol\", suggested, { shouldDirty: false });\n setAutoSymbol(suggested);\n }\n }, [autoSymbol, eventName, form]);\n\n const handleAgain = () => {\n const defaults = getDefaultClaimWindow();\n tx.reset();\n form.reset({ name: \"\", symbol: \"\", claimEndDate: defaults.claimEndDate, claimEndTime: defaults.claimEndTime });\n clearImage();\n setEventType(\"Conference\");\n setIsPublic(false);\n setAutoSymbol(\"\");\n };\n\n const onSubmit = (values: PopCreateValues) => {\n if (!walletAddress) return;\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const api = app.getClient().api;\n const baseUri = await uploadJsonToIpfs(api, {\n ...buildCollectionMetadata({\n name: values.name,\n description: values.description,\n image: imageUri,\n externalLink: values.external_link,\n owner: walletAddress,\n }),\n attributes: [\n { trait_type: \"Visibility\", value: isPublic ? \"Public\" : \"Private\" },\n { trait_type: \"Event Type\", value: eventType },\n ],\n });\n const claimEndTimestamp = Math.floor(new Date(`${values.claimEndDate}T${values.claimEndTime}:00`).getTime() / 1000);\n await runIntentCalls(signer, () =>\n api.intents.create(\"create-collection\", {\n owner: walletAddress,\n name: values.name,\n symbol: values.symbol,\n baseUri,\n service: \"pop-protocol\",\n claimEndTimestamp,\n }),\n );\n });\n };\n\n return (\n <WalletRequired\n icon={Award}\n iconClassName=\"text-green-500\"\n title=\"Secure your account to create a POP event\"\n description=\"Secure your account to deploy a credential collection onchain.\"\n >\n <TransactionDialog tx={tx} title=\"Create POP event\" workingLabel=\"Creating your POP event…\" firstStepLabel=\"Upload badge metadata\">\n <CreationSuccess\n name={eventName || \"Your event\"}\n image={imagePreview}\n caption=\"Your event is live\"\n primary={{ href: \"/launchpad/pop\", label: \"Back to POP launchpad\" }}\n onAgain={handleAgain}\n againLabel=\"Create another\"\n >\n <RewardEarned actionType=\"launch_launchpad\" />\n </CreationSuccess>\n </TransactionDialog>\n\n <ClaimRouteShell\n icon={<Award className=\"h-4 w-4 text-white\" />}\n title=\"Create a POP Event\"\n subtitle=\"Give attendees a collectible badge that proves they were part of your event — free to publish.\"\n aside={\n <>\n <MedialaneCollectionCard\n image={imagePreview}\n name={eventName}\n collection={form.watch(\"symbol\") || \"POP Event\"}\n creator={walletAddress ? `${walletAddress.slice(0, 6)}…${walletAddress.slice(-4)}` : undefined}\n creatorHref={walletAddress ? profileHref({ address: walletAddress }) : undefined}\n />\n {aside}\n </>\n }\n >\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-5\">\n <PopCreateFields\n walletAddress={walletAddress}\n form={form}\n eventType={eventType}\n isPublic={isPublic}\n imagePreview={imagePreview}\n imageUri={imageUri}\n imageUploading={imageUploading}\n isSubmitting={tx.phase !== \"idle\"}\n fileInputRef={fileInputRef}\n onSetEventType={setEventType}\n onSetPublic={setIsPublic}\n onImageSelect={handleImageSelect}\n onClearImage={clearImage}\n />\n {uploadError && <p className=\"text-xs text-destructive mt-1\">{uploadError}</p>}\n {uploadSuccess && <p className=\"text-xs text-emerald-500 mt-1\">✓ {uploadSuccess}</p>}\n </form>\n </Form>\n </ClaimRouteShell>\n </WalletRequired>\n );\n}\n"],"mappings":";AAmHU,SASA,UATA,KASA,YATA;AAjHV,SAAS,WAAW,gBAAgC;AACpD,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,aAAa;AACtB,SAAS,yBAAyB,mBAAmB;AACrD,SAAS,YAAY;AACrB,SAAS,uBAAuB;A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;AAAA,cAChB;AAAA,cACC,eAAe,oBAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,cACzE,iBAAiB,qBAAC,OAAE,WAAU,iCAAgC;AAAA;AAAA,gBAAG;AAAA,iBAAc;AAAA,eAClF,GACF;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
13
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
13
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
package/dist/index.cjs CHANGED
@@ -82,6 +82,7 @@ __export(index_exports, {
82
82
  ClaimRouteShell: () => import_claim_route_shell.ClaimRouteShell,
83
83
  ClubOwnerActions: () => import_club_owner_actions.ClubOwnerActions,
84
84
  CoinAvatar: () => import_coin_row.CoinAvatar,
85
+ CoinCreate: () => import_coin_create.CoinCreate,
85
86
  CoinGuarantees: () => import_coin_guarantees.CoinGuarantees,
86
87
  CoinLaunchPreview: () => import_coin_launch_preview.CoinLaunchPreview,
87
88
  CoinRow: () => import_coin_row.CoinRow,
@@ -290,6 +291,7 @@ __export(index_exports, {
290
291
  PageBackdrop: () => import_media_header.PageBackdrop,
291
292
  PageContainer: () => import_page_container.PageContainer,
292
293
  ParentAttributionBanner: () => import_parent_attribution_banner.ParentAttributionBanner,
294
+ PopCreate: () => import_pop_create.PopCreate,
293
295
  PopMyEventsPage: () => import_pop_my_events_page.PopMyEventsPage,
294
296
  Popover: () => import_popover.Popover,
295
297
  PopoverAnchor: () => import_popover.PopoverAnchor,
@@ -735,6 +737,8 @@ var import_remix_mint = require("./components/launchpad/remix-mint.js");
735
737
  var import_ip_type_page = require("./components/ip-type-page.js");
736
738
  var import_collections_page = require("./components/collections-page.js");
737
739
  var import_sponsorship_create = require("./components/launchpad/sponsorship-create.js");
740
+ var import_pop_create = require("./components/launchpad/pop-create.js");
741
+ var import_coin_create = require("./components/launchpad/coin-create.js");
738
742
  var import_wallet_required = require("./components/wallet-required.js");
739
743
  var import_claim_route_shell = require("./components/claim-route-shell.js");
740
744
  var import_use_launchpad_image_upload = require("./utils/use-launchpad-image-upload.js");
@@ -890,6 +894,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
890
894
  ClaimRouteShell,
891
895
  ClubOwnerActions,
892
896
  CoinAvatar,
897
+ CoinCreate,
893
898
  CoinGuarantees,
894
899
  CoinLaunchPreview,
895
900
  CoinRow,
@@ -1098,6 +1103,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1098
1103
  PageBackdrop,
1099
1104
  PageContainer,
1100
1105
  ParentAttributionBanner,
1106
+ PopCreate,
1101
1107
  PopMyEventsPage,
1102
1108
  Popover,
1103
1109
  PopoverAnchor,