@medialane/ui 0.219.0 → 0.221.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.
Files changed (146) hide show
  1. package/README.md +1 -1
  2. package/dist/components/account/email-code-entry.d.cts +1 -0
  3. package/dist/components/account/email-code-entry.d.ts +1 -0
  4. package/dist/components/creator-page.cjs +1 -1
  5. package/dist/components/creator-page.cjs.map +1 -1
  6. package/dist/components/creator-page.js +1 -1
  7. package/dist/components/creator-page.js.map +1 -1
  8. package/dist/components/external-link-field.cjs +56 -0
  9. package/dist/components/external-link-field.cjs.map +1 -0
  10. package/dist/components/external-link-field.d.cts +9 -0
  11. package/dist/components/external-link-field.d.ts +9 -0
  12. package/dist/components/external-link-field.js +32 -0
  13. package/dist/components/external-link-field.js.map +1 -0
  14. package/dist/components/fast-mint/fast-mint.cjs +8 -8
  15. package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
  16. package/dist/components/fast-mint/fast-mint.js +8 -8
  17. package/dist/components/fast-mint/fast-mint.js.map +1 -1
  18. package/dist/components/license-request-page.cjs +11 -13
  19. package/dist/components/license-request-page.cjs.map +1 -1
  20. package/dist/components/license-request-page.js +11 -13
  21. package/dist/components/license-request-page.js.map +1 -1
  22. package/dist/components/media-wallet/media-wallet-activity.cjs +2 -2
  23. package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
  24. package/dist/components/media-wallet/media-wallet-activity.js +2 -2
  25. package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
  26. package/dist/components/media-wallet/media-wallet-send.cjs +1 -1
  27. package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
  28. package/dist/components/media-wallet/media-wallet-send.js +1 -1
  29. package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
  30. package/dist/components/media-wallet/media-wallet-token-detail.cjs +1 -1
  31. package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
  32. package/dist/components/media-wallet/media-wallet-token-detail.js +1 -1
  33. package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
  34. package/dist/components/portfolio-collections.cjs +82 -0
  35. package/dist/components/portfolio-collections.cjs.map +1 -0
  36. package/dist/components/portfolio-collections.d.cts +8 -0
  37. package/dist/components/portfolio-collections.d.ts +8 -0
  38. package/dist/components/portfolio-collections.js +58 -0
  39. package/dist/components/portfolio-collections.js.map +1 -0
  40. package/dist/components/remix-browse-page.cjs +1 -1
  41. package/dist/components/remix-browse-page.cjs.map +1 -1
  42. package/dist/components/remix-browse-page.js +1 -1
  43. package/dist/components/remix-browse-page.js.map +1 -1
  44. package/dist/index.cjs +6 -0
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.d.cts +4 -1
  47. package/dist/index.d.ts +4 -1
  48. package/dist/index.js +4 -0
  49. package/dist/index.js.map +1 -1
  50. package/dist/utils/app-wallet.d.cts +5 -5
  51. package/dist/utils/app-wallet.d.ts +5 -5
  52. package/dist/utils/drop/actions.cjs +7 -7
  53. package/dist/utils/drop/actions.cjs.map +1 -1
  54. package/dist/utils/drop/actions.js +7 -7
  55. package/dist/utils/drop/actions.js.map +1 -1
  56. package/dist/utils/ipfs-upload.cjs +3 -3
  57. package/dist/utils/ipfs-upload.cjs.map +1 -1
  58. package/dist/utils/ipfs-upload.js +3 -3
  59. package/dist/utils/ipfs-upload.js.map +1 -1
  60. package/dist/utils/run-intent-calls.cjs +1 -1
  61. package/dist/utils/run-intent-calls.cjs.map +1 -1
  62. package/dist/utils/run-intent-calls.d.cts +1 -3
  63. package/dist/utils/run-intent-calls.d.ts +1 -3
  64. package/dist/utils/run-intent-calls.js +1 -1
  65. package/dist/utils/run-intent-calls.js.map +1 -1
  66. package/dist/utils/sitemap-data.cjs +3 -3
  67. package/dist/utils/sitemap-data.cjs.map +1 -1
  68. package/dist/utils/sitemap-data.js +3 -3
  69. package/dist/utils/sitemap-data.js.map +1 -1
  70. package/dist/utils/use-activities.cjs +2 -2
  71. package/dist/utils/use-activities.cjs.map +1 -1
  72. package/dist/utils/use-activities.js +2 -2
  73. package/dist/utils/use-activities.js.map +1 -1
  74. package/dist/utils/use-coin-price.cjs +1 -1
  75. package/dist/utils/use-coin-price.cjs.map +1 -1
  76. package/dist/utils/use-coin-price.js +1 -1
  77. package/dist/utils/use-coin-price.js.map +1 -1
  78. package/dist/utils/use-collections.cjs +5 -5
  79. package/dist/utils/use-collections.cjs.map +1 -1
  80. package/dist/utils/use-collections.js +5 -5
  81. package/dist/utils/use-collections.js.map +1 -1
  82. package/dist/utils/use-comments.cjs +1 -1
  83. package/dist/utils/use-comments.cjs.map +1 -1
  84. package/dist/utils/use-comments.js +1 -1
  85. package/dist/utils/use-comments.js.map +1 -1
  86. package/dist/utils/use-creators.cjs +1 -1
  87. package/dist/utils/use-creators.cjs.map +1 -1
  88. package/dist/utils/use-creators.js +1 -1
  89. package/dist/utils/use-creators.js.map +1 -1
  90. package/dist/utils/use-drops.cjs +7 -7
  91. package/dist/utils/use-drops.cjs.map +1 -1
  92. package/dist/utils/use-drops.js +7 -7
  93. package/dist/utils/use-drops.js.map +1 -1
  94. package/dist/utils/use-email-code.cjs.map +1 -1
  95. package/dist/utils/use-email-code.d.cts +2 -4
  96. package/dist/utils/use-email-code.d.ts +2 -4
  97. package/dist/utils/use-email-code.js.map +1 -1
  98. package/dist/utils/use-full-token-data.cjs +1 -1
  99. package/dist/utils/use-full-token-data.cjs.map +1 -1
  100. package/dist/utils/use-full-token-data.js +1 -1
  101. package/dist/utils/use-full-token-data.js.map +1 -1
  102. package/dist/utils/use-orders.cjs +8 -8
  103. package/dist/utils/use-orders.cjs.map +1 -1
  104. package/dist/utils/use-orders.d.cts +613 -13
  105. package/dist/utils/use-orders.d.ts +613 -13
  106. package/dist/utils/use-orders.js +8 -8
  107. package/dist/utils/use-orders.js.map +1 -1
  108. package/dist/utils/use-platform-stats.cjs +1 -1
  109. package/dist/utils/use-platform-stats.cjs.map +1 -1
  110. package/dist/utils/use-platform-stats.js +1 -1
  111. package/dist/utils/use-platform-stats.js.map +1 -1
  112. package/dist/utils/use-pop.cjs +2 -2
  113. package/dist/utils/use-pop.cjs.map +1 -1
  114. package/dist/utils/use-pop.js +2 -2
  115. package/dist/utils/use-pop.js.map +1 -1
  116. package/dist/utils/use-profiles.cjs +3 -3
  117. package/dist/utils/use-profiles.cjs.map +1 -1
  118. package/dist/utils/use-profiles.js +3 -3
  119. package/dist/utils/use-profiles.js.map +1 -1
  120. package/dist/utils/use-remix-offers.cjs +1 -1
  121. package/dist/utils/use-remix-offers.cjs.map +1 -1
  122. package/dist/utils/use-remix-offers.js +1 -1
  123. package/dist/utils/use-remix-offers.js.map +1 -1
  124. package/dist/utils/use-rewards.cjs +5 -5
  125. package/dist/utils/use-rewards.cjs.map +1 -1
  126. package/dist/utils/use-rewards.js +5 -5
  127. package/dist/utils/use-rewards.js.map +1 -1
  128. package/dist/utils/use-sponsorship.cjs +6 -6
  129. package/dist/utils/use-sponsorship.cjs.map +1 -1
  130. package/dist/utils/use-sponsorship.js +6 -6
  131. package/dist/utils/use-sponsorship.js.map +1 -1
  132. package/dist/utils/use-tiers.cjs +8 -8
  133. package/dist/utils/use-tiers.cjs.map +1 -1
  134. package/dist/utils/use-tiers.js +8 -8
  135. package/dist/utils/use-tiers.js.map +1 -1
  136. package/dist/utils/use-tokens-by-ip-type.cjs +1 -1
  137. package/dist/utils/use-tokens-by-ip-type.cjs.map +1 -1
  138. package/dist/utils/use-tokens-by-ip-type.js +1 -1
  139. package/dist/utils/use-tokens-by-ip-type.js.map +1 -1
  140. package/dist/utils/use-tokens.cjs +7 -7
  141. package/dist/utils/use-tokens.cjs.map +1 -1
  142. package/dist/utils/use-tokens.d.cts +3 -3
  143. package/dist/utils/use-tokens.d.ts +3 -3
  144. package/dist/utils/use-tokens.js +7 -7
  145. package/dist/utils/use-tokens.js.map +1 -1
  146. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -197,6 +197,8 @@ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './compon
197
197
  export { HelpIcon } from './components/help-icon.js';
198
198
  export { EmptyOrError } from './components/empty-or-error.js';
199
199
  export { COLLECTION_TYPES, CollectionTypeChoices, NewCollectionMenu } from './components/new-collection-menu.js';
200
+ export { ExternalLinkField } from './components/external-link-field.js';
201
+ export { PortfolioCollections } from './components/portfolio-collections.js';
200
202
  export { TabEmptyState, TabEmptyStateProps } from './components/tab-empty-state.js';
201
203
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './components/select.js';
202
204
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from './components/form.js';
@@ -264,6 +266,7 @@ import 'lucide-react';
264
266
  import 'react/jsx-runtime';
265
267
  import 'framer-motion';
266
268
  import '@radix-ui/react-dropdown-menu';
269
+ import '@medialane/sdk/wallet';
267
270
  import '@medialane/sdk/starknet';
268
271
  import 'input-otp';
269
272
  import './utils/drop/draft.js';
@@ -278,8 +281,8 @@ import '@radix-ui/react-checkbox';
278
281
  import '@radix-ui/react-tabs';
279
282
  import '@radix-ui/react-collapsible';
280
283
  import '@radix-ui/react-popover';
281
- import '@radix-ui/react-select';
282
284
  import 'react-hook-form';
285
+ import '@radix-ui/react-select';
283
286
  import '@radix-ui/react-dialog';
284
287
  import 'swr';
285
288
  import './utils/media-wallet/wallet-tokens.js';
