@rowsncolumns/spreadsheet 10.2.68 → 10.2.69
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/dist/cjs/api/selections.d.ts +3 -3
- package/dist/cjs/api/spreadsheet-api.d.ts +1 -1
- package/dist/cjs/components/cell-tooltip/index.js +1 -1
- package/dist/cjs/helpers.d.ts +1 -1
- package/dist/cjs/hooks/use-isomorphic-layout-effect.d.ts +2 -2
- package/dist/cjs/hooks/use-isomorphic-layout-effect.d.ts.map +1 -1
- package/dist/cjs/hooks/use-structured-reference-selection.d.ts +1 -1
- package/dist/cjs/release-date.js +1 -1
- package/dist/esm/api/selections.d.ts +3 -3
- package/dist/esm/api/spreadsheet-api.d.ts +1 -1
- package/dist/esm/components/cell-tooltip/index.js +1 -1
- package/dist/esm/helpers.d.ts +1 -1
- package/dist/esm/hooks/use-isomorphic-layout-effect.d.ts +2 -2
- package/dist/esm/hooks/use-isomorphic-layout-effect.d.ts.map +1 -1
- package/dist/esm/hooks/use-structured-reference-selection.d.ts +1 -1
- package/dist/esm/release-date.js +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import type { SheetRange, TableView } from "../types";
|
|
|
8
8
|
* @param isActiveCell
|
|
9
9
|
* @param isSelection
|
|
10
10
|
*/
|
|
11
|
-
export declare const getSelectionStrokeStyle: (formulaMode: boolean, isFill: boolean, isActiveCell: boolean, emptySelections: boolean) => "
|
|
11
|
+
export declare const getSelectionStrokeStyle: (formulaMode: boolean, isFill: boolean, isActiveCell: boolean, emptySelections: boolean) => "solid" | "dashed";
|
|
12
12
|
/**
|
|
13
13
|
* Get selection stroke width
|
|
14
14
|
* @param formulaMode
|
|
@@ -16,14 +16,14 @@ export declare const getSelectionStrokeStyle: (formulaMode: boolean, isFill: boo
|
|
|
16
16
|
* @param isActiveCell
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
|
-
export declare const getSelectionStrokeWidth: (formulaMode: boolean, isFill: boolean, isActiveCell: boolean, isResizingTable: boolean) =>
|
|
19
|
+
export declare const getSelectionStrokeWidth: (formulaMode: boolean, isFill: boolean, isActiveCell: boolean, isResizingTable: boolean) => 1 | 2;
|
|
20
20
|
/**
|
|
21
21
|
* Get background opacity of selection
|
|
22
22
|
* @param formulaMode
|
|
23
23
|
* @param isFill
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
export declare const getSelectionFillOpacity: (formulaMode: boolean, isFill: boolean) =>
|
|
26
|
+
export declare const getSelectionFillOpacity: (formulaMode: boolean, isFill: boolean) => 0 | 1 | 0.2;
|
|
27
27
|
/**
|
|
28
28
|
* Get background color of selection
|
|
29
29
|
* @param formulaMode
|
|
@@ -258,7 +258,7 @@ declare class CellRange<T extends CellData> extends SpreadsheetCallbacks<T> {
|
|
|
258
258
|
* Get effective value of a cell
|
|
259
259
|
* @returns
|
|
260
260
|
*/
|
|
261
|
-
getEffectiveValue(): (string | number | boolean | Date |
|
|
261
|
+
getEffectiveValue(): import("../types").Maybe<string | number | boolean | Date> | (string | number | boolean | Date | null | undefined)[][];
|
|
262
262
|
setValues(values: string[][]): this;
|
|
263
263
|
clearFormatting(): this;
|
|
264
264
|
setFormat<T extends FormattingType>(type: T, value: FormattingValue<T>): this;
|
|
@@ -37,7 +37,7 @@ exports.CellTooltip = (0, react_1.memo)(function (_a) {
|
|
|
37
37
|
? (0, utils_1.normalizeExternalUrl)(hyperlink.url)
|
|
38
38
|
: "#range=".concat(hyperlink.location);
|
|
39
39
|
return (react_1.default.createElement("div", { className: "flex align-top break-all items-start gap-2" },
|
|
40
|
-
react_1.default.createElement("a", { target: kind === "external" ? "_blank" : undefined, href: url, rel: "noopener noreferrer", className: "flex-1 text-xs", onClick: function (event) {
|
|
40
|
+
react_1.default.createElement("a", { target: kind === "external" ? "_blank" : undefined, href: url || undefined, rel: "noopener noreferrer", className: "flex-1 text-xs", onClick: function (event) {
|
|
41
41
|
if (onSelectLink) {
|
|
42
42
|
onSelectLink(sheetId, cell, hyperlink);
|
|
43
43
|
event.preventDefault();
|
package/dist/cjs/helpers.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const convertBorderStyleToDashArray: (style: Border["style"] | un
|
|
|
21
21
|
* @param style
|
|
22
22
|
* @returns
|
|
23
23
|
*/
|
|
24
|
-
export declare const convertThicknessStyleToScaleFactor: (style: Border["style"] | undefined) =>
|
|
24
|
+
export declare const convertThicknessStyleToScaleFactor: (style: Border["style"] | undefined) => 1 | 2 | 1.5;
|
|
25
25
|
/**
|
|
26
26
|
* Create a new empty sheet
|
|
27
27
|
* @param sheetId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useLayoutEffect } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Prevent warning on SSR by falling back to useEffect when DOM isn't available
|
|
4
4
|
*/
|
|
5
|
-
export declare const useIsomorphicLayoutEffect: typeof
|
|
5
|
+
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
6
6
|
//# sourceMappingURL=use-isomorphic-layout-effect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-isomorphic-layout-effect.d.ts","sourceRoot":"","sources":["../../../hooks/use-isomorphic-layout-effect.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-isomorphic-layout-effect.d.ts","sourceRoot":"","sources":["../../../hooks/use-isomorphic-layout-effect.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD;;GAEG;AAEH,eAAO,MAAM,yBAAyB,wBAEzB,CAAC"}
|
|
@@ -11,12 +11,12 @@ export declare const useOnStructuredReferenceSelection: ({ tables, getSheetName,
|
|
|
11
11
|
endColumnIndex: number;
|
|
12
12
|
startRowIndex: number;
|
|
13
13
|
endRowIndex: number;
|
|
14
|
-
sheetId: number;
|
|
15
14
|
} | {
|
|
16
15
|
startColumnIndex: number;
|
|
17
16
|
endColumnIndex: number;
|
|
18
17
|
startRowIndex: number;
|
|
19
18
|
endRowIndex: number;
|
|
19
|
+
sheetId: number;
|
|
20
20
|
};
|
|
21
21
|
sheetName: string | undefined;
|
|
22
22
|
} | undefined;
|
package/dist/cjs/release-date.js
CHANGED
|
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.releaseDate = void 0;
|
|
5
5
|
exports.releaseDate =
|
|
6
6
|
// @ts-ignore
|
|
7
|
-
(_a = new Date("2026-09-
|
|
7
|
+
(_a = new Date("2026-09-02")) !== null && _a !== void 0 ? _a : new Date("2025-06-18");
|
|
@@ -8,7 +8,7 @@ import type { SheetRange, TableView } from "../types";
|
|
|
8
8
|
* @param isActiveCell
|
|
9
9
|
* @param isSelection
|
|
10
10
|
*/
|
|
11
|
-
export declare const getSelectionStrokeStyle: (formulaMode: boolean, isFill: boolean, isActiveCell: boolean, emptySelections: boolean) => "
|
|
11
|
+
export declare const getSelectionStrokeStyle: (formulaMode: boolean, isFill: boolean, isActiveCell: boolean, emptySelections: boolean) => "solid" | "dashed";
|
|
12
12
|
/**
|
|
13
13
|
* Get selection stroke width
|
|
14
14
|
* @param formulaMode
|
|
@@ -16,14 +16,14 @@ export declare const getSelectionStrokeStyle: (formulaMode: boolean, isFill: boo
|
|
|
16
16
|
* @param isActiveCell
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
|
-
export declare const getSelectionStrokeWidth: (formulaMode: boolean, isFill: boolean, isActiveCell: boolean, isResizingTable: boolean) =>
|
|
19
|
+
export declare const getSelectionStrokeWidth: (formulaMode: boolean, isFill: boolean, isActiveCell: boolean, isResizingTable: boolean) => 1 | 2;
|
|
20
20
|
/**
|
|
21
21
|
* Get background opacity of selection
|
|
22
22
|
* @param formulaMode
|
|
23
23
|
* @param isFill
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
export declare const getSelectionFillOpacity: (formulaMode: boolean, isFill: boolean) =>
|
|
26
|
+
export declare const getSelectionFillOpacity: (formulaMode: boolean, isFill: boolean) => 0 | 1 | 0.2;
|
|
27
27
|
/**
|
|
28
28
|
* Get background color of selection
|
|
29
29
|
* @param formulaMode
|
|
@@ -258,7 +258,7 @@ declare class CellRange<T extends CellData> extends SpreadsheetCallbacks<T> {
|
|
|
258
258
|
* Get effective value of a cell
|
|
259
259
|
* @returns
|
|
260
260
|
*/
|
|
261
|
-
getEffectiveValue(): (string | number | boolean | Date |
|
|
261
|
+
getEffectiveValue(): import("../types").Maybe<string | number | boolean | Date> | (string | number | boolean | Date | null | undefined)[][];
|
|
262
262
|
setValues(values: string[][]): this;
|
|
263
263
|
clearFormatting(): this;
|
|
264
264
|
setFormat<T extends FormattingType>(type: T, value: FormattingValue<T>): this;
|
|
@@ -32,7 +32,7 @@ onRequestUnpinTooltip, onRequestPinTooltip, }) => {
|
|
|
32
32
|
? normalizeExternalUrl(hyperlink.url)
|
|
33
33
|
: `#range=${hyperlink.location}`;
|
|
34
34
|
return (React.createElement("div", { className: "flex align-top break-all items-start gap-2" },
|
|
35
|
-
React.createElement("a", { target: kind === "external" ? "_blank" : undefined, href: url, rel: "noopener noreferrer", className: "flex-1 text-xs", onClick: (event) => {
|
|
35
|
+
React.createElement("a", { target: kind === "external" ? "_blank" : undefined, href: url || undefined, rel: "noopener noreferrer", className: "flex-1 text-xs", onClick: (event) => {
|
|
36
36
|
if (onSelectLink) {
|
|
37
37
|
onSelectLink(sheetId, cell, hyperlink);
|
|
38
38
|
event.preventDefault();
|
package/dist/esm/helpers.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const convertBorderStyleToDashArray: (style: Border["style"] | un
|
|
|
21
21
|
* @param style
|
|
22
22
|
* @returns
|
|
23
23
|
*/
|
|
24
|
-
export declare const convertThicknessStyleToScaleFactor: (style: Border["style"] | undefined) =>
|
|
24
|
+
export declare const convertThicknessStyleToScaleFactor: (style: Border["style"] | undefined) => 1 | 2 | 1.5;
|
|
25
25
|
/**
|
|
26
26
|
* Create a new empty sheet
|
|
27
27
|
* @param sheetId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useLayoutEffect } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Prevent warning on SSR by falling back to useEffect when DOM isn't available
|
|
4
4
|
*/
|
|
5
|
-
export declare const useIsomorphicLayoutEffect: typeof
|
|
5
|
+
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
6
6
|
//# sourceMappingURL=use-isomorphic-layout-effect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-isomorphic-layout-effect.d.ts","sourceRoot":"","sources":["../../../hooks/use-isomorphic-layout-effect.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-isomorphic-layout-effect.d.ts","sourceRoot":"","sources":["../../../hooks/use-isomorphic-layout-effect.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD;;GAEG;AAEH,eAAO,MAAM,yBAAyB,wBAEzB,CAAC"}
|
|
@@ -11,12 +11,12 @@ export declare const useOnStructuredReferenceSelection: ({ tables, getSheetName,
|
|
|
11
11
|
endColumnIndex: number;
|
|
12
12
|
startRowIndex: number;
|
|
13
13
|
endRowIndex: number;
|
|
14
|
-
sheetId: number;
|
|
15
14
|
} | {
|
|
16
15
|
startColumnIndex: number;
|
|
17
16
|
endColumnIndex: number;
|
|
18
17
|
startRowIndex: number;
|
|
19
18
|
endRowIndex: number;
|
|
19
|
+
sheetId: number;
|
|
20
20
|
};
|
|
21
21
|
sheetName: string | undefined;
|
|
22
22
|
} | undefined;
|
package/dist/esm/release-date.js
CHANGED