@medialane/ui 0.241.0 → 0.242.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/button.d.cts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/collections-page.cjs +289 -0
- package/dist/components/collections-page.cjs.map +1 -0
- package/dist/components/collections-page.d.cts +5 -0
- package/dist/components/collections-page.d.ts +5 -0
- package/dist/components/collections-page.js +265 -0
- package/dist/components/collections-page.js.map +1 -0
- 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/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useEffect, useRef } from "react";
|
|
4
|
+
import { Layers, BadgeCheck, Eye, SlidersHorizontal, Award, Sparkles, Package } from "lucide-react";
|
|
5
|
+
import { Button } from "./button.js";
|
|
6
|
+
import { Dialog, DialogContent, DialogTitle } from "./dialog.js";
|
|
7
|
+
import { HelpIcon } from "./help-icon.js";
|
|
8
|
+
import { PageContainer } from "./page-container.js";
|
|
9
|
+
import { CollectionCard, CollectionCardSkeleton } from "./collection-card.js";
|
|
10
|
+
import { LoadMoreSentinel } from "./load-more-sentinel.js";
|
|
11
|
+
import { cn } from "../utils/cn.js";
|
|
12
|
+
import { useCollections } from "../utils/use-collections.js";
|
|
13
|
+
import { usePlatformStats } from "../utils/use-platform-stats.js";
|
|
14
|
+
const PAGE_SIZE = 18;
|
|
15
|
+
const SORT_OPTIONS = [
|
|
16
|
+
{ label: "Recent", value: "recent" },
|
|
17
|
+
{ label: "Most assets", value: "supply" },
|
|
18
|
+
{ label: "Top volume", value: "volume" },
|
|
19
|
+
{ label: "Floor \u2191", value: "floor" },
|
|
20
|
+
{ label: "A \u2192 Z", value: "name" }
|
|
21
|
+
];
|
|
22
|
+
const SERVICE_TABS = [
|
|
23
|
+
{ label: "All", value: void 0 },
|
|
24
|
+
{ label: "POP Events", value: "pop-protocol" },
|
|
25
|
+
{ label: "Drops", value: "drop-collection" }
|
|
26
|
+
];
|
|
27
|
+
function CollectionsPage() {
|
|
28
|
+
const { stats } = usePlatformStats();
|
|
29
|
+
const [sort, setSort] = useState("recent");
|
|
30
|
+
const [featured, setFeatured] = useState(false);
|
|
31
|
+
const [hideEmpty, setHideEmpty] = useState(true);
|
|
32
|
+
const [exclusive, setExclusive] = useState(false);
|
|
33
|
+
const [service, setService] = useState(void 0);
|
|
34
|
+
const [filtersOpen, setFiltersOpen] = useState(false);
|
|
35
|
+
const [page, setPage] = useState(1);
|
|
36
|
+
const [allCollections, setAllCollections] = useState([]);
|
|
37
|
+
const { collections, meta, isLoading } = useCollections(
|
|
38
|
+
page,
|
|
39
|
+
PAGE_SIZE,
|
|
40
|
+
featured ? true : void 0,
|
|
41
|
+
sort,
|
|
42
|
+
service === "pop-protocol" || service === "drop-collection" ? false : hideEmpty,
|
|
43
|
+
service,
|
|
44
|
+
"ERC721,ERC1155"
|
|
45
|
+
);
|
|
46
|
+
const prevFilters = useRef({ sort, featured, hideEmpty, service });
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
const f = prevFilters.current;
|
|
49
|
+
if (f.sort !== sort || f.featured !== featured || f.hideEmpty !== hideEmpty || f.service !== service) {
|
|
50
|
+
prevFilters.current = { sort, featured, hideEmpty, service };
|
|
51
|
+
setPage(1);
|
|
52
|
+
setAllCollections([]);
|
|
53
|
+
}
|
|
54
|
+
}, [sort, featured, hideEmpty, service]);
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
if (isLoading || collections.length === 0) return;
|
|
57
|
+
setAllCollections((prev) => {
|
|
58
|
+
const ids = new Set(prev.map((c) => c.contractAddress));
|
|
59
|
+
const next = collections.filter((c) => !ids.has(c.contractAddress));
|
|
60
|
+
return page === 1 ? collections : [...prev, ...next];
|
|
61
|
+
});
|
|
62
|
+
}, [collections, isLoading, page]);
|
|
63
|
+
const hasMore = meta?.total != null ? allCollections.length < meta.total : false;
|
|
64
|
+
const isInitialLoading = isLoading && allCollections.length === 0;
|
|
65
|
+
const activeFilters = [sort !== "recent", featured, !hideEmpty, exclusive].filter(Boolean).length;
|
|
66
|
+
const displayCollections = exclusive ? allCollections.filter((c) => !!c.profile?.hasGatedContent) : allCollections;
|
|
67
|
+
const resetAll = () => {
|
|
68
|
+
setSort("recent");
|
|
69
|
+
setFeatured(false);
|
|
70
|
+
setHideEmpty(true);
|
|
71
|
+
setExclusive(false);
|
|
72
|
+
};
|
|
73
|
+
const handleServiceChange = (val) => {
|
|
74
|
+
setService(val);
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ jsxs(PageContainer, { className: "box-border max-w-full pt-14 pb-8 space-y-8", children: [
|
|
77
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 pt-8", children: [
|
|
78
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold", children: "Onchain Collections" }),
|
|
79
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2 mt-1", children: [
|
|
80
|
+
meta?.total != null && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 rounded-full border border-border bg-card px-3.5 py-1.5 text-sm", children: [
|
|
81
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold tabular-nums", children: (meta.total ?? 0).toLocaleString() }),
|
|
82
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Collections" })
|
|
83
|
+
] }),
|
|
84
|
+
stats?.tokens != null && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 rounded-full border border-border bg-card px-3.5 py-1.5 text-sm", children: [
|
|
85
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold tabular-nums", children: stats.tokens.toLocaleString() }),
|
|
86
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Assets" })
|
|
87
|
+
] }),
|
|
88
|
+
stats?.sales != null && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 rounded-full border border-border bg-card px-3.5 py-1.5 text-sm", children: [
|
|
89
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold tabular-nums", children: stats.sales.toLocaleString() }),
|
|
90
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Sales" })
|
|
91
|
+
] })
|
|
92
|
+
] })
|
|
93
|
+
] }),
|
|
94
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 pb-3 border-b border-border/60 flex-wrap", children: [
|
|
95
|
+
/* @__PURE__ */ jsxs(
|
|
96
|
+
"button",
|
|
97
|
+
{
|
|
98
|
+
onClick: () => setFiltersOpen(true),
|
|
99
|
+
className: cn(
|
|
100
|
+
"relative flex items-center gap-1.5 h-9 px-3 rounded-lg border text-xs font-medium transition-colors",
|
|
101
|
+
activeFilters > 0 || service !== void 0 ? "border-primary bg-primary/10 text-primary" : "border-border text-muted-foreground hover:border-primary/50 hover:text-foreground"
|
|
102
|
+
),
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ jsx(SlidersHorizontal, { className: "h-3.5 w-3.5" }),
|
|
105
|
+
"Filters",
|
|
106
|
+
(activeFilters > 0 || service !== void 0) && /* @__PURE__ */ jsx("span", { className: "flex h-4 w-4 items-center justify-center rounded-full bg-primary text-2xs font-bold text-primary-foreground", children: activeFilters + (service !== void 0 ? 1 : 0) })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
service !== void 0 && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary", children: [
|
|
111
|
+
service === "drop-collection" ? /* @__PURE__ */ jsx(Package, { className: "h-3 w-3" }) : /* @__PURE__ */ jsx(Award, { className: "h-3 w-3" }),
|
|
112
|
+
SERVICE_TABS.find((t) => t.value === service)?.label,
|
|
113
|
+
/* @__PURE__ */ jsx("button", { onClick: () => setService(void 0), className: "ml-0.5 hover:text-primary/60", children: "\xD7" })
|
|
114
|
+
] }),
|
|
115
|
+
sort !== "recent" && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary", children: [
|
|
116
|
+
SORT_OPTIONS.find((o) => o.value === sort)?.label,
|
|
117
|
+
/* @__PURE__ */ jsx("button", { onClick: () => setSort("recent"), className: "ml-0.5 hover:text-primary/60", children: "\xD7" })
|
|
118
|
+
] }),
|
|
119
|
+
featured && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary", children: [
|
|
120
|
+
/* @__PURE__ */ jsx(BadgeCheck, { className: "h-3 w-3" }),
|
|
121
|
+
"Featured",
|
|
122
|
+
/* @__PURE__ */ jsx("button", { onClick: () => setFeatured(false), className: "ml-0.5 hover:text-primary/60", children: "\xD7" })
|
|
123
|
+
] }),
|
|
124
|
+
!hideEmpty && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary", children: [
|
|
125
|
+
"Show empty",
|
|
126
|
+
/* @__PURE__ */ jsx("button", { onClick: () => setHideEmpty(true), className: "ml-0.5 hover:text-primary/60", children: "\xD7" })
|
|
127
|
+
] }),
|
|
128
|
+
exclusive && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary", children: [
|
|
129
|
+
/* @__PURE__ */ jsx(Sparkles, { className: "h-3 w-3" }),
|
|
130
|
+
"Exclusive",
|
|
131
|
+
/* @__PURE__ */ jsx("button", { onClick: () => setExclusive(false), className: "ml-0.5 hover:text-primary/60", children: "\xD7" })
|
|
132
|
+
] })
|
|
133
|
+
] }),
|
|
134
|
+
/* @__PURE__ */ jsx(Dialog, { open: filtersOpen, onOpenChange: setFiltersOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: "w-full max-w-sm sm:max-w-md p-0 overflow-hidden gap-0 flex flex-col max-h-[85svh]", children: [
|
|
135
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-5 py-4 border-b border-border/60 pr-12", children: [
|
|
136
|
+
/* @__PURE__ */ jsxs(DialogTitle, { className: "text-base font-bold flex items-center gap-2", children: [
|
|
137
|
+
/* @__PURE__ */ jsx(SlidersHorizontal, { className: "h-4 w-4 text-primary" }),
|
|
138
|
+
"Filters"
|
|
139
|
+
] }),
|
|
140
|
+
(activeFilters > 0 || service !== void 0) && /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", className: "h-7 text-xs text-muted-foreground", onClick: () => {
|
|
141
|
+
resetAll();
|
|
142
|
+
setService(void 0);
|
|
143
|
+
}, children: "Clear all" })
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 overflow-y-auto px-5 py-4 space-y-5", children: [
|
|
146
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
147
|
+
/* @__PURE__ */ jsx("p", { className: "text-2xs font-semibold text-muted-foreground", children: "Source" }),
|
|
148
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1.5", children: SERVICE_TABS.map(({ label, value }) => /* @__PURE__ */ jsxs(
|
|
149
|
+
"button",
|
|
150
|
+
{
|
|
151
|
+
onClick: () => handleServiceChange(value),
|
|
152
|
+
className: cn(
|
|
153
|
+
"flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-full border transition-colors whitespace-nowrap",
|
|
154
|
+
service === value ? "border-primary bg-primary/10 text-primary font-medium" : "border-border text-muted-foreground hover:border-primary/50"
|
|
155
|
+
),
|
|
156
|
+
children: [
|
|
157
|
+
value === "pop-protocol" && /* @__PURE__ */ jsx(Award, { className: "h-3 w-3" }),
|
|
158
|
+
value === "drop-collection" && /* @__PURE__ */ jsx(Package, { className: "h-3 w-3" }),
|
|
159
|
+
label
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
label
|
|
163
|
+
)) })
|
|
164
|
+
] }),
|
|
165
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
166
|
+
/* @__PURE__ */ jsx("p", { className: "text-2xs font-semibold text-muted-foreground", children: "Sort" }),
|
|
167
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1.5", children: SORT_OPTIONS.map((opt) => /* @__PURE__ */ jsx(
|
|
168
|
+
"button",
|
|
169
|
+
{
|
|
170
|
+
onClick: () => setSort(opt.value),
|
|
171
|
+
className: cn(
|
|
172
|
+
"text-xs px-3 py-1.5 rounded-full border transition-colors whitespace-nowrap",
|
|
173
|
+
sort === opt.value ? "border-primary bg-primary/10 text-primary font-medium" : "border-border text-muted-foreground hover:border-primary/50"
|
|
174
|
+
),
|
|
175
|
+
children: opt.label
|
|
176
|
+
},
|
|
177
|
+
opt.value
|
|
178
|
+
)) })
|
|
179
|
+
] }),
|
|
180
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
181
|
+
/* @__PURE__ */ jsx("p", { className: "text-2xs font-semibold text-muted-foreground", children: "Show" }),
|
|
182
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
183
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
184
|
+
/* @__PURE__ */ jsxs(
|
|
185
|
+
"button",
|
|
186
|
+
{
|
|
187
|
+
onClick: () => setFeatured((v) => !v),
|
|
188
|
+
className: cn(
|
|
189
|
+
"flex flex-1 items-center gap-2 text-sm px-3 py-2 rounded-lg border transition-colors text-left",
|
|
190
|
+
featured ? "border-primary bg-primary/10 text-primary" : "border-border text-muted-foreground hover:border-primary/50"
|
|
191
|
+
),
|
|
192
|
+
children: [
|
|
193
|
+
/* @__PURE__ */ jsx(BadgeCheck, { className: "h-4 w-4 shrink-0" }),
|
|
194
|
+
"Featured only"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ jsx(HelpIcon, { content: "Show only collections featured by Medialane", side: "left" })
|
|
199
|
+
] }),
|
|
200
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
201
|
+
/* @__PURE__ */ jsxs(
|
|
202
|
+
"button",
|
|
203
|
+
{
|
|
204
|
+
onClick: () => setHideEmpty((v) => !v),
|
|
205
|
+
className: cn(
|
|
206
|
+
"flex flex-1 items-center gap-2 text-sm px-3 py-2 rounded-lg border transition-colors text-left",
|
|
207
|
+
!hideEmpty ? "border-primary bg-primary/10 text-primary" : "border-border text-muted-foreground hover:border-primary/50"
|
|
208
|
+
),
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ jsx(Eye, { className: "h-4 w-4 shrink-0" }),
|
|
211
|
+
"Show empty collections"
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ jsx(HelpIcon, { content: "Include collections with no minted assets yet \u2014 hidden by default to keep the feed clean", side: "left" })
|
|
216
|
+
] }),
|
|
217
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
218
|
+
/* @__PURE__ */ jsxs(
|
|
219
|
+
"button",
|
|
220
|
+
{
|
|
221
|
+
onClick: () => setExclusive((v) => !v),
|
|
222
|
+
className: cn(
|
|
223
|
+
"flex flex-1 items-center gap-2 text-sm px-3 py-2 rounded-lg border transition-colors text-left",
|
|
224
|
+
exclusive ? "border-primary bg-primary/10 text-primary" : "border-border text-muted-foreground hover:border-primary/50"
|
|
225
|
+
),
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ jsx(Sparkles, { className: "h-4 w-4 shrink-0" }),
|
|
228
|
+
"Exclusive content only"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
/* @__PURE__ */ jsx(HelpIcon, { content: "Show only collections with holder-exclusive content", side: "left" })
|
|
233
|
+
] })
|
|
234
|
+
] })
|
|
235
|
+
] })
|
|
236
|
+
] }),
|
|
237
|
+
/* @__PURE__ */ jsx("div", { className: "px-5 py-3 border-t border-border/60", children: /* @__PURE__ */ jsx(Button, { className: "w-full", onClick: () => setFiltersOpen(false), children: "Apply filters" }) })
|
|
238
|
+
] }) }),
|
|
239
|
+
isInitialLoading ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5", children: Array.from({ length: 9 }).map((_, i) => /* @__PURE__ */ jsx(CollectionCardSkeleton, {}, i)) }) : allCollections.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center py-24 gap-4 text-center", children: [
|
|
240
|
+
/* @__PURE__ */ jsx(Layers, { className: "h-12 w-12 text-muted-foreground/30" }),
|
|
241
|
+
/* @__PURE__ */ jsx("p", { className: "text-2xl font-bold", children: "No collections found" }),
|
|
242
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground max-w-sm", children: featured ? "No featured collections match the current filters." : hideEmpty ? "No collections with assets yet." : "Deploy the first collection on Medialane." }),
|
|
243
|
+
activeFilters > 0 && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: resetAll, children: "Clear filters" })
|
|
244
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
245
|
+
exclusive && displayCollections.length === 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center py-16 gap-3 text-center", children: [
|
|
246
|
+
/* @__PURE__ */ jsx(Sparkles, { className: "h-10 w-10 text-muted-foreground/30" }),
|
|
247
|
+
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold text-muted-foreground", children: "No exclusive collections in this batch" }),
|
|
248
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground/70 max-w-xs", children: "Load more collections below, then the filter will catch them." })
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5", children: displayCollections.map((col) => /* @__PURE__ */ jsx(CollectionCard, { collection: col }, col.contractAddress)) }),
|
|
251
|
+
/* @__PURE__ */ jsx(
|
|
252
|
+
LoadMoreSentinel,
|
|
253
|
+
{
|
|
254
|
+
hasMore,
|
|
255
|
+
isLoading,
|
|
256
|
+
onLoadMore: () => setPage((p) => p + 1)
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
] })
|
|
260
|
+
] });
|
|
261
|
+
}
|
|
262
|
+
export {
|
|
263
|
+
CollectionsPage
|
|
264
|
+
};
|
|
265
|
+
//# sourceMappingURL=collections-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/collections-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, useEffect, useRef } from \"react\";\nimport { Layers, BadgeCheck, Eye, SlidersHorizontal, Award, Sparkles, Package } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport { Dialog, DialogContent, DialogTitle } from \"./dialog.js\";\nimport { HelpIcon } from \"./help-icon.js\";\nimport { PageContainer } from \"./page-container.js\";\nimport { CollectionCard, CollectionCardSkeleton } from \"./collection-card.js\";\nimport { LoadMoreSentinel } from \"./load-more-sentinel.js\";\nimport { cn } from \"../utils/cn.js\";\nimport { useCollections, type CollectionSort } from \"../utils/use-collections.js\";\nimport { usePlatformStats } from \"../utils/use-platform-stats.js\";\nimport type { ApiCollection } from \"@medialane/sdk\";\n\nconst PAGE_SIZE = 18;\n\nconst SORT_OPTIONS: { label: string; value: CollectionSort }[] = [\n { label: \"Recent\", value: \"recent\" },\n { label: \"Most assets\", value: \"supply\" },\n { label: \"Top volume\", value: \"volume\" },\n { label: \"Floor ↑\", value: \"floor\" },\n { label: \"A → Z\", value: \"name\" },\n];\n\nconst SERVICE_TABS = [\n { label: \"All\", value: undefined },\n { label: \"POP Events\", value: \"pop-protocol\" },\n { label: \"Drops\", value: \"drop-collection\" },\n] as const;\n\nexport function CollectionsPage() {\n const { stats } = usePlatformStats();\n const [sort, setSort] = useState<CollectionSort>(\"recent\");\n const [featured, setFeatured] = useState(false);\n const [hideEmpty, setHideEmpty] = useState(true);\n const [exclusive, setExclusive] = useState(false);\n const [service, setService] = useState<string | undefined>(undefined);\n const [filtersOpen, setFiltersOpen] = useState(false);\n const [page, setPage] = useState(1);\n const [allCollections, setAllCollections] = useState<ApiCollection[]>([]);\n\n const { collections, meta, isLoading } = useCollections(\n page,\n PAGE_SIZE,\n featured ? true : undefined,\n sort,\n service === \"pop-protocol\" || service === \"drop-collection\" ? false : hideEmpty,\n service,\n \"ERC721,ERC1155\"\n );\n\n const prevFilters = useRef({ sort, featured, hideEmpty, service });\n useEffect(() => {\n const f = prevFilters.current;\n if (f.sort !== sort || f.featured !== featured || f.hideEmpty !== hideEmpty || f.service !== service) {\n prevFilters.current = { sort, featured, hideEmpty, service };\n setPage(1);\n setAllCollections([]);\n }\n }, [sort, featured, hideEmpty, service]);\n\n useEffect(() => {\n if (isLoading || collections.length === 0) return;\n setAllCollections((prev) => {\n const ids = new Set(prev.map((c) => c.contractAddress));\n const next = collections.filter((c) => !ids.has(c.contractAddress));\n return page === 1 ? collections : [...prev, ...next];\n });\n }, [collections, isLoading, page]);\n\n const hasMore = meta?.total != null ? allCollections.length < meta.total : false;\n const isInitialLoading = isLoading && allCollections.length === 0;\n\n const activeFilters = [sort !== \"recent\", featured, !hideEmpty, exclusive].filter(Boolean).length;\n\n const displayCollections = exclusive\n ? allCollections.filter((c) => !!c.profile?.hasGatedContent)\n : allCollections;\n\n const resetAll = () => {\n setSort(\"recent\");\n setFeatured(false);\n setHideEmpty(true);\n setExclusive(false);\n };\n\n const handleServiceChange = (val: string | undefined) => {\n setService(val);\n };\n\n return (\n <PageContainer className=\"box-border max-w-full pt-14 pb-8 space-y-8\">\n\n <div className=\"space-y-2 pt-8\">\n\n <h1 className=\"text-3xl font-bold\">Onchain Collections</h1>\n <div className=\"flex flex-wrap items-center gap-2 mt-1\">\n {meta?.total != null && (\n <div className=\"flex items-center gap-1.5 rounded-full border border-border bg-card px-3.5 py-1.5 text-sm\">\n <span className=\"font-bold tabular-nums\">{(meta.total ?? 0).toLocaleString()}</span>\n <span className=\"text-muted-foreground\">Collections</span>\n </div>\n )}\n {stats?.tokens != null && (\n <div className=\"flex items-center gap-1.5 rounded-full border border-border bg-card px-3.5 py-1.5 text-sm\">\n <span className=\"font-bold tabular-nums\">{stats.tokens.toLocaleString()}</span>\n <span className=\"text-muted-foreground\">Assets</span>\n </div>\n )}\n {stats?.sales != null && (\n <div className=\"flex items-center gap-1.5 rounded-full border border-border bg-card px-3.5 py-1.5 text-sm\">\n <span className=\"font-bold tabular-nums\">{stats.sales.toLocaleString()}</span>\n <span className=\"text-muted-foreground\">Sales</span>\n </div>\n )}\n </div>\n </div>\n\n <div className=\"flex items-center gap-2 pb-3 border-b border-border/60 flex-wrap\">\n <button\n onClick={() => setFiltersOpen(true)}\n className={cn(\n \"relative flex items-center gap-1.5 h-9 px-3 rounded-lg border text-xs font-medium transition-colors\",\n activeFilters > 0 || service !== undefined\n ? \"border-primary bg-primary/10 text-primary\"\n : \"border-border text-muted-foreground hover:border-primary/50 hover:text-foreground\"\n )}\n >\n <SlidersHorizontal className=\"h-3.5 w-3.5\" />\n Filters\n {(activeFilters > 0 || service !== undefined) && (\n <span className=\"flex h-4 w-4 items-center justify-center rounded-full bg-primary text-2xs font-bold text-primary-foreground\">\n {activeFilters + (service !== undefined ? 1 : 0)}\n </span>\n )}\n </button>\n\n {service !== undefined && (\n <span className=\"flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary\">\n {service === \"drop-collection\" ? <Package className=\"h-3 w-3\" /> : <Award className=\"h-3 w-3\" />}\n {SERVICE_TABS.find((t) => t.value === service)?.label}\n <button onClick={() => setService(undefined)} className=\"ml-0.5 hover:text-primary/60\">×</button>\n </span>\n )}\n {sort !== \"recent\" && (\n <span className=\"flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary\">\n {SORT_OPTIONS.find((o) => o.value === sort)?.label}\n <button onClick={() => setSort(\"recent\")} className=\"ml-0.5 hover:text-primary/60\">×</button>\n </span>\n )}\n {featured && (\n <span className=\"flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary\">\n <BadgeCheck className=\"h-3 w-3\" />\n Featured\n <button onClick={() => setFeatured(false)} className=\"ml-0.5 hover:text-primary/60\">×</button>\n </span>\n )}\n {!hideEmpty && (\n <span className=\"flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary\">\n Show empty\n <button onClick={() => setHideEmpty(true)} className=\"ml-0.5 hover:text-primary/60\">×</button>\n </span>\n )}\n {exclusive && (\n <span className=\"flex items-center gap-1 text-xs px-2.5 py-1 rounded-full border border-primary/40 bg-primary/10 text-primary\">\n <Sparkles className=\"h-3 w-3\" />\n Exclusive\n <button onClick={() => setExclusive(false)} className=\"ml-0.5 hover:text-primary/60\">×</button>\n </span>\n )}\n </div>\n\n <Dialog open={filtersOpen} onOpenChange={setFiltersOpen}>\n <DialogContent className=\"w-full max-w-sm sm:max-w-md p-0 overflow-hidden gap-0 flex flex-col max-h-[85svh]\">\n\n <div className=\"flex items-center justify-between px-5 py-4 border-b border-border/60 pr-12\">\n <DialogTitle className=\"text-base font-bold flex items-center gap-2\">\n <SlidersHorizontal className=\"h-4 w-4 text-primary\" />\n Filters\n </DialogTitle>\n {(activeFilters > 0 || service !== undefined) && (\n <Button variant=\"ghost\" size=\"sm\" className=\"h-7 text-xs text-muted-foreground\" onClick={() => { resetAll(); setService(undefined); }}>\n Clear all\n </Button>\n )}\n </div>\n\n <div className=\"flex-1 overflow-y-auto px-5 py-4 space-y-5\">\n\n <div className=\"space-y-2\">\n <p className=\"text-2xs font-semibold text-muted-foreground\">Source</p>\n <div className=\"flex flex-wrap gap-1.5\">\n {SERVICE_TABS.map(({ label, value }) => (\n <button\n key={label}\n onClick={() => handleServiceChange(value)}\n className={cn(\n \"flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-full border transition-colors whitespace-nowrap\",\n service === value\n ? \"border-primary bg-primary/10 text-primary font-medium\"\n : \"border-border text-muted-foreground hover:border-primary/50\"\n )}\n >\n {value === \"pop-protocol\" && <Award className=\"h-3 w-3\" />}\n {value === \"drop-collection\" && <Package className=\"h-3 w-3\" />}\n {label}\n </button>\n ))}\n </div>\n </div>\n\n <div className=\"space-y-2\">\n <p className=\"text-2xs font-semibold text-muted-foreground\">Sort</p>\n <div className=\"flex flex-wrap gap-1.5\">\n {SORT_OPTIONS.map((opt) => (\n <button\n key={opt.value}\n onClick={() => setSort(opt.value)}\n className={cn(\n \"text-xs px-3 py-1.5 rounded-full border transition-colors whitespace-nowrap\",\n sort === opt.value\n ? \"border-primary bg-primary/10 text-primary font-medium\"\n : \"border-border text-muted-foreground hover:border-primary/50\"\n )}\n >\n {opt.label}\n </button>\n ))}\n </div>\n </div>\n\n <div className=\"space-y-2\">\n <p className=\"text-2xs font-semibold text-muted-foreground\">Show</p>\n <div className=\"flex flex-col gap-2\">\n <div className=\"flex items-center gap-2\">\n <button\n onClick={() => setFeatured((v) => !v)}\n className={cn(\n \"flex flex-1 items-center gap-2 text-sm px-3 py-2 rounded-lg border transition-colors text-left\",\n featured\n ? \"border-primary bg-primary/10 text-primary\"\n : \"border-border text-muted-foreground hover:border-primary/50\"\n )}\n >\n <BadgeCheck className=\"h-4 w-4 shrink-0\" />\n Featured only\n </button>\n <HelpIcon content=\"Show only collections featured by Medialane\" side=\"left\" />\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n onClick={() => setHideEmpty((v) => !v)}\n className={cn(\n \"flex flex-1 items-center gap-2 text-sm px-3 py-2 rounded-lg border transition-colors text-left\",\n !hideEmpty\n ? \"border-primary bg-primary/10 text-primary\"\n : \"border-border text-muted-foreground hover:border-primary/50\"\n )}\n >\n <Eye className=\"h-4 w-4 shrink-0\" />\n Show empty collections\n </button>\n <HelpIcon content=\"Include collections with no minted assets yet — hidden by default to keep the feed clean\" side=\"left\" />\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n onClick={() => setExclusive((v) => !v)}\n className={cn(\n \"flex flex-1 items-center gap-2 text-sm px-3 py-2 rounded-lg border transition-colors text-left\",\n exclusive\n ? \"border-primary bg-primary/10 text-primary\"\n : \"border-border text-muted-foreground hover:border-primary/50\"\n )}\n >\n <Sparkles className=\"h-4 w-4 shrink-0\" />\n Exclusive content only\n </button>\n <HelpIcon content=\"Show only collections with holder-exclusive content\" side=\"left\" />\n </div>\n </div>\n </div>\n\n </div>\n\n <div className=\"px-5 py-3 border-t border-border/60\">\n <Button className=\"w-full\" onClick={() => setFiltersOpen(false)}>\n Apply filters\n </Button>\n </div>\n\n </DialogContent>\n </Dialog>\n\n {isInitialLoading ? (\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5\">\n {Array.from({ length: 9 }).map((_, i) => <CollectionCardSkeleton key={i} />)}\n </div>\n ) : allCollections.length === 0 ? (\n <div className=\"flex flex-col items-center justify-center py-24 gap-4 text-center\">\n <Layers className=\"h-12 w-12 text-muted-foreground/30\" />\n <p className=\"text-2xl font-bold\">No collections found</p>\n <p className=\"text-muted-foreground max-w-sm\">\n {featured\n ? \"No featured collections match the current filters.\"\n : hideEmpty\n ? \"No collections with assets yet.\"\n : \"Deploy the first collection on Medialane.\"}\n </p>\n {activeFilters > 0 && (\n <Button variant=\"outline\" size=\"sm\" onClick={resetAll}>\n Clear filters\n </Button>\n )}\n </div>\n ) : (\n <div className=\"space-y-6\">\n {exclusive && displayCollections.length === 0 && (\n <div className=\"flex flex-col items-center justify-center py-16 gap-3 text-center\">\n <Sparkles className=\"h-10 w-10 text-muted-foreground/30\" />\n <p className=\"text-base font-semibold text-muted-foreground\">No exclusive collections in this batch</p>\n <p className=\"text-sm text-muted-foreground/70 max-w-xs\">Load more collections below, then the filter will catch them.</p>\n </div>\n )}\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5\">\n {displayCollections.map((col) => (\n <CollectionCard key={col.contractAddress} collection={col} />\n ))}\n </div>\n\n <LoadMoreSentinel\n hasMore={hasMore}\n isLoading={isLoading}\n onLoadMore={() => setPage((p) => p + 1)}\n />\n </div>\n )}\n </PageContainer>\n );\n}\n"],"mappings":";AAgGQ,cAGI,YAHJ;AA9FR,SAAS,UAAU,WAAW,cAAc;AAC5C,SAAS,QAAQ,YAAY,KAAK,mBAAmB,OAAO,UAAU,eAAe;AACrF,SAAS,cAAc;AACvB,SAAS,QAAQ,eAAe,mBAAmB;AACnD,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB,8BAA8B;AACvD,SAAS,wBAAwB;AACjC,SAAS,UAAU;AACnB,SAAS,sBAA2C;AACpD,SAAS,wBAAwB;AAGjC,MAAM,YAAY;AAElB,MAAM,eAA2D;AAAA,EAC/D,EAAE,OAAO,UAAe,OAAO,SAAU;AAAA,EACzC,EAAE,OAAO,eAAe,OAAO,SAAU;AAAA,EACzC,EAAE,OAAO,cAAe,OAAO,SAAU;AAAA,EACzC,EAAE,OAAO,gBAAc,OAAO,QAAU;AAAA,EACxC,EAAE,OAAO,cAAc,OAAO,OAAU;AAC1C;AAEA,MAAM,eAAe;AAAA,EACnB,EAAE,OAAO,OAAc,OAAO,OAAa;AAAA,EAC3C,EAAE,OAAO,cAAc,OAAO,eAAe;AAAA,EAC7C,EAAE,OAAO,SAAc,OAAO,kBAAkB;AAClD;AAEO,SAAS,kBAAkB;AAChC,QAAM,EAAE,MAAM,IAAI,iBAAiB;AACnC,QAAM,CAAC,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C,SAAI,WAAU,uCACb,8BAAC,UAAO,WAAU,UAAS,SAAS,MAAM,eAAe,KAAK,GAAG,2BAEjE,GACF;AAAA,OAEF,GACF;AAAA,IAEC,mBACC,oBAAC,SAAI,WAAU,wDACZ,gBAAM,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,MAAM,oBAAC,4BAA4B,CAAG,CAAE,GAC7E,IACE,eAAe,WAAW,IAC5B,qBAAC,SAAI,WAAU,qEACb;AAAA,0BAAC,UAAO,WAAU,sCAAqC;AAAA,MACvD,oBAAC,OAAE,WAAU,sBAAqB,kCAAoB;AAAA,MACtD,oBAAC,OAAE,WAAU,kCACV,qBACG,uDACA,YACA,oCACA,6CACN;AAAA,MACC,gBAAgB,KACf,oBAAC,UAAO,SAAQ,WAAU,MAAK,MAAK,SAAS,UAAU,2BAEvD;AAAA,OAEJ,IAEA,qBAAC,SAAI,WAAU,aACZ;AAAA,mBAAa,mBAAmB,WAAW,KAC1C,qBAAC,SAAI,WAAU,qEACb;AAAA,4BAAC,YAAS,WAAU,sCAAqC;AAAA,QACzD,oBAAC,OAAE,WAAU,iDAAgD,oDAAsC;AAAA,QACnG,oBAAC,OAAE,WAAU,6CAA4C,2EAA6D;AAAA,SACxH;AAAA,MAEF,oBAAC,SAAI,WAAU,wDACZ,6BAAmB,IAAI,CAAC,QACvB,oBAAC,kBAAyC,YAAY,OAAjC,IAAI,eAAkC,CAC5D,GACH;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA,YAAY,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC;AAAA;AAAA,MACxC;AAAA,OACF;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { FastMintProps } from './types.cjs';
|
|
4
4
|
import 'starknet';
|
|
5
5
|
import '@medialane/sdk';
|
|
6
6
|
import '@medialane/sdk/starknet';
|
|
7
7
|
|
|
8
|
-
declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> |
|
|
8
|
+
declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
9
9
|
|
|
10
10
|
export { FastMint };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { FastMintProps } from './types.js';
|
|
4
4
|
import 'starknet';
|
|
5
5
|
import '@medialane/sdk';
|
|
6
6
|
import '@medialane/sdk/starknet';
|
|
7
7
|
|
|
8
|
-
declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> |
|
|
8
|
+
declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
9
9
|
|
|
10
10
|
export { FastMint };
|
|
@@ -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?: "
|
|
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?: "
|
|
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
|
@@ -104,6 +104,7 @@ __export(index_exports, {
|
|
|
104
104
|
CollectionPicker: () => import_collection_picker.CollectionPicker,
|
|
105
105
|
CollectionTraitsTab: () => import_collection_traits_tab.CollectionTraitsTab,
|
|
106
106
|
CollectionTypeChoices: () => import_new_collection_menu.CollectionTypeChoices,
|
|
107
|
+
CollectionsPage: () => import_collections_page.CollectionsPage,
|
|
107
108
|
CreationRecord: () => import_creation_record.CreationRecord,
|
|
108
109
|
CreationSuccess: () => import_creation_success.CreationSuccess,
|
|
109
110
|
CreatorAnalytics: () => import_creator_analytics.CreatorAnalytics,
|
|
@@ -731,6 +732,7 @@ var import_collection_picker = require("./components/launchpad/collection-picker
|
|
|
731
732
|
var import_edition_mint = require("./components/launchpad/edition-mint.js");
|
|
732
733
|
var import_remix_mint = require("./components/launchpad/remix-mint.js");
|
|
733
734
|
var import_ip_type_page = require("./components/ip-type-page.js");
|
|
735
|
+
var import_collections_page = require("./components/collections-page.js");
|
|
734
736
|
var import_wallet_required = require("./components/wallet-required.js");
|
|
735
737
|
var import_claim_route_shell = require("./components/claim-route-shell.js");
|
|
736
738
|
var import_use_launchpad_image_upload = require("./utils/use-launchpad-image-upload.js");
|
|
@@ -908,6 +910,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
|
|
|
908
910
|
CollectionPicker,
|
|
909
911
|
CollectionTraitsTab,
|
|
910
912
|
CollectionTypeChoices,
|
|
913
|
+
CollectionsPage,
|
|
911
914
|
CreationRecord,
|
|
912
915
|
CreationSuccess,
|
|
913
916
|
CreatorAnalytics,
|