@xyo-network/react-map 2.61.0 → 2.63.1
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/cjs/hooks/useQuadKeyPayloadsToFeatures.js +3 -2
- package/dist/cjs/hooks/useQuadKeyPayloadsToFeatures.js.map +1 -1
- package/dist/docs.json +104385 -0
- package/dist/esm/hooks/useQuadKeyPayloadsToFeatures.js +1 -1
- package/dist/esm/hooks/useQuadKeyPayloadsToFeatures.js.map +1 -1
- package/dist/types/hooks/useQuadKeyPayloadsToFeatures.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/hooks/useQuadKeyPayloadsToFeatures.tsx +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { compact } from '@xylabs/lodash';
|
|
2
1
|
import { GeoJson } from '@xyo-network/sdk-geo';
|
|
2
|
+
import compact from 'lodash/compact';
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
4
|
const quadKeyToFeature = ({ density, quadkey }) => {
|
|
5
5
|
const polygonFeature = new GeoJson(quadkey).polygonFeature();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQuadKeyPayloadsToFeatures.js","sourceRoot":"","sources":["../../../src/hooks/useQuadKeyPayloadsToFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useQuadKeyPayloadsToFeatures.js","sourceRoot":"","sources":["../../../src/hooks/useQuadKeyPayloadsToFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAE9C,OAAO,OAAO,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAI3C,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,EAAwC,EAAE,EAAE;IACtF,MAAM,cAAc,GAAG,IAAI,OAA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,0CAA0C,CAAC,CAAC,CAAA;aAChE;SACF;QAED,iDAAiD;QACjD,IAAI,QAAQ,IAAK,QAAuD,CAAC,MAAM,EAAE;YAC/E,MAAM,aAAa,GAAG,QAAsD,CAAA;YAC5E,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;YAEjE,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAA;SAC5C;IACH,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEd,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAA;AACjD,CAAC,CAAA;AAED,OAAO,EAAE,4BAA4B,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQuadKeyPayloadsToFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useQuadKeyPayloadsToFeatures.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useQuadKeyPayloadsToFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useQuadKeyPayloadsToFeatures.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,EAAE,0CAA0C,EAAE,MAAM,UAAU,CAAA;AAkBrE,QAAA,MAAM,4BAA4B,cAAe,0CAA0C,EAAE,GAAG,0CAA0C;;;;CA4BzI,CAAA;AAED,OAAO,EAAE,4BAA4B,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/assert": "^2.
|
|
14
|
-
"@xylabs/delay": "^2.
|
|
15
|
-
"@xylabs/forget": "^2.
|
|
16
|
-
"@xylabs/
|
|
17
|
-
"@xylabs/react-
|
|
18
|
-
"@
|
|
19
|
-
"@xyo-network/
|
|
20
|
-
"@xyo-network/react-
|
|
21
|
-
"@xyo-network/react-
|
|
22
|
-
"@xyo-network/react-
|
|
23
|
-
"@xyo-network/react-shared": "~2.61.0",
|
|
13
|
+
"@xylabs/assert": "^2.11.7",
|
|
14
|
+
"@xylabs/delay": "^2.11.7",
|
|
15
|
+
"@xylabs/forget": "^2.11.7",
|
|
16
|
+
"@xylabs/react-flexbox": "~2.19.1",
|
|
17
|
+
"@xylabs/react-shared": "~2.19.1",
|
|
18
|
+
"@xyo-network/payload-model": "^2.74.3",
|
|
19
|
+
"@xyo-network/react-app-settings": "~2.63.1",
|
|
20
|
+
"@xyo-network/react-archivist": "~2.63.1",
|
|
21
|
+
"@xyo-network/react-network": "~2.63.1",
|
|
22
|
+
"@xyo-network/react-shared": "~2.63.1",
|
|
24
23
|
"@xyo-network/sdk-geo": "^2.9.2",
|
|
25
24
|
"geojson": "^0.5.0",
|
|
25
|
+
"lodash": "^4.17.21",
|
|
26
26
|
"mapbox-gl": "^2.15.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"description": "Common React library for all XYO projects that use React",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@storybook/react": "^7.4.
|
|
40
|
-
"@types/mapbox-gl": "^2.7.
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^2.19.
|
|
42
|
-
"@xylabs/tsconfig-react": "^2.19.
|
|
39
|
+
"@storybook/react": "^7.4.3",
|
|
40
|
+
"@types/mapbox-gl": "^2.7.14",
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.12",
|
|
42
|
+
"@xylabs/tsconfig-react": "^2.19.12",
|
|
43
43
|
"typescript": "^5.2.2"
|
|
44
44
|
},
|
|
45
45
|
"browser": "dist/esm/index.js",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
},
|
|
85
85
|
"sideEffects": false,
|
|
86
86
|
"types": "dist/types/index.d.ts",
|
|
87
|
-
"version": "2.
|
|
87
|
+
"version": "2.63.1"
|
|
88
88
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { compact } from '@xylabs/lodash'
|
|
2
1
|
import { GeoJson } from '@xyo-network/sdk-geo'
|
|
3
2
|
import { Feature, Geometry } from 'geojson'
|
|
3
|
+
import compact from 'lodash/compact'
|
|
4
4
|
import { useEffect, useState } from 'react'
|
|
5
5
|
|
|
6
6
|
import { NetworkLocationHeatmapQuadkeyAnswerPayload } from '../types'
|