@medialane/ui 0.10.1 → 0.11.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/activity-card.cjs +136 -0
- package/dist/components/activity-card.cjs.map +1 -0
- package/dist/components/activity-card.js +100 -0
- package/dist/components/activity-card.js.map +1 -0
- package/dist/components/discover-feed-section.cjs +72 -44
- package/dist/components/discover-feed-section.cjs.map +1 -1
- package/dist/components/discover-feed-section.js +73 -45
- package/dist/components/discover-feed-section.js.map +1 -1
- package/dist/components/launchpad-services.cjs +20 -10
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.js +20 -10
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/data/launchpad-services.cjs +1 -7
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.js +1 -7
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/activity-feed-shell.d.cts +0 -13
- package/dist/components/activity-feed-shell.d.ts +0 -13
- package/dist/components/activity-row.d.cts +0 -20
- package/dist/components/activity-row.d.ts +0 -20
- package/dist/components/activity-ticker.d.cts +0 -13
- package/dist/components/activity-ticker.d.ts +0 -13
- package/dist/components/address-display.d.cts +0 -12
- package/dist/components/address-display.d.ts +0 -12
- package/dist/components/brand-icon.d.cts +0 -10
- package/dist/components/brand-icon.d.ts +0 -10
- package/dist/components/brand-logo.d.cts +0 -11
- package/dist/components/brand-logo.d.ts +0 -11
- package/dist/components/collection-card.d.cts +0 -13
- package/dist/components/collection-card.d.ts +0 -13
- package/dist/components/cta-card-grid.d.cts +0 -23
- package/dist/components/cta-card-grid.d.ts +0 -23
- package/dist/components/currency-icon.d.cts +0 -25
- package/dist/components/currency-icon.d.ts +0 -25
- package/dist/components/discover-collections-strip.d.cts +0 -14
- package/dist/components/discover-collections-strip.d.ts +0 -14
- package/dist/components/discover-creators-strip.d.cts +0 -14
- package/dist/components/discover-creators-strip.d.ts +0 -14
- package/dist/components/discover-feed-section.d.cts +0 -18
- package/dist/components/discover-feed-section.d.ts +0 -18
- package/dist/components/discover-hero.d.cts +0 -17
- package/dist/components/discover-hero.d.ts +0 -17
- package/dist/components/featured-carousel.d.cts +0 -13
- package/dist/components/featured-carousel.d.ts +0 -13
- package/dist/components/hero-slider.d.cts +0 -17
- package/dist/components/hero-slider.d.ts +0 -17
- package/dist/components/ip-type-badge.d.cts +0 -21
- package/dist/components/ip-type-badge.d.ts +0 -21
- package/dist/components/launchpad-services.d.cts +0 -43
- package/dist/components/launchpad-services.d.ts +0 -43
- package/dist/components/listing-card.d.cts +0 -16
- package/dist/components/listing-card.d.ts +0 -16
- package/dist/components/motion-primitives.d.cts +0 -36
- package/dist/components/motion-primitives.d.ts +0 -36
- package/dist/components/nav-command-menu.d.cts +0 -51
- package/dist/components/nav-command-menu.d.ts +0 -51
- package/dist/components/page-container.d.cts +0 -15
- package/dist/components/page-container.d.ts +0 -15
- package/dist/components/portfolio-subnav.d.cts +0 -27
- package/dist/components/portfolio-subnav.d.ts +0 -27
- package/dist/components/scroll-section.d.cts +0 -18
- package/dist/components/scroll-section.d.ts +0 -18
- package/dist/components/share-button.d.cts +0 -12
- package/dist/components/share-button.d.ts +0 -12
- package/dist/components/token-card.d.cts +0 -31
- package/dist/components/token-card.d.ts +0 -31
- package/dist/data/activity.d.cts +0 -16
- package/dist/data/activity.d.ts +0 -16
- package/dist/data/brand.d.cts +0 -44
- package/dist/data/brand.d.ts +0 -44
- package/dist/data/ip-types.d.cts +0 -13
- package/dist/data/ip-types.d.ts +0 -13
- package/dist/data/launchpad-services.d.cts +0 -42
- package/dist/data/launchpad-services.d.ts +0 -42
- package/dist/index.d.cts +0 -41
- package/dist/index.d.ts +0 -41
- package/dist/preset/tailwind.d.cts +0 -5
- package/dist/preset/tailwind.d.ts +0 -5
- package/dist/utils/address.d.cts +0 -7
- package/dist/utils/address.d.ts +0 -7
- package/dist/utils/cn.d.cts +0 -5
- package/dist/utils/cn.d.ts +0 -5
- package/dist/utils/format.d.cts +0 -7
- package/dist/utils/format.d.ts +0 -7
- package/dist/utils/ipfs.d.cts +0 -11
- package/dist/utils/ipfs.d.ts +0 -11
- package/dist/utils/portfolio-counts.d.cts +0 -33
- package/dist/utils/portfolio-counts.d.ts +0 -33
- package/dist/utils/time.d.cts +0 -7
- package/dist/utils/time.d.ts +0 -7
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface ShareButtonProps {
|
|
4
|
-
title: string;
|
|
5
|
-
url?: string;
|
|
6
|
-
variant?: "outline" | "ghost" | "default";
|
|
7
|
-
size?: "sm" | "default" | "lg" | "icon";
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
declare function ShareButton({ title, url, variant, size, className, }: ShareButtonProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { ShareButton, type ShareButtonProps };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ApiToken } from '@medialane/sdk';
|
|
3
|
-
|
|
4
|
-
type RarityTier = "legendary" | "epic" | "rare" | "uncommon" | "common";
|
|
5
|
-
interface TokenCardProps {
|
|
6
|
-
token: ApiToken;
|
|
7
|
-
/** Whether the current user owns this token. Default: false */
|
|
8
|
-
isOwner?: boolean;
|
|
9
|
-
/** Whether this token's listing is already in the cart. Default: false */
|
|
10
|
-
inCart?: boolean;
|
|
11
|
-
/** Show the Buy button for listed tokens. Default: true */
|
|
12
|
-
showBuyButton?: boolean;
|
|
13
|
-
/** Optional rarity label shown as an overlay badge */
|
|
14
|
-
rarityTier?: RarityTier;
|
|
15
|
-
className?: string;
|
|
16
|
-
/** Callbacks — omit any to hide that button */
|
|
17
|
-
onBuy?: (token: ApiToken) => void;
|
|
18
|
-
onCart?: (token: ApiToken) => void;
|
|
19
|
-
onOffer?: (token: ApiToken) => void;
|
|
20
|
-
onList?: (token: ApiToken) => void;
|
|
21
|
-
onCancel?: (token: ApiToken) => void;
|
|
22
|
-
onTransfer?: (token: ApiToken) => void;
|
|
23
|
-
onRemix?: (token: ApiToken) => void;
|
|
24
|
-
onReport?: (token: ApiToken) => void;
|
|
25
|
-
/** Slot for a DropdownMenu trigger — rendered after primary buttons */
|
|
26
|
-
overflowMenu?: React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
declare function TokenCard({ token, isOwner, inCart, showBuyButton, rarityTier, className, onBuy, onCart, onOffer, onList, onCancel, onTransfer, overflowMenu, }: TokenCardProps): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare function TokenCardSkeleton(): react_jsx_runtime.JSX.Element;
|
|
30
|
-
|
|
31
|
-
export { type RarityTier, TokenCard, type TokenCardProps, TokenCardSkeleton };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ApiToken } from '@medialane/sdk';
|
|
3
|
-
|
|
4
|
-
type RarityTier = "legendary" | "epic" | "rare" | "uncommon" | "common";
|
|
5
|
-
interface TokenCardProps {
|
|
6
|
-
token: ApiToken;
|
|
7
|
-
/** Whether the current user owns this token. Default: false */
|
|
8
|
-
isOwner?: boolean;
|
|
9
|
-
/** Whether this token's listing is already in the cart. Default: false */
|
|
10
|
-
inCart?: boolean;
|
|
11
|
-
/** Show the Buy button for listed tokens. Default: true */
|
|
12
|
-
showBuyButton?: boolean;
|
|
13
|
-
/** Optional rarity label shown as an overlay badge */
|
|
14
|
-
rarityTier?: RarityTier;
|
|
15
|
-
className?: string;
|
|
16
|
-
/** Callbacks — omit any to hide that button */
|
|
17
|
-
onBuy?: (token: ApiToken) => void;
|
|
18
|
-
onCart?: (token: ApiToken) => void;
|
|
19
|
-
onOffer?: (token: ApiToken) => void;
|
|
20
|
-
onList?: (token: ApiToken) => void;
|
|
21
|
-
onCancel?: (token: ApiToken) => void;
|
|
22
|
-
onTransfer?: (token: ApiToken) => void;
|
|
23
|
-
onRemix?: (token: ApiToken) => void;
|
|
24
|
-
onReport?: (token: ApiToken) => void;
|
|
25
|
-
/** Slot for a DropdownMenu trigger — rendered after primary buttons */
|
|
26
|
-
overflowMenu?: React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
declare function TokenCard({ token, isOwner, inCart, showBuyButton, rarityTier, className, onBuy, onCart, onOffer, onList, onCancel, onTransfer, overflowMenu, }: TokenCardProps): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare function TokenCardSkeleton(): react_jsx_runtime.JSX.Element;
|
|
30
|
-
|
|
31
|
-
export { type RarityTier, TokenCard, type TokenCardProps, TokenCardSkeleton };
|
package/dist/data/activity.d.cts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ElementType } from 'react';
|
|
2
|
-
|
|
3
|
-
interface ActivityTypeConfig {
|
|
4
|
-
label: string;
|
|
5
|
-
variant: "default" | "secondary" | "outline";
|
|
6
|
-
icon: ElementType;
|
|
7
|
-
colorClass: string;
|
|
8
|
-
bgClass: string;
|
|
9
|
-
}
|
|
10
|
-
declare const ACTIVITY_TYPE_CONFIG: Record<string, ActivityTypeConfig>;
|
|
11
|
-
declare const TYPE_FILTERS: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}[];
|
|
15
|
-
|
|
16
|
-
export { ACTIVITY_TYPE_CONFIG, type ActivityTypeConfig, TYPE_FILTERS };
|
package/dist/data/activity.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ElementType } from 'react';
|
|
2
|
-
|
|
3
|
-
interface ActivityTypeConfig {
|
|
4
|
-
label: string;
|
|
5
|
-
variant: "default" | "secondary" | "outline";
|
|
6
|
-
icon: ElementType;
|
|
7
|
-
colorClass: string;
|
|
8
|
-
bgClass: string;
|
|
9
|
-
}
|
|
10
|
-
declare const ACTIVITY_TYPE_CONFIG: Record<string, ActivityTypeConfig>;
|
|
11
|
-
declare const TYPE_FILTERS: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}[];
|
|
15
|
-
|
|
16
|
-
export { ACTIVITY_TYPE_CONFIG, type ActivityTypeConfig, TYPE_FILTERS };
|
package/dist/data/brand.d.cts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Typed Tailwind class constants for Medialane brand colors.
|
|
3
|
-
* Mirrors the brand color extensions defined in the Tailwind preset.
|
|
4
|
-
* Keeping these as string literals ensures JIT picks them up via the
|
|
5
|
-
* consumer's content scan of node_modules/@medialane/ui/dist.
|
|
6
|
-
*/
|
|
7
|
-
declare const BRAND: {
|
|
8
|
-
readonly purple: {
|
|
9
|
-
readonly text: "text-brand-purple";
|
|
10
|
-
readonly bg: "bg-brand-purple/10";
|
|
11
|
-
readonly bgSolid: "bg-brand-purple/15";
|
|
12
|
-
readonly from: "from-brand-purple/20";
|
|
13
|
-
readonly to: "to-brand-purple/20";
|
|
14
|
-
};
|
|
15
|
-
readonly blue: {
|
|
16
|
-
readonly text: "text-brand-blue";
|
|
17
|
-
readonly bg: "bg-brand-blue/10";
|
|
18
|
-
readonly bgSolid: "bg-brand-blue/15";
|
|
19
|
-
readonly from: "from-brand-blue/20";
|
|
20
|
-
readonly to: "to-brand-blue/20";
|
|
21
|
-
};
|
|
22
|
-
readonly rose: {
|
|
23
|
-
readonly text: "text-brand-rose";
|
|
24
|
-
readonly bg: "bg-brand-rose/10";
|
|
25
|
-
readonly bgSolid: "bg-brand-rose/15";
|
|
26
|
-
readonly from: "from-brand-rose/20";
|
|
27
|
-
readonly to: "to-brand-rose/20";
|
|
28
|
-
};
|
|
29
|
-
readonly orange: {
|
|
30
|
-
readonly text: "text-brand-orange";
|
|
31
|
-
readonly bg: "bg-brand-orange/10";
|
|
32
|
-
readonly bgSolid: "bg-brand-orange/15";
|
|
33
|
-
readonly from: "from-brand-orange/20";
|
|
34
|
-
readonly to: "to-brand-orange/20";
|
|
35
|
-
};
|
|
36
|
-
readonly navy: {
|
|
37
|
-
readonly text: "text-brand-navy";
|
|
38
|
-
readonly bg: "bg-brand-navy/10";
|
|
39
|
-
readonly from: "from-brand-navy/10";
|
|
40
|
-
readonly to: "to-brand-navy/10";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export { BRAND };
|
package/dist/data/brand.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Typed Tailwind class constants for Medialane brand colors.
|
|
3
|
-
* Mirrors the brand color extensions defined in the Tailwind preset.
|
|
4
|
-
* Keeping these as string literals ensures JIT picks them up via the
|
|
5
|
-
* consumer's content scan of node_modules/@medialane/ui/dist.
|
|
6
|
-
*/
|
|
7
|
-
declare const BRAND: {
|
|
8
|
-
readonly purple: {
|
|
9
|
-
readonly text: "text-brand-purple";
|
|
10
|
-
readonly bg: "bg-brand-purple/10";
|
|
11
|
-
readonly bgSolid: "bg-brand-purple/15";
|
|
12
|
-
readonly from: "from-brand-purple/20";
|
|
13
|
-
readonly to: "to-brand-purple/20";
|
|
14
|
-
};
|
|
15
|
-
readonly blue: {
|
|
16
|
-
readonly text: "text-brand-blue";
|
|
17
|
-
readonly bg: "bg-brand-blue/10";
|
|
18
|
-
readonly bgSolid: "bg-brand-blue/15";
|
|
19
|
-
readonly from: "from-brand-blue/20";
|
|
20
|
-
readonly to: "to-brand-blue/20";
|
|
21
|
-
};
|
|
22
|
-
readonly rose: {
|
|
23
|
-
readonly text: "text-brand-rose";
|
|
24
|
-
readonly bg: "bg-brand-rose/10";
|
|
25
|
-
readonly bgSolid: "bg-brand-rose/15";
|
|
26
|
-
readonly from: "from-brand-rose/20";
|
|
27
|
-
readonly to: "to-brand-rose/20";
|
|
28
|
-
};
|
|
29
|
-
readonly orange: {
|
|
30
|
-
readonly text: "text-brand-orange";
|
|
31
|
-
readonly bg: "bg-brand-orange/10";
|
|
32
|
-
readonly bgSolid: "bg-brand-orange/15";
|
|
33
|
-
readonly from: "from-brand-orange/20";
|
|
34
|
-
readonly to: "to-brand-orange/20";
|
|
35
|
-
};
|
|
36
|
-
readonly navy: {
|
|
37
|
-
readonly text: "text-brand-navy";
|
|
38
|
-
readonly bg: "bg-brand-navy/10";
|
|
39
|
-
readonly from: "from-brand-navy/10";
|
|
40
|
-
readonly to: "to-brand-navy/10";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export { BRAND };
|
package/dist/data/ip-types.d.cts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Server-safe IP type data — no React components, safe to import in Server Components. */
|
|
2
|
-
interface IpTypeData {
|
|
3
|
-
slug: string;
|
|
4
|
-
label: string;
|
|
5
|
-
/** API ipType value — null means "nft" special case */
|
|
6
|
-
apiValue: string | null;
|
|
7
|
-
colorClass: string;
|
|
8
|
-
bgClass: string;
|
|
9
|
-
}
|
|
10
|
-
declare const IP_TYPE_DATA: IpTypeData[];
|
|
11
|
-
declare const IP_TYPE_DATA_MAP: Record<string, IpTypeData>;
|
|
12
|
-
|
|
13
|
-
export { IP_TYPE_DATA, IP_TYPE_DATA_MAP, type IpTypeData };
|
package/dist/data/ip-types.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Server-safe IP type data — no React components, safe to import in Server Components. */
|
|
2
|
-
interface IpTypeData {
|
|
3
|
-
slug: string;
|
|
4
|
-
label: string;
|
|
5
|
-
/** API ipType value — null means "nft" special case */
|
|
6
|
-
apiValue: string | null;
|
|
7
|
-
colorClass: string;
|
|
8
|
-
bgClass: string;
|
|
9
|
-
}
|
|
10
|
-
declare const IP_TYPE_DATA: IpTypeData[];
|
|
11
|
-
declare const IP_TYPE_DATA_MAP: Record<string, IpTypeData>;
|
|
12
|
-
|
|
13
|
-
export { IP_TYPE_DATA, IP_TYPE_DATA_MAP, type IpTypeData };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
|
|
3
|
-
type ServiceStatus = "live" | "building" | "soon";
|
|
4
|
-
type ServiceCategory = "create" | "launch" | "monetize";
|
|
5
|
-
type ServiceGroup = "single-edition" | "limited-editions" | "creator-coins" | "collection-drop" | "pop-protocol" | "licensing-remix" | "claims" | "coming-soon";
|
|
6
|
-
interface ServiceGroupDefinition {
|
|
7
|
-
key: ServiceGroup;
|
|
8
|
-
title: string;
|
|
9
|
-
/** One line of plain creator language: what does this group do for my portfolio/revenue? */
|
|
10
|
-
tagline: string;
|
|
11
|
-
/** Optional small chip next to the title (e.g. the token standard) */
|
|
12
|
-
badge?: string;
|
|
13
|
-
}
|
|
14
|
-
/** Ordered — launchpad pages render sections in this order. */
|
|
15
|
-
declare const LAUNCHPAD_SERVICE_GROUPS: ServiceGroupDefinition[];
|
|
16
|
-
interface ServiceDefinition {
|
|
17
|
-
key: string;
|
|
18
|
-
title: string;
|
|
19
|
-
subtitle: string;
|
|
20
|
-
description: string;
|
|
21
|
-
features: string[];
|
|
22
|
-
icon: LucideIcon;
|
|
23
|
-
gradient: string;
|
|
24
|
-
borderColor: string;
|
|
25
|
-
iconColor: string;
|
|
26
|
-
buttonColor?: string;
|
|
27
|
-
badge: string;
|
|
28
|
-
status: ServiceStatus;
|
|
29
|
-
category: ServiceCategory;
|
|
30
|
-
group: ServiceGroup;
|
|
31
|
-
/** The ONE creator-language sentence the card shows (no jargon). */
|
|
32
|
-
blurb: string;
|
|
33
|
-
/** Single-verb action label for the card's gradient pill (never repeats the title). */
|
|
34
|
-
cta: string;
|
|
35
|
-
/** Concrete usage example (legacy long-card layout; unused by the 0.9.0 card). */
|
|
36
|
-
example?: string;
|
|
37
|
-
/** Secondary browse link label — injected app adds the href */
|
|
38
|
-
browseLinkLabel?: string;
|
|
39
|
-
}
|
|
40
|
-
declare const LAUNCHPAD_SERVICE_DEFINITIONS: ServiceDefinition[];
|
|
41
|
-
|
|
42
|
-
export { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS, type ServiceCategory, type ServiceDefinition, type ServiceGroup, type ServiceGroupDefinition, type ServiceStatus };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
|
|
3
|
-
type ServiceStatus = "live" | "building" | "soon";
|
|
4
|
-
type ServiceCategory = "create" | "launch" | "monetize";
|
|
5
|
-
type ServiceGroup = "single-edition" | "limited-editions" | "creator-coins" | "collection-drop" | "pop-protocol" | "licensing-remix" | "claims" | "coming-soon";
|
|
6
|
-
interface ServiceGroupDefinition {
|
|
7
|
-
key: ServiceGroup;
|
|
8
|
-
title: string;
|
|
9
|
-
/** One line of plain creator language: what does this group do for my portfolio/revenue? */
|
|
10
|
-
tagline: string;
|
|
11
|
-
/** Optional small chip next to the title (e.g. the token standard) */
|
|
12
|
-
badge?: string;
|
|
13
|
-
}
|
|
14
|
-
/** Ordered — launchpad pages render sections in this order. */
|
|
15
|
-
declare const LAUNCHPAD_SERVICE_GROUPS: ServiceGroupDefinition[];
|
|
16
|
-
interface ServiceDefinition {
|
|
17
|
-
key: string;
|
|
18
|
-
title: string;
|
|
19
|
-
subtitle: string;
|
|
20
|
-
description: string;
|
|
21
|
-
features: string[];
|
|
22
|
-
icon: LucideIcon;
|
|
23
|
-
gradient: string;
|
|
24
|
-
borderColor: string;
|
|
25
|
-
iconColor: string;
|
|
26
|
-
buttonColor?: string;
|
|
27
|
-
badge: string;
|
|
28
|
-
status: ServiceStatus;
|
|
29
|
-
category: ServiceCategory;
|
|
30
|
-
group: ServiceGroup;
|
|
31
|
-
/** The ONE creator-language sentence the card shows (no jargon). */
|
|
32
|
-
blurb: string;
|
|
33
|
-
/** Single-verb action label for the card's gradient pill (never repeats the title). */
|
|
34
|
-
cta: string;
|
|
35
|
-
/** Concrete usage example (legacy long-card layout; unused by the 0.9.0 card). */
|
|
36
|
-
example?: string;
|
|
37
|
-
/** Secondary browse link label — injected app adds the href */
|
|
38
|
-
browseLinkLabel?: string;
|
|
39
|
-
}
|
|
40
|
-
declare const LAUNCHPAD_SERVICE_DEFINITIONS: ServiceDefinition[];
|
|
41
|
-
|
|
42
|
-
export { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS, type ServiceCategory, type ServiceDefinition, type ServiceGroup, type ServiceGroupDefinition, type ServiceStatus };
|
package/dist/index.d.cts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export { cn } from './utils/cn.cjs';
|
|
2
|
-
export { formatDisplayPrice } from './utils/format.cjs';
|
|
3
|
-
export { shortenAddress } from './utils/address.cjs';
|
|
4
|
-
export { ipfsToHttp } from './utils/ipfs.cjs';
|
|
5
|
-
export { IP_TYPE_DATA, IP_TYPE_DATA_MAP, IpTypeData } from './data/ip-types.cjs';
|
|
6
|
-
export { BRAND } from './data/brand.cjs';
|
|
7
|
-
export { CurrencyAmount, CurrencyAmountProps, CurrencyIcon, CurrencyIconProps } from './components/currency-icon.cjs';
|
|
8
|
-
export { IP_TYPE_CONFIG, IP_TYPE_MAP, IpTypeBadge, IpTypeBadgeProps, IpTypeConfig } from './components/ip-type-badge.cjs';
|
|
9
|
-
export { AddressDisplay, AddressDisplayProps } from './components/address-display.cjs';
|
|
10
|
-
export { MedialaneIcon, MedialaneIconProps } from './components/brand-icon.cjs';
|
|
11
|
-
export { MedialaneLogoFull, MedialaneLogoFullProps } from './components/brand-logo.cjs';
|
|
12
|
-
export { EASE_OUT, FadeIn, KineticWords, MotionCard, SPRING, Stagger, StaggerItem } from './components/motion-primitives.cjs';
|
|
13
|
-
export { PageContainer, PageContainerProps } from './components/page-container.cjs';
|
|
14
|
-
export { ScrollSection, ScrollSectionProps } from './components/scroll-section.cjs';
|
|
15
|
-
export { ShareButton, ShareButtonProps } from './components/share-button.cjs';
|
|
16
|
-
export { CollectionCard, CollectionCardProps, CollectionCardSkeleton } from './components/collection-card.cjs';
|
|
17
|
-
export { RarityTier, TokenCard, TokenCardProps, TokenCardSkeleton } from './components/token-card.cjs';
|
|
18
|
-
export { timeAgo } from './utils/time.cjs';
|
|
19
|
-
export { ACTIVITY_TYPE_CONFIG, ActivityTypeConfig, TYPE_FILTERS } from './data/activity.cjs';
|
|
20
|
-
export { HeroSlider, HeroSliderProps, HeroSliderSkeleton } from './components/hero-slider.cjs';
|
|
21
|
-
export { ActivityTicker, ActivityTickerProps } from './components/activity-ticker.cjs';
|
|
22
|
-
export { ListingCard, ListingCardProps, ListingCardSkeleton } from './components/listing-card.cjs';
|
|
23
|
-
export { ActivityRow, ActivityRowProps } from './components/activity-row.cjs';
|
|
24
|
-
export { ActivityFeedShell, ActivityFeedShellProps } from './components/activity-feed-shell.cjs';
|
|
25
|
-
export { CtaCardGrid, CtaCardGridProps, CtaCardItem } from './components/cta-card-grid.cjs';
|
|
26
|
-
export { DiscoverHero, DiscoverHeroProps } from './components/discover-hero.cjs';
|
|
27
|
-
export { FeaturedCarousel, FeaturedCarouselProps, FeaturedCarouselSkeleton } from './components/featured-carousel.cjs';
|
|
28
|
-
export { DiscoverCollectionsStrip, DiscoverCollectionsStripProps } from './components/discover-collections-strip.cjs';
|
|
29
|
-
export { DiscoverCreatorsStrip, DiscoverCreatorsStripProps } from './components/discover-creators-strip.cjs';
|
|
30
|
-
export { DiscoverFeedSection, DiscoverFeedSectionProps } from './components/discover-feed-section.cjs';
|
|
31
|
-
export { LaunchpadGroupedSections, LaunchpadGroupedSectionsProps, LaunchpadServiceCard, LaunchpadServiceCardProps, SERVICE_HUES, ServiceOverride, ServiceOverrides } from './components/launchpad-services.cjs';
|
|
32
|
-
export { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS, ServiceCategory, ServiceDefinition, ServiceGroup, ServiceGroupDefinition, ServiceStatus } from './data/launchpad-services.cjs';
|
|
33
|
-
export { NavCommand, NavCommandGroup, NavCommandMenu, NavCommandMenuProps, useNavCommandMenu } from './components/nav-command-menu.cjs';
|
|
34
|
-
export { PortfolioBadgeVariant, PortfolioNavGroup, PortfolioNavItem, PortfolioSubnav, PortfolioSubnavProps } from './components/portfolio-subnav.cjs';
|
|
35
|
-
export { CountableOrder, PortfolioCounts, derivePortfolioCounts } from './utils/portfolio-counts.cjs';
|
|
36
|
-
import 'clsx';
|
|
37
|
-
import 'react/jsx-runtime';
|
|
38
|
-
import 'framer-motion';
|
|
39
|
-
import 'react';
|
|
40
|
-
import '@medialane/sdk';
|
|
41
|
-
import 'lucide-react';
|
package/dist/index.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export { cn } from './utils/cn.js';
|
|
2
|
-
export { formatDisplayPrice } from './utils/format.js';
|
|
3
|
-
export { shortenAddress } from './utils/address.js';
|
|
4
|
-
export { ipfsToHttp } from './utils/ipfs.js';
|
|
5
|
-
export { IP_TYPE_DATA, IP_TYPE_DATA_MAP, IpTypeData } from './data/ip-types.js';
|
|
6
|
-
export { BRAND } from './data/brand.js';
|
|
7
|
-
export { CurrencyAmount, CurrencyAmountProps, CurrencyIcon, CurrencyIconProps } from './components/currency-icon.js';
|
|
8
|
-
export { IP_TYPE_CONFIG, IP_TYPE_MAP, IpTypeBadge, IpTypeBadgeProps, IpTypeConfig } from './components/ip-type-badge.js';
|
|
9
|
-
export { AddressDisplay, AddressDisplayProps } from './components/address-display.js';
|
|
10
|
-
export { MedialaneIcon, MedialaneIconProps } from './components/brand-icon.js';
|
|
11
|
-
export { MedialaneLogoFull, MedialaneLogoFullProps } from './components/brand-logo.js';
|
|
12
|
-
export { EASE_OUT, FadeIn, KineticWords, MotionCard, SPRING, Stagger, StaggerItem } from './components/motion-primitives.js';
|
|
13
|
-
export { PageContainer, PageContainerProps } from './components/page-container.js';
|
|
14
|
-
export { ScrollSection, ScrollSectionProps } from './components/scroll-section.js';
|
|
15
|
-
export { ShareButton, ShareButtonProps } from './components/share-button.js';
|
|
16
|
-
export { CollectionCard, CollectionCardProps, CollectionCardSkeleton } from './components/collection-card.js';
|
|
17
|
-
export { RarityTier, TokenCard, TokenCardProps, TokenCardSkeleton } from './components/token-card.js';
|
|
18
|
-
export { timeAgo } from './utils/time.js';
|
|
19
|
-
export { ACTIVITY_TYPE_CONFIG, ActivityTypeConfig, TYPE_FILTERS } from './data/activity.js';
|
|
20
|
-
export { HeroSlider, HeroSliderProps, HeroSliderSkeleton } from './components/hero-slider.js';
|
|
21
|
-
export { ActivityTicker, ActivityTickerProps } from './components/activity-ticker.js';
|
|
22
|
-
export { ListingCard, ListingCardProps, ListingCardSkeleton } from './components/listing-card.js';
|
|
23
|
-
export { ActivityRow, ActivityRowProps } from './components/activity-row.js';
|
|
24
|
-
export { ActivityFeedShell, ActivityFeedShellProps } from './components/activity-feed-shell.js';
|
|
25
|
-
export { CtaCardGrid, CtaCardGridProps, CtaCardItem } from './components/cta-card-grid.js';
|
|
26
|
-
export { DiscoverHero, DiscoverHeroProps } from './components/discover-hero.js';
|
|
27
|
-
export { FeaturedCarousel, FeaturedCarouselProps, FeaturedCarouselSkeleton } from './components/featured-carousel.js';
|
|
28
|
-
export { DiscoverCollectionsStrip, DiscoverCollectionsStripProps } from './components/discover-collections-strip.js';
|
|
29
|
-
export { DiscoverCreatorsStrip, DiscoverCreatorsStripProps } from './components/discover-creators-strip.js';
|
|
30
|
-
export { DiscoverFeedSection, DiscoverFeedSectionProps } from './components/discover-feed-section.js';
|
|
31
|
-
export { LaunchpadGroupedSections, LaunchpadGroupedSectionsProps, LaunchpadServiceCard, LaunchpadServiceCardProps, SERVICE_HUES, ServiceOverride, ServiceOverrides } from './components/launchpad-services.js';
|
|
32
|
-
export { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS, ServiceCategory, ServiceDefinition, ServiceGroup, ServiceGroupDefinition, ServiceStatus } from './data/launchpad-services.js';
|
|
33
|
-
export { NavCommand, NavCommandGroup, NavCommandMenu, NavCommandMenuProps, useNavCommandMenu } from './components/nav-command-menu.js';
|
|
34
|
-
export { PortfolioBadgeVariant, PortfolioNavGroup, PortfolioNavItem, PortfolioSubnav, PortfolioSubnavProps } from './components/portfolio-subnav.js';
|
|
35
|
-
export { CountableOrder, PortfolioCounts, derivePortfolioCounts } from './utils/portfolio-counts.js';
|
|
36
|
-
import 'clsx';
|
|
37
|
-
import 'react/jsx-runtime';
|
|
38
|
-
import 'framer-motion';
|
|
39
|
-
import 'react';
|
|
40
|
-
import '@medialane/sdk';
|
|
41
|
-
import 'lucide-react';
|
package/dist/utils/address.d.cts
DELETED
package/dist/utils/address.d.ts
DELETED
package/dist/utils/cn.d.cts
DELETED
package/dist/utils/cn.d.ts
DELETED
package/dist/utils/format.d.cts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Format a display price string with adaptive decimal places.
|
|
3
|
-
* Handles "1.234 USDC" format — reformats the numeric part, preserves the symbol.
|
|
4
|
-
*/
|
|
5
|
-
declare function formatDisplayPrice(price: string | number | null | undefined): string;
|
|
6
|
-
|
|
7
|
-
export { formatDisplayPrice };
|
package/dist/utils/format.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Format a display price string with adaptive decimal places.
|
|
3
|
-
* Handles "1.234 USDC" format — reformats the numeric part, preserves the symbol.
|
|
4
|
-
*/
|
|
5
|
-
declare function formatDisplayPrice(price: string | number | null | undefined): string;
|
|
6
|
-
|
|
7
|
-
export { formatDisplayPrice };
|
package/dist/utils/ipfs.d.cts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert an IPFS URI to an HTTP URL.
|
|
3
|
-
* Accepts ipfs://<cid>, ipfs://<cid>/<path>, or plain HTTP/HTTPS URLs.
|
|
4
|
-
* Rejects javascript:, data:, blob:, and any other non-allowlisted protocols.
|
|
5
|
-
*
|
|
6
|
-
* @param uri - The IPFS URI or HTTP URL to convert.
|
|
7
|
-
* @param gateway - Gateway base URL (default: ipfs.io). Should end without a trailing slash.
|
|
8
|
-
*/
|
|
9
|
-
declare function ipfsToHttp(uri: string | null | undefined, gateway?: string): string;
|
|
10
|
-
|
|
11
|
-
export { ipfsToHttp };
|
package/dist/utils/ipfs.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert an IPFS URI to an HTTP URL.
|
|
3
|
-
* Accepts ipfs://<cid>, ipfs://<cid>/<path>, or plain HTTP/HTTPS URLs.
|
|
4
|
-
* Rejects javascript:, data:, blob:, and any other non-allowlisted protocols.
|
|
5
|
-
*
|
|
6
|
-
* @param uri - The IPFS URI or HTTP URL to convert.
|
|
7
|
-
* @param gateway - Gateway base URL (default: ipfs.io). Should end without a trailing slash.
|
|
8
|
-
*/
|
|
9
|
-
declare function ipfsToHttp(uri: string | null | undefined, gateway?: string): string;
|
|
10
|
-
|
|
11
|
-
export { ipfsToHttp };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal structural shape of a marketplace order needed to derive portfolio
|
|
3
|
-
* counts. `ApiOrder` from `@medialane/sdk` is structurally assignable to this,
|
|
4
|
-
* so callers pass their `ApiOrder[]` directly and the package stays decoupled
|
|
5
|
-
* from any specific SDK version.
|
|
6
|
-
*/
|
|
7
|
-
interface CountableOrder {
|
|
8
|
-
status: string;
|
|
9
|
-
offerer: string;
|
|
10
|
-
offer: {
|
|
11
|
-
itemType: string;
|
|
12
|
-
};
|
|
13
|
-
hasActiveCounterOffer?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface PortfolioCounts {
|
|
16
|
-
/** Active ERC-20 offers made by others on the user's assets. */
|
|
17
|
-
received: number;
|
|
18
|
-
/** Active ERC-721/ERC-1155 listings the user is selling. */
|
|
19
|
-
listings: number;
|
|
20
|
-
/** Pending remix offers awaiting the user's action. */
|
|
21
|
-
remix: number;
|
|
22
|
-
/** The user's bids that a seller has countered. */
|
|
23
|
-
counter: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Derive the portfolio header/subnav counts from the user's orders and remix
|
|
27
|
-
* offers. Pure and server-safe (no React). Guards nullish inputs.
|
|
28
|
-
*/
|
|
29
|
-
declare function derivePortfolioCounts(orders: ReadonlyArray<CountableOrder> | null | undefined, remixOffers: ReadonlyArray<{
|
|
30
|
-
status: string;
|
|
31
|
-
}> | null | undefined, address: string | null | undefined): PortfolioCounts;
|
|
32
|
-
|
|
33
|
-
export { type CountableOrder, type PortfolioCounts, derivePortfolioCounts };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal structural shape of a marketplace order needed to derive portfolio
|
|
3
|
-
* counts. `ApiOrder` from `@medialane/sdk` is structurally assignable to this,
|
|
4
|
-
* so callers pass their `ApiOrder[]` directly and the package stays decoupled
|
|
5
|
-
* from any specific SDK version.
|
|
6
|
-
*/
|
|
7
|
-
interface CountableOrder {
|
|
8
|
-
status: string;
|
|
9
|
-
offerer: string;
|
|
10
|
-
offer: {
|
|
11
|
-
itemType: string;
|
|
12
|
-
};
|
|
13
|
-
hasActiveCounterOffer?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface PortfolioCounts {
|
|
16
|
-
/** Active ERC-20 offers made by others on the user's assets. */
|
|
17
|
-
received: number;
|
|
18
|
-
/** Active ERC-721/ERC-1155 listings the user is selling. */
|
|
19
|
-
listings: number;
|
|
20
|
-
/** Pending remix offers awaiting the user's action. */
|
|
21
|
-
remix: number;
|
|
22
|
-
/** The user's bids that a seller has countered. */
|
|
23
|
-
counter: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Derive the portfolio header/subnav counts from the user's orders and remix
|
|
27
|
-
* offers. Pure and server-safe (no React). Guards nullish inputs.
|
|
28
|
-
*/
|
|
29
|
-
declare function derivePortfolioCounts(orders: ReadonlyArray<CountableOrder> | null | undefined, remixOffers: ReadonlyArray<{
|
|
30
|
-
status: string;
|
|
31
|
-
}> | null | undefined, address: string | null | undefined): PortfolioCounts;
|
|
32
|
-
|
|
33
|
-
export { type CountableOrder, type PortfolioCounts, derivePortfolioCounts };
|
package/dist/utils/time.d.cts
DELETED