@evergis/react 3.1.7 → 3.1.8

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.
Files changed (80) hide show
  1. package/README.md +2 -0
  2. package/dist/components/Layer/Layer.d.ts +1 -1
  3. package/dist/components/Layer/RasterLayer.d.ts +1 -1
  4. package/dist/components/Layer/VectorLayer.d.ts +1 -1
  5. package/dist/components/Layer/types.d.ts +1 -1
  6. package/dist/components/Map/Map.d.ts +1 -1
  7. package/dist/components/Map/styled.d.ts +1 -1
  8. package/dist/components/Map/types.d.ts +1 -1
  9. package/dist/components/index.d.ts +0 -1
  10. package/dist/contexts/MapContext/MapContext.d.ts +1 -1
  11. package/dist/contexts/MapContext/MapProvider.d.ts +1 -1
  12. package/dist/contexts/MapContext/types.d.ts +1 -1
  13. package/dist/contexts/ServerNotificationsContext/ServerNotificationsContext.d.ts +1 -1
  14. package/dist/contexts/ServerNotificationsContext/ServerNotificationsProvider.d.ts +1 -1
  15. package/dist/contexts/ServerNotificationsContext/types.d.ts +1 -1
  16. package/dist/index.js +71 -7353
  17. package/dist/index.js.map +1 -1
  18. package/dist/react.esm.js +41 -7322
  19. package/dist/react.esm.js.map +1 -1
  20. package/dist/types/attribute.d.ts +1 -1
  21. package/package.json +24 -23
  22. package/dist/assets/index-CTzhzVha.css +0 -90
  23. package/dist/assets/react.esm-CTzhzVha.css +0 -90
  24. package/dist/components/ErrorBoundary/index.d.ts +0 -12
  25. package/dist/components/ErrorBoundary/types.d.ts +0 -7
  26. package/dist/dist/react.esm.d.ts +0 -99
  27. package/dist/src/components/ErrorBoundary/index.d.ts +0 -12
  28. package/dist/src/components/ErrorBoundary/types.d.ts +0 -7
  29. package/dist/src/components/Layer/Layer.d.ts +0 -3
  30. package/dist/src/components/Layer/RasterLayer.d.ts +0 -3
  31. package/dist/src/components/Layer/VectorLayer.d.ts +0 -3
  32. package/dist/src/components/Layer/constants.d.ts +0 -5
  33. package/dist/src/components/Layer/index.d.ts +0 -3
  34. package/dist/src/components/Layer/types.d.ts +0 -12
  35. package/dist/src/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +0 -3
  36. package/dist/src/components/Map/Map.d.ts +0 -3
  37. package/dist/src/components/Map/index.d.ts +0 -2
  38. package/dist/src/components/Map/styled.d.ts +0 -4
  39. package/dist/src/components/Map/types.d.ts +0 -8
  40. package/dist/src/components/index.d.ts +0 -3
  41. package/dist/src/contexts/MapContext/MapContext.d.ts +0 -2
  42. package/dist/src/contexts/MapContext/MapProvider.d.ts +0 -3
  43. package/dist/src/contexts/MapContext/index.d.ts +0 -3
  44. package/dist/src/contexts/MapContext/types.d.ts +0 -31
  45. package/dist/src/contexts/ServerNotificationsContext/ServerNotificationsContext.d.ts +0 -2
  46. package/dist/src/contexts/ServerNotificationsContext/ServerNotificationsProvider.d.ts +0 -3
  47. package/dist/src/contexts/ServerNotificationsContext/hooks/useServerNotifications.d.ts +0 -2
  48. package/dist/src/contexts/ServerNotificationsContext/index.d.ts +0 -3
  49. package/dist/src/contexts/ServerNotificationsContext/types.d.ts +0 -12
  50. package/dist/src/contexts/index.d.ts +0 -2
  51. package/dist/src/core/classification/findAttributeInExpression.d.ts +0 -2
  52. package/dist/src/core/classification/getActualExtrusionHeight.d.ts +0 -2
  53. package/dist/src/core/classification/index.d.ts +0 -3
  54. package/dist/src/core/classification/parseClientStyle.d.ts +0 -2
  55. package/dist/src/core/feature/convertSpToTurfFeature.d.ts +0 -3
  56. package/dist/src/core/feature/index.d.ts +0 -1
  57. package/dist/src/core/index.d.ts +0 -2
  58. package/dist/src/hooks/index.d.ts +0 -5
  59. package/dist/src/hooks/map/index.d.ts +0 -5
  60. package/dist/src/hooks/map/useMapContext.d.ts +0 -1
  61. package/dist/src/hooks/map/useMapDraw/customModes.d.ts +0 -7
  62. package/dist/src/hooks/map/useMapDraw/customStyles.d.ts +0 -58
  63. package/dist/src/hooks/map/useMapDraw/index.d.ts +0 -1
  64. package/dist/src/hooks/map/useRedrawLayer.d.ts +0 -1
  65. package/dist/src/hooks/map/useZoomToFeatures.d.ts +0 -2
  66. package/dist/src/hooks/map/useZoomToPoint.d.ts +0 -1
  67. package/dist/src/hooks/serverNotifications/index.d.ts +0 -1
  68. package/dist/src/hooks/serverNotifications/useServerNotificationsContext.d.ts +0 -1
  69. package/dist/src/hooks/useDebouncedCallback.d.ts +0 -1
  70. package/dist/src/hooks/useToggle.d.ts +0 -1
  71. package/dist/src/hooks/useWindowResize.d.ts +0 -1
  72. package/dist/src/index.d.ts +0 -6
  73. package/dist/src/types/attribute.d.ts +0 -20
  74. package/dist/src/types/index.d.ts +0 -2
  75. package/dist/src/types/styling.d.ts +0 -15
  76. package/dist/src/utils/date.d.ts +0 -16
  77. package/dist/src/utils/debounce.d.ts +0 -1
  78. package/dist/src/utils/index.d.ts +0 -4
  79. package/dist/src/utils/isNumeric.d.ts +0 -1
  80. package/dist/src/utils/isObject.d.ts +0 -1
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
1
  # @evergis/react
