@atlaskit/editor-plugin-limited-mode 3.1.2 → 3.1.3

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-limited-mode
2
2
 
3
+ ## 3.1.3
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
  ## 3.1.2
4
12
 
5
13
  ### Patch Changes
@@ -15,13 +15,10 @@ var limitedModePluginKey = exports.limitedModePluginKey = new _state.PluginKey('
15
15
  var createPlugin = exports.createPlugin = function createPlugin() {
16
16
  return new _safePlugin.SafePlugin({
17
17
  key: limitedModePluginKey,
18
- // @ts-ignore - Workaround for help-center local consumption
19
-
20
18
  view: function view(_view) {
21
19
  return {};
22
20
  },
23
21
  state: {
24
- // @ts-ignore - Workaround for help-center local consumption
25
22
  init: function init(config, editorState) {
26
23
  // @ts-expect-error - true is not allowed as a default value
27
24
  if ((0, _expVal.expVal)('cc_editor_limited_mode_include_lcm', 'isEnabled', true)) {
@@ -29,8 +26,6 @@ var createPlugin = exports.createPlugin = function createPlugin() {
29
26
  // is stored in the attrs.
30
27
  // This is essentiall doc.nod
31
28
  var customDocSize = editorState.doc.nodeSize;
32
- // @ts-ignore - Workaround for help-center local consumption
33
-
34
29
  editorState.doc.descendants(function (node) {
35
30
  var _node$attrs;
36
31
  if (((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.extensionKey) === 'legacy-content') {
@@ -52,8 +47,6 @@ var createPlugin = exports.createPlugin = function createPlugin() {
52
47
  };
53
48
  }
54
49
  },
55
- // @ts-ignore - Workaround for help-center local consumption
56
-
57
50
  apply: function apply(tr, currentPluginState) {
58
51
  // Don't check the document size if we're already in limited mode.
59
52
  // We ALWAYS want to re-check the document size if we're replacing the document (e.g. live-to-live page navigation).
@@ -67,8 +60,6 @@ var createPlugin = exports.createPlugin = function createPlugin() {
67
60
  // is stored in the attrs.
68
61
  // This is essentiall doc.nod
69
62
  var customDocSize = tr.doc.nodeSize;
70
- // @ts-ignore - Workaround for help-center local consumption
71
-
72
63
  tr.doc.descendants(function (node) {
73
64
  var _node$attrs3;
74
65
  if (((_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.extensionKey) === 'legacy-content') {
@@ -5,14 +5,10 @@ export const limitedModePluginKey = new PluginKey('limitedModePlugin');
5
5
  export const createPlugin = () => {
6
6
  return new SafePlugin({
7
7
  key: limitedModePluginKey,
8
- // @ts-ignore - Workaround for help-center local consumption
9
-
10
8
  view: _view => {
11
9
  return {};
12
10
  },
13
11
  state: {
14
- // @ts-ignore - Workaround for help-center local consumption
15
-
16
12
  init(config, editorState) {
17
13
  // @ts-expect-error - true is not allowed as a default value
18
14
  if (expVal('cc_editor_limited_mode_include_lcm', 'isEnabled', true)) {
@@ -20,8 +16,6 @@ export const createPlugin = () => {
20
16
  // is stored in the attrs.
21
17
  // This is essentiall doc.nod
22
18
  let customDocSize = editorState.doc.nodeSize;
23
- // @ts-ignore - Workaround for help-center local consumption
24
-
25
19
  editorState.doc.descendants(node => {
26
20
  var _node$attrs;
27
21
  if (((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.extensionKey) === 'legacy-content') {
@@ -43,8 +37,6 @@ export const createPlugin = () => {
43
37
  };
44
38
  }
45
39
  },
46
- // @ts-ignore - Workaround for help-center local consumption
47
-
48
40
  apply: (tr, currentPluginState) => {
49
41
  // Don't check the document size if we're already in limited mode.
50
42
  // We ALWAYS want to re-check the document size if we're replacing the document (e.g. live-to-live page navigation).
@@ -58,8 +50,6 @@ export const createPlugin = () => {
58
50
  // is stored in the attrs.
59
51
  // This is essentiall doc.nod
60
52
  let customDocSize = tr.doc.nodeSize;
61
- // @ts-ignore - Workaround for help-center local consumption
62
-
63
53
  tr.doc.descendants(node => {
64
54
  var _node$attrs3;
65
55
  if (((_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.extensionKey) === 'legacy-content') {
@@ -8,13 +8,10 @@ export var limitedModePluginKey = new PluginKey('limitedModePlugin');
8
8
  export var createPlugin = function createPlugin() {
9
9
  return new SafePlugin({
10
10
  key: limitedModePluginKey,
11
- // @ts-ignore - Workaround for help-center local consumption
12
-
13
11
  view: function view(_view) {
14
12
  return {};
15
13
  },
16
14
  state: {
17
- // @ts-ignore - Workaround for help-center local consumption
18
15
  init: function init(config, editorState) {
19
16
  // @ts-expect-error - true is not allowed as a default value
20
17
  if (expVal('cc_editor_limited_mode_include_lcm', 'isEnabled', true)) {
@@ -22,8 +19,6 @@ export var createPlugin = function createPlugin() {
22
19
  // is stored in the attrs.
23
20
  // This is essentiall doc.nod
24
21
  var customDocSize = editorState.doc.nodeSize;
25
- // @ts-ignore - Workaround for help-center local consumption
26
-
27
22
  editorState.doc.descendants(function (node) {
28
23
  var _node$attrs;
29
24
  if (((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.extensionKey) === 'legacy-content') {
@@ -45,8 +40,6 @@ export var createPlugin = function createPlugin() {
45
40
  };
46
41
  }
47
42
  },
48
- // @ts-ignore - Workaround for help-center local consumption
49
-
50
43
  apply: function apply(tr, currentPluginState) {
51
44
  // Don't check the document size if we're already in limited mode.
52
45
  // We ALWAYS want to re-check the document size if we're replacing the document (e.g. live-to-live page navigation).
@@ -60,8 +53,6 @@ export var createPlugin = function createPlugin() {
60
53
  // is stored in the attrs.
61
54
  // This is essentiall doc.nod
62
55
  var customDocSize = tr.doc.nodeSize;
63
- // @ts-ignore - Workaround for help-center local consumption
64
-
65
56
  tr.doc.descendants(function (node) {
66
57
  var _node$attrs3;
67
58
  if (((_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.extensionKey) === 'legacy-content') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-limited-mode",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "LimitedMode plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/editor-prosemirror": "7.0.0",
32
32
  "@atlaskit/primitives": "^16.4.0",
33
- "@atlaskit/tmp-editor-statsig": "^14.0.0",
33
+ "@atlaskit/tmp-editor-statsig": "^14.2.0",
34
34
  "@babel/runtime": "^7.0.0",
35
35
  "bind-event-listener": "^3.0.0",
36
36
  "react-intl-next": "npm:react-intl@^5.18.1"