@flowgram.ai/variable-core 0.5.6 → 0.5.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/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -2598,7 +2598,7 @@ import { useEffect } from "react";
|
|
|
2598
2598
|
import { useRefresh } from "@flowgram.ai/core";
|
|
2599
2599
|
function useScopeAvailable(params) {
|
|
2600
2600
|
const { autoRefresh = true } = params || {};
|
|
2601
|
-
const scope = useCurrentScope();
|
|
2601
|
+
const scope = useCurrentScope({ strict: true });
|
|
2602
2602
|
const refresh = useRefresh();
|
|
2603
2603
|
useEffect(() => {
|
|
2604
2604
|
if (!autoRefresh) {
|
|
@@ -2651,7 +2651,7 @@ function useOutputVariables() {
|
|
|
2651
2651
|
});
|
|
2652
2652
|
return () => disposable.dispose();
|
|
2653
2653
|
}, []);
|
|
2654
|
-
return scope
|
|
2654
|
+
return scope?.output.variables || [];
|
|
2655
2655
|
}
|
|
2656
2656
|
export {
|
|
2657
2657
|
ASTFactory,
|