@atlaskit/editor-core 221.16.0 → 221.16.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,15 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 221.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2bf1a4ceaf0a4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2bf1a4ceaf0a4) -
8
+ Clean up stale feature gates platform_editor_fix_md_empty_list_roundtrip,
9
+ platform_editor_md-mode-use-content-reconciler, platform_editor_toolbar_mode_override,
10
+ platform_editor_markdown_mode_hide_source_toolbar
11
+ - Updated dependencies
12
+
3
13
  ## 221.16.0
4
14
 
5
15
  ### Minor Changes
@@ -91,7 +91,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
91
91
  // (no PM selection to anchor a floating toolbar to). The user's docking
92
92
  // pref alone is not enough to decide whether to mount the primary toolbar
93
93
  // in that case — the override has to short-circuit the hide gate below.
94
- var forcePrimaryToolbarPinned = state.contextualFormattingModeOverride === 'always-pinned' && (0, _platformFeatureFlags.fg)('platform_editor_toolbar_mode_override');
94
+ var forcePrimaryToolbarPinned = state.contextualFormattingModeOverride === 'always-pinned';
95
95
  var interactionState = state.interactionState;
96
96
  var primaryToolbarState = (0, _getPrimaryToolbarComponents.getPrimaryToolbarComponents)(editorAPI, state.primaryToolbarComponents);
97
97
  var hasHadInteraction = interactionState !== 'hasNotHadInteraction';
@@ -64,7 +64,7 @@ var shouldShowToolbarContainer = function shouldShowToolbarContainer(toolbar, cu
64
64
  return !!toolbar || !!customPrimaryToolbarComponents;
65
65
  };
