@atlaskit/editor-plugin-show-diff 4.0.2 → 4.0.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 +15 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +1 -1
- package/dist/cjs/pm-plugins/decorations.js +2 -1
- package/dist/es2019/pm-plugins/decorations.js +2 -1
- package/dist/esm/pm-plugins/decorations.js +2 -1
- package/package.json +6 -8
- package/build/tsconfig.json +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-show-diff
|
|
2
2
|
|
|
3
|
+
## 4.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bdd272290540a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bdd272290540a) -
|
|
8
|
+
Migrate platform_editor_jan_a11y_fixes flag to platform_editor_enghealth_a11y_jan_fixes
|
|
9
|
+
experiment.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 4.0.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 4.0.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -7,6 +7,7 @@ exports.getDeletedContentStyleUnbounded = exports.getDeletedContentStyle = expor
|
|
|
7
7
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
8
8
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
9
9
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
10
11
|
var _deletedBlocksHandler = require("./deletedBlocksHandler");
|
|
11
12
|
var _deletedRowsHandler = require("./deletedRowsHandler");
|
|
12
13
|
var _findSafeInsertPos = require("./findSafeInsertPos");
|
|
@@ -145,7 +146,7 @@ var getDeletedContentStyleUnbounded = exports.getDeletedContentStyleUnbounded =
|
|
|
145
146
|
return colourScheme === 'traditional' ? deletedTraditionalContentStyleUnbounded : deletedContentStyleUnbounded;
|
|
146
147
|
};
|
|
147
148
|
var getDeletedContentStyle = exports.getDeletedContentStyle = function getDeletedContentStyle(colourScheme) {
|
|
148
|
-
return colourScheme === 'traditional' ? deletedTraditionalContentStyle : (0,
|
|
149
|
+
return colourScheme === 'traditional' ? deletedTraditionalContentStyle : (0, _expValEquals.expValEquals)('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? deletedContentStyleNew : deletedContentStyle;
|
|
149
150
|
};
|
|
150
151
|
var getNodeClass = function getNodeClass(name) {
|
|
151
152
|
switch (name) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
2
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
import { createDeletedStyleWrapperWithoutOpacity, handleBlockNodeView } from './deletedBlocksHandler';
|
|
5
6
|
import { handleDeletedRows } from './deletedRowsHandler';
|
|
6
7
|
import { findSafeInsertPos } from './findSafeInsertPos';
|
|
@@ -134,7 +135,7 @@ const deletedTraditionalContentStyleUnbounded = convertToInlineCss({
|
|
|
134
135
|
zIndex: 1
|
|
135
136
|
});
|
|
136
137
|
export const getDeletedContentStyleUnbounded = colourScheme => colourScheme === 'traditional' ? deletedTraditionalContentStyleUnbounded : deletedContentStyleUnbounded;
|
|
137
|
-
export const getDeletedContentStyle = colourScheme => colourScheme === 'traditional' ? deletedTraditionalContentStyle :
|
|
138
|
+
export const getDeletedContentStyle = colourScheme => colourScheme === 'traditional' ? deletedTraditionalContentStyle : expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? deletedContentStyleNew : deletedContentStyle;
|
|
138
139
|
const getNodeClass = name => {
|
|
139
140
|
switch (name) {
|
|
140
141
|
case 'extension':
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
2
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
import { createDeletedStyleWrapperWithoutOpacity, handleBlockNodeView } from './deletedBlocksHandler';
|
|
5
6
|
import { handleDeletedRows } from './deletedRowsHandler';
|
|
6
7
|
import { findSafeInsertPos } from './findSafeInsertPos';
|
|
@@ -139,7 +140,7 @@ export var getDeletedContentStyleUnbounded = function getDeletedContentStyleUnbo
|
|
|
139
140
|
return colourScheme === 'traditional' ? deletedTraditionalContentStyleUnbounded : deletedContentStyleUnbounded;
|
|
140
141
|
};
|
|
141
142
|
export var getDeletedContentStyle = function getDeletedContentStyle(colourScheme) {
|
|
142
|
-
return colourScheme === 'traditional' ? deletedTraditionalContentStyle :
|
|
143
|
+
return colourScheme === 'traditional' ? deletedTraditionalContentStyle : expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? deletedContentStyleNew : deletedContentStyle;
|
|
143
144
|
};
|
|
144
145
|
var getNodeClass = function getNodeClass(name) {
|
|
145
146
|
switch (name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-show-diff",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,17 +29,18 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/adf-schema": "^51.5.0",
|
|
32
|
-
"@atlaskit/editor-prosemirror": "^7.
|
|
32
|
+
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
33
33
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
35
|
-
"@atlaskit/
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^20.0.0",
|
|
36
|
+
"@atlaskit/tokens": "^11.0.0",
|
|
36
37
|
"@babel/runtime": "^7.0.0",
|
|
37
38
|
"lodash": "^4.17.21",
|
|
38
39
|
"memoize-one": "^6.0.0",
|
|
39
|
-
"prosemirror-changeset": "^2.
|
|
40
|
+
"prosemirror-changeset": "^2.3.1"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
|
-
"@atlaskit/editor-common": "^111.
|
|
43
|
+
"@atlaskit/editor-common": "^111.11.0",
|
|
43
44
|
"react": "^18.2.0"
|
|
44
45
|
},
|
|
45
46
|
"techstack": {
|
|
@@ -84,9 +85,6 @@
|
|
|
84
85
|
},
|
|
85
86
|
"platform_editor_ai_aifc_patch_ga_blockers": {
|
|
86
87
|
"type": "boolean"
|
|
87
|
-
},
|
|
88
|
-
"platform_editor_jan_a11y_fixes": {
|
|
89
|
-
"type": "boolean"
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
}
|
package/build/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"paths": {}
|
|
6
|
-
},
|
|
7
|
-
"include": [
|
|
8
|
-
"../src/**/*.ts",
|
|
9
|
-
"../src/**/*.tsx"
|
|
10
|
-
],
|
|
11
|
-
"exclude": [
|
|
12
|
-
"../src/**/__tests__/*",
|
|
13
|
-
"../src/**/*.test.*",
|
|
14
|
-
"../src/**/test.*",
|
|
15
|
-
"../src/**/examples.*"
|
|
16
|
-
]
|
|
17
|
-
}
|