@fonixtree/magic-design 0.0.10 → 0.0.13

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.
Files changed (415) hide show
  1. package/_virtual/index5.js +1 -1
  2. package/my_node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
  3. package/my_node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
  4. package/my_node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +9 -0
  5. package/my_node_modules/@babel/runtime/helpers/esm/classCallCheck.js +7 -0
  6. package/my_node_modules/@babel/runtime/helpers/esm/createClass.js +20 -0
  7. package/my_node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
  8. package/my_node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
  9. package/my_node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
  10. package/my_node_modules/@babel/runtime/helpers/esm/inherits.js +21 -0
  11. package/my_node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
  12. package/my_node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +31 -0
  13. package/my_node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
  14. package/my_node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
  15. package/my_node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
  16. package/my_node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -0
  17. package/my_node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
  18. package/my_node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  19. package/my_node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
  20. package/my_node_modules/@babel/runtime/helpers/interopRequireDefault.js +11 -0
  21. package/my_node_modules/call-bind/callBound.js +19 -0
  22. package/my_node_modules/call-bind/index.js +52 -0
  23. package/my_node_modules/classnames/index.js +61 -0
  24. package/my_node_modules/function-bind/implementation.js +52 -0
  25. package/my_node_modules/function-bind/index.js +7 -0
  26. package/my_node_modules/get-intrinsic/index.js +338 -0
  27. package/my_node_modules/has/src/index.js +7 -0
  28. package/my_node_modules/has-symbols/index.js +15 -0
  29. package/my_node_modules/has-symbols/shams.js +42 -0
  30. package/my_node_modules/lodash/_DataView.js +12 -0
  31. package/my_node_modules/lodash/_Hash.js +40 -0
  32. package/my_node_modules/lodash/_ListCache.js +40 -0
  33. package/my_node_modules/lodash/_Map.js +12 -0
  34. package/my_node_modules/lodash/_MapCache.js +40 -0
  35. package/my_node_modules/lodash/_Promise.js +12 -0
  36. package/my_node_modules/lodash/_Set.js +12 -0
  37. package/my_node_modules/lodash/_SetCache.js +33 -0
  38. package/my_node_modules/lodash/_Stack.js +36 -0
  39. package/my_node_modules/lodash/_Symbol.js +10 -0
  40. package/my_node_modules/lodash/_Uint8Array.js +10 -0
  41. package/my_node_modules/lodash/_WeakMap.js +12 -0
  42. package/my_node_modules/lodash/_arrayEach.js +25 -0
  43. package/my_node_modules/lodash/_arrayFilter.js +28 -0
  44. package/my_node_modules/lodash/_arrayLikeKeys.js +59 -0
  45. package/my_node_modules/lodash/_arrayMap.js +24 -0
  46. package/my_node_modules/lodash/_arrayPush.js +23 -0
  47. package/my_node_modules/lodash/_arraySome.js +26 -0
  48. package/my_node_modules/lodash/_assignValue.js +33 -0
  49. package/my_node_modules/lodash/_assocIndexOf.js +25 -0
  50. package/my_node_modules/lodash/_baseAssign.js +22 -0
  51. package/my_node_modules/lodash/_baseAssignIn.js +22 -0
  52. package/my_node_modules/lodash/_baseAssignValue.js +29 -0
  53. package/my_node_modules/lodash/_baseClone.js +193 -0
  54. package/my_node_modules/lodash/_baseCreate.js +34 -0
  55. package/my_node_modules/lodash/_baseFindIndex.js +27 -0
  56. package/my_node_modules/lodash/_baseFor.js +20 -0
  57. package/my_node_modules/lodash/_baseForOwn.js +21 -0
  58. package/my_node_modules/lodash/_baseGet.js +29 -0
  59. package/my_node_modules/lodash/_baseGetAllKeys.js +25 -0
  60. package/my_node_modules/lodash/_baseGetTag.js +34 -0
  61. package/my_node_modules/lodash/_baseHasIn.js +16 -0
  62. package/my_node_modules/lodash/_baseIsArguments.js +23 -0
  63. package/my_node_modules/lodash/_baseIsEqual.js +33 -0
  64. package/my_node_modules/lodash/_baseIsEqualDeep.js +95 -0
  65. package/my_node_modules/lodash/_baseIsMap.js +23 -0
  66. package/my_node_modules/lodash/_baseIsMatch.js +67 -0
  67. package/my_node_modules/lodash/_baseIsNative.js +54 -0
  68. package/my_node_modules/lodash/_baseIsSet.js +23 -0
  69. package/my_node_modules/lodash/_baseIsTypedArray.js +66 -0
  70. package/my_node_modules/lodash/_baseIteratee.js +39 -0
  71. package/my_node_modules/lodash/_baseKeys.js +35 -0
  72. package/my_node_modules/lodash/_baseKeysIn.js +39 -0
  73. package/my_node_modules/lodash/_baseMatches.js +28 -0
  74. package/my_node_modules/lodash/_baseMatchesProperty.js +43 -0
  75. package/my_node_modules/lodash/_baseProperty.js +17 -0
  76. package/my_node_modules/lodash/_basePropertyDeep.js +20 -0
  77. package/my_node_modules/lodash/_baseTimes.js +23 -0
  78. package/my_node_modules/lodash/_baseToNumber.js +28 -0
  79. package/my_node_modules/lodash/_baseToString.js +44 -0
  80. package/my_node_modules/lodash/_baseTrim.js +23 -0
  81. package/my_node_modules/lodash/_baseUnary.js +17 -0
  82. package/my_node_modules/lodash/_cacheHas.js +16 -0
  83. package/my_node_modules/lodash/_castPath.js +28 -0
  84. package/my_node_modules/lodash/_cloneArrayBuffer.js +20 -0
  85. package/my_node_modules/lodash/_cloneBuffer.js +40 -0
  86. package/my_node_modules/lodash/_cloneDataView.js +20 -0
  87. package/my_node_modules/lodash/_cloneRegExp.js +20 -0
  88. package/my_node_modules/lodash/_cloneSymbol.js +22 -0
  89. package/my_node_modules/lodash/_cloneTypedArray.js +20 -0
  90. package/my_node_modules/lodash/_copyArray.js +23 -0
  91. package/my_node_modules/lodash/_copyObject.js +45 -0
  92. package/my_node_modules/lodash/_copySymbols.js +21 -0
  93. package/my_node_modules/lodash/_copySymbolsIn.js +21 -0
  94. package/my_node_modules/lodash/_coreJsData.js +10 -0
  95. package/my_node_modules/lodash/_createBaseFor.js +28 -0
  96. package/my_node_modules/lodash/_createMathOperation.js +43 -0
  97. package/my_node_modules/lodash/_defineProperty.js +15 -0
  98. package/my_node_modules/lodash/_equalArrays.js +90 -0
  99. package/my_node_modules/lodash/_equalByTag.js +121 -0
  100. package/my_node_modules/lodash/_equalObjects.js +94 -0
  101. package/my_node_modules/lodash/_freeGlobal.js +9 -0
  102. package/my_node_modules/lodash/_getAllKeys.js +22 -0
  103. package/my_node_modules/lodash/_getAllKeysIn.js +23 -0
  104. package/my_node_modules/lodash/_getMapData.js +22 -0
  105. package/my_node_modules/lodash/_getMatchData.js +29 -0
  106. package/my_node_modules/lodash/_getNative.js +22 -0
  107. package/my_node_modules/lodash/_getPrototype.js +10 -0
  108. package/my_node_modules/lodash/_getRawTag.js +50 -0
  109. package/my_node_modules/lodash/_getSymbols.js +35 -0
  110. package/my_node_modules/lodash/_getSymbolsIn.js +32 -0
  111. package/my_node_modules/lodash/_getTag.js +68 -0
  112. package/my_node_modules/lodash/_getValue.js +16 -0
  113. package/my_node_modules/lodash/_hasPath.js +48 -0
  114. package/my_node_modules/lodash/_hashClear.js +19 -0
  115. package/my_node_modules/lodash/_hashDelete.js +20 -0
  116. package/my_node_modules/lodash/_hashGet.js +34 -0
  117. package/my_node_modules/lodash/_hashHas.js +27 -0
  118. package/my_node_modules/lodash/_hashSet.js +27 -0
  119. package/my_node_modules/lodash/_initCloneArray.js +29 -0
  120. package/my_node_modules/lodash/_initCloneByTag.js +85 -0
  121. package/my_node_modules/lodash/_initCloneObject.js +24 -0
  122. package/my_node_modules/lodash/_isIndex.js +28 -0
  123. package/my_node_modules/lodash/_isKey.js +34 -0
  124. package/my_node_modules/lodash/_isKeyable.js +18 -0
  125. package/my_node_modules/lodash/_isMasked.js +24 -0
  126. package/my_node_modules/lodash/_isPrototype.js +21 -0
  127. package/my_node_modules/lodash/_isStrictComparable.js +19 -0
  128. package/my_node_modules/lodash/_listCacheClear.js +16 -0
  129. package/my_node_modules/lodash/_listCacheDelete.js +39 -0
  130. package/my_node_modules/lodash/_listCacheGet.js +23 -0
  131. package/my_node_modules/lodash/_listCacheHas.js +20 -0
  132. package/my_node_modules/lodash/_listCacheSet.js +30 -0
  133. package/my_node_modules/lodash/_mapCacheClear.js +27 -0
  134. package/my_node_modules/lodash/_mapCacheDelete.js +22 -0
  135. package/my_node_modules/lodash/_mapCacheGet.js +20 -0
  136. package/my_node_modules/lodash/_mapCacheHas.js +20 -0
  137. package/my_node_modules/lodash/_mapCacheSet.js +26 -0
  138. package/my_node_modules/lodash/_mapToArray.js +21 -0
  139. package/my_node_modules/lodash/_matchesStrictComparable.js +23 -0
  140. package/my_node_modules/lodash/_memoizeCapped.js +30 -0
  141. package/my_node_modules/lodash/_nativeCreate.js +10 -0
  142. package/my_node_modules/lodash/_nativeKeys.js +10 -0
  143. package/my_node_modules/lodash/_nativeKeysIn.js +23 -0
  144. package/my_node_modules/lodash/_nodeUtil.js +35 -0
  145. package/my_node_modules/lodash/_objectToString.js +25 -0
  146. package/my_node_modules/lodash/_overArg.js +18 -0
  147. package/my_node_modules/lodash/_root.js +13 -0
  148. package/my_node_modules/lodash/_setCacheAdd.js +22 -0
  149. package/my_node_modules/lodash/_setCacheHas.js +17 -0
  150. package/my_node_modules/lodash/_setToArray.js +21 -0
  151. package/my_node_modules/lodash/_stackClear.js +19 -0
  152. package/my_node_modules/lodash/_stackDelete.js +21 -0
  153. package/my_node_modules/lodash/_stackGet.js +17 -0
  154. package/my_node_modules/lodash/_stackHas.js +17 -0
  155. package/my_node_modules/lodash/_stackSet.js +40 -0
  156. package/my_node_modules/lodash/_stringToPath.js +31 -0
  157. package/my_node_modules/lodash/_toKey.js +25 -0
  158. package/my_node_modules/lodash/_toSource.js +29 -0
  159. package/my_node_modules/lodash/_trimmedEndIndex.js +22 -0
  160. package/my_node_modules/lodash/cloneDeep.js +33 -0
  161. package/my_node_modules/lodash/divide.js +26 -0
  162. package/my_node_modules/lodash/eq.js +40 -0
  163. package/my_node_modules/lodash/findIndex.js +61 -0
  164. package/my_node_modules/lodash/get.js +37 -0
  165. package/my_node_modules/lodash/hasIn.js +39 -0
  166. package/my_node_modules/lodash/identity.js +24 -0
  167. package/my_node_modules/lodash/isArguments.js +41 -0
  168. package/my_node_modules/lodash/isArray.js +29 -0
  169. package/my_node_modules/lodash/isArrayLike.js +38 -0
  170. package/my_node_modules/lodash/isBuffer.js +44 -0
  171. package/my_node_modules/lodash/isEmpty.js +89 -0
  172. package/my_node_modules/lodash/isFunction.js +42 -0
  173. package/my_node_modules/lodash/isLength.js +38 -0
  174. package/my_node_modules/lodash/isMap.js +34 -0
  175. package/my_node_modules/lodash/isObject.js +34 -0
  176. package/my_node_modules/lodash/isObjectLike.js +32 -0
  177. package/my_node_modules/lodash/isSet.js +34 -0
  178. package/my_node_modules/lodash/isSymbol.js +34 -0
  179. package/my_node_modules/lodash/isTypedArray.js +34 -0
  180. package/my_node_modules/lodash/keys.js +43 -0
  181. package/my_node_modules/lodash/keysIn.js +38 -0
  182. package/my_node_modules/lodash/mapKeys.js +42 -0
  183. package/my_node_modules/lodash/memoize.js +77 -0
  184. package/my_node_modules/lodash/property.js +39 -0
  185. package/my_node_modules/lodash/stubArray.js +26 -0
  186. package/my_node_modules/lodash/stubFalse.js +21 -0
  187. package/my_node_modules/lodash/toFinite.js +46 -0
  188. package/my_node_modules/lodash/toInteger.js +40 -0
  189. package/my_node_modules/lodash/toNumber.js +70 -0
  190. package/my_node_modules/lodash/toString.js +32 -0
  191. package/my_node_modules/object-assign/index.js +99 -0
  192. package/my_node_modules/object-inspect/index.js +516 -0
  193. package/my_node_modules/prop-types/checkPropTypes.js +115 -0
  194. package/my_node_modules/prop-types/factoryWithThrowingShims.js +74 -0
  195. package/my_node_modules/prop-types/factoryWithTypeCheckers.js +625 -0
  196. package/my_node_modules/prop-types/index.js +27 -0
  197. package/my_node_modules/prop-types/lib/ReactPropTypesSecret.js +21 -0
  198. package/my_node_modules/prop-types/lib/has.js +11 -0
  199. package/my_node_modules/qs/lib/formats.js +23 -0
  200. package/my_node_modules/qs/lib/index.js +15 -0
  201. package/my_node_modules/qs/lib/parse.js +265 -0
  202. package/my_node_modules/qs/lib/stringify.js +330 -0
  203. package/my_node_modules/qs/lib/utils.js +254 -0
  204. package/my_node_modules/rc-motion/es/CSSMotion.js +149 -0
  205. package/my_node_modules/rc-motion/es/DomWrapper.js +28 -0
  206. package/my_node_modules/rc-motion/es/hooks/useDomMotionEvents.js +45 -0
  207. package/my_node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js +6 -0
  208. package/my_node_modules/rc-motion/es/hooks/useNextFrame.js +36 -0
  209. package/my_node_modules/rc-motion/es/hooks/useStatus.js +232 -0
  210. package/my_node_modules/rc-motion/es/hooks/useStepQueue.js +69 -0
  211. package/my_node_modules/rc-motion/es/index.js +4 -0
  212. package/my_node_modules/rc-motion/es/interface.js +11 -0
  213. package/my_node_modules/rc-motion/es/util/motion.js +85 -0
  214. package/my_node_modules/rc-util/es/Dom/canUseDom.js +5 -0
  215. package/my_node_modules/rc-util/es/Dom/findDOMNode.js +15 -0
  216. package/my_node_modules/rc-util/es/hooks/useState.js +36 -0
  217. package/my_node_modules/rc-util/es/raf.js +57 -0
  218. package/my_node_modules/rc-util/es/ref.js +30 -0
  219. package/my_node_modules/rc-util/lib/Children/toArray.js +39 -0
  220. package/my_node_modules/react-is/cjs/react-is.development.js +190 -0
  221. package/my_node_modules/react-is/cjs/react-is.production.min.js +26 -0
  222. package/my_node_modules/react-is/index.js +21 -0
  223. package/my_node_modules/shallowequal/index.js +48 -0
  224. package/my_node_modules/side-channel/index.js +128 -0
  225. package/my_node_modules/slick-carousel/slick/slick-theme.css.js +4 -0
  226. package/my_node_modules/slick-carousel/slick/slick.css.js +4 -0
  227. package/my_node_modules/style-inject/dist/style-inject.es.js +28 -0
  228. package/my_node_modules/tslib/tslib.es6.js +110 -0
  229. package/my_node_modules/uuid/index.js +13 -0
  230. package/my_node_modules/uuid/lib/bytesToUuid.js +29 -0
  231. package/my_node_modules/uuid/lib/rng-browser.js +39 -0
  232. package/my_node_modules/uuid/v1.js +115 -0
  233. package/my_node_modules/uuid/v4.js +35 -0
  234. package/package.json +3 -1
  235. package/src/components/assets/less/cylon-antd.less.js +1 -1
  236. package/src/components/assets/less/index.less.js +1 -1
  237. package/src/components/common/AlignSelector/index.js +2 -2
  238. package/src/components/common/AlignSelector/index.less.js +1 -1
  239. package/src/components/common/Button/index.js +2 -2
  240. package/src/components/common/Button/index.less.js +1 -1
  241. package/src/components/common/ButtonIconLayout/index.js +2 -2
  242. package/src/components/common/ButtonIconLayout/index.less.js +1 -1
  243. package/src/components/common/Collapse/index.js +1 -1
  244. package/src/components/common/Collapse/index.less.js +1 -1
  245. package/src/components/common/ColorPicker/index.js +1 -1
  246. package/src/components/common/ColorPicker/index.less.js +1 -1
  247. package/src/components/common/ColorPickerInput/index.js +2 -2
  248. package/src/components/common/ColorPickerInput/index.less.js +1 -1
  249. package/src/components/common/CountDown/index.js +1 -1
  250. package/src/components/common/CountDown/index.less.js +1 -1
  251. package/src/components/common/Field/index.js +2 -2
  252. package/src/components/common/Field/index.less.js +1 -1
  253. package/src/components/common/FontStyles/index.js +2 -2
  254. package/src/components/common/FontStyles/index.less.js +1 -1
  255. package/src/components/common/GroupList/index.js +1 -1
  256. package/src/components/common/GroupList/index.less.js +1 -1
  257. package/src/components/common/IconPicker/index.js +2 -2
  258. package/src/components/common/IconPicker/index.less.js +1 -1
  259. package/src/components/common/Iconfont/index.js +2 -2
  260. package/src/components/common/Iconfont/index.less.js +1 -1
  261. package/src/components/common/ImageModal/CommonSelPicCard/index.less.js +1 -1
  262. package/src/components/common/ImageModal/index.js +3 -3
  263. package/src/components/common/ImageModal/index.less.js +1 -1
  264. package/src/components/common/ImagePicker/index.js +1 -1
  265. package/src/components/common/ImagePicker/index.less.js +1 -1
  266. package/src/components/common/InputNumber/index.js +1 -1
  267. package/src/components/common/InputNumber/index.less.js +1 -1
  268. package/src/components/common/LayoutSelector/index.js +2 -2
  269. package/src/components/common/LayoutSelector/index.less.js +1 -1
  270. package/src/components/common/LinkModal/CatgTable/index.js +1 -1
  271. package/src/components/common/LinkModal/CouponTable/index.js +1 -1
  272. package/src/components/common/LinkModal/CustomTable/index.js +1 -1
  273. package/src/components/common/LinkModal/FilteredProductModal/index.js +1 -1
  274. package/src/components/common/LinkModal/FilteredProductModal/index.less.js +1 -1
  275. package/src/components/common/LinkModal/FunctionTable/index.js +1 -1
  276. package/src/components/common/LinkModal/ProductDetailPage/index.js +1 -1
  277. package/src/components/common/LinkModal/ProductDetailPage/index.less.js +1 -1
  278. package/src/components/common/LinkModal/index.less.js +1 -1
  279. package/src/components/common/NewImg/index.js +3 -3
  280. package/src/components/common/ProductModal/index.js +1 -1
  281. package/src/components/common/ProductModal/index.less.js +1 -1
  282. package/src/components/common/ProductSource/index.js +1 -1
  283. package/src/components/common/ProductSource/index.less.js +1 -1
  284. package/src/components/common/RcCollapse/Collapse.js +4 -4
  285. package/src/components/common/RcCollapse/Panel.js +5 -5
  286. package/src/components/common/RcCollapse/PanelContent.js +1 -1
  287. package/src/components/common/RcCollapse/index.less.js +1 -1
  288. package/src/components/common/Slider/index.js +2 -2
  289. package/src/components/common/Slider/index.less.js +1 -1
  290. package/src/components/common/SwitchCollapse/index.js +1 -1
  291. package/src/components/common/SwitchCollapse/index.less.js +1 -1
  292. package/src/components/common/UrlPicker/index.js +1 -1
  293. package/src/components/common/UrlPicker/index.less.js +1 -1
  294. package/src/components/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  295. package/src/components/composite-comp/bol/components/Banner/index.js +3 -3
  296. package/src/components/composite-comp/bol/components/Banner/mobile/index.js +2 -2
  297. package/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +1 -1
  298. package/src/components/composite-comp/bol/components/Banner/pc/index.js +4 -4
  299. package/src/components/composite-comp/bol/components/Banner/pc/index.less.js +1 -1
  300. package/src/components/composite-comp/bol/components/Button/defaultJSON.js +2 -2
  301. package/src/components/composite-comp/bol/components/Button/index.js +2 -2
  302. package/src/components/composite-comp/bol/components/Button/index.less.js +1 -1
  303. package/src/components/composite-comp/bol/components/Carousel/defaultJSON.js +3 -2
  304. package/src/components/composite-comp/bol/components/Carousel/index.js +1 -1
  305. package/src/components/composite-comp/bol/components/Carousel/mobile/index.js +4 -4
  306. package/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +1 -1
  307. package/src/components/composite-comp/bol/components/Carousel/pc/index.js +4 -4
  308. package/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +1 -1
  309. package/src/components/composite-comp/bol/components/Divider/defaultJSON.js +1 -1
  310. package/src/components/composite-comp/bol/components/Divider/index.js +1 -1
  311. package/src/components/composite-comp/bol/components/ImageGallery/defaultJSON.js +1 -1
  312. package/src/components/composite-comp/bol/components/ImageGallery/index.js +1 -1
  313. package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -1
  314. package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +1 -1
  315. package/src/components/composite-comp/bol/components/ImageText/defaultJSON.js +7 -2
  316. package/src/components/composite-comp/bol/components/ImageText/index.js +1 -1
  317. package/src/components/composite-comp/bol/components/ImageText/mobile/index.js +5 -3
  318. package/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +1 -1
  319. package/src/components/composite-comp/bol/components/ImageText/pc/index.js +21 -7
  320. package/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +1 -1
  321. package/src/components/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  322. package/src/components/composite-comp/bol/components/Newsletter/index.js +2 -2
  323. package/src/components/composite-comp/bol/components/Newsletter/index.less.js +1 -1
  324. package/src/components/composite-comp/bol/components/Tag/defaultJSON.js +2 -2
  325. package/src/components/composite-comp/bol/components/Tag/index.js +2 -2
  326. package/src/components/composite-comp/bol/components/Tag/index.less.js +1 -1
  327. package/src/components/composite-comp/bol/components/Text/defaultJSON.js +2 -2
  328. package/src/components/composite-comp/bol/components/Text/index.js +2 -2
  329. package/src/components/composite-comp/bol/components/Text/index.less.js +1 -1
  330. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -1
  331. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +1 -1
  332. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +3 -3
  333. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +1 -1
  334. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +3 -3
  335. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  336. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +3 -3
  337. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +1 -1
  338. package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +3 -3
  339. package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -3
  340. package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  341. package/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -1
  342. package/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +3 -3
  343. package/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +3 -3
  344. package/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +3 -3
  345. package/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
  346. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +3 -3
  347. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -1
  348. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +1 -1
  349. package/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +3 -3
  350. package/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +1 -1
  351. package/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +6 -4
  352. package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +3 -3
  353. package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -3
  354. package/src/components/composite-comp/common/components/ImageLabel/index.js +2 -2
  355. package/src/components/composite-comp/common/components/ImageLabel/index.less.js +1 -1
  356. package/src/components/composite-comp/common/components/ProductItem/index.js +1 -1
  357. package/src/components/composite-comp/common/components/ProductItem/index.less.js +1 -1
  358. package/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +3 -3
  359. package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +3 -3
  360. package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +1 -1
  361. package/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +3 -3
  362. package/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +1 -1
  363. package/src/components/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
  364. package/src/components/composite-comp/dito/components/FlashDeal/index.js +1 -1
  365. package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -1
  366. package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +1 -1
  367. package/src/components/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  368. package/src/components/composite-comp/dito/components/Recommend/index.js +1 -1
  369. package/src/components/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
  370. package/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +1 -1
  371. package/src/components/composite-comp/dito/components/SearchBar/defaultJSON.js +1 -1
  372. package/src/components/composite-comp/dito/components/SearchBar/index.js +1 -1
  373. package/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +3 -3
  374. package/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +1 -1
  375. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +3 -3
  376. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +3 -3
  377. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +3 -3
  378. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
  379. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +1 -1
  380. package/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +3 -3
  381. package/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
  382. package/src/components/core/Designer/CompListPanel/CompCard/index.less.js +1 -1
  383. package/src/components/core/Designer/CompListPanel/index.js +2 -2
  384. package/src/components/core/Designer/CompListPanel/index.less.js +1 -1
  385. package/src/components/core/Designer/ConfigPanel/index.js +1 -1
  386. package/src/components/core/Designer/ConfigPanel/index.less.js +1 -1
  387. package/src/components/core/Designer/History/index.js +1 -1
  388. package/src/components/core/Designer/PageCompList/index.js +4 -4
  389. package/src/components/core/Designer/PageCompList/index.less.js +1 -1
  390. package/src/components/core/Designer/QuickMenuBar/index.js +2 -2
  391. package/src/components/core/Designer/QuickMenuBar/index.less.js +1 -1
  392. package/src/components/core/Designer/ViewArea/index.js +3 -3
  393. package/src/components/core/Designer/ViewArea/index.less.js +1 -1
  394. package/src/components/core/Designer/index.js +2 -2
  395. package/src/components/core/Designer/index.less.js +1 -1
  396. package/src/components/core/Renderer/index.js +1 -1
  397. package/src/components/decorator/compositeDecorator.js +1 -1
  398. package/src/components/decorator/metaDecorator.js +1 -1
  399. package/src/components/meta-comp/components/Button/index.js +2 -2
  400. package/src/components/meta-comp/components/Button/index.less.js +1 -1
  401. package/src/components/meta-comp/components/Image/index.js +16 -4
  402. package/src/components/meta-comp/components/Image/index.less.js +1 -1
  403. package/src/components/meta-comp/components/Text/index.js +2 -2
  404. package/src/components/meta-comp/components/Text/index.less.js +1 -1
  405. package/src/components/meta-comp/config-panels/BaseConfig.js +1 -1
  406. package/src/components/meta-comp/config-panels/ButtonConfig/index.js +3 -3
  407. package/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +1 -1
  408. package/src/components/meta-comp/config-panels/ImageConfig/index.js +72 -27
  409. package/src/components/meta-comp/config-panels/ImageConfig/index.less.js +1 -1
  410. package/src/components/meta-comp/config-panels/TextConfig/index.js +3 -3
  411. package/src/components/meta-comp/config-panels/TextConfig/index.less.js +1 -1
  412. package/src/components/utils/commonUtil.js +19 -2
  413. package/src/components/utils/coreUtil.js +1 -1
  414. package/src/components/utils/currencyUtil.js +2 -2
  415. package/src/components/utils/dataTreeUtils.js +4 -4
