@mpxjs/webpack-plugin 2.10.16-beta.7 → 2.10.17

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 (59) hide show
  1. package/LICENSE +433 -0
  2. package/lib/config.js +0 -60
  3. package/lib/file-loader.js +3 -13
  4. package/lib/json-compiler/index.js +2 -2
  5. package/lib/platform/json/wx/index.js +0 -6
  6. package/lib/platform/template/wx/component-config/ad.js +0 -5
  7. package/lib/platform/template/wx/component-config/button.js +2 -9
  8. package/lib/platform/template/wx/component-config/camera.js +3 -25
  9. package/lib/platform/template/wx/component-config/canvas.js +1 -8
  10. package/lib/platform/template/wx/component-config/cover-image.js +2 -7
  11. package/lib/platform/template/wx/component-config/cover-view.js +1 -3
  12. package/lib/platform/template/wx/component-config/form.js +2 -27
  13. package/lib/platform/template/wx/component-config/image.js +0 -5
  14. package/lib/platform/template/wx/component-config/input.js +0 -10
  15. package/lib/platform/template/wx/component-config/label.js +2 -10
  16. package/lib/platform/template/wx/component-config/map.js +0 -11
  17. package/lib/platform/template/wx/component-config/movable-area.js +1 -4
  18. package/lib/platform/template/wx/component-config/movable-view.js +2 -17
  19. package/lib/platform/template/wx/component-config/navigator.js +0 -26
  20. package/lib/platform/template/wx/component-config/picker-view.js +0 -12
  21. package/lib/platform/template/wx/component-config/picker.js +1 -3
  22. package/lib/platform/template/wx/component-config/progress.js +1 -11
  23. package/lib/platform/template/wx/component-config/rich-text.js +0 -5
  24. package/lib/platform/template/wx/component-config/scroll-view.js +1 -12
  25. package/lib/platform/template/wx/component-config/slider.js +0 -8
  26. package/lib/platform/template/wx/component-config/swiper-item.js +2 -5
  27. package/lib/platform/template/wx/component-config/swiper.js +0 -10
  28. package/lib/platform/template/wx/component-config/text.js +0 -5
  29. package/lib/platform/template/wx/component-config/textarea.js +2 -19
  30. package/lib/platform/template/wx/component-config/unsupported.js +1 -10
  31. package/lib/platform/template/wx/component-config/video.js +0 -10
  32. package/lib/platform/template/wx/index.js +1 -21
  33. package/lib/runtime/components/react/dist/mpx-canvas/index.jsx +1 -1
  34. package/lib/runtime/components/react/dist/mpx-image.d.ts.map +1 -1
  35. package/lib/runtime/components/react/dist/mpx-image.jsx +26 -20
  36. package/lib/runtime/components/react/dist/mpx-input.d.ts.map +1 -1
  37. package/lib/runtime/components/react/dist/mpx-input.jsx +1 -3
  38. package/lib/runtime/components/react/dist/mpx-rich-text/index.jsx +1 -1
  39. package/lib/runtime/components/react/dist/mpx-web-view.d.ts.map +1 -1
  40. package/lib/runtime/components/react/dist/mpx-web-view.jsx +11 -3
  41. package/lib/runtime/components/react/mpx-canvas/index.tsx +1 -1
  42. package/lib/runtime/components/react/mpx-image.tsx +41 -35
  43. package/lib/runtime/components/react/mpx-input.tsx +1 -3
  44. package/lib/runtime/components/react/mpx-rich-text/index.tsx +1 -1
  45. package/lib/runtime/components/react/mpx-web-view.tsx +14 -5
  46. package/lib/runtime/stringify.wxs +2 -2
  47. package/lib/style-compiler/strip-conditional-loader.js +4 -5
  48. package/lib/template-compiler/bind-this.js +2 -2
  49. package/lib/template-compiler/compiler.js +3 -3
  50. package/lib/template-compiler/index.js +6 -6
  51. package/lib/utils/dom-tag-config.js +1 -1
  52. package/lib/utils/merge-visitors.js +55 -0
  53. package/lib/wxs/pre-loader.js +8 -5
  54. package/package.json +7 -8
  55. package/lib/runtime/components/react/dist/mpx-camera.d.ts +0 -28
  56. package/lib/runtime/components/react/dist/mpx-camera.d.ts.map +0 -1
  57. package/lib/runtime/components/react/dist/mpx-camera.jsx +0 -102
  58. package/lib/runtime/components/react/mpx-camera.tsx +0 -167
  59. package/lib/utils/chain-assign.js +0 -47
