Skip to content

refactor(diffs): rename Editor to Edit / @pierre/diffs/editor to @pierre/diffs/edit#977

Open
mdo wants to merge 2 commits into
beta-1.3from
mdo/rn-editor-edit
Open

refactor(diffs): rename Editor to Edit / @pierre/diffs/editor to @pierre/diffs/edit#977
mdo wants to merge 2 commits into
beta-1.3from
mdo/rn-editor-edit

Conversation

@mdo

@mdo mdo commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Rebrand the "editor mode" surface to "edit mode". Rename the public entry point @pierre/diffs/editor -> @pierre/diffs/edit, the Editor class -> Edit, and sweep all edit-mode identifiers (EditorOptions, EditorSelection, DiffsEditor, createEditor, getEditor, useEditor, EditProvider editor prop, etc.) to their Edit* equivalents across src, tests, apps, and docs.

  • Move packages/diffs/src/editor/ -> src/edit/ (editor.ts/.css -> edit.ts/.css) and update package.json exports (./editor -> ./edit)
  • Rename test/editor*.test.ts -> edit*.test.ts and update e2e fixtures
  • Rename docs Editor page -> Edit (docs/Editor -> docs/Edit, EditorDemo -> EditDemo, LiveEditor/LiveDiffEditor examples) and refresh prose
  • Regenerate the AUI homepage mock-data snapshot from updated sources

Preserves external theme-spec tokens (editor.background, editorCursor., ...), internal DOM/CSS contracts (data-editor-, --diffs-editor-* vars, diffs-editor-icon-* sprite IDs), and generic IDE/text-editor references.

…rre/diffs/edit

Rebrand the "editor mode" surface to "edit mode". Rename the public entry
point @pierre/diffs/editor -> @pierre/diffs/edit, the Editor class -> Edit,
and sweep all edit-mode identifiers (EditorOptions, EditorSelection,
DiffsEditor, createEditor, getEditor, useEditor, EditProvider `editor` prop,
etc.) to their Edit* equivalents across src, tests, apps, and docs.

- Move packages/diffs/src/editor/ -> src/edit/ (editor.ts/.css -> edit.ts/.css)
  and update package.json exports (./editor -> ./edit)
- Rename test/editor*.test.ts -> edit*.test.ts and update e2e fixtures
- Rename docs Editor page -> Edit (docs/Editor -> docs/Edit, EditorDemo ->
  EditDemo, LiveEditor/LiveDiffEditor examples) and refresh prose
- Regenerate the AUI homepage mock-data snapshot from updated sources

Preserves external theme-spec tokens (editor.background, editorCursor.*, ...),
internal DOM/CSS contracts (data-editor-*, --diffs-editor-* vars,
diffs-editor-icon-* sprite IDs), and generic IDE/text-editor references.
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
pierre-docs-diffs Ready Ready Preview Jul 13, 2026 10:17pm
pierre-docs-diffshub Ready Ready Preview Jul 13, 2026 10:17pm
pierre-docs-trees Ready Ready Preview Jul 13, 2026 10:17pm
pierrejs-diff-demo Ready Ready Preview Jul 13, 2026 10:17pm

Request Review

@mdo mdo requested a review from necolas July 13, 2026 21:32
@amadeus

amadeus commented Jul 13, 2026

Copy link
Copy Markdown
Member

I wonder if we should wait till right before the stable release to do this, that way to reduce potential bug fix thrash and stuff?

@mdo

mdo commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Fine by me.

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.

2 participants