@evergis/react 4.0.108 → 4.0.110

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 (29) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +7 -7
  3. package/dist/components/Dashboard/types.d.ts +1 -0
  4. package/dist/components/Dashboard/utils/getDefaultConfig.d.ts +2 -3
  5. package/dist/components/Layer/index.d.ts +0 -1
  6. package/dist/components/LayerTree/{components/LayerTree/index.d.ts → LayerTree.d.ts} +1 -1
  7. package/dist/components/LayerTree/index.d.ts +1 -2
  8. package/dist/components/LayerTree/types.d.ts +2 -2
  9. package/dist/constants/index.d.ts +1 -0
  10. package/dist/constants/styling.d.ts +13 -0
  11. package/dist/core/classification/enrichStyleItemsWithIds.d.ts +2 -0
  12. package/dist/core/classification/index.d.ts +1 -0
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.js +2938 -2992
  15. package/dist/index.js.map +1 -1
  16. package/dist/react.esm.js +2928 -2988
  17. package/dist/react.esm.js.map +1 -1
  18. package/dist/types/styling.d.ts +1 -8
  19. package/package.json +4 -5
  20. package/dist/components/Layer/constants.d.ts +0 -5
  21. package/dist/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +0 -3
  22. package/dist/components/LayerTree/components/LayerGroup/hooks/useLayerGroupMenu.d.ts +0 -7
  23. package/dist/components/LayerTree/components/LayerGroup/index.d.ts +0 -3
  24. package/dist/components/LayerTree/components/LayerGroup/styled.d.ts +0 -5
  25. package/dist/components/LayerTree/components/LayerGroup/types.d.ts +0 -5
  26. package/dist/components/LayerTree/components/index.d.ts +0 -2
  27. package/dist/components/LayerTree/utils/createTreeNode.d.ts +0 -9
  28. package/dist/components/LayerTree/utils/index.d.ts +0 -2
  29. package/dist/components/LayerTree/utils/treeNodesToProjectItems.d.ts +0 -3
@@ -13,16 +13,8 @@ export declare enum StyligClassificationTypes {
13
13
  }
14
14
  export type ClientStyleLayer = CircleLayerSpecification | LineLayerSpecification | FillLayerSpecification | FillExtrusionLayerSpecification | SymbolLayerSpecification | HeatmapLayerSpecification;
15
15
  export type ClientStyleItem = Omit<ClientStyleLayer, "id" | "source"> & {
16
- /**
17
- * Уникальный идентификатор слоя в рамках clientStyle.
18
- * Используется как суффикс для Mapbox layer ID: `${layerName}-${id}`
19
- * Обязателен при наличии нескольких слоёв одного типа (например, два circle с разными filter).
20
- */
21
16
  id?: string;
22
17
  };
23
- /**
24
- * Конфигурация пользовательской иконки для карты.
25
- */
26
18
  export interface ClientStyleIcon {
27
19
  /** Уникальное имя иконки для использования в icon-image */
28
20
  name: string;
@@ -41,6 +33,7 @@ export interface ClientStyleModelRotation {
41
33
  z?: string;
42
34
  }
43
35
  export interface ClientStyleModel {
36
+ id?: string;
44
37
  path?: string;
45
38
  size?: string;
46
39
  rotation?: ClientStyleModelRotation;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.108",
2
+ "version": "4.0.110",
3
3
  "name": "@evergis/react",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -57,8 +57,8 @@
57
57
  "storybook": "^7.6.14"
58
58
  },
59
59
  "dependencies": {
60
- "@evergis/api": "^5.0.38",
61
- "@evergis/charts": "^4.0.37",
60
+ "@evergis/api": "^5.0.39",
61
+ "@evergis/charts": "^4.0.38",
62
62
  "@evergis/color": "^1.0.0-alpha.1",
63
63
  "@evergis/uilib-gl": "^1.0.119",
64
64
  "@mapbox/mapbox-gl-draw": "^1.5.1",
@@ -88,6 +88,5 @@
88
88
  "swiper": "^8.3.2",
89
89
  "uuid": "^13.0.0",
90
90
  "wkt": "^0.1.1"
91
- },
92
- "gitHead": "a8b6008350fab6a9dc3a0689587583f90ba0f67c"
91
+ }
93
92
  }
@@ -1,5 +0,0 @@
1
- import { CircleLayerSpecification, FillExtrusionLayerSpecification, FillLayerSpecification, LineLayerSpecification } from 'maplibre-gl';
2
- export declare const DEFAULT_CIRCLE_PAINT: CircleLayerSpecification["paint"];
3
- export declare const DEFAULT_FILL_PAINT: FillLayerSpecification["paint"];
4
- export declare const DEFAULT_FILL_EXTRUSION_PAINT: FillExtrusionLayerSpecification["paint"];
5
- export declare const DEFAULT_LINE_PAINT: LineLayerSpecification["paint"];
@@ -1,3 +0,0 @@
1
- import { OgcGeometryType } from '@evergis/api';
2
- import { ClientStyleItem } from '../../../types';
3
- export declare const getClientStyleItemPrefixSuffix: (geometryType: OgcGeometryType, itemType: ClientStyleItem["type"]) => [string, string];
@@ -1,7 +0,0 @@
1
- import { IOption } from '@evergis/uilib-gl';
2
- export declare const useLayerGroupMenu: () => {
3
- isMenuOpen: boolean;
4
- toggleMenu: VoidFunction;
5
- options: IOption<string>[];
6
- selectOption: () => void;
7
- };
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { LayerGroupProps } from './types';
3
- export declare const LayerGroup: FC<LayerGroupProps>;
@@ -1,5 +0,0 @@
1
- export declare const LayerGroupContainer: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps & {
2
- visible?: boolean;
3
- hover?: boolean;
4
- }, never>;
5
- export declare const LayerGroupMain: import('styled-components').StyledComponent<"div", any, import('@evergis/uilib-gl').FlexProps, never>;
@@ -1,5 +0,0 @@
1
- import { ProjectContentItemDc } from '@evergis/api';
2
- export interface LayerGroupProps {
3
- group?: ProjectContentItemDc;
4
- onlyMainTools?: boolean;
5
- }
@@ -1,2 +0,0 @@
1
- export * from './LayerGroup';
2
- export * from './LayerTree';
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- import { DraggableTreeNode } from '@evergis/uilib-gl';
3
- import { ProjectContentItemDc } from '@evergis/api';
4
- import { LayerItemProps } from '../types';
5
- type CreateTreeNodeLayer = ProjectContentItemDc & {
6
- disableDrag?: boolean;
7
- };
8
- export declare const createTreeNode: (layer: CreateTreeNodeLayer, Component: FC<LayerItemProps>, onlyMainTools?: boolean) => DraggableTreeNode;
9
- export {};
@@ -1,2 +0,0 @@
1
- export * from './createTreeNode';
2
- export * from './treeNodesToProjectItems';
@@ -1,3 +0,0 @@
1
- import { ProjectContentItemDc } from '@evergis/api';
2
- import { DraggableTreeNode } from '@evergis/uilib-gl';
3
- export declare const treeNodesToProjectItems: (currentProjectItems?: ProjectContentItemDc[], treeNodes?: DraggableTreeNode[]) => any[];