@mpxjs/webpack-plugin 2.10.16-beta.7 → 2.10.17-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 (58) hide show
  1. package/lib/config.js +0 -60
  2. package/lib/file-loader.js +3 -13
  3. package/lib/json-compiler/index.js +2 -2
  4. package/lib/platform/json/wx/index.js +0 -6
  5. package/lib/platform/template/wx/component-config/ad.js +0 -5
  6. package/lib/platform/template/wx/component-config/button.js +2 -9
  7. package/lib/platform/template/wx/component-config/camera.js +3 -25
  8. package/lib/platform/template/wx/component-config/canvas.js +1 -8
  9. package/lib/platform/template/wx/component-config/cover-image.js +2 -7
  10. package/lib/platform/template/wx/component-config/cover-view.js +1 -3
  11. package/lib/platform/template/wx/component-config/form.js +2 -27
  12. package/lib/platform/template/wx/component-config/image.js +0 -5
  13. package/lib/platform/template/wx/component-config/input.js +0 -10
  14. package/lib/platform/template/wx/component-config/label.js +2 -10
  15. package/lib/platform/template/wx/component-config/map.js +0 -11
  16. package/lib/platform/template/wx/component-config/movable-area.js +1 -4
  17. package/lib/platform/template/wx/component-config/movable-view.js +2 -17
  18. package/lib/platform/template/wx/component-config/navigator.js +0 -26
  19. package/lib/platform/template/wx/component-config/picker-view.js +0 -12
  20. package/lib/platform/template/wx/component-config/picker.js +1 -3
  21. package/lib/platform/template/wx/component-config/progress.js +1 -11
  22. package/lib/platform/template/wx/component-config/rich-text.js +0 -5
  23. package/lib/platform/template/wx/component-config/scroll-view.js +1 -12
  24. package/lib/platform/template/wx/component-config/slider.js +0 -8
  25. package/lib/platform/template/wx/component-config/swiper-item.js +2 -5
  26. package/lib/platform/template/wx/component-config/swiper.js +0 -10
  27. package/lib/platform/template/wx/component-config/text.js +0 -5
  28. package/lib/platform/template/wx/component-config/textarea.js +2 -19
  29. package/lib/platform/template/wx/component-config/unsupported.js +1 -10
  30. package/lib/platform/template/wx/component-config/video.js +0 -10
  31. package/lib/platform/template/wx/index.js +1 -21
  32. package/lib/runtime/components/react/dist/mpx-canvas/index.jsx +1 -1
  33. package/lib/runtime/components/react/dist/mpx-image.d.ts.map +1 -1
  34. package/lib/runtime/components/react/dist/mpx-image.jsx +26 -20
  35. package/lib/runtime/components/react/dist/mpx-input.d.ts.map +1 -1
  36. package/lib/runtime/components/react/dist/mpx-input.jsx +1 -3
  37. package/lib/runtime/components/react/dist/mpx-rich-text/index.jsx +1 -1
  38. package/lib/runtime/components/react/dist/mpx-web-view.d.ts.map +1 -1
  39. package/lib/runtime/components/react/dist/mpx-web-view.jsx +11 -3
  40. package/lib/runtime/components/react/mpx-canvas/index.tsx +1 -1
  41. package/lib/runtime/components/react/mpx-image.tsx +41 -35
  42. package/lib/runtime/components/react/mpx-input.tsx +1 -3
  43. package/lib/runtime/components/react/mpx-rich-text/index.tsx +1 -1
  44. package/lib/runtime/components/react/mpx-web-view.tsx +14 -5
  45. package/lib/runtime/stringify.wxs +2 -2
  46. package/lib/style-compiler/strip-conditional-loader.js +142 -90
  47. package/lib/template-compiler/bind-this.js +2 -2
  48. package/lib/template-compiler/compiler.js +3 -4
  49. package/lib/template-compiler/index.js +6 -6
  50. package/lib/utils/dom-tag-config.js +1 -1
  51. package/lib/utils/merge-visitors.js +55 -0
  52. package/lib/wxs/pre-loader.js +8 -5
  53. package/package.json +3 -12
  54. package/lib/runtime/components/react/dist/mpx-camera.d.ts +0 -28
  55. package/lib/runtime/components/react/dist/mpx-camera.d.ts.map +0 -1
  56. package/lib/runtime/components/react/dist/mpx-camera.jsx +0 -102
  57. package/lib/runtime/components/react/mpx-camera.tsx +0 -167
  58. package/lib/utils/chain-assign.js +0 -47
package/lib/config.js CHANGED
@@ -553,66 +553,6 @@ module.exports = {
553
553
  show: 'dd:show'
554
554
  }
555
555
  },
556
- ks: {
557
- typeExtMap: {
558
- json: '.json',
559
- script: '.js',
560
- template: '.ksml',
561
- styles: '.css'
562
- },
563
- tabBar: {
564
- itemKey: 'list',
565
- iconKey: 'iconPath',
566
- activeIconKey: 'selectedIconPath'
567
- },
568
- event: {
569
- parseEvent (attr) {
570
- const match = /^(bind|catch|capture-bind|capture-catch):?(.*?)(?:\.(.*))?$/.exec(attr)
571
- if (match) {
572
- return {
573
- prefix: match[1],
574
- eventName: match[2],
575
- modifier: match[3]
576
- }
577
- }
578
- },
579
- getEvent (eventName, prefix = 'bind') {
580
- if (eventName.includes('-')) {
581
- return `${prefix}:${eventName}`
582
- } else {
583
- return prefix + eventName
584
- }
585
- },
586
- defaultModelProp: 'value',
587
- defaultModelEvent: 'input',
588
- defaultModelValuePath: 'value'
589
- },
590
- wxs: {
591
- tag: 'ks',
592
- module: 'module',
593
- src: 'src',
594
- ext: '.ks',
595
- templatePrefix: 'module.exports = \n'
596
- },
597
- directive: {
598
- if: 'ks:if',
599
- elseif: 'ks:elif',
600
- else: 'ks:else',
601
- for: 'ks:for',
602
- forIndex: 'ks:for-index',
603
- forItem: 'ks:for-item',
604
- key: 'ks:key',
605
- dynamicClass: 'ks:class',
606
- dynamicStyle: 'ks:style',
607
- ref: 'ks:ref',
608
- show: 'ks:show',
609
- model: 'ks:model',
610
- modelProp: 'ks:model-prop',
611
- modelEvent: 'ks:model-event',
612
- modelValuePath: 'ks:model-value-path',
613
- modelFilter: 'ks:model-filter'
614
- }
615
- },
616
556
  ios: reactConfig,
617
557
  android: reactConfig,
618
558
  harmony: reactConfig
