@eluvio/elv-client-js 3.1.77 → 3.1.81

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.
@@ -6,7 +6,7 @@ const currencyOptions = [...new Set(Object.values(require("country-codes-list").
6
6
  const eventSiteSpec = {
7
7
  "profile": {
8
8
  name: "Eluvio LIVE Event Site",
9
- version: "0.2",
9
+ version: "0.3",
10
10
  },
11
11
  manageApp: "default",
12
12
  associate_permissions: true,
@@ -50,17 +50,24 @@ const eventSiteSpec = {
50
50
  "type": "Text"
51
51
  },
52
52
  {
53
- "label": "Eluvio LIVE Tenant",
54
- "name": "tenant",
55
- "type": "fabric_link",
56
- "hash_only": true,
57
- "no_localize": true
53
+ "name": "tenant_slug",
54
+ "type": "text"
58
55
  },
59
56
  {
60
- "name": "marketplace",
61
- "type": "fabric_link",
62
- "hash_only": true,
63
- "no_localize": true
57
+ "name": "marketplace_info",
58
+ "type": "subsection",
59
+ "fields": [
60
+ {
61
+ "name": "tenant_slug",
62
+ "type": "text",
63
+ "hint": "The slug of the tenant in which the marketplace is defined"
64
+ },
65
+ {
66
+ "name": "marketplace_slug",
67
+ "type": "text",
68
+ "hint": "The slug of the marketplace"
69
+ }
70
+ ]
64
71
  },
65
72
  {
66
73
  "name": "state",
@@ -81,6 +88,7 @@ const eventSiteSpec = {
81
88
  },
82
89
  {
83
90
  "name": "theme",
91
+ "label": "Color Scheme",
84
92
  "type": "select",
85
93
  "options": [
86
94
  "light",
@@ -199,22 +207,26 @@ const eventSiteSpec = {
199
207
  {
200
208
  "name": "image",
201
209
  "type": "file",
202
- "extensions": imageTypes
210
+ "extensions": imageTypes,
211
+ "depends_on": "./show"
203
212
  },
204
213
  {
205
214
  "name": "message",
206
- "type": "rich_text"
215
+ "type": "rich_text",
216
+ "depends_on": "./show"
207
217
  },
208
218
  {
209
219
  "name": "button_text",
210
220
  "type": "text",
211
- "hint": "Text for the button at the bottom of the modal. By default, it will be 'Create Wallet' if login is required for the next drop, otherwise it will be 'Join the Drop'"
221
+ "hint": "Text for the button at the bottom of the modal. By default, it will be 'Create Wallet' if login is required for the next drop, otherwise it will be 'Join the Drop'",
222
+ "depends_on": "./show"
212
223
  },
213
224
  {
214
225
  "name": "post_login",
215
226
  "label": "Post Login Modal",
216
227
  "type": "subsection",
217
228
  "hint": "If specified, modal will be shown after a user goes through the login process from the 'Get Started' modal",
229
+ "depends_on": "./show",
218
230
  "fields": [
219
231
  {
220
232
  "name": "show",
@@ -286,6 +298,12 @@ const eventSiteSpec = {
286
298
  "type": "fabric_link",
287
299
  "video_preview": true
288
300
  },
301
+ {
302
+ "name": "hero_video_mobile",
303
+ "label": "Hero Video (Mobile)",
304
+ "type": "fabric_link",
305
+ "video_preview": true
306
+ },
289
307
  {
290
308
  "extensions": imageTypes,
291
309
  "label": "Header Image (Dark)",
@@ -310,58 +328,54 @@ const eventSiteSpec = {
310
328
  "type": "file",
311
329
  "label": "Main Logo (TV)"
312
330
  },
313
- {
314
- "name": "main_page_banner",
315
- "type": "subsection",
316
- "fields": [
317
- {
318
- "name": "show",
319
- "type": "checkbox"
320
- },
321
- {
322
- "extensions": imageTypes,
323
- "name": "image",
324
- "type": "file"
325
- },
326
- {
327
- "extensions": imageTypes,
328
- "name": "image_mobile",
329
- "label": "Image (Mobile)",
330
- "type": "file"
331
- },
332
- {
333
- "name": "type",
334
- "type": "select",
335
- "options": [
336
- "drop",
337
- "marketplace",
338
- "link"
339
- ],
340
- "default_value": "marketplace",
341
- "hint": "Specify what happens when clicking on the banner. The banner can link to a URL or a drop, or it can open the marketplace view."
342
- },
343
- {
344
- "name": "marketplace_filters",
345
- "type": "list",
346
- "hint": "If the banner links to the marketplace, you can specify filters to apply when the marketplace is opened via the banner."
347
- },
348
- {
349
- "name": "link",
350
- "type": "text",
351
- "hint": "If the banner is a link, specify the URL to link to."
352
- },
353
- {
354
- "label": "Drop UUID",
355
- "name": "drop_uuid",
356
- "type": "text",
357
- "hint": "If the banner links to a drop, you can specify a specific drop to link to. If not specified, the banner will link to the next upcoming drop."
358
- }
359
- ]
360
- }
361
331
  ],
362
332
  "name": "event_images",
363
333
  "type": "subsection"
364
334
  },
335
+ {
336
+ "name": "main_page_banners",
337
+ "type": "list",
338
+ "fields": [
339
+ {
340
+ "extensions": imageTypes,
341
+ "name": "image",
342
+ "type": "file",
343
+ },
344
+ {
345
+ "extensions": imageTypes,
346
+ "name": "image_mobile",
347
+ "label": "Image (Mobile)",
348
+ "type": "file",
349
+ },
350
+ {
351
+ "name": "type",
352
+ "type": "select",
353
+ "options": [
354
+ "drop",
355
+ "marketplace",
356
+ "link"
357
+ ],
358
+ "default_value": "marketplace",
359
+ "hint": "Specify what happens when clicking on the banner. The banner can link to a URL or a drop, or it can open the marketplace view.",
360
+ },
361
+ {
362
+ "name": "marketplace_filters",
363
+ "type": "list",
364
+ "hint": "If the banner links to the marketplace, you can specify filters to apply when the marketplace is opened via the banner.",
365
+ },
366
+ {
367
+ "name": "link",
368
+ "type": "text",
369
+ "hint": "If the banner is a link, specify the URL to link to.",
370
+ },
371
+ {
372
+ "label": "Drop UUID",
373
+ "name": "drop_uuid",
374
+ "type": "text",
375
+ "hint": "If the banner links to a drop, you can specify a specific drop to link to. If not specified, the banner will link to the next upcoming drop.",
376
+ }
377
+ ]
378
+ },
365
379
  {
366
380
  "name": "promo_videos",
367
381
  "type": "list",
@@ -463,22 +477,38 @@ const eventSiteSpec = {
463
477
  ]
464
478
  },
465
479
  {
480
+ "name": "event_info_modals",
481
+ "type": "list",
466
482
  "fields": [
467
483
  {
468
- "name": "name",
484
+ "name": "button_text",
469
485
  "type": "text"
470
486
  },
471
487
  {
488
+ "name": "pages",
489
+ "type": "list",
472
490
  "fields": [
473
491
  {
474
- "hint": "A description displayed next to the 'Next' button when viewing the previous page.",
475
492
  "name": "page_title",
476
493
  "type": "text"
477
494
  },
478
495
  {
479
- "extensions": imageTypes,
480
496
  "name": "image",
481
- "type": "file"
497
+ "extensions": imageTypes,
498
+ "type": "file",
499
+ "unless": "./video",
500
+ "hint": "Select an image for this page. Each page may only have one image or one video"
501
+ },
502
+ {
503
+ "name": "video",
504
+ "type": "fabric_link",
505
+ "video_preview": true,
506
+ "unless": "./image",
507
+ "hint": "Select a video for this page. Each page may only have one image or one video"
508
+ },
509
+ {
510
+ "name": "text",
511
+ "type": "rich_text"
482
512
  },
483
513
  {
484
514
  "name": "text_color",
@@ -498,17 +528,9 @@ const eventSiteSpec = {
498
528
  "label": "White"
499
529
  }
500
530
  },
501
- {
502
- "name": "text",
503
- "type": "rich_text"
504
- }
505
- ],
506
- "name": "pages",
507
- "type": "list"
531
+ ]
508
532
  }
509
- ],
510
- "name": "event_descriptions",
511
- "type": "list"
533
+ ]
512
534
  },
513
535
  {
514
536
  "fields": [
@@ -727,6 +749,7 @@ const eventSiteSpec = {
727
749
  "label": "FAQ",
728
750
  "hint": "Specify a custom FAQ. If blank, the default FAQ will be displayed",
729
751
  "type": "list",
752
+ "depends_on": "./show_faq",
730
753
  "fields": [
731
754
  {
732
755
  "name": "question",
@@ -780,17 +803,20 @@ const eventSiteSpec = {
780
803
  {
781
804
  "name": "redemption_message",
782
805
  "type": "text",
783
- "hint": "Text to be displayed on coupon redemption page"
806
+ "hint": "Text to be displayed on coupon redemption page",
807
+ "depends_on": "./coupon_mode"
784
808
  },
785
809
  {
786
810
  "name": "event_page_message_1",
787
811
  "type": "text",
788
- "hint": "Text to be displayed on event page after redemption"
812
+ "hint": "Text to be displayed on event page after redemption",
813
+ "depends_on": "./coupon_mode"
789
814
  },
790
815
  {
791
816
  "name": "event_page_message_2",
792
817
  "type": "text",
793
- "hint": "Text to be displayed on event page after redemption"
818
+ "hint": "Text to be displayed on event page after redemption",
819
+ "depends_on": "./coupon_mode"
794
820
  }
795
821
  ],
796
822
  "name": "coupon_redemption",
@@ -1054,6 +1080,7 @@ const eventSiteSpec = {
1054
1080
  "no_localize": true
1055
1081
  },
1056
1082
  {
1083
+ "label": "marketplace_filters",
1057
1084
  "name": "store_filters",
1058
1085
  "type": "list",
1059
1086
  "hint": "After the drop, the wallet panel will be redirected to the store. Use these fields to filter the items shown for users who voted"
@@ -1076,6 +1103,54 @@ const eventSiteSpec = {
1076
1103
  "label": "Calendar Event Info",
1077
1104
  "name": "calendar",
1078
1105
  "type": "subsection"
1106
+ },
1107
+ {
1108
+ "label": "Use Custom Landing Page",
1109
+ "hint": "If checked, the landing page info below will be used for this drop event instead of the general landing page configuration.",
1110
+ "name": "custom_landing_page",
1111
+ "type": "checkbox"
1112
+ },
1113
+ {
1114
+ "fields": [
1115
+ {
1116
+ "name": "header_image",
1117
+ "type": "file",
1118
+ "extensions": imageTypes
1119
+ },
1120
+ {
1121
+ "name": "background_image",
1122
+ "type": "file",
1123
+ "extensions": imageTypes
1124
+ },
1125
+ {
1126
+ "name": "background_image_mobile",
1127
+ "label": "Background Image (Mobile)",
1128
+ "type": "file",
1129
+ "extensions": imageTypes
1130
+ },
1131
+ {
1132
+ "name": "header_text",
1133
+ "type": "text"
1134
+ },
1135
+ {
1136
+ "name": "show_countdown",
1137
+ "type": "checkbox",
1138
+ "default_value": true
1139
+ },
1140
+ {
1141
+ "name": "message_1",
1142
+ "type": "textarea",
1143
+ "hint": "Message above the countdown. Default: 'Your Code is Redeemed. Drop Begins In'"
1144
+ },
1145
+ {
1146
+ "name": "message_2",
1147
+ "type": "textarea",
1148
+ "hint": "Message below the countdown. Default: 'Use the link in your code email to return here at the time of the drop.'"
1149
+ }
1150
+ ],
1151
+ "name": "event_landing_page",
1152
+ "type": "subsection",
1153
+ "depends_on": "./custom_landing_page"
1079
1154
  }
1080
1155
  ]
1081
1156
  },
@@ -1196,6 +1271,54 @@ const eventSiteSpec = {
1196
1271
  "name": "calendar",
1197
1272
  "type": "subsection"
1198
1273
  },
1274
+ {
1275
+ "label": "Use Custom Landing Page",
1276
+ "hint": "If checked, the landing page info below will be used for this drop event instead of the general landing page configuration.",
1277
+ "name": "custom_landing_page",
1278
+ "type": "checkbox"
1279
+ },
1280
+ {
1281
+ "fields": [
1282
+ {
1283
+ "name": "header_image",
1284
+ "type": "file",
1285
+ "extensions": imageTypes
1286
+ },
1287
+ {
1288
+ "name": "background_image",
1289
+ "type": "file",
1290
+ "extensions": imageTypes
1291
+ },
1292
+ {
1293
+ "name": "background_image_mobile",
1294
+ "label": "Background Image (Mobile)",
1295
+ "type": "file",
1296
+ "extensions": imageTypes
1297
+ },
1298
+ {
1299
+ "name": "header_text",
1300
+ "type": "text"
1301
+ },
1302
+ {
1303
+ "name": "show_countdown",
1304
+ "type": "checkbox",
1305
+ "default_value": true
1306
+ },
1307
+ {
1308
+ "name": "message_1",
1309
+ "type": "textarea",
1310
+ "hint": "Message above the countdown. Default: 'Your Code is Redeemed. Drop Begins In'"
1311
+ },
1312
+ {
1313
+ "name": "message_2",
1314
+ "type": "textarea",
1315
+ "hint": "Message below the countdown. Default: 'Use the link in your code email to return here at the time of the drop.'"
1316
+ }
1317
+ ],
1318
+ "name": "event_landing_page",
1319
+ "type": "subsection",
1320
+ "depends_on": "./custom_landing_page"
1321
+ },
1199
1322
  {
1200
1323
  "name": "event_state_preroll",
1201
1324
  "label": "Event State: Preroll",
@@ -1208,39 +1331,46 @@ const eventSiteSpec = {
1208
1331
  },
1209
1332
  {
1210
1333
  "name": "header",
1211
- "type": "text"
1334
+ "type": "text",
1335
+ "depends_on": "./use_state"
1212
1336
  },
1213
1337
  {
1214
1338
  "name": "subheader",
1215
- "type": "text"
1339
+ "type": "text",
1340
+ "depends_on": "./use_state"
1216
1341
  },
1217
1342
  {
1218
1343
  "name": "show_countdown",
1219
1344
  "label": "Show Countdown to Next State",
1220
1345
  "type": "checkbox",
1221
- "default_value": false
1346
+ "default_value": false,
1347
+ "depends_on": "./use_state"
1222
1348
  },
1223
1349
  {
1224
1350
  "name": "use_main_stream",
1225
1351
  "type": "checkbox",
1226
1352
  "default_value": false,
1227
- "hint": "If checked, the stream for the main event will be used instead of one specified in this section"
1353
+ "hint": "If checked, the stream for the main event will be used instead of one specified in this section",
1354
+ "depends_on": "./use_state"
1228
1355
  },
1229
1356
  {
1230
1357
  "name": "stream",
1231
1358
  "type": "fabric_link",
1232
- "video_preview": true
1359
+ "video_preview": true,
1360
+ "depends_on": "./use_state"
1233
1361
  },
1234
1362
  {
1235
1363
  "name": "loop_stream",
1236
1364
  "type": "checkbox",
1237
- "default_value": false
1365
+ "default_value": false,
1366
+ "depends_on": "./use_state"
1238
1367
  },
1239
1368
  {
1240
1369
  "name": "modal_message",
1241
1370
  "label": "Modal Message (Pre Event)",
1242
1371
  "type": "subsection",
1243
1372
  "hint": "If specified, this message will be displayed in a popup modal at the start of this part of the event. You can use this to communicate information to users.",
1373
+ "depends_on": "./use_state",
1244
1374
  "fields": [
1245
1375
  {
1246
1376
  "name": "show",
@@ -1326,48 +1456,56 @@ const eventSiteSpec = {
1326
1456
  {
1327
1457
  "name": "use_state",
1328
1458
  "type": "checkbox",
1329
- "default_value": true
1459
+ "default_value": false
1330
1460
  },
1331
1461
  {
1332
1462
  "name": "header",
1333
- "type": "text"
1463
+ "type": "text",
1464
+ "depends_on": "./use_state"
1334
1465
  },
1335
1466
  {
1336
1467
  "name": "subheader",
1337
- "type": "text"
1468
+ "type": "text",
1469
+ "depends_on": "./use_state"
1338
1470
  },
1339
1471
  {
1340
1472
  "name": "start_date",
1341
1473
  "type": "datetime",
1342
- "no_localize": true
1474
+ "no_localize": true,
1475
+ "depends_on": "./use_state"
1343
1476
  },
1344
1477
  {
1345
1478
  "name": "show_countdown",
1346
1479
  "label": "Show Countdown to Next State",
1347
1480
  "type": "checkbox",
1348
- "default_value": false
1481
+ "default_value": false,
1482
+ "depends_on": "./use_state"
1349
1483
  },
1350
1484
  {
1351
1485
  "name": "use_main_stream",
1352
1486
  "type": "checkbox",
1353
1487
  "default_value": false,
1488
+ "depends_on": "./use_state",
1354
1489
  "hint": "If checked, the stream for the main event will be used instead of one specified in this section"
1355
1490
  },
1356
1491
  {
1357
1492
  "name": "stream",
1358
1493
  "type": "fabric_link",
1359
- "video_preview": true
1494
+ "video_preview": true,
1495
+ "depends_on": "./use_state"
1360
1496
  },
1361
1497
  {
1362
1498
  "name": "loop_stream",
1363
1499
  "type": "checkbox",
1364
- "default_value": false
1500
+ "default_value": false,
1501
+ "depends_on": "./use_state"
1365
1502
  },
1366
1503
  {
1367
1504
  "name": "modal_message",
1368
1505
  "label": "Modal Message (Voting Ended)",
1369
1506
  "type": "subsection",
1370
1507
  "hint": "If specified, this message will be displayed in a popup modal at the start of this part of the event. You can use this to communicate information to users.",
1508
+ "depends_on": "./use_state",
1371
1509
  "fields": [
1372
1510
  {
1373
1511
  "name": "show",
@@ -1395,42 +1533,49 @@ const eventSiteSpec = {
1395
1533
  {
1396
1534
  "name": "use_state",
1397
1535
  "type": "checkbox",
1398
- "default_value": true
1536
+ "default_value": false
1399
1537
  },
1400
1538
  {
1401
1539
  "name": "header",
1402
- "type": "text"
1540
+ "type": "text",
1541
+ "depends_on": "./use_state"
1403
1542
  },
1404
1543
  {
1405
1544
  "name": "subheader",
1406
- "type": "text"
1545
+ "type": "text",
1546
+ "depends_on": "./use_state"
1407
1547
  },
1408
1548
  {
1409
1549
  "name": "start_date",
1410
1550
  "type": "datetime",
1411
- "no_localize": true
1551
+ "no_localize": true,
1552
+ "depends_on": "./use_state"
1412
1553
  },
1413
1554
  {
1414
1555
  "name": "use_main_stream",
1415
1556
  "type": "checkbox",
1416
1557
  "default_value": false,
1417
- "hint": "If checked, the stream for the main event will be used instead of one specified in this section"
1558
+ "hint": "If checked, the stream for the main event will be used instead of one specified in this section",
1559
+ "depends_on": "./use_state"
1418
1560
  },
1419
1561
  {
1420
1562
  "name": "stream",
1421
1563
  "type": "fabric_link",
1422
- "video_preview": true
1564
+ "video_preview": true,
1565
+ "depends_on": "./use_state"
1423
1566
  },
1424
1567
  {
1425
1568
  "name": "loop_stream",
1426
1569
  "type": "checkbox",
1427
- "default_value": false
1570
+ "default_value": false,
1571
+ "depends_on": "./use_state"
1428
1572
  },
1429
1573
  {
1430
1574
  "name": "modal_message",
1431
1575
  "label": "Modal Message (Minting Start)",
1432
1576
  "type": "subsection",
1433
1577
  "hint": "If specified, this message will be displayed in a popup modal at the start of this part of the event. You can use this to communicate information to users.",
1578
+ "depends_on": "./use_state",
1434
1579
  "fields": [
1435
1580
  {
1436
1581
  "name": "show",
@@ -1462,38 +1607,45 @@ const eventSiteSpec = {
1462
1607
  },
1463
1608
  {
1464
1609
  "name": "header",
1465
- "type": "text"
1610
+ "type": "text",
1611
+ "depends_on": "./use_state"
1466
1612
  },
1467
1613
  {
1468
1614
  "name": "subheader",
1469
- "type": "text"
1615
+ "type": "text",
1616
+ "depends_on": "./use_state"
1470
1617
  },
1471
1618
  {
1472
1619
  "name": "start_date",
1473
1620
  "type": "datetime",
1474
- "no_localize": true
1621
+ "no_localize": true,
1622
+ "depends_on": "./use_state"
1475
1623
  },
1476
1624
  {
1477
1625
  "name": "use_main_stream",
1478
1626
  "type": "checkbox",
1479
1627
  "default_value": false,
1480
- "hint": "If checked, the stream for the main event will be used instead of one specified in this section"
1628
+ "hint": "If checked, the stream for the main event will be used instead of one specified in this section",
1629
+ "depends_on": "./use_state"
1481
1630
  },
1482
1631
  {
1483
1632
  "name": "stream",
1484
1633
  "type": "fabric_link",
1485
- "video_preview": true
1634
+ "video_preview": true,
1635
+ "depends_on": "./use_state"
1486
1636
  },
1487
1637
  {
1488
1638
  "name": "loop_stream",
1489
1639
  "type": "checkbox",
1490
- "default_value": false
1640
+ "default_value": false,
1641
+ "depends_on": "./use_state"
1491
1642
  },
1492
1643
  {
1493
1644
  "name": "modal_message",
1494
1645
  "label": "Modal Message (Event Ended)",
1495
1646
  "type": "subsection",
1496
1647
  "hint": "If specified, this message will be displayed in a popup modal at the start of this part of the event. You can use this to communicate information to users.",
1648
+ "depends_on": "./use_state",
1497
1649
  "fields": [
1498
1650
  {
1499
1651
  "name": "show",
@@ -1659,7 +1811,58 @@ const eventSiteSpec = {
1659
1811
  ]
1660
1812
  }
1661
1813
  ]
1662
- }
1814
+ },
1815
+
1816
+
1817
+
1818
+ {
1819
+ "fields": [
1820
+ {
1821
+ "name": "name",
1822
+ "type": "text"
1823
+ },
1824
+ {
1825
+ "fields": [
1826
+ {
1827
+ "hint": "A description displayed next to the 'Next' button when viewing the previous page.",
1828
+ "name": "page_title",
1829
+ "type": "text"
1830
+ },
1831
+ {
1832
+ "extensions": imageTypes,
1833
+ "name": "image",
1834
+ "type": "file"
1835
+ },
1836
+ {
1837
+ "name": "text_color",
1838
+ "type": "color",
1839
+ "no_label": true,
1840
+ "default_value": {
1841
+ "color": "#000000",
1842
+ "label": "Black"
1843
+ }
1844
+ },
1845
+ {
1846
+ "name": "background_color",
1847
+ "type": "color",
1848
+ "no_label": true,
1849
+ "default_value": {
1850
+ "color": "#FFFFFF",
1851
+ "label": "White"
1852
+ }
1853
+ },
1854
+ {
1855
+ "name": "text",
1856
+ "type": "rich_text"
1857
+ }
1858
+ ],
1859
+ "name": "pages",
1860
+ "type": "list"
1861
+ }
1862
+ ],
1863
+ "name": "event_descriptions",
1864
+ "type": "list"
1865
+ },
1663
1866
  ]
1664
1867
  };
1665
1868