@opengeoweb/workspace 6.0.1 → 6.0.2

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,7 +3,7 @@ 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';
6
+ import React__default, { useContext, useRef, useCallback, useDebugValue, createContext, memo, useEffect, forwardRef } from 'react';
7
7
  import { ThemeWrapper, lightTheme, Menu, SplitVertical, SplitHorizontal, Expand, UnExpand, Close, Delete, Preset, PresetWorkspace, PresetTiles, Clear, Search, WebAssetOff } from '@opengeoweb/theme';
8
8
  import { unstable_batchedUpdates } from 'react-dom';
9
9
  import { SnackbarWrapperConnect } from '@opengeoweb/core';
@@ -24613,40 +24613,39 @@ const setBatch = newBatch => batch = newBatch; // Supply a getter just to skip d
24613
24613
 
24614
24614
  const getBatch = () => batch;
24615
24615
 
24616
- const ContextKey = Symbol.for(`react-redux-context-${version}`);
24617
- const gT = globalThis;
24616
+ const ContextKey = Symbol.for(`react-redux-context`);
24617
+ const gT = typeof globalThis !== "undefined" ? globalThis :
24618
+ /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
24619
+ {};
24618
24620
 
24619
24621
  function getContext() {
24620
- let realContext = gT[ContextKey];
24622
+ var _gT$ContextKey;
24623
+
24624
+ if (!React.createContext) return {};
24625
+ const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
24626
+ let realContext = contextMap.get(React.createContext);
24621
24627
 
24622
24628
  if (!realContext) {
24623
- realContext = createContext(null);
24629
+ realContext = React.createContext(null);
24624
24630
 
24625
24631
  if (process.env.NODE_ENV !== 'production') {
24626
24632
  realContext.displayName = 'ReactRedux';
24627
24633
  }
24628
24634
 
24629
- gT[ContextKey] = realContext;
24635
+ contextMap.set(React.createContext, realContext);
24630
24636
  }
24631
24637
 
24632
24638
  return realContext;
24633
24639
  }
24634
24640
 
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
+ const ReactReduxContext = /*#__PURE__*/getContext();
24641
24642
 
24642
- }));
24643
-
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.
24643
+ /**
24644
+ * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
24645
+ * hook that you should usually not need to call directly.
24646
+ *
24647
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
24648
+ * @returns {Function} A `useReduxContext` hook bound to the specified context.
24650
24649
  */
24651
24650
  function createReduxContextHook(context = ReactReduxContext) {
24652
24651
  return function useReduxContext() {
@@ -24659,21 +24658,21 @@ function createReduxContextHook(context = ReactReduxContext) {
24659
24658
  return contextValue;
24660
24659
  };
24661
24660
  }
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
- * }
24661
+ /**
24662
+ * A hook to access the value of the `ReactReduxContext`. This is a low-level
24663
+ * hook that you should usually not need to call directly.
24664
+ *
24665
+ * @returns {any} the value of the `ReactReduxContext`
24666
+ *
24667
+ * @example
24668
+ *
24669
+ * import React from 'react'
24670
+ * import { useReduxContext } from 'react-redux'
24671
+ *
24672
+ * export const CounterComponent = () => {
24673
+ * const { store } = useReduxContext()
24674
+ * return <div>{store.getState()}</div>
24675
+ * }
24677
24676
  */
24678
24677
 
24679
24678
  const useReduxContext = /*#__PURE__*/createReduxContextHook();
@@ -24688,11 +24687,11 @@ const initializeUseSelector = fn => {
24688
24687
  };
24689
24688
 
24690
24689
  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.
24690
+ /**
24691
+ * Hook factory, which creates a `useSelector` hook bound to a given context.
24692
+ *
24693
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
24694
+ * @returns {Function} A `useSelector` hook bound to the specified context.
24696
24695
  */
24697
24696
 
24698
24697
 
@@ -24769,28 +24768,28 @@ function createSelectorHook(context = ReactReduxContext) {
24769
24768
  return selectedState;
24770
24769
  };