66
66
  var getToolbarComponentsForMarkdownView = function getToolbarComponentsForMarkdownView(components, markdownModeView, isConvertedMarkdownPreview) {
67
- if ((markdownModeView === 'syntax' || markdownModeView === 'preview') && (0, _platformFeatureFlags.fg)('platform_editor_markdown_mode_hide_source_toolbar')) {
67
+ if (markdownModeView === 'syntax' || markdownModeView === 'preview') {
68
68
  // Converted markdown live pages in preview should show full toolbar content
69
69
  // so preference-based docking can work consistently.
70
70
  if (isConvertedMarkdownPreview) {
@@ -92,8 +92,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
92
92
  var _states$toolbarState;
93
93
  return (_states$toolbarState = states.toolbarState) === null || _states$toolbarState === void 0 ? void 0 : _states$toolbarState.contextualFormattingModeOverride;
94
94
  });
95
- var effectiveRuntimeOverride = runtimeOverride !== undefined && (0, _platformFeatureFlags.fg)('platform_editor_toolbar_mode_override') ? runtimeOverride : undefined;
96
- var contextualFormattingEnabled = effectiveRuntimeOverride !== null && effectiveRuntimeOverride !== void 0 ? effectiveRuntimeOverride : editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
95
+ var contextualFormattingEnabled = runtimeOverride !== null && runtimeOverride !== void 0 ? runtimeOverride : editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
97
96
  var markdownModeState = (0, _hooks.useSharedPluginStateWithSelector)(editorAPI, ['markdownMode'], function (states) {
98
97
  return states.markdownModeState;
99
98
  });
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "221.15.1";
9
+ var version = exports.version = "221.16.0";
@@ -72,7 +72,7 @@ export const FullPageEditor = props => {
72
72
  // (no PM selection to anchor a floating toolbar to). The user's docking
73
73
  // pref alone is not enough to decide whether to mount the primary toolbar
74
74
  // in that case — the override has to short-circuit the hide gate below.
75
- const forcePrimaryToolbarPinned = state.contextualFormattingModeOverride === 'always-pinned' && fg('platform_editor_toolbar_mode_override');
75
+ const forcePrimaryToolbarPinned = state.contextualFormattingModeOverride === 'always-pinned';
76
76
  const interactionState = state.interactionState;
77
77
  const primaryToolbarState = getPrimaryToolbarComponents(editorAPI, state.primaryToolbarComponents);
78
78
  const hasHadInteraction = interactionState !== 'hasNotHadInteraction';
@@ -58,7 +58,7 @@ const shouldShowToolbarContainer = (toolbar, customPrimaryToolbarComponents) =>
58
58
  return !!toolbar || !!customPrimaryToolbarComponents;
59
59
  };
60
60
  const getToolbarComponentsForMarkdownView = (components, markdownModeView, isConvertedMarkdownPreview) => {
61
- if ((markdownModeView === 'syntax' || markdownModeView === 'preview') && fg('platform_editor_markdown_mode_hide_source_toolbar')) {
61
+ if (markdownModeView === 'syntax' || markdownModeView === 'preview') {
62
62
  // Converted markdown live pages in preview should show full toolbar content
63
63
  // so preference-based docking can work consistently.
64
64
  if (isConvertedMarkdownPreview) {
@@ -85,8 +85,7 @@ export const FullPageToolbarNext = ({
85
85
  var _states$toolbarState;
86
86
  return (_states$toolbarState = states.toolbarState) === null || _states$toolbarState === void 0 ? void 0 : _states$toolbarState.contextualFormattingModeOverride;
87
87
  });
88
- const effectiveRuntimeOverride = runtimeOverride !== undefined && fg('platform_editor_toolbar_mode_override') ? runtimeOverride : undefined;
89
- const contextualFormattingEnabled = effectiveRuntimeOverride !== null && effectiveRuntimeOverride !== void 0 ? effectiveRuntimeOverride : editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
88
+ const contextualFormattingEnabled = runtimeOverride !== null && runtimeOverride !== void 0 ? runtimeOverride : editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
90
89
  const markdownModeState = useSharedPluginStateWithSelector(editorAPI, ['markdownMode'], states => states.markdownModeState);
91
90
  const isLivePage = markdownModeState === null || markdownModeState === void 0 ? void 0 : markdownModeState.isLivePage;
92
91
  const isMarkdownMode = markdownModeState === null || markdownModeState === void 0 ? void 0 : markdownModeState.isMarkdownMode;
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "221.15.1";
3
+ export const version = "221.16.0";
@@ -82,7 +82,7 @@ export var FullPageEditor = function FullPageEditor(props) {
82
82
  // (no PM selection to anchor a floating toolbar to). The user's docking
83
83
  // pref alone is not enough to decide whether to mount the primary toolbar
84
84
  // in that case — the override has to short-circuit the hide gate below.
85
- var forcePrimaryToolbarPinned = state.contextualFormattingModeOverride === 'always-pinned' && fg('platform_editor_toolbar_mode_override');
85
+ var forcePrimaryToolbarPinned = state.contextualFormattingModeOverride === 'always-pinned';
86
86
  var interactionState = state.interactionState;
87
87
  var primaryToolbarState = getPrimaryToolbarComponents(editorAPI, state.primaryToolbarComponents);
88
88
  var hasHadInteraction = interactionState !== 'hasNotHadInteraction';
@@ -55,7 +55,7 @@ var shouldShowToolbarContainer = function shouldShowToolbarContainer(toolbar, cu
55
55
  return !!toolbar || !!customPrimaryToolbarComponents;
56
56
  };
57
57
  var getToolbarComponentsForMarkdownView = function getToolbarComponentsForMarkdownView(components, markdownModeView, isConvertedMarkdownPreview) {
58
- if ((markdownModeView === 'syntax' || markdownModeView === 'preview') && fg('platform_editor_markdown_mode_hide_source_toolbar')) {
58
+ if (markdownModeView === 'syntax' || markdownModeView === 'preview') {
59
59
  // Converted markdown live pages in preview should show full toolbar content
60
60
  // so preference-based docking can work consistently.
61
61
  if (isConvertedMarkdownPreview) {
@@ -83,8 +83,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
83
83
  var _states$toolbarState;
84
84
  return (_states$toolbarState = states.toolbarState) === null || _states$toolbarState === void 0 ? void 0 : _states$toolbarState.contextualFormattingModeOverride;
85
85
  });
86
- var effectiveRuntimeOverride = runtimeOverride !== undefined && fg('platform_editor_toolbar_mode_override') ? runtimeOverride : undefined;
87
- var contextualFormattingEnabled = effectiveRuntimeOverride !== null && effectiveRuntimeOverride !== void 0 ? effectiveRuntimeOverride : editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
86
+ var contextualFormattingEnabled = runtimeOverride !== null && runtimeOverride !== void 0 ? runtimeOverride : editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
88
87
  var markdownModeState = useSharedPluginStateWithSelector(editorAPI, ['markdownMode'], function (states) {
89
88
  return states.markdownModeState;
90
89
  });
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "221.15.1";
3
+ export var version = "221.16.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "221.16.0",
3
+ "version": "221.16.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -61,13 +61,13 @@
61
61
  "@atlaskit/icon": "^37.2.0",
62
62
  "@atlaskit/link": "^4.3.0",
63
63
  "@atlaskit/media-card": "^81.4.0",
64
- "@atlaskit/mention": "^27.11.0",
64
+ "@atlaskit/mention": "^27.12.0",
65
65
  "@atlaskit/platform-feature-flags": "^2.1.0",
66
66
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
67
67
  "@atlaskit/react-compiler-gating": "^0.2.0",
68
68
  "@atlaskit/react-ufo": "^7.3.0",
69
69
  "@atlaskit/task-decision": "^21.8.0",
70
- "@atlaskit/tmp-editor-statsig": "^135.2.0",
70
+ "@atlaskit/tmp-editor-statsig": "^135.5.0",
71
71
  "@atlaskit/tokens": "^16.3.0",
72
72
  "@atlaskit/tooltip": "^23.2.0",
73
73
  "@atlaskit/width-detector": "^6.2.0",
@@ -85,7 +85,7 @@
85
85
  "uuid": "^3.1.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@atlaskit/editor-common": "^116.43.0",
88
+ "@atlaskit/editor-common": "^116.44.0",
89
89
  "@atlaskit/link-provider": "^5.2.0",
90
90
  "@atlaskit/media-core": "^38.0.0",
91
91
  "react": "^18.2.0",
@@ -122,12 +122,12 @@
122
122
  "@atlassian/a11y-jest-testing": "^0.13.0",
123
123
  "@atlassian/a11y-playwright-testing": "^0.10.0",
124
124
  "@atlassian/adf-schema-json": "^1.33.0",
125
- "@atlassian/editor-rovo-bridge": "^10.14.0",
125
+ "@atlassian/editor-rovo-bridge": "^10.15.0",
126
126
  "@atlassian/feature-flags-test-utils": "^1.2.0",
127
- "@atlassian/search-client": "^2.6.0",
127
+ "@atlassian/search-client": "^2.7.0",
128
128
  "@atlassian/search-provider": "^13.1.0",
129
129
  "@atlassian/structured-docs-types": "workspace:^",
130
- "@atlassian/user-profile-card": "^1.25.0",
130
+ "@atlassian/user-profile-card": "^1.26.0",
131
131
  "@emotion/jest": "^11.8.0",
132
132
  "@testing-library/react": "^16.3.0",
133
133
  "@types/diff": "^5.0.2",
@@ -191,12 +191,6 @@
191
191
  "platform_editor_table_nested_renderer_fix": {
192
192
  "type": "boolean"
193
193
  },
194
- "platform_editor_toolbar_mode_override": {
195
- "type": "boolean"
196
- },
197
- "platform_editor_markdown_mode_hide_source_toolbar": {
198
- "type": "boolean"
199
- },
200
194
  "platform_editor_markdown_patch_m3": {
201
195
  "type": "boolean"
202
196
  },