@conecli/cone-render 0.10.1-beta.1 → 0.10.1-beta.3

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 React from 'react'
2
1
  const { floorData, renderSourceType, builtInComponents = {} } = props
3
2
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
4
3
  const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
5
4
  const FloorContentItem =
6
5
  (floorModuleType && builtInComponents[floorModuleType]) || null
7
6
  const dataDefines = getFloorDataToDataDefines(floorData)
8
7
 
9
8
  const renderDecorateDefaultModule = () => {
10
9
  return (
11
10
  <View
12
11
  style={{
13
12
  lineHeight: '120px',
14
13
  textAlign: 'center',
15
14
  }}
16
15
  >
17
16
  当前模块是{floorData.moduleName}
18
17
  </View>
19
18
  )
20
19
  }
21
20
  if (floorModuleType && (RemoteLoadFloorList.includes(floorModuleType) || floorData?.floorExtInfo?.floorLoadWay === 2)) {
22
21
  return (
23
22
  <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
24
23
  )
25
24
  } else {
26
25
  return FloorContentItem ? (
27
26
  <ErrorBoundary {...props}>
28
27
  <FloorContentItem {...props} dataDefines={dataDefines} />
29
28
  </ErrorBoundary>
30
29
  ) : isDevMode ? (
31
30
  renderDecorateDefaultModule()
32
31
  ) : null
33
32
  }
34
33
  renderSourceType: BUSINESS_TYPE.ONLINE,
35
34
  switch (moduleId) {
36
35
  case 83158:
37
36
  return 'freeLayout'
38
37
  case 99654:
39
38
  return 'activeText'
40
39
  case 100382:
41
40
  return 'superGoods'
42
41
  }
43
42
  floorList.map((item) => {
44
43
  if (!item.floorExtInfo) {
45
44
  return null
46
45
  }
47
46
  const moduleFlag = item.floorExtInfo.moduleFlag
48
47
  if (!moduleFlag) {
49
48
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
50
49
  if (newModuleFlag) {
51
50
  item.floorExtInfo.moduleFlag = newModuleFlag
52
51
  }
53
52
  }
54
53
  })
54
+ import React from 'react'
55
55
  const {
56
56
  floorData,
57
57
  renderSourceType = BUSINESS_TYPE.ONLINE,
58
58
  builtInComponents = {},
59
59
  } = props
60
60
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
61
61
  const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
62
62
  const FloorContentItem =
63
63
  (floorModuleType && builtInComponents[floorModuleType]) || null
64
64
  const dataDefines = getFloorDataToDataDefines(floorData)
65
65
 
66
66
  const renderDecorateDefaultModule = () => {
67
67
  return (
68
68
  <View
69
69
  style={{
70
70
  lineHeight: '120px',
71
71
  textAlign: 'center',
72
72
  }}
73
73
  >
74
74
  当前模块是{floorData.moduleName}
75
75
  </View>
76
76
  )
77
77
  }
78
78
  if (
79
79
  floorModuleType &&
80
80
  (RemoteLoadFloorList.includes(floorModuleType) ||
81
81
  floorData?.floorExtInfo?.floorLoadWay === 2)
82
82
  ) {
83
83
  return (
84
84
  <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
85
85
  )
86
86
  } else {
87
87
  return FloorContentItem ? (
88
88
  <ErrorBoundary {...props}>
89
89
  <FloorContentItem {...props} dataDefines={dataDefines} />
90
90
  </ErrorBoundary>
91
91
  ) : isDevMode ? (
92
92
  renderDecorateDefaultModule()
93
93
  ) : null
94
94
  }
95
95
  switch (moduleId) {
96
96
  case 83158:
97
97
  return 'freeLayout'
98
98
  case 99654:
99
99
  return 'activeText'
100
100
  case 100382:
101
101
  return 'superGoods'
102
102
  }
103
103
  floorList.map((item) => {
104
104
  if (!item.floorExtInfo) {
105
105
  return null
106
106
  }
107
107
  const moduleFlag = item.floorExtInfo.moduleFlag
108
108
  if (!moduleFlag) {
109
109
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
110
110
  if (newModuleFlag) {
111
111
  item.floorExtInfo.moduleFlag = newModuleFlag
112
112
  }
113
113
  }
114
114
  })
@@ -1 +1 @@
1
- import React from 'react'
2
1
  return FloorContentItem ? (
3
2
  <ErrorBoundary {...props}>
4
3
  <FloorContentItem {...props} dataDefines={dataDefines} />
5
4
  </ErrorBoundary>
6
5
  ) : isDevMode ? (
7
6
  renderDecorateDefaultModule()
8
7
  ) : null
8
+ import React from 'react'
9
9
  const {
10
10
  floorData,
11
11
  renderSourceType = BUSINESS_TYPE.ONLINE,
12
12
  builtInComponents = {},
13
13
  updateContainerFloorListDataFn,
14
14
  } = props
15
15
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
16
16
  const floorModuleType = floorData?.floorExtInfo?.moduleFlag
17
17
  const FloorContentItem =
18
18
  (floorModuleType && builtInComponents[floorModuleType]) || null
19
19
  const dataDefines = getFloorDataToDataDefines(floorData)
20
20
 
21
21
  const renderDecorateDefaultModule = () => {
22
22
  return (
23
23
  <View
24
24
  style={{
25
25
  lineHeight: '120px',
26
26
  textAlign: 'center',
27
27
  }}
28
28
  >
29
29
  当前模块是{floorData.moduleName}
30
30
  </View>
31
31
  )
32
32
  }
