@atlaskit/editor-core 211.1.1 → 211.2.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
+ ## 211.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ddb46afe087a6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ddb46afe087a6) -
8
+ [https://product-fabric.atlassian.net/browse/ED-27795](ED-27795) - tidy up
9
+ platform_editor_catch_missing_injection_states FG
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 211.1.1
4
16
 
5
17
  ### Patch Changes
@@ -202,7 +202,7 @@ function ReactEditorView(props) {
202
202
  getIntl: function getIntl() {
203
203
  return props.intl;
204
204
  },
205
- onEditorStateUpdated: (0, _platformFeatureFlags.fg)('platform_editor_catch_missing_injection_states') ? pluginInjectionAPI.current.onEditorViewUpdated : undefined
205
+ onEditorStateUpdated: pluginInjectionAPI.current.onEditorViewUpdated
206
206
  });
207
207
  contentTransformer.current = contentTransformerProvider ? contentTransformerProvider(schema) : undefined;
208
208
  var api = pluginInjectionAPI.current.api();
@@ -385,7 +385,7 @@ function ReactEditorView(props) {
385
385
  getIntl: function getIntl() {
386
386
  return props.intl;
387
387
  },
388
- onEditorStateUpdated: (0, _platformFeatureFlags.fg)('platform_editor_catch_missing_injection_states') ? pluginInjectionAPI.current.onEditorViewUpdated : undefined
388
+ onEditorStateUpdated: pluginInjectionAPI.current.onEditorViewUpdated
389
389
  });
390
390
  var newState = state.reconfigure({
391
391
  plugins: plugins
@@ -404,12 +404,6 @@ function ReactEditorView(props) {
404
404
  transactions = _ref2.transactions,
405
405
  oldEditorState = _ref2.oldEditorState,
406
406
  newEditorState = _ref2.newEditorState;
407
- if (!(0, _platformFeatureFlags.fg)('platform_editor_catch_missing_injection_states')) {
408
- pluginInjectionAPI.current.onEditorViewUpdated({
409
- newEditorState: newEditorState,
410
- oldEditorState: oldEditorState
411
- });
412
- }
413
407
  (_config$current = config.current) === null || _config$current === void 0 || _config$current.onEditorViewStateUpdatedCallbacks.forEach(function (entry) {
414
408
  entry.callback({
415
409
  originalTransaction: originalTransaction,
@@ -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 = "211.1.0";
8
+ var version = exports.version = "0.0.0-development";
@@ -170,7 +170,7 @@ export function ReactEditorView(props) {
170
170
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
171
171
  featureFlags,
172
172
  getIntl: () => props.intl,
173
- onEditorStateUpdated: fg('platform_editor_catch_missing_injection_states') ? pluginInjectionAPI.current.onEditorViewUpdated : undefined
173
+ onEditorStateUpdated: pluginInjectionAPI.current.onEditorViewUpdated
174
174
  });
175
175
  contentTransformer.current = contentTransformerProvider ? contentTransformerProvider(schema) : undefined;
176
176
  const api = pluginInjectionAPI.current.api();
@@ -350,7 +350,7 @@ export function ReactEditorView(props) {
350
350
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
351
351
  featureFlags,
352
352
  getIntl: () => props.intl,
353
- onEditorStateUpdated: fg('platform_editor_catch_missing_injection_states') ? pluginInjectionAPI.current.onEditorViewUpdated : undefined
353
+ onEditorStateUpdated: pluginInjectionAPI.current.onEditorViewUpdated
354
354
  });
355
355
  const newState = state.reconfigure({
356
356
  plugins: plugins
@@ -371,12 +371,6 @@ export function ReactEditorView(props) {
371
371
  newEditorState
372
372
  }) => {
373
373
  var _config$current;
374
- if (!fg('platform_editor_catch_missing_injection_states')) {
375
- pluginInjectionAPI.current.onEditorViewUpdated({
376
- newEditorState,
377
- oldEditorState
378
- });
379
- }
380
374
  (_config$current = config.current) === null || _config$current === void 0 ? void 0 : _config$current.onEditorViewStateUpdatedCallbacks.forEach(entry => {
381
375
  entry.callback({
382
376
  originalTransaction,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "211.1.0";
2
+ export const version = "0.0.0-development";
@@ -192,7 +192,7 @@ export function ReactEditorView(props) {
192
192
  getIntl: function getIntl() {
193
193
  return props.intl;
194
194
  },
195
- onEditorStateUpdated: fg('platform_editor_catch_missing_injection_states') ? pluginInjectionAPI.current.onEditorViewUpdated : undefined
195
+ onEditorStateUpdated: pluginInjectionAPI.current.onEditorViewUpdated
196
196
  });
197
197
  contentTransformer.current = contentTransformerProvider ? contentTransformerProvider(schema) : undefined;
198
198
  var api = pluginInjectionAPI.current.api();
@@ -375,7 +375,7 @@ export function ReactEditorView(props) {
375
375
  getIntl: function getIntl() {
376
376
  return props.intl;
377
377
  },
378
- onEditorStateUpdated: fg('platform_editor_catch_missing_injection_states') ? pluginInjectionAPI.current.onEditorViewUpdated : undefined
378
+ onEditorStateUpdated: pluginInjectionAPI.current.onEditorViewUpdated
379
379
  });
380
380
  var newState = state.reconfigure({
381
381
  plugins: plugins
@@ -394,12 +394,6 @@ export function ReactEditorView(props) {
394
394
  transactions = _ref2.transactions,
395
395
  oldEditorState = _ref2.oldEditorState,
396
396
  newEditorState = _ref2.newEditorState;
397
- if (!fg('platform_editor_catch_missing_injection_states')) {
398
- pluginInjectionAPI.current.onEditorViewUpdated({
399
- newEditorState: newEditorState,
400
- oldEditorState: oldEditorState
401
- });
402
- }
403
397
  (_config$current = config.current) === null || _config$current === void 0 || _config$current.onEditorViewStateUpdatedCallbacks.forEach(function (entry) {
404
398
  entry.callback({
405
399
  originalTransaction: originalTransaction,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "211.1.0";
2
+ export var version = "0.0.0-development";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "211.1.1",
3
+ "version": "211.2.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -223,9 +223,6 @@
223
223
  "type": "boolean",
224
224
  "referenceOnly": true
225
225
  },
226
- "platform_editor_catch_missing_injection_states": {
227
- "type": "boolean"
228
- },
229
226
  "platform_editor_typography_ugc": {
230
227
  "type": "boolean",
231
228
  "referenceOnly": true