@atlaskit/editor-plugin-synced-block 5.4.4 → 5.4.6
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 +18 -0
- package/afm-cc/tsconfig.json +12 -0
- package/afm-jira/tsconfig.json +12 -0
- package/afm-products/tsconfig.json +12 -0
- package/dist/cjs/nodeviews/bodiedLazySyncedBlock.js +1 -0
- package/dist/cjs/nodeviews/bodiedSyncedBlock.js +137 -11
- package/dist/cjs/nodeviews/syncedBlock.js +15 -0
- package/dist/cjs/pm-plugins/main.js +42 -58
- package/dist/cjs/pm-plugins/utils/track-sync-blocks.js +24 -66
- package/dist/cjs/syncedBlockPlugin.js +6 -1
- package/dist/cjs/ui/BodiedSyncBlockWrapper.js +1 -0
- package/dist/cjs/ui/DeleteConfirmationModal.js +1 -1
- package/dist/cjs/ui/SyncBlockLabel.js +4 -1
- package/dist/cjs/ui/SyncedLocationDropdown.js +12 -21
- package/dist/cjs/ui/quick-insert.js +1 -1
- package/dist/es2019/nodeviews/bodiedLazySyncedBlock.js +1 -0
- package/dist/es2019/nodeviews/bodiedSyncedBlock.js +121 -6
- package/dist/es2019/nodeviews/syncedBlock.js +11 -0
- package/dist/es2019/pm-plugins/main.js +43 -59
- package/dist/es2019/pm-plugins/utils/track-sync-blocks.js +25 -58
- package/dist/es2019/syncedBlockPlugin.js +7 -2
- package/dist/es2019/ui/BodiedSyncBlockWrapper.js +1 -0
- package/dist/es2019/ui/DeleteConfirmationModal.js +1 -1
- package/dist/es2019/ui/SyncBlockLabel.js +4 -1
- package/dist/es2019/ui/SyncedLocationDropdown.js +13 -22
- package/dist/es2019/ui/quick-insert.js +1 -1
- package/dist/esm/nodeviews/bodiedLazySyncedBlock.js +1 -0
- package/dist/esm/nodeviews/bodiedSyncedBlock.js +137 -11
- package/dist/esm/nodeviews/syncedBlock.js +15 -0
- package/dist/esm/pm-plugins/main.js +43 -59
- package/dist/esm/pm-plugins/utils/track-sync-blocks.js +24 -66
- package/dist/esm/syncedBlockPlugin.js +7 -2
- package/dist/esm/ui/BodiedSyncBlockWrapper.js +1 -0
- package/dist/esm/ui/DeleteConfirmationModal.js +1 -1
- package/dist/esm/ui/SyncBlockLabel.js +4 -1
- package/dist/esm/ui/SyncedLocationDropdown.js +12 -21
- package/dist/esm/ui/quick-insert.js +1 -1
- package/dist/types/nodeviews/bodiedSyncedBlock.d.ts +27 -21
- package/dist/types/nodeviews/syncedBlock.d.ts +3 -1
- package/dist/types/syncedBlockPluginType.d.ts +3 -1
- package/dist/types-ts4.5/nodeviews/bodiedSyncedBlock.d.ts +27 -21
- package/dist/types-ts4.5/nodeviews/syncedBlock.d.ts +3 -1
- package/dist/types-ts4.5/syncedBlockPluginType.d.ts +3 -1
- package/package.json +7 -6
|
@@ -5,6 +5,7 @@ import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages'
|
|
|
5
5
|
import { SyncBlockLabelSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
6
6
|
import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
|
|
7
7
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
10
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
10
11
|
import { formatElapsedTime } from './utils/time';
|
|
@@ -70,7 +71,9 @@ var SyncBlockLabelComponent = function SyncBlockLabelComponent(_ref) {
|
|
|
70
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
71
72
|
,
|
|
72
73
|
className: SyncBlockLabelSharedCssClassName.labelClassName,
|
|
73
|
-
"aria-describedby":
|
|
74
|
+
"aria-describedby": (isSource || isUnsyncedBlock) && editorExperiment('platform_synced_block_patch_6', true, {
|
|
75
|
+
exposure: true
|
|
76
|
+
}) ? undefined : ariaDescribedById
|
|
74
77
|
}, /*#__PURE__*/React.createElement(BlockSyncedIcon, {
|
|
75
78
|
color: "var(--ds-icon-subtle, #505258)",
|
|
76
79
|
size: "small",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedLocationDropdown.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* SyncedLocationDropdown.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -27,7 +27,6 @@ import QuotationMarkIcon from '@atlaskit/icon/core/quotation-mark';
|
|
|
27
27
|
import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
28
28
|
import { ConfluenceIcon, JiraIcon, AtlassianIcon } from '@atlaskit/logo';
|
|
29
29
|
import Lozenge from '@atlaskit/lozenge';
|
|
30
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
31
30
|
import { Box, Text, Inline, Anchor, Stack } from '@atlaskit/primitives/compiled';
|
|
32
31
|
import Spinner from '@atlaskit/spinner';
|
|
33
32
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -80,31 +79,23 @@ var productIconMap = {
|
|
|
80
79
|
'jira-work-item': JiraIcon
|
|
81
80
|
};
|
|
82
81
|
var subTypeIconMap = {
|
|
83
|
-
live: PageLiveDocIcon,
|
|
84
|
-
page: PageIcon,
|
|
85
|
-
blogpost: QuotationMarkIcon
|
|
86
|
-
};
|
|
87
|
-
var subTypeIconMapNew = {
|
|
88
82
|
live: PageLiveDocIcon,
|
|
89
83
|
page: PageIcon
|
|
90
84
|
};
|
|
91
85
|
var getConfluenceSubTypeIcon = function getConfluenceSubTypeIcon(sourceAri, subType) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return subType && subType in subTypeIconMapNew ? subTypeIconMapNew[subType] : PageIcon;
|
|
102
|
-
}
|
|
103
|
-
} catch (_unused) {
|
|
104
|
-
return PageIcon;
|
|
86
|
+
try {
|
|
87
|
+
var _getPageIdAndTypeFrom = getPageIdAndTypeFromConfluencePageAri({
|
|
88
|
+
ari: sourceAri
|
|
89
|
+
}),
|
|
90
|
+
pageType = _getPageIdAndTypeFrom.type;
|
|
91
|
+
if (pageType === 'blogpost') {
|
|
92
|
+
return QuotationMarkIcon;
|
|
93
|
+
} else {
|
|
94
|
+
return subType && subType in subTypeIconMap ? subTypeIconMap[subType] : PageIcon;
|
|
105
95
|
}
|
|
96
|
+
} catch (_unused) {
|
|
97
|
+
return PageIcon;
|
|
106
98
|
}
|
|
107
|
-
return subType && subType in subTypeIconMap ? subTypeIconMap[subType] : PageIcon;
|
|
108
99
|
};
|
|
109
100
|
var ProductIcon = function ProductIcon(_ref2) {
|
|
110
101
|
var _productIconMap$produ;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
2
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import type {
|
|
3
|
+
import type { ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
4
|
import ReactNodeView, { type getPosHandler } from '@atlaskit/editor-common/react-node-view';
|
|
6
|
-
import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtractInjectionAPI, getPosHandlerNode, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
7
6
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
9
8
|
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
10
9
|
import type { SyncedBlockPlugin, SyncedBlockPluginOptions } from '../syncedBlockPluginType';
|
|
11
10
|
export interface BodiedSyncBlockNodeViewProps extends ReactComponentProps {
|
|
@@ -18,27 +17,34 @@ export interface BodiedSyncBlockNodeViewProps extends ReactComponentProps {
|
|
|
18
17
|
syncBlockStore?: SyncBlockStoreManager;
|
|
19
18
|
view: EditorView;
|
|
20
19
|
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
export interface BodiedSyncBlockNodeViewProperties {
|
|
21
|
+
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
22
|
+
pluginOptions: SyncedBlockPluginOptions | undefined;
|
|
23
|
+
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
24
|
+
syncBlockStore?: SyncBlockStoreManager;
|
|
25
|
+
}
|
|
26
|
+
export declare const bodiedSyncBlockNodeViewOld: (props: BodiedSyncBlockNodeViewProperties) => (node: PMNode, view: EditorView, getPos: getPosHandler) => ReactNodeView<BodiedSyncBlockNodeViewProps>;
|
|
27
|
+
export declare class BodiedSyncBlock implements NodeView {
|
|
28
|
+
dom: HTMLElement;
|
|
29
|
+
contentDOM: HTMLElement;
|
|
30
|
+
node: PMNode;
|
|
31
|
+
view: EditorView;
|
|
32
|
+
getPos: getPosHandlerNode;
|
|
33
|
+
nodeViewPortalProviderAPI: PortalProviderAPI;
|
|
24
34
|
private api?;
|
|
25
35
|
private syncBlockStore?;
|
|
26
|
-
|
|
36
|
+
private cleanupConnectivityModeListener?;
|
|
37
|
+
private cleanupViewModeListener?;
|
|
38
|
+
private labelKey;
|
|
39
|
+
constructor(node: PMNode, view: EditorView, getPos: getPosHandlerNode, api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined, nodeViewPortalProviderAPI: PortalProviderAPI, syncBlockStore?: SyncBlockStoreManager);
|
|
27
40
|
private updateContentEditable;
|
|
28
41
|
private handleConnectivityModeChange;
|
|
29
42
|
private handleViewModeChange;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} | undefined;
|
|
43
|
+
update(node: PMNode): boolean;
|
|
44
|
+
ignoreMutation(mutation: MutationRecord | {
|
|
45
|
+
target: Node;
|
|
46
|
+
type: 'selection';
|
|
47
|
+
}): boolean;
|
|
36
48
|
destroy(): void;
|
|
37
49
|
}
|
|
38
|
-
export
|
|
39
|
-
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
40
|
-
pluginOptions: SyncedBlockPluginOptions | undefined;
|
|
41
|
-
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
42
|
-
syncBlockStore?: SyncBlockStoreManager;
|
|
43
|
-
}
|
|
44
|
-
export declare const bodiedSyncBlockNodeView: (props: BodiedSyncBlockNodeViewProperties) => (node: PMNode, view: EditorView, getPos: getPosHandler) => ReactNodeView<BodiedSyncBlockNodeViewProps>;
|
|
50
|
+
export declare const bodiedSyncBlockNodeView: (props: BodiedSyncBlockNodeViewProperties) => ((node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView);
|
|
@@ -5,7 +5,7 @@ import ReactNodeView, { type getPosHandler } from '@atlaskit/editor-common/react
|
|
|
5
5
|
import type { ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
6
6
|
import type { ExtractInjectionAPI, getPosHandlerNode, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
+
import type { EditorView, Decoration, DecorationSource } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { type SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
10
10
|
import type { SyncedBlockPlugin, SyncedBlockPluginOptions } from '../syncedBlockPluginType';
|
|
11
11
|
export interface SyncBlockNodeViewProps extends ReactComponentProps {
|
|
@@ -26,6 +26,8 @@ export declare class SyncBlock extends ReactNodeView<SyncBlockNodeViewProps> {
|
|
|
26
26
|
constructor(props: SyncBlockNodeViewProps);
|
|
27
27
|
unsubscribe: (() => void) | undefined;
|
|
28
28
|
createDomRef(): HTMLElement;
|
|
29
|
+
validUpdate(currentNode: PMNode, newNode: PMNode): boolean;
|
|
30
|
+
update(node: PMNode, decorations: ReadonlyArray<Decoration>, innerDecorations?: DecorationSource): boolean;
|
|
29
31
|
render({ getPos }: SyncBlockNodeViewProps): React.JSX.Element | null;
|
|
30
32
|
destroy(): void;
|
|
31
33
|
}
|
|
@@ -10,6 +10,7 @@ import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format
|
|
|
10
10
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
11
11
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
12
12
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
13
|
+
import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
|
|
13
14
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
14
15
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
15
16
|
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
@@ -81,7 +82,8 @@ export type SyncedBlockPlugin = NextEditorPlugin<'syncedBlock', {
|
|
|
81
82
|
OptionalPlugin<ConnectivityPlugin>,
|
|
82
83
|
OptionalPlugin<EditorViewModePlugin>,
|
|
83
84
|
OptionalPlugin<ContentFormatPlugin>,
|
|
84
|
-
OptionalPlugin<UserIntentPlugin
|
|
85
|
+
OptionalPlugin<UserIntentPlugin>,
|
|
86
|
+
OptionalPlugin<FocusPlugin>
|
|
85
87
|
];
|
|
86
88
|
pluginConfiguration: SyncedBlockPluginOptions | undefined;
|
|
87
89
|
sharedState: SyncedBlockSharedState | undefined;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
2
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import type {
|
|
3
|
+
import type { ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
4
|
import ReactNodeView, { type getPosHandler } from '@atlaskit/editor-common/react-node-view';
|
|
6
|
-
import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtractInjectionAPI, getPosHandlerNode, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
7
6
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
9
8
|
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
10
9
|
import type { SyncedBlockPlugin, SyncedBlockPluginOptions } from '../syncedBlockPluginType';
|
|
11
10
|
export interface BodiedSyncBlockNodeViewProps extends ReactComponentProps {
|
|
@@ -18,27 +17,34 @@ export interface BodiedSyncBlockNodeViewProps extends ReactComponentProps {
|
|
|
18
17
|
syncBlockStore?: SyncBlockStoreManager;
|
|
19
18
|
view: EditorView;
|
|
20
19
|
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
export interface BodiedSyncBlockNodeViewProperties {
|
|
21
|
+
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
22
|
+
pluginOptions: SyncedBlockPluginOptions | undefined;
|
|
23
|
+
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
24
|
+
syncBlockStore?: SyncBlockStoreManager;
|
|
25
|
+
}
|
|
26
|
+
export declare const bodiedSyncBlockNodeViewOld: (props: BodiedSyncBlockNodeViewProperties) => (node: PMNode, view: EditorView, getPos: getPosHandler) => ReactNodeView<BodiedSyncBlockNodeViewProps>;
|
|
27
|
+
export declare class BodiedSyncBlock implements NodeView {
|
|
28
|
+
dom: HTMLElement;
|
|
29
|
+
contentDOM: HTMLElement;
|
|
30
|
+
node: PMNode;
|
|
31
|
+
view: EditorView;
|
|
32
|
+
getPos: getPosHandlerNode;
|
|
33
|
+
nodeViewPortalProviderAPI: PortalProviderAPI;
|
|
24
34
|
private api?;
|
|
25
35
|
private syncBlockStore?;
|
|
26
|
-
|
|
36
|
+
private cleanupConnectivityModeListener?;
|
|
37
|
+
private cleanupViewModeListener?;
|
|
38
|
+
private labelKey;
|
|
39
|
+
constructor(node: PMNode, view: EditorView, getPos: getPosHandlerNode, api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined, nodeViewPortalProviderAPI: PortalProviderAPI, syncBlockStore?: SyncBlockStoreManager);
|
|
27
40
|
private updateContentEditable;
|
|
28
41
|
private handleConnectivityModeChange;
|
|
29
42
|
private handleViewModeChange;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} | undefined;
|
|
43
|
+
update(node: PMNode): boolean;
|
|
44
|
+
ignoreMutation(mutation: MutationRecord | {
|
|
45
|
+
target: Node;
|
|
46
|
+
type: 'selection';
|
|
47
|
+
}): boolean;
|
|
36
48
|
destroy(): void;
|
|
37
49
|
}
|
|
38
|
-
export
|
|
39
|
-
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
40
|
-
pluginOptions: SyncedBlockPluginOptions | undefined;
|
|
41
|
-
pmPluginFactoryParams: PMPluginFactoryParams;
|
|
42
|
-
syncBlockStore?: SyncBlockStoreManager;
|
|
43
|
-
}
|
|
44
|
-
export declare const bodiedSyncBlockNodeView: (props: BodiedSyncBlockNodeViewProperties) => (node: PMNode, view: EditorView, getPos: getPosHandler) => ReactNodeView<BodiedSyncBlockNodeViewProps>;
|
|
50
|
+
export declare const bodiedSyncBlockNodeView: (props: BodiedSyncBlockNodeViewProperties) => ((node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView);
|
|
@@ -5,7 +5,7 @@ import ReactNodeView, { type getPosHandler } from '@atlaskit/editor-common/react
|
|
|
5
5
|
import type { ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
6
6
|
import type { ExtractInjectionAPI, getPosHandlerNode, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
+
import type { EditorView, Decoration, DecorationSource } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { type SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
10
10
|
import type { SyncedBlockPlugin, SyncedBlockPluginOptions } from '../syncedBlockPluginType';
|
|
11
11
|
export interface SyncBlockNodeViewProps extends ReactComponentProps {
|
|
@@ -26,6 +26,8 @@ export declare class SyncBlock extends ReactNodeView<SyncBlockNodeViewProps> {
|
|
|
26
26
|
constructor(props: SyncBlockNodeViewProps);
|
|
27
27
|
unsubscribe: (() => void) | undefined;
|
|
28
28
|
createDomRef(): HTMLElement;
|
|
29
|
+
validUpdate(currentNode: PMNode, newNode: PMNode): boolean;
|
|
30
|
+
update(node: PMNode, decorations: ReadonlyArray<Decoration>, innerDecorations?: DecorationSource): boolean;
|
|
29
31
|
render({ getPos }: SyncBlockNodeViewProps): React.JSX.Element | null;
|
|
30
32
|
destroy(): void;
|
|
31
33
|
}
|
|
@@ -10,6 +10,7 @@ import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format
|
|
|
10
10
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
11
11
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
12
12
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
13
|
+
import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
|
|
13
14
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
14
15
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
15
16
|
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
@@ -81,7 +82,8 @@ export type SyncedBlockPlugin = NextEditorPlugin<'syncedBlock', {
|
|
|
81
82
|
OptionalPlugin<ConnectivityPlugin>,
|
|
82
83
|
OptionalPlugin<EditorViewModePlugin>,
|
|
83
84
|
OptionalPlugin<ContentFormatPlugin>,
|
|
84
|
-
OptionalPlugin<UserIntentPlugin
|
|
85
|
+
OptionalPlugin<UserIntentPlugin>,
|
|
86
|
+
OptionalPlugin<FocusPlugin>
|
|
85
87
|
];
|
|
86
88
|
pluginConfiguration: SyncedBlockPluginOptions | undefined;
|
|
87
89
|
sharedState: SyncedBlockSharedState | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.6",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,16 +28,19 @@
|
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^52.
|
|
31
|
+
"@atlaskit/adf-schema": "^52.2.0",
|
|
32
32
|
"@atlaskit/button": "23.10.0",
|
|
33
33
|
"@atlaskit/dropdown-menu": "16.5.1",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-block-menu": "^6.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-connectivity": "7.0.1",
|
|
38
|
+
"@atlaskit/editor-plugin-content-format": "^1.0.0",
|
|
38
39
|
"@atlaskit/editor-plugin-decorations": "^7.0.0",
|
|
39
40
|
"@atlaskit/editor-plugin-floating-toolbar": "^9.1.0",
|
|
41
|
+
"@atlaskit/editor-plugin-focus": "^6.0.0",
|
|
40
42
|
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-user-intent": "^5.0.0",
|
|
41
44
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
42
45
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
43
46
|
"@atlaskit/editor-synced-block-provider": "^3.31.0",
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
55
|
"@atlaskit/primitives": "^18.0.0",
|
|
53
56
|
"@atlaskit/spinner": "19.0.11",
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^34.2.0",
|
|
54
58
|
"@atlaskit/tokens": "11.0.2",
|
|
55
59
|
"@atlaskit/tooltip": "^20.14.0",
|
|
56
60
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -61,7 +65,7 @@
|
|
|
61
65
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
62
66
|
},
|
|
63
67
|
"peerDependencies": {
|
|
64
|
-
"@atlaskit/editor-common": "^111.
|
|
68
|
+
"@atlaskit/editor-common": "^111.28.0",
|
|
65
69
|
"react": "^18.2.0"
|
|
66
70
|
},
|
|
67
71
|
"devDependencies": {
|
|
@@ -104,9 +108,6 @@
|
|
|
104
108
|
}
|
|
105
109
|
},
|
|
106
110
|
"platform-feature-flags": {
|
|
107
|
-
"platform_synced_block_patch_3": {
|
|
108
|
-
"type": "boolean"
|
|
109
|
-
},
|
|
110
111
|
"platform_synced_block_patch_5": {
|
|
111
112
|
"type": "boolean"
|
|
112
113
|
},
|