@vivix-labs/ads-workbench 1.0.0-beta.15 → 1.0.0-beta.17

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,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
2
+ <path d="m18 2-6 6m0-5v5h5M2 18l6-6m-5 0h5v5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -5,10 +5,10 @@ function StudioTheme({ theme = "light", className, ...props }) {
5
5
  }
6
6
 
7
7
  // packages/ui-system/dist/button.js
8
- import { jsx as _jsx3, jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx3, jsxs as _jsxs2 } from "react/jsx-runtime";
9
9
 
10
10
  // packages/ui-system/dist/icon.js
11
- import { jsx as _jsx2 } from "react/jsx-runtime";
11
+ import { jsx as _jsx2, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  var iconGeometry = {
13
13
  add: {
14
14
  width: 16,
@@ -134,6 +134,7 @@ var iconGeometry = {
134
134
  height: 20,
135
135
  slot: 20
136
136
  },
137
+ "fullscreen-exit": { width: 20, height: 20, slot: 20 },
137
138
  "placeholder-image": {
138
139
  width: 20,
139
140
  height: 20,
@@ -213,6 +214,9 @@ function Icon({ name, size }) {
213
214
  },
214
215
  ...size === void 0 ? {} : { "--vx-icon-size": `${size}px` }
215
216
  };
217
+ if (name === "relationships" || name === "color-adjust" || name === "speed") {
218
+ return _jsx2("svg", { "aria-hidden": "true", className: "vx-icon", "data-icon": name, style, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: name === "color-adjust" ? _jsxs(_Fragment, { children: [_jsx2("path", { d: "M3 5h3m4 0h7M3 10h8m4 0h2M3 15h3m4 0h7" }), _jsx2("circle", { cx: "8", cy: "5", r: "2" }), _jsx2("circle", { cx: "13", cy: "10", r: "2" }), _jsx2("circle", { cx: "8", cy: "15", r: "2" })] }) : name === "speed" ? _jsxs(_Fragment, { children: [_jsx2("path", { d: "M4 16a8 8 0 1 1 12 0M10 3v2M3 10h2m10 0h2M5 5l1.4 1.4M10 12l4-5" }), _jsx2("circle", { cx: "10", cy: "12", r: "1.5" })] }) : _jsxs(_Fragment, { children: [_jsx2("path", { d: "M8.5 6.3 5 11.7M11.5 6.3 15 11.7M6.5 14.5h7" }), _jsx2("circle", { cx: "10", cy: "4", r: "2.5" }), _jsx2("circle", { cx: "4", cy: "14.5", r: "2.5" }), _jsx2("circle", { cx: "16", cy: "14.5", r: "2.5" })] }) });
219
+ }
216
220
  return _jsx2("span", { "aria-hidden": "true", className: "vx-icon", "data-icon": name, style });
217
221
  }
218
222
 
@@ -245,7 +249,7 @@ var buttonVariants = {
245
249
  "icon-outline-sm": { size: 32, appearance: "outline", shape: "icon" },
246
250
  "icon-on-content": { size: 24, appearance: "on-content", shape: "icon" },
247
251
  "icon-outline-lg": { size: 48, appearance: "outline", shape: "icon" },
248
- // Compact bare action: reuse the transparent/default and surface-hover ghost treatment.
252
+ // Compact bare action: remain transparent at rest and on hover.
249
253
  "icon-bare-xs": { size: 24, appearance: "ghost", shape: "icon" },
250
254
  "icon-ghost-sm": { size: 32, appearance: "ghost", shape: "icon" },
251
255
  "icon-ghost-lg": { size: 48, appearance: "ghost", shape: "icon" },
@@ -257,36 +261,36 @@ var buttonVariants = {
257
261
  function ButtonFrame({ label, variant, loading = false, width, children, disabled, type = "button", style, className, ...props }) {
258
262
  const spec = buttonVariants[variant];
259
263
  const buttonStyle = "width" in spec ? { ...style, "--vx-button-width": `${spec.width}px` } : style;
260
- return _jsxs("button", { ...props, type, className: className ? `vx-button ${className}` : "vx-button", "data-variant": variant, "data-appearance": spec.appearance, "data-shape": spec.shape, "data-size": spec.size, "data-width": width, "data-state": loading ? "loading" : disabled ? "disabled" : "default", style: buttonStyle, disabled: disabled || loading, "aria-label": label, "aria-busy": loading || void 0, children: [_jsx3("span", { className: "vx-button-content", children }), loading && _jsx3("span", { className: "vx-button-loading", "aria-hidden": "true" })] });
264
+ return _jsxs2("button", { ...props, type, className: className ? `vx-button ${className}` : "vx-button", "data-variant": variant, "data-appearance": spec.appearance, "data-shape": spec.shape, "data-size": spec.size, "data-width": width, "data-state": loading ? "loading" : disabled ? "disabled" : "default", style: buttonStyle, disabled: disabled || loading, "aria-label": label, "aria-busy": loading || void 0, children: [_jsx3("span", { className: "vx-button-content", children }), loading && _jsx3("span", { className: "vx-button-loading", "aria-hidden": "true" })] });
261
265
  }
262
266
  function Button({ variant = "text-filled-sm", leadingIcon, trailingIcon, badge, ...props }) {
263
- return _jsxs(ButtonFrame, { ...props, label: badge ? `${props.label} (${badge})` : props.label, variant, children: [leadingIcon && _jsx3(Icon, { name: leadingIcon }), _jsx3("span", { className: "vx-button-label", children: props.label }), badge !== void 0 && badge > 0 && _jsx3("span", { className: "vx-button-badge", children: badge }), trailingIcon && _jsx3("span", { className: "vx-button-trailing", children: _jsx3(Icon, { name: trailingIcon }) })] });
267
+ return _jsxs2(ButtonFrame, { ...props, label: badge ? `${props.label} (${badge})` : props.label, variant, children: [leadingIcon && _jsx3(Icon, { name: leadingIcon }), _jsx3("span", { className: "vx-button-label", children: props.label }), badge !== void 0 && badge > 0 && _jsx3("span", { className: "vx-button-badge", children: badge }), trailingIcon && _jsx3("span", { className: "vx-button-trailing", children: _jsx3(Icon, { name: trailingIcon }) })] });
264
268
  }
265
269
  function IconButton({ icon, variant = "icon-ghost-sm", ...props }) {
266
270
  return _jsx3(ButtonFrame, { ...props, variant, children: _jsx3(Icon, { name: icon }) });
267
271
  }
268
272
 
269
273
  // packages/ui-system/dist/asset-selection-toolbar.js
270
- import { jsxs as _jsxs2, jsx as _jsx4, Fragment as _Fragment } from "react/jsx-runtime";
274
+ import { jsxs as _jsxs3, jsx as _jsx4, Fragment as _Fragment2 } from "react/jsx-runtime";
271
275
  function AssetSelectionToolbar({ count, allSelected, label = "Selected asset actions", showAssetActions = true, onSelectAll, onFavorite, onDownload, onDelete, deleteHint, onCancel, cancelRef, busy }) {
272
276
  const common = { variant: "text-tonal-sm", width: "hug" };
273
- return _jsxs2("div", { className: "vx-asset-selection", role: "group", "aria-label": label, children: [_jsxs2("span", { role: "status", children: [count, " ", count === 1 ? "item" : "items", " selected"] }), _jsx4(Button, { ...common, label: "Select all", leadingIcon: "select-items", "aria-pressed": allSelected, disabled: busy || !onSelectAll, onClick: onSelectAll }), showAssetActions && _jsxs2(_Fragment, { children: [_jsx4("i", { "aria-hidden": "true" }), _jsx4(Button, { ...common, label: "Favorite", leadingIcon: "favorite", disabled: busy || !onFavorite, onClick: onFavorite }), _jsx4(Button, { ...common, label: "Download", leadingIcon: "download", disabled: busy || !onDownload, onClick: onDownload }), _jsx4(Button, { ...common, label: "Delete", leadingIcon: "delete", title: deleteHint, disabled: busy || !onDelete, onClick: onDelete })] }), _jsx4("i", { "aria-hidden": "true" }), _jsx4(Button, { ...common, ref: cancelRef, label: "Cancel", leadingIcon: "close", disabled: busy, onClick: onCancel })] });
277
+ return _jsxs3("div", { className: "vx-asset-selection", role: "group", "aria-label": label, children: [_jsxs3("span", { role: "status", children: [count, " ", count === 1 ? "item" : "items", " selected"] }), _jsx4(Button, { ...common, label: "Select all", leadingIcon: "select-items", "aria-pressed": allSelected, disabled: busy || !onSelectAll, onClick: onSelectAll }), showAssetActions && _jsxs3(_Fragment2, { children: [_jsx4("i", { "aria-hidden": "true" }), _jsx4(Button, { ...common, label: "Favorite", leadingIcon: "favorite", disabled: busy || !onFavorite, onClick: onFavorite }), _jsx4(Button, { ...common, label: "Download", leadingIcon: "download", disabled: busy || !onDownload, onClick: onDownload }), _jsx4(Button, { ...common, label: "Delete", leadingIcon: "delete", title: deleteHint, disabled: busy || !onDelete, onClick: onDelete })] }), _jsx4("i", { "aria-hidden": "true" }), _jsx4(Button, { ...common, ref: cancelRef, label: "Cancel", leadingIcon: "close", disabled: busy, onClick: onCancel })] });
274
278
  }
275
279
 
276
280
  // packages/ui-system/dist/asset-reference-row.js
277
- import { Fragment as _Fragment2, jsx as _jsx5, jsxs as _jsxs3 } from "react/jsx-runtime";
281
+ import { Fragment as _Fragment3, jsx as _jsx5, jsxs as _jsxs4 } from "react/jsx-runtime";
278
282
  function AssetReferenceRow({ references, renderThumbnail, className = "" }) {
279
283
  if (!references.length)
280
- return _jsx5(_Fragment2, { children: "--" });
284
+ return _jsx5(_Fragment3, { children: "--" });
281
285
  const remaining = references.length - 2;
282
- return _jsxs3("span", { className: `vx-asset-reference-row ${className}`.trimEnd(), children: [references.slice(0, 2).map(renderThumbnail), remaining > 0 && _jsxs3("span", { className: "vx-asset-reference-count", title: `${remaining} more ${remaining === 1 ? "reference" : "references"}`, children: ["+", remaining] })] });
286
+ return _jsxs4("span", { className: `vx-asset-reference-row ${className}`.trimEnd(), children: [references.slice(0, 2).map(renderThumbnail), remaining > 0 && _jsxs4("span", { className: "vx-asset-reference-count", title: `${remaining} more ${remaining === 1 ? "reference" : "references"}`, children: ["+", remaining] })] });
283
287
  }
284
288
 
285
289
  // packages/ui-system/dist/asset-tile-caption.js
286
- import { jsx as _jsx6, jsxs as _jsxs4 } from "react/jsx-runtime";
290
+ import { jsx as _jsx6, jsxs as _jsxs5 } from "react/jsx-runtime";
287
291
  function AssetTileCaption({ title, facts, status, actions, onOpen, disabled }) {
288
292
  const details = facts.filter((fact) => typeof fact === "string" && Boolean(fact.trim()));
289
- return _jsxs4("div", { className: "vx-tile-caption", children: [onOpen ? _jsx6("button", { type: "button", className: "vx-tile-title", title, onClick: onOpen, disabled, children: title }) : _jsx6("strong", { className: "vx-tile-title", title, children: title }), actions, _jsxs4("div", { className: "vx-tile-facts", title: details.join(" \xB7 "), children: [status, details.map((detail, i) => _jsx6("span", { children: detail }, i))] })] });
293
+ return _jsxs5("div", { className: "vx-tile-caption", children: [onOpen ? _jsx6("button", { type: "button", className: "vx-tile-title", title, onClick: onOpen, disabled, children: title }) : _jsx6("strong", { className: "vx-tile-title", title, children: title }), actions, _jsxs5("div", { className: "vx-tile-facts", title: details.join(" \xB7 "), children: [status, details.map((detail, i) => _jsx6("span", { children: detail }, i))] })] });
290
294
  }
291
295
 
292
296
  // packages/ui-system/dist/open-workbench-asset.js
@@ -305,7 +309,7 @@ function openWorkbenchAsset(ref) {
305
309
  }
306
310
 
307
311
  // packages/ui-system/dist/script-cover.js
308
- import { jsx as _jsx7, jsxs as _jsxs5 } from "react/jsx-runtime";
312
+ import { jsx as _jsx7, jsxs as _jsxs6 } from "react/jsx-runtime";
309
313
  import { useEffect, useState } from "react";
310
314
  async function readTextExcerpt(response, signal, maxBytes = 1024) {
311
315
  if (!response.ok || !response.body)
@@ -355,17 +359,17 @@ function ScriptCover({ title, synopsis, src }) {
355
359
  return () => controller.abort();
356
360
  }, [src, synopsis]);
357
361
  const text = synopsis || (src && excerpt?.src === src ? excerpt.text : "");
358
- return _jsx7("span", { className: "vx-script-cover", "aria-label": title, children: _jsxs5("span", { className: "vx-script-sheet", children: [_jsx7("strong", { children: title }), _jsx7("span", { children: text })] }) });
362
+ return _jsx7("span", { className: "vx-script-cover", "aria-label": title, children: _jsxs6("span", { className: "vx-script-sheet", children: [_jsx7("strong", { children: title }), _jsx7("span", { children: text })] }) });
359
363
  }
360
364
 
361
365
  // packages/ui-system/dist/checkbox.js
362
- import { jsx as _jsx8, jsxs as _jsxs6 } from "react/jsx-runtime";
366
+ import { jsx as _jsx8, jsxs as _jsxs7 } from "react/jsx-runtime";
363
367
  function Checkbox({ label, checked, onCheckedChange, hideLabel = false, appearance = "default", ...props }) {
364
- return _jsxs6("label", { className: "vx-checkbox", "data-appearance": appearance, "data-label-hidden": hideLabel || void 0, children: [_jsx8("input", { ...props, className: "vx-checkbox-input", type: "checkbox", "aria-label": hideLabel ? label : void 0, checked, onChange: (event2) => onCheckedChange(event2.currentTarget.checked) }), _jsx8("span", { className: "vx-checkbox-mark", "aria-hidden": "true", children: _jsx8(Icon, { name: appearance === "on-content" ? "check-on-content" : "check" }) }), !hideLabel && label] });
368
+ return _jsxs7("label", { className: "vx-checkbox", "data-appearance": appearance, "data-label-hidden": hideLabel || void 0, children: [_jsx8("input", { ...props, className: "vx-checkbox-input", type: "checkbox", "aria-label": hideLabel ? label : void 0, checked, onChange: (event2) => onCheckedChange(event2.currentTarget.checked) }), _jsx8("span", { className: "vx-checkbox-mark", "aria-hidden": "true", children: _jsx8(Icon, { name: appearance === "on-content" ? "check-on-content" : "check" }) }), !hideLabel && label] });
365
369
  }
366
370
 
367
371
  // packages/ui-system/dist/dropdown.js
368
- import { jsx as _jsx9, jsxs as _jsxs7 } from "react/jsx-runtime";
372
+ import { jsx as _jsx9, jsxs as _jsxs8 } from "react/jsx-runtime";
369
373
  import { useEffect as useEffect2, useId, useLayoutEffect, useRef, useState as useState2 } from "react";
370
374
  function optionIcon(icon) {
371
375
  return typeof icon === "string" ? _jsx9(Icon, { name: icon }) : icon;
@@ -498,18 +502,18 @@ function Dropdown({ label, options, value, onValueChange, placeholder = "Select
498
502
  if (match)
499
503
  setHighlighted(match.value);
500
504
  }
501
- return _jsxs7("div", { className: "vx-dropdown", "data-size": size, "data-width": width, "data-appearance": appearance, "data-text-size": textSize, "data-floating": floating || void 0, children: [_jsxs7("button", { type: "button", ref: trigger, 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: [_jsxs7("span", { className: "vx-dropdown-value", children: [optionIcon(selected?.icon), _jsx9("span", { children: selected?.triggerLabel ?? selected?.label ?? placeholder })] }), _jsx9(Icon, { name: expanded ? "chevron-up" : "chevron-down" })] }), _jsx9("ul", { ref: list, popover: popover ? "manual" : void 0, id: `${id}-listbox`, role: "listbox", "aria-label": label, hidden: !expanded, children: options.map((option, index) => _jsxs7("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: () => {
505
+ return _jsxs8("div", { className: "vx-dropdown", "data-size": size, "data-width": width, "data-appearance": appearance, "data-text-size": textSize, "data-floating": floating || void 0, children: [_jsxs8("button", { type: "button", ref: trigger, 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: [_jsxs8("span", { className: "vx-dropdown-value", children: [optionIcon(selected?.icon), _jsx9("span", { children: selected?.triggerLabel ?? selected?.label ?? placeholder })] }), _jsx9(Icon, { name: expanded ? "chevron-up" : "chevron-down" })] }), _jsx9("ul", { ref: list, popover: popover ? "manual" : void 0, id: `${id}-listbox`, role: "listbox", "aria-label": label, hidden: !expanded, children: options.map((option, index) => _jsxs8("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: () => {
502
506
  if (!option.disabled)
503
507
  choose(option);
504
508
  }, children: [optionIcon(option.icon), option.label, width === "hug" && option.value === value && _jsx9(Icon, { name: "check" })] }, option.value)) })] });
505
509
  }
506
510
 
507
511
  // packages/ui-system/dist/segmented-control.js
508
- import { jsx as _jsx10, jsxs as _jsxs8 } from "react/jsx-runtime";
512
+ import { jsx as _jsx10, jsxs as _jsxs9 } from "react/jsx-runtime";
509
513
  import { useId as useId2 } from "react";
510
514
  function SegmentedControl({ label, items, value, onValueChange, size = "medium", width = "fixed", iconOnly = false }) {
511
515
  const id = useId2();
512
- return _jsx10("div", { role: "radiogroup", "aria-label": label, className: "vx-segment", "data-size": size, "data-width": width, "data-icon-only": iconOnly, children: items.map((item) => _jsxs8("label", { children: [_jsx10("input", { type: "radio", name: id, value: item.value, disabled: item.disabled, checked: item.value === value, "aria-label": item.label, onChange: () => onValueChange(item.value) }), _jsxs8("span", { className: "vx-segment-item", children: [item.icon && _jsx10(Icon, { name: item.icon }), (!iconOnly || !item.icon) && item.label] })] }, item.value)) });
516
+ return _jsx10("div", { role: "radiogroup", "aria-label": label, className: "vx-segment", "data-size": size, "data-width": width, "data-icon-only": iconOnly, children: items.map((item) => _jsxs9("label", { title: iconOnly ? item.label : void 0, children: [_jsx10("input", { type: "radio", name: id, value: item.value, disabled: item.disabled, checked: item.value === value, "aria-label": item.label, onChange: () => onValueChange(item.value) }), _jsxs9("span", { className: "vx-segment-item", children: [item.icon && _jsx10(Icon, { name: item.icon }), (!iconOnly || !item.icon) && item.label] })] }, item.value)) });
513
517
  }
514
518
 
515
519
  // packages/ui-system/dist/inline-text.js
@@ -571,7 +575,7 @@ function Tag({ children, variant = "overlay", className }) {
571
575
  }
572
576
 
573
577
  // packages/ui-system/dist/dialog.js
574
- import { jsx as _jsx13, jsxs as _jsxs9, Fragment as _Fragment3 } from "react/jsx-runtime";
578
+ import { jsx as _jsx13, jsxs as _jsxs10, Fragment as _Fragment4 } from "react/jsx-runtime";
575
579
  import { useId as useId3, useLayoutEffect as useLayoutEffect3, useRef as useRef3, useState as useState4 } from "react";
576
580
  import { createPortal } from "react-dom";
577
581
 
@@ -676,7 +680,7 @@ function Dialog({ title, open, onOpenChange, children, actions, className, inlin
676
680
  }, [open, surface, inlineWhenClosed]);
677
681
  const welcome = variant === "welcome";
678
682
  const closeButton = _jsx13(IconButton, { icon: "close", label: "Close dialog", onClick: () => onOpenChange(false) });
679
- const dialog = _jsxs9("dialog", { ref, open: inlineWhenClosed || void 0, className: inlineWhenClosed && !open ? "vx-dialog vx-dialog-inline" : className ? `vx-dialog ${className}` : "vx-dialog", "data-variant": variant === "default" ? void 0 : variant, role: inlineWhenClosed && !open ? "presentation" : void 0, "aria-labelledby": inlineWhenClosed && !open ? void 0 : heading, onCancel: (event2) => {
683
+ const dialog = _jsxs10("dialog", { ref, open: inlineWhenClosed || void 0, className: inlineWhenClosed && !open ? "vx-dialog vx-dialog-inline" : className ? `vx-dialog ${className}` : "vx-dialog", "data-variant": variant === "default" ? void 0 : variant, role: inlineWhenClosed && !open ? "presentation" : void 0, "aria-labelledby": inlineWhenClosed && !open ? void 0 : heading, onCancel: (event2) => {
680
684
  event2.preventDefault();
681
685
  event2.stopPropagation();
682
686
  if (closeOnEscape)
@@ -684,12 +688,12 @@ function Dialog({ title, open, onOpenChange, children, actions, className, inlin
684
688
  }, onClose: (event2) => {
685
689
  if (open && event2.currentTarget.isConnected && !event2.currentTarget.open)
686
690
  onOpenChange(false);
687
- }, children: [_jsxs9("header", { hidden: inlineWhenClosed && !open, children: [_jsx13("h2", { id: heading, tabIndex: focusTitleOnOpen ? -1 : void 0, autoFocus: focusTitleOnOpen, children: title }), !welcome && closeButton] }), _jsx13("div", { className: "vx-dialog-body", children }), (actions || welcome) && _jsxs9("footer", { hidden: inlineWhenClosed && !open, children: [actions, welcome && closeButton] })] });
688
- return _jsxs9(_Fragment3, { children: [_jsx13("span", { ref: anchor2, hidden: true }), (open || inlineWhenClosed) && (surface ? createPortal(dialog, surface) : dialog)] });
691
+ }, children: [_jsxs10("header", { hidden: inlineWhenClosed && !open, children: [_jsx13("h2", { id: heading, tabIndex: focusTitleOnOpen ? -1 : void 0, autoFocus: focusTitleOnOpen, children: title }), !welcome && closeButton] }), _jsx13("div", { className: "vx-dialog-body", children }), (actions || welcome) && _jsxs10("footer", { hidden: inlineWhenClosed && !open, children: [actions, welcome && closeButton] })] });
692
+ return _jsxs10(_Fragment4, { children: [_jsx13("span", { ref: anchor2, hidden: true }), (open || inlineWhenClosed) && (surface ? createPortal(dialog, surface) : dialog)] });
689
693
  }
690
694
 
691
695
  // packages/ui-system/dist/toast.js
692
- import { jsx as _jsx14, jsxs as _jsxs10, Fragment as _Fragment4 } from "react/jsx-runtime";
696
+ import { jsx as _jsx14, jsxs as _jsxs11, Fragment as _Fragment5 } from "react/jsx-runtime";
693
697
  import { useCallback, useEffect as useEffect3, useLayoutEffect as useLayoutEffect4, useRef as useRef4, useState as useState5 } from "react";
694
698
  import { createPortal as createPortal2 } from "react-dom";
695
699
  function useToastMessage() {
@@ -749,18 +753,18 @@ function Toast({ message, leading, className }) {
749
753
  doc.removeEventListener("fullscreenchange", bringToFront);
750
754
  };
751
755
  }, [visible, surface]);
752
- const notice = visible && surface !== void 0 && _jsxs10("div", { ref, popover: "manual", role: "status", "aria-atomic": "true", className: className ? `vx-toast ${className}` : "vx-toast", children: [leading, _jsx14("span", { children: message })] });
753
- return _jsxs10(_Fragment4, { children: [_jsx14("span", { hidden: true, ref: anchor2 }), surface ? createPortal2(notice, surface) : notice] });
756
+ const notice = visible && surface !== void 0 && _jsxs11("div", { ref, popover: "manual", role: "status", "aria-atomic": "true", className: className ? `vx-toast ${className}` : "vx-toast", children: [leading, _jsx14("span", { children: message })] });
757
+ return _jsxs11(_Fragment5, { children: [_jsx14("span", { hidden: true, ref: anchor2 }), surface ? createPortal2(notice, surface) : notice] });
754
758
  }
755
759
 
756
760
  // packages/ui-system/dist/prompt-hint.js
757
- import { jsx as _jsx15, jsxs as _jsxs11 } from "react/jsx-runtime";
761
+ import { jsx as _jsx15, jsxs as _jsxs12 } from "react/jsx-runtime";
758
762
  import { useRef as useRef5, useState as useState6 } from "react";
759
763
  function PromptHint({ label, message, prompt }) {
760
764
  const [status, setStatus] = useToastMessage();
761
765
  const [manual, setManual] = useState6(false);
762
766
  const text = useRef5(null);
763
- return _jsxs11("aside", { className: "vx-prompt-hint", "aria-label": label, children: [_jsx15("p", { children: message }), manual && _jsx15("textarea", { ref: text, "aria-label": "Prompt to copy", readOnly: true, value: prompt, autoFocus: true, onFocus: (event2) => event2.currentTarget.select() }), _jsx15(Button, { label: "Copy prompt", variant: "text-tonal-sm", width: "hug", onClick: async (event2) => {
767
+ return _jsxs12("aside", { className: "vx-prompt-hint", "aria-label": label, children: [_jsx15("p", { children: message }), manual && _jsx15("textarea", { ref: text, "aria-label": "Prompt to copy", readOnly: true, value: prompt, autoFocus: true, onFocus: (event2) => event2.currentTarget.select() }), _jsx15(Button, { label: "Copy prompt", variant: "text-tonal-sm", width: "hug", onClick: async (event2) => {
764
768
  try {
765
769
  await event2.currentTarget.ownerDocument.defaultView.navigator.clipboard.writeText(prompt);
766
770
  setStatus("Prompt copied.");
@@ -824,7 +828,7 @@ function useDetailPanel(open) {
824
828
  }
825
829
 
826
830
  // packages/ui-system/dist/menu.js
827
- import { jsx as _jsx16, jsxs as _jsxs12 } from "react/jsx-runtime";
831
+ import { jsx as _jsx16, jsxs as _jsxs13 } from "react/jsx-runtime";
828
832
  import { useEffect as useEffect4, useId as useId4, useLayoutEffect as useLayoutEffect6, useRef as useRef7, useState as useState8 } from "react";
829
833
  import { createPortal as createPortal3 } from "react-dom";
830
834
  function MenuPreview({ children }) {
@@ -1041,18 +1045,18 @@ function Menu({ label, items, triggerIcon, textTrigger = "dropdown", floating =
1041
1045
  visibility: "hidden",
1042
1046
  maxHeight: "min(480px, calc(100dvh - 16px))",
1043
1047
  zIndex: 100 + depth
1044
- } : placement : void 0, children: entries2.map((item) => _jsxs12("button", { type: "button", role: item.checked === void 0 ? "menuitem" : "menuitemcheckbox", "aria-checked": item.checked, "aria-haspopup": item.items?.length ? "menu" : void 0, "data-key": item.id, "aria-expanded": cascade && item.items ? path?.[depth] === item.id : void 0, onPointerEnter: cascade ? (e) => {
1048
+ } : placement : void 0, children: entries2.map((item) => _jsxs13("button", { type: "button", role: item.checked === void 0 ? "menuitem" : "menuitemcheckbox", "aria-checked": item.checked, "aria-haspopup": item.items?.length ? "menu" : void 0, "data-key": item.id, "aria-expanded": cascade && item.items ? path?.[depth] === item.id : void 0, onPointerEnter: cascade ? (e) => {
1045
1049
  if (e.pointerType !== "touch")
1046
1050
  hover(item, depth);
1047
1051
  } : void 0, "data-size": item.size ?? "medium", "data-tone": item.tone, disabled: !isEnabled(item), tabIndex: -1, onClick: () => choose(item, depth), children: [item.icon && _jsx16(Icon, { name: item.icon }), path && item.preview && _jsx16(MenuPreview, { children: item.preview }), _jsx16("span", { className: "vx-menu-label", children: item.label }), item.checked && _jsx16(Icon, { name: "check" }), item.items?.length ? _jsx16(Icon, { name: "chevron-right" }) : null] }, item.id)) }, depth));
1048
- return _jsxs12("div", { className: "vx-action-menu", onBlur: (event2) => {
1052
+ return _jsxs13("div", { className: "vx-action-menu", onBlur: (event2) => {
1049
1053
  if (!event2.currentTarget.contains(event2.relatedTarget) && !(floating && popup.current?.contains(event2.relatedTarget)) && ![...children.current.values()].some((panel) => panel.contains(event2.relatedTarget)))
1050
1054
  setPath(null);
1051
1055
  }, children: [triggerIcon ? _jsx16(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 }) : _jsx16(Button, { ref: trigger, label, variant: textTrigger === "plain" ? "text-plain-sm" : "text-tonal-sm", trailingIcon: textTrigger === "dropdown" ? "chevron-down" : void 0, "aria-haspopup": "menu", "aria-controls": id, "aria-expanded": path !== null, disabled: !items.some(isEnabled), onClick: () => path ? close() : open(), onKeyDown: triggerKey }), portalRoot ? createPortal3(menu, portalRoot) : menu] });
1052
1056
  }
1053
1057
 
1054
1058
  // packages/ui-system/dist/filter-menu.js
1055
- import { jsx as _jsx17, jsxs as _jsxs13, Fragment as _Fragment5 } from "react/jsx-runtime";
1059
+ import { jsx as _jsx17, jsxs as _jsxs14, Fragment as _Fragment6 } from "react/jsx-runtime";
1056
1060
  import { useId as useId5, useRef as useRef8, useState as useState9, useLayoutEffect as useLayoutEffect7 } from "react";
1057
1061
  function FilterMenu({ label, groups, value, onValueChange, leadingIcon = "filter" }) {
1058
1062
  const id = useId5();
@@ -1088,12 +1092,12 @@ function FilterMenu({ label, groups, value, onValueChange, leadingIcon = "filter
1088
1092
  function focusFirstGroup() {
1089
1093
  popup.current?.querySelector("summary")?.focus({ preventScroll: true });
1090
1094
  }
1091
- return _jsxs13(_Fragment5, { children: [_jsx17(Button, { label, badge: count, className: "vx-filter-trigger", width: "hug", variant: "text-tonal-sm", leadingIcon, trailingIcon: leadingIcon ? void 0 : "chevron-down", popoverTarget: id, "aria-controls": id, "aria-expanded": expanded, "aria-haspopup": "dialog", disabled: !sections.length }), _jsxs13("div", { ref: popup, id, className: "vx-filter-menu", popover: "auto", role: "dialog", "aria-label": label, onToggle: (event2) => {
1095
+ return _jsxs14(_Fragment6, { children: [_jsx17(Button, { label, badge: count, className: "vx-filter-trigger", width: "hug", variant: "text-tonal-sm", leadingIcon, trailingIcon: leadingIcon ? void 0 : "chevron-down", popoverTarget: id, "aria-controls": id, "aria-expanded": expanded, "aria-haspopup": "dialog", disabled: !sections.length }), _jsxs14("div", { ref: popup, id, className: "vx-filter-menu", popover: "auto", role: "dialog", "aria-label": label, onToggle: (event2) => {
1092
1096
  const open = event2.currentTarget.matches(":popover-open");
1093
1097
  setExpanded(open);
1094
1098
  if (open)
1095
1099
  focusFirstGroup();
1096
- }, children: [_jsx17("div", { className: "vx-filter-scroll", "data-more-below": moreBelow || void 0, children: _jsx17("div", { className: "vx-filter-groups", ref: list, children: sections.map(({ id: groupId, label: label2, options, optionLabels, selected, initiallyCollapsed }) => _jsxs13("details", { open: !initiallyCollapsed, children: [_jsxs13("summary", { children: [label2, _jsx17(Icon, { name: "chevron-down", size: 16 })] }), _jsx17("div", { className: "vx-filter-options", role: "group", "aria-label": label2, children: options.map(([option, optionLabel]) => _jsx17(Checkbox, { label: optionLabels?.[option] ?? optionLabel, checked: selected.includes(option), onCheckedChange: (checked) => onValueChange({
1100
+ }, children: [_jsx17("div", { className: "vx-filter-scroll", "data-more-below": moreBelow || void 0, children: _jsx17("div", { className: "vx-filter-groups", ref: list, children: sections.map(({ id: groupId, label: label2, options, optionLabels, selected, initiallyCollapsed }) => _jsxs14("details", { open: !initiallyCollapsed, children: [_jsxs14("summary", { children: [label2, _jsx17(Icon, { name: "chevron-down", size: 16 })] }), _jsx17("div", { className: "vx-filter-options", role: "group", "aria-label": label2, children: options.map(([option, optionLabel]) => _jsx17(Checkbox, { label: optionLabels?.[option] ?? optionLabel, checked: selected.includes(option), onCheckedChange: (checked) => onValueChange({
1097
1101
  ...value,
1098
1102
  [groupId]: checked ? [...selected, option] : selected.filter((item) => item !== option)
1099
1103
  }) }, option)) })] }, groupId)) }) }), _jsx17("footer", { children: _jsx17(Button, { label: "Clear Filters", variant: "text-tonal-sm", disabled: !count, onClick: () => {
@@ -1103,10 +1107,10 @@ function FilterMenu({ label, groups, value, onValueChange, leadingIcon = "filter
1103
1107
  }
1104
1108
 
1105
1109
  // packages/ui-system/dist/media.js
1106
- import { jsx as _jsx18, Fragment as _Fragment6, jsxs as _jsxs14 } from "react/jsx-runtime";
1110
+ import { jsx as _jsx18, Fragment as _Fragment7, jsxs as _jsxs15 } from "react/jsx-runtime";
1107
1111
  import { useRef as useRef9, useState as useState10 } from "react";
1108
1112
  function MediaBadges({ label, duration: duration3, labelVariant }) {
1109
- return _jsxs14(_Fragment6, { children: [" ", label && _jsx18("span", { className: labelVariant === "selected" ? "vx-media-selected" : "vx-media-label", children: _jsx18(Tag, { variant: labelVariant, children: label }) }), duration3 && _jsx18("span", { className: "vx-media-duration", children: _jsx18(Tag, { children: duration3 }) })] });
1113
+ return _jsxs15(_Fragment7, { children: [" ", label && _jsx18("span", { className: labelVariant === "selected" ? "vx-media-selected" : "vx-media-label", children: _jsx18(Tag, { variant: labelVariant, children: label }) }), duration3 && _jsx18("span", { className: "vx-media-duration", children: _jsx18(Tag, { children: duration3 }) })] });
1110
1114
  }
1111
1115
  function Media({ src, videoSrc, preferVideo = false, emptyLabel, script, alt, ratio = "16:9", state = "default", fit = "cover", emptyAppearance = "black", crop, label, labelVariant, duration: duration3, selectedLabel, selectionStyle = "outline", onSelect, onOpen }) {
1112
1116
  const [failedImage, setFailedImage] = useState10();
@@ -1124,7 +1128,7 @@ function Media({ src, videoSrc, preferVideo = false, emptyLabel, script, alt, ra
1124
1128
  transform: `rotate(${crop.rotation ?? 0}deg)`,
1125
1129
  objectFit: "fill"
1126
1130
  } : { objectFit: fit };
1127
- const content = _jsxs14(_Fragment6, { children: [script ? _jsx18(ScriptCover, { ...script }) : image ? _jsx18("img", { src: image, alt, style: imageStyle, onError: () => setFailedImage(image) }, image) : video ? _jsx18("video", { src: video, preload: "metadata", muted: true, playsInline: true, "aria-hidden": "true", style: { objectFit: fit }, onError: () => setFailedVideo(video) }, video) : emptyAppearance !== "black" && emptyAppearance !== "surface" ? _jsx18(Icon, { name: `placeholder-${emptyAppearance}`, size: 20 }) : emptyLabel && !busy ? _jsx18("span", { className: "vx-media-empty-label", children: emptyLabel }) : null, _jsx18(MediaBadges, { label, labelVariant, duration: duration3 }), selected && selectedLabel && _jsx18("span", { className: "vx-media-selected", children: _jsx18(Tag, { variant: "selected", children: "Selected" }) }), selectionStyle === "checkbox" && _jsx18("span", { className: "vx-media-marker", "aria-hidden": "true", children: selected && _jsx18(Icon, { name: "check", size: 12 }) }), busy && _jsx18("span", { className: "vx-media-progress", role: "status", children: state === "loading" ? "Loading" : "Generating" })] });
1131
+ const content = _jsxs15(_Fragment7, { children: [script ? _jsx18(ScriptCover, { ...script }) : image ? _jsx18("img", { src: image, alt, style: imageStyle, onError: () => setFailedImage(image) }, image) : video ? _jsx18("video", { src: video, preload: "metadata", muted: true, playsInline: true, "aria-hidden": "true", style: { objectFit: fit }, onError: () => setFailedVideo(video) }, video) : emptyAppearance !== "black" && emptyAppearance !== "surface" ? _jsx18(Icon, { name: `placeholder-${emptyAppearance}`, size: 20 }) : emptyLabel && !busy ? _jsx18("span", { className: "vx-media-empty-label", children: emptyLabel }) : null, _jsx18(MediaBadges, { label, labelVariant, duration: duration3 }), selected && selectedLabel && _jsx18("span", { className: "vx-media-selected", children: _jsx18(Tag, { variant: "selected", children: "Selected" }) }), selectionStyle === "checkbox" && _jsx18("span", { className: "vx-media-marker", "aria-hidden": "true", children: selected && _jsx18(Icon, { name: "check", size: 12 }) }), busy && _jsx18("span", { className: "vx-media-progress", role: "status", children: state === "loading" ? "Loading" : "Generating" })] });
1128
1132
  const props = {
1129
1133
  className: "vx-media",
1130
1134
  "data-state": state,
@@ -1137,7 +1141,7 @@ function Media({ src, videoSrc, preferVideo = false, emptyLabel, script, alt, ra
1137
1141
  }
1138
1142
 
1139
1143
  // packages/ui-system/dist/audio-preview.js
1140
- import { jsx as _jsx19, jsxs as _jsxs15 } from "react/jsx-runtime";
1144
+ import { jsx as _jsx19, jsxs as _jsxs16 } from "react/jsx-runtime";
1141
1145
  import { useEffect as useEffect5, useRef as useRef10, useState as useState11 } from "react";
1142
1146
  function AudioClip({ title, src, duration: duration3, disabled, playing: previewPlaying = false, quote, quoteContent, onPlayChange, onError, variant = "audio" }) {
1143
1147
  const audio = useRef10(null);
@@ -1163,7 +1167,7 @@ function AudioClip({ title, src, duration: duration3, disabled, playing: preview
1163
1167
  setPlaying(next);
1164
1168
  onPlayChange?.(next);
1165
1169
  }
1166
- return _jsxs15("div", { className: "vx-audio-preview", "data-variant": variant, role: "group", "aria-label": title, children: [src && _jsx19(IconButton, { icon: playing ? "pause" : "play", variant: variant === "voice" ? "icon-circle-sm" : "icon-ghost-sm", label: `${playing ? "Pause" : "Play"} ${title}`, disabled, "aria-pressed": playing, onClick: () => {
1170
+ return _jsxs16("div", { className: "vx-audio-preview", "data-variant": variant, role: "group", "aria-label": title, children: [src && _jsx19(IconButton, { icon: playing ? "pause" : "play", variant: variant === "voice" ? "icon-circle-sm" : "icon-ghost-sm", label: `${playing ? "Pause" : "Play"} ${title}`, disabled, "aria-pressed": playing, onClick: () => {
1167
1171
  const player = audio.current;
1168
1172
  if (!player)
1169
1173
  return;
@@ -1171,30 +1175,73 @@ function AudioClip({ title, src, duration: duration3, disabled, playing: preview
1171
1175
  void player.play().catch((error) => onError?.(error));
1172
1176
  else
1173
1177
  player.pause();
1174
- } }), _jsxs15("div", { children: [_jsx19("span", { children: title }), quoteContent ?? (quote && _jsx19("p", { children: quote }))] }), duration3 && _jsx19("span", { children: duration3 }), src && _jsx19("audio", { ref: audio, src, preload: "none", onPlay: () => change(true), onPause: () => change(false), onEnded: () => change(false), onError: (event2) => onError?.(event2.currentTarget.error) })] });
1178
+ } }), _jsxs16("div", { children: [_jsx19("span", { children: title }), quoteContent ?? (quote && _jsx19("p", { children: quote }))] }), duration3 && _jsx19("span", { children: duration3 }), src && _jsx19("audio", { ref: audio, src, preload: "none", onPlay: () => change(true), onPause: () => change(false), onEnded: () => change(false), onError: (event2) => onError?.(event2.currentTarget.error) })] });
1175
1179
  }
1176
1180
  function VoicePreview(props) {
1177
1181
  return _jsx19(AudioClip, { ...props, variant: "voice" }, props.src);
1178
1182
  }
1179
1183
 
1180
1184
  // packages/ui-system/dist/video-player.js
1181
- import { jsx as _jsx20, jsxs as _jsxs16, Fragment as _Fragment7 } from "react/jsx-runtime";
1182
- import { useEffect as useEffect6, useRef as useRef11, useState as useState12 } from "react";
1185
+ import { jsx as _jsx20, jsxs as _jsxs17, Fragment as _Fragment8 } from "react/jsx-runtime";
1186
+ import { useEffect as useEffect7, useRef as useRef11, useState as useState13 } from "react";
1187
+
1188
+ // packages/ui-system/dist/fullscreen.js
1189
+ import { useEffect as useEffect6, useState as useState12 } from "react";
1190
+ function isFullscreen(element) {
1191
+ const tree = element.getRootNode();
1192
+ return tree.fullscreenElement === element || element.matches(":fullscreen");
1193
+ }
1194
+ function useFullscreen(target) {
1195
+ const [fullscreen, setFullscreen] = useState12(false);
1196
+ useEffect6(() => {
1197
+ const element = target.current;
1198
+ if (!element)
1199
+ return;
1200
+ const doc = element.ownerDocument;
1201
+ const update = () => setFullscreen(isFullscreen(element));
1202
+ const escape = (event2) => {
1203
+ if (event2.key !== "Escape" || !isFullscreen(element))
1204
+ return;
1205
+ event2.preventDefault();
1206
+ event2.stopPropagation();
1207
+ void doc.exitFullscreen().catch(update);
1208
+ };
1209
+ update();
1210
+ doc.addEventListener("fullscreenchange", update);
1211
+ doc.addEventListener("keydown", escape, true);
1212
+ return () => {
1213
+ doc.removeEventListener("fullscreenchange", update);
1214
+ doc.removeEventListener("keydown", escape, true);
1215
+ };
1216
+ }, [target]);
1217
+ async function toggleFullscreen() {
1218
+ const element = target.current;
1219
+ if (!element)
1220
+ return;
1221
+ if (isFullscreen(element))
1222
+ await element.ownerDocument.exitFullscreen();
1223
+ else
1224
+ await element.requestFullscreen();
1225
+ }
1226
+ return { fullscreen, toggleFullscreen };
1227
+ }
1228
+
1229
+ // packages/ui-system/dist/video-player.js
1183
1230
  function timeLabel(seconds2, padMinutes = false) {
1184
1231
  const whole = Math.floor(seconds2);
1185
1232
  const minutes = String(Math.floor(whole / 60));
1186
1233
  return `${padMinutes ? minutes.padStart(2, "0") : minutes}:${String(whole % 60).padStart(2, "0")}`;
1187
1234
  }
1188
- function PlaybackControls({ playing, muted, time, duration: duration3, size = "medium", disabled, onTogglePlay, onToggleMute, onSeek, onFullscreen, fullscreenLabel = "Toggle fullscreen", actions, appearance = "on-content", timeDisplay = "combined", renderTimeline }) {
1235
+ function PlaybackControls({ playing, muted, time, duration: duration3, size = "medium", disabled, onTogglePlay, onToggleMute, onSeek, onFullscreen, fullscreen = false, fullscreenLabel = fullscreen ? "Exit fullscreen" : "Enter fullscreen", actions, appearance = "on-content", timeDisplay = "combined", renderTimeline }) {
1189
1236
  const slider = _jsx20("input", { className: "vx-playback-range", "aria-label": "Playback position", "aria-valuetext": `${timeLabel(time)} of ${timeLabel(duration3)}`, type: "range", min: 0, max: duration3, value: time, step: "any", disabled: disabled || !duration3, onChange: (event2) => onSeek(event2.currentTarget.valueAsNumber) });
1190
- return _jsxs16("div", { className: "vx-playback-controls", role: "group", "aria-label": "Playback controls", "data-size": size, "data-appearance": appearance, style: {
1237
+ return _jsxs17("div", { className: "vx-playback-controls", role: "group", "aria-label": "Playback controls", "data-size": size, "data-appearance": appearance, style: {
1191
1238
  "--vx-playback-fraction": duration3 > 0 ? Math.min(1, Math.max(0, time / duration3)) : 0
1192
- }, children: [_jsx20(IconButton, { icon: playing ? size === "large" ? "pause-large" : "pause" : size === "large" ? "playback-play-large" : "playback-play", label: playing ? "Pause" : "Play", disabled, onClick: onTogglePlay }), timeDisplay === "split" && _jsx20("span", { "aria-hidden": "true", "data-time": "elapsed", children: timeLabel(time, true) }), renderTimeline ? renderTimeline(slider) : slider, _jsx20("span", { "aria-hidden": "true", "data-time": timeDisplay === "split" ? "duration" : void 0, children: timeDisplay === "split" ? timeLabel(duration3, true) : `${timeLabel(time)} / ${timeLabel(duration3)}` }), _jsx20(IconButton, { icon: muted ? size === "large" ? "mute-large" : "mute" : size === "large" ? "volume-large" : "volume", label: muted ? "Unmute" : "Mute", disabled, onClick: onToggleMute }), actions, onFullscreen && _jsx20(IconButton, { icon: size === "large" ? "fullscreen-large" : "fullscreen", label: fullscreenLabel, onClick: onFullscreen })] });
1239
+ }, children: [_jsx20(IconButton, { variant: size === "small" ? "icon-bare-xs" : "icon-ghost-sm", icon: playing ? size === "large" ? "pause-large" : "pause" : size === "large" ? "playback-play-large" : "playback-play", label: playing ? "Pause" : "Play", disabled, onClick: onTogglePlay }), timeDisplay === "split" && _jsx20("span", { "aria-hidden": "true", "data-time": "elapsed", children: timeLabel(time, true) }), renderTimeline ? renderTimeline(slider) : slider, _jsx20("span", { "aria-hidden": "true", "data-time": timeDisplay === "split" ? "duration" : void 0, children: timeDisplay === "split" ? timeLabel(duration3, true) : `${timeLabel(time)} / ${timeLabel(duration3)}` }), _jsx20(IconButton, { variant: size === "small" ? "icon-bare-xs" : "icon-ghost-sm", icon: muted ? size === "large" ? "mute-large" : "mute" : size === "large" ? "volume-large" : "volume", label: muted ? "Unmute" : "Mute", disabled, onClick: onToggleMute }), actions, onFullscreen && _jsx20(IconButton, { variant: size === "small" ? "icon-bare-xs" : "icon-ghost-sm", icon: fullscreen ? "fullscreen-exit" : size === "large" ? "fullscreen-large" : "fullscreen", label: fullscreenLabel, "aria-pressed": fullscreen, onClick: onFullscreen })] });
1193
1240
  }
1194
1241
 
1195
1242
  // packages/ui-system/dist/workspace-theme.js
1196
- import { jsx as _jsx21, jsxs as _jsxs17 } from "react/jsx-runtime";
1197
- import { useEffect as useEffect7, useState as useState13 } from "react";
1243
+ import { jsx as _jsx21, jsxs as _jsxs18 } from "react/jsx-runtime";
1244
+ import { useEffect as useEffect8, useState as useState14 } from "react";
1198
1245
  var key = "vivix.studio.theme";
1199
1246
  var event = "vivix-studio-theme";
1200
1247
  function readPreference() {
@@ -1207,9 +1254,9 @@ function readPreference() {
1207
1254
  return "light";
1208
1255
  }
1209
1256
  function useWorkspaceTheme() {
1210
- const [preference, setPreference] = useState13(readPreference);
1211
- const [system, setSystem] = useState13(() => globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light");
1212
- useEffect7(() => {
1257
+ const [preference, setPreference] = useState14(readPreference);
1258
+ const [system, setSystem] = useState14(() => globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light");
1259
+ useEffect8(() => {
1213
1260
  const query = globalThis.matchMedia?.("(prefers-color-scheme: dark)");
1214
1261
  const synchronize = () => setPreference(readPreference());
1215
1262
  const systemChanged = () => setSystem(query?.matches ? "dark" : "light");
@@ -1235,14 +1282,14 @@ function useWorkspaceTheme() {
1235
1282
 
1236
1283
  // packages/ui-system/dist/duration.js
1237
1284
  function formatDurationSeconds(durationMs) {
1238
- return (Math.round(durationMs / 100) / 10).toFixed(1);
1285
+ return (Math.round(durationMs / 100) / 10).toFixed(1).replace(/\.0$/, "");
1239
1286
  }
1240
1287
 
1241
1288
  // packages/ui-system/dist/view-skeleton.js
1242
- import { jsx as _jsx22, Fragment as _Fragment8, jsxs as _jsxs18 } from "react/jsx-runtime";
1289
+ import { jsx as _jsx22, Fragment as _Fragment9, jsxs as _jsxs19 } from "react/jsx-runtime";
1243
1290
  function ViewSkeleton({ layout = "list", label = "Loading project", heading = true }) {
1244
1291
  const count = { list: 5, grid: 8, document: 1, preview: 1, compare: 2 }[layout];
1245
- return _jsxs18("section", { className: "vx-view-skeleton", "data-layout": layout, role: "status", "aria-label": label, "aria-busy": "true", children: [heading && _jsx22("div", { className: "vx-skeleton-heading", "aria-hidden": "true" }), _jsx22("div", { className: "vx-skeleton-content", "aria-hidden": "true", children: Array.from({ length: count }, (_, index) => _jsxs18("div", { className: "vx-skeleton-item", children: [layout !== "document" && _jsx22("div", { className: "vx-skeleton-media" }), _jsxs18("div", { className: "vx-skeleton-copy", children: [_jsx22("span", {}), _jsx22("span", {}), layout === "document" && _jsxs18(_Fragment8, { children: [_jsx22("span", {}), _jsx22("span", {}), _jsx22("span", {})] })] })] }, index)) })] });
1292
+ return _jsxs19("section", { className: "vx-view-skeleton", "data-layout": layout, role: "status", "aria-label": label, "aria-busy": "true", children: [heading && _jsx22("div", { className: "vx-skeleton-heading", "aria-hidden": "true" }), _jsx22("div", { className: "vx-skeleton-content", "aria-hidden": "true", children: Array.from({ length: count }, (_, index) => _jsxs19("div", { className: "vx-skeleton-item", children: [layout !== "document" && _jsx22("div", { className: "vx-skeleton-media" }), _jsxs19("div", { className: "vx-skeleton-copy", children: [_jsx22("span", {}), _jsx22("span", {}), layout === "document" && _jsxs19(_Fragment9, { children: [_jsx22("span", {}), _jsx22("span", {}), _jsx22("span", {})] })] })] }, index)) })] });
1246
1293
  }
1247
1294
 
1248
1295
  // packages/ads-workbench/src/client.tsx
@@ -1617,6 +1664,7 @@ function AdPlayer({
1617
1664
  }) {
1618
1665
  const video = React2.useRef(null);
1619
1666
  const frame = React2.useRef(null);
1667
+ const { fullscreen, toggleFullscreen } = useFullscreen(frame);
1620
1668
  const pendingSeek = React2.useRef(null);
1621
1669
  const playAfterLoad = React2.useRef(null);
1622
1670
  const transitioning = React2.useRef(false);
@@ -1755,23 +1803,21 @@ function AdPlayer({
1755
1803
  const next = sequencePosition(entries, seconds2 * 1e3);
1756
1804
  show(next.index, next.sourceMs, playing);
1757
1805
  },
1758
- onFullscreen: () => {
1759
- if (frame.current)
1760
- void frame.current.requestFullscreen().catch((error) => onError(error.message));
1761
- }
1806
+ fullscreen,
1807
+ onFullscreen: () => void toggleFullscreen().catch((error) => onError(error.message))
1762
1808
  }
1763
1809
  ));
1764
1810
  }
1765
1811
 
1766
1812
  // packages/ads-workbench/src/ad-export-preview.tsx
1767
1813
  import * as React3 from "react";
1768
- import { useState as useState16 } from "react";
1814
+ import { useState as useState17 } from "react";
1769
1815
  function AdExportPreview({
1770
1816
  sequence,
1771
1817
  poster
1772
1818
  }) {
1773
- const [clip, setClip] = useState16(null);
1774
- const [error, setError] = useState16("");
1819
+ const [clip, setClip] = useState17(null);
1820
+ const [error, setError] = useState17("");
1775
1821
  return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
1776
1822
  AdPlayer,
1777
1823
  {
@@ -2150,7 +2196,7 @@ function AdFilmVersions({
2150
2196
  onClick: () => choose(film.source.objectId)
2151
2197
  },
2152
2198
  /* @__PURE__ */ React6.createElement(AdAssetCover, { asset, version, resolve }),
2153
- /* @__PURE__ */ React6.createElement("span", null, film.title.split(" \xB7 ")[0]),
2199
+ selected === film.source.objectId && /* @__PURE__ */ React6.createElement("span", null, film.title.split(" \xB7 ")[0]),
2154
2200
  version?.payload.durationMs > 0 && /* @__PURE__ */ React6.createElement("small", null, formatDurationSeconds(version.payload.durationMs), "s")
2155
2201
  );
2156
2202
  }))))), /* @__PURE__ */ React6.createElement("footer", null, films.length, " versions"));
@@ -2380,7 +2426,7 @@ function AdProjectAssets(props) {
2380
2426
  }
2381
2427
  }
2382
2428
  },
2383
- /* @__PURE__ */ React7.createElement("div", { className: "ad-library-bar vx-asset-library-toolbar" }, /* @__PURE__ */ React7.createElement("nav", { "aria-label": "Asset categories" }, ["All", "Products", "Models", "Videos"].map((name) => /* @__PURE__ */ React7.createElement(
2429
+ /* @__PURE__ */ React7.createElement("div", { className: "ad-library-bar vx-asset-library-toolbar", "data-project-assets": true }, /* @__PURE__ */ React7.createElement("nav", { "aria-label": "Asset categories" }, ["All", "Products", "Models", "Videos"].map((name) => /* @__PURE__ */ React7.createElement(
2384
2430
  "button",
2385
2431
  {
2386
2432
  key: name,
@@ -2740,6 +2786,27 @@ function adAgentPrompt(brief, clip, projectId, asset, includeFixedIdentities = t
2740
2786
  "Keep every result on this clip as a new candidate. Preserve the existing selection unless I explicitly choose another candidate."
2741
2787
  ].filter(Boolean).join("\n");
2742
2788
  }
2789
+ function adStoryboardPrompt(brief, clips, projectId, assets) {
2790
+ if (!clips.length) return adAgentPrompt(brief, void 0, projectId);
2791
+ return [
2792
+ adAgentPrompt(brief, void 0, projectId),
2793
+ ...clips.map((clip, index) => {
2794
+ const asset = assets.find((item) => item.objectId === clip.assetId);
2795
+ const selected = asset?.data.adoptedVersionId;
2796
+ const edit = clip.edits.find((item) => item.sourceVersionId === selected);
2797
+ return [
2798
+ `Shot ${index + 1}: ${clip.script.title || `Shot ${index + 1}`} (Clip asset: ${clip.assetId})`,
2799
+ clip.script.visual && `Visual: ${clip.script.visual}`,
2800
+ clip.script.voiceover && `Voiceover: ${clip.script.voiceover}`,
2801
+ clip.script.onScreenText && `On-screen text: ${clip.script.onScreenText}`,
2802
+ clip.script.cta && `CTA: ${clip.script.cta}`,
2803
+ `Planned duration: ${duration2(clip.script.plannedDurationMs)}`,
2804
+ `Selected fixed candidate: ${selected && asset ? JSON.stringify({ storeId: asset.storeId, objectId: asset.objectId, versionId: selected }) : "None"}`,
2805
+ `Selected saved edit: ${edit ? JSON.stringify(edit.editRef) : "None"}`
2806
+ ].filter(Boolean).join("\n");
2807
+ })
2808
+ ].join("\n\n");
2809
+ }
2743
2810
  function selectedGenerationTaskId(asset) {
2744
2811
  const version = asset.versions.find((item) => item.versionId === asset.data.adoptedVersionId);
2745
2812
  return version?.payload.generation?.taskId || version?.taskId || null;
@@ -3280,7 +3347,7 @@ function AdsWorkbench({
3280
3347
  async function copy2(prompt) {
3281
3348
  try {
3282
3349
  await navigator.clipboard.writeText(prompt);
3283
- setNotice("Prompt copied. Continue with your Agent.");
3350
+ setNotice("Prompt copied. Paste it into your Agent chat.");
3284
3351
  } catch {
3285
3352
  setCopyText(prompt);
3286
3353
  }
@@ -4200,19 +4267,7 @@ function AdsWorkbench({
4200
4267
  scenes: storyboardScenes,
4201
4268
  canAdd: !busy && !!ad,
4202
4269
  onAdd: addScene,
4203
- onCopy: () => ad && void copy2(
4204
- [
4205
- adAgentPrompt(ad.data.brief, void 0, projectId),
4206
- ...ad.data.clips.map(
4207
- (item) => adAgentPrompt(
4208
- ad.data.brief,
4209
- item,
4210
- projectId,
4211
- assets.find((asset2) => asset2.objectId === item.assetId)
4212
- )
4213
- )
4214
- ].join("\n\n")
4215
- )
4270
+ onCopy: () => ad && void copy2(adStoryboardPrompt(ad.data.brief, ad.data.clips, projectId, assets))
4216
4271
  }
4217
4272
  ) : /* @__PURE__ */ React8.createElement("section", { className: "ad-panel ad-storyboard" }, /* @__PURE__ */ React8.createElement("div", { className: "ad-section-heading" }, /* @__PURE__ */ React8.createElement("h1", null, "Storyboard")), /* @__PURE__ */ React8.createElement("div", { className: "ad-empty" }, /* @__PURE__ */ React8.createElement("h2", null, "Storyboard"), /* @__PURE__ */ React8.createElement("p", null, "Enable and configure the Advertising Storyboard plugin to edit shots.")))), !loadingProject && page === "compare" && (CompareView ? /* @__PURE__ */ React8.createElement(
4218
4273
  CompareView,
package/dist/client.css CHANGED
@@ -405,16 +405,16 @@
405
405
  :root:has(#app > [data-vx-theme=dark]) {
406
406
  --vx-scrollbar-root-thumb: var(--vx-dark-neutral-06);
407
407
  }
408
- :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *)::-webkit-scrollbar {
408
+ :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *, [data-vx-theme], [data-vx-theme] *)::-webkit-scrollbar {
409
409
  width: 4px;
410
410
  height: 4px;
411
411
  background: transparent;
412
412
  }
413
- :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *)::-webkit-scrollbar-thumb {
413
+ :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *, [data-vx-theme], [data-vx-theme] *)::-webkit-scrollbar-thumb {
414
414
  background: var(--vx-border-primary, var(--vx-scrollbar-root-thumb));
415
415
  border-radius: 999px;
416
416
  }
417
- :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *)::-webkit-scrollbar-corner {
417
+ :where(:root:has([data-vx-theme]), :root:has([data-vx-theme]) *, [data-vx-theme], [data-vx-theme] *)::-webkit-scrollbar-corner {
418
418
  background: transparent;
419
419
  }
420
420
  @supports not selector(::-webkit-scrollbar) {
@@ -537,8 +537,8 @@
537
537
  .vx-button:hover:not(:disabled):is([data-appearance=filled], [data-variant=text-tonal-md], [data-variant=text-tonal-lg]) {
538
538
  background-image: linear-gradient(var(--vx-white-white-1a), var(--vx-white-white-1a));
539
539
  }
540
- .vx-button[data-appearance=ghost]:hover:not(:disabled) {
541
- --vx-button-background: var(--vx-surface-hover);
540
+ button.vx-button[data-appearance=ghost]:hover:not(:disabled) {
541
+ --vx-button-background: transparent;
542
542
  }
543
543
  .vx-button:focus-visible {
544
544
  outline: var(--vx-button-focus-width) solid var(--vx-state-assistance);
@@ -869,7 +869,7 @@
869
869
  }
870
870
  .vx-dropdown[data-size=large] .vx-dropdown-trigger {
871
871
  height: var(--vx-dropdown-large-height);
872
- padding-inline: var(--vx-space-12) var(--vx-space-10);
872
+ padding-inline: var(--vx-space-12);
873
873
  border-radius: var(--vx-radius-lg);
874
874
  font: var(--vx-typography-inter-16-semi-bold);
875
875
  }
@@ -897,6 +897,10 @@
897
897
  font: var(--vx-typography-inter-14-regular);
898
898
  justify-content: space-between;
899
899
  }
900
+ .vx-dropdown[data-size=large][data-appearance=field] .vx-dropdown-trigger {
901
+ padding-inline: var(--vx-space-12);
902
+ font: var(--vx-typography-inter-16-regular);
903
+ }
900
904
  .vx-dropdown[data-text-size="12"] .vx-dropdown-trigger {
901
905
  font: var(--vx-typography-inter-12-regular);
902
906
  }
@@ -961,6 +965,10 @@
961
965
  .vx-dropdown [role=option] + [role=option] {
962
966
  margin-block-start: var(--vx-space-2);
963
967
  }
968
+ .vx-dropdown[data-size=large] [role=option] {
969
+ padding-inline: var(--vx-space-12);
970
+ font: var(--vx-typography-inter-16-regular);
971
+ }
964
972
  .vx-dropdown [role=option][aria-selected=true] {
965
973
  font-weight: 600;
966
974
  }
@@ -1169,6 +1177,21 @@
1169
1177
  gap: 6px;
1170
1178
  }
1171
1179
  }
1180
+ @media (640px < width <= 760px) {
1181
+ .vx-asset-library-toolbar[data-project-assets] {
1182
+ flex-wrap: nowrap;
1183
+ height: var(--vx-tabs-primary-height);
1184
+ padding-block: 0;
1185
+ }
1186
+ .vx-asset-library-toolbar[data-project-assets] > :first-child {
1187
+ flex-basis: 0;
1188
+ }
1189
+ .vx-asset-library-toolbar[data-project-assets] .vx-asset-library-controls {
1190
+ flex-wrap: nowrap;
1191
+ flex-basis: auto;
1192
+ gap: var(--vx-space-8);
1193
+ }
1194
+ }
1172
1195
  .vx-asset-selection {
1173
1196
  display: flex;
1174
1197
  flex: 0 1 auto;
@@ -1214,6 +1237,7 @@
1214
1237
  height: 16px;
1215
1238
  margin: 0;
1216
1239
  padding: 0;
1240
+ border: 0;
1217
1241
  border-radius: var(--vx-radius-full);
1218
1242
  background:
1219
1243
  linear-gradient(
@@ -1274,6 +1298,11 @@
1274
1298
  color: var(--vx-text-secondary-readable);
1275
1299
  opacity: 1;
1276
1300
  }
1301
+ textarea {
1302
+ border-radius: var(--vx-input-radius);
1303
+ background: var(--vx-surface-input);
1304
+ resize: vertical;
1305
+ }
1277
1306
  .vx-field,
1278
1307
  .vx-slider {
1279
1308
  display: grid;
@@ -1281,19 +1310,26 @@
1281
1310
  min-width: 0;
1282
1311
  color: var(--vx-text-primary);
1283
1312
  }
1284
- .vx-field > input {
1313
+ .vx-field > :is(input, textarea) {
1285
1314
  box-sizing: border-box;
1286
1315
  width: 100%;
1287
1316
  min-height: var(--vx-input-medium-height);
1288
1317
  padding: var(--vx-space-4) var(--vx-space-8);
1289
1318
  border: 0;
1290
- border-radius: var(--vx-radius-md);
1319
+ border-radius: var(--vx-input-radius);
1291
1320
  background: var(--vx-surface-input);
1292
1321
  color: inherit;
1293
1322
  font: inherit;
1294
1323
  }
1295
1324
  .vx-field[data-size=large] > input {
1296
1325
  min-height: var(--vx-input-large-height);
1326
+ padding: var(--vx-space-8) var(--vx-space-12);
1327
+ }
1328
+ .vx-field > textarea {
1329
+ padding: var(--vx-space-8) var(--vx-space-12);
1330
+ }
1331
+ .vx-field > textarea[data-resize=none] {
1332
+ resize: none;
1297
1333
  }
1298
1334
  .vx-field[data-appearance=filled] > input {
1299
1335
  font: var(--vx-typography-inter-12-regular);
@@ -1379,7 +1415,7 @@
1379
1415
  outline: var(--vx-focus-ring-width) solid var(--vx-state-assistance);
1380
1416
  outline-offset: calc(-1 * var(--vx-focus-ring-width));
1381
1417
  }
1382
- .vx-field > input:disabled,
1418
+ .vx-field > :is(input, textarea):disabled,
1383
1419
  .vx-slider > input:disabled {
1384
1420
  cursor: not-allowed;
1385
1421
  opacity: 0.5;
@@ -1392,6 +1428,55 @@
1392
1428
  display: flex;
1393
1429
  justify-content: space-between;
1394
1430
  gap: var(--vx-space-8);
1431
+ font: var(--vx-typography-inter-14-medium);
1432
+ }
1433
+ .vx-slider[data-appearance=default] > input {
1434
+ --vx-slider-progress: calc(8px + (100% - 16px) * var(--vx-slider-fraction));
1435
+ appearance: none;
1436
+ box-sizing: border-box;
1437
+ width: 100%;
1438
+ height: 24px;
1439
+ padding: 0;
1440
+ border: 0;
1441
+ border-radius: 0;
1442
+ background: transparent;
1443
+ cursor: pointer;
1444
+ }
1445
+ .vx-slider[data-appearance=default] > input::-webkit-slider-runnable-track {
1446
+ height: 8px;
1447
+ border: 0;
1448
+ border-radius: var(--vx-radius-full);
1449
+ background:
1450
+ linear-gradient(
1451
+ to right,
1452
+ var(--vx-state-success) var(--vx-slider-progress),
1453
+ var(--vx-surface-input) var(--vx-slider-progress));
1454
+ }
1455
+ .vx-slider[data-appearance=default] > input::-webkit-slider-thumb {
1456
+ appearance: none;
1457
+ width: 16px;
1458
+ height: 16px;
1459
+ margin-top: -4px;
1460
+ border: 0;
1461
+ border-radius: 50%;
1462
+ background: var(--vx-state-success);
1463
+ }
1464
+ .vx-slider[data-appearance=default] > input::-moz-range-track,
1465
+ .vx-slider[data-appearance=default] > input::-moz-range-progress {
1466
+ height: 8px;
1467
+ border: 0;
1468
+ border-radius: var(--vx-radius-full);
1469
+ background: var(--vx-surface-input);
1470
+ }
1471
+ .vx-slider[data-appearance=default] > input::-moz-range-progress,
1472
+ .vx-slider[data-appearance=default] > input::-moz-range-thumb {
1473
+ background: var(--vx-state-success);
1474
+ }
1475
+ .vx-slider[data-appearance=default] > input::-moz-range-thumb {
1476
+ width: 16px;
1477
+ height: 16px;
1478
+ border: 0;
1479
+ border-radius: 50%;
1395
1480
  }
1396
1481
  .vx-slider > input,
1397
1482
  .vx-playback-controls > input {
@@ -1583,7 +1668,7 @@
1583
1668
  }
1584
1669
  .vx-import-file,
1585
1670
  .vx-audio-preview,
1586
- .vx-playback-controls {
1671
+ div.vx-playback-controls {
1587
1672
  display: flex;
1588
1673
  align-items: center;
1589
1674
  gap: var(--vx-space-8);
@@ -1642,7 +1727,7 @@
1642
1727
  --vx-playback-played: var(--vx-white-white-7a);
1643
1728
  height: 44px;
1644
1729
  min-height: 44px;
1645
- padding: var(--vx-space-12);
1730
+ padding: var(--vx-space-6) var(--vx-space-12);
1646
1731
  gap: var(--vx-space-12);
1647
1732
  background: linear-gradient(transparent, var(--vx-black-black-2a));
1648
1733
  color: var(--vx-text-on-content-primary);
@@ -1652,15 +1737,18 @@
1652
1737
  --vx-playback-thumb-size: 12px;
1653
1738
  height: 48px;
1654
1739
  min-height: 48px;
1740
+ padding-block: var(--vx-space-8);
1655
1741
  }
1656
1742
  .vx-playback-controls > .vx-button {
1657
1743
  --vx-button-icon-size: var(--vx-playback-button-size);
1658
- width: var(--vx-playback-button-size);
1659
- height: var(--vx-playback-button-size);
1660
1744
  color: inherit;
1661
1745
  }
1662
- .vx-playback-controls > .vx-button[data-shape=icon]:hover:not(:disabled) {
1663
- --vx-button-background: var(--vx-white-white-1a);
1746
+ .vx-playback-controls > .vx-button[data-shape=icon] {
1747
+ width: var(--vx-button-height);
1748
+ height: var(--vx-button-height);
1749
+ }
1750
+ .vx-playback-controls > button.vx-button[data-appearance=ghost]:hover:not(:disabled) {
1751
+ --vx-button-background: transparent;
1664
1752
  }
1665
1753
  .vx-playback-controls .vx-playback-range {
1666
1754
  --vx-playback-progress: calc( var(--vx-playback-thumb-size) / 2 + (100% - var(--vx-playback-thumb-size)) * var(--vx-playback-fraction) );
@@ -1670,10 +1758,12 @@
1670
1758
  height: 24px;
1671
1759
  margin: 0;
1672
1760
  padding: 0;
1761
+ border: 0;
1673
1762
  background: transparent;
1674
1763
  cursor: pointer;
1675
1764
  }
1676
1765
  .vx-playback-controls .vx-playback-range::-webkit-slider-runnable-track {
1766
+ border: 0;
1677
1767
  height: var(--vx-playback-track-height);
1678
1768
  border-radius: var(--vx-radius-full);
1679
1769
  background:
@@ -1694,11 +1784,13 @@
1694
1784
  box-shadow: var(--vx-playback-thumb-shadow, none);
1695
1785
  }
1696
1786
  .vx-playback-controls .vx-playback-range::-moz-range-track {
1787
+ border: 0;
1697
1788
  height: var(--vx-playback-track-height);
1698
1789
  border-radius: var(--vx-radius-full);
1699
1790
  background: var(--vx-overlay-tag);
1700
1791
  }
1701
1792
  .vx-playback-controls .vx-playback-range::-moz-range-progress {
1793
+ border: 0;
1702
1794
  height: var(--vx-playback-track-height);
1703
1795
  border-radius: var(--vx-radius-full);
1704
1796
  background: var(--vx-playback-played);
@@ -2522,9 +2614,9 @@ button.vx-tile-title {
2522
2614
  justify-content: flex-end;
2523
2615
  flex-wrap: wrap;
2524
2616
  }
2525
- .vx-dialog h2 {
2617
+ .vx-dialog > header > h2 {
2526
2618
  margin: 0;
2527
- font: var(--vx-typography-inter-16-semi-bold);
2619
+ font: var(--vx-typography-inter-18-semi-bold);
2528
2620
  }
2529
2621
  dialog.vx-dialog.vx-dialog-inline {
2530
2622
  position: static;
@@ -2841,6 +2933,9 @@ button.vx-tile-title {
2841
2933
  .vx-icon[data-icon=fullscreen] {
2842
2934
  --vx-icon-mask: url("./assets/fullscreen-L2JCXIN2.svg");
2843
2935
  }
2936
+ .vx-icon[data-icon=fullscreen-exit] {
2937
+ --vx-icon-mask: url("./assets/fullscreen-exit-ADYOPBYH.svg");
2938
+ }
2844
2939
  .vx-icon[data-icon=sound-file] {
2845
2940
  --vx-icon-mask: url("./assets/sound-file-YYY6VNYN.svg");
2846
2941
  }
@@ -3736,15 +3831,29 @@ button.vx-tile-title {
3736
3831
  font: var(--vx-typography-inter-16-semi-bold);
3737
3832
  }
3738
3833
  .ads-workbench .ad-compare .mt-compare-columns {
3739
- grid-auto-columns: 1fr;
3740
- grid-template-columns: repeat(var(--ad-columns, 4), minmax(160px, 1fr)) !important;
3834
+ container: ad-comparison / inline-size;
3835
+ grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)) !important;
3741
3836
  gap: 16px;
3742
3837
  }
3743
- .ads-workbench .ad-compare .mt-compare:has(.mt-compare-column:nth-child(3):last-child) {
3744
- --ad-columns: 3;
3838
+ @container ad-comparison (width < 688px) {
3839
+ .ads-workbench .ad-compare .mt-compare-column {
3840
+ min-height: 0;
3841
+ }
3842
+ }
3843
+ @container ad-comparison (512px <= width < 688px) {
3844
+ .ads-workbench .ad-compare .mt-compare-column:nth-child(3n+1)::before {
3845
+ display: none;
3846
+ }
3745
3847
  }
3746
- .ads-workbench .ad-compare .mt-compare:has(.mt-compare-column:nth-child(2):last-child) {
3747
- --ad-columns: 2;
3848
+ @container ad-comparison (336px <= width < 512px) {
3849
+ .ads-workbench .ad-compare .mt-compare-column:nth-child(2n+1)::before {
3850
+ display: none;
3851
+ }
3852
+ }
3853
+ @container ad-comparison (width < 336px) {
3854
+ .ads-workbench .ad-compare .mt-compare-column::before {
3855
+ display: none;
3856
+ }
3748
3857
  }
3749
3858
  .ads-workbench .ad-compare .mt-compare-preview,
3750
3859
  .ads-workbench .ad-compare .mt-compare-preview :is(.vx-video-player, .vx-video-stage, .mt-player, .mt-player-fit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vivix-labs/ads-workbench",
3
- "version": "1.0.0-beta.15",
3
+ "version": "1.0.0-beta.17",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -39,10 +39,10 @@
39
39
  "react-dom": "^19.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@vivix-labs/project-studio": "workspace:*",
43
- "@vivix-labs/ui-system": "workspace:*"
42
+ "@vivix-labs/project-studio": "1.0.0-beta.17",
43
+ "@vivix-labs/ui-system": "1.0.0-beta.17"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "node ../../scripts/build-product-packages.mjs ads-workbench"
47
47
  }
48
- }
48
+ }
package/presets/ads.json CHANGED
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "id": "api",
9
9
  "package": "@vivix-labs/vivix-api",
10
- "version": "1.0.0-beta.15",
10
+ "version": "1.0.0-beta.17",
11
11
  "enabled": true,
12
12
  "config": {},
13
13
  "requiredAccess": ["official.request"]
@@ -15,7 +15,7 @@
15
15
  {
16
16
  "id": "studio",
17
17
  "package": "@vivix-labs/project-studio",
18
- "version": "1.0.0-beta.15",
18
+ "version": "1.0.0-beta.17",
19
19
  "enabled": true,
20
20
  "config": {
21
21
  "role": "project",
@@ -30,7 +30,7 @@
30
30
  {
31
31
  "id": "library",
32
32
  "package": "@vivix-labs/material-library",
33
- "version": "1.0.0-beta.15",
33
+ "version": "1.0.0-beta.17",
34
34
  "enabled": true,
35
35
  "config": {
36
36
  "role": "client",
@@ -40,7 +40,7 @@
40
40
  {
41
41
  "id": "media",
42
42
  "package": "@vivix-labs/media-tools",
43
- "version": "1.0.0-beta.15",
43
+ "version": "1.0.0-beta.17",
44
44
  "enabled": true,
45
45
  "config": {
46
46
  "dataInstance": "user:data",
@@ -51,21 +51,21 @@
51
51
  {
52
52
  "id": "ads-compare",
53
53
  "package": "@vivix-labs/ads-compare",
54
- "version": "1.0.0-beta.15",
54
+ "version": "1.0.0-beta.17",
55
55
  "enabled": true,
56
56
  "config": {}
57
57
  },
58
58
  {
59
59
  "id": "ads-storyboard",
60
60
  "package": "@vivix-labs/ads-storyboard",
61
- "version": "1.0.0-beta.15",
61
+ "version": "1.0.0-beta.17",
62
62
  "enabled": true,
63
63
  "config": {}
64
64
  },
65
65
  {
66
66
  "id": "workbench",
67
67
  "package": "@vivix-labs/ads-workbench",
68
- "version": "1.0.0-beta.15",
68
+ "version": "1.0.0-beta.17",
69
69
  "enabled": true,
70
70
  "config": {
71
71
  "studioInstance": "studio",
@@ -6,7 +6,7 @@ Stages 3 and 4.
6
6
 
7
7
  **Photos.** One clean real photo per form that will be on screen: closed, open, the contents, the box. A form with no photo gets invented by the model. Import each with `assets.import` (`name`, `kind: "image"`, `tags: ["product"]`, `stagingFileIds`) and put its `{ storeId, objectId, versionId }` in `brief.productRefs`.
8
8
 
9
- A local file is staged before it is imported. Either the user drops the photos into **Project Asset**, or you stream each file to the local host and pass the returned `data.stagingFileId`: `POST <origin>/v1/user/http/data/stage?scopeKind=project&scopeId=<projectId>&actorId=local&name=<file name>` with the file bytes as the body and `Authorization: Bearer <token>`, where `origin` and `token` are read from `~/.config/vivix-studio/runtime/host.json`. A file path is never a staging ID, and the token is never printed.
9
+ A local file is staged before it is imported. Either the user drops the photos into **Project Asset**, or you stream each file to the local host and pass the returned `data.stagingFileId`: `POST <origin>/v1/user/http/data/stage?scopeKind=project&scopeId=<projectId>&actorId=local&name=<file name>` with the file bytes as the body and `Authorization: Bearer <token>`, where `origin` and `token` are read from `~/.vivix-studio/runtime/host.json`. A file path is never a staging ID, and the token is never printed.
10
10
 
11
11
  - Never generate, restyle or "clean up" a product image that carries brand text with an image model: it rewrites the text. Crop or cut out instead.
12
12
  - Show only the sides the user supplied. No back, no inside, no contents the photos do not show.