@conecli/cone-render 0.10.1-shop-beta.5 → 0.10.1-shop3.0

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/common/index.h5.ts +1 -1
  4. package/dist/common/index.jd.ts +1 -1
  5. package/dist/common/index.ts +1 -1
  6. package/dist/common/index.weapp.ts +1 -1
  7. package/dist/common/pageType.ts +1 -1
  8. package/dist/common/sgmCustomCode.ts +1 -1
  9. package/dist/components/base/CustomVideo/common.ts +1 -0
  10. package/dist/components/base/CustomVideo/index.tsx +1 -1
  11. package/dist/components/base/LazyLoadImage/index.h5.module.scss +8 -4
  12. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  13. package/dist/components/base/Price/Base/index.tsx +1 -1
  14. package/dist/components/base/Price/Double/index.tsx +1 -1
  15. package/dist/components/floorItem.tsx +1 -1
  16. package/dist/components/isv/Floor/index.tsx +1 -1
  17. package/dist/interface/component.ts +1 -1
  18. package/dist/interface/jumpEventReport.ts +1 -1
  19. package/dist/interface/service.ts +1 -1
  20. package/dist/jumpEventReport/index.weapp.ts +1 -1
  21. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  22. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  23. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  24. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  25. package/dist/open/api/util.ts +1 -1
  26. package/dist/service/http/colorSign.ts +1 -1
  27. package/dist/service/http/h5Http.ts +1 -0
  28. package/dist/service/http/index.h5.ts +1 -0
  29. package/dist/service/requestServer.h5.ts +1 -0
  30. package/dist/service/requestServer.ts +1 -1
  31. package/dist/utils/connectNativeJsBridge.ts +1 -1
  32. package/dist/utils/h5Utils.ts +1 -1
  33. package/dist/utils/index.h5.ts +1 -1
  34. package/dist/utils/index.ts +1 -1
  35. package/dist/utils/index.weapp.ts +1 -1
  36. package/dist/utils/utils.ts +1 -1
  37. package/package.json +1 -1