@@ -0,0 +1,516 @@
1
+ import require$$0 from '../../_virtual/__node-resolve_empty.js';
2
+
3
+ var hasMap = typeof Map === 'function' && Map.prototype;
4
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
5
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
6
+ var mapForEach = hasMap && Map.prototype.forEach;
7
+ var hasSet = typeof Set === 'function' && Set.prototype;
8
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
9
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
10
+ var setForEach = hasSet && Set.prototype.forEach;
11
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
12
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
13
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
14
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
15
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
16
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
17
+ var booleanValueOf = Boolean.prototype.valueOf;
18
+ var objectToString = Object.prototype.toString;
19
+ var functionToString = Function.prototype.toString;
20
+ var $match = String.prototype.match;
21
+ var $slice = String.prototype.slice;
22
+ var $replace = String.prototype.replace;
23
+ var $toUpperCase = String.prototype.toUpperCase;
24
+ var $toLowerCase = String.prototype.toLowerCase;
25
+ var $test = RegExp.prototype.test;
26
+ var $concat = Array.prototype.concat;
27
+ var $join = Array.prototype.join;
28
+ var $arrSlice = Array.prototype.slice;
29
+ var $floor = Math.floor;
30
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
31
+ var gOPS = Object.getOwnPropertySymbols;
32
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
33
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
34
+ // ie, `has-tostringtag/shams
35
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
36
+ ? Symbol.toStringTag
37
+ : null;
38
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
39
+
40
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
41
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
42
+ ? function (O) {
43
+ return O.__proto__; // eslint-disable-line no-proto
44
+ }
45
+ : null
46
+ );
47
+
48
+ function addNumericSeparator(num, str) {
49
+ if (
50
+ num === Infinity
51
+ || num === -Infinity
52
+ || num !== num
53
+ || (num && num > -1000 && num < 1000)
54
+ || $test.call(/e/, str)
55
+ ) {
56
+ return str;
57
+ }
58
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
59
+ if (typeof num === 'number') {
60
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
61
+ if (int !== num) {
62
+ var intStr = String(int);
63
+ var dec = $slice.call(str, intStr.length + 1);
64
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
65
+ }
66
+ }
67
+ return $replace.call(str, sepRegex, '$&_');
68
+ }
69
+
70
+ var utilInspect = require$$0;
71
+ var inspectCustom = utilInspect.custom;
72
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
73
+
74
+ var objectInspect = function inspect_(obj, options, depth, seen) {
75
+ var opts = options || {};
76
+
77
+ if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
78
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
79
+ }
80
+ if (
81
+ has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
82
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
83
+ : opts.maxStringLength !== null
84
+ )
85
+ ) {
86
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
87
+ }
88
+ var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
89
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
90
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
91
+ }
92
+
93
+ if (
94
+ has(opts, 'indent')
95
+ && opts.indent !== null
96
+ && opts.indent !== '\t'
97
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
98
+ ) {
99
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
100
+ }
101
+ if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
102
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
103
+ }
104
+ var numericSeparator = opts.numericSeparator;
105
+
106
+ if (typeof obj === 'undefined') {
107
+ return 'undefined';
108
+ }
109
+ if (obj === null) {
110
+ return 'null';
111
+ }
112
+ if (typeof obj === 'boolean') {
113
+ return obj ? 'true' : 'false';
114
+ }
115
+
116
+ if (typeof obj === 'string') {
117
+ return inspectString(obj, opts);
118
+ }
119
+ if (typeof obj === 'number') {
120
+ if (obj === 0) {
121
+ return Infinity / obj > 0 ? '0' : '-0';
122
+ }
123
+ var str = String(obj);
124
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
125
+ }
126
+ if (typeof obj === 'bigint') {
127
+ var bigIntStr = String(obj) + 'n';
128
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
129
+ }
130
+
131
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
132
+ if (typeof depth === 'undefined') { depth = 0; }
133
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
134
+ return isArray(obj) ? '[Array]' : '[Object]';
135
+ }
136
+
137
+ var indent = getIndent(opts, depth);
138
+
139
+ if (typeof seen === 'undefined') {
140
+ seen = [];
141
+ } else if (indexOf(seen, obj) >= 0) {
142
+ return '[Circular]';
143
+ }
144
+
145
+ function inspect(value, from, noIndent) {
146
+ if (from) {
147
+ seen = $arrSlice.call(seen);
148
+ seen.push(from);
149
+ }
150
+ if (noIndent) {
151
+ var newOpts = {
152
+ depth: opts.depth
153
+ };
154
+ if (has(opts, 'quoteStyle')) {
155
+ newOpts.quoteStyle = opts.quoteStyle;
156
+ }
157
+ return inspect_(value, newOpts, depth + 1, seen);
158
+ }
159
+ return inspect_(value, opts, depth + 1, seen);
160
+ }
161
+
162
+ if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
163
+ var name = nameOf(obj);
164
+ var keys = arrObjKeys(obj, inspect);
165
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
166
+ }
167
+ if (isSymbol(obj)) {
168
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
169
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
170
+ }
171
+ if (isElement(obj)) {
172
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
173
+ var attrs = obj.attributes || [];
174
+ for (var i = 0; i < attrs.length; i++) {
175
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
176
+ }
177
+ s += '>';
178
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
179
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
180
+ return s;
181
+ }
182
+ if (isArray(obj)) {
183
+ if (obj.length === 0) { return '[]'; }
184
+ var xs = arrObjKeys(obj, inspect);
185
+ if (indent && !singleLineValues(xs)) {
186
+ return '[' + indentedJoin(xs, indent) + ']';
187
+ }
188
+ return '[ ' + $join.call(xs, ', ') + ' ]';
189
+ }
190
+ if (isError(obj)) {
191
+ var parts = arrObjKeys(obj, inspect);
192
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
193
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
194
+ }
195
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
196
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
197
+ }
198
+ if (typeof obj === 'object' && customInspect) {
199
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
200
+ return utilInspect(obj, { depth: maxDepth - depth });
201
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
202
+ return obj.inspect();
203
+ }
204
+ }
205
+ if (isMap(obj)) {
206
+ var mapParts = [];
207
+ mapForEach.call(obj, function (value, key) {
208
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
209
+ });
210
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
211
+ }
212
+ if (isSet(obj)) {
213
+ var setParts = [];
214
+ setForEach.call(obj, function (value) {
215
+ setParts.push(inspect(value, obj));
216
+ });
217
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
218
+ }
219
+ if (isWeakMap(obj)) {
220
+ return weakCollectionOf('WeakMap');
221
+ }
222
+ if (isWeakSet(obj)) {
223
+ return weakCollectionOf('WeakSet');
224
+ }
225
+ if (isWeakRef(obj)) {
226
+ return weakCollectionOf('WeakRef');
227
+ }
228
+ if (isNumber(obj)) {
229
+ return markBoxed(inspect(Number(obj)));
230
+ }
231
+ if (isBigInt(obj)) {
232
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
233
+ }
234
+ if (isBoolean(obj)) {
235
+ return markBoxed(booleanValueOf.call(obj));
236
+ }
237
+ if (isString(obj)) {
238
+ return markBoxed(inspect(String(obj)));
239
+ }
240
+ if (!isDate(obj) && !isRegExp(obj)) {
241
+ var ys = arrObjKeys(obj, inspect);
242
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
243
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
244
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
245
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
246
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
247
+ if (ys.length === 0) { return tag + '{}'; }
248
+ if (indent) {
249
+ return tag + '{' + indentedJoin(ys, indent) + '}';
250
+ }
251
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
252
+ }
253
+ return String(obj);
254
+ };
255
+
256
+ function wrapQuotes(s, defaultStyle, opts) {
257
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
258
+ return quoteChar + s + quoteChar;
259
+ }
260
+
261
+ function quote(s) {
262
+ return $replace.call(String(s), /"/g, '&quot;');
263
+ }
264
+
265
+ function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
266
+ function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
267
+ function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
268
+ function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
269
+ function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
270
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
271
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
272
+
273
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
274
+ function isSymbol(obj) {
275
+ if (hasShammedSymbols) {
276
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
277
+ }
278
+ if (typeof obj === 'symbol') {
279
+ return true;
280
+ }
281
+ if (!obj || typeof obj !== 'object' || !symToString) {
282
+ return false;
283
+ }
284
+ try {
285
+ symToString.call(obj);
286
+ return true;
287
+ } catch (e) {}
288
+ return false;
289
+ }
290
+
291
+ function isBigInt(obj) {
292
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
293
+ return false;
294
+ }
295
+ try {
296
+ bigIntValueOf.call(obj);
297
+ return true;
298
+ } catch (e) {}
299
+ return false;
300
+ }
301
+
302
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
303
+ function has(obj, key) {
304
+ return hasOwn.call(obj, key);
305
+ }
306
+
307
+ function toStr(obj) {
308
+ return objectToString.call(obj);
309
+ }
310
+
311
+ function nameOf(f) {
312
+ if (f.name) { return f.name; }
313
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
314
+ if (m) { return m[1]; }
315
+ return null;
316
+ }
317
+
318
+ function indexOf(xs, x) {
319
+ if (xs.indexOf) { return xs.indexOf(x); }
320
+ for (var i = 0, l = xs.length; i < l; i++) {
321
+ if (xs[i] === x) { return i; }
322
+ }
323
+ return -1;
324
+ }
325
+
326
+ function isMap(x) {
327
+ if (!mapSize || !x || typeof x !== 'object') {
328
+ return false;
329
+ }
330
+ try {
331
+ mapSize.call(x);
332
+ try {
333
+ setSize.call(x);
334
+ } catch (s) {
335
+ return true;
336
+ }
337
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
338
+ } catch (e) {}
339
+ return false;
340
+ }
341
+
342
+ function isWeakMap(x) {
343
+ if (!weakMapHas || !x || typeof x !== 'object') {
344
+ return false;
345
+ }
346
+ try {
347
+ weakMapHas.call(x, weakMapHas);
348
+ try {
349
+ weakSetHas.call(x, weakSetHas);
350
+ } catch (s) {
351
+ return true;
352
+ }
353
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
354
+ } catch (e) {}
355
+ return false;
356
+ }
357
+
358
+ function isWeakRef(x) {
359
+ if (!weakRefDeref || !x || typeof x !== 'object') {
360
+ return false;
361
+ }
362
+ try {
363
+ weakRefDeref.call(x);
364
+ return true;
365
+ } catch (e) {}
366
+ return false;
367
+ }
368
+
369
+ function isSet(x) {
370
+ if (!setSize || !x || typeof x !== 'object') {
371
+ return false;
372
+ }
373
+ try {
374
+ setSize.call(x);
375
+ try {
376
+ mapSize.call(x);
377
+ } catch (m) {
378
+ return true;
379
+ }
380
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
381
+ } catch (e) {}
382
+ return false;
383
+ }
384
+
385
+ function isWeakSet(x) {
386
+ if (!weakSetHas || !x || typeof x !== 'object') {
387
+ return false;
388
+ }
389
+ try {
390
+ weakSetHas.call(x, weakSetHas);
391
+ try {
392
+ weakMapHas.call(x, weakMapHas);
393
+ } catch (s) {
394
+ return true;
395
+ }
396
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
397
+ } catch (e) {}
398
+ return false;
399
+ }
400
+
401
+ function isElement(x) {
402
+ if (!x || typeof x !== 'object') { return false; }
403
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
404
+ return true;
405
+ }
406
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
407
+ }
408
+
409
+ function inspectString(str, opts) {
410
+ if (str.length > opts.maxStringLength) {
411
+ var remaining = str.length - opts.maxStringLength;
412
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
413
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
414
+ }
415
+ // eslint-disable-next-line no-control-regex
416
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
417
+ return wrapQuotes(s, 'single', opts);
418
+ }
419
+
420
+ function lowbyte(c) {
421
+ var n = c.charCodeAt(0);
422
+ var x = {
423
+ 8: 'b',
424
+ 9: 't',
425
+ 10: 'n',
426
+ 12: 'f',
427
+ 13: 'r'
428
+ }[n];
429
+ if (x) { return '\\' + x; }
430
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
431
+ }
432
+
433
+ function markBoxed(str) {
434
+ return 'Object(' + str + ')';
435
+ }
436
+
437
+ function weakCollectionOf(type) {
438
+ return type + ' { ? }';
439
+ }
440
+
441
+ function collectionOf(type, size, entries, indent) {
442
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
443
+ return type + ' (' + size + ') {' + joinedEntries + '}';
444
+ }
445
+
446
+ function singleLineValues(xs) {
447
+ for (var i = 0; i < xs.length; i++) {
448
+ if (indexOf(xs[i], '\n') >= 0) {
449
+ return false;
450
+ }
451
+ }
452
+ return true;
453
+ }
454
+
455
+ function getIndent(opts, depth) {
456
+ var baseIndent;
457
+ if (opts.indent === '\t') {
458
+ baseIndent = '\t';
459
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
460
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
461
+ } else {
462
+ return null;
463
+ }
464
+ return {
465
+ base: baseIndent,
466
+ prev: $join.call(Array(depth + 1), baseIndent)
467
+ };
468
+ }
469
+
470
+ function indentedJoin(xs, indent) {
471
+ if (xs.length === 0) { return ''; }
472
+ var lineJoiner = '\n' + indent.prev + indent.base;
473
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
474
+ }
475
+
476
+ function arrObjKeys(obj, inspect) {
477
+ var isArr = isArray(obj);
478
+ var xs = [];
479
+ if (isArr) {
480
+ xs.length = obj.length;
481
+ for (var i = 0; i < obj.length; i++) {
482
+ xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
483
+ }
484
+ }
485
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
486
+ var symMap;
487
+ if (hasShammedSymbols) {
488
+ symMap = {};
489
+ for (var k = 0; k < syms.length; k++) {
490
+ symMap['$' + syms[k]] = syms[k];
491
+ }
492
+ }
493
+
494
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
495
+ if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
496
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
497
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
498
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
499
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
500
+ } else if ($test.call(/[^\w$]/, key)) {
501
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
502
+ } else {
503
+ xs.push(key + ': ' + inspect(obj[key], obj));
504
+ }
505
+ }
506
+ if (typeof gOPS === 'function') {
507
+ for (var j = 0; j < syms.length; j++) {
508
+ if (isEnumerable.call(obj, syms[j])) {
509
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
510
+ }
511
+ }
512
+ }
513
+ return xs;
514
+ }
515
+
516
+ export { objectInspect as default };
@@ -0,0 +1,115 @@
1
+ import { __require as requireReactPropTypesSecret } from './lib/ReactPropTypesSecret.js';
2
+ import { __require as requireHas } from './lib/has.js';
3
+
4
+ /**
5
+ * Copyright (c) 2013-present, Facebook, Inc.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ var checkPropTypes_1;
12
+ var hasRequiredCheckPropTypes;
13
+
14
+ function requireCheckPropTypes () {
15
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
16
+ hasRequiredCheckPropTypes = 1;
17
+
18
+ var printWarning = function() {};
19
+
20
+ if (process.env.NODE_ENV !== 'production') {
21
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
22
+ var loggedTypeFailures = {};
23
+ var has = requireHas();
24
+
25
+ printWarning = function(text) {
26
+ var message = 'Warning: ' + text;
27
+ if (typeof console !== 'undefined') {
28
+ console.error(message);
29
+ }
30
+ try {
31
+ // --- Welcome to debugging React ---
32
+ // This error was thrown as a convenience so that you can use this stack
33
+ // to find the callsite that caused this warning to fire.
34
+ throw new Error(message);
35
+ } catch (x) { /**/ }
36
+ };
37
+ }
38
+
39
+ /**
40
+ * Assert that the values match with the type specs.
41
+ * Error messages are memorized and will only be shown once.
42
+ *
43
+ * @param {object} typeSpecs Map of name to a ReactPropType
44
+ * @param {object} values Runtime values that need to be type-checked
45
+ * @param {string} location e.g. "prop", "context", "child context"
46
+ * @param {string} componentName Name of the component for error messages.
47
+ * @param {?Function} getStack Returns the component stack.
48
+ * @private
49
+ */
50
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
51
+ if (process.env.NODE_ENV !== 'production') {
52
+ for (var typeSpecName in typeSpecs) {
53
+ if (has(typeSpecs, typeSpecName)) {
54
+ var error;
55
+ // Prop type validation may throw. In case they do, we don't want to
56
+ // fail the render phase where it didn't fail before. So we log it.
57
+ // After these have been cleaned up, we'll let them throw.
58
+ try {
59
+ // This is intentionally an invariant that gets caught. It's the same
60
+ // behavior as without this statement except with a better message.
61
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
62
+ var err = Error(
63
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
64
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
65
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
66
+ );
67
+ err.name = 'Invariant Violation';
68
+ throw err;
69
+ }
70
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
71
+ } catch (ex) {
72
+ error = ex;
73
+ }
74
+ if (error && !(error instanceof Error)) {
75
+ printWarning(
76
+ (componentName || 'React class') + ': type specification of ' +
77
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
78
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
79
+ 'You may have forgotten to pass an argument to the type checker ' +
80
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
81
+ 'shape all require an argument).'
82
+ );
83
+ }
84
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
85
+ // Only monitor this failure once because there tends to be a lot of the
86
+ // same error.
87
+ loggedTypeFailures[error.message] = true;
88
+
89
+ var stack = getStack ? getStack() : '';
90
+
91
+ printWarning(
92
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
93
+ );
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ /**
101
+ * Resets warning cache when testing.
102
+ *
103
+ * @private
104
+ */
105
+ checkPropTypes.resetWarningCache = function() {
106
+ if (process.env.NODE_ENV !== 'production') {
107
+ loggedTypeFailures = {};
108
+ }
109
+ };
110
+
111
+ checkPropTypes_1 = checkPropTypes;
112
+ return checkPropTypes_1;
113
+ }
114
+
115
+ export { requireCheckPropTypes as __require };