@tmagic/editor 1.6.0-beta.0 → 1.6.0-beta.1
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/tmagic-editor.js
CHANGED
|
@@ -15766,7 +15766,7 @@ const defaultEditorProps = {
|
|
|
15766
15766
|
eventMethodList: () => ({}),
|
|
15767
15767
|
datasourceValues: () => ({}),
|
|
15768
15768
|
datasourceConfigs: () => ({}),
|
|
15769
|
-
canSelect: (el) => Boolean(getIdFromEl()(el)),
|
|
15769
|
+
canSelect: (el) => Boolean(getIdFromEl()(el) && !el.dataset.tmagicPageFragmentContainerId),
|
|
15770
15770
|
isContainer: (el) => el.classList.contains("magic-ui-container"),
|
|
15771
15771
|
codeOptions: () => ({}),
|
|
15772
15772
|
customContentMenu: (menus) => menus
|
|
@@ -20559,7 +20559,7 @@
|
|
|
20559
20559
|
eventMethodList: () => ({}),
|
|
20560
20560
|
datasourceValues: () => ({}),
|
|
20561
20561
|
datasourceConfigs: () => ({}),
|
|
20562
|
-
canSelect: (el) => Boolean(utils.getIdFromEl()(el)),
|
|
20562
|
+
canSelect: (el) => Boolean(utils.getIdFromEl()(el) && !el.dataset.tmagicPageFragmentContainerId),
|
|
20563
20563
|
isContainer: (el) => el.classList.contains("magic-ui-container"),
|
|
20564
20564
|
codeOptions: () => ({}),
|
|
20565
20565
|
customContentMenu: (menus) => menus
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.6.0-beta.
|
|
2
|
+
"version": "1.6.0-beta.1",
|
|
3
3
|
"name": "@tmagic/editor",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"moveable": "^0.53.0",
|
|
59
59
|
"serialize-javascript": "^6.0.2",
|
|
60
60
|
"sortablejs": "^1.15.6",
|
|
61
|
-
"@tmagic/design": "1.6.0-beta.
|
|
62
|
-
"@tmagic/form": "1.6.0-beta.
|
|
63
|
-
"@tmagic/
|
|
64
|
-
"@tmagic/
|
|
65
|
-
"@tmagic/
|
|
61
|
+
"@tmagic/design": "1.6.0-beta.1",
|
|
62
|
+
"@tmagic/form": "1.6.0-beta.1",
|
|
63
|
+
"@tmagic/table": "1.6.0-beta.1",
|
|
64
|
+
"@tmagic/utils": "1.6.0-beta.1",
|
|
65
|
+
"@tmagic/stage": "1.6.0-beta.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/events": "^3.0.3",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"monaco-editor": "^0.48.0",
|
|
77
77
|
"typescript": "^5.8.3",
|
|
78
78
|
"vue": "^3.5.17",
|
|
79
|
-
"@tmagic/core": "1.6.0-beta.
|
|
79
|
+
"@tmagic/core": "1.6.0-beta.1"
|
|
80
80
|
},
|
|
81
81
|
"peerDependenciesMeta": {
|
|
82
82
|
"typescript": {
|
package/src/editorProps.ts
CHANGED
|
@@ -126,7 +126,7 @@ export const defaultEditorProps = {
|
|
|
126
126
|
eventMethodList: () => ({}),
|
|
127
127
|
datasourceValues: () => ({}),
|
|
128
128
|
datasourceConfigs: () => ({}),
|
|
129
|
-
canSelect: (el: HTMLElement) => Boolean(getIdFromEl()(el)),
|
|
129
|
+
canSelect: (el: HTMLElement) => Boolean(getIdFromEl()(el) && !el.dataset.tmagicPageFragmentContainerId),
|
|
130
130
|
isContainer: (el: HTMLElement) => el.classList.contains('magic-ui-container'),
|
|
131
131
|
codeOptions: () => ({}),
|
|
132
132
|
customContentMenu: (menus: (MenuButton | MenuComponent)[]) => menus,
|