@conecli/cone-render 0.10.1-beta.8 → 0.10.1-beta.9

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 (34) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/jssdk.ts +1 -1
  4. package/dist/common/token/token.jd.ts +1 -1
  5. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  6. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  7. package/dist/components/base/InViewRender/index.tsx +1 -1
  8. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  9. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  11. package/dist/components/base/LazyLoadImage/index.h5.module.scss +4 -8
  12. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  13. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  14. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  15. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  16. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  17. package/dist/components/floorItem.jd.tsx +1 -1
  18. package/dist/components/floorItem.tsx +1 -1
  19. package/dist/components/floorItem.weapp.tsx +1 -1
  20. package/dist/interface/component.ts +1 -1
  21. package/dist/interface/jumpEventReport.ts +1 -1
  22. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  23. package/dist/jumpEventReport/web.tjm.ts +1 -1
  24. package/dist/open/api/device.ts +1 -1
  25. package/dist/sass/app.h5.scss +0 -18
  26. package/dist/service/http/colorSign.ts +1 -1
  27. package/dist/service/requestServer.ts +1 -1
  28. package/dist/utils/connectNativeJsBridge.ts +1 -1
  29. package/dist/utils/index.h5.ts +1 -1
  30. package/dist/utils/taroRenderUtil.ts +1 -1
  31. package/dist/utils/utils.ts +1 -1
  32. package/package.json +53 -64
  33. package/dist/components/base/CustomScrollView/index-back.tsx +0 -1
  34. package/dist/utils/log.ts +0 -1
@@ -1 +1 @@
1
- import ready from '../utils/ready';
2
1
  return new Promise((resolve, reject) => {
3
2
  ready('jmfe', timeout)
4
3
  .then(() => {
5
4
  registerCode(JSSDK_APP_WEBVIEW_CODE);
6
5
  resolve(window['jmfe']);
7
6
  })
8
7
  .catch(() => {
9
8
  console.log('window.jmfe不存在');
10
9
  reject(null);
11
10
  });
12
11
  });
13
12
  if (window['jmfe']) {
14
13
  console.log('registerCode:', code);
15
14
  window['jmfe'].registerCode(code);
16
15
  } else {
17
16
  console.warn('jmfe对象不存在,可能没有提前引入jd-jssdk.js');
18
17
  }
18
+ import ready from '../utils/ready'
19
19
  return new Promise((resolve, reject) => {
20
20
  ready('jmfe', timeout)
21
21
  .then(() => {
22
22
  registerCode(JSSDK_APP_WEBVIEW_CODE)
23
23
  resolve(window['jmfe'])
24
24
  })
25
25
  .catch(() => {
26
26
  console.log('window.jmfe不存在')
27
27
  reject(null)
28
28
  })
29
29
  })
30
30
  if (window['jmfe']) {
31
31
  console.log('registerCode:', code)
32
32
  window['jmfe'].registerCode(code)
33
33
  } else {
34
34
  console.warn('jmfe对象不存在,可能没有提前引入jd-jssdk.js')
35
35
  }
@@ -1 +1 @@
1
- import { isJdAndHarmonyDevice, draBusinessCustomReport } from '../../utils/h5Utils';
2
1
  draBusinessCustomReport({
3
2
  type,
4
3
  errMsg,
5
4
  data,
6
5
  });
7
6
  return new Promise((resolve) => {
8
7
  if (window['jmfe']) {
9
8
  window['jmfe'].isJDAppLogin().then(({ data }) => {
10
9
  if (data === '1') {
11
10
  resolve(true);
12
11
  } else if (data === '0') {
13
12
  resolve(false);
14
13
  }
15
14
  });
16
15
  } else {
17
16
  console.warn('jmfe对象不存在,可能没有提前动态引入jd-jssdk.js');
18
17
  resolve(false);
19
18
  }
20
19
  });
21
20
  return requestIsvToken(window.location.href);
22
21
  if (window['jmfe']) {
23
22
  window['jmfe'].toLogin(options);
24
23
  } else {
25
24
  console.warn('jmfe对象不存在,可能没有提前动态引入jd-jssdk.js');
26
25
  }
27
26
  if (window['jmfe']) {
28
27
  console.log('registerCode:', code);
29
28
  window['jmfe'].registerCode(code);
30
29
  } else {
31
30
  console.warn('jmfe对象不存在,可能没有提前引入jd-jssdk.js');
32
31
  }
33
32
  const plugin = 'JDHybridLoginPlugin';
34
33
  const action = 'requestIsvToken';
35
34
  const params = { url };
36
35
  return jmfe.callNative(plugin, action, params);
