@atlaskit/editor-common 106.1.0 → 106.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +1 -2
- package/dist/cjs/card/index.js +1 -2
- package/dist/cjs/clipboard/index.js +1 -2
- package/dist/cjs/element-browser/ElementBrowser.js +1 -2
- package/dist/cjs/element-browser/components/CategoryList.js +1 -2
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +1 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +1 -2
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -2
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -2
- package/dist/cjs/element-browser/components/ViewMore.js +1 -2
- package/dist/cjs/element-browser/hooks/use-container-width.js +1 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +1 -2
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +1 -2
- package/dist/cjs/extensibility/Extension.js +1 -2
- package/dist/cjs/extensibility/ExtensionComponent.js +1 -2
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +1 -2
- package/dist/cjs/extensibility/index.js +1 -2
- package/dist/cjs/extensions/extension-fields-helpers.js +1 -1
- package/dist/cjs/floating-toolbar/DropdownMenuExtensionItems.js +1 -2
- package/dist/cjs/icons/index.js +1 -2
- package/dist/cjs/keymaps/index.js +1 -2
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +1 -2
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +1 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +9 -10
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +1 -2
- package/dist/cjs/link/index.js +1 -2
- package/dist/cjs/media-inline/media-inline-image-card.js +3 -3
- package/dist/cjs/media-single/CommentBadgeNext.js +1 -2
- package/dist/cjs/media-single/MediaBadges.js +1 -2
- package/dist/cjs/messages/selection-toolbar.js +10 -0
- package/dist/cjs/monitoring/error.js +2 -3
- package/dist/cjs/portal/PortalBucket.js +1 -2
- package/dist/cjs/portal/common.js +1 -2
- package/dist/cjs/quick-insert/assets/index.js +1 -2
- package/dist/cjs/resizer/BreakoutResizer.js +1 -2
- package/dist/cjs/resizer/Resizer.js +1 -2
- package/dist/cjs/resizer/useBreakoutGuidelines.js +3 -1
- package/dist/cjs/table/index.js +1 -2
- package/dist/cjs/ui/Announcer/announcer.js +1 -2
- package/dist/cjs/ui/BaseTheme/index.js +1 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Emoji/index.js +1 -2
- package/dist/cjs/ui/Expand/index.js +1 -2
- package/dist/cjs/ui/FloatingToolbar/Button.js +1 -2
- package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +1 -2
- package/dist/cjs/ui/Layer/index.js +1 -2
- package/dist/cjs/ui/Mention/index.js +1 -2
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +1 -2
- package/dist/cjs/ui/Mention/mention-with-providers.js +1 -2
- package/dist/cjs/ui/TableSelector/index.js +1 -2
- package/dist/cjs/ui/Toolbar/ExpandIcon.js +1 -2
- package/dist/cjs/ui/Toolbar/Separator.js +1 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +1 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +1 -2
- package/dist/cjs/ui/WidthProvider/index.js +1 -2
- package/dist/cjs/ui/index.js +1 -2
- package/dist/cjs/ui/with-outer-listeners.js +1 -2
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +1 -2
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +1 -2
- package/dist/cjs/ui-menu/Dropdown/index.js +1 -2
- package/dist/cjs/ui-menu/DropdownContainer/index.js +1 -2
- package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -2
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -2
- package/dist/cjs/ui-menu/ToolbarButton/index.js +1 -2
- package/dist/cjs/ui-menu/index.js +1 -2
- package/dist/cjs/ui-react/index.js +1 -2
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +1 -2
- package/dist/cjs/utils/imageLoader.js +1 -2
- package/dist/es2019/messages/selection-toolbar.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/resizer/useBreakoutGuidelines.js +3 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensions/extension-fields-helpers.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +8 -8
- package/dist/esm/media-inline/media-inline-image-card.js +3 -3
- package/dist/esm/messages/selection-toolbar.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/resizer/useBreakoutGuidelines.js +3 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/annotation/index.d.ts +7 -3
- package/dist/types/messages/selection-toolbar.d.ts +10 -0
- package/dist/types/types/annotation/index.d.ts +2 -2
- package/dist/types-ts4.5/annotation/index.d.ts +7 -3
- package/dist/types-ts4.5/messages/selection-toolbar.d.ts +10 -0
- package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -55,9 +55,9 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
|
|
|
55
55
|
isSucceededEventSent = _useState8[0],
|
|
56
56
|
setIsSucceededEventSent = _useState8[1];
|
|
57
57
|
var _useState9 = useState(false),
|
|
58
|
-
|
|
59
|
-
isMediaViewerVisible =
|
|
60
|
-
setMediaViewerVisible =
|
|
58
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
59
|
+
isMediaViewerVisible = _useState0[0],
|
|
60
|
+
setMediaViewerVisible = _useState0[1];
|
|
61
61
|
var _ref2 = intl || createIntl({
|
|
62
62
|
locale: 'en'
|
|
63
63
|
}),
|
|
@@ -14,5 +14,15 @@ export var selectionToolbarMessages = defineMessages({
|
|
|
14
14
|
id: 'fabric.editor.toolbarPositionFixedAtTop',
|
|
15
15
|
defaultMessage: 'Fixed at top',
|
|
16
16
|
description: 'Label for fixed at top toolbar position option'
|
|
17
|
+
},
|
|
18
|
+
toolbarPositionUnpined: {
|
|
19
|
+
id: 'fabric.editor.toolbarPositionUnpined',
|
|
20
|
+
defaultMessage: 'Pin the toolbar at the top',
|
|
21
|
+
description: 'Label for in-line toolbar position option'
|
|
22
|
+
},
|
|
23
|
+
toolbarPositionPinedAtTop: {
|
|
24
|
+
id: 'fabric.editor.toolbarPositionPinedAtTop',
|
|
25
|
+
defaultMessage: 'Unpin the toolbar',
|
|
26
|
+
description: 'Label for fixed at top toolbar position option'
|
|
17
27
|
}
|
|
18
28
|
});
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "106.1.
|
|
10
|
+
var packageVersion = "106.1.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -110,7 +110,9 @@ export function useBreakoutGuidelines(getEditorWidth, isResizing) {
|
|
|
110
110
|
setCurrentLayout('center');
|
|
111
111
|
} else if (wide && Math.abs(newWidth - wide) < SNAP_GAP / 2) {
|
|
112
112
|
setCurrentLayout('wide');
|
|
113
|
-
} else if (fullWidth && (
|
|
113
|
+
} else if (fullWidth && (
|
|
114
|
+
// we only allow snap from one side, so we don't use Math.abs here
|
|
115
|
+
fullWidth + akEditorGutterPadding - newWidth < SNAP_GAP / 2 || newWidth >= fullWidth)) {
|
|
114
116
|
setCurrentLayout('full-width');
|
|
115
117
|
} else {
|
|
116
118
|
setCurrentLayout(null);
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "106.1.
|
|
23
|
+
var packageVersion = "106.1.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
5
|
import type { AnnotationId } from '@atlaskit/adf-schema';
|
|
6
6
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
7
|
-
import type { AddNodeMarkStep, AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
7
|
+
import type { AddNodeMarkStep, AddMarkStep, RemoveNodeMarkStep, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
8
|
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation' | 'sethoveredannotation' | 'removehoveredannotation' | 'closeinlinecomment';
|
|
9
9
|
export type VisibilityEvent = 'setvisibility';
|
|
10
10
|
type AnnotationCallback = (params: string) => void;
|
|
@@ -27,6 +27,10 @@ export type ActionResult = {
|
|
|
27
27
|
inlineNodeTypes?: string[];
|
|
28
28
|
targetNodeType?: string;
|
|
29
29
|
} & AnnotationByMatches;
|
|
30
|
+
export type ClearAnnotationActionResult = {
|
|
31
|
+
step: RemoveMarkStep | RemoveNodeMarkStep;
|
|
32
|
+
doc: JSONDocNode;
|
|
33
|
+
};
|
|
30
34
|
export type AnnotationDraftStartedData = {
|
|
31
35
|
targetElement: HTMLElement | undefined;
|
|
32
36
|
/**
|
|
@@ -84,10 +88,10 @@ export type GetDraftResult = {
|
|
|
84
88
|
} & AnnotationDraftStartedData);
|
|
85
89
|
export type ClearAnnotationResult = {
|
|
86
90
|
success: false;
|
|
87
|
-
reason: ManagerFailureReasons | 'id-not-valid';
|
|
91
|
+
reason: ManagerFailureReasons | 'id-not-valid' | 'clear-failed';
|
|
88
92
|
} | {
|
|
89
93
|
success: true;
|
|
90
|
-
actionResult:
|
|
94
|
+
actionResult: ClearAnnotationActionResult | undefined;
|
|
91
95
|
};
|
|
92
96
|
export type SelectAnnotationResult = {
|
|
93
97
|
success: false;
|
|
@@ -14,4 +14,14 @@ export declare const selectionToolbarMessages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
toolbarPositionUnpined: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
toolbarPositionPinedAtTop: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
17
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
4
|
-
import type { AddNodeMarkStep, AddMarkStep,
|
|
4
|
+
import type { AddNodeMarkStep, AddMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
5
5
|
import type { AnnotationManager } from '../../annotation';
|
|
6
6
|
import type { AnnotationState, AnnotationUpdateEmitter } from './emitter';
|
|
7
7
|
export type AnnotationByMatches = {
|
|
@@ -12,7 +12,7 @@ export type AnnotationByMatches = {
|
|
|
12
12
|
isAnnotationAllowed?: boolean;
|
|
13
13
|
};
|
|
14
14
|
type ActionResult = {
|
|
15
|
-
step:
|
|
15
|
+
step: RemoveMarkStep | RemoveNodeMarkStep;
|
|
16
16
|
doc: JSONDocNode;
|
|
17
17
|
} | false;
|
|
18
18
|
export type AnnotationActionResult = ({
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
5
|
import type { AnnotationId } from '@atlaskit/adf-schema';
|
|
6
6
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
7
|
-
import type { AddNodeMarkStep, AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
7
|
+
import type { AddNodeMarkStep, AddMarkStep, RemoveNodeMarkStep, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
8
|
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation' | 'sethoveredannotation' | 'removehoveredannotation' | 'closeinlinecomment';
|
|
9
9
|
export type VisibilityEvent = 'setvisibility';
|
|
10
10
|
type AnnotationCallback = (params: string) => void;
|
|
@@ -27,6 +27,10 @@ export type ActionResult = {
|
|
|
27
27
|
inlineNodeTypes?: string[];
|
|
28
28
|
targetNodeType?: string;
|
|
29
29
|
} & AnnotationByMatches;
|
|
30
|
+
export type ClearAnnotationActionResult = {
|
|
31
|
+
step: RemoveMarkStep | RemoveNodeMarkStep;
|
|
32
|
+
doc: JSONDocNode;
|
|
33
|
+
};
|
|
30
34
|
export type AnnotationDraftStartedData = {
|
|
31
35
|
targetElement: HTMLElement | undefined;
|
|
32
36
|
/**
|
|
@@ -84,10 +88,10 @@ export type GetDraftResult = {
|
|
|
84
88
|
} & AnnotationDraftStartedData);
|
|
85
89
|
export type ClearAnnotationResult = {
|
|
86
90
|
success: false;
|
|
87
|
-
reason: ManagerFailureReasons | 'id-not-valid';
|
|
91
|
+
reason: ManagerFailureReasons | 'id-not-valid' | 'clear-failed';
|
|
88
92
|
} | {
|
|
89
93
|
success: true;
|
|
90
|
-
actionResult:
|
|
94
|
+
actionResult: ClearAnnotationActionResult | undefined;
|
|
91
95
|
};
|
|
92
96
|
export type SelectAnnotationResult = {
|
|
93
97
|
success: false;
|
|
@@ -14,4 +14,14 @@ export declare const selectionToolbarMessages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
toolbarPositionUnpined: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
toolbarPositionPinedAtTop: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
17
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
4
|
-
import type { AddNodeMarkStep, AddMarkStep,
|
|
4
|
+
import type { AddNodeMarkStep, AddMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
5
5
|
import type { AnnotationManager } from '../../annotation';
|
|
6
6
|
import type { AnnotationState, AnnotationUpdateEmitter } from './emitter';
|
|
7
7
|
export type AnnotationByMatches = {
|
|
@@ -12,7 +12,7 @@ export type AnnotationByMatches = {
|
|
|
12
12
|
isAnnotationAllowed?: boolean;
|
|
13
13
|
};
|
|
14
14
|
type ActionResult = {
|
|
15
|
-
step:
|
|
15
|
+
step: RemoveMarkStep | RemoveNodeMarkStep;
|
|
16
16
|
doc: JSONDocNode;
|
|
17
17
|
} | false;
|
|
18
18
|
export type AnnotationActionResult = ({
|
package/package.json
CHANGED