@dxos/react-ui-geo 0.7.5-staging.e6154f3 → 0.8.1-main.013e445
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/types/src/components/Globe/Globe.d.ts +5 -5
- package/dist/types/src/components/Globe/Globe.stories.d.ts +10 -9
- package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
- package/dist/types/src/components/Map/Map.d.ts +3 -3
- package/dist/types/src/components/Map/Map.stories.d.ts +2 -1
- package/dist/types/src/components/Map/Map.stories.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Controls.d.ts +3 -2
- package/dist/types/src/components/Toolbar/Controls.d.ts.map +1 -1
- package/dist/types/src/hooks/context.d.ts +2 -2
- package/dist/types/src/hooks/context.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -22,16 +22,16 @@ type GlobeControlProps = {
|
|
|
22
22
|
position?: ControlPosition;
|
|
23
23
|
} & Pick<ControlProps, 'onAction'>;
|
|
24
24
|
export declare const Globe: {
|
|
25
|
-
Root: ({ classNames, children, ...props }: GlobeRootProps) =>
|
|
25
|
+
Root: ({ classNames, children, ...props }: GlobeRootProps) => React.JSX.Element;
|
|
26
26
|
Canvas: React.ForwardRefExoticComponent<GlobeCanvasProps & React.RefAttributes<GlobeController>>;
|
|
27
|
-
Zoom: ({ onAction, position, ...props }: GlobeControlProps) =>
|
|
28
|
-
Action: ({ onAction, position, ...props }: GlobeControlProps) =>
|
|
27
|
+
Zoom: ({ onAction, position, ...props }: GlobeControlProps) => React.JSX.Element;
|
|
28
|
+
Action: ({ onAction, position, ...props }: GlobeControlProps) => React.JSX.Element;
|
|
29
29
|
Debug: ({ position }: {
|
|
30
30
|
position?: ControlPosition;
|
|
31
|
-
}) =>
|
|
31
|
+
}) => React.JSX.Element;
|
|
32
32
|
Panel: ({ position, classNames, children, }: ThemedClassName<PropsWithChildren & {
|
|
33
33
|
position?: ControlPosition;
|
|
34
|
-
}>) =>
|
|
34
|
+
}>) => React.JSX.Element;
|
|
35
35
|
};
|
|
36
36
|
export type { GlobeRootProps, GlobeCanvasProps };
|
|
37
37
|
//# sourceMappingURL=Globe.d.ts.map
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type Meta } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
declare const meta: Meta;
|
|
4
5
|
export default meta;
|
|
5
|
-
export declare const Earth1: () =>
|
|
6
|
-
export declare const Earth2: () =>
|
|
7
|
-
export declare const Mercator: () =>
|
|
8
|
-
export declare const Globe1: () =>
|
|
9
|
-
export declare const Globe2: () =>
|
|
10
|
-
export declare const Globe3: () =>
|
|
11
|
-
export declare const Globe4: () =>
|
|
12
|
-
export declare const Globe5: () =>
|
|
13
|
-
export declare const Globe6: () =>
|
|
6
|
+
export declare const Earth1: () => React.JSX.Element;
|
|
7
|
+
export declare const Earth2: () => React.JSX.Element;
|
|
8
|
+
export declare const Mercator: () => React.JSX.Element;
|
|
9
|
+
export declare const Globe1: () => React.JSX.Element;
|
|
10
|
+
export declare const Globe2: () => React.JSX.Element;
|
|
11
|
+
export declare const Globe3: () => React.JSX.Element;
|
|
12
|
+
export declare const Globe4: () => React.JSX.Element;
|
|
13
|
+
export declare const Globe5: () => React.JSX.Element;
|
|
14
|
+
export declare const Globe6: () => React.JSX.Element;
|
|
14
15
|
//# sourceMappingURL=Globe.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globe.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Globe.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,KAAoC,MAAM,OAAO,CAAC;AAoNzD,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,MAAM,yBAYlB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAclB,CAAC;AAqBF,eAAO,MAAM,QAAQ,yBAYpB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC"}
|
|
@@ -14,7 +14,7 @@ type MapControlProps = {
|
|
|
14
14
|
position?: ControlPosition;
|
|
15
15
|
} & Pick<ControlProps, 'onAction'>;
|
|
16
16
|
export declare const Map: {
|
|
17
|
-
Root: ({ classNames, center, zoom, ...props }: MapRootProps) =>
|
|
17
|
+
Root: ({ classNames, center, zoom, ...props }: MapRootProps) => React.JSX.Element;
|
|
18
18
|
Canvas: React.ForwardRefExoticComponent<Omit<{
|
|
19
19
|
markers?: import("../..").MapMarker[];
|
|
20
20
|
selected?: string[];
|
|
@@ -27,8 +27,8 @@ export declare const Map: {
|
|
|
27
27
|
}, "className"> & {
|
|
28
28
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
29
29
|
} & React.RefAttributes<MapController>>;
|
|
30
|
-
Zoom: ({ onAction, position, ...props }: MapControlProps) =>
|
|
31
|
-
Action: ({ onAction, position, ...props }: MapControlProps) =>
|
|
30
|
+
Zoom: ({ onAction, position, ...props }: MapControlProps) => React.JSX.Element;
|
|
31
|
+
Action: ({ onAction, position, ...props }: MapControlProps) => React.JSX.Element;
|
|
32
32
|
};
|
|
33
33
|
export { type MapCanvasProps, type MapController };
|
|
34
34
|
//# sourceMappingURL=Map.d.ts.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
declare const Render: ({ markers }: {
|
|
4
5
|
markers: any;
|
|
5
|
-
}) =>
|
|
6
|
+
}) => React.JSX.Element;
|
|
6
7
|
declare const meta: Meta<typeof Render>;
|
|
7
8
|
export default meta;
|
|
8
9
|
type Story = StoryObj<typeof Render>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Map.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Map.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Map.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,QAAA,MAAM,MAAM;;uBAWX,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAI7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,WAAW,EAAE,KAoBzB,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type ControlPosition } from 'leaflet';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
4
|
export type ControlAction = 'toggle' | 'start' | 'zoom-in' | 'zoom-out';
|
|
4
5
|
export type ControlProps = ThemedClassName<{
|
|
5
6
|
onAction?: (action: ControlAction) => void;
|
|
6
7
|
}>;
|
|
7
8
|
export declare const controlPositions: Record<ControlPosition, string>;
|
|
8
|
-
export declare const ZoomControls: ({ classNames, onAction }: ControlProps) =>
|
|
9
|
-
export declare const ActionControls: ({ classNames, onAction }: ControlProps) =>
|
|
9
|
+
export declare const ZoomControls: ({ classNames, onAction }: ControlProps) => React.JSX.Element;
|
|
10
|
+
export declare const ActionControls: ({ classNames, onAction }: ControlProps) => React.JSX.Element;
|
|
10
11
|
//# sourceMappingURL=Controls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Controls.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Controls.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAc,KAAK,eAAe,EAAW,MAAM,gBAAgB,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAExE,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;IACzC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC5C,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAK5D,CAAC;AAEF,eAAO,MAAM,YAAY,6BAA8B,YAAY,sBAuBlE,CAAC;AAEF,eAAO,MAAM,cAAc,6BAA8B,YAAY,sBAuBpE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Dispatch, type PropsWithChildren, type SetStateAction } from 'react';
|
|
1
|
+
import React, { type Dispatch, type PropsWithChildren, type SetStateAction } from 'react';
|
|
2
2
|
import { type LatLng } from '../util';
|
|
3
3
|
export type Size = {
|
|
4
4
|
width: number;
|
|
@@ -21,6 +21,6 @@ export type GlobeContextType = {
|
|
|
21
21
|
setRotation: Dispatch<SetStateAction<Vector>>;
|
|
22
22
|
};
|
|
23
23
|
export type GlobeContextProviderProps = PropsWithChildren<Partial<Pick<GlobeContextType, 'size' | 'center' | 'scale' | 'translation' | 'rotation'>>>;
|
|
24
|
-
export declare const GlobeContextProvider: ({ children, size, center: _center, scale: _scale, translation: _translation, rotation: _rotation, }: GlobeContextProviderProps) =>
|
|
24
|
+
export declare const GlobeContextProvider: ({ children, size, center: _center, scale: _scale, translation: _translation, rotation: _rotation, }: GlobeContextProviderProps) => React.JSX.Element;
|
|
25
25
|
export declare const useGlobeContext: () => GlobeContextType;
|
|
26
26
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/hooks/context.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/hooks/context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,QAAQ,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAKrH,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAGtC,MAAM,MAAM,IAAI,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AACrD,MAAM,MAAM,KAAK,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7C,MAAM,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,KAAK,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;IAChD,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CAC/C,CAAC;AAIF,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CACvD,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,GAAG,UAAU,CAAC,CAAC,CAC1F,CAAC;AAEF,eAAO,MAAM,oBAAoB,wGAO9B,yBAAyB,sBAa3B,CAAC;AAEF,eAAO,MAAM,eAAe,wBAE3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-geo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1-main.013e445",
|
|
4
4
|
"description": "Geo components.",
|
|
5
5
|
"homepage": "https://github.com/dxos",
|
|
6
6
|
"bugs": "https://github.com/dxos/issues",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"topojson-client": "^3.1.0",
|
|
46
46
|
"topojson-simplify": "^3.0.3",
|
|
47
47
|
"versor": "^0.2.0",
|
|
48
|
-
"@dxos/async": "0.
|
|
49
|
-
"@dxos/debug": "0.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/util": "0.
|
|
48
|
+
"@dxos/async": "0.8.1-main.013e445",
|
|
49
|
+
"@dxos/debug": "0.8.1-main.013e445",
|
|
50
|
+
"@dxos/node-std": "0.8.1-main.013e445",
|
|
51
|
+
"@dxos/log": "0.8.1-main.013e445",
|
|
52
|
+
"@dxos/util": "0.8.1-main.013e445"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@react-three/drei": "^9.99.0",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"react": "~18.2.0",
|
|
70
70
|
"react-dom": "~18.2.0",
|
|
71
71
|
"three": "0.165.0",
|
|
72
|
-
"@dxos/react-ui": "0.
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
72
|
+
"@dxos/react-ui": "0.8.1-main.013e445",
|
|
73
|
+
"@dxos/react-ui-theme": "0.8.1-main.013e445",
|
|
74
|
+
"@dxos/storybook-utils": "0.8.1-main.013e445"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": "~18.2.0",
|
|
78
78
|
"react-dom": "~18.2.0",
|
|
79
|
-
"@dxos/react-ui": "0.
|
|
80
|
-
"@dxos/react-ui-theme": "0.
|
|
79
|
+
"@dxos/react-ui": "0.8.1-main.013e445",
|
|
80
|
+
"@dxos/react-ui-theme": "0.8.1-main.013e445"
|
|
81
81
|
},
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|