@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
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.1.
|
|
2
|
+
"version": "3.1.7",
|
|
3
|
+
"name": "@evergis/react",
|
|
4
|
+
"author": "Everpoint",
|
|
3
5
|
"license": "MIT",
|
|
4
6
|
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/react.esm.js",
|
|
5
8
|
"typings": "dist/index.d.ts",
|
|
9
|
+
"type": "module",
|
|
6
10
|
"files": [
|
|
7
11
|
"dist"
|
|
8
12
|
],
|
|
@@ -10,39 +14,24 @@
|
|
|
10
14
|
"node": ">=20"
|
|
11
15
|
},
|
|
12
16
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"build": "
|
|
15
|
-
"
|
|
16
|
-
"lint": "tsdx lint",
|
|
17
|
-
"lint:fix": "tsdx lint --fix",
|
|
18
|
-
"prepare": "tsdx build",
|
|
17
|
+
"clean": "../../node_modules/.bin/rimraf dist",
|
|
18
|
+
"build": "yarn clean && rollup -c",
|
|
19
|
+
"prepare": "rollup -c",
|
|
19
20
|
"storybook": "start-storybook -p 6006",
|
|
20
21
|
"build-storybook": "build-storybook"
|
|
21
22
|
},
|
|
23
|
+
"resolutions": {
|
|
24
|
+
"styled-components": "5.3.5"
|
|
25
|
+
},
|
|
22
26
|
"peerDependencies": {
|
|
23
27
|
"@evergis/api": ">=4.0.0",
|
|
28
|
+
"@turf/turf": ">=7",
|
|
29
|
+
"lodash": ">=4",
|
|
24
30
|
"react": ">=18",
|
|
25
|
-
"react-dom": ">=18"
|
|
26
|
-
|
|
27
|
-
"husky": {
|
|
28
|
-
"hooks": {
|
|
29
|
-
"pre-push": "tsdx lint"
|
|
30
|
-
}
|
|
31
|
+
"react-dom": ">=18",
|
|
32
|
+
"react-is": ">=19"
|
|
31
33
|
},
|
|
32
|
-
"prettier": {
|
|
33
|
-
"printWidth": 80,
|
|
34
|
-
"semi": true,
|
|
35
|
-
"singleQuote": true,
|
|
36
|
-
"trailingComma": "es5"
|
|
37
|
-
},
|
|
38
|
-
"name": "@evergis/react",
|
|
39
|
-
"author": "Everpoint",
|
|
40
|
-
"module": "dist/react.esm.js",
|
|
41
34
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "^7.17.5",
|
|
43
|
-
"@babel/plugin-transform-classes": "^7.16.7",
|
|
44
|
-
"@babel/preset-env": "^7.16.11",
|
|
45
|
-
"@evergis/api": "^4.1.5",
|
|
46
35
|
"@storybook/addon-actions": "^6.4.18",
|
|
47
36
|
"@storybook/addon-controls": "^6.4.18",
|
|
48
37
|
"@storybook/addon-docs": "^6.4.18",
|
|
@@ -60,17 +49,10 @@
|
|
|
60
49
|
"@types/react-dom": "^18.3.5",
|
|
61
50
|
"@types/react-map-gl": "^6.1.7",
|
|
62
51
|
"@types/styled-components": "5.1.25",
|
|
63
|
-
"@types/styled-system": "^5.1.23"
|
|
64
|
-
"react": "^18.3.1",
|
|
65
|
-
"react-dom": "^18.3.1",
|
|
66
|
-
"react-is": "^17.0.2",
|
|
67
|
-
"ts-jest": "^25.3.1",
|
|
68
|
-
"ts-loader": "^8.0.5"
|
|
69
|
-
},
|
|
70
|
-
"resolutions": {
|
|
71
|
-
"styled-components": "5.3.5"
|
|
52
|
+
"@types/styled-system": "^5.1.23"
|
|
72
53
|
},
|
|
73
54
|
"dependencies": {
|
|
55
|
+
"@evergis/api": "^4.1.7",
|
|
74
56
|
"@evergis/color": "^1.0.0-alpha.1",
|
|
75
57
|
"@mapbox/mapbox-gl-draw": "^1.5.0",
|
|
76
58
|
"@microsoft/signalr": "^8.0.7",
|
|
@@ -78,7 +60,6 @@
|
|
|
78
60
|
"@turf/turf": "^7.2.0",
|
|
79
61
|
"date-fns": "^4.1.0",
|
|
80
62
|
"find-and": "^1.3.1",
|
|
81
|
-
"lodash": "^4.17.21",
|
|
82
63
|
"mapbox-gl": "^3.12.0",
|
|
83
64
|
"mapbox-gl-draw": "^0.16.0",
|
|
84
65
|
"punycode": "^2.1.1",
|
|
@@ -87,5 +68,5 @@
|
|
|
87
68
|
"styled-system": "^5.1.5",
|
|
88
69
|
"wkt": "^0.1.1"
|
|
89
70
|
},
|
|
90
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "a14663dc8c909b26e8f0074528b252289eec8948"
|
|
91
72
|
}
|
package/dist/jest.config.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const transform: {
|
|
2
|
-
'.(ts|tsx)$': string;
|
|
3
|
-
'.(js|jsx)$': string;
|
|
4
|
-
};
|
|
5
|
-
export declare const transformIgnorePatterns: string[];
|
|
6
|
-
export declare const moduleFileExtensions: string[];
|
|
7
|
-
export declare const collectCoverageFrom: string[];
|
|
8
|
-
export declare const testMatch: string[];
|
|
9
|
-
export declare const testURL: string;
|
|
10
|
-
export declare const rootDir: string;
|
|
11
|
-
export declare const watchPlugins: string[];
|