@atlaskit/editor-plugin-insert-block 2.4.25 → 2.4.26
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 +8 -0
- package/dist/cjs/insertBlockPlugin.js +2 -1
- package/dist/cjs/types/index.js +5 -0
- package/dist/cjs/ui/templateOptions.js +5 -5
- package/dist/cjs/ui/transformOptions.js +1 -1
- package/dist/es2019/insertBlockPlugin.js +2 -1
- package/dist/es2019/types/index.js +1 -0
- package/dist/es2019/ui/templateOptions.js +5 -5
- package/dist/es2019/ui/transformOptions.js +1 -1
- package/dist/esm/insertBlockPlugin.js +2 -1
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/ui/templateOptions.js +5 -5
- package/dist/esm/ui/transformOptions.js +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/insertBlockPlugin.d.ts +2 -24
- package/dist/types/insertBlockPluginType.d.ts +10 -53
- package/dist/types/types/index.d.ts +67 -0
- package/dist/types/ui/ElementRail/index.d.ts +4 -3
- package/dist/types/ui/ElementRail/useInsertMenuRailItems.d.ts +2 -1
- package/dist/types/ui/templateOptions.d.ts +1 -1
- package/dist/types/ui/transformOptions.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/insertBlockPlugin.d.ts +2 -24
- package/dist/types-ts4.5/insertBlockPluginType.d.ts +10 -53
- package/dist/types-ts4.5/types/index.d.ts +67 -0
- package/dist/types-ts4.5/ui/ElementRail/index.d.ts +4 -3
- package/dist/types-ts4.5/ui/ElementRail/useInsertMenuRailItems.d.ts +2 -1
- package/dist/types-ts4.5/ui/templateOptions.d.ts +1 -1
- package/dist/types-ts4.5/ui/transformOptions.d.ts +2 -2
- package/package.json +4 -1
- /package/dist/cjs/{assets → ui/assets}/action-list.js +0 -0
- /package/dist/cjs/{assets → ui/assets}/approvals-tracker.js +0 -0
- /package/dist/cjs/{assets → ui/assets}/decision-matrix.js +0 -0
- /package/dist/cjs/{assets → ui/assets}/discussion-notes.js +0 -0
- /package/dist/cjs/{assets → ui/assets}/expand.js +0 -0
- /package/dist/cjs/{assets → ui/assets}/instructions-outline.js +0 -0
- /package/dist/cjs/{assets → ui/assets}/switch.js +0 -0
- /package/dist/cjs/{assets → ui/assets}/use-icon-themed.js +0 -0
- /package/dist/es2019/{assets → ui/assets}/action-list.js +0 -0
- /package/dist/es2019/{assets → ui/assets}/approvals-tracker.js +0 -0
- /package/dist/es2019/{assets → ui/assets}/decision-matrix.js +0 -0
- /package/dist/es2019/{assets → ui/assets}/discussion-notes.js +0 -0
- /package/dist/es2019/{assets → ui/assets}/expand.js +0 -0
- /package/dist/es2019/{assets → ui/assets}/instructions-outline.js +0 -0
- /package/dist/es2019/{assets → ui/assets}/switch.js +0 -0
- /package/dist/es2019/{assets → ui/assets}/use-icon-themed.js +0 -0
- /package/dist/esm/{assets → ui/assets}/action-list.js +0 -0
- /package/dist/esm/{assets → ui/assets}/approvals-tracker.js +0 -0
- /package/dist/esm/{assets → ui/assets}/decision-matrix.js +0 -0
- /package/dist/esm/{assets → ui/assets}/discussion-notes.js +0 -0
- /package/dist/esm/{assets → ui/assets}/expand.js +0 -0
- /package/dist/esm/{assets → ui/assets}/instructions-outline.js +0 -0
- /package/dist/esm/{assets → ui/assets}/switch.js +0 -0
- /package/dist/esm/{assets → ui/assets}/use-icon-themed.js +0 -0
- /package/dist/types/{assets → ui/assets}/action-list.d.ts +0 -0
- /package/dist/types/{assets → ui/assets}/approvals-tracker.d.ts +0 -0
- /package/dist/types/{assets → ui/assets}/decision-matrix.d.ts +0 -0
- /package/dist/types/{assets → ui/assets}/discussion-notes.d.ts +0 -0
- /package/dist/types/{assets → ui/assets}/expand.d.ts +0 -0
- /package/dist/types/{assets → ui/assets}/instructions-outline.d.ts +0 -0
- /package/dist/types/{assets → ui/assets}/switch.d.ts +0 -0
- /package/dist/types/{assets → ui/assets}/use-icon-themed.d.ts +0 -0
- /package/dist/types-ts4.5/{assets → ui/assets}/action-list.d.ts +0 -0
- /package/dist/types-ts4.5/{assets → ui/assets}/approvals-tracker.d.ts +0 -0
- /package/dist/types-ts4.5/{assets → ui/assets}/decision-matrix.d.ts +0 -0
- /package/dist/types-ts4.5/{assets → ui/assets}/discussion-notes.d.ts +0 -0
- /package/dist/types-ts4.5/{assets → ui/assets}/expand.d.ts +0 -0
- /package/dist/types-ts4.5/{assets → ui/assets}/instructions-outline.d.ts +0 -0
- /package/dist/types-ts4.5/{assets → ui/assets}/switch.d.ts +0 -0
- /package/dist/types-ts4.5/{assets → ui/assets}/use-icon-themed.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 2.4.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#181001](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/181001)
|
|
8
|
+
[`fc8a0ad4362f4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc8a0ad4362f4) -
|
|
9
|
+
NO-ISSUE: refactor insert block plugin to meet folder standards
|
|
10
|
+
|
|
3
11
|
## 2.4.25
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -19,9 +19,9 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
19
19
|
var _consts = require("@atlaskit/editor-plugin-block-type/consts");
|
|
20
20
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
21
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
|
-
var _switch = _interopRequireDefault(require("./assets/switch"));
|
|
23
22
|
var _elementBrowser2 = require("./pm-plugins/elementBrowser");
|
|
24
23
|
var _toggleInsertBlock = require("./pm-plugins/toggleInsertBlock");
|
|
24
|
+
var _switch = _interopRequireDefault(require("./ui/assets/switch"));
|
|
25
25
|
var _ElementRail = require("./ui/ElementRail");
|
|
26
26
|
var _templateOptions = require("./ui/templateOptions");
|
|
27
27
|
var _ToolbarInsertBlock = _interopRequireDefault(require("./ui/ToolbarInsertBlock"));
|
|
@@ -69,6 +69,7 @@ var toolbarSizeToButtons = exports.toolbarSizeToButtons = function toolbarSizeTo
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
+
|
|
72
73
|
/**
|
|
73
74
|
* Wrapper over insertBlockTypeWithAnalytics to autobind toolbar input method
|
|
74
75
|
* @param name Block name
|
|
@@ -8,11 +8,11 @@ exports.templateOptions = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
10
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
11
|
-
var _actionList = _interopRequireDefault(require("
|
|
12
|
-
var _approvalsTracker = _interopRequireDefault(require("
|
|
13
|
-
var _decisionMatrix = _interopRequireDefault(require("
|
|
14
|
-
var _discussionNotes = _interopRequireDefault(require("
|
|
15
|
-
var _instructionsOutline = _interopRequireDefault(require("
|
|
11
|
+
var _actionList = _interopRequireDefault(require("./assets/action-list"));
|
|
12
|
+
var _approvalsTracker = _interopRequireDefault(require("./assets/approvals-tracker"));
|
|
13
|
+
var _decisionMatrix = _interopRequireDefault(require("./assets/decision-matrix"));
|
|
14
|
+
var _discussionNotes = _interopRequireDefault(require("./assets/discussion-notes"));
|
|
15
|
+
var _instructionsOutline = _interopRequireDefault(require("./assets/instructions-outline"));
|
|
16
16
|
var _templates = require("./templates");
|
|
17
17
|
var getTemplateInsertionPayload = function getTemplateInsertionPayload(templateType, source) {
|
|
18
18
|
return {
|
|
@@ -9,7 +9,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
9
9
|
var _code = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/code"));
|
|
10
10
|
var _info = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/info"));
|
|
11
11
|
var _quote = _interopRequireDefault(require("@atlaskit/icon/glyph/quote"));
|
|
12
|
-
var _expand = _interopRequireDefault(require("
|
|
12
|
+
var _expand = _interopRequireDefault(require("./assets/expand"));
|
|
13
13
|
var transformationOptions = exports.transformationOptions = function transformationOptions(api, schema) {
|
|
14
14
|
var _api$panel, _api$expand, _api$codeBlock, _api$blockType;
|
|
15
15
|
return [{
|
|
@@ -11,9 +11,9 @@ import { getWrappingOptions } from '@atlaskit/editor-common/utils';
|
|
|
11
11
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
|
-
import SwitchIcon from './assets/switch';
|
|
15
14
|
import { elementBrowserPmKey, elementBrowserPmPlugin } from './pm-plugins/elementBrowser';
|
|
16
15
|
import { toggleInsertBlockPmKey, toggleInsertBlockPmPlugin } from './pm-plugins/toggleInsertBlock';
|
|
16
|
+
import SwitchIcon from './ui/assets/switch';
|
|
17
17
|
import { InsertMenuRail } from './ui/ElementRail';
|
|
18
18
|
import { templateOptions } from './ui/templateOptions';
|
|
19
19
|
import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
|
|
@@ -59,6 +59,7 @@ export const toolbarSizeToButtons = (toolbarSize, appearance) => {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
+
|
|
62
63
|
/**
|
|
63
64
|
* Wrapper over insertBlockTypeWithAnalytics to autobind toolbar input method
|
|
64
65
|
* @param name Block name
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import ActionListIcon from '
|
|
5
|
-
import ApprovalsTrackerIcon from '
|
|
6
|
-
import DecisionMatrixIcon from '
|
|
7
|
-
import DiscussionNotesIcon from '
|
|
8
|
-
import InstructionsOutlineIcon from '
|
|
4
|
+
import ActionListIcon from './assets/action-list';
|
|
5
|
+
import ApprovalsTrackerIcon from './assets/approvals-tracker';
|
|
6
|
+
import DecisionMatrixIcon from './assets/decision-matrix';
|
|
7
|
+
import DiscussionNotesIcon from './assets/discussion-notes';
|
|
8
|
+
import InstructionsOutlineIcon from './assets/instructions-outline';
|
|
9
9
|
import { actionList, approvalsTracker, decisionMatrix, discussionNotes, instructionsOutline } from './templates';
|
|
10
10
|
const getTemplateInsertionPayload = (templateType, source) => ({
|
|
11
11
|
action: ACTION.INSERTED,
|
|
@@ -2,7 +2,7 @@ import { blockTypeMessages as messages, toolbarInsertBlockMessages as toolbarMes
|
|
|
2
2
|
import EditorCodeIcon from '@atlaskit/icon/glyph/editor/code';
|
|
3
3
|
import EditorInfoIcon from '@atlaskit/icon/glyph/editor/info';
|
|
4
4
|
import QuoteIcon from '@atlaskit/icon/glyph/quote';
|
|
5
|
-
import ExpandIcon from '
|
|
5
|
+
import ExpandIcon from './assets/expand';
|
|
6
6
|
export const transformationOptions = (api, schema) => {
|
|
7
7
|
var _api$panel, _api$expand, _api$codeBlock, _api$blockType;
|
|
8
8
|
return [{
|
|
@@ -11,9 +11,9 @@ import { getWrappingOptions } from '@atlaskit/editor-common/utils';
|
|
|
11
11
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
|
-
import SwitchIcon from './assets/switch';
|
|
15
14
|
import { elementBrowserPmKey, elementBrowserPmPlugin } from './pm-plugins/elementBrowser';
|
|
16
15
|
import { toggleInsertBlockPmKey, toggleInsertBlockPmPlugin } from './pm-plugins/toggleInsertBlock';
|
|
16
|
+
import SwitchIcon from './ui/assets/switch';
|
|
17
17
|
import { InsertMenuRail } from './ui/ElementRail';
|
|
18
18
|
import { templateOptions } from './ui/templateOptions';
|
|
19
19
|
import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
|
|
@@ -59,6 +59,7 @@ export var toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize, app
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
+
|
|
62
63
|
/**
|
|
63
64
|
* Wrapper over insertBlockTypeWithAnalytics to autobind toolbar input method
|
|
64
65
|
* @param name Block name
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import ActionListIcon from '
|
|
5
|
-
import ApprovalsTrackerIcon from '
|
|
6
|
-
import DecisionMatrixIcon from '
|
|
7
|
-
import DiscussionNotesIcon from '
|
|
8
|
-
import InstructionsOutlineIcon from '
|
|
4
|
+
import ActionListIcon from './assets/action-list';
|
|
5
|
+
import ApprovalsTrackerIcon from './assets/approvals-tracker';
|
|
6
|
+
import DecisionMatrixIcon from './assets/decision-matrix';
|
|
7
|
+
import DiscussionNotesIcon from './assets/discussion-notes';
|
|
8
|
+
import InstructionsOutlineIcon from './assets/instructions-outline';
|
|
9
9
|
import { actionList, approvalsTracker, decisionMatrix, discussionNotes, instructionsOutline } from './templates';
|
|
10
10
|
var getTemplateInsertionPayload = function getTemplateInsertionPayload(templateType, source) {
|
|
11
11
|
return {
|
|
@@ -2,7 +2,7 @@ import { blockTypeMessages as messages, toolbarInsertBlockMessages as toolbarMes
|
|
|
2
2
|
import EditorCodeIcon from '@atlaskit/icon/glyph/editor/code';
|
|
3
3
|
import EditorInfoIcon from '@atlaskit/icon/glyph/editor/info';
|
|
4
4
|
import QuoteIcon from '@atlaskit/icon/glyph/quote';
|
|
5
|
-
import ExpandIcon from '
|
|
5
|
+
import ExpandIcon from './assets/expand';
|
|
6
6
|
export var transformationOptions = function transformationOptions(api, schema) {
|
|
7
7
|
var _api$panel, _api$expand, _api$codeBlock, _api$blockType;
|
|
8
8
|
return [{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { insertBlockPlugin } from './insertBlockPlugin';
|
|
2
|
-
export type { InsertBlockPlugin
|
|
3
|
-
export type { InsertBlockPluginDependencies } from './
|
|
2
|
+
export type { InsertBlockPlugin } from './insertBlockPluginType';
|
|
3
|
+
export type { InsertBlockOptions, InsertBlockPluginDependencies, InsertBlockPluginState, } from './types';
|
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { EditorAppearance
|
|
3
|
-
import type {
|
|
2
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { InsertBlockPlugin } from './insertBlockPluginType';
|
|
4
4
|
export declare const toolbarSizeToButtons: (toolbarSize: ToolbarSize, appearance?: EditorAppearance) => 0 | 2 | 3 | 5 | 7;
|
|
5
|
-
export interface InsertBlockOptions {
|
|
6
|
-
allowTables?: boolean;
|
|
7
|
-
allowExpand?: boolean;
|
|
8
|
-
insertMenuItems?: any;
|
|
9
|
-
horizontalRuleEnabled?: boolean;
|
|
10
|
-
nativeStatusSupported?: boolean;
|
|
11
|
-
showElementBrowserLink?: boolean;
|
|
12
|
-
tableSelectorSupported?: boolean;
|
|
13
|
-
appearance?: EditorAppearance;
|
|
14
|
-
}
|
|
15
|
-
export interface InsertBlockPluginState {
|
|
16
|
-
showElementBrowser: boolean;
|
|
17
|
-
menuBrowserOpen?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export type InsertBlockPlugin = NextEditorPlugin<'insertBlock', {
|
|
20
|
-
pluginConfiguration: InsertBlockOptions | undefined;
|
|
21
|
-
dependencies: InsertBlockPluginDependencies;
|
|
22
|
-
actions: {
|
|
23
|
-
toggleAdditionalMenu: () => void;
|
|
24
|
-
};
|
|
25
|
-
sharedState: InsertBlockPluginState | undefined;
|
|
26
|
-
}>;
|
|
27
5
|
export declare const insertBlockPlugin: InsertBlockPlugin;
|
|
@@ -1,53 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
-
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
13
|
-
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
14
|
-
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
15
|
-
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
|
-
import type { MediaInsertPlugin } from '@atlaskit/editor-plugin-media-insert';
|
|
17
|
-
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
|
-
import type { PanelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
19
|
-
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
20
|
-
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
21
|
-
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
22
|
-
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
23
|
-
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
24
|
-
import type { TablePlugin } from '@atlaskit/editor-plugin-table';
|
|
25
|
-
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
26
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
27
|
-
export type InsertBlockPluginDependencies = [
|
|
28
|
-
TypeAheadPlugin,
|
|
29
|
-
OptionalPlugin<TablePlugin>,
|
|
30
|
-
OptionalPlugin<HyperlinkPlugin>,
|
|
31
|
-
OptionalPlugin<DatePlugin>,
|
|
32
|
-
OptionalPlugin<BlockTypePlugin>,
|
|
33
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
34
|
-
OptionalPlugin<ImageUploadPlugin>,
|
|
35
|
-
OptionalPlugin<EmojiPlugin>,
|
|
36
|
-
OptionalPlugin<QuickInsertPlugin>,
|
|
37
|
-
OptionalPlugin<RulePlugin>,
|
|
38
|
-
OptionalPlugin<CodeBlockPlugin>,
|
|
39
|
-
OptionalPlugin<PanelPlugin>,
|
|
40
|
-
OptionalPlugin<MediaPlugin>,
|
|
41
|
-
OptionalPlugin<MediaInsertPlugin>,
|
|
42
|
-
OptionalPlugin<MentionsPlugin>,
|
|
43
|
-
OptionalPlugin<StatusPlugin>,
|
|
44
|
-
OptionalPlugin<LayoutPlugin>,
|
|
45
|
-
OptionalPlugin<ExpandPlugin>,
|
|
46
|
-
OptionalPlugin<PlaceholderTextPlugin>,
|
|
47
|
-
OptionalPlugin<ExtensionPlugin>,
|
|
48
|
-
OptionalPlugin<TasksAndDecisionsPlugin>,
|
|
49
|
-
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
50
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
51
|
-
OptionalPlugin<ContextPanelPlugin>,
|
|
52
|
-
OptionalPlugin<ConnectivityPlugin>
|
|
53
|
-
];
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { InsertBlockOptions, InsertBlockPluginDependencies, InsertBlockPluginState } from './types';
|
|
3
|
+
export type InsertBlockPlugin = NextEditorPlugin<'insertBlock', {
|
|
4
|
+
pluginConfiguration: InsertBlockOptions | undefined;
|
|
5
|
+
dependencies: InsertBlockPluginDependencies;
|
|
6
|
+
actions: {
|
|
7
|
+
toggleAdditionalMenu: () => void;
|
|
8
|
+
};
|
|
9
|
+
sharedState: InsertBlockPluginState | undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { EditorAppearance, 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 { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
6
|
+
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
7
|
+
import type { DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
8
|
+
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
9
|
+
import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand';
|
|
10
|
+
import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
|
|
11
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
+
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
13
|
+
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
14
|
+
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
15
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
|
+
import type { MediaInsertPlugin } from '@atlaskit/editor-plugin-media-insert';
|
|
17
|
+
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
|
+
import type { PanelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
19
|
+
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
20
|
+
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
21
|
+
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
22
|
+
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
23
|
+
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
24
|
+
import type { TablePlugin } from '@atlaskit/editor-plugin-table';
|
|
25
|
+
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
26
|
+
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
27
|
+
export type InsertBlockPluginDependencies = [
|
|
28
|
+
TypeAheadPlugin,
|
|
29
|
+
OptionalPlugin<TablePlugin>,
|
|
30
|
+
OptionalPlugin<HyperlinkPlugin>,
|
|
31
|
+
OptionalPlugin<DatePlugin>,
|
|
32
|
+
OptionalPlugin<BlockTypePlugin>,
|
|
33
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
34
|
+
OptionalPlugin<ImageUploadPlugin>,
|
|
35
|
+
OptionalPlugin<EmojiPlugin>,
|
|
36
|
+
OptionalPlugin<QuickInsertPlugin>,
|
|
37
|
+
OptionalPlugin<RulePlugin>,
|
|
38
|
+
OptionalPlugin<CodeBlockPlugin>,
|
|
39
|
+
OptionalPlugin<PanelPlugin>,
|
|
40
|
+
OptionalPlugin<MediaPlugin>,
|
|
41
|
+
OptionalPlugin<MediaInsertPlugin>,
|
|
42
|
+
OptionalPlugin<MentionsPlugin>,
|
|
43
|
+
OptionalPlugin<StatusPlugin>,
|
|
44
|
+
OptionalPlugin<LayoutPlugin>,
|
|
45
|
+
OptionalPlugin<ExpandPlugin>,
|
|
46
|
+
OptionalPlugin<PlaceholderTextPlugin>,
|
|
47
|
+
OptionalPlugin<ExtensionPlugin>,
|
|
48
|
+
OptionalPlugin<TasksAndDecisionsPlugin>,
|
|
49
|
+
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
50
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
51
|
+
OptionalPlugin<ContextPanelPlugin>,
|
|
52
|
+
OptionalPlugin<ConnectivityPlugin>
|
|
53
|
+
];
|
|
54
|
+
export interface InsertBlockOptions {
|
|
55
|
+
allowTables?: boolean;
|
|
56
|
+
allowExpand?: boolean;
|
|
57
|
+
insertMenuItems?: any;
|
|
58
|
+
horizontalRuleEnabled?: boolean;
|
|
59
|
+
nativeStatusSupported?: boolean;
|
|
60
|
+
showElementBrowserLink?: boolean;
|
|
61
|
+
tableSelectorSupported?: boolean;
|
|
62
|
+
appearance?: EditorAppearance;
|
|
63
|
+
}
|
|
64
|
+
export interface InsertBlockPluginState {
|
|
65
|
+
showElementBrowser: boolean;
|
|
66
|
+
menuBrowserOpen?: boolean;
|
|
67
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import { type
|
|
4
|
+
import { type InsertBlockPlugin } from '../../insertBlockPluginType';
|
|
5
|
+
import { type InsertBlockOptions } from '../../types';
|
|
5
6
|
/**
|
|
6
7
|
* For insert menu in right rail experiment
|
|
7
8
|
* - Clean up ticket ED-24801
|
|
@@ -11,10 +12,10 @@ export declare const InsertMenuRail: ({ editorView, options, api, }: {
|
|
|
11
12
|
options: InsertBlockOptions;
|
|
12
13
|
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"insertBlock", {
|
|
13
14
|
pluginConfiguration: InsertBlockOptions | undefined;
|
|
14
|
-
dependencies: import("
|
|
15
|
+
dependencies: import("../../types").InsertBlockPluginDependencies;
|
|
15
16
|
actions: {
|
|
16
17
|
toggleAdditionalMenu: () => void;
|
|
17
18
|
};
|
|
18
|
-
sharedState: import("../../
|
|
19
|
+
sharedState: import("../../types").InsertBlockPluginState | undefined;
|
|
19
20
|
}> | undefined;
|
|
20
21
|
}) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type {
|
|
3
|
+
import type { insertBlockPlugin } from '../../insertBlockPlugin';
|
|
4
|
+
import type { InsertBlockOptions } from '../../types';
|
|
4
5
|
export declare const useInsertMenuRailItems: (editorView: EditorView, options: InsertBlockOptions, api?: ExtractInjectionAPI<typeof insertBlockPlugin>) => import("../ToolbarInsertBlock/create-items").BlockMenuItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
2
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { type InsertBlockPlugin } from '../
|
|
3
|
+
import { type InsertBlockPlugin } from '../insertBlockPluginType';
|
|
4
4
|
export declare const templateOptions: (api: ExtractInjectionAPI<InsertBlockPlugin> | undefined) => QuickInsertItem[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import QuoteIcon from '@atlaskit/icon/glyph/quote';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import type { InsertBlockPlugin } from '../insertBlockPluginType';
|
|
5
|
+
import ExpandIcon from './assets/expand';
|
|
6
6
|
export declare const transformationOptions: (api: ExtractInjectionAPI<InsertBlockPlugin> | undefined, schema: Schema) => ({
|
|
7
7
|
type: import("prosemirror-model").NodeType;
|
|
8
8
|
title: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { insertBlockPlugin } from './insertBlockPlugin';
|
|
2
|
-
export type { InsertBlockPlugin
|
|
3
|
-
export type { InsertBlockPluginDependencies } from './
|
|
2
|
+
export type { InsertBlockPlugin } from './insertBlockPluginType';
|
|
3
|
+
export type { InsertBlockOptions, InsertBlockPluginDependencies, InsertBlockPluginState, } from './types';
|
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { EditorAppearance
|
|
3
|
-
import type {
|
|
2
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { InsertBlockPlugin } from './insertBlockPluginType';
|
|
4
4
|
export declare const toolbarSizeToButtons: (toolbarSize: ToolbarSize, appearance?: EditorAppearance) => 0 | 2 | 3 | 5 | 7;
|
|
5
|
-
export interface InsertBlockOptions {
|
|
6
|
-
allowTables?: boolean;
|
|
7
|
-
allowExpand?: boolean;
|
|
8
|
-
insertMenuItems?: any;
|
|
9
|
-
horizontalRuleEnabled?: boolean;
|
|
10
|
-
nativeStatusSupported?: boolean;
|
|
11
|
-
showElementBrowserLink?: boolean;
|
|
12
|
-
tableSelectorSupported?: boolean;
|
|
13
|
-
appearance?: EditorAppearance;
|
|
14
|
-
}
|
|
15
|
-
export interface InsertBlockPluginState {
|
|
16
|
-
showElementBrowser: boolean;
|
|
17
|
-
menuBrowserOpen?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export type InsertBlockPlugin = NextEditorPlugin<'insertBlock', {
|
|
20
|
-
pluginConfiguration: InsertBlockOptions | undefined;
|
|
21
|
-
dependencies: InsertBlockPluginDependencies;
|
|
22
|
-
actions: {
|
|
23
|
-
toggleAdditionalMenu: () => void;
|
|
24
|
-
};
|
|
25
|
-
sharedState: InsertBlockPluginState | undefined;
|
|
26
|
-
}>;
|
|
27
5
|
export declare const insertBlockPlugin: InsertBlockPlugin;
|
|
@@ -1,53 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
-
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
13
|
-
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
14
|
-
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
15
|
-
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
|
-
import type { MediaInsertPlugin } from '@atlaskit/editor-plugin-media-insert';
|
|
17
|
-
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
|
-
import type { PanelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
19
|
-
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
20
|
-
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
21
|
-
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
22
|
-
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
23
|
-
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
24
|
-
import type { TablePlugin } from '@atlaskit/editor-plugin-table';
|
|
25
|
-
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
26
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
27
|
-
export type InsertBlockPluginDependencies = [
|
|
28
|
-
TypeAheadPlugin,
|
|
29
|
-
OptionalPlugin<TablePlugin>,
|
|
30
|
-
OptionalPlugin<HyperlinkPlugin>,
|
|
31
|
-
OptionalPlugin<DatePlugin>,
|
|
32
|
-
OptionalPlugin<BlockTypePlugin>,
|
|
33
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
34
|
-
OptionalPlugin<ImageUploadPlugin>,
|
|
35
|
-
OptionalPlugin<EmojiPlugin>,
|
|
36
|
-
OptionalPlugin<QuickInsertPlugin>,
|
|
37
|
-
OptionalPlugin<RulePlugin>,
|
|
38
|
-
OptionalPlugin<CodeBlockPlugin>,
|
|
39
|
-
OptionalPlugin<PanelPlugin>,
|
|
40
|
-
OptionalPlugin<MediaPlugin>,
|
|
41
|
-
OptionalPlugin<MediaInsertPlugin>,
|
|
42
|
-
OptionalPlugin<MentionsPlugin>,
|
|
43
|
-
OptionalPlugin<StatusPlugin>,
|
|
44
|
-
OptionalPlugin<LayoutPlugin>,
|
|
45
|
-
OptionalPlugin<ExpandPlugin>,
|
|
46
|
-
OptionalPlugin<PlaceholderTextPlugin>,
|
|
47
|
-
OptionalPlugin<ExtensionPlugin>,
|
|
48
|
-
OptionalPlugin<TasksAndDecisionsPlugin>,
|
|
49
|
-
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
50
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
51
|
-
OptionalPlugin<ContextPanelPlugin>,
|
|
52
|
-
OptionalPlugin<ConnectivityPlugin>
|
|
53
|
-
];
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { InsertBlockOptions, InsertBlockPluginDependencies, InsertBlockPluginState } from './types';
|
|
3
|
+
export type InsertBlockPlugin = NextEditorPlugin<'insertBlock', {
|
|
4
|
+
pluginConfiguration: InsertBlockOptions | undefined;
|
|
5
|
+
dependencies: InsertBlockPluginDependencies;
|
|
6
|
+
actions: {
|
|
7
|
+
toggleAdditionalMenu: () => void;
|
|
8
|
+
};
|
|
9
|
+
sharedState: InsertBlockPluginState | undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { EditorAppearance, 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 { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
6
|
+
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
7
|
+
import type { DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
8
|
+
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
9
|
+
import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand';
|
|
10
|
+
import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
|
|
11
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
+
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
13
|
+
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
14
|
+
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
15
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
|
+
import type { MediaInsertPlugin } from '@atlaskit/editor-plugin-media-insert';
|
|
17
|
+
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
|
+
import type { PanelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
19
|
+
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
20
|
+
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
21
|
+
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
22
|
+
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
23
|
+
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
24
|
+
import type { TablePlugin } from '@atlaskit/editor-plugin-table';
|
|
25
|
+
import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
26
|
+
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
27
|
+
export type InsertBlockPluginDependencies = [
|
|
28
|
+
TypeAheadPlugin,
|
|
29
|
+
OptionalPlugin<TablePlugin>,
|
|
30
|
+
OptionalPlugin<HyperlinkPlugin>,
|
|
31
|
+
OptionalPlugin<DatePlugin>,
|
|
32
|
+
OptionalPlugin<BlockTypePlugin>,
|
|
33
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
34
|
+
OptionalPlugin<ImageUploadPlugin>,
|
|
35
|
+
OptionalPlugin<EmojiPlugin>,
|
|
36
|
+
OptionalPlugin<QuickInsertPlugin>,
|
|
37
|
+
OptionalPlugin<RulePlugin>,
|
|
38
|
+
OptionalPlugin<CodeBlockPlugin>,
|
|
39
|
+
OptionalPlugin<PanelPlugin>,
|
|
40
|
+
OptionalPlugin<MediaPlugin>,
|
|
41
|
+
OptionalPlugin<MediaInsertPlugin>,
|
|
42
|
+
OptionalPlugin<MentionsPlugin>,
|
|
43
|
+
OptionalPlugin<StatusPlugin>,
|
|
44
|
+
OptionalPlugin<LayoutPlugin>,
|
|
45
|
+
OptionalPlugin<ExpandPlugin>,
|
|
46
|
+
OptionalPlugin<PlaceholderTextPlugin>,
|
|
47
|
+
OptionalPlugin<ExtensionPlugin>,
|
|
48
|
+
OptionalPlugin<TasksAndDecisionsPlugin>,
|
|
49
|
+
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
50
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
51
|
+
OptionalPlugin<ContextPanelPlugin>,
|
|
52
|
+
OptionalPlugin<ConnectivityPlugin>
|
|
53
|
+
];
|
|
54
|
+
export interface InsertBlockOptions {
|
|
55
|
+
allowTables?: boolean;
|
|
56
|
+
allowExpand?: boolean;
|
|
57
|
+
insertMenuItems?: any;
|
|
58
|
+
horizontalRuleEnabled?: boolean;
|
|
59
|
+
nativeStatusSupported?: boolean;
|
|
60
|
+
showElementBrowserLink?: boolean;
|
|
61
|
+
tableSelectorSupported?: boolean;
|
|
62
|
+
appearance?: EditorAppearance;
|
|
63
|
+
}
|
|
64
|
+
export interface InsertBlockPluginState {
|
|
65
|
+
showElementBrowser: boolean;
|
|
66
|
+
menuBrowserOpen?: boolean;
|
|
67
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import { type
|
|
4
|
+
import { type InsertBlockPlugin } from '../../insertBlockPluginType';
|
|
5
|
+
import { type InsertBlockOptions } from '../../types';
|
|
5
6
|
/**
|
|
6
7
|
* For insert menu in right rail experiment
|
|
7
8
|
* - Clean up ticket ED-24801
|
|
@@ -11,10 +12,10 @@ export declare const InsertMenuRail: ({ editorView, options, api, }: {
|
|
|
11
12
|
options: InsertBlockOptions;
|
|
12
13
|
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"insertBlock", {
|
|
13
14
|
pluginConfiguration: InsertBlockOptions | undefined;
|
|
14
|
-
dependencies: import("
|
|
15
|
+
dependencies: import("../../types").InsertBlockPluginDependencies;
|
|
15
16
|
actions: {
|
|
16
17
|
toggleAdditionalMenu: () => void;
|
|
17
18
|
};
|
|
18
|
-
sharedState: import("../../
|
|
19
|
+
sharedState: import("../../types").InsertBlockPluginState | undefined;
|
|
19
20
|
}> | undefined;
|
|
20
21
|
}) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type {
|
|
3
|
+
import type { insertBlockPlugin } from '../../insertBlockPlugin';
|
|
4
|
+
import type { InsertBlockOptions } from '../../types';
|
|
4
5
|
export declare const useInsertMenuRailItems: (editorView: EditorView, options: InsertBlockOptions, api?: ExtractInjectionAPI<typeof insertBlockPlugin>) => import("../ToolbarInsertBlock/create-items").BlockMenuItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
2
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { type InsertBlockPlugin } from '../
|
|
3
|
+
import { type InsertBlockPlugin } from '../insertBlockPluginType';
|
|
4
4
|
export declare const templateOptions: (api: ExtractInjectionAPI<InsertBlockPlugin> | undefined) => QuickInsertItem[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import QuoteIcon from '@atlaskit/icon/glyph/quote';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import type { InsertBlockPlugin } from '../insertBlockPluginType';
|
|
5
|
+
import ExpandIcon from './assets/expand';
|
|
6
6
|
export declare const transformationOptions: (api: ExtractInjectionAPI<InsertBlockPlugin> | undefined, schema: Schema) => ({
|
|
7
7
|
type: import("prosemirror-model").NodeType;
|
|
8
8
|
title: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.26",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -92,6 +92,9 @@
|
|
|
92
92
|
},
|
|
93
93
|
"techstack": {
|
|
94
94
|
"@atlassian/frontend": {
|
|
95
|
+
"code-structure": [
|
|
96
|
+
"editor-plugin"
|
|
97
|
+
],
|
|
95
98
|
"import-structure": [
|
|
96
99
|
"atlassian-conventions"
|
|
97
100
|
],
|
|
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
|
|
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
|
|
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
|
|
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
|