@sheetxl/react 0.7.12 → 0.7.14
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/browser/cjs/{B_dNzJwmNg0l7aiE.cjs → BB3MqE6MmDe-ge2D.cjs} +1 -1
- package/browser/cjs/{CrDRRf0go49nXoDF.cjs → BT91Yv7BVJbUjPkz.cjs} +1 -1
- package/browser/cjs/{DjhtGFvIJtPcjvpm.cjs → CVIHFd-SYF31eyeF.cjs} +1 -1
- package/browser/cjs/index.cjs +15 -15
- package/browser/esm/{CYv_wYuSWlgR0fhz.mjs → -HOHXjsBY9659ZW0.mjs} +1 -1
- package/browser/esm/{DATkvhXgjy8Utnd3.mjs → BfSiVxlUgQSbarku.mjs} +1 -1
- package/browser/esm/{C-o0e1wIN0bZuaVF.mjs → CLF8ImQujJdTB7pl.mjs} +1 -1
- package/browser/esm/index.mjs +3887 -3893
- package/licenses/dependencies.txt +1 -1
- package/node/esm/{BaxwbShUvlIREQtz.mjs → DKLIXbtzq6HxItZV.mjs} +1 -1
- package/node/esm/index.mjs +1565 -1572
- package/package.json +11 -7
- package/types/index.d.ts +99 -44
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/react",
|
|
3
3
|
"description": "React - React components needed to build advanced grid and spreadsheet UIs.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.14",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@dnd-kit/sortable": "^10.0.0",
|
|
50
50
|
"@dnd-kit/utilities": "^3.2.2",
|
|
51
51
|
"@monaco-editor/react": "^4.6.0",
|
|
52
|
-
"@sheetxl/grid-react": "^0.7.
|
|
53
|
-
"@sheetxl/sdk": "^0.7.
|
|
54
|
-
"@sheetxl/utils": "^0.7.
|
|
55
|
-
"@sheetxl/utils-react": "^0.7.
|
|
52
|
+
"@sheetxl/grid-react": "^0.7.14",
|
|
53
|
+
"@sheetxl/sdk": "^0.7.14",
|
|
54
|
+
"@sheetxl/utils": "^0.7.14",
|
|
55
|
+
"@sheetxl/utils-react": "^0.7.14",
|
|
56
56
|
"clsx": "^2.1.1",
|
|
57
57
|
"monaco-editor-auto-typings": "^0.4.6",
|
|
58
58
|
"react-merge-refs": "^3.0.2",
|
|
@@ -61,7 +61,11 @@
|
|
|
61
61
|
"rooks": "^9.3.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"react": "^19.
|
|
65
|
-
"react-dom": "^19.
|
|
64
|
+
"react": "^19.0.0",
|
|
65
|
+
"react-dom": "^19.0.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@types/react": "^19.2.0",
|
|
69
|
+
"@types/react-dom": "^19.2.0"
|
|
66
70
|
}
|
|
67
71
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { CopyPasteResults } from '@sheetxl/utils-react';
|
|
|
11
11
|
import { default as default_2 } from 'react';
|
|
12
12
|
import { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
13
13
|
import { EditState } from '@sheetxl/grid-react';
|
|
14
|
+
import { FocusWindowOptions } from '@sheetxl/utils-react';
|
|
14
15
|
import { FrozenEdge } from '@sheetxl/grid-react';
|
|
15
16
|
import { GridProps } from '@sheetxl/grid-react';
|
|
16
17
|
import { GridStyle } from '@sheetxl/grid-react';
|
|
@@ -64,6 +65,13 @@ import { TopLeft } from '@sheetxl/utils';
|
|
|
64
65
|
import { Transform } from '@dnd-kit/utilities';
|
|
65
66
|
import { VirtualScrollbarProps } from '@sheetxl/utils-react';
|
|
66
67
|
|
|
68
|
+
export declare interface ActivateFrameOptions {
|
|
69
|
+
/**
|
|
70
|
+
* If not provided then will drive autoFocus
|
|
71
|
+
*/
|
|
72
|
+
autoFocus?: boolean | string | FocusWindowOptions;
|
|
73
|
+
}
|
|
74
|
+
|
|
67
75
|
declare interface Border {
|
|
68
76
|
readonly darkMode: boolean;
|
|
69
77
|
readonly autoColor: IColor;
|
|
@@ -238,7 +246,13 @@ export declare namespace CommandContext {
|
|
|
238
246
|
Table,
|
|
239
247
|
Theme,
|
|
240
248
|
NamedReference,
|
|
241
|
-
|
|
249
|
+
ResizeHeaderOptions,
|
|
250
|
+
ResizeHeaderContext,
|
|
251
|
+
NewTable,
|
|
252
|
+
SelectedRange,
|
|
253
|
+
FormulaFunction,
|
|
254
|
+
FindScopeOptions,
|
|
255
|
+
FindReplaceOptions
|
|
242
256
|
}
|
|
243
257
|
}
|
|
244
258
|
|
|
@@ -271,17 +285,6 @@ export declare interface CornerTriangleProps extends default_2.SVGProps<SVGSVGEl
|
|
|
271
285
|
|
|
272
286
|
export declare const createCellEditStateFromCell: (clean: () => ICell, dirty?: string) => EditState<() => ICell, string>;
|
|
273
287
|
|
|
274
|
-
export declare namespace DateUtils {
|
|
275
|
-
export {
|
|
276
|
-
nowWithPrecision
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* A list of font sizes for showing in drop downs.
|
|
282
|
-
*/
|
|
283
|
-
declare const DefaultFontSizes: readonly number[];
|
|
284
|
-
|
|
285
288
|
export declare const DefaultTaskPaneRegistry: TaskPaneRegistry;
|
|
286
289
|
|
|
287
290
|
export declare const DocThemesContext: Context<IThemeCollection>;
|
|
@@ -364,17 +367,52 @@ export declare interface FilterButtonProps extends default_2.HTMLAttributes<HTML
|
|
|
364
367
|
}
|
|
365
368
|
|
|
366
369
|
/**
|
|
367
|
-
*
|
|
370
|
+
* Used for the find/replace dialog.
|
|
368
371
|
*/
|
|
369
|
-
declare
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
372
|
+
declare interface FindReplaceOptions {
|
|
373
|
+
/**
|
|
374
|
+
* Options for find.
|
|
375
|
+
*/
|
|
376
|
+
findOptions?: ICellRange.FindOptions;
|
|
377
|
+
/**
|
|
378
|
+
* If replacing with null then set to true.
|
|
379
|
+
*/
|
|
380
|
+
replace?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* The text to replace the found text with.
|
|
383
|
+
*/
|
|
384
|
+
replaceText?: string | null;
|
|
385
|
+
/**
|
|
386
|
+
* Options for replace.
|
|
387
|
+
*/
|
|
388
|
+
replaceOptions?: IWorkbook.ReplaceOptions;
|
|
389
|
+
/**
|
|
390
|
+
* If true the operation will signal to the ui container to
|
|
391
|
+
* autoFocus.
|
|
392
|
+
*
|
|
393
|
+
* @remarks
|
|
394
|
+
* For replaceAll this is ignored.
|
|
395
|
+
*/
|
|
396
|
+
autoFocus?: boolean;
|
|
397
|
+
/**
|
|
398
|
+
* Default value 'Sheet'
|
|
399
|
+
*/
|
|
400
|
+
scope?: FindScopeOptions;
|
|
376
401
|
}
|
|
377
402
|
|
|
403
|
+
declare const FindScopeOptions: {
|
|
404
|
+
/**
|
|
405
|
+
* Search the entire workbook
|
|
406
|
+
*/
|
|
407
|
+
readonly Workbook: "workbook";
|
|
408
|
+
/**
|
|
409
|
+
* Search the current sheet or range
|
|
410
|
+
*/
|
|
411
|
+
readonly Sheet: "sheet";
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
declare type FindScopeOptions = typeof FindScopeOptions[keyof typeof FindScopeOptions];
|
|
415
|
+
|
|
378
416
|
declare interface FormulaFunction {
|
|
379
417
|
searchByCategory: (category: string) => Promise<IFunction[]>;
|
|
380
418
|
}
|
|
@@ -391,6 +429,18 @@ export declare interface IEditableLabelElement extends HTMLDivElement, EditableL
|
|
|
391
429
|
export declare interface IEmptyFrameElement extends HTMLDivElement, EmptyFrameAttributes {
|
|
392
430
|
}
|
|
393
431
|
|
|
432
|
+
export declare interface IFrame {
|
|
433
|
+
addListener: (listener: IFrameContainerListener) => RemoveListener;
|
|
434
|
+
close: () => void;
|
|
435
|
+
focus: (options?: FocusWindowOptions) => void;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export declare interface IFrameContainerListener {
|
|
439
|
+
onShow?: () => void;
|
|
440
|
+
onBeforeHide?: () => void | Promise<boolean>;
|
|
441
|
+
onHide?: () => void;
|
|
442
|
+
}
|
|
443
|
+
|
|
394
444
|
export declare interface IMovableAreaElement extends HTMLDivElement, MovableAreaAttributes {
|
|
395
445
|
}
|
|
396
446
|
|
|
@@ -546,25 +596,12 @@ export declare interface ITaskPaneArea {
|
|
|
546
596
|
* This will show and focus a task pane by key.
|
|
547
597
|
* @param key The task pane key.
|
|
548
598
|
*/
|
|
549
|
-
activateTaskPane: (key: string, options?:
|
|
550
|
-
focus?: boolean;
|
|
551
|
-
} & any) => void;
|
|
599
|
+
activateTaskPane: (key: string, options?: ActivateFrameOptions) => void;
|
|
552
600
|
}
|
|
553
601
|
|
|
554
602
|
export declare interface ITaskPaneAreaElement extends HTMLDivElement, ITaskPaneArea {
|
|
555
603
|
}
|
|
556
604
|
|
|
557
|
-
export declare interface ITaskPaneContainerListener {
|
|
558
|
-
onShow?: () => void;
|
|
559
|
-
onBeforeHide?: () => void | Promise<boolean>;
|
|
560
|
-
onHide?: () => void;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
export declare interface ITaskPaneFrame {
|
|
564
|
-
addListener: (listener: ITaskPaneContainerListener) => RemoveListener;
|
|
565
|
-
close: () => void;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
605
|
export declare interface ITaskPaneRegistry {
|
|
569
606
|
/**
|
|
570
607
|
* Registers a task pane container.
|
|
@@ -605,6 +642,11 @@ export declare const LogoNoPaddingIcon: (props: default_2.SVGProps<SVGSVGElement
|
|
|
605
642
|
|
|
606
643
|
export declare const LogoTextNoPaddingIcon: (props: default_2.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
607
644
|
|
|
645
|
+
export declare interface ModalFrame extends IFrame {
|
|
646
|
+
onCancel?: () => void;
|
|
647
|
+
onDone?: (results?: any) => void;
|
|
648
|
+
}
|
|
649
|
+
|
|
608
650
|
export declare const MovableArea: default_2.FC<MovableAreaProps & {
|
|
609
651
|
ref?: default_2.Ref<IMovableAreaElement>;
|
|
610
652
|
}>;
|
|
@@ -727,13 +769,10 @@ declare interface NamedStyle {
|
|
|
727
769
|
createTemporaryCell: (update: ICell.Update) => ICell;
|
|
728
770
|
}
|
|
729
771
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
* @defaultValue The nearest minute.
|
|
735
|
-
*/
|
|
736
|
-
declare const nowWithPrecision: (precision?: number) => Date;
|
|
772
|
+
declare interface NewTable {
|
|
773
|
+
ranges: ICellRanges;
|
|
774
|
+
hasHeader?: boolean;
|
|
775
|
+
}
|
|
737
776
|
|
|
738
777
|
export declare const PictureEditor: default_2.FC<PictureEditorProps & {
|
|
739
778
|
ref?: default_2.Ref<IPictureEditorElement>;
|
|
@@ -801,6 +840,18 @@ export declare interface RangeContainer {
|
|
|
801
840
|
getRange(address: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
|
|
802
841
|
}
|
|
803
842
|
|
|
843
|
+
declare interface ResizeHeaderContext {
|
|
844
|
+
getOrientation(): IRange.Orientation;
|
|
845
|
+
getUnitText(): string;
|
|
846
|
+
toUnits?(value: number): number;
|
|
847
|
+
toPixels?(value: number): number;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
declare interface ResizeHeaderOptions {
|
|
851
|
+
size: number;
|
|
852
|
+
unit?: string;
|
|
853
|
+
}
|
|
854
|
+
|
|
804
855
|
export declare const Row: default_2.NamedExoticComponent<Props_2 & default_2.RefAttributes<HTMLDivElement>>;
|
|
805
856
|
|
|
806
857
|
/**
|
|
@@ -834,7 +885,7 @@ export declare interface ScriptEditorProps extends default_2.HTMLAttributes<HTML
|
|
|
834
885
|
/**
|
|
835
886
|
* Handle to the frame
|
|
836
887
|
*/
|
|
837
|
-
frame?:
|
|
888
|
+
frame?: IFrame;
|
|
838
889
|
/**
|
|
839
890
|
* Allows for component to be autoFocused.
|
|
840
891
|
*/
|
|
@@ -852,6 +903,11 @@ export declare interface ScriptEditorProps extends default_2.HTMLAttributes<HTML
|
|
|
852
903
|
darkMode?: boolean;
|
|
853
904
|
}
|
|
854
905
|
|
|
906
|
+
declare interface SelectedRange {
|
|
907
|
+
range: ICellRange;
|
|
908
|
+
cell?: ICell.Address;
|
|
909
|
+
}
|
|
910
|
+
|
|
855
911
|
export declare type SheetAttributes = {
|
|
856
912
|
getGridElement: () => IGridElement;
|
|
857
913
|
getRowHeaderElement: () => ISheetHeaderElement;
|
|
@@ -1501,8 +1557,8 @@ export declare interface TaskPaneProps<T = any> {
|
|
|
1501
1557
|
*/
|
|
1502
1558
|
entryKey: string;
|
|
1503
1559
|
model?: T;
|
|
1560
|
+
frame?: IFrame;
|
|
1504
1561
|
commands?: ICommands.IGroup;
|
|
1505
|
-
frame?: ITaskPaneFrame;
|
|
1506
1562
|
}
|
|
1507
1563
|
|
|
1508
1564
|
export declare const TaskPaneProvider: default_2.FC<TaskPaneProviderProps>;
|
|
@@ -1660,7 +1716,6 @@ export declare const useRangeListener: (model: RangeContainer, address: ICellRan
|
|
|
1660
1716
|
* CTRL+SHIFT+DELETE === cut ? (not seeing this happen)
|
|
1661
1717
|
*
|
|
1662
1718
|
* Formulas
|
|
1663
|
-
* =,+,- is start formula (make this a shortcut?)
|
|
1664
1719
|
* Ctrl + / Select current array ?
|
|
1665
1720
|
* (other formula shortcuts)
|
|
1666
1721
|
*/
|