@atlaskit/editor-core 189.4.10 → 189.4.15
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 +15 -0
- package/dist/cjs/composable-editor/editor-internal.js +3 -3
- package/dist/cjs/composable-editor/editor.js +202 -3
- package/dist/cjs/i18n/cs.js +1 -3
- package/dist/cjs/i18n/da.js +1 -3
- package/dist/cjs/i18n/de.js +1 -3
- package/dist/cjs/i18n/en.js +1 -3
- package/dist/cjs/i18n/en_GB.js +1 -3
- package/dist/cjs/i18n/en_ZZ.js +1 -3
- package/dist/cjs/i18n/es.js +1 -3
- package/dist/cjs/i18n/fi.js +1 -3
- package/dist/cjs/i18n/fr.js +1 -3
- package/dist/cjs/i18n/hu.js +1 -3
- package/dist/cjs/i18n/it.js +1 -3
- package/dist/cjs/i18n/ja.js +1 -3
- package/dist/cjs/i18n/ko.js +1 -3
- package/dist/cjs/i18n/nb.js +1 -3
- package/dist/cjs/i18n/nl.js +1 -3
- package/dist/cjs/i18n/pl.js +1 -3
- package/dist/cjs/i18n/pt_BR.js +1 -3
- package/dist/cjs/i18n/ru.js +1 -3
- package/dist/cjs/i18n/sv.js +1 -3
- package/dist/cjs/i18n/th.js +1 -3
- package/dist/cjs/i18n/tr.js +1 -3
- package/dist/cjs/i18n/uk.js +1 -3
- package/dist/cjs/i18n/vi.js +1 -3
- package/dist/cjs/i18n/zh.js +1 -3
- package/dist/cjs/i18n/zh_TW.js +1 -3
- package/dist/cjs/plugins/index.js +1 -15
- package/dist/cjs/plugins/paste/pm-plugins/main.js +1 -2
- package/dist/cjs/presets/default.js +2 -2
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +4 -4
- package/dist/es2019/composable-editor/editor.js +208 -4
- package/dist/es2019/i18n/cs.js +1 -3
- package/dist/es2019/i18n/da.js +1 -3
- package/dist/es2019/i18n/de.js +1 -3
- package/dist/es2019/i18n/en.js +1 -3
- package/dist/es2019/i18n/en_GB.js +1 -3
- package/dist/es2019/i18n/en_ZZ.js +1 -3
- package/dist/es2019/i18n/es.js +1 -3
- package/dist/es2019/i18n/fi.js +1 -3
- package/dist/es2019/i18n/fr.js +1 -3
- package/dist/es2019/i18n/hu.js +1 -3
- package/dist/es2019/i18n/it.js +1 -3
- package/dist/es2019/i18n/ja.js +1 -3
- package/dist/es2019/i18n/ko.js +1 -3
- package/dist/es2019/i18n/nb.js +1 -3
- package/dist/es2019/i18n/nl.js +1 -3
- package/dist/es2019/i18n/pl.js +1 -3
- package/dist/es2019/i18n/pt_BR.js +1 -3
- package/dist/es2019/i18n/ru.js +1 -3
- package/dist/es2019/i18n/sv.js +1 -3
- package/dist/es2019/i18n/th.js +1 -3
- package/dist/es2019/i18n/tr.js +1 -3
- package/dist/es2019/i18n/uk.js +1 -3
- package/dist/es2019/i18n/vi.js +1 -3
- package/dist/es2019/i18n/zh.js +1 -3
- package/dist/es2019/i18n/zh_TW.js +1 -3
- package/dist/es2019/plugins/index.js +1 -3
- package/dist/es2019/plugins/paste/pm-plugins/main.js +1 -2
- package/dist/es2019/presets/default.js +2 -2
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +3 -3
- package/dist/esm/composable-editor/editor.js +203 -4
- package/dist/esm/i18n/cs.js +1 -3
- package/dist/esm/i18n/da.js +1 -3
- package/dist/esm/i18n/de.js +1 -3
- package/dist/esm/i18n/en.js +1 -3
- package/dist/esm/i18n/en_GB.js +1 -3
- package/dist/esm/i18n/en_ZZ.js +1 -3
- package/dist/esm/i18n/es.js +1 -3
- package/dist/esm/i18n/fi.js +1 -3
- package/dist/esm/i18n/fr.js +1 -3
- package/dist/esm/i18n/hu.js +1 -3
- package/dist/esm/i18n/it.js +1 -3
- package/dist/esm/i18n/ja.js +1 -3
- package/dist/esm/i18n/ko.js +1 -3
- package/dist/esm/i18n/nb.js +1 -3
- package/dist/esm/i18n/nl.js +1 -3
- package/dist/esm/i18n/pl.js +1 -3
- package/dist/esm/i18n/pt_BR.js +1 -3
- package/dist/esm/i18n/ru.js +1 -3
- package/dist/esm/i18n/sv.js +1 -3
- package/dist/esm/i18n/th.js +1 -3
- package/dist/esm/i18n/tr.js +1 -3
- package/dist/esm/i18n/uk.js +1 -3
- package/dist/esm/i18n/vi.js +1 -3
- package/dist/esm/i18n/zh.js +1 -3
- package/dist/esm/i18n/zh_TW.js +1 -3
- package/dist/esm/plugins/index.js +1 -3
- package/dist/esm/plugins/paste/pm-plugins/main.js +1 -2
- package/dist/esm/presets/default.js +2 -2
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types/i18n/cs.d.ts +0 -2
- package/dist/types/i18n/da.d.ts +0 -2
- package/dist/types/i18n/de.d.ts +0 -2
- package/dist/types/i18n/en.d.ts +0 -2
- package/dist/types/i18n/en_GB.d.ts +0 -2
- package/dist/types/i18n/en_ZZ.d.ts +0 -2
- package/dist/types/i18n/es.d.ts +0 -2
- package/dist/types/i18n/fi.d.ts +0 -2
- package/dist/types/i18n/fr.d.ts +0 -2
- package/dist/types/i18n/hu.d.ts +0 -2
- package/dist/types/i18n/it.d.ts +0 -2
- package/dist/types/i18n/ja.d.ts +0 -2
- package/dist/types/i18n/ko.d.ts +0 -2
- package/dist/types/i18n/nb.d.ts +0 -2
- package/dist/types/i18n/nl.d.ts +0 -2
- package/dist/types/i18n/pl.d.ts +0 -2
- package/dist/types/i18n/pt_BR.d.ts +0 -2
- package/dist/types/i18n/ru.d.ts +0 -2
- package/dist/types/i18n/sv.d.ts +0 -2
- package/dist/types/i18n/th.d.ts +0 -2
- package/dist/types/i18n/tr.d.ts +0 -2
- package/dist/types/i18n/uk.d.ts +0 -2
- package/dist/types/i18n/vi.d.ts +0 -2
- package/dist/types/i18n/zh.d.ts +0 -2
- package/dist/types/i18n/zh_TW.d.ts +0 -2
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -2
- package/dist/types-ts4.5/i18n/da.d.ts +0 -2
- package/dist/types-ts4.5/i18n/de.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -2
- package/dist/types-ts4.5/i18n/es.d.ts +0 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -2
- package/dist/types-ts4.5/i18n/it.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -2
- package/dist/types-ts4.5/i18n/th.d.ts +0 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/package.json +15 -7
- package/dist/cjs/plugins/clear-marks-on-change-to-empty-document/index.js +0 -35
- package/dist/cjs/plugins/code-bidi-warning/index.js +0 -22
- package/dist/cjs/plugins/code-bidi-warning/plugin-key.js +0 -8
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +0 -44
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -105
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -9
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/types.js +0 -5
- package/dist/es2019/plugins/clear-marks-on-change-to-empty-document/index.js +0 -26
- package/dist/es2019/plugins/code-bidi-warning/index.js +0 -15
- package/dist/es2019/plugins/code-bidi-warning/plugin-key.js +0 -2
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/main.js +0 -41
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -97
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
- package/dist/esm/plugins/clear-marks-on-change-to-empty-document/index.js +0 -28
- package/dist/esm/plugins/code-bidi-warning/index.js +0 -16
- package/dist/esm/plugins/code-bidi-warning/plugin-key.js +0 -2
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/main.js +0 -38
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -98
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
- package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
- package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import ReactDOM from 'react-dom';
|
|
6
|
-
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import CodeBidiWarning from '@atlaskit/code/bidi-warning';
|
|
8
|
-
import codeBidiWarningDecorator from '@atlaskit/code/bidi-warning-decorator';
|
|
9
|
-
import { pluginFactory } from '../../../utils/plugin-state-factory';
|
|
10
|
-
import { stepHasSlice } from '@atlaskit/editor-common/utils';
|
|
11
|
-
import { codeBidiWarningPluginKey } from '../plugin-key';
|
|
12
|
-
import reducer from './reducer';
|
|
13
|
-
var _pluginFactory = pluginFactory(codeBidiWarningPluginKey, reducer, {
|
|
14
|
-
onDocChanged: function onDocChanged(tr, pluginState) {
|
|
15
|
-
if (!tr.steps.find(stepHasSlice)) {
|
|
16
|
-
return pluginState;
|
|
17
|
-
}
|
|
18
|
-
var newBidiWarningsDecorationSet = createBidiWarningsDecorationSetFromDoc({
|
|
19
|
-
doc: tr.doc,
|
|
20
|
-
codeBidiWarningLabel: pluginState.codeBidiWarningLabel,
|
|
21
|
-
tooltipEnabled: pluginState.tooltipEnabled
|
|
22
|
-
});
|
|
23
|
-
return _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
24
|
-
decorationSet: newBidiWarningsDecorationSet
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}),
|
|
28
|
-
createPluginState = _pluginFactory.createPluginState,
|
|
29
|
-
getPluginState = _pluginFactory.getPluginState;
|
|
30
|
-
export { createPluginState, getPluginState };
|
|
31
|
-
export function createBidiWarningsDecorationSetFromDoc(_ref) {
|
|
32
|
-
var doc = _ref.doc,
|
|
33
|
-
codeBidiWarningLabel = _ref.codeBidiWarningLabel,
|
|
34
|
-
tooltipEnabled = _ref.tooltipEnabled;
|
|
35
|
-
var bidiCharactersAndTheirPositions = [];
|
|
36
|
-
doc.descendants(function (node, pos) {
|
|
37
|
-
var isTextWithCodeMark = node.type.name === 'text' && node.marks && node.marks.some(function (mark) {
|
|
38
|
-
return mark.type.name === 'code';
|
|
39
|
-
});
|
|
40
|
-
if (isTextWithCodeMark) {
|
|
41
|
-
codeBidiWarningDecorator(node.textContent, function (_ref2) {
|
|
42
|
-
var bidiCharacter = _ref2.bidiCharacter,
|
|
43
|
-
index = _ref2.index;
|
|
44
|
-
bidiCharactersAndTheirPositions.push({
|
|
45
|
-
position: pos + index,
|
|
46
|
-
bidiCharacter: bidiCharacter
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
var isCodeBlock = node.type.name === 'codeBlock';
|
|
52
|
-
if (isCodeBlock) {
|
|
53
|
-
codeBidiWarningDecorator(node.textContent, function (_ref3) {
|
|
54
|
-
var bidiCharacter = _ref3.bidiCharacter,
|
|
55
|
-
index = _ref3.index;
|
|
56
|
-
bidiCharactersAndTheirPositions.push({
|
|
57
|
-
position: pos + index + 1,
|
|
58
|
-
bidiCharacter: bidiCharacter
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
// Bidi characters are not expected to commonly appear in code snippets, so recreating the decoration set
|
|
65
|
-
// for documents rather than reusing existing decorations seems a reasonable performance/complexity tradeoff.
|
|
66
|
-
|
|
67
|
-
if (bidiCharactersAndTheirPositions.length === 0) {
|
|
68
|
-
return DecorationSet.empty;
|
|
69
|
-
}
|
|
70
|
-
var newBidiWarningsDecorationSet = DecorationSet.create(doc, bidiCharactersAndTheirPositions.map(function (_ref4) {
|
|
71
|
-
var position = _ref4.position,
|
|
72
|
-
bidiCharacter = _ref4.bidiCharacter;
|
|
73
|
-
return Decoration.widget(position, function () {
|
|
74
|
-
return renderDOM({
|
|
75
|
-
bidiCharacter: bidiCharacter,
|
|
76
|
-
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
77
|
-
tooltipEnabled: tooltipEnabled
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
}));
|
|
81
|
-
return newBidiWarningsDecorationSet;
|
|
82
|
-
}
|
|
83
|
-
function renderDOM(_ref5) {
|
|
84
|
-
var bidiCharacter = _ref5.bidiCharacter,
|
|
85
|
-
codeBidiWarningLabel = _ref5.codeBidiWarningLabel,
|
|
86
|
-
tooltipEnabled = _ref5.tooltipEnabled;
|
|
87
|
-
var element = document.createElement('span');
|
|
88
|
-
|
|
89
|
-
// Note: we use this pattern elsewhere (see highlighting code block, and drop cursor widget decoration)
|
|
90
|
-
// we should investigate if there is a memory leak with such usage.
|
|
91
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(CodeBidiWarning, {
|
|
92
|
-
bidiCharacter: bidiCharacter,
|
|
93
|
-
skipChildren: true,
|
|
94
|
-
label: codeBidiWarningLabel,
|
|
95
|
-
tooltipEnabled: tooltipEnabled
|
|
96
|
-
}), element);
|
|
97
|
-
return element;
|
|
98
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare const pluginKey: PluginKey<any>;
|
|
5
|
-
export declare function createPlugin(): SafePlugin;
|
|
6
|
-
declare const clearMarksOnChangeToEmptyDocumentPlugin: NextEditorPlugin<'clearMarksOnEmptyDoc'>;
|
|
7
|
-
export default clearMarksOnChangeToEmptyDocumentPlugin;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, EditorProps } from '../../types';
|
|
2
|
-
type Config = {
|
|
3
|
-
appearance: EditorProps['appearance'];
|
|
4
|
-
};
|
|
5
|
-
declare const codeBidiWarning: NextEditorPlugin<'codeBidiWarning', {
|
|
6
|
-
pluginConfiguration: Config;
|
|
7
|
-
}>;
|
|
8
|
-
export default codeBidiWarning;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { EditorProps, PMPluginFactoryParams } from '../../../types';
|
|
3
|
-
export declare const createPlugin: ({ dispatch, getIntl }: PMPluginFactoryParams, { appearance }: {
|
|
4
|
-
appearance: EditorProps['appearance'];
|
|
5
|
-
}) => SafePlugin<import("./types").CodeBidiWarningPluginState>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>, getPluginState: (state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState;
|
|
4
|
-
export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, }: {
|
|
5
|
-
doc: PmNode;
|
|
6
|
-
codeBidiWarningLabel: string;
|
|
7
|
-
tooltipEnabled: boolean;
|
|
8
|
-
}): DecorationSet;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare const pluginKey: PluginKey<any>;
|
|
5
|
-
export declare function createPlugin(): SafePlugin;
|
|
6
|
-
declare const clearMarksOnChangeToEmptyDocumentPlugin: NextEditorPlugin<'clearMarksOnEmptyDoc'>;
|
|
7
|
-
export default clearMarksOnChangeToEmptyDocumentPlugin;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, EditorProps } from '../../types';
|
|
2
|
-
type Config = {
|
|
3
|
-
appearance: EditorProps['appearance'];
|
|
4
|
-
};
|
|
5
|
-
declare const codeBidiWarning: NextEditorPlugin<'codeBidiWarning', {
|
|
6
|
-
pluginConfiguration: Config;
|
|
7
|
-
}>;
|
|
8
|
-
export default codeBidiWarning;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { EditorProps, PMPluginFactoryParams } from '../../../types';
|
|
3
|
-
export declare const createPlugin: ({ dispatch, getIntl }: PMPluginFactoryParams, { appearance }: {
|
|
4
|
-
appearance: EditorProps['appearance'];
|
|
5
|
-
}) => SafePlugin<import("./types").CodeBidiWarningPluginState>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>, getPluginState: (state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState;
|
|
4
|
-
export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, }: {
|
|
5
|
-
doc: PmNode;
|
|
6
|
-
codeBidiWarningLabel: string;
|
|
7
|
-
tooltipEnabled: boolean;
|
|
8
|
-
}): DecorationSet;
|