@clickview/curator 1.33.4 → 1.33.5-dev.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/curator-app.css +15 -15
- package/dist/curator-app.js +1 -1
- package/dist/curator-app.js.LICENSE.txt +90 -0
- package/dist/en.json +1 -1
- package/package.json +47 -47
- package/tooling/externals.js +21 -50
- package/typings/utils/imports.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clickview/curator",
|
|
3
|
-
"version": "1.33.
|
|
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-copy-to-clipboard": "4.3.0",
|
|
24
|
-
"@types/react-dates": "21.8.1",
|
|
25
|
-
"@types/react-transition-group": "4.2.3",
|
|
26
|
-
"@types/yup": "0.26.24"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@clickview/styles": "1.31.
|
|
30
|
-
"cropperjs": "1.5.6",
|
|
31
|
-
"react-color-palette": "6.2.0",
|
|
32
|
-
"react-copy-to-clipboard": "5.0.2",
|
|
33
|
-
"react-dates": "21.8.0",
|
|
34
|
-
"yup": "0.27.0"
|
|
35
|
-
},
|
|
36
|
-
"babel": {
|
|
37
|
-
"presets": [
|
|
38
|
-
[
|
|
39
|
-
"@babel/preset-env",
|
|
40
|
-
{
|
|
41
|
-
"corejs": 2,
|
|
42
|
-
"useBuiltIns": "entry"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/curator",
|
|
3
|
+
"version": "1.33.5-dev.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-copy-to-clipboard": "4.3.0",
|
|
24
|
+
"@types/react-dates": "21.8.1",
|
|
25
|
+
"@types/react-transition-group": "4.2.3",
|
|
26
|
+
"@types/yup": "0.26.24"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@clickview/styles": "1.31.1-dev.1",
|
|
30
|
+
"cropperjs": "1.5.6",
|
|
31
|
+
"react-color-palette": "6.2.0",
|
|
32
|
+
"react-copy-to-clipboard": "5.0.2",
|
|
33
|
+
"react-dates": "21.8.0",
|
|
34
|
+
"yup": "0.27.0"
|
|
35
|
+
},
|
|
36
|
+
"babel": {
|
|
37
|
+
"presets": [
|
|
38
|
+
[
|
|
39
|
+
"@babel/preset-env",
|
|
40
|
+
{
|
|
41
|
+
"corejs": 2,
|
|
42
|
+
"useBuiltIns": "entry"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
package/tooling/externals.js
CHANGED
|
@@ -1,58 +1,29 @@
|
|
|
1
1
|
const externalModules = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
'Yup': /^yup$/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 ]
|
|
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, /^\$/ ]
|
|
37
9
|
};
|
|
38
10
|
|
|
39
|
-
exports.mapExternalModules = ({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
11
|
+
exports.mapExternalModules = ({ request }, callback) => {
|
|
12
|
+
for (var key in externalModules) {
|
|
13
|
+
if (!externalModules.hasOwnProperty(key))
|
|
14
|
+
continue;
|
|
43
15
|
|
|
44
|
-
|
|
16
|
+
let arr = externalModules[key];
|
|
45
17
|
|
|
46
|
-
|
|
47
|
-
|
|
18
|
+
if (!Array.isArray(arr))
|
|
19
|
+
arr = [arr];
|
|
48
20
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}
|
|
21
|
+
for (var i = 0; i < arr.length; i++) {
|
|
22
|
+
if (arr[i].test(request)) {
|
|
23
|
+
return callback(null, key);
|
|
24
|
+
}
|
|
55
25
|
}
|
|
26
|
+
}
|
|
56
27
|
|
|
57
|
-
|
|
58
|
-
}
|
|
28
|
+
callback();
|
|
29
|
+
};
|