@atlaskit/editor-plugin-synced-block 8.4.8 → 8.4.9
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 +9 -0
- package/dist/cjs/ui/DeleteConfirmationModal.js +24 -24
- package/dist/cjs/ui/SyncedLocationDropdown.js +8 -6
- package/dist/es2019/ui/SyncedLocationDropdown.js +2 -0
- package/dist/esm/ui/DeleteConfirmationModal.js +23 -23
- package/dist/esm/ui/SyncedLocationDropdown.js +8 -6
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-synced-block
|
|
2
2
|
|
|
3
|
+
## 8.4.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d1de671baa2aa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d1de671baa2aa) -
|
|
8
|
+
Restore the synced locations dropdown trigger test id when `platform_synced_block_patch_13` is
|
|
9
|
+
enabled.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 8.4.8
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -23,7 +23,7 @@ var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
|
23
23
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
24
24
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
25
25
|
var _main = require("../pm-plugins/main");
|
|
26
|
-
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
|
|
26
|
+
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); }
|
|
27
27
|
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; }
|
|
28
28
|
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; }
|
|
29
29
|
var modalContentMap = {
|
|
@@ -128,29 +128,29 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
|
|
|
128
128
|
fetchReferenceCountRef.current = /*#__PURE__*/function () {
|
|
129
129
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(syncBlockIds) {
|
|
130
130
|
var references;
|
|
131
|
-
return _regenerator.default.wrap(function
|
|
131
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
132
132
|
while (1) switch (_context2.prev = _context2.next) {
|
|
133
133
|
case 0:
|
|
134
|
-
_context2.next =
|
|
134
|
+
_context2.next = 1;
|
|
135
135
|
return Promise.all(syncBlockIds.map( /*#__PURE__*/function () {
|
|
136
136
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(syncBlockId) {
|
|
137
137
|
var _result$references$le, _result$references;
|
|
138
138
|
var result;
|
|
139
|
-
return _regenerator.default.wrap(function
|
|
139
|
+
return _regenerator.default.wrap(function (_context) {
|
|
140
140
|
while (1) switch (_context.prev = _context.next) {
|
|
141
141
|
case 0:
|
|
142
|
-
_context.next =
|
|
142
|
+
_context.next = 1;
|
|
143
143
|
return syncBlockStoreManager.sourceManager.fetchReferences(syncBlockId.resourceId);
|
|
144
|
-
case
|
|
144
|
+
case 1:
|
|
145
145
|
result = _context.sent;
|
|
146
146
|
if (!(result !== null && result !== void 0 && result.error)) {
|
|
147
|
-
_context.next =
|
|
147
|
+
_context.next = 2;
|
|
148
148
|
break;
|
|
149
149
|
}
|
|
150
150
|
throw new Error();
|
|
151
|
-
case
|
|
151
|
+
case 2:
|
|
152
152
|
return _context.abrupt("return", (_result$references$le = (_result$references = result.references) === null || _result$references === void 0 ? void 0 : _result$references.length) !== null && _result$references$le !== void 0 ? _result$references$le : 0);
|
|
153
|
-
case
|
|
153
|
+
case 3:
|
|
154
154
|
case "end":
|
|
155
155
|
return _context.stop();
|
|
156
156
|
}
|
|
@@ -160,12 +160,12 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
|
|
|
160
160
|
return _ref4.apply(this, arguments);
|
|
161
161
|
};
|
|
162
162
|
}()));
|
|
163
|
-
case
|
|
163
|
+
case 1:
|
|
164
164
|
references = _context2.sent;
|
|
165
165
|
return _context2.abrupt("return", references.reduce(function (sum, count) {
|
|
166
166
|
return sum + count;
|
|
167
167
|
}, 0));
|
|
168
|
-
case
|
|
168
|
+
case 2:
|
|
169
169
|
case "end":
|
|
170
170
|
return _context2.stop();
|
|
171
171
|
}
|
|
@@ -177,24 +177,24 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
|
|
|
177
177
|
}();
|
|
178
178
|
var confirmationCallback = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
179
179
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(syncBlockIds, deleteReason) {
|
|
180
|
-
var count, _api$core3, confirmedPromise, _api$core4;
|
|
181
|
-
return _regenerator.default.wrap(function
|
|
180
|
+
var count, _api$core3, confirmedPromise, _api$core4, _t;
|
|
181
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
182
182
|
while (1) switch (_context3.prev = _context3.next) {
|
|
183
183
|
case 0:
|
|
184
184
|
_context3.prev = 0;
|
|
185
|
-
_context3.next =
|
|
185
|
+
_context3.next = 1;
|
|
186
186
|
return fetchReferenceCountRef.current(syncBlockIds);
|
|
187
|
-
case
|
|
187
|
+
case 1:
|
|
188
188
|
count = _context3.sent;
|
|
189
|
-
_context3.next =
|
|
189
|
+
_context3.next = 3;
|
|
190
190
|
break;
|
|
191
|
-
case
|
|
192
|
-
_context3.prev =
|
|
193
|
-
|
|
191
|
+
case 2:
|
|
192
|
+
_context3.prev = 2;
|
|
193
|
+
_t = _context3["catch"](0);
|
|
194
194
|
count = 1;
|
|
195
|
-
case
|
|
195
|
+
case 3:
|
|
196
196
|
if (!(count === 0)) {
|
|
197
|
-
_context3.next =
|
|
197
|
+
_context3.next = 4;
|
|
198
198
|
break;
|
|
199
199
|
}
|
|
200
200
|
// No references — auto-confirm without showing the modal.
|
|
@@ -211,7 +211,7 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
|
|
|
211
211
|
} : {}));
|
|
212
212
|
});
|
|
213
213
|
return _context3.abrupt("return", true);
|
|
214
|
-
case
|
|
214
|
+
case 4:
|
|
215
215
|
setReferenceCount(count);
|
|
216
216
|
setIsOpen(true);
|
|
217
217
|
setSyncBlockIds(syncBlockIds);
|
|
@@ -231,11 +231,11 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
return _context3.abrupt("return", confirmedPromise);
|
|
234
|
-
case
|
|
234
|
+
case 5:
|
|
235
235
|
case "end":
|
|
236
236
|
return _context3.stop();
|
|
237
237
|
}
|
|
238
|
-
}, _callee3, null, [[0,
|
|
238
|
+
}, _callee3, null, [[0, 2]]);
|
|
239
239
|
}));
|
|
240
240
|
return function (_x3, _x4) {
|
|
241
241
|
return _ref5.apply(this, arguments);
|
|
@@ -41,6 +41,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
41
41
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
42
42
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
43
43
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
44
|
+
var _types = require("../types");
|
|
44
45
|
var _excluded = ["triggerRef"];
|
|
45
46
|
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); }
|
|
46
47
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
@@ -373,6 +374,7 @@ var EditorPositionedSyncedLocationDropdown = function EditorPositionedSyncedLoca
|
|
|
373
374
|
var trigger = (0, _react.useMemo)(function () {
|
|
374
375
|
return /*#__PURE__*/React.createElement(_ui.FloatingToolbarButton, {
|
|
375
376
|
areAnyNewToolbarFlagsEnabled: true,
|
|
377
|
+
testId: _types.SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarSyncedLocationsTrigger,
|
|
376
378
|
selected: isOpen,
|
|
377
379
|
iconAfter: /*#__PURE__*/React.createElement(_chevronDown.default, {
|
|
378
380
|
color: "currentColor",
|
|
@@ -471,23 +473,23 @@ var DropdownContent = function DropdownContent(_ref9) {
|
|
|
471
473
|
var getReferenceData = /*#__PURE__*/function () {
|
|
472
474
|
var _ref0 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
473
475
|
var response;
|
|
474
|
-
return _regenerator.default.wrap(function
|
|
476
|
+
return _regenerator.default.wrap(function (_context) {
|
|
475
477
|
while (1) switch (_context.prev = _context.next) {
|
|
476
478
|
case 0:
|
|
477
|
-
_context.next =
|
|
479
|
+
_context.next = 1;
|
|
478
480
|
return syncBlockStore.fetchReferencesSourceInfo(resourceId, localId, isSource);
|
|
479
|
-
case
|
|
481
|
+
case 1:
|
|
480
482
|
response = _context.sent;
|
|
481
483
|
if (!response.error) {
|
|
482
|
-
_context.next =
|
|
484
|
+
_context.next = 2;
|
|
483
485
|
break;
|
|
484
486
|
}
|
|
485
487
|
setFetchStatus('error');
|
|
486
488
|
return _context.abrupt("return");
|
|
487
|
-
case
|
|
489
|
+
case 2:
|
|
488
490
|
setReferenceData(processReferenceData(response.references, intl));
|
|
489
491
|
setFetchStatus('success');
|
|
490
|
-
case
|
|
492
|
+
case 3:
|
|
491
493
|
case "end":
|
|
492
494
|
return _context.stop();
|
|
493
495
|
}
|
|
@@ -29,6 +29,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
29
29
|
import { Box, Text, Inline, Anchor, Stack } from '@atlaskit/primitives/compiled';
|
|
30
30
|
import Spinner from '@atlaskit/spinner';
|
|
31
31
|
import Tooltip from '@atlaskit/tooltip';
|
|
32
|
+
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
32
33
|
const fadeIn = null;
|
|
33
34
|
const headingStyles = null;
|
|
34
35
|
const dropdownItemStyles = null;
|
|
@@ -349,6 +350,7 @@ const EditorPositionedSyncedLocationDropdown = ({
|
|
|
349
350
|
}, [isOpen, setDisableParentScroll]);
|
|
350
351
|
const trigger = useMemo(() => /*#__PURE__*/React.createElement(Button, {
|
|
351
352
|
areAnyNewToolbarFlagsEnabled: true,
|
|
353
|
+
testId: SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarSyncedLocationsTrigger,
|
|
352
354
|
selected: isOpen,
|
|
353
355
|
iconAfter: /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
354
356
|
color: "currentColor",
|
|
@@ -119,29 +119,29 @@ export var DeleteConfirmationModal = function DeleteConfirmationModal(_ref) {
|
|
|
119
119
|
fetchReferenceCountRef.current = /*#__PURE__*/function () {
|
|
120
120
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(syncBlockIds) {
|
|
121
121
|
var references;
|
|
122
|
-
return _regeneratorRuntime.wrap(function
|
|
122
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
123
123
|
while (1) switch (_context2.prev = _context2.next) {
|
|
124
124
|
case 0:
|
|
125
|
-
_context2.next =
|
|
125
|
+
_context2.next = 1;
|
|
126
126
|
return Promise.all(syncBlockIds.map( /*#__PURE__*/function () {
|
|
127
127
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(syncBlockId) {
|
|
128
128
|
var _result$references$le, _result$references;
|
|
129
129
|
var result;
|
|
130
|
-
return _regeneratorRuntime.wrap(function
|
|
130
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
131
131
|
while (1) switch (_context.prev = _context.next) {
|
|
132
132
|
case 0:
|
|
133
|
-
_context.next =
|
|
133
|
+
_context.next = 1;
|
|
134
134
|
return syncBlockStoreManager.sourceManager.fetchReferences(syncBlockId.resourceId);
|
|
135
|
-
case
|
|
135
|
+
case 1:
|
|
136
136
|
result = _context.sent;
|
|
137
137
|
if (!(result !== null && result !== void 0 && result.error)) {
|
|
138
|
-
_context.next =
|
|
138
|
+
_context.next = 2;
|
|
139
139
|
break;
|
|
140
140
|
}
|
|
141
141
|
throw new Error();
|
|
142
|
-
case
|
|
142
|
+
case 2:
|
|
143
143
|
return _context.abrupt("return", (_result$references$le = (_result$references = result.references) === null || _result$references === void 0 ? void 0 : _result$references.length) !== null && _result$references$le !== void 0 ? _result$references$le : 0);
|
|
144
|
-
case
|
|
144
|
+
case 3:
|
|
145
145
|
case "end":
|
|
146
146
|
return _context.stop();
|
|
147
147
|
}
|
|
@@ -151,12 +151,12 @@ export var DeleteConfirmationModal = function DeleteConfirmationModal(_ref) {
|
|
|
151
151
|
return _ref4.apply(this, arguments);
|
|
152
152
|
};
|
|
153
153
|
}()));
|
|
154
|
-
case
|
|
154
|
+
case 1:
|
|
155
155
|
references = _context2.sent;
|
|
156
156
|
return _context2.abrupt("return", references.reduce(function (sum, count) {
|
|
157
157
|
return sum + count;
|
|
158
158
|
}, 0));
|
|
159
|
-
case
|
|
159
|
+
case 2:
|
|
160
160
|
case "end":
|
|
161
161
|
return _context2.stop();
|
|
162
162
|
}
|
|
@@ -168,24 +168,24 @@ export var DeleteConfirmationModal = function DeleteConfirmationModal(_ref) {
|
|
|
168
168
|
}();
|
|
169
169
|
var confirmationCallback = useCallback( /*#__PURE__*/function () {
|
|
170
170
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(syncBlockIds, deleteReason) {
|
|
171
|
-
var count, _api$core3, confirmedPromise, _api$core4;
|
|
172
|
-
return _regeneratorRuntime.wrap(function
|
|
171
|
+
var count, _api$core3, confirmedPromise, _api$core4, _t;
|
|
172
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
173
173
|
while (1) switch (_context3.prev = _context3.next) {
|
|
174
174
|
case 0:
|
|
175
175
|
_context3.prev = 0;
|
|
176
|
-
_context3.next =
|
|
176
|
+
_context3.next = 1;
|
|
177
177
|
return fetchReferenceCountRef.current(syncBlockIds);
|
|
178
|
-
case
|
|
178
|
+
case 1:
|
|
179
179
|
count = _context3.sent;
|
|
180
|
-
_context3.next =
|
|
180
|
+
_context3.next = 3;
|
|
181
181
|
break;
|
|
182
|
-
case
|
|
183
|
-
_context3.prev =
|
|
184
|
-
|
|
182
|
+
case 2:
|
|
183
|
+
_context3.prev = 2;
|
|
184
|
+
_t = _context3["catch"](0);
|
|
185
185
|
count = 1;
|
|
186
|
-
case
|
|
186
|
+
case 3:
|
|
187
187
|
if (!(count === 0)) {
|
|
188
|
-
_context3.next =
|
|
188
|
+
_context3.next = 4;
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
191
191
|
// No references — auto-confirm without showing the modal.
|
|
@@ -202,7 +202,7 @@ export var DeleteConfirmationModal = function DeleteConfirmationModal(_ref) {
|
|
|
202
202
|
} : {}));
|
|
203
203
|
});
|
|
204
204
|
return _context3.abrupt("return", true);
|
|
205
|
-
case
|
|
205
|
+
case 4:
|
|
206
206
|
setReferenceCount(count);
|
|
207
207
|
setIsOpen(true);
|
|
208
208
|
setSyncBlockIds(syncBlockIds);
|
|
@@ -222,11 +222,11 @@ export var DeleteConfirmationModal = function DeleteConfirmationModal(_ref) {
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
return _context3.abrupt("return", confirmedPromise);
|
|
225
|
-
case
|
|
225
|
+
case 5:
|
|
226
226
|
case "end":
|
|
227
227
|
return _context3.stop();
|
|
228
228
|
}
|
|
229
|
-
}, _callee3, null, [[0,
|
|
229
|
+
}, _callee3, null, [[0, 2]]);
|
|
230
230
|
}));
|
|
231
231
|
return function (_x3, _x4) {
|
|
232
232
|
return _ref5.apply(this, arguments);
|
|
@@ -37,6 +37,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
37
37
|
import { Box, Text, Inline, Anchor, Stack } from '@atlaskit/primitives/compiled';
|
|
38
38
|
import Spinner from '@atlaskit/spinner';
|
|
39
39
|
import Tooltip from '@atlaskit/tooltip';
|
|
40
|
+
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
40
41
|
var fadeIn = null;
|
|
41
42
|
var headingStyles = null;
|
|
42
43
|
var dropdownItemStyles = null;
|
|
@@ -364,6 +365,7 @@ var EditorPositionedSyncedLocationDropdown = function EditorPositionedSyncedLoca
|
|
|
364
365
|
var trigger = useMemo(function () {
|
|
365
366
|
return /*#__PURE__*/React.createElement(Button, {
|
|
366
367
|
areAnyNewToolbarFlagsEnabled: true,
|
|
368
|
+
testId: SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarSyncedLocationsTrigger,
|
|
367
369
|
selected: isOpen,
|
|
368
370
|
iconAfter: /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
369
371
|
color: "currentColor",
|
|
@@ -462,23 +464,23 @@ var DropdownContent = function DropdownContent(_ref9) {
|
|
|
462
464
|
var getReferenceData = /*#__PURE__*/function () {
|
|
463
465
|
var _ref0 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
464
466
|
var response;
|
|
465
|
-
return _regeneratorRuntime.wrap(function
|
|
467
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
466
468
|
while (1) switch (_context.prev = _context.next) {
|
|
467
469
|
case 0:
|
|
468
|
-
_context.next =
|
|
470
|
+
_context.next = 1;
|
|
469
471
|
return syncBlockStore.fetchReferencesSourceInfo(resourceId, localId, isSource);
|
|
470
|
-
case
|
|
472
|
+
case 1:
|
|
471
473
|
response = _context.sent;
|
|
472
474
|
if (!response.error) {
|
|
473
|
-
_context.next =
|
|
475
|
+
_context.next = 2;
|
|
474
476
|
break;
|
|
475
477
|
}
|
|
476
478
|
setFetchStatus('error');
|
|
477
479
|
return _context.abrupt("return");
|
|
478
|
-
case
|
|
480
|
+
case 2:
|
|
479
481
|
setReferenceData(processReferenceData(response.references, intl));
|
|
480
482
|
setFetchStatus('success');
|
|
481
|
-
case
|
|
483
|
+
case 3:
|
|
482
484
|
case "end":
|
|
483
485
|
return _context.stop();
|
|
484
486
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.9",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^52.
|
|
31
|
+
"@atlaskit/adf-schema": "^52.15.0",
|
|
32
32
|
"@atlaskit/button": "23.11.8",
|
|
33
33
|
"@atlaskit/dropdown-menu": "16.9.7",
|
|
34
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
34
|
+
"@atlaskit/editor-json-transformer": "^8.33.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-block-menu": "^9.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-connectivity": "10.1.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
46
46
|
"@atlaskit/editor-synced-block-provider": "^6.6.0",
|
|
47
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
47
|
+
"@atlaskit/editor-toolbar": "^1.8.0",
|
|
48
48
|
"@atlaskit/flag": "^17.12.0",
|
|
49
49
|
"@atlaskit/icon": "35.3.0",
|
|
50
50
|
"@atlaskit/icon-lab": "^6.12.0",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
55
55
|
"@atlaskit/primitives": "^19.0.0",
|
|
56
56
|
"@atlaskit/spinner": "19.1.2",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^84.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^84.3.0",
|
|
58
58
|
"@atlaskit/tokens": "13.0.4",
|
|
59
|
-
"@atlaskit/tooltip": "^22.
|
|
59
|
+
"@atlaskit/tooltip": "^22.4.0",
|
|
60
60
|
"@atlaskit/visually-hidden": "^3.1.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
62
62
|
"@compiled/react": "^0.20.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"date-fns": "^2.17.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@atlaskit/editor-common": "^114.
|
|
67
|
+
"@atlaskit/editor-common": "^114.50.0",
|
|
68
68
|
"react": "^18.2.0",
|
|
69
69
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
70
70
|
},
|