@ditojs/admin 2.34.0 → 2.34.2

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.34.0",
3
+ "version": "2.34.2",
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",
@@ -39,8 +39,8 @@
39
39
  "not ie_mob > 0"
40
40
  ],
41
41
  "dependencies": {
42
- "@ditojs/ui": "^2.34.0",
43
- "@ditojs/utils": "^2.34.0",
42
+ "@ditojs/ui": "^2.34.2",
43
+ "@ditojs/utils": "^2.34.2",
44
44
  "@kyvg/vue3-notification": "^3.3.0",
45
45
  "@lk77/vue3-color": "^3.0.6",
46
46
  "@tiptap/core": "^2.7.2",
@@ -82,7 +82,7 @@
82
82
  "vue-upload-component": "^3.1.17"
83
83
  },
84
84
  "devDependencies": {
85
- "@ditojs/build": "^2.34.0",
85
+ "@ditojs/build": "^2.34.2",
86
86
  "@vitejs/plugin-vue": "^5.1.4",
87
87
  "@vue/compiler-sfc": "^3.5.8",
88
88
  "pug": "^3.0.3",
@@ -91,5 +91,5 @@
91
91
  "vite": "^5.4.8"
92
92
  },
93
93
  "types": "types",
94
- "gitHead": "0258ece4af0f7dfbb9c11102bdf9defec72b1f15"
94
+ "gitHead": "305801f364bf3d0b663eb0aa4bcd5ef31d88beac"
95
95
  }
@@ -372,10 +372,13 @@ export default DitoTypeComponent.register('markup', {
372
372
  tools.history && History,
373
373
 
374
374
  HardBreak.extend({
375
- addKeyboardShortcuts() {
376
- return this.hardBreak
377
- ? { Enter: () => this.editor.commands.setHardBreak() }
378
- : {}
375
+ addKeyboardShortcuts: () => {
376
+ const callback = () => this.editor.commands.setHardBreak()
377
+ return {
378
+ 'Mod-Enter': callback,
379
+ 'Shift-Enter': callback,
380
+ ...(this.hardBreak ? { Enter: callback } : null)
381
+ }
379
382
  }
380
383
  })
381
384
  ].filter(extension => !!extension)