@clickview/online 0.3.1 → 0.3.2-rc.0

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/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@clickview/online",
3
- "version": "0.3.1",
4
- "description": "Online",
5
- "main": "dist/online-app.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
9
- "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
10
- "build-docker": "export NODE_ENV=production&& webpack --config ./tooling/webpack.config.js"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "https://gitlab.cvinternal.net/front-end/clickview"
15
- },
16
- "cv": {
17
- "publishable": true,
18
- "rebuildable": true
19
- },
20
- "author": "",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@clickview/eslint-config": "1.0.1",
24
- "@types/linkifyjs": "2.1.3",
25
- "@types/react-sortable-hoc": "0.7.1",
26
- "@types/react-transition-group": "4.2.3",
27
- "@types/yup": "0.26.24"
28
- },
29
- "dependencies": {
30
- "@clickview/styles": "1.3.0",
31
- "intersection-observer": "0.11.0",
32
- "yup": "0.27.0"
33
- },
34
- "babel": {
35
- "presets": [
36
- [
37
- "@babel/preset-env",
38
- {
39
- "corejs": 3,
40
- "useBuiltIns": "entry"
41
- }
42
- ]
43
- ]
44
- }
45
- }
1
+ {
2
+ "name": "@clickview/online",
3
+ "version": "0.3.2-rc.0",
4
+ "description": "Online",
5
+ "main": "dist/online-app.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
9
+ "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
10
+ "build-docker": "export NODE_ENV=production&& webpack --config ./tooling/webpack.config.js"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://gitlab.cvinternal.net/front-end/clickview"
15
+ },
16
+ "cv": {
17
+ "publishable": true,
18
+ "rebuildable": true
19
+ },
20
+ "author": "",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@clickview/eslint-config": "1.0.1",
24
+ "@types/linkifyjs": "2.1.3",
25
+ "@types/react-sortable-hoc": "0.7.1",
26
+ "@types/react-transition-group": "4.2.3",
27
+ "@types/yup": "0.26.24"
28
+ },
29
+ "dependencies": {
30
+ "@clickview/styles": "1.3.1-rc.0",
31
+ "intersection-observer": "0.11.0",
32
+ "yup": "0.27.0"
33
+ },
34
+ "babel": {
35
+ "presets": [
36
+ [
37
+ "@babel/preset-env",
38
+ {
39
+ "corejs": 3,
40
+ "useBuiltIns": "entry"
41
+ }
42
+ ]
43
+ ]
44
+ }
45
+ }
@@ -1,7 +1,7 @@
1
1
  declare namespace gapi {
2
2
  declare function load(client: string, callback: () => Promise<any>): void;
3
3
 
4
- interface ClientInitData {
4
+ interface GoogleConsentRequest {
5
5
  apiKey: string;
6
6
  clientId: string;
7
7
  discoveryDocs: string[];
@@ -9,7 +9,7 @@ declare namespace gapi {
9
9
  }
10
10
 
11
11
  declare namespace client {
12
- declare function init(clientInitData: ClientInitData): void;
12
+ declare function init(initData: GoogleConsentRequest): void;
13
13
 
14
14
  declare namespace drive {
15
15
  declare namespace files {
@@ -65,12 +65,30 @@ declare namespace gapi {
65
65
  }>;
66
66
 
67
67
  isSignedIn: {
68
- listen(callback: (isSignedIn: boolean) => void);
68
+ listen(callback: (isSignedIn: boolean) => void): AuthSignInListener;
69
69
  get(): boolean;
70
70
  }
71
+
72
+ currentUser: {
73
+ get: () => GoogleUser;
74
+ }
75
+ }
76
+
77
+ interface AuthSignInListener {
78
+ remove: () => void;
79
+ }
80
+
81
+ interface GoogleUser {
82
+ hasGrantedScopes: (scopes: string) => boolean;
83
+ grant: (data: GoogleConsentRequest) => Promise<any>;
84
+ isSignedIn: () => boolean;
71
85
  }
72
86
 
73
87
  declare namespace auth2 {
74
88
  declare function getAuthInstance(): AuthInstance;
75
89
  }
90
+
91
+ declare namespace sharetoclassroom {
92
+ declare function go(id: string): void;
93
+ }
76
94
  }