@atlaskit/editor-core 221.5.1 → 221.5.2

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,14 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 221.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`eb16de0d842fa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eb16de0d842fa) -
8
+ Reconcile editor plugin APIs during gated preset reconfiguration so Markdown mode layout and
9
+ styling update correctly when converting between Markdown and live doc views.
10
+ - Updated dependencies
11
+
3
12
  ## 221.5.1
4
13
 
5
14
  ### Patch Changes
@@ -492,6 +492,12 @@ function ReactEditorView(props) {
492
492
  return Boolean(n);
493
493
  }));
494
494
  var evictedFromApi = pluginInjectionAPI.current.retainPlugins(keptPluginNames);
495
+ if ((0, _platformFeatureFlags.fg)('platform_editor_reconfigure_reconcile_plugin_api')) {
496
+ // `retainPlugins` mutates the plugin registry in place. Refresh
497
+ // the cached editor API proxy so consumers memoized by API identity
498
+ // see added or removed plugin APIs without waiting for a full reload.
499
+ pluginInjectionAPI.current.invalidateAPI();
500
+ }
495
501
  if (dropped.length > 0 || evictedFromApi.length > 0) {
496
502
  // eslint-disable-next-line no-console
497
503
  console.warn('[reconfigureState] Cleanup summary:', {
@@ -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.5.0";
9
+ var version = exports.version = "221.5.1";
@@ -448,6 +448,12 @@ export function ReactEditorView(props) {
448
448
  }
449
449
  const keptPluginNames = new Set(editorPlugins.map(p => p === null || p === void 0 ? void 0 : p.name).filter(n => Boolean(n)));
450
450
  const evictedFromApi = pluginInjectionAPI.current.retainPlugins(keptPluginNames);
451
+ if (fg('platform_editor_reconfigure_reconcile_plugin_api')) {
452
+ // `retainPlugins` mutates the plugin registry in place. Refresh
453
+ // the cached editor API proxy so consumers memoized by API identity
454
+ // see added or removed plugin APIs without waiting for a full reload.
455
+ pluginInjectionAPI.current.invalidateAPI();
456
+ }
451
457
  if (dropped.length > 0 || evictedFromApi.length > 0) {
452
458
  // eslint-disable-next-line no-console
453
459
  console.warn('[reconfigureState] Cleanup summary:', {
@@ -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.5.0";
3
+ export const version = "221.5.1";
@@ -483,6 +483,12 @@ export function ReactEditorView(props) {
483
483
  return Boolean(n);
484
484
  }));
485
485
  var evictedFromApi = pluginInjectionAPI.current.retainPlugins(keptPluginNames);
486
+ if (fg('platform_editor_reconfigure_reconcile_plugin_api')) {
487
+ // `retainPlugins` mutates the plugin registry in place. Refresh
488
+ // the cached editor API proxy so consumers memoized by API identity
489
+ // see added or removed plugin APIs without waiting for a full reload.
490
+ pluginInjectionAPI.current.invalidateAPI();
491
+ }
486
492
  if (dropped.length > 0 || evictedFromApi.length > 0) {
487
493
  // eslint-disable-next-line no-console
488
494
  console.warn('[reconfigureState] Cleanup summary:', {
@@ -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.5.0";
3
+ export var version = "221.5.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "221.5.1",
3
+ "version": "221.5.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/analytics-namespaced-context": "^8.1.0",
44
44
  "@atlaskit/analytics-next": "^12.1.0",
45
45
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
46
- "@atlaskit/button": "^24.2.0",
46
+ "@atlaskit/button": "^24.3.0",
47
47
  "@atlaskit/css": "^1.0.0",
48
48
  "@atlaskit/editor-json-transformer": "^9.0.0",
49
49
  "@atlaskit/editor-performance-metrics": "^3.1.0",
@@ -67,8 +67,8 @@
67
67
  "@atlaskit/react-compiler-gating": "^0.2.0",
68
68
  "@atlaskit/react-ufo": "^7.3.0",
69
69
  "@atlaskit/task-decision": "^21.4.0",
70
- "@atlaskit/tmp-editor-statsig": "^114.0.0",
71
- "@atlaskit/tokens": "^15.1.0",
70
+ "@atlaskit/tmp-editor-statsig": "^114.4.0",
71
+ "@atlaskit/tokens": "^15.2.0",
72
72
  "@atlaskit/tooltip": "^23.1.0",
73
73
  "@atlaskit/width-detector": "^6.1.0",
74
74
  "@babel/runtime": "^7.0.0",
@@ -85,7 +85,7 @@
85
85
  "uuid": "^3.1.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@atlaskit/editor-common": "^116.15.0",
88
+ "@atlaskit/editor-common": "^116.17.0",
89
89
  "@atlaskit/link-provider": "^5.1.0",
90
90
  "@atlaskit/media-core": "^38.0.0",
91
91
  "react": "^18.2.0",
@@ -124,7 +124,7 @@
124
124
  "@atlassian/adf-schema-json": "^1.33.0",
125
125
  "@atlassian/editor-rovo-bridge": "^10.2.0",
126
126
  "@atlassian/feature-flags-test-utils": "^1.1.0",
127
- "@atlassian/search-client": "^1.19.0",
127
+ "@atlassian/search-client": "^1.21.0",
128
128
  "@atlassian/search-provider": "^13.0.0",
129
129
  "@atlassian/structured-docs-types": "workspace:^",
130
130
  "@atlassian/user-profile-card": "^1.15.0",
@@ -167,6 +167,9 @@
167
167
  "platform_editor_reconfigure_filter_plugins": {
168
168
  "type": "boolean"
169
169
  },
170
+ "platform_editor_reconfigure_reconcile_plugin_api": {
171
+ "type": "boolean"
172
+ },
170
173
  "platform_editor_md_mvp_layout": {
171
174
  "type": "boolean"
172
175
  },