@clickview/online 0.41.1 → 0.42.0-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 +5 -13
- package/dist/online-app.js +1 -1
- package/package.json +42 -42
- package/tooling/externals.js +59 -59
- package/typings/libs/CVEvents.d.ts +12 -12
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/FutureCoreHelper.d.ts +77 -77
- package/typings/libs/LazyLoad.d.ts +21 -21
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/google-api.d.ts +93 -93
- package/typings/libs/react-table-config.d.ts +138 -138
- package/typings/utils/imports.d.ts +14 -14
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clickview/online",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Online",
|
|
5
|
-
"main": "dist/online-app.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
|
|
9
|
-
"build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
14
|
-
},
|
|
15
|
-
"cv": {
|
|
16
|
-
"publishable": true,
|
|
17
|
-
"rebuildable": true
|
|
18
|
-
},
|
|
19
|
-
"author": "",
|
|
20
|
-
"license": "ISC",
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@types/linkifyjs": "2.1.3",
|
|
23
|
-
"@types/react-transition-group": "4.2.3",
|
|
24
|
-
"@types/yup": "0.26.24"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@clickview/styles": "1.32.0",
|
|
28
|
-
"intersection-observer": "0.11.0",
|
|
29
|
-
"yup": "0.27.0"
|
|
30
|
-
},
|
|
31
|
-
"babel": {
|
|
32
|
-
"presets": [
|
|
33
|
-
[
|
|
34
|
-
"@babel/preset-env",
|
|
35
|
-
{
|
|
36
|
-
"corejs": 3,
|
|
37
|
-
"useBuiltIns": "entry"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/online",
|
|
3
|
+
"version": "0.42.0-rc.1",
|
|
4
|
+
"description": "Online",
|
|
5
|
+
"main": "dist/online-app.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
|
|
9
|
+
"build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
14
|
+
},
|
|
15
|
+
"cv": {
|
|
16
|
+
"publishable": true,
|
|
17
|
+
"rebuildable": true
|
|
18
|
+
},
|
|
19
|
+
"author": "",
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/linkifyjs": "2.1.3",
|
|
23
|
+
"@types/react-transition-group": "4.2.3",
|
|
24
|
+
"@types/yup": "0.26.24"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@clickview/styles": "1.32.0",
|
|
28
|
+
"intersection-observer": "0.11.0",
|
|
29
|
+
"yup": "0.27.0"
|
|
30
|
+
},
|
|
31
|
+
"babel": {
|
|
32
|
+
"presets": [
|
|
33
|
+
[
|
|
34
|
+
"@babel/preset-env",
|
|
35
|
+
{
|
|
36
|
+
"corejs": 3,
|
|
37
|
+
"useBuiltIns": "entry"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
package/tooling/externals.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
const externalModules = {
|
|
2
|
-
'CVEvents': /^cvevents$/i,
|
|
3
|
-
'CVLanguages': /^CVLanguages$/i,
|
|
4
|
-
|
|
5
|
-
'Cropper': [ /^cropperjs$/i, /^cropper$/i ],
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Shared Dependencies
|
|
9
|
-
*/
|
|
10
|
-
'FontAwesome': [ /^@fortawesome\/fontawesome$/i, /^fontawesome$/i ],
|
|
11
|
-
'ReactBootstrap': [ /^react-bootstrap$/i, /^reactbootstrap$/i ],
|
|
12
|
-
'ReactTransitionGroup': [ /^react-transition-group$/i, /^reacttransitiongroup$/i ],
|
|
13
|
-
'ReactIntersectionObserver': [ /^react-intersection-observer$/i, /^reactintersectionobserver$/i ],
|
|
14
|
-
'Autosuggest': [ /^react-autosuggest$/i, /^autosuggest$/i ],
|
|
15
|
-
'Backbone.Validation': [ /^backbone-validation$/i, /^backbone\.validation$/i ],
|
|
16
|
-
'Bloodhound': /^bloodhound$/i,
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Common Dependencies
|
|
20
|
-
*/
|
|
21
|
-
'React': /^react$/i,
|
|
22
|
-
'ReactDOM': [ /^react-dom$/i, /^ReactDOM$/i ],
|
|
23
|
-
'_': [ /^underscore$/i, /^_$/i ],
|
|
24
|
-
'Backbone': /^backbone$/i,
|
|
25
|
-
'Marionette': [ /^backbone\.marionette$/i, /^marionette$/i ],
|
|
26
|
-
'Handlebars': /^handlebars$/i,
|
|
27
|
-
'bootstrap': /^bootstrap$/i,
|
|
28
|
-
'Backbone.Radio': /^backbone\.radio$/i,
|
|
29
|
-
'signalR': /^signalr$/i,
|
|
30
|
-
'Redux': /^redux$/i,
|
|
31
|
-
'ReactRedux': [ /^react-redux$/i, /^reactredux$/i ],
|
|
32
|
-
'DOMPurify': /^dompurify$/i,
|
|
33
|
-
'$': [ /^jquery$/i, /^\$/ ],
|
|
34
|
-
'Polyglot': [ /^node-polyglot$/i, /^polyglot$/i ],
|
|
35
|
-
'moment': /^moment$/i,
|
|
36
|
-
'linkify': [ /^linkifyjs$/i, /^linkify$/i ],
|
|
37
|
-
'gapi': [/^gapi$/i]
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
exports.mapExternalModules = ({ context, request }, callback) => {
|
|
41
|
-
for (var key in externalModules) {
|
|
42
|
-
if (!externalModules.hasOwnProperty(key))
|
|
43
|
-
continue;
|
|
44
|
-
|
|
45
|
-
let arr = externalModules[key];
|
|
46
|
-
|
|
47
|
-
if (!Array.isArray(arr))
|
|
48
|
-
arr = [arr];
|
|
49
|
-
|
|
50
|
-
for (var i = 0; i < arr.length; i++) {
|
|
51
|
-
if (arr[i].test(request)) {
|
|
52
|
-
return callback(null, key);
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
callback();
|
|
59
|
-
};
|
|
1
|
+
const externalModules = {
|
|
2
|
+
'CVEvents': /^cvevents$/i,
|
|
3
|
+
'CVLanguages': /^CVLanguages$/i,
|
|
4
|
+
|
|
5
|
+
'Cropper': [ /^cropperjs$/i, /^cropper$/i ],
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Shared Dependencies
|
|
9
|
+
*/
|
|
10
|
+
'FontAwesome': [ /^@fortawesome\/fontawesome$/i, /^fontawesome$/i ],
|
|
11
|
+
'ReactBootstrap': [ /^react-bootstrap$/i, /^reactbootstrap$/i ],
|
|
12
|
+
'ReactTransitionGroup': [ /^react-transition-group$/i, /^reacttransitiongroup$/i ],
|
|
13
|
+
'ReactIntersectionObserver': [ /^react-intersection-observer$/i, /^reactintersectionobserver$/i ],
|
|
14
|
+
'Autosuggest': [ /^react-autosuggest$/i, /^autosuggest$/i ],
|
|
15
|
+
'Backbone.Validation': [ /^backbone-validation$/i, /^backbone\.validation$/i ],
|
|
16
|
+
'Bloodhound': /^bloodhound$/i,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Common Dependencies
|
|
20
|
+
*/
|
|
21
|
+
'React': /^react$/i,
|
|
22
|
+
'ReactDOM': [ /^react-dom$/i, /^ReactDOM$/i ],
|
|
23
|
+
'_': [ /^underscore$/i, /^_$/i ],
|
|
24
|
+
'Backbone': /^backbone$/i,
|
|
25
|
+
'Marionette': [ /^backbone\.marionette$/i, /^marionette$/i ],
|
|
26
|
+
'Handlebars': /^handlebars$/i,
|
|
27
|
+
'bootstrap': /^bootstrap$/i,
|
|
28
|
+
'Backbone.Radio': /^backbone\.radio$/i,
|
|
29
|
+
'signalR': /^signalr$/i,
|
|
30
|
+
'Redux': /^redux$/i,
|
|
31
|
+
'ReactRedux': [ /^react-redux$/i, /^reactredux$/i ],
|
|
32
|
+
'DOMPurify': /^dompurify$/i,
|
|
33
|
+
'$': [ /^jquery$/i, /^\$/ ],
|
|
34
|
+
'Polyglot': [ /^node-polyglot$/i, /^polyglot$/i ],
|
|
35
|
+
'moment': /^moment$/i,
|
|
36
|
+
'linkify': [ /^linkifyjs$/i, /^linkify$/i ],
|
|
37
|
+
'gapi': [/^gapi$/i]
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.mapExternalModules = ({ context, request }, callback) => {
|
|
41
|
+
for (var key in externalModules) {
|
|
42
|
+
if (!externalModules.hasOwnProperty(key))
|
|
43
|
+
continue;
|
|
44
|
+
|
|
45
|
+
let arr = externalModules[key];
|
|
46
|
+
|
|
47
|
+
if (!Array.isArray(arr))
|
|
48
|
+
arr = [arr];
|
|
49
|
+
|
|
50
|
+
for (var i = 0; i < arr.length; i++) {
|
|
51
|
+
if (arr[i].test(request)) {
|
|
52
|
+
return callback(null, key);
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
callback();
|
|
59
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export = CVEvents;
|
|
2
|
-
|
|
3
|
-
export as namespace CVEvents;
|
|
4
|
-
|
|
5
|
-
declare namespace CVEvents {
|
|
6
|
-
class CVEventsApi {
|
|
7
|
-
constructor(t: any);
|
|
8
|
-
off(t: any, e?: any): void;
|
|
9
|
-
on(t: any, e: any): void;
|
|
10
|
-
one(eventName: string, callback: (...args: any) => any): void;
|
|
11
|
-
trigger(t: any, ...args: any[]): void;
|
|
12
|
-
}
|
|
1
|
+
export = CVEvents;
|
|
2
|
+
|
|
3
|
+
export as namespace CVEvents;
|
|
4
|
+
|
|
5
|
+
declare namespace CVEvents {
|
|
6
|
+
class CVEventsApi {
|
|
7
|
+
constructor(t: any);
|
|
8
|
+
off(t: any, e?: any): void;
|
|
9
|
+
on(t: any, e: any): void;
|
|
10
|
+
one(eventName: string, callback: (...args: any) => any): void;
|
|
11
|
+
trigger(t: any, ...args: any[]): void;
|
|
12
|
+
}
|
|
13
13
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
interface SetLanguageOptions {
|
|
2
|
-
validate: boolean;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface LanguageSet {
|
|
6
|
-
[languagecode: string]: Language;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface Language {
|
|
10
|
-
englishName: string;
|
|
11
|
-
nativeName: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface ICVLanguages {
|
|
15
|
-
VERSION: string;
|
|
16
|
-
|
|
17
|
-
getEnglishName(languageCode: string): string;
|
|
18
|
-
getNativeName(languageCode: string): string;
|
|
19
|
-
getFullEnglishName(languageCode: string): string;
|
|
20
|
-
getFullNativeName(languageCode: string): string;
|
|
21
|
-
getEnglishNameContains(englishName: string): Language[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare let CVLanguages: ICVLanguages;
|
|
1
|
+
interface SetLanguageOptions {
|
|
2
|
+
validate: boolean;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface LanguageSet {
|
|
6
|
+
[languagecode: string]: Language;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface Language {
|
|
10
|
+
englishName: string;
|
|
11
|
+
nativeName: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ICVLanguages {
|
|
15
|
+
VERSION: string;
|
|
16
|
+
|
|
17
|
+
getEnglishName(languageCode: string): string;
|
|
18
|
+
getNativeName(languageCode: string): string;
|
|
19
|
+
getFullEnglishName(languageCode: string): string;
|
|
20
|
+
getFullNativeName(languageCode: string): string;
|
|
21
|
+
getEnglishNameContains(englishName: string): Language[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare let CVLanguages: ICVLanguages;
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
declare namespace ClickView {
|
|
2
|
-
declare namespace Shared {
|
|
3
|
-
declare namespace Utils {
|
|
4
|
-
declare namespace FutureCoreHelper {
|
|
5
|
-
declare function addToPlaylistPopup(id: string): void;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare namespace Services {
|
|
10
|
-
declare namespace AttributionService {
|
|
11
|
-
declare function enrichUrl(originalUrl: string): string;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare namespace Data {
|
|
17
|
-
declare namespace Config {
|
|
18
|
-
declare const env: string;
|
|
19
|
-
declare namespace region {
|
|
20
|
-
declare const code: string;
|
|
21
|
-
}
|
|
22
|
-
declare namespace urls {
|
|
23
|
-
declare const onlineUrl: string;
|
|
24
|
-
declare const companyWebsite: string;
|
|
25
|
-
declare const trainingChannelId: string;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare namespace User {
|
|
30
|
-
declare namespace presentation {
|
|
31
|
-
declare const id: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare const workspaceId: string;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
declare namespace currentUser {
|
|
38
|
-
declare function hasSubjects(): boolean;
|
|
39
|
-
declare function hasMoviesAndTv(): boolean;
|
|
40
|
-
declare function get(key: string): any;
|
|
41
|
-
|
|
42
|
-
declare function getInstanceCountryCode(): string;
|
|
43
|
-
declare function getInstanceRegion(): string;
|
|
44
|
-
declare function getContentRegion(): string;
|
|
45
|
-
declare function getCountryCode(): string;
|
|
46
|
-
|
|
47
|
-
declare function getCustomerType(): number;
|
|
48
|
-
declare function isPrimaryCustomer(): boolean;
|
|
49
|
-
declare function isTertiaryCustomer(): boolean;
|
|
50
|
-
|
|
51
|
-
declare function isStudent(): boolean;
|
|
52
|
-
declare function isAdmin(): boolean;
|
|
53
|
-
declare function isStaff(): boolean;
|
|
54
|
-
declare function isAuthenticated(): boolean;
|
|
55
|
-
declare function hasOnlineProduct(): boolean;
|
|
56
|
-
|
|
57
|
-
declare function canUseInteractives(): boolean;
|
|
58
|
-
declare function isFreeEduScotCustomer(): boolean;
|
|
59
|
-
declare function hasWestOSLibrary(): boolean;
|
|
60
|
-
declare function hasFreeProduct(): boolean;
|
|
61
|
-
|
|
62
|
-
declare function hasCurriculum(): boolean;
|
|
63
|
-
declare function getDashboardLayout(): DashboardLayout;
|
|
64
|
-
|
|
65
|
-
declare function allowExchangeContribute(): boolean;
|
|
66
|
-
declare function hasCompletedOnboarding(): boolean;
|
|
67
|
-
declare function completeOnboarding(): void;
|
|
68
|
-
declare function mustCompleteOnboarding(): boolean;
|
|
69
|
-
declare function getBulkOnboardingPreferencesState(): import('libs/shared/enums/BulkOnboardingPreferencesState').BulkOnboardingPreferencesState;
|
|
70
|
-
declare function getMaxMasterRating(): number;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare namespace EasyMoney {
|
|
75
|
-
declare namespace Events {
|
|
76
|
-
declare function trigger(eventName: string, data?: any);
|
|
77
|
-
}
|
|
1
|
+
declare namespace ClickView {
|
|
2
|
+
declare namespace Shared {
|
|
3
|
+
declare namespace Utils {
|
|
4
|
+
declare namespace FutureCoreHelper {
|
|
5
|
+
declare function addToPlaylistPopup(id: string): void;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare namespace Services {
|
|
10
|
+
declare namespace AttributionService {
|
|
11
|
+
declare function enrichUrl(originalUrl: string): string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare namespace Data {
|
|
17
|
+
declare namespace Config {
|
|
18
|
+
declare const env: string;
|
|
19
|
+
declare namespace region {
|
|
20
|
+
declare const code: string;
|
|
21
|
+
}
|
|
22
|
+
declare namespace urls {
|
|
23
|
+
declare const onlineUrl: string;
|
|
24
|
+
declare const companyWebsite: string;
|
|
25
|
+
declare const trainingChannelId: string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare namespace User {
|
|
30
|
+
declare namespace presentation {
|
|
31
|
+
declare const id: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare const workspaceId: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
declare namespace currentUser {
|
|
38
|
+
declare function hasSubjects(): boolean;
|
|
39
|
+
declare function hasMoviesAndTv(): boolean;
|
|
40
|
+
declare function get(key: string): any;
|
|
41
|
+
|
|
42
|
+
declare function getInstanceCountryCode(): string;
|
|
43
|
+
declare function getInstanceRegion(): string;
|
|
44
|
+
declare function getContentRegion(): string;
|
|
45
|
+
declare function getCountryCode(): string;
|
|
46
|
+
|
|
47
|
+
declare function getCustomerType(): number;
|
|
48
|
+
declare function isPrimaryCustomer(): boolean;
|
|
49
|
+
declare function isTertiaryCustomer(): boolean;
|
|
50
|
+
|
|
51
|
+
declare function isStudent(): boolean;
|
|
52
|
+
declare function isAdmin(): boolean;
|
|
53
|
+
declare function isStaff(): boolean;
|
|
54
|
+
declare function isAuthenticated(): boolean;
|
|
55
|
+
declare function hasOnlineProduct(): boolean;
|
|
56
|
+
|
|
57
|
+
declare function canUseInteractives(): boolean;
|
|
58
|
+
declare function isFreeEduScotCustomer(): boolean;
|
|
59
|
+
declare function hasWestOSLibrary(): boolean;
|
|
60
|
+
declare function hasFreeProduct(): boolean;
|
|
61
|
+
|
|
62
|
+
declare function hasCurriculum(): boolean;
|
|
63
|
+
declare function getDashboardLayout(): DashboardLayout;
|
|
64
|
+
|
|
65
|
+
declare function allowExchangeContribute(): boolean;
|
|
66
|
+
declare function hasCompletedOnboarding(): boolean;
|
|
67
|
+
declare function completeOnboarding(): void;
|
|
68
|
+
declare function mustCompleteOnboarding(): boolean;
|
|
69
|
+
declare function getBulkOnboardingPreferencesState(): import('libs/shared/enums/BulkOnboardingPreferencesState').BulkOnboardingPreferencesState;
|
|
70
|
+
declare function getMaxMasterRating(): number;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare namespace EasyMoney {
|
|
75
|
+
declare namespace Events {
|
|
76
|
+
declare function trigger(eventName: string, data?: any);
|
|
77
|
+
}
|
|
78
78
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
declare module 'react-lazy-load' {
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
export interface LazyLoadComponentProps {
|
|
5
|
-
offset?: number | string;
|
|
6
|
-
offsetVertical?: number | string;
|
|
7
|
-
offsetHorizontal?: number | string;
|
|
8
|
-
offsetTop?: number | string;
|
|
9
|
-
offsetBottom?: number | string;
|
|
10
|
-
offsetLeft?: number | string;
|
|
11
|
-
offsetRight?: number | string;
|
|
12
|
-
throttle?: number | string;
|
|
13
|
-
debounce?: boolean;
|
|
14
|
-
height?: string | number;
|
|
15
|
-
width?: string | number;
|
|
16
|
-
onContentVisible?: (...args: any) => any;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default class LazyLoad extends React.Component<LazyLoadComponentProps> {
|
|
20
|
-
constructor(props: LazyLoadComponentProps);
|
|
21
|
-
}
|
|
1
|
+
declare module 'react-lazy-load' {
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
export interface LazyLoadComponentProps {
|
|
5
|
+
offset?: number | string;
|
|
6
|
+
offsetVertical?: number | string;
|
|
7
|
+
offsetHorizontal?: number | string;
|
|
8
|
+
offsetTop?: number | string;
|
|
9
|
+
offsetBottom?: number | string;
|
|
10
|
+
offsetLeft?: number | string;
|
|
11
|
+
offsetRight?: number | string;
|
|
12
|
+
throttle?: number | string;
|
|
13
|
+
debounce?: boolean;
|
|
14
|
+
height?: string | number;
|
|
15
|
+
width?: string | number;
|
|
16
|
+
onContentVisible?: (...args: any) => any;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default class LazyLoad extends React.Component<LazyLoadComponentProps> {
|
|
20
|
+
constructor(props: LazyLoadComponentProps);
|
|
21
|
+
}
|
|
22
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare function cloneDeep<T>(obj: T): T;
|
|
2
|
-
|
|
3
|
-
declare module 'lodash.clonedeep' {
|
|
4
|
-
export = cloneDeep;
|
|
1
|
+
declare function cloneDeep<T>(obj: T): T;
|
|
2
|
+
|
|
3
|
+
declare module 'lodash.clonedeep' {
|
|
4
|
+
export = cloneDeep;
|
|
5
5
|
}
|