@atlaskit/editor-core 193.29.3 → 193.30.1
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 +22 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/dist/cjs/actions/index.js +1 -2
- package/dist/cjs/create-editor/ReactEditorView.js +3 -4
- package/dist/cjs/ui/Addon/index.js +0 -7
- package/dist/cjs/ui/Appearance/Chromeless.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -2
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/ui/ContextPanel/index.js +2 -2
- package/dist/cjs/ui/ToolbarFeedback/index.js +4 -4
- package/dist/cjs/ui/ToolbarHelp/index.js +2 -2
- package/dist/cjs/utils/document.js +0 -6
- package/dist/cjs/utils/index.js +0 -157
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +1 -2
- package/dist/es2019/create-editor/ReactEditorView.js +1 -2
- package/dist/es2019/ui/Addon/index.js +0 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/ui/ContextPanel/index.js +1 -1
- package/dist/es2019/ui/ToolbarFeedback/index.js +2 -2
- package/dist/es2019/ui/ToolbarHelp/index.js +1 -1
- package/dist/es2019/utils/document.js +0 -1
- package/dist/es2019/utils/index.js +1 -73
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +1 -2
- package/dist/esm/create-editor/ReactEditorView.js +1 -2
- package/dist/esm/ui/Addon/index.js +0 -1
- package/dist/esm/ui/Appearance/Chromeless.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/ui/ContextPanel/index.js +1 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +2 -2
- package/dist/esm/ui/ToolbarHelp/index.js +1 -1
- package/dist/esm/utils/document.js +0 -1
- package/dist/esm/utils/index.js +1 -75
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/create-editor/create-preset.d.ts +12 -4
- package/dist/types/presets/default.d.ts +12 -4
- package/dist/types/presets/universal.d.ts +12 -4
- package/dist/types/presets/useUniversalPreset.d.ts +12 -4
- package/dist/types/ui/Addon/index.d.ts +0 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/utils/document.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -22
- package/dist/types-ts4.5/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +16 -4
- package/dist/types-ts4.5/presets/default.d.ts +16 -4
- package/dist/types-ts4.5/presets/universal.d.ts +16 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +16 -4
- package/dist/types-ts4.5/ui/Addon/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/document.d.ts +0 -1
- package/dist/types-ts4.5/utils/index.d.ts +0 -22
- package/package.json +11 -7
- package/dist/cjs/keymaps/index.js +0 -594
- package/dist/cjs/ui/Addon/DropdownItem/index.js +0 -24
- package/dist/cjs/ui/Addon/DropdownItem/styles.js +0 -27
- package/dist/cjs/ui/ToolbarButton/index.js +0 -14
- package/dist/cjs/ui/WithPluginState/index.js +0 -8
- package/dist/cjs/ui/styles.js +0 -19
- package/dist/cjs/ui/with-outer-listeners.js +0 -8
- package/dist/cjs/utils/nodes.js +0 -36
- package/dist/es2019/keymaps/index.js +0 -1
- package/dist/es2019/ui/Addon/DropdownItem/index.js +0 -13
- package/dist/es2019/ui/Addon/DropdownItem/styles.js +0 -20
- package/dist/es2019/ui/ToolbarButton/index.js +0 -3
- package/dist/es2019/ui/WithPluginState/index.js +0 -2
- package/dist/es2019/ui/styles.js +0 -2
- package/dist/es2019/ui/with-outer-listeners.js +0 -2
- package/dist/es2019/utils/nodes.js +0 -1
- package/dist/esm/keymaps/index.js +0 -1
- package/dist/esm/ui/Addon/DropdownItem/index.js +0 -17
- package/dist/esm/ui/Addon/DropdownItem/styles.js +0 -20
- package/dist/esm/ui/ToolbarButton/index.js +0 -3
- package/dist/esm/ui/WithPluginState/index.js +0 -2
- package/dist/esm/ui/styles.js +0 -2
- package/dist/esm/ui/with-outer-listeners.js +0 -2
- package/dist/esm/utils/nodes.js +0 -1
- package/dist/types/keymaps/index.d.ts +0 -2
- package/dist/types/ui/Addon/DropdownItem/index.d.ts +0 -5
- package/dist/types/ui/Addon/DropdownItem/styles.d.ts +0 -1
- package/dist/types/ui/ToolbarButton/index.d.ts +0 -4
- package/dist/types/ui/WithPluginState/index.d.ts +0 -4
- package/dist/types/ui/styles.d.ts +0 -2
- package/dist/types/ui/with-outer-listeners.d.ts +0 -2
- package/dist/types/utils/nodes.d.ts +0 -1
- package/dist/types-ts4.5/keymaps/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/Addon/DropdownItem/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/Addon/DropdownItem/styles.d.ts +0 -1
- package/dist/types-ts4.5/ui/ToolbarButton/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/WithPluginState/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +0 -2
- package/dist/types-ts4.5/utils/nodes.d.ts +0 -1
|
@@ -1,66 +1,5 @@
|
|
|
1
|
-
import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
|
|
2
|
-
export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, toJSON, nodeToJSON } from '@atlaskit/editor-common/utils';
|
|
3
|
-
export { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
4
1
|
export { getNodesCount } from './document';
|
|
5
2
|
export { default as measurements } from './performance/measure-enum';
|
|
6
|
-
function isMarkTypeCompatibleWithMark(markType, mark) {
|
|
7
|
-
return !mark.type.excludes(markType) && !markType.excludes(mark.type);
|
|
8
|
-
}
|
|
9
|
-
function isMarkTypeAllowedInNode(markType, state) {
|
|
10
|
-
return toggleMark(markType)(state);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Check if a mark is allowed at the current selection / cursor based on a given state.
|
|
15
|
-
* This method looks at both the currently active marks on the transaction, as well as
|
|
16
|
-
* the node and marks at the current selection to determine if the given mark type is
|
|
17
|
-
* allowed.
|
|
18
|
-
*/
|
|
19
|
-
export function isMarkTypeAllowedInCurrentSelection(markType, state) {
|
|
20
|
-
if (!isMarkTypeAllowedInNode(markType, state)) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
const {
|
|
24
|
-
empty,
|
|
25
|
-
$cursor,
|
|
26
|
-
ranges
|
|
27
|
-
} = state.selection;
|
|
28
|
-
if (empty && !$cursor) {
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
let isCompatibleMarkType = mark => isMarkTypeCompatibleWithMark(markType, mark);
|
|
32
|
-
|
|
33
|
-
// Handle any new marks in the current transaction
|
|
34
|
-
if (state.tr.storedMarks && !state.tr.storedMarks.every(isCompatibleMarkType)) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
if ($cursor) {
|
|
38
|
-
return $cursor.marks().every(isCompatibleMarkType);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Check every node in a selection - ensuring that it is compatible with the current mark type
|
|
42
|
-
return ranges.every(({
|
|
43
|
-
$from,
|
|
44
|
-
$to
|
|
45
|
-
}) => {
|
|
46
|
-
let allowedInActiveMarks = $from.depth === 0 ? state.doc.marks.every(isCompatibleMarkType) : true;
|
|
47
|
-
state.doc.nodesBetween($from.pos, $to.pos, node => {
|
|
48
|
-
allowedInActiveMarks = allowedInActiveMarks && node.marks.every(isCompatibleMarkType);
|
|
49
|
-
});
|
|
50
|
-
return allowedInActiveMarks;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Repeating string for multiple times
|
|
56
|
-
*/
|
|
57
|
-
export function stringRepeat(text, length) {
|
|
58
|
-
let result = '';
|
|
59
|
-
for (let x = 0; x < length; x++) {
|
|
60
|
-
result += text;
|
|
61
|
-
}
|
|
62
|
-
return result;
|
|
63
|
-
}
|
|
64
3
|
|
|
65
4
|
/*
|
|
66
5
|
* From Modernizr
|
|
@@ -84,15 +23,4 @@ export function whichTransitionEvent() {
|
|
|
84
23
|
}
|
|
85
24
|
}
|
|
86
25
|
return;
|
|
87
|
-
}
|
|
88
|
-
export const isTemporary = id => {
|
|
89
|
-
return id.indexOf('temporary:') === 0;
|
|
90
|
-
};
|
|
91
|
-
export const hasOpenEnd = slice => {
|
|
92
|
-
return slice.openStart > 0 || slice.openEnd > 0;
|
|
93
|
-
};
|
|
94
|
-
export { isTextSelection, isElementInTableCell, isLastItemMediaGroup, nonNullable } from '@atlaskit/editor-common/utils';
|
|
95
|
-
export function sum(arr, f) {
|
|
96
|
-
return arr.reduce((val, x) => val + f(x), 0);
|
|
97
|
-
}
|
|
98
|
-
export { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
26
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.
|
|
2
|
+
export const version = "193.30.1";
|
|
@@ -3,12 +3,11 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
-
import { analyticsEventKey, findNodePosByLocalIds, isEmptyDocument, processRawValue } from '@atlaskit/editor-common/utils';
|
|
6
|
+
import { analyticsEventKey, findNodePosByLocalIds, isEmptyDocument, processRawValue, toJSON } from '@atlaskit/editor-common/utils';
|
|
7
7
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { findParentNode, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
import { createDispatch } from '../event-dispatcher';
|
|
11
|
-
import { toJSON } from '../utils';
|
|
12
11
|
import { __temporaryFixForConfigPanel as _temporaryFixForConfigPanel, getEditorValueWithMedia } from '../utils/action';
|
|
13
12
|
import deprecationWarnings from '../utils/deprecation-warnings';
|
|
14
13
|
import { processRawFragmentValue } from '../utils/document';
|
|
@@ -19,14 +19,13 @@ import { getEnabledFeatureFlagKeys } from '@atlaskit/editor-common/normalize-fea
|
|
|
19
19
|
import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
20
20
|
import { EditorExperience, ExperienceStore, RELIABILITY_INTERVAL } from '@atlaskit/editor-common/ufo';
|
|
21
21
|
import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
|
|
22
|
-
import { analyticsEventKey, browser, countNodes as _countNodes, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, startMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
|
|
22
|
+
import { analyticsEventKey, browser, countNodes as _countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, startMeasure, stopMeasure, validateNodes, validNode } from '@atlaskit/editor-common/utils';
|
|
23
23
|
import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
24
24
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
25
25
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
26
26
|
import { createDispatch, EventDispatcher } from '../event-dispatcher';
|
|
27
27
|
import { getNodesCount } from '../utils/document';
|
|
28
28
|
import { isFullPage } from '../utils/is-full-page';
|
|
29
|
-
import { findChangedNodesFromTransaction, validateNodes, validNode } from '../utils/nodes';
|
|
30
29
|
import { RenderTracking } from '../utils/performance/components/RenderTracking';
|
|
31
30
|
import measurements from '../utils/performance/measure-enum';
|
|
32
31
|
import { PluginPerformanceObserver } from '../utils/performance/plugin-performance-observer';
|
|
@@ -13,10 +13,10 @@ import React, { Fragment } from 'react';
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
14
|
import { css, jsx } from '@emotion/react';
|
|
15
15
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
16
|
+
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
16
17
|
import { usePresetContext } from '../../presets/context';
|
|
17
18
|
import { createEditorContentStyle } from '../ContentStyles';
|
|
18
19
|
import PluginSlot from '../PluginSlot';
|
|
19
|
-
import { scrollbarStyles } from '../styles';
|
|
20
20
|
import WithFlash from '../WithFlash';
|
|
21
21
|
var chromelessEditorStyles = css({
|
|
22
22
|
lineHeight: '20px',
|
|
@@ -6,9 +6,9 @@ import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
|
6
6
|
import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
|
|
7
7
|
import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
|
|
8
8
|
import { akEditorContextPanelWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
9
|
+
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
9
10
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { createEditorContentStyle } from '../../ContentStyles';
|
|
11
|
-
import { scrollbarStyles } from '../../styles';
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
14
|
var SWOOP_ANIMATION = "0.5s ".concat(akEditorSwoopCubicBezier);
|
|
@@ -67,7 +67,7 @@ export var placeholderStyles = css({
|
|
|
67
67
|
var contentStyles = function contentStyles(props) {
|
|
68
68
|
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\tpointer-events: none;\n\t\topacity: 0.7;\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), editorFontSize({
|
|
69
69
|
theme: props.theme
|
|
70
|
-
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles, listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
70
|
+
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
71
71
|
};
|
|
72
72
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
73
73
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -19,12 +19,12 @@ import React, { useContext } from 'react';
|
|
|
19
19
|
import { css, jsx } from '@emotion/react';
|
|
20
20
|
import Transition from 'react-transition-group/Transition';
|
|
21
21
|
import { ContextPanelConsumer, WidthContext } from '@atlaskit/editor-common/ui';
|
|
22
|
+
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
22
23
|
import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
23
24
|
import { akEditorBreakoutPadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
24
25
|
import { N30 } from '@atlaskit/theme/colors';
|
|
25
26
|
import { getChildBreakoutModes } from '../../utils/document';
|
|
26
27
|
import WithEditorActions from '../WithEditorActions';
|
|
27
|
-
import WithPluginState from '../WithPluginState';
|
|
28
28
|
var ANIM_SPEED_MS = 500;
|
|
29
29
|
var EDITOR_WIDTH = akEditorDefaultLayoutWidth + akEditorBreakoutPadding;
|
|
30
30
|
var WIDE_EDITOR_WIDTH = akEditorWideLayoutWidth + akEditorBreakoutPadding;
|
|
@@ -23,13 +23,13 @@ import Button from '@atlaskit/button';
|
|
|
23
23
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
24
24
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
25
25
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
26
|
+
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
27
|
+
import { withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
26
28
|
import { analyticsEventKey } from '@atlaskit/editor-common/utils';
|
|
27
29
|
import Spinner from '@atlaskit/spinner';
|
|
28
30
|
import { createDispatch } from '../../event-dispatcher';
|
|
29
31
|
import { usePresetContext } from '../../presets/context';
|
|
30
32
|
import deprecationWarnings from '../../utils/deprecation-warnings';
|
|
31
|
-
import ToolbarButton from '../ToolbarButton';
|
|
32
|
-
import withOuterListeners from '../with-outer-listeners';
|
|
33
33
|
import { buttonContent, confirmationHeader, confirmationImg, confirmationPopup, confirmationText, wrapper } from './styles';
|
|
34
34
|
var PopupWithOutsideListeners = withOuterListeners(Popup);
|
|
35
35
|
var POPUP_HEIGHT = 388;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
|
+
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
3
4
|
import QuestionIcon from '@atlaskit/icon/glyph/question';
|
|
4
|
-
import ToolbarButton from '../ToolbarButton';
|
|
5
5
|
import WithHelpTrigger from '../WithHelpTrigger';
|
|
6
6
|
import { messages } from './messages';
|
|
7
7
|
var TooltipHelpTrigger = function TooltipHelpTrigger(_ref) {
|
|
@@ -2,7 +2,6 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import { processRawValue } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { getBreakoutMode } from './node-width';
|
|
5
|
-
export { isInEmptyLine } from '@atlaskit/editor-common/utils';
|
|
6
5
|
export function processRawFragmentValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
|
|
7
6
|
if (!value) {
|
|
8
7
|
return;
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,66 +1,5 @@
|
|
|
1
|
-
import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
|
|
2
|
-
export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, toJSON, nodeToJSON } from '@atlaskit/editor-common/utils';
|
|
3
|
-
export { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
4
1
|
export { getNodesCount } from './document';
|
|
5
2
|
export { default as measurements } from './performance/measure-enum';
|
|
6
|
-
function isMarkTypeCompatibleWithMark(markType, mark) {
|
|
7
|
-
return !mark.type.excludes(markType) && !markType.excludes(mark.type);
|
|
8
|
-
}
|
|
9
|
-
function isMarkTypeAllowedInNode(markType, state) {
|
|
10
|
-
return toggleMark(markType)(state);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Check if a mark is allowed at the current selection / cursor based on a given state.
|
|
15
|
-
* This method looks at both the currently active marks on the transaction, as well as
|
|
16
|
-
* the node and marks at the current selection to determine if the given mark type is
|
|
17
|
-
* allowed.
|
|
18
|
-
*/
|
|
19
|
-
export function isMarkTypeAllowedInCurrentSelection(markType, state) {
|
|
20
|
-
if (!isMarkTypeAllowedInNode(markType, state)) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
var _ref = state.selection,
|
|
24
|
-
empty = _ref.empty,
|
|
25
|
-
$cursor = _ref.$cursor,
|
|
26
|
-
ranges = _ref.ranges;
|
|
27
|
-
if (empty && !$cursor) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
var isCompatibleMarkType = function isCompatibleMarkType(mark) {
|
|
31
|
-
return isMarkTypeCompatibleWithMark(markType, mark);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// Handle any new marks in the current transaction
|
|
35
|
-
if (state.tr.storedMarks && !state.tr.storedMarks.every(isCompatibleMarkType)) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
if ($cursor) {
|
|
39
|
-
return $cursor.marks().every(isCompatibleMarkType);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// Check every node in a selection - ensuring that it is compatible with the current mark type
|
|
43
|
-
return ranges.every(function (_ref2) {
|
|
44
|
-
var $from = _ref2.$from,
|
|
45
|
-
$to = _ref2.$to;
|
|
46
|
-
var allowedInActiveMarks = $from.depth === 0 ? state.doc.marks.every(isCompatibleMarkType) : true;
|
|
47
|
-
state.doc.nodesBetween($from.pos, $to.pos, function (node) {
|
|
48
|
-
allowedInActiveMarks = allowedInActiveMarks && node.marks.every(isCompatibleMarkType);
|
|
49
|
-
});
|
|
50
|
-
return allowedInActiveMarks;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Repeating string for multiple times
|
|
56
|
-
*/
|
|
57
|
-
export function stringRepeat(text, length) {
|
|
58
|
-
var result = '';
|
|
59
|
-
for (var x = 0; x < length; x++) {
|
|
60
|
-
result += text;
|
|
61
|
-
}
|
|
62
|
-
return result;
|
|
63
|
-
}
|
|
64
3
|
|
|
65
4
|
/*
|
|
66
5
|
* From Modernizr
|
|
@@ -84,17 +23,4 @@ export function whichTransitionEvent() {
|
|
|
84
23
|
}
|
|
85
24
|
}
|
|
86
25
|
return;
|
|
87
|
-
}
|
|
88
|
-
export var isTemporary = function isTemporary(id) {
|
|
89
|
-
return id.indexOf('temporary:') === 0;
|
|
90
|
-
};
|
|
91
|
-
export var hasOpenEnd = function hasOpenEnd(slice) {
|
|
92
|
-
return slice.openStart > 0 || slice.openEnd > 0;
|
|
93
|
-
};
|
|
94
|
-
export { isTextSelection, isElementInTableCell, isLastItemMediaGroup, nonNullable } from '@atlaskit/editor-common/utils';
|
|
95
|
-
export function sum(arr, f) {
|
|
96
|
-
return arr.reduce(function (val, x) {
|
|
97
|
-
return val + f(x);
|
|
98
|
-
}, 0);
|
|
99
|
-
}
|
|
100
|
-
export { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
26
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.
|
|
2
|
+
export var version = "193.30.1";
|
|
@@ -32,7 +32,7 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
|
32
32
|
*
|
|
33
33
|
* WARNING: this may be called repeatedly, async with care
|
|
34
34
|
*/
|
|
35
|
-
getValue(): Promise<T | import("@atlaskit/editor-json-transformer
|
|
35
|
+
getValue(): Promise<T | import("@atlaskit/editor-json-transformer").JSONDocNode | undefined>;
|
|
36
36
|
getNodeByLocalId(id: string): Node | undefined;
|
|
37
37
|
getNodeByFragmentLocalId(id: string): Node | undefined;
|
|
38
38
|
/**
|
|
@@ -230,7 +230,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
230
230
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
231
231
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
232
232
|
} | undefined;
|
|
233
|
-
}, undefined
|
|
233
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
234
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
235
|
+
}, undefined>>];
|
|
234
236
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
235
237
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
236
238
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -1155,7 +1157,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1155
1157
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
1156
1158
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
1157
1159
|
} | undefined;
|
|
1158
|
-
}, undefined
|
|
1160
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
1161
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
1162
|
+
}, undefined>>];
|
|
1159
1163
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
1160
1164
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
1161
1165
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"layout", {
|
|
@@ -3575,7 +3579,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3575
3579
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
3576
3580
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
3577
3581
|
} | undefined;
|
|
3578
|
-
}, undefined
|
|
3582
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
3583
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
3584
|
+
}, undefined>>];
|
|
3579
3585
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
3580
3586
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3581
3587
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
|
|
@@ -3987,7 +3993,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3987
3993
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
3988
3994
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
3989
3995
|
} | undefined;
|
|
3990
|
-
}, undefined
|
|
3996
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
3997
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
3998
|
+
}, undefined>>];
|
|
3991
3999
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
3992
4000
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3993
4001
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -849,7 +849,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
849
849
|
configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
850
850
|
floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
851
851
|
} | undefined;
|
|
852
|
-
}, undefined
|
|
852
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
853
|
+
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
854
|
+
}, undefined>>];
|
|
853
855
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
854
856
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
855
857
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
|
|
@@ -1261,7 +1263,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1261
1263
|
configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
1262
1264
|
floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
1263
1265
|
} | undefined;
|
|
1264
|
-
}, undefined
|
|
1266
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
1267
|
+
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
1268
|
+
}, undefined>>];
|
|
1265
1269
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
1266
1270
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
1267
1271
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -2528,7 +2532,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2528
2532
|
configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
2529
2533
|
floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
2530
2534
|
} | undefined;
|
|
2531
|
-
}, undefined
|
|
2535
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2536
|
+
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
2537
|
+
}, undefined>>];
|
|
2532
2538
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
2533
2539
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
2534
2540
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
|
|
@@ -2940,7 +2946,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2940
2946
|
configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
2941
2947
|
floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
2942
2948
|
} | undefined;
|
|
2943
|
-
}, undefined
|
|
2949
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2950
|
+
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
2951
|
+
}, undefined>>];
|
|
2944
2952
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
2945
2953
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
2946
2954
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -247,7 +247,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
247
247
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
248
248
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
249
249
|
} | undefined;
|
|
250
|
-
}, undefined
|
|
250
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
251
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
252
|
+
}, undefined>>];
|
|
251
253
|
sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
|
|
252
254
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
253
255
|
}, import("@atlaskit/editor-plugins/card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -1172,7 +1174,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
1172
1174
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
1173
1175
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
1174
1176
|
} | undefined;
|
|
1175
|
-
}, undefined
|
|
1177
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
1178
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
1179
|
+
}, undefined>>];
|
|
1176
1180
|
sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
|
|
1177
1181
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
1178
1182
|
}, import("@atlaskit/editor-plugins/card").CardPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"layout", {
|
|
@@ -3592,7 +3596,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3592
3596
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
3593
3597
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
3594
3598
|
} | undefined;
|
|
3595
|
-
}, undefined
|
|
3599
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
3600
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
3601
|
+
}, undefined>>];
|
|
3596
3602
|
sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
|
|
3597
3603
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3598
3604
|
}, import("@atlaskit/editor-plugins/card").CardPluginOptions>>];
|
|
@@ -4004,7 +4010,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4004
4010
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
4005
4011
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
4006
4012
|
} | undefined;
|
|
4007
|
-
}, undefined
|
|
4013
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
4014
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
4015
|
+
}, undefined>>];
|
|
4008
4016
|
sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
|
|
4009
4017
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
4010
4018
|
}, import("@atlaskit/editor-plugins/card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -233,7 +233,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
233
233
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
234
234
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
235
235
|
} | undefined;
|
|
236
|
-
}, undefined
|
|
236
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
|
|
237
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
238
|
+
}, undefined>>];
|
|
237
239
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
238
240
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
239
241
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -1158,7 +1160,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
1158
1160
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
1159
1161
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
1160
1162
|
} | undefined;
|
|
1161
|
-
}, undefined
|
|
1163
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
|
|
1164
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
1165
|
+
}, undefined>>];
|
|
1162
1166
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
1163
1167
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
1164
1168
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"layout", {
|
|
@@ -3578,7 +3582,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3578
3582
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
3579
3583
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
3580
3584
|
} | undefined;
|
|
3581
|
-
}, undefined
|
|
3585
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
|
|
3586
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
3587
|
+
}, undefined>>];
|
|
3582
3588
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
3583
3589
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3584
3590
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
|
|
@@ -3990,7 +3996,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3990
3996
|
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
3991
3997
|
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
3992
3998
|
} | undefined;
|
|
3993
|
-
}, undefined
|
|
3999
|
+
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
|
|
4000
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
4001
|
+
}, undefined>>];
|
|
3994
4002
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
3995
4003
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3996
4004
|
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export type { AddonActions, AddonCommonProps, AddonConfiguration, AddonProps, RenderOnClickHandler, } from './types';
|
|
2
|
-
export { default as Addon } from './DropdownItem';
|
|
3
2
|
export { default as Dropdown } from './Dropdown';
|
|
4
3
|
export { default as ClickAreaInline } from './ClickAreaInline';
|
|
5
4
|
export { default as ClickAreaBlock } from './ClickAreaBlock';
|
|
@@ -5,7 +5,7 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
5
5
|
colorMode?: "light" | "dark" | undefined;
|
|
6
6
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
7
|
viewMode?: "view" | "edit" | undefined;
|
|
8
|
-
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "id" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "
|
|
8
|
+
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "id" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "key" | "name" | "width" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "value" | "list" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "hidden" | keyof {
|
|
9
9
|
theme?: any;
|
|
10
10
|
colorMode?: "light" | "dark" | undefined;
|
|
11
11
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|