@mpxjs/webpack-plugin 2.10.16-beta.9 → 2.10.16-xp.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.
- package/lib/config.js +0 -60
- package/lib/dependencies/AppEntryDependency.js +2 -2
- package/lib/dependencies/ResolveDependency.js +1 -1
- package/lib/file-loader.js +3 -13
- package/lib/helpers.js +0 -2
- package/lib/index.js +15 -40
- package/lib/json-compiler/helper.js +2 -72
- package/lib/json-compiler/index.js +56 -16
- package/lib/json-compiler/plugin.js +2 -2
- package/lib/loader.js +4 -10
- package/lib/native-loader.js +3 -6
- package/lib/platform/json/wx/index.js +29 -30
- package/lib/platform/style/wx/index.js +1 -8
- package/lib/platform/template/wx/component-config/ad.js +0 -5
- package/lib/platform/template/wx/component-config/button.js +5 -21
- package/lib/platform/template/wx/component-config/camera.js +3 -25
- package/lib/platform/template/wx/component-config/canvas.js +1 -8
- package/lib/platform/template/wx/component-config/component.js +33 -31
- package/lib/platform/template/wx/component-config/cover-image.js +2 -7
- package/lib/platform/template/wx/component-config/cover-view.js +1 -3
- package/lib/platform/template/wx/component-config/fix-component-name.js +2 -2
- package/lib/platform/template/wx/component-config/form.js +2 -27
- package/lib/platform/template/wx/component-config/image.js +0 -5
- package/lib/platform/template/wx/component-config/input.js +0 -10
- package/lib/platform/template/wx/component-config/label.js +2 -10
- package/lib/platform/template/wx/component-config/map.js +0 -11
- package/lib/platform/template/wx/component-config/movable-area.js +1 -4
- package/lib/platform/template/wx/component-config/movable-view.js +2 -17
- package/lib/platform/template/wx/component-config/navigator.js +0 -26
- package/lib/platform/template/wx/component-config/picker-view.js +0 -12
- package/lib/platform/template/wx/component-config/picker.js +1 -3
- package/lib/platform/template/wx/component-config/progress.js +1 -11
- package/lib/platform/template/wx/component-config/rich-text.js +0 -5
- package/lib/platform/template/wx/component-config/scroll-view.js +1 -12
- package/lib/platform/template/wx/component-config/slider.js +0 -8
- package/lib/platform/template/wx/component-config/swiper-item.js +2 -5
- package/lib/platform/template/wx/component-config/swiper.js +0 -10
- package/lib/platform/template/wx/component-config/text.js +0 -5
- package/lib/platform/template/wx/component-config/textarea.js +2 -19
- package/lib/platform/template/wx/component-config/unsupported.js +1 -10
- package/lib/platform/template/wx/component-config/video.js +0 -10
- package/lib/platform/template/wx/index.js +1 -21
- package/lib/react/index.js +0 -2
- package/lib/react/processJSON.js +71 -39
- package/lib/react/processStyles.js +2 -3
- package/lib/react/processTemplate.js +6 -8
- package/lib/react/script-helper.js +16 -6
- package/lib/react/style-helper.js +2 -10
- package/lib/runtime/components/react/context.ts +6 -13
- package/lib/runtime/components/react/dist/context.js +0 -1
- package/lib/runtime/components/react/dist/mpx-image.jsx +62 -100
- package/lib/runtime/components/react/dist/mpx-input.jsx +11 -37
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.jsx +50 -61
- package/lib/runtime/components/react/dist/mpx-picker-view/index.jsx +3 -4
- package/lib/runtime/components/react/dist/mpx-picker-view-column/index.jsx +18 -12
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.jsx +11 -8
- package/lib/runtime/components/react/dist/mpx-portal/index.jsx +1 -5
- package/lib/runtime/components/react/dist/mpx-scroll-view.jsx +14 -6
- package/lib/runtime/components/react/dist/mpx-swiper.jsx +9 -5
- package/lib/runtime/components/react/dist/mpx-text.jsx +5 -33
- package/lib/runtime/components/react/dist/mpx-view.jsx +1 -1
- package/lib/runtime/components/react/dist/mpx-web-view.jsx +1 -1
- package/lib/runtime/components/react/dist/utils.jsx +6 -16
- package/lib/runtime/components/react/mpx-image.tsx +82 -123
- package/lib/runtime/components/react/mpx-input.tsx +17 -44
- package/lib/runtime/components/react/mpx-keyboard-avoiding-view.tsx +49 -69
- package/lib/runtime/components/react/mpx-picker-view/index.tsx +2 -5
- package/lib/runtime/components/react/mpx-picker-view-column/index.tsx +21 -26
- package/lib/runtime/components/react/mpx-picker-view-column/pickerViewColumnItem.tsx +12 -8
- package/lib/runtime/components/react/mpx-portal/index.tsx +2 -8
- package/lib/runtime/components/react/mpx-scroll-view.tsx +17 -6
- package/lib/runtime/components/react/mpx-swiper.tsx +9 -5
- package/lib/runtime/components/react/mpx-text.tsx +5 -38
- package/lib/runtime/components/react/mpx-view.tsx +1 -1
- package/lib/runtime/components/react/mpx-web-view.tsx +1 -1
- package/lib/runtime/components/react/types/common.d.ts +0 -19
- package/lib/runtime/components/react/utils.tsx +6 -15
- package/lib/runtime/stringify.wxs +2 -2
- package/lib/script-setup-compiler/index.js +2 -2
- package/lib/style-compiler/index.js +2 -3
- package/lib/style-compiler/load-postcss-config.js +1 -1
- package/lib/style-compiler/plugins/trans-special.js +2 -10
- package/lib/style-compiler/strip-conditional-loader.js +15 -178
- package/lib/template-compiler/bind-this.js +2 -2
- package/lib/template-compiler/compiler.js +71 -267
- package/lib/template-compiler/gen-node-react.js +6 -18
- package/lib/template-compiler/index.js +10 -12
- package/lib/template-compiler/parse-exps.js +1 -1
- package/lib/utils/const.js +1 -2
- package/lib/utils/dom-tag-config.js +6 -6
- package/lib/utils/env.js +1 -6
- package/lib/utils/pre-process-json.js +0 -5
- package/lib/web/index.js +0 -2
- package/lib/web/processJSON.js +16 -44
- package/lib/web/processScript.js +1 -1
- package/lib/web/processTemplate.js +4 -6
- package/lib/web/script-helper.js +9 -19
- package/lib/wxs/pre-loader.js +1 -1
- package/lib/wxss/loader.js +9 -1
- package/package.json +4 -15
- package/lib/dependencies/RecordModuleIdMapDependency.js +0 -49
- package/lib/runtime/components/react/dist/context.d.ts +0 -76
- package/lib/runtime/components/react/dist/context.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/event.config.d.ts +0 -8
- package/lib/runtime/components/react/dist/event.config.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/getInnerListeners.d.ts +0 -8
- package/lib/runtime/components/react/dist/getInnerListeners.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts +0 -13
- package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-button.d.ts +0 -69
- package/lib/runtime/components/react/dist/mpx-button.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-camera.d.ts +0 -27
- package/lib/runtime/components/react/dist/mpx-camera.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-camera.jsx +0 -197
- package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts +0 -24
- package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts +0 -8
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts +0 -7
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts +0 -21
- package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts +0 -9
- package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts +0 -11
- package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts +0 -3
- package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts +0 -33
- package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts +0 -53
- package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts +0 -21
- package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-checkbox.d.ts +0 -33
- package/lib/runtime/components/react/dist/mpx-checkbox.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-form.d.ts +0 -28
- package/lib/runtime/components/react/dist/mpx-form.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-icon/index.d.ts +0 -19
- package/lib/runtime/components/react/dist/mpx-icon/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-image.d.ts +0 -22
- package/lib/runtime/components/react/dist/mpx-image.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-inline-text.d.ts +0 -8
- package/lib/runtime/components/react/dist/mpx-inline-text.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-input.d.ts +0 -51
- package/lib/runtime/components/react/dist/mpx-input.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts +0 -13
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-label.d.ts +0 -21
- package/lib/runtime/components/react/dist/mpx-label.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-movable-area.d.ts +0 -21
- package/lib/runtime/components/react/dist/mpx-movable-area.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-movable-view.d.ts +0 -66
- package/lib/runtime/components/react/dist/mpx-movable-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-nav.d.ts +0 -9
- package/lib/runtime/components/react/dist/mpx-nav.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-nav.jsx +0 -132
- package/lib/runtime/components/react/dist/mpx-navigator.d.ts +0 -10
- package/lib/runtime/components/react/dist/mpx-navigator.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/date.d.ts +0 -7
- package/lib/runtime/components/react/dist/mpx-picker/date.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts +0 -8
- package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/index.d.ts +0 -7
- package/lib/runtime/components/react/dist/mpx-picker/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts +0 -7
- package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/region.d.ts +0 -7
- package/lib/runtime/components/react/dist/mpx-picker/region.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts +0 -3
- package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts +0 -7
- package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/time.d.ts +0 -7
- package/lib/runtime/components/react/dist/mpx-picker/time.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/type.d.ts +0 -107
- package/lib/runtime/components/react/dist/mpx-picker/type.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts +0 -33
- package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts +0 -9
- package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts +0 -24
- package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts +0 -15
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts +0 -14
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.jsx +0 -20
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts +0 -17
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts +0 -13
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts +0 -12
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-popup/index.d.ts +0 -23
- package/lib/runtime/components/react/dist/mpx-popup/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts +0 -17
- package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/index.d.ts +0 -16
- package/lib/runtime/components/react/dist/mpx-portal/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts +0 -30
- package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts +0 -10
- package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-progress.d.ts +0 -24
- package/lib/runtime/components/react/dist/mpx-progress.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-radio-group.d.ts +0 -21
- package/lib/runtime/components/react/dist/mpx-radio-group.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-radio.d.ts +0 -27
- package/lib/runtime/components/react/dist/mpx-radio.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts +0 -2
- package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts +0 -25
- package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-root-portal.d.ts +0 -15
- package/lib/runtime/components/react/dist/mpx-root-portal.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts +0 -55
- package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-simple-text.d.ts +0 -8
- package/lib/runtime/components/react/dist/mpx-simple-text.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-simple-view.d.ts +0 -8
- package/lib/runtime/components/react/dist/mpx-simple-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-slider.d.ts +0 -31
- package/lib/runtime/components/react/dist/mpx-slider.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts +0 -18
- package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts +0 -16
- package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts +0 -19
- package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-swiper.d.ts +0 -53
- package/lib/runtime/components/react/dist/mpx-swiper.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-switch.d.ts +0 -27
- package/lib/runtime/components/react/dist/mpx-switch.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-text.d.ts +0 -23
- package/lib/runtime/components/react/dist/mpx-text.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-textarea.d.ts +0 -8
- package/lib/runtime/components/react/dist/mpx-textarea.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-video.d.ts +0 -102
- package/lib/runtime/components/react/dist/mpx-video.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-view.d.ts +0 -35
- package/lib/runtime/components/react/dist/mpx-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-web-view.d.ts +0 -23
- package/lib/runtime/components/react/dist/mpx-web-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/parser.d.ts +0 -40
- package/lib/runtime/components/react/dist/parser.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/useAnimationHooks.d.ts +0 -33
- package/lib/runtime/components/react/dist/useAnimationHooks.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/useNodesRef.d.ts +0 -12
- package/lib/runtime/components/react/dist/useNodesRef.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/utils.d.ts +0 -123
- package/lib/runtime/components/react/dist/utils.d.ts.map +0 -1
- package/lib/runtime/components/react/mpx-camera.tsx +0 -275
- package/lib/runtime/components/react/mpx-nav.tsx +0 -155
- package/lib/runtime/components/react/mpx-picker-view-column/pickerViewColumnItemLite.tsx +0 -55
- package/lib/utils/get-build-tag-component.js +0 -35
|
@@ -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: /^(
|
|
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
|
}
|
|
@@ -23,8 +23,6 @@ module.exports = function ({ print }) {
|
|
|
23
23
|
const harmonyValueLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: true, type: 'value' })
|
|
24
24
|
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
25
25
|
const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
|
|
26
|
-
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
27
|
-
const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
28
26
|
|
|
29
27
|
return {
|
|
30
28
|
test: TAG_NAME,
|
|
@@ -97,17 +95,12 @@ module.exports = function ({ print }) {
|
|
|
97
95
|
ios: iosPropLog,
|
|
98
96
|
android: androidPropLog,
|
|
99
97
|
harmony: harmonyPropLog
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
test: /^(cursor-spacing|cursor|selection-start|selection-end|adjust-position|hold-keyboard|disable-default-padding|confirm-hold|adjust-keyboard-to|placeholder-class|show-confirm-bar)$/,
|
|
103
|
-
ks: ksPropLog
|
|
104
98
|
}
|
|
105
99
|
],
|
|
106
100
|
event: [
|
|
107
101
|
{
|
|
108
102
|
test: /^(confirm|linechange)$/,
|
|
109
|
-
web: webEventLog
|
|
110
|
-
ks: ksEventLog
|
|
103
|
+
web: webEventLog
|
|
111
104
|
},
|
|
112
105
|
{
|
|
113
106
|
test: /^keyboardheightchange$/,
|
|
@@ -131,17 +124,7 @@ module.exports = function ({ print }) {
|
|
|
131
124
|
test: /^keyboard.+$/,
|
|
132
125
|
ios: iosEventLog,
|
|
133
126
|
android: androidEventLog,
|
|
134
|
-
harmony: harmonyEventLog
|
|
135
|
-
ks: ksEventLog
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
test: /^(selectionchange)$/,
|
|
139
|
-
ks: ksEventLog,
|
|
140
|
-
ali: aliEventLog,
|
|
141
|
-
jd: jdEventLog,
|
|
142
|
-
qq: qqEventLog,
|
|
143
|
-
tt: ttEventLog,
|
|
144
|
-
web: webEventLog
|
|
127
|
+
harmony: harmonyEventLog
|
|
145
128
|
}
|
|
146
129
|
]
|
|
147
130
|
}
|
|
@@ -6,14 +6,12 @@ const BAIDU_UNSUPPORTED_TAG_NAME_ARR = ['functional-page-navigator', 'live-pushe
|
|
|
6
6
|
const QQ_UNSUPPORTED_TAG_NAME_ARR = ['functional-page-navigator', 'official-account', 'editor']
|
|
7
7
|
// 头条小程序不支持的标签集合
|
|
8
8
|
const TT_UNSUPPORTED_TAG_NAME_ARR = ['movable-view', 'cover-image', 'cover-view', 'movable-area', 'open-data', 'official-account', 'editor', 'functional-page-navigator', 'audio', 'live-pusher']
|
|
9
|
-
// 快手小程序不支持的标签集合
|
|
10
|
-
const KS_UNSUPPORTED_TAG_NAME_ARR = ['match-media', 'page-container', 'root-portal', 'selection', 'functional-page-navigator', 'editor', 'editor-portal', 'keyboard-accessory', 'live-player', 'live-pusher', 'voip-room', 'channel-live', 'channel-video', 'ad-custom', 'official-account', 'official-account-publisher', 'open-data', 'store-coupon', 'store-gift', 'store-home', 'store-product']
|
|
11
9
|
// 京东小程序不支持的标签集合
|
|
12
10
|
const JD_UNSUPPORTED_TAG_NAME_ARR = ['functional-page-navigator', 'live-pusher', 'live-player', 'rich-text', 'audio', 'video', 'camera']
|
|
13
11
|
// 快应用不支持的标签集合
|
|
14
12
|
const QA_UNSUPPORTED_TAG_NAME_ARR = ['movable-view', 'movable-area', 'open-data', 'official-account', 'editor', 'functional-page-navigator', 'live-player', 'live-pusher', 'ad', 'cover-image']
|
|
15
13
|
// RN不支持的标签集合
|
|
16
|
-
const RN_UNSUPPORTED_TAG_NAME_ARR = ['open-data', 'official-account', 'editor', 'functional-page-navigator', 'live-player', 'live-pusher', 'ad', 'audio', 'match-media', 'page-container', 'editor', 'keyboard-accessory', 'map']
|
|
14
|
+
const RN_UNSUPPORTED_TAG_NAME_ARR = ['open-data', 'official-account', 'editor', 'functional-page-navigator', 'live-player', 'live-pusher', 'ad', 'audio', 'camera', 'match-media', 'page-container', 'editor', 'keyboard-accessory', 'map']
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
* @param {function(object): function} print
|
|
@@ -24,7 +22,6 @@ module.exports = function ({ print }) {
|
|
|
24
22
|
const baiduUnsupportedTagError = print({ platform: 'baidu', isError: true, type: 'tag' })
|
|
25
23
|
const qqUnsupportedTagError = print({ platform: 'qq', isError: true, type: 'tag' })
|
|
26
24
|
const ttUnsupportedTagError = print({ platform: 'bytedance', isError: true, type: 'tag' })
|
|
27
|
-
const ksUnsupportedTagError = print({ platform: 'ks', isError: true, type: 'tag' })
|
|
28
25
|
const jdUnsupportedTagError = print({ platform: 'jd', isError: true, type: 'tag' })
|
|
29
26
|
const qaUnsupportedTagError = print({ platform: 'qa', isError: true, type: 'tag' })
|
|
30
27
|
const iosUnsupportedTagError = print({ platform: 'ios', isError: true, type: 'tag' })
|
|
@@ -35,7 +32,6 @@ module.exports = function ({ print }) {
|
|
|
35
32
|
const baiduUnsupportedExp = new RegExp('^(' + BAIDU_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
|
|
36
33
|
const qqUnsupportedExp = new RegExp('^(' + QQ_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
|
|
37
34
|
const ttUnsupportedExp = new RegExp('^(' + TT_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
|
|
38
|
-
const ksUnsupportedExp = new RegExp('^(' + KS_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
|
|
39
35
|
const jdUnsupportedExp = new RegExp('^(' + JD_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
|
|
40
36
|
const qaUnsupportedExp = new RegExp('^(' + QA_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
|
|
41
37
|
const iosUnsupportedExp = new RegExp('^(' + RN_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
|
|
@@ -63,11 +59,6 @@ module.exports = function ({ print }) {
|
|
|
63
59
|
test: ttUnsupportedExp,
|
|
64
60
|
tt: ttUnsupportedTagError
|
|
65
61
|
},
|
|
66
|
-
{
|
|
67
|
-
supportedModes: ['ks'],
|
|
68
|
-
test: ksUnsupportedExp,
|
|
69
|
-
ks: ksUnsupportedTagError
|
|
70
|
-
},
|
|
71
62
|
{
|
|
72
63
|
supportedModes: ['jd'],
|
|
73
64
|
test: jdUnsupportedExp,
|
|
@@ -17,8 +17,6 @@ module.exports = function ({ print }) {
|
|
|
17
17
|
const androidEventLogError = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
|
|
18
18
|
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
19
19
|
const harmonyEventLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
|
|
20
|
-
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
21
|
-
const ksEventLogError = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
22
20
|
return {
|
|
23
21
|
test: TAG_NAME,
|
|
24
22
|
web (tag, { el }) {
|
|
@@ -76,10 +74,6 @@ module.exports = function ({ print }) {
|
|
|
76
74
|
test: /^(duration|enable-danmu|danmu-btn|page-gesture|direction|show-progress|show-fullscreen-btn|show-center-play-btn|enable-progress-gesture|show-mute-btn|title|play-btn-position|enable-play-gesture|auto-pause-if-navigate|auto-pause-if-open-native|vslide-gesture|vslide-gesture-in-fullscreen|show-bottom-progress|ad-unit-id|poster-for-crawler|show-casting-button|picture-in-picture-mode|picture-in-picture-show-progress| picture-in-picture-init-position|enable-auto-rotation|show-snapshot-button|show-screen-lock-button|show-background-playback-button|background-poster|referrer-policy|is-live)$/,
|
|
77
75
|
android: androidPropLog,
|
|
78
76
|
harmony: harmonyPropLog
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
test: /^(duration|danmu-list|enable-danmu|danmu-btn|auto-pause-if-navigate|auto-pause-if-open-native|ad-unit-id|poster-for-crawler|picture-in-picture-mode|picture-in-picture-show-progress|picture-in-picture-init-position|enable-auto-rotation|show-snapshot-button|show-background-playback-button|background-poster|is-drm|is-live|provision-url|certificate-url|license-url|preferred-peak-bit-rate)$/,
|
|
82
|
-
ks: ksPropLog
|
|
83
77
|
}
|
|
84
78
|
],
|
|
85
79
|
event: [
|
|
@@ -123,10 +117,6 @@ module.exports = function ({ print }) {
|
|
|
123
117
|
test: /^(progress|enterpictureinpicture|leavepictureinpicture|castinguserselect|castingstatechange|castinginterrupt)$/,
|
|
124
118
|
android: androidEventLogError,
|
|
125
119
|
harmony: harmonyEventLogError
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
test: /^(waiting|controlstoggle|enterpictureinpicture|leavepictureinpicture|seekcomplete|castinguserselect)$/,
|
|
129
|
-
ks: ksEventLogError
|
|
130
120
|
}
|
|
131
121
|
]
|
|
132
122
|
}
|
|
@@ -62,7 +62,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
const spec = {
|
|
65
|
-
supportedModes: ['ali', 'swan', 'qq', 'tt', '
|
|
65
|
+
supportedModes: ['ali', 'swan', 'qq', 'tt', 'web', 'qa', 'jd', 'dd', 'ios', 'android', 'harmony'],
|
|
66
66
|
// props预处理
|
|
67
67
|
preProps: [],
|
|
68
68
|
// props后处理
|
|
@@ -325,13 +325,6 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
325
325
|
value
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
|
-
ks ({ name, value }) {
|
|
329
|
-
const dir = this.test.exec(name)[1]
|
|
330
|
-
return {
|
|
331
|
-
name: 'ks:' + dir,
|
|
332
|
-
value
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
328
|
dd ({ name, value }) {
|
|
336
329
|
const dir = this.test.exec(name)[1]
|
|
337
330
|
return {
|
|
@@ -420,19 +413,6 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
420
413
|
value
|
|
421
414
|
}
|
|
422
415
|
},
|
|
423
|
-
ks ({ name, value }, { eventRules }) {
|
|
424
|
-
const match = this.test.exec(name)
|
|
425
|
-
const prefix = match[1]
|
|
426
|
-
const eventName = match[2]
|
|
427
|
-
const modifierStr = match[3] || ''
|
|
428
|
-
let rPrefix = runRules(spec.event.prefix, prefix, { mode: 'ks' })
|
|
429
|
-
const rEventName = runRules(eventRules, eventName, { mode: 'ks' })
|
|
430
|
-
if (rEventName.includes('-')) rPrefix += ':'
|
|
431
|
-
return {
|
|
432
|
-
name: rPrefix + rEventName + modifierStr,
|
|
433
|
-
value
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
416
|
dd ({ name, value }, { eventRules }) {
|
|
437
417
|
const match = this.test.exec(name)
|
|
438
418
|
const prefix = match[1]
|
package/lib/react/index.js
CHANGED
|
@@ -21,7 +21,6 @@ module.exports = function ({
|
|
|
21
21
|
hasComment,
|
|
22
22
|
isNative,
|
|
23
23
|
usingComponentsInfo,
|
|
24
|
-
originalUsingComponents,
|
|
25
24
|
componentGenerics,
|
|
26
25
|
autoScope,
|
|
27
26
|
callback
|
|
@@ -54,7 +53,6 @@ module.exports = function ({
|
|
|
54
53
|
moduleId,
|
|
55
54
|
ctorType,
|
|
56
55
|
usingComponentsInfo,
|
|
57
|
-
originalUsingComponents,
|
|
58
56
|
componentGenerics
|
|
59
57
|
}, callback)
|
|
60
58
|
},
|