@medialane/ui 0.200.0 → 0.201.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/action-button.cjs +3 -3
- package/dist/components/action-button.cjs.map +1 -1
- package/dist/components/action-button.d.cts +1 -2
- package/dist/components/action-button.d.ts +1 -2
- package/dist/components/action-button.js +3 -3
- package/dist/components/action-button.js.map +1 -1
- package/dist/components/activities-feed.cjs +3 -3
- package/dist/components/activities-feed.cjs.map +1 -1
- package/dist/components/activities-feed.d.cts +2 -6
- package/dist/components/activities-feed.d.ts +2 -6
- package/dist/components/activities-feed.js +3 -3
- package/dist/components/activities-feed.js.map +1 -1
- package/dist/components/asset-comments-dialog.cjs +76 -0
- package/dist/components/asset-comments-dialog.cjs.map +1 -0
- package/dist/components/asset-comments-dialog.d.cts +26 -0
- package/dist/components/asset-comments-dialog.d.ts +26 -0
- package/dist/components/asset-comments-dialog.js +42 -0
- package/dist/components/asset-comments-dialog.js.map +1 -0
- package/dist/components/asset-marketplace-panel.cjs +80 -139
- package/dist/components/asset-marketplace-panel.cjs.map +1 -1
- package/dist/components/asset-marketplace-panel.d.cts +2 -5
- package/dist/components/asset-marketplace-panel.d.ts +2 -5
- package/dist/components/asset-marketplace-panel.js +81 -140
- package/dist/components/asset-marketplace-panel.js.map +1 -1
- package/dist/components/asset-owners-panel.cjs +38 -22
- package/dist/components/asset-owners-panel.cjs.map +1 -1
- package/dist/components/asset-owners-panel.d.cts +3 -1
- package/dist/components/asset-owners-panel.d.ts +3 -1
- package/dist/components/asset-owners-panel.js +38 -22
- package/dist/components/asset-owners-panel.js.map +1 -1
- package/dist/components/asset-page.cjs +324 -0
- package/dist/components/asset-page.cjs.map +1 -0
- package/dist/components/asset-page.d.cts +44 -0
- package/dist/components/asset-page.d.ts +44 -0
- package/dist/components/asset-page.js +298 -0
- package/dist/components/asset-page.js.map +1 -0
- package/dist/components/asset-provenance-tab.cjs +1 -3
- package/dist/components/asset-provenance-tab.cjs.map +1 -1
- package/dist/components/asset-provenance-tab.js +1 -3
- package/dist/components/asset-provenance-tab.js.map +1 -1
- package/dist/components/asset-top-sections.cjs +9 -1
- package/dist/components/asset-top-sections.cjs.map +1 -1
- package/dist/components/asset-top-sections.d.cts +3 -1
- package/dist/components/asset-top-sections.d.ts +3 -1
- package/dist/components/asset-top-sections.js +9 -1
- package/dist/components/asset-top-sections.js.map +1 -1
- package/dist/components/asset-type-panels.cjs +139 -0
- package/dist/components/asset-type-panels.cjs.map +1 -0
- package/dist/components/asset-type-panels.d.cts +11 -0
- package/dist/components/asset-type-panels.d.ts +11 -0
- package/dist/components/asset-type-panels.js +114 -0
- package/dist/components/asset-type-panels.js.map +1 -0
- package/dist/components/collection-activity-tab.cjs +2 -2
- package/dist/components/collection-activity-tab.cjs.map +1 -1
- package/dist/components/collection-activity-tab.d.cts +1 -3
- package/dist/components/collection-activity-tab.d.ts +1 -3
- package/dist/components/collection-activity-tab.js +2 -2
- package/dist/components/collection-activity-tab.js.map +1 -1
- package/dist/components/collection-filters-dialog.cjs +98 -0
- package/dist/components/collection-filters-dialog.cjs.map +1 -0
- package/dist/components/collection-filters-dialog.d.cts +13 -0
- package/dist/components/collection-filters-dialog.d.ts +13 -0
- package/dist/components/collection-filters-dialog.js +74 -0
- package/dist/components/collection-filters-dialog.js.map +1 -0
- package/dist/components/collection-header.cjs +82 -0
- package/dist/components/collection-header.cjs.map +1 -0
- package/dist/components/collection-header.d.cts +13 -0
- package/dist/components/collection-header.d.ts +13 -0
- package/dist/components/collection-header.js +58 -0
- package/dist/components/collection-header.js.map +1 -0
- package/dist/components/collection-page.cjs +274 -0
- package/dist/components/collection-page.cjs.map +1 -0
- package/dist/components/collection-page.d.cts +32 -0
- package/dist/components/collection-page.d.ts +32 -0
- package/dist/components/collection-page.js +239 -0
- package/dist/components/collection-page.js.map +1 -0
- package/dist/components/collection-traits-tab.cjs +2 -2
- package/dist/components/collection-traits-tab.cjs.map +1 -1
- package/dist/components/collection-traits-tab.d.cts +1 -3
- package/dist/components/collection-traits-tab.d.ts +1 -3
- package/dist/components/collection-traits-tab.js +2 -2
- package/dist/components/collection-traits-tab.js.map +1 -1
- package/dist/components/creator-chip.cjs +2 -2
- package/dist/components/creator-chip.cjs.map +1 -1
- package/dist/components/creator-chip.d.cts +1 -3
- package/dist/components/creator-chip.d.ts +1 -3
- package/dist/components/creator-chip.js +2 -2
- package/dist/components/creator-chip.js.map +1 -1
- package/dist/components/creator-header.cjs +80 -0
- package/dist/components/creator-header.cjs.map +1 -0
- package/dist/components/creator-header.d.cts +18 -0
- package/dist/components/creator-header.d.ts +18 -0
- package/dist/components/creator-header.js +56 -0
- package/dist/components/creator-header.js.map +1 -0
- package/dist/components/creator-score-inline.cjs +2 -2
- package/dist/components/creator-score-inline.cjs.map +1 -1
- package/dist/components/creator-score-inline.d.cts +1 -3
- package/dist/components/creator-score-inline.d.ts +1 -3
- package/dist/components/creator-score-inline.js +2 -2
- package/dist/components/creator-score-inline.js.map +1 -1
- package/dist/components/drop/create/drop-create.cjs +1 -1
- package/dist/components/drop/create/drop-create.cjs.map +1 -1
- package/dist/components/drop/create/drop-create.js +1 -1
- package/dist/components/drop/create/drop-create.js.map +1 -1
- package/dist/components/drop/drop-listing.cjs +1 -2
- package/dist/components/drop/drop-listing.cjs.map +1 -1
- package/dist/components/drop/drop-listing.d.cts +1 -3
- package/dist/components/drop/drop-listing.d.ts +1 -3
- package/dist/components/drop/drop-listing.js +1 -2
- package/dist/components/drop/drop-listing.js.map +1 -1
- package/dist/components/drop/my-drops.cjs +2 -2
- package/dist/components/drop/my-drops.cjs.map +1 -1
- package/dist/components/drop/my-drops.js +2 -2
- package/dist/components/drop/my-drops.js.map +1 -1
- package/dist/components/drop/page/drop-page.cjs +8 -8
- package/dist/components/drop/page/drop-page.cjs.map +1 -1
- package/dist/components/drop/page/drop-page.js +8 -8
- package/dist/components/drop/page/drop-page.js.map +1 -1
- package/dist/components/floating-comments-button.cjs +78 -0
- package/dist/components/floating-comments-button.cjs.map +1 -0
- package/dist/components/floating-comments-button.d.cts +9 -0
- package/dist/components/floating-comments-button.d.ts +9 -0
- package/dist/components/floating-comments-button.js +54 -0
- package/dist/components/floating-comments-button.js.map +1 -0
- package/dist/components/gated-content.cjs +142 -0
- package/dist/components/gated-content.cjs.map +1 -0
- package/dist/components/gated-content.d.cts +31 -0
- package/dist/components/gated-content.d.ts +31 -0
- package/dist/components/gated-content.js +117 -0
- package/dist/components/gated-content.js.map +1 -0
- package/dist/components/listing-card-menu.cjs +79 -0
- package/dist/components/listing-card-menu.cjs.map +1 -0
- package/dist/components/listing-card-menu.d.cts +8 -0
- package/dist/components/listing-card-menu.d.ts +8 -0
- package/dist/components/listing-card-menu.js +45 -0
- package/dist/components/listing-card-menu.js.map +1 -0
- package/dist/components/listing-card.cjs +2 -1
- package/dist/components/listing-card.cjs.map +1 -1
- package/dist/components/listing-card.js +2 -1
- package/dist/components/listing-card.js.map +1 -1
- package/dist/components/make-offer-picker.cjs +114 -0
- package/dist/components/make-offer-picker.cjs.map +1 -0
- package/dist/components/make-offer-picker.d.cts +9 -0
- package/dist/components/make-offer-picker.d.ts +9 -0
- package/dist/components/make-offer-picker.js +80 -0
- package/dist/components/make-offer-picker.js.map +1 -0
- package/dist/components/media-header.cjs +91 -0
- package/dist/components/media-header.cjs.map +1 -0
- package/dist/components/media-header.d.cts +23 -0
- package/dist/components/media-header.d.ts +23 -0
- package/dist/components/media-header.js +64 -0
- package/dist/components/media-header.js.map +1 -0
- package/dist/components/media-wallet/media-wallet-activity.cjs +3 -1
- package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.js +3 -1
- package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.cjs +6 -6
- package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.js +6 -6
- package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.cjs +8 -6
- package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.js +8 -6
- package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.cjs +4 -3
- package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.js +4 -3
- package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
- package/dist/components/media-wallet/types.cjs.map +1 -1
- package/dist/components/media-wallet/types.d.cts +1 -2
- package/dist/components/media-wallet/types.d.ts +1 -2
- package/dist/components/media-wallet/types.js.map +1 -1
- package/dist/components/medialane-app.cjs.map +1 -1
- package/dist/components/medialane-app.d.cts +18 -2
- package/dist/components/medialane-app.d.ts +18 -2
- package/dist/components/medialane-app.js.map +1 -1
- package/dist/components/portfolio-activity.cjs +2 -2
- package/dist/components/portfolio-activity.cjs.map +1 -1
- package/dist/components/portfolio-activity.d.cts +1 -3
- package/dist/components/portfolio-activity.d.ts +1 -3
- package/dist/components/portfolio-activity.js +2 -2
- package/dist/components/portfolio-activity.js.map +1 -1
- package/dist/components/remixes-tab.cjs +2 -2
- package/dist/components/remixes-tab.cjs.map +1 -1
- package/dist/components/remixes-tab.d.cts +1 -3
- package/dist/components/remixes-tab.d.ts +1 -3
- package/dist/components/remixes-tab.js +2 -2
- package/dist/components/remixes-tab.js.map +1 -1
- package/dist/index.cjs +55 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -4
- package/dist/index.d.ts +18 -4
- package/dist/index.js +36 -3
- package/dist/index.js.map +1 -1
- package/dist/utils/asset-attributes.cjs +48 -0
- package/dist/utils/asset-attributes.cjs.map +1 -0
- package/dist/utils/asset-attributes.d.cts +13 -0
- package/dist/utils/asset-attributes.d.ts +13 -0
- package/dist/utils/asset-attributes.js +24 -0
- package/dist/utils/asset-attributes.js.map +1 -0
- package/dist/utils/asset-market-state.cjs +132 -0
- package/dist/utils/asset-market-state.cjs.map +1 -0
- package/dist/utils/asset-market-state.d.cts +33 -0
- package/dist/utils/asset-market-state.d.ts +33 -0
- package/dist/utils/asset-market-state.js +101 -0
- package/dist/utils/asset-market-state.js.map +1 -0
- package/dist/utils/media-wallet/use-erc20-balance.cjs +5 -3
- package/dist/utils/media-wallet/use-erc20-balance.cjs.map +1 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.cts +3 -5
- package/dist/utils/media-wallet/use-erc20-balance.d.ts +3 -5
- package/dist/utils/media-wallet/use-erc20-balance.js +5 -3
- package/dist/utils/media-wallet/use-erc20-balance.js.map +1 -1
- package/dist/utils/use-activities.cjs +4 -4
- package/dist/utils/use-activities.cjs.map +1 -1
- package/dist/utils/use-activities.d.cts +2 -3
- package/dist/utils/use-activities.d.ts +2 -3
- package/dist/utils/use-activities.js +4 -4
- package/dist/utils/use-activities.js.map +1 -1
- package/dist/utils/use-coin-price.cjs +6 -6
- package/dist/utils/use-coin-price.cjs.map +1 -1
- package/dist/utils/use-coin-price.d.cts +2 -3
- package/dist/utils/use-coin-price.d.ts +2 -3
- package/dist/utils/use-coin-price.js +6 -6
- package/dist/utils/use-coin-price.js.map +1 -1
- package/dist/utils/use-collections.cjs +10 -10
- package/dist/utils/use-collections.cjs.map +1 -1
- package/dist/utils/use-collections.d.cts +5 -6
- package/dist/utils/use-collections.d.ts +5 -6
- package/dist/utils/use-collections.js +10 -10
- package/dist/utils/use-collections.js.map +1 -1
- package/dist/utils/use-comments.cjs +50 -0
- package/dist/utils/use-comments.cjs.map +1 -0
- package/dist/utils/use-comments.d.cts +12 -0
- package/dist/utils/use-comments.d.ts +12 -0
- package/dist/utils/use-comments.js +16 -0
- package/dist/utils/use-comments.js.map +1 -0
- package/dist/utils/use-creators.cjs +3 -1
- package/dist/utils/use-creators.cjs.map +1 -1
- package/dist/utils/use-creators.d.cts +1 -2
- package/dist/utils/use-creators.d.ts +1 -2
- package/dist/utils/use-creators.js +3 -1
- package/dist/utils/use-creators.js.map +1 -1
- package/dist/utils/use-drops.cjs +14 -14
- package/dist/utils/use-drops.cjs.map +1 -1
- package/dist/utils/use-drops.d.cts +7 -7
- package/dist/utils/use-drops.d.ts +7 -7
- package/dist/utils/use-drops.js +14 -14
- package/dist/utils/use-drops.js.map +1 -1
- package/dist/utils/use-full-token-data.cjs +50 -0
- package/dist/utils/use-full-token-data.cjs.map +1 -0
- package/dist/utils/use-full-token-data.d.cts +9 -0
- package/dist/utils/use-full-token-data.d.ts +9 -0
- package/dist/utils/use-full-token-data.js +16 -0
- package/dist/utils/use-full-token-data.js.map +1 -0
- package/dist/utils/use-medialane-client.cjs +3 -1
- package/dist/utils/use-medialane-client.cjs.map +1 -1
- package/dist/utils/use-medialane-client.d.cts +1 -1
- package/dist/utils/use-medialane-client.d.ts +1 -1
- package/dist/utils/use-medialane-client.js +3 -1
- package/dist/utils/use-medialane-client.js.map +1 -1
- package/dist/utils/use-notifications.cjs +4 -4
- package/dist/utils/use-notifications.cjs.map +1 -1
- package/dist/utils/use-notifications.d.cts +1 -2
- package/dist/utils/use-notifications.d.ts +1 -2
- package/dist/utils/use-notifications.js +4 -4
- package/dist/utils/use-notifications.js.map +1 -1
- package/dist/utils/use-orders.cjs +14 -14
- package/dist/utils/use-orders.cjs.map +1 -1
- package/dist/utils/use-orders.d.cts +7 -8
- package/dist/utils/use-orders.d.ts +7 -8
- package/dist/utils/use-orders.js +14 -14
- package/dist/utils/use-orders.js.map +1 -1
- package/dist/utils/use-platform-stats.cjs +2 -2
- package/dist/utils/use-platform-stats.cjs.map +1 -1
- package/dist/utils/use-platform-stats.d.cts +1 -2
- package/dist/utils/use-platform-stats.d.ts +1 -2
- package/dist/utils/use-platform-stats.js +2 -2
- package/dist/utils/use-platform-stats.js.map +1 -1
- package/dist/utils/use-pop.cjs +6 -6
- package/dist/utils/use-pop.cjs.map +1 -1
- package/dist/utils/use-pop.d.cts +3 -4
- package/dist/utils/use-pop.d.ts +3 -4
- package/dist/utils/use-pop.js +6 -6
- package/dist/utils/use-pop.js.map +1 -1
- package/dist/utils/use-profiles.cjs +5 -2
- package/dist/utils/use-profiles.cjs.map +1 -1
- package/dist/utils/use-profiles.d.cts +2 -3
- package/dist/utils/use-profiles.d.ts +2 -3
- package/dist/utils/use-profiles.js +5 -2
- package/dist/utils/use-profiles.js.map +1 -1
- package/dist/utils/use-remix-offers.cjs +2 -2
- package/dist/utils/use-remix-offers.cjs.map +1 -1
- package/dist/utils/use-remix-offers.d.cts +1 -2
- package/dist/utils/use-remix-offers.d.ts +1 -2
- package/dist/utils/use-remix-offers.js +2 -2
- package/dist/utils/use-remix-offers.js.map +1 -1
- package/dist/utils/use-rewards.cjs +11 -5
- package/dist/utils/use-rewards.cjs.map +1 -1
- package/dist/utils/use-rewards.d.cts +5 -6
- package/dist/utils/use-rewards.d.ts +5 -6
- package/dist/utils/use-rewards.js +11 -5
- package/dist/utils/use-rewards.js.map +1 -1
- package/dist/utils/use-sponsorship.cjs +14 -17
- package/dist/utils/use-sponsorship.cjs.map +1 -1
- package/dist/utils/use-sponsorship.d.cts +8 -9
- package/dist/utils/use-sponsorship.d.ts +8 -9
- package/dist/utils/use-sponsorship.js +14 -17
- package/dist/utils/use-sponsorship.js.map +1 -1
- package/dist/utils/use-tiers.cjs +16 -16
- package/dist/utils/use-tiers.cjs.map +1 -1
- package/dist/utils/use-tiers.d.cts +7 -8
- package/dist/utils/use-tiers.d.ts +7 -8
- package/dist/utils/use-tiers.js +16 -16
- package/dist/utils/use-tiers.js.map +1 -1
- package/dist/utils/use-tokens-by-ip-type.cjs +2 -2
- package/dist/utils/use-tokens-by-ip-type.cjs.map +1 -1
- package/dist/utils/use-tokens-by-ip-type.d.cts +1 -2
- package/dist/utils/use-tokens-by-ip-type.d.ts +1 -2
- package/dist/utils/use-tokens-by-ip-type.js +2 -2
- package/dist/utils/use-tokens-by-ip-type.js.map +1 -1
- package/dist/utils/use-tokens.cjs +19 -8
- package/dist/utils/use-tokens.cjs.map +1 -1
- package/dist/utils/use-tokens.d.cts +11 -6
- package/dist/utils/use-tokens.d.ts +11 -6
- package/dist/utils/use-tokens.js +18 -8
- package/dist/utils/use-tokens.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/collection-hero-banner.cjs +0 -118
- package/dist/components/collection-hero-banner.cjs.map +0 -1
- package/dist/components/collection-hero-banner.d.cts +0 -20
- package/dist/components/collection-hero-banner.d.ts +0 -20
- package/dist/components/collection-hero-banner.js +0 -94
- package/dist/components/collection-hero-banner.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -54,6 +54,21 @@ import { AssetMarketsTab } from "./components/asset-markets-tab.js";
|
|
|
54
54
|
import { ParentAttributionBanner } from "./components/parent-attribution-banner.js";
|
|
55
55
|
import { AssetMediaColumn, AssetHeaderBlock, AssetOwnerRow } from "./components/asset-top-sections.js";
|
|
56
56
|
import { ExpandableText } from "./components/expandable-text.js";
|
|
57
|
+
import { CollectionHeader } from "./components/collection-header.js";
|
|
58
|
+
import { CreatorHeader } from "./components/creator-header.js";
|
|
59
|
+
import { AssetPage, AssetPageSkeleton, detectAssetKind } from "./components/asset-page.js";
|
|
60
|
+
import { AssetCommentsDialog } from "./components/asset-comments-dialog.js";
|
|
61
|
+
import { CollectionPage, canTransferCollectionOwnership } from "./components/collection-page.js";
|
|
62
|
+
import { CollectionFiltersDialog } from "./components/collection-filters-dialog.js";
|
|
63
|
+
import { GatedContentHero, GatedContentPanel } from "./components/gated-content.js";
|
|
64
|
+
import { MakeOfferPicker } from "./components/make-offer-picker.js";
|
|
65
|
+
import { ListingCardMenu } from "./components/listing-card-menu.js";
|
|
66
|
+
import { FloatingCommentsButton } from "./components/floating-comments-button.js";
|
|
67
|
+
import { PageBackdrop } from "./components/media-header.js";
|
|
68
|
+
import { useComments } from "./utils/use-comments.js";
|
|
69
|
+
import { useFullTokenData } from "./utils/use-full-token-data.js";
|
|
70
|
+
import { useAssetMarketState } from "./utils/asset-market-state.js";
|
|
71
|
+
import { assetAttributes } from "./utils/asset-attributes.js";
|
|
57
72
|
import { AssetCollectionBar } from "./components/asset-collection-bar.js";
|
|
58
73
|
import { AssetUtilityIcons } from "./components/asset-utility-icons.js";
|
|
59
74
|
import { AssetMarketplacePanel } from "./components/asset-marketplace-panel.js";
|
|
@@ -226,7 +241,6 @@ import { TokenGlyph, TokenAmount } from "./components/token-glyph.js";
|
|
|
226
241
|
import { StatTile, StatPill, StatPillRow } from "./components/stat-tile.js";
|
|
227
242
|
import { ActionDialog } from "./components/action-dialog.js";
|
|
228
243
|
import { HiddenContentBanner } from "./components/hidden-content-banner.js";
|
|
229
|
-
import { CollectionHeroBanner } from "./components/collection-hero-banner.js";
|
|
230
244
|
import { useRewardsCelebrations } from "./components/rewards/use-rewards-celebrations.js";
|
|
231
245
|
import { LevelUpCelebration } from "./components/rewards/level-up-celebration.js";
|
|
232
246
|
import { BadgeUnlocked } from "./components/rewards/badge-unlocked.js";
|
|
@@ -381,7 +395,7 @@ import {
|
|
|
381
395
|
useIsMemberOf
|
|
382
396
|
} from "./utils/use-tiers.js";
|
|
383
397
|
import { collectSitemapData } from "./utils/sitemap-data.js";
|
|
384
|
-
import { useToken, useTokenBalance, useTokenHistory, useTokensByOwner } from "./utils/use-tokens.js";
|
|
398
|
+
import { useToken, useTokenBalance, useTokenHistory, useTokensByOwner, useTokenOwners } from "./utils/use-tokens.js";
|
|
385
399
|
import { checkIsOwner } from "./utils/ownership.js";
|
|
386
400
|
import { AssetOwnersPanel } from "./components/asset-owners-panel.js";
|
|
387
401
|
import { AssetUnavailable } from "./components/asset-unavailable.js";
|
|
@@ -411,6 +425,7 @@ export {
|
|
|
411
425
|
AssetCard,
|
|
412
426
|
AssetCardSkeleton,
|
|
413
427
|
AssetCollectionBar,
|
|
428
|
+
AssetCommentsDialog,
|
|
414
429
|
AssetHeaderBlock,
|
|
415
430
|
AssetLicenseSummary,
|
|
416
431
|
AssetLightbox,
|
|
@@ -420,6 +435,8 @@ export {
|
|
|
420
435
|
AssetOverviewContent,
|
|
421
436
|
AssetOwnerRow,
|
|
422
437
|
AssetOwnersPanel,
|
|
438
|
+
AssetPage,
|
|
439
|
+
AssetPageSkeleton,
|
|
423
440
|
AssetPicker,
|
|
424
441
|
AssetProvenanceTab,
|
|
425
442
|
AssetSearchPicker,
|
|
@@ -457,12 +474,15 @@ export {
|
|
|
457
474
|
CollectionCard,
|
|
458
475
|
CollectionCardSkeleton,
|
|
459
476
|
CollectionFiltersBody,
|
|
477
|
+
CollectionFiltersDialog,
|
|
460
478
|
CollectionFiltersTrigger,
|
|
461
|
-
|
|
479
|
+
CollectionHeader,
|
|
480
|
+
CollectionPage,
|
|
462
481
|
CollectionTraitsTab,
|
|
463
482
|
CreationRecord,
|
|
464
483
|
CreatorAnalytics,
|
|
465
484
|
CreatorChip,
|
|
485
|
+
CreatorHeader,
|
|
466
486
|
CreatorScoreInline,
|
|
467
487
|
CtaCardGrid,
|
|
468
488
|
CurrencyAmount,
|
|
@@ -533,6 +553,7 @@ export {
|
|
|
533
553
|
FastMint,
|
|
534
554
|
FeaturedCarousel,
|
|
535
555
|
FeaturedCarouselSkeleton,
|
|
556
|
+
FloatingCommentsButton,
|
|
536
557
|
Form,
|
|
537
558
|
FormControl,
|
|
538
559
|
FormDescription,
|
|
@@ -544,6 +565,8 @@ export {
|
|
|
544
565
|
GATED_CONTENT_TYPE_FALLBACK,
|
|
545
566
|
GENERIC,
|
|
546
567
|
GEOGRAPHIC_SCOPES,
|
|
568
|
+
GatedContentHero,
|
|
569
|
+
GatedContentPanel,
|
|
547
570
|
GradientButton,
|
|
548
571
|
GuardianRecoverySection,
|
|
549
572
|
HelpIcon,
|
|
@@ -586,9 +609,11 @@ export {
|
|
|
586
609
|
LevelUpCelebration,
|
|
587
610
|
LicenseTermsBuilder,
|
|
588
611
|
ListingCard,
|
|
612
|
+
ListingCardMenu,
|
|
589
613
|
ListingCardSkeleton,
|
|
590
614
|
LoadMoreSentinel,
|
|
591
615
|
MEDIA_TYPES,
|
|
616
|
+
MakeOfferPicker,
|
|
592
617
|
MarketplaceConfirmStep,
|
|
593
618
|
MarketplaceDialogHero,
|
|
594
619
|
MarketplaceErrorState,
|
|
@@ -617,6 +642,7 @@ export {
|
|
|
617
642
|
OrderSortControl,
|
|
618
643
|
OwnerSetupPanel,
|
|
619
644
|
DEFAULT_GATEWAY as PINATA_PUBLIC_GATEWAY,
|
|
645
|
+
PageBackdrop,
|
|
620
646
|
PageContainer,
|
|
621
647
|
ParentAttributionBanner,
|
|
622
648
|
Popover,
|
|
@@ -691,9 +717,11 @@ export {
|
|
|
691
717
|
XpEarned,
|
|
692
718
|
XpProgress,
|
|
693
719
|
assertCorrectNetwork,
|
|
720
|
+
assetAttributes,
|
|
694
721
|
badgeVariants,
|
|
695
722
|
buttonVariants,
|
|
696
723
|
canResendCode,
|
|
724
|
+
canTransferCollectionOwnership,
|
|
697
725
|
canVerifyCode,
|
|
698
726
|
checkIsOwner,
|
|
699
727
|
claimProofFor,
|
|
@@ -710,6 +738,7 @@ export {
|
|
|
710
738
|
derivePortfolioCounts,
|
|
711
739
|
describeError,
|
|
712
740
|
describeWalletFailure,
|
|
741
|
+
detectAssetKind,
|
|
713
742
|
detectPasskeySupport,
|
|
714
743
|
emailCodeReducer,
|
|
715
744
|
fdvUsd,
|
|
@@ -770,6 +799,7 @@ export {
|
|
|
770
799
|
usdPriceFor,
|
|
771
800
|
useActivities,
|
|
772
801
|
useActivitiesByAddress,
|
|
802
|
+
useAssetMarketState,
|
|
773
803
|
useCoinPrice,
|
|
774
804
|
useCollection,
|
|
775
805
|
useCollectionFilters,
|
|
@@ -778,6 +808,7 @@ export {
|
|
|
778
808
|
useCollectionTokens,
|
|
779
809
|
useCollections,
|
|
780
810
|
useCollectionsByOwner,
|
|
811
|
+
useComments,
|
|
781
812
|
useCounterOffers,
|
|
782
813
|
useCreatorProfile,
|
|
783
814
|
useCreators,
|
|
@@ -789,6 +820,7 @@ export {
|
|
|
789
820
|
useDrops,
|
|
790
821
|
useEmailCode,
|
|
791
822
|
useFormField,
|
|
823
|
+
useFullTokenData,
|
|
792
824
|
useIntersectionActive,
|
|
793
825
|
useIsMemberOf,
|
|
794
826
|
useLaunchpadFilter,
|
|
@@ -832,6 +864,7 @@ export {
|
|
|
832
864
|
useTokenBalance,
|
|
833
865
|
useTokenHistory,
|
|
834
866
|
useTokenListings,
|
|
867
|
+
useTokenOwners,
|
|
835
868
|
useTokenRemixes,
|
|
836
869
|
useTokensByIpType,
|
|
837
870
|
useTokensByOwner,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["\nexport { cn } from \"./utils/cn.js\";\nexport { formatDisplayPrice, parsePriceDisplay, isStableCurrency, formatUsd, formatUsdPrice, formatSmallDecimal } from \"./utils/format.js\";\nexport { shortenAddress } from \"./utils/address.js\";\nexport { profileIdentity, type ProfileIdentity, type ProfileIdentitySource } from \"./utils/profile-identity.js\";\nexport { ipfsToHttp, DEFAULT_GATEWAY as PINATA_PUBLIC_GATEWAY } from \"./utils/ipfs.js\";\nexport {\n uploadFileToIpfs,\n FILE_UPLOAD_FAILED,\n uploadJsonToIpfs,\n uploadDirectoryToIpfs,\n pinAssetMetadata,\n uploadFailureToast,\n isUserRejection,\n setUploadDiagnosticsReporter,\n type SignedUploadKind,\n type UploadedIpfsFile,\n type UploadDiagnostics,\n type PinAssetMetadataInput,\n type PinnedAsset,\n} from \"./utils/ipfs-upload.js\";\nexport { useIntersectionActive } from \"./utils/use-intersection-active.js\";\nexport { getReadIds, markRead } from \"./utils/notification-storage.js\";\nexport { licenseSummary } from \"./utils/license-summary.js\";\nexport {\n isBareExecuteFailure,\n isUserRejectedRequest,\n isWrongNetwork,\n assertCorrectNetwork,\n WrongNetworkError,\n} from \"./utils/wallet-error.js\";\nexport {\n describeError,\n UserFacingError,\n NOT_SUBMITTED,\n GENERIC,\n NETWORK_BUSY,\n CONNECTION_FAILED,\n} from \"./utils/describe-error.js\";\nexport type { ErrorNotice } from \"./utils/describe-error.js\";\n\nexport { IP_TYPE_DATA, IP_TYPE_DATA_MAP } from \"./data/ip-types.js\";\nexport type { IpTypeData } from \"./data/ip-types.js\";\nexport {\n IP_TYPES, LICENSE_TYPES, GEOGRAPHIC_SCOPES, AI_POLICIES,\n DERIVATIVES_OPTIONS, LICENSE_TRAIT_TYPES,\n} from \"./data/ip.js\";\nexport type { IPType, LicenseType } from \"./data/ip.js\";\nexport {\n IP_TEMPLATES, EMBED_PLATFORM_META, SOCIAL_PLATFORM_META, TEMPLATE_TRAIT_TYPES, DOC_UPLOAD,\n} from \"./data/ip-templates.js\";\nexport type { EmbedPlatform, SocialPlatform, TraitSuggestion, IPTemplate, DocUploadConfig } from \"./data/ip-templates.js\";\nexport { IPTypeDisplay } from \"./components/ip-type-display.js\";\nexport { AssetOverviewContent } from \"./components/asset-overview-content.js\";\nexport { AssetLicenseSummary } from \"./components/asset-license-summary.js\";\nexport { AssetMarketsTab } from \"./components/asset-markets-tab.js\";\nexport { ParentAttributionBanner } from \"./components/parent-attribution-banner.js\";\nexport type { ParentBannerProps } from \"./components/parent-attribution-banner.js\";\nexport { AssetMediaColumn, AssetHeaderBlock, AssetOwnerRow } from \"./components/asset-top-sections.js\";\nexport { ExpandableText } from \"./components/expandable-text.js\";\nexport type { AssetOwnerRowProps } from \"./components/asset-top-sections.js\";\nexport { AssetCollectionBar } from \"./components/asset-collection-bar.js\";\nexport type { AssetCollectionBarProps, AssetCollectionBarSibling } from \"./components/asset-collection-bar.js\";\nexport { AssetUtilityIcons } from \"./components/asset-utility-icons.js\";\nexport type { AssetUtilityIconsProps } from \"./components/asset-utility-icons.js\";\nexport { AssetMarketplacePanel } from \"./components/asset-marketplace-panel.js\";\nexport type { AssetMarketplacePanelProps, ApiOrderLike } from \"./components/asset-marketplace-panel.js\";\nexport { BRAND } from \"./data/brand.js\";\nexport { LIVING_RENDER_COLLECTIONS, isLivingRenderCollection } from \"./data/living-render-collections.js\";\n\nexport { CurrencyIcon, CurrencyAmount } from \"./components/currency-icon.js\";\nexport type { CurrencyIconProps, CurrencyAmountProps } from \"./components/currency-icon.js\";\n\nexport { IpTypeBadge, IP_TYPE_CONFIG, IP_TYPE_MAP } from \"./components/ip-type-badge.js\";\nexport type { IpTypeBadgeProps, IpTypeConfig } from \"./components/ip-type-badge.js\";\n\nexport { AddressDisplay } from \"./components/address-display.js\";\nexport type { AddressDisplayProps } from \"./components/address-display.js\";\n\nexport { MedialaneLogoFull } from \"./components/brand-logo.js\";\nexport type { MedialaneLogoFullProps } from \"./components/brand-logo.js\";\n\nexport { MotionCard, FadeIn, Stagger, StaggerItem, KineticWords, SPRING, EASE_OUT } from \"./components/motion-primitives.js\";\nexport { PageContainer } from \"./components/page-container.js\";\nexport type { PageContainerProps } from \"./components/page-container.js\";\nexport { ScrollSection } from \"./components/scroll-section.js\";\nexport type { ScrollSectionProps } from \"./components/scroll-section.js\";\nexport { ShareButton } from \"./components/share-button.js\";\nexport type { ShareButtonProps } from \"./components/share-button.js\";\nexport { CollectionCard, CollectionCardSkeleton } from \"./components/collection-card.js\";\nexport type { CollectionCardProps } from \"./components/collection-card.js\";\nexport { TokenCard, TokenCardSkeleton } from \"./components/token-card.js\";\nexport type { TokenCardProps } from \"./components/token-card.js\";\nexport { AnimatedTokenMedia } from \"./components/animated-token-media.js\";\nexport type { AnimatedTokenMediaProps } from \"./components/animated-token-media.js\";\nexport { ThemeAmbientBackground } from \"./components/theme-ambient-background.js\";\nexport {\n useCollectionFilters, SORT_OPTIONS, CollectionFiltersTrigger, CollectionFiltersBody,\n} from \"./components/collection-filters.js\";\nexport type { TraitSection, CollectionFiltersTriggerProps, CollectionFiltersBodyProps } from \"./components/collection-filters.js\";\nexport {\n DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem,\n DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel,\n DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup,\n DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent,\n DropdownMenuSubTrigger, DropdownMenuRadioGroup,\n} from \"./components/dropdown-menu.js\";\nexport { AssetCard, AssetCardSkeleton } from \"./components/asset-card.js\";\nexport type { AssetCardProps, AssetCardPrice } from \"./components/asset-card.js\";\nexport { AssetPicker } from \"./components/asset-picker.js\";\nexport type { AssetPickerProps, OwnedAsset } from \"./components/asset-picker.js\";\nexport { AssetSearchPicker } from \"./components/asset-search-picker.js\";\nexport type { AssetSearchPickerProps } from \"./components/asset-search-picker.js\";\nexport { LicenseTermsBuilder, EMPTY_SPONSORSHIP_TERMS, MEDIA_TYPES, DURATION_UNITS, toLicenseMetadata, toDurationDays } from \"./components/license-terms-builder.js\";\nexport type { LicenseTermsBuilderProps, SponsorshipTerms, DurationUnit } from \"./components/license-terms-builder.js\";\n\nexport {\n coinKind, coinKindLabel, coinKindLabelPlural, COIN_KINDS, coinAccentToken, coinServiceIds, isCoinService, formatCoinPrice, coinSupply, formatFdvUsd, fdvUsd,\n type CoinKind, type CoinCollectionLike, type CoinPriceLike,\n} from \"./data/coins.js\";\nexport { CoinGuarantees, type CoinGuaranteesProps, type CoinGuaranteesData } from \"./components/coin-guarantees.js\";\nexport { CoinRow, CoinRowSkeleton, CoinAvatar, COIN_GRID, type UseCoinPrice, type CoinRowProps, type CoinMarketStatus } from \"./components/coin-row.js\";\nexport { orderCoins, type CoinPriceSort } from \"./data/coin-order.js\";\nexport {\n CoinsExplorer,\n type CoinsExplorerProps, type CoinFilter, type CoinSort, type UseCoins, type UsePriceMap, type CoinCounts,\n} from \"./components/coins-explorer.js\";\n\nexport { timeAgo, timeUntil, isExpired } from \"./utils/time.js\";\nexport { toDisplayUrl, toDisplayUrlOrNull, toAbsoluteImageUrl, type DisplayUrlOptions } from \"./utils/ipfs.js\";\nexport { isSameAddress } from \"./utils/same-address.js\";\nexport { createAppWallet } from \"./utils/app-wallet.js\";\nexport type { AppWalletConfig } from \"./utils/app-wallet.js\";\nexport { detectPasskeySupport } from \"./utils/passkey-support.js\";\nexport type { PasskeySupport } from \"./utils/passkey-support.js\";\nexport { describeWalletFailure, isPasskeyCancelled, passkeyUnsupportedReason } from \"./utils/wallet-failure.js\";\nexport type { PasskeyUnsupportedReason, WalletFailureKind, WalletFailureNotice } from \"./utils/wallet-failure.js\";\nexport {\n RESEND_COOLDOWN_SECONDS,\n canResendCode,\n canVerifyCode,\n emailCodeReducer,\n initialEmailCodeState,\n} from \"./utils/email-code.js\";\nexport type { EmailCodeAction, EmailCodeState, EmailCodeStatus } from \"./utils/email-code.js\";\nexport { useEmailCode } from \"./utils/use-email-code.js\";\nexport type { EmailCode, EmailCodeApi } from \"./utils/use-email-code.js\";\nexport { AccountSection } from \"./components/account/account-section.js\";\nexport type { AccountSectionProps } from \"./components/account/account-section.js\";\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from \"./components/account/input-otp.js\";\nexport { EmailCodeEntry } from \"./components/account/email-code-entry.js\";\nexport type { EmailCodeEntryProps } from \"./components/account/email-code-entry.js\";\nexport { DevicesSection } from \"./components/account/devices-section.js\";\nexport type { DevicesSectionProps } from \"./components/account/devices-section.js\";\nexport { DeviceApprovalDialog } from \"./components/account/device-approval-dialog.js\";\nexport type { DeviceApprovalDialogProps } from \"./components/account/device-approval-dialog.js\";\nexport { GuardianRecoverySection } from \"./components/account/guardian-recovery-section.js\";\nexport type { GuardianRecoverySectionProps } from \"./components/account/guardian-recovery-section.js\";\nexport { AddGuardianDialog } from \"./components/account/add-guardian-dialog.js\";\nexport type { AddGuardianDialogProps } from \"./components/account/add-guardian-dialog.js\";\nexport type { DeviceWallet, GuardianWallet, LoadSealedOwner } from \"./components/account/wallet-types.js\";\nexport { ACTIVITY_TYPE_CONFIG, TYPE_FILTERS } from \"./data/activity.js\";\nexport type { ActivityTypeConfig } from \"./data/activity.js\";\nexport { HeroSlider, HeroSliderSkeleton } from \"./components/hero-slider.js\";\nexport type { HeroSliderProps } from \"./components/hero-slider.js\";\nexport { ActivityTicker } from \"./components/activity-ticker.js\";\nexport type { ActivityTickerProps } from \"./components/activity-ticker.js\";\nexport { ListingCard, ListingCardSkeleton } from \"./components/listing-card.js\";\nexport type { ListingCardProps } from \"./components/listing-card.js\";\nexport {\n MarketplaceTxLink,\n MarketplaceProcessingState,\n MarketplaceSignInGate,\n MarketplaceSuccessState,\n MarketplaceErrorState,\n MarketplaceDialogHero,\n CurrencyPicker,\n DurationPicker,\n MarketplaceConfirmStep,\n} from \"./components/marketplace-dialog-primitives.js\";\nexport { ActivityRow } from \"./components/activity-row.js\";\nexport { ActivityTimelineRow } from \"./components/activity-timeline-row.js\";\nexport type { ActivityTimelineRowProps } from \"./components/activity-timeline-row.js\";\nexport { DropItemList } from \"./components/drop-item-list.js\";\nexport type { DraftItem } from \"./components/drop-item-list.js\";\nexport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"./utils/launchpad-defaults.js\";\nexport { DropStatusBadge, DropSupplyProgress } from \"./components/drop/drop-status.js\";\nexport { DropCard, DropGrid, DropGridSkeleton } from \"./components/drop/drop-card.js\";\nexport { DropListing } from \"./components/drop/drop-listing.js\";\nexport { DropFeatures } from \"./components/drop/drop-features.js\";\nexport { MyDrops } from \"./components/drop/my-drops.js\";\nexport { DropTokenLink } from \"./components/drop/drop-token-link.js\";\nexport type { DropPhase } from \"./utils/drop/view.js\";\nexport { DropCreate, DraftSummary } from \"./components/drop/create/drop-create.js\";\nexport { ExclusiveFields } from \"./components/drop/create/exclusive-fields.js\";\nexport { DropPage } from \"./components/drop/page/drop-page.js\";\nexport { DropActionBox } from \"./components/drop/page/drop-action-box.js\";\nexport { DropActivityList } from \"./components/drop/page/drop-activity.js\";\nexport { claimProofFor } from \"./utils/drop/claim-proof.js\";\nexport type { DropSigner } from \"./utils/drop/types.js\";\nexport { MedialaneAppProvider, useMedialaneApp, type MedialaneApp, type CompanionApp, type AssetRef } from \"./components/medialane-app.js\";\nexport { runIntentCalls } from \"./utils/run-intent-calls.js\";\nexport { GATED_CONTENT_TYPES, GATED_CONTENT_TYPE_FALLBACK } from \"./data/gated-content-types.js\";\nexport type { ContentTypeConfig } from \"./data/gated-content-types.js\";\nexport { CollapsibleSection } from \"./components/collapsible-section.js\";\nexport { useUsdPrices, usdPriceFor } from \"./utils/use-usd-prices.js\";\nexport type { UsdPrices } from \"./utils/use-usd-prices.js\";\nexport { NotificationRow } from \"./components/notification-row.js\";\nexport type { NotificationRowProps } from \"./components/notification-row.js\";\nexport { NOTIFICATION_ICON, NOTIFICATION_COLOR, NOTIFICATION_LABEL } from \"./data/notification-meta.js\";\nexport type { ActivityRowProps } from \"./components/activity-row.js\";\nexport { ActivityFeedShell } from \"./components/activity-feed-shell.js\";\nexport type { ActivityFeedShellProps } from \"./components/activity-feed-shell.js\";\nexport { CtaCardGrid } from \"./components/cta-card-grid.js\";\nexport type { CtaCardGridProps, CtaCardItem } from \"./components/cta-card-grid.js\";\n\nexport { DiscoverHero } from \"./components/discover-hero.js\";\nexport type { DiscoverHeroProps } from \"./components/discover-hero.js\";\nexport { FeaturedCarousel, FeaturedCarouselSkeleton } from \"./components/featured-carousel.js\";\nexport type { FeaturedCarouselProps } from \"./components/featured-carousel.js\";\nexport { DiscoverCollectionsStrip } from \"./components/discover-collections-strip.js\";\nexport type { DiscoverCollectionsStripProps } from \"./components/discover-collections-strip.js\";\nexport { DiscoverCreatorsStrip } from \"./components/discover-creators-strip.js\";\nexport type { DiscoverCreatorsStripProps } from \"./components/discover-creators-strip.js\";\nexport { DiscoverFeedSection, DiscoverActivityStrip } from \"./components/discover-feed-section.js\";\nexport type { DiscoverFeedSectionProps, DiscoverActivityStripProps } from \"./components/discover-feed-section.js\";\nexport { ActivityCard, ActivityCardSkeleton, ACTIVITY_MESSAGES } from \"./components/activity-card.js\";\nexport type { ActivityCardProps } from \"./components/activity-card.js\";\n\nexport { LaunchpadGroupedSections, LaunchpadServiceCard, SERVICE_HUES, useLaunchpadFilter } from \"./components/launchpad-services.js\";\nexport { LaunchpadFilterBar } from \"./components/launchpad-filter-bar.js\";\nexport type { LaunchpadFilterBarProps } from \"./components/launchpad-filter-bar.js\";\nexport { LaunchpadStrip } from \"./components/launchpad-strip.js\";\nexport type { LaunchpadStripProps } from \"./components/launchpad-strip.js\";\nexport { LaunchpadCtaBanner } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadCtaBannerProps } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadGroupedSectionsProps, LaunchpadServiceCardProps, ServiceOverride, ServiceOverrides } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_ROUTE_OVERRIDES } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS } from \"./data/launchpad-services.js\";\nexport type { ServiceDefinition, ServiceStatus, ServiceGroup, ServiceGroupDefinition } from \"./data/launchpad-services.js\";\n\nexport { NavCommandMenu, useNavCommandMenu, relevanceFilter } from \"./components/nav-command-menu.js\";\nexport type { NavCommand, NavCommandGroup, NavCommandMenuProps } from \"./components/nav-command-menu.js\";\n\nexport {\n NavBrandButton,\n NavIconButton,\n NavWalletTrigger,\n NavAccountSheet,\n useNavAccountSheet,\n} from \"./components/nav-shell.js\";\nexport type {\n NavBrandButtonProps,\n NavIconButtonProps,\n NavWalletTriggerProps,\n NavAccountSheetProps,\n} from \"./components/nav-shell.js\";\n\nexport { PortfolioHeader } from \"./components/portfolio-header.js\";\nexport type {\n PortfolioHeaderProps,\n PortfolioHeaderScore,\n} from \"./components/portfolio-header.js\";\nexport { derivePortfolioCounts } from \"./utils/portfolio-counts.js\";\nexport type { PortfolioCounts, CountableOrder } from \"./utils/portfolio-counts.js\";\nexport { PortfolioSection } from \"./components/portfolio-section.js\";\nexport type {\n PortfolioSectionProps,\n PortfolioSectionColor,\n} from \"./components/portfolio-section.js\";\nexport { PortfolioChipFilter } from \"./components/portfolio-chip-filter.js\";\nexport type {\n PortfolioChipFilterProps,\n PortfolioChipFilterOption,\n} from \"./components/portfolio-chip-filter.js\";\n\nexport { ServiceHeader } from \"./components/service-header.js\";\nexport type { ServiceHeaderProps } from \"./components/service-header.js\";\nexport { ClaimRail } from \"./components/claim-rail.js\";\nexport type { ClaimRailProps } from \"./components/claim-rail.js\";\n\nexport { ServiceFormShell } from \"./components/service-form-shell.js\";\nexport type { ServiceFormShellProps } from \"./components/service-form-shell.js\";\nexport { StepNav } from \"./components/step-nav.js\";\nexport type { StepNavProps, StepNavStep } from \"./components/step-nav.js\";\n\nexport { LevelBadge } from \"./components/rewards/level-badge.js\";\nexport type { LevelBadgeProps } from \"./components/rewards/level-badge.js\";\nexport { XpProgress } from \"./components/rewards/xp-progress.js\";\nexport type { XpProgressProps } from \"./components/rewards/xp-progress.js\";\nexport { BadgeShelf } from \"./components/rewards/badge-shelf.js\";\nexport type { BadgeShelfProps, BadgeShelfBadge } from \"./components/rewards/badge-shelf.js\";\nexport { ScoreSummaryCard } from \"./components/rewards/score-summary-card.js\";\nexport type { ScoreSummaryCardProps } from \"./components/rewards/score-summary-card.js\";\nexport { LeaderboardTable, LeaderboardWidget } from \"./components/rewards/leaderboard-table.js\";\nexport type { LeaderboardTableProps, LeaderboardWidgetProps, LeaderboardEntryLike } from \"./components/rewards/leaderboard-table.js\";\nexport { LevelJourneyList } from \"./components/rewards/level-journey-list.js\";\nexport type { LevelJourneyListProps, LevelJourneyListLevel } from \"./components/rewards/level-journey-list.js\";\nexport { BadgeCatalog } from \"./components/rewards/badge-catalog.js\";\nexport type { BadgeCatalogProps, BadgeCatalogBadge } from \"./components/rewards/badge-catalog.js\";\nexport { XpEarned } from \"./components/rewards/xp-earned.js\";\nexport type { XpEarnedProps } from \"./components/rewards/xp-earned.js\";\nexport { createRewardEarned } from \"./components/rewards/reward-earned.js\";\nexport type { RewardEarnedProps, RewardSnapshot } from \"./components/rewards/reward-earned.js\";\n\nexport { LoadMoreSentinel } from \"./components/load-more-sentinel.js\";\nexport { ActivitiesFeed } from \"./components/activities-feed.js\";\nexport type { ActivitiesFeedProps } from \"./components/activities-feed.js\";\nexport type { LoadMoreSentinelProps } from \"./components/load-more-sentinel.js\";\n\nexport { RewardsSection } from \"./components/rewards-section.js\";\nexport type { RewardsSectionProps } from \"./components/rewards-section.js\";\n\nexport { ActionButton } from \"./components/action-button.js\";\nexport type { ActionButtonProps, ActionKey, ToneKey } from \"./components/action-button.js\";\nexport { GradientButton } from \"./components/gradient-button.js\";\nexport type { GradientButtonProps } from \"./components/gradient-button.js\";\n\nexport { CoinLaunchPreview } from \"./components/coin-launch-preview.js\";\nexport type { CoinPreviewData } from \"./components/coin-launch-preview.js\";\nexport { MedialaneCollectionCard } from \"./components/medialane-collection-card.js\";\nexport type { MedialaneCollectionCardProps } from \"./components/medialane-collection-card.js\";\nexport { TokenGlyph, TokenAmount } from \"./components/token-glyph.js\";\nexport type { TokenGlyphProps, TokenAmountProps, TokenSymbol } from \"./components/token-glyph.js\";\n\nexport { StatTile, StatPill, StatPillRow } from \"./components/stat-tile.js\";\nexport type { StatTileProps, StatPillProps, StatPillRowItem } from \"./components/stat-tile.js\";\n\nexport { ActionDialog } from \"./components/action-dialog.js\";\nexport type { ActionDialogProps } from \"./components/action-dialog.js\";\n\nexport { HiddenContentBanner } from \"./components/hidden-content-banner.js\";\nexport { CollectionHeroBanner } from \"./components/collection-hero-banner.js\";\nexport type { CollectionHeroBannerProps, CollectionHeroStat } from \"./components/collection-hero-banner.js\";\n\nexport { useRewardsCelebrations } from \"./components/rewards/use-rewards-celebrations.js\";\nexport { LevelUpCelebration } from \"./components/rewards/level-up-celebration.js\";\nexport type { LevelUpCelebrationProps } from \"./components/rewards/level-up-celebration.js\";\nexport { BadgeUnlocked } from \"./components/rewards/badge-unlocked.js\";\nexport type { BadgeUnlockedProps } from \"./components/rewards/badge-unlocked.js\";\nexport { JourneyPath } from \"./components/rewards/journey-path.js\";\nexport type { JourneyPathProps, JourneyStep } from \"./components/rewards/journey-path.js\";\n\nexport { Skeleton } from \"./components/skeleton.js\";\nexport { Badge, badgeVariants } from \"./components/badge.js\";\nexport type { BadgeProps } from \"./components/badge.js\";\nexport { Label } from \"./components/label.js\";\nexport { Input } from \"./components/input.js\";\nexport { Switch } from \"./components/switch.js\";\nexport { Checkbox } from \"./components/checkbox.js\";\nexport { Alert, AlertTitle, AlertDescription } from \"./components/alert.js\";\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from \"./components/tabs.js\";\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from \"./components/card.js\";\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from \"./components/collapsible.js\";\nexport { Button, buttonVariants } from \"./components/button.js\";\nexport type { ButtonProps } from \"./components/button.js\";\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from \"./components/popover.js\";\nexport { HelpIcon } from \"./components/help-icon.js\";\nexport { EmptyOrError } from \"./components/empty-or-error.js\";\nexport { TabEmptyState } from \"./components/tab-empty-state.js\";\nexport type { TabEmptyStateProps } from \"./components/tab-empty-state.js\";\nexport {\n Select, SelectGroup, SelectValue, SelectTrigger, SelectContent,\n SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton,\n} from \"./components/select.js\";\nexport {\n useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField,\n} from \"./components/form.js\";\nexport { Textarea } from \"./components/textarea.js\";\nexport type { TextareaProps } from \"./components/textarea.js\";\nexport {\n Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent,\n SheetHeader, SheetFooter, SheetTitle, SheetDescription,\n} from \"./components/sheet.js\";\n\nexport { ToggleGroup, Section } from \"./components/create-form-primitives.js\";\nexport { OrderSortControl, sortOrders } from \"./components/order-sort-control.js\";\nexport type { OrderSort } from \"./components/order-sort-control.js\";\nexport { AssetLightbox } from \"./components/asset-lightbox.js\";\nexport type { AssetLightboxProps } from \"./components/asset-lightbox.js\";\nexport { PriceHistoryChart } from \"./components/price-history-chart.js\";\nexport type { PriceHistoryChartProps } from \"./components/price-history-chart.js\";\nexport { NavThemeToggle } from \"./components/nav-theme-toggle.js\";\nexport { JsonLd } from \"./components/json-ld.js\";\nexport type { JsonLdProps } from \"./components/json-ld.js\";\nexport { CreationRecord } from \"./components/creation-record.js\";\nexport type { CreationRecordProps } from \"./components/creation-record.js\";\nexport { ClubOwnerActions } from \"./components/club-owner-actions.js\";\nexport type { ClubOwnerActionsProps } from \"./components/club-owner-actions.js\";\nexport { IPTypeFields } from \"./components/ip-type-fields.js\";\nexport type { IPTypeFieldsProps, MetadataField } from \"./components/ip-type-fields.js\";\n\nexport { FastMint } from \"./components/fast-mint/fast-mint.js\";\nexport { Dropzone } from \"./components/fast-mint/dropzone.js\";\nexport type { DropzoneProps } from \"./components/fast-mint/dropzone.js\";\nexport { SuccessView } from \"./components/fast-mint/success-view.js\";\nexport type { SuccessViewProps } from \"./components/fast-mint/success-view.js\";\nexport type {\n MediaKind, FastMintSigner, MintedAsset, FastMintProps,\n} from \"./components/fast-mint/types.js\";\nexport { readBodyWithCap } from \"./utils/proxy-body.js\";\nexport type { CappedBody } from \"./utils/proxy-body.js\";\nexport {\n formatActivity, formatOrderNotification, formatOfferAcceptedNotification, formatAssetReceivedNotification,\n} from \"./utils/format-activity.js\";\nexport type { FormattedEvent } from \"./utils/format-activity.js\";\n\nexport { queryKeys, queryKeyPrefix, QUERY_PREFIX } from \"./utils/query-keys.js\";\nexport { useCollectionProfile, useCreatorProfile } from \"./utils/use-profiles.js\";\nexport { useActivities, useActivitiesByAddress } from \"./utils/use-activities.js\";\nexport {\n useCollections, useCollection, useCollectionsByOwner, useCollectionTokens, useNearbyCollectionTokens,\n} from \"./utils/use-collections.js\";\nexport type { CollectionSort } from \"./utils/use-collections.js\";\nexport { CreatorChip } from \"./components/creator-chip.js\";\nexport type { CreatorChipProps } from \"./components/creator-chip.js\";\nexport { CollectionActivityTab } from \"./components/collection-activity-tab.js\";\nexport type { CollectionActivityTabProps } from \"./components/collection-activity-tab.js\";\nexport { CollectionTraitsTab } from \"./components/collection-traits-tab.js\";\nexport type { CollectionTraitsTabProps } from \"./components/collection-traits-tab.js\";\nexport { PortfolioActivity } from \"./components/portfolio-activity.js\";\nexport type { PortfolioActivityProps } from \"./components/portfolio-activity.js\";\nexport { CreatorScoreInline } from \"./components/creator-score-inline.js\";\nexport type { CreatorScoreInlineProps } from \"./components/creator-score-inline.js\";\n\nexport { useMedialaneClient } from \"./utils/use-medialane-client.js\";\n\nexport { MediaWalletOverlay, useMediaWallet } from \"./components/media-wallet/media-wallet-overlay.js\";\nexport type {\n MediaWalletAppProps,\n MediaWalletHeaderIdentity,\n MediaWalletSession,\n MediaWalletView,\n WalletWriteAction,\n WalletWriteStatus,\n} from \"./components/media-wallet/types.js\";\nexport { useCreators } from \"./utils/use-creators.js\";\nexport {\n useRewards, useLeaderboard, useRewardsEvents, useRewardsConfig, useRewardsBatch,\n} from \"./utils/use-rewards.js\";\nexport type { UserRewards, LeaderboardEntry, BadgeSummary, LevelSummary } from \"./utils/use-rewards.js\";\n\nexport {\n useOrders, useOrder, useTokenListings, useUserOrders, useCounterOffers,\n useReceivedOffers, useCollectionFloorListings,\n} from \"./utils/use-orders.js\";\nexport { useNotifications } from \"./utils/use-notifications.js\";\nexport type { Notification, NotificationType, NotificationPriority, Announcement } from \"./data/notification.js\";\nexport { useTokenRemixes } from \"./utils/use-remix-offers.js\";\nexport { RemixesTab } from \"./components/remixes-tab.js\";\nexport type { RemixesTabProps } from \"./components/remixes-tab.js\";\n\nexport { OwnerSetupPanel } from \"./components/owner-setup-panel.js\";\nexport { DropCountdown } from \"./components/drop-countdown.js\";\nexport { CreatorAnalytics } from \"./components/creator-analytics.js\";\nexport {\n Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger,\n DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription,\n} from \"./components/dialog.js\";\nexport { SelfFundConsentDialog, feeLabelFor } from \"./components/wallet/self-fund-consent-dialog.js\";\nexport { ExportKeySection, type ExportKeySectionProps } from \"./components/wallet/export-key-section.js\";\nexport { useDrops, useMyDrops, useDrop, useDropMints, useDropFee, useDropFile, useDropChain } from \"./utils/use-drops.js\";\nexport type { DropChainState } from \"./utils/use-drops.js\";\nexport { usePopCollections, useMyPopEvents, usePopClaimStatus } from \"./utils/use-pop.js\";\nexport { usePlatformStats } from \"./utils/use-platform-stats.js\";\nexport { useTokensByIpType } from \"./utils/use-tokens-by-ip-type.js\";\nexport { usePriceMap, useCoinPrice } from \"./utils/use-coin-price.js\";\nexport {\n useSponsorshipOffers, useSponsorshipOffer, useSponsorshipBids, useSponsorshipProposals,\n useSponsorshipProposal, usePendingProposalsForAsset, useSponsorshipLicenses, useMySponsorshipDealCounts,\n} from \"./utils/use-sponsorship.js\";\nexport {\n predictNextMembershipId, predictNextTicketId, useMyClubCollections, useMyTicketCollections,\n useMembershipList, useTicketList, useMembershipOnchain, useTicketOnchain, useIsMemberOf,\n type TierOnchain, type TierListItem,\n} from \"./utils/use-tiers.js\";\nexport { collectSitemapData, type SitemapData, type SitemapLimits } from \"./utils/sitemap-data.js\";\nexport { useToken, useTokenBalance, useTokenHistory, useTokensByOwner } from \"./utils/use-tokens.js\";\nexport { checkIsOwner } from \"./utils/ownership.js\";\nexport { AssetOwnersPanel } from \"./components/asset-owners-panel.js\";\nexport { AssetUnavailable } from \"./components/asset-unavailable.js\";\nexport { AssetProvenanceTab } from \"./components/asset-provenance-tab.js\";\nexport { ASSET_ACCENTS, type AssetAccent, type AssetAccentName } from \"./utils/asset-accents.js\";\n"],"mappings":"AACA,SAAS,UAAU;AACnB,SAAS,oBAAoB,mBAAmB,kBAAkB,WAAW,gBAAgB,0BAA0B;AACvH,SAAS,sBAAsB;AAC/B,SAAS,uBAAyE;AAClF,SAAS,YAA+B,uBAA6B;AACrE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SA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AU,YAAY,SAAS,cAAc,YAAY,aAAa,oBAAoB;AAEnG,SAAS,mBAAmB,gBAAgB,yBAAyB;AACrE,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,aAAa,oBAAoB;AAC1C;AAAA,EACE;AAAA,EAAsB;AAAA,EAAqB;AAAA,EAAoB;AAAA,EAC/D;AAAA,EAAwB;AAAA,EAA6B;AAAA,EAAwB;AAAA,OACxE;AACP;AAAA,EACE;AAAA,EAAyB;AAAA,EAAqB;AAAA,EAAsB;AAAA,EACpE;AAAA,EAAmB;AAAA,EAAe;AAAA,EAAsB;AAAA,EAAkB;AAAA,OAErE;AACP,SAAS,0BAAgE;AACzE,SAAS,UAAU,iBAAiB,iBAAiB,wBAAwB;AAC7E,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,qBAA6D;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["\nexport { cn } from \"./utils/cn.js\";\nexport { formatDisplayPrice, parsePriceDisplay, isStableCurrency, formatUsd, formatUsdPrice, formatSmallDecimal } from \"./utils/format.js\";\nexport { shortenAddress } from \"./utils/address.js\";\nexport { profileIdentity, type ProfileIdentity, type ProfileIdentitySource } from \"./utils/profile-identity.js\";\nexport { ipfsToHttp, DEFAULT_GATEWAY as PINATA_PUBLIC_GATEWAY } from \"./utils/ipfs.js\";\nexport {\n uploadFileToIpfs,\n FILE_UPLOAD_FAILED,\n uploadJsonToIpfs,\n uploadDirectoryToIpfs,\n pinAssetMetadata,\n uploadFailureToast,\n isUserRejection,\n setUploadDiagnosticsReporter,\n type SignedUploadKind,\n type UploadedIpfsFile,\n type UploadDiagnostics,\n type PinAssetMetadataInput,\n type PinnedAsset,\n} from \"./utils/ipfs-upload.js\";\nexport { useIntersectionActive } from \"./utils/use-intersection-active.js\";\nexport { getReadIds, markRead } from \"./utils/notification-storage.js\";\nexport { licenseSummary } from \"./utils/license-summary.js\";\nexport {\n isBareExecuteFailure,\n isUserRejectedRequest,\n isWrongNetwork,\n assertCorrectNetwork,\n WrongNetworkError,\n} from \"./utils/wallet-error.js\";\nexport {\n describeError,\n UserFacingError,\n NOT_SUBMITTED,\n GENERIC,\n NETWORK_BUSY,\n CONNECTION_FAILED,\n} from \"./utils/describe-error.js\";\nexport type { ErrorNotice } from \"./utils/describe-error.js\";\n\nexport { IP_TYPE_DATA, IP_TYPE_DATA_MAP } from \"./data/ip-types.js\";\nexport type { IpTypeData } from \"./data/ip-types.js\";\nexport {\n IP_TYPES, LICENSE_TYPES, GEOGRAPHIC_SCOPES, AI_POLICIES,\n DERIVATIVES_OPTIONS, LICENSE_TRAIT_TYPES,\n} from \"./data/ip.js\";\nexport type { IPType, LicenseType } from \"./data/ip.js\";\nexport {\n IP_TEMPLATES, EMBED_PLATFORM_META, SOCIAL_PLATFORM_META, TEMPLATE_TRAIT_TYPES, DOC_UPLOAD,\n} from \"./data/ip-templates.js\";\nexport type { EmbedPlatform, SocialPlatform, TraitSuggestion, IPTemplate, DocUploadConfig } from \"./data/ip-templates.js\";\nexport { IPTypeDisplay } from \"./components/ip-type-display.js\";\nexport { AssetOverviewContent } from \"./components/asset-overview-content.js\";\nexport { AssetLicenseSummary } from \"./components/asset-license-summary.js\";\nexport { AssetMarketsTab } from \"./components/asset-markets-tab.js\";\nexport { ParentAttributionBanner } from \"./components/parent-attribution-banner.js\";\nexport type { ParentBannerProps } from \"./components/parent-attribution-banner.js\";\nexport { AssetMediaColumn, AssetHeaderBlock, AssetOwnerRow } from \"./components/asset-top-sections.js\";\nexport { ExpandableText } from \"./components/expandable-text.js\";\nexport { CollectionHeader, type CollectionHeaderProps } from \"./components/collection-header.js\";\nexport { CreatorHeader, type CreatorHeaderProps, type CreatorHeaderStat } from \"./components/creator-header.js\";\nexport { AssetPage, AssetPageSkeleton, detectAssetKind, type AssetPageProps, type AssetPageSlots, type AssetKind, type AssetMarketContext, type AssetMarketActions } from \"./components/asset-page.js\";\nexport { AssetCommentsDialog, type AssetCommentsDialogProps, type AssetCommentsProps } from \"./components/asset-comments-dialog.js\";\nexport { CollectionPage, canTransferCollectionOwnership, type CollectionPageProps, type CollectionPageSlots, type CollectionMarketActions } from \"./components/collection-page.js\";\nexport { CollectionFiltersDialog, type CollectionFiltersDialogProps } from \"./components/collection-filters-dialog.js\";\nexport { GatedContentHero, GatedContentPanel, type GatedContent, type GatedContentState } from \"./components/gated-content.js\";\nexport { MakeOfferPicker } from \"./components/make-offer-picker.js\";\nexport { ListingCardMenu } from \"./components/listing-card-menu.js\";\nexport { FloatingCommentsButton } from \"./components/floating-comments-button.js\";\nexport { PageBackdrop } from \"./components/media-header.js\";\nexport { useComments, type UseCommentsResult } from \"./utils/use-comments.js\";\nexport { useFullTokenData } from \"./utils/use-full-token-data.js\";\nexport { useAssetMarketState, type AssetMarketState } from \"./utils/asset-market-state.js\";\nexport { assetAttributes, type AssetAttribute } from \"./utils/asset-attributes.js\";\nexport type { AssetOwnerRowProps } from \"./components/asset-top-sections.js\";\nexport { AssetCollectionBar } from \"./components/asset-collection-bar.js\";\nexport type { AssetCollectionBarProps, AssetCollectionBarSibling } from \"./components/asset-collection-bar.js\";\nexport { AssetUtilityIcons } from \"./components/asset-utility-icons.js\";\nexport type { AssetUtilityIconsProps } from \"./components/asset-utility-icons.js\";\nexport { AssetMarketplacePanel } from \"./components/asset-marketplace-panel.js\";\nexport type { AssetMarketplacePanelProps, ApiOrderLike } from \"./components/asset-marketplace-panel.js\";\nexport { BRAND } from \"./data/brand.js\";\nexport { LIVING_RENDER_COLLECTIONS, isLivingRenderCollection } from \"./data/living-render-collections.js\";\n\nexport { CurrencyIcon, CurrencyAmount } from \"./components/currency-icon.js\";\nexport type { CurrencyIconProps, CurrencyAmountProps } from \"./components/currency-icon.js\";\n\nexport { IpTypeBadge, IP_TYPE_CONFIG, IP_TYPE_MAP } from \"./components/ip-type-badge.js\";\nexport type { IpTypeBadgeProps, IpTypeConfig } from \"./components/ip-type-badge.js\";\n\nexport { AddressDisplay } from \"./components/address-display.js\";\nexport type { AddressDisplayProps } from \"./components/address-display.js\";\n\nexport { MedialaneLogoFull } from \"./components/brand-logo.js\";\nexport type { MedialaneLogoFullProps } from \"./components/brand-logo.js\";\n\nexport { MotionCard, FadeIn, Stagger, StaggerItem, KineticWords, SPRING, EASE_OUT } from \"./components/motion-primitives.js\";\nexport { PageContainer } from \"./components/page-container.js\";\nexport type { PageContainerProps } from \"./components/page-container.js\";\nexport { ScrollSection } from \"./components/scroll-section.js\";\nexport type { ScrollSectionProps } from \"./components/scroll-section.js\";\nexport { ShareButton } from \"./components/share-button.js\";\nexport type { ShareButtonProps } from \"./components/share-button.js\";\nexport { CollectionCard, CollectionCardSkeleton } from \"./components/collection-card.js\";\nexport type { CollectionCardProps } from \"./components/collection-card.js\";\nexport { TokenCard, TokenCardSkeleton } from \"./components/token-card.js\";\nexport type { TokenCardProps } from \"./components/token-card.js\";\nexport { AnimatedTokenMedia } from \"./components/animated-token-media.js\";\nexport type { AnimatedTokenMediaProps } from \"./components/animated-token-media.js\";\nexport { ThemeAmbientBackground } from \"./components/theme-ambient-background.js\";\nexport {\n useCollectionFilters, SORT_OPTIONS, CollectionFiltersTrigger, CollectionFiltersBody,\n} from \"./components/collection-filters.js\";\nexport type { TraitSection, CollectionFiltersTriggerProps, CollectionFiltersBodyProps } from \"./components/collection-filters.js\";\nexport {\n DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem,\n DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel,\n DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup,\n DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent,\n DropdownMenuSubTrigger, DropdownMenuRadioGroup,\n} from \"./components/dropdown-menu.js\";\nexport { AssetCard, AssetCardSkeleton } from \"./components/asset-card.js\";\nexport type { AssetCardProps, AssetCardPrice } from \"./components/asset-card.js\";\nexport { AssetPicker } from \"./components/asset-picker.js\";\nexport type { AssetPickerProps, OwnedAsset } from \"./components/asset-picker.js\";\nexport { AssetSearchPicker } from \"./components/asset-search-picker.js\";\nexport type { AssetSearchPickerProps } from \"./components/asset-search-picker.js\";\nexport { LicenseTermsBuilder, EMPTY_SPONSORSHIP_TERMS, MEDIA_TYPES, DURATION_UNITS, toLicenseMetadata, toDurationDays } from \"./components/license-terms-builder.js\";\nexport type { LicenseTermsBuilderProps, SponsorshipTerms, DurationUnit } from \"./components/license-terms-builder.js\";\n\nexport {\n coinKind, coinKindLabel, coinKindLabelPlural, COIN_KINDS, coinAccentToken, coinServiceIds, isCoinService, formatCoinPrice, coinSupply, formatFdvUsd, fdvUsd,\n type CoinKind, type CoinCollectionLike, type CoinPriceLike,\n} from \"./data/coins.js\";\nexport { CoinGuarantees, type CoinGuaranteesProps, type CoinGuaranteesData } from \"./components/coin-guarantees.js\";\nexport { CoinRow, CoinRowSkeleton, CoinAvatar, COIN_GRID, type UseCoinPrice, type CoinRowProps, type CoinMarketStatus } from \"./components/coin-row.js\";\nexport { orderCoins, type CoinPriceSort } from \"./data/coin-order.js\";\nexport {\n CoinsExplorer,\n type CoinsExplorerProps, type CoinFilter, type CoinSort, type UseCoins, type UsePriceMap, type CoinCounts,\n} from \"./components/coins-explorer.js\";\n\nexport { timeAgo, timeUntil, isExpired } from \"./utils/time.js\";\nexport { toDisplayUrl, toDisplayUrlOrNull, toAbsoluteImageUrl, type DisplayUrlOptions } from \"./utils/ipfs.js\";\nexport { isSameAddress } from \"./utils/same-address.js\";\nexport { createAppWallet } from \"./utils/app-wallet.js\";\nexport type { AppWalletConfig } from \"./utils/app-wallet.js\";\nexport { detectPasskeySupport } from \"./utils/passkey-support.js\";\nexport type { PasskeySupport } from \"./utils/passkey-support.js\";\nexport { describeWalletFailure, isPasskeyCancelled, passkeyUnsupportedReason } from \"./utils/wallet-failure.js\";\nexport type { PasskeyUnsupportedReason, WalletFailureKind, WalletFailureNotice } from \"./utils/wallet-failure.js\";\nexport {\n RESEND_COOLDOWN_SECONDS,\n canResendCode,\n canVerifyCode,\n emailCodeReducer,\n initialEmailCodeState,\n} from \"./utils/email-code.js\";\nexport type { EmailCodeAction, EmailCodeState, EmailCodeStatus } from \"./utils/email-code.js\";\nexport { useEmailCode } from \"./utils/use-email-code.js\";\nexport type { EmailCode, EmailCodeApi } from \"./utils/use-email-code.js\";\nexport { AccountSection } from \"./components/account/account-section.js\";\nexport type { AccountSectionProps } from \"./components/account/account-section.js\";\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from \"./components/account/input-otp.js\";\nexport { EmailCodeEntry } from \"./components/account/email-code-entry.js\";\nexport type { EmailCodeEntryProps } from \"./components/account/email-code-entry.js\";\nexport { DevicesSection } from \"./components/account/devices-section.js\";\nexport type { DevicesSectionProps } from \"./components/account/devices-section.js\";\nexport { DeviceApprovalDialog } from \"./components/account/device-approval-dialog.js\";\nexport type { DeviceApprovalDialogProps } from \"./components/account/device-approval-dialog.js\";\nexport { GuardianRecoverySection } from \"./components/account/guardian-recovery-section.js\";\nexport type { GuardianRecoverySectionProps } from \"./components/account/guardian-recovery-section.js\";\nexport { AddGuardianDialog } from \"./components/account/add-guardian-dialog.js\";\nexport type { AddGuardianDialogProps } from \"./components/account/add-guardian-dialog.js\";\nexport type { DeviceWallet, GuardianWallet, LoadSealedOwner } from \"./components/account/wallet-types.js\";\nexport { ACTIVITY_TYPE_CONFIG, TYPE_FILTERS } from \"./data/activity.js\";\nexport type { ActivityTypeConfig } from \"./data/activity.js\";\nexport { HeroSlider, HeroSliderSkeleton } from \"./components/hero-slider.js\";\nexport type { HeroSliderProps } from \"./components/hero-slider.js\";\nexport { ActivityTicker } from \"./components/activity-ticker.js\";\nexport type { ActivityTickerProps } from \"./components/activity-ticker.js\";\nexport { ListingCard, ListingCardSkeleton } from \"./components/listing-card.js\";\nexport type { ListingCardProps } from \"./components/listing-card.js\";\nexport {\n MarketplaceTxLink,\n MarketplaceProcessingState,\n MarketplaceSignInGate,\n MarketplaceSuccessState,\n MarketplaceErrorState,\n MarketplaceDialogHero,\n CurrencyPicker,\n DurationPicker,\n MarketplaceConfirmStep,\n} from \"./components/marketplace-dialog-primitives.js\";\nexport { ActivityRow } from \"./components/activity-row.js\";\nexport { ActivityTimelineRow } from \"./components/activity-timeline-row.js\";\nexport type { ActivityTimelineRowProps } from \"./components/activity-timeline-row.js\";\nexport { DropItemList } from \"./components/drop-item-list.js\";\nexport type { DraftItem } from \"./components/drop-item-list.js\";\nexport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"./utils/launchpad-defaults.js\";\nexport { DropStatusBadge, DropSupplyProgress } from \"./components/drop/drop-status.js\";\nexport { DropCard, DropGrid, DropGridSkeleton } from \"./components/drop/drop-card.js\";\nexport { DropListing } from \"./components/drop/drop-listing.js\";\nexport { DropFeatures } from \"./components/drop/drop-features.js\";\nexport { MyDrops } from \"./components/drop/my-drops.js\";\nexport { DropTokenLink } from \"./components/drop/drop-token-link.js\";\nexport type { DropPhase } from \"./utils/drop/view.js\";\nexport { DropCreate, DraftSummary } from \"./components/drop/create/drop-create.js\";\nexport { ExclusiveFields } from \"./components/drop/create/exclusive-fields.js\";\nexport { DropPage } from \"./components/drop/page/drop-page.js\";\nexport { DropActionBox } from \"./components/drop/page/drop-action-box.js\";\nexport { DropActivityList } from \"./components/drop/page/drop-activity.js\";\nexport { claimProofFor } from \"./utils/drop/claim-proof.js\";\nexport type { DropSigner } from \"./utils/drop/types.js\";\nexport { MedialaneAppProvider, useMedialaneApp, type MedialaneApp, type CompanionApp, type AssetRef, type ReportTarget, type ReportDialogSlot } from \"./components/medialane-app.js\";\nexport { runIntentCalls } from \"./utils/run-intent-calls.js\";\nexport { GATED_CONTENT_TYPES, GATED_CONTENT_TYPE_FALLBACK } from \"./data/gated-content-types.js\";\nexport type { ContentTypeConfig } from \"./data/gated-content-types.js\";\nexport { CollapsibleSection } from \"./components/collapsible-section.js\";\nexport { useUsdPrices, usdPriceFor } from \"./utils/use-usd-prices.js\";\nexport type { UsdPrices } from \"./utils/use-usd-prices.js\";\nexport { NotificationRow } from \"./components/notification-row.js\";\nexport type { NotificationRowProps } from \"./components/notification-row.js\";\nexport { NOTIFICATION_ICON, NOTIFICATION_COLOR, NOTIFICATION_LABEL } from \"./data/notification-meta.js\";\nexport type { ActivityRowProps } from \"./components/activity-row.js\";\nexport { ActivityFeedShell } from \"./components/activity-feed-shell.js\";\nexport type { ActivityFeedShellProps } from \"./components/activity-feed-shell.js\";\nexport { CtaCardGrid } from \"./components/cta-card-grid.js\";\nexport type { CtaCardGridProps, CtaCardItem } from \"./components/cta-card-grid.js\";\n\nexport { DiscoverHero } from \"./components/discover-hero.js\";\nexport type { DiscoverHeroProps } from \"./components/discover-hero.js\";\nexport { FeaturedCarousel, FeaturedCarouselSkeleton } from \"./components/featured-carousel.js\";\nexport type { FeaturedCarouselProps } from \"./components/featured-carousel.js\";\nexport { DiscoverCollectionsStrip } from \"./components/discover-collections-strip.js\";\nexport type { DiscoverCollectionsStripProps } from \"./components/discover-collections-strip.js\";\nexport { DiscoverCreatorsStrip } from \"./components/discover-creators-strip.js\";\nexport type { DiscoverCreatorsStripProps } from \"./components/discover-creators-strip.js\";\nexport { DiscoverFeedSection, DiscoverActivityStrip } from \"./components/discover-feed-section.js\";\nexport type { DiscoverFeedSectionProps, DiscoverActivityStripProps } from \"./components/discover-feed-section.js\";\nexport { ActivityCard, ActivityCardSkeleton, ACTIVITY_MESSAGES } from \"./components/activity-card.js\";\nexport type { ActivityCardProps } from \"./components/activity-card.js\";\n\nexport { LaunchpadGroupedSections, LaunchpadServiceCard, SERVICE_HUES, useLaunchpadFilter } from \"./components/launchpad-services.js\";\nexport { LaunchpadFilterBar } from \"./components/launchpad-filter-bar.js\";\nexport type { LaunchpadFilterBarProps } from \"./components/launchpad-filter-bar.js\";\nexport { LaunchpadStrip } from \"./components/launchpad-strip.js\";\nexport type { LaunchpadStripProps } from \"./components/launchpad-strip.js\";\nexport { LaunchpadCtaBanner } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadCtaBannerProps } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadGroupedSectionsProps, LaunchpadServiceCardProps, ServiceOverride, ServiceOverrides } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_ROUTE_OVERRIDES } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS } from \"./data/launchpad-services.js\";\nexport type { ServiceDefinition, ServiceStatus, ServiceGroup, ServiceGroupDefinition } from \"./data/launchpad-services.js\";\n\nexport { NavCommandMenu, useNavCommandMenu, relevanceFilter } from \"./components/nav-command-menu.js\";\nexport type { NavCommand, NavCommandGroup, NavCommandMenuProps } from \"./components/nav-command-menu.js\";\n\nexport {\n NavBrandButton,\n NavIconButton,\n NavWalletTrigger,\n NavAccountSheet,\n useNavAccountSheet,\n} from \"./components/nav-shell.js\";\nexport type {\n NavBrandButtonProps,\n NavIconButtonProps,\n NavWalletTriggerProps,\n NavAccountSheetProps,\n} from \"./components/nav-shell.js\";\n\nexport { PortfolioHeader } from \"./components/portfolio-header.js\";\nexport type {\n PortfolioHeaderProps,\n PortfolioHeaderScore,\n} from \"./components/portfolio-header.js\";\nexport { derivePortfolioCounts } from \"./utils/portfolio-counts.js\";\nexport type { PortfolioCounts, CountableOrder } from \"./utils/portfolio-counts.js\";\nexport { PortfolioSection } from \"./components/portfolio-section.js\";\nexport type {\n PortfolioSectionProps,\n PortfolioSectionColor,\n} from \"./components/portfolio-section.js\";\nexport { PortfolioChipFilter } from \"./components/portfolio-chip-filter.js\";\nexport type {\n PortfolioChipFilterProps,\n PortfolioChipFilterOption,\n} from \"./components/portfolio-chip-filter.js\";\n\nexport { ServiceHeader } from \"./components/service-header.js\";\nexport type { ServiceHeaderProps } from \"./components/service-header.js\";\nexport { ClaimRail } from \"./components/claim-rail.js\";\nexport type { ClaimRailProps } from \"./components/claim-rail.js\";\n\nexport { ServiceFormShell } from \"./components/service-form-shell.js\";\nexport type { ServiceFormShellProps } from \"./components/service-form-shell.js\";\nexport { StepNav } from \"./components/step-nav.js\";\nexport type { StepNavProps, StepNavStep } from \"./components/step-nav.js\";\n\nexport { LevelBadge } from \"./components/rewards/level-badge.js\";\nexport type { LevelBadgeProps } from \"./components/rewards/level-badge.js\";\nexport { XpProgress } from \"./components/rewards/xp-progress.js\";\nexport type { XpProgressProps } from \"./components/rewards/xp-progress.js\";\nexport { BadgeShelf } from \"./components/rewards/badge-shelf.js\";\nexport type { BadgeShelfProps, BadgeShelfBadge } from \"./components/rewards/badge-shelf.js\";\nexport { ScoreSummaryCard } from \"./components/rewards/score-summary-card.js\";\nexport type { ScoreSummaryCardProps } from \"./components/rewards/score-summary-card.js\";\nexport { LeaderboardTable, LeaderboardWidget } from \"./components/rewards/leaderboard-table.js\";\nexport type { LeaderboardTableProps, LeaderboardWidgetProps, LeaderboardEntryLike } from \"./components/rewards/leaderboard-table.js\";\nexport { LevelJourneyList } from \"./components/rewards/level-journey-list.js\";\nexport type { LevelJourneyListProps, LevelJourneyListLevel } from \"./components/rewards/level-journey-list.js\";\nexport { BadgeCatalog } from \"./components/rewards/badge-catalog.js\";\nexport type { BadgeCatalogProps, BadgeCatalogBadge } from \"./components/rewards/badge-catalog.js\";\nexport { XpEarned } from \"./components/rewards/xp-earned.js\";\nexport type { XpEarnedProps } from \"./components/rewards/xp-earned.js\";\nexport { createRewardEarned } from \"./components/rewards/reward-earned.js\";\nexport type { RewardEarnedProps, RewardSnapshot } from \"./components/rewards/reward-earned.js\";\n\nexport { LoadMoreSentinel } from \"./components/load-more-sentinel.js\";\nexport { ActivitiesFeed } from \"./components/activities-feed.js\";\nexport type { LoadMoreSentinelProps } from \"./components/load-more-sentinel.js\";\n\nexport { RewardsSection } from \"./components/rewards-section.js\";\nexport type { RewardsSectionProps } from \"./components/rewards-section.js\";\n\nexport { ActionButton } from \"./components/action-button.js\";\nexport type { ActionButtonProps, ActionKey, ToneKey } from \"./components/action-button.js\";\nexport { GradientButton } from \"./components/gradient-button.js\";\nexport type { GradientButtonProps } from \"./components/gradient-button.js\";\n\nexport { CoinLaunchPreview } from \"./components/coin-launch-preview.js\";\nexport type { CoinPreviewData } from \"./components/coin-launch-preview.js\";\nexport { MedialaneCollectionCard } from \"./components/medialane-collection-card.js\";\nexport type { MedialaneCollectionCardProps } from \"./components/medialane-collection-card.js\";\nexport { TokenGlyph, TokenAmount } from \"./components/token-glyph.js\";\nexport type { TokenGlyphProps, TokenAmountProps, TokenSymbol } from \"./components/token-glyph.js\";\n\nexport { StatTile, StatPill, StatPillRow } from \"./components/stat-tile.js\";\nexport type { StatTileProps, StatPillProps, StatPillRowItem } from \"./components/stat-tile.js\";\n\nexport { ActionDialog } from \"./components/action-dialog.js\";\nexport type { ActionDialogProps } from \"./components/action-dialog.js\";\n\nexport { HiddenContentBanner } from \"./components/hidden-content-banner.js\";\n\nexport { useRewardsCelebrations } from \"./components/rewards/use-rewards-celebrations.js\";\nexport { LevelUpCelebration } from \"./components/rewards/level-up-celebration.js\";\nexport type { LevelUpCelebrationProps } from \"./components/rewards/level-up-celebration.js\";\nexport { BadgeUnlocked } from \"./components/rewards/badge-unlocked.js\";\nexport type { BadgeUnlockedProps } from \"./components/rewards/badge-unlocked.js\";\nexport { JourneyPath } from \"./components/rewards/journey-path.js\";\nexport type { JourneyPathProps, JourneyStep } from \"./components/rewards/journey-path.js\";\n\nexport { Skeleton } from \"./components/skeleton.js\";\nexport { Badge, badgeVariants } from \"./components/badge.js\";\nexport type { BadgeProps } from \"./components/badge.js\";\nexport { Label } from \"./components/label.js\";\nexport { Input } from \"./components/input.js\";\nexport { Switch } from \"./components/switch.js\";\nexport { Checkbox } from \"./components/checkbox.js\";\nexport { Alert, AlertTitle, AlertDescription } from \"./components/alert.js\";\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from \"./components/tabs.js\";\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from \"./components/card.js\";\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from \"./components/collapsible.js\";\nexport { Button, buttonVariants } from \"./components/button.js\";\nexport type { ButtonProps } from \"./components/button.js\";\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from \"./components/popover.js\";\nexport { HelpIcon } from \"./components/help-icon.js\";\nexport { EmptyOrError } from \"./components/empty-or-error.js\";\nexport { TabEmptyState } from \"./components/tab-empty-state.js\";\nexport type { TabEmptyStateProps } from \"./components/tab-empty-state.js\";\nexport {\n Select, SelectGroup, SelectValue, SelectTrigger, SelectContent,\n SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton,\n} from \"./components/select.js\";\nexport {\n useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField,\n} from \"./components/form.js\";\nexport { Textarea } from \"./components/textarea.js\";\nexport type { TextareaProps } from \"./components/textarea.js\";\nexport {\n Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent,\n SheetHeader, SheetFooter, SheetTitle, SheetDescription,\n} from \"./components/sheet.js\";\n\nexport { ToggleGroup, Section } from \"./components/create-form-primitives.js\";\nexport { OrderSortControl, sortOrders } from \"./components/order-sort-control.js\";\nexport type { OrderSort } from \"./components/order-sort-control.js\";\nexport { AssetLightbox } from \"./components/asset-lightbox.js\";\nexport type { AssetLightboxProps } from \"./components/asset-lightbox.js\";\nexport { PriceHistoryChart } from \"./components/price-history-chart.js\";\nexport type { PriceHistoryChartProps } from \"./components/price-history-chart.js\";\nexport { NavThemeToggle } from \"./components/nav-theme-toggle.js\";\nexport { JsonLd } from \"./components/json-ld.js\";\nexport type { JsonLdProps } from \"./components/json-ld.js\";\nexport { CreationRecord } from \"./components/creation-record.js\";\nexport type { CreationRecordProps } from \"./components/creation-record.js\";\nexport { ClubOwnerActions } from \"./components/club-owner-actions.js\";\nexport type { ClubOwnerActionsProps } from \"./components/club-owner-actions.js\";\nexport { IPTypeFields } from \"./components/ip-type-fields.js\";\nexport type { IPTypeFieldsProps, MetadataField } from \"./components/ip-type-fields.js\";\n\nexport { FastMint } from \"./components/fast-mint/fast-mint.js\";\nexport { Dropzone } from \"./components/fast-mint/dropzone.js\";\nexport type { DropzoneProps } from \"./components/fast-mint/dropzone.js\";\nexport { SuccessView } from \"./components/fast-mint/success-view.js\";\nexport type { SuccessViewProps } from \"./components/fast-mint/success-view.js\";\nexport type {\n MediaKind, FastMintSigner, MintedAsset, FastMintProps,\n} from \"./components/fast-mint/types.js\";\nexport { readBodyWithCap } from \"./utils/proxy-body.js\";\nexport type { CappedBody } from \"./utils/proxy-body.js\";\nexport {\n formatActivity, formatOrderNotification, formatOfferAcceptedNotification, formatAssetReceivedNotification,\n} from \"./utils/format-activity.js\";\nexport type { FormattedEvent } from \"./utils/format-activity.js\";\n\nexport { queryKeys, queryKeyPrefix, QUERY_PREFIX } from \"./utils/query-keys.js\";\nexport { useCollectionProfile, useCreatorProfile } from \"./utils/use-profiles.js\";\nexport { useActivities, useActivitiesByAddress } from \"./utils/use-activities.js\";\nexport {\n useCollections, useCollection, useCollectionsByOwner, useCollectionTokens, useNearbyCollectionTokens,\n} from \"./utils/use-collections.js\";\nexport type { CollectionSort } from \"./utils/use-collections.js\";\nexport { CreatorChip } from \"./components/creator-chip.js\";\nexport type { CreatorChipProps } from \"./components/creator-chip.js\";\nexport { CollectionActivityTab } from \"./components/collection-activity-tab.js\";\nexport type { CollectionActivityTabProps } from \"./components/collection-activity-tab.js\";\nexport { CollectionTraitsTab } from \"./components/collection-traits-tab.js\";\nexport type { CollectionTraitsTabProps } from \"./components/collection-traits-tab.js\";\nexport { PortfolioActivity } from \"./components/portfolio-activity.js\";\nexport type { PortfolioActivityProps } from \"./components/portfolio-activity.js\";\nexport { CreatorScoreInline } from \"./components/creator-score-inline.js\";\nexport type { CreatorScoreInlineProps } from \"./components/creator-score-inline.js\";\n\nexport { useMedialaneClient } from \"./utils/use-medialane-client.js\";\n\nexport { MediaWalletOverlay, useMediaWallet } from \"./components/media-wallet/media-wallet-overlay.js\";\nexport type {\n MediaWalletAppProps,\n MediaWalletHeaderIdentity,\n MediaWalletSession,\n MediaWalletView,\n WalletWriteAction,\n WalletWriteStatus,\n} from \"./components/media-wallet/types.js\";\nexport { useCreators } from \"./utils/use-creators.js\";\nexport {\n useRewards, useLeaderboard, useRewardsEvents, useRewardsConfig, useRewardsBatch,\n} from \"./utils/use-rewards.js\";\nexport type { UserRewards, LeaderboardEntry, BadgeSummary, LevelSummary } from \"./utils/use-rewards.js\";\n\nexport {\n useOrders, useOrder, useTokenListings, useUserOrders, useCounterOffers,\n useReceivedOffers, useCollectionFloorListings,\n} from \"./utils/use-orders.js\";\nexport { useNotifications } from \"./utils/use-notifications.js\";\nexport type { Notification, NotificationType, NotificationPriority, Announcement } from \"./data/notification.js\";\nexport { useTokenRemixes } from \"./utils/use-remix-offers.js\";\nexport { RemixesTab } from \"./components/remixes-tab.js\";\nexport type { RemixesTabProps } from \"./components/remixes-tab.js\";\n\nexport { OwnerSetupPanel } from \"./components/owner-setup-panel.js\";\nexport { DropCountdown } from \"./components/drop-countdown.js\";\nexport { CreatorAnalytics } from \"./components/creator-analytics.js\";\nexport {\n Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger,\n DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription,\n} from \"./components/dialog.js\";\nexport { SelfFundConsentDialog, feeLabelFor } from \"./components/wallet/self-fund-consent-dialog.js\";\nexport { ExportKeySection, type ExportKeySectionProps } from \"./components/wallet/export-key-section.js\";\nexport { useDrops, useMyDrops, useDrop, useDropMints, useDropFee, useDropFile, useDropChain } from \"./utils/use-drops.js\";\nexport type { DropChainState } from \"./utils/use-drops.js\";\nexport { usePopCollections, useMyPopEvents, usePopClaimStatus } from \"./utils/use-pop.js\";\nexport { usePlatformStats } from \"./utils/use-platform-stats.js\";\nexport { useTokensByIpType } from \"./utils/use-tokens-by-ip-type.js\";\nexport { usePriceMap, useCoinPrice } from \"./utils/use-coin-price.js\";\nexport {\n useSponsorshipOffers, useSponsorshipOffer, useSponsorshipBids, useSponsorshipProposals,\n useSponsorshipProposal, usePendingProposalsForAsset, useSponsorshipLicenses, useMySponsorshipDealCounts,\n} from \"./utils/use-sponsorship.js\";\nexport {\n predictNextMembershipId, predictNextTicketId, useMyClubCollections, useMyTicketCollections,\n useMembershipList, useTicketList, useMembershipOnchain, useTicketOnchain, useIsMemberOf,\n type TierOnchain, type TierListItem,\n} from \"./utils/use-tiers.js\";\nexport { collectSitemapData, type SitemapData, type SitemapLimits } from \"./utils/sitemap-data.js\";\nexport { useToken, useTokenBalance, useTokenHistory, useTokensByOwner, useTokenOwners } from \"./utils/use-tokens.js\";\nexport { checkIsOwner } from \"./utils/ownership.js\";\nexport { AssetOwnersPanel } from \"./components/asset-owners-panel.js\";\nexport { AssetUnavailable } from \"./components/asset-unavailable.js\";\nexport { AssetProvenanceTab } from \"./components/asset-provenance-tab.js\";\nexport { ASSET_ACCENTS, type AssetAccent, type AssetAccentName } from \"./utils/asset-accents.js\";\n"],"mappings":"AACA,SAAS,UAAU;AACnB,SAAS,oBAAoB,mBAAmB,kBAAkB,WAAW,gBAAgB,0BAA0B;AACvH,SAAS,sBAAsB;AAC/B,SAAS,uBAAyE;AAClF,SAAS,YAA+B,uBAA6B;AACrE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,6BAA6B;AACtC,SAAS,YAAY,gBAAgB;AACrC,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,cAAc,wBAAwB;AAE/C;AAAA,EACE;AAAA,EAAU;AAAA,EAAe;AAAA,EAAmB;AAAA,EAC5C;AAAA,EA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C7D,SAAS,UAAU,YAAY,SAAS,cAAc,YAAY,aAAa,oBAAoB;AAEnG,SAAS,mBAAmB,gBAAgB,yBAAyB;AACrE,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,aAAa,oBAAoB;AAC1C;AAAA,EACE;AAAA,EAAsB;AAAA,EAAqB;AAAA,EAAoB;AAAA,EAC/D;AAAA,EAAwB;AAAA,EAA6B;AAAA,EAAwB;AAAA,OACxE;AACP;AAAA,EACE;AAAA,EAAyB;AAAA,EAAqB;AAAA,EAAsB;AAAA,EACpE;AAAA,EAAmB;AAAA,EAAe;AAAA,EAAsB;AAAA,EAAkB;AAAA,OAErE;AACP,SAAS,0BAAgE;AACzE,SAAS,UAAU,iBAAiB,iBAAiB,kBAAkB,sBAAsB;AAC7F,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,qBAA6D;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var asset_attributes_exports = {};
|
|
20
|
+
__export(asset_attributes_exports, {
|
|
21
|
+
assetAttributes: () => assetAttributes
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(asset_attributes_exports);
|
|
24
|
+
var import_ip = require("../data/ip.js");
|
|
25
|
+
var import_ip_templates = require("../data/ip-templates.js");
|
|
26
|
+
function assetAttributes(raw) {
|
|
27
|
+
const attributes = Array.isArray(raw) ? raw : [];
|
|
28
|
+
const valueOf = (trait) => attributes.find((a) => a.trait_type === trait)?.value ?? null;
|
|
29
|
+
const template = import_ip_templates.IP_TEMPLATES[attributes.find((a) => a.trait_type?.toLowerCase() === "ip type")?.value ?? ""];
|
|
30
|
+
const templateKeys = template ? [
|
|
31
|
+
...(template.embeds ?? []).map((p) => import_ip_templates.EMBED_PLATFORM_META[p].traitKey),
|
|
32
|
+
...(template.socials ?? []).map((p) => import_ip_templates.SOCIAL_PLATFORM_META[p].traitKey),
|
|
33
|
+
...template.docUpload ? [template.docUpload.traitType] : []
|
|
34
|
+
] : [];
|
|
35
|
+
const hidden = /* @__PURE__ */ new Set(["IP Type", ...templateKeys]);
|
|
36
|
+
return {
|
|
37
|
+
attributes,
|
|
38
|
+
hasTemplateData: templateKeys.some((k) => attributes.some((a) => a.trait_type === k && a.value)),
|
|
39
|
+
isDisplayAttr: (a) => !import_ip.LICENSE_TRAIT_TYPES.has(a.trait_type ?? "") && !hidden.has(a.trait_type ?? ""),
|
|
40
|
+
parentContract: valueOf("Parent Contract"),
|
|
41
|
+
parentTokenId: valueOf("Parent Token ID")
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
assetAttributes
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=asset-attributes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/asset-attributes.ts"],"sourcesContent":["import { LICENSE_TRAIT_TYPES } from \"../data/ip.js\";\nimport { EMBED_PLATFORM_META, IP_TEMPLATES, SOCIAL_PLATFORM_META } from \"../data/ip-templates.js\";\nimport type { IPType } from \"../data/ip.js\";\n\nexport interface AssetAttribute {\n trait_type?: string;\n value?: string;\n}\n\nexport function assetAttributes(raw: unknown) {\n const attributes: AssetAttribute[] = Array.isArray(raw) ? (raw as AssetAttribute[]) : [];\n const valueOf = (trait: string) => attributes.find((a) => a.trait_type === trait)?.value ?? null;\n\n const template = IP_TEMPLATES[(attributes.find((a) => a.trait_type?.toLowerCase() === \"ip type\")?.value ?? \"\") as IPType];\n const templateKeys = template\n ? [\n ...(template.embeds ?? []).map((p) => EMBED_PLATFORM_META[p].traitKey),\n ...(template.socials ?? []).map((p) => SOCIAL_PLATFORM_META[p].traitKey),\n ...(template.docUpload ? [template.docUpload.traitType] : []),\n ]\n : [];\n const hidden = new Set<string>([\"IP Type\", ...templateKeys]);\n\n return {\n attributes,\n hasTemplateData: templateKeys.some((k) => attributes.some((a) => a.trait_type === k && a.value)),\n isDisplayAttr: (a: AssetAttribute) => !LICENSE_TRAIT_TYPES.has(a.trait_type ?? \"\") && !hidden.has(a.trait_type ?? \"\"),\n parentContract: valueOf(\"Parent Contract\"),\n parentTokenId: valueOf(\"Parent Token ID\"),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAoC;AACpC,0BAAwE;AAQjE,SAAS,gBAAgB,KAAc;AAC5C,QAAM,aAA+B,MAAM,QAAQ,GAAG,IAAK,MAA2B,CAAC;AACvF,QAAM,UAAU,CAAC,UAAkB,WAAW,KAAK,CAAC,MAAM,EAAE,eAAe,KAAK,GAAG,SAAS;AAE5F,QAAM,WAAW,iCAAc,WAAW,KAAK,CAAC,MAAM,EAAE,YAAY,YAAY,MAAM,SAAS,GAAG,SAAS,EAAa;AACxH,QAAM,eAAe,WACjB;AAAA,IACE,IAAI,SAAS,UAAU,CAAC,GAAG,IAAI,CAAC,MAAM,wCAAoB,CAAC,EAAE,QAAQ;AAAA,IACrE,IAAI,SAAS,WAAW,CAAC,GAAG,IAAI,CAAC,MAAM,yCAAqB,CAAC,EAAE,QAAQ;AAAA,IACvE,GAAI,SAAS,YAAY,CAAC,SAAS,UAAU,SAAS,IAAI,CAAC;AAAA,EAC7D,IACA,CAAC;AACL,QAAM,SAAS,oBAAI,IAAY,CAAC,WAAW,GAAG,YAAY,CAAC;AAE3D,SAAO;AAAA,IACL;AAAA,IACA,iBAAiB,aAAa,KAAK,CAAC,MAAM,WAAW,KAAK,CAAC,MAAM,EAAE,eAAe,KAAK,EAAE,KAAK,CAAC;AAAA,IAC/F,eAAe,CAAC,MAAsB,CAAC,8BAAoB,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,IAAI,EAAE,cAAc,EAAE;AAAA,IACpH,gBAAgB,QAAQ,iBAAiB;AAAA,IACzC,eAAe,QAAQ,iBAAiB;AAAA,EAC1C;AACF;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface AssetAttribute {
|
|
2
|
+
trait_type?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function assetAttributes(raw: unknown): {
|
|
6
|
+
attributes: AssetAttribute[];
|
|
7
|
+
hasTemplateData: boolean;
|
|
8
|
+
isDisplayAttr: (a: AssetAttribute) => boolean;
|
|
9
|
+
parentContract: string | null;
|
|
10
|
+
parentTokenId: string | null;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { type AssetAttribute, assetAttributes };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface AssetAttribute {
|
|
2
|
+
trait_type?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function assetAttributes(raw: unknown): {
|
|
6
|
+
attributes: AssetAttribute[];
|
|
7
|
+
hasTemplateData: boolean;
|
|
8
|
+
isDisplayAttr: (a: AssetAttribute) => boolean;
|
|
9
|
+
parentContract: string | null;
|
|
10
|
+
parentTokenId: string | null;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { type AssetAttribute, assetAttributes };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LICENSE_TRAIT_TYPES } from "../data/ip.js";
|
|
2
|
+
import { EMBED_PLATFORM_META, IP_TEMPLATES, SOCIAL_PLATFORM_META } from "../data/ip-templates.js";
|
|
3
|
+
function assetAttributes(raw) {
|
|
4
|
+
const attributes = Array.isArray(raw) ? raw : [];
|
|
5
|
+
const valueOf = (trait) => attributes.find((a) => a.trait_type === trait)?.value ?? null;
|
|
6
|
+
const template = IP_TEMPLATES[attributes.find((a) => a.trait_type?.toLowerCase() === "ip type")?.value ?? ""];
|
|
7
|
+
const templateKeys = template ? [
|
|
8
|
+
...(template.embeds ?? []).map((p) => EMBED_PLATFORM_META[p].traitKey),
|
|
9
|
+
...(template.socials ?? []).map((p) => SOCIAL_PLATFORM_META[p].traitKey),
|
|
10
|
+
...template.docUpload ? [template.docUpload.traitType] : []
|
|
11
|
+
] : [];
|
|
12
|
+
const hidden = /* @__PURE__ */ new Set(["IP Type", ...templateKeys]);
|
|
13
|
+
return {
|
|
14
|
+
attributes,
|
|
15
|
+
hasTemplateData: templateKeys.some((k) => attributes.some((a) => a.trait_type === k && a.value)),
|
|
16
|
+
isDisplayAttr: (a) => !LICENSE_TRAIT_TYPES.has(a.trait_type ?? "") && !hidden.has(a.trait_type ?? ""),
|
|
17
|
+
parentContract: valueOf("Parent Contract"),
|
|
18
|
+
parentTokenId: valueOf("Parent Token ID")
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
assetAttributes
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=asset-attributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/asset-attributes.ts"],"sourcesContent":["import { LICENSE_TRAIT_TYPES } from \"../data/ip.js\";\nimport { EMBED_PLATFORM_META, IP_TEMPLATES, SOCIAL_PLATFORM_META } from \"../data/ip-templates.js\";\nimport type { IPType } from \"../data/ip.js\";\n\nexport interface AssetAttribute {\n trait_type?: string;\n value?: string;\n}\n\nexport function assetAttributes(raw: unknown) {\n const attributes: AssetAttribute[] = Array.isArray(raw) ? (raw as AssetAttribute[]) : [];\n const valueOf = (trait: string) => attributes.find((a) => a.trait_type === trait)?.value ?? null;\n\n const template = IP_TEMPLATES[(attributes.find((a) => a.trait_type?.toLowerCase() === \"ip type\")?.value ?? \"\") as IPType];\n const templateKeys = template\n ? [\n ...(template.embeds ?? []).map((p) => EMBED_PLATFORM_META[p].traitKey),\n ...(template.socials ?? []).map((p) => SOCIAL_PLATFORM_META[p].traitKey),\n ...(template.docUpload ? [template.docUpload.traitType] : []),\n ]\n : [];\n const hidden = new Set<string>([\"IP Type\", ...templateKeys]);\n\n return {\n attributes,\n hasTemplateData: templateKeys.some((k) => attributes.some((a) => a.trait_type === k && a.value)),\n isDisplayAttr: (a: AssetAttribute) => !LICENSE_TRAIT_TYPES.has(a.trait_type ?? \"\") && !hidden.has(a.trait_type ?? \"\"),\n parentContract: valueOf(\"Parent Contract\"),\n parentTokenId: valueOf(\"Parent Token ID\"),\n };\n}\n"],"mappings":"AAAA,SAAS,2BAA2B;AACpC,SAAS,qBAAqB,cAAc,4BAA4B;AAQjE,SAAS,gBAAgB,KAAc;AAC5C,QAAM,aAA+B,MAAM,QAAQ,GAAG,IAAK,MAA2B,CAAC;AACvF,QAAM,UAAU,CAAC,UAAkB,WAAW,KAAK,CAAC,MAAM,EAAE,eAAe,KAAK,GAAG,SAAS;AAE5F,QAAM,WAAW,aAAc,WAAW,KAAK,CAAC,MAAM,EAAE,YAAY,YAAY,MAAM,SAAS,GAAG,SAAS,EAAa;AACxH,QAAM,eAAe,WACjB;AAAA,IACE,IAAI,SAAS,UAAU,CAAC,GAAG,IAAI,CAAC,MAAM,oBAAoB,CAAC,EAAE,QAAQ;AAAA,IACrE,IAAI,SAAS,WAAW,CAAC,GAAG,IAAI,CAAC,MAAM,qBAAqB,CAAC,EAAE,QAAQ;AAAA,IACvE,GAAI,SAAS,YAAY,CAAC,SAAS,UAAU,SAAS,IAAI,CAAC;AAAA,EAC7D,IACA,CAAC;AACL,QAAM,SAAS,oBAAI,IAAY,CAAC,WAAW,GAAG,YAAY,CAAC;AAE3D,SAAO;AAAA,IACL;AAAA,IACA,iBAAiB,aAAa,KAAK,CAAC,MAAM,WAAW,KAAK,CAAC,MAAM,EAAE,eAAe,KAAK,EAAE,KAAK,CAAC;AAAA,IAC/F,eAAe,CAAC,MAAsB,CAAC,oBAAoB,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,IAAI,EAAE,cAAc,EAAE;AAAA,IACpH,gBAAgB,QAAQ,iBAAiB;AAAA,IACzC,eAAe,QAAQ,iBAAiB;AAAA,EAC1C;AACF;","names":[]}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var asset_market_state_exports = {};
|
|
21
|
+
__export(asset_market_state_exports, {
|
|
22
|
+
cheapestOf: () => cheapestOf,
|
|
23
|
+
formatSale: () => formatSale,
|
|
24
|
+
hasUnlistedEditions: () => hasUnlistedEditions,
|
|
25
|
+
isBid: () => isBid,
|
|
26
|
+
isSaleableListing: () => isSaleableListing,
|
|
27
|
+
latestSale: () => latestSale,
|
|
28
|
+
listedQuantityBy: () => listedQuantityBy,
|
|
29
|
+
useAssetMarketState: () => useAssetMarketState
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(asset_market_state_exports);
|
|
32
|
+
var import_sdk = require("@medialane/sdk");
|
|
33
|
+
var import_use_usd_prices = require("./use-usd-prices.js");
|
|
34
|
+
var import_format = require("./format.js");
|
|
35
|
+
var import_ownership = require("./ownership.js");
|
|
36
|
+
function isSaleableListing(order) {
|
|
37
|
+
return order.status === "ACTIVE" && (order.offer.itemType === "ERC721" || order.offer.itemType === "ERC1155");
|
|
38
|
+
}
|
|
39
|
+
function isBid(order) {
|
|
40
|
+
return order.status === "ACTIVE" && order.offer.itemType === "ERC20";
|
|
41
|
+
}
|
|
42
|
+
function cheapestOf(listings) {
|
|
43
|
+
return [...listings].sort(
|
|
44
|
+
(a, b) => BigInt(a.consideration.startAmount) < BigInt(b.consideration.startAmount) ? -1 : 1
|
|
45
|
+
)[0];
|
|
46
|
+
}
|
|
47
|
+
function latestSale(history) {
|
|
48
|
+
return history.filter((h) => h.type === "sale" && h.price?.formatted).reduce(
|
|
49
|
+
(latest, h) => !latest || h.timestamp > latest.timestamp ? h : latest,
|
|
50
|
+
null
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function formatSale(sale) {
|
|
54
|
+
if (!sale?.price) return null;
|
|
55
|
+
return `${sale.price.formatted} ${sale.price.currency ?? ""}`.trim();
|
|
56
|
+
}
|
|
57
|
+
function listedQuantityBy(listings, walletAddress) {
|
|
58
|
+
if (!walletAddress) return 0n;
|
|
59
|
+
return listings.filter(
|
|
60
|
+
(l) => isSaleableListing(l) && (0, import_sdk.normalizeAddress)("STARKNET", l.offerer) === (0, import_sdk.normalizeAddress)("STARKNET", walletAddress)
|
|
61
|
+
).reduce((total, l) => {
|
|
62
|
+
try {
|
|
63
|
+
return total + BigInt(l.offer.startAmount);
|
|
64
|
+
} catch {
|
|
65
|
+
return total;
|
|
66
|
+
}
|
|
67
|
+
}, 0n);
|
|
68
|
+
}
|
|
69
|
+
function hasUnlistedEditions(owned, listed) {
|
|
70
|
+
if (owned === void 0) return true;
|
|
71
|
+
try {
|
|
72
|
+
return BigInt(owned) > listed;
|
|
73
|
+
} catch {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function usdValueOf(order, prices) {
|
|
78
|
+
const currency = order?.price?.currency?.toUpperCase();
|
|
79
|
+
const amount = order?.price?.formatted ? parseFloat(order.price.formatted) : NaN;
|
|
80
|
+
const rate = currency ? (0, import_use_usd_prices.usdPriceFor)(prices, currency) : void 0;
|
|
81
|
+
return rate == null || isNaN(amount) ? null : (0, import_format.formatUsd)(amount * rate);
|
|
82
|
+
}
|
|
83
|
+
function useAssetMarketState({
|
|
84
|
+
token,
|
|
85
|
+
collection,
|
|
86
|
+
listings,
|
|
87
|
+
history,
|
|
88
|
+
walletAddress,
|
|
89
|
+
walletBalance
|
|
90
|
+
}) {
|
|
91
|
+
const activeListings = listings.filter(isSaleableListing);
|
|
92
|
+
const activeBids = listings.filter(isBid);
|
|
93
|
+
const cheapest = cheapestOf(activeListings);
|
|
94
|
+
const usdPrices = (0, import_use_usd_prices.useUsdPrices)();
|
|
95
|
+
const cheapestUsd = usdValueOf(cheapest, usdPrices);
|
|
96
|
+
const lastSaleRaw = formatSale(latestSale(history));
|
|
97
|
+
const isOwner = (0, import_ownership.checkIsOwner)(token, walletAddress, walletBalance);
|
|
98
|
+
const isERC1155 = (token?.standard ?? collection?.standard) === "ERC1155";
|
|
99
|
+
const holders = token?.balances ?? [];
|
|
100
|
+
const quantityOwned = walletBalance != null && BigInt(walletBalance) > 0n ? walletBalance : void 0;
|
|
101
|
+
const myListing = isOwner && walletAddress ? activeListings.find(
|
|
102
|
+
(l) => (0, import_sdk.normalizeAddress)("STARKNET", l.offerer) === (0, import_sdk.normalizeAddress)("STARKNET", walletAddress)
|
|
103
|
+
) ?? null : null;
|
|
104
|
+
const quantityListedByMe = listedQuantityBy(activeListings, walletAddress);
|
|
105
|
+
const canListMoreEditions = hasUnlistedEditions(quantityOwned, quantityListedByMe);
|
|
106
|
+
return {
|
|
107
|
+
activeListings,
|
|
108
|
+
activeBids,
|
|
109
|
+
cheapest,
|
|
110
|
+
cheapestUsd,
|
|
111
|
+
lastSaleRaw,
|
|
112
|
+
isOwner,
|
|
113
|
+
isERC1155,
|
|
114
|
+
holders,
|
|
115
|
+
quantityOwned,
|
|
116
|
+
myListing,
|
|
117
|
+
quantityListedByMe,
|
|
118
|
+
canListMoreEditions
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
122
|
+
0 && (module.exports = {
|
|
123
|
+
cheapestOf,
|
|
124
|
+
formatSale,
|
|
125
|
+
hasUnlistedEditions,
|
|
126
|
+
isBid,
|
|
127
|
+
isSaleableListing,
|
|
128
|
+
latestSale,
|
|
129
|
+
listedQuantityBy,
|
|
130
|
+
useAssetMarketState
|
|
131
|
+
});
|
|
132
|
+
//# sourceMappingURL=asset-market-state.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/asset-market-state.ts"],"sourcesContent":["\"use client\";\n\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport type { ApiActivity, ApiOrder, ApiToken, ApiCollection } from \"@medialane/sdk\";\nimport { useUsdPrices, usdPriceFor } from \"./use-usd-prices.js\";\nimport { formatUsd } from \"./format.js\";\nimport { checkIsOwner } from \"./ownership.js\";\n\nexport interface AssetMarketState {\n activeListings: ApiOrder[];\n activeBids: ApiOrder[];\n cheapest: ApiOrder | undefined;\n cheapestUsd: string | null;\n lastSaleRaw: string | null;\n isOwner: boolean;\n isERC1155: boolean;\n holders: NonNullable<ApiToken[\"balances\"]>;\n quantityOwned: string | undefined;\n myListing: ApiOrder | null;\n quantityListedByMe: bigint;\n canListMoreEditions: boolean;\n}\n\nexport function isSaleableListing(order: ApiOrder): boolean {\n return (\n order.status === \"ACTIVE\" &&\n (order.offer.itemType === \"ERC721\" || order.offer.itemType === \"ERC1155\")\n );\n}\n\nexport function isBid(order: ApiOrder): boolean {\n return order.status === \"ACTIVE\" && order.offer.itemType === \"ERC20\";\n}\n\nexport function cheapestOf(listings: ApiOrder[]): ApiOrder | undefined {\n return [...listings].sort((a, b) =>\n BigInt(a.consideration.startAmount) < BigInt(b.consideration.startAmount) ? -1 : 1,\n )[0];\n}\n\nexport function latestSale(history: ApiActivity[]): ApiActivity | null {\n return history\n .filter((h) => h.type === \"sale\" && h.price?.formatted)\n .reduce<ApiActivity | null>(\n (latest, h) => (!latest || h.timestamp > latest.timestamp ? h : latest),\n null,\n );\n}\n\nexport function formatSale(sale: ApiActivity | null): string | null {\n if (!sale?.price) return null;\n return `${sale.price.formatted} ${sale.price.currency ?? \"\"}`.trim();\n}\n\nexport function listedQuantityBy(listings: ApiOrder[], walletAddress: string | null | undefined): bigint {\n if (!walletAddress) return 0n;\n return listings\n .filter(\n (l) =>\n isSaleableListing(l) &&\n normalizeAddress(\"STARKNET\", l.offerer) === normalizeAddress(\"STARKNET\", walletAddress),\n )\n .reduce((total, l) => {\n try {\n return total + BigInt(l.offer.startAmount);\n } catch {\n return total;\n }\n }, 0n);\n}\n\nexport function hasUnlistedEditions(owned: string | undefined, listed: bigint): boolean {\n if (owned === undefined) return true;\n try {\n return BigInt(owned) > listed;\n } catch {\n return true;\n }\n}\n\nfunction usdValueOf(order: ApiOrder | undefined, prices: ReturnType<typeof useUsdPrices>): string | null {\n const currency = order?.price?.currency?.toUpperCase();\n const amount = order?.price?.formatted ? parseFloat(order.price.formatted) : NaN;\n const rate = currency ? usdPriceFor(prices, currency) : undefined;\n return rate == null || isNaN(amount) ? null : formatUsd(amount * rate);\n}\n\nexport function useAssetMarketState({\n token,\n collection,\n listings,\n history,\n walletAddress,\n walletBalance,\n}: {\n token: ApiToken | null | undefined;\n collection: ApiCollection | null | undefined;\n listings: ApiOrder[];\n history: ApiActivity[];\n walletAddress: string | null | undefined;\n walletBalance: string | null;\n}): AssetMarketState {\n const activeListings = listings.filter(isSaleableListing);\n const activeBids = listings.filter(isBid);\n const cheapest = cheapestOf(activeListings);\n\n const usdPrices = useUsdPrices();\n const cheapestUsd = usdValueOf(cheapest, usdPrices);\n\n const lastSaleRaw = formatSale(latestSale(history));\n\n const isOwner = checkIsOwner(token, walletAddress, walletBalance);\n const isERC1155 = (token?.standard ?? collection?.standard) === \"ERC1155\";\n\n const holders = token?.balances ?? [];\n const quantityOwned = walletBalance != null && BigInt(walletBalance) > 0n ? walletBalance : undefined;\n\n const myListing =\n isOwner && walletAddress\n ? (activeListings.find(\n (l) => normalizeAddress(\"STARKNET\", l.offerer) === normalizeAddress(\"STARKNET\", walletAddress),\n ) ?? null)\n : null;\n\n const quantityListedByMe = listedQuantityBy(activeListings, walletAddress);\n const canListMoreEditions = hasUnlistedEditions(quantityOwned, quantityListedByMe);\n\n return {\n activeListings,\n activeBids,\n cheapest,\n cheapestUsd,\n lastSaleRaw,\n isOwner,\n isERC1155,\n holders,\n quantityOwned,\n myListing,\n quantityListedByMe,\n canListMoreEditions,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,iBAAiC;AAEjC,4BAA0C;AAC1C,oBAA0B;AAC1B,uBAA6B;AAiBtB,SAAS,kBAAkB,OAA0B;AAC1D,SACE,MAAM,WAAW,aAChB,MAAM,MAAM,aAAa,YAAY,MA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