@@ -13,23 +13,8 @@ module.exports = function ({ print }) {
13
13
  const qqEventLog = print({ platform: 'qq', tag: TAG_NAME, isError: false, type: 'event' })
14
14
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
15
15
  const qaEventLog = print({ platform: 'qa', tag: TAG_NAME, isError: false, type: 'event' })
16
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
17
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
18
-
19
16
  return {
20
17
  test: TAG_NAME,
21
- ios (tag, { el }) {
22
- el.isBuiltIn = true
23
- return 'mpx-camera'
24
- },
25
- android (tag, { el }) {
26
- el.isBuiltIn = true
27
- return 'mpx-camera'
28
- },
29
- harmony (tag, { el }) {
30
- el.isBuiltIn = true
31
- return 'mpx-camera'
32
- },
33
18
  props: [
34
19
  {
35
20
  test: 'mode',
@@ -61,8 +46,7 @@ module.exports = function ({ print }) {
61
46
  },
62
47
  {
63
48
  test: /^(resolution|frame-size)$/,
64
- qq: qqPropLog,
65
- ks: ksPropLog
49
+ qq: qqPropLog
66
50
  },
67
51
  {
68
52
  test: /^(frame-size|device-position)$/,
@@ -89,17 +73,11 @@ module.exports = function ({ print }) {
89
73
  test: /^(scancode)$/,
90
74
  swan: baiduEventLog,
91
75
  tt: ttEventLog,
92
- qa: qaEventLog,
93
- ks: ksEventLog
76
+ qa: qaEventLog
94
77
  },
95
78
  {
96
79
  test: /^(initdone)$/,
97
- qq: qqEventLog,
98
- ks: ksEventLog
99
- },
100
- {
101
- test: /^(stop|error)$/,
102
- ks: ksEventLog
80
+ qq: qqEventLog
103
81
  }
104
82
  ]
105
83
  }
@@ -6,8 +6,6 @@ module.exports = function ({ print }) {
6
6
  const ttEventLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false, type: 'event' })
7
7
  const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
8
8
  const qaEventLog = print({ platform: 'qa', tag: TAG_NAME, isError: false, type: 'event' })
9
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
10
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
11
9
  return {
12
10
  test: TAG_NAME,
13
11
  android (tag, { el }) {
@@ -39,10 +37,6 @@ module.exports = function ({ print }) {
39
37
  {
40
38
  test: 'type',
41
39
  jd: jdPropLog
42
- },
43
- {
44
- test: /^(type|disable-scroll)$/,
45
- ks: ksPropLog
46
40
  }
47
41
  ],
48
42
  // 组件事件中的差异部分
@@ -69,8 +63,7 @@ module.exports = function ({ print }) {
69
63
  {
70
64
  test: /^(longtap|error)$/,
71
65
  tt: ttEventLog,
72
- qa: qaEventLog,
73
- ks: ksEventLog
66
+ qa: qaEventLog
74
67
  }
75
68
  ]
76
69
  }
@@ -2,12 +2,9 @@ const TAG_NAME = 'cover-image'
2
2
 
3
3
  module.exports = function ({ print }) {
4
4
  const aliEventLog = print({ platform: 'ali', tag: TAG_NAME, isError: false, type: 'event' })
5
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
6
5
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
7
6
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
8
7
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
9
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
10
-
11
8
  return {
12
9
  test: TAG_NAME,
13
10
  web (tag, { el }) {
@@ -40,15 +37,13 @@ module.exports = function ({ print }) {
40
37
  test: /^(referrer-policy)$/,
41
38
  ios: iosPropLog,
42
39
  android: androidPropLog,
43
- harmony: harmonyPropLog,
44
- ks: ksPropLog
40
+ harmony: harmonyPropLog
45
41
  }
46
42
  ],
47
43
  event: [
48
44
  {
49
45
  test: /^(load|error)$/,
50
- ali: aliEventLog,
51
- ks: ksEventLog
46
+ ali: aliEventLog
52
47
  }
53
48
  ]
54
49
  }
@@ -4,7 +4,6 @@ module.exports = function ({ print }) {
4
4
  const aliPropLog = print({ platform: 'ali', tag: TAG_NAME, isError: false })
5
5
  const baiduValueLogError = print({ platform: 'baidu', tag: TAG_NAME, isError: true, type: 'value' })
6
6
  const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
7
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
8
7
 
9
8
  return {
10
9
  test: TAG_NAME,
@@ -42,8 +41,7 @@ module.exports = function ({ print }) {
42
41
  baiduValueLogError({ name, value })
43
42
  }
44
43
  },
45
- web: webPropLog,
46
- ks: ksPropLog
44
+ web: webPropLog
47
45
  },
48
46
  {
49
47
  test: 'use-built-in',
@@ -10,16 +10,6 @@ module.exports = function ({ print }) {
10
10
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
11
11
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
12
12
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
13
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
14
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
15
- const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
16
- const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
17
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
18
- const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
19
- const aliEventLog = print({ platform: 'ali', tag: TAG_NAME, isError: false, type: 'event' })
20
- const qaEventLog = print({ platform: 'qa', tag: TAG_NAME, isError: false, type: 'event' })
21
- const qqEventLog = print({ platform: 'qq', tag: TAG_NAME, isError: false, type: 'event' })
22
- const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
23
13
 
24
14
  return {
25
15
  test: TAG_NAME,
@@ -49,27 +39,12 @@ module.exports = function ({ print }) {
49
39
  qq: qqPropLog
50
40
  },
51
41
  {
52
- test: /^(report-submit|report-submit-timeout|submitToGroup)$/,
42
+ test: /^(report-submit|report-submit-timeout)$/,
53
43
  web: webPropLog,
54
44
  qa: qaPropLog,
55
45
  ios: iosPropLog,
56
46
  android: androidPropLog,
57
- harmony: harmonyPropLog,
58
- ks: ksPropLog
59
- }
60
- ],
61
- event: [
62
- {
63
- test: /^(submitToGroup)$/,
64
- ks: ksEventLog,
65
- ios: iosEventLog,
66
- android: androidEventLog,
67
- harmony: harmonyEventLog,
68
- web: webEventLog,
69
- ali: aliEventLog,
70
- qa: qaEventLog,
71
- qq: qqEventLog,
72
- jd: jdEventLog
47
+ harmony: harmonyPropLog
73
48
  }
74
49
  ]
75
50
  }
@@ -9,7 +9,6 @@ module.exports = function ({ print }) {
9
9
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
10
10
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
11
11
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
13
12
 
14
13
  return {
15
14
  test: TAG_NAME,
@@ -56,10 +55,6 @@ module.exports = function ({ print }) {
56
55
  ios: iosPropLog,
57
56
  android: androidPropLog,
58
57
  harmony: harmonyPropLog
59
- },
60
- {
61
- test: /^(webp|forceHttps|show-menu-by-longpress|fade-in)$/,
62
- ks: ksPropLog
63
58
  }
64
59
  ]
65
60
  }
@@ -12,8 +12,6 @@ module.exports = function ({ print }) {
12
12
  const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
13
13
  const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
14
14
  const webValueLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'value' })
15
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
16
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
17
15
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
18
16
  const iosValueLogError = print({ platform: 'ios', tag: TAG_NAME, isError: true, type: 'value' })
19
17
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
@@ -111,10 +109,6 @@ module.exports = function ({ print }) {
111
109
  ios: iosPropLog,
112
110
  android: androidPropLog,
113
111
  harmony: harmonyPropLog
114
- },
115
- {
116
- test: /^(cursor-spacing|always-embed|cursor|selection-start|selection-end|adjust-position|hold-keyboard|safe-password-cert-path|safe-password-length|safe-password-time-stamp|safe-password-nonce|safe-password-salt|safe-password-custom-hash|placeholder-class)$/,
117
- ks: ksPropLog
118
112
  }
119
113
  ],
120
114
  event: [
@@ -135,10 +129,6 @@ module.exports = function ({ print }) {
135
129
  ios: iosEventLog,
136
130
  android: androidEventLog,
137
131
  harmony: harmonyEventLog
138
- },
139
- {
140
- test: /^(change|nicknamereview|selectionchange|keyboardcompositionstart|keyboardcompositionupdate|keyboardcompositionend|onkeyboardheightchange)$/,
141
- ks: ksEventLog
142
132
  }
143
133
  ]
144
134
  }
@@ -1,8 +1,6 @@
1
1
  const TAG_NAME = 'label'
2
2
 
3
- module.exports = function ({ print }) {
4
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
5
-
3
+ module.exports = function () {
6
4
  return {
7
5
  test: TAG_NAME,
8
6
  ios (tag, { el }) {
@@ -16,12 +14,6 @@ module.exports = function ({ print }) {
16
14
  harmony (tag, { el }) {
17
15
  el.isBuiltIn = true
18
16
  return 'mpx-label'
19
- },
20
- props: [
21
- {
22
- test: /^(for)$/,
23
- ks: ksPropLog
24
- }
25
- ]
17
+ }
26
18
  }
27
19
  }
@@ -12,9 +12,6 @@ module.exports = function ({ print }) {
12
12
  const ttPropLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false })
13
13
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
14
14
  const qaEventLogError = print({ platform: 'qa', tag: TAG_NAME, isError: true, type: 'event' })
15
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
16
- const ksEventLogError = print({ platform: 'ks', tag: TAG_NAME, isError: true, type: 'event' })
17
-
18
15
  return {
19
16
  // 匹配标签名,可传递正则
20
17
  test: TAG_NAME,
@@ -58,10 +55,6 @@ module.exports = function ({ print }) {
58
55
  {
59
56
  test: /^(min-scale|max-scale|covers|polyline|include-points|show-location|subkey|layer-style|skew|enable-3D|show-compass|show-scale|enable-overlooking|enable-zoom|enable-scroll|enable-rotate|enable-satellite|enable-traffic|enable-poi|enable-building|setting)$/,
60
57
  qa: qaPropLog
61
- },
62
- {
63
- test: /^(min-scale|max-scale|covers|polyline|controls|include-points|show-location|polygons|subkey|layer-style|skew|enable-3D|show-compass|show-scale|enable-overlooking|enable-auto-max-overlooking|enable-zoom|enable-scroll|enable-rotate|enable-satellite|enable-traffic|enable-poi|enable-building|setting)$/,
64
- ks: ksPropLog
65
58
  }
66
59
  ],
67
60
  // 组件事件中的差异部分
@@ -100,10 +93,6 @@ module.exports = function ({ print }) {
100
93
  {
101
94
  test: /^(labeltap|anchorpointtap)$/,
102
95
  qa: qaEventLogError
103
- },
104
- {
105
- test: /^(updated|regionchange|poitap|polylinetap|abilitysuccess|abilityfail|authsuccess|interpolatepoint|error)$/,
106
- ks: ksEventLogError
107
96
  }
108
97
  ]
109
98
  }
@@ -4,8 +4,6 @@ module.exports = function ({ print }) {
4
4
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
5
5
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
6
6
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
7
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
8
-
9
7
  return {
10
8
  test: TAG_NAME,
11
9
  web (tag, { el }) {
@@ -29,8 +27,7 @@ module.exports = function ({ print }) {
29
27
  test: /^(scale-area)$/,
30
28
  ios: iosPropLog,
31
29
  android: androidPropLog,
32
- harmony: harmonyPropLog,
33
- ks: ksPropLog
30
+ harmony: harmonyPropLog
34
31
  }
35
32
  ]
36
33
  }
@@ -9,9 +9,6 @@ module.exports = function ({ print }) {
9
9
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
10
10
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
11
11
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
12
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
13
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
14
-
15
12
  return {
16
13
  test: TAG_NAME,
17
14
  web (tag, { el }) {
@@ -39,18 +36,7 @@ module.exports = function ({ print }) {
39
36
  harmony: harmonyPropLog
40
37
  },
41
38
  {
42
- test: /^(inertia)$/,
43
- ks: ksPropLog
44
- },
45
- {
46
- test: /^(damping|friction)$/,
47
- ios: iosPropLog,
48
- android: androidPropLog,
49
- harmony: harmonyPropLog,
50
- ks: ksPropLog
51
- },
52
- {
53
- test: /^(scale|scale-min|scale-max|scale-value)$/,
39
+ test: /^(damping|friction|scale|scale-min|scale-max|scale-value)$/,
54
40
  ios: iosPropLog,
55
41
  android: androidPropLog,
56
42
  harmony: harmonyPropLog
@@ -59,8 +45,7 @@ module.exports = function ({ print }) {
59
45
  event: [
60
46
  {
61
47
  test: /^(htouchmove|vtouchmove)$/,
62
- ali: aliEventLog,
63
- ks: ksEventLog
48
+ ali: aliEventLog
64
49
  },
65
50
  {
66
51
  test: /^(bindscale)$/,
@@ -22,16 +22,6 @@ module.exports = function ({ print }) {
22
22
  const qaEventLog = print({ platform: 'qa', tag: TAG_NAME, isError: false, type: 'event' })
23
23
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
24
24
  const qaValueLogError = print({ platform: 'qa', tag: TAG_NAME, isError: true, type: 'value' })
25
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
26
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
27
- const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
28
- const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
29
- const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
30
- const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
31
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
32
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
33
- const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
34
-
35
25
  return {
36
26
  test: TAG_NAME,
37
27
  web (tag, { el }) {
@@ -113,18 +103,6 @@ module.exports = function ({ print }) {
113
103
  {
114
104
  test: /^(target|app-id|path|extra-data|version)$/,
115
105
  web: webPropLog
116
- },
117
- {
118
- test: /^(short-link)$/,
119
- ks: ksPropLog,
120
- web: webPropLog,
121
- ios: iosPropLog,
122
- android: androidPropLog,
123
- harmony: harmonyPropLog,
124
- jd: jdPropLog,
125
- ali: aliPropLog,
126
- tt: ttPropLog,
127
- qa: qaPropLog
128
106
  }
129
107
  ],
130
108
  event: [
@@ -134,10 +112,6 @@ module.exports = function ({ print }) {
134
112
  tt: ttEventLog,
135
113
  web: webEventLog,
136
114
  qa: qaEventLog,
137
- ks: ksEventLog,
138
- ios: iosEventLog,
139
- android: androidEventLog,
140
- harmony: harmonyEventLog,
141
115
  jd (eventName) {
142
116
  const eventMap = {
143
117
  success: 'success',
@@ -9,8 +9,6 @@ module.exports = function ({ print }) {
9
9
  const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
10
10
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
11
11
  const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
12
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
13
- const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
14
12
 
15
13
  return {
16
14
  test: TAG_NAME,
@@ -46,16 +44,6 @@ module.exports = function ({ print }) {
46
44
  ios: iosEventLog,
47
45
  android: androidEventLog,
48
46
  harmony: harmonyEventLog
49
- },
50
- {
51
- test: /^(immediate-change)$/,
52
- swan: baiduEventLog,
53
- ks: ksEventLog,
54
- ios: iosEventLog,
55
- android: androidEventLog,
56
- harmony: harmonyEventLog,
57
- web: webEventLog,
58
- jd: jdEventLog
59
47
  }
60
48
  ]
61
49
  }
@@ -11,7 +11,6 @@ module.exports = function ({ print }) {
11
11
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
12
12
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
13
13
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
14
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
15
14
 
16
15
  return {
17
16
  test: TAG_NAME,
@@ -50,8 +49,7 @@ module.exports = function ({ print }) {
50
49
  qa: qaPropLog,
51
50
  ios: iosPropLog,
52
51
  android: androidPropLog,
53
- harmony: harmonyPropLog,
54
- ks: ksPropLog
52
+ harmony: harmonyPropLog
55
53
  }
56
54
  ],
57
55
  event: [
@@ -10,7 +10,6 @@ module.exports = function ({ print }) {
10
10
  const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
11
11
  const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
12
12
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
13
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
14
13
 
15
14
  return {
16
15
  test: TAG_NAME,
@@ -56,14 +55,6 @@ module.exports = function ({ print }) {
56
55
  }
57
56
  obj.name = propsMap[obj.name]
58
57
  return obj
59
- },
60
- ks (obj) {
61
- const propsMap = {
62
- activeColor: 'active-color',
63
- backgroundColor: 'background-color'
64
- }
65
- obj.name = propsMap[obj.name]
66
- return obj
67
58
  }
68
59
  },
69
60
  {
@@ -85,8 +76,7 @@ module.exports = function ({ print }) {
85
76
  ali: aliEventLog,
86
77
  swan: baiduEventLog,
87
78
  tt: ttEventLog,
88
- jd: jdEventLog,
89
- ks: ksEventLog
79
+ jd: jdEventLog
90
80
  }
91
81
  ]
92
82
  }
@@ -5,7 +5,6 @@ module.exports = function ({ print }) {
5
5
  const baiduPropLog = print({ platform: 'baidu', tag: TAG_NAME, isError: false })
6
6
  const ttPropLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false })
7
7
  const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
8
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
9
8
 
10
9
  return {
11
10
  test: TAG_NAME,
@@ -36,10 +35,6 @@ module.exports = function ({ print }) {
36
35
  {
37
36
  test: /^(nodes)$/,
38
37
  jd: jdPropLog
39
- },
40
- {
41
- test: /^(user-select)$/,
42
- ks: ksPropLog
43
38
  }
44
39
  ]
45
40
  }
@@ -18,8 +18,6 @@ module.exports = function ({ print }) {
18
18
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
19
19
  const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
20
20
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
21
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
22
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
23
21
 
24
22
  return {
25
23
  test: TAG_NAME,
@@ -69,10 +67,6 @@ module.exports = function ({ print }) {
69
67
  {
70
68
  test: /^(refresher-default-style|refresher-background)$/,
71
69
  ios: iosPropLog
72
- },
73
- {
74
- test: /^(scroll-into-view-offset|enable-back-to-top|enable-passive|refresher-enabled|refresher-threshold|refresher-default-style|refresher-background|refresher-triggered|bounces|fast-deceleration|enable-flex|enhanced|paging-enabled|using-sticky|type|associative-container|reverse|clip|enable-back-to-top|cache-extent|min-drag-distance|scroll-into-view-within-extent|scroll-into-view-alignment|padding|refresher-two-level-enabled|refresher-two-level-triggered|refresher-two-level-threshold|refresher-two-level-close-threshold|refresher-two-level-close-threshold|refresher-two-level-scroll-enabled|refresher-ballistic-refresh-enabled|refresher-two-level-pinned|scroll-anchoring)$/,
75
- ks: ksPropLog
76
70
  }
77
71
  ],
78
72
  event: [
@@ -96,18 +90,13 @@ module.exports = function ({ print }) {
96
90
  ali: aliEventLog,
97
91
  tt: ttEventLog,
98
92
  qq: qqEventLog,
99
- swan: baiduEventLog,
100
- ks: ksEventLog
93
+ swan: baiduEventLog
101
94
  },
102
95
  {
103
96
  test: /^(refresherpulling|refresherrestore|refresherabort)$/,
104
97
  android: androidEventLog,
105
98
  ios: iosEventLog,
106
99
  harmony: harmonyEventLog
107
- },
108
- {
109
- test: /^(scrollstart|scrollend|refresherwillrefresh|refresherstatuschange)$/,
110
- ks: ksEventLog
111
100
  }
112
101
  ]
113
102
  }
@@ -60,14 +60,6 @@ module.exports = function ({ print }) {
60
60
  }
61
61
  obj.name = propsMap[obj.name]
62
62
  return obj
63
- },
64
- ks (obj) {
65
- const propsMap = {
66
- activeColor: 'active-color',
67
- backgroundColor: 'background-color'
68
- }
69
- obj.name = propsMap[obj.name]
70
- return obj
71
63
  }
72
64
  }
73
65
  ]
@@ -9,7 +9,6 @@ module.exports = function ({ print }) {
9
9
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
10
10
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
11
11
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
13
12
 
14
13
  return {
15
14
  test: TAG_NAME,
@@ -35,8 +34,7 @@ module.exports = function ({ print }) {
35
34
  ali: aliPropLog,
36
35
  ios: iosPropLog,
37
36
  android: androidPropLog,
38
- harmony: harmonyPropLog,
39
- ks: ksPropLog
37
+ harmony: harmonyPropLog
40
38
  },
41
39
  {
42
40
  test: /^(skip-hidden-item-layout)$/,
@@ -44,8 +42,7 @@ module.exports = function ({ print }) {
44
42
  ali: aliPropLog,
45
43
  tt: ttPropLog,
46
44
  swan: baiduPropLog,
47
- qq: qqPropLog,
48
- ks: ksPropLog
45
+ qq: qqPropLog
49
46
  }
50
47
  ]
51
48
  }
@@ -7,7 +7,6 @@ module.exports = function ({ print }) {
7
7
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
8
8
  const ttPropLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false })
9
9
  const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
10
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
11
10
  const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
12
11
  const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
13
12
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
@@ -17,7 +16,6 @@ module.exports = function ({ print }) {
17
16
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
18
17
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
19
18
  const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
20
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
21
19
 
22
20
  return {
23
21
  test: TAG_NAME,
@@ -71,10 +69,6 @@ module.exports = function ({ print }) {
71
69
  ios: iosPropLog,
72
70
  android: androidPropLog,
73
71
  harmony: harmonyPropLog
74
- },
75
- {
76
- test: /^(snap-to-edge|previous-margin|next-margin|display-multiple-items|direction|layout-type|transformer-type|indicator-type|indicator-margin|indicator-spacing|indicator-radius|indicator-width|indicator-height|indicator-alignment|indicator-offset|scroll-with-animation|cache-extent)$/,
77
- ks: ksPropLog
78
72
  }
79
73
  ],
80
74
  event: [
@@ -101,10 +95,6 @@ module.exports = function ({ print }) {
101
95
  ios: iosEventLog,
102
96
  android: androidEventLog,
103
97
  harmony: harmonyEventLog
104
- },
105
- {
106
- test: /^(onscrollstart|onscrollupdate|onscrollend)$/,
107
- ks: ksEventLog
108
98
  }
109
99
  ]
110
100
  }
@@ -9,7 +9,6 @@ module.exports = function ({ print }) {
9
9
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
10
10
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
11
11
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
13
12
 
14
13
  return {
15
14
  test: TAG_NAME,
@@ -75,10 +74,6 @@ module.exports = function ({ print }) {
75
74
  el.isSimple = true
76
75
  return false
77
76
  }
78
- },
79
- {
80
- test: /^(user-select|overflow|max-lines|decode)$/,
81
- ks: ksPropLog
82
77
  }
83
78
  ]
84
79
  }