@conecli/cone-render 0.9.1-isv2.0 → 0.9.1-isv2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/environmentType.ts +1 -0
  4. package/dist/common/index.h5.ts +1 -1
  5. package/dist/common/index.jd.ts +1 -1
  6. package/dist/common/index.ts +1 -1
  7. package/dist/common/index.weapp.ts +1 -1
  8. package/dist/common/jdplayerSdk.ts +1 -0
  9. package/dist/common/jssdk.ts +1 -0
  10. package/dist/common/pageType.ts +1 -0
  11. package/dist/common/sgmCustomCode.ts +1 -0
  12. package/dist/common/token/index.h5.ts +1 -1
  13. package/dist/common/token/token.jd.ts +1 -1
  14. package/dist/common/token/token.ts +1 -1
  15. package/dist/common/wxappApi.jd.ts +1 -0
  16. package/dist/components/ErrorBoundary.tsx +1 -1
  17. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  18. package/dist/components/base/CountDown/index.tsx +1 -1
  19. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  20. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  21. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  22. package/dist/components/base/CustomVideo/index.tsx +1 -1
  23. package/dist/components/base/Dialog/index.module.scss +5 -0
  24. package/dist/components/base/Dialog/index.tsx +1 -1
  25. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  26. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  27. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  28. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  29. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  30. package/dist/components/base/InViewRender/index.tsx +1 -1
  31. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  32. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  33. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  34. package/dist/components/base/LazyLoadImage/index.h5.module.scss +20 -20
  35. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  36. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  37. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  38. package/dist/components/base/NetworkDataError/const.ts +1 -1
  39. package/dist/components/base/NetworkDataError/index.module.scss +4 -0
  40. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  41. package/dist/components/base/Price/Double/index.tsx +1 -1
  42. package/dist/components/base/Price/index.tsx +1 -1
  43. package/dist/components/decorate/DecorateFloorModule/index.module.scss +21 -2
  44. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  45. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  46. package/dist/components/floorItem.jd.tsx +1 -1
  47. package/dist/components/floorItem.tsx +1 -1
  48. package/dist/components/floorItem.weapp.tsx +1 -1
  49. package/dist/components/isv/Floor/index.tsx +1 -1
  50. package/dist/components/remoteFloorItem.tsx +1 -1
  51. package/dist/interface/common.ts +1 -1
  52. package/dist/interface/component.ts +1 -1
  53. package/dist/interface/jumpEventReport.ts +1 -1
  54. package/dist/interface/service.ts +1 -1
  55. package/dist/interface/utils.ts +1 -1
  56. package/dist/jumpEventReport/base.ts +1 -1
  57. package/dist/jumpEventReport/const.ts +1 -1
  58. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  59. package/dist/jumpEventReport/index.h5.ts +1 -1
  60. package/dist/jumpEventReport/index.jd.ts +1 -1
  61. package/dist/jumpEventReport/index.weapp.ts +1 -1
  62. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  63. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  64. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  65. package/dist/jumpEventReport/web/report.ts +1 -1
  66. package/dist/jumpEventReport/web.base.ts +1 -1
  67. package/dist/jumpEventReport/web.jd.ts +1 -1
  68. package/dist/jumpEventReport/web.jdb.ts +1 -1
  69. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  70. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  71. package/dist/jumpEventReport/web.pc.ts +1 -0
  72. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  73. package/dist/jumpEventReport/web.tjm.ts +1 -0
  74. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  75. package/dist/modules/ContainerFloorList/index.h5.module.scss +17 -1
  76. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  77. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  78. package/dist/open/api/environment.ts +1 -1
  79. package/dist/open/api/index.ts +1 -1
  80. package/dist/open/api/jump copy.ts +1 -1
  81. package/dist/open/api/request.ts +1 -1
  82. package/dist/open/api/shopMember.ts +1 -1
  83. package/dist/open/api/track.ts +1 -1
  84. package/dist/open/api/util.ts +1 -1
  85. package/dist/open/components/index.ts +1 -1
  86. package/dist/sass/app.h5.scss +44 -3
  87. package/dist/sass/base.scss +12 -0
  88. package/dist/service/fetchGateway.ts +1 -1
  89. package/dist/service/http/const.ts +1 -1
  90. package/dist/service/requestServer.ts +1 -1
  91. package/dist/utils/connectNativeJsBridge.ts +1 -1
  92. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  93. package/dist/utils/draExceptionAndProfile.ts +1 -1
  94. package/dist/utils/h5Utils.ts +1 -1
  95. package/dist/utils/index.h5.ts +1 -1
  96. package/dist/utils/index.ts +1 -1
  97. package/dist/utils/index.weapp.ts +1 -1
  98. package/dist/utils/jm-common.js +1 -1
  99. package/dist/utils/sgmCodeUtils.ts +1 -0
  100. package/dist/utils/utils.ts +1 -1
  101. package/package.json +1 -1
  102. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
