@atlaskit/editor-plugin-block-controls 8.0.3 → 8.0.4

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,14 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 8.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c4a774ad462fb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4a774ad462fb) -
8
+ EDITOR-2477 Clean up remaining usages of `platform_editor_use_nested_table_pm_nodes` which are no
9
+ longer needed now that `isNestedTablesSupported` is fully rolled out.
10
+ - Updated dependencies
11
+
3
12
  ## 8.0.3
4
13
 
5
14
  ### Patch Changes
@@ -12,7 +12,6 @@ var _memoizeOne = _interopRequireDefault(require("memoize-one"));
12
12
  var _nesting = require("@atlaskit/editor-common/nesting");
13
13
  var _model = require("@atlaskit/editor-prosemirror/model");
14
14
  var _utils = require("@atlaskit/editor-prosemirror/utils");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
16
  var isInsideTable = exports.isInsideTable = function isInsideTable(nodeType) {
18
17
  var _nodeType$schema$node = nodeType.schema.nodes,
@@ -113,7 +112,7 @@ function canMoveNodeToIndex(destParent, indexIntoParent, srcNode, $destNodePos,
113
112
  var destParentNodeType = destParent === null || destParent === void 0 ? void 0 : destParent.type;
114
113
  var activeNodeType = srcNode === null || srcNode === void 0 ? void 0 : srcNode.type;
115
114
  var layoutColumnContent = srcNode.content;
116
- var isNestingTablesSupported = (0, _nesting.isNestedTablesSupported)(schema) && (0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes') && (0, _experiments.editorExperiment)('nested-tables-in-tables', true, {
115
+ var isNestingTablesSupported = (0, _nesting.isNestedTablesSupported)(schema) && (0, _experiments.editorExperiment)('nested-tables-in-tables', true, {
117
116
  exposure: true
118
117
  });
119
118
  if (activeNodeType === layoutColumn && (0, _experiments.editorExperiment)('advanced_layouts', true)) {
@@ -2,7 +2,6 @@ import memoizeOne from 'memoize-one';
2
2
  import { getParentOfTypeCount, isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
3
3
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
4
4
  import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
6
  export const isInsideTable = nodeType => {
8
7
  const {
@@ -104,7 +103,7 @@ export function canMoveNodeToIndex(destParent, indexIntoParent, srcNode, $destNo
104
103
  const destParentNodeType = destParent === null || destParent === void 0 ? void 0 : destParent.type;
105
104
  const activeNodeType = srcNode === null || srcNode === void 0 ? void 0 : srcNode.type;
106
105
  const layoutColumnContent = srcNode.content;
107
- const isNestingTablesSupported = isNestedTablesSupported(schema) && fg('platform_editor_use_nested_table_pm_nodes') && editorExperiment('nested-tables-in-tables', true, {
106
+ const isNestingTablesSupported = isNestedTablesSupported(schema) && editorExperiment('nested-tables-in-tables', true, {
108
107
  exposure: true
109
108
  });
110
109
  if (activeNodeType === layoutColumn && editorExperiment('advanced_layouts', true)) {
@@ -2,7 +2,6 @@ import memoizeOne from 'memoize-one';
2
2
  import { getParentOfTypeCount, isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
3
3
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
4
4
  import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
6
  export var isInsideTable = function isInsideTable(nodeType) {
8
7
  var _nodeType$schema$node = nodeType.schema.nodes,
@@ -103,7 +102,7 @@ export function canMoveNodeToIndex(destParent, indexIntoParent, srcNode, $destNo
103
102
  var destParentNodeType = destParent === null || destParent === void 0 ? void 0 : destParent.type;
104
103
  var activeNodeType = srcNode === null || srcNode === void 0 ? void 0 : srcNode.type;
105
104
  var layoutColumnContent = srcNode.content;
106
- var isNestingTablesSupported = isNestedTablesSupported(schema) && fg('platform_editor_use_nested_table_pm_nodes') && editorExperiment('nested-tables-in-tables', true, {
105
+ var isNestingTablesSupported = isNestedTablesSupported(schema) && editorExperiment('nested-tables-in-tables', true, {
107
106
  exposure: true
108
107
  });
109
108
  if (activeNodeType === layoutColumn && editorExperiment('advanced_layouts', true)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/primitives": "^17.0.0",
56
56
  "@atlaskit/theme": "^21.0.0",
57
57
  "@atlaskit/tmp-editor-statsig": "^16.4.0",
58
- "@atlaskit/tokens": "^9.0.0",
58
+ "@atlaskit/tokens": "^9.1.0",
59
59
  "@atlaskit/tooltip": "^20.11.0",
60
60
  "@babel/runtime": "^7.0.0",
61
61
  "@emotion/react": "^11.7.1",
@@ -110,9 +110,6 @@
110
110
  }
111
111
  },
112
112
  "platform-feature-flags": {
113
- "platform_editor_use_nested_table_pm_nodes": {
114
- "type": "boolean"
115
- },
116
113
  "platform_editor_track_node_types": {
117
114
  "type": "boolean"
118
115
  },