@opengeoweb/shared 9.27.0 → 9.27.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/index.esm.js
CHANGED
|
@@ -9421,14 +9421,6 @@ const createMockStoreWithEggs = mockState => {
|
|
|
9421
9421
|
store.addEggs = typeof jest !== 'undefined' ? jest.fn() : () => {}; // mocking the dynamic module loader
|
|
9422
9422
|
return store;
|
|
9423
9423
|
};
|
|
9424
|
-
const createMockStoreWithEggsAndMiddleware = (mockState,
|
|
9425
|
-
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
|
|
9426
|
-
middleware) => {
|
|
9427
|
-
const mockStore = configureStore([middleware]);
|
|
9428
|
-
const store = mockStore(mockState);
|
|
9429
|
-
store.addEggs = typeof jest !== 'undefined' ? jest.fn() : () => {}; // mocking the dynamic module loader
|
|
9430
|
-
return store;
|
|
9431
|
-
};
|
|
9432
9424
|
const createToolkitMockStoreWithEggs = storeConfig => {
|
|
9433
9425
|
const {
|
|
9434
9426
|
reducer,
|
|
@@ -9583,4 +9575,4 @@ class RenderCounter {
|
|
|
9583
9575
|
}
|
|
9584
9576
|
const renderCounter = new RenderCounter();
|
|
9585
9577
|
|
|
9586
|
-
export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEBOUNCE_TIMEOUT, DEFAULT_ERROR_MESSAGE, DEFAULT_FILTER_HEIGHT, DraggableComponent$1 as Draggable, ErrorBoundary, Filter, FilterChip, FilterLabel, FilterListItem, LastUpdateTime, PROJECTION, ResizeComponent as Resizable, SHARED_NAMESPACE, SearchField$1 as SearchField, SearchFieldButton, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, UserMenuItemSentryRecording, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createMockStoreWithEggs,
|
|
9578
|
+
export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEBOUNCE_TIMEOUT, DEFAULT_ERROR_MESSAGE, DEFAULT_FILTER_HEIGHT, DraggableComponent$1 as Draggable, ErrorBoundary, Filter, FilterChip, FilterLabel, FilterListItem, LastUpdateTime, PROJECTION, ResizeComponent as Resizable, SHARED_NAMESPACE, SearchField$1 as SearchField, SearchFieldButton, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, UserMenuItemSentryRecording, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createMockStoreWithEggs, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, isAxiosAuthError, isAxiosError, pollingIntervalTimeout, renderCounter, sharedTranslations, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDebounce, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, withEggs };
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MockStoreEnhanced } from 'redux-mock-store';
|
|
2
|
-
import { AnyAction,
|
|
2
|
+
import { AnyAction, Reducer, ReducersMapObject, ThunkMiddleware, StoreEnhancer } from '@reduxjs/toolkit';
|
|
3
3
|
import { ConfigureStoreOptions, ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
4
4
|
interface MockStoreWithEggs extends MockStoreEnhanced {
|
|
5
5
|
addEggs?: () => void;
|
|
@@ -16,6 +16,5 @@ interface StoreConfig {
|
|
|
16
16
|
]> | object | undefined;
|
|
17
17
|
}
|
|
18
18
|
export declare const createMockStoreWithEggs: (mockState: unknown) => MockStoreWithEggs;
|
|
19
|
-
export declare const createMockStoreWithEggsAndMiddleware: (mockState: unknown, middleware: Middleware<{}, any, Dispatch<AnyAction>>) => MockStoreWithEggs;
|
|
20
19
|
export declare const createToolkitMockStoreWithEggs: (storeConfig: StoreConfig) => ToolkitStoreWithEggs;
|
|
21
20
|
export {};
|