@atlaskit/editor-core 187.30.10 → 187.31.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 (79) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/index.js +2 -21
  3. package/dist/cjs/plugins/block-type/commands/block-type.js +1 -1
  4. package/dist/cjs/plugins/help-dialog/index.js +3 -6
  5. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  6. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  7. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +11 -9
  8. package/dist/cjs/plugins/quick-insert/commands.js +6 -10
  9. package/dist/cjs/plugins/quick-insert/index.js +49 -52
  10. package/dist/cjs/plugins/quick-insert/search.js +17 -61
  11. package/dist/cjs/plugins/quick-insert/ui/ModalElementBrowser/index.js +12 -5
  12. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +54 -54
  13. package/dist/cjs/utils/index.js +0 -32
  14. package/dist/cjs/version-wrapper.js +1 -1
  15. package/dist/es2019/index.js +7 -4
  16. package/dist/es2019/plugins/block-type/commands/block-type.js +1 -1
  17. package/dist/es2019/plugins/help-dialog/index.js +3 -6
  18. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  19. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  20. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +7 -3
  21. package/dist/es2019/plugins/quick-insert/commands.js +6 -9
  22. package/dist/es2019/plugins/quick-insert/index.js +48 -45
  23. package/dist/es2019/plugins/quick-insert/search.js +15 -42
  24. package/dist/es2019/plugins/quick-insert/ui/ModalElementBrowser/index.js +11 -4
  25. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +28 -25
  26. package/dist/es2019/utils/index.js +0 -25
  27. package/dist/es2019/version-wrapper.js +1 -1
  28. package/dist/esm/index.js +7 -4
  29. package/dist/esm/plugins/block-type/commands/block-type.js +1 -1
  30. package/dist/esm/plugins/help-dialog/index.js +3 -6
  31. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  32. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  33. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +5 -3
  34. package/dist/esm/plugins/quick-insert/commands.js +6 -10
  35. package/dist/esm/plugins/quick-insert/index.js +49 -46
  36. package/dist/esm/plugins/quick-insert/search.js +15 -56
  37. package/dist/esm/plugins/quick-insert/ui/ModalElementBrowser/index.js +12 -5
  38. package/dist/esm/ui/ElementBrowser/InsertMenu.js +54 -54
  39. package/dist/esm/utils/index.js +0 -31
  40. package/dist/esm/version-wrapper.js +1 -1
  41. package/dist/types/index.d.ts +6 -3
  42. package/dist/types/labs/next/presets/default.d.ts +32 -0
  43. package/dist/types/plugins/help-dialog/index.d.ts +5 -1
  44. package/dist/types/plugins/insert-block/types.d.ts +3 -1
  45. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +3 -0
  46. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +3 -0
  47. package/dist/types/plugins/quick-insert/commands.d.ts +2 -2
  48. package/dist/types/plugins/quick-insert/index.d.ts +12 -9
  49. package/dist/types/plugins/quick-insert/search.d.ts +3 -5
  50. package/dist/types/ui/ElementBrowser/InsertMenu.d.ts +1 -1
  51. package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
  52. package/dist/types/ui/ElementBrowser/types.d.ts +3 -0
  53. package/dist/types/utils/index.d.ts +0 -1
  54. package/dist/types-ts4.5/index.d.ts +6 -3
  55. package/dist/types-ts4.5/labs/next/presets/default.d.ts +32 -0
  56. package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +3 -1
  57. package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
  58. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +3 -0
  59. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +3 -0
  60. package/dist/types-ts4.5/plugins/quick-insert/commands.d.ts +2 -2
  61. package/dist/types-ts4.5/plugins/quick-insert/index.d.ts +12 -9
  62. package/dist/types-ts4.5/plugins/quick-insert/search.d.ts +3 -5
  63. package/dist/types-ts4.5/ui/ElementBrowser/InsertMenu.d.ts +1 -1
  64. package/dist/types-ts4.5/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
  65. package/dist/types-ts4.5/ui/ElementBrowser/types.d.ts +3 -0
  66. package/dist/types-ts4.5/utils/index.d.ts +0 -1
  67. package/package.json +2 -3
  68. package/report.api.md +2 -30
  69. package/tmp/api-report-tmp.d.ts +2 -21
  70. package/dist/cjs/plugins/quick-insert/api.js +0 -23
  71. package/dist/cjs/plugins/quick-insert/types.js +0 -5
  72. package/dist/es2019/plugins/quick-insert/api.js +0 -14
  73. package/dist/es2019/plugins/quick-insert/types.js +0 -1
  74. package/dist/esm/plugins/quick-insert/api.js +0 -16
  75. package/dist/esm/plugins/quick-insert/types.js +0 -1
  76. package/dist/types/plugins/quick-insert/api.d.ts +0 -6
  77. package/dist/types/plugins/quick-insert/types.d.ts +0 -4
  78. package/dist/types-ts4.5/plugins/quick-insert/api.d.ts +0 -6
  79. package/dist/types-ts4.5/plugins/quick-insert/types.d.ts +0 -4
