@ihabdevteam/core 0.399.0 → 0.400.0

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.
@@ -1916,7 +1916,7 @@ export declare function copyText(text: string): Promise<boolean>;
1916
1916
  *
1917
1917
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
1918
1918
  */
1919
- export declare const CORE_VERSION = "0.399.0";
1919
+ export declare const CORE_VERSION = "0.400.0";
1920
1920
 
1921
1921
  /** @public */
1922
1922
  declare const coreDefault: Record<string, unknown>;
@@ -11698,9 +11698,9 @@ export declare interface WordSearchResultWord {
11698
11698
  * 표시(items)·편집(editCells) 두 모드를 지원한다.
11699
11699
  * @public
11700
11700
  */
11701
- export declare function WordTable({ title, titleIcon, disc, className, orientation, contentTypes, baseItem, baseContentTypes, cutLine, showOutline, showDivLine, items, editCells, count, activeCell, onActivateCell, onRemoveCell, onRemoveItem, onReorder, onCopyItem, indexOffset, totalCount, renderCellAction, showFillerAdd, addableCount, contentRef, buttonSize, brand, code, pageNumber, pageNumberPosition, fitHeight, scoring, marks, onMarkClick, scoreIndexOffset, }: WordTableProps): JSX.Element;
11701
+ export declare function WordTable({ title, titleIcon, disc, className, orientation, contentTypes, baseItem, baseContentTypes, cutLine, showOutline, showDivLine, items, editCells, count, activeCell, onActivateCell, onRemoveCell, onRemoveItem, onReorder, onCopyItem, onReplaceItem, indexOffset, totalCount, renderCellAction, showFillerAdd, addableCount, contentRef, buttonSize, brand, code, pageNumber, pageNumberPosition, fitHeight, scoring, marks, onMarkClick, scoreIndexOffset, }: WordTableProps): JSX.Element;
11702
11702
 
11703
- export declare function WordTableBlock({ title, titleIcon, disc, filterTitle, filterCollapsible, filterDefaultCollapsed, filterCollapsed, onFilterCollapsedChange, filterHeaderSummary, brand, code, baseItem, baseContentTypes, cellCapacity, maxItemsPerPage, items, onSaveComplete, onLoad, onRemoveItem, onCopyItem, onReset, resetLabel, saveButtonLabel, secondarySaveButtonLabel, onReorder, showCellCount, onAddItem, className, renderSavePopup, renderWordSearch, hideControls, saveOnly, tableName, nameValue, onNameChange, descriptionValue, onDescriptionChange, namePlaceholder, descriptionPlaceholder, existingNames, editingName, onCancel, initialItemsPerPage, renderCellAction, actionsLeftExtra }: WordTableBlockProps): JSX.Element;
11703
+ export declare function WordTableBlock({ title, titleIcon, disc, filterTitle, filterCollapsible, filterDefaultCollapsed, filterCollapsed, onFilterCollapsedChange, filterHeaderSummary, brand, code, baseItem, baseContentTypes, cellCapacity, maxItemsPerPage, items, onSaveComplete, onLoad, onRemoveItem, onCopyItem, onReplaceItem, onReset, resetLabel, saveButtonLabel, secondarySaveButtonLabel, onReorder, showCellCount, onAddItem, className, renderSavePopup, renderWordSearch, hideControls, saveOnly, tableName, nameValue, onNameChange, descriptionValue, onDescriptionChange, namePlaceholder, descriptionPlaceholder, existingNames, editingName, onCancel, initialItemsPerPage, renderCellAction, actionsLeftExtra }: WordTableBlockProps): JSX.Element;
11704
11704
 
11705
11705
  /** @public */
11706
11706
  export declare interface WordTableBlockProps {
@@ -11805,6 +11805,8 @@ export declare interface WordTableBlockProps {
11805
11805
  onRemoveItem?: (id: string) => void;
11806
11806
  /** 주면 칸에 **복사 단추**가 선다 — 그 낱말을 한 칸 더 만든다. 꼴은 코어가 빼기·옮기기와 같게 짓는다. */
11807
11807
  onCopyItem?: (id: string, index: number) => void;
11808
+ /** 주면 칸에 **바꾸기 단추**가 선다 — 그 칸을 다른 낱말로. 꼴은 코어가 빼기·한 칸 더와 같게 짓는다(청 (353)). */
11809
+ onReplaceItem?: (id: string, index: number) => void;
11808
11810
  /** 전달하면 액션 영역 왼쪽에 초기화 버튼 표시 */
11809
11811
  onReset?: () => void;
11810
11812
  resetLabel?: string;
@@ -12152,6 +12154,24 @@ export declare interface WordTableProps {
12152
12154
  * 여기서 그리면 빼기·옮기기와 **같은 꼴로 지어진다** — 맞출 것이 없다.
12153
12155
  */
12154
12156
  onCopyItem?: (id: string, index: number) => void;
12157
+ /**
12158
+ * 그 칸을 **다른 낱말로** 바꾼다 — 주면 칸의 오른쪽 기둥에 바꾸기 단추가 선다
12159
+ * (말귀 청 (353), 2026-10-29).
12160
+ *
12161
+ * **`onCopyItem` 과 같은 까닭으로 코어가 그린다.** 이 자리는 `renderCellAction` 으로
12162
+ * 부르는 쪽이 얹던 곳인데, 꼴을 다시 적어야 해서 **안 적은 쪽만 테두리가 생겼다**
12163
+ * (`useBorder` 기본이 `true` 다). 사장님이 **같은 것을 두 번** 이르셨다 —
12164
+ * 2026-09-27 *"다른 단어로 버튼만 다르네? 베리언트 동일하게"* · 2026-10-29
12165
+ * *"다른 단어로 버튼과 복사버튼이 스타일이 다르네?"*. 두 번 어긋났다는 것은
12166
+ * **적어 두는 것으로는 안 맞는다**는 뜻이라 그릴 자리를 코어로 옮긴다.
12167
+ *
12168
+ * 떠 있는 말은 **칸에 든 낱말 수**가 가른다 — 하나면 '다른 단어로', 대립쌍이면 '다른 쌍으로'.
12169
+ * 빼기가 '단어 빼기'·'대립쌍 빼기' 로 갈리는 것과 **같은 자**다. 앱은 이것을 *화면*
12170
+ * (단어표냐 대립쌍표냐)으로 갈라 왔는데 코어는 화면을 모르고, 두 자는 늘 같은 답을 낸다
12171
+ * (대립쌍표 칸은 낱말이 둘, 단어표·활용표 칸은 하나다). 갈리는 칸이 생긴다면 그때는
12172
+ * **빼기도 함께 틀리는 것**이라, 한 자에 묶어 두는 편이 낫다.
12173
+ */
12174
+ onReplaceItem?: (id: string, index: number) => void;
12155
12175
  onReorder?: (fromIndex: number, toIndex: number) => void;
12156
12176
  /**
12157
12177
  * 이 표의 첫 칸이 **전체 목록에서 몇 번째**인가 — 쪽으로 나뉜 표에서 `WordTableBlock` 이 준다
@@ -1,4 +1,4 @@
1
1
  import './WordTableBlock.css';
2
2
  import type { WordTableBlockProps } from './wordTableBlockTypes';
3
3
  export type { WordEntry, WordTableBlockProps } from './wordTableBlockTypes';
4
- export default function WordTableBlock({ title, titleIcon, disc, filterTitle, filterCollapsible, filterDefaultCollapsed, filterCollapsed, onFilterCollapsedChange, filterHeaderSummary, brand, code, baseItem, baseContentTypes, cellCapacity, maxItemsPerPage, items, onSaveComplete, onLoad, onRemoveItem, onCopyItem, onReset, resetLabel, saveButtonLabel, secondarySaveButtonLabel, onReorder, showCellCount, onAddItem, className, renderSavePopup, renderWordSearch, hideControls, saveOnly, tableName, nameValue, onNameChange, descriptionValue, onDescriptionChange, namePlaceholder, descriptionPlaceholder, existingNames, editingName, onCancel, initialItemsPerPage, renderCellAction, actionsLeftExtra }: WordTableBlockProps): import("react").JSX.Element;
4
+ export default function WordTableBlock({ title, titleIcon, disc, filterTitle, filterCollapsible, filterDefaultCollapsed, filterCollapsed, onFilterCollapsedChange, filterHeaderSummary, brand, code, baseItem, baseContentTypes, cellCapacity, maxItemsPerPage, items, onSaveComplete, onLoad, onRemoveItem, onCopyItem, onReplaceItem, onReset, resetLabel, saveButtonLabel, secondarySaveButtonLabel, onReorder, showCellCount, onAddItem, className, renderSavePopup, renderWordSearch, hideControls, saveOnly, tableName, nameValue, onNameChange, descriptionValue, onDescriptionChange, namePlaceholder, descriptionPlaceholder, existingNames, editingName, onCancel, initialItemsPerPage, renderCellAction, actionsLeftExtra }: WordTableBlockProps): import("react").JSX.Element;
@@ -44,7 +44,7 @@ function withUniqueIds(list) {
44
44
  return id === it.id ? it : { ...it, id };
45
45
  });
46
46
  }
47
- export default function WordTableBlock({ title, titleIcon, disc, filterTitle, filterCollapsible, filterDefaultCollapsed, filterCollapsed, onFilterCollapsedChange, filterHeaderSummary, brand, code, baseItem, baseContentTypes, cellCapacity, maxItemsPerPage, items, onSaveComplete, onLoad, onRemoveItem, onCopyItem, onReset, resetLabel, saveButtonLabel, secondarySaveButtonLabel, onReorder, showCellCount, onAddItem, className, renderSavePopup, renderWordSearch, hideControls, saveOnly, tableName, nameValue, onNameChange, descriptionValue, onDescriptionChange, namePlaceholder, descriptionPlaceholder, existingNames, editingName, onCancel, initialItemsPerPage, renderCellAction, actionsLeftExtra }) {
47
+ export default function WordTableBlock({ title, titleIcon, disc, filterTitle, filterCollapsible, filterDefaultCollapsed, filterCollapsed, onFilterCollapsedChange, filterHeaderSummary, brand, code, baseItem, baseContentTypes, cellCapacity, maxItemsPerPage, items, onSaveComplete, onLoad, onRemoveItem, onCopyItem, onReplaceItem, onReset, resetLabel, saveButtonLabel, secondarySaveButtonLabel, onReorder, showCellCount, onAddItem, className, renderSavePopup, renderWordSearch, hideControls, saveOnly, tableName, nameValue, onNameChange, descriptionValue, onDescriptionChange, namePlaceholder, descriptionPlaceholder, existingNames, editingName, onCancel, initialItemsPerPage, renderCellAction, actionsLeftExtra }) {
48
48
  const { t } = useTranslation();
49
49
  const resolvedResetLabel = resetLabel ?? t('wordPrint.clearAllSelection', '모두 선택 해제');
50
50
  const isEditable = items === undefined;
@@ -381,7 +381,7 @@ export default function WordTableBlock({ title, titleIcon, disc, filterTitle, fi
381
381
  }), !hideControls && (_jsx(TableFilterPanel, { title: filterTitle, collapsible: filterCollapsible, defaultCollapsed: filterDefaultCollapsed, collapsed: filterCollapsed, onCollapsedChange: onFilterCollapsedChange, headerSummary: filterHeaderSummary, hasImage: hasImage, hasColloquial: hasColloquial, hasCaption: hasCaption, contentTypes: contentTypes, orientation: orientation, showOutline: showOutline, cutLine: cutLine, showDivLine: showDivLine, setters: { setContentTypes, setOrientation, setShowOutline, setCutLine, setShowDivLine, setShowTopInfo, setShowBottomInfo }, showCutLine: (pagesEnabled ? itemsPerPage : count) > 1, showDivLine2: hasPairs, middleSections: middleSections, extraSelected: middleSelected, onExtraSelect: handleMiddleSelect, showPaperBands: showBand, showTopInfo: showTopInfo, showBottomInfo: showBottomInfo })), isPaginated && pages ? (_jsx("div", { className: "word-table-block__pages", children: pages.map((page, i) => (_jsx(WordTable, { orientation: orientation, contentTypes: contentTypes, cutLine: cutLine, showOutline: showOutline, showDivLine: showDivLine, count: itemsPerPage, items: page,
382
382
  /* 쪽마다 머리 칸이 선다 — 한 장만 들고 보는 종이에 머리 낱말이 없으면
383
383
  나머지 칸이 무엇의 활용인지 알 수 없다 */
384
- baseItem: baseItem, baseContentTypes: baseContentTypes, onRemoveItem: onRemoveItem, onCopyItem: onCopyItem,
384
+ baseItem: baseItem, baseContentTypes: baseContentTypes, onRemoveItem: onRemoveItem, onCopyItem: onCopyItem, onReplaceItem: onReplaceItem,
385
385
  /* 쪽이 나뉘면 끌어 옮기기가 통째로 꺼졌다(말귀 단어 찾기: 9개부터). 쪽 안의 자리를 전체 자리로 옮겨 넘긴다 —
386
386
  쪽을 넘는 이동은 하지 않는다. */
387
387
  onReorder: onReorder && ((from, to) => onReorder(from + i * itemsPerPage, to + i * itemsPerPage)),
@@ -399,8 +399,8 @@ export default function WordTableBlock({ title, titleIcon, disc, filterTitle, fi
399
399
  /* 칸 크기가 쪽마다 같아야 해서 `count` 는 모든 쪽이 '페이지당 개수' 다 —
400
400
  채울 자리는 마지막 쪽에서 모자랄 수 있으니 그것만 따로 센다. */
401
401
  addableCount: Math.max(0, Math.min(itemsPerPage, capacity - i * itemsPerPage)), brand: band, code: code, contentRef: el => { pageRefs.current[i] = el; }, pageNumber: { current: i + 1, total: pages.length }, pageNumberPosition: pageNumberPosition }, i))) })) : (_jsx(WordTable, { orientation: orientation, contentTypes: contentTypes, cutLine: cutLine, showOutline: showOutline, showDivLine: showDivLine, count: count, items: isEditable ? undefined : (items ?? []), baseItem: isEditable ? undefined : baseItem, baseContentTypes: baseContentTypes, editCells: isEditable ? visibleCells : undefined, activeCell: activeCell, onActivateCell: (isEditable || onAddItem) ? setActiveCell : undefined, onRemoveCell: isEditable ? handleRemove : undefined, onRemoveItem: !isEditable ? onRemoveItem : undefined,
402
- /* 편집 격자에는 '한 칸 더' 가 뜻이 없다 — 거기선 칸을 손으로 채운다 */
403
- onCopyItem: !isEditable ? onCopyItem : undefined, onReorder: !isEditable ? onReorder : undefined,
402
+ /* 편집 격자에는 '한 칸 더'·'다른 단어로' 가 뜻이 없다 — 거기선 칸을 손으로 채운다 */
403
+ onCopyItem: !isEditable ? onCopyItem : undefined, onReplaceItem: !isEditable ? onReplaceItem : undefined, onReorder: !isEditable ? onReorder : undefined,
404
404
  /* 편집 모드에는 얹을 항목이 없다 — 칸을 손으로 채우는 꼴이다 */
405
405
  renderCellAction: !isEditable ? renderCellAction : undefined, brand: band, code: code, showFillerAdd: !!onAddItem, contentRef: contentRef })), !hideControls && !saveOnly && actionsLeftExtra != null && (_jsx("div", { className: "word-table-block__table-actions", children: actionsLeftExtra })), inlineNameFields && !hideControls && (_jsxs(Panel, { size: "medium", labelWidth: 64, useBorder: false, useRowBorder: false, className: "word-table-block__meta", children: [_jsx(PanelRow, { variant: "custom", label: t('wordTable.save.nameLabel', '이름'), required: true, align: "vertical", useFullWidth: true, children: _jsx(TextField, { required: true, value: nameValue ?? '', onChange: onNameChange, placeholder: namePlaceholder ? namePlaceholder + t('wordTable.save.autoFillHint', ' (Tab 또는 space 입력시 자동 입력)') : t('wordTable.save.placeholder', '이 단어표에 대한 제목을 입력하세요.'),
406
406
  /* PanelRow의 라벨은 시각적으로만 붙어 있고 입력과 연결돼 있지 않아, 낭독기에는
@@ -118,6 +118,8 @@ export interface WordTableBlockProps {
118
118
  onRemoveItem?: (id: string) => void;
119
119
  /** 주면 칸에 **복사 단추**가 선다 — 그 낱말을 한 칸 더 만든다. 꼴은 코어가 빼기·옮기기와 같게 짓는다. */
120
120
  onCopyItem?: (id: string, index: number) => void;
121
+ /** 주면 칸에 **바꾸기 단추**가 선다 — 그 칸을 다른 낱말로. 꼴은 코어가 빼기·한 칸 더와 같게 짓는다(청 (353)). */
122
+ onReplaceItem?: (id: string, index: number) => void;
121
123
  /** 전달하면 액션 영역 왼쪽에 초기화 버튼 표시 */
122
124
  onReset?: () => void;
123
125
  resetLabel?: string;
@@ -59,6 +59,24 @@ export interface WordTableProps {
59
59
  * 여기서 그리면 빼기·옮기기와 **같은 꼴로 지어진다** — 맞출 것이 없다.
60
60
  */
61
61
  onCopyItem?: (id: string, index: number) => void;
62
+ /**
63
+ * 그 칸을 **다른 낱말로** 바꾼다 — 주면 칸의 오른쪽 기둥에 바꾸기 단추가 선다
64
+ * (말귀 청 (353), 2026-10-29).
65
+ *
66
+ * **`onCopyItem` 과 같은 까닭으로 코어가 그린다.** 이 자리는 `renderCellAction` 으로
67
+ * 부르는 쪽이 얹던 곳인데, 꼴을 다시 적어야 해서 **안 적은 쪽만 테두리가 생겼다**
68
+ * (`useBorder` 기본이 `true` 다). 사장님이 **같은 것을 두 번** 이르셨다 —
69
+ * 2026-09-27 *"다른 단어로 버튼만 다르네? 베리언트 동일하게"* · 2026-10-29
70
+ * *"다른 단어로 버튼과 복사버튼이 스타일이 다르네?"*. 두 번 어긋났다는 것은
71
+ * **적어 두는 것으로는 안 맞는다**는 뜻이라 그릴 자리를 코어로 옮긴다.
72
+ *
73
+ * 떠 있는 말은 **칸에 든 낱말 수**가 가른다 — 하나면 '다른 단어로', 대립쌍이면 '다른 쌍으로'.
74
+ * 빼기가 '단어 빼기'·'대립쌍 빼기' 로 갈리는 것과 **같은 자**다. 앱은 이것을 *화면*
75
+ * (단어표냐 대립쌍표냐)으로 갈라 왔는데 코어는 화면을 모르고, 두 자는 늘 같은 답을 낸다
76
+ * (대립쌍표 칸은 낱말이 둘, 단어표·활용표 칸은 하나다). 갈리는 칸이 생긴다면 그때는
77
+ * **빼기도 함께 틀리는 것**이라, 한 자에 묶어 두는 편이 낫다.
78
+ */
79
+ onReplaceItem?: (id: string, index: number) => void;
62
80
  onReorder?: (fromIndex: number, toIndex: number) => void;
63
81
  /**
64
82
  * 이 표의 첫 칸이 **전체 목록에서 몇 번째**인가 — 쪽으로 나뉜 표에서 `WordTableBlock` 이 준다
@@ -237,4 +255,4 @@ export interface WordTableProps {
237
255
  * 표시(items)·편집(editCells) 두 모드를 지원한다.
238
256
  * @public
239
257
  */
240
- export default function WordTable({ title, titleIcon, disc, className, orientation, contentTypes, baseItem, baseContentTypes, cutLine, showOutline, showDivLine, items, editCells, count, activeCell, onActivateCell, onRemoveCell, onRemoveItem, onReorder, onCopyItem, indexOffset, totalCount, renderCellAction, showFillerAdd, addableCount, contentRef, buttonSize, brand, code, pageNumber, pageNumberPosition, fitHeight, scoring, marks, onMarkClick, scoreIndexOffset, }: WordTableProps): import("react").JSX.Element;
258
+ export default function WordTable({ title, titleIcon, disc, className, orientation, contentTypes, baseItem, baseContentTypes, cutLine, showOutline, showDivLine, items, editCells, count, activeCell, onActivateCell, onRemoveCell, onRemoveItem, onReorder, onCopyItem, onReplaceItem, indexOffset, totalCount, renderCellAction, showFillerAdd, addableCount, contentRef, buttonSize, brand, code, pageNumber, pageNumberPosition, fitHeight, scoring, marks, onMarkClick, scoreIndexOffset, }: WordTableProps): import("react").JSX.Element;
@@ -304,7 +304,7 @@ function WordCell({ label, subLabel, colloquialLabel, captionLabel, captionBadge
304
304
  * 표시(items)·편집(editCells) 두 모드를 지원한다.
305
305
  * @public
306
306
  */
307
- export default function WordTable({ title, titleIcon, disc, className, orientation = 'landscape', contentTypes = ['image', 'word', 'standardPron'], baseItem, baseContentTypes, cutLine = 'show', showOutline = true, showDivLine = true, items, editCells, count, activeCell = null, onActivateCell, onRemoveCell, onRemoveItem, onReorder, onCopyItem, indexOffset = 0, totalCount, renderCellAction, showFillerAdd = false, addableCount, contentRef, buttonSize = 40, brand, code, pageNumber, pageNumberPosition = 'right', fitHeight = false, scoring = false, marks, onMarkClick, scoreIndexOffset = 0, }) {
307
+ export default function WordTable({ title, titleIcon, disc, className, orientation = 'landscape', contentTypes = ['image', 'word', 'standardPron'], baseItem, baseContentTypes, cutLine = 'show', showOutline = true, showDivLine = true, items, editCells, count, activeCell = null, onActivateCell, onRemoveCell, onRemoveItem, onReorder, onCopyItem, onReplaceItem, indexOffset = 0, totalCount, renderCellAction, showFillerAdd = false, addableCount, contentRef, buttonSize = 40, brand, code, pageNumber, pageNumberPosition = 'right', fitHeight = false, scoring = false, marks, onMarkClick, scoreIndexOffset = 0, }) {
308
308
  const clickMark = useCallback((cellIndex, clicked) => {
309
309
  onMarkClick?.(scoreIndexOffset + cellIndex, clicked);
310
310
  }, [onMarkClick, scoreIndexOffset]);
@@ -680,7 +680,7 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
680
680
  ...dotDashStyle(0, orientation === 'landscape' ? 2 : 1, orientation === 'landscape' ? 1 : 2, cutLine),
681
681
  }, children: (baseItem.words ?? []).map((w, wi) => (_jsxs(Fragment, { children: [wi > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, homonum: w.homonum, showWord: baseShow.word, showImage: baseShow.image, showPronunciation: baseShow.pron, showColloquial: baseShow.colloq, showCaption: baseShow.caption, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, wi))) })), (items ?? []).map((item, index) => (_jsxs("div", { "data-wordtable-cell": onReorder ? index : undefined, "data-wordtable-index": onReorder ? indexOffset + index : undefined, className: withLegacy(`word-table__card${onReorder ? ' word-table__card--draggable' : ''}${dragOver === index ? ' word-table__card--drag-over' : ''}${dragging === index ? ' word-table__card--dragging' : ''}`), style: dotDashStyle(index, itemCols, itemRows, cutLine), draggable: !!onReorder, onPointerDown: onReorder ? (e) => longPressDrag(e, index) : undefined, onKeyDown: onReorder ? (e) => moveByKey(e, index) : undefined, onDragStart: onReorder ? () => { dragIndex.current = index; } : undefined, onDragOver: onReorder ? (e) => { e.preventDefault(); setDragOver(index); } : undefined, onDragLeave: onReorder ? () => setDragOver(null) : undefined, onDrop: onReorder ? (e) => { e.preventDefault(); if (dragIndex.current !== null && dragIndex.current !== index) {
682
682
  onReorder(dragIndex.current, index);
683
- } ; dragIndex.current = null; setDragOver(null); } : undefined, onDragEnd: onReorder ? () => { dragIndex.current = null; setDragOver(null); } : undefined, children: [(item.words ?? []).map((w, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, homonum: w.homonum, showWord: show.word, showImage: show.image, showPronunciation: show.pron, showColloquial: show.colloq, showCaption: show.caption, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, i))), scoring && renderScore(index, (item.words ?? []).map(w => w.label).join(' / ')), (renderCellAction || onRemoveItem || onCopyItem || onReorder) && (
683
+ } ; dragIndex.current = null; setDragOver(null); } : undefined, onDragEnd: onReorder ? () => { dragIndex.current = null; setDragOver(null); } : undefined, children: [(item.words ?? []).map((w, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("div", { className: withLegacy("word-table__pair-divider") }), _jsx(WordCell, { outerScale: scale, label: w.label, subLabel: w.subLabel, colloquialLabel: w.colloquialLabel, captionLabel: w.captionLabel, captionBadge: w.captionBadge, homonum: w.homonum, showWord: show.word, showImage: show.image, showPronunciation: show.pron, showColloquial: show.colloq, showCaption: show.caption, buttonSize: buttonSize, wordInfo: (w.grade || w.syllables != null || w.pos || w.wordType) ? { grade: w.grade, syllables: w.syllables, pos: w.pos, wordType: w.wordType } : undefined })] }, i))), scoring && renderScore(index, (item.words ?? []).map(w => w.label).join(' / ')), (renderCellAction || onRemoveItem || onCopyItem || onReplaceItem || onReorder) && (
684
684
  /* **오른쪽 기둥** — 빼기 → 부르는 쪽이 얹은 것 → 옮기기 손잡이 차례로 쌓인다
685
685
  (말귀 청 (331), 2026-10-28). 전에는 빼기와 얹은 것만 **한 줄**로 서고
686
686
  손잡이는 왼쪽 위에 따로 섰다 — 재생 단추와 **같은 자리라 겹쳤다.**
@@ -698,7 +698,21 @@ export default function WordTable({ title, titleIcon, disc, className, orientati
698
698
  _jsx("div", { className: withLegacy("word-table__card-copy"), children: _jsx(Button, { htmlType: "button", size: buttonSize, type: "dot", icon: "copy", variant: "transparent-lightGray", useBorder: false, showTooltipInfo: t('wordTable.copyItem', '한 칸 더'), ariaLabel: t('wordTable.copyItemAria', {
699
699
  n: indexOffset + index + 1,
700
700
  defaultValue: '{{n}}번 칸 낱말을 한 칸 더',
701
- }), onClick: () => onCopyItem(item.id, indexOffset + index) }) })), renderCellAction?.(index, item), onReorder && (
701
+ }), onClick: () => onCopyItem(item.id, indexOffset + index) }) })), onReplaceItem && (
702
+ /* **'한 칸 더' 바로 아래** — 지금까지 `renderCellAction` 이 서던 자리라
703
+ 화면 차례가 안 바뀐다. 꼴은 위아래 이웃과 **한 글자도 안 다르다**
704
+ (`type="dot"` · `transparent-lightGray` · `useBorder={false}`). */
705
+ _jsx("div", { className: withLegacy("word-table__card-replace"), children: _jsx(Button, { htmlType: "button", size: buttonSize, type: "dot", icon: "refresh-cw", variant: "transparent-lightGray", useBorder: false, showTooltipInfo: (item.words ?? []).length > 1
706
+ ? t('wordTable.replacePair', '다른 쌍으로')
707
+ : t('wordTable.replaceItem', '다른 단어로'), ariaLabel: (item.words ?? []).length > 1
708
+ ? t('wordTable.replacePairAria', {
709
+ n: indexOffset + index + 1,
710
+ defaultValue: '{{n}}번 칸만 다른 쌍으로',
711
+ })
712
+ : t('wordTable.replaceItemAria', {
713
+ n: indexOffset + index + 1,
714
+ defaultValue: '{{n}}번 칸만 다른 단어로',
715
+ }), onClick: () => onReplaceItem(item.id, indexOffset + index) }) })), renderCellAction?.(index, item), onReorder && (
702
716
  /* **옮기기 손잡이.** 키보드로 순서를 바꾸려면 초점이 갈 자리가 있어야 하는데,
703
717
  칸 자체를 초점 대상으로 만들면 칸마다 뜻 없는 탭 정지점이 하나씩 늘고
704
718
  낭독기는 그것이 무엇인지 말할 수 없다. 이름 붙은 진짜 단추를 둔다 —
@@ -685,7 +685,11 @@
685
685
  "handle": "Reorder {{word}} (Alt + arrow keys)",
686
686
  "hint": "Alt + ← → to reorder"
687
687
  },
688
- "thumbMore": "+{{count}}"
688
+ "thumbMore": "+{{count}}",
689
+ "replaceItem": "Other words",
690
+ "replacePair": "Other pairs",
691
+ "replaceItemAria": "Swap cell {{n}} only",
692
+ "replacePairAria": "Swap pair {{n}} only"
689
693
  },
690
694
  "wordSearch": {
691
695
  "filterTitle": "Word Search Settings",
@@ -672,7 +672,11 @@
672
672
  "handle": "{{word}} 순서 바꾸기 (Alt + 화살표)",
673
673
  "hint": "Alt + ← → 로 순서 바꾸기"
674
674
  },
675
- "thumbMore": "+{{count}}"
675
+ "thumbMore": "+{{count}}",
676
+ "replaceItem": "다른 단어로",
677
+ "replacePair": "다른 쌍으로",
678
+ "replaceItemAria": "{{n}}번 칸만 다른 단어로",
679
+ "replacePairAria": "{{n}}번 칸만 다른 쌍으로"
676
680
  },
677
681
  "wordSearch": {
678
682
  "filterTitle": "단어 검색 설정",
@@ -46,4 +46,4 @@
46
46
  *
47
47
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
48
48
  */
49
- export declare const CORE_VERSION = "0.399.0";
49
+ export declare const CORE_VERSION = "0.400.0";
@@ -46,4 +46,4 @@
46
46
  *
47
47
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
48
48
  */
49
- export const CORE_VERSION = '0.399.0';
49
+ export const CORE_VERSION = '0.400.0';