@conecli/cone-render 0.10.1-shop3.3 → 0.10.1-shop3.5

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 (32) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  4. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  5. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  6. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  7. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  8. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  9. package/dist/interface/jumpEventReport.ts +1 -1
  10. package/dist/interface/service.ts +1 -1
  11. package/dist/jumpEventReport/base.ts +1 -1
  12. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  13. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  14. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  15. package/dist/jumpEventReport/web/report.ts +1 -1
  16. package/dist/jumpEventReport/web.base.ts +1 -1
  17. package/dist/jumpEventReport/web.jd.ts +1 -1
  18. package/dist/modules/ContainerFloorList/index.h5.module.scss +3 -0
  19. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  20. package/dist/open/api/util.ts +1 -1
  21. package/dist/service/http/colorSign.ts +1 -1
  22. package/dist/service/http/const.ts +1 -1
  23. package/dist/service/requestServer.h5.ts +1 -1
  24. package/dist/service/requestServer.ts +1 -1
  25. package/dist/utils/connectNativeJsBridge.ts +1 -1
  26. package/dist/utils/h5Utils.ts +1 -1
  27. package/dist/utils/index.h5.ts +1 -1
  28. package/dist/utils/index.ts +1 -1
  29. package/dist/utils/index.weapp.ts +1 -1
  30. package/dist/utils/sColor.js +1 -0
  31. package/dist/utils/utils.ts +1 -1
  32. package/package.json +1 -1
