@vivix-labs/studio-workbench 1.0.0-beta.2 → 1.0.0-beta.4

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.
@@ -0,0 +1,10 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_63_31727)">
3
+ <path d="M13.3336 4.73405C14.4011 4.73423 15.2671 5.59918 15.2672 6.66667V13.3337C15.2671 14.4012 14.4011 15.2671 13.3336 15.2673H6.66666C5.59917 15.2671 4.73422 14.4012 4.73404 13.3337V6.66667C4.73422 5.59918 5.59916 4.73423 6.66666 4.73405H13.3336ZM6.66666 5.93327C6.26191 5.93345 5.93343 6.26192 5.93326 6.66667V13.3337C5.93344 13.7384 6.26191 14.0669 6.66666 14.0671H13.3336C13.7384 14.0669 14.0669 13.7384 14.067 13.3337V6.66667C14.0669 6.26192 13.7384 5.93345 13.3336 5.93327H6.66666ZM9.33365 0.734055C10.3981 0.734231 11.2671 1.60222 11.2672 2.66667C11.2671 2.99778 10.9978 3.26708 10.6667 3.26726C10.3355 3.26708 10.0672 2.99778 10.067 2.66667C10.0669 2.26496 9.73536 1.93345 9.33365 1.93327H2.66666C2.26495 1.93345 1.93344 2.26496 1.93326 2.66667V9.33366C1.93344 9.73537 2.26495 10.0669 2.66666 10.0671C2.99777 10.0672 3.26707 10.3356 3.26724 10.6667C3.26706 10.9978 2.99777 11.2671 2.66666 11.2673C1.60221 11.2671 0.734219 10.3981 0.734039 9.33366V2.66667C0.734216 1.60222 1.60221 0.734232 2.66666 0.734055H9.33365Z" fill="white"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_63_31727">
7
+ <rect width="16" height="16" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="14.8544" height="14.85" viewBox="0 0 14.8544 14.85" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="elements">
3
+ <path id="Rectangle 2315" d="M8.55439 3.48805C8.55439 4.36169 8.55439 4.79851 8.69712 5.14308C8.88742 5.60251 9.25243 5.96752 9.71186 6.15782C10.0564 6.30055 10.4933 6.30055 11.3669 6.30055C12.2405 6.30055 12.6774 6.30055 13.0219 6.15782C13.4814 5.96752 13.8464 5.60251 14.0367 5.14308C14.1794 4.79851 14.1794 4.36169 14.1794 3.48805C14.1794 2.61441 14.1794 2.17759 14.0367 1.83302C13.8464 1.37359 13.4814 1.00858 13.0219 0.818275C12.6774 0.675549 12.2405 0.675549 11.3669 0.675549C10.4933 0.675549 10.0564 0.675549 9.71186 0.818275C9.25243 1.00858 8.88742 1.37359 8.69712 1.83302C8.55439 2.17759 8.55439 2.61441 8.55439 3.48805Z" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round" stroke="#3C6852"/>
4
+ <path id="Rectangle 2311" d="M8.55439 11.3625C8.55439 12.2361 8.55439 12.673 8.69712 13.0175C8.88742 13.477 9.25243 13.842 9.71186 14.0323C10.0564 14.175 10.4933 14.175 11.3669 14.175C12.2405 14.175 12.6774 14.175 13.0219 14.0323C13.4814 13.842 13.8464 13.477 14.0367 13.0175C14.1794 12.673 14.1794 12.2361 14.1794 11.3625C14.1794 10.4889 14.1794 10.052 14.0367 9.70747C13.8464 9.24804 13.4814 8.88303 13.0219 8.69273C12.6774 8.55 12.2405 8.55 11.3669 8.55C10.4933 8.55 10.0564 8.55 9.71186 8.69273C9.25243 8.88303 8.88742 9.24804 8.69712 9.70747C8.55439 10.052 8.55439 10.4889 8.55439 11.3625Z" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round" stroke="#3C6852"/>
5
+ <path id="Rectangle 2312" d="M0.675 11.3625C0.675 12.2361 0.675 12.673 0.817726 13.0175C1.00803 13.477 1.37304 13.842 1.83247 14.0323C2.17704 14.175 2.61386 14.175 3.4875 14.175C4.36114 14.175 4.79796 14.175 5.14253 14.0323C5.60196 13.842 5.96697 13.477 6.15727 13.0175C6.3 12.673 6.3 12.2361 6.3 11.3625C6.3 10.4889 6.3 10.052 6.15727 9.70747C5.96697 9.24804 5.60196 8.88303 5.14253 8.69273C4.79796 8.55 4.36114 8.55 3.4875 8.55C2.61386 8.55 2.17704 8.55 1.83247 8.69273C1.37304 8.88303 1.00803 9.24804 0.817726 9.70747C0.675 10.052 0.675 10.4889 0.675 11.3625Z" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round" stroke="#3C6852"/>
6
+ <path id="Rectangle 2314" d="M0.675 3.4875C0.675 4.36114 0.675 4.79796 0.817726 5.14253C1.00803 5.60196 1.37304 5.96697 1.83247 6.15727C2.17704 6.3 2.61386 6.3 3.4875 6.3C4.36114 6.3 4.79796 6.3 5.14253 6.15727C5.60196 5.96697 5.96697 5.60196 6.15727 5.14253C6.3 4.79796 6.3 4.36114 6.3 3.4875C6.3 2.61386 6.3 2.17704 6.15727 1.83247C5.96697 1.37304 5.60196 1.00803 5.14253 0.817726C4.79796 0.675 4.36114 0.675 3.4875 0.675C2.61386 0.675 2.17704 0.675 1.83247 0.817726C1.37304 1.00803 1.00803 1.37304 0.817726 1.83247C0.675 2.17704 0.675 2.61386 0.675 3.4875Z" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round" stroke="#3C6852"/>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="14.8497" height="17.175" viewBox="0 0 14.8497 17.175" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="elements">
3
+ <path id="Union (Stroke)" d="M3.66766 3.42303C2.28505 2.9427 1.47015 2.82612 0.985459 3.31082C0.293048 4.00323 0.82768 5.36951 1.89694 8.10207L3.66766 12.6272L3.66766 12.6273C4.68896 15.2372 5.19961 16.5422 6.00964 16.499C6.81966 16.4557 7.19109 15.0938 7.93396 12.37C8.15515 11.5589 8.26574 11.1534 8.54689 10.8723C8.82805 10.5911 9.23356 10.4805 10.0446 10.2593C12.7684 9.51645 14.1303 9.14502 14.1736 8.335C14.2067 7.71526 13.4506 7.27076 11.9246 6.63873" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round" stroke="#0F0C0C"/>
4
+ <path id="Star 3" d="M7.446 2.4652C7.55916 2.17827 7.96523 2.17827 8.0784 2.4652L8.39862 3.27712C8.60591 3.80273 9.02197 4.21878 9.54757 4.42608L10.3595 4.7463C10.6464 4.85946 10.6464 5.26554 10.3595 5.3787L9.54757 5.69892C9.02197 5.90622 8.60591 6.32227 8.39862 6.84788L8.0784 7.6598C7.96523 7.94673 7.55916 7.94673 7.446 7.6598L7.12578 6.84788C6.91848 6.32227 6.50243 5.90621 5.97682 5.69892L5.16489 5.3787C4.87797 5.26554 4.87797 4.85946 5.16489 4.7463L5.97682 4.42608C6.50243 4.21878 6.91848 3.80273 7.12578 3.27712L7.446 2.4652Z" fill="#0F0C0C"/>
5
+ <path id="Star 4" d="M10.9475 0.129118C11.0154 -0.0430393 11.259 -0.0430392 11.3269 0.129118L11.519 0.616274C11.6434 0.931637 11.8931 1.18127 12.2084 1.30565L12.6956 1.49778C12.8677 1.56568 12.8677 1.80932 12.6956 1.87722L12.2084 2.06935C11.8931 2.19373 11.6434 2.44336 11.519 2.75873L11.3269 3.24588C11.259 3.41804 11.0154 3.41804 10.9475 3.24588L10.7553 2.75873C10.631 2.44336 10.3813 2.19373 10.066 2.06935L9.57881 1.87722C9.40666 1.80932 9.40666 1.56568 9.57881 1.49778L10.066 1.30565C10.3813 1.18127 10.631 0.931637 10.7553 0.616274L10.9475 0.129118Z" fill="#0F0C0C"/>
6
+ </g>
7
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round">
2
+ <path d="M8 1.5v9m-3.5-3.5L8 10.5 11.5 7"/>
3
+ <path d="M2 10.5v1.75A1.75 1.75 0 0 0 3.75 14h8.5A1.75 1.75 0 0 0 14 12.25V10.5"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><style>path,rect,circle,ellipse,line,polyline,polygon,use{vector-effect:non-scaling-stroke;stroke-width:calc(0.6px + 3.75vmax)}</style>
2
+ <path d="M20.0092 2V5.13219C20.0092 5.42605 19.6418 5.55908 19.4537 5.33333C17.6226 3.2875 14.9617 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" stroke="#0F0C0C"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><style>path,rect,circle,ellipse,line,polyline,polygon,use{vector-effect:non-scaling-stroke;stroke-width:calc(0.6px + 3.75vmax)}</style>
2
+ <path d="M1.66638 9.00004V6.33337C1.66638 5.39056 1.66638 4.91916 1.95928 4.62627C2.25217 4.33337 2.72357 4.33337 3.66638 4.33337H12.333C13.2759 4.33337 13.7473 4.33337 14.0402 4.62627C14.333 4.91916 14.333 5.39056 14.333 6.33337V9.00004C14.333 11.5142 14.333 12.7713 13.552 13.5523C12.771 14.3334 11.5139 14.3334 8.99972 14.3334H6.99972C4.48556 14.3334 3.22848 14.3334 2.44743 13.5523C1.66638 12.7713 1.66638 11.5142 1.66638 9.00004Z" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M1.69934 5.30009C2.00012 4.00467 2.50277 2.60041 3.8071 1.94825C4.37015 1.66672 5.02444 1.66672 6.333 1.66672H9.66633C10.9749 1.66672 11.6292 1.66672 12.1922 1.94825C13.4966 2.60041 14.0001 4.00468 14.3001 5.30009" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M9.99969 9.00003C9.99969 9.00003 8.52672 7.00005 7.99968 7.00005C7.47264 7.00004 5.99969 9.00005 5.99969 9.00005M7.99968 7.33336L7.99969 11.6667" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -331,6 +331,11 @@ var iconGeometry = {
331
331
  height: 17.0837,
332
332
  slot: 20
333
333
  },
