@shopify/app-bridge
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -164,2 +164,24 @@ import { ClientApplication } from '../../client'; | ||
export declare function loadMore(payload: LoadMorePayload): LoadMoreAction; | ||
export interface SelectEventListener { | ||
(data: SelectPayload): void; | ||
} | ||
export interface SearchEventListener { | ||
(data: SearchPayload): void; | ||
} | ||
export interface EventListener { | ||
(): void; | ||
} | ||
export interface Handlers { | ||
cancel: EventListener; | ||
loadMore: EventListener; | ||
search: SearchEventListener; | ||
select: SelectEventListener; | ||
} | ||
export interface PickerApi { | ||
open: (options?: Partial<Options>) => void; | ||
cancel: () => void; | ||
setOptions: (options: Partial<Options>) => void; | ||
addEventListener: <E extends keyof Handlers>(event: E, listener: Handlers[typeof event]) => void; | ||
removeEventListener: <E extends keyof Handlers>(event: E, listener: Handlers[typeof event]) => void; | ||
} | ||
/** | ||
@@ -166,0 +188,0 @@ * @unstable This API may be updated without warning in the future |
{ | ||
"name": "@shopify/app-bridge", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"types": "index.d.ts", | ||
@@ -57,3 +57,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "b3caed5bf6dc67bfcb6bb2ac05b84acd75e309bb" | ||
"gitHead": "8df1e00dace8db9ec347e8dec2702c49f5124ee6" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
981167
20163