Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-grab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
"devDependencies": {
"@babel/core": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"solid-js": "^1.9.10",
"@playwright/test": "^1.40.0",
"@tailwindcss/cli": "^4.1.17",
"@types/babel__core": "^7.20.5",
Expand All @@ -111,6 +110,7 @@
"babel-preset-solid": "^1.9.10",
"concurrently": "^9.1.2",
"expect-sdk": "0.0.0-canary-20260405095424",
"solid-js": "^1.9.10",
"tailwindcss": "^4.1.0",
"tsx": "^4.21.0"
},
Expand Down
13 changes: 11 additions & 2 deletions packages/react-grab/src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ import { commentPlugin } from "./plugins/comment.js";
import { openPlugin } from "./plugins/open.js";
import { copyHtmlPlugin } from "./plugins/copy-html.js";
import { copyStylesPlugin } from "./plugins/copy-styles.js";
import { propsEditorPlugin } from "./plugins/props-editor.js";
import {
freezeAnimations,
freezeAllAnimations,
Expand All @@ -151,7 +152,14 @@ import { logRecoverableError } from "../utils/log-recoverable-error.js";
import { lockViewportZoom } from "../utils/lock-viewport-zoom.js";
import { getNearestEdge } from "../utils/get-nearest-edge.js";

const builtInPlugins = [copyPlugin, commentPlugin, copyHtmlPlugin, copyStylesPlugin, openPlugin];
const builtInPlugins = [
copyPlugin,
commentPlugin,
copyHtmlPlugin,
copyStylesPlugin,
openPlugin,
propsEditorPlugin,
];

interface CopyWithLabelOptions {
element: Element;
Expand Down Expand Up @@ -231,7 +239,8 @@ export const init = (rawOptions?: Options): ReactGrabAPI => {
const isDragging = createMemo(
() =>
store.current.state === "active" &&
(store.current.phase === "dragging-select" || store.current.phase === "dragging-reposition"),
(store.current.phase === "dragging-select" ||
store.current.phase === "dragging-reposition"),
);
const isDragRepositioning = createMemo(
() => store.current.state === "active" && store.current.phase === "dragging-reposition",
Expand Down
Loading
Loading