@atlaskit/editor-core 216.6.7 → 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 CHANGED
@@ -1,5 +1,26 @@
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
+
13
+ ## 216.7.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [`ee5135bafb31d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee5135bafb31d) -
18
+ [EDITOR-4495] clean up platform_editor_toolbar_aifc_patch_4
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 216.6.7
4
25
 
5
26
  ### Patch Changes
@@ -157,7 +157,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
157
157
  (0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(isToolbarAIFCEnabled)
158
158
  }
159
159
  }, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? (0, _react2.jsx)(_FullPageToolbarNext.FullPageToolbarNext, {
160
- disabled: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? !!props.disabled : undefined,
160
+ disabled: !!props.disabled,
161
161
  toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
162
162
  beforeIcon: props.primaryToolbarIconBefore,
163
163
  editorAPI: editorAPI,
@@ -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, (0, _expVal.expVal)('platform_editor_scroll_gutter_fix', 'isEnabled', false) && allowScrollGutter && (0, _react2.jsx)("div", {
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, (0, _expValEquals.expValEquals)('platform_editor_reduce_toolbar_vc_impact', 'isEnabled', true) && styles.firstChildWrapperContainerContext])
53
+ className: (0, _runtime.ax)([styles.firstChildWrapperOneLine, styles.firstChildWrapperContainerContext])
54
54
  }, children);
55
55
  };
56
56
  var SecondChildWrapper = function SecondChildWrapper(_ref3) {
@@ -85,7 +85,7 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
85
85
  return /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarProvider, {
86
86
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
87
87
  editorAppearance: editorAppearance,
88
- editorViewMode: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
88
+ editorViewMode: editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit',
89
89
  editorToolbarDockingPreference: editorToolbarDockingPreference,
90
90
  isOffline: isOffline
91
91
  }, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "216.6.6";
8
+ var version = exports.version = "216.7.0";
@@ -142,7 +142,7 @@ export const FullPageEditor = props => {
142
142
  FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
143
143
  }
144
144
  }, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
145
- disabled: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? !!props.disabled : undefined,
145
+ disabled: !!props.disabled,
146
146
  toolbarDockingPosition: (_toolbarDockingPositi = toolbarDockingPosition) !== null && _toolbarDockingPositi !== void 0 ? _toolbarDockingPositi : toolbarDocking,
147
147
  beforeIcon: props.primaryToolbarIconBefore,
148
148
  editorAPI: editorAPI,
@@ -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, expVal('platform_editor_scroll_gutter_fix', 'isEnabled', false) && allowScrollGutter && jsx("div", {
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, expValEquals('platform_editor_reduce_toolbar_vc_impact', 'isEnabled', true) && styles.firstChildWrapperContainerContext])
46
+ className: ax([styles.firstChildWrapperOneLine, styles.firstChildWrapperContainerContext])
47
47
  }, children);
48
48
  };
49
49
  const SecondChildWrapper = ({
@@ -79,7 +79,7 @@ export const ToolbarNext = ({
79
79
  return /*#__PURE__*/React.createElement(EditorToolbarProvider, {
80
80
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
81
81
  editorAppearance: editorAppearance,
82
- editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
82
+ editorViewMode: editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit',
83
83
  editorToolbarDockingPreference: editorToolbarDockingPreference,
84
84
  isOffline: isOffline
85
85
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "216.6.6";
2
+ export const version = "216.7.0";
@@ -147,7 +147,7 @@ export var FullPageEditor = function FullPageEditor(props) {
147
147
  FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
148
148
  }
149
149
  }, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
150
- disabled: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? !!props.disabled : undefined,
150
+ disabled: !!props.disabled,
151
151
  toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
152
152
  beforeIcon: props.primaryToolbarIconBefore,
153
153
  editorAPI: editorAPI,
@@ -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, expVal('platform_editor_scroll_gutter_fix', 'isEnabled', false) && allowScrollGutter && jsx("div", {
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, expValEquals('platform_editor_reduce_toolbar_vc_impact', 'isEnabled', true) && styles.firstChildWrapperContainerContext])
44
+ className: ax([styles.firstChildWrapperOneLine, styles.firstChildWrapperContainerContext])
45
45
  }, children);
46
46
  };
47
47
  var SecondChildWrapper = function SecondChildWrapper(_ref3) {
@@ -79,7 +79,7 @@ export var ToolbarNext = function ToolbarNext(_ref) {
79
79
  return /*#__PURE__*/React.createElement(EditorToolbarProvider, {
80
80
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
81
81
  editorAppearance: editorAppearance,
82
- editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
82
+ editorViewMode: editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit',
83
83
  editorToolbarDockingPreference: editorToolbarDockingPreference,
84
84
  isOffline: isOffline
85
85
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "216.6.6";
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
- }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
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
- }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
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
- }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
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;
@@ -11,7 +11,7 @@ import type { PrimaryToolbarComponents } from '../../../types';
11
11
  type FullPageToolbarNextProps = {
12
12
  beforeIcon?: React.ReactNode;
13
13
  customPrimaryToolbarComponents?: PrimaryToolbarComponents;
14
- disabled?: boolean;
14
+ disabled: boolean;
15
15
  editorAPI?: PublicPluginAPI<[ToolbarPlugin]>;
16
16
  editorView?: EditorView;
17
17
  popupsBoundariesElement?: HTMLElement;
@@ -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
- }, undefined> | undefined,
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
- }, undefined> | undefined,
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
- }, undefined> | undefined,
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, }: {
@@ -11,7 +11,7 @@ import type { PrimaryToolbarComponents } from '../../../types';
11
11
  type FullPageToolbarNextProps = {
12
12
  beforeIcon?: React.ReactNode;
13
13
  customPrimaryToolbarComponents?: PrimaryToolbarComponents;
14
- disabled?: boolean;
14
+ disabled: boolean;
15
15
  editorAPI?: PublicPluginAPI<[
16
16
  ToolbarPlugin
17
17
  ]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.6.7",
3
+ "version": "216.7.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^4.17.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^16.24.0",
69
+ "@atlaskit/tmp-editor-statsig": "^16.25.0",
70
70
  "@atlaskit/tokens": "^10.0.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",