@shopify/app-bridge
Version:
> **Maintenance Mode:** Although apps using this package will continue to function, it is no longer receiving updates. For new projects, please use the [CDN version of App Bridge](https://shopify.dev/docs/api/app-home?accordionItem=getting-started-build-y
20 lines (19 loc) • 792 B
TypeScript
import type { ClientApplication } from '../client';
/**
* Automatically track changes to the document.body height and dispatch and action to update the modal size
* @remarks This utility should only be used for an app that is meant to open inside a Modal
* @param app App Bridge client application instance
* @returns function to remove the auto-size tracker for the document.body
*
* @public
*/
export declare function setupModalAutoSizing(app: ClientApplication): Promise<() => void>;
/**
* Sets up modal auto sizing, using a MutationObserver.
*
* @param app App Bridge client application instance
* @param id Currently active modal instance ID
*
* @internal
*/
export declare function createMutationObserver(app: ClientApplication, id: string): MutationObserver | undefined;