@atlaskit/editor-plugin-synced-block 13.0.18 → 13.0.19
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 +10 -0
- package/afm-cc/tsconfig.json +12 -0
- package/afm-products/tsconfig.json +12 -0
- package/dist/cjs/ui/CreateSyncedBlockDropdownItem.js +3 -3
- package/dist/cjs/ui/DeleteConfirmationModal.js +14 -9
- package/dist/cjs/ui/Flag.js +5 -5
- package/dist/cjs/ui/SyncBlockLabel.js +2 -2
- package/dist/cjs/ui/SyncedLocationDropdown.js +14 -12
- package/dist/cjs/ui/quick-insert.js +3 -3
- package/dist/es2019/ui/CreateSyncedBlockDropdownItem.js +2 -2
- package/dist/es2019/ui/DeleteConfirmationModal.js +8 -3
- package/dist/es2019/ui/Flag.js +3 -1
- package/dist/es2019/ui/SyncBlockLabel.js +1 -1
- package/dist/es2019/ui/SyncedLocationDropdown.js +8 -6
- package/dist/es2019/ui/quick-insert.js +2 -2
- package/dist/esm/ui/CreateSyncedBlockDropdownItem.js +2 -2
- package/dist/esm/ui/DeleteConfirmationModal.js +8 -3
- package/dist/esm/ui/Flag.js +3 -1
- package/dist/esm/ui/SyncBlockLabel.js +1 -1
- package/dist/esm/ui/SyncedLocationDropdown.js +8 -6
- package/dist/esm/ui/quick-insert.js +2 -2
- package/dist/types/syncedBlockPluginType.d.ts +1 -1
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-synced-block
|
|
2
2
|
|
|
3
|
+
## 13.0.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
8
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
9
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
10
|
+
changes.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 13.0.18
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
{
|
|
38
38
|
"path": "../../editor-plugin-analytics/afm-cc/tsconfig.json"
|
|
39
39
|
},
|
|
40
|
+
{
|
|
41
|
+
"path": "../../editor-plugin-block-controls/afm-cc/tsconfig.json"
|
|
42
|
+
},
|
|
40
43
|
{
|
|
41
44
|
"path": "../../editor-plugin-block-menu/afm-cc/tsconfig.json"
|
|
42
45
|
},
|
|
@@ -52,6 +55,9 @@
|
|
|
52
55
|
{
|
|
53
56
|
"path": "../../editor-plugin-editor-disabled/afm-cc/tsconfig.json"
|
|
54
57
|
},
|
|
58
|
+
{
|
|
59
|
+
"path": "../../editor-plugin-editor-viewmode/afm-cc/tsconfig.json"
|
|
60
|
+
},
|
|
55
61
|
{
|
|
56
62
|
"path": "../../editor-plugin-floating-toolbar/afm-cc/tsconfig.json"
|
|
57
63
|
},
|
|
@@ -61,6 +67,12 @@
|
|
|
61
67
|
{
|
|
62
68
|
"path": "../../editor-plugin-selection/afm-cc/tsconfig.json"
|
|
63
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"path": "../../editor-plugin-toolbar/afm-cc/tsconfig.json"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"path": "../../editor-plugin-ui-control-registry/afm-cc/tsconfig.json"
|
|
75
|
+
},
|
|
64
76
|
{
|
|
65
77
|
"path": "../../editor-plugin-user-intent/afm-cc/tsconfig.json"
|
|
66
78
|
},
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
{
|
|
38
38
|
"path": "../../editor-plugin-analytics/afm-products/tsconfig.json"
|
|
39
39
|
},
|
|
40
|
+
{
|
|
41
|
+
"path": "../../editor-plugin-block-controls/afm-products/tsconfig.json"
|
|
42
|
+
},
|
|
40
43
|
{
|
|
41
44
|
"path": "../../editor-plugin-block-menu/afm-products/tsconfig.json"
|
|
42
45
|
},
|
|
@@ -52,6 +55,9 @@
|
|
|
52
55
|
{
|
|
53
56
|
"path": "../../editor-plugin-editor-disabled/afm-products/tsconfig.json"
|
|
54
57
|
},
|
|
58
|
+
{
|
|
59
|
+
"path": "../../editor-plugin-editor-viewmode/afm-products/tsconfig.json"
|
|
60
|
+
},
|
|
55
61
|
{
|
|
56
62
|
"path": "../../editor-plugin-floating-toolbar/afm-products/tsconfig.json"
|
|
57
63
|
},
|
|
@@ -61,6 +67,12 @@
|
|
|
61
67
|
{
|
|
62
68
|
"path": "../../editor-plugin-selection/afm-products/tsconfig.json"
|
|
63
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"path": "../../editor-plugin-toolbar/afm-products/tsconfig.json"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"path": "../../editor-plugin-ui-control-registry/afm-products/tsconfig.json"
|
|
75
|
+
},
|
|
64
76
|
{
|
|
65
77
|
"path": "../../editor-plugin-user-intent/afm-products/tsconfig.json"
|
|
66
78
|
},
|
|
@@ -13,8 +13,8 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
15
15
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
16
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
17
|
-
var
|
|
16
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
17
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
19
|
var _utils = require("../pm-plugins/utils/utils");
|
|
20
20
|
var _types = require("../types");
|
|
@@ -22,7 +22,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
22
22
|
var SyncedBlockNewLozenge = function SyncedBlockNewLozenge(_ref) {
|
|
23
23
|
var label = _ref.label;
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement(_lozenge.default, {
|
|
25
|
-
appearance: (0,
|
|
25
|
+
appearance: (0, _fg.fg)('confluence_fronend_labels_categorization_migration') ? 'discovery' : 'new'
|
|
26
26
|
}, label);
|
|
27
27
|
};
|
|
28
28
|
var CreateSyncedBlockDropdownItem = function CreateSyncedBlockDropdownItem(_ref2) {
|
|
@@ -15,14 +15,19 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _reactIntl = require("react-intl");
|
|
18
|
-
var
|
|
18
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
19
19
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
20
20
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
21
21
|
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
22
|
-
var _modalDialog =
|
|
22
|
+
var _modalDialog = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-dialog"));
|
|
23
|
+
var _modalBody = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-body"));
|
|
24
|
+
var _modalFooter = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-footer"));
|
|
25
|
+
var _modalHeader = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-header"));
|
|
26
|
+
var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
|
|
27
|
+
var _modalTransition = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-transition"));
|
|
23
28
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
24
29
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
25
|
-
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
30
|
+
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
26
31
|
var _main = require("../pm-plugins/main");
|
|
27
32
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
28
33
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -302,7 +307,7 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
|
|
|
302
307
|
// References are fetched and set before the modal opens in
|
|
303
308
|
// confirmationCallback, so no additional fetch is needed here.
|
|
304
309
|
|
|
305
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
310
|
+
return /*#__PURE__*/_react.default.createElement(_modalTransition.default, null, isOpen && /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
|
|
306
311
|
onClose: handleClick(false),
|
|
307
312
|
testId: "sync-block-delete-confirmation",
|
|
308
313
|
height: 184
|
|
@@ -340,18 +345,18 @@ var ModalContent = function ModalContent(_ref0) {
|
|
|
340
345
|
var isReferenceCountDescriptionEnabled = deleteReason === 'source-block-deleted' && (0, _fg.fg)('platform_editor_blocks_patch_7');
|
|
341
346
|
var descriptionLocationCount = isReferenceCountDescriptionEnabled ? referenceCount : totalLocationCount;
|
|
342
347
|
var descriptionMultipleMessage = isReferenceCountDescriptionEnabled ? _messages.syncBlockMessages.deletionConfirmationModalDescriptionReferenceCount : descriptionMultiple;
|
|
343
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
348
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_modalHeader.default, {
|
|
344
349
|
hasCloseButton: true
|
|
345
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
350
|
+
}, /*#__PURE__*/_react.default.createElement(_modalTitle.default, {
|
|
346
351
|
appearance: "warning"
|
|
347
352
|
}, hasNoReferenceOrFailToFetch ? formatMessage(titleSingle) : formatMessage(titleMultiple, {
|
|
348
353
|
count: totalLocationCount
|
|
349
|
-
}))), /*#__PURE__*/_react.default.createElement(
|
|
354
|
+
}))), /*#__PURE__*/_react.default.createElement(_modalBody.default, null, /*#__PURE__*/_react.default.createElement(_compiled.Text, null, hasNoReferenceOrFailToFetch ? formatMessage(descriptionSingle) : formatMessage(descriptionMultipleMessage, {
|
|
350
355
|
syncBlockCount: descriptionLocationCount
|
|
351
|
-
}))), /*#__PURE__*/_react.default.createElement(
|
|
356
|
+
}))), /*#__PURE__*/_react.default.createElement(_modalFooter.default, null, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
352
357
|
appearance: "subtle",
|
|
353
358
|
onClick: handleClick(false)
|
|
354
|
-
}, formatMessage(_messages.syncBlockMessages.deleteConfirmationModalCancelButton)), /*#__PURE__*/_react.default.createElement(
|
|
359
|
+
}, formatMessage(_messages.syncBlockMessages.deleteConfirmationModalCancelButton)), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
355
360
|
appearance: "warning",
|
|
356
361
|
onClick: handleClick(true),
|
|
357
362
|
autoFocus: true,
|
package/dist/cjs/ui/Flag.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
@@ -16,7 +15,9 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
16
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
17
16
|
var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
18
17
|
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
19
|
-
var _flag =
|
|
18
|
+
var _flag = _interopRequireDefault(require("@atlaskit/flag/flag"));
|
|
19
|
+
var _autoDismissFlag = _interopRequireDefault(require("@atlaskit/flag/auto-dismiss-flag"));
|
|
20
|
+
var _flagGroup = require("@atlaskit/flag/flag-group");
|
|
20
21
|
var _megaphone = _interopRequireDefault(require("@atlaskit/icon/core/megaphone"));
|
|
21
22
|
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
22
23
|
var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
|
|
@@ -24,7 +25,6 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
|
24
25
|
var _main = require("../pm-plugins/main");
|
|
25
26
|
var _types = require("../types");
|
|
26
27
|
var _flagMap;
|
|
27
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
28
28
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
29
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
30
|
var feedbackFlagStyles = null;
|
|
@@ -186,7 +186,7 @@ var Flag = exports.Flag = function Flag(_ref) {
|
|
|
186
186
|
}
|
|
187
187
|
return undefined;
|
|
188
188
|
};
|
|
189
|
-
var FlagComponent = type === 'info' ?
|
|
189
|
+
var FlagComponent = type === 'info' ? _autoDismissFlag.default : _flag.default;
|
|
190
190
|
var flag = /*#__PURE__*/_react.default.createElement(FlagComponent, {
|
|
191
191
|
onDismissed: onDismissed,
|
|
192
192
|
title: formatMessage(title),
|
|
@@ -196,7 +196,7 @@ var Flag = exports.Flag = function Flag(_ref) {
|
|
|
196
196
|
icon: typeToIcon(type),
|
|
197
197
|
actions: typeToActions()
|
|
198
198
|
});
|
|
199
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
199
|
+
return /*#__PURE__*/_react.default.createElement(_flagGroup.FlagGroup, null, type === 'feedback' ? /*#__PURE__*/_react.default.createElement("div", {
|
|
200
200
|
id: activeFlag.id,
|
|
201
201
|
className: (0, _runtime.ax)(["_btc7grf3"])
|
|
202
202
|
}, flag) : flag);
|
|
@@ -14,7 +14,7 @@ var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
|
14
14
|
var _blockSynced = _interopRequireDefault(require("@atlaskit/icon-lab/core/block-synced"));
|
|
15
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
16
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
|
-
var
|
|
17
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
18
18
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
|
|
19
19
|
var _time = require("./utils/time");
|
|
20
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -102,7 +102,7 @@ var SyncBlockLabelComponent = function SyncBlockLabelComponent(_ref) {
|
|
|
102
102
|
if (isSource || isUnsyncedBlock) {
|
|
103
103
|
return label;
|
|
104
104
|
}
|
|
105
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
105
|
+
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
106
106
|
position: "top",
|
|
107
107
|
content: tooltipContent
|
|
108
108
|
// workaround because tooltip adds aria-describedby with a new id every time the tooltip is opened
|
|
@@ -15,14 +15,15 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
15
15
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
17
|
var _react2 = require("@compiled/react");
|
|
18
|
-
var
|
|
18
|
+
var _dropdownMenuItem = _interopRequireDefault(require("@atlaskit/dropdown-menu/dropdown-menu-item"));
|
|
19
|
+
var _dropdownMenuItemGroup = _interopRequireDefault(require("@atlaskit/dropdown-menu/dropdown-menu-item-group"));
|
|
19
20
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
20
21
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
21
22
|
var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
22
23
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
23
24
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
24
25
|
var _editorSyncedBlockProvider = require("@atlaskit/editor-synced-block-provider");
|
|
25
|
-
var
|
|
26
|
+
var _iconTile = _interopRequireDefault(require("@atlaskit/icon/icon-tile"));
|
|
26
27
|
var _pageLiveDoc = _interopRequireDefault(require("@atlaskit/icon-lab/core/page-live-doc"));
|
|
27
28
|
var _bug = _interopRequireDefault(require("@atlaskit/icon/core/bug"));
|
|
28
29
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
@@ -33,13 +34,14 @@ var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-er
|
|
|
33
34
|
var _story = _interopRequireDefault(require("@atlaskit/icon/core/story"));
|
|
34
35
|
var _subtasks = _interopRequireDefault(require("@atlaskit/icon/core/subtasks"));
|
|
35
36
|
var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
37
|
+
var _atlassianIcon = require("@atlaskit/logo/atlassian-icon");
|
|
36
38
|
var _logo = require("@atlaskit/logo");
|
|
37
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
39
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
38
40
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
39
|
-
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
41
|
+
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
40
42
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
41
43
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
42
|
-
var
|
|
44
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
43
45
|
var _types = require("../types");
|
|
44
46
|
var _SyncedLocationsEmptyStateIllustration = require("./assets/SyncedLocationsEmptyStateIllustration");
|
|
45
47
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -120,7 +122,7 @@ var getConfluenceSubTypeIcon = function getConfluenceSubTypeIcon(sourceAri, subT
|
|
|
120
122
|
var ProductIcon = function ProductIcon(_ref2) {
|
|
121
123
|
var _productIconMap$produ;
|
|
122
124
|
var product = _ref2.product;
|
|
123
|
-
var ProductIcon = product ? (_productIconMap$produ = productIconMap[product]) !== null && _productIconMap$produ !== void 0 ? _productIconMap$produ :
|
|
125
|
+
var ProductIcon = product ? (_productIconMap$produ = productIconMap[product]) !== null && _productIconMap$produ !== void 0 ? _productIconMap$produ : _atlassianIcon.AtlassianIcon : _atlassianIcon.AtlassianIcon;
|
|
124
126
|
return /*#__PURE__*/React.createElement("span", {
|
|
125
127
|
className: (0, _runtime.ax)(["_2rkol0p1 _bfhki8nm _1bsbgktf _4t3igktf _1e0c1txw _4cvr1h6o _1bah1h6o"])
|
|
126
128
|
}, /*#__PURE__*/React.createElement(ProductIcon, {
|
|
@@ -205,7 +207,7 @@ var renderJiraIssueTypeIcon = function renderJiraIssueTypeIcon(issueType, intl)
|
|
|
205
207
|
var mapped = jiraIssueTypeIconMap[issueType.name];
|
|
206
208
|
if (mapped) {
|
|
207
209
|
var label = intl.formatMessage(_messages.syncBlockMessages[mapped.messageKey]);
|
|
208
|
-
return /*#__PURE__*/React.createElement(
|
|
210
|
+
return /*#__PURE__*/React.createElement(_iconTile.default, {
|
|
209
211
|
icon: mapped.icon,
|
|
210
212
|
label: label,
|
|
211
213
|
appearance: 'gray',
|
|
@@ -218,7 +220,7 @@ var renderJiraIssueTypeIcon = function renderJiraIssueTypeIcon(issueType, intl)
|
|
|
218
220
|
if (issueType.iconUrl) {
|
|
219
221
|
var CustomIcon = createCustomIssueTypeIcon(issueType.iconUrl);
|
|
220
222
|
var _label = intl.formatMessage(_messages.syncBlockMessages.syncedLocationDropdownIssueTypeGeneric);
|
|
221
|
-
return /*#__PURE__*/React.createElement(
|
|
223
|
+
return /*#__PURE__*/React.createElement(_iconTile.default, {
|
|
222
224
|
icon: CustomIcon,
|
|
223
225
|
label: _label,
|
|
224
226
|
appearance: 'gray',
|
|
@@ -236,7 +238,7 @@ var ItemIcon = function ItemIcon(_ref3) {
|
|
|
236
238
|
sourceAri = reference.sourceAri,
|
|
237
239
|
issueType = reference.issueType;
|
|
238
240
|
if (productType === 'confluence-page' && hasAccess) {
|
|
239
|
-
return /*#__PURE__*/React.createElement(
|
|
241
|
+
return /*#__PURE__*/React.createElement(_iconTile.default, {
|
|
240
242
|
icon: getConfluenceSubTypeIcon(sourceAri, subType),
|
|
241
243
|
label: "",
|
|
242
244
|
appearance: 'gray',
|
|
@@ -680,7 +682,7 @@ var DropdownContentWithReferenceData = function DropdownContentWithReferenceData
|
|
|
680
682
|
return /*#__PURE__*/React.createElement("div", {
|
|
681
683
|
"data-testid": "synced-locations-dropdown-content",
|
|
682
684
|
className: (0, _runtime.ax)([styles.contentContainer, "_ku9g126e _18bk1rpy"])
|
|
683
|
-
}, /*#__PURE__*/React.createElement(
|
|
685
|
+
}, /*#__PURE__*/React.createElement(_dropdownMenuItemGroup.default, {
|
|
684
686
|
title: formatMessage(_messages.syncBlockMessages.syncedLocationDropdownHeading, {
|
|
685
687
|
count: "".concat(referenceData.length > 99 ? '99+' : referenceData.length)
|
|
686
688
|
})
|
|
@@ -689,9 +691,9 @@ var DropdownContentWithReferenceData = function DropdownContentWithReferenceData
|
|
|
689
691
|
return /*#__PURE__*/React.createElement("div", {
|
|
690
692
|
key: reference.title,
|
|
691
693
|
className: (0, _runtime.ax)(["_2ll012x7"])
|
|
692
|
-
}, /*#__PURE__*/React.createElement(
|
|
694
|
+
}, /*#__PURE__*/React.createElement(_Tooltip.default, {
|
|
693
695
|
content: title
|
|
694
|
-
}, /*#__PURE__*/React.createElement(
|
|
696
|
+
}, /*#__PURE__*/React.createElement(_dropdownMenuItem.default, {
|
|
695
697
|
elemBefore: /*#__PURE__*/React.createElement(ItemIcon, {
|
|
696
698
|
reference: reference,
|
|
697
699
|
intl: intl
|
|
@@ -13,8 +13,8 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
13
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
15
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
16
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
17
|
-
var
|
|
16
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
17
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
19
|
var _editorCommands = require("../editor-commands");
|
|
20
20
|
var _types = require("../types");
|
|
@@ -38,7 +38,7 @@ var getQuickInsertConfig = exports.getQuickInsertConfig = function getQuickInser
|
|
|
38
38
|
lozenge: /*#__PURE__*/React.createElement("span", {
|
|
39
39
|
className: (0, _runtime.ax)(["_1o9zidpf _16jlidpf _1e0c116y"])
|
|
40
40
|
}, /*#__PURE__*/React.createElement(_lozenge.default, {
|
|
41
|
-
appearance: (0,
|
|
41
|
+
appearance: (0, _fg.fg)('confluence_fronend_labels_categorization_migration') ? 'discovery' : 'new'
|
|
42
42
|
}, formatMessage(_messages.blockTypeMessages.newLozenge))),
|
|
43
43
|
icon: function icon() {
|
|
44
44
|
return /*#__PURE__*/React.createElement(_quickInsert.IconSyncBlock, {
|
|
@@ -5,8 +5,8 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
5
5
|
import { blockMenuMessages, syncBlockMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
7
7
|
import { SyncBlocksIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
8
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { canBeConvertedToSyncBlock } from '../pm-plugins/utils/utils';
|
|
12
12
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
@@ -3,14 +3,19 @@ import "./DeleteConfirmationModal.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import Button from '@atlaskit/button/
|
|
6
|
+
import Button from '@atlaskit/button/default/button';
|
|
7
7
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
8
8
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
10
|
-
import ModalDialog
|
|
10
|
+
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
11
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
12
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
13
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
14
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
15
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
11
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
17
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
13
|
-
import Spinner from '@atlaskit/spinner';
|
|
18
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
14
19
|
import { syncedBlockPluginKey } from '../pm-plugins/main';
|
|
15
20
|
const modalContentMap = {
|
|
16
21
|
'source-block-deleted': {
|
package/dist/es2019/ui/Flag.js
CHANGED
|
@@ -7,7 +7,9 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
7
7
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
8
8
|
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
|
|
9
9
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
10
|
-
import AkFlag
|
|
10
|
+
import AkFlag from '@atlaskit/flag/flag';
|
|
11
|
+
import AutoDismissFlag from '@atlaskit/flag/auto-dismiss-flag';
|
|
12
|
+
import { FlagGroup } from '@atlaskit/flag/flag-group';
|
|
11
13
|
import MegaphoneIcon from '@atlaskit/icon/core/megaphone';
|
|
12
14
|
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
13
15
|
import StatusWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
@@ -5,7 +5,7 @@ import { SyncBlockLabelSharedCssClassName } from '@atlaskit/editor-common/sync-b
|
|
|
5
5
|
import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
|
|
6
6
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
8
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
9
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
10
10
|
import { formatElapsedTime } from './utils/time';
|
|
11
11
|
const SyncBlockLabelDataId = 'sync-block-label';
|
|
@@ -4,14 +4,15 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
|
-
import
|
|
7
|
+
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
8
|
+
import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group';
|
|
8
9
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
9
10
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
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 { ArrowKeyNavigationType, DropdownContainer } from '@atlaskit/editor-common/ui-menu';
|
|
13
14
|
import { getPageIdAndTypeFromConfluencePageAri } from '@atlaskit/editor-synced-block-provider';
|
|
14
|
-
import
|
|
15
|
+
import IconTile from '@atlaskit/icon/icon-tile';
|
|
15
16
|
// eslint-disable-next-line import/order -- CI requires icon-lab imports before core icon imports.
|
|
16
17
|
import PageLiveDocIcon from '@atlaskit/icon-lab/core/page-live-doc';
|
|
17
18
|
import BugIcon from '@atlaskit/icon/core/bug';
|
|
@@ -23,13 +24,14 @@ import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
|
23
24
|
import StoryIcon from '@atlaskit/icon/core/story';
|
|
24
25
|
import SubtaskIcon from '@atlaskit/icon/core/subtasks';
|
|
25
26
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
27
|
+
import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
|
|
28
|
+
import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
29
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
28
30
|
import { Box, Text, Inline, Anchor, Stack } from '@atlaskit/primitives/compiled';
|
|
29
|
-
import Spinner from '@atlaskit/spinner';
|
|
31
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
30
32
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
31
33
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
32
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
34
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
33
35
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
34
36
|
import { SyncedLocationsEmptyStateIllustration } from './assets/SyncedLocationsEmptyStateIllustration';
|
|
35
37
|
const fadeIn = null;
|
|
@@ -5,8 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { IconSyncBlock } from '@atlaskit/editor-common/quick-insert';
|
|
8
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { createSyncedBlock } from '../editor-commands';
|
|
12
12
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
@@ -5,8 +5,8 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
5
5
|
import { blockMenuMessages, syncBlockMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
7
7
|
import { SyncBlocksIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
8
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { canBeConvertedToSyncBlock } from '../pm-plugins/utils/utils';
|
|
12
12
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
@@ -9,14 +9,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
|
-
import Button from '@atlaskit/button/
|
|
12
|
+
import Button from '@atlaskit/button/default/button';
|
|
13
13
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
14
14
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
15
15
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
16
|
-
import ModalDialog
|
|
16
|
+
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
17
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
18
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
19
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
20
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
21
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
17
22
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
23
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
19
|
-
import Spinner from '@atlaskit/spinner';
|
|
24
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
20
25
|
import { syncedBlockPluginKey } from '../pm-plugins/main';
|
|
21
26
|
var modalContentMap = {
|
|
22
27
|
'source-block-deleted': {
|
package/dist/esm/ui/Flag.js
CHANGED
|
@@ -11,7 +11,9 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
11
11
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
|
|
13
13
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
14
|
-
import AkFlag
|
|
14
|
+
import AkFlag from '@atlaskit/flag/flag';
|
|
15
|
+
import AutoDismissFlag from '@atlaskit/flag/auto-dismiss-flag';
|
|
16
|
+
import { FlagGroup } from '@atlaskit/flag/flag-group';
|
|
15
17
|
import MegaphoneIcon from '@atlaskit/icon/core/megaphone';
|
|
16
18
|
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
17
19
|
import StatusWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
@@ -6,7 +6,7 @@ import { SyncBlockLabelSharedCssClassName } from '@atlaskit/editor-common/sync-b
|
|
|
6
6
|
import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
|
|
7
7
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
11
11
|
import { formatElapsedTime } from './utils/time';
|
|
12
12
|
var SyncBlockLabelDataId = 'sync-block-label';
|
|
@@ -10,14 +10,15 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
10
10
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
11
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
12
12
|
import { cx } from '@compiled/react';
|
|
13
|
-
import
|
|
13
|
+
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
14
|
+
import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group';
|
|
14
15
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
15
16
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
16
17
|
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
|
|
17
18
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
18
19
|
import { ArrowKeyNavigationType, DropdownContainer } from '@atlaskit/editor-common/ui-menu';
|
|
19
20
|
import { getPageIdAndTypeFromConfluencePageAri } from '@atlaskit/editor-synced-block-provider';
|
|
20
|
-
import
|
|
21
|
+
import IconTile from '@atlaskit/icon/icon-tile';
|
|
21
22
|
// eslint-disable-next-line import/order -- CI requires icon-lab imports before core icon imports.
|
|
22
23
|
import PageLiveDocIcon from '@atlaskit/icon-lab/core/page-live-doc';
|
|
23
24
|
import BugIcon from '@atlaskit/icon/core/bug';
|
|
@@ -29,13 +30,14 @@ import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
|
29
30
|
import StoryIcon from '@atlaskit/icon/core/story';
|
|
30
31
|
import SubtaskIcon from '@atlaskit/icon/core/subtasks';
|
|
31
32
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
33
|
+
import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
|
|
34
|
+
import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
35
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
34
36
|
import { Box, Text, Inline, Anchor, Stack } from '@atlaskit/primitives/compiled';
|
|
35
|
-
import Spinner from '@atlaskit/spinner';
|
|
37
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
36
38
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
37
39
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
38
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
40
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
39
41
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
40
42
|
import { SyncedLocationsEmptyStateIllustration } from './assets/SyncedLocationsEmptyStateIllustration';
|
|
41
43
|
var fadeIn = null;
|
|
@@ -5,8 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { IconSyncBlock } from '@atlaskit/editor-common/quick-insert';
|
|
8
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { createSyncedBlock } from '../editor-commands';
|
|
12
12
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import type { EditorCommand, ExtractInjectionAPI, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
4
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
5
5
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.19",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,14 +25,18 @@
|
|
|
25
25
|
"@atlaskit/dropdown-menu": "18.2.0",
|
|
26
26
|
"@atlaskit/editor-json-transformer": "^9.6.0",
|
|
27
27
|
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-block-controls": "^16.1.0",
|
|
28
29
|
"@atlaskit/editor-plugin-block-menu": "^14.2.0",
|
|
29
|
-
"@atlaskit/editor-plugin-connectivity": "15.0.
|
|
30
|
+
"@atlaskit/editor-plugin-connectivity": "15.0.1",
|
|
30
31
|
"@atlaskit/editor-plugin-content-format": "^9.0.0",
|
|
31
32
|
"@atlaskit/editor-plugin-decorations": "^15.0.0",
|
|
32
33
|
"@atlaskit/editor-plugin-editor-disabled": "^15.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^17.0.0",
|
|
33
35
|
"@atlaskit/editor-plugin-floating-toolbar": "^17.0.0",
|
|
34
36
|
"@atlaskit/editor-plugin-focus": "^14.0.0",
|
|
35
37
|
"@atlaskit/editor-plugin-selection": "^15.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-toolbar": "^12.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^9.0.0",
|
|
36
40
|
"@atlaskit/editor-plugin-user-intent": "^13.0.0",
|
|
37
41
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
38
42
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|