Files
vexplor/frontend/hooks/pop/index.ts
SeongHyun Kim 12a8290873 feat(pop): 설정 패널 아코디언 접기/펼치기 일관성 + sessionStorage 상태 기억
설정 패널을 열 때 섹션이 일부는 펼쳐져 있고 일부는 접혀 있어
일관성이 없던 UX를 개선하고, 사용자가 펼친 섹션을 탭 세션 내에서 기억한다.
- useCollapsibleSections 커스텀 훅 생성 (sessionStorage 기반, 초기 모두 접힘)
- PopCardListConfig: CollapsibleSection에 sectionKey/sections prop 패턴 적용
- PopFieldConfig: SaveTabContent 5개 고정 섹션 훅 적용,
  SectionEditor 초기값 접힘으로 변경
- PopDashboardConfig: PageEditor 초기값 접힘으로 변경
2026-03-05 18:54:29 +09:00

34 lines
1.1 KiB
TypeScript

/**
* POP 공통 훅 배럴 파일
*
* 사용법: import { usePopEvent, useDataSource } from "@/hooks/pop";
*/
// 이벤트 통신 훅
export { usePopEvent, cleanupScreen } from "./usePopEvent";
// 데이터 CRUD 훅
export { useDataSource } from "./useDataSource";
export type { MutationResult, DataSourceResult } from "./useDataSource";
// 액션 실행 순수 함수
export { executePopAction } from "./executePopAction";
export type { ActionResult } from "./executePopAction";
// 액션 실행 React 훅
export { usePopAction } from "./usePopAction";
export type { PendingConfirmState } from "./usePopAction";
// 연결 해석기
export { useConnectionResolver } from "./useConnectionResolver";
// 장바구니 동기화 훅
export { useCartSync } from "./useCartSync";
export type { UseCartSyncReturn } from "./useCartSync";
// 설정 패널 접기/펼치기 상태 관리
export { useCollapsibleSections } from "./useCollapsibleSections";
// SQL 빌더 유틸 (고급 사용 시)
export { buildAggregationSQL, validateDataSourceConfig } from "./popSqlBuilder";