@atlaskit/editor-plugin-editor-disabled 6.1.1 → 6.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-editor-disabled
|
|
2
2
|
|
|
3
|
+
## 6.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
|
|
8
|
+
tsignores added for help-center local consumpton removed
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 6.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -45,8 +45,6 @@ function createPlugin(dispatch, options) {
|
|
|
45
45
|
disabledByPlugin: false
|
|
46
46
|
};
|
|
47
47
|
},
|
|
48
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
49
|
-
|
|
50
48
|
apply: function apply(tr, pluginState) {
|
|
51
49
|
var meta = tr.getMeta(pluginKey);
|
|
52
50
|
if (meta) {
|
|
@@ -63,7 +61,7 @@ function createPlugin(dispatch, options) {
|
|
|
63
61
|
props: {
|
|
64
62
|
// If we set to undefined it respects the previous value.
|
|
65
63
|
// Prosemirror doesn't have this typed correctly for this type of behaviour
|
|
66
|
-
// @ts-
|
|
64
|
+
// @ts-expect-error
|
|
67
65
|
editable: (0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_beta') ? function (state) {
|
|
68
66
|
var _pluginKey$getState;
|
|
69
67
|
var _ref = (_pluginKey$getState = pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 ? _pluginKey$getState : {
|
|
@@ -73,17 +71,13 @@ function createPlugin(dispatch, options) {
|
|
|
73
71
|
return disabledByPlugin ? false : undefined;
|
|
74
72
|
} : undefined
|
|
75
73
|
},
|
|
76
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
77
|
-
|
|
78
74
|
view: function view(_view) {
|
|
79
75
|
// schedule on mount
|
|
80
76
|
scheduleEditorDisabledUpdate(_view);
|
|
81
77
|
return {
|
|
82
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
83
78
|
update: function update(view) {
|
|
84
79
|
scheduleEditorDisabledUpdate(view);
|
|
85
80
|
},
|
|
86
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
87
81
|
destroy: function destroy() {
|
|
88
82
|
scheduleEditorDisabledUpdate.cancel();
|
|
89
83
|
}
|
|
@@ -36,8 +36,6 @@ function createPlugin(dispatch, options) {
|
|
|
36
36
|
disabledByPlugin: false
|
|
37
37
|
};
|
|
38
38
|
},
|
|
39
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
40
|
-
|
|
41
39
|
apply: (tr, pluginState) => {
|
|
42
40
|
const meta = tr.getMeta(pluginKey);
|
|
43
41
|
if (meta) {
|
|
@@ -57,7 +55,7 @@ function createPlugin(dispatch, options) {
|
|
|
57
55
|
props: {
|
|
58
56
|
// If we set to undefined it respects the previous value.
|
|
59
57
|
// Prosemirror doesn't have this typed correctly for this type of behaviour
|
|
60
|
-
// @ts-
|
|
58
|
+
// @ts-expect-error
|
|
61
59
|
editable: fg('platform_editor_ai_aifc_patch_beta') ? state => {
|
|
62
60
|
var _pluginKey$getState;
|
|
63
61
|
const {
|
|
@@ -68,19 +66,13 @@ function createPlugin(dispatch, options) {
|
|
|
68
66
|
return disabledByPlugin ? false : undefined;
|
|
69
67
|
} : undefined
|
|
70
68
|
},
|
|
71
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
72
|
-
|
|
73
69
|
view: view => {
|
|
74
70
|
// schedule on mount
|
|
75
71
|
scheduleEditorDisabledUpdate(view);
|
|
76
72
|
return {
|
|
77
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
78
|
-
|
|
79
73
|
update(view) {
|
|
80
74
|
scheduleEditorDisabledUpdate(view);
|
|
81
75
|
},
|
|
82
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
83
|
-
|
|
84
76
|
destroy() {
|
|
85
77
|
scheduleEditorDisabledUpdate.cancel();
|
|
86
78
|
}
|
|
@@ -38,8 +38,6 @@ function createPlugin(dispatch, options) {
|
|
|
38
38
|
disabledByPlugin: false
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
42
|
-
|
|
43
41
|
apply: function apply(tr, pluginState) {
|
|
44
42
|
var meta = tr.getMeta(pluginKey);
|
|
45
43
|
if (meta) {
|
|
@@ -56,7 +54,7 @@ function createPlugin(dispatch, options) {
|
|
|
56
54
|
props: {
|
|
57
55
|
// If we set to undefined it respects the previous value.
|
|
58
56
|
// Prosemirror doesn't have this typed correctly for this type of behaviour
|
|
59
|
-
// @ts-
|
|
57
|
+
// @ts-expect-error
|
|
60
58
|
editable: fg('platform_editor_ai_aifc_patch_beta') ? function (state) {
|
|
61
59
|
var _pluginKey$getState;
|
|
62
60
|
var _ref = (_pluginKey$getState = pluginKey.getState(state)) !== null && _pluginKey$getState !== void 0 ? _pluginKey$getState : {
|
|
@@ -66,17 +64,13 @@ function createPlugin(dispatch, options) {
|
|
|
66
64
|
return disabledByPlugin ? false : undefined;
|
|
67
65
|
} : undefined
|
|
68
66
|
},
|
|
69
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
70
|
-
|
|
71
67
|
view: function view(_view) {
|
|
72
68
|
// schedule on mount
|
|
73
69
|
scheduleEditorDisabledUpdate(_view);
|
|
74
70
|
return {
|
|
75
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
76
71
|
update: function update(view) {
|
|
77
72
|
scheduleEditorDisabledUpdate(view);
|
|
78
73
|
},
|
|
79
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
80
74
|
destroy: function destroy() {
|
|
81
75
|
scheduleEditorDisabledUpdate.cancel();
|
|
82
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-editor-disabled",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "Editor disabled plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"raf-schd": "^4.0.3"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^110.
|
|
33
|
+
"@atlaskit/editor-common": "^110.36.0",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0"
|
|
36
36
|
},
|