@mcurros2/microm 1.1.318-0 → 1.1.319-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.
package/dist/index.d.ts CHANGED
@@ -2929,6 +2929,26 @@ export interface MenuItem {
2929
2929
  }
2930
2930
  export function getMenuItemContext(item: MenuItem, context?: MenuItemContext): MenuItemContext;
2931
2931
  export function resolveMenuItemContent(item: MenuItem, context?: MenuItemContext): ReactNode | Promise<ReactNode> | undefined;
2932
+ export const MENU_ROUTE_CONTEXT_VERSION: 1;
2933
+ export interface MenuRouteContext {
2934
+ version: typeof MENU_ROUTE_CONTEXT_VERSION;
2935
+ parentKeys: ValuesObject;
2936
+ contextLabel: string;
2937
+ originPath: string;
2938
+ }
2939
+ export interface MenuRoute {
2940
+ menuId: string;
2941
+ itemPath: string;
2942
+ context?: MenuRouteContext;
2943
+ }
2944
+ export interface CreateMenuRouteProps {
2945
+ menuId: string;
2946
+ itemPath?: string;
2947
+ context?: Omit<MenuRouteContext, "version">;
2948
+ }
2949
+ export function getMenuBasePath(menuId: string): string;
2950
+ export function createMenuRoute({ menuId, itemPath, context }: CreateMenuRouteProps): string;
2951
+ export function parseMenuRoute(route: string): MenuRoute | null;
2932
2952
  export interface NavigationState {
2933
2953
  navigated: boolean;
2934
2954
  route: string;
@@ -3073,27 +3093,6 @@ export interface RouteProps {
3073
3093
  children: React.ReactNode;
3074
3094
  }
3075
3095
  export function Route(props: RouteProps): JSX.Element | null;
3076
- export const CONTEXTUAL_MENU_ROUTE_VERSION: 1;
3077
- export const CONTEXTUAL_MENU_ROUTE_PREFIX = "/contextual";
3078
- export interface ContextualMenuRoutePayload {
3079
- version: typeof CONTEXTUAL_MENU_ROUTE_VERSION;
3080
- parentKeys: ValuesObject;
3081
- contextLabel: string;
3082
- originPath: string;
3083
- }
3084
- export interface ContextualMenuRoute {
3085
- menuId: string;
3086
- itemPath: string;
3087
- payload: ContextualMenuRoutePayload;
3088
- }
3089
- export interface CreateContextualMenuRouteProps extends Omit<ContextualMenuRoutePayload, 'version'> {
3090
- menuId: string;
3091
- itemPath?: string;
3092
- }
3093
- export function mergeParentKeys(parentKeys?: ValuesObject, selectedKeys?: ValuesObject): ValuesObject;
3094
- export const getContextualMenuBasePath: (menuId: string) => string;
3095
- export function createContextualMenuRoute(props: CreateContextualMenuRouteProps): string;
3096
- export function parseContextualMenuRoute(route: string): ContextualMenuRoute | null;
3097
3096
  export const DEFAULT_MAP_CENTER: latLng;
3098
3097
  export type GoogleMapsAddressComponentType = 'street_address' | 'route' | 'intersection' | 'political' | 'country' | 'administrative_area_level_1' | 'administrative_area_level_2' | 'administrative_area_level_3' | 'administrative_area_level_4' | 'administrative_area_level_5' | 'administrative_area_level_6' | 'administrative_area_level_7' | 'colloquial_area' | 'locality' | 'sublocality' | 'sublocality_level_1' | 'sublocality_level_2' | 'sublocality_level_3' | 'sublocality_level_4' | 'sublocality_level_5' | 'neighborhood' | 'premise' | 'subpremise' | 'plus_code' | 'postal_code' | 'natural_feature' | 'airport' | 'park' | 'point_of_interest' | 'floor' | 'establishment' | 'landmark' | 'parking' | 'post_box' | 'postal_town' | 'room' | 'street_number' | 'bus_station' | 'train_station' | 'transit_station';
3099
3098
  export type AddressComponentValue = {