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

16 lines (15 loc) 604 B
import { PrivilegedAppConfig } from '../../types'; import { RouterContext } from '../../HostProvider'; declare type AppUrl = Pick<PrivilegedAppConfig, 'handle' | 'url' | 'apiKey'> & RouterContext['location']; /** * Build an app URL from an initial URL and a path * @internal * As a precautionary measure the `path` will be stripped off a host if one is * given. */ export declare function buildAppUrl({ handle, url: initialUrl, apiKey, pathname, search, }: AppUrl): URL; /** * Convert: 'some/path' to '/some/path' */ export declare function normalizeRelativePath(path: string): string; export {};