@fileverse-dev/dsheet 2.0.4 → 2.0.6

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.
@@ -24,6 +24,7 @@ export declare const getCellClone: (r: number, c: number, sheetEditorRef: React.
24
24
  ct?: {
25
25
  fa?: string;
26
26
  t?: string;
27
+ tb?: string;
27
28
  s?: any;
28
29
  };
29
30
  qp?: number;
@@ -67,13 +68,16 @@ export declare const buildCellFormat: (value: any, existingCt: Cell["ct"], heade
67
68
  t: string;
68
69
  fa: string;
69
70
  ht: number;
71
+ tb?: string;
70
72
  } | {
71
73
  t: string;
72
74
  fa: string;
75
+ s: any;
76
+ tb?: string;
73
77
  } | {
74
78
  t: string;
75
79
  fa: string;
76
- s: any;
80
+ tb?: string;
77
81
  };
78
82
  export declare const preserveTextColorFromInlineStyle: (existing: any, nextIsNum: boolean) => {
79
83
  fc?: undefined;
@@ -93,6 +97,7 @@ export declare const cloneCellStyles: (cell: Cell) => {
93
97
  ct?: {
94
98
  fa?: string;
95
99
  t?: string;
100
+ tb?: string;
96
101
  s?: any;
97
102
  };
98
103
  qp?: number;
@@ -0,0 +1,16 @@
1
+ /** Legacy single entry or multi-link array — XLSX round-trip uses the first link only. */
2
+ export declare function getFirstHyperlinkEntry(raw: unknown): {
3
+ linkType: string;
4
+ linkAddress: string;
5
+ } | undefined;
6
+ /** Plain text from `ct.s` — fast path when a single run (e.g. post-import normalization). */
7
+ export declare function concatInlineStrRunsText(runs: unknown[]): string;
8
+ export type HyperlinkEntryLite = {
9
+ linkType: string;
10
+ linkAddress: string;
11
+ };
12
+ /**
13
+ * After Excel import: one `ct.s` run with link + typography; strip root/ct fc/un so the grid
14
+ * reads styles from segments only (matches native hyperlink cells).
15
+ */
16
+ export declare function normalizeImportedHyperlinkCellV(cellV: Record<string, unknown>, hyperlink: HyperlinkEntryLite): void;