package/dist/index.js CHANGED
@@ -288,6 +288,8 @@ import { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from "./compon
288
288
  import { HelpIcon } from "./components/help-icon.js";
289
289
  import { EmptyOrError } from "./components/empty-or-error.js";
290
290
  import { NewCollectionMenu, CollectionTypeChoices, COLLECTION_TYPES } from "./components/new-collection-menu.js";
291
+ import { ExternalLinkField } from "./components/external-link-field.js";
292
+ import { PortfolioCollections } from "./components/portfolio-collections.js";
291
293
  import { TabEmptyState } from "./components/tab-empty-state.js";
292
294
  import {
293
295
  Select,
@@ -588,6 +590,7 @@ export {
588
590
  ExclusiveFields,
589
591
  ExpandableText,
590
592
  ExportKeySection,
593
+ ExternalLinkField,
591
594
  FILE_UPLOAD_FAILED,
592
595
  FadeIn,
593
596
  FastMint,
@@ -702,6 +705,7 @@ export {
702
705
  PortfolioActivity,
703
706
  PortfolioAssets,
704
707
  PortfolioChipFilter,
708
+ PortfolioCollections,
705
709
  PortfolioHeader,
706
710
  PortfolioOrders,
707
711
  PortfolioSection,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["\nexport { cn } from \"./utils/cn.js\";\nexport { formatDisplayPrice, parsePriceDisplay, isStableCurrency, formatUsd, formatUsdPrice, formatSmallDecimal } from \"./utils/format.js\";\nexport { shortenAddress } from \"./utils/address.js\";\nexport { profileIdentity, type ProfileIdentity, type ProfileIdentitySource } from \"./utils/profile-identity.js\";\nexport { ipfsToHttp, DEFAULT_GATEWAY as PINATA_PUBLIC_GATEWAY } from \"./utils/ipfs.js\";\nexport {\n uploadFileToIpfs,\n FILE_UPLOAD_FAILED,\n uploadJsonToIpfs,\n uploadDirectoryToIpfs,\n pinAssetMetadata,\n uploadFailureToast,\n isUserRejection,\n setUploadDiagnosticsReporter,\n type SignedUploadKind,\n type UploadedIpfsFile,\n type UploadDiagnostics,\n type PinAssetMetadataInput,\n type PinnedAsset,\n} from \"./utils/ipfs-upload.js\";\nexport { useIntersectionActive } from \"./utils/use-intersection-active.js\";\nexport { getReadIds, markRead } from \"./utils/notification-storage.js\";\nexport { licenseSummary } from \"./utils/license-summary.js\";\nexport {\n isBareExecuteFailure,\n isUserRejectedRequest,\n isWrongNetwork,\n assertCorrectNetwork,\n WrongNetworkError,\n} from \"./utils/wallet-error.js\";\nexport {\n describeError,\n UserFacingError,\n NOT_SUBMITTED,\n GENERIC,\n NETWORK_BUSY,\n CONNECTION_FAILED,\n} from \"./utils/describe-error.js\";\nexport type { ErrorNotice } from \"./utils/describe-error.js\";\n\nexport { IP_TYPE_DATA, IP_TYPE_DATA_MAP } from \"./data/ip-types.js\";\nexport type { IpTypeData } from \"./data/ip-types.js\";\nexport {\n IP_TYPES, LICENSE_TYPES, GEOGRAPHIC_SCOPES, AI_POLICIES,\n DERIVATIVES_OPTIONS, LICENSE_TRAIT_TYPES,\n} from \"./data/ip.js\";\nexport type { IPType, LicenseType } from \"./data/ip.js\";\nexport {\n IP_TEMPLATES, EMBED_PLATFORM_META, SOCIAL_PLATFORM_META, TEMPLATE_TRAIT_TYPES, DOC_UPLOAD,\n} from \"./data/ip-templates.js\";\nexport type { EmbedPlatform, SocialPlatform, TraitSuggestion, IPTemplate, DocUploadConfig } from \"./data/ip-templates.js\";\nexport { IPTypeDisplay } from \"./components/ip-type-display.js\";\nexport { AssetOverviewContent } from \"./components/asset-overview-content.js\";\nexport { AssetLicenseSummary } from \"./components/asset-license-summary.js\";\nexport { AssetMarketsTab } from \"./components/asset-markets-tab.js\";\nexport { ParentAttributionBanner } from \"./components/parent-attribution-banner.js\";\nexport type { ParentBannerProps } from \"./components/parent-attribution-banner.js\";\nexport { AssetMediaColumn, AssetHeaderBlock, AssetOwnerRow } from \"./components/asset-top-sections.js\";\nexport { ExpandableText } from \"./components/expandable-text.js\";\nexport { CollectionHeader, type CollectionHeaderProps } from \"./components/collection-header.js\";\nexport { CreatorHeader, type CreatorHeaderProps, type CreatorHeaderStat } from \"./components/creator-header.js\";\nexport { AssetPage, AssetPageSkeleton, detectAssetKind, type AssetPageProps, type AssetPageSlots, type AssetKind, type AssetMarketContext, type AssetMarketActions } from \"./components/asset-page.js\";\nexport { AssetCommentsDialog, type AssetCommentsDialogProps, type AssetCommentsProps } from \"./components/asset-comments-dialog.js\";\nexport { CollectionPage, canTransferCollectionOwnership, type CollectionPageProps, type CollectionPageSlots, type CollectionMarketActions } from \"./components/collection-page.js\";\nexport { CollectionFiltersDialog, type CollectionFiltersDialogProps } from \"./components/collection-filters-dialog.js\";\nexport { GatedContentHero, GatedContentPanel, type GatedContent, type GatedContentState } from \"./components/gated-content.js\";\nexport { MakeOfferPicker } from \"./components/make-offer-picker.js\";\nexport { ListingCardMenu } from \"./components/listing-card-menu.js\";\nexport { FloatingCommentsButton } from \"./components/floating-comments-button.js\";\nexport { PageBackdrop } from \"./components/media-header.js\";\nexport { useComments, type UseCommentsResult } from \"./utils/use-comments.js\";\nexport { useFullTokenData } from \"./utils/use-full-token-data.js\";\nexport { useAssetMarketState, type AssetMarketState } from \"./utils/asset-market-state.js\";\nexport { assetAttributes, type AssetAttribute } from \"./utils/asset-attributes.js\";\nexport type { AssetOwnerRowProps } from \"./components/asset-top-sections.js\";\nexport { AssetCollectionBar } from \"./components/asset-collection-bar.js\";\nexport type { AssetCollectionBarProps, AssetCollectionBarSibling } from \"./components/asset-collection-bar.js\";\nexport { AssetUtilityIcons } from \"./components/asset-utility-icons.js\";\nexport type { AssetUtilityIconsProps } from \"./components/asset-utility-icons.js\";\nexport { AssetMarketplacePanel } from \"./components/asset-marketplace-panel.js\";\nexport type { AssetMarketplacePanelProps, ApiOrderLike } from \"./components/asset-marketplace-panel.js\";\nexport { BRAND } from \"./data/brand.js\";\nexport { LIVING_RENDER_COLLECTIONS, isLivingRenderCollection } from \"./data/living-render-collections.js\";\n\nexport { CurrencyIcon, CurrencyAmount } from \"./components/currency-icon.js\";\nexport type { CurrencyIconProps, CurrencyAmountProps } from \"./components/currency-icon.js\";\n\nexport { IpTypeBadge, IP_TYPE_CONFIG, IP_TYPE_MAP } from \"./components/ip-type-badge.js\";\nexport type { IpTypeBadgeProps, IpTypeConfig } from \"./components/ip-type-badge.js\";\n\nexport { AddressDisplay } from \"./components/address-display.js\";\nexport type { AddressDisplayProps } from \"./components/address-display.js\";\n\nexport { MedialaneLogoFull } from \"./components/brand-logo.js\";\nexport type { MedialaneLogoFullProps } from \"./components/brand-logo.js\";\n\nexport { MotionCard, FadeIn, Stagger, StaggerItem, KineticWords, SPRING, EASE_OUT } from \"./components/motion-primitives.js\";\nexport { PageContainer } from \"./components/page-container.js\";\nexport type { PageContainerProps } from \"./components/page-container.js\";\nexport { ScrollSection } from \"./components/scroll-section.js\";\nexport type { ScrollSectionProps } from \"./components/scroll-section.js\";\nexport { ShareButton } from \"./components/share-button.js\";\nexport type { ShareButtonProps } from \"./components/share-button.js\";\nexport { CollectionCard, CollectionCardSkeleton } from \"./components/collection-card.js\";\nexport type { CollectionCardProps } from \"./components/collection-card.js\";\nexport { TokenCard, TokenCardSkeleton } from \"./components/token-card.js\";\nexport type { TokenCardProps } from \"./components/token-card.js\";\nexport { AnimatedTokenMedia } from \"./components/animated-token-media.js\";\nexport type { AnimatedTokenMediaProps } from \"./components/animated-token-media.js\";\nexport { ThemeAmbientBackground } from \"./components/theme-ambient-background.js\";\nexport {\n useCollectionFilters, SORT_OPTIONS, CollectionFiltersTrigger, CollectionFiltersBody,\n} from \"./components/collection-filters.js\";\nexport type { TraitSection, CollectionFiltersTriggerProps, CollectionFiltersBodyProps } from \"./components/collection-filters.js\";\nexport {\n DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem,\n DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel,\n DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup,\n DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent,\n DropdownMenuSubTrigger, DropdownMenuRadioGroup,\n} from \"./components/dropdown-menu.js\";\nexport { AssetCard, AssetCardSkeleton } from \"./components/asset-card.js\";\nexport type { AssetCardProps, AssetCardPrice } from \"./components/asset-card.js\";\nexport { AssetPicker } from \"./components/asset-picker.js\";\nexport type { AssetPickerProps, OwnedAsset } from \"./components/asset-picker.js\";\nexport { AssetSearchPicker } from \"./components/asset-search-picker.js\";\nexport type { AssetSearchPickerProps } from \"./components/asset-search-picker.js\";\nexport { LicenseTermsBuilder, EMPTY_SPONSORSHIP_TERMS, MEDIA_TYPES, DURATION_UNITS, toLicenseMetadata, toDurationDays } from \"./components/license-terms-builder.js\";\nexport type { LicenseTermsBuilderProps, SponsorshipTerms, DurationUnit } from \"./components/license-terms-builder.js\";\n\nexport {\n coinKind, coinKindLabel, coinKindLabelPlural, COIN_KINDS, coinAccentToken, coinServiceIds, isCoinService, formatCoinPrice, coinSupply, formatFdvUsd, fdvUsd,\n type CoinKind, type CoinCollectionLike, type CoinPriceLike,\n} from \"./data/coins.js\";\nexport { CoinGuarantees, type CoinGuaranteesProps, type CoinGuaranteesData } from \"./components/coin-guarantees.js\";\nexport { CoinRow, CoinRowSkeleton, CoinAvatar, COIN_GRID, type UseCoinPrice, type CoinRowProps, type CoinMarketStatus } from \"./components/coin-row.js\";\nexport { orderCoins, type CoinPriceSort } from \"./data/coin-order.js\";\nexport {\n CoinsExplorer,\n type CoinsExplorerProps, type CoinFilter, type CoinSort, type UseCoins, type UsePriceMap, type CoinCounts,\n} from \"./components/coins-explorer.js\";\n\nexport { timeAgo, timeUntil, isExpired } from \"./utils/time.js\";\nexport { toDisplayUrl, toDisplayUrlOrNull, toAbsoluteImageUrl, 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 { HeroSlider, HeroSliderSkeleton } from \"./components/hero-slider.js\";\nexport type { HeroSliderProps } from \"./components/hero-slider.js\";\nexport { ActivityTicker } from \"./components/activity-ticker.js\";\nexport type { ActivityTickerProps } from \"./components/activity-ticker.js\";\nexport { ListingCard, ListingCardSkeleton } from \"./components/listing-card.js\";\nexport type { ListingCardProps } from \"./components/listing-card.js\";\nexport {\n MarketplaceTxLink,\n MarketplaceProcessingState,\n MarketplaceSignInGate,\n MarketplaceSuccessState,\n MarketplaceErrorState,\n MarketplaceDialogHero,\n CurrencyPicker,\n DurationPicker,\n MarketplaceConfirmStep,\n} from \"./components/marketplace-dialog-primitives.js\";\nexport { ActivityRow } from \"./components/activity-row.js\";\nexport { ActivityTimelineRow } from \"./components/activity-timeline-row.js\";\nexport type { ActivityTimelineRowProps } from \"./components/activity-timeline-row.js\";\nexport { DropItemList } from \"./components/drop-item-list.js\";\nexport type { DraftItem } from \"./components/drop-item-list.js\";\nexport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"./utils/launchpad-defaults.js\";\nexport { DropStatusBadge, DropSupplyProgress } from \"./components/drop/drop-status.js\";\nexport { DropCard, DropGrid, DropGridSkeleton } from \"./components/drop/drop-card.js\";\nexport { DropListing } from \"./components/drop/drop-listing.js\";\nexport { DropFeatures } from \"./components/drop/drop-features.js\";\nexport { MyDrops } from \"./components/drop/my-drops.js\";\nexport { DropTokenLink } from \"./components/drop/drop-token-link.js\";\nexport type { DropPhase } from \"./utils/drop/view.js\";\nexport { DropCreate, DraftSummary } from \"./components/drop/create/drop-create.js\";\nexport { ExclusiveFields } from \"./components/drop/create/exclusive-fields.js\";\nexport { DropPage } from \"./components/drop/page/drop-page.js\";\nexport { DropActionBox } from \"./components/drop/page/drop-action-box.js\";\nexport { DropActivityList } from \"./components/drop/page/drop-activity.js\";\nexport { claimProofFor } from \"./utils/drop/claim-proof.js\";\nexport type { DropSigner } from \"./utils/drop/types.js\";\nexport { MedialaneAppProvider, useMedialaneApp, type MedialaneApp, type CompanionApp, type AssetRef, type ReportTarget, type ReportDialogSlot } from \"./components/medialane-app.js\";\nexport { runIntentCalls } from \"./utils/run-intent-calls.js\";\nexport { GATED_CONTENT_TYPES, GATED_CONTENT_TYPE_FALLBACK } from \"./data/gated-content-types.js\";\nexport type { ContentTypeConfig } from \"./data/gated-content-types.js\";\nexport { CollapsibleSection } from \"./components/collapsible-section.js\";\nexport { useUsdPrices, usdPriceFor } from \"./utils/use-usd-prices.js\";\nexport type { UsdPrices } from \"./utils/use-usd-prices.js\";\nexport { NotificationRow } from \"./components/notification-row.js\";\nexport type { NotificationRowProps } from \"./components/notification-row.js\";\nexport { NOTIFICATION_ICON, NOTIFICATION_COLOR, NOTIFICATION_LABEL } from \"./data/notification-meta.js\";\nexport type { ActivityRowProps } from \"./components/activity-row.js\";\nexport { ActivityFeedShell } from \"./components/activity-feed-shell.js\";\nexport type { ActivityFeedShellProps } from \"./components/activity-feed-shell.js\";\nexport { CtaCardGrid } from \"./components/cta-card-grid.js\";\nexport type { CtaCardGridProps, CtaCardItem } from \"./components/cta-card-grid.js\";\n\nexport { DiscoverHero } from \"./components/discover-hero.js\";\nexport type { DiscoverHeroProps } from \"./components/discover-hero.js\";\nexport { FeaturedCarousel, FeaturedCarouselSkeleton } from \"./components/featured-carousel.js\";\nexport type { FeaturedCarouselProps } from \"./components/featured-carousel.js\";\nexport { DiscoverCollectionsStrip } from \"./components/discover-collections-strip.js\";\nexport type { DiscoverCollectionsStripProps } from \"./components/discover-collections-strip.js\";\nexport { DiscoverCreatorsStrip } from \"./components/discover-creators-strip.js\";\nexport type { DiscoverCreatorsStripProps } from \"./components/discover-creators-strip.js\";\nexport { DiscoverFeedSection, DiscoverActivityStrip } from \"./components/discover-feed-section.js\";\nexport type { DiscoverFeedSectionProps, DiscoverActivityStripProps } from \"./components/discover-feed-section.js\";\nexport { ActivityCard, ActivityCardSkeleton, ACTIVITY_MESSAGES } from \"./components/activity-card.js\";\nexport type { ActivityCardProps } from \"./components/activity-card.js\";\n\nexport { LaunchpadGroupedSections, LaunchpadServiceCard, SERVICE_HUES, useLaunchpadFilter } from \"./components/launchpad-services.js\";\nexport { LaunchpadFilterBar } from \"./components/launchpad-filter-bar.js\";\nexport type { LaunchpadFilterBarProps } from \"./components/launchpad-filter-bar.js\";\nexport { LaunchpadStrip } from \"./components/launchpad-strip.js\";\nexport type { LaunchpadStripProps } from \"./components/launchpad-strip.js\";\nexport { LaunchpadCtaBanner } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadCtaBannerProps } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadGroupedSectionsProps, LaunchpadServiceCardProps, ServiceOverride, ServiceOverrides } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_ROUTE_OVERRIDES } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS } from \"./data/launchpad-services.js\";\nexport type { ServiceDefinition, ServiceStatus, ServiceGroup, ServiceGroupDefinition } from \"./data/launchpad-services.js\";\n\nexport { NavCommandMenu, useNavCommandMenu, relevanceFilter, 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 { PortfolioAssets, type PortfolioAssetActions, type UsePortfolioAssetActions } from \"./components/portfolio-assets.js\";\nexport { PortfolioShell, PORTFOLIO_TABS, type PortfolioTab } from \"./components/portfolio-shell.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 { 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, type HomePageProps } from \"./components/home-page.js\";\nexport { CreatorsPage } from \"./components/creators-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 { 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 { PortfolioSection } from \"./components/portfolio-section.js\";\nexport type {\n PortfolioSectionProps,\n PortfolioSectionColor,\n} from \"./components/portfolio-section.js\";\nexport { PortfolioChipFilter } from \"./components/portfolio-chip-filter.js\";\nexport type {\n PortfolioChipFilterProps,\n PortfolioChipFilterOption,\n} from \"./components/portfolio-chip-filter.js\";\n\nexport { ServiceHeader } from \"./components/service-header.js\";\nexport type { ServiceHeaderProps } from \"./components/service-header.js\";\nexport { ClaimRail } from \"./components/claim-rail.js\";\nexport type { ClaimRailProps } from \"./components/claim-rail.js\";\n\nexport { ServiceFormShell } from \"./components/service-form-shell.js\";\nexport type { ServiceFormShellProps } from \"./components/service-form-shell.js\";\nexport { StepNav } from \"./components/step-nav.js\";\nexport type { StepNavProps, StepNavStep } from \"./components/step-nav.js\";\n\nexport { LevelBadge } from \"./components/rewards/level-badge.js\";\nexport type { LevelBadgeProps } from \"./components/rewards/level-badge.js\";\nexport { XpProgress } from \"./components/rewards/xp-progress.js\";\nexport type { XpProgressProps } from \"./components/rewards/xp-progress.js\";\nexport { BadgeShelf } from \"./components/rewards/badge-shelf.js\";\nexport type { BadgeShelfProps, BadgeShelfBadge } from \"./components/rewards/badge-shelf.js\";\nexport { ScoreSummaryCard } from \"./components/rewards/score-summary-card.js\";\nexport type { ScoreSummaryCardProps } from \"./components/rewards/score-summary-card.js\";\nexport { LeaderboardTable, LeaderboardWidget } from \"./components/rewards/leaderboard-table.js\";\nexport type { LeaderboardTableProps, LeaderboardWidgetProps, LeaderboardEntryLike } from \"./components/rewards/leaderboard-table.js\";\nexport { LevelJourneyList } from \"./components/rewards/level-journey-list.js\";\nexport type { LevelJourneyListProps, LevelJourneyListLevel } from \"./components/rewards/level-journey-list.js\";\nexport { BadgeCatalog } from \"./components/rewards/badge-catalog.js\";\nexport type { BadgeCatalogProps, BadgeCatalogBadge } from \"./components/rewards/badge-catalog.js\";\nexport { XpEarned } from \"./components/rewards/xp-earned.js\";\nexport type { XpEarnedProps } from \"./components/rewards/xp-earned.js\";\nexport { createRewardEarned } from \"./components/rewards/reward-earned.js\";\nexport type { RewardEarnedProps, RewardSnapshot } from \"./components/rewards/reward-earned.js\";\n\nexport { LoadMoreSentinel } from \"./components/load-more-sentinel.js\";\nexport { ActivitiesFeed } from \"./components/activities-feed.js\";\nexport type { LoadMoreSentinelProps } from \"./components/load-more-sentinel.js\";\n\nexport { RewardsSection } from \"./components/rewards-section.js\";\nexport type { RewardsSectionProps } from \"./components/rewards-section.js\";\n\nexport { ActionButton } from \"./components/action-button.js\";\nexport type { ActionButtonProps, ActionKey, ToneKey } from \"./components/action-button.js\";\nexport { GradientButton } from \"./components/gradient-button.js\";\nexport type { GradientButtonProps } from \"./components/gradient-button.js\";\n\nexport { CoinLaunchPreview } from \"./components/coin-launch-preview.js\";\nexport type { CoinPreviewData } from \"./components/coin-launch-preview.js\";\nexport { MedialaneCollectionCard } from \"./components/medialane-collection-card.js\";\nexport type { MedialaneCollectionCardProps } from \"./components/medialane-collection-card.js\";\nexport { TokenGlyph, TokenAmount } from \"./components/token-glyph.js\";\nexport type { TokenGlyphProps, TokenAmountProps, TokenSymbol } from \"./components/token-glyph.js\";\n\nexport { StatTile, StatPill, StatPillRow } from \"./components/stat-tile.js\";\nexport type { StatTileProps, StatPillProps, StatPillRowItem } from \"./components/stat-tile.js\";\n\nexport { ActionDialog } from \"./components/action-dialog.js\";\nexport type { ActionDialogProps } from \"./components/action-dialog.js\";\n\nexport { HiddenContentBanner } from \"./components/hidden-content-banner.js\";\n\nexport { useRewardsCelebrations } from \"./components/rewards/use-rewards-celebrations.js\";\nexport { LevelUpCelebration } from \"./components/rewards/level-up-celebration.js\";\nexport type { LevelUpCelebrationProps } from \"./components/rewards/level-up-celebration.js\";\nexport { BadgeUnlocked } from \"./components/rewards/badge-unlocked.js\";\nexport type { BadgeUnlockedProps } from \"./components/rewards/badge-unlocked.js\";\nexport { JourneyPath } from \"./components/rewards/journey-path.js\";\nexport type { JourneyPathProps, JourneyStep } from \"./components/rewards/journey-path.js\";\n\nexport { Skeleton } from \"./components/skeleton.js\";\nexport { Badge, badgeVariants } from \"./components/badge.js\";\nexport type { BadgeProps } from \"./components/badge.js\";\nexport { Label } from \"./components/label.js\";\nexport { Input } from \"./components/input.js\";\nexport { Switch } from \"./components/switch.js\";\nexport { Checkbox } from \"./components/checkbox.js\";\nexport { Alert, AlertTitle, AlertDescription } from \"./components/alert.js\";\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from \"./components/tabs.js\";\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from \"./components/card.js\";\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from \"./components/collapsible.js\";\nexport { Button, buttonVariants } from \"./components/button.js\";\nexport type { ButtonProps } from \"./components/button.js\";\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from \"./components/popover.js\";\nexport { HelpIcon } from \"./components/help-icon.js\";\nexport { EmptyOrError } from \"./components/empty-or-error.js\";\nexport { NewCollectionMenu, CollectionTypeChoices, COLLECTION_TYPES } from \"./components/new-collection-menu.js\";\nexport { TabEmptyState } from \"./components/tab-empty-state.js\";\nexport type { TabEmptyStateProps } from \"./components/tab-empty-state.js\";\nexport {\n Select, SelectGroup, SelectValue, SelectTrigger, SelectContent,\n SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton,\n} from \"./components/select.js\";\nexport {\n useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField,\n} from \"./components/form.js\";\nexport { Textarea } from \"./components/textarea.js\";\nexport type { TextareaProps } from \"./components/textarea.js\";\nexport {\n Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent,\n SheetHeader, SheetFooter, SheetTitle, SheetDescription,\n} from \"./components/sheet.js\";\n\nexport { ToggleGroup, Section } from \"./components/create-form-primitives.js\";\nexport { OrderSortControl, sortOrders } from \"./components/order-sort-control.js\";\nexport type { OrderSort } from \"./components/order-sort-control.js\";\nexport { AssetLightbox } from \"./components/asset-lightbox.js\";\nexport type { AssetLightboxProps } from \"./components/asset-lightbox.js\";\nexport { PriceHistoryChart } from \"./components/price-history-chart.js\";\nexport type { PriceHistoryChartProps } from \"./components/price-history-chart.js\";\nexport { NavThemeToggle } from \"./components/nav-theme-toggle.js\";\nexport { JsonLd } from \"./components/json-ld.js\";\nexport type { JsonLdProps } from \"./components/json-ld.js\";\nexport { CreationRecord } from \"./components/creation-record.js\";\nexport type { CreationRecordProps } from \"./components/creation-record.js\";\nexport { ClubOwnerActions } from \"./components/club-owner-actions.js\";\nexport type { ClubOwnerActionsProps } from \"./components/club-owner-actions.js\";\nexport { IPTypeFields } from \"./components/ip-type-fields.js\";\nexport type { IPTypeFieldsProps, MetadataField } from \"./components/ip-type-fields.js\";\n\nexport { FastMint } from \"./components/fast-mint/fast-mint.js\";\nexport { Dropzone } from \"./components/fast-mint/dropzone.js\";\nexport type { DropzoneProps } from \"./components/fast-mint/dropzone.js\";\nexport { SuccessView } from \"./components/fast-mint/success-view.js\";\nexport type { SuccessViewProps } from \"./components/fast-mint/success-view.js\";\nexport type {\n MediaKind, FastMintSigner, MintedAsset, FastMintProps,\n} from \"./components/fast-mint/types.js\";\nexport { readBodyWithCap } from \"./utils/proxy-body.js\";\nexport type { CappedBody } from \"./utils/proxy-body.js\";\nexport {\n formatActivity, formatOrderNotification, formatOfferAcceptedNotification, formatAssetReceivedNotification,\n} from \"./utils/format-activity.js\";\nexport type { FormattedEvent } from \"./utils/format-activity.js\";\n\nexport { queryKeys, queryKeyPrefix, QUERY_PREFIX } from \"./utils/query-keys.js\";\nexport { useCollectionProfile, useCreatorProfile, 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 { CollectionActivityTab } from \"./components/collection-activity-tab.js\";\nexport type { CollectionActivityTabProps } from \"./components/collection-activity-tab.js\";\nexport { CollectionTraitsTab } from \"./components/collection-traits-tab.js\";\nexport type { CollectionTraitsTabProps } from \"./components/collection-traits-tab.js\";\nexport { PortfolioActivity } from \"./components/portfolio-activity.js\";\nexport type { PortfolioActivityProps } from \"./components/portfolio-activity.js\";\nexport { CreatorScoreInline } from \"./components/creator-score-inline.js\";\nexport type { CreatorScoreInlineProps } from \"./components/creator-score-inline.js\";\n\nexport { useMedialaneClient } from \"./utils/use-medialane-client.js\";\n\nexport { MediaWalletOverlay, useMediaWallet } from \"./components/media-wallet/media-wallet-overlay.js\";\nexport type {\n MediaWalletAppProps,\n MediaWalletHeaderIdentity,\n MediaWalletSession,\n MediaWalletView,\n WalletWriteAction,\n WalletWriteStatus,\n} from \"./components/media-wallet/types.js\";\nexport { useCreators } from \"./utils/use-creators.js\";\nexport { 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 { useNotifications } from \"./utils/use-notifications.js\";\nexport type { Notification, NotificationType, NotificationPriority, Announcement } from \"./data/notification.js\";\nexport { useTokenRemixes } from \"./utils/use-remix-offers.js\";\nexport { RemixesTab } from \"./components/remixes-tab.js\";\nexport type { RemixesTabProps } from \"./components/remixes-tab.js\";\n\nexport { OwnerSetupPanel } from \"./components/owner-setup-panel.js\";\nexport { DropCountdown } from \"./components/drop-countdown.js\";\nexport { CreatorAnalytics } from \"./components/creator-analytics.js\";\nexport {\n Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger,\n DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription,\n} from \"./components/dialog.js\";\nexport { SelfFundConsentDialog, feeLabelFor } from \"./components/wallet/self-fund-consent-dialog.js\";\nexport { ExportKeySection, type ExportKeySectionProps } from \"./components/wallet/export-key-section.js\";\nexport { useDrops, useMyDrops, useDrop, useDropMints, useDropFee, useDropFile, useDropChain } from \"./utils/use-drops.js\";\nexport type { DropChainState } from \"./utils/use-drops.js\";\nexport { usePopCollections, useMyPopEvents, usePopClaimStatus } from \"./utils/use-pop.js\";\nexport { usePlatformStats } from \"./utils/use-platform-stats.js\";\nexport { useTokensByIpType } from \"./utils/use-tokens-by-ip-type.js\";\nexport { usePriceMap, useCoinPrice } from \"./utils/use-coin-price.js\";\nexport {\n useSponsorshipOffers, useSponsorshipOffer, useSponsorshipBids, useSponsorshipProposals,\n useSponsorshipProposal, usePendingProposalsForAsset, useSponsorshipLicenses, useMySponsorshipDealCounts,\n} from \"./utils/use-sponsorship.js\";\nexport {\n predictNextMembershipId, predictNextTicketId, useMyClubCollections, useMyTicketCollections,\n useMembershipList, useTicketList, useMembershipOnchain, useTicketOnchain, useIsMemberOf,\n type TierOnchain, type TierListItem,\n} from \"./utils/use-tiers.js\";\nexport { collectSitemapData, type SitemapData, type SitemapLimits } from \"./utils/sitemap-data.js\";\nexport { useToken, useTokenBalance, useTokenHistory, useTokensByOwner } from \"./utils/use-tokens.js\";\nexport { checkIsOwner } from \"./utils/ownership.js\";\nexport { AssetOwnersPanel } from \"./components/asset-owners-panel.js\";\nexport { AssetUnavailable } from \"./components/asset-unavailable.js\";\nexport { AssetProvenanceTab } from \"./components/asset-provenance-tab.js\";\nexport { ASSET_ACCENTS, type AssetAccent, type AssetAccentName } from \"./utils/asset-accents.js\";\n"],"mappings":"AACA,SAAS,UAAU;AACnB,SAAS,oBAAoB,mBAAmB,kBAAkB,WAAW,gBAAgB,0BAA0B;AACvH,SAAS,sBAAsB;AAC/B,SAAS,uBAAyE;AAClF,SAAS,YAA+B,uBAA6B;AACrE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,6BAA6B;AACtC,SAAS,YAAY,gBAAgB;AACrC,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,cAAc,wBAAwB;AAE/C;AAAA,EACE;AAAA,EAAU;AAAA,EAAe;AAAA,EAAmB;AAAA,EAC5C;AAAA,EAAqB;AAAA,OAChB;AAEP;AAAA,EACE;AAAA,EAAc;AAAA,EAAqB;AAAA,EAAsB;AAAA,EAAsB;AAAA,OAC1E;AAEP,SAAS,qBAAqB;AAC9B,SAAS,4BAA4B;AACrC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, parsePriceDisplay, isStableCurrency, formatUsd, formatUsdPrice, formatSmallDecimal } from \"./utils/format.js\";\nexport { shortenAddress } from \"./utils/address.js\";\nexport { profileIdentity, type ProfileIdentity, type ProfileIdentitySource } from \"./utils/profile-identity.js\";\nexport { ipfsToHttp, DEFAULT_GATEWAY as PINATA_PUBLIC_GATEWAY } from \"./utils/ipfs.js\";\nexport {\n uploadFileToIpfs,\n FILE_UPLOAD_FAILED,\n uploadJsonToIpfs,\n uploadDirectoryToIpfs,\n pinAssetMetadata,\n uploadFailureToast,\n isUserRejection,\n setUploadDiagnosticsReporter,\n type SignedUploadKind,\n type UploadedIpfsFile,\n type UploadDiagnostics,\n type PinAssetMetadataInput,\n type PinnedAsset,\n} from \"./utils/ipfs-upload.js\";\nexport { useIntersectionActive } from \"./utils/use-intersection-active.js\";\nexport { getReadIds, markRead } from \"./utils/notification-storage.js\";\nexport { licenseSummary } from \"./utils/license-summary.js\";\nexport {\n isBareExecuteFailure,\n isUserRejectedRequest,\n isWrongNetwork,\n assertCorrectNetwork,\n WrongNetworkError,\n} from \"./utils/wallet-error.js\";\nexport {\n describeError,\n UserFacingError,\n NOT_SUBMITTED,\n GENERIC,\n NETWORK_BUSY,\n CONNECTION_FAILED,\n} from \"./utils/describe-error.js\";\nexport type { ErrorNotice } from \"./utils/describe-error.js\";\n\nexport { IP_TYPE_DATA, IP_TYPE_DATA_MAP } from \"./data/ip-types.js\";\nexport type { IpTypeData } from \"./data/ip-types.js\";\nexport {\n IP_TYPES, LICENSE_TYPES, GEOGRAPHIC_SCOPES, AI_POLICIES,\n DERIVATIVES_OPTIONS, LICENSE_TRAIT_TYPES,\n} from \"./data/ip.js\";\nexport type { IPType, LicenseType } from \"./data/ip.js\";\nexport {\n IP_TEMPLATES, EMBED_PLATFORM_META, SOCIAL_PLATFORM_META, TEMPLATE_TRAIT_TYPES, DOC_UPLOAD,\n} from \"./data/ip-templates.js\";\nexport type { EmbedPlatform, SocialPlatform, TraitSuggestion, IPTemplate, DocUploadConfig } from \"./data/ip-templates.js\";\nexport { IPTypeDisplay } from \"./components/ip-type-display.js\";\nexport { AssetOverviewContent } from \"./components/asset-overview-content.js\";\nexport { AssetLicenseSummary } from \"./components/asset-license-summary.js\";\nexport { AssetMarketsTab } from \"./components/asset-markets-tab.js\";\nexport { ParentAttributionBanner } from \"./components/parent-attribution-banner.js\";\nexport type { ParentBannerProps } from \"./components/parent-attribution-banner.js\";\nexport { AssetMediaColumn, AssetHeaderBlock, AssetOwnerRow } from \"./components/asset-top-sections.js\";\nexport { ExpandableText } from \"./components/expandable-text.js\";\nexport { CollectionHeader, type CollectionHeaderProps } from \"./components/collection-header.js\";\nexport { CreatorHeader, type CreatorHeaderProps, type CreatorHeaderStat } from \"./components/creator-header.js\";\nexport { AssetPage, AssetPageSkeleton, detectAssetKind, type AssetPageProps, type AssetPageSlots, type AssetKind, type AssetMarketContext, type AssetMarketActions } from \"./components/asset-page.js\";\nexport { AssetCommentsDialog, type AssetCommentsDialogProps, type AssetCommentsProps } from \"./components/asset-comments-dialog.js\";\nexport { CollectionPage, canTransferCollectionOwnership, type CollectionPageProps, type CollectionPageSlots, type CollectionMarketActions } from \"./components/collection-page.js\";\nexport { CollectionFiltersDialog, type CollectionFiltersDialogProps } from \"./components/collection-filters-dialog.js\";\nexport { GatedContentHero, GatedContentPanel, type GatedContent, type GatedContentState } from \"./components/gated-content.js\";\nexport { MakeOfferPicker } from \"./components/make-offer-picker.js\";\nexport { ListingCardMenu } from \"./components/listing-card-menu.js\";\nexport { FloatingCommentsButton } from \"./components/floating-comments-button.js\";\nexport { PageBackdrop } from \"./components/media-header.js\";\nexport { useComments, type UseCommentsResult } from \"./utils/use-comments.js\";\nexport { useFullTokenData } from \"./utils/use-full-token-data.js\";\nexport { useAssetMarketState, type AssetMarketState } from \"./utils/asset-market-state.js\";\nexport { assetAttributes, type AssetAttribute } from \"./utils/asset-attributes.js\";\nexport type { AssetOwnerRowProps } from \"./components/asset-top-sections.js\";\nexport { AssetCollectionBar } from \"./components/asset-collection-bar.js\";\nexport type { AssetCollectionBarProps, AssetCollectionBarSibling } from \"./components/asset-collection-bar.js\";\nexport { AssetUtilityIcons } from \"./components/asset-utility-icons.js\";\nexport type { AssetUtilityIconsProps } from \"./components/asset-utility-icons.js\";\nexport { AssetMarketplacePanel } from \"./components/asset-marketplace-panel.js\";\nexport type { AssetMarketplacePanelProps, ApiOrderLike } from \"./components/asset-marketplace-panel.js\";\nexport { BRAND } from \"./data/brand.js\";\nexport { LIVING_RENDER_COLLECTIONS, isLivingRenderCollection } from \"./data/living-render-collections.js\";\n\nexport { CurrencyIcon, CurrencyAmount } from \"./components/currency-icon.js\";\nexport type { CurrencyIconProps, CurrencyAmountProps } from \"./components/currency-icon.js\";\n\nexport { IpTypeBadge, IP_TYPE_CONFIG, IP_TYPE_MAP } from \"./components/ip-type-badge.js\";\nexport type { IpTypeBadgeProps, IpTypeConfig } from \"./components/ip-type-badge.js\";\n\nexport { AddressDisplay } from \"./components/address-display.js\";\nexport type { AddressDisplayProps } from \"./components/address-display.js\";\n\nexport { MedialaneLogoFull } from \"./components/brand-logo.js\";\nexport type { MedialaneLogoFullProps } from \"./components/brand-logo.js\";\n\nexport { MotionCard, FadeIn, Stagger, StaggerItem, KineticWords, SPRING, EASE_OUT } from \"./components/motion-primitives.js\";\nexport { PageContainer } from \"./components/page-container.js\";\nexport type { PageContainerProps } from \"./components/page-container.js\";\nexport { ScrollSection } from \"./components/scroll-section.js\";\nexport type { ScrollSectionProps } from \"./components/scroll-section.js\";\nexport { ShareButton } from \"./components/share-button.js\";\nexport type { ShareButtonProps } from \"./components/share-button.js\";\nexport { CollectionCard, CollectionCardSkeleton } from \"./components/collection-card.js\";\nexport type { CollectionCardProps } from \"./components/collection-card.js\";\nexport { TokenCard, TokenCardSkeleton } from \"./components/token-card.js\";\nexport type { TokenCardProps } from \"./components/token-card.js\";\nexport { AnimatedTokenMedia } from \"./components/animated-token-media.js\";\nexport type { AnimatedTokenMediaProps } from \"./components/animated-token-media.js\";\nexport { ThemeAmbientBackground } from \"./components/theme-ambient-background.js\";\nexport {\n useCollectionFilters, SORT_OPTIONS, CollectionFiltersTrigger, CollectionFiltersBody,\n} from \"./components/collection-filters.js\";\nexport type { TraitSection, CollectionFiltersTriggerProps, CollectionFiltersBodyProps } from \"./components/collection-filters.js\";\nexport {\n DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem,\n DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel,\n DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup,\n DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent,\n DropdownMenuSubTrigger, DropdownMenuRadioGroup,\n} from \"./components/dropdown-menu.js\";\nexport { AssetCard, AssetCardSkeleton } from \"./components/asset-card.js\";\nexport type { AssetCardProps, AssetCardPrice } from \"./components/asset-card.js\";\nexport { AssetPicker } from \"./components/asset-picker.js\";\nexport type { AssetPickerProps, OwnedAsset } from \"./components/asset-picker.js\";\nexport { AssetSearchPicker } from \"./components/asset-search-picker.js\";\nexport type { AssetSearchPickerProps } from \"./components/asset-search-picker.js\";\nexport { LicenseTermsBuilder, EMPTY_SPONSORSHIP_TERMS, MEDIA_TYPES, DURATION_UNITS, toLicenseMetadata, toDurationDays } from \"./components/license-terms-builder.js\";\nexport type { LicenseTermsBuilderProps, SponsorshipTerms, DurationUnit } from \"./components/license-terms-builder.js\";\n\nexport {\n coinKind, coinKindLabel, coinKindLabelPlural, COIN_KINDS, coinAccentToken, coinServiceIds, isCoinService, formatCoinPrice, coinSupply, formatFdvUsd, fdvUsd,\n type CoinKind, type CoinCollectionLike, type CoinPriceLike,\n} from \"./data/coins.js\";\nexport { CoinGuarantees, type CoinGuaranteesProps, type CoinGuaranteesData } from \"./components/coin-guarantees.js\";\nexport { CoinRow, CoinRowSkeleton, CoinAvatar, COIN_GRID, type UseCoinPrice, type CoinRowProps, type CoinMarketStatus } from \"./components/coin-row.js\";\nexport { orderCoins, type CoinPriceSort } from \"./data/coin-order.js\";\nexport {\n CoinsExplorer,\n type CoinsExplorerProps, type CoinFilter, type CoinSort, type UseCoins, type UsePriceMap, type CoinCounts,\n} from \"./components/coins-explorer.js\";\n\nexport { timeAgo, timeUntil, isExpired } from \"./utils/time.js\";\nexport { toDisplayUrl, toDisplayUrlOrNull, toAbsoluteImageUrl, 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 { HeroSlider, HeroSliderSkeleton } from \"./components/hero-slider.js\";\nexport type { HeroSliderProps } from \"./components/hero-slider.js\";\nexport { ActivityTicker } from \"./components/activity-ticker.js\";\nexport type { ActivityTickerProps } from \"./components/activity-ticker.js\";\nexport { ListingCard, ListingCardSkeleton } from \"./components/listing-card.js\";\nexport type { ListingCardProps } from \"./components/listing-card.js\";\nexport {\n MarketplaceTxLink,\n MarketplaceProcessingState,\n MarketplaceSignInGate,\n MarketplaceSuccessState,\n MarketplaceErrorState,\n MarketplaceDialogHero,\n CurrencyPicker,\n DurationPicker,\n MarketplaceConfirmStep,\n} from \"./components/marketplace-dialog-primitives.js\";\nexport { ActivityRow } from \"./components/activity-row.js\";\nexport { ActivityTimelineRow } from \"./components/activity-timeline-row.js\";\nexport type { ActivityTimelineRowProps } from \"./components/activity-timeline-row.js\";\nexport { DropItemList } from \"./components/drop-item-list.js\";\nexport type { DraftItem } from \"./components/drop-item-list.js\";\nexport { getDefaultClaimWindow, suggestLaunchpadSymbol } from \"./utils/launchpad-defaults.js\";\nexport { DropStatusBadge, DropSupplyProgress } from \"./components/drop/drop-status.js\";\nexport { DropCard, DropGrid, DropGridSkeleton } from \"./components/drop/drop-card.js\";\nexport { DropListing } from \"./components/drop/drop-listing.js\";\nexport { DropFeatures } from \"./components/drop/drop-features.js\";\nexport { MyDrops } from \"./components/drop/my-drops.js\";\nexport { DropTokenLink } from \"./components/drop/drop-token-link.js\";\nexport type { DropPhase } from \"./utils/drop/view.js\";\nexport { DropCreate, DraftSummary } from \"./components/drop/create/drop-create.js\";\nexport { ExclusiveFields } from \"./components/drop/create/exclusive-fields.js\";\nexport { DropPage } from \"./components/drop/page/drop-page.js\";\nexport { DropActionBox } from \"./components/drop/page/drop-action-box.js\";\nexport { DropActivityList } from \"./components/drop/page/drop-activity.js\";\nexport { claimProofFor } from \"./utils/drop/claim-proof.js\";\nexport type { DropSigner } from \"./utils/drop/types.js\";\nexport { MedialaneAppProvider, useMedialaneApp, type MedialaneApp, type CompanionApp, type AssetRef, type ReportTarget, type ReportDialogSlot } from \"./components/medialane-app.js\";\nexport { runIntentCalls } from \"./utils/run-intent-calls.js\";\nexport { GATED_CONTENT_TYPES, GATED_CONTENT_TYPE_FALLBACK } from \"./data/gated-content-types.js\";\nexport type { ContentTypeConfig } from \"./data/gated-content-types.js\";\nexport { CollapsibleSection } from \"./components/collapsible-section.js\";\nexport { useUsdPrices, usdPriceFor } from \"./utils/use-usd-prices.js\";\nexport type { UsdPrices } from \"./utils/use-usd-prices.js\";\nexport { NotificationRow } from \"./components/notification-row.js\";\nexport type { NotificationRowProps } from \"./components/notification-row.js\";\nexport { NOTIFICATION_ICON, NOTIFICATION_COLOR, NOTIFICATION_LABEL } from \"./data/notification-meta.js\";\nexport type { ActivityRowProps } from \"./components/activity-row.js\";\nexport { ActivityFeedShell } from \"./components/activity-feed-shell.js\";\nexport type { ActivityFeedShellProps } from \"./components/activity-feed-shell.js\";\nexport { CtaCardGrid } from \"./components/cta-card-grid.js\";\nexport type { CtaCardGridProps, CtaCardItem } from \"./components/cta-card-grid.js\";\n\nexport { DiscoverHero } from \"./components/discover-hero.js\";\nexport type { DiscoverHeroProps } from \"./components/discover-hero.js\";\nexport { FeaturedCarousel, FeaturedCarouselSkeleton } from \"./components/featured-carousel.js\";\nexport type { FeaturedCarouselProps } from \"./components/featured-carousel.js\";\nexport { DiscoverCollectionsStrip } from \"./components/discover-collections-strip.js\";\nexport type { DiscoverCollectionsStripProps } from \"./components/discover-collections-strip.js\";\nexport { DiscoverCreatorsStrip } from \"./components/discover-creators-strip.js\";\nexport type { DiscoverCreatorsStripProps } from \"./components/discover-creators-strip.js\";\nexport { DiscoverFeedSection, DiscoverActivityStrip } from \"./components/discover-feed-section.js\";\nexport type { DiscoverFeedSectionProps, DiscoverActivityStripProps } from \"./components/discover-feed-section.js\";\nexport { ActivityCard, ActivityCardSkeleton, ACTIVITY_MESSAGES } from \"./components/activity-card.js\";\nexport type { ActivityCardProps } from \"./components/activity-card.js\";\n\nexport { LaunchpadGroupedSections, LaunchpadServiceCard, SERVICE_HUES, useLaunchpadFilter } from \"./components/launchpad-services.js\";\nexport { LaunchpadFilterBar } from \"./components/launchpad-filter-bar.js\";\nexport type { LaunchpadFilterBarProps } from \"./components/launchpad-filter-bar.js\";\nexport { LaunchpadStrip } from \"./components/launchpad-strip.js\";\nexport type { LaunchpadStripProps } from \"./components/launchpad-strip.js\";\nexport { LaunchpadCtaBanner } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadCtaBannerProps } from \"./components/launchpad-cta-banner.js\";\nexport type { LaunchpadGroupedSectionsProps, LaunchpadServiceCardProps, ServiceOverride, ServiceOverrides } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_ROUTE_OVERRIDES } from \"./components/launchpad-services.js\";\nexport { LAUNCHPAD_SERVICE_DEFINITIONS, LAUNCHPAD_SERVICE_GROUPS } from \"./data/launchpad-services.js\";\nexport type { ServiceDefinition, ServiceStatus, ServiceGroup, ServiceGroupDefinition } from \"./data/launchpad-services.js\";\n\nexport { NavCommandMenu, useNavCommandMenu, relevanceFilter, 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 { PortfolioAssets, type PortfolioAssetActions, type UsePortfolioAssetActions } from \"./components/portfolio-assets.js\";\nexport { PortfolioShell, PORTFOLIO_TABS, type PortfolioTab } from \"./components/portfolio-shell.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 { 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, type HomePageProps } from \"./components/home-page.js\";\nexport { CreatorsPage } from \"./components/creators-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 { 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 { PortfolioSection } from \"./components/portfolio-section.js\";\nexport type {\n PortfolioSectionProps,\n PortfolioSectionColor,\n} from \"./components/portfolio-section.js\";\nexport { PortfolioChipFilter } from \"./components/portfolio-chip-filter.js\";\nexport type {\n PortfolioChipFilterProps,\n PortfolioChipFilterOption,\n} from \"./components/portfolio-chip-filter.js\";\n\nexport { ServiceHeader } from \"./components/service-header.js\";\nexport type { ServiceHeaderProps } from \"./components/service-header.js\";\nexport { ClaimRail } from \"./components/claim-rail.js\";\nexport type { ClaimRailProps } from \"./components/claim-rail.js\";\n\nexport { ServiceFormShell } from \"./components/service-form-shell.js\";\nexport type { ServiceFormShellProps } from \"./components/service-form-shell.js\";\nexport { StepNav } from \"./components/step-nav.js\";\nexport type { StepNavProps, StepNavStep } from \"./components/step-nav.js\";\n\nexport { LevelBadge } from \"./components/rewards/level-badge.js\";\nexport type { LevelBadgeProps } from \"./components/rewards/level-badge.js\";\nexport { XpProgress } from \"./components/rewards/xp-progress.js\";\nexport type { XpProgressProps } from \"./components/rewards/xp-progress.js\";\nexport { BadgeShelf } from \"./components/rewards/badge-shelf.js\";\nexport type { BadgeShelfProps, BadgeShelfBadge } from \"./components/rewards/badge-shelf.js\";\nexport { ScoreSummaryCard } from \"./components/rewards/score-summary-card.js\";\nexport type { ScoreSummaryCardProps } from \"./components/rewards/score-summary-card.js\";\nexport { LeaderboardTable, LeaderboardWidget } from \"./components/rewards/leaderboard-table.js\";\nexport type { LeaderboardTableProps, LeaderboardWidgetProps, LeaderboardEntryLike } from \"./components/rewards/leaderboard-table.js\";\nexport { LevelJourneyList } from \"./components/rewards/level-journey-list.js\";\nexport type { LevelJourneyListProps, LevelJourneyListLevel } from \"./components/rewards/level-journey-list.js\";\nexport { BadgeCatalog } from \"./components/rewards/badge-catalog.js\";\nexport type { BadgeCatalogProps, BadgeCatalogBadge } from \"./components/rewards/badge-catalog.js\";\nexport { XpEarned } from \"./components/rewards/xp-earned.js\";\nexport type { XpEarnedProps } from \"./components/rewards/xp-earned.js\";\nexport { createRewardEarned } from \"./components/rewards/reward-earned.js\";\nexport type { RewardEarnedProps, RewardSnapshot } from \"./components/rewards/reward-earned.js\";\n\nexport { LoadMoreSentinel } from \"./components/load-more-sentinel.js\";\nexport { ActivitiesFeed } from \"./components/activities-feed.js\";\nexport type { LoadMoreSentinelProps } from \"./components/load-more-sentinel.js\";\n\nexport { RewardsSection } from \"./components/rewards-section.js\";\nexport type { RewardsSectionProps } from \"./components/rewards-section.js\";\n\nexport { ActionButton } from \"./components/action-button.js\";\nexport type { ActionButtonProps, ActionKey, ToneKey } from \"./components/action-button.js\";\nexport { GradientButton } from \"./components/gradient-button.js\";\nexport type { GradientButtonProps } from \"./components/gradient-button.js\";\n\nexport { CoinLaunchPreview } from \"./components/coin-launch-preview.js\";\nexport type { CoinPreviewData } from \"./components/coin-launch-preview.js\";\nexport { MedialaneCollectionCard } from \"./components/medialane-collection-card.js\";\nexport type { MedialaneCollectionCardProps } from \"./components/medialane-collection-card.js\";\nexport { TokenGlyph, TokenAmount } from \"./components/token-glyph.js\";\nexport type { TokenGlyphProps, TokenAmountProps, TokenSymbol } from \"./components/token-glyph.js\";\n\nexport { StatTile, StatPill, StatPillRow } from \"./components/stat-tile.js\";\nexport type { StatTileProps, StatPillProps, StatPillRowItem } from \"./components/stat-tile.js\";\n\nexport { ActionDialog } from \"./components/action-dialog.js\";\nexport type { ActionDialogProps } from \"./components/action-dialog.js\";\n\nexport { HiddenContentBanner } from \"./components/hidden-content-banner.js\";\n\nexport { useRewardsCelebrations } from \"./components/rewards/use-rewards-celebrations.js\";\nexport { LevelUpCelebration } from \"./components/rewards/level-up-celebration.js\";\nexport type { LevelUpCelebrationProps } from \"./components/rewards/level-up-celebration.js\";\nexport { BadgeUnlocked } from \"./components/rewards/badge-unlocked.js\";\nexport type { BadgeUnlockedProps } from \"./components/rewards/badge-unlocked.js\";\nexport { JourneyPath } from \"./components/rewards/journey-path.js\";\nexport type { JourneyPathProps, JourneyStep } from \"./components/rewards/journey-path.js\";\n\nexport { Skeleton } from \"./components/skeleton.js\";\nexport { Badge, badgeVariants } from \"./components/badge.js\";\nexport type { BadgeProps } from \"./components/badge.js\";\nexport { Label } from \"./components/label.js\";\nexport { Input } from \"./components/input.js\";\nexport { Switch } from \"./components/switch.js\";\nexport { Checkbox } from \"./components/checkbox.js\";\nexport { Alert, AlertTitle, AlertDescription } from \"./components/alert.js\";\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from \"./components/tabs.js\";\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from \"./components/card.js\";\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from \"./components/collapsible.js\";\nexport { Button, buttonVariants } from \"./components/button.js\";\nexport type { ButtonProps } from \"./components/button.js\";\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from \"./components/popover.js\";\nexport { HelpIcon } from \"./components/help-icon.js\";\nexport { EmptyOrError } from \"./components/empty-or-error.js\";\nexport { 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 { AssetLightbox } from \"./components/asset-lightbox.js\";\nexport type { AssetLightboxProps } from \"./components/asset-lightbox.js\";\nexport { PriceHistoryChart } from \"./components/price-history-chart.js\";\nexport type { PriceHistoryChartProps } from \"./components/price-history-chart.js\";\nexport { NavThemeToggle } from \"./components/nav-theme-toggle.js\";\nexport { JsonLd } from \"./components/json-ld.js\";\nexport type { JsonLdProps } from \"./components/json-ld.js\";\nexport { CreationRecord } from \"./components/creation-record.js\";\nexport type { CreationRecordProps } from \"./components/creation-record.js\";\nexport { ClubOwnerActions } from \"./components/club-owner-actions.js\";\nexport type { ClubOwnerActionsProps } from \"./components/club-owner-actions.js\";\nexport { IPTypeFields } from \"./components/ip-type-fields.js\";\nexport type { IPTypeFieldsProps, MetadataField } from \"./components/ip-type-fields.js\";\n\nexport { FastMint } from \"./components/fast-mint/fast-mint.js\";\nexport { Dropzone } from \"./components/fast-mint/dropzone.js\";\nexport type { DropzoneProps } from \"./components/fast-mint/dropzone.js\";\nexport { SuccessView } from \"./components/fast-mint/success-view.js\";\nexport type { SuccessViewProps } from \"./components/fast-mint/success-view.js\";\nexport type {\n MediaKind, FastMintSigner, MintedAsset, FastMintProps,\n} from \"./components/fast-mint/types.js\";\nexport { readBodyWithCap } from \"./utils/proxy-body.js\";\nexport type { CappedBody } from \"./utils/proxy-body.js\";\nexport {\n formatActivity, formatOrderNotification, formatOfferAcceptedNotification, formatAssetReceivedNotification,\n} from \"./utils/format-activity.js\";\nexport type { FormattedEvent } from \"./utils/format-activity.js\";\n\nexport { queryKeys, queryKeyPrefix, QUERY_PREFIX } from \"./utils/query-keys.js\";\nexport { useCollectionProfile, useCreatorProfile, 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 { CollectionActivityTab } from \"./components/collection-activity-tab.js\";\nexport type { CollectionActivityTabProps } from \"./components/collection-activity-tab.js\";\nexport { CollectionTraitsTab } from \"./components/collection-traits-tab.js\";\nexport type { CollectionTraitsTabProps } from \"./components/collection-traits-tab.js\";\nexport { PortfolioActivity } from \"./components/portfolio-activity.js\";\nexport type { PortfolioActivityProps } from \"./components/portfolio-activity.js\";\nexport { CreatorScoreInline } from \"./components/creator-score-inline.js\";\nexport type { CreatorScoreInlineProps } from \"./components/creator-score-inline.js\";\n\nexport { useMedialaneClient } from \"./utils/use-medialane-client.js\";\n\nexport { MediaWalletOverlay, useMediaWallet } from \"./components/media-wallet/media-wallet-overlay.js\";\nexport type {\n MediaWalletAppProps,\n MediaWalletHeaderIdentity,\n MediaWalletSession,\n MediaWalletView,\n WalletWriteAction,\n WalletWriteStatus,\n} from \"./components/media-wallet/types.js\";\nexport { useCreators } from \"./utils/use-creators.js\";\nexport { 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 { useNotifications } from \"./utils/use-notifications.js\";\nexport type { Notification, NotificationType, NotificationPriority, Announcement } from \"./data/notification.js\";\nexport { useTokenRemixes } from \"./utils/use-remix-offers.js\";\nexport { RemixesTab } from \"./components/remixes-tab.js\";\nexport type { RemixesTabProps } from \"./components/remixes-tab.js\";\n\nexport { OwnerSetupPanel } from \"./components/owner-setup-panel.js\";\nexport { DropCountdown } from \"./components/drop-countdown.js\";\nexport { CreatorAnalytics } from \"./components/creator-analytics.js\";\nexport {\n Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger,\n DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription,\n} from \"./components/dialog.js\";\nexport { SelfFundConsentDialog, feeLabelFor } from \"./components/wallet/self-fund-consent-dialog.js\";\nexport { ExportKeySection, type ExportKeySectionProps } from \"./components/wallet/export-key-section.js\";\nexport { useDrops, useMyDrops, useDrop, useDropMints, useDropFee, useDropFile, useDropChain } from \"./utils/use-drops.js\";\nexport type { DropChainState } from \"./utils/use-drops.js\";\nexport { usePopCollections, useMyPopEvents, usePopClaimStatus } from \"./utils/use-pop.js\";\nexport { usePlatformStats } from \"./utils/use-platform-stats.js\";\nexport { useTokensByIpType } from \"./utils/use-tokens-by-ip-type.js\";\nexport { usePriceMap, useCoinPrice } from \"./utils/use-coin-price.js\";\nexport {\n useSponsorshipOffers, useSponsorshipOffer, useSponsorshipBids, useSponsorshipProposals,\n useSponsorshipProposal, usePendingProposalsForAsset, useSponsorshipLicenses, useMySponsorshipDealCounts,\n} from \"./utils/use-sponsorship.js\";\nexport {\n predictNextMembershipId, predictNextTicketId, useMyClubCollections, useMyTicketCollections,\n useMembershipList, useTicketList, useMembershipOnchain, useTicketOnchain, useIsMemberOf,\n type TierOnchain, type TierListItem,\n} from \"./utils/use-tiers.js\";\nexport { collectSitemapData, type SitemapData, type SitemapLimits } from \"./utils/sitemap-data.js\";\nexport { useToken, useTokenBalance, useTokenHistory, useTokensByOwner } from \"./utils/use-tokens.js\";\nexport { checkIsOwner } from \"./utils/ownership.js\";\nexport { AssetOwnersPanel } from \"./components/asset-owners-panel.js\";\nexport { AssetUnavailable } from \"./components/asset-unavailable.js\";\nexport { AssetProvenanceTab } from \"./components/asset-provenance-tab.js\";\nexport { ASSET_ACCENTS, type AssetAccent, type AssetAccentName } from \"./utils/asset-accents.js\";\n"],"mappings":"AACA,SAAS,UAAU;AACnB,SAAS,oBAAoB,mBAAmB,kBAAkB,WAAW,gBAAgB,0BAA0B;AACvH,SAAS,sBAAsB;AAC/B,SAAS,uBAAyE;AAClF,SAAS,YAA+B,uBAA6B;AACrE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,6BAA6B;AACtC,SAAS,YAAY,gBAAgB;AACrC,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,cAAc,wBAAwB;AAE/C;AAAA,EACE;AAAA,EAAU;AAAA,EAAe;AAAA,EAAmB;AAAA,EAC5C;AAAA,EAAqB;AAAA,OAChB;AAEP;AAAA,EACE;AAAA,EAAc;AAAA,EAAqB;AAAA,EAAsB;AAAA,EAAsB;AAAA,OAC1E;AAEP,SAAS,qBAAqB;AAC9B,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;AAChC,SAAS,+BAA+B;AAExC,SAAS,kBAAkB,kBAAkB,qBAAqB;AAClE,SAAS,sBAAsB;AAC/B,SAAS,wBAAoD;AAC7D,SAAS,qBAAsE;AAC/E,SAAS,WAAW,mBAAmB,uBAAmI;AAC1K,SAAS,2BAAmF;AAC5F,SAAS,gBAAgB,sCAAwH;AACjJ,SAAS,+BAAkE;AAC3E,SAAS,kBAAkB,yBAAoE;AAC/F,SAAS,uBAA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AS,uBAAuB;AAChC,SAAS,kBAAkB;AAG3B,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC;AAAA,EACE;AAAA,EAAQ;AAAA,EAAc;AAAA,EAAe;AAAA,EAAa;AAAA,EAClD;AAAA,EAAe;AAAA,EAAc;AAAA,EAAc;AAAA,EAAa;AAAA,OACnD;AACP,SAAS,uBAAuB,mBAAmB;AACnD,SAAS,wBAAoD;AAC7D,SAAS,UAAU,YAAY,SAAS,cAAc,YAAY,aAAa,oBAAoB;AAEnG,SAAS,mBAAmB,gBAAgB,yBAAyB;AACrE,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,aAAa,oBAAoB;AAC1C;AAAA,EACE;AAAA,EAAsB;AAAA,EAAqB;AAAA,EAAoB;AAAA,EAC/D;AAAA,EAAwB;AAAA,EAA6B;AAAA,EAAwB;AAAA,OACxE;AACP;AAAA,EACE;AAAA,EAAyB;AAAA,EAAqB;AAAA,EAAsB;AAAA,EACpE;AAAA,EAAmB;AAAA,EAAe;AAAA,EAAsB;AAAA,EAAkB;AAAA,OAErE;AACP,SAAS,0BAAgE;AACzE,SAAS,UAAU,iBAAiB,iBAAiB,wBAAwB;AAC7E,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,qBAA6D;","names":[]}
@@ -1,4 +1,4 @@
1
- import * as _medialane_sdk_starknet from '@medialane/sdk/starknet';
1
+ import * as _medialane_sdk_wallet from '@medialane/sdk/wallet';
2
2
  import { MedialaneClient } from '@medialane/sdk/starknet';
3
3
 
4
4
  interface AppWalletConfig {
@@ -20,10 +20,10 @@ declare const APP_WALLET_DEFAULTS: {
20
20
  readonly deployProxyUrl: "/api/proxy/v1/paymaster/deploy";
21
21
  };
22
22
  declare function createAppWallet(config: AppWalletConfig): {
23
- ownerStore: _medialane_sdk_starknet.OwnerStore;
24
- passkeyOwner: _medialane_sdk_starknet.PasskeyOwner;
25
- walletConsent: _medialane_sdk_starknet.SelfFundConsent;
26
- mediaWallet: _medialane_sdk_starknet.MediaWallet;
23
+ ownerStore: _medialane_sdk_wallet.OwnerStore;
24
+ passkeyOwner: _medialane_sdk_wallet.PasskeyOwner;
25
+ walletConsent: _medialane_sdk_wallet.SelfFundConsent;
26
+ mediaWallet: _medialane_sdk_wallet.MediaWallet;
27
27
  };
28
28
 
29
29
  export { APP_WALLET_DEFAULTS, type AppWalletConfig, createAppWallet };
@@ -1,4 +1,4 @@
1
- import * as _medialane_sdk_starknet from '@medialane/sdk/starknet';
1
+ import * as _medialane_sdk_wallet from '@medialane/sdk/wallet';
2
2
  import { MedialaneClient } from '@medialane/sdk/starknet';
3
3
 
4
4
  interface AppWalletConfig {
@@ -20,10 +20,10 @@ declare const APP_WALLET_DEFAULTS: {
20
20
  readonly deployProxyUrl: "/api/proxy/v1/paymaster/deploy";
21
21
  };
22
22
  declare function createAppWallet(config: AppWalletConfig): {
23
- ownerStore: _medialane_sdk_starknet.OwnerStore;
24
- passkeyOwner: _medialane_sdk_starknet.PasskeyOwner;
25
- walletConsent: _medialane_sdk_starknet.SelfFundConsent;
26
- mediaWallet: _medialane_sdk_starknet.MediaWallet;
23
+ ownerStore: _medialane_sdk_wallet.OwnerStore;
24
+ passkeyOwner: _medialane_sdk_wallet.PasskeyOwner;
25
+ walletConsent: _medialane_sdk_wallet.SelfFundConsent;
26
+ mediaWallet: _medialane_sdk_wallet.MediaWallet;
27
27
  };
28
28
 
29
29
  export { APP_WALLET_DEFAULTS, type AppWalletConfig, createAppWallet };
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(actions_exports);
27
27
  var import_starknet = require("@medialane/sdk/starknet");
28
28
  var import_receipt = require("./receipt.js");
29
29
  async function launchDrop(deps, input) {
30
- const res = await deps.client.api.createCollectionIntent({
30
+ const res = await deps.client.api.intents.create("create-collection", {
31
31
  owner: input.owner,
32
32
  name: input.name,
33
33
  symbol: input.symbol,
@@ -39,28 +39,28 @@ async function launchDrop(deps, input) {
39
39
  ...input.description ? { description: input.description } : {},
40
40
  ...input.image ? { image: input.image } : {}
41
41
  });
42
- const { txHash, receipt } = await (0, import_starknet.executeIntent)(deps.signer, deps.client, res.data);
42
+ const { txHash, receipt } = await (0, import_starknet.executeIntent)(deps.signer, deps.client, res);
43
43
  const collection = (0, import_starknet.deployedCollectionFromReceipt)(receipt, "drop-collection");
44
44
  if (!collection) throw new Error("Your drop launched, but its address wasn't found yet. Check My drops in a minute.");
45
45
  return { collection, txHash };
46
46
  }
47
47
  async function mintDrop(deps, input) {
48
- const res = await deps.client.api.createDropClaimIntent({
48
+ const res = await deps.client.api.intents.create("drop-claim", {
49
49
  claimer: input.claimer,
50
50
  collection: input.collection,
51
51
  quantity: input.quantity.toString(),
52
52
  ...input.proof ? { proof: input.proof } : {}
53
53
  });
54
- const { txHash, receipt } = await (0, import_starknet.executeIntent)(deps.signer, deps.client, res.data);
54
+ const { txHash, receipt } = await (0, import_starknet.executeIntent)(deps.signer, deps.client, res);
55
55
  return { txHash, tokenIds: (0, import_receipt.claimedTokenIds)(receipt, input.collection) };
56
56
  }
57
57
  async function manageDrop(deps, params) {
58
- const res = await deps.client.api.createDropManageIntent(params);
59
- const { txHash } = await (0, import_starknet.executeIntent)(deps.signer, deps.client, res.data);
58
+ const res = await deps.client.api.intents.create("drop-manage", params);
59
+ const { txHash } = await (0, import_starknet.executeIntent)(deps.signer, deps.client, res);
60
60
  return { txHash };
61
61
  }
62
62
  async function saveExclusiveContent(client, collection, content) {
63
- await client.api.updateCollectionProfile(collection, {
63
+ await client.api.collections.updateProfile(collection, {
64
64
  gatedContentTitle: content?.title || null,
65
65
  gatedContentUrl: content?.url || null,
66
66
  gatedContentType: content?.type || null
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/drop/actions.ts"],"sourcesContent":["import type { CreateDropManageIntentParams, DropTermsBody } from \"@medialane/sdk\";\nimport { deployedCollectionFromReceipt, executeIntent, type MedialaneClient } from \"@medialane/sdk/starknet\";\nimport { claimedTokenIds } from \"./receipt.js\";\nimport type { DropSigner } from \"./types.js\";\n\nexport interface DropDeps {\n client: MedialaneClient;\n signer: DropSigner;\n}\n\nexport async function launchDrop(\n deps: DropDeps,\n input: {\n owner: string; name: string; symbol: string; baseUri: string; maxSupply: number;\n terms: DropTermsBody; allowlistRoot?: string; description?: string; image?: string;\n },\n): Promise<{ collection: string; txHash: string }> {\n const res = await deps.client.api.createCollectionIntent({\n owner: input.owner,\n name: input.name,\n symbol: input.symbol,\n baseUri: input.baseUri,\n service: \"drop-collection\",\n maxSupply: String(input.maxSupply),\n terms: input.terms,\n ...(input.allowlistRoot ? { allowlistRoot: input.allowlistRoot } : {}),\n ...(input.description ? { description: input.description } : {}),\n ...(input.image ? { image: input.image } : {}),\n });\n const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res.data);\n const collection = deployedCollectionFromReceipt(receipt, \"drop-collection\");\n if (!collection) throw new Error(\"Your drop launched, but its address wasn't found yet. Check My drops in a minute.\");\n return { collection, txHash };\n}\n\nexport async function mintDrop(\n deps: DropDeps,\n input: { claimer: string; collection: string; quantity: bigint; proof: string[] | null },\n): Promise<{ txHash: string; tokenIds: string[] }> {\n const res = await deps.client.api.createDropClaimIntent({\n claimer: input.claimer,\n collection: input.collection,\n quantity: input.quantity.toString(),\n ...(input.proof ? { proof: input.proof } : {}),\n });\n const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res.data);\n return { txHash, tokenIds: claimedTokenIds(receipt, input.collection) };\n}\n\nexport async function manageDrop(deps: DropDeps, params: CreateDropManageIntentParams): Promise<{ txHash: string }> {\n const res = await deps.client.api.createDropManageIntent(params);\n const { txHash } = await executeIntent(deps.signer, deps.client, res.data);\n return { txHash };\n}\n\nexport interface ExclusiveContent {\n title: string;\n url: string;\n type: string;\n}\n\nexport async function saveExclusiveContent(client: MedialaneClient, collection: string, content: ExclusiveContent | null): Promise<void> {\n await client.api.updateCollectionProfile(collection, {\n gatedContentTitle: content?.title || null,\n gatedContentUrl: content?.url || null,\n gatedContentType: (content?.type || null) as never,\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAmF;AACnF,qBAAgC;AAQhC,eAAsB,WACpB,MACA,OAIiD;AACjD,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,uBAAuB;AAAA,IACvD,OAAO,MAAM;AAAA,IACb,MAAM,MAAM;AAAA,IACZ,QAAQ,MAAM;AAAA,IACd,SAAS,MAAM;AAAA,IACf,SAAS;AAAA,IACT,WAAW,OAAO,MAAM,SAAS;AAAA,IACjC,OAAO,MAAM;AAAA,IACb,GAAI,MAAM,gBAAgB,EAAE,eAAe,MAAM,cAAc,IAAI,CAAC;AAAA,IACpE,GAAI,MAAM,cAAc,EAAE,aAAa,MAAM,YAAY,IAAI,CAAC;AAAA,IAC9D,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;AAAA,EAC9C,CAAC;AACD,QAAM,EAAE,QAAQ,QAAQ,IAAI,UAAM,+BAAc,KAAK,QAAQ,KAAK,QAAQ,IAAI,IAAI;AAClF,QAAM,iBAAa,+CAA8B,SAAS,iBAAiB;AAC3E,MAAI,CAAC,WAAY,OAAM,IAAI,MAAM,mFAAmF;AACpH,SAAO,EAAE,YAAY,OAAO;AAC9B;AAEA,eAAsB,SACpB,MACA,OACiD;AACjD,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,sBAAsB;AAAA,IACtD,SAAS,MAAM;AAAA,IACf,YAAY,MAAM;AAAA,IAClB,UAAU,MAAM,SAAS,SAAS;AAAA,IAClC,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;AAAA,EAC9C,CAAC;AACD,QAAM,EAAE,QAAQ,QAAQ,IAAI,UAAM,+BAAc,KAAK,QAAQ,KAAK,QAAQ,IAAI,IAAI;AAClF,SAAO,EAAE,QAAQ,cAAU,gCAAgB,SAAS,MAAM,UAAU,EAAE;AACxE;AAEA,eAAsB,WAAW,MAAgB,QAAmE;AAClH,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,uBAAuB,MAAM;AAC/D,QAAM,EAAE,OAAO,IAAI,UAAM,+BAAc,KAAK,QAAQ,KAAK,QAAQ,IAAI,IAAI;AACzE,SAAO,EAAE,OAAO;AAClB;AAQA,eAAsB,qBAAqB,QAAyB,YAAoB,SAAiD;AACvI,QAAM,OAAO,IAAI,wBAAwB,YAAY;AAAA,IACnD,mBAAmB,SAAS,SAAS;AAAA,IACrC,iBAAiB,SAAS,OAAO;AAAA,IACjC,kBAAmB,SAAS,QAAQ;AAAA,EACtC,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../../src/utils/drop/actions.ts"],"sourcesContent":["import type { CreateDropManageIntentParams, DropTermsBody } from \"@medialane/sdk\";\nimport { deployedCollectionFromReceipt, executeIntent, type MedialaneClient } from \"@medialane/sdk/starknet\";\nimport { claimedTokenIds } from \"./receipt.js\";\nimport type { DropSigner } from \"./types.js\";\n\nexport interface DropDeps {\n client: MedialaneClient;\n signer: DropSigner;\n}\n\nexport async function launchDrop(\n deps: DropDeps,\n input: {\n owner: string; name: string; symbol: string; baseUri: string; maxSupply: number;\n terms: DropTermsBody; allowlistRoot?: string; description?: string; image?: string;\n },\n): Promise<{ collection: string; txHash: string }> {\n const res = await deps.client.api.intents.create(\"create-collection\", {\n owner: input.owner,\n name: input.name,\n symbol: input.symbol,\n baseUri: input.baseUri,\n service: \"drop-collection\",\n maxSupply: String(input.maxSupply),\n terms: input.terms,\n ...(input.allowlistRoot ? { allowlistRoot: input.allowlistRoot } : {}),\n ...(input.description ? { description: input.description } : {}),\n ...(input.image ? { image: input.image } : {}),\n });\n const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res);\n const collection = deployedCollectionFromReceipt(receipt, \"drop-collection\");\n if (!collection) throw new Error(\"Your drop launched, but its address wasn't found yet. Check My drops in a minute.\");\n return { collection, txHash };\n}\n\nexport async function mintDrop(\n deps: DropDeps,\n input: { claimer: string; collection: string; quantity: bigint; proof: string[] | null },\n): Promise<{ txHash: string; tokenIds: string[] }> {\n const res = await deps.client.api.intents.create(\"drop-claim\", {\n claimer: input.claimer,\n collection: input.collection,\n quantity: input.quantity.toString(),\n ...(input.proof ? { proof: input.proof } : {}),\n });\n const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res);\n return { txHash, tokenIds: claimedTokenIds(receipt, input.collection) };\n}\n\nexport async function manageDrop(deps: DropDeps, params: CreateDropManageIntentParams): Promise<{ txHash: string }> {\n const res = await deps.client.api.intents.create(\"drop-manage\", params);\n const { txHash } = await executeIntent(deps.signer, deps.client, res);\n return { txHash };\n}\n\nexport interface ExclusiveContent {\n title: string;\n url: string;\n type: string;\n}\n\nexport async function saveExclusiveContent(client: MedialaneClient, collection: string, content: ExclusiveContent | null): Promise<void> {\n await client.api.collections.updateProfile(collection, {\n gatedContentTitle: content?.title || null,\n gatedContentUrl: content?.url || null,\n gatedContentType: (content?.type || null) as never,\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAmF;AACnF,qBAAgC;AAQhC,eAAsB,WACpB,MACA,OAIiD;AACjD,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,QAAQ,OAAO,qBAAqB;AAAA,IACpE,OAAO,MAAM;AAAA,IACb,MAAM,MAAM;AAAA,IACZ,QAAQ,MAAM;AAAA,IACd,SAAS,MAAM;AAAA,IACf,SAAS;AAAA,IACT,WAAW,OAAO,MAAM,SAAS;AAAA,IACjC,OAAO,MAAM;AAAA,IACb,GAAI,MAAM,gBAAgB,EAAE,eAAe,MAAM,cAAc,IAAI,CAAC;AAAA,IACpE,GAAI,MAAM,cAAc,EAAE,aAAa,MAAM,YAAY,IAAI,CAAC;AAAA,IAC9D,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;AAAA,EAC9C,CAAC;AACD,QAAM,EAAE,QAAQ,QAAQ,IAAI,UAAM,+BAAc,KAAK,QAAQ,KAAK,QAAQ,GAAG;AAC7E,QAAM,iBAAa,+CAA8B,SAAS,iBAAiB;AAC3E,MAAI,CAAC,WAAY,OAAM,IAAI,MAAM,mFAAmF;AACpH,SAAO,EAAE,YAAY,OAAO;AAC9B;AAEA,eAAsB,SACpB,MACA,OACiD;AACjD,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,QAAQ,OAAO,cAAc;AAAA,IAC7D,SAAS,MAAM;AAAA,IACf,YAAY,MAAM;AAAA,IAClB,UAAU,MAAM,SAAS,SAAS;AAAA,IAClC,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;AAAA,EAC9C,CAAC;AACD,QAAM,EAAE,QAAQ,QAAQ,IAAI,UAAM,+BAAc,KAAK,QAAQ,KAAK,QAAQ,GAAG;AAC7E,SAAO,EAAE,QAAQ,cAAU,gCAAgB,SAAS,MAAM,UAAU,EAAE;AACxE;AAEA,eAAsB,WAAW,MAAgB,QAAmE;AAClH,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,QAAQ,OAAO,eAAe,MAAM;AACtE,QAAM,EAAE,OAAO,IAAI,UAAM,+BAAc,KAAK,QAAQ,KAAK,QAAQ,GAAG;AACpE,SAAO,EAAE,OAAO;AAClB;AAQA,eAAsB,qBAAqB,QAAyB,YAAoB,SAAiD;AACvI,QAAM,OAAO,IAAI,YAAY,cAAc,YAAY;AAAA,IACrD,mBAAmB,SAAS,SAAS;AAAA,IACrC,iBAAiB,SAAS,OAAO;AAAA,IACjC,kBAAmB,SAAS,QAAQ;AAAA,EACtC,CAAC;AACH;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import { deployedCollectionFromReceipt, executeIntent } from "@medialane/sdk/starknet";
2
2
  import { claimedTokenIds } from "./receipt.js";
3
3
  async function launchDrop(deps, input) {
4
- const res = await deps.client.api.createCollectionIntent({
4
+ const res = await deps.client.api.intents.create("create-collection", {
5
5
  owner: input.owner,
6
6
  name: input.name,
7
7
  symbol: input.symbol,
@@ -13,28 +13,28 @@ async function launchDrop(deps, input) {
13
13
  ...input.description ? { description: input.description } : {},
14
14
  ...input.image ? { image: input.image } : {}
15
15
  });
16
- const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res.data);
16
+ const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res);
17
17
  const collection = deployedCollectionFromReceipt(receipt, "drop-collection");
18
18
  if (!collection) throw new Error("Your drop launched, but its address wasn't found yet. Check My drops in a minute.");
19
19
  return { collection, txHash };
20
20
  }
21
21
  async function mintDrop(deps, input) {
22
- const res = await deps.client.api.createDropClaimIntent({
22
+ const res = await deps.client.api.intents.create("drop-claim", {
23
23
  claimer: input.claimer,
24
24
  collection: input.collection,
25
25
  quantity: input.quantity.toString(),
26
26
  ...input.proof ? { proof: input.proof } : {}
27
27
  });
28
- const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res.data);
28
+ const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res);
29
29
  return { txHash, tokenIds: claimedTokenIds(receipt, input.collection) };
30
30
  }
31
31
  async function manageDrop(deps, params) {
32
- const res = await deps.client.api.createDropManageIntent(params);
33
- const { txHash } = await executeIntent(deps.signer, deps.client, res.data);
32
+ const res = await deps.client.api.intents.create("drop-manage", params);
33
+ const { txHash } = await executeIntent(deps.signer, deps.client, res);
34
34
  return { txHash };
35
35
  }
36
36
  async function saveExclusiveContent(client, collection, content) {
37
- await client.api.updateCollectionProfile(collection, {
37
+ await client.api.collections.updateProfile(collection, {
38
38
  gatedContentTitle: content?.title || null,
39
39
  gatedContentUrl: content?.url || null,
40
40
  gatedContentType: content?.type || null
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/drop/actions.ts"],"sourcesContent":["import type { CreateDropManageIntentParams, DropTermsBody } from \"@medialane/sdk\";\nimport { deployedCollectionFromReceipt, executeIntent, type MedialaneClient } from \"@medialane/sdk/starknet\";\nimport { claimedTokenIds } from \"./receipt.js\";\nimport type { DropSigner } from \"./types.js\";\n\nexport interface DropDeps {\n client: MedialaneClient;\n signer: DropSigner;\n}\n\nexport async function launchDrop(\n deps: DropDeps,\n input: {\n owner: string; name: string; symbol: string; baseUri: string; maxSupply: number;\n terms: DropTermsBody; allowlistRoot?: string; description?: string; image?: string;\n },\n): Promise<{ collection: string; txHash: string }> {\n const res = await deps.client.api.createCollectionIntent({\n owner: input.owner,\n name: input.name,\n symbol: input.symbol,\n baseUri: input.baseUri,\n service: \"drop-collection\",\n maxSupply: String(input.maxSupply),\n terms: input.terms,\n ...(input.allowlistRoot ? { allowlistRoot: input.allowlistRoot } : {}),\n ...(input.description ? { description: input.description } : {}),\n ...(input.image ? { image: input.image } : {}),\n });\n const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res.data);\n const collection = deployedCollectionFromReceipt(receipt, \"drop-collection\");\n if (!collection) throw new Error(\"Your drop launched, but its address wasn't found yet. Check My drops in a minute.\");\n return { collection, txHash };\n}\n\nexport async function mintDrop(\n deps: DropDeps,\n input: { claimer: string; collection: string; quantity: bigint; proof: string[] | null },\n): Promise<{ txHash: string; tokenIds: string[] }> {\n const res = await deps.client.api.createDropClaimIntent({\n claimer: input.claimer,\n collection: input.collection,\n quantity: input.quantity.toString(),\n ...(input.proof ? { proof: input.proof } : {}),\n });\n const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res.data);\n return { txHash, tokenIds: claimedTokenIds(receipt, input.collection) };\n}\n\nexport async function manageDrop(deps: DropDeps, params: CreateDropManageIntentParams): Promise<{ txHash: string }> {\n const res = await deps.client.api.createDropManageIntent(params);\n const { txHash } = await executeIntent(deps.signer, deps.client, res.data);\n return { txHash };\n}\n\nexport interface ExclusiveContent {\n title: string;\n url: string;\n type: string;\n}\n\nexport async function saveExclusiveContent(client: MedialaneClient, collection: string, content: ExclusiveContent | null): Promise<void> {\n await client.api.updateCollectionProfile(collection, {\n gatedContentTitle: content?.title || null,\n gatedContentUrl: content?.url || null,\n gatedContentType: (content?.type || null) as never,\n });\n}\n"],"mappings":"AACA,SAAS,+BAA+B,qBAA2C;AACnF,SAAS,uBAAuB;AAQhC,eAAsB,WACpB,MACA,OAIiD;AACjD,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,uBAAuB;AAAA,IACvD,OAAO,MAAM;AAAA,IACb,MAAM,MAAM;AAAA,IACZ,QAAQ,MAAM;AAAA,IACd,SAAS,MAAM;AAAA,IACf,SAAS;AAAA,IACT,WAAW,OAAO,MAAM,SAAS;AAAA,IACjC,OAAO,MAAM;AAAA,IACb,GAAI,MAAM,gBAAgB,EAAE,eAAe,MAAM,cAAc,IAAI,CAAC;AAAA,IACpE,GAAI,MAAM,cAAc,EAAE,aAAa,MAAM,YAAY,IAAI,CAAC;AAAA,IAC9D,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;AAAA,EAC9C,CAAC;AACD,QAAM,EAAE,QAAQ,QAAQ,IAAI,MAAM,cAAc,KAAK,QAAQ,KAAK,QAAQ,IAAI,IAAI;AAClF,QAAM,aAAa,8BAA8B,SAAS,iBAAiB;AAC3E,MAAI,CAAC,WAAY,OAAM,IAAI,MAAM,mFAAmF;AACpH,SAAO,EAAE,YAAY,OAAO;AAC9B;AAEA,eAAsB,SACpB,MACA,OACiD;AACjD,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,sBAAsB;AAAA,IACtD,SAAS,MAAM;AAAA,IACf,YAAY,MAAM;AAAA,IAClB,UAAU,MAAM,SAAS,SAAS;AAAA,IAClC,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;AAAA,EAC9C,CAAC;AACD,QAAM,EAAE,QAAQ,QAAQ,IAAI,MAAM,cAAc,KAAK,QAAQ,KAAK,QAAQ,IAAI,IAAI;AAClF,SAAO,EAAE,QAAQ,UAAU,gBAAgB,SAAS,MAAM,UAAU,EAAE;AACxE;AAEA,eAAsB,WAAW,MAAgB,QAAmE;AAClH,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,uBAAuB,MAAM;AAC/D,QAAM,EAAE,OAAO,IAAI,MAAM,cAAc,KAAK,QAAQ,KAAK,QAAQ,IAAI,IAAI;AACzE,SAAO,EAAE,OAAO;AAClB;AAQA,eAAsB,qBAAqB,QAAyB,YAAoB,SAAiD;AACvI,QAAM,OAAO,IAAI,wBAAwB,YAAY;AAAA,IACnD,mBAAmB,SAAS,SAAS;AAAA,IACrC,iBAAiB,SAAS,OAAO;AAAA,IACjC,kBAAmB,SAAS,QAAQ;AAAA,EACtC,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../../src/utils/drop/actions.ts"],"sourcesContent":["import type { CreateDropManageIntentParams, DropTermsBody } from \"@medialane/sdk\";\nimport { deployedCollectionFromReceipt, executeIntent, type MedialaneClient } from \"@medialane/sdk/starknet\";\nimport { claimedTokenIds } from \"./receipt.js\";\nimport type { DropSigner } from \"./types.js\";\n\nexport interface DropDeps {\n client: MedialaneClient;\n signer: DropSigner;\n}\n\nexport async function launchDrop(\n deps: DropDeps,\n input: {\n owner: string; name: string; symbol: string; baseUri: string; maxSupply: number;\n terms: DropTermsBody; allowlistRoot?: string; description?: string; image?: string;\n },\n): Promise<{ collection: string; txHash: string }> {\n const res = await deps.client.api.intents.create(\"create-collection\", {\n owner: input.owner,\n name: input.name,\n symbol: input.symbol,\n baseUri: input.baseUri,\n service: \"drop-collection\",\n maxSupply: String(input.maxSupply),\n terms: input.terms,\n ...(input.allowlistRoot ? { allowlistRoot: input.allowlistRoot } : {}),\n ...(input.description ? { description: input.description } : {}),\n ...(input.image ? { image: input.image } : {}),\n });\n const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res);\n const collection = deployedCollectionFromReceipt(receipt, \"drop-collection\");\n if (!collection) throw new Error(\"Your drop launched, but its address wasn't found yet. Check My drops in a minute.\");\n return { collection, txHash };\n}\n\nexport async function mintDrop(\n deps: DropDeps,\n input: { claimer: string; collection: string; quantity: bigint; proof: string[] | null },\n): Promise<{ txHash: string; tokenIds: string[] }> {\n const res = await deps.client.api.intents.create(\"drop-claim\", {\n claimer: input.claimer,\n collection: input.collection,\n quantity: input.quantity.toString(),\n ...(input.proof ? { proof: input.proof } : {}),\n });\n const { txHash, receipt } = await executeIntent(deps.signer, deps.client, res);\n return { txHash, tokenIds: claimedTokenIds(receipt, input.collection) };\n}\n\nexport async function manageDrop(deps: DropDeps, params: CreateDropManageIntentParams): Promise<{ txHash: string }> {\n const res = await deps.client.api.intents.create(\"drop-manage\", params);\n const { txHash } = await executeIntent(deps.signer, deps.client, res);\n return { txHash };\n}\n\nexport interface ExclusiveContent {\n title: string;\n url: string;\n type: string;\n}\n\nexport async function saveExclusiveContent(client: MedialaneClient, collection: string, content: ExclusiveContent | null): Promise<void> {\n await client.api.collections.updateProfile(collection, {\n gatedContentTitle: content?.title || null,\n gatedContentUrl: content?.url || null,\n gatedContentType: (content?.type || null) as never,\n });\n}\n"],"mappings":"AACA,SAAS,+BAA+B,qBAA2C;AACnF,SAAS,uBAAuB;AAQhC,eAAsB,WACpB,MACA,OAIiD;AACjD,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,QAAQ,OAAO,qBAAqB;AAAA,IACpE,OAAO,MAAM;AAAA,IACb,MAAM,MAAM;AAAA,IACZ,QAAQ,MAAM;AAAA,IACd,SAAS,MAAM;AAAA,IACf,SAAS;AAAA,IACT,WAAW,OAAO,MAAM,SAAS;AAAA,IACjC,OAAO,MAAM;AAAA,IACb,GAAI,MAAM,gBAAgB,EAAE,eAAe,MAAM,cAAc,IAAI,CAAC;AAAA,IACpE,GAAI,MAAM,cAAc,EAAE,aAAa,MAAM,YAAY,IAAI,CAAC;AAAA,IAC9D,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;AAAA,EAC9C,CAAC;AACD,QAAM,EAAE,QAAQ,QAAQ,IAAI,MAAM,cAAc,KAAK,QAAQ,KAAK,QAAQ,GAAG;AAC7E,QAAM,aAAa,8BAA8B,SAAS,iBAAiB;AAC3E,MAAI,CAAC,WAAY,OAAM,IAAI,MAAM,mFAAmF;AACpH,SAAO,EAAE,YAAY,OAAO;AAC9B;AAEA,eAAsB,SACpB,MACA,OACiD;AACjD,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,QAAQ,OAAO,cAAc;AAAA,IAC7D,SAAS,MAAM;AAAA,IACf,YAAY,MAAM;AAAA,IAClB,UAAU,MAAM,SAAS,SAAS;AAAA,IAClC,GAAI,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;AAAA,EAC9C,CAAC;AACD,QAAM,EAAE,QAAQ,QAAQ,IAAI,MAAM,cAAc,KAAK,QAAQ,KAAK,QAAQ,GAAG;AAC7E,SAAO,EAAE,QAAQ,UAAU,gBAAgB,SAAS,MAAM,UAAU,EAAE;AACxE;AAEA,eAAsB,WAAW,MAAgB,QAAmE;AAClH,QAAM,MAAM,MAAM,KAAK,OAAO,IAAI,QAAQ,OAAO,eAAe,MAAM;AACtE,QAAM,EAAE,OAAO,IAAI,MAAM,cAAc,KAAK,QAAQ,KAAK,QAAQ,GAAG;AACpE,SAAO,EAAE,OAAO;AAClB;AAQA,eAAsB,qBAAqB,QAAyB,YAAoB,SAAiD;AACvI,QAAM,OAAO,IAAI,YAAY,cAAc,YAAY;AAAA,IACrD,mBAAmB,SAAS,SAAS;AAAA,IACrC,iBAAiB,SAAS,OAAO;AAAA,IACjC,kBAAmB,SAAS,QAAQ;AAAA,EACtC,CAAC;AACH;","names":[]}
@@ -47,7 +47,7 @@ function connectionType() {
47
47
  return connection?.effectiveType ?? null;
48
48
  }
49
49
  async function signedUploadUrl(api, kind) {
50
- const signedUrl = (await api.getMetadataSignedUrl(kind)).data?.url;
50
+ const signedUrl = (await api.metadata.signedUrl(kind)).data?.url;
51
51
  if (!signedUrl) throw new Error("Failed to prepare the upload");
52
52
  return signedUrl;
53
53
  }
@@ -120,12 +120,12 @@ async function uploadFileToIpfs(api, file, kind = "image") {
120
120
  return uploadedFile(uploadRes);
121
121
  }
122
122
  async function uploadJsonToIpfs(api, payload) {
123
- const uri = (await api.uploadMetadata(payload)).data?.url;
123
+ const uri = (await api.metadata.upload(payload)).data?.url;
124
124
  if (!uri) throw new Error("Metadata upload failed");
125
125
  return uri;
126
126
  }
127
127
  function uploadDirectoryToIpfs(api, files) {
128
- return api.uploadMetadataDirectory(files);
128
+ return api.metadata.uploadDirectory(files);
129
129
  }
130
130
  function isUserRejection(err) {
131
131
  const msg = err instanceof Error ? err.message : String(err ?? "");
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/ipfs-upload.ts"],"sourcesContent":["import { buildAssetMetadata, UserFacingError, type ApiClient, type BuildAssetMetadataInput } from \"@medialane/sdk\";\n\nexport const FILE_UPLOAD_FAILED =\n \"We couldn't upload your file. Check your connection and try again, or choose a different file.\";\n\nfunction uploadFailed(cause: unknown): UserFacingError {\n return Object.assign(new UserFacingError(FILE_UPLOAD_FAILED), { cause });\n}\n\nexport interface UploadedIpfsFile {\n cid: string;\n uri: string;\n}\n\nexport type SignedUploadKind = \"image\" | \"document\" | \"media\";\n\nexport interface UploadDiagnostics {\n kind: SignedUploadKind;\n fileSize: number;\n fileType: string;\n failedAfterMs: number;\n error: string;\n fileReadable: string;\n uploadHostReachable: string;\n retry: string;\n online: boolean | null;\n connection: string | null;\n}\n\nlet reportDiagnostics: ((diagnostics: UploadDiagnostics) => void) | null = null;\n\nexport function setUploadDiagnosticsReporter(reporter: ((diagnostics: UploadDiagnostics) => void) | null): void {\n reportDiagnostics = reporter;\n}\n\nfunction describe(err: unknown): string {\n const text = err instanceof Error ? `${err.name}: ${err.message}` : String(err);\n return text.slice(0, 300);\n}\n\nfunction connectionType(): string | null {\n if (typeof navigator === \"undefined\") return null;\n const connection = (navigator as Navigator & { connection?: { effectiveType?: string } }).connection;\n return connection?.effectiveType ?? null;\n}\n\nasync function signedUploadUrl(api: ApiClient, kind: SignedUploadKind): Promise<string> {\n const signedUrl = (await api.getMetadataSignedUrl(kind)).data?.url;\n if (!signedUrl) throw new Error(\"Failed to prepare the upload\");\n return signedUrl;\n}\n\nfunction postFile(signedUrl: string, file: File): Promise<Response> {\n const formData = new FormData();\n formData.append(\"file\", file, file.name);\n formData.append(\"network\", \"public\");\n formData.append(\"name\", file.name);\n return fetch(signedUrl, { method: \"POST\", body: formData });\n}\n\nasync function uploadedFile(res: Response): Promise<UploadedIpfsFile> {\n const uploadJson = (await res.json().catch(() => ({}))) as { data?: { cid?: string } };\n const cid = uploadJson.data?.cid;\n if (!res.ok || !cid) {\n throw uploadFailed(new Error(`File upload returned HTTP ${res.status}${cid ? \"\" : \" without a cid\"}`));\n }\n return { cid, uri: `ipfs://${cid}` };\n}\n\nasync function recoverUpload(\n api: ApiClient,\n file: File,\n kind: SignedUploadKind,\n signedUrl: string,\n err: unknown,\n failedAfterMs: number,\n): Promise<UploadedIpfsFile> {\n const diagnostics: UploadDiagnostics = {\n kind,\n fileSize: file.size,\n fileType: file.type,\n failedAfterMs,\n error: describe(err),\n fileReadable: \"not checked\",\n uploadHostReachable: \"not checked\",\n retry: \"not attempted\",\n online: typeof navigator === \"undefined\" ? null : navigator.onLine,\n connection: connectionType(),\n };\n\n let copy: File | null = null;\n try {\n copy = new File([await file.arrayBuffer()], file.name, { type: file.type });\n diagnostics.fileReadable = \"ok\";\n } catch (readErr) {\n diagnostics.fileReadable = describe(readErr);\n }\n\n try {\n await fetch(new URL(signedUrl).origin, { mode: \"no-cors\", cache: \"no-store\" });\n diagnostics.uploadHostReachable = \"ok\";\n } catch (probeErr) {\n diagnostics.uploadHostReachable = describe(probeErr);\n }\n\n let result: UploadedIpfsFile | null = null;\n if (copy) {\n try {\n result = await uploadedFile(await postFile(await signedUploadUrl(api, kind), copy));\n diagnostics.retry = \"ok\";\n } catch (retryErr) {\n diagnostics.retry = describe(retryErr instanceof UserFacingError && retryErr.cause ? retryErr.cause : retryErr);\n }\n }\n\n try {\n reportDiagnostics?.(diagnostics);\n } catch {}\n\n if (result) return result;\n throw Object.assign(uploadFailed(err), { diagnostics });\n}\n\nexport async function uploadFileToIpfs(\n api: ApiClient,\n file: File,\n kind: SignedUploadKind = \"image\",\n): Promise<UploadedIpfsFile> {\n const signedUrl = await signedUploadUrl(api, kind);\n const startedAt = Date.now();\n let uploadRes: Response;\n try {\n uploadRes = await postFile(signedUrl, file);\n } catch (err) {\n return recoverUpload(api, file, kind, signedUrl, err, Date.now() - startedAt);\n }\n return uploadedFile(uploadRes);\n}\n\nexport async function uploadJsonToIpfs(api: ApiClient, payload: unknown): Promise<string> {\n const uri = (await api.uploadMetadata(payload as Record<string, unknown>)).data?.url;\n if (!uri) throw new Error(\"Metadata upload failed\");\n return uri;\n}\n\nexport function uploadDirectoryToIpfs(\n api: ApiClient,\n files: { name: string; content: unknown }[],\n): Promise<{ cid: string; baseUri: string }> {\n return api.uploadMetadataDirectory(files);\n}\n\nexport function isUserRejection(err: unknown): boolean {\n const msg = err instanceof Error ? err.message : String(err ?? \"\");\n return /reject|denied|declin|abort|cancel|refus/i.test(msg);\n}\n\nexport function uploadFailureToast(err: unknown): { title: string; description?: string } {\n if (isUserRejection(err)) {\n return {\n title: \"Signature declined\",\n description: \"Try again and approve the request in your wallet.\",\n };\n }\n return {\n title: \"Upload failed\",\n description: err instanceof Error ? err.message : undefined,\n };\n}\n\nexport interface PinAssetMetadataInput extends Omit<BuildAssetMetadataInput, \"registrationDate\"> {\n imageFile?: File | null;\n}\n\nexport interface PinnedAsset {\n uri: string;\n imageUri: string | null;\n}\n\nexport async function pinAssetMetadata(api: ApiClient, input: PinAssetMetadataInput): Promise<PinnedAsset> {\n const { imageFile, ...fields } = input;\n\n let imageUri = fields.imageUri ?? null;\n if (!imageUri && imageFile && imageFile.size > 0) {\n imageUri = (await uploadFileToIpfs(api, imageFile)).uri;\n }\n\n const uri = await uploadJsonToIpfs(\n api,\n buildAsset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+BAAmB;AAAA,MACjB,GAAG;AAAA,MACH;AAAA,MACA,aAAa,OAAO,eAAe;AAAA,IACrC,CAAC;AAAA,EACH;AAEA,SAAO,EAAE,KAAK,SAAS;AACzB;","names":[]}
1
+ {"version":3,"sources":["../../src/utils/ipfs-upload.ts"],"sourcesContent":["import { buildAssetMetadata, UserFacingError, type ApiClient, type BuildAssetMetadataInput } from \"@medialane/sdk\";\n\nexport const FILE_UPLOAD_FAILED =\n \"We couldn't upload your file. Check your connection and try again, or choose a different file.\";\n\nfunction uploadFailed(cause: unknown): UserFacingError {\n return Object.assign(new UserFacingError(FILE_UPLOAD_FAILED), { cause });\n}\n\nexport interface UploadedIpfsFile {\n cid: string;\n uri: string;\n}\n\nexport type SignedUploadKind = \"image\" | \"document\" | \"media\";\n\nexport interface UploadDiagnostics {\n kind: SignedUploadKind;\n fileSize: number;\n fileType: string;\n failedAfterMs: number;\n error: string;\n fileReadable: string;\n uploadHostReachable: string;\n retry: string;\n online: boolean | null;\n connection: string | null;\n}\n\nlet reportDiagnostics: ((diagnostics: UploadDiagnostics) => void) | null = null;\n\nexport function setUploadDiagnosticsReporter(reporter: ((diagnostics: UploadDiagnostics) => void) | null): void {\n reportDiagnostics = reporter;\n}\n\nfunction describe(err: unknown): string {\n const text = err instanceof Error ? `${err.name}: ${err.message}` : String(err);\n return text.slice(0, 300);\n}\n\nfunction connectionType(): string | null {\n if (typeof navigator === \"undefined\") return null;\n const connection = (navigator as Navigator & { connection?: { effectiveType?: string } }).connection;\n return connection?.effectiveType ?? null;\n}\n\nasync function signedUploadUrl(api: ApiClient, kind: SignedUploadKind): Promise<string> {\n const signedUrl = (await api.metadata.signedUrl(kind)).data?.url;\n if (!signedUrl) throw new Error(\"Failed to prepare the upload\");\n return signedUrl;\n}\n\nfunction postFile(signedUrl: string, file: File): Promise<Response> {\n const formData = new FormData();\n formData.append(\"file\", file, file.name);\n formData.append(\"network\", \"public\");\n formData.append(\"name\", file.name);\n return fetch(signedUrl, { method: \"POST\", body: formData });\n}\n\nasync function uploadedFile(res: Response): Promise<UploadedIpfsFile> {\n const uploadJson = (await res.json().catch(() => ({}))) as { data?: { cid?: string } };\n const cid = uploadJson.data?.cid;\n if (!res.ok || !cid) {\n throw uploadFailed(new Error(`File upload returned HTTP ${res.status}${cid ? \"\" : \" without a cid\"}`));\n }\n return { cid, uri: `ipfs://${cid}` };\n}\n\nasync function recoverUpload(\n api: ApiClient,\n file: File,\n kind: SignedUploadKind,\n signedUrl: string,\n err: unknown,\n failedAfterMs: number,\n): Promise<UploadedIpfsFile> {\n const diagnostics: UploadDiagnostics = {\n kind,\n fileSize: file.size,\n fileType: file.type,\n failedAfterMs,\n error: describe(err),\n fileReadable: \"not checked\",\n uploadHostReachable: \"not checked\",\n retry: \"not attempted\",\n online: typeof navigator === \"undefined\" ? null : navigator.onLine,\n connection: connectionType(),\n };\n\n let copy: File | null = null;\n try {\n copy = new File([await file.arrayBuffer()], file.name, { type: file.type });\n diagnostics.fileReadable = \"ok\";\n } catch (readErr) {\n diagnostics.fileReadable = describe(readErr);\n }\n\n try {\n await fetch(new URL(signedUrl).origin, { mode: \"no-cors\", cache: \"no-store\" });\n diagnostics.uploadHostReachable = \"ok\";\n } catch (probeErr) {\n diagnostics.uploadHostReachable = describe(probeErr);\n }\n\n let result: UploadedIpfsFile | null = null;\n if (copy) {\n try {\n result = await uploadedFile(await postFile(await signedUploadUrl(api, kind), copy));\n diagnostics.retry = \"ok\";\n } catch (retryErr) {\n diagnostics.retry = describe(retryErr instanceof UserFacingError && retryErr.cause ? retryErr.cause : retryErr);\n }\n }\n\n try {\n reportDiagnostics?.(diagnostics);\n } catch {}\n\n if (result) return result;\n throw Object.assign(uploadFailed(err), { diagnostics });\n}\n\nexport async function uploadFileToIpfs(\n api: ApiClient,\n file: File,\n kind: SignedUploadKind = \"image\",\n): Promise<UploadedIpfsFile> {\n const signedUrl = await signedUploadUrl(api, kind);\n const startedAt = Date.now();\n let uploadRes: Response;\n try {\n uploadRes = await postFile(signedUrl, file);\n } catch (err) {\n return recoverUpload(api, file, kind, signedUrl, err, Date.now() - startedAt);\n }\n return uploadedFile(uploadRes);\n}\n\nexport async function uploadJsonToIpfs(api: ApiClient, payload: unknown): Promise<string> {\n const uri = (await api.metadata.upload(payload as Record<string, unknown>)).data?.url;\n if (!uri) throw new Error(\"Metadata upload failed\");\n return uri;\n}\n\nexport function uploadDirectoryToIpfs(\n api: ApiClient,\n files: { name: string; content: unknown }[],\n): Promise<{ cid: string; baseUri: string }> {\n return api.metadata.uploadDirectory(files);\n}\n\nexport function isUserRejection(err: unknown): boolean {\n const msg = err instanceof Error ? err.message : String(err ?? \"\");\n return /reject|denied|declin|abort|cancel|refus/i.test(msg);\n}\n\nexport function uploadFailureToast(err: unknown): { title: string; description?: string } {\n if (isUserRejection(err)) {\n return {\n title: \"Signature declined\",\n description: \"Try again and approve the request in your wallet.\",\n };\n }\n return {\n title: \"Upload failed\",\n description: err instanceof Error ? err.message : undefined,\n };\n}\n\nexport interface PinAssetMetadataInput extends Omit<BuildAssetMetadataInput, \"registrationDate\"> {\n imageFile?: File | null;\n}\n\nexport interface PinnedAsset {\n uri: string;\n imageUri: string | null;\n}\n\nexport async function pinAssetMetadata(api: ApiClient, input: PinAssetMetadataInput): Promise<PinnedAsset> {\n const { imageFile, ...fields } = input;\n\n let imageUri = fields.imageUri ?? null;\n if (!imageUri && imageFile && imageFile.size > 0) {\n imageUri = (await uploadFileToIpfs(api, imageFile)).uri;\n }\n\n const uri = await uploadJsonToIpfs(\n api,\n buildAssetMetadata({\n ...fields,\n imageUri,\n externalUrl: fields.externalUrl || \"https://medialane.io\",\n }),\n );\n\n return { uri, imageUri };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkG;AAE3F,MAAM,qBACX;AAEF,SAAS,aAAa,OAAiC;AACrD,SAAO,OAAO,OAAO,IAAI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,KAAK;AACZ,WAAO,cAAc,KAAK,MAAM,MAAM,WAAW,KAAK,KAAK,IAAI,IAAI,SAAS;AAAA,EAC9E;AACA,SAAO,aAAa,SAAS;AAC/B;AAEA,eAAsB,iBAAiB,KAAgB,SAAmC;AACxF,QAAM,OAAO,MAAM,IAAI,SAAS,OAAO,OAAkC,GAAG,MAAM;AAClF,MAAI,CAAC,IAAK,OAAM,IAAI,MAAM,wBAAwB;AAClD,SAAO;AACT;AAEO,SAAS,sBACd,KACA,OAC2C;AAC3C,SAAO,IAAI,SAAS,gBAAgB,KAAK;AAC3C;AAEO,SAAS,gBAAgB,KAAuB;AACrD,QAAM,MAAM,eAAe,QAAQ,IAAI,UAAU,OAAO,OAAO,EAAE;AACjE,SAAO,2CAA2C,KAAK,GAAG;AAC5D;AAEO,SAAS,mBAAmB,KAAuD;AACxF,MAAI,gBAAgB,GAAG,GAAG;AACxB,WAAO;AAAA,MACL,OAAO;AAAA,MACP,aAAa;AAAA,IACf;AAAA,EACF;AACA,SAAO;AAAA,IACL,OAAO;AAAA,IACP,aAAa,eAAe,QAAQ,IAAI,UAAU;AAAA,EACpD;AACF;AAWA,eAAsB,iBAAiB,KAAgB,OAAoD;AACzG,QAAM,EAAE,WAAW,GAAG,OAAO,IAAI;AAEjC,MAAI,WAAW,OAAO,YAAY;AAClC,MAAI,CAAC,YAAY,aAAa,UAAU,OAAO,GAAG;AAChD,gBAAY,MAAM,iBAAiB,KAAK,SAAS,GAAG;AAAA,EACtD;AAEA,QAAM,MAAM,MAAM;AAAA,IAChB;AAAA,QACA,+BAAmB;AAAA,MACjB,GAAG;AAAA,MACH;AAAA,MACA,aAAa,OAAO,eAAe;AAAA,IACrC,CAAC;AAAA,EACH;AAEA,SAAO,EAAE,KAAK,SAAS;AACzB;","names":[]}
@@ -17,7 +17,7 @@ function connectionType() {
17
17
  return connection?.effectiveType ?? null;
18
18
  }
19
19
  async function signedUploadUrl(api, kind) {
20
- const signedUrl = (await api.getMetadataSignedUrl(kind)).data?.url;
20
+ const signedUrl = (await api.metadata.signedUrl(kind)).data?.url;
21
21
  if (!signedUrl) throw new Error("Failed to prepare the upload");
22
22
  return signedUrl;
23
23
  }
@@ -90,12 +90,12 @@ async function uploadFileToIpfs(api, file, kind = "image") {
90
90
  return uploadedFile(uploadRes);
91
91
  }
92
92
  async function uploadJsonToIpfs(api, payload) {
93
- const uri = (await api.uploadMetadata(payload)).data?.url;
93
+ const uri = (await api.metadata.upload(payload)).data?.url;
94
94
  if (!uri) throw new Error("Metadata upload failed");
95
95
  return uri;
96
96
  }
97
97
  function uploadDirectoryToIpfs(api, files) {
98
- return api.uploadMetadataDirectory(files);
98
+ return api.metadata.uploadDirectory(files);
99
99
  }
100
100
  function isUserRejection(err) {
101
101
  const msg = err instanceof Error ? err.message : String(err ?? "");