(core) Adding import from google drive to the home screen

Summary: Importing from google drive from home screen (also for anonymous users)

Test Plan: Browser tests

Reviewers: dsagal, paulfitz

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2943
This commit is contained in:
Jarosław Sadziński
2021-08-05 17:12:46 +02:00
parent bb55422d9c
commit 4ca47878ca
21 changed files with 348 additions and 142 deletions

View File

@@ -28,6 +28,7 @@ export const BarePlugin = t.iface([], {
export const ImportSource = t.iface([], {
"label": "string",
"safeHome": t.opt("boolean"),
"importSource": "Implementation",
"importProcessor": t.opt("Implementation"),
});

View File

@@ -125,6 +125,13 @@ export interface ImportSource {
*/
label: string;
/**
* Whether this import source can be exposed on a home screen for all users. Home imports
* support only a safeBrowser component and have no access to current document. Primarily used as
* an external/cloud storage providers.
*/
safeHome?: boolean;
/**
* Implementation of ImportSourceAPI. Supports safeBrowser component, which allows you to create
* custom UI to show to the user. Or describe UI using a .json or .yml config file and use