@opsnow-mcp/opsnow-mcp-common-ui-server 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -308,14 +308,10 @@ export const CurrencySwitcherSchema = z.object({
308
308
  labels: z.string().optional().describe("문구 개별 커스텀 객체 변수명 — Partial<CurrencySwitcherLabels>, 우선순위 labels > 앱 i18n 리소스(common.currency_switcher.*) > 패키지 내장 ko/en/ja ({placeholder} 템플릿 치환 지원). 기준 통화 행 문구는 baseCurrencyDescription, 히스토리 테이블 첫 컬럼 머리는 payerColumnLabel 키로 교체"),
309
309
  size: z.enum(["small", "medium"]).optional().describe("트리거 크기"),
310
310
  disabled: z.boolean().optional().describe("비활성화 여부"),
311
- // [다음 버전 재도입 예정] 환율 설정(직접 입력 · 시뮬레이션) 영역 props — dropdown 컴포넌트
312
- // '[다음 버전 재도입 예정]' 주석 블록이 되살아나면 아래 주석 해제 (핸들러 주석 블록도 함께)
313
- // defaultTargetCurrency: z.string().optional().describe("기준 통화 선택 중일 환율 설정이 다룰 초기 비교 통화 코드"),
314
- // simulationTarget: z.string().optional().describe("환율 설정(시뮬레이션) 대상 지정 객체 변수명 { currency, payer?, invoice? } 형태, 기준 통화 뷰에서 실제 환산되는 CSP(Payer)로 고정하며 payer/invoice 일치 행이 사전 선택됨 (예: simulationTarget)"),
315
- // customRate: z.string().optional().describe("직접 입력 시뮬레이션 환율 상태 변수명 (number | null, controlled 모드 — 미지정 시 내부 관리)"),
316
- // onCustomRateChange: z.string().optional().describe("직접 입력 환율 변경 핸들러 함수명 — (rate, context) => void 형태, 저장되지 않는 what-if 값 통지 (onChange는 호출되지 않음)"),
317
- // showDetail: z.boolean().optional().describe("환율 설정(직접 입력 시뮬레이션) 섹션 노출 여부 (기본값: true)"),
318
- // historyMode: z.enum(["auto", "popup"]).optional().describe("히스토리 열림 방식 — 'popup'이면 항상 화면 중앙 팝업, 'auto'는 다중 환율=팝업/단일 환율·기준 통화=인라인 분기 (기본값: 'auto')"),
311
+ // 환율 설정(직접 입력 · 시뮬레이션) 영역 props — dropdown 컴포넌트 쪽. 대상 통화는 항상 현재 선택 통화(value)
312
+ customRate: z.string().optional().describe("직접 입력 시뮬레이션 환율 상태 변수명 (number | null, controlled 모드 미지정 내부 관리)"),
313
+ onCustomRateChange: z.string().optional().describe("직접 입력 환율 변경 핸들러 함수명 (rate, context) => void 형태, 저장되지 않는 what-if 값 통지 (onChange는 호출되지 않음)"),
314
+ showDetail: z.boolean().optional().describe("환율 설정(직접 입력 시뮬레이션) 섹션 노출 여부 (기본값: false). true여도 선택 통화가 기준 통화면 환산이 없어 노출되지 않음"),
319
315
  });
320
316
  // Forms 컴포넌트 함수 - 배열 반환
321
317
  export function createFormsComponent() {
@@ -1201,13 +1197,12 @@ export function createFormsComponent() {
1201
1197
  entries.push(["baseCurrency", `'${args.baseCurrency}'`]);
1202
1198
  if (args.nativeCurrency)
1203
1199
  entries.push(["nativeCurrency", `'${args.nativeCurrency}'`]);
1204
- // [다음 버전 재도입 예정] 환율 설정(직접 입력 · 시뮬레이션) props — 스키마 주석 블록과 함께 주석 해제
1205
- // if (args.defaultTargetCurrency) entries.push(["defaultTargetCurrency", `'${args.defaultTargetCurrency}'`]);
1206
- // if (args.simulationTarget) entries.push(["simulationTarget", args.simulationTarget]);
1207
- // if (args.customRate) entries.push(["customRate", args.customRate]);
1208
- // if (args.onCustomRateChange) entries.push(["onCustomRateChange", args.onCustomRateChange]);
1209
- // if (args.showDetail !== undefined) entries.push(["showDetail", String(args.showDetail)]);
1210
- // if (args.historyMode) entries.push(["historyMode", `'${args.historyMode}'`]);
1200
+ if (args.customRate)
1201
+ entries.push(["customRate", args.customRate]);
1202
+ if (args.onCustomRateChange)
1203
+ entries.push(["onCustomRateChange", args.onCustomRateChange]);
1204
+ if (args.showDetail !== undefined)
1205
+ entries.push(["showDetail", String(args.showDetail)]);
1211
1206
  if (args.showHistory !== undefined)
1212
1207
  entries.push(["showHistory", String(args.showHistory)]);
1213
1208
  if (args.renderChart)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opsnow-mcp/opsnow-mcp-common-ui-server",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "bin": {