@live-change/prosemirror-service 0.3.3 → 0.3.5

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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -39,8 +39,11 @@ definition.view({
39
39
  returns: {
40
40
  type: Document
41
41
  },
42
- async daoPath({ document }, { client, context }) {
42
+ async daoPath(props, { client, context }) {
43
43
  if(testLatency) await sleep(testLatency)
44
+ const { targetType, target } = props
45
+ const document = App.encodeIdentifier([targetType, target])
46
+ //console.log("DOCUMENT DAO PATH", Document.path( document ))
44
47
  return Document.path( document )
45
48
  }
46
49
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/prosemirror-service",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,5 +28,5 @@
28
28
  "progress-stream": "^2.0.0",
29
29
  "prosemirror-model": "^1.18.1"
30
30
  },
31
- "gitHead": "046ebbe0c5be36b156f5e814b627b926dd968a95"
31
+ "gitHead": "eb7ced9f71036a979e7c469e5c01f9b131a9bfdf"
32
32
  }