@atlaskit/editor-core 185.17.0 → 186.0.1

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/cjs/index.js +6 -56
  3. package/dist/cjs/plugins/expand/commands.js +2 -0
  4. package/dist/cjs/plugins/expand/index.js +1 -1
  5. package/dist/cjs/version-wrapper.js +1 -1
  6. package/dist/cjs/version.json +1 -1
  7. package/dist/es2019/index.js +0 -13
  8. package/dist/es2019/plugins/expand/commands.js +2 -0
  9. package/dist/es2019/plugins/expand/index.js +1 -1
  10. package/dist/es2019/version-wrapper.js +1 -1
  11. package/dist/es2019/version.json +1 -1
  12. package/dist/esm/index.js +0 -13
  13. package/dist/esm/plugins/expand/commands.js +2 -0
  14. package/dist/esm/plugins/expand/index.js +1 -1
  15. package/dist/esm/version-wrapper.js +1 -1
  16. package/dist/esm/version.json +1 -1
  17. package/dist/types/index.d.ts +0 -14
  18. package/dist/types/labs/next/presets/cxhtml.d.ts +4 -0
  19. package/dist/types/labs/next/presets/default.d.ts +8 -0
  20. package/dist/types/labs/next/presets/mobile.d.ts +4 -0
  21. package/dist/types/plugins/expand/commands.d.ts +3 -3
  22. package/dist/types/plugins/expand/index.d.ts +2 -2
  23. package/dist/types-ts4.5/index.d.ts +0 -14
  24. package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +4 -0
  25. package/dist/types-ts4.5/labs/next/presets/default.d.ts +8 -0
  26. package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +4 -0
  27. package/dist/types-ts4.5/plugins/expand/commands.d.ts +3 -3
  28. package/dist/types-ts4.5/plugins/expand/index.d.ts +2 -2
  29. package/package.json +7 -7
  30. package/report.api.md +0 -58
  31. package/tmp/api-report-tmp.d.ts +0 -29
  32. package/dist/cjs/plugins/deprecated-card/doc.js +0 -111
  33. package/dist/cjs/plugins/deprecated-hyperlink/commands.js +0 -164
  34. package/dist/es2019/plugins/deprecated-card/doc.js +0 -97
  35. package/dist/es2019/plugins/deprecated-hyperlink/commands.js +0 -150
  36. package/dist/esm/plugins/deprecated-card/doc.js +0 -105
  37. package/dist/esm/plugins/deprecated-hyperlink/commands.js +0 -152
  38. package/dist/types/plugins/deprecated-card/doc.d.ts +0 -20
  39. package/dist/types/plugins/deprecated-hyperlink/commands.d.ts +0 -38
  40. package/dist/types-ts4.5/plugins/deprecated-card/doc.d.ts +0 -20
  41. package/dist/types-ts4.5/plugins/deprecated-hyperlink/commands.d.ts +0 -38
