Skip to content

Commit 49c1f7e

Browse files
chore: move debugger frame state hook to debugger
1 parent b2d7f22 commit 49c1f7e

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

packages/debugger/app/components/cast-composer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import { FrameUI } from "./frame-ui";
1818
import { useToast } from "@/components/ui/use-toast";
1919
import { ToastAction } from "@radix-ui/react-toast";
2020
import Link from "next/link";
21-
import { useDebuggerFrameState } from "@frames.js/render/unstable-use-debugger-frame-state";
2221
import { useFarcasterIdentity } from "../hooks/useFarcasterIdentity";
2322
import { useAccount } from "wagmi";
2423
import { FrameStackDone } from "@frames.js/render/unstable-types";
24+
import { useDebuggerFrameState } from "../hooks/useDebuggerFrameState";
2525

2626
type CastComposerProps = {
2727
composerAction: Partial<ComposerActionResponse>;

packages/render/src/unstable-use-debugger-frame-state.ts renamed to packages/debugger/app/hooks/useDebuggerFrameState.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type {
22
FrameState,
33
FrameStateAPI,
44
UseFrameStateOptions,
5-
} from "./unstable-types";
6-
import { useFrameState } from "./unstable-use-frame-state";
5+
} from "@frames.js/render/unstable-types";
6+
import { useFrameState } from "@frames.js/render/unstable-use-frame-state";
77

88
function computeDurationInSeconds(start: Date, end: Date): number {
99
return Number(((end.getTime() - start.getTime()) / 1000).toFixed(2));

packages/render/package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,6 @@
140140
"default": "./dist/use-composer-action.cjs"
141141
}
142142
},
143-
"./unstable-use-debugger-frame-state": {
144-
"import": {
145-
"types": "./dist/unstable-use-debugger-frame-state.d.ts",
146-
"default": "./dist/unstable-use-debugger-frame-state.js"
147-
},
148-
"require": {
149-
"types": "./dist/unstable-use-debugger-frame-state.d.cts",
150-
"default": "./dist/unstable-use-debugger-frame-state.cjs"
151-
}
152-
},
153143
"./unstable-use-frame-state": {
154144
"import": {
155145
"types": "./dist/unstable-use-frame-state.d.ts",

0 commit comments

Comments
 (0)