@atlaskit/editor-common 112.8.1 → 112.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/card/ui/assets/card.js +1 -1
- package/dist/cjs/card/ui/assets/embed.js +1 -1
- package/dist/cjs/card/ui/assets/inline.js +1 -1
- package/dist/cjs/card/ui/assets/url.js +1 -1
- package/dist/cjs/extensibility/Extension/Extension/index.js +3 -3
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/cjs/extensibility/Extension.js +1 -1
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -2
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/cjs/media-inline/inline-image-card.js +1 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
- package/dist/cjs/media-single/CommentBadge.js +1 -1
- package/dist/cjs/media-single/CommentBadgeNext.js +1 -1
- package/dist/cjs/media-single/MediaBadges.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/onVisibleObserverFactory.js +1 -1
- package/dist/cjs/resizer/BreakoutResizer.js +1 -1
- package/dist/cjs/resizer/Resizer.js +1 -1
- package/dist/cjs/toolbar/context.js +1 -1
- package/dist/cjs/ui/ContextPanel/context.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +2 -2
- package/dist/cjs/ui/Mention/index.js +1 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
- package/dist/cjs/ui/TableSelector/index.js +1 -1
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +4 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +6 -6
- package/dist/cjs/utils/commands.js +1 -2
- package/dist/es2019/card/ui/assets/card.js +1 -1
- package/dist/es2019/card/ui/assets/embed.js +1 -1
- package/dist/es2019/card/ui/assets/inline.js +1 -1
- package/dist/es2019/card/ui/assets/url.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +3 -3
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/es2019/extensibility/Extension.js +1 -1
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +2 -2
- package/dist/es2019/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +2 -2
- package/dist/es2019/media-single/CommentBadge.js +1 -1
- package/dist/es2019/media-single/CommentBadgeNext.js +1 -1
- package/dist/es2019/media-single/MediaBadges.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/onVisibleObserverFactory.js +2 -0
- package/dist/es2019/resizer/BreakoutResizer.js +1 -1
- package/dist/es2019/resizer/Resizer.js +1 -1
- package/dist/es2019/toolbar/context.js +1 -1
- package/dist/es2019/ui/ContextPanel/context.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +2 -2
- package/dist/es2019/ui/Mention/index.js +1 -1
- package/dist/es2019/ui/ResizerLegacy/index.js +1 -1
- package/dist/es2019/ui/TableSelector/index.js +1 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +4 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +6 -6
- package/dist/es2019/utils/commands.js +1 -2
- package/dist/esm/card/ui/assets/card.js +1 -1
- package/dist/esm/card/ui/assets/embed.js +1 -1
- package/dist/esm/card/ui/assets/inline.js +1 -1
- package/dist/esm/card/ui/assets/url.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +3 -3
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/esm/extensibility/Extension.js +1 -1
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +2 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -2
- package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +2 -2
- package/dist/esm/media-single/CommentBadge.js +1 -1
- package/dist/esm/media-single/CommentBadgeNext.js +1 -1
- package/dist/esm/media-single/MediaBadges.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/onVisibleObserverFactory.js +2 -0
- package/dist/esm/resizer/BreakoutResizer.js +1 -1
- package/dist/esm/resizer/Resizer.js +1 -1
- package/dist/esm/toolbar/context.js +1 -1
- package/dist/esm/ui/ContextPanel/context.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +2 -2
- package/dist/esm/ui/Mention/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +1 -1
- package/dist/esm/ui/TableSelector/index.js +1 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +4 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +6 -6
- package/dist/esm/utils/commands.js +1 -2
- package/package.json +3 -6
|
@@ -236,7 +236,7 @@ export var TableSelectorPopup = function TableSelectorPopup(props) {
|
|
|
236
236
|
}, [handleMouseMove, props.allowOutsideSelection, tablePopupRef]);
|
|
237
237
|
return jsx(Popup, {
|
|
238
238
|
target: props.target
|
|
239
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
239
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
240
240
|
,
|
|
241
241
|
offset: [0, 3],
|
|
242
242
|
mountTo: props.popupsMountPoint,
|
|
@@ -149,7 +149,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
149
149
|
target: buttonRef.current,
|
|
150
150
|
fitHeight: 350,
|
|
151
151
|
fitWidth: 350
|
|
152
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
152
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
153
153
|
,
|
|
154
154
|
offset: [0, 10],
|
|
155
155
|
alignX: props.alignX,
|
|
@@ -170,7 +170,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
170
170
|
selectedRowIndex: selectedRowIndex,
|
|
171
171
|
selectedColumnIndex: selectedColumnIndex,
|
|
172
172
|
closeOnTab: true
|
|
173
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
173
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
174
174
|
,
|
|
175
175
|
handleClose: function handleClose() {
|
|
176
176
|
return setIsPopupOpen(false);
|
|
@@ -184,7 +184,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
184
184
|
onClick: onColorSelected,
|
|
185
185
|
handleClickOutside: togglePopup,
|
|
186
186
|
handleEscapeKeydown: handleEsc
|
|
187
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
187
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
188
188
|
,
|
|
189
189
|
paletteOptions: {
|
|
190
190
|
palette: props.colorPalette,
|
|
@@ -234,7 +234,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
234
234
|
"aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
|
|
235
235
|
spacing: editorExperiment('platform_editor_controls', 'variant1') ? 'default' : 'compact',
|
|
236
236
|
onClick: togglePopup
|
|
237
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
237
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
238
238
|
,
|
|
239
239
|
onKeyDown: function onKeyDown(event) {
|
|
240
240
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -191,7 +191,7 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
191
191
|
shouldFitContainer: true,
|
|
192
192
|
handleClickOutside: this.handleClose,
|
|
193
193
|
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
194
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
194
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
195
195
|
,
|
|
196
196
|
handleEnterKeydown: function handleEnterKeydown(e) {
|
|
197
197
|
if (!allowEnterDefaultBehavior) {
|
|
@@ -331,7 +331,7 @@ export function DropdownMenuItem(_ref) {
|
|
|
331
331
|
iconBefore: item.elemBefore,
|
|
332
332
|
iconAfter: item.elemAfter,
|
|
333
333
|
isDisabled: item.isDisabled
|
|
334
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
334
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
335
335
|
,
|
|
336
336
|
onClick: function onClick() {
|
|
337
337
|
return onItemActivated && onItemActivated({
|
|
@@ -341,20 +341,20 @@ export function DropdownMenuItem(_ref) {
|
|
|
341
341
|
"aria-label": ariaLabel,
|
|
342
342
|
"aria-pressed": shouldUseDefaultRole ? item.isActive : undefined,
|
|
343
343
|
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
344
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
344
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
345
345
|
,
|
|
346
346
|
onMouseDown: function onMouseDown(e) {
|
|
347
347
|
e.preventDefault();
|
|
348
348
|
},
|
|
349
349
|
component: DropdownMenuItemCustomComponent
|
|
350
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
350
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
351
351
|
,
|
|
352
352
|
onMouseEnter: function onMouseEnter() {
|
|
353
353
|
return _onMouseEnter && _onMouseEnter({
|
|
354
354
|
item: item
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
357
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
358
358
|
,
|
|
359
359
|
onMouseLeave: function onMouseLeave() {
|
|
360
360
|
return _onMouseLeave && _onMouseLeave({
|
|
@@ -383,7 +383,7 @@ function (_ref2) {
|
|
|
383
383
|
// This context is to handle the tab, Arrow Right/Left key events for dropdown.
|
|
384
384
|
// Default context has the void callbacks for above key events
|
|
385
385
|
return jsx(DropdownMenuWrapper
|
|
386
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
386
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
387
387
|
, _extends({
|
|
388
388
|
arrowKeyNavigationProviderOptions: _objectSpread(_objectSpread({}, props.arrowKeyNavigationProviderOptions), {}, {
|
|
389
389
|
keyDownHandlerContext: keyDownHandlerContext
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
7
6
|
import { withAnalytics } from '../editor-analytics';
|
|
@@ -313,7 +312,7 @@ export var isEmptySelectionAtEnd = function isEmptySelectionAtEnd(state) {
|
|
|
313
312
|
|
|
314
313
|
// If blockTaskItem is in the schema,
|
|
315
314
|
// we need to check if the selection is inside a blockTaskItem
|
|
316
|
-
if (blockTaskItem && empty
|
|
315
|
+
if (blockTaskItem && empty) {
|
|
317
316
|
// If the parent is in a textblock,
|
|
318
317
|
// check if it's nested inside a blockTaskItem
|
|
319
318
|
if ($from.parent.isTextblock) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "112.8.
|
|
3
|
+
"version": "112.8.2",
|
|
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/"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/primitives": "^18.0.0",
|
|
74
74
|
"@atlaskit/profilecard": "^24.44.0",
|
|
75
75
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
76
|
-
"@atlaskit/react-ufo": "^5.
|
|
76
|
+
"@atlaskit/react-ufo": "^5.5.0",
|
|
77
77
|
"@atlaskit/section-message": "^8.12.0",
|
|
78
78
|
"@atlaskit/smart-card": "^43.27.0",
|
|
79
79
|
"@atlaskit/smart-user-picker": "^9.2.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/status": "^3.1.0",
|
|
82
82
|
"@atlaskit/task-decision": "^19.3.0",
|
|
83
83
|
"@atlaskit/textfield": "^8.2.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^44.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^44.3.0",
|
|
85
85
|
"@atlaskit/tokens": "^11.1.0",
|
|
86
86
|
"@atlaskit/tooltip": "^21.0.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -171,9 +171,6 @@
|
|
|
171
171
|
"platform_editor_typography_ugc": {
|
|
172
172
|
"type": "boolean"
|
|
173
173
|
},
|
|
174
|
-
"platform_editor_blocktaskitem_patch_3": {
|
|
175
|
-
"type": "boolean"
|
|
176
|
-
},
|
|
177
174
|
"platform_editor_block_menu_v2_patch_3": {
|
|
178
175
|
"type": "boolean"
|
|
179
176
|
},
|