@atlaskit/editor-plugin-expand 27.0.4 → 27.0.7

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 (68) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/legacyExpand/commands.js +27 -25
  3. package/dist/cjs/legacyExpand/nodeviews/index.js +34 -31
  4. package/dist/cjs/legacyExpand/plugin.js +16 -15
  5. package/dist/cjs/legacyExpand/pm-plugins/keymap.js +6 -4
  6. package/dist/cjs/legacyExpand/pm-plugins/main.js +6 -6
  7. package/dist/cjs/legacyExpand/pm-plugins/plugin-factory.js +2 -2
  8. package/dist/cjs/legacyExpand/ui/ExpandIconButton.js +9 -9
  9. package/dist/cjs/singlePlayerExpand/commands.js +33 -31
  10. package/dist/cjs/singlePlayerExpand/node-views/index.js +18 -15
  11. package/dist/cjs/singlePlayerExpand/plugin.js +16 -15
  12. package/dist/cjs/singlePlayerExpand/pm-plugins/keymap.js +6 -4
  13. package/dist/cjs/singlePlayerExpand/pm-plugins/main.js +6 -6
  14. package/dist/cjs/singlePlayerExpand/ui/ExpandButton.js +9 -9
  15. package/dist/cjs/singlePlayerExpand/ui/NodeView.js +16 -16
  16. package/dist/cjs/ui/ExpandBlockMenuItem.js +7 -7
  17. package/dist/cjs/ui/quick-insert/ExpandQuickInsertMenuItem.js +15 -15
  18. package/dist/cjs/ui/quick-insert/getExpandQuickInsertComponents.js +3 -3
  19. package/dist/es2019/legacyExpand/commands.js +6 -4
  20. package/dist/es2019/legacyExpand/nodeviews/index.js +7 -4
  21. package/dist/es2019/legacyExpand/plugin.js +5 -4
  22. package/dist/es2019/legacyExpand/pm-plugins/keymap.js +3 -1
  23. package/dist/es2019/legacyExpand/pm-plugins/main.js +1 -1
  24. package/dist/es2019/legacyExpand/pm-plugins/plugin-factory.js +1 -1
  25. package/dist/es2019/legacyExpand/ui/ExpandIconButton.js +3 -3
  26. package/dist/es2019/singlePlayerExpand/commands.js +6 -4
  27. package/dist/es2019/singlePlayerExpand/node-views/index.js +6 -3
  28. package/dist/es2019/singlePlayerExpand/plugin.js +5 -4
  29. package/dist/es2019/singlePlayerExpand/pm-plugins/keymap.js +3 -1
  30. package/dist/es2019/singlePlayerExpand/pm-plugins/main.js +1 -1
  31. package/dist/es2019/singlePlayerExpand/ui/ExpandButton.js +3 -3
  32. package/dist/es2019/singlePlayerExpand/ui/NodeView.js +2 -2
  33. package/dist/es2019/ui/ExpandBlockMenuItem.js +3 -3
  34. package/dist/es2019/ui/quick-insert/ExpandQuickInsertMenuItem.js +4 -4
  35. package/dist/es2019/ui/quick-insert/getExpandQuickInsertComponents.js +1 -1
  36. package/dist/esm/legacyExpand/commands.js +6 -4
  37. package/dist/esm/legacyExpand/nodeviews/index.js +7 -4
  38. package/dist/esm/legacyExpand/plugin.js +5 -4
  39. package/dist/esm/legacyExpand/pm-plugins/keymap.js +3 -1
  40. package/dist/esm/legacyExpand/pm-plugins/main.js +1 -1
  41. package/dist/esm/legacyExpand/pm-plugins/plugin-factory.js +1 -1
  42. package/dist/esm/legacyExpand/ui/ExpandIconButton.js +3 -3
  43. package/dist/esm/singlePlayerExpand/commands.js +6 -4
  44. package/dist/esm/singlePlayerExpand/node-views/index.js +6 -3
  45. package/dist/esm/singlePlayerExpand/plugin.js +5 -4
  46. package/dist/esm/singlePlayerExpand/pm-plugins/keymap.js +3 -1
  47. package/dist/esm/singlePlayerExpand/pm-plugins/main.js +1 -1
  48. package/dist/esm/singlePlayerExpand/ui/ExpandButton.js +3 -3
  49. package/dist/esm/singlePlayerExpand/ui/NodeView.js +2 -2
  50. package/dist/esm/ui/ExpandBlockMenuItem.js +3 -3
  51. package/dist/esm/ui/quick-insert/ExpandQuickInsertMenuItem.js +4 -4
  52. package/dist/esm/ui/quick-insert/getExpandQuickInsertComponents.js +1 -1
  53. package/dist/types/legacyExpand/commands.d.ts +3 -2
  54. package/dist/types/legacyExpand/nodeviews/index.d.ts +4 -3
  55. package/dist/types/legacyExpand/pm-plugins/keymap.d.ts +1 -1
  56. package/dist/types/legacyExpand/pm-plugins/main.d.ts +3 -2
  57. package/dist/types/legacyExpand/pm-plugins/plugin-factory.d.ts +1 -1
  58. package/dist/types/legacyExpand/toolbar.d.ts +2 -1
  59. package/dist/types/singlePlayerExpand/commands.d.ts +4 -3
  60. package/dist/types/singlePlayerExpand/node-views/index.d.ts +4 -3
  61. package/dist/types/singlePlayerExpand/pm-plugins/keymap.d.ts +1 -1
  62. package/dist/types/singlePlayerExpand/pm-plugins/main.d.ts +3 -2
  63. package/dist/types/singlePlayerExpand/toolbar.d.ts +2 -1
  64. package/dist/types/types.d.ts +16 -13
  65. package/dist/types/ui/ExpandBlockMenuItem.d.ts +1 -1
  66. package/dist/types/ui/quick-insert/ExpandQuickInsertMenuItem.d.ts +1 -1
  67. package/dist/types/ui/quick-insert/getExpandQuickInsertComponents.d.ts +1 -1
  68. package/package.json +3 -3
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import React from 'react';
5
- import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
+ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages/insert-block';
6
6
  import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
