@clickview/curator 0.0.5 → 1.0.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/package.json CHANGED
@@ -1,52 +1,46 @@
1
- {
2
- "name": "@clickview/curator",
3
- "version": "0.0.5",
4
- "description": "curator",
5
- "main": "dist/curator-app.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
9
- "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
10
- "dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "http://gitlab.cvinternal.net/front-end/curator.git"
15
- },
16
- "cv": {
17
- "publishable": true,
18
- "rebuildable": true
19
- },
20
- "author": "Matt Trengrove",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@clickview/tooling": "^0.0.9",
24
- "@types/cropperjs": "1.3.0",
25
- "@types/react-transition-group": "4.2.3",
26
- "@types/yup": "0.26.24"
27
- },
28
- "dependencies": {
29
- "@clickview/common": "^0.1.9",
30
- "@clickview/shared": "^0.0.2",
31
- "@clickview/styles": "^0.0.2",
32
- "@fortawesome/fontawesome": "1.1.8",
33
- "bootstrap": "4.3.1",
34
- "cropperjs": "1.5.6",
35
- "formik": "2.0.6",
36
- "react-bootstrap": "1.0.0-beta.14",
37
- "react-sortable-hoc": "1.10.1",
38
- "react-transition-group": "4.3.0",
39
- "yup": "0.27.0"
40
- },
41
- "babel": {
42
- "presets": [
43
- [
44
- "@babel/preset-env",
45
- {
46
- "corejs": 2,
47
- "useBuiltIns": "entry"
48
- }
49
- ]
50
- ]
51
- }
52
- }
1
+ {
2
+ "name": "@clickview/curator",
3
+ "version": "1.0.0-rc.1",
4
+ "description": "curator",
5
+ "main": "dist/curator-app.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
9
+ "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
10
+ "dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "http://gitlab.cvinternal.net/front-end/curator.git"
15
+ },
16
+ "cv": {
17
+ "publishable": true,
18
+ "rebuildable": true
19
+ },
20
+ "author": "Matt Trengrove",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@clickview/tooling": "0.0.10-rc.0",
24
+ "@types/cropperjs": "1.3.0",
25
+ "@types/react-transition-group": "4.2.3",
26
+ "@types/yup": "0.26.24"
27
+ },
28
+ "dependencies": {
29
+ "@clickview/common": "1.0.0-rc.0",
30
+ "@clickview/shared": "1.0.0-rc.1",
31
+ "@clickview/styles": "1.0.0-rc.0",
32
+ "cropperjs": "1.5.6",
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
+ }
@@ -0,0 +1,59 @@
1
+ const externalModules = {
2
+ '@clickview/common': /^@clickview\/common$/i,
3
+ '@clickview/shared': /^@clickview\/shared$/i,
4
+ '@clickview/styles': /^@clickview\/styles$/i,
5
+
6
+ 'Cropper': [ /^cropperjs$/i, /^cropper$/i ],
7
+
8
+ /**
9
+ * Shared Dependencies
10
+ */
11
+ 'FontAwesome': [ /^@fortawesome\/fontawesome$/i, /^fontawesome$/i ],
12
+ 'ReactBootstrap': [ /^react-bootstrap$/i, /^reactbootstrap$/i ],
13
+ 'SortableHOC': [ /^react-sortable-hoc$/i, /^sortablehoc$/i ],
14
+ 'ReactTransitionGroup': [ /^react-transition-group$/i, /^reacttransitiongroup$/i ],
15
+ 'ReactIntersectionObserver': [ /^react-intersection-observer$/i, /^reactintersectionobserver$/i ],
16
+ 'Yup': /^yup$/i,
17
+ 'Formik': /^formik$/i,
18
+
19
+ /**
20
+ * Common Dependencies
21
+ */
22
+ 'React': /^react$/i,
23
+ 'ReactDOM': [ /^react-dom$/i, /^ReactDOM$/i ],
24
+ '_': [ /^underscore$/i, /^_$/i ],
25
+ 'Backbone': /^backbone$/i,
26
+ 'Marionette': [ /^backbone\.marionette$/i, /^marionette$/i ],
27
+ 'Handlebars': /^handlebars$/i,
28
+ 'bootstrap': /^bootstrap$/i,
29
+ 'Backbone.Radio': /^backbone\.radio$/i,
30
+ 'signalR': /^signalr$/i,
31
+ 'Redux': /^redux$/i,
32
+ 'ReactRedux': [ /^react-redux$/i, /^reactredux$/i ],
33
+ 'DOMPurify': /^dompurify$/i,
34
+ '$': [ /^jquery$/i, /^\$/ ],
35
+ 'Polyglot': [ /^node-polyglot$/i, /^polyglot$/i ],
36
+ 'moment': /^moment$/i,
37
+ 'linkify': [ /^linkifyjs$/i, /^linkify$/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,62 +0,0 @@
1
- /**
2
- *
3
- * Webpack externals helper
4
- *
5
- * Ensures that any import statements within our code for modules that are globally scoped
6
- * will be correctly resolved against that namespace. More specifically, they don't need to
7
- * be case sensitive.
8
- *
9
- * @example
10
- * import { View } from 'marionette';
11
- * import { View } from 'Marionette';
12
- *
13
- * All the above statements will be correctly mapped to 'Marionette' when bundled.
14
- */
15
-
16
- const externalModules = {
17
- 'React': /^react$/i,
18
- 'ReactDOM': [ /^react-dom$/i, /^ReactDOM$/i ],
19
- 'ReactBootstrap': /^react-bootstrap$/i,
20
- 'ReactTransitionGroup': /^react-transition-group$/i,
21
- 'SortableHOC': /^react-sortable-hoc$/i,
22
- 'Formik': /^formik$/i,
23
- 'FontAwesome': /fontawesome$/i,
24
- 'Cropper': /^cropperjs$/i,
25
-
26
- '@clickview/common': /^@clickview\/common$/i,
27
- '@clickview/shared': /^@clickview\/shared$/i,
28
- /**
29
- * The following are dependencies of @clickview/common
30
- * that have listed as externals. As they are not
31
- * included in this module, they are listed as
32
- * externals here.
33
- */
34
- '_': [ /^underscore$/i, /^_$/i ],
35
- 'Backbone': /^backbone$/i,
36
- 'Marionette': [ /^backbone\.marionette$/i, /^marionette$/i ],
37
- 'Handlebars': /^handlebars$/i,
38
- 'Bootstrap': /^bootstrap$/i,
39
- 'Backbone.Radio': /^backbone\.radio$/i,
40
- 'signalR': /signalr$/i
41
- };
42
-
43
- exports.mapExternalModules = (context, request, callback) => {
44
- for (var key in externalModules) {
45
- if (!externalModules.hasOwnProperty(key))
46
- continue;
47
-
48
- let arr = externalModules[key];
49
-
50
- if (!Array.isArray(arr))
51
- arr = [arr];
52
-
53
- for (var i = 0; i < arr.length; i++) {
54
- if (arr[i].test(request)) {
55
- return callback(null, key);
56
-
57
- }
58
- }
59
- }
60
-
61
- callback();
62
- }