@atlaskit/editor-core 219.2.3 → 219.3.0

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,17 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 219.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`54ae29f5b3a2c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/54ae29f5b3a2c) -
8
+ Clean up feature gate platform_editor_primary_toolbar_early_exit - promote early exit behaviour
9
+ for empty primary toolbar as default
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 219.2.3
4
16
 
5
17
  ### Patch Changes
@@ -14,6 +14,6 @@ var editorMessages = exports.editorMessages = (0, _reactIntl.defineMessages)({
14
14
  fullPageEditorAssistiveLabel: {
15
15
  id: 'fabric.editor.fullPageEditorAssistiveLabel',
16
16
  defaultMessage: 'Page editing area, start typing to enter text.',
17
- description: 'The aria-label for the full page editor'
17
+ description: 'The aria-label assigned to the full page editor content area, read by screen readers when a user focuses the editing region.'
18
18
  }
19
19
  });
@@ -110,14 +110,13 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
110
110
  event.preventDefault();
111
111
  event.stopPropagation();
112
112
  }, [editorView]);
113
- if ((0, _expValEquals.expValEquals)('platform_editor_primary_toolbar_early_exit', 'isEnabled', true)) {
114
- // Remove entire primary toolbar region if:
115
- // - primary toolbar isn't registered
116
- // - no custom primary toolbar components to render
117
- // note: primary toolbar must render if toolbar docking preference is set to "controlled" to avoid SSR conflicts
118
- if (!shouldShowToolbarContainer(toolbar, customPrimaryToolbarComponents)) {
119
- return /*#__PURE__*/_react.default.createElement(ToolbarPortal, null, null);
120
- }
113
+
114
+ // Remove entire primary toolbar region if:
115
+ // - primary toolbar isn't registered
116
+ // - no custom primary toolbar components to render
117
+ // note: primary toolbar must render if toolbar docking preference is set to "controlled" to avoid SSR conflicts
118
+ if (!shouldShowToolbarContainer(toolbar, customPrimaryToolbarComponents)) {
119
+ return /*#__PURE__*/_react.default.createElement(ToolbarPortal, null, null);
121
120
  }
122
121
  if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_two_stage_hydration', 'isEnabled', true)) {
123
122
  return /*#__PURE__*/_react.default.createElement(_contextPanel.ContextPanelConsumer, null, function (_ref6) {
@@ -9,6 +9,6 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  toolbarHelpTitle: {
10
10
  id: 'fabric.editor.headingLink.toolbarHelpTitle',
11
11
  defaultMessage: 'Open help dialog',
12
- description: 'a label for a button that provides help'
12
+ description: 'Label for the toolbar help button in the editor. When clicked, this button opens the help dialog.'
13
13
  }
14
14
  });
@@ -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 = "0.0.0-development";
8
+ var version = exports.version = "219.2.3";
@@ -8,6 +8,6 @@ export const editorMessages = defineMessages({
8
8
  fullPageEditorAssistiveLabel: {
9
9
  id: 'fabric.editor.fullPageEditorAssistiveLabel',
10
10
  defaultMessage: 'Page editing area, start typing to enter text.',
11
- description: 'The aria-label for the full page editor'
11
+ description: 'The aria-label assigned to the full page editor content area, read by screen readers when a user focuses the editing region.'
12
12
  }
13
13
  });
@@ -104,14 +104,13 @@ export const FullPageToolbarNext = ({
104
104
  event.preventDefault();
105
105
  event.stopPropagation();
106
106
  }, [editorView]);
107
- if (expValEquals('platform_editor_primary_toolbar_early_exit', 'isEnabled', true)) {
108
- // Remove entire primary toolbar region if:
109
- // - primary toolbar isn't registered
110
- // - no custom primary toolbar components to render
111
- // note: primary toolbar must render if toolbar docking preference is set to "controlled" to avoid SSR conflicts
112
- if (!shouldShowToolbarContainer(toolbar, customPrimaryToolbarComponents)) {
113
- return /*#__PURE__*/React.createElement(ToolbarPortal, null, null);
114
- }
107
+
108
+ // Remove entire primary toolbar region if:
109
+ // - primary toolbar isn't registered
110
+ // - no custom primary toolbar components to render
111
+ // note: primary toolbar must render if toolbar docking preference is set to "controlled" to avoid SSR conflicts
112
+ if (!shouldShowToolbarContainer(toolbar, customPrimaryToolbarComponents)) {
113
+ return /*#__PURE__*/React.createElement(ToolbarPortal, null, null);
115
114
  }
116
115
  if (expValEquals('platform_editor_toolbar_two_stage_hydration', 'isEnabled', true)) {
117
116
  return /*#__PURE__*/React.createElement(ContextPanelConsumer, null, ({
@@ -3,6 +3,6 @@ export const messages = defineMessages({
3
3
  toolbarHelpTitle: {
4
4
  id: 'fabric.editor.headingLink.toolbarHelpTitle',
5
5
  defaultMessage: 'Open help dialog',
6
- description: 'a label for a button that provides help'
6
+ description: 'Label for the toolbar help button in the editor. When clicked, this button opens the help dialog.'
7
7
  }
8
8
  });
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "0.0.0-development";
2
+ export const version = "219.2.3";
@@ -8,6 +8,6 @@ export var editorMessages = defineMessages({
8
8
  fullPageEditorAssistiveLabel: {
9
9
  id: 'fabric.editor.fullPageEditorAssistiveLabel',
10
10
  defaultMessage: 'Page editing area, start typing to enter text.',
11
- description: 'The aria-label for the full page editor'
11
+ description: 'The aria-label assigned to the full page editor content area, read by screen readers when a user focuses the editing region.'
12
12
  }
13
13
  });
@@ -101,14 +101,13 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
101
101
  event.preventDefault();
102
102
  event.stopPropagation();
103
103
  }, [editorView]);
104
- if (expValEquals('platform_editor_primary_toolbar_early_exit', 'isEnabled', true)) {
105
- // Remove entire primary toolbar region if:
106
- // - primary toolbar isn't registered
107
- // - no custom primary toolbar components to render
108
- // note: primary toolbar must render if toolbar docking preference is set to "controlled" to avoid SSR conflicts
109
- if (!shouldShowToolbarContainer(toolbar, customPrimaryToolbarComponents)) {
110
- return /*#__PURE__*/React.createElement(ToolbarPortal, null, null);
111
- }
104
+
105
+ // Remove entire primary toolbar region if:
106
+ // - primary toolbar isn't registered
107
+ // - no custom primary toolbar components to render
108
+ // note: primary toolbar must render if toolbar docking preference is set to "controlled" to avoid SSR conflicts
109
+ if (!shouldShowToolbarContainer(toolbar, customPrimaryToolbarComponents)) {
110
+ return /*#__PURE__*/React.createElement(ToolbarPortal, null, null);
112
111
  }
113
112
  if (expValEquals('platform_editor_toolbar_two_stage_hydration', 'isEnabled', true)) {
114
113
  return /*#__PURE__*/React.createElement(ContextPanelConsumer, null, function (_ref6) {
@@ -3,6 +3,6 @@ export var messages = defineMessages({
3
3
  toolbarHelpTitle: {
4
4
  id: 'fabric.editor.headingLink.toolbarHelpTitle',
5
5
  defaultMessage: 'Open help dialog',
6
- description: 'a label for a button that provides help'
6
+ description: 'Label for the toolbar help button in the editor. When clicked, this button opens the help dialog.'
7
7
  }
8
8
  });
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "0.0.0-development";
2
+ export var version = "219.2.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "219.2.3",
3
+ "version": "219.3.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -72,9 +72,9 @@
72
72
  "@atlaskit/mention": "^25.0.0",
73
73
  "@atlaskit/platform-feature-flags": "^1.1.0",
74
74
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
75
- "@atlaskit/react-ufo": "^5.18.0",
75
+ "@atlaskit/react-ufo": "^5.19.0",
76
76
  "@atlaskit/task-decision": "^20.0.0",
77
- "@atlaskit/tmp-editor-statsig": "^74.8.0",
77
+ "@atlaskit/tmp-editor-statsig": "^75.0.0",
78
78
  "@atlaskit/tokens": "^13.0.0",
79
79
  "@atlaskit/tooltip": "^22.0.0",
80
80
  "@atlaskit/width-detector": "^5.1.0",
@@ -106,7 +106,7 @@
106
106
  "@atlaskit/adf-utils": "^19.29.0",
107
107
  "@atlaskit/analytics-listeners": "^10.0.0",
108
108
  "@atlaskit/collab-provider": "^18.1.0",
109
- "@atlaskit/editor-plugin-annotation": "^10.1.0",
109
+ "@atlaskit/editor-plugin-annotation": "^10.2.0",
110
110
  "@atlaskit/editor-plugin-card": "^16.5.0",
111
111
  "@atlaskit/editor-plugin-list": "^12.0.0",
112
112
  "@atlaskit/editor-plugin-paste": "^11.1.0",