@tmagic/editor 1.3.0-alpha.11 → 1.3.0-alpha.12

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0-alpha.11",
2
+ "version": "1.3.0-alpha.12",
3
3
  "name": "@tmagic/editor",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -46,13 +46,13 @@
46
46
  "dependencies": {
47
47
  "@babel/core": "^7.18.0",
48
48
  "@element-plus/icons-vue": "^2.0.9",
49
- "@tmagic/core": "1.3.0-alpha.11",
50
- "@tmagic/design": "1.3.0-alpha.11",
51
- "@tmagic/form": "1.3.0-alpha.11",
52
- "@tmagic/schema": "1.3.0-alpha.11",
53
- "@tmagic/stage": "1.3.0-alpha.11",
54
- "@tmagic/table": "1.3.0-alpha.11",
55
- "@tmagic/utils": "1.3.0-alpha.11",
49
+ "@tmagic/core": "1.3.0-alpha.12",
50
+ "@tmagic/design": "1.3.0-alpha.12",
51
+ "@tmagic/form": "1.3.0-alpha.12",
52
+ "@tmagic/schema": "1.3.0-alpha.12",
53
+ "@tmagic/stage": "1.3.0-alpha.12",
54
+ "@tmagic/table": "1.3.0-alpha.12",
55
+ "@tmagic/utils": "1.3.0-alpha.12",
56
56
  "buffer": "^6.0.3",
57
57
  "color": "^3.1.3",
58
58
  "events": "^3.3.0",
@@ -64,8 +64,8 @@
64
64
  "vue": "^3.3.4"
65
65
  },
66
66
  "peerDependencies": {
67
- "@tmagic/design": "1.3.0-alpha.11",
68
- "@tmagic/form": "1.3.0-alpha.11",
67
+ "@tmagic/design": "1.3.0-alpha.12",
68
+ "@tmagic/form": "1.3.0-alpha.12",
69
69
  "monaco-editor": "^0.39.0",
70
70
  "vue": "^3.3.4"
71
71
  },
@@ -84,7 +84,7 @@ const appendComponent = ({ text, type, data = {} }: ComponentItem): void => {
84
84
  const dragstartHandler = ({ text, type, data = {} }: ComponentItem, e: DragEvent) => {
85
85
  if (e.dataTransfer) {
86
86
  e.dataTransfer.setData(
87
- 'text/html',
87
+ 'text/json',
88
88
  serialize({
89
89
  name: text,
90
90
  type,
@@ -165,7 +165,7 @@ const dropHandler = async (e: DragEvent) => {
165
165
  if (e.dataTransfer && parent && stageContainer.value && stage) {
166
166
  const parseDSL = getConfig('parseDSL');
167
167
 
168
- const data = e.dataTransfer.getData('text/html');
168
+ const data = e.dataTransfer.getData('text/json');
169
169
 
170
170
  if (!data) return;
171
171