@atlaskit/editor-core 204.5.1 → 204.5.3
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/index.js +11 -3
- package/dist/cjs/utils/extensions.js +10 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +10 -14
- package/dist/es2019/utils/extensions.js +10 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +11 -3
- package/dist/esm/utils/extensions.js +10 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +6 -0
- package/dist/types/presets/universal.d.ts +6 -0
- package/dist/types/presets/useUniversalPreset.d.ts +6 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +6 -0
- package/dist/types-ts4.5/presets/universal.d.ts +6 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +6 -0
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 204.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#127407](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127407)
|
|
8
|
+
[`7258909da2220`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7258909da2220) -
|
|
9
|
+
[ux] [ED-27108 Hide empty line placeholder when it overflows
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 204.5.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#127528](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127528)
|
|
17
|
+
[`e56482e9d6440`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e56482e9d6440) -
|
|
18
|
+
ED-26834 Fire experiment exposure event for nbm insertions when insert analytics are recorded
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 204.5.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -35,7 +35,7 @@ var _media = require("./media");
|
|
|
35
35
|
var _panel2 = require("./panel");
|
|
36
36
|
var _status = require("./status");
|
|
37
37
|
var _tasksAndDecisions = require("./tasks-and-decisions");
|
|
38
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12
|
|
38
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
39
39
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
40
40
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
41
41
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
|
|
@@ -73,6 +73,14 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)({
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
+
var placeholderOverflowStyles = (0, _react2.css)({
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
78
|
+
'.ProseMirror p:has(.placeholder-decoration)': {
|
|
79
|
+
overflow: 'hidden',
|
|
80
|
+
whiteSpace: 'nowrap',
|
|
81
|
+
textOverflow: 'ellipsis'
|
|
82
|
+
}
|
|
83
|
+
});
|
|
76
84
|
var firstBlockNodeStyles = (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> div[data-task-list-local-id],\n\t\t> div[data-layout-section],\n\t\t> .", " {\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t> hr:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n"])), _panel.PanelSharedCssClassName.prefix, _styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, _styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, _styles.expandClassNames.prefix);
|
|
77
85
|
var firstBlockNodeStylesNew = (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> div[data-task-list-local-id],\n\t\t> div[data-layout-section],\n\t\t> .", " {\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t> hr:first-child,\n\t\t> .ProseMirror-widget:first-child + hr {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n"])), _panel.PanelSharedCssClassName.prefix, _styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, _styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, _styles.expandClassNames.prefix);
|
|
78
86
|
|
|
@@ -92,9 +100,9 @@ var fixBlockControlStylesSSR = exports.fixBlockControlStylesSSR = function fixBl
|
|
|
92
100
|
// The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
|
|
93
101
|
var akEditorBreakpointForSmallDevice = "1266px";
|
|
94
102
|
var contentStyles = function contentStyles(props) {
|
|
95
|
-
return (0, _react2.css)(_templateObject8 || (_templateObject8 = (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 ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\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
|
|
103
|
+
return (0, _react2.css)(_templateObject8 || (_templateObject8 = (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 ", "\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)({
|
|
96
104
|
theme: props.theme
|
|
97
|
-
}), _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)(_templateObject9 || (_templateObject9 = (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)(_templateObject10 || (_templateObject10 = (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)(_templateObject11 || (_templateObject11 = (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, _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, 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(),
|
|
105
|
+
}), _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)(_templateObject9 || (_templateObject9 = (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)(_templateObject10 || (_templateObject10 = (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)(_templateObject11 || (_templateObject11 = (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, 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)(_templateObject12 || (_templateObject12 = (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);
|
|
98
106
|
};
|
|
99
107
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
100
108
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -16,6 +16,7 @@ var _extensions = require("@atlaskit/editor-common/extensions");
|
|
|
16
16
|
var _providerHelpers = require("@atlaskit/editor-common/provider-helpers");
|
|
17
17
|
var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
|
|
18
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
19
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
22
|
/**
|
|
@@ -24,6 +25,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
24
25
|
function sendExtensionQuickInsertAnalytics(item, selection, createAnalyticsEvent, source) {
|
|
25
26
|
if (createAnalyticsEvent) {
|
|
26
27
|
var insertLocation = (0, _platformFeatureFlags.fg)('platform_nested_nbm_analytics_location') ? (0, _analytics2.findInsertLocation)(selection) : undefined;
|
|
28
|
+
if (insertLocation && ['listItem', 'blockquote', 'nestedExpand', 'panel'].includes(insertLocation)) {
|
|
29
|
+
// No-op editorExperiment evaluation to track usage of nested non-bodied macros
|
|
30
|
+
// these can't be tracked at the point of diversion of the experience because that is a toggle of the
|
|
31
|
+
// ProseMirror schema nodes for listItems, nestedExpand, blockquote, and panel. At that point the customer
|
|
32
|
+
// has not yet been exposed to the experience.
|
|
33
|
+
(0, _experiments.editorExperiment)('platform_editor_nested_non_bodied_macros', 'test', {
|
|
34
|
+
exposure: true
|
|
35
|
+
});
|
|
36
|
+
}
|
|
27
37
|
(0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent)({
|
|
28
38
|
payload: {
|
|
29
39
|
action: _analytics.ACTION.INSERTED,
|
|
@@ -148,6 +148,14 @@ export const placeholderStyles = css({
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
|
+
const placeholderOverflowStyles = css({
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
153
|
+
'.ProseMirror p:has(.placeholder-decoration)': {
|
|
154
|
+
overflow: 'hidden',
|
|
155
|
+
whiteSpace: 'nowrap',
|
|
156
|
+
textOverflow: 'ellipsis'
|
|
157
|
+
}
|
|
158
|
+
});
|
|
151
159
|
const firstBlockNodeStyles = css`
|
|
152
160
|
.ProseMirror {
|
|
153
161
|
> .${PanelSharedCssClassName.prefix},
|
|
@@ -305,6 +313,8 @@ const contentStyles = props => css`
|
|
|
305
313
|
|
|
306
314
|
${placeholderTextStyles}
|
|
307
315
|
${placeholderStyles}
|
|
316
|
+
${editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null}
|
|
317
|
+
|
|
308
318
|
${codeBlockStyles()}
|
|
309
319
|
|
|
310
320
|
${blocktypeStyles(props.typographyTheme)}
|
|
@@ -391,20 +401,6 @@ const contentStyles = props => css`
|
|
|
391
401
|
clear: both;
|
|
392
402
|
}
|
|
393
403
|
|
|
394
|
-
// nested table resizer layout shift fix
|
|
395
|
-
${fg('platform_editor_table_layout_shift_fix') ? css`
|
|
396
|
-
.ProseMirror
|
|
397
|
-
div[data-prosemirror-node-block='true']
|
|
398
|
-
div[data-prosemirror-node-name='table']
|
|
399
|
-
.pm-table-resizer-container,
|
|
400
|
-
.ProseMirror
|
|
401
|
-
div[data-prosemirror-node-block='true']
|
|
402
|
-
div[data-prosemirror-node-name='table']
|
|
403
|
-
.resizer-item {
|
|
404
|
-
width: 100% !important;
|
|
405
|
-
}
|
|
406
|
-
` : null}
|
|
407
|
-
|
|
408
404
|
.hyperlink-floating-toolbar,
|
|
409
405
|
.${MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT} {
|
|
410
406
|
padding: 0;
|
|
@@ -5,12 +5,22 @@ import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-c
|
|
|
5
5
|
import { combineProviders } from '@atlaskit/editor-common/provider-helpers';
|
|
6
6
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
9
|
/**
|
|
9
10
|
* Utils to send analytics event when a extension is inserted using quickInsert
|
|
10
11
|
*/
|
|
11
12
|
function sendExtensionQuickInsertAnalytics(item, selection, createAnalyticsEvent, source) {
|
|
12
13
|
if (createAnalyticsEvent) {
|
|
13
14
|
const insertLocation = fg('platform_nested_nbm_analytics_location') ? findInsertLocation(selection) : undefined;
|
|
15
|
+
if (insertLocation && ['listItem', 'blockquote', 'nestedExpand', 'panel'].includes(insertLocation)) {
|
|
16
|
+
// No-op editorExperiment evaluation to track usage of nested non-bodied macros
|
|
17
|
+
// these can't be tracked at the point of diversion of the experience because that is a toggle of the
|
|
18
|
+
// ProseMirror schema nodes for listItems, nestedExpand, blockquote, and panel. At that point the customer
|
|
19
|
+
// has not yet been exposed to the experience.
|
|
20
|
+
editorExperiment('platform_editor_nested_non_bodied_macros', 'test', {
|
|
21
|
+
exposure: true
|
|
22
|
+
});
|
|
23
|
+
}
|
|
14
24
|
fireAnalyticsEvent(createAnalyticsEvent)({
|
|
15
25
|
payload: {
|
|
16
26
|
action: ACTION.INSERTED,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "204.5.
|
|
2
|
+
export const version = "204.5.3";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
4
4
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
5
5
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
|
|
@@ -65,6 +65,14 @@ export var placeholderStyles = css({
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
+
var placeholderOverflowStyles = css({
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
70
|
+
'.ProseMirror p:has(.placeholder-decoration)': {
|
|
71
|
+
overflow: 'hidden',
|
|
72
|
+
whiteSpace: 'nowrap',
|
|
73
|
+
textOverflow: 'ellipsis'
|
|
74
|
+
}
|
|
75
|
+
});
|
|
68
76
|
var firstBlockNodeStyles = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> div[data-task-list-local-id],\n\t\t> div[data-layout-section],\n\t\t> .", " {\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t> hr:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n"])), PanelSharedCssClassName.prefix, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, expandClassNames.prefix);
|
|
69
77
|
var firstBlockNodeStylesNew = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> div[data-task-list-local-id],\n\t\t> div[data-layout-section],\n\t\t> .", " {\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t> hr:first-child,\n\t\t> .ProseMirror-widget:first-child + hr {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n"])), PanelSharedCssClassName.prefix, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, expandClassNames.prefix);
|
|
70
78
|
|
|
@@ -84,9 +92,9 @@ export var fixBlockControlStylesSSR = function fixBlockControlStylesSSR() {
|
|
|
84
92
|
// The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
|
|
85
93
|
var akEditorBreakpointForSmallDevice = "1266px";
|
|
86
94
|
var contentStyles = function contentStyles(props) {
|
|
87
|
-
return css(_templateObject8 || (_templateObject8 = _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 ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\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
|
|
95
|
+
return css(_templateObject8 || (_templateObject8 = _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 ", "\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({
|
|
88
96
|
theme: props.theme
|
|
89
|
-
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject9 || (_templateObject9 = _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(_templateObject10 || (_templateObject10 = _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(_templateObject11 || (_templateObject11 = _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, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(),
|
|
97
|
+
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject9 || (_templateObject9 = _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(_templateObject10 || (_templateObject10 = _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(_templateObject11 || (_templateObject11 = _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, 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(_templateObject12 || (_templateObject12 = _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);
|
|
90
98
|
};
|
|
91
99
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
92
100
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -10,12 +10,22 @@ import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-c
|
|
|
10
10
|
import { combineProviders } from '@atlaskit/editor-common/provider-helpers';
|
|
11
11
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
13
14
|
/**
|
|
14
15
|
* Utils to send analytics event when a extension is inserted using quickInsert
|
|
15
16
|
*/
|
|
16
17
|
function sendExtensionQuickInsertAnalytics(item, selection, createAnalyticsEvent, source) {
|
|
17
18
|
if (createAnalyticsEvent) {
|
|
18
19
|
var insertLocation = fg('platform_nested_nbm_analytics_location') ? findInsertLocation(selection) : undefined;
|
|
20
|
+
if (insertLocation && ['listItem', 'blockquote', 'nestedExpand', 'panel'].includes(insertLocation)) {
|
|
21
|
+
// No-op editorExperiment evaluation to track usage of nested non-bodied macros
|
|
22
|
+
// these can't be tracked at the point of diversion of the experience because that is a toggle of the
|
|
23
|
+
// ProseMirror schema nodes for listItems, nestedExpand, blockquote, and panel. At that point the customer
|
|
24
|
+
// has not yet been exposed to the experience.
|
|
25
|
+
editorExperiment('platform_editor_nested_non_bodied_macros', 'test', {
|
|
26
|
+
exposure: true
|
|
27
|
+
});
|
|
28
|
+
}
|
|
19
29
|
fireAnalyticsEvent(createAnalyticsEvent)({
|
|
20
30
|
payload: {
|
|
21
31
|
action: ACTION.INSERTED,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "204.5.
|
|
2
|
+
export var version = "204.5.3";
|
|
@@ -612,6 +612,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
612
612
|
};
|
|
613
613
|
pluginConfiguration: {
|
|
614
614
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
615
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
615
616
|
};
|
|
616
617
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
617
618
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -637,6 +638,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
637
638
|
} | undefined;
|
|
638
639
|
}, {
|
|
639
640
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
641
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
640
642
|
}>>];
|
|
641
643
|
commands: {
|
|
642
644
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -664,6 +666,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
664
666
|
};
|
|
665
667
|
pluginConfiguration: {
|
|
666
668
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
669
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
667
670
|
};
|
|
668
671
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
669
672
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -689,6 +692,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
689
692
|
} | undefined;
|
|
690
693
|
}, {
|
|
691
694
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
695
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
692
696
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
693
697
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
694
698
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -717,6 +721,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
717
721
|
};
|
|
718
722
|
pluginConfiguration: {
|
|
719
723
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
724
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
720
725
|
};
|
|
721
726
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
722
727
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -742,6 +747,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
742
747
|
} | undefined;
|
|
743
748
|
}, {
|
|
744
749
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
750
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
745
751
|
}>>];
|
|
746
752
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
747
753
|
actions: {
|
|
@@ -664,6 +664,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
664
664
|
};
|
|
665
665
|
pluginConfiguration: {
|
|
666
666
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
667
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
667
668
|
};
|
|
668
669
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
669
670
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -689,6 +690,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
689
690
|
} | undefined;
|
|
690
691
|
}, {
|
|
691
692
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
693
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
692
694
|
}>>];
|
|
693
695
|
commands: {
|
|
694
696
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -716,6 +718,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
716
718
|
};
|
|
717
719
|
pluginConfiguration: {
|
|
718
720
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
721
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
719
722
|
};
|
|
720
723
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
721
724
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -741,6 +744,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
741
744
|
} | undefined;
|
|
742
745
|
}, {
|
|
743
746
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
747
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
744
748
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
745
749
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
746
750
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -769,6 +773,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
769
773
|
};
|
|
770
774
|
pluginConfiguration: {
|
|
771
775
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
776
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
772
777
|
};
|
|
773
778
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
774
779
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -794,6 +799,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
794
799
|
} | undefined;
|
|
795
800
|
}, {
|
|
796
801
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
802
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
797
803
|
}>>];
|
|
798
804
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
799
805
|
actions: {
|
|
@@ -612,6 +612,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
612
612
|
};
|
|
613
613
|
pluginConfiguration: {
|
|
614
614
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
615
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
615
616
|
};
|
|
616
617
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
617
618
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -637,6 +638,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
637
638
|
} | undefined;
|
|
638
639
|
}, {
|
|
639
640
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
641
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
640
642
|
}>>];
|
|
641
643
|
commands: {
|
|
642
644
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -664,6 +666,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
664
666
|
};
|
|
665
667
|
pluginConfiguration: {
|
|
666
668
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
669
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
667
670
|
};
|
|
668
671
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
669
672
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -689,6 +692,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
689
692
|
} | undefined;
|
|
690
693
|
}, {
|
|
691
694
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
695
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
692
696
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
693
697
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
694
698
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -717,6 +721,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
717
721
|
};
|
|
718
722
|
pluginConfiguration: {
|
|
719
723
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
724
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
720
725
|
};
|
|
721
726
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
722
727
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -742,6 +747,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
742
747
|
} | undefined;
|
|
743
748
|
}, {
|
|
744
749
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
750
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
745
751
|
}>>];
|
|
746
752
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
747
753
|
actions: {
|
|
@@ -800,6 +800,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
800
800
|
};
|
|
801
801
|
pluginConfiguration: {
|
|
802
802
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
803
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
803
804
|
};
|
|
804
805
|
dependencies: [
|
|
805
806
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -829,6 +830,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
829
830
|
} | undefined;
|
|
830
831
|
}, {
|
|
831
832
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
833
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
832
834
|
}>>
|
|
833
835
|
];
|
|
834
836
|
commands: {
|
|
@@ -859,6 +861,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
859
861
|
};
|
|
860
862
|
pluginConfiguration: {
|
|
861
863
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
864
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
862
865
|
};
|
|
863
866
|
dependencies: [
|
|
864
867
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -888,6 +891,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
888
891
|
} | undefined;
|
|
889
892
|
}, {
|
|
890
893
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
894
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
891
895
|
}>,
|
|
892
896
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
893
897
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
@@ -923,6 +927,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
923
927
|
};
|
|
924
928
|
pluginConfiguration: {
|
|
925
929
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
930
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
926
931
|
};
|
|
927
932
|
dependencies: [
|
|
928
933
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -952,6 +957,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
952
957
|
} | undefined;
|
|
953
958
|
}, {
|
|
954
959
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
960
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
955
961
|
}>>
|
|
956
962
|
];
|
|
957
963
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -852,6 +852,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
852
852
|
};
|
|
853
853
|
pluginConfiguration: {
|
|
854
854
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
855
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
855
856
|
};
|
|
856
857
|
dependencies: [
|
|
857
858
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -881,6 +882,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
881
882
|
} | undefined;
|
|
882
883
|
}, {
|
|
883
884
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
885
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
884
886
|
}>>
|
|
885
887
|
];
|
|
886
888
|
commands: {
|
|
@@ -911,6 +913,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
911
913
|
};
|
|
912
914
|
pluginConfiguration: {
|
|
913
915
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
916
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
914
917
|
};
|
|
915
918
|
dependencies: [
|
|
916
919
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -940,6 +943,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
940
943
|
} | undefined;
|
|
941
944
|
}, {
|
|
942
945
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
946
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
943
947
|
}>,
|
|
944
948
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
945
949
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
@@ -975,6 +979,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
975
979
|
};
|
|
976
980
|
pluginConfiguration: {
|
|
977
981
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
982
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
978
983
|
};
|
|
979
984
|
dependencies: [
|
|
980
985
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1004,6 +1009,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1004
1009
|
} | undefined;
|
|
1005
1010
|
}, {
|
|
1006
1011
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
1012
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
1007
1013
|
}>>
|
|
1008
1014
|
];
|
|
1009
1015
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -800,6 +800,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
800
800
|
};
|
|
801
801
|
pluginConfiguration: {
|
|
802
802
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
803
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
803
804
|
};
|
|
804
805
|
dependencies: [
|
|
805
806
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -829,6 +830,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
829
830
|
} | undefined;
|
|
830
831
|
}, {
|
|
831
832
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
833
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
832
834
|
}>>
|
|
833
835
|
];
|
|
834
836
|
commands: {
|
|
@@ -859,6 +861,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
859
861
|
};
|
|
860
862
|
pluginConfiguration: {
|
|
861
863
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
864
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
862
865
|
};
|
|
863
866
|
dependencies: [
|
|
864
867
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -888,6 +891,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
888
891
|
} | undefined;
|
|
889
892
|
}, {
|
|
890
893
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
894
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
891
895
|
}>,
|
|
892
896
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
893
897
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
@@ -923,6 +927,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
923
927
|
};
|
|
924
928
|
pluginConfiguration: {
|
|
925
929
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
930
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
926
931
|
};
|
|
927
932
|
dependencies: [
|
|
928
933
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -952,6 +957,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
952
957
|
} | undefined;
|
|
953
958
|
}, {
|
|
954
959
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
960
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
955
961
|
}>>
|
|
956
962
|
];
|
|
957
963
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "204.5.
|
|
3
|
+
"version": "204.5.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^21.1.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^102.
|
|
49
|
+
"@atlaskit/editor-common": "^102.10.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.1.0",
|
|
53
53
|
"@atlaskit/editor-plugins": "^8.0.0",
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
56
|
-
"@atlaskit/emoji": "^
|
|
56
|
+
"@atlaskit/emoji": "^69.0.0",
|
|
57
57
|
"@atlaskit/icon": "^25.0.0",
|
|
58
58
|
"@atlaskit/media-card": "^79.0.0",
|
|
59
59
|
"@atlaskit/mention": "^24.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
61
|
"@atlaskit/react-ufo": "^3.4.0",
|
|
62
62
|
"@atlaskit/task-decision": "^19.1.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^4.1.0",
|
|
64
64
|
"@atlaskit/tokens": "^4.5.0",
|
|
65
65
|
"@atlaskit/tooltip": "^20.0.0",
|
|
66
66
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -556,6 +556,10 @@
|
|
|
556
556
|
},
|
|
557
557
|
"platform_nested_nbm_analytics_location": {
|
|
558
558
|
"type": "boolean"
|
|
559
|
+
},
|
|
560
|
+
"platform_editor_elements_dnd_multi_select_patch_2": {
|
|
561
|
+
"type": "boolean",
|
|
562
|
+
"referenceOnly": true
|
|
559
563
|
}
|
|
560
564
|
},
|
|
561
565
|
"stricter": {
|