@yandex/ymaps3-types
Advanced tools
Comparing version 0.0.7 to 0.0.8
export class Config { | ||
readonly description: string; | ||
setExperiments(experiments: Record<string, boolean>): void; | ||
} | ||
export type ConfigMeta = { | ||
hosts: {}; | ||
}; | ||
export type ConfigMetaMetrics = {}; | ||
export function getDefaultConfig(): Config; |
@@ -6,3 +6,3 @@ export { YMap, YMapProps, YMapCenterLocation, YMapZoomLocation, YMapBoundsLocation, YMapCenterZoomLocation, YMapLocationRequest } from "./YMap"; | ||
export { YMapDefaultSchemeLayer, YMapDefaultSchemeLayerProps } from "./YMapDefaultSchemeLayer"; | ||
export { YMapDefaultSatelliteLayer, YMapDefaultSatelliteLayerProps } from "./YMapDefaultSatelliteLayer"; | ||
export * from "./YMapDefaultSatelliteLayer"; | ||
export * from "./YMapFeature"; | ||
@@ -13,2 +13,3 @@ export { YMapFeatureDataSource, YMapFeatureDataSourceProps } from "./YMapFeatureDataSource"; | ||
export * from "./YMapHotspot"; | ||
export * from "./wrappers"; | ||
export { YMapMarker, YMapMarkerProps, YMapMarkerEventHandler } from "./YMapMarker"; | ||
@@ -25,5 +26,7 @@ export { YMapTileDataSource, YMapTileDataSourceProps } from "./YMapTileDataSource"; | ||
export { useDomContext } from "./DomContext"; | ||
export { Config } from "./config"; | ||
export { Config, getDefaultConfig } from "./config"; | ||
export { fetchConfig, FetchConfigOptions } from "./fetchConfig"; | ||
export * as projections from "./utils/projections"; | ||
/** Toggle this to enable/disable strict mode. */ | ||
export declare let strictMode: boolean; | ||
export type { LngLat, ReadonlyLngLat, LngLatBounds, BehaviorType, MapMode, Margin, ZoomRange, ZoomStrategy, ZoomRounding, VectorCustomization, RasterTileDataSourceDescription, VectorTileDataSourceDescription, RasterLayerOptions, EasingFunctionDescription, EasingPresetName, EasingBezierPreset, EasingFunction, DrawingStyle, DrawingStyleIcon, VectorTileSize, VectorObjectsCollisionPriority, VectorDataSourcePriority } from "../common/types"; |
@@ -47,4 +47,6 @@ import type { GenericFeature, LineStringGeometry, LngLat, LngLatBounds } from "../../common/types"; | ||
jams?: boolean; | ||
/** Traffic jams requesting flag. If specified, jams will be returned in properties. Default is `false`. */ | ||
/** If specified, bounding box of the route will be returned in properties. Default is `false`. */ | ||
bounds?: boolean; | ||
/** Avoid roads with tolls. Default is `false`. */ | ||
avoidTolls?: boolean; | ||
} | ||
@@ -51,0 +53,0 @@ export interface BaseRouteResponse { |
import type { LngLat, LngLatBounds } from "../common/types"; | ||
import { Config } from "./config"; | ||
type GeoSuggestType = 'all' | 'toponyms' | 'addresses' | 'organizations'; | ||
type DeprecatedGeoSuggestType = 'all' | 'toponyms' | 'addresses' | 'organizations'; | ||
type GeoSuggestType = 'biz' | 'geo' | 'street' | 'metro' | 'district' | 'locality' | 'area' | 'province' | 'country' | 'house'; | ||
export type SuggestOptions = { | ||
@@ -9,9 +10,12 @@ text: string; | ||
bounds?: LngLatBounds; | ||
countries?: string; | ||
type?: GeoSuggestType; | ||
limit?: number; | ||
localOnly?: number; | ||
highlight?: boolean; | ||
types?: GeoSuggestType[]; | ||
/** @deprecated */ | ||
countries?: string; | ||
/** @deprecated use types instead */ | ||
type?: DeprecatedGeoSuggestType; | ||
}; | ||
type ObjectType = 'unknown' | 'toponym' | 'business' | 'transit'; | ||
type DeprecatedObjectType = 'unknown' | 'toponym' | 'business' | 'transit'; | ||
/** Positions of chars to highlight between */ | ||
@@ -26,5 +30,7 @@ type Highlight = [ | ||
}; | ||
type Distance = { | ||
text: string; | ||
value: number; | ||
}; | ||
export type SuggestResponseItem = { | ||
/** Type of suggested object */ | ||
type?: ObjectType; | ||
/** Human-readable object title with matching highlighting */ | ||
@@ -34,4 +40,12 @@ title: TextWithHighlight; | ||
subtitle?: TextWithHighlight; | ||
/** Object value. Useful for next substitution in ymaps3.search function */ | ||
/** Distance to the object in meters */ | ||
distance?: Distance; | ||
/** Additional object information that can be used in a Geocoder HTTP API request. */ | ||
uri?: string; | ||
/** Object tags. Possible values: business, street, metro, district, locality, area, province, country, hydro, railway, station, route, vegetation, airport, other, house */ | ||
tags?: string[]; | ||
/** @deprecated Use uri instead */ | ||
value: string; | ||
/** @deprecated Use tags instead */ | ||
type?: DeprecatedObjectType; | ||
}; | ||
@@ -38,0 +52,0 @@ export type SuggestResponse = SuggestResponseItem[]; |
@@ -1,2 +0,7 @@ | ||
import type { ConfigMetaMetrics } from "../config"; | ||
/** @internal */ | ||
export type MetricsConfig = { | ||
allowSending: boolean; | ||
counterId: string; | ||
pageUrl: string; | ||
}; | ||
/** | ||
@@ -17,6 +22,6 @@ * @ignore | ||
}; | ||
export declare function createMetricsTransport<T extends Record<string, unknown>>(configMetaMetrics: ConfigMetaMetrics, options?: CreateTransportOptions): MetricsTransport<T>; | ||
export declare function createMetricsTransport<T extends Record<string, unknown>>(config: MetricsConfig, options?: CreateTransportOptions): MetricsTransport<T>; | ||
export declare const SEND_BOUNDARY: number; | ||
export declare function initMetrics(config: ConfigMetaMetrics): void; | ||
export declare function initMetrics(config: MetricsConfig): void; | ||
export declare function sendMetrics(data: Metrics, options?: TransportOptions): void; | ||
export {}; |
@@ -102,5 +102,2 @@ import type { BehaviorType, LngLat, MapMode, Margin, PixelCoordinates, Projection, ReadonlyLngLat, LngLatBounds, ZoomRange, ZoomRounding, WorldOptions, ZoomStrategy, EasingFunctionDescription } from "../../common/types"; | ||
}; | ||
export interface Experiments { | ||
ymaps3VectorGraphics?: boolean; | ||
} | ||
declare const defaultProps: Readonly<{ | ||
@@ -126,3 +123,3 @@ className: ""; | ||
restrictMapArea: false; | ||
readonly config: Config | undefined; | ||
readonly config: Config; | ||
projection: Projection; | ||
@@ -172,3 +169,3 @@ }>; | ||
restrictMapArea: false; | ||
readonly config: Config | undefined; | ||
readonly config: Config; | ||
projection: Projection; | ||
@@ -175,0 +172,0 @@ }>; |
@@ -5,2 +5,3 @@ import { YMapComplexEntity } from "../YMapEnities"; | ||
} | ||
export declare const COVERAGE_LAYERS_TO_SOURCES: Record<string, string>; | ||
/** | ||
@@ -7,0 +8,0 @@ * The component of loading data on copyrights on the map and the zoom range for |
@@ -52,3 +52,3 @@ import type { RasterTileDataSourceDescription, ZoomRange } from "../../common/types"; | ||
declare class YMapTileDataSource extends YMapEntity<YMapTileDataSourceProps> { | ||
private _id?; | ||
private _id; | ||
protected _onAttach(): void; | ||
@@ -55,0 +55,0 @@ protected _onDetach(): void; |
@@ -23,3 +23,3 @@ import "./modules/types"; | ||
const __PACKAGES__: string[]; | ||
const __VENDOR__: 'yandex' | 'mappable'; | ||
const __VENDOR__: 'yandex' | 'mappable-world'; | ||
const __NAMESPACE__: 'ymaps3' | 'mappable'; | ||
@@ -26,0 +26,0 @@ const __LOGO_WIDHT__: `${number}px`; |
export * from "./imperative"; | ||
/** Toggle this to enable/disable strict mode. */ | ||
export declare let strictMode: boolean; | ||
export declare const __DTS_HIDDEN_BEGIN__: unknown; |
{ | ||
"name": "@yandex/ymaps3-types", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Types for ymaps3 maps library", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -1,1 +0,1 @@ | ||
export declare const THROTTLE_DEFAULT_TIMEOUT_MS = 100; | ||
export declare const THROTTLE_DEFAULT_TIMEOUT_MS = 200; |
import type { YMapEntity } from "../../.."; | ||
import type { LngLat } from "../../../common/types"; | ||
import { reactify } from "../../../reactify"; | ||
import type { ClustererObject, Feature, IClusterMethod } from "./interface"; | ||
@@ -24,3 +23,3 @@ /** | ||
declare const defaultProps: Readonly<{ | ||
tickTimeout: 100; | ||
tickTimeout: 200; | ||
}>; | ||
@@ -53,6 +52,6 @@ /** | ||
static defaultProps: Readonly<{ | ||
tickTimeout: 100; | ||
tickTimeout: 200; | ||
}>; | ||
/** @internal */ | ||
static [reactify.overrideKey]: import("../../../reactify/reactify").CustomReactify<YMapClusterer, import("react").ForwardRefExoticComponent<YMapClustererProps & { | ||
static [ymaps3.overrideKeyReactify]: import("../../../reactify/reactify").CustomReactify<YMapClusterer, import("react").ForwardRefExoticComponent<YMapClustererProps & { | ||
marker: (feature: Feature) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
@@ -65,3 +64,3 @@ cluster: (coordinates: LngLat, features: Feature[]) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
/** All created entities with cluster id*/ | ||
private _entitiesData; | ||
private _entitiesCache; | ||
/** Viewport entities with cluster id */ | ||
@@ -68,0 +67,0 @@ private _visibleEntities; |
import type { LngLat } from "../../../common/types"; | ||
import type { YMapMarkerProps } from "../../../imperative/YMapMarker"; | ||
import { reactify } from "../../../reactify"; | ||
type DefaultMarkerCustomProps = { | ||
@@ -48,3 +47,3 @@ /** Marker title */ | ||
/** @internal */ | ||
static [reactify.overrideKey]: import("../../../reactify/reactify").CustomReactify<YMapDefaultMarker, import("react").ForwardRefExoticComponent<{ | ||
static [ymaps3.overrideKeyReactify]: import("../../../reactify/reactify").CustomReactify<YMapDefaultMarker, import("react").ForwardRefExoticComponent<{ | ||
coordinates: LngLat; | ||
@@ -51,0 +50,0 @@ source?: string | undefined; |
import type { Reactify, ReactifyEntity, ReactifiedEntity, ReactifyModule, ReactifiedModule } from "./reactify"; | ||
import { overrideKey } from "./reactify"; | ||
import { overrideKeyReactify } from "../imperative/wrappers"; | ||
type TReact = typeof import("react"); | ||
@@ -7,5 +7,5 @@ type TReactDOM = typeof import("react-dom"); | ||
export type GenericReactify = { | ||
readonly overrideKey: typeof overrideKey; | ||
readonly overrideKey: typeof overrideKeyReactify; | ||
bindTo(React: TReact, ReactDOM: TReactDOM): Reactify; | ||
}; | ||
export declare const reactify: Readonly<GenericReactify>; |
import type TReact from "react"; | ||
import type TReactDOM from "react-dom"; | ||
import { GenericEntity, Context, EntityConstructor, EntityProps } from "../imperative/Entities"; | ||
import { overrideKeyReactify } from "../imperative/wrappers"; | ||
type RefInstance<TEntity extends GenericEntity<unknown>> = React.MutableRefObject<TEntity | undefined>; | ||
@@ -18,3 +19,2 @@ interface ReactParent { | ||
export declare const moduleOverrideExport: string; | ||
export declare const overrideKey: unique symbol; | ||
export type CustomReactify<TEntity extends GenericEntity<unknown>, TResult> = (ctor: EntityConstructor<TEntity>, params: { | ||
@@ -31,3 +31,3 @@ reactify: { | ||
export type Overrided<TReactResult> = { | ||
[overrideKey]: CustomReactify<GenericEntity<unknown>, TReactResult>; | ||
[overrideKeyReactify]: CustomReactify<GenericEntity<unknown>, TReactResult>; | ||
}; | ||
@@ -34,0 +34,0 @@ type InternalReactify<TEntity extends GenericEntity<unknown>> = (ctor: EntityConstructor<TEntity>, displayName?: string) => TReact.ForwardRefExoticComponent<TReact.PropsWithoutRef<TReact.PropsWithChildren<EntityProps<TEntity>>> & React.RefAttributes<TEntity | undefined>>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119014
3201