@xyo-network/react-map 2.48.2 → 2.48.5
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/useFetchPayloads.js +2 -2
- package/dist/cjs/hooks/useFetchPayloads.js.map +1 -1
- package/dist/docs.json +246 -246
- package/dist/esm/hooks/useFetchPayloads.js +1 -1
- package/dist/esm/hooks/useFetchPayloads.js.map +1 -1
- package/package.json +9 -8
- package/src/Components/MapBox.stories.tsx +5 -5
- package/src/hooks/useFetchPayloads.tsx +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable deprecation/deprecation */
|
|
2
|
-
import { useAsyncEffect } from '@xylabs/react-
|
|
2
|
+
import { useAsyncEffect } from '@xylabs/react-async-effect';
|
|
3
3
|
import { ArchivistWrapper } from '@xyo-network/archivist';
|
|
4
4
|
import { useArchivist } from '@xyo-network/react-archivist';
|
|
5
5
|
import { useState } from 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchPayloads.js","sourceRoot":"","sources":["../../../src/hooks/useFetchPayloads.tsx"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useFetchPayloads.js","sourceRoot":"","sources":["../../../src/hooks/useFetchPayloads.tsx"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAE7E,wCAAwC;AACxC,MAAM,gBAAgB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC7C,MAAM,CAAC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AK,IAAI,IAAI,EAAE,IAAI,CAAC,IAAI,SAAS,CAAC,CAAA;iBAChG;aACF;SACF;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAClD,CAAA;IAED,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAA;AAC9D,CAAC,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -13,15 +13,16 @@
|
|
|
13
13
|
"@xylabs/assert": "^2.7.6",
|
|
14
14
|
"@xylabs/delay": "^2.7.6",
|
|
15
15
|
"@xylabs/forget": "^2.7.6",
|
|
16
|
-
"@xylabs/react-
|
|
17
|
-
"@xylabs/react-
|
|
16
|
+
"@xylabs/react-async-effect": "^2.17.1",
|
|
17
|
+
"@xylabs/react-flexbox": "^2.17.1",
|
|
18
|
+
"@xylabs/react-shared": "^2.17.1",
|
|
18
19
|
"@xyo-network/archivist": "^2.55.0",
|
|
19
20
|
"@xyo-network/module": "^2.55.0",
|
|
20
21
|
"@xyo-network/payload-model": "^2.55.0",
|
|
21
|
-
"@xyo-network/react-app-settings": "^2.48.
|
|
22
|
-
"@xyo-network/react-archivist": "^2.48.
|
|
23
|
-
"@xyo-network/react-network": "^2.48.
|
|
24
|
-
"@xyo-network/react-shared": "^2.48.
|
|
22
|
+
"@xyo-network/react-app-settings": "^2.48.5",
|
|
23
|
+
"@xyo-network/react-archivist": "^2.48.5",
|
|
24
|
+
"@xyo-network/react-network": "^2.48.5",
|
|
25
|
+
"@xyo-network/react-shared": "^2.48.5",
|
|
25
26
|
"@xyo-network/sdk-geo": "^2.8.0",
|
|
26
27
|
"geojson": "^0.5.0",
|
|
27
28
|
"lodash": "^4.17.21",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
},
|
|
39
40
|
"description": "Common React library for all XYO projects that use React",
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"@storybook/react": "^
|
|
42
|
+
"@storybook/react": "^7.0.2",
|
|
42
43
|
"@types/mapbox-gl": "^2.7.10",
|
|
43
44
|
"@xylabs/ts-scripts-yarn3": "^2.16.5",
|
|
44
45
|
"@xylabs/tsconfig-react": "^2.16.5",
|
|
@@ -87,5 +88,5 @@
|
|
|
87
88
|
},
|
|
88
89
|
"sideEffects": false,
|
|
89
90
|
"types": "dist/types/index.d.ts",
|
|
90
|
-
"version": "2.48.
|
|
91
|
+
"version": "2.48.5"
|
|
91
92
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button } from '@mui/material'
|
|
2
|
-
import {
|
|
2
|
+
import { Decorator, Meta, StoryFn } from '@storybook/react'
|
|
3
3
|
import { FlexGrowCol } from '@xylabs/react-flexbox'
|
|
4
4
|
import { useRef } from 'react'
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import { DefaultMapSettings } from '../Settings'
|
|
|
8
8
|
import { MapBox } from './MapBox'
|
|
9
9
|
import { MapSettings } from './MapSettingsComponents'
|
|
10
10
|
|
|
11
|
-
const WithMapboxProviders:
|
|
11
|
+
const WithMapboxProviders: Decorator = (Story, props) => {
|
|
12
12
|
const defaultSettings = DefaultMapSettings()
|
|
13
13
|
defaultSettings.enableControls.hidden = false
|
|
14
14
|
defaultSettings.scrollToZoom.hidden = false
|
|
@@ -22,7 +22,7 @@ const WithMapboxProviders: DecoratorFn = (Story, props) => {
|
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const ContainerResizeTemplate:
|
|
25
|
+
const ContainerResizeTemplate: StoryFn<typeof MapBox> = (args) => {
|
|
26
26
|
const containerRef = useRef<HTMLDivElement | null>()
|
|
27
27
|
const handleClick = () => {
|
|
28
28
|
if (containerRef.current) {
|
|
@@ -50,7 +50,7 @@ const ContainerResizeTemplate: ComponentStory<typeof MapBox> = (args) => {
|
|
|
50
50
|
)
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const WithMapSettingsDecorator:
|
|
53
|
+
const WithMapSettingsDecorator: Decorator = (Story, args) => {
|
|
54
54
|
return (
|
|
55
55
|
<>
|
|
56
56
|
<Story {...args} />
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
76
76
|
title: 'map/Mapbox',
|
|
77
77
|
} as Meta
|
|
78
78
|
|
|
79
|
-
const Template:
|
|
79
|
+
const Template: StoryFn<typeof MapBox> = (args) => {
|
|
80
80
|
return (
|
|
81
81
|
<div style={{ minHeight: 'calc(100vh - 2rem)', minWidth: '100%', position: 'relative', transition: 'min-width 300ms ease' }}>
|
|
82
82
|
<MapBox {...args} />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable deprecation/deprecation */
|
|
2
|
-
import { useAsyncEffect } from '@xylabs/react-
|
|
2
|
+
import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
3
3
|
import { ArchivistWrapper } from '@xyo-network/archivist'
|
|
4
4
|
import { ModuleError, WrapperError } from '@xyo-network/module'
|
|
5
5
|
import { useArchivist } from '@xyo-network/react-archivist'
|