@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.
Files changed (123) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +1 -29
  3. package/dist/assets/index-CTzhzVha.css +90 -0
  4. package/dist/assets/react.esm-CTzhzVha.css +90 -0
  5. package/dist/components/ErrorBoundary/index.d.ts +12 -12
  6. package/dist/components/ErrorBoundary/types.d.ts +7 -7
  7. package/dist/components/Layer/Layer.d.ts +3 -3
  8. package/dist/components/Layer/RasterLayer.d.ts +3 -3
  9. package/dist/components/Layer/VectorLayer.d.ts +3 -3
  10. package/dist/components/Layer/constants.d.ts +5 -137
  11. package/dist/components/Layer/index.d.ts +3 -3
  12. package/dist/components/Layer/types.d.ts +12 -12
  13. package/dist/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +3 -3
  14. package/dist/components/Map/Map.d.ts +3 -5
  15. package/dist/components/Map/index.d.ts +2 -2
  16. package/dist/components/Map/styled.d.ts +4 -4
  17. package/dist/components/Map/types.d.ts +8 -9
  18. package/dist/components/index.d.ts +3 -3
  19. package/dist/contexts/MapContext/MapContext.d.ts +2 -2
  20. package/dist/contexts/MapContext/MapProvider.d.ts +3 -3
  21. package/dist/contexts/MapContext/index.d.ts +3 -3
  22. package/dist/contexts/MapContext/types.d.ts +31 -31
  23. package/dist/contexts/ServerNotificationsContext/ServerNotificationsContext.d.ts +2 -2
  24. package/dist/contexts/ServerNotificationsContext/ServerNotificationsProvider.d.ts +3 -3
  25. package/dist/contexts/ServerNotificationsContext/hooks/useServerNotifications.d.ts +2 -2
  26. package/dist/contexts/ServerNotificationsContext/index.d.ts +3 -3
  27. package/dist/contexts/ServerNotificationsContext/types.d.ts +12 -12
  28. package/dist/contexts/index.d.ts +2 -2
  29. package/dist/core/classification/findAttributeInExpression.d.ts +2 -2
  30. package/dist/core/classification/getActualExtrusionHeight.d.ts +2 -2
  31. package/dist/core/classification/index.d.ts +3 -3
  32. package/dist/core/classification/parseClientStyle.d.ts +2 -2
  33. package/dist/core/feature/convertSpToTurfFeature.d.ts +3 -3
  34. package/dist/core/feature/index.d.ts +1 -1
  35. package/dist/core/index.d.ts +2 -2
  36. package/dist/dist/react.esm.d.ts +99 -0
  37. package/dist/hooks/index.d.ts +5 -5
  38. package/dist/hooks/map/index.d.ts +5 -5
  39. package/dist/hooks/map/useMapContext.d.ts +1 -1
  40. package/dist/hooks/map/useMapDraw/customModes.d.ts +7 -7
  41. package/dist/hooks/map/useMapDraw/customStyles.d.ts +58 -58
  42. package/dist/hooks/map/useMapDraw/index.d.ts +1 -1
  43. package/dist/hooks/map/useRedrawLayer.d.ts +1 -1
  44. package/dist/hooks/map/useZoomToFeatures.d.ts +2 -2
  45. package/dist/hooks/map/useZoomToPoint.d.ts +1 -1
  46. package/dist/hooks/serverNotifications/index.d.ts +1 -1
  47. package/dist/hooks/serverNotifications/useServerNotificationsContext.d.ts +1 -1
  48. package/dist/hooks/useDebouncedCallback.d.ts +1 -1
  49. package/dist/hooks/useToggle.d.ts +1 -1
  50. package/dist/hooks/useWindowResize.d.ts +1 -1
  51. package/dist/index.d.ts +6 -6
  52. package/dist/index.js +7963 -5
  53. package/dist/index.js.map +1 -0
  54. package/dist/react.esm.js +7792 -796
  55. package/dist/react.esm.js.map +1 -1
  56. package/dist/src/components/ErrorBoundary/index.d.ts +12 -0
  57. package/dist/src/components/ErrorBoundary/types.d.ts +7 -0
  58. package/dist/src/components/Layer/Layer.d.ts +3 -0
  59. package/dist/src/components/Layer/RasterLayer.d.ts +3 -0
  60. package/dist/src/components/Layer/VectorLayer.d.ts +3 -0
  61. package/dist/src/components/Layer/constants.d.ts +5 -0
  62. package/dist/src/components/Layer/index.d.ts +3 -0
  63. package/dist/src/components/Layer/types.d.ts +12 -0
  64. package/dist/src/components/Layer/utils/getClientStyleItemPrefixSuffix.d.ts +3 -0
  65. package/dist/src/components/Map/Map.d.ts +3 -0
  66. package/dist/src/components/Map/index.d.ts +2 -0
  67. package/dist/src/components/Map/styled.d.ts +4 -0
  68. package/dist/src/components/Map/types.d.ts +8 -0
  69. package/dist/src/components/index.d.ts +3 -0
  70. package/dist/src/contexts/MapContext/MapContext.d.ts +2 -0
  71. package/dist/src/contexts/MapContext/MapProvider.d.ts +3 -0
  72. package/dist/src/contexts/MapContext/index.d.ts +3 -0
  73. package/dist/src/contexts/MapContext/types.d.ts +31 -0
  74. package/dist/src/contexts/ServerNotificationsContext/ServerNotificationsContext.d.ts +2 -0
  75. package/dist/src/contexts/ServerNotificationsContext/ServerNotificationsProvider.d.ts +3 -0
  76. package/dist/src/contexts/ServerNotificationsContext/hooks/useServerNotifications.d.ts +2 -0
  77. package/dist/src/contexts/ServerNotificationsContext/index.d.ts +3 -0
  78. package/dist/src/contexts/ServerNotificationsContext/types.d.ts +12 -0
  79. package/dist/src/contexts/index.d.ts +2 -0
  80. package/dist/src/core/classification/findAttributeInExpression.d.ts +2 -0
  81. package/dist/src/core/classification/getActualExtrusionHeight.d.ts +2 -0
  82. package/dist/src/core/classification/index.d.ts +3 -0
  83. package/dist/src/core/classification/parseClientStyle.d.ts +2 -0
  84. package/dist/src/core/feature/convertSpToTurfFeature.d.ts +3 -0
  85. package/dist/src/core/feature/index.d.ts +1 -0
  86. package/dist/src/core/index.d.ts +2 -0
  87. package/dist/src/hooks/index.d.ts +5 -0
  88. package/dist/src/hooks/map/index.d.ts +5 -0
  89. package/dist/src/hooks/map/useMapContext.d.ts +1 -0
  90. package/dist/src/hooks/map/useMapDraw/customModes.d.ts +7 -0
  91. package/dist/src/hooks/map/useMapDraw/customStyles.d.ts +58 -0
  92. package/dist/src/hooks/map/useMapDraw/index.d.ts +1 -0
  93. package/dist/src/hooks/map/useRedrawLayer.d.ts +1 -0
  94. package/dist/src/hooks/map/useZoomToFeatures.d.ts +2 -0
  95. package/dist/src/hooks/map/useZoomToPoint.d.ts +1 -0
  96. package/dist/src/hooks/serverNotifications/index.d.ts +1 -0
  97. package/dist/src/hooks/serverNotifications/useServerNotificationsContext.d.ts +1 -0
  98. package/dist/src/hooks/useDebouncedCallback.d.ts +1 -0
  99. package/dist/src/hooks/useToggle.d.ts +1 -0
  100. package/dist/src/hooks/useWindowResize.d.ts +1 -0
  101. package/dist/src/index.d.ts +6 -0
  102. package/dist/src/types/attribute.d.ts +20 -0
  103. package/dist/src/types/index.d.ts +2 -0
  104. package/dist/src/types/styling.d.ts +15 -0
  105. package/dist/src/utils/date.d.ts +16 -0
  106. package/dist/src/utils/debounce.d.ts +1 -0
  107. package/dist/src/utils/index.d.ts +4 -0
  108. package/dist/src/utils/isNumeric.d.ts +1 -0
  109. package/dist/src/utils/isObject.d.ts +1 -0
  110. package/dist/types/attribute.d.ts +20 -20
  111. package/dist/types/index.d.ts +2 -2
  112. package/dist/types/styling.d.ts +15 -15
  113. package/dist/utils/date.d.ts +16 -16
  114. package/dist/utils/debounce.d.ts +1 -1
  115. package/dist/utils/index.d.ts +4 -4
  116. package/dist/utils/isNumeric.d.ts +1 -1
  117. package/dist/utils/isObject.d.ts +1 -1
  118. package/package.json +18 -37
  119. package/dist/jest.config.d.ts +0 -11
  120. package/dist/react.cjs.development.js +0 -973
  121. package/dist/react.cjs.development.js.map +0 -1
  122. package/dist/react.cjs.production.min.js +0 -2
  123. package/dist/react.cjs.production.min.js.map +0 -1
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
- "version": "3.1.5",
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
- "start": "tsdx watch",
14
- "build": "tsdx build",
15
- "test": "tsdx test --passWithNoTests",
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": "fe86d6104f25d231ba908afa9edd2ae64ae765a3"
71
+ "gitHead": "a14663dc8c909b26e8f0074528b252289eec8948"
91
72
  }
@@ -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[];