Repository navigation
feat: setFieldValue and its tools take an optional animate flag to fill text at once - #63
Merged
Merged
Conversation
…mp keeps the format check green
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The editor's
SET_FIELD_VALUEnow accepts an optionalanimateflag (live on simplepdf.com). Text values are typed out character by character by default, which makes headless or batch filling slow;animate: falsesets them at once and replies right away. This re-syncs the SDK's contract pin to the live manifest so every SDK surface exposes it.Changes
embed-api.jsonre-pinned to the live manifest (npm run fix:contract) andsrc/generated/*regenerated:setFieldValuetakesanimate?: booleanonembed.actions, the agentic tools (/tools,/ai-sdk,/tanstack-ai) and thesimplepdf_embed_set_field_valueWebMCP toolbad_request:no_document_loadedon the operations that need a document,loadDocumentreplying once the document is ready (newbad_request:failed_to_load_document), and rewordedevent_not_allowed/ origin-allowlist messagesetc/*.api.md) re-blessedanimatein theset_field_valueinput schema@simplepdf/embed(React and web follow through the internal dependency bump)Notes
test:types,test(118 passed),check:size,check:exports,check:api,check:contractfor@simplepdf/embed; Reacttest:types,test,check:apiafter rebuildingembedthenreact.