@atlaskit/editor-core 217.12.10 → 217.12.12

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,22 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 217.12.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 217.12.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
14
+ Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
15
+ rolled out
16
+ - [`33ad954adbde1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/33ad954adbde1) -
17
+ [NO-ISSUE] Cleaning flag platform_editor_focus_on_chromeless_editor
18
+ - Updated dependencies
19
+
3
20
  ## 217.12.10
4
21
 
5
22
  ### 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')) {
@@ -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.11";
@@ -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')) {
@@ -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.11";
@@ -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')) {
@@ -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.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.12.10",
3
+ "version": "217.12.12",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -57,20 +57,20 @@
57
57
  "@atlaskit/editor-ssr-renderer": "^3.3.0",
58
58
  "@atlaskit/editor-toolbar": "^0.20.0",
59
59
  "@atlaskit/editor-toolbar-model": "^0.4.0",
60
- "@atlaskit/emoji": "^69.12.0",
60
+ "@atlaskit/emoji": "^70.0.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
- "@atlaskit/mention": "^24.6.0",
65
+ "@atlaskit/mention": "^25.0.0",
66
66
  "@atlaskit/platform-feature-flags": "^1.1.0",
67
67
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
68
68
  "@atlaskit/react-ufo": "^5.13.0",
69
- "@atlaskit/task-decision": "^19.3.0",
70
- "@atlaskit/tmp-editor-statsig": "^61.0.0",
69
+ "@atlaskit/task-decision": "^20.0.0",
70
+ "@atlaskit/tmp-editor-statsig": "^62.2.0",
71
71
  "@atlaskit/tokens": "^13.0.0",
72
72
  "@atlaskit/tooltip": "^21.1.0",
73
- "@atlaskit/width-detector": "^5.0.0",
73
+ "@atlaskit/width-detector": "^5.1.0",
74
74
  "@babel/runtime": "^7.0.0",
75
75
  "@emotion/react": "^11.7.1",
76
76
  "@types/react-loadable": "^5.4.1",
@@ -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:^",
@@ -110,7 +110,7 @@
110
110
  "@atlaskit/media-integration-test-helpers": "workspace:^",
111
111
  "@atlaskit/media-test-helpers": "^40.0.0",
112
112
  "@atlaskit/modal-dialog": "^14.15.0",
113
- "@atlaskit/renderer": "^128.10.0",
113
+ "@atlaskit/renderer": "^128.11.0",
114
114
  "@atlaskit/section-message": "^8.12.0",
115
115
  "@atlaskit/synchrony-test-helpers": "workspace:^",
116
116
  "@atlaskit/toggle": "^15.5.0",