mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-25 13:13:04 +00:00
* fix(diffs): replace iconMarkup string with ToolbarIconName enum to eliminate XSS sink Replace createToolbarButton's iconMarkup: string parameter with icon: ToolbarIconName, a union of known icon names. SVG generation moves into a sealed toolbarIconSvg map so innerHTML only receives compile-time-known strings. The old splitIcon/unifiedIcon/ wrapIcon/backgroundIcon/themeIcon functions are removed; callers now pass icon name literals instead of raw markup strings. Closes #83918 * fix(diffs): remove jsdom dependency from viewer-client test Use source file string analysis instead of jsdom to avoid missing @types/jsdom declaration error in check-test-types CI job. * fix(diffs): restore wrap icon arrow segment in ToolbarIconName map The wrap-on and wrap-off SVG paths were missing the original wrap arrow segment (M14 6h-4V5h4.5...). Restore the exact original path data and rebuild the viewer runtime bundle. * build(diffs): refresh viewer runtime after rebase --------- Co-authored-by: tanshanshan <tanshanshan@users.noreply.github.com> Co-authored-by: Vincent Koc <vincentkoc@ieee.org>