@iyulab/editor-components 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.4] - 2026-10-06
|
|
4
|
+
|
|
5
|
+
### Documentation
|
|
6
|
+
|
|
7
|
+
- **Keyboard exit** (WCAG 2.1.2) is now stated and tested: in `u-text-editor` Tab moves on to the next control; in `u-code-editor` Tab indents and **`Ctrl+M`** (macOS: `Ctrl+Shift+M`) switches Tab to moving the focus — the method a screen hosting a code editor should tell its users. README accessibility table and the skill references (`code-editor.md` · `text-editor.md`).
|
|
8
|
+
|
|
3
9
|
## [0.6.3] - 2026-10-06
|
|
4
10
|
|
|
5
11
|
### Documentation
|
package/README.md
CHANGED
|
@@ -131,6 +131,7 @@ Quill.js 기반 리치 텍스트(WYSIWYG) 에디터 컴포넌트입니다.
|
|
|
131
131
|
| 성공 기준 | 보장 | 어디서 재는가 |
|
|
132
132
|
|---|---|---|
|
|
133
133
|
| SC 2.5.8 타깃 크기(최소) | `u-text-editor` 의 포인터 타깃이 24×24 CSS px 이상이거나 간격 예외(중심 간 24px)를 충족하고, 그 좌표에서 실제로 눌린다 — Quill 이 그리는 툴바(선택기가 열린 상태·색 견본·링크 툴팁 포함)도 잰다 | `tests/browser/target-size.browser.test.ts`(실제 크로미움) |
|
|
134
|
+
| SC 2.1.2 키보드 함정 없음 | `u-text-editor` 안의 `Tab` 은 다음 컨트롤로 나간다(탭 문자를 넣지 않는다). `u-code-editor` 안의 `Tab` 은 들여쓰기이고, **`Ctrl+M`(macOS: `Ctrl+Shift+M`)** 이 Monaco 의 «Tab 으로 포커스 이동» 을 켜고 끈다 — 그 뒤의 `Tab` 은 편집기를 떠난다. 코드 편집기를 쓰는 화면은 이 방법을 사용자에게 알릴 것(SC 2.1.2 의 조건) | `tests/browser/keyboard-exit.browser.test.ts` |
|
|
134
135
|
| SC 2.1.1 키보드(포인터 커서 검사) | 포인터 커서를 보이면서 상호작용 요소가 아닌 것이 없다 — Quill 이 `href` 없는 앵커로 그리는 링크 툴팁의 편집·제거도 버튼 역할로 포커스를 받고 Enter/Space 로 눌린다 | `tests/browser/target-size.browser.test.ts` · `tests/browser/text-editor-link-tooltip-keyboard.browser.test.ts` |
|
|
135
136
|
|
|
136
137
|
`u-code-editor` 는 스스로 렌더하는 조작부가 없어(액션은 소비자가 `header-actions` 슬롯으로 넣는다) 이 게이트의 대상이 아닙니다 — 슬롯에 넣는 버튼의 크기는 넣는 쪽이 정합니다.
|
package/package.json
CHANGED
|
@@ -64,6 +64,14 @@ other unchanged.
|
|
|
64
64
|
|-------|--------|--------------|
|
|
65
65
|
| `change` | none (plain `Event`) | Fired on user edits (`Monaco.onDidChangeModelContent`). Not fired for programmatic `value` assignment while Monaco already holds that value. Read the new content from `value` |
|
|
66
66
|
|
|
67
|
+
## Keyboard
|
|
68
|
+
|
|
69
|
+
`Tab` inside the editor indents — a code editor needs it — so `Tab` does not move the focus on its own.
|
|
70
|
+
**`Ctrl+M`** (macOS: `Ctrl+Shift+M`) toggles Monaco's "Tab moves focus" mode; after it, `Tab` / `Shift+Tab`
|
|
71
|
+
leave the editor. That is the keyboard way out (WCAG 2.1.2 allows a non-standard exit when the user is told
|
|
72
|
+
the method), so a screen that hosts a code editor should say it near the editor — for example in its help text.
|
|
73
|
+
`Tab` from the control before the editor enters it.
|
|
74
|
+
|
|
67
75
|
## CSS Custom Properties
|
|
68
76
|
|
|
69
77
|
None. Layout is plain flexbox — the header keeps its own height and the editing area takes the rest — so there is no layout variable to override (see [Sizing](#sizing) for how the element is sized), and colours come from Monaco's own theme (`vs-light`/`vs-dark`) rather than this library's `--u-*` design tokens.
|
|
@@ -78,6 +78,11 @@ with 0.5.0 — see the CHANGELOG.
|
|
|
78
78
|
|-------|--------|--------------|
|
|
79
79
|
| `change` | `{ html: string, text: string, delta: QuillDelta }` | Fired only for user edits (Quill `source === 'user'`) — composed so it crosses the shadow boundary |
|
|
80
80
|
|
|
81
|
+
## Keyboard
|
|
82
|
+
|
|
83
|
+
`Tab` inside the editor moves on to the next control — it does not insert a tab character, so the
|
|
84
|
+
keyboard is never trapped in the editor (WCAG 2.1.2).
|
|
85
|
+
|
|
81
86
|
## CSS Custom Properties
|
|
82
87
|
|
|
83
88
|
`UTextEditor` doesn't declare any custom properties of its own — its styles read the shared
|