24771
24770
  }
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
- * }
24771
+ /**
24772
+ * A hook to access the redux store's state. This hook takes a selector function
24773
+ * as an argument. The selector is called with the store state.
24774
+ *
24775
+ * This hook takes an optional equality comparison function as the second parameter
24776
+ * that allows you to customize the way the selected state is compared to determine
24777
+ * whether the component needs to be re-rendered.
24778
+ *
24779
+ * @param {Function} selector the selector function
24780
+ * @param {Function=} equalityFn the function that will be used to determine equality
24781
+ *
24782
+ * @returns {any} the selected state
24783
+ *
24784
+ * @example
24785
+ *
24786
+ * import React from 'react'
24787
+ * import { useSelector } from 'react-redux'
24788
+ *
24789
+ * export const CounterComponent = () => {
24790
+ * const counter = useSelector(state => state.counter)
24791
+ * return <div>{counter}</div>
24792
+ * }
24794
24793
  */
24795
24794
 
24796
24795
  const useSelector = /*#__PURE__*/createSelectorHook();
@@ -25411,7 +25410,7 @@ function createSubscription(store, parentSub) {
25411
25410
  // Matches logic in React's `shared/ExecutionEnvironment` file
25412
25411
 
25413
25412
  const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
25414
- const useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;
25413
+ const useIsomorphicLayoutEffect = canUseDOM ? React.useLayoutEffect : React.useEffect;
25415
25414
 
25416
25415
  function Provider({
25417
25416
  store,
@@ -25421,7 +25420,7 @@ function Provider({
25421
25420
  stabilityCheck = 'once',
25422
25421
  noopCheck = 'once'
25423
25422
  }) {
25424
- const contextValue = useMemo(() => {
25423
+ const contextValue = React.useMemo(() => {
25425
25424
  const subscription = createSubscription(store);
25426
25425
  return {
25427
25426
  store,
@@ -25431,7 +25430,7 @@ function Provider({
25431
25430
  noopCheck
25432
25431
  };
25433
25432
  }, [store, serverState, stabilityCheck, noopCheck]);
25434
- const previousState = useMemo(() => store.getState(), [store]);
25433
+ const previousState = React.useMemo(() => store.getState(), [store]);
25435
25434
  useIsomorphicLayoutEffect(() => {
25436
25435
  const {
25437
25436
  subscription
@@ -25450,16 +25449,16 @@ function Provider({
25450
25449
  }, [contextValue, previousState]);
25451
25450
  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
25451
 
25453
- return /*#__PURE__*/React__default.createElement(Context.Provider, {
25452
+ return /*#__PURE__*/React.createElement(Context.Provider, {
25454
25453
  value: contextValue
25455
25454
  }, children);
25456
25455
  }
25457
25456
 
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.
25457
+ /**
25458
+ * Hook factory, which creates a `useStore` hook bound to a given context.
25459
+ *
25460
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
25461
+ * @returns {Function} A `useStore` hook bound to the specified context.
25463
25462
  */
25464
25463
 
25465
25464
  function createStoreHook(context = ReactReduxContext) {
@@ -25474,29 +25473,29 @@ function createStoreHook(context = ReactReduxContext) {
25474
25473
  return store;
25475
25474
  };
25476
25475
  }
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
- * }
25476
+ /**
25477
+ * A hook to access the redux store.
25478
+ *
25479
+ * @returns {any} the redux store
25480
+ *
25481
+ * @example
25482
+ *
25483
+ * import React from 'react'
25484
+ * import { useStore } from 'react-redux'
25485
+ *
25486
+ * export const ExampleComponent = () => {
25487
+ * const store = useStore()
25488
+ * return <div>{store.getState()}</div>
25489
+ * }
25491
25490
  */
25492
25491
 
25493
25492
  const useStore = /*#__PURE__*/createStoreHook();
25494
25493
 
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.
25494
+ /**
25495
+ * Hook factory, which creates a `useDispatch` hook bound to a given context.
25496
+ *
25497
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
25498
+ * @returns {Function} A `useDispatch` hook bound to the specified context.
25500
25499
  */
25501
25500
 
25502
25501
  function createDispatchHook(context = ReactReduxContext) {
@@ -25508,26 +25507,26 @@ function createDispatchHook(context = ReactReduxContext) {
25508
25507
  return store.dispatch;
25509
25508
  };
25510
25509
  }
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
- * }
25510
+ /**
25511
+ * A hook to access the redux `dispatch` function.
25512
+ *
25513
+ * @returns {any|function} redux store's `dispatch` function
25514
+ *
25515
+ * @example
25516
+ *
25517
+ * import React, { useCallback } from 'react'
25518
+ * import { useDispatch } from 'react-redux'
25519
+ *
25520
+ * export const CounterComponent = ({ value }) => {
25521
+ * const dispatch = useDispatch()
25522
+ * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
25523
+ * return (
25524
+ * <div>
25525
+ * <span>{value}</span>
25526
+ * <button onClick={increaseCounter}>Increase counter</button>
25527
+ * </div>
25528
+ * )
25529
+ * }
25531
25530
  */
25532
25531
 
25533
25532
  const useDispatch = /*#__PURE__*/createDispatchHook();
@@ -31379,7 +31378,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
31379
31378
  function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31380
31379
  step((generator = generator.apply(thisArg, _arguments || [])).next());
31381
31380
  });
31382
- }
31381
+ }
31382
+
31383
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
31384
+ var e = new Error(message);
31385
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
31386
+ };
31383
31387
 
31384
31388
  // takes a component and connects module methods with workspace store
31385
31389
  var ComponentsLookUpWrapper = function ComponentsLookUpWrapper(_a) {
@@ -33167,6 +33171,7 @@ var RULESET = 'rule';
33167
33171
  var DECLARATION = 'decl';
33168
33172
  var IMPORT = '@import';
33169
33173
  var KEYFRAMES = '@keyframes';
33174
+ var LAYER = '@layer';
33170
33175
 
33171
33176
  /**
33172
33177
  * @param {number}
@@ -33581,7 +33586,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
33581
33586
  // \0 }
33582
33587
  case 0: case 125: scanning = 0;
33583
33588
  // ;
33584
- case 59 + offset:
33589
+ case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
33585
33590
  if (property > 0 && (strlen(characters) - length))
33586
33591
  append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
33587
33592
  break
@@ -33596,8 +33601,8 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
33596
33601
  parse(characters, root, reference, reference, props, rulesets, length, points, children);
33597
33602
  else
33598
33603
  switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
33599
- // d m s
33600
- case 100: case 109: case 115:
33604
+ // d l m s
33605
+ case 100: case 108: case 109: case 115:
33601
33606
  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
33607
  break
33603
33608
  default:
@@ -33716,6 +33721,7 @@ function serialize (children, callback) {
33716
33721
  */
33717
33722
  function stringify (element, index, children, callback) {
33718
33723
  switch (element.type) {
33724
+ case LAYER: if (element.children.length) break
33719
33725
  case IMPORT: case DECLARATION: return element.return = element.return || element.value
33720
33726
  case COMMENT: return ''
33721
33727
  case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
@@ -34519,6 +34525,7 @@ function murmur2(str) {
34519
34525
 
34520
34526
  var unitlessKeys = {
34521
34527
  animationIterationCount: 1,
34528
+ aspectRatio: 1,
34522
34529
  borderImageOutset: 1,
34523
34530
  borderImageSlice: 1,
34524
34531
  borderImageWidth: 1,
@@ -34889,7 +34896,7 @@ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : use
34889
34896
  var isBrowser$1 = typeof document !== 'undefined';
34890
34897
  var hasOwnProperty = {}.hasOwnProperty;
34891
34898
 
34892
- var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
34899
+ var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
34893
34900
  // because this module is primarily intended for the browser and node
34894
34901
  // but it's also required in react native and similar environments sometimes
34895
34902
  // and we could have a special build just for that
@@ -34928,7 +34935,7 @@ if (!isBrowser$1) {
34928
34935
  cache = createCache({
34929
34936
  key: 'css'
34930
34937
  });
34931
- return /*#__PURE__*/createElement(EmotionCacheContext.Provider, {
34938
+ return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
34932
34939
  value: cache
34933
34940
  }, func(props, cache));
34934
34941
  } else {
@@ -34938,7 +34945,7 @@ if (!isBrowser$1) {
34938
34945
  };
34939
34946
  }
34940
34947
 
34941
- var ThemeContext = /* #__PURE__ */createContext({});
34948
+ var ThemeContext = /* #__PURE__ */React.createContext({});
34942
34949
 
34943
34950
  if (process.env.NODE_ENV !== 'production') {
34944
34951
  ThemeContext.displayName = 'EmotionThemeContext';
@@ -34967,7 +34974,7 @@ var Insertion$1 = function Insertion(_ref) {
34967
34974
  next = next.next;
34968
34975
  }
34969
34976
 
34970
- return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
34977
+ return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
34971
34978
  __html: rules
34972
34979
  }, _ref2.nonce = cache.sheet.nonce, _ref2));
34973
34980
  }
@@ -34994,7 +35001,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
34994
35001
  className = props.className + " ";
34995
35002
  }
34996
35003
 
34997
- var serialized = serializeStyles(registeredStyles, undefined, useContext(ThemeContext));
35004
+ var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
34998
35005
 
34999
35006
  if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
35000
35007
  var labelFromStack = props[labelPropName];
@@ -35015,11 +35022,11 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
35015
35022
 
35016
35023
  newProps.ref = ref;
35017
35024
  newProps.className = className;
35018
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion$1, {
35025
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion$1, {
35019
35026
  cache: cache,
35020
35027
  serialized: serialized,
35021
35028
  isStringTag: typeof WrappedComponent === 'string'
35022
- }), /*#__PURE__*/createElement(WrappedComponent, newProps));
35029
+ }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));
35023
35030
  });
