@atlaskit/editor-common 111.8.10 → 111.8.12
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 +30 -0
- package/dist/cjs/keymaps/index.js +4 -3
- package/dist/cjs/mark/text-formatting.js +1 -5
- package/dist/cjs/messages/syncBlock.js +17 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/core-plugin/index.js +1 -3
- package/dist/cjs/preset/core-plugin/requestDocument.js +12 -17
- package/dist/cjs/styles/index.js +0 -6
- package/dist/cjs/styles/shared/resizer.js +2 -10
- package/dist/cjs/toolbar/EditorToolbarUIProvider.js +6 -18
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -9
- package/dist/cjs/utils/calculate-toolbar-position.js +2 -3
- package/dist/cjs/utils/document.js +3 -9
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/mark/text-formatting.js +1 -5
- package/dist/es2019/messages/syncBlock.js +17 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/core-plugin/index.js +1 -3
- package/dist/es2019/preset/core-plugin/requestDocument.js +7 -12
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/resizer.js +1 -202
- package/dist/es2019/toolbar/EditorToolbarUIProvider.js +6 -16
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -9
- package/dist/es2019/utils/calculate-toolbar-position.js +2 -3
- package/dist/es2019/utils/document.js +3 -9
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/mark/text-formatting.js +1 -5
- package/dist/esm/messages/syncBlock.js +17 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/core-plugin/index.js +1 -3
- package/dist/esm/preset/core-plugin/requestDocument.js +12 -17
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/resizer.js +1 -9
- package/dist/esm/toolbar/EditorToolbarUIProvider.js +6 -18
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -9
- package/dist/esm/utils/calculate-toolbar-position.js +2 -3
- package/dist/esm/utils/document.js +3 -9
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/messages/syncBlock.d.ts +16 -1
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/resizer.d.ts +0 -2
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/syncBlock.d.ts +16 -1
- package/dist/types-ts4.5/styles/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -2
- package/package.json +5 -11
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import clamp from 'lodash/clamp';
|
|
2
2
|
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { isEmptyParagraph } from './editor-core-utils';
|
|
5
4
|
export var getStepRange = function getStepRange(transaction) {
|
|
6
5
|
var from = -1;
|
|
@@ -9,14 +8,9 @@ export var getStepRange = function getStepRange(transaction) {
|
|
|
9
8
|
stepMap.forEach(function (oldStart, oldEnd) {
|
|
10
9
|
var newStart = transaction.mapping.slice(index).map(oldStart, -1);
|
|
11
10
|
var newEnd = transaction.mapping.slice(index).map(oldEnd);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
to = clamp(newEnd > to || to === -1 ? newEnd : to, 0, docSize);
|
|
16
|
-
} else {
|
|
17
|
-
from = newStart < from || from === -1 ? newStart : from;
|
|
18
|
-
to = newEnd > to || to === -1 ? newEnd : to;
|
|
19
|
-
}
|
|
11
|
+
var docSize = transaction.doc.content.size;
|
|
12
|
+
from = clamp(newStart < from || from === -1 ? newStart : from, 0, docSize);
|
|
13
|
+
to = clamp(newEnd > to || to === -1 ? newEnd : to, 0, docSize);
|
|
20
14
|
});
|
|
21
15
|
});
|
|
22
16
|
if (from !== -1) {
|
|
@@ -48,6 +48,7 @@ export declare const redo: Keymap;
|
|
|
48
48
|
export declare const openHelp: Keymap;
|
|
49
49
|
export declare const addLink: Keymap;
|
|
50
50
|
export declare const addInlineComment: Keymap;
|
|
51
|
+
export declare const copyLinkToBlock: Keymap;
|
|
51
52
|
export declare const submit: Keymap;
|
|
52
53
|
export declare const enter: Keymap;
|
|
53
54
|
export declare const shiftEnter: Keymap;
|
|
@@ -79,6 +79,11 @@ export declare const syncBlockMessages: {
|
|
|
79
79
|
defaultMessage: string;
|
|
80
80
|
description: string;
|
|
81
81
|
};
|
|
82
|
+
referenceSyncBlockLastEdited: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
82
87
|
taskInDestinationSyncedBlockTooltip: {
|
|
83
88
|
id: string;
|
|
84
89
|
defaultMessage: string;
|
|
@@ -234,7 +239,12 @@ export declare const syncBlockMessages: {
|
|
|
234
239
|
defaultMessage: string;
|
|
235
240
|
description: string;
|
|
236
241
|
};
|
|
237
|
-
|
|
242
|
+
syncedLocationDropdownTitleNoteForConfluencePage: {
|
|
243
|
+
id: string;
|
|
244
|
+
defaultMessage: string;
|
|
245
|
+
description: string;
|
|
246
|
+
};
|
|
247
|
+
syncedLocationDropdownTitleNoteForJiraWorkItem: {
|
|
238
248
|
id: string;
|
|
239
249
|
defaultMessage: string;
|
|
240
250
|
description: string;
|
|
@@ -249,4 +259,9 @@ export declare const syncBlockMessages: {
|
|
|
249
259
|
defaultMessage: string;
|
|
250
260
|
description: string;
|
|
251
261
|
};
|
|
262
|
+
unsyncButton: {
|
|
263
|
+
id: string;
|
|
264
|
+
defaultMessage: string;
|
|
265
|
+
description: string;
|
|
266
|
+
};
|
|
252
267
|
};
|
|
@@ -12,7 +12,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
|
12
12
|
export { CodeBlockSharedCssClassName } from './shared/code-block';
|
|
13
13
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH, } from './shared/layout';
|
|
14
14
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
15
|
-
export {
|
|
15
|
+
export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
|
|
16
16
|
export { GRID_GUTTER } from './shared/grid';
|
|
17
17
|
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
|
|
18
18
|
export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
1
|
export declare const resizerItemClassName = "resizer-item";
|
|
3
2
|
export declare const resizerHoverZoneClassName = "resizer-hover-zone";
|
|
4
3
|
export declare const resizerExtendedZone = "resizer-is-extended";
|
|
@@ -9,4 +8,3 @@ export declare const resizerDangerClassName = "resizer-handle-danger";
|
|
|
9
8
|
export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
10
9
|
export declare const resizerHandleThumbWidth = 3;
|
|
11
10
|
export declare const resizerHandleZIndex = 1;
|
|
12
|
-
export declare const resizerStyles: SerializedStyles;
|
|
@@ -48,6 +48,7 @@ export declare const redo: Keymap;
|
|
|
48
48
|
export declare const openHelp: Keymap;
|
|
49
49
|
export declare const addLink: Keymap;
|
|
50
50
|
export declare const addInlineComment: Keymap;
|
|
51
|
+
export declare const copyLinkToBlock: Keymap;
|
|
51
52
|
export declare const submit: Keymap;
|
|
52
53
|
export declare const enter: Keymap;
|
|
53
54
|
export declare const shiftEnter: Keymap;
|
|
@@ -79,6 +79,11 @@ export declare const syncBlockMessages: {
|
|
|
79
79
|
defaultMessage: string;
|
|
80
80
|
description: string;
|
|
81
81
|
};
|
|
82
|
+
referenceSyncBlockLastEdited: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
82
87
|
taskInDestinationSyncedBlockTooltip: {
|
|
83
88
|
id: string;
|
|
84
89
|
defaultMessage: string;
|
|
@@ -234,7 +239,12 @@ export declare const syncBlockMessages: {
|
|
|
234
239
|
defaultMessage: string;
|
|
235
240
|
description: string;
|
|
236
241
|
};
|
|
237
|
-
|
|
242
|
+
syncedLocationDropdownTitleNoteForConfluencePage: {
|
|
243
|
+
id: string;
|
|
244
|
+
defaultMessage: string;
|
|
245
|
+
description: string;
|
|
246
|
+
};
|
|
247
|
+
syncedLocationDropdownTitleNoteForJiraWorkItem: {
|
|
238
248
|
id: string;
|
|
239
249
|
defaultMessage: string;
|
|
240
250
|
description: string;
|
|
@@ -249,4 +259,9 @@ export declare const syncBlockMessages: {
|
|
|
249
259
|
defaultMessage: string;
|
|
250
260
|
description: string;
|
|
251
261
|
};
|
|
262
|
+
unsyncButton: {
|
|
263
|
+
id: string;
|
|
264
|
+
defaultMessage: string;
|
|
265
|
+
description: string;
|
|
266
|
+
};
|
|
252
267
|
};
|
|
@@ -12,7 +12,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
|
12
12
|
export { CodeBlockSharedCssClassName } from './shared/code-block';
|
|
13
13
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH, } from './shared/layout';
|
|
14
14
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
15
|
-
export {
|
|
15
|
+
export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
|
|
16
16
|
export { GRID_GUTTER } from './shared/grid';
|
|
17
17
|
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
|
|
18
18
|
export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
1
|
export declare const resizerItemClassName = "resizer-item";
|
|
3
2
|
export declare const resizerHoverZoneClassName = "resizer-hover-zone";
|
|
4
3
|
export declare const resizerExtendedZone = "resizer-is-extended";
|
|
@@ -9,4 +8,3 @@ export declare const resizerDangerClassName = "resizer-handle-danger";
|
|
|
9
8
|
export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
10
9
|
export declare const resizerHandleThumbWidth = 3;
|
|
11
10
|
export declare const resizerHandleZIndex = 1;
|
|
12
|
-
export declare const resizerStyles: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.8.
|
|
3
|
+
"version": "111.8.12",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^0.3.0",
|
|
52
52
|
"@atlaskit/emoji": "^69.10.0",
|
|
53
|
-
"@atlaskit/icon": "^
|
|
53
|
+
"@atlaskit/icon": "^30.0.0",
|
|
54
54
|
"@atlaskit/icon-object": "^7.4.0",
|
|
55
55
|
"@atlaskit/link": "^3.3.0",
|
|
56
56
|
"@atlaskit/link-datasource": "^4.32.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
71
71
|
"@atlaskit/popper": "^7.1.0",
|
|
72
72
|
"@atlaskit/primitives": "^17.1.0",
|
|
73
|
-
"@atlaskit/profilecard": "^24.
|
|
73
|
+
"@atlaskit/profilecard": "^24.32.0",
|
|
74
74
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^5.0.0",
|
|
76
76
|
"@atlaskit/section-message": "^8.12.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^16.30.0",
|
|
85
85
|
"@atlaskit/tokens": "^10.1.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.14.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@atlaskit/media-core": "^37.0.0",
|
|
123
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
123
|
+
"@atlassian/a11y-jest-testing": "^0.8.0",
|
|
124
124
|
"@testing-library/dom": "^10.1.0",
|
|
125
125
|
"@testing-library/jest-dom": "^6.4.5",
|
|
126
126
|
"@testing-library/react": "^16.3.0",
|
|
@@ -175,9 +175,6 @@
|
|
|
175
175
|
"platform_editor_blocktaskitem_patch_3": {
|
|
176
176
|
"type": "boolean"
|
|
177
177
|
},
|
|
178
|
-
"platform_editor_ai_generic_prep_for_aifc": {
|
|
179
|
-
"type": "boolean"
|
|
180
|
-
},
|
|
181
178
|
"platform-visual-refresh-icons": {
|
|
182
179
|
"type": "boolean"
|
|
183
180
|
},
|
|
@@ -235,9 +232,6 @@
|
|
|
235
232
|
"platform_editor_link_picker_width_fix": {
|
|
236
233
|
"type": "boolean"
|
|
237
234
|
},
|
|
238
|
-
"platform_editor_toolbar_aifc_patch_7": {
|
|
239
|
-
"type": "boolean"
|
|
240
|
-
},
|
|
241
235
|
"platform_editor_content_mode_button_mvp": {
|
|
242
236
|
"type": "boolean"
|
|
243
237
|
},
|