Merged
Conversation
기존에는 노드의 최상위의 스타일만 정의하는 구조였는데, 이제는 노드 내부에 여러개로 이루어진 하위 요소들의 스타일도 구조화해서 정의할 수 있도록 수정완료.
기존의 스타일 인터페이스에서 해당하는 Key들을 모두 포함해야 했었는데, partial로 선택적으로 받도록 수정 완료
팀원들을위한 모노레포 가이드 작성 완료
상위 노드객체를 받아서 노드의 내부 요소들에 해당하는 스타일을 적용하고 CSSProperties 객체로 변환하는 역할을 수행한다.
노드 렌더러가 렌더링한 노드 컴포넌트를 감싸서 유저가 자유롭게 위치 변경 가능하게 해준다.
전체 레이아웃 사이즈, 위치는 상위 wrapper컴포넌트에게 위임하고, 해당 노드 렌더러 컴포넌트는 컨텐츠 렌더링, 내부 요소 렌더링에 집중하도록 구현
className을 style객체에서 직접 참조하도록 수정 -> 인라인 스타일로 변경할때 className을 제외하고 추출하기때문에 className은 style객체에서 직접 참조해야한다. style추출할때 processNodeStyles함수 사용하도록 수정완료
버튼 노드가 할 수 있는 일들을 정의한 타입입니다.
특정 행동을 트리거하는 버튼 노드가 타겟 노드에게 동적으로 변하도록 도와주는 중개소 역할인 context를 구현했습니다. 직접적으로 getElementById를 통해 변화시키면 리액트의 라이프 사이클을 무시하므로 context를 사용했습니다.
DB에는 js코드를 그대로 저장할 수 없기에, 객체로 된 행동 요구사항을 js코드로 전환해주는 역할을 합니다.
모달을 렌더링 하는 렌더러 컴포넌트 구현 완료. 에디터 화면에서 추가로 DND를 통해 하위 노드를 받을 수 있도록 children props를 받도록 설정했습니다.
액션 객체를 알맞은 액션 핸들러 로직으로 변경한뒤 동작하도록 구현 완료
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.
📌 개요
웹 빌더 에디터의 핵심이 되는 노드 컴포넌트 시스템과 이를 화면에 그리는 렌더러 를 구현한 내용을 담고 있습니다. 또한, 팀 협업을 위한 가이드 문서를 추가했습니다.
🛠️ 주요 작업 내용
1. UI 컴포넌트 및 렌더러 구현 (packages/ui)
2. 타입 시스템 정립 (/types)
3. 인터랙션 & 로직
4. 협업 문서