@lvce-editor/virtual-dom 8.9.0 → 8.11.0

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 (2) hide show
  1. package/dist/index.js +16 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -61,12 +61,15 @@ const Code$2 = 'code';
61
61
  const Label$2 = 'label';
62
62
  const Dt$2 = 'dt';
63
63
  const Iframe$1 = 'iframe';
64
+ const Em$1 = 'em';
65
+ const Strong$1 = 'strong';
64
66
  const Style$1 = 'style';
65
67
  const Html$1 = 'html';
66
68
  const Head$1 = 'head';
67
69
  const Title$1 = 'title';
68
70
  const Meta$1 = 'meta';
69
71
  const Canvas$1 = 'canvas';
72
+ const Form$1 = 'form';
70
73
 
71
74
  const Audio$1 = 0;
72
75
  const Button$1 = 1;
@@ -126,12 +129,15 @@ const Code$1 = 65;
126
129
  const Label$1 = 66;
127
130
  const Dt$1 = 67;
128
131
  const Iframe = 68;
132
+ const Strong = 70;
133
+ const Em = 71;
129
134
  const Style = 72;
130
135
  const Html = 73;
131
136
  const Head = 74;
132
137
  const Title = 75;
133
138
  const Meta = 76;
134
139
  const Canvas = 77;
140
+ const Form = 78;
135
141
  const Reference$1 = 100;
136
142
 
137
143
  const VirtualDomElements$1 = {
@@ -154,9 +160,11 @@ const VirtualDomElements$1 = {
154
160
  Div: Div$1,
155
161
  Dl: Dl$1,
156
162
  Dt: Dt$1,
163
+ Em,
157
164
  Figcaption: Figcaption$1,
158
165
  Figure: Figure$1,
159
166
  Footer: Footer$1,
167
+ Form,
160
168
  H1: H1$1,
161
169
  H2: H2$1,
162
170
  H3: H3$1,
@@ -187,6 +195,7 @@ const VirtualDomElements$1 = {
187
195
  Section: Section$1,
188
196
  Select: Select$1,
189
197
  Span: Span$1,
198
+ Strong,
190
199
  Style,
191
200
  TBody: TBody$1,
192
201
  THead: THead$1,
@@ -239,12 +248,16 @@ const getElementTag$1 = type => {
239
248
  return Dl$2;
240
249
  case Dt$1:
241
250
  return Dt$2;
251
+ case Em:
252
+ return Em$1;
242
253
  case Figcaption$1:
243
254
  return Figcaption$2;
244
255
  case Figure$1:
245
256
  return Figure$2;
246
257
  case Footer$1:
247
258
  return Footer$2;
259
+ case Form:
260
+ return Form$1;
248
261
  case H1$1:
249
262
  return H1$2;
250
263
  case H2$1:
@@ -301,6 +314,8 @@ const getElementTag$1 = type => {
301
314
  return Select$2;
302
315
  case Span$1:
303
316
  return Span$2;
317
+ case Strong:
318
+ return Strong$1;
304
319
  case Style:
305
320
  return Style$1;
306
321
  case Table$1:
@@ -1030,7 +1045,7 @@ const getEventListenerArg = (param, event) => {
1030
1045
  case 'event.y':
1031
1046
  return event.y;
1032
1047
  default:
1033
- if (param.startsWith('event.target.dataset')) {
1048
+ if (typeof param === 'string' && param.startsWith('event.target.dataset')) {
1034
1049
  const rest = param.slice('event.target.dataset.'.length);
1035
1050
  return event.target.dataset[rest];
1036
1051
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "8.9.0",
3
+ "version": "8.11.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/virtual-dom.git"