package/CHANGELOG.md CHANGED
@@ -1,5 +1,74 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 186.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`38dc2298bf5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/38dc2298bf5) - fix issue where wrong expand node type was being inserted into tables
8
+ - Updated dependencies
9
+
10
+ ## 186.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [`8e084d87da5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e084d87da5) - Remove deprecated hyperlink commands and plugin key including:
15
+
16
+ - isTextAtPos
17
+ - isLinkAtPos
18
+ - insertLink
19
+ - insertLinkWithAnalyticsMobileNative
20
+ - insertLinkWithAnalytics
21
+ - updateLink
22
+ - hyperlinkStateKey
23
+
24
+ If you require `isTextAtPos` or `isLinkAtPos` these can be accessed via `editor-common`:
25
+
26
+ ```ts
27
+ import { isTextAtPos, isLinkAtPos } from '@atlaskit/editor-common/link`;
28
+ ```
29
+
30
+ If you require `insertLink`, `updateLink`, or `hyperlinkStateKey` you can access these via the new composable editor using a custom plugin. Here is an example:
31
+
32
+ ```ts
33
+ import { Editor } from '@atlaskit/editor-core/composable-editor';
34
+ import { EditorProps } from '@atlaskit/editor-core';
35
+ import { useUniversalPreset } from '@atlaskit/editor-core/preset-universal';
36
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
37
+ import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
38
+
39
+ const customPlugin: NextEditorPlugin<'custom', {
40
+ dependencies: [typeof hyperlinkPlugin]
41
+ }> = (_, api) => {
42
+ // Can access insertLink and updateLink here
43
+ api?.dependencies.hyperlink.actions.insertLink( ... )
44
+ api?.dependencies.hyperlink.actions.updateLink( ... )
45
+
46
+
47
+ // Rather than using the `hyperlinkStateKey` you can access via `sharedState`
48
+ api?.dependencies.hyperlink.sharedState.onChange(({ nextSharedState }) => {
49
+ // subscribe to changes
50
+ })
51
+ // OR for current value
52
+ api?.dependencies.hyperlink.sharedState.currentState()
53
+
54
+ return {
55
+ name: 'custom'
56
+ }
57
+ }
58
+
59
+ // This function is the equivalent of `Editor` from `editor-core`
60
+ function EditorWrapped(props: EditorProps) {
61
+ const preset = useUniversalPreset(props).add(customPlugin)
62
+ return <Editor preset={preset} ... />
63
+ }
64
+ ```
65
+
66
+ Note: By default `insertLink` via this interface is `insertLinkWithAnalytics`, however if you want to disable analytics disable them via the `EditorProps` and if you want to run `insertLinkWithAnalyticsMobileNative` pass `cardsAvailable` parameter as `false` (default).
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies
71
+
3
72
  ## 185.17.0
4
73
 
5
74
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -107,12 +107,6 @@ Object.defineProperty(exports, "GapCursorSide", {
107
107
  return _gapCursorSelection.Side;
108
108
  }
109
109
  });
110
- Object.defineProperty(exports, "HyperlinkInsertStatus", {
111
- enumerable: true,
112
- get: function get() {
113
- return _link.InsertStatus;
114
- }
115
- });
116
110
  Object.defineProperty(exports, "INPUT_METHOD", {
117
111
  enumerable: true,
118
112
  get: function get() {
@@ -305,12 +299,6 @@ Object.defineProperty(exports, "historyPluginKey", {
305
299
  return _history.historyPluginKey;
306
300
  }
307
301
  });
308
- Object.defineProperty(exports, "hyperlinkStateKey", {
309
- enumerable: true,
310
- get: function get() {
311
- return _commands6.stateKey;
312
- }
313
- });
314
302
  Object.defineProperty(exports, "insertBlockType", {
315
303
  enumerable: true,
316
304
  get: function get() {
@@ -332,7 +320,7 @@ Object.defineProperty(exports, "insertDate", {
332
320
  Object.defineProperty(exports, "insertExpand", {
333
321
  enumerable: true,
334
322
  get: function get() {
335
- return _commands8.insertExpand;
323
+ return _commands7.insertExpand;
336
324
  }
337
325
  });
338
326
  Object.defineProperty(exports, "insertHorizontalRule", {
@@ -341,24 +329,6 @@ Object.defineProperty(exports, "insertHorizontalRule", {
341
329
  return _commands2.insertHorizontalRule;
342
330
  }
343
331
  });
344
- Object.defineProperty(exports, "insertLink", {
345
- enumerable: true,
346
- get: function get() {
347
- return _commands6.insertLink;
348
- }
349
- });
350
- Object.defineProperty(exports, "insertLinkWithAnalytics", {
351
- enumerable: true,
352
- get: function get() {
353
- return _commands6.insertLinkWithAnalytics;
354
- }
355
- });
356
- Object.defineProperty(exports, "insertLinkWithAnalyticsMobileNative", {
357
- enumerable: true,
358
- get: function get() {
359
- return _commands6.insertLinkWithAnalyticsMobileNative;
360
- }
361
- });
362
332
  Object.defineProperty(exports, "insertMediaSingleNode", {
363
333
  enumerable: true,
364
334
  get: function get() {
@@ -371,18 +341,6 @@ Object.defineProperty(exports, "insertTaskDecisionCommand", {
371
341
  return _commands5.insertTaskDecisionCommand;
372
342
  }
373
343
  });
374
- Object.defineProperty(exports, "isLinkAtPos", {
375
- enumerable: true,
376
- get: function get() {
377
- return _link.isLinkAtPos;
378
- }
379
- });
380
- Object.defineProperty(exports, "isTextAtPos", {
381
- enumerable: true,
382
- get: function get() {
383
- return _link.isTextAtPos;
384
- }
385
- });
386
344
  Object.defineProperty(exports, "lightModeStatusColorPalette", {
387
345
  enumerable: true,
388
346
  get: function get() {
@@ -476,19 +434,19 @@ Object.defineProperty(exports, "setBlockTypeWithAnalytics", {
476
434
  Object.defineProperty(exports, "setIsExpanded", {
477
435
  enumerable: true,
478
436
  get: function get() {
479
- return _commands7.setIsExpanded;
437
+ return _commands6.setIsExpanded;
480
438
  }
481
439
  });
482
440
  Object.defineProperty(exports, "setKeyboardHeight", {
483
441
  enumerable: true,
484
442
  get: function get() {
485
- return _commands7.setKeyboardHeight;
443
+ return _commands6.setKeyboardHeight;
486
444
  }
487
445
  });
488
446
  Object.defineProperty(exports, "setMobilePaddingTop", {
489
447
  enumerable: true,
490
448
  get: function get() {
491
- return _commands7.setMobilePaddingTop;
449
+ return _commands6.setMobilePaddingTop;
492
450
  }
493
451
  });
494
452
  Object.defineProperty(exports, "setStatusPickerAt", {
@@ -629,12 +587,6 @@ Object.defineProperty(exports, "typeAheadPluginKey", {
629
587
  return _typeAhead.typeAheadPluginKey;
630
588
  }
631
589
  });
632
- Object.defineProperty(exports, "updateLink", {
633
- enumerable: true,
634
- get: function get() {
635
- return _commands6.updateLink;
636
- }
637
- });
638
590
  Object.defineProperty(exports, "updateStatus", {
639
591
  enumerable: true,
640
592
  get: function get() {
@@ -675,7 +627,6 @@ var _textColor = require("./plugins/text-color");
675
627
  var _changeColor = require("./plugins/text-color/commands/change-color");
676
628
  var _commands2 = require("./plugins/rule/commands");
677
629
  var _plugins = require("./plugins");
678
- var _link = require("@atlaskit/editor-common/link");
679
630
  var _main3 = require("./plugins/list/pm-plugins/main");
680
631
  var _textFormatting = require("./plugins/text-formatting/commands/text-formatting");
681
632
  var _toolbarAndPickerUpdates = require("./plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates");
@@ -691,10 +642,9 @@ var _pluginKey = require("./plugins/date/pm-plugins/plugin-key");
691
642
  var _actions2 = require("./plugins/status/actions");
692
643
  var _typeAhead = require("./plugins/type-ahead");
693
644
  var _quickInsert = require("./plugins/quick-insert");
694
- var _commands6 = require("./plugins/deprecated-hyperlink/commands");
695
645
  var _history = require("./plugins/history");
696
646
  var _analytics = require("@atlaskit/editor-common/analytics");
697
- var _commands7 = require("./plugins/mobile-dimensions/commands");
647
+ var _commands6 = require("./plugins/mobile-dimensions/commands");
698
648
  var _utils = require("./utils");
699
649
  var _listCommands = require("./utils/list-commands");
700
650
  var _createEditor = require("./create-editor");
@@ -702,7 +652,7 @@ var _actions3 = _interopRequireDefault(require("./actions"));
702
652
  var _portalProvider = require("@atlaskit/editor-common/portal-provider");
703
653
  var _gapCursorSelection = require("./plugins/selection/gap-cursor-selection");
704
654
  var _mobileSelection = require("./plugins/mobile-selection");
705
- var _commands8 = require("./plugins/expand/commands");
655
+ var _commands7 = require("./plugins/expand/commands");
706
656
  var _WithPluginState = _interopRequireDefault(require("./ui/WithPluginState"));
707
657
  var _floatingToolbar = require("./plugins/floating-toolbar");
708
658
  var _statusColorPalette = require("./ui/ColorPalette/Palettes/statusColorPalette");
@@ -107,6 +107,8 @@ var toggleExpandExpanded = function toggleExpandExpanded(pos, nodeType) {
107
107
  return true;
108
108
  };
109
109
  };
110
+
111
+ // Creates either an expand or a nestedExpand node based on the current selection
110
112
  exports.toggleExpandExpanded = toggleExpandExpanded;
111
113
  var createExpandNode = function createExpandNode(state) {
112
114
  var _state$schema$nodes = state.schema.nodes,
@@ -76,7 +76,7 @@ var expandPlugin = function expandPlugin() {
76
76
  }
77
77
  var tr = (0, _blockType.createWrapSelectionTransaction)({
78
78
  state: state,
79
- type: state.schema.nodes.expand
79
+ type: node.type
80
80
  });
81
81
  return (0, _analytics.addAnalytics)(state, tr, {
82
82
  action: _analytics.ACTION.INSERTED,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "185.17.0";
9
+ var version = "186.0.1";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.17.0",
3
+ "version": "186.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -22,7 +22,6 @@ export { textColorPluginKey } from './plugins/text-color';
22
22
  export { changeColor } from './plugins/text-color/commands/change-color';
23
23
  export { insertHorizontalRule } from './plugins/rule/commands';
24
24
  export { blockPluginStateKey } from './plugins';
25
- export { InsertStatus as HyperlinkInsertStatus } from '@atlaskit/editor-common/link';
26
25
  export { pluginKey as listStateKey } from './plugins/list/pm-plugins/main';
27
26
  export { toggleSuperscript, toggleSuperscriptWithAnalytics, toggleSubscript, toggleSubscriptWithAnalytics, toggleStrike, toggleStrikeWithAnalytics, toggleCode, toggleCodeWithAnalytics, toggleUnderline, toggleUnderlineWithAnalytics, toggleEm, toggleEmWithAnalytics, toggleStrong, toggleStrongWithAnalytics } from './plugins/text-formatting/commands/text-formatting';
28
27
  export { subscribeToToolbarAndPickerUpdates } from './plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates';
@@ -38,18 +37,6 @@ export { pluginKey as datePluginKey } from './plugins/date/pm-plugins/plugin-key
38
37
  export { commitStatusPicker, setStatusPickerAt, updateStatus, updateStatusWithAnalytics, removeStatus } from './plugins/status/actions';
39
38
  export { typeAheadPluginKey } from './plugins/type-ahead';
40
39
  export { pluginKey as quickInsertPluginKey, memoProcessItems as processQuickInsertItems } from './plugins/quick-insert';
41
- export { insertLink, insertLinkWithAnalyticsMobileNative, insertLinkWithAnalytics, updateLink, stateKey as hyperlinkStateKey } from './plugins/deprecated-hyperlink/commands';
42
- export {
43
- /**
44
- * @deprecated
45
- * Please use the export from '@atlaskit/editor-common/link`
46
- */
47
- isTextAtPos,
48
- /**
49
- * @deprecated
50
- * Please use the export from '@atlaskit/editor-common/link`
51
- */
52
- isLinkAtPos } from '@atlaskit/editor-common/link';
53
40
  export { historyPluginKey } from './plugins/history';
