@conecli/cone-render 0.9.1-shop2.2 → 0.9.1-shop2.4

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 (62) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/index.jd.ts +1 -1
  4. package/dist/common/index.ts +1 -1
  5. package/dist/common/index.weapp.ts +1 -1
  6. package/dist/common/jssdk.ts +1 -0
  7. package/dist/common/pageType.ts +1 -0
  8. package/dist/common/token/index.h5.ts +1 -1
  9. package/dist/common/token/token.jd.ts +1 -1
  10. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  11. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  12. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  13. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  14. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  15. package/dist/components/base/InViewRender/index.tsx +1 -1
  16. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  17. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  18. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  19. package/dist/components/base/MobileCommonHeader/index.module.scss +9 -0
  20. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  21. package/dist/components/base/NetworkDataError/const.ts +1 -1
  22. package/dist/components/base/NetworkDataError/index.module.scss +4 -0
  23. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  24. package/dist/components/base/Price/Double/index.tsx +1 -1
  25. package/dist/components/base/Price/index.tsx +1 -1
  26. package/dist/components/decorate/DecorateFloorModule/index.module.scss +21 -2
  27. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  28. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  29. package/dist/components/isv/Floor/index.tsx +1 -1
  30. package/dist/components/remoteFloorItem.tsx +1 -1
  31. package/dist/interface/common.ts +1 -1
  32. package/dist/interface/component.ts +1 -1
  33. package/dist/jumpEventReport/const.ts +1 -1
  34. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  35. package/dist/jumpEventReport/index.h5.ts +1 -1
  36. package/dist/jumpEventReport/index.weapp.ts +1 -1
  37. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  38. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  39. package/dist/jumpEventReport/web/report.ts +1 -1
  40. package/dist/jumpEventReport/web.base.ts +1 -1
  41. package/dist/jumpEventReport/web.jd.ts +1 -1
  42. package/dist/jumpEventReport/web.jdb.ts +1 -1
  43. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  44. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  45. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  46. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  47. package/dist/open/api/environment.ts +1 -1
  48. package/dist/open/api/index.ts +1 -1
  49. package/dist/open/api/track.ts +1 -1
  50. package/dist/open/components/index.ts +1 -1
  51. package/dist/service/fetchGateway.ts +1 -1
  52. package/dist/service/http/const.ts +1 -1
  53. package/dist/service/requestServer.ts +1 -1
  54. package/dist/utils/connectNativeJsBridge.ts +1 -1
  55. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  56. package/dist/utils/h5Utils.ts +1 -1
  57. package/dist/utils/index.h5.ts +1 -1
  58. package/dist/utils/index.ts +1 -1
  59. package/dist/utils/index.weapp.ts +1 -1
  60. package/dist/utils/jm-common.js +1 -1
  61. package/dist/utils/utils.ts +1 -1
  62. package/package.json +1 -1
@@ -1 +1 @@
1
- var splitOnFirst = function splitOnFirst(string, separator) {
2
1
  return Object.prototype.toString.call(obj);
3
2
  return typeof obj === 'function';
4
3
  return '[object Object]' === getType(obj);
5
4
  return '[object Array]' == getType(obj);
6
5
  return '[object Undefined]' === getType(obj);
7
6
  return '[object Null]' == getType(obj);
8
7
  return typeof obj === 'string';
9
8
  return typeof obj === 'boolean';
10
9
  return '[object Number]' === getType(num);
11
10
  ua = ua || navigator.userAgent;
12
11
  if (name === 'wx') return (/micromessenger/i.test(ua)
13
12
  );
14
13
  if (name === 'qq') return (/qq\//i.test(ua)
15
14
  );
16
15
  if (name === 'weibo') return (/weibo/i.test(ua)
17
16
  );
18
17
  if (name === 'jd') return (/^jdapp/i.test(ua)
19
18
  );
20
19
  if (name === 'jdlittle') return (/^jdltapp/i.test(ua)
21
20
  );
22
21
  if (name === 'mp') return navigator.userAgent.match(/micromessenger/i) && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === 'miniprogram';
23
22
  if (name === 'jdb') return (/JDBmall/i.test(ua) && /shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href));
24
23
  if(name === 'jdjch') return (/jdjchshopapp/i.test(ua) || (/shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href)) && window.location.href.includes('channel')) ;
25
24
  return false;
26
25
  ua = ua || navigator.userAgent;
27
26
  return (/android/i.test(ua) && !isIOS()
28
27
  );
29
28
  ua = ua || navigator.userAgent;
30
29
  return (/ip(hone|od)|ipad/i.test(ua)
31
30
  );
32
31
  ua = ua || navigator.userAgent;
33
32
  return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
34
33
  );
35
34
  ua = ua || navigator.userAgent;
36
35
  return !!ua.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/i);
