@medialane/ui 0.212.3 → 0.213.1

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.
@@ -0,0 +1,36 @@
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 VIDEO_EMBED_TRAITS: Set<string>;
9
+ declare function videoEmbed(attributes: Attr[]): {
10
+ src: string;
11
+ label: string;
12
+ } | null;
13
+ interface AssetVideoProps {
14
+ name: string;
15
+ embedSrc: string;
16
+ embedLabel: string;
17
+ description?: string | null;
18
+ collectionName: string;
19
+ collectionImage?: string | null;
20
+ collectionHref: string;
21
+ utilities: ReactNode;
22
+ }
23
+ declare function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetVideoProps): react_jsx_runtime.JSX.Element;
24
+ interface AssetRelatedItem {
25
+ tokenId: string;
26
+ name: string;
27
+ image: string | null;
28
+ href: string;
29
+ }
30
+ declare function AssetRelatedList({ title, titleHref, items }: {
31
+ title: string;
32
+ titleHref: string;
33
+ items: AssetRelatedItem[];
34
+ }): react_jsx_runtime.JSX.Element | null;
35
+
36
+ export { type AssetRelatedItem, AssetRelatedList, AssetVideo, type AssetVideoProps, VIDEO_EMBED_TRAITS, videoEmbed };
@@ -0,0 +1,36 @@
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 VIDEO_EMBED_TRAITS: Set<string>;
9
+ declare function videoEmbed(attributes: Attr[]): {
10
+ src: string;
11
+ label: string;
12
+ } | null;
13
+ interface AssetVideoProps {
14
+ name: string;
15
+ embedSrc: string;
16
+ embedLabel: string;
17
+ description?: string | null;
18
+ collectionName: string;
19
+ collectionImage?: string | null;
20
+ collectionHref: string;
21
+ utilities: ReactNode;
22
+ }
23
+ declare function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }: AssetVideoProps): react_jsx_runtime.JSX.Element;
24
+ interface AssetRelatedItem {
25
+ tokenId: string;
26
+ name: string;
27
+ image: string | null;
28
+ href: string;
29
+ }
30
+ declare function AssetRelatedList({ title, titleHref, items }: {
31
+ title: string;
32
+ titleHref: string;
33
+ items: AssetRelatedItem[];
34
+ }): react_jsx_runtime.JSX.Element | null;
35
+
36
+ export { type AssetRelatedItem, AssetRelatedList, AssetVideo, type AssetVideoProps, VIDEO_EMBED_TRAITS, videoEmbed };
@@ -0,0 +1,64 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import Link from "./link.js";
4
+ import { ArrowRight } from "lucide-react";
5
+ import { ExpandableText } from "./expandable-text.js";
6
+ import { getEmbedSrc } from "./ip-type-display.js";
7
+ import { EMBED_PLATFORM_META } from "../data/ip-templates.js";
8
+ const VIDEO_PLATFORMS = ["youtube", "vimeo", "tiktok"];
9
+ const VIDEO_EMBED_TRAITS = new Set(VIDEO_PLATFORMS.map((p) => EMBED_PLATFORM_META[p].traitKey));
10
+ function videoEmbed(attributes) {
11
+ for (const platform of VIDEO_PLATFORMS) {
12
+ const meta = EMBED_PLATFORM_META[platform];
13
+ const value = attributes.find((a) => a.trait_type === meta.traitKey)?.value;
14
+ const src = value ? getEmbedSrc(platform, value) : null;
15
+ if (src) return { src, label: meta.label };
16
+ }
17
+ return null;
18
+ }
19
+ function AssetVideo({ name, embedSrc, embedLabel, description, collectionName, collectionImage, collectionHref, utilities }) {
20
+ return /* @__PURE__ */ jsxs("div", { className: "min-w-0 space-y-4", children: [
21
+ /* @__PURE__ */ jsx("div", { className: "relative w-full aspect-video overflow-hidden rounded-2xl bg-black", children: /* @__PURE__ */ jsx(
22
+ "iframe",
23
+ {
24
+ src: embedSrc,
25
+ title: embedLabel,
26
+ className: "absolute inset-0 h-full w-full",
27
+ allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
28
+ allowFullScreen: true
29
+ }
30
+ ) }),
31
+ /* @__PURE__ */ jsx("h1", { className: "text-xl lg:text-2xl font-bold break-words", children: name }),
32
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
33
+ /* @__PURE__ */ jsxs(Link, { href: collectionHref, className: "flex min-w-0 items-center gap-3 hover:text-primary transition-colors", children: [
34
+ collectionImage ? /* @__PURE__ */ jsx("img", { src: collectionImage, alt: "", className: "h-10 w-10 shrink-0 rounded-full object-cover" }) : null,
35
+ /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold", children: collectionName })
36
+ ] }),
37
+ utilities
38
+ ] }),
39
+ description ? /* @__PURE__ */ jsx("div", { className: "rounded-2xl bg-muted/30 p-4", children: /* @__PURE__ */ jsx(ExpandableText, { text: description }) }) : null
40
+ ] });
41
+ }
42
+ function AssetRelatedList({ title, titleHref, items }) {
43
+ if (items.length === 0) return null;
44
+ return /* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
45
+ /* @__PURE__ */ jsxs(Link, { href: titleHref, className: "flex items-center justify-between gap-2 text-sm font-semibold hover:text-primary transition-colors", children: [
46
+ /* @__PURE__ */ jsxs("span", { className: "truncate", children: [
47
+ "More from ",
48
+ title
49
+ ] }),
50
+ /* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4 shrink-0" })
51
+ ] }),
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 })
55
+ ] }) }, item.tokenId)) })
56
+ ] });
57
+ }
58
+ export {
59
+ AssetRelatedList,
60
+ AssetVideo,
61
+ VIDEO_EMBED_TRAITS,
62
+ videoEmbed
63
+ };
64
+ //# sourceMappingURL=asset-video.js.map
@@ -0,0 +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=\"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=\"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,EAA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AW,WAAU,oBAAmB;AAAA,OAC3C;AAAA,IACA,oBAAC,QAAG,WAAU,aACX,gBAAM,IAAI,CAAC,SACV,oBAAC,QACC,+BAAC,QAAK,MAAM,KAAK,MAAM,WAAU,oBAC/B;AAAA,0BAAC,SAAI,WAAU,qEACZ,eAAK,QAAQ,oBAAC,SAAI,KAAK,KAAK,OAAO,KAAI,IAAG,SAAQ,QAAO,WAAU,8BAA6B,IAAK,MACxG;AAAA,MACA,oBAAC,OAAE,WAAU,oGAAoG,eAAK,MAAK;AAAA,OAC7H,KANO,KAAK,OAOd,CACD,GACH;AAAA,KACF;AAEJ;","names":[]}
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "ghost" | "link" | "default" | "destructive" | "outline" | "secondary" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
- size?: "icon" | "default" | "sm" | "lg" | null | undefined;
6
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
10
  asChild?: boolean;
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "ghost" | "link" | "default" | "destructive" | "outline" | "secondary" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
- size?: "icon" | "default" | "sm" | "lg" | null | undefined;
6
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
10
  asChild?: boolean;
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { FastMintProps } from './types.cjs';
4
4
  import 'starknet';
5
5
  import '@medialane/sdk';
6
6
  import '@medialane/sdk/starknet';
7
7
 
8
- declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
8
+ declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
9
9
 
10
10
  export { FastMint };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { FastMintProps } from './types.js';
4
4
  import 'starknet';
5
5
  import '@medialane/sdk';
6
6
  import '@medialane/sdk/starknet';
7
7
 
8
- declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
8
+ declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
9
9
 
10
10
  export { FastMint };
@@ -19,7 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
  var ip_type_display_exports = {};
21
21
  __export(ip_type_display_exports, {
22
- IPTypeDisplay: () => IPTypeDisplay
22
+ IPTypeDisplay: () => IPTypeDisplay,
23
+ getEmbedSrc: () => getEmbedSrc
23
24
  });
24
25
  module.exports = __toCommonJS(ip_type_display_exports);
25
26
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -221,6 +222,7 @@ function IPTypeDisplay({ attributes }) {
221
222
  }
222
223
  // Annotate the CommonJS export names for ESM import in node:
223
224
  0 && (module.exports = {
224
- IPTypeDisplay
225
+ IPTypeDisplay,
226
+ getEmbedSrc
225
227
  });
226
228
  //# sourceMappingURL=ip-type-display.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/ip-type-display.tsx"],"sourcesContent":["\"use client\";\n\nimport type { IPType } from \"../data/ip.js\";\nimport {\n IP_TEMPLATES,\n EMBED_PLATFORM_META,\n SOCIAL_PLATFORM_META,\n type EmbedPlatform,\n} from \"../data/ip-templates.js\";\nimport { ipfsToHttp } from \"../utils/ipfs.js\";\nimport { ExternalLink, FileText, ShieldCheck } from \"lucide-react\";\n\ninterface Attr {\n trait_type?: string | null;\n value?: string | null;\n}\n\ninterface IPTypeDisplayProps {\n attributes: Attr[] | null | undefined;\n}\n\nfunction parseYouTubeEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n let id: string | null = null;\n if (u.hostname.includes(\"youtu.be\")) {\n id = u.pathname.slice(1);\n } else if (u.hostname.includes(\"youtube.com\")) {\n id = u.searchParams.get(\"v\");\n }\n if (!id) return null;\n return `https://www.youtube.com/embed/${id}`;\n } catch {\n return null;\n }\n}\n\nfunction parseSpotifyEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"spotify.com\")) return null;\n\n const match = u.pathname.match(\n /(track|album|playlist|episode|show|artist)\\/([A-Za-z0-9]+)/\n );\n if (!match) return null;\n return `https://open.spotify.com/embed/${match[1]}/${match[2]}`;\n } catch {\n return null;\n }\n}\n\nfunction parseSoundCloudEmbed(url: string): string | null {\n try {\n new URL(url);\n if (!url.includes(\"soundcloud.com\")) return null;\n const encoded = encodeURIComponent(url);\n return `https://w.soundcloud.com/player/?url=${encoded}&color=%23ff5500&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false`;\n } catch {\n return null;\n }\n}\n\nfunction parseTikTokEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"tiktok.com\")) return null;\n const match = u.pathname.match(/\\/video\\/(\\d+)/);\n if (!match) return null;\n return `https://www.tiktok.com/embed/v2/${match[1]}`;\n } catch {\n return null;\n }\n}\n\nfunction parseVimeoEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"vimeo.com\")) return null;\n const match = u.pathname.match(/(\\d+)/);\n if (!match) return null;\n return `https://player.vimeo.com/video/${match[1]}`;\n } catch {\n return null;\n }\n}\n\nfunction getEmbedSrc(platform: EmbedPlatform, value: string): string | null {\n switch (platform) {\n case \"youtube\": return parseYouTubeEmbed(value);\n case \"spotify\": return parseSpotifyEmbed(value);\n case \"soundcloud\": return parseSoundCloudEmbed(value);\n case \"tiktok\": return parseTikTokEmbed(value);\n case \"vimeo\": return parseVimeoEmbed(value);\n }\n}\n\nconst COMPACT: Record<EmbedPlatform, boolean> = {\n spotify: true,\n soundcloud: true,\n youtube: false,\n tiktok: false,\n vimeo: false,\n};\n\nexport function IPTypeDisplay({ attributes }: IPTypeDisplayProps) {\n const attrs = attributes ?? [];\n\n const ipType = attrs.find(\n (a) => a.trait_type?.toLowerCase() === \"ip type\"\n )?.value as IPType | undefined;\n if (!ipType) return null;\n\n const template = IP_TEMPLATES[ipType];\n if (!template) return null;\n\n const getAttr = (key: string) =>\n attrs.find((a) => a.trait_type === key)?.value ?? null;\n\n const embeds = (template.embeds ?? []).flatMap((platform) => {\n const meta = EMBED_PLATFORM_META[platform];\n const value = getAttr(meta.traitKey);\n return value ? [{ platform, meta, value }] : [];\n });\n\n const socials = (template.socials ?? []).flatMap((platform) => {\n const meta = SOCIAL_PLATFORM_META[platform];\n const value = getAttr(meta.traitKey);\n return value ? [{ platform, meta, value }] : [];\n });\n\n const docUri = template.docUpload ? getAttr(template.docUpload.traitType) : null;\n\n if (embeds.length === 0 && socials.length === 0 && !docUri) return null;\n\n return (\n <div className=\"space-y-5\">\n\n {docUri && (\n <div className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n Document\n </p>\n <a\n href={docUri.startsWith(\"ipfs://\") ? ipfsToHttp(docUri) : docUri}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-3 rounded-xl border border-border bg-muted/20 px-4 py-3 transition-colors hover:border-primary/40 group\"\n >\n <FileText className=\"h-5 w-5 text-primary shrink-0\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold group-hover:text-primary transition-colors\">\n View document\n </p>\n <p className=\"text-xs text-muted-foreground flex items-center gap-1 mt-0.5\">\n <ShieldCheck className=\"h-3 w-3 shrink-0\" />\n Stored on IPFS — immutable, timestamped copy of the original\n </p>\n </div>\n <ExternalLink className=\"h-3.5 w-3.5 text-muted-foreground shrink-0\" />\n </a>\n </div>\n )}\n {embeds.map(({ platform, meta, value }) => {\n const src = getEmbedSrc(platform, value);\n if (src) {\n return (\n <div key={platform} className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n {meta.label}\n </p>\n {COMPACT[platform] ? (\n <iframe\n src={src}\n className=\"w-full rounded-xl border-0\"\n height={166}\n allow=\"autoplay\"\n loading=\"lazy\"\n title={meta.label}\n />\n ) : (\n <div className=\"relative w-full aspect-video rounded-xl overflow-hidden bg-muted/20\">\n <iframe\n src={src}\n className=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n loading=\"lazy\"\n title={meta.label}\n />\n </div>\n )}\n </div>\n );\n }\n\n return (\n <div key={platform}>\n <p className=\"text-xs font-medium text-muted-foreground mb-1\">\n {meta.label}\n </p>\n <a\n href={value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm text-primary hover:underline\"\n >\n <ExternalLink className=\"h-3.5 w-3.5\" />\n Open link\n </a>\n </div>\n );\n })}\n\n {socials.length > 0 && (\n <div className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n Links\n </p>\n <div className=\"flex flex-wrap gap-2\">\n {socials.map(({ platform, meta, value }) => {\n const SIcon = meta.icon;\n return (\n <a\n key={platform}\n href={value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 rounded-full border border-border bg-muted/30 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground\"\n >\n <SIcon className=\"h-3.5 w-3.5\" />\n {meta.label}\n </a>\n );\n })}\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA4IU;AAzIV,0BAKO;AACP,kBAA2B;AAC3B,0BAAoD;AAWpD,SAAS,kBAAkB,KAA4B;AACrD,MAAI;AACF,UAAM,IAAI,IAAI,IAAI,GAAG;AACrB,QAAI,KAAoB;AACxB,QAAI,EAAE,SAAS,SAAS,UAAU,GAAG;AACnC,WAAK,EAAE,SAAS,MAAM,CAAC;AAAA,IACzB,WAAW,EAAE,SAAS,SAAS,aAAa,GAAG;AAC7C,WAAK,EAAE,aAAa,IAAI,GAAG;AAAA,IAC7B;AACA,QAAI,CAAC,GAAI,QAAO;AAChB,WAAO,iCAAiC,EAAE;AAAA,EAC5C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;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AAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV;AAAA,0DAAC,oCAAa,WAAU,eAAc;AAAA,cAAE;AAAA;AAAA;AAAA,QAE1C;AAAA,WAZQ,QAaV;AAAA,IAEJ,CAAC;AAAA,IAEA,QAAQ,SAAS,KAChB,6CAAC,SAAI,WAAU,eACb;AAAA,kDAAC,OAAE,WAAU,6CAA4C,mBAEzD;AAAA,MACA,4CAAC,SAAI,WAAU,wBACZ,kBAAQ,IAAI,CAAC,EAAE,UAAU,MAAM,MAAM,MAAM;AAC1C,cAAM,QAAQ,KAAK;AACnB,eACE;AAAA,UAAC;AAAA;AAAA,YAEC,MAAM;AAAA,YACN,QAAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV;AAAA,0DAAC,SAAM,WAAU,eAAc;AAAA,cAC9B,KAAK;AAAA;AAAA;AAAA,UAPD;AAAA,QAQP;AAAA,MAEJ,CAAC,GACH;AAAA,OACF;AAAA,KAEJ;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/ip-type-display.tsx"],"sourcesContent":["\"use client\";\n\nimport type { IPType } from \"../data/ip.js\";\nimport {\n IP_TEMPLATES,\n EMBED_PLATFORM_META,\n SOCIAL_PLATFORM_META,\n type EmbedPlatform,\n} from \"../data/ip-templates.js\";\nimport { ipfsToHttp } from \"../utils/ipfs.js\";\nimport { ExternalLink, FileText, ShieldCheck } from \"lucide-react\";\n\ninterface Attr {\n trait_type?: string | null;\n value?: string | null;\n}\n\ninterface IPTypeDisplayProps {\n attributes: Attr[] | null | undefined;\n}\n\nfunction parseYouTubeEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n let id: string | null = null;\n if (u.hostname.includes(\"youtu.be\")) {\n id = u.pathname.slice(1);\n } else if (u.hostname.includes(\"youtube.com\")) {\n id = u.searchParams.get(\"v\");\n }\n if (!id) return null;\n return `https://www.youtube.com/embed/${id}`;\n } catch {\n return null;\n }\n}\n\nfunction parseSpotifyEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"spotify.com\")) return null;\n\n const match = u.pathname.match(\n /(track|album|playlist|episode|show|artist)\\/([A-Za-z0-9]+)/\n );\n if (!match) return null;\n return `https://open.spotify.com/embed/${match[1]}/${match[2]}`;\n } catch {\n return null;\n }\n}\n\nfunction parseSoundCloudEmbed(url: string): string | null {\n try {\n new URL(url);\n if (!url.includes(\"soundcloud.com\")) return null;\n const encoded = encodeURIComponent(url);\n return `https://w.soundcloud.com/player/?url=${encoded}&color=%23ff5500&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false`;\n } catch {\n return null;\n }\n}\n\nfunction parseTikTokEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"tiktok.com\")) return null;\n const match = u.pathname.match(/\\/video\\/(\\d+)/);\n if (!match) return null;\n return `https://www.tiktok.com/embed/v2/${match[1]}`;\n } catch {\n return null;\n }\n}\n\nfunction parseVimeoEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"vimeo.com\")) return null;\n const match = u.pathname.match(/(\\d+)/);\n if (!match) return null;\n return `https://player.vimeo.com/video/${match[1]}`;\n } catch {\n return null;\n }\n}\n\nexport function getEmbedSrc(platform: EmbedPlatform, value: string): string | null {\n switch (platform) {\n case \"youtube\": return parseYouTubeEmbed(value);\n case \"spotify\": return parseSpotifyEmbed(value);\n case \"soundcloud\": return parseSoundCloudEmbed(value);\n case \"tiktok\": return parseTikTokEmbed(value);\n case \"vimeo\": return parseVimeoEmbed(value);\n }\n}\n\nconst COMPACT: Record<EmbedPlatform, boolean> = {\n spotify: true,\n soundcloud: true,\n youtube: false,\n tiktok: false,\n vimeo: false,\n};\n\nexport function IPTypeDisplay({ attributes }: IPTypeDisplayProps) {\n const attrs = attributes ?? [];\n\n const ipType = attrs.find(\n (a) => a.trait_type?.toLowerCase() === \"ip type\"\n )?.value as IPType | undefined;\n if (!ipType) return null;\n\n const template = IP_TEMPLATES[ipType];\n if (!template) return null;\n\n const getAttr = (key: string) =>\n attrs.find((a) => a.trait_type === key)?.value ?? null;\n\n const embeds = (template.embeds ?? []).flatMap((platform) => {\n const meta = EMBED_PLATFORM_META[platform];\n const value = getAttr(meta.traitKey);\n return value ? [{ platform, meta, value }] : [];\n });\n\n const socials = (template.socials ?? []).flatMap((platform) => {\n const meta = SOCIAL_PLATFORM_META[platform];\n const value = getAttr(meta.traitKey);\n return value ? [{ platform, meta, value }] : [];\n });\n\n const docUri = template.docUpload ? getAttr(template.docUpload.traitType) : null;\n\n if (embeds.length === 0 && socials.length === 0 && !docUri) return null;\n\n return (\n <div className=\"space-y-5\">\n\n {docUri && (\n <div className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n Document\n </p>\n <a\n href={docUri.startsWith(\"ipfs://\") ? ipfsToHttp(docUri) : docUri}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-3 rounded-xl border border-border bg-muted/20 px-4 py-3 transition-colors hover:border-primary/40 group\"\n >\n <FileText className=\"h-5 w-5 text-primary shrink-0\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold group-hover:text-primary transition-colors\">\n View document\n </p>\n <p className=\"text-xs text-muted-foreground flex items-center gap-1 mt-0.5\">\n <ShieldCheck className=\"h-3 w-3 shrink-0\" />\n Stored on IPFS — immutable, timestamped copy of the original\n </p>\n </div>\n <ExternalLink className=\"h-3.5 w-3.5 text-muted-foreground shrink-0\" />\n </a>\n </div>\n )}\n {embeds.map(({ platform, meta, value }) => {\n const src = getEmbedSrc(platform, value);\n if (src) {\n return (\n <div key={platform} className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n {meta.label}\n </p>\n {COMPACT[platform] ? (\n <iframe\n src={src}\n className=\"w-full rounded-xl border-0\"\n height={166}\n allow=\"autoplay\"\n loading=\"lazy\"\n title={meta.label}\n />\n ) : (\n <div className=\"relative w-full aspect-video rounded-xl overflow-hidden bg-muted/20\">\n <iframe\n src={src}\n className=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n loading=\"lazy\"\n title={meta.label}\n />\n </div>\n )}\n </div>\n );\n }\n\n return (\n <div key={platform}>\n <p className=\"text-xs font-medium text-muted-foreground mb-1\">\n {meta.label}\n </p>\n <a\n href={value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm text-primary hover:underline\"\n >\n <ExternalLink className=\"h-3.5 w-3.5\" />\n Open link\n </a>\n </div>\n );\n })}\n\n {socials.length > 0 && (\n <div className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n Links\n </p>\n <div className=\"flex flex-wrap gap-2\">\n {socials.map(({ platform, meta, value }) => {\n const SIcon = meta.icon;\n return (\n <a\n key={platform}\n href={value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 rounded-full border border-border bg-muted/30 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground\"\n >\n <SIcon className=\"h-3.5 w-3.5\" />\n {meta.label}\n </a>\n );\n })}\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4IU;AAzIV,0BAKO;AACP,kBAA2B;AAC3B,0BAAoD;AAWpD,SAAS,kBAAkB,KAA4B;AACrD,MAAI;AACF,UAAM,IAAI,IAAI,IAAI,GAAG;AACrB,QAAI,KAAoB;AACxB,QAAI,EAAE,SAAS,SAAS,UAAU,GAAG;AACnC,WAAK,EAAE,SAAS,MAAM,CAAC;AAAA,IACzB,WAAW,EAAE,SAAS,SAAS,aAAa,GAAG;AAC7C,WAAK,EAAE,aAAa,IAAI,GAAG;AAAA,IAC7B;AACA,QAAI,CAAC,GAAI,QAAO;AA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,eAAK,OACR;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,QAAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV;AAAA,0DAAC,oCAAa,WAAU,eAAc;AAAA,cAAE;AAAA;AAAA;AAAA,QAE1C;AAAA,WAZQ,QAaV;AAAA,IAEJ,CAAC;AAAA,IAEA,QAAQ,SAAS,KAChB,6CAAC,SAAI,WAAU,eACb;AAAA,kDAAC,OAAE,WAAU,6CAA4C,mBAEzD;AAAA,MACA,4CAAC,SAAI,WAAU,wBACZ,kBAAQ,IAAI,CAAC,EAAE,UAAU,MAAM,MAAM,MAAM;AAC1C,cAAM,QAAQ,KAAK;AACnB,eACE;AAAA,UAAC;AAAA;AAAA,YAEC,MAAM;AAAA,YACN,QAAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV;AAAA,0DAAC,SAAM,WAAU,eAAc;AAAA,cAC9B,KAAK;AAAA;AAAA;AAAA,UAPD;AAAA,QAQP;AAAA,MAEJ,CAAC,GACH;AAAA,OACF;AAAA,KAEJ;AAEJ;","names":[]}
@@ -1,4 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { EmbedPlatform } from '../data/ip-templates.cjs';
3
+ import 'lucide-react';
4
+ import '../data/ip.cjs';
2
5
 
3
6
  interface Attr {
4
7
  trait_type?: string | null;
@@ -7,6 +10,7 @@ interface Attr {
7
10
  interface IPTypeDisplayProps {
8
11
  attributes: Attr[] | null | undefined;
9
12
  }
13
+ declare function getEmbedSrc(platform: EmbedPlatform, value: string): string | null;
10
14
  declare function IPTypeDisplay({ attributes }: IPTypeDisplayProps): react_jsx_runtime.JSX.Element | null;
11
15
 
12
- export { IPTypeDisplay };
16
+ export { IPTypeDisplay, getEmbedSrc };
@@ -1,4 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { EmbedPlatform } from '../data/ip-templates.js';
3
+ import 'lucide-react';
4
+ import '../data/ip.js';
2
5
 
3
6
  interface Attr {
4
7
  trait_type?: string | null;
@@ -7,6 +10,7 @@ interface Attr {
7
10
  interface IPTypeDisplayProps {
8
11
  attributes: Attr[] | null | undefined;
9
12
  }
13
+ declare function getEmbedSrc(platform: EmbedPlatform, value: string): string | null;
10
14
  declare function IPTypeDisplay({ attributes }: IPTypeDisplayProps): react_jsx_runtime.JSX.Element | null;
11
15
 
12
- export { IPTypeDisplay };
16
+ export { IPTypeDisplay, getEmbedSrc };
@@ -201,6 +201,7 @@ function IPTypeDisplay({ attributes }) {
201
201
  ] });
202
202
  }
203
203
  export {
204
- IPTypeDisplay
204
+ IPTypeDisplay,
205
+ getEmbedSrc
205
206
  };
206
207
  //# sourceMappingURL=ip-type-display.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/ip-type-display.tsx"],"sourcesContent":["\"use client\";\n\nimport type { IPType } from \"../data/ip.js\";\nimport {\n IP_TEMPLATES,\n EMBED_PLATFORM_META,\n SOCIAL_PLATFORM_META,\n type EmbedPlatform,\n} from \"../data/ip-templates.js\";\nimport { ipfsToHttp } from \"../utils/ipfs.js\";\nimport { ExternalLink, FileText, ShieldCheck } from \"lucide-react\";\n\ninterface Attr {\n trait_type?: string | null;\n value?: string | null;\n}\n\ninterface IPTypeDisplayProps {\n attributes: Attr[] | null | undefined;\n}\n\nfunction parseYouTubeEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n let id: string | null = null;\n if (u.hostname.includes(\"youtu.be\")) {\n id = u.pathname.slice(1);\n } else if (u.hostname.includes(\"youtube.com\")) {\n id = u.searchParams.get(\"v\");\n }\n if (!id) return null;\n return `https://www.youtube.com/embed/${id}`;\n } catch {\n return null;\n }\n}\n\nfunction parseSpotifyEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"spotify.com\")) return null;\n\n const match = u.pathname.match(\n /(track|album|playlist|episode|show|artist)\\/([A-Za-z0-9]+)/\n );\n if (!match) return null;\n return `https://open.spotify.com/embed/${match[1]}/${match[2]}`;\n } catch {\n return null;\n }\n}\n\nfunction parseSoundCloudEmbed(url: string): string | null {\n try {\n new URL(url);\n if (!url.includes(\"soundcloud.com\")) return null;\n const encoded = encodeURIComponent(url);\n return `https://w.soundcloud.com/player/?url=${encoded}&color=%23ff5500&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false`;\n } catch {\n return null;\n }\n}\n\nfunction parseTikTokEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"tiktok.com\")) return null;\n const match = u.pathname.match(/\\/video\\/(\\d+)/);\n if (!match) return null;\n return `https://www.tiktok.com/embed/v2/${match[1]}`;\n } catch {\n return null;\n }\n}\n\nfunction parseVimeoEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"vimeo.com\")) return null;\n const match = u.pathname.match(/(\\d+)/);\n if (!match) return null;\n return `https://player.vimeo.com/video/${match[1]}`;\n } catch {\n return null;\n }\n}\n\nfunction getEmbedSrc(platform: EmbedPlatform, value: string): string | null {\n switch (platform) {\n case \"youtube\": return parseYouTubeEmbed(value);\n case \"spotify\": return parseSpotifyEmbed(value);\n case \"soundcloud\": return parseSoundCloudEmbed(value);\n case \"tiktok\": return parseTikTokEmbed(value);\n case \"vimeo\": return parseVimeoEmbed(value);\n }\n}\n\nconst COMPACT: Record<EmbedPlatform, boolean> = {\n spotify: true,\n soundcloud: true,\n youtube: false,\n tiktok: false,\n vimeo: false,\n};\n\nexport function IPTypeDisplay({ attributes }: IPTypeDisplayProps) {\n const attrs = attributes ?? [];\n\n const ipType = attrs.find(\n (a) => a.trait_type?.toLowerCase() === \"ip type\"\n )?.value as IPType | undefined;\n if (!ipType) return null;\n\n const template = IP_TEMPLATES[ipType];\n if (!template) return null;\n\n const getAttr = (key: string) =>\n attrs.find((a) => a.trait_type === key)?.value ?? null;\n\n const embeds = (template.embeds ?? []).flatMap((platform) => {\n const meta = EMBED_PLATFORM_META[platform];\n const value = getAttr(meta.traitKey);\n return value ? [{ platform, meta, value }] : [];\n });\n\n const socials = (template.socials ?? []).flatMap((platform) => {\n const meta = SOCIAL_PLATFORM_META[platform];\n const value = getAttr(meta.traitKey);\n return value ? [{ platform, meta, value }] : [];\n });\n\n const docUri = template.docUpload ? getAttr(template.docUpload.traitType) : null;\n\n if (embeds.length === 0 && socials.length === 0 && !docUri) return null;\n\n return (\n <div className=\"space-y-5\">\n\n {docUri && (\n <div className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n Document\n </p>\n <a\n href={docUri.startsWith(\"ipfs://\") ? ipfsToHttp(docUri) : docUri}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-3 rounded-xl border border-border bg-muted/20 px-4 py-3 transition-colors hover:border-primary/40 group\"\n >\n <FileText className=\"h-5 w-5 text-primary shrink-0\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold group-hover:text-primary transition-colors\">\n View document\n </p>\n <p className=\"text-xs text-muted-foreground flex items-center gap-1 mt-0.5\">\n <ShieldCheck className=\"h-3 w-3 shrink-0\" />\n Stored on IPFS — immutable, timestamped copy of the original\n </p>\n </div>\n <ExternalLink className=\"h-3.5 w-3.5 text-muted-foreground shrink-0\" />\n </a>\n </div>\n )}\n {embeds.map(({ platform, meta, value }) => {\n const src = getEmbedSrc(platform, value);\n if (src) {\n return (\n <div key={platform} className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n {meta.label}\n </p>\n {COMPACT[platform] ? (\n <iframe\n src={src}\n className=\"w-full rounded-xl border-0\"\n height={166}\n allow=\"autoplay\"\n loading=\"lazy\"\n title={meta.label}\n />\n ) : (\n <div className=\"relative w-full aspect-video rounded-xl overflow-hidden bg-muted/20\">\n <iframe\n src={src}\n className=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n loading=\"lazy\"\n title={meta.label}\n />\n </div>\n )}\n </div>\n );\n }\n\n return (\n <div key={platform}>\n <p className=\"text-xs font-medium text-muted-foreground mb-1\">\n {meta.label}\n </p>\n <a\n href={value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm text-primary hover:underline\"\n >\n <ExternalLink className=\"h-3.5 w-3.5\" />\n Open link\n </a>\n </div>\n );\n })}\n\n {socials.length > 0 && (\n <div className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n Links\n </p>\n <div className=\"flex flex-wrap gap-2\">\n {socials.map(({ platform, meta, value }) => {\n const SIcon = meta.icon;\n return (\n <a\n key={platform}\n href={value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 rounded-full border border-border bg-muted/30 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground\"\n >\n <SIcon className=\"h-3.5 w-3.5\" />\n {meta.label}\n </a>\n );\n })}\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";AA4IU,cAcI,YAdJ;AAzIV;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,kBAAkB;AAC3B,SAAS,cAAc,UAAU,mBAAmB;AAWpD,SAAS,kBAAkB,KAA4B;AACrD,MAAI;AACF,UAAM,IAAI,IAAI,IAAI,GAAG;AACrB,QAAI,KAAoB;AACxB,QAAI,EAAE,SAAS,SAAS,UAAU,GAAG;AACnC,WAAK,EAAE,SAAS,MAAM,CAAC;AAAA,IACzB,WAAW,EAAE,SAAS,SAAS,aAAa,GAAG;AAC7C,WAAK,EAAE,aAAa,IAAI,GAAG;AAAA,IAC7B;AACA,QAAI,CAAC,GAAI,QAAO;AAChB,WAAO,iCAAiC,EAAE;AAAA,EAC5C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,SAAS,kBAAkB,KAA4B;AACrD,MAAI;AACF,UAA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AAA,kCAAC,gBAAa,WAAU,eAAc;AAAA,cAAE;AAAA;AAAA;AAAA,QAE1C;AAAA,WAZQ,QAaV;AAAA,IAEJ,CAAC;AAAA,IAEA,QAAQ,SAAS,KAChB,qBAAC,SAAI,WAAU,eACb;AAAA,0BAAC,OAAE,WAAU,6CAA4C,mBAEzD;AAAA,MACA,oBAAC,SAAI,WAAU,wBACZ,kBAAQ,IAAI,CAAC,EAAE,UAAU,MAAM,MAAM,MAAM;AAC1C,cAAM,QAAQ,KAAK;AACnB,eACE;AAAA,UAAC;AAAA;AAAA,YAEC,MAAM;AAAA,YACN,QAAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV;AAAA,kCAAC,SAAM,WAAU,eAAc;AAAA,cAC9B,KAAK;AAAA;AAAA;AAAA,UAPD;AAAA,QAQP;AAAA,MAEJ,CAAC,GACH;AAAA,OACF;AAAA,KAEJ;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/ip-type-display.tsx"],"sourcesContent":["\"use client\";\n\nimport type { IPType } from \"../data/ip.js\";\nimport {\n IP_TEMPLATES,\n EMBED_PLATFORM_META,\n SOCIAL_PLATFORM_META,\n type EmbedPlatform,\n} from \"../data/ip-templates.js\";\nimport { ipfsToHttp } from \"../utils/ipfs.js\";\nimport { ExternalLink, FileText, ShieldCheck } from \"lucide-react\";\n\ninterface Attr {\n trait_type?: string | null;\n value?: string | null;\n}\n\ninterface IPTypeDisplayProps {\n attributes: Attr[] | null | undefined;\n}\n\nfunction parseYouTubeEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n let id: string | null = null;\n if (u.hostname.includes(\"youtu.be\")) {\n id = u.pathname.slice(1);\n } else if (u.hostname.includes(\"youtube.com\")) {\n id = u.searchParams.get(\"v\");\n }\n if (!id) return null;\n return `https://www.youtube.com/embed/${id}`;\n } catch {\n return null;\n }\n}\n\nfunction parseSpotifyEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"spotify.com\")) return null;\n\n const match = u.pathname.match(\n /(track|album|playlist|episode|show|artist)\\/([A-Za-z0-9]+)/\n );\n if (!match) return null;\n return `https://open.spotify.com/embed/${match[1]}/${match[2]}`;\n } catch {\n return null;\n }\n}\n\nfunction parseSoundCloudEmbed(url: string): string | null {\n try {\n new URL(url);\n if (!url.includes(\"soundcloud.com\")) return null;\n const encoded = encodeURIComponent(url);\n return `https://w.soundcloud.com/player/?url=${encoded}&color=%23ff5500&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false`;\n } catch {\n return null;\n }\n}\n\nfunction parseTikTokEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"tiktok.com\")) return null;\n const match = u.pathname.match(/\\/video\\/(\\d+)/);\n if (!match) return null;\n return `https://www.tiktok.com/embed/v2/${match[1]}`;\n } catch {\n return null;\n }\n}\n\nfunction parseVimeoEmbed(url: string): string | null {\n try {\n const u = new URL(url);\n if (!u.hostname.includes(\"vimeo.com\")) return null;\n const match = u.pathname.match(/(\\d+)/);\n if (!match) return null;\n return `https://player.vimeo.com/video/${match[1]}`;\n } catch {\n return null;\n }\n}\n\nexport function getEmbedSrc(platform: EmbedPlatform, value: string): string | null {\n switch (platform) {\n case \"youtube\": return parseYouTubeEmbed(value);\n case \"spotify\": return parseSpotifyEmbed(value);\n case \"soundcloud\": return parseSoundCloudEmbed(value);\n case \"tiktok\": return parseTikTokEmbed(value);\n case \"vimeo\": return parseVimeoEmbed(value);\n }\n}\n\nconst COMPACT: Record<EmbedPlatform, boolean> = {\n spotify: true,\n soundcloud: true,\n youtube: false,\n tiktok: false,\n vimeo: false,\n};\n\nexport function IPTypeDisplay({ attributes }: IPTypeDisplayProps) {\n const attrs = attributes ?? [];\n\n const ipType = attrs.find(\n (a) => a.trait_type?.toLowerCase() === \"ip type\"\n )?.value as IPType | undefined;\n if (!ipType) return null;\n\n const template = IP_TEMPLATES[ipType];\n if (!template) return null;\n\n const getAttr = (key: string) =>\n attrs.find((a) => a.trait_type === key)?.value ?? null;\n\n const embeds = (template.embeds ?? []).flatMap((platform) => {\n const meta = EMBED_PLATFORM_META[platform];\n const value = getAttr(meta.traitKey);\n return value ? [{ platform, meta, value }] : [];\n });\n\n const socials = (template.socials ?? []).flatMap((platform) => {\n const meta = SOCIAL_PLATFORM_META[platform];\n const value = getAttr(meta.traitKey);\n return value ? [{ platform, meta, value }] : [];\n });\n\n const docUri = template.docUpload ? getAttr(template.docUpload.traitType) : null;\n\n if (embeds.length === 0 && socials.length === 0 && !docUri) return null;\n\n return (\n <div className=\"space-y-5\">\n\n {docUri && (\n <div className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n Document\n </p>\n <a\n href={docUri.startsWith(\"ipfs://\") ? ipfsToHttp(docUri) : docUri}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-3 rounded-xl border border-border bg-muted/20 px-4 py-3 transition-colors hover:border-primary/40 group\"\n >\n <FileText className=\"h-5 w-5 text-primary shrink-0\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold group-hover:text-primary transition-colors\">\n View document\n </p>\n <p className=\"text-xs text-muted-foreground flex items-center gap-1 mt-0.5\">\n <ShieldCheck className=\"h-3 w-3 shrink-0\" />\n Stored on IPFS — immutable, timestamped copy of the original\n </p>\n </div>\n <ExternalLink className=\"h-3.5 w-3.5 text-muted-foreground shrink-0\" />\n </a>\n </div>\n )}\n {embeds.map(({ platform, meta, value }) => {\n const src = getEmbedSrc(platform, value);\n if (src) {\n return (\n <div key={platform} className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n {meta.label}\n </p>\n {COMPACT[platform] ? (\n <iframe\n src={src}\n className=\"w-full rounded-xl border-0\"\n height={166}\n allow=\"autoplay\"\n loading=\"lazy\"\n title={meta.label}\n />\n ) : (\n <div className=\"relative w-full aspect-video rounded-xl overflow-hidden bg-muted/20\">\n <iframe\n src={src}\n className=\"absolute inset-0 w-full h-full\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n loading=\"lazy\"\n title={meta.label}\n />\n </div>\n )}\n </div>\n );\n }\n\n return (\n <div key={platform}>\n <p className=\"text-xs font-medium text-muted-foreground mb-1\">\n {meta.label}\n </p>\n <a\n href={value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm text-primary hover:underline\"\n >\n <ExternalLink className=\"h-3.5 w-3.5\" />\n Open link\n </a>\n </div>\n );\n })}\n\n {socials.length > 0 && (\n <div className=\"space-y-1.5\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n Links\n </p>\n <div className=\"flex flex-wrap gap-2\">\n {socials.map(({ platform, meta, value }) => {\n const SIcon = meta.icon;\n return (\n <a\n key={platform}\n href={value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 rounded-full border border-border bg-muted/30 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground\"\n >\n <SIcon className=\"h-3.5 w-3.5\" />\n {meta.label}\n </a>\n );\n })}\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";AA4IU,cAcI,YAdJ;AAzIV;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,kBAAkB;AAC3B,SAAS,cAAc,UAAU,mBAAmB;AAWpD,SAAS,kBAAkB,KAA4B;AACrD,MAAI;AACF,UAAM,IAAI,IAAI,IAAI,GAAG;AACrB,QAAI,KAAoB;AACxB,QAAI,EAAE,SAAS,SAAS,UAAU,GAAG;AACnC,WAAK,EAAE,SAAS,MAAM,CAAC;AAAA,IACzB,WAAW,EAAE,SAAS,SAAS,aAAa,GAAG;AAC7C,WAAK,EAAE,aAAa,IAAI,GAAG;AAAA,IAC7B;AACA,QAAI,CAAC,GAAI,QAAO;AAChB,WAAO,iCAAiC,EAAE;AAAA,EAC5C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AAAA,YACC,MAAM;AAAA,YACN,QAAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV;AAAA,kCAAC,gBAAa,WAAU,eAAc;AAAA,cAAE;AAAA;AAAA;AAAA,QAE1C;AAAA,WAZQ,QAaV;AAAA,IAEJ,CAAC;AAAA,IAEA,QAAQ,SAAS,KAChB,qBAAC,SAAI,WAAU,eACb;AAAA,0BAAC,OAAE,WAAU,6CAA4C,mBAEzD;AAAA,MACA,oBAAC,SAAI,WAAU,wBACZ,kBAAQ,IAAI,CAAC,EAAE,UAAU,MAAM,MAAM,MAAM;AAC1C,cAAM,QAAQ,KAAK;AACnB,eACE;AAAA,UAAC;AAAA;AAAA,YAEC,MAAM;AAAA,YACN,QAAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV;AAAA,kCAAC,SAAM,WAAU,eAAc;AAAA,cAC9B,KAAK;AAAA;AAAA;AAAA,UAPD;AAAA,QAQP;AAAA,MAEJ,CAAC,GACH;AAAA,OACF;AAAA,KAEJ;AAEJ;","names":[]}
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
13
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
13
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
@@ -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,cA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AAU,CAAC,QAAQ,WAAW,MAAM,UAAU,SAAS,EAAE;AAAA,EACvN,YAAY,EAAE,IAAI,YAAY,OAAO,yBAAoB,MAAM,8BAAU,QAAQ,MAAM,OAAO,KAAK,iCAAiC,QAAQ,GAAG,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,UA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8BAAU,QAAQ,MAAM,OAAO,KAAK,iCAAiC,QAAQ,GAAG,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":[]}
@@ -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"] },