@atlaskit/editor-core 217.12.9 → 217.12.11

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
+ ## 217.12.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
8
+ Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
9
+ rolled out
10
+ - [`33ad954adbde1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/33ad954adbde1) -
11
+ [NO-ISSUE] Cleaning flag platform_editor_focus_on_chromeless_editor
12
+ - Updated dependencies
13
+
14
+ ## 217.12.10
15
+
16
+ ### Patch Changes
17
+
18
+ - [`0ad738e8f896e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ad738e8f896e) -
19
+ Remove `support_table_in_comment` and `support_table_in_comment_jira` experiment references. Both
20
+ experiments are fully rolled out — table resizing, alignment, scaling, and distribute columns are
21
+ now enabled unconditionally in comment editors.
22
+ - Updated dependencies
23
+
3
24
  ## 217.12.9
4
25
 
5
26
  ### Patch Changes
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getUAPrefix = getUAPrefix;
7
7
  var _browser = require("@atlaskit/editor-common/browser");
8
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
8
  function getUAPrefix() {
10
- var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
9
+ var browser = (0, _browser.getBrowserInfo)();
11
10
  if (browser.chrome) {
12
11
  return 'ua-chrome';
13
12
  } else if (browser.ie) {
@@ -612,7 +612,7 @@ function ReactEditorView(props) {
612
612
  if (!liveDocWithContent) {
613
613
  focusTimeoutId.current = (0, _handleEditorFocus.handleEditorFocus)(editorView);
614
614
  }
615
- if ((0, _isChromeless.isChromeless)(props.editorProps.appearance) && (0, _expValEquals.expValEquals)('platform_editor_focus_on_chromeless_editor', 'isEnabled', true)) {
615
+ if ((0, _isChromeless.isChromeless)(props.editorProps.appearance)) {
616
616
  focusTimeoutId.current = (0, _handleEditorFocus.handleEditorFocus)(editorView);
617
617
  }
618
618
  if ((0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('cc_editor_focus_before_editor_on_load')) {
@@ -163,16 +163,7 @@ function createUniversalPresetInternal(_ref) {
163
163
  emojiProvider: props.emojiProvider
164
164
  }, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.emojiPlugin)], Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
165
165
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
166
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
167
- exposure: true
168
- })) || isComment && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
169
- exposure: true
170
- }),
171
- isTableScalingEnabled: isFullPage || isComment && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
172
- exposure: true
173
- }) || isComment && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
174
- exposure: true
175
- }),
166
+ isTableScalingEnabled: isFullPage || isComment,
176
167
  allowContextualMenu: true,
177
168
  fullWidthEnabled: appearance === 'full-width',
178
169
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
@@ -16,7 +16,6 @@ var _ui = require("@atlaskit/editor-common/ui");
16
16
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
17
17
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
18
18
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
20
19
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
21
20
  var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
22
21
  var _FullPageContentArea = require("./FullPageContentArea");
