@atlaskit/editor-core 187.31.3 → 187.31.6
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/dist/cjs/create-editor/ReactEditorViewInternal.js +2 -3
- package/dist/cjs/create-editor/create-plugins-list.js +2 -28
- package/dist/cjs/create-editor/create-preset.js +36 -0
- package/dist/cjs/labs/next/presets/default.js +2 -2
- package/dist/cjs/labs/next/presets/useUniversalPreset.js +3 -3
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/plugins/media/toolbar/index.js +20 -6
- package/dist/cjs/plugins/media/ui/PixelEntry/index.js +9 -2
- package/dist/cjs/plugins/media/ui/PixelEntry/messages.js +5 -0
- package/dist/cjs/plugins/media/ui/PixelEntry/styles.js +5 -3
- package/dist/cjs/plugins/selection/gap-cursor/utils.js +1 -2
- package/dist/cjs/ui/ContentStyles/index.js +20 -21
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +2 -3
- package/dist/es2019/create-editor/create-plugins-list.js +2 -23
- package/dist/es2019/create-editor/create-preset.js +25 -0
- package/dist/es2019/labs/next/presets/default.js +1 -1
- package/dist/es2019/labs/next/presets/useUniversalPreset.js +1 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/plugins/media/toolbar/index.js +23 -7
- package/dist/es2019/plugins/media/ui/PixelEntry/index.js +10 -1
- package/dist/es2019/plugins/media/ui/PixelEntry/messages.js +5 -0
- package/dist/es2019/plugins/media/ui/PixelEntry/styles.js +7 -0
- package/dist/es2019/plugins/selection/gap-cursor/utils.js +1 -2
- package/dist/es2019/ui/ContentStyles/index.js +1 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorViewInternal.js +2 -3
- package/dist/esm/create-editor/create-plugins-list.js +2 -27
- package/dist/esm/create-editor/create-preset.js +29 -0
- package/dist/esm/labs/next/presets/default.js +1 -1
- package/dist/esm/labs/next/presets/useUniversalPreset.js +1 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/plugins/media/toolbar/index.js +21 -7
- package/dist/esm/plugins/media/ui/PixelEntry/index.js +7 -1
- package/dist/esm/plugins/media/ui/PixelEntry/messages.js +5 -0
- package/dist/esm/plugins/media/ui/PixelEntry/styles.js +3 -2
- package/dist/esm/plugins/selection/gap-cursor/utils.js +1 -2
- package/dist/esm/ui/ContentStyles/index.js +1 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-plugins-list.d.ts +2 -3
- package/dist/types/create-editor/create-preset.d.ts +3 -0
- package/dist/types/plugins/base/plugin.d.ts +2 -2
- package/dist/types/plugins/breakout/index.d.ts +2 -2
- package/dist/types/plugins/extension/index.d.ts +8 -8
- package/dist/types/plugins/extension/nodeviews/extension.d.ts +3 -3
- package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/index.d.ts +2 -2
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/media/next-plugin-type.d.ts +12 -12
- package/dist/types/plugins/media/ui/PixelEntry/index.d.ts +5 -0
- package/dist/types/plugins/media/ui/PixelEntry/messages.d.ts +5 -0
- package/dist/types/plugins/media/ui/PixelEntry/styles.d.ts +1 -0
- package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +4 -4
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +2 -3
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +3 -0
- package/dist/types-ts4.5/plugins/base/plugin.d.ts +2 -2
- package/dist/types-ts4.5/plugins/breakout/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/extension/index.d.ts +8 -8
- package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +3 -3
- package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
- package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/media/next-plugin-type.d.ts +12 -12
- package/dist/types-ts4.5/plugins/media/ui/PixelEntry/index.d.ts +5 -0
- package/dist/types-ts4.5/plugins/media/ui/PixelEntry/messages.d.ts +5 -0
- package/dist/types-ts4.5/plugins/media/ui/PixelEntry/styles.d.ts +1 -0
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +4 -4
- package/package.json +7 -6
- package/report.api.md +12 -12
- package/tmp/api-report-tmp.d.ts +12 -12
- package/dist/cjs/plugins/unsupported-content/index.js +0 -87
- package/dist/cjs/plugins/unsupported-content/styles.js +0 -20
- package/dist/cjs/plugins/unsupported-content/unsupported-inline-node-view.js +0 -16
- package/dist/es2019/plugins/unsupported-content/index.js +0 -77
- package/dist/es2019/plugins/unsupported-content/styles.js +0 -27
- package/dist/es2019/plugins/unsupported-content/unsupported-inline-node-view.js +0 -7
- package/dist/esm/plugins/unsupported-content/index.js +0 -77
- package/dist/esm/plugins/unsupported-content/styles.js +0 -11
- package/dist/esm/plugins/unsupported-content/unsupported-inline-node-view.js +0 -7
- package/dist/types/plugins/unsupported-content/index.d.ts +0 -5
- package/dist/types/plugins/unsupported-content/styles.d.ts +0 -5
- package/dist/types/plugins/unsupported-content/unsupported-inline-node-view.d.ts +0 -11
- package/dist/types-ts4.5/plugins/unsupported-content/index.d.ts +0 -5
- package/dist/types-ts4.5/plugins/unsupported-content/styles.d.ts +0 -5
- package/dist/types-ts4.5/plugins/unsupported-content/unsupported-inline-node-view.d.ts +0 -11
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { confluenceUnsupportedBlock, confluenceUnsupportedInline, unsupportedBlock, unsupportedInline, unsupportedMark, unsupportedNodeAttribute } from '@atlaskit/adf-schema';
|
|
4
|
-
import { UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
5
|
-
import { UnsupportedInlineNodeView } from './unsupported-inline-node-view';
|
|
6
|
-
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
7
|
-
import { getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
|
|
8
|
-
export var pluginKey = new PluginKey('unsupportedContentPlugin');
|
|
9
|
-
var createPlugin = function createPlugin(pmPluginFactoryParams) {
|
|
10
|
-
var hasIntlContext = true;
|
|
11
|
-
var portalProviderAPI = pmPluginFactoryParams.portalProviderAPI,
|
|
12
|
-
eventDispatcher = pmPluginFactoryParams.eventDispatcher,
|
|
13
|
-
dispatchAnalyticsEvent = pmPluginFactoryParams.dispatchAnalyticsEvent;
|
|
14
|
-
return new SafePlugin({
|
|
15
|
-
key: pluginKey,
|
|
16
|
-
props: {
|
|
17
|
-
nodeViews: {
|
|
18
|
-
confluenceUnsupportedBlock: ReactNodeView.fromComponent(UnsupportedBlock, portalProviderAPI, eventDispatcher, {
|
|
19
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent
|
|
20
|
-
}, undefined, hasIntlContext),
|
|
21
|
-
confluenceUnsupportedInline: getInlineNodeViewProducer({
|
|
22
|
-
pmPluginFactoryParams: pmPluginFactoryParams,
|
|
23
|
-
Component: UnsupportedInlineNodeView,
|
|
24
|
-
extraComponentProps: {
|
|
25
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent
|
|
26
|
-
}
|
|
27
|
-
}),
|
|
28
|
-
unsupportedBlock: ReactNodeView.fromComponent(UnsupportedBlock, portalProviderAPI, eventDispatcher, {
|
|
29
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent
|
|
30
|
-
}, undefined, hasIntlContext),
|
|
31
|
-
unsupportedInline: getInlineNodeViewProducer({
|
|
32
|
-
pmPluginFactoryParams: pmPluginFactoryParams,
|
|
33
|
-
Component: UnsupportedInlineNodeView,
|
|
34
|
-
extraComponentProps: {
|
|
35
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
var unsupportedContentPlugin = function unsupportedContentPlugin() {
|
|
43
|
-
return {
|
|
44
|
-
name: 'unsupportedContent',
|
|
45
|
-
marks: function marks() {
|
|
46
|
-
return [{
|
|
47
|
-
name: 'unsupportedMark',
|
|
48
|
-
mark: unsupportedMark
|
|
49
|
-
}, {
|
|
50
|
-
name: 'unsupportedNodeAttribute',
|
|
51
|
-
mark: unsupportedNodeAttribute
|
|
52
|
-
}];
|
|
53
|
-
},
|
|
54
|
-
nodes: function nodes() {
|
|
55
|
-
return [{
|
|
56
|
-
name: 'confluenceUnsupportedBlock',
|
|
57
|
-
node: confluenceUnsupportedBlock
|
|
58
|
-
}, {
|
|
59
|
-
name: 'confluenceUnsupportedInline',
|
|
60
|
-
node: confluenceUnsupportedInline
|
|
61
|
-
}, {
|
|
62
|
-
name: 'unsupportedBlock',
|
|
63
|
-
node: unsupportedBlock
|
|
64
|
-
}, {
|
|
65
|
-
name: 'unsupportedInline',
|
|
66
|
-
node: unsupportedInline
|
|
67
|
-
}];
|
|
68
|
-
},
|
|
69
|
-
pmPlugins: function pmPlugins() {
|
|
70
|
-
return [{
|
|
71
|
-
name: 'unsupportedContent',
|
|
72
|
-
plugin: createPlugin
|
|
73
|
-
}];
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export default unsupportedContentPlugin;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
export var UnsupportedSharedCssClassName = {
|
|
6
|
-
BLOCK_CONTAINER: 'unsupportedBlockView-content-wrap',
|
|
7
|
-
INLINE_CONTAINER: 'unsupportedInlineView-content-wrap'
|
|
8
|
-
};
|
|
9
|
-
var inlineUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.INLINE_CONTAINER, " > span:nth-of-type(2)");
|
|
10
|
-
var blockUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.BLOCK_CONTAINER, " > div");
|
|
11
|
-
export var unsupportedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ", ", " {\n cursor: pointer;\n }\n\n .", "", ",\n .", "", " {\n ", "\n }\n\n .danger {\n .", "", ",\n .", "", " {\n border: ", "px solid\n ", ";\n background-color: ", ";\n }\n }\n"])), blockUnsupportedSelector, inlineUnsupportedSelector, akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border]), akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
5
|
-
export var UnsupportedInlineNodeView = function UnsupportedInlineNodeView(props) {
|
|
6
|
-
return jsx(UnsupportedInline, props);
|
|
7
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
export declare const pluginKey: PluginKey<any>;
|
|
4
|
-
declare const unsupportedContentPlugin: NextEditorPlugin<'unsupportedContent'>;
|
|
5
|
-
export default unsupportedContentPlugin;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
6
|
-
export type Props = InlineNodeViewComponentProps & {
|
|
7
|
-
node?: PMNode;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const UnsupportedInlineNodeView: React.FC<Props>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
export declare const pluginKey: PluginKey<any>;
|
|
4
|
-
declare const unsupportedContentPlugin: NextEditorPlugin<'unsupportedContent'>;
|
|
5
|
-
export default unsupportedContentPlugin;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
6
|
-
export type Props = InlineNodeViewComponentProps & {
|
|
7
|
-
node?: PMNode;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const UnsupportedInlineNodeView: React.FC<Props>;
|