Roxas 5 lat temu
rodzic
commit
a15aafc49e

+ 4
- 0
eslib/Common/index.js Wyświetl plik

@@ -0,0 +1,4 @@
1
+import '../style-inject.es-7ed2769c.js';
2
+import 'react';
3
+export { T as Test } from '../test-4091af6f.js';
4
+//# sourceMappingURL=index.js.map

lib/esModule/Common/index.js.map → eslib/Common/index.js.map Wyświetl plik


lib/esModule/Payment/index.js → eslib/Payment/index.js Wyświetl plik

@@ -1,6 +1,6 @@
1
-import '../style-inject.es-0fe0d479.js';
1
+import '../style-inject.es-7ed2769c.js';
2 2
 import 'react';
3
-export { C as ConsumeListView, P as PayPlatformOptions, a as PriceOptions, W as WaitPayInfoView } from '../index-6812601d.js';
3
+export { C as ConsumeListView, P as PayPlatformOptions, a as PriceOptions, W as WaitPayInfoView } from '../index-8e31d90e.js';
4 4
 import 'antd/es/input/style';
5 5
 import 'antd/es/input';
6 6
 import 'antd/es/button/style';

lib/esModule/Payment/index.js.map → eslib/Payment/index.js.map Wyświetl plik


+ 501
- 0
eslib/index-8e31d90e.js
Plik diff jest za duży
Wyświetl plik


+ 1
- 0
eslib/index-8e31d90e.js.map
Plik diff jest za duży
Wyświetl plik


lib/esModule/index.js → eslib/index.js Wyświetl plik

@@ -1,7 +1,7 @@
1
-import { c as createCommonjsModule, g as getCjsExportFromNamespace, a as commonjsGlobal, u as unwrapExports } from './style-inject.es-0fe0d479.js';
1
+import { c as createCommonjsModule, g as getCjsExportFromNamespace, a as commonjsGlobal, u as unwrapExports } from './style-inject.es-7ed2769c.js';
2 2
 import 'react';
3
-import './test-7ad1ce03.js';
4
-export { C as ConsumeListView, P as PayPlatformOptions, a as PriceOptions, W as WaitPayInfoView } from './index-6812601d.js';
3
+import './test-4091af6f.js';
4
+export { C as ConsumeListView, P as PayPlatformOptions, a as PriceOptions, W as WaitPayInfoView } from './index-8e31d90e.js';
5 5
 import 'antd/es/input/style';
6 6
 import 'antd/es/input';
7 7
 import 'antd/es/button/style';

+ 1
- 0
eslib/index.js.map
Plik diff jest za duży
Wyświetl plik


lib/esModule/style-inject.es-0fe0d479.js → eslib/style-inject.es-7ed2769c.js Wyświetl plik

@@ -49,6 +49,40 @@ function _defineProperty(obj, key, value) {
49 49
   return obj;
50 50
 }
51 51
 
