Skip to content

Export underlying implementation - #21

Merged
smoores-dev merged 2 commits into
handlewithcarecollective:mainfrom
Magic-Marker:export-transform
Aug 28, 2025
Merged

Export underlying implementation#21
smoores-dev merged 2 commits into
handlewithcarecollective:mainfrom
Magic-Marker:export-transform

Conversation

@VV-EE

@VV-EE VV-EE commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/index.ts
export { withSuggestChanges } from "./withSuggestChanges.js";
export {
withSuggestChanges,
transformToSuggestionTransaction,

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.

Can you say more about the use case for this? I'm wary of committing this to the public API for the library unnecessarily — it means that any change to this in the future could be a breaking change, and I haven't really thought about its interface in those terms.

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.

We're using this on the backend and not just a plugin. The use case is that we're initialising an editor state, creating a transaction from it, do a lot of actions on that state and then before applying it we transform it with transformToSuggestionTransaction.

This way we don't have to think about interactions between suggestion mode and our actions during the transformations.

@smoores-dev
smoores-dev merged commit cff0b1d into handlewithcarecollective:main Aug 28, 2025
2 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.

3 participants