@absolutejs/voice 0.0.22-beta.47 → 0.0.22-beta.49
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/angular/index.js +4 -2
- package/dist/appKit.d.ts +44 -0
- package/dist/client/index.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1178 -1006
- package/dist/react/index.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/index.js +4 -2
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -1442,7 +1442,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
1442
1442
|
}
|
|
1443
1443
|
listeners.clear();
|
|
1444
1444
|
};
|
|
1445
|
-
if (options.intervalMs && options.intervalMs > 0) {
|
|
1445
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
1446
1446
|
timer = setInterval(() => {
|
|
1447
1447
|
refresh().catch(() => {});
|
|
1448
1448
|
}, options.intervalMs);
|
package/dist/svelte/index.js
CHANGED
|
@@ -726,7 +726,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
726
726
|
}
|
|
727
727
|
listeners.clear();
|
|
728
728
|
};
|
|
729
|
-
if (options.intervalMs && options.intervalMs > 0) {
|
|
729
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
730
730
|
timer = setInterval(() => {
|
|
731
731
|
refresh().catch(() => {});
|
|
732
732
|
}, options.intervalMs);
|
package/dist/vue/index.js
CHANGED
|
@@ -1491,7 +1491,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
1491
1491
|
}
|
|
1492
1492
|
listeners.clear();
|
|
1493
1493
|
};
|
|
1494
|
-
if (options.intervalMs && options.intervalMs > 0) {
|
|
1494
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
1495
1495
|
timer = setInterval(() => {
|
|
1496
1496
|
refresh().catch(() => {});
|
|
1497
1497
|
}, options.intervalMs);
|
|
@@ -1526,7 +1526,9 @@ var useVoiceWorkflowStatus = (path = "/evals/scenarios/json", options = {}) => {
|
|
|
1526
1526
|
};
|
|
1527
1527
|
const unsubscribe = store.subscribe(sync);
|
|
1528
1528
|
sync();
|
|
1529
|
-
|
|
1529
|
+
if (typeof window !== "undefined") {
|
|
1530
|
+
store.refresh().catch(() => {});
|
|
1531
|
+
}
|
|
1530
1532
|
onUnmounted4(() => {
|
|
1531
1533
|
unsubscribe();
|
|
1532
1534
|
store.close();
|