@medialane/ui 0.372.0 → 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/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 -15
- package/dist/components/archive-asset-dialog.cjs.map +1 -1
- package/dist/components/archive-asset-dialog.js +13 -15
- 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/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 -18
- package/dist/components/transfer-dialog.cjs.map +1 -1
- package/dist/components/transfer-dialog.js +16 -18
- 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,76 +1,77 @@
|
|
|
1
1
|
import { Layers, Ticket, Users } from "lucide-react";
|
|
2
|
+
import { msg } from "../../i18n/translate.js";
|
|
2
3
|
const FREE = "Free to publish \u2014 protocol fee is zero.";
|
|
3
4
|
const CLUB_PRESET = {
|
|
4
5
|
service: "ip-club",
|
|
5
6
|
icon: Users,
|
|
6
7
|
iconClass: "text-brand-purple",
|
|
7
8
|
buttonClass: "bg-brand-purple",
|
|
8
|
-
signedOut: { title: "Secure your account to create a club", description: "Create a club, then mint membership cards for your community." },
|
|
9
|
-
shell: { title: "Create Club", subtitle: "One club \u2014 create membership tiers and mint cards to your community." },
|
|
10
|
-
dialog: { title: "Create club", workingLabel: "Creating your club\u2026", firstStepLabel: "Prepare metadata" },
|
|
11
|
-
success: { title: "Club created", description: "Each membership you create is recorded onchain under your wallet.", fallbackName: "Your club", reward: "create_club", againLabel: "Create another" },
|
|
9
|
+
signedOut: { title: msg("Secure your account to create a club"), description: msg("Create a club, then mint membership cards for your community.") },
|
|
10
|
+
shell: { title: msg("Create Club"), subtitle: msg("One club \u2014 create membership tiers and mint cards to your community.") },
|
|
11
|
+
dialog: { title: msg("Create club"), workingLabel: msg("Creating your club\u2026"), firstStepLabel: msg("Prepare metadata") },
|
|
12
|
+
success: { title: msg("Club created"), description: msg("Each membership you create is recorded onchain under your wallet."), fallbackName: msg("Your club"), reward: msg("create_club"), againLabel: msg("Create another") },
|
|
12
13
|
cardFallbackSymbol: "Club",
|
|
13
14
|
copy: {
|
|
14
|
-
imageHeading: "Club image",
|
|
15
|
-
nameLabel: "Club name *",
|
|
16
|
-
namePlaceholder: "My Club",
|
|
17
|
-
nameHint: "Shown in wallets, explorers, and on every membership card.",
|
|
18
|
-
symbolPlaceholder: "CLUB",
|
|
19
|
-
symbolHint: "Short ticker \u2014 2 to 10 uppercase letters.",
|
|
20
|
-
descriptionPlaceholder: "Describe your club \u2014 what does membership unlock?",
|
|
21
|
-
submit: "Create Club",
|
|
15
|
+
imageHeading: msg("Club image"),
|
|
16
|
+
nameLabel: msg("Club name *"),
|
|
17
|
+
namePlaceholder: msg("My Club"),
|
|
18
|
+
nameHint: msg("Shown in wallets, explorers, and on every membership card."),
|
|
19
|
+
symbolPlaceholder: msg("CLUB"),
|
|
20
|
+
symbolHint: msg("Short ticker \u2014 2 to 10 uppercase letters."),
|
|
21
|
+
descriptionPlaceholder: msg("Describe your club \u2014 what does membership unlock?"),
|
|
22
|
+
submit: msg("Create Club"),
|
|
22
23
|
footnotes: [FREE]
|
|
23
24
|
},
|
|
24
25
|
suggestSymbol: false,
|
|
25
26
|
registerAfterDeploy: false,
|
|
26
|
-
actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: "Create memberships" } : void 0 })
|
|
27
|
+
actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg("Create memberships") } : void 0 })
|
|
27
28
|
};
|
|
28
29
|
const TICKETS_PRESET = {
|
|
29
30
|
service: "ip-tickets",
|
|
30
31
|
icon: Ticket,
|
|
31
32
|
iconClass: "text-teal-500",
|
|
32
33
|
buttonClass: "bg-teal-600",
|
|
33
|
-
signedOut: { title: "Secure your account to create tickets", description: "Create a tickets collection, then mint tickets to your audience." },
|
|
34
|
-
shell: { title: "Create Ticket Collection", subtitle: "One collection \u2014 create tickets and mint them to your audience." },
|
|
35
|
-
dialog: { title: "Create tickets collection", workingLabel: "Creating your collection\u2026", firstStepLabel: "Prepare metadata" },
|
|
36
|
-
success: { title: "Ticket collection created", description: "Each ticket you mint into it is recorded onchain under your wallet.", fallbackName: "Your collection", reward: "create_ticket_collection", againLabel: "Create another" },
|
|
34
|
+
signedOut: { title: msg("Secure your account to create tickets"), description: msg("Create a tickets collection, then mint tickets to your audience.") },
|
|
35
|
+
shell: { title: msg("Create Ticket Collection"), subtitle: msg("One collection \u2014 create tickets and mint them to your audience.") },
|
|
36
|
+
dialog: { title: msg("Create tickets collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Prepare metadata") },
|
|
37
|
+
success: { title: msg("Ticket collection created"), description: msg("Each ticket you mint into it is recorded onchain under your wallet."), fallbackName: msg("Your collection"), reward: msg("create_ticket_collection"), againLabel: msg("Create another") },
|
|
37
38
|
cardFallbackSymbol: "Tickets",
|
|
38
39
|
copy: {
|
|
39
|
-
imageHeading: "Collection image",
|
|
40
|
-
nameLabel: "Collection name *",
|
|
41
|
-
namePlaceholder: "My Tickets",
|
|
42
|
-
nameHint: "Shown in wallets, explorers, and on every ticket.",
|
|
43
|
-
symbolPlaceholder: "TIX",
|
|
44
|
-
symbolHint: "Short ticker \u2014 2 to 10 uppercase letters.",
|
|
45
|
-
descriptionPlaceholder: "Describe your tickets \u2014 what do they admit or unlock?",
|
|
46
|
-
submit: "Create Ticket Collection",
|
|
40
|
+
imageHeading: msg("Collection image"),
|
|
41
|
+
nameLabel: msg("Collection name *"),
|
|
42
|
+
namePlaceholder: msg("My Tickets"),
|
|
43
|
+
nameHint: msg("Shown in wallets, explorers, and on every ticket."),
|
|
44
|
+
symbolPlaceholder: msg("TIX"),
|
|
45
|
+
symbolHint: msg("Short ticker \u2014 2 to 10 uppercase letters."),
|
|
46
|
+
descriptionPlaceholder: msg("Describe your tickets \u2014 what do they admit or unlock?"),
|
|
47
|
+
submit: msg("Create Ticket Collection"),
|
|
47
48
|
footnotes: [FREE]
|
|
48
49
|
},
|
|
49
50
|
suggestSymbol: false,
|
|
50
51
|
registerAfterDeploy: false,
|
|
51
|
-
actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: "Create tickets" } : void 0 })
|
|
52
|
+
actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg("Create tickets") } : void 0 })
|
|
52
53
|
};
|
|
53
54
|
const EDITIONS_PRESET = {
|
|
54
55
|
service: "mip-erc1155",
|
|
55
56
|
icon: Layers,
|
|
56
57
|
iconClass: "text-brand-purple",
|
|
57
58
|
buttonClass: "bg-brand-purple",
|
|
58
|
-
signedOut: { title: "Secure your account to create a collection", description: "Create a collection where each piece can have multiple editions." },
|
|
59
|
-
shell: { title: "Create an Edition Collection", subtitle: "Create a collection where each piece can have multiple editions \u2014 free to publish, and it's yours." },
|
|
60
|
-
dialog: { title: "Create collection", workingLabel: "Creating your collection\u2026", firstStepLabel: "Prepare metadata" },
|
|
61
|
-
success: { title: "Collection created", description: "Each asset you mint into it carries its own license terms.", fallbackName: "Your collection", reward: "create_collection", againLabel: "Create another" },
|
|
59
|
+
signedOut: { title: msg("Secure your account to create a collection"), description: msg("Create a collection where each piece can have multiple editions.") },
|
|
60
|
+
shell: { title: msg("Create an Edition Collection"), subtitle: msg("Create a collection where each piece can have multiple editions \u2014 free to publish, and it's yours.") },
|
|
61
|
+
dialog: { title: msg("Create collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Prepare metadata") },
|
|
62
|
+
success: { title: msg("Collection created"), description: msg("Each asset you mint into it carries its own license terms."), fallbackName: msg("Your collection"), reward: msg("create_collection"), againLabel: msg("Create another") },
|
|
62
63
|
cardFallbackSymbol: "Editions",
|
|
63
64
|
copy: {
|
|
64
|
-
imageHeading: "Collection image",
|
|
65
|
-
imageHelp: "This becomes the cover for your collection.",
|
|
66
|
-
nameLabel: "Collection name *",
|
|
67
|
-
namePlaceholder: "My Creative Works",
|
|
68
|
-
nameHint: "The main title collectors see across the collection page, wallets, and future listings.",
|
|
69
|
-
symbolPlaceholder: "MCW",
|
|
70
|
-
symbolHint: "Short ticker (2\u201310 uppercase letters). We suggest one from the collection name.",
|
|
71
|
-
descriptionPlaceholder: "Describe your collection and what kind of work it contains\u2026",
|
|
72
|
-
descriptionHint: "Use this to explain the creative direction, media type, or audience for the collection.",
|
|
73
|
-
submit: "Publish Collection",
|
|
65
|
+
imageHeading: msg("Collection image"),
|
|
66
|
+
imageHelp: msg("This becomes the cover for your collection."),
|
|
67
|
+
nameLabel: msg("Collection name *"),
|
|
68
|
+
namePlaceholder: msg("My Creative Works"),
|
|
69
|
+
nameHint: msg("The main title collectors see across the collection page, wallets, and future listings."),
|
|
70
|
+
symbolPlaceholder: msg("MCW"),
|
|
71
|
+
symbolHint: msg("Short ticker (2\u201310 uppercase letters). We suggest one from the collection name."),
|
|
72
|
+
descriptionPlaceholder: msg("Describe your collection and what kind of work it contains\u2026"),
|
|
73
|
+
descriptionHint: msg("Use this to explain the creative direction, media type, or audience for the collection."),
|
|
74
|
+
submit: msg("Publish Collection"),
|
|
74
75
|
footnotes: [
|
|
75
76
|
FREE,
|
|
76
77
|
"Next step: mint pieces into this collection \u2014 you set the number of copies for each piece when you mint it, and can add more copies later."
|
|
@@ -79,8 +80,8 @@ const EDITIONS_PRESET = {
|
|
|
79
80
|
suggestSymbol: true,
|
|
80
81
|
registerAfterDeploy: true,
|
|
81
82
|
actions: ({ address, collectionHref }) => ({
|
|
82
|
-
primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: "Mint tokens" } : void 0,
|
|
83
|
-
secondary: collectionHref ? { href: collectionHref, label: "View collection" } : void 0
|
|
83
|
+
primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg("Mint tokens") } : void 0,
|
|
84
|
+
secondary: collectionHref ? { href: collectionHref, label: msg("View collection") } : void 0
|
|
84
85
|
})
|
|
85
86
|
};
|
|
86
87
|
const SINGLE_PRESET = {
|
|
@@ -88,27 +89,27 @@ const SINGLE_PRESET = {
|
|
|
88
89
|
icon: Layers,
|
|
89
90
|
iconClass: "text-brand-blue",
|
|
90
91
|
buttonClass: "bg-brand-blue",
|
|
91
|
-
signedOut: { title: "Secure your account to create a collection", description: "Set up a collection to mint your work into." },
|
|
92
|
-
shell: { title: "Create a Collection", subtitle: "Set up a collection to mint your work into \u2014 free to publish, and it's yours." },
|
|
93
|
-
dialog: { title: "Create collection", workingLabel: "Creating your collection\u2026", firstStepLabel: "Prepare metadata" },
|
|
94
|
-
success: { title: "Collection created", description: "Each asset you mint into it carries its own license terms.", fallbackName: "Your collection", reward: "create_collection", againLabel: "Create another" },
|
|
92
|
+
signedOut: { title: msg("Secure your account to create a collection"), description: msg("Set up a collection to mint your work into.") },
|
|
93
|
+
shell: { title: msg("Create a Collection"), subtitle: msg("Set up a collection to mint your work into \u2014 free to publish, and it's yours.") },
|
|
94
|
+
dialog: { title: msg("Create collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Prepare metadata") },
|
|
95
|
+
success: { title: msg("Collection created"), description: msg("Each asset you mint into it carries its own license terms."), fallbackName: msg("Your collection"), reward: msg("create_collection"), againLabel: msg("Create another") },
|
|
95
96
|
cardFallbackSymbol: "Collection",
|
|
96
97
|
copy: {
|
|
97
|
-
imageHeading: "Collection image",
|
|
98
|
-
nameLabel: "Collection name *",
|
|
99
|
-
namePlaceholder: "My Creative Works",
|
|
100
|
-
nameHint: "The display name for your collection.",
|
|
101
|
-
symbolPlaceholder: "MCW",
|
|
102
|
-
symbolHint: "Short ticker (2\u201310 uppercase letters). Shown in wallets and marketplaces.",
|
|
103
|
-
descriptionPlaceholder: "Describe your collection and what kind of work it contains\u2026",
|
|
104
|
-
submit: "Create collection",
|
|
98
|
+
imageHeading: msg("Collection image"),
|
|
99
|
+
nameLabel: msg("Collection name *"),
|
|
100
|
+
namePlaceholder: msg("My Creative Works"),
|
|
101
|
+
nameHint: msg("The display name for your collection."),
|
|
102
|
+
symbolPlaceholder: msg("MCW"),
|
|
103
|
+
symbolHint: msg("Short ticker (2\u201310 uppercase letters). Shown in wallets and marketplaces."),
|
|
104
|
+
descriptionPlaceholder: msg("Describe your collection and what kind of work it contains\u2026"),
|
|
105
|
+
submit: msg("Create collection"),
|
|
105
106
|
footnotes: [FREE]
|
|
106
107
|
},
|
|
107
108
|
suggestSymbol: false,
|
|
108
109
|
registerAfterDeploy: false,
|
|
109
110
|
actions: ({ collectionHref }) => {
|
|
110
|
-
const mint = { href: "/launchpad/single-editions", label: "Mint an asset" };
|
|
111
|
-
return collectionHref ? { primary: { href: collectionHref, label: "View collection" }, secondary: mint } : { primary: mint };
|
|
111
|
+
const mint = { href: "/launchpad/single-editions", label: msg("Mint an asset") };
|
|
112
|
+
return collectionHref ? { primary: { href: collectionHref, label: msg("View collection") }, secondary: mint } : { primary: mint };
|
|
112
113
|
}
|
|
113
114
|
};
|
|
114
115
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n buttonClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish — protocol fee is zero.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n buttonClass: \"bg-brand-purple\",\n signedOut: { title: \"Secure your account to create a club\", description: \"Create a club, then mint membership cards for your community.\" },\n shell: { title: \"Create Club\", subtitle: \"One club — create membership tiers and mint cards to your community.\" },\n dialog: { title: \"Create club\", workingLabel: \"Creating your club…\", firstStepLabel: \"Prepare metadata\" },\n success: { title: \"Club created\", description: \"Each membership you create is recorded onchain under your wallet.\", fallbackName: \"Your club\", reward: \"create_club\", againLabel: \"Create another\" },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: \"Club image\",\n nameLabel: \"Club name *\",\n namePlaceholder: \"My Club\",\n nameHint: \"Shown in wallets, explorers, and on every membership card.\",\n symbolPlaceholder: \"CLUB\",\n symbolHint: \"Short ticker — 2 to 10 uppercase letters.\",\n descriptionPlaceholder: \"Describe your club — what does membership unlock?\",\n submit: \"Create Club\",\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: \"Create memberships\" } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-teal-500\",\n buttonClass: \"bg-teal-600\",\n signedOut: { title: \"Secure your account to create tickets\", description: \"Create a tickets collection, then mint tickets to your audience.\" },\n shell: { title: \"Create Ticket Collection\", subtitle: \"One collection — create tickets and mint them to your audience.\" },\n dialog: { title: \"Create tickets collection\", workingLabel: \"Creating your collection…\", firstStepLabel: \"Prepare metadata\" },\n success: { title: \"Ticket collection created\", description: \"Each ticket you mint into it is recorded onchain under your wallet.\", fallbackName: \"Your collection\", reward: \"create_ticket_collection\", againLabel: \"Create another\" },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: \"Collection image\",\n nameLabel: \"Collection name *\",\n namePlaceholder: \"My Tickets\",\n nameHint: \"Shown in wallets, explorers, and on every ticket.\",\n symbolPlaceholder: \"TIX\",\n symbolHint: \"Short ticker — 2 to 10 uppercase letters.\",\n descriptionPlaceholder: \"Describe your tickets — what do they admit or unlock?\",\n submit: \"Create Ticket Collection\",\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: \"Create tickets\" } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n buttonClass: \"bg-brand-purple\",\n signedOut: { title: \"Secure your account to create a collection\", description: \"Create a collection where each piece can have multiple editions.\" },\n shell: { title: \"Create an Edition Collection\", subtitle: \"Create a collection where each piece can have multiple editions — free to publish, and it's yours.\" },\n dialog: { title: \"Create collection\", workingLabel: \"Creating your collection…\", firstStepLabel: \"Prepare metadata\" },\n success: { title: \"Collection created\", description: \"Each asset you mint into it carries its own license terms.\", fallbackName: \"Your collection\", reward: \"create_collection\", againLabel: \"Create another\" },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: \"Collection image\",\n imageHelp: \"This becomes the cover for your collection.\",\n nameLabel: \"Collection name *\",\n namePlaceholder: \"My Creative Works\",\n nameHint: \"The main title collectors see across the collection page, wallets, and future listings.\",\n symbolPlaceholder: \"MCW\",\n symbolHint: \"Short ticker (2–10 uppercase letters). We suggest one from the collection name.\",\n descriptionPlaceholder: \"Describe your collection and what kind of work it contains…\",\n descriptionHint: \"Use this to explain the creative direction, media type, or audience for the collection.\",\n submit: \"Publish Collection\",\n footnotes: [\n FREE,\n \"Next step: mint pieces into this collection — you set the number of copies for each piece when you mint it, and can add more copies later.\",\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: \"Mint tokens\" } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: \"View collection\" } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n buttonClass: \"bg-brand-blue\",\n signedOut: { title: \"Secure your account to create a collection\", description: \"Set up a collection to mint your work into.\" },\n shell: { title: \"Create a Collection\", subtitle: \"Set up a collection to mint your work into — free to publish, and it's yours.\" },\n dialog: { title: \"Create collection\", workingLabel: \"Creating your collection…\", firstStepLabel: \"Prepare metadata\" },\n success: { title: \"Collection created\", description: \"Each asset you mint into it carries its own license terms.\", fallbackName: \"Your collection\", reward: \"create_collection\", againLabel: \"Create another\" },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: \"Collection image\",\n nameLabel: \"Collection name *\",\n namePlaceholder: \"My Creative Works\",\n nameHint: \"The display name for your collection.\",\n symbolPlaceholder: \"MCW\",\n symbolHint: \"Short ticker (2–10 uppercase letters). Shown in wallets and marketplaces.\",\n descriptionPlaceholder: \"Describe your collection and what kind of work it contains…\",\n submit: \"Create collection\",\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: \"Mint an asset\" };\n return collectionHref ? { primary: { href: collectionHref, label: \"View collection\" }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":"AAAA,SAAS,QAAQ,QAAQ,aAAa;AAuCtC,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,WAAW,EAAE,OAAO,wCAAwC,aAAa,gEAAgE;AAAA,EACzI,OAAO,EAAE,OAAO,eAAe,UAAU,4EAAuE;AAAA,EAChH,QAAQ,EAAE,OAAO,eAAe,cAAc,4BAAuB,gBAAgB,mBAAmB;AAAA,EACxG,SAAS,EAAE,OAAO,gBAAgB,aAAa,qEAAqE,cAAc,aAAa,QAAQ,eAAe,YAAY,iBAAiB;AAAA,EACnM,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,iBAAiB;A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A,IACxB,QAAQ;AAAA,IACR,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,MAAM;AAC/B,UAAM,OAAO,EAAE,MAAM,8BAA8B,OAAO,gBAAgB;AAC1E,WAAO,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,OAAO,kBAAkB,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAC7H;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n buttonClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish — protocol fee is zero.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n buttonClass: \"bg-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club, then mint membership cards for your community.\") },\n shell: { title: msg(\"Create Club\"), subtitle: msg(\"One club — create membership tiers and mint cards to your community.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is recorded onchain under your wallet.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: msg(\"Club image\"),\n nameLabel: msg(\"Club name *\"),\n namePlaceholder: msg(\"My Club\"),\n nameHint: msg(\"Shown in wallets, explorers, and on every membership card.\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"Short ticker — 2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your club — what does membership unlock?\"),\n submit: msg(\"Create Club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-teal-500\",\n buttonClass: \"bg-teal-600\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection, then mint tickets to your audience.\") },\n shell: { title: msg(\"Create Ticket Collection\"), subtitle: msg(\"One collection — create tickets and mint them to your audience.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you mint into it is recorded onchain under your wallet.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Tickets\"),\n nameHint: msg(\"Shown in wallets, explorers, and on every ticket.\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"Short ticker — 2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your tickets — what do they admit or unlock?\"),\n submit: msg(\"Create Ticket Collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n buttonClass: \"bg-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an Edition Collection\"), subtitle: msg(\"Create a collection where each piece can have multiple editions — free to publish, and it's yours.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n imageHelp: msg(\"This becomes the cover for your collection.\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The main title collectors see across the collection page, wallets, and future listings.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"Short ticker (2–10 uppercase letters). We suggest one from the collection name.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n descriptionHint: msg(\"Use this to explain the creative direction, media type, or audience for the collection.\"),\n submit: msg(\"Publish Collection\"),\n footnotes: [\n FREE,\n \"Next step: mint pieces into this collection — you set the number of copies for each piece when you mint it, and can add more copies later.\",\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Mint tokens\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n buttonClass: \"bg-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection to mint your work into.\") },\n shell: { title: msg(\"Create a Collection\"), subtitle: msg(\"Set up a collection to mint your work into — free to publish, and it's yours.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The display name for your collection.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"Short ticker (2–10 uppercase letters). Shown in wallets and marketplaces.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Mint an asset\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":"AAAA,SAAS,QAAQ,QAAQ,aAAa;AAEtC,SAAS,WAAW;AAsCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,WAAW,EAAE,O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kBAAkB;AAAA,IACpC,WAAW,IAAI,mBAAmB;AAAA,IAClC,iBAAiB,IAAI,mBAAmB;AAAA,IACxC,UAAU,IAAI,uCAAuC;AAAA,IACrD,mBAAmB,IAAI,KAAK;AAAA,IAC5B,YAAY,IAAI,gFAA2E;AAAA,IAC3F,wBAAwB,IAAI,kEAA6D;AAAA,IACzF,QAAQ,IAAI,mBAAmB;AAAA,IAC/B,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,MAAM;AAC/B,UAAM,OAAO,EAAE,MAAM,8BAA8B,OAAO,IAAI,eAAe,EAAE;AAC/E,WAAO,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,OAAO,IAAI,iBAAiB,EAAE,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAClI;AACF;","names":[]}
|
|
@@ -42,23 +42,27 @@ var import_skeleton = require("../skeleton.js");
|
|
|
42
42
|
var import_popover = require("../popover.js");
|
|
43
43
|
var import_cn = require("../../utils/cn.js");
|
|
44
44
|
var import_use_image_url = require("../../utils/use-image-url.js");
|
|
45
|
+
var import_provider = require("../../i18n/provider.js");
|
|
46
|
+
var import_use_format = require("../../i18n/use-format.js");
|
|
45
47
|
function label(col) {
|
|
46
48
|
return col.name || col.symbol || `Collection #${col.collectionId}`;
|
|
47
49
|
}
|
|
48
|
-
function works(col) {
|
|
49
|
-
return col.totalSupply != null ?
|
|
50
|
+
function works(col, t, intl) {
|
|
51
|
+
return col.totalSupply != null ? t.plural("{count} work", "{count} works", col.totalSupply, { count: intl.number(col.totalSupply) }) : t("Empty");
|
|
50
52
|
}
|
|
51
53
|
function Thumb({ image, size }) {
|
|
52
54
|
const url = (0, import_use_image_url.useImageUrl)()(image);
|
|
53
55
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("relative rounded-lg overflow-hidden bg-muted shrink-0", size === "md" ? "h-10 w-10" : "h-8 w-8"), children: url ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: url, alt: "", fill: true, unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Boxes, { className: "h-4 w-4 text-muted-foreground/40" }) }) });
|
|
54
56
|
}
|
|
55
57
|
function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }) {
|
|
58
|
+
const t = (0, import_provider.useT)();
|
|
59
|
+
const intl = (0, import_use_format.useFormat)();
|
|
56
60
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
57
61
|
const [query, setQuery] = (0, import_react.useState)("");
|
|
58
62
|
if (loading) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-[4.25rem] rounded-xl" });
|
|
59
63
|
if (collections.length === 0) {
|
|
60
64
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-xl border border-dashed border-border p-5 text-center space-y-3", children: [
|
|
61
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: "No collection found. It may take a minute to display recently created collections." }),
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t("No collection found. It may take a minute to display recently created collections.") }),
|
|
62
66
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
63
67
|
import_link.default,
|
|
64
68
|
{
|
|
@@ -66,7 +70,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
|
|
|
66
70
|
className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-xl text-sm font-semibold text-white bg-brand-blue hover:brightness-110 transition-all",
|
|
67
71
|
children: [
|
|
68
72
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-3.5 w-3.5" }),
|
|
69
|
-
"Create your first collection"
|
|
73
|
+
t("Create your first collection")
|
|
70
74
|
]
|
|
71
75
|
}
|
|
72
76
|
)
|
|
@@ -92,19 +96,19 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
|
|
|
92
96
|
children: [
|
|
93
97
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Thumb, { image: selected?.image, size: "md" }),
|
|
94
98
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
95
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm font-semibold truncate", children: selected ? label(selected) : "Choose a collection" }),
|
|
96
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: selected ? works(selected) : "Where this work will live" })
|
|
99
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm font-semibold truncate", children: selected ? label(selected) : t("Choose a collection") }),
|
|
100
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: selected ? works(selected, t, intl) : t("Where this work will live") })
|
|
97
101
|
] }),
|
|
98
102
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "flex items-center gap-1 text-xs font-medium text-muted-foreground shrink-0", children: [
|
|
99
|
-
"Change",
|
|
103
|
+
t("Change"),
|
|
100
104
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDown, { className: "h-3.5 w-3.5" })
|
|
101
105
|
] })
|
|
102
106
|
]
|
|
103
107
|
}
|
|
104
108
|
) }),
|
|
105
109
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_popover.PopoverContent, { className: "w-[var(--radix-popover-trigger-width)] p-0", align: "start", children: [
|
|
106
|
-
collections.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "border-b border-border p-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { value: query, onChange: (e) => setQuery(e.target.value), placeholder: "Search collections\u2026", className: "h-8" }) }),
|
|
107
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "max-h-64 overflow-y-auto p-1", children: filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "px-3 py-4 text-center text-sm text-muted-foreground", children: "No collection found." }) : filtered.map((col) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
110
|
+
collections.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "border-b border-border p-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { value: query, onChange: (e) => setQuery(e.target.value), placeholder: t("Search collections\u2026"), className: "h-8" }) }),
|
|
111
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "max-h-64 overflow-y-auto p-1", children: filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "px-3 py-4 text-center text-sm text-muted-foreground", children: t("No collection found.") }) : filtered.map((col) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
108
112
|
"button",
|
|
109
113
|
{
|
|
110
114
|
type: "button",
|
|
@@ -117,7 +121,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
|
|
|
117
121
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Thumb, { image: col.image, size: "sm" }),
|
|
118
122
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
119
123
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm font-medium truncate", children: label(col) }),
|
|
120
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: works(col) })
|
|
124
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: works(col, t, intl) })
|
|
121
125
|
] }),
|
|
122
126
|
value === col.collectionId && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Check, { className: "h-4 w-4 text-brand-blue shrink-0" })
|
|
123
127
|
]
|
|
@@ -131,7 +135,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
|
|
|
131
135
|
className: "flex items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors",
|
|
132
136
|
children: [
|
|
133
137
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-4 w-4" }),
|
|
134
|
-
"New collection"
|
|
138
|
+
t("New collection")
|
|
135
139
|
]
|
|
136
140
|
}
|
|
137
141
|
) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/collection-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { Input } from \"../input.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\n\nexport interface CollectionPickerProps {\n collections: ApiCollection[];\n loading: boolean;\n value: string;\n onChange: (id: string) => void;\n newCollectionHref: string;\n}\n\nfunction label(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction works(col: ApiCollection) {\n return col.totalSupply != null ?
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/collection-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { Input } from \"../input.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { useT } from \"../../i18n/provider.js\";\nimport type { T } from \"../../i18n/make-t.js\";\nimport { useFormat, type Format } from \"../../i18n/use-format.js\";\n\nexport interface CollectionPickerProps {\n collections: ApiCollection[];\n loading: boolean;\n value: string;\n onChange: (id: string) => void;\n newCollectionHref: string;\n}\n\nfunction label(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction works(col: ApiCollection, t: T, intl: Format) {\n return col.totalSupply != null ? t.plural(\"{count} work\", \"{count} works\", col.totalSupply, { count: intl.number(col.totalSupply) }) : t(\"Empty\");\n}\n\nfunction Thumb({ image, size }: { image: string | null | undefined; size: \"sm\" | \"md\" }) {\n const url = useImageUrl()(image);\n return (\n <div className={cn(\"relative rounded-lg overflow-hidden bg-muted shrink-0\", size === \"md\" ? \"h-10 w-10\" : \"h-8 w-8\")}>\n {url ? (\n <Image src={url} alt=\"\" fill unoptimized className=\"object-cover\" />\n ) : (\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <Boxes className=\"h-4 w-4 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n );\n}\n\nexport function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }: CollectionPickerProps) {\n const t = useT();\n const intl = useFormat();\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState(\"\");\n\n if (loading) return <Skeleton className=\"h-[4.25rem] rounded-xl\" />;\n\n if (collections.length === 0) {\n return (\n <div className=\"rounded-xl border border-dashed border-border p-5 text-center space-y-3\">\n <p className=\"text-sm text-muted-foreground\">{t(\"No collection found. It may take a minute to display recently created collections.\")}</p>\n <Link\n href={newCollectionHref}\n className=\"inline-flex items-center gap-1.5 h-9 px-4 rounded-xl text-sm font-semibold text-white bg-brand-blue hover:brightness-110 transition-all\"\n >\n <Plus className=\"h-3.5 w-3.5\" />\n {t(\"Create your first collection\")}\n </Link>\n </div>\n );\n }\n\n const selected = collections.find((c) => c.collectionId === value) ?? null;\n const filtered = query.trim() ? collections.filter((c) => label(c).toLowerCase().includes(query.trim().toLowerCase())) : collections;\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n setOpen(next);\n if (!next) setQuery(\"\");\n }}\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n aria-expanded={open}\n className=\"flex w-full items-center gap-3 rounded-xl border border-border p-3 text-left transition-colors hover:bg-muted/40\"\n >\n <Thumb image={selected?.image} size=\"md\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold truncate\">{selected ? label(selected) : t(\"Choose a collection\")}</p>\n <p className=\"text-xs text-muted-foreground\">{selected ? works(selected, t, intl) : t(\"Where this work will live\")}</p>\n </div>\n <span className=\"flex items-center gap-1 text-xs font-medium text-muted-foreground shrink-0\">\n {t(\"Change\")}\n <ChevronDown className=\"h-3.5 w-3.5\" />\n </span>\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-[var(--radix-popover-trigger-width)] p-0\" align=\"start\">\n {collections.length > 5 && (\n <div className=\"border-b border-border p-2\">\n <Input value={query} onChange={(e) => setQuery(e.target.value)} placeholder={t(\"Search collections…\")} className=\"h-8\" />\n </div>\n )}\n <div className=\"max-h-64 overflow-y-auto p-1\">\n {filtered.length === 0 ? (\n <p className=\"px-3 py-4 text-center text-sm text-muted-foreground\">{t(\"No collection found.\")}</p>\n ) : (\n filtered.map((col) => (\n <button\n key={col.collectionId!}\n type=\"button\"\n onClick={() => {\n onChange(col.collectionId!);\n setOpen(false);\n }}\n className=\"flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-muted/60\"\n >\n <Thumb image={col.image} size=\"sm\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium truncate\">{label(col)}</p>\n <p className=\"text-xs text-muted-foreground\">{works(col, t, intl)}</p>\n </div>\n {value === col.collectionId && <Check className=\"h-4 w-4 text-brand-blue shrink-0\" />}\n </button>\n ))\n )}\n </div>\n <div className=\"border-t border-border p-1\">\n <Link\n href={newCollectionHref}\n className=\"flex items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors\"\n >\n <Plus className=\"h-4 w-4\" />\n {t(\"New collection\")}\n </Link>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAqCQ;AAnCR,mBAAyB;AACzB,0BAAgD;AAEhD,mBAAkB;AAClB,kBAAiB;AACjB,mBAAsB;AACtB,sBAAyB;AACzB,qBAAwD;AACxD,gBAAmB;AACnB,2BAA4B;AAC5B,sBAAqB;AAErB,wBAAuC;AAUvC,SAAS,MAAM,KAAoB;AACjC,SAAO,IAAI,QAAQ,IAAI,UAAU,eAAe,IAAI,YAAY;AAClE;AAEA,SAAS,MAAM,KAAoB,GAAM,MAAc;AACrD,SAAO,IAAI,eAAe,OAAO,EAAE,OAAO,gBAAgB,iBAAiB,IAAI,aAAa,EAAE,OAAO,KAAK,OAAO,IAAI,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO;AAClJ;AAEA,SAAS,MAAM,EAAE,OAAO,KAAK,GAA4D;AACvF,QAAM,UAAM,kCAAY,EAAE,KAAK;AAC/B,SACE,4CAAC,SAAI,eAAW,cAAG,yDAAyD,SAAS,OAAO,cAAc,SAAS,GAChH,gBACC,4CAAC,aAAAA,SAAA,EAAM,KAAK,KAAK,KAAI,IAAG,MAAI,MAAC,aAAW,MAAC,WAAU,gBAAe,IAElE,4CAAC,SAAI,WAAU,qDACb,sDAAC,6BAAM,WAAU,oCAAmC,GACtD,GAEJ;AAEJ;AAEO,SAAS,iBAAiB,EAAE,aAAa,SAAS,OAAO,UAAU,kBAAkB,GAA0B;AACpH,QAAM,QAAI,s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A,EACF;AAEJ;","names":["Image","Link"]}
|
|
@@ -9,23 +9,27 @@ import { Skeleton } from "../skeleton.js";
|
|
|
9
9
|
import { Popover, PopoverContent, PopoverTrigger } from "../popover.js";
|
|
10
10
|
import { cn } from "../../utils/cn.js";
|
|
11
11
|
import { useImageUrl } from "../../utils/use-image-url.js";
|
|
12
|
+
import { useT } from "../../i18n/provider.js";
|
|
13
|
+
import { useFormat } from "../../i18n/use-format.js";
|
|
12
14
|
function label(col) {
|
|
13
15
|
return col.name || col.symbol || `Collection #${col.collectionId}`;
|
|
14
16
|
}
|
|
15
|
-
function works(col) {
|
|
16
|
-
return col.totalSupply != null ?
|
|
17
|
+
function works(col, t, intl) {
|
|
18
|
+
return col.totalSupply != null ? t.plural("{count} work", "{count} works", col.totalSupply, { count: intl.number(col.totalSupply) }) : t("Empty");
|
|
17
19
|
}
|
|
18
20
|
function Thumb({ image, size }) {
|
|
19
21
|
const url = useImageUrl()(image);
|
|
20
22
|
return /* @__PURE__ */ jsx("div", { className: cn("relative rounded-lg overflow-hidden bg-muted shrink-0", size === "md" ? "h-10 w-10" : "h-8 w-8"), children: url ? /* @__PURE__ */ jsx(Image, { src: url, alt: "", fill: true, unoptimized: true, className: "object-cover" }) : /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(Boxes, { className: "h-4 w-4 text-muted-foreground/40" }) }) });
|
|
21
23
|
}
|
|
22
24
|
function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }) {
|
|
25
|
+
const t = useT();
|
|
26
|
+
const intl = useFormat();
|
|
23
27
|
const [open, setOpen] = useState(false);
|
|
24
28
|
const [query, setQuery] = useState("");
|
|
25
29
|
if (loading) return /* @__PURE__ */ jsx(Skeleton, { className: "h-[4.25rem] rounded-xl" });
|
|
26
30
|
if (collections.length === 0) {
|
|
27
31
|
return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-dashed border-border p-5 text-center space-y-3", children: [
|
|
28
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No collection found. It may take a minute to display recently created collections." }),
|
|
32
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("No collection found. It may take a minute to display recently created collections.") }),
|
|
29
33
|
/* @__PURE__ */ jsxs(
|
|
30
34
|
Link,
|
|
31
35
|
{
|
|
@@ -33,7 +37,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
|
|
|
33
37
|
className: "inline-flex items-center gap-1.5 h-9 px-4 rounded-xl text-sm font-semibold text-white bg-brand-blue hover:brightness-110 transition-all",
|
|
34
38
|
children: [
|
|
35
39
|
/* @__PURE__ */ jsx(Plus, { className: "h-3.5 w-3.5" }),
|
|
36
|
-
"Create your first collection"
|
|
40
|
+
t("Create your first collection")
|
|
37
41
|
]
|
|
38
42
|
}
|
|
39
43
|
)
|
|
@@ -59,19 +63,19 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
|
|
|
59
63
|
children: [
|
|
60
64
|
/* @__PURE__ */ jsx(Thumb, { image: selected?.image, size: "md" }),
|
|
61
65
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
62
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold truncate", children: selected ? label(selected) : "Choose a collection" }),
|
|
63
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: selected ? works(selected) : "Where this work will live" })
|
|
66
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold truncate", children: selected ? label(selected) : t("Choose a collection") }),
|
|
67
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: selected ? works(selected, t, intl) : t("Where this work will live") })
|
|
64
68
|
] }),
|
|
65
69
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-xs font-medium text-muted-foreground shrink-0", children: [
|
|
66
|
-
"Change",
|
|
70
|
+
t("Change"),
|
|
67
71
|
/* @__PURE__ */ jsx(ChevronDown, { className: "h-3.5 w-3.5" })
|
|
68
72
|
] })
|
|
69
73
|
]
|
|
70
74
|
}
|
|
71
75
|
) }),
|
|
72
76
|
/* @__PURE__ */ jsxs(PopoverContent, { className: "w-[var(--radix-popover-trigger-width)] p-0", align: "start", children: [
|
|
73
|
-
collections.length > 5 && /* @__PURE__ */ jsx("div", { className: "border-b border-border p-2", children: /* @__PURE__ */ jsx(Input, { value: query, onChange: (e) => setQuery(e.target.value), placeholder: "Search collections\u2026", className: "h-8" }) }),
|
|
74
|
-
/* @__PURE__ */ jsx("div", { className: "max-h-64 overflow-y-auto p-1", children: filtered.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-3 py-4 text-center text-sm text-muted-foreground", children: "No collection found." }) : filtered.map((col) => /* @__PURE__ */ jsxs(
|
|
77
|
+
collections.length > 5 && /* @__PURE__ */ jsx("div", { className: "border-b border-border p-2", children: /* @__PURE__ */ jsx(Input, { value: query, onChange: (e) => setQuery(e.target.value), placeholder: t("Search collections\u2026"), className: "h-8" }) }),
|
|
78
|
+
/* @__PURE__ */ jsx("div", { className: "max-h-64 overflow-y-auto p-1", children: filtered.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-3 py-4 text-center text-sm text-muted-foreground", children: t("No collection found.") }) : filtered.map((col) => /* @__PURE__ */ jsxs(
|
|
75
79
|
"button",
|
|
76
80
|
{
|
|
77
81
|
type: "button",
|
|
@@ -84,7 +88,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
|
|
|
84
88
|
/* @__PURE__ */ jsx(Thumb, { image: col.image, size: "sm" }),
|
|
85
89
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
86
90
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium truncate", children: label(col) }),
|
|
87
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: works(col) })
|
|
91
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: works(col, t, intl) })
|
|
88
92
|
] }),
|
|
89
93
|
value === col.collectionId && /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 text-brand-blue shrink-0" })
|
|
90
94
|
]
|
|
@@ -98,7 +102,7 @@ function CollectionPicker({ collections, loading, value, onChange, newCollection
|
|
|
98
102
|
className: "flex items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors",
|
|
99
103
|
children: [
|
|
100
104
|
/* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" }),
|
|
101
|
-
"New collection"
|
|
105
|
+
t("New collection")
|
|
102
106
|
]
|
|
103
107
|
}
|
|
104
108
|
) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/collection-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { Input } from \"../input.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\n\nexport interface CollectionPickerProps {\n collections: ApiCollection[];\n loading: boolean;\n value: string;\n onChange: (id: string) => void;\n newCollectionHref: string;\n}\n\nfunction label(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction works(col: ApiCollection) {\n return col.totalSupply != null ?
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/collection-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { Input } from \"../input.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { useT } from \"../../i18n/provider.js\";\nimport type { T } from \"../../i18n/make-t.js\";\nimport { useFormat, type Format } from \"../../i18n/use-format.js\";\n\nexport interface CollectionPickerProps {\n collections: ApiCollection[];\n loading: boolean;\n value: string;\n onChange: (id: string) => void;\n newCollectionHref: string;\n}\n\nfunction label(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction works(col: ApiCollection, t: T, intl: Format) {\n return col.totalSupply != null ? t.plural(\"{count} work\", \"{count} works\", col.totalSupply, { count: intl.number(col.totalSupply) }) : t(\"Empty\");\n}\n\nfunction Thumb({ image, size }: { image: string | null | undefined; size: \"sm\" | \"md\" }) {\n const url = useImageUrl()(image);\n return (\n <div className={cn(\"relative rounded-lg overflow-hidden bg-muted shrink-0\", size === \"md\" ? \"h-10 w-10\" : \"h-8 w-8\")}>\n {url ? (\n <Image src={url} alt=\"\" fill unoptimized className=\"object-cover\" />\n ) : (\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <Boxes className=\"h-4 w-4 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n );\n}\n\nexport function CollectionPicker({ collections, loading, value, onChange, newCollectionHref }: CollectionPickerProps) {\n const t = useT();\n const intl = useFormat();\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState(\"\");\n\n if (loading) return <Skeleton className=\"h-[4.25rem] rounded-xl\" />;\n\n if (collections.length === 0) {\n return (\n <div className=\"rounded-xl border border-dashed border-border p-5 text-center space-y-3\">\n <p className=\"text-sm text-muted-foreground\">{t(\"No collection found. It may take a minute to display recently created collections.\")}</p>\n <Link\n href={newCollectionHref}\n className=\"inline-flex items-center gap-1.5 h-9 px-4 rounded-xl text-sm font-semibold text-white bg-brand-blue hover:brightness-110 transition-all\"\n >\n <Plus className=\"h-3.5 w-3.5\" />\n {t(\"Create your first collection\")}\n </Link>\n </div>\n );\n }\n\n const selected = collections.find((c) => c.collectionId === value) ?? null;\n const filtered = query.trim() ? collections.filter((c) => label(c).toLowerCase().includes(query.trim().toLowerCase())) : collections;\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n setOpen(next);\n if (!next) setQuery(\"\");\n }}\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n aria-expanded={open}\n className=\"flex w-full items-center gap-3 rounded-xl border border-border p-3 text-left transition-colors hover:bg-muted/40\"\n >\n <Thumb image={selected?.image} size=\"md\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold truncate\">{selected ? label(selected) : t(\"Choose a collection\")}</p>\n <p className=\"text-xs text-muted-foreground\">{selected ? works(selected, t, intl) : t(\"Where this work will live\")}</p>\n </div>\n <span className=\"flex items-center gap-1 text-xs font-medium text-muted-foreground shrink-0\">\n {t(\"Change\")}\n <ChevronDown className=\"h-3.5 w-3.5\" />\n </span>\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-[var(--radix-popover-trigger-width)] p-0\" align=\"start\">\n {collections.length > 5 && (\n <div className=\"border-b border-border p-2\">\n <Input value={query} onChange={(e) => setQuery(e.target.value)} placeholder={t(\"Search collections…\")} className=\"h-8\" />\n </div>\n )}\n <div className=\"max-h-64 overflow-y-auto p-1\">\n {filtered.length === 0 ? (\n <p className=\"px-3 py-4 text-center text-sm text-muted-foreground\">{t(\"No collection found.\")}</p>\n ) : (\n filtered.map((col) => (\n <button\n key={col.collectionId!}\n type=\"button\"\n onClick={() => {\n onChange(col.collectionId!);\n setOpen(false);\n }}\n className=\"flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-muted/60\"\n >\n <Thumb image={col.image} size=\"sm\" />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium truncate\">{label(col)}</p>\n <p className=\"text-xs text-muted-foreground\">{works(col, t, intl)}</p>\n </div>\n {value === col.collectionId && <Check className=\"h-4 w-4 text-brand-blue shrink-0\" />}\n </button>\n ))\n )}\n </div>\n <div className=\"border-t border-border p-1\">\n <Link\n href={newCollectionHref}\n className=\"flex items-center gap-2 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors\"\n >\n <Plus className=\"h-4 w-4\" />\n {t(\"New collection\")}\n </Link>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":";AAqCQ,cAsBA,YAtBA;AAnCR,SAAS,gBAAgB;AACzB,SAAS,OAAO,OAAO,aAAa,YAAY;AAEhD,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,SAAS,UAAU;AACnB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AAErB,SAAS,iBAA8B;AAUvC,SAAS,MAAM,KAAoB;AACjC,SAAO,IAAI,QAAQ,IAAI,UAAU,eAAe,IAAI,YAAY;AAClE;AAEA,SAAS,MAAM,KAAoB,GAAM,MAAc;AACrD,SAAO,IAAI,eAAe,OAAO,EAAE,OAAO,gBAAgB,iBAAiB,IAAI,aAAa,EAAE,OAAO,KAAK,OAAO,IAAI,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO;AAClJ;AAEA,SAAS,MAAM,EAAE,OAAO,KAAK,GAA4D;AACvF,QAAM,MAAM,YAAY,EAAE,KAAK;AAC/B,SACE,oBAAC,SAAI,WAAW,GAAG,yDAAyD,SAAS,OAAO,cAAc,SAAS,GAChH,gBACC,oBAAC,SAAM,KAAK,KAAK,KAAI,IAAG,MAAI,MAAC,aAAW,MAAC,WAAU,gBAAe,IAElE,oBAAC,SAAI,WAAU,qDACb,8BAAC,SAAM,WAAU,oCAAmC,GACtD,GAEJ;AAEJ;AAEO,SAAS,iBAAiB,EAAE,aAAa,SAAS,OAAO,UAAU,kBAAkB,GAA0B;AACpH,QAAM,IAAI,KAAK;AACf,QAAM,OAAO,UAAU;AACvB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