@medialane/ui 0.393.0 → 0.395.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/README.md +24 -0
- package/dist/components/account-page.cjs +2 -1
- package/dist/components/account-page.cjs.map +1 -1
- package/dist/components/account-page.js +2 -1
- package/dist/components/account-page.js.map +1 -1
- package/dist/components/accounts-page.cjs +30 -47
- package/dist/components/accounts-page.cjs.map +1 -1
- package/dist/components/accounts-page.js +31 -48
- package/dist/components/accounts-page.js.map +1 -1
- package/dist/components/activities-page.cjs +41 -0
- package/dist/components/activities-page.cjs.map +1 -0
- package/dist/components/activities-page.d.cts +5 -0
- package/dist/components/activities-page.d.ts +5 -0
- package/dist/components/activities-page.js +17 -0
- package/dist/components/activities-page.js.map +1 -0
- package/dist/components/coins-explorer.cjs +18 -17
- package/dist/components/coins-explorer.cjs.map +1 -1
- package/dist/components/coins-explorer.d.cts +2 -1
- package/dist/components/coins-explorer.d.ts +2 -1
- package/dist/components/coins-explorer.js +16 -16
- package/dist/components/coins-explorer.js.map +1 -1
- package/dist/components/collection-settings.cjs +19 -15
- package/dist/components/collection-settings.cjs.map +1 -1
- package/dist/components/collection-settings.js +19 -15
- package/dist/components/collection-settings.js.map +1 -1
- package/dist/components/collections-page.cjs +12 -16
- package/dist/components/collections-page.cjs.map +1 -1
- package/dist/components/collections-page.js +12 -16
- package/dist/components/collections-page.js.map +1 -1
- package/dist/components/create-form-primitives.cjs +4 -2
- package/dist/components/create-form-primitives.cjs.map +1 -1
- package/dist/components/create-form-primitives.d.cts +2 -1
- package/dist/components/create-form-primitives.d.ts +2 -1
- package/dist/components/create-form-primitives.js +4 -2
- package/dist/components/create-form-primitives.js.map +1 -1
- package/dist/components/discover-hero.cjs +8 -45
- package/dist/components/discover-hero.cjs.map +1 -1
- package/dist/components/discover-hero.d.cts +1 -2
- package/dist/components/discover-hero.d.ts +1 -2
- package/dist/components/discover-hero.js +8 -45
- package/dist/components/discover-hero.js.map +1 -1
- package/dist/components/discover-page.cjs +2 -3
- package/dist/components/discover-page.cjs.map +1 -1
- package/dist/components/discover-page.d.cts +1 -2
- package/dist/components/discover-page.d.ts +1 -2
- package/dist/components/discover-page.js +2 -3
- package/dist/components/discover-page.js.map +1 -1
- package/dist/components/drop/create/asset-editor.cjs +40 -5
- package/dist/components/drop/create/asset-editor.cjs.map +1 -1
- package/dist/components/drop/create/asset-editor.d.cts +4 -1
- package/dist/components/drop/create/asset-editor.d.ts +4 -1
- package/dist/components/drop/create/asset-editor.js +41 -6
- package/dist/components/drop/create/asset-editor.js.map +1 -1
- package/dist/components/drop/create/assets-panel.cjs +27 -12
- package/dist/components/drop/create/assets-panel.cjs.map +1 -1
- package/dist/components/drop/create/assets-panel.d.cts +19 -3
- package/dist/components/drop/create/assets-panel.d.ts +19 -3
- package/dist/components/drop/create/assets-panel.js +26 -13
- package/dist/components/drop/create/assets-panel.js.map +1 -1
- package/dist/components/drop/create/collection-panel.cjs +3 -1
- package/dist/components/drop/create/collection-panel.cjs.map +1 -1
- package/dist/components/drop/create/collection-panel.d.cts +4 -1
- package/dist/components/drop/create/collection-panel.d.ts +4 -1
- package/dist/components/drop/create/collection-panel.js +3 -1
- package/dist/components/drop/create/collection-panel.js.map +1 -1
- package/dist/components/drop/create/drop-create.d.cts +4 -1
- package/dist/components/drop/create/drop-create.d.ts +4 -1
- package/dist/components/drop/create/drop-fields.cjs +8 -4
- package/dist/components/drop/create/drop-fields.cjs.map +1 -1
- package/dist/components/drop/create/drop-fields.d.cts +4 -1
- package/dist/components/drop/create/drop-fields.d.ts +4 -1
- package/dist/components/drop/create/drop-fields.js +8 -4
- package/dist/components/drop/create/drop-fields.js.map +1 -1
- package/dist/components/drop/create/drop-panel.d.cts +4 -1
- package/dist/components/drop/create/drop-panel.d.ts +4 -1
- package/dist/components/drop/create/launch-dialog.cjs +4 -4
- package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
- package/dist/components/drop/create/launch-dialog.d.cts +4 -1
- package/dist/components/drop/create/launch-dialog.d.ts +4 -1
- package/dist/components/drop/create/launch-dialog.js +5 -5
- package/dist/components/drop/create/launch-dialog.js.map +1 -1
- package/dist/components/drop/create/settings-panel.cjs +8 -7
- package/dist/components/drop/create/settings-panel.cjs.map +1 -1
- package/dist/components/drop/create/settings-panel.d.cts +4 -1
- package/dist/components/drop/create/settings-panel.d.ts +4 -1
- package/dist/components/drop/create/settings-panel.js +9 -8
- package/dist/components/drop/create/settings-panel.js.map +1 -1
- package/dist/components/drop/drop-detail-page.cjs +37 -0
- package/dist/components/drop/drop-detail-page.cjs.map +1 -0
- package/dist/components/drop/drop-detail-page.d.cts +7 -0
- package/dist/components/drop/drop-detail-page.d.ts +7 -0
- package/dist/components/drop/drop-detail-page.js +13 -0
- package/dist/components/drop/drop-detail-page.js.map +1 -0
- package/dist/components/drop/my-drops-page.cjs +41 -0
- package/dist/components/drop/my-drops-page.cjs.map +1 -0
- package/dist/components/drop/my-drops-page.d.cts +5 -0
- package/dist/components/drop/my-drops-page.d.ts +5 -0
- package/dist/components/drop/my-drops-page.js +17 -0
- package/dist/components/drop/my-drops-page.js.map +1 -0
- package/dist/components/drop/page/drop-page.cjs +1 -1
- package/dist/components/drop/page/drop-page.cjs.map +1 -1
- package/dist/components/drop/page/drop-page.js +1 -1
- package/dist/components/drop/page/drop-page.js.map +1 -1
- package/dist/components/drops-page.cjs +14 -16
- package/dist/components/drops-page.cjs.map +1 -1
- package/dist/components/drops-page.js +14 -16
- package/dist/components/drops-page.js.map +1 -1
- package/dist/components/editions-page.cjs +24 -26
- package/dist/components/editions-page.cjs.map +1 -1
- package/dist/components/editions-page.js +24 -26
- package/dist/components/editions-page.js.map +1 -1
- package/dist/components/ip-type-page.cjs +117 -117
- package/dist/components/ip-type-page.cjs.map +1 -1
- package/dist/components/ip-type-page.js +118 -118
- package/dist/components/ip-type-page.js.map +1 -1
- package/dist/components/journey-content.cjs +16 -25
- package/dist/components/journey-content.cjs.map +1 -1
- package/dist/components/journey-content.js +18 -27
- package/dist/components/journey-content.js.map +1 -1
- package/dist/components/launchpad/remix-mint.cjs +17 -15
- package/dist/components/launchpad/remix-mint.cjs.map +1 -1
- package/dist/components/launchpad/remix-mint.js +17 -15
- package/dist/components/launchpad/remix-mint.js.map +1 -1
- package/dist/components/launchpad/tier-mint-form.cjs +4 -2
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-form.js +4 -2
- package/dist/components/launchpad/tier-mint-form.js.map +1 -1
- package/dist/components/launchpad-page.cjs +8 -7
- package/dist/components/launchpad-page.cjs.map +1 -1
- package/dist/components/launchpad-page.js +8 -7
- package/dist/components/launchpad-page.js.map +1 -1
- package/dist/components/launchpad-services.cjs +2 -4
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.js +2 -4
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/components/license-request-page.cjs +18 -16
- package/dist/components/license-request-page.cjs.map +1 -1
- package/dist/components/license-request-page.js +18 -16
- package/dist/components/license-request-page.js.map +1 -1
- package/dist/components/page-container.cjs +1 -1
- package/dist/components/page-container.cjs.map +1 -1
- package/dist/components/page-container.js +1 -1
- package/dist/components/page-container.js.map +1 -1
- package/dist/components/page-header.cjs +56 -0
- package/dist/components/page-header.cjs.map +1 -0
- package/dist/components/page-header.d.cts +19 -0
- package/dist/components/page-header.d.ts +19 -0
- package/dist/components/page-header.js +31 -0
- package/dist/components/page-header.js.map +1 -0
- package/dist/components/page-skeletons.cjs +11 -40
- package/dist/components/page-skeletons.cjs.map +1 -1
- package/dist/components/page-skeletons.js +11 -40
- package/dist/components/page-skeletons.js.map +1 -1
- package/dist/components/pop-manage-page.cjs +17 -15
- package/dist/components/pop-manage-page.cjs.map +1 -1
- package/dist/components/pop-manage-page.js +17 -15
- package/dist/components/pop-manage-page.js.map +1 -1
- package/dist/components/pop-my-events-page.cjs +15 -15
- package/dist/components/pop-my-events-page.cjs.map +1 -1
- package/dist/components/pop-my-events-page.js +15 -15
- package/dist/components/pop-my-events-page.js.map +1 -1
- package/dist/components/pop-page.cjs +177 -0
- package/dist/components/pop-page.cjs.map +1 -0
- package/dist/components/pop-page.d.cts +5 -0
- package/dist/components/pop-page.d.ts +5 -0
- package/dist/components/pop-page.js +143 -0
- package/dist/components/pop-page.js.map +1 -0
- package/dist/components/portfolio-collections.cjs +8 -11
- package/dist/components/portfolio-collections.cjs.map +1 -1
- package/dist/components/portfolio-collections.js +8 -11
- package/dist/components/portfolio-collections.js.map +1 -1
- package/dist/components/portfolio-header.cjs +13 -16
- package/dist/components/portfolio-header.cjs.map +1 -1
- package/dist/components/portfolio-header.js +13 -16
- package/dist/components/portfolio-header.js.map +1 -1
- package/dist/components/portfolio-shell.cjs +2 -1
- package/dist/components/portfolio-shell.cjs.map +1 -1
- package/dist/components/portfolio-shell.js +2 -1
- package/dist/components/portfolio-shell.js.map +1 -1
- package/dist/components/portfolio-sponsorships.cjs +6 -8
- package/dist/components/portfolio-sponsorships.cjs.map +1 -1
- package/dist/components/portfolio-sponsorships.js +6 -8
- package/dist/components/portfolio-sponsorships.js.map +1 -1
- package/dist/components/remix-browse-page.cjs +13 -15
- package/dist/components/remix-browse-page.cjs.map +1 -1
- package/dist/components/remix-browse-page.js +13 -15
- package/dist/components/remix-browse-page.js.map +1 -1
- package/dist/components/rewards/rewards-dashboard.cjs +20 -30
- package/dist/components/rewards/rewards-dashboard.cjs.map +1 -1
- package/dist/components/rewards/rewards-dashboard.js +21 -31
- package/dist/components/rewards/rewards-dashboard.js.map +1 -1
- package/dist/components/rewards-page.cjs +1 -1
- package/dist/components/rewards-page.cjs.map +1 -1
- package/dist/components/rewards-page.js +1 -1
- package/dist/components/rewards-page.js.map +1 -1
- package/dist/components/search-page.cjs +5 -12
- package/dist/components/search-page.cjs.map +1 -1
- package/dist/components/search-page.js +5 -12
- package/dist/components/search-page.js.map +1 -1
- package/dist/components/section-heading.cjs +6 -6
- package/dist/components/section-heading.cjs.map +1 -1
- package/dist/components/section-heading.d.cts +7 -4
- package/dist/components/section-heading.d.ts +7 -4
- package/dist/components/section-heading.js +6 -6
- package/dist/components/section-heading.js.map +1 -1
- package/dist/components/service-collections-page.cjs +7 -13
- package/dist/components/service-collections-page.cjs.map +1 -1
- package/dist/components/service-collections-page.d.cts +0 -2
- package/dist/components/service-collections-page.d.ts +0 -2
- package/dist/components/service-collections-page.js +8 -14
- package/dist/components/service-collections-page.js.map +1 -1
- package/dist/components/service-form-shell.cjs +12 -15
- package/dist/components/service-form-shell.cjs.map +1 -1
- package/dist/components/service-form-shell.js +12 -15
- package/dist/components/service-form-shell.js.map +1 -1
- package/dist/components/sponsorship-offer-page.cjs +13 -5
- package/dist/components/sponsorship-offer-page.cjs.map +1 -1
- package/dist/components/sponsorship-offer-page.js +13 -5
- package/dist/components/sponsorship-offer-page.js.map +1 -1
- package/dist/components/sponsorship-offers-page.cjs +17 -21
- package/dist/components/sponsorship-offers-page.cjs.map +1 -1
- package/dist/components/sponsorship-offers-page.js +17 -21
- package/dist/components/sponsorship-offers-page.js.map +1 -1
- package/dist/{draft-B0fPlVZS.d.ts → draft-D1Wfoe3V.d.ts} +15 -2
- package/dist/{draft-Bw3JWkOZ.d.cts → draft-Dlc0K4p0.d.cts} +15 -2
- package/dist/i18n/catalog/pt.cjs +23 -9
- package/dist/i18n/catalog/pt.cjs.map +1 -1
- package/dist/i18n/catalog/pt.js +23 -9
- package/dist/i18n/catalog/pt.js.map +1 -1
- package/dist/index.cjs +22 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/utils/drop/draft-store.d.cts +4 -1
- package/dist/utils/drop/draft-store.d.ts +4 -1
- package/dist/utils/drop/draft.cjs +28 -1
- package/dist/utils/drop/draft.cjs.map +1 -1
- package/dist/utils/drop/draft.d.cts +4 -1
- package/dist/utils/drop/draft.d.ts +4 -1
- package/dist/utils/drop/draft.js +24 -1
- package/dist/utils/drop/draft.js.map +1 -1
- package/dist/utils/drop/metadata.cjs +11 -13
- package/dist/utils/drop/metadata.cjs.map +1 -1
- package/dist/utils/drop/metadata.d.cts +4 -1
- package/dist/utils/drop/metadata.d.ts +4 -1
- package/dist/utils/drop/metadata.js +11 -13
- package/dist/utils/drop/metadata.js.map +1 -1
- package/dist/utils/drop/sale.cjs +8 -0
- package/dist/utils/drop/sale.cjs.map +1 -1
- package/dist/utils/drop/sale.d.cts +2 -1
- package/dist/utils/drop/sale.d.ts +2 -1
- package/dist/utils/drop/sale.js +7 -0
- package/dist/utils/drop/sale.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/service-header.cjs +0 -47
- package/dist/components/service-header.cjs.map +0 -1
- package/dist/components/service-header.d.cts +0 -15
- package/dist/components/service-header.d.ts +0 -15
- package/dist/components/service-header.js +0 -23
- package/dist/components/service-header.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { 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 { gatewayChain, gatewayFallbackSrc, installIpfsGatewayFallback, PUBLIC_IMAGE_GATEWAYS } from \"./utils/ipfs-gateway-fallback.js\";\nexport { IpfsGatewayFallback } from \"./components/ipfs-gateway-fallback.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 { 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 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 AssetKind, type AssetMarketContext, type AssetMarketActions } from \"./components/asset-page.js\";\nexport { AssetCommentsDialog, type AssetCommentsDialogProps } 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 { fireConfetti } from \"./utils/media-wallet/confetti.js\";\nexport { useConfetti } from \"./utils/use-confetti.js\";\nexport { useOnOpen } from \"./utils/use-on-open.js\";\nexport { useCoinGuarantees } from \"./utils/use-coin-guarantees.js\";\nexport { useCoinSupply } from \"./utils/use-coin-supply.js\";\nexport { BRAND, BRAND_COLOR } 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, createImageResolver, type DisplayUrlOptions, type ImageResolver } from \"./utils/ipfs.js\";\nexport { useImageUrl } from \"./utils/use-image-url.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 { CollectionShowcase } from \"./components/collection-showcase.js\";\nexport type { CollectionShowcaseProps } from \"./components/collection-showcase.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 { ListingsGrid, type ListingsGridProps } from \"./components/listings-grid.js\";\nexport type { ListingCardProps } from \"./components/listing-card.js\";\nexport {\n MarketplaceTxLink,\n MarketplaceProcessingState,\n MarketplaceSignInGate,\n MarketplaceErrorState,\n MarketplaceDialogHero,\n OrderSummaryHero,\n CurrencyPicker,\n DurationPicker,\n ListingAssetSummary,\n MarketplaceConfirmStep,\n} from \"./components/marketplace-dialog-primitives.js\";\nexport { useSession, refreshSession, sessionEmail, fetchSession } from \"./utils/use-session.js\";\nexport { OrderFields } from \"./components/order-fields.js\";\nexport type { OrderFieldsProps } from \"./components/order-fields.js\";\nexport { LISTABLE_CURRENCIES, orderFormSchema, counterOfferFormSchema } from \"./utils/order-form.js\";\nexport type { OrderFormValues } from \"./utils/order-form.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 type { DraftAsset, DropDraft } from \"./utils/drop/draft.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 } 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 } from \"./components/medialane-app.js\";\nexport { ReportDialog } from \"./components/report-dialog.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, usdValueFor } from \"./utils/use-usd-prices.js\";\nexport type { UsdPrices } from \"./utils/use-usd-prices.js\";\nexport type { ActivityRowProps } from \"./components/activity-row.js\";\n\nexport { DiscoverHero } from \"./components/discover-hero.js\";\nexport type { DiscoverHeroProps } from \"./components/discover-hero.js\";\nexport { DiscoverCollectionsStrip } from \"./components/discover-collections-strip.js\";\nexport type { DiscoverCollectionsStripProps } from \"./components/discover-collections-strip.js\";\nexport { DiscoverActivityStrip } from \"./components/discover-feed-section.js\";\nexport type { 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 type { LaunchpadGroupedSectionsProps, LaunchpadServiceCardProps, ServiceOverride, ServiceOverrides } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_ROUTE_OVERRIDES } from \"./components/launchpad-services.js\";\nexport { COLLECTION_NAME_CLAIM, LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS, getLaunchpadService } from \"./data/launchpad-services.js\";\nexport type { ServiceDefinition, ServiceStatus, ServiceGroup, ServiceGroupDefinition } from \"./data/launchpad-services.js\";\n\nexport { NavCommandMenu, useNavCommandMenu, relevanceFilter, matchCommands } from \"./components/nav-command-menu.js\";\nexport { SearchPage } from \"./components/search-page.js\";\nexport { PortfolioOrders, type PortfolioOrdersView, type PortfolioOrderActions, type UsePortfolioOrderActions } from \"./components/portfolio-orders.js\";\nexport { ArchiveAssetDialog, type ArchiveAssetDialogProps } from \"./components/archive-asset-dialog.js\";\nexport { PortfolioAssets, type PortfolioAssetActions, type UsePortfolioAssetActions } from \"./components/portfolio-assets.js\";\nexport { PortfolioShell, PORTFOLIO_TABS, type PortfolioTab } from \"./components/portfolio-shell.js\";\nexport { SoulboundCard, issuedAt } from \"./components/soulbound-card.js\";\nexport type { SoulboundCardProps } from \"./components/soulbound-card.js\";\nexport { RewardsPage } from \"./components/rewards-page.js\";\nexport { JourneyContent } from \"./components/journey-content.js\";\nexport { PortfolioSnapshot, RewardsSnapshot } from \"./components/settings-snapshots.js\";\nexport { RouteError } from \"./components/route-error.js\";\nexport { CreateSponsorshipAside } from \"./components/create-sponsorship-aside.js\";\nexport { AccountLoading, ActivitiesLoading, CollectionLoading, CollectionsLoading, CreatorLoading, IpTypeLoading, MarketplaceLoading, PortfolioLoading } from \"./components/page-skeletons.js\";\nexport { RewardsDashboard, REWARD_ACTION_LABELS } from \"./components/rewards/rewards-dashboard.js\";\nexport { LeaderboardPanel, type LeaderboardPanelProps } from \"./components/rewards/leaderboard-panel.js\";\nexport { CollectionNameClaim } from \"./components/collection-name-claim.js\";\nexport { CollectionSettings } from \"./components/collection-settings.js\";\nexport { MintLanding, type MintLandingCopy } from \"./components/mint-landing.js\";\nexport { ApproveMintDialog, type ApproveMintDialogProps } from \"./components/approve-mint-dialog.js\";\nexport { DiscoverPage, type DiscoverPageProps } from \"./components/discover-page.js\";\nexport { DiscoverCommunitySection } from \"./components/discover-community-section.js\";\nexport { IpTypeNav } from \"./components/ip-type-nav.js\";\nexport { HomePage, FeaturedListings, type HomePageProps } from \"./components/home-page.js\";\nexport { AccountsPage } from \"./components/accounts-page.js\";\nexport { BackButton } from \"./components/back-button.js\";\nexport { SignInPrompt } from \"./components/sign-in-prompt.js\";\nexport { LaunchpadPage, type LaunchpadPageProps } from \"./components/launchpad-page.js\";\nexport { RemixBrowsePage } from \"./components/remix-browse-page.js\";\nexport { ServiceCollectionsPage } from \"./components/service-collections-page.js\";\nexport { EditionsPage } from \"./components/editions-page.js\";\nexport { DropsPage } from \"./components/drops-page.js\";\nexport { PopMyEventsPage } from \"./components/pop-my-events-page.js\";\nexport { CreatorPage, type CreatorPageProps } from \"./components/creator-page.js\";\nexport { AccountPage, type AccountPageProps } from \"./components/account-page.js\";\nexport { CancelOrderConfirm, type CancelOrderConfirmProps } from \"./components/cancel-order-confirm.js\";\nexport { UnderlineTabs, type UnderlineTab } from \"./components/underline-tabs.js\";\nexport { MoreMenu } from \"./components/more-menu.js\";\nexport { LicenseRequestPage } from \"./components/license-request-page.js\";\nexport { orderUsd } from \"./utils/order-usd.js\";\nexport { getSeenOffers, markOffersAsSeen } from \"./utils/seen-offers.js\";\nexport { NAV_ITEMS, navGroups, type NavItemId, type NavGroupSpec } from \"./data/nav-commands.js\";\nexport { ResultThumbnail } from \"./components/result-thumbnail.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 { 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\";\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 { 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 { useTransaction, isBusyPhase } from \"./utils/use-transaction.js\";\nexport type { TransactionPhase } from \"./utils/use-transaction.js\";\nexport { RewardEarned } 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 } from \"./components/action-button.js\";\n\nexport { CoinLaunchPreview } from \"./components/coin-launch-preview.js\";\nexport type { CoinPreviewData } from \"./components/coin-launch-preview.js\";\nexport { CollectionCreateForm } from \"./components/launchpad/collection-create-form.js\";\nexport type { CollectionCreateFormProps } from \"./components/launchpad/collection-create-form.js\";\nexport { CLUB_PRESET, TICKETS_PRESET, EDITIONS_PRESET, SINGLE_PRESET } from \"./components/launchpad/collection-create-presets.js\";\nexport type { CollectionCreatePreset } from \"./components/launchpad/collection-create-presets.js\";\nexport { TierMintForm } from \"./components/launchpad/tier-mint-form.js\";\nexport type { TierMintFormProps } from \"./components/launchpad/tier-mint-form.js\";\nexport { CLUB_TIER_PRESET, TICKETS_TIER_PRESET } from \"./components/launchpad/tier-mint-presets.js\";\nexport type { TierMintPreset } from \"./components/launchpad/tier-mint-presets.js\";\nexport { SingleEditionMint } from \"./components/launchpad/single-edition-mint.js\";\nexport { CollectionPicker } from \"./components/launchpad/collection-picker.js\";\nexport type { CollectionPickerProps } from \"./components/launchpad/collection-picker.js\";\nexport { EditionMint } from \"./components/launchpad/edition-mint.js\";\nexport { RemixMint } from \"./components/launchpad/remix-mint.js\";\nexport { IpTypePage } from \"./components/ip-type-page.js\";\nexport type { IpTypePageProps } from \"./components/ip-type-page.js\";\nexport { CollectionsPage } from \"./components/collections-page.js\";\nexport { SponsorshipCreate } from \"./components/launchpad/sponsorship-create.js\";\nexport { PopCreate } from \"./components/launchpad/pop-create.js\";\nexport { PopClaimButton } from \"./components/pop-claim-button.js\";\nexport { PopBurnButton } from \"./components/pop-burn-button.js\";\nexport { PopManagePage } from \"./components/pop-manage-page.js\";\nexport { CommentsSection } from \"./components/comments-section.js\";\nexport type { CommentsSectionProps } from \"./components/comments-section.js\";\nexport type { PopBurnButtonProps } from \"./components/pop-burn-button.js\";\nexport { SponsorshipOffersPage } from \"./components/sponsorship-offers-page.js\";\nexport { SponsorshipOfferPage } from \"./components/sponsorship-offer-page.js\";\nexport { PortfolioSponsorships } from \"./components/portfolio-sponsorships.js\";\nexport { TransferCollectionOwnership } from \"./components/transfer-collection-ownership.js\";\nexport type { TransferCollectionOwnershipProps } from \"./components/transfer-collection-ownership.js\";\nexport { CoinCreate } from \"./components/launchpad/coin-create.js\";\nexport type { CoinCreateProps } from \"./components/launchpad/coin-create.js\";\nexport { WalletRequired } from \"./components/wallet-required.js\";\nexport type { WalletRequiredProps } from \"./components/wallet-required.js\";\nexport { ClaimRouteShell } from \"./components/claim-route-shell.js\";\nexport { useLaunchpadImageUpload } from \"./utils/use-launchpad-image-upload.js\";\nexport { invalidatePortfolioCache } from \"./utils/portfolio-cache.js\";\nexport { TransactionDialog } from \"./components/transaction-dialog.js\";\nexport type { TransactionDialogProps } from \"./components/transaction-dialog.js\";\nexport { TransactionSuccess, DialogTransactionSuccess } from \"./components/transaction-success.js\";\nexport { TransactionDialogStates } from \"./components/transaction-dialog-states.js\";\nexport { TransferDialog } from \"./components/transfer-dialog.js\";\nexport { MarketplaceSearch, SearchInput } from \"./components/marketplace-search.js\";\nexport { ActiveFilters, FiltersButton, FiltersDialog, useMarketplaceFilters } from \"./components/marketplace-filters.js\";\nexport type { MarketplaceFilters } from \"./components/marketplace-filters.js\";\nexport { useDebouncedValue } from \"./utils/use-debounced-value.js\";\nexport type { TransferDialogProps } from \"./components/transfer-dialog.js\";\nexport type { TransactionDialogStatesProps } from \"./components/transaction-dialog-states.js\";\nexport type { TransactionSuccessProps, TransactionSuccessAction } from \"./components/transaction-success.js\";\nexport { successMessages } from \"./utils/success-messages.js\";\nexport { emptyMessages } from \"./utils/empty-messages.js\";\nexport type { EmptyMessage } from \"./utils/empty-messages.js\";\nexport type { SuccessMessage } from \"./utils/success-messages.js\";\nexport { MedialaneCollectionCard } from \"./components/medialane-collection-card.js\";\nexport type { MedialaneCollectionCardProps } from \"./components/medialane-collection-card.js\";\n\nexport { StatTile, StatPill, StatPillRow } from \"./components/stat-tile.js\";\nexport type { StatTileProps, StatPillProps, StatPillRowItem } from \"./components/stat-tile.js\";\n\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\";\n\nexport { Skeleton } from \"./components/skeleton.js\";\nexport { Badge, badgeVariants } from \"./components/badge.js\";\nexport type { BadgeProps } from \"./components/badge.js\";\nexport { Panel, Pill, panelTint, PANEL_INSET } from \"./components/panel.js\";\nexport { IconTile, type IconTileProps } from \"./components/icon-tile.js\";\nexport type { PanelProps, PanelColor, PillProps } from \"./components/panel.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 { NewCollectionMenu, CollectionTypeChoices, COLLECTION_TYPES } from \"./components/new-collection-menu.js\";\nexport { ExternalLinkField } from \"./components/external-link-field.js\";\nexport { PortfolioCollections } from \"./components/portfolio-collections.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 { 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 { formatActivity } 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, useCreatorByUsername } 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 { CollectionProvenanceTab } from \"./components/collection-provenance-tab.js\";\nexport type { CollectionProvenanceTabProps } from \"./components/collection-provenance-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 { useAccounts } from \"./utils/use-accounts.js\";\nexport { useSearch, SEARCH_MIN_LENGTH, type UseSearchOptions } from \"./utils/use-search.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 { useTokenRemixes } from \"./utils/use-remix-offers.js\";\nexport { useRemixOffers } from \"./utils/use-my-remix-offers.js\";\nexport { useSwapQuote, swapQuoteKey } from \"./utils/use-swap-quote.js\";\nexport { usePaymentOptions, pickPayment, PAYMENT_COINS, type PaymentOption } from \"./utils/use-payment-options.js\";\nexport { PurchasePanel, amountText, editionsAvailable, type PurchasePanelProps } from \"./components/purchase-panel.js\";\nexport type { SwapToken, SwapAmountMode, SwapQuoteSummary } from \"./utils/use-swap-quote.js\";\nexport { RemixesTab } from \"./components/remixes-tab.js\";\nexport type { RemixesTabProps } from \"./components/remixes-tab.js\";\n\nexport { DropCountdown } from \"./components/drop-countdown.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 { useToken, useTokenBalance, useTokenHistory, useTokensByOwner, useOwnedTokens } 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":"AAAA,SAAS,UAAU;AACnB,SAAS,oBAAoB,mBAAmB,kBAAkB,WAAW,gBAAgB,0BAA0B;AACvH,SAAS,sBAAsB;AAC/B,SAAS,uBAAyE;AAClF,SAAS,YAA+B,uBAA6B;AACrE,SAAS,cAAc,oBAAoB,4BAA4B,6BAA6B;AACpG,SAAS,2BAA2B;AACpC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,6BAA6B;AACtC,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA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AAkB,sBAAsB;AAC7F,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,qBAA6D;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { 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 { gatewayChain, gatewayFallbackSrc, installIpfsGatewayFallback, PUBLIC_IMAGE_GATEWAYS } from \"./utils/ipfs-gateway-fallback.js\";\nexport { IpfsGatewayFallback } from \"./components/ipfs-gateway-fallback.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 { 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 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 AssetKind, type AssetMarketContext, type AssetMarketActions } from \"./components/asset-page.js\";\nexport { AssetCommentsDialog, type AssetCommentsDialogProps } 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 { fireConfetti } from \"./utils/media-wallet/confetti.js\";\nexport { useConfetti } from \"./utils/use-confetti.js\";\nexport { useOnOpen } from \"./utils/use-on-open.js\";\nexport { useCoinGuarantees } from \"./utils/use-coin-guarantees.js\";\nexport { useCoinSupply } from \"./utils/use-coin-supply.js\";\nexport { BRAND, BRAND_COLOR } 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 { PageHeader, PageHeaderSkeleton } from \"./components/page-header.js\";\nexport type { PageHeaderProps } from \"./components/page-header.js\";\nexport { SectionHeading } from \"./components/section-heading.js\";\nexport type { SectionHeadingProps } from \"./components/section-heading.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, CoinsPage,\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, createImageResolver, type DisplayUrlOptions, type ImageResolver } from \"./utils/ipfs.js\";\nexport { useImageUrl } from \"./utils/use-image-url.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 { CollectionShowcase } from \"./components/collection-showcase.js\";\nexport type { CollectionShowcaseProps } from \"./components/collection-showcase.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 { ListingsGrid, type ListingsGridProps } from \"./components/listings-grid.js\";\nexport type { ListingCardProps } from \"./components/listing-card.js\";\nexport {\n MarketplaceTxLink,\n MarketplaceProcessingState,\n MarketplaceSignInGate,\n MarketplaceErrorState,\n MarketplaceDialogHero,\n OrderSummaryHero,\n CurrencyPicker,\n DurationPicker,\n ListingAssetSummary,\n MarketplaceConfirmStep,\n} from \"./components/marketplace-dialog-primitives.js\";\nexport { useSession, refreshSession, sessionEmail, fetchSession } from \"./utils/use-session.js\";\nexport { OrderFields } from \"./components/order-fields.js\";\nexport type { OrderFieldsProps } from \"./components/order-fields.js\";\nexport { LISTABLE_CURRENCIES, orderFormSchema, counterOfferFormSchema } from \"./utils/order-form.js\";\nexport type { OrderFormValues } from \"./utils/order-form.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 type { DraftAsset, DropDraft } from \"./utils/drop/draft.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 { MyDropsPage } from \"./components/drop/my-drops-page.js\";\nexport { DropDetailPage } from \"./components/drop/drop-detail-page.js\";\nexport { ActivitiesPage } from \"./components/activities-page.js\";\nexport { PopPage } from \"./components/pop-page.js\";\nexport { DropTokenLink } from \"./components/drop/drop-token-link.js\";\nexport type { DropPhase } from \"./utils/drop/view.js\";\nexport { DropCreate } 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 } from \"./components/medialane-app.js\";\nexport { ReportDialog } from \"./components/report-dialog.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, usdValueFor } from \"./utils/use-usd-prices.js\";\nexport type { UsdPrices } from \"./utils/use-usd-prices.js\";\nexport type { ActivityRowProps } from \"./components/activity-row.js\";\n\nexport { DiscoverHero } from \"./components/discover-hero.js\";\nexport type { DiscoverHeroProps } from \"./components/discover-hero.js\";\nexport { DiscoverCollectionsStrip } from \"./components/discover-collections-strip.js\";\nexport type { DiscoverCollectionsStripProps } from \"./components/discover-collections-strip.js\";\nexport { DiscoverActivityStrip } from \"./components/discover-feed-section.js\";\nexport type { 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 type { LaunchpadGroupedSectionsProps, LaunchpadServiceCardProps, ServiceOverride, ServiceOverrides } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_ROUTE_OVERRIDES } from \"./components/launchpad-services.js\";\nexport { COLLECTION_NAME_CLAIM, LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS, getLaunchpadService } from \"./data/launchpad-services.js\";\nexport type { ServiceDefinition, ServiceStatus, ServiceGroup, ServiceGroupDefinition } from \"./data/launchpad-services.js\";\n\nexport { NavCommandMenu, useNavCommandMenu, relevanceFilter, matchCommands } from \"./components/nav-command-menu.js\";\nexport { SearchPage } from \"./components/search-page.js\";\nexport { PortfolioOrders, type PortfolioOrdersView, type PortfolioOrderActions, type UsePortfolioOrderActions } from \"./components/portfolio-orders.js\";\nexport { ArchiveAssetDialog, type ArchiveAssetDialogProps } from \"./components/archive-asset-dialog.js\";\nexport { PortfolioAssets, type PortfolioAssetActions, type UsePortfolioAssetActions } from \"./components/portfolio-assets.js\";\nexport { PortfolioShell, PORTFOLIO_TABS, type PortfolioTab } from \"./components/portfolio-shell.js\";\nexport { SoulboundCard, issuedAt } from \"./components/soulbound-card.js\";\nexport type { SoulboundCardProps } from \"./components/soulbound-card.js\";\nexport { RewardsPage } from \"./components/rewards-page.js\";\nexport { JourneyContent } from \"./components/journey-content.js\";\nexport { PortfolioSnapshot, RewardsSnapshot } from \"./components/settings-snapshots.js\";\nexport { RouteError } from \"./components/route-error.js\";\nexport { CreateSponsorshipAside } from \"./components/create-sponsorship-aside.js\";\nexport { AccountLoading, ActivitiesLoading, CollectionLoading, CollectionsLoading, CreatorLoading, IpTypeLoading, MarketplaceLoading, PortfolioLoading } from \"./components/page-skeletons.js\";\nexport { RewardsDashboard, REWARD_ACTION_LABELS } from \"./components/rewards/rewards-dashboard.js\";\nexport { LeaderboardPanel, type LeaderboardPanelProps } from \"./components/rewards/leaderboard-panel.js\";\nexport { CollectionNameClaim } from \"./components/collection-name-claim.js\";\nexport { CollectionSettings } from \"./components/collection-settings.js\";\nexport { MintLanding, type MintLandingCopy } from \"./components/mint-landing.js\";\nexport { ApproveMintDialog, type ApproveMintDialogProps } from \"./components/approve-mint-dialog.js\";\nexport { DiscoverPage, type DiscoverPageProps } from \"./components/discover-page.js\";\nexport { DiscoverCommunitySection } from \"./components/discover-community-section.js\";\nexport { IpTypeNav } from \"./components/ip-type-nav.js\";\nexport { HomePage, FeaturedListings, type HomePageProps } from \"./components/home-page.js\";\nexport { AccountsPage } from \"./components/accounts-page.js\";\nexport { BackButton } from \"./components/back-button.js\";\nexport { SignInPrompt } from \"./components/sign-in-prompt.js\";\nexport { LaunchpadPage, type LaunchpadPageProps } from \"./components/launchpad-page.js\";\nexport { RemixBrowsePage } from \"./components/remix-browse-page.js\";\nexport { ServiceCollectionsPage } from \"./components/service-collections-page.js\";\nexport { EditionsPage } from \"./components/editions-page.js\";\nexport { DropsPage } from \"./components/drops-page.js\";\nexport { PopMyEventsPage } from \"./components/pop-my-events-page.js\";\nexport { CreatorPage, type CreatorPageProps } from \"./components/creator-page.js\";\nexport { AccountPage, type AccountPageProps } from \"./components/account-page.js\";\nexport { CancelOrderConfirm, type CancelOrderConfirmProps } from \"./components/cancel-order-confirm.js\";\nexport { UnderlineTabs, type UnderlineTab } from \"./components/underline-tabs.js\";\nexport { MoreMenu } from \"./components/more-menu.js\";\nexport { LicenseRequestPage } from \"./components/license-request-page.js\";\nexport { orderUsd } from \"./utils/order-usd.js\";\nexport { getSeenOffers, markOffersAsSeen } from \"./utils/seen-offers.js\";\nexport { NAV_ITEMS, navGroups, type NavItemId, type NavGroupSpec } from \"./data/nav-commands.js\";\nexport { ResultThumbnail } from \"./components/result-thumbnail.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 { PortfolioChipFilter } from \"./components/portfolio-chip-filter.js\";\nexport type {\n PortfolioChipFilterProps,\n PortfolioChipFilterOption,\n} from \"./components/portfolio-chip-filter.js\";\n\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\";\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 { 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 { useTransaction, isBusyPhase } from \"./utils/use-transaction.js\";\nexport type { TransactionPhase } from \"./utils/use-transaction.js\";\nexport { RewardEarned } 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 } from \"./components/action-button.js\";\n\nexport { CoinLaunchPreview } from \"./components/coin-launch-preview.js\";\nexport type { CoinPreviewData } from \"./components/coin-launch-preview.js\";\nexport { CollectionCreateForm } from \"./components/launchpad/collection-create-form.js\";\nexport type { CollectionCreateFormProps } from \"./components/launchpad/collection-create-form.js\";\nexport { CLUB_PRESET, TICKETS_PRESET, EDITIONS_PRESET, SINGLE_PRESET } from \"./components/launchpad/collection-create-presets.js\";\nexport type { CollectionCreatePreset } from \"./components/launchpad/collection-create-presets.js\";\nexport { TierMintForm } from \"./components/launchpad/tier-mint-form.js\";\nexport type { TierMintFormProps } from \"./components/launchpad/tier-mint-form.js\";\nexport { CLUB_TIER_PRESET, TICKETS_TIER_PRESET } from \"./components/launchpad/tier-mint-presets.js\";\nexport type { TierMintPreset } from \"./components/launchpad/tier-mint-presets.js\";\nexport { SingleEditionMint } from \"./components/launchpad/single-edition-mint.js\";\nexport { CollectionPicker } from \"./components/launchpad/collection-picker.js\";\nexport type { CollectionPickerProps } from \"./components/launchpad/collection-picker.js\";\nexport { EditionMint } from \"./components/launchpad/edition-mint.js\";\nexport { RemixMint } from \"./components/launchpad/remix-mint.js\";\nexport { IpTypePage } from \"./components/ip-type-page.js\";\nexport type { IpTypePageProps } from \"./components/ip-type-page.js\";\nexport { CollectionsPage } from \"./components/collections-page.js\";\nexport { SponsorshipCreate } from \"./components/launchpad/sponsorship-create.js\";\nexport { PopCreate } from \"./components/launchpad/pop-create.js\";\nexport { PopClaimButton } from \"./components/pop-claim-button.js\";\nexport { PopBurnButton } from \"./components/pop-burn-button.js\";\nexport { PopManagePage } from \"./components/pop-manage-page.js\";\nexport { CommentsSection } from \"./components/comments-section.js\";\nexport type { CommentsSectionProps } from \"./components/comments-section.js\";\nexport type { PopBurnButtonProps } from \"./components/pop-burn-button.js\";\nexport { SponsorshipOffersPage } from \"./components/sponsorship-offers-page.js\";\nexport { SponsorshipOfferPage } from \"./components/sponsorship-offer-page.js\";\nexport { PortfolioSponsorships } from \"./components/portfolio-sponsorships.js\";\nexport { TransferCollectionOwnership } from \"./components/transfer-collection-ownership.js\";\nexport type { TransferCollectionOwnershipProps } from \"./components/transfer-collection-ownership.js\";\nexport { CoinCreate } from \"./components/launchpad/coin-create.js\";\nexport type { CoinCreateProps } from \"./components/launchpad/coin-create.js\";\nexport { WalletRequired } from \"./components/wallet-required.js\";\nexport type { WalletRequiredProps } from \"./components/wallet-required.js\";\nexport { ClaimRouteShell } from \"./components/claim-route-shell.js\";\nexport { useLaunchpadImageUpload } from \"./utils/use-launchpad-image-upload.js\";\nexport { invalidatePortfolioCache } from \"./utils/portfolio-cache.js\";\nexport { TransactionDialog } from \"./components/transaction-dialog.js\";\nexport type { TransactionDialogProps } from \"./components/transaction-dialog.js\";\nexport { TransactionSuccess, DialogTransactionSuccess } from \"./components/transaction-success.js\";\nexport { TransactionDialogStates } from \"./components/transaction-dialog-states.js\";\nexport { TransferDialog } from \"./components/transfer-dialog.js\";\nexport { MarketplaceSearch, SearchInput } from \"./components/marketplace-search.js\";\nexport { ActiveFilters, FiltersButton, FiltersDialog, useMarketplaceFilters } from \"./components/marketplace-filters.js\";\nexport type { MarketplaceFilters } from \"./components/marketplace-filters.js\";\nexport { useDebouncedValue } from \"./utils/use-debounced-value.js\";\nexport type { TransferDialogProps } from \"./components/transfer-dialog.js\";\nexport type { TransactionDialogStatesProps } from \"./components/transaction-dialog-states.js\";\nexport type { TransactionSuccessProps, TransactionSuccessAction } from \"./components/transaction-success.js\";\nexport { successMessages } from \"./utils/success-messages.js\";\nexport { emptyMessages } from \"./utils/empty-messages.js\";\nexport type { EmptyMessage } from \"./utils/empty-messages.js\";\nexport type { SuccessMessage } from \"./utils/success-messages.js\";\nexport { MedialaneCollectionCard } from \"./components/medialane-collection-card.js\";\nexport type { MedialaneCollectionCardProps } from \"./components/medialane-collection-card.js\";\n\nexport { StatTile, StatPill, StatPillRow } from \"./components/stat-tile.js\";\nexport type { StatTileProps, StatPillProps, StatPillRowItem } from \"./components/stat-tile.js\";\n\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\";\n\nexport { Skeleton } from \"./components/skeleton.js\";\nexport { Badge, badgeVariants } from \"./components/badge.js\";\nexport type { BadgeProps } from \"./components/badge.js\";\nexport { Panel, Pill, panelTint, PANEL_INSET } from \"./components/panel.js\";\nexport { IconTile, type IconTileProps } from \"./components/icon-tile.js\";\nexport type { PanelProps, PanelColor, PillProps } from \"./components/panel.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 { NewCollectionMenu, CollectionTypeChoices, COLLECTION_TYPES } from \"./components/new-collection-menu.js\";\nexport { ExternalLinkField } from \"./components/external-link-field.js\";\nexport { PortfolioCollections } from \"./components/portfolio-collections.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 { 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 { formatActivity } 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, useCreatorByUsername } 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 { CollectionProvenanceTab } from \"./components/collection-provenance-tab.js\";\nexport type { CollectionProvenanceTabProps } from \"./components/collection-provenance-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 { useAccounts } from \"./utils/use-accounts.js\";\nexport { useSearch, SEARCH_MIN_LENGTH, type UseSearchOptions } from \"./utils/use-search.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 { useTokenRemixes } from \"./utils/use-remix-offers.js\";\nexport { useRemixOffers } from \"./utils/use-my-remix-offers.js\";\nexport { useSwapQuote, swapQuoteKey } from \"./utils/use-swap-quote.js\";\nexport { usePaymentOptions, pickPayment, PAYMENT_COINS, type PaymentOption } from \"./utils/use-payment-options.js\";\nexport { PurchasePanel, amountText, editionsAvailable, type PurchasePanelProps } from \"./components/purchase-panel.js\";\nexport type { SwapToken, SwapAmountMode, SwapQuoteSummary } from \"./utils/use-swap-quote.js\";\nexport { RemixesTab } from \"./components/remixes-tab.js\";\nexport type { RemixesTabProps } from \"./components/remixes-tab.js\";\n\nexport { DropCountdown } from \"./components/drop-countdown.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 { useToken, useTokenBalance, useTokenHistory, useTokensByOwner, useOwnedTokens } 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":"AAAA,SAAS,UAAU;AACnB,SAAS,oBAAoB,mBAAmB,kBAAkB,WAAW,gBAAgB,0BAA0B;AACvH,SAAS,sBAAsB;AAC/B,SAAS,uBAAyE;AAClF,SAAS,YAA+B,uBAA6B;AACrE,SAAS,cAAc,oBAAoB,4BAA4B,6BAA6B;AACpG,SAAS,2BAA2B;AACpC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,6BAA6B;AACtC,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,OACK;AAGP,SAAS,cAAc,wBAAwB;AAE/C;AAAA,EACE;AAAA,EAAU;AAAA,EAAe;AAAA,EAAmB;AAAA,EAC5C;AAAA,EAAqB;AAAA,OAChB;AAEP;AAAA,EACE;AAAA,EAAc;AAAA,EAAqB;AAAA,EAAsB;AAAA,EAAsB;AAAA,OAC1E;AAEP,SAAS,qBAAqB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@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { a as DropDraft } from '../../draft-
|
|
1
|
+
import { a as DropDraft } from '../../draft-Dlc0K4p0.cjs';
|
|
2
2
|
import '@medialane/sdk';
|
|
3
3
|
import './sale.cjs';
|
|
4
4
|
import '../../i18n/translate.cjs';
|
|
5
|
+
import '../../components/fast-mint/types.cjs';
|
|
6
|
+
import 'starknet';
|
|
7
|
+
import '@medialane/sdk/starknet';
|
|
5
8
|
|
|
6
9
|
interface DraftStore {
|
|
7
10
|
load(): Promise<DropDraft | null>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { a as DropDraft } from '../../draft-
|
|
1
|
+
import { a as DropDraft } from '../../draft-D1Wfoe3V.js';
|
|
2
2
|
import '@medialane/sdk';
|
|
3
3
|
import './sale.js';
|
|
4
4
|
import '../../i18n/translate.js';
|
|
5
|
+
import '../../components/fast-mint/types.js';
|
|
6
|
+
import 'starknet';
|
|
7
|
+
import '@medialane/sdk/starknet';
|
|
5
8
|
|
|
6
9
|
interface DraftStore {
|
|
7
10
|
load(): Promise<DropDraft | null>;
|
|
@@ -19,6 +19,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var draft_exports = {};
|
|
20
20
|
__export(draft_exports, {
|
|
21
21
|
EMPTY_DRAFT: () => EMPTY_DRAFT,
|
|
22
|
+
assetImage: () => assetImage,
|
|
23
|
+
assetKind: () => assetKind,
|
|
24
|
+
assetMedia: () => assetMedia,
|
|
25
|
+
assetUploads: () => assetUploads,
|
|
22
26
|
draftTokens: () => draftTokens,
|
|
23
27
|
dropSymbol: () => dropSymbol,
|
|
24
28
|
firstMissing: () => firstMissing,
|
|
@@ -35,6 +39,7 @@ var import_metadata = require("./metadata.js");
|
|
|
35
39
|
var import_sale = require("./sale.js");
|
|
36
40
|
var import_format = require("../../i18n/format.js");
|
|
37
41
|
var import_translate = require("../../i18n/translate.js");
|
|
42
|
+
var import_media_kind = require("../../components/fast-mint/media-kind.js");
|
|
38
43
|
const EMPTY_DRAFT = {
|
|
39
44
|
collection: { name: "", description: "", externalUrl: "", cover: null },
|
|
40
45
|
assets: [],
|
|
@@ -55,11 +60,28 @@ const EMPTY_DRAFT = {
|
|
|
55
60
|
gated: { enabled: false, title: "", url: "", type: "" }
|
|
56
61
|
};
|
|
57
62
|
function newAsset(file) {
|
|
58
|
-
return { id: crypto.randomUUID(), file, name: "", description: "", copies: "1", traits: [] };
|
|
63
|
+
return { id: crypto.randomUUID(), file, feature: null, name: "", description: "", copies: "1", traits: [] };
|
|
64
|
+
}
|
|
65
|
+
function assetKind(a) {
|
|
66
|
+
return (0, import_media_kind.detectMediaKind)(a.file.type) ?? "document";
|
|
67
|
+
}
|
|
68
|
+
function assetImage(a) {
|
|
69
|
+
return assetKind(a) === "image" ? a.file : a.feature;
|
|
59
70
|
}
|
|
60
71
|
function dropSymbol(name) {
|
|
61
72
|
return (0, import_launchpad_defaults.suggestLaunchpadSymbol)(name) || "DROP";
|
|
62
73
|
}
|
|
74
|
+
const featureId = (a) => `${a.id}:feature`;
|
|
75
|
+
function assetUploads(assets) {
|
|
76
|
+
return assets.flatMap((a) => [
|
|
77
|
+
{ id: a.id, file: a.file },
|
|
78
|
+
...assetKind(a) !== "image" && a.feature ? [{ id: featureId(a), file: a.feature }] : []
|
|
79
|
+
]);
|
|
80
|
+
}
|
|
81
|
+
function assetMedia(a, uriOf) {
|
|
82
|
+
if (assetKind(a) === "image") return { imageUri: uriOf(a.id), animationUrl: null };
|
|
83
|
+
return { imageUri: uriOf(featureId(a)), animationUrl: uriOf(a.id) };
|
|
84
|
+
}
|
|
63
85
|
function draftTokens(d) {
|
|
64
86
|
return d.assets.reduce((n, a) => n + ((0, import_launchpad_rules.isPositiveInteger)(a.copies) ? Number(a.copies) : 0), 0);
|
|
65
87
|
}
|
|
@@ -67,6 +89,7 @@ const HTTPS = /^https:\/\//;
|
|
|
67
89
|
const RESERVED = new Map([...import_sdk.RESERVED_TRAITS].map((t) => [t.toLowerCase(), t]));
|
|
68
90
|
function assetErrors(a) {
|
|
69
91
|
const e = {};
|
|
92
|
+
if (!assetImage(a)) e.feature = { text: (0, import_translate.msg)("Add a feature image") };
|
|
70
93
|
if (!(0, import_launchpad_rules.isPositiveInteger)(a.copies)) e.copies = { text: (0, import_translate.msg)("Enter 1 or more") };
|
|
71
94
|
const reserved = a.traits.map((t) => RESERVED.get(t.key.trim().toLowerCase())).find(Boolean);
|
|
72
95
|
if (reserved) e.traits = { text: (0, import_translate.msg)("{name} is set by the license terms"), vars: { name: reserved } };
|
|
@@ -108,6 +131,10 @@ function hasErrors(e) {
|
|
|
108
131
|
// Annotate the CommonJS export names for ESM import in node:
|
|
109
132
|
0 && (module.exports = {
|
|
110
133
|
EMPTY_DRAFT,
|
|
134
|
+
assetImage,
|
|
135
|
+
assetKind,
|
|
136
|
+
assetMedia,
|
|
137
|
+
assetUploads,
|
|
111
138
|
draftTokens,
|
|
112
139
|
dropSymbol,
|
|
113
140
|
firstMissing,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/drop/draft.ts"],"sourcesContent":["import { RESERVED_TRAITS } from \"@medialane/sdk\";\nimport { isPositiveInteger } from \"../launchpad-rules.js\";\nimport { suggestLaunchpadSymbol } from \"../launchpad-defaults.js\";\nimport { parseAllowlist } from \"./allowlist.js\";\nimport { MAX_DROP_SUPPLY, type DropLicense } from \"./metadata.js\";\nimport { EMPTY_SALE, validateSale, type SaleDraft, type SaleErrors } from \"./sale.js\";\nimport { formatNumber } from \"../../i18n/format.js\";\nimport { msg, type Phrase } from \"../../i18n/translate.js\";\n\nexport interface DraftTrait {\n key: string;\n value: string;\n}\n\nexport interface DraftAsset {\n id: string;\n file: File;\n name: string;\n description: string;\n copies: string;\n traits: DraftTrait[];\n}\n\nexport interface DropDraft {\n collection: { name: string; description: string; externalUrl: string; cover: File | null };\n assets: DraftAsset[];\n mixOrder: boolean;\n sale: SaleDraft;\n listOnly: boolean;\n allowlist: string;\n license: DropLicense;\n gated: { enabled: boolean; title: string; url: string; type: string };\n}\n\nexport const EMPTY_DRAFT: DropDraft = {\n collection: { name: \"\", description: \"\", externalUrl: \"\", cover: null },\n assets: [],\n mixOrder: true,\n sale: EMPTY_SALE,\n listOnly: false,\n allowlist: \"\",\n license: {\n ipType: \"Art\", licenseType: \"CC BY-SA\", commercialUse: \"Yes\", derivatives: \"Share-Alike\",\n attribution: \"Required\", geographicScope: \"Worldwide\", aiPolicy: \"Allowed\", royalty: \"0\",\n },\n gated: { enabled: false, title: \"\", url: \"\", type: \"\" },\n};\n\nexport function newAsset(file: File): DraftAsset {\n return { id: crypto.randomUUID(), file, name: \"\", description: \"\", copies: \"1\", traits: [] };\n}\n\nexport function dropSymbol(name: string): string {\n return suggestLaunchpadSymbol(name) || \"DROP\";\n}\n\nexport function draftTokens(d: DropDraft): number {\n return d.assets.reduce((n, a) => n + (isPositiveInteger(a.copies) ? Number(a.copies) : 0), 0);\n}\n\nexport type DropPanel = \"collection\" | \"assets\" | \"settings\";\n\ntype AssetErrors = Partial<Record<\"copies\" | \"traits\", Phrase>>;\n\nexport interface DropDraftErrors {\n collection: Partial<Record<\"name\" | \"externalUrl\", Phrase>>;\n assets: { list?: Phrase; byId: Record<string, AssetErrors> };\n settings: SaleErrors & Partial<Record<\"allowlist\" | \"gated\", Phrase>>;\n}\n\nconst HTTPS = /^https:\\/\\//;\nconst RESERVED = new Map([...RESERVED_TRAITS].map((t) => [t.toLowerCase(), t]));\n\nfunction assetErrors(a: DraftAsset): AssetErrors | null {\n const e: AssetErrors = {};\n if (!isPositiveInteger(a.copies)) e.copies = { text: msg(\"Enter 1 or more\") };\n const reserved = a.traits.map((t) => RESERVED.get(t.key.trim().toLowerCase())).find(Boolean);\n if (reserved) e.traits = { text: msg(\"{name} is set by the license terms\"), vars: { name: reserved } };\n return Object.keys(e).length > 0 ? e : null;\n}\n\nexport function validateDropDraft(d: DropDraft, now: number): DropDraftErrors {\n const collection: DropDraftErrors[\"collection\"] = {};\n if (!d.collection.name.trim()) collection.name = { text: msg(\"Name the collection\") };\n if (d.collection.externalUrl.trim() && !HTTPS.test(d.collection.externalUrl.trim())) collection.externalUrl = { text: msg(\"Add a link starting with https://\") };\n\n const assets: DropDraftErrors[\"assets\"] = { byId: {} };\n for (const a of d.assets) {\n const e = assetErrors(a);\n if (e) assets.byId[a.id] = e;\n }\n if (d.assets.length === 0) assets.list = { text: msg(\"Add an asset\") };\n else if (draftTokens(d) > MAX_DROP_SUPPLY) assets.list = { text: msg(\"Up to {count} tokens\"), vars: { count: formatNumber(MAX_DROP_SUPPLY) } };\n\n const settings: DropDraftErrors[\"settings\"] = { ...validateSale(d.sale, now) };\n if (d.listOnly) {\n const list = parseAllowlist(d.allowlist);\n if (list.invalid.length > 0) settings.allowlist = { text: msg(\"Not wallet addresses: {lines}\"), vars: { lines: list.invalid.slice(0, 3).join(\", \") } };\n else if (list.addresses.length === 0) settings.allowlist = { text: msg(\"Add at least one wallet address\") };\n }\n if (d.gated.enabled && !HTTPS.test(d.gated.url)) settings.gated = { text: msg(\"Add a link starting with https://\") };\n return { collection, assets, settings };\n}\n\nconst firstValue = (o: object): Phrase | undefined => Object.values(o).find((v): v is Phrase => !!v && typeof v === \"object\" && \"text\" in v);\n\nexport function firstMissing(e: DropDraftErrors): { panel: DropPanel; message: Phrase } | null {\n const collection = firstValue(e.collection);\n if (collection) return { panel: \"collection\", message: collection };\n const asset = e.assets.list ?? Object.values(e.assets.byId).map(firstValue).find(Boolean);\n if (asset) return { panel: \"assets\", message: asset };\n const settings = firstValue(e.settings);\n if (settings) return { panel: \"settings\", message: settings };\n return null;\n}\n\nexport function hasErrors(e: DropDraftErrors): boolean {\n return firstMissing(e) !== null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAgC;AAChC,6BAAkC;AAClC,gCAAuC;AACvC,uBAA+B;AAC/B,sBAAkD;AAClD,kBAA0E;AAC1E,oBAA6B;AAC7B,uBAAiC;
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/drop/draft.ts"],"sourcesContent":["import { RESERVED_TRAITS } from \"@medialane/sdk\";\nimport { isPositiveInteger } from \"../launchpad-rules.js\";\nimport { suggestLaunchpadSymbol } from \"../launchpad-defaults.js\";\nimport { parseAllowlist } from \"./allowlist.js\";\nimport { MAX_DROP_SUPPLY, type DropLicense } from \"./metadata.js\";\nimport { EMPTY_SALE, validateSale, type SaleDraft, type SaleErrors } from \"./sale.js\";\nimport { formatNumber } from \"../../i18n/format.js\";\nimport { msg, type Phrase } from \"../../i18n/translate.js\";\nimport { detectMediaKind } from \"../../components/fast-mint/media-kind.js\";\nimport type { MediaKind } from \"../../components/fast-mint/types.js\";\n\nexport interface DraftTrait {\n key: string;\n value: string;\n}\n\nexport interface DraftAsset {\n id: string;\n file: File;\n feature: File | null;\n name: string;\n description: string;\n copies: string;\n traits: DraftTrait[];\n}\n\nexport interface DropDraft {\n collection: { name: string; description: string; externalUrl: string; cover: File | null };\n assets: DraftAsset[];\n mixOrder: boolean;\n sale: SaleDraft;\n listOnly: boolean;\n allowlist: string;\n license: DropLicense;\n gated: { enabled: boolean; title: string; url: string; type: string };\n}\n\nexport const EMPTY_DRAFT: DropDraft = {\n collection: { name: \"\", description: \"\", externalUrl: \"\", cover: null },\n assets: [],\n mixOrder: true,\n sale: EMPTY_SALE,\n listOnly: false,\n allowlist: \"\",\n license: {\n ipType: \"Art\", licenseType: \"CC BY-SA\", commercialUse: \"Yes\", derivatives: \"Share-Alike\",\n attribution: \"Required\", geographicScope: \"Worldwide\", aiPolicy: \"Allowed\", royalty: \"0\",\n },\n gated: { enabled: false, title: \"\", url: \"\", type: \"\" },\n};\n\nexport function newAsset(file: File): DraftAsset {\n return { id: crypto.randomUUID(), file, feature: null, name: \"\", description: \"\", copies: \"1\", traits: [] };\n}\n\nexport function assetKind(a: DraftAsset): MediaKind {\n return detectMediaKind(a.file.type) ?? \"document\";\n}\n\nexport function assetImage(a: DraftAsset): File | null {\n return assetKind(a) === \"image\" ? a.file : a.feature;\n}\n\nexport function dropSymbol(name: string): string {\n return suggestLaunchpadSymbol(name) || \"DROP\";\n}\n\nconst featureId = (a: DraftAsset) => `${a.id}:feature`;\n\nexport function assetUploads(assets: DraftAsset[]): { id: string; file: File }[] {\n return assets.flatMap((a) => [\n { id: a.id, file: a.file },\n ...(assetKind(a) !== \"image\" && a.feature ? [{ id: featureId(a), file: a.feature }] : []),\n ]);\n}\n\nexport function assetMedia(a: DraftAsset, uriOf: (id: string) => string | null): { imageUri: string; animationUrl: string | null } {\n if (assetKind(a) === \"image\") return { imageUri: uriOf(a.id)!, animationUrl: null };\n return { imageUri: uriOf(featureId(a))!, animationUrl: uriOf(a.id) };\n}\n\nexport function draftTokens(d: DropDraft): number {\n return d.assets.reduce((n, a) => n + (isPositiveInteger(a.copies) ? Number(a.copies) : 0), 0);\n}\n\nexport type DropPanel = \"collection\" | \"assets\" | \"settings\";\n\ntype AssetErrors = Partial<Record<\"copies\" | \"traits\" | \"feature\", Phrase>>;\n\nexport interface DropDraftErrors {\n collection: Partial<Record<\"name\" | \"externalUrl\", Phrase>>;\n assets: { list?: Phrase; byId: Record<string, AssetErrors> };\n settings: SaleErrors & Partial<Record<\"allowlist\" | \"gated\", Phrase>>;\n}\n\nconst HTTPS = /^https:\\/\\//;\nconst RESERVED = new Map([...RESERVED_TRAITS].map((t) => [t.toLowerCase(), t]));\n\nfunction assetErrors(a: DraftAsset): AssetErrors | null {\n const e: AssetErrors = {};\n if (!assetImage(a)) e.feature = { text: msg(\"Add a feature image\") };\n if (!isPositiveInteger(a.copies)) e.copies = { text: msg(\"Enter 1 or more\") };\n const reserved = a.traits.map((t) => RESERVED.get(t.key.trim().toLowerCase())).find(Boolean);\n if (reserved) e.traits = { text: msg(\"{name} is set by the license terms\"), vars: { name: reserved } };\n return Object.keys(e).length > 0 ? e : null;\n}\n\nexport function validateDropDraft(d: DropDraft, now: number): DropDraftErrors {\n const collection: DropDraftErrors[\"collection\"] = {};\n if (!d.collection.name.trim()) collection.name = { text: msg(\"Name the collection\") };\n if (d.collection.externalUrl.trim() && !HTTPS.test(d.collection.externalUrl.trim())) collection.externalUrl = { text: msg(\"Add a link starting with https://\") };\n\n const assets: DropDraftErrors[\"assets\"] = { byId: {} };\n for (const a of d.assets) {\n const e = assetErrors(a);\n if (e) assets.byId[a.id] = e;\n }\n if (d.assets.length === 0) assets.list = { text: msg(\"Add an asset\") };\n else if (draftTokens(d) > MAX_DROP_SUPPLY) assets.list = { text: msg(\"Up to {count} tokens\"), vars: { count: formatNumber(MAX_DROP_SUPPLY) } };\n\n const settings: DropDraftErrors[\"settings\"] = { ...validateSale(d.sale, now) };\n if (d.listOnly) {\n const list = parseAllowlist(d.allowlist);\n if (list.invalid.length > 0) settings.allowlist = { text: msg(\"Not wallet addresses: {lines}\"), vars: { lines: list.invalid.slice(0, 3).join(\", \") } };\n else if (list.addresses.length === 0) settings.allowlist = { text: msg(\"Add at least one wallet address\") };\n }\n if (d.gated.enabled && !HTTPS.test(d.gated.url)) settings.gated = { text: msg(\"Add a link starting with https://\") };\n return { collection, assets, settings };\n}\n\nconst firstValue = (o: object): Phrase | undefined => Object.values(o).find((v): v is Phrase => !!v && typeof v === \"object\" && \"text\" in v);\n\nexport function firstMissing(e: DropDraftErrors): { panel: DropPanel; message: Phrase } | null {\n const collection = firstValue(e.collection);\n if (collection) return { panel: \"collection\", message: collection };\n const asset = e.assets.list ?? Object.values(e.assets.byId).map(firstValue).find(Boolean);\n if (asset) return { panel: \"assets\", message: asset };\n const settings = firstValue(e.settings);\n if (settings) return { panel: \"settings\", message: settings };\n return null;\n}\n\nexport function hasErrors(e: DropDraftErrors): boolean {\n return firstMissing(e) !== null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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;AAC1C,MAAI,WAAY,QAAO,EAAE,OAAO,cAAc,SAAS,WAAW;AAClE,QAAM,QAAQ,EAAE,OAAO,QAAQ,OAAO,OAAO,EAAE,OAAO,IAAI,EAAE,IAAI,UAAU,EAAE,KAAK,OAAO;AACxF,MAAI,MAAO,QAAO,EAAE,OAAO,UAAU,SAAS,MAAM;AACpD,QAAM,WAAW,WAAW,EAAE,QAAQ;AACtC,MAAI,SAAU,QAAO,EAAE,OAAO,YAAY,SAAS,SAAS;AAC5D,SAAO;AACT;AAEO,SAAS,UAAU,GAA6B;AACrD,SAAO,aAAa,CAAC,MAAM;AAC7B;","names":[]}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export { D as DraftAsset, j as DraftTrait, a as DropDraft, b as DropDraftErrors, k as DropPanel, E as EMPTY_DRAFT, l as draftTokens, d as dropSymbol,
|
|
1
|
+
export { D as DraftAsset, j as DraftTrait, a as DropDraft, b as DropDraftErrors, k as DropPanel, E as EMPTY_DRAFT, l as assetImage, n as assetKind, o as assetMedia, p as assetUploads, q as draftTokens, d as dropSymbol, r as firstMissing, s as hasErrors, u as newAsset, v as validateDropDraft } from '../../draft-Dlc0K4p0.cjs';
|
|
2
2
|
import './sale.cjs';
|
|
3
3
|
import '../../i18n/translate.cjs';
|
|
4
|
+
import '../../components/fast-mint/types.cjs';
|
|
4
5
|
import '@medialane/sdk';
|
|
6
|
+
import 'starknet';
|
|
7
|
+
import '@medialane/sdk/starknet';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export { D as DraftAsset, j as DraftTrait, a as DropDraft, b as DropDraftErrors, k as DropPanel, E as EMPTY_DRAFT, l as draftTokens, d as dropSymbol,
|
|
1
|
+
export { D as DraftAsset, j as DraftTrait, a as DropDraft, b as DropDraftErrors, k as DropPanel, E as EMPTY_DRAFT, l as assetImage, n as assetKind, o as assetMedia, p as assetUploads, q as draftTokens, d as dropSymbol, r as firstMissing, s as hasErrors, u as newAsset, v as validateDropDraft } from '../../draft-D1Wfoe3V.js';
|
|
2
2
|
import './sale.js';
|
|
3
3
|
import '../../i18n/translate.js';
|
|
4
|
+
import '../../components/fast-mint/types.js';
|
|
4
5
|
import '@medialane/sdk';
|
|
6
|
+
import 'starknet';
|
|
7
|
+
import '@medialane/sdk/starknet';
|
package/dist/utils/drop/draft.js
CHANGED
|
@@ -6,6 +6,7 @@ import { MAX_DROP_SUPPLY } from "./metadata.js";
|
|
|
6
6
|
import { EMPTY_SALE, validateSale } from "./sale.js";
|
|
7
7
|
import { formatNumber } from "../../i18n/format.js";
|
|
8
8
|
import { msg } from "../../i18n/translate.js";
|
|
9
|
+
import { detectMediaKind } from "../../components/fast-mint/media-kind.js";
|
|
9
10
|
const EMPTY_DRAFT = {
|
|
10
11
|
collection: { name: "", description: "", externalUrl: "", cover: null },
|
|
11
12
|
assets: [],
|
|
@@ -26,11 +27,28 @@ const EMPTY_DRAFT = {
|
|
|
26
27
|
gated: { enabled: false, title: "", url: "", type: "" }
|
|
27
28
|
};
|
|
28
29
|
function newAsset(file) {
|
|
29
|
-
return { id: crypto.randomUUID(), file, name: "", description: "", copies: "1", traits: [] };
|
|
30
|
+
return { id: crypto.randomUUID(), file, feature: null, name: "", description: "", copies: "1", traits: [] };
|
|
31
|
+
}
|
|
32
|
+
function assetKind(a) {
|
|
33
|
+
return detectMediaKind(a.file.type) ?? "document";
|
|
34
|
+
}
|
|
35
|
+
function assetImage(a) {
|
|
36
|
+
return assetKind(a) === "image" ? a.file : a.feature;
|
|
30
37
|
}
|
|
31
38
|
function dropSymbol(name) {
|
|
32
39
|
return suggestLaunchpadSymbol(name) || "DROP";
|
|
33
40
|
}
|
|
41
|
+
const featureId = (a) => `${a.id}:feature`;
|
|
42
|
+
function assetUploads(assets) {
|
|
43
|
+
return assets.flatMap((a) => [
|
|
44
|
+
{ id: a.id, file: a.file },
|
|
45
|
+
...assetKind(a) !== "image" && a.feature ? [{ id: featureId(a), file: a.feature }] : []
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
48
|
+
function assetMedia(a, uriOf) {
|
|
49
|
+
if (assetKind(a) === "image") return { imageUri: uriOf(a.id), animationUrl: null };
|
|
50
|
+
return { imageUri: uriOf(featureId(a)), animationUrl: uriOf(a.id) };
|
|
51
|
+
}
|
|
34
52
|
function draftTokens(d) {
|
|
35
53
|
return d.assets.reduce((n, a) => n + (isPositiveInteger(a.copies) ? Number(a.copies) : 0), 0);
|
|
36
54
|
}
|
|
@@ -38,6 +56,7 @@ const HTTPS = /^https:\/\//;
|
|
|
38
56
|
const RESERVED = new Map([...RESERVED_TRAITS].map((t) => [t.toLowerCase(), t]));
|
|
39
57
|
function assetErrors(a) {
|
|
40
58
|
const e = {};
|
|
59
|
+
if (!assetImage(a)) e.feature = { text: msg("Add a feature image") };
|
|
41
60
|
if (!isPositiveInteger(a.copies)) e.copies = { text: msg("Enter 1 or more") };
|
|
42
61
|
const reserved = a.traits.map((t) => RESERVED.get(t.key.trim().toLowerCase())).find(Boolean);
|
|
43
62
|
if (reserved) e.traits = { text: msg("{name} is set by the license terms"), vars: { name: reserved } };
|
|
@@ -78,6 +97,10 @@ function hasErrors(e) {
|
|
|
78
97
|
}
|
|
79
98
|
export {
|
|
80
99
|
EMPTY_DRAFT,
|
|
100
|
+
assetImage,
|
|
101
|
+
assetKind,
|
|
102
|
+
assetMedia,
|
|
103
|
+
assetUploads,
|
|
81
104
|
draftTokens,
|
|
82
105
|
dropSymbol,
|
|
83
106
|
firstMissing,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/drop/draft.ts"],"sourcesContent":["import { RESERVED_TRAITS } from \"@medialane/sdk\";\nimport { isPositiveInteger } from \"../launchpad-rules.js\";\nimport { suggestLaunchpadSymbol } from \"../launchpad-defaults.js\";\nimport { parseAllowlist } from \"./allowlist.js\";\nimport { MAX_DROP_SUPPLY, type DropLicense } from \"./metadata.js\";\nimport { EMPTY_SALE, validateSale, type SaleDraft, type SaleErrors } from \"./sale.js\";\nimport { formatNumber } from \"../../i18n/format.js\";\nimport { msg, type Phrase } from \"../../i18n/translate.js\";\n\nexport interface DraftTrait {\n key: string;\n value: string;\n}\n\nexport interface DraftAsset {\n id: string;\n file: File;\n name: string;\n description: string;\n copies: string;\n traits: DraftTrait[];\n}\n\nexport interface DropDraft {\n collection: { name: string; description: string; externalUrl: string; cover: File | null };\n assets: DraftAsset[];\n mixOrder: boolean;\n sale: SaleDraft;\n listOnly: boolean;\n allowlist: string;\n license: DropLicense;\n gated: { enabled: boolean; title: string; url: string; type: string };\n}\n\nexport const EMPTY_DRAFT: DropDraft = {\n collection: { name: \"\", description: \"\", externalUrl: \"\", cover: null },\n assets: [],\n mixOrder: true,\n sale: EMPTY_SALE,\n listOnly: false,\n allowlist: \"\",\n license: {\n ipType: \"Art\", licenseType: \"CC BY-SA\", commercialUse: \"Yes\", derivatives: \"Share-Alike\",\n attribution: \"Required\", geographicScope: \"Worldwide\", aiPolicy: \"Allowed\", royalty: \"0\",\n },\n gated: { enabled: false, title: \"\", url: \"\", type: \"\" },\n};\n\nexport function newAsset(file: File): DraftAsset {\n return { id: crypto.randomUUID(), file, name: \"\", description: \"\", copies: \"1\", traits: [] };\n}\n\nexport function dropSymbol(name: string): string {\n return suggestLaunchpadSymbol(name) || \"DROP\";\n}\n\nexport function draftTokens(d: DropDraft): number {\n return d.assets.reduce((n, a) => n + (isPositiveInteger(a.copies) ? Number(a.copies) : 0), 0);\n}\n\nexport type DropPanel = \"collection\" | \"assets\" | \"settings\";\n\ntype AssetErrors = Partial<Record<\"copies\" | \"traits\", Phrase>>;\n\nexport interface DropDraftErrors {\n collection: Partial<Record<\"name\" | \"externalUrl\", Phrase>>;\n assets: { list?: Phrase; byId: Record<string, AssetErrors> };\n settings: SaleErrors & Partial<Record<\"allowlist\" | \"gated\", Phrase>>;\n}\n\nconst HTTPS = /^https:\\/\\//;\nconst RESERVED = new Map([...RESERVED_TRAITS].map((t) => [t.toLowerCase(), t]));\n\nfunction assetErrors(a: DraftAsset): AssetErrors | null {\n const e: AssetErrors = {};\n if (!isPositiveInteger(a.copies)) e.copies = { text: msg(\"Enter 1 or more\") };\n const reserved = a.traits.map((t) => RESERVED.get(t.key.trim().toLowerCase())).find(Boolean);\n if (reserved) e.traits = { text: msg(\"{name} is set by the license terms\"), vars: { name: reserved } };\n return Object.keys(e).length > 0 ? e : null;\n}\n\nexport function validateDropDraft(d: DropDraft, now: number): DropDraftErrors {\n const collection: DropDraftErrors[\"collection\"] = {};\n if (!d.collection.name.trim()) collection.name = { text: msg(\"Name the collection\") };\n if (d.collection.externalUrl.trim() && !HTTPS.test(d.collection.externalUrl.trim())) collection.externalUrl = { text: msg(\"Add a link starting with https://\") };\n\n const assets: DropDraftErrors[\"assets\"] = { byId: {} };\n for (const a of d.assets) {\n const e = assetErrors(a);\n if (e) assets.byId[a.id] = e;\n }\n if (d.assets.length === 0) assets.list = { text: msg(\"Add an asset\") };\n else if (draftTokens(d) > MAX_DROP_SUPPLY) assets.list = { text: msg(\"Up to {count} tokens\"), vars: { count: formatNumber(MAX_DROP_SUPPLY) } };\n\n const settings: DropDraftErrors[\"settings\"] = { ...validateSale(d.sale, now) };\n if (d.listOnly) {\n const list = parseAllowlist(d.allowlist);\n if (list.invalid.length > 0) settings.allowlist = { text: msg(\"Not wallet addresses: {lines}\"), vars: { lines: list.invalid.slice(0, 3).join(\", \") } };\n else if (list.addresses.length === 0) settings.allowlist = { text: msg(\"Add at least one wallet address\") };\n }\n if (d.gated.enabled && !HTTPS.test(d.gated.url)) settings.gated = { text: msg(\"Add a link starting with https://\") };\n return { collection, assets, settings };\n}\n\nconst firstValue = (o: object): Phrase | undefined => Object.values(o).find((v): v is Phrase => !!v && typeof v === \"object\" && \"text\" in v);\n\nexport function firstMissing(e: DropDraftErrors): { panel: DropPanel; message: Phrase } | null {\n const collection = firstValue(e.collection);\n if (collection) return { panel: \"collection\", message: collection };\n const asset = e.assets.list ?? Object.values(e.assets.byId).map(firstValue).find(Boolean);\n if (asset) return { panel: \"assets\", message: asset };\n const settings = firstValue(e.settings);\n if (settings) return { panel: \"settings\", message: settings };\n return null;\n}\n\nexport function hasErrors(e: DropDraftErrors): boolean {\n return firstMissing(e) !== null;\n}\n"],"mappings":"AAAA,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,sBAAsB;AAC/B,SAAS,uBAAyC;AAClD,SAAS,YAAY,oBAAqD;AAC1E,SAAS,oBAAoB;AAC7B,SAAS,WAAwB;
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/drop/draft.ts"],"sourcesContent":["import { RESERVED_TRAITS } from \"@medialane/sdk\";\nimport { isPositiveInteger } from \"../launchpad-rules.js\";\nimport { suggestLaunchpadSymbol } from \"../launchpad-defaults.js\";\nimport { parseAllowlist } from \"./allowlist.js\";\nimport { MAX_DROP_SUPPLY, type DropLicense } from \"./metadata.js\";\nimport { EMPTY_SALE, validateSale, type SaleDraft, type SaleErrors } from \"./sale.js\";\nimport { formatNumber } from \"../../i18n/format.js\";\nimport { msg, type Phrase } from \"../../i18n/translate.js\";\nimport { detectMediaKind } from \"../../components/fast-mint/media-kind.js\";\nimport type { MediaKind } from \"../../components/fast-mint/types.js\";\n\nexport interface DraftTrait {\n key: string;\n value: string;\n}\n\nexport interface DraftAsset {\n id: string;\n file: File;\n feature: File | null;\n name: string;\n description: string;\n copies: string;\n traits: DraftTrait[];\n}\n\nexport interface DropDraft {\n collection: { name: string; description: string; externalUrl: string; cover: File | null };\n assets: DraftAsset[];\n mixOrder: boolean;\n sale: SaleDraft;\n listOnly: boolean;\n allowlist: string;\n license: DropLicense;\n gated: { enabled: boolean; title: string; url: string; type: string };\n}\n\nexport const EMPTY_DRAFT: DropDraft = {\n collection: { name: \"\", description: \"\", externalUrl: \"\", cover: null },\n assets: [],\n mixOrder: true,\n sale: EMPTY_SALE,\n listOnly: false,\n allowlist: \"\",\n license: {\n ipType: \"Art\", licenseType: \"CC BY-SA\", commercialUse: \"Yes\", derivatives: \"Share-Alike\",\n attribution: \"Required\", geographicScope: \"Worldwide\", aiPolicy: \"Allowed\", royalty: \"0\",\n },\n gated: { enabled: false, title: \"\", url: \"\", type: \"\" },\n};\n\nexport function newAsset(file: File): DraftAsset {\n return { id: crypto.randomUUID(), file, feature: null, name: \"\", description: \"\", copies: \"1\", traits: [] };\n}\n\nexport function assetKind(a: DraftAsset): MediaKind {\n return detectMediaKind(a.file.type) ?? \"document\";\n}\n\nexport function assetImage(a: DraftAsset): File | null {\n return assetKind(a) === \"image\" ? a.file : a.feature;\n}\n\nexport function dropSymbol(name: string): string {\n return suggestLaunchpadSymbol(name) || \"DROP\";\n}\n\nconst featureId = (a: DraftAsset) => `${a.id}:feature`;\n\nexport function assetUploads(assets: DraftAsset[]): { id: string; file: File }[] {\n return assets.flatMap((a) => [\n { id: a.id, file: a.file },\n ...(assetKind(a) !== \"image\" && a.feature ? [{ id: featureId(a), file: a.feature }] : []),\n ]);\n}\n\nexport function assetMedia(a: DraftAsset, uriOf: (id: string) => string | null): { imageUri: string; animationUrl: string | null } {\n if (assetKind(a) === \"image\") return { imageUri: uriOf(a.id)!, animationUrl: null };\n return { imageUri: uriOf(featureId(a))!, animationUrl: uriOf(a.id) };\n}\n\nexport function draftTokens(d: DropDraft): number {\n return d.assets.reduce((n, a) => n + (isPositiveInteger(a.copies) ? Number(a.copies) : 0), 0);\n}\n\nexport type DropPanel = \"collection\" | \"assets\" | \"settings\";\n\ntype AssetErrors = Partial<Record<\"copies\" | \"traits\" | \"feature\", Phrase>>;\n\nexport interface DropDraftErrors {\n collection: Partial<Record<\"name\" | \"externalUrl\", Phrase>>;\n assets: { list?: Phrase; byId: Record<string, AssetErrors> };\n settings: SaleErrors & Partial<Record<\"allowlist\" | \"gated\", Phrase>>;\n}\n\nconst HTTPS = /^https:\\/\\//;\nconst RESERVED = new Map([...RESERVED_TRAITS].map((t) => [t.toLowerCase(), t]));\n\nfunction assetErrors(a: DraftAsset): AssetErrors | null {\n const e: AssetErrors = {};\n if (!assetImage(a)) e.feature = { text: msg(\"Add a feature image\") };\n if (!isPositiveInteger(a.copies)) e.copies = { text: msg(\"Enter 1 or more\") };\n const reserved = a.traits.map((t) => RESERVED.get(t.key.trim().toLowerCase())).find(Boolean);\n if (reserved) e.traits = { text: msg(\"{name} is set by the license terms\"), vars: { name: reserved } };\n return Object.keys(e).length > 0 ? e : null;\n}\n\nexport function validateDropDraft(d: DropDraft, now: number): DropDraftErrors {\n const collection: DropDraftErrors[\"collection\"] = {};\n if (!d.collection.name.trim()) collection.name = { text: msg(\"Name the collection\") };\n if (d.collection.externalUrl.trim() && !HTTPS.test(d.collection.externalUrl.trim())) collection.externalUrl = { text: msg(\"Add a link starting with https://\") };\n\n const assets: DropDraftErrors[\"assets\"] = { byId: {} };\n for (const a of d.assets) {\n const e = assetErrors(a);\n if (e) assets.byId[a.id] = e;\n }\n if (d.assets.length === 0) assets.list = { text: msg(\"Add an asset\") };\n else if (draftTokens(d) > MAX_DROP_SUPPLY) assets.list = { text: msg(\"Up to {count} tokens\"), vars: { count: formatNumber(MAX_DROP_SUPPLY) } };\n\n const settings: DropDraftErrors[\"settings\"] = { ...validateSale(d.sale, now) };\n if (d.listOnly) {\n const list = parseAllowlist(d.allowlist);\n if (list.invalid.length > 0) settings.allowlist = { text: msg(\"Not wallet addresses: {lines}\"), vars: { lines: list.invalid.slice(0, 3).join(\", \") } };\n else if (list.addresses.length === 0) settings.allowlist = { text: msg(\"Add at least one wallet address\") };\n }\n if (d.gated.enabled && !HTTPS.test(d.gated.url)) settings.gated = { text: msg(\"Add a link starting with https://\") };\n return { collection, assets, settings };\n}\n\nconst firstValue = (o: object): Phrase | undefined => Object.values(o).find((v): v is Phrase => !!v && typeof v === \"object\" && \"text\" in v);\n\nexport function firstMissing(e: DropDraftErrors): { panel: DropPanel; message: Phrase } | null {\n const collection = firstValue(e.collection);\n if (collection) return { panel: \"collection\", message: collection };\n const asset = e.assets.list ?? Object.values(e.assets.byId).map(firstValue).find(Boolean);\n if (asset) return { panel: \"assets\", message: asset };\n const settings = firstValue(e.settings);\n if (settings) return { panel: \"settings\", message: settings };\n return null;\n}\n\nexport function hasErrors(e: DropDraftErrors): boolean {\n return firstMissing(e) !== null;\n}\n"],"mappings":"AAAA,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,sBAAsB;AAC/B,SAAS,uBAAyC;AAClD,SAAS,YAAY,oBAAqD;AAC1E,SAAS,oBAAoB;AAC7B,SAAS,WAAwB;AACjC,SAAS,uBAAuB;AA6BzB,MAAM,cAAyB;AAAA,EACpC,YAAY,EAAE,MAAM,IAAI,aAAa,IAAI,aAAa,IAAI,OAAO,KAAK;AAAA,EACtE,QAAQ,CAAC;AAAA,EACT,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS;AAAA,IACP,QAAQ;AAAA,IAAO,aAAa;AAAA,IAAY,eAAe;AAAA,IAAO,aAAa;AAAA,IAC3E,aAAa;AAAA,IAAY,iBAAiB;AAAA,IAAa,UAAU;AAAA,IAAW,SAAS;AAAA,EACvF;AAAA,EACA,OAAO,EAAE,SAAS,OAAO,OAAO,IAAI,KAAK,IAAI,MAAM,GAAG;AACxD;AAEO,SAAS,SAAS,MAAwB;AAC/C,SAAO,EAAE,IAAI,OAAO,WAAW,GAAG,MAAM,SAAS,MAAM,MAAM,IAAI,aAAa,IAAI,QAAQ,KAAK,QAAQ,CAAC,EAAE;AAC5G;AAEO,SAAS,UAAU,GAA0B;AAClD,SAAO,gBAAgB,EAAE,KAAK,IAAI,KAAK;AACzC;AAEO,SAAS,WAAW,GAA4B;AACrD,SAAO,UAAU,CAAC,MAAM,UAAU,EAAE,OAAO,EAAE;AAC/C;AAEO,SAAS,WAAW,MAAsB;AAC/C,SAAO,uBAAuB,IAAI,KAAK;AACzC;AAEA,MAAM,YAAY,CAAC,MAAkB,GAAG,EAAE,EAAE;AAErC,SAAS,aAAa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CAAC,MAAkC,OAAO,OAAO,CAAC,EAAE,KAAK,CAAC,MAAmB,CAAC,CAAC,KAAK,OAAO,MAAM,YAAY,UAAU,CAAC;AAEpI,SAAS,aAAa,GAAkE;AAC7F,QAAM,aAAa,WAAW,EAAE,UAAU;AAC1C,MAAI,WAAY,QAAO,EAAE,OAAO,cAAc,SAAS,WAAW;AAClE,QAAM,QAAQ,EAAE,OAAO,QAAQ,OAAO,OAAO,EAAE,OAAO,IAAI,EAAE,IAAI,UAAU,EAAE,KAAK,OAAO;AACxF,MAAI,MAAO,QAAO,EAAE,OAAO,UAAU,SAAS,MAAM;AACpD,QAAM,WAAW,WAAW,EAAE,QAAQ;AACtC,MAAI,SAAU,QAAO,EAAE,OAAO,YAAY,SAAS,SAAS;AAC5D,SAAO;AACT;AAEO,SAAS,UAAU,GAA6B;AACrD,SAAO,aAAa,CAAC,MAAM;AAC7B;","names":[]}
|
|
@@ -48,19 +48,17 @@ function buildDropMetadataFiles(input) {
|
|
|
48
48
|
const id = i + 1;
|
|
49
49
|
const asset = input.assets[index];
|
|
50
50
|
seen[index] += 1;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
})
|
|
63
|
-
};
|
|
51
|
+
const content = (0, import_sdk.buildAssetMetadata)({
|
|
52
|
+
...input.license,
|
|
53
|
+
name: asset.name.trim() || `${input.name} #${id}`,
|
|
54
|
+
description: asset.description.trim() || input.description,
|
|
55
|
+
externalUrl,
|
|
56
|
+
imageUri: asset.imageUri,
|
|
57
|
+
creator: input.creator,
|
|
58
|
+
edition: asset.copies > 1 ? `${seen[index]}/${asset.copies}` : null,
|
|
59
|
+
templateTraits: asset.traits.map((t) => ({ traitType: t.key, value: t.value }))
|
|
60
|
+
});
|
|
61
|
+
return { name: String(id), content: asset.animationUrl ? { ...content, animation_url: asset.animationUrl } : content };
|
|
64
62
|
});
|
|
65
63
|
files.push({
|
|
66
64
|
name: "collection.json",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/drop/metadata.ts"],"sourcesContent":["import { buildAssetMetadata, type BuildAssetMetadataInput } from \"@medialane/sdk\";\nimport type { DraftTrait } from \"./draft.js\";\n\nexport const MAX_DROP_SUPPLY = 2000;\nexport const MAX_DROP_METADATA_BYTES = 5 * 1024 * 1024;\n\nexport type DropKind = \"edition\" | \"collection\";\n\nexport type DropLicense = Record<\n keyof Pick<BuildAssetMetadataInput, \"ipType\" | \"licenseType\" | \"commercialUse\" | \"derivatives\" | \"attribution\" | \"geographicScope\" | \"aiPolicy\" | \"royalty\">,\n string\n>;\n\nexport interface DropMetadataInput {\n name: string;\n description: string;\n externalUrl: string;\n creator: string;\n coverUri: string | null;\n license: DropLicense;\n assets: { name: string; description: string; imageUri: string; copies: number; traits: DraftTrait[] }[];\n order: number[];\n}\n\nexport interface DropMetadataFile {\n name: string;\n content: unknown;\n}\n\nfunction secureRandom(n: number): number {\n const [value] = crypto.getRandomValues(new Uint32Array(1));\n return value! % n;\n}\n\nexport function tokenOrder(copies: number[], mix: boolean, random: (n: number) => number = secureRandom): number[] {\n const order = copies.flatMap((count, asset) => Array.from({ length: count }, () => asset));\n if (!mix) return order;\n for (let i = order.length - 1; i > 0; i--) {\n const j = random(i + 1);\n [order[i], order[j]] = [order[j]!, order[i]!];\n }\n return order;\n}\n\nexport function buildDropMetadataFiles(input: DropMetadataInput): DropMetadataFile[] {\n const externalUrl = input.externalUrl.trim() || null;\n const seen = input.assets.map(() => 0);\n const files: DropMetadataFile[] = input.order.map((index, i) => {\n const id = i + 1;\n const asset = input.assets[index]!;\n seen[index]! += 1;\n
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/drop/metadata.ts"],"sourcesContent":["import { buildAssetMetadata, type BuildAssetMetadataInput } from \"@medialane/sdk\";\nimport type { DraftTrait } from \"./draft.js\";\n\nexport const MAX_DROP_SUPPLY = 2000;\nexport const MAX_DROP_METADATA_BYTES = 5 * 1024 * 1024;\n\nexport type DropKind = \"edition\" | \"collection\";\n\nexport type DropLicense = Record<\n keyof Pick<BuildAssetMetadataInput, \"ipType\" | \"licenseType\" | \"commercialUse\" | \"derivatives\" | \"attribution\" | \"geographicScope\" | \"aiPolicy\" | \"royalty\">,\n string\n>;\n\nexport interface DropMetadataInput {\n name: string;\n description: string;\n externalUrl: string;\n creator: string;\n coverUri: string | null;\n license: DropLicense;\n assets: { name: string; description: string; imageUri: string; animationUrl?: string | null; copies: number; traits: DraftTrait[] }[];\n order: number[];\n}\n\nexport interface DropMetadataFile {\n name: string;\n content: unknown;\n}\n\nfunction secureRandom(n: number): number {\n const [value] = crypto.getRandomValues(new Uint32Array(1));\n return value! % n;\n}\n\nexport function tokenOrder(copies: number[], mix: boolean, random: (n: number) => number = secureRandom): number[] {\n const order = copies.flatMap((count, asset) => Array.from({ length: count }, () => asset));\n if (!mix) return order;\n for (let i = order.length - 1; i > 0; i--) {\n const j = random(i + 1);\n [order[i], order[j]] = [order[j]!, order[i]!];\n }\n return order;\n}\n\nexport function buildDropMetadataFiles(input: DropMetadataInput): DropMetadataFile[] {\n const externalUrl = input.externalUrl.trim() || null;\n const seen = input.assets.map(() => 0);\n const files: DropMetadataFile[] = input.order.map((index, i) => {\n const id = i + 1;\n const asset = input.assets[index]!;\n seen[index]! += 1;\n const content = buildAssetMetadata({\n ...input.license,\n name: asset.name.trim() || `${input.name} #${id}`,\n description: asset.description.trim() || input.description,\n externalUrl,\n imageUri: asset.imageUri,\n creator: input.creator,\n edition: asset.copies > 1 ? `${seen[index]}/${asset.copies}` : null,\n templateTraits: asset.traits.map((t) => ({ traitType: t.key, value: t.value })),\n });\n return { name: String(id), content: asset.animationUrl ? { ...content, animation_url: asset.animationUrl } : content };\n });\n files.push({\n name: \"collection.json\",\n content: {\n name: input.name,\n description: input.description,\n image: input.coverUri ?? input.assets[0]?.imageUri ?? null,\n ...(externalUrl ? { external_link: externalUrl } : {}),\n drop_kind: (input.assets.length > 1 ? \"collection\" : \"edition\") satisfies DropKind,\n },\n });\n return files;\n}\n\nexport function metadataBytes(files: DropMetadataFile[]): number {\n return files.reduce((n, f) => n + JSON.stringify(f.content).length, 0);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiE;AAG1D,MAAM,kBAAkB;AACxB,MAAM,0BAA0B,IAAI,OAAO;AAyBlD,SAAS,aAAa,GAAmB;AACvC,QAAM,CAAC,KAAK,IAAI,OAAO,gBAAgB,IAAI,YAAY,CAAC,CAAC;AACzD,SAAO,QAAS;AAClB;AAEO,SAAS,WAAW,QAAkB,KAAc,SAAgC,cAAwB;AACjH,QAAM,QAAQ,OAAO,QAAQ,CAAC,OAAO,UAAU,MAAM,KAAK,EAAE,QAAQ,MAAM,GAAG,MAAM,KAAK,CAAC;AACzF,MAAI,CAAC,IAAK,QAAO;AACjB,WAAS,IAAI,MAAM,SAAS,GAAG,IAAI,GAAG,KAAK;AACzC,UAAM,IAAI,OAAO,IAAI,CAAC;AACtB,KAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAI,MAAM,CAAC,CAAE;AAAA,EAC9C;AACA,SAAO;AACT;AAEO,SAAS,uBAAuB,OAA8C;AACnF,QAAM,cAAc,MAAM,YAAY,KAAK,KAAK;AAChD,QAAM,OAAO,MAAM,OAAO,IAAI,MAAM,CAAC;AACrC,QAAM,QAA4B,MAAM,MAAM,IAAI,CAAC,OAAO,MAAM;AAC9D,UAAM,KAAK,IAAI;AACf,UAAM,QAAQ,MAAM,OAAO,KAAK;AAChC,SAAK,KAAK,KAAM;AAChB,UAAM,cAAU,+BAAmB;AAAA,MACjC,GAAG,MAAM;AAAA,MACT,MAAM,MAAM,KAAK,KAAK,KAAK,GAAG,MAAM,IAAI,KAAK,EAAE;AAAA,MAC/C,aAAa,MAAM,YAAY,KAAK,KAAK,MAAM;AAAA,MAC/C;AAAA,MACA,UAAU,MAAM;AAAA,MAChB,SAAS,MAAM;AAAA,MACf,SAAS,MAAM,SAAS,IAAI,GAAG,KAAK,KAAK,CAAC,IAAI,MAAM,MAAM,KAAK;AAAA,MAC/D,gBAAgB,MAAM,OAAO,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,EAAE;AAAA,IAChF,CAAC;AACD,WAAO,EAAE,MAAM,OAAO,EAAE,GAAG,SAAS,MAAM,eAAe,EAAE,GAAG,SAAS,eAAe,MAAM,aAAa,IAAI,QAAQ;AAAA,EACvH,CAAC;AACD,QAAM,KAAK;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA,MACP,MAAM,MAAM;AAAA,MACZ,aAAa,MAAM;AAAA,MACnB,OAAO,MAAM,YAAY,MAAM,OAAO,CAAC,GAAG,YAAY;AAAA,MACtD,GAAI,cAAc,EAAE,eAAe,YAAY,IAAI,CAAC;AAAA,MACpD,WAAY,MAAM,OAAO,SAAS,IAAI,eAAe;AAAA,IACvD;AAAA,EACF,CAAC;AACD,SAAO;AACT;AAEO,SAAS,cAAc,OAAmC;AAC/D,SAAO,MAAM,OAAO,CAAC,GAAG,MAAM,IAAI,KAAK,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC;AACvE;","names":[]}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import '@medialane/sdk';
|
|
2
|
-
export { c as DropKind, e as DropLicense, f as DropMetadataFile, g as DropMetadataInput, M as MAX_DROP_METADATA_BYTES, h as MAX_DROP_SUPPLY, i as buildDropMetadataFiles, m as metadataBytes, t as tokenOrder } from '../../draft-
|
|
2
|
+
export { c as DropKind, e as DropLicense, f as DropMetadataFile, g as DropMetadataInput, M as MAX_DROP_METADATA_BYTES, h as MAX_DROP_SUPPLY, i as buildDropMetadataFiles, m as metadataBytes, t as tokenOrder } from '../../draft-Dlc0K4p0.cjs';
|
|
3
3
|
import './sale.cjs';
|
|
4
4
|
import '../../i18n/translate.cjs';
|
|
5
|
+
import '../../components/fast-mint/types.cjs';
|
|
6
|
+
import 'starknet';
|
|
7
|
+
import '@medialane/sdk/starknet';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import '@medialane/sdk';
|
|
2
|
-
export { c as DropKind, e as DropLicense, f as DropMetadataFile, g as DropMetadataInput, M as MAX_DROP_METADATA_BYTES, h as MAX_DROP_SUPPLY, i as buildDropMetadataFiles, m as metadataBytes, t as tokenOrder } from '../../draft-
|
|
2
|
+
export { c as DropKind, e as DropLicense, f as DropMetadataFile, g as DropMetadataInput, M as MAX_DROP_METADATA_BYTES, h as MAX_DROP_SUPPLY, i as buildDropMetadataFiles, m as metadataBytes, t as tokenOrder } from '../../draft-D1Wfoe3V.js';
|
|
3
3
|
import './sale.js';
|
|
4
4
|
import '../../i18n/translate.js';
|
|
5
|
+
import '../../components/fast-mint/types.js';
|
|
6
|
+
import 'starknet';
|
|
7
|
+
import '@medialane/sdk/starknet';
|