@atlaskit/editor-core 190.1.30 → 190.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 +16 -0
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/Appearance/Chromeless.js +2 -2
- package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +2 -2
- package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +2 -2
- package/dist/esm/ui/Appearance/Comment/Comment.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types/editor-props.d.ts +6 -0
- package/dist/types-ts4.5/types/editor-props.d.ts +6 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 190.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#64320](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64320) [`1f21567ce911`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1f21567ce911) - Deprecate the jira issue plugin and allowJiraIssue prop in Editor.
|
|
8
|
+
|
|
9
|
+
These will be removed in a future version.
|
|
10
|
+
|
|
11
|
+
This also removes `confluenceJiraIssue` node from editor as it is no longer required.
|
|
12
|
+
|
|
13
|
+
Updated the confluence transformer to no longer support `confluenceJiraIssue`. This is behind a feature flag and will be removed in a future version.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#64775](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64775) [`a88b0fdcc0c4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a88b0fdcc0c4) - Fix contentComponents (with before and after) crashing on non-full-page appearances.
|
|
18
|
+
|
|
3
19
|
## 190.1.30
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -257,7 +257,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
257
257
|
}
|
|
258
258
|
return builder;
|
|
259
259
|
}).maybeAdd(_plugins.jiraIssuePlugin, function (plugin, builder) {
|
|
260
|
-
if (props.allowJiraIssue) {
|
|
260
|
+
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.deprecate-jira-issue-plugin') && props.allowJiraIssue) {
|
|
261
261
|
return builder.add(plugin);
|
|
262
262
|
}
|
|
263
263
|
return builder;
|
|
@@ -75,7 +75,7 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
75
75
|
}, (0, _react2.jsx)(ContentArea, {
|
|
76
76
|
className: "ak-editor-content-area",
|
|
77
77
|
featureFlags: featureFlags
|
|
78
|
-
}, customContentComponents, (0, _react2.jsx)(_PluginSlot.default, {
|
|
78
|
+
}, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, (0, _react2.jsx)(_PluginSlot.default, {
|
|
79
79
|
editorView: editorView,
|
|
80
80
|
editorActions: editorActions,
|
|
81
81
|
eventDispatcher: eventDispatcher,
|
|
@@ -90,7 +90,7 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
90
90
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
91
91
|
wrapperElement: _this.containerElement,
|
|
92
92
|
pluginHooks: pluginHooks
|
|
93
|
-
}), editorDOMElement)));
|
|
93
|
+
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null)));
|
|
94
94
|
});
|
|
95
95
|
return _this;
|
|
96
96
|
}
|
|
@@ -155,7 +155,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
155
155
|
'less-margin': width < _editorSharedStyles.akEditorMobileBreakoutPoint
|
|
156
156
|
}),
|
|
157
157
|
featureFlags: featureFlags
|
|
158
|
-
}, customContentComponents, (0, _react2.jsx)(_PluginSlot.default, {
|
|
158
|
+
}, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, (0, _react2.jsx)(_PluginSlot.default, {
|
|
159
159
|
editorView: editorView,
|
|
160
160
|
editorActions: editorActions,
|
|
161
161
|
eventDispatcher: eventDispatcher,
|
|
@@ -170,7 +170,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
170
170
|
disabled: !!disabled,
|
|
171
171
|
wrapperElement: _this.wrapperElementRef.current,
|
|
172
172
|
pluginHooks: pluginHooks
|
|
173
|
-
}), editorDOMElement);
|
|
173
|
+
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
174
174
|
}))), showSecondaryToolbar && (0, _react2.jsx)("div", {
|
|
175
175
|
css: secondaryToolbarStyle,
|
|
176
176
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
@@ -250,7 +250,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
250
250
|
}
|
|
251
251
|
return builder;
|
|
252
252
|
}).maybeAdd(jiraIssuePlugin, (plugin, builder) => {
|
|
253
|
-
if (props.allowJiraIssue) {
|
|
253
|
+
if (!getBooleanFF('platform.editor.deprecate-jira-issue-plugin') && props.allowJiraIssue) {
|
|
254
254
|
return builder.add(plugin);
|
|
255
255
|
}
|
|
256
256
|
return builder;
|
|
@@ -72,7 +72,7 @@ export default class Editor extends React.Component {
|
|
|
72
72
|
}, jsx(ContentArea, {
|
|
73
73
|
className: "ak-editor-content-area",
|
|
74
74
|
featureFlags: featureFlags
|
|
75
|
-
}, customContentComponents, jsx(PluginSlot, {
|
|
75
|
+
}, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, jsx(PluginSlot, {
|
|
76
76
|
editorView: editorView,
|
|
77
77
|
editorActions: editorActions,
|
|
78
78
|
eventDispatcher: eventDispatcher,
|
|
@@ -87,7 +87,7 @@ export default class Editor extends React.Component {
|
|
|
87
87
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
88
88
|
wrapperElement: this.containerElement,
|
|
89
89
|
pluginHooks: pluginHooks
|
|
90
|
-
}), editorDOMElement)));
|
|
90
|
+
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null)));
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
@@ -183,7 +183,7 @@ class Editor extends React.Component {
|
|
|
183
183
|
'less-margin': width < akEditorMobileBreakoutPoint
|
|
184
184
|
}),
|
|
185
185
|
featureFlags: featureFlags
|
|
186
|
-
}, customContentComponents, jsx(PluginSlot, {
|
|
186
|
+
}, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, jsx(PluginSlot, {
|
|
187
187
|
editorView: editorView,
|
|
188
188
|
editorActions: editorActions,
|
|
189
189
|
eventDispatcher: eventDispatcher,
|
|
@@ -198,7 +198,7 @@ class Editor extends React.Component {
|
|
|
198
198
|
disabled: !!disabled,
|
|
199
199
|
wrapperElement: this.wrapperElementRef.current,
|
|
200
200
|
pluginHooks: pluginHooks
|
|
201
|
-
}), editorDOMElement);
|
|
201
|
+
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
202
202
|
}))), showSecondaryToolbar && jsx("div", {
|
|
203
203
|
css: secondaryToolbarStyle,
|
|
204
204
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "190.
|
|
2
|
+
export const version = "190.2.0";
|
|
@@ -249,7 +249,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
249
249
|
}
|
|
250
250
|
return builder;
|
|
251
251
|
}).maybeAdd(jiraIssuePlugin, function (plugin, builder) {
|
|
252
|
-
if (props.allowJiraIssue) {
|
|
252
|
+
if (!getBooleanFF('platform.editor.deprecate-jira-issue-plugin') && props.allowJiraIssue) {
|
|
253
253
|
return builder.add(plugin);
|
|
254
254
|
}
|
|
255
255
|
return builder;
|
|
@@ -65,7 +65,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
}, jsx(ContentArea, {
|
|
66
66
|
className: "ak-editor-content-area",
|
|
67
67
|
featureFlags: featureFlags
|
|
68
|
-
}, customContentComponents, jsx(PluginSlot, {
|
|
68
|
+
}, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, jsx(PluginSlot, {
|
|
69
69
|
editorView: editorView,
|
|
70
70
|
editorActions: editorActions,
|
|
71
71
|
eventDispatcher: eventDispatcher,
|
|
@@ -80,7 +80,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
80
80
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
81
81
|
wrapperElement: _this.containerElement,
|
|
82
82
|
pluginHooks: pluginHooks
|
|
83
|
-
}), editorDOMElement)));
|
|
83
|
+
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null)));
|
|
84
84
|
});
|
|
85
85
|
return _this;
|
|
86
86
|
}
|
|
@@ -145,7 +145,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
145
145
|
'less-margin': width < akEditorMobileBreakoutPoint
|
|
146
146
|
}),
|
|
147
147
|
featureFlags: featureFlags
|
|
148
|
-
}, customContentComponents, jsx(PluginSlot, {
|
|
148
|
+
}, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, jsx(PluginSlot, {
|
|
149
149
|
editorView: editorView,
|
|
150
150
|
editorActions: editorActions,
|
|
151
151
|
eventDispatcher: eventDispatcher,
|
|
@@ -160,7 +160,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
160
160
|
disabled: !!disabled,
|
|
161
161
|
wrapperElement: _this.wrapperElementRef.current,
|
|
162
162
|
pluginHooks: pluginHooks
|
|
163
|
-
}), editorDOMElement);
|
|
163
|
+
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
164
164
|
}))), showSecondaryToolbar && jsx("div", {
|
|
165
165
|
css: secondaryToolbarStyle,
|
|
166
166
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "190.
|
|
2
|
+
export var version = "190.2.0";
|
|
@@ -187,6 +187,12 @@ export interface EditorPluginFeatureProps {
|
|
|
187
187
|
allowBreakout?: boolean;
|
|
188
188
|
allowRule?: boolean;
|
|
189
189
|
allowHelpDialog?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated
|
|
192
|
+
* This was a temporary setting for Confluence until we shipped smart cards. **Please do not use.*
|
|
193
|
+
* We have now shipped and no-longer require.
|
|
194
|
+
* This will be deprecated very soon.
|
|
195
|
+
*/
|
|
190
196
|
allowJiraIssue?: boolean;
|
|
191
197
|
allowPanel?: boolean | PanelPluginConfig;
|
|
192
198
|
allowExtension?: boolean | ExtensionConfig;
|
|
@@ -187,6 +187,12 @@ export interface EditorPluginFeatureProps {
|
|
|
187
187
|
allowBreakout?: boolean;
|
|
188
188
|
allowRule?: boolean;
|
|
189
189
|
allowHelpDialog?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated
|
|
192
|
+
* This was a temporary setting for Confluence until we shipped smart cards. **Please do not use.*
|
|
193
|
+
* We have now shipped and no-longer require.
|
|
194
|
+
* This will be deprecated very soon.
|
|
195
|
+
*/
|
|
190
196
|
allowJiraIssue?: boolean;
|
|
191
197
|
allowPanel?: boolean | PanelPluginConfig;
|
|
192
198
|
allowExtension?: boolean | ExtensionConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "190.
|
|
3
|
+
"version": "190.2.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -375,6 +375,9 @@
|
|
|
375
375
|
"platform.editor.table.in-danger-hover-merged-cells-fix": {
|
|
376
376
|
"type": "boolean",
|
|
377
377
|
"referenceOnly": "true"
|
|
378
|
+
},
|
|
379
|
+
"platform.editor.deprecate-jira-issue-plugin": {
|
|
380
|
+
"type": "boolean"
|
|
378
381
|
}
|
|
379
382
|
}
|
|
380
383
|
}
|