@remotion/maptiler 4.0.526 → 4.0.528

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,6 +1,6 @@
1
1
  import { type HeatmapLayerOptions } from '@maptiler/sdk';
2
- import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
3
- export type MapHeatmapProps = InteractiveBaseProps & Omit<HeatmapLayerOptions, 'layerId' | 'sourceId'> & {
2
+ import { type InteractiveBaseProps, type InteractivePremountProps, type SequenceControls } from 'remotion';
3
+ export type MapHeatmapProps = InteractiveBaseProps & Pick<InteractivePremountProps, 'premountFor' | 'postmountFor'> & Omit<HeatmapLayerOptions, 'layerId' | 'sourceId'> & {
4
4
  readonly controls?: SequenceControls;
5
5
  readonly layerId: string;
6
6
  readonly sourceId?: string;
@@ -1,6 +1,7 @@
1
1
  import type { LayerSpecification } from '@maptiler/sdk';
2
- export type MapLayerProps = {
2
+ import { type InteractiveBaseProps, type InteractivePremountProps } from 'remotion';
3
+ export type MapLayerProps = InteractiveBaseProps & Pick<InteractivePremountProps, 'premountFor' | 'postmountFor'> & {
3
4
  readonly beforeId?: string;
4
5
  readonly layer: LayerSpecification;
5
6
  };
6
- export declare const MapLayer: ({ beforeId, layer }: MapLayerProps) => null;
7
+ export declare const MapLayer: ({ from, durationInFrames, trimBefore, playbackRate, freeze, hidden, name, showInTimeline, premountFor, postmountFor, ...props }: MapLayerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type InteractiveBaseProps, type InteractiveTransformProps, type SequenceControls } from 'remotion';
2
+ import { type InteractiveBaseProps, type InteractivePremountProps, type InteractiveTransformProps, type SequenceControls } from 'remotion';
3
3
  export type MapOverlayAnchor = 'bottom' | 'bottom-left' | 'bottom-right' | 'center' | 'left' | 'right' | 'top' | 'top-left' | 'top-right';
4
- export type MapOverlayProps = InteractiveBaseProps & InteractiveTransformProps & {
4
+ export type MapOverlayProps = InteractiveBaseProps & InteractivePremountProps & InteractiveTransformProps & {
5
5
  readonly anchor?: MapOverlayAnchor;
6
6
  readonly children?: ReactNode;
7
7
  readonly controls?: SequenceControls;
@@ -13,7 +13,7 @@ export type MapOverlayProps = InteractiveBaseProps & InteractiveTransformProps &
13
13
  readonly rotation?: number;
14
14
  readonly rotationAlignment?: 'map' | 'viewport';
15
15
  };
16
- export declare const MapOverlay: import("react").ComponentType<InteractiveBaseProps & InteractiveTransformProps & {
16
+ export declare const MapOverlay: import("react").ComponentType<InteractiveBaseProps & InteractivePremountProps & InteractiveTransformProps & {
17
17
  readonly anchor?: MapOverlayAnchor | undefined;
18
18
  readonly children?: ReactNode;
19
19
  readonly controls?: SequenceControls | undefined;
@@ -25,7 +25,7 @@ export declare const MapOverlay: import("react").ComponentType<InteractiveBasePr
25
25
  readonly rotation?: number | undefined;
26
26
  readonly rotationAlignment?: "map" | "viewport" | undefined;
27
27
  } & import("react").RefAttributes<HTMLDivElement>>;
28
- export declare const MapMarker: import("react").ComponentType<InteractiveBaseProps & InteractiveTransformProps & {
28
+ export declare const MapMarker: import("react").ComponentType<InteractiveBaseProps & InteractivePremountProps & InteractiveTransformProps & {
29
29
  readonly anchor?: MapOverlayAnchor | undefined;
30
30
  readonly children?: ReactNode;
31
31
  readonly controls?: SequenceControls | undefined;
@@ -1,6 +1,6 @@
1
1
  import { type PointLayerOptions } from '@maptiler/sdk';
2
- import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
3
- export type MapPointProps = InteractiveBaseProps & Omit<PointLayerOptions, 'layerId' | 'sourceId'> & {
2
+ import { type InteractiveBaseProps, type InteractivePremountProps, type SequenceControls } from 'remotion';
3
+ export type MapPointProps = InteractiveBaseProps & Pick<InteractivePremountProps, 'premountFor' | 'postmountFor'> & Omit<PointLayerOptions, 'layerId' | 'sourceId'> & {
4
4
  readonly controls?: SequenceControls;
5
5
  readonly layerId: string;
6
6
  readonly sourceId?: string;
@@ -1,5 +1,5 @@
1
1
  import { type PolygonLayerOptions } from '@maptiler/sdk';
2
- import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
2
+ import { type InteractiveBaseProps, type InteractivePremountProps, type SequenceControls } from 'remotion';
3
3
  export type MapPolygonFeature = {
4
4
  readonly geometry: {
5
5
  readonly coordinates: number[][][];
@@ -12,7 +12,7 @@ export type MapPolygonFeature = {
12
12
  readonly type: 'Feature';
13
13
  };
14
14
  export type MapPolygonData = MapPolygonFeature | PolygonLayerOptions['data'];
15
- export type MapPolygonProps = InteractiveBaseProps & Omit<PolygonLayerOptions, 'data' | 'fillOpacity' | 'layerId' | 'outlinePosition' | 'sourceId'> & {
15
+ export type MapPolygonProps = InteractiveBaseProps & Pick<InteractivePremountProps, 'premountFor' | 'postmountFor'> & Omit<PolygonLayerOptions, 'data' | 'fillOpacity' | 'layerId' | 'outlinePosition' | 'sourceId'> & {
16
16
  readonly controls?: SequenceControls;
17
17
  readonly data: MapPolygonData;
18
18
  readonly fillOpacity?: number | PolygonLayerOptions['fillOpacity'];
@@ -1,5 +1,5 @@
1
1
  import { type PolylineLayerOptions } from '@maptiler/sdk';
2
- import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
2
+ import { type InteractiveBaseProps, type InteractivePremountProps, type SequenceControls } from 'remotion';
3
3
  export type MapPolylineFeature = {
4
4
  readonly geometry: {
5
5
  readonly coordinates: number[][];
@@ -12,7 +12,7 @@ export type MapPolylineFeature = {
12
12
  readonly type: 'Feature';
13
13
  };
14
14
  export type MapPolylineData = MapPolylineFeature | PolylineLayerOptions['data'];
15
- export type MapPolylineProps = InteractiveBaseProps & Omit<PolylineLayerOptions, 'data' | 'layerId' | 'sourceId'> & {
15
+ export type MapPolylineProps = InteractiveBaseProps & Pick<InteractivePremountProps, 'premountFor' | 'postmountFor'> & Omit<PolylineLayerOptions, 'data' | 'layerId' | 'sourceId'> & {
16
16
  readonly controls?: SequenceControls;
17
17
  readonly data: MapPolylineData;
18
18
  readonly layerId: string;
@@ -1,4 +1,4 @@
1
- import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
1
+ import { type InteractiveBaseProps, type InteractivePremountProps, type SequenceControls } from 'remotion';
2
2
  export type MapRegionFeature = {
3
3
  type: 'Feature';
4
4
  properties: {
@@ -10,7 +10,7 @@ export type MapRegionFeature = {
10
10
  coordinates: number[][][];
11
11
  };
12
12
  };
13
- export declare const MapRegion: import("react").ComponentType<InteractiveBaseProps & {
13
+ export declare const MapRegion: import("react").ComponentType<InteractiveBaseProps & Pick<InteractivePremountProps, "postmountFor" | "premountFor"> & {
14
14
  readonly controls?: SequenceControls | undefined;
15
15
  readonly feature: MapRegionFeature;
16
16
  readonly fill?: number | undefined;
@@ -1,4 +1,4 @@
1
- import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
1
+ import { type InteractiveBaseProps, type InteractivePremountProps, type SequenceControls } from 'remotion';
2
2
  export type MapRouteFeature = {
3
3
  type: 'Feature';
4
4
  properties: {
@@ -10,7 +10,7 @@ export type MapRouteFeature = {
10
10
  coordinates: number[][];
11
11
  };
12
12
  };
13
- export declare const MapRoute: import("react").ComponentType<InteractiveBaseProps & {
13
+ export declare const MapRoute: import("react").ComponentType<InteractiveBaseProps & Pick<InteractivePremountProps, "postmountFor" | "premountFor"> & {
14
14
  readonly controls?: SequenceControls | undefined;
15
15
  readonly feature: MapRouteFeature;
16
16
  readonly glow?: number | undefined;
@@ -1,8 +1,9 @@
1
1
  import type { SourceSpecification } from '@maptiler/sdk';
2
2
  import { type ReactNode } from 'react';
3
- export type MapSourceProps = {
3
+ import { type InteractiveBaseProps, type InteractivePremountProps } from 'remotion';
4
+ export type MapSourceProps = InteractiveBaseProps & Pick<InteractivePremountProps, 'premountFor' | 'postmountFor'> & {
4
5
  readonly children?: ReactNode;
5
6
  readonly id: string;
6
7
  readonly source: SourceSpecification;
7
8
  };
8
- export declare const MapSource: ({ children, id, source }: MapSourceProps) => ReactNode;
9
+ export declare const MapSource: ({ from, durationInFrames, trimBefore, playbackRate, freeze, hidden, name, showInTimeline, premountFor, postmountFor, ...props }: MapSourceProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { Map as MapTilerMap, type MapOptions } from '@maptiler/sdk';
2
- import '@maptiler/sdk/style.css';
3
2
  import type { ComponentType, ReactNode } from 'react';
4
- import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
3
+ import '@maptiler/sdk/style.css';
4
+ import { type InteractiveBaseProps, type InteractivePremountProps, type SequenceControls } from 'remotion';
5
5
  export type MapViewportMapOptions = Omit<MapOptions, 'apiKey' | 'bearing' | 'center' | 'container' | 'fadeDuration' | 'interactive' | 'language' | 'padding' | 'pitch' | 'projection' | 'style' | 'terrain' | 'terrainExaggeration' | 'zoom'>;
6
6
  export type MapAdministrativeBorders = 'all' | 'country-only' | 'none';
7
- export type MapViewportProps = InteractiveBaseProps & {
7
+ export type MapViewportProps = InteractiveBaseProps & InteractivePremountProps & {
8
8
  readonly apiKey: string | null;
9
9
  readonly backgroundColor?: string;
10
10
  readonly bearing?: number;