@atlaskit/editor-core 207.20.0 → 207.21.0
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 +28 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/create-editor/ReactEditorView/useDispatchTransaction.js +4 -1
- package/dist/cjs/create-editor/ReactEditorView.js +2 -1
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +3 -1
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +15 -1
- package/dist/cjs/ui/EditorContentContainer/styles/telepointerStyles.js +28 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView/useDispatchTransaction.js +4 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -1
- package/dist/es2019/ui/ContentStyles/index.js +2 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +4 -2
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +14 -0
- package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +28 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView/useDispatchTransaction.js +4 -1
- package/dist/esm/create-editor/ReactEditorView.js +2 -1
- package/dist/esm/ui/ContentStyles/index.js +3 -3
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +4 -2
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +14 -0
- package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +28 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +4 -4
- package/dist/types/presets/universal.d.ts +4 -4
- package/dist/types/presets/useUniversalPreset.d.ts +4 -4
- package/dist/types/ts-hack.d.ts +1 -1
- package/dist/types/types/editor-onchange.d.ts +10 -0
- package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +4 -4
- package/dist/types-ts4.5/presets/universal.d.ts +4 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +4 -4
- package/dist/types-ts4.5/ts-hack.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-onchange.d.ts +10 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +1 -0
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 207.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#172346](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172346)
|
|
8
|
+
[`615322847dc3b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/615322847dc3b) -
|
|
9
|
+
Adds dirty change metadata to onchange handler.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#172526](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172526)
|
|
14
|
+
[`4db369dced9ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4db369dced9ec) -
|
|
15
|
+
trigger editor core bump to use newer editor common
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 207.20.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#171539](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171539)
|
|
23
|
+
[`823e66121b671`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/823e66121b671) -
|
|
24
|
+
[ux] Fixes height of the resize handle when advanced layouts feature is enabled.
|
|
25
|
+
- [#171777](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171777)
|
|
26
|
+
[`befd8b6d56e78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/befd8b6d56e78) -
|
|
27
|
+
[ux] Update selection marker fake-cursor to use an inline element when placed inside words, to
|
|
28
|
+
prevent erroneous text wrapping.
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 207.20.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useDispatchTransaction = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
9
|
+
var _collab = require("@atlaskit/editor-common/collab");
|
|
9
10
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
10
11
|
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
11
12
|
var _findChangedNodesFromTransaction = require("../../utils/findChangedNodesFromTransaction");
|
|
@@ -57,9 +58,11 @@ var useDispatchTransaction = exports.useDispatchTransaction = function useDispat
|
|
|
57
58
|
});
|
|
58
59
|
if (onChangeRef.current && transaction.docChanged) {
|
|
59
60
|
var source = transaction.getMeta('isRemote') ? 'remote' : 'local';
|
|
61
|
+
var isDirtyChange = (0, _collab.isDirtyTransaction)(transaction);
|
|
60
62
|
(0, _performanceMeasures.startMeasure)(_trackTransactions.EVENT_NAME_ON_CHANGE);
|
|
61
63
|
onChangeRef.current(view, {
|
|
62
|
-
source: source
|
|
64
|
+
source: source,
|
|
65
|
+
isDirtyChange: isDirtyChange
|
|
63
66
|
});
|
|
64
67
|
(0, _performanceMeasures.stopMeasure)(_trackTransactions.EVENT_NAME_ON_CHANGE);
|
|
65
68
|
}
|
|
@@ -258,7 +258,8 @@ function ReactEditorView(props) {
|
|
|
258
258
|
});
|
|
259
259
|
viewRef.current.updateState(newEditorState);
|
|
260
260
|
(_props$editorProps$on = (_props$editorProps2 = props.editorProps).onChange) === null || _props$editorProps$on === void 0 || _props$editorProps$on.call(_props$editorProps2, viewRef.current, {
|
|
261
|
-
source: 'local'
|
|
261
|
+
source: 'local',
|
|
262
|
+
isDirtyChange: false
|
|
262
263
|
});
|
|
263
264
|
}, [blur, createEditorState, props]);
|
|
264
265
|
|
|
@@ -152,7 +152,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
152
152
|
// Under editor experiment platform_editor_core_static_emotion
|
|
153
153
|
// If you are making changes to this file, please make sure to update in EditorContentContainer.tsx as well
|
|
154
154
|
var legacyContentStyles = function legacyContentStyles(props) {
|
|
155
|
-
return (0, _react2.css)(_templateObject9 || (_templateObject9 = (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: ", "px;\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.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\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\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\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn 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, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
|
|
155
|
+
return (0, _react2.css)(_templateObject9 || (_templateObject9 = (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: ", "px;\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.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\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\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\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn 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, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
|
|
156
156
|
theme: props.theme
|
|
157
157
|
}), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject0 || (_templateObject0 = (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)(_templateObject1 || (_templateObject1 = (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)", (0, _platformFeatureFlags.fg)('platform_editor_fix_floating_toolbar_focus') ? firstFloatingToolbarButtonStyles : null, _styles5.placeholderTextStyles, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : 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), (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
158
158
|
exposure: false
|
|
@@ -168,7 +168,7 @@ var legacyContentStyles = function legacyContentStyles(props) {
|
|
|
168
168
|
exposure: false
|
|
169
169
|
}) && (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithVisualRefresh, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
170
170
|
exposure: false
|
|
171
|
-
}) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithoutVisualRefresh, _status.statusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? (0, _status.vanillaStatusStyles)() : null, (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? _date.dateVanillaStyles : null, _date.dateStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (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);
|
|
171
|
+
}) && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.vanillaTaskDecisionIconWithoutVisualRefresh, _status.statusStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? (0, _status.vanillaStatusStyles)() : null, (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? (0, _styles.getSmartCardSharedStyles)() : _styles.smartCardSharedStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true) ? _date.dateVanillaStyles : null, _date.dateStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (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);
|
|
172
172
|
};
|
|
173
173
|
var listLayoutShiftFix = (0, _react2.css)({
|
|
174
174
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -278,7 +278,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
278
278
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
279
279
|
_browser.browser.safari && _list.listsStylesSafariFix, (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) &&
|
|
280
280
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
281
|
-
_resizerStyles.pragmaticResizerStyles, (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') &&
|
|
281
|
+
_resizerStyles.pragmaticResizerStyles, (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') &&
|
|
282
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
283
|
+
_resizerStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') &&
|
|
282
284
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
283
285
|
_resizerStyles.pragmaticResizerStylesForTooltip,
|
|
284
286
|
// 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.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.pragmaticResizerStylesForTooltip = exports.pragmaticResizerStyles = exports.handleWrapperClass = void 0;
|
|
7
|
+
exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.pragmaticStylesLayoutFirstNodeResizeHandleFix = exports.pragmaticResizerStylesForTooltip = exports.pragmaticResizerStyles = exports.handleWrapperClass = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
// eslint-disable-line
|
|
@@ -187,6 +187,20 @@ var pragmaticResizerStylesForTooltip = exports.pragmaticResizerStylesForTooltip
|
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
191
|
+
var pragmaticStylesLayoutFirstNodeResizeHandleFix = exports.pragmaticStylesLayoutFirstNodeResizeHandleFix = (0, _react.css)({
|
|
192
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
193
|
+
'.fabric-editor-breakout-mark': {
|
|
194
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
195
|
+
'&:has([data-prosemirror-node-name="layoutSection"].first-node-in-document)': {
|
|
196
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
197
|
+
'> .pm-breakout-resize-handle-container': {
|
|
198
|
+
height: 'calc(100% - 8px)'
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
|
|
190
204
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
191
205
|
var pragmaticResizerStyles = exports.pragmaticResizerStyles = (0, _react.css)({
|
|
192
206
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -33,6 +33,26 @@ var pulseOut = (0, _react.keyframes)({
|
|
|
33
33
|
opacity: 0
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
+
var pulseInDuringTr = (0, _react.keyframes)({
|
|
37
|
+
'0%, 95%': {
|
|
38
|
+
transform: 'scaleX(1)',
|
|
39
|
+
opacity: 1
|
|
40
|
+
},
|
|
41
|
+
'100%': {
|
|
42
|
+
transform: 'scaleX(0)',
|
|
43
|
+
opacity: 0
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
var pulseOutDuringTr = (0, _react.keyframes)({
|
|
47
|
+
'100%': {
|
|
48
|
+
transform: 'scaleX(1)',
|
|
49
|
+
opacity: 1
|
|
50
|
+
},
|
|
51
|
+
'0%, 90%': {
|
|
52
|
+
transform: 'scaleX(0)',
|
|
53
|
+
opacity: 0
|
|
54
|
+
}
|
|
55
|
+
});
|
|
36
56
|
var telepointerColorAndCommonStyle = exports.telepointerColorAndCommonStyle = (0, _react.css)({
|
|
37
57
|
'.ProseMirror .telepointer': {
|
|
38
58
|
position: 'relative',
|
|
@@ -174,6 +194,14 @@ var telepointerStyle = exports.telepointerStyle = (0, _react.css)({
|
|
|
174
194
|
animation: "".concat(pulseIn, " 2s ease-in-out")
|
|
175
195
|
}
|
|
176
196
|
},
|
|
197
|
+
'&.telepointer-pulse-during-tr': {
|
|
198
|
+
'.telepointer-initial': {
|
|
199
|
+
animation: "".concat(pulseOutDuringTr, " 7500ms ease-in-out")
|
|
200
|
+
},
|
|
201
|
+
'.telepointer-fullname': {
|
|
202
|
+
animation: "".concat(pulseInDuringTr, " 7500ms ease-in-out")
|
|
203
|
+
}
|
|
204
|
+
},
|
|
177
205
|
'&:hover': {
|
|
178
206
|
'.telepointer-initial': {
|
|
179
207
|
opacity: 0,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef } from 'react';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { isDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
3
4
|
import { getDocStructure } from '@atlaskit/editor-common/core-utils';
|
|
4
5
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
5
6
|
import { findChangedNodesFromTransaction } from '../../utils/findChangedNodesFromTransaction';
|
|
@@ -53,9 +54,11 @@ export const useDispatchTransaction = ({
|
|
|
53
54
|
});
|
|
54
55
|
if (onChangeRef.current && transaction.docChanged) {
|
|
55
56
|
const source = transaction.getMeta('isRemote') ? 'remote' : 'local';
|
|
57
|
+
const isDirtyChange = isDirtyTransaction(transaction);
|
|
56
58
|
startMeasure(EVENT_NAME_ON_CHANGE);
|
|
57
59
|
onChangeRef.current(view, {
|
|
58
|
-
source
|
|
60
|
+
source,
|
|
61
|
+
isDirtyChange
|
|
59
62
|
});
|
|
60
63
|
stopMeasure(EVENT_NAME_ON_CHANGE);
|
|
61
64
|
}
|
|
@@ -233,7 +233,8 @@ export function ReactEditorView(props) {
|
|
|
233
233
|
});
|
|
234
234
|
viewRef.current.updateState(newEditorState);
|
|
235
235
|
(_props$editorProps$on = (_props$editorProps = props.editorProps).onChange) === null || _props$editorProps$on === void 0 ? void 0 : _props$editorProps$on.call(_props$editorProps, viewRef.current, {
|
|
236
|
-
source: 'local'
|
|
236
|
+
source: 'local',
|
|
237
|
+
isDirtyChange: false
|
|
237
238
|
});
|
|
238
239
|
}, [blur, createEditorState, props]);
|
|
239
240
|
|
|
@@ -17,7 +17,7 @@ import { EmojiSharedCssClassName, defaultEmojiHeight } from '@atlaskit/editor-co
|
|
|
17
17
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
18
18
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
19
19
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
20
|
-
import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticResizerStylesForTooltip, ruleSharedStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
20
|
+
import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, ruleSharedStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
21
21
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
22
22
|
import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
23
23
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
@@ -443,6 +443,7 @@ const legacyContentStyles = props => css`
|
|
|
443
443
|
${unsupportedStyles}
|
|
444
444
|
${resizerStyles}
|
|
445
445
|
${pragmaticResizerStyles()}
|
|
446
|
+
${pragmaticStylesLayoutFirstNodeResizeHandleFix()}
|
|
446
447
|
${pragmaticResizerStylesForTooltip()}
|
|
447
448
|
${aiPanelStyles(props.colorMode)}
|
|
448
449
|
${firstBlockNodeStylesNew}
|
|
@@ -45,7 +45,7 @@ import { mentionsStyles, vanillaMentionsStyles, vanillaMentionsSelectionStyles }
|
|
|
45
45
|
import { panelStyles, panelStylesMixin_fg_platform_editor_add_border_for_nested_panel, panelStylesMixin_fg_platform_editor_lcm_nested_panel_icon_fix, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelStylesMixin_without_fg_platform_editor_lcm_nested_panel_icon_fix, panelViewStyles } from './styles/panelStyles';
|
|
46
46
|
import { paragraphStylesOld, paragraphStylesUGCModernized, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
|
|
47
47
|
import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderWrapStyles } from './styles/placeholderStyles';
|
|
48
|
-
import { resizerStyles, pragmaticResizerStyles, pragmaticResizerStylesForTooltip } from './styles/resizerStyles';
|
|
48
|
+
import { resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip } from './styles/resizerStyles';
|
|
49
49
|
import { ruleStyles } from './styles/rule';
|
|
50
50
|
import { scrollbarStyles } from './styles/scrollbarStyles';
|
|
51
51
|
import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
|
|
@@ -273,7 +273,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
273
273
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
274
274
|
browser.safari && listsStylesSafariFix, editorExperiment('platform_editor_breakout_resizing', true) &&
|
|
275
275
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
276
|
-
pragmaticResizerStyles, editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
|
|
276
|
+
pragmaticResizerStyles, editorExperiment('advanced_layouts', true) && editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
|
|
277
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
278
|
+
pragmaticStylesLayoutFirstNodeResizeHandleFix, editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
|
|
277
279
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
278
280
|
pragmaticResizerStylesForTooltip,
|
|
279
281
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -232,6 +232,20 @@ export const pragmaticResizerStylesForTooltip = css({
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
236
|
+
export const pragmaticStylesLayoutFirstNodeResizeHandleFix = css({
|
|
237
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
238
|
+
'.fabric-editor-breakout-mark': {
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
240
|
+
'&:has([data-prosemirror-node-name="layoutSection"].first-node-in-document)': {
|
|
241
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
242
|
+
'> .pm-breakout-resize-handle-container': {
|
|
243
|
+
height: 'calc(100% - 8px)'
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
|
|
235
249
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
236
250
|
export const pragmaticResizerStyles = css({
|
|
237
251
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -26,6 +26,26 @@ const pulseOut = keyframes({
|
|
|
26
26
|
opacity: 0
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
+
const pulseInDuringTr = keyframes({
|
|
30
|
+
'0%, 95%': {
|
|
31
|
+
transform: 'scaleX(1)',
|
|
32
|
+
opacity: 1
|
|
33
|
+
},
|
|
34
|
+
'100%': {
|
|
35
|
+
transform: 'scaleX(0)',
|
|
36
|
+
opacity: 0
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const pulseOutDuringTr = keyframes({
|
|
40
|
+
'100%': {
|
|
41
|
+
transform: 'scaleX(1)',
|
|
42
|
+
opacity: 1
|
|
43
|
+
},
|
|
44
|
+
'0%, 90%': {
|
|
45
|
+
transform: 'scaleX(0)',
|
|
46
|
+
opacity: 0
|
|
47
|
+
}
|
|
48
|
+
});
|
|
29
49
|
export const telepointerColorAndCommonStyle = css({
|
|
30
50
|
'.ProseMirror .telepointer': {
|
|
31
51
|
position: 'relative',
|
|
@@ -167,6 +187,14 @@ export const telepointerStyle = css({
|
|
|
167
187
|
animation: `${pulseIn} 2s ease-in-out`
|
|
168
188
|
}
|
|
169
189
|
},
|
|
190
|
+
'&.telepointer-pulse-during-tr': {
|
|
191
|
+
'.telepointer-initial': {
|
|
192
|
+
animation: `${pulseOutDuringTr} 7500ms ease-in-out`
|
|
193
|
+
},
|
|
194
|
+
'.telepointer-fullname': {
|
|
195
|
+
animation: `${pulseInDuringTr} 7500ms ease-in-out`
|
|
196
|
+
}
|
|
197
|
+
},
|
|
170
198
|
'&:hover': {
|
|
171
199
|
'.telepointer-initial': {
|
|
172
200
|
opacity: 0,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "207.20.
|
|
2
|
+
export const version = "207.20.1";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef } from 'react';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { isDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
3
4
|
import { getDocStructure } from '@atlaskit/editor-common/core-utils';
|
|
4
5
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
5
6
|
import { findChangedNodesFromTransaction } from '../../utils/findChangedNodesFromTransaction';
|
|
@@ -51,9 +52,11 @@ export var useDispatchTransaction = function useDispatchTransaction(_ref) {
|
|
|
51
52
|
});
|
|
52
53
|
if (onChangeRef.current && transaction.docChanged) {
|
|
53
54
|
var source = transaction.getMeta('isRemote') ? 'remote' : 'local';
|
|
55
|
+
var isDirtyChange = isDirtyTransaction(transaction);
|
|
54
56
|
startMeasure(EVENT_NAME_ON_CHANGE);
|
|
55
57
|
onChangeRef.current(view, {
|
|
56
|
-
source: source
|
|
58
|
+
source: source,
|
|
59
|
+
isDirtyChange: isDirtyChange
|
|
57
60
|
});
|
|
58
61
|
stopMeasure(EVENT_NAME_ON_CHANGE);
|
|
59
62
|
}
|
|
@@ -248,7 +248,8 @@ export function ReactEditorView(props) {
|
|
|
248
248
|
});
|
|
249
249
|
viewRef.current.updateState(newEditorState);
|
|
250
250
|
(_props$editorProps$on = (_props$editorProps2 = props.editorProps).onChange) === null || _props$editorProps$on === void 0 || _props$editorProps$on.call(_props$editorProps2, viewRef.current, {
|
|
251
|
-
source: 'local'
|
|
251
|
+
source: 'local',
|
|
252
|
+
isDirtyChange: false
|
|
252
253
|
});
|
|
253
254
|
}, [blur, createEditorState, props]);
|
|
254
255
|
|
|
@@ -19,7 +19,7 @@ import { EmojiSharedCssClassName, defaultEmojiHeight } from '@atlaskit/editor-co
|
|
|
19
19
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
20
20
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
21
21
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
22
|
-
import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticResizerStylesForTooltip, ruleSharedStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
22
|
+
import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, ruleSharedStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
23
23
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
24
24
|
import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
25
25
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
@@ -145,7 +145,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
145
145
|
// Under editor experiment platform_editor_core_static_emotion
|
|
146
146
|
// If you are making changes to this file, please make sure to update in EditorContentContainer.tsx as well
|
|
147
147
|
var legacyContentStyles = function legacyContentStyles(props) {
|
|
148
|
-
return css(_templateObject9 || (_templateObject9 = _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: ", "px;\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.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\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\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\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn 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, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
|
|
148
|
+
return css(_templateObject9 || (_templateObject9 = _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: ", "px;\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.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\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n /* Switch between the two icons based on the visual refresh feature gate */\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\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\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn 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, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
|
|
149
149
|
theme: props.theme
|
|
150
150
|
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject0 || (_templateObject0 = _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(_templateObject1 || (_templateObject1 = _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)", fg('platform_editor_fix_floating_toolbar_focus') ? firstFloatingToolbarButtonStyles : null, placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
151
151
|
exposure: false
|
|
@@ -161,7 +161,7 @@ var legacyContentStyles = function legacyContentStyles(props) {
|
|
|
161
161
|
exposure: false
|
|
162
162
|
}) && fg('platform-visual-refresh-icons') && vanillaDecisionIconWithVisualRefresh, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
163
163
|
exposure: false
|
|
164
|
-
}) && !fg('platform-visual-refresh-icons') && vanillaDecisionIconWithoutVisualRefresh, statusStyles, editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles() : null, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, pragmaticResizerStyles(), pragmaticResizerStylesForTooltip(), aiPanelStyles(props.colorMode), firstBlockNodeStylesNew, MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject10 || (_templateObject10 = _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);
|
|
164
|
+
}) && !fg('platform-visual-refresh-icons') && vanillaDecisionIconWithoutVisualRefresh, statusStyles, editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles() : null, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, pragmaticResizerStyles(), pragmaticStylesLayoutFirstNodeResizeHandleFix(), pragmaticResizerStylesForTooltip(), aiPanelStyles(props.colorMode), firstBlockNodeStylesNew, MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject10 || (_templateObject10 = _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);
|
|
165
165
|
};
|
|
166
166
|
var listLayoutShiftFix = css({
|
|
167
167
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -45,7 +45,7 @@ import { mentionsStyles, vanillaMentionsStyles, vanillaMentionsSelectionStyles }
|
|
|
45
45
|
import { panelStyles, panelStylesMixin_fg_platform_editor_add_border_for_nested_panel, panelStylesMixin_fg_platform_editor_lcm_nested_panel_icon_fix, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelStylesMixin_without_fg_platform_editor_lcm_nested_panel_icon_fix, panelViewStyles } from './styles/panelStyles';
|
|
46
46
|
import { paragraphStylesOld, paragraphStylesUGCModernized, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
|
|
47
47
|
import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderWrapStyles } from './styles/placeholderStyles';
|
|
48
|
-
import { resizerStyles, pragmaticResizerStyles, pragmaticResizerStylesForTooltip } from './styles/resizerStyles';
|
|
48
|
+
import { resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip } from './styles/resizerStyles';
|
|
49
49
|
import { ruleStyles } from './styles/rule';
|
|
50
50
|
import { scrollbarStyles } from './styles/scrollbarStyles';
|
|
51
51
|
import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
|
|
@@ -270,7 +270,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
270
270
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
271
271
|
browser.safari && listsStylesSafariFix, editorExperiment('platform_editor_breakout_resizing', true) &&
|
|
272
272
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
273
|
-
pragmaticResizerStyles, editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
|
|
273
|
+
pragmaticResizerStyles, editorExperiment('advanced_layouts', true) && editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
|
|
274
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
275
|
+
pragmaticStylesLayoutFirstNodeResizeHandleFix, editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') &&
|
|
274
276
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
275
277
|
pragmaticResizerStylesForTooltip,
|
|
276
278
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -179,6 +179,20 @@ export var pragmaticResizerStylesForTooltip = css({
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
183
|
+
export var pragmaticStylesLayoutFirstNodeResizeHandleFix = css({
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
185
|
+
'.fabric-editor-breakout-mark': {
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
187
|
+
'&:has([data-prosemirror-node-name="layoutSection"].first-node-in-document)': {
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
189
|
+
'> .pm-breakout-resize-handle-container': {
|
|
190
|
+
height: 'calc(100% - 8px)'
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
|
|
182
196
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
183
197
|
export var pragmaticResizerStyles = css({
|
|
184
198
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -26,6 +26,26 @@ var pulseOut = keyframes({
|
|
|
26
26
|
opacity: 0
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
+
var pulseInDuringTr = keyframes({
|
|
30
|
+
'0%, 95%': {
|
|
31
|
+
transform: 'scaleX(1)',
|
|
32
|
+
opacity: 1
|
|
33
|
+
},
|
|
34
|
+
'100%': {
|
|
35
|
+
transform: 'scaleX(0)',
|
|
36
|
+
opacity: 0
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var pulseOutDuringTr = keyframes({
|
|
40
|
+
'100%': {
|
|
41
|
+
transform: 'scaleX(1)',
|
|
42
|
+
opacity: 1
|
|
43
|
+
},
|
|
44
|
+
'0%, 90%': {
|
|
45
|
+
transform: 'scaleX(0)',
|
|
46
|
+
opacity: 0
|
|
47
|
+
}
|
|
48
|
+
});
|
|
29
49
|
export var telepointerColorAndCommonStyle = css({
|
|
30
50
|
'.ProseMirror .telepointer': {
|
|
31
51
|
position: 'relative',
|
|
@@ -167,6 +187,14 @@ export var telepointerStyle = css({
|
|
|
167
187
|
animation: "".concat(pulseIn, " 2s ease-in-out")
|
|
168
188
|
}
|
|
169
189
|
},
|
|
190
|
+
'&.telepointer-pulse-during-tr': {
|
|
191
|
+
'.telepointer-initial': {
|
|
192
|
+
animation: "".concat(pulseOutDuringTr, " 7500ms ease-in-out")
|
|
193
|
+
},
|
|
194
|
+
'.telepointer-fullname': {
|
|
195
|
+
animation: "".concat(pulseInDuringTr, " 7500ms ease-in-out")
|
|
196
|
+
}
|
|
197
|
+
},
|
|
170
198
|
'&:hover': {
|
|
171
199
|
'.telepointer-initial': {
|
|
172
200
|
opacity: 0,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "207.20.
|
|
2
|
+
export var version = "207.20.1";
|
|
@@ -347,8 +347,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
347
347
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
348
348
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
349
349
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
350
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
351
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
350
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
351
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
352
352
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
353
353
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
354
354
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
@@ -422,8 +422,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
422
422
|
dependencies: import("packages/editor/editor-plugin-submit-editor/dist/types/submitEditorPluginType").SubmitEditorPluginDependencies;
|
|
423
423
|
}, import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
424
424
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
425
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
426
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
425
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
426
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
|
|
427
427
|
pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
|
|
428
428
|
commands: {
|
|
429
429
|
setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -404,8 +404,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
404
404
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
405
405
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
406
406
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
407
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
408
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
407
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
408
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
409
409
|
pluginConfiguration: FeatureFlags;
|
|
410
410
|
sharedState: FeatureFlags;
|
|
411
411
|
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
@@ -479,8 +479,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
479
479
|
dependencies: import("packages/editor/editor-plugin-submit-editor/dist/types/submitEditorPluginType").SubmitEditorPluginDependencies;
|
|
480
480
|
}, import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
481
481
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
482
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
483
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
482
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
483
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
|
|
484
484
|
pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
|
|
485
485
|
commands: {
|
|
486
486
|
setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -347,8 +347,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
347
347
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
348
348
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
349
349
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
350
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
351
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
350
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
351
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
352
352
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
353
353
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
354
354
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
@@ -422,8 +422,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
422
422
|
dependencies: import("packages/editor/editor-plugin-submit-editor/dist/types/submitEditorPluginType").SubmitEditorPluginDependencies;
|
|
423
423
|
}, import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
424
424
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
425
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
426
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
425
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
426
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
|
|
427
427
|
pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
|
|
428
428
|
commands: {
|
|
429
429
|
setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
package/dist/types/ts-hack.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file is a temporary hack to allow the editor to have references to the QuickInsertPlugin type.
|
|
3
3
|
*
|
|
4
4
|
* There is bug in tsconfig references generation, where it only adds references to the immediate dependencies of the project.
|
|
5
|
-
* and not transitive dependencies. Typescript
|
|
5
|
+
* and not transitive dependencies. Typescript doesn't look into transitive dependencies tp update cached declarations of a package.
|
|
6
6
|
*
|
|
7
7
|
* Typecheck team is working on a fix for this issue.
|
|
8
8
|
**/
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
export type EditorOnChangeHandler = (editorView: EditorView, meta: {
|
|
3
3
|
source: 'local' | 'remote';
|
|
4
|
+
/**
|
|
5
|
+
* Indicates whether or not the change may be unnecessary to listen to (dirty
|
|
6
|
+
* changes can generally be ignored).
|
|
7
|
+
*
|
|
8
|
+
* This might be changes to media attributes for example when it gets updated
|
|
9
|
+
* due to initial setup.
|
|
10
|
+
*
|
|
11
|
+
* We still fire these events however to avoid a breaking change.
|
|
12
|
+
*/
|
|
13
|
+
isDirtyChange: boolean;
|
|
4
14
|
}) => void;
|
|
@@ -9,4 +9,5 @@ export declare const resizerHandleThumbWidth = 3;
|
|
|
9
9
|
export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
10
10
|
export declare const resizerStyles: import("@emotion/react").SerializedStyles;
|
|
11
11
|
export declare const pragmaticResizerStylesForTooltip: import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const pragmaticStylesLayoutFirstNodeResizeHandleFix: import("@emotion/react").SerializedStyles;
|
|
12
13
|
export declare const pragmaticResizerStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -491,8 +491,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
491
491
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
492
492
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
493
493
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
494
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
495
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
494
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
495
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>>,
|
|
496
496
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
497
497
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
498
498
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -584,8 +584,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
584
584
|
}, import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined>,
|
|
585
585
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
586
586
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
587
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
588
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
587
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
588
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>,
|
|
589
589
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>,
|
|
590
590
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
|
|
591
591
|
pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
|
|
@@ -548,8 +548,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
548
548
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
549
549
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
550
550
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
551
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
552
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
551
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
552
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>>,
|
|
553
553
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
554
554
|
pluginConfiguration: FeatureFlags;
|
|
555
555
|
sharedState: FeatureFlags;
|
|
@@ -641,8 +641,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
641
641
|
}, import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined>,
|
|
642
642
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
643
643
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
644
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
645
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
644
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
645
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>,
|
|
646
646
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>,
|
|
647
647
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
|
|
648
648
|
pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
|
|
@@ -491,8 +491,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
491
491
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
492
492
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
493
493
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
494
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
495
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
494
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
495
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>>,
|
|
496
496
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
497
497
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
498
498
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -584,8 +584,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
584
584
|
}, import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined>,
|
|
585
585
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
586
586
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
587
|
-
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
588
|
-
}, import("packages/editor/editor-plugin-editor-disabled/dist/types
|
|
587
|
+
pluginConfiguration: import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined;
|
|
588
|
+
}, import("packages/editor/editor-plugin-editor-disabled/dist/types").EditorDisabledPluginOptions | undefined>,
|
|
589
589
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>,
|
|
590
590
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
|
|
591
591
|
pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file is a temporary hack to allow the editor to have references to the QuickInsertPlugin type.
|
|
3
3
|
*
|
|
4
4
|
* There is bug in tsconfig references generation, where it only adds references to the immediate dependencies of the project.
|
|
5
|
-
* and not transitive dependencies. Typescript
|
|
5
|
+
* and not transitive dependencies. Typescript doesn't look into transitive dependencies tp update cached declarations of a package.
|
|
6
6
|
*
|
|
7
7
|
* Typecheck team is working on a fix for this issue.
|
|
8
8
|
**/
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
export type EditorOnChangeHandler = (editorView: EditorView, meta: {
|
|
3
3
|
source: 'local' | 'remote';
|
|
4
|
+
/**
|
|
5
|
+
* Indicates whether or not the change may be unnecessary to listen to (dirty
|
|
6
|
+
* changes can generally be ignored).
|
|
7
|
+
*
|
|
8
|
+
* This might be changes to media attributes for example when it gets updated
|
|
9
|
+
* due to initial setup.
|
|
10
|
+
*
|
|
11
|
+
* We still fire these events however to avoid a breaking change.
|
|
12
|
+
*/
|
|
13
|
+
isDirtyChange: boolean;
|
|
4
14
|
}) => void;
|
|
@@ -9,4 +9,5 @@ export declare const resizerHandleThumbWidth = 3;
|
|
|
9
9
|
export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
10
10
|
export declare const resizerStyles: import("@emotion/react").SerializedStyles;
|
|
11
11
|
export declare const pragmaticResizerStylesForTooltip: import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const pragmaticStylesLayoutFirstNodeResizeHandleFix: import("@emotion/react").SerializedStyles;
|
|
12
13
|
export declare const pragmaticResizerStyles: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "207.
|
|
3
|
+
"version": "207.21.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^23.2.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^106.
|
|
49
|
+
"@atlaskit/editor-common": "^106.9.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
52
|
-
"@atlaskit/editor-plugin-quick-insert": "^2.
|
|
52
|
+
"@atlaskit/editor-plugin-quick-insert": "^2.6.0",
|
|
53
53
|
"@atlaskit/editor-plugin-user-preferences": "^0.2.0",
|
|
54
54
|
"@atlaskit/editor-plugins": "^9.1.0",
|
|
55
55
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
56
56
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
57
57
|
"@atlaskit/emoji": "^69.3.0",
|
|
58
|
-
"@atlaskit/icon": "^
|
|
58
|
+
"@atlaskit/icon": "^27.0.0",
|
|
59
59
|
"@atlaskit/link": "^3.2.0",
|
|
60
60
|
"@atlaskit/media-card": "^79.3.0",
|
|
61
61
|
"@atlaskit/mention": "^24.2.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
64
64
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
65
65
|
"@atlaskit/task-decision": "^19.2.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^7.
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^7.1.0",
|
|
67
67
|
"@atlaskit/tokens": "^5.2.0",
|
|
68
68
|
"@atlaskit/tooltip": "^20.3.0",
|
|
69
69
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
"@atlaskit/editor-plugin-list": "^4.2.0",
|
|
98
98
|
"@atlaskit/editor-plugin-paste": "^3.3.0",
|
|
99
99
|
"@atlaskit/link-provider": "^3.3.0",
|
|
100
|
-
"@atlaskit/logo": "^19.
|
|
100
|
+
"@atlaskit/logo": "^19.1.0",
|
|
101
101
|
"@atlaskit/media-core": "^36.1.0",
|
|
102
102
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
103
103
|
"@atlaskit/media-test-helpers": "^36.1.0",
|
|
104
104
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
105
105
|
"@atlaskit/primitives": "^14.8.0",
|
|
106
|
-
"@atlaskit/renderer": "^118.
|
|
106
|
+
"@atlaskit/renderer": "^118.7.0",
|
|
107
107
|
"@atlaskit/section-message": "^8.2.0",
|
|
108
108
|
"@atlaskit/smart-card": "^38.9.0",
|
|
109
109
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
@@ -436,9 +436,6 @@
|
|
|
436
436
|
"type": "boolean",
|
|
437
437
|
"referenceOnly": true
|
|
438
438
|
},
|
|
439
|
-
"platform_editor_lcm_editor_controls_toolbar_fix": {
|
|
440
|
-
"type": "boolean"
|
|
441
|
-
},
|
|
442
439
|
"platform_editor_scroll_table_flickering_fix": {
|
|
443
440
|
"type": "boolean",
|
|
444
441
|
"referenceOnly": true
|
|
@@ -672,6 +669,10 @@
|
|
|
672
669
|
"platform_editor_lcm_nested_panel_icon_fix": {
|
|
673
670
|
"type": "boolean",
|
|
674
671
|
"referenceOnly": true
|
|
672
|
+
},
|
|
673
|
+
"platform_editor_inline_selection_marker_cursor": {
|
|
674
|
+
"type": "boolean",
|
|
675
|
+
"referenceOnly": true
|
|
675
676
|
}
|
|
676
677
|
},
|
|
677
678
|
"stricter": {
|