@iyulab/editor-components 0.6.2 → 0.6.3

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.3] - 2026-10-06
4
+
5
+ ### Documentation
6
+
7
+ - README **Quick Start** — a first page with `u-text-editor` (its module only, so Monaco stays out of the bundle) that
8
+ reads the typed `change` detail. Checked against the published package in a clean Vite consumer: build, strict `tsc`
9
+ and a headless render.
10
+
3
11
  ## [0.6.2] - 2026-10-06
4
12
 
5
13
  ### Fixed
package/README.md CHANGED
@@ -21,6 +21,33 @@ React 래퍼는 `/react` 서브패스로 제공됩니다:
21
21
  import { UCodeEditor, UTextEditor } from '@iyulab/editor-components/react';
22
22
  ```
23
23
 
24
+ ## Quick Start
25
+
26
+ 첫 페이지 — 리치 텍스트 에디터 하나와 그 내용 읽기(Vite 기준, `index.html` 이 `src/main.ts` 를 모듈로 싣는다).
27
+ `u-text-editor` 만 쓰면 그 모듈만 불러 Monaco 를 번들에 넣지 않는다.
28
+
29
+ ```bash
30
+ npm install @iyulab/editor-components @iyulab/components
31
+ ```
32
+
33
+ ```ts
34
+ // src/main.ts
35
+ import '@iyulab/components/styles/tokens.css';
36
+ import '@iyulab/editor-components/dist/components/text-editor/UTextEditor.js';
37
+
38
+ const editor = document.createElement('u-text-editor');
39
+ editor.label = 'Note';
40
+ editor.value = '<p>Hello <strong>editor</strong>.</p>';
41
+ editor.style.height = '320px'; // 호스트 상자가 높이를 정한다 — 아래 「크기」
42
+
43
+ const preview = document.createElement('pre');
44
+ editor.addEventListener('change', (e) => {
45
+ preview.textContent = e.detail.text; // e.detail: { html, text, delta } — 타입이 붙는다
46
+ });
47
+
48
+ document.body.append(editor, preview);
49
+ ```
50
+
24
51
  ## 포함된 컴포넌트
25
52
 
26
53
  ### `u-code-editor` (UCodeEditor)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/editor-components",
3
3
  "description": "various editor components by iyulab",
4
- "version": "0.6.2",
4
+ "version": "0.6.3",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "web-components",