@lvce-editor/virtual-dom 2.7.0 → 2.9.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.
package/dist/index.js CHANGED
@@ -51,6 +51,7 @@ const Select$1 = 'select';
51
51
  const Option$1 = 'option';
52
52
  const Code$1 = 'code';
53
53
  const Label$1 = 'label';
54
+ const Dt$1 = 'dt';
54
55
 
55
56
  const Audio = 0;
56
57
  const Button = 1;
@@ -106,6 +107,7 @@ const Select = 63;
106
107
  const Option = 64;
107
108
  const Code = 65;
108
109
  const Label = 66;
110
+ const Dt = 67;
109
111
 
110
112
  const getElementTag = type => {
111
113
  switch (type) {
@@ -215,6 +217,8 @@ const getElementTag = type => {
215
217
  return Code$1;
216
218
  case Label:
217
219
  return Label$1;
220
+ case Dt:
221
+ return Dt$1;
218
222
  default:
219
223
  throw new Error(`element tag not found ${type}`);
220
224
  }
@@ -419,6 +423,7 @@ const setProp = ($Element, key, value, eventMap, newEventMap) => {
419
423
  case 'onPointerMove':
420
424
  case 'onPointerOut':
421
425
  case 'onPointerOver':
426
+ case 'onScroll':
422
427
  case 'onWheel':
423
428
  const eventName = key.slice(2).toLowerCase();
424
429
  if (!eventMap || !value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -109,6 +109,8 @@ export const getElementTag = (type: number): string => {
109
109
  return ElementTag.Code
110
110
  case VirtualDomElements.Label:
111
111
  return ElementTag.Label
112
+ case VirtualDomElements.Dt:
113
+ return ElementTag.Dt
112
114
  default:
113
115
  throw new Error(`element tag not found ${type}`)
114
116
  }
@@ -52,3 +52,4 @@ export const Select = 'select'
52
52
  export const Option = 'option'
53
53
  export const Code = 'code'
54
54
  export const Label = 'label'
55
+ export const Dt = 'dt'
@@ -84,6 +84,7 @@ export const setProp = (
84
84
  case 'onPointerMove':
85
85
  case 'onPointerOut':
86
86
  case 'onPointerOver':
87
+ case 'onScroll':
87
88
  case 'onWheel':
88
89
  const eventName = key.slice(2).toLowerCase()
89
90
  if (!eventMap || !value) {
@@ -54,3 +54,4 @@ export const Select = 63
54
54
  export const Option = 64
55
55
  export const Code = 65
56
56
  export const Label = 66
57
+ export const Dt = 67