Add editor exportHwp API#411
Closed
ggoban wants to merge 1 commit into
Closed
Conversation
edwardkim
added a commit
that referenced
this pull request
Apr 28, 2026
edwardkim
added a commit
that referenced
this pull request
Apr 28, 2026
edwardkim
added a commit
that referenced
this pull request
Apr 28, 2026
Owner
|
완료. `devel` 에 cherry-pick (작성자 attribution 보존) 으로 머지됨 (commit `3f24051`). 머지 commit작성자 attribution 보존:
검증
정황본 PR 이 추가한 `editor.exportHwp()` 는 이슈 #377 (Export API 가이드) 의 자연스러운 후속입니다. 위키 Export API 사용 가이드 에 `@rhwp/core` 의 `exportHwp()` 흐름은 정리됐지만, iframe wrapper (`@rhwp/editor`) 에서는 message channel 경유 명시 API 가 없었던 정황을 정확히 짚으셨습니다. WASM 빌드 정황PR 본문에 명시하신 "`rhwp-studio` 의 `npm run build` 가 WASM alias 부재로 중단" 정황은 본 저장소의 표준 빌드 절차 (`docker compose --env-file .env.docker run --rm wasm`) 로 `pkg/` 생성 후 가능합니다. 메인테이너가 환경 빌드를 통해 검증 완료했습니다 (`mydocs/manual/dev_environment_guide.md` 참고). 좋은 기여 감사합니다. 첫 PR 환영합니다. |
This was referenced Apr 29, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 요약
@rhwp/core에는 HWP 바이너리를 내보낼 수 있는exportHwp()기능이 있지만, iframe 기반@rhwp/editorwrapper 에서는 편집 중인 문서 bytes를 직접 가져올 수 있는 공개 API가 없었습니다.이 PR은
rhwp-studio의rhwp-requestmessage handler에exportHwp요청을 추가하고,@rhwp/editor에editor.exportHwp(): Promise<Uint8Array>wrapper API를 추가합니다.주요 변경 사항
rhwp-studio에서wasm.exportHwp()결과를 message response로 반환@rhwp/editor의RhwpEditor.exportHwp()추가exportHwp()추가npm/editor/README.md에 HWP bytes 다운로드 예제 추가관련 이슈
테스트
cargo test통과cargo clippy -- -D warnings통과참고:
rhwp-studio의npm run build는 현재 로컬 checkout에서 생성된 WASM alias 파일@wasm/rhwp.js가 없어 실행이 중단되었습니다. 변경 범위는 JS/TS wrapper 및 message handler이며, Rust core는 수정하지 않았습니다.