@trackunit/react-map 0.0.10 → 0.1.0

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,27 +0,0 @@
1
- import type { AdapterConfig } from "@trackunit/react-map-adapter-shared";
2
- import type { ContainerRefHolder, MapActions, MapStatus } from "../core/types";
3
- import type { BuiltInControlsConfig, UseMapOptions } from "./types";
4
- /**
5
- * Partial MapApi type used by useControlsConfig.
6
- * Includes only the fields this hook (and its sub-hooks) actually need,
7
- * avoiding a direct dependency on the full MapApi type.
8
- */
9
- type MapApiWithoutControls = Readonly<{
10
- state: MapStatus;
11
- actions: MapActions;
12
- adapterConfig: AdapterConfig;
13
- containerRef: ContainerRefHolder;
14
- }>;
15
- type UseControlsConfigParams = Readonly<{
16
- options?: UseMapOptions;
17
- api: MapApiWithoutControls;
18
- }>;
19
- /**
20
- * Builds the controls configuration from useMap options and api.
21
- *
22
- * Creates control config objects with bound callbacks for each enabled control.
23
- * The Controls component uses this configuration to render controls.
24
- * Consumers can compose custom stacks from the named built-in handles.
25
- */
26
- export declare const useControlsConfig: ({ options, api }: UseControlsConfigParams) => BuiltInControlsConfig;
27
- export {};