@atlaskit/editor-plugin-limited-mode 1.0.1 → 2.0.0
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-limited-mode
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`f0664ee77d680`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f0664ee77d680) -
|
|
14
|
+
ED-29201 Limited Mode: Undefined error in our limited mode enabled getter when trying to get
|
|
15
|
+
documentSizeBreachesThreshold from plugin state.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.0.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -18,7 +18,8 @@ var limitedModePlugin = exports.limitedModePlugin = function limitedModePlugin()
|
|
|
18
18
|
if (editorState) {
|
|
19
19
|
return {
|
|
20
20
|
get enabled() {
|
|
21
|
-
|
|
21
|
+
var _limitedModePluginKey, _limitedModePluginKey2;
|
|
22
|
+
return (_limitedModePluginKey = (_limitedModePluginKey2 = _main.limitedModePluginKey.getState(editorState)) === null || _limitedModePluginKey2 === void 0 ? void 0 : _limitedModePluginKey2.documentSizeBreachesThreshold) !== null && _limitedModePluginKey !== void 0 ? _limitedModePluginKey : false;
|
|
22
23
|
},
|
|
23
24
|
limitedModePluginKey: _main.limitedModePluginKey
|
|
24
25
|
};
|
|
@@ -12,7 +12,8 @@ export const limitedModePlugin = () => {
|
|
|
12
12
|
if (editorState) {
|
|
13
13
|
return {
|
|
14
14
|
get enabled() {
|
|
15
|
-
|
|
15
|
+
var _limitedModePluginKey, _limitedModePluginKey2;
|
|
16
|
+
return (_limitedModePluginKey = (_limitedModePluginKey2 = limitedModePluginKey.getState(editorState)) === null || _limitedModePluginKey2 === void 0 ? void 0 : _limitedModePluginKey2.documentSizeBreachesThreshold) !== null && _limitedModePluginKey !== void 0 ? _limitedModePluginKey : false;
|
|
16
17
|
},
|
|
17
18
|
limitedModePluginKey
|
|
18
19
|
};
|
|
@@ -12,7 +12,8 @@ export var limitedModePlugin = function limitedModePlugin() {
|
|
|
12
12
|
if (editorState) {
|
|
13
13
|
return {
|
|
14
14
|
get enabled() {
|
|
15
|
-
|
|
15
|
+
var _limitedModePluginKey, _limitedModePluginKey2;
|
|
16
|
+
return (_limitedModePluginKey = (_limitedModePluginKey2 = limitedModePluginKey.getState(editorState)) === null || _limitedModePluginKey2 === void 0 ? void 0 : _limitedModePluginKey2.documentSizeBreachesThreshold) !== null && _limitedModePluginKey !== void 0 ? _limitedModePluginKey : false;
|
|
16
17
|
},
|
|
17
18
|
limitedModePluginKey: limitedModePluginKey
|
|
18
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-limited-mode",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "LimitedMode plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
32
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
32
|
+
"@atlaskit/tmp-editor-statsig": "^12.9.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^109.0.0",
|
|
37
37
|
"react": "^18.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|