Skip to content

Commit

Permalink
chore: move debugger frame state hook to debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkvasnicak committed Nov 19, 2024
1 parent b2d7f22 commit 49c1f7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/debugger/app/components/cast-composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import { FrameUI } from "./frame-ui";
import { useToast } from "@/components/ui/use-toast";
import { ToastAction } from "@radix-ui/react-toast";
import Link from "next/link";
import { useDebuggerFrameState } from "@frames.js/render/unstable-use-debugger-frame-state";
import { useFarcasterIdentity } from "../hooks/useFarcasterIdentity";
import { useAccount } from "wagmi";
import { FrameStackDone } from "@frames.js/render/unstable-types";
import { useDebuggerFrameState } from "../hooks/useDebuggerFrameState";

type CastComposerProps = {
composerAction: Partial<ComposerActionResponse>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type {
FrameState,
FrameStateAPI,
UseFrameStateOptions,
} from "./unstable-types";
import { useFrameState } from "./unstable-use-frame-state";
} from "@frames.js/render/unstable-types";
import { useFrameState } from "@frames.js/render/unstable-use-frame-state";

function computeDurationInSeconds(start: Date, end: Date): number {
return Number(((end.getTime() - start.getTime()) / 1000).toFixed(2));
Expand Down
10 changes: 0 additions & 10 deletions packages/render/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,6 @@
"default": "./dist/use-composer-action.cjs"
}
},
"./unstable-use-debugger-frame-state": {
"import": {
"types": "./dist/unstable-use-debugger-frame-state.d.ts",
"default": "./dist/unstable-use-debugger-frame-state.js"
},
"require": {
"types": "./dist/unstable-use-debugger-frame-state.d.cts",
"default": "./dist/unstable-use-debugger-frame-state.cjs"
}
},
"./unstable-use-frame-state": {
"import": {
"types": "./dist/unstable-use-frame-state.d.ts",
Expand Down

0 comments on commit 49c1f7e

Please sign in to comment.