@atlaskit/editor-core 199.1.0 → 199.2.1
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 +28 -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/create-editor/create-universal-preset.d.ts +4 -1
- package/dist/types/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types/presets/universal.d.ts +4 -1
- package/dist/types/presets/useUniversalPreset.d.ts +4 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +4 -1
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types-ts4.5/presets/universal.d.ts +4 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +4 -1
- package/package.json +9 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 199.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#155693](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155693)
|
|
8
|
+
[`172485595104b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/172485595104b) -
|
|
9
|
+
[ED-24685] Removing feature flag that gated multi bodied extensions being available in the editor
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 199.2.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#153949](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/153949)
|
|
17
|
+
[`f924bc9be1373`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f924bc9be1373) -
|
|
18
|
+
Add activityProvider prop for editor to use with media.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#155195](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155195)
|
|
23
|
+
[`73c97aeb48ea9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/73c97aeb48ea9) -
|
|
24
|
+
Add platform_editor_support_table_in_comment_jira experiment to control table drag and drop and
|
|
25
|
+
table scaling features to support new table features in jira
|
|
26
|
+
- [#155195](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155195)
|
|
27
|
+
[`086e77aecf6e5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/086e77aecf6e5) -
|
|
28
|
+
[ux] ED-25202 Support Preview in media files
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 199.1.0
|
|
4
32
|
|
|
5
33
|
### 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.1
|
|
2
|
+
export const version = "199.2.1";
|
|
@@ -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.1
|
|
2
|
+
export var version = "199.2.1";
|
|
@@ -1793,7 +1793,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1793
1793
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1794
1794
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
1795
1795
|
actions: {
|
|
1796
|
-
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE
|
|
1796
|
+
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
1797
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
1798
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
1799
|
+
} | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1797
1800
|
};
|
|
1798
1801
|
}, import("@atlaskit/editor-plugin-layout").LayoutPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholderText", {
|
|
1799
1802
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -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';
|
|
@@ -1844,7 +1844,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1844
1844
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1845
1845
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
1846
1846
|
actions: {
|
|
1847
|
-
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE
|
|
1847
|
+
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
1848
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
1849
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
1850
|
+
} | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1848
1851
|
};
|
|
1849
1852
|
}, import("@atlaskit/editor-plugins/layout").LayoutPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholderText", {
|
|
1850
1853
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -1793,7 +1793,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1793
1793
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1794
1794
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
1795
1795
|
actions: {
|
|
1796
|
-
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE
|
|
1796
|
+
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
1797
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
1798
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
1799
|
+
} | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1797
1800
|
};
|
|
1798
1801
|
}, import("@atlaskit/editor-plugin-layout").LayoutPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholderText", {
|
|
1799
1802
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -2231,7 +2231,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2231
2231
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2232
2232
|
];
|
|
2233
2233
|
actions: {
|
|
2234
|
-
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE
|
|
2234
|
+
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
2235
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
2236
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
2237
|
+
} | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2235
2238
|
};
|
|
2236
2239
|
}, import("@atlaskit/editor-plugin-layout").LayoutPluginOptions | undefined> | undefined,
|
|
2237
2240
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholderText", {
|
|
@@ -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';
|
|
@@ -2282,7 +2282,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2282
2282
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2283
2283
|
];
|
|
2284
2284
|
actions: {
|
|
2285
|
-
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE
|
|
2285
|
+
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
2286
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
2287
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
2288
|
+
} | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2286
2289
|
};
|
|
2287
2290
|
}, import("@atlaskit/editor-plugins/layout").LayoutPluginOptions | undefined> | undefined,
|
|
2288
2291
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholderText", {
|
|
@@ -2231,7 +2231,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2231
2231
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2232
2232
|
];
|
|
2233
2233
|
actions: {
|
|
2234
|
-
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE
|
|
2234
|
+
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
2235
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
2236
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
2237
|
+
} | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2235
2238
|
};
|
|
2236
2239
|
}, import("@atlaskit/editor-plugin-layout").LayoutPluginOptions | undefined> | undefined,
|
|
2237
2240
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholderText", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "199.1
|
|
3
|
+
"version": "199.2.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,16 +42,16 @@
|
|
|
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
|
-
"@atlaskit/editor-plugin-quick-insert": "1.5.
|
|
48
|
+
"@atlaskit/editor-plugin-quick-insert": "1.5.1",
|
|
49
49
|
"@atlaskit/editor-plugins": "^5.6.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^3.0.0",
|
|
52
52
|
"@atlaskit/emoji": "^67.8.0",
|
|
53
|
-
"@atlaskit/icon": "^22.
|
|
54
|
-
"@atlaskit/media-card": "^78.
|
|
53
|
+
"@atlaskit/icon": "^22.24.0",
|
|
54
|
+
"@atlaskit/media-card": "^78.8.0",
|
|
55
55
|
"@atlaskit/mention": "^23.3.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/task-decision": "^17.11.0",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@af/editor-libra": "*",
|
|
83
83
|
"@af/visual-regression": "*",
|
|
84
|
-
"@atlaskit/adf-utils": "^19.
|
|
84
|
+
"@atlaskit/adf-utils": "^19.10.0",
|
|
85
85
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
86
86
|
"@atlaskit/collab-provider": "9.43.3",
|
|
87
|
-
"@atlaskit/editor-plugin-annotation": "1.21.
|
|
87
|
+
"@atlaskit/editor-plugin-annotation": "1.21.3",
|
|
88
88
|
"@atlaskit/editor-plugin-card": "^4.3.0",
|
|
89
89
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|
|
90
90
|
"@atlaskit/editor-plugin-paste": "^1.14.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@atlaskit/visual-regression": "*",
|
|
104
104
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
105
105
|
"@atlassian/feature-flags-test-utils": "*",
|
|
106
|
-
"@atlassian/search-provider": "2.4.
|
|
106
|
+
"@atlassian/search-provider": "2.4.153",
|
|
107
107
|
"@emotion/jest": "^11.8.0",
|
|
108
108
|
"@storybook/addon-knobs": "^5.3.18",
|
|
109
109
|
"@testing-library/react": "^12.1.5",
|
|
@@ -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"
|
|
@@ -160,10 +156,6 @@
|
|
|
160
156
|
"type": "boolean",
|
|
161
157
|
"referenceOnly": "true"
|
|
162
158
|
},
|
|
163
|
-
"platform.editor.multi-bodied-extension_0rygg": {
|
|
164
|
-
"type": "boolean",
|
|
165
|
-
"referenceOnly": "true"
|
|
166
|
-
},
|
|
167
159
|
"editor_inline_comments_on_inline_nodes": {
|
|
168
160
|
"type": "boolean",
|
|
169
161
|
"referenceOnly": "true"
|