@atlaskit/editor-core 188.13.2 → 188.13.5

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 (55) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/create-editor/feature-flags-from-props.js +6 -7
  3. package/dist/cjs/plugins/code-block/actions.js +27 -25
  4. package/dist/cjs/plugins/code-block/ide-ux/commands.js +64 -60
  5. package/dist/cjs/plugins/code-block/index.js +1 -1
  6. package/dist/cjs/plugins/code-block/pm-plugins/ide-ux.js +6 -4
  7. package/dist/cjs/plugins/code-block/toolbar.js +8 -5
  8. package/dist/cjs/plugins/layout/actions.js +53 -50
  9. package/dist/cjs/plugins/layout/index.js +1 -2
  10. package/dist/cjs/plugins/layout/toolbar.js +10 -6
  11. package/dist/cjs/plugins/panel/actions.js +59 -56
  12. package/dist/cjs/plugins/panel/index.js +18 -10
  13. package/dist/cjs/plugins/panel/toolbar.js +11 -11
  14. package/dist/cjs/version-wrapper.js +1 -1
  15. package/dist/es2019/create-editor/feature-flags-from-props.js +6 -7
  16. package/dist/es2019/plugins/code-block/actions.js +4 -4
  17. package/dist/es2019/plugins/code-block/ide-ux/commands.js +9 -9
  18. package/dist/es2019/plugins/code-block/index.js +1 -1
  19. package/dist/es2019/plugins/code-block/pm-plugins/ide-ux.js +6 -4
  20. package/dist/es2019/plugins/code-block/toolbar.js +7 -3
  21. package/dist/es2019/plugins/layout/actions.js +6 -7
  22. package/dist/es2019/plugins/layout/index.js +1 -2
  23. package/dist/es2019/plugins/layout/toolbar.js +10 -5
  24. package/dist/es2019/plugins/panel/actions.js +8 -7
  25. package/dist/es2019/plugins/panel/index.js +18 -10
  26. package/dist/es2019/plugins/panel/toolbar.js +11 -11
  27. package/dist/es2019/version-wrapper.js +1 -1
  28. package/dist/esm/create-editor/feature-flags-from-props.js +6 -7
  29. package/dist/esm/plugins/code-block/actions.js +27 -25
  30. package/dist/esm/plugins/code-block/ide-ux/commands.js +62 -58
  31. package/dist/esm/plugins/code-block/index.js +1 -1
  32. package/dist/esm/plugins/code-block/pm-plugins/ide-ux.js +6 -4
  33. package/dist/esm/plugins/code-block/toolbar.js +8 -5
  34. package/dist/esm/plugins/layout/actions.js +53 -50
  35. package/dist/esm/plugins/layout/index.js +1 -2
  36. package/dist/esm/plugins/layout/toolbar.js +10 -6
  37. package/dist/esm/plugins/panel/actions.js +59 -56
  38. package/dist/esm/plugins/panel/index.js +18 -10
  39. package/dist/esm/plugins/panel/toolbar.js +11 -11
  40. package/dist/esm/version-wrapper.js +1 -1
  41. package/dist/types/plugins/code-block/actions.d.ts +1 -1
  42. package/dist/types/plugins/code-block/ide-ux/commands.d.ts +4 -3
  43. package/dist/types/plugins/code-block/toolbar.d.ts +3 -3
  44. package/dist/types/plugins/layout/actions.d.ts +2 -2
  45. package/dist/types/plugins/layout/toolbar.d.ts +3 -3
  46. package/dist/types/plugins/panel/actions.d.ts +4 -4
  47. package/dist/types/plugins/panel/index.d.ts +1 -1
  48. package/dist/types-ts4.5/plugins/code-block/actions.d.ts +1 -1
  49. package/dist/types-ts4.5/plugins/code-block/ide-ux/commands.d.ts +4 -3
  50. package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +3 -3
  51. package/dist/types-ts4.5/plugins/layout/actions.d.ts +2 -2
  52. package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +3 -3
  53. package/dist/types-ts4.5/plugins/panel/actions.d.ts +4 -4
  54. package/dist/types-ts4.5/plugins/panel/index.d.ts +1 -1
  55. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import type { FloatingToolbarHandler, SelectOption } from '@atlaskit/editor-common/types';
