@ditojs/admin 2.57.0 → 2.58.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/dito-admin.es.js +23 -20
- package/dist/dito-admin.umd.js +3 -3
- package/package.json +34 -32
- package/src/types/DitoTypeMarkup.vue +30 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.58.1",
|
|
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,34 +42,37 @@
|
|
|
42
42
|
"not ie_mob > 0"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ditojs/
|
|
46
|
-
"@ditojs/
|
|
45
|
+
"@ditojs/tiptap-footnotes": "^3.0.0",
|
|
46
|
+
"@ditojs/ui": "^2.58.0",
|
|
47
|
+
"@ditojs/utils": "^2.58.0",
|
|
47
48
|
"@kyvg/vue3-notification": "^3.4.1",
|
|
48
49
|
"@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/
|
|
50
|
+
"@tiptap/core": "^3.3.0",
|
|
51
|
+
"@tiptap/extension-blockquote": "^3.3.0",
|
|
52
|
+
"@tiptap/extension-bold": "^3.3.0",
|
|
53
|
+
"@tiptap/extension-bullet-list": "^3.3.0",
|
|
54
|
+
"@tiptap/extension-code": "^3.3.0",
|
|
55
|
+
"@tiptap/extension-code-block": "^3.3.0",
|
|
56
|
+
"@tiptap/extension-document": "^3.3.0",
|
|
57
|
+
"@tiptap/extension-hard-break": "^3.3.0",
|
|
58
|
+
"@tiptap/extension-heading": "^3.3.0",
|
|
59
|
+
"@tiptap/extension-history": "^3.3.0",
|
|
60
|
+
"@tiptap/extension-horizontal-rule": "^3.3.0",
|
|
61
|
+
"@tiptap/extension-italic": "^3.3.0",
|
|
62
|
+
"@tiptap/extension-link": "^3.3.0",
|
|
63
|
+
"@tiptap/extension-list": "^3.3.0",
|
|
64
|
+
"@tiptap/extension-list-item": "^3.3.0",
|
|
65
|
+
"@tiptap/extension-ordered-list": "^3.3.0",
|
|
66
|
+
"@tiptap/extension-paragraph": "^3.3.0",
|
|
67
|
+
"@tiptap/extension-strike": "^3.3.0",
|
|
68
|
+
"@tiptap/extension-subscript": "^3.3.0",
|
|
69
|
+
"@tiptap/extension-superscript": "^3.3.0",
|
|
70
|
+
"@tiptap/extension-text": "^3.3.0",
|
|
71
|
+
"@tiptap/extension-text-style": "^3.3.0",
|
|
72
|
+
"@tiptap/extension-underline": "^3.3.0",
|
|
73
|
+
"@tiptap/extensions": "^3.3.0",
|
|
74
|
+
"@tiptap/pm": "^3.3.0",
|
|
75
|
+
"@tiptap/vue-3": "^3.3.0",
|
|
73
76
|
"@vueuse/integrations": "^13.8.0",
|
|
74
77
|
"codeflask": "^1.4.1",
|
|
75
78
|
"filesize": "^11.0.2",
|
|
@@ -79,7 +82,6 @@
|
|
|
79
82
|
"sortablejs": "^1.15.6",
|
|
80
83
|
"tinycolor2": "^1.6.0",
|
|
81
84
|
"tippy.js": "^6.3.7",
|
|
82
|
-
"tiptap-footnotes": "^2.0.4",
|
|
83
85
|
"type-fest": "^4.41.0",
|
|
84
86
|
"vue": "^3.5.20",
|
|
85
87
|
"vue-multiselect": "^3.3.1",
|
|
@@ -87,9 +89,9 @@
|
|
|
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
94
|
"vite": "^7.1.3"
|
|
93
95
|
},
|
|
94
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "526954a7896e959d50477f9f16dd18b495519847"
|
|
95
97
|
}
|
|
@@ -52,8 +52,14 @@ 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:
|
|
56
|
-
|
|
55
|
+
// Footnotes: Using TipTap v3 compatible version based on PR #22:
|
|
56
|
+
// https://github.com/ditojs/tiptap-footnotes/tree/dito
|
|
57
|
+
// https://github.com/buttondown/tiptap-footnotes/pull/22
|
|
58
|
+
import {
|
|
59
|
+
Footnotes,
|
|
60
|
+
FootnoteReference,
|
|
61
|
+
Footnote
|
|
62
|
+
} from '@ditojs/tiptap-footnotes'
|
|
57
63
|
// TODO:
|
|
58
64
|
// import { Image } from '@tiptap/extension-image'
|
|
59
65
|
// import { Mention } from '@tiptap/extension-mention'
|
|
@@ -248,7 +254,10 @@ export default DitoTypeComponent.register('markup', {
|
|
|
248
254
|
const content = this.hardBreak
|
|
249
255
|
? `<p>${value}</p>`
|
|
250
256
|
: value
|
|
251
|
-
this.editor.commands.setContent(content,
|
|
257
|
+
this.editor.commands.setContent(content, {
|
|
258
|
+
emitUpdate: false,
|
|
259
|
+
parseOptions: this.parseOptions
|
|
260
|
+
})
|
|
252
261
|
}
|
|
253
262
|
})
|
|
254
263
|
|
|
@@ -500,31 +509,32 @@ const Small = Mark.create({
|
|
|
500
509
|
|
|
501
510
|
const LinkWithTitle = Link.extend({
|
|
502
511
|
inclusive: false,
|
|
503
|
-
|
|
504
|
-
|
|
512
|
+
|
|
513
|
+
addAttributes() {
|
|
514
|
+
return {
|
|
505
515
|
href: {
|
|
506
516
|
default: null
|
|
507
517
|
},
|
|
508
518
|
title: {
|
|
509
519
|
default: null
|
|
510
520
|
}
|
|
511
|
-
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
512
523
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
+
parseHTML() {
|
|
525
|
+
return [
|
|
526
|
+
{
|
|
527
|
+
tag: 'a',
|
|
528
|
+
getAttrs: element => ({
|
|
529
|
+
href: element.getAttribute('href'),
|
|
530
|
+
title: element.getAttribute('title')
|
|
531
|
+
})
|
|
532
|
+
}
|
|
533
|
+
]
|
|
534
|
+
},
|
|
524
535
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
536
|
+
renderHTML({ HTMLAttributes }) {
|
|
537
|
+
return ['a', HTMLAttributes, 0]
|
|
528
538
|
}
|
|
529
539
|
})
|
|
530
540
|
</script>
|