@opengeoweb/shared 8.3.1 → 8.4.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/index.esm.js CHANGED
@@ -26881,4 +26881,31 @@ var createToolkitMockStoreWithEggs = function createToolkitMockStoreWithEggs(sto
26881
26881
  return store;
26882
26882
  };
26883
26883
 
26884
- export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEFAULT_ERROR_MESSAGE, DraggableComponent$1 as Draggable, ErrorBoundary, ResizeComponent as Resizable, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createMockStoreWithEggs, createMockStoreWithEggsAndMiddleware, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getPosition, getWarningMessage, isAxiosError, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, withEggs };
26884
+ /* *
26885
+ * Licensed under the Apache License, Version 2.0 (the "License");
26886
+ * you may not use this file except in compliance with the License.
26887
+ * You may obtain a copy of the License at
26888
+ *
26889
+ * http://www.apache.org/licenses/LICENSE-2.0
26890
+ *
26891
+ * Unless required by applicable law or agreed to in writing, software
26892
+ * distributed under the License is distributed on an "AS IS" BASIS,
26893
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26894
+ * See the License for the specific language governing permissions and
26895
+ * limitations under the License.
26896
+ *
26897
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
26898
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
26899
+ * */
26900
+ // TODO: Move to related component when doing this user story: https://gitlab.com/opengeoweb/geoweb-assets/-/issues/2955
26901
+ var getHeight = function getHeight(element) {
26902
+ if (!element) {
26903
+ return null;
26904
+ }
26905
+ var style = getComputedStyle(element);
26906
+ var marginTop = style.marginTop ? parseInt(style.marginTop, 10) : 0;
26907
+ var marginBottom = style.marginTop ? parseInt(style.marginBottom, 10) : 0;
26908
+ return element.offsetHeight + marginTop + marginBottom;
26909
+ };
26910
+
26911
+ export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEFAULT_ERROR_MESSAGE, DraggableComponent$1 as Draggable, ErrorBoundary, ResizeComponent as Resizable, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createMockStoreWithEggs, createMockStoreWithEggsAndMiddleware, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getHeight, getInitials, getPosition, getWarningMessage, isAxiosError, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, withEggs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "8.3.1",
3
+ "version": "8.4.0",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "@mui/material": "5.12.0",
16
- "@opengeoweb/theme": "8.3.1",
16
+ "@opengeoweb/theme": "8.4.0",
17
17
  "@redux-eggs/core": "2.2.0",
18
18
  "@reduxjs/toolkit": "1.9.7",
19
19
  "axios": "1.5.0",
@@ -1,3 +1,4 @@
1
1
  export * from './axiosErrorUtils';
2
2
  export * as dateUtils from './dateUtils';
3
3
  export * from './reduxTestUtils';
4
+ export * from './layoutUtils';
@@ -0,0 +1 @@
1
+ export declare const getHeight: (element: HTMLDivElement) => number | null;
@@ -0,0 +1 @@
1
+ export {};