@atlaskit/editor-plugin-insert-block 9.0.0 → 9.0.2
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 +12 -0
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +1 -1
- package/dist/cjs/ui/ToolbarInsertBlock/dropdown-button.js +1 -1
- package/dist/cjs/ui/ToolbarInsertBlock/index.js +4 -3
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +1 -1
- package/dist/es2019/ui/ToolbarInsertBlock/dropdown-button.js +1 -1
- package/dist/es2019/ui/ToolbarInsertBlock/index.js +5 -2
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +1 -1
- package/dist/esm/ui/ToolbarInsertBlock/dropdown-button.js +1 -1
- package/dist/esm/ui/ToolbarInsertBlock/index.js +5 -2
- package/dist/types/pm-plugins/experiences/toolbar-action-experiences.d.ts +1 -1
- package/dist/types/ui/ElementRail/useInsertMenuRailItems.d.ts +2 -1
- package/dist/types/ui/ToolbarInsertBlock/create-items.d.ts +2 -1
- package/dist/types/ui/ToolbarInsertBlock/index.d.ts +5 -5
- package/dist/types/ui/toolbar-components/hooks/useEmojiPickerPopup.d.ts +3 -3
- package/dist/types/ui/toolbar-components/hooks/useTableSelectorPopup.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/experiences/toolbar-action-experiences.d.ts +1 -1
- package/dist/types-ts4.5/ui/ElementRail/useInsertMenuRailItems.d.ts +2 -1
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/create-items.d.ts +2 -1
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/index.d.ts +5 -5
- package/dist/types-ts4.5/ui/toolbar-components/hooks/useEmojiPickerPopup.d.ts +3 -3
- package/dist/types-ts4.5/ui/toolbar-components/hooks/useTableSelectorPopup.d.ts +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -27,7 +27,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
27
27
|
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) { (0, _defineProperty2.default)(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; } /**
|
|
28
28
|
* @jsxRuntime classic
|
|
29
29
|
* @jsx jsx
|
|
30
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
30
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
31
31
|
var DEFAULT_HEIGHT = exports.DEFAULT_HEIGHT = 560;
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -17,7 +17,7 @@ var _styles = require("./styles");
|
|
|
17
17
|
* @jsx jsx
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
21
21
|
|
|
22
22
|
var DropDownButtonIcon = /*#__PURE__*/_react.default.memo(function (props) {
|
|
23
23
|
return (
|
|
@@ -37,7 +37,7 @@ var _templateObject;
|
|
|
37
37
|
* @jsxRuntime classic
|
|
38
38
|
* @jsx jsx
|
|
39
39
|
*/
|
|
40
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
41
41
|
// Ignored via go/ees005
|
|
42
42
|
// eslint-disable-next-line import/no-namespace
|
|
43
43
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
@@ -846,5 +846,6 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
848
|
}]);
|
|
849
|
-
}(_react.default.PureComponent);
|
|
850
|
-
var
|
|
849
|
+
}(_react.default.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
850
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarInsertBlock);
|
|
851
|
+
var _default = exports.default = _default_1;
|
|
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
|
|
7
7
|
import { useCallback, useContext, useLayoutEffect, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { useIntl } from 'react-intl-next';
|
|
12
12
|
import { CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
7
7
|
*/
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { injectIntl } from 'react-intl-next';
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -841,4 +841,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
841
841
|
}));
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
|
|
844
|
+
|
|
845
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
846
|
+
const _default_1 = injectIntl(ToolbarInsertBlock);
|
|
847
|
+
export default _default_1;
|
|
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
|
|
14
14
|
import { useCallback, useContext, useLayoutEffect, useMemo, useState } from 'react';
|
|
15
15
|
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
17
17
|
import { css, jsx } from '@emotion/react';
|
|
18
18
|
import { useIntl } from 'react-intl-next';
|
|
19
19
|
import { CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -22,7 +22,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
22
22
|
*/
|
|
23
23
|
import React from 'react';
|
|
24
24
|
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
26
26
|
import { css, jsx } from '@emotion/react';
|
|
27
27
|
import { injectIntl } from 'react-intl-next';
|
|
28
28
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -841,4 +841,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
841
841
|
}
|
|
842
842
|
}]);
|
|
843
843
|
}(React.PureComponent);
|
|
844
|
-
|
|
844
|
+
|
|
845
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
846
|
+
var _default_1 = injectIntl(ToolbarInsertBlock);
|
|
847
|
+
export default _default_1;
|
|
@@ -3,5 +3,5 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
3
3
|
type ToolbarActionExperienceOptions = {
|
|
4
4
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
5
5
|
};
|
|
6
|
-
export declare const getToolbarActionExperiencesPlugin: ({ dispatchAnalyticsEvent, }: ToolbarActionExperienceOptions) => SafePlugin
|
|
6
|
+
export declare const getToolbarActionExperiencesPlugin: ({ dispatchAnalyticsEvent, }: ToolbarActionExperienceOptions) => SafePlugin;
|
|
7
7
|
export {};
|
|
@@ -2,4 +2,5 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { insertBlockPlugin } from '../../insertBlockPlugin';
|
|
4
4
|
import type { InsertBlockOptions } from '../../types';
|
|
5
|
-
|
|
5
|
+
import { type BlockMenuItem } from '../ToolbarInsertBlock/create-items';
|
|
6
|
+
export declare const useInsertMenuRailItems: (editorView: EditorView, options: InsertBlockOptions, api?: ExtractInjectionAPI<typeof insertBlockPlugin>) => BlockMenuItem[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
1
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
3
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
3
4
|
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
@@ -40,4 +41,4 @@ export interface CreateItemsConfig {
|
|
|
40
41
|
export interface BlockMenuItem extends MenuItem {
|
|
41
42
|
title: JSX.Element | null;
|
|
42
43
|
}
|
|
43
|
-
export declare const createItems:
|
|
44
|
+
export declare const createItems: MemoizedFn<(config: CreateItemsConfig) => Readonly<[BlockMenuItem[], BlockMenuItem[]]>>;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import { jsx, type SerializedStyles } from '@emotion/react';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { Props, State } from './types';
|
|
9
9
|
export declare const tableButtonWrapper: ({ isTableSelectorOpen, isButtonDisabled, }: {
|
|
10
10
|
isButtonDisabled: boolean | undefined;
|
|
11
11
|
isTableSelectorOpen: boolean;
|
|
12
|
-
}) =>
|
|
12
|
+
}) => SerializedStyles;
|
|
13
13
|
export declare class ToolbarInsertBlock extends React.PureComponent<Props & WrappedComponentProps, State> {
|
|
14
14
|
private dropdownButtonRef?;
|
|
15
15
|
private emojiButtonRef?;
|
|
@@ -57,7 +57,7 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
|
|
|
57
57
|
private insertToolbarMenuItem;
|
|
58
58
|
private insertInsertMenuItem;
|
|
59
59
|
}
|
|
60
|
-
declare const
|
|
60
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
61
61
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
62
62
|
};
|
|
63
|
-
export default
|
|
63
|
+
export default _default_1;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EmojiId } from '@atlaskit/emoji/types';
|
|
4
4
|
import type { InsertBlockPlugin } from '../../../insertBlockPluginType';
|
|
5
5
|
interface UseEmojiPickerPopupProps {
|
|
6
6
|
api?: ExtractInjectionAPI<InsertBlockPlugin>;
|
|
7
7
|
buttonRef: React.RefObject<HTMLElement>;
|
|
8
8
|
}
|
|
9
|
-
export declare const useEmojiPickerPopup: ({ api, buttonRef }: UseEmojiPickerPopupProps) => {
|
|
9
|
+
export declare const useEmojiPickerPopup: ({ api, buttonRef, }: UseEmojiPickerPopupProps) => {
|
|
10
10
|
handleSelectedEmoji: (emojiId: EmojiId) => true;
|
|
11
11
|
onPopupUnmount: () => void;
|
|
12
12
|
isOpen: boolean;
|
|
13
13
|
isOpenedByKeyboard: boolean;
|
|
14
|
-
toggle: (inputMethod?:
|
|
14
|
+
toggle: (inputMethod?: TOOLBAR_MENU_TYPE | INPUT_METHOD) => void;
|
|
15
15
|
close: () => void;
|
|
16
16
|
handleEscapeKeydown: () => void;
|
|
17
17
|
handleClickOutside: (e: MouseEvent) => void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { InsertBlockPlugin } from '../../../insertBlockPluginType';
|
|
4
4
|
interface UseTableSelectorPopupProps {
|
|
5
5
|
api?: ExtractInjectionAPI<InsertBlockPlugin>;
|
|
6
6
|
buttonRef: React.RefObject<HTMLElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare const useTableSelectorPopup: ({ api, buttonRef }: UseTableSelectorPopupProps) => {
|
|
8
|
+
export declare const useTableSelectorPopup: ({ api, buttonRef, }: UseTableSelectorPopupProps) => {
|
|
9
9
|
handleSelectedTableSize: (rowsCount: number, colsCount: number) => void;
|
|
10
10
|
onPopupUnmount: () => void;
|
|
11
11
|
isOpen: boolean;
|
|
12
12
|
isOpenedByKeyboard: boolean;
|
|
13
|
-
toggle: (inputMethod?:
|
|
13
|
+
toggle: (inputMethod?: TOOLBAR_MENU_TYPE | INPUT_METHOD) => void;
|
|
14
14
|
close: () => void;
|
|
15
15
|
handleEscapeKeydown: () => void;
|
|
16
16
|
handleClickOutside: (e: MouseEvent) => void;
|
|
@@ -3,5 +3,5 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
3
3
|
type ToolbarActionExperienceOptions = {
|
|
4
4
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
5
5
|
};
|
|
6
|
-
export declare const getToolbarActionExperiencesPlugin: ({ dispatchAnalyticsEvent, }: ToolbarActionExperienceOptions) => SafePlugin
|
|
6
|
+
export declare const getToolbarActionExperiencesPlugin: ({ dispatchAnalyticsEvent, }: ToolbarActionExperienceOptions) => SafePlugin;
|
|
7
7
|
export {};
|
|
@@ -2,4 +2,5 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { insertBlockPlugin } from '../../insertBlockPlugin';
|
|
4
4
|
import type { InsertBlockOptions } from '../../types';
|
|
5
|
-
|
|
5
|
+
import { type BlockMenuItem } from '../ToolbarInsertBlock/create-items';
|
|
6
|
+
export declare const useInsertMenuRailItems: (editorView: EditorView, options: InsertBlockOptions, api?: ExtractInjectionAPI<typeof insertBlockPlugin>) => BlockMenuItem[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
1
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
3
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
3
4
|
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
@@ -40,7 +41,7 @@ export interface CreateItemsConfig {
|
|
|
40
41
|
export interface BlockMenuItem extends MenuItem {
|
|
41
42
|
title: JSX.Element | null;
|
|
42
43
|
}
|
|
43
|
-
export declare const createItems:
|
|
44
|
+
export declare const createItems: MemoizedFn<(config: CreateItemsConfig) => Readonly<[
|
|
44
45
|
BlockMenuItem[],
|
|
45
46
|
BlockMenuItem[]
|
|
46
47
|
]>>;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import { jsx, type SerializedStyles } from '@emotion/react';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { Props, State } from './types';
|
|
9
9
|
export declare const tableButtonWrapper: ({ isTableSelectorOpen, isButtonDisabled, }: {
|
|
10
10
|
isButtonDisabled: boolean | undefined;
|
|
11
11
|
isTableSelectorOpen: boolean;
|
|
12
|
-
}) =>
|
|
12
|
+
}) => SerializedStyles;
|
|
13
13
|
export declare class ToolbarInsertBlock extends React.PureComponent<Props & WrappedComponentProps, State> {
|
|
14
14
|
private dropdownButtonRef?;
|
|
15
15
|
private emojiButtonRef?;
|
|
@@ -57,7 +57,7 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
|
|
|
57
57
|
private insertToolbarMenuItem;
|
|
58
58
|
private insertInsertMenuItem;
|
|
59
59
|
}
|
|
60
|
-
declare const
|
|
60
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
61
61
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
62
62
|
};
|
|
63
|
-
export default
|
|
63
|
+
export default _default_1;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EmojiId } from '@atlaskit/emoji/types';
|
|
4
4
|
import type { InsertBlockPlugin } from '../../../insertBlockPluginType';
|
|
5
5
|
interface UseEmojiPickerPopupProps {
|
|
6
6
|
api?: ExtractInjectionAPI<InsertBlockPlugin>;
|
|
7
7
|
buttonRef: React.RefObject<HTMLElement>;
|
|
8
8
|
}
|
|
9
|
-
export declare const useEmojiPickerPopup: ({ api, buttonRef }: UseEmojiPickerPopupProps) => {
|
|
9
|
+
export declare const useEmojiPickerPopup: ({ api, buttonRef, }: UseEmojiPickerPopupProps) => {
|
|
10
10
|
handleSelectedEmoji: (emojiId: EmojiId) => true;
|
|
11
11
|
onPopupUnmount: () => void;
|
|
12
12
|
isOpen: boolean;
|
|
13
13
|
isOpenedByKeyboard: boolean;
|
|
14
|
-
toggle: (inputMethod?:
|
|
14
|
+
toggle: (inputMethod?: TOOLBAR_MENU_TYPE | INPUT_METHOD) => void;
|
|
15
15
|
close: () => void;
|
|
16
16
|
handleEscapeKeydown: () => void;
|
|
17
17
|
handleClickOutside: (e: MouseEvent) => void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { InsertBlockPlugin } from '../../../insertBlockPluginType';
|
|
4
4
|
interface UseTableSelectorPopupProps {
|
|
5
5
|
api?: ExtractInjectionAPI<InsertBlockPlugin>;
|
|
6
6
|
buttonRef: React.RefObject<HTMLElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare const useTableSelectorPopup: ({ api, buttonRef }: UseTableSelectorPopupProps) => {
|
|
8
|
+
export declare const useTableSelectorPopup: ({ api, buttonRef, }: UseTableSelectorPopupProps) => {
|
|
9
9
|
handleSelectedTableSize: (rowsCount: number, colsCount: number) => void;
|
|
10
10
|
onPopupUnmount: () => void;
|
|
11
11
|
isOpen: boolean;
|
|
12
12
|
isOpenedByKeyboard: boolean;
|
|
13
|
-
toggle: (inputMethod?:
|
|
13
|
+
toggle: (inputMethod?: TOOLBAR_MENU_TYPE | INPUT_METHOD) => void;
|
|
14
14
|
close: () => void;
|
|
15
15
|
handleEscapeKeydown: () => void;
|
|
16
16
|
handleClickOutside: (e: MouseEvent) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/icon-lab": "^5.17.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
67
67
|
"@atlaskit/theme": "^22.0.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^37.0.0",
|
|
69
69
|
"@atlaskit/tokens": "^11.1.0",
|
|
70
70
|
"@babel/runtime": "^7.0.0",
|
|
71
71
|
"@emotion/react": "^11.7.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"react-virtualized": "^9.22.6"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@atlaskit/editor-common": "^112.
|
|
78
|
+
"@atlaskit/editor-common": "^112.2.0",
|
|
79
79
|
"react": "^18.2.0",
|
|
80
80
|
"react-dom": "^18.2.0",
|
|
81
81
|
"react-intl-next": "npm:react-intl@^5.18.1"
|