@xyo-network/react-map-model 4.4.5 → 4.4.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.
@@ -3,7 +3,6 @@ import react__default, { Dispatch, PropsWithChildren } from 'react';
3
3
  import * as _xyo_network_react_shared from '@xyo-network/react-shared';
4
4
  import { ContextExState } from '@xyo-network/react-shared';
5
5
  import { Enum, EnumValue } from '@xylabs/enum';
6
- import * as _xylabs_object from '@xylabs/object';
7
6
  import { Payload } from '@xyo-network/payload-model';
8
7
  import { Feature, Point, Polygon } from 'geojson';
9
8
 
@@ -78,59 +77,19 @@ type NetworkLocationAnswerSchema = 'network.xyo.location.range.answer';
78
77
  type NetworkLocationAnswerPayload = Payload<NetworkLocationAnswerBase<{
79
78
  features: Feature<Point>[];
80
79
  }>, NetworkLocationAnswerSchema>;
81
- declare const isNetworkLocationAnswer: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
82
- schema: "network.xyo.location.range.answer";
83
- result: {
84
- features: {
85
- type: "Feature";
86
- geometry: {
87
- type: "Point";
88
- coordinates: number[];
89
- bbox?: number[] | undefined;
90
- };
91
- id?: string | number | undefined | undefined;
92
- properties: {
93
- [x: string]: any;
94
- } | null;
95
- bbox?: number[] | undefined;
96
- }[];
97
- };
98
- }>;
80
+ declare const isNetworkLocationAnswer: (x?: unknown | null) => x is NetworkLocationAnswerPayload;
99
81
  declare const NetworkLocationHeatmapAnswerSchema = "network.xyo.location.heatmap.answer";
100
82
  type NetworkLocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
101
83
  type NetworkLocationHeatmapAnswerPayload = Payload<NetworkLocationAnswerBase<{
102
84
  features: Feature<Polygon>[];
103
85
  }>, NetworkLocationHeatmapAnswerSchema>;
104
- declare const isNetworkLocationHeatmapAnswer: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
105
- schema: "network.xyo.location.heatmap.answer";
106
- result: {
107
- features: {
108
- type: "Feature";
109
- geometry: {
110
- type: "Polygon";
111
- coordinates: number[][][];
112
- bbox?: number[] | undefined;
113
- };
114
- id?: string | number | undefined | undefined;
115
- properties: {
116
- [x: string]: any;
117
- } | null;
118
- bbox?: number[] | undefined;
119
- }[];
120
- };
121
- }>;
86
+ declare const isNetworkLocationHeatmapAnswer: (x?: unknown | null) => x is NetworkLocationHeatmapAnswerPayload;
122
87
  declare const NetworkLocationHeatmapQuadkeyAnswerSchema = "network.xyo.location.heatmap.quadkey.answer";
123
88
  type NetworkLocationHeatmapQuadkeyAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
124
89
  type NetworkLocationHeatmapQuadkeyAnswerPayload = Payload<NetworkLocationAnswerBase<{
125
90
  density: number;
126
91
  quadkey: string;
127
92
  }[]>, NetworkLocationHeatmapQuadkeyAnswerSchema>;
128
- declare const isNetworkLocationHeatmapQuadkeyAnswer: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
129
- schema: "network.xyo.location.heatmap.quadkey.answer";
130
- result: {
131
- density: number;
132
- quadkey: string;
133
- }[];
134
- }>;
93
+ declare const isNetworkLocationHeatmapQuadkeyAnswer: (x?: unknown | null) => x is NetworkLocationHeatmapQuadkeyAnswerPayload;
135
94
 
136
95
  export { type AnimatedHeatMapColorProps, AnimatedHeatMapSettings, type ColorGradientLegendProps, DefaultMapSettings, type HeatMapColorProps, type LegendProps, type MapSetting, type MapSettingFields, MapStyle, MapboxAccessTokenContext, type MapboxAccessTokenContextState, MapboxAccessTokenProvider, type MapboxAccessTokenProviderProps, type NetworkLocationAnswerBase, type NetworkLocationAnswerPayload, NetworkLocationAnswerSchema, type NetworkLocationHeatmapAnswerPayload, NetworkLocationHeatmapAnswerSchema, type NetworkLocationHeatmapQuadkeyAnswerPayload, NetworkLocationHeatmapQuadkeyAnswerSchema, isNetworkLocationAnswer, isNetworkLocationHeatmapAnswer, isNetworkLocationHeatmapQuadkeyAnswer, useFindHashes, useHeatMapColors, useMapboxAccessToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-map-model",
3
- "version": "4.4.5",
3
+ "version": "4.4.7",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -45,17 +45,17 @@
45
45
  "dependencies": {
46
46
  "@xylabs/enum": "^4.5.1",
47
47
  "@xylabs/hex": "^4.5.1",
48
- "@xyo-network/payload-model": "^3.9.2",
49
- "@xyo-network/react-network": "^4.4.5",
50
- "@xyo-network/react-shared": "^4.4.5"
48
+ "@xyo-network/payload-model": "^3.9.17",
49
+ "@xyo-network/react-network": "^4.4.7",
50
+ "@xyo-network/react-shared": "^4.4.7"
51
51
  },
52
52
  "devDependencies": {
53
- "@mui/icons-material": "^6.4.4",
54
- "@mui/material": "^6.4.4",
55
- "@mui/styles": "^6.4.4",
53
+ "@mui/icons-material": "^6.4.6",
54
+ "@mui/material": "^6.4.6",
55
+ "@mui/styles": "^6.4.6",
56
56
  "@types/geojson": "7946.0.16",
57
- "@xylabs/ts-scripts-yarn3": "^5.0.24",
58
- "@xylabs/tsconfig-react": "^5.0.24",
57
+ "@xylabs/ts-scripts-yarn3": "^5.0.25",
58
+ "@xylabs/tsconfig-react": "^5.0.25",
59
59
  "react": "^18.3.1",
60
60
  "react-dom": "^18.3.1",
61
61
  "typescript": "^5.7.3"