@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
19 lines (18 loc) • 635 B
TypeScript
import { PrivilegedAppConfig } from '../../types';
type AppUrl = Pick<PrivilegedAppConfig, 'handle' | 'url' | 'apiKey'> & {
pathname: string;
search?: string;
};
/**
* 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 declare function removeRestrictedParams(path: string): string;
export {};