@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/dist/dito-admin.css +1 -1
- package/dist/dito-admin.es.js +30 -27
- package/dist/dito-admin.umd.js +3 -3
- package/package.json +37 -35
- package/src/types/DitoTypeMarkup.vue +24 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.
|
|
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": ">=
|
|
36
|
-
"yarn": ">=
|
|
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.
|
|
46
|
-
"@ditojs/utils": "^2.
|
|
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": "^
|
|
50
|
-
"@tiptap/extension-blockquote": "^
|
|
51
|
-
"@tiptap/extension-bold": "^
|
|
52
|
-
"@tiptap/extension-bullet-list": "^
|
|
53
|
-
"@tiptap/extension-code": "^
|
|
54
|
-
"@tiptap/extension-code-block": "^
|
|
55
|
-
"@tiptap/extension-document": "^
|
|
56
|
-
"@tiptap/extension-hard-break": "^
|
|
57
|
-
"@tiptap/extension-heading": "^
|
|
58
|
-
"@tiptap/extension-history": "^
|
|
59
|
-
"@tiptap/extension-horizontal-rule": "^
|
|
60
|
-
"@tiptap/extension-italic": "^
|
|
61
|
-
"@tiptap/extension-link": "^
|
|
62
|
-
"@tiptap/extension-list
|
|
63
|
-
"@tiptap/extension-
|
|
64
|
-
"@tiptap/extension-
|
|
65
|
-
"@tiptap/extension-
|
|
66
|
-
"@tiptap/extension-
|
|
67
|
-
"@tiptap/extension-
|
|
68
|
-
"@tiptap/extension-
|
|
69
|
-
"@tiptap/extension-text
|
|
70
|
-
"@tiptap/extension-
|
|
71
|
-
"@tiptap/
|
|
72
|
-
"@tiptap/
|
|
73
|
-
"@
|
|
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": "
|
|
84
|
+
"tiptap-footnotes": "github:ditojs/tiptap-footnotes#dito",
|
|
83
85
|
"type-fest": "^4.41.0",
|
|
84
|
-
"vue": "^3.5.
|
|
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.
|
|
92
|
+
"@ditojs/build": "^2.58.0",
|
|
91
93
|
"typescript": "^5.9.2",
|
|
92
|
-
"vite": "^7.1.
|
|
94
|
+
"vite": "^7.1.3"
|
|
93
95
|
},
|
|
94
|
-
"gitHead": "
|
|
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,
|
|
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
|
-
|
|
504
|
-
|
|
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
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
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
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
531
|
+
renderHTML({ HTMLAttributes }) {
|
|
532
|
+
return ['a', HTMLAttributes, 0]
|
|
528
533
|
}
|
|
529
534
|
})
|
|
530
535
|
</script>
|