UNPKG

@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

26 lines (25 loc) 1.04 kB
import { AnyAction, ActionCreatorsMapObject } from 'redux'; import { ContextualSaveBar } from '@shopify/app-bridge/actions'; export interface ContextualSaveBarActionCreatorsMap extends ActionCreatorsMapObject { discard: typeof ContextualSaveBar.discard; hide: typeof ContextualSaveBar.hide; save: typeof ContextualSaveBar.save; show: typeof ContextualSaveBar.show; } export declare const contextualSaveBarActionCreatorsMap: ContextualSaveBarActionCreatorsMap; interface NormalizedStore { id: string; saveAction: { disabled: boolean; loading: boolean; }; discardAction: { disabled: boolean; loading: boolean; discardConfirmationModal: boolean; }; } export declare type ContextualSaveBarStore = NormalizedStore | null; export declare const defaultContextualSaveBarStore: null; export default function contextualSaveBarReducer(state: NormalizedStore | null | undefined, action: ContextualSaveBar.ContextualSaveBarAction | AnyAction): ContextualSaveBarStore; export {};