Skip to content

Commit

Permalink
fix: 디펜던시 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnlee committed Apr 9, 2024
1 parent 1faea53 commit 35ae830
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
8 changes: 4 additions & 4 deletions packages/parser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
*/

// FIXME: (@hanlee) export 고치기
export { Control } from './models/controls'
export { ShapeControls } from './models/controls/shapes'
export { type Control } from './models/controls'
export { type ShapeControls } from './models/controls/shapes'
export { default as Section } from './models/section'
export { default as Paragraph } from './models/paragraph'
export { default as LineSegment } from './models/lineSegment'
export { default as ShapePointer } from './models/shapePointer'
export { CharType } from './models/char'
export { default as TableControl, TableColumnOption } from './models/controls/table'
export { default as TableControl, type TableColumnOption } from './models/controls/table'
export { default as ParagraphList } from './models/paragraphList'
export { CommonCtrlID } from './constants/ctrlID'
export { default as HWPDocument } from './models/document'
export { isTable, isShape, isPicture } from './utils/controlUtil'
export { RGB } from './types/color'
export { type RGB } from './types/color'

export * from './parse'
6 changes: 3 additions & 3 deletions packages/parser/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
import {
read,
find,
CFB$Blob,
CFB$Container,
CFB$ParsingOptions,
type CFB$Blob,
type CFB$Container,
type CFB$ParsingOptions,
} from 'cfb'
import { inflate } from 'pako'

Expand Down
3 changes: 1 addition & 2 deletions packages/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"types": "./build/index.d.ts"
},
"devDependencies": {
"@hwp.js/parser": "workspace:*",
"cfb": "^1.2.0"
"@hwp.js/parser": "workspace:*"
},
"peerDependencies": {
"@hwp.js/parser": "^0.0.3"
Expand Down
5 changes: 2 additions & 3 deletions packages/viewer/src/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
isPicture,
RGB,
} from '@hwp.js/parser'
import { CFB$ParsingOptions } from 'cfb/types'

import parsePage from './parsePage'
import Header from './header'
Expand Down Expand Up @@ -81,9 +80,9 @@ export class HWPViewer {

private header: Header | null = null

constructor(container: HTMLElement, data: Uint8Array, option: CFB$ParsingOptions = { type: 'binary' }) {
constructor(container: HTMLElement, data: Uint8Array) {
this.container = container
this.hwpDocument = parsePage(parse(data, option))
this.hwpDocument = parsePage(parse(data))
this.draw()
}

Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 35ae830

Please sign in to comment.