@ditojs/admin 2.56.0 → 2.58.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/admin",
3
- "version": "2.56.0",
3
+ "version": "2.58.0",
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",
@@ -32,8 +32,8 @@
32
32
  "types": "tsc --noEmit types/index.d.ts"
33
33
  },
34
34
  "engines": {
35
- "node": ">= 18.0.0",
36
- "yarn": ">= 1.0.0"
35
+ "node": ">= 20.0.0",
36
+ "yarn": ">= 4.0.0"
37
37
  },
38
38
  "browserslist": [
39
39
  "> 1%",
@@ -42,35 +42,37 @@
42
42
  "not ie_mob > 0"
43
43
  ],
44
44
  "dependencies": {
45
- "@ditojs/ui": "^2.56.0",
46
- "@ditojs/utils": "^2.56.0",
45
+ "@ditojs/ui": "^2.58.0",
46
+ "@ditojs/utils": "^2.58.0",
47
47
  "@kyvg/vue3-notification": "^3.4.1",
48
48
  "@lk77/vue3-color": "^3.0.6",
49
- "@tiptap/core": "^2.26.1",
50
- "@tiptap/extension-blockquote": "^2.26.1",
51
- "@tiptap/extension-bold": "^2.26.1",
52
- "@tiptap/extension-bullet-list": "^2.26.1",
53
- "@tiptap/extension-code": "^2.26.1",
54
- "@tiptap/extension-code-block": "^2.26.1",
55
- "@tiptap/extension-document": "^2.26.1",
56
- "@tiptap/extension-hard-break": "^2.26.1",
57
- "@tiptap/extension-heading": "^2.26.1",
58
- "@tiptap/extension-history": "^2.26.1",
59
- "@tiptap/extension-horizontal-rule": "^2.26.1",
60
- "@tiptap/extension-italic": "^2.26.1",
61
- "@tiptap/extension-link": "^2.26.1",
62
- "@tiptap/extension-list-item": "^2.26.1",
63
- "@tiptap/extension-ordered-list": "^2.26.1",
64
- "@tiptap/extension-paragraph": "^2.26.1",
65
- "@tiptap/extension-strike": "^2.26.1",
66
- "@tiptap/extension-subscript": "^2.26.1",
67
- "@tiptap/extension-superscript": "^2.26.1",
68
- "@tiptap/extension-text": "^2.26.1",
69
- "@tiptap/extension-text-style": "^2.26.1",
70
- "@tiptap/extension-underline": "^2.26.1",
71
- "@tiptap/pm": "^2.26.1",
72
- "@tiptap/vue-3": "^2.26.1",
73
- "@vueuse/integrations": "^13.6.0",
49
+ "@tiptap/core": "^3.3.0",
50
+ "@tiptap/extension-blockquote": "^3.3.0",
51
+ "@tiptap/extension-bold": "^3.3.0",
52
+ "@tiptap/extension-bullet-list": "^3.3.0",
53
+ "@tiptap/extension-code": "^3.3.0",
54
+ "@tiptap/extension-code-block": "^3.3.0",
55
+ "@tiptap/extension-document": "^3.3.0",
56
+ "@tiptap/extension-hard-break": "^3.3.0",
57
+ "@tiptap/extension-heading": "^3.3.0",
58
+ "@tiptap/extension-history": "^3.3.0",
59
+ "@tiptap/extension-horizontal-rule": "^3.3.0",
60
+ "@tiptap/extension-italic": "^3.3.0",
61
+ "@tiptap/extension-link": "^3.3.0",
62
+ "@tiptap/extension-list": "^3.3.0",
63
+ "@tiptap/extension-list-item": "^3.3.0",
64
+ "@tiptap/extension-ordered-list": "^3.3.0",
65
+ "@tiptap/extension-paragraph": "^3.3.0",
66
+ "@tiptap/extension-strike": "^3.3.0",
67
+ "@tiptap/extension-subscript": "^3.3.0",
68
+ "@tiptap/extension-superscript": "^3.3.0",
69
+ "@tiptap/extension-text": "^3.3.0",
70
+ "@tiptap/extension-text-style": "^3.3.0",
71
+ "@tiptap/extension-underline": "^3.3.0",
72
+ "@tiptap/extensions": "^3.3.0",
73
+ "@tiptap/pm": "^3.3.0",
74
+ "@tiptap/vue-3": "^3.3.0",
75
+ "@vueuse/integrations": "^13.8.0",
74
76
  "codeflask": "^1.4.1",
75
77
  "filesize": "^11.0.2",
76
78
  "filesize-parser": "^1.5.1",
@@ -79,17 +81,17 @@
79
81
  "sortablejs": "^1.15.6",
80
82
  "tinycolor2": "^1.6.0",
81
83
  "tippy.js": "^6.3.7",
82
- "tiptap-footnotes": "^2.0.4",
84
+ "tiptap-footnotes": "github:ditojs/tiptap-footnotes#dito",
83
85
  "type-fest": "^4.41.0",
84
- "vue": "^3.5.18",
86
+ "vue": "^3.5.20",
85
87
  "vue-multiselect": "^3.3.1",
86
88
  "vue-router": "^4.5.1",
87
89
  "vue-upload-component": "^3.1.17"
88
90
  },