@@ -1 +1 @@
1
- export const getPageType = () => {
2
1
  return process.env.BUILD_TYPE || ''
3
2
 
4
3
  M_DECORATE = 'm-decorate',
5
4
  M_RENDER_MODULE = 'm-render-module',
6
5
  M_PREVIEW = 'm-preview',
7
6
  M_ISV_PREVIEW = 'm-isv-preview',
8
7
  MARKETING_PREVIEW = 'marketing-preview',
9
8
 
10
9
  APP_VIEW = 'app-view',
11
10
  APP_MEMBER = 'app-member',
12
11
  APP_INTRODUCE = 'app-introduce',
13
12
  APP_PROMOTION = 'app-promotion',
14
13
  APP_CLASSIFY = 'app-classify',
15
14
  APP_PRODUCT = 'app-product',
16
15
 
17
16
 
18
17
  PC_VIEW = 'pc-view',
19
18
  PC_VIEW1 = 'pc-view1',
20
19
  PC_VIEW2 = 'pc-view2',
21
20
  M_VIEW = 'm-view',
22
21
  M_BSC_VIEW = 'm-bsc-view',
23
22
  SALE_VIEW = 'sale-view',
24
23
  VIP_VIEW = 'vip-view',
25
24
  M_SEARCH = 'm-search',
26
25
  M_INTRODUCE = 'm-introduce',
27
26
 
28
27
  MEMBER_SHOPCARD = 'member-shopcard',
29
28
  M_MEMBER = 'm-member',
30
29
  M_MEMBER_SAM_BIND_CARD = 'm-member-sam-bind-card',
31
30
  M_MEMBER_WATSONS_BIND_CARD = 'm-member-watsons-bind-card',
32
31
  M_SAM_CARD = 'm-sam-card',
33
32
  M_SAM_CENTER = 'm-sam-center',
34
33
  M_WATSONS_CARD = 'm-watsons-card',
35
34
 
36
35
  M_LOTTERY = 'm-lottery',
37
36
  M_COUPON = 'm-coupon',
38
37
  M_WARES = 'm-wares',
39
38
  M_FAST_SHOPPING = 'm-fast-shopping',
40
39
  M_SPECIAL_SECKILL = 'm-special-seckill',
41
40
  WEAPP_SHOP = 'weapp-shop',
42
41
  WEAPP_PROMOTION = 'weapp-promotion',
43
42
  M_VIDEOS = 'm-videos',
43
+ export const getPageType = () => {
44
44
  return process.env.BUILD_TYPE || ''
45
45
 
46
46
  M_DECORATE = 'm-decorate',
47
47
  M_RENDER_MODULE = 'm-render-module',
48
48
  M_PREVIEW = 'm-preview',
49
49
  M_ISV_PREVIEW = 'm-isv-preview',
50
50
  MARKETING_PREVIEW = 'marketing-preview',
51
51
 
52
52
  APP_VIEW = 'app-view',
53
53
  APP_MEMBER = 'app-member',
54
54
  APP_INTRODUCE = 'app-introduce',
55
55
  APP_PROMOTION = 'app-promotion',
56
56
  APP_CLASSIFY = 'app-classify',
57
57
  APP_PRODUCT = 'app-product',
58
58
  MEMBER_HOME = 'member-home',
59
59
 
60
60
 
61
61
  PC_VIEW = 'pc-view',
62
62
  PC_VIEW1 = 'pc-view1',
63
63
  PC_VIEW2 = 'pc-view2',
64
64
  M_VIEW = 'm-view',
65
65
  M_BSC_VIEW = 'm-bsc-view',
66
66
  SALE_VIEW = 'sale-view',
67
67
  VIP_VIEW = 'vip-view',
68
68
  M_SEARCH = 'm-search',
69
69
  M_INTRODUCE = 'm-introduce',
70
70
 
71
71
  MEMBER_SHOPCARD = 'member-shopcard',
72
72
  M_MEMBER = 'm-member',
73
73
  M_MEMBER_SAM_BIND_CARD = 'm-member-sam-bind-card',
74
74
  M_MEMBER_WATSONS_BIND_CARD = 'm-member-watsons-bind-card',
75
75
  M_SAM_CARD = 'm-sam-card',
76
76
  M_SAM_CENTER = 'm-sam-center',
77
77
  M_WATSONS_CARD = 'm-watsons-card',
78
78
 
79
79
  M_LOTTERY = 'm-lottery',
80
80
  M_COUPON = 'm-coupon',
81
81
  M_WARES = 'm-wares',
82
82
  M_FAST_SHOPPING = 'm-fast-shopping',
83
83
  M_SPECIAL_SECKILL = 'm-special-seckill',
84
84
  WEAPP_SHOP = 'weapp-shop',
85
85
  WEAPP_PROMOTION = 'weapp-promotion',
86
86
  M_VIDEOS = 'm-videos',
@@ -1 +1 @@
1
- export const NO_ENVIRONMENT_AND_PAGE_TYPE_FLAG = 'noType_'
2
1
  IMAGE_LOAD = 'imageLazyLoadError',
3
2
  GRAYSCALE = 'grayscale',
4
3
  REMOTEMODULE_DATA = 'remoteModule_interface_dataError',
5
4
  REMOTEMODULE_JS = 'remoteModule_render_jsError',
6
5
  SYSTEMMODULE_JS = 'systemModule_render_jsError',
7
6
  SYSTEMPDCMODULE_DATA = 'systemPdcModule_interface_dataError',
8
7
  SYSTEMPDCMODULE_JS = 'systemPdcModule_render_jsError',
9
8
  FLOORLAZYLOAD_DATA = 'floorLazyLoad_render_dataError',
9
+ export const NO_ENVIRONMENT_AND_PAGE_TYPE_FLAG = 'noType_'
10
10
  IMAGE_LOAD = 'imageLazyLoadError',
11
11
  PRICE_RENDER = 'priceRenderError',
12
12
  GRAYSCALE = 'grayscale',
13
13
  REMOTEMODULE_DATA = 'remoteModule_interface_dataError',
14
14
  REMOTEMODULE_JS = 'remoteModule_render_jsError',
15
15
  SYSTEMMODULE_JS = 'systemModule_render_jsError',
16
16
  SYSTEMPDCMODULE_DATA = 'systemPdcModule_interface_dataError',
17
17
  SYSTEMPDCMODULE_JS = 'systemPdcModule_render_jsError',
18
18
  FLOORLAZYLOAD_DATA = 'floorLazyLoad_render_dataError',
@@ -0,0 +1 @@
1
+ const MediaError = {
2
  MEDIA_ERR_ABORTED: 1,
1
3
  MEDIA_ERR_NETWORK: 2,
2
4
  MEDIA_ERR_DECODE: 3,
3
5
  MEDIA_ERR_SRC_NOT_SUPPORTED: 4,
4
6
  [MediaError.MEDIA_ERR_ABORTED]: 'MEDIA_ERR_ABORTED',
5
7
  [MediaError.MEDIA_ERR_NETWORK]: 'MEDIA_ERR_NETWORK',
6
8
  [MediaError.MEDIA_ERR_DECODE]: 'MEDIA_ERR_DECODE',
7
9
  [MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED]: 'MEDIA_ERR_SRC_NOT_SUPPORTED',
8
10
  if (!error) {
9
11
  return ''
10
12
  }
11
13
  const message = error.message
12
14
  let s = ''
13
15
  if (error?.code) {
14
16
  s += codeMap[error.code] || 'UNKNOWN'
15
17
  }
16
18
  if (message?.length > 0) {
17
19
  s += ` ${message}`
18
20
  }
19
21
  return `${error.constructor.name} ${error.code}: ${s}`