@opengeoweb/shared 12.12.0 → 12.13.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
@@ -2030,7 +2030,7 @@ var AppLayout = function AppLayout(_ref) {
2030
2030
  children = _ref.children;
2031
2031
  return jsxs(Box, {
2032
2032
  sx: {
2033
- height: '100vh',
2033
+ height: '100dvh',
2034
2034
  display: 'flex',
2035
2035
  flexDirection: 'column'
2036
2036
  },
@@ -4552,7 +4552,9 @@ var LastUpdateTime = function LastUpdateTime(_ref) {
4552
4552
  lastUpdateTime = _ref.lastUpdateTime,
4553
4553
  dataTestId = _ref.dataTestId,
4554
4554
  _ref$hideLabel = _ref.hideLabel,
4555
- hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel;
4555
+ hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel,
4556
+ _ref$showRefreshButto = _ref.showRefreshButton,
4557
+ showRefreshButton = _ref$showRefreshButto === void 0 ? true : _ref$showRefreshButto;
4556
4558
  var _useTranslation = useTranslation(SHARED_NAMESPACE),
4557
4559
  t = _useTranslation.t;
4558
4560
  return jsxs(Box, {
@@ -4571,7 +4573,7 @@ var LastUpdateTime = function LastUpdateTime(_ref) {
4571
4573
  },
4572
4574
  "data-testid": dataTestId,
4573
4575
  children: getLastUpdateTitle(lastUpdateTime, t)
4574
- }), jsx(CustomIconButton, {
4576
+ }), showRefreshButton && jsx(CustomIconButton, {
4575
4577
  "data-testid": "refresh-button",
4576
4578
  onClick: onPressRefresh,
4577
4579
  sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "12.12.0",
3
+ "version": "12.13.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": {
@@ -8,7 +8,7 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/theme": "12.12.0",
11
+ "@opengeoweb/theme": "12.13.0",
12
12
  "react-draggable": "^4.4.6",
13
13
  "re-resizable": "^6.9.11",
14
14
  "lodash": "^4.17.21",
@@ -2,10 +2,11 @@ import { TFunction } from 'i18next';
2
2
  import React from 'react';
3
3
  export declare const getLastUpdateTitle: (time: string, t: TFunction) => string;
4
4
  interface LastUpdateTimeProps {
5
- onPressRefresh: () => void;
5
+ onPressRefresh?: () => void;
6
6
  lastUpdateTime?: string;
7
7
  dataTestId?: string;
8
8
  hideLabel?: boolean;
9
+ showRefreshButton?: boolean;
9
10
  }
10
11
  declare const LastUpdateTime: React.FC<LastUpdateTimeProps>;
11
12
  export default LastUpdateTime;