@clickview/online 0.30.2-dev.2 → 0.30.2-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.
@@ -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
+ }