@live-change/content-service 0.3.41 → 0.4.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/definition.js +5 -4
- package/index.js +5 -6
- package/metadata.js +4 -2
- package/model.js +3 -3
- package/package.json +5 -4
package/definition.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
|
+
const app = App.app()
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
import relationsPlugin from '@live-change/relations-plugin'
|
|
5
|
+
import accessControlService from '@live-change/access-control-service'
|
|
5
6
|
|
|
6
7
|
const definition = app.createServiceDefinition({
|
|
7
8
|
name: "content",
|
|
8
9
|
use: [ relationsPlugin, accessControlService ]
|
|
9
10
|
})
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
export default definition
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
2
|
const app = App.app()
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import definition from './definition.js'
|
|
5
5
|
|
|
6
6
|
const config = definition.config
|
|
7
7
|
const {
|
|
@@ -10,9 +10,8 @@ const {
|
|
|
10
10
|
contentPublisherRoles = ['writer']
|
|
11
11
|
} = config
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const { Metadata } = require("./metadata.js")
|
|
13
|
+
import { Content } from "./model.js"
|
|
14
|
+
import { Metadata } from "./metadata.js"
|
|
16
15
|
const Snapshot = definition.foreignModel("prosemirror", "Snapshot")
|
|
17
16
|
|
|
18
17
|
definition.view({
|
|
@@ -172,4 +171,4 @@ definition.action({
|
|
|
172
171
|
}
|
|
173
172
|
})
|
|
174
173
|
|
|
175
|
-
|
|
174
|
+
export default definition
|
package/metadata.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
2
|
const app = App.app()
|
|
3
|
-
|
|
3
|
+
import definition from './definition.js'
|
|
4
4
|
|
|
5
5
|
const config = definition.config
|
|
6
6
|
const {
|
|
@@ -246,3 +246,5 @@ const Metadata = definition.model({
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
})
|
|
249
|
+
|
|
250
|
+
export { Metadata }
|
package/model.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
2
|
const app = App.app()
|
|
3
|
-
|
|
3
|
+
import definition from './definition.js'
|
|
4
4
|
|
|
5
5
|
const config = definition.config
|
|
6
6
|
const {
|
|
@@ -63,4 +63,4 @@ const Page = definition.model({
|
|
|
63
63
|
},
|
|
64
64
|
})
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
export { Content, AdditionalContent, Page }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/content-service",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "0.
|
|
25
|
-
"@live-change/relations-plugin": "0.
|
|
24
|
+
"@live-change/framework": "0.8.0",
|
|
25
|
+
"@live-change/relations-plugin": "0.8.0",
|
|
26
26
|
"lru-cache": "^7.12.0",
|
|
27
27
|
"pluralize": "^8.0.0",
|
|
28
28
|
"progress-stream": "^2.0.0",
|
|
29
29
|
"prosemirror-model": "^1.18.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "74215655da2a4bc3ef73c62e5d79d988276165e8",
|
|
32
|
+
"type": "module"
|
|
32
33
|
}
|