@conecli/cone-render 0.8.11-beta.1 → 0.8.13-alpha.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 (62) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/business.ts +1 -1
  3. package/dist/common/const.ts +1 -1
  4. package/dist/common/index.h5.ts +1 -1
  5. package/dist/common/index.jd.ts +1 -1
  6. package/dist/common/index.ts +1 -1
  7. package/dist/common/index.weapp.ts +1 -1
  8. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  9. package/dist/components/base/CountDown/index.module.scss +4 -4
  10. package/dist/components/base/CountDown/index.tsx +1 -1
  11. package/dist/components/base/CustomImageLoadRealInfo/index.tsx +1 -1
  12. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  13. package/dist/components/base/Dialog/index.tsx +1 -1
  14. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  15. package/dist/components/base/Exposure/index.tsx +1 -1
  16. package/dist/components/base/LazyLayoutLoad/index.module.scss +1 -0
  17. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  18. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  19. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  20. package/dist/components/base/LazyLoadImage/index.h5.module.scss +1 -0
  21. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  22. package/dist/components/base/LazyLoadImage/index.module.scss +1 -0
  23. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  24. package/dist/components/base/NetworkDataError/index.module.scss +2 -2
  25. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  26. package/dist/components/base/Price/index.module.scss +18 -30
  27. package/dist/components/base/Price/index.tsx +1 -1
  28. package/dist/components/floorItem.tsx +1 -1
  29. package/dist/components/system/Banner/index.module.scss +39 -1
  30. package/dist/components/system/Banner/index.tsx +1 -1
  31. package/dist/components/system/PictureHotSpot/index.module.scss +4 -0
  32. package/dist/config/env.ts +1 -1
  33. package/dist/customHooks/useDocumentVisibilitychange.ts +1 -1
  34. package/dist/interface/common.ts +1 -1
  35. package/dist/interface/component.ts +1 -1
  36. package/dist/interface/jumpEventReport.ts +1 -1
  37. package/dist/interface/service.ts +1 -1
  38. package/dist/interface/utils.ts +1 -1
  39. package/dist/jumpEventReport/base.ts +1 -1
  40. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  41. package/dist/jumpEventReport/index.h5.ts +1 -1
  42. package/dist/jumpEventReport/index.ts +1 -1
  43. package/dist/jumpEventReport/index.weapp.ts +1 -1
  44. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  45. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  46. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  47. package/dist/jumpEventReport/web.base.ts +1 -1
  48. package/dist/jumpEventReport/web.jd.ts +1 -1
  49. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  50. package/dist/open/index.ts +1 -1
  51. package/dist/sass/app.h5.scss +607 -0
  52. package/dist/sass/app.scss +21 -0
  53. package/dist/sass/base.scss +67 -0
  54. package/dist/sass/normalize.scss +261 -0
  55. package/dist/utils/MQ.ts +1 -1
  56. package/dist/utils/connectNativeJsBridge.ts +1 -1
  57. package/dist/utils/h5Utils.ts +1 -1
  58. package/dist/utils/index.h5.ts +1 -1
  59. package/dist/utils/index.ts +1 -1
  60. package/dist/utils/index.weapp.ts +1 -1
  61. package/dist/utils/utils.ts +1 -1
  62. package/package.json +23 -16
