@clickview/online 0.30.2-dev.2 → 0.30.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.
@@ -13,26 +13,6 @@ License: MIT
13
13
 
14
14
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
15
15
 
16
- /**
17
- * @license React
18
- * react-dom-server-legacy.browser.production.min.js
19
- *
20
- * Copyright (c) Facebook, Inc. and its affiliates.
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE file in the root directory of this source tree.
24
- */
25
-
26
- /**
27
- * @license React
28
- * react-dom-server.browser.production.min.js
29
- *
30
- * Copyright (c) Facebook, Inc. and its affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */
35
-
36
16
  /** @license React v16.13.1
37
17
  * react-is.production.min.js
38
18
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/online",
3
- "version": "0.30.2-dev.2",
3
+ "version": "0.30.2-rc.0",
4
4
  "description": "Online",
5
5
  "main": "dist/online-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@types/yup": "0.26.24"
25
25
  },
26
26
  "dependencies": {
27
- "@clickview/styles": "1.31.1-dev.2",
27
+ "@clickview/styles": "1.31.1-rc.0",
28
28
  "intersection-observer": "0.11.0",
29
29
  "yup": "0.27.0"
30
30
  },
@@ -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,72 +1,72 @@
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
-
10
- declare namespace Data {
11
- declare namespace Config {
12
- declare const env: string;
13
- declare namespace region {
14
- declare const code: string;
15
- }
16
- declare namespace urls {
17
- declare const onlineUrl: string;
18
- declare const companyWebsite: string;
19
- declare const trainingChannelId: string;
20
- }
21
- }
22
-
23
- declare namespace User {
24
- declare namespace presentation {
25
- declare const id: string;
26
- }
27
-
28
- declare const workspaceId: string;
29
- }
30
- }
31
- declare namespace currentUser {
32
- declare function hasSubjects(): boolean;
33
- declare function hasMoviesAndTv(): boolean;
34
- declare function get(key: string): any;
35
-
36
- declare function getInstanceCountryCode(): string;
37
- declare function getInstanceRegion(): string;
38
- declare function getContentRegion(): string;
39
- declare function getCountryCode(): string;
40
-
41
- declare function getCustomerType(): number;
42
- declare function isPrimaryCustomer(): boolean;
43
- declare function isTertiaryCustomer(): boolean;
44
-
45
- declare function isStudent(): boolean;
46
- declare function isAdmin(): boolean;
47
- declare function isStaff(): boolean;
48
- declare function isAuthenticated(): boolean;
49
- declare function hasOnlineProduct(): boolean;
50
-
51
- declare function canUseInteractives(): boolean;
52
- declare function isFreeEduScotCustomer(): boolean;
53
- declare function hasWestOSLibrary(): boolean;
54
- declare function hasFreeProduct(): boolean;
55
-
56
- declare function hasCurriculum(): boolean;
57
- declare function getDashboardLayout(): DashboardLayout;
58
-
59
- declare function allowExchangeContribute(): boolean;
60
- declare function hasCompletedOnboarding(): boolean;
61
- declare function completeOnboarding(): void;
62
- declare function mustCompleteOnboarding(): boolean;
63
- declare function getBulkOnboardingPreferencesState(): import('libs/shared/enums/BulkOnboardingPreferencesState').BulkOnboardingPreferencesState;
64
- declare function getMaxMasterRating(): number;
65
- }
66
- }
67
-
68
- declare namespace EasyMoney {
69
- declare namespace Events {
70
- declare function trigger(eventName: string, data?: any);
71
- }
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
+
10
+ declare namespace Data {
11
+ declare namespace Config {
12
+ declare const env: string;
13
+ declare namespace region {
14
+ declare const code: string;
15
+ }
16
+ declare namespace urls {
17
+ declare const onlineUrl: string;
18
+ declare const companyWebsite: string;
19
+ declare const trainingChannelId: string;
20
+ }
21
+ }
22
+
23
+ declare namespace User {
24
+ declare namespace presentation {
25
+ declare const id: string;
26
+ }
27
+
28
+ declare const workspaceId: string;
29
+ }
30
+ }
31
+ declare namespace currentUser {
32
+ declare function hasSubjects(): boolean;
33
+ declare function hasMoviesAndTv(): boolean;
34
+ declare function get(key: string): any;
35
+
36
+ declare function getInstanceCountryCode(): string;
37
+ declare function getInstanceRegion(): string;
38
+ declare function getContentRegion(): string;
39
+ declare function getCountryCode(): string;
40
+
41
+ declare function getCustomerType(): number;
42
+ declare function isPrimaryCustomer(): boolean;
43
+ declare function isTertiaryCustomer(): boolean;
44
+
45
+ declare function isStudent(): boolean;
46
+ declare function isAdmin(): boolean;
47
+ declare function isStaff(): boolean;
48
+ declare function isAuthenticated(): boolean;
49
+ declare function hasOnlineProduct(): boolean;
50
+
51
+ declare function canUseInteractives(): boolean;
52
+ declare function isFreeEduScotCustomer(): boolean;
53
+ declare function hasWestOSLibrary(): boolean;
54
+ declare function hasFreeProduct(): boolean;
55
+
56
+ declare function hasCurriculum(): boolean;
57
+ declare function getDashboardLayout(): DashboardLayout;
58
+
59
+ declare function allowExchangeContribute(): boolean;
60
+ declare function hasCompletedOnboarding(): boolean;
61
+ declare function completeOnboarding(): void;
62
+ declare function mustCompleteOnboarding(): boolean;
63
+ declare function getBulkOnboardingPreferencesState(): import('libs/shared/enums/BulkOnboardingPreferencesState').BulkOnboardingPreferencesState;
64
+ declare function getMaxMasterRating(): number;
65
+ }
66
+ }
67
+
68
+ declare namespace EasyMoney {
69
+ declare namespace Events {
70
+ declare function trigger(eventName: string, data?: any);
71
+ }
72
72
  }
@@ -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
  }
@@ -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
  }