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