@@ -1 +1 @@
1
- import {
2
1
  isChartH5,
3
2
  isH5AndJdShopViewH5Scroll,
4
3
  isMemberPage,
5
4
  isChartH5,
6
5
  isH5AndJdShopViewH5Scroll,
7
6
  isH5AndJingGouMini,
8
7
  urlCookie,
9
8
  isMemberPage,
9
+ import {
10
10
  isMin,
11
11
  isJdMinAndHarmony,
12
12
  isChartH5,
13
13
  isH5AndJdShopViewH5Scroll,
14
14
  isH5AndJdShopH5CustomScrollView,
15
15
  getAvifSupport,
16
16
  getWebpSupport,
17
17
  isMemberPage,
18
18
  sgmCustomReport,
19
19
  isOpenJdAppUrl,
20
20
  jdOpenAppParams,
21
21
  createJdOpenAppUrl,
22
22
  isEmpty,
23
23
  getJdAppReportPageSource,
24
24
  isPc,
25
25
  ipLoc_djd,
26
26
  dealJdOpenAppData,
27
27
  jdAppVersionCompare,
28
28
  dealNativePixelToCssPixel,
29
29
  isAppStowShop,
30
30
  isImageOptimizeEnable,
31
31
  isJdAndHarmonyDevice,
32
32
  isJdAndroidX5Core,
33
33
  isMin,
34
34
  isJdMinAndHarmony,
35
35
  isChartH5,
36
36
  isH5AndJdShopViewH5Scroll,
37
37
  isH5AndJdShopH5CustomScrollView,
38
38
  isH5AndJingGouMini,
39
39
  urlCookie,
40
40
  getAvifSupport,
41
41
  getWebpSupport,
42
42
  isMemberPage,
43
43
  sgmCustomReport,
44
44
  isOpenJdAppUrl,
45
45
  jdOpenAppParams,
46
46
  createJdOpenAppUrl,
47
47
  isEmpty,
48
48
  getJdAppReportPageSource,
49
49
  isImageOptimizeEnable,
50
50
  isPc,
51
51
  ipLoc_djd,
52
52
  isTjM,
53
53
  isTjJxM,
54
54
  isTjScence,
55
55
  isH5AdnJxMini,
56
56
  isTJApp,
57
57
  isH5AdnHaoWuJie,
58
58
  tjChannel,
59
59
  dealJdOpenAppData,
60
60
  jdAppVersionCompare,
61
61
  dealNativePixelToCssPixel,
62
62
  isAppStowShop,
63
63
  getSgmCustomCode
@@ -1 +1 @@
1
- import {
2
1
  isChartH5,
3
2
  isH5AndJdShopViewH5Scroll,
4
3
  sgmCustomReport,
5
4
  isMemberPage,
6
5
  isAppClassifyPage
7
6
  isH5AndJdShopViewH5Scroll,
8
7
  isH5AndJingGouMini,
9
8
  urlCookie,
10
9
  isMemberPage,
11
10
  isAppClassifyPage
11
+ import {
12
12
  isJdMinAndHarmony,
13
13
  isChartH5,
14
14
  isH5AndJdShopViewH5Scroll,
15
15
  isH5AndJdShopH5CustomScrollView,
16
16
  getAvifSupport,
17
17
  getWebpSupport,
18
18
  sgmCustomReport,
19
19
  isOpenJdAppUrl,
20
20
  jdOpenAppParams,
21
21
  createJdOpenAppUrl,
22
22
  isEmpty,
23
23
  getJdAppReportPageSource,
24
24
  isMemberPage,
25
25
  isAppClassifyPage,
26
26
  dealJdOpenAppData,
27
27
  jdAppVersionCompare,
28
28
  dealNativePixelToCssPixel,
29
29
  isImageOptimizeEnable,
30
30
  isJdAndHarmonyDevice,
31
31
  isJdAndroidX5Core,
32
32
  isMin,
33
33
  isJdMinAndHarmony,
34
34
  isH5AndJdShopViewH5Scroll,
35
35
  isH5AndJdShopH5CustomScrollView,
36
36
  isH5AndJingGouMini,
37
37
  urlCookie,
38
38
  getAvifSupport,
39
39
  getWebpSupport,
40
40
  sgmCustomReport,
41
41
  isOpenJdAppUrl,
42
42
  jdOpenAppParams,
43
43
  createJdOpenAppUrl,
44
44
  isEmpty,
45
45
  getJdAppReportPageSource,
46
46
  isMemberPage,
47
47
  isAppClassifyPage,
48
48
  isImageOptimizeEnable,
49
49
  isPc,
50
50
  isTjM,
51
51
  isTjJxM,
52
52
  isTjScence,
53
53
  isH5AdnJxMini,
54
54
  isTJApp,
55
55
  isH5AdnHaoWuJie,
56
56
  tjChannel,
57
57
  dealJdOpenAppData,
58
58
  jdAppVersionCompare,
59
59
  dealNativePixelToCssPixel,
60
60
  getSgmCustomCode
@@ -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
  if(name == 'tjapp') return /jdltapp;/.test(ua);
91
91
  return false;
92
92
  ua = ua || navigator.userAgent;
93
93
  return (/android/i.test(ua) && !isIOS()
94
94
  );
95
95
  ua = ua || navigator.userAgent;
96
96
  return (/ip(hone|od)|ipad/i.test(ua)
97
97
  );
98
98
  ua = ua || navigator.userAgent;
99
99
  return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
100
100
  );
101
101
  ua = ua || navigator.userAgent;
102
102
  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);
103
103
  ua = ua || navigator.userAgent;
104
104
  return !!ua.match(/iphone/i);
105
105
  ua = ua || navigator.userAgent;
106
106
  return !!ua.match(/ipad/i);
107
107
  ua = ua || navigator.userAgent;
108
108
  if (name === 'xview') return typeof window.XView !== 'undefined';
109
109
  if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
110
110
  return false;
111
111
  ua = ua || navigator.userAgent;
112
112
  var re = /nettype\/([\S]*)/i;
113
113
  if (isApp('jd', ua)) re = /network\/([^;]*)/i;
114
114
  return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
115
115
  ua = ua || navigator.userAgent;
116
116
  if (!isApp('jd', ua)) return null;
117
117
  return ua.split(';')[4];
118
118
  ua = ua || navigator.userAgent;
119
119
  if (appName === 'jd') return ua.split(';')[2] || null;
120
120
  if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
121
121
  );
122
122
  if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
123
123
  );
124
124
  return null;
125
125
  ua = ua || navigator.userAgent;
126
126
  var match = ua.match(/android\s([0-9\.]*)/i);
127
127
  return match ? match[1] : 'unknown';
128
128
  ua = ua || navigator.userAgent;
129
129
  var match = ua.match(/OS ((\d+_?){2,3})\s/i);
130
130
  return match ? match[1].replace(/_/g, '.') : 'unknown';
@@ -0,0 +1 @@
1
+ import { getPageType } from "../common/pageType"
2
  return str.replace(/-([a-z])/g, (match) => {
1
3
  return match[1].toUpperCase();
2
4
  });
3
5
  let finalSgmCustomCode = sgmCustomCode
4
6
  const pageType = getPageType()
5
7
  if (pageType !== '') {
6
8
  const sgmPageType = underlineToCamelCase(pageType)
7
9
  finalSgmCustomCode = `${sgmPageType}_${finalSgmCustomCode}`
8
10
  }
9
11
  const environmentType = getEnvironmentType()
10
12
  finalSgmCustomCode = `${environmentType}_${finalSgmCustomCode}`
11
13
  console.log('sgm上报自定义编码', finalSgmCustomCode)
12
14
  return finalSgmCustomCode