54
41
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
55
42
  export { setKeyboardHeight, setMobilePaddingTop, setIsExpanded } from './plugins/mobile-dimensions/commands';
@@ -87,6 +87,8 @@ export const toggleExpandExpanded = (pos, nodeType) => (state, dispatch) => {
87
87
  }
88
88
  return true;
89
89
  };
90
+
91
+ // Creates either an expand or a nestedExpand node based on the current selection
90
92
  export const createExpandNode = state => {
91
93
  const {
92
94
  expand,
@@ -58,7 +58,7 @@ const expandPlugin = (options = {}, api) => {
58
58
  }
59
59
  const tr = createWrapSelectionTransaction({
60
60
  state,
61
- type: state.schema.nodes.expand
61
+ type: node.type
62
62
  });
63
63
  return addAnalytics(state, tr, {
64
64
  action: ACTION.INSERTED,
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "185.17.0";
2
+ export const version = "186.0.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.17.0",
3
+ "version": "186.0.1",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/index.js CHANGED
@@ -22,7 +22,6 @@ export { textColorPluginKey } from './plugins/text-color';
22
22
  export { changeColor } from './plugins/text-color/commands/change-color';
23
23
  export { insertHorizontalRule } from './plugins/rule/commands';
24
24
  export { blockPluginStateKey } from './plugins';
25
- export { InsertStatus as HyperlinkInsertStatus } from '@atlaskit/editor-common/link';
26
25
  export { pluginKey as listStateKey } from './plugins/list/pm-plugins/main';
27
26
  export { toggleSuperscript, toggleSuperscriptWithAnalytics, toggleSubscript, toggleSubscriptWithAnalytics, toggleStrike, toggleStrikeWithAnalytics, toggleCode, toggleCodeWithAnalytics, toggleUnderline, toggleUnderlineWithAnalytics, toggleEm, toggleEmWithAnalytics, toggleStrong, toggleStrongWithAnalytics } from './plugins/text-formatting/commands/text-formatting';
28
27
  export { subscribeToToolbarAndPickerUpdates } from './plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates';
@@ -38,18 +37,6 @@ export { pluginKey as datePluginKey } from './plugins/date/pm-plugins/plugin-key
38
37
  export { commitStatusPicker, setStatusPickerAt, updateStatus, updateStatusWithAnalytics, removeStatus } from './plugins/status/actions';
39
38
  export { typeAheadPluginKey } from './plugins/type-ahead';
40
39
  export { pluginKey as quickInsertPluginKey, memoProcessItems as processQuickInsertItems } from './plugins/quick-insert';
41
- export { insertLink, insertLinkWithAnalyticsMobileNative, insertLinkWithAnalytics, updateLink, stateKey as hyperlinkStateKey } from './plugins/deprecated-hyperlink/commands';
42
- export {
43
- /**
44
- * @deprecated
45
- * Please use the export from '@atlaskit/editor-common/link`
46
- */
47
- isTextAtPos,
48
- /**
49
- * @deprecated
50
- * Please use the export from '@atlaskit/editor-common/link`
51
- */
52
- isLinkAtPos } from '@atlaskit/editor-common/link';
53
40
  export { historyPluginKey } from './plugins/history';
54
41
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
55
42
  export { setKeyboardHeight, setMobilePaddingTop, setIsExpanded } from './plugins/mobile-dimensions/commands';
@@ -96,6 +96,8 @@ export var toggleExpandExpanded = function toggleExpandExpanded(pos, nodeType) {
96
96
  return true;
97
97
  };
98
98
  };
99
+
100
+ // Creates either an expand or a nestedExpand node based on the current selection
99
101
  export var createExpandNode = function createExpandNode(state) {
100
102
  var _state$schema$nodes = state.schema.nodes,
101
103
  expand = _state$schema$nodes.expand,
@@ -61,7 +61,7 @@ var expandPlugin = function expandPlugin() {
61
61
  }
62
62
  var tr = createWrapSelectionTransaction({
63
63
  state: state,
64
- type: state.schema.nodes.expand
64
+ type: node.type
65
65
  });
66
66
  return addAnalytics(state, tr, {
67
67
  action: ACTION.INSERTED,
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "185.17.0";
2
+ export var version = "186.0.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.17.0",
3
+ "version": "186.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -29,8 +29,6 @@ export { changeColor } from './plugins/text-color/commands/change-color';
29
29
  export { insertHorizontalRule } from './plugins/rule/commands';
30
30
  export { blockPluginStateKey } from './plugins';
31
31
  export type { BlockTypeState } from './plugins';
32
- export type { HyperlinkState } from '@atlaskit/editor-common/link';
33
- export { InsertStatus as HyperlinkInsertStatus } from '@atlaskit/editor-common/link';
34
32
  export { pluginKey as listStateKey } from './plugins/list/pm-plugins/main';
35
33
  export type { ListState } from './plugins/list/types';
36
34
  export type { InputMethod as ListInputMethod } from './plugins/list/commands';
@@ -56,18 +54,6 @@ export type { TypeAheadPluginState } from './plugins/type-ahead';
56
54
  export { pluginKey as quickInsertPluginKey, memoProcessItems as processQuickInsertItems, } from './plugins/quick-insert';
57
55
  export type { QuickInsertPluginState } from './plugins/quick-insert';
58
56
  export type { TypeAheadItem } from './plugins/type-ahead/types';
59
- export { insertLink, insertLinkWithAnalyticsMobileNative, insertLinkWithAnalytics, updateLink, stateKey as hyperlinkStateKey, } from './plugins/deprecated-hyperlink/commands';
60
- export {
61
- /**
62
- * @deprecated
63
- * Please use the export from '@atlaskit/editor-common/link`
64
- */
65
- isTextAtPos,
66
- /**
67
- * @deprecated
68
- * Please use the export from '@atlaskit/editor-common/link`
69
- */
70
- isLinkAtPos, } from '@atlaskit/editor-common/link';
71
57
  export { historyPluginKey } from './plugins/history';
72
58
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
73
59
  export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
@@ -285,6 +285,8 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
285
285
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
286
286
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
287
287
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
288
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
289
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
288
290
  };
289
291
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
290
292
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
@@ -328,6 +330,8 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
328
330
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
329
331
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
330
332
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
333
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
334
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
331
335
  };
332
336
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
333
337
  }>, ...import("@atlaskit/editor-common/types").AllEditorPresetPluginTypes[]]>[];
@@ -314,6 +314,8 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
314
314
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
315
315
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
316
316
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
317
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
318
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
317
319
  };
318
320
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
319
321
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
@@ -357,6 +359,8 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
357
359
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
358
360
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
359
361
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
362
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
363
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
360
364
  };