52
+function ownKeys(object, enumerableOnly) {
53
+  var keys = Object.keys(object);
54
+
55
+  if (Object.getOwnPropertySymbols) {
56
+    var symbols = Object.getOwnPropertySymbols(object);
57
+    if (enumerableOnly) symbols = symbols.filter(function (sym) {
58
+      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
59
+    });
60
+    keys.push.apply(keys, symbols);
61
+  }
62
+
63
+  return keys;
64
+}
65
+
66
+function _objectSpread2(target) {
67
+  for (var i = 1; i < arguments.length; i++) {
68
+    var source = arguments[i] != null ? arguments[i] : {};
69
+
70
+    if (i % 2) {
71
+      ownKeys(Object(source), true).forEach(function (key) {
72
+        _defineProperty(target, key, source[key]);
73
+      });
74
+    } else if (Object.getOwnPropertyDescriptors) {
75
+      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
76
+    } else {
77
+      ownKeys(Object(source)).forEach(function (key) {
78
+        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
79
+      });
80
+    }
81
+  }
82
+
83
+  return target;
84
+}
85
+
52 86
 function _inherits(subClass, superClass) {
53 87
   if (typeof superClass !== "function" && superClass !== null) {
54 88
     throw new TypeError("Super expression must either be null or a function");
@@ -214,5 +248,5 @@ function styleInject(css, ref) {
214 248
   }
215 249
 }
216 250
 
217
-export { _inherits as _, commonjsGlobal as a, _createClass as b, createCommonjsModule as c, _defineProperty as d, _classCallCheck as e, _possibleConstructorReturn as f, getCjsExportFromNamespace as g, _getPrototypeOf as h, classnames as i, _slicedToArray as j, styleInject as s, unwrapExports as u };
218
-//# sourceMappingURL=style-inject.es-0fe0d479.js.map
251
+export { _defineProperty as _, commonjsGlobal as a, _inherits as b, createCommonjsModule as c, _createClass as d, _classCallCheck as e, _possibleConstructorReturn as f, getCjsExportFromNamespace as g, _getPrototypeOf as h, classnames as i, _objectSpread2 as j, _slicedToArray as k, styleInject as s, unwrapExports as u };
252
+//# sourceMappingURL=style-inject.es-7ed2769c.js.map

lib/style-inject.es-c7b50579.js.map → eslib/style-inject.es-7ed2769c.js.map Wyświetl plik

@@ -1 +1 @@
1
-{"version":3,"file":"style-inject.es-0fe0d479.js","sources":["../node_modules/classnames/index.js","../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,CAAC,YAAY;;CAGZ,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;;CAE/B,SAAS,UAAU,IAAI;EACtB,IAAI,OAAO,GAAG,EAAE,CAAC;;EAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;GAC1C,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;GACvB,IAAI,CAAC,GAAG,EAAE,SAAS;;GAEnB,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;;GAEzB,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;IACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;IAC5C,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxC,IAAI,KAAK,EAAE;KACV,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpB;IACD,MAAM,IAAI,OAA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AAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;;;;;;;;;;;;;"}
1
+{"version":3,"file":"style-inject.es-7ed2769c.js","sources":["../node_modules/classnames/index.js","../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,CAAC,YAAY;;CAGZ,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;;CAE/B,SAAS,UAAU,IAAI;EACtB,IAAI,OAAO,GAAG,EAAE,CAAC;;EAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;GAC1C,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;GACvB,IAAI,CAAC,GAAG,EAAE,SAAS;;GAEnB,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;;GAEzB,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;IACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;IAC5C,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxC,IAAI,KAAK,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C,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;"}

lib/esModule/test-7ad1ce03.js → eslib/test-4091af6f.js Wyświetl plik

@@ -1,4 +1,4 @@
1
-import { s as styleInject } from './style-inject.es-0fe0d479.js';
1
+import { s as styleInject } from './style-inject.es-7ed2769c.js';
2 2
 import 'react';
3 3
 
4 4
 var css = ".test_red__36-3- {\n  color: red;\n}\n";
@@ -70,4 +70,4 @@ styleInject(css);
70 70
 var Test = "TestComponent";
71 71
 
72 72
 export { Test as T };
73
-//# sourceMappingURL=test-7ad1ce03.js.map
73
+//# sourceMappingURL=test-4091af6f.js.map

+ 1
- 0
eslib/test-4091af6f.js.map
Plik diff jest za duży
Wyświetl plik


+ 2
- 2
lib/Common/index.js Wyświetl plik

@@ -2,9 +2,9 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../style-inject.es-c7b50579.js');
5
+require('../style-inject.es-3827494b.js');
6 6
 require('react');
7
-var test = require('../test-b52888d6.js');
7
+var test = require('../test-b93e5209.js');
8 8
 
9 9
 
10 10
 

+ 2
- 2
lib/Payment/index.js Wyświetl plik

@@ -2,9 +2,9 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../style-inject.es-c7b50579.js');
5
+require('../style-inject.es-3827494b.js');
6 6
 require('react');
7
-var index = require('../index-038f2eaf.js');
7
+var index = require('../index-e808551e.js');
8 8
 require('antd/es/input/style');
9 9
 require('antd/es/input');
10 10
 require('antd/es/button/style');

+ 0
- 4
lib/esModule/Common/index.js Wyświetl plik

@@ -1,4 +0,0 @@
1
-import '../style-inject.es-0fe0d479.js';
2
-import 'react';
3
-export { T as Test } from '../test-7ad1ce03.js';
4
-//# sourceMappingURL=index.js.map

+ 0
- 5764
lib/esModule/index-6812601d.js
Plik diff jest za duży
Wyświetl plik


+ 0
- 1
lib/esModule/index-6812601d.js.map
Plik diff jest za duży
Wyświetl plik


+ 0
- 1
lib/esModule/index.js.map
Plik diff jest za duży
Wyświetl plik


+ 0
- 1
lib/esModule/style-inject.es-0fe0d479.js.map Wyświetl plik

@@ -1 +0,0 @@
1
-{"version":3,"file":"style-inject.es-0fe0d479.js","sources":["../../node_modules/classnames/index.js","../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,CAAC,YAAY;;CAGZ,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;;CAE/B,SAAS,UAAU,IAAI;EACtB,IAAI,OAAO,GAAG,EAAE,CAAC;;EAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;GAC1C,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;GACvB,IAAI,CAAC,GAAG,EAAE,SAAS;;GAEnB,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;;GAEzB,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;IACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;IAC5C,IAAI,KAAK,G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,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;KAC3C,MAAM;MACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;"}

+ 0
- 1
lib/esModule/test-7ad1ce03.js.map
Plik diff jest za duży
Wyświetl plik


+ 0
- 5772
lib/index-038f2eaf.js
Plik diff jest za duży
Wyświetl plik


+ 0
- 1
lib/index-038f2eaf.js.map
Plik diff jest za duży
Wyświetl plik


+ 509
- 0
lib/index-e808551e.js
Plik diff jest za duży
Wyświetl plik


+ 1
- 0
lib/index-e808551e.js.map
Plik diff jest za duży
Wyświetl plik


+ 3
- 3
lib/index.js Wyświetl plik

@@ -2,10 +2,10 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-var styleInject_es = require('./style-inject.es-c7b50579.js');
5
+var styleInject_es = require('./style-inject.es-3827494b.js');
6 6
 require('react');
7
-require('./test-b52888d6.js');
8
-var index = require('./index-038f2eaf.js');
7
+require('./test-b93e5209.js');
8
+var index = require('./index-e808551e.js');
9 9
 require('antd/es/input/style');
10 10
 require('antd/es/input');
11 11
 require('antd/es/button/style');

lib/style-inject.es-c7b50579.js → lib/style-inject.es-3827494b.js Wyświetl plik

@@ -51,6 +51,40 @@ function _defineProperty(obj, key, value) {
51 51
   return obj;
52 52
 }
53 53
 
54
+function ownKeys(object, enumerableOnly) {
55
+  var keys = Object.keys(object);
56
+
57
+  if (Object.getOwnPropertySymbols) {
58
+    var symbols = Object.getOwnPropertySymbols(object);
59
+    if (enumerableOnly) symbols = symbols.filter(function (sym) {
60
+      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
61
+    });
62
+    keys.push.apply(keys, symbols);
63
+  }
64
+
65
+  return keys;
66
+}
67
+
68
+function _objectSpread2(target) {
69
+  for (var i = 1; i < arguments.length; i++) {
70
+    var source = arguments[i] != null ? arguments[i] : {};
71
+
72
+    if (i % 2) {
73
+      ownKeys(Object(source), true).forEach(function (key) {
74
+        _defineProperty(target, key, source[key]);
75
+      });
76
+    } else if (Object.getOwnPropertyDescriptors) {
77
+      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
78
+    } else {
79
+      ownKeys(Object(source)).forEach(function (key) {
80
+        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
81
+      });
82
+    }
83
+  }
84
+
85
+  return target;
86
+}
87
+
54 88
 function _inherits(subClass, superClass) {
55 89
   if (typeof superClass !== "function" && superClass !== null) {
56 90
     throw new TypeError("Super expression must either be null or a function");
@@ -221,6 +255,7 @@ exports._createClass = _createClass;
221 255
 exports._defineProperty = _defineProperty;
222 256
 exports._getPrototypeOf = _getPrototypeOf;
223 257
 exports._inherits = _inherits;
258
+exports._objectSpread2 = _objectSpread2;
224 259
 exports._possibleConstructorReturn = _possibleConstructorReturn;
225 260
 exports._slicedToArray = _slicedToArray;
226 261
 exports.classnames = classnames;
@@ -229,4 +264,4 @@ exports.createCommonjsModule = createCommonjsModule;
229 264
 exports.getCjsExportFromNamespace = getCjsExportFromNamespace;
230 265
 exports.styleInject = styleInject;
231 266
 exports.unwrapExports = unwrapExports;
232
-//# sourceMappingURL=style-inject.es-c7b50579.js.map
267
+//# sourceMappingURL=style-inject.es-3827494b.js.map

+ 1
- 0
lib/style-inject.es-3827494b.js.map Wyświetl plik

@@ -0,0 +1 @@
1
+{"version":3,"file":"style-inject.es-7ed2769c.js","sources":["../node_modules/classnames/index.js","../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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2 2
 
3
-var styleInject_es = require('./style-inject.es-c7b50579.js');
3
+var styleInject_es = require('./style-inject.es-3827494b.js');
4 4
 require('react');
5 5
 
6 6
 var css = ".test_red__36-3- {\n  color: red;\n}\n";
@@ -72,4 +72,4 @@ styleInject_es.styleInject(css);
72 72
 var Test = "TestComponent";
73 73
 
74 74
 exports.Test = Test;
75
-//# sourceMappingURL=test-b52888d6.js.map
75
+//# sourceMappingURL=test-b93e5209.js.map

lib/test-b93e5209.js.map
Plik diff jest za duży
Wyświetl plik


+ 7
- 7
package.json Wyświetl plik

@@ -17,6 +17,7 @@
17 17
     "kiwi-intl": "^1.2.4",
18 18
     "react-intl": "^3.9.2",
19 19
     "react-scripts": "3.3.0",
20
+    "rollup-plugin-visualizer": "^3.3.1",
20 21
     "typescript": "~3.7.2"
21 22
   },
22 23
   "scripts": {
@@ -24,9 +25,7 @@
24 25
     "build": "react-app-rewired build",
25 26
     "test": "react-app-rewired test",
26 27
     "eject": "react-app-rewired eject",
27
-    "build:lib": "rimraf lib && babel src/components --out-dir lib  --source-maps  --copy-files --extensions \".ts,.tsx\"",
28
-    "build:css:": "",
29
-    "build:rollup": "rimraf lib && rollup -c ./rollup.config.js",
28
+    "build:lib": "rimraf lib && rimraf eslib && rollup -c ./rollup.config.js",
30 29
     "storybook": "start-storybook -p 9009 -s public",
31 30
     "build-storybook": "build-storybook -s public"
32 31
   },
@@ -76,19 +75,19 @@
76 75
     "babel-loader": "^8.0.6",
77 76
     "babel-plugin-import": "^1.13.0",
78 77
     "cross-env": "^6.0.3",
79
-    "less": "^3.10.3",
80
-    "less-loader": "^5.0.0",
81 78
     "css-loader": "^3.2.1",
82 79
     "file-loader": "^5.0.2",
83
-    "postcss-loader": "^3.0.0",
84
-    "style-loader": "^1.0.1",
80
+    "less": "^3.10.3",
81
+    "less-loader": "^5.0.0",
85 82
     "node-eval": "^2.0.0",
83
+    "postcss-loader": "^3.0.0",
86 84
     "postcss-url": "^8.0.0",
87 85
     "react-app-rewired": "^2.1.5",
88 86
     "react-docgen-typescript-loader": "^3.6.0",
89 87
     "rimraf": "^3.0.0",
90 88
     "rollup": "^1.27.13",
91 89
     "rollup-plugin-alias": "^2.2.0",
90
+    "rollup-plugin-analyzer": "^3.2.2",
92 91
     "rollup-plugin-babel": "^4.3.3",
93 92
     "rollup-plugin-eslint": "^7.0.0",
94 93
     "rollup-plugin-json": "^4.0.0",
@@ -98,6 +97,7 @@
98 97
     "rollup-plugin-postcss-modules": "^2.0.1",
99 98
     "rollup-plugin-replace": "^2.2.0",
100 99
     "storybook-readme": "^5.0.8",
100
+    "style-loader": "^1.0.1",
101 101
     "ts-loader": "^6.2.1"
102 102
   },
103 103
   "peerDependencies": {

+ 10
- 1
rollup.config.js Wyświetl plik

@@ -8,6 +8,10 @@ import json from "rollup-plugin-json";
8 8
 import autoprefixer from 'autoprefixer';
9 9
 import postcssUrl from 'postcss-url';
10 10
 import peerDepsExternal from 'rollup-plugin-peer-deps-external';
11
+import visualizer from 'rollup-plugin-visualizer';
12
+import analyze from 'rollup-plugin-analyzer';
13
+ 
14
+
11 15
 // import url from '@rollup/plugin-url';
12 16
 // import less from "rollup-plugin-less";
13 17
 import nodeEval from 'node-eval';
@@ -58,7 +62,7 @@ export default {
58 62
       format: "cjs"
59 63
     },
60 64
     {
61
-      dir: "lib/ESModule",
65
+      dir: "eslib",
62 66
       sourcemap: true,
63 67
       entryFileNames: '[name]/index.js',
64 68
       exports: 'named',
@@ -106,6 +110,11 @@ export default {
106 110
         { find: '@components', replacement: 'src/components' },
107 111
       ]
108 112
     }),
113
+    visualizer({
114
+      sourcemap: true,
115
+      open: true,
116
+    }),
117
+    analyze(),
109 118
   ],
110 119
   onwarn: function(warning) {
111 120
     // Skip certain warnings

+ 12
- 1
src/components/Payment/Common/PayPlatformOptions/PayPlatformOptions.less Wyświetl plik

@@ -56,6 +56,14 @@
56 56
         }
57 57
       }
58 58
 
59
+      &.normal {
60
+        width: 132px;
61
+      }
62
+
63
+      &.large {
64
+        width: 162px;
65
+      }
66
+
59 67
       &.active {
60 68
           border-radius: 5px;
61 69
           border-color:#1790FF;
@@ -70,9 +78,12 @@
70 78
   &.mobile {
71 79
       padding: 8px 10px 10px 8px;
72 80
       .payitem {
73
-          display: inline-block;
81
+          display: inline-flex;
82
+          flex-direction: column;
83
+          justify-content: space-around;
74 84
           width: 78px;
75 85
           height: 80px;
86
+          line-height: initial;
76 87
           border: 1px solid transparent;
77 88
 
78 89
           &.active {

+ 14
- 11
src/components/Payment/Common/PayPlatformOptions/index.tsx Wyświetl plik

@@ -1,6 +1,5 @@
1 1
 import React, { PureComponent } from "react";
2 2
 import classnames from "classnames";
3
-import { FormattedMessage } from "react-intl";
4 3
 
5 4
 import iconAlipay from "../assets/kcxq_popovers_icon_alipay@2x.png";
6 5
 import iconWechatpay from "../assets/kcxq_popovers_icon_wechatpay@2x.png";
@@ -10,6 +9,7 @@ import mobileIconWechatpay from "../assets/payment_btn_pay_wechatpay@2x.png";
10 9
 import mobileIconPaypal from "../assets/payment_btn_pay_paypal@2x.png";
11 10
 
12 11
 import styles from "./PayPlatformOptions.less";
12
+import { exportStyleSizeClass } from "../../Utils/utils";
13 13
 
14 14
 type PAY_CHANNEL_VALUE =
15 15
   | "PAYPAL_PAYPAL"
@@ -31,6 +31,7 @@ type Props = {
31 31
   isMobile: boolean;
32 32
   size: "small" | "normal" | "large";
33 33
   withTitle: boolean;
34
+  titleTxt: string;
34 35
   locale: "zh" | "en";
35 36
 };
36 37
 
@@ -50,14 +51,16 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
50 51
       isMobile = false,
51 52
       size = "normal",
52 53
       withTitle = true,
54
+      titleTxt,
53 55
       locale = "zh"
54 56
     } = this.props;
55 57
 
56 58
     let titleDOM = null;
57 59
     if (withTitle) {
60
+      const titleResult = titleTxt || locale === 'zh' ? '支付方式' : 'Payment';
58 61
       titleDOM = (
59 62
         <div className={styles.label}>
60
-          <FormattedMessage id="pay.channel.select.text" />
63
+          {titleResult}
61 64
         </div>
62 65
       );
63 66
     }
@@ -78,7 +81,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
78 81
                     {
79 82
                       [styles.payitem]: true,
80 83
                       [styles.active]: payitem === PAY_CHANNEL.ALI_WEB,
81
-                      [styles.small]: size === "small"
84
+                      ...exportStyleSizeClass(styles, size),
82 85
                     },
83 86
                     styles[locale]
84 87
                   )}
@@ -92,7 +95,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
92 95
                     className={styles["payment-method"]}
93 96
                   />
94 97
                   <div className={styles.platformName}>
95
-                    <FormattedMessage id="pay.channel.ali" />
98
+                    支付宝
96 99
                   </div>
97 100
                 </div>
98 101
               </div>
@@ -102,7 +105,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
102 105
                     {
103 106
                       [styles.payitem]: true,
104 107
                       [styles.active]: payitem === PAY_CHANNEL.WX_NATIVE,
105
-                      [styles.small]: size === "small"
108
+                      ...exportStyleSizeClass(styles, size),
106 109
                     },
107 110
                     styles[locale]
108 111
                   )}
@@ -116,7 +119,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
116 119
                     className={styles["payment-method"]}
117 120
                   />
118 121
                   <div className={styles.platformName}>
119
-                    <FormattedMessage id="pay.channel.wechat" />
122
+                    微信
120 123
                   </div>
121 124
                 </div>
122 125
               </div>
@@ -126,7 +129,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
126 129
                     {
127 130
                       [styles.payitem]: true,
128 131
                       [styles.active]: payitem === PAY_CHANNEL.PAYPAL,
129
-                      [styles.small]: size === "small"
132
+                      ...exportStyleSizeClass(styles, size),
130 133
                     },
131 134
                     styles[locale]
132 135
                   )}
@@ -140,7 +143,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
140 143
                     className={styles["payment-method"]}
141 144
                   />
142 145
                   <div className={styles.platformName}>
143
-                    <FormattedMessage id="pay.channel.paypal" />
146
+                    Paypal
144 147
                   </div>
145 148
                 </div>
146 149
               </div>
@@ -161,7 +164,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
161 164
                   {
162 165
                     [styles.payitem]: true,
163 166
                     [styles.active]: payitem === PAY_CHANNEL.ALI_WEB,
164
-                    [styles.small]: size === "small"
167
+                    ...exportStyleSizeClass(styles, size),
165 168
                   },
166 169
                   styles[locale]
167 170
                 )}
