@medialane/ui 0.233.0 → 0.235.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/account/input-otp.d.cts +2 -2
- package/dist/components/account/input-otp.d.ts +2 -2
- package/dist/components/badge.d.cts +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/launchpad/collection-create-form.cjs +302 -0
- package/dist/components/launchpad/collection-create-form.cjs.map +1 -0
- package/dist/components/launchpad/collection-create-form.d.cts +11 -0
- package/dist/components/launchpad/collection-create-form.d.ts +11 -0
- package/dist/components/launchpad/collection-create-form.js +275 -0
- package/dist/components/launchpad/collection-create-form.js.map +1 -0
- package/dist/components/launchpad/collection-create-presets.cjs +147 -0
- package/dist/components/launchpad/collection-create-presets.cjs.map +1 -0
- package/dist/components/launchpad/collection-create-presets.d.cts +60 -0
- package/dist/components/launchpad/collection-create-presets.d.ts +60 -0
- package/dist/components/launchpad/collection-create-presets.js +120 -0
- package/dist/components/launchpad/collection-create-presets.js.map +1 -0
- package/dist/components/launchpad/tier-mint-form.cjs +425 -0
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -0
- package/dist/components/launchpad/tier-mint-form.d.cts +13 -0
- package/dist/components/launchpad/tier-mint-form.d.ts +13 -0
- package/dist/components/launchpad/tier-mint-form.js +391 -0
- package/dist/components/launchpad/tier-mint-form.js.map +1 -0
- package/dist/components/launchpad/tier-mint-presets.cjs +96 -0
- package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -0
- package/dist/components/launchpad/tier-mint-presets.d.cts +58 -0
- package/dist/components/launchpad/tier-mint-presets.d.ts +58 -0
- package/dist/components/launchpad/tier-mint-presets.js +71 -0
- package/dist/components/launchpad/tier-mint-presets.js.map +1 -0
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/run-intent-calls.cjs +9 -2
- package/dist/utils/run-intent-calls.cjs.map +1 -1
- package/dist/utils/run-intent-calls.d.cts +10 -1
- package/dist/utils/run-intent-calls.d.ts +10 -1
- package/dist/utils/run-intent-calls.js +7 -1
- package/dist/utils/run-intent-calls.js.map +1 -1
- package/package.json +3 -1
|
@@ -10,5 +10,14 @@ declare function runIntentCalls(signer: {
|
|
|
10
10
|
}, create: () => Promise<ApiIntentCreated>): Promise<{
|
|
11
11
|
txHash: string;
|
|
12
12
|
}>;
|
|
13
|
+
declare function runIntentsCalls(signer: {
|
|
14
|
+
execute(calls: Call[], opts?: {
|
|
15
|
+
intentIds?: string[];
|
|
16
|
+
}): Promise<{
|
|
17
|
+
txHash: string;
|
|
18
|
+
}>;
|
|
19
|
+
}, intents: ApiIntentCreated[]): Promise<{
|
|
20
|
+
txHash: string;
|
|
21
|
+
}>;
|
|
13
22
|
|
|
14
|
-
export { runIntentCalls };
|
|
23
|
+
export { runIntentCalls, runIntentsCalls };
|
|
@@ -2,7 +2,13 @@ async function runIntentCalls(signer, create) {
|
|
|
2
2
|
const intent = await create();
|
|
3
3
|
return signer.execute(intent.calls, { intentIds: [intent.id] });
|
|
4
4
|
}
|
|
5
|
+
async function runIntentsCalls(signer, intents) {
|
|
6
|
+
if (intents.some((i) => i.requiresSignature)) throw new Error("Expected prebuilt intents (requiresSignature=false)");
|
|
7
|
+
const prebuilt = intents;
|
|
8
|
+
return signer.execute(prebuilt.flatMap((i) => i.calls), { intentIds: prebuilt.map((i) => i.id) });
|
|
9
|
+
}
|
|
5
10
|
export {
|
|
6
|
-
runIntentCalls
|
|
11
|
+
runIntentCalls,
|
|
12
|
+
runIntentsCalls
|
|
7
13
|
};
|
|
8
14
|
//# sourceMappingURL=run-intent-calls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/run-intent-calls.ts"],"sourcesContent":["import type { Call } from \"starknet\";\nimport type { ApiIntentCreated } from \"@medialane/sdk\";\n\nexport async function runIntentCalls(\n signer: { execute(calls: Call[], opts?: { intentIds?: string[] }): Promise<{ txHash: string }> },\n create: () => Promise<ApiIntentCreated>,\n): Promise<{ txHash: string }> {\n const intent = (await create()) as { id: string; calls: Call[] };\n return signer.execute(intent.calls, { intentIds: [intent.id] });\n}\n"],"mappings":"AAGA,eAAsB,eACpB,QACA,QAC6B;AAC7B,QAAM,SAAU,MAAM,OAAO;AAC7B,SAAO,OAAO,QAAQ,OAAO,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC;AAChE;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/utils/run-intent-calls.ts"],"sourcesContent":["import type { Call } from \"starknet\";\nimport type { ApiIntentCreated } from \"@medialane/sdk\";\n\nexport async function runIntentCalls(\n signer: { execute(calls: Call[], opts?: { intentIds?: string[] }): Promise<{ txHash: string }> },\n create: () => Promise<ApiIntentCreated>,\n): Promise<{ txHash: string }> {\n const intent = (await create()) as { id: string; calls: Call[] };\n return signer.execute(intent.calls, { intentIds: [intent.id] });\n}\n\nexport async function runIntentsCalls(\n signer: { execute(calls: Call[], opts?: { intentIds?: string[] }): Promise<{ txHash: string }> },\n intents: ApiIntentCreated[],\n): Promise<{ txHash: string }> {\n if (intents.some((i) => i.requiresSignature)) throw new Error(\"Expected prebuilt intents (requiresSignature=false)\");\n const prebuilt = intents as { id: string; calls: Call[] }[];\n return signer.execute(prebuilt.flatMap((i) => i.calls), { intentIds: prebuilt.map((i) => i.id) });\n}\n"],"mappings":"AAGA,eAAsB,eACpB,QACA,QAC6B;AAC7B,QAAM,SAAU,MAAM,OAAO;AAC7B,SAAO,OAAO,QAAQ,OAAO,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC;AAChE;AAEA,eAAsB,gBACpB,QACA,SAC6B;AAC7B,MAAI,QAAQ,KAAK,CAAC,MAAM,EAAE,iBAAiB,EAAG,OAAM,IAAI,MAAM,qDAAqD;AACnH,QAAM,WAAW;AACjB,SAAO,OAAO,QAAQ,SAAS,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,EAAE,WAAW,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC;AAClG;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medialane/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.235.0",
|
|
4
4
|
"description": "Shared UI components for Medialane apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"react": ">=18.0.0",
|
|
76
76
|
"react-dom": ">=18.0.0",
|
|
77
77
|
"react-hook-form": ">=7.50.0",
|
|
78
|
+
"@hookform/resolvers": ">=3.10.0",
|
|
78
79
|
"recharts": ">=2.0.0",
|
|
79
80
|
"starknet": ">=8.0.0",
|
|
80
81
|
"swr": ">=2.0.0",
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@happy-dom/global-registrator": "^20.14.5",
|
|
87
|
+
"@hookform/resolvers": "^3.10.0",
|
|
86
88
|
"@medialane/sdk": "0.202.0",
|
|
87
89
|
"@radix-ui/react-checkbox": "^1.3.8",
|
|
88
90
|
"@radix-ui/react-collapsible": "^1.1.17",
|