@atlaskit/editor-core 216.7.0 → 216.7.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 +10 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +1 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +6 -1
- package/dist/types/presets/universal.d.ts +6 -1
- package/dist/types/presets/useUniversalPreset.d.ts +6 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +6 -1
- package/dist/types-ts4.5/presets/universal.d.ts +6 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 216.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a5727f82cae80`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a5727f82cae80) -
|
|
8
|
+
[NO-ISSUE] Cleans up experiment platform_editor_scroll_gutter_fix
|
|
9
|
+
- [`d29ff5aa0dcec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d29ff5aa0dcec) -
|
|
10
|
+
[NO-ISSUE] cleans up experiment platform_editor_reduce_toolbar_vc_impact
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 216.7.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -18,7 +18,6 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
19
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
20
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
|
-
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
22
21
|
var _ClickAreaBlock = _interopRequireDefault(require("../../Addon/ClickAreaBlock"));
|
|
23
22
|
var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
|
|
24
23
|
var _ContextPanel = require("../../ContextPanel");
|
|
@@ -301,7 +300,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
301
300
|
containerElement: scrollContainerRef.current,
|
|
302
301
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
303
302
|
wrapperElement: props.wrapperElement
|
|
304
|
-
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.after) : null,
|
|
303
|
+
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.after) : null, allowScrollGutter && (0, _react2.jsx)("div", {
|
|
305
304
|
id: "editor-scroll-gutter",
|
|
306
305
|
style: {
|
|
307
306
|
paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
|
|
@@ -50,7 +50,7 @@ var FirstChildWrapper = function FirstChildWrapper(_ref2) {
|
|
|
50
50
|
var children = _ref2.children;
|
|
51
51
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
52
52
|
"data-testid": "main-toolbar-first-child-wrapper",
|
|
53
|
-
className: (0, _runtime.ax)([styles.firstChildWrapperOneLine,
|
|
53
|
+
className: (0, _runtime.ax)([styles.firstChildWrapperOneLine, styles.firstChildWrapperContainerContext])
|
|
54
54
|
}, children);
|
|
55
55
|
};
|
|
56
56
|
var SecondChildWrapper = function SecondChildWrapper(_ref3) {
|
|
@@ -16,7 +16,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
17
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
18
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
20
19
|
// Ignored via go/ees005
|
|
21
20
|
// eslint-disable-next-line import/no-named-as-default
|
|
22
21
|
import ClickAreaBlock from '../../Addon/ClickAreaBlock';
|
|
@@ -295,7 +294,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
295
294
|
containerElement: scrollContainerRef.current,
|
|
296
295
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
297
296
|
wrapperElement: props.wrapperElement
|
|
298
|
-
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null,
|
|
297
|
+
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && jsx("div", {
|
|
299
298
|
id: "editor-scroll-gutter",
|
|
300
299
|
style: {
|
|
301
300
|
paddingBottom: `${(_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120'}px`
|
|
@@ -43,7 +43,7 @@ const FirstChildWrapper = ({
|
|
|
43
43
|
}) => {
|
|
44
44
|
return /*#__PURE__*/React.createElement("div", {
|
|
45
45
|
"data-testid": "main-toolbar-first-child-wrapper",
|
|
46
|
-
className: ax([styles.firstChildWrapperOneLine,
|
|
46
|
+
className: ax([styles.firstChildWrapperOneLine, styles.firstChildWrapperContainerContext])
|
|
47
47
|
}, children);
|
|
48
48
|
};
|
|
49
49
|
const SecondChildWrapper = ({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "216.
|
|
2
|
+
export const version = "216.7.0";
|
|
@@ -17,7 +17,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
21
20
|
// Ignored via go/ees005
|
|
22
21
|
// eslint-disable-next-line import/no-named-as-default
|
|
23
22
|
import ClickAreaBlock from '../../Addon/ClickAreaBlock';
|
|
@@ -291,7 +290,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
291
290
|
containerElement: scrollContainerRef.current,
|
|
292
291
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
293
292
|
wrapperElement: props.wrapperElement
|
|
294
|
-
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null,
|
|
293
|
+
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && jsx("div", {
|
|
295
294
|
id: "editor-scroll-gutter",
|
|
296
295
|
style: {
|
|
297
296
|
paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
|
|
@@ -41,7 +41,7 @@ var FirstChildWrapper = function FirstChildWrapper(_ref2) {
|
|
|
41
41
|
var children = _ref2.children;
|
|
42
42
|
return /*#__PURE__*/React.createElement("div", {
|
|
43
43
|
"data-testid": "main-toolbar-first-child-wrapper",
|
|
44
|
-
className: ax([styles.firstChildWrapperOneLine,
|
|
44
|
+
className: ax([styles.firstChildWrapperOneLine, styles.firstChildWrapperContainerContext])
|
|
45
45
|
}, children);
|
|
46
46
|
};
|
|
47
47
|
var SecondChildWrapper = function SecondChildWrapper(_ref3) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "216.
|
|
2
|
+
export var version = "216.7.0";
|
|
@@ -553,7 +553,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
553
553
|
undo: import("@atlaskit/editor-plugins/undo-redo").UndoRedoAction;
|
|
554
554
|
};
|
|
555
555
|
dependencies: [import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-plugins/history").HistoryPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>];
|
|
556
|
-
|
|
556
|
+
pluginConfiguration: {
|
|
557
|
+
showToolbarButton: boolean;
|
|
558
|
+
} | undefined;
|
|
559
|
+
}, {
|
|
560
|
+
showToolbarButton: boolean;
|
|
561
|
+
} | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
557
562
|
actions: {
|
|
558
563
|
registerComponent: ({ name, component, }: {
|
|
559
564
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
@@ -626,7 +626,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
626
626
|
undo: import("@atlaskit/editor-plugins/undo-redo").UndoRedoAction;
|
|
627
627
|
};
|
|
628
628
|
dependencies: [import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-plugins/history").HistoryPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>];
|
|
629
|
-
|
|
629
|
+
pluginConfiguration: {
|
|
630
|
+
showToolbarButton: boolean;
|
|
631
|
+
} | undefined;
|
|
632
|
+
}, {
|
|
633
|
+
showToolbarButton: boolean;
|
|
634
|
+
} | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
630
635
|
actions: {
|
|
631
636
|
registerComponent: ({ name, component, }: {
|
|
632
637
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
@@ -553,7 +553,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
553
553
|
undo: import("@atlaskit/editor-plugins/undo-redo").UndoRedoAction;
|
|
554
554
|
};
|
|
555
555
|
dependencies: [import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-plugins/history").HistoryPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>];
|
|
556
|
-
|
|
556
|
+
pluginConfiguration: {
|
|
557
|
+
showToolbarButton: boolean;
|
|
558
|
+
} | undefined;
|
|
559
|
+
}, {
|
|
560
|
+
showToolbarButton: boolean;
|
|
561
|
+
} | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
557
562
|
actions: {
|
|
558
563
|
registerComponent: ({ name, component, }: {
|
|
559
564
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
@@ -797,7 +797,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
797
797
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>,
|
|
798
798
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>
|
|
799
799
|
];
|
|
800
|
-
|
|
800
|
+
pluginConfiguration: {
|
|
801
|
+
showToolbarButton: boolean;
|
|
802
|
+
} | undefined;
|
|
803
|
+
}, {
|
|
804
|
+
showToolbarButton: boolean;
|
|
805
|
+
} | undefined> | undefined,
|
|
801
806
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
802
807
|
actions: {
|
|
803
808
|
registerComponent: ({ name, component, }: {
|
|
@@ -870,7 +870,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
870
870
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>,
|
|
871
871
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>
|
|
872
872
|
];
|
|
873
|
-
|
|
873
|
+
pluginConfiguration: {
|
|
874
|
+
showToolbarButton: boolean;
|
|
875
|
+
} | undefined;
|
|
876
|
+
}, {
|
|
877
|
+
showToolbarButton: boolean;
|
|
878
|
+
} | undefined> | undefined,
|
|
874
879
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
875
880
|
actions: {
|
|
876
881
|
registerComponent: ({ name, component, }: {
|
|
@@ -797,7 +797,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
797
797
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>,
|
|
798
798
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>
|
|
799
799
|
];
|
|
800
|
-
|
|
800
|
+
pluginConfiguration: {
|
|
801
|
+
showToolbarButton: boolean;
|
|
802
|
+
} | undefined;
|
|
803
|
+
}, {
|
|
804
|
+
showToolbarButton: boolean;
|
|
805
|
+
} | undefined> | undefined,
|
|
801
806
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
802
807
|
actions: {
|
|
803
808
|
registerComponent: ({ name, component, }: {
|