@vivix-labs/studio-workbench 1.0.0-beta.18 → 1.0.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.bundle.js +29 -15
- package/dist/client.css +12 -5
- package/package.json +4 -4
- package/presets/table.json +1 -1
- package/presets/user-base.json +1 -1
package/dist/client.bundle.js
CHANGED
|
@@ -397,8 +397,8 @@ function Icon({ name, size }) {
|
|
|
397
397
|
},
|
|
398
398
|
...size === void 0 ? {} : { "--vx-icon-size": `${size}px` }
|
|
399
399
|
};
|
|
400
|
-
if (name === "relationships" || name === "color-adjust" || name === "speed") {
|
|
401
|
-
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" })] }) });
|
|
400
|
+
if (name === "menu" || name === "relationships" || name === "color-adjust" || name === "speed") {
|
|
401
|
+
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 === "menu" ? _jsx2("path", { d: "M3 5h14M3 10h14M3 15h14" }) : 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" })] }) });
|
|
402
402
|
}
|
|
403
403
|
return _jsx2("span", { "aria-hidden": "true", className: "vx-icon", "data-icon": name, style });
|
|
404
404
|
}
|
|
@@ -4036,6 +4036,14 @@ function GlobalWorkbench({ client }) {
|
|
|
4036
4036
|
requestProjectView.current?.(view2, true);
|
|
4037
4037
|
}
|
|
4038
4038
|
const sidebarPreferenceKey = `studio-sidebar-collapsed:${client.project?.id ?? client.scope?.id ?? "user"}`;
|
|
4039
|
+
const [mobileNavigation, setMobileNavigation] = React8.useState(false);
|
|
4040
|
+
React8.useEffect(() => {
|
|
4041
|
+
const media = window.matchMedia("(max-width: 500px)");
|
|
4042
|
+
const update = () => setMobileNavigation(media.matches);
|
|
4043
|
+
update();
|
|
4044
|
+
media.addEventListener("change", update);
|
|
4045
|
+
return () => media.removeEventListener("change", update);
|
|
4046
|
+
}, []);
|
|
4039
4047
|
const [collapsed, setCollapsed] = React8.useState(() => {
|
|
4040
4048
|
try {
|
|
4041
4049
|
return window.localStorage.getItem(sidebarPreferenceKey) === "true";
|
|
@@ -5080,12 +5088,13 @@ function GlobalWorkbench({ client }) {
|
|
|
5080
5088
|
))
|
|
5081
5089
|
));
|
|
5082
5090
|
})), /* @__PURE__ */ React8.createElement("div", { className: "studio-account" }, /* @__PURE__ */ React8.createElement("span", { className: "studio-user-mark vx-local-user-avatar", "aria-hidden": "true" }), /* @__PURE__ */ React8.createElement("span", null, "Local User"))),
|
|
5083
|
-
/* @__PURE__ */ React8.createElement("main", { className: "studio-content" }, /* @__PURE__ */ React8.createElement("
|
|
5084
|
-
|
|
5091
|
+
/* @__PURE__ */ React8.createElement("main", { className: "studio-content" }, /* @__PURE__ */ React8.createElement("header", { className: "studio-mobile-nav" }, mobileNavigation && /* @__PURE__ */ React8.createElement(
|
|
5092
|
+
Menu,
|
|
5085
5093
|
{
|
|
5086
|
-
label: "Workspace
|
|
5087
|
-
|
|
5088
|
-
|
|
5094
|
+
label: "Workspace navigation",
|
|
5095
|
+
triggerIcon: "menu",
|
|
5096
|
+
floating: true,
|
|
5097
|
+
items: [
|
|
5089
5098
|
{ value: "home", label: "Home" },
|
|
5090
5099
|
...pageSources.map((page) => ({ value: page, label: workspaceLabels[page] })),
|
|
5091
5100
|
...visibleProjects.filter(({ available }) => available).map((project) => ({
|
|
@@ -5093,15 +5102,20 @@ function GlobalWorkbench({ client }) {
|
|
|
5093
5102
|
label: projectSummaries.get(project.id)?.name ?? project.name
|
|
5094
5103
|
})),
|
|
5095
5104
|
...menu?.tabs.map(({ id, label }) => ({ value: "view:" + id, label })) ?? []
|
|
5096
|
-
],
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5105
|
+
].map(({ value, label }) => ({
|
|
5106
|
+
id: value,
|
|
5107
|
+
label,
|
|
5108
|
+
icon: value === (route.project ? menu && menu.active !== null && menu.active !== menu.overview && menu.tabs.some((tab) => tab.id === menu.active) ? "view:" + menu.active : "project:" + route.project.id : route.home ? "home" : route.page) ? "check" : void 0,
|
|
5109
|
+
onSelect: () => {
|
|
5110
|
+
if (value.startsWith("project:")) openProject(value.slice("project:".length));
|
|
5111
|
+
else if (value.startsWith("view:"))
|
|
5112
|
+
openProjectView(value.slice("view:".length));
|
|
5113
|
+
else if (value === "home") goHome();
|
|
5114
|
+
else go(value);
|
|
5115
|
+
}
|
|
5116
|
+
}))
|
|
5103
5117
|
}
|
|
5104
|
-
)), !projectEntry && (!route.project || catalogReady || failure) && !route.home && /* @__PURE__ */ React8.createElement("header", { className: "studio-page-header" }, /* @__PURE__ */ React8.createElement("h1", null, route.project ? "Project workbench" : route.page === "assets" ? "Assets" : pageTitles[route.page]), route.project ? /* @__PURE__ */ React8.createElement(
|
|
5118
|
+
), /* @__PURE__ */ React8.createElement("strong", null, "VIVIX STUDIO")), !projectEntry && (!route.project || catalogReady || failure) && !route.home && /* @__PURE__ */ React8.createElement("header", { className: "studio-page-header" }, /* @__PURE__ */ React8.createElement("h1", null, route.project ? "Project workbench" : route.page === "assets" ? "Assets" : pageTitles[route.page]), route.project ? /* @__PURE__ */ React8.createElement(
|
|
5105
5119
|
Button,
|
|
5106
5120
|
{
|
|
5107
5121
|
label: "Back to workspace",
|
package/dist/client.css
CHANGED
|
@@ -4573,6 +4573,13 @@ body:has(.studio-global) {
|
|
|
4573
4573
|
}
|
|
4574
4574
|
.studio-mobile-nav {
|
|
4575
4575
|
display: none;
|
|
4576
|
+
align-items: center;
|
|
4577
|
+
flex: none;
|
|
4578
|
+
min-height: 40px;
|
|
4579
|
+
gap: var(--vx-space-8);
|
|
4580
|
+
}
|
|
4581
|
+
.studio-mobile-nav > strong {
|
|
4582
|
+
font: var(--vx-typography-inter-16-semi-bold);
|
|
4576
4583
|
}
|
|
4577
4584
|
.studio-page-panel {
|
|
4578
4585
|
display: flex;
|
|
@@ -5142,7 +5149,7 @@ body:has(.studio-global) {
|
|
|
5142
5149
|
font: var(--vx-typography-inter-14-semi-bold);
|
|
5143
5150
|
}
|
|
5144
5151
|
}
|
|
5145
|
-
@media (max-width:
|
|
5152
|
+
@media (max-width: 500px) {
|
|
5146
5153
|
.studio-shell {
|
|
5147
5154
|
min-height: 100dvh;
|
|
5148
5155
|
height: auto;
|
|
@@ -5152,10 +5159,10 @@ body:has(.studio-global) {
|
|
|
5152
5159
|
}
|
|
5153
5160
|
.studio-content {
|
|
5154
5161
|
overflow: visible;
|
|
5155
|
-
padding: 8px
|
|
5162
|
+
padding: 8px;
|
|
5156
5163
|
}
|
|
5157
5164
|
.studio-mobile-nav {
|
|
5158
|
-
display:
|
|
5165
|
+
display: flex;
|
|
5159
5166
|
}
|
|
5160
5167
|
.studio-page-header {
|
|
5161
5168
|
padding-left: 4px;
|
|
@@ -5289,12 +5296,12 @@ body:has(.studio-global) {
|
|
|
5289
5296
|
color: var(--vx-text-primary);
|
|
5290
5297
|
font: var(--vx-typography-inter-14-medium);
|
|
5291
5298
|
}
|
|
5292
|
-
@media (max-width:
|
|
5299
|
+
@media (max-width: 500px) {
|
|
5293
5300
|
.studio-shell[data-project] {
|
|
5294
5301
|
height: 100dvh;
|
|
5295
5302
|
}
|
|
5296
5303
|
.studio-shell[data-project] .studio-mobile-nav {
|
|
5297
|
-
padding: 8px
|
|
5304
|
+
padding: 8px;
|
|
5298
5305
|
}
|
|
5299
5306
|
}
|
|
5300
5307
|
.studio-sidebar nav > button > .studio-nav-icon {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivix-labs/studio-workbench",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/archiver": "7.0.0",
|
|
48
|
-
"@vivix-labs/
|
|
49
|
-
"@vivix-labs/
|
|
48
|
+
"@vivix-labs/project-studio": "1.0.0-beta.17",
|
|
49
|
+
"@vivix-labs/ui-system": "1.0.0-beta.17"
|
|
50
50
|
},
|
|
51
51
|
"vivixStudio": {
|
|
52
52
|
"runtimePlugins": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@vivix-labs/short-drama-storyboard": "1.0.0-beta.17",
|
|
68
68
|
"@vivix-labs/short-drama-workbench": "1.0.0-beta.17",
|
|
69
69
|
"@vivix-labs/studio-asset-list": "1.0.0-beta.17",
|
|
70
|
-
"@vivix-labs/studio-workbench": "1.0.0-beta.
|
|
70
|
+
"@vivix-labs/studio-workbench": "1.0.0-beta.19",
|
|
71
71
|
"@vivix-labs/vivix-api": "1.0.0-beta.17",
|
|
72
72
|
"@vivix-labs/ads-workbench": "1.0.0-beta.17",
|
|
73
73
|
"@vivix-labs/chat-components": "1.0.0-beta.17",
|
package/presets/table.json
CHANGED