@vivix-labs/media-tools 1.0.0-beta → 1.0.0-beta.2
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/player-cover-shade-LLH6KOCQ.png +0 -0
- package/dist/assets/volume-large-QNULSJ2I.svg +6 -0
- package/dist/client.bundle.js +321 -55
- package/dist/client.css +360 -27
- package/dist/client.d.ts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/shared.d.ts +3 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -128,3 +128,6 @@ Install compatible, matching package versions. Installed versions are immutable;
|
|
|
128
128
|
replace an existing package/version with different bytes. Source tests, archive checks
|
|
129
129
|
and a source-worker exit test do not establish installed-Host UI acceptance, other
|
|
130
130
|
platform guarantees, CI or production release.
|
|
131
|
+
|
|
132
|
+
Compare consumers can provide `slotMenuItems(slot)` for business actions in each
|
|
133
|
+
column menu. `renderSlotActions` remains supported for existing consumers.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2 7.33333C2 4.83351 2 3.5836 2.63661 2.70738C2.84221 2.42439 3.09107 2.17554 3.37405 1.96994C4.25027 1.33333 5.50018 1.33333 8 1.33333C10.4998 1.33333 11.7497 1.33333 12.626 1.96994C12.9089 2.17554 13.1578 2.42439 13.3634 2.70738C14 3.5836 14 4.83351 14 7.33333V8.66666C14 11.1665 14 12.4164 13.3634 13.2926C13.1578 13.5756 12.9089 13.8245 12.626 14.0301C11.7497 14.6667 10.4998 14.6667 8 14.6667C5.50018 14.6667 4.25027 14.6667 3.37405 14.0301C3.09107 13.8245 2.84221 13.5756 2.63661 13.2926C2 12.4164 2 11.1665 2 8.66666V7.33333Z" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M9.99999 4.66666L4.66666 4.66666M6.66666 7.99999H4.66666" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="10.8791" height="12.0459" viewBox="0 0 10.8791 12.0459" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Group 2147226222">
|
|
3
|
+
<path id="Star 3" d="M1.94157 0.167375C2.02958 -0.0557917 2.34542 -0.0557916 2.43343 0.167375L2.68249 0.798874C2.84372 1.20768 3.16732 1.53128 3.57613 1.69251L4.20762 1.94157C4.43079 2.02958 4.43079 2.34542 4.20762 2.43343L3.57613 2.68249C3.16732 2.84372 2.84372 3.16732 2.68249 3.57613L2.43343 4.20762C2.34542 4.43079 2.02958 4.43079 1.94157 4.20762L1.69251 3.57613C1.53128 3.16732 1.20768 2.84372 0.798874 2.68249L0.167375 2.43343C-0.0557917 2.34542 -0.0557916 2.02958 0.167375 1.94157L0.798874 1.69251C1.20768 1.53128 1.53128 1.20768 1.69251 0.798874L1.94157 0.167375Z" fill="white"/>
|
|
4
|
+
<path id="Vector" d="M6.50636 4.31162L7.37146 5.17673M1.6041 11.5208H2.47769C3.18491 11.5208 3.53853 11.5208 3.85649 11.3891C4.17445 11.2574 4.42449 11.0074 4.92457 10.5073L9.67841 5.75347C9.99287 5.439 10.1501 5.28177 10.2342 5.11215C10.3941 4.78944 10.3941 4.41055 10.2342 4.08783C10.1501 3.91822 9.99287 3.76099 9.67841 3.44652C9.36394 3.13205 9.20671 2.97482 9.03709 2.89077C8.71438 2.73085 8.33549 2.73085 8.01277 2.89077C7.84316 2.97482 7.68593 3.13205 7.37146 3.44652L2.61763 8.20035C2.11755 8.70043 1.8675 8.95048 1.7358 9.26844C1.6041 9.5864 1.6041 9.94001 1.6041 10.6472V11.5208Z" stroke-width="1.05" stroke-linecap="round" stroke-linejoin="round" stroke="white"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="11.8667" height="13.2" viewBox="0 0 11.8667 13.2" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Vector" d="M3.26667 3.26668C3.26667 3.26668 4.73055 1.45592 5.5363 0.759269C5.66583 0.647274 5.81126 0.594355 5.95582 0.600489C6.08544 0.605988 6.21437 0.658971 6.3305 0.759422C7.13609 1.4562 8.6 3.26668 8.6 3.26668M5.95582 1.26668L5.95582 8.60001" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" stroke="white"/>
|
|
4
|
+
<path id="Vector 9570" d="M3.26667 5.93334C2.33325 5.93334 1.86654 5.93334 1.51002 6.115C1.19641 6.27479 0.941446 6.52976 0.781658 6.84336C0.600002 7.19988 0.600002 7.66659 0.600002 8.60001V9.26668C0.600002 10.838 0.600002 11.6237 1.08816 12.1119C1.57631 12.6 2.36199 12.6 3.93334 12.6H7.93334C9.50468 12.6 10.2904 12.6 10.7785 12.1119C11.2667 11.6237 11.2667 10.838 11.2667 9.26668V8.60001C11.2667 7.66659 11.2667 7.19988 11.085 6.84336C10.9252 6.52976 10.6703 6.27479 10.3567 6.115C10.0001 5.93334 9.53342 5.93334 8.6 5.93334" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" stroke="white"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="16*16/放大">
|
|
3
|
+
<path id="Vector" d="M16.4978 3.26621C17.3422 3.25421 20.1387 2.67328 20.7316 3.26621C21.3245 3.85913 20.7436 6.65559 20.7316 7.5M20.5038 3.49097L13.5 10.4961" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="white"/>
|
|
4
|
+
<path id="Vector_2" d="M3.26621 16.5C3.25421 17.3444 2.67328 20.1409 3.26621 20.7338C3.85913 21.3267 6.65559 20.7458 7.5 20.7338M10.5019 13.4974L3.49809 20.5026" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="white"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="21.0286" height="17.0307" viewBox="0 0 21.0286 17.0307" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Vector 4372" d="M12.5144 11.3289V5.7018C12.5144 2.5566 12.5144 0.984003 11.5891 0.592636C10.6638 0.20127 9.57474 1.31327 7.3967 3.53726C6.26878 4.68898 5.62523 4.94402 4.02042 4.94402C2.61696 4.94402 1.91523 4.94402 1.41114 5.28795C0.364736 6.00189 0.522911 7.39733 0.522911 8.51534C0.522911 9.63335 0.364736 11.0288 1.41114 11.7427C1.91523 12.0867 2.61696 12.0866 4.02042 12.0866C5.62524 12.0866 6.26877 12.3417 7.3967 13.4934C9.57474 15.7174 10.6638 16.8294 11.5891 16.438C12.5144 16.0467 12.5144 14.4741 12.5144 11.3289Z" fill="white" stroke-width="1.02857" stroke-linecap="round" stroke-linejoin="round" stroke="white"/>
|
|
4
|
+
<path id="Vector" d="M16.5144 6.51533L18.5144 8.51533M18.5144 8.51533L20.5144 10.5153M18.5144 8.51533L16.5144 10.5153M18.5144 8.51533L20.5144 6.51533" stroke-width="1.02857" stroke-linecap="round" stroke="white"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="17.0286" height="17.0286" viewBox="0 0 17.0286 17.0286" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Rectangle 1875" d="M0.514287 3.5143C0.514287 2.10009 0.514287 1.39298 0.953627 0.953639C1.39297 0.514299 2.10007 0.514299 3.51429 0.514299C4.9285 0.514299 5.63561 0.514299 6.07495 0.953639C6.51429 1.39298 6.51429 2.10009 6.51429 3.5143V13.5143C6.51429 14.9285 6.51429 15.6356 6.07495 16.075C5.63561 16.5143 4.9285 16.5143 3.51429 16.5143C2.10007 16.5143 1.39297 16.5143 0.953627 16.075C0.514287 15.6356 0.514287 14.9285 0.514287 13.5143V3.5143Z" fill="white" stroke-width="1.02857" stroke="white"/>
|
|
4
|
+
<path id="Rectangle 1876" d="M10.5143 3.51429C10.5143 2.10007 10.5143 1.39297 10.9537 0.953627C11.393 0.514287 12.1001 0.514287 13.5143 0.514287C14.9285 0.514287 15.6356 0.514287 16.075 0.953627C16.5143 1.39297 16.5143 2.10007 16.5143 3.51429V13.5143C16.5143 14.9285 16.5143 15.6356 16.075 16.0749C15.6356 16.5143 14.9285 16.5143 13.5143 16.5143C12.1001 16.5143 11.393 16.5143 10.9537 16.0749C10.5143 15.6356 10.5143 14.9285 10.5143 13.5143V3.51429Z" fill="white" stroke-width="1.02857" stroke="white"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="17.5017" height="17.4992" viewBox="0 0 17.5017 17.4992" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Rectangle 2164" d="M8.54167 3.54085C4.80972 3.54085 2.94374 3.54085 1.78437 4.51716C0.625001 5.49347 0.625001 7.06482 0.625001 10.2075C0.625001 13.3502 0.625001 14.9216 1.78437 15.8979C2.94374 16.8742 4.80972 16.8742 8.54167 16.8742C12.2736 16.8742 14.1396 16.8742 15.299 15.8979C16.4583 14.9216 16.4583 13.3502 16.4583 10.2075C16.4583 9.23272 16.4583 8.40909 16.4237 7.70752" stroke-width="1.25" stroke-linecap="round" stroke="#ADA5A0"/>
|
|
4
|
+
<path id="Star 3" d="M14.0253 0.239107C14.151 -0.0797024 14.6022 -0.0797023 14.728 0.239107L15.0838 1.14125C15.3141 1.72525 15.7764 2.18754 16.3604 2.41787L17.2625 2.77367C17.5813 2.8994 17.5813 3.3506 17.2625 3.47633L16.3604 3.83213C15.7764 4.06246 15.3141 4.52475 15.0838 5.10875L14.728 6.01089C14.6022 6.3297 14.151 6.3297 14.0253 6.01089L13.6695 5.10875C13.4392 4.52474 12.9769 4.06246 12.3929 3.83213L11.4907 3.47633C11.1719 3.3506 11.1719 2.8994 11.4907 2.77367L12.3929 2.41787C12.9769 2.18754 13.4392 1.72525 13.6695 1.14125L14.0253 0.239107Z" fill="#ADA5A0"/>
|
|
5
|
+
<path id="Vector 883" d="M8.95996 6.87398V13.5406" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" stroke="#ADA5A0"/>
|
|
6
|
+
<path id="Vector 3621" d="M6.45996 8.54268V11.876" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" stroke="#ADA5A0"/>
|
|
7
|
+
<path id="Vector 3623" d="M3.95996 9.37581V11.0425" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" stroke="#ADA5A0"/>
|
|
8
|
+
<path id="Vector 3622" d="M11.46 8.54257V11.8759" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" stroke="#ADA5A0"/>
|
|
9
|
+
<path id="Vector 3624" d="M13.96 9.37581V11.0425" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" stroke="#ADA5A0"/>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="16*16/ai-image">
|
|
3
|
+
<g id="elements">
|
|
4
|
+
<path id="Rectangle 2164" d="M9.58171 3.74873C5.84975 3.74873 3.98378 3.74873 2.82441 4.72504C1.66504 5.70135 1.66504 7.2727 1.66504 10.4154C1.66504 13.5581 1.66504 15.1294 2.82441 16.1058C3.98378 17.0821 5.84975 17.0821 9.58171 17.0821C13.3137 17.0821 15.1796 17.0821 16.339 16.1058C17.4984 15.1294 17.4984 13.5581 17.4984 10.4154C17.4984 9.44059 17.4984 8.61697 17.4638 7.9154" stroke-width="1.25" stroke-linecap="round" stroke="#ADA5A0"/>
|
|
5
|
+
<path id="Star 3" d="M15.0649 0.447037C15.1907 0.128227 15.6419 0.128227 15.7676 0.447037L16.1234 1.34918C16.3537 1.93318 16.816 2.39547 17.4 2.6258L18.3022 2.9816C18.621 3.10733 18.621 3.55853 18.3022 3.68426L17.4 4.04006C16.816 4.27039 16.3537 4.73268 16.1234 5.31668L15.7676 6.21882C15.6419 6.53763 15.1907 6.53763 15.0649 6.21882L14.7091 5.31668C14.4788 4.73267 14.0165 4.27039 13.4325 4.04006L12.5304 3.68426C12.2116 3.55853 12.2116 3.10733 12.5304 2.9816L13.4325 2.6258C14.0165 2.39547 14.4788 1.93318 14.7091 1.34918L15.0649 0.447037Z" fill="#ADA5A0"/>
|
|
6
|
+
</g>
|
|
7
|
+
<circle id="Ellipse 1119" cx="5.83374" cy="7.5" r="1.25" fill="#ADA5A0"/>
|
|
8
|
+
<path id="Vector" d="M17.4979 10.0353C11.4784 6.15333 7.39371 11.8958 3.75 16.25" stroke-width="1.25" stroke="#ADA5A0"/>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="17.0834" height="17.0837" viewBox="0 0 17.0834 17.0837" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Rectangle 1" d="M8.125 16.4583H7.29167C4.14897 16.4583 2.57762 16.4583 1.60131 15.482C0.625001 14.5057 0.625001 12.9344 0.625001 9.79167V7.29167C0.625001 4.14897 0.625001 2.57762 1.60131 1.60131C2.57762 0.625001 4.14897 0.625001 7.29167 0.625001H8.95833C12.101 0.625001 13.6724 0.625001 14.6487 1.60131C15.625 2.57762 15.625 4.14897 15.625 7.29167V7.70833" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" stroke="#ADA5A0"/>
|
|
4
|
+
<path id="Star 3" d="M13.6071 11.0728C13.7328 10.754 14.184 10.754 14.3097 11.0728L14.6655 11.9749C14.8959 12.5589 15.3582 13.0212 15.9422 13.2515L16.8443 13.6073C17.1631 13.7331 17.1631 14.1843 16.8443 14.31L15.9422 14.6658C15.3582 14.8961 14.8959 15.3584 14.6655 15.9424L14.3097 16.8446C14.184 17.1634 13.7328 17.1634 13.6071 16.8446L13.2513 15.9424C13.021 15.3584 12.5587 14.8961 11.9747 14.6658L11.0725 14.31C10.7537 14.1843 10.7537 13.7331 11.0725 13.6073L11.9747 13.2515C12.5587 13.0212 13.021 12.5589 13.2513 11.9749L13.6071 11.0728Z" fill="#ADA5A0"/>
|
|
5
|
+
<path id="Vector" d="M4.79167 4.79167H11.4583M4.79167 8.54167H11.4583M4.79167 12.2917H8.125" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" stroke="#ADA5A0"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="17.9199" height="16.2506" viewBox="0 0 17.9199 16.2506" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Star 3" d="M14.4436 10.2397C14.5693 9.92091 15.0205 9.92091 15.1463 10.2397L15.5021 11.1419C15.7324 11.7259 16.1947 12.1881 16.7787 12.4185L17.6808 12.7743C17.9996 12.9 17.9996 13.3512 17.6808 13.4769L16.7787 13.8327C16.1947 14.0631 15.7324 14.5254 15.5021 15.1094L15.1463 16.0115C15.0205 16.3303 14.5693 16.3303 14.4436 16.0115L14.0878 15.1094C13.8575 14.5254 13.3952 14.0631 12.8112 13.8327L11.909 13.4769C11.5902 13.3512 11.5902 12.9 11.909 12.7743L12.8112 12.4185C13.3952 12.1881 13.8575 11.7259 14.0878 11.1419L14.4436 10.2397Z" fill="#ADA5A0"/>
|
|
4
|
+
<path id="Vector" d="M9.89058 5.05705C10.2845 5.29508 10.7328 5.59604 11.1657 5.89938C11.7836 6.33234 12.0925 6.54882 12.2162 6.8635C12.319 7.12487 12.319 7.46173 12.2162 7.72309C12.0925 8.03777 11.7836 8.25425 11.1657 8.68721C10.7328 8.99054 10.2845 9.2915 9.89058 9.52953C9.5624 9.72785 9.17572 9.94067 8.78739 10.1451C8.13083 10.4907 7.80255 10.6635 7.48467 10.62C7.2212 10.584 6.94564 10.4163 6.78353 10.1934C6.58796 9.92441 6.56356 9.53765 6.51477 8.76414C6.48267 8.25536 6.45996 7.73817 6.45996 7.29329C6.45996 6.84841 6.48267 6.33122 6.51477 5.82244C6.56356 5.04893 6.58796 4.66218 6.78353 4.39321C6.94564 4.17027 7.2212 4.00259 7.48467 3.96656C7.80254 3.92309 8.13082 4.09589 8.78738 4.44149C9.17571 4.64591 9.5624 4.85873 9.89058 5.05705Z" stroke-width="1.25" stroke-linecap="round" stroke="#ADA5A0"/>
|
|
5
|
+
<path id="Vector_2" d="M9.46045 13.9583H7.29167C4.95811 13.9583 3.79134 13.9583 2.90004 13.5042C2.11603 13.1047 1.47861 12.4673 1.07914 11.6833C0.625 10.792 0.625 9.62522 0.625 7.29167C0.625 4.95811 0.625 3.79134 1.07914 2.90004C1.47861 2.11603 2.11603 1.47861 2.90004 1.07914C3.79134 0.625 4.95811 0.625 7.29167 0.625H10.625C12.9586 0.625 14.1253 0.625 15.0166 1.07914C15.8006 1.47861 16.4381 2.11603 16.8375 2.90004C17.2917 3.79134 17.2917 4.95811 17.2917 7.29167C17.2917 8.16137 17.2917 8.869 17.2682 9.46071" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" stroke="#ADA5A0"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="12.9167" height="13.7501" viewBox="0 0 12.9167 13.7501" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Vector 3642" d="M12.2005 7.58003C11.9059 8.69922 10.5139 9.49007 7.72979 11.0718C5.03838 12.6008 3.69267 13.3653 2.6082 13.058C2.15983 12.931 1.75133 12.6897 1.42187 12.3573C0.625 11.5533 0.625 9.99389 0.625 6.87505C0.625 3.75622 0.625 2.1968 1.42187 1.39282C1.75133 1.06042 2.15983 0.819122 2.6082 0.692069C3.69267 0.384759 5.03838 1.14928 7.72979 2.67832C10.5139 4.26003 11.9059 5.05088 12.2005 6.17008C12.3221 6.63204 12.3221 7.11806 12.2005 7.58003Z" fill="#0F0C0C" stroke-width="1.25" stroke-linejoin="round" stroke="#0F0C0C"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="13.29564" height="14.19050" viewBox="0 0 12.381 13.2143" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Vector 3642" d="M11.9326 7.31215C11.6381 8.43134 10.246 9.2222 7.46193 10.8039C4.77052 12.3329 3.42481 13.0975 2.34034 12.7902C1.89198 12.6631 1.48347 12.4218 1.15401 12.0894C0.357143 11.2854 0.357143 9.72601 0.357143 6.60717C0.357143 3.48834 0.357143 1.92892 1.15401 1.12494C1.48347 0.792544 1.89198 0.551243 2.34034 0.42419C3.42481 0.11688 4.77052 0.881401 7.46193 2.41044C10.246 3.99215 11.6381 4.783 11.9326 5.9022C12.0542 6.36416 12.0542 6.85018 11.9326 7.31215Z" fill="white" stroke-width="0.714286" stroke-linejoin="round" stroke="white"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="15.95477" height="17.02860" viewBox="0 0 12.381 13.2143" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Vector 3642" d="M11.9326 7.31215C11.6381 8.43134 10.246 9.2222 7.46193 10.8039C4.77052 12.3329 3.42481 13.0975 2.34034 12.7902C1.89198 12.6631 1.48347 12.4218 1.15401 12.0894C0.357143 11.2854 0.357143 9.72601 0.357143 6.60717C0.357143 3.48834 0.357143 1.92892 1.15401 1.12494C1.48347 0.792544 1.89198 0.551243 2.34034 0.42419C3.42481 0.11688 4.77052 0.881401 7.46193 2.41044C10.246 3.99215 11.6381 4.783 11.9326 5.9022C12.0542 6.36416 12.0542 6.85018 11.9326 7.31215Z" fill="white" stroke-width="0.714286" stroke-linejoin="round" stroke="white"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="21.02868" height="17.03064" viewBox="0 0 17.5239 14.1922" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="elements">
|
|
3
|
+
<path id="Vector 4372" d="M10.4287 9.44073V4.7515C10.4287 2.1305 10.4287 0.820002 9.65756 0.493864C8.88646 0.167725 7.97895 1.09439 6.16392 2.94771C5.22398 3.90749 4.68769 4.12002 3.35035 4.12002C2.1808 4.12002 1.59602 4.12002 1.17595 4.40663C0.303947 5.00157 0.435759 6.16444 0.435759 7.09611C0.435759 8.02779 0.303947 9.19065 1.17595 9.7856C1.59602 10.0722 2.1808 10.0722 3.35035 10.0722C4.6877 10.0722 5.22398 10.2847 6.16392 11.2445C7.97895 13.0978 8.88646 14.0245 9.65756 13.6984C10.4287 13.3722 10.4287 12.0617 10.4287 9.44073Z" fill="white" stroke-width="0.857143" stroke-linecap="round" stroke-linejoin="round" stroke="white"/>
|
|
4
|
+
<path d="M13 5C14 6.1 14 8.1 13 9.2M15.7 3.4C17.55 5.45 17.55 8.75 15.7 10.8" stroke="white" stroke-width="0.857143" stroke-linecap="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
package/dist/client.bundle.js
CHANGED
|
@@ -178,8 +178,204 @@ import { jsx as _jsx2, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
178
178
|
|
|
179
179
|
// packages/ui-system/dist/icon.js
|
|
180
180
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
181
|
+
var iconGeometry = {
|
|
182
|
+
add: {
|
|
183
|
+
width: 16,
|
|
184
|
+
height: 16,
|
|
185
|
+
slot: 16
|
|
186
|
+
},
|
|
187
|
+
check: {
|
|
188
|
+
width: 12,
|
|
189
|
+
height: 12,
|
|
190
|
+
slot: 12
|
|
191
|
+
},
|
|
192
|
+
"check-on-content": {
|
|
193
|
+
width: 12,
|
|
194
|
+
height: 12,
|
|
195
|
+
slot: 12
|
|
196
|
+
},
|
|
197
|
+
"chevron-up": {
|
|
198
|
+
width: 12,
|
|
199
|
+
height: 12,
|
|
200
|
+
slot: 12
|
|
201
|
+
},
|
|
202
|
+
expand: {
|
|
203
|
+
width: 16,
|
|
204
|
+
height: 16,
|
|
205
|
+
slot: 16
|
|
206
|
+
},
|
|
207
|
+
"chevron-down": {
|
|
208
|
+
width: 12,
|
|
209
|
+
height: 12,
|
|
210
|
+
slot: 12
|
|
211
|
+
},
|
|
212
|
+
clear: {
|
|
213
|
+
width: 14.5332,
|
|
214
|
+
height: 14.5332,
|
|
215
|
+
slot: 16
|
|
216
|
+
},
|
|
217
|
+
grid: {
|
|
218
|
+
width: 13.2039,
|
|
219
|
+
height: 13.2,
|
|
220
|
+
slot: 16
|
|
221
|
+
},
|
|
222
|
+
list: {
|
|
223
|
+
width: 13.3372,
|
|
224
|
+
height: 12.0039,
|
|
225
|
+
slot: 16
|
|
226
|
+
},
|
|
227
|
+
search: {
|
|
228
|
+
width: 13.2,
|
|
229
|
+
height: 13.2,
|
|
230
|
+
slot: 16
|
|
231
|
+
},
|
|
232
|
+
calendar: {
|
|
233
|
+
width: 16,
|
|
234
|
+
height: 16,
|
|
235
|
+
slot: 16
|
|
236
|
+
},
|
|
237
|
+
import: {
|
|
238
|
+
width: 16,
|
|
239
|
+
height: 16,
|
|
240
|
+
slot: 16
|
|
241
|
+
},
|
|
242
|
+
magic: {
|
|
243
|
+
width: 14.0625,
|
|
244
|
+
height: 15.5625,
|
|
245
|
+
slot: 18
|
|
246
|
+
},
|
|
247
|
+
select: {
|
|
248
|
+
width: 14.6298,
|
|
249
|
+
height: 16.065,
|
|
250
|
+
slot: 18
|
|
251
|
+
},
|
|
252
|
+
area: {
|
|
253
|
+
width: 16.125,
|
|
254
|
+
height: 16.125,
|
|
255
|
+
slot: 18
|
|
256
|
+
},
|
|
257
|
+
draw: {
|
|
258
|
+
width: 16.125,
|
|
259
|
+
height: 16.125,
|
|
260
|
+
slot: 18
|
|
261
|
+
},
|
|
262
|
+
close: {
|
|
263
|
+
width: 18,
|
|
264
|
+
height: 18,
|
|
265
|
+
slot: 18
|
|
266
|
+
},
|
|
267
|
+
reset: {
|
|
268
|
+
width: 16.35,
|
|
269
|
+
height: 16.35,
|
|
270
|
+
slot: 18
|
|
271
|
+
},
|
|
272
|
+
more: {
|
|
273
|
+
width: 16,
|
|
274
|
+
height: 16,
|
|
275
|
+
slot: 16
|
|
276
|
+
},
|
|
277
|
+
play: {
|
|
278
|
+
width: 12.381,
|
|
279
|
+
height: 13.2143,
|
|
280
|
+
slot: 20
|
|
281
|
+
},
|
|
282
|
+
pause: {
|
|
283
|
+
width: 14.1905,
|
|
284
|
+
height: 14.1905,
|
|
285
|
+
slot: 20
|
|
286
|
+
},
|
|
287
|
+
mute: {
|
|
288
|
+
width: 17.5239,
|
|
289
|
+
height: 14.1922,
|
|
290
|
+
slot: 20
|
|
291
|
+
},
|
|
292
|
+
volume: {
|
|
293
|
+
width: 17.5239,
|
|
294
|
+
height: 14.1922,
|
|
295
|
+
slot: 20
|
|
296
|
+
},
|
|
297
|
+
fullscreen: {
|
|
298
|
+
width: 20,
|
|
299
|
+
height: 20,
|
|
300
|
+
slot: 20
|
|
301
|
+
},
|
|
302
|
+
"placeholder-image": {
|
|
303
|
+
width: 20,
|
|
304
|
+
height: 20,
|
|
305
|
+
slot: 20
|
|
306
|
+
},
|
|
307
|
+
"placeholder-video": {
|
|
308
|
+
width: 17.9199,
|
|
309
|
+
height: 16.2506,
|
|
310
|
+
slot: 20
|
|
311
|
+
},
|
|
312
|
+
"placeholder-audio": {
|
|
313
|
+
width: 17.5017,
|
|
314
|
+
height: 17.4992,
|
|
315
|
+
slot: 20
|
|
316
|
+
},
|
|
317
|
+
"placeholder-script": {
|
|
318
|
+
width: 17.0834,
|
|
319
|
+
height: 17.0837,
|
|
320
|
+
slot: 20
|
|
321
|
+
},
|
|
322
|
+
export: {
|
|
323
|
+
width: 11.8667,
|
|
324
|
+
height: 13.2,
|
|
325
|
+
slot: 16
|
|
326
|
+
},
|
|
327
|
+
edit: {
|
|
328
|
+
width: 10.8791,
|
|
329
|
+
height: 12.0459,
|
|
330
|
+
slot: 14
|
|
331
|
+
},
|
|
332
|
+
"play-cover": {
|
|
333
|
+
width: 12.9167,
|
|
334
|
+
height: 13.7501,
|
|
335
|
+
slot: 20
|
|
336
|
+
},
|
|
337
|
+
"playback-play": {
|
|
338
|
+
width: 13.29564,
|
|
339
|
+
height: 14.1905,
|
|
340
|
+
slot: 20
|
|
341
|
+
},
|
|
342
|
+
"playback-play-large": {
|
|
343
|
+
width: 15.95477,
|
|
344
|
+
height: 17.0286,
|
|
345
|
+
slot: 24
|
|
346
|
+
},
|
|
347
|
+
"pause-large": {
|
|
348
|
+
width: 17.0286,
|
|
349
|
+
height: 17.0286,
|
|
350
|
+
slot: 24
|
|
351
|
+
},
|
|
352
|
+
"volume-large": {
|
|
353
|
+
width: 21.02868,
|
|
354
|
+
height: 17.03064,
|
|
355
|
+
slot: 24
|
|
356
|
+
},
|
|
357
|
+
"mute-large": {
|
|
358
|
+
width: 21.0286,
|
|
359
|
+
height: 17.0307,
|
|
360
|
+
slot: 24
|
|
361
|
+
},
|
|
362
|
+
"fullscreen-large": {
|
|
363
|
+
width: 24,
|
|
364
|
+
height: 24,
|
|
365
|
+
slot: 24
|
|
366
|
+
}
|
|
367
|
+
};
|
|
181
368
|
function Icon({ name, size }) {
|
|
182
|
-
|
|
369
|
+
const geometry2 = iconGeometry[name];
|
|
370
|
+
const style = {
|
|
371
|
+
...geometry2 && {
|
|
372
|
+
"--vx-icon-native-size": `${geometry2.slot}px`,
|
|
373
|
+
"--vx-icon-width": `${geometry2.width / geometry2.slot * 100}%`,
|
|
374
|
+
"--vx-icon-height": `${geometry2.height / geometry2.slot * 100}%`
|
|
375
|
+
},
|
|
376
|
+
...size === void 0 ? {} : { "--vx-icon-size": `${size}px` }
|
|
377
|
+
};
|
|
378
|
+
return _jsx("span", { "aria-hidden": "true", className: "vx-icon", "data-icon": name, style });
|
|
183
379
|
}
|
|
184
380
|
|
|
185
381
|
// packages/ui-system/dist/button-variants.js
|
|
@@ -239,8 +435,8 @@ function SegmentedControl({ label, items, value, onValueChange, size = "medium",
|
|
|
239
435
|
|
|
240
436
|
// packages/ui-system/dist/tag.js
|
|
241
437
|
import { jsx as _jsx4 } from "react/jsx-runtime";
|
|
242
|
-
function Tag({ children, variant = "overlay" }) {
|
|
243
|
-
return _jsx4("span", { className: "vx-tag", "data-variant": variant, children });
|
|
438
|
+
function Tag({ children, variant = "overlay", className }) {
|
|
439
|
+
return _jsx4("span", { className: className ? `vx-tag ${className}` : "vx-tag", "data-variant": variant, children });
|
|
244
440
|
}
|
|
245
441
|
|
|
246
442
|
// packages/ui-system/dist/frame-range.js
|
|
@@ -298,41 +494,104 @@ function FrameRange({ duration, thumbnail, value, step = 0.1, variant = "range",
|
|
|
298
494
|
}
|
|
299
495
|
|
|
300
496
|
// packages/ui-system/dist/dialog.js
|
|
301
|
-
import { jsx as _jsx6, jsxs as _jsxs4 } from "react/jsx-runtime";
|
|
302
|
-
import {
|
|
303
|
-
|
|
497
|
+
import { jsx as _jsx6, jsxs as _jsxs4, Fragment as _Fragment2 } from "react/jsx-runtime";
|
|
498
|
+
import { useId as useId2, useLayoutEffect, useRef, useState } from "react";
|
|
499
|
+
import { createPortal } from "react-dom";
|
|
500
|
+
|
|
501
|
+
// packages/ui-system/dist/dialog-surface.js
|
|
502
|
+
function createDialogSurface(anchor) {
|
|
503
|
+
const source = anchor.ownerDocument;
|
|
504
|
+
let target;
|
|
505
|
+
try {
|
|
506
|
+
target = source.defaultView?.top?.document ?? source;
|
|
507
|
+
} catch {
|
|
508
|
+
return void 0;
|
|
509
|
+
}
|
|
510
|
+
if (target === source)
|
|
511
|
+
return void 0;
|
|
512
|
+
const host = target.createElement("div");
|
|
513
|
+
host.dataset.studioDialogSurface = "";
|
|
514
|
+
const shadow = host.attachShadow({ mode: "open" });
|
|
515
|
+
for (const original of source.querySelectorAll('link[rel="stylesheet"], style')) {
|
|
516
|
+
const clone = original.cloneNode(true);
|
|
517
|
+
if (original.tagName === "LINK")
|
|
518
|
+
clone.setAttribute("href", original.href);
|
|
519
|
+
shadow.append(clone);
|
|
520
|
+
}
|
|
521
|
+
const theme = anchor.closest("[data-vx-theme]");
|
|
522
|
+
const root = target.createElement("div");
|
|
523
|
+
root.dataset.vxTheme = theme?.dataset.vxTheme ?? "light";
|
|
524
|
+
root.className = theme?.className ?? "";
|
|
525
|
+
root.style.display = "contents";
|
|
526
|
+
const style = source.defaultView.getComputedStyle(anchor);
|
|
527
|
+
for (const name of style)
|
|
528
|
+
if (name.startsWith("--"))
|
|
529
|
+
root.style.setProperty(name, style.getPropertyValue(name));
|
|
530
|
+
shadow.append(root);
|
|
531
|
+
let container = root;
|
|
532
|
+
const ancestors = [];
|
|
533
|
+
for (let parent = anchor.parentElement; parent && parent !== theme; parent = parent.parentElement)
|
|
534
|
+
ancestors.unshift(parent);
|
|
535
|
+
for (const original of ancestors) {
|
|
536
|
+
const wrapper = target.createElement("div");
|
|
537
|
+
wrapper.className = original.className;
|
|
538
|
+
for (const { name, value } of original.attributes)
|
|
539
|
+
if (name.startsWith("data-"))
|
|
540
|
+
wrapper.setAttribute(name, value);
|
|
541
|
+
wrapper.style.display = "contents";
|
|
542
|
+
container.append(wrapper);
|
|
543
|
+
container = wrapper;
|
|
544
|
+
}
|
|
545
|
+
target.body.append(host);
|
|
546
|
+
return { root: container, dispose: () => host.remove() };
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// packages/ui-system/dist/dialog.js
|
|
550
|
+
function Dialog({ title, open, onOpenChange, children, actions, className, variant = "default" }) {
|
|
304
551
|
const ref = useRef(null);
|
|
552
|
+
const anchor = useRef(null);
|
|
553
|
+
const [surface, setSurface] = useState();
|
|
305
554
|
const heading = useId2();
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
if (!dialog || dialog.open === open)
|
|
555
|
+
useLayoutEffect(() => {
|
|
556
|
+
if (!open || !anchor.current)
|
|
309
557
|
return;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
558
|
+
const mounted = createDialogSurface(anchor.current);
|
|
559
|
+
const active = anchor.current.getRootNode().activeElement;
|
|
560
|
+
setSurface(mounted?.root ?? null);
|
|
561
|
+
return () => {
|
|
562
|
+
mounted?.dispose();
|
|
563
|
+
setSurface(void 0);
|
|
564
|
+
queueMicrotask(() => {
|
|
565
|
+
if (active?.isConnected)
|
|
566
|
+
active.focus();
|
|
567
|
+
});
|
|
568
|
+
};
|
|
314
569
|
}, [open]);
|
|
315
570
|
useLayoutEffect(() => {
|
|
316
|
-
const
|
|
571
|
+
const dialog2 = ref.current;
|
|
572
|
+
if (!open || surface === void 0 || !dialog2)
|
|
573
|
+
return;
|
|
574
|
+
dialog2.showModal();
|
|
317
575
|
return () => {
|
|
318
|
-
if (
|
|
319
|
-
|
|
576
|
+
if (dialog2.open)
|
|
577
|
+
dialog2.close();
|
|
320
578
|
};
|
|
321
|
-
}, []);
|
|
322
|
-
|
|
579
|
+
}, [open, surface]);
|
|
580
|
+
const dialog = _jsxs4("dialog", { ref, className: className ? `vx-dialog ${className}` : "vx-dialog", "data-variant": variant === "default" ? void 0 : variant, "aria-labelledby": heading, onCancel: (event) => {
|
|
323
581
|
event.preventDefault();
|
|
324
582
|
event.stopPropagation();
|
|
325
583
|
onOpenChange(false);
|
|
326
584
|
}, onClose: (event) => {
|
|
327
|
-
if (open && !event.currentTarget.open)
|
|
585
|
+
if (open && event.currentTarget.isConnected && !event.currentTarget.open)
|
|
328
586
|
onOpenChange(false);
|
|
329
587
|
}, children: [_jsxs4("header", { children: [_jsx6("h2", { id: heading, children: title }), _jsx6(IconButton, { icon: "close", label: "Close dialog", onClick: () => onOpenChange(false) })] }), _jsx6("div", { className: "vx-dialog-body", children }), actions && _jsx6("footer", { children: actions })] });
|
|
588
|
+
return _jsxs4(_Fragment2, { children: [_jsx6("span", { ref: anchor, hidden: true }), open && (surface ? createPortal(dialog, surface) : dialog)] });
|
|
330
589
|
}
|
|
331
590
|
|
|
332
591
|
// packages/ui-system/dist/menu.js
|
|
333
592
|
import { jsx as _jsx7, jsxs as _jsxs5 } from "react/jsx-runtime";
|
|
334
|
-
import { useEffect
|
|
335
|
-
import { createPortal } from "react-dom";
|
|
593
|
+
import { useEffect, useId as useId3, useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
594
|
+
import { createPortal as createPortal2 } from "react-dom";
|
|
336
595
|
function isEnabled(item) {
|
|
337
596
|
return !item.disabled && item.items?.length !== 0;
|
|
338
597
|
}
|
|
@@ -341,9 +600,9 @@ function Menu({ label, items, triggerIcon, floating = false }) {
|
|
|
341
600
|
const trigger = useRef2(null);
|
|
342
601
|
const popup = useRef2(null);
|
|
343
602
|
const focusIndex = useRef2(0);
|
|
344
|
-
const [path, setPath] =
|
|
345
|
-
const [placement, setPlacement] =
|
|
346
|
-
const portalRoot = floating ? trigger.current?.closest("[data-vx-theme]") : null;
|
|
603
|
+
const [path, setPath] = useState2(null);
|
|
604
|
+
const [placement, setPlacement] = useState2({ visibility: "hidden" });
|
|
605
|
+
const portalRoot = floating ? trigger.current?.closest("dialog, [data-vx-theme]") : null;
|
|
347
606
|
useLayoutEffect2(() => {
|
|
348
607
|
if (!floating || !path || !portalRoot)
|
|
349
608
|
return;
|
|
@@ -351,8 +610,10 @@ function Menu({ label, items, triggerIcon, floating = false }) {
|
|
|
351
610
|
const anchor = trigger.current, menu2 = popup.current;
|
|
352
611
|
if (!anchor || !menu2)
|
|
353
612
|
return;
|
|
613
|
+
const document3 = anchor.ownerDocument;
|
|
614
|
+
const window2 = document3.defaultView;
|
|
354
615
|
const rect = anchor.getBoundingClientRect();
|
|
355
|
-
const width =
|
|
616
|
+
const width = document3.documentElement.clientWidth, height = window2.innerHeight;
|
|
356
617
|
const bounds = menu2.getBoundingClientRect();
|
|
357
618
|
const naturalHeight = menu2.scrollHeight + bounds.height - menu2.clientHeight;
|
|
358
619
|
const below = Math.max(0, height - rect.bottom - 12), above = Math.max(0, rect.top - 12);
|
|
@@ -370,18 +631,20 @@ function Menu({ label, items, triggerIcon, floating = false }) {
|
|
|
370
631
|
});
|
|
371
632
|
};
|
|
372
633
|
const outside = (event) => {
|
|
373
|
-
const
|
|
374
|
-
if (
|
|
634
|
+
const path2 = event.composedPath();
|
|
635
|
+
if (!path2.includes(trigger.current) && !path2.includes(popup.current))
|
|
375
636
|
setPath(null);
|
|
376
637
|
};
|
|
638
|
+
const document2 = portalRoot.ownerDocument;
|
|
639
|
+
const window = document2.defaultView;
|
|
377
640
|
position();
|
|
378
641
|
window.addEventListener("resize", position);
|
|
379
642
|
window.addEventListener("scroll", position, true);
|
|
380
|
-
|
|
643
|
+
document2.addEventListener("pointerdown", outside);
|
|
381
644
|
return () => {
|
|
382
645
|
window.removeEventListener("resize", position);
|
|
383
646
|
window.removeEventListener("scroll", position, true);
|
|
384
|
-
|
|
647
|
+
document2.removeEventListener("pointerdown", outside);
|
|
385
648
|
};
|
|
386
649
|
}, [floating, path, portalRoot]);
|
|
387
650
|
let entries = items;
|
|
@@ -396,7 +659,7 @@ function Menu({ label, items, triggerIcon, floating = false }) {
|
|
|
396
659
|
function buttons() {
|
|
397
660
|
return [...popup.current?.querySelectorAll("button:not(:disabled)") ?? []];
|
|
398
661
|
}
|
|
399
|
-
|
|
662
|
+
useEffect(() => {
|
|
400
663
|
if (path && (!floating || !portalRoot || placement.visibility === "visible"))
|
|
401
664
|
buttons().at(focusIndex.current)?.focus();
|
|
402
665
|
}, [path, floating && placement.visibility, portalRoot]);
|
|
@@ -478,18 +741,20 @@ function Menu({ label, items, triggerIcon, floating = false }) {
|
|
|
478
741
|
return _jsxs5("div", { className: "vx-action-menu", onBlur: (event) => {
|
|
479
742
|
if (!event.currentTarget.contains(event.relatedTarget) && !(floating && popup.current?.contains(event.relatedTarget)))
|
|
480
743
|
setPath(null);
|
|
481
|
-
}, children: [triggerIcon ? _jsx7(IconButton, { ref: trigger, label, icon: triggerIcon, variant: "icon-ghost-sm", "aria-haspopup": "menu", "aria-controls": id, "aria-expanded": path !== null, disabled: !items.some(isEnabled), onClick: () => path ? close() : open(), onKeyDown: triggerKey }) : _jsx7(Button, { ref: trigger, label, variant: "text-tonal-sm", trailingIcon: "chevron-down", "aria-haspopup": "menu", "aria-controls": id, "aria-expanded": path !== null, disabled: !items.some(isEnabled), onClick: () => path ? close() : open(), onKeyDown: triggerKey }), portalRoot ?
|
|
744
|
+
}, children: [triggerIcon ? _jsx7(IconButton, { ref: trigger, label, icon: triggerIcon, variant: "icon-ghost-sm", "aria-haspopup": "menu", "aria-controls": id, "aria-expanded": path !== null, disabled: !items.some(isEnabled), onClick: () => path ? close() : open(), onKeyDown: triggerKey }) : _jsx7(Button, { ref: trigger, label, variant: "text-tonal-sm", trailingIcon: "chevron-down", "aria-haspopup": "menu", "aria-controls": id, "aria-expanded": path !== null, disabled: !items.some(isEnabled), onClick: () => path ? close() : open(), onKeyDown: triggerKey }), portalRoot ? createPortal2(menu, portalRoot) : menu] });
|
|
482
745
|
}
|
|
483
746
|
|
|
484
747
|
// packages/ui-system/dist/video-player.js
|
|
485
748
|
import { jsx as _jsx8, jsxs as _jsxs6 } from "react/jsx-runtime";
|
|
486
|
-
import { useEffect as
|
|
749
|
+
import { useEffect as useEffect2, useRef as useRef3, useState as useState3 } from "react";
|
|
487
750
|
function timeLabel2(seconds) {
|
|
488
751
|
const whole = Math.floor(seconds);
|
|
489
752
|
return `${Math.floor(whole / 60)}:${String(whole % 60).padStart(2, "0")}`;
|
|
490
753
|
}
|
|
491
754
|
function PlaybackControls({ playing, muted, time, duration, size = "medium", disabled, onTogglePlay, onToggleMute, onSeek, onFullscreen }) {
|
|
492
|
-
return _jsxs6("div", { className: "vx-playback-controls", role: "group", "aria-label": "Playback controls", "data-size": size,
|
|
755
|
+
return _jsxs6("div", { className: "vx-playback-controls", role: "group", "aria-label": "Playback controls", "data-size": size, style: {
|
|
756
|
+
"--vx-playback-progress": `${duration > 0 ? Math.min(100, Math.max(0, time / duration * 100)) : 0}%`
|
|
757
|
+
}, children: [_jsx8(IconButton, { icon: playing ? size === "large" ? "pause-large" : "pause" : size === "large" ? "playback-play-large" : "playback-play", label: playing ? "Pause" : "Play", disabled, onClick: onTogglePlay }), _jsx8("input", { "aria-label": "Playback position", "aria-valuetext": `${timeLabel2(time)} of ${timeLabel2(duration)}`, type: "range", min: 0, max: duration, value: time, step: "any", disabled: disabled || !duration, onChange: (event) => onSeek(event.currentTarget.valueAsNumber) }), _jsxs6("span", { "aria-hidden": "true", children: [timeLabel2(time), " / ", timeLabel2(duration)] }), _jsx8(IconButton, { icon: muted ? size === "large" ? "mute-large" : "mute" : size === "large" ? "volume-large" : "volume", label: muted ? "Unmute" : "Mute", disabled, onClick: onToggleMute }), onFullscreen && _jsx8(IconButton, { icon: size === "large" ? "fullscreen-large" : "fullscreen", label: "Toggle fullscreen", onClick: onFullscreen })] });
|
|
493
758
|
}
|
|
494
759
|
function VideoPlayer(props) {
|
|
495
760
|
return _jsx8(Playback, { ...props }, JSON.stringify([props.src, props.poster, props.posterDuration]));
|
|
@@ -499,13 +764,13 @@ function Playback({ src, poster, posterDuration = 0, title, version, durationLab
|
|
|
499
764
|
const video = useRef3(null);
|
|
500
765
|
const position = useRef3(0);
|
|
501
766
|
const callbacks = useRef3({ onTimeChange, onStateChange, onEnded });
|
|
502
|
-
const [time, setTime] =
|
|
503
|
-
const [metadataDuration, setMetadataDuration] =
|
|
504
|
-
const [state, setState] =
|
|
505
|
-
const [muted, setMuted] =
|
|
767
|
+
const [time, setTime] = useState3(0);
|
|
768
|
+
const [metadataDuration, setMetadataDuration] = useState3(0);
|
|
769
|
+
const [state, setState] = useState3("cover");
|
|
770
|
+
const [muted, setMuted] = useState3(defaultMuted);
|
|
506
771
|
const stillDuration = poster && Number.isFinite(posterDuration) ? Math.max(0, posterDuration) : 0;
|
|
507
772
|
const duration = src ? metadataDuration : stillDuration;
|
|
508
|
-
|
|
773
|
+
useEffect2(() => {
|
|
509
774
|
const element = video.current;
|
|
510
775
|
return () => {
|
|
511
776
|
if (!element)
|
|
@@ -524,10 +789,10 @@ function Playback({ src, poster, posterDuration = 0, title, version, durationLab
|
|
|
524
789
|
setState(next);
|
|
525
790
|
onStateChange?.(next);
|
|
526
791
|
}
|
|
527
|
-
|
|
792
|
+
useEffect2(() => {
|
|
528
793
|
callbacks.current = { onTimeChange, onStateChange, onEnded };
|
|
529
794
|
}, [onTimeChange, onStateChange, onEnded]);
|
|
530
|
-
|
|
795
|
+
useEffect2(() => {
|
|
531
796
|
if (src || state !== "playing" || !duration)
|
|
532
797
|
return;
|
|
533
798
|
let previous = performance.now();
|
|
@@ -585,13 +850,13 @@ function Playback({ src, poster, posterDuration = 0, title, version, durationLab
|
|
|
585
850
|
onError?.(error);
|
|
586
851
|
}
|
|
587
852
|
}
|
|
588
|
-
return _jsxs6("section", { ref: root, className: "vx-video-player", "aria-label": title, "data-placement": controlsPlacement, children: [_jsxs6("div", { className: "vx-video-stage", children: [src ? _jsx8("video", { ref: video, src, poster, muted, playsInline: true, preload: "metadata", onDurationChange: (event) => {
|
|
853
|
+
return _jsxs6("section", { ref: root, className: "vx-video-player", "aria-label": title, "data-placement": controlsPlacement, "data-state": state, children: [_jsxs6("div", { className: "vx-video-stage", children: [src ? _jsx8("video", { ref: video, src, poster, muted, playsInline: true, preload: "metadata", onDurationChange: (event) => {
|
|
589
854
|
const value = event.currentTarget.duration;
|
|
590
855
|
setMetadataDuration(Number.isFinite(value) ? value : 0);
|
|
591
856
|
}, onPlay: () => changeState("playing"), onPause: (event) => {
|
|
592
857
|
updateTime(event.currentTarget.currentTime);
|
|
593
858
|
changeState("paused");
|
|
594
|
-
}, onTimeUpdate: (event) => updateTime(event.currentTarget.currentTime), onEnded, onError: (event) => onError?.(event.currentTarget.error) }) : poster && _jsx8("img", { src: poster, alt: "" }), overlay, state === "cover" && _jsxs6("div", { className: "vx-video-cover", children: [_jsxs6("div", { children: [_jsx8("strong", { children: title }), version && _jsx8(Tag, { children: version }), sceneLabel && _jsx8(
|
|
859
|
+
}, onTimeUpdate: (event) => updateTime(event.currentTarget.currentTime), onEnded, onError: (event) => onError?.(event.currentTarget.error) }) : poster && _jsx8("img", { src: poster, alt: "" }), overlay, state === "cover" && _jsxs6("div", { className: "vx-video-cover", children: [_jsxs6("div", { className: "vx-video-info", children: [_jsxs6("div", { className: "vx-video-title", children: [_jsx8("strong", { title, children: title }), version && _jsx8(Tag, { children: version })] }), (durationLabel || sceneLabel) && _jsxs6("div", { className: "vx-video-meta", children: [durationLabel && _jsx8("span", { children: durationLabel }), durationLabel && sceneLabel && _jsx8("span", { "aria-hidden": "true", children: "\xB7" }), sceneLabel && _jsx8("span", { children: sceneLabel })] })] }), (src || duration > 0) && _jsx8(IconButton, { icon: "play-cover", className: "vx-video-start", label: `Play ${title}`, variant: "icon-circle-lg", onClick: togglePlay })] })] }), _jsx8(PlaybackControls, { playing: state === "playing", muted, time: Math.min(time, duration), duration, disabled: !src && !duration, size: controlsSize, onTogglePlay: togglePlay, onToggleMute: () => setMuted(!muted), onSeek: seek, onFullscreen: showFullscreen ? () => void toggleFullscreen() : void 0 })] });
|
|
595
860
|
}
|
|
596
861
|
|
|
597
862
|
// packages/media-tools/src/ui/recipe-player.tsx
|
|
@@ -1270,10 +1535,10 @@ function Candidate({
|
|
|
1270
1535
|
{
|
|
1271
1536
|
src: video.previewUrl,
|
|
1272
1537
|
title: video.name,
|
|
1273
|
-
controlsPlacement: "
|
|
1538
|
+
controlsPlacement: "overlay",
|
|
1274
1539
|
onError: () => setError("This video could not be played. Reload its fixed preview.")
|
|
1275
1540
|
}
|
|
1276
|
-
)), /* @__PURE__ */ React5.createElement("div", { className: "mt-candidate-caption" }, /* @__PURE__ */ React5.createElement("div", { className: "mt-candidate-heading" }, /* @__PURE__ */ React5.createElement("div", null, /* @__PURE__ */ React5.createElement("strong", null, slot.input ? slot.context?.shotName || video?.name || "Video" : "Candidate"), video && /* @__PURE__ */ React5.createElement("span", null, "Variant ", video.versionNumber, video.edited ? " \xB7 Edited" : "")), menu), video
|
|
1541
|
+
)), /* @__PURE__ */ React5.createElement("div", { className: "mt-candidate-caption" }, /* @__PURE__ */ React5.createElement("div", { className: "mt-candidate-heading" }, /* @__PURE__ */ React5.createElement("div", null, /* @__PURE__ */ React5.createElement("strong", null, slot.input ? slot.context?.shotName || video?.name || "Video" : "Candidate"), video && /* @__PURE__ */ React5.createElement("span", null, "Variant ", video.versionNumber, video.edited ? " \xB7 Edited" : "")), menu), video?.colorInterpretation === "assumed-bt709" && /* @__PURE__ */ React5.createElement("span", null, "Color information is missing. Standard SDR colors are assumed; export may differ slightly.")), /* @__PURE__ */ React5.createElement("div", { className: "mt-candidate-context" }, slot.input && (video || slot.context?.spokenLine || slot.context?.hook || slot.context?.cta) && /* @__PURE__ */ React5.createElement("dl", null, slot.context?.spokenLine && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("dt", null, "Spoken line"), /* @__PURE__ */ React5.createElement("dd", null, slot.context.spokenLine)), slot.context?.hook && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("dt", null, "Opening Hook"), /* @__PURE__ */ React5.createElement("dd", null, slot.context.hook)), slot.context && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("dt", null, "CTA"), /* @__PURE__ */ React5.createElement("dd", null, slot.context.cta || "None")), video && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("dt", null, "Format"), /* @__PURE__ */ React5.createElement("dd", null, formatLabel(video.geometry.pixelRect.width, video.geometry.pixelRect.height)), /* @__PURE__ */ React5.createElement("dt", null, "Duration"), /* @__PURE__ */ React5.createElement("dd", null, Number((video.effectiveDurationMs / 1e3).toFixed(2)), "s")))));
|
|
1277
1542
|
}
|
|
1278
1543
|
function VideoCompare(props) {
|
|
1279
1544
|
const [generation, setGeneration] = React5.useState(0);
|
|
@@ -1322,16 +1587,7 @@ function VideoCompare(props) {
|
|
|
1322
1587
|
)
|
|
1323
1588
|
}));
|
|
1324
1589
|
}
|
|
1325
|
-
return /* @__PURE__ */ React5.createElement("section", { className: "mt-compare", "aria-label": "Compare videos" }, /* @__PURE__ */ React5.createElement("
|
|
1326
|
-
Button,
|
|
1327
|
-
{
|
|
1328
|
-
label: "Add column",
|
|
1329
|
-
width: "hug",
|
|
1330
|
-
variant: "text-tonal-sm",
|
|
1331
|
-
disabled: props.slots.length >= 4,
|
|
1332
|
-
onClick: () => props.onSlotsChange([...props.slots, { id: crypto.randomUUID(), input: null }])
|
|
1333
|
-
}
|
|
1334
|
-
)), error && /* @__PURE__ */ React5.createElement("p", { role: "alert", className: "mt-error" }, error), /* @__PURE__ */ React5.createElement(
|
|
1590
|
+
return /* @__PURE__ */ React5.createElement("section", { className: "mt-compare", "aria-label": "Compare videos" }, error && /* @__PURE__ */ React5.createElement("p", { role: "alert", className: "mt-error" }, error), /* @__PURE__ */ React5.createElement(
|
|
1335
1591
|
"div",
|
|
1336
1592
|
{
|
|
1337
1593
|
className: "mt-compare-columns",
|
|
@@ -1345,13 +1601,14 @@ function VideoCompare(props) {
|
|
|
1345
1601
|
replacing: replacing === slot.id,
|
|
1346
1602
|
onChoose: () => void replace(slot),
|
|
1347
1603
|
emptyState: props.candidates ? candidateChoices(slot).length ? /* @__PURE__ */ React5.createElement(Menu, { label: "Choose video", floating: true, items: candidateChoices(slot) }) : /* @__PURE__ */ React5.createElement("p", null, "No other candidates yet.") : void 0,
|
|
1348
|
-
menu:
|
|
1604
|
+
menu: /* @__PURE__ */ React5.createElement(
|
|
1349
1605
|
Menu,
|
|
1350
1606
|
{
|
|
1351
1607
|
label: `Options for video ${index + 1}`,
|
|
1352
1608
|
triggerIcon: "more",
|
|
1353
1609
|
floating: true,
|
|
1354
1610
|
items: [
|
|
1611
|
+
...props.slotMenuItems?.(slot) ?? [],
|
|
1355
1612
|
...props.candidates ? [
|
|
1356
1613
|
{
|
|
1357
1614
|
id: "replace",
|
|
@@ -1380,6 +1637,15 @@ function VideoCompare(props) {
|
|
|
1380
1637
|
}
|
|
1381
1638
|
}
|
|
1382
1639
|
] : [],
|
|
1640
|
+
{
|
|
1641
|
+
id: "add-column",
|
|
1642
|
+
label: "Add column",
|
|
1643
|
+
disabled: props.slots.length >= 4,
|
|
1644
|
+
onSelect: () => props.onSlotsChange([
|
|
1645
|
+
...props.slots,
|
|
1646
|
+
{ id: crypto.randomUUID(), input: null }
|
|
1647
|
+
])
|
|
1648
|
+
},
|
|
1383
1649
|
{ id: "remove", label: "Remove", onSelect: () => remove(slot) }
|
|
1384
1650
|
]
|
|
1385
1651
|
}
|
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,97 @@
|
|
|
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: url("./assets/player-cover-shade-LLH6KOCQ.png") center / 100% 100% no-repeat;
|
|
1400
|
+
content: "";
|
|
1401
|
+
pointer-events: none;
|
|
1402
|
+
}
|
|
1403
|
+
.vx-video-info {
|
|
1404
|
+
position: relative;
|
|
1405
|
+
flex: 1;
|
|
1406
|
+
min-width: 0;
|
|
1407
|
+
}
|
|
1408
|
+
.vx-video-title {
|
|
1409
|
+
display: flex;
|
|
1410
|
+
align-items: center;
|
|
1411
|
+
gap: var(--vx-space-8);
|
|
1412
|
+
}
|
|
1413
|
+
.vx-video-title strong {
|
|
1414
|
+
overflow: hidden;
|
|
1415
|
+
text-overflow: ellipsis;
|
|
1416
|
+
white-space: nowrap;
|
|
1417
|
+
font: var(--vx-typography-inter-18-bold);
|
|
1418
|
+
}
|
|
1419
|
+
.vx-video-meta {
|
|
1303
1420
|
display: flex;
|
|
1304
|
-
flex-wrap: wrap;
|
|
1305
1421
|
align-items: center;
|
|
1306
1422
|
gap: var(--vx-space-4);
|
|
1423
|
+
margin-top: var(--vx-space-4);
|
|
1424
|
+
color: var(--vx-text-on-content-secondary);
|
|
1425
|
+
font: var(--vx-typography-inter-14-regular);
|
|
1426
|
+
}
|
|
1427
|
+
.vx-video-meta > span {
|
|
1428
|
+
min-width: 0;
|
|
1429
|
+
overflow: hidden;
|
|
1430
|
+
text-overflow: ellipsis;
|
|
1431
|
+
white-space: nowrap;
|
|
1432
|
+
}
|
|
1433
|
+
.vx-video-player .vx-video-start {
|
|
1434
|
+
--vx-button-background: var(--vx-text-on-content-primary);
|
|
1435
|
+
--vx-button-foreground: var(--vx-text-subtle-black);
|
|
1436
|
+
--vx-button-icon-size: 20px;
|
|
1437
|
+
position: relative;
|
|
1438
|
+
width: 36px;
|
|
1439
|
+
height: 36px;
|
|
1440
|
+
padding-left: 3px;
|
|
1307
1441
|
}
|
|
1308
1442
|
.vx-video-player[data-placement=overlay] > .vx-playback-controls {
|
|
1309
1443
|
position: absolute;
|
|
1310
|
-
inset: auto
|
|
1444
|
+
inset: auto 0 0;
|
|
1445
|
+
border-radius: 0;
|
|
1446
|
+
}
|
|
1447
|
+
@container vx-video-player (max-width: 336px) {
|
|
1448
|
+
.vx-video-meta {
|
|
1449
|
+
flex-direction: column;
|
|
1450
|
+
align-items: flex-start;
|
|
1451
|
+
gap: 0;
|
|
1452
|
+
}
|
|
1453
|
+
.vx-video-meta > [aria-hidden] {
|
|
1454
|
+
display: none;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
@media (max-width: 480px) {
|
|
1458
|
+
.vx-video-cover {
|
|
1459
|
+
padding: var(--vx-space-12);
|
|
1460
|
+
gap: var(--vx-space-8);
|
|
1461
|
+
}
|
|
1462
|
+
.vx-video-title {
|
|
1463
|
+
flex-wrap: wrap;
|
|
1464
|
+
gap: var(--vx-space-4);
|
|
1465
|
+
}
|
|
1466
|
+
.vx-video-title strong {
|
|
1467
|
+
font: var(--vx-typography-inter-14-semi-bold);
|
|
1468
|
+
}
|
|
1469
|
+
.vx-video-meta {
|
|
1470
|
+
font: var(--vx-typography-inter-10-regular);
|
|
1471
|
+
}
|
|
1311
1472
|
}
|
|
1312
1473
|
.vx-frame-range {
|
|
1313
1474
|
position: relative;
|
|
1314
1475
|
min-height: 80px;
|
|
1315
1476
|
margin-inline: var(--vx-space-8);
|
|
1316
|
-
border-radius: var(--vx-radius-
|
|
1317
|
-
background: var(--vx-
|
|
1477
|
+
border-radius: var(--vx-radius-lg);
|
|
1478
|
+
background: var(--vx-black-black);
|
|
1318
1479
|
}
|
|
1319
1480
|
.vx-frame-range[data-variant=trim] {
|
|
1320
1481
|
min-height: 48px;
|
|
@@ -1368,6 +1529,12 @@
|
|
|
1368
1529
|
content: "";
|
|
1369
1530
|
}
|
|
1370
1531
|
}
|
|
1532
|
+
@scope ([data-vx-theme]) {
|
|
1533
|
+
.vx-media:is([data-empty=image], [data-empty=video], [data-empty=audio], [data-empty=script]) {
|
|
1534
|
+
background: var(--vx-surface-input);
|
|
1535
|
+
color: var(--vx-text-placeholder);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1371
1538
|
|
|
1372
1539
|
/* packages/ui-system/dist/overlays.css */
|
|
1373
1540
|
@scope ([data-vx-theme]) {
|
|
@@ -1508,7 +1675,8 @@
|
|
|
1508
1675
|
box-shadow: var(--vx-shadow-dialog);
|
|
1509
1676
|
}
|
|
1510
1677
|
.vx-dialog::backdrop {
|
|
1511
|
-
background: var(--vx-
|
|
1678
|
+
background: var(--vx-overlay-dialog, rgb(255 255 255 / 80%));
|
|
1679
|
+
backdrop-filter: blur(var(--vx-dialog-backdrop-blur, 40px));
|
|
1512
1680
|
}
|
|
1513
1681
|
.vx-dialog > :is(header, footer),
|
|
1514
1682
|
.vx-dialog-body {
|
|
@@ -1528,6 +1696,97 @@
|
|
|
1528
1696
|
margin: 0;
|
|
1529
1697
|
font: var(--vx-typography-inter-16-semi-bold);
|
|
1530
1698
|
}
|
|
1699
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) {
|
|
1700
|
+
--vx-dialog-section-gap: var(--vx-space-24);
|
|
1701
|
+
--vx-dialog-footer-inset: var(--vx-space-24);
|
|
1702
|
+
width: min(var(--vx-dialog-small-width), calc(100vw - var(--vx-space-32)));
|
|
1703
|
+
padding: var(--vx-dialog-padding);
|
|
1704
|
+
border: var(--vx-border-width) solid var(--vx-surface-input);
|
|
1705
|
+
border-radius: var(--vx-dialog-radius);
|
|
1706
|
+
overflow: auto;
|
|
1707
|
+
}
|
|
1708
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header {
|
|
1709
|
+
padding: 0;
|
|
1710
|
+
margin: 0 var(--vx-space-32) var(--vx-dialog-section-gap) 0;
|
|
1711
|
+
}
|
|
1712
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header h2 {
|
|
1713
|
+
font: var(--vx-typography-inter-18-semi-bold);
|
|
1714
|
+
}
|
|
1715
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > header > .vx-button {
|
|
1716
|
+
position: absolute;
|
|
1717
|
+
top: 15px;
|
|
1718
|
+
right: 15px;
|
|
1719
|
+
}
|
|
1720
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > .vx-dialog-body {
|
|
1721
|
+
min-width: 0;
|
|
1722
|
+
padding: 0;
|
|
1723
|
+
}
|
|
1724
|
+
.vx-dialog:is([data-variant=create-project], [data-variant=story-edit]) > footer {
|
|
1725
|
+
margin-top: var(--vx-dialog-section-gap);
|
|
1726
|
+
padding: var(--vx-dialog-footer-inset) 0 0;
|
|
1727
|
+
border-top: var(--vx-divider-width) solid var(--vx-border-secondary);
|
|
1728
|
+
}
|
|
1729
|
+
.vx-dialog[data-variant=create-project] .vx-field {
|
|
1730
|
+
gap: var(--vx-space-8);
|
|
1731
|
+
}
|
|
1732
|
+
.vx-dialog[data-variant=create-project] .vx-field > span {
|
|
1733
|
+
color: var(--vx-text-secondary);
|
|
1734
|
+
font: var(--vx-typography-inter-14-regular);
|
|
1735
|
+
}
|
|
1736
|
+
.vx-dialog[data-variant=create-project] .vx-field > input {
|
|
1737
|
+
height: var(--vx-input-large-height);
|
|
1738
|
+
padding: var(--vx-space-8) var(--vx-space-12);
|
|
1739
|
+
border: 0;
|
|
1740
|
+
border-radius: var(--vx-radius-md);
|
|
1741
|
+
background: var(--vx-surface-input);
|
|
1742
|
+
font: var(--vx-typography-inter-16-regular);
|
|
1743
|
+
}
|
|
1744
|
+
.vx-dialog[data-variant=create-project] .vx-field > input::placeholder {
|
|
1745
|
+
color: var(--vx-text-secondary);
|
|
1746
|
+
opacity: 1;
|
|
1747
|
+
}
|
|
1748
|
+
.vx-dialog[data-variant=create-project] .vx-segment {
|
|
1749
|
+
background: var(--vx-surface-input);
|
|
1750
|
+
}
|
|
1751
|
+
.vx-toast {
|
|
1752
|
+
position: fixed;
|
|
1753
|
+
z-index: 40;
|
|
1754
|
+
left: 50%;
|
|
1755
|
+
bottom: max(var(--vx-space-24), env(safe-area-inset-bottom));
|
|
1756
|
+
transform: translateX(-50%);
|
|
1757
|
+
display: flex;
|
|
1758
|
+
align-items: center;
|
|
1759
|
+
gap: var(--vx-space-8);
|
|
1760
|
+
box-sizing: border-box;
|
|
1761
|
+
width: max-content;
|
|
1762
|
+
max-width: calc(100% - 2 * var(--vx-space-16));
|
|
1763
|
+
padding: var(--vx-space-8) var(--vx-space-16);
|
|
1764
|
+
border: var(--vx-border-width) solid var(--vx-border-secondary);
|
|
1765
|
+
border-radius: var(--vx-radius-md);
|
|
1766
|
+
background: var(--vx-text-primary);
|
|
1767
|
+
color: var(--vx-text-inverse);
|
|
1768
|
+
box-shadow: var(--vx-shadow-dialog);
|
|
1769
|
+
font: var(--vx-typography-inter-12-medium);
|
|
1770
|
+
pointer-events: none;
|
|
1771
|
+
}
|
|
1772
|
+
.vx-toast:empty {
|
|
1773
|
+
display: none;
|
|
1774
|
+
}
|
|
1775
|
+
.vx-prompt-hint {
|
|
1776
|
+
display: grid;
|
|
1777
|
+
justify-items: center;
|
|
1778
|
+
gap: var(--vx-space-12);
|
|
1779
|
+
padding: var(--vx-space-32) var(--vx-space-16);
|
|
1780
|
+
text-align: center;
|
|
1781
|
+
color: var(--vx-text-secondary);
|
|
1782
|
+
}
|
|
1783
|
+
.vx-prompt-hint p {
|
|
1784
|
+
margin: 0;
|
|
1785
|
+
}
|
|
1786
|
+
.vx-prompt-hint textarea {
|
|
1787
|
+
width: min(100%, 480px);
|
|
1788
|
+
min-height: 120px;
|
|
1789
|
+
}
|
|
1531
1790
|
}
|
|
1532
1791
|
|
|
1533
1792
|
/* packages/ui-system/dist/styles.css */
|
|
@@ -1549,12 +1808,18 @@
|
|
|
1549
1808
|
font-weight: 600;
|
|
1550
1809
|
font-display: swap;
|
|
1551
1810
|
}
|
|
1811
|
+
@font-face {
|
|
1812
|
+
font-family: "Vivix Studio Inter";
|
|
1813
|
+
src: url("./assets/inter-latin-700-normal-SU5XVJMF.woff2") format("woff2");
|
|
1814
|
+
font-weight: 700;
|
|
1815
|
+
font-display: swap;
|
|
1816
|
+
}
|
|
1552
1817
|
@scope ([data-vx-theme]) {
|
|
1553
1818
|
.vx-icon {
|
|
1554
1819
|
display: inline-block;
|
|
1555
1820
|
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));
|
|
1821
|
+
width: var(--vx-icon-size, var(--vx-button-icon-size, var(--vx-icon-native-size, 16px)));
|
|
1822
|
+
height: var(--vx-icon-size, var(--vx-button-icon-size, var(--vx-icon-native-size, 16px)));
|
|
1558
1823
|
vertical-align: middle;
|
|
1559
1824
|
position: relative;
|
|
1560
1825
|
}
|
|
@@ -1661,6 +1926,54 @@
|
|
|
1661
1926
|
--vx-icon-mask: url("./assets/chevron-left-JQCLK2WZ.svg");
|
|
1662
1927
|
}
|
|
1663
1928
|
}
|
|
1929
|
+
@scope ([data-vx-theme]) {
|
|
1930
|
+
.vx-icon[data-icon=placeholder-image] {
|
|
1931
|
+
--vx-icon-mask: url("./assets/placeholder-image-NOVXFVRL.svg");
|
|
1932
|
+
}
|
|
1933
|
+
.vx-icon[data-icon=placeholder-video] {
|
|
1934
|
+
--vx-icon-mask: url("./assets/placeholder-video-ZFOYHYCR.svg");
|
|
1935
|
+
}
|
|
1936
|
+
.vx-icon[data-icon=placeholder-audio] {
|
|
1937
|
+
--vx-icon-mask: url("./assets/placeholder-audio-EJEBE7OB.svg");
|
|
1938
|
+
}
|
|
1939
|
+
.vx-icon[data-icon=placeholder-script] {
|
|
1940
|
+
--vx-icon-mask: url("./assets/placeholder-script-LR2GKWKS.svg");
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
@scope ([data-vx-theme]) {
|
|
1944
|
+
.vx-icon[data-icon=detail] {
|
|
1945
|
+
--vx-icon-mask: url("./assets/detail-E52XPONK.svg");
|
|
1946
|
+
}
|
|
1947
|
+
.vx-icon[data-icon=export] {
|
|
1948
|
+
--vx-icon-mask: url("./assets/export-W2OBXZDQ.svg");
|
|
1949
|
+
}
|
|
1950
|
+
.vx-icon[data-icon=edit] {
|
|
1951
|
+
--vx-icon-mask: url("./assets/edit-JUVJDD5A.svg");
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
@scope ([data-vx-theme]) {
|
|
1955
|
+
.vx-icon[data-icon=play-cover] {
|
|
1956
|
+
--vx-icon-mask: url("./assets/play-cover-WQLOHHPZ.svg");
|
|
1957
|
+
}
|
|
1958
|
+
.vx-icon[data-icon=playback-play] {
|
|
1959
|
+
--vx-icon-mask: url("./assets/playback-play-YRMIX5W4.svg");
|
|
1960
|
+
}
|
|
1961
|
+
.vx-icon[data-icon=playback-play-large] {
|
|
1962
|
+
--vx-icon-mask: url("./assets/playback-play-large-TM3QUJGG.svg");
|
|
1963
|
+
}
|
|
1964
|
+
.vx-icon[data-icon=pause-large] {
|
|
1965
|
+
--vx-icon-mask: url("./assets/pause-large-XEUBL4KC.svg");
|
|
1966
|
+
}
|
|
1967
|
+
.vx-icon[data-icon=volume-large] {
|
|
1968
|
+
--vx-icon-mask: url("./assets/volume-large-QNULSJ2I.svg");
|
|
1969
|
+
}
|
|
1970
|
+
.vx-icon[data-icon=mute-large] {
|
|
1971
|
+
--vx-icon-mask: url("./assets/mute-large-LSZZ44HF.svg");
|
|
1972
|
+
}
|
|
1973
|
+
.vx-icon[data-icon=fullscreen-large] {
|
|
1974
|
+
--vx-icon-mask: url("./assets/fullscreen-large-MPLIWDMI.svg");
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1664
1977
|
|
|
1665
1978
|
/* packages/media-tools/src/ui/styles.css */
|
|
1666
1979
|
.mt-root {
|
|
@@ -2063,7 +2376,7 @@
|
|
|
2063
2376
|
.mt-compare-columns {
|
|
2064
2377
|
display: grid;
|
|
2065
2378
|
grid-template-rows: auto auto auto auto;
|
|
2066
|
-
column-gap:
|
|
2379
|
+
column-gap: 16px;
|
|
2067
2380
|
overflow-x: auto;
|
|
2068
2381
|
padding-bottom: 8px;
|
|
2069
2382
|
}
|
|
@@ -2080,7 +2393,7 @@
|
|
|
2080
2393
|
content: "";
|
|
2081
2394
|
position: absolute;
|
|
2082
2395
|
inset-block: 0;
|
|
2083
|
-
left: -
|
|
2396
|
+
left: -8px;
|
|
2084
2397
|
width: 1px;
|
|
2085
2398
|
background: var(--vx-border-secondary);
|
|
2086
2399
|
pointer-events: none;
|
|
@@ -2094,13 +2407,10 @@
|
|
|
2094
2407
|
}
|
|
2095
2408
|
.mt-compare-preview :is(.mt-player, .vx-video-player) {
|
|
2096
2409
|
height: 100%;
|
|
2097
|
-
|
|
2098
|
-
flex-direction: column;
|
|
2099
|
-
background: var(--vx-surface-input);
|
|
2410
|
+
background: var(--vx-black-black);
|
|
2100
2411
|
}
|
|
2101
2412
|
.mt-compare-preview :is(.mt-player-fit, .vx-video-stage) {
|
|
2102
|
-
height:
|
|
2103
|
-
flex: 1;
|
|
2413
|
+
height: 100%;
|
|
2104
2414
|
min-height: 0;
|
|
2105
2415
|
aspect-ratio: auto;
|
|
2106
2416
|
}
|
|
@@ -2108,14 +2418,37 @@
|
|
|
2108
2418
|
background: transparent;
|
|
2109
2419
|
}
|
|
2110
2420
|
.mt-compare-preview .vx-video-cover {
|
|
2111
|
-
background: transparent;
|
|
2421
|
+
background: linear-gradient(transparent 45%, #0009);
|
|
2422
|
+
align-items: end;
|
|
2423
|
+
justify-items: end;
|
|
2424
|
+
padding: 20px;
|
|
2112
2425
|
}
|
|
2113
2426
|
.mt-compare-preview .vx-video-cover > div {
|
|
2427
|
+
display: block;
|
|
2428
|
+
inset: auto 64px 20px 20px;
|
|
2429
|
+
font-size: 16px;
|
|
2430
|
+
line-height: 24px;
|
|
2431
|
+
}
|
|
2432
|
+
.mt-compare-preview .vx-video-cover > button {
|
|
2433
|
+
background: var(--vx-white-white);
|
|
2434
|
+
color: var(--vx-black-black);
|
|
2435
|
+
width: 36px;
|
|
2436
|
+
height: 36px;
|
|
2437
|
+
padding: 8px;
|
|
2438
|
+
}
|
|
2439
|
+
.mt-compare-preview .vx-video-player[data-state=cover] > .vx-playback-controls {
|
|
2114
2440
|
display: none;
|
|
2115
2441
|
}
|
|
2116
2442
|
.mt-compare-preview .vx-playback-controls {
|
|
2443
|
+
color: var(--vx-text-on-content-primary);
|
|
2444
|
+
--vx-button-foreground: var(--vx-text-on-content-primary);
|
|
2445
|
+
background: linear-gradient(transparent, #000c);
|
|
2117
2446
|
border-radius: 0;
|
|
2118
2447
|
}
|
|
2448
|
+
.mt-compare-preview .vx-video-stage > video {
|
|
2449
|
+
background: var(--vx-black-black);
|
|
2450
|
+
object-fit: contain;
|
|
2451
|
+
}
|
|
2119
2452
|
.mt-candidate-caption {
|
|
2120
2453
|
display: grid;
|
|
2121
2454
|
align-content: start;
|
|
@@ -2153,16 +2486,16 @@
|
|
|
2153
2486
|
}
|
|
2154
2487
|
.mt-candidate-context dl {
|
|
2155
2488
|
display: grid;
|
|
2156
|
-
grid-template-columns:
|
|
2157
|
-
gap:
|
|
2489
|
+
grid-template-columns: 1fr;
|
|
2490
|
+
gap: 4px;
|
|
2158
2491
|
margin: 0;
|
|
2159
|
-
font-size:
|
|
2492
|
+
font-size: 14px;
|
|
2160
2493
|
}
|
|
2161
2494
|
.mt-candidate-context dt {
|
|
2162
2495
|
color: var(--vx-text-secondary);
|
|
2163
2496
|
}
|
|
2164
2497
|
.mt-candidate-context dd {
|
|
2165
|
-
margin: 0;
|
|
2498
|
+
margin: 0 0 8px;
|
|
2166
2499
|
overflow-wrap: anywhere;
|
|
2167
2500
|
}
|
|
2168
2501
|
.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.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react-dom": "^19.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@vivix-labs/ui-system": "1.0.0-beta"
|
|
40
|
+
"@vivix-labs/ui-system": "1.0.0-beta.2"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "node ../../scripts/build-product-packages.mjs media-tools"
|