@extend-ai/react-xlsx 0.18.1 → 0.20.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.
- package/README.md +154 -6
- package/dist/chart-renderer-AAVZ34BF.cjs +5048 -0
- package/dist/chart-renderer-AAVZ34BF.cjs.map +1 -0
- package/dist/{chart-renderer-HQSQHDCB.js → chart-renderer-KGLAI4DN.js} +25 -20
- package/dist/chart-renderer-KGLAI4DN.js.map +1 -0
- package/dist/{chart-renderer-ZUWRNNZT.cjs → chart-renderer-NM5UVCTO.cjs} +44 -39
- package/dist/chart-renderer-NM5UVCTO.cjs.map +1 -0
- package/dist/chart-renderer-RXO7WP4Q.js +5047 -0
- package/dist/chart-renderer-RXO7WP4Q.js.map +1 -0
- package/dist/chunk-2YBG7XQ3.cjs +26981 -0
- package/dist/chunk-2YBG7XQ3.cjs.map +1 -0
- package/dist/chunk-3JTCYAUX.js +50 -0
- package/dist/{chunk-OZLJPZUX.js.map → chunk-3JTCYAUX.js.map} +1 -1
- package/dist/chunk-6K3NSKDJ.cjs +50 -0
- package/dist/chunk-6K3NSKDJ.cjs.map +1 -0
- package/dist/chunk-CJBI5F6V.cjs +816 -0
- package/dist/chunk-CJBI5F6V.cjs.map +1 -0
- package/dist/{chunk-WFQGZI2Z.cjs → chunk-MCFUTO4J.cjs} +12 -8
- package/dist/chunk-MCFUTO4J.cjs.map +1 -0
- package/dist/chunk-NBH72POD.js +816 -0
- package/dist/chunk-NBH72POD.js.map +1 -0
- package/dist/{chunk-E2VSYCP2.cjs → chunk-O3V2MCOC.cjs} +18 -2
- package/dist/chunk-O3V2MCOC.cjs.map +1 -0
- package/dist/chunk-QN3D3JS2.js +26978 -0
- package/dist/chunk-QN3D3JS2.js.map +1 -0
- package/dist/{chunk-FO6MIHX4.cjs → chunk-T5WZHPIN.cjs} +2 -2
- package/dist/{chunk-FO6MIHX4.cjs.map → chunk-T5WZHPIN.cjs.map} +1 -1
- package/dist/{chunk-BAAMDEDS.js → chunk-VXBNYHW5.js} +18 -2
- package/dist/{chunk-BAAMDEDS.js.map → chunk-VXBNYHW5.js.map} +1 -1
- package/dist/{chunk-OZLJPZUX.js → chunk-WSQDFXDW.js} +10 -6
- package/dist/chunk-WSQDFXDW.js.map +1 -0
- package/dist/index.cjs +600 -11270
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -14
- package/dist/index.d.ts +5 -14
- package/dist/index.js +479 -11149
- package/dist/index.js.map +1 -1
- package/dist/internal-DrXSHYJZ.d.cts +1498 -0
- package/dist/internal-DrXSHYJZ.d.ts +1498 -0
- package/dist/internal.cjs +24 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +3 -0
- package/dist/internal.d.ts +3 -0
- package/dist/internal.js +23 -0
- package/dist/internal.js.map +1 -0
- package/dist/{region-map-geography-5E5SVPGS.cjs → region-map-geography-6TGXBY3V.cjs} +2 -2
- package/dist/{region-map-geography-5E5SVPGS.cjs.map → region-map-geography-6TGXBY3V.cjs.map} +1 -1
- package/dist/{spreadsheet-font-assets-7QMV43XD.cjs → spreadsheet-font-assets-4AHYDTAQ.cjs} +2 -2
- package/dist/{spreadsheet-font-assets-7QMV43XD.cjs.map → spreadsheet-font-assets-4AHYDTAQ.cjs.map} +1 -1
- package/dist/{surface-regl-WVLW3SEA.cjs → surface-regl-5Z6IVOID.cjs} +18 -15
- package/dist/surface-regl-5Z6IVOID.cjs.map +1 -0
- package/dist/{surface-regl-NWR5ZZ5D.js → surface-regl-7CDGGVDG.js} +10 -7
- package/dist/surface-regl-7CDGGVDG.js.map +1 -0
- package/dist/surface-regl-AY7JZVYY.cjs +727 -0
- package/dist/surface-regl-AY7JZVYY.cjs.map +1 -0
- package/dist/surface-regl-TJUWTLAZ.js +726 -0
- package/dist/surface-regl-TJUWTLAZ.js.map +1 -0
- package/dist/vanilla.cjs +20 -0
- package/dist/vanilla.cjs.map +1 -0
- package/dist/vanilla.d.cts +9 -0
- package/dist/vanilla.d.ts +9 -0
- package/dist/vanilla.js +19 -0
- package/dist/vanilla.js.map +1 -0
- package/dist/xlsx-worker.js +2888 -34
- package/dist/xlsx-worker.js.map +1 -1
- package/package.json +23 -3
- package/dist/chart-renderer-HQSQHDCB.js.map +0 -1
- package/dist/chart-renderer-ZUWRNNZT.cjs.map +0 -1
- package/dist/chunk-E2VSYCP2.cjs.map +0 -1
- package/dist/chunk-WFQGZI2Z.cjs.map +0 -1
- package/dist/surface-regl-NWR5ZZ5D.js.map +0 -1
- package/dist/surface-regl-WVLW3SEA.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import * as _dukelib_sheets_wasm from '@dukelib/sheets-wasm';
|
|
3
2
|
import { Workbook, Worksheet } from '@dukelib/sheets-wasm';
|
|
3
|
+
export { XlsxFileSizeLimitExceededError, XlsxWasmSource, initWasm, parseXlsxRange, setWasmSource } from '@extend-ai/react-xlsx/vanilla';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
interface XlsxThemePalette {
|
|
@@ -1078,6 +1078,8 @@ interface XlsxViewerController {
|
|
|
1078
1078
|
chartsheets: XlsxChartsheet[];
|
|
1079
1079
|
exportCsv: () => void;
|
|
1080
1080
|
exportXlsx: () => void;
|
|
1081
|
+
/** The current workbook as XLSX bytes, the same bytes `exportXlsx()` downloads; `null` before a workbook loads. */
|
|
1082
|
+
getXlsxBytes: () => Uint8Array | null;
|
|
1081
1083
|
error: Error | null;
|
|
1082
1084
|
file?: ArrayBuffer;
|
|
1083
1085
|
fillSelection: (targetRange: XlsxCellRange) => void;
|
|
@@ -1742,19 +1744,9 @@ interface XlsxViewerProps extends UseXlsxViewerControllerOptions {
|
|
|
1742
1744
|
toolbar?: React.ReactNode | ((controller: XlsxViewerController) => React.ReactNode);
|
|
1743
1745
|
}
|
|
1744
1746
|
|
|
1745
|
-
declare class XlsxFileSizeLimitExceededError extends Error {
|
|
1746
|
-
fileSizeBytes: number;
|
|
1747
|
-
maxFileSizeBytes: number;
|
|
1748
|
-
constructor(fileSizeBytes: number, maxFileSizeBytes: number);
|
|
1749
|
-
}
|
|
1750
1747
|
declare function useXlsxViewerController(options: UseXlsxViewerControllerOptions): XlsxViewerController;
|
|
1751
1748
|
|
|
1752
|
-
|
|
1753
|
-
declare function parseXlsxRange(reference: string): XlsxParsedRange | null;
|
|
1754
|
-
|
|
1755
|
-
type XlsxWasmSource = string | URL | Request | Response | BufferSource | WebAssembly.Module;
|
|
1756
|
-
declare function setWasmSource(source: XlsxWasmSource): void;
|
|
1757
|
-
declare function initWasm(source?: XlsxWasmSource): Promise<typeof _dukelib_sheets_wasm>;
|
|
1749
|
+
declare function XlsxViewer(props: XlsxViewerProps): react_jsx_runtime.JSX.Element;
|
|
1758
1750
|
|
|
1759
1751
|
declare function XlsxViewerProvider({ children, controller, isDark, ...options }: XlsxViewerProviderProps): react_jsx_runtime.JSX.Element;
|
|
1760
1752
|
declare function useXlsxViewer(): XlsxViewerController;
|
|
@@ -1765,7 +1757,6 @@ declare function useXlsxViewerTables(): XlsxViewerTables;
|
|
|
1765
1757
|
declare function useXlsxViewerImages(): XlsxViewerImages;
|
|
1766
1758
|
declare function useXlsxViewerCharts(): XlsxViewerCharts;
|
|
1767
1759
|
declare function useXlsxViewerThumbnails(options?: UseXlsxViewerThumbnailsOptions): XlsxViewerThumbnails;
|
|
1768
|
-
declare function XlsxViewer(props: XlsxViewerProps): react_jsx_runtime.JSX.Element;
|
|
1769
1760
|
declare function DefaultXlsxToolbar(): react_jsx_runtime.JSX.Element;
|
|
1770
1761
|
|
|
1771
|
-
export { DefaultXlsxToolbar, type UseXlsxViewerControllerOptions, type UseXlsxViewerThumbnailsOptions, type XlsxActiveCellOverlayRenderProps, type XlsxCellAddress, type XlsxCellAlignmentInput, type XlsxCellBorderEdgeInput, type XlsxCellBorderStyleInput, type XlsxCellFillStyleInput, type XlsxCellFontStyleInput, type XlsxCellGradientStopInput, type XlsxCellNumberFormatInput, type XlsxCellProtectionInput, type XlsxCellRange, type XlsxCellStyleColorInput, type XlsxCellStyleContext, type XlsxCellStyleInput, type XlsxChart, type XlsxChartAxis, type XlsxChartDataLabels, type XlsxChartElementSelection, type XlsxChartLoadingRenderProps, type XlsxChartReference, type XlsxChartSeries, type XlsxChartsheet, type XlsxContextMenuAction, type XlsxContextMenuActionId, type XlsxContextMenuContext, type XlsxContextMenuRenderProps, type XlsxDrawingLayout,
|
|
1762
|
+
export { DefaultXlsxToolbar, type UseXlsxViewerControllerOptions, type UseXlsxViewerThumbnailsOptions, type XlsxActiveCellOverlayRenderProps, type XlsxCellAddress, type XlsxCellAlignmentInput, type XlsxCellBorderEdgeInput, type XlsxCellBorderStyleInput, type XlsxCellFillStyleInput, type XlsxCellFontStyleInput, type XlsxCellGradientStopInput, type XlsxCellNumberFormatInput, type XlsxCellProtectionInput, type XlsxCellRange, type XlsxCellStyleColorInput, type XlsxCellStyleContext, type XlsxCellStyleInput, type XlsxChart, type XlsxChartAxis, type XlsxChartDataLabels, type XlsxChartElementSelection, type XlsxChartLoadingRenderProps, type XlsxChartReference, type XlsxChartSeries, type XlsxChartsheet, type XlsxContextMenuAction, type XlsxContextMenuActionId, type XlsxContextMenuContext, type XlsxContextMenuRenderProps, type XlsxDrawingLayout, type XlsxFileTooLargeRenderProps, type XlsxFormControl, type XlsxFormControlActionEvent, type XlsxFormControlCaption, type XlsxFormControlCaptionInput, type XlsxFormControlCaptionRun, type XlsxFormControlChangeEvent, type XlsxFormControlInput, type XlsxFormControlKind, type XlsxFormControlKindInput, type XlsxFormControlPatch, type XlsxFormControlRenderProps, type XlsxFormControlSelectionMode, type XlsxFormControlState, type XlsxFormulaTarget, type XlsxHighlightRangeOptions, type XlsxImage, type XlsxImageAnchor, type XlsxImageRect, type XlsxImageRenderProps, type XlsxImageResizeHandlePosition, type XlsxImageSelectionRenderProps, type XlsxMergeMode, type XlsxParsedRange, type XlsxRangeHighlight, type XlsxScrollerRenderProps, type XlsxShape, type XlsxShapeFill, type XlsxShapeParagraph, type XlsxShapeStroke, type XlsxShapeTextBox, type XlsxShapeTextRun, type XlsxSheetData, type XlsxSheetThumbnail, type XlsxSheetThumbnailResolution, type XlsxSheetVisibility, type XlsxTable, type XlsxTableColumn, type XlsxTableHeaderMenuRenderProps, type XlsxTableSortDirection, type XlsxTableSortState, type XlsxThemePalette, XlsxViewer, type XlsxViewerCharts, type XlsxViewerController, type XlsxViewerEditing, type XlsxViewerImages, type XlsxViewerProps, XlsxViewerProvider, type XlsxViewerProviderProps, type XlsxViewerSelection, type XlsxViewerTables, type XlsxViewerThumbnails, type XlsxViewerZoom, type XlsxWorkbookTab, useXlsxViewer, useXlsxViewerCharts, useXlsxViewerController, useXlsxViewerEditing, useXlsxViewerImages, useXlsxViewerSelection, useXlsxViewerTables, useXlsxViewerThumbnails, useXlsxViewerZoom };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import * as _dukelib_sheets_wasm from '@dukelib/sheets-wasm';
|
|
3
2
|
import { Workbook, Worksheet } from '@dukelib/sheets-wasm';
|
|
3
|
+
export { XlsxFileSizeLimitExceededError, XlsxWasmSource, initWasm, parseXlsxRange, setWasmSource } from '@extend-ai/react-xlsx/vanilla';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
interface XlsxThemePalette {
|
|
@@ -1078,6 +1078,8 @@ interface XlsxViewerController {
|
|
|
1078
1078
|
chartsheets: XlsxChartsheet[];
|
|
1079
1079
|
exportCsv: () => void;
|
|
1080
1080
|
exportXlsx: () => void;
|
|
1081
|
+
/** The current workbook as XLSX bytes, the same bytes `exportXlsx()` downloads; `null` before a workbook loads. */
|
|
1082
|
+
getXlsxBytes: () => Uint8Array | null;
|
|
1081
1083
|
error: Error | null;
|
|
1082
1084
|
file?: ArrayBuffer;
|
|
1083
1085
|
fillSelection: (targetRange: XlsxCellRange) => void;
|
|
@@ -1742,19 +1744,9 @@ interface XlsxViewerProps extends UseXlsxViewerControllerOptions {
|
|
|
1742
1744
|
toolbar?: React.ReactNode | ((controller: XlsxViewerController) => React.ReactNode);
|
|
1743
1745
|
}
|
|
1744
1746
|
|
|
1745
|
-
declare class XlsxFileSizeLimitExceededError extends Error {
|
|
1746
|
-
fileSizeBytes: number;
|
|
1747
|
-
maxFileSizeBytes: number;
|
|
1748
|
-
constructor(fileSizeBytes: number, maxFileSizeBytes: number);
|
|
1749
|
-
}
|
|
1750
1747
|
declare function useXlsxViewerController(options: UseXlsxViewerControllerOptions): XlsxViewerController;
|
|
1751
1748
|
|
|
1752
|
-
|
|
1753
|
-
declare function parseXlsxRange(reference: string): XlsxParsedRange | null;
|
|
1754
|
-
|
|
1755
|
-
type XlsxWasmSource = string | URL | Request | Response | BufferSource | WebAssembly.Module;
|
|
1756
|
-
declare function setWasmSource(source: XlsxWasmSource): void;
|
|
1757
|
-
declare function initWasm(source?: XlsxWasmSource): Promise<typeof _dukelib_sheets_wasm>;
|
|
1749
|
+
declare function XlsxViewer(props: XlsxViewerProps): react_jsx_runtime.JSX.Element;
|
|
1758
1750
|
|
|
1759
1751
|
declare function XlsxViewerProvider({ children, controller, isDark, ...options }: XlsxViewerProviderProps): react_jsx_runtime.JSX.Element;
|
|
1760
1752
|
declare function useXlsxViewer(): XlsxViewerController;
|
|
@@ -1765,7 +1757,6 @@ declare function useXlsxViewerTables(): XlsxViewerTables;
|
|
|
1765
1757
|
declare function useXlsxViewerImages(): XlsxViewerImages;
|
|
1766
1758
|
declare function useXlsxViewerCharts(): XlsxViewerCharts;
|
|
1767
1759
|
declare function useXlsxViewerThumbnails(options?: UseXlsxViewerThumbnailsOptions): XlsxViewerThumbnails;
|
|
1768
|
-
declare function XlsxViewer(props: XlsxViewerProps): react_jsx_runtime.JSX.Element;
|
|
1769
1760
|
declare function DefaultXlsxToolbar(): react_jsx_runtime.JSX.Element;
|
|
1770
1761
|
|
|
1771
|
-
export { DefaultXlsxToolbar, type UseXlsxViewerControllerOptions, type UseXlsxViewerThumbnailsOptions, type XlsxActiveCellOverlayRenderProps, type XlsxCellAddress, type XlsxCellAlignmentInput, type XlsxCellBorderEdgeInput, type XlsxCellBorderStyleInput, type XlsxCellFillStyleInput, type XlsxCellFontStyleInput, type XlsxCellGradientStopInput, type XlsxCellNumberFormatInput, type XlsxCellProtectionInput, type XlsxCellRange, type XlsxCellStyleColorInput, type XlsxCellStyleContext, type XlsxCellStyleInput, type XlsxChart, type XlsxChartAxis, type XlsxChartDataLabels, type XlsxChartElementSelection, type XlsxChartLoadingRenderProps, type XlsxChartReference, type XlsxChartSeries, type XlsxChartsheet, type XlsxContextMenuAction, type XlsxContextMenuActionId, type XlsxContextMenuContext, type XlsxContextMenuRenderProps, type XlsxDrawingLayout,
|
|
1762
|
+
export { DefaultXlsxToolbar, type UseXlsxViewerControllerOptions, type UseXlsxViewerThumbnailsOptions, type XlsxActiveCellOverlayRenderProps, type XlsxCellAddress, type XlsxCellAlignmentInput, type XlsxCellBorderEdgeInput, type XlsxCellBorderStyleInput, type XlsxCellFillStyleInput, type XlsxCellFontStyleInput, type XlsxCellGradientStopInput, type XlsxCellNumberFormatInput, type XlsxCellProtectionInput, type XlsxCellRange, type XlsxCellStyleColorInput, type XlsxCellStyleContext, type XlsxCellStyleInput, type XlsxChart, type XlsxChartAxis, type XlsxChartDataLabels, type XlsxChartElementSelection, type XlsxChartLoadingRenderProps, type XlsxChartReference, type XlsxChartSeries, type XlsxChartsheet, type XlsxContextMenuAction, type XlsxContextMenuActionId, type XlsxContextMenuContext, type XlsxContextMenuRenderProps, type XlsxDrawingLayout, type XlsxFileTooLargeRenderProps, type XlsxFormControl, type XlsxFormControlActionEvent, type XlsxFormControlCaption, type XlsxFormControlCaptionInput, type XlsxFormControlCaptionRun, type XlsxFormControlChangeEvent, type XlsxFormControlInput, type XlsxFormControlKind, type XlsxFormControlKindInput, type XlsxFormControlPatch, type XlsxFormControlRenderProps, type XlsxFormControlSelectionMode, type XlsxFormControlState, type XlsxFormulaTarget, type XlsxHighlightRangeOptions, type XlsxImage, type XlsxImageAnchor, type XlsxImageRect, type XlsxImageRenderProps, type XlsxImageResizeHandlePosition, type XlsxImageSelectionRenderProps, type XlsxMergeMode, type XlsxParsedRange, type XlsxRangeHighlight, type XlsxScrollerRenderProps, type XlsxShape, type XlsxShapeFill, type XlsxShapeParagraph, type XlsxShapeStroke, type XlsxShapeTextBox, type XlsxShapeTextRun, type XlsxSheetData, type XlsxSheetThumbnail, type XlsxSheetThumbnailResolution, type XlsxSheetVisibility, type XlsxTable, type XlsxTableColumn, type XlsxTableHeaderMenuRenderProps, type XlsxTableSortDirection, type XlsxTableSortState, type XlsxThemePalette, XlsxViewer, type XlsxViewerCharts, type XlsxViewerController, type XlsxViewerEditing, type XlsxViewerImages, type XlsxViewerProps, XlsxViewerProvider, type XlsxViewerProviderProps, type XlsxViewerSelection, type XlsxViewerTables, type XlsxViewerThumbnails, type XlsxViewerZoom, type XlsxWorkbookTab, useXlsxViewer, useXlsxViewerCharts, useXlsxViewerController, useXlsxViewerEditing, useXlsxViewerImages, useXlsxViewerSelection, useXlsxViewerTables, useXlsxViewerThumbnails, useXlsxViewerZoom };
|