v7.0.0 release

This commit is contained in:
HeuJung committed 2026-07-01 10:30:32 +09:00
1 parent 0e7fa04b03
commit c4ea9a6cd1
3582 files changed
+626189 -160151

No files matched your search

@@ -17,6 +17,12 @@ export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectE
searchable?: boolean;
/** 검색 input placeholder */
searchPlaceholder?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용). Select 는 커스텀 드롭다운 루트에
* 개별 data-editor-* 키를 spread 해야 선택/편집이 닿는다(커스텀 루트
* passthrough). basic 컴포넌트라 `{...props}` 로 DOM 표준 속성(id 등)도 함께 흐른다.
*/
editorAttrs?: Record<string, unknown>;
}
/**
* 커스텀 Select 컴포넌트
@@ -37,7 +37,5 @@ export { Section, type SectionProps } from './Section';
export { Svg, type SvgProps } from './Svg';
export { Icon, type IconProps } from './Icon';
export { Code, type CodeProps } from './Code';
export { Footer, type FooterProps } from './Footer';
export { Header, type HeaderProps } from './Header';
export { Hr, type HrProps } from './Hr';
export { IconName, type IconStyle, type IconSize } from './IconTypes';
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* 아바타 크기 타입
*/
@@ -39,6 +40,14 @@ export interface AvatarProps {
isWithdrawn?: boolean;
/** 비회원 여부 (author.is_guest보다 우선) @default false */
isGuest?: boolean;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Avatar 컴포넌트
@@ -1,15 +1,4 @@
/**
* AvatarUploader 컴포넌트
*
* 프로필 아바타 이미지 업로드를 위한 컴포넌트입니다.
* - 원형 아바타 UI
* - 파일 선택 시 즉시 업로드
* - 업로드/삭제 API 지원
* - 업로드 오류 표시
* - 삭제 확인 다이얼로그
*
* @module composite/AvatarUploader
*/
import { EditorAttrs } from '../../types';
export interface AvatarUploaderProps {
/** 현재 아바타 URL */
src?: string;
@@ -62,6 +51,12 @@ export interface AvatarUploaderProps {
deleteSuccessActions?: Array<Record<string, any>>;
/** 삭제 실패 시 실행할 액션 배열 */
deleteErrorActions?: Array<Record<string, any>>;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
export declare function AvatarUploader({ src, fallbackText, size, uploadEndpoint, deleteEndpoint, onUploadSuccess, onUploadError, onDeleteSuccess, onDeleteError, showDeleteButton, accept, maxSize, className, uploadButtonText, deleteButtonText, readOnly, confirmDelete, deleteConfirmMessage, confirmUpload, uploadConfirmMessage, uploadSuccessActions, uploadErrorActions, deleteSuccessActions, deleteErrorActions, }: AvatarUploaderProps): import("react/jsx-runtime").JSX.Element;
export declare function AvatarUploader({ src, fallbackText, size, uploadEndpoint, deleteEndpoint, onUploadSuccess, onUploadError, onDeleteSuccess, onDeleteError, showDeleteButton, accept, maxSize, className, uploadButtonText, deleteButtonText, readOnly, confirmDelete, deleteConfirmMessage, confirmUpload, uploadConfirmMessage, uploadSuccessActions, uploadErrorActions, deleteSuccessActions, deleteErrorActions, id, editorAttrs, }: AvatarUploaderProps): import("react/jsx-runtime").JSX.Element;
export default AvatarUploader;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface ExpandableContentProps {
/**
* 접힌 상태의 최대 높이 (px)
@@ -21,6 +22,14 @@ export interface ExpandableContentProps {
* children 렌더링
*/
children?: React.ReactNode;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* ExpandableContent 컴포넌트
@@ -1,8 +1,4 @@
/**
* FileUploader 타입 정의
*
* @module composite/FileUploader/types
*/
import { EditorAttrs } from '../../../types';
export interface Attachment {
id: number;
hash: string;
@@ -146,6 +142,10 @@ export interface FileUploaderProps {
/** 순서 변경 API (기본값: /api/attachments/reorder) */
reorder?: string;
};
/** DOM id 속성 (레이아웃 편집기 코어 일괄 ID) */
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
export interface FileUploaderRef {
/** 모든 대기 파일 업로드 */
@@ -27,6 +27,8 @@ interface FooterProps {
linkGroups?: FooterLinkGroup[];
/** 추가 CSS 클래스 */
className?: string;
/** 레이아웃 편집기 식별 속성(data-editor-*) — 시각적 루트에 spread */
editorAttrs?: Record<string, unknown>;
}
/**
* 사이트 푸터 컴포넌트
@@ -37,6 +37,8 @@ interface HeaderProps {
shopBase?: string;
/** 추가 CSS 클래스 */
className?: string;
/** 레이아웃 편집기 식별 속성(data-editor-*) — 시각적 루트에 spread */
editorAttrs?: Record<string, unknown>;
/** 알림 목록 (NotificationCenter에 전달) */
notifications?: NotificationItem[];
/** 더 불러올 페이지 존재 여부 */
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface HtmlContentProps {
/**
* 콘텐츠 (HTML 또는 일반 텍스트)
@@ -24,6 +25,14 @@ export interface HtmlContentProps {
* content보다 우선순위가 높음
*/
text?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* HtmlContent 콘텐츠 렌더링 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface HtmlEditorProps {
/**
* 콘텐츠 값
@@ -73,6 +74,14 @@ export interface HtmlEditorProps {
* 읽기 전용 모드
*/
readOnly?: boolean;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* HtmlEditor 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface GalleryImage {
/** 이미지 표시용 URL (라이트박스에서 보여줄 이미지) */
src: string;
@@ -38,6 +39,17 @@ export interface ImageGalleryProps {
showThumbnails?: boolean;
/** 커스텀 다운로드 핸들러 (제공 시 기본 다운로드 로직 대신 실행) */
onDownload?: (image: GalleryImage, index: number) => void;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용).
* 본 컴포넌트는 서드파티 Lightbox 모달(`createPortal` 로 body 렌더)이라 런타임에는
* 인라인 DOM 이 없다. 편집 모드(editorAttrs 존재)에서는 캔버스 선택·속성 편집이
* 가능하도록 인라인 placeholder(이미지 썸네일 그리드)를 대신 렌더하고 거기에
* editorAttrs·id 를 부착한다. 런타임(editorAttrs 미주입)은 종전 Lightbox 동작 그대로.
*
*/
editorAttrs?: EditorAttrs;
/** DOM id 속성 (레이아웃 편집기 코어 일괄 ID — 편집 placeholder 루트에 부착) */
id?: string;
}
/**
* 이미지 다운로드 실행
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
/**
* 알림 아이템 인터페이스
*/
@@ -54,6 +55,10 @@ export interface NotificationCenterProps {
/** 드롭다운 정렬 방향 — "right"(기본): 우측 정렬되어 좌측으로 확장 / "left": 좌측 정렬되어 우측으로 확장 */
dropdownAlign?: 'left' | 'right';
className?: string;
/** DOM id 속성 (레이아웃 편집기 코어 일괄 ID) */
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* NotificationCenter 컴포넌트 (User)
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface PaginationProps {
currentPage: number;
totalPages: number;
@@ -9,6 +10,14 @@ export interface PaginationProps {
style?: React.CSSProperties;
prevText?: string;
nextText?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Pagination 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
type ReactionType = 'like' | 'funny' | 'agree' | 'thanks' | 'wow';
interface ReactionCount {
type: ReactionType;
@@ -17,6 +18,12 @@ interface PostReactionsProps {
size?: 'sm' | 'md' | 'lg';
/** 추가 CSS 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* 게시글 리액션 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
interface CurrencyPrice {
value: number;
formatted: string;
@@ -46,6 +47,14 @@ interface ProductCardProps {
shopBase?: string;
/** 추가 CSS 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
declare const ProductCard: React.FC<ProductCardProps>;
export default ProductCard;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface ProductImage {
/** 이미지 ID */
id: number;
@@ -18,6 +19,12 @@ export interface ProductImageViewerProps {
images: ProductImage[];
/** 커스텀 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
export declare const ProductImageViewer: React.FC<ProductImageViewerProps>;
export default ProductImageViewer;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
interface QuantitySelectorProps {
/** 현재 수량 */
value: number;
@@ -14,6 +15,14 @@ interface QuantitySelectorProps {
disabled?: boolean;
/** 추가 CSS 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* 수량 선택 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
interface RichTextEditorProps {
/** 필드 이름 */
name: string;
@@ -16,6 +17,14 @@ interface RichTextEditorProps {
disabled?: boolean;
/** 추가 CSS 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* 리치 텍스트 에디터 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface SearchSuggestion {
id: string | number;
text: string;
@@ -15,6 +16,14 @@ export interface SearchBarProps {
showSuggestions?: boolean;
className?: string;
style?: React.CSSProperties;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* SearchBar 집합 컴포넌트
@@ -0,0 +1,60 @@
import { default as React } from 'react';
/**
* 슬롯에 주입된 컴포넌트의 root id 를 컨테이너 id 로 스코프해 고유화한다.
*
* 같은 슬롯 컴포넌트가 여러 SlotContainer(예: 헤더 데스크톱/모바일)에서 렌더되면 주입
* 컴포넌트의 정적 root id 가 컨테이너마다 같은 값으로 중복 출력되어 HTML id 유일성을
* 위반한다. 컨테이너 고유 id 가 있고 컴포넌트가 root id 를 가지면 `{id}__{containerId}`
* 로 스코프한다. 둘 중 하나라도 없으면 원본 그대로(무영향).
*
* @param componentDef 주입 컴포넌트 정의
* @param containerId 이 SlotContainer 의 DOM id (없으면 스코프 안 함)
* @returns 스코프된(또는 원본) 컴포넌트 정의
*/
export declare function scopeSlotChildDef<T extends {
id?: unknown;
}>(componentDef: T, containerId: string | undefined): T;
/**
* SlotContainer Props
*/
export interface SlotContainerProps {
/**
* 슬롯 ID
*
* 이 슬롯에 등록된 컴포넌트들을 렌더링합니다.
*/
slotId: string;
/**
* 컨테이너 CSS 클래스
*/
className?: string;
/**
* 빈 슬롯일 때 표시할 내용
*/
emptyContent?: React.ReactNode;
/**
* 인라인 스타일
*/
style?: React.CSSProperties;
/**
* 컴포넌트 ID (DOM id)
*/
id?: string;
/**
* 자식 컴포넌트 (children을 통한 fallback 또는 slot 컴포넌트가 아닌 정적 컨텐츠)
*/
children?: React.ReactNode;
}
/**
* SlotContainer 컴포넌트
*
* SlotContext에서 지정된 슬롯 ID에 등록된 컴포넌트들을 수집하여 렌더링합니다.
* 컴포넌트는 slotOrder 기준으로 정렬됩니다.
*
* 이 컴포넌트는 SlotContext를 사용하므로 SlotProvider 내부에서만 동작합니다.
* SlotProvider는 DynamicRenderer의 루트에서 자동으로 래핑됩니다.
*
* @param props SlotContainerProps
*/
export declare const SlotContainer: React.FC<SlotContainerProps>;
export default SlotContainer;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
type SocialProvider = 'google' | 'naver' | 'kakao' | 'facebook' | 'apple';
interface SocialLoginButtonsProps {
/** 표시할 소셜 로그인 제공자 목록 */
@@ -9,6 +10,12 @@ interface SocialLoginButtonsProps {
variant?: 'full' | 'icon';
/** 추가 CSS 클래스 */
className?: string;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
/**
* 소셜 로그인 버튼 그룹
@@ -1,5 +1,6 @@
import { default as React } from 'react';
import { IconName } from '../basic/IconTypes';
import { EditorAttrs } from '../../types';
export interface Tab {
id: string | number;
label: string;
@@ -18,6 +19,14 @@ export interface TabNavigationProps {
hiddenTabIds?: (string | number)[];
/** 모바일 전환 임계값 (px). 기본값 768 — G7 ResponsiveContext mobile 프리셋과 동일 */
mobileBreakpoint?: number;
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* TabNavigation 집합 컴포넌트
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* 테마 모드 타입
*/
@@ -17,6 +18,10 @@ export interface ThemeToggleProps {
lightText?: string;
/** 다크 모드 텍스트 (다국어 키 사용 권장) */
darkText?: string;
/** DOM id 속성 (레이아웃 편집기 코어 일괄 ID) */
id?: string;
/** 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread) */
editorAttrs?: EditorAttrs;
}
export declare const ThemeToggle: React.FC<ThemeToggleProps>;
export default ThemeToggle;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
/**
* 메뉴 항목 설정 인터페이스
*/
@@ -106,6 +107,14 @@ export interface UserInfoProps {
hideMenuItems?: string[];
/** 기본 메뉴에 추가할 항목 */
appendMenuItems?: MenuItemConfig[];
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* UserInfo 컴포넌트
@@ -34,6 +34,7 @@ export { AvatarUploader } from './AvatarUploader';
export { UserInfo } from './UserInfo';
export { Modal } from './Modal';
export { TabNavigation } from './TabNavigation';
export { SlotContainer } from './SlotContainer';
/**
* 컴포넌트 등록 맵
*
@@ -52,6 +53,7 @@ export declare const compositeComponents: {
Header: () => Promise<typeof import("./Header")>;
Footer: () => Promise<typeof import("./Footer")>;
MobileNav: () => Promise<typeof import("./MobileNav")>;
SlotContainer: () => Promise<typeof import("./SlotContainer")>;
NotificationCenter: () => Promise<typeof import("./NotificationCenter")>;
ProductCard: () => Promise<typeof import("./ProductCard")>;
ImageGallery: () => Promise<typeof import("./ImageGallery")>;
@@ -1,4 +1,5 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface ContainerProps {
/**
* DOM id 속성
@@ -16,6 +17,10 @@ export interface ContainerProps {
* 자식 요소
*/
children?: React.ReactNode;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Container 컴포넌트
@@ -1,5 +1,10 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface FlexProps {
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* Flex 방향
*/
@@ -44,6 +49,10 @@ export interface FlexProps {
* 클릭 이벤트 핸들러
*/
onClick?: () => void;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Flex 레이아웃 컴포넌트
@@ -1,5 +1,10 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface GridProps {
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* Grid 열 개수
*/
@@ -54,6 +59,10 @@ export interface GridProps {
* 클릭 이벤트 핸들러
*/
onClick?: () => void;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Grid 레이아웃 컴포넌트
@@ -1,5 +1,10 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface SectionLayoutProps {
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 섹션 제목
*/
@@ -52,6 +57,10 @@ export interface SectionLayoutProps {
* 클릭 이벤트 핸들러
*/
onClick?: () => void;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* Section 레이아웃 컴포넌트
@@ -1,5 +1,10 @@
import { default as React } from 'react';
import { EditorAttrs } from '../../types';
export interface ThreeColumnLayoutProps {
/**
* DOM id 속성 (레이아웃 편집기 코어 일괄 ID)
*/
id?: string;
/**
* 왼쪽 영역 너비
*/
@@ -28,6 +33,10 @@ export interface ThreeColumnLayoutProps {
* 인라인 스타일
*/
style?: React.CSSProperties;
/**
* 레이아웃 편집기 주입 속성 (편집 모드 전용, 루트에 spread)
*/
editorAttrs?: EditorAttrs;
}
/**
* ThreeColumnLayout 레이아웃 컴포넌트