7
7
  import { EXPAND_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
8
8
  import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
@@ -1,5 +1,6 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
2
+ import type { Command } from '@atlaskit/editor-common/types/command';
3
+ import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
3
4
  import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
5
  import { Selection } from '@atlaskit/editor-prosemirror/state';
5
6
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
@@ -1,7 +1,8 @@
1
1
  import type { IntlShape } from 'react-intl';
2
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
- import type { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection';
4
- import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
2
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
3
+ import type { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection/types';
4
+ import type { getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
5
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
5
6
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
7
  import type { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
7
8
  import type { ExpandPlugin } from '../../types';
@@ -1,5 +1,5 @@
1
1
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { ExpandPlugin } from '../../types';
4
4
  export declare function expandKeymap(api: ExtractInjectionAPI<ExpandPlugin> | undefined, options: {
5
5
  __livePage?: boolean;
@@ -1,8 +1,9 @@
1
1
  import type { IntlShape } from 'react-intl';
2
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
2
3
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
- import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
+ import type { EditorAppearance } from '@atlaskit/editor-common/types/editor-appearance';
6
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
6
7
  import type { Slice } from '@atlaskit/editor-prosemirror/model';
7
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
9
  import type { ExpandPlugin, ExpandPluginState } from '../../types';
@@ -1,5 +1,5 @@
1
1
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Command } from '@atlaskit/editor-common/types';
2
+ import type { Command } from '@atlaskit/editor-common/types/command';
3
3
  import { EditorState, PluginKey, Transaction, type SafeStateField } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { ExpandPluginState, ExpandPluginAction } from '../../types';
5
5
  export declare const pluginKey: PluginKey;
@@ -1,3 +1,4 @@
1
- import type { ExtractInjectionAPI, FloatingToolbarHandler } from '@atlaskit/editor-common/types';
1
+ import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types/floating-toolbar';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
2
3
  import type { ExpandPlugin } from '../types';
3
4
  export declare const getToolbarConfig: (api: ExtractInjectionAPI<ExpandPlugin> | undefined) => FloatingToolbarHandler;
@@ -1,6 +1,7 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
3
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
2
+ import type { Command } from '@atlaskit/editor-common/types/command';
3
+ import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
4
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
4
5
  import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
6
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
6
7
  import { Selection } from '@atlaskit/editor-prosemirror/state';
@@ -1,7 +1,8 @@
1
1
  import type { IntlShape } from 'react-intl';
2
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
- import type { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection';
4
- import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
2
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
3
+ import type { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection/types';
4
+ import type { getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
5
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
5
6
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
7
  import type { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
7
8
  import type { ExpandPlugin } from '../../types';
@@ -1,4 +1,4 @@
1
1
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { ExpandPlugin } from '../../types';
4
4
  export declare function expandKeymap(api: ExtractInjectionAPI<ExpandPlugin> | undefined): SafePlugin;
@@ -1,8 +1,9 @@
1
1
  import type { IntlShape } from 'react-intl';
2
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
2
3
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
- import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
+ import type { EditorAppearance } from '@atlaskit/editor-common/types/editor-appearance';
6
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
6
7
  import type { Slice } from '@atlaskit/editor-prosemirror/model';
7
8
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
8
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,3 +1,4 @@
1
- import type { ExtractInjectionAPI, FloatingToolbarHandler } from '@atlaskit/editor-common/types';
1
+ import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types/floating-toolbar';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
2
3
  import type { ExpandPlugin } from '../types';
3
4
  export declare const getToolbarConfig: (api: ExtractInjectionAPI<ExpandPlugin> | undefined) => FloatingToolbarHandler;
@@ -1,17 +1,20 @@
1
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { EditorAppearance, EditorCommand, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
5
- import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
6
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
- import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
8
- import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
9
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
1
+ import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
2
+ import type { EditorAppearance } from '@atlaskit/editor-common/types/editor-appearance';
3
+ import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
4
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
5
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types/selection';
6
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
7
+ import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls/blockControlsPluginType';
8
+ import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
9
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations/decorationsPluginType';
10
+ import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled/editorDisabledPluginType';
11
+ import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode/editorViewmodePluginType';
12
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags/featureFlagsPluginType';
10
13
  import type { LimitedModePlugin } from '@atlaskit/editor-plugin-limited-mode/limited-mode-plugin-type';
11
- import type { LocalIdPlugin } from '@atlaskit/editor-plugin-local-id';
12
- import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
13
- import type { SelectionMarkerPlugin } from '@atlaskit/editor-plugin-selection-marker';
14
- import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry';
14
+ import type { LocalIdPlugin } from '@atlaskit/editor-plugin-local-id/local-id-plugin-type';
15
+ import type { SelectionMarkerPlugin } from '@atlaskit/editor-plugin-selection-marker/selection-marker-plugin-type';
16
+ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection/selection-plugin-type';
17
+ import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry/ui-control-registry-plugin-type';
15
18
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
16
19
  import type { insertExpand, insertExpandWithInputMethod } from './legacyExpand/commands';
17
20
  export interface ExpandPluginState {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { BlockMenuItemComponentProps } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
4
4
  import type { ExpandPlugin } from '../types';
5
5
  export declare const createExpandBlockMenuItem: (api: ExtractInjectionAPI<ExpandPlugin> | undefined) => ({ isSuggested }?: BlockMenuItemComponentProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type QuickInsertMenuItemProps } from '@atlaskit/editor-common/quick-insert/menu-item';
3
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
4
4
  import type { ExpandPlugin } from '../../types';
5
5
  type Props = {
6
6
  api: ExtractInjectionAPI<ExpandPlugin> | undefined;
@@ -1,4 +1,4 @@
1
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
2
2
  import type { RegisterMenuItem } from '@atlaskit/editor-ui-control-model/types';
3
3
  import type { ExpandPlugin } from '../../types';
4
4
  export declare const getExpandQuickInsertComponents: ({ api, isLegacy, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "27.0.4",
3
+ "version": "27.0.7",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-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": "^231.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^234.0.0",
47
47
  "@atlaskit/tokens": "^20.4.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": "^130.3.0",
55
+ "@atlaskit/editor-common": "^130.5.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"