@@ -0,0 +1,261 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+ html {
8
+ line-height: 1.15;
9
+ -webkit-text-size-adjust: 100%;
10
+ }
11
+
12
+
13
+
14
+
15
+
16
+ body {
17
+ margin: 0;
18
+ }
19
+
20
+
21
+
22
+ main {
23
+ display: block;
24
+ }
25
+
26
+
27
+
28
+ h1 {
29
+ font-size: 2em;
30
+ margin: 0.67em 0;
31
+ }
32
+
33
+
34
+
35
+
36
+
37
+ hr {
38
+ box-sizing: content-box;
39
+ height: 0;
40
+ overflow: visible;
41
+ }
42
+
43
+
44
+
45
+ pre {
46
+ font-family: monospace, monospace;
47
+ font-size: 1em;
48
+ }
49
+
50
+
51
+
52
+
53
+
54
+ a {
55
+ background-color: transparent;
56
+ }
57
+
58
+
59
+
60
+ abbr[title] {
61
+ border-bottom: none;
62
+ text-decoration: underline;
63
+ text-decoration: underline dotted;
64
+ }
65
+
66
+
67
+
68
+ b,
69
+ strong {
70
+ font-weight: bolder;
71
+ }
72
+
73
+
74
+
75
+ code,
76
+ kbd,
77
+ samp {
78
+ font-family: monospace, monospace;
79
+ font-size: 1em;
80
+ }
81
+
82
+
83
+
84
+ small {
85
+ font-size: 80%;
86
+ }
87
+
88
+
89
+
90
+ sub,
91
+ sup {
92
+ font-size: 75%;
93
+ line-height: 0;
94
+ position: relative;
95
+ vertical-align: baseline;
96
+ }
97
+
98
+ sub {
99
+ bottom: -0.25em;
100
+ }
101
+
102
+ sup {
103
+ top: -0.5em;
104
+ }
105
+
106
+
107
+
108
+
109
+
110
+ img {
111
+ border-style: none;
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+ button,
119
+ input,
120
+ optgroup,
121
+ select,
122
+ textarea {
123
+ font-family: inherit;
124
+ font-size: 100%;
125
+ line-height: 1.15;
126
+ margin: 0;
127
+ }
128
+
129
+
130
+
131
+ button,
132
+ input {
133
+ overflow: visible;
134
+ }
135
+
136
+
137
+
138
+ button,
139
+ select {
140
+ text-transform: none;
141
+ }
142
+
143
+
144
+
145
+ button,
146
+ [type="button"],
147
+ [type="reset"],
148
+ [type="submit"] {
149
+ -webkit-appearance: button;
150
+ }
151
+
152
+
153
+
154
+ button::-moz-focus-inner,
155
+ [type="button"]::-moz-focus-inner,
156
+ [type="reset"]::-moz-focus-inner,
157
+ [type="submit"]::-moz-focus-inner {
158
+ border-style: none;
159
+ padding: 0;
160
+ }
161
+
162
+
163
+
164
+ button:-moz-focusring,
165
+ [type="button"]:-moz-focusring,
166
+ [type="reset"]:-moz-focusring,
167
+ [type="submit"]:-moz-focusring {
168
+ outline: 1px dotted ButtonText;
169
+ }
170
+
171
+
172
+
173
+ fieldset {
174
+ padding: 0.35em 0.75em 0.625em;
175
+ }
176
+
177
+
178
+
179
+ legend {
180
+ box-sizing: border-box;
181
+ color: inherit;
182
+ display: table;
183
+ max-width: 100%;
184
+ padding: 0;
185
+ white-space: normal;
186
+ }
187
+
188
+
189
+
190
+ progress {
191
+ vertical-align: baseline;
192
+ }
193
+
194
+
195
+
196
+ textarea {
197
+ overflow: auto;
198
+ }
199
+
200
+
201
+
202
+ [type="checkbox"],
203
+ [type="radio"] {
204
+ box-sizing: border-box;
205
+ padding: 0;
206
+ }
207
+
208
+
209
+
210
+ [type="number"]::-webkit-inner-spin-button,
211
+ [type="number"]::-webkit-outer-spin-button {
212
+ height: auto;
213
+ }
214
+
215
+
216
+
217
+ [type="search"] {
218
+ -webkit-appearance: textfield;
219
+ outline-offset: -2px;
220
+ }
221
+
222
+
223
+
224
+ [type="search"]::-webkit-search-decoration {
225
+ -webkit-appearance: none;
226
+ }
227
+
228
+
229
+
230
+ ::-webkit-file-upload-button {
231
+ -webkit-appearance: button;
232
+ font: inherit;
233
+ }
234
+
235
+
236
+
237
+
238
+
239
+ details {
240
+ display: block;
241
+ }
242
+
243
+
244
+
245
+ summary {
246
+ display: list-item;
247
+ }
248
+
249
+
250
+
251
+
252
+
253
+ template {
254
+ display: none;
255
+ }
256
+
257
+
258
+
259
+ [hidden] {
260
+ display: none;
261
+ }
package/dist/utils/MQ.ts CHANGED
@@ -1 +1 @@
1
- interface Message {
2
1
  callback:Function
3
2
  time: number
4
3
  messages: Message[]
5
4
  timerId: number
6
5
  timeGap: number
7
6
  mqDelay: number
8
7
  constructor() {
9
8
  this.messages = []
10
9
  this.timerId = 0
11
10
  this.timeGap = 17
12
11
  this.mqDelay = 50
13
12
  }
14
13
 
15
14
  static getInstance() {
16
15
  if (window.top._mq == null) {
17
16
  window.top._mq = new MQ()
18
17
  }
19
18
  return window.top._mq
20
19
  }
21
20
  onTimer() {
22
21
  const nowTime = Date.now()
23
22
  let leftMsgList:Message[] = []
24
23
  const msgList = this.messages.filter((item:Message)=>{
25
24
  if(nowTime - item.time >= this.mqDelay){
26
25
  return true
27
26
  }
28
27
  else{
29
28
  leftMsgList.push(item)
30
29
  return false
31
30
  }
32
31
  })
33
32
  msgList.forEach((msg)=>{
34
33
  msg.callback()
35
34
  })
36
35
  this.messages = leftMsgList
37
36
  if(this.messages.length>0){
38
37
  this.timerId = 0
39
38
  this.starTimer()
40
39
  }
41
40
  else{
42
41
  this.stopTimer()
43
42
  }
44
43
  }
45
44
  starTimer() {
46
45
  if(this.timerId== 0){
47
46
  this.timerId = setTimeout(()=>{
48
47
  this.onTimer()
49
48
  }, this.timeGap)
50
49
  }
51
50
  }
52
51
  stopTimer() {
53
52
  if(this.timerId>0){
54
53
  clearTimeout(this.timerId)
55
54
  }
56
55
  this.timerId = 0
57
56
  }
58
57
 
59
58
  addCallBack(callback: Function) {
60
59
  if(callback){
61
60
  const msg: Message = {
62
61
  callback,
63
62
  time: Date.now()
64
63
  }
65
64
  this.messages.push(msg)
66
65
  this.starTimer()
67
66
  }
68
67
  }
69
68
  clear() {
70
69
  this.messages = []
71
70
  this.stopTimer()
72
71
  }
72
+ interface Message {
73
73
  callback:Function
74
74
  time: number
75
75
  messages: Message[]
76
76
  timerId: number
77
77
  timeGap: number
78
78
  mqDelay: number
79
79
  constructor() {
80
80
  this.messages = []
81
81
  this.timerId = 0
82
82
  this.timeGap = 17
83
83
  this.mqDelay = 50
84
84
  }
85
85
 
86
86
  static getInstance() {
87
87
  _mq = new MQ()
88
88
  }
89
89
  return _mq
90
90
  }
91
91
  onTimer() {
92
92
  const nowTime = Date.now()
93
93
  let leftMsgList:Message[] = []
94
94
  const msgList = this.messages.filter((item:Message)=>{
95
95
  if(nowTime - item.time >= this.mqDelay){
96
96
  return true
97
97
  }
98
98
  else{
99
99
  leftMsgList.push(item)
100
100
  return false
101
101
  }
102
102
  })
103
103
  msgList.forEach((msg)=>{
104
104
  msg.callback()
105
105
  })
106
106
  this.messages = leftMsgList
107
107
  if(this.messages.length>0){
108
108
  this.timerId = 0
109
109
  this.starTimer()
110
110
  }
111
111
  else{
112
112
  this.stopTimer()
113
113
  }
114
114
  }
115
115
  starTimer() {
116
116
  if(this.timerId== 0){
117
117
  this.timerId = setTimeout(()=>{
118
118
  this.onTimer()
119
119
  }, this.timeGap)
120
120
  }
121
121
  }
122
122
  stopTimer() {
123
123
  if(this.timerId>0){
124
124
  clearTimeout(this.timerId)
125
125
  }
126
126
  this.timerId = 0
127
127
  }
128
128
 
129
129
  addCallBack(callback: Function) {
130
130
  if(callback){
131
131
  const msg: Message = {
132
132
  callback,
133
133
  time: Date.now()
134
134
  }
135
135
  this.messages.push(msg)
136
136
  this.starTimer()
137
137
  }
138
138
  }
139
139
  clear() {
140
140
  this.messages = []
141
141
  this.stopTimer()
142
142
  }
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import {
1
+ import {
2
2
  isApp,
3
3
  isIOS,
4
4
  getAppVersion,
5
5
  version,
6
6
  getUUID,
7
7
  getUrlQuery,
8
8
  assign,
9
9
  isString,
10
10
  isObject,
11
11
  serialize,
12
12
  isAndroid,
13
13
  CHANNEL_TYPE,
14
14
  JDShopViewBusinessPathType,
15
15
  JDShopViewBusinessPathList,
16
16
  SECTION_HOME_TAB_NAME_TYPE,
17
17
  parseQueryUrlString(window.location.href),
18
18
  if (isJdApp) {
19
19
  isIosDevice
20
20
  ? e && e.stopPropagation()
21
21
  : androidDeviceStopNativeScrollEvent(state)
22
22
  }
23
23
  isJdApp &&
24
24
  isAndroidDevice &&
25
25
  window?.JdAndroid &&
26
26
  window?.JdAndroid.requestEvent(state)
27
27
  if (isH5AndJdShopView) {
28
28
  return (
29
29
  CHANNEL_TYPE[currentChannel] ||
30
30
  CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
31
31
  )
32
32
  }
33
33
  return null
34
34
  isH5 &&
35
35
  urlPathname === '/app/home' &&
36
36
  JDShopViewBusinessPathList.includes(currentChannel)
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  <span class="d-shop-loading-icon"></span>
3
2
  <p class="d-shop-text">${text}</p>
4
3
  </div>`
4
+ import Taro from '@tarojs/taro'
5
5
  <span class="d-shop-loading-icon"></span>
6
6
  <p class="d-shop-text">${text}</p>
7
7
  </div>`
@@ -1 +1 @@
1
- import {
1
+ import {
@@ -1 +1 @@
1
- import {
1
+ import {
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.8.11-beta.1",
3
+ "version": "0.8.13-alpha.0",
4
4
  "private": false,
5
5
  "main": "dist/open/index.ts",
6
6
  "files": [
@@ -46,32 +46,38 @@
46
46
  ],
47
47
  "author": "conecli",
48
48
  "dependencies": {
49
- "@tarojs/components": "3.4.3",
50
- "@tarojs/plugin-framework-react": "3.4.3",
51
- "@tarojs/react": "3.4.3",
52
- "@tarojs/runtime": "3.4.3",
53
- "@tarojs/taro": "3.4.3",
49
+ "@tarojs/cli": "^3.5.4",
50
+ "@tarojs/components": "3.5.4",
51
+ "@tarojs/plugin-framework-react": "3.5.4",
52
+ "@tarojs/react": "3.5.4",
53
+ "@tarojs/runtime": "3.5.4",
54
+ "@tarojs/shared": "3.5.4",
55
+ "@tarojs/taro": "3.5.4",
56
+ "@tarojs/taro-h5": "3.5.4",
57
+ "@tarojs/taro-loader": "3.5.4",
58
+ "@tarojs/webpack5-runner": "3.5.4",
54
59
  "art-template": "^4.13.2",
60
+ "normalize.css": "^8.0.1",
55
61
  "raf": "^3.4.1",
56
- "react": "^17.0.0",
62
+ "react": "^18.2.0",
57
63
  "react-content-loader": "^6.2.0",
58
- "react-dom": "^17.0.0",
64
+ "react-dom": "^18.2.0",
65
+ "react-refresh": "^0.14.0",
59
66
  "react-intersection-observer": "^9.1.0"
60
67
  },
61
68
  "devDependencies": {
62
69
  "@babel/core": "^7.8.0",
63
70
  "@babel/runtime": "^7.17.9",
64
- "@tarojs/mini-runner": "3.4.3",
65
- "@tarojs/webpack-runner": "3.4.3",
66
- "@types/react": "^17.0.2",
71
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
72
+ "@types/react": "^18.0.17",
67
73
  "@types/webpack-env": "^1.13.6",
68
- "@typescript-eslint/eslint-plugin": "^4.15.1",
69
- "@typescript-eslint/parser": "^4.15.1",
70
- "babel-preset-taro": "3.4.3",
74
+ "@typescript-eslint/eslint-plugin": "^5.20.0",
75
+ "@typescript-eslint/parser": "^5.20.0",
76
+ "babel-preset-taro": "3.5.4",
71
77
  "del": "^6.1.1",
72
78
  "escodegen": "^2.0.0",
73
79
  "eslint": "^6.8.0",
74
- "eslint-config-taro": "3.4.3",
80
+ "eslint-config-taro": "3.5.4",
75
81
  "eslint-plugin-import": "^2.12.0",
76
82
  "eslint-plugin-react": "^7.8.2",
77
83
  "eslint-plugin-react-hooks": "^4.2.0",
@@ -83,6 +89,7 @@
83
89
  "sass": "^1.53.0",
84
90
  "shelljs": "^0.8.5",
85
91
  "stylelint": "^14.4.0",
86
- "typescript": "^4.1.0"
92
+ "typescript": "^4.1.0",
93
+ "webpack": "5.69.0"
87
94
  }
88
95
  }