361
365
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
362
366
  }>, ...import("@atlaskit/editor-common/types").AllEditorPresetPluginTypes[]]>;
@@ -635,6 +639,8 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
635
639
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
636
640
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
637
641
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
642
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
643
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
638
644
  };
639
645
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
640
646
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
@@ -678,6 +684,8 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
678
684
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
679
685
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
680
686
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
687
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
688
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
681
689
  };
682
690
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
683
691
  }>, ...import("@atlaskit/editor-common/types").AllEditorPresetPluginTypes[]]>[];
@@ -288,6 +288,8 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
288
288
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
289
289
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
290
290
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
291
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
292
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
291
293
  };
292
294
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
293
295
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
@@ -331,6 +333,8 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
331
333
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
332
334
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
333
335
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
336
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
337
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
334
338
  };
335
339
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
336
340
  }>, ...import("@atlaskit/editor-common/types").AllEditorPresetPluginTypes[]]>[];
@@ -1,6 +1,6 @@
1
- import { EditorState } from 'prosemirror-state';
2
- import { Node as PMNode, NodeType } from 'prosemirror-model';
3
- import { Command } from '../../types';
1
+ import type { EditorState } from 'prosemirror-state';
2
+ import type { Node as PMNode, NodeType } from 'prosemirror-model';
3
+ import type { Command } from '../../types';
4
4
  export declare const setExpandRef: (ref?: HTMLDivElement | null) => Command;
