@conecli/cone-render 0.8.15-alpha.18 → 0.8.15-alpha.19

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.
@@ -1 +1 @@
1
- import {
2
1
  isApp,
3
2
  isIOS,
4
3
  getAppVersion,
5
4
  version,
6
5
  getUUID,
7
6
  getUrlQuery,
8
7
  assign,
9
8
  isString,
10
9
  isObject,
11
10
  serialize,
12
11
  isAndroid,
13
12
  CHANNEL_TYPE,
14
13
  JDShopViewBusinessPathType,
15
14
  JDShopViewBusinessPathList,
16
15
  SECTION_HOME_TAB_NAME_TYPE,
17
16
  parseQueryUrlString(window?.location?.href?? ''),
18
17
  try{
19
18
  return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
20
19
  }catch(e){
21
20
  return {}
22
21
  }
23
22
  if (isJdApp) {
24
23
  isIosDevice
25
24
  ? e && e.stopPropagation()
26
25
  : androidDeviceStopNativeScrollEvent(state)
27
26
  }
28
27
  isJdApp &&
29
28
  isAndroidDevice &&
30
29
  window?.JdAndroid &&
31
30
  window?.JdAndroid.requestEvent(state)
32
31
  if (isH5AndJdShopView) {
33
32
  return (
34
33
  CHANNEL_TYPE[currentChannel] ||
35
34
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
36
35
  )
37
36
  }
38
37
  return null
39
38
  isH5 &&
40
39
  urlPathname === '/app/home' &&
41
40
  JDShopViewBusinessPathList.includes(currentChannel)
41
+ import {
42
42
  isApp,
43
43
  isIOS,
44
44
  getAppVersion,
45
45
  version,
46
46
  getUUID,
47
47
  getUrlQuery,
48
48
  assign,
49
49
  isString,
50
50
  isObject,
51
51
  serialize,
52
52
  isAndroid,
53
53
  CHANNEL_TYPE,
54
54
  JDShopViewBusinessPathType,
55
55
  JDShopViewBusinessPathList,
56
56
  SECTION_HOME_TAB_NAME_TYPE,
57
57
  parseQueryUrlString(window?.location?.href?? ''),
58
58
  try{
59
59
  return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
60
60
  }catch(e){
61
61
  return {}
62
62
  }
63
63
  if (isJdApp) {
64
64
  isIosDevice
65
65
  ? e && e.stopPropagation()
66
66
  : androidDeviceStopNativeScrollEvent(state)
67
67
  }
68
68
  isJdApp &&
69
69
  isAndroidDevice &&
70
70
  window?.JdAndroid &&
71
71
  window?.JdAndroid.requestEvent(state)
72
72
  if (isH5AndJdShopView) {
73
73
  return (
74
74
  CHANNEL_TYPE[currentChannel] ||
75
75
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
76
76
  )
77
77
  }
78
78
  return null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.8.15-alpha.18",
3
+ "version": "0.8.15-alpha.19",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"