@vivix-labs/media-tools 1.0.0-beta → 1.0.0-beta.3
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/README.md +3 -0
- package/dist/assets/detail-E52XPONK.svg +4 -0
- package/dist/assets/edit-JUVJDD5A.svg +6 -0
- package/dist/assets/export-W2OBXZDQ.svg +6 -0
- package/dist/assets/fullscreen-large-MPLIWDMI.svg +6 -0
- package/dist/assets/inter-latin-700-normal-SU5XVJMF.woff2 +0 -0
- package/dist/assets/mute-large-LSZZ44HF.svg +6 -0
- package/dist/assets/pause-large-XEUBL4KC.svg +6 -0
- package/dist/assets/placeholder-audio-EJEBE7OB.svg +11 -0
- package/dist/assets/placeholder-image-NOVXFVRL.svg +10 -0
- package/dist/assets/placeholder-script-LR2GKWKS.svg +7 -0
- package/dist/assets/placeholder-video-ZFOYHYCR.svg +7 -0
- package/dist/assets/play-cover-WQLOHHPZ.svg +5 -0
- package/dist/assets/playback-play-YRMIX5W4.svg +5 -0
- package/dist/assets/playback-play-large-TM3QUJGG.svg +5 -0
- package/dist/assets/volume-large-QNULSJ2I.svg +6 -0
- package/dist/client.bundle.js +344 -79
- package/dist/client.css +380 -45
- package/dist/client.d.ts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/shared.d.ts +3 -0
- package/package.json +3 -3
package/dist/client.css
CHANGED
|
@@ -54,6 +54,19 @@
|
|
|
54
54
|
--vx-tabs-secondary-height: 44px;
|
|
55
55
|
--vx-segment-medium-height: 32px;
|
|
56
56
|
--vx-segment-large-height: 36px;
|
|
57
|
+
--vx-media-selection-color: var(--vx-green-dark);
|
|
58
|
+
--vx-tag-height: 16px;
|
|
59
|
+
--vx-dialog-small-width: 480px;
|
|
60
|
+
--vx-dialog-large-width: 720px;
|
|
61
|
+
--vx-dialog-padding: 24px;
|
|
62
|
+
--vx-dialog-radius: 16px;
|
|
63
|
+
--vx-dialog-backdrop-blur: 40px;
|
|
64
|
+
--vx-magic-edit-prompt-width: 460px;
|
|
65
|
+
--vx-magic-edit-prompt-height: 42px;
|
|
66
|
+
--vx-magic-edit-send-height: 34px;
|
|
67
|
+
--vx-magic-edit-selection-fill: color-mix( in srgb, var(--vx-media-selection-color) 20%, transparent );
|
|
68
|
+
--vx-magic-edit-highlight-fill: color-mix(in srgb, var(--vx-state-success) 16%, transparent);
|
|
69
|
+
--vx-magic-edit-highlight-border: color-mix(in srgb, var(--vx-state-success) 50%, transparent);
|
|
57
70
|
--vx-warm-neutral-01: #f9f6f4;
|
|
58
71
|
--vx-warm-neutral-02: #f3f0ed;
|
|
59
72
|
--vx-warm-neutral-03: #f1eeea;
|
|
@@ -161,6 +174,7 @@
|
|
|
161
174
|
--vx-typography-inter-16-medium: normal 500 16px/21px var(--vx-font-inter);
|
|
162
175
|
--vx-typography-inter-16-medium-tracking: 0px;
|
|
163
176
|
--vx-typography-inter-18-regular: normal 400 18px/23px var(--vx-font-inter);
|
|
177
|
+
--vx-typography-inter-18-bold: normal 700 18px/23px var(--vx-font-inter);
|
|
164
178
|
--vx-typography-inter-18-semi-bold: normal 600 18px/23px var(--vx-font-inter);
|
|
165
179
|
--vx-typography-inter-18-medium: normal 500 18px/23px var(--vx-font-inter);
|
|
166
180
|
--vx-typography-inter-18-medium-tracking: 0px;
|
|
@@ -739,6 +753,18 @@
|
|
|
739
753
|
color: var(--vx-text-placeholder);
|
|
740
754
|
cursor: not-allowed;
|
|
741
755
|
}
|
|
756
|
+
.vx-dropdown[data-appearance=field] {
|
|
757
|
+
width: 100%;
|
|
758
|
+
min-width: 0;
|
|
759
|
+
}
|
|
760
|
+
.vx-dropdown[data-appearance=field] .vx-dropdown-trigger {
|
|
761
|
+
padding: 0 var(--vx-space-10);
|
|
762
|
+
background: var(--vx-surface-input);
|
|
763
|
+
font: var(--vx-typography-inter-14-regular);
|
|
764
|
+
}
|
|
765
|
+
.vx-dropdown[data-appearance=field] .vx-dropdown-trigger:is(:hover:not(:disabled), :focus-visible, [aria-expanded=true]) {
|
|
766
|
+
background: var(--vx-surface-selected);
|
|
767
|
+
}
|
|
742
768
|
.vx-dropdown-value {
|
|
743
769
|
display: inline-flex;
|
|
744
770
|
align-items: center;
|
|
@@ -852,6 +878,7 @@
|
|
|
852
878
|
padding: var(--vx-space-2);
|
|
853
879
|
border-radius: var(--vx-radius-lg);
|
|
854
880
|
background: var(--vx-background-page);
|
|
881
|
+
color: var(--vx-text-primary);
|
|
855
882
|
}
|
|
856
883
|
.vx-segment[data-size=large] {
|
|
857
884
|
height: var(--vx-segment-large-height);
|
|
@@ -1098,7 +1125,7 @@
|
|
|
1098
1125
|
border-radius: 3px;
|
|
1099
1126
|
background: var(--vx-overlay-tag);
|
|
1100
1127
|
color: var(--vx-text-on-content-primary);
|
|
1101
|
-
font:
|
|
1128
|
+
font: var(--vx-typography-inter-10-semi-bold);
|
|
1102
1129
|
white-space: nowrap;
|
|
1103
1130
|
}
|
|
1104
1131
|
.vx-tag[data-variant=selected] {
|
|
@@ -1259,23 +1286,90 @@
|
|
|
1259
1286
|
color: var(--vx-text-secondary);
|
|
1260
1287
|
}
|
|
1261
1288
|
.vx-playback-controls {
|
|
1289
|
+
--vx-playback-button-size: 20px;
|
|
1290
|
+
--vx-playback-thumb-size: 8px;
|
|
1291
|
+
height: 44px;
|
|
1262
1292
|
min-height: 44px;
|
|
1293
|
+
padding: var(--vx-space-12);
|
|
1294
|
+
gap: var(--vx-space-12);
|
|
1295
|
+
background: linear-gradient(transparent, var(--vx-black-black-2a));
|
|
1296
|
+
color: var(--vx-text-on-content-primary);
|
|
1263
1297
|
}
|
|
1264
1298
|
.vx-playback-controls[data-size=large] {
|
|
1299
|
+
--vx-playback-button-size: 24px;
|
|
1300
|
+
--vx-playback-thumb-size: 12px;
|
|
1301
|
+
height: 48px;
|
|
1265
1302
|
min-height: 48px;
|
|
1266
1303
|
}
|
|
1304
|
+
.vx-playback-controls > .vx-button {
|
|
1305
|
+
--vx-button-icon-size: var(--vx-playback-button-size);
|
|
1306
|
+
width: var(--vx-playback-button-size);
|
|
1307
|
+
height: var(--vx-playback-button-size);
|
|
1308
|
+
color: inherit;
|
|
1309
|
+
}
|
|
1267
1310
|
.vx-playback-controls > input {
|
|
1311
|
+
appearance: none;
|
|
1268
1312
|
flex: 1;
|
|
1313
|
+
min-width: 0;
|
|
1314
|
+
height: 24px;
|
|
1315
|
+
margin: 0;
|
|
1316
|
+
padding: 0;
|
|
1317
|
+
background: transparent;
|
|
1318
|
+
cursor: pointer;
|
|
1319
|
+
}
|
|
1320
|
+
.vx-playback-controls > input::-webkit-slider-runnable-track {
|
|
1321
|
+
height: var(--vx-playback-thumb-size);
|
|
1322
|
+
border-radius: var(--vx-radius-full);
|
|
1323
|
+
background:
|
|
1324
|
+
linear-gradient(
|
|
1325
|
+
to right,
|
|
1326
|
+
var(--vx-white-white-7a) var(--vx-playback-progress),
|
|
1327
|
+
var(--vx-overlay-tag) var(--vx-playback-progress));
|
|
1328
|
+
}
|
|
1329
|
+
.vx-playback-controls > input::-webkit-slider-thumb {
|
|
1330
|
+
appearance: none;
|
|
1331
|
+
box-sizing: border-box;
|
|
1332
|
+
width: var(--vx-playback-thumb-size);
|
|
1333
|
+
height: var(--vx-playback-thumb-size);
|
|
1334
|
+
border: 1px solid transparent;
|
|
1335
|
+
border-radius: 50%;
|
|
1336
|
+
background: var(--vx-white-white);
|
|
1337
|
+
background-clip: padding-box;
|
|
1338
|
+
}
|
|
1339
|
+
.vx-playback-controls > input::-moz-range-track {
|
|
1340
|
+
height: var(--vx-playback-thumb-size);
|
|
1341
|
+
border-radius: var(--vx-radius-full);
|
|
1342
|
+
background: var(--vx-overlay-tag);
|
|
1343
|
+
}
|
|
1344
|
+
.vx-playback-controls > input::-moz-range-progress {
|
|
1345
|
+
height: var(--vx-playback-thumb-size);
|
|
1346
|
+
border-radius: var(--vx-radius-full);
|
|
1347
|
+
background: var(--vx-white-white-7a);
|
|
1348
|
+
}
|
|
1349
|
+
.vx-playback-controls > input::-moz-range-thumb {
|
|
1350
|
+
box-sizing: border-box;
|
|
1351
|
+
width: var(--vx-playback-thumb-size);
|
|
1352
|
+
height: var(--vx-playback-thumb-size);
|
|
1353
|
+
border: 1px solid transparent;
|
|
1354
|
+
border-radius: 50%;
|
|
1355
|
+
background: var(--vx-white-white);
|
|
1356
|
+
background-clip: padding-box;
|
|
1269
1357
|
}
|
|
1270
1358
|
.vx-playback-controls > span {
|
|
1271
1359
|
white-space: nowrap;
|
|
1272
1360
|
font: var(--vx-typography-inter-12-medium);
|
|
1361
|
+
font-variant-numeric: tabular-nums;
|
|
1273
1362
|
}
|
|
1274
1363
|
.vx-video-player {
|
|
1364
|
+
container: vx-video-player / inline-size;
|
|
1275
1365
|
position: relative;
|
|
1276
1366
|
min-width: 0;
|
|
1367
|
+
overflow: hidden;
|
|
1277
1368
|
background: #000;
|
|
1278
|
-
border-radius: var(--vx-radius-
|
|
1369
|
+
border-radius: var(--vx-radius-xl);
|
|
1370
|
+
}
|
|
1371
|
+
.vx-video-player[data-placement=below] > .vx-playback-controls {
|
|
1372
|
+
border-radius: 0;
|
|
1279
1373
|
}
|
|
1280
1374
|
.vx-video-stage {
|
|
1281
1375
|
position: relative;
|
|
@@ -1291,30 +1385,101 @@
|
|
|
1291
1385
|
}
|
|
1292
1386
|
.vx-video-cover {
|
|
1293
1387
|
position: absolute;
|
|
1294
|
-
inset: 0;
|
|
1295
|
-
display:
|
|
1296
|
-
|
|
1388
|
+
inset: auto 0 0;
|
|
1389
|
+
display: flex;
|
|
1390
|
+
align-items: flex-end;
|
|
1391
|
+
gap: var(--vx-space-16);
|
|
1392
|
+
min-height: 68px;
|
|
1393
|
+
padding: var(--vx-space-20);
|
|
1297
1394
|
color: var(--vx-text-on-content-primary);
|
|
1298
|
-
background: linear-gradient(var(--vx-black-black-4a), transparent 40%);
|
|
1299
1395
|
}
|
|
1300
|
-
.vx-video-cover
|
|
1396
|
+
.vx-video-cover::before {
|
|
1301
1397
|
position: absolute;
|
|
1302
|
-
inset:
|
|
1398
|
+
inset: 0;
|
|
1399
|
+
background:
|
|
1400
|
+
linear-gradient(
|
|
1401
|
+
180deg,
|
|
1402
|
+
rgb(0 0 0 / 0%) 0%,
|
|
1403
|
+
rgb(0 0 0 / 60%) 100%);
|
|
1404
|
+
content: "";
|
|
1405
|
+
pointer-events: none;
|
|
1406
|
+
}
|
|
1407
|
+
.vx-video-info {
|
|
1408
|
+
position: relative;
|
|
1409
|
+
flex: 1;
|
|
1410
|
+
min-width: 0;
|
|
1411
|
+
}
|
|
1412
|
+
.vx-video-title {
|
|
1413
|
+
display: flex;
|
|
1414
|
+
align-items: center;
|
|
1415
|
+
gap: var(--vx-space-8);
|
|
1416
|
+
}
|
|
1417
|
+
.vx-video-title strong {
|
|
1418
|
+
overflow: hidden;
|
|
1419
|
+
text-overflow: ellipsis;
|
|
1420
|
+
white-space: nowrap;
|
|
1421
|
+
font: var(--vx-typography-inter-18-bold);
|
|
1422
|
+
}
|
|
1423
|
+
.vx-video-meta {
|
|
1303
1424
|
display: flex;
|
|
1304
|
-
flex-wrap: wrap;
|
|
1305
1425
|
align-items: center;
|
|
1306
1426
|
gap: var(--vx-space-4);
|
|
1427
|
+
margin-top: var(--vx-space-4);
|
|
1428
|
+
color: var(--vx-text-on-content-secondary);
|
|
1429
|
+
font: var(--vx-typography-inter-14-regular);
|
|
1430
|
+
}
|
|
1431
|
+
.vx-video-meta > span {
|
|
1432
|
+
min-width: 0;
|
|
1433
|
+
overflow: hidden;
|
|
1434
|
+
text-overflow: ellipsis;
|
|
1435
|
+
white-space: nowrap;
|
|
1436
|
+
}
|
|
1437
|
+
.vx-video-player .vx-video-start {
|
|
1438
|
+
--vx-button-background: var(--vx-text-on-content-primary);
|
|
1439
|
+
--vx-button-foreground: var(--vx-text-subtle-black);
|
|
1440
|
+
--vx-button-icon-size: 20px;
|
|
1441
|
+
position: relative;
|
|
1442
|
+
width: 36px;
|
|
1443
|
+
height: 36px;
|
|
1444
|
+
padding-left: 3px;
|
|
1307
1445
|
}
|
|
1308
1446
|
.vx-video-player[data-placement=overlay] > .vx-playback-controls {
|
|
1309
1447
|
position: absolute;
|
|
1310
|
-
inset: auto
|
|
1448
|
+
inset: auto 0 0;
|
|
1449
|
+
border-radius: 0;
|
|
1450
|
+
}
|
|
1451
|
+
@container vx-video-player (max-width: 336px) {
|
|
1452
|
+
.vx-video-meta {
|
|
1453
|
+
flex-direction: column;
|
|
1454
|
+
align-items: flex-start;
|
|
1455
|
+
gap: 0;
|
|
1456
|
+
}
|
|
1457
|
+
.vx-video-meta > [aria-hidden] {
|
|
1458
|
+
display: none;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
@media (max-width: 480px) {
|
|
1462
|
+
.vx-video-cover {
|
|
1463
|
+
padding: var(--vx-space-12);
|
|
1464
|
+
gap: var(--vx-space-8);
|
|
1465
|
+
}
|
|
1466
|
+
.vx-video-title {
|
|
1467
|
+
flex-wrap: wrap;
|
|
1468
|
+
gap: var(--vx-space-4);
|
|
1469
|
+
}
|
|
1470
|
+
.vx-video-title strong {
|
|
1471
|
+
font: var(--vx-typography-inter-14-semi-bold);
|
|
1472
|
+
}
|
|
1473
|
+
.vx-video-meta {
|
|
1474
|
+
font: var(--vx-typography-inter-10-regular);
|
|
1475
|
+
}
|
|
1311
1476
|
}
|
|
1312
1477
|
.vx-frame-range {
|
|
1313
1478
|
position: relative;
|
|
1314
1479
|
min-height: 80px;
|
|
1315
1480
|
margin-inline: var(--vx-space-8);
|
|
1316
|
-
border-radius: var(--vx-radius-
|
|
1317
|
-
background: var(--vx-
|
|
1481
|
+
border-radius: var(--vx-radius-lg);
|
|
1482
|
+
background: var(--vx-black-black);
|
|
1318
1483
|
}
|
|
1319
1484
|
.vx-frame-range[data-variant=trim] {
|
|
1320
1485
|
min-height: 48px;
|
|
@@ -1368,6 +1533,12 @@
|
|
|
1368
1533
|
content: "";
|
|
1369
1534
|
}
|
|
1370
1535
|
}
|
|
1536
|
+
@scope ([data-vx-theme]) {
|
|
1537
|
+
.vx-media:is([data-empty=image], [data-empty=video], [data-empty=audio], [data-empty=script]) {
|
|
1538
|
+
background: var(--vx-surface-input);
|
|
1539
|
+
color: var(--vx-text-placeholder);
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1371
1542
|
|
|
1372
1543
|
/* packages/ui-system/dist/overlays.css */
|
|
1373
1544
|
@scope ([data-vx-theme]) {
|
|
@@ -1508,7 +1679,8 @@
|
|
|
1508
1679
|
box-shadow: var(--vx-shadow-dialog);
|
|
1509
1680
|
}
|
|
1510
1681
|
.vx-dialog::backdrop {
|
|
1511
|
-
background: var(--vx-
|
|
1682
|
+
background: var(--vx-overlay-dialog, rgb(255 255 255 / 80%));
|
|
1683
|
+
backdrop-filter: blur(var(--vx-dialog-backdrop-blur, 40px));
|
|
1512
1684
|
}
|
|
1513
1685
|
.vx-dialog > :is(header, footer),
|
|
1514
1686
|
.vx-dialog-body {
|
|
@@ -1528,6 +1700,97 @@
|
|
|
1528
1700
|
margin: 0;
|
|
1529
1701
|
font: var(--vx-typography-inter-16-semi-bold);
|
|
1530
1702
|
}
|
|
1703
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) {
|
|
1704
|
+
--vx-dialog-section-gap: var(--vx-space-24);
|
|
1705
|
+
--vx-dialog-footer-inset: var(--vx-space-24);
|
|
1706
|
+
width: min(var(--vx-dialog-small-width), calc(100vw - var(--vx-space-32)));
|
|
1707
|
+
padding: var(--vx-dialog-padding);
|
|
1708
|
+
border: var(--vx-border-width) solid var(--vx-surface-input);
|
|
1709
|
+
border-radius: var(--vx-dialog-radius);
|
|
1710
|
+
overflow: auto;
|
|
1711
|
+
}
|
|
1712
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header {
|
|
1713
|
+
padding: 0;
|
|
1714
|
+
margin: 0 var(--vx-space-32) var(--vx-dialog-section-gap) 0;
|
|
1715
|
+
}
|
|
1716
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header h2 {
|
|
1717
|
+
font: var(--vx-typography-inter-18-semi-bold);
|
|
1718
|
+
}
|
|
1719
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header > .vx-button {
|
|
1720
|
+
position: absolute;
|
|
1721
|
+
top: 15px;
|
|
1722
|
+
right: 15px;
|
|
1723
|
+
}
|
|
1724
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > .vx-dialog-body {
|
|
1725
|
+
min-width: 0;
|
|
1726
|
+
padding: 0;
|
|
1727
|
+
}
|
|
1728
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > footer {
|
|
1729
|
+
margin-top: var(--vx-dialog-section-gap);
|
|
1730
|
+
padding: var(--vx-dialog-footer-inset) 0 0;
|
|
1731
|
+
border-top: var(--vx-divider-width) solid var(--vx-border-secondary);
|
|
1732
|
+
}
|
|
1733
|
+
.vx-dialog[data-variant=create-project] .vx-field {
|
|
1734
|
+
gap: var(--vx-space-8);
|
|
1735
|
+
}
|
|
1736
|
+
.vx-dialog[data-variant=create-project] .vx-field > span {
|
|
1737
|
+
color: var(--vx-text-secondary);
|
|
1738
|
+
font: var(--vx-typography-inter-14-regular);
|
|
1739
|
+
}
|
|
1740
|
+
.vx-dialog[data-variant=create-project] .vx-field > input {
|
|
1741
|
+
height: var(--vx-input-large-height);
|
|
1742
|
+
padding: var(--vx-space-8) var(--vx-space-12);
|
|
1743
|
+
border: 0;
|
|
1744
|
+
border-radius: var(--vx-radius-md);
|
|
1745
|
+
background: var(--vx-surface-input);
|
|
1746
|
+
font: var(--vx-typography-inter-16-regular);
|
|
1747
|
+
}
|
|
1748
|
+
.vx-dialog[data-variant=create-project] .vx-field > input::placeholder {
|
|
1749
|
+
color: var(--vx-text-secondary);
|
|
1750
|
+
opacity: 1;
|
|
1751
|
+
}
|
|
1752
|
+
.vx-dialog[data-variant=create-project] .vx-segment {
|
|
1753
|
+
background: var(--vx-surface-input);
|
|
1754
|
+
}
|
|
1755
|
+
.vx-toast {
|
|
1756
|
+
position: fixed;
|
|
1757
|
+
z-index: 40;
|
|
1758
|
+
left: 50%;
|
|
1759
|
+
bottom: max(var(--vx-space-24), env(safe-area-inset-bottom));
|
|
1760
|
+
transform: translateX(-50%);
|
|
1761
|
+
display: flex;
|
|
1762
|
+
align-items: center;
|
|
1763
|
+
gap: var(--vx-space-8);
|
|
1764
|
+
box-sizing: border-box;
|
|
1765
|
+
width: max-content;
|
|
1766
|
+
max-width: calc(100% - 2 * var(--vx-space-16));
|
|
1767
|
+
padding: var(--vx-space-8) var(--vx-space-16);
|
|
1768
|
+
border: var(--vx-border-width) solid var(--vx-border-secondary);
|
|
1769
|
+
border-radius: var(--vx-radius-md);
|
|
1770
|
+
background: var(--vx-text-primary);
|
|
1771
|
+
color: var(--vx-text-inverse);
|
|
1772
|
+
box-shadow: var(--vx-shadow-dialog);
|
|
1773
|
+
font: var(--vx-typography-inter-12-medium);
|
|
1774
|
+
pointer-events: none;
|
|
1775
|
+
}
|
|
1776
|
+
.vx-toast:empty {
|
|
1777
|
+
display: none;
|
|
1778
|
+
}
|
|
1779
|
+
.vx-prompt-hint {
|
|
1780
|
+
display: grid;
|
|
1781
|
+
justify-items: center;
|
|
1782
|
+
gap: var(--vx-space-12);
|
|
1783
|
+
padding: var(--vx-space-32) var(--vx-space-16);
|
|
1784
|
+
text-align: center;
|
|
1785
|
+
color: var(--vx-text-secondary);
|
|
1786
|
+
}
|
|
1787
|
+
.vx-prompt-hint p {
|
|
1788
|
+
margin: 0;
|
|
1789
|
+
}
|
|
1790
|
+
.vx-prompt-hint textarea {
|
|
1791
|
+
width: min(100%, 480px);
|
|
1792
|
+
min-height: 120px;
|
|
1793
|
+
}
|
|
1531
1794
|
}
|
|
1532
1795
|
|
|
1533
1796
|
/* packages/ui-system/dist/styles.css */
|
|
@@ -1549,12 +1812,18 @@
|
|
|
1549
1812
|
font-weight: 600;
|
|
1550
1813
|
font-display: swap;
|
|
1551
1814
|
}
|
|
1815
|
+
@font-face {
|
|
1816
|
+
font-family: "Vivix Studio Inter";
|
|
1817
|
+
src: url("./assets/inter-latin-700-normal-SU5XVJMF.woff2") format("woff2");
|
|
1818
|
+
font-weight: 700;
|
|
1819
|
+
font-display: swap;
|
|
1820
|
+
}
|
|
1552
1821
|
@scope ([data-vx-theme]) {
|
|
1553
1822
|
.vx-icon {
|
|
1554
1823
|
display: inline-block;
|
|
1555
1824
|
flex: none;
|
|
1556
|
-
width: var(--vx-icon-size, var(--vx-button-icon-size, 16px));
|
|
1557
|
-
height: var(--vx-icon-size, var(--vx-button-icon-size, 16px));
|
|
1825
|
+
width: var(--vx-icon-size, var(--vx-button-icon-size, var(--vx-icon-native-size, 16px)));
|
|
1826
|
+
height: var(--vx-icon-size, var(--vx-button-icon-size, var(--vx-icon-native-size, 16px)));
|
|
1558
1827
|
vertical-align: middle;
|
|
1559
1828
|
position: relative;
|
|
1560
1829
|
}
|
|
@@ -1661,6 +1930,54 @@
|
|
|
1661
1930
|
--vx-icon-mask: url("./assets/chevron-left-JQCLK2WZ.svg");
|
|
1662
1931
|
}
|
|
1663
1932
|
}
|
|
1933
|
+
@scope ([data-vx-theme]) {
|
|
1934
|
+
.vx-icon[data-icon=placeholder-image] {
|
|
1935
|
+
--vx-icon-mask: url("./assets/placeholder-image-NOVXFVRL.svg");
|
|
1936
|
+
}
|
|
1937
|
+
.vx-icon[data-icon=placeholder-video] {
|
|
1938
|
+
--vx-icon-mask: url("./assets/placeholder-video-ZFOYHYCR.svg");
|
|
1939
|
+
}
|
|
1940
|
+
.vx-icon[data-icon=placeholder-audio] {
|
|
1941
|
+
--vx-icon-mask: url("./assets/placeholder-audio-EJEBE7OB.svg");
|
|
1942
|
+
}
|
|
1943
|
+
.vx-icon[data-icon=placeholder-script] {
|
|
1944
|
+
--vx-icon-mask: url("./assets/placeholder-script-LR2GKWKS.svg");
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
@scope ([data-vx-theme]) {
|
|
1948
|
+
.vx-icon[data-icon=detail] {
|
|
1949
|
+
--vx-icon-mask: url("./assets/detail-E52XPONK.svg");
|
|
1950
|
+
}
|
|
1951
|
+
.vx-icon[data-icon=export] {
|
|
1952
|
+
--vx-icon-mask: url("./assets/export-W2OBXZDQ.svg");
|
|
1953
|
+
}
|
|
1954
|
+
.vx-icon[data-icon=edit] {
|
|
1955
|
+
--vx-icon-mask: url("./assets/edit-JUVJDD5A.svg");
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
@scope ([data-vx-theme]) {
|
|
1959
|
+
.vx-icon[data-icon=play-cover] {
|
|
1960
|
+
--vx-icon-mask: url("./assets/play-cover-WQLOHHPZ.svg");
|
|
1961
|
+
}
|
|
1962
|
+
.vx-icon[data-icon=playback-play] {
|
|
1963
|
+
--vx-icon-mask: url("./assets/playback-play-YRMIX5W4.svg");
|
|
1964
|
+
}
|
|
1965
|
+
.vx-icon[data-icon=playback-play-large] {
|
|
1966
|
+
--vx-icon-mask: url("./assets/playback-play-large-TM3QUJGG.svg");
|
|
1967
|
+
}
|
|
1968
|
+
.vx-icon[data-icon=pause-large] {
|
|
1969
|
+
--vx-icon-mask: url("./assets/pause-large-XEUBL4KC.svg");
|
|
1970
|
+
}
|
|
1971
|
+
.vx-icon[data-icon=volume-large] {
|
|
1972
|
+
--vx-icon-mask: url("./assets/volume-large-QNULSJ2I.svg");
|
|
1973
|
+
}
|
|
1974
|
+
.vx-icon[data-icon=mute-large] {
|
|
1975
|
+
--vx-icon-mask: url("./assets/mute-large-LSZZ44HF.svg");
|
|
1976
|
+
}
|
|
1977
|
+
.vx-icon[data-icon=fullscreen-large] {
|
|
1978
|
+
--vx-icon-mask: url("./assets/fullscreen-large-MPLIWDMI.svg");
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1664
1981
|
|
|
1665
1982
|
/* packages/media-tools/src/ui/styles.css */
|
|
1666
1983
|
.mt-root {
|
|
@@ -1707,19 +2024,28 @@
|
|
|
1707
2024
|
.mt-editor .vx-dialog > footer {
|
|
1708
2025
|
padding: 32px 24px 24px;
|
|
1709
2026
|
}
|
|
1710
|
-
.mt-editor
|
|
2027
|
+
.mt-editor .vx-dialog[open] {
|
|
1711
2028
|
display: flex;
|
|
1712
2029
|
flex-direction: column;
|
|
1713
2030
|
overflow: hidden;
|
|
1714
2031
|
}
|
|
1715
|
-
.mt-editor
|
|
2032
|
+
.mt-editor .vx-dialog > :is(header, footer) {
|
|
1716
2033
|
flex-shrink: 0;
|
|
1717
2034
|
}
|
|
1718
|
-
.mt-editor
|
|
2035
|
+
.mt-editor .vx-dialog-body {
|
|
1719
2036
|
min-height: 0;
|
|
1720
2037
|
overflow: auto;
|
|
1721
|
-
|
|
1722
|
-
|
|
2038
|
+
}
|
|
2039
|
+
.mt-editor-content {
|
|
2040
|
+
display: flex;
|
|
2041
|
+
flex-direction: column;
|
|
2042
|
+
gap: var(--vx-space-16);
|
|
2043
|
+
}
|
|
2044
|
+
.mt-editor-content > * {
|
|
2045
|
+
flex-shrink: 0;
|
|
2046
|
+
}
|
|
2047
|
+
.mt-editor-content > p {
|
|
2048
|
+
margin: 0;
|
|
1723
2049
|
}
|
|
1724
2050
|
.mt-editor-actions {
|
|
1725
2051
|
display: flex;
|
|
@@ -1744,7 +2070,8 @@
|
|
|
1744
2070
|
gap: 8px;
|
|
1745
2071
|
color: var(--vx-text-secondary);
|
|
1746
2072
|
font-size: 14px;
|
|
1747
|
-
margin:
|
|
2073
|
+
margin: 0;
|
|
2074
|
+
flex-wrap: wrap;
|
|
1748
2075
|
}
|
|
1749
2076
|
.mt-editor-hint > [role=status] {
|
|
1750
2077
|
white-space: nowrap;
|
|
@@ -1835,18 +2162,6 @@
|
|
|
1835
2162
|
border-radius: 0.911px;
|
|
1836
2163
|
background: var(--vx-text-on-content-primary);
|
|
1837
2164
|
}
|
|
1838
|
-
.mt-precision {
|
|
1839
|
-
margin-top: 12px;
|
|
1840
|
-
color: var(--vx-text-secondary);
|
|
1841
|
-
font-size: 12px;
|
|
1842
|
-
}
|
|
1843
|
-
.mt-precision > summary {
|
|
1844
|
-
cursor: pointer;
|
|
1845
|
-
width: fit-content;
|
|
1846
|
-
}
|
|
1847
|
-
.mt-precision .mt-fields {
|
|
1848
|
-
color: var(--vx-text-primary);
|
|
1849
|
-
}
|
|
1850
2165
|
.mt-player {
|
|
1851
2166
|
position: relative;
|
|
1852
2167
|
background: #000;
|
|
@@ -2063,7 +2378,7 @@
|
|
|
2063
2378
|
.mt-compare-columns {
|
|
2064
2379
|
display: grid;
|
|
2065
2380
|
grid-template-rows: auto auto auto auto;
|
|
2066
|
-
column-gap:
|
|
2381
|
+
column-gap: 16px;
|
|
2067
2382
|
overflow-x: auto;
|
|
2068
2383
|
padding-bottom: 8px;
|
|
2069
2384
|
}
|
|
@@ -2080,7 +2395,7 @@
|
|
|
2080
2395
|
content: "";
|
|
2081
2396
|
position: absolute;
|
|
2082
2397
|
inset-block: 0;
|
|
2083
|
-
left: -
|
|
2398
|
+
left: -8px;
|
|
2084
2399
|
width: 1px;
|
|
2085
2400
|
background: var(--vx-border-secondary);
|
|
2086
2401
|
pointer-events: none;
|
|
@@ -2094,13 +2409,10 @@
|
|
|
2094
2409
|
}
|
|
2095
2410
|
.mt-compare-preview :is(.mt-player, .vx-video-player) {
|
|
2096
2411
|
height: 100%;
|
|
2097
|
-
|
|
2098
|
-
flex-direction: column;
|
|
2099
|
-
background: var(--vx-surface-input);
|
|
2412
|
+
background: var(--vx-black-black);
|
|
2100
2413
|
}
|
|
2101
2414
|
.mt-compare-preview :is(.mt-player-fit, .vx-video-stage) {
|
|
2102
|
-
height:
|
|
2103
|
-
flex: 1;
|
|
2415
|
+
height: 100%;
|
|
2104
2416
|
min-height: 0;
|
|
2105
2417
|
aspect-ratio: auto;
|
|
2106
2418
|
}
|
|
@@ -2108,14 +2420,37 @@
|
|
|
2108
2420
|
background: transparent;
|
|
2109
2421
|
}
|
|
2110
2422
|
.mt-compare-preview .vx-video-cover {
|
|
2111
|
-
background: transparent;
|
|
2423
|
+
background: linear-gradient(transparent 45%, #0009);
|
|
2424
|
+
align-items: end;
|
|
2425
|
+
justify-items: end;
|
|
2426
|
+
padding: 20px;
|
|
2112
2427
|
}
|
|
2113
2428
|
.mt-compare-preview .vx-video-cover > div {
|
|
2429
|
+
display: block;
|
|
2430
|
+
inset: auto 64px 20px 20px;
|
|
2431
|
+
font-size: 16px;
|
|
2432
|
+
line-height: 24px;
|
|
2433
|
+
}
|
|
2434
|
+
.mt-compare-preview .vx-video-cover > button {
|
|
2435
|
+
background: var(--vx-white-white);
|
|
2436
|
+
color: var(--vx-black-black);
|
|
2437
|
+
width: 36px;
|
|
2438
|
+
height: 36px;
|
|
2439
|
+
padding: 8px;
|
|
2440
|
+
}
|
|
2441
|
+
.mt-compare-preview .vx-video-player[data-state=cover] > .vx-playback-controls {
|
|
2114
2442
|
display: none;
|
|
2115
2443
|
}
|
|
2116
2444
|
.mt-compare-preview .vx-playback-controls {
|
|
2445
|
+
color: var(--vx-text-on-content-primary);
|
|
2446
|
+
--vx-button-foreground: var(--vx-text-on-content-primary);
|
|
2447
|
+
background: linear-gradient(transparent, #000c);
|
|
2117
2448
|
border-radius: 0;
|
|
2118
2449
|
}
|
|
2450
|
+
.mt-compare-preview .vx-video-stage > video {
|
|
2451
|
+
background: var(--vx-black-black);
|
|
2452
|
+
object-fit: contain;
|
|
2453
|
+
}
|
|
2119
2454
|
.mt-candidate-caption {
|
|
2120
2455
|
display: grid;
|
|
2121
2456
|
align-content: start;
|
|
@@ -2153,16 +2488,16 @@
|
|
|
2153
2488
|
}
|
|
2154
2489
|
.mt-candidate-context dl {
|
|
2155
2490
|
display: grid;
|
|
2156
|
-
grid-template-columns:
|
|
2157
|
-
gap:
|
|
2491
|
+
grid-template-columns: 1fr;
|
|
2492
|
+
gap: 4px;
|
|
2158
2493
|
margin: 0;
|
|
2159
|
-
font-size:
|
|
2494
|
+
font-size: 14px;
|
|
2160
2495
|
}
|
|
2161
2496
|
.mt-candidate-context dt {
|
|
2162
2497
|
color: var(--vx-text-secondary);
|
|
2163
2498
|
}
|
|
2164
2499
|
.mt-candidate-context dd {
|
|
2165
|
-
margin: 0;
|
|
2500
|
+
margin: 0 0 8px;
|
|
2166
2501
|
overflow-wrap: anywhere;
|
|
2167
2502
|
}
|
|
2168
2503
|
.mt-column-actions {
|
package/dist/client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { VideoEditorProps, VideoCompareProps, MediaJobsProps, MediaRequest, Acce
|
|
|
3
3
|
export { Config } from './shared.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import 'vivix-studio/sdk/shared';
|
|
6
|
+
import '@vivix-labs/ui-system';
|
|
6
7
|
|
|
7
8
|
declare function VideoEditor({ input, mode, onApply, onClose }: VideoEditorProps): React.JSX.Element;
|
|
8
9
|
|
package/dist/server.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { MediaToolsConfig } from './shared.js';
|
|
|
3
3
|
export { Config } from './shared.js';
|
|
4
4
|
import 'vivix-studio/sdk/shared';
|
|
5
5
|
import 'react';
|
|
6
|
+
import '@vivix-labs/ui-system';
|
|
6
7
|
|
|
7
8
|
declare const dependencies: (config: MediaToolsConfig) => string[];
|
|
8
9
|
declare function activate(ctx: ServerContext<MediaToolsConfig>): Promise<void>;
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CallContext as CallContext$1, z } from 'vivix-studio/sdk/shared';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { MenuItem } from '@vivix-labs/ui-system';
|
|
3
4
|
|
|
4
5
|
type Scope = {
|
|
5
6
|
kind: 'user' | 'project';
|
|
@@ -616,6 +617,7 @@ interface CompareSlot {
|
|
|
616
617
|
input: VideoInput | null;
|
|
617
618
|
context?: {
|
|
618
619
|
shotName?: string;
|
|
620
|
+
spokenLine?: string;
|
|
619
621
|
hook?: string;
|
|
620
622
|
cta?: string;
|
|
621
623
|
};
|
|
@@ -634,6 +636,7 @@ interface VideoCompareProps {
|
|
|
634
636
|
slots: CompareSlot[];
|
|
635
637
|
origin: string;
|
|
636
638
|
}): void;
|
|
639
|
+
slotMenuItems?(slot: CompareSlot): MenuItem[];
|
|
637
640
|
renderSlotActions?(slot: CompareSlot): ReactNode;
|
|
638
641
|
}
|
|
639
642
|
interface MediaJobsProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivix-labs/media-tools",
|
|
3
|
-
"version": "1.0.0-beta",
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"react-dom": "^19.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@vivix-labs/ui-system": "
|
|
40
|
+
"@vivix-labs/ui-system": "workspace:*"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "node ../../scripts/build-product-packages.mjs media-tools"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|