Skip to content

Update dependencies in pnpm-lock.yaml and refactor context handling in react-grab. Replace 'bippy/source' with 'element-source' for improved source resolution and add new utility functions for better component name checks.#238

Merged
aidenybai merged 1 commit intomainfrom
el-source
Mar 11, 2026

Conversation

@aidenybai
Copy link
Copy Markdown
Owner

@aidenybai aidenybai commented Mar 11, 2026

Note

Medium Risk
Medium risk because this rewires how react-grab resolves component names and source file/line info (including Next.js handling), which can affect selection metadata, stack context output, and editor-open behavior across frameworks.

Overview
react-grab now delegates React stack/source resolution to the new element-source dependency, removing the in-repo logic for stack parsing, Next.js server-frame symbolication, and source-frame selection.

Core selection flows (element-selected event payloads, selection source updates, context menu file info, and ReactGrabAPI.getSource) are updated to use resolveSource/resolveStack/formatStack, and component-name filtering is simplified; the old is-capitalized helper is removed. Lockfile changes primarily reflect the new dependency and related dependency graph updates.

Written by Cursor Bugbot for commit 39c5465. This will update automatically on new commits. Configure here.


Summary by cubic

Refactor react-grab to use element-source for stack and source resolution, replacing bippy/source. This improves file/line/component detection (incl. Next.js), reduces code, and simplifies the API.

  • Refactors

    • Swapped custom stack parsing/symbolication and cache with element-source (resolveSource, resolveStack, formatStack, getReactStack, resolveComponentName).
    • Updated context and UI flows to use resolveSource for file/line/component and formatStack for stack context.
    • Re-exported helpers to keep API stable: checkIsNextProject, checkIsSourceComponentName, getStack, getNearestComponentName; removed is-capitalized.
    • Removed Next.js server-frame symbolication and debug stack traversal (large code cleanup).
  • Dependencies

    • Added element-source@^0.0.3 to packages/react-grab; continued using bippy.
    • Updated pnpm-lock.yaml.

Written for commit 39c5465. Summary will update on new commits.

…n react-grab. Replace 'bippy/source' with 'element-source' for improved source resolution and add new utility functions for better component name checks.
@pullfrog
Copy link
Copy Markdown
Contributor

pullfrog bot commented Mar 11, 2026

This run croaked 😵

The workflow encountered an error before any progress could be reported. Please check the link below for details.

Pullfrog  | Rerun failed job ➔View workflow run | Triggered by Pullfrogpullfrog.com𝕏

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-grab-website Ready Ready Preview, Comment Mar 11, 2026 11:23am

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 11, 2026

Open in StackBlitz

@react-grab/cli

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/cli@238

grab

npm i https://pkg.pr.new/aidenybai/react-grab/grab@238

@react-grab/amp

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/amp@238

@react-grab/claude-code

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/claude-code@238

@react-grab/codex

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/codex@238

@react-grab/copilot

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/copilot@238

@react-grab/cursor

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/cursor@238

@react-grab/droid

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/droid@238

@react-grab/gemini

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/gemini@238

@react-grab/opencode

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/opencode@238

react-grab

npm i https://pkg.pr.new/aidenybai/react-grab@238

@react-grab/relay

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/relay@238

@react-grab/utils

npm i https://pkg.pr.new/aidenybai/react-grab/@react-grab/utils@238

commit: 62353e8

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

@aidenybai aidenybai merged commit a9db390 into main Mar 11, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant