Skip to content

feat(htmltocomponents) - add example and expose props#993

Open
gabrielseco wants to merge 14 commits intomainfrom
add-example-and-expose-prop
Open

feat(htmltocomponents) - add example and expose props#993
gabrielseco wants to merge 14 commits intomainfrom
add-example-and-expose-prop

Conversation

@gabrielseco
Copy link
Copy Markdown
Collaborator

@gabrielseco gabrielseco commented May 4, 2026

Note

Medium Risk
Medium risk because it introduces a new extension point that affects how HTML descriptions are rendered and passed through context, with potential XSS/formatting impact if consumers misuse sanitization.

Overview
Adds a new optional transformHtmlToComponents prop to RemoteFlows and propagates it through FormFieldsProvider/context so field descriptions can be rendered via partner-provided HTML-to-React transformations.

Updates the example app to demonstrate the feature: installs dompurify + html-react-parser, adds a transformHtmlToComponents utility that sanitizes and converts <details data-component="Accordion"> into a custom Accordion, and updates form components to render descriptions via fieldData.transformHtml when provided.

Reviewed by Cursor Bugbot for commit 9a9f18e. Bugbot is set up for automated code reviews on this repo. Configure here.

@gabrielseco gabrielseco self-assigned this May 4, 2026
@gabrielseco gabrielseco changed the base branch from main to fields-transformer May 4, 2026 09:53
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 212.12 kB 211.94 kB +176 B (+0.1%) 🔴
Total (raw) 573.64 kB 572.97 kB +671 B (+0.1%) 🔴
CSS (gzip) 20.83 kB 20.69 kB +142 B (+0.7%) 🔴
CSS (raw) 108.49 kB 107.95 kB +538 B (+0.5%) 🔴

Size Limits

  • ✅ Total gzipped: 212.12 kB / 250 kB (84.8%)
  • ✅ Total raw: 573.64 kB / 600 kB (95.6%)
  • ✅ CSS gzipped: 20.83 kB / 25 kB (83.3%)

Largest Files (Top 5)

  1. chunk-BQ5YDUNS.js - 13.99 kB (0 B (0%))
  2. styles.css - 10.42 kB (+71 B (+0.7%))
  3. index.css - 10.42 kB (+71 B (+0.7%))
  4. index.js - 6.11 kB (+34 B (+0.6%))
  5. chunk-TNQKP2XT.js - 5.89 kB (0 B (0%))
View All Files (313 total)
File Size (gzip) Change
chunk-BQ5YDUNS.js 13.99 kB 0 B (0%)
styles.css 10.42 kB +71 B (+0.7%)
index.css 10.42 kB +71 B (+0.7%)
index.js 6.11 kB +34 B (+0.6%)
chunk-TNQKP2XT.js 5.89 kB 0 B (0%)
chunk-L23RCIGG.js 5.81 kB 0 B (0%)
chunk-53H4OKEF.js 4.63 kB 0 B (0%)
chunk-67T5LPKP.js 4.29 kB 0 B (0%)
chunk-RDKCWDI2.js 4.06 kB 0 B (0%)
chunk-ENXNZM2A.js 3.73 kB 0 B (0%)

✅ Bundle size check passed

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

📊 Coverage Report

✅ Coverage increased! 🎉

Metric Current Previous Change Status
Lines 90.01% 90.00% 0%
Statements 89.68% 89.68% 0%
Functions 87.71% 87.70% +0.01% 🟢
Branches 80.00% 80.00% 0%

Detailed Breakdown

Lines Coverage
  • Covered: 3676 / 4084
  • Coverage: 90.01%
  • Change: 0% (2 lines)
Statements Coverage
  • Covered: 3737 / 4167
  • Coverage: 89.68%
  • Change: 0% (2 statements)
Functions Coverage
  • Covered: 999 / 1139
  • Coverage: 87.71%
  • Change: +0.01% (1 functions)
Branches Coverage
  • Covered: 2268 / 2835
  • Coverage: 80.00%
  • Change: 0% (0 branches)

✅ Coverage check passed

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-9tcfzt4nv-remotecom.vercel.app
Latest Commit:9a9f18e
Inspect:View deployment

Deployed with vercel-action

@gabrielseco gabrielseco changed the title Add example and expose prop feat(htmltocomponents) - add example and expose props May 4, 2026
Base automatically changed from fields-transformer to main May 5, 2026 11:42
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.

1 participant