@clickview/lite 0.40.7 → 0.40.8

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/jest.config.js CHANGED
@@ -1,12 +1,12 @@
1
- const getBaseConfig = require('../../libs/testing/jest.base.config');
2
- const { compilerOptions } = require('./tsconfig');
3
-
4
- const paths = {
5
- ...compilerOptions.paths,
6
- 'shared/*': ['./src/shared/*'],
7
- 'apps/*': ['./src/apps/*']
8
- };
9
-
10
- delete paths['*'];
11
-
1
+ const getBaseConfig = require('../../libs/testing/jest.base.config');
2
+ const { compilerOptions } = require('./tsconfig');
3
+
4
+ const paths = {
5
+ ...compilerOptions.paths,
6
+ 'shared/*': ['./src/shared/*'],
7
+ 'apps/*': ['./src/apps/*']
8
+ };
9
+
10
+ delete paths['*'];
11
+
12
12
  module.exports = getBaseConfig(paths);
package/package.json CHANGED
@@ -1,62 +1,62 @@
1
- {
2
- "name": "@clickview/lite",
3
- "version": "0.40.7",
4
- "description": "ClickView Lite",
5
- "main": "dist/scripts/bundle.js",
6
- "types": "dist/projects/lite/src/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
- "test": "jest",
11
- "test-watch": "jest --watch"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "https://gitlab.cvinternal.net/front-end/clickview"
16
- },
17
- "cv": {
18
- "publishable": true,
19
- "rebuildable": true
20
- },
21
- "author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
22
- "license": "ISC",
23
- "devDependencies": {
24
- "@types/google.maps": "3.50.5",
25
- "@types/js-cookie": "2.2.6",
26
- "@types/marked": "0.7.3",
27
- "@types/papaparse": "5.0.3",
28
- "@types/react-copy-to-clipboard": "4.3.0",
29
- "@types/react-pdf": "5.0.0",
30
- "@types/spark-md5": "3.0.2"
31
- },
32
- "dependencies": {
33
- "@clickview/braze-client": "1.5.1",
34
- "@clickview/styles": "1.32.0",
35
- "@googlemaps/js-api-loader": "1.15.1",
36
- "@microsoft/immersive-reader-sdk": "1.0.0",
37
- "@microsoft/teams-js": "1.5.2",
38
- "@typeform/embed-react": "1.2.6",
39
- "intersection-observer": "0.11.0",
40
- "js-cookie": "2.2.1",
41
- "marked": "0.8.0",
42
- "papaparse": "5.2.0",
43
- "print-js": "1.5.0",
44
- "react-copy-to-clipboard": "5.0.2",
45
- "react-pdf": "5.0.0",
46
- "react-reverse-portal": "2.1.1",
47
- "redux-devtools-extension": "2.13.8",
48
- "spark-md5": "3.0.2",
49
- "tsparticles-confetti": "2.12.0"
50
- },
51
- "babel": {
52
- "presets": [
53
- [
54
- "@babel/preset-env",
55
- {
56
- "corejs": 3,
57
- "useBuiltIns": "entry"
58
- }
59
- ]
60
- ]
61
- }
62
- }
1
+ {
2
+ "name": "@clickview/lite",
3
+ "version": "0.40.8",
4
+ "description": "ClickView Lite",
5
+ "main": "dist/scripts/bundle.js",
6
+ "types": "dist/projects/lite/src/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
+ "test": "jest",
11
+ "test-watch": "jest --watch"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://gitlab.cvinternal.net/front-end/clickview"
16
+ },
17
+ "cv": {
18
+ "publishable": true,
19
+ "rebuildable": true
20
+ },
21
+ "author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
22
+ "license": "ISC",
23
+ "devDependencies": {
24
+ "@types/google.maps": "3.50.5",
25
+ "@types/js-cookie": "2.2.6",
26
+ "@types/marked": "0.7.3",
27
+ "@types/papaparse": "5.0.3",
28
+ "@types/react-copy-to-clipboard": "4.3.0",
29
+ "@types/react-pdf": "5.0.0",
30
+ "@types/spark-md5": "3.0.2"
31
+ },
32
+ "dependencies": {
33
+ "@clickview/braze-client": "1.5.1",
34
+ "@clickview/styles": "1.32.0",
35
+ "@googlemaps/js-api-loader": "1.15.1",
36
+ "@microsoft/immersive-reader-sdk": "1.0.0",
37
+ "@microsoft/teams-js": "1.5.2",
38
+ "@typeform/embed-react": "1.2.6",
39
+ "intersection-observer": "0.11.0",
40
+ "js-cookie": "2.2.1",
41
+ "marked": "0.8.0",
42
+ "papaparse": "5.2.0",
43
+ "print-js": "1.5.0",
44
+ "react-copy-to-clipboard": "5.0.2",
45
+ "react-pdf": "5.0.0",
46
+ "react-reverse-portal": "2.1.1",
47
+ "redux-devtools-extension": "2.13.8",
48
+ "spark-md5": "3.0.2",
49
+ "tsparticles-confetti": "2.12.0"
50
+ },
51
+ "babel": {
52
+ "presets": [
53
+ [
54
+ "@babel/preset-env",
55
+ {
56
+ "corejs": 3,
57
+ "useBuiltIns": "entry"
58
+ }
59
+ ]
60
+ ]
61
+ }
62
+ }
@@ -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,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,25 +1,25 @@
1
- interface IDocCookies {
2
-
3
- getItem(sKey: string): string;
4
-
5
- setItem(
6
- sKey: string,
7
- sValue: string,
8
- vEnd?: number | string | Date,
9
- sPath?: string,
10
- sDomain?: string,
11
- bSecure?: boolean,
12
- type?: string
13
- ): boolean;
14
-
15
- removeItem(sKey: string, sPath?: string, sDomain?: string): boolean;
16
-
17
- hasItem(sKey: string): boolean;
18
-
19
- keys(): string[];
20
-
21
- clear(sPath?: string, sDomain?: string): void;
22
-
23
- }
24
-
25
- declare let docCookies: IDocCookies;
1
+ interface IDocCookies {
2
+
3
+ getItem(sKey: string): string;
4
+
5
+ setItem(
6
+ sKey: string,
7
+ sValue: string,
8
+ vEnd?: number | string | Date,
9
+ sPath?: string,
10
+ sDomain?: string,
11
+ bSecure?: boolean,
12
+ type?: string
13
+ ): boolean;
14
+
15
+ removeItem(sKey: string, sPath?: string, sDomain?: string): boolean;
16
+
17
+ hasItem(sKey: string): boolean;
18
+
19
+ keys(): string[];
20
+
21
+ clear(sPath?: string, sDomain?: string): void;
22
+
23
+ }
24
+
25
+ declare let docCookies: IDocCookies;
@@ -1,4 +1,4 @@
1
- declare module 'draft-convert' {
2
- export const convertFromHTML: (options: any) => (html: string) => any;
3
- export const convertToHTML: (options: any) => (draftJsContent: any) => string;
1
+ declare module 'draft-convert' {
2
+ export const convertFromHTML: (options: any) => (html: string) => any;
3
+ export const convertToHTML: (options: any) => (draftJsContent: any) => string;
4
4
  }
@@ -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,83 +1,83 @@
1
- // https://wicg.github.io/IntersectionObserver/#intersection-observer-private-slots
2
-
3
- /*
4
- callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer)
5
-
6
- [Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
7
- Exposed=Window]
8
- interface IntersectionObserver {
9
- readonly attribute Element? root;
10
- readonly attribute DOMString rootMargin;
11
- readonly attribute sequence<double> thresholds;
12
- void observe(Element target);
13
- void unobserve(Element target);
14
- void disconnect();
15
- sequence<IntersectionObserverEntry> takeRecords();
16
- };
17
-
18
- [Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit)]
19
- interface IntersectionObserverEntry {
20
- readonly attribute DOMHighResTimeStamp time;
21
- readonly attribute DOMRectReadOnly rootBounds;
22
- readonly attribute DOMRectReadOnly boundingClientRect;
23
- readonly attribute DOMRectReadOnly intersectionRect;
24
- readonly attribute double intersectionRatio;
25
- readonly attribute Element target;
26
- };
27
-
28
- dictionary IntersectionObserverEntryInit {
29
- required DOMHighResTimeStamp time;
30
- required DOMRectInit rootBounds;
31
- required DOMRectInit boundingClientRect;
32
- required DOMRectInit intersectionRect;
33
- required double intersectionRatio;
34
- required Element target;
35
- };
36
-
37
- dictionary IntersectionObserverInit {
38
- Element? root = null;
39
- DOMString rootMargin = "0px";
40
- (double or sequence<double>) threshold = 0;
41
- };
42
- */
43
-
44
- interface Bounds {
45
- readonly height: number;
46
- readonly width: number;
47
- readonly top: number;
48
- readonly left: number;
49
- readonly right: number;
50
- readonly bottom: number;
51
- }
52
-
53
- interface IntersectionObserverEntry {
54
- readonly time: number;
55
- readonly rootBounds: Bounds;
56
- readonly boundingClientRect: Bounds;
57
- readonly intersectionRect: Bounds;
58
- readonly intersectionRatio: number;
59
- readonly target: Element;
60
- }
61
-
62
- type IntersectionObserverCallback = (entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void;
63
-
64
- interface IntersectionObserverInit {
65
- root?: Element | null;
66
- rootMargin?: string;
67
- threshold?: number;
68
- }
69
-
70
- declare class IntersectionObserver {
71
- readonly root: Element | null;
72
- readonly rootMargin: string;
73
- readonly thresholds: number[];
74
-
75
- constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit);
76
-
77
- observe(target: Element): void;
78
- unobserve(target: Element): void;
79
- disconnect(): void;
80
- takeRecords(): IntersectionObserverEntry[];
81
- }
82
-
1
+ // https://wicg.github.io/IntersectionObserver/#intersection-observer-private-slots
2
+
3
+ /*
4
+ callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer)
5
+
6
+ [Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
7
+ Exposed=Window]
8
+ interface IntersectionObserver {
9
+ readonly attribute Element? root;
10
+ readonly attribute DOMString rootMargin;
11
+ readonly attribute sequence<double> thresholds;
12
+ void observe(Element target);
13
+ void unobserve(Element target);
14
+ void disconnect();
15
+ sequence<IntersectionObserverEntry> takeRecords();
16
+ };
17
+
18
+ [Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit)]
19
+ interface IntersectionObserverEntry {
20
+ readonly attribute DOMHighResTimeStamp time;
21
+ readonly attribute DOMRectReadOnly rootBounds;
22
+ readonly attribute DOMRectReadOnly boundingClientRect;
23
+ readonly attribute DOMRectReadOnly intersectionRect;
24
+ readonly attribute double intersectionRatio;
25
+ readonly attribute Element target;
26
+ };
27
+
28
+ dictionary IntersectionObserverEntryInit {
29
+ required DOMHighResTimeStamp time;
30
+ required DOMRectInit rootBounds;
31
+ required DOMRectInit boundingClientRect;
32
+ required DOMRectInit intersectionRect;
33
+ required double intersectionRatio;
34
+ required Element target;
35
+ };
36
+
37
+ dictionary IntersectionObserverInit {
38
+ Element? root = null;
39
+ DOMString rootMargin = "0px";
40
+ (double or sequence<double>) threshold = 0;
41
+ };
42
+ */
43
+
44
+ interface Bounds {
45
+ readonly height: number;
46
+ readonly width: number;
47
+ readonly top: number;
48
+ readonly left: number;
49
+ readonly right: number;
50
+ readonly bottom: number;
51
+ }
52
+
53
+ interface IntersectionObserverEntry {
54
+ readonly time: number;
55
+ readonly rootBounds: Bounds;
56
+ readonly boundingClientRect: Bounds;
57
+ readonly intersectionRect: Bounds;
58
+ readonly intersectionRatio: number;
59
+ readonly target: Element;
60
+ }
61
+
62
+ type IntersectionObserverCallback = (entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void;
63
+
64
+ interface IntersectionObserverInit {
65
+ root?: Element | null;
66
+ rootMargin?: string;
67
+ threshold?: number;
68
+ }
69
+
70
+ declare class IntersectionObserver {
71
+ readonly root: Element | null;
72
+ readonly rootMargin: string;
73
+ readonly thresholds: number[];
74
+
75
+ constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit);
76
+
77
+ observe(target: Element): void;
78
+ unobserve(target: Element): void;
79
+ disconnect(): void;
80
+ takeRecords(): IntersectionObserverEntry[];
81
+ }
82
+
83
83
  export = IntersectionObserver;
@@ -1,3 +1,3 @@
1
- declare namespace shareToMicrosoftTeams {
2
- declare function renderButtons(): void;
1
+ declare namespace shareToMicrosoftTeams {
2
+ declare function renderButtons(): void;
3
3
  }