@shopify/app-bridge-host
Version:
App Bridge Host contains middleware and components that are meant to be consumed by the app's host. The middleware and `Frame` component are responsible for facilitating messages posted between the client and host, and used to act on actions sent from the
66 lines (65 loc) • 2.27 kB
TypeScript
import { AppBridgeActionCreatorsMap } from './appBridge';
import { AppInfoActionCreatorsMap, AppInfoStore } from './appInfo';
import { FeaturesActionCreatorsMap, FeaturesState } from './features';
import { ToastStore, ToastActionCreatorsMap } from './toast';
import { LoadingStore, LoadingActionCreatorsMap } from './loading';
import { ModalStore, ModalActionCreatorsMap } from './modal';
import { TitleBarStore, TitleBarActionCreatorsMap } from './titleBar';
import { ResourcePickerStore, ResourcePickerActionCreatorsMap } from './resourcePicker';
import { NavigationStore, NavigationActionCreatorsMap } from './navigation';
import { POSStore } from './pos';
import { StaffMemberStore, StaffMemberActionCreatorsMap } from './staffMember';
import { ContextualSaveBarStore, ContextualSaveBarActionCreatorsMap } from './contextualSaveBar';
/**
* The interface for the app state
* @public
*/
export interface Store {
appInfo: AppInfoStore;
features: FeaturesState;
toast: ToastStore;
loading: LoadingStore;
modal: ModalStore;
titleBar: TitleBarStore | null;
pos: POSStore;
resourcePicker: ResourcePickerStore | null;
navigation: NavigationStore;
staffMember: StaffMemberStore;
isLegacy: boolean;
isFullscreen: boolean;
contextualSaveBar: ContextualSaveBarStore;
}
/**
* The interface for the actions available to the app
* @public
*/
export interface Actions {
appInfo: AppInfoActionCreatorsMap;
features: FeaturesActionCreatorsMap;
toast: ToastActionCreatorsMap;
loading: LoadingActionCreatorsMap;
modal: ModalActionCreatorsMap;
titleBar: TitleBarActionCreatorsMap;
resourcePicker: ResourcePickerActionCreatorsMap;
navigation: NavigationActionCreatorsMap;
staffMember: StaffMemberActionCreatorsMap;
appBridge: AppBridgeActionCreatorsMap;
contextualSaveBar: ContextualSaveBarActionCreatorsMap;
}
/**
* The interface for the app's dispatch props
* @public
*/
export interface DispatchProps {
actions: Actions;
}
/**
* The interface for the app's default state
* @internal
*/
export declare const defaultStore: Store;
/**
* The combined Redux reducers
* @internal
*/
export default function getReducers(): import("redux").Reducer<Store, import("redux").AnyAction>;