@atlaskit/editor-common 96.4.0 → 96.5.0

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.
Files changed (145) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/analytics/analytics-queue.js +4 -5
  3. package/dist/cjs/annotation/index.js +9 -10
  4. package/dist/cjs/element-browser/ElementBrowser.js +11 -14
  5. package/dist/cjs/event-dispatcher/index.js +1 -2
  6. package/dist/cjs/extensibility/Extension/Lozenge/index.js +7 -10
  7. package/dist/cjs/extensibility/Extension.js +6 -9
  8. package/dist/cjs/extensibility/ExtensionComponent.js +25 -30
  9. package/dist/cjs/extensibility/extensionNodeView.js +5 -7
  10. package/dist/cjs/extensions/default-extension-provider.js +1 -2
  11. package/dist/cjs/hooks/useSharedPluginState.js +3 -0
  12. package/dist/cjs/hooks/useSharedPluginStateSelector/index.js +12 -0
  13. package/dist/cjs/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +114 -0
  14. package/dist/cjs/lazy-node-view/lazy-scheduler.js +1 -1
  15. package/dist/cjs/lazy-node-view/node-view.js +1 -2
  16. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +39 -45
  17. package/dist/cjs/link/LinkSearch/LinkSearchList.js +5 -7
  18. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +9 -12
  19. package/dist/cjs/link/LinkSearch/index.js +13 -16
  20. package/dist/cjs/link/LinkSearch/withActivityProvider.js +6 -9
  21. package/dist/cjs/media-inline/inline-image-wrapper.js +1 -2
  22. package/dist/cjs/monitoring/error.js +1 -1
  23. package/dist/cjs/portal/PortalManager.js +1 -2
  24. package/dist/cjs/preset/builder.js +2 -4
  25. package/dist/cjs/preset/editor-commands.js +4 -5
  26. package/dist/cjs/preset/plugin-injection-api.js +4 -8
  27. package/dist/cjs/provider-factory/provider-factory.js +1 -2
  28. package/dist/cjs/provider-factory/with-providers.js +8 -11
  29. package/dist/cjs/react-node-view/index.js +1 -2
  30. package/dist/cjs/safe-plugin/index.js +4 -5
  31. package/dist/cjs/selection/gap-cursor/selection.js +7 -11
  32. package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +10 -13
  33. package/dist/cjs/styles/shared/media-single.js +21 -20
  34. package/dist/cjs/styles/shared/paragraph.js +1 -1
  35. package/dist/cjs/styles/shared/shadow.js +9 -8
  36. package/dist/cjs/styles/shared/table.js +1 -1
  37. package/dist/cjs/types/annotation/emitter.js +1 -2
  38. package/dist/cjs/ui/Caption/index.js +5 -7
  39. package/dist/cjs/ui/ContextPanel/context.js +8 -11
  40. package/dist/cjs/ui/DropList/index.js +22 -25
  41. package/dist/cjs/ui/ErrorBoundary/index.js +6 -9
  42. package/dist/cjs/ui/Expand/sharedStyles.js +1 -1
  43. package/dist/cjs/ui/IntlErrorBoundary/index.js +6 -9
  44. package/dist/cjs/ui/Layer/index.js +9 -12
  45. package/dist/cjs/ui/Mention/index.js +6 -9
  46. package/dist/cjs/ui/Mention/mention-with-providers.js +6 -9
  47. package/dist/cjs/ui/Messages/index.js +1 -1
  48. package/dist/cjs/ui/OverflowShadow/index.js +13 -16
  49. package/dist/cjs/ui/OverflowShadow/shadowObserver.js +3 -5
  50. package/dist/cjs/ui/PanelTextInput/index.js +10 -13
  51. package/dist/cjs/ui/Popup/index.js +14 -17
  52. package/dist/cjs/ui/ResizerLegacy/index.js +12 -16
  53. package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +5 -7
  54. package/dist/cjs/ui/with-outer-listeners.js +10 -13
  55. package/dist/cjs/ui-menu/Dropdown/index.js +9 -12
  56. package/dist/cjs/ui-menu/DropdownMenu/index.js +11 -14
  57. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +8 -11
  58. package/dist/cjs/utils/error-reporter.js +1 -2
  59. package/dist/cjs/utils/hyperlink.js +2 -4
  60. package/dist/cjs/utils/imageLoader.js +14 -19
  61. package/dist/cjs/utils/profiler/render-count.js +3 -2
  62. package/dist/cjs/utils/traversor.js +1 -2
  63. package/dist/cjs/with-plugin-state/index.js +28 -35
  64. package/dist/es2019/analytics/analytics-queue.js +3 -3
  65. package/dist/es2019/hooks/useSharedPluginState.js +3 -0
  66. package/dist/es2019/hooks/useSharedPluginStateSelector/index.js +2 -0
  67. package/dist/es2019/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +98 -0
  68. package/dist/es2019/lazy-node-view/lazy-scheduler.js +1 -1
  69. package/dist/es2019/monitoring/error.js +1 -1
  70. package/dist/es2019/styles/shared/paragraph.js +1 -1
  71. package/dist/es2019/styles/shared/table.js +1 -1
  72. package/dist/es2019/ui/DropList/index.js +1 -1
  73. package/dist/es2019/ui/Expand/sharedStyles.js +1 -1
  74. package/dist/es2019/ui/Messages/index.js +1 -1
  75. package/dist/es2019/utils/profiler/render-count.js +2 -0
  76. package/dist/esm/analytics/analytics-queue.js +4 -5
  77. package/dist/esm/annotation/index.js +9 -10
  78. package/dist/esm/element-browser/ElementBrowser.js +11 -14
  79. package/dist/esm/event-dispatcher/index.js +1 -2
  80. package/dist/esm/extensibility/Extension/Lozenge/index.js +7 -10
  81. package/dist/esm/extensibility/Extension.js +6 -9
  82. package/dist/esm/extensibility/ExtensionComponent.js +25 -30
  83. package/dist/esm/extensibility/extensionNodeView.js +5 -7
  84. package/dist/esm/extensions/default-extension-provider.js +1 -2
  85. package/dist/esm/hooks/useSharedPluginState.js +3 -0
  86. package/dist/esm/hooks/useSharedPluginStateSelector/index.js +2 -0
  87. package/dist/esm/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +108 -0
  88. package/dist/esm/lazy-node-view/lazy-scheduler.js +1 -1
  89. package/dist/esm/lazy-node-view/node-view.js +1 -2
  90. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +39 -45
  91. package/dist/esm/link/LinkSearch/LinkSearchList.js +5 -7
  92. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +9 -12
  93. package/dist/esm/link/LinkSearch/index.js +13 -16
  94. package/dist/esm/link/LinkSearch/withActivityProvider.js +6 -9
  95. package/dist/esm/media-inline/inline-image-wrapper.js +1 -2
  96. package/dist/esm/monitoring/error.js +1 -1
  97. package/dist/esm/portal/PortalManager.js +1 -2
  98. package/dist/esm/preset/builder.js +2 -4
  99. package/dist/esm/preset/editor-commands.js +4 -5
  100. package/dist/esm/preset/plugin-injection-api.js +4 -8
  101. package/dist/esm/provider-factory/provider-factory.js +1 -2
  102. package/dist/esm/provider-factory/with-providers.js +8 -11
  103. package/dist/esm/react-node-view/index.js +1 -2
  104. package/dist/esm/safe-plugin/index.js +4 -5
  105. package/dist/esm/selection/gap-cursor/selection.js +7 -11
  106. package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +10 -13
  107. package/dist/esm/styles/shared/media-single.js +19 -20
  108. package/dist/esm/styles/shared/paragraph.js +1 -1
  109. package/dist/esm/styles/shared/shadow.js +7 -8
  110. package/dist/esm/styles/shared/table.js +1 -1
  111. package/dist/esm/types/annotation/emitter.js +1 -2
  112. package/dist/esm/ui/Caption/index.js +5 -7
  113. package/dist/esm/ui/ContextPanel/context.js +8 -11
  114. package/dist/esm/ui/DropList/index.js +22 -25
  115. package/dist/esm/ui/ErrorBoundary/index.js +6 -9
  116. package/dist/esm/ui/Expand/sharedStyles.js +1 -1
  117. package/dist/esm/ui/IntlErrorBoundary/index.js +6 -9
  118. package/dist/esm/ui/Layer/index.js +9 -12
  119. package/dist/esm/ui/Mention/index.js +6 -9
  120. package/dist/esm/ui/Mention/mention-with-providers.js +6 -9
  121. package/dist/esm/ui/Messages/index.js +1 -1
  122. package/dist/esm/ui/OverflowShadow/index.js +13 -16
  123. package/dist/esm/ui/OverflowShadow/shadowObserver.js +3 -5
  124. package/dist/esm/ui/PanelTextInput/index.js +10 -13
  125. package/dist/esm/ui/Popup/index.js +14 -17
  126. package/dist/esm/ui/ResizerLegacy/index.js +12 -16
  127. package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +5 -7
  128. package/dist/esm/ui/with-outer-listeners.js +10 -13
  129. package/dist/esm/ui-menu/Dropdown/index.js +9 -12
  130. package/dist/esm/ui-menu/DropdownMenu/index.js +11 -14
  131. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +8 -11
  132. package/dist/esm/utils/error-reporter.js +1 -2
  133. package/dist/esm/utils/hyperlink.js +2 -4
  134. package/dist/esm/utils/imageLoader.js +14 -19
  135. package/dist/esm/utils/profiler/render-count.js +3 -2
  136. package/dist/esm/utils/traversor.js +1 -2
  137. package/dist/esm/with-plugin-state/index.js +28 -35
  138. package/dist/types/hooks/useSharedPluginState.d.ts +5 -3
  139. package/dist/types/hooks/useSharedPluginStateSelector/index.d.ts +1 -0
  140. package/dist/types/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.d.ts +74 -0
  141. package/dist/types-ts4.5/hooks/useSharedPluginState.d.ts +5 -3
  142. package/dist/types-ts4.5/hooks/useSharedPluginStateSelector/index.d.ts +1 -0
  143. package/dist/types-ts4.5/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.d.ts +74 -0
  144. package/package.json +4 -3
  145. package/use-shared-plugin-state-selector/package.json +15 -0
