@atlaskit/editor-core 189.1.12 → 189.1.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 +13 -0
- package/dist/cjs/i18n/cs.js +0 -1
- package/dist/cjs/i18n/da.js +0 -1
- package/dist/cjs/i18n/de.js +0 -1
- package/dist/cjs/i18n/en.js +0 -1
- package/dist/cjs/i18n/en_GB.js +0 -1
- package/dist/cjs/i18n/en_ZZ.js +0 -1
- package/dist/cjs/i18n/es.js +0 -1
- package/dist/cjs/i18n/fi.js +0 -1
- package/dist/cjs/i18n/fr.js +0 -1
- package/dist/cjs/i18n/hu.js +0 -1
- package/dist/cjs/i18n/it.js +0 -1
- package/dist/cjs/i18n/ja.js +0 -1
- package/dist/cjs/i18n/ko.js +0 -1
- package/dist/cjs/i18n/nb.js +0 -1
- package/dist/cjs/i18n/nl.js +0 -1
- package/dist/cjs/i18n/pl.js +0 -1
- package/dist/cjs/i18n/pt_BR.js +0 -1
- package/dist/cjs/i18n/ru.js +0 -1
- package/dist/cjs/i18n/sv.js +0 -1
- package/dist/cjs/i18n/th.js +0 -1
- package/dist/cjs/i18n/tr.js +0 -1
- package/dist/cjs/i18n/uk.js +0 -1
- package/dist/cjs/i18n/vi.js +0 -1
- package/dist/cjs/i18n/zh.js +0 -1
- package/dist/cjs/i18n/zh_TW.js +0 -1
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/plugins/insert-block/index.js +6 -10
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -38
- package/dist/cjs/plugins/panel/actions.js +11 -11
- package/dist/cjs/plugins/panel/index.js +4 -4
- package/dist/cjs/plugins/panel/nodeviews/panel.js +5 -5
- package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +7 -7
- package/dist/cjs/plugins/panel/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/panel/toolbar.js +16 -16
- package/dist/cjs/plugins/panel/utils.js +1 -1
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/ui/ContentStyles/index.js +7 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/i18n/cs.js +0 -1
- package/dist/es2019/i18n/da.js +0 -1
- package/dist/es2019/i18n/de.js +0 -1
- package/dist/es2019/i18n/en.js +0 -1
- package/dist/es2019/i18n/en_GB.js +0 -1
- package/dist/es2019/i18n/en_ZZ.js +0 -1
- package/dist/es2019/i18n/es.js +0 -1
- package/dist/es2019/i18n/fi.js +0 -1
- package/dist/es2019/i18n/fr.js +0 -1
- package/dist/es2019/i18n/hu.js +0 -1
- package/dist/es2019/i18n/it.js +0 -1
- package/dist/es2019/i18n/ja.js +0 -1
- package/dist/es2019/i18n/ko.js +0 -1
- package/dist/es2019/i18n/nb.js +0 -1
- package/dist/es2019/i18n/nl.js +0 -1
- package/dist/es2019/i18n/pl.js +0 -1
- package/dist/es2019/i18n/pt_BR.js +0 -1
- package/dist/es2019/i18n/ru.js +0 -1
- package/dist/es2019/i18n/sv.js +0 -1
- package/dist/es2019/i18n/th.js +0 -1
- package/dist/es2019/i18n/tr.js +0 -1
- package/dist/es2019/i18n/uk.js +0 -1
- package/dist/es2019/i18n/vi.js +0 -1
- package/dist/es2019/i18n/zh.js +0 -1
- package/dist/es2019/i18n/zh_TW.js +0 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/plugins/insert-block/index.js +5 -9
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
- package/dist/es2019/plugins/panel/actions.js +5 -5
- package/dist/es2019/plugins/panel/index.js +6 -6
- package/dist/es2019/plugins/panel/nodeviews/panel.js +5 -5
- package/dist/es2019/plugins/panel/pm-plugins/keymaps.js +2 -2
- package/dist/es2019/plugins/panel/pm-plugins/main.js +2 -2
- package/dist/es2019/plugins/panel/toolbar.js +12 -13
- package/dist/es2019/plugins/panel/utils.js +1 -1
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/ui/ContentStyles/index.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/i18n/cs.js +0 -1
- package/dist/esm/i18n/da.js +0 -1
- package/dist/esm/i18n/de.js +0 -1
- package/dist/esm/i18n/en.js +0 -1
- package/dist/esm/i18n/en_GB.js +0 -1
- package/dist/esm/i18n/en_ZZ.js +0 -1
- package/dist/esm/i18n/es.js +0 -1
- package/dist/esm/i18n/fi.js +0 -1
- package/dist/esm/i18n/fr.js +0 -1
- package/dist/esm/i18n/hu.js +0 -1
- package/dist/esm/i18n/it.js +0 -1
- package/dist/esm/i18n/ja.js +0 -1
- package/dist/esm/i18n/ko.js +0 -1
- package/dist/esm/i18n/nb.js +0 -1
- package/dist/esm/i18n/nl.js +0 -1
- package/dist/esm/i18n/pl.js +0 -1
- package/dist/esm/i18n/pt_BR.js +0 -1
- package/dist/esm/i18n/ru.js +0 -1
- package/dist/esm/i18n/sv.js +0 -1
- package/dist/esm/i18n/th.js +0 -1
- package/dist/esm/i18n/tr.js +0 -1
- package/dist/esm/i18n/uk.js +0 -1
- package/dist/esm/i18n/vi.js +0 -1
- package/dist/esm/i18n/zh.js +0 -1
- package/dist/esm/i18n/zh_TW.js +0 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/plugins/insert-block/index.js +5 -9
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -38
- package/dist/esm/plugins/panel/actions.js +5 -5
- package/dist/esm/plugins/panel/index.js +6 -6
- package/dist/esm/plugins/panel/nodeviews/panel.js +5 -5
- package/dist/esm/plugins/panel/pm-plugins/keymaps.js +2 -2
- package/dist/esm/plugins/panel/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/panel/toolbar.js +12 -13
- package/dist/esm/plugins/panel/utils.js +1 -1
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/ui/ContentStyles/index.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/i18n/cs.d.ts +0 -1
- package/dist/types/i18n/da.d.ts +0 -1
- package/dist/types/i18n/de.d.ts +0 -1
- package/dist/types/i18n/en.d.ts +0 -1
- package/dist/types/i18n/en_GB.d.ts +0 -1
- package/dist/types/i18n/en_ZZ.d.ts +0 -1
- package/dist/types/i18n/es.d.ts +0 -1
- package/dist/types/i18n/fi.d.ts +0 -1
- package/dist/types/i18n/fr.d.ts +0 -1
- package/dist/types/i18n/hu.d.ts +0 -1
- package/dist/types/i18n/it.d.ts +0 -1
- package/dist/types/i18n/ja.d.ts +0 -1
- package/dist/types/i18n/ko.d.ts +0 -1
- package/dist/types/i18n/nb.d.ts +0 -1
- package/dist/types/i18n/nl.d.ts +0 -1
- package/dist/types/i18n/pl.d.ts +0 -1
- package/dist/types/i18n/pt_BR.d.ts +0 -1
- package/dist/types/i18n/ru.d.ts +0 -1
- package/dist/types/i18n/sv.d.ts +0 -1
- package/dist/types/i18n/th.d.ts +0 -1
- package/dist/types/i18n/tr.d.ts +0 -1
- package/dist/types/i18n/uk.d.ts +0 -1
- package/dist/types/i18n/vi.d.ts +0 -1
- package/dist/types/i18n/zh.d.ts +0 -1
- package/dist/types/i18n/zh_TW.d.ts +0 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/insert-block/types.d.ts +3 -1
- package/dist/types/plugins/panel/actions.d.ts +2 -2
- package/dist/types/plugins/panel/index.d.ts +3 -3
- package/dist/types/plugins/panel/nodeviews/panel.d.ts +3 -3
- package/dist/types/plugins/panel/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/panel/toolbar.d.ts +6 -7
- package/dist/types/plugins/panel/types.d.ts +1 -1
- package/dist/types/plugins/panel/utils.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/{plugins/panel/styles.d.ts → ui/ContentStyles/panel.d.ts} +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -1
- package/dist/types-ts4.5/i18n/da.d.ts +0 -1
- package/dist/types-ts4.5/i18n/de.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -1
- package/dist/types-ts4.5/i18n/es.d.ts +0 -1
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -1
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -1
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -1
- package/dist/types-ts4.5/i18n/it.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -1
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -1
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -1
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -1
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -1
- package/dist/types-ts4.5/i18n/th.d.ts +0 -1
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -1
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -1
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -1
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -1
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
- package/dist/types-ts4.5/plugins/panel/actions.d.ts +2 -2
- package/dist/types-ts4.5/plugins/panel/index.d.ts +3 -3
- package/dist/types-ts4.5/plugins/panel/nodeviews/panel.d.ts +3 -3
- package/dist/types-ts4.5/plugins/panel/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +6 -7
- package/dist/types-ts4.5/plugins/panel/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/panel/utils.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types-ts4.5/{plugins/panel/styles.d.ts → ui/ContentStyles/panel.d.ts} +1 -1
- package/package.json +4 -3
- package/report.api.md +1 -6
- package/tmp/api-report-tmp.d.ts +1 -6
- package/dist/cjs/plugins/placeholder-text/actions.js +0 -35
- package/dist/cjs/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -107
- package/dist/cjs/plugins/placeholder-text/index.js +0 -20
- package/dist/cjs/plugins/placeholder-text/placeholder-text-nodeview.js +0 -89
- package/dist/cjs/plugins/placeholder-text/plugin-key.js +0 -8
- package/dist/cjs/plugins/placeholder-text/plugin.js +0 -267
- package/dist/cjs/plugins/placeholder-text/selection-utils.js +0 -14
- package/dist/cjs/plugins/placeholder-text/styles.js +0 -13
- package/dist/cjs/plugins/placeholder-text/types.js +0 -5
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -86
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -15
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -54
- package/dist/cjs/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -89
- package/dist/es2019/plugins/placeholder-text/actions.js +0 -27
- package/dist/es2019/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -77
- package/dist/es2019/plugins/placeholder-text/index.js +0 -2
- package/dist/es2019/plugins/placeholder-text/placeholder-text-nodeview.js +0 -77
- package/dist/es2019/plugins/placeholder-text/plugin-key.js +0 -2
- package/dist/es2019/plugins/placeholder-text/plugin.js +0 -247
- package/dist/es2019/plugins/placeholder-text/selection-utils.js +0 -8
- package/dist/es2019/plugins/placeholder-text/styles.js +0 -52
- package/dist/es2019/plugins/placeholder-text/types.js +0 -1
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -45
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -15
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -41
- package/dist/es2019/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -60
- package/dist/esm/plugins/placeholder-text/actions.js +0 -29
- package/dist/esm/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -100
- package/dist/esm/plugins/placeholder-text/index.js +0 -2
- package/dist/esm/plugins/placeholder-text/placeholder-text-nodeview.js +0 -82
- package/dist/esm/plugins/placeholder-text/plugin-key.js +0 -2
- package/dist/esm/plugins/placeholder-text/plugin.js +0 -259
- package/dist/esm/plugins/placeholder-text/selection-utils.js +0 -8
- package/dist/esm/plugins/placeholder-text/styles.js +0 -6
- package/dist/esm/plugins/placeholder-text/types.js +0 -1
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -63
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -8
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -48
- package/dist/esm/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -79
- package/dist/types/plugins/placeholder-text/actions.d.ts +0 -4
- package/dist/types/plugins/placeholder-text/fake-text-cursor/cursor.d.ts +0 -30
- package/dist/types/plugins/placeholder-text/index.d.ts +0 -3
- package/dist/types/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
- package/dist/types/plugins/placeholder-text/plugin-key.d.ts +0 -3
- package/dist/types/plugins/placeholder-text/plugin.d.ts +0 -7
- package/dist/types/plugins/placeholder-text/selection-utils.d.ts +0 -2
- package/dist/types/plugins/placeholder-text/styles.d.ts +0 -1
- package/dist/types/plugins/placeholder-text/types.d.ts +0 -18
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/index.d.ts +0 -28
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/styles.d.ts +0 -1
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/utils.d.ts +0 -13
- package/dist/types/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
- package/dist/types-ts4.5/plugins/placeholder-text/actions.d.ts +0 -4
- package/dist/types-ts4.5/plugins/placeholder-text/fake-text-cursor/cursor.d.ts +0 -30
- package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
- package/dist/types-ts4.5/plugins/placeholder-text/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/placeholder-text/plugin.d.ts +0 -7
- package/dist/types-ts4.5/plugins/placeholder-text/selection-utils.d.ts +0 -2
- package/dist/types-ts4.5/plugins/placeholder-text/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/placeholder-text/types.d.ts +0 -18
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/index.d.ts +0 -28
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/utils.d.ts +0 -13
- package/dist/types-ts4.5/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
- /package/dist/cjs/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
- /package/dist/es2019/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
- /package/dist/esm/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
3
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
-
export interface PlaceholderTextOptions {
|
|
5
|
-
allowInserting?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface PlaceholderTextPluginState {
|
|
8
|
-
showInsertPanelAt: number | null;
|
|
9
|
-
allowInserting: boolean;
|
|
10
|
-
}
|
|
11
|
-
export type PlaceholderTextPlugin = NextEditorPlugin<'placeholderText', {
|
|
12
|
-
dependencies: [
|
|
13
|
-
OptionalPlugin<typeof analyticsPlugin>,
|
|
14
|
-
OptionalPlugin<TypeAheadPlugin>
|
|
15
|
-
];
|
|
16
|
-
pluginConfiguration: PlaceholderTextOptions;
|
|
17
|
-
sharedState: PlaceholderTextPluginState | undefined;
|
|
18
|
-
}>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { PureComponent } from 'react';
|
|
4
|
-
export type Coordinates = {
|
|
5
|
-
left?: number;
|
|
6
|
-
right?: number;
|
|
7
|
-
top?: number;
|
|
8
|
-
bottom?: number;
|
|
9
|
-
};
|
|
10
|
-
export type PositionOffset = Coordinates;
|
|
11
|
-
export interface Props {
|
|
12
|
-
zIndex?: number;
|
|
13
|
-
className?: string;
|
|
14
|
-
target?: HTMLElement;
|
|
15
|
-
popupsMountPoint?: HTMLElement;
|
|
16
|
-
popupsBoundariesElement?: HTMLElement;
|
|
17
|
-
offset?: number[];
|
|
18
|
-
fitWidth?: number;
|
|
19
|
-
fitHeight?: number;
|
|
20
|
-
absoluteOffset?: PositionOffset;
|
|
21
|
-
alignX?: 'left' | 'center' | 'right';
|
|
22
|
-
alignY?: 'bottom' | 'top';
|
|
23
|
-
onPositionCalculated?: (position: Coordinates) => any;
|
|
24
|
-
}
|
|
25
|
-
export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode, } from './utils';
|
|
26
|
-
export default class FloatingToolbar extends PureComponent<Props, any> {
|
|
27
|
-
render(): jsx.JSX.Element | null;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const container: (height?: number) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const getOffsetParent: (editorViewDom: HTMLElement, popupsMountPoint?: HTMLElement) => HTMLElement;
|
|
2
|
-
export declare const getNearestNonTextNode: (node: Node) => HTMLElement;
|
|
3
|
-
export declare const handlePositionCalculatedWith: (offsetParent: HTMLElement, node: Node, getCurrentFixedCoordinates: () => any) => (position: {
|
|
4
|
-
top?: number;
|
|
5
|
-
left?: number;
|
|
6
|
-
bottom?: number;
|
|
7
|
-
right?: number;
|
|
8
|
-
}) => {
|
|
9
|
-
top?: number | undefined;
|
|
10
|
-
left?: number | undefined;
|
|
11
|
-
bottom?: number | undefined;
|
|
12
|
-
right?: number | undefined;
|
|
13
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { Coordinates } from '../FloatingToolbar';
|
|
4
|
-
export declare const messages: {
|
|
5
|
-
placeholderTextPlaceholder: {
|
|
6
|
-
id: string;
|
|
7
|
-
defaultMessage: string;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export interface Props {
|
|
12
|
-
getNodeFromPos: (pos: number) => Node;
|
|
13
|
-
getFixedCoordinatesFromPos: (pos: number) => Coordinates;
|
|
14
|
-
insertPlaceholder: (value: string) => void;
|
|
15
|
-
hidePlaceholderFloatingToolbar: () => void;
|
|
16
|
-
setFocusInEditor: () => void;
|
|
17
|
-
showInsertPanelAt: number;
|
|
18
|
-
editorViewDOM: HTMLElement;
|
|
19
|
-
popupsMountPoint?: HTMLElement;
|
|
20
|
-
popupsBoundariesElement?: HTMLElement;
|
|
21
|
-
}
|
|
22
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
23
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const showPlaceholderFloatingToolbar: (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
|
|
3
|
-
export declare const insertPlaceholderTextAtSelection: (value: string) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
|
|
4
|
-
export declare const hidePlaceholderFloatingToolbar: (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { EditorState, SelectionBookmark, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { Node, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
7
|
-
export declare class FakeTextCursorBookmark {
|
|
8
|
-
pos: undefined | number;
|
|
9
|
-
visible: boolean;
|
|
10
|
-
constructor(pos: number);
|
|
11
|
-
map(mapping: Mappable): FakeTextCursorBookmark;
|
|
12
|
-
resolve(doc: Node): Selection;
|
|
13
|
-
}
|
|
14
|
-
export declare class FakeTextCursorSelection extends Selection {
|
|
15
|
-
constructor($pos: ResolvedPos);
|
|
16
|
-
map(doc: Node, mapping: Mappable): Selection;
|
|
17
|
-
static content(): Slice;
|
|
18
|
-
eq(other: Selection): boolean;
|
|
19
|
-
toJSON(): {
|
|
20
|
-
type: string;
|
|
21
|
-
pos: number;
|
|
22
|
-
};
|
|
23
|
-
static fromJSON(doc: Node, json: {
|
|
24
|
-
pos: number;
|
|
25
|
-
}): Selection;
|
|
26
|
-
getBookmark(): SelectionBookmark;
|
|
27
|
-
}
|
|
28
|
-
export declare const addFakeTextCursor: (state: EditorState, dispatch: (tr: Transaction) => void) => void;
|
|
29
|
-
export declare const removeFakeTextCursor: (state: EditorState, dispatch: (tr: Transaction) => void) => void;
|
|
30
|
-
export declare const drawFakeTextCursor: (state: EditorState) => DecorationSet | null;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { NodeView, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { getPosHandler } from '@atlaskit/editor-common/react-node-view';
|
|
4
|
-
type PmMutationRecord = MutationRecord | {
|
|
5
|
-
type: 'selection';
|
|
6
|
-
target: Element;
|
|
7
|
-
};
|
|
8
|
-
export declare class PlaceholderTextNodeView implements NodeView {
|
|
9
|
-
private readonly node;
|
|
10
|
-
private readonly view;
|
|
11
|
-
private readonly getPos;
|
|
12
|
-
readonly dom: Node;
|
|
13
|
-
constructor(node: PMNode, view: EditorView, getPos: getPosHandler);
|
|
14
|
-
stopEvent(e: Event): boolean;
|
|
15
|
-
ignoreMutation(record: PmMutationRecord): boolean;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { PlaceholderTextOptions, PlaceholderTextPlugin, PlaceholderTextPluginState } from './types';
|
|
5
|
-
export declare function createPlugin(dispatch: Dispatch<PlaceholderTextPluginState>, options: PlaceholderTextOptions, api: ExtractInjectionAPI<PlaceholderTextPlugin> | undefined): SafePlugin | undefined;
|
|
6
|
-
declare const placeholderTextPlugin: PlaceholderTextPlugin;
|
|
7
|
-
export default placeholderTextPlugin;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const placeholderTextStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
3
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
-
export interface PlaceholderTextOptions {
|
|
5
|
-
allowInserting?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface PlaceholderTextPluginState {
|
|
8
|
-
showInsertPanelAt: number | null;
|
|
9
|
-
allowInserting: boolean;
|
|
10
|
-
}
|
|
11
|
-
export type PlaceholderTextPlugin = NextEditorPlugin<'placeholderText', {
|
|
12
|
-
dependencies: [
|
|
13
|
-
OptionalPlugin<typeof analyticsPlugin>,
|
|
14
|
-
OptionalPlugin<TypeAheadPlugin>
|
|
15
|
-
];
|
|
16
|
-
pluginConfiguration: PlaceholderTextOptions;
|
|
17
|
-
sharedState: PlaceholderTextPluginState | undefined;
|
|
18
|
-
}>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { PureComponent } from 'react';
|
|
4
|
-
export type Coordinates = {
|
|
5
|
-
left?: number;
|
|
6
|
-
right?: number;
|
|
7
|
-
top?: number;
|
|
8
|
-
bottom?: number;
|
|
9
|
-
};
|
|
10
|
-
export type PositionOffset = Coordinates;
|
|
11
|
-
export interface Props {
|
|
12
|
-
zIndex?: number;
|
|
13
|
-
className?: string;
|
|
14
|
-
target?: HTMLElement;
|
|
15
|
-
popupsMountPoint?: HTMLElement;
|
|
16
|
-
popupsBoundariesElement?: HTMLElement;
|
|
17
|
-
offset?: number[];
|
|
18
|
-
fitWidth?: number;
|
|
19
|
-
fitHeight?: number;
|
|
20
|
-
absoluteOffset?: PositionOffset;
|
|
21
|
-
alignX?: 'left' | 'center' | 'right';
|
|
22
|
-
alignY?: 'bottom' | 'top';
|
|
23
|
-
onPositionCalculated?: (position: Coordinates) => any;
|
|
24
|
-
}
|
|
25
|
-
export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode, } from './utils';
|
|
26
|
-
export default class FloatingToolbar extends PureComponent<Props, any> {
|
|
27
|
-
render(): jsx.JSX.Element | null;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const container: (height?: number) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const getOffsetParent: (editorViewDom: HTMLElement, popupsMountPoint?: HTMLElement) => HTMLElement;
|
|
2
|
-
export declare const getNearestNonTextNode: (node: Node) => HTMLElement;
|
|
3
|
-
export declare const handlePositionCalculatedWith: (offsetParent: HTMLElement, node: Node, getCurrentFixedCoordinates: () => any) => (position: {
|
|
4
|
-
top?: number;
|
|
5
|
-
left?: number;
|
|
6
|
-
bottom?: number;
|
|
7
|
-
right?: number;
|
|
8
|
-
}) => {
|
|
9
|
-
top?: number | undefined;
|
|
10
|
-
left?: number | undefined;
|
|
11
|
-
bottom?: number | undefined;
|
|
12
|
-
right?: number | undefined;
|
|
13
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { Coordinates } from '../FloatingToolbar';
|
|
4
|
-
export declare const messages: {
|
|
5
|
-
placeholderTextPlaceholder: {
|
|
6
|
-
id: string;
|
|
7
|
-
defaultMessage: string;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export interface Props {
|
|
12
|
-
getNodeFromPos: (pos: number) => Node;
|
|
13
|
-
getFixedCoordinatesFromPos: (pos: number) => Coordinates;
|
|
14
|
-
insertPlaceholder: (value: string) => void;
|
|
15
|
-
hidePlaceholderFloatingToolbar: () => void;
|
|
16
|
-
setFocusInEditor: () => void;
|
|
17
|
-
showInsertPanelAt: number;
|
|
18
|
-
editorViewDOM: HTMLElement;
|
|
19
|
-
popupsMountPoint?: HTMLElement;
|
|
20
|
-
popupsBoundariesElement?: HTMLElement;
|
|
21
|
-
}
|
|
22
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
23
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|