@medialane/ui 0.372.1 → 0.373.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/account/add-guardian-dialog.cjs +6 -3
- package/dist/components/account/add-guardian-dialog.cjs.map +1 -1
- package/dist/components/account/add-guardian-dialog.js +6 -3
- package/dist/components/account/add-guardian-dialog.js.map +1 -1
- package/dist/components/account/device-approval-dialog.cjs +10 -8
- package/dist/components/account/device-approval-dialog.cjs.map +1 -1
- package/dist/components/account/device-approval-dialog.js +10 -8
- package/dist/components/account/device-approval-dialog.js.map +1 -1
- package/dist/components/account/devices-section.cjs +8 -6
- package/dist/components/account/devices-section.cjs.map +1 -1
- package/dist/components/account/devices-section.js +8 -6
- package/dist/components/account/devices-section.js.map +1 -1
- package/dist/components/account/email-code-entry.cjs +7 -9
- package/dist/components/account/email-code-entry.cjs.map +1 -1
- package/dist/components/account/email-code-entry.js +7 -9
- package/dist/components/account/email-code-entry.js.map +1 -1
- package/dist/components/account/guardian-recovery-section.cjs +26 -35
- package/dist/components/account/guardian-recovery-section.cjs.map +1 -1
- package/dist/components/account/guardian-recovery-section.js +26 -35
- package/dist/components/account/guardian-recovery-section.js.map +1 -1
- package/dist/components/account-page.cjs +16 -13
- package/dist/components/account-page.cjs.map +1 -1
- package/dist/components/account-page.js +16 -13
- package/dist/components/account-page.js.map +1 -1
- package/dist/components/accounts-page.cjs +15 -10
- package/dist/components/accounts-page.cjs.map +1 -1
- package/dist/components/accounts-page.js +15 -10
- package/dist/components/accounts-page.js.map +1 -1
- package/dist/components/activities-feed.cjs +10 -9
- package/dist/components/activities-feed.cjs.map +1 -1
- package/dist/components/activities-feed.js +10 -9
- package/dist/components/activities-feed.js.map +1 -1
- package/dist/components/activity-card.cjs +6 -2
- package/dist/components/activity-card.cjs.map +1 -1
- package/dist/components/activity-card.js +6 -2
- package/dist/components/activity-card.js.map +1 -1
- package/dist/components/activity-feed-shell.cjs +5 -4
- package/dist/components/activity-feed-shell.cjs.map +1 -1
- package/dist/components/activity-feed-shell.js +5 -4
- package/dist/components/activity-feed-shell.js.map +1 -1
- package/dist/components/activity-row.cjs +9 -5
- package/dist/components/activity-row.cjs.map +1 -1
- package/dist/components/activity-row.js +9 -5
- package/dist/components/activity-row.js.map +1 -1
- package/dist/components/activity-timeline-row.cjs +11 -8
- package/dist/components/activity-timeline-row.cjs.map +1 -1
- package/dist/components/activity-timeline-row.js +11 -8
- package/dist/components/activity-timeline-row.js.map +1 -1
- package/dist/components/address-display.cjs +3 -1
- package/dist/components/address-display.cjs.map +1 -1
- package/dist/components/address-display.js +3 -1
- package/dist/components/address-display.js.map +1 -1
- package/dist/components/alert.d.cts +1 -1
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/approve-mint-dialog.cjs +17 -15
- package/dist/components/approve-mint-dialog.cjs.map +1 -1
- package/dist/components/approve-mint-dialog.js +17 -15
- package/dist/components/approve-mint-dialog.js.map +1 -1
- package/dist/components/archive-asset-dialog.cjs +13 -14
- package/dist/components/archive-asset-dialog.cjs.map +1 -1
- package/dist/components/archive-asset-dialog.js +13 -14
- package/dist/components/archive-asset-dialog.js.map +1 -1
- package/dist/components/archived-asset-notice.cjs +5 -2
- package/dist/components/archived-asset-notice.cjs.map +1 -1
- package/dist/components/archived-asset-notice.js +5 -2
- package/dist/components/archived-asset-notice.js.map +1 -1
- package/dist/components/asset-card.cjs +5 -3
- package/dist/components/asset-card.cjs.map +1 -1
- package/dist/components/asset-card.js +5 -3
- package/dist/components/asset-card.js.map +1 -1
- package/dist/components/asset-collection-bar.cjs +4 -2
- package/dist/components/asset-collection-bar.cjs.map +1 -1
- package/dist/components/asset-collection-bar.js +4 -2
- package/dist/components/asset-collection-bar.js.map +1 -1
- package/dist/components/asset-comments-dialog.cjs +3 -1
- package/dist/components/asset-comments-dialog.cjs.map +1 -1
- package/dist/components/asset-comments-dialog.js +3 -1
- package/dist/components/asset-comments-dialog.js.map +1 -1
- package/dist/components/asset-license-summary.cjs +3 -1
- package/dist/components/asset-license-summary.cjs.map +1 -1
- package/dist/components/asset-license-summary.js +3 -1
- package/dist/components/asset-license-summary.js.map +1 -1
- package/dist/components/asset-marketplace-panel.cjs +15 -17
- package/dist/components/asset-marketplace-panel.cjs.map +1 -1
- package/dist/components/asset-marketplace-panel.js +15 -17
- package/dist/components/asset-marketplace-panel.js.map +1 -1
- package/dist/components/asset-markets-tab.cjs +8 -6
- package/dist/components/asset-markets-tab.cjs.map +1 -1
- package/dist/components/asset-markets-tab.js +8 -6
- package/dist/components/asset-markets-tab.js.map +1 -1
- package/dist/components/asset-overview-content.cjs +15 -13
- package/dist/components/asset-overview-content.cjs.map +1 -1
- package/dist/components/asset-overview-content.js +15 -13
- package/dist/components/asset-overview-content.js.map +1 -1
- package/dist/components/asset-owners-panel.cjs +7 -6
- package/dist/components/asset-owners-panel.cjs.map +1 -1
- package/dist/components/asset-owners-panel.js +7 -6
- package/dist/components/asset-owners-panel.js.map +1 -1
- package/dist/components/asset-page.cjs +21 -17
- package/dist/components/asset-page.cjs.map +1 -1
- package/dist/components/asset-page.js +21 -17
- package/dist/components/asset-page.js.map +1 -1
- package/dist/components/asset-picker.cjs +12 -12
- package/dist/components/asset-picker.cjs.map +1 -1
- package/dist/components/asset-picker.js +12 -12
- package/dist/components/asset-picker.js.map +1 -1
- package/dist/components/asset-provenance-tab.cjs +26 -27
- package/dist/components/asset-provenance-tab.cjs.map +1 -1
- package/dist/components/asset-provenance-tab.js +26 -27
- package/dist/components/asset-provenance-tab.js.map +1 -1
- package/dist/components/asset-publication.cjs +3 -1
- package/dist/components/asset-publication.cjs.map +1 -1
- package/dist/components/asset-publication.js +3 -1
- package/dist/components/asset-publication.js.map +1 -1
- package/dist/components/asset-search-picker.cjs +4 -6
- package/dist/components/asset-search-picker.cjs.map +1 -1
- package/dist/components/asset-search-picker.js +4 -6
- package/dist/components/asset-search-picker.js.map +1 -1
- package/dist/components/asset-top-sections.cjs +3 -1
- package/dist/components/asset-top-sections.cjs.map +1 -1
- package/dist/components/asset-top-sections.js +3 -1
- package/dist/components/asset-top-sections.js.map +1 -1
- package/dist/components/asset-type-panels.cjs +17 -13
- package/dist/components/asset-type-panels.cjs.map +1 -1
- package/dist/components/asset-type-panels.js +17 -13
- package/dist/components/asset-type-panels.js.map +1 -1
- package/dist/components/asset-unavailable.cjs +5 -2
- package/dist/components/asset-unavailable.cjs.map +1 -1
- package/dist/components/asset-unavailable.js +5 -2
- package/dist/components/asset-unavailable.js.map +1 -1
- package/dist/components/asset-utility-icons.cjs +4 -2
- package/dist/components/asset-utility-icons.cjs.map +1 -1
- package/dist/components/asset-utility-icons.js +4 -2
- package/dist/components/asset-utility-icons.js.map +1 -1
- package/dist/components/asset-video.cjs +3 -4
- package/dist/components/asset-video.cjs.map +1 -1
- package/dist/components/asset-video.js +3 -4
- package/dist/components/asset-video.js.map +1 -1
- package/dist/components/back-button.cjs +3 -1
- package/dist/components/back-button.cjs.map +1 -1
- package/dist/components/back-button.js +3 -1
- package/dist/components/back-button.js.map +1 -1
- package/dist/components/badge.d.cts +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/button.d.cts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/cancel-order-confirm.cjs +4 -2
- package/dist/components/cancel-order-confirm.cjs.map +1 -1
- package/dist/components/cancel-order-confirm.js +4 -2
- package/dist/components/cancel-order-confirm.js.map +1 -1
- package/dist/components/claim-rail.cjs +5 -2
- package/dist/components/claim-rail.cjs.map +1 -1
- package/dist/components/claim-rail.js +5 -2
- package/dist/components/claim-rail.js.map +1 -1
- package/dist/components/club-owner-actions.cjs +3 -1
- package/dist/components/club-owner-actions.cjs.map +1 -1
- package/dist/components/club-owner-actions.js +3 -1
- package/dist/components/club-owner-actions.js.map +1 -1
- package/dist/components/coin-guarantees.cjs +13 -8
- package/dist/components/coin-guarantees.cjs.map +1 -1
- package/dist/components/coin-guarantees.js +13 -8
- package/dist/components/coin-guarantees.js.map +1 -1
- package/dist/components/coin-launch-preview.cjs +17 -14
- package/dist/components/coin-launch-preview.cjs.map +1 -1
- package/dist/components/coin-launch-preview.js +17 -14
- package/dist/components/coin-launch-preview.js.map +1 -1
- package/dist/components/coin-row.cjs +6 -3
- package/dist/components/coin-row.cjs.map +1 -1
- package/dist/components/coin-row.js +6 -3
- package/dist/components/coin-row.js.map +1 -1
- package/dist/components/coins-explorer.cjs +13 -10
- package/dist/components/coins-explorer.cjs.map +1 -1
- package/dist/components/coins-explorer.js +13 -10
- package/dist/components/coins-explorer.js.map +1 -1
- package/dist/components/collection-card.cjs +9 -5
- package/dist/components/collection-card.cjs.map +1 -1
- package/dist/components/collection-card.js +9 -5
- package/dist/components/collection-card.js.map +1 -1
- package/dist/components/collection-filters-dialog.cjs +6 -7
- package/dist/components/collection-filters-dialog.cjs.map +1 -1
- package/dist/components/collection-filters-dialog.js +6 -7
- package/dist/components/collection-filters-dialog.js.map +1 -1
- package/dist/components/collection-filters.cjs +14 -13
- package/dist/components/collection-filters.cjs.map +1 -1
- package/dist/components/collection-filters.js +14 -13
- package/dist/components/collection-filters.js.map +1 -1
- package/dist/components/collection-header.cjs +9 -5
- package/dist/components/collection-header.cjs.map +1 -1
- package/dist/components/collection-header.js +9 -5
- package/dist/components/collection-header.js.map +1 -1
- package/dist/components/collection-name-claim.cjs +10 -8
- package/dist/components/collection-name-claim.cjs.map +1 -1
- package/dist/components/collection-name-claim.js +10 -8
- package/dist/components/collection-name-claim.js.map +1 -1
- package/dist/components/collection-page.cjs +29 -23
- package/dist/components/collection-page.cjs.map +1 -1
- package/dist/components/collection-page.js +29 -23
- package/dist/components/collection-page.js.map +1 -1
- package/dist/components/collection-provenance-tab.cjs +19 -13
- package/dist/components/collection-provenance-tab.cjs.map +1 -1
- package/dist/components/collection-provenance-tab.js +19 -13
- package/dist/components/collection-provenance-tab.js.map +1 -1
- package/dist/components/collection-settings.cjs +59 -55
- package/dist/components/collection-settings.cjs.map +1 -1
- package/dist/components/collection-settings.js +59 -55
- package/dist/components/collection-settings.js.map +1 -1
- package/dist/components/collection-showcase.cjs +8 -4
- package/dist/components/collection-showcase.cjs.map +1 -1
- package/dist/components/collection-showcase.js +8 -4
- package/dist/components/collection-showcase.js.map +1 -1
- package/dist/components/collection-slug-claim.cjs +22 -24
- package/dist/components/collection-slug-claim.cjs.map +1 -1
- package/dist/components/collection-slug-claim.js +22 -24
- package/dist/components/collection-slug-claim.js.map +1 -1
- package/dist/components/collections-page.cjs +36 -30
- package/dist/components/collections-page.cjs.map +1 -1
- package/dist/components/collections-page.js +36 -30
- package/dist/components/collections-page.js.map +1 -1
- package/dist/components/comments-section.cjs +19 -16
- package/dist/components/comments-section.cjs.map +1 -1
- package/dist/components/comments-section.js +19 -16
- package/dist/components/comments-section.js.map +1 -1
- package/dist/components/create-sponsorship-aside.cjs +7 -5
- package/dist/components/create-sponsorship-aside.cjs.map +1 -1
- package/dist/components/create-sponsorship-aside.js +7 -5
- package/dist/components/create-sponsorship-aside.js.map +1 -1
- package/dist/components/creation-record.cjs +9 -5
- package/dist/components/creation-record.cjs.map +1 -1
- package/dist/components/creation-record.js +9 -5
- package/dist/components/creation-record.js.map +1 -1
- package/dist/components/creator-chip.cjs +3 -1
- package/dist/components/creator-chip.cjs.map +1 -1
- package/dist/components/creator-chip.js +3 -1
- package/dist/components/creator-chip.js.map +1 -1
- package/dist/components/creator-header.cjs +3 -1
- package/dist/components/creator-header.cjs.map +1 -1
- package/dist/components/creator-header.js +3 -1
- package/dist/components/creator-header.js.map +1 -1
- package/dist/components/creator-page.cjs +19 -16
- package/dist/components/creator-page.cjs.map +1 -1
- package/dist/components/creator-page.js +19 -16
- package/dist/components/creator-page.js.map +1 -1
- package/dist/components/cta-card-grid.cjs +4 -2
- package/dist/components/cta-card-grid.cjs.map +1 -1
- package/dist/components/cta-card-grid.js +4 -2
- package/dist/components/cta-card-grid.js.map +1 -1
- package/dist/components/dialog.cjs +25 -21
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.js +25 -21
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/discover-community-section.cjs +8 -7
- package/dist/components/discover-community-section.cjs.map +1 -1
- package/dist/components/discover-community-section.js +8 -7
- package/dist/components/discover-community-section.js.map +1 -1
- package/dist/components/discover-features.cjs +18 -14
- package/dist/components/discover-features.cjs.map +1 -1
- package/dist/components/discover-features.js +18 -14
- package/dist/components/discover-features.js.map +1 -1
- package/dist/components/discover-feed-section.cjs +9 -7
- package/dist/components/discover-feed-section.cjs.map +1 -1
- package/dist/components/discover-feed-section.js +9 -7
- package/dist/components/discover-feed-section.js.map +1 -1
- package/dist/components/discover-hero.cjs +7 -3
- package/dist/components/discover-hero.cjs.map +1 -1
- package/dist/components/discover-hero.js +7 -3
- package/dist/components/discover-hero.js.map +1 -1
- package/dist/components/discover-page.cjs +3 -1
- package/dist/components/discover-page.cjs.map +1 -1
- package/dist/components/discover-page.js +3 -1
- package/dist/components/discover-page.js.map +1 -1
- package/dist/components/drop/create/artwork-section.cjs +9 -9
- package/dist/components/drop/create/artwork-section.cjs.map +1 -1
- package/dist/components/drop/create/artwork-section.js +9 -9
- package/dist/components/drop/create/artwork-section.js.map +1 -1
- package/dist/components/drop/create/details-section.cjs +19 -15
- package/dist/components/drop/create/details-section.cjs.map +1 -1
- package/dist/components/drop/create/details-section.js +19 -15
- package/dist/components/drop/create/details-section.js.map +1 -1
- package/dist/components/drop/create/drop-create.cjs +14 -9
- package/dist/components/drop/create/drop-create.cjs.map +1 -1
- package/dist/components/drop/create/drop-create.js +14 -9
- package/dist/components/drop/create/drop-create.js.map +1 -1
- package/dist/components/drop/create/exclusive-fields.cjs +7 -5
- package/dist/components/drop/create/exclusive-fields.cjs.map +1 -1
- package/dist/components/drop/create/exclusive-fields.js +7 -5
- package/dist/components/drop/create/exclusive-fields.js.map +1 -1
- package/dist/components/drop/create/launch-dialog.cjs +33 -34
- package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
- package/dist/components/drop/create/launch-dialog.js +33 -34
- package/dist/components/drop/create/launch-dialog.js.map +1 -1
- package/dist/components/drop/create/list-section.cjs +8 -8
- package/dist/components/drop/create/list-section.cjs.map +1 -1
- package/dist/components/drop/create/list-section.js +8 -8
- package/dist/components/drop/create/list-section.js.map +1 -1
- package/dist/components/drop/create/sale-section.cjs +8 -6
- package/dist/components/drop/create/sale-section.cjs.map +1 -1
- package/dist/components/drop/create/sale-section.js +8 -6
- package/dist/components/drop/create/sale-section.js.map +1 -1
- package/dist/components/drop/drop-card.cjs +5 -3
- package/dist/components/drop/drop-card.cjs.map +1 -1
- package/dist/components/drop/drop-card.js +5 -3
- package/dist/components/drop/drop-card.js.map +1 -1
- package/dist/components/drop/drop-features.cjs +5 -4
- package/dist/components/drop/drop-features.cjs.map +1 -1
- package/dist/components/drop/drop-features.js +5 -4
- package/dist/components/drop/drop-features.js.map +1 -1
- package/dist/components/drop/drop-listing.cjs +11 -8
- package/dist/components/drop/drop-listing.cjs.map +1 -1
- package/dist/components/drop/drop-listing.js +11 -8
- package/dist/components/drop/drop-listing.js.map +1 -1
- package/dist/components/drop/drop-status.cjs +12 -16
- package/dist/components/drop/drop-status.cjs.map +1 -1
- package/dist/components/drop/drop-status.js +12 -16
- package/dist/components/drop/drop-status.js.map +1 -1
- package/dist/components/drop/drop-token-link.cjs +6 -3
- package/dist/components/drop/drop-token-link.cjs.map +1 -1
- package/dist/components/drop/drop-token-link.js +6 -3
- package/dist/components/drop/drop-token-link.js.map +1 -1
- package/dist/components/drop/my-drops.cjs +5 -3
- package/dist/components/drop/my-drops.cjs.map +1 -1
- package/dist/components/drop/my-drops.js +5 -3
- package/dist/components/drop/my-drops.js.map +1 -1
- package/dist/components/drop/page/drop-action-box.cjs +10 -9
- package/dist/components/drop/page/drop-action-box.cjs.map +1 -1
- package/dist/components/drop/page/drop-action-box.js +10 -9
- package/dist/components/drop/page/drop-action-box.js.map +1 -1
- package/dist/components/drop/page/drop-activity.cjs +3 -1
- package/dist/components/drop/page/drop-activity.cjs.map +1 -1
- package/dist/components/drop/page/drop-activity.js +3 -1
- package/dist/components/drop/page/drop-activity.js.map +1 -1
- package/dist/components/drop/page/drop-manage.cjs +30 -36
- package/dist/components/drop/page/drop-manage.cjs.map +1 -1
- package/dist/components/drop/page/drop-manage.js +30 -36
- package/dist/components/drop/page/drop-manage.js.map +1 -1
- package/dist/components/drop/page/drop-mint-dialog.cjs +10 -13
- package/dist/components/drop/page/drop-mint-dialog.cjs.map +1 -1
- package/dist/components/drop/page/drop-mint-dialog.js +10 -13
- package/dist/components/drop/page/drop-mint-dialog.js.map +1 -1
- package/dist/components/drop/page/drop-page.cjs +11 -9
- package/dist/components/drop/page/drop-page.cjs.map +1 -1
- package/dist/components/drop/page/drop-page.js +11 -9
- package/dist/components/drop/page/drop-page.js.map +1 -1
- package/dist/components/drop-item-list.cjs +9 -5
- package/dist/components/drop-item-list.cjs.map +1 -1
- package/dist/components/drop-item-list.js +9 -5
- package/dist/components/drop-item-list.js.map +1 -1
- package/dist/components/drops-page.cjs +4 -2
- package/dist/components/drops-page.cjs.map +1 -1
- package/dist/components/drops-page.js +4 -2
- package/dist/components/drops-page.js.map +1 -1
- package/dist/components/editions-page.cjs +21 -23
- package/dist/components/editions-page.cjs.map +1 -1
- package/dist/components/editions-page.js +21 -23
- package/dist/components/editions-page.js.map +1 -1
- package/dist/components/empty-or-error.cjs +5 -3
- package/dist/components/empty-or-error.cjs.map +1 -1
- package/dist/components/empty-or-error.js +5 -3
- package/dist/components/empty-or-error.js.map +1 -1
- package/dist/components/expandable-text.cjs +3 -1
- package/dist/components/expandable-text.cjs.map +1 -1
- package/dist/components/expandable-text.js +3 -1
- package/dist/components/expandable-text.js.map +1 -1
- package/dist/components/external-link-field.cjs +7 -4
- package/dist/components/external-link-field.cjs.map +1 -1
- package/dist/components/external-link-field.js +7 -4
- package/dist/components/external-link-field.js.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.cjs +12 -8
- package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.js +12 -8
- package/dist/components/fast-mint/asset-form-parts.js.map +1 -1
- package/dist/components/fast-mint/collection-section.cjs +11 -12
- package/dist/components/fast-mint/collection-section.cjs.map +1 -1
- package/dist/components/fast-mint/collection-section.js +11 -12
- package/dist/components/fast-mint/collection-section.js.map +1 -1
- package/dist/components/fast-mint/dropzone.cjs +7 -5
- package/dist/components/fast-mint/dropzone.cjs.map +1 -1
- package/dist/components/fast-mint/dropzone.js +7 -5
- package/dist/components/fast-mint/dropzone.js.map +1 -1
- package/dist/components/fast-mint/fast-mint.cjs +14 -11
- package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/fast-mint/fast-mint.js +14 -11
- package/dist/components/fast-mint/fast-mint.js.map +1 -1
- package/dist/components/fast-mint/formats/nft.cjs +9 -6
- package/dist/components/fast-mint/formats/nft.cjs.map +1 -1
- package/dist/components/fast-mint/formats/nft.js +9 -6
- package/dist/components/fast-mint/formats/nft.js.map +1 -1
- package/dist/components/fast-mint/formats/pop.cjs +15 -12
- package/dist/components/fast-mint/formats/pop.cjs.map +1 -1
- package/dist/components/fast-mint/formats/pop.js +15 -12
- package/dist/components/fast-mint/formats/pop.js.map +1 -1
- package/dist/components/fast-mint/formats/tiers.cjs +9 -6
- package/dist/components/fast-mint/formats/tiers.cjs.map +1 -1
- package/dist/components/fast-mint/formats/tiers.js +9 -6
- package/dist/components/fast-mint/formats/tiers.js.map +1 -1
- package/dist/components/fast-mint/ip-type-section.cjs +6 -4
- package/dist/components/fast-mint/ip-type-section.cjs.map +1 -1
- package/dist/components/fast-mint/ip-type-section.js +6 -4
- package/dist/components/fast-mint/ip-type-section.js.map +1 -1
- package/dist/components/fast-mint/licensing-section.cjs +11 -9
- package/dist/components/fast-mint/licensing-section.cjs.map +1 -1
- package/dist/components/fast-mint/licensing-section.js +11 -9
- package/dist/components/fast-mint/licensing-section.js.map +1 -1
- package/dist/components/fast-mint/success-view.cjs +3 -1
- package/dist/components/fast-mint/success-view.cjs.map +1 -1
- package/dist/components/fast-mint/success-view.js +3 -1
- package/dist/components/fast-mint/success-view.js.map +1 -1
- package/dist/components/featured-carousel.cjs +13 -7
- package/dist/components/featured-carousel.cjs.map +1 -1
- package/dist/components/featured-carousel.js +13 -7
- package/dist/components/featured-carousel.js.map +1 -1
- package/dist/components/floating-comments-button.cjs +4 -2
- package/dist/components/floating-comments-button.cjs.map +1 -1
- package/dist/components/floating-comments-button.js +4 -2
- package/dist/components/floating-comments-button.js.map +1 -1
- package/dist/components/form.cjs +3 -1
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +3 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/gated-content.cjs +14 -11
- package/dist/components/gated-content.cjs.map +1 -1
- package/dist/components/gated-content.js +14 -11
- package/dist/components/gated-content.js.map +1 -1
- package/dist/components/help-icon.cjs +3 -1
- package/dist/components/help-icon.cjs.map +1 -1
- package/dist/components/help-icon.js +3 -1
- package/dist/components/help-icon.js.map +1 -1
- package/dist/components/hidden-content-banner.cjs +4 -1
- package/dist/components/hidden-content-banner.cjs.map +1 -1
- package/dist/components/hidden-content-banner.js +4 -1
- package/dist/components/hidden-content-banner.js.map +1 -1
- package/dist/components/home-page.cjs +8 -4
- package/dist/components/home-page.cjs.map +1 -1
- package/dist/components/home-page.js +8 -4
- package/dist/components/home-page.js.map +1 -1
- package/dist/components/ip-type-display.cjs +12 -10
- package/dist/components/ip-type-display.cjs.map +1 -1
- package/dist/components/ip-type-display.js +12 -10
- package/dist/components/ip-type-display.js.map +1 -1
- package/dist/components/ip-type-fields.cjs +28 -28
- package/dist/components/ip-type-fields.cjs.map +1 -1
- package/dist/components/ip-type-fields.js +28 -28
- package/dist/components/ip-type-fields.js.map +1 -1
- package/dist/components/ip-type-nav.cjs +3 -1
- package/dist/components/ip-type-nav.cjs.map +1 -1
- package/dist/components/ip-type-nav.js +3 -1
- package/dist/components/ip-type-nav.js.map +1 -1
- package/dist/components/ip-type-page.cjs +41 -42
- package/dist/components/ip-type-page.cjs.map +1 -1
- package/dist/components/ip-type-page.js +41 -42
- package/dist/components/ip-type-page.js.map +1 -1
- package/dist/components/journey-content.cjs +18 -18
- package/dist/components/journey-content.cjs.map +1 -1
- package/dist/components/journey-content.js +18 -18
- package/dist/components/journey-content.js.map +1 -1
- package/dist/components/launchpad/coin-create.cjs +46 -49
- package/dist/components/launchpad/coin-create.cjs.map +1 -1
- package/dist/components/launchpad/coin-create.js +46 -49
- package/dist/components/launchpad/coin-create.js.map +1 -1
- package/dist/components/launchpad/collection-create-form.cjs +21 -17
- package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-form.js +21 -17
- package/dist/components/launchpad/collection-create-form.js.map +1 -1
- package/dist/components/launchpad/collection-create-presets.cjs +57 -56
- package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-presets.js +57 -56
- package/dist/components/launchpad/collection-create-presets.js.map +1 -1
- package/dist/components/launchpad/collection-picker.cjs +15 -11
- package/dist/components/launchpad/collection-picker.cjs.map +1 -1
- package/dist/components/launchpad/collection-picker.js +15 -11
- package/dist/components/launchpad/collection-picker.js.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.cjs +48 -42
- package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.js +48 -42
- package/dist/components/launchpad/edition-mint-fields.js.map +1 -1
- package/dist/components/launchpad/edition-mint.cjs +16 -17
- package/dist/components/launchpad/edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint.js +16 -17
- package/dist/components/launchpad/edition-mint.js.map +1 -1
- package/dist/components/launchpad/pop-create-fields.cjs +40 -34
- package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-fields.js +40 -34
- package/dist/components/launchpad/pop-create-fields.js.map +1 -1
- package/dist/components/launchpad/pop-create-schema.cjs +3 -2
- package/dist/components/launchpad/pop-create-schema.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-schema.js +3 -2
- package/dist/components/launchpad/pop-create-schema.js.map +1 -1
- package/dist/components/launchpad/pop-create.cjs +10 -8
- package/dist/components/launchpad/pop-create.cjs.map +1 -1
- package/dist/components/launchpad/pop-create.js +10 -8
- package/dist/components/launchpad/pop-create.js.map +1 -1
- package/dist/components/launchpad/remix-mint.cjs +50 -47
- package/dist/components/launchpad/remix-mint.cjs.map +1 -1
- package/dist/components/launchpad/remix-mint.js +50 -47
- package/dist/components/launchpad/remix-mint.js.map +1 -1
- package/dist/components/launchpad/single-edition-mint.cjs +46 -43
- package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/single-edition-mint.js +46 -43
- package/dist/components/launchpad/single-edition-mint.js.map +1 -1
- package/dist/components/launchpad/sponsorship-create.cjs +30 -27
- package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
- package/dist/components/launchpad/sponsorship-create.js +30 -27
- package/dist/components/launchpad/sponsorship-create.js.map +1 -1
- package/dist/components/launchpad/tier-mint-form.cjs +56 -48
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-form.d.cts +2 -0
- package/dist/components/launchpad/tier-mint-form.d.ts +2 -0
- package/dist/components/launchpad/tier-mint-form.js +56 -48
- package/dist/components/launchpad/tier-mint-form.js.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.cjs +33 -32
- package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.d.cts +3 -1
- package/dist/components/launchpad/tier-mint-presets.d.ts +3 -1
- package/dist/components/launchpad/tier-mint-presets.js +33 -32
- package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
- package/dist/components/launchpad-filter-bar.cjs +6 -4
- package/dist/components/launchpad-filter-bar.cjs.map +1 -1
- package/dist/components/launchpad-filter-bar.js +6 -4
- package/dist/components/launchpad-filter-bar.js.map +1 -1
- package/dist/components/launchpad-page.cjs +7 -5
- package/dist/components/launchpad-page.cjs.map +1 -1
- package/dist/components/launchpad-page.js +7 -5
- package/dist/components/launchpad-page.js.map +1 -1
- package/dist/components/launchpad-services.cjs +22 -14
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.d.cts +4 -3
- package/dist/components/launchpad-services.d.ts +4 -3
- package/dist/components/launchpad-services.js +26 -16
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/components/launchpad-strip.cjs +9 -6
- package/dist/components/launchpad-strip.cjs.map +1 -1
- package/dist/components/launchpad-strip.js +10 -7
- package/dist/components/launchpad-strip.js.map +1 -1
- package/dist/components/license-request-page.cjs +27 -22
- package/dist/components/license-request-page.cjs.map +1 -1
- package/dist/components/license-request-page.js +27 -22
- package/dist/components/license-request-page.js.map +1 -1
- package/dist/components/license-terms-builder.cjs +38 -31
- package/dist/components/license-terms-builder.cjs.map +1 -1
- package/dist/components/license-terms-builder.js +38 -31
- package/dist/components/license-terms-builder.js.map +1 -1
- package/dist/components/link.cjs +18 -1
- package/dist/components/link.cjs.map +1 -1
- package/dist/components/link.d.cts +8 -2
- package/dist/components/link.d.ts +8 -2
- package/dist/components/link.js +19 -2
- package/dist/components/link.js.map +1 -1
- package/dist/components/listing-card-menu.cjs +6 -4
- package/dist/components/listing-card-menu.cjs.map +1 -1
- package/dist/components/listing-card-menu.js +6 -4
- package/dist/components/listing-card-menu.js.map +1 -1
- package/dist/components/listing-card.cjs +9 -4
- package/dist/components/listing-card.cjs.map +1 -1
- package/dist/components/listing-card.js +9 -4
- package/dist/components/listing-card.js.map +1 -1
- package/dist/components/listings-grid.cjs +6 -10
- package/dist/components/listings-grid.cjs.map +1 -1
- package/dist/components/listings-grid.js +6 -10
- package/dist/components/listings-grid.js.map +1 -1
- package/dist/components/make-offer-picker.cjs +13 -15
- package/dist/components/make-offer-picker.cjs.map +1 -1
- package/dist/components/make-offer-picker.js +13 -15
- package/dist/components/make-offer-picker.js.map +1 -1
- package/dist/components/marketplace-dialog-primitives.cjs +3 -1
- package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
- package/dist/components/marketplace-dialog-primitives.js +3 -1
- package/dist/components/marketplace-dialog-primitives.js.map +1 -1
- package/dist/components/marketplace-filters.cjs +27 -21
- package/dist/components/marketplace-filters.cjs.map +1 -1
- package/dist/components/marketplace-filters.js +27 -21
- package/dist/components/marketplace-filters.js.map +1 -1
- package/dist/components/marketplace-search.cjs +11 -9
- package/dist/components/marketplace-search.cjs.map +1 -1
- package/dist/components/marketplace-search.js +11 -9
- package/dist/components/marketplace-search.js.map +1 -1
- package/dist/components/media-wallet/action-modal.cjs +3 -1
- package/dist/components/media-wallet/action-modal.cjs.map +1 -1
- package/dist/components/media-wallet/action-modal.js +3 -1
- package/dist/components/media-wallet/action-modal.js.map +1 -1
- package/dist/components/media-wallet/activate-card.cjs +4 -2
- package/dist/components/media-wallet/activate-card.cjs.map +1 -1
- package/dist/components/media-wallet/activate-card.js +4 -2
- package/dist/components/media-wallet/activate-card.js.map +1 -1
- package/dist/components/media-wallet/back-button.cjs +4 -1
- package/dist/components/media-wallet/back-button.cjs.map +1 -1
- package/dist/components/media-wallet/back-button.js +4 -1
- package/dist/components/media-wallet/back-button.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.cjs +20 -13
- package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.js +20 -13
- package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-header.cjs +4 -2
- package/dist/components/media-wallet/media-wallet-header.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-header.js +4 -2
- package/dist/components/media-wallet/media-wallet-header.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.cjs +25 -23
- package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.js +25 -23
- package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-overlay.cjs +4 -2
- package/dist/components/media-wallet/media-wallet-overlay.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-overlay.js +4 -2
- package/dist/components/media-wallet/media-wallet-overlay.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.cjs +30 -33
- package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.js +30 -33
- package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.cjs +11 -12
- package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.js +11 -12
- package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
- package/dist/components/media-wallet/nft-strip.cjs +3 -1
- package/dist/components/media-wallet/nft-strip.cjs.map +1 -1
- package/dist/components/media-wallet/nft-strip.js +3 -1
- package/dist/components/media-wallet/nft-strip.js.map +1 -1
- package/dist/components/media-wallet/receive-card.cjs +7 -5
- package/dist/components/media-wallet/receive-card.cjs.map +1 -1
- package/dist/components/media-wallet/receive-card.js +7 -5
- package/dist/components/media-wallet/receive-card.js.map +1 -1
- package/dist/components/media-wallet/success-dialog.cjs +3 -1
- package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
- package/dist/components/media-wallet/success-dialog.js +3 -1
- package/dist/components/media-wallet/success-dialog.js.map +1 -1
- package/dist/components/medialane-collection-card.cjs +3 -1
- package/dist/components/medialane-collection-card.cjs.map +1 -1
- package/dist/components/medialane-collection-card.js +3 -1
- package/dist/components/medialane-collection-card.js.map +1 -1
- package/dist/components/more-menu.cjs +7 -5
- package/dist/components/more-menu.cjs.map +1 -1
- package/dist/components/more-menu.js +7 -5
- package/dist/components/more-menu.js.map +1 -1
- package/dist/components/nav-command-menu.cjs +28 -22
- package/dist/components/nav-command-menu.cjs.map +1 -1
- package/dist/components/nav-command-menu.d.cts +1 -1
- package/dist/components/nav-command-menu.d.ts +1 -1
- package/dist/components/nav-command-menu.js +28 -22
- package/dist/components/nav-command-menu.js.map +1 -1
- package/dist/components/nav-language-switch.cjs +56 -0
- package/dist/components/nav-language-switch.cjs.map +1 -0
- package/dist/components/nav-language-switch.d.cts +8 -0
- package/dist/components/nav-language-switch.d.ts +8 -0
- package/dist/components/nav-language-switch.js +32 -0
- package/dist/components/nav-language-switch.js.map +1 -0
- package/dist/components/nav-shell.cjs +7 -3
- package/dist/components/nav-shell.cjs.map +1 -1
- package/dist/components/nav-shell.js +7 -3
- package/dist/components/nav-shell.js.map +1 -1
- package/dist/components/nav-theme-toggle.cjs +5 -3
- package/dist/components/nav-theme-toggle.cjs.map +1 -1
- package/dist/components/nav-theme-toggle.js +5 -3
- package/dist/components/nav-theme-toggle.js.map +1 -1
- package/dist/components/new-collection-menu.cjs +8 -5
- package/dist/components/new-collection-menu.cjs.map +1 -1
- package/dist/components/new-collection-menu.js +8 -5
- package/dist/components/new-collection-menu.js.map +1 -1
- package/dist/components/order-fields.cjs +6 -7
- package/dist/components/order-fields.cjs.map +1 -1
- package/dist/components/order-fields.js +6 -7
- package/dist/components/order-fields.js.map +1 -1
- package/dist/components/parent-attribution-banner.cjs +3 -1
- package/dist/components/parent-attribution-banner.cjs.map +1 -1
- package/dist/components/parent-attribution-banner.js +3 -1
- package/dist/components/parent-attribution-banner.js.map +1 -1
- package/dist/components/pop-burn-button.cjs +7 -5
- package/dist/components/pop-burn-button.cjs.map +1 -1
- package/dist/components/pop-burn-button.js +7 -5
- package/dist/components/pop-burn-button.js.map +1 -1
- package/dist/components/pop-claim-button.cjs +6 -4
- package/dist/components/pop-claim-button.cjs.map +1 -1
- package/dist/components/pop-claim-button.js +6 -4
- package/dist/components/pop-claim-button.js.map +1 -1
- package/dist/components/pop-manage-page.cjs +28 -31
- package/dist/components/pop-manage-page.cjs.map +1 -1
- package/dist/components/pop-manage-page.js +28 -31
- package/dist/components/pop-manage-page.js.map +1 -1
- package/dist/components/pop-my-events-page.cjs +18 -12
- package/dist/components/pop-my-events-page.cjs.map +1 -1
- package/dist/components/pop-my-events-page.js +18 -12
- package/dist/components/pop-my-events-page.js.map +1 -1
- package/dist/components/portfolio-activity.cjs +6 -4
- package/dist/components/portfolio-activity.cjs.map +1 -1
- package/dist/components/portfolio-activity.js +6 -4
- package/dist/components/portfolio-activity.js.map +1 -1
- package/dist/components/portfolio-assets.cjs +5 -3
- package/dist/components/portfolio-assets.cjs.map +1 -1
- package/dist/components/portfolio-assets.js +5 -3
- package/dist/components/portfolio-assets.js.map +1 -1
- package/dist/components/portfolio-chip-filter.cjs +3 -1
- package/dist/components/portfolio-chip-filter.cjs.map +1 -1
- package/dist/components/portfolio-chip-filter.js +3 -1
- package/dist/components/portfolio-chip-filter.js.map +1 -1
- package/dist/components/portfolio-collections.cjs +7 -5
- package/dist/components/portfolio-collections.cjs.map +1 -1
- package/dist/components/portfolio-collections.js +7 -5
- package/dist/components/portfolio-collections.js.map +1 -1
- package/dist/components/portfolio-header.cjs +5 -4
- package/dist/components/portfolio-header.cjs.map +1 -1
- package/dist/components/portfolio-header.js +5 -4
- package/dist/components/portfolio-header.js.map +1 -1
- package/dist/components/portfolio-orders.cjs +19 -14
- package/dist/components/portfolio-orders.cjs.map +1 -1
- package/dist/components/portfolio-orders.js +19 -14
- package/dist/components/portfolio-orders.js.map +1 -1
- package/dist/components/portfolio-section.cjs +3 -1
- package/dist/components/portfolio-section.cjs.map +1 -1
- package/dist/components/portfolio-section.js +3 -1
- package/dist/components/portfolio-section.js.map +1 -1
- package/dist/components/portfolio-shell.cjs +15 -12
- package/dist/components/portfolio-shell.cjs.map +1 -1
- package/dist/components/portfolio-shell.js +15 -12
- package/dist/components/portfolio-shell.js.map +1 -1
- package/dist/components/portfolio-sponsorships.cjs +39 -31
- package/dist/components/portfolio-sponsorships.cjs.map +1 -1
- package/dist/components/portfolio-sponsorships.js +39 -31
- package/dist/components/portfolio-sponsorships.js.map +1 -1
- package/dist/components/price-history-chart.cjs +7 -6
- package/dist/components/price-history-chart.cjs.map +1 -1
- package/dist/components/price-history-chart.js +7 -6
- package/dist/components/price-history-chart.js.map +1 -1
- package/dist/components/remix-browse-page.cjs +14 -11
- package/dist/components/remix-browse-page.cjs.map +1 -1
- package/dist/components/remix-browse-page.js +14 -11
- package/dist/components/remix-browse-page.js.map +1 -1
- package/dist/components/remixes-tab.cjs +8 -11
- package/dist/components/remixes-tab.cjs.map +1 -1
- package/dist/components/remixes-tab.js +8 -11
- package/dist/components/remixes-tab.js.map +1 -1
- package/dist/components/report-dialog.cjs +25 -23
- package/dist/components/report-dialog.cjs.map +1 -1
- package/dist/components/report-dialog.js +25 -23
- package/dist/components/report-dialog.js.map +1 -1
- package/dist/components/rewards/badge-unlocked.cjs +4 -4
- package/dist/components/rewards/badge-unlocked.cjs.map +1 -1
- package/dist/components/rewards/badge-unlocked.js +4 -4
- package/dist/components/rewards/badge-unlocked.js.map +1 -1
- package/dist/components/rewards/leaderboard-panel.cjs +5 -3
- package/dist/components/rewards/leaderboard-panel.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-panel.js +5 -3
- package/dist/components/rewards/leaderboard-panel.js.map +1 -1
- package/dist/components/rewards/leaderboard-table.cjs +13 -7
- package/dist/components/rewards/leaderboard-table.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-table.js +13 -7
- package/dist/components/rewards/leaderboard-table.js.map +1 -1
- package/dist/components/rewards/level-journey-list.cjs +6 -4
- package/dist/components/rewards/level-journey-list.cjs.map +1 -1
- package/dist/components/rewards/level-journey-list.js +6 -4
- package/dist/components/rewards/level-journey-list.js.map +1 -1
- package/dist/components/rewards/level-up-celebration.cjs +3 -1
- package/dist/components/rewards/level-up-celebration.cjs.map +1 -1
- package/dist/components/rewards/level-up-celebration.js +3 -1
- package/dist/components/rewards/level-up-celebration.js.map +1 -1
- package/dist/components/rewards/rewards-dashboard.cjs +51 -41
- package/dist/components/rewards/rewards-dashboard.cjs.map +1 -1
- package/dist/components/rewards/rewards-dashboard.js +51 -41
- package/dist/components/rewards/rewards-dashboard.js.map +1 -1
- package/dist/components/rewards/score-summary-card.cjs +9 -13
- package/dist/components/rewards/score-summary-card.cjs.map +1 -1
- package/dist/components/rewards/score-summary-card.js +9 -13
- package/dist/components/rewards/score-summary-card.js.map +1 -1
- package/dist/components/rewards/xp-earned.cjs +6 -7
- package/dist/components/rewards/xp-earned.cjs.map +1 -1
- package/dist/components/rewards/xp-earned.js +6 -7
- package/dist/components/rewards/xp-earned.js.map +1 -1
- package/dist/components/rewards-page.cjs +4 -1
- package/dist/components/rewards-page.cjs.map +1 -1
- package/dist/components/rewards-page.js +4 -1
- package/dist/components/rewards-page.js.map +1 -1
- package/dist/components/rewards-section.cjs +8 -5
- package/dist/components/rewards-section.cjs.map +1 -1
- package/dist/components/rewards-section.js +8 -5
- package/dist/components/rewards-section.js.map +1 -1
- package/dist/components/route-error.cjs +5 -6
- package/dist/components/route-error.cjs.map +1 -1
- package/dist/components/route-error.js +5 -6
- package/dist/components/route-error.js.map +1 -1
- package/dist/components/router.cjs +19 -3
- package/dist/components/router.cjs.map +1 -1
- package/dist/components/router.d.cts +7 -1
- package/dist/components/router.d.ts +7 -1
- package/dist/components/router.js +17 -1
- package/dist/components/router.js.map +1 -1
- package/dist/components/search-page.cjs +13 -11
- package/dist/components/search-page.cjs.map +1 -1
- package/dist/components/search-page.js +13 -11
- package/dist/components/search-page.js.map +1 -1
- package/dist/components/service-collections-page.cjs +22 -19
- package/dist/components/service-collections-page.cjs.map +1 -1
- package/dist/components/service-collections-page.d.cts +12 -12
- package/dist/components/service-collections-page.d.ts +12 -12
- package/dist/components/service-collections-page.js +22 -19
- package/dist/components/service-collections-page.js.map +1 -1
- package/dist/components/settings-snapshots.cjs +16 -20
- package/dist/components/settings-snapshots.cjs.map +1 -1
- package/dist/components/settings-snapshots.js +16 -20
- package/dist/components/settings-snapshots.js.map +1 -1
- package/dist/components/share-button.cjs +3 -1
- package/dist/components/share-button.cjs.map +1 -1
- package/dist/components/share-button.js +3 -1
- package/dist/components/share-button.js.map +1 -1
- package/dist/components/sheet.cjs +22 -18
- package/dist/components/sheet.cjs.map +1 -1
- package/dist/components/sheet.js +22 -18
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sign-in-prompt.cjs +3 -1
- package/dist/components/sign-in-prompt.cjs.map +1 -1
- package/dist/components/sign-in-prompt.js +3 -1
- package/dist/components/sign-in-prompt.js.map +1 -1
- package/dist/components/soulbound-card.cjs +14 -9
- package/dist/components/soulbound-card.cjs.map +1 -1
- package/dist/components/soulbound-card.d.cts +1 -1
- package/dist/components/soulbound-card.d.ts +1 -1
- package/dist/components/soulbound-card.js +14 -9
- package/dist/components/soulbound-card.js.map +1 -1
- package/dist/components/sponsorship-offer-page.cjs +29 -24
- package/dist/components/sponsorship-offer-page.cjs.map +1 -1
- package/dist/components/sponsorship-offer-page.js +29 -24
- package/dist/components/sponsorship-offer-page.js.map +1 -1
- package/dist/components/sponsorship-offers-page.cjs +11 -9
- package/dist/components/sponsorship-offers-page.cjs.map +1 -1
- package/dist/components/sponsorship-offers-page.js +11 -9
- package/dist/components/sponsorship-offers-page.js.map +1 -1
- package/dist/components/stat-tile.cjs +4 -1
- package/dist/components/stat-tile.cjs.map +1 -1
- package/dist/components/stat-tile.js +4 -1
- package/dist/components/stat-tile.js.map +1 -1
- package/dist/components/token-card.cjs +20 -18
- package/dist/components/token-card.cjs.map +1 -1
- package/dist/components/token-card.js +20 -18
- package/dist/components/token-card.js.map +1 -1
- package/dist/components/transaction-dialog-states.cjs +3 -1
- package/dist/components/transaction-dialog-states.cjs.map +1 -1
- package/dist/components/transaction-dialog-states.d.cts +2 -0
- package/dist/components/transaction-dialog-states.d.ts +2 -0
- package/dist/components/transaction-dialog-states.js +3 -1
- package/dist/components/transaction-dialog-states.js.map +1 -1
- package/dist/components/transaction-dialog.cjs +5 -3
- package/dist/components/transaction-dialog.cjs.map +1 -1
- package/dist/components/transaction-dialog.js +5 -3
- package/dist/components/transaction-dialog.js.map +1 -1
- package/dist/components/transfer-collection-ownership.cjs +19 -16
- package/dist/components/transfer-collection-ownership.cjs.map +1 -1
- package/dist/components/transfer-collection-ownership.js +19 -16
- package/dist/components/transfer-collection-ownership.js.map +1 -1
- package/dist/components/transfer-dialog.cjs +16 -17
- package/dist/components/transfer-dialog.cjs.map +1 -1
- package/dist/components/transfer-dialog.js +16 -17
- package/dist/components/transfer-dialog.js.map +1 -1
- package/dist/components/wallet/export-key-section.cjs +8 -6
- package/dist/components/wallet/export-key-section.cjs.map +1 -1
- package/dist/components/wallet/export-key-section.js +8 -6
- package/dist/components/wallet/export-key-section.js.map +1 -1
- package/dist/components/wallet/self-fund-consent-dialog.cjs +10 -8
- package/dist/components/wallet/self-fund-consent-dialog.cjs.map +1 -1
- package/dist/components/wallet/self-fund-consent-dialog.js +10 -8
- package/dist/components/wallet/self-fund-consent-dialog.js.map +1 -1
- package/dist/components/wallet-required.cjs +3 -1
- package/dist/components/wallet-required.cjs.map +1 -1
- package/dist/components/wallet-required.js +3 -1
- package/dist/components/wallet-required.js.map +1 -1
- package/dist/data/activity.cjs +14 -13
- package/dist/data/activity.cjs.map +1 -1
- package/dist/data/activity.js +14 -13
- package/dist/data/activity.js.map +1 -1
- package/dist/data/coins.cjs +7 -5
- package/dist/data/coins.cjs.map +1 -1
- package/dist/data/coins.js +7 -5
- package/dist/data/coins.js.map +1 -1
- package/dist/data/gated-content-types.cjs +6 -5
- package/dist/data/gated-content-types.cjs.map +1 -1
- package/dist/data/gated-content-types.js +6 -5
- package/dist/data/gated-content-types.js.map +1 -1
- package/dist/data/ip-templates.cjs +27 -26
- package/dist/data/ip-templates.cjs.map +1 -1
- package/dist/data/ip-templates.js +27 -26
- package/dist/data/ip-templates.js.map +1 -1
- package/dist/data/ip-types.cjs +10 -9
- package/dist/data/ip-types.cjs.map +1 -1
- package/dist/data/ip-types.js +10 -9
- package/dist/data/ip-types.js.map +1 -1
- package/dist/data/ip.cjs +23 -22
- package/dist/data/ip.cjs.map +1 -1
- package/dist/data/ip.js +23 -22
- package/dist/data/ip.js.map +1 -1
- package/dist/data/launchpad-services.cjs +151 -129
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.d.cts +4 -1
- package/dist/data/launchpad-services.d.ts +4 -1
- package/dist/data/launchpad-services.js +148 -128
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/data/nav-commands.cjs +48 -47
- package/dist/data/nav-commands.cjs.map +1 -1
- package/dist/data/nav-commands.js +48 -47
- package/dist/data/nav-commands.js.map +1 -1
- package/dist/i18n/catalogs.cjs +34 -0
- package/dist/i18n/catalogs.cjs.map +1 -0
- package/dist/i18n/catalogs.d.cts +6 -0
- package/dist/i18n/catalogs.d.ts +6 -0
- package/dist/i18n/catalogs.js +10 -0
- package/dist/i18n/catalogs.js.map +1 -0
- package/dist/i18n/format.cjs +68 -0
- package/dist/i18n/format.cjs.map +1 -0
- package/dist/i18n/format.d.cts +6 -0
- package/dist/i18n/format.d.ts +6 -0
- package/dist/i18n/format.js +41 -0
- package/dist/i18n/format.js.map +1 -0
- package/dist/i18n/index.cjs +83 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +12 -0
- package/dist/i18n/index.d.ts +12 -0
- package/dist/i18n/index.js +37 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/language-choice.cjs +40 -0
- package/dist/i18n/language-choice.cjs.map +1 -0
- package/dist/i18n/language-choice.d.cts +12 -0
- package/dist/i18n/language-choice.d.ts +12 -0
- package/dist/i18n/language-choice.js +16 -0
- package/dist/i18n/language-choice.js.map +1 -0
- package/dist/i18n/locales.cjs +32 -0
- package/dist/i18n/locales.cjs.map +1 -0
- package/dist/i18n/locales.d.cts +9 -0
- package/dist/i18n/locales.d.ts +9 -0
- package/dist/i18n/locales.js +7 -0
- package/dist/i18n/locales.js.map +1 -0
- package/dist/i18n/localize-router.cjs +35 -0
- package/dist/i18n/localize-router.cjs.map +1 -0
- package/dist/i18n/localize-router.d.cts +8 -0
- package/dist/i18n/localize-router.d.ts +8 -0
- package/dist/i18n/localize-router.js +11 -0
- package/dist/i18n/localize-router.js.map +1 -0
- package/dist/i18n/make-t.cjs +43 -0
- package/dist/i18n/make-t.cjs.map +1 -0
- package/dist/i18n/make-t.d.cts +11 -0
- package/dist/i18n/make-t.d.ts +11 -0
- package/dist/i18n/make-t.js +18 -0
- package/dist/i18n/make-t.js.map +1 -0
- package/dist/i18n/provider.cjs +50 -0
- package/dist/i18n/provider.cjs.map +1 -0
- package/dist/i18n/provider.d.cts +14 -0
- package/dist/i18n/provider.d.ts +14 -0
- package/dist/i18n/provider.js +24 -0
- package/dist/i18n/provider.js.map +1 -0
- package/dist/i18n/resolve-locale.cjs +59 -0
- package/dist/i18n/resolve-locale.cjs.map +1 -0
- package/dist/i18n/resolve-locale.d.cts +16 -0
- package/dist/i18n/resolve-locale.d.ts +16 -0
- package/dist/i18n/resolve-locale.js +34 -0
- package/dist/i18n/resolve-locale.js.map +1 -0
- package/dist/i18n/translate.cjs +71 -0
- package/dist/i18n/translate.cjs.map +1 -0
- package/dist/i18n/translate.d.cts +21 -0
- package/dist/i18n/translate.d.ts +21 -0
- package/dist/i18n/translate.js +44 -0
- package/dist/i18n/translate.js.map +1 -0
- package/dist/i18n/use-format.cjs +42 -0
- package/dist/i18n/use-format.cjs.map +1 -0
- package/dist/i18n/use-format.d.cts +8 -0
- package/dist/i18n/use-format.d.ts +8 -0
- package/dist/i18n/use-format.js +18 -0
- package/dist/i18n/use-format.js.map +1 -0
- package/dist/i18n/with-locale.cjs +44 -0
- package/dist/i18n/with-locale.cjs.map +1 -0
- package/dist/i18n/with-locale.d.cts +4 -0
- package/dist/i18n/with-locale.d.ts +4 -0
- package/dist/i18n/with-locale.js +19 -0
- package/dist/i18n/with-locale.js.map +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/utils/describe-error.cjs +2 -1
- package/dist/utils/describe-error.cjs.map +1 -1
- package/dist/utils/describe-error.js +2 -1
- package/dist/utils/describe-error.js.map +1 -1
- package/dist/utils/drop/draft.cjs +2 -1
- package/dist/utils/drop/draft.cjs.map +1 -1
- package/dist/utils/drop/draft.js +2 -1
- package/dist/utils/drop/draft.js.map +1 -1
- package/dist/utils/drop/sale.cjs +2 -1
- package/dist/utils/drop/sale.cjs.map +1 -1
- package/dist/utils/drop/sale.js +2 -1
- package/dist/utils/drop/sale.js.map +1 -1
- package/dist/utils/drop/view.cjs +11 -8
- package/dist/utils/drop/view.cjs.map +1 -1
- package/dist/utils/drop/view.js +11 -8
- package/dist/utils/drop/view.js.map +1 -1
- package/dist/utils/empty-messages.cjs +17 -16
- package/dist/utils/empty-messages.cjs.map +1 -1
- package/dist/utils/empty-messages.js +17 -16
- package/dist/utils/empty-messages.js.map +1 -1
- package/dist/utils/format-activity.cjs +2 -1
- package/dist/utils/format-activity.cjs.map +1 -1
- package/dist/utils/format-activity.js +2 -1
- package/dist/utils/format-activity.js.map +1 -1
- package/dist/utils/format.cjs +14 -13
- package/dist/utils/format.cjs.map +1 -1
- package/dist/utils/format.d.cts +5 -5
- package/dist/utils/format.d.ts +5 -5
- package/dist/utils/format.js +14 -13
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/ipfs-upload.cjs +6 -5
- package/dist/utils/ipfs-upload.cjs.map +1 -1
- package/dist/utils/ipfs-upload.js +6 -5
- package/dist/utils/ipfs-upload.js.map +1 -1
- package/dist/utils/media-wallet/wallet-format.cjs +5 -3
- package/dist/utils/media-wallet/wallet-format.cjs.map +1 -1
- package/dist/utils/media-wallet/wallet-format.d.cts +2 -2
- package/dist/utils/media-wallet/wallet-format.d.ts +2 -2
- package/dist/utils/media-wallet/wallet-format.js +5 -3
- package/dist/utils/media-wallet/wallet-format.js.map +1 -1
- package/dist/utils/success-messages.cjs +84 -79
- package/dist/utils/success-messages.cjs.map +1 -1
- package/dist/utils/success-messages.d.cts +33 -41
- package/dist/utils/success-messages.d.ts +33 -41
- package/dist/utils/success-messages.js +84 -79
- package/dist/utils/success-messages.js.map +1 -1
- package/dist/utils/token-profile-link.cjs +3 -2
- package/dist/utils/token-profile-link.cjs.map +1 -1
- package/dist/utils/token-profile-link.js +3 -2
- package/dist/utils/token-profile-link.js.map +1 -1
- package/dist/utils/wallet-failure.cjs +9 -8
- package/dist/utils/wallet-failure.cjs.map +1 -1
- package/dist/utils/wallet-failure.js +9 -8
- package/dist/utils/wallet-failure.js.map +1 -1
- package/package.json +7 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-filters.tsx"],"sourcesContent":["\"use client\";\n\nimport { useMemo } from \"react\";\nimport { SlidersHorizontal, X, Check } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport type { ApiToken, CollectionTokensSort } from \"@medialane/sdk\";\n\nconst EXCLUDED_TRAIT_TYPES = new Set([\"registration\"]);\n\nexport const SORT_OPTIONS: { value: CollectionTokensSort; label: string }[] = [\n { value: \"recent\", label: \"Recent\" },\n { value: \"oldest\", label: \"Oldest\" },\n { value: \"name\", label: \"Name\" },\n { value: \"price\", label: \"Price\" },\n];\n\nexport interface TraitSection {\n traitType: string;\n values: { value: string; count: number }[];\n}\n\nexport function useCollectionFilters(\n tokens: ApiToken[],\n selected: Record<string, string[]>,\n onChange: (filters: Record<string, string[]>) => void,\n sort: CollectionTokensSort,\n onSortChange: (sort: CollectionTokensSort) => void,\n) {\n\n const traitSections: TraitSection[] = useMemo(() => {\n const map = new Map<string, Map<string, number>>();\n for (const token of tokens) {\n const attrs = Array.isArray(token.metadata?.attributes)\n ? (token.metadata.attributes as { trait_type?: string; value?: string }[])\n : [];\n for (const attr of attrs) {\n if (!attr.trait_type || attr.value == null) continue;\n if (EXCLUDED_TRAIT_TYPES.has(attr.trait_type.toLowerCase())) continue;\n if (!map.has(attr.trait_type)) map.set(attr.trait_type, new Map());\n const counts = map.get(attr.trait_type)!;\n const v = String(attr.value);\n counts.set(v, (counts.get(v) ?? 0) + 1);\n }\n }\n return Array.from(map.entries())\n .map(([traitType, counts]) => ({\n traitType,\n values: Array.from(counts.entries())\n .map(([value, count]) => ({ value, count }))\n .sort((a, b) => b.count - a.count || a.value.localeCompare(b.value)),\n }))\n .filter((section) => section.values.length >= 2);\n }, [tokens]);\n\n const activeEntries = Object.entries(selected).flatMap(([traitType, values]) =>\n values.map((value) => ({ traitType, value }))\n );\n const traitActiveCount = activeEntries.length;\n const sortIsDefault = sort === \"recent\";\n const totalActiveCount = traitActiveCount + (sortIsDefault ? 0 : 1);\n\n function toggleValue(traitType: string, value: string) {\n const current = selected[traitType] ?? [];\n const next = current.includes(value)\n ? current.filter((v) => v !== value)\n : [...current, value];\n const nextSelected = { ...selected };\n if (next.length === 0) {\n delete nextSelected[traitType];\n } else {\n nextSelected[traitType] = next;\n }\n onChange(nextSelected);\n }\n\n function clearAll() {\n onChange({});\n onSortChange(\"recent\");\n }\n\n function removeFilter(traitType: string, value: string) {\n toggleValue(traitType, value);\n }\n\n return { traitSections, activeEntries, totalActiveCount, sortIsDefault, toggleValue, clearAll, removeFilter };\n}\n\nconst TRIGGER_BTN = \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border border-input bg-background text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground h-8 px-3 shrink-0\";\n\nexport interface CollectionFiltersTriggerProps {\n totalActiveCount: number;\n sortIsDefault: boolean;\n sort: CollectionTokensSort;\n activeEntries: { traitType: string; value: string }[];\n onOpen: () => void;\n onSortReset: () => void;\n onRemoveFilter: (traitType: string, value: string) => void;\n onClearAll: () => void;\n showButton?: boolean;\n showChips?: boolean;\n}\n\nexport function CollectionFiltersTrigger({\n totalActiveCount,\n sortIsDefault,\n sort,\n activeEntries,\n onOpen,\n onSortReset,\n onRemoveFilter,\n onClearAll,\n showButton = true,\n showChips = true,\n}: CollectionFiltersTriggerProps) {\n if (!showButton && (!showChips || (sortIsDefault && activeEntries.length === 0))) return null;\n return (\n <div className=\"flex items-center justify-end gap-2 flex-wrap\">\n {showButton && (\n <button onClick={onOpen} className={TRIGGER_BTN} aria-label=\"Filters\">\n <SlidersHorizontal className=\"h-3.5 w-3.5\" />\n {totalActiveCount > 0 && (\n <span className=\"h-4 min-w-4 rounded-full bg-primary text-2xs font-bold text-primary-foreground flex items-center justify-center px-1 -mr-1\">\n {totalActiveCount}\n </span>\n )}\n </button>\n )}\n {showChips && (\n <>\n\n {!sortIsDefault && (\n <button\n onClick={onSortReset}\n className=\"inline-flex items-center gap-1 h-8 px-2.5 rounded-md border border-primary/40 bg-primary/10 text-xs font-medium text-foreground hover:bg-primary/20 transition-colors\"\n >\n <span className=\"text-muted-foreground text-2xs\">Sort:</span>\n <span>{SORT_OPTIONS.find((o) => o.value === sort)?.label}</span>\n <X className=\"h-3 w-3 text-muted-foreground ml-0.5\" />\n </button>\n )}\n\n {activeEntries.map(({ traitType, value }) => (\n <button\n key={`${traitType}:${value}`}\n onClick={() => onRemoveFilter(traitType, value)}\n title={`${traitType}: ${value}`}\n className=\"inline-flex max-w-full min-w-0 items-center gap-1 h-8 px-2.5 rounded-md border border-primary/40 bg-primary/10 text-xs font-medium text-foreground hover:bg-primary/20 transition-colors\"\n >\n <span className=\"text-muted-foreground text-2xs shrink-0\">{traitType}:</span>\n <span className=\"truncate\">{value}</span>\n <X className=\"h-3 w-3 text-muted-foreground ml-0.5 shrink-0\" />\n </button>\n ))}\n\n {totalActiveCount > 1 && (\n <button\n onClick={onClearAll}\n className=\"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline transition-colors\"\n >\n Clear all\n </button>\n )}\n </>\n )}\n </div>\n );\n}\n\nexport interface CollectionFiltersBodyProps {\n sort: CollectionTokensSort;\n onSortChange: (sort: CollectionTokensSort) => void;\n traitSections: TraitSection[];\n selected: Record<string, string[]>;\n onToggleValue: (traitType: string, value: string) => void;\n}\n\nconst PILL_BASE = \"inline-flex max-w-full min-w-0 items-center gap-1 h-7 px-2.5 rounded-full border text-xs font-medium transition-colors\";\nconst PILL_ON = \"border-primary bg-primary text-primary-foreground\";\nconst PILL_OFF = \"border-border bg-transparent text-muted-foreground hover:text-foreground hover:border-foreground/30\";\n\nexport function CollectionFiltersBody({\n sort,\n onSortChange,\n traitSections,\n selected,\n onToggleValue,\n}: CollectionFiltersBodyProps) {\n return (\n <div className=\"flex-1 min-w-0 overflow-y-auto overflow-x-hidden px-5 py-3 space-y-4\">\n\n <div>\n <div className=\"mb-2\">\n <span className=\"text-sm font-medium\">Sort by</span>\n </div>\n <div className=\"flex flex-wrap gap-1.5\">\n {SORT_OPTIONS.map(({ value, label }) => {\n const isSelected = sort === value;\n return (\n <button\n key={value}\n onClick={() => onSortChange(value)}\n className={cn(PILL_BASE, isSelected ? PILL_ON : PILL_OFF)}\n >\n {isSelected && <Check className=\"h-3 w-3\" />}\n <span>{label}</span>\n </button>\n );\n })}\n </div>\n </div>\n\n {traitSections.length > 0 && (\n <>\n <div className=\"h-px w-full bg-border\" />\n {traitSections.map((section, i) => {\n const activeValues = selected[section.traitType] ?? [];\n return (\n <div key={section.traitType}>\n {i > 0 && <div className=\"h-px w-full bg-border mb-4\" />}\n <div className=\"flex items-center justify-between gap-3 mb-2\">\n <span className=\"min-w-0 truncate text-sm font-medium\" title={section.traitType}>{section.traitType}</span>\n <span className=\"shrink-0 text-2xs text-muted-foreground\">\n {section.values.length} values\n </span>\n </div>\n <div className=\"flex flex-wrap gap-1.5\">\n {section.values.map(({ value, count }) => {\n const isSelected = activeValues.includes(value);\n return (\n <button\n key={value}\n onClick={() => onToggleValue(section.traitType, value)}\n title={value}\n className={cn(PILL_BASE, isSelected ? PILL_ON : PILL_OFF)}\n >\n {isSelected && <Check className=\"h-3 w-3 shrink-0\" />}\n <span className=\"truncate\">{value}</span>\n <span className={cn(\"shrink-0\", isSelected ? \"opacity-80\" : \"opacity-60\")}>\n {count}\n </span>\n </button>\n );\n })}\n </div>\n </div>\n );\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,WAAU,YAAY,iBAAM;AAAA,kBAClC,oBAAC,UAAK,WAAW,GAAG,YAAY,aAAa,eAAe,YAAY,GACrE,iBACH;AAAA;AAAA;AAAA,cATK;AAAA,YAUP;AAAA,UAEJ,CAAC,GACH;AAAA,aA1BQ,QAAQ,SA2BlB;AAAA,MAEJ,CAAC;AAAA,OACH;AAAA,KAEJ;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-filters.tsx"],"sourcesContent":["\"use client\";\n\nimport { useMemo } from \"react\";\nimport { SlidersHorizontal, X, Check } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport type { ApiToken, CollectionTokensSort } from \"@medialane/sdk\";\nimport { useT } from \"../i18n/provider.js\";\nimport { msg } from \"../i18n/translate.js\";\n\nconst EXCLUDED_TRAIT_TYPES = new Set([\"registration\"]);\n\nexport const SORT_OPTIONS: { value: CollectionTokensSort; label: string }[] = [\n { value: \"recent\", label: msg(\"Recent\") },\n { value: \"oldest\", label: msg(\"Oldest\") },\n { value: \"name\", label: msg(\"Name\") },\n { value: \"price\", label: msg(\"Price\") },\n];\n\nexport interface TraitSection {\n traitType: string;\n values: { value: string; count: number }[];\n}\n\nexport function useCollectionFilters(\n tokens: ApiToken[],\n selected: Record<string, string[]>,\n onChange: (filters: Record<string, string[]>) => void,\n sort: CollectionTokensSort,\n onSortChange: (sort: CollectionTokensSort) => void,\n) {\n\n const traitSections: TraitSection[] = useMemo(() => {\n const map = new Map<string, Map<string, number>>();\n for (const token of tokens) {\n const attrs = Array.isArray(token.metadata?.attributes)\n ? (token.metadata.attributes as { trait_type?: string; value?: string }[])\n : [];\n for (const attr of attrs) {\n if (!attr.trait_type || attr.value == null) continue;\n if (EXCLUDED_TRAIT_TYPES.has(attr.trait_type.toLowerCase())) continue;\n if (!map.has(attr.trait_type)) map.set(attr.trait_type, new Map());\n const counts = map.get(attr.trait_type)!;\n const v = String(attr.value);\n counts.set(v, (counts.get(v) ?? 0) + 1);\n }\n }\n return Array.from(map.entries())\n .map(([traitType, counts]) => ({\n traitType,\n values: Array.from(counts.entries())\n .map(([value, count]) => ({ value, count }))\n .sort((a, b) => b.count - a.count || a.value.localeCompare(b.value)),\n }))\n .filter((section) => section.values.length >= 2);\n }, [tokens]);\n\n const activeEntries = Object.entries(selected).flatMap(([traitType, values]) =>\n values.map((value) => ({ traitType, value }))\n );\n const traitActiveCount = activeEntries.length;\n const sortIsDefault = sort === \"recent\";\n const totalActiveCount = traitActiveCount + (sortIsDefault ? 0 : 1);\n\n function toggleValue(traitType: string, value: string) {\n const current = selected[traitType] ?? [];\n const next = current.includes(value)\n ? current.filter((v) => v !== value)\n : [...current, value];\n const nextSelected = { ...selected };\n if (next.length === 0) {\n delete nextSelected[traitType];\n } else {\n nextSelected[traitType] = next;\n }\n onChange(nextSelected);\n }\n\n function clearAll() {\n onChange({});\n onSortChange(\"recent\");\n }\n\n function removeFilter(traitType: string, value: string) {\n toggleValue(traitType, value);\n }\n\n return { traitSections, activeEntries, totalActiveCount, sortIsDefault, toggleValue, clearAll, removeFilter };\n}\n\nconst TRIGGER_BTN = \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border border-input bg-background text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground h-8 px-3 shrink-0\";\n\nexport interface CollectionFiltersTriggerProps {\n totalActiveCount: number;\n sortIsDefault: boolean;\n sort: CollectionTokensSort;\n activeEntries: { traitType: string; value: string }[];\n onOpen: () => void;\n onSortReset: () => void;\n onRemoveFilter: (traitType: string, value: string) => void;\n onClearAll: () => void;\n showButton?: boolean;\n showChips?: boolean;\n}\n\nexport function CollectionFiltersTrigger({\n totalActiveCount,\n sortIsDefault,\n sort,\n activeEntries,\n onOpen,\n onSortReset,\n onRemoveFilter,\n onClearAll,\n showButton = true,\n showChips = true,\n}: CollectionFiltersTriggerProps) {\n const t = useT();\n if (!showButton && (!showChips || (sortIsDefault && activeEntries.length === 0))) return null;\n return (\n <div className=\"flex items-center justify-end gap-2 flex-wrap\">\n {showButton && (\n <button onClick={onOpen} className={TRIGGER_BTN} aria-label={t(\"Filters\")}>\n <SlidersHorizontal className=\"h-3.5 w-3.5\" />\n {totalActiveCount > 0 && (\n <span className=\"h-4 min-w-4 rounded-full bg-primary text-2xs font-bold text-primary-foreground flex items-center justify-center px-1 -mr-1\">\n {totalActiveCount}\n </span>\n )}\n </button>\n )}\n {showChips && (\n <>\n\n {!sortIsDefault && (\n <button\n onClick={onSortReset}\n className=\"inline-flex items-center gap-1 h-8 px-2.5 rounded-md border border-primary/40 bg-primary/10 text-xs font-medium text-foreground hover:bg-primary/20 transition-colors\"\n >\n <span className=\"text-muted-foreground text-2xs\">{t(\"Sort:\")}</span>\n <span>{t(SORT_OPTIONS.find((o) => o.value === sort)?.label ?? \"\")}</span>\n <X className=\"h-3 w-3 text-muted-foreground ml-0.5\" />\n </button>\n )}\n\n {activeEntries.map(({ traitType, value }) => (\n <button\n key={`${traitType}:${value}`}\n onClick={() => onRemoveFilter(traitType, value)}\n title={`${traitType}: ${value}`}\n className=\"inline-flex max-w-full min-w-0 items-center gap-1 h-8 px-2.5 rounded-md border border-primary/40 bg-primary/10 text-xs font-medium text-foreground hover:bg-primary/20 transition-colors\"\n >\n <span className=\"text-muted-foreground text-2xs shrink-0\">{traitType}:</span>\n <span className=\"truncate\">{value}</span>\n <X className=\"h-3 w-3 text-muted-foreground ml-0.5 shrink-0\" />\n </button>\n ))}\n\n {totalActiveCount > 1 && (\n <button\n onClick={onClearAll}\n className=\"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline transition-colors\"\n >\n {t(\"Clear all\")}\n </button>\n )}\n </>\n )}\n </div>\n );\n}\n\nexport interface CollectionFiltersBodyProps {\n sort: CollectionTokensSort;\n onSortChange: (sort: CollectionTokensSort) => void;\n traitSections: TraitSection[];\n selected: Record<string, string[]>;\n onToggleValue: (traitType: string, value: string) => void;\n}\n\nconst PILL_BASE = \"inline-flex max-w-full min-w-0 items-center gap-1 h-7 px-2.5 rounded-full border text-xs font-medium transition-colors\";\nconst PILL_ON = \"border-primary bg-primary text-primary-foreground\";\nconst PILL_OFF = \"border-border bg-transparent text-muted-foreground hover:text-foreground hover:border-foreground/30\";\n\nexport function CollectionFiltersBody({\n sort,\n onSortChange,\n traitSections,\n selected,\n onToggleValue,\n}: CollectionFiltersBodyProps) {\n const t = useT();\n return (\n <div className=\"flex-1 min-w-0 overflow-y-auto overflow-x-hidden px-5 py-3 space-y-4\">\n\n <div>\n <div className=\"mb-2\">\n <span className=\"text-sm font-medium\">{t(\"Sort by\")}</span>\n </div>\n <div className=\"flex flex-wrap gap-1.5\">\n {SORT_OPTIONS.map(({ value, label }) => {\n const isSelected = sort === value;\n return (\n <button\n key={value}\n onClick={() => onSortChange(value)}\n className={cn(PILL_BASE, isSelected ? PILL_ON : PILL_OFF)}\n >\n {isSelected && <Check className=\"h-3 w-3\" />}\n <span>{label}</span>\n </button>\n );\n })}\n </div>\n </div>\n\n {traitSections.length > 0 && (\n <>\n <div className=\"h-px w-full bg-border\" />\n {traitSections.map((section, i) => {\n const activeValues = selected[section.traitType] ?? [];\n return (\n <div key={section.traitType}>\n {i > 0 && <div className=\"h-px w-full bg-border mb-4\" />}\n <div className=\"flex items-center justify-between gap-3 mb-2\">\n <span className=\"min-w-0 truncate text-sm font-medium\" title={section.traitType}>{section.traitType}</span>\n <span className=\"shrink-0 text-2xs text-muted-foreground\">\n {t(\"{count} values\", { count: section.values.length })}</span>\n </div>\n <div className=\"flex flex-wrap gap-1.5\">\n {section.values.map(({ value, count }) => {\n const isSelected = activeValues.includes(value);\n return (\n <button\n key={value}\n onClick={() => onToggleValue(section.traitType, value)}\n title={value}\n className={cn(PILL_BASE, isSelected ? PILL_ON : PILL_OFF)}\n >\n {isSelected && <Check className=\"h-3 w-3 shrink-0\" />}\n <span className=\"truncate\">{value}</span>\n <span className={cn(\"shrink-0\", isSelected ? \"opacity-80\" : \"opacity-60\")}>\n {count}\n </span>\n </button>\n );\n })}\n </div>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ACE;AAAA,cAAC;AAAA;AAAA,gBAEC,SAAS,MAAM,cAAc,QAAQ,WAAW,KAAK;AAAA,gBACrD,OAAO;AAAA,gBACP,WAAW,GAAG,WAAW,aAAa,UAAU,QAAQ;AAAA,gBAEvD;AAAA,gCAAc,oBAAC,SAAM,WAAU,oBAAmB;AAAA,kBACnD,oBAAC,UAAK,WAAU,YAAY,iBAAM;AAAA,kBAClC,oBAAC,UAAK,WAAW,GAAG,YAAY,aAAa,eAAe,YAAY,GACrE,iBACH;AAAA;AAAA;AAAA,cATK;AAAA,YAUP;AAAA,UAEJ,CAAC,GACH;AAAA,aAzBQ,QAAQ,SA0BlB;AAAA,MAEJ,CAAC;AAAA,OACH;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -30,6 +30,8 @@ var import_creator_chip = require("./creator-chip.js");
|
|
|
30
30
|
var import_currency_icon = require("./currency-icon.js");
|
|
31
31
|
var import_format = require("../utils/format.js");
|
|
32
32
|
var import_use_image_url = require("../utils/use-image-url.js");
|
|
33
|
+
var import_provider = require("../i18n/provider.js");
|
|
34
|
+
var import_use_format = require("../i18n/use-format.js");
|
|
33
35
|
const CHIP = "text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground";
|
|
34
36
|
function PriceStat({ label, raw }) {
|
|
35
37
|
const { numStr, symbol } = (0, import_format.parsePriceDisplay)(raw);
|
|
@@ -37,6 +39,8 @@ function PriceStat({ label, raw }) {
|
|
|
37
39
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_media_header.HeaderStat, { label, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_currency_icon.CurrencyAmount, { amount: numStr, symbol, iconSize: 12 }) });
|
|
38
40
|
}
|
|
39
41
|
function CollectionHeader({ collection, loading = false, children }) {
|
|
42
|
+
const intl = (0, import_use_format.useFormat)();
|
|
43
|
+
const t = (0, import_provider.useT)();
|
|
40
44
|
const resolveImage = (0, import_use_image_url.useImageUrl)();
|
|
41
45
|
const image = resolveImage(collection?.image);
|
|
42
46
|
const name = collection?.name ?? "Unnamed Collection";
|
|
@@ -47,16 +51,16 @@ function CollectionHeader({ collection, loading = false, children }) {
|
|
|
47
51
|
name,
|
|
48
52
|
description: collection.description,
|
|
49
53
|
badges: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
50
|
-
collection.standard === "ERC1155" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: CHIP, children: "Multi-edition" }) : null,
|
|
54
|
+
collection.standard === "ERC1155" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: CHIP, children: t("Multi-edition") }) : null,
|
|
51
55
|
collection.symbol ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: CHIP, children: collection.symbol }) : null
|
|
52
56
|
] })
|
|
53
57
|
}
|
|
54
58
|
),
|
|
55
59
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_media_header.HeaderStats, { children: [
|
|
56
|
-
collection.totalSupply != null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_media_header.HeaderStat, { label: "Items", children: collection.totalSupply
|
|
57
|
-
collection.holderCount != null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_media_header.HeaderStat, { label: "Holders", children: collection.holderCount
|
|
58
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PriceStat, { label: "Floor", raw: collection.floorPrice }),
|
|
59
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PriceStat, { label: "Volume", raw: collection.totalVolume })
|
|
60
|
+
collection.totalSupply != null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_media_header.HeaderStat, { label: t("Items"), children: intl.number(collection.totalSupply) }) : null,
|
|
61
|
+
collection.holderCount != null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_media_header.HeaderStat, { label: t("Holders"), children: intl.number(collection.holderCount) }) : null,
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PriceStat, { label: t("Floor"), raw: collection.floorPrice }),
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PriceStat, { label: t("Volume"), raw: collection.totalVolume })
|
|
60
64
|
] }),
|
|
61
65
|
collection.owner ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_creator_chip.CreatorChip, { address: collection.owner }) : null,
|
|
62
66
|
children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, children }: CollectionHeaderProps) {\n const resolveImage = useImageUrl();\n const image = resolveImage(collection?.image);\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n {collection.standard === \"ERC1155\" ? <span className={CHIP}>Multi-edition</span> : null}\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n />\n\n <HeaderStats>\n {collection.totalSupply != null ? <HeaderStat label
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\nimport { useT } from \"../i18n/provider.js\";\nimport { useFormat } from \"../i18n/use-format.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, children }: CollectionHeaderProps) {\n const intl = useFormat();\n const t = useT();\n const resolveImage = useImageUrl();\n const image = resolveImage(collection?.image);\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n {collection.standard === \"ERC1155\" ? <span className={CHIP}>{t(\"Multi-edition\")}</span> : null}\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n />\n\n <HeaderStats>\n {collection.totalSupply != null ? <HeaderStat label={t(\"Items\")}>{intl.number(collection.totalSupply)}</HeaderStat> : null}\n {collection.holderCount != null ? <HeaderStat label={t(\"Holders\")}>{intl.number(collection.holderCount)}</HeaderStat> : null}\n <PriceStat label={t(\"Floor\")} raw={collection.floorPrice} />\n <PriceStat label={t(\"Volume\")} raw={collection.totalVolume} />\n </HeaderStats>\n\n {collection.owner ? <CreatorChip address={collection.owner} /> : null}\n\n {children}\n </>\n ) : null}\n </MediaHeader>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BM;AAxBN,0BAAuB;AAEvB,gCAAiC;AACjC,0BAAqD;AACrD,0BAA4B;AAC5B,2BAA+B;AAC/B,oBAAkC;AAClC,2BAA4B;AAC5B,sBAAqB;AACrB,wBAA0B;AAE1B,MAAM,OAAO;AAQb,SAAS,UAAU,EAAE,OAAO,IAAI,GAA0C;AACxE,QAAM,EAAE,QAAQ,OAAO,QAAI,iCAAkB,GAAG;AAChD,MAAI,CAAC,UAAU,WAAW,SAAK,QAAO;AACtC,SACE,4CAAC,kCAAW,OACV,sDAAC,uCAAe,QAAQ,QAAQ,QAAgB,UAAU,IAAI,GAChE;AAEJ;AAEO,SAAS,iBAAiB,EAAE,YAAY,UAAU,OAAO,SAAS,GAA0B;AACjG,QAAM,WAAO,6BAAU;AACvB,QAAM,QAAI,sBAAK;AACf,QAAM,mBAAe,kCAAY;AACjC,QAAM,QAAQ,aAAa,YAAY,KAAK;AAC5C,QAAM,OAAO,YAAY,QAAQ;AAEjC,SACE,4CAAC,mCAAY,OAAc,UAAU,MAAM,cAAc,4BAAQ,SAAS,WAAW,CAAC,YACnF,uBACC,4EACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,aAAa,WAAW;AAAA,QACxB,QACE,4EACG;AAAA,qBAAW,aAAa,YAAY,4CAAC,UAAK,WAAW,MAAO,YAAE,eAAe,GAAE,IAAU;AAAA,UACzF,WAAW,SAAS,4CAAC,UAAK,WAAW,MAAO,qBAAW,QAAO,IAAU;AAAA,WAC3E;AAAA;AAAA,IAEJ;AAAA,IAEA,6CAAC,mCACE;AAAA,iBAAW,eAAe,OAAO,4CAAC,kCAAW,OAAO,EAAE,OAAO,GAAI,eAAK,OAAO,WAAW,WAAW,GAAE,IAAgB;AAAA,MACrH,WAAW,eAAe,OAAO,4CAAC,kCAAW,OAAO,EAAE,SAAS,GAAI,eAAK,OAAO,WAAW,WAAW,GAAE,IAAgB;AAAA,MACxH,4CAAC,aAAU,OAAO,EAAE,OAAO,GAAG,KAAK,WAAW,YAAY;AAAA,MAC1D,4CAAC,aAAU,OAAO,EAAE,QAAQ,GAAG,KAAK,WAAW,aAAa;AAAA,OAC9D;AAAA,IAEC,WAAW,QAAQ,4CAAC,mCAAY,SAAS,WAAW,OAAO,IAAK;AAAA,IAEhE;AAAA,KACH,IACE,MACN;AAEJ;","names":[]}
|
|
@@ -7,6 +7,8 @@ import { CreatorChip } from "./creator-chip.js";
|
|
|
7
7
|
import { CurrencyAmount } from "./currency-icon.js";
|
|
8
8
|
import { parsePriceDisplay } from "../utils/format.js";
|
|
9
9
|
import { useImageUrl } from "../utils/use-image-url.js";
|
|
10
|
+
import { useT } from "../i18n/provider.js";
|
|
11
|
+
import { useFormat } from "../i18n/use-format.js";
|
|
10
12
|
const CHIP = "text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground";
|
|
11
13
|
function PriceStat({ label, raw }) {
|
|
12
14
|
const { numStr, symbol } = parsePriceDisplay(raw);
|
|
@@ -14,6 +16,8 @@ function PriceStat({ label, raw }) {
|
|
|
14
16
|
return /* @__PURE__ */ jsx(HeaderStat, { label, children: /* @__PURE__ */ jsx(CurrencyAmount, { amount: numStr, symbol, iconSize: 12 }) });
|
|
15
17
|
}
|
|
16
18
|
function CollectionHeader({ collection, loading = false, children }) {
|
|
19
|
+
const intl = useFormat();
|
|
20
|
+
const t = useT();
|
|
17
21
|
const resolveImage = useImageUrl();
|
|
18
22
|
const image = resolveImage(collection?.image);
|
|
19
23
|
const name = collection?.name ?? "Unnamed Collection";
|
|
@@ -24,16 +28,16 @@ function CollectionHeader({ collection, loading = false, children }) {
|
|
|
24
28
|
name,
|
|
25
29
|
description: collection.description,
|
|
26
30
|
badges: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
-
collection.standard === "ERC1155" ? /* @__PURE__ */ jsx("span", { className: CHIP, children: "Multi-edition" }) : null,
|
|
31
|
+
collection.standard === "ERC1155" ? /* @__PURE__ */ jsx("span", { className: CHIP, children: t("Multi-edition") }) : null,
|
|
28
32
|
collection.symbol ? /* @__PURE__ */ jsx("span", { className: CHIP, children: collection.symbol }) : null
|
|
29
33
|
] })
|
|
30
34
|
}
|
|
31
35
|
),
|
|
32
36
|
/* @__PURE__ */ jsxs(HeaderStats, { children: [
|
|
33
|
-
collection.totalSupply != null ? /* @__PURE__ */ jsx(HeaderStat, { label: "Items", children: collection.totalSupply
|
|
34
|
-
collection.holderCount != null ? /* @__PURE__ */ jsx(HeaderStat, { label: "Holders", children: collection.holderCount
|
|
35
|
-
/* @__PURE__ */ jsx(PriceStat, { label: "Floor", raw: collection.floorPrice }),
|
|
36
|
-
/* @__PURE__ */ jsx(PriceStat, { label: "Volume", raw: collection.totalVolume })
|
|
37
|
+
collection.totalSupply != null ? /* @__PURE__ */ jsx(HeaderStat, { label: t("Items"), children: intl.number(collection.totalSupply) }) : null,
|
|
38
|
+
collection.holderCount != null ? /* @__PURE__ */ jsx(HeaderStat, { label: t("Holders"), children: intl.number(collection.holderCount) }) : null,
|
|
39
|
+
/* @__PURE__ */ jsx(PriceStat, { label: t("Floor"), raw: collection.floorPrice }),
|
|
40
|
+
/* @__PURE__ */ jsx(PriceStat, { label: t("Volume"), raw: collection.totalVolume })
|
|
37
41
|
] }),
|
|
38
42
|
collection.owner ? /* @__PURE__ */ jsx(CreatorChip, { address: collection.owner }) : null,
|
|
39
43
|
children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, children }: CollectionHeaderProps) {\n const resolveImage = useImageUrl();\n const image = resolveImage(collection?.image);\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n {collection.standard === \"ERC1155\" ? <span className={CHIP}>Multi-edition</span> : null}\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n />\n\n <HeaderStats>\n {collection.totalSupply != null ? <HeaderStat label
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\nimport { useT } from \"../i18n/provider.js\";\nimport { useFormat } from \"../i18n/use-format.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, children }: CollectionHeaderProps) {\n const intl = useFormat();\n const t = useT();\n const resolveImage = useImageUrl();\n const image = resolveImage(collection?.image);\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n {collection.standard === \"ERC1155\" ? <span className={CHIP}>{t(\"Multi-edition\")}</span> : null}\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n />\n\n <HeaderStats>\n {collection.totalSupply != null ? <HeaderStat label={t(\"Items\")}>{intl.number(collection.totalSupply)}</HeaderStat> : null}\n {collection.holderCount != null ? <HeaderStat label={t(\"Holders\")}>{intl.number(collection.holderCount)}</HeaderStat> : null}\n <PriceStat label={t(\"Floor\")} raw={collection.floorPrice} />\n <PriceStat label={t(\"Volume\")} raw={collection.totalVolume} />\n </HeaderStats>\n\n {collection.owner ? <CreatorChip address={collection.owner} /> : null}\n\n {children}\n </>\n ) : null}\n </Media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AAS,GAAI,eAAK,OAAO,WAAW,WAAW,GAAE,IAAgB;AAAA,MACxH,oBAAC,aAAU,OAAO,EAAE,OAAO,GAAG,KAAK,WAAW,YAAY;AAAA,MAC1D,oBAAC,aAAU,OAAO,EAAE,QAAQ,GAAG,KAAK,WAAW,aAAa;AAAA,OAC9D;AAAA,IAEC,WAAW,QAAQ,oBAAC,eAAY,SAAS,WAAW,OAAO,IAAK;AAAA,IAEhE;AAAA,KACH,IACE,MACN;AAEJ;","names":[]}
|
|
@@ -41,7 +41,9 @@ var import_use_image_url = require("../utils/use-image-url.js");
|
|
|
41
41
|
var import_button = require("./button.js");
|
|
42
42
|
var import_empty_or_error = require("./empty-or-error.js");
|
|
43
43
|
var import_lucide_react = require("lucide-react");
|
|
44
|
+
var import_provider = require("../i18n/provider.js");
|
|
44
45
|
function CollectionNameClaim() {
|
|
46
|
+
const t = (0, import_provider.useT)();
|
|
45
47
|
const { walletAddress } = (0, import_medialane_app.useMedialaneApp)();
|
|
46
48
|
const resolveImage = (0, import_use_image_url.useImageUrl)();
|
|
47
49
|
const { collections, isLoading, error, mutate } = (0, import_use_collections.useCollectionsByOwner)(walletAddress);
|
|
@@ -53,9 +55,9 @@ function CollectionNameClaim() {
|
|
|
53
55
|
error,
|
|
54
56
|
isEmpty: collections.length === 0,
|
|
55
57
|
onRetry: mutate,
|
|
56
|
-
emptyTitle: "No collections to name yet",
|
|
57
|
-
emptyDescription: "Create a collection first \u2014 then give it a clean, memorable URL.",
|
|
58
|
-
emptyCta: { label: "Create a collection", href: "/launchpad/single-editions/collection" }
|
|
58
|
+
emptyTitle: t("No collections to name yet"),
|
|
59
|
+
emptyDescription: t("Create a collection first \u2014 then give it a clean, memorable URL."),
|
|
60
|
+
emptyCta: { label: t("Create a collection"), href: "/launchpad/single-editions/collection" }
|
|
59
61
|
}
|
|
60
62
|
),
|
|
61
63
|
collections.map((c) => {
|
|
@@ -67,19 +69,19 @@ function CollectionNameClaim() {
|
|
|
67
69
|
{
|
|
68
70
|
className: "flex items-center gap-4 rounded-2xl border border-border bg-card p-4",
|
|
69
71
|
children: [
|
|
70
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-12 w-12 rounded-xl overflow-hidden bg-muted shrink-0 flex items-center justify-center", children: img ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: img, alt: c.name ?? "Collection", width: 48, height: 48, className: "h-full w-full object-cover", unoptimized: true }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ImageIcon, { className: "h-5 w-5 text-muted-foreground" }) }),
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-12 w-12 rounded-xl overflow-hidden bg-muted shrink-0 flex items-center justify-center", children: img ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: img, alt: c.name ?? t("Collection"), width: 48, height: 48, className: "h-full w-full object-cover", unoptimized: true }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ImageIcon, { className: "h-5 w-5 text-muted-foreground" }) }),
|
|
71
73
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
72
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-semibold truncate", children: c.name ?? "Untitled collection" }),
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-semibold truncate", children: c.name ?? t("Untitled collection") }),
|
|
73
75
|
slug ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-xs text-emerald-600 dark:text-emerald-400 flex items-center gap-1 mt-0.5", children: [
|
|
74
76
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CheckCircle2, { className: "h-3 w-3 shrink-0" }),
|
|
75
77
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "tabular-nums truncate", children: [
|
|
76
78
|
"medialane.io/collection/",
|
|
77
79
|
slug
|
|
78
80
|
] })
|
|
79
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground mt-0.5", children: "No custom name yet" })
|
|
81
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground mt-0.5", children: t("No custom name yet") })
|
|
80
82
|
] }),
|
|
81
83
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: slug ? "outline" : "default", size: "sm", asChild: true, className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: settingsHref, children: [
|
|
82
|
-
slug ? "Edit name" : "Set name",
|
|
84
|
+
slug ? t("Edit name") : t("Set name"),
|
|
83
85
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3.5 w-3.5 ml-1" })
|
|
84
86
|
] }) })
|
|
85
87
|
]
|
|
@@ -89,7 +91,7 @@ function CollectionNameClaim() {
|
|
|
89
91
|
}),
|
|
90
92
|
collections.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "ghost", size: "sm", asChild: true, className: "text-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: "/launchpad/single-editions/collection", children: [
|
|
91
93
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
92
|
-
"Create another collection"
|
|
94
|
+
t("Create another collection")
|
|
93
95
|
] }) })
|
|
94
96
|
] });
|
|
95
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-name-claim.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport Image from \"./image.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useCollectionsByOwner } from \"../utils/use-collections.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nimport { Button } from \"./button.js\";\nimport { EmptyOrError } from \"./empty-or-error.js\";\nimport { CheckCircle2, ImageIcon, Plus, ArrowRight } from \"lucide-react\";\n\nexport function CollectionNameClaim() {\n const { walletAddress } = useMedialaneApp();\n const resolveImage = useImageUrl();\n const { collections, isLoading, error, mutate } = useCollectionsByOwner(walletAddress);\n\n return (\n <div className=\"space-y-3\">\n <EmptyOrError\n isLoading={isLoading}\n error={error}\n isEmpty={collections.length === 0}\n onRetry={mutate}\n emptyTitle
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-name-claim.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport Image from \"./image.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useCollectionsByOwner } from \"../utils/use-collections.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nimport { Button } from \"./button.js\";\nimport { EmptyOrError } from \"./empty-or-error.js\";\nimport { CheckCircle2, ImageIcon, Plus, ArrowRight } from \"lucide-react\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport function CollectionNameClaim() {\n const t = useT();\n const { walletAddress } = useMedialaneApp();\n const resolveImage = useImageUrl();\n const { collections, isLoading, error, mutate } = useCollectionsByOwner(walletAddress);\n\n return (\n <div className=\"space-y-3\">\n <EmptyOrError\n isLoading={isLoading}\n error={error}\n isEmpty={collections.length === 0}\n onRetry={mutate}\n emptyTitle={t(\"No collections to name yet\")}\n emptyDescription={t(\"Create a collection first — then give it a clean, memorable URL.\")}\n emptyCta={{ label: t(\"Create a collection\"), href: \"/launchpad/single-editions/collection\" }}\n />\n\n {collections.map((c) => {\n const slug = c.profile?.slug;\n const img = resolveImage(c.image, { width: 96 });\n const settingsHref = `/portfolio/collections/${c.contractAddress}/settings`;\n return (\n <div\n key={c.id}\n className=\"flex items-center gap-4 rounded-2xl border border-border bg-card p-4\"\n >\n <div className=\"h-12 w-12 rounded-xl overflow-hidden bg-muted shrink-0 flex items-center justify-center\">\n {img ? (\n <Image src={img} alt={c.name ?? t(\"Collection\")} width={48} height={48} className=\"h-full w-full object-cover\" unoptimized />\n ) : (\n <ImageIcon className=\"h-5 w-5 text-muted-foreground\" />\n )}\n </div>\n\n <div className=\"min-w-0 flex-1\">\n <p className=\"font-semibold truncate\">{c.name ?? t(\"Untitled collection\")}</p>\n {slug ? (\n <p className=\"text-xs text-emerald-600 dark:text-emerald-400 flex items-center gap-1 mt-0.5\">\n <CheckCircle2 className=\"h-3 w-3 shrink-0\" />\n <span className=\"tabular-nums truncate\">medialane.io/collection/{slug}</span>\n </p>\n ) : (\n <p className=\"text-xs text-muted-foreground mt-0.5\">{t(\"No custom name yet\")}</p>\n )}\n </div>\n\n <Button variant={slug ? \"outline\" : \"default\"} size=\"sm\" asChild className=\"shrink-0\">\n <Link href={settingsHref}>\n {slug ? t(\"Edit name\") : t(\"Set name\")}\n <ArrowRight className=\"h-3.5 w-3.5 ml-1\" />\n </Link>\n </Button>\n </div>\n );\n })}\n\n {collections.length > 0 && (\n <Button variant=\"ghost\" size=\"sm\" asChild className=\"text-muted-foreground\">\n <Link href=\"/launchpad/single-editions/collection\">\n <Plus className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Create another collection\")}\n </Link>\n </Button>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBM;AAnBN,kBAAiB;AACjB,mBAAkB;AAClB,2BAAgC;AAChC,6BAAsC;AACtC,2BAA4B;AAE5B,oBAAuB;AACvB,4BAA6B;AAC7B,0BAA0D;AAC1D,sBAAqB;AAEd,SAAS,sBAAsB;AACpC,QAAM,QAAI,sBAAK;AACf,QAAM,EAAE,cAAc,QAAI,sCAAgB;AAC1C,QAAM,mBAAe,kCAAY;AACjC,QAAM,EAAE,aAAa,WAAW,OAAO,OAAO,QAAI,8CAAsB,aAAa;AAErF,SACE,6CAAC,SAAI,WAAU,aACb;AAAA;AAAA,MA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A;AAAA;AAAA,QA5BK,EAAE;AAAA,MA6BT;AAAA,IAEJ,CAAC;AAAA,IAEA,YAAY,SAAS,KACpB,4CAAC,wBAAO,SAAQ,SAAQ,MAAK,MAAK,SAAO,MAAC,WAAU,yBAClD,uDAAC,YAAAA,SAAA,EAAK,MAAK,yCACT;AAAA,kDAAC,4BAAK,WAAU,sBAAqB;AAAA,MACpC,EAAE,2BAA2B;AAAA,OAChC,GACF;AAAA,KAEJ;AAEJ;","names":["Image","Link"]}
|
|
@@ -8,7 +8,9 @@ import { useImageUrl } from "../utils/use-image-url.js";
|
|
|
8
8
|
import { Button } from "./button.js";
|
|
9
9
|
import { EmptyOrError } from "./empty-or-error.js";
|
|
10
10
|
import { CheckCircle2, ImageIcon, Plus, ArrowRight } from "lucide-react";
|
|
11
|
+
import { useT } from "../i18n/provider.js";
|
|
11
12
|
function CollectionNameClaim() {
|
|
13
|
+
const t = useT();
|
|
12
14
|
const { walletAddress } = useMedialaneApp();
|
|
13
15
|
const resolveImage = useImageUrl();
|
|
14
16
|
const { collections, isLoading, error, mutate } = useCollectionsByOwner(walletAddress);
|
|
@@ -20,9 +22,9 @@ function CollectionNameClaim() {
|
|
|
20
22
|
error,
|
|
21
23
|
isEmpty: collections.length === 0,
|
|
22
24
|
onRetry: mutate,
|
|
23
|
-
emptyTitle: "No collections to name yet",
|
|
24
|
-
emptyDescription: "Create a collection first \u2014 then give it a clean, memorable URL.",
|
|
25
|
-
emptyCta: { label: "Create a collection", href: "/launchpad/single-editions/collection" }
|
|
25
|
+
emptyTitle: t("No collections to name yet"),
|
|
26
|
+
emptyDescription: t("Create a collection first \u2014 then give it a clean, memorable URL."),
|
|
27
|
+
emptyCta: { label: t("Create a collection"), href: "/launchpad/single-editions/collection" }
|
|
26
28
|
}
|
|
27
29
|
),
|
|
28
30
|
collections.map((c) => {
|
|
@@ -34,19 +36,19 @@ function CollectionNameClaim() {
|
|
|
34
36
|
{
|
|
35
37
|
className: "flex items-center gap-4 rounded-2xl border border-border bg-card p-4",
|
|
36
38
|
children: [
|
|
37
|
-
/* @__PURE__ */ jsx("div", { className: "h-12 w-12 rounded-xl overflow-hidden bg-muted shrink-0 flex items-center justify-center", children: img ? /* @__PURE__ */ jsx(Image, { src: img, alt: c.name ?? "Collection", width: 48, height: 48, className: "h-full w-full object-cover", unoptimized: true }) : /* @__PURE__ */ jsx(ImageIcon, { className: "h-5 w-5 text-muted-foreground" }) }),
|
|
39
|
+
/* @__PURE__ */ jsx("div", { className: "h-12 w-12 rounded-xl overflow-hidden bg-muted shrink-0 flex items-center justify-center", children: img ? /* @__PURE__ */ jsx(Image, { src: img, alt: c.name ?? t("Collection"), width: 48, height: 48, className: "h-full w-full object-cover", unoptimized: true }) : /* @__PURE__ */ jsx(ImageIcon, { className: "h-5 w-5 text-muted-foreground" }) }),
|
|
38
40
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
39
|
-
/* @__PURE__ */ jsx("p", { className: "font-semibold truncate", children: c.name ?? "Untitled collection" }),
|
|
41
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold truncate", children: c.name ?? t("Untitled collection") }),
|
|
40
42
|
slug ? /* @__PURE__ */ jsxs("p", { className: "text-xs text-emerald-600 dark:text-emerald-400 flex items-center gap-1 mt-0.5", children: [
|
|
41
43
|
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-3 w-3 shrink-0" }),
|
|
42
44
|
/* @__PURE__ */ jsxs("span", { className: "tabular-nums truncate", children: [
|
|
43
45
|
"medialane.io/collection/",
|
|
44
46
|
slug
|
|
45
47
|
] })
|
|
46
|
-
] }) : /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-0.5", children: "No custom name yet" })
|
|
48
|
+
] }) : /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-0.5", children: t("No custom name yet") })
|
|
47
49
|
] }),
|
|
48
50
|
/* @__PURE__ */ jsx(Button, { variant: slug ? "outline" : "default", size: "sm", asChild: true, className: "shrink-0", children: /* @__PURE__ */ jsxs(Link, { href: settingsHref, children: [
|
|
49
|
-
slug ? "Edit name" : "Set name",
|
|
51
|
+
slug ? t("Edit name") : t("Set name"),
|
|
50
52
|
/* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5 ml-1" })
|
|
51
53
|
] }) })
|
|
52
54
|
]
|
|
@@ -56,7 +58,7 @@ function CollectionNameClaim() {
|
|
|
56
58
|
}),
|
|
57
59
|
collections.length > 0 && /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", asChild: true, className: "text-muted-foreground", children: /* @__PURE__ */ jsxs(Link, { href: "/launchpad/single-editions/collection", children: [
|
|
58
60
|
/* @__PURE__ */ jsx(Plus, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
59
|
-
"Create another collection"
|
|
61
|
+
t("Create another collection")
|
|
60
62
|
] }) })
|
|
61
63
|
] });
|
|
62
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-name-claim.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport Image from \"./image.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useCollectionsByOwner } from \"../utils/use-collections.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nimport { Button } from \"./button.js\";\nimport { EmptyOrError } from \"./empty-or-error.js\";\nimport { CheckCircle2, ImageIcon, Plus, ArrowRight } from \"lucide-react\";\n\nexport function CollectionNameClaim() {\n const { walletAddress } = useMedialaneApp();\n const resolveImage = useImageUrl();\n const { collections, isLoading, error, mutate } = useCollectionsByOwner(walletAddress);\n\n return (\n <div className=\"space-y-3\">\n <EmptyOrError\n isLoading={isLoading}\n error={error}\n isEmpty={collections.length === 0}\n onRetry={mutate}\n emptyTitle
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-name-claim.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport Image from \"./image.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { useCollectionsByOwner } from \"../utils/use-collections.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nimport { Button } from \"./button.js\";\nimport { EmptyOrError } from \"./empty-or-error.js\";\nimport { CheckCircle2, ImageIcon, Plus, ArrowRight } from \"lucide-react\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport function CollectionNameClaim() {\n const t = useT();\n const { walletAddress } = useMedialaneApp();\n const resolveImage = useImageUrl();\n const { collections, isLoading, error, mutate } = useCollectionsByOwner(walletAddress);\n\n return (\n <div className=\"space-y-3\">\n <EmptyOrError\n isLoading={isLoading}\n error={error}\n isEmpty={collections.length === 0}\n onRetry={mutate}\n emptyTitle={t(\"No collections to name yet\")}\n emptyDescription={t(\"Create a collection first — then give it a clean, memorable URL.\")}\n emptyCta={{ label: t(\"Create a collection\"), href: \"/launchpad/single-editions/collection\" }}\n />\n\n {collections.map((c) => {\n const slug = c.profile?.slug;\n const img = resolveImage(c.image, { width: 96 });\n const settingsHref = `/portfolio/collections/${c.contractAddress}/settings`;\n return (\n <div\n key={c.id}\n className=\"flex items-center gap-4 rounded-2xl border border-border bg-card p-4\"\n >\n <div className=\"h-12 w-12 rounded-xl overflow-hidden bg-muted shrink-0 flex items-center justify-center\">\n {img ? (\n <Image src={img} alt={c.name ?? t(\"Collection\")} width={48} height={48} className=\"h-full w-full object-cover\" unoptimized />\n ) : (\n <ImageIcon className=\"h-5 w-5 text-muted-foreground\" />\n )}\n </div>\n\n <div className=\"min-w-0 flex-1\">\n <p className=\"font-semibold truncate\">{c.name ?? t(\"Untitled collection\")}</p>\n {slug ? (\n <p className=\"text-xs text-emerald-600 dark:text-emerald-400 flex items-center gap-1 mt-0.5\">\n <CheckCircle2 className=\"h-3 w-3 shrink-0\" />\n <span className=\"tabular-nums truncate\">medialane.io/collection/{slug}</span>\n </p>\n ) : (\n <p className=\"text-xs text-muted-foreground mt-0.5\">{t(\"No custom name yet\")}</p>\n )}\n </div>\n\n <Button variant={slug ? \"outline\" : \"default\"} size=\"sm\" asChild className=\"shrink-0\">\n <Link href={settingsHref}>\n {slug ? t(\"Edit name\") : t(\"Set name\")}\n <ArrowRight className=\"h-3.5 w-3.5 ml-1\" />\n </Link>\n </Button>\n </div>\n );\n })}\n\n {collections.length > 0 && (\n <Button variant=\"ghost\" size=\"sm\" asChild className=\"text-muted-foreground\">\n <Link href=\"/launchpad/single-editions/collection\">\n <Plus className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Create another collection\")}\n </Link>\n </Button>\n )}\n </div>\n );\n}\n"],"mappings":";AAqBM,cAgCY,YAhCZ;AAnBN,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAS,uBAAuB;AAChC,SAAS,6BAA6B;AACtC,SAAS,mBAAmB;AAE5B,SAAS,cAAc;AACvB,SAAS,oBAAoB;AAC7B,SAAS,cAAc,WAAW,MAAM,kBAAkB;AAC1D,SAAS,YAAY;AAEd,SAAS,sBAAsB;AACpC,QAAM,IAAI,KAAK;AACf,QAAM,EAAE,cAAc,IAAI,gBAAgB;AAC1C,QAAM,eAAe,YAAY;AACjC,QAAM,EAAE,aAAa,WAAW,OAAO,OAAO,IAAI,sBAAsB,aAAa;AAErF,SACE,qBAAC,SAAI,WAAU,aACb;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA,SAAS,YAAY,WAAW;AAAA,QAChC,SAAS;AAAA,QACT,YAAY,EAAE,4BAA4B;AAAA,QAC1C,kBAAkB,EAAE,uEAAkE;AAAA,QACtF,UAAU,EAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,wCAAwC;AAAA;AAAA,IAC7F;AAAA,IAEC,YAAY,IAAI,CAAC,MAAM;AACtB,YAAM,OAAO,EAAE,SAAS;AACxB,YAAM,MAAM,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,CAAC;AAC/C,YAAM,eAAe,0BAA0B,EAAE,eAAe;AAChE,aACE;AAAA,QAAC;AAAA;AAAA,UAEC,WAAU;AAAA,UAEV;AAAA,gCAAC,SAAI,WAAU,2FACZ,gBACC,oBAAC,SAAM,KAAK,KAAK,KAAK,EAAE,QAAQ,EAAE,YAAY,GAAG,OAAO,IAAI,QAAQ,IAAI,WAAU,8BAA6B,aAAW,MAAC,IAE3H,oBAAC,aAAU,WAAU,iCAAgC,GAEzD;AAAA,YAEA,qBAAC,SAAI,WAAU,kBACb;AAAA,kCAAC,OAAE,WAAU,0BAA0B,YAAE,QAAQ,EAAE,qBAAqB,GAAE;AAAA,cACzE,OACC,qBAAC,OAAE,WAAU,iFACX;AAAA,oCAAC,gBAAa,WAAU,oBAAmB;AAAA,gBAC3C,qBAAC,UAAK,WAAU,yBAAwB;AAAA;AAAA,kBAAyB;AAAA,mBAAK;AAAA,iBACxE,IAEA,oBAAC,OAAE,WAAU,wCAAwC,YAAE,oBAAoB,GAAE;AAAA,eAEjF;AAAA,YAEA,oBAAC,UAAO,SAAS,OAAO,YAAY,WAAW,MAAK,MAAK,SAAO,MAAC,WAAU,YACzE,+BAAC,QAAK,MAAM,cACT;AAAA,qBAAO,EAAE,WAAW,IAAI,EAAE,UAAU;AAAA,cACrC,oBAAC,cAAW,WAAU,oBAAmB;AAAA,eAC3C,GACF;AAAA;AAAA;AAAA,QA5BK,EAAE;AAAA,MA6BT;AAAA,IAEJ,CAAC;AAAA,IAEA,YAAY,SAAS,KACpB,oBAAC,UAAO,SAAQ,SAAQ,MAAK,MAAK,SAAO,MAAC,WAAU,yBAClD,+BAAC,QAAK,MAAK,yCACT;AAAA,0BAAC,QAAK,WAAU,sBAAqB;AAAA,MACpC,EAAE,2BAA2B;AAAA,OAChC,GACF;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -64,6 +64,8 @@ var import_use_usd_prices = require("../utils/use-usd-prices.js");
|
|
|
64
64
|
var import_format = require("../utils/format.js");
|
|
65
65
|
var import_same_address = require("../utils/same-address.js");
|
|
66
66
|
var import_living_render_collections = require("../data/living-render-collections.js");
|
|
67
|
+
var import_provider = require("../i18n/provider.js");
|
|
68
|
+
var import_use_format = require("../i18n/use-format.js");
|
|
67
69
|
const PAGE_SIZE = 24;
|
|
68
70
|
const GRID = "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3 sm:gap-4";
|
|
69
71
|
const MINT_HREFS = {
|
|
@@ -113,6 +115,7 @@ function useCollectionItems(contract) {
|
|
|
113
115
|
return { meta, isLoading, setPage, sort, handleSortChange, allTokens, selectedFilters, setSelectedFilters };
|
|
114
116
|
}
|
|
115
117
|
function CollectionItems({ items, activeListings, mintHref, soulbound }) {
|
|
118
|
+
const t = (0, import_provider.useT)();
|
|
116
119
|
const { meta, isLoading, setPage, sort, handleSortChange, allTokens, selectedFilters, setSelectedFilters } = items;
|
|
117
120
|
const usdPrices = (0, import_use_usd_prices.useUsdPrices)();
|
|
118
121
|
const listingByTokenId = (0, import_react.useMemo)(() => new Map(activeListings.filter((o) => o.nftTokenId).map((o) => [o.nftTokenId, o])), [activeListings]);
|
|
@@ -128,46 +131,49 @@ function CollectionItems({ items, activeListings, mintHref, soulbound }) {
|
|
|
128
131
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: GRID, children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_asset_card.AssetCardSkeleton, {}, i)) });
|
|
129
132
|
}
|
|
130
133
|
if (allTokens.length === 0) {
|
|
131
|
-
return mintHref ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: "Ready for your first work", body: "Mint into this collection and it appears here.", action: { href: mintHref, label: "Mint your first work" } }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: "No items yet", body: "Tokens in this collection will appear here once indexed." });
|
|
134
|
+
return mintHref ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: t("Ready for your first work"), body: t("Mint into this collection and it appears here."), action: { href: mintHref, label: t("Mint your first work") } }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: t("No items yet"), body: t("Tokens in this collection will appear here once indexed.") });
|
|
132
135
|
}
|
|
133
136
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3", children: [
|
|
134
137
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_collection_filters_dialog.CollectionActiveFilters, { tokens: allTokens, selected: selectedFilters, onChange: setSelectedFilters, sort, onSortChange: handleSortChange }),
|
|
135
|
-
visibleTokens.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: "No items match these filters", body: "Try removing some filters to see more results." }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: GRID, children: visibleTokens.map((
|
|
136
|
-
const listing =
|
|
138
|
+
visibleTokens.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: t("No items match these filters"), body: t("Try removing some filters to see more results.") }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: GRID, children: visibleTokens.map((t2) => {
|
|
139
|
+
const listing = t2.activeOrders?.find((o) => o.offer.itemType === "ERC721" || o.offer.itemType === "ERC1155") ?? listingByTokenId.get(t2.tokenId);
|
|
137
140
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
138
141
|
import_asset_card.AssetCard,
|
|
139
142
|
{
|
|
140
|
-
href: (0, import_sdk.assetHref)(
|
|
141
|
-
name:
|
|
142
|
-
image:
|
|
143
|
-
animationUrl:
|
|
144
|
-
live: (0, import_living_render_collections.isLivingRenderCollection)(
|
|
145
|
-
ipType:
|
|
143
|
+
href: (0, import_sdk.assetHref)(t2.chain, t2.contractAddress, t2.tokenId),
|
|
144
|
+
name: t2.metadata?.name || `Token #${t2.tokenId}`,
|
|
145
|
+
image: t2.metadata?.image,
|
|
146
|
+
animationUrl: t2.metadata?.animationUrl,
|
|
147
|
+
live: (0, import_living_render_collections.isLivingRenderCollection)(t2.chain, t2.contractAddress),
|
|
148
|
+
ipType: t2.metadata?.ipType,
|
|
146
149
|
price: listing ? { ...listing.price, usdValue: usdFor(listing, usdPrices) } : null,
|
|
147
|
-
fallbackId:
|
|
148
|
-
indexing:
|
|
150
|
+
fallbackId: t2.tokenId,
|
|
151
|
+
indexing: t2.metadataStatus === "PENDING" || t2.metadataStatus === "FETCHING",
|
|
149
152
|
soulbound,
|
|
150
|
-
archived:
|
|
153
|
+
archived: t2.isArchived
|
|
151
154
|
},
|
|
152
|
-
`${
|
|
155
|
+
`${t2.contractAddress}-${t2.tokenId}`
|
|
153
156
|
);
|
|
154
157
|
}) }),
|
|
155
158
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_load_more_sentinel.LoadMoreSentinel, { hasMore: meta ? allTokens.length < (meta.total ?? 0) : false, isLoading, onLoadMore: () => setPage((p) => p + 1) })
|
|
156
159
|
] });
|
|
157
160
|
}
|
|
158
161
|
function OwnerActions({ collection }) {
|
|
162
|
+
const t = (0, import_provider.useT)();
|
|
159
163
|
const service = (0, import_sdk.getService)(collection.service)?.id;
|
|
160
164
|
const contract = collection.contractAddress;
|
|
161
165
|
if (service === "ip-tickets") {
|
|
162
166
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: `/launchpad/tickets/${contract}/mint`, className: "flex w-fit items-center gap-1.5 h-8 px-3 rounded-lg text-xs font-semibold text-white bg-brand-blue hover:brightness-110 active:scale-[0.98] transition", children: [
|
|
163
167
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Ticket, { className: "h-3.5 w-3.5" }),
|
|
164
|
-
"Mint tickets"
|
|
168
|
+
t("Mint tickets")
|
|
165
169
|
] });
|
|
166
170
|
}
|
|
167
171
|
if (service === "ip-club") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_club_owner_actions.ClubOwnerActions, { contractAddress: contract, isOwner: true });
|
|
168
172
|
return null;
|
|
169
173
|
}
|
|
170
174
|
function CollectionPage({ contract, slots }) {
|
|
175
|
+
const intl = (0, import_use_format.useFormat)();
|
|
176
|
+
const t = (0, import_provider.useT)();
|
|
171
177
|
const { walletAddress } = (0, import_medialane_app.useMedialaneApp)();
|
|
172
178
|
const { collection, isLoading: collectionLoading } = (0, import_use_collections.useCollection)(contract);
|
|
173
179
|
const { profile } = (0, import_use_profiles.useCollectionProfile)(contract);
|
|
@@ -210,17 +216,17 @@ function CollectionPage({ contract, slots }) {
|
|
|
210
216
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sticky top-0 z-10 flex items-center gap-2 pt-3 pb-1", children: [
|
|
211
217
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.TabsList, { className: "min-w-0 flex-1 justify-start overflow-x-auto sm:flex-none", children: [
|
|
212
218
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.TabsTrigger, { value: "assets", className: "flex-1 sm:flex-none", children: [
|
|
213
|
-
"Assets",
|
|
214
|
-
collection?.totalSupply ? ` (${collection.totalSupply
|
|
219
|
+
t("Assets"),
|
|
220
|
+
collection?.totalSupply ? ` (${intl.number(collection.totalSupply)})` : ""
|
|
215
221
|
] }),
|
|
216
222
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.TabsTrigger, { value: "market", className: "flex-1 sm:flex-none", children: [
|
|
217
|
-
"Market",
|
|
223
|
+
t("Market"),
|
|
218
224
|
!ordersLoading && activeListings.length + activeBids.length > 0 && ` (${activeListings.length + activeBids.length})`
|
|
219
225
|
] }),
|
|
220
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tabs.TabsTrigger, { value: "provenance", className: "flex-1 sm:flex-none", children: "Provenance" }),
|
|
226
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tabs.TabsTrigger, { value: "provenance", className: "flex-1 sm:flex-none", children: t("Provenance") }),
|
|
221
227
|
profile?.hasGatedContent ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.TabsTrigger, { value: "exclusive", className: "flex-1 sm:flex-none gap-1.5", children: [
|
|
222
228
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Lock, { className: "h-3.5 w-3.5" }),
|
|
223
|
-
"Exclusive"
|
|
229
|
+
t("Exclusive")
|
|
224
230
|
] }) : null
|
|
225
231
|
] }),
|
|
226
232
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "ml-auto flex shrink-0 items-center gap-2", children: [
|
|
@@ -240,15 +246,15 @@ function CollectionPage({ contract, slots }) {
|
|
|
240
246
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tabs.TabsContent, { value: "market", className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.Tabs, { value: marketTab, onValueChange: (v) => setMarketTab(v), children: [
|
|
241
247
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.TabsList, { className: "h-9", children: [
|
|
242
248
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.TabsTrigger, { value: "listings", className: "text-xs px-3 py-1", children: [
|
|
243
|
-
"Listings",
|
|
249
|
+
t("Listings"),
|
|
244
250
|
!ordersLoading && activeListings.length > 0 && ` (${activeListings.length})`
|
|
245
251
|
] }),
|
|
246
252
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.TabsTrigger, { value: "offers", className: "text-xs px-3 py-1", children: [
|
|
247
|
-
"Offers",
|
|
253
|
+
t("Offers"),
|
|
248
254
|
!ordersLoading && activeBids.length > 0 && ` (${activeBids.length})`
|
|
249
255
|
] })
|
|
250
256
|
] }),
|
|
251
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tabs.TabsContent, { value: "listings", className: "mt-4", children: ordersLoading ? loadingGrid : activeListings.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: "No active listings", body: "When items in this collection are listed for sale, they'll appear here." }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3", children: [
|
|
257
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tabs.TabsContent, { value: "listings", className: "mt-4", children: ordersLoading ? loadingGrid : activeListings.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: t("No active listings"), body: t("When items in this collection are listed for sale, they'll appear here.") }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3", children: [
|
|
252
258
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_order_sort_control.OrderSortControl, { value: listingsSort, onChange: setListingsSort }) }),
|
|
253
259
|
listingGrid(activeListings, listingsSort, true)
|
|
254
260
|
] }) }),
|
|
@@ -257,7 +263,7 @@ function CollectionPage({ contract, slots }) {
|
|
|
257
263
|
!ordersLoading && activeBids.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_order_sort_control.OrderSortControl, { value: offersSort, onChange: setOffersSort }) : null,
|
|
258
264
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_make_offer_picker.MakeOfferPicker, { contract, onPick: market.offer })
|
|
259
265
|
] }),
|
|
260
|
-
ordersLoading ? loadingGrid : activeBids.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: "No active offers", body: "Make the first offer, or check back when collectors start bidding." }) : listingGrid(activeBids, offersSort, false)
|
|
266
|
+
ordersLoading ? loadingGrid : activeBids.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { title: t("No active offers"), body: t("Make the first offer, or check back when collectors start bidding.") }) : listingGrid(activeBids, offersSort, false)
|
|
261
267
|
] })
|
|
262
268
|
] }) }),
|
|
263
269
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tabs.TabsContent, { value: "provenance", className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_collection_provenance_tab.CollectionProvenanceTab, { contract }) }),
|