2
2
 
3
3
  В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`, но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
4
+
5
+ ***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей от `@evergis/uilib-gl`, а также системы поддержки мультиязычности `Evergis Online`!
@@ -1,3 +1,3 @@
1
- import { FC } from '../../../node_modules/@types/react';
1
+ import { FC } from 'react';
2
2
  import { LayerProps } from './types';
3
3
  export declare const Layer: FC<LayerProps>;
@@ -1,3 +1,3 @@
1
- import { FC } from '../../../node_modules/@types/react';
1
+ import { FC } from 'react';
2
2
  import { LayerProps } from './types';
3
3
  export declare const RasterLayer: FC<Omit<LayerProps, "layerType" | "onMount" | "getLayerTempStyle">>;
@@ -1,3 +1,3 @@
1
- import { FC } from '../../../node_modules/@types/react';
1
+ import { FC } from 'react';
2
2
  import { LayerProps } from './types';
3
3
  export declare const VectorLayer: FC<Omit<LayerProps, "layerType" | "onMount">>;
@@ -1,4 +1,4 @@
1
- import { EffectCallback } from '../../../node_modules/@types/react';
1
+ import { EffectCallback } from 'react';
2
2
  import { FeatureLayerServiceInfoDc, QueryLayerServiceInfoDc } from '@evergis/api';
3
3
  import { ClientStyle, ClientStyleItem } from '../../types';
4
4
  export interface LayerProps {
@@ -1,3 +1,3 @@
1
- import { FC } from '../../../node_modules/@types/react';
1
+ import { FC } from 'react';
2
2
  import { MapProps } from './types';
3
3
  export declare const Map: FC<MapProps>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from '../../../node_modules/@types/react';
1
+ import { CSSProperties } from 'react';
2
2
  export declare const MapWrapper: import('styled-components').StyledComponent<"div", any, {
3
3
  $zIndex?: CSSProperties["zIndex"];
4
4
  }, never>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from '../../../node_modules/@types/react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  import { MapProps as MapGLProps } from 'react-map-gl/mapbox';
3
3
  export interface MapProps extends MapGLProps {
4
4
  zIndex?: CSSProperties["zIndex"];
@@ -1,3 +1,2 @@
1
- export * from './ErrorBoundary';
2
1
  export * from './Layer';
3
2
  export * from './Map';
@@ -1,2 +1,2 @@
1
1
  import { MapContextProps } from './types';
2
- export declare const MapContext: import('../../../node_modules/@types/react').Context<MapContextProps>;
2
+ export declare const MapContext: import('react').Context<MapContextProps>;
@@ -1,3 +1,3 @@
1
- import { FC } from '../../../node_modules/@types/react';
1
+ import { FC } from 'react';
2
2
  import { MapProviderProps } from './types';
3
3
  export declare const MapProvider: FC<MapProviderProps>;
@@ -1,4 +1,4 @@
1
- import { Dispatch, MutableRefObject, PropsWithChildren, SetStateAction } from '../../../node_modules/@types/react';
1
+ import { Dispatch, MutableRefObject, PropsWithChildren, SetStateAction } from 'react';
2
2
  import { Map as MapboxGLMap } from 'mapbox-gl';
3
3
  import { default as MapboxDraw } from '@mapbox/mapbox-gl-draw';
4
4
  export declare enum BaseMapTheme {
@@ -1,2 +1,2 @@
1
1
  import { ServerNotificationsContextProps } from './types';
2
- export declare const ServerNotificationsContext: import('../../../node_modules/@types/react').Context<ServerNotificationsContextProps>;
2
+ export declare const ServerNotificationsContext: import('react').Context<ServerNotificationsContextProps>;
@@ -1,3 +1,3 @@
1
- import { FC } from '../../../node_modules/@types/react';
1
+ import { FC } from 'react';
2
2
  import { ServerNotificationsProviderProps } from './types';
3
3
  export declare const ServerNotificationsProvider: FC<ServerNotificationsProviderProps>;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from '../../../node_modules/@types/react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { HubConnection } from '@microsoft/signalr';
3
3
  export interface ServerNotificationsContextProps {
4
4
  connection?: HubConnection | null;