@atlaskit/editor-plugin-show-diff 10.1.10 → 10.1.12
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 +17 -0
- package/dist/cjs/pm-plugins/calculateDiff/calculateDiffDecorations.js +118 -31
- package/dist/cjs/pm-plugins/calculateDiff/diffBySteps.js +124 -1
- package/dist/cjs/pm-plugins/decorations/colorSchemes/standard.js +6 -1
- package/dist/cjs/pm-plugins/decorations/createBlockChangedDecoration.js +17 -0
- package/dist/cjs/pm-plugins/decorations/createGranularBlockReferenceWidget.js +125 -0
- package/dist/cjs/pm-plugins/decorations/createNodeChangedDecorationWidget.js +50 -105
- package/dist/cjs/pm-plugins/decorations/utils/wrapBlockNodeView.js +79 -1
- package/dist/es2019/pm-plugins/calculateDiff/calculateDiffDecorations.js +91 -7
- package/dist/es2019/pm-plugins/calculateDiff/diffBySteps.js +104 -0
- package/dist/es2019/pm-plugins/decorations/colorSchemes/standard.js +5 -0
- package/dist/es2019/pm-plugins/decorations/createBlockChangedDecoration.js +18 -1
- package/dist/es2019/pm-plugins/decorations/createGranularBlockReferenceWidget.js +120 -0
- package/dist/es2019/pm-plugins/decorations/createNodeChangedDecorationWidget.js +41 -89
- package/dist/es2019/pm-plugins/decorations/utils/wrapBlockNodeView.js +74 -2
- package/dist/esm/pm-plugins/calculateDiff/calculateDiffDecorations.js +119 -32
- package/dist/esm/pm-plugins/calculateDiff/diffBySteps.js +123 -0
- package/dist/esm/pm-plugins/decorations/colorSchemes/standard.js +5 -0
- package/dist/esm/pm-plugins/decorations/createBlockChangedDecoration.js +18 -1
- package/dist/esm/pm-plugins/decorations/createGranularBlockReferenceWidget.js +120 -0
- package/dist/esm/pm-plugins/decorations/createNodeChangedDecorationWidget.js +46 -100
- package/dist/esm/pm-plugins/decorations/utils/wrapBlockNodeView.js +79 -2
- package/dist/types/pm-plugins/calculateDiff/diffBySteps.d.ts +20 -0
- package/dist/types/pm-plugins/decorations/colorSchemes/standard.d.ts +1 -0
- package/dist/types/pm-plugins/decorations/createGranularBlockReferenceWidget.d.ts +36 -0
- package/dist/types/pm-plugins/decorations/utils/wrapBlockNodeView.d.ts +15 -0
- package/package.json +2 -2
|
@@ -15,3 +15,18 @@ export declare const wrapBlockNodeView: ({ dom, nodeView, targetNode, colorSchem
|
|
|
15
15
|
nodeView: Node;
|
|
16
16
|
targetNode: PMNode;
|
|
17
17
|
}) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Injects a styled inner wrapper span around the children of a block node element.
|
|
20
|
+
* CSS backgrounds don't work when applied to a wrapper around a paragraph, so
|
|
21
|
+
* the wrapper needs to be injected inside the node around the child content.
|
|
22
|
+
*/
|
|
23
|
+
export declare const injectInnerWrapper: ({ node, colorScheme, isActive, isInserted, }: {
|
|
24
|
+
colorScheme?: ColorScheme;
|
|
25
|
+
isActive?: boolean;
|
|
26
|
+
isInserted?: boolean;
|
|
27
|
+
node: HTMLElement;
|
|
28
|
+
}) => HTMLElement;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a styled span wrapper for inline content within a change decoration.
|
|
31
|
+
*/
|
|
32
|
+
export declare const createContentWrapper: (colorScheme?: ColorScheme, isActive?: boolean, isInserted?: boolean) => HTMLElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-show-diff",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.12",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
29
29
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
31
|
-
"@atlaskit/tmp-editor-statsig": "^114.
|
|
31
|
+
"@atlaskit/tmp-editor-statsig": "^114.6.0",
|
|
32
32
|
"@atlaskit/tokens": "^15.2.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@compiled/react": "^0.20.0",
|