@evergis/react 3.1.129-alpha.2 → 3.1.129

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 (38) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +7 -7
  3. package/dist/components/Dashboard/components/AddFeatureButton/index.d.ts +2 -2
  4. package/dist/components/Dashboard/containers/ChartContainer/types.d.ts +2 -2
  5. package/dist/components/Dashboard/hooks/useDataSources.d.ts +2 -2
  6. package/dist/components/Dashboard/hooks/useRelatedDataSourceAttributes.d.ts +3 -2
  7. package/dist/components/Dashboard/hooks/useWidgetContext.d.ts +2 -2
  8. package/dist/components/Dashboard/types.d.ts +4 -4
  9. package/dist/components/Dashboard/utils/formatChartRelatedValue.d.ts +2 -2
  10. package/dist/components/Dashboard/utils/getDataFromRelatedFeatures.d.ts +2 -2
  11. package/dist/components/Dashboard/utils/getElementValue.d.ts +2 -2
  12. package/dist/components/Dashboard/utils/getFeatureAttributes.d.ts +3 -2
  13. package/dist/components/Dashboard/utils/getLayerDefinition.d.ts +3 -2
  14. package/dist/components/Dashboard/utils/getLayerInfo.d.ts +3 -3
  15. package/dist/components/Dashboard/utils/getLayerInfoFromDataSources.d.ts +2 -2
  16. package/dist/components/Dashboard/utils/getRelatedAttribute.d.ts +2 -2
  17. package/dist/components/Dashboard/utils/getSvgUrl.d.ts +2 -3
  18. package/dist/components/Dashboard/utils/pieChartTooltipFromRelatedFeatures.d.ts +2 -2
  19. package/dist/components/Dashboard/utils/tooltipValueFromRelatedFeatures.d.ts +2 -2
  20. package/dist/components/Layer/types.d.ts +2 -2
  21. package/dist/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +2 -2
  22. package/dist/components/LayerIcon/index.d.ts +2 -2
  23. package/dist/contexts/DashboardContext/types.d.ts +3 -2
  24. package/dist/contexts/FeatureCardContext/types.d.ts +3 -3
  25. package/dist/core/feature/convertSpToTurfFeature.d.ts +3 -0
  26. package/dist/core/feature/index.d.ts +1 -0
  27. package/dist/core/index.d.ts +1 -0
  28. package/dist/hooks/map/useLayerParams.d.ts +3 -2
  29. package/dist/index.js +2474 -2461
  30. package/dist/index.js.map +1 -1
  31. package/dist/react.esm.js +2476 -2463
  32. package/dist/react.esm.js.map +1 -1
  33. package/dist/types/attribute.d.ts +10 -0
  34. package/dist/types/layer.d.ts +30 -1
  35. package/dist/utils/date.d.ts +1 -1
  36. package/dist/utils/index.d.ts +0 -1
  37. package/package.json +5 -5
  38. package/dist/utils/metersPerPixel.d.ts +0 -1
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Everpoint
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Everpoint
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # @evergis/react
2
-
3
- В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`,
4
- но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
5
-
6
- ***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей
7
- от системы поддержки мультиязычности `Evergis Online`!
1
+ # @evergis/react
2
+
3
+ В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`,
4
+ но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
5
+
6
+ ***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей
7
+ от системы поддержки мультиязычности `Evergis Online`!
@@ -1,10 +1,10 @@
1
1
  import { FC } from 'react';
2
2
  import { IconTypesKeys } from '@evergis/uilib-gl';
3
- import { OgcGeometryType } from '@evergis/api';
3
+ import { GeometryType } from '@evergis/api';
4
4
  import { EditGeometryType } from '../../../../types';
5
5
  export declare const AddFeatureButton: FC<{
6
6
  title?: string;
7
7
  icon?: IconTypesKeys;
8
8
  layerName?: string;
9
- geometryType?: OgcGeometryType | EditGeometryType;
9
+ geometryType?: GeometryType | EditGeometryType;
10
10
  }>;
