@atlaskit/editor-core 211.1.0 → 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 +18 -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/dist/types/create-editor/create-universal-preset.d.ts +1 -1
- package/dist/types/presets/universal.d.ts +1 -1
- package/dist/types/presets/useUniversalPreset.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +1 -1
- package/dist/types-ts4.5/presets/universal.d.ts +1 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +1 -1
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
|
|
15
|
+
## 211.1.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 211.1.0
|
|
4
22
|
|
|
5
23
|
### Minor 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";
|
|
@@ -512,7 +512,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
512
512
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
513
513
|
actions: {
|
|
514
514
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
515
|
-
registerComponents:
|
|
515
|
+
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
516
516
|
};
|
|
517
517
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
|
|
518
518
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
@@ -570,7 +570,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
570
570
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
571
571
|
actions: {
|
|
572
572
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
573
|
-
registerComponents:
|
|
573
|
+
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
574
574
|
};
|
|
575
575
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
|
|
576
576
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
@@ -512,7 +512,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
512
512
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
513
513
|
actions: {
|
|
514
514
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
515
|
-
registerComponents:
|
|
515
|
+
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
516
516
|
};
|
|
517
517
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
|
|
518
518
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
@@ -737,7 +737,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
737
737
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
738
738
|
actions: {
|
|
739
739
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
740
|
-
registerComponents:
|
|
740
|
+
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
741
741
|
};
|
|
742
742
|
dependencies: [
|
|
743
743
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
|
|
@@ -795,7 +795,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
795
795
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
796
796
|
actions: {
|
|
797
797
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
798
|
-
registerComponents:
|
|
798
|
+
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
799
799
|
};
|
|
800
800
|
dependencies: [
|
|
801
801
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
|
|
@@ -737,7 +737,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
737
737
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
738
738
|
actions: {
|
|
739
739
|
getComponents: () => Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>;
|
|
740
|
-
registerComponents:
|
|
740
|
+
registerComponents: import("packages/editor/editor-plugin-toolbar/dist/types/types").RegisterComponentsAction;
|
|
741
741
|
};
|
|
742
742
|
dependencies: [
|
|
743
743
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
|
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/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/editor-plugins": "^10.3.0",
|
|
53
53
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
54
54
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
55
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
55
|
+
"@atlaskit/editor-toolbar": "^0.7.0",
|
|
56
56
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
57
57
|
"@atlaskit/emoji": "^69.5.0",
|
|
58
58
|
"@atlaskit/icon": "^28.1.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
64
64
|
"@atlaskit/react-ufo": "^4.5.0",
|
|
65
65
|
"@atlaskit/task-decision": "^19.2.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^12.2.0",
|
|
67
67
|
"@atlaskit/tokens": "^6.1.0",
|
|
68
68
|
"@atlaskit/tooltip": "^20.4.0",
|
|
69
69
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"uuid": "^3.1.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@atlaskit/editor-common": "^108.
|
|
83
|
+
"@atlaskit/editor-common": "^108.1.0",
|
|
84
84
|
"@atlaskit/link-provider": "^3.7.0",
|
|
85
85
|
"@atlaskit/media-core": "^37.0.0",
|
|
86
86
|
"react": "^18.2.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/modal-dialog": "^14.3.0",
|
|
106
106
|
"@atlaskit/primitives": "^14.12.0",
|
|
107
107
|
"@atlaskit/renderer": "^121.0.0",
|
|
108
|
-
"@atlaskit/section-message": "^8.
|
|
108
|
+
"@atlaskit/section-message": "^8.7.0",
|
|
109
109
|
"@atlaskit/smart-card": "^40.17.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
111
111
|
"@atlaskit/toggle": "^15.1.0",
|
|
@@ -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
|