@sheetxl/utils-react 0.7.6 → 0.7.7
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/LICENSE.md +1 -1
- package/browser/cjs/{B9stfyU9EqTwUsA3.cjs → Bb5sSoT2rOCEdJUD.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{CxY-6HIFmPob67ga.mjs → DG6oB4sgLAgJaOve.mjs} +1 -1
- package/browser/esm/index.mjs +1012 -962
- package/node/esm/{iqYVEUkNtlVZ_Hro.mjs → Cq6QyR2iVPDVSg3n.mjs} +1 -1
- package/node/esm/index.mjs +1092 -1041
- package/package.json +2 -2
- package/types/index.d.ts +13 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/utils-react",
|
|
3
3
|
"description": "Utils React - Utilities for React capabilities needed for all SheetXL components.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.7",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@sheetxl/utils": "^0.7.
|
|
43
|
+
"@sheetxl/utils": "^0.7.7",
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"detect-it": "^4.0.1",
|
|
46
46
|
"react-merge-refs": "^3.0.2",
|
package/types/index.d.ts
CHANGED
|
@@ -409,6 +409,11 @@ export declare interface EnqueueNotifierOptions extends NotifierOptions {
|
|
|
409
409
|
enqueueProps?: Record<string, any>;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
+
/**
|
|
413
|
+
* Simple panel to trigger various error scenarios for testing error boundaries and logging.
|
|
414
|
+
*/
|
|
415
|
+
export declare const ErrorTestPanel: () => JSX.Element;
|
|
416
|
+
|
|
412
417
|
declare const focusableNodeNames: Set<string>;
|
|
413
418
|
|
|
414
419
|
/**
|
|
@@ -1115,6 +1120,10 @@ export declare interface PointerModifiers {
|
|
|
1115
1120
|
metaKey: boolean;
|
|
1116
1121
|
}
|
|
1117
1122
|
|
|
1123
|
+
export declare const ReactErrorBoundary: default_2.FC<{
|
|
1124
|
+
children: ReactNode;
|
|
1125
|
+
}>;
|
|
1126
|
+
|
|
1118
1127
|
export declare type ReactGlyph<P extends ReactIconProps = ReactIconProps> = BaseGlyph & {
|
|
1119
1128
|
react: ReactInput<P>;
|
|
1120
1129
|
};
|
|
@@ -1408,6 +1417,10 @@ declare const toPrettyKeyCode: (key: string) => string;
|
|
|
1408
1417
|
|
|
1409
1418
|
export declare const toShortcutString: (keyStroke: IKeyStroke, modifierSymbol?: boolean) => string;
|
|
1410
1419
|
|
|
1420
|
+
export declare const UncaughtErrorBoundary: default_2.FC<{
|
|
1421
|
+
children: default_2.ReactNode;
|
|
1422
|
+
}>;
|
|
1423
|
+
|
|
1411
1424
|
export declare interface UndoContext {
|
|
1412
1425
|
readonly undoManager: UndoManager;
|
|
1413
1426
|
}
|