@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 +12 -0
- package/dist/cjs/create-editor/ReactEditorView.js +2 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +2 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +1 -4
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:
|
|
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:
|
|
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,
|
|
@@ -170,7 +170,7 @@ export function ReactEditorView(props) {
|
|
|
170
170
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
171
171
|
featureFlags,
|
|
172
172
|
getIntl: () => props.intl,
|
|
173
|
-
onEditorStateUpdated:
|
|
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:
|
|
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 = "
|
|
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:
|
|
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:
|
|
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 = "
|
|
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.
|
|
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
|