@atlaskit/editor-plugin-show-diff 20.0.11 → 21.0.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/CHANGELOG.md +27 -0
- package/dist/cjs/pm-plugins/NodeViewSerializer.js +71 -7
- package/dist/cjs/pm-plugins/createEditorProxy.js +84 -0
- package/dist/cjs/pm-plugins/decorations/createContributorTagWidget.js +25 -6
- package/dist/cjs/pm-plugins/decorations/createNodeChangedDecorationWidget.js +35 -11
- package/dist/cjs/pm-plugins/decorations/utils/wrapBlockNodeView.js +38 -2
- package/dist/cjs/pm-plugins/markViews.js +65 -0
- package/dist/cjs/pm-plugins/resolveDiffContributors.js +3 -3
- package/dist/cjs/ui/ContributorTag/contributorAvatarRenderer.js +8 -9
- package/dist/cjs/ui/ContributorTag/contributorTagIcons.js +1 -8
- package/dist/es2019/pm-plugins/NodeViewSerializer.js +64 -8
- package/dist/es2019/pm-plugins/createEditorProxy.js +76 -0
- package/dist/es2019/pm-plugins/decorations/createContributorTagWidget.js +26 -8
- package/dist/es2019/pm-plugins/decorations/createNodeChangedDecorationWidget.js +35 -12
- package/dist/es2019/pm-plugins/decorations/utils/wrapBlockNodeView.js +36 -2
- package/dist/es2019/pm-plugins/markViews.js +61 -0
- package/dist/es2019/pm-plugins/resolveDiffContributors.js +3 -3
- package/dist/es2019/ui/ContributorTag/contributorAvatarRenderer.js +8 -9
- package/dist/es2019/ui/ContributorTag/contributorTagIcons.js +1 -8
- package/dist/esm/pm-plugins/NodeViewSerializer.js +71 -7
- package/dist/esm/pm-plugins/createEditorProxy.js +78 -0
- package/dist/esm/pm-plugins/decorations/createContributorTagWidget.js +27 -8
- package/dist/esm/pm-plugins/decorations/createNodeChangedDecorationWidget.js +37 -12
- package/dist/esm/pm-plugins/decorations/utils/wrapBlockNodeView.js +38 -2
- package/dist/esm/pm-plugins/markViews.js +60 -0
- package/dist/esm/pm-plugins/resolveDiffContributors.js +3 -3
- package/dist/esm/ui/ContributorTag/contributorAvatarRenderer.js +8 -9
- package/dist/esm/ui/ContributorTag/contributorTagIcons.js +1 -8
- package/dist/types/pm-plugins/NodeViewSerializer.d.ts +7 -2
- package/dist/types/pm-plugins/createEditorProxy.d.ts +18 -0
- package/dist/types/pm-plugins/decorations/createContributorTagWidget.d.ts +2 -1
- package/dist/types/pm-plugins/markViews.d.ts +14 -0
- package/dist/types/ui/ContributorTag/contributorTagIcons.d.ts +1 -4
- package/package.json +11 -11
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
/** Where to look up a mark's renderer, and the view to render it against. */
|
|
5
|
+
export type MarkViewSources = {
|
|
6
|
+
nodeViews?: Record<string, NodeViewConstructor>;
|
|
7
|
+
view?: EditorView;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Wraps rendered DOM in its marks, as ProseMirror does for the live document. Without this a
|
|
11
|
+
* block node loses `breakout`, whose wrapper supplies the width. Marks nest
|
|
12
|
+
* outside-in, so `marks[0]` is outermost.
|
|
13
|
+
*/
|
|
14
|
+
export declare const wrapInMarkViews: (targetNode: PMNode, nodeDom: Node, sources: MarkViewSources) => Node;
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
* Neither `@atlaskit/icon`, `@atlaskit/icon-lab` nor `@atlaskit/logo` exposes a raw-SVG entry
|
|
5
5
|
* point, so the markup is copied here rather than kept as a React island for these glyphs. Keep in
|
|
6
6
|
* sync with the sources named on each constant.
|
|
7
|
-
*
|
|
8
|
-
* The Rovo hex is the `brand` appearance, whose `--rovo-*-color` variables resolve to `initial` in
|
|
9
|
-
* both themes — the fallbacks below are the rendered colours, so no theme observer is needed.
|
|
10
7
|
*/
|
|
11
|
-
export type ContributorTagIcon = 'aiAgent' | 'aiBot' | 'chatgpt' | 'claude' | 'person'
|
|
8
|
+
export type ContributorTagIcon = 'aiAgent' | 'aiBot' | 'chatgpt' | 'claude' | 'person';
|
|
12
9
|
export declare const getContributorTagIcon: (icon: ContributorTagIcon, doc: Document) => DocumentFragment;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-show-diff",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.1",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"@atlaskit/agent-color": "^1.0.0",
|
|
30
30
|
"@atlaskit/avatar": "^30.0.0",
|
|
31
31
|
"@atlaskit/custom-steps": "^1.1.0",
|
|
32
|
-
"@atlaskit/editor-plugin-accessibility-utils": "^
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
34
|
-
"@atlaskit/editor-plugin-limited-mode": "^
|
|
35
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
32
|
+
"@atlaskit/editor-plugin-accessibility-utils": "^23.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^23.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-limited-mode": "^20.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-user-intent": "^21.0.0",
|
|
36
36
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
37
37
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
38
38
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
39
39
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
41
41
|
"@atlaskit/primitives": "^22.5.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^219.0.0",
|
|
43
43
|
"@atlaskit/tokens": "^20.1.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@compiled/react": "^1.0.2",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@atlaskit/adf-utils": "^20.9.0",
|
|
53
53
|
"@atlaskit/button": "^25.4.0",
|
|
54
54
|
"@atlaskit/css": "^1.1.0",
|
|
55
|
-
"@atlaskit/dropdown-menu": "^
|
|
56
|
-
"@atlaskit/editor-core": "^
|
|
55
|
+
"@atlaskit/dropdown-menu": "^21.0.0",
|
|
56
|
+
"@atlaskit/editor-core": "^233.0.0",
|
|
57
57
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
58
58
|
"@atlaskit/editor-plugins": "^16.1.0",
|
|
59
59
|
"@atlaskit/form": "^18.0.0",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"@atlaskit/util-data-test": "^19.1.0",
|
|
64
64
|
"@atlassian/confluence-presets": "workspace:^",
|
|
65
65
|
"@atlassian/content-reconciliation": "^0.1.3506",
|
|
66
|
-
"@atlassian/editor-ai-injected-editors": "^
|
|
67
|
-
"@atlassian/editor-plugin-ai": "^
|
|
66
|
+
"@atlassian/editor-ai-injected-editors": "^37.0.0",
|
|
67
|
+
"@atlassian/editor-plugin-ai": "^77.0.0",
|
|
68
68
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
69
69
|
"react": "^19.2.0",
|
|
70
70
|
"react-dom": "^19.2.0",
|
|
71
71
|
"react-intl": "^7.0.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^
|
|
74
|
+
"@atlaskit/editor-common": "^127.1.0",
|
|
75
75
|
"react": "^18.2.0 || ^19.2.0",
|
|
76
76
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
77
77
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|