mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
1425461cd8
Summary: Exposing custom widgets as a dropdown menu in custom section configuration panel. Adding new environmental variable GRIST_WIDGET_LIST_URL that points to a json file with an array of available widgets. When not present, custom widget menu is hidden, exposing only Custom URL option. Available widget list can be fetched from: https://github.com/gristlabs/grist-widget/releases/download/latest/manifest.json Test Plan: New tests, and updated old ones. Reviewers: paulfitz, dsagal Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3127
20 lines
900 B
TypeScript
20 lines
900 B
TypeScript
import {UserProfile} from 'app/common/LoginSessionAPI';
|
|
|
|
export interface ITestingHooks {
|
|
getOwnPort(): Promise<number>;
|
|
getPort(): Promise<number>;
|
|
setLoginSessionProfile(gristSidCookie: string, profile: UserProfile|null, org?: string): Promise<void>;
|
|
setServerVersion(version: string|null): Promise<void>;
|
|
disconnectClients(): Promise<void>;
|
|
commShutdown(): Promise<void>;
|
|
commRestart(): Promise<void>;
|
|
commSetClientPersistence(ttlMs: number): Promise<void>;
|
|
closeDocs(): Promise<void>;
|
|
setDocWorkerActivation(workerId: string, active: 'active'|'inactive'|'crash'): Promise<void>;
|
|
flushAuthorizerCache(): Promise<void>;
|
|
getDocClientCounts(): Promise<Array<[string, number]>>;
|
|
setActiveDocTimeout(seconds: number): Promise<number>;
|
|
setDiscourseConnectVar(varName: string, value: string|null): Promise<string|null>;
|
|
setWidgetRepositoryUrl(url: string): Promise<void>;
|
|
}
|