@carto/ps-react-maps 0.0.1-alpha.10 → 0.0.1-alpha.12

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.
@@ -1,11 +1,11 @@
1
1
  /// <reference types="google.maps" />
2
- import { type MapViewState } from '@deck.gl/core/typed';
3
- import { type GoogleMapsOverlay, type GoogleMapsOverlayProps } from '@deck.gl/google-maps/typed';
4
- import { type DeckGLProps, type DeckGLRef } from '@deck.gl/react/typed';
2
+ import type { PickingInfo, MapViewState } from '@deck.gl/core/typed';
3
+ import type { GoogleMapsOverlay, GoogleMapsOverlayProps } from '@deck.gl/google-maps/typed';
4
+ import type { DeckGLProps, DeckGLRef } from '@deck.gl/react/typed';
5
5
  import type { StyleSpecification } from 'maplibre-gl';
6
6
  import type { Properties } from 'csstype';
7
- import type { MutableRefObject, ReactNode, RefObject } from 'react';
8
- import { type MapRef } from 'react-map-gl';
7
+ import type { MutableRefObject, ReactNode } from 'react';
8
+ import type { MapRef } from 'react-map-gl';
9
9
  import { CartoBasemapsNames, GMapsBasemap } from './map-provider.const';
10
10
  export type MapProviderProps = {
11
11
  children: ReactNode;
@@ -31,9 +31,10 @@ export type MapContextInterface = {
31
31
  export type Basemap = (typeof GMapsBasemap)[keyof typeof GMapsBasemap] | (typeof CartoBasemapsNames)[keyof typeof CartoBasemapsNames] | string | StyleSpecification;
32
32
  export type CommonProps = {
33
33
  id: string;
34
- basemap?: Basemap;
35
- instanceRef?: RefObject<InstanceMapRef>;
34
+ basemap: Basemap;
35
+ instanceRef?: MutableRefObject<InstanceMapRef>;
36
36
  overlayRef?: MutableRefObject<OverlayMapRef>;
37
+ viewState: DeckGLProps['viewState'];
37
38
  } & DeckGLProps;
38
39
  export type MapsProps = DeckGLMapsProps & GoogleMapsProps;
39
40
  export type InstanceMapRef = GoogleMapsOverlay | DeckGLRef | null;
@@ -49,3 +50,9 @@ export type GoogleMapsProps = {
49
50
  version?: string;
50
51
  width?: string | undefined;
51
52
  } & CommonProps & GoogleMapsOverlayProps;
53
+ export type Tooltip = {
54
+ text?: string | undefined;
55
+ html?: string | undefined;
56
+ className?: string | undefined;
57
+ style?: Partial<CSSStyleDeclaration> | undefined;
58
+ } & PickingInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/ps-react-maps",
3
- "version": "0.0.1-alpha.10",
3
+ "version": "0.0.1-alpha.12",
4
4
  "description": "CARTO's Professional Service React Maps library",
5
5
  "files": [
6
6
  "dist"