@gridsheet/preact-core 3.2.0 → 3.3.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/dist/components/FunctionGuide.d.ts +1 -1
- package/dist/components/useAutocomplete.d.ts +1 -1
- package/dist/hooks-DroLjp9H.mjs +6601 -0
- package/dist/hooks-DroLjp9H.mjs.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +607 -465
- package/dist/index.js.map +1 -1
- package/dist/lib/clipboard.d.ts +1 -1
- package/dist/lib/hooks.d.ts +1 -1
- package/dist/lib/menu.d.ts +1 -1
- package/dist/policy/checkbox.d.ts +1 -1
- package/dist/spellbook.d.ts +3 -3
- package/dist/spellbook.js +2 -3
- package/dist/spellbook.js.map +1 -1
- package/dist/store/actions.d.ts +3 -1
- package/dist/store/helpers.d.ts +1 -1
- package/dist/types.d.ts +3 -2
- package/package.json +4 -3
- package/dist/hooks-ykrgAwg5.mjs +0 -1533
- package/dist/hooks-ykrgAwg5.mjs.map +0 -1
package/dist/lib/clipboard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoreType, AreaType, PointType } from '../types';
|
|
2
|
-
import { UserSheet } from '@gridsheet/
|
|
2
|
+
import { UserSheet } from '@gridsheet/web';
|
|
3
3
|
export declare const clip: (store: StoreType) => AreaType;
|
|
4
4
|
export type SheetCSVProps = {
|
|
5
5
|
getter?: (sheet: UserSheet, point: PointType) => string;
|
package/dist/lib/hooks.d.ts
CHANGED
package/dist/lib/menu.d.ts
CHANGED
package/dist/spellbook.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RegistryProps } from '@gridsheet/
|
|
1
|
+
import { RegistryProps } from '@gridsheet/web';
|
|
2
2
|
/** useBook with all extended functions pre-loaded. User-supplied additionalFunctions are merged on top. */
|
|
3
|
-
export declare const useSpellbook: ({ additionalFunctions, ...rest }?: RegistryProps) => import('@gridsheet/
|
|
3
|
+
export declare const useSpellbook: ({ additionalFunctions, ...rest }?: RegistryProps) => import('@gridsheet/engine').BookType;
|
|
4
4
|
/** createBook with all extended functions pre-loaded. User-supplied additionalFunctions are merged on top. */
|
|
5
|
-
export declare const createSpellbook: ({ additionalFunctions, ...rest }?: RegistryProps) => import('@gridsheet/
|
|
5
|
+
export declare const createSpellbook: ({ additionalFunctions, ...rest }?: RegistryProps) => import('@gridsheet/engine').BookType;
|
|
6
6
|
//# sourceMappingURL=spellbook.d.ts.map
|
package/dist/spellbook.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { allFunctions } from "@gridsheet/functions";
|
|
2
|
-
import {
|
|
3
|
-
import { U as useBook } from "./hooks-ykrgAwg5.mjs";
|
|
2
|
+
import { aA as useBook, a_ as xn } from "./hooks-DroLjp9H.mjs";
|
|
4
3
|
const useSpellbook = ({ additionalFunctions, ...rest } = {}) => useBook({ ...rest, additionalFunctions: { ...allFunctions, ...additionalFunctions } });
|
|
5
|
-
const createSpellbook = ({ additionalFunctions, ...rest } = {}) =>
|
|
4
|
+
const createSpellbook = ({ additionalFunctions, ...rest } = {}) => xn({ ...rest, additionalFunctions: { ...allFunctions, ...additionalFunctions } });
|
|
6
5
|
export {
|
|
7
6
|
createSpellbook,
|
|
8
7
|
useSpellbook
|
package/dist/spellbook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spellbook.js","sources":["../../react-core/src/spellbook.ts"],"sourcesContent":["import { allFunctions } from '@gridsheet/functions';\nimport type { RegistryProps } from '@gridsheet/
|
|
1
|
+
{"version":3,"file":"spellbook.js","sources":["../../react-core/src/spellbook.ts"],"sourcesContent":["import { allFunctions } from '@gridsheet/functions';\nimport type { RegistryProps } from '@gridsheet/web';\nimport { createBook } from '@gridsheet/web';\nimport { useBook } from './lib/hooks';\n\n/** useBook with all extended functions pre-loaded. User-supplied additionalFunctions are merged on top. */\nexport const useSpellbook = ({ additionalFunctions, ...rest }: RegistryProps = {}) =>\n useBook({ ...rest, additionalFunctions: { ...allFunctions, ...additionalFunctions } });\n\n/** createBook with all extended functions pre-loaded. User-supplied additionalFunctions are merged on top. */\nexport const createSpellbook = ({ additionalFunctions, ...rest }: RegistryProps = {}) =>\n createBook({ ...rest, additionalFunctions: { ...allFunctions, ...additionalFunctions } });\n"],"names":["createBook"],"mappings":";;AAMa,MAAA,eAAe,CAAC,EAAE,qBAAqB,GAAG,KAAK,IAAmB,CAAA,MAC7E,QAAQ,EAAE,GAAG,MAAM,qBAAqB,EAAE,GAAG,cAAc,GAAG,oBAAA,EAAuB,CAAA;AAG1E,MAAA,kBAAkB,CAAC,EAAE,qBAAqB,GAAG,KAAK,IAAmB,CAAA,MAChFA,GAAW,EAAE,GAAG,MAAM,qBAAqB,EAAE,GAAG,cAAc,GAAG,oBAAA,EAAuB,CAAA;"}
|
package/dist/store/actions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoreType, RectType, ZoneType, PointType, RangeType, PositionType, RawCellType, OperatorType, FilterConfig } from '../types';
|
|
2
|
-
import { Sheet } from '@gridsheet/
|
|
2
|
+
import { Sheet } from '@gridsheet/web';
|
|
3
3
|
type StoreWithCallback = StoreType & {
|
|
4
4
|
callback?: (store: StoreType) => void;
|
|
5
5
|
};
|
|
@@ -296,6 +296,7 @@ export declare const setColumnMenu: (payload: {
|
|
|
296
296
|
y: number;
|
|
297
297
|
x: number;
|
|
298
298
|
};
|
|
299
|
+
focusLabel?: boolean;
|
|
299
300
|
} | null) => {
|
|
300
301
|
type: number;
|
|
301
302
|
value: {
|
|
@@ -304,6 +305,7 @@ export declare const setColumnMenu: (payload: {
|
|
|
304
305
|
y: number;
|
|
305
306
|
x: number;
|
|
306
307
|
};
|
|
308
|
+
focusLabel?: boolean;
|
|
307
309
|
} | null;
|
|
308
310
|
};
|
|
309
311
|
export declare const setRowMenu: (payload: {
|
package/dist/store/helpers.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefObject, CSSProperties, KeyboardEvent } from 'react';
|
|
2
|
-
import { Sheet, UserSheet, BookType, PolicyType, ModeType, DensityType, GridLinesType, MatrixAlignmentType, PointType, ZoneType, RectType, PositionType, CellsByAddressType, SheetLimits } from '@gridsheet/
|
|
2
|
+
import { Sheet, UserSheet, BookType, PolicyType, ModeType, DensityType, GridLinesType, MatrixAlignmentType, PointType, ZoneType, RectType, PositionType, CellsByAddressType, SheetLimits } from '@gridsheet/web';
|
|
3
3
|
import { ContextMenuItemDescriptor, RowMenuItemDescriptor, ColMenuItemDescriptor } from './lib/menu';
|
|
4
|
-
export type { CSSPropertiesLike, RefLike, Resolution, Y, X, Height, Width, ShapeType, RectType, MatrixType, CursorStateType, FeedbackType, ModeType, HeadersType, AsyncCache, System, FilterConditionMethod, FilterCondition, FilterConfig, CellType, RawCellType, CellPatchType, CellFilter, CellsByAddressType, CellsByIdType, SystemsByIdType, RangeType, PointType, ExtraPointType, PositionType, ZoneType, AreaType, WriterType, Id, Ids, IdMatrix, Address, MatricesByAddress, StorePatchType, HistoryUpdateType, MoveRelation, MoveRelations, HistoryMoveType, HistoryInsertRowsType, HistoryRemoveRowsType, HistoryInsertColsType, HistoryRemoveColsType, HistorySortRowsType, HistoryType, Virtualization, OperatorType, OperationType, Dispatcher, StoreDispatchType, ContextsBySheetId, SheetIdsByName, RefPaletteType, } from '@gridsheet/
|
|
4
|
+
export type { CSSPropertiesLike, RefLike, Resolution, Y, X, Height, Width, ShapeType, RectType, MatrixType, CursorStateType, FeedbackType, ModeType, HeadersType, AsyncCache, System, FilterConditionMethod, FilterCondition, FilterConfig, CellType, RawCellType, CellPatchType, CellFilter, CellsByAddressType, CellsByIdType, SystemsByIdType, RangeType, PointType, ExtraPointType, PositionType, ZoneType, AreaType, WriterType, Id, Ids, IdMatrix, Address, MatricesByAddress, StorePatchType, HistoryUpdateType, MoveRelation, MoveRelations, HistoryMoveType, HistoryInsertRowsType, HistoryRemoveRowsType, HistoryInsertColsType, HistoryRemoveColsType, HistorySortRowsType, HistoryType, Virtualization, OperatorType, OperationType, Dispatcher, StoreDispatchType, ContextsBySheetId, SheetIdsByName, RefPaletteType, } from '@gridsheet/web';
|
|
5
5
|
export type Policies = {
|
|
6
6
|
[s: string]: PolicyType;
|
|
7
7
|
};
|
|
@@ -89,6 +89,7 @@ export type StoreType = {
|
|
|
89
89
|
columnMenuState: {
|
|
90
90
|
x: number;
|
|
91
91
|
position: PositionType;
|
|
92
|
+
focusLabel?: boolean;
|
|
92
93
|
} | null;
|
|
93
94
|
rowMenuState: {
|
|
94
95
|
y: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsheet/preact-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Spreadsheet component for Preact",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/walkframe/gridsheet.git"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@gridsheet/
|
|
13
|
+
"@gridsheet/web": "3.3.0"
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"vite": "^6.2.2",
|
|
36
36
|
"vite-plugin-dts": "^4.5.3",
|
|
37
37
|
"@preact/preset-vite": "^2.10.1",
|
|
38
|
-
"@gridsheet/functions": "3.
|
|
38
|
+
"@gridsheet/functions": "3.3.0",
|
|
39
|
+
"@gridsheet/react-core": "3.3.0"
|
|
39
40
|
},
|
|
40
41
|
"bugs": {
|
|
41
42
|
"url": "https://github.com/walkframe/gridsheet/issues"
|