@medialane/ui 0.213.0 → 0.214.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/asset-audio.cjs +86 -0
- package/dist/components/asset-audio.cjs.map +1 -0
- package/dist/components/asset-audio.d.cts +26 -0
- package/dist/components/asset-audio.d.ts +26 -0
- package/dist/components/asset-audio.js +50 -0
- package/dist/components/asset-audio.js.map +1 -0
- package/dist/components/asset-page.cjs +45 -2
- package/dist/components/asset-page.cjs.map +1 -1
- package/dist/components/asset-page.js +45 -2
- package/dist/components/asset-page.js.map +1 -1
- package/dist/components/asset-video.cjs +3 -3
- package/dist/components/asset-video.cjs.map +1 -1
- package/dist/components/asset-video.d.cts +2 -1
- package/dist/components/asset-video.d.ts +2 -1
- package/dist/components/asset-video.js +3 -3
- package/dist/components/asset-video.js.map +1 -1
- package/dist/data/nav-commands.cjs +1 -0
- package/dist/data/nav-commands.cjs.map +1 -1
- package/dist/data/nav-commands.d.cts +7 -0
- package/dist/data/nav-commands.d.ts +7 -0
- package/dist/data/nav-commands.js +1 -0
- package/dist/data/nav-commands.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
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 asset_audio_exports = {};
|
|
31
|
+
__export(asset_audio_exports, {
|
|
32
|
+
AUDIO_EMBED_TRAITS: () => AUDIO_EMBED_TRAITS,
|
|
33
|
+
AssetAudio: () => AssetAudio,
|
|
34
|
+
audioEmbed: () => audioEmbed
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(asset_audio_exports);
|
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var import_link = __toESM(require("./link.js"), 1);
|
|
39
|
+
var import_expandable_text = require("./expandable-text.js");
|
|
40
|
+
var import_ip_type_display = require("./ip-type-display.js");
|
|
41
|
+
var import_ip_templates = require("../data/ip-templates.js");
|
|
42
|
+
const AUDIO_PLATFORMS = ["spotify", "soundcloud"];
|
|
43
|
+
const AUDIO_EMBED_TRAITS = new Set(AUDIO_PLATFORMS.map((p) => import_ip_templates.EMBED_PLATFORM_META[p].traitKey));
|
|
44
|
+
function audioEmbed(attributes) {
|
|
45
|
+
for (const platform of AUDIO_PLATFORMS) {
|
|
46
|
+
const meta = import_ip_templates.EMBED_PLATFORM_META[platform];
|
|
47
|
+
const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;
|
|
48
|
+
const src = value ? (0, import_ip_type_display.getEmbedSrc)(platform, value) : null;
|
|
49
|
+
if (src) return { src, label: meta.label };
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
function AssetAudio({ name, image, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }) {
|
|
54
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 space-y-6", children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-5 sm:flex-row sm:items-end", children: [
|
|
56
|
+
image ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: image, alt: name, className: "aspect-square w-full max-w-xs shrink-0 rounded-2xl object-cover sm:w-56" }) : null,
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "min-w-0 text-2xl lg:text-4xl font-bold break-words", children: name })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60
|
+
"iframe",
|
|
61
|
+
{
|
|
62
|
+
src: embedSrc,
|
|
63
|
+
title: embedLabel,
|
|
64
|
+
className: "w-full rounded-xl border-0",
|
|
65
|
+
height: 166,
|
|
66
|
+
allow: "autoplay; encrypted-media",
|
|
67
|
+
loading: "lazy"
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between gap-3", children: [
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: collectionHref, className: "flex min-w-0 items-center gap-3 hover:text-primary transition-colors", children: [
|
|
72
|
+
collectionImage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: collectionImage, alt: "", className: "h-10 w-10 shrink-0 rounded-full object-cover" }) : null,
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "truncate text-sm font-semibold", children: collectionName })
|
|
74
|
+
] }),
|
|
75
|
+
utilities
|
|
76
|
+
] }),
|
|
77
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "rounded-2xl bg-muted/30 p-4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_expandable_text.ExpandableText, { text: description }) }) : null
|
|
78
|
+
] });
|
|
79
|
+
}
|
|
80
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
81
|
+
0 && (module.exports = {
|
|
82
|
+
AUDIO_EMBED_TRAITS,
|
|
83
|
+
AssetAudio,
|
|
84
|
+
audioEmbed
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=asset-audio.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/asset-audio.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport type { ReactNode } from \"react\";\nimport { ExpandableText } from \"./expandable-text.js\";\nimport { getEmbedSrc } from \"./ip-type-display.js\";\nimport { EMBED_PLATFORM_META, type EmbedPlatform } from \"../data/ip-templates.js\";\n\ninterface Attr {\n trait_type?: string;\n value?: string;\n}\n\nconst AUDIO_PLATFORMS: EmbedPlatform[] = [\"spotify\", \"soundcloud\"];\n\nexport const AUDIO_EMBED_TRAITS = new Set<string>(AUDIO_PLATFORMS.map((p) => EMBED_PLATFORM_META[p].traitKey));\n\nexport function audioEmbed(attributes: Attr[]): { src: string; label: string } | null {\n for (const platform of AUDIO_PLATFORMS) {\n const meta = EMBED_PLATFORM_META[platform];\n const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;\n const src = value ? getEmbedSrc(platform, value) : null;\n if (src) return { src, label: meta.label };\n }\n return null;\n}\n\nexport interface AssetAudioProps {\n name: string;\n image: string | null;\n embedSrc: string;\n embedLabel: string;\n description?: string | null;\n collectionName: string;\n collectionImage?: string | null;\n collectionHref: string;\n utilities: ReactNode;\n}\n\nexport function AssetAudio({ name, image, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetAudioProps) {\n return (\n <div className=\"min-w-0 space-y-6\">\n <div className=\"flex flex-col gap-5 sm:flex-row sm:items-end\">\n {image ? <img src={image} alt={name} className=\"aspect-square w-full max-w-xs shrink-0 rounded-2xl object-cover sm:w-56\" /> : null}\n <h1 className=\"min-w-0 text-2xl lg:text-4xl font-bold break-words\">{name}</h1>\n </div>\n\n <iframe\n src={embedSrc}\n title={embedLabel}\n className=\"w-full rounded-xl border-0\"\n height={166}\n allow=\"autoplay; encrypted-media\"\n loading=\"lazy\"\n />\n\n <div className=\"flex items-center justify-between gap-3\">\n <Link href={collectionHref} className=\"flex min-w-0 items-center gap-3 hover:text-primary transition-colors\">\n {collectionImage ? <img src={collectionImage} alt=\"\" className=\"h-10 w-10 shrink-0 rounded-full object-cover\" /> : null}\n <span className=\"truncate text-sm font-semibold\">{collectionName}</span>\n </Link>\n {utilities}\n </div>\n\n {description ? (\n <div className=\"rounded-2xl bg-muted/30 p-4\">\n <ExpandableText text={description} />\n </div>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0CM;AAxCN,kBAAiB;AAEjB,6BAA+B;AAC/B,6BAA4B;AAC5B,0BAAwD;AAOxD,MAAM,kBAAmC,CAAC,WAAW,YAAY;AAE1D,MAAM,qBAAqB,IAAI,IAAY,gBAAgB,IAAI,CAAC,MAAM,wCAAoB,CAAC,EAAE,QAAQ,CAAC;AAEtG,SAAS,WAAW,YAA2D;AACpF,aAAW,YAAY,iBAAiB;AACtC,UAAM,OAAO,wCAAoB,QAAQ;AACzC,UAAM,QAAQ,WAAW,KAAK,CAAC,MAAM,EAAE,eAAe,KAAK,QAAQ,GAAG;AACtE,UAAM,MAAM,YAAQ,oCAAY,UAAU,KAAK,IAAI;AACnD,QAAI,IAAK,QAAO,EAAE,KAAK,OAAO,KAAK,MAAM;AAAA,EAC3C;AACA,SAAO;AACT;AAcO,SAAS,WAAW,EAAE,MAAM,OAAO,UAAU,YAAY,aAAa,gBAAgB,iBAAiB,gBAAgB,UAAU,GAAoB;AAC1J,SACE,6CAAC,SAAI,WAAU,qBACb;AAAA,iDAAC,SAAI,WAAU,gDACZ;AAAA,cAAQ,4CAAC,SAAI,KAAK,OAAO,KAAK,MAAM,WAAU,2EAA0E,IAAK;AAAA,MAC9H,4CAAC,QAAG,WAAU,sDAAsD,gBAAK;AAAA,OAC3E;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,OAAO;AAAA,QACP,WAAU;AAAA,QACV,QAAQ;AAAA,QACR,OAAM;AAAA,QACN,SAAQ;AAAA;AAAA,IACV;AAAA,IAEA,6CAAC,SAAI,WAAU,2CACb;AAAA,mDAAC,YAAAA,SAAA,EAAK,MAAM,gBAAgB,WAAU,wEACnC;AAAA,0BAAkB,4CAAC,SAAI,KAAK,iBAAiB,KAAI,IAAG,WAAU,gDAA+C,IAAK;AAAA,QACnH,4CAAC,UAAK,WAAU,kCAAkC,0BAAe;AAAA,SACnE;AAAA,MACC;AAAA,OACH;AAAA,IAEC,cACC,4CAAC,SAAI,WAAU,+BACb,sDAAC,yCAAe,MAAM,aAAa,GACrC,IACE;AAAA,KACN;AAEJ;","names":["Link"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface Attr {
|
|
5
|
+
trait_type?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const AUDIO_EMBED_TRAITS: Set<string>;
|
|
9
|
+
declare function audioEmbed(attributes: Attr[]): {
|
|
10
|
+
src: string;
|
|
11
|
+
label: string;
|
|
12
|
+
} | null;
|
|
13
|
+
interface AssetAudioProps {
|
|
14
|
+
name: string;
|
|
15
|
+
image: string | null;
|
|
16
|
+
embedSrc: string;
|
|
17
|
+
embedLabel: string;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
collectionName: string;
|
|
20
|
+
collectionImage?: string | null;
|
|
21
|
+
collectionHref: string;
|
|
22
|
+
utilities: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
declare function AssetAudio({ name, image, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetAudioProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { AUDIO_EMBED_TRAITS, AssetAudio, type AssetAudioProps, audioEmbed };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface Attr {
|
|
5
|
+
trait_type?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const AUDIO_EMBED_TRAITS: Set<string>;
|
|
9
|
+
declare function audioEmbed(attributes: Attr[]): {
|
|
10
|
+
src: string;
|
|
11
|
+
label: string;
|
|
12
|
+
} | null;
|
|
13
|
+
interface AssetAudioProps {
|
|
14
|
+
name: string;
|
|
15
|
+
image: string | null;
|
|
16
|
+
embedSrc: string;
|
|
17
|
+
embedLabel: string;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
collectionName: string;
|
|
20
|
+
collectionImage?: string | null;
|
|
21
|
+
collectionHref: string;
|
|
22
|
+
utilities: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
declare function AssetAudio({ name, image, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetAudioProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { AUDIO_EMBED_TRAITS, AssetAudio, type AssetAudioProps, audioEmbed };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Link from "./link.js";
|
|
4
|
+
import { ExpandableText } from "./expandable-text.js";
|
|
5
|
+
import { getEmbedSrc } from "./ip-type-display.js";
|
|
6
|
+
import { EMBED_PLATFORM_META } from "../data/ip-templates.js";
|
|
7
|
+
const AUDIO_PLATFORMS = ["spotify", "soundcloud"];
|
|
8
|
+
const AUDIO_EMBED_TRAITS = new Set(AUDIO_PLATFORMS.map((p) => EMBED_PLATFORM_META[p].traitKey));
|
|
9
|
+
function audioEmbed(attributes) {
|
|
10
|
+
for (const platform of AUDIO_PLATFORMS) {
|
|
11
|
+
const meta = EMBED_PLATFORM_META[platform];
|
|
12
|
+
const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;
|
|
13
|
+
const src = value ? getEmbedSrc(platform, value) : null;
|
|
14
|
+
if (src) return { src, label: meta.label };
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
function AssetAudio({ name, image, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }) {
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { className: "min-w-0 space-y-6", children: [
|
|
20
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5 sm:flex-row sm:items-end", children: [
|
|
21
|
+
image ? /* @__PURE__ */ jsx("img", { src: image, alt: name, className: "aspect-square w-full max-w-xs shrink-0 rounded-2xl object-cover sm:w-56" }) : null,
|
|
22
|
+
/* @__PURE__ */ jsx("h1", { className: "min-w-0 text-2xl lg:text-4xl font-bold break-words", children: name })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ jsx(
|
|
25
|
+
"iframe",
|
|
26
|
+
{
|
|
27
|
+
src: embedSrc,
|
|
28
|
+
title: embedLabel,
|
|
29
|
+
className: "w-full rounded-xl border-0",
|
|
30
|
+
height: 166,
|
|
31
|
+
allow: "autoplay; encrypted-media",
|
|
32
|
+
loading: "lazy"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
36
|
+
/* @__PURE__ */ jsxs(Link, { href: collectionHref, className: "flex min-w-0 items-center gap-3 hover:text-primary transition-colors", children: [
|
|
37
|
+
collectionImage ? /* @__PURE__ */ jsx("img", { src: collectionImage, alt: "", className: "h-10 w-10 shrink-0 rounded-full object-cover" }) : null,
|
|
38
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold", children: collectionName })
|
|
39
|
+
] }),
|
|
40
|
+
utilities
|
|
41
|
+
] }),
|
|
42
|
+
description ? /* @__PURE__ */ jsx("div", { className: "rounded-2xl bg-muted/30 p-4", children: /* @__PURE__ */ jsx(ExpandableText, { text: description }) }) : null
|
|
43
|
+
] });
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
AUDIO_EMBED_TRAITS,
|
|
47
|
+
AssetAudio,
|
|
48
|
+
audioEmbed
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=asset-audio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/asset-audio.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport type { ReactNode } from \"react\";\nimport { ExpandableText } from \"./expandable-text.js\";\nimport { getEmbedSrc } from \"./ip-type-display.js\";\nimport { EMBED_PLATFORM_META, type EmbedPlatform } from \"../data/ip-templates.js\";\n\ninterface Attr {\n trait_type?: string;\n value?: string;\n}\n\nconst AUDIO_PLATFORMS: EmbedPlatform[] = [\"spotify\", \"soundcloud\"];\n\nexport const AUDIO_EMBED_TRAITS = new Set<string>(AUDIO_PLATFORMS.map((p) => EMBED_PLATFORM_META[p].traitKey));\n\nexport function audioEmbed(attributes: Attr[]): { src: string; label: string } | null {\n for (const platform of AUDIO_PLATFORMS) {\n const meta = EMBED_PLATFORM_META[platform];\n const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;\n const src = value ? getEmbedSrc(platform, value) : null;\n if (src) return { src, label: meta.label };\n }\n return null;\n}\n\nexport interface AssetAudioProps {\n name: string;\n image: string | null;\n embedSrc: string;\n embedLabel: string;\n description?: string | null;\n collectionName: string;\n collectionImage?: string | null;\n collectionHref: string;\n utilities: ReactNode;\n}\n\nexport function AssetAudio({ name, image, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetAudioProps) {\n return (\n <div className=\"min-w-0 space-y-6\">\n <div className=\"flex flex-col gap-5 sm:flex-row sm:items-end\">\n {image ? <img src={image} alt={name} className=\"aspect-square w-full max-w-xs shrink-0 rounded-2xl object-cover sm:w-56\" /> : null}\n <h1 className=\"min-w-0 text-2xl lg:text-4xl font-bold break-words\">{name}</h1>\n </div>\n\n <iframe\n src={embedSrc}\n title={embedLabel}\n className=\"w-full rounded-xl border-0\"\n height={166}\n allow=\"autoplay; encrypted-media\"\n loading=\"lazy\"\n />\n\n <div className=\"flex items-center justify-between gap-3\">\n <Link href={collectionHref} className=\"flex min-w-0 items-center gap-3 hover:text-primary transition-colors\">\n {collectionImage ? <img src={collectionImage} alt=\"\" className=\"h-10 w-10 shrink-0 rounded-full object-cover\" /> : null}\n <span className=\"truncate text-sm font-semibold\">{collectionName}</span>\n </Link>\n {utilities}\n </div>\n\n {description ? (\n <div className=\"rounded-2xl bg-muted/30 p-4\">\n <ExpandableText text={description} />\n </div>\n ) : null}\n </div>\n );\n}\n"],"mappings":";AA0CM,SACW,KADX;AAxCN,OAAO,UAAU;AAEjB,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,2BAA+C;AAOxD,MAAM,kBAAmC,CAAC,WAAW,YAAY;AAE1D,MAAM,qBAAqB,IAAI,IAAY,gBAAgB,IAAI,CAAC,MAAM,oBAAoB,CAAC,EAAE,QAAQ,CAAC;AAEtG,SAAS,WAAW,YAA2D;AACpF,aAAW,YAAY,iBAAiB;AACtC,UAAM,OAAO,oBAAoB,QAAQ;AACzC,UAAM,QAAQ,WAAW,KAAK,CAAC,MAAM,EAAE,eAAe,KAAK,QAAQ,GAAG;AACtE,UAAM,MAAM,QAAQ,YAAY,UAAU,KAAK,IAAI;AACnD,QAAI,IAAK,QAAO,EAAE,KAAK,OAAO,KAAK,MAAM;AAAA,EAC3C;AACA,SAAO;AACT;AAcO,SAAS,WAAW,EAAE,MAAM,OAAO,UAAU,YAAY,aAAa,gBAAgB,iBAAiB,gBAAgB,UAAU,GAAoB;AAC1J,SACE,qBAAC,SAAI,WAAU,qBACb;AAAA,yBAAC,SAAI,WAAU,gDACZ;AAAA,cAAQ,oBAAC,SAAI,KAAK,OAAO,KAAK,MAAM,WAAU,2EAA0E,IAAK;AAAA,MAC9H,oBAAC,QAAG,WAAU,sDAAsD,gBAAK;AAAA,OAC3E;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,OAAO;AAAA,QACP,WAAU;AAAA,QACV,QAAQ;AAAA,QACR,OAAM;AAAA,QACN,SAAQ;AAAA;AAAA,IACV;AAAA,IAEA,qBAAC,SAAI,WAAU,2CACb;AAAA,2BAAC,QAAK,MAAM,gBAAgB,WAAU,wEACnC;AAAA,0BAAkB,oBAAC,SAAI,KAAK,iBAAiB,KAAI,IAAG,WAAU,gDAA+C,IAAK;AAAA,QACnH,oBAAC,UAAK,WAAU,kCAAkC,0BAAe;AAAA,SACnE;AAAA,MACC;AAAA,OACH;AAAA,IAEC,cACC,oBAAC,SAAI,WAAU,+BACb,8BAAC,kBAAe,MAAM,aAAa,GACrC,IACE;AAAA,KACN;AAEJ;","names":[]}
|
|
@@ -36,6 +36,7 @@ var import_asset_top_sections = require("./asset-top-sections.js");
|
|
|
36
36
|
var import_asset_publication = require("./asset-publication.js");
|
|
37
37
|
var import_ip_type_badge = require("./ip-type-badge.js");
|
|
38
38
|
var import_asset_video = require("./asset-video.js");
|
|
39
|
+
var import_asset_audio = require("./asset-audio.js");
|
|
39
40
|
var import_asset_utility_icons = require("./asset-utility-icons.js");
|
|
40
41
|
var import_asset_marketplace_panel = require("./asset-marketplace-panel.js");
|
|
41
42
|
var import_asset_owners_panel = require("./asset-owners-panel.js");
|
|
@@ -164,17 +165,18 @@ function AssetPageView({
|
|
|
164
165
|
const { Comments, PopBurn } = slots;
|
|
165
166
|
const articleText = token.metadata?.description?.trim() || null;
|
|
166
167
|
const video = (token.metadata?.ipType ?? "").toLowerCase() === "video" ? (0, import_asset_video.videoEmbed)(attributes) : null;
|
|
168
|
+
const audio = (token.metadata?.ipType ?? "").toLowerCase() === "audio" ? (0, import_asset_audio.audioEmbed)(attributes) : null;
|
|
167
169
|
const isPublication = !!articleText && PUBLICATION_TYPES.has((token.metadata?.ipType ?? "").toLowerCase());
|
|
168
170
|
const publisherName = collection?.name ?? contract.slice(0, 8) + "\u2026";
|
|
169
171
|
const websiteUrl = attributes.find((a) => a.trait_type === "Website")?.value ?? null;
|
|
170
|
-
const overview = isPublication ? (0, import_asset_attributes.assetAttributes)(attributes.filter((a) => a.trait_type !== "Website")) : video ? (0, import_asset_attributes.assetAttributes)(attributes.filter((a) => !import_asset_video.VIDEO_EMBED_TRAITS.has(a.trait_type ?? ""))) : { attributes, hasTemplateData, isDisplayAttr };
|
|
172
|
+
const overview = isPublication ? (0, import_asset_attributes.assetAttributes)(attributes.filter((a) => a.trait_type !== "Website")) : video || audio ? (0, import_asset_attributes.assetAttributes)(attributes.filter((a) => !import_asset_video.VIDEO_EMBED_TRAITS.has(a.trait_type ?? "") && !import_asset_audio.AUDIO_EMBED_TRAITS.has(a.trait_type ?? ""))) : { attributes, hasTemplateData, isDisplayAttr };
|
|
171
173
|
const marketBlock = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
172
174
|
Panel ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Panel, { contract, tokenId, quantityOwned: market.quantityOwned }) : null,
|
|
173
175
|
config.market ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
174
176
|
import_asset_marketplace_panel.AssetMarketplacePanel,
|
|
175
177
|
{
|
|
176
178
|
asset: token,
|
|
177
|
-
compact: isPublication || !!video,
|
|
179
|
+
compact: isPublication || !!video || !!audio,
|
|
178
180
|
cheapest: market.cheapest,
|
|
179
181
|
usdValue: market.cheapestUsd,
|
|
180
182
|
isOwner: market.isOwner,
|
|
@@ -268,6 +270,47 @@ function AssetPageView({
|
|
|
268
270
|
}
|
|
269
271
|
)
|
|
270
272
|
] })
|
|
273
|
+
] }) : audio ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-12 gap-8 items-start", children: [
|
|
274
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
275
|
+
import_asset_audio.AssetAudio,
|
|
276
|
+
{
|
|
277
|
+
name,
|
|
278
|
+
image,
|
|
279
|
+
embedSrc: audio.src,
|
|
280
|
+
embedLabel: audio.label,
|
|
281
|
+
description: token.metadata?.description,
|
|
282
|
+
collectionName: publisherName,
|
|
283
|
+
collectionImage: resolveImage(collection?.image),
|
|
284
|
+
collectionHref: (0, import_sdk.collectionHref)("STARKNET", contract),
|
|
285
|
+
utilities: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
286
|
+
import_asset_utility_icons.AssetUtilityIcons,
|
|
287
|
+
{
|
|
288
|
+
contractExplorerHref: `${import_explorer_url.EXPLORER_URL}/contract/${token.contractAddress}`,
|
|
289
|
+
shareTitle: name,
|
|
290
|
+
onReportClick: () => setReportOpen(true)
|
|
291
|
+
}
|
|
292
|
+
)
|
|
293
|
+
}
|
|
294
|
+
),
|
|
295
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("aside", { className: "space-y-6 min-w-0", children: [
|
|
296
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ip_type_badge.IpTypeBadge, { ipType: token.metadata?.ipType ?? "Audio", size: "md", showLabel: true }),
|
|
297
|
+
marketBlock,
|
|
298
|
+
ownerAddress ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_asset_top_sections.AssetOwnerRow, { ownerAddress, ownerHref: (0, import_sdk2.profileHref)({ address: ownerAddress }) }) : null,
|
|
299
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
300
|
+
import_asset_video.AssetRelatedList,
|
|
301
|
+
{
|
|
302
|
+
title: publisherName,
|
|
303
|
+
titleHref: (0, import_sdk.collectionHref)("STARKNET", contract),
|
|
304
|
+
shape: "square",
|
|
305
|
+
items: collectionTokens.filter((t) => String(t.tokenId) !== String(tokenId)).map((t) => ({
|
|
306
|
+
tokenId: t.tokenId,
|
|
307
|
+
name: t.metadata?.name || `${config.namePrefix} #${t.tokenId}`,
|
|
308
|
+
image: resolveImage(t.metadata?.image),
|
|
309
|
+
href: (0, import_sdk.assetHref)("STARKNET", contract, t.tokenId)
|
|
310
|
+
}))
|
|
311
|
+
}
|
|
312
|
+
)
|
|
313
|
+
] })
|
|
271
314
|
] }) : isPublication ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-20 gap-8 items-start", children: [
|
|
272
315
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
273
316
|
import_asset_publication.AssetPublication,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/asset-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState, type ComponentType, type ReactNode } from \"react\";\nimport { motion, useReducedMotion } from \"framer-motion\";\nimport { Award } from \"lucide-react\";\nimport { assetHref, collectionHref, getDerivativesTerm, getService, resolveRemixPolicy, type ApiActivity, type ApiCollection, type ApiOrder, type ApiToken, type Chain } from \"@medialane/sdk\";\nimport { useRouter } from \"./router.js\";\nimport { PageContainer } from \"./page-container.js\";\nimport { PageBackdrop } from \"./media-header.js\";\nimport { AssetHeaderBlock, AssetMediaColumn, AssetOwnerRow } from \"./asset-top-sections.js\";\nimport { AssetPublication } from \"./asset-publication.js\";\nimport { IpTypeBadge } from \"./ip-type-badge.js\";\nimport { AssetRelatedList, AssetVideo, VIDEO_EMBED_TRAITS, videoEmbed } from \"./asset-video.js\";\nimport { AssetUtilityIcons } from \"./asset-utility-icons.js\";\nimport { AssetMarketplacePanel } from \"./asset-marketplace-panel.js\";\nimport { AssetOwnersPanel } from \"./asset-owners-panel.js\";\nimport { AssetCollectionBar } from \"./asset-collection-bar.js\";\nimport { AssetOverviewContent } from \"./asset-overview-content.js\";\nimport { AssetMarketsTab } from \"./asset-markets-tab.js\";\nimport { AssetProvenanceTab } from \"./asset-provenance-tab.js\";\nimport { AssetLightbox } from \"./asset-lightbox.js\";\nimport { AssetUnavailable } from \"./asset-unavailable.js\";\nimport { HiddenContentBanner } from \"./hidden-content-banner.js\";\nimport { DropTokenLink } from \"./drop/drop-token-link.js\";\nimport { FloatingCommentsButton } from \"./floating-comments-button.js\";\nimport { AssetCommentsDialog, type AssetCommentsProps } from \"./asset-comments-dialog.js\";\nimport { MembershipPanel, TicketPanel, type AssetTypePanelProps } from \"./asset-type-panels.js\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./tabs.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useToken, useTokenBalance, useTokenHistory } from \"../utils/use-tokens.js\";\nimport { useCollection, useNearbyCollectionTokens } from \"../utils/use-collections.js\";\nimport { useTokenListings } from \"../utils/use-orders.js\";\nimport { useTokenRemixes } from \"../utils/use-remix-offers.js\";\nimport { useComments } from \"../utils/use-comments.js\";\nimport { useFullTokenData } from \"../utils/use-full-token-data.js\";\nimport { useAssetMarketState } from \"../utils/asset-market-state.js\";\nimport { assetAttributes } from \"../utils/asset-attributes.js\";\nimport { ASSET_ACCENTS } from \"../utils/asset-accents.js\";\nimport { isLivingRenderCollection } from \"../data/living-render-collections.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport { profileHref } from \"@medialane/sdk\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nexport type AssetKind = \"standard\" | \"edition\" | \"ticket\" | \"membership\" | \"pop\";\n\nexport interface AssetMarketContext {\n contract: string;\n tokenId: string;\n tokenName: string;\n tokenImage: string | null;\n tokenStandard: \"ERC721\" | \"ERC1155\" | \"UNKNOWN\";\n activeListings: ApiOrder[];\n quantityOwned?: string;\n mutateListings: () => void;\n}\n\nexport interface AssetMarketActions {\n isProcessing: boolean;\n buy: (order: ApiOrder) => void;\n list: () => void;\n offer: () => void;\n transfer: () => void;\n cancel: (order: ApiOrder) => void;\n acceptBid: (order: ApiOrder) => void;\n dialogs: ReactNode;\n}\n\nexport interface AssetPageSlots {\n useMarketActions: (context: AssetMarketContext) => AssetMarketActions;\n Comments: ComponentType<AssetCommentsProps>;\n PopBurn: ComponentType<{ collectionAddress: string; tokenId: string }>;\n}\n\ninterface KindConfig {\n namePrefix: string;\n accents: (typeof ASSET_ACCENTS)[keyof typeof ASSET_ACCENTS];\n market: boolean;\n remix: boolean;\n Panel?: ComponentType<AssetTypePanelProps>;\n}\n\nconst KINDS: Record<AssetKind, KindConfig> = {\n standard: { namePrefix: \"Token\", accents: ASSET_ACCENTS.standard, market: true, remix: true },\n edition: { namePrefix: \"Edition\", accents: ASSET_ACCENTS.edition, market: true, remix: false },\n ticket: { namePrefix: \"Ticket\", accents: ASSET_ACCENTS.ticket, market: true, remix: false, Panel: TicketPanel },\n membership: { namePrefix: \"Membership\", accents: ASSET_ACCENTS.membership, market: true, remix: false, Panel: MembershipPanel },\n pop: { namePrefix: \"POP\", accents: ASSET_ACCENTS.standard, market: false, remix: false },\n};\n\nconst PUBLICATION_TYPES = new Set([\"publications\", \"posts\"]);\n\nconst VARIANT_KINDS: Partial<Record<string, AssetKind>> = { edition: \"edition\", ticket: \"ticket\", club: \"membership\", pop: \"pop\" };\n\nexport function detectAssetKind(service: string | null | undefined, standard: string | null | undefined): AssetKind {\n const variant = getService(service)?.uiVariant;\n if (variant) return VARIANT_KINDS[variant] ?? \"standard\";\n return standard === \"ERC1155\" ? \"edition\" : \"standard\";\n}\n\nexport function AssetPageSkeleton() {\n return (\n <PageContainer className=\"pt-20 pb-8\">\n <div className=\"grid grid-cols-1 lg:grid-cols-2 lg:gap-10 gap-6 items-start\">\n <Skeleton className=\"aspect-square w-full rounded-3xl\" />\n <div className=\"space-y-6\">\n <div className=\"space-y-3\">\n <Skeleton className=\"h-5 w-24 rounded-full\" />\n <Skeleton className=\"h-9 w-3/4\" />\n <Skeleton className=\"h-4 w-full\" />\n <Skeleton className=\"h-4 w-2/3\" />\n </div>\n <Skeleton className=\"h-[54px] w-full rounded-2xl\" />\n <div className=\"flex gap-2\">\n {Array.from({ length: 3 }).map((_, i) => <Skeleton key={i} className=\"h-[46px] flex-1 rounded-[13px]\" />)}\n </div>\n <Skeleton className=\"h-16 w-full rounded-2xl\" />\n </div>\n </div>\n </PageContainer>\n );\n}\n\nexport interface AssetPageProps {\n contract: string;\n tokenId: string;\n slots: AssetPageSlots;\n}\n\nexport function AssetPage({ contract, tokenId, slots }: AssetPageProps) {\n const { token, isLoading, isIndexing } = useToken(contract, tokenId);\n const { collection, isLoading: collectionLoading } = useCollection(contract);\n if (isLoading || collectionLoading) return <AssetPageSkeleton />;\n if (!token) return <AssetUnavailable isIndexing={isIndexing} />;\n const kind = detectAssetKind(collection?.service, collection?.standard ?? token.standard);\n return <AssetPageView contract={contract} tokenId={tokenId} token={token} collection={collection ?? null} kind={kind} slots={slots} />;\n}\n\nfunction AssetPageView({\n contract,\n tokenId,\n token,\n collection,\n kind,\n slots,\n}: {\n contract: string;\n tokenId: string;\n token: ApiToken & { isHidden?: boolean };\n collection: ApiCollection | null;\n kind: AssetKind;\n slots: AssetPageSlots;\n}) {\n const resolveImage = useImageUrl();\n const config = KINDS[kind];\n const router = useRouter();\n const shouldReduce = useReducedMotion();\n const { walletAddress, ReportDialog } = useMedialaneApp();\n\n const { listings, mutate: mutateListings, isLoading: listingsLoading } = useTokenListings(contract, tokenId);\n const { history } = useTokenHistory(contract, tokenId);\n const { tokens: collectionTokens } = useNearbyCollectionTokens(contract, tokenId);\n const { total: commentTotal } = useComments(contract, tokenId);\n const { total: remixCount } = useTokenRemixes(contract, tokenId);\n const { data: fullTokenData } = useFullTokenData(contract, tokenId);\n const { amount: walletBalance } = useTokenBalance(contract, tokenId, walletAddress);\n const market = useAssetMarketState({ token, collection, listings, history: history as ApiActivity[], walletAddress, walletBalance });\n\n const [reportOpen, setReportOpen] = useState(false);\n const [commentOpen, setCommentOpen] = useState(false);\n const [lightboxOpen, setLightboxOpen] = useState(false);\n const [imgError, setImgError] = useState(false);\n\n const name = token.metadata?.name || `${config.namePrefix} #${token.tokenId}`;\n const image = resolveImage(token.metadata?.image);\n const tokenStandard = kind === \"standard\" || kind === \"pop\"\n ? ((token.standard ?? collection?.standard ?? \"UNKNOWN\") as AssetMarketContext[\"tokenStandard\"])\n : \"ERC1155\";\n\n const actions = slots.useMarketActions({\n contract,\n tokenId,\n tokenName: name,\n tokenImage: image,\n tokenStandard,\n activeListings: market.activeListings,\n quantityOwned: market.quantityOwned,\n mutateListings,\n });\n\n const autoActionRef = useRef(false);\n useEffect(() => {\n if (autoActionRef.current || !config.market || !market.isOwner) return;\n const action = new URLSearchParams(window.location.search).get(\"action\");\n if (action === \"list\") actions.list();\n else if (action === \"transfer\") actions.transfer();\n else return;\n autoActionRef.current = true;\n }, [config.market, market.isOwner, actions]);\n\n const { attributes, hasTemplateData, isDisplayAttr, parentContract, parentTokenId } = assetAttributes(token.metadata?.attributes);\n const remixPolicy = resolveRemixPolicy({\n parentNoDerivatives: getDerivativesTerm(token.metadata?.attributes) === \"Not Allowed\",\n viewerIsParentOwner: market.isOwner,\n dealAvailable: !!getService(collection?.service),\n });\n const holders = token.balances ?? [];\n const ownerAddress = !market.isERC1155 ? (holders[0]?.owner ?? token.owner ?? null) : null;\n const marketCount = market.activeListings.length + market.activeBids.length;\n const { Panel } = config;\n const { Comments, PopBurn } = slots;\n\n const articleText = token.metadata?.description?.trim() || null;\n const video = (token.metadata?.ipType ?? \"\").toLowerCase() === \"video\" ? videoEmbed(attributes) : null;\n const isPublication = !!articleText && PUBLICATION_TYPES.has((token.metadata?.ipType ?? \"\").toLowerCase());\n const publisherName = collection?.name ?? contract.slice(0, 8) + \"…\";\n const websiteUrl = attributes.find((a) => a.trait_type === \"Website\")?.value ?? null;\n const overview = isPublication\n ? assetAttributes(attributes.filter((a) => a.trait_type !== \"Website\"))\n : video\n ? assetAttributes(attributes.filter((a) => !VIDEO_EMBED_TRAITS.has(a.trait_type ?? \"\")))\n : { attributes, hasTemplateData, isDisplayAttr };\n\n const marketBlock = (\n <>\n {Panel ? <Panel contract={contract} tokenId={tokenId} quantityOwned={market.quantityOwned} /> : null}\n\n {config.market ? (\n <AssetMarketplacePanel\n asset={token}\n compact={isPublication || !!video}\n cheapest={market.cheapest}\n usdValue={market.cheapestUsd}\n isOwner={market.isOwner}\n isProcessing={actions.isProcessing}\n isERC1155={market.isERC1155}\n canListMoreEditions={market.canListMoreEditions}\n isMarketLoading={listingsLoading}\n myListing={market.myListing}\n activeBids={market.activeBids}\n remixEnabled={config.remix && remixPolicy.canRemixDirect}\n showDealOption={config.remix && remixPolicy.showDealOption}\n onCancelClick={actions.cancel}\n onAcceptBid={actions.acceptBid}\n onOpenListing={actions.list}\n onOpenTransfer={actions.transfer}\n onOpenPurchase={actions.buy}\n onOpenOffer={actions.offer}\n onOpenRemix={() => router.push(`/create/remix/${contract}/${tokenId}`)}\n />\n ) : null}\n\n {kind === \"pop\" && market.isOwner ? <PopBurn collectionAddress={contract} tokenId={tokenId} /> : null}\n\n {market.isERC1155 && holders.length > 0 ? (\n <AssetOwnersPanel balances={holders} total={token.holderCount} editions={Number(token.supply ?? 0)} />\n ) : null}\n </>\n );\n\n const detailsBlock = (\n <div className=\"pt-5 space-y-5\">\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n {collection?.service === \"drop-collection\" ? <DropTokenLink contract={contract} name={collection.name ?? null} /> : null}\n <AssetCollectionBar\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n currentTokenId={tokenId}\n siblingTokens={collectionTokens.map((t) => ({\n tokenId: t.tokenId,\n image: resolveImage(t.metadata?.image),\n }))}\n onNavigate={(id) => router.push(assetHref(\"STARKNET\", contract, id))}\n floorPriceRaw={collection?.floorPrice}\n />\n <div className=\"-ml-3\">\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n </div>\n </div>\n );\n\n return (\n <div className=\"relative z-0 min-h-screen\">\n {token.isHidden ? <HiddenContentBanner /> : null}\n <PageBackdrop image={image} />\n\n <PageContainer className={isPublication ? \"pt-20 space-y-8 pb-8 lg:px-16 xl:px-24\" : \"pt-20 space-y-8 pb-8\"}>\n {video ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-12 gap-8 items-start\">\n <AssetVideo\n name={name}\n embedSrc={video.src}\n embedLabel={video.label}\n description={token.metadata?.description}\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n utilities={\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n }\n />\n <aside className=\"space-y-6 min-w-0\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Video\"} size=\"md\" showLabel />\n {marketBlock}\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n <AssetRelatedList\n title={publisherName}\n titleHref={collectionHref(\"STARKNET\", contract)}\n items={collectionTokens\n .filter((t) => String(t.tokenId) !== String(tokenId))\n .map((t) => ({\n tokenId: t.tokenId,\n name: t.metadata?.name || `${config.namePrefix} #${t.tokenId}`,\n image: resolveImage(t.metadata?.image),\n href: assetHref(\"STARKNET\", contract, t.tokenId),\n }))}\n />\n </aside>\n </div>\n ) : isPublication ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-20 gap-8 items-start\">\n <AssetPublication\n name={name}\n text={articleText!}\n image={image}\n imgError={imgError}\n onImageError={() => setImgError(true)}\n onZoom={() => setLightboxOpen(true)}\n author={attributes.find((a) => a.trait_type === \"Author\")?.value ?? token.metadata?.author}\n websiteUrl={websiteUrl}\n />\n <aside className=\"space-y-6 min-w-0 lg:sticky lg:top-16\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Publications\"} size=\"md\" showLabel />\n {marketBlock}\n {detailsBlock}\n </aside>\n </div>\n ) : (\n <div className=\"grid grid-cols-1 lg:grid-cols-2 lg:gap-10 gap-8 items-start\">\n <AssetMediaColumn\n shouldReduce={Boolean(shouldReduce)}\n image={image}\n imageAlt={name}\n imgError={imgError}\n onImageError={() => setImgError(true)}\n onZoom={() => setLightboxOpen(true)}\n animationUrl={token.metadata?.animationUrl}\n live={isLivingRenderCollection(token.chain as Chain, token.contractAddress)}\n fallback={<div className=\"aspect-square bg-muted\" />}\n />\n\n <motion.div\n initial={shouldReduce ? false : { opacity: 0, y: 16 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.5, delay: 0.2 }}\n className=\"space-y-6\"\n >\n <AssetHeaderBlock\n name={name}\n description={token.metadata?.description}\n ipType={token.metadata?.ipType}\n parentContract={parentContract}\n parentTokenId={parentTokenId}\n badges={kind === \"pop\" ? (\n <span className=\"inline-flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-full border border-emerald-500/30 bg-emerald-500/10 text-emerald-500\">\n <Award className=\"h-3 w-3\" />\n POP\n </span>\n ) : null}\n />\n\n {marketBlock}\n\n {detailsBlock}\n </motion.div>\n </div>\n )}\n\n <Tabs defaultValue=\"overview\">\n <TabsList>\n <TabsTrigger value=\"overview\">Overview</TabsTrigger>\n {config.market ? <TabsTrigger value=\"markets\">Markets {marketCount > 0 && `(${marketCount})`}</TabsTrigger> : null}\n <TabsTrigger value=\"provenance\">Provenance {history.length > 0 && `(${history.length})`}</TabsTrigger>\n </TabsList>\n\n <TabsContent value=\"overview\">\n <AssetOverviewContent attributes={overview.attributes} hasTemplateData={overview.hasTemplateData} isDisplayAttr={overview.isDisplayAttr} />\n </TabsContent>\n\n {config.market ? (\n <TabsContent value=\"markets\">\n <AssetMarketsTab\n activeListings={market.activeListings}\n activeBids={market.activeBids}\n walletAddress={walletAddress ?? undefined}\n isOwner={market.isOwner}\n isProcessing={actions.isProcessing}\n onBuyClick={actions.buy}\n onCancelClick={actions.cancel}\n onAcceptClick={actions.acceptBid}\n />\n </TabsContent>\n ) : null}\n\n <TabsContent value=\"provenance\">\n <AssetProvenanceTab\n history={history as ApiActivity[]}\n contract={contract}\n tokenId={tokenId}\n remixCount={remixCount}\n originalCreator={fullTokenData?.originalCreator}\n registeredAt={fullTokenData?.registeredAt}\n />\n </TabsContent>\n </Tabs>\n </PageContainer>\n\n <AssetLightbox open={lightboxOpen} onOpenChange={setLightboxOpen} image={image} alt={name} />\n <FloatingCommentsButton onClick={() => setCommentOpen(true)} commentTotal={commentTotal} />\n <AssetCommentsDialog\n open={commentOpen}\n onOpenChange={setCommentOpen}\n contract={contract}\n tokenId={tokenId}\n name={name}\n imageUrl={image}\n commentTotal={commentTotal}\n Comments={Comments}\n {...config.accents}\n />\n {ReportDialog ? <ReportDialog open={reportOpen} onOpenChange={setReportOpen} target={{ type: \"TOKEN\", contract: token.contractAddress, tokenId: token.tokenId, name }} /> : null}\n {actions.dialogs}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;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I;AAAA,WAC1F;AAAA,QAEA,4CAAC,2BAAY,OAAM,YACjB,sDAAC,sDAAqB,YAAY,SAAS,YAAY,iBAAiB,SAAS,iBAAiB,eAAe,SAAS,eAAe,GAC3I;AAAA,QAEC,OAAO,SACN,4CAAC,2BAAY,OAAM,WACjB;AAAA,UAAC;AAAA;AAAA,YACC,gBAAgB,OAAO;AAAA,YACvB,YAAY,OAAO;AAAA,YACnB,eAAe,iBAAiB;AAAA,YAChC,SAAS,OAAO;AAAA,YAChB,cAAc,QAAQ;AAAA,YACtB,YAAY,QAAQ;AAAA,YACpB,eAAe,QAAQ;AAAA,YACvB,eAAe,QAAQ;AAAA;AAAA,QACzB,GACF,IACE;AAAA,QAEJ,4CAAC,2BAAY,OAAM,cACjB;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,iBAAiB,eAAe;AAAA,YAChC,cAAc,eAAe;AAAA;AAAA,QAC/B,GACF;AAAA,SACF;AAAA,OACF;AAAA,IAEA,4CAAC,uCAAc,MAAM,cAAc,cAAc,iBAAiB,OAAc,KAAK,MAAM;AAAA,IAC3F,4CAAC,0DAAuB,SAAS,MAAM,eAAe,IAAI,GAAG,cAA4B;AAAA,IACzF;AAAA,MAAC;AAAA;AAAA,QACC,MAAM;AAAA,QACN,cAAc;AAAA,QACd;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU;AAAA,QACV;AAAA,QACA;AAAA,QACC,GAAG,OAAO;AAAA;AAAA,IACb;AAAA,IACC,eAAe,4CAAC,gBAAa,MAAM,YAAY,cAAc,eAAe,QAAQ,EAAE,MAAM,SAAS,UAAU,MAAM,iBAAiB,SAAS,MAAM,SAAS,KAAK,GAAG,IAAK;AAAA,IAC3K,QAAQ;AAAA,KACX;AAEJ;","names":["import_sdk"]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/asset-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState, type ComponentType, type ReactNode } from \"react\";\nimport { motion, useReducedMotion } from \"framer-motion\";\nimport { Award } from \"lucide-react\";\nimport { assetHref, collectionHref, getDerivativesTerm, getService, resolveRemixPolicy, type ApiActivity, type ApiCollection, type ApiOrder, type ApiToken, type Chain } from \"@medialane/sdk\";\nimport { useRouter } from \"./router.js\";\nimport { PageContainer } from \"./page-container.js\";\nimport { PageBackdrop } from \"./media-header.js\";\nimport { AssetHeaderBlock, AssetMediaColumn, AssetOwnerRow } from \"./asset-top-sections.js\";\nimport { AssetPublication } from \"./asset-publication.js\";\nimport { IpTypeBadge } from \"./ip-type-badge.js\";\nimport { AssetRelatedList, AssetVideo, VIDEO_EMBED_TRAITS, videoEmbed } from \"./asset-video.js\";\nimport { AssetAudio, AUDIO_EMBED_TRAITS, audioEmbed } from \"./asset-audio.js\";\nimport { AssetUtilityIcons } from \"./asset-utility-icons.js\";\nimport { AssetMarketplacePanel } from \"./asset-marketplace-panel.js\";\nimport { AssetOwnersPanel } from \"./asset-owners-panel.js\";\nimport { AssetCollectionBar } from \"./asset-collection-bar.js\";\nimport { AssetOverviewContent } from \"./asset-overview-content.js\";\nimport { AssetMarketsTab } from \"./asset-markets-tab.js\";\nimport { AssetProvenanceTab } from \"./asset-provenance-tab.js\";\nimport { AssetLightbox } from \"./asset-lightbox.js\";\nimport { AssetUnavailable } from \"./asset-unavailable.js\";\nimport { HiddenContentBanner } from \"./hidden-content-banner.js\";\nimport { DropTokenLink } from \"./drop/drop-token-link.js\";\nimport { FloatingCommentsButton } from \"./floating-comments-button.js\";\nimport { AssetCommentsDialog, type AssetCommentsProps } from \"./asset-comments-dialog.js\";\nimport { MembershipPanel, TicketPanel, type AssetTypePanelProps } from \"./asset-type-panels.js\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./tabs.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useToken, useTokenBalance, useTokenHistory } from \"../utils/use-tokens.js\";\nimport { useCollection, useNearbyCollectionTokens } from \"../utils/use-collections.js\";\nimport { useTokenListings } from \"../utils/use-orders.js\";\nimport { useTokenRemixes } from \"../utils/use-remix-offers.js\";\nimport { useComments } from \"../utils/use-comments.js\";\nimport { useFullTokenData } from \"../utils/use-full-token-data.js\";\nimport { useAssetMarketState } from \"../utils/asset-market-state.js\";\nimport { assetAttributes } from \"../utils/asset-attributes.js\";\nimport { ASSET_ACCENTS } from \"../utils/asset-accents.js\";\nimport { isLivingRenderCollection } from \"../data/living-render-collections.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport { profileHref } from \"@medialane/sdk\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nexport type AssetKind = \"standard\" | \"edition\" | \"ticket\" | \"membership\" | \"pop\";\n\nexport interface AssetMarketContext {\n contract: string;\n tokenId: string;\n tokenName: string;\n tokenImage: string | null;\n tokenStandard: \"ERC721\" | \"ERC1155\" | \"UNKNOWN\";\n activeListings: ApiOrder[];\n quantityOwned?: string;\n mutateListings: () => void;\n}\n\nexport interface AssetMarketActions {\n isProcessing: boolean;\n buy: (order: ApiOrder) => void;\n list: () => void;\n offer: () => void;\n transfer: () => void;\n cancel: (order: ApiOrder) => void;\n acceptBid: (order: ApiOrder) => void;\n dialogs: ReactNode;\n}\n\nexport interface AssetPageSlots {\n useMarketActions: (context: AssetMarketContext) => AssetMarketActions;\n Comments: ComponentType<AssetCommentsProps>;\n PopBurn: ComponentType<{ collectionAddress: string; tokenId: string }>;\n}\n\ninterface KindConfig {\n namePrefix: string;\n accents: (typeof ASSET_ACCENTS)[keyof typeof ASSET_ACCENTS];\n market: boolean;\n remix: boolean;\n Panel?: ComponentType<AssetTypePanelProps>;\n}\n\nconst KINDS: Record<AssetKind, KindConfig> = {\n standard: { namePrefix: \"Token\", accents: ASSET_ACCENTS.standard, market: true, remix: true },\n edition: { namePrefix: \"Edition\", accents: ASSET_ACCENTS.edition, market: true, remix: false },\n ticket: { namePrefix: \"Ticket\", accents: ASSET_ACCENTS.ticket, market: true, remix: false, Panel: TicketPanel },\n membership: { namePrefix: \"Membership\", accents: ASSET_ACCENTS.membership, market: true, remix: false, Panel: MembershipPanel },\n pop: { namePrefix: \"POP\", accents: ASSET_ACCENTS.standard, market: false, remix: false },\n};\n\nconst PUBLICATION_TYPES = new Set([\"publications\", \"posts\"]);\n\nconst VARIANT_KINDS: Partial<Record<string, AssetKind>> = { edition: \"edition\", ticket: \"ticket\", club: \"membership\", pop: \"pop\" };\n\nexport function detectAssetKind(service: string | null | undefined, standard: string | null | undefined): AssetKind {\n const variant = getService(service)?.uiVariant;\n if (variant) return VARIANT_KINDS[variant] ?? \"standard\";\n return standard === \"ERC1155\" ? \"edition\" : \"standard\";\n}\n\nexport function AssetPageSkeleton() {\n return (\n <PageContainer className=\"pt-20 pb-8\">\n <div className=\"grid grid-cols-1 lg:grid-cols-2 lg:gap-10 gap-6 items-start\">\n <Skeleton className=\"aspect-square w-full rounded-3xl\" />\n <div className=\"space-y-6\">\n <div className=\"space-y-3\">\n <Skeleton className=\"h-5 w-24 rounded-full\" />\n <Skeleton className=\"h-9 w-3/4\" />\n <Skeleton className=\"h-4 w-full\" />\n <Skeleton className=\"h-4 w-2/3\" />\n </div>\n <Skeleton className=\"h-[54px] w-full rounded-2xl\" />\n <div className=\"flex gap-2\">\n {Array.from({ length: 3 }).map((_, i) => <Skeleton key={i} className=\"h-[46px] flex-1 rounded-[13px]\" />)}\n </div>\n <Skeleton className=\"h-16 w-full rounded-2xl\" />\n </div>\n </div>\n </PageContainer>\n );\n}\n\nexport interface AssetPageProps {\n contract: string;\n tokenId: string;\n slots: AssetPageSlots;\n}\n\nexport function AssetPage({ contract, tokenId, slots }: AssetPageProps) {\n const { token, isLoading, isIndexing } = useToken(contract, tokenId);\n const { collection, isLoading: collectionLoading } = useCollection(contract);\n if (isLoading || collectionLoading) return <AssetPageSkeleton />;\n if (!token) return <AssetUnavailable isIndexing={isIndexing} />;\n const kind = detectAssetKind(collection?.service, collection?.standard ?? token.standard);\n return <AssetPageView contract={contract} tokenId={tokenId} token={token} collection={collection ?? null} kind={kind} slots={slots} />;\n}\n\nfunction AssetPageView({\n contract,\n tokenId,\n token,\n collection,\n kind,\n slots,\n}: {\n contract: string;\n tokenId: string;\n token: ApiToken & { isHidden?: boolean };\n collection: ApiCollection | null;\n kind: AssetKind;\n slots: AssetPageSlots;\n}) {\n const resolveImage = useImageUrl();\n const config = KINDS[kind];\n const router = useRouter();\n const shouldReduce = useReducedMotion();\n const { walletAddress, ReportDialog } = useMedialaneApp();\n\n const { listings, mutate: mutateListings, isLoading: listingsLoading } = useTokenListings(contract, tokenId);\n const { history } = useTokenHistory(contract, tokenId);\n const { tokens: collectionTokens } = useNearbyCollectionTokens(contract, tokenId);\n const { total: commentTotal } = useComments(contract, tokenId);\n const { total: remixCount } = useTokenRemixes(contract, tokenId);\n const { data: fullTokenData } = useFullTokenData(contract, tokenId);\n const { amount: walletBalance } = useTokenBalance(contract, tokenId, walletAddress);\n const market = useAssetMarketState({ token, collection, listings, history: history as ApiActivity[], walletAddress, walletBalance });\n\n const [reportOpen, setReportOpen] = useState(false);\n const [commentOpen, setCommentOpen] = useState(false);\n const [lightboxOpen, setLightboxOpen] = useState(false);\n const [imgError, setImgError] = useState(false);\n\n const name = token.metadata?.name || `${config.namePrefix} #${token.tokenId}`;\n const image = resolveImage(token.metadata?.image);\n const tokenStandard = kind === \"standard\" || kind === \"pop\"\n ? ((token.standard ?? collection?.standard ?? \"UNKNOWN\") as AssetMarketContext[\"tokenStandard\"])\n : \"ERC1155\";\n\n const actions = slots.useMarketActions({\n contract,\n tokenId,\n tokenName: name,\n tokenImage: image,\n tokenStandard,\n activeListings: market.activeListings,\n quantityOwned: market.quantityOwned,\n mutateListings,\n });\n\n const autoActionRef = useRef(false);\n useEffect(() => {\n if (autoActionRef.current || !config.market || !market.isOwner) return;\n const action = new URLSearchParams(window.location.search).get(\"action\");\n if (action === \"list\") actions.list();\n else if (action === \"transfer\") actions.transfer();\n else return;\n autoActionRef.current = true;\n }, [config.market, market.isOwner, actions]);\n\n const { attributes, hasTemplateData, isDisplayAttr, parentContract, parentTokenId } = assetAttributes(token.metadata?.attributes);\n const remixPolicy = resolveRemixPolicy({\n parentNoDerivatives: getDerivativesTerm(token.metadata?.attributes) === \"Not Allowed\",\n viewerIsParentOwner: market.isOwner,\n dealAvailable: !!getService(collection?.service),\n });\n const holders = token.balances ?? [];\n const ownerAddress = !market.isERC1155 ? (holders[0]?.owner ?? token.owner ?? null) : null;\n const marketCount = market.activeListings.length + market.activeBids.length;\n const { Panel } = config;\n const { Comments, PopBurn } = slots;\n\n const articleText = token.metadata?.description?.trim() || null;\n const video = (token.metadata?.ipType ?? \"\").toLowerCase() === \"video\" ? videoEmbed(attributes) : null;\n const audio = (token.metadata?.ipType ?? \"\").toLowerCase() === \"audio\" ? audioEmbed(attributes) : null;\n const isPublication = !!articleText && PUBLICATION_TYPES.has((token.metadata?.ipType ?? \"\").toLowerCase());\n const publisherName = collection?.name ?? contract.slice(0, 8) + \"…\";\n const websiteUrl = attributes.find((a) => a.trait_type === \"Website\")?.value ?? null;\n const overview = isPublication\n ? assetAttributes(attributes.filter((a) => a.trait_type !== \"Website\"))\n : video || audio\n ? assetAttributes(attributes.filter((a) => !VIDEO_EMBED_TRAITS.has(a.trait_type ?? \"\") && !AUDIO_EMBED_TRAITS.has(a.trait_type ?? \"\")))\n : { attributes, hasTemplateData, isDisplayAttr };\n\n const marketBlock = (\n <>\n {Panel ? <Panel contract={contract} tokenId={tokenId} quantityOwned={market.quantityOwned} /> : null}\n\n {config.market ? (\n <AssetMarketplacePanel\n asset={token}\n compact={isPublication || !!video || !!audio}\n cheapest={market.cheapest}\n usdValue={market.cheapestUsd}\n isOwner={market.isOwner}\n isProcessing={actions.isProcessing}\n isERC1155={market.isERC1155}\n canListMoreEditions={market.canListMoreEditions}\n isMarketLoading={listingsLoading}\n myListing={market.myListing}\n activeBids={market.activeBids}\n remixEnabled={config.remix && remixPolicy.canRemixDirect}\n showDealOption={config.remix && remixPolicy.showDealOption}\n onCancelClick={actions.cancel}\n onAcceptBid={actions.acceptBid}\n onOpenListing={actions.list}\n onOpenTransfer={actions.transfer}\n onOpenPurchase={actions.buy}\n onOpenOffer={actions.offer}\n onOpenRemix={() => router.push(`/create/remix/${contract}/${tokenId}`)}\n />\n ) : null}\n\n {kind === \"pop\" && market.isOwner ? <PopBurn collectionAddress={contract} tokenId={tokenId} /> : null}\n\n {market.isERC1155 && holders.length > 0 ? (\n <AssetOwnersPanel balances={holders} total={token.holderCount} editions={Number(token.supply ?? 0)} />\n ) : null}\n </>\n );\n\n const detailsBlock = (\n <div className=\"pt-5 space-y-5\">\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n {collection?.service === \"drop-collection\" ? <DropTokenLink contract={contract} name={collection.name ?? null} /> : null}\n <AssetCollectionBar\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n currentTokenId={tokenId}\n siblingTokens={collectionTokens.map((t) => ({\n tokenId: t.tokenId,\n image: resolveImage(t.metadata?.image),\n }))}\n onNavigate={(id) => router.push(assetHref(\"STARKNET\", contract, id))}\n floorPriceRaw={collection?.floorPrice}\n />\n <div className=\"-ml-3\">\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n </div>\n </div>\n );\n\n return (\n <div className=\"relative z-0 min-h-screen\">\n {token.isHidden ? <HiddenContentBanner /> : null}\n <PageBackdrop image={image} />\n\n <PageContainer className={isPublication ? \"pt-20 space-y-8 pb-8 lg:px-16 xl:px-24\" : \"pt-20 space-y-8 pb-8\"}>\n {video ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-12 gap-8 items-start\">\n <AssetVideo\n name={name}\n embedSrc={video.src}\n embedLabel={video.label}\n description={token.metadata?.description}\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n utilities={\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n }\n />\n <aside className=\"space-y-6 min-w-0\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Video\"} size=\"md\" showLabel />\n {marketBlock}\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n <AssetRelatedList\n title={publisherName}\n titleHref={collectionHref(\"STARKNET\", contract)}\n items={collectionTokens\n .filter((t) => String(t.tokenId) !== String(tokenId))\n .map((t) => ({\n tokenId: t.tokenId,\n name: t.metadata?.name || `${config.namePrefix} #${t.tokenId}`,\n image: resolveImage(t.metadata?.image),\n href: assetHref(\"STARKNET\", contract, t.tokenId),\n }))}\n />\n </aside>\n </div>\n ) : audio ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-12 gap-8 items-start\">\n <AssetAudio\n name={name}\n image={image}\n embedSrc={audio.src}\n embedLabel={audio.label}\n description={token.metadata?.description}\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n utilities={\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n }\n />\n <aside className=\"space-y-6 min-w-0\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Audio\"} size=\"md\" showLabel />\n {marketBlock}\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n <AssetRelatedList\n title={publisherName}\n titleHref={collectionHref(\"STARKNET\", contract)}\n shape=\"square\"\n items={collectionTokens\n .filter((t) => String(t.tokenId) !== String(tokenId))\n .map((t) => ({\n tokenId: t.tokenId,\n name: t.metadata?.name || `${config.namePrefix} #${t.tokenId}`,\n image: resolveImage(t.metadata?.image),\n href: assetHref(\"STARKNET\", contract, t.tokenId),\n }))}\n />\n </aside>\n </div>\n ) : isPublication ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-20 gap-8 items-start\">\n <AssetPublication\n name={name}\n text={articleText!}\n image={image}\n imgError={imgError}\n onImageError={() => setImgError(true)}\n onZoom={() => setLightboxOpen(true)}\n author={attributes.find((a) => a.trait_type === \"Author\")?.value ?? token.metadata?.author}\n websiteUrl={websiteUrl}\n />\n <aside className=\"space-y-6 min-w-0 lg:sticky lg:top-16\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Publications\"} size=\"md\" showLabel />\n {marketBlock}\n {detailsBlock}\n </aside>\n </div>\n ) : (\n <div className=\"grid grid-cols-1 lg:grid-cols-2 lg:gap-10 gap-8 items-start\">\n <AssetMediaColumn\n shouldReduce={Boolean(shouldReduce)}\n image={image}\n imageAlt={name}\n imgError={imgError}\n onImageError={() => setImgError(true)}\n onZoom={() => setLightboxOpen(true)}\n animationUrl={token.metadata?.animationUrl}\n live={isLivingRenderCollection(token.chain as Chain, token.contractAddress)}\n fallback={<div className=\"aspect-square bg-muted\" />}\n />\n\n <motion.div\n initial={shouldReduce ? false : { opacity: 0, y: 16 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.5, delay: 0.2 }}\n className=\"space-y-6\"\n >\n <AssetHeaderBlock\n name={name}\n description={token.metadata?.description}\n ipType={token.metadata?.ipType}\n parentContract={parentContract}\n parentTokenId={parentTokenId}\n badges={kind === \"pop\" ? (\n <span className=\"inline-flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-full border border-emerald-500/30 bg-emerald-500/10 text-emerald-500\">\n <Award className=\"h-3 w-3\" />\n POP\n </span>\n ) : null}\n />\n\n {marketBlock}\n\n {detailsBlock}\n </motion.div>\n </div>\n )}\n\n <Tabs defaultValue=\"overview\">\n <TabsList>\n <TabsTrigger value=\"overview\">Overview</TabsTrigger>\n {config.market ? <TabsTrigger value=\"markets\">Markets {marketCount > 0 && `(${marketCount})`}</TabsTrigger> : null}\n <TabsTrigger value=\"provenance\">Provenance {history.length > 0 && `(${history.length})`}</TabsTrigger>\n </TabsList>\n\n <TabsContent value=\"overview\">\n <AssetOverviewContent attributes={overview.attributes} hasTemplateData={overview.hasTemplateData} isDisplayAttr={overview.isDisplayAttr} />\n </TabsContent>\n\n {config.market ? (\n <TabsContent value=\"markets\">\n <AssetMarketsTab\n activeListings={market.activeListings}\n activeBids={market.activeBids}\n walletAddress={walletAddress ?? undefined}\n isOwner={market.isOwner}\n isProcessing={actions.isProcessing}\n onBuyClick={actions.buy}\n onCancelClick={actions.cancel}\n onAcceptClick={actions.acceptBid}\n />\n </TabsContent>\n ) : null}\n\n <TabsContent value=\"provenance\">\n <AssetProvenanceTab\n history={history as ApiActivity[]}\n contract={contract}\n tokenId={tokenId}\n remixCount={remixCount}\n originalCreator={fullTokenData?.originalCreator}\n registeredAt={fullTokenData?.registeredAt}\n />\n </TabsContent>\n </Tabs>\n </PageContainer>\n\n <AssetLightbox open={lightboxOpen} onOpenChange={setLightboxOpen} image={image} alt={name} />\n <FloatingCommentsButton onClick={() => setCommentOpen(true)} commentTotal={commentTotal} />\n <AssetCommentsDialog\n open={commentOpen}\n onOpenChange={setCommentOpen}\n contract={contract}\n tokenId={tokenId}\n name={name}\n imageUrl={image}\n commentTotal={commentTotal}\n Comments={Comments}\n {...config.accents}\n />\n {ReportDialog ? <ReportDialog open={reportOpen} onOpenChange={setReportOpen} target={{ type: \"TOKEN\", contract: token.contractAddress, tokenId: token.tokenId, name }} /> : null}\n {actions.dialogs}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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set-top-s
|
|
|
11
11
|
import { AssetPublication } from "./asset-publication.js";
|
|
12
12
|
import { IpTypeBadge } from "./ip-type-badge.js";
|
|
13
13
|
import { AssetRelatedList, AssetVideo, VIDEO_EMBED_TRAITS, videoEmbed } from "./asset-video.js";
|
|
14
|
+
import { AssetAudio, AUDIO_EMBED_TRAITS, audioEmbed } from "./asset-audio.js";
|
|
14
15
|
import { AssetUtilityIcons } from "./asset-utility-icons.js";
|
|
15
16
|
import { AssetMarketplacePanel } from "./asset-marketplace-panel.js";
|
|
16
17
|
import { AssetOwnersPanel } from "./asset-owners-panel.js";
|
|
@@ -139,17 +140,18 @@ function AssetPageView({
|
|
|
139
140
|
const { Comments, PopBurn } = slots;
|
|
140
141
|
const articleText = token.metadata?.description?.trim() || null;
|
|
141
142
|
const video = (token.metadata?.ipType ?? "").toLowerCase() === "video" ? videoEmbed(attributes) : null;
|
|
143
|
+
const audio = (token.metadata?.ipType ?? "").toLowerCase() === "audio" ? audioEmbed(attributes) : null;
|
|
142
144
|
const isPublication = !!articleText && PUBLICATION_TYPES.has((token.metadata?.ipType ?? "").toLowerCase());
|
|
143
145
|
const publisherName = collection?.name ?? contract.slice(0, 8) + "\u2026";
|
|
144
146
|
const websiteUrl = attributes.find((a) => a.trait_type === "Website")?.value ?? null;
|
|
145
|
-
const overview = isPublication ? assetAttributes(attributes.filter((a) => a.trait_type !== "Website")) : video ? assetAttributes(attributes.filter((a) => !VIDEO_EMBED_TRAITS.has(a.trait_type ?? ""))) : { attributes, hasTemplateData, isDisplayAttr };
|
|
147
|
+
const overview = isPublication ? assetAttributes(attributes.filter((a) => a.trait_type !== "Website")) : video || audio ? assetAttributes(attributes.filter((a) => !VIDEO_EMBED_TRAITS.has(a.trait_type ?? "") && !AUDIO_EMBED_TRAITS.has(a.trait_type ?? ""))) : { attributes, hasTemplateData, isDisplayAttr };
|
|
146
148
|
const marketBlock = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
147
149
|
Panel ? /* @__PURE__ */ jsx(Panel, { contract, tokenId, quantityOwned: market.quantityOwned }) : null,
|
|
148
150
|
config.market ? /* @__PURE__ */ jsx(
|
|
149
151
|
AssetMarketplacePanel,
|
|
150
152
|
{
|
|
151
153
|
asset: token,
|
|
152
|
-
compact: isPublication || !!video,
|
|
154
|
+
compact: isPublication || !!video || !!audio,
|
|
153
155
|
cheapest: market.cheapest,
|
|
154
156
|
usdValue: market.cheapestUsd,
|
|
155
157
|
isOwner: market.isOwner,
|
|
@@ -243,6 +245,47 @@ function AssetPageView({
|
|
|
243
245
|
}
|
|
244
246
|
)
|
|
245
247
|
] })
|
|
248
|
+
] }) : audio ? /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-12 gap-8 items-start", children: [
|
|
249
|
+
/* @__PURE__ */ jsx(
|
|
250
|
+
AssetAudio,
|
|
251
|
+
{
|
|
252
|
+
name,
|
|
253
|
+
image,
|
|
254
|
+
embedSrc: audio.src,
|
|
255
|
+
embedLabel: audio.label,
|
|
256
|
+
description: token.metadata?.description,
|
|
257
|
+
collectionName: publisherName,
|
|
258
|
+
collectionImage: resolveImage(collection?.image),
|
|
259
|
+
collectionHref: collectionHref("STARKNET", contract),
|
|
260
|
+
utilities: /* @__PURE__ */ jsx(
|
|
261
|
+
AssetUtilityIcons,
|
|
262
|
+
{
|
|
263
|
+
contractExplorerHref: `${EXPLORER_URL}/contract/${token.contractAddress}`,
|
|
264
|
+
shareTitle: name,
|
|
265
|
+
onReportClick: () => setReportOpen(true)
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
/* @__PURE__ */ jsxs("aside", { className: "space-y-6 min-w-0", children: [
|
|
271
|
+
/* @__PURE__ */ jsx(IpTypeBadge, { ipType: token.metadata?.ipType ?? "Audio", size: "md", showLabel: true }),
|
|
272
|
+
marketBlock,
|
|
273
|
+
ownerAddress ? /* @__PURE__ */ jsx(AssetOwnerRow, { ownerAddress, ownerHref: profileHref({ address: ownerAddress }) }) : null,
|
|
274
|
+
/* @__PURE__ */ jsx(
|
|
275
|
+
AssetRelatedList,
|
|
276
|
+
{
|
|
277
|
+
title: publisherName,
|
|
278
|
+
titleHref: collectionHref("STARKNET", contract),
|
|
279
|
+
shape: "square",
|
|
280
|
+
items: collectionTokens.filter((t) => String(t.tokenId) !== String(tokenId)).map((t) => ({
|
|
281
|
+
tokenId: t.tokenId,
|
|
282
|
+
name: t.metadata?.name || `${config.namePrefix} #${t.tokenId}`,
|
|
283
|
+
image: resolveImage(t.metadata?.image),
|
|
284
|
+
href: assetHref("STARKNET", contract, t.tokenId)
|
|
285
|
+
}))
|
|
286
|
+
}
|
|
287
|
+
)
|
|
288
|
+
] })
|
|
246
289
|
] }) : isPublication ? /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-20 gap-8 items-start", children: [
|
|
247
290
|
/* @__PURE__ */ jsx(
|
|
248
291
|
AssetPublication,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/asset-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState, type ComponentType, type ReactNode } from \"react\";\nimport { motion, useReducedMotion } from \"framer-motion\";\nimport { Award } from \"lucide-react\";\nimport { assetHref, collectionHref, getDerivativesTerm, getService, resolveRemixPolicy, type ApiActivity, type ApiCollection, type ApiOrder, type ApiToken, type Chain } from \"@medialane/sdk\";\nimport { useRouter } from \"./router.js\";\nimport { PageContainer } from \"./page-container.js\";\nimport { PageBackdrop } from \"./media-header.js\";\nimport { AssetHeaderBlock, AssetMediaColumn, AssetOwnerRow } from \"./asset-top-sections.js\";\nimport { AssetPublication } from \"./asset-publication.js\";\nimport { IpTypeBadge } from \"./ip-type-badge.js\";\nimport { AssetRelatedList, AssetVideo, VIDEO_EMBED_TRAITS, videoEmbed } from \"./asset-video.js\";\nimport { AssetUtilityIcons } from \"./asset-utility-icons.js\";\nimport { AssetMarketplacePanel } from \"./asset-marketplace-panel.js\";\nimport { AssetOwnersPanel } from \"./asset-owners-panel.js\";\nimport { AssetCollectionBar } from \"./asset-collection-bar.js\";\nimport { AssetOverviewContent } from \"./asset-overview-content.js\";\nimport { AssetMarketsTab } from \"./asset-markets-tab.js\";\nimport { AssetProvenanceTab } from \"./asset-provenance-tab.js\";\nimport { AssetLightbox } from \"./asset-lightbox.js\";\nimport { AssetUnavailable } from \"./asset-unavailable.js\";\nimport { HiddenContentBanner } from \"./hidden-content-banner.js\";\nimport { DropTokenLink } from \"./drop/drop-token-link.js\";\nimport { FloatingCommentsButton } from \"./floating-comments-button.js\";\nimport { AssetCommentsDialog, type AssetCommentsProps } from \"./asset-comments-dialog.js\";\nimport { MembershipPanel, TicketPanel, type AssetTypePanelProps } from \"./asset-type-panels.js\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./tabs.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useToken, useTokenBalance, useTokenHistory } from \"../utils/use-tokens.js\";\nimport { useCollection, useNearbyCollectionTokens } from \"../utils/use-collections.js\";\nimport { useTokenListings } from \"../utils/use-orders.js\";\nimport { useTokenRemixes } from \"../utils/use-remix-offers.js\";\nimport { useComments } from \"../utils/use-comments.js\";\nimport { useFullTokenData } from \"../utils/use-full-token-data.js\";\nimport { useAssetMarketState } from \"../utils/asset-market-state.js\";\nimport { assetAttributes } from \"../utils/asset-attributes.js\";\nimport { ASSET_ACCENTS } from \"../utils/asset-accents.js\";\nimport { isLivingRenderCollection } from \"../data/living-render-collections.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport { profileHref } from \"@medialane/sdk\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nexport type AssetKind = \"standard\" | \"edition\" | \"ticket\" | \"membership\" | \"pop\";\n\nexport interface AssetMarketContext {\n contract: string;\n tokenId: string;\n tokenName: string;\n tokenImage: string | null;\n tokenStandard: \"ERC721\" | \"ERC1155\" | \"UNKNOWN\";\n activeListings: ApiOrder[];\n quantityOwned?: string;\n mutateListings: () => void;\n}\n\nexport interface AssetMarketActions {\n isProcessing: boolean;\n buy: (order: ApiOrder) => void;\n list: () => void;\n offer: () => void;\n transfer: () => void;\n cancel: (order: ApiOrder) => void;\n acceptBid: (order: ApiOrder) => void;\n dialogs: ReactNode;\n}\n\nexport interface AssetPageSlots {\n useMarketActions: (context: AssetMarketContext) => AssetMarketActions;\n Comments: ComponentType<AssetCommentsProps>;\n PopBurn: ComponentType<{ collectionAddress: string; tokenId: string }>;\n}\n\ninterface KindConfig {\n namePrefix: string;\n accents: (typeof ASSET_ACCENTS)[keyof typeof ASSET_ACCENTS];\n market: boolean;\n remix: boolean;\n Panel?: ComponentType<AssetTypePanelProps>;\n}\n\nconst KINDS: Record<AssetKind, KindConfig> = {\n standard: { namePrefix: \"Token\", accents: ASSET_ACCENTS.standard, market: true, remix: true },\n edition: { namePrefix: \"Edition\", accents: ASSET_ACCENTS.edition, market: true, remix: false },\n ticket: { namePrefix: \"Ticket\", accents: ASSET_ACCENTS.ticket, market: true, remix: false, Panel: TicketPanel },\n membership: { namePrefix: \"Membership\", accents: ASSET_ACCENTS.membership, market: true, remix: false, Panel: MembershipPanel },\n pop: { namePrefix: \"POP\", accents: ASSET_ACCENTS.standard, market: false, remix: false },\n};\n\nconst PUBLICATION_TYPES = new Set([\"publications\", \"posts\"]);\n\nconst VARIANT_KINDS: Partial<Record<string, AssetKind>> = { edition: \"edition\", ticket: \"ticket\", club: \"membership\", pop: \"pop\" };\n\nexport function detectAssetKind(service: string | null | undefined, standard: string | null | undefined): AssetKind {\n const variant = getService(service)?.uiVariant;\n if (variant) return VARIANT_KINDS[variant] ?? \"standard\";\n return standard === \"ERC1155\" ? \"edition\" : \"standard\";\n}\n\nexport function AssetPageSkeleton() {\n return (\n <PageContainer className=\"pt-20 pb-8\">\n <div className=\"grid grid-cols-1 lg:grid-cols-2 lg:gap-10 gap-6 items-start\">\n <Skeleton className=\"aspect-square w-full rounded-3xl\" />\n <div className=\"space-y-6\">\n <div className=\"space-y-3\">\n <Skeleton className=\"h-5 w-24 rounded-full\" />\n <Skeleton className=\"h-9 w-3/4\" />\n <Skeleton className=\"h-4 w-full\" />\n <Skeleton className=\"h-4 w-2/3\" />\n </div>\n <Skeleton className=\"h-[54px] w-full rounded-2xl\" />\n <div className=\"flex gap-2\">\n {Array.from({ length: 3 }).map((_, i) => <Skeleton key={i} className=\"h-[46px] flex-1 rounded-[13px]\" />)}\n </div>\n <Skeleton className=\"h-16 w-full rounded-2xl\" />\n </div>\n </div>\n </PageContainer>\n );\n}\n\nexport interface AssetPageProps {\n contract: string;\n tokenId: string;\n slots: AssetPageSlots;\n}\n\nexport function AssetPage({ contract, tokenId, slots }: AssetPageProps) {\n const { token, isLoading, isIndexing } = useToken(contract, tokenId);\n const { collection, isLoading: collectionLoading } = useCollection(contract);\n if (isLoading || collectionLoading) return <AssetPageSkeleton />;\n if (!token) return <AssetUnavailable isIndexing={isIndexing} />;\n const kind = detectAssetKind(collection?.service, collection?.standard ?? token.standard);\n return <AssetPageView contract={contract} tokenId={tokenId} token={token} collection={collection ?? null} kind={kind} slots={slots} />;\n}\n\nfunction AssetPageView({\n contract,\n tokenId,\n token,\n collection,\n kind,\n slots,\n}: {\n contract: string;\n tokenId: string;\n token: ApiToken & { isHidden?: boolean };\n collection: ApiCollection | null;\n kind: AssetKind;\n slots: AssetPageSlots;\n}) {\n const resolveImage = useImageUrl();\n const config = KINDS[kind];\n const router = useRouter();\n const shouldReduce = useReducedMotion();\n const { walletAddress, ReportDialog } = useMedialaneApp();\n\n const { listings, mutate: mutateListings, isLoading: listingsLoading } = useTokenListings(contract, tokenId);\n const { history } = useTokenHistory(contract, tokenId);\n const { tokens: collectionTokens } = useNearbyCollectionTokens(contract, tokenId);\n const { total: commentTotal } = useComments(contract, tokenId);\n const { total: remixCount } = useTokenRemixes(contract, tokenId);\n const { data: fullTokenData } = useFullTokenData(contract, tokenId);\n const { amount: walletBalance } = useTokenBalance(contract, tokenId, walletAddress);\n const market = useAssetMarketState({ token, collection, listings, history: history as ApiActivity[], walletAddress, walletBalance });\n\n const [reportOpen, setReportOpen] = useState(false);\n const [commentOpen, setCommentOpen] = useState(false);\n const [lightboxOpen, setLightboxOpen] = useState(false);\n const [imgError, setImgError] = useState(false);\n\n const name = token.metadata?.name || `${config.namePrefix} #${token.tokenId}`;\n const image = resolveImage(token.metadata?.image);\n const tokenStandard = kind === \"standard\" || kind === \"pop\"\n ? ((token.standard ?? collection?.standard ?? \"UNKNOWN\") as AssetMarketContext[\"tokenStandard\"])\n : \"ERC1155\";\n\n const actions = slots.useMarketActions({\n contract,\n tokenId,\n tokenName: name,\n tokenImage: image,\n tokenStandard,\n activeListings: market.activeListings,\n quantityOwned: market.quantityOwned,\n mutateListings,\n });\n\n const autoActionRef = useRef(false);\n useEffect(() => {\n if (autoActionRef.current || !config.market || !market.isOwner) return;\n const action = new URLSearchParams(window.location.search).get(\"action\");\n if (action === \"list\") actions.list();\n else if (action === \"transfer\") actions.transfer();\n else return;\n autoActionRef.current = true;\n }, [config.market, market.isOwner, actions]);\n\n const { attributes, hasTemplateData, isDisplayAttr, parentContract, parentTokenId } = assetAttributes(token.metadata?.attributes);\n const remixPolicy = resolveRemixPolicy({\n parentNoDerivatives: getDerivativesTerm(token.metadata?.attributes) === \"Not Allowed\",\n viewerIsParentOwner: market.isOwner,\n dealAvailable: !!getService(collection?.service),\n });\n const holders = token.balances ?? [];\n const ownerAddress = !market.isERC1155 ? (holders[0]?.owner ?? token.owner ?? null) : null;\n const marketCount = market.activeListings.length + market.activeBids.length;\n const { Panel } = config;\n const { Comments, PopBurn } = slots;\n\n const articleText = token.metadata?.description?.trim() || null;\n const video = (token.metadata?.ipType ?? \"\").toLowerCase() === \"video\" ? videoEmbed(attributes) : null;\n const isPublication = !!articleText && PUBLICATION_TYPES.has((token.metadata?.ipType ?? \"\").toLowerCase());\n const publisherName = collection?.name ?? contract.slice(0, 8) + \"…\";\n const websiteUrl = attributes.find((a) => a.trait_type === \"Website\")?.value ?? null;\n const overview = isPublication\n ? assetAttributes(attributes.filter((a) => a.trait_type !== \"Website\"))\n : video\n ? assetAttributes(attributes.filter((a) => !VIDEO_EMBED_TRAITS.has(a.trait_type ?? \"\")))\n : { attributes, hasTemplateData, isDisplayAttr };\n\n const marketBlock = (\n <>\n {Panel ? <Panel contract={contract} tokenId={tokenId} quantityOwned={market.quantityOwned} /> : null}\n\n {config.market ? (\n <AssetMarketplacePanel\n asset={token}\n compact={isPublication || !!video}\n cheapest={market.cheapest}\n usdValue={market.cheapestUsd}\n isOwner={market.isOwner}\n isProcessing={actions.isProcessing}\n isERC1155={market.isERC1155}\n canListMoreEditions={market.canListMoreEditions}\n isMarketLoading={listingsLoading}\n myListing={market.myListing}\n activeBids={market.activeBids}\n remixEnabled={config.remix && remixPolicy.canRemixDirect}\n showDealOption={config.remix && remixPolicy.showDealOption}\n onCancelClick={actions.cancel}\n onAcceptBid={actions.acceptBid}\n onOpenListing={actions.list}\n onOpenTransfer={actions.transfer}\n onOpenPurchase={actions.buy}\n onOpenOffer={actions.offer}\n onOpenRemix={() => router.push(`/create/remix/${contract}/${tokenId}`)}\n />\n ) : null}\n\n {kind === \"pop\" && market.isOwner ? <PopBurn collectionAddress={contract} tokenId={tokenId} /> : null}\n\n {market.isERC1155 && holders.length > 0 ? (\n <AssetOwnersPanel balances={holders} total={token.holderCount} editions={Number(token.supply ?? 0)} />\n ) : null}\n </>\n );\n\n const detailsBlock = (\n <div className=\"pt-5 space-y-5\">\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n {collection?.service === \"drop-collection\" ? <DropTokenLink contract={contract} name={collection.name ?? null} /> : null}\n <AssetCollectionBar\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n currentTokenId={tokenId}\n siblingTokens={collectionTokens.map((t) => ({\n tokenId: t.tokenId,\n image: resolveImage(t.metadata?.image),\n }))}\n onNavigate={(id) => router.push(assetHref(\"STARKNET\", contract, id))}\n floorPriceRaw={collection?.floorPrice}\n />\n <div className=\"-ml-3\">\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n </div>\n </div>\n );\n\n return (\n <div className=\"relative z-0 min-h-screen\">\n {token.isHidden ? <HiddenContentBanner /> : null}\n <PageBackdrop image={image} />\n\n <PageContainer className={isPublication ? \"pt-20 space-y-8 pb-8 lg:px-16 xl:px-24\" : \"pt-20 space-y-8 pb-8\"}>\n {video ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-12 gap-8 items-start\">\n <AssetVideo\n name={name}\n embedSrc={video.src}\n embedLabel={video.label}\n description={token.metadata?.description}\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n utilities={\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n }\n />\n <aside className=\"space-y-6 min-w-0\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Video\"} size=\"md\" showLabel />\n {marketBlock}\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n <AssetRelatedList\n title={publisherName}\n titleHref={collectionHref(\"STARKNET\", contract)}\n items={collectionTokens\n .filter((t) => String(t.tokenId) !== String(tokenId))\n .map((t) => ({\n tokenId: t.tokenId,\n name: t.metadata?.name || `${config.namePrefix} #${t.tokenId}`,\n image: resolveImage(t.metadata?.image),\n href: assetHref(\"STARKNET\", contract, t.tokenId),\n }))}\n />\n </aside>\n </div>\n ) : isPublication ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-20 gap-8 items-start\">\n <AssetPublication\n name={name}\n text={articleText!}\n image={image}\n imgError={imgError}\n onImageError={() => setImgError(true)}\n onZoom={() => setLightboxOpen(true)}\n author={attributes.find((a) => a.trait_type === \"Author\")?.value ?? token.metadata?.author}\n websiteUrl={websiteUrl}\n />\n <aside className=\"space-y-6 min-w-0 lg:sticky lg:top-16\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Publications\"} size=\"md\" showLabel />\n {marketBlock}\n {detailsBlock}\n </aside>\n </div>\n ) : (\n <div className=\"grid grid-cols-1 lg:grid-cols-2 lg:gap-10 gap-8 items-start\">\n <AssetMediaColumn\n shouldReduce={Boolean(shouldReduce)}\n image={image}\n imageAlt={name}\n imgError={imgError}\n onImageError={() => setImgError(true)}\n onZoom={() => setLightboxOpen(true)}\n animationUrl={token.metadata?.animationUrl}\n live={isLivingRenderCollection(token.chain as Chain, token.contractAddress)}\n fallback={<div className=\"aspect-square bg-muted\" />}\n />\n\n <motion.div\n initial={shouldReduce ? false : { opacity: 0, y: 16 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.5, delay: 0.2 }}\n className=\"space-y-6\"\n >\n <AssetHeaderBlock\n name={name}\n description={token.metadata?.description}\n ipType={token.metadata?.ipType}\n parentContract={parentContract}\n parentTokenId={parentTokenId}\n badges={kind === \"pop\" ? (\n <span className=\"inline-flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-full border border-emerald-500/30 bg-emerald-500/10 text-emerald-500\">\n <Award className=\"h-3 w-3\" />\n POP\n </span>\n ) : null}\n />\n\n {marketBlock}\n\n {detailsBlock}\n </motion.div>\n </div>\n )}\n\n <Tabs defaultValue=\"overview\">\n <TabsList>\n <TabsTrigger value=\"overview\">Overview</TabsTrigger>\n {config.market ? <TabsTrigger value=\"markets\">Markets {marketCount > 0 && `(${marketCount})`}</TabsTrigger> : null}\n <TabsTrigger value=\"provenance\">Provenance {history.length > 0 && `(${history.length})`}</TabsTrigger>\n </TabsList>\n\n <TabsContent value=\"overview\">\n <AssetOverviewContent attributes={overview.attributes} hasTemplateData={overview.hasTemplateData} isDisplayAttr={overview.isDisplayAttr} />\n </TabsContent>\n\n {config.market ? (\n <TabsContent value=\"markets\">\n <AssetMarketsTab\n activeListings={market.activeListings}\n activeBids={market.activeBids}\n walletAddress={walletAddress ?? undefined}\n isOwner={market.isOwner}\n isProcessing={actions.isProcessing}\n onBuyClick={actions.buy}\n onCancelClick={actions.cancel}\n onAcceptClick={actions.acceptBid}\n />\n </TabsContent>\n ) : null}\n\n <TabsContent value=\"provenance\">\n <AssetProvenanceTab\n history={history as ApiActivity[]}\n contract={contract}\n tokenId={tokenId}\n remixCount={remixCount}\n originalCreator={fullTokenData?.originalCreator}\n registeredAt={fullTokenData?.registeredAt}\n />\n </TabsContent>\n </Tabs>\n </PageContainer>\n\n <AssetLightbox open={lightboxOpen} onOpenChange={setLightboxOpen} image={image} alt={name} />\n <FloatingCommentsButton onClick={() => setCommentOpen(true)} commentTotal={commentTotal} />\n <AssetCommentsDialog\n open={commentOpen}\n onOpenChange={setCommentOpen}\n contract={contract}\n tokenId={tokenId}\n name={name}\n imageUrl={image}\n commentTotal={commentTotal}\n Comments={Comments}\n {...config.accents}\n />\n {ReportDialog ? <ReportDialog open={reportOpen} onOpenChange={setReportOpen} target={{ type: \"TOKEN\", contract: token.contractAddress, tokenId: token.tokenId, name }} /> : null}\n {actions.dialogs}\n </div>\n );\n}\n"],"mappings":";AAwGQ,SAwHJ,UAxHI,KAEE,YAFF;AAtGR,SAAS,WAAW,QAAQ,gBAAoD;AAChF,SAAS,QAAQ,wBAAwB;AACzC,SAAS,aAAa;AACtB,SAAS,WAAW,gBAAgB,oBAAoB,YAAY,0BAA0G;AAC9K,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,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../../src/components/asset-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState, type ComponentType, type ReactNode } from \"react\";\nimport { motion, useReducedMotion } from \"framer-motion\";\nimport { Award } from \"lucide-react\";\nimport { assetHref, collectionHref, getDerivativesTerm, getService, resolveRemixPolicy, type ApiActivity, type ApiCollection, type ApiOrder, type ApiToken, type Chain } from \"@medialane/sdk\";\nimport { useRouter } from \"./router.js\";\nimport { PageContainer } from \"./page-container.js\";\nimport { PageBackdrop } from \"./media-header.js\";\nimport { AssetHeaderBlock, AssetMediaColumn, AssetOwnerRow } from \"./asset-top-sections.js\";\nimport { AssetPublication } from \"./asset-publication.js\";\nimport { IpTypeBadge } from \"./ip-type-badge.js\";\nimport { AssetRelatedList, AssetVideo, VIDEO_EMBED_TRAITS, videoEmbed } from \"./asset-video.js\";\nimport { AssetAudio, AUDIO_EMBED_TRAITS, audioEmbed } from \"./asset-audio.js\";\nimport { AssetUtilityIcons } from \"./asset-utility-icons.js\";\nimport { AssetMarketplacePanel } from \"./asset-marketplace-panel.js\";\nimport { AssetOwnersPanel } from \"./asset-owners-panel.js\";\nimport { AssetCollectionBar } from \"./asset-collection-bar.js\";\nimport { AssetOverviewContent } from \"./asset-overview-content.js\";\nimport { AssetMarketsTab } from \"./asset-markets-tab.js\";\nimport { AssetProvenanceTab } from \"./asset-provenance-tab.js\";\nimport { AssetLightbox } from \"./asset-lightbox.js\";\nimport { AssetUnavailable } from \"./asset-unavailable.js\";\nimport { HiddenContentBanner } from \"./hidden-content-banner.js\";\nimport { DropTokenLink } from \"./drop/drop-token-link.js\";\nimport { FloatingCommentsButton } from \"./floating-comments-button.js\";\nimport { AssetCommentsDialog, type AssetCommentsProps } from \"./asset-comments-dialog.js\";\nimport { MembershipPanel, TicketPanel, type AssetTypePanelProps } from \"./asset-type-panels.js\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./tabs.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useToken, useTokenBalance, useTokenHistory } from \"../utils/use-tokens.js\";\nimport { useCollection, useNearbyCollectionTokens } from \"../utils/use-collections.js\";\nimport { useTokenListings } from \"../utils/use-orders.js\";\nimport { useTokenRemixes } from \"../utils/use-remix-offers.js\";\nimport { useComments } from \"../utils/use-comments.js\";\nimport { useFullTokenData } from \"../utils/use-full-token-data.js\";\nimport { useAssetMarketState } from \"../utils/asset-market-state.js\";\nimport { assetAttributes } from \"../utils/asset-attributes.js\";\nimport { ASSET_ACCENTS } from \"../utils/asset-accents.js\";\nimport { isLivingRenderCollection } from \"../data/living-render-collections.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\nimport { profileHref } from \"@medialane/sdk\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nexport type AssetKind = \"standard\" | \"edition\" | \"ticket\" | \"membership\" | \"pop\";\n\nexport interface AssetMarketContext {\n contract: string;\n tokenId: string;\n tokenName: string;\n tokenImage: string | null;\n tokenStandard: \"ERC721\" | \"ERC1155\" | \"UNKNOWN\";\n activeListings: ApiOrder[];\n quantityOwned?: string;\n mutateListings: () => void;\n}\n\nexport interface AssetMarketActions {\n isProcessing: boolean;\n buy: (order: ApiOrder) => void;\n list: () => void;\n offer: () => void;\n transfer: () => void;\n cancel: (order: ApiOrder) => void;\n acceptBid: (order: ApiOrder) => void;\n dialogs: ReactNode;\n}\n\nexport interface AssetPageSlots {\n useMarketActions: (context: AssetMarketContext) => AssetMarketActions;\n Comments: ComponentType<AssetCommentsProps>;\n PopBurn: ComponentType<{ collectionAddress: string; tokenId: string }>;\n}\n\ninterface KindConfig {\n namePrefix: string;\n accents: (typeof ASSET_ACCENTS)[keyof typeof ASSET_ACCENTS];\n market: boolean;\n remix: boolean;\n Panel?: ComponentType<AssetTypePanelProps>;\n}\n\nconst KINDS: Record<AssetKind, KindConfig> = {\n standard: { namePrefix: \"Token\", accents: ASSET_ACCENTS.standard, market: true, remix: true },\n edition: { namePrefix: \"Edition\", accents: ASSET_ACCENTS.edition, market: true, remix: false },\n ticket: { namePrefix: \"Ticket\", accents: ASSET_ACCENTS.ticket, market: true, remix: false, Panel: TicketPanel },\n membership: { namePrefix: \"Membership\", accents: ASSET_ACCENTS.membership, market: true, remix: false, Panel: MembershipPanel },\n pop: { namePrefix: \"POP\", accents: ASSET_ACCENTS.standard, market: false, remix: false },\n};\n\nconst PUBLICATION_TYPES = new Set([\"publications\", \"posts\"]);\n\nconst VARIANT_KINDS: Partial<Record<string, AssetKind>> = { edition: \"edition\", ticket: \"ticket\", club: \"membership\", pop: \"pop\" };\n\nexport function detectAssetKind(service: string | null | undefined, standard: string | null | undefined): AssetKind {\n const variant = getService(service)?.uiVariant;\n if (variant) return VARIANT_KINDS[variant] ?? \"standard\";\n return standard === \"ERC1155\" ? \"edition\" : \"standard\";\n}\n\nexport function AssetPageSkeleton() {\n return (\n <PageContainer className=\"pt-20 pb-8\">\n <div className=\"grid grid-cols-1 lg:grid-cols-2 lg:gap-10 gap-6 items-start\">\n <Skeleton className=\"aspect-square w-full rounded-3xl\" />\n <div className=\"space-y-6\">\n <div className=\"space-y-3\">\n <Skeleton className=\"h-5 w-24 rounded-full\" />\n <Skeleton className=\"h-9 w-3/4\" />\n <Skeleton className=\"h-4 w-full\" />\n <Skeleton className=\"h-4 w-2/3\" />\n </div>\n <Skeleton className=\"h-[54px] w-full rounded-2xl\" />\n <div className=\"flex gap-2\">\n {Array.from({ length: 3 }).map((_, i) => <Skeleton key={i} className=\"h-[46px] flex-1 rounded-[13px]\" />)}\n </div>\n <Skeleton className=\"h-16 w-full rounded-2xl\" />\n </div>\n </div>\n </PageContainer>\n );\n}\n\nexport interface AssetPageProps {\n contract: string;\n tokenId: string;\n slots: AssetPageSlots;\n}\n\nexport function AssetPage({ contract, tokenId, slots }: AssetPageProps) {\n const { token, isLoading, isIndexing } = useToken(contract, tokenId);\n const { collection, isLoading: collectionLoading } = useCollection(contract);\n if (isLoading || collectionLoading) return <AssetPageSkeleton />;\n if (!token) return <AssetUnavailable isIndexing={isIndexing} />;\n const kind = detectAssetKind(collection?.service, collection?.standard ?? token.standard);\n return <AssetPageView contract={contract} tokenId={tokenId} token={token} collection={collection ?? null} kind={kind} slots={slots} />;\n}\n\nfunction AssetPageView({\n contract,\n tokenId,\n token,\n collection,\n kind,\n slots,\n}: {\n contract: string;\n tokenId: string;\n token: ApiToken & { isHidden?: boolean };\n collection: ApiCollection | null;\n kind: AssetKind;\n slots: AssetPageSlots;\n}) {\n const resolveImage = useImageUrl();\n const config = KINDS[kind];\n const router = useRouter();\n const shouldReduce = useReducedMotion();\n const { walletAddress, ReportDialog } = useMedialaneApp();\n\n const { listings, mutate: mutateListings, isLoading: listingsLoading } = useTokenListings(contract, tokenId);\n const { history } = useTokenHistory(contract, tokenId);\n const { tokens: collectionTokens } = useNearbyCollectionTokens(contract, tokenId);\n const { total: commentTotal } = useComments(contract, tokenId);\n const { total: remixCount } = useTokenRemixes(contract, tokenId);\n const { data: fullTokenData } = useFullTokenData(contract, tokenId);\n const { amount: walletBalance } = useTokenBalance(contract, tokenId, walletAddress);\n const market = useAssetMarketState({ token, collection, listings, history: history as ApiActivity[], walletAddress, walletBalance });\n\n const [reportOpen, setReportOpen] = useState(false);\n const [commentOpen, setCommentOpen] = useState(false);\n const [lightboxOpen, setLightboxOpen] = useState(false);\n const [imgError, setImgError] = useState(false);\n\n const name = token.metadata?.name || `${config.namePrefix} #${token.tokenId}`;\n const image = resolveImage(token.metadata?.image);\n const tokenStandard = kind === \"standard\" || kind === \"pop\"\n ? ((token.standard ?? collection?.standard ?? \"UNKNOWN\") as AssetMarketContext[\"tokenStandard\"])\n : \"ERC1155\";\n\n const actions = slots.useMarketActions({\n contract,\n tokenId,\n tokenName: name,\n tokenImage: image,\n tokenStandard,\n activeListings: market.activeListings,\n quantityOwned: market.quantityOwned,\n mutateListings,\n });\n\n const autoActionRef = useRef(false);\n useEffect(() => {\n if (autoActionRef.current || !config.market || !market.isOwner) return;\n const action = new URLSearchParams(window.location.search).get(\"action\");\n if (action === \"list\") actions.list();\n else if (action === \"transfer\") actions.transfer();\n else return;\n autoActionRef.current = true;\n }, [config.market, market.isOwner, actions]);\n\n const { attributes, hasTemplateData, isDisplayAttr, parentContract, parentTokenId } = assetAttributes(token.metadata?.attributes);\n const remixPolicy = resolveRemixPolicy({\n parentNoDerivatives: getDerivativesTerm(token.metadata?.attributes) === \"Not Allowed\",\n viewerIsParentOwner: market.isOwner,\n dealAvailable: !!getService(collection?.service),\n });\n const holders = token.balances ?? [];\n const ownerAddress = !market.isERC1155 ? (holders[0]?.owner ?? token.owner ?? null) : null;\n const marketCount = market.activeListings.length + market.activeBids.length;\n const { Panel } = config;\n const { Comments, PopBurn } = slots;\n\n const articleText = token.metadata?.description?.trim() || null;\n const video = (token.metadata?.ipType ?? \"\").toLowerCase() === \"video\" ? videoEmbed(attributes) : null;\n const audio = (token.metadata?.ipType ?? \"\").toLowerCase() === \"audio\" ? audioEmbed(attributes) : null;\n const isPublication = !!articleText && PUBLICATION_TYPES.has((token.metadata?.ipType ?? \"\").toLowerCase());\n const publisherName = collection?.name ?? contract.slice(0, 8) + \"…\";\n const websiteUrl = attributes.find((a) => a.trait_type === \"Website\")?.value ?? null;\n const overview = isPublication\n ? assetAttributes(attributes.filter((a) => a.trait_type !== \"Website\"))\n : video || audio\n ? assetAttributes(attributes.filter((a) => !VIDEO_EMBED_TRAITS.has(a.trait_type ?? \"\") && !AUDIO_EMBED_TRAITS.has(a.trait_type ?? \"\")))\n : { attributes, hasTemplateData, isDisplayAttr };\n\n const marketBlock = (\n <>\n {Panel ? <Panel contract={contract} tokenId={tokenId} quantityOwned={market.quantityOwned} /> : null}\n\n {config.market ? (\n <AssetMarketplacePanel\n asset={token}\n compact={isPublication || !!video || !!audio}\n cheapest={market.cheapest}\n usdValue={market.cheapestUsd}\n isOwner={market.isOwner}\n isProcessing={actions.isProcessing}\n isERC1155={market.isERC1155}\n canListMoreEditions={market.canListMoreEditions}\n isMarketLoading={listingsLoading}\n myListing={market.myListing}\n activeBids={market.activeBids}\n remixEnabled={config.remix && remixPolicy.canRemixDirect}\n showDealOption={config.remix && remixPolicy.showDealOption}\n onCancelClick={actions.cancel}\n onAcceptBid={actions.acceptBid}\n onOpenListing={actions.list}\n onOpenTransfer={actions.transfer}\n onOpenPurchase={actions.buy}\n onOpenOffer={actions.offer}\n onOpenRemix={() => router.push(`/create/remix/${contract}/${tokenId}`)}\n />\n ) : null}\n\n {kind === \"pop\" && market.isOwner ? <PopBurn collectionAddress={contract} tokenId={tokenId} /> : null}\n\n {market.isERC1155 && holders.length > 0 ? (\n <AssetOwnersPanel balances={holders} total={token.holderCount} editions={Number(token.supply ?? 0)} />\n ) : null}\n </>\n );\n\n const detailsBlock = (\n <div className=\"pt-5 space-y-5\">\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n {collection?.service === \"drop-collection\" ? <DropTokenLink contract={contract} name={collection.name ?? null} /> : null}\n <AssetCollectionBar\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n currentTokenId={tokenId}\n siblingTokens={collectionTokens.map((t) => ({\n tokenId: t.tokenId,\n image: resolveImage(t.metadata?.image),\n }))}\n onNavigate={(id) => router.push(assetHref(\"STARKNET\", contract, id))}\n floorPriceRaw={collection?.floorPrice}\n />\n <div className=\"-ml-3\">\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n </div>\n </div>\n );\n\n return (\n <div className=\"relative z-0 min-h-screen\">\n {token.isHidden ? <HiddenContentBanner /> : null}\n <PageBackdrop image={image} />\n\n <PageContainer className={isPublication ? \"pt-20 space-y-8 pb-8 lg:px-16 xl:px-24\" : \"pt-20 space-y-8 pb-8\"}>\n {video ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-12 gap-8 items-start\">\n <AssetVideo\n name={name}\n embedSrc={video.src}\n embedLabel={video.label}\n description={token.metadata?.description}\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n utilities={\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n }\n />\n <aside className=\"space-y-6 min-w-0\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Video\"} size=\"md\" showLabel />\n {marketBlock}\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n <AssetRelatedList\n title={publisherName}\n titleHref={collectionHref(\"STARKNET\", contract)}\n items={collectionTokens\n .filter((t) => String(t.tokenId) !== String(tokenId))\n .map((t) => ({\n tokenId: t.tokenId,\n name: t.metadata?.name || `${config.namePrefix} #${t.tokenId}`,\n image: resolveImage(t.metadata?.image),\n href: assetHref(\"STARKNET\", contract, t.tokenId),\n }))}\n />\n </aside>\n </div>\n ) : audio ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-12 gap-8 items-start\">\n <AssetAudio\n name={name}\n image={image}\n embedSrc={audio.src}\n embedLabel={audio.label}\n description={token.metadata?.description}\n collectionName={publisherName}\n collectionImage={resolveImage(collection?.image)}\n collectionHref={collectionHref(\"STARKNET\", contract)}\n utilities={\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${token.contractAddress}`}\n shareTitle={name}\n onReportClick={() => setReportOpen(true)}\n />\n }\n />\n <aside className=\"space-y-6 min-w-0\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Audio\"} size=\"md\" showLabel />\n {marketBlock}\n {ownerAddress ? <AssetOwnerRow ownerAddress={ownerAddress} ownerHref={profileHref({ address: ownerAddress })} /> : null}\n <AssetRelatedList\n title={publisherName}\n titleHref={collectionHref(\"STARKNET\", contract)}\n shape=\"square\"\n items={collectionTokens\n .filter((t) => String(t.tokenId) !== String(tokenId))\n .map((t) => ({\n tokenId: t.tokenId,\n name: t.metadata?.name || `${config.namePrefix} #${t.tokenId}`,\n image: resolveImage(t.metadata?.image),\n href: assetHref(\"STARKNET\", contract, t.tokenId),\n }))}\n />\n </aside>\n </div>\n ) : isPublication ? (\n <div className=\"grid grid-cols-1 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] lg:gap-20 gap-8 items-start\">\n <AssetPublication\n name={name}\n text={articleText!}\n image={image}\n imgError={imgError}\n onImageError={() => setImgError(true)}\n onZoom={() => setLightboxOpen(true)}\n author={attributes.find((a) => a.trait_type === \"Author\")?.value ?? token.metadata?.author}\n websiteUrl={websiteUrl}\n />\n <aside className=\"space-y-6 min-w-0 lg:sticky lg:top-16\">\n <IpTypeBadge ipType={token.metadata?.ipType ?? \"Publications\"} size=\"md\" showLabel />\n {marketBlock}\n {detailsBlock}\n </aside>\n </div>\n ) : (\n <div className=\"grid grid-cols-1 lg:grid-cols-2 lg:gap-10 gap-8 items-start\">\n <AssetMediaColumn\n shouldReduce={Boolean(shouldReduce)}\n image={image}\n imageAlt={name}\n imgError={imgError}\n onImageError={() => setImgError(true)}\n onZoom={() => setLightboxOpen(true)}\n animationUrl={token.metadata?.animationUrl}\n live={isLivingRenderCollection(token.chain as Chain, token.contractAddress)}\n fallback={<div className=\"aspect-square bg-muted\" />}\n />\n\n <motion.div\n initial={shouldReduce ? false : { opacity: 0, y: 16 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.5, delay: 0.2 }}\n className=\"space-y-6\"\n >\n <AssetHeaderBlock\n name={name}\n description={token.metadata?.description}\n ipType={token.metadata?.ipType}\n parentContract={parentContract}\n parentTokenId={parentTokenId}\n badges={kind === \"pop\" ? (\n <span className=\"inline-flex items-center gap-1 text-2xs font-semibold px-2.5 py-1 rounded-full border border-emerald-500/30 bg-emerald-500/10 text-emerald-500\">\n <Award className=\"h-3 w-3\" />\n POP\n </span>\n ) : null}\n />\n\n {marketBlock}\n\n {detailsBlock}\n </motion.div>\n </div>\n )}\n\n <Tabs defaultValue=\"overview\">\n <TabsList>\n <TabsTrigger value=\"overview\">Overview</TabsTrigger>\n {config.market ? <TabsTrigger value=\"markets\">Markets {marketCount > 0 && `(${marketCount})`}</TabsTrigger> : null}\n <TabsTrigger value=\"provenance\">Provenance {history.length > 0 && `(${history.length})`}</TabsTrigger>\n </TabsList>\n\n <TabsContent value=\"overview\">\n <AssetOverviewContent attributes={overview.attributes} hasTemplateData={overview.hasTemplateData} isDisplayAttr={overview.isDisplayAttr} />\n </TabsContent>\n\n {config.market ? (\n <TabsContent value=\"markets\">\n <AssetMarketsTab\n activeListings={market.activeListings}\n activeBids={market.activeBids}\n walletAddress={walletAddress ?? undefined}\n isOwner={market.isOwner}\n isProcessing={actions.isProcessing}\n onBuyClick={actions.buy}\n onCancelClick={actions.cancel}\n onAcceptClick={actions.acceptBid}\n />\n </TabsContent>\n ) : null}\n\n <TabsContent value=\"provenance\">\n <AssetProvenanceTab\n history={history as ApiActivity[]}\n contract={contract}\n tokenId={tokenId}\n remixCount={remixCount}\n originalCreator={fullTokenData?.originalCreator}\n registeredAt={fullTokenData?.registeredAt}\n />\n </TabsContent>\n </Tabs>\n </PageContainer>\n\n <AssetLightbox open={lightboxOpen} onOpenChange={setLightboxOpen} image={image} alt={name} />\n <FloatingCommentsButton onClick={() => setCommentOpen(true)} commentTotal={commentTotal} />\n <AssetCommentsDialog\n open={commentOpen}\n onOpenChange={setCommentOpen}\n contract={contract}\n tokenId={tokenId}\n name={name}\n imageUrl={image}\n commentTotal={commentTotal}\n Comments={Comments}\n {...config.accents}\n />\n {ReportDialog ? <ReportDialog open={reportOpen} onOpenChange={setReportOpen} target={{ type: \"TOKEN\", contract: token.contractAddress, tokenId: token.tokenId, name }} /> : null}\n {actions.dialogs}\n </div>\n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ACd;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU;AAAA,QACV;AAAA,QACA;AAAA,QACC,GAAG,OAAO;AAAA;AAAA,IACb;AAAA,IACC,eAAe,oBAAC,gBAAa,MAAM,YAAY,cAAc,eAAe,QAAQ,EAAE,MAAM,SAAS,UAAU,MAAM,iBAAiB,SAAS,MAAM,SAAS,KAAK,GAAG,IAAK;AAAA,IAC3K,QAAQ;AAAA,KACX;AAEJ;","names":[]}
|
|
@@ -75,7 +75,7 @@ function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, c
|
|
|
75
75
|
description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "rounded-2xl bg-muted/30 p-4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_expandable_text.ExpandableText, { text: description }) }) : null
|
|
76
76
|
] });
|
|
77
77
|
}
|
|
78
|
-
function AssetRelatedList({ title, titleHref, items }) {
|
|
78
|
+
function AssetRelatedList({ title, titleHref, items, shape = "video" }) {
|
|
79
79
|
if (items.length === 0) return null;
|
|
80
80
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-3", children: [
|
|
81
81
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: titleHref, className: "flex items-center justify-between gap-2 text-sm font-semibold hover:text-primary transition-colors", children: [
|
|
@@ -86,8 +86,8 @@ function AssetRelatedList({ title, titleHref, items }) {
|
|
|
86
86
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-4 w-4 shrink-0" })
|
|
87
87
|
] }),
|
|
88
88
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "space-y-3", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: item.href, className: "group flex gap-3", children: [
|
|
89
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "aspect-video w-40 shrink-0 overflow-hidden rounded-xl bg-muted/40", children: item.image ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: item.image, alt: "", loading: "lazy", className: "h-full w-full object-cover" }) : null }),
|
|
90
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "min-w-0 text-sm font-medium leading-snug line-clamp-3 group-hover:text-primary transition-colors", children: item.name })
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: shape === "square" ? "aspect-square w-16 shrink-0 overflow-hidden rounded-xl bg-muted/40" : "aspect-video w-40 shrink-0 overflow-hidden rounded-xl bg-muted/40", children: item.image ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: item.image, alt: "", loading: "lazy", className: "h-full w-full object-cover" }) : null }),
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: shape === "square" ? "min-w-0 self-center text-sm font-medium leading-snug line-clamp-2 group-hover:text-primary transition-colors" : "min-w-0 text-sm font-medium leading-snug line-clamp-3 group-hover:text-primary transition-colors", children: item.name })
|
|
91
91
|
] }) }, item.tokenId)) })
|
|
92
92
|
] });
|
|
93
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/asset-video.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport type { ReactNode } from \"react\";\nimport { ArrowRight } from \"lucide-react\";\nimport { ExpandableText } from \"./expandable-text.js\";\nimport { getEmbedSrc } from \"./ip-type-display.js\";\nimport { EMBED_PLATFORM_META, type EmbedPlatform } from \"../data/ip-templates.js\";\n\ninterface Attr {\n trait_type?: string;\n value?: string;\n}\n\nconst VIDEO_PLATFORMS: EmbedPlatform[] = [\"youtube\", \"vimeo\", \"tiktok\"];\n\nexport const VIDEO_EMBED_TRAITS = new Set<string>(VIDEO_PLATFORMS.map((p) => EMBED_PLATFORM_META[p].traitKey));\n\nexport function videoEmbed(attributes: Attr[]): { src: string; label: string } | null {\n for (const platform of VIDEO_PLATFORMS) {\n const meta = EMBED_PLATFORM_META[platform];\n const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;\n const src = value ? getEmbedSrc(platform, value) : null;\n if (src) return { src, label: meta.label };\n }\n return null;\n}\n\nexport interface AssetVideoProps {\n name: string;\n embedSrc: string;\n embedLabel: string;\n description?: string | null;\n collectionName: string;\n collectionImage?: string | null;\n collectionHref: string;\n utilities: ReactNode;\n}\n\nexport function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetVideoProps) {\n return (\n <div className=\"min-w-0 space-y-4\">\n <div className=\"relative w-full aspect-video overflow-hidden rounded-2xl bg-black\">\n <iframe\n src={embedSrc}\n title={embedLabel}\n className=\"absolute inset-0 h-full w-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n />\n </div>\n\n <h1 className=\"text-xl lg:text-2xl font-bold break-words\">{name}</h1>\n\n <div className=\"flex items-center justify-between gap-3\">\n <Link href={collectionHref} className=\"flex min-w-0 items-center gap-3 hover:text-primary transition-colors\">\n {collectionImage ? <img src={collectionImage} alt=\"\" className=\"h-10 w-10 shrink-0 rounded-full object-cover\" /> : null}\n <span className=\"truncate text-sm font-semibold\">{collectionName}</span>\n </Link>\n {utilities}\n </div>\n\n {description ? (\n <div className=\"rounded-2xl bg-muted/30 p-4\">\n <ExpandableText text={description} />\n </div>\n ) : null}\n </div>\n );\n}\n\nexport interface AssetRelatedItem {\n tokenId: string;\n name: string;\n image: string | null;\n href: string;\n}\n\nexport function AssetRelatedList({ title, titleHref, items }: { title: string; titleHref: string; items: AssetRelatedItem[] }) {\n if (items.length === 0) return null;\n return (\n <section className=\"space-y-3\">\n <Link href={titleHref} className=\"flex items-center justify-between gap-2 text-sm font-semibold hover:text-primary transition-colors\">\n <span className=\"truncate\">More from {title}</span>\n <ArrowRight className=\"h-4 w-4 shrink-0\" />\n </Link>\n <ul className=\"space-y-3\">\n {items.map((item) => (\n <li key={item.tokenId}>\n <Link href={item.href} className=\"group flex gap-3\">\n <div className
|
|
1
|
+
{"version":3,"sources":["../../src/components/asset-video.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport type { ReactNode } from \"react\";\nimport { ArrowRight } from \"lucide-react\";\nimport { ExpandableText } from \"./expandable-text.js\";\nimport { getEmbedSrc } from \"./ip-type-display.js\";\nimport { EMBED_PLATFORM_META, type EmbedPlatform } from \"../data/ip-templates.js\";\n\ninterface Attr {\n trait_type?: string;\n value?: string;\n}\n\nconst VIDEO_PLATFORMS: EmbedPlatform[] = [\"youtube\", \"vimeo\", \"tiktok\"];\n\nexport const VIDEO_EMBED_TRAITS = new Set<string>(VIDEO_PLATFORMS.map((p) => EMBED_PLATFORM_META[p].traitKey));\n\nexport function videoEmbed(attributes: Attr[]): { src: string; label: string } | null {\n for (const platform of VIDEO_PLATFORMS) {\n const meta = EMBED_PLATFORM_META[platform];\n const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;\n const src = value ? getEmbedSrc(platform, value) : null;\n if (src) return { src, label: meta.label };\n }\n return null;\n}\n\nexport interface AssetVideoProps {\n name: string;\n embedSrc: string;\n embedLabel: string;\n description?: string | null;\n collectionName: string;\n collectionImage?: string | null;\n collectionHref: string;\n utilities: ReactNode;\n}\n\nexport function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetVideoProps) {\n return (\n <div className=\"min-w-0 space-y-4\">\n <div className=\"relative w-full aspect-video overflow-hidden rounded-2xl bg-black\">\n <iframe\n src={embedSrc}\n title={embedLabel}\n className=\"absolute inset-0 h-full w-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n />\n </div>\n\n <h1 className=\"text-xl lg:text-2xl font-bold break-words\">{name}</h1>\n\n <div className=\"flex items-center justify-between gap-3\">\n <Link href={collectionHref} className=\"flex min-w-0 items-center gap-3 hover:text-primary transition-colors\">\n {collectionImage ? <img src={collectionImage} alt=\"\" className=\"h-10 w-10 shrink-0 rounded-full object-cover\" /> : null}\n <span className=\"truncate text-sm font-semibold\">{collectionName}</span>\n </Link>\n {utilities}\n </div>\n\n {description ? (\n <div className=\"rounded-2xl bg-muted/30 p-4\">\n <ExpandableText text={description} />\n </div>\n ) : null}\n </div>\n );\n}\n\nexport interface AssetRelatedItem {\n tokenId: string;\n name: string;\n image: string | null;\n href: string;\n}\n\nexport function AssetRelatedList({ title, titleHref, items, shape = \"video\" }: { title: string; titleHref: string; items: AssetRelatedItem[]; shape?: \"video\" | \"square\" }) {\n if (items.length === 0) return null;\n return (\n <section className=\"space-y-3\">\n <Link href={titleHref} className=\"flex items-center justify-between gap-2 text-sm font-semibold hover:text-primary transition-colors\">\n <span className=\"truncate\">More from {title}</span>\n <ArrowRight className=\"h-4 w-4 shrink-0\" />\n </Link>\n <ul className=\"space-y-3\">\n {items.map((item) => (\n <li key={item.tokenId}>\n <Link href={item.href} className=\"group flex gap-3\">\n <div className={shape === \"square\" ? \"aspect-square w-16 shrink-0 overflow-hidden rounded-xl bg-muted/40\" : \"aspect-video w-40 shrink-0 overflow-hidden rounded-xl bg-muted/40\"}>\n {item.image ? <img src={item.image} alt=\"\" loading=\"lazy\" className=\"h-full w-full object-cover\" /> : null}\n </div>\n <p className={shape === \"square\" ? \"min-w-0 self-center text-sm font-medium leading-snug line-clamp-2 group-hover:text-primary transition-colors\" : \"min-w-0 text-sm font-medium leading-snug line-clamp-3 group-hover:text-primary transition-colors\"}>{item.name}</p>\n </Link>\n </li>\n ))}\n </ul>\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2CQ;AAzCR,kBAAiB;AAEjB,0BAA2B;AAC3B,6BAA+B;AAC/B,6BAA4B;AAC5B,0BAAwD;AAOxD,MAAM,kBAAmC,CAA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AAA,iDAAC,YAAAA,SAAA,EAAK,MAAM,WAAW,WAAU,sGAC/B;AAAA,mDAAC,UAAK,WAAU,YAAW;AAAA;AAAA,QAAW;AAAA,SAAM;AAAA,MAC5C,4CAAC,kCAAW,WAAU,oBAAmB;AAAA,OAC3C;AAAA,IACA,4CAAC,QAAG,WAAU,aACX,gBAAM,IAAI,CAAC,SACV,4CAAC,QACC,uDAAC,YAAAA,SAAA,EAAK,MAAM,KAAK,MAAM,WAAU,oBAC/B;AAAA,kDAAC,SAAI,WAAW,UAAU,WAAW,uEAAuE,qEACzG,eAAK,QAAQ,4CAAC,SAAI,KAAK,KAAK,OAAO,KAAI,IAAG,SAAQ,QAAO,WAAU,8BAA6B,IAAK,MACxG;AAAA,MACA,4CAAC,OAAE,WAAW,UAAU,WAAW,iHAAiH,oGAAqG,eAAK,MAAK;AAAA,OACrQ,KANO,KAAK,OAOd,CACD,GACH;AAAA,KACF;AAEJ;","names":["Link"]}
|
|
@@ -27,10 +27,11 @@ interface AssetRelatedItem {
|
|
|
27
27
|
image: string | null;
|
|
28
28
|
href: string;
|
|
29
29
|
}
|
|
30
|
-
declare function AssetRelatedList({ title, titleHref, items }: {
|
|
30
|
+
declare function AssetRelatedList({ title, titleHref, items, shape }: {
|
|
31
31
|
title: string;
|
|
32
32
|
titleHref: string;
|
|
33
33
|
items: AssetRelatedItem[];
|
|
34
|
+
shape?: "video" | "square";
|
|
34
35
|
}): react_jsx_runtime.JSX.Element | null;
|
|
35
36
|
|
|
36
37
|
export { type AssetRelatedItem, AssetRelatedList, AssetVideo, type AssetVideoProps, VIDEO_EMBED_TRAITS, videoEmbed };
|
|
@@ -27,10 +27,11 @@ interface AssetRelatedItem {
|
|
|
27
27
|
image: string | null;
|
|
28
28
|
href: string;
|
|
29
29
|
}
|
|
30
|
-
declare function AssetRelatedList({ title, titleHref, items }: {
|
|
30
|
+
declare function AssetRelatedList({ title, titleHref, items, shape }: {
|
|
31
31
|
title: string;
|
|
32
32
|
titleHref: string;
|
|
33
33
|
items: AssetRelatedItem[];
|
|
34
|
+
shape?: "video" | "square";
|
|
34
35
|
}): react_jsx_runtime.JSX.Element | null;
|
|
35
36
|
|
|
36
37
|
export { type AssetRelatedItem, AssetRelatedList, AssetVideo, type AssetVideoProps, VIDEO_EMBED_TRAITS, videoEmbed };
|
|
@@ -39,7 +39,7 @@ function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, c
|
|
|
39
39
|
description ? /* @__PURE__ */ jsx("div", { className: "rounded-2xl bg-muted/30 p-4", children: /* @__PURE__ */ jsx(ExpandableText, { text: description }) }) : null
|
|
40
40
|
] });
|
|
41
41
|
}
|
|
42
|
-
function AssetRelatedList({ title, titleHref, items }) {
|
|
42
|
+
function AssetRelatedList({ title, titleHref, items, shape = "video" }) {
|
|
43
43
|
if (items.length === 0) return null;
|
|
44
44
|
return /* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
|
|
45
45
|
/* @__PURE__ */ jsxs(Link, { href: titleHref, className: "flex items-center justify-between gap-2 text-sm font-semibold hover:text-primary transition-colors", children: [
|
|
@@ -50,8 +50,8 @@ function AssetRelatedList({ title, titleHref, items }) {
|
|
|
50
50
|
/* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4 shrink-0" })
|
|
51
51
|
] }),
|
|
52
52
|
/* @__PURE__ */ jsx("ul", { className: "space-y-3", children: items.map((item) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { href: item.href, className: "group flex gap-3", children: [
|
|
53
|
-
/* @__PURE__ */ jsx("div", { className: "aspect-video w-40 shrink-0 overflow-hidden rounded-xl bg-muted/40", children: item.image ? /* @__PURE__ */ jsx("img", { src: item.image, alt: "", loading: "lazy", className: "h-full w-full object-cover" }) : null }),
|
|
54
|
-
/* @__PURE__ */ jsx("p", { className: "min-w-0 text-sm font-medium leading-snug line-clamp-3 group-hover:text-primary transition-colors", children: item.name })
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: shape === "square" ? "aspect-square w-16 shrink-0 overflow-hidden rounded-xl bg-muted/40" : "aspect-video w-40 shrink-0 overflow-hidden rounded-xl bg-muted/40", children: item.image ? /* @__PURE__ */ jsx("img", { src: item.image, alt: "", loading: "lazy", className: "h-full w-full object-cover" }) : null }),
|
|
54
|
+
/* @__PURE__ */ jsx("p", { className: shape === "square" ? "min-w-0 self-center text-sm font-medium leading-snug line-clamp-2 group-hover:text-primary transition-colors" : "min-w-0 text-sm font-medium leading-snug line-clamp-3 group-hover:text-primary transition-colors", children: item.name })
|
|
55
55
|
] }) }, item.tokenId)) })
|
|
56
56
|
] });
|
|
57
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/asset-video.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport type { ReactNode } from \"react\";\nimport { ArrowRight } from \"lucide-react\";\nimport { ExpandableText } from \"./expandable-text.js\";\nimport { getEmbedSrc } from \"./ip-type-display.js\";\nimport { EMBED_PLATFORM_META, type EmbedPlatform } from \"../data/ip-templates.js\";\n\ninterface Attr {\n trait_type?: string;\n value?: string;\n}\n\nconst VIDEO_PLATFORMS: EmbedPlatform[] = [\"youtube\", \"vimeo\", \"tiktok\"];\n\nexport const VIDEO_EMBED_TRAITS = new Set<string>(VIDEO_PLATFORMS.map((p) => EMBED_PLATFORM_META[p].traitKey));\n\nexport function videoEmbed(attributes: Attr[]): { src: string; label: string } | null {\n for (const platform of VIDEO_PLATFORMS) {\n const meta = EMBED_PLATFORM_META[platform];\n const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;\n const src = value ? getEmbedSrc(platform, value) : null;\n if (src) return { src, label: meta.label };\n }\n return null;\n}\n\nexport interface AssetVideoProps {\n name: string;\n embedSrc: string;\n embedLabel: string;\n description?: string | null;\n collectionName: string;\n collectionImage?: string | null;\n collectionHref: string;\n utilities: ReactNode;\n}\n\nexport function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetVideoProps) {\n return (\n <div className=\"min-w-0 space-y-4\">\n <div className=\"relative w-full aspect-video overflow-hidden rounded-2xl bg-black\">\n <iframe\n src={embedSrc}\n title={embedLabel}\n className=\"absolute inset-0 h-full w-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n />\n </div>\n\n <h1 className=\"text-xl lg:text-2xl font-bold break-words\">{name}</h1>\n\n <div className=\"flex items-center justify-between gap-3\">\n <Link href={collectionHref} className=\"flex min-w-0 items-center gap-3 hover:text-primary transition-colors\">\n {collectionImage ? <img src={collectionImage} alt=\"\" className=\"h-10 w-10 shrink-0 rounded-full object-cover\" /> : null}\n <span className=\"truncate text-sm font-semibold\">{collectionName}</span>\n </Link>\n {utilities}\n </div>\n\n {description ? (\n <div className=\"rounded-2xl bg-muted/30 p-4\">\n <ExpandableText text={description} />\n </div>\n ) : null}\n </div>\n );\n}\n\nexport interface AssetRelatedItem {\n tokenId: string;\n name: string;\n image: string | null;\n href: string;\n}\n\nexport function AssetRelatedList({ title, titleHref, items }: { title: string; titleHref: string; items: AssetRelatedItem[] }) {\n if (items.length === 0) return null;\n return (\n <section className=\"space-y-3\">\n <Link href={titleHref} className=\"flex items-center justify-between gap-2 text-sm font-semibold hover:text-primary transition-colors\">\n <span className=\"truncate\">More from {title}</span>\n <ArrowRight className=\"h-4 w-4 shrink-0\" />\n </Link>\n <ul className=\"space-y-3\">\n {items.map((item) => (\n <li key={item.tokenId}>\n <Link href={item.href} className=\"group flex gap-3\">\n <div className
|
|
1
|
+
{"version":3,"sources":["../../src/components/asset-video.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport type { ReactNode } from \"react\";\nimport { ArrowRight } from \"lucide-react\";\nimport { ExpandableText } from \"./expandable-text.js\";\nimport { getEmbedSrc } from \"./ip-type-display.js\";\nimport { EMBED_PLATFORM_META, type EmbedPlatform } from \"../data/ip-templates.js\";\n\ninterface Attr {\n trait_type?: string;\n value?: string;\n}\n\nconst VIDEO_PLATFORMS: EmbedPlatform[] = [\"youtube\", \"vimeo\", \"tiktok\"];\n\nexport const VIDEO_EMBED_TRAITS = new Set<string>(VIDEO_PLATFORMS.map((p) => EMBED_PLATFORM_META[p].traitKey));\n\nexport function videoEmbed(attributes: Attr[]): { src: string; label: string } | null {\n for (const platform of VIDEO_PLATFORMS) {\n const meta = EMBED_PLATFORM_META[platform];\n const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;\n const src = value ? getEmbedSrc(platform, value) : null;\n if (src) return { src, label: meta.label };\n }\n return null;\n}\n\nexport interface AssetVideoProps {\n name: string;\n embedSrc: string;\n embedLabel: string;\n description?: string | null;\n collectionName: string;\n collectionImage?: string | null;\n collectionHref: string;\n utilities: ReactNode;\n}\n\nexport function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetVideoProps) {\n return (\n <div className=\"min-w-0 space-y-4\">\n <div className=\"relative w-full aspect-video overflow-hidden rounded-2xl bg-black\">\n <iframe\n src={embedSrc}\n title={embedLabel}\n className=\"absolute inset-0 h-full w-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n />\n </div>\n\n <h1 className=\"text-xl lg:text-2xl font-bold break-words\">{name}</h1>\n\n <div className=\"flex items-center justify-between gap-3\">\n <Link href={collectionHref} className=\"flex min-w-0 items-center gap-3 hover:text-primary transition-colors\">\n {collectionImage ? <img src={collectionImage} alt=\"\" className=\"h-10 w-10 shrink-0 rounded-full object-cover\" /> : null}\n <span className=\"truncate text-sm font-semibold\">{collectionName}</span>\n </Link>\n {utilities}\n </div>\n\n {description ? (\n <div className=\"rounded-2xl bg-muted/30 p-4\">\n <ExpandableText text={description} />\n </div>\n ) : null}\n </div>\n );\n}\n\nexport interface AssetRelatedItem {\n tokenId: string;\n name: string;\n image: string | null;\n href: string;\n}\n\nexport function AssetRelatedList({ title, titleHref, items, shape = \"video\" }: { title: string; titleHref: string; items: AssetRelatedItem[]; shape?: \"video\" | \"square\" }) {\n if (items.length === 0) return null;\n return (\n <section className=\"space-y-3\">\n <Link href={titleHref} className=\"flex items-center justify-between gap-2 text-sm font-semibold hover:text-primary transition-colors\">\n <span className=\"truncate\">More from {title}</span>\n <ArrowRight className=\"h-4 w-4 shrink-0\" />\n </Link>\n <ul className=\"space-y-3\">\n {items.map((item) => (\n <li key={item.tokenId}>\n <Link href={item.href} className=\"group flex gap-3\">\n <div className={shape === \"square\" ? \"aspect-square w-16 shrink-0 overflow-hidden rounded-xl bg-muted/40\" : \"aspect-video w-40 shrink-0 overflow-hidden rounded-xl bg-muted/40\"}>\n {item.image ? <img src={item.image} alt=\"\" loading=\"lazy\" className=\"h-full w-full object-cover\" /> : null}\n </div>\n <p className={shape === \"square\" ? \"min-w-0 self-center text-sm font-medium leading-snug line-clamp-2 group-hover:text-primary transition-colors\" : \"min-w-0 text-sm font-medium leading-snug line-clamp-3 group-hover:text-primary transition-colors\"}>{item.name}</p>\n </Link>\n </li>\n ))}\n </ul>\n </section>\n );\n}\n"],"mappings":";AA2CQ,cAYA,YAZA;AAzCR,OAAO,UAAU;AAEjB,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,2BAA+C;AAOxD,MAAM,kBAAmC,CAAC,WAAW,SAAS,QAAQ;AAE/D,MAAM,qBAAqB,IAAI,IAAY,gBAAgB,IAAI,CAAC,MAAM,oBAAoB,CAAC,EAAE,QAAQ,CAAC;AAEtG,SAAS,WAAW,YAA2D;AACpF,aAAW,YAAY,iBAAiB;AACtC,UAAM,OAAO,oBAAoB,QAAQ;AACzC,UAAM,QAAQ,WAAW,KAAK,CAAC,MAAM,EAAE,eAAe,KAAK,QAAQ,GAAG;AACtE,UAAM,MAAM,QAAQ,YAAY,UAAU,KAAK,IAAI;AACnD,QAAI,IAAK,QAAO,EAAE,KAAK,OAAO,KAAK,MAAM;AAAA,EAC3C;A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A6B,IAAK,MACxG;AAAA,MACA,oBAAC,OAAE,WAAW,UAAU,WAAW,iHAAiH,oGAAqG,eAAK,MAAK;AAAA,OACrQ,KANO,KAAK,OAOd,CACD,GACH;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -62,6 +62,7 @@ const NAV_ITEMS = {
|
|
|
62
62
|
art: { id: "art", label: "Art", icon: import_lucide_react.Palette, href: "/art", keywords: ["illustration", "drawing", "painting", "digital art"] },
|
|
63
63
|
video: { id: "video", label: "Video", icon: import_lucide_react.Film, href: "/video", keywords: ["film", "clip", "animation", "short"] },
|
|
64
64
|
photography: { id: "photography", label: "Photography", icon: import_lucide_react.Camera, href: "/photography", keywords: ["photo", "image", "picture", "shot"] },
|
|
65
|
+
publications: { id: "publications", label: "Publications", icon: import_lucide_react.BookOpen, href: "/publications", keywords: ["article", "articles", "blog", "news", "writing", "book", "journal"] },
|
|
65
66
|
nft: { id: "nft", label: "NFT", icon: import_lucide_react.Gem, href: "/nft", keywords: ["collectible", "token", "generative"] },
|
|
66
67
|
docs: { id: "docs", label: "Docs \u2014 Overview", icon: import_lucide_react.BookOpen, action: () => window.open("https://docs.medialane.io", "_blank"), keywords: ["docs", "help", "guide", "documentation"] },
|
|
67
68
|
"docs-market": { id: "docs-market", label: "Docs \u2014 Marketplace", icon: import_lucide_react.Store, action: () => window.open("https://docs.medialane.io/marketplace", "_blank"), keywords: ["docs", "buy", "sell", "orders", "guide"] },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/data/nav-commands.ts"],"sourcesContent":["import {\n Activity, BookOpen, Briefcase, Camera, Coins, FileText, Film, Gem, Gift, Handshake, Home, Layers, LayoutGrid, List, Music, Palette, Plus, Repeat2, ScrollText, Settings, ShieldCheck, Store, Tag, Telescope, Ticket, Trophy, Users, Zap,\n} from \"lucide-react\";\nimport type { NavCommand, NavCommandGroup } from \"../components/nav-command-menu.js\";\n\nexport const NAV_ITEMS = {\n home: { id: \"home\", label: \"Medialane\", icon: Home, href: \"/\", keywords: [\"home\", \"frontpage\", \"start\", \"homepage\", \"main\"], description: \"Start here\" },\n discover: { id: \"discover\", label: \"Discover\", icon: Telescope, href: \"/discover\", keywords: [\"feed\", \"explore\", \"trending\"], description: \"Feeds, collections & creators\" },\n marketplace: { id: \"marketplace\", label: \"Marketplace\", icon: Store, href: \"/marketplace\", keywords: [\"buy\", \"sell\", \"trade\", \"listings\", \"browse\"], description: \"Buy, sell & make offers\" },\n launchpad: { id: \"launchpad\", label: \"Launchpad\", icon: Zap, href: \"/launchpad\", keywords: [\"start\", \"launch\", \"creator\", \"mint\", \"create\"], description: \"Create, mint & launch\" },\n portfolio: { id: \"portfolio\", label: \"Portfolio\", icon: Briefcase, href: \"/portfolio\", keywords: [\"owned\", \"my nfts\", \"wallet\", \"account\"], description: \"Your assets & activity\" },\n collections: { id: \"collections\", label: \"Collections\", icon: LayoutGrid, href: \"/collections\", keywords: [\"nft\", \"drops\", \"browse\"] },\n coins: { id: \"coins\", label: \"Coins\", icon: Coins, href: \"/coins\", keywords: [\"token\", \"creator coin\", \"memecoin\", \"discover\", \"trade\", \"swap\"] },\n creators: { id: \"creators\", label: \"Creators\", icon: Users, href: \"/creators\", keywords: [\"artists\", \"profile\", \"profiles\", \"community\"] },\n activities: { id: \"activities\", label: \"Activity\", icon: Activity, href: \"/activities\", keywords: [\"history\", \"transactions\", \"feed\", \"events\"] },\n rewards: { id: \"rewards\", label: \"Rewards\", icon: Trophy, href: \"/rewards\", keywords: [\"xp\", \"points\", \"scoreboard\", \"leaderboard\", \"badges\", \"rank\"] },\n airdrop: { id: \"airdrop\", label: \"Airdrop\", icon: Gift, href: \"/airdrop\", keywords: [\"claim\", \"free\", \"drop\", \"genesis\", \"creator's fund\"] },\n settings: { id: \"settings\", label: \"Account Settings\", icon: Settings, href: \"/settings\", keywords: [\"profile\", \"username\", \"preferences\", \"account\"] },\n \"mint-ip-asset\": { id: \"mint-ip-asset\", label: \"Mint Unique NFT\", icon: Plus, href: \"/launchpad/single-editions\", keywords: [\"mint\", \"upload\", \"publish\", \"token\", \"erc721\", \"singular\", \"unique\", \"original\"] },\n \"create-collection\": { id: \"create-collection\", label: \"Create NFT Collection\", icon: LayoutGrid, href: \"/launchpad/single-editions/collection\", keywords: [\"deploy\", \"series\", \"erc721\", \"collection\", \"branded\"] },\n \"mint-editions\": { id: \"mint-editions\", label: \"Mint Limited Edition\", icon: Layers, href: \"/launchpad/nfteditions\", keywords: [\"mint\", \"edition\", \"erc1155\", \"multi\", \"copies\", \"limited\"] },\n \"create-1155\": { id: \"create-1155\", label: \"Create Limited Edition Contract\", icon: Layers, href: \"/launchpad/nfteditions/create\", keywords: [\"deploy\", \"erc1155\", \"edition\", \"contract\", \"limited\", \"multi-edition\"] },\n \"collection-drop\": { id: \"collection-drop\", label: \"Launch Collection Drop\", icon: Gift, href: \"/launchpad/drop/create\", keywords: [\"drop\", \"timed\", \"fixed supply\", \"release\", \"erc721\"] },\n \"browse-drops\": { id: \"browse-drops\", label: \"Browse Drops\", icon: Store, href: \"/launchpad/drop\", keywords: [\"drop\", \"browse\", \"active\"] },\n \"pop-create\": { id: \"pop-create\", label: \"Create POP Event\", icon: Ticket, href: \"/launchpad/pop/create\", keywords: [\"pop\", \"proof of participation\", \"event\", \"community\", \"soulbound\"] },\n \"pop-browse\": { id: \"pop-browse\", label: \"Browse POP Events\", icon: Ticket, href: \"/launchpad/pop\", keywords: [\"pop\", \"events\", \"proof of participation\"] },\n \"tickets-create\": { id: \"tickets-create\", label: \"Create IP Tickets\", icon: Ticket, href: \"/launchpad/tickets/create\", keywords: [\"tickets\", \"event\", \"verifiable\", \"attendee\", \"pass\"] },\n \"tickets-browse\": { id: \"tickets-browse\", label: \"Browse IP Tickets\", icon: Ticket, href: \"/launchpad/tickets\", keywords: [\"tickets\", \"browse\", \"events\"] },\n \"club-create\": { id: \"club-create\", label: \"Create IP Club\", icon: Users, href: \"/launchpad/club/create\", keywords: [\"club\", \"membership\", \"tiers\", \"community\", \"fans\"] },\n \"club-browse\": { id: \"club-browse\", label: \"Browse IP Clubs\", icon: Users, href: \"/launchpad/club\", keywords: [\"club\", \"membership\", \"browse\"] },\n \"sponsorship-create\": { id: \"sponsorship-create\", label: \"Create IP Sponsorship\", icon: Handshake, href: \"/launchpad/sponsorship/create\", keywords: [\"sponsorship\", \"sponsor\", \"license\", \"offer\", \"deal\"] },\n \"sponsorship-browse\": { id: \"sponsorship-browse\", label: \"Browse IP Sponsorship\", icon: Handshake, href: \"/launchpad/sponsorship\", keywords: [\"sponsorship\", \"browse\", \"offers\"] },\n \"launch-coin\": { id: \"launch-coin\", label: \"Launch a Creator Coin\", icon: Coins, href: \"/launchpad/coin/create\", keywords: [\"coin\", \"creator coin\", \"erc20\", \"token\", \"ekubo\", \"liquidity\", \"launch\"] },\n remix: { id: \"remix\", label: \"Remix an Asset\", icon: Repeat2, href: \"/marketplace\", keywords: [\"remix\", \"derivative\", \"attribution\", \"fork\"] },\n \"portfolio-collections\": { id: \"portfolio-collections\",label: \"My Collections\", icon: LayoutGrid, href: \"/portfolio/collections\", keywords: [\"deployed\", \"created\", \"my contracts\", \"claim\", \"import\"] },\n \"portfolio-assets\": { id: \"portfolio-assets\", label: \"My Assets\", icon: Gem, href: \"/portfolio/assets\", keywords: [\"owned\", \"nfts\", \"tokens\", \"collected\"] },\n \"portfolio-listings\": { id: \"portfolio-listings\", label: \"My Listings\", icon: Tag, href: \"/portfolio/listings\", keywords: [\"sell\", \"listed\", \"active listings\"] },\n \"portfolio-offers\": { id: \"portfolio-offers\", label: \"My Offers\", icon: List, href: \"/portfolio/offers\", keywords: [\"bids\", \"made\", \"sent offers\"] },\n \"portfolio-received\": { id: \"portfolio-received\", label: \"Received Offers\", icon: ScrollText, href: \"/portfolio/received\", keywords: [\"incoming\", \"bids\", \"offers received\"] },\n \"portfolio-activity\": { id: \"portfolio-activity\", label: \"My Activity\", icon: Activity, href: \"/portfolio/activity\", keywords: [\"history\", \"transactions\", \"events\"] },\n audio: { id: \"audio\", label: \"Audio\", icon: Music, href: \"/audio\", keywords: [\"music\", \"sound\", \"track\", \"podcast\"] },\n art: { id: \"art\", label: \"Art\", icon: Palette, href: \"/art\", keywords: [\"illustration\", \"drawing\", \"painting\", \"digital art\"] },\n video: { id: \"video\", label: \"Video\", icon: Film, href: \"/video\", keywords: [\"film\", \"clip\", \"animation\", \"short\"] },\n photography: { id: \"photography\", label: \"Photography\", icon: Camera, href: \"/photography\", keywords: [\"photo\", \"image\", \"picture\", \"shot\"] },\n nft: { id: \"nft\", label: \"NFT\", icon: Gem, href: \"/nft\", keywords: [\"collectible\", \"token\", \"generative\"] },\n docs: { id: \"docs\", label: \"Docs — Overview\", icon: BookOpen, action: () => window.open(\"https://docs.medialane.io\", \"_blank\"), keywords: [\"docs\", \"help\", \"guide\", \"documentation\"] },\n \"docs-market\": { id: \"docs-market\", label: \"Docs — Marketplace\", icon: Store, action: () => window.open(\"https://docs.medialane.io/marketplace\", \"_blank\"), keywords: [\"docs\", \"buy\", \"sell\", \"orders\", \"guide\"] },\n \"docs-launchpad\": { id: \"docs-launchpad\",label: \"Docs — Launchpad\", icon: Zap, action: () => window.open(\"https://docs.medialane.io/launchpad\", \"_blank\"), keywords: [\"docs\", \"creator\", \"mint\", \"deploy\", \"guide\"] },\n \"docs-ip\": { id: \"docs-ip\", label: \"Docs — IP & Licensing\", icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/ip-licensing\", \"_blank\"), keywords: [\"docs\", \"license\", \"ip\", \"rights\", \"royalty\"] },\n \"docs-sdk\": { id: \"docs-sdk\", label: \"Docs — SDK & API\", icon: FileText, action: () => window.open(\"https://docs.medialane.io/sdk\", \"_blank\"), keywords: [\"docs\", \"developer\", \"api\", \"sdk\", \"integration\"] },\n \"docs-terms\": { id: \"docs-terms\", label: \"Terms of Service\", icon: FileText, action: () => window.open(\"https://docs.medialane.io/guidelines/terms\", \"_blank\"), keywords: [\"legal\", \"terms\", \"tos\"] },\n \"docs-privacy\": { id: \"docs-privacy\", label: \"Privacy Policy\", icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/guidelines/privacy\", \"_blank\"), keywords: [\"privacy\", \"data\", \"gdpr\"] },\n} satisfies Record<string, NavCommand>;\n\nexport type NavItemId = keyof typeof NAV_ITEMS;\n\nexport interface NavGroupSpec {\n heading?: string;\n items: (NavItemId | NavCommand)[];\n}\n\nexport function navGroups(groups: NavGroupSpec[]): NavCommandGroup[] {\n return groups.map(({ heading, items }) => ({\n heading,\n items: items.map((item) => (typeof item === \"string\" ? NAV_ITEMS[item] : item)),\n }));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAEO;AAGA,MAAM,YAAY;AAAA,EACvB,MAAM,EAAE,IAAI,QAAQ,OAAO,aAAa,MAAM,0BAAM,MAAM,KAAK,UAAU,CAAC,QAAQ,aAAa,SAAS,YAAY,MAAM,GAAG,aAAa,aAAa;AAAA,EACvJ,UAAU,EAAE,IAAI,YAAY,OAAO,YAAY,MAAM,+BAAW,MAAM,aAAa,UAAU,CAAC,QAAQ,WAAW,UAAU,GAAG,aAAa,gCAAgC;AAAA,EAC3K,aAAa,EAAE,IAAI,eAAe,OAAO,eAAe,MAAM,2BAAO,MAAM,gBAAgB,UAAU,CAAC,OAAO,QAAQ,SAAS,YAAY,QAAQ,GAAG,aAAa,0BAA0B;AAAA,EAC5L,WAAW,EAAE,IAAI,aAAa,OAAO,aAAa,MAAM,yBAAK,MAAM,cAAc,UAAU,CAAC,SAAS,UAAU,WAAW,QAAQ,QAAQ,GAAG,aAAa,wBAAwB;AAAA,EAClL,WAAW,EAAE,IAAI,aAAa,OAAO,aAAa,MAAM,+BAAW,MAAM,cAAc,UAAU,CAAC,SAAS,WAAW,UAAU,SAAS,GAAG,aAAa,yBAAyB;AAAA,EAClL,aAAa,EAAE,IAAI,eAAe,OAAO,eAAe,MAAM,gCAAY,MAAM,gBAAgB,UAAU,CAAC,OAAO,S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AG,UAAU,CAAC,QAAQ,aAAa,OAAO,OAAO,aAAa,EAAE;AAAA,EAC5M,cAAc,EAAE,IAAI,cAAc,OAAO,oBAAoB,MAAM,8BAAU,QAAQ,MAAM,OAAO,KAAK,8CAA8C,QAAQ,GAAG,UAAU,CAAC,SAAS,SAAS,KAAK,EAAE;AAAA,EACpM,gBAAgB,EAAE,IAAI,gBAAgB,OAAO,kBAAkB,MAAM,iCAAa,QAAQ,MAAM,OAAO,KAAK,gDAAgD,QAAQ,GAAG,UAAU,CAAC,WAAW,QAAQ,MAAM,EAAE;AAC/M;AASO,SAAS,UAAU,QAA2C;AACnE,SAAO,OAAO,IAAI,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,IACzC;AAAA,IACA,OAAO,MAAM,IAAI,CAAC,SAAU,OAAO,SAAS,WAAW,UAAU,IAAI,IAAI,IAAK;AAAA,EAChF,EAAE;AACJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/data/nav-commands.ts"],"sourcesContent":["import {\n Activity, BookOpen, Briefcase, Camera, Coins, FileText, Film, Gem, Gift, Handshake, Home, Layers, LayoutGrid, List, Music, Palette, Plus, Repeat2, ScrollText, Settings, ShieldCheck, Store, Tag, Telescope, Ticket, Trophy, Users, Zap,\n} from \"lucide-react\";\nimport type { NavCommand, NavCommandGroup } from \"../components/nav-command-menu.js\";\n\nexport const NAV_ITEMS = {\n home: { id: \"home\", label: \"Medialane\", icon: Home, href: \"/\", keywords: [\"home\", \"frontpage\", \"start\", \"homepage\", \"main\"], description: \"Start here\" },\n discover: { id: \"discover\", label: \"Discover\", icon: Telescope, href: \"/discover\", keywords: [\"feed\", \"explore\", \"trending\"], description: \"Feeds, collections & creators\" },\n marketplace: { id: \"marketplace\", label: \"Marketplace\", icon: Store, href: \"/marketplace\", keywords: [\"buy\", \"sell\", \"trade\", \"listings\", \"browse\"], description: \"Buy, sell & make offers\" },\n launchpad: { id: \"launchpad\", label: \"Launchpad\", icon: Zap, href: \"/launchpad\", keywords: [\"start\", \"launch\", \"creator\", \"mint\", \"create\"], description: \"Create, mint & launch\" },\n portfolio: { id: \"portfolio\", label: \"Portfolio\", icon: Briefcase, href: \"/portfolio\", keywords: [\"owned\", \"my nfts\", \"wallet\", \"account\"], description: \"Your assets & activity\" },\n collections: { id: \"collections\", label: \"Collections\", icon: LayoutGrid, href: \"/collections\", keywords: [\"nft\", \"drops\", \"browse\"] },\n coins: { id: \"coins\", label: \"Coins\", icon: Coins, href: \"/coins\", keywords: [\"token\", \"creator coin\", \"memecoin\", \"discover\", \"trade\", \"swap\"] },\n creators: { id: \"creators\", label: \"Creators\", icon: Users, href: \"/creators\", keywords: [\"artists\", \"profile\", \"profiles\", \"community\"] },\n activities: { id: \"activities\", label: \"Activity\", icon: Activity, href: \"/activities\", keywords: [\"history\", \"transactions\", \"feed\", \"events\"] },\n rewards: { id: \"rewards\", label: \"Rewards\", icon: Trophy, href: \"/rewards\", keywords: [\"xp\", \"points\", \"scoreboard\", \"leaderboard\", \"badges\", \"rank\"] },\n airdrop: { id: \"airdrop\", label: \"Airdrop\", icon: Gift, href: \"/airdrop\", keywords: [\"claim\", \"free\", \"drop\", \"genesis\", \"creator's fund\"] },\n settings: { id: \"settings\", label: \"Account Settings\", icon: Settings, href: \"/settings\", keywords: [\"profile\", \"username\", \"preferences\", \"account\"] },\n \"mint-ip-asset\": { id: \"mint-ip-asset\", label: \"Mint Unique NFT\", icon: Plus, href: \"/launchpad/single-editions\", keywords: [\"mint\", \"upload\", \"publish\", \"token\", \"erc721\", \"singular\", \"unique\", \"original\"] },\n \"create-collection\": { id: \"create-collection\", label: \"Create NFT Collection\", icon: LayoutGrid, href: \"/launchpad/single-editions/collection\", keywords: [\"deploy\", \"series\", \"erc721\", \"collection\", \"branded\"] },\n \"mint-editions\": { id: \"mint-editions\", label: \"Mint Limited Edition\", icon: Layers, href: \"/launchpad/nfteditions\", keywords: [\"mint\", \"edition\", \"erc1155\", \"multi\", \"copies\", \"limited\"] },\n \"create-1155\": { id: \"create-1155\", label: \"Create Limited Edition Contract\", icon: Layers, href: \"/launchpad/nfteditions/create\", keywords: [\"deploy\", \"erc1155\", \"edition\", \"contract\", \"limited\", \"multi-edition\"] },\n \"collection-drop\": { id: \"collection-drop\", label: \"Launch Collection Drop\", icon: Gift, href: \"/launchpad/drop/create\", keywords: [\"drop\", \"timed\", \"fixed supply\", \"release\", \"erc721\"] },\n \"browse-drops\": { id: \"browse-drops\", label: \"Browse Drops\", icon: Store, href: \"/launchpad/drop\", keywords: [\"drop\", \"browse\", \"active\"] },\n \"pop-create\": { id: \"pop-create\", label: \"Create POP Event\", icon: Ticket, href: \"/launchpad/pop/create\", keywords: [\"pop\", \"proof of participation\", \"event\", \"community\", \"soulbound\"] },\n \"pop-browse\": { id: \"pop-browse\", label: \"Browse POP Events\", icon: Ticket, href: \"/launchpad/pop\", keywords: [\"pop\", \"events\", \"proof of participation\"] },\n \"tickets-create\": { id: \"tickets-create\", label: \"Create IP Tickets\", icon: Ticket, href: \"/launchpad/tickets/create\", keywords: [\"tickets\", \"event\", \"verifiable\", \"attendee\", \"pass\"] },\n \"tickets-browse\": { id: \"tickets-browse\", label: \"Browse IP Tickets\", icon: Ticket, href: \"/launchpad/tickets\", keywords: [\"tickets\", \"browse\", \"events\"] },\n \"club-create\": { id: \"club-create\", label: \"Create IP Club\", icon: Users, href: \"/launchpad/club/create\", keywords: [\"club\", \"membership\", \"tiers\", \"community\", \"fans\"] },\n \"club-browse\": { id: \"club-browse\", label: \"Browse IP Clubs\", icon: Users, href: \"/launchpad/club\", keywords: [\"club\", \"membership\", \"browse\"] },\n \"sponsorship-create\": { id: \"sponsorship-create\", label: \"Create IP Sponsorship\", icon: Handshake, href: \"/launchpad/sponsorship/create\", keywords: [\"sponsorship\", \"sponsor\", \"license\", \"offer\", \"deal\"] },\n \"sponsorship-browse\": { id: \"sponsorship-browse\", label: \"Browse IP Sponsorship\", icon: Handshake, href: \"/launchpad/sponsorship\", keywords: [\"sponsorship\", \"browse\", \"offers\"] },\n \"launch-coin\": { id: \"launch-coin\", label: \"Launch a Creator Coin\", icon: Coins, href: \"/launchpad/coin/create\", keywords: [\"coin\", \"creator coin\", \"erc20\", \"token\", \"ekubo\", \"liquidity\", \"launch\"] },\n remix: { id: \"remix\", label: \"Remix an Asset\", icon: Repeat2, href: \"/marketplace\", keywords: [\"remix\", \"derivative\", \"attribution\", \"fork\"] },\n \"portfolio-collections\": { id: \"portfolio-collections\",label: \"My Collections\", icon: LayoutGrid, href: \"/portfolio/collections\", keywords: [\"deployed\", \"created\", \"my contracts\", \"claim\", \"import\"] },\n \"portfolio-assets\": { id: \"portfolio-assets\", label: \"My Assets\", icon: Gem, href: \"/portfolio/assets\", keywords: [\"owned\", \"nfts\", \"tokens\", \"collected\"] },\n \"portfolio-listings\": { id: \"portfolio-listings\", label: \"My Listings\", icon: Tag, href: \"/portfolio/listings\", keywords: [\"sell\", \"listed\", \"active listings\"] },\n \"portfolio-offers\": { id: \"portfolio-offers\", label: \"My Offers\", icon: List, href: \"/portfolio/offers\", keywords: [\"bids\", \"made\", \"sent offers\"] },\n \"portfolio-received\": { id: \"portfolio-received\", label: \"Received Offers\", icon: ScrollText, href: \"/portfolio/received\", keywords: [\"incoming\", \"bids\", \"offers received\"] },\n \"portfolio-activity\": { id: \"portfolio-activity\", label: \"My Activity\", icon: Activity, href: \"/portfolio/activity\", keywords: [\"history\", \"transactions\", \"events\"] },\n audio: { id: \"audio\", label: \"Audio\", icon: Music, href: \"/audio\", keywords: [\"music\", \"sound\", \"track\", \"podcast\"] },\n art: { id: \"art\", label: \"Art\", icon: Palette, href: \"/art\", keywords: [\"illustration\", \"drawing\", \"painting\", \"digital art\"] },\n video: { id: \"video\", label: \"Video\", icon: Film, href: \"/video\", keywords: [\"film\", \"clip\", \"animation\", \"short\"] },\n photography: { id: \"photography\", label: \"Photography\", icon: Camera, href: \"/photography\", keywords: [\"photo\", \"image\", \"picture\", \"shot\"] },\n publications: { id: \"publications\", label: \"Publications\", icon: BookOpen, href: \"/publications\", keywords: [\"article\", \"articles\", \"blog\", \"news\", \"writing\", \"book\", \"journal\"] },\n nft: { id: \"nft\", label: \"NFT\", icon: Gem, href: \"/nft\", keywords: [\"collectible\", \"token\", \"generative\"] },\n docs: { id: \"docs\", label: \"Docs — Overview\", icon: BookOpen, action: () => window.open(\"https://docs.medialane.io\", \"_blank\"), keywords: [\"docs\", \"help\", \"guide\", \"documentation\"] },\n \"docs-market\": { id: \"docs-market\", label: \"Docs — Marketplace\", icon: Store, action: () => window.open(\"https://docs.medialane.io/marketplace\", \"_blank\"), keywords: [\"docs\", \"buy\", \"sell\", \"orders\", \"guide\"] },\n \"docs-launchpad\": { id: \"docs-launchpad\",label: \"Docs — Launchpad\", icon: Zap, action: () => window.open(\"https://docs.medialane.io/launchpad\", \"_blank\"), keywords: [\"docs\", \"creator\", \"mint\", \"deploy\", \"guide\"] },\n \"docs-ip\": { id: \"docs-ip\", label: \"Docs — IP & Licensing\", icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/ip-licensing\", \"_blank\"), keywords: [\"docs\", \"license\", \"ip\", \"rights\", \"royalty\"] },\n \"docs-sdk\": { id: \"docs-sdk\", label: \"Docs — SDK & API\", icon: FileText, action: () => window.open(\"https://docs.medialane.io/sdk\", \"_blank\"), keywords: [\"docs\", \"developer\", \"api\", \"sdk\", \"integration\"] },\n \"docs-terms\": { id: \"docs-terms\", label: \"Terms of Service\", icon: FileText, action: () => window.open(\"https://docs.medialane.io/guidelines/terms\", \"_blank\"), keywords: [\"legal\", \"terms\", \"tos\"] },\n \"docs-privacy\": { id: \"docs-privacy\", label: \"Privacy Policy\", icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/guidelines/privacy\", \"_blank\"), keywords: [\"privacy\", \"data\", \"gdpr\"] },\n} satisfies Record<string, NavCommand>;\n\nexport type NavItemId = keyof typeof NAV_ITEMS;\n\nexport interface NavGroupSpec {\n heading?: string;\n items: (NavItemId | NavCommand)[];\n}\n\nexport function navGroups(groups: NavGroupSpec[]): NavCommandGroup[] {\n return groups.map(({ heading, items }) => ({\n heading,\n items: items.map((item) => (typeof item === \"string\" ? NAV_ITEMS[item] : item)),\n }));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAEO;AAGA,MAAM,YAAY;AAAA,EACvB,MAAM,EAAE,IAAI,QAAQ,OAAO,aAAa,MAAM,0BAAM,MAAM,KAAK,UAAU,CAAC,QAAQ,aAAa,SAAS,YAAY,MAAM,GAAG,aAAa,aAAa;AAAA,EACvJ,UAAU,EAAE,IAAI,YAAY,OAAO,YAAY,MAAM,+BAAW,MAAM,aAAa,UAAU,CAAC,QAAQ,WAAW,UAAU,GAAG,aAAa,gCAAgC;AAAA,EAC3K,aAAa,EAAE,IAAI,eAAe,OAAO,eAAe,MAAM,2BAAO,MAAM,gBAAgB,UAAU,CAAC,OAAO,QAAQ,SAAS,YAAY,QAAQ,GAAG,aAAa,0BAA0B;AAAA,EAC5L,WAAW,EAAE,IAAI,aAAa,OAAO,aAAa,MAAM,yBAAK,MAAM,cAAc,UAAU,CAAC,SAAS,UAAU,WAAW,QAAQ,QAAQ,GAAG,aAAa,wBAAwB;AAAA,EAClL,WAAW,EAAE,IAAI,aAAa,OAAO,aAAa,MAAM,+BAAW,MAAM,cAAc,UAAU,CAAC,SAAS,WAAW,UAAU,SAAS,GAAG,aAAa,yBAAyB;AAAA,EAClL,aAAa,EAAE,IAAI,eAAe,OAAO,eAAe,MAAM,gCAAY,MAAM,gBAAgB,UAAU,CAAC,OAAO,SAAS,QAAQ,EAAE;AAAA,EACrI,OAAO,EAAE,IAAI,SAAS,OAAO,SAAS,MAAM,2BAAO,MAAM,UAAU,UAAU,CAAC,SAAS,gBAAgB,YAAY,YAAY,SAAS,MAAM,EAAE;AAAA,EAChJ,UAAU,EAAE,IAAI,YAAY,OAAO,YAAY,MAAM,2BAAO,MAAM,aAAa,UAAU,CAAC,WAAW,W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BAAoB,MAAM,8BAAU,QAAQ,MAAM,OAAO,KAAK,8CAA8C,QAAQ,GAAG,UAAU,CAAC,SAAS,SAAS,KAAK,EAAE;AAAA,EACpM,gBAAgB,EAAE,IAAI,gBAAgB,OAAO,kBAAkB,MAAM,iCAAa,QAAQ,MAAM,OAAO,KAAK,gDAAgD,QAAQ,GAAG,UAAU,CAAC,WAAW,QAAQ,MAAM,EAAE;AAC/M;AASO,SAAS,UAAU,QAA2C;AACnE,SAAO,OAAO,IAAI,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,IACzC;AAAA,IACA,OAAO,MAAM,IAAI,CAAC,SAAU,OAAO,SAAS,WAAW,UAAU,IAAI,IAAI,IAAK;AAAA,EAChF,EAAE;AACJ;","names":[]}
|
|
@@ -275,6 +275,13 @@ declare const NAV_ITEMS: {
|
|
|
275
275
|
href: string;
|
|
276
276
|
keywords: string[];
|
|
277
277
|
};
|
|
278
|
+
publications: {
|
|
279
|
+
id: string;
|
|
280
|
+
label: string;
|
|
281
|
+
icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
282
|
+
href: string;
|
|
283
|
+
keywords: string[];
|
|
284
|
+
};
|
|
278
285
|
nft: {
|
|
279
286
|
id: string;
|
|
280
287
|
label: string;
|
|
@@ -275,6 +275,13 @@ declare const NAV_ITEMS: {
|
|
|
275
275
|
href: string;
|
|
276
276
|
keywords: string[];
|
|
277
277
|
};
|
|
278
|
+
publications: {
|
|
279
|
+
id: string;
|
|
280
|
+
label: string;
|
|
281
|
+
icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
282
|
+
href: string;
|
|
283
|
+
keywords: string[];
|
|
284
|
+
};
|
|
278
285
|
nft: {
|
|
279
286
|
id: string;
|
|
280
287
|
label: string;
|
|
@@ -67,6 +67,7 @@ const NAV_ITEMS = {
|
|
|
67
67
|
art: { id: "art", label: "Art", icon: Palette, href: "/art", keywords: ["illustration", "drawing", "painting", "digital art"] },
|
|
68
68
|
video: { id: "video", label: "Video", icon: Film, href: "/video", keywords: ["film", "clip", "animation", "short"] },
|
|
69
69
|
photography: { id: "photography", label: "Photography", icon: Camera, href: "/photography", keywords: ["photo", "image", "picture", "shot"] },
|
|
70
|
+
publications: { id: "publications", label: "Publications", icon: BookOpen, href: "/publications", keywords: ["article", "articles", "blog", "news", "writing", "book", "journal"] },
|
|
70
71
|
nft: { id: "nft", label: "NFT", icon: Gem, href: "/nft", keywords: ["collectible", "token", "generative"] },
|
|
71
72
|
docs: { id: "docs", label: "Docs \u2014 Overview", icon: BookOpen, action: () => window.open("https://docs.medialane.io", "_blank"), keywords: ["docs", "help", "guide", "documentation"] },
|
|
72
73
|
"docs-market": { id: "docs-market", label: "Docs \u2014 Marketplace", icon: Store, action: () => window.open("https://docs.medialane.io/marketplace", "_blank"), keywords: ["docs", "buy", "sell", "orders", "guide"] },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/data/nav-commands.ts"],"sourcesContent":["import {\n Activity, BookOpen, Briefcase, Camera, Coins, FileText, Film, Gem, Gift, Handshake, Home, Layers, LayoutGrid, List, Music, Palette, Plus, Repeat2, ScrollText, Settings, ShieldCheck, Store, Tag, Telescope, Ticket, Trophy, Users, Zap,\n} from \"lucide-react\";\nimport type { NavCommand, NavCommandGroup } from \"../components/nav-command-menu.js\";\n\nexport const NAV_ITEMS = {\n home: { id: \"home\", label: \"Medialane\", icon: Home, href: \"/\", keywords: [\"home\", \"frontpage\", \"start\", \"homepage\", \"main\"], description: \"Start here\" },\n discover: { id: \"discover\", label: \"Discover\", icon: Telescope, href: \"/discover\", keywords: [\"feed\", \"explore\", \"trending\"], description: \"Feeds, collections & creators\" },\n marketplace: { id: \"marketplace\", label: \"Marketplace\", icon: Store, href: \"/marketplace\", keywords: [\"buy\", \"sell\", \"trade\", \"listings\", \"browse\"], description: \"Buy, sell & make offers\" },\n launchpad: { id: \"launchpad\", label: \"Launchpad\", icon: Zap, href: \"/launchpad\", keywords: [\"start\", \"launch\", \"creator\", \"mint\", \"create\"], description: \"Create, mint & launch\" },\n portfolio: { id: \"portfolio\", label: \"Portfolio\", icon: Briefcase, href: \"/portfolio\", keywords: [\"owned\", \"my nfts\", \"wallet\", \"account\"], description: \"Your assets & activity\" },\n collections: { id: \"collections\", label: \"Collections\", icon: LayoutGrid, href: \"/collections\", keywords: [\"nft\", \"drops\", \"browse\"] },\n coins: { id: \"coins\", label: \"Coins\", icon: Coins, href: \"/coins\", keywords: [\"token\", \"creator coin\", \"memecoin\", \"discover\", \"trade\", \"swap\"] },\n creators: { id: \"creators\", label: \"Creators\", icon: Users, href: \"/creators\", keywords: [\"artists\", \"profile\", \"profiles\", \"community\"] },\n activities: { id: \"activities\", label: \"Activity\", icon: Activity, href: \"/activities\", keywords: [\"history\", \"transactions\", \"feed\", \"events\"] },\n rewards: { id: \"rewards\", label: \"Rewards\", icon: Trophy, href: \"/rewards\", keywords: [\"xp\", \"points\", \"scoreboard\", \"leaderboard\", \"badges\", \"rank\"] },\n airdrop: { id: \"airdrop\", label: \"Airdrop\", icon: Gift, href: \"/airdrop\", keywords: [\"claim\", \"free\", \"drop\", \"genesis\", \"creator's fund\"] },\n settings: { id: \"settings\", label: \"Account Settings\", icon: Settings, href: \"/settings\", keywords: [\"profile\", \"username\", \"preferences\", \"account\"] },\n \"mint-ip-asset\": { id: \"mint-ip-asset\", label: \"Mint Unique NFT\", icon: Plus, href: \"/launchpad/single-editions\", keywords: [\"mint\", \"upload\", \"publish\", \"token\", \"erc721\", \"singular\", \"unique\", \"original\"] },\n \"create-collection\": { id: \"create-collection\", label: \"Create NFT Collection\", icon: LayoutGrid, href: \"/launchpad/single-editions/collection\", keywords: [\"deploy\", \"series\", \"erc721\", \"collection\", \"branded\"] },\n \"mint-editions\": { id: \"mint-editions\", label: \"Mint Limited Edition\", icon: Layers, href: \"/launchpad/nfteditions\", keywords: [\"mint\", \"edition\", \"erc1155\", \"multi\", \"copies\", \"limited\"] },\n \"create-1155\": { id: \"create-1155\", label: \"Create Limited Edition Contract\", icon: Layers, href: \"/launchpad/nfteditions/create\", keywords: [\"deploy\", \"erc1155\", \"edition\", \"contract\", \"limited\", \"multi-edition\"] },\n \"collection-drop\": { id: \"collection-drop\", label: \"Launch Collection Drop\", icon: Gift, href: \"/launchpad/drop/create\", keywords: [\"drop\", \"timed\", \"fixed supply\", \"release\", \"erc721\"] },\n \"browse-drops\": { id: \"browse-drops\", label: \"Browse Drops\", icon: Store, href: \"/launchpad/drop\", keywords: [\"drop\", \"browse\", \"active\"] },\n \"pop-create\": { id: \"pop-create\", label: \"Create POP Event\", icon: Ticket, href: \"/launchpad/pop/create\", keywords: [\"pop\", \"proof of participation\", \"event\", \"community\", \"soulbound\"] },\n \"pop-browse\": { id: \"pop-browse\", label: \"Browse POP Events\", icon: Ticket, href: \"/launchpad/pop\", keywords: [\"pop\", \"events\", \"proof of participation\"] },\n \"tickets-create\": { id: \"tickets-create\", label: \"Create IP Tickets\", icon: Ticket, href: \"/launchpad/tickets/create\", keywords: [\"tickets\", \"event\", \"verifiable\", \"attendee\", \"pass\"] },\n \"tickets-browse\": { id: \"tickets-browse\", label: \"Browse IP Tickets\", icon: Ticket, href: \"/launchpad/tickets\", keywords: [\"tickets\", \"browse\", \"events\"] },\n \"club-create\": { id: \"club-create\", label: \"Create IP Club\", icon: Users, href: \"/launchpad/club/create\", keywords: [\"club\", \"membership\", \"tiers\", \"community\", \"fans\"] },\n \"club-browse\": { id: \"club-browse\", label: \"Browse IP Clubs\", icon: Users, href: \"/launchpad/club\", keywords: [\"club\", \"membership\", \"browse\"] },\n \"sponsorship-create\": { id: \"sponsorship-create\", label: \"Create IP Sponsorship\", icon: Handshake, href: \"/launchpad/sponsorship/create\", keywords: [\"sponsorship\", \"sponsor\", \"license\", \"offer\", \"deal\"] },\n \"sponsorship-browse\": { id: \"sponsorship-browse\", label: \"Browse IP Sponsorship\", icon: Handshake, href: \"/launchpad/sponsorship\", keywords: [\"sponsorship\", \"browse\", \"offers\"] },\n \"launch-coin\": { id: \"launch-coin\", label: \"Launch a Creator Coin\", icon: Coins, href: \"/launchpad/coin/create\", keywords: [\"coin\", \"creator coin\", \"erc20\", \"token\", \"ekubo\", \"liquidity\", \"launch\"] },\n remix: { id: \"remix\", label: \"Remix an Asset\", icon: Repeat2, href: \"/marketplace\", keywords: [\"remix\", \"derivative\", \"attribution\", \"fork\"] },\n \"portfolio-collections\": { id: \"portfolio-collections\",label: \"My Collections\", icon: LayoutGrid, href: \"/portfolio/collections\", keywords: [\"deployed\", \"created\", \"my contracts\", \"claim\", \"import\"] },\n \"portfolio-assets\": { id: \"portfolio-assets\", label: \"My Assets\", icon: Gem, href: \"/portfolio/assets\", keywords: [\"owned\", \"nfts\", \"tokens\", \"collected\"] },\n \"portfolio-listings\": { id: \"portfolio-listings\", label: \"My Listings\", icon: Tag, href: \"/portfolio/listings\", keywords: [\"sell\", \"listed\", \"active listings\"] },\n \"portfolio-offers\": { id: \"portfolio-offers\", label: \"My Offers\", icon: List, href: \"/portfolio/offers\", keywords: [\"bids\", \"made\", \"sent offers\"] },\n \"portfolio-received\": { id: \"portfolio-received\", label: \"Received Offers\", icon: ScrollText, href: \"/portfolio/received\", keywords: [\"incoming\", \"bids\", \"offers received\"] },\n \"portfolio-activity\": { id: \"portfolio-activity\", label: \"My Activity\", icon: Activity, href: \"/portfolio/activity\", keywords: [\"history\", \"transactions\", \"events\"] },\n audio: { id: \"audio\", label: \"Audio\", icon: Music, href: \"/audio\", keywords: [\"music\", \"sound\", \"track\", \"podcast\"] },\n art: { id: \"art\", label: \"Art\", icon: Palette, href: \"/art\", keywords: [\"illustration\", \"drawing\", \"painting\", \"digital art\"] },\n video: { id: \"video\", label: \"Video\", icon: Film, href: \"/video\", keywords: [\"film\", \"clip\", \"animation\", \"short\"] },\n photography: { id: \"photography\", label: \"Photography\", icon: Camera, href: \"/photography\", keywords: [\"photo\", \"image\", \"picture\", \"shot\"] },\n nft: { id: \"nft\", label: \"NFT\", icon: Gem, href: \"/nft\", keywords: [\"collectible\", \"token\", \"generative\"] },\n docs: { id: \"docs\", label: \"Docs — Overview\", icon: BookOpen, action: () => window.open(\"https://docs.medialane.io\", \"_blank\"), keywords: [\"docs\", \"help\", \"guide\", \"documentation\"] },\n \"docs-market\": { id: \"docs-market\", label: \"Docs — Marketplace\", icon: Store, action: () => window.open(\"https://docs.medialane.io/marketplace\", \"_blank\"), keywords: [\"docs\", \"buy\", \"sell\", \"orders\", \"guide\"] },\n \"docs-launchpad\": { id: \"docs-launchpad\",label: \"Docs — Launchpad\", icon: Zap, action: () => window.open(\"https://docs.medialane.io/launchpad\", \"_blank\"), keywords: [\"docs\", \"creator\", \"mint\", \"deploy\", \"guide\"] },\n \"docs-ip\": { id: \"docs-ip\", label: \"Docs — IP & Licensing\", icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/ip-licensing\", \"_blank\"), keywords: [\"docs\", \"license\", \"ip\", \"rights\", \"royalty\"] },\n \"docs-sdk\": { id: \"docs-sdk\", label: \"Docs — SDK & API\", icon: FileText, action: () => window.open(\"https://docs.medialane.io/sdk\", \"_blank\"), keywords: [\"docs\", \"developer\", \"api\", \"sdk\", \"integration\"] },\n \"docs-terms\": { id: \"docs-terms\", label: \"Terms of Service\", icon: FileText, action: () => window.open(\"https://docs.medialane.io/guidelines/terms\", \"_blank\"), keywords: [\"legal\", \"terms\", \"tos\"] },\n \"docs-privacy\": { id: \"docs-privacy\", label: \"Privacy Policy\", icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/guidelines/privacy\", \"_blank\"), keywords: [\"privacy\", \"data\", \"gdpr\"] },\n} satisfies Record<string, NavCommand>;\n\nexport type NavItemId = keyof typeof NAV_ITEMS;\n\nexport interface NavGroupSpec {\n heading?: string;\n items: (NavItemId | NavCommand)[];\n}\n\nexport function navGroups(groups: NavGroupSpec[]): NavCommandGroup[] {\n return groups.map(({ he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AAA,EAC5M,cAAc,EAAE,IAAI,cAAc,OAAO,oBAAoB,MAAM,UAAU,QAAQ,MAAM,OAAO,KAAK,8CAA8C,QAAQ,GAAG,UAAU,CAAC,SAAS,SAAS,KAAK,EAAE;AAAA,EACpM,gBAAgB,EAAE,IAAI,gBAAgB,OAAO,kBAAkB,MAAM,aAAa,QAAQ,MAAM,OAAO,KAAK,gDAAgD,QAAQ,GAAG,UAAU,CAAC,WAAW,QAAQ,MAAM,EAAE;AAC/M;AASO,SAAS,UAAU,QAA2C;AACnE,SAAO,OAAO,IAAI,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,IACzC;AAAA,IACA,OAAO,MAAM,IAAI,CAAC,SAAU,OAAO,SAAS,WAAW,UAAU,IAAI,IAAI,IAAK;AAAA,EAChF,EAAE;AACJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/data/nav-commands.ts"],"sourcesContent":["import {\n Activity, BookOpen, Briefcase, Camera, Coins, FileText, Film, Gem, Gift, Handshake, Home, Layers, LayoutGrid, List, Music, Palette, Plus, Repeat2, ScrollText, Settings, ShieldCheck, Store, Tag, Telescope, Ticket, Trophy, Users, Zap,\n} from \"lucide-react\";\nimport type { NavCommand, NavCommandGroup } from \"../components/nav-command-menu.js\";\n\nexport const NAV_ITEMS = {\n home: { id: \"home\", label: \"Medialane\", icon: Home, href: \"/\", keywords: [\"home\", \"frontpage\", \"start\", \"homepage\", \"main\"], description: \"Start here\" },\n discover: { id: \"discover\", label: \"Discover\", icon: Telescope, href: \"/discover\", keywords: [\"feed\", \"explore\", \"trending\"], description: \"Feeds, collections & creators\" },\n marketplace: { id: \"marketplace\", label: \"Marketplace\", icon: Store, href: \"/marketplace\", keywords: [\"buy\", \"sell\", \"trade\", \"listings\", \"browse\"], description: \"Buy, sell & make offers\" },\n launchpad: { id: \"launchpad\", label: \"Launchpad\", icon: Zap, href: \"/launchpad\", keywords: [\"start\", \"launch\", \"creator\", \"mint\", \"create\"], description: \"Create, mint & launch\" },\n portfolio: { id: \"portfolio\", label: \"Portfolio\", icon: Briefcase, href: \"/portfolio\", keywords: [\"owned\", \"my nfts\", \"wallet\", \"account\"], description: \"Your assets & activity\" },\n collections: { id: \"collections\", label: \"Collections\", icon: LayoutGrid, href: \"/collections\", keywords: [\"nft\", \"drops\", \"browse\"] },\n coins: { id: \"coins\", label: \"Coins\", icon: Coins, href: \"/coins\", keywords: [\"token\", \"creator coin\", \"memecoin\", \"discover\", \"trade\", \"swap\"] },\n creators: { id: \"creators\", label: \"Creators\", icon: Users, href: \"/creators\", keywords: [\"artists\", \"profile\", \"profiles\", \"community\"] },\n activities: { id: \"activities\", label: \"Activity\", icon: Activity, href: \"/activities\", keywords: [\"history\", \"transactions\", \"feed\", \"events\"] },\n rewards: { id: \"rewards\", label: \"Rewards\", icon: Trophy, href: \"/rewards\", keywords: [\"xp\", \"points\", \"scoreboard\", \"leaderboard\", \"badges\", \"rank\"] },\n airdrop: { id: \"airdrop\", label: \"Airdrop\", icon: Gift, href: \"/airdrop\", keywords: [\"claim\", \"free\", \"drop\", \"genesis\", \"creator's fund\"] },\n settings: { id: \"settings\", label: \"Account Settings\", icon: Settings, href: \"/settings\", keywords: [\"profile\", \"username\", \"preferences\", \"account\"] },\n \"mint-ip-asset\": { id: \"mint-ip-asset\", label: \"Mint Unique NFT\", icon: Plus, href: \"/launchpad/single-editions\", keywords: [\"mint\", \"upload\", \"publish\", \"token\", \"erc721\", \"singular\", \"unique\", \"original\"] },\n \"create-collection\": { id: \"create-collection\", label: \"Create NFT Collection\", icon: LayoutGrid, href: \"/launchpad/single-editions/collection\", keywords: [\"deploy\", \"series\", \"erc721\", \"collection\", \"branded\"] },\n \"mint-editions\": { id: \"mint-editions\", label: \"Mint Limited Edition\", icon: Layers, href: \"/launchpad/nfteditions\", keywords: [\"mint\", \"edition\", \"erc1155\", \"multi\", \"copies\", \"limited\"] },\n \"create-1155\": { id: \"create-1155\", label: \"Create Limited Edition Contract\", icon: Layers, href: \"/launchpad/nfteditions/create\", keywords: [\"deploy\", \"erc1155\", \"edition\", \"contract\", \"limited\", \"multi-edition\"] },\n \"collection-drop\": { id: \"collection-drop\", label: \"Launch Collection Drop\", icon: Gift, href: \"/launchpad/drop/create\", keywords: [\"drop\", \"timed\", \"fixed supply\", \"release\", \"erc721\"] },\n \"browse-drops\": { id: \"browse-drops\", label: \"Browse Drops\", icon: Store, href: \"/launchpad/drop\", keywords: [\"drop\", \"browse\", \"active\"] },\n \"pop-create\": { id: \"pop-create\", label: \"Create POP Event\", icon: Ticket, href: \"/launchpad/pop/create\", keywords: [\"pop\", \"proof of participation\", \"event\", \"community\", \"soulbound\"] },\n \"pop-browse\": { id: \"pop-browse\", label: \"Browse POP Events\", icon: Ticket, href: \"/launchpad/pop\", keywords: [\"pop\", \"events\", \"proof of participation\"] },\n \"tickets-create\": { id: \"tickets-create\", label: \"Create IP Tickets\", icon: Ticket, href: \"/launchpad/tickets/create\", keywords: [\"tickets\", \"event\", \"verifiable\", \"attendee\", \"pass\"] },\n \"tickets-browse\": { id: \"tickets-browse\", label: \"Browse IP Tickets\", icon: Ticket, href: \"/launchpad/tickets\", keywords: [\"tickets\", \"browse\", \"events\"] },\n \"club-create\": { id: \"club-create\", label: \"Create IP Club\", icon: Users, href: \"/launchpad/club/create\", keywords: [\"club\", \"membership\", \"tiers\", \"community\", \"fans\"] },\n \"club-browse\": { id: \"club-browse\", label: \"Browse IP Clubs\", icon: Users, href: \"/launchpad/club\", keywords: [\"club\", \"membership\", \"browse\"] },\n \"sponsorship-create\": { id: \"sponsorship-create\", label: \"Create IP Sponsorship\", icon: Handshake, href: \"/launchpad/sponsorship/create\", keywords: [\"sponsorship\", \"sponsor\", \"license\", \"offer\", \"deal\"] },\n \"sponsorship-browse\": { id: \"sponsorship-browse\", label: \"Browse IP Sponsorship\", icon: Handshake, href: \"/launchpad/sponsorship\", keywords: [\"sponsorship\", \"browse\", \"offers\"] },\n \"launch-coin\": { id: \"launch-coin\", label: \"Launch a Creator Coin\", icon: Coins, href: \"/launchpad/coin/create\", keywords: [\"coin\", \"creator coin\", \"erc20\", \"token\", \"ekubo\", \"liquidity\", \"launch\"] },\n remix: { id: \"remix\", label: \"Remix an Asset\", icon: Repeat2, href: \"/marketplace\", keywords: [\"remix\", \"derivative\", \"attribution\", \"fork\"] },\n \"portfolio-collections\": { id: \"portfolio-collections\",label: \"My Collections\", icon: LayoutGrid, href: \"/portfolio/collections\", keywords: [\"deployed\", \"created\", \"my contracts\", \"claim\", \"import\"] },\n \"portfolio-assets\": { id: \"portfolio-assets\", label: \"My Assets\", icon: Gem, href: \"/portfolio/assets\", keywords: [\"owned\", \"nfts\", \"tokens\", \"collected\"] },\n \"portfolio-listings\": { id: \"portfolio-listings\", label: \"My Listings\", icon: Tag, href: \"/portfolio/listings\", keywords: [\"sell\", \"listed\", \"active listings\"] },\n \"portfolio-offers\": { id: \"portfolio-offers\", label: \"My Offers\", icon: List, href: \"/portfolio/offers\", keywords: [\"bids\", \"made\", \"sent offers\"] },\n \"portfolio-received\": { id: \"portfolio-received\", label: \"Received Offers\", icon: ScrollText, href: \"/portfolio/received\", keywords: [\"incoming\", \"bids\", \"offers received\"] },\n \"portfolio-activity\": { id: \"portfolio-activity\", label: \"My Activity\", icon: Activity, href: \"/portfolio/activity\", keywords: [\"history\", \"transactions\", \"events\"] },\n audio: { id: \"audio\", label: \"Audio\", icon: Music, href: \"/audio\", keywords: [\"music\", \"sound\", \"track\", \"podcast\"] },\n art: { id: \"art\", label: \"Art\", icon: Palette, href: \"/art\", keywords: [\"illustration\", \"drawing\", \"painting\", \"digital art\"] },\n video: { id: \"video\", label: \"Video\", icon: Film, href: \"/video\", keywords: [\"film\", \"clip\", \"animation\", \"short\"] },\n photography: { id: \"photography\", label: \"Photography\", icon: Camera, href: \"/photography\", keywords: [\"photo\", \"image\", \"picture\", \"shot\"] },\n publications: { id: \"publications\", label: \"Publications\", icon: BookOpen, href: \"/publications\", keywords: [\"article\", \"articles\", \"blog\", \"news\", \"writing\", \"book\", \"journal\"] },\n nft: { id: \"nft\", label: \"NFT\", icon: Gem, href: \"/nft\", keywords: [\"collectible\", \"token\", \"generative\"] },\n docs: { id: \"docs\", label: \"Docs — Overview\", icon: BookOpen, action: () => window.open(\"https://docs.medialane.io\", \"_blank\"), keywords: [\"docs\", \"help\", \"guide\", \"documentation\"] },\n \"docs-market\": { id: \"docs-market\", label: \"Docs — Marketplace\", icon: Store, action: () => window.open(\"https://docs.medialane.io/marketplace\", \"_blank\"), keywords: [\"docs\", \"buy\", \"sell\", \"orders\", \"guide\"] },\n \"docs-launchpad\": { id: \"docs-launchpad\",label: \"Docs — Launchpad\", icon: Zap, action: () => window.open(\"https://docs.medialane.io/launchpad\", \"_blank\"), keywords: [\"docs\", \"creator\", \"mint\", \"deploy\", \"guide\"] },\n \"docs-ip\": { id: \"docs-ip\", label: \"Docs — IP & Licensing\", icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/ip-licensing\", \"_blank\"), keywords: [\"docs\", \"license\", \"ip\", \"rights\", \"royalty\"] },\n \"docs-sdk\": { id: \"docs-sdk\", label: \"Docs — SDK & API\", icon: FileText, action: () => window.open(\"https://docs.medialane.io/sdk\", \"_blank\"), keywords: [\"docs\", \"developer\", \"api\", \"sdk\", \"integration\"] },\n \"docs-terms\": { id: \"docs-terms\", label: \"Terms of Service\", icon: FileText, action: () => window.open(\"https://docs.medialane.io/guidelines/terms\", \"_blank\"), keywords: [\"legal\", \"terms\", \"tos\"] },\n \"docs-privacy\": { id: \"docs-privacy\", label: \"Privacy Policy\", icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/guidelines/privacy\", \"_blank\"), keywords: [\"privacy\", \"data\", \"gdpr\"] },\n} satisfies Record<string, NavCommand>;\n\nexport type NavItemId = keyof typeof NAV_ITEMS;\n\nexport interface NavGroupSpec {\n heading?: string;\n items: (NavItemId | NavCommand)[];\n}\n\nexport function navGroups(groups: NavGroupSpec[]): NavCommandGroup[] {\n return groups.map(({ heading, items }) =>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