@atlaskit/editor-plugin-synced-block 5.4.2 → 5.4.4
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 +15 -0
- package/dist/cjs/pm-plugins/main.js +11 -2
- package/dist/cjs/ui/Flag.js +2 -1
- package/dist/cjs/ui/SyncedLocationDropdown.js +2 -1
- package/dist/es2019/pm-plugins/main.js +11 -2
- package/dist/es2019/ui/Flag.js +2 -1
- package/dist/es2019/ui/SyncedLocationDropdown.js +2 -1
- package/dist/esm/pm-plugins/main.js +11 -2
- package/dist/esm/ui/Flag.js +2 -1
- package/dist/esm/ui/SyncedLocationDropdown.js +2 -1
- package/dist/types/syncedBlockPluginType.d.ts +5 -1
- package/dist/types-ts4.5/syncedBlockPluginType.d.ts +5 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-synced-block
|
|
2
2
|
|
|
3
|
+
## 5.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`29d9d25ebe53a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/29d9d25ebe53a) -
|
|
8
|
+
[ux] EDITOR-5009 show sync block border when dragging
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 5.4.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`514037bd94288`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/514037bd94288) -
|
|
16
|
+
[ux] EDITOR-5588 pass content mode setting to reference sync block
|
|
17
|
+
|
|
3
18
|
## 5.4.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -365,16 +365,18 @@ var createPlugin = exports.createPlugin = function createPlugin(options, pmPlugi
|
|
|
365
365
|
})
|
|
366
366
|
},
|
|
367
367
|
decorations: function decorations(state) {
|
|
368
|
-
var _currentPluginState$s, _api$connectivity2, _api$editorViewMode;
|
|
368
|
+
var _currentPluginState$s, _api$connectivity2, _api$editorViewMode, _api$userIntent;
|
|
369
369
|
var currentPluginState = syncedBlockPluginKey.getState(state);
|
|
370
370
|
var selectionDecorationSet = (_currentPluginState$s = currentPluginState === null || currentPluginState === void 0 ? void 0 : currentPluginState.selectionDecorationSet) !== null && _currentPluginState$s !== void 0 ? _currentPluginState$s : _view.DecorationSet.empty;
|
|
371
371
|
var syncBlockStore = currentPluginState === null || currentPluginState === void 0 ? void 0 : currentPluginState.syncBlockStore;
|
|
372
372
|
var doc = state.doc;
|
|
373
373
|
var isOffline = (0, _editorPluginConnectivity.isOfflineMode)(api === null || api === void 0 || (_api$connectivity2 = api.connectivity) === null || _api$connectivity2 === void 0 || (_api$connectivity2 = _api$connectivity2.sharedState.currentState()) === null || _api$connectivity2 === void 0 ? void 0 : _api$connectivity2.mode);
|
|
374
374
|
var isViewMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 || (_api$editorViewMode = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.mode) === 'view';
|
|
375
|
+
var isDragging = (0, _platformFeatureFlags.fg)('platform_synced_block_patch_5') ? (api === null || api === void 0 || (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 || (_api$userIntent = _api$userIntent.sharedState.currentState()) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.currentUserIntent) === 'dragging' : undefined;
|
|
375
376
|
var offlineDecorations = [];
|
|
376
377
|
var viewModeDecorations = [];
|
|
377
378
|
var loadingDecorations = [];
|
|
379
|
+
var dragDecorations = [];
|
|
378
380
|
state.doc.descendants(function (node, pos) {
|
|
379
381
|
if (node.type.name === 'bodiedSyncBlock' && isOffline) {
|
|
380
382
|
offlineDecorations.push(_view.Decoration.node(pos, pos + node.nodeSize, {
|
|
@@ -391,8 +393,15 @@ var createPlugin = exports.createPlugin = function createPlugin(options, pmPlugi
|
|
|
391
393
|
class: _syncBlock.SyncBlockStateCssClassName.creationLoadingClassName
|
|
392
394
|
}));
|
|
393
395
|
}
|
|
396
|
+
|
|
397
|
+
// Show sync block border while the user is dragging
|
|
398
|
+
if (isDragging && (node.type.name === 'bodiedSyncBlock' || node.type.name === 'syncBlock') && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_5')) {
|
|
399
|
+
dragDecorations.push(_view.Decoration.node(pos, pos + node.nodeSize, {
|
|
400
|
+
class: _syncBlock.SyncBlockStateCssClassName.draggingClassName
|
|
401
|
+
}));
|
|
402
|
+
}
|
|
394
403
|
});
|
|
395
|
-
return selectionDecorationSet.add(doc, offlineDecorations).add(doc, viewModeDecorations).add(doc, loadingDecorations);
|
|
404
|
+
return selectionDecorationSet.add(doc, offlineDecorations).add(doc, viewModeDecorations).add(doc, loadingDecorations).add(doc, dragDecorations);
|
|
396
405
|
},
|
|
397
406
|
handleClickOn: (0, _selection.createSelectionClickHandler)(['bodiedSyncBlock'], function (target) {
|
|
398
407
|
return !!target.closest(".".concat(_syncBlock.BodiedSyncBlockSharedCssClassName.prefix));
|
package/dist/cjs/ui/Flag.js
CHANGED
|
@@ -11,6 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
|
+
var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
14
15
|
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
15
16
|
var _flag = _interopRequireWildcard(require("@atlaskit/flag"));
|
|
16
17
|
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
@@ -110,7 +111,7 @@ var Flag = exports.Flag = function Flag(_ref) {
|
|
|
110
111
|
} else if (type === 'info' && action) {
|
|
111
112
|
return [{
|
|
112
113
|
content: formatMessage(action),
|
|
113
|
-
href:
|
|
114
|
+
href: _syncBlock.SYNCED_BLOCKS_DOCUMENTATION_URL,
|
|
114
115
|
target: '_blank',
|
|
115
116
|
rel: 'noopener noreferrer'
|
|
116
117
|
}];
|
|
@@ -20,6 +20,7 @@ var _react2 = require("@compiled/react");
|
|
|
20
20
|
var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
21
21
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
22
22
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
23
|
+
var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
23
24
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
24
25
|
var _editorSyncedBlockProvider = require("@atlaskit/editor-synced-block-provider");
|
|
25
26
|
var _icon = require("@atlaskit/icon");
|
|
@@ -377,7 +378,7 @@ var NoResultScreen = function NoResultScreen(_ref0) {
|
|
|
377
378
|
}, formatMessage(_messages.syncBlockMessages.syncedLocationDropdownNoResults)), /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
378
379
|
as: "p"
|
|
379
380
|
}, /*#__PURE__*/React.createElement(_compiled.Anchor, {
|
|
380
|
-
href:
|
|
381
|
+
href: _syncBlock.SYNCED_BLOCKS_DOCUMENTATION_URL,
|
|
381
382
|
target: "_blank",
|
|
382
383
|
rel: "noopener noreferrer",
|
|
383
384
|
xcss: styles.learnMoreLink
|
|
@@ -326,7 +326,7 @@ export const createPlugin = (options, pmPluginFactoryParams, syncBlockStore, api
|
|
|
326
326
|
})
|
|
327
327
|
},
|
|
328
328
|
decorations: state => {
|
|
329
|
-
var _currentPluginState$s, _api$connectivity2, _api$connectivity2$sh, _api$editorViewMode, _api$editorViewMode$s;
|
|
329
|
+
var _currentPluginState$s, _api$connectivity2, _api$connectivity2$sh, _api$editorViewMode, _api$editorViewMode$s, _api$userIntent, _api$userIntent$share;
|
|
330
330
|
const currentPluginState = syncedBlockPluginKey.getState(state);
|
|
331
331
|
const selectionDecorationSet = (_currentPluginState$s = currentPluginState === null || currentPluginState === void 0 ? void 0 : currentPluginState.selectionDecorationSet) !== null && _currentPluginState$s !== void 0 ? _currentPluginState$s : DecorationSet.empty;
|
|
332
332
|
const syncBlockStore = currentPluginState === null || currentPluginState === void 0 ? void 0 : currentPluginState.syncBlockStore;
|
|
@@ -335,9 +335,11 @@ export const createPlugin = (options, pmPluginFactoryParams, syncBlockStore, api
|
|
|
335
335
|
} = state;
|
|
336
336
|
const isOffline = isOfflineMode(api === null || api === void 0 ? void 0 : (_api$connectivity2 = api.connectivity) === null || _api$connectivity2 === void 0 ? void 0 : (_api$connectivity2$sh = _api$connectivity2.sharedState.currentState()) === null || _api$connectivity2$sh === void 0 ? void 0 : _api$connectivity2$sh.mode);
|
|
337
337
|
const isViewMode = (api === null || api === void 0 ? void 0 : (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : (_api$editorViewMode$s = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode$s === void 0 ? void 0 : _api$editorViewMode$s.mode) === 'view';
|
|
338
|
+
const isDragging = fg('platform_synced_block_patch_5') ? (api === null || api === void 0 ? void 0 : (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : (_api$userIntent$share = _api$userIntent.sharedState.currentState()) === null || _api$userIntent$share === void 0 ? void 0 : _api$userIntent$share.currentUserIntent) === 'dragging' : undefined;
|
|
338
339
|
const offlineDecorations = [];
|
|
339
340
|
const viewModeDecorations = [];
|
|
340
341
|
const loadingDecorations = [];
|
|
342
|
+
const dragDecorations = [];
|
|
341
343
|
state.doc.descendants((node, pos) => {
|
|
342
344
|
if (node.type.name === 'bodiedSyncBlock' && isOffline) {
|
|
343
345
|
offlineDecorations.push(Decoration.node(pos, pos + node.nodeSize, {
|
|
@@ -354,8 +356,15 @@ export const createPlugin = (options, pmPluginFactoryParams, syncBlockStore, api
|
|
|
354
356
|
class: SyncBlockStateCssClassName.creationLoadingClassName
|
|
355
357
|
}));
|
|
356
358
|
}
|
|
359
|
+
|
|
360
|
+
// Show sync block border while the user is dragging
|
|
361
|
+
if (isDragging && (node.type.name === 'bodiedSyncBlock' || node.type.name === 'syncBlock') && fg('platform_synced_block_patch_5')) {
|
|
362
|
+
dragDecorations.push(Decoration.node(pos, pos + node.nodeSize, {
|
|
363
|
+
class: SyncBlockStateCssClassName.draggingClassName
|
|
364
|
+
}));
|
|
365
|
+
}
|
|
357
366
|
});
|
|
358
|
-
return selectionDecorationSet.add(doc, offlineDecorations).add(doc, viewModeDecorations).add(doc, loadingDecorations);
|
|
367
|
+
return selectionDecorationSet.add(doc, offlineDecorations).add(doc, viewModeDecorations).add(doc, loadingDecorations).add(doc, dragDecorations);
|
|
359
368
|
},
|
|
360
369
|
handleClickOn: createSelectionClickHandler(['bodiedSyncBlock'], target => !!target.closest(`.${BodiedSyncBlockSharedCssClassName.prefix}`), {
|
|
361
370
|
useLongPressSelection
|
package/dist/es2019/ui/Flag.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
|
+
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
|
|
5
6
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
6
7
|
import AkFlag, { AutoDismissFlag, FlagGroup } from '@atlaskit/flag';
|
|
7
8
|
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
@@ -116,7 +117,7 @@ export const Flag = ({
|
|
|
116
117
|
} else if (type === 'info' && action) {
|
|
117
118
|
return [{
|
|
118
119
|
content: formatMessage(action),
|
|
119
|
-
href:
|
|
120
|
+
href: SYNCED_BLOCKS_DOCUMENTATION_URL,
|
|
120
121
|
target: '_blank',
|
|
121
122
|
rel: 'noopener noreferrer'
|
|
122
123
|
}];
|
|
@@ -8,6 +8,7 @@ import { cx } from '@compiled/react';
|
|
|
8
8
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
9
9
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
|
+
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
|
|
11
12
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
12
13
|
import { getPageIdAndTypeFromConfluencePageAri } from '@atlaskit/editor-synced-block-provider';
|
|
13
14
|
import { IconTile } from '@atlaskit/icon';
|
|
@@ -330,7 +331,7 @@ const NoResultScreen = ({
|
|
|
330
331
|
}, formatMessage(messages.syncedLocationDropdownNoResults)), /*#__PURE__*/React.createElement(Text, {
|
|
331
332
|
as: "p"
|
|
332
333
|
}, /*#__PURE__*/React.createElement(Anchor, {
|
|
333
|
-
href:
|
|
334
|
+
href: SYNCED_BLOCKS_DOCUMENTATION_URL,
|
|
334
335
|
target: "_blank",
|
|
335
336
|
rel: "noopener noreferrer",
|
|
336
337
|
xcss: styles.learnMoreLink
|
|
@@ -358,16 +358,18 @@ export var createPlugin = function createPlugin(options, pmPluginFactoryParams,
|
|
|
358
358
|
})
|
|
359
359
|
},
|
|
360
360
|
decorations: function decorations(state) {
|
|
361
|
-
var _currentPluginState$s, _api$connectivity2, _api$editorViewMode;
|
|
361
|
+
var _currentPluginState$s, _api$connectivity2, _api$editorViewMode, _api$userIntent;
|
|
362
362
|
var currentPluginState = syncedBlockPluginKey.getState(state);
|
|
363
363
|
var selectionDecorationSet = (_currentPluginState$s = currentPluginState === null || currentPluginState === void 0 ? void 0 : currentPluginState.selectionDecorationSet) !== null && _currentPluginState$s !== void 0 ? _currentPluginState$s : DecorationSet.empty;
|
|
364
364
|
var syncBlockStore = currentPluginState === null || currentPluginState === void 0 ? void 0 : currentPluginState.syncBlockStore;
|
|
365
365
|
var doc = state.doc;
|
|
366
366
|
var isOffline = isOfflineMode(api === null || api === void 0 || (_api$connectivity2 = api.connectivity) === null || _api$connectivity2 === void 0 || (_api$connectivity2 = _api$connectivity2.sharedState.currentState()) === null || _api$connectivity2 === void 0 ? void 0 : _api$connectivity2.mode);
|
|
367
367
|
var isViewMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 || (_api$editorViewMode = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.mode) === 'view';
|
|
368
|
+
var isDragging = fg('platform_synced_block_patch_5') ? (api === null || api === void 0 || (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 || (_api$userIntent = _api$userIntent.sharedState.currentState()) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.currentUserIntent) === 'dragging' : undefined;
|
|
368
369
|
var offlineDecorations = [];
|
|
369
370
|
var viewModeDecorations = [];
|
|
370
371
|
var loadingDecorations = [];
|
|
372
|
+
var dragDecorations = [];
|
|
371
373
|
state.doc.descendants(function (node, pos) {
|
|
372
374
|
if (node.type.name === 'bodiedSyncBlock' && isOffline) {
|
|
373
375
|
offlineDecorations.push(Decoration.node(pos, pos + node.nodeSize, {
|
|
@@ -384,8 +386,15 @@ export var createPlugin = function createPlugin(options, pmPluginFactoryParams,
|
|
|
384
386
|
class: SyncBlockStateCssClassName.creationLoadingClassName
|
|
385
387
|
}));
|
|
386
388
|
}
|
|
389
|
+
|
|
390
|
+
// Show sync block border while the user is dragging
|
|
391
|
+
if (isDragging && (node.type.name === 'bodiedSyncBlock' || node.type.name === 'syncBlock') && fg('platform_synced_block_patch_5')) {
|
|
392
|
+
dragDecorations.push(Decoration.node(pos, pos + node.nodeSize, {
|
|
393
|
+
class: SyncBlockStateCssClassName.draggingClassName
|
|
394
|
+
}));
|
|
395
|
+
}
|
|
387
396
|
});
|
|
388
|
-
return selectionDecorationSet.add(doc, offlineDecorations).add(doc, viewModeDecorations).add(doc, loadingDecorations);
|
|
397
|
+
return selectionDecorationSet.add(doc, offlineDecorations).add(doc, viewModeDecorations).add(doc, loadingDecorations).add(doc, dragDecorations);
|
|
389
398
|
},
|
|
390
399
|
handleClickOn: createSelectionClickHandler(['bodiedSyncBlock'], function (target) {
|
|
391
400
|
return !!target.closest(".".concat(BodiedSyncBlockSharedCssClassName.prefix));
|
package/dist/esm/ui/Flag.js
CHANGED
|
@@ -5,6 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
7
7
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
8
|
+
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
|
|
8
9
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
9
10
|
import AkFlag, { AutoDismissFlag, FlagGroup } from '@atlaskit/flag';
|
|
10
11
|
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
@@ -101,7 +102,7 @@ export var Flag = function Flag(_ref) {
|
|
|
101
102
|
} else if (type === 'info' && action) {
|
|
102
103
|
return [{
|
|
103
104
|
content: formatMessage(action),
|
|
104
|
-
href:
|
|
105
|
+
href: SYNCED_BLOCKS_DOCUMENTATION_URL,
|
|
105
106
|
target: '_blank',
|
|
106
107
|
rel: 'noopener noreferrer'
|
|
107
108
|
}];
|
|
@@ -16,6 +16,7 @@ import { cx } from '@compiled/react';
|
|
|
16
16
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
17
17
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
18
18
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
19
|
+
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
|
|
19
20
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
20
21
|
import { getPageIdAndTypeFromConfluencePageAri } from '@atlaskit/editor-synced-block-provider';
|
|
21
22
|
import { IconTile } from '@atlaskit/icon';
|
|
@@ -368,7 +369,7 @@ var NoResultScreen = function NoResultScreen(_ref0) {
|
|
|
368
369
|
}, formatMessage(messages.syncedLocationDropdownNoResults)), /*#__PURE__*/React.createElement(Text, {
|
|
369
370
|
as: "p"
|
|
370
371
|
}, /*#__PURE__*/React.createElement(Anchor, {
|
|
371
|
-
href:
|
|
372
|
+
href: SYNCED_BLOCKS_DOCUMENTATION_URL,
|
|
372
373
|
target: "_blank",
|
|
373
374
|
rel: "noopener noreferrer",
|
|
374
375
|
xcss: styles.learnMoreLink
|
|
@@ -6,11 +6,13 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
|
6
6
|
import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
|
|
7
7
|
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
|
|
8
8
|
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
9
|
+
import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format';
|
|
9
10
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
10
11
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
11
12
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
12
13
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
13
14
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
15
|
+
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
14
16
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
15
17
|
import type { SyncBlockDataProviderInterface, UseFetchSyncBlockDataResult } from '@atlaskit/editor-synced-block-provider';
|
|
16
18
|
import type { SyncedBlockSharedState } from './types';
|
|
@@ -77,7 +79,9 @@ export type SyncedBlockPlugin = NextEditorPlugin<'syncedBlock', {
|
|
|
77
79
|
OptionalPlugin<BlockMenuPlugin>,
|
|
78
80
|
OptionalPlugin<AnalyticsPlugin>,
|
|
79
81
|
OptionalPlugin<ConnectivityPlugin>,
|
|
80
|
-
OptionalPlugin<EditorViewModePlugin
|
|
82
|
+
OptionalPlugin<EditorViewModePlugin>,
|
|
83
|
+
OptionalPlugin<ContentFormatPlugin>,
|
|
84
|
+
OptionalPlugin<UserIntentPlugin>
|
|
81
85
|
];
|
|
82
86
|
pluginConfiguration: SyncedBlockPluginOptions | undefined;
|
|
83
87
|
sharedState: SyncedBlockSharedState | undefined;
|
|
@@ -6,11 +6,13 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
|
6
6
|
import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
|
|
7
7
|
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
|
|
8
8
|
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
9
|
+
import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format';
|
|
9
10
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
10
11
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
11
12
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
12
13
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
13
14
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
15
|
+
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
14
16
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
15
17
|
import type { SyncBlockDataProviderInterface, UseFetchSyncBlockDataResult } from '@atlaskit/editor-synced-block-provider';
|
|
16
18
|
import type { SyncedBlockSharedState } from './types';
|
|
@@ -77,7 +79,9 @@ export type SyncedBlockPlugin = NextEditorPlugin<'syncedBlock', {
|
|
|
77
79
|
OptionalPlugin<BlockMenuPlugin>,
|
|
78
80
|
OptionalPlugin<AnalyticsPlugin>,
|
|
79
81
|
OptionalPlugin<ConnectivityPlugin>,
|
|
80
|
-
OptionalPlugin<EditorViewModePlugin
|
|
82
|
+
OptionalPlugin<EditorViewModePlugin>,
|
|
83
|
+
OptionalPlugin<ContentFormatPlugin>,
|
|
84
|
+
OptionalPlugin<UserIntentPlugin>
|
|
81
85
|
];
|
|
82
86
|
pluginConfiguration: SyncedBlockPluginOptions | undefined;
|
|
83
87
|
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.4",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"@atlaskit/tooltip": "^20.14.0",
|
|
56
56
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
|
-
"@compiled/react": "^0.
|
|
58
|
+
"@compiled/react": "^0.20.0",
|
|
59
59
|
"bind-event-listener": "^3.0.0",
|
|
60
60
|
"date-fns": "^2.17.0",
|
|
61
61
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@atlaskit/editor-common": "^111.
|
|
64
|
+
"@atlaskit/editor-common": "^111.24.0",
|
|
65
65
|
"react": "^18.2.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|