@@ -42,7 +41,7 @@ var useShowKeyline = function useShowKeyline(contentAreaRef) {
42
41
  if (!((_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 && _contentAreaRef$curre.contentArea)) {
43
42
  return;
44
43
  }
45
- var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
44
+ var browser = (0, _browser.getBrowserInfo)();
46
45
  var intersection = new IntersectionObserver(function (_ref) {
47
46
  var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
48
47
  entry = _ref2[0];
@@ -140,7 +140,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
140
140
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
141
141
  '--ak-editor--large-gutter-padding': "".concat((0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), "px")
142
142
  };
143
- var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
143
+ var browser = (0, _browser.getBrowserInfo)();
144
144
  return (0, _react2.jsx)("div", {
145
145
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
146
146
  className: className,
@@ -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 = "217.12.9";
8
+ var version = exports.version = "217.12.10";
@@ -1,7 +1,6 @@
1
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
1
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
3
2
  export function getUAPrefix() {
4
- const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
3
+ const browser = getBrowserInfo();
5
4
  if (browser.chrome) {
6
5
  return 'ua-chrome';
7
6
  } else if (browser.ie) {
@@ -582,7 +582,7 @@ export function ReactEditorView(props) {
582
582
  if (!liveDocWithContent) {
583
583
  focusTimeoutId.current = handleEditorFocus(editorView);
584
584
  }
585
- if (isChromeless(props.editorProps.appearance) && expValEquals('platform_editor_focus_on_chromeless_editor', 'isEnabled', true)) {
585
+ if (isChromeless(props.editorProps.appearance)) {
586
586
  focusTimeoutId.current = handleEditorFocus(editorView);
587
587
  }
588
588
  if (expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true) && fg('cc_editor_focus_before_editor_on_load')) {
@@ -159,16 +159,7 @@ export default function createUniversalPresetInternal({
159
159
  ...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.emojiPlugin)
160
160
  }], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
161
161
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
162
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && editorExperiment('support_table_in_comment', true, {
163
- exposure: true
164
- })) || isComment && editorExperiment('support_table_in_comment_jira', true, {
165
- exposure: true
166
- }),
167
- isTableScalingEnabled: isFullPage || isComment && editorExperiment('support_table_in_comment', true, {
168
- exposure: true
169
- }) || isComment && editorExperiment('support_table_in_comment_jira', true, {
170
- exposure: true
171
- }),
162
+ isTableScalingEnabled: isFullPage || isComment,
172
163
  allowContextualMenu: true,
173
164
  fullWidthEnabled: appearance === 'full-width',
174
165
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
@@ -6,14 +6,13 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
8
8
  import { jsx } from '@emotion/react';
9
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
9
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
10
10
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
11
11
  import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measures';
12
12
  import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
13
13
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
14
14
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
15
15
  import { fg } from '@atlaskit/platform-feature-flags';
16
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
16
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
18
17
  import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
19
18
  import { FullPageContentArea } from './FullPageContentArea';
@@ -28,7 +27,7 @@ const useShowKeyline = contentAreaRef => {
28
27
  if (!((_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 && _contentAreaRef$curre.contentArea)) {
29
28
  return;
30
29
  }
31
- const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
30
+ const browser = getBrowserInfo();
32
31
  const intersection = new IntersectionObserver(([entry]) => {
33
32
  setShowKeyline(!entry.isIntersecting && entry.boundingClientRect.top < entry.intersectionRect.top);
34
33
  }, {
@@ -7,7 +7,7 @@ import React from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
9
9
  import { jsx, useTheme } from '@emotion/react';
10
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
10
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
11
11
  import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
12
12
  import { akEditorGutterPaddingDynamic, editorFontSize } from '@atlaskit/editor-shared-styles';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -136,7 +136,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
136
136
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
137
137
  '--ak-editor--large-gutter-padding': `${akEditorGutterPaddingDynamic()}px`
138
138
  };
139
- const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
139
+ const browser = getBrowserInfo();
140
140
  return jsx("div", {
141
141
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
142
142
  className: className,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "217.12.9";
2
+ export const version = "217.12.10";
@@ -1,7 +1,6 @@
1
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
1
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
3
2
  export function getUAPrefix() {
4
- var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
3
+ var browser = getBrowserInfo();
5
4
  if (browser.chrome) {
6
5
  return 'ua-chrome';
7
6
  } else if (browser.ie) {
@@ -603,7 +603,7 @@ export function ReactEditorView(props) {
603
603
  if (!liveDocWithContent) {
604
604
  focusTimeoutId.current = handleEditorFocus(editorView);
605
605
  }
606
- if (isChromeless(props.editorProps.appearance) && expValEquals('platform_editor_focus_on_chromeless_editor', 'isEnabled', true)) {
606
+ if (isChromeless(props.editorProps.appearance)) {
607
607
  focusTimeoutId.current = handleEditorFocus(editorView);
608
608
  }
609
609
  if (expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true) && fg('cc_editor_focus_before_editor_on_load')) {
@@ -156,16 +156,7 @@ export default function createUniversalPresetInternal(_ref) {
156
156
  emojiProvider: props.emojiProvider
157
157
  }, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.emojiPlugin)], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
158
158
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
159
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && editorExperiment('support_table_in_comment', true, {
160
- exposure: true
161
- })) || isComment && editorExperiment('support_table_in_comment_jira', true, {
162
- exposure: true
163
- }),
164
- isTableScalingEnabled: isFullPage || isComment && editorExperiment('support_table_in_comment', true, {
165
- exposure: true
166
- }) || isComment && editorExperiment('support_table_in_comment_jira', true, {
167
- exposure: true
168
- }),
159
+ isTableScalingEnabled: isFullPage || isComment,
169
160
  allowContextualMenu: true,
170
161
  fullWidthEnabled: appearance === 'full-width',
171
162
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
@@ -7,14 +7,13 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
9
9
  import { jsx } from '@emotion/react';
10
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
10
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
11
11
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
12
12
  import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measures';
13
13
  import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
14
14
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
15
15
  import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
16
16
  import { fg } from '@atlaskit/platform-feature-flags';
17
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
17
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
19
18
  import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
20
19
  import { FullPageContentArea } from './FullPageContentArea';
@@ -32,7 +31,7 @@ var useShowKeyline = function useShowKeyline(contentAreaRef) {
32
31
  if (!((_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 && _contentAreaRef$curre.contentArea)) {
33
32
  return;
34
33
  }
35
- var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
34
+ var browser = getBrowserInfo();
36
35
  var intersection = new IntersectionObserver(function (_ref) {
37
36
  var _ref2 = _slicedToArray(_ref, 1),
38
37
  entry = _ref2[0];
@@ -8,7 +8,7 @@ import React from 'react';
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
10
10
  import { jsx, useTheme } from '@emotion/react';
11
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
11
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
12
12
  import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
13
13
  import { akEditorGutterPaddingDynamic, editorFontSize } from '@atlaskit/editor-shared-styles';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -132,7 +132,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
132
132
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
133
133
  '--ak-editor--large-gutter-padding': "".concat(akEditorGutterPaddingDynamic(), "px")
134
134
  };
135
- var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
135
+ var browser = getBrowserInfo();
136
136
  return jsx("div", {
137
137
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
138
138
  className: className,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "217.12.9";
2
+ export var version = "217.12.10";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.12.9",
3
+ "version": "217.12.11",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/editor-toolbar-model": "^0.4.0",
60
60
  "@atlaskit/emoji": "^69.12.0",
61
61
  "@atlaskit/feature-gate-js-client": "^5.5.0",
62
- "@atlaskit/icon": "^34.0.0",
62
+ "@atlaskit/icon": "^34.1.0",
63
63
  "@atlaskit/link": "^3.4.0",
64
64
  "@atlaskit/media-card": "^79.16.0",
65
65
  "@atlaskit/mention": "^24.6.0",
@@ -67,7 +67,7 @@
67
67
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
68
68
  "@atlaskit/react-ufo": "^5.13.0",
69
69
  "@atlaskit/task-decision": "^19.3.0",
70
- "@atlaskit/tmp-editor-statsig": "^60.2.0",
70
+ "@atlaskit/tmp-editor-statsig": "^62.0.0",
71
71
  "@atlaskit/tokens": "^13.0.0",
72
72
  "@atlaskit/tooltip": "^21.1.0",
73
73
  "@atlaskit/width-detector": "^5.0.0",
@@ -84,7 +84,7 @@
84
84
  "uuid": "^3.1.0"
85
85
  },
86
86
  "peerDependencies": {
87
- "@atlaskit/editor-common": "^112.20.0",
87
+ "@atlaskit/editor-common": "^112.21.0",
88
88
  "@atlaskit/link-provider": "^4.3.0",
89
89
  "@atlaskit/media-core": "^37.0.0",
90
90
  "react": "^18.2.0",
@@ -99,7 +99,7 @@
99
99
  "@atlaskit/analytics-listeners": "^10.0.0",
100
100
  "@atlaskit/collab-provider": "^16.2.0",
101
101
  "@atlaskit/editor-plugin-annotation": "^8.0.0",
102
- "@atlaskit/editor-plugin-card": "^14.0.0",
102
+ "@atlaskit/editor-plugin-card": "^14.1.0",
103
103
  "@atlaskit/editor-plugin-list": "^10.2.0",
104
104
  "@atlaskit/editor-plugin-paste": "^9.1.0",
105
105
  "@atlaskit/editor-test-helpers": "workspace:^",