@norskvideo/norsk-studio 1.27.0-2025-05-22-5168ed86 → 1.27.0-2025-05-26-a443eb84
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/lib/client/creator.js +1 -1
- package/lib/client/creator.js.map +1 -1
- package/lib/client/jsx/components/studio-sidebar.js +4 -4
- package/lib/client/jsx/components/studio-sidebar.js.map +1 -1
- package/lib/client/session.d.ts +1 -2
- package/lib/client/session.js +2 -6
- package/lib/client/session.js.map +1 -1
- package/lib/extension/runtime-types.js +294 -67
- package/lib/extension/runtime-types.js.map +1 -1
- package/lib/server/session.d.ts +1 -1
- package/lib/server/session.js +4 -4
- package/lib/server/session.js.map +1 -1
- package/lib/test/_util/sinks.d.ts +2 -0
- package/lib/test/_util/sinks.js.map +1 -1
- package/lib/test/preview-endpoints.d.ts +1 -0
- package/lib/test/preview-endpoints.js +423 -0
- package/lib/test/preview-endpoints.js.map +1 -0
- package/lib/types/stream-mapping.yaml +8 -2
- package/lib/types.d.ts +2 -0
- package/package.json +2 -2
- package/ui/index.js +8 -11
package/ui/index.js
CHANGED
|
@@ -212298,7 +212298,7 @@ var StudioSidebar = ({ library, session, rete, onToolDragStart, onSubscriptionHi
|
|
|
212298
212298
|
session.onLiveSessionStarted(onLiveSessionStarted);
|
|
212299
212299
|
session.onLiveStatusChanged(onLiveStatusChanged);
|
|
212300
212300
|
session.onLiveSessionEnded(onLiveSessionEnded);
|
|
212301
|
-
session.onAlert
|
|
212301
|
+
session.onAlert = onAlert;
|
|
212302
212302
|
const unsubscribeTheme = session.onToggleTheme(() => {
|
|
212303
212303
|
setTheme((prev) => prev === "dark" ? "light" : "dark");
|
|
212304
212304
|
});
|
|
@@ -212312,14 +212312,14 @@ var StudioSidebar = ({ library, session, rete, onToolDragStart, onSubscriptionHi
|
|
|
212312
212312
|
unsubscribePreconnect();
|
|
212313
212313
|
unsubscribeTheme();
|
|
212314
212314
|
};
|
|
212315
|
-
}, [session, theme, setTheme]);
|
|
212315
|
+
}, [session, theme, setTheme, addAlert]);
|
|
212316
212316
|
(0, import_react50.useEffect)(() => {
|
|
212317
212317
|
if (state !== "library") {
|
|
212318
212318
|
setSearch("");
|
|
212319
212319
|
}
|
|
212320
212320
|
}, [state]);
|
|
212321
|
-
const onAlert = (alert) => {
|
|
212322
|
-
addAlert({ message: alert.message, type: alert.level });
|
|
212321
|
+
const onAlert = (id, alert) => {
|
|
212322
|
+
addAlert({ message: `${id} raised an alert`, description: alert.message, type: alert.level });
|
|
212323
212323
|
};
|
|
212324
212324
|
const onSelectionChanged = () => {
|
|
212325
212325
|
const subscriptions = rete.selectedConnections();
|
|
@@ -230046,6 +230046,7 @@ var Session = class {
|
|
|
230046
230046
|
cpuInfoListeners = /* @__PURE__ */ new Set();
|
|
230047
230047
|
toggleThemeListeners = /* @__PURE__ */ new Set();
|
|
230048
230048
|
autoLayoutListeners = /* @__PURE__ */ new Set();
|
|
230049
|
+
onAlert;
|
|
230049
230050
|
constructor(library, description, env) {
|
|
230050
230051
|
this.library = library;
|
|
230051
230052
|
this.description = description;
|
|
@@ -230058,6 +230059,8 @@ var Session = class {
|
|
|
230058
230059
|
this.latestCpuInfo = (_info) => {
|
|
230059
230060
|
};
|
|
230060
230061
|
this._eventProxy = new componentevents_default(this);
|
|
230062
|
+
this.onAlert = (_id, _alert) => {
|
|
230063
|
+
};
|
|
230061
230064
|
}
|
|
230062
230065
|
onLiveStatusChanged(h) {
|
|
230063
230066
|
this.events.on("onLiveStatusChanged", h);
|
|
@@ -230248,12 +230251,6 @@ var Session = class {
|
|
|
230248
230251
|
this.autoLayoutListeners.forEach((listener) => listener());
|
|
230249
230252
|
this.events.emit("onAutoLayout", {});
|
|
230250
230253
|
}
|
|
230251
|
-
onAlert(h) {
|
|
230252
|
-
this.events.on("onAlert", h);
|
|
230253
|
-
}
|
|
230254
|
-
raiseAlert(id, alert) {
|
|
230255
|
-
this.events.emit("onAlert", { id, alert });
|
|
230256
|
-
}
|
|
230257
230254
|
};
|
|
230258
230255
|
var session_default = Session;
|
|
230259
230256
|
|
|
@@ -230718,7 +230715,7 @@ var Creator = class {
|
|
|
230718
230715
|
this.session.updatePreconnect(msg.preconnect);
|
|
230719
230716
|
break;
|
|
230720
230717
|
case "component-alert":
|
|
230721
|
-
this.session.
|
|
230718
|
+
this.session.onAlert(msg.id, msg.alert);
|
|
230722
230719
|
break;
|
|
230723
230720
|
default:
|
|
230724
230721
|
return assertUnreachable(msgType);
|