@clickview/online 0.0.20 → 0.0.21-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/en.json +1 -1
- package/dist/online-app.css +36 -12
- package/dist/online-app.js +11 -5
- package/package.json +3 -3
- package/tooling/externals.js +2 -1
- package/typings/libs/google-api.d.ts +76 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/online",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21-rc.1",
|
|
4
4
|
"description": "Online",
|
|
5
5
|
"main": "dist/online-app.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@clickview/eslint-config": "1.0.0",
|
|
24
|
-
"@clickview/tooling": "0.0.
|
|
24
|
+
"@clickview/tooling": "0.0.23-rc.1",
|
|
25
25
|
"@types/linkifyjs": "2.1.3",
|
|
26
26
|
"@types/react-sortable-hoc": "0.7.1",
|
|
27
27
|
"@types/react-transition-group": "4.2.3",
|
|
28
28
|
"@types/yup": "0.26.24"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@clickview/styles": "1.0.
|
|
31
|
+
"@clickview/styles": "1.0.16-rc.1",
|
|
32
32
|
"yup": "0.27.0"
|
|
33
33
|
},
|
|
34
34
|
"babel": {
|
package/tooling/externals.js
CHANGED
|
@@ -34,7 +34,8 @@ const externalModules = {
|
|
|
34
34
|
'$': [ /^jquery$/i, /^\$/ ],
|
|
35
35
|
'Polyglot': [ /^node-polyglot$/i, /^polyglot$/i ],
|
|
36
36
|
'moment': /^moment$/i,
|
|
37
|
-
'linkify': [ /^linkifyjs$/i, /^linkify$/i ]
|
|
37
|
+
'linkify': [ /^linkifyjs$/i, /^linkify$/i ],
|
|
38
|
+
'gapi': [/^gapi$/i]
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
exports.mapExternalModules = (context, request, callback) => {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
declare namespace gapi {
|
|
2
|
+
declare function load(client: string, callback: () => Promise<any>): void;
|
|
3
|
+
|
|
4
|
+
interface ClientInitData {
|
|
5
|
+
apiKey: string;
|
|
6
|
+
clientId: string;
|
|
7
|
+
discoveryDocs: string[];
|
|
8
|
+
scope: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare namespace client {
|
|
12
|
+
declare function init(clientInitData: ClientInitData): void;
|
|
13
|
+
|
|
14
|
+
declare namespace drive {
|
|
15
|
+
declare namespace files {
|
|
16
|
+
interface Spreadsheet {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface SpreadsheetListResponse {
|
|
22
|
+
result: {
|
|
23
|
+
files: Spreadsheet[];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare function list(query: { q: string }): Promise<SpreadsheetListResponse>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare namespace sheets {
|
|
32
|
+
declare namespace spreadsheets {
|
|
33
|
+
interface SpreadsheetRangesResponseSheets {
|
|
34
|
+
properties: {
|
|
35
|
+
title: string;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface SpreadsheetRangesResponse {
|
|
40
|
+
result: {
|
|
41
|
+
sheets: SpreadsheetRangesResponseSheets[];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare function get(query: { spreadsheetId: string; }): Promise<SpreadsheetRangesResponse>;
|
|
46
|
+
|
|
47
|
+
declare namespace values {
|
|
48
|
+
interface SpreadsheetDataResponse {
|
|
49
|
+
result: {
|
|
50
|
+
values: any[];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare function get(
|
|
55
|
+
spreadsheetData: { spreadsheetId: string; range: string; }
|
|
56
|
+
): Promise<SpreadsheetDataResponse>;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface AuthInstance {
|
|
63
|
+
signIn: () => Promise<{
|
|
64
|
+
isSignedIn: () => boolean;
|
|
65
|
+
}>;
|
|
66
|
+
|
|
67
|
+
isSignedIn: {
|
|
68
|
+
listen(callback: (isSignedIn: boolean) => void);
|
|
69
|
+
get(): boolean;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare namespace auth2 {
|
|
74
|
+
declare function getAuthInstance(): AuthInstance;
|
|
75
|
+
}
|
|
76
|
+
}
|