UNPKG

@shopify/app-bridge-host

Version:

App Bridge Host contains components and middleware to be consumed by the app's host, as well as the host itself. The middleware and `Frame` component are responsible for facilitating communication between the client and host, and used to act on actions se

42 lines (41 loc) 1.57 kB
import { AppBridgeActionCreatorsMap } from './appBridge'; import { FeaturesActionCreatorsMap } from './features'; import { ToastActionCreatorsMap } from './toast'; import { LoadingActionCreatorsMap } from './loading'; import { ModalActionCreatorsMap } from './modal'; import { TitleBarActionCreatorsMap } from './titleBar'; import { ResourcePickerActionCreatorsMap } from './resourcePicker'; import { NavigationActionCreatorsMap } from './navigation'; import { MenuActionCreatorsMap } from './menu'; import { StaffMemberActionCreatorsMap } from './staffMember'; import { ContextualSaveBarActionCreatorsMap } from './contextualSaveBar'; import { PickerActionCreatorsMap } from './picker'; /** * The interface for the actions available to the app * @public */ export interface Actions { features: FeaturesActionCreatorsMap; toast: ToastActionCreatorsMap; loading: LoadingActionCreatorsMap; modal: ModalActionCreatorsMap; titleBar: TitleBarActionCreatorsMap; resourcePicker: ResourcePickerActionCreatorsMap; navigation: NavigationActionCreatorsMap; menu: MenuActionCreatorsMap; staffMember: StaffMemberActionCreatorsMap; appBridge: AppBridgeActionCreatorsMap; contextualSaveBar: ContextualSaveBarActionCreatorsMap; /** * @unstable This API may be updated without warning in the future */ unstablePicker: PickerActionCreatorsMap; } /** * The interface for the app's dispatch props * @public */ export interface DispatchProps { actions: Actions; } export { Store, defaultStore, getReducers } from './store';