@evergis/react 3.1.5 → 3.1.7
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/LICENSE +2 -2
- package/README.md +1 -29
- package/dist/assets/index-CTzhzVha.css +90 -0
- package/dist/assets/react.esm-CTzhzVha.css +90 -0
- package/dist/components/ErrorBoundary/index.d.ts +12 -12
- package/dist/components/ErrorBoundary/types.d.ts +7 -7
- package/dist/components/Layer/Layer.d.ts +3 -3
- package/dist/components/Layer/RasterLayer.d.ts +3 -3
- package/dist/components/Layer/VectorLayer.d.ts +3 -3
- package/dist/components/Layer/constants.d.ts +5 -137
- package/dist/components/Layer/index.d.ts +3 -3
- package/dist/components/Layer/types.d.ts +12 -12
- package/dist/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +3 -3
- package/dist/components/Map/Map.d.ts +3 -5
- package/dist/components/Map/index.d.ts +2 -2
- package/dist/components/Map/styled.d.ts +4 -4
- package/dist/components/Map/types.d.ts +8 -9
- package/dist/components/index.d.ts +3 -3
- package/dist/contexts/MapContext/MapContext.d.ts +2 -2
- package/dist/contexts/MapContext/MapProvider.d.ts +3 -3
- package/dist/contexts/MapContext/index.d.ts +3 -3
- package/dist/contexts/MapContext/types.d.ts +31 -31
- package/dist/contexts/ServerNotificationsContext/ServerNotificationsContext.d.ts +2 -2
- package/dist/contexts/ServerNotificationsContext/ServerNotificationsProvider.d.ts +3 -3
- package/dist/contexts/ServerNotificationsContext/hooks/useServerNotifications.d.ts +2 -2
- package/dist/contexts/ServerNotificationsContext/index.d.ts +3 -3
- package/dist/contexts/ServerNotificationsContext/types.d.ts +12 -12
- package/dist/contexts/index.d.ts +2 -2
- package/dist/core/classification/findAttributeInExpression.d.ts +2 -2
- package/dist/core/classification/getActualExtrusionHeight.d.ts +2 -2
- package/dist/core/classification/index.d.ts +3 -3
- package/dist/core/classification/parseClientStyle.d.ts +2 -2
- package/dist/core/feature/convertSpToTurfFeature.d.ts +3 -3
- package/dist/core/feature/index.d.ts +1 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/dist/react.esm.d.ts +99 -0
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/map/index.d.ts +5 -5
- package/dist/hooks/map/useMapContext.d.ts +1 -1
- package/dist/hooks/map/useMapDraw/customModes.d.ts +7 -7
- package/dist/hooks/map/useMapDraw/customStyles.d.ts +58 -58
- package/dist/hooks/map/useMapDraw/index.d.ts +1 -1
- package/dist/hooks/map/useRedrawLayer.d.ts +1 -1
- package/dist/hooks/map/useZoomToFeatures.d.ts +2 -2
- package/dist/hooks/map/useZoomToPoint.d.ts +1 -1
- package/dist/hooks/serverNotifications/index.d.ts +1 -1
- package/dist/hooks/serverNotifications/useServerNotificationsContext.d.ts +1 -1
- package/dist/hooks/useDebouncedCallback.d.ts +1 -1
- package/dist/hooks/useToggle.d.ts +1 -1
- package/dist/hooks/useWindowResize.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7963 -5
- package/dist/index.js.map +1 -0
- package/dist/react.esm.js +7792 -796
- package/dist/react.esm.js.map +1 -1
- package/dist/src/components/ErrorBoundary/index.d.ts +12 -0
- package/dist/src/components/ErrorBoundary/types.d.ts +7 -0
- package/dist/src/components/Layer/Layer.d.ts +3 -0
- package/dist/src/components/Layer/RasterLayer.d.ts +3 -0
- package/dist/src/components/Layer/VectorLayer.d.ts +3 -0
- package/dist/src/components/Layer/constants.d.ts +5 -0
- package/dist/src/components/Layer/index.d.ts +3 -0
- package/dist/src/components/Layer/types.d.ts +12 -0
- package/dist/src/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +3 -0
- package/dist/src/components/Map/Map.d.ts +3 -0
- package/dist/src/components/Map/index.d.ts +2 -0
- package/dist/src/components/Map/styled.d.ts +4 -0
- package/dist/src/components/Map/types.d.ts +8 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/contexts/MapContext/MapContext.d.ts +2 -0
- package/dist/src/contexts/MapContext/MapProvider.d.ts +3 -0
- package/dist/src/contexts/MapContext/index.d.ts +3 -0
- package/dist/src/contexts/MapContext/types.d.ts +31 -0
- package/dist/src/contexts/ServerNotificationsContext/ServerNotificationsContext.d.ts +2 -0
- package/dist/src/contexts/ServerNotificationsContext/ServerNotificationsProvider.d.ts +3 -0
- package/dist/src/contexts/ServerNotificationsContext/hooks/useServerNotifications.d.ts +2 -0
- package/dist/src/contexts/ServerNotificationsContext/index.d.ts +3 -0
- package/dist/src/contexts/ServerNotificationsContext/types.d.ts +12 -0
- package/dist/src/contexts/index.d.ts +2 -0
- package/dist/src/core/classification/findAttributeInExpression.d.ts +2 -0
- package/dist/src/core/classification/getActualExtrusionHeight.d.ts +2 -0
- package/dist/src/core/classification/index.d.ts +3 -0
- package/dist/src/core/classification/parseClientStyle.d.ts +2 -0
- package/dist/src/core/feature/convertSpToTurfFeature.d.ts +3 -0
- package/dist/src/core/feature/index.d.ts +1 -0
- package/dist/src/core/index.d.ts +2 -0
- package/dist/src/hooks/index.d.ts +5 -0
- package/dist/src/hooks/map/index.d.ts +5 -0
- package/dist/src/hooks/map/useMapContext.d.ts +1 -0
- package/dist/src/hooks/map/useMapDraw/customModes.d.ts +7 -0
- package/dist/src/hooks/map/useMapDraw/customStyles.d.ts +58 -0
- package/dist/src/hooks/map/useMapDraw/index.d.ts +1 -0
- package/dist/src/hooks/map/useRedrawLayer.d.ts +1 -0
- package/dist/src/hooks/map/useZoomToFeatures.d.ts +2 -0
- package/dist/src/hooks/map/useZoomToPoint.d.ts +1 -0
- package/dist/src/hooks/serverNotifications/index.d.ts +1 -0
- package/dist/src/hooks/serverNotifications/useServerNotificationsContext.d.ts +1 -0
- package/dist/src/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/src/hooks/useToggle.d.ts +1 -0
- package/dist/src/hooks/useWindowResize.d.ts +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/types/attribute.d.ts +20 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/styling.d.ts +15 -0
- package/dist/src/utils/date.d.ts +16 -0
- package/dist/src/utils/debounce.d.ts +1 -0
- package/dist/src/utils/index.d.ts +4 -0
- package/dist/src/utils/isNumeric.d.ts +1 -0
- package/dist/src/utils/isObject.d.ts +1 -0
- package/dist/types/attribute.d.ts +20 -20
- package/dist/types/index.d.ts +2 -2
- package/dist/types/styling.d.ts +15 -15
- package/dist/utils/date.d.ts +16 -16
- package/dist/utils/debounce.d.ts +1 -1
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/isNumeric.d.ts +1 -1
- package/dist/utils/isObject.d.ts +1 -1
- package/package.json +18 -37
- package/dist/jest.config.d.ts +0 -11
- package/dist/react.cjs.development.js +0 -973
- package/dist/react.cjs.development.js.map +0 -1
- package/dist/react.cjs.production.min.js +0 -2
- package/dist/react.cjs.production.min.js.map +0 -1
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
export declare const customStyles: ({
|
|
2
|
-
id: string;
|
|
3
|
-
type: string;
|
|
4
|
-
filter: (string | string[])[];
|
|
5
|
-
paint: {
|
|
6
|
-
"circle-radius": number;
|
|
7
|
-
"circle-color": string;
|
|
8
|
-
"circle-stroke-color": string;
|
|
9
|
-
"circle-stroke-width": number;
|
|
10
|
-
"circle-stroke-opacity": number;
|
|
11
|
-
"fill-color"?: undefined;
|
|
12
|
-
"fill-outline-color"?: undefined;
|
|
13
|
-
"fill-opacity"?: undefined;
|
|
14
|
-
"line-color"?: undefined;
|
|
15
|
-
"line-dasharray"?: undefined;
|
|
16
|
-
"line-width"?: undefined;
|
|
17
|
-
};
|
|
18
|
-
layout?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
id: string;
|
|
21
|
-
type: string;
|
|
22
|
-
filter: (string | string[])[];
|
|
23
|
-
paint: {
|
|
24
|
-
"fill-color": string;
|
|
25
|
-
"fill-outline-color": string;
|
|
26
|
-
"fill-opacity": number;
|
|
27
|
-
"circle-radius"?: undefined;
|
|
28
|
-
"circle-color"?: undefined;
|
|
29
|
-
"circle-stroke-color"?: undefined;
|
|
30
|
-
"circle-stroke-width"?: undefined;
|
|
31
|
-
"circle-stroke-opacity"?: undefined;
|
|
32
|
-
"line-color"?: undefined;
|
|
33
|
-
"line-dasharray"?: undefined;
|
|
34
|
-
"line-width"?: undefined;
|
|
35
|
-
};
|
|
36
|
-
layout?: undefined;
|
|
37
|
-
} | {
|
|
38
|
-
id: string;
|
|
39
|
-
type: string;
|
|
40
|
-
filter: (string | string[])[];
|
|
41
|
-
layout: {
|
|
42
|
-
"line-cap": string;
|
|
43
|
-
"line-join": string;
|
|
44
|
-
};
|
|
45
|
-
paint: {
|
|
46
|
-
"line-color": string;
|
|
47
|
-
"line-dasharray": number[];
|
|
48
|
-
"line-width": number;
|
|
49
|
-
"circle-radius"?: undefined;
|
|
50
|
-
"circle-color"?: undefined;
|
|
51
|
-
"circle-stroke-color"?: undefined;
|
|
52
|
-
"circle-stroke-width"?: undefined;
|
|
53
|
-
"circle-stroke-opacity"?: undefined;
|
|
54
|
-
"fill-color"?: undefined;
|
|
55
|
-
"fill-outline-color"?: undefined;
|
|
56
|
-
"fill-opacity"?: undefined;
|
|
57
|
-
};
|
|
58
|
-
})[];
|
|
1
|
+
export declare const customStyles: ({
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
filter: (string | string[])[];
|
|
5
|
+
paint: {
|
|
6
|
+
"circle-radius": number;
|
|
7
|
+
"circle-color": string;
|
|
8
|
+
"circle-stroke-color": string;
|
|
9
|
+
"circle-stroke-width": number;
|
|
10
|
+
"circle-stroke-opacity": number;
|
|
11
|
+
"fill-color"?: undefined;
|
|
12
|
+
"fill-outline-color"?: undefined;
|
|
13
|
+
"fill-opacity"?: undefined;
|
|
14
|
+
"line-color"?: undefined;
|
|
15
|
+
"line-dasharray"?: undefined;
|
|
16
|
+
"line-width"?: undefined;
|
|
17
|
+
};
|
|
18
|
+
layout?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
id: string;
|
|
21
|
+
type: string;
|
|
22
|
+
filter: (string | string[])[];
|
|
23
|
+
paint: {
|
|
24
|
+
"fill-color": string;
|
|
25
|
+
"fill-outline-color": string;
|
|
26
|
+
"fill-opacity": number;
|
|
27
|
+
"circle-radius"?: undefined;
|
|
28
|
+
"circle-color"?: undefined;
|
|
29
|
+
"circle-stroke-color"?: undefined;
|
|
30
|
+
"circle-stroke-width"?: undefined;
|
|
31
|
+
"circle-stroke-opacity"?: undefined;
|
|
32
|
+
"line-color"?: undefined;
|
|
33
|
+
"line-dasharray"?: undefined;
|
|
34
|
+
"line-width"?: undefined;
|
|
35
|
+
};
|
|
36
|
+
layout?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
id: string;
|
|
39
|
+
type: string;
|
|
40
|
+
filter: (string | string[])[];
|
|
41
|
+
layout: {
|
|
42
|
+
"line-cap": string;
|
|
43
|
+
"line-join": string;
|
|
44
|
+
};
|
|
45
|
+
paint: {
|
|
46
|
+
"line-color": string;
|
|
47
|
+
"line-dasharray": number[];
|
|
48
|
+
"line-width": number;
|
|
49
|
+
"circle-radius"?: undefined;
|
|
50
|
+
"circle-color"?: undefined;
|
|
51
|
+
"circle-stroke-color"?: undefined;
|
|
52
|
+
"circle-stroke-width"?: undefined;
|
|
53
|
+
"circle-stroke-opacity"?: undefined;
|
|
54
|
+
"fill-color"?: undefined;
|
|
55
|
+
"fill-outline-color"?: undefined;
|
|
56
|
+
"fill-opacity"?: undefined;
|
|
57
|
+
};
|
|
58
|
+
})[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useMapDraw: (triggerDeps?: Array<unknown>) => void;
|
|
1
|
+
export declare const useMapDraw: (triggerDeps?: Array<unknown>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useRedrawLayer: () => (layerName: string) => void;
|
|
1
|
+
export declare const useRedrawLayer: () => (layerName: string) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FeatureDc } from
|
|
2
|
-
export declare const useZoomToFeatures: () => (features?: FeatureDc[], padding?: number) => void;
|
|
1
|
+
import { FeatureDc } from '@evergis/api';
|
|
2
|
+
export declare const useZoomToFeatures: () => (features?: FeatureDc[], padding?: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useZoomToPoint: () => (options: any, callback?: VoidFunction) => void;
|
|
1
|
+
export declare const useZoomToPoint: () => (options: any, callback?: VoidFunction) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './useServerNotificationsContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useServerNotificationsContext: () => import(
|
|
1
|
+
export declare const useServerNotificationsContext: () => import('../../contexts').ServerNotificationsContextProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useDebouncedCallback: <CallbackFn extends () => void>(interval: number) => (cb: CallbackFn) => void;
|
|
1
|
+
export declare const useDebouncedCallback: <CallbackFn extends () => void>(interval: number) => ((cb: CallbackFn) => void);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useToggle: (initial?: boolean) => [boolean, VoidFunction, (value: boolean) => void];
|
|
1
|
+
export declare const useToggle: (initial?: boolean) => [boolean, VoidFunction, (value: boolean) => void];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useWindowResize: (callback?: (...args: any) => any, delay?: number) => void;
|
|
1
|
+
export declare const useWindowResize: (callback?: (...args: any) => any, delay?: number) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './contexts';
|
|
3
|
+
export * from './core';
|
|
4
|
+
export * from './hooks';
|
|
5
|
+
export * from './types';
|
|
6
|
+
export * from './utils';
|