5
5
  export declare const deleteExpandAtPos: (expandNodePos: number, expandNode: PMNode) => Command;
6
6
  export declare const deleteExpand: () => Command;
@@ -1,5 +1,5 @@
1
- import { NextEditorPlugin, EditorProps } from '../../types';
2
- import { LongPressSelectionPluginOptions } from '../selection/types';
1
+ import type { NextEditorPlugin, EditorProps } from '../../types';
2
+ import type { LongPressSelectionPluginOptions } from '../selection/types';
3
3
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
@@ -29,8 +29,6 @@ export { changeColor } from './plugins/text-color/commands/change-color';
29
29
  export { insertHorizontalRule } from './plugins/rule/commands';
30
30
  export { blockPluginStateKey } from './plugins';
31
31
  export type { BlockTypeState } from './plugins';
32
- export type { HyperlinkState } from '@atlaskit/editor-common/link';
33
- export { InsertStatus as HyperlinkInsertStatus } from '@atlaskit/editor-common/link';
34
32
  export { pluginKey as listStateKey } from './plugins/list/pm-plugins/main';
35
33
  export type { ListState } from './plugins/list/types';
36
34
  export type { InputMethod as ListInputMethod } from './plugins/list/commands';
@@ -56,18 +54,6 @@ export type { TypeAheadPluginState } from './plugins/type-ahead';
56
54
  export { pluginKey as quickInsertPluginKey, memoProcessItems as processQuickInsertItems, } from './plugins/quick-insert';
