@opengeoweb/workspace 6.0.1 → 6.0.3

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.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./src/index";
@@ -3,8 +3,8 @@ import { createApiInstance, createNonAuthApiInstance, getApi, createFakeApiInsta
3
3
  import { getLeaves, MosaicContext, getAndAssertNodeAtPathExists, createBalancedTreeFromLeaves, MosaicWindow, MosaicWithoutDragDropContext } from 'react-mosaic-component';
4
4
  import { isAxiosError, getAxiosErrorMessage, withEggs, useConfirmationDialog, CustomIconButton, AlertBanner, CustomTooltip, SearchHighlight, ToggleMenu, usePrevious, ToolContainer, CustomToggleButton, ConfirmationServiceProvider, ConfirmationDialog } from '@opengeoweb/shared';
5
5
  import * as React from 'react';
6
- import React__default, { createContext, version, useContext, useRef, useCallback, useDebugValue, useLayoutEffect, useEffect, useMemo, memo, forwardRef, createElement, Fragment } from 'react';
7
- import { ThemeWrapper, lightTheme, Menu, SplitVertical, SplitHorizontal, Expand, UnExpand, Close, Delete, Preset, PresetWorkspace, PresetTiles, Clear, Search, WebAssetOff } from '@opengeoweb/theme';
6
+ import React__default, { useContext, useRef, useCallback, useDebugValue, createContext, memo, useEffect, forwardRef } from 'react';
7
+ import { ThemeWrapper, lightTheme, Menu, SplitVertical, SplitHorizontal, Expand, UnExpand, Close, Delete, Preset, PresetWorkspace, PresetTiles, Search, Clear, WebAssetOff } from '@opengeoweb/theme';
8
8
  import { unstable_batchedUpdates } from 'react-dom';
9
9
  import { SnackbarWrapperConnect } from '@opengeoweb/core';
10
10
  import { timeSeriesModuleConfig } from '@opengeoweb/timeseries';
@@ -19846,6 +19846,12 @@ var getViewPresetActiveId = function getViewPresetActiveId(store, panelId) {
19846
19846
  var _a;
19847
19847
  return (_a = getViewPresetById(store, panelId)) === null || _a === void 0 ? void 0 : _a.activeViewPresetId;
19848
19848
  };
19849
+ var getViewPresetPanelId = function getViewPresetPanelId(store, mapId) {
19850
+ var _a, _b;
19851
+ return (_b = (_a = getViewPresets(store).find(function (preset) {
19852
+ return preset.activeViewPresetId === mapId;
19853
+ })) === null || _a === void 0 ? void 0 : _a.panelId) !== null && _b !== void 0 ? _b : '';
19854
+ };
19849
19855
  var getDialogOptions = function getDialogOptions(store) {
19850
19856
  return getViewPresetsStore(store).viewPresetDialog || undefined;
19851
19857
  };
@@ -20009,10 +20015,7 @@ var getMosaicNode = createSelector(getWorkspaceState, function (state) {
20009
20015
  */
20010
20016
  var getViewById = function getViewById(store, viewId) {
20011
20017
  var _a, _b;
20012
- if ((_b = (_a = store === null || store === void 0 ? void 0 : store.workspace) === null || _a === void 0 ? void 0 : _a.views.byId) === null || _b === void 0 ? void 0 : _b[viewId]) {
20013
- return store.workspace.views.byId[viewId];
20014
- }
20015
- return null;
20018
+ return (_b = (_a = store === null || store === void 0 ? void 0 : store.workspace) === null || _a === void 0 ? void 0 : _a.views.byId) === null || _b === void 0 ? void 0 : _b[viewId];
20016
20019
  };
20017
20020
  /**
20018
20021
  * Gets all view ids
@@ -24613,40 +24616,39 @@ const setBatch = newBatch => batch = newBatch; // Supply a getter just to skip d
24613
24616
 
24614
24617
  const getBatch = () => batch;
24615
24618
 
24616
- const ContextKey = Symbol.for(`react-redux-context-${version}`);
24617
- const gT = globalThis;
24619
+ const ContextKey = Symbol.for(`react-redux-context`);
24620
+ const gT = typeof globalThis !== "undefined" ? globalThis :
24621
+ /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
24622
+ {};
24618
24623
 
24619
24624
  function getContext() {
24620
- let realContext = gT[ContextKey];
24625
+ var _gT$ContextKey;
24626
+
24627
+ if (!React.createContext) return {};
24628
+ const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
24629
+ let realContext = contextMap.get(React.createContext);
24621
24630
 
24622
24631
  if (!realContext) {
24623
- realContext = createContext(null);
24632
+ realContext = React.createContext(null);
24624
24633
 
24625
24634
  if (process.env.NODE_ENV !== 'production') {
24626
24635
  realContext.displayName = 'ReactRedux';
24627
24636
  }
24628
24637
 
24629
- gT[ContextKey] = realContext;
24638
+ contextMap.set(React.createContext, realContext);
24630
24639
  }
24631
24640
 
24632
24641
  return realContext;
24633
24642
  }
24634
24643
 
24635
- const ReactReduxContext = /*#__PURE__*/new Proxy({}, /*#__PURE__*/new Proxy({}, {
24636
- get(_, handler) {
24637
- const target = getContext(); // @ts-ignore
24638
-
24639
- return (_target, ...args) => Reflect[handler](target, ...args);
24640
- }
24641
-
24642
- }));
24644
+ const ReactReduxContext = /*#__PURE__*/getContext();
24643
24645
 
24644
- /**
24645
- * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
24646
- * hook that you should usually not need to call directly.
24647
- *
24648
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
24649
- * @returns {Function} A `useReduxContext` hook bound to the specified context.
24646
+ /**
24647
+ * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
24648
+ * hook that you should usually not need to call directly.
24649
+ *
24650
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
24651
+ * @returns {Function} A `useReduxContext` hook bound to the specified context.
24650
24652
  */
24651
24653
  function createReduxContextHook(context = ReactReduxContext) {
24652
24654
  return function useReduxContext() {
@@ -24659,21 +24661,21 @@ function createReduxContextHook(context = ReactReduxContext) {
24659
24661
  return contextValue;
24660
24662
  };
24661
24663
  }
24662
- /**
24663
- * A hook to access the value of the `ReactReduxContext`. This is a low-level
24664
- * hook that you should usually not need to call directly.
24665
- *
24666
- * @returns {any} the value of the `ReactReduxContext`
24667
- *
24668
- * @example
24669
- *
24670
- * import React from 'react'
24671
- * import { useReduxContext } from 'react-redux'
24672
- *
24673
- * export const CounterComponent = () => {
24674
- * const { store } = useReduxContext()
24675
- * return <div>{store.getState()}</div>
24676
- * }
24664
+ /**
24665
+ * A hook to access the value of the `ReactReduxContext`. This is a low-level
24666
+ * hook that you should usually not need to call directly.
24667
+ *
24668
+ * @returns {any} the value of the `ReactReduxContext`
24669
+ *
24670
+ * @example
24671
+ *
24672
+ * import React from 'react'
24673
+ * import { useReduxContext } from 'react-redux'
24674
+ *
24675
+ * export const CounterComponent = () => {
24676
+ * const { store } = useReduxContext()
24677
+ * return <div>{store.getState()}</div>
24678
+ * }
24677
24679
  */
24678
24680
 
24679
24681
  const useReduxContext = /*#__PURE__*/createReduxContextHook();
@@ -24688,11 +24690,11 @@ const initializeUseSelector = fn => {
24688
24690
  };
24689
24691
 
24690
24692
  const refEquality = (a, b) => a === b;
24691
- /**
24692
- * Hook factory, which creates a `useSelector` hook bound to a given context.
24693
- *
24694
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
24695
- * @returns {Function} A `useSelector` hook bound to the specified context.
24693
+ /**
24694
+ * Hook factory, which creates a `useSelector` hook bound to a given context.
24695
+ *
24696
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
24697
+ * @returns {Function} A `useSelector` hook bound to the specified context.
24696
24698
  */
24697
24699
 
24698
24700
 
@@ -24769,28 +24771,28 @@ function createSelectorHook(context = ReactReduxContext) {
24769
24771
  return selectedState;
24770
24772
  };
24771
24773
  }
24772
- /**
24773
- * A hook to access the redux store's state. This hook takes a selector function
24774
- * as an argument. The selector is called with the store state.
24775
- *
24776
- * This hook takes an optional equality comparison function as the second parameter
24777
- * that allows you to customize the way the selected state is compared to determine
24778
- * whether the component needs to be re-rendered.
24779
- *
24780
- * @param {Function} selector the selector function
24781
- * @param {Function=} equalityFn the function that will be used to determine equality
24782
- *
24783
- * @returns {any} the selected state
24784
- *
24785
- * @example
24786
- *
24787
- * import React from 'react'
24788
- * import { useSelector } from 'react-redux'
24789
- *
24790
- * export const CounterComponent = () => {
24791
- * const counter = useSelector(state => state.counter)
24792
- * return <div>{counter}</div>
24793
- * }
24774
+ /**
24775
+ * A hook to access the redux store's state. This hook takes a selector function
24776
+ * as an argument. The selector is called with the store state.
24777
+ *
24778
+ * This hook takes an optional equality comparison function as the second parameter
24779
+ * that allows you to customize the way the selected state is compared to determine
24780
+ * whether the component needs to be re-rendered.
24781
+ *
24782
+ * @param {Function} selector the selector function
24783
+ * @param {Function=} equalityFn the function that will be used to determine equality
24784
+ *
24785
+ * @returns {any} the selected state
24786
+ *
24787
+ * @example
24788
+ *
24789
+ * import React from 'react'
24790
+ * import { useSelector } from 'react-redux'
24791
+ *
24792
+ * export const CounterComponent = () => {
24793
+ * const counter = useSelector(state => state.counter)
24794
+ * return <div>{counter}</div>
24795
+ * }
24794
24796
  */
24795
24797
 
24796
24798
  const useSelector = /*#__PURE__*/createSelectorHook();
@@ -25411,7 +25413,7 @@ function createSubscription(store, parentSub) {
25411
25413
  // Matches logic in React's `shared/ExecutionEnvironment` file
25412
25414
 
25413
25415
  const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
25414
- const useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;
25416
+ const useIsomorphicLayoutEffect = canUseDOM ? React.useLayoutEffect : React.useEffect;
25415
25417
 
25416
25418
  function Provider({
25417
25419
  store,
@@ -25421,7 +25423,7 @@ function Provider({
25421
25423
  stabilityCheck = 'once',
25422
25424
  noopCheck = 'once'
25423
25425
  }) {
25424
- const contextValue = useMemo(() => {
25426
+ const contextValue = React.useMemo(() => {
25425
25427
  const subscription = createSubscription(store);
25426
25428
  return {
25427
25429
  store,
@@ -25431,7 +25433,7 @@ function Provider({
25431
25433
  noopCheck
25432
25434
  };
25433
25435
  }, [store, serverState, stabilityCheck, noopCheck]);
25434
- const previousState = useMemo(() => store.getState(), [store]);
25436
+ const previousState = React.useMemo(() => store.getState(), [store]);
25435
25437
  useIsomorphicLayoutEffect(() => {
25436
25438
  const {
25437
25439
  subscription
@@ -25450,16 +25452,16 @@ function Provider({
25450
25452
  }, [contextValue, previousState]);
25451
25453
  const Context = context || ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype
25452
25454
 
25453
- return /*#__PURE__*/React__default.createElement(Context.Provider, {
25455
+ return /*#__PURE__*/React.createElement(Context.Provider, {
25454
25456
  value: contextValue
25455
25457
  }, children);
25456
25458
  }
25457
25459
 
25458
- /**
25459
- * Hook factory, which creates a `useStore` hook bound to a given context.
25460
- *
25461
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
25462
- * @returns {Function} A `useStore` hook bound to the specified context.
25460
+ /**
25461
+ * Hook factory, which creates a `useStore` hook bound to a given context.
25462
+ *
25463
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
25464
+ * @returns {Function} A `useStore` hook bound to the specified context.
25463
25465
  */
25464
25466
 
25465
25467
  function createStoreHook(context = ReactReduxContext) {
@@ -25474,29 +25476,29 @@ function createStoreHook(context = ReactReduxContext) {
25474
25476
  return store;
25475
25477
  };
25476
25478
  }
25477
- /**
25478
- * A hook to access the redux store.
25479
- *
25480
- * @returns {any} the redux store
25481
- *
25482
- * @example
25483
- *
25484
- * import React from 'react'
25485
- * import { useStore } from 'react-redux'
25486
- *
25487
- * export const ExampleComponent = () => {
25488
- * const store = useStore()
25489
- * return <div>{store.getState()}</div>
25490
- * }
25479
+ /**
25480
+ * A hook to access the redux store.
25481
+ *
25482
+ * @returns {any} the redux store
25483
+ *
25484
+ * @example
25485
+ *
25486
+ * import React from 'react'
25487
+ * import { useStore } from 'react-redux'
25488
+ *
25489
+ * export const ExampleComponent = () => {
25490
+ * const store = useStore()
25491
+ * return <div>{store.getState()}</div>
25492
+ * }
25491
25493
  */
25492
25494
 
25493
25495
  const useStore = /*#__PURE__*/createStoreHook();
25494
25496
 
25495
- /**
25496
- * Hook factory, which creates a `useDispatch` hook bound to a given context.
25497
- *
25498
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
25499
- * @returns {Function} A `useDispatch` hook bound to the specified context.
25497
+ /**
25498
+ * Hook factory, which creates a `useDispatch` hook bound to a given context.
25499
+ *
25500
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
25501
+ * @returns {Function} A `useDispatch` hook bound to the specified context.
25500
25502
  */
25501
25503
 
25502
25504
  function createDispatchHook(context = ReactReduxContext) {
@@ -25508,26 +25510,26 @@ function createDispatchHook(context = ReactReduxContext) {
25508
25510
  return store.dispatch;
25509
25511
  };
25510
25512
  }
25511
- /**
25512
- * A hook to access the redux `dispatch` function.
25513
- *
25514
- * @returns {any|function} redux store's `dispatch` function
25515
- *
25516
- * @example
25517
- *
25518
- * import React, { useCallback } from 'react'
25519
- * import { useDispatch } from 'react-redux'
25520
- *
25521
- * export const CounterComponent = ({ value }) => {
25522
- * const dispatch = useDispatch()
25523
- * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
25524
- * return (
25525
- * <div>
25526
- * <span>{value}</span>
25527
- * <button onClick={increaseCounter}>Increase counter</button>
25528
- * </div>
25529
- * )
25530
- * }
25513
+ /**
25514
+ * A hook to access the redux `dispatch` function.
25515
+ *
25516
+ * @returns {any|function} redux store's `dispatch` function
25517
+ *
25518
+ * @example
25519
+ *
25520
+ * import React, { useCallback } from 'react'
25521
+ * import { useDispatch } from 'react-redux'
25522
+ *
25523
+ * export const CounterComponent = ({ value }) => {
25524
+ * const dispatch = useDispatch()
25525
+ * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
25526
+ * return (
25527
+ * <div>
25528
+ * <span>{value}</span>
25529
+ * <button onClick={increaseCounter}>Increase counter</button>
25530
+ * </div>
25531
+ * )
25532
+ * }
25531
25533
  */
25532
25534
 
25533
25535
  const useDispatch = /*#__PURE__*/createDispatchHook();
@@ -31379,7 +31381,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
31379
31381
  function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31380
31382
  step((generator = generator.apply(thisArg, _arguments || [])).next());
31381
31383
  });
31382
- }
31384
+ }
31385
+
31386
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
31387
+ var e = new Error(message);
31388
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
31389
+ };
31383
31390
 
31384
31391
  // takes a component and connects module methods with workspace store
31385
31392
  var ComponentsLookUpWrapper = function ComponentsLookUpWrapper(_a) {
@@ -31977,36 +31984,35 @@ var FilterList = function FilterList(_ref) {
31977
31984
  };
31978
31985
 
31979
31986
  var DEBOUNCE_TIMEOUT = 300;
31980
- var SearchField = function SearchField(_ref) {
31981
- var _ref$label = _ref.label,
31982
- label = _ref$label === void 0 ? 'Search' : _ref$label,
31983
- valueChanged = _ref.valueChanged,
31984
- _ref$value = _ref.value,
31985
- value = _ref$value === void 0 ? '' : _ref$value;
31987
+ var SearchButton = function SearchButton(_ref) {
31988
+ var label = _ref.label;
31989
+ return /*#__PURE__*/React.createElement(CustomIconButton, {
31990
+ tooltipTitle: label,
31991
+ edge: "end",
31992
+ size: "large"
31993
+ }, /*#__PURE__*/React.createElement(Search, null));
31994
+ };
31995
+ var ClearButton = function ClearButton(_ref2) {
31996
+ var onClick = _ref2.onClick;
31997
+ return /*#__PURE__*/React.createElement(CustomIconButton, {
31998
+ tooltipTitle: "Clear",
31999
+ edge: "end",
32000
+ onClick: onClick,
32001
+ size: "large"
32002
+ }, /*#__PURE__*/React.createElement(Clear, null));
32003
+ };
32004
+ var SearchField = function SearchField(_ref3) {
32005
+ var _ref3$label = _ref3.label,
32006
+ label = _ref3$label === void 0 ? 'Search' : _ref3$label,
32007
+ valueChanged = _ref3.valueChanged,
32008
+ _ref3$value = _ref3.value,
32009
+ value = _ref3$value === void 0 ? '' : _ref3$value;
31986
32010
  var _React$useState = React.useState(value),
31987
32011
  _React$useState2 = _slicedToArray$2(_React$useState, 2),
31988
32012
  localValue = _React$useState2[0],
31989
32013
  setLocalValue = _React$useState2[1];
31990
32014
  // eslint-disable-next-line react-hooks/exhaustive-deps
31991
32015
  var handleValueChangeDebounced = React.useCallback(debounce$1(valueChanged, DEBOUNCE_TIMEOUT), []);
31992
- var ClearButton = function ClearButton() {
31993
- return /*#__PURE__*/React.createElement(CustomIconButton, {
31994
- tooltipTitle: "Clear",
31995
- edge: "end",
31996
- onClick: function onClick() {
31997
- setLocalValue('');
31998
- valueChanged('');
31999
- },
32000
- size: "large"
32001
- }, /*#__PURE__*/React.createElement(Clear, null));
32002
- };
32003
- var SearchButton = function SearchButton() {
32004
- return /*#__PURE__*/React.createElement(CustomIconButton, {
32005
- tooltipTitle: label,
32006
- edge: "end",
32007
- size: "large"
32008
- }, /*#__PURE__*/React.createElement(Search, null));
32009
- };
32010
32016
  return /*#__PURE__*/React.createElement(TextField, {
32011
32017
  variant: "filled",
32012
32018
  size: "small",
@@ -32026,7 +32032,14 @@ var SearchField = function SearchField(_ref) {
32026
32032
  InputProps: {
32027
32033
  endAdornment: /*#__PURE__*/React.createElement(InputAdornment, {
32028
32034
  position: "end"
32029
- }, localValue ? /*#__PURE__*/React.createElement(ClearButton, null) : /*#__PURE__*/React.createElement(SearchButton, null))
32035
+ }, localValue ? /*#__PURE__*/React.createElement(ClearButton, {
32036
+ onClick: function onClick() {
32037
+ setLocalValue('');
32038
+ valueChanged('');
32039
+ }
32040
+ }) : /*#__PURE__*/React.createElement(SearchButton, {
32041
+ label: label
32042
+ }))
32030
32043
  }
32031
32044
  });
32032
32045
  };
@@ -32657,6 +32670,16 @@ var WorkspaceTileConnect = function WorkspaceTileConnect(_ref) {
32657
32670
  };
32658
32671
  // eslint-disable-next-line react-hooks/exhaustive-deps
32659
32672
  }, [unregisterView, registerView]);
32673
+ var connectedMap = useSelector(function (store) {
32674
+ var _a;
32675
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
32676
+ var initialProps = view === null || view === void 0 ? void 0 : view.initialProps;
32677
+ var mapId = (_a = initialProps === null || initialProps === void 0 ? void 0 : initialProps.plotPreset) === null || _a === void 0 ? void 0 : _a.mapId;
32678
+ if (mapId) {
32679
+ return getViewPresetPanelId(store, mapId);
32680
+ }
32681
+ return undefined;
32682
+ });
32660
32683
  return /*#__PURE__*/React.createElement(MosaicWindow, {
32661
32684
  path: path,
32662
32685
  createNode: createNode,
@@ -32702,7 +32725,8 @@ var WorkspaceTileConnect = function WorkspaceTileConnect(_ref) {
32702
32725
  title: title,
32703
32726
  id: mosaicNodeId,
32704
32727
  componentType: view === null || view === void 0 ? void 0 : view.componentType,
32705
- initialProps: view === null || view === void 0 ? void 0 : view.initialProps
32728
+ initialProps: view === null || view === void 0 ? void 0 : view.initialProps,
32729
+ connectedMap: connectedMap
32706
32730
  }), isViewPresetDialogOpen && /*#__PURE__*/React.createElement(ViewPresetMenu, {
32707
32731
  panelId: mosaicNodeId,
32708
32732
  closeMenu: function closeMenu() {
@@ -33167,6 +33191,7 @@ var RULESET = 'rule';
33167
33191
  var DECLARATION = 'decl';
33168
33192
  var IMPORT = '@import';
33169
33193
  var KEYFRAMES = '@keyframes';
33194
+ var LAYER = '@layer';
33170
33195
 
33171
33196
  /**
33172
33197
  * @param {number}
@@ -33581,7 +33606,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
33581
33606
  // \0 }
33582
33607
  case 0: case 125: scanning = 0;
33583
33608
  // ;
33584
- case 59 + offset:
33609
+ case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
33585
33610
  if (property > 0 && (strlen(characters) - length))
33586
33611
  append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
33587
33612
  break
@@ -33596,8 +33621,8 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
33596
33621
  parse(characters, root, reference, reference, props, rulesets, length, points, children);
33597
33622
  else
33598
33623
  switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
33599
- // d m s
33600
- case 100: case 109: case 115:
33624
+ // d l m s
33625
+ case 100: case 108: case 109: case 115:
33601
33626
  parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
33602
33627
  break
33603
33628
  default:
@@ -33716,6 +33741,7 @@ function serialize (children, callback) {
33716
33741
  */
33717
33742
  function stringify (element, index, children, callback) {
33718
33743
  switch (element.type) {
33744
+ case LAYER: if (element.children.length) break
33719
33745
  case IMPORT: case DECLARATION: return element.return = element.return || element.value
33720
33746
  case COMMENT: return ''
33721
33747
  case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
@@ -34519,6 +34545,7 @@ function murmur2(str) {
34519
34545
 
34520
34546
  var unitlessKeys = {
34521
34547
  animationIterationCount: 1,
34548
+ aspectRatio: 1,
34522
34549
  borderImageOutset: 1,
34523
34550
  borderImageSlice: 1,
34524
34551
  borderImageWidth: 1,
@@ -34889,7 +34916,7 @@ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : use
34889
34916
  var isBrowser$1 = typeof document !== 'undefined';
34890
34917
  var hasOwnProperty = {}.hasOwnProperty;
34891
34918
 
34892
- var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
34919
+ var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
34893
34920
  // because this module is primarily intended for the browser and node
34894
34921
  // but it's also required in react native and similar environments sometimes
34895
34922
  // and we could have a special build just for that
@@ -34928,7 +34955,7 @@ if (!isBrowser$1) {
34928
34955
  cache = createCache({
34929
34956
  key: 'css'
34930
34957
  });
34931
- return /*#__PURE__*/createElement(EmotionCacheContext.Provider, {
34958
+ return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
34932
34959
  value: cache
34933
34960
  }, func(props, cache));
34934
34961
  } else {
@@ -34938,7 +34965,7 @@ if (!isBrowser$1) {
34938
34965
  };
34939
34966
  }
34940
34967
 
34941
- var ThemeContext = /* #__PURE__ */createContext({});
34968
+ var ThemeContext = /* #__PURE__ */React.createContext({});
34942
34969
 
34943
34970
  if (process.env.NODE_ENV !== 'production') {
34944
34971
  ThemeContext.displayName = 'EmotionThemeContext';
@@ -34967,7 +34994,7 @@ var Insertion$1 = function Insertion(_ref) {
34967
34994
  next = next.next;
34968
34995
  }
34969
34996
 
34970
- return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
34997
+ return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
34971
34998
  __html: rules
34972
34999
  }, _ref2.nonce = cache.sheet.nonce, _ref2));
34973
35000
  }
@@ -34994,7 +35021,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
34994
35021
  className = props.className + " ";
34995
35022
  }
34996
35023
 
34997
- var serialized = serializeStyles(registeredStyles, undefined, useContext(ThemeContext));
35024
+ var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
34998
35025
 
34999
35026
  if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
35000
35027
  var labelFromStack = props[labelPropName];
@@ -35015,11 +35042,11 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
35015
35042
 
35016
35043
  newProps.ref = ref;
35017
35044
  newProps.className = className;
35018
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion$1, {
35045
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion$1, {
35019
35046
  cache: cache,
35020
35047
  serialized: serialized,
35021
35048
  isStringTag: typeof WrappedComponent === 'string'
35022
- }), /*#__PURE__*/createElement(WrappedComponent, newProps));
35049
+ }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));
35023
35050
  });
35024
35051
 
35025
35052
  if (process.env.NODE_ENV !== 'production') {
@@ -35078,7 +35105,7 @@ var Insertion = function Insertion(_ref) {
35078
35105
  next = next.next;
35079
35106
  }
35080
35107
 
35081
- return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
35108
+ return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
35082
35109
  __html: rules
35083
35110
  }, _ref2.nonce = cache.sheet.nonce, _ref2));
35084
35111
  }
@@ -35148,7 +35175,7 @@ var createStyled = function createStyled(tag, options) {
35148
35175
  mergedProps[key] = props[key];
35149
35176
  }
35150
35177
 
35151
- mergedProps.theme = useContext(ThemeContext);
35178
+ mergedProps.theme = React.useContext(ThemeContext);
35152
35179
  }
35153
35180
 
35154
35181
  if (typeof props.className === 'string') {
@@ -35178,11 +35205,11 @@ var createStyled = function createStyled(tag, options) {
35178
35205
 
35179
35206
  newProps.className = className;
35180
35207
  newProps.ref = ref;
35181
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion, {
35208
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
35182
35209
  cache: cache,
35183
35210
  serialized: serialized,
35184
35211
  isStringTag: typeof FinalTag === 'string'
35185
- }), /*#__PURE__*/createElement(FinalTag, newProps));
35212
+ }), /*#__PURE__*/React.createElement(FinalTag, newProps));
35186
35213
  });
