@atlaskit/editor-core 197.7.2 → 197.7.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 +17 -0
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/ContentStyles/index.js +3 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +9 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +3 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +69 -1
- package/dist/types/presets/universal.d.ts +69 -1
- package/dist/types/presets/useUniversalPreset.d.ts +69 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +80 -1
- package/dist/types-ts4.5/presets/universal.d.ts +80 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +80 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 197.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#140867](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140867)
|
|
8
|
+
[`17b58500a94e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/17b58500a94e3) -
|
|
9
|
+
[ux] ED-24255 Adding a custom mark boundary cursor to fix the cursor position in inline code
|
|
10
|
+
|
|
11
|
+
## 197.7.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#140707](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140707)
|
|
16
|
+
[`972fb840acf35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/972fb840acf35) -
|
|
17
|
+
Switch from fg to experiment for media-from-url
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 197.7.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -136,7 +136,7 @@ function createUniversalPresetInternal(_ref) {
|
|
|
136
136
|
isCopyPasteEnabled: true,
|
|
137
137
|
alignLeftOnInsert: typeof ((_props$media3 = props.media) === null || _props$media3 === void 0 ? void 0 : _props$media3.alignLeftOnInsert) !== 'undefined' ? (_props$media4 = props.media) === null || _props$media4 === void 0 ? void 0 : _props$media4.alignLeftOnInsert : isComment,
|
|
138
138
|
getEditorFeatureFlags: getEditorFeatureFlags
|
|
139
|
-
})], Boolean(props.media)).maybeAdd(_mediaInsert.mediaInsertPlugin, Boolean(props.media && (0,
|
|
139
|
+
})], Boolean(props.media)).maybeAdd(_mediaInsert.mediaInsertPlugin, Boolean(props.media && (0, _experiments.editorExperiment)('add-media-from-url', true))).maybeAdd(_caption.captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([_mentions.mentionsPlugin, _objectSpread({
|
|
140
140
|
sanitizePrivateContent: props.sanitizePrivateContent,
|
|
141
141
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
142
142
|
allowZeroWidthSpaceAfter: true,
|
|
@@ -35,7 +35,7 @@ var _media = require("./media");
|
|
|
35
35
|
var _panel = require("./panel");
|
|
36
36
|
var _status = require("./status");
|
|
37
37
|
var _tasksAndDecisions = require("./tasks-and-decisions");
|
|
38
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
38
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
39
39
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
40
40
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
41
41
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
|
|
@@ -77,9 +77,9 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)({
|
|
|
77
77
|
// The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
|
|
78
78
|
var akEditorBreakpointForSmallDevice = "1266px";
|
|
79
79
|
var contentStyles = function contentStyles(props) {
|
|
80
|
-
return (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: 52px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (min-width: ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), _editorSharedStyles.akEditorGutterPadding, _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
|
|
80
|
+
return (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: 52px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (min-width: ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), _editorSharedStyles.akEditorGutterPadding, _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
|
|
81
81
|
theme: props.theme
|
|
82
|
-
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), _media.mediaStyles, (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
82
|
+
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), "var(--ds-border-focused, #8cf)", (0, _platformFeatureFlags.fg)('platform_editor_mark_boundary_cursor') ? (0, _react2.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t"]))) : null, _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), _media.mediaStyles, (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
83
83
|
};
|
|
84
84
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
85
85
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -127,7 +127,7 @@ export default function createUniversalPresetInternal({
|
|
|
127
127
|
isCopyPasteEnabled: true,
|
|
128
128
|
alignLeftOnInsert: typeof ((_props$media3 = props.media) === null || _props$media3 === void 0 ? void 0 : _props$media3.alignLeftOnInsert) !== 'undefined' ? (_props$media4 = props.media) === null || _props$media4 === void 0 ? void 0 : _props$media4.alignLeftOnInsert : isComment,
|
|
129
129
|
getEditorFeatureFlags
|
|
130
|
-
}], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media &&
|
|
130
|
+
}], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && editorExperiment('add-media-from-url', true))).maybeAdd(captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([mentionsPlugin, {
|
|
131
131
|
sanitizePrivateContent: props.sanitizePrivateContent,
|
|
132
132
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
133
133
|
allowZeroWidthSpaceAfter: true,
|
|
@@ -217,6 +217,15 @@ const contentStyles = props => css`
|
|
|
217
217
|
outline: 2px solid ${"var(--ds-border-focused, #8cf)"};
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
+
${fg('platform_editor_mark_boundary_cursor') ? css`
|
|
221
|
+
.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {
|
|
222
|
+
caret-color: transparent;
|
|
223
|
+
}
|
|
224
|
+
.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
227
|
+
` : null}
|
|
228
|
+
|
|
220
229
|
${placeholderTextStyles}
|
|
221
230
|
${placeholderStyles}
|
|
222
231
|
${codeBlockStyles()}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "197.7.
|
|
2
|
+
export const version = "197.7.4";
|
|
@@ -129,7 +129,7 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
129
129
|
isCopyPasteEnabled: true,
|
|
130
130
|
alignLeftOnInsert: typeof ((_props$media3 = props.media) === null || _props$media3 === void 0 ? void 0 : _props$media3.alignLeftOnInsert) !== 'undefined' ? (_props$media4 = props.media) === null || _props$media4 === void 0 ? void 0 : _props$media4.alignLeftOnInsert : isComment,
|
|
131
131
|
getEditorFeatureFlags: getEditorFeatureFlags
|
|
132
|
-
})], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media &&
|
|
132
|
+
})], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && editorExperiment('add-media-from-url', true))).maybeAdd(captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([mentionsPlugin, _objectSpread({
|
|
133
133
|
sanitizePrivateContent: props.sanitizePrivateContent,
|
|
134
134
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
135
135
|
allowZeroWidthSpaceAfter: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
4
4
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
5
5
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
|
|
@@ -69,9 +69,9 @@ export var placeholderStyles = css({
|
|
|
69
69
|
// The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
|
|
70
70
|
var akEditorBreakpointForSmallDevice = "1266px";
|
|
71
71
|
var contentStyles = function contentStyles(props) {
|
|
72
|
-
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: 52px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (min-width: ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), akEditorGutterPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
|
|
72
|
+
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: 52px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (min-width: ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), akEditorGutterPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
|
|
73
73
|
theme: props.theme
|
|
74
|
-
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles(), smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
74
|
+
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), "var(--ds-border-focused, #8cf)", fg('platform_editor_mark_boundary_cursor') ? css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t"]))) : null, placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles(), smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
75
75
|
};
|
|
76
76
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
77
77
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.7.
|
|
2
|
+
export var version = "197.7.4";
|
|
@@ -1982,7 +1982,75 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1982
1982
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1983
1983
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1984
1984
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1985
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
1985
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
1986
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined;
|
|
1987
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1988
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1989
|
+
sharedState: {
|
|
1990
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
1991
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1992
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1993
|
+
};
|
|
1994
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1995
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1996
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1997
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1998
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1999
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2000
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
2001
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"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-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"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>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2014
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2015
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2016
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2017
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2018
|
+
actions: {
|
|
2019
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2020
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2021
|
+
insert: (props: {
|
|
2022
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2023
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
2024
|
+
query: string;
|
|
2025
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
2026
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
2027
|
+
}) => boolean;
|
|
2028
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
2029
|
+
open: (props: {
|
|
2030
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2031
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2032
|
+
query?: string | undefined;
|
|
2033
|
+
}) => boolean;
|
|
2034
|
+
close: (props: {
|
|
2035
|
+
insertCurrentQueryAsRawText: boolean;
|
|
2036
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
2037
|
+
}) => boolean;
|
|
2038
|
+
openAtTransaction: (props: {
|
|
2039
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2040
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2041
|
+
query?: string | undefined;
|
|
2042
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2043
|
+
};
|
|
2044
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>];
|
|
2045
|
+
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
2046
|
+
commands: {
|
|
2047
|
+
insertEmoji: (emojiId: import("@atlaskit/emoji").EmojiId, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.ASCII | import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TYPEAHEAD | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2048
|
+
};
|
|
2049
|
+
actions: {
|
|
2050
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2051
|
+
setProvider: (provider: Promise<import("@atlaskit/emoji").EmojiProvider>) => Promise<boolean>;
|
|
2052
|
+
};
|
|
2053
|
+
}, import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined>];
|
|
1986
2054
|
actions: {
|
|
1987
2055
|
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
1988
2056
|
};
|
|
@@ -2033,7 +2033,75 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2033
2033
|
sharedState: FeatureFlags;
|
|
2034
2034
|
}, FeatureFlags>>];
|
|
2035
2035
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2036
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2036
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
2037
|
+
pluginConfiguration: EmojiPluginOptions | undefined;
|
|
2038
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2039
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2040
|
+
sharedState: {
|
|
2041
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
2042
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2043
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2044
|
+
};
|
|
2045
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2046
|
+
pluginConfiguration: FeatureFlags;
|
|
2047
|
+
sharedState: FeatureFlags;
|
|
2048
|
+
}, FeatureFlags>>];
|
|
2049
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2050
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2051
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
2052
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2053
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2054
|
+
sharedState: {
|
|
2055
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
2056
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2057
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2058
|
+
};
|
|
2059
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2060
|
+
pluginConfiguration: FeatureFlags;
|
|
2061
|
+
sharedState: FeatureFlags;
|
|
2062
|
+
}, FeatureFlags>>];
|
|
2063
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2064
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2065
|
+
pluginConfiguration: FeatureFlags;
|
|
2066
|
+
sharedState: FeatureFlags;
|
|
2067
|
+
}, FeatureFlags>>];
|
|
2068
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2069
|
+
actions: {
|
|
2070
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2071
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2072
|
+
insert: (props: {
|
|
2073
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2074
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
2075
|
+
query: string;
|
|
2076
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
2077
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
2078
|
+
}) => boolean;
|
|
2079
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
2080
|
+
open: (props: {
|
|
2081
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2082
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2083
|
+
query?: string | undefined;
|
|
2084
|
+
}) => boolean;
|
|
2085
|
+
close: (props: {
|
|
2086
|
+
insertCurrentQueryAsRawText: boolean;
|
|
2087
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
2088
|
+
}) => boolean;
|
|
2089
|
+
openAtTransaction: (props: {
|
|
2090
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2091
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2092
|
+
query?: string | undefined;
|
|
2093
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2094
|
+
};
|
|
2095
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>];
|
|
2096
|
+
sharedState: import("@atlaskit/editor-plugins/emoji").EmojiPluginSharedState | undefined;
|
|
2097
|
+
commands: {
|
|
2098
|
+
insertEmoji: (emojiId: import("@atlaskit/emoji").EmojiId, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.ASCII | import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TYPEAHEAD | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2099
|
+
};
|
|
2100
|
+
actions: {
|
|
2101
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2102
|
+
setProvider: (provider: Promise<import("@atlaskit/emoji").EmojiProvider>) => Promise<boolean>;
|
|
2103
|
+
};
|
|
2104
|
+
}, EmojiPluginOptions | undefined>];
|
|
2037
2105
|
actions: {
|
|
2038
2106
|
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
2039
2107
|
};
|
|
@@ -1982,7 +1982,75 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1982
1982
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1983
1983
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1984
1984
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1985
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
1985
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
1986
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined;
|
|
1987
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1988
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1989
|
+
sharedState: {
|
|
1990
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
1991
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1992
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1993
|
+
};
|
|
1994
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1995
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1996
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1997
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1998
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1999
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2000
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
2001
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"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-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"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>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2014
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2015
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2016
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2017
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2018
|
+
actions: {
|
|
2019
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2020
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2021
|
+
insert: (props: {
|
|
2022
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
2023
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
2024
|
+
query: string;
|
|
2025
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
2026
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
2027
|
+
}) => boolean;
|
|
2028
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
2029
|
+
open: (props: {
|
|
2030
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
2031
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2032
|
+
query?: string | undefined;
|
|
2033
|
+
}) => boolean;
|
|
2034
|
+
close: (props: {
|
|
2035
|
+
insertCurrentQueryAsRawText: boolean;
|
|
2036
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
2037
|
+
}) => boolean;
|
|
2038
|
+
openAtTransaction: (props: {
|
|
2039
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
2040
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2041
|
+
query?: string | undefined;
|
|
2042
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2043
|
+
};
|
|
2044
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>];
|
|
2045
|
+
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
2046
|
+
commands: {
|
|
2047
|
+
insertEmoji: (emojiId: import("@atlaskit/emoji").EmojiId, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.ASCII | import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TYPEAHEAD | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2048
|
+
};
|
|
2049
|
+
actions: {
|
|
2050
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2051
|
+
setProvider: (provider: Promise<import("@atlaskit/emoji").EmojiProvider>) => Promise<boolean>;
|
|
2052
|
+
};
|
|
2053
|
+
}, import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined>];
|
|
1986
2054
|
actions: {
|
|
1987
2055
|
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
1988
2056
|
};
|
|
@@ -2466,7 +2466,86 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2466
2466
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2467
2467
|
];
|
|
2468
2468
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2469
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2469
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2470
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
2471
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined;
|
|
2472
|
+
dependencies: [
|
|
2473
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2474
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2475
|
+
sharedState: {
|
|
2476
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2477
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2478
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2479
|
+
};
|
|
2480
|
+
dependencies: [
|
|
2481
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2482
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2483
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2484
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2485
|
+
];
|
|
2486
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2487
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2488
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2489
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
2490
|
+
dependencies: [
|
|
2491
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2492
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2493
|
+
sharedState: {
|
|
2494
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2495
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2496
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2497
|
+
};
|
|
2498
|
+
dependencies: [
|
|
2499
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2500
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2501
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2502
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2503
|
+
];
|
|
2504
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2505
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
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
|
+
];
|
|
2511
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2512
|
+
actions: {
|
|
2513
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2514
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2515
|
+
insert: (props: {
|
|
2516
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2517
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
2518
|
+
query: string;
|
|
2519
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
2520
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
2521
|
+
}) => boolean;
|
|
2522
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
2523
|
+
open: (props: {
|
|
2524
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2525
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2526
|
+
query?: string | undefined;
|
|
2527
|
+
}) => boolean;
|
|
2528
|
+
close: (props: {
|
|
2529
|
+
insertCurrentQueryAsRawText: boolean;
|
|
2530
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
2531
|
+
}) => boolean;
|
|
2532
|
+
openAtTransaction: (props: {
|
|
2533
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2534
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2535
|
+
query?: string | undefined;
|
|
2536
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2537
|
+
};
|
|
2538
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
2539
|
+
];
|
|
2540
|
+
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
2541
|
+
commands: {
|
|
2542
|
+
insertEmoji: (emojiId: import("@atlaskit/emoji").EmojiId, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.ASCII | import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TYPEAHEAD | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2543
|
+
};
|
|
2544
|
+
actions: {
|
|
2545
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2546
|
+
setProvider: (provider: Promise<import("@atlaskit/emoji").EmojiProvider>) => Promise<boolean>;
|
|
2547
|
+
};
|
|
2548
|
+
}, import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined>
|
|
2470
2549
|
];
|
|
2471
2550
|
actions: {
|
|
2472
2551
|
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2517,7 +2517,86 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2517
2517
|
}, FeatureFlags>>
|
|
2518
2518
|
];
|
|
2519
2519
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2520
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2520
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2521
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
2522
|
+
pluginConfiguration: EmojiPluginOptions | undefined;
|
|
2523
|
+
dependencies: [
|
|
2524
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2525
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2526
|
+
sharedState: {
|
|
2527
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
2528
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2529
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2530
|
+
};
|
|
2531
|
+
dependencies: [
|
|
2532
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2533
|
+
pluginConfiguration: FeatureFlags;
|
|
2534
|
+
sharedState: FeatureFlags;
|
|
2535
|
+
}, FeatureFlags>>
|
|
2536
|
+
];
|
|
2537
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2538
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2539
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2540
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
2541
|
+
dependencies: [
|
|
2542
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2543
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2544
|
+
sharedState: {
|
|
2545
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
2546
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2547
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2548
|
+
};
|
|
2549
|
+
dependencies: [
|
|
2550
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2551
|
+
pluginConfiguration: FeatureFlags;
|
|
2552
|
+
sharedState: FeatureFlags;
|
|
2553
|
+
}, FeatureFlags>>
|
|
2554
|
+
];
|
|
2555
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2556
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2557
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2558
|
+
pluginConfiguration: FeatureFlags;
|
|
2559
|
+
sharedState: FeatureFlags;
|
|
2560
|
+
}, FeatureFlags>>
|
|
2561
|
+
];
|
|
2562
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2563
|
+
actions: {
|
|
2564
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2565
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2566
|
+
insert: (props: {
|
|
2567
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2568
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
2569
|
+
query: string;
|
|
2570
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
2571
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
2572
|
+
}) => boolean;
|
|
2573
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
2574
|
+
open: (props: {
|
|
2575
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2576
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2577
|
+
query?: string | undefined;
|
|
2578
|
+
}) => boolean;
|
|
2579
|
+
close: (props: {
|
|
2580
|
+
insertCurrentQueryAsRawText: boolean;
|
|
2581
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
2582
|
+
}) => boolean;
|
|
2583
|
+
openAtTransaction: (props: {
|
|
2584
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
2585
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2586
|
+
query?: string | undefined;
|
|
2587
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2588
|
+
};
|
|
2589
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
2590
|
+
];
|
|
2591
|
+
sharedState: import("@atlaskit/editor-plugins/emoji").EmojiPluginSharedState | undefined;
|
|
2592
|
+
commands: {
|
|
2593
|
+
insertEmoji: (emojiId: import("@atlaskit/emoji").EmojiId, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.ASCII | import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TYPEAHEAD | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2594
|
+
};
|
|
2595
|
+
actions: {
|
|
2596
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2597
|
+
setProvider: (provider: Promise<import("@atlaskit/emoji").EmojiProvider>) => Promise<boolean>;
|
|
2598
|
+
};
|
|
2599
|
+
}, EmojiPluginOptions | undefined>
|
|
2521
2600
|
];
|
|
2522
2601
|
actions: {
|
|
2523
2602
|
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2466,7 +2466,86 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2466
2466
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2467
2467
|
];
|
|
2468
2468
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2469
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2469
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2470
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
2471
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined;
|
|
2472
|
+
dependencies: [
|
|
2473
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2474
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2475
|
+
sharedState: {
|
|
2476
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2477
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2478
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2479
|
+
};
|
|
2480
|
+
dependencies: [
|
|
2481
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2482
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2483
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2484
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2485
|
+
];
|
|
2486
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2487
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2488
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2489
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
2490
|
+
dependencies: [
|
|
2491
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2492
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2493
|
+
sharedState: {
|
|
2494
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2495
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2496
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2497
|
+
};
|
|
2498
|
+
dependencies: [
|
|
2499
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2500
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2501
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2502
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2503
|
+
];
|
|
2504
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2505
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
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
|
+
];
|
|
2511
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
2512
|
+
actions: {
|
|
2513
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2514
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
2515
|
+
insert: (props: {
|
|
2516
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
2517
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
2518
|
+
query: string;
|
|
2519
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
2520
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
2521
|
+
}) => boolean;
|
|
2522
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
2523
|
+
open: (props: {
|
|
2524
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
2525
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2526
|
+
query?: string | undefined;
|
|
2527
|
+
}) => boolean;
|
|
2528
|
+
close: (props: {
|
|
2529
|
+
insertCurrentQueryAsRawText: boolean;
|
|
2530
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
2531
|
+
}) => boolean;
|
|
2532
|
+
openAtTransaction: (props: {
|
|
2533
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
2534
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
2535
|
+
query?: string | undefined;
|
|
2536
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2537
|
+
};
|
|
2538
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
2539
|
+
];
|
|
2540
|
+
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
2541
|
+
commands: {
|
|
2542
|
+
insertEmoji: (emojiId: import("@atlaskit/emoji").EmojiId, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.ASCII | import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TYPEAHEAD | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2543
|
+
};
|
|
2544
|
+
actions: {
|
|
2545
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2546
|
+
setProvider: (provider: Promise<import("@atlaskit/emoji").EmojiProvider>) => Promise<boolean>;
|
|
2547
|
+
};
|
|
2548
|
+
}, import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined>
|
|
2470
2549
|
];
|
|
2471
2550
|
actions: {
|
|
2472
2551
|
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "197.7.
|
|
3
|
+
"version": "197.7.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.1.0",
|
|
46
|
-
"@atlaskit/editor-common": "^89.
|
|
46
|
+
"@atlaskit/editor-common": "^89.2.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
48
|
-
"@atlaskit/editor-plugins": "^5.
|
|
48
|
+
"@atlaskit/editor-plugins": "^5.1.0",
|
|
49
49
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
50
50
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
51
51
|
"@atlaskit/emoji": "^67.7.0",
|
|
@@ -203,9 +203,6 @@
|
|
|
203
203
|
"type": "boolean",
|
|
204
204
|
"referenceOnly": "true"
|
|
205
205
|
},
|
|
206
|
-
"platform_editor_insert_media_plugin_phase_one": {
|
|
207
|
-
"type": "boolean"
|
|
208
|
-
},
|
|
209
206
|
"platform.editor.card.inject-settings-button": {
|
|
210
207
|
"type": "boolean",
|
|
211
208
|
"referenceOnly": "true"
|
|
@@ -274,6 +271,9 @@
|
|
|
274
271
|
"platform_editor_nest_in_quotes_adf_change": {
|
|
275
272
|
"type": "boolean",
|
|
276
273
|
"referenceOnly": true
|
|
274
|
+
},
|
|
275
|
+
"platform_editor_mark_boundary_cursor": {
|
|
276
|
+
"type": "boolean"
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
"stricter": {
|