89
91
  "devDependencies": {
90
- "@ditojs/build": "^2.56.0",
92
+ "@ditojs/build": "^2.58.0",
91
93
  "typescript": "^5.9.2",
92
- "vite": "^7.1.2"
94
+ "vite": "^7.1.3"
93
95
  },
94
- "gitHead": "1a6dabde4d0c91ba29740ac71e9cf7928c691bf0"
96
+ "gitHead": "fe705032f2aa2a00d5c7fc740b61587861ff7519"
95
97
  }
@@ -52,7 +52,8 @@ import { HorizontalRule } from '@tiptap/extension-horizontal-rule'
52
52
  import { OrderedList } from '@tiptap/extension-ordered-list'
53
53
  import { BulletList } from '@tiptap/extension-bullet-list'
54
54
  import { ListItem } from '@tiptap/extension-list-item'
55
- // Footnotes:
55
+ // Footnotes: Using TipTap v3 compatible version based on PR #22m:
56
+ // https://github.com/buttondown/tiptap-footnotes/pull/22
56
57
  import { Footnotes, FootnoteReference, Footnote } from 'tiptap-footnotes'
57
58
  // TODO:
58
59
  // import { Image } from '@tiptap/extension-image'
@@ -248,7 +249,10 @@ export default DitoTypeComponent.register('markup', {
248
249
  const content = this.hardBreak
249
250
  ? `<p>${value}</p>`
250
251
  : value
251
- this.editor.commands.setContent(content, false, this.parseOptions)
252
+ this.editor.commands.setContent(content, {
253
+ emitUpdate: false,
254
+ parseOptions: this.parseOptions
255
+ })
252
256
  }
253
257
  })
254
258
 
@@ -500,31 +504,32 @@ const Small = Mark.create({
500
504
 
501
505
  const LinkWithTitle = Link.extend({
502
506
  inclusive: false,
503
- schema: {
504
- attrs: {
507
+
508
+ addAttributes() {
509
+ return {
505
510
  href: {
506
511
  default: null
507
512
  },
508
513
  title: {
509
514
  default: null
510
515
  }
511
- },
516
+ }
517
+ },
512
518
 
513
- parseHTML() {
514
- return [
515
- {
516
- tag: 'a',
517
- getAttrs: element => ({
518
- href: element.getAttribute('href'),
519
- title: element.getAttribute('title')
520
- })
521
- }
522
- ]
523
- },
519
+ parseHTML() {
520
+ return [
521
+ {
522
+ tag: 'a',
523
+ getAttrs: element => ({
524
+ href: element.getAttribute('href'),
525
+ title: element.getAttribute('title')
526
+ })
527
+ }
528
+ ]
529
+ },
524
530
 
525
- renderHTML(node) {
526
- return ['a', node.attrs, 0]
527
- }
531
+ renderHTML({ HTMLAttributes }) {
532
+ return ['a', HTMLAttributes, 0]
528
533
  }
529
534
  })
530
535
  </script>