@@ -1,5 +1,3 @@
1
- import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
2
- import type { QuickInsertPluginState, QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
3
- export declare function find(query: string, items: QuickInsertItem[]): QuickInsertItem[];
4
- export declare const searchQuickInsertItems: (quickInsertState?: QuickInsertPluginState, options?: QuickInsertPluginOptions) => (query?: string, category?: string) => QuickInsertItem[];
5
- export declare const getFeaturedQuickInsertItems: ({ providedItems, lazyDefaultItems }: QuickInsertPluginState, options?: QuickInsertPluginOptions) => () => QuickInsertItem[];
1
+ import type { EditorCommand, QuickInsertSearchOptions } from '@atlaskit/editor-common/types';
2
+ export type QuickInsertSearch = (searchOptions: QuickInsertSearchOptions) => EditorCommand;
3
+ export declare const search: QuickInsertSearch;
@@ -1,4 +1,4 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import type { InsertMenuProps } from './types';
3
- declare const InsertMenu: ({ editorView, dropdownItems, showElementBrowserLink, onInsert, toggleVisiblity, }: InsertMenuProps) => jsx.JSX.Element;
3
+ declare const InsertMenu: ({ editorView, dropdownItems, showElementBrowserLink, onInsert, toggleVisiblity, pluginInjectionApi, }: InsertMenuProps) => jsx.JSX.Element;
4
4
  export default InsertMenu;
@@ -19,5 +19,5 @@ export type StatelessElementBrowserProps = {
19
19
  emptyStateHandler?: EmptyStateHandler;
20
20
  viewMoreItem?: QuickInsertItem;
21
21
  } & WithAnalyticsEventsProps;
22
- declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<StatelessElementBrowserProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "items" | "categories" | "emptyStateHandler" | "selectedCategory" | "searchTerm" | "onInsertItem" | "onSelectCategory" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
22
+ declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<StatelessElementBrowserProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "items" | "emptyStateHandler" | "selectedCategory" | "searchTerm" | "onInsertItem" | "categories" | "onSelectCategory" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
23
23
  export default MemoizedElementBrowser;
@@ -2,6 +2,8 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { BlockMenuItem } from '../../plugins/insert-block/ui/ToolbarInsertBlock/create-items';
4
4
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
5
+ import type { PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
6
+ import type { InsertBlockPluginDependencies } from '../../plugins/insert-block/types';
5
7
  type SimpleEventHandler<T> = (event?: T) => void;
6
8
  export type Category = {
7
9
  title: string;
@@ -21,6 +23,7 @@ export interface InsertMenuProps {
21
23
  showElementBrowserLink: boolean;
22
24
  toggleVisiblity: SimpleEventHandler<MouseEvent | KeyboardEvent>;
23
25
  onInsert: OnInsert;
26
+ pluginInjectionApi: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies> | undefined;
24
27
  }
25
28
  export type OnInsert = ({ item }: {
26
29
  item: MenuItem;
@@ -26,7 +26,6 @@ export declare function whichTransitionEvent<TransitionEventName extends string>
26
26
  export declare const isTemporary: (id: string) => boolean;
27
27
  export declare const hasOpenEnd: (slice: Slice) => boolean;
28
28
  export declare const isInsideBlockQuote: (state: EditorState) => boolean;
29
- export declare function dedupe<T>(list?: T[], iteratee?: (p: T) => T[keyof T] | T): T[];
30
29
  export { isTextSelection, isElementInTableCell, isLastItemMediaGroup, nonNullable, } from '@atlaskit/editor-common/utils';
31
30
  /** Helper type for single arg function */
32
31
  type Func<A, B> = (a: A) => B;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.30.10",
3
+ "version": "187.31.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/code": "^14.6.0",
56
56
  "@atlaskit/date": "^0.10.0",
57
57
  "@atlaskit/datetime-picker": "^12.7.0",
58
- "@atlaskit/editor-common": "^74.51.0",
58
+ "@atlaskit/editor-common": "^74.52.0",
59
59
  "@atlaskit/editor-json-transformer": "^8.10.0",
60
60
  "@atlaskit/editor-markdown-transformer": "^5.2.5",
61
61
  "@atlaskit/editor-palette": "1.5.1",
@@ -124,7 +124,6 @@
124
124
  "classnames": "^2.2.5",
125
125
  "clipboard-polyfill": "2.4.3",
126
126
  "date-fns": "^2.17.0",
127
- "fuse.js": "^6.6.2",
128
127
  "is-number": "^7.0.0",
129
128
  "lodash": "^4.17.21",
130
129
  "memoize-one": "^6.0.0",
package/report.api.md CHANGED
@@ -45,6 +45,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
45
45
  import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
46
46
  import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
47
47
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
48
+ import { dedupe } from '@atlaskit/editor-common/utils';
48
49
  import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
49
50
  import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
50
51
  import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
@@ -87,7 +88,6 @@ import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
87
88
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
88
89
  import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
89
90
  import { InputTracking } from '@atlaskit/editor-common/types';
90
- import type { IntlShape } from 'react-intl-next';
91
91
  import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
92
92
  import { jsx } from '@emotion/react';
93
93
  import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
@@ -132,7 +132,6 @@ import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
132
132
  import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
133
133
  import type { QuickInsertOptions } from '@atlaskit/editor-common/types';
134
134
  import type { QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
135
- import type { QuickInsertPluginState } from '@atlaskit/editor-common/types';
136
135
  import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
137
136
  import { default as React_2 } from 'react';
138
137
  import type { ReactElement } from 'react';
@@ -395,14 +394,6 @@ interface CreateEditorStateOptions {
395
394
  selectionAtStart?: boolean;
396
395
  }
397
396
 
398
- // @public (undocumented)
399
- export const createQuickInsertTools: (editorView: EditorView) => {
400
- getItems: (
401
- query: string,
402
- options?: QuickInsertPluginOptions,
403
- ) => QuickInsertItem[];
404
- };
405
-
406
397
  export { createTable };
407
398
 
408
399
  // @public (undocumented)
@@ -519,8 +510,7 @@ type DateType = {
519
510
  day?: number;
520
511
  };
521
512
 
522
- // @public (undocumented)
523
- export function dedupe<T>(list?: T[], iteratee?: (p: T) => T | T[keyof T]): T[];
513
+ export { dedupe };
524
514
 
525
515
  export { DEFAULT_BORDER_COLOR };
526
516
 
@@ -1658,16 +1648,6 @@ type PrimaryToolbarComponents =
1658
1648
  | BeforeAndAfterToolbarComponents
1659
1649
  | ReactComponents;
1660
1650
 
1661
- // @public (undocumented)
1662
- const processItems: (
1663
- items: Array<QuickInsertHandler | QuickInsertItem>,
1664
- intl: IntlShape,
1665
- extendedActions?: Record<string, Function>,
1666
- ) => QuickInsertItem[];
1667
-
1668
- // @public (undocumented)
1669
- export const processQuickInsertItems: typeof processItems;
1670
-
1671
1651
  // @public (undocumented)
1672
1652
  interface Props {
1673
1653
  // (undocumented)
@@ -1723,16 +1703,8 @@ type Props_5 = {
1723
1703
  // @public (undocumented)
1724
1704
  type ProsemirrorGetPosHandler = () => number | undefined;
1725
1705
 
1726
- // @public (undocumented)
1727
- type QuickInsertHandler =
1728
- | ((intl: IntlShape) => Array<QuickInsertItem>)
1729
- | Array<QuickInsertItem>;
1730
-
1731
1706
  export { QuickInsertItem };
1732
1707
 
1733
- // @public (undocumented)
1734
- export const quickInsertPluginKey: PluginKey<QuickInsertPluginState>;
1735
-
1736
1708
  export { QuickInsertProvider };
1737
1709
 
1738
1710
  // @public (undocumented)
@@ -34,6 +34,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
34
34
  import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
35
35
  import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
36
36
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
37
+ import { dedupe } from '@atlaskit/editor-common/utils';
37
38
  import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
38
39
  import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
39
40
  import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
@@ -76,7 +77,6 @@ import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
76
77
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
77
78
  import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
78
79
  import { InputTracking } from '@atlaskit/editor-common/types';
79
- import type { IntlShape } from 'react-intl-next';
80
80
  import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
81
81
  import { jsx } from '@emotion/react';
82
82
  import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
@@ -121,7 +121,6 @@ import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
121
121
  import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
122
122
  import type { QuickInsertOptions } from '@atlaskit/editor-common/types';
123
123
  import type { QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
124
- import type { QuickInsertPluginState } from '@atlaskit/editor-common/types';
125
124
  import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
126
125
  import { default as React_2 } from 'react';
127
126
  import type { ReactElement } from 'react';
@@ -374,11 +373,6 @@ interface CreateEditorStateOptions {
374
373
  selectionAtStart?: boolean;
375
374
  }
376
375
 
377
- // @public (undocumented)
378
- export const createQuickInsertTools: (editorView: EditorView) => {
379
- getItems: (query: string, options?: QuickInsertPluginOptions) => QuickInsertItem[];
380
- };
381
-
382
376
  export { createTable }
383
377
 
384
378
  // @public (undocumented)
@@ -474,8 +468,7 @@ type DateType = {
474
468
  day?: number;
475
469
  };
476
470
 
477
- // @public (undocumented)
478
- export function dedupe<T>(list?: T[], iteratee?: (p: T) => T | T[keyof T]): T[];
471
+ export { dedupe }
479
472
 
480
473
  export { DEFAULT_BORDER_COLOR }
481
474
 
@@ -1485,12 +1478,6 @@ export { PresenceResource }
1485
1478
  // @public (undocumented)
1486
1479
  type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
1487
1480
 
1488
- // @public (undocumented)
1489
- const processItems: (items: Array<QuickInsertHandler | QuickInsertItem>, intl: IntlShape, extendedActions?: Record<string, Function>) => QuickInsertItem[];
1490
-
1491
- // @public (undocumented)
1492
- export const processQuickInsertItems: typeof processItems;
1493
-
1494
1481
  // @public (undocumented)
1495
1482
  interface Props {
1496
1483
  // (undocumented)
@@ -1546,14 +1533,8 @@ type Props_5 = {
1546
1533
  // @public (undocumented)
1547
1534
  type ProsemirrorGetPosHandler = () => number | undefined;
1548
1535
 
1549
- // @public (undocumented)
1550
- type QuickInsertHandler = ((intl: IntlShape) => Array<QuickInsertItem>) | Array<QuickInsertItem>;
1551
-
1552
1536
  export { QuickInsertItem }
1553
1537
 
1554
- // @public (undocumented)
1555
- export const quickInsertPluginKey: PluginKey<QuickInsertPluginState>;
1556
-
1557
1538
  export { QuickInsertProvider }
1558
1539
 
1559
1540
  // @public (undocumented)
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createQuickInsertTools = void 0;
7
- var _pluginKey = require("./plugin-key");
8
- var _search = require("./search");
9
- var getItems = function getItems(editorView) {
10
- return function (query, options) {
11
- var pluginState = _pluginKey.pluginKey.getState(editorView.state);
12
- if (!pluginState) {
13
- return [];
14
- }
15
- return (0, _search.searchQuickInsertItems)(pluginState, options)(query);
16
- };
17
- };
18
- var createQuickInsertTools = function createQuickInsertTools(editorView) {
19
- return {
20
- getItems: getItems(editorView)
21
- };
22
- };
23
- exports.createQuickInsertTools = createQuickInsertTools;
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,14 +0,0 @@
1
- import { pluginKey as quickInsertPluginKey } from './plugin-key';
2
- import { searchQuickInsertItems } from './search';
3
- const getItems = editorView => (query, options) => {
4
- const pluginState = quickInsertPluginKey.getState(editorView.state);
5
- if (!pluginState) {
6
- return [];
7
- }
8
- return searchQuickInsertItems(pluginState, options)(query);
9
- };
10
- export const createQuickInsertTools = editorView => {
11
- return {
12
- getItems: getItems(editorView)
13
- };
14
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- import { pluginKey as quickInsertPluginKey } from './plugin-key';
2
- import { searchQuickInsertItems } from './search';
3
- var getItems = function getItems(editorView) {
4
- return function (query, options) {
5
- var pluginState = quickInsertPluginKey.getState(editorView.state);
6
- if (!pluginState) {
7
- return [];
8
- }
9
- return searchQuickInsertItems(pluginState, options)(query);
10
- };
11
- };
12
- export var createQuickInsertTools = function createQuickInsertTools(editorView) {
13
- return {
14
- getItems: getItems(editorView)
15
- };
16
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
3
- import type { QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
4
- export declare const createQuickInsertTools: (editorView: EditorView) => {
5
- getItems: (query: string, options?: QuickInsertPluginOptions) => QuickInsertItem[];
6
- };
@@ -1,4 +0,0 @@
1
- import type { IntlShape } from 'react-intl-next';
2
- import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
3
- export type { IconProps } from '@atlaskit/editor-common/types';
4
- export type QuickInsertHandler = Array<QuickInsertItem> | ((intl: IntlShape) => Array<QuickInsertItem>);
@@ -1,6 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
3
- import type { QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
4
- export declare const createQuickInsertTools: (editorView: EditorView) => {
5
- getItems: (query: string, options?: QuickInsertPluginOptions) => QuickInsertItem[];
6
- };
@@ -1,4 +0,0 @@
1
- import type { IntlShape } from 'react-intl-next';
2
- import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
3
- export type { IconProps } from '@atlaskit/editor-common/types';
4
- export type QuickInsertHandler = Array<QuickInsertItem> | ((intl: IntlShape) => Array<QuickInsertItem>);