@fileverse-dev/dsheet 4.0.3-import-compaction.0 → 4.0.3-import-compaction.1

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.
@@ -0,0 +1,25 @@
1
+ import { Sheet } from '../../sheet-engine/react';
2
+
3
+ export declare function generateImportSheetId(): string;
4
+ export type XlsxImportWarning = {
5
+ code: 'tables-unsupported';
6
+ } | {
7
+ code: 'filters-unsupported';
8
+ };
9
+ export type XlsxParseSettings = {
10
+ /** Workbook default column width in px (from the live workbook settings, if any). */
11
+ workbookDefaultColWidth?: number;
12
+ /** Workbook default row height in px (from the live workbook settings, if any). */
13
+ workbookDefaultRowHeight?: number;
14
+ };
15
+ export type XlsxParsedWorkbook = {
16
+ /** Decorated + compacted sheets, ready for the ydoc write. */
17
+ sheets: Sheet[];
18
+ /** Workbook name from luckyexcel info (extension not yet stripped). */
19
+ workbookName: string;
20
+ /** UI warnings to replay on the main thread (toasts/onWarning). */
21
+ warnings: XlsxImportWarning[];
22
+ /** Sheet ids this pipeline generated — the caller may remap them with a custom generator. */
23
+ generatedSheetIds: string[];
24
+ };
25
+ export declare function parseXlsxWorkbook(file: File, settings?: XlsxParseSettings): Promise<XlsxParsedWorkbook>;
@@ -50015,7 +50015,7 @@ const DF = ({
50015
50015
  }, Y.readAsText(b);
50016
50016
  });
50017
50017
  }, T1 = async (e, t, l, i) => {
50018
- const { handleExportToXLSX: n } = await import("./xlsx-export-impl-1Lzcuf9K.js");
50018
+ const { handleExportToXLSX: n } = await import("./xlsx-export-impl-DZRu--sN.js");
50019
50019
  return n(e, t, l, i);
50020
50020
  }, fr = (e) => {
50021
50021
  NI({
@@ -50107,7 +50107,7 @@ const DF = ({
50107
50107
  const [o, a] = Xe(!1);
50108
50108
  return { handleXLSXUpload: ge(
50109
50109
  async (r, m, h) => {
50110
- const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-B_KWT6Kk.js");
50110
+ const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-DC5xEiJb.js");
50111
50111
  return b(
50112
50112
  {
50113
50113
  sheetEditorRef: e,
@@ -54981,7 +54981,7 @@ async function hK(e, t) {
54981
54981
  { suppressUiWarnings: !0 }
54982
54982
  );
54983
54983
  else {
54984
- const { runXlsxFileUpload: m } = await import("./use-xlsx-import-impl-B_KWT6Kk.js");
54984
+ const { runXlsxFileUpload: m } = await import("./use-xlsx-import-impl-DC5xEiJb.js");
54985
54985
  await m(
54986
54986
  {
54987
54987
  sheetEditorRef: d,
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as s, b as t, d as o, S as r, f as l, g as d, h as n, T as i, j as S, k as c, l as h, n as m, o as p, p as C, q as u, s as E, t as F, u as g, v as x, w as R, x as f, z as w, A, B as I, D as L, E as T, F as v, G as b, H as D } from "./index-Be1UXKhA.js";
1
+ import { C as s, b as t, d as o, S as r, f as l, g as d, h as n, T as i, j as S, k as c, l as h, n as m, o as p, p as C, q as u, s as E, t as F, u as g, v as x, w as R, x as f, z as w, A, B as I, D as L, E as T, F as v, G as b, H as D } from "./index-CtF9qA4V.js";
2
2
  import { cr as k, cs as V, ct as y, cy as z, bo as P, e as U, f as X, l as _, a as B, d7 as G, d8 as H, b7 as O, d9 as j, da as q, de as J, df as K, dh as N, I as W, dw as Y, dW as Z, b0 as Q } from "./executeStringFunction-C1C2F-4h.js";
3
3
  import { FLVURL as ee } from "@fileverse-dev/formulajs";
4
4
  import { E as se, S as te } from "./constants-Cdz6oSCq.js";