@atlaskit/editor-plugin-show-diff 0.1.3 → 0.1.4
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/CHANGELOG.md +7 -0
- package/dist/cjs/pm-plugins/NodeViewSerializer.js +1 -2
- package/dist/es2019/pm-plugins/NodeViewSerializer.js +1 -2
- package/dist/esm/pm-plugins/NodeViewSerializer.js +1 -2
- package/dist/types/pm-plugins/NodeViewSerializer.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/NodeViewSerializer.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-show-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1fc9ea612c6ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1fc9ea612c6ef) -
|
|
8
|
+
[EDITOR-1358] Fix nit + minor local bug
|
|
9
|
+
|
|
3
10
|
## 0.1.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -53,7 +53,7 @@ var NodeViewSerializer = exports.NodeViewSerializer = /*#__PURE__*/function () {
|
|
|
53
53
|
this.editorView = params.editorView;
|
|
54
54
|
}
|
|
55
55
|
this.nodeViews = (_ref = (_params$nodeViews = params.nodeViews) !== null && _params$nodeViews !== void 0 ? _params$nodeViews : (_this$editorView = this.editorView) === null || _this$editorView === void 0 ? void 0 : _this$editorView.nodeViews) !== null && _ref !== void 0 ? _ref : {};
|
|
56
|
-
this.nodeViewBlocklist = new Set((_params$blocklist = params.blocklist) !== null && _params$blocklist !== void 0 ? _params$blocklist : ['tableRow', 'table']);
|
|
56
|
+
this.nodeViewBlocklist = new Set((_params$blocklist = params.blocklist) !== null && _params$blocklist !== void 0 ? _params$blocklist : ['tableRow', 'table', 'paragraph']);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -92,7 +92,6 @@ var NodeViewSerializer = exports.NodeViewSerializer = /*#__PURE__*/function () {
|
|
|
92
92
|
/**
|
|
93
93
|
* Serializes a fragment to a `DocumentFragment` using the schema's `DOMSerializer`.
|
|
94
94
|
*/
|
|
95
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
96
95
|
}, {
|
|
97
96
|
key: "serializeFragment",
|
|
98
97
|
value: function serializeFragment(fragment) {
|
|
@@ -43,7 +43,7 @@ export class NodeViewSerializer {
|
|
|
43
43
|
this.editorView = params.editorView;
|
|
44
44
|
}
|
|
45
45
|
this.nodeViews = (_ref = (_params$nodeViews = params.nodeViews) !== null && _params$nodeViews !== void 0 ? _params$nodeViews : (_this$editorView = this.editorView) === null || _this$editorView === void 0 ? void 0 : _this$editorView.nodeViews) !== null && _ref !== void 0 ? _ref : {};
|
|
46
|
-
this.nodeViewBlocklist = new Set((_params$blocklist = params.blocklist) !== null && _params$blocklist !== void 0 ? _params$blocklist : ['tableRow', 'table']);
|
|
46
|
+
this.nodeViewBlocklist = new Set((_params$blocklist = params.blocklist) !== null && _params$blocklist !== void 0 ? _params$blocklist : ['tableRow', 'table', 'paragraph']);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -76,7 +76,6 @@ export class NodeViewSerializer {
|
|
|
76
76
|
/**
|
|
77
77
|
* Serializes a fragment to a `DocumentFragment` using the schema's `DOMSerializer`.
|
|
78
78
|
*/
|
|
79
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
80
79
|
serializeFragment(fragment) {
|
|
81
80
|
return this.serializer.serializeFragment(fragment);
|
|
82
81
|
}
|
|
@@ -46,7 +46,7 @@ export var NodeViewSerializer = /*#__PURE__*/function () {
|
|
|
46
46
|
this.editorView = params.editorView;
|
|
47
47
|
}
|
|
48
48
|
this.nodeViews = (_ref = (_params$nodeViews = params.nodeViews) !== null && _params$nodeViews !== void 0 ? _params$nodeViews : (_this$editorView = this.editorView) === null || _this$editorView === void 0 ? void 0 : _this$editorView.nodeViews) !== null && _ref !== void 0 ? _ref : {};
|
|
49
|
-
this.nodeViewBlocklist = new Set((_params$blocklist = params.blocklist) !== null && _params$blocklist !== void 0 ? _params$blocklist : ['tableRow', 'table']);
|
|
49
|
+
this.nodeViewBlocklist = new Set((_params$blocklist = params.blocklist) !== null && _params$blocklist !== void 0 ? _params$blocklist : ['tableRow', 'table', 'paragraph']);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -85,7 +85,6 @@ export var NodeViewSerializer = /*#__PURE__*/function () {
|
|
|
85
85
|
/**
|
|
86
86
|
* Serializes a fragment to a `DocumentFragment` using the schema's `DOMSerializer`.
|
|
87
87
|
*/
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89
88
|
}, {
|
|
90
89
|
key: "serializeFragment",
|
|
91
90
|
value: function serializeFragment(fragment) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import type { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Schema, Node as PMNode, Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
/**
|
|
5
5
|
* Utilities for working with ProseMirror node views and DOM serialization within the
|
|
@@ -58,5 +58,5 @@ export declare class NodeViewSerializer {
|
|
|
58
58
|
/**
|
|
59
59
|
* Serializes a fragment to a `DocumentFragment` using the schema's `DOMSerializer`.
|
|
60
60
|
*/
|
|
61
|
-
serializeFragment(fragment:
|
|
61
|
+
serializeFragment(fragment: Fragment): DocumentFragment | HTMLElement;
|
|
62
62
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import type { Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Schema, Node as PMNode, Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
/**
|
|
5
5
|
* Utilities for working with ProseMirror node views and DOM serialization within the
|
|
@@ -58,5 +58,5 @@ export declare class NodeViewSerializer {
|
|
|
58
58
|
/**
|
|
59
59
|
* Serializes a fragment to a `DocumentFragment` using the schema's `DOMSerializer`.
|
|
60
60
|
*/
|
|
61
|
-
serializeFragment(fragment:
|
|
61
|
+
serializeFragment(fragment: Fragment): DocumentFragment | HTMLElement;
|
|
62
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-show-diff",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"prosemirror-changeset": "^2.2.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@atlaskit/editor-common": "^107.
|
|
40
|
+
"@atlaskit/editor-common": "^107.26.0",
|
|
41
41
|
"react": "^18.2.0"
|
|
42
42
|
},
|
|
43
43
|
"techstack": {
|