57
55
  export type { QuickInsertPluginState } from './plugins/quick-insert';
58
56
  export type { TypeAheadItem } from './plugins/type-ahead/types';
59
- export { insertLink, insertLinkWithAnalyticsMobileNative, insertLinkWithAnalytics, updateLink, stateKey as hyperlinkStateKey, } from './plugins/deprecated-hyperlink/commands';
60
- export {
61
- /**
62
- * @deprecated
63
- * Please use the export from '@atlaskit/editor-common/link`
64
- */
65
- isTextAtPos,
66
- /**
67
- * @deprecated
68
- * Please use the export from '@atlaskit/editor-common/link`
69
- */
70
- isLinkAtPos, } from '@atlaskit/editor-common/link';
71
57
  export { historyPluginKey } from './plugins/history';
72
58
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
73
59
  export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
@@ -352,6 +352,8 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
352
352
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
353
353
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
354
354
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
355
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
356
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
355
357
  };
356
358
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
357
359
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
@@ -402,6 +404,8 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
402
404
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
403
405
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
404
406
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
407
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
408
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
405
409
  };
406
410
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
407
411
  }>,
@@ -381,6 +381,8 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
381
381
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
382
382
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
383
383
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
384
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
385
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
384
386
  };
385
387
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
386
388
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
@@ -431,6 +433,8 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
431
433
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
432
434
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
433
435
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
436
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
437
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
434
438
  };
