@lvce-editor/virtual-dom-worker 3.0.0 → 3.2.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.
@@ -1,4 +1,4 @@
1
- import * as VirtualDomElements from "../VirtualDomElements/VirtualDomElements.js";
1
+ import { VirtualDomElements } from '@lvce-editor/constants';
2
2
  export const text = (data) => {
3
3
  return {
4
4
  type: VirtualDomElements.Text,
@@ -1,8 +1,8 @@
1
+ import { VirtualDomElements } from '@lvce-editor/constants';
1
2
  import * as ApplyPendingPatches from "../ApplyPendingPatches/ApplyPendingPatches.js";
2
3
  import * as GetKeys from "../GetKeys/GetKeys.js";
3
4
  import * as GetTotalChildCount from "../GetTotalChildCount/GetTotalChildCount.js";
4
5
  import * as PatchType from "../PatchType/PatchType.js";
5
- import * as VirtualDomElements from "../VirtualDomElements/VirtualDomElements.js";
6
6
  export const diff = (oldNodes, newNodes) => {
7
7
  const patches = [];
8
8
  const pendingPatches = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom-worker",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -8,7 +8,7 @@
8
8
  "license": "MIT",
9
9
  "description": "",
10
10
  "dependencies": {
11
- "@lvce-editor/constants": "^1.0.1"
11
+ "@lvce-editor/constants": "^1.24.0"
12
12
  },
13
13
  "types": "dist/index.d.ts"
14
14
  }
@@ -1,2 +0,0 @@
1
- import { VirtualDomElements } from '@lvce-editor/constants';
2
- export const { Audio, Button, Col, ColGroup, Div, H1, Input, Kbd, Span, Table, TBody, Td, Text, Th, THead, Tr, I, Img, Root, Ins, Del, H2, H3, H4, H5, H6, Article, Aside, Footer, Header, Nav, Section, Search, Dd, Dl, Figcaption, Figure, Hr, Li, Ol, P, Pre, A, Abbr, Br, Cite, Data, Time, Tfoot, Ul, Video, TextArea, Select, Option, Code, Label, Dt, } = VirtualDomElements;