@@ -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 _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
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
  import ReactNodeView from '../react-node-view';
11
10
 
@@ -34,14 +33,12 @@ import ReactNodeView from '../react-node-view';
34
33
  */
35
34
 
36
35
  export var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
37
- _inherits(SelectionBasedNodeView, _ReactNodeView);
38
- var _super = _createSuper(SelectionBasedNodeView);
39
36
  function SelectionBasedNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate) {
40
37
  var _this;
41
38
  _classCallCheck(this, SelectionBasedNodeView);
42
- _this = _super.call(this, node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate);
43
- _defineProperty(_assertThisInitialized(_this), "isSelectedNode", false);
44
- _defineProperty(_assertThisInitialized(_this), "isNodeInsideSelection", function (from, to, pos, posEnd) {
39
+ _this = _callSuper(this, SelectionBasedNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate]);
40
+ _defineProperty(_this, "isSelectedNode", false);
41
+ _defineProperty(_this, "isNodeInsideSelection", function (from, to, pos, posEnd) {
45
42
  var _this$getPositionsWit = _this.getPositionsWithDefault(pos, posEnd);
46
43
  pos = _this$getPositionsWit.pos;
47
44
  posEnd = _this$getPositionsWit.posEnd;
@@ -50,7 +47,7 @@ export var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
50
47
  }
51
48
  return from <= pos && to >= posEnd;
52
49
  });
53
- _defineProperty(_assertThisInitialized(_this), "isSelectionInsideNode", function (from, to, pos, posEnd) {
50
+ _defineProperty(_this, "isSelectionInsideNode", function (from, to, pos, posEnd) {
54
51
  var _this$getPositionsWit2 = _this.getPositionsWithDefault(pos, posEnd);
55
52
  pos = _this$getPositionsWit2.pos;
56
53
  posEnd = _this$getPositionsWit2.posEnd;
@@ -59,13 +56,13 @@ export var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
59
56
  }
60
57
  return pos < from && to < posEnd;
61
58
  });
62
- _defineProperty(_assertThisInitialized(_this), "insideSelection", function () {
59
+ _defineProperty(_this, "insideSelection", function () {
63
60
  var _this$view$state$sele = _this.view.state.selection,
64
61
  from = _this$view$state$sele.from,
65
62
  to = _this$view$state$sele.to;
66
63
  return _this.isSelectedNode || _this.isSelectionInsideNode(from, to);
67
64
  });
68
- _defineProperty(_assertThisInitialized(_this), "nodeInsideSelection", function () {
65
+ _defineProperty(_this, "nodeInsideSelection", function () {
69
66
  var selection = _this.view.state.selection;
70
67
  var from = selection.from,
71
68
  to = selection.to;
@@ -81,7 +78,8 @@ export var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
81
78
  * Prefer `this.pos` rather than getPos(), because calling getPos is
82
79
  * expensive, unless you know you're definitely going to render.
83
80
  */
84
- _createClass(SelectionBasedNodeView, [{
81
+ _inherits(SelectionBasedNodeView, _ReactNodeView);
82
+ return _createClass(SelectionBasedNodeView, [{
85
83
  key: "updatePos",
86
84
  value: function updatePos() {
87
85
  if (typeof this.getPos === 'boolean') {
@@ -114,5 +112,4 @@ export var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
114
112
  this.update(this.node, this.decorations);
115
113
  }
116
114
  }]);
117
- return SelectionBasedNodeView;
118
115
  }(ReactNodeView);
@@ -1,17 +1,16 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- var _css, _css2;
3
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
3
  import { css } from '@emotion/react';
5
4
  import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
6
5
  var richMediaClassName = 'rich-media-item';
7
6
  var wrappedMediaBreakoutPoint = 410;
8
- var mediaSingleSharedStyle = css((_css = {}, _defineProperty(_css, "li .".concat(richMediaClassName), {
7
+ var mediaSingleSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "li .".concat(richMediaClassName), {
9
8
  margin: 0
10
- }), _defineProperty(_css, '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
9
+ }), '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
11
10
  content: "''",
12
11
  display: 'block',
13
12
  height: 0
14
- }), _defineProperty(_css, '&.ua-firefox', {
13
+ }), '&.ua-firefox', {
15
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
16
15
  '.mediaSingleView-content-wrap': {
17
16
  userSelect: 'none'
@@ -20,9 +19,9 @@ var mediaSingleSharedStyle = css((_css = {}, _defineProperty(_css, "li .".concat
20
19
  '.captionView-content-wrap': {
21
20
  userSelect: 'text'
22
21
  }
23
- }), _defineProperty(_css, ".mediaSingleView-content-wrap[layout='center']", {
22
+ }), ".mediaSingleView-content-wrap[layout='center']", {
24
23
  clear: 'both'
25
- }), _defineProperty(_css, "table .".concat(richMediaClassName), {
24
+ }), "table .".concat(richMediaClassName), {
26
25
  marginTop: "var(--ds-space-150, 12px)",
27
26
  marginBottom: "var(--ds-space-150, 12px)",
28
27
  clear: 'both',
@@ -34,26 +33,26 @@ var mediaSingleSharedStyle = css((_css = {}, _defineProperty(_css, "li .".concat
34
33
  marginTop: "var(--ds-space-150, 12px)"
35
34
  }
36
35
  }
37
- }), _defineProperty(_css, ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
36
+ }), ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
38
37
  clear: 'both'
39
- }), _defineProperty(_css, ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), {
38
+ }), ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), {
40
39
  marginRight: 0,
41
40
  marginLeft: 0
42
- }), _defineProperty(_css, "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
41
+ }), "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
43
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
44
43
  "div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
45
44
  float: 'none',
46
45
  overflow: 'auto',
47
46
  margin: "var(--ds-space-150, 12px)".concat(" 0")
48
47
  }
49
- }), _css));
50
- var mediaSingleSharedStyleNew = css((_css2 = {}, _defineProperty(_css2, "li .".concat(richMediaClassName), {
48
+ }));
49
+ var mediaSingleSharedStyleNew = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "li .".concat(richMediaClassName), {
51
50
  margin: 0
52
- }), _defineProperty(_css2, '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
51
+ }), '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
53
52
  content: "''",
