@atlaskit/editor-core 193.31.0 → 194.0.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 +14 -0
- package/dist/cjs/presets/universal.js +8 -19
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +8 -20
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +8 -19
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 194.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`d9b562bd66f8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d9b562bd66f8e) -
|
|
8
|
+
[ux] [ED-23947] restoring the original order of the typeahead menu so that actions, media,
|
|
9
|
+
mentions and emojis are above the fold (in the top 5 results). this change is a major because it
|
|
10
|
+
removes the `getEditorFeatureFlags prop` for plugins. if any consumers who have adopted these
|
|
11
|
+
changes to the public API, they should remove them on their side too.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 193.31.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -85,10 +85,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
85
85
|
hyperlinkOptions: _objectSpread({
|
|
86
86
|
lpLinkPicker: (_featureFlags$lpLinkP = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP !== void 0 ? _featureFlags$lpLinkP : false
|
|
87
87
|
}, props.hyperlinkOptions),
|
|
88
|
-
__livePage: props.__livePage
|
|
89
|
-
codeBlock: _objectSpread(_objectSpread({}, props.codeBlock), {}, {
|
|
90
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
91
|
-
})
|
|
88
|
+
__livePage: props.__livePage
|
|
92
89
|
}));
|
|
93
90
|
var statusMenuDisabled = !props.allowStatus ? true : (0, _typeof2.default)(props.allowStatus) === 'object' ? Boolean(props.allowStatus.menuDisabled) : false;
|
|
94
91
|
var hasBeforePrimaryToolbar = function hasBeforePrimaryToolbar(components) {
|
|
@@ -104,8 +101,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
104
101
|
useLongPressSelection: false,
|
|
105
102
|
appearance: appearance,
|
|
106
103
|
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
107
|
-
__livePage: props.__livePage
|
|
108
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
104
|
+
__livePage: props.__livePage
|
|
109
105
|
}], Boolean(props.allowExpand)).maybeAdd(_guideline.guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([_grid.gridPlugin, {
|
|
110
106
|
shouldCalcBreakoutGridLines: isFullPage
|
|
111
107
|
}], Boolean(props.media)).maybeAdd([_annotation.annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([_media.mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
|
|
@@ -129,11 +125,8 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
129
125
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
130
126
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
131
127
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
132
|
-
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
133
|
-
|
|
134
|
-
}], Boolean(props.mentionProvider)).maybeAdd([_emoji.emojiPlugin, {
|
|
135
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
136
|
-
}], Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
128
|
+
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
129
|
+
}], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
137
130
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
138
131
|
tableResizingEnabled: isFullPage,
|
|
139
132
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
@@ -147,8 +140,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
147
140
|
}], Boolean(props.allowTables)).maybeAdd([_tasksAndDecisions.tasksAndDecisionsPlugin, {
|
|
148
141
|
allowNestedTasks: props.allowNestedTasks,
|
|
149
142
|
consumeTabs: isFullPage,
|
|
150
|
-
useLongPressSelection: false
|
|
151
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
143
|
+
useLongPressSelection: false
|
|
152
144
|
}], Boolean(props.allowTasksAndDecisions || props.taskDecisionProvider)).maybeAdd([_feedbackDialog.feedbackDialogPlugin, _objectSpread({
|
|
153
145
|
coreVersion: _versionWrapper.version
|
|
154
146
|
}, props.feedbackInfo)], Boolean(props.feedbackInfo)).maybeAdd([_helpDialog.helpDialogPlugin, !!props.legacyImageUploadProvider], Boolean(props.allowHelpDialog)).maybeAdd([_saveOnEnter.saveOnEnterPlugin, props.onSave], Boolean(props.saveOnEnter && props.onSave)).maybeAdd(_imageUpload.imageUploadPlugin, Boolean(props.legacyImageUploadProvider)).maybeAdd(
|
|
@@ -167,8 +159,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
167
159
|
})], Boolean(props.collabEdit || props.collabEditProvider)).maybeAdd([_maxContentSize.maxContentSizePlugin, props.maxContentSize], Boolean(props.maxContentSize)).maybeAdd([_panel.panelPlugin, {
|
|
168
160
|
useLongPressSelection: false,
|
|
169
161
|
allowCustomPanel: (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanel : false,
|
|
170
|
-
allowCustomPanelEdit: (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
171
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
162
|
+
allowCustomPanelEdit: (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
172
163
|
}], Boolean(props.allowPanel)).maybeAdd(_contextPanel.contextPanelPlugin, Boolean(isFullPage)).maybeAdd([_extension.extensionPlugin, {
|
|
173
164
|
breakoutEnabled: appearance === 'full-page' && ((0, _typeof2.default)(props.allowExtension) === 'object' ? props.allowExtension.allowBreakout : true) !== false,
|
|
174
165
|
extensionHandlers: props.extensionHandlers,
|
|
@@ -181,8 +172,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
181
172
|
// long term this and media should be consolidated into adding both only once
|
|
182
173
|
// @ts-expect-error
|
|
183
174
|
[_annotation.annotationPlugin, undefined], Boolean(!props.annotationProviders && props.allowConfluenceInlineComment)).maybeAdd([_date.datePlugin, {
|
|
184
|
-
weekStartDay: (0, _typeof2.default)(props.allowDate) === 'object' ? props.allowDate.weekStartDay : undefined
|
|
185
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
175
|
+
weekStartDay: (0, _typeof2.default)(props.allowDate) === 'object' ? props.allowDate.weekStartDay : undefined
|
|
186
176
|
}], Boolean(props.allowDate)).maybeAdd([_placeholderText.placeholderTextPlugin,
|
|
187
177
|
// @ts-expect-error 2322: Type 'false | PlaceholderTextOptions | undefined'
|
|
188
178
|
props.allowTemplatePlaceholders !== true ? props.allowTemplatePlaceholders : {}], Boolean(props.allowTemplatePlaceholders)).maybeAdd([_layout.layoutPlugin, _objectSpread(_objectSpread({}, (0, _typeof2.default)(props.allowLayouts) === 'object' ? props.allowLayouts : {}), {}, {
|
|
@@ -196,8 +186,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
196
186
|
editorAppearance: appearance
|
|
197
187
|
})], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(_customAutoformat.customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([_status.statusPlugin, {
|
|
198
188
|
menuDisabled: statusMenuDisabled,
|
|
199
|
-
allowZeroWidthSpaceAfter: !isMobile
|
|
200
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
189
|
+
allowZeroWidthSpaceAfter: !isMobile
|
|
201
190
|
}], Boolean(props.allowStatus)).maybeAdd(_indentation.indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(_scrollIntoView.scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([_toolbarListsIndentation.toolbarListsIndentationPlugin, {
|
|
202
191
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
203
192
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
@@ -73,11 +73,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
73
73
|
lpLinkPicker: (_featureFlags$lpLinkP = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP !== void 0 ? _featureFlags$lpLinkP : false,
|
|
74
74
|
...props.hyperlinkOptions
|
|
75
75
|
},
|
|
76
|
-
__livePage: props.__livePage
|
|
77
|
-
codeBlock: {
|
|
78
|
-
...props.codeBlock,
|
|
79
|
-
getEditorFeatureFlags
|
|
80
|
-
}
|
|
76
|
+
__livePage: props.__livePage
|
|
81
77
|
});
|
|
82
78
|
const statusMenuDisabled = !props.allowStatus ? true : typeof props.allowStatus === 'object' ? Boolean(props.allowStatus.menuDisabled) : false;
|
|
83
79
|
const hasBeforePrimaryToolbar = components => {
|
|
@@ -93,8 +89,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
93
89
|
useLongPressSelection: false,
|
|
94
90
|
appearance: appearance,
|
|
95
91
|
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
96
|
-
__livePage: props.__livePage
|
|
97
|
-
getEditorFeatureFlags
|
|
92
|
+
__livePage: props.__livePage
|
|
98
93
|
}], Boolean(props.allowExpand)).maybeAdd(guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([gridPlugin, {
|
|
99
94
|
shouldCalcBreakoutGridLines: isFullPage
|
|
100
95
|
}], Boolean(props.media)).maybeAdd([annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([mediaPlugin, {
|
|
@@ -119,11 +114,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
119
114
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
120
115
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
121
116
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
122
|
-
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
123
|
-
|
|
124
|
-
}], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
|
|
125
|
-
getEditorFeatureFlags
|
|
126
|
-
}], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
117
|
+
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
118
|
+
}], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
127
119
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
128
120
|
tableResizingEnabled: isFullPage,
|
|
129
121
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
@@ -137,8 +129,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
137
129
|
}], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
|
|
138
130
|
allowNestedTasks: props.allowNestedTasks,
|
|
139
131
|
consumeTabs: isFullPage,
|
|
140
|
-
useLongPressSelection: false
|
|
141
|
-
getEditorFeatureFlags
|
|
132
|
+
useLongPressSelection: false
|
|
142
133
|
}], Boolean(props.allowTasksAndDecisions || props.taskDecisionProvider)).maybeAdd([feedbackDialogPlugin, {
|
|
143
134
|
coreVersion,
|
|
144
135
|
...props.feedbackInfo
|
|
@@ -159,8 +150,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
159
150
|
}], Boolean(props.collabEdit || props.collabEditProvider)).maybeAdd([maxContentSizePlugin, props.maxContentSize], Boolean(props.maxContentSize)).maybeAdd([panelPlugin, {
|
|
160
151
|
useLongPressSelection: false,
|
|
161
152
|
allowCustomPanel: typeof props.allowPanel === 'object' ? props.allowPanel.allowCustomPanel : false,
|
|
162
|
-
allowCustomPanelEdit: typeof props.allowPanel === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
163
|
-
getEditorFeatureFlags
|
|
153
|
+
allowCustomPanelEdit: typeof props.allowPanel === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
164
154
|
}], Boolean(props.allowPanel)).maybeAdd(contextPanelPlugin, Boolean(isFullPage)).maybeAdd([extensionPlugin, {
|
|
165
155
|
breakoutEnabled: appearance === 'full-page' && (typeof props.allowExtension === 'object' ? props.allowExtension.allowBreakout : true) !== false,
|
|
166
156
|
extensionHandlers: props.extensionHandlers,
|
|
@@ -173,8 +163,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
173
163
|
// long term this and media should be consolidated into adding both only once
|
|
174
164
|
// @ts-expect-error
|
|
175
165
|
[annotationPlugin, undefined], Boolean(!props.annotationProviders && props.allowConfluenceInlineComment)).maybeAdd([datePlugin, {
|
|
176
|
-
weekStartDay: typeof props.allowDate === 'object' ? props.allowDate.weekStartDay : undefined
|
|
177
|
-
getEditorFeatureFlags
|
|
166
|
+
weekStartDay: typeof props.allowDate === 'object' ? props.allowDate.weekStartDay : undefined
|
|
178
167
|
}], Boolean(props.allowDate)).maybeAdd([placeholderTextPlugin,
|
|
179
168
|
// @ts-expect-error 2322: Type 'false | PlaceholderTextOptions | undefined'
|
|
180
169
|
props.allowTemplatePlaceholders !== true ? props.allowTemplatePlaceholders : {}], Boolean(props.allowTemplatePlaceholders)).maybeAdd([layoutPlugin, {
|
|
@@ -192,8 +181,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
192
181
|
editorAppearance: appearance
|
|
193
182
|
}], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
|
|
194
183
|
menuDisabled: statusMenuDisabled,
|
|
195
|
-
allowZeroWidthSpaceAfter: !isMobile
|
|
196
|
-
getEditorFeatureFlags
|
|
184
|
+
allowZeroWidthSpaceAfter: !isMobile
|
|
197
185
|
}], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
|
|
198
186
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
199
187
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "194.0.0";
|
|
@@ -77,10 +77,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
77
77
|
hyperlinkOptions: _objectSpread({
|
|
78
78
|
lpLinkPicker: (_featureFlags$lpLinkP = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP !== void 0 ? _featureFlags$lpLinkP : false
|
|
79
79
|
}, props.hyperlinkOptions),
|
|
80
|
-
__livePage: props.__livePage
|
|
81
|
-
codeBlock: _objectSpread(_objectSpread({}, props.codeBlock), {}, {
|
|
82
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
83
|
-
})
|
|
80
|
+
__livePage: props.__livePage
|
|
84
81
|
}));
|
|
85
82
|
var statusMenuDisabled = !props.allowStatus ? true : _typeof(props.allowStatus) === 'object' ? Boolean(props.allowStatus.menuDisabled) : false;
|
|
86
83
|
var hasBeforePrimaryToolbar = function hasBeforePrimaryToolbar(components) {
|
|
@@ -96,8 +93,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
96
93
|
useLongPressSelection: false,
|
|
97
94
|
appearance: appearance,
|
|
98
95
|
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
99
|
-
__livePage: props.__livePage
|
|
100
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
96
|
+
__livePage: props.__livePage
|
|
101
97
|
}], Boolean(props.allowExpand)).maybeAdd(guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([gridPlugin, {
|
|
102
98
|
shouldCalcBreakoutGridLines: isFullPage
|
|
103
99
|
}], Boolean(props.media)).maybeAdd([annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
|
|
@@ -121,11 +117,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
121
117
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
122
118
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
123
119
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
124
|
-
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
125
|
-
|
|
126
|
-
}], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
|
|
127
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
128
|
-
}], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
120
|
+
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
121
|
+
}], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
129
122
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
130
123
|
tableResizingEnabled: isFullPage,
|
|
131
124
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
@@ -139,8 +132,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
139
132
|
}], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
|
|
140
133
|
allowNestedTasks: props.allowNestedTasks,
|
|
141
134
|
consumeTabs: isFullPage,
|
|
142
|
-
useLongPressSelection: false
|
|
143
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
135
|
+
useLongPressSelection: false
|
|
144
136
|
}], Boolean(props.allowTasksAndDecisions || props.taskDecisionProvider)).maybeAdd([feedbackDialogPlugin, _objectSpread({
|
|
145
137
|
coreVersion: coreVersion
|
|
146
138
|
}, props.feedbackInfo)], Boolean(props.feedbackInfo)).maybeAdd([helpDialogPlugin, !!props.legacyImageUploadProvider], Boolean(props.allowHelpDialog)).maybeAdd([saveOnEnterPlugin, props.onSave], Boolean(props.saveOnEnter && props.onSave)).maybeAdd(imageUploadPlugin, Boolean(props.legacyImageUploadProvider)).maybeAdd(
|
|
@@ -159,8 +151,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
159
151
|
})], Boolean(props.collabEdit || props.collabEditProvider)).maybeAdd([maxContentSizePlugin, props.maxContentSize], Boolean(props.maxContentSize)).maybeAdd([panelPlugin, {
|
|
160
152
|
useLongPressSelection: false,
|
|
161
153
|
allowCustomPanel: _typeof(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanel : false,
|
|
162
|
-
allowCustomPanelEdit: _typeof(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
163
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
154
|
+
allowCustomPanelEdit: _typeof(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
164
155
|
}], Boolean(props.allowPanel)).maybeAdd(contextPanelPlugin, Boolean(isFullPage)).maybeAdd([extensionPlugin, {
|
|
165
156
|
breakoutEnabled: appearance === 'full-page' && (_typeof(props.allowExtension) === 'object' ? props.allowExtension.allowBreakout : true) !== false,
|
|
166
157
|
extensionHandlers: props.extensionHandlers,
|
|
@@ -173,8 +164,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
173
164
|
// long term this and media should be consolidated into adding both only once
|
|
174
165
|
// @ts-expect-error
|
|
175
166
|
[annotationPlugin, undefined], Boolean(!props.annotationProviders && props.allowConfluenceInlineComment)).maybeAdd([datePlugin, {
|
|
176
|
-
weekStartDay: _typeof(props.allowDate) === 'object' ? props.allowDate.weekStartDay : undefined
|
|
177
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
167
|
+
weekStartDay: _typeof(props.allowDate) === 'object' ? props.allowDate.weekStartDay : undefined
|
|
178
168
|
}], Boolean(props.allowDate)).maybeAdd([placeholderTextPlugin,
|
|
179
169
|
// @ts-expect-error 2322: Type 'false | PlaceholderTextOptions | undefined'
|
|
180
170
|
props.allowTemplatePlaceholders !== true ? props.allowTemplatePlaceholders : {}], Boolean(props.allowTemplatePlaceholders)).maybeAdd([layoutPlugin, _objectSpread(_objectSpread({}, _typeof(props.allowLayouts) === 'object' ? props.allowLayouts : {}), {}, {
|
|
@@ -188,8 +178,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
188
178
|
editorAppearance: appearance
|
|
189
179
|
})], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
|
|
190
180
|
menuDisabled: statusMenuDisabled,
|
|
191
|
-
allowZeroWidthSpaceAfter: !isMobile
|
|
192
|
-
getEditorFeatureFlags: getEditorFeatureFlags
|
|
181
|
+
allowZeroWidthSpaceAfter: !isMobile
|
|
193
182
|
}], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
|
|
194
183
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
195
184
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "194.0.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "194.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^18.1.0",
|
|
48
|
-
"@atlaskit/editor-common": "^
|
|
48
|
+
"@atlaskit/editor-common": "^84.0.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^3.3.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@af/editor-examples-helpers": "0.0.
|
|
83
|
+
"@af/editor-examples-helpers": "0.0.13",
|
|
84
84
|
"@af/editor-libra": "*",
|
|
85
85
|
"@af/visual-regression": "*",
|
|
86
86
|
"@atlaskit/adf-utils": "^19.4.0",
|
|
87
87
|
"@atlaskit/analytics-listeners": "^8.10.0",
|
|
88
|
-
"@atlaskit/collab-provider": "9.32.
|
|
88
|
+
"@atlaskit/collab-provider": "9.32.3",
|
|
89
89
|
"@atlaskit/editor-json-transformer": "^8.15.0",
|
|
90
|
-
"@atlaskit/editor-plugin-annotation": "1.14.
|
|
90
|
+
"@atlaskit/editor-plugin-annotation": "1.14.1",
|
|
91
91
|
"@atlaskit/editor-plugin-card": "^2.3.0",
|
|
92
92
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
|
|
93
93
|
"@atlaskit/editor-plugin-list": "^3.5.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.89",
|
|
111
111
|
"@emotion/jest": "^11.8.0",
|
|
112
112
|
"@storybook/addon-knobs": "^5.3.18",
|
|
113
113
|
"@testing-library/react": "^12.1.5",
|