@@ -1,12 +1,12 @@
1
1
  import { BarChartData, PieChartData } from '@evergis/charts';
2
- import { QueryLayerServiceInfoDc } from '@evergis/api';
3
2
  import { ConfigContainerChild, ContainerProps, FilterItem } from '../../types';
3
+ import { LayerInfo } from '../../../../types';
4
4
  export type ChartProps = Pick<ContainerProps, "config" | "elementConfig" | "type" | "renderElement"> & {
5
5
  element: ConfigContainerChild;
6
6
  };
7
7
  export type ChartDataProps = {
8
8
  items: FilterItem[] | PieChartData[] | BarChartData[];
9
- layerInfo: QueryLayerServiceInfoDc | null;
9
+ layerInfo: LayerInfo | null;
10
10
  attributeName: string | null;
11
11
  attributeUnits: string | null;
12
12
  dataSourceName: string | null;
@@ -1,4 +1,4 @@
1
- import { PagedFeaturesListDc, QueryLayerServiceConfigurationDc } from '@evergis/api';
1
+ import { QueryLayerServiceConfigurationDc } from '@evergis/api';
2
2
  import { ClientFeatureAttribute, ConfigContainerChild, ConfigDataSource, DataSourcePromise, EqlDataSource, FetchedDataSource, SelectedFilters, WidgetType } from '../types';
3
3
  export declare const useDataSources: ({ type: widgetType, config, attributes, filters, layerParams, eqlParameters, }: {
4
4
  type?: WidgetType;
@@ -8,7 +8,7 @@ export declare const useDataSources: ({ type: widgetType, config, attributes, fi
8
8
  layerParams?: Record<string, string>;
9
9
  eqlParameters?: QueryLayerServiceConfigurationDc["eqlParameters"];
10
10
  }) => {
11
- getDataSourcePromises: ({ ds, query, parameters, layerName, limit, condition, url, resourceId }: ConfigDataSource, newFilters?: SelectedFilters, offset?: number) => Promise<EqlDataSource | PagedFeaturesListDc>;
11
+ getDataSourcePromises: ({ ds, query, parameters, layerName, limit, condition, url, resourceId }: ConfigDataSource, newFilters?: SelectedFilters, offset?: number) => Promise<EqlDataSource | import('@evergis/api').PagedFeaturesListDc>;
12
12
  getUpdatingDataSources: () => ConfigDataSource[];
13
13
  getUpdatedDataSources: (responses: DataSourcePromise[], currentDataSources: ConfigDataSource[], otherDataSources: FetchedDataSource[]) => any;
14
14
  zoomToLayersExtent: (layers: Array<{
@@ -1,12 +1,13 @@
1
- import { FeatureDc, QueryLayerServiceInfoDc } from '@evergis/api';
1
+ import { FeatureDc } from '@evergis/api';
2
2
  import { ConfigContainerChild, FetchedDataSource, WidgetType } from '../types';
3
+ import { LayerInfo } from '../../../types';
3
4
  export declare const useRelatedDataSourceAttributes: ({ type, elementConfig, dataSources, feature, }: {
4
5
  type: WidgetType;
5
6
  elementConfig: ConfigContainerChild;
6
7
  dataSources: FetchedDataSource[];
7
8
  feature?: FeatureDc;
8
9
  }) => {
9
- layerInfo: QueryLayerServiceInfoDc;
10
+ layerInfo: LayerInfo;
10
11
  attributes: import('../types').ClientFeatureAttribute[];
11
12
  dataSource: import('../types').WidgetDataSource;
12
13
  };
@@ -3,14 +3,14 @@ export declare const useWidgetContext: (type?: WidgetType) => {
3
3
  toggleLayersVisibility: VoidFunction;
4
4
  visibleLayers: boolean;
5
5
  projectInfo: import('@evergis/api').ExtendedProjectInfoDc;
6
- layerInfos: import('@evergis/api').QueryLayerServiceInfoDc[];
6
+ layerInfos: import('../../..').LayerInfo[];
7
7
  updateProject: (projectInfo: import('@evergis/api').ExtendedProjectInfoDc) => void;
8
8
  dashboardLayers: Record<string, {
9
9
  isVisible?: boolean;
10
10
  }>;
11
11
  setDashboardLayer: (props: import('../types').DashboardLayerPayload) => void;
12
12
  geometryFilter: boolean;
13
- layerInfo: import('@evergis/api').QueryLayerServiceInfoDc;
13
+ layerInfo: import('../../..').LayerInfo;
14
14
  attributes: import('../types').ClientFeatureAttribute[];
15
15
  feature: import('../../..').SelectedFeature;
16
16
  closeFeatureCard: VoidFunction;
@@ -1,9 +1,9 @@
1
1
  import { CSSProperties, FC, ReactNode } from 'react';
2
2
  import { i18n } from 'i18next';
3
+ import { AttributeDefinitionDc, AttributeFormatDefinitionDc, AttributeType, EqlRequestDc, FeatureDc, GeometryType, PagedFeaturesListDc, PositionDc, RemoteTaskStatus, StringSubType } from '@evergis/api';
3
4
  import { PieChartData, BarChartMarker } from '@evergis/charts';
4
5
  import { IconTypesKeys, IOption } from '@evergis/uilib-gl';
5
- import { AttributeDefinitionDc, AttributeFormatDefinitionDc, AttributeType, EqlRequestDc, FeatureDc, OgcGeometryType, PagedFeaturesListDc, PositionDc, QueryLayerServiceInfoDc, RemoteTaskStatus, StringSubType } from '@evergis/api';
6
- import { FeatureAttributeValue, EditGeometryType, ThemeName } from '../../types';
6
+ import { FeatureAttributeValue, EditGeometryType, LayerInfo, ThemeName } from '../../types';
7
7
  import { InnerContainerProps } from './containers/DataSourceInnerContainer/types';
8
8
  export interface DashboardsProps {
9
9
  zIndex?: CSSProperties["zIndex"];
@@ -56,7 +56,7 @@ export interface ConfigOptions {
56
56
  chartType?: "bar" | "line" | "pie" | "stack";
57
57
  layerNames?: string[];
58
58
  layerName?: string;
59
- geometryType?: OgcGeometryType | EditGeometryType;
59
+ geometryType?: GeometryType | EditGeometryType;
60
60
  fileExtensions?: string;
61
61
  parentResourceId?: string;
62
62
  srid?: string;
@@ -319,7 +319,7 @@ export interface GetRenderElementProps extends Omit<ContainerProps, "renderEleme
319
319
  expandedContainers?: Record<string, boolean>;
320
320
  pageIndex?: number;
321
321
  attributes?: ClientFeatureAttribute[];
322
- layerInfo?: QueryLayerServiceInfoDc;
322
+ layerInfo?: LayerInfo;
323
323
  selectedTabId?: string;
324
324
  setSelectedTabId?: (id: string) => void;
325
325
  t?: i18n["t"];
@@ -1,4 +1,4 @@
1
1
  import { i18n } from 'i18next';
2
- import { QueryLayerServiceInfoDc } from '@evergis/api';
3
2
  import { ConfigRelatedDataSource } from '../types';
4
- export declare const formatChartRelatedValue: (t: i18n["t"], value: string | number, layerInfo: QueryLayerServiceInfoDc, relatedAttributes: ConfigRelatedDataSource[]) => string | number;
3
+ import { LayerInfo } from '../../../types';
4
+ export declare const formatChartRelatedValue: (t: i18n["t"], value: string | number, layerInfo: LayerInfo, relatedAttributes: ConfigRelatedDataSource[]) => string | number;
@@ -1,5 +1,5 @@
1
1
  import { i18n } from 'i18next';
2
- import { QueryLayerServiceInfoDc } from '@evergis/api';
2
+ import { LayerInfo } from '../../../types';
3
3
  import { ConfigContainerChild, ConfigFilter, ConfigRelatedDataSource, FetchedDataSource, FilterItem } from '../types';
4
4
  export declare const getDataFromRelatedFeatures: ({ t, config, filters, relatedConfig, dataSource, layerInfo }: {
5
5
  t: i18n["t"];
@@ -7,5 +7,5 @@ export declare const getDataFromRelatedFeatures: ({ t, config, filters, relatedC
7
7
  filters: ConfigFilter[];
8
8
  relatedConfig: ConfigRelatedDataSource;
9
9
  dataSource: FetchedDataSource;
10
- layerInfo: QueryLayerServiceInfoDc;
10
+ layerInfo: LayerInfo;
11
11
  }) => FilterItem[] | null;
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- import { QueryLayerServiceInfoDc } from '@evergis/api';
3
2
  import { ClientFeatureAttribute, ConfigContainerChild, ContainerProps, RenderElementValue } from '../types';
3
+ import { LayerInfo } from '../../../types';
4
4
  export declare const getElementValue: ({ getDefaultContainer, ...props }: Pick<ContainerProps, "type" | "config" | "elementConfig" | "renderElement"> & {
5
- layerInfo: QueryLayerServiceInfoDc;
5
+ layerInfo: LayerInfo;
6
6
  attributes: ClientFeatureAttribute[];
7
7
  element: ConfigContainerChild;
8
8
  getDefaultContainer?: () => ReactNode;
@@ -1,4 +1,5 @@
1
- import { FeatureDc, QueryLayerServiceInfoDc } from '@evergis/api';
1
+ import { FeatureDc } from '@evergis/api';
2
2
  import { SelectedFeatureDc } from '../../../utils';
3
+ import { LayerInfo } from '../../../types';
3
4
  import { ClientFeatureAttribute, FetchedDataSource } from '../types';
4
- export declare function getFeatureAttributes(feature?: FeatureDc | SelectedFeatureDc, layer?: QueryLayerServiceInfoDc, dataSource?: FetchedDataSource): ClientFeatureAttribute[];
5
+ export declare function getFeatureAttributes(feature?: FeatureDc | SelectedFeatureDc, layer?: LayerInfo, dataSource?: FetchedDataSource): ClientFeatureAttribute[];
@@ -1,2 +1,3 @@
1
- import { LayerDefinitionDc, QueryLayerServiceInfoDc } from '@evergis/api';
2
- export declare const getLayerDefinition: (layer?: QueryLayerServiceInfoDc) => LayerDefinitionDc;
1
+ import { LayerDefinitionDc } from '@evergis/api';
2
+ import { LayerInfo } from '../../../types';
3
+ export declare const getLayerDefinition: (layer?: LayerInfo) => LayerDefinitionDc;
@@ -1,8 +1,8 @@
1
- import { ProxyServiceInfoDc, QueryLayerServiceInfoDc, ServiceInfoDc } from '@evergis/api';
2
- import { ProxyServiceInfo } from '../../../types';
1
+ import { ProxyServiceInfoDc, ServiceInfoDc } from '@evergis/api';
2
+ import { LayerInfo, ProxyServiceInfo } from '../../../types';
3
3
  export declare const isCompositeLayerConfiguration: (value?: unknown) => value is ServiceInfoDc;
4
4
  export declare const isProxyService: (value?: unknown) => value is ProxyServiceInfoDc;
5
5
  export declare const getProxyService: (layer?: ServiceInfoDc) => ProxyServiceInfo;
6
6
  export declare function getLayerInfo(layer?: ServiceInfoDc & {
7
7
  type?: string;
8
- }): QueryLayerServiceInfoDc;
8
+ }): LayerInfo;
@@ -1,3 +1,3 @@
1
- import { QueryLayerServiceInfoDc } from '@evergis/api';
1
+ import { LayerInfo } from '../../../types';
2
2
  import { ConfigDataSource } from '../types';
3
- export declare const getLayerInfoFromDataSources: (layerInfos: QueryLayerServiceInfoDc[], dataSources: ConfigDataSource[], relatedDataSource: string) => QueryLayerServiceInfoDc | undefined;
3
+ export declare const getLayerInfoFromDataSources: (layerInfos: LayerInfo[], dataSources: ConfigDataSource[], relatedDataSource: string) => LayerInfo | undefined;
@@ -1,2 +1,2 @@
1
- import { QueryLayerServiceInfoDc } from '@evergis/api';
2
- export declare const getRelatedAttribute: (layerInfo: QueryLayerServiceInfoDc, sourceAttributeName: string, relatedLayerName: string) => any;
1
+ import { LayerInfo } from '../../../types';
2
+ export declare const getRelatedAttribute: (layerInfo: LayerInfo, sourceAttributeName: string, relatedLayerName: string) => any;
@@ -1,8 +1,7 @@
1
- import { QueryLayerServiceInfoDc } from '@evergis/api';
2
1
  import { ConfigContainerChild } from '../types';
3
- import { FeatureAttribute } from '../../../types';
2
+ import { FeatureAttribute, LayerInfo } from '../../../types';
4
3
  export declare const getSvgUrl: ({ elementConfig, layerInfo, attributes, }: {
5
4
  elementConfig: ConfigContainerChild;
6
- layerInfo: QueryLayerServiceInfoDc;
5
+ layerInfo: LayerInfo;
7
6
  attributes: FeatureAttribute[];
8
7
  }) => string;
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { i18n } from 'i18next';
3
3
  import { PieChartData } from '@evergis/charts';
4
- import { QueryLayerServiceInfoDc } from '@evergis/api';
5
4
  import { ConfigRelatedDataSource } from '../types';
6
- export declare const pieChartTooltipFromRelatedFeatures: (t: i18n["t"], data: PieChartData[], relatedAttributes: ConfigRelatedDataSource[], layerInfo: QueryLayerServiceInfoDc) => ReactElement | string;
5
+ import { LayerInfo } from '../../../types';
6
+ export declare const pieChartTooltipFromRelatedFeatures: (t: i18n["t"], data: PieChartData[], relatedAttributes: ConfigRelatedDataSource[], layerInfo: LayerInfo) => ReactElement | string;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { i18n } from 'i18next';
3
- import { QueryLayerServiceInfoDc } from '@evergis/api';
4
3
  import { ConfigRelatedDataSource } from '../types';
5
- export declare const tooltipValueFromRelatedFeatures: (t: i18n["t"], value: number, relatedAttributes: ConfigRelatedDataSource[], layerInfo: QueryLayerServiceInfoDc) => number | string | ReactNode;
4
+ import { LayerInfo } from '../../../types';
5
+ export declare const tooltipValueFromRelatedFeatures: (t: i18n["t"], value: number, relatedAttributes: ConfigRelatedDataSource[], layerInfo: LayerInfo) => number | string | ReactNode;
@@ -1,9 +1,9 @@
1
1
  import { EffectCallback } from 'react';
2
- import { QueryLayerServiceInfoDc } from '@evergis/api';
2
+ import { FeatureLayerServiceInfoDc, QueryLayerServiceInfoDc } from '@evergis/api';
3
3
  import { ClientStyle, ClientStyleItem } from '../../types';
4
4
  export interface LayerProps {
5
5
  tileUrl: string;
6
- layer?: QueryLayerServiceInfoDc;
6
+ layer?: FeatureLayerServiceInfoDc | QueryLayerServiceInfoDc;
7
7
  layerType?: string;
8
8
  visible?: boolean;
9
9
  beforeId?: string;
@@ -1,3 +1,3 @@
1
- import { OgcGeometryType } from '@evergis/api';
1
+ import { GeometryType } from '@evergis/api';
2
2
  import { ClientStyleItem } from '../../../types';
3
- export declare const getClientStyleItemPrefixSuffix: (geometryType: OgcGeometryType, itemType: ClientStyleItem["type"]) => [string, string];
3
+ export declare const getClientStyleItemPrefixSuffix: (geometryType: GeometryType, itemType: ClientStyleItem["type"]) => [string, string];
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { QueryLayerServiceInfoDc } from '@evergis/api';
2
+ import { LayerInfo } from '../../types';
3
3
  export declare const LayerIcon: FC<{
4
- layerInfo: QueryLayerServiceInfoDc;
4
+ layerInfo: LayerInfo;
5
5
  error?: boolean;
6
6
  }>;
@@ -1,13 +1,14 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
- import { ExtendedProjectInfoDc, QueryLayerServiceInfoDc } from '@evergis/api';
2
+ import { ExtendedProjectInfoDc } from '@evergis/api';
3
3
  import { ConfigContainer, DashboardLayerPayload, DashboardState, LayerItemProps, SelectedFilters, WidgetDataSource } from '../../components';
4
+ import { LayerInfo } from '../../types';
4
5
  export type DashboardContextProps = PropsWithChildren<{
5
6
  config?: ConfigContainer;
6
7
  containerIds?: string[];
7
8
  projectInfo?: ExtendedProjectInfoDc;
8
9
  updateProject?: (projectInfo: ExtendedProjectInfoDc) => void;
9
10
  pageIndex?: number;
10
- layerInfos?: QueryLayerServiceInfoDc[];
11
+ layerInfos?: LayerInfo[];
11
12
  dataSources?: WidgetDataSource[];
12
13
  geometryFilter?: boolean;
13
14
  loading?: boolean;
@@ -1,11 +1,11 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { LayerReferenceConfigurationDc, QueryLayerServiceInfoDc } from '@evergis/api';
2
+ import { LayerReferenceConfigurationDc } from '@evergis/api';
3
3
  import { ClientFeatureAttribute, ConfigContainer, EditAttributeValue, SelectedFilters, WidgetDataSource } from '../../components';
4
- import { SelectedFeature } from '../../types';
4
+ import { LayerInfo, SelectedFeature } from '../../types';
5
5
  export type FeatureCardContextSettings = PropsWithChildren<{
6
6
  config?: ConfigContainer;
7
7
  attributes?: ClientFeatureAttribute[];
8
- layerInfo?: QueryLayerServiceInfoDc;
8
+ layerInfo?: LayerInfo;
9
9
  feature?: SelectedFeature;
10
10
  pageIndex?: number;
11
11
  handBookReference?: LayerReferenceConfigurationDc;
@@ -0,0 +1,3 @@
1
+ import { Feature } from 'geojson';
2
+ import { FeatureDc } from '@evergis/api';
3
+ export declare const convertSpToTurfFeature: (geometry?: FeatureDc["geometry"]) => Feature<any> | undefined;
@@ -0,0 +1 @@
1
+ export * from './convertSpToTurfFeature';
@@ -1,2 +1,3 @@
1
1
  export * from './classification';
2
+ export * from './feature';
2
3
  export * from './icons';
@@ -1,2 +1,3 @@
1
- import { QueryLayerServiceInfoDc } from '@evergis/api';
2
- export declare const useLayerParams: (layer?: QueryLayerServiceInfoDc) => {};
1
+ import { FeatureLayerServiceInfoDc } from '@evergis/api';
2
+ import { LayerInfo } from '../../types';
3
+ export declare const useLayerParams: (layer?: LayerInfo | FeatureLayerServiceInfoDc) => {};