@atlaskit/editor-core 194.0.1 → 194.0.4
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/ui/ContentStyles/expand.js +4 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/expand.js +4 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/expand.js +4 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +1 -0
- package/dist/types/presets/universal.d.ts +1 -0
- package/dist/types/presets/useUniversalPreset.d.ts +1 -0
- package/dist/types/types/editor-props.d.ts +14 -4
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +1 -0
- package/dist/types-ts4.5/presets/universal.d.ts +1 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +1 -0
- package/dist/types-ts4.5/types/editor-props.d.ts +14 -4
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 194.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#117148](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117148)
|
|
8
|
+
[`e90581362187a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e90581362187a) -
|
|
9
|
+
remove overflow hidden from expand node
|
|
10
|
+
|
|
3
11
|
## 194.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -10,6 +10,7 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
12
12
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
15
|
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
16
|
var EXPAND_SELECTED_BACKGROUND = "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))";
|
|
@@ -24,11 +25,11 @@ var DANGER_STATE_BORDER_COLOR = "var(--ds-border-danger, ".concat(_colors.R300,
|
|
|
24
25
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
25
26
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
26
27
|
var expandStyles = exports.expandStyles = function expandStyles() {
|
|
27
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " > div {\n\t\tdisplay: flex;\n\t}\n\n\t.", " {\n\t\t", "\n\t\
|
|
28
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " > div {\n\t\tdisplay: flex;\n\t}\n\n\t.", " {\n\t\t", "\n\t\t", "\n\n\t\tcursor: pointer;\n\t\tbox-sizing: border-box;\n\n\t\ttd > & {\n\t\t\tmargin-top: 0;\n\t\t}\n\n\t\t.", " svg {\n\t\t\t", ";\n\t\t\ttransform: rotate(90deg);\n\t\t}\n\n\t\t&.", ":not(.danger) {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\tbackground: ", ";\n\t\t\tborder-color: ", ";\n\t\t}\n\t}\n\n\t.ProseMirror\n\t\t> .", ",\n\t\t.", "\n\t\t> .", " {\n\t\tmargin-left: -", "px;\n\t\tmargin-right: -", "px;\n\t}\n\n\t.", " {\n\t\t", "\n\t\tcursor: text;\n\t\tpadding-top: 0px;\n\t\t", "\n\t}\n\n\t.", " {\n\t\t", "\n\t}\n\n\t.", " {\n\t\t", ";\n\t\talign-items: center;\n\t\toverflow: visible;\n\t}\n\n\t.", " {\n\t\tbackground: ", ";\n\t\tborder-color: ", ";\n\n\t\t.", " {\n\t\t\tpadding-top: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\twidth: 100%;\n\t}\n\n\t/* stylelint-disable property-no-unknown, value-keyword-case */\n\t.", ":(.", ") {\n\t\t.expand-content-wrapper {\n\t\t\theight: auto;\n\t\t}\n\t}\n\t/* stylelint-enable property-no-unknown, value-keyword-case */\n\n\t.", ":not(.", ") {\n\t\t.ak-editor-expand__content {\n\t\t\tposition: absolute;\n\t\t\theight: 1px;\n\t\t\twidth: 1px;\n\t\t\toverflow: hidden;\n\t\t\tclip: rect(1px, 1px, 1px, 1px);\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t.", " svg {\n\t\t\t", ";\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\n\t\t&:not(.", "):not(.danger) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\n\t\t\t&:hover {\n\t\t\t\tborder-color: ", ";\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n"])), _styles.expandClassNames.icon, _styles.expandClassNames.prefix, _ui.sharedExpandStyles.containerStyles({
|
|
28
29
|
expanded: false,
|
|
29
30
|
focused: false
|
|
30
|
-
})(), _styles.expandClassNames.iconContainer, EXPAND_ICON_COLOR(), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket, _editorSharedStyles.SelectionStyle.Border]), DANGER_STATE_BACKGROUND_COLOR, DANGER_STATE_BORDER_COLOR, _styles.expandClassNames.type('expand'), _styles.BreakoutCssClassName.BREAKOUT_MARK_DOM, _styles.expandClassNames.type('expand'), _editorSharedStyles.akLayoutGutterOffset, _editorSharedStyles.akLayoutGutterOffset, _styles.expandClassNames.content, _ui.sharedExpandStyles.contentStyles({
|
|
31
|
+
})(), !(0, _platformFeatureFlags.fg)('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && "overflow: hidden;", _styles.expandClassNames.iconContainer, EXPAND_ICON_COLOR(), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket, _editorSharedStyles.SelectionStyle.Border]), DANGER_STATE_BACKGROUND_COLOR, DANGER_STATE_BORDER_COLOR, _styles.expandClassNames.type('expand'), _styles.BreakoutCssClassName.BREAKOUT_MARK_DOM, _styles.expandClassNames.type('expand'), _editorSharedStyles.akLayoutGutterOffset, _editorSharedStyles.akLayoutGutterOffset, _styles.expandClassNames.content, _ui.sharedExpandStyles.contentStyles({
|
|
31
32
|
expanded: false,
|
|
32
33
|
focused: false
|
|
33
|
-
})(), _styles.expandClassNames.titleInput, _ui.sharedExpandStyles.titleInputStyles(), _styles.expandClassNames.titleContainer, _ui.sharedExpandStyles.titleContainerStyles(), _styles.expandClassNames.expanded, EXPAND_SELECTED_BACKGROUND, "var(--ds-border, ".concat(_colors.N40A, ")"), _styles.expandClassNames.content, "var(--ds-space-100, 8px)", _styles.expandClassNames.inputContainer, _styles.expandClassNames.prefix, _styles.expandClassNames.expanded, _styles.expandClassNames.prefix, _styles.expandClassNames.expanded, _styles.expandClassNames.iconContainer, EXPAND_ICON_COLOR(), _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, ".concat(_colors.N50A, ")"), EXPAND_SELECTED_BACKGROUND);
|
|
34
|
+
})(), (0, _platformFeatureFlags.fg)('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && "overflow-x: clip;", _styles.expandClassNames.titleInput, _ui.sharedExpandStyles.titleInputStyles(), _styles.expandClassNames.titleContainer, _ui.sharedExpandStyles.titleContainerStyles(), _styles.expandClassNames.expanded, EXPAND_SELECTED_BACKGROUND, "var(--ds-border, ".concat(_colors.N40A, ")"), _styles.expandClassNames.content, "var(--ds-space-100, 8px)", _styles.expandClassNames.inputContainer, _styles.expandClassNames.prefix, _styles.expandClassNames.expanded, _styles.expandClassNames.prefix, _styles.expandClassNames.expanded, _styles.expandClassNames.iconContainer, EXPAND_ICON_COLOR(), _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, ".concat(_colors.N50A, ")"), EXPAND_SELECTED_BACKGROUND);
|
|
34
35
|
};
|
|
@@ -3,6 +3,7 @@ import { css } from '@emotion/react';
|
|
|
3
3
|
import { BreakoutCssClassName, expandClassNames } from '@atlaskit/editor-common/styles';
|
|
4
4
|
import { sharedExpandStyles } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { akEditorSelectedNodeClassName, akLayoutGutterOffset, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { N100A, N40A, N50A, R300, R50 } from '@atlaskit/theme/colors';
|
|
7
8
|
const EXPAND_SELECTED_BACKGROUND = "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))";
|
|
8
9
|
const EXPAND_ICON_COLOR = () => css({
|
|
@@ -23,7 +24,8 @@ export const expandStyles = () => css`
|
|
|
23
24
|
expanded: false,
|
|
24
25
|
focused: false
|
|
25
26
|
})()}
|
|
26
|
-
overflow: hidden
|
|
27
|
+
${!fg('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && `overflow: hidden;`}
|
|
28
|
+
|
|
27
29
|
cursor: pointer;
|
|
28
30
|
box-sizing: border-box;
|
|
29
31
|
|
|
@@ -61,6 +63,7 @@ export const expandStyles = () => css`
|
|
|
61
63
|
})()}
|
|
62
64
|
cursor: text;
|
|
63
65
|
padding-top: 0px;
|
|
66
|
+
${fg('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && `overflow-x: clip;`}
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
.${expandClassNames.titleInput} {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "194.0.
|
|
2
|
+
export const version = "194.0.4";
|
|
@@ -5,6 +5,7 @@ import { css } from '@emotion/react';
|
|
|
5
5
|
import { BreakoutCssClassName, expandClassNames } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { sharedExpandStyles } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { akEditorSelectedNodeClassName, akLayoutGutterOffset, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { N100A, N40A, N50A, R300, R50 } from '@atlaskit/theme/colors';
|
|
9
10
|
var EXPAND_SELECTED_BACKGROUND = "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))";
|
|
10
11
|
var EXPAND_ICON_COLOR = function EXPAND_ICON_COLOR() {
|
|
@@ -18,11 +19,11 @@ var DANGER_STATE_BORDER_COLOR = "var(--ds-border-danger, ".concat(R300, ")");
|
|
|
18
19
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
19
20
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
20
21
|
export var expandStyles = function expandStyles() {
|
|
21
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " > div {\n\t\tdisplay: flex;\n\t}\n\n\t.", " {\n\t\t", "\n\t\
|
|
22
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " > div {\n\t\tdisplay: flex;\n\t}\n\n\t.", " {\n\t\t", "\n\t\t", "\n\n\t\tcursor: pointer;\n\t\tbox-sizing: border-box;\n\n\t\ttd > & {\n\t\t\tmargin-top: 0;\n\t\t}\n\n\t\t.", " svg {\n\t\t\t", ";\n\t\t\ttransform: rotate(90deg);\n\t\t}\n\n\t\t&.", ":not(.danger) {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\tbackground: ", ";\n\t\t\tborder-color: ", ";\n\t\t}\n\t}\n\n\t.ProseMirror\n\t\t> .", ",\n\t\t.", "\n\t\t> .", " {\n\t\tmargin-left: -", "px;\n\t\tmargin-right: -", "px;\n\t}\n\n\t.", " {\n\t\t", "\n\t\tcursor: text;\n\t\tpadding-top: 0px;\n\t\t", "\n\t}\n\n\t.", " {\n\t\t", "\n\t}\n\n\t.", " {\n\t\t", ";\n\t\talign-items: center;\n\t\toverflow: visible;\n\t}\n\n\t.", " {\n\t\tbackground: ", ";\n\t\tborder-color: ", ";\n\n\t\t.", " {\n\t\t\tpadding-top: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\twidth: 100%;\n\t}\n\n\t/* stylelint-disable property-no-unknown, value-keyword-case */\n\t.", ":(.", ") {\n\t\t.expand-content-wrapper {\n\t\t\theight: auto;\n\t\t}\n\t}\n\t/* stylelint-enable property-no-unknown, value-keyword-case */\n\n\t.", ":not(.", ") {\n\t\t.ak-editor-expand__content {\n\t\t\tposition: absolute;\n\t\t\theight: 1px;\n\t\t\twidth: 1px;\n\t\t\toverflow: hidden;\n\t\t\tclip: rect(1px, 1px, 1px, 1px);\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t.", " svg {\n\t\t\t", ";\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\n\t\t&:not(.", "):not(.danger) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\n\t\t\t&:hover {\n\t\t\t\tborder-color: ", ";\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n"])), expandClassNames.icon, expandClassNames.prefix, sharedExpandStyles.containerStyles({
|
|
22
23
|
expanded: false,
|
|
23
24
|
focused: false
|
|
24
|
-
})(), expandClassNames.iconContainer, EXPAND_ICON_COLOR(), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Blanket, SelectionStyle.Border]), DANGER_STATE_BACKGROUND_COLOR, DANGER_STATE_BORDER_COLOR, expandClassNames.type('expand'), BreakoutCssClassName.BREAKOUT_MARK_DOM, expandClassNames.type('expand'), akLayoutGutterOffset, akLayoutGutterOffset, expandClassNames.content, sharedExpandStyles.contentStyles({
|
|
25
|
+
})(), !fg('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && "overflow: hidden;", expandClassNames.iconContainer, EXPAND_ICON_COLOR(), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Blanket, SelectionStyle.Border]), DANGER_STATE_BACKGROUND_COLOR, DANGER_STATE_BORDER_COLOR, expandClassNames.type('expand'), BreakoutCssClassName.BREAKOUT_MARK_DOM, expandClassNames.type('expand'), akLayoutGutterOffset, akLayoutGutterOffset, expandClassNames.content, sharedExpandStyles.contentStyles({
|
|
25
26
|
expanded: false,
|
|
26
27
|
focused: false
|
|
27
|
-
})(), expandClassNames.titleInput, sharedExpandStyles.titleInputStyles(), expandClassNames.titleContainer, sharedExpandStyles.titleContainerStyles(), expandClassNames.expanded, EXPAND_SELECTED_BACKGROUND, "var(--ds-border, ".concat(N40A, ")"), expandClassNames.content, "var(--ds-space-100, 8px)", expandClassNames.inputContainer, expandClassNames.prefix, expandClassNames.expanded, expandClassNames.prefix, expandClassNames.expanded, expandClassNames.iconContainer, EXPAND_ICON_COLOR(), akEditorSelectedNodeClassName, "var(--ds-border, ".concat(N50A, ")"), EXPAND_SELECTED_BACKGROUND);
|
|
28
|
+
})(), fg('platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2') && "overflow-x: clip;", expandClassNames.titleInput, sharedExpandStyles.titleInputStyles(), expandClassNames.titleContainer, sharedExpandStyles.titleContainerStyles(), expandClassNames.expanded, EXPAND_SELECTED_BACKGROUND, "var(--ds-border, ".concat(N40A, ")"), expandClassNames.content, "var(--ds-space-100, 8px)", expandClassNames.inputContainer, expandClassNames.prefix, expandClassNames.expanded, expandClassNames.prefix, expandClassNames.expanded, expandClassNames.iconContainer, EXPAND_ICON_COLOR(), akEditorSelectedNodeClassName, "var(--ds-border, ".concat(N50A, ")"), EXPAND_SELECTED_BACKGROUND);
|
|
28
29
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "194.0.
|
|
2
|
+
export var version = "194.0.4";
|
|
@@ -979,6 +979,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
979
979
|
};
|
|
980
980
|
commands: {
|
|
981
981
|
removeStatus: (showStatusPickerAt: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
982
|
+
insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
982
983
|
};
|
|
983
984
|
sharedState: import("@atlaskit/editor-plugin-status").StatusState | undefined;
|
|
984
985
|
}, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
|
|
@@ -996,6 +996,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
996
996
|
};
|
|
997
997
|
commands: {
|
|
998
998
|
removeStatus: (showStatusPickerAt: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
999
|
+
insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
999
1000
|
};
|
|
1000
1001
|
sharedState: import("@atlaskit/editor-plugins/status").StatusState | undefined;
|
|
1001
1002
|
}, import("@atlaskit/editor-plugins/status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
|
|
@@ -982,6 +982,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
982
982
|
};
|
|
983
983
|
commands: {
|
|
984
984
|
removeStatus: (showStatusPickerAt: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
985
|
+
insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
985
986
|
};
|
|
986
987
|
sharedState: import("@atlaskit/editor-plugin-status").StatusState | undefined;
|
|
987
988
|
}, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"customAutoformat", {}, undefined> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"card", {
|
|
@@ -149,10 +149,6 @@ export interface EditorSharedPropsWithPlugins {
|
|
|
149
149
|
collabEdit?: CollabEditOptions;
|
|
150
150
|
primaryToolbarComponents?: PrimaryToolbarComponents;
|
|
151
151
|
allowUndoRedoButtons?: boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Configure and extend editor linking behaviour
|
|
154
|
-
*/
|
|
155
|
-
linking?: LinkingOptions;
|
|
156
152
|
hideAvatarGroup?: boolean;
|
|
157
153
|
}
|
|
158
154
|
export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps, EditorSharedPropsWithPlugins, EditorProviderProps {
|
|
@@ -181,6 +177,16 @@ export interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithP
|
|
|
181
177
|
* Configuration of this parameter should be done via `editor-plugin-placeholder` or the `default` preset.
|
|
182
178
|
*/
|
|
183
179
|
placeholderBracketHint?: string;
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated
|
|
182
|
+
* This prop does nothing and will be removed soon.
|
|
183
|
+
* Configuration of this parameter should be done via `editor-plugin-card` or the `universal` preset.
|
|
184
|
+
*
|
|
185
|
+
* Example:
|
|
186
|
+
* // In preset creation you can pass the props passed to the editor like this:
|
|
187
|
+
* preset.add([cardPlugin, { ...linking.smartLinks, linkPicker: linking.linkPicker }])
|
|
188
|
+
*/
|
|
189
|
+
linking?: LinkingOptions;
|
|
184
190
|
}
|
|
185
191
|
export interface EditorProviderProps {
|
|
186
192
|
activityProvider?: Promise<ActivityProvider>;
|
|
@@ -285,4 +291,8 @@ export interface EditorPluginFeatureProps {
|
|
|
285
291
|
textFormatting?: TextFormattingOptions;
|
|
286
292
|
placeholder?: string;
|
|
287
293
|
placeholderBracketHint?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Configure and extend editor linking behaviour
|
|
296
|
+
*/
|
|
297
|
+
linking?: LinkingOptions;
|
|
288
298
|
}
|
|
@@ -1277,6 +1277,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1277
1277
|
};
|
|
1278
1278
|
commands: {
|
|
1279
1279
|
removeStatus: (showStatusPickerAt: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1280
|
+
insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1280
1281
|
};
|
|
1281
1282
|
sharedState: import("@atlaskit/editor-plugin-status").StatusState | undefined;
|
|
1282
1283
|
}, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined,
|
|
@@ -1294,6 +1294,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
1294
1294
|
};
|
|
1295
1295
|
commands: {
|
|
1296
1296
|
removeStatus: (showStatusPickerAt: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1297
|
+
insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1297
1298
|
};
|
|
1298
1299
|
sharedState: import("@atlaskit/editor-plugins/status").StatusState | undefined;
|
|
1299
1300
|
}, import("@atlaskit/editor-plugins/status").StatusPluginOptions | undefined> | undefined,
|
|
@@ -1280,6 +1280,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
1280
1280
|
};
|
|
1281
1281
|
commands: {
|
|
1282
1282
|
removeStatus: (showStatusPickerAt: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1283
|
+
insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1283
1284
|
};
|
|
1284
1285
|
sharedState: import("@atlaskit/editor-plugin-status").StatusState | undefined;
|
|
1285
1286
|
}, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined,
|
|
@@ -149,10 +149,6 @@ export interface EditorSharedPropsWithPlugins {
|
|
|
149
149
|
collabEdit?: CollabEditOptions;
|
|
150
150
|
primaryToolbarComponents?: PrimaryToolbarComponents;
|
|
151
151
|
allowUndoRedoButtons?: boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Configure and extend editor linking behaviour
|
|
154
|
-
*/
|
|
155
|
-
linking?: LinkingOptions;
|
|
156
152
|
hideAvatarGroup?: boolean;
|
|
157
153
|
}
|
|
158
154
|
export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps, EditorSharedPropsWithPlugins, EditorProviderProps {
|
|
@@ -181,6 +177,16 @@ export interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithP
|
|
|
181
177
|
* Configuration of this parameter should be done via `editor-plugin-placeholder` or the `default` preset.
|
|
182
178
|
*/
|
|
183
179
|
placeholderBracketHint?: string;
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated
|
|
182
|
+
* This prop does nothing and will be removed soon.
|
|
183
|
+
* Configuration of this parameter should be done via `editor-plugin-card` or the `universal` preset.
|
|
184
|
+
*
|
|
185
|
+
* Example:
|
|
186
|
+
* // In preset creation you can pass the props passed to the editor like this:
|
|
187
|
+
* preset.add([cardPlugin, { ...linking.smartLinks, linkPicker: linking.linkPicker }])
|
|
188
|
+
*/
|
|
189
|
+
linking?: LinkingOptions;
|
|
184
190
|
}
|
|
185
191
|
export interface EditorProviderProps {
|
|
186
192
|
activityProvider?: Promise<ActivityProvider>;
|
|
@@ -285,4 +291,8 @@ export interface EditorPluginFeatureProps {
|
|
|
285
291
|
textFormatting?: TextFormattingOptions;
|
|
286
292
|
placeholder?: string;
|
|
287
293
|
placeholderBracketHint?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Configure and extend editor linking behaviour
|
|
296
|
+
*/
|
|
297
|
+
linking?: LinkingOptions;
|
|
288
298
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "194.0.
|
|
3
|
+
"version": "194.0.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -344,8 +344,7 @@
|
|
|
344
344
|
"type": "boolean"
|
|
345
345
|
},
|
|
346
346
|
"platform.editor.elements.drag-and-drop-remove-wrapper_fyqr2": {
|
|
347
|
-
"type": "boolean"
|
|
348
|
-
"referenceOnly": "true"
|
|
347
|
+
"type": "boolean"
|
|
349
348
|
},
|
|
350
349
|
"platform_editor_tables_padding_increase": {
|
|
351
350
|
"type": "boolean",
|
|
@@ -362,6 +361,10 @@
|
|
|
362
361
|
"platform.editor.linking-preferences-url-atlassian-context": {
|
|
363
362
|
"type": "boolean",
|
|
364
363
|
"referenceOnly": true
|
|
364
|
+
},
|
|
365
|
+
"platform_editor_get_card_provider_from_config": {
|
|
366
|
+
"type": "boolean",
|
|
367
|
+
"referenceOnly": true
|
|
365
368
|
}
|
|
366
369
|
},
|
|
367
370
|
"stricter": {
|