@atlaskit/editor-core 216.7.0 → 216.7.2

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,21 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 216.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`a5727f82cae80`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a5727f82cae80) -
14
+ [NO-ISSUE] Cleans up experiment platform_editor_scroll_gutter_fix
15
+ - [`d29ff5aa0dcec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d29ff5aa0dcec) -
16
+ [NO-ISSUE] cleans up experiment platform_editor_reduce_toolbar_vc_impact
17
+ - Updated dependencies
18
+
3
19
  ## 216.7.0
4
20
 
5
21
  ### 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, (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) {
@@ -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.7";
8
+ var version = exports.version = "216.7.1";
@@ -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 = ({
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "216.6.7";
2
+ export const version = "216.7.1";
@@ -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) {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "216.6.7";
2
+ export var version = "216.7.1";
@@ -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;
@@ -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, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.7.0",
3
+ "version": "216.7.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,13 +60,13 @@
60
60
  "@atlaskit/emoji": "^69.10.0",
61
61
  "@atlaskit/icon": "^29.4.0",
62
62
  "@atlaskit/link": "^3.3.0",
63
- "@atlaskit/media-card": "^79.13.0",
63
+ "@atlaskit/media-card": "^79.14.0",
64
64
  "@atlaskit/mention": "^24.4.0",
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
- "@atlaskit/react-ufo": "^4.17.0",
67
+ "@atlaskit/react-ufo": "^5.0.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^16.25.0",
69
+ "@atlaskit/tmp-editor-statsig": "^16.26.0",
70
70
  "@atlaskit/tokens": "^10.0.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -1,24 +0,0 @@
1
- {
2
- "extends": "../tsconfig",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "paths": {}
7
- },
8
- "include": [
9
- "../src/**/*.ts",
10
- "../src/**/*.tsx"
11
- ],
12
- "exclude": [
13
- "../src/**/__tests__/*",
14
- "../src/**/*.test.*",
15
- "../src/**/test.*",
16
- "../src/stories/*",
17
- "../src/**/examples.*",
18
- "../src/**/examples/*",
19
- "../src/**/examples/**/*",
20
- "../src/**/*.stories.*",
21
- "../src/**/stories/*",
22
- "../src/**/stories/**/*"
23
- ]
24
- }