@clickview/curator 1.43.1 → 1.43.3

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/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@clickview/curator",
3
- "version": "1.43.1",
4
- "description": "curator",
5
- "main": "dist/curator-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": "Matt Trengrove",
20
- "license": "ISC",
21
- "devDependencies": {
22
- "@types/cropperjs": "1.3.0",
23
- "@types/react-dates": "21.8.1",
24
- "@types/react-transition-group": "4.2.3",
25
- "@types/yup": "0.26.24"
26
- },
27
- "dependencies": {
28
- "@clickview/styles": "1.32.0",
29
- "cropperjs": "1.5.6",
30
- "moment": "2.30.1",
31
- "react-color-palette": "6.2.0",
32
- "react-dates": "21.8.0",
33
- "yup": "0.27.0"
34
- },
35
- "babel": {
36
- "presets": [
37
- [
38
- "@babel/preset-env",
39
- {
40
- "corejs": 2,
41
- "useBuiltIns": "entry"
42
- }
43
- ]
44
- ]
45
- }
46
- }
1
+ {
2
+ "name": "@clickview/curator",
3
+ "version": "1.43.3",
4
+ "description": "curator",
5
+ "main": "dist/curator-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": "Matt Trengrove",
20
+ "license": "ISC",
21
+ "devDependencies": {
22
+ "@types/cropperjs": "1.3.0",
23
+ "@types/react-dates": "21.8.1",
24
+ "@types/react-transition-group": "4.2.3",
25
+ "@types/yup": "0.26.24"
26
+ },
27
+ "dependencies": {
28
+ "@clickview/styles": "1.32.0",
29
+ "cropperjs": "1.5.6",
30
+ "moment": "2.30.1",
31
+ "react-color-palette": "6.2.0",
32
+ "react-dates": "21.8.0",
33
+ "yup": "0.27.0"
34
+ },
35
+ "babel": {
36
+ "presets": [
37
+ [
38
+ "@babel/preset-env",
39
+ {
40
+ "corejs": 2,
41
+ "useBuiltIns": "entry"
42
+ }
43
+ ]
44
+ ]
45
+ }
46
+ }
@@ -1,29 +1,29 @@
1
- const externalModules = {
2
- '_': [ /^underscore$/i, /^_$/i ],
3
- 'Backbone': /^backbone$/i,
4
- 'Marionette': [ /^backbone\.marionette$/i, /^marionette$/i ],
5
- 'Handlebars': /^handlebars$/i,
6
- 'bootstrap': /^bootstrap$/i,
7
- 'Backbone.Radio': /^backbone\.radio$/i,
8
- '$': [ /^jquery$/i, /^\$/ ]
9
- };
10
-
11
- exports.mapExternalModules = ({ request }, callback) => {
12
- for (var key in externalModules) {
13
- if (!externalModules.hasOwnProperty(key))
14
- continue;
15
-
16
- let arr = externalModules[key];
17
-
18
- if (!Array.isArray(arr))
19
- arr = [arr];
20
-
21
- for (var i = 0; i < arr.length; i++) {
22
- if (arr[i].test(request)) {
23
- return callback(null, key);
24
- }
25
- }
26
- }
27
-
28
- callback();
29
- };
1
+ const externalModules = {
2
+ '_': [ /^underscore$/i, /^_$/i ],
3
+ 'Backbone': /^backbone$/i,
4
+ 'Marionette': [ /^backbone\.marionette$/i, /^marionette$/i ],
5
+ 'Handlebars': /^handlebars$/i,
6
+ 'bootstrap': /^bootstrap$/i,
7
+ 'Backbone.Radio': /^backbone\.radio$/i,
8
+ '$': [ /^jquery$/i, /^\$/ ]
9
+ };
10
+
11
+ exports.mapExternalModules = ({ request }, callback) => {
12
+ for (var key in externalModules) {
13
+ if (!externalModules.hasOwnProperty(key))
14
+ continue;
15
+
16
+ let arr = externalModules[key];
17
+
18
+ if (!Array.isArray(arr))
19
+ arr = [arr];
20
+
21
+ for (var i = 0; i < arr.length; i++) {
22
+ if (arr[i].test(request)) {
23
+ return callback(null, key);
24
+ }
25
+ }
26
+ }
27
+
28
+ callback();
29
+ };
@@ -1,7 +1,7 @@
1
- import { ColumnMeta } from '@tanstack/react-table';
2
-
3
- declare module '@tanstack/react-table' {
4
- interface ColumnMeta<TData extends RowData, TValue> {
5
- columnFilterLabel?: string;
6
- }
7
- }
1
+ import { ColumnMeta } from '@tanstack/react-table';
2
+
3
+ declare module '@tanstack/react-table' {
4
+ interface ColumnMeta<TData extends RowData, TValue> {
5
+ columnFilterLabel?: string;
6
+ }
7
+ }
@@ -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,25 +1,25 @@
1
- declare namespace ClickView {
2
- declare namespace Config {
3
- declare namespace Resources {
4
- declare const CurationStudioThumbnailReviewerId: string;
5
- }
6
-
7
- declare namespace Urls {
8
- declare const ImageAPI: string;
9
- declare const FileApi: string;
10
- declare const PlayerApi: string;
11
- declare const LiteUrl: string;
12
- declare const RightslineAdmin: string;
13
- declare const StreamableUrl: string;
14
- }
15
- }
16
-
17
- declare namespace User {
18
- declare const userId: string;
19
- declare const firstName: string;
20
- declare const surname: string;
21
- declare const isDev: boolean;
22
- declare const name: string;
23
- declare const countryCode: string;
24
- }
1
+ declare namespace ClickView {
2
+ declare namespace Config {
3
+ declare namespace Resources {
4
+ declare const CurationStudioThumbnailReviewerId: string;
5
+ }
6
+
7
+ declare namespace Urls {
8
+ declare const ImageAPI: string;
9
+ declare const FileApi: string;
10
+ declare const PlayerApi: string;
11
+ declare const LiteUrl: string;
12
+ declare const RightslineAdmin: string;
13
+ declare const StreamableUrl: string;
14
+ }
15
+ }
16
+
17
+ declare namespace User {
18
+ declare const userId: string;
19
+ declare const firstName: string;
20
+ declare const surname: string;
21
+ declare const isDev: boolean;
22
+ declare const name: string;
23
+ declare const countryCode: string;
24
+ }
25
25
  }
@@ -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,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
  }