@atlaskit/editor-plugin-floating-toolbar 1.14.2 → 1.14.4
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 +17 -0
- package/dist/cjs/{plugin.js → floatingToolbarPlugin.js} +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/ui/Toolbar.js +11 -2
- package/dist/es2019/{plugin.js → floatingToolbarPlugin.js} +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/Toolbar.js +11 -2
- package/dist/esm/{plugin.js → floatingToolbarPlugin.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/Toolbar.js +11 -2
- 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 +4 -4
- 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 +4 -4
- package/dist/types-ts4.5/ui/Toolbar.d.ts +1 -1
- package/package.json +11 -8
- /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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.14.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#161539](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161539)
|
|
8
|
+
[`a3538a83b5e02`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3538a83b5e02) -
|
|
9
|
+
set floating toolbar icon color when active
|
|
10
|
+
|
|
11
|
+
## 1.14.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#159777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159777)
|
|
16
|
+
[`e708d0a9e4b36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e708d0a9e4b36) -
|
|
17
|
+
Refactoring plugins to meet folder standards.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 1.14.2
|
|
4
21
|
|
|
5
22
|
### 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
|
@@ -103,6 +103,15 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
+
var getIconColor = function getIconColor(disabled, selected) {
|
|
107
|
+
if (disabled) {
|
|
108
|
+
return "var(--ds-icon-disabled, #091E424F)";
|
|
109
|
+
}
|
|
110
|
+
if (selected) {
|
|
111
|
+
return "var(--ds-icon-selected, #0C66E4)";
|
|
112
|
+
}
|
|
113
|
+
return "var(--ds-icon, #44546F)";
|
|
114
|
+
};
|
|
106
115
|
return (0, _react2.jsx)(_ui.FloatingToolbarButton
|
|
107
116
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
108
117
|
, {
|
|
@@ -111,7 +120,7 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
111
120
|
title: item.title,
|
|
112
121
|
href: item.href,
|
|
113
122
|
icon: item.icon ? item.iconFallback ? (0, _react2.jsx)(ButtonIcon, {
|
|
114
|
-
color: item.disabled
|
|
123
|
+
color: getIconColor(item.disabled, item.selected),
|
|
115
124
|
spacing: "spacious",
|
|
116
125
|
label: item.title,
|
|
117
126
|
LEGACY_fallbackIcon: item.iconFallback,
|
|
@@ -150,7 +159,7 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
150
159
|
spotlightConfig: item.spotlightConfig
|
|
151
160
|
}, item.showTitle && item.title);
|
|
152
161
|
case 'input':
|
|
153
|
-
if ((0, _platformFeatureFlags.fg)('
|
|
162
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_react18_phase2_v2')) {
|
|
154
163
|
return (0, _react2.jsx)(_Input.InputNew, {
|
|
155
164
|
key: idx,
|
|
156
165
|
mountPoint: popupsMountPoint,
|
|
@@ -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';
|
|
@@ -91,6 +91,15 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
+
const getIconColor = (disabled, selected) => {
|
|
95
|
+
if (disabled) {
|
|
96
|
+
return "var(--ds-icon-disabled, #091E424F)";
|
|
97
|
+
}
|
|
98
|
+
if (selected) {
|
|
99
|
+
return "var(--ds-icon-selected, #0C66E4)";
|
|
100
|
+
}
|
|
101
|
+
return "var(--ds-icon, #44546F)";
|
|
102
|
+
};
|
|
94
103
|
return jsx(Button
|
|
95
104
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
96
105
|
, {
|
|
@@ -99,7 +108,7 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
99
108
|
title: item.title,
|
|
100
109
|
href: item.href,
|
|
101
110
|
icon: item.icon ? item.iconFallback ? jsx(ButtonIcon, {
|
|
102
|
-
color: item.disabled
|
|
111
|
+
color: getIconColor(item.disabled, item.selected),
|
|
103
112
|
spacing: "spacious",
|
|
104
113
|
label: item.title,
|
|
105
114
|
LEGACY_fallbackIcon: item.iconFallback,
|
|
@@ -130,7 +139,7 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
130
139
|
spotlightConfig: item.spotlightConfig
|
|
131
140
|
}, item.showTitle && item.title);
|
|
132
141
|
case 'input':
|
|
133
|
-
if (fg('
|
|
142
|
+
if (fg('platform_editor_react18_phase2_v2')) {
|
|
134
143
|
return jsx(InputNew, {
|
|
135
144
|
key: idx,
|
|
136
145
|
mountPoint: popupsMountPoint,
|
|
@@ -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
|
@@ -96,6 +96,15 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
+
var getIconColor = function getIconColor(disabled, selected) {
|
|
100
|
+
if (disabled) {
|
|
101
|
+
return "var(--ds-icon-disabled, #091E424F)";
|
|
102
|
+
}
|
|
103
|
+
if (selected) {
|
|
104
|
+
return "var(--ds-icon-selected, #0C66E4)";
|
|
105
|
+
}
|
|
106
|
+
return "var(--ds-icon, #44546F)";
|
|
107
|
+
};
|
|
99
108
|
return jsx(Button
|
|
100
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
101
110
|
, {
|
|
@@ -104,7 +113,7 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
104
113
|
title: item.title,
|
|
105
114
|
href: item.href,
|
|
106
115
|
icon: item.icon ? item.iconFallback ? jsx(ButtonIcon, {
|
|
107
|
-
color: item.disabled
|
|
116
|
+
color: getIconColor(item.disabled, item.selected),
|
|
108
117
|
spacing: "spacious",
|
|
109
118
|
label: item.title,
|
|
110
119
|
LEGACY_fallbackIcon: item.iconFallback,
|
|
@@ -143,7 +152,7 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
143
152
|
spotlightConfig: item.spotlightConfig
|
|
144
153
|
}, item.showTitle && item.title);
|
|
145
154
|
case 'input':
|
|
146
|
-
if (fg('
|
|
155
|
+
if (fg('platform_editor_react18_phase2_v2')) {
|
|
147
156
|
return jsx(InputNew, {
|
|
148
157
|
key: idx,
|
|
149
158
|
mountPoint: popupsMountPoint,
|
|
@@ -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;
|
|
@@ -284,11 +284,11 @@ export declare const EmojiPickerButton: (props: {
|
|
|
284
284
|
};
|
|
285
285
|
}, import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined>>];
|
|
286
286
|
actions: {
|
|
287
|
-
forceFocusSelector: import("../
|
|
287
|
+
forceFocusSelector: import("../floatingToolbarPluginType").ForceFocusSelector;
|
|
288
288
|
};
|
|
289
289
|
sharedState: {
|
|
290
|
-
configWithNodeInfo: import("../
|
|
291
|
-
floatingToolbarData: import("../
|
|
290
|
+
configWithNodeInfo: import("../floatingToolbarPluginType").ConfigWithNodeInfo | undefined;
|
|
291
|
+
floatingToolbarData: import("../floatingToolbarPluginType").FloatingToolbarPluginData | undefined;
|
|
292
292
|
} | undefined;
|
|
293
293
|
}> | undefined;
|
|
294
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;
|
|
@@ -335,11 +335,11 @@ export declare const EmojiPickerButton: (props: {
|
|
|
335
335
|
}, import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined>>
|
|
336
336
|
];
|
|
337
337
|
actions: {
|
|
338
|
-
forceFocusSelector: import("../
|
|
338
|
+
forceFocusSelector: import("../floatingToolbarPluginType").ForceFocusSelector;
|
|
339
339
|
};
|
|
340
340
|
sharedState: {
|
|
341
|
-
configWithNodeInfo: import("../
|
|
342
|
-
floatingToolbarData: import("../
|
|
341
|
+
configWithNodeInfo: import("../floatingToolbarPluginType").ConfigWithNodeInfo | undefined;
|
|
342
|
+
floatingToolbarData: import("../floatingToolbarPluginType").FloatingToolbarPluginData | undefined;
|
|
343
343
|
} | undefined;
|
|
344
344
|
}> | undefined;
|
|
345
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.4",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/adf-utils": "^19.
|
|
26
|
+
"@atlaskit/adf-utils": "^19.11.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.14.0",
|
|
30
30
|
"@atlaskit/editor-palette": "1.6.3",
|
|
31
31
|
"@atlaskit/editor-plugin-block-controls": "^2.13.0",
|
|
32
32
|
"@atlaskit/editor-plugin-context-panel": "^1.3.0",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-emoji": "^2.7.0",
|
|
38
|
-
"@atlaskit/editor-plugin-extension": "^1.
|
|
39
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
38
|
+
"@atlaskit/editor-plugin-extension": "^1.16.0",
|
|
39
|
+
"@atlaskit/editor-plugin-table": "^7.30.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
41
41
|
"@atlaskit/emoji": "^67.9.0",
|
|
42
42
|
"@atlaskit/icon": "^22.24.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
46
|
"@atlaskit/primitives": "^13.0.0",
|
|
47
|
-
"@atlaskit/select": "^18.
|
|
47
|
+
"@atlaskit/select": "^18.5.0",
|
|
48
48
|
"@atlaskit/theme": "^14.0.0",
|
|
49
|
-
"@atlaskit/tokens": "^2.
|
|
49
|
+
"@atlaskit/tokens": "^2.2.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
|
],
|
|
@@ -107,7 +110,7 @@
|
|
|
107
110
|
}
|
|
108
111
|
},
|
|
109
112
|
"platform-feature-flags": {
|
|
110
|
-
"
|
|
113
|
+
"platform_editor_react18_phase2_v2": {
|
|
111
114
|
"type": "boolean"
|
|
112
115
|
},
|
|
113
116
|
"platform_editor_advanced_layouts_pre_release_2": {
|
|
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
|