@xyo-network/react-map 4.4.11 → 5.0.0-rc.2
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/dist/browser/index.mjs +9 -9
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +26 -24
- package/src/Contexts/HeatMapInitializer/Provider.tsx +1 -1
- package/src/Contexts/HeatMapInitializer/useHeatMapInitializer.tsx +2 -2
- package/src/Contexts/MapBoxInstance/Provider.tsx +1 -1
- package/src/Contexts/MapBoxInstance/useMapBoxInstance.tsx +2 -2
- package/src/Contexts/MapSettings/Provider.tsx +1 -1
- package/src/Contexts/MapSettings/useMapSettings.tsx +2 -2
- /package/dist/{browser → types}/Components/AnimatedHeatMap.d.ts +0 -0
- /package/dist/{browser → types}/Components/AnimatedHeatMap.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/AnimatedHeatMapLoaded.d.ts +0 -0
- /package/dist/{browser → types}/Components/AnimatedHeatMapLoaded.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/FeaturesToLayersMap.d.ts +0 -0
- /package/dist/{browser → types}/Components/FeaturesToLayersMap.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/HeatMapSettings.d.ts +0 -0
- /package/dist/{browser → types}/Components/HeatMapSettings.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/LayerAnimator.d.ts +0 -0
- /package/dist/{browser → types}/Components/LayerAnimator.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/Legend.d.ts +0 -0
- /package/dist/{browser → types}/Components/Legend.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/Legends/ColorGradient.d.ts +0 -0
- /package/dist/{browser → types}/Components/Legends/ColorGradient.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/Legends/index.d.ts +0 -0
- /package/dist/{browser → types}/Components/Legends/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/MapBox.d.ts +0 -0
- /package/dist/{browser → types}/Components/MapBox.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/MapBoxHeat.d.ts +0 -0
- /package/dist/{browser → types}/Components/MapBoxHeat.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/MapBoxPoints.d.ts +0 -0
- /package/dist/{browser → types}/Components/MapBoxPoints.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/MapSettingsComponents/Setting.d.ts +0 -0
- /package/dist/{browser → types}/Components/MapSettingsComponents/Setting.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/MapSettingsComponents/SettingsBox.d.ts +0 -0
- /package/dist/{browser → types}/Components/MapSettingsComponents/SettingsBox.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/MapSettingsComponents/index.d.ts +0 -0
- /package/dist/{browser → types}/Components/MapSettingsComponents/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Components/index.d.ts +0 -0
- /package/dist/{browser → types}/Components/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/Context.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/Context.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/Provider.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/Provider.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/State.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/State.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/index.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/useHeatMapInitializer.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/HeatMapInitializer/useHeatMapInitializer.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/Context.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/Context.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/Provider.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/Provider.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/State.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/State.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/index.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/useMapBoxInstance.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapBoxInstance/useMapBoxInstance.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/Context.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/Context.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/Provider.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/Provider.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/State.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/State.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/index.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/useMapSettings.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/MapSettings/useMapSettings.d.ts.map +0 -0
- /package/dist/{browser → types}/Contexts/index.d.ts +0 -0
- /package/dist/{browser → types}/Contexts/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Builders/LocationHeatMapLayerBuilder.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Builders/LocationHeatMapLayerBuilder.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Builders/LocationHeatMapLayerBuilderAnimated.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Builders/LocationHeatMapLayerBuilderAnimated.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Builders/LocationPointsMapLayerBuilder.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Builders/LocationPointsMapLayerBuilder.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Builders/index.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Builders/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/CircleLayer.d.ts +0 -0
- /package/dist/{browser → types}/Layers/CircleLayer.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Configs/HeatMapFillLayerConfig.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Configs/HeatMapFillLayerConfig.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Configs/HeatMapLineLayerConfig.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Configs/HeatMapLineLayerConfig.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Configs/HeatMapSymbolLayerConfig.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Configs/HeatMapSymbolLayerConfig.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Configs/LocationPointLayerConfig.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Configs/LocationPointLayerConfig.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/Configs/index.d.ts +0 -0
- /package/dist/{browser → types}/Layers/Configs/index.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/FillLayer.d.ts +0 -0
- /package/dist/{browser → types}/Layers/FillLayer.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/LineLayer.d.ts +0 -0
- /package/dist/{browser → types}/Layers/LineLayer.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/MapLayer.d.ts +0 -0
- /package/dist/{browser → types}/Layers/MapLayer.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/SymbolLayer.d.ts +0 -0
- /package/dist/{browser → types}/Layers/SymbolLayer.d.ts.map +0 -0
- /package/dist/{browser → types}/Layers/index.d.ts +0 -0
- /package/dist/{browser → types}/Layers/index.d.ts.map +0 -0
- /package/dist/{browser → types}/MapBoxClasses/MapBase.d.ts +0 -0
- /package/dist/{browser → types}/MapBoxClasses/MapBase.d.ts.map +0 -0
- /package/dist/{browser → types}/MapBoxClasses/MapHeat.d.ts +0 -0
- /package/dist/{browser → types}/MapBoxClasses/MapHeat.d.ts.map +0 -0
- /package/dist/{browser → types}/MapBoxClasses/MapPoints.d.ts +0 -0
- /package/dist/{browser → types}/MapBoxClasses/MapPoints.d.ts.map +0 -0
- /package/dist/{browser → types}/MapBoxClasses/MapSettings.d.ts +0 -0
- /package/dist/{browser → types}/MapBoxClasses/MapSettings.d.ts.map +0 -0
- /package/dist/{browser → types}/MapBoxClasses/index.d.ts +0 -0
- /package/dist/{browser → types}/MapBoxClasses/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/index.d.ts +0 -0
- /package/dist/{browser → types}/hooks/index.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/useDynamicMapResize.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useDynamicMapResize.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/useDynamicPositioning.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useDynamicPositioning.d.ts.map +0 -0
- /package/dist/{browser → types}/hooks/useQuadKeyPayloadsToFeatures.d.ts +0 -0
- /package/dist/{browser → types}/hooks/useQuadKeyPayloadsToFeatures.d.ts.map +0 -0
- /package/dist/{browser → types}/index.d.ts +0 -0
- /package/dist/{browser → types}/index.d.ts.map +0 -0
- /package/dist/{browser → types}/lib/MapBoxBaseProps.d.ts +0 -0
- /package/dist/{browser → types}/lib/MapBoxBaseProps.d.ts.map +0 -0
- /package/dist/{browser → types}/lib/index.d.ts +0 -0
- /package/dist/{browser → types}/lib/index.d.ts.map +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-map",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-rc.2",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
30
|
"browser": {
|
|
31
|
-
"types": "./dist/
|
|
31
|
+
"types": "./dist/types/index.d.ts",
|
|
32
32
|
"default": "./dist/browser/index.mjs"
|
|
33
33
|
},
|
|
34
|
-
"types": "./dist/
|
|
34
|
+
"types": "./dist/types/index.d.ts",
|
|
35
35
|
"default": "./dist/browser/index.mjs"
|
|
36
36
|
},
|
|
37
37
|
"./package.json": "./package.json"
|
|
@@ -43,40 +43,42 @@
|
|
|
43
43
|
"lint-pkg": "npmPkgJsonLint ."
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@xylabs/assert": "^4.5.
|
|
47
|
-
"@xylabs/delay": "^4.5.
|
|
48
|
-
"@xylabs/exists": "^4.5.
|
|
49
|
-
"@xylabs/forget": "^4.5.
|
|
50
|
-
"@xylabs/react-app-settings": "^
|
|
51
|
-
"@xylabs/react-flexbox": "^
|
|
52
|
-
"@xylabs/react-shared": "^
|
|
53
|
-
"@xyo-network/react-archivist": "^
|
|
54
|
-
"@xyo-network/react-map-model": "^
|
|
46
|
+
"@xylabs/assert": "^4.5.10",
|
|
47
|
+
"@xylabs/delay": "^4.5.10",
|
|
48
|
+
"@xylabs/exists": "^4.5.10",
|
|
49
|
+
"@xylabs/forget": "^4.5.10",
|
|
50
|
+
"@xylabs/react-app-settings": "^6.0.0-rc.2",
|
|
51
|
+
"@xylabs/react-flexbox": "^6.0.0-rc.2",
|
|
52
|
+
"@xylabs/react-shared": "^6.0.0-rc.2",
|
|
53
|
+
"@xyo-network/react-archivist": "^5.0.0-rc.2",
|
|
54
|
+
"@xyo-network/react-map-model": "^5.0.0-rc.2",
|
|
55
55
|
"@xyo-network/sdk-geo": "^3.0.3",
|
|
56
56
|
"mapbox-gl": "^3.10.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@mui/icons-material": "^6.4.
|
|
60
|
-
"@mui/material": "^6.4.
|
|
61
|
-
"@mui/styles": "^6.4.
|
|
62
|
-
"@storybook/react": "^8.6.
|
|
59
|
+
"@mui/icons-material": "^6.4.7",
|
|
60
|
+
"@mui/material": "^6.4.7",
|
|
61
|
+
"@mui/styles": "^6.4.7",
|
|
62
|
+
"@storybook/react": "^8.6.4",
|
|
63
63
|
"@types/geojson": "7946.0.16",
|
|
64
|
-
"@
|
|
65
|
-
"@xylabs/
|
|
66
|
-
"react": "^
|
|
67
|
-
"react
|
|
68
|
-
"
|
|
64
|
+
"@types/react": "^19.0.10",
|
|
65
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.3",
|
|
66
|
+
"@xylabs/tsconfig-react": "^6.0.3",
|
|
67
|
+
"react": "^19",
|
|
68
|
+
"react-dom": "^19",
|
|
69
|
+
"storybook": "^8.6.4",
|
|
69
70
|
"typescript": "^5.8.2"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
73
|
"@mui/icons-material": "^6",
|
|
73
74
|
"@mui/material": "^6",
|
|
74
75
|
"@mui/styles": "^6",
|
|
75
|
-
"react": "^
|
|
76
|
-
"react-dom": "^
|
|
76
|
+
"react": "^19",
|
|
77
|
+
"react-dom": "^19"
|
|
77
78
|
},
|
|
78
79
|
"publishConfig": {
|
|
79
80
|
"access": "public"
|
|
80
81
|
},
|
|
81
|
-
"docs": "dist/docs.json"
|
|
82
|
+
"docs": "dist/docs.json",
|
|
83
|
+
"stableVersion": "4.4.11"
|
|
82
84
|
}
|
|
@@ -89,5 +89,5 @@ export const HeatMapInitializerProvider: React.FC<PropsWithChildren<MapInitializ
|
|
|
89
89
|
}
|
|
90
90
|
}, [mapHeat, map, mapSettings, fitToPadding, options, mapInitialized, features])
|
|
91
91
|
|
|
92
|
-
return <HeatMapInitializerContext
|
|
92
|
+
return <HeatMapInitializerContext value={value}>{children}</HeatMapInitializerContext>
|
|
93
93
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import {
|
|
2
|
+
import { use } from 'react'
|
|
3
3
|
|
|
4
4
|
import { HeatMapInitializerContext } from './Context.ts'
|
|
5
5
|
|
|
6
6
|
const useHeatMapInitializer = () => {
|
|
7
|
-
const context =
|
|
7
|
+
const context = use(HeatMapInitializerContext)
|
|
8
8
|
assertEx('heatMapInitialized' in context, () => 'useHeatMapInitializer must be used within a HeatMapInitializerContext')
|
|
9
9
|
|
|
10
10
|
return context
|
|
@@ -22,5 +22,5 @@ export const MapBoxInstanceProvider: React.FC<PropsWithChildren> = ({ children }
|
|
|
22
22
|
}
|
|
23
23
|
}, [map, mapInitialized, setMapInitialized])
|
|
24
24
|
|
|
25
|
-
return <MapBoxInstanceContext
|
|
25
|
+
return <MapBoxInstanceContext value={value}>{children}</MapBoxInstanceContext>
|
|
26
26
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import {
|
|
2
|
+
import { use } from 'react'
|
|
3
3
|
|
|
4
4
|
import { MapBoxInstanceContext } from './Context.ts'
|
|
5
5
|
|
|
6
6
|
const useMapBoxInstance = () => {
|
|
7
|
-
const context =
|
|
7
|
+
const context = use(MapBoxInstanceContext)
|
|
8
8
|
assertEx('map' in context, () => 'useMapBoxInstance must be used within a MapBoxInstanceContext')
|
|
9
9
|
|
|
10
10
|
return context
|
|
@@ -39,5 +39,5 @@ export const MapSettingsProvider: React.FC<PropsWithChildren<MapSettingsProvider
|
|
|
39
39
|
}
|
|
40
40
|
}, [debugLayerName, map, mapInitialized, mapSettings, requestLocation, zoom])
|
|
41
41
|
|
|
42
|
-
return <MapSettingsContext
|
|
42
|
+
return <MapSettingsContext value={value}>{children}</MapSettingsContext>
|
|
43
43
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { use } from 'react'
|
|
2
2
|
|
|
3
3
|
import { MapSettingsContext } from './Context.ts'
|
|
4
4
|
|
|
5
5
|
const useMapSettings = () => {
|
|
6
|
-
const context =
|
|
6
|
+
const context = use(MapSettingsContext)
|
|
7
7
|
|
|
8
8
|
return context
|
|
9
9
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{browser → types}/Layers/Builders/LocationHeatMapLayerBuilderAnimated.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|