@wildberries/databus-service-products
Advanced tools
Comparing version 0.1.0-beta.3 to 0.1.0-beta.4
export declare const FETCH_PRODUCTS = "fetch-products"; | ||
export declare const NAVIGATE_TO_PRODUCT = "navigate-to-product"; | ||
export declare const PREFETCH_PRODUCTS = "PREFETCH_PRODUCTS"; |
@@ -5,1 +5,2 @@ "use strict"; | ||
exports.NAVIGATE_TO_PRODUCT = 'navigate-to-product'; | ||
exports.PREFETCH_PRODUCTS = 'PREFETCH_PRODUCTS'; |
import { FetchMenuActionPayloadType, NavigateToRouteParamsType } from './types'; | ||
export declare const setFetchProductsEvent: (params: FetchMenuActionPayloadType) => void; | ||
export declare const navigateToProductEvent: (params: NavigateToRouteParamsType) => void; | ||
export declare const setPrefetchProductsEvent: (params: Pick<FetchMenuActionPayloadType, "withErrorNotification" | "routeUrl" | "callbackFinallyLoad" | "configs" | "navigateAfterLoadConfig"> & { | ||
timeout: number; | ||
}) => void; |
@@ -17,1 +17,7 @@ "use strict"; | ||
}; | ||
exports.setPrefetchProductsEvent = function (params) { | ||
new databus_1.Databus({ name: constants_1.PREFETCH_PRODUCTS }).addEvent({ | ||
detail: params, | ||
}); | ||
databus_1.Databus.dispatchEvent({ eventName: constants_1.PREFETCH_PRODUCTS }); | ||
}; |
@@ -10,2 +10,3 @@ export declare type BaseAction = () => { | ||
withoutLoadingIndicator?: boolean; | ||
routeUrl?: string; | ||
callbackFinallyLoad?: CallbackFinallyLoadType; | ||
@@ -21,2 +22,4 @@ configs?: { | ||
}; | ||
loadAllModules?: boolean; | ||
withoutFetchMenu?: boolean; | ||
}; | ||
@@ -23,0 +26,0 @@ export declare type ListenerType<T> = (params: T) => void; |
{ | ||
"name": "@wildberries/databus-service-products", | ||
"version": "0.1.0-beta.3", | ||
"version": "0.1.0-beta.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
10160
160