@@ -8,9 +8,7 @@ module.exports = function loader (content, prevOptions) {
8
8
  const options = prevOptions || loaderUtils.getOptions(this) || {}
9
9
  const context = options.context || this.rootContext
10
10
  const mpx = this.getMpx()
11
-
12
- const { mode } = mpx
13
- const isRN = ['ios', 'android', 'harmony'].includes(mode)
11
+ const isRN = ['ios', 'android', 'harmony'].includes(mpx.mode)
14
12
 
15
13
  let url = loaderUtils.interpolateName(this, options.name, {
16
14
  context,
@@ -19,7 +17,6 @@ module.exports = function loader (content, prevOptions) {
19
17
  })
20
18
 
21
19
  let outputPath = url
22
- const { resourcePath, queryObj } = parseRequest(this.resource)
23
20
 
24
21
  if (options.publicPath) {
25
22
  if (options.outputPathCDN) {
@@ -30,19 +27,13 @@ module.exports = function loader (content, prevOptions) {
30
27
  }
31
28
  }
32
29
  } else {
30
+ const { resourcePath, queryObj } = parseRequest(this.resource)
33
31
  const packageRoot = queryObj.packageRoot || ''
34
32
  url = outputPath = toPosix(path.join(packageRoot, outputPath))
35
33
  this._module.addPresentationalDependency(new RecordResourceMapDependency(resourcePath, 'staticResource', outputPath, packageRoot))
36
34
  }
37
35
 
38
- let publicPath
39
-
40
- // 快手小程序 tabbar icon 资源路径不能以 / 开头
41
- if (queryObj.from === 'tabbar' && mode === 'ks') {
42
- publicPath = JSON.stringify(url)
43
- } else {
44
- publicPath = `__webpack_public_path__ + ${JSON.stringify(url)}`
45
- }
36
+ let publicPath = `__webpack_public_path__ + ${JSON.stringify(url)}`
46
37
 
47
38
  if (isRN) {
48
39
  publicPath = `__mpx_require_external__(${JSON.stringify(url)})`
@@ -56,7 +47,6 @@ module.exports = function loader (content, prevOptions) {
56
47
  ? options.publicPath
57
48
  : `${options.publicPath}/`}${url}`
58
49
  }
59
-
60
50
  publicPath = JSON.stringify(publicPath)
61
51
  }
62
52
 
@@ -481,10 +481,10 @@ module.exports = function (content) {
481
481
  if (json.tabBar && json.tabBar[itemKey]) {
482
482
  json.tabBar[itemKey].forEach((item, index) => {
483
483
  if (item[iconKey] && isUrlRequest(item[iconKey])) {
484
- output += `json.tabBar.${itemKey}[${index}].${iconKey} = require("${addQuery(urlToRequest(item[iconKey]), { useLocal: true, from: 'tabbar' })}");\n`
484
+ output += `json.tabBar.${itemKey}[${index}].${iconKey} = require("${addQuery(urlToRequest(item[iconKey]), { useLocal: true })}");\n`
485
485
  }
486
486
  if (item[activeIconKey] && isUrlRequest(item[activeIconKey])) {
487
- output += `json.tabBar.${itemKey}[${index}].${activeIconKey} = require("${addQuery(urlToRequest(item[activeIconKey]), { useLocal: true, from: 'tabbar' })}");\n`
487
+ output += `json.tabBar.${itemKey}[${index}].${activeIconKey} = require("${addQuery(urlToRequest(item[activeIconKey]), { useLocal: true })}");\n`
488
488
  }
489
489
  })
490
490
  }
@@ -179,7 +179,6 @@ module.exports = function getSpec ({ warn, error }) {
179
179
  swan: addGlobalComponents,
180
180
  qq: addGlobalComponents,
181
181
  tt: addGlobalComponents,
182
- ks: addGlobalComponents,
183
182
  jd: addGlobalComponents,
184
183
  web: fixComponentName,
185
184
  ios: fixComponentName,
@@ -285,7 +284,6 @@ module.exports = function getSpec ({ warn, error }) {
285
284
  'swan',
286
285
  'qq',
287
286
  'tt',
288
- 'ks',
289
287
  'jd',
290
288
  'qa',
291
289
  'dd',
@@ -403,7 +401,6 @@ module.exports = function getSpec ({ warn, error }) {
403
401
  qq: fillGlobalComponents,
404
402
  swan: fillGlobalComponents,
405
403
  tt: fillGlobalComponents,
406
- ks: fillGlobalComponents,
407
404
  jd: fillGlobalComponents
408
405
  },
409
406
  {
@@ -411,7 +408,6 @@ module.exports = function getSpec ({ warn, error }) {
411
408
  qq: deletePath({ noLog: true }),
412
409
  swan: deletePath({ noLog: true }),
413
410
  tt: deletePath({ noLog: true }),
414
- ks: deletePath({ noLog: true }),
415
411
  jd: deletePath({ noLog: true })
416
412
  },
417
413
  {
@@ -450,7 +446,6 @@ module.exports = function getSpec ({ warn, error }) {
450
446
  qq: getTabBarRule(),
451
447
  swan: getTabBarRule(),
452
448
  tt: getTabBarRule(),
453
- ks: getTabBarRule(),
454
449
  jd: getTabBarRule()
455
450
  },
456
451
  {
@@ -459,7 +454,6 @@ module.exports = function getSpec ({ warn, error }) {
459
454
  qq: getWindowRule(),
460
455
  swan: getWindowRule(),
461
456
  tt: getWindowRule(),
462
- ks: getWindowRule(),
463
457
  jd: getWindowRule()
464
458
  }
465
459
  ]
@@ -8,7 +8,6 @@ module.exports = function ({ print }) {
8
8
  const qqValueWarningLog = print({ platform: 'qq', type: 'value', tag: TAG_NAME, isError: false })
9
9
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
10
10
  const qqEventLog = print({ platform: 'qq', tag: TAG_NAME, isError: false, type: 'event' })
11
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
12
11
  return {
13
12
  test: TAG_NAME,
14
13
  props: [
@@ -44,10 +43,6 @@ module.exports = function ({ print }) {
44
43
  test: /^(ad-intervals|ad-theme)$/,
45
44
  qq: qqPropLog,
46
45
  swan: baiduPropLog
47
- },
48
- {
49
- test: /^(ad-intervals|ad-type|ad-params)$/,
50
- ks: ksPropLog
51
46
  }
52
47
  ],
53
48
  event: [
@@ -29,8 +29,6 @@ module.exports = function ({ print }) {
29
29
  const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
30
30
  const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
31
31
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
32
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
33
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
34
32
  const wxPropValueLog = print({ platform: 'wx', tag: TAG_NAME, isError: false, type: 'value' })
35
33
  const iosValueLogError = print({ platform: 'ios', tag: TAG_NAME, isError: true, type: 'value' })
36
34
  const iosValueLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'value' })
@@ -201,10 +199,6 @@ module.exports = function ({ print }) {
201
199
  ios: iosPropLog,
202
200
  android: androidPropLog,
203
201
  harmony: harmonyPropLog
204
- },
205
- {
206
- test: /^(hover-stop-propagation|session-from|send-message-title|send-message-path|send-message-img|app-parameter|show-message-card|app-parameter|phone-number-no-quota-toast|need-show-entrance|entrance-path)$/,
207
- ks: ksPropLog
208
202
  }
209
203
  ],
210
204
  event: [
@@ -239,11 +233,10 @@ module.exports = function ({ print }) {
239
233
  web: webEventLog
240
234
  },
241
235
  {
242
- test: /^(getuserinfo|contact|getphonenumber|getrealtimephonenumber|error|opensetting|launchapp|chooseavatar|agreeprivacyauthorization)$/,
236
+ test: /^(getuserinfo|contact|getphonenumber|bindgetrealtimephonenumber|error|opensetting|launchapp|chooseavatar|agreeprivacyauthorization)$/,
243
237
  ios: iosEventLog,
244
238
  android: androidEventLog,
245
- harmony: harmonyEventLog,
246
- ks: ksEventLog
239
+ harmony: harmonyEventLog
247
240
  }
248
241
  ]
249
242
  }
@@ -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: [