261117_02_ENH: kri-editor 이미지맵 미리보기 오버레이·smsFrameClassName 추가, React Compiler lint 및 SonarQube 지적 사항 수정

This commit is contained in:
2026-11-17 09:45:04 +09:00
parent 8625593ac9
commit 1269c58ac5
9 changed files with 297 additions and 46 deletions

View File

@@ -29,6 +29,13 @@ When implementing or changing frontend UI, use this order:
- `colors`, `allowCustom`, `allowClear`, `disabled`, `placeholder`, `className`, and `aria-label` are optional. A disabled palette never opens.
- Color helpers (`parseHexColor`, `formatHexColor`, `normalizeHexColor`, `isLightHexColor`) ship in `color-palette/color.ts`. Render stored colors as solid backgrounds without extra opacity so they match the palette.
### KriEditor Preview Options
- With `enableImageMap` and `showPreview`, the WYSIWYG preview overlays `<area>` regions (rect/circle/poly); without `enableImageMap` nothing changes.
- `smsFrameClassName?: string` appends classes to the SMS preview phone frame (for example, overriding the default `h-[600px]`).
- `renderToolbarEnd` is rendered through an internal slot component; when the prop is provided, the toolbar separator is always shown even if the function returns `null`.
- Installed copies may diverge locally; compare against the registry source before reinstalling with overwrite.
### KriEditor SMS Preview
- `changeSmsType` reports `SMS | LMS | MMS`. Update consumer callbacks to handle `MMS`; this widens the previous callback contract.