@@ -183,7 +186,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
183 186
                   {
184 187
                     [styles.payitem]: true,
185 188
                     [styles.active]: payitem === PAY_CHANNEL.WX_NATIVE,
186
-                    [styles.small]: size === "small"
189
+                    ...exportStyleSizeClass(styles, size),
187 190
                   },
188 191
                   styles[locale]
189 192
                 )}
@@ -205,7 +208,7 @@ class PayPlatformOptions extends PureComponent<Props, {}> {
205 208
                   {
206 209
                     [styles.payitem]: true,
207 210
                     [styles.active]: payitem === PAY_CHANNEL.PAYPAL,
208
-                    [styles.small]: size === "small"
211
+                    ...exportStyleSizeClass(styles, size),
209 212
                   },
210 213
                   styles[locale]
211 214
                 )}

+ 1
- 3
src/components/Payment/Common/PriceOptions/index.tsx Wyświetl plik

@@ -30,9 +30,7 @@ const PriceOptions = ({
30 30
 
31 31
   return (
32 32
     <div
33
-      className={classnames(styles.options, {
34
-        [styles[size]]: true
35
-      })}
33
+      className={classnames(styles.options)}
36 34
     >
37 35
       {withTitle ? (
38 36
         <p>

+ 8
- 0
src/components/Payment/Utils/utils.ts Wyświetl plik

@@ -33,4 +33,12 @@ export function formatMoney(input: any, fuzz = 2) {
33 33
     return input;
34 34
   }
35 35
   return (+input).toFixed(fuzz);
36
+}
37
+
38
+type classSize = 'small'|'normal'|'large';
39
+
40
+export function exportStyleSizeClass(styles: any, size: classSize) {
41
+  return {
42
+    [styles[size]]: true,
43
+  }
36 44
 }

+ 3360
- 0
stats.html
Plik diff jest za duży
Wyświetl plik


+ 106
- 4
yarn.lock Wyświetl plik

@@ -2096,6 +2096,11 @@
2096 2096
   resolved "https://registry.npm.taobao.org/@types/classnames/download/@types/classnames-2.2.9.tgz#d868b6febb02666330410fe7f58f3c4b8258be7b"
2097 2097
   integrity sha1-2Gi2/rsCZmMwQQ/n9Y88S4JYvns=
2098 2098
 
2099
+"@types/color-name@^1.1.1":
2100
+  version "1.1.1"
2101
+  resolved "https://registry.npm.taobao.org/@types/color-name/download/@types/color-name-1.1.1.tgz?cache=0&sync_timestamp=1572460951965&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fcolor-name%2Fdownload%2F%40types%2Fcolor-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
2102
+  integrity sha1-HBJhu+qhCoBVu8XYq4S3sq/IRqA=
2103
+
2099 2104
 "@types/eslint-visitor-keys@^1.0.0":
2100 2105
   version "1.0.0"
2101 2106
   resolved "https://registry.npm.taobao.org/@types/eslint-visitor-keys/download/@types/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
@@ -2732,6 +2737,14 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1:
2732 2737
   dependencies:
2733 2738
     color-convert "^1.9.0"
2734 2739
 
2740
+ansi-styles@^4.0.0:
2741
+  version "4.2.0"
2742
+  resolved "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-4.2.0.tgz?cache=0&sync_timestamp=1573557628456&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-4.2.0.tgz#5681f0dcf7ae5880a7841d8831c4724ed9cc0172"
2743
+  integrity sha1-VoHw3PeuWICnhB2IMcRyTtnMAXI=
2744
+  dependencies:
2745
+    "@types/color-name" "^1.1.1"
2746
+    color-convert "^2.0.1"
2747
+
2735 2748
 ansi-to-html@^0.6.11:
2736 2749
   version "0.6.13"
2737 2750
   resolved "https://registry.npm.taobao.org/ansi-to-html/download/ansi-to-html-0.6.13.tgz#c72eae8b63e5ca0643aab11bfc6e6f2217425833"
@@ -4111,6 +4124,15 @@ cliui@^5.0.0:
4111 4124
     strip-ansi "^5.2.0"
4112 4125
     wrap-ansi "^5.1.0"
4113 4126
 
4127
+cliui@^6.0.0:
4128
+  version "6.0.0"
4129
+  resolved "https://registry.npm.taobao.org/cliui/download/cliui-6.0.0.tgz?cache=0&sync_timestamp=1573943292170&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcliui%2Fdownload%2Fcliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1"
4130
+  integrity sha1-UR1wLAxOQcoVbX0OlgIfI+EyJbE=
4131
+  dependencies:
4132
+    string-width "^4.2.0"
4133
+    strip-ansi "^6.0.0"
4134
+    wrap-ansi "^6.2.0"
4135
+
4114 4136
 clone-deep@^0.2.4:
4115 4137
   version "0.2.4"
4116 4138
   resolved "https://registry.npm.taobao.org/clone-deep/download/clone-deep-0.2.4.tgz#4e73dd09e9fb971cc38670c5dced9c1896481cc6"
@@ -4170,12 +4192,19 @@ color-convert@^1.9.0, color-convert@^1.9.1:
4170 4192
   dependencies:
4171 4193
     color-name "1.1.3"
4172 4194
 
4195
+color-convert@^2.0.1:
4196
+  version "2.0.1"
4197
+  resolved "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz?cache=0&sync_timestamp=1566248870121&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcolor-convert%2Fdownload%2Fcolor-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
4198
+  integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=
4199
+  dependencies:
4200
+    color-name "~1.1.4"
4201
+
4173 4202
 color-name@1.1.3:
4174 4203
   version "1.1.3"
4175 4204
   resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
4176 4205
   integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
4177 4206
 
4178
-color-name@^1.0.0:
4207
+color-name@^1.0.0, color-name@~1.1.4:
4179 4208
   version "1.1.4"
4180 4209
   resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
4181 4210
   integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=
@@ -5510,6 +5539,11 @@ es6-templates@^0.2.3:
5510 5539
     recast "~0.11.12"
5511 5540
     through "~2.3.6"
5512 5541
 
5542
+escape-goat@^2.0.0:
5543
+  version "2.1.1"
5544
+  resolved "https://registry.npm.taobao.org/escape-goat/download/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675"
5545
+  integrity sha1-Gy3HcANnbEV+x2Cy3GjttkgYhnU=
5546
+
5513 5547
 escape-html@^1.0.3, escape-html@~1.0.3:
5514 5548
   version "1.0.3"
5515 5549
   resolved "https://registry.npm.taobao.org/escape-html/download/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
@@ -6183,7 +6217,7 @@ find-up@^2.0.0, find-up@^2.1.0:
6183 6217
   dependencies:
6184 6218
     locate-path "^2.0.0"
6185 6219
 
6186
-find-up@^4.0.0:
6220
+find-up@^4.0.0, find-up@^4.1.0:
6187 6221
   version "4.1.0"
6188 6222
   resolved "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19"
6189 6223
   integrity sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=
@@ -9178,6 +9212,11 @@ nan@^2.12.1:
9178 9212
   resolved "https://registry.npm.taobao.org/nan/download/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c"
9179 9213
   integrity sha1-eBj3IgJ7JFmobwKV1DTR/CM2xSw=
9180 9214
 
9215
+nanoid@^2.1.6:
9216
+  version "2.1.8"
9217
+  resolved "https://registry.npm.taobao.org/nanoid/download/nanoid-2.1.8.tgz?cache=0&sync_timestamp=1576377903565&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnanoid%2Fdownload%2Fnanoid-2.1.8.tgz#2dbb0224231b246e3b4c819de7bfea6384dabf08"
9218
+  integrity sha1-LbsCJCMbJG47TIGd57/qY4Tavwg=
9219
+
9181 9220
 nanomatch@^1.2.9:
9182 9221
   version "1.2.13"
9183 9222
   resolved "https://registry.npm.taobao.org/nanomatch/download/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
@@ -9565,7 +9604,7 @@ onetime@^5.1.0:
9565 9604
   dependencies:
9566 9605
     mimic-fn "^2.1.0"
9567 9606
 
9568
-open@^6.1.0, open@^6.3.0:
9607
+open@^6.0.0, open@^6.1.0, open@^6.3.0:
9569 9608
   version "6.4.0"
9570 9609
   resolved "https://registry.npm.taobao.org/open/download/open-6.4.0.tgz#5c13e96d0dc894686164f18965ecfe889ecfc8a9"
9571 9610
   integrity sha1-XBPpbQ3IlGhhZPGJZez+iJ7PyKk=
@@ -10995,6 +11034,13 @@ punycode@^2.1.0, punycode@^2.1.1:
10995 11034
   resolved "https://registry.npm.taobao.org/punycode/download/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
10996 11035
   integrity sha1-tYsBCsQMIsVldhbI0sLALHv0eew=
10997 11036
 
11037
+pupa@^2.0.0:
11038
+  version "2.0.1"
11039
+  resolved "https://registry.npm.taobao.org/pupa/download/pupa-2.0.1.tgz#dbdc9ff48ffbea4a26a069b6f9f7abb051008726"
11040
+  integrity sha1-29yf9I/76komoGm2+fersFEAhyY=
11041
+  dependencies:
11042
+    escape-goat "^2.0.0"
11043
+
10998 11044
 q@^1.1.2:
10999 11045
   version "1.5.1"
11000 11046
   resolved "https://registry.npm.taobao.org/q/download/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
@@ -12444,6 +12490,11 @@ rollup-plugin-alias@^2.2.0:
12444 12490
   dependencies:
12445 12491
     slash "^3.0.0"
12446 12492
 
12493
+rollup-plugin-analyzer@^3.2.2:
12494
+  version "3.2.2"
12495
+  resolved "https://registry.npm.taobao.org/rollup-plugin-analyzer/download/rollup-plugin-analyzer-3.2.2.tgz#1ea109d164ac8cdbfeaacf1cf271bb66ca643d94"
12496
+  integrity sha1-HqEJ0WSsjNv+qs8c8nG7ZspkPZQ=
12497
+
12447 12498
 rollup-plugin-babel@^4.3.3:
12448 12499
   version "4.3.3"
12449 12500
   resolved "https://registry.npm.taobao.org/rollup-plugin-babel/download/rollup-plugin-babel-4.3.3.tgz#7eb5ac16d9b5831c3fd5d97e8df77ba25c72a2aa"
@@ -12535,6 +12586,18 @@ rollup-plugin-replace@^2.2.0:
12535 12586
     magic-string "^0.25.2"
12536 12587
     rollup-pluginutils "^2.6.0"
12537 12588
 
12589
+rollup-plugin-visualizer@^3.3.1:
12590
+  version "3.3.1"
12591
+  resolved "https://registry.npm.taobao.org/rollup-plugin-visualizer/download/rollup-plugin-visualizer-3.3.1.tgz#fac77899559098d28b1b02d90243e683847f6994"
12592
+  integrity sha1-+sd4mVWQmNKLGwLZAkPmg4R/aZQ=
12593
+  dependencies:
12594
+    mkdirp "^0.5.1"
12595
+    nanoid "^2.1.6"
12596
+    open "^6.0.0"
12597
+    pupa "^2.0.0"
12598
+    source-map "^0.7.3"
12599
+    yargs "^15.0.0"
12600
+
12538 12601
 rollup-pluginutils@^1.5.1:
12539 12602
   version "1.5.2"
12540 12603
   resolved "https://registry.npm.taobao.org/rollup-pluginutils/download/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408"
@@ -13064,6 +13127,11 @@ source-map@^0.5.0, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.0:
13064 13127
   resolved "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
13065 13128
   integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
13066 13129
 
13130
+source-map@^0.7.3:
13131
+  version "0.7.3"
13132
+  resolved "https://registry.npm.taobao.org/source-map/download/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
13133
+  integrity sha1-UwL4FpAxc1ImVECS5kmB91F1A4M=
13134
+
13067 13135
 sourcemap-codec@^1.4.4:
13068 13136
   version "1.4.6"
13069 13137
   resolved "https://registry.npm.taobao.org/sourcemap-codec/download/sourcemap-codec-1.4.6.tgz?cache=0&sync_timestamp=1562200915929&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsourcemap-codec%2Fdownload%2Fsourcemap-codec-1.4.6.tgz#e30a74f0402bad09807640d39e971090a08ce1e9"
@@ -13310,7 +13378,7 @@ string-width@^3.0.0, string-width@^3.1.0:
13310 13378
     is-fullwidth-code-point "^2.0.0"
13311 13379
     strip-ansi "^5.1.0"
13312 13380
 
13313
-string-width@^4.1.0:
13381
+string-width@^4.1.0, string-width@^4.2.0:
13314 13382
   version "4.2.0"
13315 13383
   resolved "https://registry.npm.taobao.org/string-width/download/string-width-4.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring-width%2Fdownload%2Fstring-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5"
13316 13384
   integrity sha1-lSGCxGzHssMT0VluYjmSvRY7crU=
@@ -14602,6 +14670,15 @@ wrap-ansi@^5.1.0:
14602 14670
     string-width "^3.0.0"
14603 14671
     strip-ansi "^5.0.0"
14604 14672
 
14673
+wrap-ansi@^6.2.0:
14674
+  version "6.2.0"
14675
+  resolved "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53"
14676
+  integrity sha1-6Tk7oHEC5skaOyIUePAlfNKFblM=
14677
+  dependencies:
14678
+    ansi-styles "^4.0.0"
14679
+    string-width "^4.1.0"
14680
+    strip-ansi "^6.0.0"
14681
+
14605 14682
 wrappy@1:
14606 14683
   version "1.0.2"
14607 14684
   resolved "https://registry.npm.taobao.org/wrappy/download/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
@@ -14702,6 +14779,14 @@ yargs-parser@^13.1.1:
14702 14779
     camelcase "^5.0.0"
14703 14780
     decamelize "^1.2.0"
14704 14781
 
14782
+yargs-parser@^16.1.0:
14783
+  version "16.1.0"
14784
+  resolved "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-16.1.0.tgz#73747d53ae187e7b8dbe333f95714c76ea00ecf1"
14785
+  integrity sha1-c3R9U64YfnuNvjM/lXFMduoA7PE=
14786
+  dependencies:
14787
+    camelcase "^5.0.0"
14788
+    decamelize "^1.2.0"
14789
+
14705 14790
 yargs@12.0.5:
14706 14791
   version "12.0.5"
14707 14792
   resolved "https://registry.npm.taobao.org/yargs/download/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13"
@@ -14735,3 +14820,20 @@ yargs@^13.3.0:
14735 14820
     which-module "^2.0.0"
14736 14821
     y18n "^4.0.0"
14737 14822
     yargs-parser "^13.1.1"
14823
+
14824
+yargs@^15.0.0:
14825
+  version "15.0.2"
14826
+  resolved "https://registry.npm.taobao.org/yargs/download/yargs-15.0.2.tgz#4248bf218ef050385c4f7e14ebdf425653d13bd3"
14827
+  integrity sha1-Qki/IY7wUDhcT34U699CVlPRO9M=
14828
+  dependencies:
14829
+    cliui "^6.0.0"
14830
+    decamelize "^1.2.0"
14831
+    find-up "^4.1.0"
14832
+    get-caller-file "^2.0.1"
14833
+    require-directory "^2.1.1"
14834
+    require-main-filename "^2.0.0"
14835
+    set-blocking "^2.0.0"
14836
+    string-width "^4.2.0"
14837
+    which-module "^2.0.0"
14838
+    y18n "^4.0.0"
14839
+    yargs-parser "^16.1.0"