@atlaskit/editor-common 96.4.0 → 96.4.1
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/analytics/analytics-queue.js +4 -5
- package/dist/cjs/annotation/index.js +9 -10
- package/dist/cjs/element-browser/ElementBrowser.js +11 -14
- package/dist/cjs/event-dispatcher/index.js +1 -2
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +7 -10
- package/dist/cjs/extensibility/Extension.js +6 -9
- package/dist/cjs/extensibility/ExtensionComponent.js +25 -30
- package/dist/cjs/extensibility/extensionNodeView.js +5 -7
- package/dist/cjs/extensions/default-extension-provider.js +1 -2
- package/dist/cjs/lazy-node-view/lazy-scheduler.js +1 -1
- package/dist/cjs/lazy-node-view/node-view.js +1 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +39 -45
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +5 -7
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +9 -12
- package/dist/cjs/link/LinkSearch/index.js +13 -16
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +6 -9
- package/dist/cjs/media-inline/inline-image-wrapper.js +1 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/portal/PortalManager.js +1 -2
- package/dist/cjs/preset/builder.js +2 -4
- package/dist/cjs/preset/editor-commands.js +4 -5
- package/dist/cjs/preset/plugin-injection-api.js +4 -8
- package/dist/cjs/provider-factory/provider-factory.js +1 -2
- package/dist/cjs/provider-factory/with-providers.js +8 -11
- package/dist/cjs/react-node-view/index.js +1 -2
- package/dist/cjs/safe-plugin/index.js +4 -5
- package/dist/cjs/selection/gap-cursor/selection.js +7 -11
- package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +10 -13
- package/dist/cjs/styles/shared/media-single.js +21 -20
- package/dist/cjs/styles/shared/paragraph.js +1 -1
- package/dist/cjs/styles/shared/shadow.js +9 -8
- package/dist/cjs/styles/shared/table.js +1 -1
- package/dist/cjs/types/annotation/emitter.js +1 -2
- package/dist/cjs/ui/Caption/index.js +5 -7
- package/dist/cjs/ui/ContextPanel/context.js +8 -11
- package/dist/cjs/ui/DropList/index.js +22 -25
- package/dist/cjs/ui/ErrorBoundary/index.js +6 -9
- package/dist/cjs/ui/Expand/sharedStyles.js +1 -1
- package/dist/cjs/ui/IntlErrorBoundary/index.js +6 -9
- package/dist/cjs/ui/Layer/index.js +9 -12
- package/dist/cjs/ui/Mention/index.js +6 -9
- package/dist/cjs/ui/Mention/mention-with-providers.js +6 -9
- package/dist/cjs/ui/Messages/index.js +1 -1
- package/dist/cjs/ui/OverflowShadow/index.js +13 -16
- package/dist/cjs/ui/OverflowShadow/shadowObserver.js +3 -5
- package/dist/cjs/ui/PanelTextInput/index.js +10 -13
- package/dist/cjs/ui/Popup/index.js +14 -17
- package/dist/cjs/ui/ResizerLegacy/index.js +12 -16
- package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +5 -7
- package/dist/cjs/ui/with-outer-listeners.js +10 -13
- package/dist/cjs/ui-menu/Dropdown/index.js +9 -12
- package/dist/cjs/ui-menu/DropdownMenu/index.js +11 -14
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +8 -11
- package/dist/cjs/utils/error-reporter.js +1 -2
- package/dist/cjs/utils/hyperlink.js +2 -4
- package/dist/cjs/utils/imageLoader.js +14 -19
- package/dist/cjs/utils/profiler/render-count.js +1 -2
- package/dist/cjs/utils/traversor.js +1 -2
- package/dist/cjs/with-plugin-state/index.js +28 -35
- package/dist/es2019/analytics/analytics-queue.js +3 -3
- package/dist/es2019/lazy-node-view/lazy-scheduler.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/paragraph.js +1 -1
- package/dist/es2019/styles/shared/table.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/sharedStyles.js +1 -1
- package/dist/es2019/ui/Messages/index.js +1 -1
- package/dist/esm/analytics/analytics-queue.js +4 -5
- package/dist/esm/annotation/index.js +9 -10
- package/dist/esm/element-browser/ElementBrowser.js +11 -14
- package/dist/esm/event-dispatcher/index.js +1 -2
- package/dist/esm/extensibility/Extension/Lozenge/index.js +7 -10
- package/dist/esm/extensibility/Extension.js +6 -9
- package/dist/esm/extensibility/ExtensionComponent.js +25 -30
- package/dist/esm/extensibility/extensionNodeView.js +5 -7
- package/dist/esm/extensions/default-extension-provider.js +1 -2
- package/dist/esm/lazy-node-view/lazy-scheduler.js +1 -1
- package/dist/esm/lazy-node-view/node-view.js +1 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +39 -45
- package/dist/esm/link/LinkSearch/LinkSearchList.js +5 -7
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +9 -12
- package/dist/esm/link/LinkSearch/index.js +13 -16
- package/dist/esm/link/LinkSearch/withActivityProvider.js +6 -9
- package/dist/esm/media-inline/inline-image-wrapper.js +1 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/portal/PortalManager.js +1 -2
- package/dist/esm/preset/builder.js +2 -4
- package/dist/esm/preset/editor-commands.js +4 -5
- package/dist/esm/preset/plugin-injection-api.js +4 -8
- package/dist/esm/provider-factory/provider-factory.js +1 -2
- package/dist/esm/provider-factory/with-providers.js +8 -11
- package/dist/esm/react-node-view/index.js +1 -2
- package/dist/esm/safe-plugin/index.js +4 -5
- package/dist/esm/selection/gap-cursor/selection.js +7 -11
- package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +10 -13
- package/dist/esm/styles/shared/media-single.js +19 -20
- package/dist/esm/styles/shared/paragraph.js +1 -1
- package/dist/esm/styles/shared/shadow.js +7 -8
- package/dist/esm/styles/shared/table.js +1 -1
- package/dist/esm/types/annotation/emitter.js +1 -2
- package/dist/esm/ui/Caption/index.js +5 -7
- package/dist/esm/ui/ContextPanel/context.js +8 -11
- package/dist/esm/ui/DropList/index.js +22 -25
- package/dist/esm/ui/ErrorBoundary/index.js +6 -9
- package/dist/esm/ui/Expand/sharedStyles.js +1 -1
- package/dist/esm/ui/IntlErrorBoundary/index.js +6 -9
- package/dist/esm/ui/Layer/index.js +9 -12
- package/dist/esm/ui/Mention/index.js +6 -9
- package/dist/esm/ui/Mention/mention-with-providers.js +6 -9
- package/dist/esm/ui/Messages/index.js +1 -1
- package/dist/esm/ui/OverflowShadow/index.js +13 -16
- package/dist/esm/ui/OverflowShadow/shadowObserver.js +3 -5
- package/dist/esm/ui/PanelTextInput/index.js +10 -13
- package/dist/esm/ui/Popup/index.js +14 -17
- package/dist/esm/ui/ResizerLegacy/index.js +12 -16
- package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +5 -7
- package/dist/esm/ui/with-outer-listeners.js +10 -13
- package/dist/esm/ui-menu/Dropdown/index.js +9 -12
- package/dist/esm/ui-menu/DropdownMenu/index.js +11 -14
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +8 -11
- package/dist/esm/utils/error-reporter.js +1 -2
- package/dist/esm/utils/hyperlink.js +2 -4
- package/dist/esm/utils/imageLoader.js +14 -19
- package/dist/esm/utils/profiler/render-count.js +1 -2
- package/dist/esm/utils/traversor.js +1 -2
- package/dist/esm/with-plugin-state/index.js +28 -35
- package/package.json +3 -3
|
@@ -3,13 +3,12 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
5
5
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
6
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
7
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
8
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
9
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
10
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
11
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
12
|
-
function
|
|
11
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
13
|
/**
|
|
15
14
|
* @jsxRuntime classic
|
|
@@ -153,20 +152,18 @@ var mapSearchProviderResultToLinkSearchItemData = function mapSearchProviderResu
|
|
|
153
152
|
};
|
|
154
153
|
};
|
|
155
154
|
export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
156
|
-
_inherits(HyperlinkLinkAddToolbar, _PureComponent);
|
|
157
|
-
var _super = _createSuper(HyperlinkLinkAddToolbar);
|
|
158
155
|
function HyperlinkLinkAddToolbar(props) {
|
|
159
156
|
var _this;
|
|
160
157
|
_classCallCheck(this, HyperlinkLinkAddToolbar);
|
|
161
|
-
_this =
|
|
158
|
+
_this = _callSuper(this, HyperlinkLinkAddToolbar, [props]);
|
|
162
159
|
/* To prevent double submit */
|
|
163
|
-
_defineProperty(
|
|
164
|
-
_defineProperty(
|
|
165
|
-
_defineProperty(
|
|
166
|
-
_defineProperty(
|
|
167
|
-
_defineProperty(
|
|
168
|
-
_defineProperty(
|
|
169
|
-
_defineProperty(
|
|
160
|
+
_defineProperty(_this, "submitted", false);
|
|
161
|
+
_defineProperty(_this, "urlInputContainer", null);
|
|
162
|
+
_defineProperty(_this, "displayTextInputContainer", null);
|
|
163
|
+
_defineProperty(_this, "wrapperRef", /*#__PURE__*/React.createRef());
|
|
164
|
+
_defineProperty(_this, "quickSearchQueryVersion", 0);
|
|
165
|
+
_defineProperty(_this, "analyticSource", 'createLinkInlineDialog');
|
|
166
|
+
_defineProperty(_this, "quickSearch", /*#__PURE__*/function () {
|
|
170
167
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(input, items, quickSearchLimit) {
|
|
171
168
|
var _this$state, searchProvider, displayUrl, searchSessionId, queryVersion, perfStart, searchProviderResultItems, searchItems, perfStop, duration, _perfStop, _duration;
|
|
172
169
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -271,7 +268,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
271
268
|
return _ref3.apply(this, arguments);
|
|
272
269
|
};
|
|
273
270
|
}());
|
|
274
|
-
_defineProperty(
|
|
271
|
+
_defineProperty(_this, "updateInput", /*#__PURE__*/function () {
|
|
275
272
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(input) {
|
|
276
273
|
var _this$state2, activityProvider, searchProvider, items, shouldQuerySearchProvider;
|
|
277
274
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -337,58 +334,55 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
337
334
|
return _ref4.apply(this, arguments);
|
|
338
335
|
};
|
|
339
336
|
}());
|
|
340
|
-
_defineProperty(
|
|
337
|
+
_defineProperty(_this, "createClearHandler", function (field) {
|
|
341
338
|
return /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
342
|
-
var activityProvider
|
|
339
|
+
var activityProvider;
|
|
343
340
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
344
341
|
while (1) switch (_context3.prev = _context3.next) {
|
|
345
342
|
case 0:
|
|
346
343
|
activityProvider = _this.state.activityProvider;
|
|
347
344
|
_context3.t0 = field;
|
|
348
|
-
_context3.next = _context3.t0 === 'displayUrl' ? 4 : _context3.t0 === 'displayText' ?
|
|
345
|
+
_context3.next = _context3.t0 === 'displayUrl' ? 4 : _context3.t0 === 'displayText' ? 21 : 23;
|
|
349
346
|
break;
|
|
350
347
|
case 4:
|
|
351
348
|
_context3.t1 = _this;
|
|
352
|
-
_this$setState = {};
|
|
353
|
-
_defineProperty(_this$setState, field, '');
|
|
354
349
|
_context3.t2 = _defineProperty;
|
|
355
|
-
_context3.t3 =
|
|
350
|
+
_context3.t3 = _defineProperty({}, field, '');
|
|
356
351
|
if (!activityProvider) {
|
|
357
|
-
_context3.next =
|
|
352
|
+
_context3.next = 15;
|
|
358
353
|
break;
|
|
359
354
|
}
|
|
360
355
|
_context3.t5 = limit;
|
|
361
|
-
_context3.next =
|
|
356
|
+
_context3.next = 11;
|
|
362
357
|
return activityProvider.getRecentItems();
|
|
363
|
-
case
|
|
358
|
+
case 11:
|
|
364
359
|
_context3.t6 = _context3.sent;
|
|
365
360
|
_context3.t4 = (0, _context3.t5)(_context3.t6);
|
|
366
|
-
_context3.next =
|
|
361
|
+
_context3.next = 16;
|
|
367
362
|
break;
|
|
368
|
-
case
|
|
363
|
+
case 15:
|
|
369
364
|
_context3.t4 = [];
|
|
370
|
-
case
|
|
365
|
+
case 16:
|
|
371
366
|
_context3.t7 = _context3.t4;
|
|
372
|
-
(0, _context3.t2)(_context3.t3, "items", _context3.t7);
|
|
373
|
-
_context3.t8 = _this$setState;
|
|
367
|
+
_context3.t8 = (0, _context3.t2)(_context3.t3, "items", _context3.t7);
|
|
374
368
|
_context3.t1.setState.call(_context3.t1, _context3.t8);
|
|
375
369
|
if (_this.urlInputContainer) {
|
|
376
370
|
_this.urlInputContainer.focus();
|
|
377
371
|
}
|
|
378
|
-
return _context3.abrupt("break",
|
|
379
|
-
case
|
|
372
|
+
return _context3.abrupt("break", 23);
|
|
373
|
+
case 21:
|
|
380
374
|
_this.setState(_defineProperty({}, field, ''));
|
|
381
375
|
if (_this.displayTextInputContainer) {
|
|
382
376
|
_this.displayTextInputContainer.focus();
|
|
383
377
|
}
|
|
384
|
-
case
|
|
378
|
+
case 23:
|
|
385
379
|
case "end":
|
|
386
380
|
return _context3.stop();
|
|
387
381
|
}
|
|
388
382
|
}, _callee3);
|
|
389
383
|
}));
|
|
390
384
|
});
|
|
391
|
-
_defineProperty(
|
|
385
|
+
_defineProperty(_this, "handleClickOutside", function (event) {
|
|
392
386
|
if (event.target instanceof Element && _this.wrapperRef.current && !_this.wrapperRef.current.contains(event.target)) {
|
|
393
387
|
var _this$props = _this.props,
|
|
394
388
|
_this$props$view = _this$props.view,
|
|
@@ -398,7 +392,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
398
392
|
onClickAwayCallback === null || onClickAwayCallback === void 0 || onClickAwayCallback(state, dispatch);
|
|
399
393
|
}
|
|
400
394
|
});
|
|
401
|
-
_defineProperty(
|
|
395
|
+
_defineProperty(_this, "getScreenReaderText", function () {
|
|
402
396
|
var intl = _this.props.intl;
|
|
403
397
|
var _this$state3 = _this.state,
|
|
404
398
|
items = _this$state3.items,
|
|
@@ -413,7 +407,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
413
407
|
return "".concat(name, ", ").concat(_container, ", ").concat(date === null || date === void 0 ? void 0 : date.pageAction, " ").concat(date === null || date === void 0 ? void 0 : date.dateString, " ").concat((date === null || date === void 0 ? void 0 : date.timeSince) || '');
|
|
414
408
|
}
|
|
415
409
|
});
|
|
416
|
-
_defineProperty(
|
|
410
|
+
_defineProperty(_this, "isUrlPopulatedWithSelectedItem", function () {
|
|
417
411
|
/**
|
|
418
412
|
* When we use ArrowKey to navigate through result items,
|
|
419
413
|
* the URL field will be populated with the content of
|
|
@@ -433,10 +427,10 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
433
427
|
}
|
|
434
428
|
return false;
|
|
435
429
|
});
|
|
436
|
-
_defineProperty(
|
|
430
|
+
_defineProperty(_this, "handleSelected", function (href, text) {
|
|
437
431
|
_this.handleInsert(href, text, INPUT_METHOD.TYPEAHEAD, 'click');
|
|
438
432
|
});
|
|
439
|
-
_defineProperty(
|
|
433
|
+
_defineProperty(_this, "handleInsert", function (href, title, inputType, interaction) {
|
|
440
434
|
var _this$props2 = _this.props,
|
|
441
435
|
searchSessionId = _this$props2.searchSessionId,
|
|
442
436
|
onSubmit = _this$props2.onSubmit;
|
|
@@ -472,7 +466,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
472
466
|
});
|
|
473
467
|
}
|
|
474
468
|
});
|
|
475
|
-
_defineProperty(
|
|
469
|
+
_defineProperty(_this, "handleMouseEnterResultItem", function (objectId) {
|
|
476
470
|
var items = _this.state.items;
|
|
477
471
|
var index = findIndex(items, function (item) {
|
|
478
472
|
return item.objectId === objectId;
|
|
@@ -481,7 +475,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
481
475
|
selectedIndex: index
|
|
482
476
|
});
|
|
483
477
|
});
|
|
484
|
-
_defineProperty(
|
|
478
|
+
_defineProperty(_this, "handleMouseLeaveResultItem", function (objectId) {
|
|
485
479
|
var _this$state6 = _this.state,
|
|
486
480
|
items = _this$state6.items,
|
|
487
481
|
selectedIndex = _this$state6.selectedIndex;
|
|
@@ -495,7 +489,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
495
489
|
});
|
|
496
490
|
}
|
|
497
491
|
});
|
|
498
|
-
_defineProperty(
|
|
492
|
+
_defineProperty(_this, "handleSubmit", function () {
|
|
499
493
|
var _this$state7 = _this.state,
|
|
500
494
|
displayUrl = _this$state7.displayUrl,
|
|
501
495
|
selectedIndex = _this$state7.selectedIndex,
|
|
@@ -510,7 +504,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
510
504
|
}
|
|
511
505
|
}
|
|
512
506
|
});
|
|
513
|
-
_defineProperty(
|
|
507
|
+
_defineProperty(_this, "handleClearTextKeyDown", function (event) {
|
|
514
508
|
var KEY_CODE_TAB = 9;
|
|
515
509
|
var keyCode = event.keyCode;
|
|
516
510
|
if (keyCode === KEY_CODE_TAB) {
|
|
@@ -525,7 +519,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
525
519
|
return;
|
|
526
520
|
}
|
|
527
521
|
});
|
|
528
|
-
_defineProperty(
|
|
522
|
+
_defineProperty(_this, "handleKeyDown", function (event) {
|
|
529
523
|
var _this$state9 = _this.state,
|
|
530
524
|
items = _this$state9.items,
|
|
531
525
|
selectedIndex = _this$state9.selectedIndex;
|
|
@@ -576,12 +570,12 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
576
570
|
});
|
|
577
571
|
}
|
|
578
572
|
});
|
|
579
|
-
_defineProperty(
|
|
573
|
+
_defineProperty(_this, "updateTextInput", function (displayText) {
|
|
580
574
|
_this.setState({
|
|
581
575
|
displayText: displayText
|
|
582
576
|
});
|
|
583
577
|
});
|
|
584
|
-
_defineProperty(
|
|
578
|
+
_defineProperty(_this, "handleCancel", function (e) {
|
|
585
579
|
var _this$props4 = _this.props,
|
|
586
580
|
_this$props4$view = _this$props4.view,
|
|
587
581
|
state = _this$props4$view.state,
|
|
@@ -605,7 +599,8 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
605
599
|
_this.fireCustomAnalytics = fireAnalyticsEvent(props.createAnalyticsEvent);
|
|
606
600
|
return _this;
|
|
607
601
|
}
|
|
608
|
-
|
|
602
|
+
_inherits(HyperlinkLinkAddToolbar, _PureComponent);
|
|
603
|
+
return _createClass(HyperlinkLinkAddToolbar, [{
|
|
609
604
|
key: "componentDidMount",
|
|
610
605
|
value: function () {
|
|
611
606
|
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
@@ -936,7 +931,6 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
936
931
|
})));
|
|
937
932
|
}
|
|
938
933
|
}]);
|
|
939
|
-
return HyperlinkLinkAddToolbar;
|
|
940
934
|
}(PureComponent);
|
|
941
935
|
function findIndex(array, predicate) {
|
|
942
936
|
var index = -1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
/**
|
|
9
9
|
* @jsxRuntime classic
|
|
@@ -32,13 +32,12 @@ export var linkSearchList = css({
|
|
|
32
32
|
listStyle: 'none'
|
|
33
33
|
});
|
|
34
34
|
var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
35
|
-
_inherits(LinkSearchList, _PureComponent);
|
|
36
|
-
var _super = _createSuper(LinkSearchList);
|
|
37
35
|
function LinkSearchList() {
|
|
38
36
|
_classCallCheck(this, LinkSearchList);
|
|
39
|
-
return
|
|
37
|
+
return _callSuper(this, LinkSearchList, arguments);
|
|
40
38
|
}
|
|
41
|
-
|
|
39
|
+
_inherits(LinkSearchList, _PureComponent);
|
|
40
|
+
return _createClass(LinkSearchList, [{
|
|
42
41
|
key: "render",
|
|
43
42
|
value: function render() {
|
|
44
43
|
var _this$props = this.props,
|
|
@@ -87,6 +86,5 @@ var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
|
87
86
|
}, itemsContent, loadingContent);
|
|
88
87
|
}
|
|
89
88
|
}]);
|
|
90
|
-
return LinkSearchList;
|
|
91
89
|
}(PureComponent);
|
|
92
90
|
export { LinkSearchList as default };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
9
|
/**
|
|
11
10
|
* @jsxRuntime classic
|
|
@@ -65,35 +64,33 @@ var iconStyle = css({
|
|
|
65
64
|
}
|
|
66
65
|
});
|
|
67
66
|
var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
68
|
-
_inherits(LinkSearchListItem, _React$PureComponent);
|
|
69
|
-
var _super = _createSuper(LinkSearchListItem);
|
|
70
67
|
function LinkSearchListItem() {
|
|
71
68
|
var _this;
|
|
72
69
|
_classCallCheck(this, LinkSearchListItem);
|
|
73
70
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
74
71
|
args[_key] = arguments[_key];
|
|
75
72
|
}
|
|
76
|
-
_this =
|
|
77
|
-
_defineProperty(
|
|
73
|
+
_this = _callSuper(this, LinkSearchListItem, [].concat(args));
|
|
74
|
+
_defineProperty(_this, "handleSelect", function (e) {
|
|
78
75
|
e.preventDefault(); // don't let editor lose focus
|
|
79
76
|
var _this$props = _this.props,
|
|
80
77
|
item = _this$props.item,
|
|
81
78
|
onSelect = _this$props.onSelect;
|
|
82
79
|
onSelect(item.url, item.name);
|
|
83
80
|
});
|
|
84
|
-
_defineProperty(
|
|
81
|
+
_defineProperty(_this, "handleMouseMove", function () {
|
|
85
82
|
var _this$props2 = _this.props,
|
|
86
83
|
onMouseMove = _this$props2.onMouseMove,
|
|
87
84
|
item = _this$props2.item;
|
|
88
85
|
onMouseMove && onMouseMove(item.objectId);
|
|
89
86
|
});
|
|
90
|
-
_defineProperty(
|
|
87
|
+
_defineProperty(_this, "handleMouseEnter", function () {
|
|
91
88
|
var _this$props3 = _this.props,
|
|
92
89
|
onMouseEnter = _this$props3.onMouseEnter,
|
|
93
90
|
item = _this$props3.item;
|
|
94
91
|
onMouseEnter && onMouseEnter(item.objectId);
|
|
95
92
|
});
|
|
96
|
-
_defineProperty(
|
|
93
|
+
_defineProperty(_this, "handleMouseLeave", function () {
|
|
97
94
|
var _this$props4 = _this.props,
|
|
98
95
|
onMouseLeave = _this$props4.onMouseLeave,
|
|
99
96
|
item = _this$props4.item;
|
|
@@ -101,7 +98,8 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
101
98
|
});
|
|
102
99
|
return _this;
|
|
103
100
|
}
|
|
104
|
-
|
|
101
|
+
_inherits(LinkSearchListItem, _React$PureComponent);
|
|
102
|
+
return _createClass(LinkSearchListItem, [{
|
|
105
103
|
key: "renderIcon",
|
|
106
104
|
value: function renderIcon() {
|
|
107
105
|
var _this$props5 = this.props,
|
|
@@ -168,6 +166,5 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
168
166
|
);
|
|
169
167
|
}
|
|
170
168
|
}]);
|
|
171
|
-
return LinkSearchListItem;
|
|
172
169
|
}(React.PureComponent);
|
|
173
170
|
export default injectIntl(LinkSearchListItem);
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
8
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
|
-
function
|
|
9
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
11
|
import React from 'react';
|
|
13
12
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -20,14 +19,12 @@ var limit = function limit(items, max) {
|
|
|
20
19
|
return items.slice(0, max);
|
|
21
20
|
};
|
|
22
21
|
var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
23
|
-
_inherits(RecentLink, _React$Component);
|
|
24
|
-
var _super = _createSuper(RecentLink);
|
|
25
22
|
function RecentLink(props) {
|
|
26
23
|
var _this;
|
|
27
24
|
_classCallCheck(this, RecentLink);
|
|
28
|
-
_this =
|
|
29
|
-
_defineProperty(
|
|
30
|
-
_defineProperty(
|
|
25
|
+
_this = _callSuper(this, RecentLink, [props]);
|
|
26
|
+
_defineProperty(_this, "activityProvider", null);
|
|
27
|
+
_defineProperty(_this, "handleSubmit", function () {
|
|
31
28
|
var _this$state = _this.state,
|
|
32
29
|
items = _this$state.items,
|
|
33
30
|
url = _this$state.url,
|
|
@@ -65,7 +62,7 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
64
|
});
|
|
68
|
-
_defineProperty(
|
|
65
|
+
_defineProperty(_this, "handleSelected", function (href, text) {
|
|
69
66
|
if (_this.props.onSubmit) {
|
|
70
67
|
_this.setState(function () {
|
|
71
68
|
return {
|
|
@@ -79,7 +76,7 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
79
76
|
});
|
|
80
77
|
}
|
|
81
78
|
});
|
|
82
|
-
_defineProperty(
|
|
79
|
+
_defineProperty(_this, "handleChange", /*#__PURE__*/function () {
|
|
83
80
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(input) {
|
|
84
81
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
85
82
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -135,7 +132,7 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
135
132
|
return _ref.apply(this, arguments);
|
|
136
133
|
};
|
|
137
134
|
}());
|
|
138
|
-
_defineProperty(
|
|
135
|
+
_defineProperty(_this, "handleKeyDown", function (e) {
|
|
139
136
|
var _this$state2 = _this.state,
|
|
140
137
|
items = _this$state2.items,
|
|
141
138
|
selectedIndex = _this$state2.selectedIndex;
|
|
@@ -156,7 +153,7 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
156
153
|
});
|
|
157
154
|
}
|
|
158
155
|
});
|
|
159
|
-
_defineProperty(
|
|
156
|
+
_defineProperty(_this, "handleMouseMove", function (objectId) {
|
|
160
157
|
var items = _this.state.items;
|
|
161
158
|
if (items) {
|
|
162
159
|
var index = items.findIndex(function (item) {
|
|
@@ -167,7 +164,7 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
167
164
|
});
|
|
168
165
|
}
|
|
169
166
|
});
|
|
170
|
-
_defineProperty(
|
|
167
|
+
_defineProperty(_this, "renderRecentList", function () {
|
|
171
168
|
var _this$state3 = _this.state,
|
|
172
169
|
items = _this$state3.items,
|
|
173
170
|
isLoading = _this$state3.isLoading,
|
|
@@ -180,7 +177,7 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
180
177
|
onMouseMove: _this.handleMouseMove
|
|
181
178
|
});
|
|
182
179
|
});
|
|
183
|
-
_defineProperty(
|
|
180
|
+
_defineProperty(_this, "clearValue", function () {
|
|
184
181
|
_this.setState({
|
|
185
182
|
url: ''
|
|
186
183
|
});
|
|
@@ -193,7 +190,8 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
193
190
|
};
|
|
194
191
|
return _this;
|
|
195
192
|
}
|
|
196
|
-
|
|
193
|
+
_inherits(RecentLink, _React$Component);
|
|
194
|
+
return _createClass(RecentLink, [{
|
|
197
195
|
key: "UNSAFE_componentWillReceiveProps",
|
|
198
196
|
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
199
197
|
if (!fg('platform_editor_react18_phase2_v2')) {
|
|
@@ -333,7 +331,6 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
|
|
|
333
331
|
});
|
|
334
332
|
}
|
|
335
333
|
}]);
|
|
336
|
-
return RecentLink;
|
|
337
334
|
}(React.Component);
|
|
338
335
|
_defineProperty(RecentLink, "defaultProps", {
|
|
339
336
|
limit: DEFAULT_ITEMS_LIMIT
|
|
@@ -2,13 +2,12 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
6
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
9
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
9
|
var _excluded = ["providerFactory"];
|
|
11
|
-
function
|
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
12
|
import React from 'react';
|
|
14
13
|
import { WithProviders } from '../../provider-factory';
|
|
@@ -16,16 +15,14 @@ import { WithProviders } from '../../provider-factory';
|
|
|
16
15
|
|
|
17
16
|
export default function withActivityProvider(WrappedComponent) {
|
|
18
17
|
return /*#__PURE__*/function (_React$Component) {
|
|
19
|
-
_inherits(WithActivityProvider, _React$Component);
|
|
20
|
-
var _super = _createSuper(WithActivityProvider);
|
|
21
18
|
function WithActivityProvider() {
|
|
22
19
|
var _this;
|
|
23
20
|
_classCallCheck(this, WithActivityProvider);
|
|
24
21
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25
22
|
args[_key] = arguments[_key];
|
|
26
23
|
}
|
|
27
|
-
_this =
|
|
28
|
-
_defineProperty(
|
|
24
|
+
_this = _callSuper(this, WithActivityProvider, [].concat(args));
|
|
25
|
+
_defineProperty(_this, "renderNode", function (providers) {
|
|
29
26
|
var _ref = _this.props,
|
|
30
27
|
providerFactory = _ref.providerFactory,
|
|
31
28
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -36,7 +33,8 @@ export default function withActivityProvider(WrappedComponent) {
|
|
|
36
33
|
});
|
|
37
34
|
return _this;
|
|
38
35
|
}
|
|
39
|
-
|
|
36
|
+
_inherits(WithActivityProvider, _React$Component);
|
|
37
|
+
return _createClass(WithActivityProvider, [{
|
|
40
38
|
key: "render",
|
|
41
39
|
value: function render() {
|
|
42
40
|
var providerFactory = this.props.providerFactory;
|
|
@@ -47,6 +45,5 @@ export default function withActivityProvider(WrappedComponent) {
|
|
|
47
45
|
});
|
|
48
46
|
}
|
|
49
47
|
}]);
|
|
50
|
-
return WithActivityProvider;
|
|
51
48
|
}(React.Component);
|
|
52
49
|
}
|
|
@@ -22,7 +22,6 @@ var sizeWrapperStyle = css({
|
|
|
22
22
|
height: '100%'
|
|
23
23
|
});
|
|
24
24
|
export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
25
|
-
var _ref2;
|
|
26
25
|
var children = _ref.children,
|
|
27
26
|
isSelected = _ref.isSelected,
|
|
28
27
|
aspectRatio = _ref.aspectRatio,
|
|
@@ -31,7 +30,7 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
|
31
30
|
_ref$htmlAttrs = _ref.htmlAttrs,
|
|
32
31
|
htmlAttrs = _ref$htmlAttrs === void 0 ? {} : _ref$htmlAttrs,
|
|
33
32
|
onClick = _ref.onClick;
|
|
34
|
-
var borderStyleVars = borderSize && borderColor ? (
|
|
33
|
+
var borderStyleVars = borderSize && borderColor ? _defineProperty(_defineProperty({}, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, borderSize), INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, hexToEditorBorderPaletteColor(borderColor) || borderColor) : {};
|
|
35
34
|
var aspectStyleVars = aspectRatio ? _defineProperty({}, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, aspectRatio) : {};
|
|
36
35
|
return (
|
|
37
36
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "96.4.
|
|
10
|
+
var packageVersion = "96.4.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -69,7 +69,7 @@ export var PortalManager = /*#__PURE__*/function () {
|
|
|
69
69
|
this.portalRendererUpdater = null;
|
|
70
70
|
this.scaleCapacityThreshold = maxBucketCapacity / 2;
|
|
71
71
|
}
|
|
72
|
-
_createClass(PortalManager, [{
|
|
72
|
+
return _createClass(PortalManager, [{
|
|
73
73
|
key: "getCurrentBucket",
|
|
74
74
|
value: function getCurrentBucket() {
|
|
75
75
|
return this.availableBuckets.values().next().value;
|
|
@@ -198,5 +198,4 @@ export var PortalManager = /*#__PURE__*/function () {
|
|
|
198
198
|
}));
|
|
199
199
|
}
|
|
200
200
|
}]);
|
|
201
|
-
return PortalManager;
|
|
202
201
|
}();
|
|
@@ -558,7 +558,7 @@ export var EditorPresetBuilder = /*#__PURE__*/function () {
|
|
|
558
558
|
return _this.apiEmitter = emitter;
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
_createClass(EditorPresetBuilder, [{
|
|
561
|
+
return _createClass(EditorPresetBuilder, [{
|
|
562
562
|
key: "add",
|
|
563
563
|
value: function add(nextOrTuple) {
|
|
564
564
|
return _construct(EditorPresetBuilder, [
|
|
@@ -685,7 +685,6 @@ export var EditorPresetBuilder = /*#__PURE__*/function () {
|
|
|
685
685
|
return plugins;
|
|
686
686
|
}
|
|
687
687
|
}]);
|
|
688
|
-
return EditorPresetBuilder;
|
|
689
688
|
}();
|
|
690
689
|
/**
|
|
691
690
|
* WARNING: Internal object
|
|
@@ -717,7 +716,7 @@ var APIDispatcher = /*#__PURE__*/function () {
|
|
|
717
716
|
* This will also emit the last event if the stream has already started.
|
|
718
717
|
* @returns Cleanup function to cleanup the listener
|
|
719
718
|
*/
|
|
720
|
-
_createClass(APIDispatcher, [{
|
|
719
|
+
return _createClass(APIDispatcher, [{
|
|
721
720
|
key: "on",
|
|
722
721
|
value: function on(cb) {
|
|
723
722
|
var _this4 = this;
|
|
@@ -739,5 +738,4 @@ var APIDispatcher = /*#__PURE__*/function () {
|
|
|
739
738
|
this.eventDispatcher.destroy();
|
|
740
739
|
}
|
|
741
740
|
}]);
|
|
742
|
-
return APIDispatcher;
|
|
743
741
|
}();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
/**
|
|
@@ -38,15 +38,14 @@ export function editorCommandToPMCommand(command) {
|
|
|
38
38
|
* an `EditorCommand` should return `true` but should not dispatch.
|
|
39
39
|
*/
|
|
40
40
|
export var PassiveTransaction = /*#__PURE__*/function (_Transaction) {
|
|
41
|
-
_inherits(PassiveTransaction, _Transaction);
|
|
42
|
-
var _super = _createSuper(PassiveTransaction);
|
|
43
41
|
// This is very cheeky but this should never be used outside its intended
|
|
44
42
|
// purpose - it will likely crash the editor so we should get an early warning
|
|
45
43
|
// signal
|
|
46
44
|
function PassiveTransaction() {
|
|
47
45
|
_classCallCheck(this, PassiveTransaction);
|
|
48
46
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
|
-
return
|
|
47
|
+
return _callSuper(this, PassiveTransaction, [{}]);
|
|
50
48
|
}
|
|
49
|
+
_inherits(PassiveTransaction, _Transaction);
|
|
51
50
|
return _createClass(PassiveTransaction);
|
|
52
51
|
}(Transaction);
|