@atlaskit/editor-plugin-insert-block 0.1.1 → 0.2.0
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/.eslintrc.js +26 -0
- package/CHANGELOG.md +6 -0
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/plugin.js +164 -0
- package/dist/cjs/types.js +5 -0
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +166 -0
- package/dist/cjs/ui/ElementBrowser/types.js +5 -0
- package/dist/cjs/ui/ToolbarInsertBlock/block-insert-element-browser.js +42 -0
- package/dist/cjs/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +42 -0
- package/dist/cjs/ui/ToolbarInsertBlock/block-insert-menu.js +66 -0
- package/dist/cjs/ui/ToolbarInsertBlock/create-items.js +217 -0
- package/dist/cjs/ui/ToolbarInsertBlock/dropdown-button.js +52 -0
- package/dist/cjs/ui/ToolbarInsertBlock/index.js +570 -0
- package/dist/cjs/ui/ToolbarInsertBlock/item.js +252 -0
- package/dist/cjs/ui/ToolbarInsertBlock/messages.js +12 -0
- package/dist/cjs/ui/ToolbarInsertBlock/shallow-equals.js +20 -0
- package/dist/cjs/ui/ToolbarInsertBlock/sort-items.js +30 -0
- package/dist/cjs/ui/ToolbarInsertBlock/styles.js +11 -0
- package/dist/cjs/ui/ToolbarInsertBlock/types.js +5 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/plugin.js +158 -0
- package/dist/es2019/types.js +1 -0
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +153 -0
- package/dist/es2019/ui/ElementBrowser/types.js +1 -0
- package/dist/es2019/ui/ToolbarInsertBlock/block-insert-element-browser.js +35 -0
- package/dist/es2019/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +35 -0
- package/dist/es2019/ui/ToolbarInsertBlock/block-insert-menu.js +59 -0
- package/dist/es2019/ui/ToolbarInsertBlock/create-items.js +198 -0
- package/dist/es2019/ui/ToolbarInsertBlock/dropdown-button.js +39 -0
- package/dist/es2019/ui/ToolbarInsertBlock/index.js +562 -0
- package/dist/es2019/ui/ToolbarInsertBlock/item.js +202 -0
- package/dist/es2019/ui/ToolbarInsertBlock/messages.js +1 -0
- package/dist/es2019/ui/ToolbarInsertBlock/shallow-equals.js +8 -0
- package/dist/es2019/ui/ToolbarInsertBlock/sort-items.js +22 -0
- package/dist/es2019/ui/ToolbarInsertBlock/styles.js +16 -0
- package/dist/es2019/ui/ToolbarInsertBlock/types.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/plugin.js +157 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +160 -0
- package/dist/esm/ui/ElementBrowser/types.js +1 -0
- package/dist/esm/ui/ToolbarInsertBlock/block-insert-element-browser.js +35 -0
- package/dist/esm/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +35 -0
- package/dist/esm/ui/ToolbarInsertBlock/block-insert-menu.js +59 -0
- package/dist/esm/ui/ToolbarInsertBlock/create-items.js +210 -0
- package/dist/esm/ui/ToolbarInsertBlock/dropdown-button.js +44 -0
- package/dist/esm/ui/ToolbarInsertBlock/index.js +564 -0
- package/dist/esm/ui/ToolbarInsertBlock/item.js +244 -0
- package/dist/esm/ui/ToolbarInsertBlock/messages.js +1 -0
- package/dist/esm/ui/ToolbarInsertBlock/shallow-equals.js +13 -0
- package/dist/esm/ui/ToolbarInsertBlock/sort-items.js +24 -0
- package/dist/esm/ui/ToolbarInsertBlock/styles.js +4 -0
- package/dist/esm/ui/ToolbarInsertBlock/types.js +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/plugin.d.ts +16 -0
- package/dist/types/types.d.ts +45 -0
- package/dist/types/ui/ElementBrowser/InsertMenu.d.ts +4 -0
- package/dist/types/ui/ElementBrowser/types.d.ts +22 -0
- package/dist/types/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +28 -0
- package/dist/types/ui/ToolbarInsertBlock/block-insert-menu-legacy.d.ts +21 -0
- package/dist/types/ui/ToolbarInsertBlock/block-insert-menu.d.ts +33 -0
- package/dist/types/ui/ToolbarInsertBlock/create-items.d.ts +39 -0
- package/dist/types/ui/ToolbarInsertBlock/dropdown-button.d.ts +16 -0
- package/dist/types/ui/ToolbarInsertBlock/index.d.ts +46 -0
- package/dist/types/ui/ToolbarInsertBlock/item.d.ts +35 -0
- package/dist/types/ui/ToolbarInsertBlock/messages.d.ts +1 -0
- package/dist/types/ui/ToolbarInsertBlock/shallow-equals.d.ts +1 -0
- package/dist/types/ui/ToolbarInsertBlock/sort-items.d.ts +2 -0
- package/dist/types/ui/ToolbarInsertBlock/styles.d.ts +1 -0
- package/dist/types/ui/ToolbarInsertBlock/types.d.ts +59 -0
- package/dist/types-ts4.5/index.d.ts +2 -1
- package/dist/types-ts4.5/plugin.d.ts +16 -0
- package/dist/types-ts4.5/types.d.ts +45 -0
- package/dist/types-ts4.5/ui/ElementBrowser/InsertMenu.d.ts +4 -0
- package/dist/types-ts4.5/ui/ElementBrowser/types.d.ts +22 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +28 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/block-insert-menu-legacy.d.ts +21 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/block-insert-menu.d.ts +33 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/create-items.d.ts +42 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/dropdown-button.d.ts +16 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/index.d.ts +46 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/item.d.ts +35 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/messages.d.ts +1 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/shallow-equals.d.ts +1 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/sort-items.d.ts +2 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/types.d.ts +59 -0
- package/package.json +37 -9
- package/report.api.md +82 -1
- package/tmp/api-report-tmp.d.ts +76 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type { Command, EditorActionsOptions as EditorActions, FeatureFlags, ImageUploadPluginReferenceEvent, PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
|
+
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
6
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
+
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
9
|
+
import type { InsertBlockPluginDependencies } from '../../types';
|
|
10
|
+
import type { BlockMenuItem } from './create-items';
|
|
11
|
+
export interface Props {
|
|
12
|
+
buttons: number;
|
|
13
|
+
isReducedSpacing: boolean;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
isTypeAheadAllowed?: boolean;
|
|
16
|
+
editorView: EditorView;
|
|
17
|
+
editorActions?: EditorActions;
|
|
18
|
+
tableSupported?: boolean;
|
|
19
|
+
actionSupported?: boolean;
|
|
20
|
+
decisionSupported?: boolean;
|
|
21
|
+
mentionsSupported?: boolean;
|
|
22
|
+
mediaUploadsEnabled?: boolean;
|
|
23
|
+
mediaSupported?: boolean;
|
|
24
|
+
imageUploadSupported?: boolean;
|
|
25
|
+
imageUploadEnabled?: boolean;
|
|
26
|
+
handleImageUpload?: (event?: ImageUploadPluginReferenceEvent) => Command;
|
|
27
|
+
dateEnabled?: boolean;
|
|
28
|
+
horizontalRuleEnabled?: boolean;
|
|
29
|
+
placeholderTextEnabled?: boolean;
|
|
30
|
+
layoutSectionEnabled?: boolean;
|
|
31
|
+
expandEnabled?: boolean;
|
|
32
|
+
emojiProvider?: Promise<EmojiProvider>;
|
|
33
|
+
availableWrapperBlockTypes?: BlockType[];
|
|
34
|
+
linkSupported?: boolean;
|
|
35
|
+
linkDisabled?: boolean;
|
|
36
|
+
emojiDisabled?: boolean;
|
|
37
|
+
nativeStatusSupported?: boolean;
|
|
38
|
+
popupsMountPoint?: HTMLElement;
|
|
39
|
+
popupsBoundariesElement?: HTMLElement;
|
|
40
|
+
popupsScrollableElement?: HTMLElement;
|
|
41
|
+
insertMenuItems?: MenuItem[];
|
|
42
|
+
showElementBrowserLink?: boolean;
|
|
43
|
+
showSeparator?: boolean;
|
|
44
|
+
replacePlusMenuWithElementBrowser?: boolean;
|
|
45
|
+
onShowMediaPicker?: () => void;
|
|
46
|
+
onInsertBlockType?: (name: string) => Command;
|
|
47
|
+
onInsertMacroFromMacroBrowser?: (macroProvider: MacroProvider, node?: PMNode, isEditing?: boolean) => (view: EditorView) => void;
|
|
48
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
49
|
+
featureFlags: FeatureFlags;
|
|
50
|
+
pluginInjectionApi?: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies>;
|
|
51
|
+
mentionsDisabled?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface State {
|
|
54
|
+
isPlusMenuOpen: boolean;
|
|
55
|
+
emojiPickerOpen: boolean;
|
|
56
|
+
buttons: BlockMenuItem[];
|
|
57
|
+
dropdownItems: BlockMenuItem[];
|
|
58
|
+
isOpenedByKeyboard: boolean;
|
|
59
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { insertBlockPlugin } from './plugin';
|
|
2
|
+
export type { InsertBlockPlugin } from './plugin';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { InsertBlockPluginDependencies } from './types';
|
|
3
|
+
export interface InsertBlockOptions {
|
|
4
|
+
allowTables?: boolean;
|
|
5
|
+
allowExpand?: boolean;
|
|
6
|
+
insertMenuItems?: any;
|
|
7
|
+
horizontalRuleEnabled?: boolean;
|
|
8
|
+
nativeStatusSupported?: boolean;
|
|
9
|
+
replacePlusMenuWithElementBrowser?: boolean;
|
|
10
|
+
showElementBrowserLink?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type InsertBlockPlugin = NextEditorPlugin<'insertBlock', {
|
|
13
|
+
pluginConfiguration: InsertBlockOptions | undefined;
|
|
14
|
+
dependencies: InsertBlockPluginDependencies;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const insertBlockPlugin: InsertBlockPlugin;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
+
import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
4
|
+
import type { CodeBlockPlugin } from '@atlaskit/editor-plugin-code-block';
|
|
5
|
+
import type { DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
6
|
+
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
7
|
+
import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand';
|
|
8
|
+
import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
|
|
9
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
10
|
+
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
11
|
+
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
12
|
+
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
13
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
14
|
+
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
15
|
+
import type { PanelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
16
|
+
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
17
|
+
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
18
|
+
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
19
|
+
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
20
|
+
import type { TablePlugin } from '@atlaskit/editor-plugin-table';
|
|
21
|
+
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
22
|
+
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
23
|
+
export type InsertBlockPluginDependencies = [
|
|
24
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
25
|
+
TypeAheadPlugin,
|
|
26
|
+
OptionalPlugin<TablePlugin>,
|
|
27
|
+
OptionalPlugin<HyperlinkPlugin>,
|
|
28
|
+
OptionalPlugin<DatePlugin>,
|
|
29
|
+
OptionalPlugin<BlockTypePlugin>,
|
|
30
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
31
|
+
OptionalPlugin<ImageUploadPlugin>,
|
|
32
|
+
OptionalPlugin<EmojiPlugin>,
|
|
33
|
+
OptionalPlugin<QuickInsertPlugin>,
|
|
34
|
+
OptionalPlugin<RulePlugin>,
|
|
35
|
+
OptionalPlugin<CodeBlockPlugin>,
|
|
36
|
+
OptionalPlugin<PanelPlugin>,
|
|
37
|
+
OptionalPlugin<MediaPlugin>,
|
|
38
|
+
OptionalPlugin<MentionsPlugin>,
|
|
39
|
+
OptionalPlugin<StatusPlugin>,
|
|
40
|
+
OptionalPlugin<LayoutPlugin>,
|
|
41
|
+
OptionalPlugin<ExpandPlugin>,
|
|
42
|
+
OptionalPlugin<PlaceholderTextPlugin>,
|
|
43
|
+
OptionalPlugin<ExtensionPlugin>,
|
|
44
|
+
OptionalPlugin<TasksAndDecisionsPlugin>
|
|
45
|
+
];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import type { InsertMenuProps } from './types';
|
|
3
|
+
declare const InsertMenu: ({ editorView, dropdownItems, showElementBrowserLink, onInsert, toggleVisiblity, pluginInjectionApi, }: InsertMenuProps) => jsx.JSX.Element;
|
|
4
|
+
export default InsertMenu;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
3
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
+
import type { InsertBlockPluginDependencies } from '../../types';
|
|
6
|
+
import type { BlockMenuItem } from '../ToolbarInsertBlock/create-items';
|
|
7
|
+
type SimpleEventHandler<T> = (event?: T) => void;
|
|
8
|
+
export interface InsertMenuProps {
|
|
9
|
+
dropdownItems: BlockMenuItem[];
|
|
10
|
+
editorView: EditorView;
|
|
11
|
+
showElementBrowserLink: boolean;
|
|
12
|
+
toggleVisiblity: SimpleEventHandler<MouseEvent | KeyboardEvent>;
|
|
13
|
+
onInsert: OnInsert;
|
|
14
|
+
pluginInjectionApi: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies> | undefined;
|
|
15
|
+
}
|
|
16
|
+
export type SvgGetterParams = {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
export type OnInsert = ({ item }: {
|
|
20
|
+
item: MenuItem;
|
|
21
|
+
}) => Transaction;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import type { InsertBlockPluginDependencies } from '../../types';
|
|
5
|
+
import type { OnInsert } from '../ElementBrowser/types';
|
|
6
|
+
import type { BlockMenuItem } from './create-items';
|
|
7
|
+
type SimpleEventHandler<T> = (event?: T) => void;
|
|
8
|
+
export interface BlockInsertElementBrowserProps {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
editorView: EditorView;
|
|
11
|
+
items: BlockMenuItem[];
|
|
12
|
+
spacing: 'none' | 'default';
|
|
13
|
+
label: string;
|
|
14
|
+
open: boolean;
|
|
15
|
+
popupsBoundariesElement?: HTMLElement;
|
|
16
|
+
popupsMountPoint?: HTMLElement;
|
|
17
|
+
popupsScrollableElement?: HTMLElement;
|
|
18
|
+
plusButtonRef?: HTMLElement;
|
|
19
|
+
showElementBrowserLink: boolean;
|
|
20
|
+
onRef(el: HTMLElement): void;
|
|
21
|
+
onClick: React.MouseEventHandler;
|
|
22
|
+
onKeyDown?: React.KeyboardEventHandler;
|
|
23
|
+
onInsert: OnInsert;
|
|
24
|
+
togglePlusMenuVisibility: SimpleEventHandler<MouseEvent | KeyboardEvent>;
|
|
25
|
+
pluginInjectionApi: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies> | undefined;
|
|
26
|
+
}
|
|
27
|
+
export declare const BlockInsertElementBrowser: (props: BlockInsertElementBrowserProps) => JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
3
|
+
import type { BlockMenuItem } from './create-items';
|
|
4
|
+
export interface BlockInsertMenuLegacyProps {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
spacing: 'none' | 'default';
|
|
7
|
+
label: string;
|
|
8
|
+
open: boolean;
|
|
9
|
+
items: BlockMenuItem[];
|
|
10
|
+
popupsMountPoint?: HTMLElement;
|
|
11
|
+
popupsBoundariesElement?: HTMLElement;
|
|
12
|
+
popupsScrollableElement?: HTMLElement;
|
|
13
|
+
onClick: React.MouseEventHandler;
|
|
14
|
+
onKeyDown?: React.KeyboardEventHandler;
|
|
15
|
+
onRef(el: HTMLElement): void;
|
|
16
|
+
onItemActivated(attrs: {
|
|
17
|
+
item: MenuItem;
|
|
18
|
+
}): void;
|
|
19
|
+
onOpenChange(attrs: any): void;
|
|
20
|
+
}
|
|
21
|
+
export declare const BlockInsertMenuLegacy: (props: BlockInsertMenuLegacyProps) => JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
4
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
+
import type { InsertBlockPluginDependencies } from '../../types';
|
|
6
|
+
import type { OnInsert } from '../ElementBrowser/types';
|
|
7
|
+
import type { BlockMenuItem } from './create-items';
|
|
8
|
+
export interface BlockInsertMenuProps {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
editorView: EditorView;
|
|
11
|
+
items: BlockMenuItem[];
|
|
12
|
+
label: string;
|
|
13
|
+
open: boolean;
|
|
14
|
+
plusButtonRef?: HTMLElement;
|
|
15
|
+
popupsBoundariesElement?: HTMLElement;
|
|
16
|
+
popupsMountPoint?: HTMLElement;
|
|
17
|
+
popupsScrollableElement?: HTMLElement;
|
|
18
|
+
replacePlusMenuWithElementBrowser: boolean;
|
|
19
|
+
spacing: 'none' | 'default';
|
|
20
|
+
showElementBrowserLink: boolean;
|
|
21
|
+
onRef(el: HTMLElement): void;
|
|
22
|
+
onPlusButtonRef(el: HTMLElement): void;
|
|
23
|
+
onClick: React.MouseEventHandler;
|
|
24
|
+
onItemActivated(attrs: {
|
|
25
|
+
item: MenuItem;
|
|
26
|
+
}): void;
|
|
27
|
+
onInsert: OnInsert;
|
|
28
|
+
onOpenChange(attrs: any): void;
|
|
29
|
+
togglePlusMenuVisibility(): void;
|
|
30
|
+
onKeyDown?: React.KeyboardEventHandler;
|
|
31
|
+
pluginInjectionApi: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies> | undefined;
|
|
32
|
+
}
|
|
33
|
+
export declare const BlockInsertMenu: (props: BlockInsertMenuProps) => JSX.Element | null;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
4
|
+
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
5
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
+
import type { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
7
|
+
export interface CreateItemsConfig {
|
|
8
|
+
isTypeAheadAllowed?: boolean;
|
|
9
|
+
tableSupported?: boolean;
|
|
10
|
+
mediaUploadsEnabled?: boolean;
|
|
11
|
+
mediaSupported?: boolean;
|
|
12
|
+
imageUploadSupported?: boolean;
|
|
13
|
+
imageUploadEnabled?: boolean;
|
|
14
|
+
mentionsSupported?: boolean;
|
|
15
|
+
mentionsDisabled?: boolean;
|
|
16
|
+
availableWrapperBlockTypes?: BlockType[];
|
|
17
|
+
actionSupported?: boolean;
|
|
18
|
+
decisionSupported?: boolean;
|
|
19
|
+
linkSupported?: boolean;
|
|
20
|
+
linkDisabled?: boolean;
|
|
21
|
+
emojiDisabled?: boolean;
|
|
22
|
+
nativeStatusSupported?: boolean;
|
|
23
|
+
dateEnabled?: boolean;
|
|
24
|
+
placeholderTextEnabled?: boolean;
|
|
25
|
+
horizontalRuleEnabled?: boolean;
|
|
26
|
+
layoutSectionEnabled?: boolean;
|
|
27
|
+
showElementBrowserLink?: boolean;
|
|
28
|
+
expandEnabled?: boolean;
|
|
29
|
+
insertMenuItems?: MenuItem[];
|
|
30
|
+
emojiProvider?: Promise<EmojiProvider>;
|
|
31
|
+
schema: Schema;
|
|
32
|
+
numberOfButtons: number;
|
|
33
|
+
formatMessage: WrappedComponentProps['intl']['formatMessage'];
|
|
34
|
+
isNewMenuEnabled?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface BlockMenuItem extends MenuItem {
|
|
37
|
+
title: JSX.Element | null;
|
|
38
|
+
}
|
|
39
|
+
export declare const createItems: import("memoize-one").MemoizedFn<(config: CreateItemsConfig) => readonly [
|
|
40
|
+
BlockMenuItem[],
|
|
41
|
+
BlockMenuItem[]
|
|
42
|
+
]>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ToolbarButtonRef } from '@atlaskit/editor-common/ui-menu';
|
|
4
|
+
export interface DropDownButtonProps {
|
|
5
|
+
label: string;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
'aria-expanded': React.AriaAttributes['aria-expanded'];
|
|
9
|
+
'aria-haspopup': React.AriaAttributes['aria-haspopup'];
|
|
10
|
+
'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
|
|
11
|
+
onClick: React.MouseEventHandler;
|
|
12
|
+
onKeyDown?: React.KeyboardEventHandler;
|
|
13
|
+
spacing: 'none' | 'default';
|
|
14
|
+
handleRef(el: ToolbarButtonRef): void;
|
|
15
|
+
}
|
|
16
|
+
export declare const DropDownButton: React.StatelessComponent<DropDownButtonProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import type { Props, State } from './types';
|
|
6
|
+
export declare class ToolbarInsertBlock extends React.PureComponent<Props & WrappedComponentProps, State> {
|
|
7
|
+
private dropdownButtonRef?;
|
|
8
|
+
private emojiButtonRef?;
|
|
9
|
+
private plusButtonRef?;
|
|
10
|
+
state: State;
|
|
11
|
+
static getDerivedStateFromProps(props: Props & WrappedComponentProps, state: State): State | null;
|
|
12
|
+
componentDidUpdate(prevProps: Props): void;
|
|
13
|
+
private onOpenChange;
|
|
14
|
+
private togglePlusMenuVisibility;
|
|
15
|
+
private toggleEmojiPicker;
|
|
16
|
+
private handleEmojiPressEscape;
|
|
17
|
+
private handleEmojiClickOutside;
|
|
18
|
+
private renderPopup;
|
|
19
|
+
private handleEmojiButtonRef;
|
|
20
|
+
private handlePlusButtonRef;
|
|
21
|
+
private handleDropDownButtonRef;
|
|
22
|
+
render(): jsx.JSX.Element | null;
|
|
23
|
+
private handleClick;
|
|
24
|
+
private handleOpenByKeyboard;
|
|
25
|
+
private toggleLinkPanel;
|
|
26
|
+
private insertMention;
|
|
27
|
+
private insertTable;
|
|
28
|
+
private createDate;
|
|
29
|
+
private createPlaceholderText;
|
|
30
|
+
private insertLayoutColumns;
|
|
31
|
+
private createStatus;
|
|
32
|
+
private openMediaPicker;
|
|
33
|
+
private insertTaskDecision;
|
|
34
|
+
private insertHorizontalRule;
|
|
35
|
+
private insertExpand;
|
|
36
|
+
private insertBlockType;
|
|
37
|
+
private handleSelectedEmoji;
|
|
38
|
+
private openElementBrowser;
|
|
39
|
+
private onItemActivated;
|
|
40
|
+
private insertToolbarMenuItem;
|
|
41
|
+
private insertInsertMenuItem;
|
|
42
|
+
}
|
|
43
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
44
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
45
|
+
};
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { MemoizedFn } from 'memoize-one';
|
|
4
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
|
+
export interface CreateInit {
|
|
6
|
+
content: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
tooltipDescription?: string;
|
|
9
|
+
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
10
|
+
'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
|
|
11
|
+
}
|
|
12
|
+
export declare const action: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
13
|
+
export declare const link: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
14
|
+
export declare const media: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
15
|
+
export declare const imageUpload: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
16
|
+
export declare const mention: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
17
|
+
export declare const emoji: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
18
|
+
export declare const table: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
19
|
+
export declare const layout: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
20
|
+
export declare const codeblock: MemoizedFn<(init: CreateInit & {
|
|
21
|
+
shortcut?: string;
|
|
22
|
+
}) => MenuItem>;
|
|
23
|
+
export declare const panel: MemoizedFn<(init: CreateInit & {
|
|
24
|
+
shortcut?: string;
|
|
25
|
+
}) => MenuItem>;
|
|
26
|
+
export declare const blockquote: MemoizedFn<(init: CreateInit & {
|
|
27
|
+
shortcut?: string;
|
|
28
|
+
}) => MenuItem>;
|
|
29
|
+
export declare const decision: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
30
|
+
export declare const horizontalrule: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
31
|
+
export declare const expand: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
32
|
+
export declare const date: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
33
|
+
export declare const placeholder: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
34
|
+
export declare const status: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
35
|
+
export declare const more: MemoizedFn<(init: CreateInit) => MenuItem>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shallowEquals: <T extends {}>([aRaw]: ReadonlyArray<unknown>, [bRaw]: ReadonlyArray<unknown>) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const triggerWrapper: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type { Command, EditorActionsOptions as EditorActions, FeatureFlags, ImageUploadPluginReferenceEvent, PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
|
+
import type { BlockType } from '@atlaskit/editor-plugin-block-type';
|
|
6
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
+
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
9
|
+
import type { InsertBlockPluginDependencies } from '../../types';
|
|
10
|
+
import type { BlockMenuItem } from './create-items';
|
|
11
|
+
export interface Props {
|
|
12
|
+
buttons: number;
|
|
13
|
+
isReducedSpacing: boolean;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
isTypeAheadAllowed?: boolean;
|
|
16
|
+
editorView: EditorView;
|
|
17
|
+
editorActions?: EditorActions;
|
|
18
|
+
tableSupported?: boolean;
|
|
19
|
+
actionSupported?: boolean;
|
|
20
|
+
decisionSupported?: boolean;
|
|
21
|
+
mentionsSupported?: boolean;
|
|
22
|
+
mediaUploadsEnabled?: boolean;
|
|
23
|
+
mediaSupported?: boolean;
|
|
24
|
+
imageUploadSupported?: boolean;
|
|
25
|
+
imageUploadEnabled?: boolean;
|
|
26
|
+
handleImageUpload?: (event?: ImageUploadPluginReferenceEvent) => Command;
|
|
27
|
+
dateEnabled?: boolean;
|
|
28
|
+
horizontalRuleEnabled?: boolean;
|
|
29
|
+
placeholderTextEnabled?: boolean;
|
|
30
|
+
layoutSectionEnabled?: boolean;
|
|
31
|
+
expandEnabled?: boolean;
|
|
32
|
+
emojiProvider?: Promise<EmojiProvider>;
|
|
33
|
+
availableWrapperBlockTypes?: BlockType[];
|
|
34
|
+
linkSupported?: boolean;
|
|
35
|
+
linkDisabled?: boolean;
|
|
36
|
+
emojiDisabled?: boolean;
|
|
37
|
+
nativeStatusSupported?: boolean;
|
|
38
|
+
popupsMountPoint?: HTMLElement;
|
|
39
|
+
popupsBoundariesElement?: HTMLElement;
|
|
40
|
+
popupsScrollableElement?: HTMLElement;
|
|
41
|
+
insertMenuItems?: MenuItem[];
|
|
42
|
+
showElementBrowserLink?: boolean;
|
|
43
|
+
showSeparator?: boolean;
|
|
44
|
+
replacePlusMenuWithElementBrowser?: boolean;
|
|
45
|
+
onShowMediaPicker?: () => void;
|
|
46
|
+
onInsertBlockType?: (name: string) => Command;
|
|
47
|
+
onInsertMacroFromMacroBrowser?: (macroProvider: MacroProvider, node?: PMNode, isEditing?: boolean) => (view: EditorView) => void;
|
|
48
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
49
|
+
featureFlags: FeatureFlags;
|
|
50
|
+
pluginInjectionApi?: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies>;
|
|
51
|
+
mentionsDisabled?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface State {
|
|
54
|
+
isPlusMenuOpen: boolean;
|
|
55
|
+
emojiPickerOpen: boolean;
|
|
56
|
+
buttons: BlockMenuItem[];
|
|
57
|
+
dropdownItems: BlockMenuItem[];
|
|
58
|
+
isOpenedByKeyboard: boolean;
|
|
59
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,28 +31,56 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@
|
|
34
|
+
"@atlaskit/editor-common": "^76.22.0",
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
36
|
+
"@atlaskit/editor-plugin-block-type": "^3.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-code-block": "^0.1.0",
|
|
38
|
+
"@atlaskit/editor-plugin-date": "^0.2.0",
|
|
39
|
+
"@atlaskit/editor-plugin-emoji": "^0.4.0",
|
|
40
|
+
"@atlaskit/editor-plugin-expand": "^0.1.0",
|
|
41
|
+
"@atlaskit/editor-plugin-extension": "^0.4.0",
|
|
42
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-hyperlink": "^0.6.0",
|
|
44
|
+
"@atlaskit/editor-plugin-image-upload": "^0.2.0",
|
|
45
|
+
"@atlaskit/editor-plugin-layout": "^0.1.0",
|
|
46
|
+
"@atlaskit/editor-plugin-media": "^0.4.0",
|
|
47
|
+
"@atlaskit/editor-plugin-mentions": "^0.1.0",
|
|
48
|
+
"@atlaskit/editor-plugin-panel": "^0.1.0",
|
|
49
|
+
"@atlaskit/editor-plugin-placeholder-text": "^0.1.0",
|
|
50
|
+
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
51
|
+
"@atlaskit/editor-plugin-rule": "^0.1.0",
|
|
52
|
+
"@atlaskit/editor-plugin-status": "^0.2.0",
|
|
53
|
+
"@atlaskit/editor-plugin-table": "^5.3.0",
|
|
54
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^0.2.0",
|
|
55
|
+
"@atlaskit/editor-plugin-type-ahead": "^0.7.0",
|
|
56
|
+
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
57
|
+
"@atlaskit/editor-shared-styles": "^2.8.0",
|
|
58
|
+
"@atlaskit/emoji": "^67.6.0",
|
|
59
|
+
"@atlaskit/icon": "^22.0.0",
|
|
60
|
+
"@atlaskit/theme": "^12.6.0",
|
|
61
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
62
|
+
"@babel/runtime": "^7.0.0",
|
|
63
|
+
"@emotion/react": "^11.7.1",
|
|
64
|
+
"lodash": "^4.17.21",
|
|
65
|
+
"memoize-one": "^6.0.0"
|
|
35
66
|
},
|
|
36
67
|
"peerDependencies": {
|
|
37
|
-
"react": "^16.8.0"
|
|
68
|
+
"react": "^16.8.0",
|
|
69
|
+
"react-dom": "^16.8.0",
|
|
70
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
38
71
|
},
|
|
39
72
|
"devDependencies": {
|
|
40
73
|
"@af/integration-testing": "*",
|
|
41
74
|
"@af/visual-regression": "*",
|
|
42
75
|
"@atlaskit/ssr": "*",
|
|
43
76
|
"@atlaskit/visual-regression": "*",
|
|
44
|
-
"@atlaskit/webdriver-runner": "*",
|
|
45
77
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
46
78
|
"@testing-library/react": "^12.1.5",
|
|
47
79
|
"react-dom": "^16.8.0",
|
|
48
|
-
"typescript": "~4.9.5"
|
|
49
|
-
"wait-for-expect": "^1.2.0"
|
|
80
|
+
"typescript": "~4.9.5"
|
|
50
81
|
},
|
|
51
82
|
"techstack": {
|
|
52
83
|
"@atlassian/frontend": {
|
|
53
|
-
"code-structure": [
|
|
54
|
-
"tangerine-next"
|
|
55
|
-
],
|
|
56
84
|
"import-structure": [
|
|
57
85
|
"atlassian-conventions"
|
|
58
86
|
],
|
package/report.api.md
CHANGED
|
@@ -15,6 +15,85 @@
|
|
|
15
15
|
<!--SECTION START: Main Entry Types-->
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
19
|
+
import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
20
|
+
import type { CodeBlockPlugin } from '@atlaskit/editor-plugin-code-block';
|
|
21
|
+
import type { DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
22
|
+
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
23
|
+
import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand';
|
|
24
|
+
import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
|
|
25
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
26
|
+
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
27
|
+
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
28
|
+
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
29
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
30
|
+
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
31
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
32
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
33
|
+
import type { PanelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
34
|
+
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
35
|
+
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
36
|
+
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
37
|
+
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
38
|
+
import type { TablePlugin } from '@atlaskit/editor-plugin-table';
|
|
39
|
+
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
40
|
+
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
41
|
+
|
|
42
|
+
// @public (undocumented)
|
|
43
|
+
interface InsertBlockOptions {
|
|
44
|
+
// (undocumented)
|
|
45
|
+
allowExpand?: boolean;
|
|
46
|
+
// (undocumented)
|
|
47
|
+
allowTables?: boolean;
|
|
48
|
+
// (undocumented)
|
|
49
|
+
horizontalRuleEnabled?: boolean;
|
|
50
|
+
// (undocumented)
|
|
51
|
+
insertMenuItems?: any;
|
|
52
|
+
// (undocumented)
|
|
53
|
+
nativeStatusSupported?: boolean;
|
|
54
|
+
// (undocumented)
|
|
55
|
+
replacePlusMenuWithElementBrowser?: boolean;
|
|
56
|
+
// (undocumented)
|
|
57
|
+
showElementBrowserLink?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// @public (undocumented)
|
|
61
|
+
export type InsertBlockPlugin = NextEditorPlugin<
|
|
62
|
+
'insertBlock',
|
|
63
|
+
{
|
|
64
|
+
pluginConfiguration: InsertBlockOptions | undefined;
|
|
65
|
+
dependencies: InsertBlockPluginDependencies;
|
|
66
|
+
}
|
|
67
|
+
>;
|
|
68
|
+
|
|
69
|
+
// @public (undocumented)
|
|
70
|
+
export const insertBlockPlugin: InsertBlockPlugin;
|
|
71
|
+
|
|
72
|
+
// @public (undocumented)
|
|
73
|
+
type InsertBlockPluginDependencies = [
|
|
74
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
75
|
+
TypeAheadPlugin,
|
|
76
|
+
OptionalPlugin<TablePlugin>,
|
|
77
|
+
OptionalPlugin<HyperlinkPlugin>,
|
|
78
|
+
OptionalPlugin<DatePlugin>,
|
|
79
|
+
OptionalPlugin<BlockTypePlugin>,
|
|
80
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
81
|
+
OptionalPlugin<ImageUploadPlugin>,
|
|
82
|
+
OptionalPlugin<EmojiPlugin>,
|
|
83
|
+
OptionalPlugin<QuickInsertPlugin>,
|
|
84
|
+
OptionalPlugin<RulePlugin>,
|
|
85
|
+
OptionalPlugin<CodeBlockPlugin>,
|
|
86
|
+
OptionalPlugin<PanelPlugin>,
|
|
87
|
+
OptionalPlugin<MediaPlugin>,
|
|
88
|
+
OptionalPlugin<MentionsPlugin>,
|
|
89
|
+
OptionalPlugin<StatusPlugin>,
|
|
90
|
+
OptionalPlugin<LayoutPlugin>,
|
|
91
|
+
OptionalPlugin<ExpandPlugin>,
|
|
92
|
+
OptionalPlugin<PlaceholderTextPlugin>,
|
|
93
|
+
OptionalPlugin<ExtensionPlugin>,
|
|
94
|
+
OptionalPlugin<TasksAndDecisionsPlugin>,
|
|
95
|
+
];
|
|
96
|
+
|
|
18
97
|
// (No @packageDocumentation comment for this package)
|
|
19
98
|
```
|
|
20
99
|
|
|
@@ -26,7 +105,9 @@
|
|
|
26
105
|
|
|
27
106
|
```json
|
|
28
107
|
{
|
|
29
|
-
"react": "^16.8.0"
|
|
108
|
+
"react": "^16.8.0",
|
|
109
|
+
"react-dom": "^16.8.0",
|
|
110
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
30
111
|
}
|
|
31
112
|
```
|
|
32
113
|
|