@atlaskit/editor-core 228.1.5 → 228.1.6

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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 228.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`85ad3990bac78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85ad3990bac78) -
8
+ Clean up experiment `platform_editor_appearance_shared_state`
9
+ - Updated dependencies
10
+
3
11
  ## 228.1.5
4
12
 
5
13
  ### Patch Changes
@@ -216,11 +216,9 @@ function ReactEditorView(props) {
216
216
  return viewRef.current.state;
217
217
  }
218
218
  } else {
219
+ var _config$current$pmPlu;
219
220
  config.current = (0, _createEditor.processPluginsList)((0, _createPluginsList.default)(options.props.preset, 'allowBlockType' in props.editorProps ? props.editorProps : {}, pluginInjectionAPI.current));
220
- if ((0, _expValEquals.expValEquals)('platform_editor_appearance_shared_state', 'isEnabled', true)) {
221
- var _config$current$pmPlu;
222
- (_config$current$pmPlu = config.current.pmPlugins).push.apply(_config$current$pmPlu, (0, _toConsumableArray2.default)(pluginInjectionAPI.current.getInternalPMPlugins()));
223
- }
221
+ (_config$current$pmPlu = config.current.pmPlugins).push.apply(_config$current$pmPlu, (0, _toConsumableArray2.default)(pluginInjectionAPI.current.getInternalPMPlugins()));
224
222
  schema = (0, _createSchema.createSchema)(config.current);
225
223
  }
226
224
  var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
@@ -442,11 +440,9 @@ function ReactEditorView(props) {
442
440
  // decision and the drop-filter decision below depend on this answer,
443
441
  // so it has to be computed up-front.
444
442
  var buildConfig = function buildConfig(plugins) {
443
+ var _c$pmPlugins;
445
444
  var c = (0, _createEditor.processPluginsList)(plugins);
446
- if ((0, _expValEquals.expValEquals)('platform_editor_appearance_shared_state', 'isEnabled', true)) {
447
- var _c$pmPlugins;
448
- (_c$pmPlugins = c.pmPlugins).push.apply(_c$pmPlugins, (0, _toConsumableArray2.default)(pluginInjectionAPI.current.getInternalPMPlugins()));
449
- }
445
+ (_c$pmPlugins = c.pmPlugins).push.apply(_c$pmPlugins, (0, _toConsumableArray2.default)(pluginInjectionAPI.current.getInternalPMPlugins()));
450
446
  return c;
451
447
  };
452
448
  var nextConfig = buildConfig(editorPlugins);
@@ -1024,10 +1020,8 @@ function ReactEditorView(props) {
1024
1020
  }
1025
1021
  }, [disabled, shouldFocus, previousDisabledState, __livePage]);
1026
1022
  (0, _react.useLayoutEffect)(function () {
1027
- if ((0, _expValEquals.expValEquals)('platform_editor_appearance_shared_state', 'isEnabled', true)) {
1028
- var _pluginInjectionAPI$c3;
1029
- (_pluginInjectionAPI$c3 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c3 === void 0 || (_pluginInjectionAPI$c3 = _pluginInjectionAPI$c3.core) === null || _pluginInjectionAPI$c3 === void 0 || (_pluginInjectionAPI$c3 = _pluginInjectionAPI$c3.actions) === null || _pluginInjectionAPI$c3 === void 0 || _pluginInjectionAPI$c3.updateAppearance(nextAppearance);
1030
- }
1023
+ var _pluginInjectionAPI$c3;
1024
+ (_pluginInjectionAPI$c3 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c3 === void 0 || (_pluginInjectionAPI$c3 = _pluginInjectionAPI$c3.core) === null || _pluginInjectionAPI$c3 === void 0 || (_pluginInjectionAPI$c3 = _pluginInjectionAPI$c3.actions) === null || _pluginInjectionAPI$c3 === void 0 || _pluginInjectionAPI$c3.updateAppearance(nextAppearance);
1031
1025
  }, [nextAppearance]);
1032
1026
  (0, _useFireFullWidthEvent.useFireFullWidthEvent)(nextAppearance, dispatchAnalyticsEvent);
1033
1027
 
@@ -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 = "228.1.4";
9
+ var version = exports.version = "228.1.5";
@@ -180,9 +180,7 @@ export function ReactEditorView(props) {
180
180
  }
181
181
  } else {
182
182
  config.current = processPluginsList(createPluginsList(options.props.preset, 'allowBlockType' in props.editorProps ? props.editorProps : {}, pluginInjectionAPI.current));
183
- if (expValEquals('platform_editor_appearance_shared_state', 'isEnabled', true)) {
184
- config.current.pmPlugins.push(...pluginInjectionAPI.current.getInternalPMPlugins());
185
- }
183
+ config.current.pmPlugins.push(...pluginInjectionAPI.current.getInternalPMPlugins());
186
184
  schema = createSchema(config.current);
187
185
  }
188
186
  const {
@@ -404,9 +402,7 @@ export function ReactEditorView(props) {
404
402
  // so it has to be computed up-front.
405
403
  const buildConfig = plugins => {
406
404
  const c = processPluginsList(plugins);
407
- if (expValEquals('platform_editor_appearance_shared_state', 'isEnabled', true)) {
408
- c.pmPlugins.push(...pluginInjectionAPI.current.getInternalPMPlugins());
409
- }
405
+ c.pmPlugins.push(...pluginInjectionAPI.current.getInternalPMPlugins());
410
406
  return c;
411
407
  };
412
408
  let nextConfig = buildConfig(editorPlugins);
@@ -952,10 +948,8 @@ export function ReactEditorView(props) {
952
948
  }
953
949
  }, [disabled, shouldFocus, previousDisabledState, __livePage]);
954
950
  useLayoutEffect(() => {
955
- if (expValEquals('platform_editor_appearance_shared_state', 'isEnabled', true)) {
956
- var _pluginInjectionAPI$c5, _pluginInjectionAPI$c6, _pluginInjectionAPI$c7;
957
- (_pluginInjectionAPI$c5 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c5 === void 0 ? void 0 : (_pluginInjectionAPI$c6 = _pluginInjectionAPI$c5.core) === null || _pluginInjectionAPI$c6 === void 0 ? void 0 : (_pluginInjectionAPI$c7 = _pluginInjectionAPI$c6.actions) === null || _pluginInjectionAPI$c7 === void 0 ? void 0 : _pluginInjectionAPI$c7.updateAppearance(nextAppearance);
958
- }
951
+ var _pluginInjectionAPI$c5, _pluginInjectionAPI$c6, _pluginInjectionAPI$c7;
952
+ (_pluginInjectionAPI$c5 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c5 === void 0 ? void 0 : (_pluginInjectionAPI$c6 = _pluginInjectionAPI$c5.core) === null || _pluginInjectionAPI$c6 === void 0 ? void 0 : (_pluginInjectionAPI$c7 = _pluginInjectionAPI$c6.actions) === null || _pluginInjectionAPI$c7 === void 0 ? void 0 : _pluginInjectionAPI$c7.updateAppearance(nextAppearance);
959
953
  }, [nextAppearance]);
960
954
  useFireFullWidthEvent(nextAppearance, dispatchAnalyticsEvent);
961
955
 
@@ -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 = "228.1.4";
3
+ export const version = "228.1.5";
@@ -207,11 +207,9 @@ export function ReactEditorView(props) {
207
207
  return viewRef.current.state;
208
208
  }
209
209
  } else {
210
+ var _config$current$pmPlu;
210
211
  config.current = processPluginsList(createPluginsList(options.props.preset, 'allowBlockType' in props.editorProps ? props.editorProps : {}, pluginInjectionAPI.current));
211
- if (expValEquals('platform_editor_appearance_shared_state', 'isEnabled', true)) {
212
- var _config$current$pmPlu;
213
- (_config$current$pmPlu = config.current.pmPlugins).push.apply(_config$current$pmPlu, _toConsumableArray(pluginInjectionAPI.current.getInternalPMPlugins()));
214
- }
212
+ (_config$current$pmPlu = config.current.pmPlugins).push.apply(_config$current$pmPlu, _toConsumableArray(pluginInjectionAPI.current.getInternalPMPlugins()));
215
213
  schema = createSchema(config.current);
216
214
  }
217
215
  var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
@@ -433,11 +431,9 @@ export function ReactEditorView(props) {
433
431
  // decision and the drop-filter decision below depend on this answer,
434
432
  // so it has to be computed up-front.
435
433
  var buildConfig = function buildConfig(plugins) {
434
+ var _c$pmPlugins;
436
435
  var c = processPluginsList(plugins);
437
- if (expValEquals('platform_editor_appearance_shared_state', 'isEnabled', true)) {
438
- var _c$pmPlugins;
439
- (_c$pmPlugins = c.pmPlugins).push.apply(_c$pmPlugins, _toConsumableArray(pluginInjectionAPI.current.getInternalPMPlugins()));
440
- }
436
+ (_c$pmPlugins = c.pmPlugins).push.apply(_c$pmPlugins, _toConsumableArray(pluginInjectionAPI.current.getInternalPMPlugins()));
441
437
  return c;
442
438
  };
443
439
  var nextConfig = buildConfig(editorPlugins);
@@ -1015,10 +1011,8 @@ export function ReactEditorView(props) {
1015
1011
  }
1016
1012
  }, [disabled, shouldFocus, previousDisabledState, __livePage]);
1017
1013
  useLayoutEffect(function () {
1018
- if (expValEquals('platform_editor_appearance_shared_state', 'isEnabled', true)) {
1019
- var _pluginInjectionAPI$c3;
1020
- (_pluginInjectionAPI$c3 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c3 === void 0 || (_pluginInjectionAPI$c3 = _pluginInjectionAPI$c3.core) === null || _pluginInjectionAPI$c3 === void 0 || (_pluginInjectionAPI$c3 = _pluginInjectionAPI$c3.actions) === null || _pluginInjectionAPI$c3 === void 0 || _pluginInjectionAPI$c3.updateAppearance(nextAppearance);
1021
- }
1014
+ var _pluginInjectionAPI$c3;
1015
+ (_pluginInjectionAPI$c3 = pluginInjectionAPI.current.api()) === null || _pluginInjectionAPI$c3 === void 0 || (_pluginInjectionAPI$c3 = _pluginInjectionAPI$c3.core) === null || _pluginInjectionAPI$c3 === void 0 || (_pluginInjectionAPI$c3 = _pluginInjectionAPI$c3.actions) === null || _pluginInjectionAPI$c3 === void 0 || _pluginInjectionAPI$c3.updateAppearance(nextAppearance);
1022
1016
  }, [nextAppearance]);
1023
1017
  useFireFullWidthEvent(nextAppearance, dispatchAnalyticsEvent);
1024
1018
 
@@ -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 = "228.1.4";
3
+ export var version = "228.1.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "228.1.5",
3
+ "version": "228.1.6",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -74,8 +74,8 @@
74
74
  "@atlaskit/react-compiler-gating": "^0.2.0",
75
75
  "@atlaskit/react-ufo": "^7.10.0",
76
76
  "@atlaskit/task-decision": "^21.10.0",
77
- "@atlaskit/tmp-editor-statsig": "^194.0.0",
78
- "@atlaskit/tokens": "^16.12.0",
77
+ "@atlaskit/tmp-editor-statsig": "^195.0.0",
78
+ "@atlaskit/tokens": "^17.0.0",
79
79
  "@atlaskit/tooltip": "^24.3.0",
80
80
  "@atlaskit/width-detector": "^7.2.0",
81
81
  "@babel/runtime": "^7.0.0",