2
- import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
1
+ import type { FloatingToolbarHandler, SelectOption, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { CodeBlockPlugin } from '.';
3
3
  export declare const messages: {
4
4
  selectLanguage: {
5
5
  id: string;
@@ -7,7 +7,7 @@ export declare const messages: {
7
7
  description: string;
8
8
  };
9
9
  };
10
- export declare const getToolbarConfig: (allowCopyToClipboard: boolean | undefined, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarHandler;
10
+ export declare const getToolbarConfig: (allowCopyToClipboard: boolean | undefined, api: ExtractInjectionAPI<CodeBlockPlugin> | undefined) => FloatingToolbarHandler;
11
11
  /**
12
12
  * Filters language list based on both name and alias properties.
13
13
  */
@@ -17,7 +17,7 @@ export declare const createDefaultLayoutSection: (state: EditorState) => Node;
17
17
  export declare const insertLayoutColumns: Command;
18
18
  export declare const insertLayoutColumnsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: TOOLBAR_MENU_TYPE) => Command;
19
19
  export declare function forceSectionToPresetLayout(state: EditorState, node: Node, pos: number, presetLayout: PresetLayout): Transaction;
20
- export declare const setPresetLayout: (layout: PresetLayout) => Command;
20
+ export declare const setPresetLayout: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (layout: PresetLayout) => Command;
21
21
  export declare const fixColumnSizes: (changedTr: Transaction, state: EditorState) => Change | undefined;
22
22
  export declare const fixColumnStructure: (state: EditorState) => Transaction | undefined;
23
- export declare const deleteActiveLayoutNode: Command;
23
+ export declare const deleteActiveLayoutNode: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
@@ -1,6 +1,6 @@
1
1
  import type { IntlShape } from 'react-intl-next';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
4
- import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
3
+ import type { FloatingToolbarConfig, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { LayoutPlugin } from './';
5
5
  export declare const layoutToolbarTitle = "Layout floating controls";
6
- export declare const buildToolbar: (state: EditorState, intl: IntlShape, pos: number, _allowBreakout: boolean, addSidebarLayouts: boolean, allowSingleColumnLayout: boolean, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarConfig | undefined;
6
+ export declare const buildToolbar: (state: EditorState, intl: IntlShape, pos: number, _allowBreakout: boolean, addSidebarLayouts: boolean, allowSingleColumnLayout: boolean, api: ExtractInjectionAPI<LayoutPlugin> | undefined) => FloatingToolbarConfig | undefined;
@@ -1,12 +1,12 @@
1
1
  import { PanelType } from '@atlaskit/adf-schema';
2
2
  import type { Command } from '../../types';
3
- import { INPUT_METHOD } from '../analytics';
4
- import type { PanelOptions } from './pm-plugins/main';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
4
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
5
+ import type { PanelOptions } from './pm-plugins/main';
6
6
  export type DomAtPos = (pos: number) => {
7
7
  node: HTMLElement;
8
8
  offset: number;
9
9
  };
10
- export declare const removePanel: () => Command;
11
- export declare const changePanelType: (panelType: PanelType, panelOptions?: PanelOptions, allowCustomPanel?: boolean) => Command;
10
+ export declare const removePanel: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
11
+ export declare const changePanelType: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (panelType: PanelType, panelOptions?: PanelOptions, allowCustomPanel?: boolean) => Command;
12
12
  export declare function insertPanelWithAnalytics(inputMethod: INPUT_METHOD, analyticsAPI?: EditorAnalyticsAPI): import("@atlaskit/editor-common/types").Command;
@@ -1,5 +1,5 @@
1
1
  import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import { INPUT_METHOD } from '../analytics';
2
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import type { PanelPluginOptions } from './types';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "188.13.2",
3
+ "version": "188.13.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"