@conecli/cone-render 0.9.1-shop2.3 → 0.9.1-shop2.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.
Files changed (60) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/index.jd.ts +1 -1
  4. package/dist/common/index.ts +1 -1
  5. package/dist/common/index.weapp.ts +1 -1
  6. package/dist/common/jssdk.ts +1 -0
  7. package/dist/common/pageType.ts +1 -0
  8. package/dist/common/token/index.h5.ts +1 -1
  9. package/dist/common/token/token.jd.ts +1 -1
  10. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  11. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  12. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  13. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  14. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  15. package/dist/components/base/InViewRender/index.tsx +1 -1
  16. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  17. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  18. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  19. package/dist/components/base/MobileCommonHeader/index.module.scss +9 -0
  20. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  21. package/dist/components/base/NetworkDataError/const.ts +1 -1
  22. package/dist/components/base/NetworkDataError/index.module.scss +4 -0
  23. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  24. package/dist/components/base/Price/Double/index.tsx +1 -1
  25. package/dist/components/base/Price/index.tsx +1 -1
  26. package/dist/components/decorate/DecorateFloorModule/index.module.scss +21 -2
  27. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  28. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  29. package/dist/components/isv/Floor/index.tsx +1 -1
  30. package/dist/components/remoteFloorItem.tsx +1 -1
  31. package/dist/interface/common.ts +1 -1
  32. package/dist/interface/component.ts +1 -1
  33. package/dist/jumpEventReport/const.ts +1 -1
  34. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  35. package/dist/jumpEventReport/index.weapp.ts +1 -1
  36. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  37. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  38. package/dist/jumpEventReport/web/report.ts +1 -1
  39. package/dist/jumpEventReport/web.base.ts +1 -1
  40. package/dist/jumpEventReport/web.jd.ts +1 -1
  41. package/dist/jumpEventReport/web.jdb.ts +1 -1
  42. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  43. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  44. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  45. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  46. package/dist/open/api/environment.ts +1 -1
  47. package/dist/open/api/index.ts +1 -1
  48. package/dist/open/api/track.ts +1 -1
  49. package/dist/open/components/index.ts +1 -1
  50. package/dist/service/fetchGateway.ts +1 -1
  51. package/dist/service/http/const.ts +1 -1
  52. package/dist/service/requestServer.ts +1 -1
  53. package/dist/utils/connectNativeJsBridge.ts +1 -1
  54. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  55. package/dist/utils/h5Utils.ts +1 -1
  56. package/dist/utils/index.h5.ts +1 -1
  57. package/dist/utils/index.ts +1 -1
  58. package/dist/utils/index.weapp.ts +1 -1
  59. package/dist/utils/utils.ts +1 -1
  60. package/package.json +1 -1
@@ -1 +1 @@
1
- import React from 'react'
2
1
  subMessage?: string
3
2
  floorLoadWay?: number
4
3
  showCommonFloorHead?: boolean
5
4
  isRealTimeRender: boolean
6
5
  customErrorIsvFloorModule?: React.ReactElement | undefined
7
6
  containerIndex?: number
8
7
  containerData?: any
9
8
  shopTotalInfo?: any
10
9
  selectContainerFn?: Function
11
10
  selectContainerId?: string
12
11
  placeHolderPreContainerId?: string
13
12
  children?: any
14
13
  style?: {
15
14
  [key: string]: any
16
15
  };
17
16
  layoutLeftRightMargin?: number
18
17
  }
19
18
  onFormSubmit?: Function
20
19
  onFormReset?: Function
21
20
  isFormDialog?: boolean
22
21
  forbiddenBgScrollState?: boolean
22
+ import React from 'react'
23
23
  subMessage?: string
24
24
  viewMaxHeight?: string
25
25
  floorLoadWay?: number
26
26
  showCommonFloorHead?: boolean
27
27
  isRealTimeRender: boolean
28
28
  forceRenderTime: number
29
29
  customErrorIsvFloorModule?: React.ReactElement | undefined
30
30
  containerIndex?: number
31
31
  containerData?: any
32
32
  shopTotalInfo?: any
33
33
  selectContainerFn?: Function
34
34
  selectContainerId?: string
35
35
  placeHolderPreContainerId?: string
36
36
  children?: any
37
37
  style?: {
38
38
  [key: string]: any
39
39
  };
40
40
  layoutLeftRightMargin?: number
41
41
  }
42
42
  onFormSubmit?: Function
43
43
  onFormReset?: Function
44
44
  isFormDialog?: boolean
45
45
  forbiddenBgScrollState?: boolean
@@ -1 +1 @@
1
- import { isH5 } from '../utils'
2
1
  ? 'Terminator_New_Mobile_Shop'
3
2
  : 'W_jdgwxcx_shop'
4
3
  CONFIG_TYPE_NO_LINK = 0,
5
4
  CONFIG_TYPE_SKU_LIST = 1,
6
5
  CONFIG_TYPE_COUPON_LIST = 2,
7
6
  CONFIG_TYPE_CATEGORY = 3,
8
7
  CONFIG_TYPE_JSHOP_MOBILE = 4,
9
8
  CONFIG_TYPE_JSHOP_PC = 5,
10
9
  CONFIG_TYPE_JSHOP_DETAIL = 6,
11
10
  CONFIG_TYPE_CUSTOM_LINK = 7,
12
11
  CONFIG_TYPE_MEMBER = 9,
13
12
  CONFIG_TYPE_SHOP_ACTIVITY = 10,
14
13
  CONFIG_TYPE_SHOP_HOME = 12,
15
14
  CONFIG_TYPE_ANCHOR_POINT = 13,
16
15
  CONFIG_TYPE_SHOPPING_GUIDE = 17,
17
16
  CONFIG_TYPE_MINI_PROGRAM = 18,
18
17
  CONFIG_TYPE_FINANCE_COUPON = 22,
19
18
  CONFIG_TYPE_CATEGORY_PAGE = 25,
19
+ import { isH5,isWxMinAndWxapp } from '../utils'
20
20
  ? 'Terminator_New_Mobile_Shop'
21
21
  : 'W_jdgwxcx_shop'
22
22
  CONFIG_TYPE_NO_LINK = 0,
23
23
  CONFIG_TYPE_SKU_LIST = 1,
24
24
  CONFIG_TYPE_COUPON_LIST = 2,
25
25
  CONFIG_TYPE_CATEGORY = 3,
26
26
  CONFIG_TYPE_JSHOP_MOBILE = 4,
27
27
  CONFIG_TYPE_JSHOP_PC = 5,
28
28
  CONFIG_TYPE_JSHOP_DETAIL = 6,
29
29
  CONFIG_TYPE_CUSTOM_LINK = 7,
30
30
  CONFIG_TYPE_MEMBER = 9,
31
31
  CONFIG_TYPE_SHOP_ACTIVITY = 10,
32
32
  CONFIG_TYPE_SHOP_HOME = 12,
33
33
  CONFIG_TYPE_ANCHOR_POINT = 13,
34
34
  CONFIG_TYPE_SHOPPING_GUIDE = 17,
35
35
  CONFIG_TYPE_MINI_PROGRAM = 18,
36
36
  CONFIG_TYPE_FINANCE_COUPON = 22,
37
37
  CONFIG_TYPE_CATEGORY_PAGE = 25,
@@ -1 +1 @@
1
- import global from '../common'
2
1
  mdExtInfo = {}
3
2
  pageCrowdId: mdExtInfo?.userGroupStr || '',
4
3
  updateRecInfo(floorData, _dataDefines) {
5
4
  const { algoId = '', userGroupStr = '' } = floorData
6
5
  const changeRecInfo =
7
6
  this.sectionTabData[this.sectionTabType]?.recInfo || {}
8
7
  return Object.assign({}, this.recInfo, changeRecInfo, {
9
8
  algoId,
10
9
  moduleCrowdId: userGroupStr
11
10
  })
12
11
  }
13
12
 
14
13
  updateMInfo(mInfo: any = [], floorData) {
15
14
  const { floorExtInfo, moduleId } = floorData
16
15
  const hasFloorInfo = floorExtInfo && moduleId
17
16
  if(Array.isArray(mInfo)){
18
17
  return mInfo.map((item: any) => {
19
18
  item?.jumpUrl && (item.jumpUrl = encodeURIComponent(item.jumpUrl))
20
19
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
21
20
  return item
22
21
  })
23
22
  }else {
24
23
  mInfo?.jumpUrl && (mInfo.jumpUrl = encodeURIComponent(mInfo.jumpUrl))
25
24
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
26
25
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0)
27
26
  return Object.assign({}, this.mInfo, mInfo)
28
27
  }
29
28
  }
30
29
 
31
30
  updateEtModelExposureInfo(floorData,_dataDefines,etModleArr,mInfoArr) {
32
31
  return {
33
32
  lstms: []
34
33
  }
35
34
  }
36
35
 
37
36
  updateEtModelClickInfo(floorData, _dataDefines, etModleInfo = {}, mInfo) {
38
37
  return {
39
38
  lstm: [],
40
39
  }
41
40
  }
42
41
  return mInfo === 'custom' ? etModelInfo : this.getClickEventInfo(floorData,mInfo,etModelInfo,true,true)
43
42
  return mInfo === 'custom' ? etModelInfo : this.getExposureInfo(floorData,mInfo,etModelInfo,true,true)
44
43
 
45
44
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
46
45
  return isChartH5 ? (floorData && floorData?.uid ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}` : '') : ''
47
46
  }
47
+ import global from '../common'
48
48
  mdExtInfo = {}
49
49
  const getReportEntrance = isJdApp ? global.info?.openAppData?.sourceInfo?.entrance ?? entrance : entrance
50
50
  const getReportModuleId = isJdApp ? global.info?.openAppData?.sourceInfo?.moduleId ?? moduleId : moduleId
51
51
  pageCrowdId: mdExtInfo?.userGroupStr || '',
52
52
  updateRecInfo(floorData, _dataDefines) {
53
53
  const { algoId = '', userGroupStr = '' } = floorData
54
54
  const changeRecInfo =
55
55
  this.sectionTabData[this.sectionTabType]?.recInfo || {}
56
56
  return Object.assign({}, this.recInfo, changeRecInfo, {
57
57
  algoId,
58
58
  moduleCrowdId: userGroupStr
59
59
  })
60
60
  }
61
61
 
62
62
  updateMInfo(mInfo: any = [], floorData) {
63
63
  const { floorExtInfo, moduleId } = floorData
64
64
  const hasFloorInfo = floorExtInfo && moduleId
65
65
  if(Array.isArray(mInfo)){
66
66
  return mInfo.map((item: any) => {
67
67
  if(item?.jumpUrl){
68
68
  item.jumpUrl = /openApp\.jdMobile/i.test(item.jumpUrl) ? 'openApp' : encodeURIComponent(item.jumpUrl)
69
69
  }
70
70
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
71
71
  return item
72
72
  })
73
73
  }else {
74
74
  if(mInfo?.jumpUrl){
75
75
  mInfo.jumpUrl = /openApp\.jdMobile/i.test(mInfo.jumpUrl) ? 'openApp' : encodeURIComponent(mInfo.jumpUrl)
76
76
  }
77
77
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
78
78
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0)
79
79
  return Object.assign({}, this.mInfo, mInfo)
80
80
  }
81
81
  }
82
82
 
83
83
  updateEtModelExposureInfo(floorData,_dataDefines,etModleArr,mInfoArr) {
84
84
  return {
85
85
  lstms: []
86
86
  }
87
87
  }
88
88
 
89
89
  updateEtModelClickInfo(floorData, _dataDefines, etModleInfo = {}, mInfo) {
90
90
  return {
91
91
  lstm: [],
92
92
  }
93
93
  }
94
94
  return mInfo === 'custom' ? etModelInfo : this.getClickEventInfo(floorData,mInfo,etModelInfo,true,true)
95
95
  return mInfo === 'custom' ? etModelInfo : this.getExposureInfo(floorData,mInfo,etModelInfo,true,true)
96
96
 
97
97
  getCustomClickEventInfo(mInfo = {},floorData = {}, etModelInfo = {}){
98
98
  return this.getClickEventInfo(floorData,mInfo,etModelInfo,false,false)
99
99
  }
100
100
 
101
101
  getCustomExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}){
102
102
  return this.getExposureInfo(floorData,mInfo,etModelInfo,false,false)
103
103
  }
104
104
 
105
105
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
106
106
  return isChartH5 ? (floorData && floorData?.uid ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}` : '') : ''
107
107
  }