37
36
  return new Promise((resolve) => {
38
37
  console.log('requestIsvToken:', url);
39
38
  if (window['jmfe']) {
40
39
  const jmfeVersion = window['jmfe'].VERSION || 'unknow';
41
40
  try {
42
41
  (isJdAndHarmonyDevice
43
42
  ? requestIsvTokenHarmony(url)
44
43
  : window['jmfe'].requestIsvToken(url)
45
44
  ).then((result: any) => {
46
45
  console.log('requestIsvToken result:' + JSON.stringify(result));
47
46
  const { status, data } = result;
48
47
  if (status === '0') {
49
48
  resolve(data || '');
50
49
  } else {
51
50
  resolve('');
52
51
  }
53
52
  if (!data) {
54
53
  exceptionReport({
55
54
  data: {
56
55
  desc: '调用API有返回,但token值为空',
57
56
  jmfeVersion,
58
57
  originResult: result,
59
58
  url,
60
59
  },
61
60
  });
62
61
  }
63
62
  });
64
63
  } catch (error) {
65
64
  resolve('');
66
65
  const errorInfo = {
67
66
  name: error?.name,
68
67
  message: error?.message,
69
68
  stack: error?.stack,
70
69
  };
71
70
  exceptionReport({
72
71
  data: {
73
72
  desc: '调用API发生异常',
74
73
  jmfeVersion,
75
74
  error: errorInfo,
76
75
  url,
77
76
  },
78
77
  });
79
78
  }
80
79
  } else {
81
80
  resolve('');
82
81
  exceptionReport({
83
82
  data: {
84
83
  desc: '前置依赖window.jmfe不存在',
85
84
  },
86
85
  });
87
86
  }
88
87
  });
88
+ import {isJdAndHarmonyDevice, draBusinessCustomReport} from '../../utils/h5Utils'
89
89
  draBusinessCustomReport({
90
90
  type,
91
91
  errMsg,
92
92
  data,
93
93
  });
94
94
  return new Promise(resolve => {
95
95
  if (window['jmfe']) {
96
96
  window['jmfe'].isJDAppLogin().then(({ data }) => {
97
97
  if (data === '1') {
98
98
  resolve(true)
99
99
  } else if (data === '0') {
100
100
  resolve(false)
101
101
  }
102
102
  })
103
103
  } else {
104
104
  console.warn('jmfe对象不存在,可能没有提前动态引入jd-jssdk.js')
105
105
  resolve(false)
106
106
  }
107
107
  })
108
108
  return requestIsvToken(window.location.href)
109
109
  if (window['jmfe']) {
110
110
  window['jmfe'].toLogin(options)
111
111
  } else {
112
112
  console.warn('jmfe对象不存在,可能没有提前动态引入jd-jssdk.js')
113
113
  }
114
114
  if (window['jmfe']) {
115
115
  console.log('registerCode:', code)
116
116
  window['jmfe'].registerCode(code)
117
117
  } else {
118
118
  console.warn('jmfe对象不存在,可能没有提前引入jd-jssdk.js')
119
119
  }
120
120
  const plugin = 'JDHybridLoginPlugin';
121
121
  const action = 'requestIsvToken';
122
122
  const params = {url};
123
123
  return jmfe.callNative(plugin, action, params)
124
124
  return new Promise(resolve => {
125
125
  console.log('requestIsvToken:', url)
126
126
  if (window['jmfe']) {
127
127
  const jmfeVersion = window['jmfe'].VERSION || 'unknow';
128
128
  try{
129
129
  (isJdAndHarmonyDevice? requestIsvTokenHarmony(url): window['jmfe'].requestIsvToken(url))
130
130
  .then((result: any) => {
131
131
  console.log('requestIsvToken result:' + JSON.stringify(result))
132
132
  const { status, data } = result
133
133
  if (status === '0') {
134
134
  resolve(data || '')
135
135
  } else {
136
136
  resolve('')
137
137
  }
138
138
  if(!data){
139
139
  exceptionReport({
140
140
  data: {
141
141
  desc: '调用API有返回,但token值为空',
142
142
  jmfeVersion,
143
143
  originResult: result,
144
144
  url,
145
145
  }
146
146
  })
147
147
  }
148
148
  })
149
149
  }catch(error){
150
150
  resolve('')
151
151
  const errorInfo = {
152
152
  name: error?.name,
153
153
  message: error?.message,
154
154
  stack: error?.stack,
155
155
  };
156
156
  exceptionReport({
157
157
  data: {
158
158
  desc: '调用API发生异常',
159
159
  jmfeVersion,
160
160
  error: errorInfo,
161
161
  url
162
162
  }
163
163
  })
164
164
  }
165
165
  } else {
166
166
  resolve('')
167
167
  exceptionReport({
168
168
  data: {
169
169
  desc: '前置依赖window.jmfe不存在',
170
170
  }
171
171
  })
172
172
  }
173
173
  })