import { AppItemType, Member } from '@graasp/sdk'; import { ContextPayload, Token } from './appItemHooks.js'; /** * This query param is added to the fetched url to fix an issue where the browser * is able to aggressively cache the `index.html` file for the app. * This aggressive caching behavior is an issue as when apps get updated, the index.html file * changes but the browser has an old version of it, and tries to fetch javascript and assets that are out of date * resulting in the app not being able to load. * * This could be also fixed by not overriding the `index.html` file when releasing a new app version * and simply pushing it to another subpath than `/latest/`. In this case the agressive caching behavior would not be a problem. */ export declare const CURRENT_TIMESTAMP_QUERY_PARAM = "ts"; type AppItemProps = { /** * corresponding item of the app */ item: AppItemType; /** * function to fetch the app token */ requestApiAccessToken: (args: { id: string; key: string; origin: string; }) => Promise<{ token: Token; }>; /** * context passed to the app */ contextPayload: ContextPayload; /** * app height */ height?: number | string; /** * id prop passed to the iframe */ frameId?: string; /** * Whether manual resize is enabled (as opposed to automatic resize, default) */ isResizable?: boolean; /** * id of the member currently signed in */ memberId?: Member['id']; /** * Whether the caption is shown */ showCaption?: boolean; /** * Whether the item should be shown in a collapsible element */ showCollapse?: boolean; onCollapse?: (c: boolean) => void; }; declare const _default: import("react").MemoExoticComponent<({ item, contextPayload, requestApiAccessToken, height, frameId, memberId, isResizable, showCaption, showCollapse, onCollapse, }: AppItemProps) => JSX.Element>; export default _default;