@atlaskit/editor-core 197.0.0 → 197.1.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 +8 -0
- package/dist/cjs/presets/universal.js +6 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +6 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +6 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/presets/universal.d.ts +86 -2
- package/dist/types-ts4.5/presets/universal.d.ts +86 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 197.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#135270](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/135270)
|
|
8
|
+
[`4a75557335357`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4a75557335357) -
|
|
9
|
+
[ux] [ED-23237] feat(node data provider): wire up to emoji provider
|
|
10
|
+
|
|
3
11
|
## 197.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
|
@@ -63,6 +63,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
63
63
|
/**
|
|
64
64
|
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
65
65
|
* to configuring plugins.
|
|
66
|
+
*
|
|
67
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
66
68
|
*/
|
|
67
69
|
|
|
68
70
|
/**
|
|
@@ -77,7 +79,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
77
79
|
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
78
80
|
*/
|
|
79
81
|
function createUniversalPresetInternal(_ref) {
|
|
80
|
-
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
82
|
+
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _initialPluginConfigu, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
81
83
|
var appearance = _ref.appearance,
|
|
82
84
|
props = _ref.props,
|
|
83
85
|
featureFlags = _ref.featureFlags,
|
|
@@ -139,7 +141,9 @@ function createUniversalPresetInternal(_ref) {
|
|
|
139
141
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
140
142
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
141
143
|
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
142
|
-
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin,
|
|
144
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd([_emoji.emojiPlugin, {
|
|
145
|
+
emojiNodeDataProvider: initialPluginConfiguration === null || initialPluginConfiguration === void 0 || (_initialPluginConfigu = initialPluginConfiguration.emoji) === null || _initialPluginConfigu === void 0 ? void 0 : _initialPluginConfigu.emojiNodeDataProvider
|
|
146
|
+
}], Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, _objectSpread({
|
|
143
147
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
144
148
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
|
145
149
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
|
@@ -52,6 +52,8 @@ import { createDefaultPreset } from './default';
|
|
|
52
52
|
/**
|
|
53
53
|
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
54
54
|
* to configuring plugins.
|
|
55
|
+
*
|
|
56
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
55
57
|
*/
|
|
56
58
|
|
|
57
59
|
/**
|
|
@@ -73,7 +75,7 @@ export default function createUniversalPresetInternal({
|
|
|
73
75
|
prevAppearance,
|
|
74
76
|
createAnalyticsEvent
|
|
75
77
|
}) {
|
|
76
|
-
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
78
|
+
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _initialPluginConfigu, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
77
79
|
const isMobile = appearance === 'mobile';
|
|
78
80
|
const isComment = appearance === 'comment';
|
|
79
81
|
const isChromeless = appearance === 'chromeless';
|
|
@@ -131,7 +133,9 @@ export default function createUniversalPresetInternal({
|
|
|
131
133
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
132
134
|
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
|
|
133
135
|
...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)
|
|
134
|
-
}], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin,
|
|
136
|
+
}], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
|
|
137
|
+
emojiNodeDataProvider: initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : (_initialPluginConfigu = initialPluginConfiguration.emoji) === null || _initialPluginConfigu === void 0 ? void 0 : _initialPluginConfigu.emojiNodeDataProvider
|
|
138
|
+
}], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
135
139
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
136
140
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
|
|
137
141
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "197.
|
|
2
|
+
export const version = "197.1.0";
|
|
@@ -56,6 +56,8 @@ import { createDefaultPreset } from './default';
|
|
|
56
56
|
/**
|
|
57
57
|
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
58
58
|
* to configuring plugins.
|
|
59
|
+
*
|
|
60
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
59
61
|
*/
|
|
60
62
|
|
|
61
63
|
/**
|
|
@@ -70,7 +72,7 @@ import { createDefaultPreset } from './default';
|
|
|
70
72
|
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
71
73
|
*/
|
|
72
74
|
export default function createUniversalPresetInternal(_ref) {
|
|
73
|
-
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
75
|
+
var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _initialPluginConfigu, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
|
|
74
76
|
var appearance = _ref.appearance,
|
|
75
77
|
props = _ref.props,
|
|
76
78
|
featureFlags = _ref.featureFlags,
|
|
@@ -132,7 +134,9 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
132
134
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
133
135
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
134
136
|
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
135
|
-
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin,
|
|
137
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
|
|
138
|
+
emojiNodeDataProvider: initialPluginConfiguration === null || initialPluginConfiguration === void 0 || (_initialPluginConfigu = initialPluginConfiguration.emoji) === null || _initialPluginConfigu === void 0 ? void 0 : _initialPluginConfigu.emojiNodeDataProvider
|
|
139
|
+
}], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, _objectSpread({
|
|
136
140
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
137
141
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
|
|
138
142
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.
|
|
2
|
+
export var version = "197.1.0";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { type EmojiPluginOptions } from '@atlaskit/editor-plugins/emoji';
|
|
4
5
|
import type { EditorProps } from '../types';
|
|
5
6
|
import type { EditorPluginFeatureProps, EditorProviderProps, EditorSharedPropsWithPlugins } from '../types/editor-props';
|
|
6
7
|
import type { FeatureFlags } from '../types/feature-flags';
|
|
@@ -9,6 +10,8 @@ type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPl
|
|
|
9
10
|
/**
|
|
10
11
|
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
11
12
|
* to configuring plugins.
|
|
13
|
+
*
|
|
14
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
12
15
|
*/
|
|
13
16
|
export type InitialPluginConfiguration = {
|
|
14
17
|
mentionsPlugin?: {
|
|
@@ -21,6 +24,9 @@ export type InitialPluginConfiguration = {
|
|
|
21
24
|
tablesPlugin?: {
|
|
22
25
|
tableResizingEnabled?: boolean;
|
|
23
26
|
};
|
|
27
|
+
emoji?: {
|
|
28
|
+
emojiNodeDataProvider?: EmojiPluginOptions['emojiNodeDataProvider'];
|
|
29
|
+
};
|
|
24
30
|
};
|
|
25
31
|
/**
|
|
26
32
|
* Creates a preset with all of the available plugins.
|
|
@@ -784,6 +790,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
784
790
|
}, FeatureFlags>>];
|
|
785
791
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
786
792
|
actions: {
|
|
793
|
+
/**
|
|
794
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
795
|
+
* to configuring plugins.
|
|
796
|
+
*
|
|
797
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
798
|
+
*/
|
|
787
799
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
788
800
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
789
801
|
insert: (props: {
|
|
@@ -1049,6 +1061,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1049
1061
|
}, FeatureFlags>>];
|
|
1050
1062
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
1051
1063
|
actions: {
|
|
1064
|
+
/**
|
|
1065
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
1066
|
+
* to configuring plugins.
|
|
1067
|
+
*
|
|
1068
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
1069
|
+
*/
|
|
1052
1070
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1053
1071
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1054
1072
|
insert: (props: {
|
|
@@ -1422,6 +1440,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1422
1440
|
}, FeatureFlags>>];
|
|
1423
1441
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
1424
1442
|
actions: {
|
|
1443
|
+
/**
|
|
1444
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
1445
|
+
* to configuring plugins.
|
|
1446
|
+
*
|
|
1447
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
1448
|
+
*/
|
|
1425
1449
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1426
1450
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1427
1451
|
insert: (props: {
|
|
@@ -2045,6 +2069,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2045
2069
|
}, FeatureFlags>>];
|
|
2046
2070
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2047
2071
|
actions: {
|
|
2072
|
+
/**
|
|
2073
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
2074
|
+
* to configuring plugins.
|
|
2075
|
+
*
|
|
2076
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
2077
|
+
*/
|
|
2048
2078
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2049
2079
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2050
2080
|
insert: (props: {
|
|
@@ -2124,6 +2154,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2124
2154
|
}, FeatureFlags>>];
|
|
2125
2155
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2126
2156
|
actions: {
|
|
2157
|
+
/**
|
|
2158
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
2159
|
+
* to configuring plugins.
|
|
2160
|
+
*
|
|
2161
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
2162
|
+
*/
|
|
2127
2163
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2128
2164
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2129
2165
|
insert: (props: {
|
|
@@ -2253,7 +2289,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2253
2289
|
sharedState: FeatureFlags;
|
|
2254
2290
|
}, FeatureFlags>>];
|
|
2255
2291
|
}, import("@atlaskit/editor-plugins/table").TablePluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
2256
|
-
pluginConfiguration:
|
|
2292
|
+
pluginConfiguration: EmojiPluginOptions | undefined;
|
|
2257
2293
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2258
2294
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2259
2295
|
sharedState: {
|
|
@@ -2286,6 +2322,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2286
2322
|
}, FeatureFlags>>];
|
|
2287
2323
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2288
2324
|
actions: {
|
|
2325
|
+
/**
|
|
2326
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
2327
|
+
* to configuring plugins.
|
|
2328
|
+
*
|
|
2329
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
2330
|
+
*/
|
|
2289
2331
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2290
2332
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2291
2333
|
insert: (props: {
|
|
@@ -2319,7 +2361,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2319
2361
|
actions: {
|
|
2320
2362
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2321
2363
|
};
|
|
2322
|
-
},
|
|
2364
|
+
}, EmojiPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mention", {
|
|
2323
2365
|
pluginConfiguration: import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined;
|
|
2324
2366
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2325
2367
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -2353,6 +2395,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2353
2395
|
}, FeatureFlags>>];
|
|
2354
2396
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2355
2397
|
actions: {
|
|
2398
|
+
/**
|
|
2399
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
2400
|
+
* to configuring plugins.
|
|
2401
|
+
*
|
|
2402
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
2403
|
+
*/
|
|
2356
2404
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2357
2405
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2358
2406
|
insert: (props: {
|
|
@@ -3198,6 +3246,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3198
3246
|
}, FeatureFlags>>];
|
|
3199
3247
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
3200
3248
|
actions: {
|
|
3249
|
+
/**
|
|
3250
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
3251
|
+
* to configuring plugins.
|
|
3252
|
+
*
|
|
3253
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
3254
|
+
*/
|
|
3201
3255
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
3202
3256
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
3203
3257
|
insert: (props: {
|
|
@@ -3898,6 +3952,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3898
3952
|
}, FeatureFlags>>];
|
|
3899
3953
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
3900
3954
|
actions: {
|
|
3955
|
+
/**
|
|
3956
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
3957
|
+
* to configuring plugins.
|
|
3958
|
+
*
|
|
3959
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
3960
|
+
*/
|
|
3901
3961
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
3902
3962
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
3903
3963
|
insert: (props: {
|
|
@@ -3946,6 +4006,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3946
4006
|
}, FeatureFlags>>];
|
|
3947
4007
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
3948
4008
|
actions: {
|
|
4009
|
+
/**
|
|
4010
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
4011
|
+
* to configuring plugins.
|
|
4012
|
+
*
|
|
4013
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
4014
|
+
*/
|
|
3949
4015
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
3950
4016
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
3951
4017
|
insert: (props: {
|
|
@@ -4321,6 +4387,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4321
4387
|
}, FeatureFlags>>];
|
|
4322
4388
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
4323
4389
|
actions: {
|
|
4390
|
+
/**
|
|
4391
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
4392
|
+
* to configuring plugins.
|
|
4393
|
+
*
|
|
4394
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
4395
|
+
*/
|
|
4324
4396
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
4325
4397
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
4326
4398
|
insert: (props: {
|
|
@@ -4387,6 +4459,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4387
4459
|
}, FeatureFlags>>];
|
|
4388
4460
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
4389
4461
|
actions: {
|
|
4462
|
+
/**
|
|
4463
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
4464
|
+
* to configuring plugins.
|
|
4465
|
+
*
|
|
4466
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
4467
|
+
*/
|
|
4390
4468
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
4391
4469
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
4392
4470
|
insert: (props: {
|
|
@@ -5167,6 +5245,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
5167
5245
|
}, FeatureFlags>>];
|
|
5168
5246
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
5169
5247
|
actions: {
|
|
5248
|
+
/**
|
|
5249
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
5250
|
+
* to configuring plugins.
|
|
5251
|
+
*
|
|
5252
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
5253
|
+
*/
|
|
5170
5254
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5171
5255
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5172
5256
|
insert: (props: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { type EmojiPluginOptions } from '@atlaskit/editor-plugins/emoji';
|
|
4
5
|
import type { EditorProps } from '../types';
|
|
5
6
|
import type { EditorPluginFeatureProps, EditorProviderProps, EditorSharedPropsWithPlugins } from '../types/editor-props';
|
|
6
7
|
import type { FeatureFlags } from '../types/feature-flags';
|
|
@@ -9,6 +10,8 @@ type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPl
|
|
|
9
10
|
/**
|
|
10
11
|
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
11
12
|
* to configuring plugins.
|
|
13
|
+
*
|
|
14
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
12
15
|
*/
|
|
13
16
|
export type InitialPluginConfiguration = {
|
|
14
17
|
mentionsPlugin?: {
|
|
@@ -21,6 +24,9 @@ export type InitialPluginConfiguration = {
|
|
|
21
24
|
tablesPlugin?: {
|
|
22
25
|
tableResizingEnabled?: boolean;
|
|
23
26
|
};
|
|
27
|
+
emoji?: {
|
|
28
|
+
emojiNodeDataProvider?: EmojiPluginOptions['emojiNodeDataProvider'];
|
|
29
|
+
};
|
|
24
30
|
};
|
|
25
31
|
/**
|
|
26
32
|
* Creates a preset with all of the available plugins.
|
|
@@ -1033,6 +1039,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1033
1039
|
];
|
|
1034
1040
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
1035
1041
|
actions: {
|
|
1042
|
+
/**
|
|
1043
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
1044
|
+
* to configuring plugins.
|
|
1045
|
+
*
|
|
1046
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
1047
|
+
*/
|
|
1036
1048
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1037
1049
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1038
1050
|
insert: (props: {
|
|
@@ -1349,6 +1361,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1349
1361
|
];
|
|
1350
1362
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
1351
1363
|
actions: {
|
|
1364
|
+
/**
|
|
1365
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
1366
|
+
* to configuring plugins.
|
|
1367
|
+
*
|
|
1368
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
1369
|
+
*/
|
|
1352
1370
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1353
1371
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1354
1372
|
insert: (props: {
|
|
@@ -1807,6 +1825,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1807
1825
|
];
|
|
1808
1826
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
1809
1827
|
actions: {
|
|
1828
|
+
/**
|
|
1829
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
1830
|
+
* to configuring plugins.
|
|
1831
|
+
*
|
|
1832
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
1833
|
+
*/
|
|
1810
1834
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1811
1835
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1812
1836
|
insert: (props: {
|
|
@@ -2564,6 +2588,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2564
2588
|
];
|
|
2565
2589
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2566
2590
|
actions: {
|
|
2591
|
+
/**
|
|
2592
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
2593
|
+
* to configuring plugins.
|
|
2594
|
+
*
|
|
2595
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
2596
|
+
*/
|
|
2567
2597
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2568
2598
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2569
2599
|
insert: (props: {
|
|
@@ -2657,6 +2687,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2657
2687
|
];
|
|
2658
2688
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2659
2689
|
actions: {
|
|
2690
|
+
/**
|
|
2691
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
2692
|
+
* to configuring plugins.
|
|
2693
|
+
*
|
|
2694
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
2695
|
+
*/
|
|
2660
2696
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2661
2697
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2662
2698
|
insert: (props: {
|
|
@@ -2813,7 +2849,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2813
2849
|
];
|
|
2814
2850
|
}, import("@atlaskit/editor-plugins/table").TablePluginOptions | undefined> | undefined,
|
|
2815
2851
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
2816
|
-
pluginConfiguration:
|
|
2852
|
+
pluginConfiguration: EmojiPluginOptions | undefined;
|
|
2817
2853
|
dependencies: [
|
|
2818
2854
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2819
2855
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -2855,6 +2891,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2855
2891
|
];
|
|
2856
2892
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2857
2893
|
actions: {
|
|
2894
|
+
/**
|
|
2895
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
2896
|
+
* to configuring plugins.
|
|
2897
|
+
*
|
|
2898
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
2899
|
+
*/
|
|
2858
2900
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2859
2901
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2860
2902
|
insert: (props: {
|
|
@@ -2889,7 +2931,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2889
2931
|
actions: {
|
|
2890
2932
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2891
2933
|
};
|
|
2892
|
-
},
|
|
2934
|
+
}, EmojiPluginOptions | undefined> | undefined,
|
|
2893
2935
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mention", {
|
|
2894
2936
|
pluginConfiguration: import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined;
|
|
2895
2937
|
dependencies: [
|
|
@@ -2933,6 +2975,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2933
2975
|
];
|
|
2934
2976
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2935
2977
|
actions: {
|
|
2978
|
+
/**
|
|
2979
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
2980
|
+
* to configuring plugins.
|
|
2981
|
+
*
|
|
2982
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
2983
|
+
*/
|
|
2936
2984
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2937
2985
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2938
2986
|
insert: (props: {
|
|
@@ -3969,6 +4017,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3969
4017
|
];
|
|
3970
4018
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
3971
4019
|
actions: {
|
|
4020
|
+
/**
|
|
4021
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
4022
|
+
* to configuring plugins.
|
|
4023
|
+
*
|
|
4024
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
4025
|
+
*/
|
|
3972
4026
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
3973
4027
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
3974
4028
|
insert: (props: {
|
|
@@ -4837,6 +4891,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4837
4891
|
];
|
|
4838
4892
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
4839
4893
|
actions: {
|
|
4894
|
+
/**
|
|
4895
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
4896
|
+
* to configuring plugins.
|
|
4897
|
+
*
|
|
4898
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
4899
|
+
*/
|
|
4840
4900
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
4841
4901
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
4842
4902
|
insert: (props: {
|
|
@@ -4893,6 +4953,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4893
4953
|
];
|
|
4894
4954
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
4895
4955
|
actions: {
|
|
4956
|
+
/**
|
|
4957
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
4958
|
+
* to configuring plugins.
|
|
4959
|
+
*
|
|
4960
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
4961
|
+
*/
|
|
4896
4962
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
4897
4963
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
4898
4964
|
insert: (props: {
|
|
@@ -5349,6 +5415,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
5349
5415
|
];
|
|
5350
5416
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
5351
5417
|
actions: {
|
|
5418
|
+
/**
|
|
5419
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
5420
|
+
* to configuring plugins.
|
|
5421
|
+
*
|
|
5422
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
5423
|
+
*/
|
|
5352
5424
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5353
5425
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5354
5426
|
insert: (props: {
|
|
@@ -5426,6 +5498,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
5426
5498
|
];
|
|
5427
5499
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
5428
5500
|
actions: {
|
|
5501
|
+
/**
|
|
5502
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
5503
|
+
* to configuring plugins.
|
|
5504
|
+
*
|
|
5505
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
5506
|
+
*/
|
|
5429
5507
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5430
5508
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5431
5509
|
insert: (props: {
|
|
@@ -6382,6 +6460,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
6382
6460
|
];
|
|
6383
6461
|
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
6384
6462
|
actions: {
|
|
6463
|
+
/**
|
|
6464
|
+
* Mechanism to configuring plugins as the universal preset blocks direct access
|
|
6465
|
+
* to configuring plugins.
|
|
6466
|
+
*
|
|
6467
|
+
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
6468
|
+
*/
|
|
6385
6469
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
6386
6470
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
6387
6471
|
insert: (props: {
|