@xyo-network/react-map 7.5.4 → 7.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-map",
3
- "version": "7.5.4",
3
+ "version": "7.5.6",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -43,34 +43,34 @@
43
43
  "src"
44
44
  ],
45
45
  "dependencies": {
46
- "@xylabs/geo": "~5.0.79",
47
- "@xylabs/react-app-settings": "~7.1.15",
48
- "@xylabs/react-flexbox": "~7.1.15",
49
- "@xylabs/react-shared": "~7.1.15",
50
- "@xylabs/react-theme": "~7.1.15",
51
- "@xylabs/sdk-js": "~5.0.79",
52
- "@xyo-network/react-archivist": "7.5.4",
53
- "@xyo-network/react-map-model": "7.5.4",
46
+ "@xylabs/geo": "~5.0.90",
47
+ "@xylabs/react-app-settings": "~7.1.17",
48
+ "@xylabs/react-flexbox": "~7.1.17",
49
+ "@xylabs/react-shared": "~7.1.17",
50
+ "@xylabs/react-theme": "~7.1.17",
51
+ "@xylabs/sdk-js": "~5.0.90",
52
+ "@xyo-network/react-archivist": "7.5.6",
53
+ "@xyo-network/react-map-model": "7.5.6",
54
54
  "@xyo-network/sdk-geo": "~3.0.3",
55
55
  "geojson": "~0.5.0",
56
- "mapbox-gl": "~3.18.1"
56
+ "mapbox-gl": "~3.20.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@mui/icons-material": "~7.3.8",
60
- "@mui/material": "~7.3.8",
61
- "@storybook/react-vite": "~10.2.9",
59
+ "@mui/icons-material": "~7.3.9",
60
+ "@mui/material": "~7.3.9",
61
+ "@storybook/react-vite": "~10.3.3",
62
62
  "@types/geojson": "7946.0.16",
63
63
  "@types/react": "^19.2.14",
64
- "@xylabs/ts-scripts-yarn3": "~7.3.2",
65
- "@xylabs/tsconfig": "~7.3.2",
66
- "@xylabs/tsconfig-dom": "~7.3.2",
67
- "@xylabs/tsconfig-react": "~7.3.2",
64
+ "@xylabs/ts-scripts-yarn3": "~7.5.6",
65
+ "@xylabs/tsconfig": "~7.5.6",
66
+ "@xylabs/tsconfig-dom": "~7.5.6",
67
+ "@xylabs/tsconfig-react": "~7.5.6",
68
68
  "react": "^19.2.4",
69
69
  "react-dom": "^19.2.4",
70
- "react-router-dom": "^7.13.0",
71
- "storybook": "~10.2.9",
70
+ "react-router-dom": "^7.13.2",
71
+ "storybook": "~10.3.3",
72
72
  "typescript": "^5.9.3",
73
- "vite": "~7.3.1",
73
+ "vite": "~8.0.3",
74
74
  "zod": "^4.3.6"
75
75
  },
76
76
  "peerDependencies": {
@@ -2,7 +2,7 @@ import { GeoJson } from '@xylabs/geo'
2
2
  import { exists } from '@xylabs/sdk-js'
3
3
  import type { NetworkLocationHeatmapQuadkeyAnswerPayload } from '@xyo-network/react-map-model'
4
4
  import type { Feature, Geometry } from 'geojson'
5
- import { useMemo, useState } from 'react'
5
+ import { useEffect, useState } from 'react'
6
6
 
7
7
  const quadKeyToFeature = ({ density, quadkey }: { density: number; quadkey: string }) => {
8
8
  const polygonFeature = new GeoJson(quadkey).polygonFeature()
@@ -25,7 +25,7 @@ const useQuadKeyPayloadsToFeatures = (payloads?: NetworkLocationHeatmapQuadkeyAn
25
25
  const [features, setFeatures] = useState<Feature<Geometry>[]>([])
26
26
  const [error, setError] = useState<Error>()
27
27
 
28
- useMemo(() => {
28
+ useEffect(() => {
29
29
  // Convert Multiple Payloads from Quadkey to GeoJson
30
30
  if (Array.isArray(payloads)) {
31
31
  if ((payloads)?.filter(exists).length > 0) {