@ditojs/admin 2.27.2 → 2.27.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/admin",
3
- "version": "2.27.2",
3
+ "version": "2.27.3",
4
4
  "type": "module",
5
5
  "description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
@@ -33,7 +33,7 @@
33
33
  "not ie_mob > 0"
34
34
  ],
35
35
  "dependencies": {
36
- "@ditojs/ui": "^2.27.0",
36
+ "@ditojs/ui": "^2.27.3",
37
37
  "@ditojs/utils": "^2.27.0",
38
38
  "@kyvg/vue3-notification": "^3.2.1",
39
39
  "@lk77/vue3-color": "^3.0.6",
@@ -70,20 +70,20 @@
70
70
  "type-fest": "^4.15.0",
71
71
  "vue": "3.4.10",
72
72
  "vue-multiselect": "^3.0.0",
73
- "vue-router": "^4.3.0",
73
+ "vue-router": "^4.3.2",
74
74
  "vue-upload-component": "^3.1.15"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@ditojs/build": "^2.27.0",
78
78
  "@vitejs/plugin-vue": "^5.0.4",
79
- "@vue/compiler-sfc": "3.4.21",
79
+ "@vue/compiler-sfc": "3.4.23",
80
80
  "pug": "^3.0.2",
81
81
  "sass": "1.75.0",
82
82
  "typescript": "^5.4.5",
83
- "vite": "^5.2.8"
83
+ "vite": "^5.2.10"
84
84
  },
85
85
  "types": "types",
86
- "gitHead": "d15a80e1ecdf916fd087ad7c5b21eee0b2ee9daf",
86
+ "gitHead": "f015eea94dbfc9950c768cda9130663ff29253fb",
87
87
  "scripts": {
88
88
  "build": "vite build",
89
89
  "watch": "yarn build --mode 'development' --watch",
@@ -208,7 +208,15 @@ export default DitoTypeComponent.register('markup', {
208
208
 
209
209
  const onFocus = () => this.onFocus()
210
210
 
211
- const onBlur = () => {
211
+ const onBlur = ({ editor }) => {
212
+ // This change handling code on blur is only needed to simplify making e2e
213
+ // testing through puppeteer works, since we couldn't figure out how to
214
+ // trigger tiptap's update events programmatically from the outside.
215
+ const value = editor.getHTML()
216
+ if (value !== this.value) {
217
+ this.value = value
218
+ changed = true
219
+ }
212
220
  this.onBlur()
213
221
  onChange()
214
222
  }