@atlaskit/editor-common 112.8.1 → 112.8.3

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.
Files changed (107) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/card/ui/assets/card.js +1 -1
  3. package/dist/cjs/card/ui/assets/embed.js +1 -1
  4. package/dist/cjs/card/ui/assets/inline.js +1 -1
  5. package/dist/cjs/card/ui/assets/url.js +1 -1
  6. package/dist/cjs/extensibility/Extension/Extension/index.js +3 -3
  7. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  8. package/dist/cjs/extensibility/Extension.js +1 -1
  9. package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +2 -2
  10. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
  11. package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -2
  12. package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
  13. package/dist/cjs/media-inline/inline-image-card.js +1 -1
  14. package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
  15. package/dist/cjs/media-single/CommentBadge.js +1 -1
  16. package/dist/cjs/media-single/CommentBadgeNext.js +1 -1
  17. package/dist/cjs/media-single/MediaBadges.js +1 -1
  18. package/dist/cjs/monitoring/error.js +1 -1
  19. package/dist/cjs/preset/core-plugin/index.js +36 -1
  20. package/dist/cjs/preset/core-plugin/pm-plugins/appearance-plugin.js +36 -0
  21. package/dist/cjs/preset/plugin-injection-api.js +27 -2
  22. package/dist/cjs/react-node-view/onVisibleObserverFactory.js +1 -1
  23. package/dist/cjs/resizer/BreakoutResizer.js +1 -1
  24. package/dist/cjs/resizer/Resizer.js +1 -1
  25. package/dist/cjs/toolbar/context.js +1 -1
  26. package/dist/cjs/ui/ContextPanel/context.js +1 -1
  27. package/dist/cjs/ui/DropList/index.js +1 -1
  28. package/dist/cjs/ui/FloatingToolbar/Button.js +2 -2
  29. package/dist/cjs/ui/Mention/index.js +1 -1
  30. package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
  31. package/dist/cjs/ui/TableSelector/index.js +1 -1
  32. package/dist/cjs/ui-menu/ColorPickerButton/index.js +4 -4
  33. package/dist/cjs/ui-menu/DropdownMenu/index.js +6 -6
  34. package/dist/cjs/utils/commands.js +1 -2
  35. package/dist/es2019/card/ui/assets/card.js +1 -1
  36. package/dist/es2019/card/ui/assets/embed.js +1 -1
  37. package/dist/es2019/card/ui/assets/inline.js +1 -1
  38. package/dist/es2019/card/ui/assets/url.js +1 -1
  39. package/dist/es2019/extensibility/Extension/Extension/index.js +3 -3
  40. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  41. package/dist/es2019/extensibility/Extension.js +1 -1
  42. package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +2 -2
  43. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
  44. package/dist/es2019/link/LinkSearch/LinkSearchList.js +2 -2
  45. package/dist/es2019/link/LinkSearch/withActivityProvider.js +1 -1
  46. package/dist/es2019/media-inline/inline-image-card.js +1 -1
  47. package/dist/es2019/media-inline/media-inline-image-card.js +2 -2
  48. package/dist/es2019/media-single/CommentBadge.js +1 -1
  49. package/dist/es2019/media-single/CommentBadgeNext.js +1 -1
  50. package/dist/es2019/media-single/MediaBadges.js +1 -1
  51. package/dist/es2019/monitoring/error.js +1 -1
  52. package/dist/es2019/preset/core-plugin/index.js +34 -1
  53. package/dist/es2019/preset/core-plugin/pm-plugins/appearance-plugin.js +24 -0
  54. package/dist/es2019/preset/plugin-injection-api.js +25 -2
  55. package/dist/es2019/react-node-view/onVisibleObserverFactory.js +2 -0
  56. package/dist/es2019/resizer/BreakoutResizer.js +1 -1
  57. package/dist/es2019/resizer/Resizer.js +1 -1
  58. package/dist/es2019/toolbar/context.js +1 -1
  59. package/dist/es2019/ui/ContextPanel/context.js +1 -1
  60. package/dist/es2019/ui/DropList/index.js +1 -1
  61. package/dist/es2019/ui/FloatingToolbar/Button.js +2 -2
  62. package/dist/es2019/ui/Mention/index.js +1 -1
  63. package/dist/es2019/ui/ResizerLegacy/index.js +1 -1
  64. package/dist/es2019/ui/TableSelector/index.js +1 -1
  65. package/dist/es2019/ui-menu/ColorPickerButton/index.js +4 -4
  66. package/dist/es2019/ui-menu/DropdownMenu/index.js +6 -6
  67. package/dist/es2019/utils/commands.js +1 -2
  68. package/dist/esm/card/ui/assets/card.js +1 -1
  69. package/dist/esm/card/ui/assets/embed.js +1 -1
  70. package/dist/esm/card/ui/assets/inline.js +1 -1
  71. package/dist/esm/card/ui/assets/url.js +1 -1
  72. package/dist/esm/extensibility/Extension/Extension/index.js +3 -3
  73. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  74. package/dist/esm/extensibility/Extension.js +1 -1
  75. package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +2 -2
  76. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
  77. package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -2
  78. package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
  79. package/dist/esm/media-inline/inline-image-card.js +1 -1
  80. package/dist/esm/media-inline/media-inline-image-card.js +2 -2
  81. package/dist/esm/media-single/CommentBadge.js +1 -1
  82. package/dist/esm/media-single/CommentBadgeNext.js +1 -1
  83. package/dist/esm/media-single/MediaBadges.js +1 -1
  84. package/dist/esm/monitoring/error.js +1 -1
  85. package/dist/esm/preset/core-plugin/index.js +36 -1
  86. package/dist/esm/preset/core-plugin/pm-plugins/appearance-plugin.js +28 -0
  87. package/dist/esm/preset/plugin-injection-api.js +27 -2
  88. package/dist/esm/react-node-view/onVisibleObserverFactory.js +2 -0
  89. package/dist/esm/resizer/BreakoutResizer.js +1 -1
  90. package/dist/esm/resizer/Resizer.js +1 -1
  91. package/dist/esm/toolbar/context.js +1 -1
  92. package/dist/esm/ui/ContextPanel/context.js +1 -1
  93. package/dist/esm/ui/DropList/index.js +1 -1
  94. package/dist/esm/ui/FloatingToolbar/Button.js +2 -2
  95. package/dist/esm/ui/Mention/index.js +1 -1
  96. package/dist/esm/ui/ResizerLegacy/index.js +1 -1
  97. package/dist/esm/ui/TableSelector/index.js +1 -1
  98. package/dist/esm/ui-menu/ColorPickerButton/index.js +4 -4
  99. package/dist/esm/ui-menu/DropdownMenu/index.js +6 -6
  100. package/dist/esm/utils/commands.js +1 -2
  101. package/dist/types/preset/core-plugin/pm-plugins/appearance-plugin.d.ts +9 -0
  102. package/dist/types/preset/plugin-injection-api.d.ts +11 -1
  103. package/dist/types/types/next-editor-plugin.d.ts +15 -0
  104. package/dist/types-ts4.5/preset/core-plugin/pm-plugins/appearance-plugin.d.ts +9 -0
  105. package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +11 -1
  106. package/dist/types-ts4.5/types/next-editor-plugin.d.ts +15 -0
  107. package/package.json +3 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 112.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`14174d5130d27`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14174d5130d27) -
