@atlaskit/editor-plugin-type-ahead 11.1.0 → 11.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,19 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 11.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4c2645b77929d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4c2645b77929d) -
8
+ [ux] EDITOR-7346 add ai and diff plugin support for panel_c1
9
+ - Updated dependencies
10
+
11
+ ## 11.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 11.1.0
4
18
 
5
19
  ### Minor Changes
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.insertInlineNodeOrFragment = exports.insertBlockNode = void 0;
7
7
  var _insert = require("@atlaskit/editor-common/insert");
8
8
  var _utils = require("@atlaskit/editor-common/utils");
9
+ var _nodeTypeUtils = require("@atlaskit/editor-common/utils/node-type-utils");
9
10
  var _model = require("@atlaskit/editor-prosemirror/model");
10
11
  var _state = require("@atlaskit/editor-prosemirror/state");
11
12
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
@@ -85,7 +86,7 @@ var insertBlockNode = exports.insertBlockNode = function insertBlockNode(_ref) {
85
86
  */
86
87
  var grandParentNodeType = (_tr$selection$$from$n = tr.selection.$from.node(-1)) === null || _tr$selection$$from$n === void 0 ? void 0 : _tr$selection$$from$n.type;
87
88
  var ggreatGrandParentNodeType = (_tr$selection$$from$n2 = tr.selection.$from.node(-3)) === null || _tr$selection$$from$n2 === void 0 ? void 0 : _tr$selection$$from$n2.type;
88
- var isGGreatGrandParentOfSameType = (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) ? ggreatGrandParentNodeType && (0, _utils.isNodeOfSameBaseType)(ggreatGrandParentNodeType, node.type) : ggreatGrandParentNodeType === node.type;
89
+ var isGGreatGrandParentOfSameType = (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) ? ggreatGrandParentNodeType && (0, _nodeTypeUtils.isNodeOfSameBaseType)(ggreatGrandParentNodeType, node.type) : ggreatGrandParentNodeType === node.type;
89
90
  if (grandParentNodeType === listItem && !isGGreatGrandParentOfSameType) {
90
91
  return (0, _utils.transformNodeIntoListItem)(tr, nodeNormalized);
91
92
  }
@@ -1,5 +1,6 @@
1
1
  import { normaliseNestedLayout, safeInsert } from '@atlaskit/editor-common/insert';
2
- import { isNodeOfSameBaseType, transformNodeIntoListItem } from '@atlaskit/editor-common/utils';
2
+ import { transformNodeIntoListItem } from '@atlaskit/editor-common/utils';
3
+ import { isNodeOfSameBaseType } from '@atlaskit/editor-common/utils/node-type-utils';
3
4
  import { Fragment, Node as PMNode, Slice } from '@atlaskit/editor-prosemirror/model';
4
5
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
5
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -1,5 +1,6 @@
1
1
  import { normaliseNestedLayout, safeInsert } from '@atlaskit/editor-common/insert';
2
- import { isNodeOfSameBaseType, transformNodeIntoListItem } from '@atlaskit/editor-common/utils';
2
+ import { transformNodeIntoListItem } from '@atlaskit/editor-common/utils';
3
+ import { isNodeOfSameBaseType } from '@atlaskit/editor-common/utils/node-type-utils';
3
4
  import { Fragment, Node as PMNode, Slice } from '@atlaskit/editor-prosemirror/model';
4
5
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
5
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "11.1.0",
3
+ "version": "11.1.2",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,8 +44,8 @@
44
44
  "@atlaskit/primitives": "^19.0.0",
45
45
  "@atlaskit/prosemirror-history": "^0.2.0",
46
46
  "@atlaskit/prosemirror-input-rules": "^3.7.0",
47
- "@atlaskit/tmp-editor-statsig": "^89.0.0",
48
- "@atlaskit/tokens": "^13.1.0",
47
+ "@atlaskit/tmp-editor-statsig": "^90.2.0",
48
+ "@atlaskit/tokens": "^13.3.0",
49
49
  "@atlaskit/visually-hidden": "^3.1.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
@@ -56,7 +56,7 @@
56
56
  "w3c-keyname": "^2.1.8"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^115.3.0",
59
+ "@atlaskit/editor-common": "^115.7.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
62
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"