@atlaskit/editor-core 187.16.0 → 187.17.0
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 +16 -0
- package/dist/cjs/create-editor/feature-flags-from-props.js +23 -25
- package/dist/cjs/plugins/base/index.js +0 -8
- package/dist/cjs/plugins/better-type-history/index.js +34 -0
- package/dist/cjs/plugins/{base/pm-plugins/better-type-history.js → better-type-history/pm-plugins/main.js} +4 -5
- package/dist/cjs/plugins/better-type-history/pm-plugins/plugin-key.js +9 -0
- package/dist/cjs/plugins/index.js +7 -0
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +2 -2
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +4 -14
- package/dist/cjs/plugins/paste/pm-plugins/main.js +7 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/feature-flags-from-props.js +23 -25
- package/dist/es2019/plugins/base/index.js +0 -7
- package/dist/es2019/plugins/better-type-history/index.js +24 -0
- package/dist/es2019/plugins/{base/pm-plugins/better-type-history.js → better-type-history/pm-plugins/main.js} +1 -2
- package/dist/es2019/plugins/better-type-history/pm-plugins/plugin-key.js +2 -0
- package/dist/es2019/plugins/index.js +1 -0
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +2 -2
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +2 -14
- package/dist/es2019/plugins/paste/pm-plugins/main.js +7 -7
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/feature-flags-from-props.js +23 -25
- package/dist/esm/plugins/base/index.js +0 -8
- package/dist/esm/plugins/better-type-history/index.js +26 -0
- package/dist/esm/plugins/{base/pm-plugins/better-type-history.js → better-type-history/pm-plugins/main.js} +1 -2
- package/dist/esm/plugins/better-type-history/pm-plugins/plugin-key.js +2 -0
- package/dist/esm/plugins/index.js +1 -0
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +2 -2
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +3 -13
- package/dist/esm/plugins/paste/pm-plugins/main.js +7 -7
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/plugins/better-type-history/index.d.ts +13 -0
- package/dist/types/plugins/{base/pm-plugins/better-type-history.d.ts → better-type-history/pm-plugins/main.d.ts} +0 -2
- package/dist/types/plugins/better-type-history/pm-plugins/plugin-key.d.ts +2 -0
- package/dist/types/plugins/index.d.ts +1 -0
- package/dist/types/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +2 -7
- package/dist/types/plugins/paste/index.d.ts +4 -2
- package/dist/types-ts4.5/plugins/better-type-history/index.d.ts +13 -0
- package/dist/types-ts4.5/plugins/{base/pm-plugins/better-type-history.d.ts → better-type-history/pm-plugins/main.d.ts} +0 -2
- package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/plugin-key.d.ts +2 -0
- package/dist/types-ts4.5/plugins/index.d.ts +1 -0
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +2 -7
- package/dist/types-ts4.5/plugins/paste/index.d.ts +4 -2
- package/package.json +1 -1
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/resizable-media-single-messages.js +0 -15
- package/dist/cjs/ui/Resizer/ResizeLabel/index.js +0 -20
- package/dist/cjs/ui/Resizer/ResizeLabel/styles.js +0 -17
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/resizable-media-single-messages.js +0 -8
- package/dist/es2019/ui/Resizer/ResizeLabel/index.js +0 -12
- package/dist/es2019/ui/Resizer/ResizeLabel/styles.js +0 -25
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/resizable-media-single-messages.js +0 -8
- package/dist/esm/ui/Resizer/ResizeLabel/index.js +0 -12
- package/dist/esm/ui/Resizer/ResizeLabel/styles.js +0 -7
- package/dist/types/plugins/media/ui/ResizableMediaSingle/resizable-media-single-messages.d.ts +0 -7
- package/dist/types/ui/Resizer/ResizeLabel/index.d.ts +0 -8
- package/dist/types/ui/Resizer/ResizeLabel/styles.d.ts +0 -3
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/resizable-media-single-messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/Resizer/ResizeLabel/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/Resizer/ResizeLabel/styles.d.ts +0 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
3
3
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
4
|
import type { cardPlugin } from '@atlaskit/editor-plugin-card';
|
|
5
|
+
import type betterTypeHistoryPlugin from '../better-type-history';
|
|
5
6
|
export type PastePluginOptions = {
|
|
6
7
|
cardOptions?: CardOptions;
|
|
7
8
|
sanitizePrivateContent?: boolean;
|
|
@@ -10,6 +11,7 @@ declare const pastePlugin: NextEditorPlugin<'paste', {
|
|
|
10
11
|
pluginConfiguration: PastePluginOptions;
|
|
11
12
|
dependencies: [
|
|
12
13
|
typeof featureFlagsPlugin,
|
|
14
|
+
typeof betterTypeHistoryPlugin,
|
|
13
15
|
OptionalPlugin<typeof cardPlugin>
|
|
14
16
|
];
|
|
15
17
|
}>;
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -30,7 +30,7 @@ import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit
|
|
|
30
30
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
31
31
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
32
32
|
import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
|
|
33
|
-
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
33
|
+
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
34
34
|
import { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
35
35
|
import { clearEditorContent } from '@atlaskit/editor-common/commands';
|
|
36
36
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit
|
|
|
19
19
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
20
20
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
21
21
|
import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
|
|
22
|
-
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
22
|
+
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
23
23
|
import { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
24
24
|
import { clearEditorContent } from '@atlaskit/editor-common/commands';
|
|
25
25
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.messages = void 0;
|
|
7
|
-
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
-
fullWidthImage: {
|
|
10
|
-
id: 'fabric.editor.image.fullWidthImage',
|
|
11
|
-
defaultMessage: 'Full width image',
|
|
12
|
-
description: 'The image has reached its full width'
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
exports.messages = messages;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _styles = require("./styles");
|
|
9
|
-
/** @jsx jsx */
|
|
10
|
-
|
|
11
|
-
var ResizeLabelBreakoutWidth = 110;
|
|
12
|
-
var ResizeLabel = function ResizeLabel(props) {
|
|
13
|
-
return (0, _react.jsx)("div", {
|
|
14
|
-
css: _styles.wrapper
|
|
15
|
-
}, (0, _react.jsx)("span", {
|
|
16
|
-
css: [_styles.text, props.containerWidth < ResizeLabelBreakoutWidth && _styles.smallText]
|
|
17
|
-
}, props.label));
|
|
18
|
-
};
|
|
19
|
-
var _default = ResizeLabel;
|
|
20
|
-
exports.default = _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.wrapper = exports.text = exports.smallText = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
12
|
-
var wrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", ";\n width: 100%;\n text-align: center;\n position: absolute;\n transform: translateY(-125%);\n top: 0;\n"])), "var(--ds-font-size-100, 14px)");
|
|
13
|
-
exports.wrapper = wrapper;
|
|
14
|
-
var text = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n border-radius: 6px;\n min-width: 75px;\n background-color: ", ";\n color: ", ";\n padding: ", " ", ";\n letter-spacing: 0.5px;\n"])), "var(--ds-text-accent-blue, ".concat(_colors.B300, ")"), "var(--ds-text-inverse, white)", "var(--ds-space-050, 4px)", "var(--ds-space-200, 16px)");
|
|
15
|
-
exports.text = text;
|
|
16
|
-
var smallText = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n letter-spacing: -0.5px;\n font-size: ", ";\n min-width: 27px;\n padding: ", " ", ";\n"])), "var(--ds-font-size-050, 8px)", "var(--ds-space-0, 0px)", "var(--ds-space-025, 2px)");
|
|
17
|
-
exports.smallText = smallText;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { wrapper, text, smallText } from './styles';
|
|
4
|
-
const ResizeLabelBreakoutWidth = 110;
|
|
5
|
-
const ResizeLabel = props => {
|
|
6
|
-
return jsx("div", {
|
|
7
|
-
css: wrapper
|
|
8
|
-
}, jsx("span", {
|
|
9
|
-
css: [text, props.containerWidth < ResizeLabelBreakoutWidth && smallText]
|
|
10
|
-
}, props.label));
|
|
11
|
-
};
|
|
12
|
-
export default ResizeLabel;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { css } from '@emotion/react';
|
|
2
|
-
import { B300 } from '@atlaskit/theme/colors';
|
|
3
|
-
export const wrapper = css`
|
|
4
|
-
font-size: ${"var(--ds-font-size-100, 14px)"};
|
|
5
|
-
width: 100%;
|
|
6
|
-
text-align: center;
|
|
7
|
-
position: absolute;
|
|
8
|
-
transform: translateY(-125%);
|
|
9
|
-
top: 0;
|
|
10
|
-
`;
|
|
11
|
-
export const text = css`
|
|
12
|
-
display: inline-block;
|
|
13
|
-
border-radius: 6px;
|
|
14
|
-
min-width: 75px;
|
|
15
|
-
background-color: ${`var(--ds-text-accent-blue, ${B300})`};
|
|
16
|
-
color: ${"var(--ds-text-inverse, white)"};
|
|
17
|
-
padding: ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-200, 16px)"};
|
|
18
|
-
letter-spacing: 0.5px;
|
|
19
|
-
`;
|
|
20
|
-
export const smallText = css`
|
|
21
|
-
letter-spacing: -0.5px;
|
|
22
|
-
font-size: ${"var(--ds-font-size-050, 8px)"};
|
|
23
|
-
min-width: 27px;
|
|
24
|
-
padding: ${"var(--ds-space-0, 0px)"} ${"var(--ds-space-025, 2px)"};
|
|
25
|
-
`;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { wrapper, text, smallText } from './styles';
|
|
4
|
-
var ResizeLabelBreakoutWidth = 110;
|
|
5
|
-
var ResizeLabel = function ResizeLabel(props) {
|
|
6
|
-
return jsx("div", {
|
|
7
|
-
css: wrapper
|
|
8
|
-
}, jsx("span", {
|
|
9
|
-
css: [text, props.containerWidth < ResizeLabelBreakoutWidth && smallText]
|
|
10
|
-
}, props.label));
|
|
11
|
-
};
|
|
12
|
-
export default ResizeLabel;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { B300 } from '@atlaskit/theme/colors';
|
|
5
|
-
export var wrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: ", ";\n width: 100%;\n text-align: center;\n position: absolute;\n transform: translateY(-125%);\n top: 0;\n"])), "var(--ds-font-size-100, 14px)");
|
|
6
|
-
export var text = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n border-radius: 6px;\n min-width: 75px;\n background-color: ", ";\n color: ", ";\n padding: ", " ", ";\n letter-spacing: 0.5px;\n"])), "var(--ds-text-accent-blue, ".concat(B300, ")"), "var(--ds-text-inverse, white)", "var(--ds-space-050, 4px)", "var(--ds-space-200, 16px)");
|
|
7
|
-
export var smallText = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n letter-spacing: -0.5px;\n font-size: ", ";\n min-width: 27px;\n padding: ", " ", ";\n"])), "var(--ds-font-size-050, 8px)", "var(--ds-space-0, 0px)", "var(--ds-space-025, 2px)");
|