@@ -1 +1 @@
1
- import {
2
1
  isMin,
3
2
  isJdMinAndHarmony,
4
3
  isChartH5,
5
4
  isH5AndJdShopViewH5Scroll,
6
5
  isH5AndJdShopH5CustomScrollView,
7
6
  getAvifSupport,
8
7
  getWebpSupport,
9
8
  isMemberPage,
10
9
  sgmCustomReport,
11
10
  draCustomReport,
12
11
  remoteCustomReport,
13
12
  draInterfaceCustomReport,
14
13
  draBusinessCustomReport,
15
14
  isOpenJdAppUrl,
16
15
  jdOpenAppParams,
17
16
  createJdOpenAppUrl,
18
17
  isEmpty,
19
18
  getJdAppReportPageSource,
20
19
  isPc,
21
20
  ipLoc_djd,
22
21
  dealJdOpenAppData,
23
22
  jdAppVersionCompare,
24
23
  dealNativePixelToCssPixel,
25
24
  isAppStowShop,
26
25
  isImageOptimizeEnable,
27
26
  isIpadDevice,
28
27
  getBorderStyle,
29
28
  isLanguageForEn,
30
29
  console.warn("🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!")
31
30
  return false
32
31
  isJdAndHarmonyDevice,
33
32
  isJdAndroidX5Core,
34
33
  isMin,
35
34
  isJdMinAndHarmony,
36
35
  isChartH5,
37
36
  isH5AndJdShopViewH5Scroll,
38
37
  isH5AndJdShopH5CustomScrollView,
39
38
  isH5AndJingGouMini,
40
39
  urlCookie,
41
40
  stopNativeScrollEvent,
42
41
  getAvifSupport,
43
42
  getWebpSupport,
44
43
  isMemberPage,
45
44
  sgmCustomReport,
46
45
  draCustomReport,
47
46
  remoteCustomReport,
48
47
  draInterfaceCustomReport,
49
48
  draBusinessCustomReport,
50
49
  isOpenJdAppUrl,
51
50
  jdOpenAppParams,
52
51
  createJdOpenAppUrl,
53
52
  isEmpty,
54
53
  isAppHomeForMarketPage,
55
54
  getJdAppReportPageSource,
56
55
  isImageOptimizeEnable,
57
56
  isPc,
58
57
  ipLoc_djd,
59
58
  isTjM,
60
59
  isTjJxM,
61
60
  isTjScence,
62
61
  isH5AdnJxMini,
63
62
  isTJApp,
64
63
  isH5AdnHaoWuJie,
65
64
  tjChannel,
66
65
  dealJdOpenAppData,
67
66
  jdAppVersionCompare,
68
67
  dealNativePixelToCssPixel,
69
68
  isAppStowShop,
70
69
  getSgmCustomCode,
71
70
  handleSgmCodeTaroVersion,
72
71
  isInGrayscale,
73
72
  isIpadDevice,
74
73
  getBorderStyle,
75
74
  isLanguageForEn,
75
+ import {
76
76
  isJdApp,
77
77
  isWxApp,
78
78
  isIosDevice,
79
79
  isAndroidDevice,
80
80
  isJdAndIosDevice,
81
81
  isJdAndAndroidDevice,
82
82
  isWxMin,
83
83
  isMin,
84
84
  isJdMinAndHarmony,
85
85
  isWxMinAndWxapp,
86
86
  isJdMin,
87
87
  isH5,
88
88
  isH5AndJdShopView,
89
89
  isChartH5,
90
90
  isH5AndJdShopViewNativeScroll,
91
91
  isH5AndJdShopViewH5Scroll,
92
92
  isH5AndJdShopH5CustomScrollView,
93
93
  isWxMiniH5View,
94
94
  sliceArrToChunkList,
95
95
  dealAddress,
96
96
  objectToUrlEncode,
97
97
  setLowSmallPicUrl,
98
98
  parseQueryUrlString,
99
99
  countStringify,
100
100
  setTaroStorage,
101
101
  getTaroStorageKeyValue,
102
102
  removeTaroStorageKey,
103
103
  clearTaroStorageKey,
104
104
  getQualityImage,
105
105
  getSystemInfos,
106
106
  getWxAppCookieStr,
107
107
  pxTransformFromData,
108
108
  dealShopContentData,
109
109
  dateFormat,
110
110
  throttle,
111
111
  lodashThrottle,
112
112
  debounce,
113
113
  addHttps,
114
114
  showSuccessToast,
115
115
  showFailToast,
116
116
  showNormalToast,
117
117
  showShopLoading,
118
118
  hideShopLoading,
119
119
  getAppChannelType,
120
120
  formatTabActiveMenuType,
121
121
  getAvifSupport,
122
122
  getWebpSupport,
123
123
  filterUrlQueryData,
124
124
  isMemberPage,
125
125
  sgmCustomReport,
126
126
  draCustomReport,
127
127
  remoteCustomReport,
128
128
  draInterfaceCustomReport,
129
129
  draBusinessCustomReport,
130
130
  isOpenJdAppUrl,
131
131
  jdOpenAppParams,
132
132
  createJdOpenAppUrl,
133
133
  isEmpty,
134
134
  getJdAppReportPageSource,
135
135
  isAppClassifyPage,
136
136
  isPc,
137
137
  ipLoc_djd,
138
138
  dealJdOpenAppData,
139
139
  jdAppVersionCompare,
140
140
  dealNativePixelToCssPixel,
141
141
  isAppStowShop,
142
142
  isImageOptimizeEnable,
143
143
  isIpadDevice,
144
144
  getBorderStyle,
145
145
  isLanguageForEn,
146
146
  sColor,
147
147
  draInterfaceDSMCustomReport,
148
148
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
149
149
  return false;
150
150
  isJdApp,
151
151
  isWxApp,
152
152
  isIosDevice,
153
153
  isAndroidDevice,
154
154
  isJdAndIosDevice,
155
155
  isJdAndAndroidDevice,
156
156
  isJdAndHarmonyDevice,
157
157
  isJdAndroidX5Core,
158
158
  isWxMin,
159
159
  isMin,
160
160
  isJdMinAndHarmony,
161
161
  isWxMinAndWxapp,
162
162
  isJdMin,
163
163
  isH5,
164
164
  isH5AndJdShopView,
165
165
  isChartH5,
166
166
  isH5AndJdShopViewNativeScroll,
167
167
  isH5AndJdShopViewH5Scroll,
168
168
  isH5AndJdShopH5CustomScrollView,
169
169
  isH5AndJingGouMini,
170
170
  isWxMiniH5View,
171
171
  urlCookie,
172
172
  sliceArrToChunkList,
173
173
  dealAddress,
174
174
  objectToUrlEncode,
175
175
  parseQueryUrlString,
176
176
  setLowSmallPicUrl,
177
177
  countStringify,
178
178
  setTaroStorage,
179
179
  getTaroStorageKeyValue,
180
180
  removeTaroStorageKey,
181
181
  clearTaroStorageKey,
182
182
  getQualityImage,
183
183
  getSystemInfos,
184
184
  getWxAppCookieStr,
185
185
  pxTransformFromData,
186
186
  dealShopContentData,
187
187
  dateFormat,
188
188
  throttle,
189
189
  lodashThrottle,
190
190
  debounce,
191
191
  addHttps,
192
192
  showSuccessToast,
193
193
  showFailToast,
194
194
  showNormalToast,
195
195
  showShopLoading,
196
196
  hideShopLoading,
197
197
  stopNativeScrollEvent,
198
198
  getAppChannelType,
199
199
  formatTabActiveMenuType,
200
200
  getAvifSupport,
201
201
  getWebpSupport,
202
202
  filterUrlQueryData,
203
203
  isMemberPage,
204
204
  getFloorDataToDataDefines,
205
205
  sgmCustomReport,
206
206
  draCustomReport,
207
207
  remoteCustomReport,
208
208
  draInterfaceCustomReport,
209
209
  draBusinessCustomReport,
210
210
  isOpenJdAppUrl,
211
211
  jdOpenAppParams,
212
212
  createJdOpenAppUrl,
213
213
  isEmpty,
214
214
  isAppClassifyPage,
215
215
  isAppHomeForMarketPage,
216
216
  getJdAppReportPageSource,
217
217
  isImageOptimizeEnable,
218
218
  isPc,
219
219
  ipLoc_djd,
220
220
  isTjM,
221
221
  isTjJxM,
222
222
  isTjScence,
223
223
  isH5AdnJxMini,
224
224
  isTJApp,
225
225
  isH5AdnHaoWuJie,
226
226
  tjChannel,
227
227
  dealJdOpenAppData,
228
228
  jdAppVersionCompare,
229
229
  dealNativePixelToCssPixel,
230
230
  isAppStowShop,
231
231
  getSgmCustomCode,
232
232
  handleSgmCodeTaroVersion,
233
233
  isInGrayscale,
234
234
  isIpadDevice,
235
235
  getBorderStyle,
236
236
  isLanguageForEn,
237
237
  sColor,
238
238
  draInterfaceDSMCustomReport,
@@ -1 +1 @@
1
- import {
2
1
  isJdMinAndHarmony,
3
2
  isChartH5,
4
3
  isH5AndJdShopViewH5Scroll,
5
4
  isH5AndJdShopH5CustomScrollView,
6
5
  getAvifSupport,
7
6
  getWebpSupport,
8
7
  sgmCustomReport,
9
8
  draCustomReport,
10
9
  remoteCustomReport,
11
10
  draInterfaceCustomReport,
12
11
  draBusinessCustomReport,
13
12
  isOpenJdAppUrl,
14
13
  jdOpenAppParams,
15
14
  createJdOpenAppUrl,
16
15
  isEmpty,
17
16
  getJdAppReportPageSource,
18
17
  isMemberPage,
19
18
  isAppClassifyPage,
20
19
  dealJdOpenAppData,
21
20
  jdAppVersionCompare,
22
21
  dealNativePixelToCssPixel,
23
22
  isImageOptimizeEnable,
24
23
  isIpadDevice,
25
24
  getBorderStyle,
26
25
  isLanguageForEn,
27
26
  console.warn("🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!")
28
27
  return false
29
28
  isJdAndHarmonyDevice,
30
29
  isJdAndroidX5Core,
31
30
  isMin,
32
31
  isJdMinAndHarmony,
33
32
  isH5AndJdShopViewH5Scroll,
34
33
  isH5AndJdShopH5CustomScrollView,
35
34
  isH5AndJingGouMini,
36
35
  urlCookie,
37
36
  stopNativeScrollEvent,
38
37
  getAvifSupport,
39
38
  getWebpSupport,
40
39
  sgmCustomReport,
41
40
  draCustomReport,
42
41
  remoteCustomReport,
43
42
  draInterfaceCustomReport,
44
43
  draBusinessCustomReport,
45
44
  isOpenJdAppUrl,
46
45
  jdOpenAppParams,
47
46
  createJdOpenAppUrl,
48
47
  isEmpty,
49
48
  getJdAppReportPageSource,
50
49
  isMemberPage,
51
50
  isAppClassifyPage,
52
51
  isAppHomeForMarketPage,
53
52
  isImageOptimizeEnable,
54
53
  isPc,
55
54
  isTjM,
56
55
  isTjJxM,
57
56
  isTjScence,
58
57
  isH5AdnJxMini,
59
58
  isTJApp,
60
59
  isH5AdnHaoWuJie,
61
60
  tjChannel,
62
61
  dealJdOpenAppData,
63
62
  jdAppVersionCompare,
64
63
  dealNativePixelToCssPixel,
65
64
  getSgmCustomCode,
66
65
  handleSgmCodeTaroVersion,
67
66
  isInGrayscale,
68
67
  isIpadDevice,
69
68
  getBorderStyle,
70
69
  isLanguageForEn,
70
+ import {
71
71
  isJdApp,
72
72
  isWxApp,
73
73
  isIosDevice,
74
74
  isAndroidDevice,
75
75
  isJdAndIosDevice,
76
76
  isJdAndAndroidDevice,
77
77
  isWxMin,
78
78
  isWxMinAndWxapp,
79
79
  isJdMin,
80
80
  isJdMinAndHarmony,
81
81
  isH5,
82
82
  isH5AndJdShopView,
83
83
  isChartH5,
84
84
  isH5AndJdShopViewNativeScroll,
85
85
  isH5AndJdShopViewH5Scroll,
86
86
  isH5AndJdShopH5CustomScrollView,
87
87
  isWxMiniH5View,
88
88
  sliceArrToChunkList,
89
89
  dealAddress,
90
90
  objectToUrlEncode,
91
91
  parseQueryUrlString,
92
92
  setLowSmallPicUrl,
93
93
  setTaroStorage,
94
94
  getTaroStorageKeyValue,
95
95
  removeTaroStorageKey,
96
96
  clearTaroStorageKey,
97
97
  getQualityImage,
98
98
  countStringify,
99
99
  getSystemInfos,
100
100
  getWxAppCookieStr,
101
101
  pxTransformFromData,
102
102
  dealShopContentData,
103
103
  dateFormat,
104
104
  throttle,
105
105
  lodashThrottle,
106
106
  debounce,
107
107
  addHttps,
108
108
  showSuccessToast,
109
109
  showFailToast,
110
110
  showNormalToast,
111
111
  showShopLoading,
112
112
  hideShopLoading,
113
113
  getAppChannelType,
114
114
  formatTabActiveMenuType,
115
115
  getAvifSupport,
116
116
  getWebpSupport,
117
117
  filterUrlQueryData,
118
118
  sgmCustomReport,
119
119
  draCustomReport,
120
120
  remoteCustomReport,
121
121
  draInterfaceCustomReport,
122
122
  draBusinessCustomReport,
123
123
  isOpenJdAppUrl,
124
124
  jdOpenAppParams,
125
125
  createJdOpenAppUrl,
126
126
  isEmpty,
127
127
  getJdAppReportPageSource,
128
128
  isMemberPage,
129
129
  isAppClassifyPage,
130
130
  dealJdOpenAppData,
131
131
  jdAppVersionCompare,
132
132
  dealNativePixelToCssPixel,
133
133
  isImageOptimizeEnable,
134
134
  isIpadDevice,
135
135
  getBorderStyle,
136
136
  isLanguageForEn,
137
137
  sColor,
138
138
  draInterfaceDSMCustomReport,
139
139
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
140
140
  return false;
141
141
  isJdApp,
142
142
  isWxApp,
143
143
  isIosDevice,
144
144
  isAndroidDevice,
145
145
  isJdAndIosDevice,
146
146
  isJdAndAndroidDevice,
147
147
  isJdAndHarmonyDevice,
148
148
  isJdAndroidX5Core,
149
149
  isWxMin,
150
150
  isWxMinAndWxapp,
151
151
  isJdMin,
152
152
  isMin,
153
153
  isJdMinAndHarmony,
154
154
  isH5,
155
155
  isH5AndJdShopView,
156
156
  isChartH5,
157
157
  isH5AndJdShopViewNativeScroll,
158
158
  isH5AndJdShopViewH5Scroll,
159
159
  isH5AndJdShopH5CustomScrollView,
160
160
  isH5AndJingGouMini,
161
161
  isWxMiniH5View,
162
162
  urlCookie,
163
163
  sliceArrToChunkList,
164
164
  dealAddress,
165
165
  objectToUrlEncode,
166
166
  parseQueryUrlString,
167
167
  setLowSmallPicUrl,
168
168
  setTaroStorage,
169
169
  getTaroStorageKeyValue,
170
170
  removeTaroStorageKey,
171
171
  clearTaroStorageKey,
172
172
  getQualityImage,
173
173
  countStringify,
174
174
  getSystemInfos,
175
175
  getWxAppCookieStr,
176
176
  pxTransformFromData,
177
177
  dealShopContentData,
178
178
  dateFormat,
179
179
  throttle,
180
180
  lodashThrottle,
181
181
  debounce,
182
182
  addHttps,
183
183
  showSuccessToast,
184
184
  showFailToast,
185
185
  showNormalToast,
186
186
  showShopLoading,
187
187
  hideShopLoading,
188
188
  stopNativeScrollEvent,
189
189
  getAppChannelType,
190
190
  formatTabActiveMenuType,
191
191
  getAvifSupport,
192
192
  getWebpSupport,
193
193
  filterUrlQueryData,
194
194
  getFloorDataToDataDefines,
195
195
  sgmCustomReport,
196
196
  draCustomReport,
197
197
  remoteCustomReport,
198
198
  draInterfaceCustomReport,
199
199
  draBusinessCustomReport,
200
200
  isOpenJdAppUrl,
201
201
  jdOpenAppParams,
202
202
  createJdOpenAppUrl,
203
203
  isEmpty,
204
204
  getJdAppReportPageSource,
205
205
  isMemberPage,
206
206
  isAppClassifyPage,
207
207
  isAppHomeForMarketPage,
208
208
  isImageOptimizeEnable,
209
209
  isPc,
210
210
  isTjM,
211
211
  isTjJxM,
212
212
  isTjScence,
213
213
  isH5AdnJxMini,
214
214
  isTJApp,
215
215
  isH5AdnHaoWuJie,
216
216
  tjChannel,
217
217
  dealJdOpenAppData,
218
218
  jdAppVersionCompare,
219
219
  dealNativePixelToCssPixel,
220
220
  getSgmCustomCode,
221
221
  handleSgmCodeTaroVersion,
222
222
  isInGrayscale,
223
223
  isIpadDevice,
224
224
  getBorderStyle,
225
225
  isLanguageForEn,
226
226
  sColor,
227
227
  draInterfaceDSMCustomReport,
@@ -0,0 +1 @@
1
+ const colorDSM = 'https://api.m.jd.com/client.action?functionId=';
2
  [
1
3
  colorDSM + 'op_getGoodListByCatesIds',
2
4
  ['dsm.jshop.operations.api.inner.service.ProductJsfService.getGoodListByCatesIds', true],
3
5
  ,
4
6
  ],
5
7
  console.log('getSColorPara ~ url is:', url);
6
8
  url = colorDSM + url;
7
9
  if (isDowngradeSDM(url)) {
8
10
  return {};
9
11
  }
10
12
  return getDSMValue(url)
11
13
  ? {
12
14
  url: '/api?v=1.0&appId=IEAFE4HKEFPYCKVAUVBR&api=' + getDSMValue(url)[0],
13
15
  }
14
16
  : {};
15
17
  url = colorDSM + url;
16
18
  try {
17
19
  if (isDowngradeSDM(url)) {
18
20
  return false;
19
21
  }
20
22
  console.log('is DSM', !!getDSMValue(url));
21
23
  return !!getDSMValue(url);
22
24
  } catch (error) {
23
25
  console.log('🚀 ~ checkIsDSM ~ error:', error);
24
26
  return false;
25
27
  }
26
28
  url = colorDSM + url;
27
29
  if (isDowngradeSDM(url)) {
28
30
  return false;
29
31
  }
30
32
  console.log('is need deconstruction', getDSMValue(url) ? getDSMValue(url)[1] : false);
31
33
  return getDSMValue(url) ? getDSMValue(url)[1] : false;
32
34
  for (let [key, value] of DSM) {
33
35
  if (url.startsWith(key) && url.includes('?')) {
34
36
  return value;
35
37
  }
36
38
  if (key === url) {
37
39
  return value;
38
40
  }
39
41
  }
40
42
  return '';
41
43
  const { nodePageData } = window;
42
44
  const { DSMDowngradeList } = nodePageData;
43
45
  console.log('DSMDowngradeList:', DSMDowngradeList);
44
46
  if (
45
47
  !Array.isArray(DSMDowngradeList) ||
46
48
  (DSMDowngradeList.length > 0 &&
47
49
  DSMDowngradeList.some((prefix) => url.startsWith(prefix)) &&
48
50
  url.includes('?')) ||
49
51
  DSMDowngradeList.includes(url)
50
52
  ) {
51
53
  return true;
52
54
  }
53
55
  return false;
54
56
  getSColorPara: (url) => getSColorPara(url),
55
57
  checkIsNeedDeconstruction: (url) => checkIsNeedDeconstruction(url),
56
58
  checkIsDSM: (url) => checkIsDSM(url),