@norskvideo/norsk-studio-alpha 1.27.0-2026-01-20-1d5557a7 → 1.27.0-2026-01-21-4a2f8130
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/client/info.js +192 -231
- package/client/style.css +0 -102
- package/lib/processor.hardSourceSwitch/_gen/schema.d.ts +3 -3
- package/lib/processor.hardSourceSwitch/_gen/schema.js +4 -4
- package/lib/processor.hardSourceSwitch/_gen/schema.js.map +1 -1
- package/lib/processor.hardSourceSwitch/_gen/types.d.ts +24 -47
- package/lib/processor.hardSourceSwitch/_gen/zod.js +14 -15
- package/lib/processor.hardSourceSwitch/_gen/zod.js.map +1 -1
- package/lib/processor.hardSourceSwitch/info.d.ts +0 -3
- package/lib/processor.hardSourceSwitch/info.js +0 -2
- package/lib/processor.hardSourceSwitch/info.js.map +1 -1
- package/lib/processor.hardSourceSwitch/runtime.d.ts +6 -1
- package/lib/processor.hardSourceSwitch/runtime.js +33 -35
- package/lib/processor.hardSourceSwitch/runtime.js.map +1 -1
- package/lib/processor.hardSourceSwitch/types.yaml +27 -40
- package/lib/test/hard-source-switch.js +64 -60
- package/lib/test/hard-source-switch.js.map +1 -1
- package/package.json +4 -4
- package/lib/processor.hardSourceSwitch/fullscreen.d.ts +0 -3
- package/lib/processor.hardSourceSwitch/fullscreen.js +0 -40
- package/lib/processor.hardSourceSwitch/fullscreen.js.map +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = FullscreenView;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
function FullscreenView({ state, config: _config, sendCommand, }) {
|
|
7
|
-
const handleSwitch = (0, react_1.useCallback)((sourceName) => {
|
|
8
|
-
sendCommand({ type: "switch-to-source", source: sourceName });
|
|
9
|
-
}, [sendCommand]);
|
|
10
|
-
const handlePriorityChange = (0, react_1.useCallback)((newOrder) => {
|
|
11
|
-
sendCommand({ type: "set-priority-order", sources: newOrder });
|
|
12
|
-
}, [sendCommand]);
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "h-full w-full flex flex-col p-4 bg-gray-900 text-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex-1 flex gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex-1", children: [(0, jsx_runtime_1.jsx)("h3", { className: "text-lg font-semibold mb-3", children: "Sources" }), (0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4", children: state.availableSources.map((source) => {
|
|
14
|
-
if (!source.sourceName) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
const sourceName = source.sourceName;
|
|
18
|
-
const isActive = state.activeSource === sourceName;
|
|
19
|
-
const previewUrl = state.sourcePreviews?.[sourceName];
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `
|
|
21
|
-
relative border-2 rounded-lg overflow-hidden
|
|
22
|
-
${isActive ? "border-green-500" : "border-gray-600"}
|
|
23
|
-
`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "aspect-video bg-gray-800 relative", children: [previewUrl ? ((0, jsx_runtime_1.jsx)("img", { src: previewUrl, alt: `${sourceName} preview`, className: "w-full h-full object-cover" })) : ((0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center h-full text-gray-500", children: "Loading..." })), isActive && ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-2 right-2 bg-green-500 text-white px-2 py-1 rounded text-xs font-bold", children: "ACTIVE" }))] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-3", children: [(0, jsx_runtime_1.jsx)("h4", { className: "font-medium mb-2", children: sourceName }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-end", children: !isActive && ((0, jsx_runtime_1.jsx)("button", { onClick: () => handleSwitch(sourceName), className: "px-3 py-1 bg-blue-600 hover:bg-blue-700 rounded text-sm transition", children: "Make Active" })) })] })] }, sourceName));
|
|
24
|
-
}) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-96 flex flex-col gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h3", { className: "text-lg font-semibold mb-3", children: "Output" }), (0, jsx_runtime_1.jsxs)("div", { className: "border-2 border-blue-500 rounded-lg overflow-hidden", children: [(0, jsx_runtime_1.jsx)("div", { className: "aspect-video bg-gray-800", children: state.outputPreview ? ((0, jsx_runtime_1.jsx)("img", { src: state.outputPreview, alt: "Output preview", className: "w-full h-full object-cover" })) : ((0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center h-full text-gray-500", children: "No output" })) }), (0, jsx_runtime_1.jsx)("div", { className: "p-3 bg-gray-800", children: (0, jsx_runtime_1.jsxs)("p", { className: "text-sm text-gray-400", children: ["Active Source:", " ", (0, jsx_runtime_1.jsx)("span", { className: "font-semibold text-white", children: state.activeSource || "None" })] }) })] })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h3", { className: "text-lg font-semibold mb-3", children: "Priority Order" }), (0, jsx_runtime_1.jsx)("div", { className: "space-y-2", children: (state.sourcePriority || []).map((source, index) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between bg-gray-800 p-2 rounded", children: [(0, jsx_runtime_1.jsxs)("span", { className: "text-sm", children: [index + 1, ": ", source] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-1", children: [index > 0 && ((0, jsx_runtime_1.jsx)("button", { onClick: () => {
|
|
25
|
-
const newOrder = [...(state.sourcePriority || [])];
|
|
26
|
-
[newOrder[index], newOrder[index - 1]] = [
|
|
27
|
-
newOrder[index - 1],
|
|
28
|
-
newOrder[index],
|
|
29
|
-
];
|
|
30
|
-
handlePriorityChange(newOrder);
|
|
31
|
-
}, className: "px-2 py-1 bg-gray-700 hover:bg-gray-600 rounded text-xs", title: "Move up", children: "\u2191" })), index < (state.sourcePriority?.length || 0) - 1 && ((0, jsx_runtime_1.jsx)("button", { onClick: () => {
|
|
32
|
-
const newOrder = [...(state.sourcePriority || [])];
|
|
33
|
-
[newOrder[index], newOrder[index + 1]] = [
|
|
34
|
-
newOrder[index + 1],
|
|
35
|
-
newOrder[index],
|
|
36
|
-
];
|
|
37
|
-
handlePriorityChange(newOrder);
|
|
38
|
-
}, className: "px-2 py-1 bg-gray-700 hover:bg-gray-600 rounded text-xs", title: "Move down", children: "\u2193" }))] })] }, source))) })] })] })] }), state.formatWarnings && state.formatWarnings.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { className: "mt-4 bg-yellow-900/50 border border-yellow-600 rounded-lg p-3", children: [(0, jsx_runtime_1.jsxs)("h4", { className: "text-yellow-400 font-semibold mb-2 flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { children: "\u26A0\uFE0F" }), "Format Warnings"] }), (0, jsx_runtime_1.jsx)("div", { className: "space-y-1 max-h-32 overflow-y-auto", children: state.formatWarnings.map((warning, idx) => ((0, jsx_runtime_1.jsxs)("div", { className: "text-sm text-yellow-200", children: ["\u2022 ", warning] }, idx))) })] }))] }));
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=fullscreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fullscreen.js","sourceRoot":"","sources":["../../../src/processor.hardSourceSwitch/fullscreen.tsx"],"names":[],"mappings":";;AAoBA,iCA8LC;;AA5MD,iCAAoC;AAcpC,SAAwB,cAAc,CAAC,EACrC,KAAK,EACL,MAAM,EAAE,OAAO,EACf,WAAW,GAKZ;IACC,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CAAC,UAAkB,EAAE,EAAE;QAErB,WAAW,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;IAChE,CAAC,EACD,CAAC,WAAW,CAAC,CACd,CA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