@opengeoweb/shared 9.31.0 → 9.32.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "9.31.0",
3
+ "version": "9.32.1",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -16,9 +16,8 @@
16
16
  "react-redux": "^8.1.3",
17
17
  "axios": "^1.7.7",
18
18
  "date-fns": "^3.3.0",
19
- "redux-mock-store": "^1.5.4",
20
19
  "@reduxjs/toolkit": "^1.9.7",
21
- "react-i18next": "^14.1.2",
20
+ "react-i18next": "^15.1.1",
22
21
  "i18next": "^23.11.5",
23
22
  "@sentry/react": "^8.34.0",
24
23
  "@mui/material": "^6.1.1"
@@ -30,5 +29,6 @@
30
29
  },
31
30
  "module": "./index.esm.js",
32
31
  "type": "module",
33
- "main": "./index.esm.js"
32
+ "main": "./index.esm.js",
33
+ "types": "./index.esm.d.ts"
34
34
  }
@@ -6,8 +6,7 @@ export declare const sliderHeaderStyle: {
6
6
  color: string;
7
7
  padding: string;
8
8
  };
9
- interface CustomSliderProps extends Omit<SliderProps, 'onChange'> {
10
- onChange: (event: PointerEvent, newValue: number | number[]) => void;
9
+ interface CustomSliderProps extends SliderProps {
11
10
  shouldAutoFocus?: boolean;
12
11
  }
13
12
  export declare const CustomSlider: React.FC<CustomSliderProps>;
@@ -0,0 +1,11 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import React, { ReactNode } from 'react';
3
+ interface Props {
4
+ optionId: string;
5
+ checked: boolean;
6
+ onClick: (checked: boolean, only?: boolean) => void;
7
+ labelStyle?: SxProps<Theme>;
8
+ label: ReactNode;
9
+ }
10
+ export declare const FilterOption: React.FC<Props>;
11
+ export {};
@@ -3,6 +3,7 @@ export { DEFAULT_FILTER_HEIGHT } from './Filter';
3
3
  export type { ListFilter } from './FilterList';
4
4
  export { FilterListItem, FilterLabel } from './FilterListItem';
5
5
  export type { Filter as FilterListItemFilter, FilterListItemProps, } from './FilterListItem';
6
+ export { FilterOption } from './FilterOption';
6
7
  export { default as FilterChip } from './FilterChip';
7
8
  export type { FilterChipProps } from './FilterChip';
8
9
  export { DEBOUNCE_TIMEOUT } from './SearchField';
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { Egg } from '@redux-eggs/core';
3
3
  import { Theme } from '@mui/material';
4
- export declare function withEggs(eggs: Egg[]): (Component: React.FC<{
4
+ interface WithEggsProps {
5
5
  children: React.ReactElement;
6
6
  theme?: Theme;
7
- }>) => React.FC;
7
+ }
8
+ export declare function withEggs(eggs: Egg[]): (Component: React.FC<WithEggsProps>) => React.FC<WithEggsProps>;
9
+ export {};
@@ -25,8 +25,6 @@ export interface ConfigType {
25
25
  GW_FEATURE_APP_TITLE?: string;
26
26
  GW_FEATURE_FORCE_AUTHENTICATION?: boolean;
27
27
  GW_FEATURE_MODULE_SPACE_WEATHER?: boolean;
28
- GW_FEATURE_MODULE_SIGMET_CONFIGURATION?: string;
29
- GW_FEATURE_MODULE_AIRMET_CONFIGURATION?: string;
30
28
  GW_FEATURE_MENU_FEEDBACK?: boolean;
31
29
  GW_FEATURE_MENU_INFO?: boolean;
32
30
  GW_FEATURE_MENU_VERSION?: boolean;
@@ -1,11 +1,6 @@
1
- import { MockStoreEnhanced } from 'redux-mock-store';
2
1
  import { ConfigureStoreOptions, ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
3
- interface MockStoreWithEggs extends MockStoreEnhanced {
4
- addEggs?: () => void;
5
- }
6
2
  interface ToolkitStoreWithEggs extends ToolkitStore {
7
3
  addEggs?: () => void;
8
4
  }
9
- export declare const createMockStoreWithEggs: (mockState: unknown) => MockStoreWithEggs;
10
5
  export declare const createToolkitMockStoreWithEggs: (storeConfig: ConfigureStoreOptions) => ToolkitStoreWithEggs;
11
6
  export {};