@medialane/ui 0.397.0 → 0.398.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/account/add-guardian-dialog.cjs +3 -2
- package/dist/components/account/add-guardian-dialog.cjs.map +1 -1
- package/dist/components/account/add-guardian-dialog.js +3 -2
- package/dist/components/account/add-guardian-dialog.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 +7 -7
- package/dist/components/approve-mint-dialog.cjs.map +1 -1
- package/dist/components/approve-mint-dialog.js +7 -7
- package/dist/components/approve-mint-dialog.js.map +1 -1
- package/dist/components/asset-picker.cjs +5 -5
- package/dist/components/asset-picker.cjs.map +1 -1
- package/dist/components/asset-picker.js +5 -5
- package/dist/components/asset-picker.js.map +1 -1
- package/dist/components/asset-search-picker.cjs +1 -1
- package/dist/components/asset-search-picker.cjs.map +1 -1
- package/dist/components/asset-search-picker.js +1 -1
- package/dist/components/asset-search-picker.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/coin-launch-preview.cjs +1 -1
- package/dist/components/coin-launch-preview.cjs.map +1 -1
- package/dist/components/coin-launch-preview.js +1 -1
- package/dist/components/coin-launch-preview.js.map +1 -1
- package/dist/components/create-aside.cjs +140 -0
- package/dist/components/create-aside.cjs.map +1 -0
- package/dist/components/create-aside.d.cts +101 -0
- package/dist/components/create-aside.d.ts +101 -0
- package/dist/components/create-aside.js +133 -0
- package/dist/components/create-aside.js.map +1 -0
- package/dist/components/create-sponsorship-aside.cjs +1 -1
- package/dist/components/create-sponsorship-aside.cjs.map +1 -1
- package/dist/components/create-sponsorship-aside.js +1 -1
- package/dist/components/create-sponsorship-aside.js.map +1 -1
- package/dist/components/drop/create/asset-editor.cjs +38 -33
- package/dist/components/drop/create/asset-editor.cjs.map +1 -1
- package/dist/components/drop/create/asset-editor.js +39 -34
- package/dist/components/drop/create/asset-editor.js.map +1 -1
- package/dist/components/drop/create/assets-panel.cjs +9 -9
- package/dist/components/drop/create/assets-panel.cjs.map +1 -1
- package/dist/components/drop/create/assets-panel.js +9 -9
- package/dist/components/drop/create/assets-panel.js.map +1 -1
- package/dist/components/drop/create/collection-panel.cjs +20 -8
- package/dist/components/drop/create/collection-panel.cjs.map +1 -1
- package/dist/components/drop/create/collection-panel.js +21 -9
- package/dist/components/drop/create/collection-panel.js.map +1 -1
- package/dist/components/drop/create/drop-create.cjs +2 -2
- package/dist/components/drop/create/drop-create.cjs.map +1 -1
- package/dist/components/drop/create/drop-create.js +2 -2
- package/dist/components/drop/create/drop-create.js.map +1 -1
- package/dist/components/drop/create/drop-fields.cjs +4 -5
- package/dist/components/drop/create/drop-fields.cjs.map +1 -1
- package/dist/components/drop/create/drop-fields.js +4 -5
- package/dist/components/drop/create/drop-fields.js.map +1 -1
- package/dist/components/drop/create/launch-dialog.cjs +1 -1
- package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
- package/dist/components/drop/create/launch-dialog.js +1 -1
- package/dist/components/drop/create/launch-dialog.js.map +1 -1
- package/dist/components/drop/create/settings-panel.cjs +1 -1
- package/dist/components/drop/create/settings-panel.cjs.map +1 -1
- package/dist/components/drop/create/settings-panel.js +1 -1
- package/dist/components/drop/create/settings-panel.js.map +1 -1
- package/dist/components/external-link-field.cjs +1 -2
- package/dist/components/external-link-field.cjs.map +1 -1
- package/dist/components/external-link-field.js +2 -3
- package/dist/components/external-link-field.js.map +1 -1
- package/dist/components/fast-mint/asset-form-parts.d.cts +2 -0
- package/dist/components/fast-mint/asset-form-parts.d.ts +2 -0
- package/dist/components/fast-mint/collection-section.cjs +8 -9
- package/dist/components/fast-mint/collection-section.cjs.map +1 -1
- package/dist/components/fast-mint/collection-section.d.cts +2 -2
- package/dist/components/fast-mint/collection-section.d.ts +2 -2
- package/dist/components/fast-mint/collection-section.js +8 -9
- package/dist/components/fast-mint/collection-section.js.map +1 -1
- package/dist/components/fast-mint/create-then-add.cjs +4 -5
- package/dist/components/fast-mint/create-then-add.cjs.map +1 -1
- package/dist/components/fast-mint/create-then-add.d.cts +2 -3
- package/dist/components/fast-mint/create-then-add.d.ts +2 -3
- package/dist/components/fast-mint/create-then-add.js +4 -5
- package/dist/components/fast-mint/create-then-add.js.map +1 -1
- package/dist/components/fast-mint/dropzone.cjs +8 -1
- package/dist/components/fast-mint/dropzone.cjs.map +1 -1
- package/dist/components/fast-mint/dropzone.js +8 -1
- package/dist/components/fast-mint/dropzone.js.map +1 -1
- package/dist/components/fast-mint/fast-mint.cjs +25 -16
- package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
- package/dist/components/fast-mint/fast-mint.js +25 -16
- package/dist/components/fast-mint/fast-mint.js.map +1 -1
- package/dist/components/fast-mint/formats/nft.cjs +12 -12
- package/dist/components/fast-mint/formats/nft.cjs.map +1 -1
- package/dist/components/fast-mint/formats/nft.d.cts +2 -0
- package/dist/components/fast-mint/formats/nft.d.ts +2 -0
- package/dist/components/fast-mint/formats/nft.js +12 -12
- package/dist/components/fast-mint/formats/nft.js.map +1 -1
- package/dist/components/fast-mint/formats/pop.cjs +4 -4
- package/dist/components/fast-mint/formats/pop.cjs.map +1 -1
- package/dist/components/fast-mint/formats/pop.d.cts +2 -0
- package/dist/components/fast-mint/formats/pop.d.ts +2 -0
- package/dist/components/fast-mint/formats/pop.js +4 -4
- package/dist/components/fast-mint/formats/pop.js.map +1 -1
- package/dist/components/fast-mint/formats/registry.d.cts +2 -0
- package/dist/components/fast-mint/formats/registry.d.ts +2 -0
- package/dist/components/fast-mint/formats/tiers.cjs +25 -16
- package/dist/components/fast-mint/formats/tiers.cjs.map +1 -1
- package/dist/components/fast-mint/formats/tiers.d.cts +2 -0
- package/dist/components/fast-mint/formats/tiers.d.ts +2 -0
- package/dist/components/fast-mint/formats/tiers.js +25 -16
- package/dist/components/fast-mint/formats/tiers.js.map +1 -1
- package/dist/components/fast-mint/formats/types.cjs.map +1 -1
- package/dist/components/fast-mint/formats/types.d.cts +3 -1
- package/dist/components/fast-mint/formats/types.d.ts +3 -1
- package/dist/components/fast-mint/formats/types.js.map +1 -1
- package/dist/components/fast-mint/ip-type-section.cjs +2 -2
- package/dist/components/fast-mint/ip-type-section.cjs.map +1 -1
- package/dist/components/fast-mint/ip-type-section.js +2 -2
- package/dist/components/fast-mint/ip-type-section.js.map +1 -1
- package/dist/components/fast-mint/success-view.d.cts +2 -0
- package/dist/components/fast-mint/success-view.d.ts +2 -0
- package/dist/components/image-upload-field.cjs +2 -3
- package/dist/components/image-upload-field.cjs.map +1 -1
- package/dist/components/image-upload-field.d.cts +2 -2
- package/dist/components/image-upload-field.d.ts +2 -2
- package/dist/components/image-upload-field.js +2 -3
- package/dist/components/image-upload-field.js.map +1 -1
- package/dist/components/ip-type-fields.cjs +7 -6
- package/dist/components/ip-type-fields.cjs.map +1 -1
- package/dist/components/ip-type-fields.js +7 -6
- package/dist/components/ip-type-fields.js.map +1 -1
- package/dist/components/launchpad/coin-create.cjs +2 -2
- package/dist/components/launchpad/coin-create.cjs.map +1 -1
- package/dist/components/launchpad/coin-create.js +2 -2
- package/dist/components/launchpad/coin-create.js.map +1 -1
- package/dist/components/launchpad/collection-create-form.cjs +11 -12
- package/dist/components/launchpad/collection-create-form.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-form.js +11 -12
- package/dist/components/launchpad/collection-create-form.js.map +1 -1
- package/dist/components/launchpad/collection-create-presets.cjs +31 -37
- package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
- package/dist/components/launchpad/collection-create-presets.d.cts +0 -3
- package/dist/components/launchpad/collection-create-presets.d.ts +0 -3
- package/dist/components/launchpad/collection-create-presets.js +31 -37
- package/dist/components/launchpad/collection-create-presets.js.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.cjs +13 -22
- package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint-fields.d.cts +1 -0
- package/dist/components/launchpad/edition-mint-fields.d.ts +1 -0
- package/dist/components/launchpad/edition-mint-fields.js +14 -23
- package/dist/components/launchpad/edition-mint-fields.js.map +1 -1
- package/dist/components/launchpad/edition-mint-schema.cjs +5 -4
- package/dist/components/launchpad/edition-mint-schema.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint-schema.js +5 -4
- package/dist/components/launchpad/edition-mint-schema.js.map +1 -1
- package/dist/components/launchpad/edition-mint.cjs +16 -14
- package/dist/components/launchpad/edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/edition-mint.js +16 -14
- package/dist/components/launchpad/edition-mint.js.map +1 -1
- package/dist/components/launchpad/pop-create-fields.cjs +34 -39
- package/dist/components/launchpad/pop-create-fields.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-fields.d.cts +1 -0
- package/dist/components/launchpad/pop-create-fields.d.ts +1 -0
- package/dist/components/launchpad/pop-create-fields.js +34 -39
- package/dist/components/launchpad/pop-create-fields.js.map +1 -1
- package/dist/components/launchpad/pop-create-schema.cjs +2 -2
- package/dist/components/launchpad/pop-create-schema.cjs.map +1 -1
- package/dist/components/launchpad/pop-create-schema.js +2 -2
- package/dist/components/launchpad/pop-create-schema.js.map +1 -1
- package/dist/components/launchpad/pop-create.cjs +4 -4
- package/dist/components/launchpad/pop-create.cjs.map +1 -1
- package/dist/components/launchpad/pop-create.js +4 -4
- package/dist/components/launchpad/pop-create.js.map +1 -1
- package/dist/components/launchpad/remix-mint.cjs +32 -26
- package/dist/components/launchpad/remix-mint.cjs.map +1 -1
- package/dist/components/launchpad/remix-mint.js +32 -26
- package/dist/components/launchpad/remix-mint.js.map +1 -1
- package/dist/components/launchpad/single-edition-mint.cjs +27 -24
- package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
- package/dist/components/launchpad/single-edition-mint.js +27 -24
- package/dist/components/launchpad/single-edition-mint.js.map +1 -1
- package/dist/components/launchpad/sponsorship-create.cjs +17 -16
- package/dist/components/launchpad/sponsorship-create.cjs.map +1 -1
- package/dist/components/launchpad/sponsorship-create.js +17 -16
- package/dist/components/launchpad/sponsorship-create.js.map +1 -1
- package/dist/components/launchpad/tier-mint-form.cjs +8 -16
- package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-form.js +8 -16
- package/dist/components/launchpad/tier-mint-form.js.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.cjs +21 -17
- package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
- package/dist/components/launchpad/tier-mint-presets.d.cts +2 -0
- package/dist/components/launchpad/tier-mint-presets.d.ts +2 -0
- package/dist/components/launchpad/tier-mint-presets.js +21 -17
- package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
- package/dist/components/license-terms-builder.cjs +4 -4
- package/dist/components/license-terms-builder.cjs.map +1 -1
- package/dist/components/license-terms-builder.js +4 -4
- package/dist/components/license-terms-builder.js.map +1 -1
- package/dist/components/medialane-collection-card.cjs +1 -1
- package/dist/components/medialane-collection-card.cjs.map +1 -1
- package/dist/components/medialane-collection-card.js +1 -1
- package/dist/components/medialane-collection-card.js.map +1 -1
- package/dist/components/report-dialog.cjs +3 -3
- package/dist/components/report-dialog.cjs.map +1 -1
- package/dist/components/report-dialog.js +3 -3
- package/dist/components/report-dialog.js.map +1 -1
- package/dist/components/transaction-dialog.cjs +2 -2
- package/dist/components/transaction-dialog.cjs.map +1 -1
- package/dist/components/transaction-dialog.js +2 -2
- package/dist/components/transaction-dialog.js.map +1 -1
- package/dist/components/transfer-dialog.cjs +2 -1
- package/dist/components/transfer-dialog.cjs.map +1 -1
- package/dist/components/transfer-dialog.js +2 -1
- package/dist/components/transfer-dialog.js.map +1 -1
- package/dist/components/wallet/export-key-section.cjs +3 -2
- package/dist/components/wallet/export-key-section.cjs.map +1 -1
- package/dist/components/wallet/export-key-section.js +3 -2
- package/dist/components/wallet/export-key-section.js.map +1 -1
- package/dist/data/ip-templates.cjs +3 -3
- package/dist/data/ip-templates.cjs.map +1 -1
- package/dist/data/ip-templates.js +3 -3
- package/dist/data/ip-templates.js.map +1 -1
- package/dist/data/launchpad-services.cjs +21 -21
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.js +21 -21
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/data/nav-commands.cjs +5 -5
- package/dist/data/nav-commands.cjs.map +1 -1
- package/dist/data/nav-commands.js +5 -5
- package/dist/data/nav-commands.js.map +1 -1
- package/dist/i18n/catalog/pt.cjs +276 -200
- package/dist/i18n/catalog/pt.cjs.map +1 -1
- package/dist/i18n/catalog/pt.js +276 -200
- package/dist/i18n/catalog/pt.js.map +1 -1
- package/dist/i18n/tools/scan.cjs +47 -2
- package/dist/i18n/tools/scan.cjs.map +1 -1
- package/dist/i18n/tools/scan.d.cts +6 -1
- package/dist/i18n/tools/scan.d.ts +6 -1
- package/dist/i18n/tools/scan.js +45 -1
- package/dist/i18n/tools/scan.js.map +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/drop/draft.cjs +3 -3
- package/dist/utils/drop/draft.cjs.map +1 -1
- package/dist/utils/drop/draft.js +3 -3
- package/dist/utils/drop/draft.js.map +1 -1
- package/dist/utils/ipfs-upload.cjs +10 -1
- package/dist/utils/ipfs-upload.cjs.map +1 -1
- package/dist/utils/ipfs-upload.d.cts +2 -1
- package/dist/utils/ipfs-upload.d.ts +2 -1
- package/dist/utils/ipfs-upload.js +10 -2
- package/dist/utils/ipfs-upload.js.map +1 -1
- package/dist/utils/launchpad-rules.cjs +4 -3
- package/dist/utils/launchpad-rules.cjs.map +1 -1
- package/dist/utils/launchpad-rules.d.cts +1 -1
- package/dist/utils/launchpad-rules.d.ts +1 -1
- package/dist/utils/launchpad-rules.js +4 -3
- package/dist/utils/launchpad-rules.js.map +1 -1
- package/dist/utils/order-form.cjs +3 -2
- package/dist/utils/order-form.cjs.map +1 -1
- package/dist/utils/order-form.js +3 -2
- package/dist/utils/order-form.js.map +1 -1
- package/dist/utils/upload-limits.cjs +10 -4
- package/dist/utils/upload-limits.cjs.map +1 -1
- package/dist/utils/upload-limits.d.cts +2 -1
- package/dist/utils/upload-limits.d.ts +2 -1
- package/dist/utils/upload-limits.js +11 -5
- package/dist/utils/upload-limits.js.map +1 -1
- package/dist/utils/use-file-upload.cjs +1 -1
- package/dist/utils/use-file-upload.cjs.map +1 -1
- package/dist/utils/use-file-upload.d.cts +2 -1
- package/dist/utils/use-file-upload.d.ts +2 -1
- package/dist/utils/use-file-upload.js +1 -1
- package/dist/utils/use-file-upload.js.map +1 -1
- package/dist/utils/use-image-upload.d.cts +1 -0
- package/dist/utils/use-image-upload.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,16 +33,15 @@ const CLUB_PRESET = {
|
|
|
33
33
|
iconClass: "text-brand-purple",
|
|
34
34
|
signedOut: { title: (0, import_translate.msg)("Secure your account to create a club"), description: (0, import_translate.msg)("Create a club with membership cards.") },
|
|
35
35
|
shell: { title: (0, import_translate.msg)("Create club"), subtitle: (0, import_translate.msg)("One club with many tiers.") },
|
|
36
|
-
dialog: { title: (0, import_translate.msg)("Create club"), workingLabel: (0, import_translate.msg)("Creating your club\u2026"), firstStepLabel: (0, import_translate.msg)("
|
|
37
|
-
success: { title: (0, import_translate.msg)("Club created"), description: (0, import_translate.msg)("Each membership you create is
|
|
38
|
-
cardFallbackSymbol: "Club",
|
|
36
|
+
dialog: { title: (0, import_translate.msg)("Create club"), workingLabel: (0, import_translate.msg)("Creating your club\u2026"), firstStepLabel: (0, import_translate.msg)("Saving details") },
|
|
37
|
+
success: { title: (0, import_translate.msg)("Club created"), description: (0, import_translate.msg)("Each membership you create is saved permanently as yours."), fallbackName: (0, import_translate.msg)("Your club"), reward: (0, import_translate.msg)("create_club"), againLabel: (0, import_translate.msg)("Create another") },
|
|
38
|
+
cardFallbackSymbol: (0, import_translate.msg)("Club"),
|
|
39
39
|
copy: {
|
|
40
|
-
imageHeading: (0, import_translate.msg)("
|
|
41
|
-
nameLabel: (0, import_translate.msg)("
|
|
40
|
+
imageHeading: (0, import_translate.msg)("Cover image"),
|
|
41
|
+
nameLabel: (0, import_translate.msg)("Name"),
|
|
42
42
|
namePlaceholder: (0, import_translate.msg)("My Club"),
|
|
43
|
-
nameHint: (0, import_translate.msg)("Shown on every card."),
|
|
44
43
|
symbolPlaceholder: (0, import_translate.msg)("CLUB"),
|
|
45
|
-
symbolHint: (0, import_translate.msg)("2 to 10
|
|
44
|
+
symbolHint: (0, import_translate.msg)("2 to 10 letters."),
|
|
46
45
|
descriptionPlaceholder: (0, import_translate.msg)("What membership unlocks"),
|
|
47
46
|
submit: (0, import_translate.msg)("Create club"),
|
|
48
47
|
footnotes: [FREE]
|
|
@@ -57,16 +56,15 @@ const TICKETS_PRESET = {
|
|
|
57
56
|
iconClass: "text-brand-blue",
|
|
58
57
|
signedOut: { title: (0, import_translate.msg)("Secure your account to create tickets"), description: (0, import_translate.msg)("Create a tickets collection.") },
|
|
59
58
|
shell: { title: (0, import_translate.msg)("Create ticket collection"), subtitle: (0, import_translate.msg)("One collection with many tickets.") },
|
|
60
|
-
dialog: { title: (0, import_translate.msg)("Create tickets collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("
|
|
61
|
-
success: { title: (0, import_translate.msg)("Ticket collection created"), description: (0, import_translate.msg)("Each ticket you
|
|
62
|
-
cardFallbackSymbol: "Tickets",
|
|
59
|
+
dialog: { title: (0, import_translate.msg)("Create tickets collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("Saving details") },
|
|
60
|
+
success: { title: (0, import_translate.msg)("Ticket collection created"), description: (0, import_translate.msg)("Each ticket you publish in it is saved permanently as yours."), fallbackName: (0, import_translate.msg)("Your collection"), reward: (0, import_translate.msg)("create_ticket_collection"), againLabel: (0, import_translate.msg)("Create another") },
|
|
61
|
+
cardFallbackSymbol: (0, import_translate.msg)("Tickets"),
|
|
63
62
|
copy: {
|
|
64
|
-
imageHeading: (0, import_translate.msg)("
|
|
65
|
-
nameLabel: (0, import_translate.msg)("
|
|
63
|
+
imageHeading: (0, import_translate.msg)("Cover image"),
|
|
64
|
+
nameLabel: (0, import_translate.msg)("Name"),
|
|
66
65
|
namePlaceholder: (0, import_translate.msg)("My tickets"),
|
|
67
|
-
nameHint: (0, import_translate.msg)("Shown on every ticket."),
|
|
68
66
|
symbolPlaceholder: (0, import_translate.msg)("TIX"),
|
|
69
|
-
symbolHint: (0, import_translate.msg)("2 to 10
|
|
67
|
+
symbolHint: (0, import_translate.msg)("2 to 10 letters."),
|
|
70
68
|
descriptionPlaceholder: (0, import_translate.msg)("What the tickets unlock"),
|
|
71
69
|
submit: (0, import_translate.msg)("Create ticket collection"),
|
|
72
70
|
footnotes: [FREE]
|
|
@@ -81,29 +79,26 @@ const EDITIONS_PRESET = {
|
|
|
81
79
|
iconClass: "text-brand-purple",
|
|
82
80
|
signedOut: { title: (0, import_translate.msg)("Secure your account to create a collection"), description: (0, import_translate.msg)("Create a collection where each piece can have multiple editions.") },
|
|
83
81
|
shell: { title: (0, import_translate.msg)("Create an edition collection"), subtitle: (0, import_translate.msg)("A collection with many editions per piece.") },
|
|
84
|
-
dialog: { title: (0, import_translate.msg)("Create collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("
|
|
85
|
-
success: { title: (0, import_translate.msg)("Collection created"), description: (0, import_translate.msg)("Each
|
|
86
|
-
cardFallbackSymbol: "Editions",
|
|
82
|
+
dialog: { title: (0, import_translate.msg)("Create collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("Saving details") },
|
|
83
|
+
success: { title: (0, import_translate.msg)("Collection created"), description: (0, import_translate.msg)("Each work you publish in it has its own license terms."), fallbackName: (0, import_translate.msg)("Your collection"), reward: (0, import_translate.msg)("create_collection"), againLabel: (0, import_translate.msg)("Create another") },
|
|
84
|
+
cardFallbackSymbol: (0, import_translate.msg)("Editions"),
|
|
87
85
|
copy: {
|
|
88
|
-
imageHeading: (0, import_translate.msg)("
|
|
89
|
-
|
|
90
|
-
nameLabel: (0, import_translate.msg)("Collection name *"),
|
|
86
|
+
imageHeading: (0, import_translate.msg)("Cover image"),
|
|
87
|
+
nameLabel: (0, import_translate.msg)("Name"),
|
|
91
88
|
namePlaceholder: (0, import_translate.msg)("My Creative Works"),
|
|
92
|
-
nameHint: (0, import_translate.msg)("The title collectors see."),
|
|
93
89
|
symbolPlaceholder: (0, import_translate.msg)("MCW"),
|
|
94
|
-
symbolHint: (0, import_translate.msg)("2 to 10
|
|
95
|
-
descriptionPlaceholder: (0, import_translate.msg)("
|
|
96
|
-
|
|
97
|
-
submit: (0, import_translate.msg)("Publish collection"),
|
|
90
|
+
symbolHint: (0, import_translate.msg)("2 to 10 letters."),
|
|
91
|
+
descriptionPlaceholder: (0, import_translate.msg)("What this collection is about"),
|
|
92
|
+
submit: (0, import_translate.msg)("Create collection"),
|
|
98
93
|
footnotes: [
|
|
99
94
|
FREE,
|
|
100
|
-
(0, import_translate.msg)("Next step:
|
|
95
|
+
(0, import_translate.msg)("Next step: publish work in this collection.")
|
|
101
96
|
]
|
|
102
97
|
},
|
|
103
98
|
suggestSymbol: true,
|
|
104
99
|
registerAfterDeploy: true,
|
|
105
100
|
actions: ({ address, collectionHref }) => ({
|
|
106
|
-
primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: (0, import_translate.msg)("
|
|
101
|
+
primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: (0, import_translate.msg)("Publish an edition") } : void 0,
|
|
107
102
|
secondary: collectionHref ? { href: collectionHref, label: (0, import_translate.msg)("View collection") } : void 0
|
|
108
103
|
})
|
|
109
104
|
};
|
|
@@ -111,26 +106,25 @@ const SINGLE_PRESET = {
|
|
|
111
106
|
service: null,
|
|
112
107
|
icon: import_lucide_react.Layers,
|
|
113
108
|
iconClass: "text-brand-blue",
|
|
114
|
-
signedOut: { title: (0, import_translate.msg)("Secure your account to create a collection"), description: (0, import_translate.msg)("Set up a collection
|
|
109
|
+
signedOut: { title: (0, import_translate.msg)("Secure your account to create a collection"), description: (0, import_translate.msg)("Set up a collection for your work.") },
|
|
115
110
|
shell: { title: (0, import_translate.msg)("Create a collection"), subtitle: (0, import_translate.msg)("A collection for your work.") },
|
|
116
|
-
dialog: { title: (0, import_translate.msg)("Create collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("
|
|
117
|
-
success: { title: (0, import_translate.msg)("Collection created"), description: (0, import_translate.msg)("Each
|
|
118
|
-
cardFallbackSymbol: "Collection",
|
|
111
|
+
dialog: { title: (0, import_translate.msg)("Create collection"), workingLabel: (0, import_translate.msg)("Creating your collection\u2026"), firstStepLabel: (0, import_translate.msg)("Saving details") },
|
|
112
|
+
success: { title: (0, import_translate.msg)("Collection created"), description: (0, import_translate.msg)("Each work you publish in it has its own license terms."), fallbackName: (0, import_translate.msg)("Your collection"), reward: (0, import_translate.msg)("create_collection"), againLabel: (0, import_translate.msg)("Create another") },
|
|
113
|
+
cardFallbackSymbol: (0, import_translate.msg)("Collection"),
|
|
119
114
|
copy: {
|
|
120
|
-
imageHeading: (0, import_translate.msg)("
|
|
121
|
-
nameLabel: (0, import_translate.msg)("
|
|
115
|
+
imageHeading: (0, import_translate.msg)("Cover image"),
|
|
116
|
+
nameLabel: (0, import_translate.msg)("Name"),
|
|
122
117
|
namePlaceholder: (0, import_translate.msg)("My Creative Works"),
|
|
123
|
-
nameHint: (0, import_translate.msg)("The display name for your collection."),
|
|
124
118
|
symbolPlaceholder: (0, import_translate.msg)("MCW"),
|
|
125
|
-
symbolHint: (0, import_translate.msg)("2 to 10
|
|
126
|
-
descriptionPlaceholder: (0, import_translate.msg)("
|
|
119
|
+
symbolHint: (0, import_translate.msg)("2 to 10 letters."),
|
|
120
|
+
descriptionPlaceholder: (0, import_translate.msg)("What this collection is about"),
|
|
127
121
|
submit: (0, import_translate.msg)("Create collection"),
|
|
128
122
|
footnotes: [FREE]
|
|
129
123
|
},
|
|
130
124
|
suggestSymbol: false,
|
|
131
125
|
registerAfterDeploy: false,
|
|
132
126
|
actions: ({ collectionHref }) => {
|
|
133
|
-
const mint = { href: "/launchpad/single-editions", label: (0, import_translate.msg)("
|
|
127
|
+
const mint = { href: "/launchpad/single-editions", label: (0, import_translate.msg)("Publish a work") };
|
|
134
128
|
return collectionHref ? { primary: { href: collectionHref, label: (0, import_translate.msg)("View collection") }, secondary: mint } : { primary: mint };
|
|
135
129
|
}
|
|
136
130
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club with membership cards.\") },\n shell: { title: msg(\"Create club\"), subtitle: msg(\"One club with many tiers.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is recorded onchain under your wallet.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: msg(\"Club image\"),\n nameLabel: msg(\"Club name *\"),\n namePlaceholder: msg(\"My Club\"),\n nameHint: msg(\"Shown on every card.\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"What membership unlocks\"),\n submit: msg(\"Create club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection.\") },\n shell: { title: msg(\"Create ticket collection\"), subtitle: msg(\"One collection with many tickets.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you mint into it is recorded onchain under your wallet.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My tickets\"),\n nameHint: msg(\"Shown on every ticket.\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"What the tickets unlock\"),\n submit: msg(\"Create ticket collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an edition collection\"), subtitle: msg(\"A collection with many editions per piece.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n imageHelp: msg(\"This becomes the cover for your collection.\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The title collectors see.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n descriptionHint: msg(\"The creative direction of the collection.\"),\n submit: msg(\"Publish collection\"),\n footnotes: [\n FREE,\n msg(\"Next step: mint pieces into this collection.\"),\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Mint tokens\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection to mint your work into.\") },\n shell: { title: msg(\"Create a collection\"), subtitle: msg(\"A collection for your work.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The display name for your collection.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Mint an asset\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAsC;AAEtC,uBAAoB;AAqCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW,EAAE,WAAO,sBAAI,sCAAsC,GAAG,iBAAa,sBAAI,sCAAsC,EAAE;AAAA,EAC1H,OAAO,EAAE,WAAO,sBAAI,aAAa,GAAG,cAAU,sBAAI,2BAA2B,EAAE;AAAA,EAC/E,QAAQ,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AAI,mBAAmB;AAAA,IACxC,cAAU,sBAAI,uCAAuC;AAAA,IACrD,uBAAmB,sBAAI,KAAK;AAAA,IAC5B,gBAAY,sBAAI,4BAA4B;AAAA,IAC5C,4BAAwB,sBAAI,kEAA6D;AAAA,IACzF,YAAQ,sBAAI,mBAAmB;AAAA,IAC/B,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,MAAM;AAC/B,UAAM,OAAO,EAAE,MAAM,8BAA8B,WAAO,sBAAI,eAAe,EAAE;AAC/E,WAAO,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,WAAO,sBAAI,iBAAiB,EAAE,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAClI;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n nameLabel: string;\n namePlaceholder: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club with membership cards.\") },\n shell: { title: msg(\"Create club\"), subtitle: msg(\"One club with many tiers.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Saving details\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is saved permanently as yours.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: msg(\"Club\"),\n copy: {\n imageHeading: msg(\"Cover image\"),\n nameLabel: msg(\"Name\"),\n namePlaceholder: msg(\"My Club\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"2 to 10 letters.\"),\n descriptionPlaceholder: msg(\"What membership unlocks\"),\n submit: msg(\"Create club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection.\") },\n shell: { title: msg(\"Create ticket collection\"), subtitle: msg(\"One collection with many tickets.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Saving details\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you publish in it is saved permanently as yours.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: msg(\"Tickets\"),\n copy: {\n imageHeading: msg(\"Cover image\"),\n nameLabel: msg(\"Name\"),\n namePlaceholder: msg(\"My tickets\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"2 to 10 letters.\"),\n descriptionPlaceholder: msg(\"What the tickets unlock\"),\n submit: msg(\"Create ticket collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an edition collection\"), subtitle: msg(\"A collection with many editions per piece.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Saving details\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each work you publish in it has its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: msg(\"Editions\"),\n copy: {\n imageHeading: msg(\"Cover image\"),\n nameLabel: msg(\"Name\"),\n namePlaceholder: msg(\"My Creative Works\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 letters.\"),\n descriptionPlaceholder: msg(\"What this collection is about\"),\n submit: msg(\"Create collection\"),\n footnotes: [\n FREE,\n msg(\"Next step: publish work in this collection.\"),\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Publish an edition\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection for your work.\") },\n shell: { title: msg(\"Create a collection\"), subtitle: msg(\"A collection for your work.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Saving details\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each work you publish in it has its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: msg(\"Collection\"),\n copy: {\n imageHeading: msg(\"Cover image\"),\n nameLabel: msg(\"Name\"),\n namePlaceholder: msg(\"My Creative Works\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 letters.\"),\n descriptionPlaceholder: msg(\"What this collection is about\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Publish a work\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAsC;AAEtC,uBAAoB;AAkCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW,EAAE,WAAO,sBAAI,sCAAsC,GAAG,iBAAa,sBAAI,sCAAsC,EAAE;AAAA,EAC1H,OAAO,EAAE,WAAO,sBAAI,aAAa,GAAG,cAAU,sBAAI,2BAA2B,EAAE;AAAA,EAC/E,QAAQ,EAAE,WAAO,sBAAI,aAAa,GAAG,kBAAc,sBAAI,0BAAqB,GAAG,oBAAgB,sBAAI,gBAAgB,EAAE;AAAA,EACrH,SAAS,EAAE,WAAO,sBAAI,cAAc,GAAG,iBAAa,sBAAI,2DAA2D,GAAG,kBAAc,sBAAI,WAAW,GAAG,YAAQ,sBAAI,aAAa,GAAG,gBAAY,sBAAI,gBAAgB,EAAE;AAAA,EACpN,wBAAoB,sBAAI,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I,iBAAiB,EAAE,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAClI;AACF;","names":[]}
|
|
@@ -31,14 +31,11 @@ interface CollectionCreatePreset {
|
|
|
31
31
|
cardFallbackSymbol: string;
|
|
32
32
|
copy: {
|
|
33
33
|
imageHeading: string;
|
|
34
|
-
imageHelp?: string;
|
|
35
34
|
nameLabel: string;
|
|
36
35
|
namePlaceholder: string;
|
|
37
|
-
nameHint: string;
|
|
38
36
|
symbolPlaceholder: string;
|
|
39
37
|
symbolHint: string;
|
|
40
38
|
descriptionPlaceholder: string;
|
|
41
|
-
descriptionHint?: string;
|
|
42
39
|
submit: string;
|
|
43
40
|
footnotes: string[];
|
|
44
41
|
};
|
|
@@ -31,14 +31,11 @@ interface CollectionCreatePreset {
|
|
|
31
31
|
cardFallbackSymbol: string;
|
|
32
32
|
copy: {
|
|
33
33
|
imageHeading: string;
|
|
34
|
-
imageHelp?: string;
|
|
35
34
|
nameLabel: string;
|
|
36
35
|
namePlaceholder: string;
|
|
37
|
-
nameHint: string;
|
|
38
36
|
symbolPlaceholder: string;
|
|
39
37
|
symbolHint: string;
|
|
40
38
|
descriptionPlaceholder: string;
|
|
41
|
-
descriptionHint?: string;
|
|
42
39
|
submit: string;
|
|
43
40
|
footnotes: string[];
|
|
44
41
|
};
|
|
@@ -7,16 +7,15 @@ const CLUB_PRESET = {
|
|
|
7
7
|
iconClass: "text-brand-purple",
|
|
8
8
|
signedOut: { title: msg("Secure your account to create a club"), description: msg("Create a club with membership cards.") },
|
|
9
9
|
shell: { title: msg("Create club"), subtitle: msg("One club with many tiers.") },
|
|
10
|
-
dialog: { title: msg("Create club"), workingLabel: msg("Creating your club\u2026"), firstStepLabel: msg("
|
|
11
|
-
success: { title: msg("Club created"), description: msg("Each membership you create is
|
|
12
|
-
cardFallbackSymbol: "Club",
|
|
10
|
+
dialog: { title: msg("Create club"), workingLabel: msg("Creating your club\u2026"), firstStepLabel: msg("Saving details") },
|
|
11
|
+
success: { title: msg("Club created"), description: msg("Each membership you create is saved permanently as yours."), fallbackName: msg("Your club"), reward: msg("create_club"), againLabel: msg("Create another") },
|
|
12
|
+
cardFallbackSymbol: msg("Club"),
|
|
13
13
|
copy: {
|
|
14
|
-
imageHeading: msg("
|
|
15
|
-
nameLabel: msg("
|
|
14
|
+
imageHeading: msg("Cover image"),
|
|
15
|
+
nameLabel: msg("Name"),
|
|
16
16
|
namePlaceholder: msg("My Club"),
|
|
17
|
-
nameHint: msg("Shown on every card."),
|
|
18
17
|
symbolPlaceholder: msg("CLUB"),
|
|
19
|
-
symbolHint: msg("2 to 10
|
|
18
|
+
symbolHint: msg("2 to 10 letters."),
|
|
20
19
|
descriptionPlaceholder: msg("What membership unlocks"),
|
|
21
20
|
submit: msg("Create club"),
|
|
22
21
|
footnotes: [FREE]
|
|
@@ -31,16 +30,15 @@ const TICKETS_PRESET = {
|
|
|
31
30
|
iconClass: "text-brand-blue",
|
|
32
31
|
signedOut: { title: msg("Secure your account to create tickets"), description: msg("Create a tickets collection.") },
|
|
33
32
|
shell: { title: msg("Create ticket collection"), subtitle: msg("One collection with many tickets.") },
|
|
34
|
-
dialog: { title: msg("Create tickets collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("
|
|
35
|
-
success: { title: msg("Ticket collection created"), description: msg("Each ticket you
|
|
36
|
-
cardFallbackSymbol: "Tickets",
|
|
33
|
+
dialog: { title: msg("Create tickets collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Saving details") },
|
|
34
|
+
success: { title: msg("Ticket collection created"), description: msg("Each ticket you publish in it is saved permanently as yours."), fallbackName: msg("Your collection"), reward: msg("create_ticket_collection"), againLabel: msg("Create another") },
|
|
35
|
+
cardFallbackSymbol: msg("Tickets"),
|
|
37
36
|
copy: {
|
|
38
|
-
imageHeading: msg("
|
|
39
|
-
nameLabel: msg("
|
|
37
|
+
imageHeading: msg("Cover image"),
|
|
38
|
+
nameLabel: msg("Name"),
|
|
40
39
|
namePlaceholder: msg("My tickets"),
|
|
41
|
-
nameHint: msg("Shown on every ticket."),
|
|
42
40
|
symbolPlaceholder: msg("TIX"),
|
|
43
|
-
symbolHint: msg("2 to 10
|
|
41
|
+
symbolHint: msg("2 to 10 letters."),
|
|
44
42
|
descriptionPlaceholder: msg("What the tickets unlock"),
|
|
45
43
|
submit: msg("Create ticket collection"),
|
|
46
44
|
footnotes: [FREE]
|
|
@@ -55,29 +53,26 @@ const EDITIONS_PRESET = {
|
|
|
55
53
|
iconClass: "text-brand-purple",
|
|
56
54
|
signedOut: { title: msg("Secure your account to create a collection"), description: msg("Create a collection where each piece can have multiple editions.") },
|
|
57
55
|
shell: { title: msg("Create an edition collection"), subtitle: msg("A collection with many editions per piece.") },
|
|
58
|
-
dialog: { title: msg("Create collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("
|
|
59
|
-
success: { title: msg("Collection created"), description: msg("Each
|
|
60
|
-
cardFallbackSymbol: "Editions",
|
|
56
|
+
dialog: { title: msg("Create collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Saving details") },
|
|
57
|
+
success: { title: msg("Collection created"), description: msg("Each work you publish in it has its own license terms."), fallbackName: msg("Your collection"), reward: msg("create_collection"), againLabel: msg("Create another") },
|
|
58
|
+
cardFallbackSymbol: msg("Editions"),
|
|
61
59
|
copy: {
|
|
62
|
-
imageHeading: msg("
|
|
63
|
-
|
|
64
|
-
nameLabel: msg("Collection name *"),
|
|
60
|
+
imageHeading: msg("Cover image"),
|
|
61
|
+
nameLabel: msg("Name"),
|
|
65
62
|
namePlaceholder: msg("My Creative Works"),
|
|
66
|
-
nameHint: msg("The title collectors see."),
|
|
67
63
|
symbolPlaceholder: msg("MCW"),
|
|
68
|
-
symbolHint: msg("2 to 10
|
|
69
|
-
descriptionPlaceholder: msg("
|
|
70
|
-
|
|
71
|
-
submit: msg("Publish collection"),
|
|
64
|
+
symbolHint: msg("2 to 10 letters."),
|
|
65
|
+
descriptionPlaceholder: msg("What this collection is about"),
|
|
66
|
+
submit: msg("Create collection"),
|
|
72
67
|
footnotes: [
|
|
73
68
|
FREE,
|
|
74
|
-
msg("Next step:
|
|
69
|
+
msg("Next step: publish work in this collection.")
|
|
75
70
|
]
|
|
76
71
|
},
|
|
77
72
|
suggestSymbol: true,
|
|
78
73
|
registerAfterDeploy: true,
|
|
79
74
|
actions: ({ address, collectionHref }) => ({
|
|
80
|
-
primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg("
|
|
75
|
+
primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg("Publish an edition") } : void 0,
|
|
81
76
|
secondary: collectionHref ? { href: collectionHref, label: msg("View collection") } : void 0
|
|
82
77
|
})
|
|
83
78
|
};
|
|
@@ -85,26 +80,25 @@ const SINGLE_PRESET = {
|
|
|
85
80
|
service: null,
|
|
86
81
|
icon: Layers,
|
|
87
82
|
iconClass: "text-brand-blue",
|
|
88
|
-
signedOut: { title: msg("Secure your account to create a collection"), description: msg("Set up a collection
|
|
83
|
+
signedOut: { title: msg("Secure your account to create a collection"), description: msg("Set up a collection for your work.") },
|
|
89
84
|
shell: { title: msg("Create a collection"), subtitle: msg("A collection for your work.") },
|
|
90
|
-
dialog: { title: msg("Create collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("
|
|
91
|
-
success: { title: msg("Collection created"), description: msg("Each
|
|
92
|
-
cardFallbackSymbol: "Collection",
|
|
85
|
+
dialog: { title: msg("Create collection"), workingLabel: msg("Creating your collection\u2026"), firstStepLabel: msg("Saving details") },
|
|
86
|
+
success: { title: msg("Collection created"), description: msg("Each work you publish in it has its own license terms."), fallbackName: msg("Your collection"), reward: msg("create_collection"), againLabel: msg("Create another") },
|
|
87
|
+
cardFallbackSymbol: msg("Collection"),
|
|
93
88
|
copy: {
|
|
94
|
-
imageHeading: msg("
|
|
95
|
-
nameLabel: msg("
|
|
89
|
+
imageHeading: msg("Cover image"),
|
|
90
|
+
nameLabel: msg("Name"),
|
|
96
91
|
namePlaceholder: msg("My Creative Works"),
|
|
97
|
-
nameHint: msg("The display name for your collection."),
|
|
98
92
|
symbolPlaceholder: msg("MCW"),
|
|
99
|
-
symbolHint: msg("2 to 10
|
|
100
|
-
descriptionPlaceholder: msg("
|
|
93
|
+
symbolHint: msg("2 to 10 letters."),
|
|
94
|
+
descriptionPlaceholder: msg("What this collection is about"),
|
|
101
95
|
submit: msg("Create collection"),
|
|
102
96
|
footnotes: [FREE]
|
|
103
97
|
},
|
|
104
98
|
suggestSymbol: false,
|
|
105
99
|
registerAfterDeploy: false,
|
|
106
100
|
actions: ({ collectionHref }) => {
|
|
107
|
-
const mint = { href: "/launchpad/single-editions", label: msg("
|
|
101
|
+
const mint = { href: "/launchpad/single-editions", label: msg("Publish a work") };
|
|
108
102
|
return collectionHref ? { primary: { href: collectionHref, label: msg("View collection") }, secondary: mint } : { primary: mint };
|
|
109
103
|
}
|
|
110
104
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n imageHelp?: string;\n nameLabel: string;\n namePlaceholder: string;\n nameHint: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n descriptionHint?: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club with membership cards.\") },\n shell: { title: msg(\"Create club\"), subtitle: msg(\"One club with many tiers.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is recorded onchain under your wallet.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Club\",\n copy: {\n imageHeading: msg(\"Club image\"),\n nameLabel: msg(\"Club name *\"),\n namePlaceholder: msg(\"My Club\"),\n nameHint: msg(\"Shown on every card.\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"What membership unlocks\"),\n submit: msg(\"Create club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection.\") },\n shell: { title: msg(\"Create ticket collection\"), subtitle: msg(\"One collection with many tickets.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you mint into it is recorded onchain under your wallet.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Tickets\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My tickets\"),\n nameHint: msg(\"Shown on every ticket.\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"What the tickets unlock\"),\n submit: msg(\"Create ticket collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an edition collection\"), subtitle: msg(\"A collection with many editions per piece.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Editions\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n imageHelp: msg(\"This becomes the cover for your collection.\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The title collectors see.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n descriptionHint: msg(\"The creative direction of the collection.\"),\n submit: msg(\"Publish collection\"),\n footnotes: [\n FREE,\n msg(\"Next step: mint pieces into this collection.\"),\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Mint tokens\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection to mint your work into.\") },\n shell: { title: msg(\"Create a collection\"), subtitle: msg(\"A collection for your work.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Prepare metadata\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each asset you mint into it carries its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: \"Collection\",\n copy: {\n imageHeading: msg(\"Collection image\"),\n nameLabel: msg(\"Collection name *\"),\n namePlaceholder: msg(\"My Creative Works\"),\n nameHint: msg(\"The display name for your collection.\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 uppercase letters.\"),\n descriptionPlaceholder: msg(\"Describe your collection and what kind of work it contains…\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Mint an asset\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":"AAAA,SAAS,QAAQ,QAAQ,aAAa;AAEtC,SAAS,WAAW;AAqCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW,EAAE,OAAO,IAAI,sCAAsC,GAAG,aAAa,IAAI,sCAAsC,EAAE;AAAA,EAC1H,OAAO,EAAE,OAAO,IAAI,aAAa,GAAG,UAAU,IAAI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B,YAAY,IAAI,4BAA4B;AAAA,IAC5C,wBAAwB,IAAI,kEAA6D;AAAA,IACzF,QAAQ,IAAI,mBAAmB;AAAA,IAC/B,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,MAAM;AAC/B,UAAM,OAAO,EAAE,MAAM,8BAA8B,OAAO,IAAI,eAAe,EAAE;AAC/E,WAAO,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,OAAO,IAAI,iBAAiB,EAAE,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAClI;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/collection-create-presets.ts"],"sourcesContent":["import { Layers, Ticket, Users } from \"lucide-react\";\nimport type { ElementType } from \"react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nexport interface CollectionCreateAction {\n href: string;\n label: string;\n}\n\nexport interface CollectionCreatePreset {\n service: \"ip-club\" | \"ip-tickets\" | \"mip-erc1155\" | null;\n icon: ElementType;\n iconClass: string;\n signedOut: { title: string; description: string };\n shell: { title: string; subtitle: string };\n dialog: { title: string; workingLabel: string; firstStepLabel: string };\n success: { title: string; description: string; fallbackName: string; reward: string; againLabel: string };\n cardFallbackSymbol: string;\n copy: {\n imageHeading: string;\n nameLabel: string;\n namePlaceholder: string;\n symbolPlaceholder: string;\n symbolHint: string;\n descriptionPlaceholder: string;\n submit: string;\n footnotes: string[];\n };\n suggestSymbol: boolean;\n registerAfterDeploy: boolean;\n actions: (found: { address: string | null; collectionHref: string | null }) => {\n primary?: CollectionCreateAction;\n secondary?: CollectionCreateAction;\n };\n}\n\nconst FREE = \"Free to publish.\";\n\nexport const CLUB_PRESET: CollectionCreatePreset = {\n service: \"ip-club\",\n icon: Users,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a club\"), description: msg(\"Create a club with membership cards.\") },\n shell: { title: msg(\"Create club\"), subtitle: msg(\"One club with many tiers.\") },\n dialog: { title: msg(\"Create club\"), workingLabel: msg(\"Creating your club…\"), firstStepLabel: msg(\"Saving details\") },\n success: { title: msg(\"Club created\"), description: msg(\"Each membership you create is saved permanently as yours.\"), fallbackName: msg(\"Your club\"), reward: msg(\"create_club\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: msg(\"Club\"),\n copy: {\n imageHeading: msg(\"Cover image\"),\n nameLabel: msg(\"Name\"),\n namePlaceholder: msg(\"My Club\"),\n symbolPlaceholder: msg(\"CLUB\"),\n symbolHint: msg(\"2 to 10 letters.\"),\n descriptionPlaceholder: msg(\"What membership unlocks\"),\n submit: msg(\"Create club\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create memberships\") } : undefined }),\n};\n\nexport const TICKETS_PRESET: CollectionCreatePreset = {\n service: \"ip-tickets\",\n icon: Ticket,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create tickets\"), description: msg(\"Create a tickets collection.\") },\n shell: { title: msg(\"Create ticket collection\"), subtitle: msg(\"One collection with many tickets.\") },\n dialog: { title: msg(\"Create tickets collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Saving details\") },\n success: { title: msg(\"Ticket collection created\"), description: msg(\"Each ticket you publish in it is saved permanently as yours.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_ticket_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: msg(\"Tickets\"),\n copy: {\n imageHeading: msg(\"Cover image\"),\n nameLabel: msg(\"Name\"),\n namePlaceholder: msg(\"My tickets\"),\n symbolPlaceholder: msg(\"TIX\"),\n symbolHint: msg(\"2 to 10 letters.\"),\n descriptionPlaceholder: msg(\"What the tickets unlock\"),\n submit: msg(\"Create ticket collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => ({ primary: collectionHref ? { href: collectionHref, label: msg(\"Create tickets\") } : undefined }),\n};\n\nexport const EDITIONS_PRESET: CollectionCreatePreset = {\n service: \"mip-erc1155\",\n icon: Layers,\n iconClass: \"text-brand-purple\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Create a collection where each piece can have multiple editions.\") },\n shell: { title: msg(\"Create an edition collection\"), subtitle: msg(\"A collection with many editions per piece.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Saving details\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each work you publish in it has its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: msg(\"Editions\"),\n copy: {\n imageHeading: msg(\"Cover image\"),\n nameLabel: msg(\"Name\"),\n namePlaceholder: msg(\"My Creative Works\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 letters.\"),\n descriptionPlaceholder: msg(\"What this collection is about\"),\n submit: msg(\"Create collection\"),\n footnotes: [\n FREE,\n msg(\"Next step: publish work in this collection.\"),\n ],\n },\n suggestSymbol: true,\n registerAfterDeploy: true,\n actions: ({ address, collectionHref }) => ({\n primary: address ? { href: `/launchpad/nfteditions/${address}/mint`, label: msg(\"Publish an edition\") } : undefined,\n secondary: collectionHref ? { href: collectionHref, label: msg(\"View collection\") } : undefined,\n }),\n};\n\nexport const SINGLE_PRESET: CollectionCreatePreset = {\n service: null,\n icon: Layers,\n iconClass: \"text-brand-blue\",\n signedOut: { title: msg(\"Secure your account to create a collection\"), description: msg(\"Set up a collection for your work.\") },\n shell: { title: msg(\"Create a collection\"), subtitle: msg(\"A collection for your work.\") },\n dialog: { title: msg(\"Create collection\"), workingLabel: msg(\"Creating your collection…\"), firstStepLabel: msg(\"Saving details\") },\n success: { title: msg(\"Collection created\"), description: msg(\"Each work you publish in it has its own license terms.\"), fallbackName: msg(\"Your collection\"), reward: msg(\"create_collection\"), againLabel: msg(\"Create another\") },\n cardFallbackSymbol: msg(\"Collection\"),\n copy: {\n imageHeading: msg(\"Cover image\"),\n nameLabel: msg(\"Name\"),\n namePlaceholder: msg(\"My Creative Works\"),\n symbolPlaceholder: msg(\"MCW\"),\n symbolHint: msg(\"2 to 10 letters.\"),\n descriptionPlaceholder: msg(\"What this collection is about\"),\n submit: msg(\"Create collection\"),\n footnotes: [FREE],\n },\n suggestSymbol: false,\n registerAfterDeploy: false,\n actions: ({ collectionHref }) => {\n const mint = { href: \"/launchpad/single-editions\", label: msg(\"Publish a work\") };\n return collectionHref ? { primary: { href: collectionHref, label: msg(\"View collection\") }, secondary: mint } : { primary: mint };\n },\n};\n"],"mappings":"AAAA,SAAS,QAAQ,QAAQ,aAAa;AAEtC,SAAS,WAAW;AAkCpB,MAAM,OAAO;AAEN,MAAM,cAAsC;AAAA,EACjD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,WAAW;AAAA,EACX,WAAW,EAAE,OAAO,IAAI,sCAAsC,GAAG,aAAa,IAAI,sCAAsC,EAAE;AAAA,EAC1H,OAAO,EAAE,OAAO,IAAI,aAAa,GAAG,UAAU,IAAI,2BAA2B,EAAE;AAAA,EAC/E,QAAQ,EAAE,OAAO,IAAI,aAAa,GAAG,cAAc,IAAI,0BAAqB,GAAG,gBAAgB,IAAI,gBAAgB,EAAE;AAAA,EACrH,SAAS,EAAE,OAAO,IAAI,cAAc,GAAG,aAAa,IAAI,2DAA2D,GAAG,cAAc,IAAI,WAAW,GAAG,QAAQ,IAAI,aAAa,GAAG,YAAY,IAAI,gBAAgB,EAAE;AAAA,EACpN,oBAAoB,IAAI,MAAM;AAAA,EAC9B,MAAM;AAAA,IACJ,cAAc,IAAI,aAAa;AAAA,IAC/B,WAAW,IAAI,MAAM;AAAA,IACrB,iBAAiB,IAAI,SAAS;AAAA,IAC9B,mBAAmB,IAAI,MAAM;AAAA,IAC7B,Y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A,EACX,WAAW,EAAE,OAAO,IAAI,4CAA4C,GAAG,aAAa,IAAI,oCAAoC,EAAE;AAAA,EAC9H,OAAO,EAAE,OAAO,IAAI,qBAAqB,GAAG,UAAU,IAAI,6BAA6B,EAAE;AAAA,EACzF,QAAQ,EAAE,OAAO,IAAI,mBAAmB,GAAG,cAAc,IAAI,gCAA2B,GAAG,gBAAgB,IAAI,gBAAgB,EAAE;AAAA,EACjI,SAAS,EAAE,OAAO,IAAI,oBAAoB,GAAG,aAAa,IAAI,wDAAwD,GAAG,cAAc,IAAI,iBAAiB,GAAG,QAAQ,IAAI,mBAAmB,GAAG,YAAY,IAAI,gBAAgB,EAAE;AAAA,EACnO,oBAAoB,IAAI,YAAY;AAAA,EACpC,MAAM;AAAA,IACJ,cAAc,IAAI,aAAa;AAAA,IAC/B,WAAW,IAAI,MAAM;AAAA,IACrB,iBAAiB,IAAI,mBAAmB;AAAA,IACxC,mBAAmB,IAAI,KAAK;AAAA,IAC5B,YAAY,IAAI,kBAAkB;AAAA,IAClC,wBAAwB,IAAI,+BAA+B;AAAA,IAC3D,QAAQ,IAAI,mBAAmB;AAAA,IAC/B,WAAW,CAAC,IAAI;AAAA,EAClB;AAAA,EACA,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS,CAAC,EAAE,eAAe,MAAM;AAC/B,UAAM,OAAO,EAAE,MAAM,8BAA8B,OAAO,IAAI,gBAAgB,EAAE;AAChF,WAAO,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,OAAO,IAAI,iBAAiB,EAAE,GAAG,WAAW,KAAK,IAAI,EAAE,SAAS,KAAK;AAAA,EAClI;AACF;","names":[]}
|
|
@@ -65,16 +65,13 @@ function EditionMintFields({
|
|
|
65
65
|
import_image_upload_field.ImageUploadField,
|
|
66
66
|
{
|
|
67
67
|
upload,
|
|
68
|
-
label: t("
|
|
69
|
-
alt: t("
|
|
70
|
-
required: true,
|
|
71
|
-
hint: t("This media and metadata are pinned before the first mint is submitted.")
|
|
68
|
+
label: t("Cover image"),
|
|
69
|
+
alt: t("Cover image")
|
|
72
70
|
}
|
|
73
71
|
) }),
|
|
74
72
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.08, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormField, { control: form.control, name: "name", render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
75
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("
|
|
76
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { placeholder: t("
|
|
77
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormDescription, { children: t("The title collectors will see for this edition.") }),
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("Name") }),
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { placeholder: t("The title people will see"), ...field }) }),
|
|
78
75
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
|
|
79
76
|
] }) }) }),
|
|
80
77
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormField, { control: form.control, name: "description", render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
@@ -83,30 +80,26 @@ function EditionMintFields({
|
|
|
83
80
|
" ",
|
|
84
81
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground font-normal", children: t("(optional)") })
|
|
85
82
|
] }),
|
|
86
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_textarea.Textarea, { placeholder: t("
|
|
87
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormDescription, { children: t("Notes for this edition.") }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_textarea.Textarea, { placeholder: t("Tell the story behind this work"), rows: 3, ...field }) }),
|
|
88
84
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
|
|
89
85
|
] }) }) }),
|
|
90
86
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.12, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormField, { control: form.control, name: "external_url", render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
91
87
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormLabel, { children: [
|
|
92
|
-
t("
|
|
88
|
+
t("Link"),
|
|
93
89
|
" ",
|
|
94
90
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground font-normal", children: t("(optional)") })
|
|
95
91
|
] }),
|
|
96
92
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { placeholder: t("https://yourwebsite.com"), ...field }) }),
|
|
97
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormDescription, { children: t("Canonical link for this edition.") }),
|
|
98
93
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
|
|
99
94
|
] }) }) }),
|
|
100
95
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.14, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormField, { control: form.control, name: "value", render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
101
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("
|
|
96
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("Copies") }),
|
|
102
97
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { type: "number", min: 1, placeholder: "1", className: "max-w-[180px]", ...field }) }),
|
|
103
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormDescription, { children: t("Number of copies to mint for this token ID.") }),
|
|
104
98
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
|
|
105
99
|
] }) }) }),
|
|
106
100
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.16, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormField, { control: form.control, name: "recipient", render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
107
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("
|
|
108
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { placeholder: "
|
|
109
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormDescription, { children: t("Receives the tokens.") }),
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("Send to") }),
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { placeholder: t("Wallet address"), ...field }) }),
|
|
110
103
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
|
|
111
104
|
] }) }) }),
|
|
112
105
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.18, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
@@ -118,7 +111,6 @@ function EditionMintFields({
|
|
|
118
111
|
label: t("License terms"),
|
|
119
112
|
hint: t("Optional \xB7 Berne Convention"),
|
|
120
113
|
children: [
|
|
121
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: t("Licensing terms for this edition.") }),
|
|
122
114
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormField, { control: form.control, name: "licenseType", render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
123
115
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("License") }),
|
|
124
116
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_select.Select, { value: field.value, onValueChange: handleLicenseChange, children: [
|
|
@@ -191,12 +183,11 @@ function EditionMintFields({
|
|
|
191
183
|
open: ipTypeOpen,
|
|
192
184
|
onOpenChange: setIpTypeOpen,
|
|
193
185
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Layers, { className: "h-4 w-4 text-primary" }),
|
|
194
|
-
label: t("
|
|
186
|
+
label: t("More details"),
|
|
195
187
|
hint: t("Optional"),
|
|
196
188
|
children: [
|
|
197
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground", children: t("Add traits for this edition.") }),
|
|
198
189
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormField, { control: form.control, name: "ipType", render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
|
|
199
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("
|
|
190
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: t("Type of work") }),
|
|
200
191
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_select.Select, { onValueChange: field.onChange, value: field.value, children: [
|
|
201
192
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectValue, {}) }) }),
|
|
202
193
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectContent, { children: import_ip.IP_TYPES.map((type) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { value: type, children: type }, type)) })
|
|
@@ -224,11 +215,11 @@ function EditionMintFields({
|
|
|
224
215
|
disabled: mintDisabled,
|
|
225
216
|
children: [
|
|
226
217
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Sparkles, { className: "h-4 w-4 mr-2" }),
|
|
227
|
-
t("
|
|
218
|
+
t("Publish edition")
|
|
228
219
|
]
|
|
229
220
|
}
|
|
230
221
|
),
|
|
231
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-center text-muted-foreground mt-2", children: t("Free to
|
|
222
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-center text-muted-foreground mt-2", children: t("Free to publish.") })
|
|
232
223
|
] })
|
|
233
224
|
] });
|
|
234
225
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/launchpad/edition-mint-fields.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport type { UseFormReturn } from \"react-hook-form\";\nimport { ChevronDown, Layers, ShieldCheck, Sparkles } from \"lucide-react\";\nimport { ImageUploadField } from \"../image-upload-field.js\";\nimport type { FileUpload } from \"../../utils/use-file-upload.js\";\nimport { Button } from \"../button.js\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"../collapsible.js\";\nimport { CollapsibleSection } from \"../collapsible-section.js\";\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from \"../form.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../select.js\";\nimport { FadeIn } from \"../motion-primitives.js\";\nimport { IPTypeFields, type MetadataField } from \"../ip-type-fields.js\";\nimport { ToggleGroup } from \"../create-form-primitives.js\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES, LICENSE_TYPES, type IPType } from \"../../data/ip.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport type { EditionMintValues } from \"./edition-mint-schema.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\ninterface EditionMintFieldsProps {\n form: UseFormReturn<EditionMintValues>;\n upload: FileUpload;\n mintDisabled: boolean;\n metadataResetKey: number;\n onMetadataFieldsChange: (fields: MetadataField[]) => void;\n uploadDocument: (file: File) => Promise<string>;\n}\n\nexport function EditionMintFields({\n form,\n upload,\n mintDisabled,\n metadataResetKey,\n onMetadataFieldsChange,\n uploadDocument,\n}: EditionMintFieldsProps) {\n const t = useT();\n const [licensingOpen, setLicensingOpen] = useState(false);\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [ipTypeOpen, setIpTypeOpen] = useState(false);\n\n const handleLicenseChange = (value: string) => {\n form.setValue(\"licenseType\", value);\n const preset = LICENSE_TYPES.find((license) => license.value === value);\n if (preset) {\n form.setValue(\"commercialUse\", preset.commercialUse);\n form.setValue(\"derivatives\", preset.derivatives);\n form.setValue(\"attribution\", preset.attribution);\n }\n };\n\n return (\n <div className=\"space-y-5\">\n <FadeIn delay={0.06}>\n <ImageUploadField\n upload={upload}\n label={t(\"Asset image\")}\n alt={t(\"Token\")}\n required\n hint={t(\"This media and metadata are pinned before the first mint is submitted.\")}\n />\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <FormField control={form.control} name=\"name\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Token name *\")}</FormLabel>\n <FormControl><Input placeholder={t(\"Genesis Track #1\")} {...field} /></FormControl>\n <FormDescription>{t(\"The title collectors will see for this edition.\")}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.1}>\n <FormField control={form.control} name=\"description\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Description\")} <span className=\"text-muted-foreground font-normal\">{t(\"(optional)\")}</span></FormLabel>\n <FormControl>\n <Textarea placeholder={t(\"Describe this digital asset…\")} rows={3} {...field} />\n </FormControl>\n <FormDescription>{t(\"Notes for this edition.\")}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <FormField control={form.control} name=\"external_url\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"External link\")} <span className=\"text-muted-foreground font-normal\">{t(\"(optional)\")}</span></FormLabel>\n <FormControl><Input placeholder={t(\"https://yourwebsite.com\")} {...field} /></FormControl>\n <FormDescription>{t(\"Canonical link for this edition.\")}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.14}>\n <FormField control={form.control} name=\"value\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Quantity *\")}</FormLabel>\n <FormControl>\n <Input type=\"number\" min={1} placeholder=\"1\" className=\"max-w-[180px]\" {...field} />\n </FormControl>\n <FormDescription>{t(\"Number of copies to mint for this token ID.\")}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.16}>\n <FormField control={form.control} name=\"recipient\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Recipient *\")}</FormLabel>\n <FormControl>\n <Input placeholder=\"0x…\" {...field} />\n </FormControl>\n <FormDescription>{t(\"Receives the tokens.\")}</FormDescription>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.18}>\n <CollapsibleSection\n open={licensingOpen}\n onOpenChange={setLicensingOpen}\n icon={<ShieldCheck className=\"h-4 w-4 text-primary\" />}\n label={t(\"License terms\")}\n hint={t(\"Optional · Berne Convention\")}\n >\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Licensing terms for this edition.\")}\n </p>\n\n <FormField control={form.control} name=\"licenseType\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"License\")}</FormLabel>\n <Select value={field.value} onValueChange={handleLicenseChange}>\n <FormControl>\n <SelectTrigger><SelectValue /></SelectTrigger>\n </FormControl>\n <SelectContent>\n {LICENSE_TYPES.map((license) => (\n <SelectItem key={license.value} value={license.value}>{t(license.label)}</SelectItem>\n ))}\n </SelectContent>\n </Select>\n {(() => {\n const preset = LICENSE_TYPES.find((license) => license.value === field.value);\n return preset ? <p className=\"text-xs text-muted-foreground mt-1\">{t(preset.description)}</p> : null;\n })()}\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"commercialUse\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Commercial use\")}</FormLabel>\n <ToggleGroup value={field.value} options={[\"Yes\", \"No\"]} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"derivatives\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Derivatives\")}</FormLabel>\n <ToggleGroup value={field.value} options={DERIVATIVES_OPTIONS} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"attribution\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Attribution\")}</FormLabel>\n <ToggleGroup value={field.value} options={[\"Required\", \"Not Required\"]} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <Collapsible open={advancedOpen} onOpenChange={setAdvancedOpen}>\n <CollapsibleTrigger asChild>\n <button\n type=\"button\"\n className=\"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors\"\n >\n <ChevronDown className={cn(\"h-3.5 w-3.5 transition-transform\", advancedOpen && \"rotate-180\")} />\n {t(\"Advanced options\")}\n </button>\n </CollapsibleTrigger>\n <CollapsibleContent className=\"space-y-4 pt-3\">\n <FormField control={form.control} name=\"geographicScope\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Territory\")}</FormLabel>\n <FormControl>\n <Input placeholder={t(\"Worldwide\")} {...field} />\n </FormControl>\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"aiPolicy\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"AI & data mining\")}</FormLabel>\n <ToggleGroup value={field.value} options={AI_POLICIES} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"royalty\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Royalty % (0–50)\")}</FormLabel>\n <FormControl>\n <Input\n type=\"number\"\n min={0}\n max={50}\n step={0.5}\n placeholder=\"0\"\n {...field}\n onChange={(event) => field.onChange(parseFloat(event.target.value) || 0)}\n />\n </FormControl>\n <FormMessage />\n </FormItem>\n )} />\n </CollapsibleContent>\n </Collapsible>\n </CollapsibleSection>\n </FadeIn>\n\n <FadeIn delay={0.2}>\n <CollapsibleSection\n open={ipTypeOpen}\n onOpenChange={setIpTypeOpen}\n icon={<Layers className=\"h-4 w-4 text-primary\" />}\n label={t(\"IP type & metadata\")}\n hint={t(\"Optional\")}\n >\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Add traits for this edition.\")}\n </p>\n\n <FormField control={form.control} name=\"ipType\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"IP type\")}</FormLabel>\n <Select onValueChange={field.onChange} value={field.value}>\n <FormControl>\n <SelectTrigger><SelectValue /></SelectTrigger>\n </FormControl>\n <SelectContent>\n {IP_TYPES.map((type) => (\n <SelectItem key={type} value={type}>{type}</SelectItem>\n ))}\n </SelectContent>\n </Select>\n </FormItem>\n )} />\n\n <IPTypeFields\n key={metadataResetKey}\n ipType={form.watch(\"ipType\") as IPType}\n onChange={onMetadataFieldsChange}\n uploadDocument={uploadDocument}\n />\n </CollapsibleSection>\n </FadeIn>\n\n <FadeIn delay={0.22}>\n <Button\n type=\"submit\"\n size=\"lg\"\n className=\"w-full rounded-xl mt-2\"\n disabled={mintDisabled}\n >\n <Sparkles className=\"h-4 w-4 mr-2\" />\n {t(\"Mint edition\")}\n </Button>\n <p className=\"text-xs text-center text-muted-foreground mt-2\">\n {t(\"Free to mint.\")}\n </p>\n </FadeIn>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyDQ;AAvDR,mBAAyB;AAEzB,0BAA2D;AAC3D,gCAAiC;AAEjC,oBAAuB;AACvB,mBAAsB;AACtB,sBAAyB;AACzB,yBAAoE;AACpE,iCAAmC;AACnC,kBAA0F;AAC1F,oBAA8E;AAC9E,+BAAuB;AACvB,4BAAiD;AACjD,oCAA4B;AAC5B,gBAAuF;AACvF,gBAAmB;AAEnB,sBAAqB;AAWd,SAAS,kBAAkB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA2B;AACzB,QAAM,QAAI,sBAAK;AACf,QAAM,CAAC,eAAe,gBAAgB,QAAI,uBAAS,KAAK;AACxD,QAAM,CAAC,cAAc,eAAe,QAAI,uBAAS,KAAK;AACtD,QAAM,CAAC,YAAY,aAAa,QAAI,uBAAS,KAAK;AAElD,QAAM,sBAAsB,CAAC,UAAkB;AAC7C,SAAK,SAAS,eAAe,KAAK;AAClC,UAAM,SAAS,wBAAc,KAAK,CAAC,YAAY,QAAQ,UAAU,KAAK;AACtE,QAAI,QAAQ;AACV,WAAK,SAAS,iBAAiB,OAAO,aAAa;AACnD,WAAK,SAAS,eAAe,OAAO,WAAW;AAC/C,WAAK,SAAS,eAAe,OAAO,WAAW;AAAA,IACjD;AAAA,EACF;AAEA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;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/launchpad/edition-mint-fields.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport type { UseFormReturn } from \"react-hook-form\";\nimport { ChevronDown, Layers, ShieldCheck, Sparkles } from \"lucide-react\";\nimport { ImageUploadField } from \"../image-upload-field.js\";\nimport type { FileUpload } from \"../../utils/use-file-upload.js\";\nimport { Button } from \"../button.js\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"../collapsible.js\";\nimport { CollapsibleSection } from \"../collapsible-section.js\";\nimport { FormControl, FormField, FormItem, FormLabel, FormMessage } from \"../form.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"../select.js\";\nimport { FadeIn } from \"../motion-primitives.js\";\nimport { IPTypeFields, type MetadataField } from \"../ip-type-fields.js\";\nimport { ToggleGroup } from \"../create-form-primitives.js\";\nimport { AI_POLICIES, DERIVATIVES_OPTIONS, IP_TYPES, LICENSE_TYPES, type IPType } from \"../../data/ip.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport type { EditionMintValues } from \"./edition-mint-schema.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\ninterface EditionMintFieldsProps {\n form: UseFormReturn<EditionMintValues>;\n upload: FileUpload;\n mintDisabled: boolean;\n metadataResetKey: number;\n onMetadataFieldsChange: (fields: MetadataField[]) => void;\n uploadDocument: (file: File) => Promise<string>;\n}\n\nexport function EditionMintFields({\n form,\n upload,\n mintDisabled,\n metadataResetKey,\n onMetadataFieldsChange,\n uploadDocument,\n}: EditionMintFieldsProps) {\n const t = useT();\n const [licensingOpen, setLicensingOpen] = useState(false);\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [ipTypeOpen, setIpTypeOpen] = useState(false);\n\n const handleLicenseChange = (value: string) => {\n form.setValue(\"licenseType\", value);\n const preset = LICENSE_TYPES.find((license) => license.value === value);\n if (preset) {\n form.setValue(\"commercialUse\", preset.commercialUse);\n form.setValue(\"derivatives\", preset.derivatives);\n form.setValue(\"attribution\", preset.attribution);\n }\n };\n\n return (\n <div className=\"space-y-5\">\n <FadeIn delay={0.06}>\n <ImageUploadField\n upload={upload}\n label={t(\"Cover image\")}\n alt={t(\"Cover image\")}\n />\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <FormField control={form.control} name=\"name\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Name\")}</FormLabel>\n <FormControl><Input placeholder={t(\"The title people will see\")} {...field} /></FormControl>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.1}>\n <FormField control={form.control} name=\"description\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Description\")} <span className=\"text-muted-foreground font-normal\">{t(\"(optional)\")}</span></FormLabel>\n <FormControl>\n <Textarea placeholder={t(\"Tell the story behind this work\")} rows={3} {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <FormField control={form.control} name=\"external_url\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Link\")} <span className=\"text-muted-foreground font-normal\">{t(\"(optional)\")}</span></FormLabel>\n <FormControl><Input placeholder={t(\"https://yourwebsite.com\")} {...field} /></FormControl>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.14}>\n <FormField control={form.control} name=\"value\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Copies\")}</FormLabel>\n <FormControl>\n <Input type=\"number\" min={1} placeholder=\"1\" className=\"max-w-[180px]\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.16}>\n <FormField control={form.control} name=\"recipient\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Send to\")}</FormLabel>\n <FormControl>\n <Input placeholder={t(\"Wallet address\")} {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )} />\n </FadeIn>\n\n <FadeIn delay={0.18}>\n <CollapsibleSection\n open={licensingOpen}\n onOpenChange={setLicensingOpen}\n icon={<ShieldCheck className=\"h-4 w-4 text-primary\" />}\n label={t(\"License terms\")}\n hint={t(\"Optional · Berne Convention\")}\n >\n <FormField control={form.control} name=\"licenseType\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"License\")}</FormLabel>\n <Select value={field.value} onValueChange={handleLicenseChange}>\n <FormControl>\n <SelectTrigger><SelectValue /></SelectTrigger>\n </FormControl>\n <SelectContent>\n {LICENSE_TYPES.map((license) => (\n <SelectItem key={license.value} value={license.value}>{t(license.label)}</SelectItem>\n ))}\n </SelectContent>\n </Select>\n {(() => {\n const preset = LICENSE_TYPES.find((license) => license.value === field.value);\n return preset ? <p className=\"text-xs text-muted-foreground mt-1\">{t(preset.description)}</p> : null;\n })()}\n <FormMessage />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"commercialUse\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Commercial use\")}</FormLabel>\n <ToggleGroup value={field.value} options={[\"Yes\", \"No\"]} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"derivatives\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Derivatives\")}</FormLabel>\n <ToggleGroup value={field.value} options={DERIVATIVES_OPTIONS} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"attribution\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Attribution\")}</FormLabel>\n <ToggleGroup value={field.value} options={[\"Required\", \"Not Required\"]} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <Collapsible open={advancedOpen} onOpenChange={setAdvancedOpen}>\n <CollapsibleTrigger asChild>\n <button\n type=\"button\"\n className=\"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors\"\n >\n <ChevronDown className={cn(\"h-3.5 w-3.5 transition-transform\", advancedOpen && \"rotate-180\")} />\n {t(\"Advanced options\")}\n </button>\n </CollapsibleTrigger>\n <CollapsibleContent className=\"space-y-4 pt-3\">\n <FormField control={form.control} name=\"geographicScope\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Territory\")}</FormLabel>\n <FormControl>\n <Input placeholder={t(\"Worldwide\")} {...field} />\n </FormControl>\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"aiPolicy\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"AI & data mining\")}</FormLabel>\n <ToggleGroup value={field.value} options={AI_POLICIES} onChange={field.onChange} />\n </FormItem>\n )} />\n\n <FormField control={form.control} name=\"royalty\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Royalty % (0–50)\")}</FormLabel>\n <FormControl>\n <Input\n type=\"number\"\n min={0}\n max={50}\n step={0.5}\n placeholder=\"0\"\n {...field}\n onChange={(event) => field.onChange(parseFloat(event.target.value) || 0)}\n />\n </FormControl>\n <FormMessage />\n </FormItem>\n )} />\n </CollapsibleContent>\n </Collapsible>\n </CollapsibleSection>\n </FadeIn>\n\n <FadeIn delay={0.2}>\n <CollapsibleSection\n open={ipTypeOpen}\n onOpenChange={setIpTypeOpen}\n icon={<Layers className=\"h-4 w-4 text-primary\" />}\n label={t(\"More details\")}\n hint={t(\"Optional\")}\n >\n <FormField control={form.control} name=\"ipType\" render={({ field }) => (\n <FormItem>\n <FormLabel>{t(\"Type of work\")}</FormLabel>\n <Select onValueChange={field.onChange} value={field.value}>\n <FormControl>\n <SelectTrigger><SelectValue /></SelectTrigger>\n </FormControl>\n <SelectContent>\n {IP_TYPES.map((type) => (\n <SelectItem key={type} value={type}>{type}</SelectItem>\n ))}\n </SelectContent>\n </Select>\n </FormItem>\n )} />\n\n <IPTypeFields\n key={metadataResetKey}\n ipType={form.watch(\"ipType\") as IPType}\n onChange={onMetadataFieldsChange}\n uploadDocument={uploadDocument}\n />\n </CollapsibleSection>\n </FadeIn>\n\n <FadeIn delay={0.22}>\n <Button\n type=\"submit\"\n size=\"lg\"\n className=\"w-full rounded-xl mt-2\"\n disabled={mintDisabled}\n >\n <Sparkles className=\"h-4 w-4 mr-2\" />\n {t(\"Publish edition\")}\n </Button>\n <p className=\"text-xs text-center text-muted-foreground mt-2\">\n {t(\"Free to publish.\")}\n </p>\n </FadeIn>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyDQ;AAvDR,mBAAyB;AAEzB,0BAA2D;AAC3D,gCAAiC;AAEjC,oBAAuB;AACvB,mBAAsB;AACtB,sBAAyB;AACzB,yBAAoE;AACpE,iCAAmC;AACnC,kBAAyE;AACzE,oBAA8E;AAC9E,+BAAuB;AACvB,4BAAiD;AACjD,oCAA4B;AAC5B,gBAAuF;AACvF,gBAAmB;AAEnB,sBAAqB;AAWd,SAAS,kBAAkB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA2B;AACzB,QAAM,QAAI,sBAAK;AACf,QAAM,CAAC,eAAe,gBAAgB,QAAI,uBAAS,KAAK;AACxD,QAAM,CAAC,cAAc,eAAe,QAAI,uBAAS,KAAK;AACtD,QAAM,CAAC,YAAY,aAAa,QAAI,uBAAS,KAAK;AAElD,QAAM,sBAAsB,CAAC,UAAkB;AAC7C,SAAK,SAAS,eAAe,KAAK;AAClC,UAAM,SAAS,wBAAc,KAAK,CAAC,YAAY,QAAQ,UAAU,KAAK;AACtE,QAAI,QAAQ;AACV,WAAK,SAAS,iBAAiB,OAAO,aAAa;AACnD,WAAK,SAAS,eAAe,OAAO,WAAW;AAC/C,WAAK,SAAS,eAAe,OAAO,WAAW;AAAA,IACjD;AAAA,EACF;AAEA,SACE,6CAAC,SAAI,WAAU,aACb;AAAA,gDAAC,mCAAO,OAAO,MACb;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,OAAO,EAAE,aAAa;AAAA,QACtB,KAAK,EAAE,aA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