Skip to content

feat: add presetContent for template builder#2856

Merged
caio-pizzol merged 2 commits intomainfrom
artem/template-builder-presetcontent
Apr 26, 2026
Merged

feat: add presetContent for template builder#2856
caio-pizzol merged 2 commits intomainfrom
artem/template-builder-presetcontent

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour commented Apr 17, 2026

Linear: SD-2548

Added presetContent support to Template Builder field definitions for block fields, wiring it into the existing insertStructuredContentBlock flow (no new insertion path).

Block fields now insert preset HTML/JSON when provided, while block fields without presets keep the existing text fallback; inline fields continue to ignore presetContent.

Included insertion-flow tests, updated package/solution docs, and added demo examples (Sample Table with visible borders and Sample List).

@artem-harbour artem-harbour self-assigned this Apr 17, 2026
@mintlify
Copy link
Copy Markdown

mintlify Bot commented Apr 17, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
SuperDoc 🟢 Ready View Preview Apr 17, 2026, 3:45 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@linear
Copy link
Copy Markdown

linear Bot commented Apr 21, 2026

@caio-pizzol
Copy link
Copy Markdown
Contributor

@artem-harbour lgtm.

one out-of-diff thought: handleSelectExisting (around packages/template-builder/src/index.tsx:589) doesn't forward presetContent when re-linking an existing field. intentional? worth a one-line doc note either way.

@caio-pizzol caio-pizzol enabled auto-merge April 26, 2026 10:42
@caio-pizzol caio-pizzol disabled auto-merge April 26, 2026 10:52
@caio-pizzol caio-pizzol merged commit 1d3d77a into main Apr 26, 2026
5 checks passed
@caio-pizzol caio-pizzol deleted the artem/template-builder-presetcontent branch April 26, 2026 10:52
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 26, 2026

🎉 This PR is included in template-builder v1.7.0-next.1

The release is available on GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants