@conecli/cone-render 0.8.19 → 0.8.20-shop-beta.1

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 (37) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/components/base/CustomVideo/const.ts +1 -0
  4. package/dist/components/base/CustomVideo/index.module.scss +39 -64
  5. package/dist/components/base/CustomVideo/index.tsx +1 -1
  6. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  7. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  8. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  9. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  10. package/dist/components/floorItem.jd.tsx +1 -0
  11. package/dist/components/floorItem.tsx +1 -1
  12. package/dist/components/floorItem.weapp.tsx +1 -1
  13. package/dist/interface/component.ts +1 -1
  14. package/dist/interface/jumpEventReport.ts +1 -1
  15. package/dist/interface/service.ts +1 -1
  16. package/dist/jumpEventReport/base.ts +1 -1
  17. package/dist/jumpEventReport/const.ts +1 -1
  18. package/dist/jumpEventReport/index.weapp.ts +1 -1
  19. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  20. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  21. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  22. package/dist/jumpEventReport/web.base.ts +1 -1
  23. package/dist/jumpEventReport/web.jd.ts +1 -1
  24. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  25. package/dist/libs/taroAppReport.js +2 -2
  26. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  27. package/dist/open/api/index.ts +1 -1
  28. package/dist/open/api/jump.ts +1 -1
  29. package/dist/open/api/shopMember.ts +1 -0
  30. package/dist/service/http/const.ts +1 -0
  31. package/dist/service/http/http.ts +1 -0
  32. package/dist/service/http/httpInterceptors.jd.ts +1 -0
  33. package/dist/service/http/httpInterceptors.ts +1 -0
  34. package/dist/service/http/index.ts +1 -0
  35. package/dist/utils/connectNativeJsBridge.ts +1 -1
  36. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  37. package/package.json +2 -2
@@ -1 +1 @@
1
- import React, { Suspense, lazy } from 'react'
2
1
  style={{
2
+ import React, { Suspense, lazy } from 'react'
3
3
  BUSINESS_TYPE,
4
4
  RemoteLoadFloorList,
5
5
  JD_PLACEHOLDER_IMG,
6
6
  DraJSAgentReportException,
7
7
  DraJSAgentReport,
8
8
  const {
9
9
  floorData,
10
10
  renderSourceType,
11
11
  builtInComponents = {},
12
12
  updateContainerFloorListDataFn,
13
13
  } = props
14
14
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
15
15
  const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
16
16
  const FloorContentItem =
17
17
  (floorModuleType && builtInComponents[floorModuleType]) || null
18
18
  const dataDefines = getFloorDataToDataDefines(floorData)
19
19
 
20
20
  const renderDecorateDefaultModule = () => {
21
21
  return (
22
22
  <View
23
23
  style={{
24
24
  lineHeight: '120px',
25
25
  textAlign: 'center',
26
26
  }}
27
27
  >
28
28
  当前模块是{floorData.moduleName}
29
29
  </View>
30
30
  )
31
31
  }
32
32
 
33
33
  const getFloorSetHeight = (item) => {
34
34
  const getHeight = item?.floorExtInfo?.floorHeight
35
35
  ? Number(item?.floorExtInfo?.floorHeight)
36
36
  : 200
37
37
  return getHeight > 0 ? getHeight : 200
38
38
  }
39
39
  if (floorModuleType && RemoteLoadFloorList.includes(floorModuleType)) {
40
40
  console.log(
41
41
  '>>>>>>>>>> floorModuleType === FloorModuleType.ISVDESIGNERH5MODULE >>>>>>>>>>',
42
42
  )
43
43
  const renderResult = (() => {
44
44
  try {
45
45
  console.log('>>>>>>>>>> 开始渲染1个isv模块 >>>>>>>>>>')
46
46
  console.log(
47
47
  '==========当前业务类型renderSourceType、楼层floorId: ',
48
48
  renderSourceType,
49
49
  floorData.uid,
50
50
  )
51
51
  const modularPackResult = floorData?.floorExtInfo?.modularPackResult
52
52
  const modularPackResultObj =
53
53
  typeof modularPackResult === 'string'
54
54
  ? JSON.parse(modularPackResult)
55
55
  : modularPackResult
56
56
  if (modularPackResultObj) {
57
57
  const { bundleUrl, bundleFileName } = modularPackResultObj
58
58
  if (bundleUrl && bundleFileName) {
59
59
  let ISVModule =
60
60
  taroJdBaseInfo?.renderedIsvComponents[
61
61
  `${floorData.uid}_${bundleFileName}`
62
62
  ] || null
63
63
  if (!ISVModule) {
64
64
  ISVModule = lazy(
65
65
  () => import(bundleFileName + '@@@@@@' + bundleUrl),
66
66
  )
67
67
  console.log(
68
68
  '1|加载isv模块==========走lazy import生成新的isv模块react组件',
69
69
  bundleFileName,
70
70
  )
71
71
  taroJdBaseInfo.renderedIsvComponents[
72
72
  `${floorData.uid}_${bundleFileName}`
73
73
  ] = ISVModule
74
74
  console.log(
75
75
  '2|渲染isv模块的react组件==========,window.taroJshopH5WebpackJsonp上的组件是否已就绪: ',
76
76
  bundleFileName,
77
77
  window['taroJshopH5WebpackJsonp'].find(
78
78
  (item) => item[0][0] == bundleFileName,
79
79
  ),
80
80
  )
81
81
  } else {
82
82
  console.log(
83
83
  '1|加载isv模块==========不走lazy import生成新的isv模块react组件,从已加载中获取,taroJdBaseInfo: ',
84
84
  taroJdBaseInfo,
85
85
  )
86
86
  console.log(
87
87
  '2|渲染isv模块的react组件==========,taroJdBaseInfo.renderedIsvComponents上的组件是否已就绪: ',
88
88
  taroJdBaseInfo.renderedIsvComponents[
89
89
  `${floorData.uid}_${bundleFileName}`
90
90
  ],
91
91
  )
92
92
  }
93
93
  const _floorHeight = getFloorSetHeight(floorData)
94
94
  return (
95
95
  <ErrorBoundary {...props}>
96
96
  <Suspense
97
97
  fallback={
98
98
  <View
99
99
  style={{
100
100
  position: 'relative',
101
101
  background: `#ffffff url('${JD_PLACEHOLDER_IMG}') center center no-repeat`,
102
102
  height: `${_floorHeight}px`,
103
103
  }}
104
104
  ></View>
105
105
  }
106
106
  >
107
107
  <ISVFloor {...props} dataDefines={dataDefines}>
108
108
  <ISVModule {...props} dataDefines={dataDefines}></ISVModule>
109
109
  </ISVFloor>
110
110
  </Suspense>
111
111
  </ErrorBoundary>
112
112
  )
113
113
  } else {
114
114
  console.log(
115
115
  '3|isv模块渲染异常,modularPackResult中缺少bundleUrl或bundleFileName==========modularPackResult: ',
116
116
  modularPackResultObj,
117
117
  )
118
118
  DraJSAgentReport(
119
119
  `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
120
120
  {
121
121
  buildType,
122
122
  uid: floorData?.uid,
123
123
  floorIdx: floorData?.floorIdx,
124
124
  shopId: floorData?.floorExtInfo?.shopId,
125
125
  moduleId: floorData?.moduleId,
126
126
  moduleName: floorData?.moduleName,
127
127
  middleTemplateId: floorData?.middleTemplateId,
128
128
  modularPackResult: modularPackResult,
129
129
  },
130
130
  )
131
131
  return null
132
132
  }
133
133
  } else {
134
134
  console.log(
135
135
  '3|isv模块渲染异常,缺少modularPackResult==========modularPackResult: ',
136
136
  modularPackResultObj,
137
137
  )
138
138
  DraJSAgentReport(
139
139
  `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
140
140
  {
141
141
  buildType,
142
142
  uid: floorData?.uid,
143
143
  floorIdx: floorData?.floorIdx,
144
144
  shopId: floorData?.floorExtInfo?.shopId,
145
145
  moduleId: floorData?.moduleId,
146
146
  moduleName: floorData?.moduleName,
147
147
  middleTemplateId: floorData?.middleTemplateId,
148
148
  modularPackResult: modularPackResult,
149
149
  },
150
150
  )
151
151
  return null
152
152
  }
153
153
  } catch (err) {
154
154
  console.log('3|isv模块渲染异常,floorItem逻辑错误==========err: ', err)
155
155
  DraJSAgentReportException(err)
156
156
  return null
157
157
  }
158
158
  })()
159
159
  if (renderResult === null) {
160
160
  updateContainerFloorListDataFn &&
161
161
  updateContainerFloorListDataFn({
162
162
  type: 'filter',
163
163
  containerId: floorData?.uid,
164
164
  })
165
165
  console.log('renderResult === null: 命中了!')
166
166
  taroEventSendPageScrollInfo()
167
167
  } else {
168
168
  console.log('renderResult !== null: 没命中', renderResult)
169
169
  }
170
170
  return renderResult
171
171
  } else {
172
172
  return FloorContentItem ? (
173
173
  <ErrorBoundary {...props}>
174
174
  <FloorContentItem {...props} dataDefines={dataDefines} />
175
175
  </ErrorBoundary>
176
176
  ) : isDevMode ? (
177
177
  renderDecorateDefaultModule()
178
178
  ) : null
179
179
  }
180
180
  renderSourceType: BUSINESS_TYPE.ONLINE,
181
181
  switch (moduleId) {
182
182
  case 83158:
183
183
  return 'freeLayout'
184
184
  case 99654:
185
185
  return 'activeText'
186
186
  case 100382:
187
187
  return 'superGoods'
188
188
  }
189
189
  floorList.map((item) => {
190
190
  if (!item.floorExtInfo) {
191
191
  return null
192
192
  }
193
193
  const moduleFlag = item.floorExtInfo.moduleFlag
194
194
  if (!moduleFlag) {
195
195
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
196
196
  if (newModuleFlag) {
197
197
  item.floorExtInfo.moduleFlag = newModuleFlag
198
198
  }
199
199
  }
200
200
  })
@@ -1 +1 @@
1
- import React from 'react'
2
1
  return FloorContentItem ? (
3
2
  <FloorContentItem {...props} dataDefines={dataDefines} />
4
3
  ) : isDevMode ? (
5
4
  renderDecorateDefaultModule()
6
5
  ) : null
6
+ import React from 'react'
7
7
  return FloorContentItem ? (
8
8
  <FloorContentItem {...props} dataDefines={dataDefines} />
9
9
  ) : isDevMode ? (
10
10
  renderDecorateDefaultModule()
11
11
  ) : null
@@ -1 +1 @@
1
- import React from 'react'
2
1
  subMessage?: string
3
2
  customErrorIsvFloorModule?: React.ReactElement | undefined
4
3
  containerIndex?: number
5
4
  containerData?: any
6
5
  shopTotalInfo?: any
7
6
  selectContainerFn?: Function
8
7
  selectContainerId?: string
9
8
  placeHolderPreContainerId?: string
10
9
  children?: any
11
10
  style?: {
12
11
  [key: string]: any
13
12
  };
14
13
  layoutLeftRightMargin?: number
15
14
  }
15
+ import React from 'react'
16
16
  subMessage?: string
17
17
  customErrorIsvFloorModule?: React.ReactElement | undefined
18
18
  containerIndex?: number
19
19
  containerData?: any
20
20
  shopTotalInfo?: any
21
21
  selectContainerFn?: Function
22
22
  selectContainerId?: string
23
23
  placeHolderPreContainerId?: string
24
24
  children?: any
25
25
  style?: {
26
26
  [key: string]: any
27
27
  };
28
28
  layoutLeftRightMargin?: number
29
29
  }
@@ -1 +1 @@
1
- export declare namespace JumpEventReportInterFace {
1
+ export declare namespace JumpEventReportInterFace {
2
2
  export interface ShopIdsInfo {
3
3
  shopId?: number | string
4
4
  venderId?: number | string
5
5
  logEventInfo?: object
6
6
  type?: string
7
7
  }
8
8
  export interface RouterInfo {
9
9
  params: any
10
10
  pageParamStr?: string
11
11
  [key: string]: any
12
12
  }
13
13
  export interface JumpMiniPath {
14
14
  shop: string
15
15
  shopx: string
16
16
  detail: string
17
17
  searchCoupon: string
18
18
  h5: string
19
19
  jingGouHome: string
20
20
  shopFans: string
21
21
  shopLight: string
22
22
  couponSearch: string
23
23
  }
24
24
  export interface jumpWebUrl {
25
25
  mshop: string
26
26
  pages: string
27
27
  couponSearch: string
28
28
  shopSecondActivity: string
29
29
  shopLight: string
30
30
  detail: string
31
31
  mobileHome: string
32
32
  rank: string
33
33
  wqShopMember: string
34
34
  wqShopDetail: string
35
35
  wqShopSearch: string
36
36
  shopMember: string
37
37
  shopMemberPointDetail: string
38
38
  shopMemberBenefit: string
39
39
  shopMemberRule: string
40
40
  shopMemberCloseAccount: string
41
41
  shopMemberPointExchange: string
42
42
  shopMemberBonusPurchase: string
43
43
  shopMemberGood: string
44
44
  beanDetail: string
45
45
  totalPromotion: string
46
46
  mLive: string
47
47
  shopHome: string
48
48
  shopIntroduce: string
49
49
  shopSearch: string
50
50
  shopLottery: string
51
51
  shopCoupon: string
52
52
  shopWares: string
53
53
  shopFastShopping: string
54
54
  shopSpeciSeckill: string
55
55
  shopVideos: string
56
56
  shopUseShareOrderUgcContent: string
57
57
  dongDongChat: string
58
58
  samCenter: string
59
59
  samCard: string
60
60
  }
61
61
  export interface EventReportConfig {
62
62
  routerInfo: RouterInfo
63
63
  nativeEvent: any
64
64
  }
65
65
  export interface OptEventLogParams {
66
66
  eventId?: string
67
67
  eventParam?: string | object
68
68
  pTag?: string
69
69
  jsonParam?: {
70
70
  [key: string]: any
71
71
  }
72
72
  skuId?: string | number
73
73
  eventLevel?: string
74
74
  exposureState?: boolean
75
75
  otherParams?: object
76
76
  }
77
77
 
78
78
  export interface JumpH5ReportConfig {
79
79
  shopId?: number | string
80
80
  venderId?: number | string
81
81
  sourceValue?: string
82
82
  sourceType?: string
83
83
  }
84
84
  export interface JumpEventReportInit extends EventReportConfig {
85
85
  getConfig(opt): EventReportConfig
86
86
  updateInfo(routerInfo, logPname): void
87
87
  }
88
88
  export interface CouponUrlParams {
89
89
  batchId: number
90
90
  bindType: number
91
91
  startTime?: number
92
92
  endTime?: number
93
93
  quangoufrom?: number
94
94
  sceneId?: number
95
95
  }
96
96
  export interface JdMiniJumpParams {
97
97
  param: string | object
98
98
  sourceValue: string
99
99
  sourceType: string
100
100
  des?: any
101
101
  logEventInfo?: object
102
102
  }
103
103
  export interface LinkMiniParams {
104
104
  param?: {
105
105
  pageType?: string
106
106
  }
107
107
  appId?: string | number
108
108
  path?: string
109
109
  }
110
110
  export interface JdJumpWxappReportConfig {
111
111
  wxApiVersion: string
112
112
  wxApiUrl: string
113
113
  wqReportUrl: string
114
114
  }
@@ -1 +1 @@
1
- import { ComponentInterFace } from './component'
2
1
  mobileLogin: string
2
+ import { ComponentInterFace } from './component'
3
3
  mobileLogin: string