334
+ download: {
335
+ width: 16,
336
+ height: 16,
337
+ slot: 16
338
+ },
334
339
  export: {
335
340
  width: 11.8667,
336
341
  height: 13.2,
@@ -396,6 +401,7 @@ var buttonVariants = {
396
401
  "text-filled-leading-sm": { size: 32, appearance: "filled", shape: "text" },
397
402
  "text-ghost-sm": { size: 32, appearance: "ghost", shape: "text" },
398
403
  "text-on-content-sm": { size: 32, appearance: "on-content", shape: "text" },
404
+ "text-outline-sm": { size: 32, appearance: "outline", shape: "text" },
399
405
  "text-tonal-sm": { size: 32, appearance: "tonal", shape: "text" },
400
406
  // The medium recipes are shared by all dialog footer actions.
401
407
  "text-filled-md": { size: 40, appearance: "filled", shape: "text" },
@@ -446,7 +452,7 @@ function Checkbox({ label, checked, onCheckedChange, hideLabel = false, appearan
446
452
  // packages/ui-system/dist/dropdown.js
447
453
  import { jsx as _jsx5, jsxs as _jsxs3 } from "react/jsx-runtime";
448
454
  import { useEffect, useId, useRef, useState } from "react";
449
- function Dropdown({ label, options, value, onValueChange, placeholder = "Select an option", size = "medium", width = "fixed", appearance = "default", disabled = false }) {
455
+ function Dropdown({ label, options, value, onValueChange, placeholder = "Select an option", size = "medium", width = "fixed", appearance = "default", textSize = 14, disabled = false }) {
450
456
  const id = useId();
451
457
  const activeOption = useRef(null);
452
458
  const search = useRef({ query: "", time: 0 });
@@ -537,7 +543,7 @@ function Dropdown({ label, options, value, onValueChange, placeholder = "Select
537
543
  if (match)
538
544
  setHighlighted(match.value);
539
545
  }
540
- return _jsxs3("div", { className: "vx-dropdown", "data-size": size, "data-width": width, "data-appearance": appearance, children: [_jsxs3("button", { type: "button", role: "combobox", className: "vx-dropdown-trigger", "aria-label": label, "aria-expanded": expanded, "aria-controls": `${id}-listbox`, "aria-activedescendant": expanded && active ? `${id}-option-${options.indexOf(active)}` : void 0, disabled: !canOpen, onClick: () => expanded ? close() : setOpen(true), onBlur: close, onKeyDown: handleKey, children: [_jsxs3("span", { className: "vx-dropdown-value", children: [selected?.icon && _jsx5(Icon, { name: selected.icon }), _jsx5("span", { children: selected?.label ?? placeholder })] }), _jsx5(Icon, { name: expanded ? "chevron-up" : "chevron-down" })] }), _jsx5("ul", { id: `${id}-listbox`, role: "listbox", "aria-label": label, hidden: !expanded, children: options.map((option, index) => _jsxs3("li", { id: `${id}-option-${index}`, ref: active === option ? activeOption : void 0, role: "option", "aria-selected": option.value === value, "aria-disabled": option.disabled || void 0, "data-active": active === option, onMouseDown: (event2) => event2.preventDefault(), onClick: () => {
546
+ return _jsxs3("div", { className: "vx-dropdown", "data-size": size, "data-width": width, "data-appearance": appearance, "data-text-size": textSize, children: [_jsxs3("button", { type: "button", role: "combobox", className: "vx-dropdown-trigger", "aria-label": label, "aria-expanded": expanded, "aria-controls": `${id}-listbox`, "aria-activedescendant": expanded && active ? `${id}-option-${options.indexOf(active)}` : void 0, disabled: !canOpen, onClick: () => expanded ? close() : setOpen(true), onBlur: close, onKeyDown: handleKey, children: [_jsxs3("span", { className: "vx-dropdown-value", children: [selected?.icon && _jsx5(Icon, { name: selected.icon }), _jsx5("span", { children: selected?.label ?? placeholder })] }), _jsx5(Icon, { name: expanded ? "chevron-up" : "chevron-down" })] }), _jsx5("ul", { id: `${id}-listbox`, role: "listbox", "aria-label": label, hidden: !expanded, children: options.map((option, index) => _jsxs3("li", { id: `${id}-option-${index}`, ref: active === option ? activeOption : void 0, role: "option", "aria-selected": option.value === value, "aria-disabled": option.disabled || void 0, "data-active": active === option, onMouseDown: (event2) => event2.preventDefault(), onClick: () => {
541
547
  if (!option.disabled)
542
548
  choose(option);
543
549
  }, children: [option.icon && _jsx5(Icon, { name: option.icon }), option.label, width === "hug" && option.value === value && _jsx5(Icon, { name: "check" })] }, option.value)) })] });
@@ -581,8 +587,8 @@ function SegmentedControl({ label, items, value, onValueChange, size = "medium",
581
587
 
582
588
  // packages/ui-system/dist/input.js
583
589
  import { jsx as _jsx8, jsxs as _jsxs6 } from "react/jsx-runtime";
584
- function TextInput({ label, value, onValueChange, size = "medium", ...props }) {
585
- return _jsxs6("label", { className: "vx-field", "data-size": size, children: [_jsx8("span", { children: label }), _jsx8("input", { ...props, type: "text", value, onChange: (event2) => onValueChange(event2.currentTarget.value) })] });
590
+ function TextInput({ label, value, onValueChange, size = "medium", appearance = "default", ...props }) {
591
+ return _jsxs6("label", { className: "vx-field", "data-size": size, "data-appearance": appearance, children: [_jsx8("span", { children: label }), _jsx8("input", { ...props, type: "text", value, onChange: (event2) => onValueChange(event2.currentTarget.value) })] });
586
592
  }
587
593
 
588
594
  // packages/ui-system/dist/tag.js
package/dist/client.css CHANGED
@@ -162,6 +162,7 @@
162
162
  --vx-button-48-line-height: 21px;
163
163
  --vx-typography-inter-14-medium: normal 500 14px/18px var(--vx-font-inter);
164
164
  --vx-typography-inter-14-medium-tracking: 0px;
165
+ --vx-typography-inter-10-regular: normal 400 10px/13px var(--vx-font-inter);
165
166
  --vx-typography-inter-10-semi-bold: normal 600 10px/13px var(--vx-font-inter);
166
167
  --vx-typography-inter-12-regular: normal 400 12px/16px var(--vx-font-inter);
167
168
  --vx-typography-inter-12-semi-bold: normal 600 12px/16px var(--vx-font-inter);
@@ -601,6 +602,15 @@
601
602
  background: var(--vx-checkbox-active);
602
603
  border-color: var(--vx-checkbox-active);
603
604
  }
605
+ .vx-checkbox[data-appearance=outline] .vx-checkbox-mark {
606
+ --vx-checkbox-active: transparent;
607
+ --vx-checkbox-ink: var(--vx-text-primary);
608
+ background: transparent;
609
+ border-color: var(--vx-text-primary);
610
+ }
611
+ .vx-checkbox[data-appearance=outline] input:checked + .vx-checkbox-mark {
612
+ border-color: var(--vx-text-primary);
613
+ }
604
614
  .vx-checkbox-mark > .vx-icon {
605
615
  --vx-icon-size: var(--vx-icon-slot-small);
606
616
  }
@@ -761,6 +771,10 @@
761
771
  padding: 0 var(--vx-space-10);
762
772
  background: var(--vx-surface-input);
763
773
  font: var(--vx-typography-inter-14-regular);
774
+ justify-content: space-between;
775
+ }
776
+ .vx-dropdown[data-text-size="12"] .vx-dropdown-trigger {
777
+ font: var(--vx-typography-inter-12-regular);
764
778
  }
765
779
  .vx-dropdown[data-appearance=field] .vx-dropdown-trigger:is(:hover:not(:disabled), :focus-visible, [aria-expanded=true]) {
766
780
  background: var(--vx-surface-selected);
@@ -960,9 +974,60 @@
960
974
  font: var(--vx-typography-inter-12-medium);
961
975
  padding: 3px;
962
976
  }
977
+ @scope ([data-vx-theme]) {
978
+ .vx-checkbox[data-appearance=outline] input:focus-visible + .vx-checkbox-mark {
979
+ outline-color: var(--vx-state-assistance);
980
+ }
981
+ }
963
982
 
964
983
  /* packages/ui-system/dist/field.css */
965
984
  @scope ([data-vx-theme]) {
985
+ .vx-slider[data-appearance=neutral] {
986
+ position: relative;
987
+ }
988
+ .vx-slider[data-appearance=neutral] > input {
989
+ appearance: none;
990
+ width: 100%;
991
+ height: 16px;
992
+ margin: 0;
993
+ padding: 0;
994
+ border-radius: var(--vx-radius-full);
995
+ background:
996
+ linear-gradient(
997
+ to right,
998
+ var(--vx-text-secondary) 0 var(--vx-slider-fill),
999
+ var(--vx-surface-input) var(--vx-slider-fill) 100%);
1000
+ }
1001
+ .vx-slider[data-appearance=neutral] > input::-webkit-slider-thumb {
1002
+ appearance: none;
1003
+ width: 14px;
1004
+ height: 14px;
1005
+ background: var(--vx-background-dialog);
1006
+ border: 1px solid var(--vx-border-primary);
1007
+ border-radius: 50%;
1008
+ }
1009
+ .vx-slider[data-appearance=neutral] > input::-moz-range-thumb {
1010
+ width: 14px;
1011
+ height: 14px;
1012
+ background: var(--vx-background-dialog);
1013
+ border: 1px solid var(--vx-border-primary);
1014
+ border-radius: 50%;
1015
+ }
1016
+ .vx-slider-markers {
1017
+ position: absolute;
1018
+ left: 8px;
1019
+ right: 8px;
1020
+ bottom: 7px;
1021
+ height: 2px;
1022
+ pointer-events: none;
1023
+ }
1024
+ .vx-slider-markers > span {
1025
+ position: absolute;
1026
+ width: 2px;
1027
+ height: 2px;
1028
+ border-radius: 50%;
1029
+ background: var(--vx-text-secondary-readable);
1030
+ }
966
1031
  .vx-field,
967
1032
  .vx-slider {
968
1033
  display: grid;
@@ -984,6 +1049,10 @@
984
1049
  .vx-field[data-size=large] > input {
985
1050
  min-height: var(--vx-input-large-height);
986
1051
  }
1052
+ .vx-field[data-appearance=filled] > input {
1053
+ border-color: transparent;
1054
+ font: var(--vx-typography-inter-12-regular);
1055
+ }
987
1056
  .vx-date-picker {
988
1057
  display: inline-flex;
989
1058
  align-items: flex-start;
@@ -1086,6 +1155,11 @@
1086
1155
  margin: 0;
1087
1156
  }
1088
1157
  }
1158
+ @scope ([data-vx-theme]) {
1159
+ .vx-slider[data-appearance=neutral] .vx-slider-heading {
1160
+ font: var(--vx-typography-inter-12-regular);
1161
+ }
1162
+ }
1089
1163
 
1090
1164
  /* packages/ui-system/dist/inline-text.css */
1091
1165
  @scope ([data-vx-theme]) {
@@ -1117,6 +1191,26 @@
1117
1191
 
1118
1192
  /* packages/ui-system/dist/media.css */
1119
1193
  @scope ([data-vx-theme]) {
1194
+ .vx-frame-filmstrip {
1195
+ position: absolute;
1196
+ inset: 0;
1197
+ display: flex;
1198
+ overflow: hidden;
1199
+ opacity: 0.6;
1200
+ }
1201
+ .vx-frame-filmstrip > img {
1202
+ min-width: 0;
1203
+ width: 0;
1204
+ flex: 1;
1205
+ object-fit: cover;
1206
+ }
1207
+ .vx-playback-controls[data-appearance=surface] {
1208
+ background: var(--vx-background-page);
1209
+ color: var(--vx-text-secondary-readable);
1210
+ }
1211
+ .vx-playback-controls[data-appearance=surface] > .vx-button {
1212
+ --vx-button-foreground: var(--vx-text-secondary-readable);
1213
+ }
1120
1214
  .vx-tag {
1121
1215
  display: inline-flex;
1122
1216
  align-items: center;
@@ -1383,6 +1477,14 @@
1383
1477
  .vx-video-player:fullscreen .vx-video-stage {
1384
1478
  max-height: 100dvh;
1385
1479
  }
1480
+ .vx-dialog.vx-video-dialog {
1481
+ width: min(960px, calc(100vw - 32px));
1482
+ margin: var(--vx-space-16) auto;
1483
+ }
1484
+ .vx-video-dialog .vx-video-stage {
1485
+ width: 100%;
1486
+ max-height: min(480px, calc(100dvh - 192px));
1487
+ }
1386
1488
  .vx-video-cover {
1387
1489
  position: absolute;
1388
1490
  inset: auto 0 0;
@@ -1396,7 +1498,11 @@
1396
1498
  .vx-video-cover::before {
1397
1499
  position: absolute;
1398
1500
  inset: 0;
1399
- background: url("./assets/player-cover-shade-LLH6KOCQ.png") center / 100% 100% no-repeat;
1501
+ background:
1502
+ linear-gradient(
1503
+ 180deg,
1504
+ rgb(0 0 0 / 0%) 0%,
1505
+ rgb(0 0 0 / 60%) 100%);
1400
1506
  content: "";
1401
1507
  pointer-events: none;
1402
1508
  }
@@ -1535,6 +1641,32 @@
1535
1641
  color: var(--vx-text-placeholder);
1536
1642
  }
1537
1643
  }
1644
+ @scope ([data-vx-theme]) {
1645
+ .vx-frame-filmstrip {
1646
+ border-radius: inherit;
1647
+ }
1648
+ .vx-frame-range[data-variant=trim] {
1649
+ background: var(--vx-surface-input);
1650
+ }
1651
+ .vx-frame-range[data-variant=trim] .vx-frame-selection {
1652
+ border-width: 1px;
1653
+ background: color-mix(in srgb, var(--vx-state-success) 20%, transparent);
1654
+ }
1655
+ .vx-frame-range[data-variant=trim] .vx-frame-handle {
1656
+ width: 24px;
1657
+ display: grid;
1658
+ place-items: center;
1659
+ background: transparent;
1660
+ }
1661
+ .vx-frame-range[data-variant=trim] .vx-frame-handle::after {
1662
+ width: 3px;
1663
+ height: 12px;
1664
+ margin: 0;
1665
+ border: 1px solid var(--vx-state-success);
1666
+ background: var(--vx-background-dialog);
1667
+ border-radius: 2px;
1668
+ }
1669
+ }
1538
1670
 
1539
1671
  /* packages/ui-system/dist/overlays.css */
1540
1672
  @scope ([data-vx-theme]) {
@@ -1833,6 +1965,15 @@
1833
1965
  background: currentColor;
1834
1966
  mask: var(--vx-icon-mask) center / contain no-repeat;
1835
1967
  }
1968
+ .vx-icon[data-icon=copy] {
1969
+ --vx-icon-mask: url("./assets/copy-document-EF4PHM7F.svg");
1970
+ }
1971
+ .vx-icon[data-icon=upload] {
1972
+ --vx-icon-mask: url("./assets/upload-U5RZT5QI.svg");
1973
+ }
1974
+ .vx-icon[data-icon=refresh] {
1975
+ --vx-icon-mask: url("./assets/refresh-WQ3CTB57.svg");
1976
+ }
1836
1977
  .vx-icon[data-icon=add] {
1837
1978
  --vx-icon-mask: url("./assets/add-JY533O73.svg");
1838
1979
  }
@@ -1944,6 +2085,9 @@
1944
2085
  .vx-icon[data-icon=detail] {
1945
2086
  --vx-icon-mask: url("./assets/detail-E52XPONK.svg");
1946
2087
  }
2088
+ .vx-icon[data-icon=download] {
2089
+ --vx-icon-mask: url("./assets/download-4AAENLS6.svg");
2090
+ }
1947
2091
  .vx-icon[data-icon=export] {
1948
2092
  --vx-icon-mask: url("./assets/export-W2OBXZDQ.svg");
1949
2093
  }
@@ -2056,6 +2200,7 @@
2056
2200
  }
2057
2201
  .studio-home {
2058
2202
  display: grid;
2203
+ grid-template-columns: minmax(0, 1fr);
2059
2204
  gap: 8px;
2060
2205
  inline-size: 100%;
2061
2206
  max-inline-size: 1920px;
@@ -2304,10 +2449,23 @@
2304
2449
  border-radius: 999px;
2305
2450
  font: var(--vx-typography-inter-16-medium);
2306
2451
  }
2307
- .studio-home-toolbar input:checked + .vx-segment-item {
2452
+ .studio-home-toolbar > .vx-segment input:checked + .vx-segment-item {
2308
2453
  color: var(--vx-state-success);
2309
2454
  background: color-mix(in srgb, var(--vx-state-success) 20%, var(--vx-background-dialog));
2310
2455
  }
2456
+ .studio-home-toolbar > .vx-segment .vx-icon[data-icon=grid] {
2457
+ --vx-icon-mask: url("./assets/dashboard-overview-Y32BCZQC.svg");
2458
+ }
2459
+ .studio-home-toolbar > .vx-segment .vx-icon[data-icon=list] {
2460
+ --vx-icon-mask: url("./assets/dashboard-views-GOG66UAH.svg");
2461
+ }
2462
+ .studio-home-toolbar > .vx-segment .vx-icon {
2463
+ --vx-icon-size: 18px;
2464
+ }
2465
+ .studio-home-toolbar > .vx-segment .vx-icon::before {
2466
+ width: 100%;
2467
+ height: 100%;
2468
+ }
2311
2469
  .studio-home-actions {
2312
2470
  display: flex;
2313
2471
  gap: 8px;
@@ -2328,6 +2486,15 @@
2328
2486
  .studio-home-cover {
2329
2487
  color: var(--vx-text-placeholder);
2330
2488
  }
2489
+ @media (max-width: 480px) {
2490
+ .studio-home-toolbar > .vx-segment {
2491
+ max-width: 100%;
2492
+ }
2493
+ .studio-home-toolbar .vx-segment-item {
2494
+ padding-inline: var(--vx-space-10);
2495
+ font-size: 13px;
2496
+ }
2497
+ }
2331
2498
 
2332
2499
  /* packages/studio-workbench/src/home-banner.css */
2333
2500
  .studio-home-motion-demo {
@@ -2819,6 +2986,14 @@
2819
2986
  min-height: 0;
2820
2987
  object-fit: contain;
2821
2988
  }
2989
+ @media (max-width: 359px) {
2990
+ .studio-home-hero-copy {
2991
+ padding: var(--vx-space-16);
2992
+ }
2993
+ .studio-home-motion-demo {
2994
+ display: none;
2995
+ }
2996
+ }
2822
2997
 
2823
2998
  /* packages/studio-workbench/src/custom-view-dialog.css */
2824
2999
  .studio-template-dialog.vx-dialog {
package/dist/server.d.ts CHANGED
@@ -2,6 +2,7 @@ import { ServerContext } from 'vivix-studio/sdk/server';
2
2
  import { WorkbenchConfig } from './shared.js';
3
3
  export { Config } from './shared.js';
4
4
  import 'vivix-studio/sdk/shared';
5
+ import 'vivix-studio/sdk/client';
5
6
 
6
7
  declare const dependencies: (config: WorkbenchConfig) => string[];
7
8
  declare function activate(ctx: ServerContext<WorkbenchConfig>): void;
package/dist/shared.d.ts CHANGED
@@ -1,5 +1,25 @@
1
1
  import { z } from 'vivix-studio/sdk/shared';
2
+ import { WorkbenchProject } from 'vivix-studio/sdk/client';
2
3
 
4
+ interface VersionRef {
5
+ storeId: string;
6
+ objectId: string;
7
+ versionId: string;
8
+ }
9
+
10
+ type HomeProject = {
11
+ id: string;
12
+ name: string;
13
+ available: boolean;
14
+ };
15
+ type CardProps = {
16
+ onProjectCreated?(project: WorkbenchProject): void;
17
+ openProject(id: string, view?: string): void;
18
+ openProjects(): void;
19
+ openAssets(ref?: VersionRef): void;
20
+ projects: readonly HomeProject[];
21
+ ready: boolean;
22
+ };
3
23
  declare const Config: z.ZodObject<{
4
24
  studioInstance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
25
  operationInstance: z.ZodDefault<z.ZodString>;
@@ -54,4 +74,4 @@ declare function sortQuery(sort: View['sort']): {
54
74
  };
55
75
  declare function viewSort(field: string, direction: string): View['sort'];
56
76
 
57
- export { Config, type View, type WorkbenchConfig, dependencies, draftKey, parseView, sortQuery, viewKey, viewSort };
77
+ export { type CardProps, Config, type HomeProject, type View, type WorkbenchConfig, dependencies, draftKey, parseView, sortQuery, viewKey, viewSort };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vivix-labs/studio-workbench",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.4",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -44,37 +44,37 @@
44
44
  "archiver": "7.0.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@types/archiver": "7.0.0",
48
- "@vivix-labs/project-studio": "1.0.0-beta.2",
49
- "@vivix-labs/ui-system": "1.0.0-beta.2"
47
+ "@vivix-labs/project-studio": "workspace:*",
48
+ "@vivix-labs/ui-system": "workspace:*",
49
+ "@types/archiver": "7.0.0"
50
+ },
51
+ "scripts": {
52
+ "build": "node ../../scripts/build-product-packages.mjs studio-workbench"
50
53
  },
51
54
  "vivixStudio": {
52
55
  "runtimePlugins": {
53
56
  "@vivix-labs/ads-compare": "1.0.0-beta.2",
54
57
  "@vivix-labs/ads-storyboard": "1.0.0-beta.2",
55
- "@vivix-labs/creative-data": "1.0.0-beta.2",
58
+ "@vivix-labs/creative-data": "1.0.0-beta.4",
56
59
  "@vivix-labs/dashboard-assets": "1.0.0-beta.2",
57
60
  "@vivix-labs/dashboard-projects": "1.0.0-beta.2",
58
61
  "@vivix-labs/magic-edit": "1.0.0-beta.2",
59
- "@vivix-labs/material-library": "1.0.0-beta.2",
60
- "@vivix-labs/media-tools": "1.0.0-beta.2",
61
- "@vivix-labs/project-studio": "1.0.0-beta.2",
62
+ "@vivix-labs/material-library": "1.0.0-beta.4",
63
+ "@vivix-labs/media-tools": "1.0.0-beta.3",
64
+ "@vivix-labs/project-studio": "1.0.0-beta.4",
62
65
  "@vivix-labs/short-drama-characters": "1.0.0-beta.2",
63
- "@vivix-labs/short-drama-compare": "1.0.0-beta.2",
64
- "@vivix-labs/short-drama-production": "1.0.0-beta.2",
66
+ "@vivix-labs/short-drama-compare": "1.0.0-beta.3",
67
+ "@vivix-labs/short-drama-production": "1.0.0-beta.3",
65
68
  "@vivix-labs/short-drama-script-editor": "1.0.0-beta.2",
66
69
  "@vivix-labs/short-drama-social-preview": "1.0.0-beta.2",
67
70
  "@vivix-labs/short-drama-storyboard": "1.0.0-beta.2",
68
- "@vivix-labs/short-drama-workbench": "1.0.0-beta.2",
71
+ "@vivix-labs/short-drama-workbench": "1.0.0-beta.4",
69
72
  "@vivix-labs/studio-asset-list": "1.0.0-beta.2",
70
- "@vivix-labs/studio-workbench": "1.0.0-beta.2",
73
+ "@vivix-labs/studio-workbench": "1.0.0-beta.4",
71
74
  "@vivix-labs/vivix-api": "1.0.0-beta.2",
72
- "@vivix-labs/ads-workbench": "1.0.0-beta.2",
73
- "@vivix-labs/chat-components": "1.0.0-beta.2",
75
+ "@vivix-labs/ads-workbench": "1.0.0-beta.4",
76
+ "@vivix-labs/chat-components": "1.0.0-beta.4",
74
77
  "@vivix-labs/short-drama-authoring": "1.0.0-beta.2"
75
78
  }
76
- },
77
- "scripts": {
78
- "build": "node ../../scripts/build-product-packages.mjs studio-workbench"
79
79
  }
80
- }
80
+ }
@@ -15,7 +15,7 @@
15
15
  {
16
16
  "id": "studio",
17
17
  "package": "@vivix-labs/project-studio",
18
- "version": "1.0.0-beta.2",
18
+ "version": "1.0.0-beta.4",
19
19
  "enabled": true,
20
20
  "config": {
21
21
  "role": "project",
@@ -29,7 +29,7 @@
29
29
  {
30
30
  "id": "library",
31
31
  "package": "@vivix-labs/material-library",
32
- "version": "1.0.0-beta.2",
32
+ "version": "1.0.0-beta.4",
33
33
  "enabled": true,
34
34
  "config": {
35
35
  "role": "client",
@@ -39,7 +39,7 @@
39
39
  {
40
40
  "id": "workbench",
41
41
  "package": "@vivix-labs/studio-workbench",
42
- "version": "1.0.0-beta.2",
42
+ "version": "1.0.0-beta.4",
43
43
  "enabled": true,
44
44
  "config": {
45
45
  "studioInstance": "studio",
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "id": "data",
9
9
  "package": "@vivix-labs/creative-data",
10
- "version": "1.0.0-beta.2",
10
+ "version": "1.0.0-beta.4",
11
11
  "enabled": true,
12
12
  "config": {},
13
13
  "requiredAccess": ["project.content.read"]
@@ -15,7 +15,7 @@
15
15
  {
16
16
  "id": "library",
17
17
  "package": "@vivix-labs/material-library",
18
- "version": "1.0.0-beta.2",
18
+ "version": "1.0.0-beta.4",
19
19
  "enabled": true,
20
20
  "config": {
21
21
  "role": "service",
@@ -34,7 +34,7 @@
34
34
  {
35
35
  "id": "coordinator",
36
36
  "package": "@vivix-labs/project-studio",
37
- "version": "1.0.0-beta.2",
37
+ "version": "1.0.0-beta.4",
38
38
  "enabled": true,
39
39
  "config": {
40
40
  "role": "coordinator",
@@ -79,7 +79,7 @@
79
79
  {
80
80
  "id": "workbench",
81
81
  "package": "@vivix-labs/studio-workbench",
82
- "version": "1.0.0-beta.2",
82
+ "version": "1.0.0-beta.4",
83
83
  "enabled": true,
84
84
  "config": {
85
85
  "studioInstance": "coordinator",
@@ -6,3 +6,5 @@ Use this reference only when the installed `plugin describe` output exposes the
6
6
  10. Discover the workbench's `views.list` and `views.save` operations. Persist SQL, scalar params, column configuration and identity mapping in user data. A column `path` is the exact projected result name, including aliases and dots. `format: categories` applies only to the multivalue metadata projection selected by the Agent; do not hardcode a business classification key or mark every string array as a category. Purpose may be hidden. Aggregate projections without business identity are display-only. Use the saved view's revision for edits.
7
7
  11. Favorites are independent persisted records pinned to the selected VersionRef. The default asset projection shows the latest saved version. Query `studio_asset_versions WHERE favorite = 1` to retain older favorited versions after a new version is saved. Download uses the selected fixed references through `exports.prepare` and the Plugin's native POST attachment stream; never buffer the full archive into a browser Blob.
8
8
  12. Import only text, image, video and audio through a real project's existing import operation. Generic files are rejected. Global Asset aggregates project assets and does not create unowned personal assets. Generation Queue displays persisted task names; recovery operations remain available to agents but are hidden from the redesigned UI.
9
+
10
+ For mounting user-scope components in Studio Home (`config.dashboard` and `config.savedViews`), follow [SKILL.md](../SKILL.md#set-up-studio-home). Custom UI plugins register components with `component` (receiving `CardProps` from `@vivix-labs/studio-workbench/shared`, see `dist/shared.d.ts`) and can pass `CardProps.projects` (or `await client.projects.list()`) as `catalog` when calling `global.query` once `ready` is `true` (paginating via `nextOffset`).