@atlaskit/editor-plugin-block-menu 25.1.1 → 25.1.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 +12 -0
- package/dist/cjs/editor-actions/isTransformToTargetDisabled.js +5 -5
- package/dist/cjs/editor-actions/transformSourceRegistry.js +3 -3
- package/dist/cjs/editor-commands/transform-analytics.js +12 -12
- package/dist/cjs/editor-commands/transform-node-utils/utils.js +2 -2
- package/dist/cjs/editor-commands/transformNode.js +7 -7
- package/dist/cjs/pm-plugins/experiences/block-menu-experiences.js +43 -38
- package/dist/cjs/pm-plugins/experiences/experience-check-utils.js +3 -3
- package/dist/cjs/pm-plugins/keymap.js +4 -3
- package/dist/cjs/ui/MenuSection.js +2 -2
- package/dist/cjs/ui/block-menu-components.js +48 -48
- package/dist/cjs/ui/block-menu-renderer/fallbacks.js +8 -6
- package/dist/cjs/ui/block-menu.js +28 -26
- package/dist/cjs/ui/copy-link.js +14 -13
- package/dist/cjs/ui/copy-section.js +2 -2
- package/dist/cjs/ui/delete-button.js +17 -17
- package/dist/cjs/ui/delete-section.js +2 -2
- package/dist/cjs/ui/flag.js +4 -4
- package/dist/cjs/ui/format-menu-nested.js +8 -8
- package/dist/cjs/ui/format-menu-section.js +2 -2
- package/dist/cjs/ui/hooks/useSuggestedItems.js +2 -2
- package/dist/cjs/ui/move-down.js +14 -14
- package/dist/cjs/ui/move-up.js +14 -14
- package/dist/cjs/ui/suggested-items-menu-section.js +4 -4
- package/dist/cjs/ui/utils/checkHasPreviousSectionContent.js +4 -4
- package/dist/cjs/ui/utils/copyLink.js +7 -7
- package/dist/cjs/ui/utils/fixBlockMenuPositionAndScroll.js +5 -5
- package/dist/cjs/ui/utils/getSuggestedItemsFromSelection.js +4 -4
- package/dist/cjs/ui/utils/isNestedNode.js +2 -2
- package/dist/cjs/ui/utils/suggested-items-rank.js +1 -2
- package/dist/es2019/editor-actions/isTransformToTargetDisabled.js +1 -1
- package/dist/es2019/editor-actions/transformSourceRegistry.js +1 -1
- package/dist/es2019/editor-commands/transform-analytics.js +2 -2
- package/dist/es2019/editor-commands/transform-node-utils/utils.js +1 -1
- package/dist/es2019/editor-commands/transformNode.js +2 -2
- package/dist/es2019/pm-plugins/experiences/block-menu-experiences.js +8 -3
- package/dist/es2019/pm-plugins/experiences/experience-check-utils.js +1 -1
- package/dist/es2019/pm-plugins/keymap.js +3 -2
- package/dist/es2019/ui/MenuSection.js +1 -1
- package/dist/es2019/ui/block-menu-components.js +4 -4
- package/dist/es2019/ui/block-menu-renderer/fallbacks.js +4 -2
- package/dist/es2019/ui/block-menu.js +10 -8
- package/dist/es2019/ui/copy-link.js +6 -5
- package/dist/es2019/ui/copy-section.js +1 -1
- package/dist/es2019/ui/delete-button.js +5 -5
- package/dist/es2019/ui/delete-section.js +1 -1
- package/dist/es2019/ui/flag.js +2 -2
- package/dist/es2019/ui/format-menu-nested.js +3 -3
- package/dist/es2019/ui/format-menu-section.js +1 -1
- package/dist/es2019/ui/hooks/useSuggestedItems.js +1 -1
- package/dist/es2019/ui/move-down.js +6 -6
- package/dist/es2019/ui/move-up.js +6 -6
- package/dist/es2019/ui/suggested-items-menu-section.js +2 -2
- package/dist/es2019/ui/utils/checkHasPreviousSectionContent.js +1 -1
- package/dist/es2019/ui/utils/copyLink.js +3 -3
- package/dist/es2019/ui/utils/fixBlockMenuPositionAndScroll.js +2 -2
- package/dist/es2019/ui/utils/getSuggestedItemsFromSelection.js +1 -1
- package/dist/es2019/ui/utils/isNestedNode.js +1 -1
- package/dist/es2019/ui/utils/suggested-items-rank.js +1 -2
- package/dist/esm/editor-actions/isTransformToTargetDisabled.js +1 -1
- package/dist/esm/editor-actions/transformSourceRegistry.js +1 -1
- package/dist/esm/editor-commands/transform-analytics.js +2 -2
- package/dist/esm/editor-commands/transform-node-utils/utils.js +1 -1
- package/dist/esm/editor-commands/transformNode.js +2 -2
- package/dist/esm/pm-plugins/experiences/block-menu-experiences.js +8 -3
- package/dist/esm/pm-plugins/experiences/experience-check-utils.js +1 -1
- package/dist/esm/pm-plugins/keymap.js +3 -2
- package/dist/esm/ui/MenuSection.js +1 -1
- package/dist/esm/ui/block-menu-components.js +4 -4
- package/dist/esm/ui/block-menu-renderer/fallbacks.js +4 -2
- package/dist/esm/ui/block-menu.js +10 -8
- package/dist/esm/ui/copy-link.js +6 -5
- package/dist/esm/ui/copy-section.js +1 -1
- package/dist/esm/ui/delete-button.js +5 -5
- package/dist/esm/ui/delete-section.js +1 -1
- package/dist/esm/ui/flag.js +2 -2
- package/dist/esm/ui/format-menu-nested.js +3 -3
- package/dist/esm/ui/format-menu-section.js +1 -1
- package/dist/esm/ui/hooks/useSuggestedItems.js +1 -1
- package/dist/esm/ui/move-down.js +6 -6
- package/dist/esm/ui/move-up.js +6 -6
- package/dist/esm/ui/suggested-items-menu-section.js +2 -2
- package/dist/esm/ui/utils/checkHasPreviousSectionContent.js +1 -1
- package/dist/esm/ui/utils/copyLink.js +3 -3
- package/dist/esm/ui/utils/fixBlockMenuPositionAndScroll.js +2 -2
- package/dist/esm/ui/utils/getSuggestedItemsFromSelection.js +1 -1
- package/dist/esm/ui/utils/isNestedNode.js +1 -1
- package/dist/esm/ui/utils/suggested-items-rank.js +1 -2
- package/dist/types/blockMenuPluginType.d.ts +7 -6
- package/dist/types/editor-commands/transform-analytics.d.ts +1 -1
- package/dist/types/editor-commands/transformInlineNode.d.ts +2 -1
- package/dist/types/editor-commands/transformNode.d.ts +2 -1
- package/dist/types/editor-commands/types.d.ts +1 -1
- package/dist/types/pm-plugins/experiences/block-menu-experiences.d.ts +1 -1
- package/dist/types/pm-plugins/experiences/experience-check-utils.d.ts +1 -1
- package/dist/types/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/ui/block-menu-components.d.ts +1 -1
- package/dist/types/ui/block-menu-provider.d.ts +1 -1
- package/dist/types/ui/block-menu.d.ts +1 -1
- package/dist/types/ui/copy-link.d.ts +1 -1
- package/dist/types/ui/delete-button.d.ts +1 -1
- package/dist/types/ui/flag.d.ts +1 -1
- package/dist/types/ui/format-menu-nested.d.ts +1 -1
- package/dist/types/ui/format-menu-section.d.ts +1 -1
- package/dist/types/ui/hooks/useSuggestedItems.d.ts +1 -1
- package/dist/types/ui/move-down.d.ts +1 -1
- package/dist/types/ui/move-up.d.ts +1 -1
- package/dist/types/ui/suggested-items-menu-section.d.ts +1 -1
- package/dist/types/ui/suggested-menu-items.d.ts +1 -1
- package/dist/types/ui/utils/checkHasPreviousSectionContent.d.ts +1 -1
- package/dist/types/ui/utils/checkIsFormatMenuHidden.d.ts +1 -1
- package/dist/types/ui/utils/createMenuItemsMap.d.ts +1 -1
- package/docs/0-intro.tsx +1 -1
- package/package.json +2 -2
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
5
|
-
import { BLOCK_MENU_TEST_ID } from '@atlaskit/editor-common/block-menu';
|
|
6
|
-
import { DRAG_HANDLE_SELECTOR } from '@atlaskit/editor-common/styles';
|
|
5
|
+
import { BLOCK_MENU_TEST_ID } from '@atlaskit/editor-common/block-menu/key';
|
|
6
|
+
import { DRAG_HANDLE_SELECTOR } from '@atlaskit/editor-common/styles/drag-handle';
|
|
7
7
|
var POPUP_WRAPPER_TEST_ID = 'popup-wrapper';
|
|
8
8
|
var EDITOR_CONTENT_CONTAINER_SELECTOR = '[data-testid="editor-content-container"]';
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { expandSelectionToBlockRange } from '@atlaskit/editor-common/selection';
|
|
1
|
+
import { expandSelectionToBlockRange } from '@atlaskit/editor-common/selection/utils';
|
|
2
2
|
import { getBlockNodesInRange } from '../../editor-commands/transform-node-utils/utils';
|
|
3
3
|
import { getSortedSuggestedItems } from '../utils/suggested-items-rank';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { CellSelection } from '@atlaskit/editor-tables';
|
|
2
|
+
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Determines if a node is nested (not at top-level) based on its depth and context.
|
|
@@ -17,8 +17,7 @@ var _TRANSFORM_SUGGESTED_;
|
|
|
17
17
|
* }
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
import { TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
21
|
-
import { TRANSFORM_STRUCTURE_STATUS_MENU_ITEM } from '@atlaskit/editor-common/block-menu/key';
|
|
20
|
+
import { TRANSFORM_STRUCTURE_STATUS_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM } from '@atlaskit/editor-common/block-menu/key';
|
|
22
21
|
export var BLOCK_MENU_NODE_TYPES = {
|
|
23
22
|
PARAGRAPH: 'paragraph',
|
|
24
23
|
EXPAND: 'expand',
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { BlockTransformExtension } from '@atlaskit/editor-common/block-menu/block-transform-extension';
|
|
2
|
-
import type { EditorCommand
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
2
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
3
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
5
|
+
import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls/blockControlsPluginType';
|
|
6
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations/decorationsPluginType';
|
|
7
|
+
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection/selection-plugin-type';
|
|
8
|
+
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent/user-intent-plugin-type';
|
|
8
9
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
9
10
|
import type { TransformInlineNodeMetadata, TransformNodeMarkChanges, TransformNodeMetadata } from './editor-commands/types';
|
|
10
11
|
export declare enum FLAG_ID {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { EditorCommand
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
3
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
3
4
|
import type { TransformInlineNodeMetadata } from './types';
|
|
4
5
|
export declare const transformInlineNode: (api?: ExtractInjectionAPI<BlockMenuPlugin>) => (metadata: TransformInlineNodeMetadata) => EditorCommand;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { EditorCommand
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
3
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
4
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
4
5
|
import type { BlockMenuTransformSourceRegistry } from '../editor-actions/transformSourceRegistry';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { TargetNodeMarks } from './transform-node-utils/types';
|
|
4
4
|
export type TransformNodeMarkChanges = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
type ExperienceOptions = {
|
|
4
4
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExperienceCheckResult } from '@atlaskit/editor-common/experiences';
|
|
1
|
+
import type { ExperienceCheckResult } from '@atlaskit/editor-common/experiences/ExperienceCheck';
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the given element or any of its ancestors is a drag handle element.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { BlockMenuPlugin, BlockMenuPluginOptions } from '../blockMenuPluginType';
|
|
4
4
|
export declare function keymapPlugin(api: ExtractInjectionAPI<BlockMenuPlugin> | undefined, config: BlockMenuPluginOptions | undefined): SafePlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { BlockMenuPlugin, FLAG_ID } from '../blockMenuPluginType';
|
|
5
5
|
export declare const blockMenuPluginKey: PluginKey;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { BlockMenuPlugin, BlockMenuPluginOptions, RegisterBlockMenuComponent } from '../blockMenuPluginType';
|
|
3
3
|
export declare const getBlockMenuComponents: ({ api, config, }: {
|
|
4
4
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
5
5
|
import { type BlockMenuAnchorMetrics } from './utils/fixBlockMenuPositionAndScroll';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
6
6
|
export type BlockMenuProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { BlockMenuPlugin, BlockMenuPluginOptions } from '../blockMenuPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
package/dist/types/ui/flag.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
4
4
|
type Props = {
|
|
5
5
|
api?: ExtractInjectionAPI<BlockMenuPlugin>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
4
4
|
export declare const FormatMenuComponent: ({ api, children, }: {
|
|
5
5
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
4
4
|
export declare const FormatMenuSection: ({ children, api, }: {
|
|
5
5
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { BlockMenuPlugin, RegisterBlockMenuItem } from '../../blockMenuPluginType';
|
|
3
3
|
export declare const useSuggestedItems: (api: ExtractInjectionAPI<BlockMenuPlugin> | undefined) => RegisterBlockMenuItem[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
4
4
|
type SuggestedItemsMenuSectionProps = {
|
|
5
5
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { BlockMenuPlugin } from '../blockMenuPluginType';
|
|
4
4
|
type SuggestedMenuItemsProps = {
|
|
5
5
|
api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { BlockMenuPlugin } from '../../blockMenuPluginType';
|
|
3
3
|
/**
|
|
4
4
|
* Checks if the Suggested section has any visible content
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { BlockMenuPlugin } from '../../blockMenuPluginType';
|
|
3
3
|
export declare const checkIsFormatMenuHidden: (api: ExtractInjectionAPI<BlockMenuPlugin> | undefined) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { BlockMenuPlugin, RegisterBlockMenuItem } from '../../blockMenuPluginType';
|
|
3
3
|
/**
|
|
4
4
|
* Helper function to create menu items map from block menu components.
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
|
|
4
|
-
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
|
|
4
|
+
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils/editor-use-only';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- md template from @atlaskit/docs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "25.1.
|
|
3
|
+
"version": "25.1.3",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
43
43
|
"@atlaskit/primitives": "^22.5.0",
|
|
44
44
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^232.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^20.4.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"bind-event-listener": "^3.0.0",
|