@atlaskit/editor-core 216.13.0 → 216.13.2
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 +16 -0
- package/dist/cjs/presets/universal.js +3 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +7 -8
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +6 -2
- package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +14 -1
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +14 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +3 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +4 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +8 -4
- package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +13 -0
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +20 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +3 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +6 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +8 -4
- package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +13 -0
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +13 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +5 -4
- package/dist/types/presets/universal.d.ts +5 -4
- package/dist/types/presets/useUniversalPreset.d.ts +5 -4
- package/dist/types/ui/EditorContentContainer/styles/baseStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +7 -4
- package/dist/types-ts4.5/presets/universal.d.ts +7 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +7 -4
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/baseStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +1 -0
- package/package.json +13 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 216.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b35eb5f6a4e6a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b35eb5f6a4e6a) -
|
|
8
|
+
Remove now inert `autoFocus` prop from modal dialog components.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 216.13.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`566fb75af84dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/566fb75af84dd) -
|
|
16
|
+
fix resize layout/expand/codeblock issue in max mode appearance in editor
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 216.13.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -259,6 +259,9 @@ function createUniversalPresetInternal(_ref) {
|
|
|
259
259
|
}
|
|
260
260
|
function isExpandInsertionEnabled(_ref2) {
|
|
261
261
|
var allowExpand = _ref2.allowExpand;
|
|
262
|
+
if (allowExpand === true && (0, _expValEquals.expValEquals)('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true)) {
|
|
263
|
+
return true;
|
|
264
|
+
}
|
|
262
265
|
if (allowExpand && (0, _typeof2.default)(allowExpand) === 'object') {
|
|
263
266
|
return !!allowExpand.allowInsertion;
|
|
264
267
|
}
|
|
@@ -25,16 +25,13 @@ var _EditorContentContainer = _interopRequireDefault(require("../../EditorConten
|
|
|
25
25
|
var _PluginSlot = _interopRequireDefault(require("../../PluginSlot"));
|
|
26
26
|
var _StyledComponents = require("./StyledComponents");
|
|
27
27
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
28
|
-
|
|
28
|
+
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; }
|
|
29
|
+
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; } /**
|
|
29
30
|
* @jsxRuntime classic
|
|
30
31
|
* @jsx jsx
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
34
|
-
|
|
32
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
35
33
|
// Ignored via go/ees005
|
|
36
34
|
// eslint-disable-next-line import/no-named-as-default
|
|
37
|
-
|
|
38
35
|
var akEditorFullWidthLayoutWidth = 1800;
|
|
39
36
|
var akEditorUltraWideLayoutWidth = 4000;
|
|
40
37
|
var akEditorSwoopCubicBezier = "cubic-bezier(0.15, 1, 0.3, 1)";
|
|
@@ -280,9 +277,11 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
280
277
|
}) && editorContentReducedGutterStyles]
|
|
281
278
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
282
279
|
,
|
|
283
|
-
className: (0, _classnames.default)('ak-editor-content-area', 'appearance-full-page', {
|
|
280
|
+
className: (0, _classnames.default)('ak-editor-content-area', 'appearance-full-page', _objectSpread({
|
|
284
281
|
'fabric-editor--full-width-mode': fullWidthMode
|
|
285
|
-
})
|
|
282
|
+
}, (0, _platformFeatureFlags.fg)('platform_editor_max_width_mode_resize_fix') && {
|
|
283
|
+
'fabric-editor--max-width-mode': Boolean(maxWidthMode)
|
|
284
|
+
})),
|
|
286
285
|
ref: contentAreaRef
|
|
287
286
|
}, !!props.customContentComponents && 'before' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.before) : (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents), (0, _react2.jsx)(_PluginSlot.default, {
|
|
288
287
|
editorView: props.editorView,
|
|
@@ -145,7 +145,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
145
145
|
ref: ref,
|
|
146
146
|
css: [
|
|
147
147
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
148
|
-
_baseStyles.baseStyles,
|
|
148
|
+
_baseStyles.baseStyles,
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
150
|
+
(0, _platformFeatureFlags.fg)('platform_editor_max_width_mode_resize_fix') && _baseStyles.maxModeReizeFixStyles, (0, _expValEquals.expValEquals)('platform_editor_media_vc_fixes', 'isEnabled', true) &&
|
|
149
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
150
152
|
_baseStyles.baseStylesMaxContainerWidthFixes,
|
|
151
153
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -368,7 +370,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
368
370
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
369
371
|
_syncBlockStyles.syncBlockOverflowStyles), (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_3') &&
|
|
370
372
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
371
|
-
_syncBlockStyles.syncBlockFirstNodeStyles,
|
|
373
|
+
_syncBlockStyles.syncBlockFirstNodeStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_5') &&
|
|
374
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
375
|
+
_syncBlockStyles.syncBlockDraggingStyles,
|
|
372
376
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
373
377
|
(0, _experiments.editorExperiment)('advanced_layouts', true) && _layout.layoutBaseStylesAdvanced, (0, _experiments.editorExperiment)('advanced_layouts', true) ?
|
|
374
378
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.editorLargeGutterPuddingReducedBaseStyles = exports.editorLargeGutterPuddingBaseStylesEditorControls = exports.editorLargeGutterPuddingBaseStyles = exports.baseStylesMaxContainerWidthFixes = exports.baseStyles = void 0;
|
|
7
|
+
exports.maxModeReizeFixStyles = exports.editorLargeGutterPuddingReducedBaseStyles = exports.editorLargeGutterPuddingBaseStylesEditorControls = exports.editorLargeGutterPuddingBaseStyles = exports.baseStylesMaxContainerWidthFixes = exports.baseStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
@@ -20,6 +20,7 @@ var akEditorFullWidthLayoutWidth = 1800;
|
|
|
20
20
|
var akEditorBreakpointForSmallDevice = "1266px";
|
|
21
21
|
var akEditorGutterPaddingReduced = 24;
|
|
22
22
|
var akEditorFullPageNarrowBreakout = 600;
|
|
23
|
+
var akEditorUltraWideLayoutWidth = 4000;
|
|
23
24
|
|
|
24
25
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
25
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
@@ -30,6 +31,7 @@ var baseStyles = exports.baseStyles = (0, _react.css)((0, _defineProperty2.defau
|
|
|
30
31
|
'--ak-editor--full-width-layout-width': "".concat(akEditorFullWidthLayoutWidth, "px"),
|
|
31
32
|
/* calculate editor line length, 100cqw is the editor container width */
|
|
32
33
|
'--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
|
|
34
|
+
'--ak-editor--max-width-layout-width': "".concat(akEditorUltraWideLayoutWidth, "px"),
|
|
33
35
|
'--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidthSmallViewport, "px"),
|
|
34
36
|
'--ak-editor--breakout-full-page-guttering-padding': 'calc(var(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding))',
|
|
35
37
|
'--ak-editor--breakout-fallback-width': 'calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))',
|
|
@@ -60,6 +62,17 @@ var baseStyles = exports.baseStyles = (0, _react.css)((0, _defineProperty2.defau
|
|
|
60
62
|
}
|
|
61
63
|
}));
|
|
62
64
|
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
66
|
+
var maxModeReizeFixStyles = exports.maxModeReizeFixStyles = (0, _react.css)({
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
+
'.fabric-editor--max-width-mode': {
|
|
69
|
+
'--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--max-width-layout-width))',
|
|
70
|
+
/* in max width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */
|
|
71
|
+
'--ak-editor--breakout-fallback-width': '100%',
|
|
72
|
+
'--ak-editor--breakout-min-width': '0px'
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
63
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
64
77
|
var baseStylesMaxContainerWidthFixes = exports.baseStylesMaxContainerWidthFixes = (0, _react.css)({
|
|
65
78
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.syncBlockStyles = exports.syncBlockOverflowStylesNew = exports.syncBlockOverflowStyles = exports.syncBlockFirstNodeStyles = void 0;
|
|
7
|
+
exports.syncBlockStyles = exports.syncBlockOverflowStylesNew = exports.syncBlockOverflowStyles = exports.syncBlockFirstNodeStyles = exports.syncBlockDraggingStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
@@ -179,4 +179,16 @@ var syncBlockOverflowStylesNew = exports.syncBlockOverflowStylesNew = (0, _react
|
|
|
179
179
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
180
180
|
var syncBlockFirstNodeStyles = exports.syncBlockFirstNodeStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".ProseMirror > .fabric-editor-breakout-mark:first-child", (0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.prefix, ", .").concat(_syncBlock.BodiedSyncBlockSharedCssClassName.prefix), {
|
|
181
181
|
marginTop: 0
|
|
182
|
-
})));
|
|
182
|
+
})));
|
|
183
|
+
|
|
184
|
+
// combine this with the selection inside styles when cleaning up platform_synced_block_patch_5
|
|
185
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
186
|
+
var syncBlockDraggingStyles = exports.syncBlockDraggingStyles = (0, _react.css)({
|
|
187
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
188
|
+
'.ProseMirror': (0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.prefix, ", .").concat(_syncBlock.BodiedSyncBlockSharedCssClassName.prefix), (0, _defineProperty2.default)({}, "&.".concat(_syncBlock.SyncBlockStateCssClassName.draggingClassName), (0, _defineProperty2.default)({
|
|
189
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
190
|
+
}, ".".concat(_syncBlock.SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
191
|
+
opacity: 1,
|
|
192
|
+
visibility: 'visible'
|
|
193
|
+
})))
|
|
194
|
+
});
|
|
@@ -262,6 +262,9 @@ export default function createUniversalPresetInternal({
|
|
|
262
262
|
export function isExpandInsertionEnabled({
|
|
263
263
|
allowExpand
|
|
264
264
|
}) {
|
|
265
|
+
if (allowExpand === true && expValEquals('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true)) {
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
265
268
|
if (allowExpand && typeof allowExpand === 'object') {
|
|
266
269
|
return !!allowExpand.allowInsertion;
|
|
267
270
|
}
|
|
@@ -275,7 +275,10 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
275
275
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
276
276
|
,
|
|
277
277
|
className: classnames('ak-editor-content-area', 'appearance-full-page', {
|
|
278
|
-
'fabric-editor--full-width-mode': fullWidthMode
|
|
278
|
+
'fabric-editor--full-width-mode': fullWidthMode,
|
|
279
|
+
...(fg('platform_editor_max_width_mode_resize_fix') && {
|
|
280
|
+
'fabric-editor--max-width-mode': Boolean(maxWidthMode)
|
|
281
|
+
})
|
|
279
282
|
}),
|
|
280
283
|
ref: contentAreaRef
|
|
281
284
|
}, !!props.customContentComponents && 'before' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.before) : contentComponentClickWrapper(props.customContentComponents), jsx(PluginSlot, {
|
|
@@ -20,7 +20,7 @@ import { getBaseFontSize } from '../../composable-editor/utils/getBaseFontSize';
|
|
|
20
20
|
import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles, aiPanelDarkStyles } from './styles/aiPanel';
|
|
21
21
|
import { annotationStyles } from './styles/annotationStyles';
|
|
22
22
|
import { backgroundColorStyles, textHighlightPaddingStyles } from './styles/backgroundColorStyles';
|
|
23
|
-
import { baseStyles, baseStylesMaxContainerWidthFixes, editorLargeGutterPuddingBaseStyles, editorLargeGutterPuddingBaseStylesEditorControls, editorLargeGutterPuddingReducedBaseStyles } from './styles/baseStyles';
|
|
23
|
+
import { baseStyles, baseStylesMaxContainerWidthFixes, editorLargeGutterPuddingBaseStyles, editorLargeGutterPuddingBaseStylesEditorControls, editorLargeGutterPuddingReducedBaseStyles, maxModeReizeFixStyles } from './styles/baseStyles';
|
|
24
24
|
import { blockMarksStyles } from './styles/blockMarksStyles';
|
|
25
25
|
import { blockquoteDangerStyles, blockquoteSelectedNodeStyles, blockquoteZeroPadding, blocktypeStyles, blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, blocktypeStyles_fg_platform_editor_typography_ugc, blocktypeStyles_without_fg_platform_editor_typography_ugc, listDangerStyles, listSelectedNodeStyles, textDangerStyles, textSelectedNodeStyles } from './styles/blockTypeStyles';
|
|
26
26
|
import { codeBlockStyles, codeBlockStylesWithEmUnits, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
@@ -57,7 +57,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
|
|
|
57
57
|
import { shadowStyles } from './styles/shadowStyles';
|
|
58
58
|
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
|
|
59
59
|
import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
|
|
60
|
-
import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles, syncBlockOverflowStylesNew } from './styles/syncBlockStyles';
|
|
60
|
+
import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles, syncBlockOverflowStylesNew, syncBlockDraggingStyles } from './styles/syncBlockStyles';
|
|
61
61
|
import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
62
62
|
import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
|
|
63
63
|
import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
|
|
@@ -141,7 +141,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
141
141
|
ref: ref,
|
|
142
142
|
css: [
|
|
143
143
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
144
|
-
baseStyles,
|
|
144
|
+
baseStyles,
|
|
145
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
146
|
+
fg('platform_editor_max_width_mode_resize_fix') && maxModeReizeFixStyles, expValEquals('platform_editor_media_vc_fixes', 'isEnabled', true) &&
|
|
145
147
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
146
148
|
baseStylesMaxContainerWidthFixes,
|
|
147
149
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -364,7 +366,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
364
366
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
365
367
|
syncBlockOverflowStyles), editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_3') &&
|
|
366
368
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
367
|
-
syncBlockFirstNodeStyles,
|
|
369
|
+
syncBlockFirstNodeStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_5') &&
|
|
370
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
371
|
+
syncBlockDraggingStyles,
|
|
368
372
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
369
373
|
editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
|
|
370
374
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -12,6 +12,7 @@ const akEditorFullWidthLayoutWidth = 1800;
|
|
|
12
12
|
const akEditorBreakpointForSmallDevice = `1266px`;
|
|
13
13
|
const akEditorGutterPaddingReduced = 24;
|
|
14
14
|
const akEditorFullPageNarrowBreakout = 600;
|
|
15
|
+
const akEditorUltraWideLayoutWidth = 4000;
|
|
15
16
|
|
|
16
17
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
17
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
@@ -22,6 +23,7 @@ export const baseStyles = css({
|
|
|
22
23
|
'--ak-editor--full-width-layout-width': `${akEditorFullWidthLayoutWidth}px`,
|
|
23
24
|
/* calculate editor line length, 100cqw is the editor container width */
|
|
24
25
|
'--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
|
|
26
|
+
'--ak-editor--max-width-layout-width': `${akEditorUltraWideLayoutWidth}px`,
|
|
25
27
|
'--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidthSmallViewport}px`,
|
|
26
28
|
'--ak-editor--breakout-full-page-guttering-padding': 'calc(var(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding))',
|
|
27
29
|
'--ak-editor--breakout-fallback-width': 'calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))',
|
|
@@ -55,6 +57,17 @@ export const baseStyles = css({
|
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
59
|
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
61
|
+
export const maxModeReizeFixStyles = css({
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
63
|
+
'.fabric-editor--max-width-mode': {
|
|
64
|
+
'--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--max-width-layout-width))',
|
|
65
|
+
/* in max width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */
|
|
66
|
+
'--ak-editor--breakout-fallback-width': '100%',
|
|
67
|
+
'--ak-editor--breakout-min-width': '0px'
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
58
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
59
72
|
export const baseStylesMaxContainerWidthFixes = css({
|
|
60
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -239,4 +239,24 @@ export const syncBlockFirstNodeStyles = css({
|
|
|
239
239
|
marginTop: 0
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
// combine this with the selection inside styles when cleaning up platform_synced_block_patch_5
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
246
|
+
export const syncBlockDraggingStyles = css({
|
|
247
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
248
|
+
'.ProseMirror': {
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
250
|
+
[`.${SyncBlockSharedCssClassName.prefix}, .${BodiedSyncBlockSharedCssClassName.prefix}`]: {
|
|
251
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
252
|
+
[`&.${SyncBlockStateCssClassName.draggingClassName}`]: {
|
|
253
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border, #0B120E24)"}`,
|
|
254
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
255
|
+
[`.${SyncBlockLabelSharedCssClassName.labelClassName}`]: {
|
|
256
|
+
opacity: 1,
|
|
257
|
+
visibility: 'visible'
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
242
262
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "216.13.1";
|
|
@@ -252,6 +252,9 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
252
252
|
}
|
|
253
253
|
export function isExpandInsertionEnabled(_ref2) {
|
|
254
254
|
var allowExpand = _ref2.allowExpand;
|
|
255
|
+
if (allowExpand === true && expValEquals('platform_editor_expand_paste_in_comment_editor', 'isEnabled', true)) {
|
|
256
|
+
return true;
|
|
257
|
+
}
|
|
255
258
|
if (allowExpand && _typeof(allowExpand) === 'object') {
|
|
256
259
|
return !!allowExpand.allowInsertion;
|
|
257
260
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
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; }
|
|
3
|
+
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) { _defineProperty(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; }
|
|
2
4
|
/**
|
|
3
5
|
* @jsxRuntime classic
|
|
4
6
|
* @jsx jsx
|
|
@@ -270,9 +272,11 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
270
272
|
}) && editorContentReducedGutterStyles]
|
|
271
273
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
272
274
|
,
|
|
273
|
-
className: classnames('ak-editor-content-area', 'appearance-full-page', {
|
|
275
|
+
className: classnames('ak-editor-content-area', 'appearance-full-page', _objectSpread({
|
|
274
276
|
'fabric-editor--full-width-mode': fullWidthMode
|
|
275
|
-
})
|
|
277
|
+
}, fg('platform_editor_max_width_mode_resize_fix') && {
|
|
278
|
+
'fabric-editor--max-width-mode': Boolean(maxWidthMode)
|
|
279
|
+
})),
|
|
276
280
|
ref: contentAreaRef
|
|
277
281
|
}, !!props.customContentComponents && 'before' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.before) : contentComponentClickWrapper(props.customContentComponents), jsx(PluginSlot, {
|
|
278
282
|
editorView: props.editorView,
|
|
@@ -21,7 +21,7 @@ import { getBaseFontSize } from '../../composable-editor/utils/getBaseFontSize';
|
|
|
21
21
|
import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles, aiPanelDarkStyles } from './styles/aiPanel';
|
|
22
22
|
import { annotationStyles } from './styles/annotationStyles';
|
|
23
23
|
import { backgroundColorStyles, textHighlightPaddingStyles } from './styles/backgroundColorStyles';
|
|
24
|
-
import { baseStyles, baseStylesMaxContainerWidthFixes, editorLargeGutterPuddingBaseStyles, editorLargeGutterPuddingBaseStylesEditorControls, editorLargeGutterPuddingReducedBaseStyles } from './styles/baseStyles';
|
|
24
|
+
import { baseStyles, baseStylesMaxContainerWidthFixes, editorLargeGutterPuddingBaseStyles, editorLargeGutterPuddingBaseStylesEditorControls, editorLargeGutterPuddingReducedBaseStyles, maxModeReizeFixStyles } from './styles/baseStyles';
|
|
25
25
|
import { blockMarksStyles } from './styles/blockMarksStyles';
|
|
26
26
|
import { blockquoteDangerStyles, blockquoteSelectedNodeStyles, blockquoteZeroPadding, blocktypeStyles, blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, blocktypeStyles_fg_platform_editor_typography_ugc, blocktypeStyles_without_fg_platform_editor_typography_ugc, listDangerStyles, listSelectedNodeStyles, textDangerStyles, textSelectedNodeStyles } from './styles/blockTypeStyles';
|
|
27
27
|
import { codeBlockStyles, codeBlockStylesWithEmUnits, firstCodeBlockWithNoMargin, firstCodeBlockWithNoMarginOld } from './styles/codeBlockStyles';
|
|
@@ -58,7 +58,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
|
|
|
58
58
|
import { shadowStyles } from './styles/shadowStyles';
|
|
59
59
|
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
|
|
60
60
|
import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
|
|
61
|
-
import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles, syncBlockOverflowStylesNew } from './styles/syncBlockStyles';
|
|
61
|
+
import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles, syncBlockOverflowStylesNew, syncBlockDraggingStyles } from './styles/syncBlockStyles';
|
|
62
62
|
import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
63
63
|
import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
|
|
64
64
|
import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
|
|
@@ -137,7 +137,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
137
137
|
ref: ref,
|
|
138
138
|
css: [
|
|
139
139
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
140
|
-
baseStyles,
|
|
140
|
+
baseStyles,
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
142
|
+
fg('platform_editor_max_width_mode_resize_fix') && maxModeReizeFixStyles, expValEquals('platform_editor_media_vc_fixes', 'isEnabled', true) &&
|
|
141
143
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
142
144
|
baseStylesMaxContainerWidthFixes,
|
|
143
145
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -360,7 +362,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
360
362
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
361
363
|
syncBlockOverflowStyles), editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_3') &&
|
|
362
364
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
363
|
-
syncBlockFirstNodeStyles,
|
|
365
|
+
syncBlockFirstNodeStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_5') &&
|
|
366
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
367
|
+
syncBlockDraggingStyles,
|
|
364
368
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
365
369
|
editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
|
|
366
370
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -13,6 +13,7 @@ var akEditorFullWidthLayoutWidth = 1800;
|
|
|
13
13
|
var akEditorBreakpointForSmallDevice = "1266px";
|
|
14
14
|
var akEditorGutterPaddingReduced = 24;
|
|
15
15
|
var akEditorFullPageNarrowBreakout = 600;
|
|
16
|
+
var akEditorUltraWideLayoutWidth = 4000;
|
|
16
17
|
|
|
17
18
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
18
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
@@ -23,6 +24,7 @@ export var baseStyles = css(_defineProperty({
|
|
|
23
24
|
'--ak-editor--full-width-layout-width': "".concat(akEditorFullWidthLayoutWidth, "px"),
|
|
24
25
|
/* calculate editor line length, 100cqw is the editor container width */
|
|
25
26
|
'--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--default-layout-width))',
|
|
27
|
+
'--ak-editor--max-width-layout-width': "".concat(akEditorUltraWideLayoutWidth, "px"),
|
|
26
28
|
'--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidthSmallViewport, "px"),
|
|
27
29
|
'--ak-editor--breakout-full-page-guttering-padding': 'calc(var(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding))',
|
|
28
30
|
'--ak-editor--breakout-fallback-width': 'calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding))',
|
|
@@ -53,6 +55,17 @@ export var baseStyles = css(_defineProperty({
|
|
|
53
55
|
}
|
|
54
56
|
}));
|
|
55
57
|
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
59
|
+
export var maxModeReizeFixStyles = css({
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
61
|
+
'.fabric-editor--max-width-mode': {
|
|
62
|
+
'--ak-editor--line-length': 'min(calc(100cqw - var(--ak-editor--large-gutter-padding) * 2), var(--ak-editor--max-width-layout-width))',
|
|
63
|
+
/* in max width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */
|
|
64
|
+
'--ak-editor--breakout-fallback-width': '100%',
|
|
65
|
+
'--ak-editor--breakout-min-width': '0px'
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
56
69
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
57
70
|
export var baseStylesMaxContainerWidthFixes = css({
|
|
58
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -171,4 +171,16 @@ export var syncBlockOverflowStylesNew = css({
|
|
|
171
171
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
172
172
|
export var syncBlockFirstNodeStyles = css(_defineProperty({}, ".ProseMirror > .fabric-editor-breakout-mark:first-child", _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), {
|
|
173
173
|
marginTop: 0
|
|
174
|
-
})));
|
|
174
|
+
})));
|
|
175
|
+
|
|
176
|
+
// combine this with the selection inside styles when cleaning up platform_synced_block_patch_5
|
|
177
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
178
|
+
export var syncBlockDraggingStyles = css({
|
|
179
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
180
|
+
'.ProseMirror': _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), _defineProperty({}, "&.".concat(SyncBlockStateCssClassName.draggingClassName), _defineProperty({
|
|
181
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
182
|
+
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
183
|
+
opacity: 1,
|
|
184
|
+
visibility: 'visible'
|
|
185
|
+
})))
|
|
186
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "216.13.1";
|
|
@@ -57,7 +57,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
57
57
|
copySyncedBlockReferenceToClipboard: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
58
58
|
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
59
59
|
};
|
|
60
|
-
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>];
|
|
60
|
+
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/content-format").ContentFormatPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>];
|
|
61
61
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
62
62
|
sharedState: import("packages/editor/editor-plugin-synced-block/dist/types/types").SyncedBlockSharedState | undefined;
|
|
63
63
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
|
|
@@ -169,7 +169,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
169
169
|
sharedState: import("@atlaskit/editor-plugins/collab-edit").CollabEditPluginSharedState;
|
|
170
170
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
171
171
|
actions: {
|
|
172
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
172
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
173
173
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
174
174
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
175
175
|
};
|
|
@@ -251,7 +251,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
251
251
|
sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
|
|
252
252
|
}, import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginConfig | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
253
253
|
actions: {
|
|
254
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
254
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
255
255
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
256
256
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
257
257
|
};
|
|
@@ -293,11 +293,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
293
293
|
insertExpandWithInputMethod: ReturnType<typeof import("packages/editor/editor-plugin-expand/dist/types/legacyExpand/commands").insertExpandWithInputMethod>;
|
|
294
294
|
};
|
|
295
295
|
commands: {
|
|
296
|
-
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
297
296
|
toggleExpandRange: (from?: number, to?: number, open?: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
297
|
+
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
298
298
|
};
|
|
299
299
|
dependencies: import("@atlaskit/editor-plugins/expand").ExpandPluginDependencies;
|
|
300
300
|
pluginConfiguration: import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined;
|
|
301
|
+
sharedState: import("packages/editor/editor-plugin-expand/dist/types/types").ExpandPluginSharedState;
|
|
301
302
|
}, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
302
303
|
actions: {
|
|
303
304
|
insertHorizontalRule: ReturnType<typeof import("packages/editor/editor-plugin-rule/dist/types/pm-plugins/commands").insertHorizontalRule>;
|
|
@@ -130,7 +130,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
130
130
|
copySyncedBlockReferenceToClipboard: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
131
131
|
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
132
132
|
};
|
|
133
|
-
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>];
|
|
133
|
+
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/content-format").ContentFormatPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>];
|
|
134
134
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
135
135
|
sharedState: import("packages/editor/editor-plugin-synced-block/dist/types/types").SyncedBlockSharedState | undefined;
|
|
136
136
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
|
|
@@ -242,7 +242,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
242
242
|
sharedState: import("@atlaskit/editor-plugins/collab-edit").CollabEditPluginSharedState;
|
|
243
243
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
244
244
|
actions: {
|
|
245
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
245
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
246
246
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
247
247
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
248
248
|
};
|
|
@@ -324,7 +324,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
324
324
|
sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
|
|
325
325
|
}, import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginConfig | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
326
326
|
actions: {
|
|
327
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
327
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
328
328
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
329
329
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
330
330
|
};
|
|
@@ -366,11 +366,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
366
366
|
insertExpandWithInputMethod: ReturnType<typeof import("packages/editor/editor-plugin-expand/dist/types/legacyExpand/commands").insertExpandWithInputMethod>;
|
|
367
367
|
};
|
|
368
368
|
commands: {
|
|
369
|
-
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
370
369
|
toggleExpandRange: (from?: number, to?: number, open?: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
370
|
+
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
371
371
|
};
|
|
372
372
|
dependencies: import("@atlaskit/editor-plugins/expand").ExpandPluginDependencies;
|
|
373
373
|
pluginConfiguration: import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined;
|
|
374
|
+
sharedState: import("packages/editor/editor-plugin-expand/dist/types/types").ExpandPluginSharedState;
|
|
374
375
|
}, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
375
376
|
actions: {
|
|
376
377
|
insertHorizontalRule: ReturnType<typeof import("packages/editor/editor-plugin-rule/dist/types/pm-plugins/commands").insertHorizontalRule>;
|
|
@@ -57,7 +57,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
57
57
|
copySyncedBlockReferenceToClipboard: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
58
58
|
insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
59
59
|
};
|
|
60
|
-
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>];
|
|
60
|
+
dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/content-format").ContentFormatPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>];
|
|
61
61
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
62
62
|
sharedState: import("packages/editor/editor-plugin-synced-block/dist/types/types").SyncedBlockSharedState | undefined;
|
|
63
63
|
}, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
|
|
@@ -169,7 +169,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
169
169
|
sharedState: import("@atlaskit/editor-plugins/collab-edit").CollabEditPluginSharedState;
|
|
170
170
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
171
171
|
actions: {
|
|
172
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
172
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
173
173
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
174
174
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
175
175
|
};
|
|
@@ -251,7 +251,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
251
251
|
sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
|
|
252
252
|
}, import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginConfig | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
253
253
|
actions: {
|
|
254
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
254
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
255
255
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
256
256
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
257
257
|
};
|
|
@@ -293,11 +293,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
293
293
|
insertExpandWithInputMethod: ReturnType<typeof import("packages/editor/editor-plugin-expand/dist/types/legacyExpand/commands").insertExpandWithInputMethod>;
|
|
294
294
|
};
|
|
295
295
|
commands: {
|
|
296
|
-
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
297
296
|
toggleExpandRange: (from?: number, to?: number, open?: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
297
|
+
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
298
298
|
};
|
|
299
299
|
dependencies: import("@atlaskit/editor-plugins/expand").ExpandPluginDependencies;
|
|
300
300
|
pluginConfiguration: import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined;
|
|
301
|
+
sharedState: import("packages/editor/editor-plugin-expand/dist/types/types").ExpandPluginSharedState;
|
|
301
302
|
}, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
302
303
|
actions: {
|
|
303
304
|
insertHorizontalRule: ReturnType<typeof import("packages/editor/editor-plugin-rule/dist/types/pm-plugins/commands").insertHorizontalRule>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type SerializedStyles } from '@emotion/react';
|
|
2
2
|
export declare const baseStyles: SerializedStyles;
|
|
3
|
+
export declare const maxModeReizeFixStyles: SerializedStyles;
|
|
3
4
|
export declare const baseStylesMaxContainerWidthFixes: SerializedStyles;
|
|
4
5
|
export declare const editorLargeGutterPuddingBaseStyles: SerializedStyles;
|
|
5
6
|
export declare const editorLargeGutterPuddingBaseStylesEditorControls: SerializedStyles;
|
|
@@ -3,3 +3,4 @@ export declare const syncBlockStyles: SerializedStyles;
|
|
|
3
3
|
export declare const syncBlockOverflowStyles: SerializedStyles;
|
|
4
4
|
export declare const syncBlockOverflowStylesNew: SerializedStyles;
|
|
5
5
|
export declare const syncBlockFirstNodeStyles: SerializedStyles;
|
|
6
|
+
export declare const syncBlockDraggingStyles: SerializedStyles;
|
|
@@ -164,7 +164,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
164
164
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>,
|
|
165
165
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>,
|
|
166
166
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>,
|
|
167
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin
|
|
167
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>,
|
|
168
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/content-format").ContentFormatPlugin>,
|
|
169
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>
|
|
168
170
|
];
|
|
169
171
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
170
172
|
sharedState: import("packages/editor/editor-plugin-synced-block/dist/types/types").SyncedBlockSharedState | undefined;
|
|
@@ -290,7 +292,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
290
292
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions> | undefined,
|
|
291
293
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
292
294
|
actions: {
|
|
293
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
295
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
294
296
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
295
297
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
296
298
|
};
|
|
@@ -383,7 +385,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
383
385
|
}, import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginConfig | undefined> | undefined,
|
|
384
386
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
385
387
|
actions: {
|
|
386
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
388
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
387
389
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
388
390
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
389
391
|
};
|
|
@@ -431,11 +433,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
431
433
|
insertExpandWithInputMethod: ReturnType<typeof import("packages/editor/editor-plugin-expand/dist/types/legacyExpand/commands").insertExpandWithInputMethod>;
|
|
432
434
|
};
|
|
433
435
|
commands: {
|
|
434
|
-
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
435
436
|
toggleExpandRange: (from?: number, to?: number, open?: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
437
|
+
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
436
438
|
};
|
|
437
439
|
dependencies: import("@atlaskit/editor-plugins/expand").ExpandPluginDependencies;
|
|
438
440
|
pluginConfiguration: import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined;
|
|
441
|
+
sharedState: import("packages/editor/editor-plugin-expand/dist/types/types").ExpandPluginSharedState;
|
|
439
442
|
}, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined,
|
|
440
443
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
441
444
|
actions: {
|
|
@@ -237,7 +237,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
237
237
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>,
|
|
238
238
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>,
|
|
239
239
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>,
|
|
240
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin
|
|
240
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>,
|
|
241
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/content-format").ContentFormatPlugin>,
|
|
242
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>
|
|
241
243
|
];
|
|
242
244
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
243
245
|
sharedState: import("packages/editor/editor-plugin-synced-block/dist/types/types").SyncedBlockSharedState | undefined;
|
|
@@ -363,7 +365,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
363
365
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions> | undefined,
|
|
364
366
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
365
367
|
actions: {
|
|
366
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
368
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
367
369
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
368
370
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
369
371
|
};
|
|
@@ -456,7 +458,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
456
458
|
}, import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginConfig | undefined> | undefined,
|
|
457
459
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
458
460
|
actions: {
|
|
459
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
461
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
460
462
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
461
463
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
462
464
|
};
|
|
@@ -504,11 +506,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
504
506
|
insertExpandWithInputMethod: ReturnType<typeof import("packages/editor/editor-plugin-expand/dist/types/legacyExpand/commands").insertExpandWithInputMethod>;
|
|
505
507
|
};
|
|
506
508
|
commands: {
|
|
507
|
-
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
508
509
|
toggleExpandRange: (from?: number, to?: number, open?: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
510
|
+
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
509
511
|
};
|
|
510
512
|
dependencies: import("@atlaskit/editor-plugins/expand").ExpandPluginDependencies;
|
|
511
513
|
pluginConfiguration: import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined;
|
|
514
|
+
sharedState: import("packages/editor/editor-plugin-expand/dist/types/types").ExpandPluginSharedState;
|
|
512
515
|
}, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined,
|
|
513
516
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
514
517
|
actions: {
|
|
@@ -164,7 +164,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
164
164
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>,
|
|
165
165
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>,
|
|
166
166
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>,
|
|
167
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin
|
|
167
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>,
|
|
168
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/content-format").ContentFormatPlugin>,
|
|
169
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>
|
|
168
170
|
];
|
|
169
171
|
pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
|
|
170
172
|
sharedState: import("packages/editor/editor-plugin-synced-block/dist/types/types").SyncedBlockSharedState | undefined;
|
|
@@ -290,7 +292,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
290
292
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions> | undefined,
|
|
291
293
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
292
294
|
actions: {
|
|
293
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
295
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
294
296
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
295
297
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
296
298
|
};
|
|
@@ -383,7 +385,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
383
385
|
}, import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginConfig | undefined> | undefined,
|
|
384
386
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
385
387
|
actions: {
|
|
386
|
-
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string) => void;
|
|
388
|
+
handleMediaNodeRenderError: (node: import("prosemirror-model").Node, reason: string, nestedUnder?: string) => void;
|
|
387
389
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
388
390
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
389
391
|
};
|
|
@@ -431,11 +433,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
431
433
|
insertExpandWithInputMethod: ReturnType<typeof import("packages/editor/editor-plugin-expand/dist/types/legacyExpand/commands").insertExpandWithInputMethod>;
|
|
432
434
|
};
|
|
433
435
|
commands: {
|
|
434
|
-
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
435
436
|
toggleExpandRange: (from?: number, to?: number, open?: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
437
|
+
toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
436
438
|
};
|
|
437
439
|
dependencies: import("@atlaskit/editor-plugins/expand").ExpandPluginDependencies;
|
|
438
440
|
pluginConfiguration: import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined;
|
|
441
|
+
sharedState: import("packages/editor/editor-plugin-expand/dist/types/types").ExpandPluginSharedState;
|
|
439
442
|
}, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined,
|
|
440
443
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
441
444
|
actions: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type SerializedStyles } from '@emotion/react';
|
|
2
2
|
export declare const baseStyles: SerializedStyles;
|
|
3
|
+
export declare const maxModeReizeFixStyles: SerializedStyles;
|
|
3
4
|
export declare const baseStylesMaxContainerWidthFixes: SerializedStyles;
|
|
4
5
|
export declare const editorLargeGutterPuddingBaseStyles: SerializedStyles;
|
|
5
6
|
export declare const editorLargeGutterPuddingBaseStylesEditorControls: SerializedStyles;
|
|
@@ -3,3 +3,4 @@ export declare const syncBlockStyles: SerializedStyles;
|
|
|
3
3
|
export declare const syncBlockOverflowStyles: SerializedStyles;
|
|
4
4
|
export declare const syncBlockOverflowStylesNew: SerializedStyles;
|
|
5
5
|
export declare const syncBlockFirstNodeStyles: SerializedStyles;
|
|
6
|
+
export declare const syncBlockDraggingStyles: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "216.13.
|
|
3
|
+
"version": "216.13.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
|
-
"@atlaskit/button": "^23.
|
|
47
|
+
"@atlaskit/button": "^23.10.0",
|
|
48
48
|
"@atlaskit/css": "^0.19.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
50
50
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
67
67
|
"@atlaskit/react-ufo": "^5.4.0",
|
|
68
68
|
"@atlaskit/task-decision": "^19.3.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^32.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^32.11.0",
|
|
70
70
|
"@atlaskit/tokens": "^11.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"uuid": "^3.1.0"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@atlaskit/editor-common": "^111.
|
|
86
|
+
"@atlaskit/editor-common": "^111.24.0",
|
|
87
87
|
"@atlaskit/link-provider": "^4.2.0",
|
|
88
88
|
"@atlaskit/media-core": "^37.0.0",
|
|
89
89
|
"react": "^18.2.0",
|
|
@@ -100,19 +100,19 @@
|
|
|
100
100
|
"@atlaskit/editor-plugin-annotation": "^7.1.0",
|
|
101
101
|
"@atlaskit/editor-plugin-card": "^12.3.0",
|
|
102
102
|
"@atlaskit/editor-plugin-list": "^9.0.0",
|
|
103
|
-
"@atlaskit/editor-plugin-paste": "^8.
|
|
103
|
+
"@atlaskit/editor-plugin-paste": "^8.4.0",
|
|
104
104
|
"@atlaskit/link-provider": "^4.2.0",
|
|
105
105
|
"@atlaskit/logo": "^19.10.0",
|
|
106
106
|
"@atlaskit/media-core": "^37.0.0",
|
|
107
107
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
108
108
|
"@atlaskit/media-test-helpers": "^40.0.0",
|
|
109
109
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
110
|
-
"@atlaskit/renderer": "^126.
|
|
110
|
+
"@atlaskit/renderer": "^126.14.0",
|
|
111
111
|
"@atlaskit/section-message": "^8.12.0",
|
|
112
112
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
113
113
|
"@atlaskit/toggle": "^15.2.0",
|
|
114
114
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
115
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
115
|
+
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
116
116
|
"@atlassian/adf-schema-json": "^1.33.0",
|
|
117
117
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
118
118
|
"@atlassian/search-provider": "^8.0.0",
|
|
@@ -331,11 +331,17 @@
|
|
|
331
331
|
"platform_editor_a11y_9262": {
|
|
332
332
|
"type": "boolean"
|
|
333
333
|
},
|
|
334
|
+
"platform_synced_block_patch_5": {
|
|
335
|
+
"type": "boolean"
|
|
336
|
+
},
|
|
334
337
|
"platform_synced_block_patch_3": {
|
|
335
338
|
"type": "boolean"
|
|
336
339
|
},
|
|
337
340
|
"platform_synced_block_patch_4": {
|
|
338
341
|
"type": "boolean"
|
|
342
|
+
},
|
|
343
|
+
"platform_editor_max_width_mode_resize_fix": {
|
|
344
|
+
"type": "boolean"
|
|
339
345
|
}
|
|
340
346
|
},
|
|
341
347
|
"stricter": {
|