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 (17 loc) 860 B
import { SessionToken } from '@shopify/app-bridge-core/actions'; import type { SessionTokenApi } from '@shopify/app-bridge-core/actions/SessionToken'; import { FeatureWithApi } from '../withFeature'; export interface WithFeature { actions: { respond: typeof SessionToken.respond; request: typeof SessionToken.request; }; api: SessionTokenApi; } export type SessionTokenFeature = FeatureWithApi<never, WithFeature['actions'], WithFeature['api']>; export declare const getApi: SessionTokenFeature['getApi']; declare const _default: <OwnProps>(WrappedComponent: import("react").ComponentType<OwnProps>) => import("react").ComponentType<OwnProps & import("..").ComponentProps & import("../withFeature").FeatureProps<{ respond: typeof SessionToken.respond; request: typeof SessionToken.request; }, {}>>; export default _default;