@atlaskit/editor-core 199.1.0 → 199.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 +19 -0
- package/dist/cjs/presets/universal.js +10 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +9 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +10 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +1 -1
- package/package.json +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 199.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#153949](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/153949)
|
|
8
|
+
[`f924bc9be1373`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f924bc9be1373) -
|
|
9
|
+
Add activityProvider prop for editor to use with media.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#155195](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155195)
|
|
14
|
+
[`73c97aeb48ea9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/73c97aeb48ea9) -
|
|
15
|
+
Add platform_editor_support_table_in_comment_jira experiment to control table drag and drop and
|
|
16
|
+
table scaling features to support new table features in jira
|
|
17
|
+
- [#155195](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155195)
|
|
18
|
+
[`086e77aecf6e5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/086e77aecf6e5) -
|
|
19
|
+
[ux] ED-25202 Support Preview in media files
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 199.1.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -108,6 +108,11 @@ function createUniversalPresetInternal(_ref) {
|
|
|
108
108
|
}
|
|
109
109
|
return false;
|
|
110
110
|
};
|
|
111
|
+
|
|
112
|
+
// Extend table feature set for Jira - under support_table_in_comment_jira experiment
|
|
113
|
+
var extendedTableFeaturesForComment = isComment && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
|
|
114
|
+
exposure: true
|
|
115
|
+
});
|
|
111
116
|
var finalPreset = defaultPreset.add(_dataConsumer.dataConsumerPlugin).add(_accessibilityUtils.accessibilityUtilsPlugin).add(_contentInsertion.contentInsertionPlugin).add(_batchAttributeUpdates.batchAttributeUpdatesPlugin).maybeAdd([_breakout.breakoutPlugin, {
|
|
112
117
|
allowBreakoutButton: appearance === 'full-page'
|
|
113
118
|
}], Boolean(props.allowBreakout && isFullPage)).maybeAdd(_alignment.alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([_textColor.textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(_list.listPlugin).maybeAdd(_rule.rulePlugin, Boolean(props.allowRule)).maybeAdd([_expand.expandPlugin, {
|
|
@@ -148,17 +153,19 @@ function createUniversalPresetInternal(_ref) {
|
|
|
148
153
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
149
154
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
|
|
150
155
|
exposure: true
|
|
151
|
-
})),
|
|
156
|
+
})) || extendedTableFeaturesForComment,
|
|
152
157
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
|
|
153
158
|
exposure: true
|
|
154
|
-
})),
|
|
159
|
+
})) || extendedTableFeaturesForComment,
|
|
155
160
|
allowContextualMenu: true,
|
|
156
161
|
fullWidthEnabled: appearance === 'full-width',
|
|
157
162
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
158
163
|
getEditorFeatureFlags: getEditorFeatureFlags,
|
|
159
164
|
isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
|
|
160
165
|
isCommentEditor: isComment,
|
|
161
|
-
isChromelessEditor: isChromeless
|
|
166
|
+
isChromelessEditor: isChromeless,
|
|
167
|
+
tableResizingEnabled: extendedTableFeaturesForComment,
|
|
168
|
+
isTableAlignmentEnabled: extendedTableFeaturesForComment
|
|
162
169
|
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.tablesPlugin)], Boolean(props.allowTables)).maybeAdd([_tasksAndDecisions.tasksAndDecisionsPlugin, _objectSpread({
|
|
163
170
|
allowNestedTasks: props.allowNestedTasks,
|
|
164
171
|
consumeTabs: isFullPage,
|
|
@@ -98,6 +98,11 @@ export default function createUniversalPresetInternal({
|
|
|
98
98
|
}
|
|
99
99
|
return false;
|
|
100
100
|
};
|
|
101
|
+
|
|
102
|
+
// Extend table feature set for Jira - under support_table_in_comment_jira experiment
|
|
103
|
+
const extendedTableFeaturesForComment = isComment && editorExperiment('support_table_in_comment_jira', true, {
|
|
104
|
+
exposure: true
|
|
105
|
+
});
|
|
101
106
|
const finalPreset = defaultPreset.add(dataConsumerPlugin).add(accessibilityUtilsPlugin).add(contentInsertionPlugin).add(batchAttributeUpdatesPlugin).maybeAdd([breakoutPlugin, {
|
|
102
107
|
allowBreakoutButton: appearance === 'full-page'
|
|
103
108
|
}], Boolean(props.allowBreakout && isFullPage)).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
|
|
@@ -140,10 +145,10 @@ export default function createUniversalPresetInternal({
|
|
|
140
145
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
141
146
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && editorExperiment('support_table_in_comment', true, {
|
|
142
147
|
exposure: true
|
|
143
|
-
})),
|
|
148
|
+
})) || extendedTableFeaturesForComment,
|
|
144
149
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && editorExperiment('support_table_in_comment', true, {
|
|
145
150
|
exposure: true
|
|
146
|
-
})),
|
|
151
|
+
})) || extendedTableFeaturesForComment,
|
|
147
152
|
allowContextualMenu: true,
|
|
148
153
|
fullWidthEnabled: appearance === 'full-width',
|
|
149
154
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -151,6 +156,8 @@ export default function createUniversalPresetInternal({
|
|
|
151
156
|
isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
|
|
152
157
|
isCommentEditor: isComment,
|
|
153
158
|
isChromelessEditor: isChromeless,
|
|
159
|
+
tableResizingEnabled: extendedTableFeaturesForComment,
|
|
160
|
+
isTableAlignmentEnabled: extendedTableFeaturesForComment,
|
|
154
161
|
...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.tablesPlugin)
|
|
155
162
|
}], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
|
|
156
163
|
allowNestedTasks: props.allowNestedTasks,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "199.
|
|
2
|
+
export const version = "199.2.0";
|
|
@@ -101,6 +101,11 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
101
101
|
}
|
|
102
102
|
return false;
|
|
103
103
|
};
|
|
104
|
+
|
|
105
|
+
// Extend table feature set for Jira - under support_table_in_comment_jira experiment
|
|
106
|
+
var extendedTableFeaturesForComment = isComment && editorExperiment('support_table_in_comment_jira', true, {
|
|
107
|
+
exposure: true
|
|
108
|
+
});
|
|
104
109
|
var finalPreset = defaultPreset.add(dataConsumerPlugin).add(accessibilityUtilsPlugin).add(contentInsertionPlugin).add(batchAttributeUpdatesPlugin).maybeAdd([breakoutPlugin, {
|
|
105
110
|
allowBreakoutButton: appearance === 'full-page'
|
|
106
111
|
}], Boolean(props.allowBreakout && isFullPage)).maybeAdd(alignmentPlugin, Boolean(props.allowTextAlignment)).maybeAdd([textColorPlugin, props.allowTextColor], Boolean(props.allowTextColor)).add(listPlugin).maybeAdd(rulePlugin, Boolean(props.allowRule)).maybeAdd([expandPlugin, {
|
|
@@ -141,17 +146,19 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
141
146
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
142
147
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && editorExperiment('support_table_in_comment', true, {
|
|
143
148
|
exposure: true
|
|
144
|
-
})),
|
|
149
|
+
})) || extendedTableFeaturesForComment,
|
|
145
150
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && editorExperiment('support_table_in_comment', true, {
|
|
146
151
|
exposure: true
|
|
147
|
-
})),
|
|
152
|
+
})) || extendedTableFeaturesForComment,
|
|
148
153
|
allowContextualMenu: true,
|
|
149
154
|
fullWidthEnabled: appearance === 'full-width',
|
|
150
155
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
151
156
|
getEditorFeatureFlags: getEditorFeatureFlags,
|
|
152
157
|
isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
|
|
153
158
|
isCommentEditor: isComment,
|
|
154
|
-
isChromelessEditor: isChromeless
|
|
159
|
+
isChromelessEditor: isChromeless,
|
|
160
|
+
tableResizingEnabled: extendedTableFeaturesForComment,
|
|
161
|
+
isTableAlignmentEnabled: extendedTableFeaturesForComment
|
|
155
162
|
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.tablesPlugin)], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, _objectSpread({
|
|
156
163
|
allowNestedTasks: props.allowNestedTasks,
|
|
157
164
|
consumeTabs: isFullPage,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "199.
|
|
2
|
+
export var version = "199.2.0";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
3
|
+
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'activityProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
4
4
|
onChange?: () => void;
|
|
5
5
|
onEditorReady?: () => void;
|
|
6
6
|
appearance: 'full-page' | 'full-width';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
3
|
+
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'activityProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
4
4
|
onChange?: () => void;
|
|
5
5
|
onEditorReady?: () => void;
|
|
6
6
|
appearance: 'full-page' | 'full-width';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "199.
|
|
3
|
+
"version": "199.2.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
|
-
"@atlaskit/button": "^20.
|
|
46
|
-
"@atlaskit/editor-common": "^94.
|
|
45
|
+
"@atlaskit/button": "^20.3.0",
|
|
46
|
+
"@atlaskit/editor-common": "^94.2.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.20.0",
|
|
48
48
|
"@atlaskit/editor-plugin-quick-insert": "1.5.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^5.6.0",
|
|
@@ -148,10 +148,6 @@
|
|
|
148
148
|
"type": "boolean",
|
|
149
149
|
"referenceOnly": "true"
|
|
150
150
|
},
|
|
151
|
-
"platform.linking-platform.enable-datasource-edit-dropdown-toolbar": {
|
|
152
|
-
"type": "boolean",
|
|
153
|
-
"referenceOnly": "true"
|
|
154
|
-
},
|
|
155
151
|
"platform.editor.live-pages-expand-divergence": {
|
|
156
152
|
"type": "boolean",
|
|
157
153
|
"referenceOnly": "true"
|