35024
35031
 
35025
35032
  if (process.env.NODE_ENV !== 'production') {
@@ -35078,7 +35085,7 @@ var Insertion = function Insertion(_ref) {
35078
35085
  next = next.next;
35079
35086
  }
35080
35087
 
35081
- return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
35088
+ return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
35082
35089
  __html: rules
35083
35090
  }, _ref2.nonce = cache.sheet.nonce, _ref2));
35084
35091
  }
@@ -35148,7 +35155,7 @@ var createStyled = function createStyled(tag, options) {
35148
35155
  mergedProps[key] = props[key];
35149
35156
  }
35150
35157
 
35151
- mergedProps.theme = useContext(ThemeContext);
35158
+ mergedProps.theme = React.useContext(ThemeContext);
35152
35159
  }
35153
35160
 
35154
35161
  if (typeof props.className === 'string') {
@@ -35178,11 +35185,11 @@ var createStyled = function createStyled(tag, options) {
35178
35185
 
35179
35186
  newProps.className = className;
35180
35187
  newProps.ref = ref;
35181
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion, {
35188
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
35182
35189
  cache: cache,
35183
35190
  serialized: serialized,
35184
35191
  isStringTag: typeof FinalTag === 'string'
35185
- }), /*#__PURE__*/createElement(FinalTag, newProps));
35192
+ }), /*#__PURE__*/React.createElement(FinalTag, newProps));
35186
35193
  });
