@conecli/cone-render 0.8.20-shop.83 → 0.8.20-shop.85

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
- export enum LogPnameInfo {
2
1
  HOME = 'home',
3
2
  MEMBER = 'member',
4
3
  CLASSIFY = 'classify',
5
4
  PROMOTION = 'promotion',
6
5
  WX_SHOP_HOME = 'wx_shop_home',
7
6
  APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
8
7
  MOBILE_SEARCH = 'MShop_SearchResult',
9
8
  APP_SHOP_MEMBER = 'Shop_ShopCard',
10
9
  SALE_VIEW = 'Shop_NewActivity',
11
10
  MOBILE_SEARCH = 'MShop_SearchResult',
12
11
  APP_SHOP_MEMBER = 'Shop_ShopCard',
13
12
  SALE_VIEW = 'Shop_NewActivity'
13
+ export enum LogPnameInfo {
14
14
  HOME = 'home',
15
15
  MEMBER = 'member',
16
16
  CLASSIFY = 'classify',
17
17
  PROMOTION = 'promotion',
18
18
  WX_SHOP_HOME = 'wx_shop_home',
19
19
  APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
20
20
  MOBILE_SEARCH = 'MShop_SearchResult',
21
21
  APP_SHOP_MEMBER = 'Shop_ShopCard',
22
22
  SALE_VIEW = 'Shop_NewActivity',
23
23
  STOW_SHOP_VIEW = 'Shop_FollowShopMain',
24
24
  MOBILE_SEARCH = 'MShop_SearchResult',
25
25
  APP_SHOP_MEMBER = 'Shop_ShopCard',
26
26
  SALE_VIEW = 'Shop_NewActivity',
27
27
  STOW_SHOP_VIEW = 'Shop_FollowShopMain',
@@ -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
  versionCompare,
14
13
  CHANNEL_TYPE,
15
14
  JDShopViewBusinessPathType,
16
15
  JDShopViewBusinessPathList,
17
16
  SECTION_HOME_TAB_NAME_TYPE,
18
17
  SECTION_HOME_TAB_TYPE,
19
18
  parseQueryUrlString(window?.location?.href ?? ''),
20
19
  try {
21
20
  return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
22
21
  } catch (e) {
23
22
  return {}
24
23
  }
25
24
  isWxMiniH5View && urlCookie['wxapp_type'] == '1'
26
25
  if (isJdApp) {
27
26
  isIosDevice
28
27
  ? e && e.stopPropagation()
29
28
  : androidDeviceStopNativeScrollEvent(state)
30
29
  }
31
30
  isJdApp &&
32
31
  isAndroidDevice &&
33
32
  window?.JdAndroid &&
34
33
  window?.JdAndroid.requestEvent(state)
35
34
  if (isH5AndJdShopView) {
36
35
  return (
37
36
  CHANNEL_TYPE[currentChannel] ||
38
37
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
39
38
  )
40
39
  }
41
40
  return null
42
41
  isH5 && ['/app/home', '/app/classify', '/app/newProduct', '/member/shopcard', '/app/stowshop', '/app/stowhome'].includes(urlPathname)
43
42
  return isJdApp ? versionCompare(nowVersion || jdAppVersionStr,compareVersion) >= 0 : -2
44
43
  const getCustomObj = {
45
44
  type: 1,
46
45
  code: 'all',
47
46
  cost1: 1,
48
47
  ...customObj
49
48
  }
50
49
  try {
51
50
  window.__sgm__.custom(getCustomObj, '9HwAEg@fTtWBB3EnwA5VgLT')
52
51
  } catch (e) {}
52
+ import {
53
53
  isApp,
54
54
  isIOS,
55
55
  getAppVersion,
56
56
  version,
57
57
  getUUID,
58
58
  getUrlQuery,
59
59
  assign,
60
60
  isString,
61
61
  isObject,
62
62
  serialize,
63
63
  isAndroid,
64
64
  versionCompare,
65
65
  CHANNEL_TYPE,
66
66
  JDShopViewBusinessPathType,
67
67
  JDShopViewBusinessPathList,
68
68
  SECTION_HOME_TAB_NAME_TYPE,
69
69
  SECTION_HOME_TAB_TYPE,
70
70
  parseQueryUrlString(window?.location?.href ?? ''),
71
71
  try {
72
72
  return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
73
73
  } catch (e) {
74
74
  return {}
75
75
  }
76
76
  isWxMiniH5View && urlCookie['wxapp_type'] == '1'
77
77
  if (isJdApp) {
78
78
  isIosDevice
79
79
  ? e && e.stopPropagation()
80
80
  : androidDeviceStopNativeScrollEvent(state)
81
81
  }
82
82
  isJdApp &&
83
83
  isAndroidDevice &&
84
84
  window?.JdAndroid &&
85
85
  window?.JdAndroid.requestEvent(state)
86
86
  if (isH5AndJdShopView) {
87
87
  return (
88
88
  CHANNEL_TYPE[currentChannel] ||
89
89
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
90
90
  )
91
91
  }
92
92
  return null
93
93
  isH5 && (['/app/home', '/app/classify', '/app/newProduct', '/member/shopcard','/favorite/list'].includes(urlPathname) || (['/favorite/home'].includes(urlPathname) && isJdApp))
94
94
  return isJdApp ? versionCompare(nowVersion || jdAppVersionStr,compareVersion) >= 0 : -2
95
95
  const getCustomObj = {
96
96
  type: 1,
97
97
  code: 'all',
98
98
  cost1: 1,
99
99
  ...customObj
100
100
  }
101
101
  try {
102
102
  window.__sgm__.custom(getCustomObj, '9HwAEg@fTtWBB3EnwA5VgLT')
103
103
  } catch (e) {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.8.20-shop.83",
3
+ "version": "0.8.20-shop.85",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"