8
+ Adding editorAppearance in coreplugin shared state so that plugins can access appearance value
9
+ when updated
10
+ - Updated dependencies
11
+
12
+ ## 112.8.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [`23ec129dbbb34`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/23ec129dbbb34) -
17
+ [FFCLEANUP-74122] clean up feature flag platform_editor_blocktaskitem_patch_3
18
+ - Updated dependencies
19
+
3
20
  ## 112.8.1
4
21
 
5
22
  ### Patch Changes
@@ -31,7 +31,7 @@ var IconCard = exports.IconCard = function IconCard(_ref2) {
31
31
  var label = _ref2.label;
32
32
  return /*#__PURE__*/_react.default.createElement(IconCardGlyph, {
33
33
  "aria-label": label
34
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
34
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
35
35
  ,
36
36
  style: {
37
37
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -31,7 +31,7 @@ var IconEmbed = exports.IconEmbed = function IconEmbed(_ref2) {
31
31
  var label = _ref2.label;
32
32
  return /*#__PURE__*/_react.default.createElement(IconEmbedGlyph, {
33
33
  "aria-label": label
34
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
34
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
35
35
  ,
36
36
  style: {
37
37
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -31,7 +31,7 @@ var IconInline = exports.IconInline = function IconInline(_ref2) {
31
31
  var label = _ref2.label;
32
32
  return /*#__PURE__*/_react.default.createElement(IconInlineGlyph, {
33
33
  "aria-label": label
34
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
34
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
35
35
  ,
36
36
  style: {
37
37
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -33,7 +33,7 @@ var IconUrl = exports.IconUrl = function IconUrl(_ref2) {
33
33
  var label = _ref2.label;
34
34
  return /*#__PURE__*/_react.default.createElement(IconUrlGlyph, {
35
35
  "aria-label": label
36
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
36
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
37
37
  ,
38
38
  style: {
39
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -149,12 +149,12 @@ function ExtensionWithPluginState(props) {
149
149
  return (0, _react2.jsx)(_react.Fragment, null, (0, _expValEquals.expValEquals)('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && (0, _react2.jsx)(_LegacyContentHeader.LegacyContentHeader, {
150
150
  isNodeSelected: isNodeSelected,
151
151
  isNodeHovered: isNodeHovered
152
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
152
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
153
153
  ,
154
154
  onMouseEnter: function onMouseEnter() {
155
155
  return handleMouseEvent(true);
156
156
  }
157
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
157
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
158
158
  ,
159
159
  onMouseLeave: function onMouseLeave() {
160
160
  return handleMouseEvent(false);
@@ -254,7 +254,7 @@ var Extension = function Extension(props) {
254
254
 
255
255
  // Ignored via go/ees005
256
256
  return (0, _react2.jsx)(ExtensionWithPluginState
257
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
257
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
258
258
  , (0, _extends2.default)({
259
259
  widthState: {
260
260
  width: width !== null && width !== void 0 ? width : 0,
@@ -190,7 +190,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
190
190
  // Ignored via go/ees005
191
191
  // eslint-disable-next-line react/jsx-props-no-spreading
192
192
  , (0, _extends2.default)({}, i18n.configure, {
193
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
193
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
194
194
  values: {
195
195
  macroName: text
196
196
  }
@@ -86,7 +86,7 @@ var Extension = exports.Extension = /*#__PURE__*/function (_Component) {
86
86
  key: "render",
87
87
  value: function render() {
88
88
  return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
89
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
89
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
90
90
  , {
91
91
  providers: ['extensionProvider'],
92
92
  providerFactory: this.providerFactory,
@@ -71,7 +71,7 @@ var Dropdown = function Dropdown(_ref) {
71
71
  focusEditor();
72
72
  }, [fireActionClickEvent, focusEditor, onConfigureClickCallback]);
73
73
  return (0, _react2.jsx)(_dropdownMenu.default, {
74
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
74
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
75
75
  trigger: function trigger(_ref3) {
76
76
  var _onClick = _ref3.onClick,
77
77
  triggerRef = _ref3.triggerRef,
@@ -85,7 +85,7 @@ var Dropdown = function Dropdown(_ref) {
85
85
  label: configureLinkLabel,
86
86
  size: "small"
87
87
  })
88
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
88
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
89
89
  ,
90
90
  onClick: function onClick(e) {
91
91
  _onClick === null || _onClick === void 0 || _onClick(e);
@@ -44,11 +44,11 @@ function HyperlinkAddToolbar(_ref2) {
44
44
  timesViewed = _ref2.timesViewed,
45
45
  isOffline = _ref2.isOffline;
46
46
  return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
47
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
47
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
48
48
  , {
49
49
  providers: ['activityProvider', 'searchProvider'],
50
50
  providerFactory: providerFactory
51
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
51
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
52
52
  ,
53
53
  renderNode: function renderNode(_ref3) {
54
54
  var activityProvider = _ref3.activityProvider,
@@ -59,7 +59,7 @@ var LinkSearchList = function LinkSearchList(_ref) {
59
59
  id: "link-search-list-item-".concat(index),
60
60
  item: item,
61
61
  selected: selectedIndex === index
62
- // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
62
+ // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
63
63
  ,
64
64
  onFocus: function onFocus() {
65
65
  return _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(index);
@@ -70,7 +70,7 @@ var LinkSearchList = function LinkSearchList(_ref) {
70
70
  onMouseLeave: onMouseLeave,
71
71
  onSelect: onSelect,
72
72
  key: item.objectId
73
- // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
73
+ // eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
74
74
  ,
75
75
  ref: function ref(el) {
76
76
  return listItemRefCallback === null || listItemRefCallback === void 0 ? void 0 : listItemRefCallback(el, item.objectId);
@@ -49,7 +49,7 @@ function withActivityProvider(WrappedComponent) {
49
49
  value: function render() {
50
50
  var providerFactory = this.props.providerFactory;
51
51
  return /*#__PURE__*/_react.default.createElement(_providerFactory2.WithProviders
52
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
52
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
53
53
  , {
54
54
  providers: ['activityProvider'],
55
55
  providerFactory: providerFactory,
@@ -60,7 +60,7 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
60
60
  dataURI: preview.dataURI,
61
61
  alt: alt,
62
62
  previewOrientation: preview.orientation
63
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
63
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
64
64
  ,
65
65
  onImageLoad: function onImageLoad() {
66
66
  _onImageLoad(preview);
@@ -144,7 +144,7 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
144
144
  }, (0, _react2.jsx)(_inlineImageCard.InlineImageCard, {
145
145
  dimensions: dimensions,
146
146
  identifier: identifier
147
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
147
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
148
148
  ,
149
149
  renderError: function renderError() {
150
150
  return (0, _react2.jsx)(_errorView.InlineImageCardErrorView, {
@@ -217,7 +217,7 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
217
217
  if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
218
218
  return /*#__PURE__*/_reactDom.default.createPortal((0, _react2.jsx)(_mediaViewer.MediaViewer, {
219
219
  collectionName: identifier.collectionName || ''
220
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
220
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
221
221
  ,
222
222
  items: [identifier],
223
223
  mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
@@ -98,7 +98,7 @@ var CommentBadge = exports.CommentBadge = /*#__PURE__*/(0, _react.forwardRef)(fu
98
98
  position: "top",
99
99
  content: title
100
100
  }, (0, _react2.jsx)(_customThemeButton.default
101
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
101
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
102
102
  , {
103
103
  style: {
104
104
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -44,7 +44,7 @@ var CommentBadgeNext = exports.CommentBadgeNext = function CommentBadgeNext(_ref
44
44
  position: "top",
45
45
  content: title
46
46
  }, /*#__PURE__*/_react.default.createElement(_primitives.Pressable
47
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
47
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
48
48
  , {
49
49
  xcss: [baseStyles, mediumBadgeStyles],
50
50
  padding: "space.0",
@@ -92,7 +92,7 @@ var MediaBadges = exports.MediaBadges = function MediaBadges(_ref) {
92
92
  testId: "media-badges",
93
93
  "data-media-badges": "true",
94
94
  contentEditable: false
95
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
95
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
96
96
  ,
97
97
  xcss: [containerStyles, useMinimumZIndex && hackedZIndexStyles, extendedResizeOffset && resizeOffsetStyles]
98
98
  }, children);
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "112.8.0";
22
+ var packageVersion = "112.8.2";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -9,6 +9,7 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
9
  var _nodeAnchorProvider = require("../../node-anchor/node-anchor-provider");
10
10
  var _processRawValue = require("../../utils/processRawValue");
11
11
  var _editorCommands = require("../editor-commands");
12
+ var _appearancePlugin = require("./pm-plugins/appearance-plugin");
12
13
  var _requestDocument = require("./requestDocument");
13
14
  /**
14
15
  * Core plugin that is always included in the preset.
@@ -22,10 +23,23 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
22
23
  return {
23
24
  name: 'core',
24
25
  getSharedState: function getSharedState(state) {
26
+ var pluginState = state && _appearancePlugin.appearancePluginKey.getState(state);
25
27
  return {
26
- schema: state === null || state === void 0 ? void 0 : state.schema
28
+ schema: state === null || state === void 0 ? void 0 : state.schema,
29
+ appearance: (0, _expValEquals.expValEquals)('platform_editor_appearance_shared_state', 'isEnabled', true) ? pluginState === null || pluginState === void 0 ? void 0 : pluginState.appearance : undefined
27
30
  };
28
31
  },
32
+ pmPlugins: function pmPlugins() {
33
+ if ((0, _expValEquals.expValEquals)('platform_editor_appearance_shared_state', 'isEnabled', true)) {
34
+ return [{
35
+ name: 'appearancePlugin',
36
+ plugin: function plugin() {
37
+ return (0, _appearancePlugin.createAppearancePlugin)(config === null || config === void 0 ? void 0 : config.appearance);
38
+ }
39
+ }];
40
+ }
41
+ return [];
42
+ },
29
43
  actions: {
30
44
  execute: function execute(command) {
31
45
  var editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
@@ -84,6 +98,27 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
84
98
  dom.scrollIntoView(scrollOptions);
85
99
  return true;
86
100
  },
101
+ updateAppearance: function updateAppearance(newAppearance) {
102
+ var _appearancePluginKey$;
103
+ if (!(0, _expValEquals.expValEquals)('platform_editor_appearance_shared_state', 'isEnabled', true)) {
104
+ return false;
105
+ }
106
+ var editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
107
+ if (!editorView) {
108
+ return false;
109
+ }
110
+ // Avoid dispatching a redundant transaction if appearance hasn't changed
111
+ var currentAppearance = (_appearancePluginKey$ = _appearancePlugin.appearancePluginKey.getState(editorView.state)) === null || _appearancePluginKey$ === void 0 ? void 0 : _appearancePluginKey$.appearance;
112
+ if (currentAppearance === newAppearance) {
113
+ return false;
114
+ }
115
+ var tr = editorView.state.tr.setMeta(_appearancePlugin.appearancePluginKey, {
116
+ appearance: newAppearance
117
+ });
118
+ tr.setMeta('addToHistory', false);
119
+ editorView.dispatch(tr);
120
+ return true;
121
+ },
87
122
  replaceDocument: function replaceDocument(replaceValue, options) {
88
123
  var editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
89
124
  if (!editorView || replaceValue === undefined || replaceValue === null) {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.appearancePluginKey = void 0;
8
+ exports.createAppearancePlugin = createAppearancePlugin;
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
+ var _state = require("@atlaskit/editor-prosemirror/state");
11
+ var _safePlugin = require("../../../safe-plugin");
12
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
+ var appearancePluginKey = exports.appearancePluginKey = new _state.PluginKey('appearancePlugin');
15
+ var DEFAULT_APPEARANCE = 'comment';
16
+ function createAppearancePlugin(initialAppearance) {
17
+ return new _safePlugin.SafePlugin({
18
+ key: appearancePluginKey,
19
+ state: {
20
+ init: function init() {
21
+ return {
22
+ appearance: initialAppearance !== null && initialAppearance !== void 0 ? initialAppearance : DEFAULT_APPEARANCE
23
+ };
24
+ },
25
+ apply: function apply(tr, pluginState) {
26
+ var meta = tr.getMeta(appearancePluginKey);
27
+ if ((meta === null || meta === void 0 ? void 0 : meta.appearance) !== undefined) {
28
+ return _objectSpread(_objectSpread({}, pluginState), {}, {
29
+ appearance: meta.appearance
30
+ });
31
+ }
32
+ return pluginState;
33
+ }
34
+ }
35
+ });
36
+ }
@@ -288,7 +288,8 @@ var EditorPluginInjectionAPI = exports.EditorPluginInjectionAPI = /*#__PURE__*/f
288
288
  var _this2 = this;
289
289
  var getEditorState = _ref6.getEditorState,
290
290
  getEditorView = _ref6.getEditorView,
291
- fireAnalyticsEvent = _ref6.fireAnalyticsEvent;
291
+ fireAnalyticsEvent = _ref6.fireAnalyticsEvent,
292
+ appearance = _ref6.appearance;
292
293
  (0, _classCallCheck2.default)(this, EditorPluginInjectionAPI);
293
294
  (0, _defineProperty2.default)(this, "onEditorViewUpdated", function (_ref7) {
294
295
  var newEditorState = _ref7.newEditorState,
@@ -321,15 +322,39 @@ var EditorPluginInjectionAPI = exports.EditorPluginInjectionAPI = /*#__PURE__*/f
321
322
  this.plugins = new Map();
322
323
  this.actionsAPI = new ActionsAPI();
323
324
  this.commandsAPI = new EditorCommandsAPI();
325
+
324
326
  // Special core plugin that is always added
325
327
  this.addPlugin((0, _corePlugin.corePlugin)({
326
328
  config: {
327
329
  getEditorView: getEditorView,
328
- fireAnalyticsEvent: fireAnalyticsEvent
330
+ fireAnalyticsEvent: fireAnalyticsEvent,
331
+ appearance: appearance
329
332
  }
330
333
  }));
331
334
  }
335
+
336
+ /**
337
+ * Returns PM plugins from internally-registered plugins (e.g. the core plugin)
338
+ * that are not processed through the normal preset builder flow.
339
+ */
340
+ // Ignored via go/ees005
341
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
332
342
  return (0, _createClass2.default)(EditorPluginInjectionAPI, [{
343
+ key: "getInternalPMPlugins",
344
+ value: function getInternalPMPlugins() {
345
+ // Ignored via go/ees005
346
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
347
+ var result = [];
348
+ var corePlugin = this.plugins.get('core');
349
+ if (corePlugin && typeof corePlugin.pmPlugins === 'function') {
350
+ var pmPlugins = corePlugin.pmPlugins();
351
+ if (pmPlugins) {
352
+ result.push.apply(result, (0, _toConsumableArray2.default)(pmPlugins));
353
+ }
354
+ }
355
+ return result;
356
+ }
357
+ }, {
333
358
  key: "createAPI",
334
359
  value: function createAPI() {
335
360
  var sharedStateAPI = this.sharedStateAPI,
@@ -8,7 +8,7 @@ exports.getOrCreateOnVisibleObserver = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _memoize = _interopRequireDefault(require("lodash/memoize"));
10
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // oxlint-disable-next-line @atlassian/no-restricted-imports
12
12
  // Use this selector to set the intersection observer boundary for editor's inline node views
13
13
  // If this does not exist, it will use the IntersectionObserver's default root
14
14
  var INTERSECTION_OBSERVER_ROOT_SELECTOR = '[data-editor-scroll-container="true"]';
@@ -332,7 +332,7 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
332
332
  }
333
333
  return /*#__PURE__*/_react.default.createElement(_Resizer.default, {
334
334
  ref: resizerRef
335
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
335
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
336
336
  ,
337
337
  enable: {
338
338
  left: true,
@@ -204,7 +204,7 @@ var ResizerNext = function ResizerNext(props, ref) {
204
204
  }, [snap, snapGap]);
205
205
  return /*#__PURE__*/_react.default.createElement(_reResizable.Resizable, (0, _extends2.default)({
206
206
  ref: resizable
207
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
207
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
208
208
  ,
209
209
  size: {
210
210
  width: width !== null && width !== void 0 ? width : 'auto',
@@ -32,7 +32,7 @@ var EditorToolbarProvider = exports.EditorToolbarProvider = function EditorToolb
32
32
  editorToolbarDockingPreference = _ref.editorToolbarDockingPreference,
33
33
  isOffline = _ref.isOffline;
34
34
  return /*#__PURE__*/_react.default.createElement(EditorToolbarContext.Provider, {
35
- // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
35
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
36
36
  value: {
37
37
  editorView: editorView,
38
38
  editorAppearance: editorAppearance,
@@ -72,7 +72,7 @@ var ContextPanelWidthProvider = exports.ContextPanelWidthProvider = /*#__PURE__*
72
72
  width = _this$state.width,
73
73
  positionedOverEditor = _this$state.positionedOverEditor;
74
74
  return /*#__PURE__*/_react.default.createElement(Provider
75
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
75
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
76
76
  , {
77
77
  value: {
78
78
  width: width,
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "112.8.0";
27
+ var packageVersion = "112.8.2";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -104,7 +104,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
104
104
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
105
105
  , {
106
106
  className: className
107
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
107
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
108
108
  ,
109
109
  ref: function ref(buttonElement) {
110
110
  setSpotlightReferenceElement(buttonElement);
@@ -116,7 +116,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
116
116
  }
117
117
  }
118
118
  }
119
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
119
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
120
120
  ,
121
121
  theme: function theme(adgTheme, themeProps) {
122
122
  var _adgTheme = adgTheme(themeProps),
@@ -59,7 +59,7 @@ var Mention = exports.default = /*#__PURE__*/function (_PureComponent) {
59
59
  key: "render",
60
60
  value: function render() {
61
61
  return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
62
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
62
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
63
63
  , {
64
64
  providers: ['mentionProvider', 'profilecardProvider'],
65
65
  providerFactory: this.providerFactory,
@@ -195,7 +195,7 @@ var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
195
195
  // the div. For now, we just apply the same styles using CSS
196
196
  return /*#__PURE__*/_react.default.createElement(_reResizable.Resizable, {
197
197
  ref: this.resizable
198
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
198
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
199
199
  ,
200
200
  size: {
201
201
  width: nonZeroWidth,
@@ -241,7 +241,7 @@ var TableSelectorPopup = exports.TableSelectorPopup = function TableSelectorPopu
241
241
  }, [handleMouseMove, props.allowOutsideSelection, tablePopupRef]);
242
242
  return (0, _react2.jsx)(_Popup.default, {
243
243
  target: props.target
244
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
244
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
245
245
  ,
246
246
  offset: [0, 3],
247
247
  mountTo: props.popupsMountPoint,
@@ -157,7 +157,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
157
157
  target: buttonRef.current,
158
158
  fitHeight: 350,
159
159
  fitWidth: 350
160
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
160
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
161
161
  ,
162
162
  offset: [0, 10],
163
163
  alignX: props.alignX,
@@ -178,7 +178,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
178
178
  selectedRowIndex: selectedRowIndex,
179
179
  selectedColumnIndex: selectedColumnIndex,
180
180
  closeOnTab: true
181
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
181
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
182
182
  ,
183
183
  handleClose: function handleClose() {
184
184
  return setIsPopupOpen(false);
@@ -192,7 +192,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
192
192
  onClick: onColorSelected,
193
193
  handleClickOutside: togglePopup,
194
194
  handleEscapeKeydown: handleEsc
195
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
195
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
196
196
  ,
197
197
  paletteOptions: {
198
198
  palette: props.colorPalette,
@@ -242,7 +242,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
242
242
  "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
243
243
  spacing: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? 'default' : 'compact',
244
244
  onClick: togglePopup
245
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
245
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
246
246
  ,
247
247
  onKeyDown: function onKeyDown(event) {
248
248
  if (event.key === 'Enter' || event.key === ' ') {
@@ -199,7 +199,7 @@ var DropdownMenuWrapper = exports.default = /*#__PURE__*/function (_PureComponen
199
199
  shouldFitContainer: true,
200
200
  handleClickOutside: this.handleClose,
201
201
  handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
202
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
202
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
203
203
  ,
204
204
  handleEnterKeydown: function handleEnterKeydown(e) {
205
205
  if (!allowEnterDefaultBehavior) {
@@ -338,7 +338,7 @@ function DropdownMenuItem(_ref) {
338
338
  iconBefore: item.elemBefore,
339
339
  iconAfter: item.elemAfter,
340
340
  isDisabled: item.isDisabled
341
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
341
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
342
342
  ,
343
343
  onClick: function onClick() {
344
344
  return onItemActivated && onItemActivated({
@@ -348,20 +348,20 @@ function DropdownMenuItem(_ref) {
348
348
  "aria-label": ariaLabel,
349
349
  "aria-pressed": shouldUseDefaultRole ? item.isActive : undefined,
350
350
  "aria-keyshortcuts": item['aria-keyshortcuts']
351
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
351
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
352
352
  ,
353
353
  onMouseDown: function onMouseDown(e) {
354
354
  e.preventDefault();
355
355
  },
356
356
  component: DropdownMenuItemCustomComponent
357
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
357
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
358
358
  ,
359
359
  onMouseEnter: function onMouseEnter() {
360
360
  return _onMouseEnter && _onMouseEnter({
361
361
  item: item
362
362
  });
363
363
  }
364
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
364
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
365
365
  ,
366
366
  onMouseLeave: function onMouseLeave() {
367
367
  return _onMouseLeave && _onMouseLeave({
@@ -390,7 +390,7 @@ function (_ref2) {
390
390
  // This context is to handle the tab, Arrow Right/Left key events for dropdown.
391
391
  // Default context has the void callbacks for above key events
392
392
  return (0, _react2.jsx)(DropdownMenuWrapper
393
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
393
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
394
394
  , (0, _extends2.default)({
395
395
  arrowKeyNavigationProviderOptions: _objectSpread(_objectSpread({}, props.arrowKeyNavigationProviderOptions), {}, {
396
396
  keyDownHandlerContext: keyDownHandlerContext
@@ -14,7 +14,6 @@ exports.walkPrevNode = exports.walkNextNode = exports.isEmptySelectionAtStart =
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
15
  var _model = require("@atlaskit/editor-prosemirror/model");
16
16
  var _state = require("@atlaskit/editor-prosemirror/state");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
19
18
  var _analytics = require("../analytics");
20
19
  var _editorAnalytics = require("../editor-analytics");
@@ -326,7 +325,7 @@ var isEmptySelectionAtEnd = exports.isEmptySelectionAtEnd = function isEmptySele
326
325
 
327
326
  // If blockTaskItem is in the schema,
328
327
  // we need to check if the selection is inside a blockTaskItem
329
- if (blockTaskItem && empty && (0, _platformFeatureFlags.fg)('platform_editor_blocktaskitem_patch_3')) {
328
+ if (blockTaskItem && empty) {
330
329
  // If the parent is in a textblock,
331
330
  // check if it's nested inside a blockTaskItem
332
331
  if ($from.parent.isTextblock) {