@atlaskit/editor-core 194.0.6 → 194.0.9
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 +15 -0
- package/dist/cjs/create-editor/create-plugins-list.js +0 -1
- package/dist/cjs/presets/default.js +1 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +0 -1
- package/dist/es2019/presets/default.js +1 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +0 -1
- package/dist/esm/presets/default.js +1 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types/editor-props.d.ts +11 -1
- package/dist/types-ts4.5/types/editor-props.d.ts +11 -1
- package/package.json +7 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 194.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`666ab2fb8703d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/666ab2fb8703d) -
|
|
8
|
+
Mark media prop as deprecated on ComposableEditor as it is no longer required.
|
|
9
|
+
- [`7c716627bd4f4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7c716627bd4f4) -
|
|
10
|
+
Table Drag move column/row logic FF cleanup
|
|
11
|
+
- [#117111](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117111)
|
|
12
|
+
[`6f06e433f9724`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6f06e433f9724) -
|
|
13
|
+
Remove option for "appearance" from `editor-plugin-code-block`. This configuration is completely
|
|
14
|
+
unused and has no effect. It is safe to remove if you are currently using this prop for
|
|
15
|
+
configuration.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 194.0.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -96,7 +96,6 @@ function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent
|
|
|
96
96
|
},
|
|
97
97
|
codeBlock: _objectSpread(_objectSpread({}, props.codeBlock), {}, {
|
|
98
98
|
useLongPressSelection: false,
|
|
99
|
-
appearance: props.appearance,
|
|
100
99
|
allowCompositionInputOverride: isMobile
|
|
101
100
|
})
|
|
102
101
|
});
|
|
@@ -69,9 +69,7 @@ function createDefaultPreset(options) {
|
|
|
69
69
|
return false;
|
|
70
70
|
}).add([_hyperlink.hyperlinkPlugin, options.hyperlinkOptions]).add([_textFormatting.textFormattingPlugin, options.textFormatting]).add(_width.widthPlugin).add([_quickInsert.quickInsertPlugin, options.quickInsert]).add([_placeholder.placeholderPlugin, options.placeholder]).add(_unsupportedContent.unsupportedContentPlugin).add(_editorDisabled.editorDisabledPlugin).add([_submitEditor.submitEditorPlugin, options.submitEditor]).add(_copyButton.copyButtonPlugin).add(_floatingToolbar.floatingToolbarPlugin).add([_selection.selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
|
|
71
71
|
__livePage: options.__livePage
|
|
72
|
-
})]).add([_codeBlock.codeBlockPlugin, options.codeBlock
|
|
73
|
-
appearance: 'full-page'
|
|
74
|
-
}]);
|
|
72
|
+
})]).add([_codeBlock.codeBlockPlugin, options.codeBlock]);
|
|
75
73
|
return preset;
|
|
76
74
|
}
|
|
77
75
|
function useDefaultPreset(props) {
|
|
@@ -60,9 +60,7 @@ export function createDefaultPreset(options) {
|
|
|
60
60
|
}).add([hyperlinkPlugin, options.hyperlinkOptions]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, {
|
|
61
61
|
...options.selection,
|
|
62
62
|
__livePage: options.__livePage
|
|
63
|
-
}]).add([codeBlockPlugin, options.codeBlock
|
|
64
|
-
appearance: 'full-page'
|
|
65
|
-
}]);
|
|
63
|
+
}]).add([codeBlockPlugin, options.codeBlock]);
|
|
66
64
|
return preset;
|
|
67
65
|
}
|
|
68
66
|
export function useDefaultPreset(props) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "194.0.
|
|
2
|
+
export const version = "194.0.9";
|
|
@@ -87,7 +87,6 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
87
87
|
},
|
|
88
88
|
codeBlock: _objectSpread(_objectSpread({}, props.codeBlock), {}, {
|
|
89
89
|
useLongPressSelection: false,
|
|
90
|
-
appearance: props.appearance,
|
|
91
90
|
allowCompositionInputOverride: isMobile
|
|
92
91
|
})
|
|
93
92
|
});
|
|
@@ -63,9 +63,7 @@ export function createDefaultPreset(options) {
|
|
|
63
63
|
return false;
|
|
64
64
|
}).add([hyperlinkPlugin, options.hyperlinkOptions]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
|
|
65
65
|
__livePage: options.__livePage
|
|
66
|
-
})]).add([codeBlockPlugin, options.codeBlock
|
|
67
|
-
appearance: 'full-page'
|
|
68
|
-
}]);
|
|
66
|
+
})]).add([codeBlockPlugin, options.codeBlock]);
|
|
69
67
|
return preset;
|
|
70
68
|
}
|
|
71
69
|
export function useDefaultPreset(props) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "194.0.
|
|
2
|
+
export var version = "194.0.9";
|
|
@@ -145,7 +145,6 @@ export interface EditorSharedPropsWithPlugins {
|
|
|
145
145
|
*/
|
|
146
146
|
performanceTracking?: PerformanceTracking;
|
|
147
147
|
sanitizePrivateContent?: boolean;
|
|
148
|
-
media?: MediaOptions;
|
|
149
148
|
collabEdit?: CollabEditOptions;
|
|
150
149
|
primaryToolbarComponents?: PrimaryToolbarComponents;
|
|
151
150
|
allowUndoRedoButtons?: boolean;
|
|
@@ -187,6 +186,16 @@ export interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithP
|
|
|
187
186
|
* preset.add([cardPlugin, { ...linking.smartLinks, linkPicker: linking.linkPicker }])
|
|
188
187
|
*/
|
|
189
188
|
linking?: LinkingOptions;
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated
|
|
191
|
+
* This prop is no longer required and will be removed soon.
|
|
192
|
+
* Configuration of this parameter should be done via `editor-plugin-media` or the `universal` preset.
|
|
193
|
+
*
|
|
194
|
+
* Example:
|
|
195
|
+
* // In preset creation you can pass the props passed to the editor like this:
|
|
196
|
+
* preset.add([mediaPlugin, mediaOptions])
|
|
197
|
+
*/
|
|
198
|
+
media?: MediaOptions;
|
|
190
199
|
}
|
|
191
200
|
export interface EditorProviderProps {
|
|
192
201
|
activityProvider?: Promise<ActivityProvider>;
|
|
@@ -295,4 +304,5 @@ export interface EditorPluginFeatureProps {
|
|
|
295
304
|
* Configure and extend editor linking behaviour
|
|
296
305
|
*/
|
|
297
306
|
linking?: LinkingOptions;
|
|
307
|
+
media?: MediaOptions;
|
|
298
308
|
}
|
|
@@ -145,7 +145,6 @@ export interface EditorSharedPropsWithPlugins {
|
|
|
145
145
|
*/
|
|
146
146
|
performanceTracking?: PerformanceTracking;
|
|
147
147
|
sanitizePrivateContent?: boolean;
|
|
148
|
-
media?: MediaOptions;
|
|
149
148
|
collabEdit?: CollabEditOptions;
|
|
150
149
|
primaryToolbarComponents?: PrimaryToolbarComponents;
|
|
151
150
|
allowUndoRedoButtons?: boolean;
|
|
@@ -187,6 +186,16 @@ export interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithP
|
|
|
187
186
|
* preset.add([cardPlugin, { ...linking.smartLinks, linkPicker: linking.linkPicker }])
|
|
188
187
|
*/
|
|
189
188
|
linking?: LinkingOptions;
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated
|
|
191
|
+
* This prop is no longer required and will be removed soon.
|
|
192
|
+
* Configuration of this parameter should be done via `editor-plugin-media` or the `universal` preset.
|
|
193
|
+
*
|
|
194
|
+
* Example:
|
|
195
|
+
* // In preset creation you can pass the props passed to the editor like this:
|
|
196
|
+
* preset.add([mediaPlugin, mediaOptions])
|
|
197
|
+
*/
|
|
198
|
+
media?: MediaOptions;
|
|
190
199
|
}
|
|
191
200
|
export interface EditorProviderProps {
|
|
192
201
|
activityProvider?: Promise<ActivityProvider>;
|
|
@@ -295,4 +304,5 @@ export interface EditorPluginFeatureProps {
|
|
|
295
304
|
* Configure and extend editor linking behaviour
|
|
296
305
|
*/
|
|
297
306
|
linking?: LinkingOptions;
|
|
307
|
+
media?: MediaOptions;
|
|
298
308
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "194.0.
|
|
3
|
+
"version": "194.0.9",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
|
-
"@atlaskit/button": "^18.
|
|
48
|
-
"@atlaskit/editor-common": "^84.
|
|
49
|
-
"@atlaskit/editor-plugins": "^3.
|
|
47
|
+
"@atlaskit/button": "^18.2.0",
|
|
48
|
+
"@atlaskit/editor-common": "^84.1.0",
|
|
49
|
+
"@atlaskit/editor-plugins": "^3.4.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
52
52
|
"@atlaskit/emoji": "^67.6.0",
|
|
53
|
-
"@atlaskit/icon": "^22.
|
|
53
|
+
"@atlaskit/icon": "^22.6.0",
|
|
54
54
|
"@atlaskit/media-card": "^78.0.0",
|
|
55
55
|
"@atlaskit/mention": "^23.2.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
100
100
|
"@atlaskit/media-test-helpers": "^33.0.27",
|
|
101
101
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
102
|
-
"@atlaskit/primitives": "^10.
|
|
102
|
+
"@atlaskit/primitives": "^10.1.0",
|
|
103
103
|
"@atlaskit/renderer": "^109.40.0",
|
|
104
104
|
"@atlaskit/smart-card": "^27.9.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.4.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.16.0",
|
|
110
|
-
"@atlassian/search-provider": "2.4.
|
|
110
|
+
"@atlassian/search-provider": "2.4.91",
|
|
111
111
|
"@emotion/jest": "^11.8.0",
|
|
112
112
|
"@storybook/addon-knobs": "^5.3.18",
|
|
113
113
|
"@testing-library/react": "^12.1.5",
|
|
@@ -184,10 +184,6 @@
|
|
|
184
184
|
"platform.editor.table-sticky-scrollbar": {
|
|
185
185
|
"type": "boolean"
|
|
186
186
|
},
|
|
187
|
-
"platform.editor.table.drag-move-options-logic-update_fp7xw": {
|
|
188
|
-
"type": "boolean",
|
|
189
|
-
"referenceOnly": "true"
|
|
190
|
-
},
|
|
191
187
|
"platform.media-experience.card-views-refactor_b91lr": {
|
|
192
188
|
"type": "boolean",
|
|
193
189
|
"referenceOnly": "true"
|