54
53
  display: 'block',
55
54
  height: 0
56
- }), _defineProperty(_css2, '&.ua-firefox', {
55
+ }), '&.ua-firefox', {
57
56
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
58
57
  '.mediaSingleView-content-wrap': {
59
58
  userSelect: 'none'
@@ -62,13 +61,13 @@ var mediaSingleSharedStyleNew = css((_css2 = {}, _defineProperty(_css2, "li .".c
62
61
  '.captionView-content-wrap': {
63
62
  userSelect: 'text'
64
63
  }
65
- }), _defineProperty(_css2, ".mediaSingleView-content-wrap[layout^='wrap-']", {
64
+ }), ".mediaSingleView-content-wrap[layout^='wrap-']", {
66
65
  position: 'relative',
67
66
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
68
67
  zIndex: akEditorWrappedNodeZIndex
69
- }), _defineProperty(_css2, ".mediaSingleView-content-wrap[layout='center']", {
68
+ }), ".mediaSingleView-content-wrap[layout='center']", {
70
69
  clear: 'both'
71
- }), _defineProperty(_css2, "table .".concat(richMediaClassName), {
70
+ }), "table .".concat(richMediaClassName), {
72
71
  marginTop: "var(--ds-space-150, 12px)",
73
72
  marginBottom: "var(--ds-space-150, 12px)",
74
73
  clear: 'both',
@@ -80,19 +79,19 @@ var mediaSingleSharedStyleNew = css((_css2 = {}, _defineProperty(_css2, "li .".c
80
79
  marginTop: "var(--ds-space-150, 12px)"
81
80
  }
82
81
  }
83
- }), _defineProperty(_css2, ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
82
+ }), ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
84
83
  clear: 'both'