37
36
  ua = ua || navigator.userAgent;
38
37
  return !!ua.match(/iphone/i);
39
38
  ua = ua || navigator.userAgent;
40
39
  return !!ua.match(/ipad/i);
41
40
  ua = ua || navigator.userAgent;
42
41
  if (name === 'xview') return typeof window.XView !== 'undefined';
43
42
  if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
44
43
  return false;
45
44
  ua = ua || navigator.userAgent;
46
45
  var re = /nettype\/([\S]*)/i;
47
46
  if (isApp('jd', ua)) re = /network\/([^;]*)/i;
48
47
  return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
49
48
  ua = ua || navigator.userAgent;
50
49
  if (!isApp('jd', ua)) return null;
51
50
  return ua.split(';')[4];
52
51
  ua = ua || navigator.userAgent;
53
52
  if (appName === 'jd') return ua.split(';')[2] || null;
54
53
  if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
55
54
  );
56
55
  if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
57
56
  );
58
57
  return null;
59
58
  ua = ua || navigator.userAgent;
60
59
  var match = ua.match(/android\s([0-9\.]*)/i);
61
60
  return match ? match[1] : 'unknown';
62
61
  ua = ua || navigator.userAgent;
63
62
  var match = ua.match(/OS ((\d+_?){2,3})\s/i);
64
63
  return match ? match[1].replace(/_/g, '.') : 'unknown';
64
+ var splitOnFirst = function splitOnFirst(string, separator) {
65
65
  return Object.prototype.toString.call(obj);
66
66
  return typeof obj === 'function';
67
67
  return '[object Object]' === getType(obj);
68
68
  return '[object Array]' == getType(obj);
69
69
  return '[object Undefined]' === getType(obj);
70
70
  return '[object Null]' == getType(obj);
71
71
  return typeof obj === 'string';
72
72
  return typeof obj === 'boolean';
73
73
  return '[object Number]' === getType(num);
74
74
  ua = ua || navigator.userAgent;
75
75
  if (name === 'wx') return (/micromessenger/i.test(ua)
76
76
  );
77
77
  if (name === 'qq') return (/qq\//i.test(ua)
78
78
  );
79
79
  if (name === 'weibo') return (/weibo/i.test(ua)
80
80
  );
81
81
  if (name === 'jd') return (/^jdapp/i.test(ua)
82
82
  );
83
83
  if (name === 'jdharmony') return (/^jdapp;harmony/i.test(ua)
84
84
  );
85
85
  if (name === 'jdlittle') return (/^jdltapp/i.test(ua)
86
86
  );
87
87
  if (name === 'mp') return navigator.userAgent.match(/micromessenger/i) && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === 'miniprogram';
88
88
  if (name === 'jdb') return (/JDBmall/i.test(ua) && /shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href));
89
89
  if(name === 'jdjch') return (/jdjchshopapp/i.test(ua) || (/shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href)) && window.location.href.includes('channel')) ;
90
90
  return false;
91
91
  ua = ua || navigator.userAgent;
92
92
  return (/android/i.test(ua) && !isIOS()
93
93
  );
94
94
  ua = ua || navigator.userAgent;
95
95
  return (/ip(hone|od)|ipad/i.test(ua)
96
96
  );
97
97
  ua = ua || navigator.userAgent;
98
98
  return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
99
99
  );
100
100
  ua = ua || navigator.userAgent;
101
101
  return !!ua.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/i);
102
102
  ua = ua || navigator.userAgent;
103
103
  return !!ua.match(/iphone/i);
104
104
  ua = ua || navigator.userAgent;
105
105
  return !!ua.match(/ipad/i);
106
106
  ua = ua || navigator.userAgent;
107
107
  if (name === 'xview') return typeof window.XView !== 'undefined';
108
108
  if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
109
109
  return false;
110
110
  ua = ua || navigator.userAgent;
111
111
  var re = /nettype\/([\S]*)/i;
112
112
  if (isApp('jd', ua)) re = /network\/([^;]*)/i;
113
113
  return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
114
114
  ua = ua || navigator.userAgent;
115
115
  if (!isApp('jd', ua)) return null;
116
116
  return ua.split(';')[4];
117
117
  ua = ua || navigator.userAgent;
118
118
  if (appName === 'jd') return ua.split(';')[2] || null;
119
119
  if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
120
120
  );
121
121
  if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
122
122
  );
123
123
  return null;
124
124
  ua = ua || navigator.userAgent;
125
125
  var match = ua.match(/android\s([0-9\.]*)/i);
126
126
  return match ? match[1] : 'unknown';
127
127
  ua = ua || navigator.userAgent;
128
128
  var match = ua.match(/OS ((\d+_?){2,3})\s/i);
129
129
  return match ? match[1].replace(/_/g, '.') : 'unknown';