@atlaskit/editor-plugin-show-diff 13.1.1 → 13.1.2
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/decorations/colorSchemes/factory.js +8 -2
- package/dist/es2019/pm-plugins/decorations/colorSchemes/factory.js +8 -2
- package/dist/esm/pm-plugins/decorations/colorSchemes/factory.js +8 -2
- package/dist/types/pm-plugins/decorations/colorSchemes/factory.d.ts +8 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-show-diff
|
|
2
2
|
|
|
3
|
+
## 13.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f8a30b9c66bf8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f8a30b9c66bf8) -
|
|
8
|
+
Replace each hardcoded colour in the show-diff deleted-node selectors with
|
|
9
|
+
`var(--diff-delete-*, <the same token as before>)`, in both `smartCardStyles.ts` and its inlined
|
|
10
|
+
duplicate in `EditorContentContainer-compiled.tsx`.
|
|
11
|
+
|
|
12
|
+
No visual change: nothing sets these variables yet, so every declaration resolves to its current
|
|
13
|
+
value. All `-traditional` selectors are retained and opacity is untouched.
|
|
14
|
+
|
|
15
|
+
Groundwork for EDITOR-8551, ahead of the gated change that lets a colour scheme drive these
|
|
16
|
+
selectors.
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 13.1.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -902,11 +902,17 @@ function buildAtomicInlineChangedCSSVariables(colors) {
|
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
/**
|
|
905
|
+
/**
|
|
906
|
+
* Deleted-node wrapper variables, one per visual role in editor-core's `showDiffDeletedNodeStyles`:
|
|
907
|
+
* resting ring, `-outline-new` ring, `-active` ring, and the blockquote/embedCard strike colour.
|
|
908
|
+
*
|
|
909
|
+
* Not yet called — those selectors carry `var(…, <today's token>)` fallbacks until
|
|
910
|
+
* `wrapBlockNodeView` emits these under the refactor gate. No opacity variable: that opacity is
|
|
911
|
+
* driven by `platform_editor_enghealth_a11y_jan_fixes`, not by the scheme.
|
|
912
|
+
*/
|
|
906
913
|
function buildDeletedNodeCSSVariables(colors) {
|
|
907
914
|
return (0, _lazyNodeView.convertToInlineCss)({
|
|
908
915
|
'--diff-delete-color': borderAccent(colors.deleteColor),
|
|
909
|
-
'--diff-delete-color-default': borderAccent(colors.deleteActiveColor),
|
|
910
916
|
'--diff-delete-color-new': bgSubtlest(colors.deleteColor),
|
|
911
917
|
'--diff-delete-color-active': bgSubtlerPressed(colors.deleteActiveColor),
|
|
912
918
|
'--diff-delete-text-decoration-color': borderAccent(colors.deleteColor)
|
|
@@ -837,11 +837,17 @@ export function buildAtomicInlineChangedCSSVariables(colors) {
|
|
|
837
837
|
});
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
/**
|
|
840
|
+
/**
|
|
841
|
+
* Deleted-node wrapper variables, one per visual role in editor-core's `showDiffDeletedNodeStyles`:
|
|
842
|
+
* resting ring, `-outline-new` ring, `-active` ring, and the blockquote/embedCard strike colour.
|
|
843
|
+
*
|
|
844
|
+
* Not yet called — those selectors carry `var(…, <today's token>)` fallbacks until
|
|
845
|
+
* `wrapBlockNodeView` emits these under the refactor gate. No opacity variable: that opacity is
|
|
846
|
+
* driven by `platform_editor_enghealth_a11y_jan_fixes`, not by the scheme.
|
|
847
|
+
*/
|
|
841
848
|
export function buildDeletedNodeCSSVariables(colors) {
|
|
842
849
|
return convertToInlineCss({
|
|
843
850
|
'--diff-delete-color': borderAccent(colors.deleteColor),
|
|
844
|
-
'--diff-delete-color-default': borderAccent(colors.deleteActiveColor),
|
|
845
851
|
'--diff-delete-color-new': bgSubtlest(colors.deleteColor),
|
|
846
852
|
'--diff-delete-color-active': bgSubtlerPressed(colors.deleteActiveColor),
|
|
847
853
|
'--diff-delete-text-decoration-color': borderAccent(colors.deleteColor)
|
|
@@ -835,11 +835,17 @@ export function buildAtomicInlineChangedCSSVariables(colors) {
|
|
|
835
835
|
});
|
|
836
836
|
}
|
|
837
837
|
|
|
838
|
-
/**
|
|
838
|
+
/**
|
|
839
|
+
* Deleted-node wrapper variables, one per visual role in editor-core's `showDiffDeletedNodeStyles`:
|
|
840
|
+
* resting ring, `-outline-new` ring, `-active` ring, and the blockquote/embedCard strike colour.
|
|
841
|
+
*
|
|
842
|
+
* Not yet called — those selectors carry `var(…, <today's token>)` fallbacks until
|
|
843
|
+
* `wrapBlockNodeView` emits these under the refactor gate. No opacity variable: that opacity is
|
|
844
|
+
* driven by `platform_editor_enghealth_a11y_jan_fixes`, not by the scheme.
|
|
845
|
+
*/
|
|
839
846
|
export function buildDeletedNodeCSSVariables(colors) {
|
|
840
847
|
return convertToInlineCss({
|
|
841
848
|
'--diff-delete-color': borderAccent(colors.deleteColor),
|
|
842
|
-
'--diff-delete-color-default': borderAccent(colors.deleteActiveColor),
|
|
843
849
|
'--diff-delete-color-new': bgSubtlest(colors.deleteColor),
|
|
844
850
|
'--diff-delete-color-active': bgSubtlerPressed(colors.deleteActiveColor),
|
|
845
851
|
'--diff-delete-text-decoration-color': borderAccent(colors.deleteColor)
|
|
@@ -169,5 +169,12 @@ export declare function buildDeletedWrappedBlockOutline(colors: DiffColorScheme,
|
|
|
169
169
|
* inline it beats the stylesheet's fallback, making the plugin the only source of the colour.
|
|
170
170
|
*/
|
|
171
171
|
export declare function buildAtomicInlineChangedCSSVariables(colors: DiffColorScheme): string;
|
|
172
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Deleted-node wrapper variables, one per visual role in editor-core's `showDiffDeletedNodeStyles`:
|
|
174
|
+
* resting ring, `-outline-new` ring, `-active` ring, and the blockquote/embedCard strike colour.
|
|
175
|
+
*
|
|
176
|
+
* Not yet called — those selectors carry `var(…, <today's token>)` fallbacks until
|
|
177
|
+
* `wrapBlockNodeView` emits these under the refactor gate. No opacity variable: that opacity is
|
|
178
|
+
* driven by `platform_editor_enghealth_a11y_jan_fixes`, not by the scheme.
|
|
179
|
+
*/
|
|
173
180
|
export declare function buildDeletedNodeCSSVariables(colors: DiffColorScheme): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-show-diff",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.2",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@atlaskit/adf-utils": "^20.7.0",
|
|
41
41
|
"@atlaskit/button": "^25.1.0",
|
|
42
42
|
"@atlaskit/css": "^1.0.0",
|
|
43
|
-
"@atlaskit/dropdown-menu": "^18.
|
|
43
|
+
"@atlaskit/dropdown-menu": "^18.1.0",
|
|
44
44
|
"@atlaskit/editor-core": "^224.2.0",
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^9.4.0",
|
|
46
46
|
"@atlaskit/form": "^17.0.0",
|
|
47
|
-
"@atlaskit/primitives": "^22.
|
|
47
|
+
"@atlaskit/primitives": "^22.3.0",
|
|
48
48
|
"@atlaskit/section-message": "^10.0.0",
|
|
49
49
|
"@atlaskit/textarea": "^10.0.0",
|
|
50
50
|
"@atlassian/confluence-presets": "workspace:^",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react-intl": "^7.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@atlaskit/editor-common": "^119.
|
|
57
|
+
"@atlaskit/editor-common": "^119.10.0",
|
|
58
58
|
"react": "^18.2.0 || ^19.2.0"
|
|
59
59
|
},
|
|
60
60
|
"techstack": {
|