wireless-desc-converter 1.0.6 → 1.0.8

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.
@@ -486,9 +486,9 @@ function buildTextModule(params) {
486
486
  { id: 'images', type: 'multiComplex', values: imageValues },
487
487
  singleCheckField('enable', 'true'),
488
488
  singleCheckField('countHeight', 'false'),
489
- inputField('id', groupId),
490
489
  { id: 'textStyle', type: 'complex', value: { props: textStyleProps } }
491
490
  // sample(示意图)不传:官方文档确认为可选字段,缺省不报错
491
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
492
492
  ]
493
493
  }
494
494
  };
@@ -534,8 +534,8 @@ function buildImageModule(params) {
534
534
  singleCheckField('enable', 'true'),
535
535
  singleCheckField('countHeight', 'true'),
536
536
  { id: 'hot_area', type: 'multiComplex', values: hotAreaValues },
537
- inputField('id', groupId),
538
537
  { id: 'sample', type: 'multiComplex', values: sampleValues }
538
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
539
539
  ]
540
540
  }
541
541
  };
@@ -552,11 +552,11 @@ function buildRichTextModule(params) {
552
552
  props: [
553
553
  singleCheckField('enable', 'false'),
554
554
  singleCheckField('countHeight', 'false'),
555
- inputField('id', groupId),
556
555
  { id: 'html', type: 'complex', value: {
557
556
  props: [inputField('text', params.html || ''), inputField('width', ''), inputField('height', '')]
558
557
  }},
559
558
  { id: 'sample', type: 'multiComplex', values: [] }
559
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
560
560
  ]
561
561
  }
562
562
  };
@@ -484,9 +484,9 @@ function buildTextModule(params) {
484
484
  { id: 'images', type: 'multiComplex', values: imageValues },
485
485
  singleCheckField('enable', 'true'),
486
486
  singleCheckField('countHeight', 'false'),
487
- inputField('id', groupId),
488
487
  { id: 'textStyle', type: 'complex', value: { props: textStyleProps } }
489
488
  // sample(示意图)不传:官方文档确认为可选字段,缺省不报错
489
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
490
490
  ]
491
491
  }
492
492
  };
@@ -532,8 +532,8 @@ function buildImageModule(params) {
532
532
  singleCheckField('enable', 'true'),
533
533
  singleCheckField('countHeight', 'true'),
534
534
  { id: 'hot_area', type: 'multiComplex', values: hotAreaValues },
535
- inputField('id', groupId),
536
535
  { id: 'sample', type: 'multiComplex', values: sampleValues }
536
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
537
537
  ]
538
538
  }
539
539
  };
@@ -550,11 +550,11 @@ function buildRichTextModule(params) {
550
550
  props: [
551
551
  singleCheckField('enable', 'false'),
552
552
  singleCheckField('countHeight', 'false'),
553
- inputField('id', groupId),
554
553
  { id: 'html', type: 'complex', value: {
555
554
  props: [inputField('text', params.html || ''), inputField('width', ''), inputField('height', '')]
556
555
  }},
557
556
  { id: 'sample', type: 'multiComplex', values: [] }
557
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
558
558
  ]
559
559
  }
560
560
  };
@@ -490,9 +490,9 @@
490
490
  { id: 'images', type: 'multiComplex', values: imageValues },
491
491
  singleCheckField('enable', 'true'),
492
492
  singleCheckField('countHeight', 'false'),
493
- inputField('id', groupId),
494
493
  { id: 'textStyle', type: 'complex', value: { props: textStyleProps } }
495
494
  // sample(示意图)不传:官方文档确认为可选字段,缺省不报错
495
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
496
496
  ]
497
497
  }
498
498
  };
@@ -538,8 +538,8 @@
538
538
  singleCheckField('enable', 'true'),
539
539
  singleCheckField('countHeight', 'true'),
540
540
  { id: 'hot_area', type: 'multiComplex', values: hotAreaValues },
541
- inputField('id', groupId),
542
541
  { id: 'sample', type: 'multiComplex', values: sampleValues }
542
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
543
543
  ]
544
544
  }
545
545
  };
@@ -556,11 +556,11 @@
556
556
  props: [
557
557
  singleCheckField('enable', 'false'),
558
558
  singleCheckField('countHeight', 'false'),
559
- inputField('id', groupId),
560
559
  { id: 'html', type: 'complex', value: {
561
560
  props: [inputField('text', params.html || ''), inputField('width', ''), inputField('height', '')]
562
561
  }},
563
562
  { id: 'sample', type: 'multiComplex', values: [] }
563
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
564
564
  ]
565
565
  }
566
566
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wireless-desc-converter",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "淘宝新版图文编辑器 wirelessDesc 适配工具 - HTML 富文本转换为结构化 JSON",
5
5
  "type": "module",
6
6
  "main": "dist/wireless-desc-converter.umd.js",
@@ -29,7 +29,11 @@
29
29
  "license": "MIT",
30
30
  "repository": {
31
31
  "type": "git",
32
- "url": ""
32
+ "url": "git+https://github.com/chaorenzeng/wireless-desc-converter.git"
33
+ },
34
+ "homepage": "https://github.com/chaorenzeng/wireless-desc-converter#readme",
35
+ "bugs": {
36
+ "url": "https://github.com/chaorenzeng/wireless-desc-converter/issues"
33
37
  },
34
38
  "devDependencies": {
35
39
  "rollup": "^2.79.1",
package/src/index.js CHANGED
@@ -484,9 +484,9 @@ function buildTextModule(params) {
484
484
  { id: 'images', type: 'multiComplex', values: imageValues },
485
485
  singleCheckField('enable', 'true'),
486
486
  singleCheckField('countHeight', 'false'),
487
- inputField('id', groupId),
488
487
  { id: 'textStyle', type: 'complex', value: { props: textStyleProps } }
489
488
  // sample(示意图)不传:官方文档确认为可选字段,缺省不报错
489
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
490
490
  ]
491
491
  }
492
492
  };
@@ -532,8 +532,8 @@ function buildImageModule(params) {
532
532
  singleCheckField('enable', 'true'),
533
533
  singleCheckField('countHeight', 'true'),
534
534
  { id: 'hot_area', type: 'multiComplex', values: hotAreaValues },
535
- inputField('id', groupId),
536
535
  { id: 'sample', type: 'multiComplex', values: sampleValues }
536
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
537
537
  ]
538
538
  }
539
539
  };
@@ -550,11 +550,11 @@ function buildRichTextModule(params) {
550
550
  props: [
551
551
  singleCheckField('enable', 'false'),
552
552
  singleCheckField('countHeight', 'false'),
553
- inputField('id', groupId),
554
553
  { id: 'html', type: 'complex', value: {
555
554
  props: [inputField('text', params.html || ''), inputField('width', ''), inputField('height', '')]
556
555
  }},
557
556
  { id: 'sample', type: 'multiComplex', values: [] }
557
+ // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
558
558
  ]
559
559
  }
560
560
  };