33
33
  return FloorContentItem ? (
34
34
  <ErrorBoundary {...props}>
35
35
  <FloorContentItem {...props} dataDefines={dataDefines} />
36
36
  </ErrorBoundary>
37
37
  ) : isDevMode ? (
38
38
  renderDecorateDefaultModule()
39
39
  ) : null
40
40
  switch (moduleId) {
41
41
  case 83158:
42
42
  return 'freeLayout'
43
43
  case 99654:
44
44
  return 'activeText'
45
45
  case 100382:
46
46
  return 'superGoods'
47
47
  }
48
48
  floorList.map((item) => {
49
49
  if (!item.floorExtInfo) {
50
50
  return null
51
51
  }
52
52
  const moduleFlag = item.floorExtInfo.moduleFlag
53
53
  if (!moduleFlag) {
54
54
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
55
55
  if (newModuleFlag) {
56
56
  item.floorExtInfo.moduleFlag = newModuleFlag
57
57
  }
58
58
  }
59
59
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.10.1-beta.1",
3
+ "version": "0.10.1-beta.3",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"
@@ -63,21 +63,21 @@
63
63
  "author": "conecli",
64
64
  "dependencies": {
65
65
  "@babel/runtime": "7.24.4",
66
- "@tarojs/components": "4.0.5-alpha.10",
67
- "@tarojs/helper": "4.0.5-alpha.10",
68
- "@tarojs/plugin-platform-weapp": "4.0.5-alpha.10",
69
- "@tarojs/plugin-platform-alipay": "4.0.5-alpha.10",
70
- "@tarojs/plugin-platform-tt": "4.0.5-alpha.10",
71
- "@tarojs/plugin-platform-swan": "4.0.5-alpha.10",
72
- "@tarojs/plugin-platform-jd": "4.0.5-alpha.10",
73
- "@tarojs/plugin-platform-qq": "4.0.5-alpha.10",
74
- "@tarojs/plugin-platform-h5": "4.0.5-alpha.10",
75
- "@tarojs/plugin-platform-harmony-hybrid": "4.0.5-alpha.10",
76
- "@tarojs/runtime": "4.0.5-alpha.10",
77
- "@tarojs/shared": "4.0.5-alpha.10",
78
- "@tarojs/taro": "4.0.5-alpha.10",
79
- "@tarojs/plugin-framework-react": "4.0.5-alpha.10",
80
- "@tarojs/react": "4.0.5-alpha.10",
66
+ "@tarojs/components": "4.0.5",
67
+ "@tarojs/helper": "4.0.5",
68
+ "@tarojs/plugin-platform-weapp": "4.0.5",
69
+ "@tarojs/plugin-platform-alipay": "4.0.5",
70
+ "@tarojs/plugin-platform-tt": "4.0.5",
71
+ "@tarojs/plugin-platform-swan": "4.0.5",
72
+ "@tarojs/plugin-platform-jd": "4.0.5",
73
+ "@tarojs/plugin-platform-qq": "4.0.5",
74
+ "@tarojs/plugin-platform-h5": "4.0.5",
75
+ "@tarojs/plugin-platform-harmony-hybrid": "4.0.5",
76
+ "@tarojs/runtime": "4.0.5",
77
+ "@tarojs/shared": "4.0.5",
78
+ "@tarojs/taro": "4.0.5",
79
+ "@tarojs/plugin-framework-react": "4.0.5",
80
+ "@tarojs/react": "4.0.5",
81
81
  "react-dom": "^18.2.0",
82
82
  "react": "^18.2.0",
83
83
  "art-template": "^4.13.2",
@@ -91,16 +91,16 @@
91
91
  "devDependencies": {
92
92
  "@babel/plugin-transform-strict-mode": "^7.16.7",
93
93
  "@babel/core": "7.24.4",
94
- "@tarojs/cli": "4.0.5-alpha.10",
94
+ "@tarojs/cli": "4.0.5",
95
95
  "@babel/plugin-proposal-class-properties": "7.14.5",
96
96
  "@types/webpack-env": "^1.13.6",
97
97
  "@types/react": "^18.0.17",
98
98
  "webpack": "5.91.0",
99
- "@tarojs/taro-loader": "4.0.5-alpha.10",
100
- "@tarojs/webpack5-runner": "4.0.5-alpha.10",
99
+ "@tarojs/taro-loader": "4.0.5",
100
+ "@tarojs/webpack5-runner": "4.0.5",
101
101
  "sass": "^1.75.0",
102
- "babel-preset-taro": "4.0.5-alpha.10",
103
- "eslint-config-taro": "4.0.5-alpha.10",
102
+ "babel-preset-taro": "4.0.5",
103
+ "eslint-config-taro": "4.0.5",
104
104
  "eslint": "^8.57.0",
105
105
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
106
106
  "react-refresh": "^0.14.0",
@@ -130,7 +130,7 @@
130
130
  },
131
131
  "resolutions": {
132
132
  "@babel/runtime": "7.24.4",
133
- "@tarojs/cli": "4.0.5-alpha.10",
134
- "@tarojs/helper": "4.0.5-alpha.10"
133
+ "@tarojs/cli": "4.0.5",
134
+ "@tarojs/helper": "4.0.5"
135
135
  }
136
136
  }