@aigamo/route-sphere 2.0.5-rc.1 → 2.0.5-rc.2

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/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- export * from './components';
2
- export * from './stores';
1
+ export {}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@aigamo/route-sphere",
3
- "version": "2.0.5-rc.1",
3
+ "version": "2.0.5-rc.2",
4
4
  "type": "module",
5
+ "dependencies": {},
5
6
  "devDependencies": {
6
7
  "@eslint/compat": "^2.0.0",
7
8
  "@eslint/eslintrc": "^3.3.3",
@@ -81,7 +82,7 @@
81
82
  },
82
83
  "scripts": {
83
84
  "clean": "rimraf ./dist",
84
- "build": "pnpm clean && tsgo && vite build",
85
+ "build": "pnpm clean && tsgo -b && vite build",
85
86
  "lint": "eslint ."
86
87
  }
87
88
  }
@@ -1 +0,0 @@
1
- export declare const ScrollToTop: () => null;
@@ -1,4 +0,0 @@
1
- export * from './ScrollToTop';
2
- export * from './useLocalStorageStateHandler';
3
- export * from './useLocationStateHandler';
4
- export * from './useStateHandler';
@@ -1,8 +0,0 @@
1
- import { LocalStorageStateStore } from '../stores/LocalStorageStateStore';
2
- import { StateChangeEvent } from '../stores/StateChangeEvent';
3
- export declare const useLocalStorageStateDeserializer: (key: string) => (() => any);
4
- export declare const useLocalStorageStateSerializer: <TState>(key: string) => ((state: TState) => void);
5
- export declare const useLocalStorageStateHandler: <TState>(key: string, stateValidator: (state: any) => state is TState, stateSetter: (state: TState) => void, onStateChange: ((event: StateChangeEvent<TState>) => void) | undefined, stateGetter: () => TState) => void;
6
- export declare const useLocalStorageStateSetter: <TState>(store: LocalStorageStateStore<TState>) => ((state: TState) => void);
7
- export declare const useLocalStorageStateGetter: <TState>(store: LocalStorageStateStore<TState>) => (() => TState);
8
- export declare const useLocalStorageStateStore: <TState>(key: string, store: LocalStorageStateStore<TState>) => void;
@@ -1,11 +0,0 @@
1
- import { LocationStateStore } from '../stores/LocationStateStore';
2
- import { StateChangeEvent } from '../stores/StateChangeEvent';
3
- import { ParsedQs } from 'qs';
4
- export declare const useLocationStateDeserializer: () => (() => ParsedQs);
5
- export declare const useLocationStateSerializer: <TState>() => ((state: TState) => void);
6
- /** Updates a store that implements the {@link LocationStateStore} interface when a route changes, and vice versa. */
7
- export declare const useLocationStateHandler: <TState>(stateValidator: (state: any) => state is TState, stateSetter: (state: TState) => void, onStateChange: ((event: StateChangeEvent<TState>) => void) | undefined, stateGetter: () => TState) => void;
8
- export declare const useLocationStateSetter: <TState>(store: LocationStateStore<TState>) => ((state: TState) => void);
9
- export declare const useLocationStateGetter: <TState>(store: LocationStateStore<TState>) => (() => TState);
10
- /** Updates a store that implements the {@link LocationStateStore} interface when a route changes, and vice versa. */
11
- export declare const useLocationStateStore: <TState>(store: LocationStateStore<TState>) => void;
@@ -1,6 +0,0 @@
1
- import { StateChangeEvent } from '../stores/StateChangeEvent';
2
- import { default as React } from 'react';
3
- export declare const useRestoreState: <TState>(popStateRef: React.MutableRefObject<boolean>, deserializer: () => any, stateValidator: (state: any) => state is TState, stateSetter: (state: TState) => void) => void;
4
- export declare const useHandleStateChange: <TState extends Partial<TState>>(popStateRef: React.MutableRefObject<boolean>, onStateChange: ((event: StateChangeEvent<TState>) => void) | undefined, stateGetter: () => TState) => void;
5
- export declare const useSaveState: <TState>(popStateRef: React.MutableRefObject<boolean>, stateGetter: () => TState, serializer: (state: TState) => void) => void;
6
- export declare const useStateHandler: <TState>(deserializer: () => any, stateValidator: (state: any) => state is TState, stateSetter: (state: TState) => void, onStateChange: ((event: StateChangeEvent<TState>) => void) | undefined, stateGetter: () => TState, serializer: (state: TState) => void) => void;
@@ -1,6 +0,0 @@
1
- import { StateChangeEvent } from './StateChangeEvent';
2
- export interface LocalStorageStateStore<TState> {
3
- localStorageState: TState;
4
- validateLocalStorageState(localStorageState: any): localStorageState is TState;
5
- onLocalStorageStateChange?(event: StateChangeEvent<TState>): void;
6
- }
@@ -1,6 +0,0 @@
1
- import { StateChangeEvent } from './StateChangeEvent';
2
- export interface LocationStateStore<TState> {
3
- locationState: TState;
4
- validateLocationState(locationState: any): locationState is TState;
5
- onLocationStateChange?(event: StateChangeEvent<TState>): void;
6
- }
@@ -1,5 +0,0 @@
1
- export declare const includesAny: <T>(array: T[], values: T[]) => boolean;
2
- export interface StateChangeEvent<TState> {
3
- keys: (keyof TState)[];
4
- popState: boolean;
5
- }
@@ -1,3 +0,0 @@
1
- export * from './LocalStorageStateStore';
2
- export * from './LocationStateStore';
3
- export * from './StateChangeEvent';