@atlaskit/editor-plugin-show-diff 4.0.0 → 4.0.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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-show-diff
2
2
 
3
+ ## 4.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`917bb70243d23`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/917bb70243d23) -
8
+ [ux] [ENGHEALTH-43911] increase visual contrast for deleted text when viewing changes
9
+
10
+ ## 4.0.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 4.0.0
4
17
 
5
18
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.confluence.json",
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-plugin-show-diff",
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.products.json",
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../tsDist/@atlaskit__editor-plugin-show-diff/app",
@@ -111,6 +111,12 @@ var deletedContentStyle = (0, _lazyNodeView.convertToInlineCss)({
111
111
  position: 'relative',
112
112
  opacity: 0.6
113
113
  });
114
+ var deletedContentStyleNew = (0, _lazyNodeView.convertToInlineCss)({
115
+ color: "var(--ds-text-accent-gray, #505258)",
116
+ textDecoration: 'line-through',
117
+ position: 'relative',
118
+ opacity: 0.8
119
+ });
114
120
  var deletedContentStyleUnbounded = (0, _lazyNodeView.convertToInlineCss)({
115
121
  position: 'absolute',
116
122
  top: '50%',
@@ -139,7 +145,7 @@ var getDeletedContentStyleUnbounded = exports.getDeletedContentStyleUnbounded =
139
145
  return colourScheme === 'traditional' ? deletedTraditionalContentStyleUnbounded : deletedContentStyleUnbounded;
140
146
  };
141
147
  var getDeletedContentStyle = exports.getDeletedContentStyle = function getDeletedContentStyle(colourScheme) {
142
- return colourScheme === 'traditional' ? deletedTraditionalContentStyle : deletedContentStyle;
148
+ return colourScheme === 'traditional' ? deletedTraditionalContentStyle : (0, _platformFeatureFlags.fg)('platform_editor_jan_a11y_fixes') ? deletedContentStyleNew : deletedContentStyle;
143
149
  };
144
150
  var getNodeClass = function getNodeClass(name) {
145
151
  switch (name) {
@@ -57,8 +57,8 @@ var lozengeStyle = (0, _lazyNodeView.convertToInlineCss)({
57
57
  paddingInlineStart: "var(--ds-space-050, 4px)",
58
58
  paddingInlineEnd: "var(--ds-space-050, 4px)",
59
59
  backgroundColor: "var(--ds-background-accent-gray-subtler, #DDDEE1)",
60
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
61
- fontWeight: "var(--ds-font-weight-bold, 700)",
60
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
61
+ fontWeight: "var(--ds-font-weight-bold, 653)",
62
62
  textOverflow: 'ellipsis',
63
63
  whiteSpace: 'nowrap',
64
64
  color: "var(--ds-text-warning-inverse, #292A2E)"
@@ -103,6 +103,12 @@ const deletedContentStyle = convertToInlineCss({
103
103
  position: 'relative',
104
104
  opacity: 0.6
105
105
  });
106
+ const deletedContentStyleNew = convertToInlineCss({
107
+ color: "var(--ds-text-accent-gray, #505258)",
108
+ textDecoration: 'line-through',
109
+ position: 'relative',
110
+ opacity: 0.8
111
+ });
106
112
  const deletedContentStyleUnbounded = convertToInlineCss({
107
113
  position: 'absolute',
108
114
  top: '50%',
@@ -128,7 +134,7 @@ const deletedTraditionalContentStyleUnbounded = convertToInlineCss({
128
134
  zIndex: 1
129
135
  });
130
136
  export const getDeletedContentStyleUnbounded = colourScheme => colourScheme === 'traditional' ? deletedTraditionalContentStyleUnbounded : deletedContentStyleUnbounded;
131
- export const getDeletedContentStyle = colourScheme => colourScheme === 'traditional' ? deletedTraditionalContentStyle : deletedContentStyle;
137
+ export const getDeletedContentStyle = colourScheme => colourScheme === 'traditional' ? deletedTraditionalContentStyle : fg('platform_editor_jan_a11y_fixes') ? deletedContentStyleNew : deletedContentStyle;
132
138
  const getNodeClass = name => {
133
139
  switch (name) {
134
140
  case 'extension':
@@ -47,8 +47,8 @@ const lozengeStyle = convertToInlineCss({
47
47
  paddingInlineStart: "var(--ds-space-050, 4px)",
48
48
  paddingInlineEnd: "var(--ds-space-050, 4px)",
49
49
  backgroundColor: "var(--ds-background-accent-gray-subtler, #DDDEE1)",
50
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
51
- fontWeight: "var(--ds-font-weight-bold, 700)",
50
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
51
+ fontWeight: "var(--ds-font-weight-bold, 653)",
52
52
  textOverflow: 'ellipsis',
53
53
  whiteSpace: 'nowrap',
54
54
  color: "var(--ds-text-warning-inverse, #292A2E)"
@@ -105,6 +105,12 @@ var deletedContentStyle = convertToInlineCss({
105
105
  position: 'relative',
106
106
  opacity: 0.6
107
107
  });
108
+ var deletedContentStyleNew = convertToInlineCss({
109
+ color: "var(--ds-text-accent-gray, #505258)",
110
+ textDecoration: 'line-through',
111
+ position: 'relative',
112
+ opacity: 0.8
113
+ });
108
114
  var deletedContentStyleUnbounded = convertToInlineCss({
109
115
  position: 'absolute',
110
116
  top: '50%',
@@ -133,7 +139,7 @@ export var getDeletedContentStyleUnbounded = function getDeletedContentStyleUnbo
133
139
  return colourScheme === 'traditional' ? deletedTraditionalContentStyleUnbounded : deletedContentStyleUnbounded;
134
140
  };
135
141
  export var getDeletedContentStyle = function getDeletedContentStyle(colourScheme) {
136
- return colourScheme === 'traditional' ? deletedTraditionalContentStyle : deletedContentStyle;
142
+ return colourScheme === 'traditional' ? deletedTraditionalContentStyle : fg('platform_editor_jan_a11y_fixes') ? deletedContentStyleNew : deletedContentStyle;
137
143
  };
138
144
  var getNodeClass = function getNodeClass(name) {
139
145
  switch (name) {
@@ -50,8 +50,8 @@ var lozengeStyle = convertToInlineCss({
50
50
  paddingInlineStart: "var(--ds-space-050, 4px)",
51
51
  paddingInlineEnd: "var(--ds-space-050, 4px)",
52
52
  backgroundColor: "var(--ds-background-accent-gray-subtler, #DDDEE1)",
53
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
54
- fontWeight: "var(--ds-font-weight-bold, 700)",
53
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
54
+ fontWeight: "var(--ds-font-weight-bold, 653)",
55
55
  textOverflow: 'ellipsis',
56
56
  whiteSpace: 'nowrap',
57
57
  color: "var(--ds-text-warning-inverse, #292A2E)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-show-diff",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "ShowDiff plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,14 +32,14 @@
32
32
  "@atlaskit/editor-prosemirror": "^7.2.0",
33
33
  "@atlaskit/editor-tables": "^2.9.0",
34
34
  "@atlaskit/platform-feature-flags": "^1.1.0",
35
- "@atlaskit/tokens": "^9.0.0",
35
+ "@atlaskit/tokens": "^10.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "lodash": "^4.17.21",
38
38
  "memoize-one": "^6.0.0",
39
39
  "prosemirror-changeset": "^2.2.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@atlaskit/editor-common": "^111.0.0",
42
+ "@atlaskit/editor-common": "^111.8.0",
43
43
  "react": "^18.2.0"
44
44
  },
45
45
  "techstack": {
@@ -84,6 +84,9 @@
84
84
  },
85
85
  "platform_editor_ai_aifc_patch_ga_blockers": {
86
86
  "type": "boolean"
87
+ },
88
+ "platform_editor_jan_a11y_fixes": {
89
+ "type": "boolean"
87
90
  }
88
91
  }
89
92
  }