@clickview/online 0.41.1 → 0.42.0-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.
@@ -1,94 +1,94 @@
1
- declare namespace gapi {
2
- declare function load(client: string, callback: () => Promise<any>): void;
3
-
4
- interface GoogleConsentRequest {
5
- apiKey: string;
6
- clientId: string;
7
- discoveryDocs: string[];
8
- scope: string;
9
- }
10
-
11
- declare namespace client {
12
- declare function init(initData: GoogleConsentRequest): 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): AuthSignInListener;
69
- get(): boolean;
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;
85
- }
86
-
87
- declare namespace auth2 {
88
- declare function getAuthInstance(): AuthInstance;
89
- }
90
-
91
- declare namespace sharetoclassroom {
92
- declare function go(id: string): void;
93
- }
1
+ declare namespace gapi {
2
+ declare function load(client: string, callback: () => Promise<any>): void;
3
+
4
+ interface GoogleConsentRequest {
5
+ apiKey: string;
6
+ clientId: string;
7
+ discoveryDocs: string[];
8
+ scope: string;
9
+ }
10
+
11
+ declare namespace client {
12
+ declare function init(initData: GoogleConsentRequest): 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): AuthSignInListener;
69
+ get(): boolean;
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;
85
+ }
86
+
87
+ declare namespace auth2 {
88
+ declare function getAuthInstance(): AuthInstance;
89
+ }
90
+
91
+ declare namespace sharetoclassroom {
92
+ declare function go(id: string): void;
93
+ }
94
94
  }
