onchain-uikit 3.9.4-alpha73 → 3.9.4-alpha74

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.
@@ -159990,12 +159990,13 @@ class LuckyExcel {
159990
159990
  }
159991
159991
  }
159992
159992
  const waitUserSelectExcelFile = ($3) => {
159993
- const { onSelect: t3, accept: h3 = ".csv" } = $3, k3 = document.createElement("input");
159994
- k3.type = "file", k3.accept = h3, k3.click(), k3.oncancel = () => {
159995
- }, k3.onchange = () => {
159996
- var $8;
159997
- const A3 = ($8 = k3.files) == null ? void 0 : $8[0];
159998
- A3 && (t3 == null || t3(A3));
159993
+ const { onSelect: t3, onCancel: h3, accept: k3 = ".csv" } = $3, A3 = document.createElement("input");
159994
+ A3.type = "file", A3.accept = k3, A3.click(), A3.oncancel = () => {
159995
+ h3 == null || h3();
159996
+ }, A3.onchange = () => {
159997
+ var S8;
159998
+ const $8 = (S8 = A3.files) == null ? void 0 : S8[0];
159999
+ $8 && (t3 == null || t3($8));
159999
160000
  };
160000
160001
  }, getExportExcel = async ({ onCancel: $3 }) => new Promise((t3, h3) => {
160001
160002
  waitUserSelectExcelFile({
@@ -160010,7 +160011,8 @@ const waitUserSelectExcelFile = ($3) => {
160010
160011
  console.log(A3), h3(A3);
160011
160012
  }
160012
160013
  );
160013
- }
160014
+ },
160015
+ onCancel: $3
160014
160016
  });
160015
160017
  }), OperationId$1 = "custom-menu.operation.import", ImportButtonOperation = ($3) => ({
160016
160018
  id: OperationId$1,
@@ -284554,5 +284556,6 @@ const univerConfig = {
284554
284556
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: "app", style: { height: "100%", width: "100%" } });
284555
284557
  });
284556
284558
  export {
284557
- OnChainUniverExcel as default
284559
+ OnChainUniverExcel as default,
284560
+ getExportExcel
284558
284561
  };
@@ -1,10 +1,12 @@
1
1
  import { default as React } from 'react';
2
2
  import { FRange } from '@univerjs/sheets/facade';
3
+ import { getExportExcel } from './plugins/controllers/menu/import';
3
4
  export interface OnChainUniverExcelProps {
4
5
  dragDataRef?: any;
5
6
  onDragEnd?: (range: FRange) => void;
6
7
  onSaveDataBase?: (data: any) => void;
7
8
  onGetInitData?: () => any;
8
9
  }
10
+ export { getExportExcel };
9
11
  declare const OnChainUniverExcel: React.ForwardRefExoticComponent<OnChainUniverExcelProps & React.RefAttributes<any>>;
10
12
  export default OnChainUniverExcel;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onchain-uikit",
3
3
  "private": false,
4
- "version": "3.9.4-alpha73",
4
+ "version": "3.9.4-alpha74",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "build": "cross-env NODE_OPTIONS=--max_old_space_size=4096 vite build",