@atlaskit/editor-plugin-synced-block 5.4.2 → 5.4.3
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 +7 -0
- package/dist/cjs/ui/Flag.js +2 -1
- package/dist/cjs/ui/SyncedLocationDropdown.js +2 -1
- package/dist/es2019/ui/Flag.js +2 -1
- package/dist/es2019/ui/SyncedLocationDropdown.js +2 -1
- package/dist/esm/ui/Flag.js +2 -1
- package/dist/esm/ui/SyncedLocationDropdown.js +2 -1
- package/dist/types/syncedBlockPluginType.d.ts +3 -1
- package/dist/types-ts4.5/syncedBlockPluginType.d.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-synced-block
|
|
2
2
|
|
|
3
|
+
## 5.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`514037bd94288`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/514037bd94288) -
|
|
8
|
+
[ux] EDITOR-5588 pass content mode setting to reference sync block
|
|
9
|
+
|
|
3
10
|
## 5.4.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
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
|
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
|
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,6 +6,7 @@ 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';
|
|
@@ -77,7 +78,8 @@ export type SyncedBlockPlugin = NextEditorPlugin<'syncedBlock', {
|
|
|
77
78
|
OptionalPlugin<BlockMenuPlugin>,
|
|
78
79
|
OptionalPlugin<AnalyticsPlugin>,
|
|
79
80
|
OptionalPlugin<ConnectivityPlugin>,
|
|
80
|
-
OptionalPlugin<EditorViewModePlugin
|
|
81
|
+
OptionalPlugin<EditorViewModePlugin>,
|
|
82
|
+
OptionalPlugin<ContentFormatPlugin>
|
|
81
83
|
];
|
|
82
84
|
pluginConfiguration: SyncedBlockPluginOptions | undefined;
|
|
83
85
|
sharedState: SyncedBlockSharedState | undefined;
|
|
@@ -6,6 +6,7 @@ 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';
|
|
@@ -77,7 +78,8 @@ export type SyncedBlockPlugin = NextEditorPlugin<'syncedBlock', {
|
|
|
77
78
|
OptionalPlugin<BlockMenuPlugin>,
|
|
78
79
|
OptionalPlugin<AnalyticsPlugin>,
|
|
79
80
|
OptionalPlugin<ConnectivityPlugin>,
|
|
80
|
-
OptionalPlugin<EditorViewModePlugin
|
|
81
|
+
OptionalPlugin<EditorViewModePlugin>,
|
|
82
|
+
OptionalPlugin<ContentFormatPlugin>
|
|
81
83
|
];
|
|
82
84
|
pluginConfiguration: SyncedBlockPluginOptions | undefined;
|
|
83
85
|
sharedState: SyncedBlockSharedState | undefined;
|