@atlaskit/editor-core 193.9.1 → 193.9.6
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 +7 -0
- package/dist/cjs/index.js +47 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/index.js +12 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/index.js +12 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +45 -1
- package/dist/types/presets/universal.d.ts +45 -1
- package/dist/types/presets/useUniversalPreset.d.ts +45 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +53 -1
- package/dist/types-ts4.5/presets/universal.d.ts +53 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +53 -1
- package/package.json +22 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.9.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#87898](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87898) [`6d4009f72e36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d4009f72e36) - [ux] [ED-22591] Fix pasting logic for lines with number and dot (but is not a list item) to retain formatting and correct list conversion.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 193.9.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -160,6 +160,7 @@ Object.defineProperty(exports, "version", {
|
|
|
160
160
|
return _versionWrapper.version;
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
163
164
|
var _versionWrapper = require("./version-wrapper");
|
|
164
165
|
var _editor = _interopRequireDefault(require("./editor"));
|
|
165
166
|
var _EditorContext = _interopRequireDefault(require("./ui/EditorContext"));
|
|
@@ -176,4 +177,49 @@ var _annotation = require("@atlaskit/editor-common/annotation");
|
|
|
176
177
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
177
178
|
var _utils = require("./utils");
|
|
178
179
|
var _actions = _interopRequireDefault(require("./actions"));
|
|
179
|
-
var _portalProvider = require("@atlaskit/editor-common/portal-provider");
|
|
180
|
+
var _portalProvider = require("@atlaskit/editor-common/portal-provider");
|
|
181
|
+
// [ED-22843] use FF in editor-core for sake of example
|
|
182
|
+
|
|
183
|
+
// Used in products integration code
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @deprecated
|
|
187
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
188
|
+
* This is here while we work to extract the annotation plugin.
|
|
189
|
+
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @deprecated
|
|
194
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
195
|
+
* This is here while we work to extract the annotation plugin.
|
|
196
|
+
* Please use the export from `@atlaskit/editor-plugins/annotation`.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
// Used in mobile bridge
|
|
200
|
+
|
|
201
|
+
// Used in editor-test-helpers and mobile bridge
|
|
202
|
+
|
|
203
|
+
// Re-export from provider factory to not cause a breaking change
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @deprecated
|
|
207
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
208
|
+
* This is here while we work to extract the media plugin.
|
|
209
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @deprecated
|
|
214
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
215
|
+
* This is here while we work to extract the media plugin.
|
|
216
|
+
* Please use the export from `@atlaskit/editor-plugins/media/types`.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
// [ED-22843] use FF in editor-core for sake of example
|
|
220
|
+
// @ts-expect-error function is not being used
|
|
221
|
+
var ignoreFunction = function ignoreFunction() {
|
|
222
|
+
// eslint-disable-next-line @atlaskit/platform/no-invalid-feature-flag-usage, @atlaskit/platform/ensure-feature-flag-prefix
|
|
223
|
+
(0, _platformFeatureFlags.getBooleanFF)('__live-view-toggle');
|
|
224
|
+
return;
|
|
225
|
+
};
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// [ED-22843] use FF in editor-core for sake of example
|
|
2
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
|
|
1
4
|
// Used in products integration code
|
|
2
5
|
export { name, version } from './version-wrapper';
|
|
3
6
|
export { default as Editor } from './editor';
|
|
@@ -48,4 +51,12 @@ export { PortalProvider, PortalProviderAPI, PortalRenderer } from '@atlaskit/edi
|
|
|
48
51
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
49
52
|
* This is here while we work to extract the media plugin.
|
|
50
53
|
* Please use the export from `@atlaskit/editor-plugins/media/types`.
|
|
51
|
-
*/
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
// [ED-22843] use FF in editor-core for sake of example
|
|
57
|
+
// @ts-expect-error function is not being used
|
|
58
|
+
const ignoreFunction = () => {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/platform/no-invalid-feature-flag-usage, @atlaskit/platform/ensure-feature-flag-prefix
|
|
60
|
+
getBooleanFF('__live-view-toggle');
|
|
61
|
+
return;
|
|
62
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.9.
|
|
2
|
+
export const version = "193.9.6";
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// [ED-22843] use FF in editor-core for sake of example
|
|
2
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
|
|
1
4
|
// Used in products integration code
|
|
2
5
|
export { name, version } from './version-wrapper';
|
|
3
6
|
export { default as Editor } from './editor';
|
|
@@ -48,4 +51,12 @@ export { PortalProvider, PortalProviderAPI, PortalRenderer } from '@atlaskit/edi
|
|
|
48
51
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
49
52
|
* This is here while we work to extract the media plugin.
|
|
50
53
|
* Please use the export from `@atlaskit/editor-plugins/media/types`.
|
|
51
|
-
*/
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
// [ED-22843] use FF in editor-core for sake of example
|
|
57
|
+
// @ts-expect-error function is not being used
|
|
58
|
+
var ignoreFunction = function ignoreFunction() {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/platform/no-invalid-feature-flag-usage, @atlaskit/platform/ensure-feature-flag-prefix
|
|
60
|
+
getBooleanFF('__live-view-toggle');
|
|
61
|
+
return;
|
|
62
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.9.
|
|
2
|
+
export var version = "193.9.6";
|
|
@@ -1988,7 +1988,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1988
1988
|
dependencies: any;
|
|
1989
1989
|
sharedState: any;
|
|
1990
1990
|
actions: any;
|
|
1991
|
-
}, any
|
|
1991
|
+
}, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1992
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
1993
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
1994
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
1995
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1996
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1997
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1998
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1999
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2000
|
+
sharedState: {
|
|
2001
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2002
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2003
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2004
|
+
};
|
|
2005
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2006
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2007
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2008
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2009
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2010
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
2011
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2012
|
+
actions: {
|
|
2013
|
+
getAvatarColor: (str: string) => {
|
|
2014
|
+
index: number;
|
|
2015
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2016
|
+
};
|
|
2017
|
+
addInlineCommentMark: (props: {
|
|
2018
|
+
from: number;
|
|
2019
|
+
to: number;
|
|
2020
|
+
mark: import("prosemirror-model").Mark;
|
|
2021
|
+
}) => boolean;
|
|
2022
|
+
};
|
|
2023
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
2024
|
+
pluginConfiguration?: {
|
|
2025
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2026
|
+
} | undefined;
|
|
2027
|
+
commands: {
|
|
2028
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2029
|
+
};
|
|
2030
|
+
actions: {
|
|
2031
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2032
|
+
};
|
|
2033
|
+
}, {
|
|
2034
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2035
|
+
} | undefined>>];
|
|
1992
2036
|
}, import("@atlaskit/editor-plugin-table").TablePluginOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
1993
2037
|
pluginConfiguration: import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined;
|
|
1994
2038
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -2005,7 +2005,51 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2005
2005
|
dependencies: any;
|
|
2006
2006
|
sharedState: any;
|
|
2007
2007
|
actions: any;
|
|
2008
|
-
}, any
|
|
2008
|
+
}, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2009
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2010
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
2011
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions;
|
|
2012
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2013
|
+
pluginConfiguration: FeatureFlags;
|
|
2014
|
+
sharedState: FeatureFlags;
|
|
2015
|
+
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2016
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2017
|
+
sharedState: {
|
|
2018
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
2019
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2020
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2021
|
+
};
|
|
2022
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2023
|
+
pluginConfiguration: FeatureFlags;
|
|
2024
|
+
sharedState: FeatureFlags;
|
|
2025
|
+
}, FeatureFlags>>];
|
|
2026
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2027
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
2028
|
+
sharedState: import("@atlaskit/editor-plugins/collab-edit").CollabEditPluginSharedState;
|
|
2029
|
+
actions: {
|
|
2030
|
+
getAvatarColor: (str: string) => {
|
|
2031
|
+
index: number;
|
|
2032
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2033
|
+
};
|
|
2034
|
+
addInlineCommentMark: (props: {
|
|
2035
|
+
from: number;
|
|
2036
|
+
to: number;
|
|
2037
|
+
mark: import("prosemirror-model").Mark;
|
|
2038
|
+
}) => boolean;
|
|
2039
|
+
};
|
|
2040
|
+
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>];
|
|
2041
|
+
pluginConfiguration?: {
|
|
2042
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2043
|
+
} | undefined;
|
|
2044
|
+
commands: {
|
|
2045
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2046
|
+
};
|
|
2047
|
+
actions: {
|
|
2048
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2049
|
+
};
|
|
2050
|
+
}, {
|
|
2051
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2052
|
+
} | undefined>>];
|
|
2009
2053
|
}, import("@atlaskit/editor-plugins/table").TablePluginOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
2010
2054
|
pluginConfiguration: import("@atlaskit/editor-plugins/emoji").EmojiPluginOptions | undefined;
|
|
2011
2055
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -1991,7 +1991,51 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
1991
1991
|
dependencies: any;
|
|
1992
1992
|
sharedState: any;
|
|
1993
1993
|
actions: any;
|
|
1994
|
-
}, any
|
|
1994
|
+
}, any>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
|
|
1995
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
1996
|
+
dependencies: [import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"collabEdit", {
|
|
1997
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
1998
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"featureFlags", {
|
|
1999
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2000
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2001
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
2002
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2003
|
+
sharedState: {
|
|
2004
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2005
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2006
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2007
|
+
};
|
|
2008
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"featureFlags", {
|
|
2009
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2010
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2011
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2012
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2013
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
2014
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2015
|
+
actions: {
|
|
2016
|
+
getAvatarColor: (str: string) => {
|
|
2017
|
+
index: number;
|
|
2018
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2019
|
+
};
|
|
2020
|
+
addInlineCommentMark: (props: {
|
|
2021
|
+
from: number;
|
|
2022
|
+
to: number;
|
|
2023
|
+
mark: import("prosemirror-model").Mark;
|
|
2024
|
+
}) => boolean;
|
|
2025
|
+
};
|
|
2026
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
2027
|
+
pluginConfiguration?: {
|
|
2028
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2029
|
+
} | undefined;
|
|
2030
|
+
commands: {
|
|
2031
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2032
|
+
};
|
|
2033
|
+
actions: {
|
|
2034
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2035
|
+
};
|
|
2036
|
+
}, {
|
|
2037
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2038
|
+
} | undefined>>];
|
|
1995
2039
|
}, import("@atlaskit/editor-plugin-table").TablePluginOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"emoji", {
|
|
1996
2040
|
pluginConfiguration: import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined;
|
|
1997
2041
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -2496,7 +2496,59 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2496
2496
|
dependencies: any;
|
|
2497
2497
|
sharedState: any;
|
|
2498
2498
|
actions: any;
|
|
2499
|
-
}, any
|
|
2499
|
+
}, any>>,
|
|
2500
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2501
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2502
|
+
dependencies: [
|
|
2503
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
2504
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
2505
|
+
dependencies: [
|
|
2506
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2507
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2508
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2509
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
2510
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2511
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2512
|
+
sharedState: {
|
|
2513
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2514
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2515
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2516
|
+
};
|
|
2517
|
+
dependencies: [
|
|
2518
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2519
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2520
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2521
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2522
|
+
];
|
|
2523
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2524
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2525
|
+
];
|
|
2526
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2527
|
+
actions: {
|
|
2528
|
+
getAvatarColor: (str: string) => {
|
|
2529
|
+
index: number;
|
|
2530
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2531
|
+
};
|
|
2532
|
+
addInlineCommentMark: (props: {
|
|
2533
|
+
from: number;
|
|
2534
|
+
to: number;
|
|
2535
|
+
mark: import("prosemirror-model").Mark;
|
|
2536
|
+
}) => boolean;
|
|
2537
|
+
};
|
|
2538
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
2539
|
+
];
|
|
2540
|
+
pluginConfiguration?: {
|
|
2541
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2542
|
+
} | undefined;
|
|
2543
|
+
commands: {
|
|
2544
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2545
|
+
};
|
|
2546
|
+
actions: {
|
|
2547
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2548
|
+
};
|
|
2549
|
+
}, {
|
|
2550
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2551
|
+
} | undefined>>
|
|
2500
2552
|
];
|
|
2501
2553
|
}, import("@atlaskit/editor-plugin-table").TablePluginOptions | undefined>>,
|
|
2502
2554
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
@@ -2513,7 +2513,59 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2513
2513
|
dependencies: any;
|
|
2514
2514
|
sharedState: any;
|
|
2515
2515
|
actions: any;
|
|
2516
|
-
}, any
|
|
2516
|
+
}, any>>,
|
|
2517
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2518
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2519
|
+
dependencies: [
|
|
2520
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
2521
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions;
|
|
2522
|
+
dependencies: [
|
|
2523
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2524
|
+
pluginConfiguration: FeatureFlags;
|
|
2525
|
+
sharedState: FeatureFlags;
|
|
2526
|
+
}, FeatureFlags>>,
|
|
2527
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2528
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2529
|
+
sharedState: {
|
|
2530
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
2531
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2532
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2533
|
+
};
|
|
2534
|
+
dependencies: [
|
|
2535
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2536
|
+
pluginConfiguration: FeatureFlags;
|
|
2537
|
+
sharedState: FeatureFlags;
|
|
2538
|
+
}, FeatureFlags>>
|
|
2539
|
+
];
|
|
2540
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2541
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2542
|
+
];
|
|
2543
|
+
sharedState: import("@atlaskit/editor-plugins/collab-edit").CollabEditPluginSharedState;
|
|
2544
|
+
actions: {
|
|
2545
|
+
getAvatarColor: (str: string) => {
|
|
2546
|
+
index: number;
|
|
2547
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2548
|
+
};
|
|
2549
|
+
addInlineCommentMark: (props: {
|
|
2550
|
+
from: number;
|
|
2551
|
+
to: number;
|
|
2552
|
+
mark: import("prosemirror-model").Mark;
|
|
2553
|
+
}) => boolean;
|
|
2554
|
+
};
|
|
2555
|
+
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>
|
|
2556
|
+
];
|
|
2557
|
+
pluginConfiguration?: {
|
|
2558
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2559
|
+
} | undefined;
|
|
2560
|
+
commands: {
|
|
2561
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2562
|
+
};
|
|
2563
|
+
actions: {
|
|
2564
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2565
|
+
};
|
|
2566
|
+
}, {
|
|
2567
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2568
|
+
} | undefined>>
|
|
2517
2569
|
];
|
|
2518
2570
|
}, import("@atlaskit/editor-plugins/table").TablePluginOptions | undefined>>,
|
|
2519
2571
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
@@ -2499,7 +2499,59 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2499
2499
|
dependencies: any;
|
|
2500
2500
|
sharedState: any;
|
|
2501
2501
|
actions: any;
|
|
2502
|
-
}, any
|
|
2502
|
+
}, any>>,
|
|
2503
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
|
|
2504
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2505
|
+
dependencies: [
|
|
2506
|
+
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"collabEdit", {
|
|
2507
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
2508
|
+
dependencies: [
|
|
2509
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"featureFlags", {
|
|
2510
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2511
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2512
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
2513
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
2514
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2515
|
+
sharedState: {
|
|
2516
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2517
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2518
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2519
|
+
};
|
|
2520
|
+
dependencies: [
|
|
2521
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"featureFlags", {
|
|
2522
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2523
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2524
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2525
|
+
];
|
|
2526
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2527
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2528
|
+
];
|
|
2529
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2530
|
+
actions: {
|
|
2531
|
+
getAvatarColor: (str: string) => {
|
|
2532
|
+
index: number;
|
|
2533
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2534
|
+
};
|
|
2535
|
+
addInlineCommentMark: (props: {
|
|
2536
|
+
from: number;
|
|
2537
|
+
to: number;
|
|
2538
|
+
mark: import("prosemirror-model").Mark;
|
|
2539
|
+
}) => boolean;
|
|
2540
|
+
};
|
|
2541
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
2542
|
+
];
|
|
2543
|
+
pluginConfiguration?: {
|
|
2544
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2545
|
+
} | undefined;
|
|
2546
|
+
commands: {
|
|
2547
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2548
|
+
};
|
|
2549
|
+
actions: {
|
|
2550
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2551
|
+
};
|
|
2552
|
+
}, {
|
|
2553
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2554
|
+
} | undefined>>
|
|
2503
2555
|
];
|
|
2504
2556
|
}, import("@atlaskit/editor-plugin-table").TablePluginOptions | undefined>>,
|
|
2505
2557
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"emoji", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "193.9.
|
|
3
|
+
"version": "193.9.6",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,21 +45,21 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^17.11.0",
|
|
48
|
-
"@atlaskit/editor-common": "^78.
|
|
48
|
+
"@atlaskit/editor-common": "^78.25.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
50
50
|
"@atlaskit/editor-plugins": "^2.0.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
53
53
|
"@atlaskit/emoji": "^67.6.0",
|
|
54
54
|
"@atlaskit/icon": "^22.1.0",
|
|
55
|
-
"@atlaskit/media-card": "^77.
|
|
55
|
+
"@atlaskit/media-card": "^77.11.0",
|
|
56
56
|
"@atlaskit/mention": "^23.0.0",
|
|
57
57
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
58
58
|
"@atlaskit/spinner": "^16.0.0",
|
|
59
59
|
"@atlaskit/task-decision": "^17.9.0",
|
|
60
60
|
"@atlaskit/theme": "^12.7.0",
|
|
61
61
|
"@atlaskit/tokens": "^1.43.0",
|
|
62
|
-
"@atlaskit/tooltip": "^18.
|
|
62
|
+
"@atlaskit/tooltip": "^18.2.0",
|
|
63
63
|
"@atlaskit/ufo": "^0.2.0",
|
|
64
64
|
"@atlaskit/width-detector": "^4.1.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/collab-provider": "9.25.15",
|
|
91
91
|
"@atlaskit/dropdown-menu": "^12.8.0",
|
|
92
92
|
"@atlaskit/editor-plugin-annotation": "1.5.7",
|
|
93
|
-
"@atlaskit/editor-plugin-card": "^1.
|
|
93
|
+
"@atlaskit/editor-plugin-card": "^1.5.0",
|
|
94
94
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
|
|
95
95
|
"@atlaskit/editor-plugin-list": "^3.1.5",
|
|
96
96
|
"@atlaskit/editor-plugin-paste": "^1.0.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@atlaskit/media-test-helpers": "^33.0.27",
|
|
105
105
|
"@atlaskit/modal-dialog": "^12.10.0",
|
|
106
106
|
"@atlaskit/primitives": "^5.5.0",
|
|
107
|
-
"@atlaskit/renderer": "^109.
|
|
107
|
+
"@atlaskit/renderer": "^109.16.0",
|
|
108
108
|
"@atlaskit/select": "^17.6.0",
|
|
109
109
|
"@atlaskit/smart-card": "^26.52.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "^2.3.0",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
115
115
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
116
116
|
"@atlassian/link-picker-plugins": "^24.0.0",
|
|
117
|
-
"@atlassian/search-provider": "2.4.
|
|
117
|
+
"@atlassian/search-provider": "2.4.50",
|
|
118
118
|
"@atlassian/ufo": "^0.2.0",
|
|
119
119
|
"@emotion/jest": "^11.8.0",
|
|
120
120
|
"@storybook/addon-knobs": "^5.3.18",
|
|
@@ -184,6 +184,14 @@
|
|
|
184
184
|
"type": "boolean",
|
|
185
185
|
"referenceOnly": "true"
|
|
186
186
|
},
|
|
187
|
+
"platform.linking-platform.datasource-assets_objects_remove_beta": {
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"referenceOnly": "true"
|
|
190
|
+
},
|
|
191
|
+
"platform.linking-platform.datasource-assets_objects": {
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"referenceOnly": "true"
|
|
194
|
+
},
|
|
187
195
|
"platform.editor.table-sticky-scrollbar": {
|
|
188
196
|
"type": "boolean"
|
|
189
197
|
},
|
|
@@ -304,6 +312,13 @@
|
|
|
304
312
|
"platform.editor.single-player-expand": {
|
|
305
313
|
"type": "boolean",
|
|
306
314
|
"referenceOnly": "true"
|
|
315
|
+
},
|
|
316
|
+
"__live-view-toggle": {
|
|
317
|
+
"type": "boolean"
|
|
318
|
+
},
|
|
319
|
+
"platform.editor.extractlistfromparagraphv2": {
|
|
320
|
+
"type": "boolean",
|
|
321
|
+
"referenceOnly": "true"
|
|
307
322
|
}
|
|
308
323
|
},
|
|
309
324
|
"stricter": {
|