@medialane/ui 0.205.0 → 0.206.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/back-button.cjs +47 -0
- package/dist/components/back-button.cjs.map +1 -0
- package/dist/components/back-button.d.cts +7 -0
- package/dist/components/back-button.d.ts +7 -0
- package/dist/components/back-button.js +23 -0
- package/dist/components/back-button.js.map +1 -0
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/collection-header.cjs +1 -1
- package/dist/components/collection-header.cjs.map +1 -1
- package/dist/components/collection-header.js +1 -1
- package/dist/components/collection-header.js.map +1 -1
- package/dist/components/drops-page.cjs +54 -0
- package/dist/components/drops-page.cjs.map +1 -0
- package/dist/components/drops-page.d.cts +5 -0
- package/dist/components/drops-page.d.ts +5 -0
- package/dist/components/drops-page.js +30 -0
- package/dist/components/drops-page.js.map +1 -0
- package/dist/components/editions-page.cjs +195 -0
- package/dist/components/editions-page.cjs.map +1 -0
- package/dist/components/editions-page.d.cts +5 -0
- package/dist/components/editions-page.d.ts +5 -0
- package/dist/components/editions-page.js +169 -0
- package/dist/components/editions-page.js.map +1 -0
- package/dist/components/launchpad-page.cjs +77 -0
- package/dist/components/launchpad-page.cjs.map +1 -0
- package/dist/components/launchpad-page.d.cts +11 -0
- package/dist/components/launchpad-page.d.ts +11 -0
- package/dist/components/launchpad-page.js +53 -0
- package/dist/components/launchpad-page.js.map +1 -0
- package/dist/components/pop-my-events-page.cjs +100 -0
- package/dist/components/pop-my-events-page.cjs.map +1 -0
- package/dist/components/pop-my-events-page.d.cts +5 -0
- package/dist/components/pop-my-events-page.d.ts +5 -0
- package/dist/components/pop-my-events-page.js +66 -0
- package/dist/components/pop-my-events-page.js.map +1 -0
- package/dist/components/remix-browse-page.cjs +154 -0
- package/dist/components/remix-browse-page.cjs.map +1 -0
- package/dist/components/remix-browse-page.d.cts +5 -0
- package/dist/components/remix-browse-page.d.ts +5 -0
- package/dist/components/remix-browse-page.js +120 -0
- package/dist/components/remix-browse-page.js.map +1 -0
- package/dist/components/service-collections-page.cjs +113 -0
- package/dist/components/service-collections-page.cjs.map +1 -0
- package/dist/components/service-collections-page.d.cts +37 -0
- package/dist/components/service-collections-page.d.ts +37 -0
- package/dist/components/service-collections-page.js +79 -0
- package/dist/components/service-collections-page.js.map +1 -0
- package/dist/components/sign-in-prompt.cjs +43 -0
- package/dist/components/sign-in-prompt.cjs.map +1 -0
- package/dist/components/sign-in-prompt.d.cts +10 -0
- package/dist/components/sign-in-prompt.d.ts +10 -0
- package/dist/components/sign-in-prompt.js +19 -0
- package/dist/components/sign-in-prompt.js.map +1 -0
- package/dist/index.cjs +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as input_otp from 'input-otp';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (newValue: string) => unknown;
|
|
7
7
|
maxLength: number;
|
|
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
14
14
|
} & {
|
|
15
15
|
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
16
16
|
children?: never;
|
|
17
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
18
18
|
value?: string;
|
|
19
19
|
onChange?: (newValue: string) => unknown;
|
|
20
20
|
maxLength: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as input_otp from 'input-otp';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (newValue: string) => unknown;
|
|
7
7
|
maxLength: number;
|
|
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
14
14
|
} & {
|
|
15
15
|
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
16
16
|
children?: never;
|
|
17
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
18
18
|
value?: string;
|
|
19
19
|
onChange?: (newValue: string) => unknown;
|
|
20
20
|
maxLength: number;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 back_button_exports = {};
|
|
21
|
+
__export(back_button_exports, {
|
|
22
|
+
BackButton: () => BackButton
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(back_button_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_lucide_react = require("lucide-react");
|
|
27
|
+
var import_router = require("./router.js");
|
|
28
|
+
function BackButton({ fallbackHref = "/launchpad" }) {
|
|
29
|
+
const router = (0, import_router.useRouter)();
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
31
|
+
"button",
|
|
32
|
+
{
|
|
33
|
+
type: "button",
|
|
34
|
+
onClick: () => window.history.length > 1 ? router.back() : router.push(fallbackHref),
|
|
35
|
+
className: "inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowLeft, { className: "h-3.5 w-3.5" }),
|
|
38
|
+
"Back"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
BackButton
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=back-button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/back-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { ArrowLeft } from \"lucide-react\";\nimport { useRouter } from \"./router.js\";\n\nexport function BackButton({ fallbackHref = \"/launchpad\" }: { fallbackHref?: string }) {\n const router = useRouter();\n return (\n <button\n type=\"button\"\n onClick={() => (window.history.length > 1 ? router.back() : router.push(fallbackHref))}\n className=\"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors\"\n >\n <ArrowLeft className=\"h-3.5 w-3.5\" />\n Back\n </button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQI;AANJ,0BAA0B;AAC1B,oBAA0B;AAEnB,SAAS,WAAW,EAAE,eAAe,aAAa,GAA8B;AACrF,QAAM,aAAS,yBAAU;AACzB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,SAAS,MAAO,OAAO,QAAQ,SAAS,IAAI,OAAO,KAAK,IAAI,OAAO,KAAK,YAAY;AAAA,MACpF,WAAU;AAAA,MAEV;AAAA,oDAAC,iCAAU,WAAU,eAAc;AAAA,QAAE;AAAA;AAAA;AAAA,EAEvC;AAEJ;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ArrowLeft } from "lucide-react";
|
|
4
|
+
import { useRouter } from "./router.js";
|
|
5
|
+
function BackButton({ fallbackHref = "/launchpad" }) {
|
|
6
|
+
const router = useRouter();
|
|
7
|
+
return /* @__PURE__ */ jsxs(
|
|
8
|
+
"button",
|
|
9
|
+
{
|
|
10
|
+
type: "button",
|
|
11
|
+
onClick: () => window.history.length > 1 ? router.back() : router.push(fallbackHref),
|
|
12
|
+
className: "inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ jsx(ArrowLeft, { className: "h-3.5 w-3.5" }),
|
|
15
|
+
"Back"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
BackButton
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=back-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/back-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { ArrowLeft } from \"lucide-react\";\nimport { useRouter } from \"./router.js\";\n\nexport function BackButton({ fallbackHref = \"/launchpad\" }: { fallbackHref?: string }) {\n const router = useRouter();\n return (\n <button\n type=\"button\"\n onClick={() => (window.history.length > 1 ? router.back() : router.push(fallbackHref))}\n className=\"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors\"\n >\n <ArrowLeft className=\"h-3.5 w-3.5\" />\n Back\n </button>\n );\n}\n"],"mappings":";AAQI,SAKE,KALF;AANJ,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAEnB,SAAS,WAAW,EAAE,eAAe,aAAa,GAA8B;AACrF,QAAM,SAAS,UAAU;AACzB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,SAAS,MAAO,OAAO,QAAQ,SAAS,IAAI,OAAO,KAAK,IAAI,OAAO,KAAK,YAAY;AAAA,MACpF,WAAU;AAAA,MAEV;AAAA,4BAAC,aAAU,WAAU,eAAc;AAAA,QAAE;AAAA;AAAA;AAAA,EAEvC;AAEJ;","names":[]}
|
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "ghost" | "link" | "default" | "destructive" | "outline" | "secondary" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
|
|
7
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
10
|
asChild?: boolean;
|
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "ghost" | "link" | "default" | "destructive" | "outline" | "secondary" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
|
|
7
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
10
|
asChild?: boolean;
|
|
@@ -47,7 +47,7 @@ function CollectionHeader({ collection, loading = false, children }) {
|
|
|
47
47
|
name,
|
|
48
48
|
description: collection.description,
|
|
49
49
|
badges: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
50
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: CHIP, children:
|
|
50
|
+
collection.standard === "ERC1155" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: CHIP, children: "Multi-edition" }) : null,
|
|
51
51
|
collection.symbol ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: CHIP, children: collection.symbol }) : null
|
|
52
52
|
] })
|
|
53
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, children }: CollectionHeaderProps) {\n const resolveImage = useImageUrl();\n const image = resolveImage(collection?.image);\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, children }: CollectionHeaderProps) {\n const resolveImage = useImageUrl();\n const image = resolveImage(collection?.image);\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n {collection.standard === \"ERC1155\" ? <span className={CHIP}>Multi-edition</span> : null}\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n />\n\n <HeaderStats>\n {collection.totalSupply != null ? <HeaderStat label=\"Items\">{collection.totalSupply.toLocaleString()}</HeaderStat> : null}\n {collection.holderCount != null ? <HeaderStat label=\"Holders\">{collection.holderCount.toLocaleString()}</HeaderStat> : null}\n <PriceStat label=\"Floor\" raw={collection.floorPrice} />\n <PriceStat label=\"Volume\" raw={collection.totalVolume} />\n </HeaderStats>\n\n {collection.owner ? <CreatorChip address={collection.owner} /> : null}\n\n {children}\n </>\n ) : null}\n </MediaHeader>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBM;AAt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AAA,IAEhE;AAAA,KACH,IACE,MACN;AAEJ;","names":[]}
|
|
@@ -24,7 +24,7 @@ function CollectionHeader({ collection, loading = false, children }) {
|
|
|
24
24
|
name,
|
|
25
25
|
description: collection.description,
|
|
26
26
|
badges: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx("span", { className: CHIP, children:
|
|
27
|
+
collection.standard === "ERC1155" ? /* @__PURE__ */ jsx("span", { className: CHIP, children: "Multi-edition" }) : null,
|
|
28
28
|
collection.symbol ? /* @__PURE__ */ jsx("span", { className: CHIP, children: collection.symbol }) : null
|
|
29
29
|
] })
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, children }: CollectionHeaderProps) {\n const resolveImage = useImageUrl();\n const image = resolveImage(collection?.image);\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, children }: CollectionHeaderProps) {\n const resolveImage = useImageUrl();\n const image = resolveImage(collection?.image);\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n {collection.standard === \"ERC1155\" ? <span className={CHIP}>Multi-edition</span> : null}\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n />\n\n <HeaderStats>\n {collection.totalSupply != null ? <HeaderStat label=\"Items\">{collection.totalSupply.toLocaleString()}</HeaderStat> : null}\n {collection.holderCount != null ? <HeaderStat label=\"Holders\">{collection.holderCount.toLocaleString()}</HeaderStat> : null}\n <PriceStat label=\"Floor\" raw={collection.floorPrice} />\n <PriceStat label=\"Volume\" raw={collection.totalVolume} />\n </HeaderStats>\n\n {collection.owner ? <CreatorChip address={collection.owner} /> : null}\n\n {children}\n </>\n ) : null}\n </MediaHeader>\n );\n}\n"],"mappings":";AAyBM,SAkBQ,UAlBR,KAkBQ,YAlBR;AAtBN,SAAS,cAAc;AAEvB,SAAS,wBAAwB;AACjC,SAAS,aAAa,aAAa,kBAAkB;AACrD,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,mBAAmB;AAE5B,MAAM,OAAO;AAQb,SAAS,UAAU,EAAE,OAAO,IAAI,GAA0C;AACxE,QAAM,EAAE,QAAQ,OAAO,IAAI,kBAAkB,GAAG;AAChD,MAAI,CAAC,UAAU,WAAW,SAAK,QAAO;AACtC,SACE,oBAAC,cAAW,OACV,8BAAC,kBAAe,QAAQ,QAAQ,QAAgB,UAAU,IAAI,GAChE;AAEJ;AAEO,SAAS,iBAAiB,EAAE,YAAY,UAAU,OAAO,SAAS,GAA0B;AACjG,QAAM,eAAe,YAAY;AACjC,QAAM,QAAQ,aAAa,YAAY,KAAK;AAC5C,QAAM,OAAO,YAAY,QAAQ;AAEjC,SACE,oBAAC,eAAY,OAAc,UAAU,MAAM,cAAc,QAAQ,SAAS,WAAW,CAAC,YACnF,uBACC,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,aAAa,WAAW;AAAA,QACxB,QACE,iCACG;AAAA,qBAAW,aAAa,YAAY,oBAAC,UAAK,WAAW,MAAM,2BAAa,IAAU;AAAA,UAClF,WAAW,SAAS,oBAAC,UAAK,WAAW,MAAO,qBAAW,QAAO,IAAU;AAAA,WAC3E;AAAA;AAAA,IAEJ;AAAA,IAEA,qBAAC,eACE;AAAA,iBAAW,eAAe,OAAO,oBAAC,cAAW,OAAM,SAAS,qBAAW,YAAY,eAAe,GAAE,IAAgB;AAAA,MACpH,WAAW,eAAe,OAAO,oBAAC,cAAW,OAAM,WAAW,qBAAW,YAAY,eAAe,GAAE,IAAgB;AAAA,MACvH,oBAAC,aAAU,OAAM,SAAQ,KAAK,WAAW,YAAY;AAAA,MACrD,oBAAC,aAAU,OAAM,UAAS,KAAK,WAAW,aAAa;AAAA,OACzD;AAAA,IAEC,WAAW,QAAQ,oBAAC,eAAY,SAAS,WAAW,OAAO,IAAK;AAAA,IAEhE;AAAA,KACH,IACE,MACN;AAEJ;","names":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 drops_page_exports = {};
|
|
21
|
+
__export(drops_page_exports, {
|
|
22
|
+
DropsPage: () => DropsPage
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(drops_page_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_lucide_react = require("lucide-react");
|
|
27
|
+
var import_service_header = require("./service-header.js");
|
|
28
|
+
var import_drop_features = require("./drop/drop-features.js");
|
|
29
|
+
var import_drop_listing = require("./drop/drop-listing.js");
|
|
30
|
+
var import_motion_primitives = require("./motion-primitives.js");
|
|
31
|
+
var import_back_button = require("./back-button.js");
|
|
32
|
+
function DropsPage() {
|
|
33
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pb-16 space-y-10", children: [
|
|
34
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "px-4 pt-10 max-w-5xl mx-auto", children: [
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_back_button.BackButton, {}),
|
|
36
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-6", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
37
|
+
import_service_header.ServiceHeader,
|
|
38
|
+
{
|
|
39
|
+
plain: true,
|
|
40
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Package, { className: "h-4 w-4 text-white" }),
|
|
41
|
+
title: "Drops",
|
|
42
|
+
subtitle: "Timed releases with a fixed supply. Browse live drops to collect, or launch your own."
|
|
43
|
+
}
|
|
44
|
+
) }) })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", { className: "px-4 max-w-5xl mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_features.DropFeatures, {}) }) }),
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", { className: "px-4 max-w-5xl mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_listing.DropListing, {}) })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
DropsPage
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=drops-page.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/drops-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { Package } from \"lucide-react\";\nimport { ServiceHeader } from \"./service-header.js\";\nimport { DropFeatures } from \"./drop/drop-features.js\";\nimport { DropListing } from \"./drop/drop-listing.js\";\nimport { FadeIn } from \"./motion-primitives.js\";\nimport { BackButton } from \"./back-button.js\";\n\nexport function DropsPage() {\n return (\n <div className=\"pb-16 space-y-10\">\n\n <section className=\"px-4 pt-10 max-w-5xl mx-auto\">\n <BackButton />\n <FadeIn>\n <div className=\"mt-6\">\n <ServiceHeader\n plain\n icon={<Package className=\"h-4 w-4 text-white\" />}\n title=\"Drops\"\n subtitle=\"Timed releases with a fixed supply. Browse live drops to collect, or launch your own.\"\n />\n </div>\n </FadeIn>\n </section>\n\n <section className=\"px-4 max-w-5xl mx-auto\">\n <FadeIn>\n <DropFeatures />\n </FadeIn>\n </section>\n\n <section className=\"px-4 max-w-5xl mx-auto\">\n <DropListing />\n </section>\n\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAaM;AAXN,0BAAwB;AACxB,4BAA8B;AAC9B,2BAA6B;AAC7B,0BAA4B;AAC5B,+BAAuB;AACvB,yBAA2B;AAEpB,SAAS,YAAY;AAC1B,SACE,6CAAC,SAAI,WAAU,oBAEb;AAAA,iDAAC,aAAQ,WAAU,gCACjB;AAAA,kDAAC,iCAAW;AAAA,MACZ,4CAAC,mCACC,sDAAC,SAAI,WAAU,QACb;AAAA,QAAC;AAAA;AAAA,UACC,OAAK;AAAA,UACL,MAAM,4CAAC,+BAAQ,WAAU,sBAAqB;AAAA,UAC9C,OAAM;AAAA,UACN,UAAS;AAAA;AAAA,MACX,GACF,GACF;AAAA,OACF;AAAA,IAEA,4CAAC,aAAQ,WAAU,0BACjB,sDAAC,mCACC,sDAAC,qCAAa,GAChB,GACF;AAAA,IAEA,4CAAC,aAAQ,WAAU,0BACjB,sDAAC,mCAAY,GACf;AAAA,KAEF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Package } from "lucide-react";
|
|
4
|
+
import { ServiceHeader } from "./service-header.js";
|
|
5
|
+
import { DropFeatures } from "./drop/drop-features.js";
|
|
6
|
+
import { DropListing } from "./drop/drop-listing.js";
|
|
7
|
+
import { FadeIn } from "./motion-primitives.js";
|
|
8
|
+
import { BackButton } from "./back-button.js";
|
|
9
|
+
function DropsPage() {
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", { className: "pb-16 space-y-10", children: [
|
|
11
|
+
/* @__PURE__ */ jsxs("section", { className: "px-4 pt-10 max-w-5xl mx-auto", children: [
|
|
12
|
+
/* @__PURE__ */ jsx(BackButton, {}),
|
|
13
|
+
/* @__PURE__ */ jsx(FadeIn, { children: /* @__PURE__ */ jsx("div", { className: "mt-6", children: /* @__PURE__ */ jsx(
|
|
14
|
+
ServiceHeader,
|
|
15
|
+
{
|
|
16
|
+
plain: true,
|
|
17
|
+
icon: /* @__PURE__ */ jsx(Package, { className: "h-4 w-4 text-white" }),
|
|
18
|
+
title: "Drops",
|
|
19
|
+
subtitle: "Timed releases with a fixed supply. Browse live drops to collect, or launch your own."
|
|
20
|
+
}
|
|
21
|
+
) }) })
|
|
22
|
+
] }),
|
|
23
|
+
/* @__PURE__ */ jsx("section", { className: "px-4 max-w-5xl mx-auto", children: /* @__PURE__ */ jsx(FadeIn, { children: /* @__PURE__ */ jsx(DropFeatures, {}) }) }),
|
|
24
|
+
/* @__PURE__ */ jsx("section", { className: "px-4 max-w-5xl mx-auto", children: /* @__PURE__ */ jsx(DropListing, {}) })
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
DropsPage
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=drops-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/drops-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { Package } from \"lucide-react\";\nimport { ServiceHeader } from \"./service-header.js\";\nimport { DropFeatures } from \"./drop/drop-features.js\";\nimport { DropListing } from \"./drop/drop-listing.js\";\nimport { FadeIn } from \"./motion-primitives.js\";\nimport { BackButton } from \"./back-button.js\";\n\nexport function DropsPage() {\n return (\n <div className=\"pb-16 space-y-10\">\n\n <section className=\"px-4 pt-10 max-w-5xl mx-auto\">\n <BackButton />\n <FadeIn>\n <div className=\"mt-6\">\n <ServiceHeader\n plain\n icon={<Package className=\"h-4 w-4 text-white\" />}\n title=\"Drops\"\n subtitle=\"Timed releases with a fixed supply. Browse live drops to collect, or launch your own.\"\n />\n </div>\n </FadeIn>\n </section>\n\n <section className=\"px-4 max-w-5xl mx-auto\">\n <FadeIn>\n <DropFeatures />\n </FadeIn>\n </section>\n\n <section className=\"px-4 max-w-5xl mx-auto\">\n <DropListing />\n </section>\n\n </div>\n );\n}\n"],"mappings":";AAaM,SACE,KADF;AAXN,SAAS,eAAe;AACxB,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAEpB,SAAS,YAAY;AAC1B,SACE,qBAAC,SAAI,WAAU,oBAEb;AAAA,yBAAC,aAAQ,WAAU,gCACjB;AAAA,0BAAC,cAAW;AAAA,MACZ,oBAAC,UACC,8BAAC,SAAI,WAAU,QACb;AAAA,QAAC;AAAA;AAAA,UACC,OAAK;AAAA,UACL,MAAM,oBAAC,WAAQ,WAAU,sBAAqB;AAAA,UAC9C,OAAM;AAAA,UACN,UAAS;AAAA;AAAA,MACX,GACF,GACF;AAAA,OACF;AAAA,IAEA,oBAAC,aAAQ,WAAU,0BACjB,8BAAC,UACC,8BAAC,gBAAa,GAChB,GACF;AAAA,IAEA,oBAAC,aAAQ,WAAU,0BACjB,8BAAC,eAAY,GACf;AAAA,KAEF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var editions_page_exports = {};
|
|
31
|
+
__export(editions_page_exports, {
|
|
32
|
+
EditionsPage: () => EditionsPage
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(editions_page_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var import_react = require("react");
|
|
37
|
+
var import_sdk = require("@medialane/sdk");
|
|
38
|
+
var import_link = __toESM(require("./link.js"), 1);
|
|
39
|
+
var import_image = __toESM(require("./image.js"), 1);
|
|
40
|
+
var import_service_header = require("./service-header.js");
|
|
41
|
+
var import_motion_primitives = require("./motion-primitives.js");
|
|
42
|
+
var import_skeleton = require("./skeleton.js");
|
|
43
|
+
var import_button = require("./button.js");
|
|
44
|
+
var import_back_button = require("./back-button.js");
|
|
45
|
+
var import_sign_in_prompt = require("./sign-in-prompt.js");
|
|
46
|
+
var import_medialane_app = require("./medialane-app.js");
|
|
47
|
+
var import_use_collections = require("../utils/use-collections.js");
|
|
48
|
+
var import_use_image_url = require("../utils/use-image-url.js");
|
|
49
|
+
var import_lucide_react = require("lucide-react");
|
|
50
|
+
function CollectionRow({ col }) {
|
|
51
|
+
const [imgError, setImgError] = (0, import_react.useState)(false);
|
|
52
|
+
const imageUrl = (0, import_use_image_url.useImageUrl)()(col.image, { width: 128 });
|
|
53
|
+
const showImage = imageUrl && !imgError;
|
|
54
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "group bento-cell overflow-hidden flex flex-col sm:flex-row items-stretch", children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative w-full sm:w-32 aspect-square shrink-0 overflow-hidden bg-muted sm:self-start sm:m-5 sm:mr-0 sm:rounded-xl", children: showImage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
56
|
+
import_image.default,
|
|
57
|
+
{
|
|
58
|
+
src: imageUrl,
|
|
59
|
+
alt: col.name ?? "",
|
|
60
|
+
fill: true,
|
|
61
|
+
className: "object-cover",
|
|
62
|
+
onError: () => setImgError(true),
|
|
63
|
+
unoptimized: true
|
|
64
|
+
}
|
|
65
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-muted flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Layers, { className: "h-8 w-8 text-muted-foreground/30" }) }) }),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col justify-between gap-4 p-5 flex-1 min-w-0", children: [
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0", children: [
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-bold text-base leading-tight truncate", children: col.name ?? "Unnamed Collection" }),
|
|
71
|
+
col.symbol && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs tabular-nums text-muted-foreground mt-0.5", children: col.symbol })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
|
+
import_link.default,
|
|
75
|
+
{
|
|
76
|
+
href: (0, import_sdk.collectionHref)("STARKNET", col.contractAddress),
|
|
77
|
+
className: "shrink-0 text-muted-foreground/50 hover:text-muted-foreground transition-colors",
|
|
78
|
+
title: "View collection page",
|
|
79
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ExternalLink, { className: "h-3.5 w-3.5" })
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }),
|
|
83
|
+
col.description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground leading-relaxed line-clamp-2", children: col.description }),
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-3 pt-1", children: [
|
|
85
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
86
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Package, { className: "h-3 w-3" }),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: col.totalSupply != null ? `${col.totalSupply.toLocaleString()} token${col.totalSupply !== 1 ? "s" : ""}` : "No tokens yet" })
|
|
88
|
+
] }),
|
|
89
|
+
col.holderCount != null && col.holderCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "text-xs text-muted-foreground", children: [
|
|
90
|
+
col.holderCount.toLocaleString(),
|
|
91
|
+
" holder",
|
|
92
|
+
col.holderCount !== 1 ? "s" : ""
|
|
93
|
+
] })
|
|
94
|
+
] })
|
|
95
|
+
] }),
|
|
96
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
97
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
98
|
+
import_link.default,
|
|
99
|
+
{
|
|
100
|
+
href: `/launchpad/nfteditions/${col.contractAddress}/mint`,
|
|
101
|
+
className: "flex items-center gap-2 h-9 px-4 rounded-xl text-sm font-semibold text-white bg-brand-purple hover:brightness-110 transition-colors",
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Sparkles, { className: "h-3.5 w-3.5" }),
|
|
104
|
+
"Mint editions"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "outline", size: "sm", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: (0, import_sdk.collectionHref)("STARKNET", col.contractAddress), children: "View collection" }) })
|
|
109
|
+
] })
|
|
110
|
+
] })
|
|
111
|
+
] });
|
|
112
|
+
}
|
|
113
|
+
function CollectionRowSkeleton() {
|
|
114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "bento-cell overflow-hidden flex flex-col sm:flex-row", children: [
|
|
115
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "w-full sm:w-32 aspect-square shrink-0 rounded-none sm:self-start sm:m-5 sm:mr-0 sm:rounded-xl" }),
|
|
116
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-3 p-5 flex-1", children: [
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-5 w-48" }),
|
|
118
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3 w-24" }),
|
|
119
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3 w-64" }),
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex gap-2 mt-auto", children: [
|
|
121
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-9 w-32 rounded-xl" }),
|
|
122
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-9 w-28 rounded-xl" })
|
|
123
|
+
] })
|
|
124
|
+
] })
|
|
125
|
+
] });
|
|
126
|
+
}
|
|
127
|
+
function EditionsPage() {
|
|
128
|
+
const { walletAddress, walletLoading } = (0, import_medialane_app.useMedialaneApp)();
|
|
129
|
+
const { collections, isLoading } = (0, import_use_collections.useCollectionsByOwner)(walletAddress);
|
|
130
|
+
const erc1155 = (0, import_react.useMemo)(
|
|
131
|
+
() => collections.filter((c) => c.standard === "ERC1155"),
|
|
132
|
+
[collections]
|
|
133
|
+
);
|
|
134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pb-16", children: [
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "px-4 pt-10 max-w-5xl mx-auto", children: [
|
|
136
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_back_button.BackButton, {}),
|
|
137
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-6", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
138
|
+
import_service_header.ServiceHeader,
|
|
139
|
+
{
|
|
140
|
+
plain: true,
|
|
141
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Layers, { className: "h-4 w-4 text-white" }),
|
|
142
|
+
title: "Limited Editions",
|
|
143
|
+
subtitle: "Pick one of your editions collections and mint new pieces into it."
|
|
144
|
+
}
|
|
145
|
+
) }) }),
|
|
146
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.08, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-6 flex items-center gap-3", children: [
|
|
147
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
148
|
+
import_link.default,
|
|
149
|
+
{
|
|
150
|
+
href: "/launchpad/nfteditions/create",
|
|
151
|
+
className: "flex items-center gap-2 h-10 px-5 rounded-xl text-sm font-semibold text-white bg-brand-purple hover:brightness-110 transition-colors",
|
|
152
|
+
children: [
|
|
153
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-4 w-4" }),
|
|
154
|
+
"New collection"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "outline", size: "sm", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", { href: "https://docs.medialane.io/learn/ip-collection-1155", target: "_blank", rel: "noopener noreferrer", children: [
|
|
159
|
+
"Learn more ",
|
|
160
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3.5 w-3.5 ml-1" })
|
|
161
|
+
] }) })
|
|
162
|
+
] }) })
|
|
163
|
+
] }),
|
|
164
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", { className: "px-4 pt-8 space-y-5 max-w-5xl mx-auto", children: !walletAddress && !walletLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sign_in_prompt.SignInPrompt, { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Layers, { className: "h-10 w-10 text-muted-foreground/30" }), title: "Sign in to see your collections" }) : isLoading || walletLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "space-y-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionRowSkeleton, {}, i)) }) : erc1155.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "bento-cell p-10 flex flex-col items-center gap-4 text-center", children: [
|
|
165
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Inbox, { className: "h-10 w-10 text-muted-foreground/30" }),
|
|
166
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
167
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-semibold", children: "No editions collections yet" }),
|
|
168
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground mt-1 max-w-xs", children: "Create your first editions collection to start minting." })
|
|
169
|
+
] }),
|
|
170
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
171
|
+
import_link.default,
|
|
172
|
+
{
|
|
173
|
+
href: "/launchpad/nfteditions/create",
|
|
174
|
+
className: "flex items-center gap-2 h-9 px-4 rounded-xl text-sm font-semibold text-white bg-brand-purple hover:brightness-110 transition-colors",
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-4 w-4" }),
|
|
177
|
+
"Create your first collection"
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
182
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-sm font-medium text-muted-foreground", children: [
|
|
183
|
+
erc1155.length,
|
|
184
|
+
" collection",
|
|
185
|
+
erc1155.length !== 1 ? "s" : ""
|
|
186
|
+
] }) }),
|
|
187
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.Stagger, { className: "space-y-3", children: erc1155.map((col) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.StaggerItem, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionRow, { col }) }, col.contractAddress)) })
|
|
188
|
+
] }) })
|
|
189
|
+
] });
|
|
190
|
+
}
|
|
191
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
192
|
+
0 && (module.exports = {
|
|
193
|
+
EditionsPage
|
|
194
|
+
});
|
|
195
|
+
//# sourceMappingURL=editions-page.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/editions-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, useMemo } from \"react\";\nimport { collectionHref } from \"@medialane/sdk\";\nimport Link from \"./link.js\";\nimport Image from \"./image.js\";\nimport { ServiceHeader } from \"./service-header.js\";\nimport { FadeIn, Stagger, StaggerItem } from \"./motion-primitives.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { Button } from \"./button.js\";\nimport { BackButton } from \"./back-button.js\";\nimport { SignInPrompt } from \"./sign-in-prompt.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useCollectionsByOwner } from \"../utils/use-collections.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\nimport {\n Layers, Sparkles, Plus, ArrowRight, Package,\n ExternalLink, Inbox,\n} from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\n\nfunction CollectionRow({ col }: { col: ApiCollection }) {\n const [imgError, setImgError] = useState(false);\n const imageUrl = useImageUrl()(col.image, { width: 128 });\n const showImage = imageUrl && !imgError;\n\n return (\n <div className=\"group bento-cell overflow-hidden flex flex-col sm:flex-row items-stretch\">\n\n <div className=\"relative w-full sm:w-32 aspect-square shrink-0 overflow-hidden bg-muted sm:self-start sm:m-5 sm:mr-0 sm:rounded-xl\">\n {showImage ? (\n <Image\n src={imageUrl}\n alt={col.name ?? \"\"}\n fill\n className=\"object-cover\"\n onError={() => setImgError(true)}\n unoptimized\n />\n ) : (\n <div className=\"absolute inset-0 bg-muted flex items-center justify-center\">\n <Layers className=\"h-8 w-8 text-muted-foreground/30\" />\n </div>\n )}\n </div>\n\n <div className=\"flex flex-col justify-between gap-4 p-5 flex-1 min-w-0\">\n <div className=\"space-y-1\">\n <div className=\"flex items-start justify-between gap-2\">\n <div className=\"min-w-0\">\n <p className=\"font-bold text-base leading-tight truncate\">\n {col.name ?? \"Unnamed Collection\"}\n </p>\n {col.symbol && (\n <p className=\"text-xs tabular-nums text-muted-foreground mt-0.5\">{col.symbol}</p>\n )}\n </div>\n <Link\n href={collectionHref(\"STARKNET\", col.contractAddress)}\n className=\"shrink-0 text-muted-foreground/50 hover:text-muted-foreground transition-colors\"\n title=\"View collection page\"\n >\n <ExternalLink className=\"h-3.5 w-3.5\" />\n </Link>\n </div>\n\n {col.description && (\n <p className=\"text-xs text-muted-foreground leading-relaxed line-clamp-2\">\n {col.description}\n </p>\n )}\n\n <div className=\"flex items-center gap-3 pt-1\">\n <div className=\"flex items-center gap-1.5 text-xs text-muted-foreground\">\n <Package className=\"h-3 w-3\" />\n <span>\n {col.totalSupply != null\n ? `${col.totalSupply.toLocaleString()} token${col.totalSupply !== 1 ? \"s\" : \"\"}`\n : \"No tokens yet\"}\n </span>\n </div>\n {col.holderCount != null && col.holderCount > 0 && (\n <div className=\"text-xs text-muted-foreground\">\n {col.holderCount.toLocaleString()} holder{col.holderCount !== 1 ? \"s\" : \"\"}\n </div>\n )}\n </div>\n </div>\n\n <div className=\"flex items-center gap-2\">\n <Link\n href={`/launchpad/nfteditions/${col.contractAddress}/mint`}\n className=\"flex items-center gap-2 h-9 px-4 rounded-xl text-sm font-semibold text-white bg-brand-purple hover:brightness-110 transition-colors\"\n >\n <Sparkles className=\"h-3.5 w-3.5\" />\n Mint editions\n </Link>\n <Button variant=\"outline\" size=\"sm\" asChild>\n <Link href={collectionHref(\"STARKNET\", col.contractAddress)}>\n View collection\n </Link>\n </Button>\n </div>\n </div>\n </div>\n );\n}\n\nfunction CollectionRowSkeleton() {\n return (\n <div className=\"bento-cell overflow-hidden flex flex-col sm:flex-row\">\n <Skeleton className=\"w-full sm:w-32 aspect-square shrink-0 rounded-none sm:self-start sm:m-5 sm:mr-0 sm:rounded-xl\" />\n <div className=\"flex flex-col gap-3 p-5 flex-1\">\n <Skeleton className=\"h-5 w-48\" />\n <Skeleton className=\"h-3 w-24\" />\n <Skeleton className=\"h-3 w-64\" />\n <div className=\"flex gap-2 mt-auto\">\n <Skeleton className=\"h-9 w-32 rounded-xl\" />\n <Skeleton className=\"h-9 w-28 rounded-xl\" />\n </div>\n </div>\n </div>\n );\n}\n\nexport function EditionsPage() {\n const { walletAddress, walletLoading } = useMedialaneApp();\n const { collections, isLoading } = useCollectionsByOwner(walletAddress);\n\n const erc1155 = useMemo(\n () => collections.filter((c) => c.standard === \"ERC1155\"),\n [collections]\n );\n\n return (\n <div className=\"pb-16\">\n\n <section className=\"px-4 pt-10 max-w-5xl mx-auto\">\n <BackButton />\n <FadeIn>\n <div className=\"mt-6\">\n <ServiceHeader\n plain\n icon={<Layers className=\"h-4 w-4 text-white\" />}\n title=\"Limited Editions\"\n subtitle=\"Pick one of your editions collections and mint new pieces into it.\"\n />\n </div>\n </FadeIn>\n <FadeIn delay={0.08}>\n <div className=\"mt-6 flex items-center gap-3\">\n <Link\n href=\"/launchpad/nfteditions/create\"\n className=\"flex items-center gap-2 h-10 px-5 rounded-xl text-sm font-semibold text-white bg-brand-purple hover:brightness-110 transition-colors\"\n >\n <Plus className=\"h-4 w-4\" />\n New collection\n </Link>\n <Button variant=\"outline\" size=\"sm\" asChild>\n <a href=\"https://docs.medialane.io/learn/ip-collection-1155\" target=\"_blank\" rel=\"noopener noreferrer\">\n Learn more <ArrowRight className=\"h-3.5 w-3.5 ml-1\" />\n </a>\n </Button>\n </div>\n </FadeIn>\n </section>\n\n <section className=\"px-4 pt-8 space-y-5 max-w-5xl mx-auto\">\n {!walletAddress && !walletLoading ? (\n <SignInPrompt icon={<Layers className=\"h-10 w-10 text-muted-foreground/30\" />} title=\"Sign in to see your collections\" />\n ) : isLoading || walletLoading ? (\n <div className=\"space-y-3\">\n {Array.from({ length: 3 }).map((_, i) => (\n <CollectionRowSkeleton key={i} />\n ))}\n </div>\n ) : erc1155.length === 0 ? (\n <FadeIn>\n <div className=\"bento-cell p-10 flex flex-col items-center gap-4 text-center\">\n <Inbox className=\"h-10 w-10 text-muted-foreground/30\" />\n <div>\n <p className=\"font-semibold\">No editions collections yet</p>\n <p className=\"text-sm text-muted-foreground mt-1 max-w-xs\">\n Create your first editions collection to start minting.\n </p>\n </div>\n <Link\n href=\"/launchpad/nfteditions/create\"\n className=\"flex items-center gap-2 h-9 px-4 rounded-xl text-sm font-semibold text-white bg-brand-purple hover:brightness-110 transition-colors\"\n >\n <Plus className=\"h-4 w-4\" />\n Create your first collection\n </Link>\n </div>\n </FadeIn>\n ) : (\n <>\n <div className=\"flex items-center justify-between\">\n <p className=\"text-sm font-medium text-muted-foreground\">\n {erc1155.length} collection{erc1155.length !== 1 ? \"s\" : \"\"}\n </p>\n </div>\n <Stagger className=\"space-y-3\">\n {erc1155.map((col) => (\n <StaggerItem key={col.contractAddress}>\n <CollectionRow col={col} />\n </StaggerItem>\n ))}\n </Stagger>\n </>\n )}\n </section>\n\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BU;AA7BV,mBAAkC;AAClC,iBAA+B;AAC/B,kBAAiB;AACjB,mBAAkB;AAClB,4BAA8B;AAC9B,+BAA6C;AAC7C,sBAAyB;AACzB,oBAAuB;AACvB,yBAA2B;AAC3B,4BAA6B;AAC7B,2BAAgC;AAChC,6BAAsC;AACtC,2BAA4B;AAC5B,0BAGO;AAGP,SAAS,cAAc,EAAE,IAAI,GAA2B;AACtD,QAAM,CAAC,UAAU,WAAW,QAAI,uBAAS,KAAK;AAC9C,QAAM,eAAW,kCAAY,EAAE,IAAI,OAAO,EAAE,OAAO,IAAI,CAAC;AACxD,QAAM,YAAY,YAAY,CAAC;AAE/B,SACE,6CAAC,SAAI,WAAU,4EAEb;AAAA,gDAAC,SAAI,WAAU,sHACZ,sBACC;AAAA,MAAC,aAAAA;AAAA,MAAA;AAAA,QACC,KAAK;AAAA,QACL,KAAK,IAAI,QAAQ;AAAA,QACjB,MAAI;AAAA,QACJ,WAAU;AAAA,QACV,SAAS,MAAM,YAAY,IAAI;AAAA,QAC/B,aAAW;AAAA;AAAA,IACb,IAEA,4CAAC,SAAI,WAAU,8DACb,sDAAC,8BAAO,WAAU,oCAAmC,GACvD,GAEJ;AAAA,IAEA,6CAAC,SAAI,WAAU,0DACb;AAAA,mDAAC,SAAI,WAAU,aACb;AAAA,qDAAC,SAAI,WAAU,0CACb;AAAA,u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