35187
35194
  Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
35188
35195
  Styled.defaultProps = tag.defaultProps;
@@ -35220,17 +35227,15 @@ tags.forEach(function (tagName) {
35220
35227
  newStyled[tagName] = newStyled(tagName);
35221
35228
  });
35222
35229
 
35223
- var emStyled = newStyled;
35224
-
35225
35230
  /**
35226
- * @mui/styled-engine v5.12.0
35231
+ * @mui/styled-engine v5.13.2
35227
35232
  *
35228
35233
  * @license MIT
35229
35234
  * This source code is licensed under the MIT license found in the
35230
35235
  * LICENSE file in the root directory of this source tree.
35231
35236
  */
35232
35237
  function styled(tag, options) {
35233
- const stylesFactory = emStyled(tag, options);
35238
+ const stylesFactory = newStyled(tag, options);
35234
35239
  if (process.env.NODE_ENV !== 'production') {
35235
35240
  return (...styles) => {
35236
35241
  const component = typeof tag === 'string' ? `"${tag}"` : 'component';
@@ -35626,6 +35631,9 @@ process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {
35626
35631
  return obj;
35627
35632
  }, {}) : {};
35628
35633
 
35634
+ // The different signatures imply different meaning for their arguments that can't be expressed structurally.
35635
+ // We express the difference with variable names.
35636
+ /* tslint:disable:unified-signatures */
35629
35637
  /* tslint:enable:unified-signatures */
35630
35638
 
35631
35639
  function createSpacing(spacingInput = 8) {
@@ -35862,8 +35870,8 @@ const width = style$1({
35862
35870
  const maxWidth = props => {
35863
35871
  if (props.maxWidth !== undefined && props.maxWidth !== null) {
35864
35872
  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];
35873
+ var _props$theme;
35874
+ 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
35875
  return {
35868
35876
  maxWidth: breakpoint || sizingTransform(propValue)
35869
35877
  };
@@ -36215,6 +36223,8 @@ function unstable_createStyleFunctionSx() {
36215
36223
  if (val == null) {
36216
36224
  return null;
36217
36225
  }
36226
+
36227
+ // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123
36218
36228
  if (themeKey === 'typography' && val === 'inherit') {
36219
36229
  return {
36220
36230
  [prop]: val
@@ -36359,7 +36369,7 @@ const splitProps = props => {
36359
36369
  systemProps: {},
36360
36370
  otherProps: {}
36361
36371
  };
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;
36372
+ 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
36373
  Object.keys(props).forEach(prop => {
36364
36374
  if (config[prop]) {
36365
36375
  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.2",
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.2",
19
+ "@opengeoweb/authentication": "6.0.2",
20
+ "@opengeoweb/core": "6.0.2",
21
+ "@opengeoweb/form-fields": "6.0.2",
22
+ "@opengeoweb/shared": "6.0.2",
23
+ "@opengeoweb/sigmet-airmet": "6.0.2",
24
+ "@opengeoweb/store": "6.0.2",
25
+ "@opengeoweb/taf": "6.0.2",
26
+ "@opengeoweb/theme": "6.0.2",
27
+ "@opengeoweb/timeseries": "6.0.2",
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<{
@@ -11,35 +11,13 @@ export declare const getViewPresetHasChanges: (store: AppStore, panelId: string)
11
11
  export declare const getViewPresetActiveId: (store: AppStore, panelId: string) => string | undefined;
12
12
  export declare const getDialogOptions: (store: AppStore) => ViewPresetDialog | undefined;
13
13
  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[], {
14
+ export declare const getViewPresetListFiltersForView: ((state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetsListFilter[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetsListFilter[], {
26
15
  clearCache: () => void;
27
16
  }> & {
28
17
  clearCache: () => void;
29
18
  };
30
19
  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[], {
20
+ export declare const getViewPresetListFilterResultsForView: ((state: AppStore, id: import("@reduxjs/toolkit").EntityId) => ViewPresetListItem[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").ViewPresetEntity | undefined) => ViewPresetListItem[], {
43
21
  clearCache: () => void;
44
22
  }> & {
45
23
  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;
@@ -58,18 +36,7 @@ export declare const getViewById: (store: AppStore, viewId: string) => Workspace
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) => 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;
@@ -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;
@@ -96,9 +96,9 @@ export interface WorkspaceComponentLookupPayload {
96
96
  title?: string;
97
97
  initialProps: unknown;
98
98
  }
99
- export declare type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
100
- export declare type PresetScope = 'user' | 'system';
101
- export declare type ViewPresetListItem = {
99
+ export type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
100
+ export type PresetScope = 'user' | 'system';
101
+ export type ViewPresetListItem = {
102
102
  id: string;
103
103
  title: string;
104
104
  date: string;
@@ -123,7 +123,7 @@ export declare enum WorkspaceErrorType {
123
123
  GENERIC = "GENERIC",
124
124
  SAVE = "SAVE"
125
125
  }
126
- export declare type WorkspaceError = {
126
+ export type WorkspaceError = {
127
127
  type: WorkspaceErrorType;
128
128
  message: string;
129
129
  } | 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