@atlaskit/editor-plugin-expand 25.0.3 → 26.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,23 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 26.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 25.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`0a81f6fa7cbf8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a81f6fa7cbf8) -
14
+ Clean up experiment `platform_editor_breakout_resizing`. Behind the
15
+ `platform_editor_list_join_strip_breakout` experiment, strip the breakout mark from a code block
16
+ before nesting it into a list item when joining from a gap cursor. Behind the
17
+ `platform_editor_resizer_selector_jsdom_fix` experiment, make the panel and rule breakout resizer
18
+ selectors parseable by jsdom (`> *[data-prosemirror-node-name=…]`).
19
+ - Updated dependencies
20
+
3
21
  ## 25.0.3
4
22
 
5
23
  ### Patch Changes
@@ -287,16 +287,14 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
287
287
  _this.handleUndoFromTitle(event);
288
288
  return;
289
289
  }
290
- if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true)) {
291
- if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
292
- _this.view.dispatchEvent(new KeyboardEvent('keydown', {
293
- key: event.key,
294
- code: event.code,
295
- metaKey: event.metaKey,
296
- ctrlKey: event.ctrlKey,
297
- altKey: event.altKey
298
- }));
299
- }
290
+ if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
291
+ _this.view.dispatchEvent(new KeyboardEvent('keydown', {
292
+ key: event.key,
293
+ code: event.code,
294
+ metaKey: event.metaKey,
295
+ ctrlKey: event.ctrlKey,
296
+ altKey: event.altKey
297
+ }));
300
298
  }
301
299
  });
302
300
  (0, _defineProperty2.default)(this, "deleteExpand", function (_event) {
@@ -231,16 +231,14 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
231
231
  _this.handleUndoFromTitle(event);
232
232
  return;
233
233
  }
234
- if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true)) {
235
- if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
236
- _this.view.dispatchEvent(new KeyboardEvent('keydown', {
237
- key: event.key,
238
- code: event.code,
239
- metaKey: event.metaKey,
240
- ctrlKey: event.ctrlKey,
241
- altKey: event.altKey
242
- }));
243
- }
234
+ if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
235
+ _this.view.dispatchEvent(new KeyboardEvent('keydown', {
236
+ key: event.key,
237
+ code: event.code,
238
+ metaKey: event.metaKey,
239
+ ctrlKey: event.ctrlKey,
240
+ altKey: event.altKey
241
+ }));
244
242
  }
245
243
  });
246
244
  (0, _defineProperty2.default)(this, "deleteEmptyExpand", function () {
@@ -279,16 +279,14 @@ export class ExpandNodeView {
279
279
  this.handleUndoFromTitle(event);
280
280
  return;
281
281
  }
282
- if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
283
- if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
284
- this.view.dispatchEvent(new KeyboardEvent('keydown', {
285
- key: event.key,
286
- code: event.code,
287
- metaKey: event.metaKey,
288
- ctrlKey: event.ctrlKey,
289
- altKey: event.altKey
290
- }));
291
- }
282
+ if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
283
+ this.view.dispatchEvent(new KeyboardEvent('keydown', {
284
+ key: event.key,
285
+ code: event.code,
286
+ metaKey: event.metaKey,
287
+ ctrlKey: event.ctrlKey,
288
+ altKey: event.altKey
289
+ }));
292
290
  }
293
291
  });
294
292
  _defineProperty(this, "deleteExpand", _event => {
@@ -218,16 +218,14 @@ export class ExpandNodeView {
218
218
  this.handleUndoFromTitle(event);
219
219
  return;
220
220
  }
221
- if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
222
- if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
223
- this.view.dispatchEvent(new KeyboardEvent('keydown', {
224
- key: event.key,
225
- code: event.code,
226
- metaKey: event.metaKey,
227
- ctrlKey: event.ctrlKey,
228
- altKey: event.altKey
229
- }));
230
- }
221
+ if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
222
+ this.view.dispatchEvent(new KeyboardEvent('keydown', {
223
+ key: event.key,
224
+ code: event.code,
225
+ metaKey: event.metaKey,
226
+ ctrlKey: event.ctrlKey,
227
+ altKey: event.altKey
228
+ }));
231
229
  }
232
230
  });
233
231
  _defineProperty(this, "deleteEmptyExpand", () => {
@@ -279,16 +279,14 @@ export var ExpandNodeView = /*#__PURE__*/function () {
279
279
  _this.handleUndoFromTitle(event);
280
280
  return;
281
281
  }
282
- if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
283
- if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
284
- _this.view.dispatchEvent(new KeyboardEvent('keydown', {
285
- key: event.key,
286
- code: event.code,
287
- metaKey: event.metaKey,
288
- ctrlKey: event.ctrlKey,
289
- altKey: event.altKey
290
- }));
291
- }
282
+ if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
283
+ _this.view.dispatchEvent(new KeyboardEvent('keydown', {
284
+ key: event.key,
285
+ code: event.code,
286
+ metaKey: event.metaKey,
287
+ ctrlKey: event.ctrlKey,
288
+ altKey: event.altKey
289
+ }));
292
290
  }
293
291
  });
294
292
  _defineProperty(this, "deleteExpand", function (_event) {
@@ -223,16 +223,14 @@ export var ExpandNodeView = /*#__PURE__*/function () {
223
223
  _this.handleUndoFromTitle(event);
224
224
  return;
225
225
  }
226
- if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
227
- if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
228
- _this.view.dispatchEvent(new KeyboardEvent('keydown', {
229
- key: event.key,
230
- code: event.code,
231
- metaKey: event.metaKey,
232
- ctrlKey: event.ctrlKey,
233
- altKey: event.altKey
234
- }));
235
- }
226
+ if ((event.ctrlKey || event.metaKey) && event.altKey && (event.code === 'BracketLeft' || event.code === 'BracketRight')) {
227
+ _this.view.dispatchEvent(new KeyboardEvent('keydown', {
228
+ key: event.key,
229
+ code: event.code,
230
+ metaKey: event.metaKey,
231
+ ctrlKey: event.ctrlKey,
232
+ altKey: event.altKey
233
+ }));
236
234
  }
237
235
  });
238
236
  _defineProperty(this, "deleteEmptyExpand", function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "25.0.3",
3
+ "version": "26.0.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,18 +21,18 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.6.0",
24
+ "@atlaskit/adf-schema": "^57.7.0",
25
25
  "@atlaskit/button": "^25.4.0",
26
- "@atlaskit/editor-plugin-analytics": "^24.0.0",
27
- "@atlaskit/editor-plugin-block-controls": "^25.0.0",
28
- "@atlaskit/editor-plugin-block-menu": "^23.0.0",
29
- "@atlaskit/editor-plugin-decorations": "^24.0.0",
30
- "@atlaskit/editor-plugin-editor-disabled": "^24.0.0",
31
- "@atlaskit/editor-plugin-editor-viewmode": "^26.0.0",
32
- "@atlaskit/editor-plugin-limited-mode": "^21.0.0",
33
- "@atlaskit/editor-plugin-local-id": "^22.0.0",
34
- "@atlaskit/editor-plugin-selection": "^24.0.0",
35
- "@atlaskit/editor-plugin-selection-marker": "^24.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^25.0.0",
27
+ "@atlaskit/editor-plugin-block-controls": "^26.0.0",
28
+ "@atlaskit/editor-plugin-block-menu": "^24.0.0",
29
+ "@atlaskit/editor-plugin-decorations": "^25.0.0",
30
+ "@atlaskit/editor-plugin-editor-disabled": "^25.0.0",
31
+ "@atlaskit/editor-plugin-editor-viewmode": "^27.0.0",
32
+ "@atlaskit/editor-plugin-limited-mode": "^22.0.0",
33
+ "@atlaskit/editor-plugin-local-id": "^23.0.0",
34
+ "@atlaskit/editor-plugin-selection": "^25.0.0",
35
+ "@atlaskit/editor-plugin-selection-marker": "^25.0.0",
36
36
  "@atlaskit/editor-prosemirror": "^9.0.0",
37
37
  "@atlaskit/editor-shared-styles": "^4.3.0",
38
38
  "@atlaskit/editor-tables": "^3.2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^2.2.0",
45
45
  "@atlaskit/prosemirror-history": "^1.3.0",
46
- "@atlaskit/tmp-editor-statsig": "^223.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^224.0.0",
47
47
  "@atlaskit/tokens": "^20.3.0",
48
48
  "@atlaskit/tooltip": "^24.4.0",
49
49
  "@babel/runtime": "^7.0.0",
@@ -52,7 +52,7 @@
52
52
  "w3c-keyname": "^2.1.8"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^128.3.0",
55
+ "@atlaskit/editor-common": "^129.0.0",
56
56
  "react": "^18.2.0 || ^19.2.0",
57
57
  "react-dom": "^18.2.0 || ^19.2.0",
58
58
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"