diff --git a/src/components/Edit/index.tsx b/src/components/Edit/index.tsx index aa6c165c..c117753b 100644 --- a/src/components/Edit/index.tsx +++ b/src/components/Edit/index.tsx @@ -39,7 +39,7 @@ import { useGetActionOptions, useCreateDefinition, useCreateTypeDef, - useEvalFull, + useEvalBoundedInterp, Level, useUndo, useRedo, @@ -250,10 +250,10 @@ const AppNoError = ({ const [evalTarget, setEvalTarget] = useState(); const evalResult = useInvalidateOnChange( - useEvalFull( + useEvalBoundedInterp( p.sessionId, { qualifiedModule: p.module.modname, baseName: evalTarget || "" }, - { stepLimit: 300 }, + { timeoutMicroseconds: 100000 }, { query: { enabled: !!evalTarget } } ), [p.module] @@ -344,7 +344,7 @@ const AppNoError = ({ // Note: these offsets are rather arbitrary. initialPosition={{ x: 10, y: 10 }} moduleName={p.module.modname} - evalFull={{ + evalBoundedInterp={{ request: setEvalTarget, ...(evalResult.isSuccess ? { result: evalResult.data } : {}), }} diff --git a/src/components/PictureInPicture/index.tsx b/src/components/PictureInPicture/index.tsx index d400e227..6cb4daff 100644 --- a/src/components/PictureInPicture/index.tsx +++ b/src/components/PictureInPicture/index.tsx @@ -11,16 +11,16 @@ import classNames from "classnames"; import { useRef, useState } from "react"; import { useDraggable, DragOptions } from "@neodrag/react"; import { Tab } from "@headlessui/react"; -import type { EvalFullProps } from "@/components/EvalFull"; +import type { EvalBoundedInterpProps } from "@/components/EvalBoundedInterp"; import type { SelectionInfoProps } from "@/components/SelectionInfo"; -import { EvalFull, SelectionInfo } from "@/components"; +import { EvalBoundedInterp, SelectionInfo } from "@/components"; export type PictureInPictureTab = "Eval" | "Info"; export type PictureInPictureProps = { initialTab: PictureInPictureTab; initialPosition: { x: number; y: number }; -} & EvalFullProps & +} & EvalBoundedInterpProps & SelectionInfoProps; const tabClasses = (selected: boolean, extra?: string) => @@ -96,7 +96,7 @@ export const PictureInPicture = (p: PictureInPictureProps): JSX.Element => {
- +