@signalsandsorcery/plugin-sdk 2.35.6 → 2.35.7
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/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7017,6 +7017,14 @@ function useGeneratorPanelCore({
|
|
|
7017
7017
|
...adapter.createTrackOptions()
|
|
7018
7018
|
});
|
|
7019
7019
|
setTracks((prev) => [...prev, newTrackState(handle)]);
|
|
7020
|
+
if (adapter.onTrackCreated) {
|
|
7021
|
+
try {
|
|
7022
|
+
await adapter.onTrackCreated(handle, { activeSceneId, trackDataKey });
|
|
7023
|
+
} catch (err) {
|
|
7024
|
+
console.warn(`[${logTag}] onTrackCreated failed (non-fatal):`, err);
|
|
7025
|
+
}
|
|
7026
|
+
await loadTracks(true);
|
|
7027
|
+
}
|
|
7020
7028
|
onExpandSelf?.();
|
|
7021
7029
|
setTimeout(() => {
|
|
7022
7030
|
const inputs = document.querySelectorAll(
|
|
@@ -7033,7 +7041,7 @@ function useGeneratorPanelCore({
|
|
|
7033
7041
|
isAddingTrackRef.current = false;
|
|
7034
7042
|
setIsAddingTrack(false);
|
|
7035
7043
|
}
|
|
7036
|
-
}, [host, adapter, identity, activeSceneId, isConnected, isAuthenticated, tracks.length, onExpandSelf]);
|
|
7044
|
+
}, [host, adapter, identity, activeSceneId, isConnected, isAuthenticated, tracks.length, onExpandSelf, loadTracks, logTag]);
|
|
7037
7045
|
const handlePortTrack = useCallback16(
|
|
7038
7046
|
async (sel) => {
|
|
7039
7047
|
if (!activeSceneId) {
|
|
@@ -7073,6 +7081,12 @@ function useGeneratorPanelCore({
|
|
|
7073
7081
|
});
|
|
7074
7082
|
}
|
|
7075
7083
|
await adapter.applyPortedTrackSound(handle, sel.role);
|
|
7084
|
+
if (adapter.onTrackCreated) {
|
|
7085
|
+
try {
|
|
7086
|
+
await adapter.onTrackCreated(handle, { activeSceneId, trackDataKey });
|
|
7087
|
+
} catch {
|
|
7088
|
+
}
|
|
7089
|
+
}
|
|
7076
7090
|
host.showToast(
|
|
7077
7091
|
"success",
|
|
7078
7092
|
`Imported to ${identity.familyKey}`,
|
|
@@ -8873,7 +8887,7 @@ Your previous ensemble had these problems \u2014 fix them while keeping everythi
|
|
|
8873
8887
|
}
|
|
8874
8888
|
|
|
8875
8889
|
// src/constants/sdk-version.ts
|
|
8876
|
-
var PLUGIN_SDK_VERSION = "2.
|
|
8890
|
+
var PLUGIN_SDK_VERSION = "2.43.0";
|
|
8877
8891
|
|
|
8878
8892
|
// src/utils/format-concurrent-tracks.ts
|
|
8879
8893
|
function formatConcurrentTracks(ctx) {
|