@medialane/ui 0.372.1 → 0.373.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/account/add-guardian-dialog.cjs +6 -3
- package/dist/components/account/add-guardian-dialog.cjs.map +1 -1
- package/dist/components/account/add-guardian-dialog.js +6 -3
- package/dist/components/account/add-guardian-dialog.js.map +1 -1
- package/dist/components/account/device-approval-dialog.cjs +10 -8
- package/dist/components/account/device-approval-dialog.cjs.map +1 -1
- package/dist/components/account/device-approval-dialog.js +10 -8
- package/dist/components/account/device-approval-dialog.js.map +1 -1
- package/dist/components/account/devices-section.cjs +8 -6
- package/dist/components/account/devices-section.cjs.map +1 -1
- package/dist/components/account/devices-section.js +8 -6
- package/dist/components/account/devices-section.js.map +1 -1
- package/dist/components/account/email-code-entry.cjs +7 -9
- package/dist/components/account/email-code-entry.cjs.map +1 -1
- package/dist/components/account/email-code-entry.js +7 -9
- package/dist/components/account/email-code-entry.js.map +1 -1
- package/dist/components/account/guardian-recovery-section.cjs +26 -35
- package/dist/components/account/guardian-recovery-section.cjs.map +1 -1
- package/dist/components/account/guardian-recovery-section.js +26 -35
- package/dist/components/account/guardian-recovery-section.js.map +1 -1
- package/dist/components/account-page.cjs +16 -13
- package/dist/components/account-page.cjs.map +1 -1
- package/dist/components/account-page.js +16 -13
- package/dist/components/account-page.js.map +1 -1
- package/dist/components/accounts-page.cjs +15 -10
- package/dist/components/accounts-page.cjs.map +1 -1
- package/dist/components/accounts-page.js +15 -10
- package/dist/components/accounts-page.js.map +1 -1
- package/dist/components/activities-feed.cjs +10 -9
- package/dist/components/activities-feed.cjs.map +1 -1
- package/dist/components/activities-feed.js +10 -9
- package/dist/components/activities-feed.js.map +1 -1
- package/dist/components/activity-card.cjs +6 -2
- package/dist/components/activity-card.cjs.map +1 -1
- package/dist/components/activity-card.js +6 -2
- package/dist/components/activity-card.js.map +1 -1
- package/dist/components/activity-feed-shell.cjs +5 -4
- package/dist/components/activity-feed-shell.cjs.map +1 -1
- package/dist/components/activity-feed-shell.js +5 -4
- package/dist/components/activity-feed-shell.js.map +1 -1
- package/dist/components/activity-row.cjs +9 -5
- package/dist/components/activity-row.cjs.map +1 -1
- package/dist/components/activity-row.js +9 -5
- package/dist/components/activity-row.js.map +1 -1
- package/dist/components/activity-timeline-row.cjs +11 -8
- package/dist/components/activity-timeline-row.cjs.map +1 -1
- package/dist/components/activity-timeline-row.js +11 -8
- package/dist/components/activity-timeline-row.js.map +1 -1
- package/dist/components/address-display.cjs +3 -1
- package/dist/components/address-display.cjs.map +1 -1
- package/dist/components/address-display.js +3 -1
- package/dist/components/address-display.js.map +1 -1
- package/dist/components/alert.d.cts +1 -1
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/approve-mint-dialog.cjs +17 -15
- package/dist/components/approve-mint-dialog.cjs.map +1 -1
- package/dist/components/approve-mint-dialog.js +17 -15
- package/dist/components/approve-mint-dialog.js.map +1 -1
- package/dist/components/archive-asset-dialog.cjs +13 -14
- package/dist/components/archive-asset-dialog.cjs.map +1 -1
- package/dist/components/archive-asset-dialog.js +13 -14
- package/dist/components/archive-asset-dialog.js.map +1 -1
- package/dist/components/archived-asset-notice.cjs +5 -2
- package/dist/components/archived-asset-notice.cjs.map +1 -1
- package/dist/components/archived-asset-notice.js +5 -2
- package/dist/components/archived-asset-notice.js.map +1 -1
- package/dist/components/asset-card.cjs +5 -3
- package/dist/components/asset-card.cjs.map +1 -1
- package/dist/components/asset-card.js +5 -3
- package/dist/components/asset-card.js.map +1 -1
- package/dist/components/asset-collection-bar.cjs +4 -2
- package/dist/components/asset-collection-bar.cjs.map +1 -1
- package/dist/components/asset-collection-bar.js +4 -2
- package/dist/components/asset-collection-bar.js.map +1 -1
- package/dist/components/asset-comments-dialog.cjs +3 -1
- package/dist/components/asset-comments-dialog.cjs.map +1 -1
- package/dist/components/asset-comments-dialog.js +3 -1
- package/dist/components/asset-comments-dialog.js.map +1 -1
- package/dist/components/asset-license-summary.cjs +3 -1
- package/dist/components/asset-license-summary.cjs.map +1 -1
- package/dist/components/asset-license-summary.js +3 -1
- package/dist/components/asset-license-summary.js.map +1 -1
- package/dist/components/asset-marketplace-panel.cjs +15 -17
- package/dist/components/asset-marketplace-panel.cjs.map +1 -1
- package/dist/components/asset-marketplace-panel.js +15 -17
- package/dist/components/asset-marketplace-panel.js.map +1 -1
- package/dist/components/asset-markets-tab.cjs +8 -6
- package/dist/components/asset-markets-tab.cjs.map +1 -1
- package/dist/components/asset-markets-tab.js +8 -6
- package/dist/components/asset-markets-tab.js.map +1 -1
- package/dist/components/asset-overview-content.cjs +15 -13
- package/dist/components/asset-overview-content.cjs.map +1 -1
- package/dist/components/asset-overview-content.js +15 -13
- package/dist/components/asset-overview-content.js.map +1 -1
- package/dist/components/asset-owners-panel.cjs +7 -6
- package/dist/components/asset-owners-panel.cjs.map +1 -1
- package/dist/components/asset-owners-panel.js +7 -6
- package/dist/components/asset-owners-panel.js.map +1 -1
- package/dist/components/asset-page.cjs +21 -17
- package/dist/components/asset-page.cjs.map +1 -1
- package/dist/components/asset-page.js +21 -17
- package/dist/components/asset-page.js.map +1 -1
- package/dist/components/asset-picker.cjs +12 -12
- package/dist/components/asset-picker.cjs.map +1 -1
- package/dist/components/asset-picker.js +12 -12
- package/dist/components/asset-picker.js.map +1 -1
- package/dist/components/asset-provenance-tab.cjs +26 -27
- package/dist/components/asset-provenance-tab.cjs.map +1 -1
- package/dist/components/asset-provenance-tab.js +26 -27
- package/dist/components/asset-provenance-tab.js.map +1 -1
- package/dist/components/asset-publication.cjs +3 -1
- package/dist/components/asset-publication.cjs.map +1 -1
- package/dist/components/asset-publication.js +3 -1
- package/dist/components/asset-publication.js.map +1 -1
- package/dist/components/asset-search-picker.cjs +4 -6
- package/dist/components/asset-search-picker.cjs.map +1 -1
- package/dist/components/asset-search-picker.js +4 -6
- package/dist/components/asset-search-picker.js.map +1 -1
- package/dist/components/asset-top-sections.cjs +3 -1
- package/dist/components/asset-top-sections.cjs.map +1 -1
- package/dist/components/asset-top-sections.js +3 -1
- package/dist/components/asset-top-sections.js.map +1 -1
- package/dist/components/asset-type-panels.cjs +17 -13
- package/dist/components/asset-type-panels.cjs.map +1 -1
- package/dist/components/asset-type-panels.js +17 -13
- package/dist/components/asset-type-panels.js.map +1 -1
- package/dist/components/asset-unavailable.cjs +5 -2
- package/dist/components/asset-unavailable.cjs.map +1 -1
- package/dist/components/asset-unavailable.js +5 -2
- package/dist/components/asset-unavailable.js.map +1 -1
- package/dist/components/asset-utility-icons.cjs +4 -2
- package/dist/components/asset-utility-icons.cjs.map +1 -1
- package/dist/components/asset-utility-icons.js +4 -2
- package/dist/components/asset-utility-icons.js.map +1 -1
- package/dist/components/asset-video.cjs +3 -4
- package/dist/components/asset-video.cjs.map +1 -1
- package/dist/components/asset-video.js +3 -4
- package/dist/components/asset-video.js.map +1 -1
- package/dist/components/back-button.cjs +3 -1
- package/dist/components/back-button.cjs.map +1 -1
- package/dist/components/back-button.js +3 -1
- package/dist/components/back-button.js.map +1 -1
- package/dist/components/badge.d.cts +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/button.d.cts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/cancel-order-confirm.cjs +4 -2
- package/dist/components/cancel-order-confirm.cjs.map +1 -1
- package/dist/components/cancel-order-confirm.js +4 -2
- package/dist/components/cancel-order-confirm.js.map +1 -1
- package/dist/components/claim-rail.cjs +5 -2
- package/dist/components/claim-rail.cjs.map +1 -1
- package/dist/components/claim-rail.js +5 -2
- package/dist/components/claim-rail.js.map +1 -1
- package/dist/components/club-owner-actions.cjs +3 -1
- package/dist/components/club-owner-actions.cjs.map +1 -1
- package/dist/components/club-owner-actions.js +3 -1
- package/dist/components/club-owner-actions.js.map +1 -1
- package/dist/components/coin-guarantees.cjs +13 -8
- package/dist/components/coin-guarantees.cjs.map +1 -1
- package/dist/components/coin-guarantees.js +13 -8
- package/dist/components/coin-guarantees.js.map +1 -1
- package/dist/components/coin-launch-preview.cjs +17 -14
- package/dist/components/coin-launch-preview.cjs.map +1 -1
- package/dist/components/coin-launch-preview.js +17 -14
- package/dist/components/coin-launch-preview.js.map +1 -1
- package/dist/components/coin-row.cjs +6 -3
- package/dist/components/coin-row.cjs.map +1 -1
- package/dist/components/coin-row.js +6 -3
- package/dist/components/coin-row.js.map +1 -1
- package/dist/components/coins-explorer.cjs +13 -10
- package/dist/components/coins-explorer.cjs.map +1 -1
- package/dist/components/coins-explorer.js +13 -10
- package/dist/components/coins-explorer.js.map +1 -1
- package/dist/components/collection-card.cjs +9 -5
- package/dist/components/collection-card.cjs.map +1 -1
- package/dist/components/collection-card.js +9 -5
- package/dist/components/collection-card.js.map +1 -1
- package/dist/components/collection-filters-dialog.cjs +6 -7
- package/dist/components/collection-filters-dialog.cjs.map +1 -1
- package/dist/components/collection-filters-dialog.js +6 -7
- package/dist/components/collection-filters-dialog.js.map +1 -1
- package/dist/components/collection-filters.cjs +14 -13
- package/dist/components/collection-filters.cjs.map +1 -1
- package/dist/components/collection-filters.js +14 -13
- package/dist/components/collection-filters.js.map +1 -1
- package/dist/components/collection-header.cjs +9 -5
- package/dist/components/collection-header.cjs.map +1 -1
- package/dist/components/collection-header.js +9 -5
- package/dist/components/collection-header.js.map +1 -1
- package/dist/components/collection-name-claim.cjs +10 -8
- package/dist/components/collection-name-claim.cjs.map +1 -1
- package/dist/components/collection-name-claim.js +10 -8
- package/dist/components/collection-name-claim.js.map +1 -1
- package/dist/components/collection-page.cjs +29 -23
- package/dist/components/collection-page.cjs.map +1 -1
- package/dist/components/collection-page.js +29 -23
- package/dist/components/collection-page.js.map +1 -1
- package/dist/components/collection-provenance-tab.cjs +19 -13
- package/dist/components/collection-provenance-tab.cjs.map +1 -1
- package/dist/components/collection-provenance-tab.js +19 -13
- package/dist/components/collection-provenance-tab.js.map +1 -1
- package/dist/components/collection-settings.cjs +59 -55
- package/dist/components/collection-settings.cjs.map +1 -1
- package/dist/components/collection-settings.js +59 -55
- package/dist/components/collection-settings.js.map +1 -1
- package/dist/components/collection-showcase.cjs +8 -4
- package/dist/components/collection-showcase.cjs.map +1 -1
- package/dist/components/collection-showcase.js +8 -4
- package/dist/components/collection-showcase.js.map +1 -1
- package/dist/components/collection-slug-claim.cjs +22 -24
- package/dist/components/collection-slug-claim.cjs.map +1 -1
- package/dist/components/collection-slug-claim.js +22 -24
- package/dist/components/collection-slug-claim.js.map +1 -1
- package/dist/components/collections-page.cjs +36 -30
- package/dist/components/collections-page.cjs.map +1 -1
- package/dist/components/collections-page.js +36 -30
- package/dist/components/collections-page.js.map +1 -1
- package/dist/components/comments-section.cjs +19 -16
- package/dist/components/comments-section.cjs.map +1 -1
- package/dist/components/comments-section.js +19 -16
- package/dist/components/comments-section.js.map +1 -1
- package/dist/components/create-sponsorship-aside.cjs +7 -5
- package/dist/components/create-sponsorship-aside.cjs.map +1 -1
- package/dist/components/create-sponsorship-aside.js +7 -5
- package/dist/components/create-sponsorship-aside.js.map +1 -1
- package/dist/components/creation-record.cjs +9 -5
- package/dist/components/creation-record.cjs.map +1 -1
- package/dist/components/creation-record.js +9 -5
- package/dist/components/creation-record.js.map +1 -1
- package/dist/components/creator-chip.cjs +3 -1
- package/dist/components/creator-chip.cjs.map +1 -1
- package/dist/components/creator-chip.js +3 -1
- package/dist/components/creator-chip.js.map +1 -1
- package/dist/components/creator-header.cjs +3 -1
- package/dist/components/creator-header.cjs.map +1 -1
- package/dist/components/creator-header.js +3 -1
- package/dist/components/creator-header.js.map +1 -1
- package/dist/components/creator-page.cjs +19 -16
- package/dist/components/creator-page.cjs.map +1 -1
- package/dist/components/creator-page.js +19 -16
- package/dist/components/creator-page.js.map +1 -1
- package/dist/components/cta-card-grid.cjs +4 -2
- package/dist/components/cta-card-grid.cjs.map +1 -1
- package/dist/components/cta-card-grid.js +4 -2
- package/dist/components/cta-card-grid.js.map +1 -1
- package/dist/components/dialog.cjs +25 -21
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.js +25 -21
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/discover-community-section.cjs +8 -7
- package/dist/components/discover-community-section.cjs.map +1 -1
- package/dist/components/discover-community-section.js +8 -7
- package/dist/components/discover-community-section.js.map +1 -1
- package/dist/components/discover-features.cjs +18 -14
- package/dist/components/discover-features.cjs.map +1 -1
- package/dist/components/discover-features.js +18 -14
- package/dist/components/discover-features.js.map +1 -1
- package/dist/components/discover-feed-section.cjs +9 -7
- package/dist/components/discover-feed-section.cjs.map +1 -1
- package/dist/components/discover-feed-section.js +9 -7
- package/dist/components/discover-feed-section.js.map +1 -1
- package/dist/components/discover-hero.cjs +7 -3
- package/dist/components/discover-hero.cjs.map +1 -1
- package/dist/components/discover-hero.js +7 -3
- package/dist/components/discover-hero.js.map +1 -1
- package/dist/components/discover-page.cjs +3 -1
- package/dist/components/discover-page.cjs.map +1 -1
- package/dist/components/discover-page.js +3 -1
- package/dist/components/discover-page.js.map +1 -1
- package/dist/components/drop/create/artwork-section.cjs +9 -9
- package/dist/components/drop/create/artwork-section.cjs.map +1 -1
- package/dist/components/drop/create/artwork-section.js +9 -9
- package/dist/components/drop/create/artwork-section.js.map +1 -1
- package/dist/components/drop/create/details-section.cjs +19 -15
- package/dist/components/drop/create/details-section.cjs.map +1 -1
- package/dist/components/drop/create/details-section.js +19 -15
- package/dist/components/drop/create/details-section.js.map +1 -1
- package/dist/components/drop/create/drop-create.cjs +14 -9
- package/dist/components/drop/create/drop-create.cjs.map +1 -1
- package/dist/components/drop/create/drop-create.js +14 -9
- package/dist/components/drop/create/drop-create.js.map +1 -1
- package/dist/components/drop/create/exclusive-fields.cjs +7 -5
- package/dist/components/drop/create/exclusive-fields.cjs.map +1 -1
- package/dist/components/drop/create/exclusive-fields.js +7 -5
- package/dist/components/drop/create/exclusive-fields.js.map +1 -1
- package/dist/components/drop/create/launch-dialog.cjs +33 -34
- package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
- package/dist/components/drop/create/launch-dialog.js +33 -34
- package/dist/components/drop/create/launch-dialog.js.map +1 -1
- package/dist/components/drop/create/list-section.cjs +8 -8
- package/dist/components/drop/create/list-section.cjs.map +1 -1
- package/dist/components/drop/create/list-section.js +8 -8
- package/dist/components/drop/create/list-section.js.map +1 -1
- package/dist/components/drop/create/sale-section.cjs +8 -6
- package/dist/components/drop/create/sale-section.cjs.map +1 -1
- package/dist/components/drop/create/sale-section.js +8 -6
- package/dist/components/drop/create/sale-section.js.map +1 -1
- package/dist/components/drop/drop-card.cjs +5 -3
- package/dist/components/drop/drop-card.cjs.map +1 -1
- package/dist/components/drop/drop-card.js +5 -3
- package/dist/components/drop/drop-card.js.map +1 -1
- package/dist/components/drop/drop-features.cjs +5 -4
- package/dist/components/drop/drop-features.cjs.map +1 -1
- package/dist/components/drop/drop-features.js +5 -4
- package/dist/components/drop/drop-features.js.map +1 -1
- package/dist/components/drop/drop-listing.cjs +11 -8
- package/dist/components/drop/drop-listing.cjs.map +1 -1
- package/dist/components/drop/drop-listing.js +11 -8
- package/dist/components/drop/drop-listing.js.map +1 -1
- package/dist/components/drop/drop-status.cjs +12 -16
- package/dist/components/drop/drop-status.cjs.map +1 -1
- package/dist/components/drop/drop-status.js +12 -16
- package/dist/components/drop/drop-status.js.map +1 -1
- package/dist/components/drop/drop-token-link.cjs +6 -3
- package/dist/components/drop/drop-token-link.cjs.map +1 -1
- package/dist/components/drop/drop-token-link.js +6 -3
- package/dist/components/drop/drop-token-link.js.map +1 -1
- package/dist/components/drop/my-drops.cjs +5 -3
- package/dist/components/drop/my-drops.cjs.map +1 -1
- package/dist/components/drop/my-drops.js +5 -3
- package/dist/components/drop/my-drops.js.map +1 -1
- package/dist/components/drop/page/drop-action-box.cjs +10 -9
- package/dist/components/drop/page/drop-action-box.cjs.map +1 -1
- package/dist/components/drop/page/drop-action-box.js +10 -9
- package/dist/components/drop/page/drop-action-box.js.map +1 -1
- package/dist/components/drop/page/drop-activity.cjs +3 -1
- package/dist/components/drop/page/drop-activity.cjs.map +1 -1
- package/dist/components/drop/page/drop-activity.js +3 -1
- package/dist/components/drop/page/drop-activity.js.map +1 -1
- package/dist/components/drop/page/drop-manage.cjs +30 -36
- package/dist/components/drop/page/drop-manage.cjs.map +1 -1
- package/dist/components/drop/page/drop-manage.js +30 -36
- package/dist/components/drop/page/drop-manage.js.map +1 -1
- package/dist/components/drop/page/drop-mint-dialog.cjs +10 -13
- package/dist/components/drop/page/drop-mint-dialog.cjs.map +1 -1
- package/dist/components/drop/page/drop-mint-dialog.js +10 -13
- package/dist/components/drop/page/drop-mint-dialog.js.map +1 -1
- package/dist/components/drop/page/drop-page.cjs +11 -9
- package/dist/components/drop/page/drop-page.cjs.map +1 -1
- package/dist/components/drop/page/drop-page.js +11 -9
- package/dist/components/drop/page/drop-page.js.map +1 -1
- package/dist/components/drop-item-list.cjs +9 -5
- package/dist/components/drop-item-list.cjs.map +1 -1
- package/dist/components/drop-item-list.js +9 -5
- package/dist/components/drop-item-list.js.map +1 -1
- package/dist/components/drops-page.cjs +4 -2
- package/dist/components/drops-page.cjs.map +1 -1
- package/dist/components/drops-page.js +4 -2
- package/dist/components/drops-page.js.map +1 -1
- package/dist/components/editions-page.cjs +21 -23
- package/dist/components/editions-page.cjs.map +1 -1
- package/dist/components/editions-page.js +21 -23
- package/dist/components/editions-page.js.map +1 -1
- package/dist/components/empty-or-error.cjs +5 -3
- package/dist/components/empty-or-error.cjs.map +1 -1
- package/dist/components/empty-or-error.js +5 -3
- package/dist/components/empty-or-error.js.map +1 -1
- package/dist/components/expandable-text.cjs +3 -1
- package/dist/components/expandable-text.cjs.map +1 -1
- package/dist/components/expandable-text.js +3 -1
- package/dist/components/expandable-text.js.map +1 -1
- package/dist/components/external-link-field.cjs +7 -4
- package/dist/components/external-link-field.cjs.map +1 -1
- package/dist/components/external-link-field.js +7 -4
- package/dist/components/external-link-field.js.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.cjs +12 -8
- package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.js +12 -8
- package/dist/components/fast-mint/asset-form-parts.js.map +1 -1
- package/dist/components/fast-mint/collection-section.cjs +11 -12
- package/dist/components/fast-mint/collection-section.cjs.map +1 -1
- package/dist/components/fast-mint/collection-section.js +11 -12
- package/dist/components/fast-mint/collection-section.js.map +1 -1
- package/dist/components/fast-mint/dropzone.cjs +7 -5
- package/dist/components/fast-mint/dropzone.cjs.map +1 -1
- package/dist/components/fast-mint/dropzone.js +7 -5
- package/dist/components/fast-mint/dropzone.js.map +1 -1
- package/dist/components/fast-mint/fast-mint.cjs +14 -11
- package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/fast-mint/fast-mint.js +14 -11
- package/dist/components/fast-mint/fast-mint.js.map +1 -1
- package/dist/components/fast-mint/formats/nft.cjs +9 -6
- package/dist/components/fast-mint/formats/nft.cjs.map +1 -1
- package/dist/components/fast-mint/formats/nft.js +9 -6
- package/dist/components/fast-mint/formats/nft.js.map +1 -1
- package/dist/components/fast-mint/formats/pop.cjs +15 -12
- package/dist/components/fast-mint/formats/pop.cjs.map +1 -1
- package/dist/components/fast-mint/formats/pop.js +15 -12
- package/dist/components/fast-mint/formats/pop.js.map +1 -1
- package/dist/components/fast-mint/formats/tiers.cjs +9 -6
- package/dist/components/fast-mint/formats/tiers.cjs.map +1 -1
- package/dist/components/fast-mint/formats/tiers.js +9 -6
- package/dist/components/fast-mint/formats/tiers.js.map +1 -1
- package/dist/components/fast-mint/ip-type-section.cjs +6 -4
- package/dist/components/fast-mint/ip-type-section.cjs.map +1 -1
- package/dist/components/fast-mint/ip-type-section.js +6 -4
- package/dist/components/fast-mint/ip-type-section.js.map +1 -1
- package/dist/components/fast-mint/licensing-section.cjs +11 -9
- package/dist/components/fast-mint/licensing-section.cjs.map +1 -1
- package/dist/components/fast-mint/licensing-section.js +11 -9
- package/dist/components/fast-mint/licensing-section.js.map +1 -1
- package/dist/components/fast-mint/success-view.cjs +3 -1
- package/dist/components/fast-mint/success-view.cjs.map +1 -1
- package/dist/components/fast-mint/success-view.js +3 -1
- package/dist/components/fast-mint/success-view.js.map +1 -1
- package/dist/components/featured-carousel.cjs +13 -7
- package/dist/components/featured-carousel.cjs.map +1 -1
- package/dist/components/featured-carousel.js +13 -7
- package/dist/components/featured-carousel.js.map +1 -1
- package/dist/components/floating-comments-button.cjs +4 -2
- package/dist/components/floating-comments-button.cjs.map +1 -1
- package/dist/components/floating-comments-button.js +4 -2
- package/dist/components/floating-comments-button.js.map +1 -1
- package/dist/components/form.cjs +3 -1
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +3 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/gated-content.cjs +14 -11
- package/dist/components/gated-content.cjs.map +1 -1
- package/dist/components/gated-content.js +14 -11
- package/dist/components/gated-content.js.map +1 -1
- package/dist/components/help-icon.cjs +3 -1
- package/dist/components/help-icon.cjs.map +1 -1
- package/dist/components/help-icon.js +3 -1
- package/dist/components/help-icon.js.map +1 -1
- package/dist/components/hidden-content-banner.cjs +4 -1
- package/dist/components/hidden-content-banner.cjs.map +1 -1
- package/dist/components/hidden-content-banner.js +4 -1
- package/dist/components/hidden-content-banner.js.map +1 -1
- package/dist/components/home-page.cjs +8 -4
- package/dist/components/home-page.cjs.map +1 -1
- package/dist/components/home-page.js +8 -4
- package/dist/components/home-page.js.map +1 -1
- package/dist/components/ip-type-display.cjs +12 -10
- package/dist/components/ip-type-display.cjs.map +1 -1
- package/dist/components/ip-type-display.js +12 -10
- package/dist/components/ip-type-display.js.map +1 -1
- package/dist/components/ip-type-fields.cjs +28 -28
- package/dist/components/ip-type-fields.cjs.map +1 -1
- package/dist/components/ip-type-fields.js +28 -28
- package/dist/components/ip-type-fields.js.map +1 -1
- package/dist/components/ip-type-nav.cjs +3 -1
- package/dist/components/ip-type-nav.cjs.map +1 -1
- package/dist/components/ip-type-nav.js +3 -1
- package/dist/components/ip-type-nav.js.map +1 -1
- package/dist/components/ip-type-page.cjs +41 -42
- package/dist/components/ip-type-page.cjs.map +1 -1
- package/dist/components/ip-type-page.js +41 -42
- package/dist/components/ip-type-page.js.map +1 -1
- package/dist/components/journey-content.cjs +18 -18
- package/dist/components/journey-content.cjs.map +1 -1
- package/dist/components/journey-content.js +18 -18
- package/dist/components/journey-content.js.map +1 -1
- package/dist/components/launchpad/coin-create.cjs +46 -49
- package/dist/components/launchpad/coin-create.cjs.map +1 -1
- package/dist/components/launchpad/coin-create.js +46 -49
- package/dist/components/launchpad/coin-create.js.map +1 -1
- package/dist/components/launchpad/collection-create-form.cjs +21 -17
- package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-form.js +21 -17
- package/dist/components/launchpad/collection-create-form.js.map +1 -1
- package/dist/components/launchpad/collection-create-presets.cjs +57 -56
- package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-presets.js +57 -56
- package/dist/components/launchpad/collection-create-presets.js.map +1 -1
- package/dist/components/launchpad/collection-picker.cjs +15 -11
- package/dist/components/launchpad/collection-picker.cjs.map +1 -1
- package/dist/components/launchpad/collection-picker.js +15 -11
- package/dist/components/launchpad/collection-picker.js.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.cjs +48 -42
- package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.js +48 -42
- package/dist/components/launchpad/edition-mint-fields.js.map +1 -1
- package/dist/components/launchpad/edition-mint.cjs +16 -17
- package/dist/components/launchpad/edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint.js +16 -17
- package/dist/components/launchpad/edition-mint.js.map +1 -1
- package/dist/components/launchpad/pop-create-fields.cjs +40 -34
- package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-fields.js +40 -34
- package/dist/components/launchpad/pop-create-fields.js.map +1 -1
- package/dist/components/launchpad/pop-create-schema.cjs +3 -2
- package/dist/components/launchpad/pop-create-schema.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-schema.js +3 -2
- package/dist/components/launchpad/pop-create-schema.js.map +1 -1
- package/dist/components/launchpad/pop-create.cjs +10 -8
- package/dist/components/launchpad/pop-create.cjs.map +1 -1
- package/dist/components/launchpad/pop-create.js +10 -8
- package/dist/components/launchpad/pop-create.js.map +1 -1
- package/dist/components/launchpad/remix-mint.cjs +50 -47
- package/dist/components/launchpad/remix-mint.cjs.map +1 -1
- package/dist/components/launchpad/remix-mint.js +50 -47
- package/dist/components/launchpad/remix-mint.js.map +1 -1
- package/dist/components/launchpad/single-edition-mint.cjs +46 -43
- package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/single-edition-mint.js +46 -43
- package/dist/components/launchpad/single-edition-mint.js.map +1 -1
- package/dist/components/launchpad/sponsorship-create.cjs +30 -27
- package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
- package/dist/components/launchpad/sponsorship-create.js +30 -27
- package/dist/components/launchpad/sponsorship-create.js.map +1 -1
- package/dist/components/launchpad/tier-mint-form.cjs +56 -48
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-form.d.cts +2 -0
- package/dist/components/launchpad/tier-mint-form.d.ts +2 -0
- package/dist/components/launchpad/tier-mint-form.js +56 -48
- package/dist/components/launchpad/tier-mint-form.js.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.cjs +33 -32
- package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.d.cts +3 -1
- package/dist/components/launchpad/tier-mint-presets.d.ts +3 -1
- package/dist/components/launchpad/tier-mint-presets.js +33 -32
- package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
- package/dist/components/launchpad-filter-bar.cjs +6 -4
- package/dist/components/launchpad-filter-bar.cjs.map +1 -1
- package/dist/components/launchpad-filter-bar.js +6 -4
- package/dist/components/launchpad-filter-bar.js.map +1 -1
- package/dist/components/launchpad-page.cjs +7 -5
- package/dist/components/launchpad-page.cjs.map +1 -1
- package/dist/components/launchpad-page.js +7 -5
- package/dist/components/launchpad-page.js.map +1 -1
- package/dist/components/launchpad-services.cjs +22 -14
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.d.cts +4 -3
- package/dist/components/launchpad-services.d.ts +4 -3
- package/dist/components/launchpad-services.js +26 -16
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/components/launchpad-strip.cjs +9 -6
- package/dist/components/launchpad-strip.cjs.map +1 -1
- package/dist/components/launchpad-strip.js +10 -7
- package/dist/components/launchpad-strip.js.map +1 -1
- package/dist/components/license-request-page.cjs +27 -22
- package/dist/components/license-request-page.cjs.map +1 -1
- package/dist/components/license-request-page.js +27 -22
- package/dist/components/license-request-page.js.map +1 -1
- package/dist/components/license-terms-builder.cjs +38 -31
- package/dist/components/license-terms-builder.cjs.map +1 -1
- package/dist/components/license-terms-builder.js +38 -31
- package/dist/components/license-terms-builder.js.map +1 -1
- package/dist/components/link.cjs +18 -1
- package/dist/components/link.cjs.map +1 -1
- package/dist/components/link.d.cts +8 -2
- package/dist/components/link.d.ts +8 -2
- package/dist/components/link.js +19 -2
- package/dist/components/link.js.map +1 -1
- package/dist/components/listing-card-menu.cjs +6 -4
- package/dist/components/listing-card-menu.cjs.map +1 -1
- package/dist/components/listing-card-menu.js +6 -4
- package/dist/components/listing-card-menu.js.map +1 -1
- package/dist/components/listing-card.cjs +9 -4
- package/dist/components/listing-card.cjs.map +1 -1
- package/dist/components/listing-card.js +9 -4
- package/dist/components/listing-card.js.map +1 -1
- package/dist/components/listings-grid.cjs +6 -10
- package/dist/components/listings-grid.cjs.map +1 -1
- package/dist/components/listings-grid.js +6 -10
- package/dist/components/listings-grid.js.map +1 -1
- package/dist/components/make-offer-picker.cjs +13 -15
- package/dist/components/make-offer-picker.cjs.map +1 -1
- package/dist/components/make-offer-picker.js +13 -15
- package/dist/components/make-offer-picker.js.map +1 -1
- package/dist/components/marketplace-dialog-primitives.cjs +3 -1
- package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
- package/dist/components/marketplace-dialog-primitives.js +3 -1
- package/dist/components/marketplace-dialog-primitives.js.map +1 -1
- package/dist/components/marketplace-filters.cjs +27 -21
- package/dist/components/marketplace-filters.cjs.map +1 -1
- package/dist/components/marketplace-filters.js +27 -21
- package/dist/components/marketplace-filters.js.map +1 -1
- package/dist/components/marketplace-search.cjs +11 -9
- package/dist/components/marketplace-search.cjs.map +1 -1
- package/dist/components/marketplace-search.js +11 -9
- package/dist/components/marketplace-search.js.map +1 -1
- package/dist/components/media-wallet/action-modal.cjs +3 -1
- package/dist/components/media-wallet/action-modal.cjs.map +1 -1
- package/dist/components/media-wallet/action-modal.js +3 -1
- package/dist/components/media-wallet/action-modal.js.map +1 -1
- package/dist/components/media-wallet/activate-card.cjs +4 -2
- package/dist/components/media-wallet/activate-card.cjs.map +1 -1
- package/dist/components/media-wallet/activate-card.js +4 -2
- package/dist/components/media-wallet/activate-card.js.map +1 -1
- package/dist/components/media-wallet/back-button.cjs +3 -1
- package/dist/components/media-wallet/back-button.cjs.map +1 -1
- package/dist/components/media-wallet/back-button.js +3 -1
- package/dist/components/media-wallet/back-button.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.cjs +20 -13
- package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-activity.js +20 -13
- package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-header.cjs +4 -2
- package/dist/components/media-wallet/media-wallet-header.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-header.js +4 -2
- package/dist/components/media-wallet/media-wallet-header.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.cjs +25 -23
- package/dist/components/media-wallet/media-wallet-home.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-home.js +25 -23
- package/dist/components/media-wallet/media-wallet-home.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-overlay.cjs +4 -2
- package/dist/components/media-wallet/media-wallet-overlay.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-overlay.js +4 -2
- package/dist/components/media-wallet/media-wallet-overlay.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.cjs +30 -33
- package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.js +30 -33
- package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.cjs +11 -12
- package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-token-detail.js +11 -12
- package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
- package/dist/components/media-wallet/nft-strip.cjs +3 -1
- package/dist/components/media-wallet/nft-strip.cjs.map +1 -1
- package/dist/components/media-wallet/nft-strip.js +3 -1
- package/dist/components/media-wallet/nft-strip.js.map +1 -1
- package/dist/components/media-wallet/receive-card.cjs +7 -5
- package/dist/components/media-wallet/receive-card.cjs.map +1 -1
- package/dist/components/media-wallet/receive-card.js +7 -5
- package/dist/components/media-wallet/receive-card.js.map +1 -1
- package/dist/components/media-wallet/success-dialog.cjs +3 -1
- package/dist/components/media-wallet/success-dialog.cjs.map +1 -1
- package/dist/components/media-wallet/success-dialog.js +3 -1
- package/dist/components/media-wallet/success-dialog.js.map +1 -1
- package/dist/components/medialane-collection-card.cjs +3 -1
- package/dist/components/medialane-collection-card.cjs.map +1 -1
- package/dist/components/medialane-collection-card.js +3 -1
- package/dist/components/medialane-collection-card.js.map +1 -1
- package/dist/components/more-menu.cjs +7 -5
- package/dist/components/more-menu.cjs.map +1 -1
- package/dist/components/more-menu.js +7 -5
- package/dist/components/more-menu.js.map +1 -1
- package/dist/components/nav-command-menu.cjs +28 -22
- package/dist/components/nav-command-menu.cjs.map +1 -1
- package/dist/components/nav-command-menu.d.cts +1 -1
- package/dist/components/nav-command-menu.d.ts +1 -1
- package/dist/components/nav-command-menu.js +28 -22
- package/dist/components/nav-command-menu.js.map +1 -1
- package/dist/components/nav-language-switch.cjs +56 -0
- package/dist/components/nav-language-switch.cjs.map +1 -0
- package/dist/components/nav-language-switch.d.cts +8 -0
- package/dist/components/nav-language-switch.d.ts +8 -0
- package/dist/components/nav-language-switch.js +32 -0
- package/dist/components/nav-language-switch.js.map +1 -0
- package/dist/components/nav-shell.cjs +7 -3
- package/dist/components/nav-shell.cjs.map +1 -1
- package/dist/components/nav-shell.js +7 -3
- package/dist/components/nav-shell.js.map +1 -1
- package/dist/components/nav-theme-toggle.cjs +5 -3
- package/dist/components/nav-theme-toggle.cjs.map +1 -1
- package/dist/components/nav-theme-toggle.js +5 -3
- package/dist/components/nav-theme-toggle.js.map +1 -1
- package/dist/components/new-collection-menu.cjs +8 -5
- package/dist/components/new-collection-menu.cjs.map +1 -1
- package/dist/components/new-collection-menu.js +8 -5
- package/dist/components/new-collection-menu.js.map +1 -1
- package/dist/components/order-fields.cjs +6 -7
- package/dist/components/order-fields.cjs.map +1 -1
- package/dist/components/order-fields.js +6 -7
- package/dist/components/order-fields.js.map +1 -1
- package/dist/components/parent-attribution-banner.cjs +3 -1
- package/dist/components/parent-attribution-banner.cjs.map +1 -1
- package/dist/components/parent-attribution-banner.js +3 -1
- package/dist/components/parent-attribution-banner.js.map +1 -1
- package/dist/components/pop-burn-button.cjs +7 -5
- package/dist/components/pop-burn-button.cjs.map +1 -1
- package/dist/components/pop-burn-button.js +7 -5
- package/dist/components/pop-burn-button.js.map +1 -1
- package/dist/components/pop-claim-button.cjs +6 -4
- package/dist/components/pop-claim-button.cjs.map +1 -1
- package/dist/components/pop-claim-button.js +6 -4
- package/dist/components/pop-claim-button.js.map +1 -1
- package/dist/components/pop-manage-page.cjs +28 -31
- package/dist/components/pop-manage-page.cjs.map +1 -1
- package/dist/components/pop-manage-page.js +28 -31
- package/dist/components/pop-manage-page.js.map +1 -1
- package/dist/components/pop-my-events-page.cjs +18 -12
- package/dist/components/pop-my-events-page.cjs.map +1 -1
- package/dist/components/pop-my-events-page.js +18 -12
- package/dist/components/pop-my-events-page.js.map +1 -1
- package/dist/components/portfolio-activity.cjs +6 -4
- package/dist/components/portfolio-activity.cjs.map +1 -1
- package/dist/components/portfolio-activity.js +6 -4
- package/dist/components/portfolio-activity.js.map +1 -1
- package/dist/components/portfolio-assets.cjs +5 -3
- package/dist/components/portfolio-assets.cjs.map +1 -1
- package/dist/components/portfolio-assets.js +5 -3
- package/dist/components/portfolio-assets.js.map +1 -1
- package/dist/components/portfolio-chip-filter.cjs +3 -1
- package/dist/components/portfolio-chip-filter.cjs.map +1 -1
- package/dist/components/portfolio-chip-filter.js +3 -1
- package/dist/components/portfolio-chip-filter.js.map +1 -1
- package/dist/components/portfolio-collections.cjs +7 -5
- package/dist/components/portfolio-collections.cjs.map +1 -1
- package/dist/components/portfolio-collections.js +7 -5
- package/dist/components/portfolio-collections.js.map +1 -1
- package/dist/components/portfolio-header.cjs +5 -4
- package/dist/components/portfolio-header.cjs.map +1 -1
- package/dist/components/portfolio-header.js +5 -4
- package/dist/components/portfolio-header.js.map +1 -1
- package/dist/components/portfolio-orders.cjs +19 -14
- package/dist/components/portfolio-orders.cjs.map +1 -1
- package/dist/components/portfolio-orders.js +19 -14
- package/dist/components/portfolio-orders.js.map +1 -1
- package/dist/components/portfolio-section.cjs +3 -1
- package/dist/components/portfolio-section.cjs.map +1 -1
- package/dist/components/portfolio-section.js +3 -1
- package/dist/components/portfolio-section.js.map +1 -1
- package/dist/components/portfolio-shell.cjs +15 -12
- package/dist/components/portfolio-shell.cjs.map +1 -1
- package/dist/components/portfolio-shell.js +15 -12
- package/dist/components/portfolio-shell.js.map +1 -1
- package/dist/components/portfolio-sponsorships.cjs +39 -31
- package/dist/components/portfolio-sponsorships.cjs.map +1 -1
- package/dist/components/portfolio-sponsorships.js +39 -31
- package/dist/components/portfolio-sponsorships.js.map +1 -1
- package/dist/components/price-history-chart.cjs +7 -6
- package/dist/components/price-history-chart.cjs.map +1 -1
- package/dist/components/price-history-chart.js +7 -6
- package/dist/components/price-history-chart.js.map +1 -1
- package/dist/components/remix-browse-page.cjs +14 -11
- package/dist/components/remix-browse-page.cjs.map +1 -1
- package/dist/components/remix-browse-page.js +14 -11
- package/dist/components/remix-browse-page.js.map +1 -1
- package/dist/components/remixes-tab.cjs +8 -11
- package/dist/components/remixes-tab.cjs.map +1 -1
- package/dist/components/remixes-tab.js +8 -11
- package/dist/components/remixes-tab.js.map +1 -1
- package/dist/components/report-dialog.cjs +25 -23
- package/dist/components/report-dialog.cjs.map +1 -1
- package/dist/components/report-dialog.js +25 -23
- package/dist/components/report-dialog.js.map +1 -1
- package/dist/components/rewards/badge-unlocked.cjs +4 -4
- package/dist/components/rewards/badge-unlocked.cjs.map +1 -1
- package/dist/components/rewards/badge-unlocked.js +4 -4
- package/dist/components/rewards/badge-unlocked.js.map +1 -1
- package/dist/components/rewards/leaderboard-panel.cjs +5 -3
- package/dist/components/rewards/leaderboard-panel.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-panel.js +5 -3
- package/dist/components/rewards/leaderboard-panel.js.map +1 -1
- package/dist/components/rewards/leaderboard-table.cjs +13 -7
- package/dist/components/rewards/leaderboard-table.cjs.map +1 -1
- package/dist/components/rewards/leaderboard-table.js +13 -7
- package/dist/components/rewards/leaderboard-table.js.map +1 -1
- package/dist/components/rewards/level-journey-list.cjs +6 -4
- package/dist/components/rewards/level-journey-list.cjs.map +1 -1
- package/dist/components/rewards/level-journey-list.js +6 -4
- package/dist/components/rewards/level-journey-list.js.map +1 -1
- package/dist/components/rewards/level-up-celebration.cjs +3 -1
- package/dist/components/rewards/level-up-celebration.cjs.map +1 -1
- package/dist/components/rewards/level-up-celebration.js +3 -1
- package/dist/components/rewards/level-up-celebration.js.map +1 -1
- package/dist/components/rewards/rewards-dashboard.cjs +51 -41
- package/dist/components/rewards/rewards-dashboard.cjs.map +1 -1
- package/dist/components/rewards/rewards-dashboard.js +51 -41
- package/dist/components/rewards/rewards-dashboard.js.map +1 -1
- package/dist/components/rewards/score-summary-card.cjs +9 -13
- package/dist/components/rewards/score-summary-card.cjs.map +1 -1
- package/dist/components/rewards/score-summary-card.js +9 -13
- package/dist/components/rewards/score-summary-card.js.map +1 -1
- package/dist/components/rewards/xp-earned.cjs +6 -7
- package/dist/components/rewards/xp-earned.cjs.map +1 -1
- package/dist/components/rewards/xp-earned.js +6 -7
- package/dist/components/rewards/xp-earned.js.map +1 -1
- package/dist/components/rewards-page.cjs +4 -1
- package/dist/components/rewards-page.cjs.map +1 -1
- package/dist/components/rewards-page.js +4 -1
- package/dist/components/rewards-page.js.map +1 -1
- package/dist/components/rewards-section.cjs +8 -5
- package/dist/components/rewards-section.cjs.map +1 -1
- package/dist/components/rewards-section.js +8 -5
- package/dist/components/rewards-section.js.map +1 -1
- package/dist/components/route-error.cjs +5 -6
- package/dist/components/route-error.cjs.map +1 -1
- package/dist/components/route-error.js +5 -6
- package/dist/components/route-error.js.map +1 -1
- package/dist/components/router.cjs +19 -3
- package/dist/components/router.cjs.map +1 -1
- package/dist/components/router.d.cts +7 -1
- package/dist/components/router.d.ts +7 -1
- package/dist/components/router.js +17 -1
- package/dist/components/router.js.map +1 -1
- package/dist/components/search-page.cjs +13 -11
- package/dist/components/search-page.cjs.map +1 -1
- package/dist/components/search-page.js +13 -11
- package/dist/components/search-page.js.map +1 -1
- package/dist/components/service-collections-page.cjs +22 -19
- package/dist/components/service-collections-page.cjs.map +1 -1
- package/dist/components/service-collections-page.d.cts +12 -12
- package/dist/components/service-collections-page.d.ts +12 -12
- package/dist/components/service-collections-page.js +22 -19
- package/dist/components/service-collections-page.js.map +1 -1
- package/dist/components/settings-snapshots.cjs +16 -20
- package/dist/components/settings-snapshots.cjs.map +1 -1
- package/dist/components/settings-snapshots.js +16 -20
- package/dist/components/settings-snapshots.js.map +1 -1
- package/dist/components/share-button.cjs +3 -1
- package/dist/components/share-button.cjs.map +1 -1
- package/dist/components/share-button.js +3 -1
- package/dist/components/share-button.js.map +1 -1
- package/dist/components/sheet.cjs +22 -18
- package/dist/components/sheet.cjs.map +1 -1
- package/dist/components/sheet.js +22 -18
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sign-in-prompt.cjs +3 -1
- package/dist/components/sign-in-prompt.cjs.map +1 -1
- package/dist/components/sign-in-prompt.js +3 -1
- package/dist/components/sign-in-prompt.js.map +1 -1
- package/dist/components/soulbound-card.cjs +14 -9
- package/dist/components/soulbound-card.cjs.map +1 -1
- package/dist/components/soulbound-card.d.cts +1 -1
- package/dist/components/soulbound-card.d.ts +1 -1
- package/dist/components/soulbound-card.js +14 -9
- package/dist/components/soulbound-card.js.map +1 -1
- package/dist/components/sponsorship-offer-page.cjs +29 -24
- package/dist/components/sponsorship-offer-page.cjs.map +1 -1
- package/dist/components/sponsorship-offer-page.js +29 -24
- package/dist/components/sponsorship-offer-page.js.map +1 -1
- package/dist/components/sponsorship-offers-page.cjs +11 -9
- package/dist/components/sponsorship-offers-page.cjs.map +1 -1
- package/dist/components/sponsorship-offers-page.js +11 -9
- package/dist/components/sponsorship-offers-page.js.map +1 -1
- package/dist/components/stat-tile.cjs +4 -1
- package/dist/components/stat-tile.cjs.map +1 -1
- package/dist/components/stat-tile.js +4 -1
- package/dist/components/stat-tile.js.map +1 -1
- package/dist/components/token-card.cjs +20 -18
- package/dist/components/token-card.cjs.map +1 -1
- package/dist/components/token-card.js +20 -18
- package/dist/components/token-card.js.map +1 -1
- package/dist/components/transaction-dialog-states.cjs +3 -1
- package/dist/components/transaction-dialog-states.cjs.map +1 -1
- package/dist/components/transaction-dialog-states.d.cts +2 -0
- package/dist/components/transaction-dialog-states.d.ts +2 -0
- package/dist/components/transaction-dialog-states.js +3 -1
- package/dist/components/transaction-dialog-states.js.map +1 -1
- package/dist/components/transaction-dialog.cjs +5 -3
- package/dist/components/transaction-dialog.cjs.map +1 -1
- package/dist/components/transaction-dialog.js +5 -3
- package/dist/components/transaction-dialog.js.map +1 -1
- package/dist/components/transfer-collection-ownership.cjs +19 -16
- package/dist/components/transfer-collection-ownership.cjs.map +1 -1
- package/dist/components/transfer-collection-ownership.js +19 -16
- package/dist/components/transfer-collection-ownership.js.map +1 -1
- package/dist/components/transfer-dialog.cjs +16 -17
- package/dist/components/transfer-dialog.cjs.map +1 -1
- package/dist/components/transfer-dialog.js +16 -17
- package/dist/components/transfer-dialog.js.map +1 -1
- package/dist/components/wallet/export-key-section.cjs +8 -6
- package/dist/components/wallet/export-key-section.cjs.map +1 -1
- package/dist/components/wallet/export-key-section.js +8 -6
- package/dist/components/wallet/export-key-section.js.map +1 -1
- package/dist/components/wallet/self-fund-consent-dialog.cjs +10 -8
- package/dist/components/wallet/self-fund-consent-dialog.cjs.map +1 -1
- package/dist/components/wallet/self-fund-consent-dialog.js +10 -8
- package/dist/components/wallet/self-fund-consent-dialog.js.map +1 -1
- package/dist/components/wallet-required.cjs +3 -1
- package/dist/components/wallet-required.cjs.map +1 -1
- package/dist/components/wallet-required.js +3 -1
- package/dist/components/wallet-required.js.map +1 -1
- package/dist/data/activity.cjs +14 -13
- package/dist/data/activity.cjs.map +1 -1
- package/dist/data/activity.js +14 -13
- package/dist/data/activity.js.map +1 -1
- package/dist/data/coins.cjs +7 -5
- package/dist/data/coins.cjs.map +1 -1
- package/dist/data/coins.js +7 -5
- package/dist/data/coins.js.map +1 -1
- package/dist/data/gated-content-types.cjs +6 -5
- package/dist/data/gated-content-types.cjs.map +1 -1
- package/dist/data/gated-content-types.js +6 -5
- package/dist/data/gated-content-types.js.map +1 -1
- package/dist/data/ip-templates.cjs +27 -26
- package/dist/data/ip-templates.cjs.map +1 -1
- package/dist/data/ip-templates.js +27 -26
- package/dist/data/ip-templates.js.map +1 -1
- package/dist/data/ip-types.cjs +10 -9
- package/dist/data/ip-types.cjs.map +1 -1
- package/dist/data/ip-types.js +10 -9
- package/dist/data/ip-types.js.map +1 -1
- package/dist/data/ip.cjs +23 -22
- package/dist/data/ip.cjs.map +1 -1
- package/dist/data/ip.js +23 -22
- package/dist/data/ip.js.map +1 -1
- package/dist/data/launchpad-services.cjs +151 -129
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.d.cts +4 -1
- package/dist/data/launchpad-services.d.ts +4 -1
- package/dist/data/launchpad-services.js +148 -128
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/data/nav-commands.cjs +48 -47
- package/dist/data/nav-commands.cjs.map +1 -1
- package/dist/data/nav-commands.js +48 -47
- package/dist/data/nav-commands.js.map +1 -1
- package/dist/i18n/catalogs.cjs +34 -0
- package/dist/i18n/catalogs.cjs.map +1 -0
- package/dist/i18n/catalogs.d.cts +6 -0
- package/dist/i18n/catalogs.d.ts +6 -0
- package/dist/i18n/catalogs.js +10 -0
- package/dist/i18n/catalogs.js.map +1 -0
- package/dist/i18n/format.cjs +68 -0
- package/dist/i18n/format.cjs.map +1 -0
- package/dist/i18n/format.d.cts +6 -0
- package/dist/i18n/format.d.ts +6 -0
- package/dist/i18n/format.js +41 -0
- package/dist/i18n/format.js.map +1 -0
- package/dist/i18n/index.cjs +83 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +12 -0
- package/dist/i18n/index.d.ts +12 -0
- package/dist/i18n/index.js +37 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/language-choice.cjs +40 -0
- package/dist/i18n/language-choice.cjs.map +1 -0
- package/dist/i18n/language-choice.d.cts +12 -0
- package/dist/i18n/language-choice.d.ts +12 -0
- package/dist/i18n/language-choice.js +16 -0
- package/dist/i18n/language-choice.js.map +1 -0
- package/dist/i18n/locales.cjs +32 -0
- package/dist/i18n/locales.cjs.map +1 -0
- package/dist/i18n/locales.d.cts +9 -0
- package/dist/i18n/locales.d.ts +9 -0
- package/dist/i18n/locales.js +7 -0
- package/dist/i18n/locales.js.map +1 -0
- package/dist/i18n/localize-router.cjs +35 -0
- package/dist/i18n/localize-router.cjs.map +1 -0
- package/dist/i18n/localize-router.d.cts +8 -0
- package/dist/i18n/localize-router.d.ts +8 -0
- package/dist/i18n/localize-router.js +11 -0
- package/dist/i18n/localize-router.js.map +1 -0
- package/dist/i18n/make-t.cjs +43 -0
- package/dist/i18n/make-t.cjs.map +1 -0
- package/dist/i18n/make-t.d.cts +11 -0
- package/dist/i18n/make-t.d.ts +11 -0
- package/dist/i18n/make-t.js +18 -0
- package/dist/i18n/make-t.js.map +1 -0
- package/dist/i18n/provider.cjs +50 -0
- package/dist/i18n/provider.cjs.map +1 -0
- package/dist/i18n/provider.d.cts +14 -0
- package/dist/i18n/provider.d.ts +14 -0
- package/dist/i18n/provider.js +24 -0
- package/dist/i18n/provider.js.map +1 -0
- package/dist/i18n/resolve-locale.cjs +59 -0
- package/dist/i18n/resolve-locale.cjs.map +1 -0
- package/dist/i18n/resolve-locale.d.cts +16 -0
- package/dist/i18n/resolve-locale.d.ts +16 -0
- package/dist/i18n/resolve-locale.js +34 -0
- package/dist/i18n/resolve-locale.js.map +1 -0
- package/dist/i18n/translate.cjs +71 -0
- package/dist/i18n/translate.cjs.map +1 -0
- package/dist/i18n/translate.d.cts +21 -0
- package/dist/i18n/translate.d.ts +21 -0
- package/dist/i18n/translate.js +44 -0
- package/dist/i18n/translate.js.map +1 -0
- package/dist/i18n/use-format.cjs +42 -0
- package/dist/i18n/use-format.cjs.map +1 -0
- package/dist/i18n/use-format.d.cts +8 -0
- package/dist/i18n/use-format.d.ts +8 -0
- package/dist/i18n/use-format.js +18 -0
- package/dist/i18n/use-format.js.map +1 -0
- package/dist/i18n/with-locale.cjs +44 -0
- package/dist/i18n/with-locale.cjs.map +1 -0
- package/dist/i18n/with-locale.d.cts +4 -0
- package/dist/i18n/with-locale.d.ts +4 -0
- package/dist/i18n/with-locale.js +19 -0
- package/dist/i18n/with-locale.js.map +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/utils/describe-error.cjs +2 -1
- package/dist/utils/describe-error.cjs.map +1 -1
- package/dist/utils/describe-error.js +2 -1
- package/dist/utils/describe-error.js.map +1 -1
- package/dist/utils/drop/draft.cjs +2 -1
- package/dist/utils/drop/draft.cjs.map +1 -1
- package/dist/utils/drop/draft.js +2 -1
- package/dist/utils/drop/draft.js.map +1 -1
- package/dist/utils/drop/sale.cjs +2 -1
- package/dist/utils/drop/sale.cjs.map +1 -1
- package/dist/utils/drop/sale.js +2 -1
- package/dist/utils/drop/sale.js.map +1 -1
- package/dist/utils/drop/view.cjs +11 -8
- package/dist/utils/drop/view.cjs.map +1 -1
- package/dist/utils/drop/view.js +11 -8
- package/dist/utils/drop/view.js.map +1 -1
- package/dist/utils/empty-messages.cjs +17 -16
- package/dist/utils/empty-messages.cjs.map +1 -1
- package/dist/utils/empty-messages.js +17 -16
- package/dist/utils/empty-messages.js.map +1 -1
- package/dist/utils/format-activity.cjs +2 -1
- package/dist/utils/format-activity.cjs.map +1 -1
- package/dist/utils/format-activity.js +2 -1
- package/dist/utils/format-activity.js.map +1 -1
- package/dist/utils/format.cjs +14 -13
- package/dist/utils/format.cjs.map +1 -1
- package/dist/utils/format.d.cts +5 -5
- package/dist/utils/format.d.ts +5 -5
- package/dist/utils/format.js +14 -13
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/ipfs-upload.cjs +6 -5
- package/dist/utils/ipfs-upload.cjs.map +1 -1
- package/dist/utils/ipfs-upload.js +6 -5
- package/dist/utils/ipfs-upload.js.map +1 -1
- package/dist/utils/media-wallet/wallet-format.cjs +5 -3
- package/dist/utils/media-wallet/wallet-format.cjs.map +1 -1
- package/dist/utils/media-wallet/wallet-format.d.cts +2 -2
- package/dist/utils/media-wallet/wallet-format.d.ts +2 -2
- package/dist/utils/media-wallet/wallet-format.js +5 -3
- package/dist/utils/media-wallet/wallet-format.js.map +1 -1
- package/dist/utils/success-messages.cjs +84 -79
- package/dist/utils/success-messages.cjs.map +1 -1
- package/dist/utils/success-messages.d.cts +33 -41
- package/dist/utils/success-messages.d.ts +33 -41
- package/dist/utils/success-messages.js +84 -79
- package/dist/utils/success-messages.js.map +1 -1
- package/dist/utils/token-profile-link.cjs +3 -2
- package/dist/utils/token-profile-link.cjs.map +1 -1
- package/dist/utils/token-profile-link.js +3 -2
- package/dist/utils/token-profile-link.js.map +1 -1
- package/dist/utils/wallet-failure.cjs +9 -8
- package/dist/utils/wallet-failure.cjs.map +1 -1
- package/dist/utils/wallet-failure.js +9 -8
- package/dist/utils/wallet-failure.js.map +1 -1
- package/package.json +7 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/remix-mint.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { Boxes, ChevronDown, ChevronLeft, GitBranch, ImagePlus, Info, Percent, Plus, Shield, Upload } from \"lucide-react\";\nimport { assetHref, getDerivativesTerm, getService, normalizeAddress, resolveRemixPolicy } from \"@medialane/sdk\";\nimport { acceptFor, uploadError } from \"../../utils/upload-limits.js\";\nimport { assertTransactionSucceeded, mintedTokenIdFromReceipt } from \"@medialane/sdk/starknet\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { useRouter } from \"../router.js\";\nimport { Badge } from \"../badge.js\";\nimport { Button } from \"../button.js\";\nimport { Input } from \"../input.js\";\nimport { Label } from \"../label.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../select.js\";\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"../collapsible.js\";\nimport { Section, ToggleGroup } from \"../create-form-primitives.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { IP_TYPES, LICENSE_TYPES } from \"../../data/ip.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { pinAssetMetadata, uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { checkIsOwner } from \"../../utils/ownership.js\";\nimport { useCollection, useCollectionsByOwner } from \"../../utils/use-collections.js\";\nimport { useToken, useTokenBalance } from \"../../utils/use-tokens.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { invalidatePortfolioCache } from \"../../utils/portfolio-cache.js\";\n\nexport function RemixMint({ contract, tokenId }: { contract: string; tokenId: string }) {\n const app = useMedialaneApp();\n const router = useRouter();\n const resolveImage = useImageUrl();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const { token, isLoading: tokenLoading } = useToken(contract, tokenId);\n const { collection: parentCollection } = useCollection(contract);\n const { collections: allCollections, isLoading: collectionsLoading } = useCollectionsByOwner(walletAddress ?? null);\n const eligibleCollections = allCollections.filter(\n (c) => getService(c.service)?.id === \"mip-erc1155\" || (getService(c.service)?.id === \"mip-erc721\" && c.collectionId != null),\n );\n const { amount: walletBalance } = useTokenBalance(contract, tokenId, walletAddress);\n const viewerIsOwner = checkIsOwner(token, walletAddress, walletBalance);\n\n const originalName = token?.metadata?.name ?? `Token #${tokenId}`;\n const originalImage = resolveImage(token?.metadata?.image);\n const originalAttributes = Array.isArray(token?.metadata?.attributes)\n ? (token!.metadata!.attributes as { trait_type?: string; value?: string }[])\n : [];\n const attr = (t: string) => originalAttributes.find((a) => a.trait_type === t)?.value;\n\n const remixPolicy = resolveRemixPolicy({\n parentNoDerivatives: getDerivativesTerm(originalAttributes) === \"Not Allowed\",\n viewerIsParentOwner: viewerIsOwner,\n dealAvailable: !!getService(parentCollection?.service),\n });\n\n const [imageFile, setImageFile] = useState<File | null>(null);\n const [imagePreview, setImagePreview] = useState<string | null>(null);\n const [name, setName] = useState(\"\");\n const [description, setDescription] = useState(\"\");\n const [collectionKey, setCollectionKey] = useState(\"\");\n const [ipType, setIpType] = useState<string>(\"Art\");\n const [licenseType, setLicenseType] = useState(\"CC BY\");\n const [commercial, setCommercial] = useState(false);\n const [derivatives, setDerivatives] = useState(true);\n const [royalty, setRoyalty] = useState(\"\");\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [formError, setFormError] = useState<string | null>(null);\n const [remixHref, setRemixHref] = useState<string | null>(null);\n const previewUrlRef = useRef<string | null>(null);\n const fileInputRef = useRef<HTMLInputElement | null>(null);\n\n useEffect(() => {\n if (token && !name) setName(`Remix of ${originalName}`);\n // eslint-disable-next-line react-hooks/exhaustive-deps -- runs once when the token loads; name is guarded by the check above\n }, [token]);\n\n const getCollectionKey = (c: (typeof eligibleCollections)[number]) => c.collectionId ?? c.contractAddress;\n\n useEffect(() => {\n if (eligibleCollections.length > 0 && !collectionKey) {\n const match = eligibleCollections.find((c) => normalizeAddress(\"STARKNET\", c.contractAddress) === normalizeAddress(\"STARKNET\", contract));\n setCollectionKey(getCollectionKey(match ?? eligibleCollections[0]!));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- runs once when the eligible collections first load\n }, [eligibleCollections.length]);\n\n useEffect(() => {\n return () => {\n if (previewUrlRef.current) URL.revokeObjectURL(previewUrlRef.current);\n };\n }, []);\n\n const redirected = useRef(false);\n useEffect(() => {\n if (!token || remixPolicy.canRemixDirect || redirected.current) return;\n redirected.current = true;\n router.replace(assetHref(\"STARKNET\", contract, tokenId));\n }, [token, remixPolicy.canRemixDirect, router, contract, tokenId]);\n\n const handleLicenseChange = (value: string) => {\n setLicenseType(value);\n const preset = LICENSE_TYPES.find((l) => l.value === value);\n if (preset) {\n setCommercial(preset.commercialUse === \"Yes\");\n setDerivatives(preset.derivatives !== \"Not Allowed\");\n }\n };\n\n const handleImageChange = (file: File) => {\n const fileError = uploadError(file, \"image\");\n if (fileError) {\n setFormError(fileError);\n return;\n }\n setFormError(null);\n if (previewUrlRef.current) URL.revokeObjectURL(previewUrlRef.current);\n const url = URL.createObjectURL(file);\n previewUrlRef.current = url;\n setImageFile(file);\n setImagePreview(url);\n };\n\n const handleSubmit = () => {\n if (!name.trim()) return setFormError(\"Remix name is required\");\n if (!collectionKey) return setFormError(\"Select a collection\");\n if (!walletAddress) return;\n setFormError(null);\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const client = app.getClient();\n const api = client.api;\n const selected = eligibleCollections.find((c) => getCollectionKey(c) === collectionKey);\n if (!selected) throw new Error(\"Collection not found\");\n\n let tokenUri: string;\n if (imageFile) {\n tokenUri = (\n await pinAssetMetadata(api, {\n imageFile,\n name: name.trim(),\n description: description.trim() || `Remix of ${originalName}`,\n creator: walletAddress,\n ipType,\n licenseType,\n commercialUse: commercial ? \"Yes\" : \"No\",\n derivatives: derivatives ? \"Allowed\" : \"Not Allowed\",\n attribution: \"Required\",\n geographicScope: \"Worldwide\",\n aiPolicy: \"Not Allowed\",\n royalty: royalty || \"0\",\n templateTraits: [\n { traitType: \"Parent Contract\", value: contract },\n { traitType: \"Parent Token ID\", value: tokenId },\n ],\n })\n ).uri;\n } else {\n tokenUri = await uploadJsonToIpfs(api, {\n name: name.trim(),\n description: description.trim() || `Remix of ${originalName}`,\n image: token?.metadata?.image ?? \"\",\n attributes: [\n { trait_type: \"Parent Contract\", value: contract },\n { trait_type: \"Parent Token ID\", value: tokenId },\n { trait_type: \"Remix Type\", value: \"Derivative\" },\n { trait_type: \"IP Type\", value: ipType },\n { trait_type: \"License\", value: licenseType },\n { trait_type: \"Commercial Use\", value: commercial ? \"Yes\" : \"No\" },\n { trait_type: \"Derivatives\", value: derivatives ? \"Allowed\" : \"Not Allowed\" },\n ...(royalty ? [{ trait_type: \"Royalty\", value: `${royalty}%` }] : []),\n { trait_type: \"Creator\", value: walletAddress },\n ],\n });\n }\n\n const { txHash } = await runIntentCalls(signer, () =>\n api.intents.create(\n \"mint\",\n selected.standard === \"ERC1155\"\n ? { owner: walletAddress, recipient: walletAddress, collectionContract: selected.contractAddress, tokenUri, value: \"1\" }\n : { owner: walletAddress, collectionId: selected.collectionId!, recipient: walletAddress, tokenUri, royaltyBps: 0 },\n ),\n );\n const receipt = await assertTransactionSucceeded(client.provider, txHash);\n const remixTokenId = mintedTokenIdFromReceipt(receipt, selected.contractAddress);\n if (!remixTokenId) throw new Error(\"Minted, but could not read the new token id from the receipt\");\n await api.remix.confirmSelf({\n originalContract: contract,\n originalTokenId: tokenId,\n remixContract: selected.contractAddress,\n remixTokenId,\n txHash,\n licenseType,\n commercial,\n derivatives,\n });\n setRemixHref(assetHref(\"STARKNET\", selected.contractAddress, remixTokenId));\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const handleAgain = () => {\n tx.reset();\n setRemixHref(null);\n };\n\n const gate = { icon: GitBranch, title: \"Connect to create a remix\", description: \"Connect to mint a derivative of this asset.\" };\n\n if (tokenLoading) {\n return (\n <WalletRequired {...gate}>\n <div className=\"max-w-5xl mx-auto px-4 pt-14 pb-8 space-y-6\">\n <Skeleton className=\"h-8 w-48\" />\n <div className=\"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8\">\n <div className=\"space-y-4\">{[1, 2, 3, 4].map((i) => <Skeleton key={i} className=\"h-32 w-full rounded-xl\" />)}</div>\n <Skeleton className=\"h-80 w-full rounded-xl\" />\n </div>\n </div>\n </WalletRequired>\n );\n }\n\n if (!token) {\n return (\n <div className=\"max-w-5xl mx-auto px-4 py-24 text-center space-y-4\">\n <p className=\"text-2xl font-bold\">Asset not found</p>\n <Button asChild variant=\"outline\"><Link href=\"/\">Go home</Link></Button>\n </div>\n );\n }\n\n return (\n <WalletRequired {...gate}>\n <TransactionDialog tx={tx} title=\"Mint a remix\" workingLabel=\"Minting your remix…\" firstStepLabel=\"Upload to IPFS\">\n <TransactionSuccess\n name={name}\n image={imagePreview ?? originalImage ?? null}\n title=\"Remix minted\"\n description=\"It is registered as a remix of the original asset and carries its own license terms.\"\n actions={[\n ...(remixHref ? [{ href: remixHref, label: \"View remix\" }] : []),\n { href: \"/portfolio/assets\", label: \"View portfolio\" },\n { label: \"Close\", onClick: handleAgain },\n ]}\n >\n <RewardEarned actionType=\"mint_asset\" />\n </TransactionSuccess>\n </TransactionDialog>\n\n <div className=\"max-w-5xl mx-auto px-4 pt-14 pb-12 space-y-6\">\n <div className=\"space-y-3\">\n <Link href={assetHref(\"STARKNET\", contract, tokenId)} className=\"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors\">\n <ChevronLeft className=\"h-4 w-4\" />\n Back to asset\n </Link>\n <div className=\"flex items-center gap-2 text-primary\">\n <GitBranch className=\"h-5 w-5\" />\n <span className=\"text-sm font-semibold\">Create Remix</span>\n </div>\n <h1 className=\"text-3xl font-bold\">Mint a Remix</h1>\n <p className=\"text-muted-foreground max-w-xl\">Mint a derivative work based on this asset. The parent attribution is embedded in the IPFS metadata.</p>\n </div>\n\n <div className=\"grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-8 items-start\">\n <div className=\"space-y-4\">\n <Section title=\"Remix Artwork\" icon={<ImagePlus className=\"h-4 w-4\" />}>\n <div\n className={cn(\"relative group rounded-xl border-2 border-dashed border-border transition-colors cursor-pointer overflow-hidden\", \"hover:border-primary/50 hover:bg-muted/30\")}\n onClick={() => fileInputRef.current?.click()}\n >\n <input ref={fileInputRef} type=\"file\" accept={acceptFor(\"image\")} className=\"hidden\" onChange={(e) => { const f = e.target.files?.[0]; if (f) handleImageChange(f); }} />\n {imagePreview ? (\n <div className=\"relative aspect-square w-full\">\n <Image src={imagePreview} alt=\"Remix preview\" fill unoptimized className=\"object-cover\" />\n <div className=\"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center\">\n <p className=\"text-white text-sm font-medium flex items-center gap-2\"><Upload className=\"h-4 w-4\" /> Change image</p>\n </div>\n </div>\n ) : (\n <div className=\"aspect-square flex flex-col items-center justify-center gap-3 text-muted-foreground p-8\">\n {originalImage && (\n <div className=\"relative h-20 w-20 rounded-xl overflow-hidden opacity-40 mb-1 ring-2 ring-border\">\n <Image src={originalImage} alt=\"\" fill unoptimized className=\"object-cover\" />\n </div>\n )}\n <Upload className=\"h-8 w-8\" />\n <div className=\"text-center\">\n <p className=\"text-sm font-medium\">Upload remix artwork</p>\n <p className=\"text-xs mt-0.5\">{originalImage ? \"Leave empty to inherit original artwork\" : \"PNG, JPG, GIF, WebP up to 10MB\"}</p>\n </div>\n </div>\n )}\n </div>\n </Section>\n\n <Section title=\"Remix Details\" icon={<GitBranch className=\"h-4 w-4\" />}>\n <div className=\"space-y-1.5\">\n <Label>Remix Name *</Label>\n <Input value={name} onChange={(e) => setName(e.target.value)} placeholder={`Remix of ${originalName}`} />\n </div>\n <div className=\"space-y-1.5\">\n <Label>Description</Label>\n <Textarea value={description} onChange={(e) => setDescription(e.target.value)} placeholder=\"Describe your remix, the creative changes you're making, or your vision for it…\" rows={3} className=\"resize-none\" />\n </div>\n </Section>\n\n <Section title=\"Collection\" icon={<Boxes className=\"h-4 w-4\" />}>\n {collectionsLoading ? (\n <Skeleton className=\"h-10 w-full rounded-md\" />\n ) : eligibleCollections.length === 0 ? (\n <div className=\"rounded-lg border border-dashed border-border p-4 text-center space-y-2\">\n <p className=\"text-sm text-muted-foreground\">No eligible collections. Create one first.</p>\n <Button size=\"sm\" variant=\"outline\" asChild>\n <Link href=\"/launchpad/single-editions/collection\"><Plus className=\"h-3.5 w-3.5 mr-1.5\" />Create collection</Link>\n </Button>\n </div>\n ) : (\n <Select value={collectionKey} onValueChange={setCollectionKey}>\n <SelectTrigger><SelectValue placeholder=\"Select a collection\" /></SelectTrigger>\n <SelectContent>\n {eligibleCollections.map((c) => (\n <SelectItem key={getCollectionKey(c)} value={getCollectionKey(c)}>\n <span className=\"flex items-center gap-2\">\n {c.name ?? c.contractAddress.slice(0, 14) + \"…\"}\n {c.standard && <span className=\"text-2xs tabular-nums text-muted-foreground\">{c.standard}</span>}\n </span>\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n </Section>\n\n <Section title=\"IP Type\" icon={<Info className=\"h-4 w-4\" />}>\n <Select value={ipType} onValueChange={setIpType}>\n <SelectTrigger><SelectValue /></SelectTrigger>\n <SelectContent>{IP_TYPES.map((t) => <SelectItem key={t} value={t}>{t}</SelectItem>)}</SelectContent>\n </Select>\n </Section>\n\n <Section title=\"License Terms\" icon={<Shield className=\"h-4 w-4\" />}>\n <div className=\"space-y-1.5\">\n <Label>License Type</Label>\n <Select value={licenseType} onValueChange={handleLicenseChange}>\n <SelectTrigger><SelectValue /></SelectTrigger>\n <SelectContent>{LICENSE_TYPES.map((l) => <SelectItem key={l.value} value={l.value}>{l.value}</SelectItem>)}</SelectContent>\n </Select>\n </div>\n <div className=\"grid grid-cols-2 gap-4\">\n <div className=\"space-y-1.5\">\n <Label className=\"text-xs text-muted-foreground uppercase tracking-wide\">Commercial Use</Label>\n <ToggleGroup value={commercial ? \"Yes\" : \"No\"} options={[\"Yes\", \"No\"]} onChange={(v) => setCommercial(v === \"Yes\")} />\n </div>\n <div className=\"space-y-1.5\">\n <Label className=\"text-xs text-muted-foreground uppercase tracking-wide\">Derivatives</Label>\n <ToggleGroup value={derivatives ? \"Allowed\" : \"Not Allowed\"} options={[\"Allowed\", \"Not Allowed\"]} onChange={(v) => setDerivatives(v === \"Allowed\")} />\n </div>\n </div>\n <Collapsible open={advancedOpen} onOpenChange={setAdvancedOpen}>\n <CollapsibleTrigger asChild>\n <button type=\"button\" className=\"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors\">\n <ChevronDown className={cn(\"h-3.5 w-3.5 transition-transform\", advancedOpen && \"rotate-180\")} />\n Royalty & advanced\n </button>\n </CollapsibleTrigger>\n <CollapsibleContent className=\"pt-3 space-y-3\">\n <div className=\"space-y-1.5\">\n <Label className=\"flex items-center gap-1.5\"><Percent className=\"h-3.5 w-3.5\" />Royalty %</Label>\n <Input type=\"number\" min=\"0\" max=\"50\" step=\"1\" placeholder=\"0\" value={royalty} onChange={(e) => setRoyalty(e.target.value)} />\n <p className=\"text-xs text-muted-foreground\">Percentage of future sales sent back to you (0–50%)</p>\n </div>\n </CollapsibleContent>\n </Collapsible>\n </Section>\n\n {formError && <p role=\"alert\" className=\"text-sm text-destructive\">{formError}</p>}\n\n <div className=\"btn-border-animated p-[1px] rounded-xl\">\n <button\n type=\"button\"\n disabled={tx.phase !== \"idle\"}\n onClick={handleSubmit}\n className=\"w-full h-12 rounded-[11px] flex items-center justify-center gap-2 text-base font-semibold text-white transition-all hover:brightness-110 active:scale-[0.98] bg-brand-rose disabled:opacity-50\"\n >\n <GitBranch className=\"h-5 w-5\" />\n Mint Remix\n </button>\n </div>\n <p className=\"text-xs text-center text-muted-foreground\">Two operations: IPFS metadata upload + on-chain mint. Gas is free.</p>\n </div>\n\n <div className=\"space-y-4 lg:sticky lg:top-16\">\n <div className=\"rounded-xl border border-border overflow-hidden bg-card\">\n <div className=\"relative aspect-square w-full bg-muted\">\n {originalImage && <Image src={originalImage} alt={originalName} fill unoptimized className=\"object-cover\" />}\n <div className=\"absolute top-2 left-2\">\n <Badge variant=\"secondary\" className=\"text-2xs gap-1\"><GitBranch className=\"h-3 w-3\" />Original</Badge>\n </div>\n </div>\n <div className=\"p-4 space-y-3\">\n <div>\n <p className=\"font-semibold truncate\">{originalName}</p>\n {token.metadata?.description && <p className=\"text-xs text-muted-foreground line-clamp-2 mt-0.5\">{token.metadata.description}</p>}\n </div>\n {(attr(\"License\") || attr(\"Commercial Use\") || attr(\"Derivatives\")) && (\n <div className=\"rounded-lg bg-muted/40 p-3 space-y-1.5 text-xs\">\n <p className=\"text-2xs font-semibold text-muted-foreground\">Original License</p>\n {attr(\"License\") && <div className=\"flex justify-between\"><span className=\"text-muted-foreground\">License</span><span className=\"font-medium\">{attr(\"License\")}</span></div>}\n {attr(\"Commercial Use\") && <div className=\"flex justify-between\"><span className=\"text-muted-foreground\">Commercial</span><span className=\"font-medium\">{attr(\"Commercial Use\")}</span></div>}\n {attr(\"Derivatives\") && <div className=\"flex justify-between\"><span className=\"text-muted-foreground\">Derivatives</span><span className=\"font-medium\">{attr(\"Derivatives\")}</span></div>}\n </div>\n )}\n </div>\n </div>\n <div className=\"rounded-xl border border-primary/20 bg-primary/5 p-4 space-y-3 text-sm\">\n <p className=\"font-semibold flex items-center gap-2\"><Info className=\"h-4 w-4 text-primary\" />What happens next</p>\n <ol className=\"space-y-2 text-muted-foreground text-xs list-decimal list-inside\">\n <li>Your artwork and metadata are uploaded to IPFS</li>\n <li>A new NFT is minted in the selected collection</li>\n <li>Parent attribution is embedded on-chain permanently</li>\n </ol>\n </div>\n </div>\n </div>\n </div>\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA4NU;AA1NV,mBAA4C;AAC5C,0BAA2G;AAC3G,iBAAgG;AAChG,2BAAuC;AACvC,sBAAqE;AACrE,mBAAkB;AAClB,kBAAiB;AACjB,oBAA0B;AAC1B,mBAAsB;AACtB,oBAAuB;AACvB,mBAAsB;AACtB,mBAAsB;AACtB,sBAAyB;AACzB,sBAAyB;AACzB,oBAA8E;AAC9E,yBAAoE;AACpE,oCAAqC;AACrC,iCAAmC;AACnC,gCAAkC;AAClC,6BAA+B;AAC/B,2BAAgC;AAChC,2BAA6B;AAC7B,gBAAwC;AACxC,gBAAmB;AACnB,yBAAmD;AACnD,8BAA+B;AAC/B,uBAA6B;AAC7B,6BAAqD;AACrD,wBAA0C;AAC1C,2BAA4B;AAC5B,6BAA+B;AAC/B,6BAAyC;AAElC,SAAS,UAAU,EAAE,UAAU,QAAQ,GAA0C;AACtF,QAAM,UAAM,sCAAgB;AAC5B,QAAM,aAAS,yBAAU;AACzB,QAAM,mBAAe,kCAAY;AACjC,QAAM,gBAAgB,IAAI;AAC1B,QAAM,SAAK,uCAAe;AAC1B,QAAM,EAAE,OAAO,WAAW,aAAa,QAAI,4B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,kBAAO,4CAAC,UAAK,WAAU,eAAe,eAAK,gBAAgB,GAAE;AAAA,mBAAO;AAAA,gBACtL,KAAK,aAAa,KAAK,6CAAC,SAAI,WAAU,wBAAuB;AAAA,8DAAC,UAAK,WAAU,yBAAwB,yBAAW;AAAA,kBAAO,4CAAC,UAAK,WAAU,eAAe,eAAK,aAAa,GAAE;AAAA,mBAAO;AAAA,iBACpL;AAAA,eAEJ;AAAA,aACF;AAAA,UACA,6CAAC,SAAI,WAAU,0EACb;AAAA,yDAAC,OAAE,WAAU,yCAAwC;AAAA,0DAAC,4BAAK,WAAU,wBAAuB;AAAA,cAAE;AAAA,eAAiB;AAAA,YAC/G,6CAAC,QAAG,WAAU,oEACZ;AAAA,0DAAC,QAAG,4DAA8C;AAAA,cAClD,4CAAC,QAAG,4DAA8C;AAAA,cAClD,4CAAC,QAAG,iEAAmD;AAAA,eACzD;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAEJ;","names":["Link","Image"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/remix-mint.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { Boxes, ChevronDown, ChevronLeft, GitBranch, ImagePlus, Info, Percent, Plus, Shield, Upload } from \"lucide-react\";\nimport { assetHref, getDerivativesTerm, getService, normalizeAddress, resolveRemixPolicy } from \"@medialane/sdk\";\nimport { acceptFor, uploadError } from \"../../utils/upload-limits.js\";\nimport { assertTransactionSucceeded, mintedTokenIdFromReceipt } from \"@medialane/sdk/starknet\";\nimport Image from \"../image.js\";\nimport Link from \"../link.js\";\nimport { useRouter } from \"../router.js\";\nimport { Badge } from \"../badge.js\";\nimport { Button } from \"../button.js\";\nimport { Input } from \"../input.js\";\nimport { Label } from \"../label.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../select.js\";\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"../collapsible.js\";\nimport { Section, ToggleGroup } from \"../create-form-primitives.js\";\nimport { TransactionSuccess } from \"../transaction-success.js\";\nimport { TransactionDialog } from \"../transaction-dialog.js\";\nimport { WalletRequired } from \"../wallet-required.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { RewardEarned } from \"../rewards/reward-earned.js\";\nimport { IP_TYPES, LICENSE_TYPES } from \"../../data/ip.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { pinAssetMetadata, uploadJsonToIpfs } from \"../../utils/ipfs-upload.js\";\nimport { runIntentCalls } from \"../../utils/run-intent-calls.js\";\nimport { checkIsOwner } from \"../../utils/ownership.js\";\nimport { useCollection, useCollectionsByOwner } from \"../../utils/use-collections.js\";\nimport { useToken, useTokenBalance } from \"../../utils/use-tokens.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { useTransaction } from \"../../utils/use-transaction.js\";\nimport { invalidatePortfolioCache } from \"../../utils/portfolio-cache.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nexport function RemixMint({ contract, tokenId }: { contract: string; tokenId: string }) {\n const t = useT();\n const app = useMedialaneApp();\n const router = useRouter();\n const resolveImage = useImageUrl();\n const walletAddress = app.walletAddress;\n const tx = useTransaction();\n const { token, isLoading: tokenLoading } = useToken(contract, tokenId);\n const { collection: parentCollection } = useCollection(contract);\n const { collections: allCollections, isLoading: collectionsLoading } = useCollectionsByOwner(walletAddress ?? null);\n const eligibleCollections = allCollections.filter(\n (c) => getService(c.service)?.id === \"mip-erc1155\" || (getService(c.service)?.id === \"mip-erc721\" && c.collectionId != null),\n );\n const { amount: walletBalance } = useTokenBalance(contract, tokenId, walletAddress);\n const viewerIsOwner = checkIsOwner(token, walletAddress, walletBalance);\n\n const originalName = token?.metadata?.name ?? `Token #${tokenId}`;\n const originalImage = resolveImage(token?.metadata?.image);\n const originalAttributes = Array.isArray(token?.metadata?.attributes)\n ? (token!.metadata!.attributes as { trait_type?: string; value?: string }[])\n : [];\n const attr = (t: string) => originalAttributes.find((a) => a.trait_type === t)?.value;\n\n const remixPolicy = resolveRemixPolicy({\n parentNoDerivatives: getDerivativesTerm(originalAttributes) === \"Not Allowed\",\n viewerIsParentOwner: viewerIsOwner,\n dealAvailable: !!getService(parentCollection?.service),\n });\n\n const [imageFile, setImageFile] = useState<File | null>(null);\n const [imagePreview, setImagePreview] = useState<string | null>(null);\n const [name, setName] = useState(\"\");\n const [description, setDescription] = useState(\"\");\n const [collectionKey, setCollectionKey] = useState(\"\");\n const [ipType, setIpType] = useState<string>(\"Art\");\n const [licenseType, setLicenseType] = useState(\"CC BY\");\n const [commercial, setCommercial] = useState(false);\n const [derivatives, setDerivatives] = useState(true);\n const [royalty, setRoyalty] = useState(\"\");\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [formError, setFormError] = useState<string | null>(null);\n const [remixHref, setRemixHref] = useState<string | null>(null);\n const previewUrlRef = useRef<string | null>(null);\n const fileInputRef = useRef<HTMLInputElement | null>(null);\n\n useEffect(() => {\n if (token && !name) setName(`Remix of ${originalName}`);\n // eslint-disable-next-line react-hooks/exhaustive-deps -- runs once when the token loads; name is guarded by the check above\n }, [token]);\n\n const getCollectionKey = (c: (typeof eligibleCollections)[number]) => c.collectionId ?? c.contractAddress;\n\n useEffect(() => {\n if (eligibleCollections.length > 0 && !collectionKey) {\n const match = eligibleCollections.find((c) => normalizeAddress(\"STARKNET\", c.contractAddress) === normalizeAddress(\"STARKNET\", contract));\n setCollectionKey(getCollectionKey(match ?? eligibleCollections[0]!));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- runs once when the eligible collections first load\n }, [eligibleCollections.length]);\n\n useEffect(() => {\n return () => {\n if (previewUrlRef.current) URL.revokeObjectURL(previewUrlRef.current);\n };\n }, []);\n\n const redirected = useRef(false);\n useEffect(() => {\n if (!token || remixPolicy.canRemixDirect || redirected.current) return;\n redirected.current = true;\n router.replace(assetHref(\"STARKNET\", contract, tokenId));\n }, [token, remixPolicy.canRemixDirect, router, contract, tokenId]);\n\n const handleLicenseChange = (value: string) => {\n setLicenseType(value);\n const preset = LICENSE_TYPES.find((l) => l.value === value);\n if (preset) {\n setCommercial(preset.commercialUse === \"Yes\");\n setDerivatives(preset.derivatives !== \"Not Allowed\");\n }\n };\n\n const handleImageChange = (file: File) => {\n const fileError = uploadError(file, \"image\");\n if (fileError) {\n setFormError(fileError);\n return;\n }\n setFormError(null);\n if (previewUrlRef.current) URL.revokeObjectURL(previewUrlRef.current);\n const url = URL.createObjectURL(file);\n previewUrlRef.current = url;\n setImageFile(file);\n setImagePreview(url);\n };\n\n const handleSubmit = () => {\n if (!name.trim()) return setFormError(\"Remix name is required\");\n if (!collectionKey) return setFormError(\"Select a collection\");\n if (!walletAddress) return;\n setFormError(null);\n void tx.run(async (signer) => {\n await app.ensureSignedIn?.();\n const client = app.getClient();\n const api = client.api;\n const selected = eligibleCollections.find((c) => getCollectionKey(c) === collectionKey);\n if (!selected) throw new Error(\"Collection not found\");\n\n let tokenUri: string;\n if (imageFile) {\n tokenUri = (\n await pinAssetMetadata(api, {\n imageFile,\n name: name.trim(),\n description: description.trim() || `Remix of ${originalName}`,\n creator: walletAddress,\n ipType,\n licenseType,\n commercialUse: commercial ? \"Yes\" : \"No\",\n derivatives: derivatives ? \"Allowed\" : \"Not Allowed\",\n attribution: \"Required\",\n geographicScope: \"Worldwide\",\n aiPolicy: \"Not Allowed\",\n royalty: royalty || \"0\",\n templateTraits: [\n { traitType: \"Parent Contract\", value: contract },\n { traitType: \"Parent Token ID\", value: tokenId },\n ],\n })\n ).uri;\n } else {\n tokenUri = await uploadJsonToIpfs(api, {\n name: name.trim(),\n description: description.trim() || `Remix of ${originalName}`,\n image: token?.metadata?.image ?? \"\",\n attributes: [\n { trait_type: \"Parent Contract\", value: contract },\n { trait_type: \"Parent Token ID\", value: tokenId },\n { trait_type: \"Remix Type\", value: \"Derivative\" },\n { trait_type: \"IP Type\", value: ipType },\n { trait_type: \"License\", value: licenseType },\n { trait_type: \"Commercial Use\", value: commercial ? \"Yes\" : \"No\" },\n { trait_type: \"Derivatives\", value: derivatives ? \"Allowed\" : \"Not Allowed\" },\n ...(royalty ? [{ trait_type: \"Royalty\", value: `${royalty}%` }] : []),\n { trait_type: \"Creator\", value: walletAddress },\n ],\n });\n }\n\n const { txHash } = await runIntentCalls(signer, () =>\n api.intents.create(\n \"mint\",\n selected.standard === \"ERC1155\"\n ? { owner: walletAddress, recipient: walletAddress, collectionContract: selected.contractAddress, tokenUri, value: \"1\" }\n : { owner: walletAddress, collectionId: selected.collectionId!, recipient: walletAddress, tokenUri, royaltyBps: 0 },\n ),\n );\n const receipt = await assertTransactionSucceeded(client.provider, txHash);\n const remixTokenId = mintedTokenIdFromReceipt(receipt, selected.contractAddress);\n if (!remixTokenId) throw new Error(\"Minted, but could not read the new token id from the receipt\");\n await api.remix.confirmSelf({\n originalContract: contract,\n originalTokenId: tokenId,\n remixContract: selected.contractAddress,\n remixTokenId,\n txHash,\n licenseType,\n commercial,\n derivatives,\n });\n setRemixHref(assetHref(\"STARKNET\", selected.contractAddress, remixTokenId));\n invalidatePortfolioCache(walletAddress);\n });\n };\n\n const handleAgain = () => {\n tx.reset();\n setRemixHref(null);\n };\n\n const gate = { icon: GitBranch, title: t(\"Connect to create a remix\"), description: t(\"Connect to mint a derivative of this asset.\") };\n\n if (tokenLoading) {\n return (\n <WalletRequired {...gate}>\n <div className=\"max-w-5xl mx-auto px-4 pt-14 pb-8 space-y-6\">\n <Skeleton className=\"h-8 w-48\" />\n <div className=\"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8\">\n <div className=\"space-y-4\">{[1, 2, 3, 4].map((i) => <Skeleton key={i} className=\"h-32 w-full rounded-xl\" />)}</div>\n <Skeleton className=\"h-80 w-full rounded-xl\" />\n </div>\n </div>\n </WalletRequired>\n );\n }\n\n if (!token) {\n return (\n <div className=\"max-w-5xl mx-auto px-4 py-24 text-center space-y-4\">\n <p className=\"text-2xl font-bold\">{t(\"Asset not found\")}</p>\n <Button asChild variant=\"outline\"><Link href=\"/\">{t(\"Go home\")}</Link></Button>\n </div>\n );\n }\n\n return (\n <WalletRequired {...gate}>\n <TransactionDialog tx={tx} title={t(\"Mint a remix\")} workingLabel=\"Minting your remix…\" firstStepLabel=\"Upload to IPFS\">\n <TransactionSuccess\n name={name}\n image={imagePreview ?? originalImage ?? null}\n title={t(\"Remix minted\")}\n description={t(\"It is registered as a remix of the original asset and carries its own license terms.\")}\n actions={[\n ...(remixHref ? [{ href: remixHref, label: t(\"View remix\") }] : []),\n { href: \"/portfolio/assets\", label: t(\"View portfolio\") },\n { label: t(\"Close\"), onClick: handleAgain },\n ]}\n >\n <RewardEarned actionType=\"mint_asset\" />\n </TransactionSuccess>\n </TransactionDialog>\n\n <div className=\"max-w-5xl mx-auto px-4 pt-14 pb-12 space-y-6\">\n <div className=\"space-y-3\">\n <Link href={assetHref(\"STARKNET\", contract, tokenId)} className=\"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors\">\n <ChevronLeft className=\"h-4 w-4\" />\n {t(\"Back to asset\")}\n </Link>\n <div className=\"flex items-center gap-2 text-primary\">\n <GitBranch className=\"h-5 w-5\" />\n <span className=\"text-sm font-semibold\">{t(\"Create Remix\")}</span>\n </div>\n <h1 className=\"text-3xl font-bold\">{t(\"Mint a Remix\")}</h1>\n <p className=\"text-muted-foreground max-w-xl\">{t(\"Mint a derivative work based on this asset. The parent attribution is embedded in the IPFS metadata.\")}</p>\n </div>\n\n <div className=\"grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-8 items-start\">\n <div className=\"space-y-4\">\n <Section title={t(\"Remix Artwork\")} icon={<ImagePlus className=\"h-4 w-4\" />}>\n <div\n className={cn(\"relative group rounded-xl border-2 border-dashed border-border transition-colors cursor-pointer overflow-hidden\", \"hover:border-primary/50 hover:bg-muted/30\")}\n onClick={() => fileInputRef.current?.click()}\n >\n <input ref={fileInputRef} type=\"file\" accept={acceptFor(\"image\")} className=\"hidden\" onChange={(e) => { const f = e.target.files?.[0]; if (f) handleImageChange(f); }} />\n {imagePreview ? (\n <div className=\"relative aspect-square w-full\">\n <Image src={imagePreview} alt={t(\"Remix preview\")} fill unoptimized className=\"object-cover\" />\n <div className=\"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center\">\n <p className=\"text-white text-sm font-medium flex items-center gap-2\"><Upload className=\"h-4 w-4\" /> {t(\"Change image\")}</p>\n </div>\n </div>\n ) : (\n <div className=\"aspect-square flex flex-col items-center justify-center gap-3 text-muted-foreground p-8\">\n {originalImage && (\n <div className=\"relative h-20 w-20 rounded-xl overflow-hidden opacity-40 mb-1 ring-2 ring-border\">\n <Image src={originalImage} alt=\"\" fill unoptimized className=\"object-cover\" />\n </div>\n )}\n <Upload className=\"h-8 w-8\" />\n <div className=\"text-center\">\n <p className=\"text-sm font-medium\">{t(\"Upload remix artwork\")}</p>\n <p className=\"text-xs mt-0.5\">{originalImage ? t(\"Leave empty to inherit original artwork\") : t(\"PNG, JPG, GIF, WebP up to 10MB\")}</p>\n </div>\n </div>\n )}\n </div>\n </Section>\n\n <Section title={t(\"Remix Details\")} icon={<GitBranch className=\"h-4 w-4\" />}>\n <div className=\"space-y-1.5\">\n <Label>{t(\"Remix Name *\")}</Label>\n <Input value={name} onChange={(e) => setName(e.target.value)} placeholder={`Remix of ${originalName}`} />\n </div>\n <div className=\"space-y-1.5\">\n <Label>{t(\"Description\")}</Label>\n <Textarea value={description} onChange={(e) => setDescription(e.target.value)} placeholder={t(\"Describe your remix, the creative changes you're making, or your vision for it…\")} rows={3} className=\"resize-none\" />\n </div>\n </Section>\n\n <Section title={t(\"Collection\")} icon={<Boxes className=\"h-4 w-4\" />}>\n {collectionsLoading ? (\n <Skeleton className=\"h-10 w-full rounded-md\" />\n ) : eligibleCollections.length === 0 ? (\n <div className=\"rounded-lg border border-dashed border-border p-4 text-center space-y-2\">\n <p className=\"text-sm text-muted-foreground\">{t(\"No eligible collections. Create one first.\")}</p>\n <Button size=\"sm\" variant=\"outline\" asChild>\n <Link href=\"/launchpad/single-editions/collection\"><Plus className=\"h-3.5 w-3.5 mr-1.5\" />{t(\"Create collection\")}</Link>\n </Button>\n </div>\n ) : (\n <Select value={collectionKey} onValueChange={setCollectionKey}>\n <SelectTrigger><SelectValue placeholder={t(\"Select a collection\")} /></SelectTrigger>\n <SelectContent>\n {eligibleCollections.map((c) => (\n <SelectItem key={getCollectionKey(c)} value={getCollectionKey(c)}>\n <span className=\"flex items-center gap-2\">\n {c.name ?? c.contractAddress.slice(0, 14) + \"…\"}\n {c.standard && <span className=\"text-2xs tabular-nums text-muted-foreground\">{c.standard}</span>}\n </span>\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n </Section>\n\n <Section title={t(\"IP Type\")} icon={<Info className=\"h-4 w-4\" />}>\n <Select value={ipType} onValueChange={setIpType}>\n <SelectTrigger><SelectValue /></SelectTrigger>\n <SelectContent>{IP_TYPES.map((t) => <SelectItem key={t} value={t}>{t}</SelectItem>)}</SelectContent>\n </Select>\n </Section>\n\n <Section title={t(\"License Terms\")} icon={<Shield className=\"h-4 w-4\" />}>\n <div className=\"space-y-1.5\">\n <Label>{t(\"License Type\")}</Label>\n <Select value={licenseType} onValueChange={handleLicenseChange}>\n <SelectTrigger><SelectValue /></SelectTrigger>\n <SelectContent>{LICENSE_TYPES.map((l) => <SelectItem key={l.value} value={l.value}>{l.value}</SelectItem>)}</SelectContent>\n </Select>\n </div>\n <div className=\"grid grid-cols-2 gap-4\">\n <div className=\"space-y-1.5\">\n <Label className=\"text-xs text-muted-foreground uppercase tracking-wide\">{t(\"Commercial Use\")}</Label>\n <ToggleGroup value={commercial ? \"Yes\" : \"No\"} options={[\"Yes\", \"No\"]} onChange={(v) => setCommercial(v === \"Yes\")} />\n </div>\n <div className=\"space-y-1.5\">\n <Label className=\"text-xs text-muted-foreground uppercase tracking-wide\">{t(\"Derivatives\")}</Label>\n <ToggleGroup value={derivatives ? \"Allowed\" : \"Not Allowed\"} options={[\"Allowed\", \"Not Allowed\"]} onChange={(v) => setDerivatives(v === \"Allowed\")} />\n </div>\n </div>\n <Collapsible open={advancedOpen} onOpenChange={setAdvancedOpen}>\n <CollapsibleTrigger asChild>\n <button type=\"button\" className=\"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors\">\n <ChevronDown className={cn(\"h-3.5 w-3.5 transition-transform\", advancedOpen && \"rotate-180\")} />\n {t(\"Royalty & advanced\")}\n </button>\n </CollapsibleTrigger>\n <CollapsibleContent className=\"pt-3 space-y-3\">\n <div className=\"space-y-1.5\">\n <Label className=\"flex items-center gap-1.5\"><Percent className=\"h-3.5 w-3.5\" />{t(\"Royalty %\")}</Label>\n <Input type=\"number\" min=\"0\" max=\"50\" step=\"1\" placeholder=\"0\" value={royalty} onChange={(e) => setRoyalty(e.target.value)} />\n <p className=\"text-xs text-muted-foreground\">{t(\"Percentage of future sales sent back to you (0–50%)\")}</p>\n </div>\n </CollapsibleContent>\n </Collapsible>\n </Section>\n\n {formError && <p role=\"alert\" className=\"text-sm text-destructive\">{formError}</p>}\n\n <div className=\"btn-border-animated p-[1px] rounded-xl\">\n <button\n type=\"button\"\n disabled={tx.phase !== \"idle\"}\n onClick={handleSubmit}\n className=\"w-full h-12 rounded-[11px] flex items-center justify-center gap-2 text-base font-semibold text-white transition-all hover:brightness-110 active:scale-[0.98] bg-brand-rose disabled:opacity-50\"\n >\n <GitBranch className=\"h-5 w-5\" />\n {t(\"Mint Remix\")}\n </button>\n </div>\n <p className=\"text-xs text-center text-muted-foreground\">{t(\"Two operations: IPFS metadata upload + on-chain mint. Gas is free.\")}</p>\n </div>\n\n <div className=\"space-y-4 lg:sticky lg:top-16\">\n <div className=\"rounded-xl border border-border overflow-hidden bg-card\">\n <div className=\"relative aspect-square w-full bg-muted\">\n {originalImage && <Image src={originalImage} alt={originalName} fill unoptimized className=\"object-cover\" />}\n <div className=\"absolute top-2 left-2\">\n <Badge variant=\"secondary\" className=\"text-2xs gap-1\"><GitBranch className=\"h-3 w-3\" />{t(\"Original\")}</Badge>\n </div>\n </div>\n <div className=\"p-4 space-y-3\">\n <div>\n <p className=\"font-semibold truncate\">{originalName}</p>\n {token.metadata?.description && <p className=\"text-xs text-muted-foreground line-clamp-2 mt-0.5\">{token.metadata.description}</p>}\n </div>\n {(attr(\"License\") || attr(\"Commercial Use\") || attr(\"Derivatives\")) && (\n <div className=\"rounded-lg bg-muted/40 p-3 space-y-1.5 text-xs\">\n <p className=\"text-2xs font-semibold text-muted-foreground\">{t(\"Original License\")}</p>\n {attr(\"License\") && <div className=\"flex justify-between\"><span className=\"text-muted-foreground\">{t(\"License\")}</span><span className=\"font-medium\">{attr(\"License\")}</span></div>}\n {attr(\"Commercial Use\") && <div className=\"flex justify-between\"><span className=\"text-muted-foreground\">{t(\"Commercial\")}</span><span className=\"font-medium\">{attr(\"Commercial Use\")}</span></div>}\n {attr(\"Derivatives\") && <div className=\"flex justify-between\"><span className=\"text-muted-foreground\">{t(\"Derivatives\")}</span><span className=\"font-medium\">{attr(\"Derivatives\")}</span></div>}\n </div>\n )}\n </div>\n </div>\n <div className=\"rounded-xl border border-primary/20 bg-primary/5 p-4 space-y-3 text-sm\">\n <p className=\"font-semibold flex items-center gap-2\"><Info className=\"h-4 w-4 text-primary\" />{t(\"What happens next\")}</p>\n <ol className=\"space-y-2 text-muted-foreground text-xs list-decimal list-inside\">\n <li>{t(\"Your artwork and metadata are uploaded to IPFS\")}</li>\n <li>{t(\"A new NFT is minted in the selected collection\")}</li>\n <li>{t(\"Parent attribution is embedded on-chain permanently\")}</li>\n </ol>\n </div>\n </div>\n </div>\n </div>\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8NU;AA5NV,mBAA4C;AAC5C,0BAA2G;AAC3G,iBAAgG;AAChG,2BAAuC;AACvC,sBAA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gB,GAAE;AAAA,mBAAO;AAAA,gBAC7L,KAAK,aAAa,KAAK,6CAAC,SAAI,WAAU,wBAAuB;AAAA,8DAAC,UAAK,WAAU,yBAAyB,YAAE,aAAa,GAAE;AAAA,kBAAO,4CAAC,UAAK,WAAU,eAAe,eAAK,aAAa,GAAE;AAAA,mBAAO;AAAA,iBAC3L;AAAA,eAEJ;AAAA,aACF;AAAA,UACA,6CAAC,SAAI,WAAU,0EACb;AAAA,yDAAC,OAAE,WAAU,yCAAwC;AAAA,0DAAC,4BAAK,WAAU,wBAAuB;AAAA,cAAG,EAAE,mBAAmB;AAAA,eAAE;AAAA,YACtH,6CAAC,QAAG,WAAU,oEACZ;AAAA,0DAAC,QAAI,YAAE,gDAAgD,GAAE;AAAA,cACzD,4CAAC,QAAI,YAAE,gDAAgD,GAAE;AAAA,cACzD,4CAAC,QAAI,YAAE,qDAAqD,GAAE;AAAA,eAChE;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAEJ;","names":["t","Link","Image"]}
|
|
@@ -32,7 +32,9 @@ import { useToken, useTokenBalance } from "../../utils/use-tokens.js";
|
|
|
32
32
|
import { useImageUrl } from "../../utils/use-image-url.js";
|
|
33
33
|
import { useTransaction } from "../../utils/use-transaction.js";
|
|
34
34
|
import { invalidatePortfolioCache } from "../../utils/portfolio-cache.js";
|
|
35
|
+
import { useT } from "../../i18n/provider.js";
|
|
35
36
|
function RemixMint({ contract, tokenId }) {
|
|
37
|
+
const t = useT();
|
|
36
38
|
const app = useMedialaneApp();
|
|
37
39
|
const router = useRouter();
|
|
38
40
|
const resolveImage = useImageUrl();
|
|
@@ -49,7 +51,7 @@ function RemixMint({ contract, tokenId }) {
|
|
|
49
51
|
const originalName = token?.metadata?.name ?? `Token #${tokenId}`;
|
|
50
52
|
const originalImage = resolveImage(token?.metadata?.image);
|
|
51
53
|
const originalAttributes = Array.isArray(token?.metadata?.attributes) ? token.metadata.attributes : [];
|
|
52
|
-
const attr = (
|
|
54
|
+
const attr = (t2) => originalAttributes.find((a) => a.trait_type === t2)?.value;
|
|
53
55
|
const remixPolicy = resolveRemixPolicy({
|
|
54
56
|
parentNoDerivatives: getDerivativesTerm(originalAttributes) === "Not Allowed",
|
|
55
57
|
viewerIsParentOwner: viewerIsOwner,
|
|
@@ -189,7 +191,7 @@ function RemixMint({ contract, tokenId }) {
|
|
|
189
191
|
tx.reset();
|
|
190
192
|
setRemixHref(null);
|
|
191
193
|
};
|
|
192
|
-
const gate = { icon: GitBranch, title: "Connect to create a remix", description: "Connect to mint a derivative of this asset." };
|
|
194
|
+
const gate = { icon: GitBranch, title: t("Connect to create a remix"), description: t("Connect to mint a derivative of this asset.") };
|
|
193
195
|
if (tokenLoading) {
|
|
194
196
|
return /* @__PURE__ */ jsx(WalletRequired, { ...gate, children: /* @__PURE__ */ jsxs("div", { className: "max-w-5xl mx-auto px-4 pt-14 pb-8 space-y-6", children: [
|
|
195
197
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-48" }),
|
|
@@ -201,22 +203,22 @@ function RemixMint({ contract, tokenId }) {
|
|
|
201
203
|
}
|
|
202
204
|
if (!token) {
|
|
203
205
|
return /* @__PURE__ */ jsxs("div", { className: "max-w-5xl mx-auto px-4 py-24 text-center space-y-4", children: [
|
|
204
|
-
/* @__PURE__ */ jsx("p", { className: "text-2xl font-bold", children: "Asset not found" }),
|
|
205
|
-
/* @__PURE__ */ jsx(Button, { asChild: true, variant: "outline", children: /* @__PURE__ */ jsx(Link, { href: "/", children: "Go home" }) })
|
|
206
|
+
/* @__PURE__ */ jsx("p", { className: "text-2xl font-bold", children: t("Asset not found") }),
|
|
207
|
+
/* @__PURE__ */ jsx(Button, { asChild: true, variant: "outline", children: /* @__PURE__ */ jsx(Link, { href: "/", children: t("Go home") }) })
|
|
206
208
|
] });
|
|
207
209
|
}
|
|
208
210
|
return /* @__PURE__ */ jsxs(WalletRequired, { ...gate, children: [
|
|
209
|
-
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: "Mint a remix", workingLabel: "Minting your remix\u2026", firstStepLabel: "Upload to IPFS", children: /* @__PURE__ */ jsx(
|
|
211
|
+
/* @__PURE__ */ jsx(TransactionDialog, { tx, title: t("Mint a remix"), workingLabel: "Minting your remix\u2026", firstStepLabel: "Upload to IPFS", children: /* @__PURE__ */ jsx(
|
|
210
212
|
TransactionSuccess,
|
|
211
213
|
{
|
|
212
214
|
name,
|
|
213
215
|
image: imagePreview ?? originalImage ?? null,
|
|
214
|
-
title: "Remix minted",
|
|
215
|
-
description: "It is registered as a remix of the original asset and carries its own license terms.",
|
|
216
|
+
title: t("Remix minted"),
|
|
217
|
+
description: t("It is registered as a remix of the original asset and carries its own license terms."),
|
|
216
218
|
actions: [
|
|
217
|
-
...remixHref ? [{ href: remixHref, label: "View remix" }] : [],
|
|
218
|
-
{ href: "/portfolio/assets", label: "View portfolio" },
|
|
219
|
-
{ label: "Close", onClick: handleAgain }
|
|
219
|
+
...remixHref ? [{ href: remixHref, label: t("View remix") }] : [],
|
|
220
|
+
{ href: "/portfolio/assets", label: t("View portfolio") },
|
|
221
|
+
{ label: t("Close"), onClick: handleAgain }
|
|
220
222
|
],
|
|
221
223
|
children: /* @__PURE__ */ jsx(RewardEarned, { actionType: "mint_asset" })
|
|
222
224
|
}
|
|
@@ -225,18 +227,18 @@ function RemixMint({ contract, tokenId }) {
|
|
|
225
227
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
226
228
|
/* @__PURE__ */ jsxs(Link, { href: assetHref("STARKNET", contract, tokenId), className: "inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors", children: [
|
|
227
229
|
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
228
|
-
"Back to asset"
|
|
230
|
+
t("Back to asset")
|
|
229
231
|
] }),
|
|
230
232
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-primary", children: [
|
|
231
233
|
/* @__PURE__ */ jsx(GitBranch, { className: "h-5 w-5" }),
|
|
232
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold", children: "Create Remix" })
|
|
234
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold", children: t("Create Remix") })
|
|
233
235
|
] }),
|
|
234
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold", children: "Mint a Remix" }),
|
|
235
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground max-w-xl", children: "Mint a derivative work based on this asset. The parent attribution is embedded in the IPFS metadata." })
|
|
236
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold", children: t("Mint a Remix") }),
|
|
237
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground max-w-xl", children: t("Mint a derivative work based on this asset. The parent attribution is embedded in the IPFS metadata.") })
|
|
236
238
|
] }),
|
|
237
239
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-8 items-start", children: [
|
|
238
240
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
239
|
-
/* @__PURE__ */ jsx(Section, { title: "Remix Artwork", icon: /* @__PURE__ */ jsx(ImagePlus, { className: "h-4 w-4" }), children: /* @__PURE__ */ jsxs(
|
|
241
|
+
/* @__PURE__ */ jsx(Section, { title: t("Remix Artwork"), icon: /* @__PURE__ */ jsx(ImagePlus, { className: "h-4 w-4" }), children: /* @__PURE__ */ jsxs(
|
|
240
242
|
"div",
|
|
241
243
|
{
|
|
242
244
|
className: cn("relative group rounded-xl border-2 border-dashed border-border transition-colors cursor-pointer overflow-hidden", "hover:border-primary/50 hover:bg-muted/30"),
|
|
@@ -247,52 +249,53 @@ function RemixMint({ contract, tokenId }) {
|
|
|
247
249
|
if (f) handleImageChange(f);
|
|
248
250
|
} }),
|
|
249
251
|
imagePreview ? /* @__PURE__ */ jsxs("div", { className: "relative aspect-square w-full", children: [
|
|
250
|
-
/* @__PURE__ */ jsx(Image, { src: imagePreview, alt: "Remix preview", fill: true, unoptimized: true, className: "object-cover" }),
|
|
252
|
+
/* @__PURE__ */ jsx(Image, { src: imagePreview, alt: t("Remix preview"), fill: true, unoptimized: true, className: "object-cover" }),
|
|
251
253
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center", children: /* @__PURE__ */ jsxs("p", { className: "text-white text-sm font-medium flex items-center gap-2", children: [
|
|
252
254
|
/* @__PURE__ */ jsx(Upload, { className: "h-4 w-4" }),
|
|
253
|
-
"
|
|
255
|
+
" ",
|
|
256
|
+
t("Change image")
|
|
254
257
|
] }) })
|
|
255
258
|
] }) : /* @__PURE__ */ jsxs("div", { className: "aspect-square flex flex-col items-center justify-center gap-3 text-muted-foreground p-8", children: [
|
|
256
259
|
originalImage && /* @__PURE__ */ jsx("div", { className: "relative h-20 w-20 rounded-xl overflow-hidden opacity-40 mb-1 ring-2 ring-border", children: /* @__PURE__ */ jsx(Image, { src: originalImage, alt: "", fill: true, unoptimized: true, className: "object-cover" }) }),
|
|
257
260
|
/* @__PURE__ */ jsx(Upload, { className: "h-8 w-8" }),
|
|
258
261
|
/* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
259
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "Upload remix artwork" }),
|
|
260
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs mt-0.5", children: originalImage ? "Leave empty to inherit original artwork" : "PNG, JPG, GIF, WebP up to 10MB" })
|
|
262
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: t("Upload remix artwork") }),
|
|
263
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs mt-0.5", children: originalImage ? t("Leave empty to inherit original artwork") : t("PNG, JPG, GIF, WebP up to 10MB") })
|
|
261
264
|
] })
|
|
262
265
|
] })
|
|
263
266
|
]
|
|
264
267
|
}
|
|
265
268
|
) }),
|
|
266
|
-
/* @__PURE__ */ jsxs(Section, { title: "Remix Details", icon: /* @__PURE__ */ jsx(GitBranch, { className: "h-4 w-4" }), children: [
|
|
269
|
+
/* @__PURE__ */ jsxs(Section, { title: t("Remix Details"), icon: /* @__PURE__ */ jsx(GitBranch, { className: "h-4 w-4" }), children: [
|
|
267
270
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
268
|
-
/* @__PURE__ */ jsx(Label, { children: "Remix Name *" }),
|
|
271
|
+
/* @__PURE__ */ jsx(Label, { children: t("Remix Name *") }),
|
|
269
272
|
/* @__PURE__ */ jsx(Input, { value: name, onChange: (e) => setName(e.target.value), placeholder: `Remix of ${originalName}` })
|
|
270
273
|
] }),
|
|
271
274
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
272
|
-
/* @__PURE__ */ jsx(Label, { children: "Description" }),
|
|
273
|
-
/* @__PURE__ */ jsx(Textarea, { value: description, onChange: (e) => setDescription(e.target.value), placeholder: "Describe your remix, the creative changes you're making, or your vision for it\u2026", rows: 3, className: "resize-none" })
|
|
275
|
+
/* @__PURE__ */ jsx(Label, { children: t("Description") }),
|
|
276
|
+
/* @__PURE__ */ jsx(Textarea, { value: description, onChange: (e) => setDescription(e.target.value), placeholder: t("Describe your remix, the creative changes you're making, or your vision for it\u2026"), rows: 3, className: "resize-none" })
|
|
274
277
|
] })
|
|
275
278
|
] }),
|
|
276
|
-
/* @__PURE__ */ jsx(Section, { title: "Collection", icon: /* @__PURE__ */ jsx(Boxes, { className: "h-4 w-4" }), children: collectionsLoading ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full rounded-md" }) : eligibleCollections.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-dashed border-border p-4 text-center space-y-2", children: [
|
|
277
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No eligible collections. Create one first." }),
|
|
279
|
+
/* @__PURE__ */ jsx(Section, { title: t("Collection"), icon: /* @__PURE__ */ jsx(Boxes, { className: "h-4 w-4" }), children: collectionsLoading ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full rounded-md" }) : eligibleCollections.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-dashed border-border p-4 text-center space-y-2", children: [
|
|
280
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("No eligible collections. Create one first.") }),
|
|
278
281
|
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", asChild: true, children: /* @__PURE__ */ jsxs(Link, { href: "/launchpad/single-editions/collection", children: [
|
|
279
282
|
/* @__PURE__ */ jsx(Plus, { className: "h-3.5 w-3.5 mr-1.5" }),
|
|
280
|
-
"Create collection"
|
|
283
|
+
t("Create collection")
|
|
281
284
|
] }) })
|
|
282
285
|
] }) : /* @__PURE__ */ jsxs(Select, { value: collectionKey, onValueChange: setCollectionKey, children: [
|
|
283
|
-
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select a collection" }) }),
|
|
286
|
+
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: t("Select a collection") }) }),
|
|
284
287
|
/* @__PURE__ */ jsx(SelectContent, { children: eligibleCollections.map((c) => /* @__PURE__ */ jsx(SelectItem, { value: getCollectionKey(c), children: /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
|
|
285
288
|
c.name ?? c.contractAddress.slice(0, 14) + "\u2026",
|
|
286
289
|
c.standard && /* @__PURE__ */ jsx("span", { className: "text-2xs tabular-nums text-muted-foreground", children: c.standard })
|
|
287
290
|
] }) }, getCollectionKey(c))) })
|
|
288
291
|
] }) }),
|
|
289
|
-
/* @__PURE__ */ jsx(Section, { title: "IP Type", icon: /* @__PURE__ */ jsx(Info, { className: "h-4 w-4" }), children: /* @__PURE__ */ jsxs(Select, { value: ipType, onValueChange: setIpType, children: [
|
|
292
|
+
/* @__PURE__ */ jsx(Section, { title: t("IP Type"), icon: /* @__PURE__ */ jsx(Info, { className: "h-4 w-4" }), children: /* @__PURE__ */ jsxs(Select, { value: ipType, onValueChange: setIpType, children: [
|
|
290
293
|
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
291
|
-
/* @__PURE__ */ jsx(SelectContent, { children: IP_TYPES.map((
|
|
294
|
+
/* @__PURE__ */ jsx(SelectContent, { children: IP_TYPES.map((t2) => /* @__PURE__ */ jsx(SelectItem, { value: t2, children: t2 }, t2)) })
|
|
292
295
|
] }) }),
|
|
293
|
-
/* @__PURE__ */ jsxs(Section, { title: "License Terms", icon: /* @__PURE__ */ jsx(Shield, { className: "h-4 w-4" }), children: [
|
|
296
|
+
/* @__PURE__ */ jsxs(Section, { title: t("License Terms"), icon: /* @__PURE__ */ jsx(Shield, { className: "h-4 w-4" }), children: [
|
|
294
297
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
295
|
-
/* @__PURE__ */ jsx(Label, { children: "License Type" }),
|
|
298
|
+
/* @__PURE__ */ jsx(Label, { children: t("License Type") }),
|
|
296
299
|
/* @__PURE__ */ jsxs(Select, { value: licenseType, onValueChange: handleLicenseChange, children: [
|
|
297
300
|
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
298
301
|
/* @__PURE__ */ jsx(SelectContent, { children: LICENSE_TYPES.map((l) => /* @__PURE__ */ jsx(SelectItem, { value: l.value, children: l.value }, l.value)) })
|
|
@@ -300,26 +303,26 @@ function RemixMint({ contract, tokenId }) {
|
|
|
300
303
|
] }),
|
|
301
304
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
302
305
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
303
|
-
/* @__PURE__ */ jsx(Label, { className: "text-xs text-muted-foreground uppercase tracking-wide", children: "Commercial Use" }),
|
|
306
|
+
/* @__PURE__ */ jsx(Label, { className: "text-xs text-muted-foreground uppercase tracking-wide", children: t("Commercial Use") }),
|
|
304
307
|
/* @__PURE__ */ jsx(ToggleGroup, { value: commercial ? "Yes" : "No", options: ["Yes", "No"], onChange: (v) => setCommercial(v === "Yes") })
|
|
305
308
|
] }),
|
|
306
309
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
307
|
-
/* @__PURE__ */ jsx(Label, { className: "text-xs text-muted-foreground uppercase tracking-wide", children: "Derivatives" }),
|
|
310
|
+
/* @__PURE__ */ jsx(Label, { className: "text-xs text-muted-foreground uppercase tracking-wide", children: t("Derivatives") }),
|
|
308
311
|
/* @__PURE__ */ jsx(ToggleGroup, { value: derivatives ? "Allowed" : "Not Allowed", options: ["Allowed", "Not Allowed"], onChange: (v) => setDerivatives(v === "Allowed") })
|
|
309
312
|
] })
|
|
310
313
|
] }),
|
|
311
314
|
/* @__PURE__ */ jsxs(Collapsible, { open: advancedOpen, onOpenChange: setAdvancedOpen, children: [
|
|
312
315
|
/* @__PURE__ */ jsx(CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { type: "button", className: "flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors", children: [
|
|
313
316
|
/* @__PURE__ */ jsx(ChevronDown, { className: cn("h-3.5 w-3.5 transition-transform", advancedOpen && "rotate-180") }),
|
|
314
|
-
"Royalty & advanced"
|
|
317
|
+
t("Royalty & advanced")
|
|
315
318
|
] }) }),
|
|
316
319
|
/* @__PURE__ */ jsx(CollapsibleContent, { className: "pt-3 space-y-3", children: /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
317
320
|
/* @__PURE__ */ jsxs(Label, { className: "flex items-center gap-1.5", children: [
|
|
318
321
|
/* @__PURE__ */ jsx(Percent, { className: "h-3.5 w-3.5" }),
|
|
319
|
-
"Royalty %"
|
|
322
|
+
t("Royalty %")
|
|
320
323
|
] }),
|
|
321
324
|
/* @__PURE__ */ jsx(Input, { type: "number", min: "0", max: "50", step: "1", placeholder: "0", value: royalty, onChange: (e) => setRoyalty(e.target.value) }),
|
|
322
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Percentage of future sales sent back to you (0\u201350%)" })
|
|
325
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: t("Percentage of future sales sent back to you (0\u201350%)") })
|
|
323
326
|
] }) })
|
|
324
327
|
] })
|
|
325
328
|
] }),
|
|
@@ -333,11 +336,11 @@ function RemixMint({ contract, tokenId }) {
|
|
|
333
336
|
className: "w-full h-12 rounded-[11px] flex items-center justify-center gap-2 text-base font-semibold text-white transition-all hover:brightness-110 active:scale-[0.98] bg-brand-rose disabled:opacity-50",
|
|
334
337
|
children: [
|
|
335
338
|
/* @__PURE__ */ jsx(GitBranch, { className: "h-5 w-5" }),
|
|
336
|
-
"Mint Remix"
|
|
339
|
+
t("Mint Remix")
|
|
337
340
|
]
|
|
338
341
|
}
|
|
339
342
|
) }),
|
|
340
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-center text-muted-foreground", children: "Two operations: IPFS metadata upload + on-chain mint. Gas is free." })
|
|
343
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-center text-muted-foreground", children: t("Two operations: IPFS metadata upload + on-chain mint. Gas is free.") })
|
|
341
344
|
] }),
|
|
342
345
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4 lg:sticky lg:top-16", children: [
|
|
343
346
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border overflow-hidden bg-card", children: [
|
|
@@ -345,7 +348,7 @@ function RemixMint({ contract, tokenId }) {
|
|
|
345
348
|
originalImage && /* @__PURE__ */ jsx(Image, { src: originalImage, alt: originalName, fill: true, unoptimized: true, className: "object-cover" }),
|
|
346
349
|
/* @__PURE__ */ jsx("div", { className: "absolute top-2 left-2", children: /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "text-2xs gap-1", children: [
|
|
347
350
|
/* @__PURE__ */ jsx(GitBranch, { className: "h-3 w-3" }),
|
|
348
|
-
"Original"
|
|
351
|
+
t("Original")
|
|
349
352
|
] }) })
|
|
350
353
|
] }),
|
|
351
354
|
/* @__PURE__ */ jsxs("div", { className: "p-4 space-y-3", children: [
|
|
@@ -354,17 +357,17 @@ function RemixMint({ contract, tokenId }) {
|
|
|
354
357
|
token.metadata?.description && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground line-clamp-2 mt-0.5", children: token.metadata.description })
|
|
355
358
|
] }),
|
|
356
359
|
(attr("License") || attr("Commercial Use") || attr("Derivatives")) && /* @__PURE__ */ jsxs("div", { className: "rounded-lg bg-muted/40 p-3 space-y-1.5 text-xs", children: [
|
|
357
|
-
/* @__PURE__ */ jsx("p", { className: "text-2xs font-semibold text-muted-foreground", children: "Original License" }),
|
|
360
|
+
/* @__PURE__ */ jsx("p", { className: "text-2xs font-semibold text-muted-foreground", children: t("Original License") }),
|
|
358
361
|
attr("License") && /* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
|
|
359
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "License" }),
|
|
362
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("License") }),
|
|
360
363
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: attr("License") })
|
|
361
364
|
] }),
|
|
362
365
|
attr("Commercial Use") && /* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
|
|
363
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Commercial" }),
|
|
366
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("Commercial") }),
|
|
364
367
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: attr("Commercial Use") })
|
|
365
368
|
] }),
|
|
366
369
|
attr("Derivatives") && /* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
|
|
367
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Derivatives" }),
|
|
370
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("Derivatives") }),
|
|
368
371
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: attr("Derivatives") })
|
|
369
372
|
] })
|
|
370
373
|
] })
|
|
@@ -373,12 +376,12 @@ function RemixMint({ contract, tokenId }) {
|
|
|
373
376
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-primary/20 bg-primary/5 p-4 space-y-3 text-sm", children: [
|
|
374
377
|
/* @__PURE__ */ jsxs("p", { className: "font-semibold flex items-center gap-2", children: [
|
|
375
378
|
/* @__PURE__ */ jsx(Info, { className: "h-4 w-4 text-primary" }),
|
|
376
|
-
"What happens next"
|
|
379
|
+
t("What happens next")
|
|
377
380
|
] }),
|
|
378
381
|
/* @__PURE__ */ jsxs("ol", { className: "space-y-2 text-muted-foreground text-xs list-decimal list-inside", children: [
|
|
379
|
-
/* @__PURE__ */ jsx("li", { children: "Your artwork and metadata are uploaded to IPFS" }),
|
|
380
|
-
/* @__PURE__ */ jsx("li", { children: "A new NFT is minted in the selected collection" }),
|
|
381
|
-
/* @__PURE__ */ jsx("li", { children: "Parent attribution is embedded on-chain permanently" })
|
|
382
|
+
/* @__PURE__ */ jsx("li", { children: t("Your artwork and metadata are uploaded to IPFS") }),
|
|
383
|
+
/* @__PURE__ */ jsx("li", { children: t("A new NFT is minted in the selected collection") }),
|
|
384
|
+
/* @__PURE__ */ jsx("li", { children: t("Parent attribution is embedded on-chain permanently") })
|
|
382
385
|
] })
|
|
383
386
|
] })
|
|
384
387
|
] })
|