Skip to content

refactor(link): extract link inline tool into standalone package - #161

Merged
Reversean merged 1 commit into
mainfrom
refactor/extract-link-tool
Jul 13, 2026
Merged

refactor(link): extract link inline tool into standalone package#161
Reversean merged 1 commit into
mainfrom
refactor/extract-link-tool

Conversation

@Reversean

Copy link
Copy Markdown
Contributor

Summary

  • Move the built-in Link inline tool out of @editorjs/core into its own publishable package, @editorjs/link, completing the split of all four built-in tools started with Paragraph.
  • Pure relocation — the tool's source has no relative imports into core internals, so behavior is unchanged. core now depends on the new package as a workspace dependency, and no longer needs @editorjs/dom or @codexteam/icons directly (only the extracted tool packages use them now).

Stacked on #160 (italic).

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Unit Tests

Package Coverage Delta
@editorjs/core 89.55% 0% ⚪️
@editorjs/dom-adapters N/A N/A
@editorjs/model N/A N/A
@editorjs/collaboration-manager N/A N/A
@editorjs/model-types N/A N/A

Mutation Tests

Package Mutation score Dashboard URL
@editorjs/core 0.00% 🔴 Dashboard

@Reversean
Reversean force-pushed the refactor/extract-italic-tool branch from a934032 to ee7f6ad Compare July 2, 2026 17:26
@Reversean
Reversean force-pushed the refactor/extract-link-tool branch from ddc6983 to 300592c Compare July 2, 2026 17:26
Comment thread README.md Outdated
Comment on lines +25 to +28
| [`@editorjs/paragraph`](packages/tools/paragraph) | Built-in Paragraph block tool |
| [`@editorjs/bold`](packages/tools/bold) | Built-in Bold inline tool |
| [`@editorjs/italic`](packages/tools/italic) | Built-in Italic inline tool |
| [`@editorjs/link`](packages/tools/link) | Built-in Link inline tool |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Probably better to add a separate section for tools/plugins

@Reversean Reversean Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, moved all tool entries (including #158 #159 #160) in additional section.

Please, check this out.

@Reversean
Reversean force-pushed the refactor/extract-italic-tool branch from ee7f6ad to 72864d1 Compare July 6, 2026 20:12
@Reversean
Reversean force-pushed the refactor/extract-link-tool branch from 300592c to 5cfdc1c Compare July 6, 2026 20:14
Comment thread packages/tools/link/package.json Outdated
@@ -0,0 +1,29 @@
{
"name": "@editorjs/link",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we already have this package, and it is not inline-link, but embedded link block

https://github.com/editor-js/link/blob/master/package.json

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Renamed package name into @editorjs/inline-link.

@Reversean
Reversean requested a review from neSpecc July 13, 2026 21:11
@Reversean
Reversean force-pushed the refactor/extract-italic-tool branch from 72864d1 to fc084e7 Compare July 13, 2026 21:52
@Reversean
Reversean force-pushed the refactor/extract-link-tool branch from c10eb3d to a53e7bf Compare July 13, 2026 21:52
@Reversean
Reversean force-pushed the refactor/extract-italic-tool branch from fc084e7 to 5a3071a Compare July 13, 2026 21:53
@Reversean
Reversean force-pushed the refactor/extract-link-tool branch from a53e7bf to 01d481c Compare July 13, 2026 21:53
Base automatically changed from refactor/extract-italic-tool to main July 13, 2026 21:58
Move the built-in Link inline tool out of @editorjs/core into its own
publishable package, @editorjs/inline-link, completing the split of all four built-in tools (paragraph, bold, italic, link) into independently versionable packages under packages/tools.

This was the last tool living in core's internal tools folder, so the
now-empty tools/internal directory is removed along with core's
dependencies on @editorjs/dom and @codexteam/icons — both were only
ever used by the tools that have now moved out.
@Reversean
Reversean force-pushed the refactor/extract-link-tool branch from 01d481c to 9022c99 Compare July 13, 2026 21:58
@Reversean
Reversean enabled auto-merge July 13, 2026 21:58
Comment on lines +12 to +20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Run ESLint check
uses: ./.github/actions/lint
with:
package-name: "@editorjs/inline-link"

build:
Comment on lines +21 to +27
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build the package
uses: ./.github/actions/build
with:
package-name: "@editorjs/inline-link"
@Reversean
Reversean added this pull request to the merge queue Jul 13, 2026
Merged via the queue into main with commit ee2f6fe Jul 13, 2026
51 checks passed
@Reversean
Reversean deleted the refactor/extract-link-tool branch July 13, 2026 22:03
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.

4 participants