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

12 lines (11 loc) 683 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Error_1 = require("@shopify/app-bridge/actions/Error"); function throwMissingRouterError() { return Error_1.throwError(Error_1.AppActionType.MISSING_ROUTER_CONTEXT, 'Missing required Router Context. Are you forgetting to set a `router` for the `HostProvider`?'); } exports.throwMissingRouterError = throwMissingRouterError; function throwMissingHostProvider() { return Error_1.throwError(Error_1.AppActionType.MISSING_HOST_PROVIDER, 'Missing required Host Context. The `<HostProvider>` is required as a parent of this component'); } exports.throwMissingHostProvider = throwMissingHostProvider;