35187
35214
  Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
35188
35215
  Styled.defaultProps = tag.defaultProps;
@@ -35220,17 +35247,15 @@ tags.forEach(function (tagName) {
35220
35247
  newStyled[tagName] = newStyled(tagName);
35221
35248
  });
35222
35249
 
35223
- var emStyled = newStyled;
35224
-
35225
35250
  /**
35226
- * @mui/styled-engine v5.12.0
35251
+ * @mui/styled-engine v5.13.2
35227
35252
  *
35228
35253
  * @license MIT
35229
35254
  * This source code is licensed under the MIT license found in the
35230
35255
  * LICENSE file in the root directory of this source tree.
35231
35256
  */
35232
35257
  function styled(tag, options) {
35233
- const stylesFactory = emStyled(tag, options);
35258
+ const stylesFactory = newStyled(tag, options);
35234
35259
  if (process.env.NODE_ENV !== 'production') {
35235
35260
  return (...styles) => {
35236
35261
  const component = typeof tag === 'string' ? `"${tag}"` : 'component';
@@ -35626,6 +35651,9 @@ process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {
35626
35651
  return obj;
35627
35652
  }, {}) : {};
35628
35653
 
35654
+ // The different signatures imply different meaning for their arguments that can't be expressed structurally.
35655
+ // We express the difference with variable names.
35656
+ /* tslint:disable:unified-signatures */
35629
35657
  /* tslint:enable:unified-signatures */
35630
35658
 
35631
35659
  function createSpacing(spacingInput = 8) {
@@ -35862,8 +35890,8 @@ const width = style$1({
35862
35890
  const maxWidth = props => {
35863
35891
  if (props.maxWidth !== undefined && props.maxWidth !== null) {
35864
35892
  const styleFromPropValue = propValue => {
35865
- var _props$theme, _props$theme$breakpoi, _props$theme$breakpoi2;
35866
- const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || values[propValue];
35893
+ var _props$theme;
35894
+ const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
35867
35895
  return {
35868
35896
  maxWidth: breakpoint || sizingTransform(propValue)
35869
35897
  };
@@ -36215,6 +36243,8 @@ function unstable_createStyleFunctionSx() {
36215
36243
  if (val == null) {
36216
36244
  return null;
36217
36245
  }
36246
+
36247
+ // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123
36218
36248
  if (themeKey === 'typography' && val === 'inherit') {
36219
36249
  return {
36220
36250
  [prop]: val
@@ -36359,7 +36389,7 @@ const splitProps = props => {
36359
36389
  systemProps: {},
36360
36390
  otherProps: {}
36361
36391
  };
36362
- const config = (_props$theme$unstable = props == null ? void 0 : (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig$1;
36392
+ const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig$1;
36363
36393
  Object.keys(props).forEach(prop => {
36364
36394
  if (config[prop]) {
36365
36395
  result.systemProps[prop] = props[prop];
package/package.json CHANGED
@@ -1,43 +1,42 @@
1
1
  {
2
2
  "name": "@opengeoweb/workspace",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "GeoWeb Workspace library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
- "module": "./index.js",
11
- "main": "./index.js",
10
+ "module": "./index.esm.js",
12
11
  "type": "module",
13
- "types": "./src/index.d.ts",
12
+ "main": "./index.esm.js",
14
13
  "dependencies": {},
15
14
  "peerDependencies": {
16
- "@emotion/react": "11.10.6",
15
+ "@emotion/react": "11.11.1",
17
16
  "@mui/material": "5.12.0",
18
- "@mui/system": "5.12.0",
19
- "@opengeoweb/api": "6.0.1",
20
- "@opengeoweb/authentication": "6.0.1",
21
- "@opengeoweb/core": "6.0.1",
22
- "@opengeoweb/form-fields": "6.0.1",
23
- "@opengeoweb/shared": "6.0.1",
24
- "@opengeoweb/sigmet-airmet": "6.0.1",
25
- "@opengeoweb/store": "6.0.1",
26
- "@opengeoweb/taf": "6.0.1",
27
- "@opengeoweb/theme": "6.0.1",
28
- "@opengeoweb/timeseries": "6.0.1",
17
+ "@mui/system": "5.14.5",
18
+ "@opengeoweb/api": "6.0.3",
19
+ "@opengeoweb/authentication": "6.0.3",
20
+ "@opengeoweb/core": "6.0.3",
21
+ "@opengeoweb/form-fields": "6.0.3",
22
+ "@opengeoweb/shared": "6.0.3",
23
+ "@opengeoweb/sigmet-airmet": "6.0.3",
24
+ "@opengeoweb/store": "6.0.3",
25
+ "@opengeoweb/taf": "6.0.3",
26
+ "@opengeoweb/theme": "6.0.3",
27
+ "@opengeoweb/timeseries": "6.0.3",
29
28
  "@redux-eggs/core": "2.2.0",
30
29
  "@redux-eggs/redux-toolkit": "2.2.0",
31
30
  "@redux-eggs/saga-extension": "2.2.0",
32
31
  "@reduxjs/toolkit": "1.9.5",
33
- "axios": "1.2.0",
32
+ "axios": "1.4.0",
34
33
  "immer": "9.0.21",
35
34
  "lodash": "4.17.21",
36
35
  "react": "18.2.0",
37
36
  "react-dnd-multi-backend": "6.0.2",
38
- "react-hook-form": "7.45.2",
37
+ "react-hook-form": "7.45.4",
39
38
  "react-mosaic-component": "5.3.0",
40
- "react-redux": "8.1.1",
39
+ "react-redux": "8.1.2",
41
40
  "redux-saga": "1.2.3"
42
41
  }
43
42
  }
@@ -1,7 +1,7 @@
1
1
  import { mapTypes } from '@opengeoweb/store';
2
2
  import React from 'react';
3
3
  import { PresetAction } from '../../store/viewPresets/types';
4
- export declare type MapPresetFormValues = {
4
+ export type MapPresetFormValues = {
5
5
  title?: string;
6
6
  initialProps?: {
7
7
  mapPreset: mapTypes.MapPreset;
@@ -4,7 +4,7 @@ import { ErrorInitialViewPresetsPayload, ErrorViewPresetPayload, FetchedInitialV
4
4
  export declare const viewPresetsListFilterOptions: ViewPresetsListFilter[];
5
5
  export declare const viewPresetsAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetEntity>;
6
6
  export declare const initialState: ViewPresetState;
7
- export declare type SupportedOrigins = layerTypes.LayerActionOrigin | mapEnums.MapActionOrigin;
7
+ export type SupportedOrigins = layerTypes.LayerActionOrigin | mapEnums.MapActionOrigin;
8
8
  export declare const supportedChangeOrigins: SupportedOrigins[];
9
9
  export declare const reducer: import("redux").Reducer<ViewPresetState, import("redux").AnyAction>;
10
10
  export declare const viewPresetActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -9,37 +9,16 @@ export declare const getViewPresetDetailError: (store: AppStore, panelId: string
9
9
  export declare const getViewPresetListError: (store: AppStore, panelId: string) => string | undefined;
10
10
  export declare const getViewPresetHasChanges: (store: AppStore, panelId: string) => boolean | undefined;
11
11
  export declare const getViewPresetActiveId: (store: AppStore, panelId: string) => string | undefined;
12
+ export declare const getViewPresetPanelId: (store: AppStore, mapId: string) => string;
12
13
  export declare const getDialogOptions: (store: AppStore) => ViewPresetDialog | undefined;
13
14
  export declare const getIsViewPresetListDialogOpen: (store: AppStore, panelId: string) => boolean | undefined;
14
- export declare const getViewPresetListFiltersForView: ((state: {
15
- workspace?: import("../workspace/types").WorkspaceState | undefined;
16
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
17
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
18
- viewPresets?: ViewPresetState | undefined;
19
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
20
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
21
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
22
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
23
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
24
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
25
- }, params_0: import("@reduxjs/toolkit").EntityId) => ViewPresetsListFilter[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetsListFilter[], {
15
+ export declare const getViewPresetListFiltersForView: ((state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetsListFilter[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetsListFilter[], {
26
16
  clearCache: () => void;
27
17
  }> & {
28
18
  clearCache: () => void;
29
19
  };
30
20
  export declare const getViewPresetListSearchQueryForView: (store: AppStore, panelId: string) => string;
31
- export declare const getViewPresetListFilterResultsForView: ((state: {
32
- workspace?: import("../workspace/types").WorkspaceState | undefined;
33
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
34
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
35
- viewPresets?: ViewPresetState | undefined;
36
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
37
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
38
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
39
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
40
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
41
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
42
- }, params_0: import("@reduxjs/toolkit").EntityId) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetListItem[], {
21
+ export declare const getViewPresetListFilterResultsForView: ((state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetListItem[], {
43
22
  clearCache: () => void;
44
23
  }> & {
45
24
  clearCache: () => void;
@@ -14,7 +14,7 @@ export declare enum ViewPresetType {
14
14
  PRESET_DETAIL = "PRESET_DETAIL",
15
15
  PRESET_LIST = "PRESET_LIST"
16
16
  }
17
- export declare type ViewPresetError = {
17
+ export type ViewPresetError = {
18
18
  type: ViewPresetType;
19
19
  message: string;
20
20
  } | undefined;
@@ -115,11 +115,11 @@ export interface ToggleSelectFilterChip extends ViewPresetAction {
115
115
  id: string;
116
116
  isSelected: boolean;
117
117
  }
118
- export declare type SetSelectAllFilterChip = ViewPresetAction;
118
+ export type SetSelectAllFilterChip = ViewPresetAction;
119
119
  export interface SearchWorkspaceFilter extends ViewPresetAction {
120
120
  searchQuery: string;
121
121
  }
122
- export declare type UnregisterViewPresetPayload = ViewPresetAction;
122
+ export type UnregisterViewPresetPayload = ViewPresetAction;
123
123
  export interface OpenViewPresetDialogPayload {
124
124
  viewPresetDialog: ViewPresetDialog;
125
125
  }
@@ -3,18 +3,7 @@ import { ViewPresetListItem, ViewPresetListState } from './types';
3
3
  import { ViewPresetsListFilter } from '../viewPresets/types';
4
4
  export declare const getViewPresetsListStore: (store: AppStore) => ViewPresetListState;
5
5
  export declare const getViewPresetsList: (state: AppStore) => ViewPresetListItem[], selectById: (state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetListItem | undefined;
6
- export declare const getFilteredViewPresetListForView: ((state: {
7
- workspace?: import("../workspace/types").WorkspaceState | undefined;
8
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
9
- viewPresetsList?: ViewPresetListState | undefined;
10
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
11
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
12
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
13
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
14
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
15
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
16
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
17
- }, params_0: string) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: ViewPresetListItem[], args_1: import("../workspace/types").ViewPresetListItem[], args_2: ViewPresetsListFilter[], args_3: string) => ViewPresetListItem[], {
6
+ export declare const getFilteredViewPresetListForView: ((state: AppStore, id: string) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: ViewPresetListItem[], args_1: import("../workspace/types").ViewPresetListItem[], args_2: ViewPresetsListFilter[], args_3: string) => ViewPresetListItem[], {
18
7
  clearCache: () => void;
19
8
  }> & {
20
9
  clearCache: () => void;
@@ -1,16 +1,16 @@
1
1
  import { EntityState } from '@reduxjs/toolkit';
2
- export declare type PresetScope = 'user' | 'system';
3
- export declare type ViewPresetListItem = {
2
+ export type PresetScope = 'user' | 'system';
3
+ export type ViewPresetListItem = {
4
4
  id: string;
5
5
  title: string;
6
6
  date: string;
7
7
  scope: PresetScope;
8
8
  };
9
- export declare type FetchViewPresetsListParams = {
9
+ export type FetchViewPresetsListParams = {
10
10
  scope?: string;
11
11
  search?: string;
12
12
  };
13
- export declare type ViewPresetListState = EntityState<ViewPresetListItem>;
13
+ export type ViewPresetListState = EntityState<ViewPresetListItem>;
14
14
  export interface LoadViewPresetsPayload {
15
15
  viewPresets: ViewPresetListItem[];
16
16
  }
@@ -6,18 +6,7 @@ import { AppStore } from '../store';
6
6
  * @param {object} store store: object - Store object
7
7
  * @returns {object} returnType: WorkspaceState
8
8
  */
9
- export declare const getWorkspaceState: ((state: {
10
- workspace?: WorkspaceState | undefined;
11
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
12
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
13
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
14
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
15
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
16
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
17
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
18
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
19
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
20
- }) => WorkspaceState) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => WorkspaceState, {
9
+ export declare const getWorkspaceState: ((state: AppStore) => WorkspaceState) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => WorkspaceState, {
21
10
  clearCache: () => void;
22
11
  }> & {
23
12
  clearCache: () => void;
@@ -28,18 +17,7 @@ export declare const getWorkspaceState: ((state: {
28
17
  * @param {object} store store: object - Store object
29
18
  * @returns {MosaicNode<string>} returnType: MosaicNode<string>
30
19
  */
31
- export declare const getMosaicNode: ((state: {
32
- workspace?: WorkspaceState | undefined;
33
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
34
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
35
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
36
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
37
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
38
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
39
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
40
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
41
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
42
- }) => import("react-mosaic-component").MosaicNode<string>) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("react-mosaic-component").MosaicNode<string>, {
20
+ export declare const getMosaicNode: ((state: AppStore) => import("react-mosaic-component").MosaicNode<string>) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("react-mosaic-component").MosaicNode<string>, {
43
21
  clearCache: () => void;
44
22
  }> & {
45
23
  clearCache: () => void;
@@ -51,25 +29,14 @@ export declare const getMosaicNode: ((state: {
51
29
  * @param {string} viewId viewId: string - view id
52
30
  * @returns {object} returnType: WorkspaceViewType
53
31
  */
54
- export declare const getViewById: (store: AppStore, viewId: string) => WorkspaceViewType;
32
+ export declare const getViewById: (store: AppStore, viewId: string) => WorkspaceViewType | undefined;
55
33
  /**
56
34
  * Gets all view ids
57
35
  *
58
36
  * @param {object} store store: object - Store object
59
37
  * @returns {object} returnType: string[]
60
38
  */
61
- export declare const getViewIds: ((state: {
62
- workspace?: WorkspaceState | undefined;
63
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
64
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
65
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
66
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
67
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
68
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
69
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
70
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
71
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
72
- }) => string[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string[], {
39
+ export declare const getViewIds: ((state: AppStore) => string[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string[], {
73
40
  clearCache: () => void;
74
41
  }> & {
75
42
  clearCache: () => void;
@@ -81,50 +48,17 @@ export declare const getViewIds: ((state: {
81
48
  * @param {string} viewId viewId: string - view id
82
49
  * @returns {boolean} returnType: boolean
83
50
  */
84
- export declare const getShouldPreventClose: ((state: {
85
- workspace?: WorkspaceState | undefined;
86
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
87
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
88
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
89
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
90
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
91
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
92
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
93
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
94
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
95
- }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType) => boolean, {
51
+ export declare const getShouldPreventClose: ((state: AppStore, viewId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType | undefined) => boolean, {
96
52
  clearCache: () => void;
97
53
  }> & {
98
54
  clearCache: () => void;
99
55
  };
100
- export declare const isWorkspaceLoading: ((state: {
101
- workspace?: WorkspaceState | undefined;
102
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
103
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
104
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
105
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
106
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
107
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
108
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
109
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
110
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
111
- }) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
56
+ export declare const isWorkspaceLoading: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
112
57
  clearCache: () => void;
113
58
  }> & {
114
59
  clearCache: () => void;
115
60
  };
116
- export declare const getWorkspaceError: ((state: {
117
- workspace?: WorkspaceState | undefined;
118
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
119
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
120
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
121
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
122
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
123
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
124
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
125
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
126
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
127
- }) => import("./types").WorkspaceError) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").WorkspaceError, {
61
+ export declare const getWorkspaceError: ((state: AppStore) => import("./types").WorkspaceError) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").WorkspaceError, {
128
62
  clearCache: () => void;
129
63
  }> & {
130
64
  clearCache: () => void;
@@ -135,34 +69,12 @@ export declare const getWorkspaceError: ((state: {
135
69
  * @param {object} store store: object - Store object
136
70
  * @returns {string} returnType: string
137
71
  */
138
- export declare const getSelectedWorkspaceTitle: ((state: {
139
- workspace?: WorkspaceState | undefined;
140
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
141
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
142
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
143
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
144
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
145
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
146
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
147
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
148
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
149
- }) => string) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string, {
72
+ export declare const getSelectedWorkspaceTitle: ((state: AppStore) => string) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => string, {
150
73
  clearCache: () => void;
151
74
  }> & {
152
75
  clearCache: () => void;
153
76
  };
154
- export declare const hasWorkspaceChanges: ((state: {
155
- workspace?: WorkspaceState | undefined;
156
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
157
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
158
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
159
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
160
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
161
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
162
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
163
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
164
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
165
- }) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
77
+ export declare const hasWorkspaceChanges: ((state: AppStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => boolean, {
166
78
  clearCache: () => void;
167
79
  }> & {
168
80
  clearCache: () => void;
@@ -173,18 +85,7 @@ export declare const hasWorkspaceChanges: ((state: {
173
85
  * @param {object} store store: object - Store object
174
86
  * @returns {string} returnType: string
175
87
  */
176
- export declare const getViewType: ((state: {
177
- workspace?: WorkspaceState | undefined;
178
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
179
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
180
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
181
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
182
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
183
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
184
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
185
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
186
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
187
- }) => "" | import("./types").ViewType) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => "" | import("./types").ViewType, {
88
+ export declare const getViewType: ((state: AppStore) => "" | import("./types").ViewType) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => "" | import("./types").ViewType, {
188
89
  clearCache: () => void;
189
90
  }> & {
190
91
  clearCache: () => void;
@@ -195,18 +96,7 @@ export declare const getViewType: ((state: {
195
96
  * @param {object} store store: object - Store object
196
97
  * @returns {string} returnType: string
197
98
  */
198
- export declare const getSelectedWorkspaceScope: ((state: {
199
- workspace?: WorkspaceState | undefined;
200
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
201
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
202
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
203
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
204
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
205
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
206
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
207
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
208
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
209
- }) => import("./types").PresetScope) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").PresetScope, {
99
+ export declare const getSelectedWorkspaceScope: ((state: AppStore) => import("./types").PresetScope) & import("reselect").OutputSelectorFields<(args_0: WorkspaceState) => import("./types").PresetScope, {
210
100
  clearCache: () => void;
211
101
  }> & {
212
102
  clearCache: () => void;
@@ -217,18 +107,7 @@ export declare const getSelectedWorkspaceScope: ((state: {
217
107
  * @param {object} store store: object - Store object
218
108
  * @returns {object} returnType: object - WorkspacePresetFromBE
219
109
  */
220
- export declare const getWorkspaceData: ((state: {
221
- workspace?: WorkspaceState | undefined;
222
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
223
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
224
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
225
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
226
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
227
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
228
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
229
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
230
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
231
- }) => {
110
+ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/store").CoreAppStore) => {
232
111
  id: string | undefined;
233
112
  title: string;
234
113
  syncGroups: {
@@ -263,18 +142,7 @@ export declare const getWorkspaceData: ((state: {
263
142
  }> & {
264
143
  clearCache: () => void;
265
144
  };
266
- export declare const getViewPresetToSendToBackend: ((state: {
267
- workspace?: WorkspaceState | undefined;
268
- workspaceList?: import("../workspaceList/types").WorkspaceListState | undefined;
269
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
270
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
271
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
272
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
273
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
274
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
275
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
276
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
277
- }, params_0: string) => {
145
+ export declare const getViewPresetToSendToBackend: ((state: any, viewId: string) => {
278
146
  id: string | undefined;
279
147
  scope: import("./types").PresetScope;
280
148
  title: string;
@@ -291,7 +159,7 @@ export declare const getViewPresetToSendToBackend: ((state: {
291
159
  */
292
160
  componentType: "Map";
293
161
  keywords: string;
294
- }) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType, args_1: import("dist/libs/store/src/store/mapStore/types").MapPreset, args_2: string[]) => {
162
+ }) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType | undefined, args_1: import("dist/libs/store/src/store/mapStore/types").MapPreset, args_2: string[]) => {
295
163
  id: string | undefined;
296
164
  scope: import("./types").PresetScope;
297
165
  title: string;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { syncGroupsTypes } from '@opengeoweb/store';
3
3
  import { MosaicNode } from 'react-mosaic-component';
4
- declare type InitialPropsWorkspaceViewType = Record<string, unknown>;
5
- export declare type WorkspaceViewPresetComponentsLookupType = 'ViewError' | 'ViewLoading';
4
+ type InitialPropsWorkspaceViewType = Record<string, unknown>;
5
+ export type WorkspaceViewPresetComponentsLookupType = 'ViewError' | 'ViewLoading';
6
6
  export interface WorkspaceViewType {
7
7
  id?: string;
8
8
  title?: string;
@@ -20,7 +20,7 @@ export interface WorkspaceViewsFromBE {
20
20
  mosaicNodeId: string;
21
21
  viewPresetId: string;
22
22
  }
23
- export declare type ViewType = 'singleWindow' | 'multiWindow' | 'tiledWindow';
23
+ export type ViewType = 'singleWindow' | 'multiWindow' | 'tiledWindow';
24
24
  export interface WorkspaceSyncGroup {
25
25
  id: string;
26
26
  type: syncGroupsTypes.SyncType;
@@ -95,10 +95,11 @@ export interface WorkspaceComponentLookupPayload {
95
95
  id: string;
96
96
  title?: string;
97
97
  initialProps: unknown;
98
+ connectedMap?: string;
98
99
  }
99
- export declare type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
100
- export declare type PresetScope = 'user' | 'system';
101
- export declare type ViewPresetListItem = {
100
+ export type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
101
+ export type PresetScope = 'user' | 'system';
102
+ export type ViewPresetListItem = {
102
103
  id: string;
103
104
  title: string;
104
105
  date: string;
@@ -123,7 +124,7 @@ export declare enum WorkspaceErrorType {
123
124
  GENERIC = "GENERIC",
124
125
  SAVE = "SAVE"
125
126
  }
126
- export declare type WorkspaceError = {
127
+ export type WorkspaceError = {
127
128
  type: WorkspaceErrorType;
128
129
  message: string;
129
130
  } | undefined;
@@ -6,18 +6,7 @@ export declare const getWorkspaceListError: (store: AppStore) => WorkspaceListEr
6
6
  export declare const getWorkspaceList: (state: AppStore) => import("../workspace/types").WorkspacePresetListItem[];
7
7
  export declare const getWorkspaceActionDialogDetails: (store: AppStore) => WorkspaceActionDialogType | boolean;
8
8
  export declare const getIsWorkspaceListDialogOpen: (store: AppStore) => boolean;
9
- export declare const getWorkspaceListFilters: ((state: {
10
- workspace?: import("../workspace/types").WorkspaceState | undefined;
11
- workspaceList?: WorkspaceListState | undefined;
12
- viewPresetsList?: import("../viewPresetsList/types").ViewPresetListState | undefined;
13
- viewPresets?: import("../viewPresets/types").ViewPresetState | undefined;
14
- syncronizationGroupStore?: import("dist/libs/store/src/store/generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
15
- ui?: import("dist/libs/store/src/store/ui/types").UIStoreType | undefined;
16
- webmap?: import("dist/libs/store/src/store/mapStore/types").WebMapState | undefined;
17
- services?: import("dist/libs/store/src/store/mapStore/types").ServiceState | undefined;
18
- layers?: import("dist/libs/store/src/store/mapStore/types").LayerState | undefined;
19
- layerSelect?: import("dist/libs/store/src/store/layerSelect/types").LayerSelectStoreType | undefined;
20
- }) => WorkspaceListFilter[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState) => WorkspaceListFilter[], {
9
+ export declare const getWorkspaceListFilters: ((state: AppStore) => WorkspaceListFilter[]) & import("reselect").OutputSelectorFields<(args_0: WorkspaceListState) => WorkspaceListFilter[], {
21
10
  clearCache: () => void;
22
11
  }> & {
23
12
  clearCache: () => void;
@@ -3,7 +3,7 @@ import { WorkspacePresetListItem, WorkspacePresetAction, PresetScope, WorkspaceP
3
3
  export declare enum WorkspaceListErrorType {
4
4
  GENERIC = "GENERIC"
5
5
  }
6
- export declare type WorkspaceListError = {
6
+ export type WorkspaceListError = {
7
7
  type: WorkspaceListErrorType;
8
8
  message: string;
9
9
  } | undefined;
@@ -14,12 +14,12 @@ export interface WorkspaceListFilter {
14
14
  isSelected?: boolean;
15
15
  isDisabled?: boolean;
16
16
  }
17
- export declare type FetchWorkspaceParams = {
17
+ export type FetchWorkspaceParams = {
18
18
  scope?: string;
19
19
  search?: string;
20
20
  };
21
- export declare type WorkspaceListEntityState = EntityState<WorkspacePresetListItem>;
22
- export declare type WorkspacePresetFormValues = {
21
+ export type WorkspaceListEntityState = EntityState<WorkspacePresetListItem>;
22
+ export type WorkspacePresetFormValues = {
23
23
  title?: string;
24
24
  abstract?: string;
25
25
  scope?: PresetScope;
@@ -40,7 +40,7 @@ export interface WorkspaceListState extends WorkspaceListEntityState {
40
40
  searchQuery?: string;
41
41
  workspaceListFilters?: WorkspaceListFilter[];
42
42
  }
43
- export declare type FetchWorkspaceList = FetchWorkspaceParams;
43
+ export type FetchWorkspaceList = FetchWorkspaceParams;
44
44
  export interface FetchedWorkspaceList {
45
45
  workspaceList: WorkspacePresetListItem[];
46
46
  }
@@ -57,7 +57,7 @@ export interface ToggleSelectFilterChip {
57
57
  export interface SearchWorkspaceFilter {
58
58
  searchQuery: string;
59
59
  }
60
- export declare type OpenWorkspaceActionDialogPayload = WorkspaceActionDialogType;
60
+ export type OpenWorkspaceActionDialogPayload = WorkspaceActionDialogType;
61
61
  export interface SubmitFormWorkspaceActionDialogPayload {
62
62
  presetAction: WorkspacePresetAction;
63
63
  presetId: string;
@@ -5,7 +5,7 @@ import { ViewPreset } from '../store/viewPresets/types';
5
5
  import { FetchViewPresetsListParams } from '../store/viewPresetsList/types';
6
6
  export declare const API_NAME = "workspacepresets";
7
7
  export declare const getIdFromUrl: (url: string) => string;
8
- export declare type PresetsApi = {
8
+ export type PresetsApi = {
9
9
  getWorkspacePresets: (params?: FetchWorkspaceParams) => Promise<{
10
10
  data: WorkspacePresetListItem[];
11
11
  }>;
@@ -1,8 +1,8 @@
1
- declare type WorkspaceRoutes = {
1
+ type WorkspaceRoutes = {
2
2
  root: string;
3
3
  workspace: string;
4
4
  workspaceDetail: string;
5
5
  };
6
6
  export declare const routes: WorkspaceRoutes;
7
- export declare const getWorkspaceRouteUrl: (workspaceId?: string | undefined) => string;
7
+ export declare const getWorkspaceRouteUrl: (workspaceId?: string) => string;
8
8
  export {};
File without changes