@atlaskit/editor-plugin-expand 7.4.14 → 7.4.16

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-expand
2
2
 
3
+ ## 7.4.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b083a0f3cd801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b083a0f3cd801) -
8
+ EDITOR-3869 Update experiment flag check to fire exposures in expand keymap and update variable
9
+ names
10
+ - Updated dependencies
11
+
12
+ ## 7.4.15
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 7.4.14
4
19
 
5
20
  ### Patch Changes
@@ -12,7 +12,7 @@ var _utils = require("@atlaskit/editor-common/utils");
12
12
  var _keymap = require("@atlaskit/editor-prosemirror/keymap");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
14
  var _utils2 = require("@atlaskit/editor-tables/utils");
15
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
15
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
16
  var _commands = require("../commands");
17
17
  var isExpandNode = function isExpandNode(node) {
18
18
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
@@ -145,7 +145,7 @@ function expandKeymap(api, options) {
145
145
  var $from = selection.$from;
146
146
  return (0, _commands.focusTitle)($from.pos + 1)(state, dispatch, editorView);
147
147
  }
148
- if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
148
+ if ((0, _expValEquals.expValEquals)('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
149
149
  var nextExpandPos = (0, _expand2.getNextNodeExpandPos)(editorView, selection);
150
150
  if (nextExpandPos !== undefined) {
151
151
  return (0, _commands.focusTitle)(nextExpandPos)(state, dispatch, editorView);
@@ -12,7 +12,7 @@ var _utils = require("@atlaskit/editor-common/utils");
12
12
  var _keymap = require("@atlaskit/editor-prosemirror/keymap");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
14
  var _utils2 = require("@atlaskit/editor-tables/utils");
15
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
15
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
16
  var _commands = require("../commands");
17
17
  var isExpandNode = function isExpandNode(node) {
18
18
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
@@ -145,7 +145,7 @@ function expandKeymap(api) {
145
145
  var $from = selection.$from;
146
146
  return (0, _commands.focusTitle)($from.pos + 1)(state, dispatch, editorView);
147
147
  }
148
- if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
148
+ if ((0, _expValEquals.expValEquals)('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
149
149
  var nextExpandPos = (0, _expand2.getNextNodeExpandPos)(editorView, selection);
150
150
  if (nextExpandPos !== undefined) {
151
151
  return (0, _commands.focusTitle)(nextExpandPos)(state, dispatch, editorView);
@@ -6,7 +6,7 @@ import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/uti
6
6
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
7
7
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { isInTable } from '@atlaskit/editor-tables/utils';
9
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
9
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
10
  import { deleteExpand, focusIcon, focusTitle } from '../commands';
11
11
  const isExpandNode = node => {
12
12
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
@@ -162,7 +162,7 @@ export function expandKeymap(api, options) {
162
162
  } = selection;
163
163
  return focusTitle($from.pos + 1)(state, dispatch, editorView);
164
164
  }
165
- if (expValEqualsNoExposure('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
165
+ if (expValEquals('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
166
166
  const nextExpandPos = getNextNodeExpandPos(editorView, selection);
167
167
  if (nextExpandPos !== undefined) {
168
168
  return focusTitle(nextExpandPos)(state, dispatch, editorView);
@@ -6,7 +6,7 @@ import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/uti
6
6
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
7
7
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { isInTable } from '@atlaskit/editor-tables/utils';
9
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
9
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
10
  import { deleteExpand, focusIcon, focusTitle } from '../commands';
11
11
  const isExpandNode = node => {
12
12
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
@@ -162,7 +162,7 @@ export function expandKeymap(api) {
162
162
  } = selection;
163
163
  return focusTitle($from.pos + 1)(state, dispatch, editorView);
164
164
  }
165
- if (expValEqualsNoExposure('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
165
+ if (expValEquals('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
166
166
  const nextExpandPos = getNextNodeExpandPos(editorView, selection);
167
167
  if (nextExpandPos !== undefined) {
168
168
  return focusTitle(nextExpandPos)(state, dispatch, editorView);
@@ -6,7 +6,7 @@ import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/uti
6
6
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
7
7
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { isInTable } from '@atlaskit/editor-tables/utils';
9
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
9
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
10
  import { deleteExpand, focusIcon, focusTitle } from '../commands';
11
11
  var isExpandNode = function isExpandNode(node) {
12
12
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
@@ -139,7 +139,7 @@ export function expandKeymap(api, options) {
139
139
  var $from = selection.$from;
140
140
  return focusTitle($from.pos + 1)(state, dispatch, editorView);
141
141
  }
142
- if (expValEqualsNoExposure('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
142
+ if (expValEquals('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
143
143
  var nextExpandPos = getNextNodeExpandPos(editorView, selection);
144
144
  if (nextExpandPos !== undefined) {
145
145
  return focusTitle(nextExpandPos)(state, dispatch, editorView);
@@ -6,7 +6,7 @@ import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/uti
6
6
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
7
7
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { isInTable } from '@atlaskit/editor-tables/utils';
9
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
9
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
10
  import { deleteExpand, focusIcon, focusTitle } from '../commands';
11
11
  var isExpandNode = function isExpandNode(node) {
12
12
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
@@ -139,7 +139,7 @@ export function expandKeymap(api) {
139
139
  var $from = selection.$from;
140
140
  return focusTitle($from.pos + 1)(state, dispatch, editorView);
141
141
  }
142
- if (expValEqualsNoExposure('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
142
+ if (expValEquals('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
143
143
  var nextExpandPos = getNextNodeExpandPos(editorView, selection);
144
144
  if (nextExpandPos !== undefined) {
145
145
  return focusTitle(nextExpandPos)(state, dispatch, editorView);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "7.4.14",
3
+ "version": "7.4.16",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,16 +48,16 @@
48
48
  "@atlaskit/icon-lab": "^5.12.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
- "@atlaskit/tmp-editor-statsig": "^14.7.0",
51
+ "@atlaskit/tmp-editor-statsig": "^15.3.0",
52
52
  "@atlaskit/tokens": "^8.4.0",
53
- "@atlaskit/tooltip": "^20.10.0",
53
+ "@atlaskit/tooltip": "^20.11.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
56
56
  "uuid": "^3.1.0",
57
57
  "w3c-keyname": "^2.1.8"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^110.38.0",
60
+ "@atlaskit/editor-common": "^110.41.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
63
  "react-intl-next": "npm:react-intl@^5.18.1"