85
- }), _defineProperty(_css2, ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), {
84
+ }), ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), {
86
85
  marginRight: 0,
87
86
  marginLeft: 0
88
- }), _defineProperty(_css2, "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
87
+ }), "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
89
88
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
90
89
  "div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
91
90
  float: 'none',
92
91
  overflow: 'auto',
93
92
  margin: "var(--ds-space-150, 12px)".concat(" 0")
94
93
  }
95
- }), _css2));
94
+ }));
96
95
 
97
96
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
98
97
  export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName };
@@ -23,7 +23,7 @@ export var paragraphSharedStyles = function paragraphSharedStyles(typographyThem
23
23
  fontSize: '1em',
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
25
  lineHeight: akEditorLineHeight,
26
- fontWeight: 'normal',
26
+ fontWeight: "var(--ds-font-weight-regular, 400)",
27
27
  marginTop: blockNodesVerticalMargin,
28
28
  marginBottom: 0,
29
29
  letterSpacing: '-0.005em'
@@ -1,5 +1,4 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- var _css;
3
2
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
4
3
 
5
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -23,7 +22,7 @@ var shadowWidth = 8;
23
22
  * background-attachment: local, local, scroll, scroll;
24
23
  */
25
24
 
26
- var shadowSharedStyle = css((_css = {}, _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::before, .").concat(shadowClassNames.RIGHT_SHADOW, "::after, .").concat(shadowClassNames.LEFT_SHADOW, "::before, .").concat(shadowClassNames.LEFT_SHADOW, "::after"), {
25
+ var shadowSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::before, .").concat(shadowClassNames.RIGHT_SHADOW, "::after, .").concat(shadowClassNames.LEFT_SHADOW, "::before, .").concat(shadowClassNames.LEFT_SHADOW, "::after"), {
27
26
  display: 'none',
28
27
  position: 'absolute',
29
28
  pointerEvents: 'none',
@@ -32,27 +31,27 @@ var shadowSharedStyle = css((_css = {}, _defineProperty(_css, "& .".concat(shado
32
31
  width: "".concat(shadowWidth, "px"),
33
32
  content: "''",
34
33
  height: 'calc(100%)'
35
- }), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
34
+ }), "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
36
35
  position: 'relative'
37
- }), _defineProperty(_css, "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
36
+ }), "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
38
37
  background: "linear-gradient( to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
