@atlaskit/editor-common 87.9.0 → 87.9.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,12 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 87.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`46b889c01d03e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/46b889c01d03e) -
8
+ [ux] Clean up Reaact 18 Feature Flags
9
+
3
10
  ## 87.9.0
4
11
 
5
12
  ### Minor Changes
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "87.9.0";
20
+ var packageVersion = "87.9.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "87.9.0";
26
+ var packageVersion = "87.9.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -11,14 +11,12 @@ var _react2 = require("@emotion/react");
11
11
  var _analyticsNext = require("@atlaskit/analytics-next");
12
12
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
13
13
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _colors = require("@atlaskit/theme/colors");
16
15
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
17
16
  var _analytics = require("../../analytics");
18
17
  var _uiColor = require("../../ui-color");
19
18
  var _uiReact = require("../../ui-react");
20
19
  var _Popup = _interopRequireDefault(require("../../ui/Popup"));
21
- var _withOuterListeners = _interopRequireDefault(require("../../ui/with-outer-listeners"));
22
20
  var _ArrowKeyNavigationProvider = require("../ArrowKeyNavigationProvider");
23
21
  var _types = require("../ArrowKeyNavigationProvider/types");
24
22
  /**
@@ -50,7 +48,6 @@ var colorPickerWrapper = function colorPickerWrapper() {
50
48
  };
51
49
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
52
50
 
53
- var ColorPaletteWithListeners = (0, _withOuterListeners.default)(_uiColor.ColorPalette);
54
51
  var ColorPaletteWithReactViewListeners = (0, _uiReact.withReactEditorViewOuterListeners)(_uiColor.ColorPalette);
55
52
  var ColorPickerButton = function ColorPickerButton(props) {
56
53
  var buttonRef = _react.default.useRef(null);
@@ -164,18 +161,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
164
161
  isOpenedByKeyboard: isOpenedByKeyboard,
165
162
  isPopupPositioned: isPopupPositioned,
166
163
  ignoreEscapeKey: props.returnEscToButton
167
- }, (0, _platformFeatureFlags.fg)('react_18_color_picker_concurrent_mode') ? (0, _react2.jsx)(ColorPaletteWithReactViewListeners, {
168
- cols: props.cols,
169
- selectedColor: selectedColor,
170
- onClick: onColorSelected,
171
- handleClickOutside: togglePopup,
172
- handleEscapeKeydown: handleEsc,
173
- paletteOptions: {
174
- palette: props.colorPalette,
175
- hexToPaletteColor: props.hexToPaletteColor,
176
- paletteColorTooltipMessages: props.paletteColorTooltipMessages
177
- }
178
- }) : (0, _react2.jsx)(ColorPaletteWithListeners, {
164
+ }, (0, _react2.jsx)(ColorPaletteWithReactViewListeners, {
179
165
  cols: props.cols,
180
166
  selectedColor: selectedColor,
181
167
  onClick: onColorSelected,
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "87.9.0";
4
+ const packageVersion = "87.9.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "87.9.0";
15
+ const packageVersion = "87.9.1";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -9,14 +9,12 @@ import { css, jsx } from '@emotion/react';
9
9
  import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import Button from '@atlaskit/button/standard-button';
11
11
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { N0, N30A, N60A } from '@atlaskit/theme/colors';
14
13
  import Tooltip from '@atlaskit/tooltip';
15
14
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
16
15
  import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
17
16
  import { withReactEditorViewOuterListeners } from '../../ui-react';
18
17
  import { default as Popup } from '../../ui/Popup';
19
- import { default as withOuterListeners } from '../../ui/with-outer-listeners';
20
18
  import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
21
19
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
22
20
 
@@ -40,7 +38,6 @@ const colorPickerWrapper = () => css({
40
38
  });
41
39
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
42
40
 
43
- const ColorPaletteWithListeners = withOuterListeners(ColorPalette);
44
41
  const ColorPaletteWithReactViewListeners = withReactEditorViewOuterListeners(ColorPalette);
45
42
  const ColorPickerButton = props => {
46
43
  const buttonRef = React.useRef(null);
@@ -144,18 +141,7 @@ const ColorPickerButton = props => {
144
141
  isOpenedByKeyboard: isOpenedByKeyboard,
145
142
  isPopupPositioned: isPopupPositioned,
146
143
  ignoreEscapeKey: props.returnEscToButton
147
- }, fg('react_18_color_picker_concurrent_mode') ? jsx(ColorPaletteWithReactViewListeners, {
148
- cols: props.cols,
149
- selectedColor: selectedColor,
150
- onClick: onColorSelected,
151
- handleClickOutside: togglePopup,
152
- handleEscapeKeydown: handleEsc,
153
- paletteOptions: {
154
- palette: props.colorPalette,
155
- hexToPaletteColor: props.hexToPaletteColor,
156
- paletteColorTooltipMessages: props.paletteColorTooltipMessages
157
- }
158
- }) : jsx(ColorPaletteWithListeners, {
144
+ }, jsx(ColorPaletteWithReactViewListeners, {
159
145
  cols: props.cols,
160
146
  selectedColor: selectedColor,
161
147
  onClick: onColorSelected,
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "87.9.0";
10
+ var packageVersion = "87.9.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "87.9.0";
23
+ var packageVersion = "87.9.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -10,14 +10,12 @@ import { css, jsx } from '@emotion/react';
10
10
  import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
11
11
  import Button from '@atlaskit/button/standard-button';
12
12
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import { N0, N30A, N60A } from '@atlaskit/theme/colors';
15
14
  import Tooltip from '@atlaskit/tooltip';
16
15
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
17
16
  import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
18
17
  import { withReactEditorViewOuterListeners } from '../../ui-react';
19
18
  import { default as Popup } from '../../ui/Popup';
20
- import { default as withOuterListeners } from '../../ui/with-outer-listeners';
21
19
  import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
22
20
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
23
21
 
@@ -43,7 +41,6 @@ var colorPickerWrapper = function colorPickerWrapper() {
43
41
  };
44
42
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
45
43
 
46
- var ColorPaletteWithListeners = withOuterListeners(ColorPalette);
47
44
  var ColorPaletteWithReactViewListeners = withReactEditorViewOuterListeners(ColorPalette);
48
45
  var ColorPickerButton = function ColorPickerButton(props) {
49
46
  var buttonRef = React.useRef(null);
@@ -157,18 +154,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
157
154
  isOpenedByKeyboard: isOpenedByKeyboard,
158
155
  isPopupPositioned: isPopupPositioned,
159
156
  ignoreEscapeKey: props.returnEscToButton
160
- }, fg('react_18_color_picker_concurrent_mode') ? jsx(ColorPaletteWithReactViewListeners, {
161
- cols: props.cols,
162
- selectedColor: selectedColor,
163
- onClick: onColorSelected,
164
- handleClickOutside: togglePopup,
165
- handleEscapeKeydown: handleEsc,
166
- paletteOptions: {
167
- palette: props.colorPalette,
168
- hexToPaletteColor: props.hexToPaletteColor,
169
- paletteColorTooltipMessages: props.paletteColorTooltipMessages
170
- }
171
- }) : jsx(ColorPaletteWithListeners, {
157
+ }, jsx(ColorPaletteWithReactViewListeners, {
172
158
  cols: props.cols,
173
159
  selectedColor: selectedColor,
174
160
  onClick: onColorSelected,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "87.9.0",
3
+ "version": "87.9.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -251,9 +251,6 @@
251
251
  "platform_editor_a11y_table_context_menu": {
252
252
  "type": "boolean"
253
253
  },
254
- "react_18_color_picker_concurrent_mode": {
255
- "type": "boolean"
256
- },
257
254
  "editor_inline_comments_paste_insert_nodes": {
258
255
  "type": "boolean"
259
256
  },