@live-change/content-frontend 0.2.12 → 0.2.15
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.
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</Accordion>
|
|
24
24
|
|
|
25
25
|
<DocumentEditor v-if="pageData" targetType="content_Page" :target="pageId" purpose="page"
|
|
26
|
-
:config="contentConfig" type="
|
|
26
|
+
:config="contentConfig" type="page" v-model:saveState="saveState" v-model:version="version">
|
|
27
27
|
<template #menuEnd="{}">
|
|
28
28
|
|
|
29
29
|
<Button icon="pi pi-eye" label="Preview" class="p-button-secondary p-button-sm mr-1 mb-1" />
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
live(liveCanonicalUrlPath),
|
|
111
111
|
live(livePublicAccessPath),
|
|
112
112
|
live(liveMetadataPath)
|
|
113
|
-
])
|
|
113
|
+
]).catch(e => [null, null, null, null])
|
|
114
114
|
|
|
115
115
|
const publicAccessLevel = computed(() => {
|
|
116
116
|
if(publicAccessData?.sessionRoles?.includes('reader')) return 'session'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { config } from "@live-change/wysiwyg-frontend"
|
|
2
2
|
|
|
3
|
-
const { basicMarks,
|
|
3
|
+
const { basicMarks, pageNodes } = config
|
|
4
4
|
|
|
5
5
|
const contentConfig = {
|
|
6
6
|
marks: {
|
|
@@ -8,7 +8,8 @@ const contentConfig = {
|
|
|
8
8
|
},
|
|
9
9
|
nodes: {
|
|
10
10
|
//...messageNodes,
|
|
11
|
-
|
|
11
|
+
//...richEditorNodes
|
|
12
|
+
...pageNodes
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/content-frontend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -26,14 +26,10 @@
|
|
|
26
26
|
"@live-change/dao-vue3": "0.5.8",
|
|
27
27
|
"@live-change/dao-websocket": "0.5.8",
|
|
28
28
|
"@live-change/framework": "0.7.5",
|
|
29
|
-
"@live-change/image-service": "0.3.
|
|
30
|
-
"@live-change/session-service": "0.3.
|
|
29
|
+
"@live-change/image-service": "0.3.5",
|
|
30
|
+
"@live-change/session-service": "0.3.5",
|
|
31
31
|
"@live-change/vue3-components": "0.2.16",
|
|
32
32
|
"@live-change/vue3-ssr": "0.2.16",
|
|
33
|
-
"@tiptap/extension-highlight": "^2.0.0-beta.33",
|
|
34
|
-
"@tiptap/extension-underline": "2.0.0-beta.23",
|
|
35
|
-
"@tiptap/starter-kit": "^2.0.0-beta.185",
|
|
36
|
-
"@tiptap/vue-3": "2.0.0-beta.91",
|
|
37
33
|
"@vueuse/core": "^9.1.0",
|
|
38
34
|
"codeceptjs-assert": "^0.0.5",
|
|
39
35
|
"compression": "^1.7.4",
|
|
@@ -67,5 +63,5 @@
|
|
|
67
63
|
"author": "",
|
|
68
64
|
"license": "ISC",
|
|
69
65
|
"description": "",
|
|
70
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "c3a1b57517db93829f3a733379a82496651c1039"
|
|
71
67
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"marks": {
|
|
3
|
+
"bold": {},
|
|
4
|
+
"italic": {},
|
|
5
|
+
"underline": {},
|
|
6
|
+
"strike": {}
|
|
7
|
+
},
|
|
8
|
+
"nodes": {
|
|
9
|
+
"paragraph": {
|
|
10
|
+
"content": "inline*",
|
|
11
|
+
"group": "block"
|
|
12
|
+
},
|
|
13
|
+
"horizontalRule": {
|
|
14
|
+
"group": "block"
|
|
15
|
+
},
|
|
16
|
+
"heading": {
|
|
17
|
+
"content": "inline*",
|
|
18
|
+
"group": "block",
|
|
19
|
+
"defining": true,
|
|
20
|
+
"attrs": {
|
|
21
|
+
"level": {
|
|
22
|
+
"default": 1
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"blockquote": {
|
|
27
|
+
"content": "block+",
|
|
28
|
+
"group": "block",
|
|
29
|
+
"defining": true
|
|
30
|
+
},
|
|
31
|
+
"codeBlock": {
|
|
32
|
+
"content": "text*",
|
|
33
|
+
"marks": "",
|
|
34
|
+
"group": "block",
|
|
35
|
+
"code": true,
|
|
36
|
+
"defining": true,
|
|
37
|
+
"attrs": {
|
|
38
|
+
"language": {
|
|
39
|
+
"default": null
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"bulletList": {
|
|
44
|
+
"content": "listItem+",
|
|
45
|
+
"group": "block list"
|
|
46
|
+
},
|
|
47
|
+
"orderedList": {
|
|
48
|
+
"content": "listItem+",
|
|
49
|
+
"group": "block list",
|
|
50
|
+
"attrs": {
|
|
51
|
+
"start": {
|
|
52
|
+
"default": 1
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"listItem": {
|
|
57
|
+
"content": "paragraph block*",
|
|
58
|
+
"defining": true
|
|
59
|
+
},
|
|
60
|
+
"image": {
|
|
61
|
+
"content": "",
|
|
62
|
+
"marks": "",
|
|
63
|
+
"group": "block",
|
|
64
|
+
"inline": false,
|
|
65
|
+
"atom": true,
|
|
66
|
+
"selectable": true,
|
|
67
|
+
"draggable": true,
|
|
68
|
+
"attrs": {
|
|
69
|
+
"image": {
|
|
70
|
+
"default": null
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"doc": {
|
|
75
|
+
"content": "block+"
|
|
76
|
+
},
|
|
77
|
+
"text": {
|
|
78
|
+
"group": "inline"
|
|
79
|
+
},
|
|
80
|
+
"hardBreak": {
|
|
81
|
+
"group": "inline",
|
|
82
|
+
"inline": true,
|
|
83
|
+
"selectable": false
|
|
84
|
+
},
|
|
85
|
+
"component": {
|
|
86
|
+
"content": "block*",
|
|
87
|
+
"marks": "",
|
|
88
|
+
"group": "block",
|
|
89
|
+
"inline": false,
|
|
90
|
+
"selectable": true,
|
|
91
|
+
"draggable": true,
|
|
92
|
+
"attrs": {
|
|
93
|
+
"is": {
|
|
94
|
+
"default": "card"
|
|
95
|
+
},
|
|
96
|
+
"attrs": {
|
|
97
|
+
"default": {}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"topNode": "doc"
|
|
103
|
+
}
|
|
File without changes
|
|
@@ -43,7 +43,8 @@ module.exports = {
|
|
|
43
43
|
name: 'prosemirror',
|
|
44
44
|
path: '@live-change/prosemirror-service',
|
|
45
45
|
documentTypes: {
|
|
46
|
-
|
|
46
|
+
page: require('./page.documentType.js'),
|
|
47
|
+
rich: require('./rich.documentType.js'),
|
|
47
48
|
},
|
|
48
49
|
testLatency: 2000
|
|
49
50
|
},
|