@hwp-editor/react 1.0.0 → 1.1.0
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/README.md +14 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
# @hwp-editor/react
|
|
2
2
|
|
|
3
3
|
Embeddable React UI for Korean HWP/HWPX documents, built on
|
|
4
|
-
[`@hwp-editor/core`](
|
|
4
|
+
[`@hwp-editor/core`](https://www.npmjs.com/package/@hwp-editor/core). All document work (read/render/edit/compose/
|
|
5
5
|
validate) goes through the `HwpEngine` interface — this package contains UI
|
|
6
6
|
only.
|
|
7
7
|
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
pnpm add @hwp-editor/react
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`@hwp-editor/core` arrives as a peer, deduped to a single copy; you do not name
|
|
15
|
+
it unless your own source imports from it. React 18 or 19 is a peer too.
|
|
16
|
+
|
|
17
|
+
The stylesheet is **not** auto-injected. An install that skips the import below
|
|
18
|
+
produces an editor that loads and renders unstyled, which no import check
|
|
19
|
+
notices.
|
|
20
|
+
|
|
8
21
|
## Usage
|
|
9
22
|
|
|
10
23
|
```tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hwp-editor/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Embeddable React UI for hwp-editor: page canvas, segment inspector, table grid, fields panel, compose panel. Scoped CSS, themeable via CSS variables only.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "^18 || ^19",
|
|
42
42
|
"react-dom": "^18 || ^19",
|
|
43
|
-
"@hwp-editor/core": "^1.
|
|
43
|
+
"@hwp-editor/core": "^1.1.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tsup": "^8.5.0",
|
|
55
55
|
"typescript": "~5.9.2",
|
|
56
56
|
"vitest": "^3.2.4",
|
|
57
|
-
"@hwp-editor/core": "1.
|
|
57
|
+
"@hwp-editor/core": "1.1.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsup",
|