39
38
  top: '0px',
40
39
  left: 0,
41
40
  display: 'block'
42
- }), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
41
+ }), "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
43
42
  background: "linear-gradient( to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
44
43
  right: '0px',
45
44
  top: '0px',
46
45
  display: 'block'
47
- }), _defineProperty(_css, "& .".concat(shadowObserverClassNames.SENTINEL_LEFT), {
46
+ }), "& .".concat(shadowObserverClassNames.SENTINEL_LEFT), {
48
47
  height: '100%',
49
48
  width: '0px',
50
49
  minWidth: '0px'
51
- }), _defineProperty(_css, "& .".concat(shadowObserverClassNames.SENTINEL_RIGHT), {
50
+ }), "& .".concat(shadowObserverClassNames.SENTINEL_RIGHT), {
52
51
  height: '100%',
53
52
  width: '0px',
54
53
  minWidth: '0px'
55
- }), _css));
54
+ }));
56
55
 
57
56
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
58
57
  export { shadowSharedStyle };
@@ -52,7 +52,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
52
52
 
53
53
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
54
54
  var tableSharedStyle = function tableSharedStyle() {
55
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\tth,\n\t\t\ttd {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: normal;\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t// selector lives inside @atlaskit/code\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), editorExperiment('table-nested-dnd', true) ? "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-250, 20px)") : "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", fg('platform_editor_nested_tables_renderer_styles') ? "// Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ".concat("var(--ds-surface, #FFFFFF)", ";\n\t\t\t}") : '', "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", akEditorSelectedNodeClassName, "var(--ds-border, transparent)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
55
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\tth,\n\t\t\ttd {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t// selector lives inside @atlaskit/code\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), editorExperiment('table-nested-dnd', true) ? "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-250, 20px)") : "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", fg('platform_editor_nested_tables_renderer_styles') ? "// Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ".concat("var(--ds-surface, #FFFFFF)", ";\n\t\t\t}") : '', "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", akEditorSelectedNodeClassName, "var(--ds-border, transparent)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
56
56
  leftCoverWidth: "var(--ds-space-300, 24px)"
57
57
  }), "var(--ds-background-neutral, rgb(235, 237, 240))", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", overflowShadow({
58
58
  leftCoverWidth: "var(--ds-space-300, 24px)"
@@ -17,7 +17,7 @@ export var AnnotationUpdateEmitter = /*#__PURE__*/function () {
17
17
  _classCallCheck(this, AnnotationUpdateEmitter);
18
18
  _defineProperty(this, "emitter", new EventEmitter());
19
19
  }
20
- _createClass(AnnotationUpdateEmitter, [{
20
+ return _createClass(AnnotationUpdateEmitter, [{
21
21
  key: "emit",
22
22
  value: function emit(event, params) {
23
23
  if (typeof params === 'undefined') {
@@ -41,5 +41,4 @@ export var AnnotationUpdateEmitter = /*#__PURE__*/function () {
41
41
  return this.emitter.listeners(event);
42
42
  }
43
43
  }]);
44
- return AnnotationUpdateEmitter;
45
44
  }();
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
6
+ import _inherits from "@babel/runtime/helpers/inherits";
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  /**
10
10
  * @jsxRuntime classic
@@ -30,13 +30,12 @@ var placeholderStyle = xcss({
30
30
  width: '100%'
31
31
  });
32
32
  export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
33
- _inherits(CaptionComponent, _React$Component);
34
- var _super = _createSuper(CaptionComponent);
35
33
  function CaptionComponent() {
36
34
  _classCallCheck(this, CaptionComponent);
37
- return _super.apply(this, arguments);
35
+ return _callSuper(this, CaptionComponent, arguments);
38
36
  }
39
- _createClass(CaptionComponent, [{
37
+ _inherits(CaptionComponent, _React$Component);
38
+ return _createClass(CaptionComponent, [{
40
39
  key: "render",
41
40
  value: function render() {
42
41
  var _this$props = this.props,
@@ -56,6 +55,5 @@ export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
56
55
  }, jsx(Text, null, formatMessage(messages.placeholder))) : null, children);
57
56
  }
58
57
  }]);
59
- return CaptionComponent;
60
58
  }(React.Component);
61
59
  export default injectIntl(CaptionComponent);
@@ -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 _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
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
  import React from 'react';
11
10
 
@@ -31,24 +30,22 @@ export var ContextPanel = /*#__PURE__*/React.createContext({
31
30
  broadcastPosition: function broadcastPosition() {}
32
31
  });
33
32
  export var ContextPanelWidthProvider = /*#__PURE__*/function (_React$Component) {
34
- _inherits(ContextPanelWidthProvider, _React$Component);
35
- var _super = _createSuper(ContextPanelWidthProvider);
36
33
  function ContextPanelWidthProvider(props) {
37
34
  var _this;
38
35
  _classCallCheck(this, ContextPanelWidthProvider);
39
- _this = _super.call(this, props);
40
- _defineProperty(_assertThisInitialized(_this), "state", {
36
+ _this = _callSuper(this, ContextPanelWidthProvider, [props]);
37
+ _defineProperty(_this, "state", {
41
38
  width: 0,
42
39
  positionedOverEditor: false
43
40
  });
44
- _defineProperty(_assertThisInitialized(_this), "broadcastSidebarWidth", function (width) {
41
+ _defineProperty(_this, "broadcastSidebarWidth", function (width) {
45
42
  if (width !== _this.state.width) {
46
43
  _this.setState({
47
44
  width: width
48
45
  });
49
46
  }
50
47
  });
51
- _defineProperty(_assertThisInitialized(_this), "broadcastPosition", function (positionedOverEditor) {
48
+ _defineProperty(_this, "broadcastPosition", function (positionedOverEditor) {
52
49
  if (positionedOverEditor !== _this.state.positionedOverEditor) {
53
50
  _this.setState({
54
51
  positionedOverEditor: positionedOverEditor
@@ -57,7 +54,8 @@ export var ContextPanelWidthProvider = /*#__PURE__*/function (_React$Component)
57
54
  });
58
55
  return _this;
59
56
  }
60
- _createClass(ContextPanelWidthProvider, [{
57
+ _inherits(ContextPanelWidthProvider, _React$Component);
58
+ return _createClass(ContextPanelWidthProvider, [{
61
59
  key: "render",
62
60
  value: function render() {
63
61
  var _this$state = this.state,
@@ -73,7 +71,6 @@ export var ContextPanelWidthProvider = /*#__PURE__*/function (_React$Component)
73
71
  }, this.props.children);
74
72
  }
75
73
  }]);
76
- return ContextPanelWidthProvider;
77
74
  }(React.Component);
78
75
  var Provider = ContextPanel.Provider,
79
76
  Consumer = ContextPanel.Consumer;
@@ -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 _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
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
@@ -21,20 +20,18 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
21
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
21
  import Layer from '../Layer';
23
22
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "96.4.0";
23
+ var packageVersion = "96.5.0";
25
24
  var halfFocusRing = 1;
26
25
  var dropOffset = '0, 8';
27
26
  var DropList = /*#__PURE__*/function (_Component) {
28
- _inherits(DropList, _Component);
29
- var _super = _createSuper(DropList);
30
27
  function DropList() {
31
28
  var _this;
32
29
  _classCallCheck(this, DropList);
33
30
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
34
31
  args[_key] = arguments[_key];
35
32
  }
36
- _this = _super.call.apply(_super, [this].concat(args));
37
- _defineProperty(_assertThisInitialized(_this), "wrapperStyles", css({
33
+ _this = _callSuper(this, DropList, [].concat(args));
34
+ _defineProperty(_this, "wrapperStyles", css({
38
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
39
36
  display: _this.props.shouldFitContainer ? 'block' : 'inline-flex',
40
37
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -42,7 +39,7 @@ var DropList = /*#__PURE__*/function (_Component) {
42
39
  transitionDuration: '0.2s',
43
40
  transition: 'box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38)'
44
41
  }));
45
- _defineProperty(_assertThisInitialized(_this), "triggerStyles", css({
42
+ _defineProperty(_this, "triggerStyles", css({
46
43
  transitionDuration: '0.2s',
47
44
  transition: 'box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38)',
48
45
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -51,7 +48,7 @@ var DropList = /*#__PURE__*/function (_Component) {
51
48
  boxSizing: _this.props.shouldFitContainer ? 'border-box' : undefined
52
49
  }));
53
50
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
54
- _defineProperty(_assertThisInitialized(_this), "menuWrapper", function () {
51
+ _defineProperty(_this, "menuWrapper", function () {
55
52
  return css({
56
53
  color: "var(--ds-text, #172B4D)",
57
54
  backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
@@ -64,7 +61,7 @@ var DropList = /*#__PURE__*/function (_Component) {
64
61
  });
65
62
  });
66
63
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
67
- _defineProperty(_assertThisInitialized(_this), "componentDidMount", function () {
64
+ _defineProperty(_this, "componentDidMount", function () {
68
65
  _this.setContentWidth();
69
66
  // We use a captured event here to avoid a radio or checkbox dropdown item firing its
70
67
  // click event first, which would cause a re-render of the element and prevent DropList
@@ -72,19 +69,19 @@ var DropList = /*#__PURE__*/function (_Component) {
72
69
  document.addEventListener('click', _this.handleClickOutside, true);
73
70
  document.addEventListener('keydown', _this.handleEsc);
74
71
  });
75
- _defineProperty(_assertThisInitialized(_this), "componentDidUpdate", function () {
72
+ _defineProperty(_this, "componentDidUpdate", function () {
76
73
  if (_this.props.isOpen) {
77
74
  _this.setContentWidth();
78
75
  }
79
76
  });
80
- _defineProperty(_assertThisInitialized(_this), "componentWillUnmount", function () {
77
+ _defineProperty(_this, "componentWillUnmount", function () {
81
78
  document.removeEventListener('click', _this.handleClickOutside, true);
82
79
  document.removeEventListener('keydown', _this.handleEsc);
83
80
  });
84
- _defineProperty(_assertThisInitialized(_this), "setContentWidth", function () {
85
- var _assertThisInitialize = _assertThisInitialized(_this),
86
- dropContentRef = _assertThisInitialize.dropContentRef,
87
- triggerRef = _assertThisInitialize.triggerRef;
81
+ _defineProperty(_this, "setContentWidth", function () {
82
+ var _this2 = _this,
83
+ dropContentRef = _this2.dropContentRef,
84
+ triggerRef = _this2.triggerRef;
88
85
  var shouldFitContainer = _this.props.shouldFitContainer;
89
86
 
90
87
  // We need to manually set the content width to match the trigger width
@@ -92,12 +89,12 @@ var DropList = /*#__PURE__*/function (_Component) {
92
89
  dropContentRef.style.width = "".concat(triggerRef.offsetWidth - halfFocusRing * 2, "px");
93
90
  }
94
91
  });
95
- _defineProperty(_assertThisInitialized(_this), "handleEsc", function (event) {
92
+ _defineProperty(_this, "handleEsc", function (event) {
96
93
  if ((event.key === 'Escape' || event.key === 'Esc') && _this.props.isOpen) {
97
94
  _this.close(event);
98
95
  }
99
96
  });
100
- _defineProperty(_assertThisInitialized(_this), "handleClickOutside", function (event) {
97
+ _defineProperty(_this, "handleClickOutside", function (event) {
101
98
  if (_this.props.isOpen) {
102
99
  if (event.target instanceof Node) {
103
100
  // Rather than check for the target within the entire DropList, we specify the trigger/content.
@@ -111,7 +108,7 @@ var DropList = /*#__PURE__*/function (_Component) {
111
108
  }
112
109
  }
113
110
  });
114
- _defineProperty(_assertThisInitialized(_this), "close", function (event) {
111
+ _defineProperty(_this, "close", function (event) {
115
112
  if (_this.props.onOpenChange) {
116
113
  _this.props.onOpenChange({
117
114
  isOpen: false,
@@ -119,7 +116,7 @@ var DropList = /*#__PURE__*/function (_Component) {
119
116
  });
120
117
  }
121
118
  });
122
- _defineProperty(_assertThisInitialized(_this), "handleContentRef", function (ref) {
119
+ _defineProperty(_this, "handleContentRef", function (ref) {
123
120
  _this.dropContentRef = ref;
124
121
 
125
122
  // If the dropdown has just been opened, we focus on the containing element so the
@@ -129,16 +126,17 @@ var DropList = /*#__PURE__*/function (_Component) {
129
126
  ref.focus();
130
127
  }
131
128
  });
132
- _defineProperty(_assertThisInitialized(_this), "handleDroplistRef", function (ref) {
129
+ _defineProperty(_this, "handleDroplistRef", function (ref) {
133
130
  var _this$props$onDroplis, _this$props;
134
131
  (_this$props$onDroplis = (_this$props = _this.props).onDroplistRef) === null || _this$props$onDroplis === void 0 || _this$props$onDroplis.call(_this$props, ref);
135
132
  });
136
- _defineProperty(_assertThisInitialized(_this), "handleTriggerRef", function (ref) {
133
+ _defineProperty(_this, "handleTriggerRef", function (ref) {
137
134
  _this.triggerRef = ref;
138
135
  });
139
136
  return _this;
140
137
  }
141
- _createClass(DropList, [{
138
+ _inherits(DropList, _Component);
139
+ return _createClass(DropList, [{
142
140
  key: "render",
143
141
  value: function render() {
144
142
  var _this$props2 = this.props,
@@ -171,7 +169,6 @@ var DropList = /*#__PURE__*/function (_Component) {
171
169
  }, trigger)));
172
170
  }
173
171
  }]);
174
- return DropList;
175
172
  }(Component);
176
173
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
177
174
  export default withAnalyticsContext({
@@ -1,31 +1,29 @@
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 _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
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
  import React from 'react';
11
10
  import { ACTION, EVENT_TYPE } from '../../analytics';
12
11
  import { logException } from '../../monitoring/error';
13
12
  export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
14
- _inherits(ErrorBoundary, _React$Component);
15
- var _super = _createSuper(ErrorBoundary);
16
13
  function ErrorBoundary() {
17
14
  var _this;
18
15
  _classCallCheck(this, ErrorBoundary);
19
16
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
20
17
  args[_key] = arguments[_key];
21
18
  }
22
- _this = _super.call.apply(_super, [this].concat(args));
23
- _defineProperty(_assertThisInitialized(_this), "state", {
19
+ _this = _callSuper(this, ErrorBoundary, [].concat(args));
20
+ _defineProperty(_this, "state", {
24
21
  errorCaptured: false
25
22
  });
26
23
  return _this;
27
24
  }
28
- _createClass(ErrorBoundary, [{
25
+ _inherits(ErrorBoundary, _React$Component);
26
+ return _createClass(ErrorBoundary, [{
29
27
  key: "hasFallback",
30
28
  value: function hasFallback() {
31
29
  return typeof this.props.fallbackComponent !== 'undefined';
@@ -69,5 +67,4 @@ export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
69
67
  return this.props.children;
70
68
  }
71
69
  }]);
72
- return ErrorBoundary;
73
70
  }(React.Component);
@@ -56,7 +56,7 @@ var titleInputStyles = function titleInputStyles() {
56
56
  fontSize: relativeFontSizeToBase16(14),
57
57
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
58
58
  lineHeight: fg('platform-visual-refresh-icons') ? 1 : akEditorLineHeight,
59
- fontWeight: 'normal',
59
+ fontWeight: "var(--ds-font-weight-regular, 400)",
60
60
  color: "var(--ds-text-subtlest, #626F86)",
61
61
  background: 'transparent',
62
62
  display: 'flex',