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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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>
package/dist/client.css CHANGED
@@ -1396,7 +1396,11 @@
1396
1396
  .vx-video-cover::before {
1397
1397
  position: absolute;
1398
1398
  inset: 0;
1399
- background: url("./assets/player-cover-shade-LLH6KOCQ.png") center / 100% 100% no-repeat;
1399
+ background:
1400
+ linear-gradient(
1401
+ 180deg,
1402
+ rgb(0 0 0 / 0%) 0%,
1403
+ rgb(0 0 0 / 60%) 100%);
1400
1404
  content: "";
1401
1405
  pointer-events: none;
1402
1406
  }
@@ -2056,6 +2060,7 @@
2056
2060
  }
2057
2061
  .studio-home {
2058
2062
  display: grid;
2063
+ grid-template-columns: minmax(0, 1fr);
2059
2064
  gap: 8px;
2060
2065
  inline-size: 100%;
2061
2066
  max-inline-size: 1920px;
@@ -2304,10 +2309,23 @@
2304
2309
  border-radius: 999px;
2305
2310
  font: var(--vx-typography-inter-16-medium);
2306
2311
  }
2307
- .studio-home-toolbar input:checked + .vx-segment-item {
2312
+ .studio-home-toolbar > .vx-segment input:checked + .vx-segment-item {
2308
2313
  color: var(--vx-state-success);
2309
2314
  background: color-mix(in srgb, var(--vx-state-success) 20%, var(--vx-background-dialog));
2310
2315
  }
2316
+ .studio-home-toolbar > .vx-segment .vx-icon[data-icon=grid] {
2317
+ --vx-icon-mask: url("./assets/dashboard-overview-Y32BCZQC.svg");
2318
+ }
2319
+ .studio-home-toolbar > .vx-segment .vx-icon[data-icon=list] {
2320
+ --vx-icon-mask: url("./assets/dashboard-views-GOG66UAH.svg");
2321
+ }
2322
+ .studio-home-toolbar > .vx-segment .vx-icon {
2323
+ --vx-icon-size: 18px;
2324
+ }
2325
+ .studio-home-toolbar > .vx-segment .vx-icon::before {
2326
+ width: 100%;
2327
+ height: 100%;
2328
+ }
2311
2329
  .studio-home-actions {
2312
2330
  display: flex;
2313
2331
  gap: 8px;
@@ -2328,6 +2346,15 @@
2328
2346
  .studio-home-cover {
2329
2347
  color: var(--vx-text-placeholder);
2330
2348
  }
2349
+ @media (max-width: 480px) {
2350
+ .studio-home-toolbar > .vx-segment {
2351
+ max-width: 100%;
2352
+ }
2353
+ .studio-home-toolbar .vx-segment-item {
2354
+ padding-inline: var(--vx-space-10);
2355
+ font-size: 13px;
2356
+ }
2357
+ }
2331
2358
 
2332
2359
  /* packages/studio-workbench/src/home-banner.css */
2333
2360
  .studio-home-motion-demo {
@@ -2819,6 +2846,14 @@
2819
2846
  min-height: 0;
2820
2847
  object-fit: contain;
2821
2848
  }
2849
+ @media (max-width: 359px) {
2850
+ .studio-home-hero-copy {
2851
+ padding: var(--vx-space-16);
2852
+ }
2853
+ .studio-home-motion-demo {
2854
+ display: none;
2855
+ }
2856
+ }
2822
2857
 
2823
2858
  /* packages/studio-workbench/src/custom-view-dialog.css */
2824
2859
  .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.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -44,9 +44,12 @@
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": {
@@ -57,24 +60,21 @@
57
60
  "@vivix-labs/dashboard-projects": "1.0.0-beta.2",
58
61
  "@vivix-labs/magic-edit": "1.0.0-beta.2",
59
62
  "@vivix-labs/material-library": "1.0.0-beta.2",
60
- "@vivix-labs/media-tools": "1.0.0-beta.2",
63
+ "@vivix-labs/media-tools": "1.0.0-beta.3",
61
64
  "@vivix-labs/project-studio": "1.0.0-beta.2",
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.3",
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.3",
71
74
  "@vivix-labs/vivix-api": "1.0.0-beta.2",
72
- "@vivix-labs/ads-workbench": "1.0.0-beta.2",
75
+ "@vivix-labs/ads-workbench": "1.0.0-beta.3",
73
76
  "@vivix-labs/chat-components": "1.0.0-beta.2",
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
+ }
@@ -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.3",
43
43
  "enabled": true,
44
44
  "config": {
45
45
  "studioInstance": "studio",
@@ -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.3",
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`).