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

18 lines (15 loc) 443 B
import { Modal } from '@shopify/app-bridge-core/actions'; import { LEGACY_MODAL_SET_HEIGHT } from './actions.js'; function setHeight(payload) { return { payload: payload, type: LEGACY_MODAL_SET_HEIGHT, }; } var modalActionCreatorsMap = { clickFooterButton: Modal.clickFooterButton, close: Modal.closeModal, open: Modal.openModal, setHeight: setHeight, }; export { modalActionCreatorsMap, setHeight };