@atlaskit/editor-core 220.1.3 → 220.2.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,29 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 220.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f7faa21a01fc7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f7faa21a01fc7) -
8
+ Cleanup stale feature gates and experiments now that they have shipped. The following
9
+ gates/experiments have been removed and their enabled paths kept as the permanent behaviour:
10
+ platform_editor_fix_scrolling_popup_position, platform_editor_table_resize_chromeless,
11
+ platform_editor_chromeless_akeditor_class, create_work_item_modernization_exp.
12
+ - Updated dependencies
13
+
14
+ ## 220.2.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`98bc3bac22bb2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/98bc3bac22bb2) -
19
+ Add platform_editor_blocks editor experiment that routes to platform_editor_blocks_conf on
20
+ Confluence and platform_editor_blocks_jira on Jira; migrate internal callsites of the old
21
+ per-product Blocks experiments to the unified key
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 220.1.3
4
28
 
5
29
  ### Patch Changes
@@ -15,8 +15,6 @@ exports.ChromelessEditorContainerCompiled = void 0;
15
15
  require("./Chromeless-compiled.compiled.css");
16
16
  var _runtime = require("@compiled/react/runtime");
17
17
  var _react = _interopRequireDefault(require("react"));
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
20
18
  var chromelessStyles = {
21
19
  scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
22
20
  editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
@@ -28,7 +26,7 @@ var ChromelessEditorContainerCompiled = exports.ChromelessEditorContainerCompile
28
26
  minHeight = _ref.minHeight;
29
27
  return /*#__PURE__*/_react.default.createElement("div", {
30
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
31
- className: (0, _runtime.ax)([chromelessStyles.editor, chromelessStyles.scrollbar, (0, _platformFeatureFlags.fg)('platform_editor_chromeless_akeditor_class') || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true) ? 'akEditor' : undefined]),
29
+ className: (0, _runtime.ax)([chromelessStyles.editor, chromelessStyles.scrollbar, "akEditor"]),
32
30
  style: {
33
31
  maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
34
32
  minHeight: "".concat(minHeight, "px")
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.ChromelessEditorContainerEmotion = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _react = require("@emotion/react");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
10
  var _excluded = ["children", "containerRef", "maxHeight", "minHeight"];
13
11
  /**
14
12
  * @jsxRuntime classic
@@ -79,7 +77,7 @@ var ChromelessEditorContainerEmotion = exports.ChromelessEditorContainerEmotion
79
77
  css: [chromelessEditorStylesNew, scrollbarStylesNew]
80
78
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
81
79
  ,
82
- className: (0, _platformFeatureFlags.fg)('platform_editor_chromeless_akeditor_class') || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true) ? 'akEditor' : undefined,
80
+ className: "akEditor",
83
81
  style: {
84
82
  maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
85
83
  minHeight: "".concat(minHeight, "px")
@@ -15,7 +15,6 @@ var _adfSchema = require("@atlaskit/adf-schema");
15
15
  var _hooks = require("@atlaskit/editor-common/hooks");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
17
17
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
18
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
19
18
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
21
20
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
@@ -332,7 +331,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
332
331
  containerElement: scrollContainerRef.current,
333
332
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
334
333
  wrapperElement: props.wrapperElement
335
- }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.after) : null, allowScrollGutter && (_featureGateJsClient.default.getExperimentValue('cc_snippets', 'isEnabled', false) ? (0, _react2.jsx)("div", {
334
+ }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.after) : null, allowScrollGutter && ((0, _experiments.editorExperiment)('platform_editor_blocks', true) ? (0, _react2.jsx)("div", {
336
335
  id: "editor-scroll-gutter",
337
336
  style: {
338
337
  paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
@@ -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 = "220.1.2";
8
+ var version = exports.version = "220.2.0";
@@ -8,8 +8,6 @@
8
8
  import "./Chromeless-compiled.compiled.css";
9
9
  import { ax, ix } from "@compiled/react/runtime";
10
10
  import React from 'react';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
11
  const chromelessStyles = {
14
12
  scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
15
13
  editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
@@ -21,7 +19,7 @@ export const ChromelessEditorContainerCompiled = ({
21
19
  minHeight
22
20
  }) => /*#__PURE__*/React.createElement("div", {
23
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
24
- className: ax([chromelessStyles.editor, chromelessStyles.scrollbar, fg('platform_editor_chromeless_akeditor_class') || expValEquals('create_work_item_modernization_exp', 'isEnabled', true) ? 'akEditor' : undefined]),
22
+ className: ax([chromelessStyles.editor, chromelessStyles.scrollbar, "akEditor"]),
25
23
  style: {
26
24
  maxHeight: maxHeight ? `${maxHeight}px` : undefined,
27
25
  minHeight: `${minHeight}px`
@@ -11,8 +11,6 @@
11
11
 
12
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
13
13
  import { css, jsx } from '@emotion/react';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
14
  const scrollbarStylesNew = css({
17
15
  msOverflowStyle: '-ms-autohiding-scrollbar',
18
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
@@ -71,7 +69,7 @@ export const ChromelessEditorContainerEmotion = ({
71
69
  css: [chromelessEditorStylesNew, scrollbarStylesNew]
72
70
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
73
71
  ,
74
- className: fg('platform_editor_chromeless_akeditor_class') || expValEquals('create_work_item_modernization_exp', 'isEnabled', true) ? 'akEditor' : undefined,
72
+ className: "akEditor",
75
73
  style: {
76
74
  maxHeight: maxHeight ? `${maxHeight}px` : undefined,
77
75
  minHeight: `${minHeight}px`
@@ -13,7 +13,6 @@ import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
13
13
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
14
14
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
15
15
  import { akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
16
- import FeatureGates from '@atlaskit/feature-gate-js-client';
17
16
  import { fg } from '@atlaskit/platform-feature-flags';
18
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
18
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -324,7 +323,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
324
323
  containerElement: scrollContainerRef.current,
325
324
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
326
325
  wrapperElement: props.wrapperElement
327
- }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (FeatureGates.getExperimentValue('cc_snippets', 'isEnabled', false) ? jsx("div", {
326
+ }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (editorExperiment('platform_editor_blocks', true) ? jsx("div", {
328
327
  id: "editor-scroll-gutter",
329
328
  style: {
330
329
  paddingBottom: `${(_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120'}px`
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "220.1.2";
2
+ export const version = "220.2.0";
@@ -8,8 +8,6 @@
8
8
  import "./Chromeless-compiled.compiled.css";
9
9
  import { ax, ix } from "@compiled/react/runtime";
10
10
  import React from 'react';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
11
  var chromelessStyles = {
14
12
  scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
15
13
  editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
@@ -21,7 +19,7 @@ export var ChromelessEditorContainerCompiled = function ChromelessEditorContaine
21
19
  minHeight = _ref.minHeight;
22
20
  return /*#__PURE__*/React.createElement("div", {
23
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
24
- className: ax([chromelessStyles.editor, chromelessStyles.scrollbar, fg('platform_editor_chromeless_akeditor_class') || expValEquals('create_work_item_modernization_exp', 'isEnabled', true) ? 'akEditor' : undefined]),
22
+ className: ax([chromelessStyles.editor, chromelessStyles.scrollbar, "akEditor"]),
25
23
  style: {
26
24
  maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
27
25
  minHeight: "".concat(minHeight, "px")
@@ -13,8 +13,6 @@ var _excluded = ["children", "containerRef", "maxHeight", "minHeight"];
13
13
 
14
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
15
15
  import { css, jsx } from '@emotion/react';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
16
  var scrollbarStylesNew = css({
19
17
  msOverflowStyle: '-ms-autohiding-scrollbar',
20
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
@@ -73,7 +71,7 @@ export var ChromelessEditorContainerEmotion = function ChromelessEditorContainer
73
71
  css: [chromelessEditorStylesNew, scrollbarStylesNew]
74
72
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
75
73
  ,
76
- className: fg('platform_editor_chromeless_akeditor_class') || expValEquals('create_work_item_modernization_exp', 'isEnabled', true) ? 'akEditor' : undefined,
74
+ className: "akEditor",
77
75
  style: {
78
76
  maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
79
77
  minHeight: "".concat(minHeight, "px")
@@ -14,7 +14,6 @@ import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
14
14
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
15
15
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
16
16
  import { akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
17
- import FeatureGates from '@atlaskit/feature-gate-js-client';
18
17
  import { fg } from '@atlaskit/platform-feature-flags';
19
18
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
19
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -322,7 +321,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
322
321
  containerElement: scrollContainerRef.current,
323
322
  dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
324
323
  wrapperElement: props.wrapperElement
325
- }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (FeatureGates.getExperimentValue('cc_snippets', 'isEnabled', false) ? jsx("div", {
324
+ }), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (editorExperiment('platform_editor_blocks', true) ? jsx("div", {
326
325
  id: "editor-scroll-gutter",
327
326
  style: {
328
327
  paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "220.1.2";
2
+ export var version = "220.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "220.1.3",
3
+ "version": "220.2.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/platform-feature-flags-react": "^0.5.0",
75
75
  "@atlaskit/react-ufo": "^6.7.0",
76
76
  "@atlaskit/task-decision": "^20.1.0",
77
- "@atlaskit/tmp-editor-statsig": "^90.0.0",
77
+ "@atlaskit/tmp-editor-statsig": "^91.0.0",
78
78
  "@atlaskit/tokens": "^13.3.0",
79
79
  "@atlaskit/tooltip": "^22.6.0",
80
80
  "@atlaskit/width-detector": "^5.1.0",
@@ -121,15 +121,15 @@
121
121
  "@atlaskit/modal-dialog": "^15.2.0",
122
122
  "@atlaskit/popper": "^7.2.0",
123
123
  "@atlaskit/portal": "^5.5.0",
124
- "@atlaskit/renderer": "^132.0.0",
124
+ "@atlaskit/renderer": "^132.1.0",
125
125
  "@atlaskit/section-message": "^8.13.0",
126
126
  "@atlaskit/synchrony-test-helpers": "workspace:^",
127
127
  "@atlaskit/toggle": "^16.1.0",
128
128
  "@atlaskit/util-data-test": "^18.6.0",
129
- "@atlassian/a11y-jest-testing": "^0.11.0",
129
+ "@atlassian/a11y-jest-testing": "^0.12.0",
130
130
  "@atlassian/a11y-playwright-testing": "^0.10.0",
131
131
  "@atlassian/adf-schema-json": "^1.33.0",
132
- "@atlassian/editor-rovo-bridge": "^9.4.0",
132
+ "@atlassian/editor-rovo-bridge": "^9.6.0",
133
133
  "@atlassian/feature-flags-test-utils": "^1.1.0",
134
134
  "@atlassian/react-compiler-gating": "workspace:^",
135
135
  "@atlassian/search-client": "^1.12.0",
@@ -334,9 +334,6 @@
334
334
  "platform-dst-lozenge-tag-badge-visual-uplifts": {
335
335
  "type": "boolean"
336
336
  },
337
- "platform_editor_chromeless_akeditor_class": {
338
- "type": "boolean"
339
- },
340
337
  "platform_synced_block_patch_14": {
341
338
  "type": "boolean"
342
339
  }