@atlaskit/editor-plugin-status 7.1.10 → 7.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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-status
|
|
2
2
|
|
|
3
|
+
## 7.1.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e3779b75fdeca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e3779b75fdeca) -
|
|
8
|
+
EDITOR-1643 Promote syncBlock and bodiedSyncBlock to full schema
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.1.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
|
|
16
|
+
tsignores added for help-center local consumpton removed
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 7.1.10
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -24,7 +24,6 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
24
24
|
focusStatusInput: false
|
|
25
25
|
};
|
|
26
26
|
},
|
|
27
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
28
27
|
apply: function apply(tr, state, oldEditorState) {
|
|
29
28
|
var meta = tr.getMeta(_pluginKey.pluginKey);
|
|
30
29
|
if (meta) {
|
|
@@ -66,8 +65,6 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
66
65
|
return state;
|
|
67
66
|
}
|
|
68
67
|
},
|
|
69
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
70
|
-
|
|
71
68
|
filterTransaction: function filterTransaction(tr, state) {
|
|
72
69
|
// if it is a selection change transaction, and selection changes from node to text
|
|
73
70
|
if (tr.selectionSet && !tr.steps.length && tr.isGeneric && tr.selection instanceof _state.TextSelection && state.selection instanceof _state.NodeSelection) {
|
|
@@ -93,8 +90,6 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
93
90
|
* But when transaction to add empty status happens from undo/redo
|
|
94
91
|
* we don't want to remove it.
|
|
95
92
|
*/
|
|
96
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
97
|
-
|
|
98
93
|
if (transactions.find(function (tr) {
|
|
99
94
|
return tr.selectionSet && !tr.getMeta(_utils.pmHistoryPluginKey);
|
|
100
95
|
})) {
|
|
@@ -103,8 +98,6 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
103
98
|
if (oldStatus && (newStatus && oldStatus.localId !== newStatus.localId || !newStatus)) {
|
|
104
99
|
if ((0, _utils2.isEmptyStatus)(oldStatus)) {
|
|
105
100
|
var pos = oldEditorState.selection.from;
|
|
106
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
107
|
-
|
|
108
101
|
tr.delete(tr.mapping.map(pos), tr.mapping.map(pos + 1));
|
|
109
102
|
changed = true;
|
|
110
103
|
}
|
|
@@ -114,11 +107,7 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
114
107
|
},
|
|
115
108
|
key: _pluginKey.pluginKey,
|
|
116
109
|
props: {
|
|
117
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
118
|
-
|
|
119
110
|
nodeViews: {
|
|
120
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
121
|
-
|
|
122
111
|
status: function status(node) {
|
|
123
112
|
return new _StatusNodeView.StatusNodeView(node, pmPluginFactoryParams.getIntl());
|
|
124
113
|
}
|
|
@@ -11,8 +11,6 @@ const createPlugin = (pmPluginFactoryParams, options) => new SafePlugin({
|
|
|
11
11
|
showStatusPickerAt: null,
|
|
12
12
|
focusStatusInput: false
|
|
13
13
|
}),
|
|
14
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
15
|
-
|
|
16
14
|
apply(tr, state, oldEditorState) {
|
|
17
15
|
const meta = tr.getMeta(pluginKey);
|
|
18
16
|
if (meta) {
|
|
@@ -60,8 +58,6 @@ const createPlugin = (pmPluginFactoryParams, options) => new SafePlugin({
|
|
|
60
58
|
return state;
|
|
61
59
|
}
|
|
62
60
|
},
|
|
63
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
64
|
-
|
|
65
61
|
filterTransaction: (tr, state) => {
|
|
66
62
|
// if it is a selection change transaction, and selection changes from node to text
|
|
67
63
|
if (tr.selectionSet && !tr.steps.length && tr.isGeneric && tr.selection instanceof TextSelection && state.selection instanceof NodeSelection) {
|
|
@@ -88,16 +84,12 @@ const createPlugin = (pmPluginFactoryParams, options) => new SafePlugin({
|
|
|
88
84
|
* But when transaction to add empty status happens from undo/redo
|
|
89
85
|
* we don't want to remove it.
|
|
90
86
|
*/
|
|
91
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
92
|
-
|
|
93
87
|
if (transactions.find(tr => tr.selectionSet && !tr.getMeta(pmHistoryPluginKey))) {
|
|
94
88
|
const oldStatus = mayGetStatusAtSelection(oldEditorState.selection);
|
|
95
89
|
const newStatus = mayGetStatusAtSelection(newEditorState.selection);
|
|
96
90
|
if (oldStatus && (newStatus && oldStatus.localId !== newStatus.localId || !newStatus)) {
|
|
97
91
|
if (isEmptyStatus(oldStatus)) {
|
|
98
92
|
const pos = oldEditorState.selection.from;
|
|
99
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
100
|
-
|
|
101
93
|
tr.delete(tr.mapping.map(pos), tr.mapping.map(pos + 1));
|
|
102
94
|
changed = true;
|
|
103
95
|
}
|
|
@@ -107,11 +99,7 @@ const createPlugin = (pmPluginFactoryParams, options) => new SafePlugin({
|
|
|
107
99
|
},
|
|
108
100
|
key: pluginKey,
|
|
109
101
|
props: {
|
|
110
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
111
|
-
|
|
112
102
|
nodeViews: {
|
|
113
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
114
|
-
|
|
115
103
|
status: node => {
|
|
116
104
|
return new StatusNodeView(node, pmPluginFactoryParams.getIntl());
|
|
117
105
|
}
|
|
@@ -17,7 +17,6 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
17
17
|
focusStatusInput: false
|
|
18
18
|
};
|
|
19
19
|
},
|
|
20
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
21
20
|
apply: function apply(tr, state, oldEditorState) {
|
|
22
21
|
var meta = tr.getMeta(pluginKey);
|
|
23
22
|
if (meta) {
|
|
@@ -59,8 +58,6 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
59
58
|
return state;
|
|
60
59
|
}
|
|
61
60
|
},
|
|
62
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
63
|
-
|
|
64
61
|
filterTransaction: function filterTransaction(tr, state) {
|
|
65
62
|
// if it is a selection change transaction, and selection changes from node to text
|
|
66
63
|
if (tr.selectionSet && !tr.steps.length && tr.isGeneric && tr.selection instanceof TextSelection && state.selection instanceof NodeSelection) {
|
|
@@ -86,8 +83,6 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
86
83
|
* But when transaction to add empty status happens from undo/redo
|
|
87
84
|
* we don't want to remove it.
|
|
88
85
|
*/
|
|
89
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
90
|
-
|
|
91
86
|
if (transactions.find(function (tr) {
|
|
92
87
|
return tr.selectionSet && !tr.getMeta(pmHistoryPluginKey);
|
|
93
88
|
})) {
|
|
@@ -96,8 +91,6 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
96
91
|
if (oldStatus && (newStatus && oldStatus.localId !== newStatus.localId || !newStatus)) {
|
|
97
92
|
if (isEmptyStatus(oldStatus)) {
|
|
98
93
|
var pos = oldEditorState.selection.from;
|
|
99
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
100
|
-
|
|
101
94
|
tr.delete(tr.mapping.map(pos), tr.mapping.map(pos + 1));
|
|
102
95
|
changed = true;
|
|
103
96
|
}
|
|
@@ -107,11 +100,7 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
107
100
|
},
|
|
108
101
|
key: pluginKey,
|
|
109
102
|
props: {
|
|
110
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
111
|
-
|
|
112
103
|
nodeViews: {
|
|
113
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
114
|
-
|
|
115
104
|
status: function status(node) {
|
|
116
105
|
return new StatusNodeView(node, pmPluginFactoryParams.getIntl());
|
|
117
106
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.12",
|
|
4
4
|
"description": "Status plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.5.1",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
39
39
|
"@atlaskit/status": "^3.0.0",
|
|
40
40
|
"@atlaskit/theme": "^21.0.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^14.5.0",
|
|
42
42
|
"@atlaskit/tokens": "^8.4.0",
|
|
43
43
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^110.
|
|
48
|
+
"@atlaskit/editor-common": "^110.38.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1"
|