Webhook destination controls for contact forms #27

Merged
jknapp merged 3 commits from feat/form-webhook-delivery into main 2026-08-11 00:42:03 +00:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit 071f3447fd - Show all commits
@@ -35,4 +35,10 @@ describe('HtmlStylePanel', () => {
expect(container.textContent).not.toContain('Padding'); expect(container.textContent).not.toContain('Padding');
expect(container.textContent).not.toContain('Border Radius'); expect(container.textContent).not.toContain('Border Radius');
}); });
test('renders the security advisory', () => {
render(<HtmlStylePanel selectedId="n1" nodeProps={{ code: '<p>x</p>', style: {} }} />);
expect(container.textContent).toContain('Use this block with care.');
expect(container.textContent).toContain('Scripts and event handlers are stripped');
});
}); });
@@ -25,6 +25,13 @@ export const HtmlStylePanel: React.FC<{ selectedId: string; nodeProps: Record<st
Style this block inside your own markup a wrapper set here would show Style this block inside your own markup a wrapper set here would show
in the editor but not on the published page. in the editor but not on the published page.
</p> </p>
<p style={{ fontSize: 10, color: 'var(--color-text-dim)', lineHeight: 1.4, padding: '0 2px' }}>
<strong>Use this block with care.</strong> It renders your markup as-is
on the published site. Scripts and event handlers are stripped
automatically, but anything that survives forms, iframes, images
can still send data to wherever it points. Only paste code you
understand or trust.
</p>
</> </>
); );
}; };