@@ -1,139 +1,139 @@
1
- /**
2
- * In order to add typings for various react-table plugins, the below should be selectively
3
- * uncommented based on what we are using.
4
- *
5
- * Refer: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table
6
- */
7
-
8
- import {
9
- // UseColumnOrderInstanceProps,
10
- // UseColumnOrderState,
11
- // UseExpandedHooks,
12
- // UseExpandedInstanceProps,
13
- // UseExpandedOptions,
14
- // UseExpandedRowProps,
15
- // UseExpandedState,
16
- UseFiltersColumnOptions,
17
- UseFiltersColumnProps,
18
- UseFiltersInstanceProps,
19
- UseFiltersOptions,
20
- UseFiltersState,
21
- UseGlobalFiltersColumnOptions,
22
- UseGlobalFiltersInstanceProps,
23
- UseGlobalFiltersOptions,
24
- UseGlobalFiltersState,
25
- // UseGroupByCellProps,
26
- // UseGroupByColumnOptions,
27
- // UseGroupByColumnProps,
28
- // UseGroupByHooks,
29
- // UseGroupByInstanceProps,
30
- // UseGroupByOptions,
31
- // UseGroupByRowProps,
32
- // UseGroupByState,
33
- // UsePaginationInstanceProps,
34
- // UsePaginationOptions,
35
- // UsePaginationState,
36
- // UseResizeColumnsColumnOptions,
37
- // UseResizeColumnsColumnProps,
38
- // UseResizeColumnsOptions,
39
- // UseResizeColumnsState,
40
- UseRowSelectHooks,
41
- UseRowSelectInstanceProps,
42
- UseRowSelectOptions,
43
- UseRowSelectRowProps,
44
- UseRowSelectState,
45
- // UseRowStateCellProps,
46
- // UseRowStateInstanceProps,
47
- // UseRowStateOptions,
48
- // UseRowStateRowProps,
49
- // UseRowStateState,
50
- UseSortByColumnOptions,
51
- UseSortByColumnProps,
52
- UseSortByHooks,
53
- UseSortByInstanceProps,
54
- UseSortByOptions,
55
- UseSortByState
56
- } from 'react-table';
57
-
58
- declare module 'react-table' {
59
- // take this file as-is, or comment out the sections that don't apply to your plugin configuration
60
-
61
- export interface TableOptions<D extends Record<string, unknown>>
62
- extends UseSortByOptions<D>,
63
- UseRowSelectOptions<D>,
64
- UseFiltersOptions<D>,
65
- UseGlobalFiltersOptions<D>{}
66
-
67
- // extends UseExpandedOptions<D>,
68
- // UseGroupByOptions<D>,
69
- // UsePaginationOptions<D>,
70
- // UseResizeColumnsOptions<D>,
71
- // UseRowSelectOptions<D>,
72
- // UseRowStateOptions<D>,
73
- // UseSortByOptions<D>,
74
- // // note that having Record here allows you to add anything to the options, this matches the spirit of the
75
- // // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
76
- // // feature set, this is a safe default.
77
- // Record<string, any> {}
78
-
79
- export interface Hooks<D extends Record<string, unknown> = Record<string, unknown>>
80
- extends UseSortByHooks<D>,
81
- UseRowSelectHooks {}
82
- // extends UseExpandedHooks<D>,
83
- // UseGroupByHooks<D>,
84
- // UseRowSelectHooks<D>,
85
- // UseSortByHooks<D> {}
86
-
87
- export interface TableInstance<D extends Record<string, unknown> = Record<string, unknown>>
88
- extends UseSortByInstanceProps<D>,
89
- UseRowSelectInstanceProps<D>,
90
- UseFiltersInstanceProps<D>,
91
- UseGlobalFiltersInstanceProps<D>{}
92
- // extends UseColumnOrderInstanceProps<D>,
93
- // UseExpandedInstanceProps<D>,
94
- // UseGroupByInstanceProps<D>,
95
- // UsePaginationInstanceProps<D>,
96
- // UseRowSelectInstanceProps<D>,
97
- // UseRowStateInstanceProps<D>,
98
- // UseSortByInstanceProps<D> {}
99
-
100
- export interface TableState<D extends Record<string, unknown> = Record<string, unknown>>
101
- extends UseSortByState<D>,
102
- UseRowSelectState<D>,
103
- UseFiltersState<D>,
104
- UseGlobalFiltersState<D> {}
105
- // extends UseColumnOrderState<D>,
106
- // UseExpandedState<D>,
107
- // UseGroupByState<D>,
108
- // UsePaginationState<D>,
109
- // UseResizeColumnsState<D>,
110
- // UseRowSelectState<D>,
111
- // UseRowStateState<D>,
112
- // UseSortByState<D> {}
113
-
114
- export interface ColumnInterface<D extends Record<string, unknown> = Record<string, unknown>>
115
- extends UseSortByColumnOptions<D>,
116
- UseFiltersColumnOptions<D>,
117
- UseGlobalFiltersColumnOptions<D> {}
118
- // UseGroupByColumnOptions<D>,
119
- // UseResizeColumnsColumnOptions<D>,
120
- // UseSortByColumnOptions<D> {}
121
-
122
- export interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>>
123
- extends UseSortByColumnProps<D>,
124
- UseFiltersColumnProps<D> {}
125
- // UseGroupByColumnProps<D>,
126
- // UseResizeColumnsColumnProps<D>,
127
- // UseSortByColumnProps<D> {}
128
-
129
- // export interface Cell<D extends Record<string, unknown> = Record<string, unknown>, V = any>
130
- // extends UseGroupByCellProps<D>,
131
- // UseRowStateCellProps<D> {}
132
-
133
- export interface Row<D extends Record<string, unknown> = Record<string, unknown>>
134
- extends UseRowSelectRowProps<D> {}
135
- // extends UseExpandedRowProps<D>,
136
- // UseGroupByRowProps<D>,
137
- // UseRowSelectRowProps<D>,
138
- // UseRowStateRowProps<D> {}
1
+ /**
2
+ * In order to add typings for various react-table plugins, the below should be selectively
3
+ * uncommented based on what we are using.
4
+ *
5
+ * Refer: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table
6
+ */
7
+
8
+ import {
9
+ // UseColumnOrderInstanceProps,
10
+ // UseColumnOrderState,
11
+ // UseExpandedHooks,
12
+ // UseExpandedInstanceProps,
13
+ // UseExpandedOptions,
14
+ // UseExpandedRowProps,
15
+ // UseExpandedState,
16
+ UseFiltersColumnOptions,
17
+ UseFiltersColumnProps,
18
+ UseFiltersInstanceProps,
19
+ UseFiltersOptions,
20
+ UseFiltersState,
21
+ UseGlobalFiltersColumnOptions,
22
+ UseGlobalFiltersInstanceProps,
23
+ UseGlobalFiltersOptions,
24
+ UseGlobalFiltersState,
25
+ // UseGroupByCellProps,
26
+ // UseGroupByColumnOptions,
27
+ // UseGroupByColumnProps,
28
+ // UseGroupByHooks,
29
+ // UseGroupByInstanceProps,
30
+ // UseGroupByOptions,
31
+ // UseGroupByRowProps,
32
+ // UseGroupByState,
33
+ // UsePaginationInstanceProps,
34
+ // UsePaginationOptions,
35
+ // UsePaginationState,
36
+ // UseResizeColumnsColumnOptions,
37
+ // UseResizeColumnsColumnProps,
38
+ // UseResizeColumnsOptions,
39
+ // UseResizeColumnsState,
40
+ UseRowSelectHooks,
41
+ UseRowSelectInstanceProps,
42
+ UseRowSelectOptions,
43
+ UseRowSelectRowProps,
44
+ UseRowSelectState,
45
+ // UseRowStateCellProps,
46
+ // UseRowStateInstanceProps,
47
+ // UseRowStateOptions,
48
+ // UseRowStateRowProps,
49
+ // UseRowStateState,
50
+ UseSortByColumnOptions,
51
+ UseSortByColumnProps,
52
+ UseSortByHooks,
53
+ UseSortByInstanceProps,
54
+ UseSortByOptions,
55
+ UseSortByState
56
+ } from 'react-table';
57
+
58
+ declare module 'react-table' {
59
+ // take this file as-is, or comment out the sections that don't apply to your plugin configuration
60
+
61
+ export interface TableOptions<D extends Record<string, unknown>>
62
+ extends UseSortByOptions<D>,
63
+ UseRowSelectOptions<D>,
64
+ UseFiltersOptions<D>,
65
+ UseGlobalFiltersOptions<D>{}
66
+
67
+ // extends UseExpandedOptions<D>,
68
+ // UseGroupByOptions<D>,
69
+ // UsePaginationOptions<D>,
70
+ // UseResizeColumnsOptions<D>,
71
+ // UseRowSelectOptions<D>,
72
+ // UseRowStateOptions<D>,
73
+ // UseSortByOptions<D>,
74
+ // // note that having Record here allows you to add anything to the options, this matches the spirit of the
75
+ // // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
76
+ // // feature set, this is a safe default.
77
+ // Record<string, any> {}
78
+
79
+ export interface Hooks<D extends Record<string, unknown> = Record<string, unknown>>
80
+ extends UseSortByHooks<D>,
81
+ UseRowSelectHooks {}
82
+ // extends UseExpandedHooks<D>,
83
+ // UseGroupByHooks<D>,
84
+ // UseRowSelectHooks<D>,
85
+ // UseSortByHooks<D> {}
86
+
87
+ export interface TableInstance<D extends Record<string, unknown> = Record<string, unknown>>
88
+ extends UseSortByInstanceProps<D>,
89
+ UseRowSelectInstanceProps<D>,
90
+ UseFiltersInstanceProps<D>,
91
+ UseGlobalFiltersInstanceProps<D>{}
92
+ // extends UseColumnOrderInstanceProps<D>,
93
+ // UseExpandedInstanceProps<D>,
94
+ // UseGroupByInstanceProps<D>,
95
+ // UsePaginationInstanceProps<D>,
96
+ // UseRowSelectInstanceProps<D>,
97
+ // UseRowStateInstanceProps<D>,
98
+ // UseSortByInstanceProps<D> {}
99
+
100
+ export interface TableState<D extends Record<string, unknown> = Record<string, unknown>>
101
+ extends UseSortByState<D>,
102
+ UseRowSelectState<D>,
103
+ UseFiltersState<D>,
104
+ UseGlobalFiltersState<D> {}
105
+ // extends UseColumnOrderState<D>,
106
+ // UseExpandedState<D>,
107
+ // UseGroupByState<D>,
108
+ // UsePaginationState<D>,
109
+ // UseResizeColumnsState<D>,
110
+ // UseRowSelectState<D>,
111
+ // UseRowStateState<D>,
112
+ // UseSortByState<D> {}
113
+
114
+ export interface ColumnInterface<D extends Record<string, unknown> = Record<string, unknown>>
115
+ extends UseSortByColumnOptions<D>,
116
+ UseFiltersColumnOptions<D>,
117
+ UseGlobalFiltersColumnOptions<D> {}
118
+ // UseGroupByColumnOptions<D>,
119
+ // UseResizeColumnsColumnOptions<D>,
120
+ // UseSortByColumnOptions<D> {}
121
+
122
+ export interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>>
123
+ extends UseSortByColumnProps<D>,
124
+ UseFiltersColumnProps<D> {}
125
+ // UseGroupByColumnProps<D>,
126
+ // UseResizeColumnsColumnProps<D>,
127
+ // UseSortByColumnProps<D> {}
128
+
129
+ // export interface Cell<D extends Record<string, unknown> = Record<string, unknown>, V = any>
130
+ // extends UseGroupByCellProps<D>,
131
+ // UseRowStateCellProps<D> {}
132
+
133
+ export interface Row<D extends Record<string, unknown> = Record<string, unknown>>
134
+ extends UseRowSelectRowProps<D> {}
135
+ // extends UseExpandedRowProps<D>,
136
+ // UseGroupByRowProps<D>,
137
+ // UseRowSelectRowProps<D>,
138
+ // UseRowStateRowProps<D> {}
139
139
  }
@@ -1,14 +1,14 @@
1
- /**
2
- * Define our templates as a module so that we can use
3
- * import statements just the same as we do for other
4
- * ts/js code.
5
- */
6
- declare module '*.handlebars';
7
- declare module '*.hbs';
8
- declare module '*.scss';
9
- declare module '*.svg';
10
-
11
- declare module '*.json' {
12
- export const value: any;
13
- export default value;
14
- }
1
+ /**
2
+ * Define our templates as a module so that we can use
3
+ * import statements just the same as we do for other
4
+ * ts/js code.
5
+ */
6
+ declare module '*.handlebars';
7
+ declare module '*.hbs';
8
+ declare module '*.scss';
9
+ declare module '*.svg';
10
+
11
+ declare module '*.json' {
12
+ export const value: any;
13
+ export default value;
14
+ }