435
439
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
436
440
  }>,
@@ -778,6 +782,8 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
778
782
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
779
783
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
780
784
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
785
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
786
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
781
787
  };
782
788
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
783
789
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
@@ -828,6 +834,8 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
828
834
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
829
835
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
830
836
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
837
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
838
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
831
839
  };
832
840
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
833
841
  }>,
@@ -355,6 +355,8 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
355
355
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
356
356
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
357
357
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
358
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
359
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
358
360
  };
359
361
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
360
362
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
@@ -405,6 +407,8 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
405
407
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
406
408
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
407
409
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
410
+ insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
411
+ updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
408
412
  };
409
413
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
410
414
  }>,
@@ -1,6 +1,6 @@
1
- import { EditorState } from 'prosemirror-state';
2
- import { Node as PMNode, NodeType } from 'prosemirror-model';
3
- import { Command } from '../../types';
1
+ import type { EditorState } from 'prosemirror-state';
2
+ import type { Node as PMNode, NodeType } from 'prosemirror-model';
3
+ import type { Command } from '../../types';
4
4
  export declare const setExpandRef: (ref?: HTMLDivElement | null) => Command;
5
5
  export declare const deleteExpandAtPos: (expandNodePos: number, expandNode: PMNode) => Command;
6
6
  export declare const deleteExpand: () => Command;
@@ -1,5 +1,5 @@
1
- import { NextEditorPlugin, EditorProps } from '../../types';
2
- import { LongPressSelectionPluginOptions } from '../selection/types';
1
+ import type { NextEditorPlugin, EditorProps } from '../../types';
2
+ import type { LongPressSelectionPluginOptions } from '../selection/types';
3
3
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  interface ExpandPluginOptions extends LongPressSelectionPluginOptions {