@atlaskit/editor-plugin-floating-toolbar 1.14.1 → 1.14.3
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 +16 -0
- package/dist/cjs/{plugin.js → floatingToolbarPlugin.js} +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/ui/Toolbar.js +2 -1
- package/dist/es2019/{plugin.js → floatingToolbarPlugin.js} +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/Toolbar.js +2 -1
- package/dist/esm/{plugin.js → floatingToolbarPlugin.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/Toolbar.js +2 -1
- package/dist/types/{plugin.d.ts → floatingToolbarPlugin.d.ts} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/pm-plugins/toolbar-data/plugin-key.d.ts +1 -1
- package/dist/types/pm-plugins/toolbar-data/reducer.d.ts +1 -1
- package/dist/types/ui/EmojiPickerButton.d.ts +7 -6
- package/dist/types/ui/Toolbar.d.ts +1 -1
- package/dist/types-ts4.5/{plugin.d.ts → floatingToolbarPlugin.d.ts} +1 -1
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/toolbar-data/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/toolbar-data/reducer.d.ts +1 -1
- package/dist/types-ts4.5/ui/EmojiPickerButton.d.ts +7 -6
- package/dist/types-ts4.5/ui/Toolbar.d.ts +1 -1
- package/package.json +9 -6
- /package/dist/cjs/{types.js → floatingToolbarPluginType.js} +0 -0
- /package/dist/cjs/{utils.js → pm-plugins/utils.js} +0 -0
- /package/dist/es2019/{types.js → floatingToolbarPluginType.js} +0 -0
- /package/dist/es2019/{utils.js → pm-plugins/utils.js} +0 -0
- /package/dist/esm/{types.js → floatingToolbarPluginType.js} +0 -0
- /package/dist/esm/{utils.js → pm-plugins/utils.js} +0 -0
- /package/dist/types/{types.d.ts → floatingToolbarPluginType.d.ts} +0 -0
- /package/dist/types/{utils.d.ts → pm-plugins/utils.d.ts} +0 -0
- /package/dist/types-ts4.5/{types.d.ts → floatingToolbarPluginType.d.ts} +0 -0
- /package/dist/types-ts4.5/{utils.d.ts → pm-plugins/utils.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.14.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#159777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159777)
|
|
8
|
+
[`e708d0a9e4b36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e708d0a9e4b36) -
|
|
9
|
+
Refactoring plugins to meet folder standards.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.14.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`ccf61c525278a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ccf61c525278a) -
|
|
17
|
+
fix floating toolbar spacing and legacy icon issues
|
|
18
|
+
|
|
3
19
|
## 1.14.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -24,9 +24,9 @@ var _forceFocus = _interopRequireWildcard(require("./pm-plugins/force-focus"));
|
|
|
24
24
|
var _commands = require("./pm-plugins/toolbar-data/commands");
|
|
25
25
|
var _plugin = require("./pm-plugins/toolbar-data/plugin");
|
|
26
26
|
var _pluginKey = require("./pm-plugins/toolbar-data/plugin-key");
|
|
27
|
+
var _utils2 = require("./pm-plugins/utils");
|
|
27
28
|
var _ConfirmationModal = require("./ui/ConfirmationModal");
|
|
28
29
|
var _ToolbarLoader = require("./ui/ToolbarLoader");
|
|
29
|
-
var _utils2 = require("./utils");
|
|
30
30
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
31
31
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
32
32
|
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; }
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "floatingToolbarPlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _floatingToolbarPlugin.floatingToolbarPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _floatingToolbarPlugin = require("./floatingToolbarPlugin");
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -118,7 +118,8 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
118
118
|
LEGACY_primaryColor: "currentColor",
|
|
119
119
|
Legacy_secondaryColor: "var(--ds-surface, #FFFFFF)"
|
|
120
120
|
}) : (0, _react2.jsx)(ButtonIcon, {
|
|
121
|
-
label: item.title
|
|
121
|
+
label: item.title,
|
|
122
|
+
spacing: "spacious"
|
|
122
123
|
}) : undefined,
|
|
123
124
|
appearance: item.appearance,
|
|
124
125
|
target: item.target,
|
|
@@ -12,9 +12,9 @@ import forceFocusPlugin, { forceFocusSelector } from './pm-plugins/force-focus';
|
|
|
12
12
|
import { hideConfirmDialog } from './pm-plugins/toolbar-data/commands';
|
|
13
13
|
import { createPlugin as floatingToolbarDataPluginFactory } from './pm-plugins/toolbar-data/plugin';
|
|
14
14
|
import { pluginKey as dataPluginKey } from './pm-plugins/toolbar-data/plugin-key';
|
|
15
|
+
import { findNode } from './pm-plugins/utils';
|
|
15
16
|
import { ConfirmationModal } from './ui/ConfirmationModal';
|
|
16
17
|
import { ToolbarLoader } from './ui/ToolbarLoader';
|
|
17
|
-
import { findNode } from './utils';
|
|
18
18
|
|
|
19
19
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
20
20
|
export const getRelevantConfig = (selection, configs) => {
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { floatingToolbarPlugin } from './
|
|
1
|
+
export { floatingToolbarPlugin } from './floatingToolbarPlugin';
|
|
@@ -106,7 +106,8 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
106
106
|
LEGACY_primaryColor: "currentColor",
|
|
107
107
|
Legacy_secondaryColor: "var(--ds-surface, #FFFFFF)"
|
|
108
108
|
}) : jsx(ButtonIcon, {
|
|
109
|
-
label: item.title
|
|
109
|
+
label: item.title,
|
|
110
|
+
spacing: "spacious"
|
|
110
111
|
}) : undefined,
|
|
111
112
|
appearance: item.appearance,
|
|
112
113
|
target: item.target,
|
|
@@ -15,9 +15,9 @@ import forceFocusPlugin, { forceFocusSelector } from './pm-plugins/force-focus';
|
|
|
15
15
|
import { hideConfirmDialog } from './pm-plugins/toolbar-data/commands';
|
|
16
16
|
import { createPlugin as floatingToolbarDataPluginFactory } from './pm-plugins/toolbar-data/plugin';
|
|
17
17
|
import { pluginKey as dataPluginKey } from './pm-plugins/toolbar-data/plugin-key';
|
|
18
|
+
import { findNode } from './pm-plugins/utils';
|
|
18
19
|
import { ConfirmationModal } from './ui/ConfirmationModal';
|
|
19
20
|
import { ToolbarLoader } from './ui/ToolbarLoader';
|
|
20
|
-
import { findNode } from './utils';
|
|
21
21
|
|
|
22
22
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
23
23
|
export var getRelevantConfig = function getRelevantConfig(selection, configs) {
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { floatingToolbarPlugin } from './
|
|
1
|
+
export { floatingToolbarPlugin } from './floatingToolbarPlugin';
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -111,7 +111,8 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
111
111
|
LEGACY_primaryColor: "currentColor",
|
|
112
112
|
Legacy_secondaryColor: "var(--ds-surface, #FFFFFF)"
|
|
113
113
|
}) : jsx(ButtonIcon, {
|
|
114
|
-
label: item.title
|
|
114
|
+
label: item.title,
|
|
115
|
+
spacing: "spacious"
|
|
115
116
|
}) : undefined,
|
|
116
117
|
appearance: item.appearance,
|
|
117
118
|
target: item.target,
|
|
@@ -5,7 +5,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
5
5
|
import type { ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarHandler, UiComponentFactoryParams } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import type { ConfigWithNodeInfo, FloatingToolbarPlugin, FloatingToolbarPluginState } from './
|
|
8
|
+
import type { ConfigWithNodeInfo, FloatingToolbarPlugin, FloatingToolbarPluginState } from './floatingToolbarPluginType';
|
|
9
9
|
export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
|
|
10
10
|
export declare const floatingToolbarPlugin: FloatingToolbarPlugin;
|
|
11
11
|
export declare function ContentComponent({ pluginInjectionApi, editorView, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, providerFactory, dispatchAnalyticsEvent, }: Pick<UiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'providerFactory' | 'dispatchAnalyticsEvent' | 'popupsScrollableElement'> & {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, } from './
|
|
2
|
-
export { floatingToolbarPlugin } from './
|
|
1
|
+
export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, } from './floatingToolbarPluginType';
|
|
2
|
+
export { floatingToolbarPlugin } from './floatingToolbarPlugin';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { FloatingToolbarPluginData } from '../../
|
|
2
|
+
import type { FloatingToolbarPluginData } from '../../floatingToolbarPluginType';
|
|
3
3
|
export declare const pluginKey: PluginKey<FloatingToolbarPluginData>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FloatingToolbarPluginData } from '../../
|
|
1
|
+
import type { FloatingToolbarPluginData } from '../../floatingToolbarPluginType';
|
|
2
2
|
import type { FloatingToolbarPluginAction } from './types';
|
|
3
3
|
export declare const reducer: (pluginState: FloatingToolbarPluginData, action: FloatingToolbarPluginAction) => FloatingToolbarPluginData;
|
|
@@ -8,7 +8,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
8
8
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { EmojiId } from '@atlaskit/emoji';
|
|
11
|
-
import { type FloatingToolbarPlugin } from '../
|
|
11
|
+
import { type FloatingToolbarPlugin } from '../floatingToolbarPluginType';
|
|
12
12
|
export declare const EmojiPickerButton: (props: {
|
|
13
13
|
className?: string | undefined;
|
|
14
14
|
editorView?: EditorView | undefined;
|
|
@@ -193,7 +193,6 @@ export declare const EmojiPickerButton: (props: {
|
|
|
193
193
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
194
194
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
195
195
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
196
|
-
onInsert: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => void;
|
|
197
196
|
};
|
|
198
197
|
commands: {
|
|
199
198
|
openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -202,7 +201,9 @@ export declare const EmojiPickerButton: (props: {
|
|
|
202
201
|
}, import("@atlaskit/editor-common/types").QuickInsertPluginOptions | undefined>>];
|
|
203
202
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
204
203
|
commands: {
|
|
205
|
-
moveToLayout: (start: number, to: number,
|
|
204
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
205
|
+
moveToEnd?: boolean | undefined;
|
|
206
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
206
207
|
moveNode: (start: number, to: number, inputMethod?: import("@atlaskit/editor-plugin-block-controls").MoveNodeMethod | undefined, formatMessage?: {
|
|
207
208
|
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
208
209
|
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactNodeArray | React.ReactPortal | Date | import("intl-messageformat").FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): React.ReactNode;
|
|
@@ -283,11 +284,11 @@ export declare const EmojiPickerButton: (props: {
|
|
|
283
284
|
};
|
|
284
285
|
}, import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined>>];
|
|
285
286
|
actions: {
|
|
286
|
-
forceFocusSelector: import("../
|
|
287
|
+
forceFocusSelector: import("../floatingToolbarPluginType").ForceFocusSelector;
|
|
287
288
|
};
|
|
288
289
|
sharedState: {
|
|
289
|
-
configWithNodeInfo: import("../
|
|
290
|
-
floatingToolbarData: import("../
|
|
290
|
+
configWithNodeInfo: import("../floatingToolbarPluginType").ConfigWithNodeInfo | undefined;
|
|
291
|
+
floatingToolbarData: import("../floatingToolbarPluginType").FloatingToolbarPluginData | undefined;
|
|
291
292
|
} | undefined;
|
|
292
293
|
}> | undefined;
|
|
293
294
|
}) => jsx.JSX.Element;
|
|
@@ -11,7 +11,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
11
11
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
12
12
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
13
13
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
14
|
-
import type { FloatingToolbarPlugin } from '../
|
|
14
|
+
import type { FloatingToolbarPlugin } from '../floatingToolbarPluginType';
|
|
15
15
|
export type { Item };
|
|
16
16
|
export interface Props {
|
|
17
17
|
items: Array<Item>;
|
|
@@ -5,7 +5,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
5
5
|
import type { ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarHandler, UiComponentFactoryParams } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import type { ConfigWithNodeInfo, FloatingToolbarPlugin, FloatingToolbarPluginState } from './
|
|
8
|
+
import type { ConfigWithNodeInfo, FloatingToolbarPlugin, FloatingToolbarPluginState } from './floatingToolbarPluginType';
|
|
9
9
|
export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
|
|
10
10
|
export declare const floatingToolbarPlugin: FloatingToolbarPlugin;
|
|
11
11
|
export declare function ContentComponent({ pluginInjectionApi, editorView, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, providerFactory, dispatchAnalyticsEvent, }: Pick<UiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'providerFactory' | 'dispatchAnalyticsEvent' | 'popupsScrollableElement'> & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, } from './
|
|
2
|
-
export { floatingToolbarPlugin } from './
|
|
1
|
+
export type { FloatingToolbarPlugin, ForceFocusSelector, ConfigWithNodeInfo, FloatingToolbarPluginData, FloatingToolbarPluginState, } from './floatingToolbarPluginType';
|
|
2
|
+
export { floatingToolbarPlugin } from './floatingToolbarPlugin';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { FloatingToolbarPluginData } from '../../
|
|
2
|
+
import type { FloatingToolbarPluginData } from '../../floatingToolbarPluginType';
|
|
3
3
|
export declare const pluginKey: PluginKey<FloatingToolbarPluginData>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FloatingToolbarPluginData } from '../../
|
|
1
|
+
import type { FloatingToolbarPluginData } from '../../floatingToolbarPluginType';
|
|
2
2
|
import type { FloatingToolbarPluginAction } from './types';
|
|
3
3
|
export declare const reducer: (pluginState: FloatingToolbarPluginData, action: FloatingToolbarPluginAction) => FloatingToolbarPluginData;
|
|
@@ -8,7 +8,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
8
8
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { EmojiId } from '@atlaskit/emoji';
|
|
11
|
-
import { type FloatingToolbarPlugin } from '../
|
|
11
|
+
import { type FloatingToolbarPlugin } from '../floatingToolbarPluginType';
|
|
12
12
|
export declare const EmojiPickerButton: (props: {
|
|
13
13
|
className?: string | undefined;
|
|
14
14
|
editorView?: EditorView | undefined;
|
|
@@ -230,7 +230,6 @@ export declare const EmojiPickerButton: (props: {
|
|
|
230
230
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
231
231
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
232
232
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
233
|
-
onInsert: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => void;
|
|
234
233
|
};
|
|
235
234
|
commands: {
|
|
236
235
|
openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -240,7 +239,9 @@ export declare const EmojiPickerButton: (props: {
|
|
|
240
239
|
];
|
|
241
240
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
242
241
|
commands: {
|
|
243
|
-
moveToLayout: (start: number, to: number,
|
|
242
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
243
|
+
moveToEnd?: boolean | undefined;
|
|
244
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
244
245
|
moveNode: (start: number, to: number, inputMethod?: import("@atlaskit/editor-plugin-block-controls").MoveNodeMethod | undefined, formatMessage?: {
|
|
245
246
|
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
246
247
|
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactNodeArray | React.ReactPortal | Date | import("intl-messageformat").FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): React.ReactNode;
|
|
@@ -334,11 +335,11 @@ export declare const EmojiPickerButton: (props: {
|
|
|
334
335
|
}, import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined>>
|
|
335
336
|
];
|
|
336
337
|
actions: {
|
|
337
|
-
forceFocusSelector: import("../
|
|
338
|
+
forceFocusSelector: import("../floatingToolbarPluginType").ForceFocusSelector;
|
|
338
339
|
};
|
|
339
340
|
sharedState: {
|
|
340
|
-
configWithNodeInfo: import("../
|
|
341
|
-
floatingToolbarData: import("../
|
|
341
|
+
configWithNodeInfo: import("../floatingToolbarPluginType").ConfigWithNodeInfo | undefined;
|
|
342
|
+
floatingToolbarData: import("../floatingToolbarPluginType").FloatingToolbarPluginData | undefined;
|
|
342
343
|
} | undefined;
|
|
343
344
|
}> | undefined;
|
|
344
345
|
}) => jsx.JSX.Element;
|
|
@@ -11,7 +11,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
11
11
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
12
12
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
13
13
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
14
|
-
import type { FloatingToolbarPlugin } from '../
|
|
14
|
+
import type { FloatingToolbarPlugin } from '../floatingToolbarPluginType';
|
|
15
15
|
export type { Item };
|
|
16
16
|
export interface Props {
|
|
17
17
|
items: Array<Item>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.3",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@atlaskit/adf-utils": "^19.10.0",
|
|
27
27
|
"@atlaskit/button": "^20.3.0",
|
|
28
28
|
"@atlaskit/checkbox": "^15.1.0",
|
|
29
|
-
"@atlaskit/editor-common": "^94.
|
|
29
|
+
"@atlaskit/editor-common": "^94.12.0",
|
|
30
30
|
"@atlaskit/editor-palette": "1.6.3",
|
|
31
|
-
"@atlaskit/editor-plugin-block-controls": "^2.
|
|
31
|
+
"@atlaskit/editor-plugin-block-controls": "^2.13.0",
|
|
32
32
|
"@atlaskit/editor-plugin-context-panel": "^1.3.0",
|
|
33
33
|
"@atlaskit/editor-plugin-copy-button": "^1.3.0",
|
|
34
34
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-emoji": "^2.7.0",
|
|
38
38
|
"@atlaskit/editor-plugin-extension": "^1.15.0",
|
|
39
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
39
|
+
"@atlaskit/editor-plugin-table": "^7.30.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
41
|
-
"@atlaskit/emoji": "^67.
|
|
41
|
+
"@atlaskit/emoji": "^67.9.0",
|
|
42
42
|
"@atlaskit/icon": "^22.24.0",
|
|
43
43
|
"@atlaskit/menu": "^2.13.0",
|
|
44
44
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/primitives": "^13.0.0",
|
|
47
47
|
"@atlaskit/select": "^18.4.0",
|
|
48
48
|
"@atlaskit/theme": "^14.0.0",
|
|
49
|
-
"@atlaskit/tokens": "^2.
|
|
49
|
+
"@atlaskit/tokens": "^2.1.0",
|
|
50
50
|
"@atlaskit/tooltip": "^18.8.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1",
|
|
@@ -70,6 +70,9 @@
|
|
|
70
70
|
},
|
|
71
71
|
"techstack": {
|
|
72
72
|
"@atlassian/frontend": {
|
|
73
|
+
"code-structure": [
|
|
74
|
+
"editor-plugin"
|
|
75
|
+
],
|
|
73
76
|
"import-structure": [
|
|
74
77
|
"atlassian-conventions"
|
|
75
78
|
],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|