@atlaskit/editor-plugin-editor-disabled 1.1.4 → 1.1.6
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 +52 -40
- package/LICENSE.md +6 -8
- package/dist/cjs/plugin.js +1 -1
- package/dist/es2019/plugin.js +1 -1
- package/dist/esm/plugin.js +1 -1
- package/package.json +71 -73
- package/report.api.md +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,129 +1,141 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-editor-disabled
|
|
2
2
|
|
|
3
|
+
## 1.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.1.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
8
20
|
|
|
9
21
|
## 1.1.3
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
-
|
|
25
|
+
- Updated dependencies
|
|
14
26
|
|
|
15
27
|
## 1.1.2
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
32
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
33
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
34
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
35
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
24
36
|
|
|
25
37
|
## 1.1.1
|
|
26
38
|
|
|
27
39
|
### Patch Changes
|
|
28
40
|
|
|
29
|
-
-
|
|
41
|
+
- Updated dependencies
|
|
30
42
|
|
|
31
43
|
## 1.1.0
|
|
32
44
|
|
|
33
45
|
### Minor Changes
|
|
34
46
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
47
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
48
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
49
|
+
bumped editor-prosemirror version to 4.0.0
|
|
38
50
|
|
|
39
51
|
### Patch Changes
|
|
40
52
|
|
|
41
|
-
-
|
|
53
|
+
- Updated dependencies
|
|
42
54
|
|
|
43
55
|
## 1.0.2
|
|
44
56
|
|
|
45
57
|
### Patch Changes
|
|
46
58
|
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
60
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
61
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
50
62
|
|
|
51
63
|
## 1.0.1
|
|
52
64
|
|
|
53
65
|
### Patch Changes
|
|
54
66
|
|
|
55
|
-
-
|
|
67
|
+
- Updated dependencies
|
|
56
68
|
|
|
57
69
|
## 1.0.0
|
|
58
70
|
|
|
59
71
|
### Major Changes
|
|
60
72
|
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
73
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
74
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
75
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
76
|
+
is to address an issue with Jira plugin consumption.
|
|
65
77
|
|
|
66
78
|
## 0.2.6
|
|
67
79
|
|
|
68
80
|
### Patch Changes
|
|
69
81
|
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
82
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
83
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
84
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
73
85
|
|
|
74
86
|
## 0.2.5
|
|
75
87
|
|
|
76
88
|
### Patch Changes
|
|
77
89
|
|
|
78
|
-
-
|
|
90
|
+
- Updated dependencies
|
|
79
91
|
|
|
80
92
|
## 0.2.4
|
|
81
93
|
|
|
82
94
|
### Patch Changes
|
|
83
95
|
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
96
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
97
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
98
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
87
99
|
|
|
88
100
|
## 0.2.3
|
|
89
101
|
|
|
90
102
|
### Patch Changes
|
|
91
103
|
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
104
|
+
- [#41429](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41429)
|
|
105
|
+
[`86a2ac5bc4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/86a2ac5bc4f) - Fix race
|
|
106
|
+
condition with editor disabled being set in the prosemirror update cycle ausing a specific case
|
|
107
|
+
where the floating toolbar did not appear.
|
|
96
108
|
|
|
97
109
|
## 0.2.2
|
|
98
110
|
|
|
99
111
|
### Patch Changes
|
|
100
112
|
|
|
101
|
-
-
|
|
113
|
+
- Updated dependencies
|
|
102
114
|
|
|
103
115
|
## 0.2.1
|
|
104
116
|
|
|
105
117
|
### Patch Changes
|
|
106
118
|
|
|
107
|
-
-
|
|
119
|
+
- Updated dependencies
|
|
108
120
|
|
|
109
121
|
## 0.2.0
|
|
110
122
|
|
|
111
123
|
### Minor Changes
|
|
112
124
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
125
|
+
- [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
|
|
126
|
+
[`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
|
|
127
|
+
all plugins with minor version to correct issue with semver.
|
|
116
128
|
|
|
117
129
|
## 0.1.2
|
|
118
130
|
|
|
119
131
|
### Patch Changes
|
|
120
132
|
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
133
|
+
- [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
|
|
134
|
+
[`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
|
|
135
|
+
atlaskit docs to all existing plugins.
|
|
124
136
|
|
|
125
137
|
## 0.1.1
|
|
126
138
|
|
|
127
139
|
### Patch Changes
|
|
128
140
|
|
|
129
|
-
-
|
|
141
|
+
- Updated dependencies
|
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2023 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -28,7 +28,7 @@ var scheduleEditorDisabledUpdate = (0, _rafSchd.default)(function (view) {
|
|
|
28
28
|
|
|
29
29
|
/*
|
|
30
30
|
Stores the state of the editor enabled/disabled for panel and floating
|
|
31
|
-
toolbar to subscribe to through
|
|
31
|
+
toolbar to subscribe to through useSharedPluginState. Otherwise the NodeViews
|
|
32
32
|
won't re-render when it changes.
|
|
33
33
|
*/
|
|
34
34
|
function createPlugin(dispatch) {
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -22,7 +22,7 @@ const scheduleEditorDisabledUpdate = rafSchedule(view => {
|
|
|
22
22
|
|
|
23
23
|
/*
|
|
24
24
|
Stores the state of the editor enabled/disabled for panel and floating
|
|
25
|
-
toolbar to subscribe to through
|
|
25
|
+
toolbar to subscribe to through useSharedPluginState. Otherwise the NodeViews
|
|
26
26
|
won't re-render when it changes.
|
|
27
27
|
*/
|
|
28
28
|
function createPlugin(dispatch) {
|
package/dist/esm/plugin.js
CHANGED
|
@@ -21,7 +21,7 @@ var scheduleEditorDisabledUpdate = rafSchedule(function (view) {
|
|
|
21
21
|
|
|
22
22
|
/*
|
|
23
23
|
Stores the state of the editor enabled/disabled for panel and floating
|
|
24
|
-
toolbar to subscribe to through
|
|
24
|
+
toolbar to subscribe to through useSharedPluginState. Otherwise the NodeViews
|
|
25
25
|
won't re-render when it changes.
|
|
26
26
|
*/
|
|
27
27
|
function createPlugin(dispatch) {
|
package/package.json
CHANGED
|
@@ -1,74 +1,72 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
74
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-editor-disabled",
|
|
3
|
+
"version": "1.1.6",
|
|
4
|
+
"description": "Editor disabled plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"runReact18": false
|
|
15
|
+
},
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
|
+
"main": "dist/cjs/index.js",
|
|
18
|
+
"module": "dist/esm/index.js",
|
|
19
|
+
"module:es2019": "dist/es2019/index.js",
|
|
20
|
+
"types": "dist/types/index.d.ts",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"atlaskit:src": "src/index.ts",
|
|
23
|
+
"af:exports": {
|
|
24
|
+
".": "./src/index.ts"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@atlaskit/editor-common": "^83.0.0",
|
|
28
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
29
|
+
"@babel/runtime": "^7.0.0",
|
|
30
|
+
"raf-schd": "^4.0.3"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"react": "^16.8.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@testing-library/react": "^12.1.5",
|
|
37
|
+
"raf-stub": "^2.0.1",
|
|
38
|
+
"react-dom": "^16.8.0",
|
|
39
|
+
"typescript": "~5.4.2",
|
|
40
|
+
"wait-for-expect": "^1.2.0"
|
|
41
|
+
},
|
|
42
|
+
"techstack": {
|
|
43
|
+
"@atlassian/frontend": {
|
|
44
|
+
"import-structure": [
|
|
45
|
+
"atlassian-conventions"
|
|
46
|
+
],
|
|
47
|
+
"circular-dependencies": [
|
|
48
|
+
"file-and-folder-level"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"@repo/internal": {
|
|
52
|
+
"dom-events": "use-bind-event-listener",
|
|
53
|
+
"analytics": [
|
|
54
|
+
"analytics-next"
|
|
55
|
+
],
|
|
56
|
+
"design-tokens": [
|
|
57
|
+
"color"
|
|
58
|
+
],
|
|
59
|
+
"theming": [
|
|
60
|
+
"react-context"
|
|
61
|
+
],
|
|
62
|
+
"ui-components": [
|
|
63
|
+
"lite-mode"
|
|
64
|
+
],
|
|
65
|
+
"deprecation": "no-deprecated-imports",
|
|
66
|
+
"styling": [
|
|
67
|
+
"emotion",
|
|
68
|
+
"emotion"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-editor-disabled"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -19,10 +20,10 @@ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
|
19
20
|
|
|
20
21
|
// @public (undocumented)
|
|
21
22
|
export type EditorDisabledPlugin = NextEditorPlugin<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
'editorDisabled',
|
|
24
|
+
{
|
|
25
|
+
sharedState: EditorDisabledPluginState;
|
|
26
|
+
}
|
|
26
27
|
>;
|
|
27
28
|
|
|
28
29
|
// @public
|
|
@@ -30,7 +31,7 @@ export const editorDisabledPlugin: EditorDisabledPlugin;
|
|
|
30
31
|
|
|
31
32
|
// @public (undocumented)
|
|
32
33
|
export type EditorDisabledPluginState = {
|
|
33
|
-
|
|
34
|
+
editorDisabled: boolean;
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
// (No @packageDocumentation comment for this package)
|
|
@@ -44,7 +45,7 @@ export type EditorDisabledPluginState = {
|
|
|
44
45
|
|
|
45
46
|
```json
|
|
46
47
|
{
|
|
47
|
-
|
|
48
|
+
"react": "^16.8.0"
|
|
48
49
|
}
|
|
49
50
|
```
|
|
50
51
|
|