utopia-ui 3.0.36 → 3.0.37

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,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type ContentProps = {
2
+ declare type ContentProps = {
3
3
  children?: React.ReactNode;
4
4
  };
5
5
  export declare function Content({ children }: ContentProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type route = {
2
+ declare type route = {
3
3
  path: string;
4
4
  icon: JSX.Element;
5
5
  name: string;
@@ -4,7 +4,7 @@ interface AppState {
4
4
  assetsApi: AssetsApi;
5
5
  userType: string;
6
6
  }
7
- type UseAppManagerResult = ReturnType<typeof useAppManager>;
7
+ declare type UseAppManagerResult = ReturnType<typeof useAppManager>;
8
8
  declare function useAppManager(): {
9
9
  state: AppState;
10
10
  setAppState: (newState: Partial<AppState>) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { AssetsApi } from '#types/AssetsApi';
3
- type UseAssetManagerResult = ReturnType<typeof useAssetsManager>;
3
+ declare type UseAssetManagerResult = ReturnType<typeof useAssetsManager>;
4
4
  declare function useAssetsManager(): {
5
5
  api: AssetsApi;
6
6
  setAssetsApi: (api: AssetsApi) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type UseQuestManagerResult = ReturnType<typeof useQuestsManager>;
2
+ declare type UseQuestManagerResult = ReturnType<typeof useQuestsManager>;
3
3
  declare function useQuestsManager(initialOpen: boolean): {
4
4
  open: boolean;
5
5
  setQuestsOpen: (open: boolean) => void;
@@ -1,4 +1,4 @@
1
- type SelectBoxProps = {
1
+ declare type SelectBoxProps = {
2
2
  labelTitle?: string;
3
3
  labelStyle?: string;
4
4
  type?: string;
@@ -1,4 +1,4 @@
1
- type TextAreaProps = {
1
+ declare type TextAreaProps = {
2
2
  labelTitle?: string;
3
3
  labelStyle?: string;
4
4
  containerStyle?: string;
@@ -1,4 +1,4 @@
1
- type InputTextProps = {
1
+ declare type InputTextProps = {
2
2
  labelTitle?: string;
3
3
  labelStyle?: string;
4
4
  type?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type UseClusterRefManagerResult = ReturnType<typeof useClusterRefManager>;
2
+ declare type UseClusterRefManagerResult = ReturnType<typeof useClusterRefManager>;
3
3
  declare function useClusterRefManager(): {
4
4
  clusterRef: any;
5
5
  setClusterRef: React.Dispatch<React.SetStateAction<React.MutableRefObject<undefined>>>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { LayerProps } from '#types/LayerProps';
3
3
  import type { Tag } from '#types/Tag';
4
- type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
4
+ declare type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
5
5
  declare function useFilterManager(initialTags: Tag[]): {
6
6
  filterTags: Tag[];
7
7
  searchPhrase: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { Item } from '#types/Item';
3
3
  import type { LayerProps } from '#types/LayerProps';
4
- type UseItemManagerResult = ReturnType<typeof useItemsManager>;
4
+ declare type UseItemManagerResult = ReturnType<typeof useItemsManager>;
5
5
  declare function useItemsManager(initialItems: Item[]): {
6
6
  items: Item[];
7
7
  addItem: (item: Item) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { LayerProps } from '#types/LayerProps';
3
- type UseItemManagerResult = ReturnType<typeof useLayerManager>;
3
+ declare type UseItemManagerResult = ReturnType<typeof useLayerManager>;
4
4
  declare function useLayerManager(initialLayers: LayerProps[]): {
5
5
  layers: LayerProps[];
6
6
  addLayer: (layer: LayerProps) => void;
@@ -6,7 +6,7 @@ interface LeafletRef {
6
6
  marker: Marker;
7
7
  popup: Popup;
8
8
  }
9
- type UseLeafletRefsManagerResult = ReturnType<typeof useLeafletRefsManager>;
9
+ declare type UseLeafletRefsManagerResult = ReturnType<typeof useLeafletRefsManager>;
10
10
  declare function useLeafletRefsManager(initialLeafletRefs: {}): {
11
11
  leafletRefs: Record<string, LeafletRef>;
12
12
  addMarker: (item: Item, marker: Marker) => void;
@@ -4,7 +4,7 @@ import type { ItemsApi } from '#types/ItemsApi';
4
4
  import type { LayerProps } from '#types/LayerProps';
5
5
  import type { Permission } from '#types/Permission';
6
6
  import type { PermissionAction } from '#types/PermissionAction';
7
- type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
7
+ declare type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
8
8
  declare function usePermissionsManager(initialPermissions: Permission[]): {
9
9
  permissions: Permission[];
10
10
  setPermissionApi: (api: ItemsApi<any>) => void;
@@ -7,7 +7,7 @@ interface PolygonClickedProps {
7
7
  position: LatLng;
8
8
  setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
9
9
  }
10
- type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
10
+ declare type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
11
11
  declare function useSelectPositionManager(): {
12
12
  selectPosition: Item | LayerProps | null;
13
13
  setSelectPosition: React.Dispatch<React.SetStateAction<Item | LayerProps | null>>;
@@ -2,7 +2,7 @@
2
2
  import type { Item } from '#types/Item';
3
3
  import type { ItemsApi } from '#types/ItemsApi';
4
4
  import type { Tag } from '#types/Tag';
5
- type UseTagManagerResult = ReturnType<typeof useTagsManager>;
5
+ declare type UseTagManagerResult = ReturnType<typeof useTagsManager>;
6
6
  declare function useTagsManager(initialTags: Tag[]): {
7
7
  tags: Tag[];
8
8
  addTag: (tag: Tag) => void;