fix: update GridlerStore setState type to accept full state values

fix: change defaultItems type in GlidlerFormAdaptor to use MantineBetterMenuInstanceItem[]

test: update global ResizeObserver and IntersectionObserver mocks to use globalThis

build: change moduleResolution to 'bundler' in tsconfig.app.json

build: add missing newline at end of file in tsconfig.node.json
This commit is contained in:
2026-01-28 21:04:51 +02:00
parent c4f0fcc233
commit 9414421430
8 changed files with 621 additions and 575 deletions

View File

@@ -202,7 +202,7 @@ export interface GridlerState {
renderColumns?: GridlerColumns;
setState: <K extends keyof GridlerStoreState>(
key: K,
value: Partial<GridlerStoreState[K]>
value: GridlerStoreState[K]
) => void;
setStateFN: <K extends keyof GridlerStoreState>(
key: K,

View File

@@ -59,8 +59,8 @@ export function GlidlerFormAdaptor(props: {
storeState: GridlerState,
row?: Record<string, unknown>,
col?: GridlerColumn,
defaultItems?: Array<unknown>
) => {
defaultItems?: MantineBetterMenuInstanceItem[]
): MantineBetterMenuInstanceItem[] => {
//console.log('GlidlerFormInterface getMenuItems', id);
if (id === 'header-menu') {