@atlaskit/editor-core 205.1.6 → 205.1.8
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 +18 -0
- package/dist/cjs/ui/ContentStyles/date.js +30 -1
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/date.js +29 -0
- package/dist/es2019/ui/ContentStyles/index.js +3 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/date.js +29 -0
- 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 +9 -41
- package/dist/types/presets/universal.d.ts +9 -41
- package/dist/types/presets/useUniversalPreset.d.ts +9 -41
- package/dist/types/ui/ContentStyles/date.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +9 -41
- package/dist/types-ts4.5/presets/universal.d.ts +9 -41
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +9 -41
- package/dist/types-ts4.5/ui/ContentStyles/date.d.ts +1 -0
- package/package.json +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 205.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#137676](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137676)
|
|
8
|
+
[`4a54b4a64712e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4a54b4a64712e) -
|
|
9
|
+
ED-27338: clean up vanilla date implementation
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 205.1.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#134341](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/134341)
|
|
17
|
+
[`e53990137fb56`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e53990137fb56) -
|
|
18
|
+
ED-27338: converts editor date node to vanilla js
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 205.1.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -4,11 +4,40 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.dateStyles = void 0;
|
|
7
|
+
exports.dateVanillaStyles = exports.dateStyles = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
14
|
+
var dateVanillaStyles = exports.dateVanillaStyles = (0, _react.css)({
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
16
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span": {
|
|
17
|
+
backgroundColor: "var(--ds-background-neutral, #091E420F)",
|
|
18
|
+
color: "var(--ds-text, #172B4D)",
|
|
19
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
20
|
+
padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)"),
|
|
21
|
+
margin: '0 1px',
|
|
22
|
+
position: 'relative',
|
|
23
|
+
transition: 'background 0.3s',
|
|
24
|
+
whiteSpace: 'nowrap',
|
|
25
|
+
cursor: 'unset'
|
|
26
|
+
},
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
28
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span:hover": {
|
|
29
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #091E4224)"
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
32
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span.date-node-color-red": {
|
|
33
|
+
backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
|
|
34
|
+
color: "var(--ds-text-accent-red, #AE2E24)"
|
|
35
|
+
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
37
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span.date-node-color-red:hover": {
|
|
38
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
13
42
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
43
|
var dateStyles = exports.dateStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\t.", " {\n\t\t\tline-height: initial;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " > span {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t}\n\n\t.danger {\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t}\n\t}\n"])), _styles.DateSharedCssClassName.DATE_CONTAINER, _styles.DateSharedCssClassName.DATE_WRAPPER, _editorSharedStyles.akEditorSelectedNodeClassName, _styles.DateSharedCssClassName.DATE_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _styles.DateSharedCssClassName.DATE_CONTAINER, _editorSharedStyles.akEditorSelectedNodeClassName, _styles.DateSharedCssClassName.DATE_WRAPPER, _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"));
|
|
@@ -146,7 +146,7 @@ var fixBlockControlStylesSSR = exports.fixBlockControlStylesSSR = function fixBl
|
|
|
146
146
|
// The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
|
|
147
147
|
var akEditorBreakpointForSmallDevice = "1266px";
|
|
148
148
|
var contentStyles = function contentStyles(props) {
|
|
149
|
-
return (0, _react2.css)(_templateObject10 || (_templateObject10 = (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.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\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 (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/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\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.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\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\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/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
|
|
149
|
+
return (0, _react2.css)(_templateObject10 || (_templateObject10 = (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.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\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 (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/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\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.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\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/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
|
|
150
150
|
theme: props.theme
|
|
151
151
|
}), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject11 || (_templateObject11 = (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"]))), (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
152
152
|
exposure: false
|
|
@@ -154,7 +154,7 @@ var contentStyles = function contentStyles(props) {
|
|
|
154
154
|
exposure: false
|
|
155
155
|
}) && vanillaSelectionStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
156
156
|
exposure: false
|
|
157
|
-
}) ? emojiStyles : reactEmojiStyles, 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)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, _date.dateStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), fixBlockControlStylesSSR(), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
157
|
+
}) ? emojiStyles : reactEmojiStyles, 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)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? _date.dateVanillaStyles : null, _date.dateStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), fixBlockControlStylesSSR(), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
158
158
|
};
|
|
159
159
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
160
160
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
4
4
|
import { akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
6
|
+
export const dateVanillaStyles = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
8
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span": {
|
|
9
|
+
backgroundColor: "var(--ds-background-neutral, #091E420F)",
|
|
10
|
+
color: "var(--ds-text, #172B4D)",
|
|
11
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
12
|
+
padding: `${"var(--ds-space-025, 2px)"} ${"var(--ds-space-050, 4px)"}`,
|
|
13
|
+
margin: '0 1px',
|
|
14
|
+
position: 'relative',
|
|
15
|
+
transition: 'background 0.3s',
|
|
16
|
+
whiteSpace: 'nowrap',
|
|
17
|
+
cursor: 'unset'
|
|
18
|
+
},
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
20
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span:hover": {
|
|
21
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #091E4224)"
|
|
22
|
+
},
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
24
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span.date-node-color-red": {
|
|
25
|
+
backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
|
|
26
|
+
color: "var(--ds-text-accent-red, #AE2E24)"
|
|
27
|
+
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
29
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span.date-node-color-red:hover": {
|
|
30
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
5
34
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
35
|
export const dateStyles = css`
|
|
7
36
|
.${DateSharedCssClassName.DATE_CONTAINER} {
|
|
@@ -29,7 +29,7 @@ import { useThemeObserver } from '@atlaskit/tokens';
|
|
|
29
29
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
30
30
|
import { aiPanelStyles } from './ai-panels';
|
|
31
31
|
import { codeBlockStyles } from './code-block';
|
|
32
|
-
import { dateStyles } from './date';
|
|
32
|
+
import { dateStyles, dateVanillaStyles } from './date';
|
|
33
33
|
import { expandStyles } from './expand';
|
|
34
34
|
import { extensionStyles } from './extension';
|
|
35
35
|
import { layoutStyles } from './layout';
|
|
@@ -438,7 +438,8 @@ const contentStyles = props => css`
|
|
|
438
438
|
${annotationSharedStyles()}
|
|
439
439
|
${smartCardStyles()}
|
|
440
440
|
${fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles}
|
|
441
|
-
${
|
|
441
|
+
${editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null}
|
|
442
|
+
${dateStyles}
|
|
442
443
|
${embedCardStyles()}
|
|
443
444
|
${unsupportedStyles}
|
|
444
445
|
${resizerStyles}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "205.1.
|
|
2
|
+
export const version = "205.1.8";
|
|
@@ -4,5 +4,34 @@ var _templateObject;
|
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
8
|
+
export var dateVanillaStyles = css({
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
10
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span": {
|
|
11
|
+
backgroundColor: "var(--ds-background-neutral, #091E420F)",
|
|
12
|
+
color: "var(--ds-text, #172B4D)",
|
|
13
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
14
|
+
padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)"),
|
|
15
|
+
margin: '0 1px',
|
|
16
|
+
position: 'relative',
|
|
17
|
+
transition: 'background 0.3s',
|
|
18
|
+
whiteSpace: 'nowrap',
|
|
19
|
+
cursor: 'unset'
|
|
20
|
+
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
22
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span:hover": {
|
|
23
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #091E4224)"
|
|
24
|
+
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
26
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span.date-node-color-red": {
|
|
27
|
+
backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
|
|
28
|
+
color: "var(--ds-text-accent-red, #AE2E24)"
|
|
29
|
+
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
31
|
+
"[data-prosemirror-node-view-type='vanilla'][data-prosemirror-node-name='date'] .date-lozenger-container span.date-node-color-red:hover": {
|
|
32
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)"
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
7
36
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
37
|
export var dateStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\t.", " {\n\t\t\tline-height: initial;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " > span {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t}\n\n\t.danger {\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t}\n\t}\n"])), DateSharedCssClassName.DATE_CONTAINER, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), DateSharedCssClassName.DATE_CONTAINER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"));
|
|
@@ -31,7 +31,7 @@ import { useThemeObserver } from '@atlaskit/tokens';
|
|
|
31
31
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
32
32
|
import { aiPanelStyles } from './ai-panels';
|
|
33
33
|
import { codeBlockStyles } from './code-block';
|
|
34
|
-
import { dateStyles } from './date';
|
|
34
|
+
import { dateStyles, dateVanillaStyles } from './date';
|
|
35
35
|
import { expandStyles } from './expand';
|
|
36
36
|
import { extensionStyles } from './extension';
|
|
37
37
|
import { layoutStyles } from './layout';
|
|
@@ -138,7 +138,7 @@ export var fixBlockControlStylesSSR = function fixBlockControlStylesSSR() {
|
|
|
138
138
|
// The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
|
|
139
139
|
var akEditorBreakpointForSmallDevice = "1266px";
|
|
140
140
|
var contentStyles = function contentStyles(props) {
|
|
141
|
-
return css(_templateObject10 || (_templateObject10 = _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.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\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 (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/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\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.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\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\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/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
|
|
141
|
+
return css(_templateObject10 || (_templateObject10 = _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.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\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 (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/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\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.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\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/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
|
|
142
142
|
theme: props.theme
|
|
143
143
|
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject11 || (_templateObject11 = _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"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
144
144
|
exposure: false
|
|
@@ -146,7 +146,7 @@ var contentStyles = function contentStyles(props) {
|
|
|
146
146
|
exposure: false
|
|
147
147
|
}) && vanillaSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
148
148
|
exposure: false
|
|
149
|
-
}) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
149
|
+
}) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
150
150
|
};
|
|
151
151
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
152
152
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "205.1.
|
|
2
|
+
export var version = "205.1.8";
|
|
@@ -472,20 +472,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
472
472
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
473
473
|
}) => boolean;
|
|
474
474
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
475
|
-
open: (props:
|
|
476
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
477
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
478
|
-
query?: string | undefined;
|
|
479
|
-
}) => boolean;
|
|
475
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
480
476
|
close: (props: {
|
|
481
477
|
insertCurrentQueryAsRawText: boolean;
|
|
482
478
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
483
479
|
}) => boolean;
|
|
484
|
-
openAtTransaction: (props:
|
|
485
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
486
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
487
|
-
query?: string | undefined;
|
|
488
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
480
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
489
481
|
};
|
|
490
482
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>];
|
|
491
483
|
}, import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
@@ -536,20 +528,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
536
528
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
537
529
|
}) => boolean;
|
|
538
530
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
539
|
-
open: (props:
|
|
540
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
541
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
542
|
-
query?: string | undefined;
|
|
543
|
-
}) => boolean;
|
|
531
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
544
532
|
close: (props: {
|
|
545
533
|
insertCurrentQueryAsRawText: boolean;
|
|
546
534
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
547
535
|
}) => boolean;
|
|
548
|
-
openAtTransaction: (props:
|
|
549
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
550
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
551
|
-
query?: string | undefined;
|
|
552
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
536
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
553
537
|
};
|
|
554
538
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
|
|
555
539
|
sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
|
|
@@ -559,7 +543,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
559
543
|
}, undefined>>];
|
|
560
544
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
561
545
|
actions: {
|
|
562
|
-
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
|
|
546
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean | undefined) => boolean;
|
|
563
547
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
564
548
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
565
549
|
};
|
|
@@ -875,20 +859,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
875
859
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
876
860
|
}) => boolean;
|
|
877
861
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
878
|
-
open: (props:
|
|
879
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
880
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
881
|
-
query?: string | undefined;
|
|
882
|
-
}) => boolean;
|
|
862
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
883
863
|
close: (props: {
|
|
884
864
|
insertCurrentQueryAsRawText: boolean;
|
|
885
865
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
886
866
|
}) => boolean;
|
|
887
|
-
openAtTransaction: (props:
|
|
888
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
889
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
890
|
-
query?: string | undefined;
|
|
891
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
867
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
892
868
|
};
|
|
893
869
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
894
870
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
@@ -977,20 +953,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
977
953
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
978
954
|
}) => boolean;
|
|
979
955
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
980
|
-
open: (props:
|
|
981
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
982
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
983
|
-
query?: string | undefined;
|
|
984
|
-
}) => boolean;
|
|
956
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
985
957
|
close: (props: {
|
|
986
958
|
insertCurrentQueryAsRawText: boolean;
|
|
987
959
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
988
960
|
}) => boolean;
|
|
989
|
-
openAtTransaction: (props:
|
|
990
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
991
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
992
|
-
query?: string | undefined;
|
|
993
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
961
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
994
962
|
};
|
|
995
963
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
996
964
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -524,20 +524,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
524
524
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
525
525
|
}) => boolean;
|
|
526
526
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
527
|
-
open: (props:
|
|
528
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
529
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
530
|
-
query?: string | undefined;
|
|
531
|
-
}) => boolean;
|
|
527
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
532
528
|
close: (props: {
|
|
533
529
|
insertCurrentQueryAsRawText: boolean;
|
|
534
530
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
535
531
|
}) => boolean;
|
|
536
|
-
openAtTransaction: (props:
|
|
537
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
538
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
539
|
-
query?: string | undefined;
|
|
540
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
532
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
541
533
|
};
|
|
542
534
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>];
|
|
543
535
|
}, import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
@@ -588,20 +580,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
588
580
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
589
581
|
}) => boolean;
|
|
590
582
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
591
|
-
open: (props:
|
|
592
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
593
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
594
|
-
query?: string | undefined;
|
|
595
|
-
}) => boolean;
|
|
583
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
596
584
|
close: (props: {
|
|
597
585
|
insertCurrentQueryAsRawText: boolean;
|
|
598
586
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
599
587
|
}) => boolean;
|
|
600
|
-
openAtTransaction: (props:
|
|
601
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
602
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
603
|
-
query?: string | undefined;
|
|
604
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
588
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
605
589
|
};
|
|
606
590
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
|
|
607
591
|
sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
|
|
@@ -611,7 +595,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
611
595
|
}, undefined>>];
|
|
612
596
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
613
597
|
actions: {
|
|
614
|
-
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
|
|
598
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean | undefined) => boolean;
|
|
615
599
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
616
600
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
617
601
|
};
|
|
@@ -927,20 +911,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
927
911
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
928
912
|
}) => boolean;
|
|
929
913
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
930
|
-
open: (props:
|
|
931
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
932
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
933
|
-
query?: string | undefined;
|
|
934
|
-
}) => boolean;
|
|
914
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
935
915
|
close: (props: {
|
|
936
916
|
insertCurrentQueryAsRawText: boolean;
|
|
937
917
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
938
918
|
}) => boolean;
|
|
939
|
-
openAtTransaction: (props:
|
|
940
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
941
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
942
|
-
query?: string | undefined;
|
|
943
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
919
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
944
920
|
};
|
|
945
921
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
946
922
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
@@ -1029,20 +1005,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1029
1005
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1030
1006
|
}) => boolean;
|
|
1031
1007
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
1032
|
-
open: (props:
|
|
1033
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1034
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1035
|
-
query?: string | undefined;
|
|
1036
|
-
}) => boolean;
|
|
1008
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
1037
1009
|
close: (props: {
|
|
1038
1010
|
insertCurrentQueryAsRawText: boolean;
|
|
1039
1011
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
1040
1012
|
}) => boolean;
|
|
1041
|
-
openAtTransaction: (props:
|
|
1042
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1043
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1044
|
-
query?: string | undefined;
|
|
1045
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1013
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1046
1014
|
};
|
|
1047
1015
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
1048
1016
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -472,20 +472,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
472
472
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
473
473
|
}) => boolean;
|
|
474
474
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
475
|
-
open: (props:
|
|
476
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
477
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
478
|
-
query?: string | undefined;
|
|
479
|
-
}) => boolean;
|
|
475
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
480
476
|
close: (props: {
|
|
481
477
|
insertCurrentQueryAsRawText: boolean;
|
|
482
478
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
483
479
|
}) => boolean;
|
|
484
|
-
openAtTransaction: (props:
|
|
485
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
486
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
487
|
-
query?: string | undefined;
|
|
488
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
480
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
489
481
|
};
|
|
490
482
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>];
|
|
491
483
|
}, import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
@@ -536,20 +528,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
536
528
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
537
529
|
}) => boolean;
|
|
538
530
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
539
|
-
open: (props:
|
|
540
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
541
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
542
|
-
query?: string | undefined;
|
|
543
|
-
}) => boolean;
|
|
531
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
544
532
|
close: (props: {
|
|
545
533
|
insertCurrentQueryAsRawText: boolean;
|
|
546
534
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
547
535
|
}) => boolean;
|
|
548
|
-
openAtTransaction: (props:
|
|
549
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
550
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
551
|
-
query?: string | undefined;
|
|
552
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
536
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
553
537
|
};
|
|
554
538
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
|
|
555
539
|
sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
|
|
@@ -559,7 +543,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
559
543
|
}, undefined>>];
|
|
560
544
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
561
545
|
actions: {
|
|
562
|
-
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
|
|
546
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean | undefined) => boolean;
|
|
563
547
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
564
548
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
565
549
|
};
|
|
@@ -875,20 +859,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
875
859
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
876
860
|
}) => boolean;
|
|
877
861
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
878
|
-
open: (props:
|
|
879
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
880
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
881
|
-
query?: string | undefined;
|
|
882
|
-
}) => boolean;
|
|
862
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
883
863
|
close: (props: {
|
|
884
864
|
insertCurrentQueryAsRawText: boolean;
|
|
885
865
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
886
866
|
}) => boolean;
|
|
887
|
-
openAtTransaction: (props:
|
|
888
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
889
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
890
|
-
query?: string | undefined;
|
|
891
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
867
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
892
868
|
};
|
|
893
869
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
894
870
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
@@ -977,20 +953,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
977
953
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
978
954
|
}) => boolean;
|
|
979
955
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
980
|
-
open: (props:
|
|
981
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
982
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
983
|
-
query?: string | undefined;
|
|
984
|
-
}) => boolean;
|
|
956
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
985
957
|
close: (props: {
|
|
986
958
|
insertCurrentQueryAsRawText: boolean;
|
|
987
959
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
988
960
|
}) => boolean;
|
|
989
|
-
openAtTransaction: (props:
|
|
990
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
991
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
992
|
-
query?: string | undefined;
|
|
993
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
961
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
994
962
|
};
|
|
995
963
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
996
964
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -637,20 +637,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
637
637
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
638
638
|
}) => boolean;
|
|
639
639
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
640
|
-
open: (props:
|
|
641
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
642
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
643
|
-
query?: string | undefined;
|
|
644
|
-
}) => boolean;
|
|
640
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
645
641
|
close: (props: {
|
|
646
642
|
insertCurrentQueryAsRawText: boolean;
|
|
647
643
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
648
644
|
}) => boolean;
|
|
649
|
-
openAtTransaction: (props:
|
|
650
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
651
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
652
|
-
query?: string | undefined;
|
|
653
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
645
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
654
646
|
};
|
|
655
647
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>
|
|
656
648
|
];
|
|
@@ -711,20 +703,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
711
703
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
712
704
|
}) => boolean;
|
|
713
705
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
714
|
-
open: (props:
|
|
715
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
716
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
717
|
-
query?: string | undefined;
|
|
718
|
-
}) => boolean;
|
|
706
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
719
707
|
close: (props: {
|
|
720
708
|
insertCurrentQueryAsRawText: boolean;
|
|
721
709
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
722
710
|
}) => boolean;
|
|
723
|
-
openAtTransaction: (props:
|
|
724
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
725
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
726
|
-
query?: string | undefined;
|
|
727
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
711
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
728
712
|
};
|
|
729
713
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
730
714
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
|
|
@@ -736,7 +720,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
736
720
|
];
|
|
737
721
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
738
722
|
actions: {
|
|
739
|
-
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
|
|
723
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean | undefined) => boolean;
|
|
740
724
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
741
725
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
742
726
|
};
|
|
@@ -1104,20 +1088,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1104
1088
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1105
1089
|
}) => boolean;
|
|
1106
1090
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
1107
|
-
open: (props:
|
|
1108
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1109
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1110
|
-
query?: string | undefined;
|
|
1111
|
-
}) => boolean;
|
|
1091
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
1112
1092
|
close: (props: {
|
|
1113
1093
|
insertCurrentQueryAsRawText: boolean;
|
|
1114
1094
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
1115
1095
|
}) => boolean;
|
|
1116
|
-
openAtTransaction: (props:
|
|
1117
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1118
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1119
|
-
query?: string | undefined;
|
|
1120
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1096
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1121
1097
|
};
|
|
1122
1098
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
1123
1099
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
@@ -1219,20 +1195,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1219
1195
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1220
1196
|
}) => boolean;
|
|
1221
1197
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
1222
|
-
open: (props:
|
|
1223
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1224
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1225
|
-
query?: string | undefined;
|
|
1226
|
-
}) => boolean;
|
|
1198
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
1227
1199
|
close: (props: {
|
|
1228
1200
|
insertCurrentQueryAsRawText: boolean;
|
|
1229
1201
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
1230
1202
|
}) => boolean;
|
|
1231
|
-
openAtTransaction: (props:
|
|
1232
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1233
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1234
|
-
query?: string | undefined;
|
|
1235
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1203
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1236
1204
|
};
|
|
1237
1205
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
1238
1206
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
@@ -689,20 +689,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
689
689
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
690
690
|
}) => boolean;
|
|
691
691
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
692
|
-
open: (props:
|
|
693
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
694
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
695
|
-
query?: string | undefined;
|
|
696
|
-
}) => boolean;
|
|
692
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
697
693
|
close: (props: {
|
|
698
694
|
insertCurrentQueryAsRawText: boolean;
|
|
699
695
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
700
696
|
}) => boolean;
|
|
701
|
-
openAtTransaction: (props:
|
|
702
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
703
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
704
|
-
query?: string | undefined;
|
|
705
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
697
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
706
698
|
};
|
|
707
699
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>
|
|
708
700
|
];
|
|
@@ -763,20 +755,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
763
755
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
764
756
|
}) => boolean;
|
|
765
757
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
766
|
-
open: (props:
|
|
767
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
768
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
769
|
-
query?: string | undefined;
|
|
770
|
-
}) => boolean;
|
|
758
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
771
759
|
close: (props: {
|
|
772
760
|
insertCurrentQueryAsRawText: boolean;
|
|
773
761
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
774
762
|
}) => boolean;
|
|
775
|
-
openAtTransaction: (props:
|
|
776
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
777
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
778
|
-
query?: string | undefined;
|
|
779
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
763
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
780
764
|
};
|
|
781
765
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
782
766
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
|
|
@@ -788,7 +772,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
788
772
|
];
|
|
789
773
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
790
774
|
actions: {
|
|
791
|
-
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
|
|
775
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean | undefined) => boolean;
|
|
792
776
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
793
777
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
794
778
|
};
|
|
@@ -1156,20 +1140,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1156
1140
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1157
1141
|
}) => boolean;
|
|
1158
1142
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
1159
|
-
open: (props:
|
|
1160
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1161
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1162
|
-
query?: string | undefined;
|
|
1163
|
-
}) => boolean;
|
|
1143
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
1164
1144
|
close: (props: {
|
|
1165
1145
|
insertCurrentQueryAsRawText: boolean;
|
|
1166
1146
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
1167
1147
|
}) => boolean;
|
|
1168
|
-
openAtTransaction: (props:
|
|
1169
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1170
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1171
|
-
query?: string | undefined;
|
|
1172
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1148
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1173
1149
|
};
|
|
1174
1150
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
1175
1151
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
@@ -1271,20 +1247,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1271
1247
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1272
1248
|
}) => boolean;
|
|
1273
1249
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
1274
|
-
open: (props:
|
|
1275
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1276
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1277
|
-
query?: string | undefined;
|
|
1278
|
-
}) => boolean;
|
|
1250
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
1279
1251
|
close: (props: {
|
|
1280
1252
|
insertCurrentQueryAsRawText: boolean;
|
|
1281
1253
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
1282
1254
|
}) => boolean;
|
|
1283
|
-
openAtTransaction: (props:
|
|
1284
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1285
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1286
|
-
query?: string | undefined;
|
|
1287
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1255
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1288
1256
|
};
|
|
1289
1257
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
1290
1258
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
@@ -637,20 +637,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
637
637
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
638
638
|
}) => boolean;
|
|
639
639
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
640
|
-
open: (props:
|
|
641
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
642
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
643
|
-
query?: string | undefined;
|
|
644
|
-
}) => boolean;
|
|
640
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
645
641
|
close: (props: {
|
|
646
642
|
insertCurrentQueryAsRawText: boolean;
|
|
647
643
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
648
644
|
}) => boolean;
|
|
649
|
-
openAtTransaction: (props:
|
|
650
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
651
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
652
|
-
query?: string | undefined;
|
|
653
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
645
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
654
646
|
};
|
|
655
647
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>
|
|
656
648
|
];
|
|
@@ -711,20 +703,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
711
703
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
712
704
|
}) => boolean;
|
|
713
705
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
714
|
-
open: (props:
|
|
715
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
716
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
717
|
-
query?: string | undefined;
|
|
718
|
-
}) => boolean;
|
|
706
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
719
707
|
close: (props: {
|
|
720
708
|
insertCurrentQueryAsRawText: boolean;
|
|
721
709
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
722
710
|
}) => boolean;
|
|
723
|
-
openAtTransaction: (props:
|
|
724
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
725
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
726
|
-
query?: string | undefined;
|
|
727
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
711
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
728
712
|
};
|
|
729
713
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
730
714
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
|
|
@@ -736,7 +720,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
736
720
|
];
|
|
737
721
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
738
722
|
actions: {
|
|
739
|
-
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
|
|
723
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean | undefined) => boolean;
|
|
740
724
|
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
741
725
|
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
742
726
|
};
|
|
@@ -1104,20 +1088,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1104
1088
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1105
1089
|
}) => boolean;
|
|
1106
1090
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
1107
|
-
open: (props:
|
|
1108
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1109
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1110
|
-
query?: string | undefined;
|
|
1111
|
-
}) => boolean;
|
|
1091
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
1112
1092
|
close: (props: {
|
|
1113
1093
|
insertCurrentQueryAsRawText: boolean;
|
|
1114
1094
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
1115
1095
|
}) => boolean;
|
|
1116
|
-
openAtTransaction: (props:
|
|
1117
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1118
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1119
|
-
query?: string | undefined;
|
|
1120
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1096
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1121
1097
|
};
|
|
1122
1098
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
1123
1099
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
@@ -1219,20 +1195,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1219
1195
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1220
1196
|
}) => boolean;
|
|
1221
1197
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
1222
|
-
open: (props:
|
|
1223
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1224
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1225
|
-
query?: string | undefined;
|
|
1226
|
-
}) => boolean;
|
|
1198
|
+
open: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => boolean;
|
|
1227
1199
|
close: (props: {
|
|
1228
1200
|
insertCurrentQueryAsRawText: boolean;
|
|
1229
1201
|
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
1230
1202
|
}) => boolean;
|
|
1231
|
-
openAtTransaction: (props:
|
|
1232
|
-
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1233
|
-
inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
|
|
1234
|
-
query?: string | undefined;
|
|
1235
|
-
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1203
|
+
openAtTransaction: (props: import("packages/editor/editor-plugin-type-ahead/dist/types/types").OpenTypeAheadProps) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1236
1204
|
};
|
|
1237
1205
|
}, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
|
|
1238
1206
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "205.1.
|
|
3
|
+
"version": "205.1.8",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^23.0.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^102.
|
|
49
|
+
"@atlaskit/editor-common": "^102.19.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^2.2.0",
|
|
@@ -419,10 +419,6 @@
|
|
|
419
419
|
"type": "boolean",
|
|
420
420
|
"referenceOnly": true
|
|
421
421
|
},
|
|
422
|
-
"platform_editor_nested_tables_resize_border_fix": {
|
|
423
|
-
"type": "boolean",
|
|
424
|
-
"referenceOnly": true
|
|
425
|
-
},
|
|
426
422
|
"platform_editor_nested_tables_column_drag_fix": {
|
|
427
423
|
"type": "boolean",
|
|
428
424
|
"referenceOnly": true
|
|
@@ -520,6 +516,9 @@
|
|
|
520
516
|
"platform_editor_lcm_inline_images": {
|
|
521
517
|
"type": "boolean"
|
|
522
518
|
},
|
|
519
|
+
"platform_editor_lcm_editor_controls_toolbar_fix": {
|
|
520
|
+
"type": "boolean"
|
|
521
|
+
},
|
|
523
522
|
"platform_editor_scroll_table_flickering_fix": {
|
|
524
523
|
"type": "boolean",
|
|
525
524
|
"referenceOnly": true
|
|
@@ -569,6 +568,14 @@
|
|
|
569
568
|
"type": "boolean",
|
|
570
569
|
"referenceOnly": true
|
|
571
570
|
},
|
|
571
|
+
"platform_editor_controls_patch_2": {
|
|
572
|
+
"type": "boolean",
|
|
573
|
+
"referenceOnly": true
|
|
574
|
+
},
|
|
575
|
+
"platform_editor_controls_patch_3": {
|
|
576
|
+
"type": "boolean",
|
|
577
|
+
"referenceOnly": true
|
|
578
|
+
},
|
|
572
579
|
"platform_editor_numbered_column_misalignment": {
|
|
573
580
|
"type": "boolean",
|
|
574
581
|
"referenceOnly": true
|
|
@@ -596,10 +603,6 @@
|
|
|
596
603
|
"platform_editor_controls_sticky_controls": {
|
|
597
604
|
"type": "boolean",
|
|
598
605
|
"referenceOnly": true
|
|
599
|
-
},
|
|
600
|
-
"platform_editor_controls_patch_2": {
|
|
601
|
-
"type": "boolean",
|
|
602
|
-
"referenceOnly": true
|
|
603
606
|
}
|
|
604
607
|
},
|
|
605
608
|
"stricter": {
|