@dcloudio/uni-cli-shared 3.0.0-alpha-3030220211217002 → 3.0.0-alpha-3030220211217003

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.
@@ -3,5 +3,6 @@ export * from './event';
3
3
  export * from './style';
4
4
  export * from './template';
5
5
  export * from './constants';
6
+ export { HTML_TO_MINI_PROGRAM_TAGS } from './tags';
6
7
  export { copyMiniProgramPluginJson } from './plugin';
7
8
  export { transformVueComponentImports } from './transformImports';
package/dist/mp/index.js CHANGED
@@ -10,12 +10,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.transformVueComponentImports = exports.copyMiniProgramPluginJson = void 0;
13
+ exports.transformVueComponentImports = exports.copyMiniProgramPluginJson = exports.HTML_TO_MINI_PROGRAM_TAGS = void 0;
14
14
  __exportStar(require("./nvue"), exports);
15
15
  __exportStar(require("./event"), exports);
16
16
  __exportStar(require("./style"), exports);
17
17
  __exportStar(require("./template"), exports);
18
18
  __exportStar(require("./constants"), exports);
19
+ var tags_1 = require("./tags");
20
+ Object.defineProperty(exports, "HTML_TO_MINI_PROGRAM_TAGS", { enumerable: true, get: function () { return tags_1.HTML_TO_MINI_PROGRAM_TAGS; } });
19
21
  var plugin_1 = require("./plugin");
20
22
  Object.defineProperty(exports, "copyMiniProgramPluginJson", { enumerable: true, get: function () { return plugin_1.copyMiniProgramPluginJson; } });
21
23
  var transformImports_1 = require("./transformImports");
@@ -0,0 +1 @@
1
+ export declare const HTML_TO_MINI_PROGRAM_TAGS: Record<string, string>;
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HTML_TO_MINI_PROGRAM_TAGS = void 0;
4
+ exports.HTML_TO_MINI_PROGRAM_TAGS = {
5
+ br: 'view',
6
+ hr: 'view',
7
+ p: 'view',
8
+ h1: 'view',
9
+ h2: 'view',
10
+ h3: 'view',
11
+ h4: 'view',
12
+ h5: 'view',
13
+ h6: 'view',
14
+ abbr: 'view',
15
+ address: 'view',
16
+ b: 'view',
17
+ bdi: 'view',
18
+ bdo: 'view',
19
+ blockquote: 'view',
20
+ cite: 'view',
21
+ code: 'view',
22
+ del: 'view',
23
+ ins: 'view',
24
+ dfn: 'view',
25
+ em: 'view',
26
+ strong: 'view',
27
+ samp: 'view',
28
+ kbd: 'view',
29
+ var: 'view',
30
+ i: 'view',
31
+ mark: 'view',
32
+ pre: 'view',
33
+ q: 'view',
34
+ ruby: 'view',
35
+ rp: 'view',
36
+ rt: 'view',
37
+ s: 'view',
38
+ small: 'view',
39
+ sub: 'view',
40
+ sup: 'view',
41
+ time: 'view',
42
+ u: 'view',
43
+ wbr: 'view',
44
+ // 表单元素
45
+ // form: 'form',
46
+ // input: 'input',
47
+ // textarea: 'textarea',
48
+ // button: 'button',
49
+ select: 'picker',
50
+ option: 'view',
51
+ optgroup: 'view',
52
+ // label: 'label',
53
+ fieldset: 'view',
54
+ datalist: 'picker',
55
+ legend: 'view',
56
+ output: 'view',
57
+ // 框架
58
+ iframe: 'view',
59
+ // 图像
60
+ img: 'image',
61
+ // canvas: 'canvas',
62
+ figure: 'view',
63
+ figcaption: 'view',
64
+ // 音视频
65
+ // audio: 'audio',
66
+ source: 'audio',
67
+ // video: 'video',
68
+ track: 'video',
69
+ // 链接
70
+ a: 'navigator',
71
+ nav: 'view',
72
+ link: 'navigator',
73
+ // 列表
74
+ ul: 'view',
75
+ ol: 'view',
76
+ li: 'view',
77
+ dl: 'view',
78
+ dt: 'view',
79
+ dd: 'view',
80
+ menu: 'view',
81
+ command: 'view',
82
+ // 表格table
83
+ table: 'view',
84
+ caption: 'view',
85
+ th: 'view',
86
+ td: 'view',
87
+ tr: 'view',
88
+ thead: 'view',
89
+ tbody: 'view',
90
+ tfoot: 'view',
91
+ col: 'view',
92
+ colgroup: 'view',
93
+ // 样式 节
94
+ div: 'view',
95
+ main: 'view',
96
+ span: 'label',
97
+ header: 'view',
98
+ footer: 'view',
99
+ section: 'view',
100
+ article: 'view',
101
+ aside: 'view',
102
+ details: 'view',
103
+ dialog: 'view',
104
+ summary: 'view',
105
+ // progress: 'progress',
106
+ meter: 'progress',
107
+ head: 'view',
108
+ meta: 'view',
109
+ base: 'text',
110
+ // 'map': 'image', // TODO不是很恰当
111
+ area: 'navigator',
112
+ script: 'view',
113
+ noscript: 'view',
114
+ embed: 'view',
115
+ object: 'view',
116
+ param: 'view',
117
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3030220211217002",
3
+ "version": "3.0.0-alpha-3030220211217003",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "dependencies": {
21
21
  "@babel/parser": "^7.16.4",
22
22
  "@babel/types": "^7.16.0",
23
- "@dcloudio/uni-i18n": "3.0.0-alpha-3030220211217002",
24
- "@dcloudio/uni-shared": "3.0.0-alpha-3030220211217002",
23
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3030220211217003",
24
+ "@dcloudio/uni-shared": "3.0.0-alpha-3030220211217003",
25
25
  "@rollup/pluginutils": "^4.1.1",
26
26
  "@vue/compiler-core": "3.2.26",
27
27
  "@vue/compiler-dom": "3.2.26",