Skip to content
Snippets Groups Projects
Commit ba70ab1a authored by Christos's avatar Christos
Browse files

Merge branch 'publish-new-comments' into 'master'

Publish new comments

See merge request !552
parents 7465d5ee 9208c715
No related branches found
No related tags found
1 merge request!552Publish new comments
Pipeline #59950 passed with stages
in 3 minutes and 15 seconds
{ {
"name": "demo", "name": "demo",
"version": "0.9.14", "version": "0.9.15",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@guardian/prosemirror-invisibles": "^1.2.0", "@guardian/prosemirror-invisibles": "^1.2.0",
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
"typeface-fira-sans-condensed": "^0.0.54", "typeface-fira-sans-condensed": "^0.0.54",
"typeface-inter": "^1.1.13", "typeface-inter": "^1.1.13",
"typeface-vollkorn": "^0.0.54", "typeface-vollkorn": "^0.0.54",
"wax-prosemirror-core": "^0.9.14", "wax-prosemirror-core": "^0.9.15",
"wax-prosemirror-services": "^0.9.14", "wax-prosemirror-services": "^0.9.15",
"wax-questions-service": "^0.9.14", "wax-questions-service": "^0.9.15",
"wax-table-service": "^0.9.14" "wax-table-service": "^0.9.15"
}, },
"scripts": { "scripts": {
"start": "react-app-rewired start", "start": "react-app-rewired start",
......
...@@ -55,7 +55,7 @@ const Editoria = () => { ...@@ -55,7 +55,7 @@ const Editoria = () => {
autoFocus autoFocus
placeholder="Type Something..." placeholder="Type Something..."
fileUpload={file => renderImage(file)} fileUpload={file => renderImage(file)}
value={demo} // value={demo}
// readonly // readonly
layout={layout} layout={layout}
// onChange={debounce(source => { // onChange={debounce(source => {
......
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
'HighlightToolGroup', 'HighlightToolGroup',
'TransformToolGroup', 'TransformToolGroup',
'CustomTagInline', 'CustomTagInline',
'Notes', // 'Notes',
'Lists', 'Lists',
'Images', 'Images',
'SpecialCharacters', 'SpecialCharacters',
...@@ -303,12 +303,12 @@ export default { ...@@ -303,12 +303,12 @@ export default {
], ],
updateTags: saveTags, updateTags: saveTags,
}, },
// YjsService: { YjsService: {
// // eslint-disable-next-line no-restricted-globals // eslint-disable-next-line no-restricted-globals
// connectionUrl: 'ws://localhost:4000', connectionUrl: 'ws://localhost:4000',
// docIdentifier: 'prosemirror-demo', docIdentifier: 'prosemirror-demo',
// YjsType: 'prosemirror', YjsType: 'prosemirror',
// }, },
AskAiContentService: { AskAiContentService: {
AskAiContentTransformation: DummyPromise, AskAiContentTransformation: DummyPromise,
...@@ -316,7 +316,7 @@ export default { ...@@ -316,7 +316,7 @@ export default {
}, },
services: [ services: [
// new YjsService(), new YjsService(),
new BlockDropDownToolGroupService(), new BlockDropDownToolGroupService(),
new AskAiContentService(), new AskAiContentService(),
new CustomTagService(), new CustomTagService(),
...@@ -330,7 +330,7 @@ export default { ...@@ -330,7 +330,7 @@ export default {
new ImageService(), new ImageService(),
new TablesService(), new TablesService(),
new BaseService(), new BaseService(),
new NoteService(), // new NoteService(),
new CodeBlockService(), new CodeBlockService(),
new EditingSuggestingService(), new EditingSuggestingService(),
new DisplayTextToolGroupService(), new DisplayTextToolGroupService(),
......
{ {
"lerna": "2.6.0", "lerna": "2.6.0",
"npmClient": "yarn", "npmClient": "yarn",
"version": "0.9.14", "version": "0.9.15",
"useWorkspaces": true "useWorkspaces": true
} }
{ {
"name": "wax-prosemirror-core", "name": "wax-prosemirror-core",
"author": "Christos Kokosias & Giannis Kopanas", "author": "Christos Kokosias & Giannis Kopanas",
"version": "0.9.14", "version": "0.9.15",
"description": "Wax prosemirror core", "description": "Wax prosemirror core",
"license": "MIT", "license": "MIT",
"main": "dist/index.js", "main": "dist/index.js",
......
{ {
"name": "wax-prosemirror-services", "name": "wax-prosemirror-services",
"author": "Christos Kokosias & Giannis Kopanas", "author": "Christos Kokosias & Giannis Kopanas",
"version": "0.9.14", "version": "0.9.15",
"description": "Wax prosemirror services", "description": "Wax prosemirror services",
"license": "MIT", "license": "MIT",
"main": "dist/index.js", "main": "dist/index.js",
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
"react-i18next": "^13.3.1", "react-i18next": "^13.3.1",
"use-deep-compare-effect": "^1.3.1", "use-deep-compare-effect": "^1.3.1",
"uuid": "^7.0.3", "uuid": "^7.0.3",
"wax-prosemirror-core": "^0.9.14", "wax-prosemirror-core": "^0.9.15",
"y-prosemirror": "1.2.0", "y-prosemirror": "1.2.0",
"y-protocols": "1.0.5", "y-protocols": "1.0.5",
"y-webrtc": "10.2.0", "y-webrtc": "10.2.0",
......
...@@ -19,6 +19,9 @@ export const CommentDecorationPlugin = (name, options) => { ...@@ -19,6 +19,9 @@ export const CommentDecorationPlugin = (name, options) => {
}); });
}, },
apply(transaction, pluginState, oldState, newState) { apply(transaction, pluginState, oldState, newState) {
console.log(transaction);
const yjsSync = transaction.getMeta('y-sync$');
if (yjsSync) console.log('hodododo');
return pluginState.apply(transaction, newState); return pluginState.apply(transaction, newState);
}, },
}, },
...@@ -36,9 +39,10 @@ export const CommentDecorationPlugin = (name, options) => { ...@@ -36,9 +39,10 @@ export const CommentDecorationPlugin = (name, options) => {
// options.onSelectionChange(annotations); // options.onSelectionChange(annotations);
options.onSelectionChange(this.getState(state).allCommentsList()); options.onSelectionChange(this.getState(state).allCommentsList());
this.getState(state).createDecorations(state);
} }
contentSize = state.doc.content.size; // contentSize = state.doc.content.size;
allCommentsCount = this.getState(state).allCommentsList().length; // allCommentsCount = this.getState(state).allCommentsList().length;
return decorations; return decorations;
}, },
}, },
......
{ {
"name": "wax-questions-service", "name": "wax-questions-service",
"author": "Christos Kokosias & Giannis Kopanas", "author": "Christos Kokosias & Giannis Kopanas",
"version": "0.9.14", "version": "0.9.15",
"description": "Wax Questions Service", "description": "Wax Questions Service",
"license": "MIT", "license": "MIT",
"main": "dist/index.js", "main": "dist/index.js",
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"react-i18next": "^13.3.1", "react-i18next": "^13.3.1",
"use-dynamic-refs": "^1.0.0", "use-dynamic-refs": "^1.0.0",
"uuid": "^7.0.3", "uuid": "^7.0.3",
"wax-prosemirror-core": "^0.9.14" "wax-prosemirror-core": "^0.9.15"
}, },
"devDependencies": { "devDependencies": {
"mocha": "^3.4.2", "mocha": "^3.4.2",
......
{ {
"name": "wax-table-service", "name": "wax-table-service",
"author": "Christos Kokosias & Giannis Kopanas", "author": "Christos Kokosias & Giannis Kopanas",
"version": "0.9.14", "version": "0.9.15",
"description": "Wax Table Service", "description": "Wax Table Service",
"license": "MIT", "license": "MIT",
"main": "dist/index.js", "main": "dist/index.js",
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"prosemirror-view": "1.30.2", "prosemirror-view": "1.30.2",
"react-i18next": "^13.3.1", "react-i18next": "^13.3.1",
"uuid": "^7.0.3", "uuid": "^7.0.3",
"wax-prosemirror-core": "^0.9.14" "wax-prosemirror-core": "^0.9.15"
}, },
"devDependencies": { "devDependencies": {
"mocha": "^3.4.2", "mocha": "^3.4.2",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment