@iyulab/flex-table 0.40.1 → 0.40.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.40.2] - 2026-09-30
4
+
5
+ ### Fixed
6
+
7
+ - **`Locale.set()` from `@iyulab/components` reaches the table again.** The build copied the parts of
8
+ `@iyulab/components` this package uses (`Locale`, number and date formatting, the IME check) into its
9
+ own bundle, so the table kept a separate locale of its own: an app that switched language with
10
+ `Locale.set()` saw the table's menus, labels and formatted values stay in the language detected at
11
+ startup (it matched only when `<html lang>` was already right). `@iyulab/components` is now imported,
12
+ not copied.
13
+ - **Copying cells quotes a cell that contains a line break, a tab or a double quote**, so a multi-line
14
+ note pastes into Excel or Google Sheets as one cell instead of splitting into rows. Pasting keeps a
15
+ trailing row of empty cells, which used to be dropped. The clipboard format now comes from
16
+ `@iyulab/components` (`encodeTsv` / `decodeTsv`).
17
+
18
+ ### Changed
19
+
20
+ - Requires `@iyulab/components` 1.52.0 or later (peer).
21
+
3
22
  ## [0.40.1] - 2026-09-30
4
23
 
5
24
  ### Fixed
@@ -1,12 +1,8 @@
1
1
  import type { CellRange } from '../core/selection.js';
2
2
  import type { ColumnDefinition, DataRow } from '../models/types.js';
3
3
  /**
4
- * Copy selected range to clipboard as TSV.
4
+ * Copy selected range to clipboard as TSV — the spreadsheet clipboard format (see `encodeTsv`):
5
+ * a cell containing a tab, a line break or a quote is quoted, so it pastes into Excel as one cell.
5
6
  */
6
7
  export declare function copyToClipboard(data: DataRow[], columns: ColumnDefinition[], range: CellRange): string;
7
- /**
8
- * Parse TSV/CSV clipboard text into a 2D array of strings.
9
- * Handles RFC 4180 quoted fields: double-quote escaping, embedded tabs/newlines.
10
- */
11
- export declare function parseClipboardText(text: string): string[][];
12
8
  export declare function parseValueForColumn(raw: string, col: ColumnDefinition): unknown;