@jetbrains/ring-ui-built 6.0.81 → 6.0.83

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.
@@ -8,7 +8,7 @@ export interface AlertItem extends Partial<Omit<AlertProps, 'children'>> {
8
8
  /**
9
9
  * @name Alert Service
10
10
  */
11
- declare class AlertService {
11
+ export declare class AlertService {
12
12
  defaultTimeout: number;
13
13
  showingAlerts: AlertItem[];
14
14
  containerElement: HTMLDivElement;
@@ -216,4 +216,4 @@ var AlertService = /*#__PURE__*/function () {
216
216
  }();
217
217
  var alertService = new AlertService();
218
218
 
219
- export { alertService as default };
219
+ export { AlertService, alertService as default };
@@ -6,7 +6,7 @@ import 'core-js/modules/es.array.map.js';
6
6
  import 'core-js/modules/es.array.sort.js';
7
7
  import 'core-js/modules/es.object.to-string.js';
8
8
  import 'core-js/modules/es.string.includes.js';
9
- import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft, getWindowHeight } from '../global/dom.js';
9
+ import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft } from '../global/dom.js';
10
10
  import { MaxHeight, Dimension, MinWidth, Directions } from './popup.consts.js';
11
11
  import 'core-js/modules/es.array.iterator.js';
12
12
  import 'core-js/modules/es.object.assign.js';
@@ -92,7 +92,7 @@ function getPositionStyles(popup, anchorRect, anchorLeft, anchorTop, offset) {
92
92
  };
93
93
  }
94
94
  function verticalOverflow(styles, scrollingCoordinates, attrs) {
95
- var containerHeight = attrs.container !== null ? attrs.container.clientHeight : getWindowHeight();
95
+ var containerHeight = attrs.container !== null ? attrs.container.clientHeight : document.documentElement.clientHeight;
96
96
  var viewportMinX = scrollingCoordinates.top + attrs.sidePadding;
97
97
  var viewportMaxX = scrollingCoordinates.top + containerHeight - attrs.sidePadding;
98
98
  var topOverflow = Math.max(viewportMinX - styles.top, 0);
@@ -102,7 +102,7 @@ function verticalOverflow(styles, scrollingCoordinates, attrs) {
102
102
  return topOverflow + bottomOverflow;
103
103
  }
104
104
  function horizontalOverflow(styles, scrollingCoordinates, attrs) {
105
- var containerWidth = attrs.container !== null ? attrs.container.clientWidth : window.innerWidth;
105
+ var containerWidth = attrs.container !== null ? attrs.container.clientWidth : document.documentElement.clientWidth;
106
106
  var viewportMinY = scrollingCoordinates.left + attrs.sidePadding;
107
107
  var viewportMaxY = scrollingCoordinates.left + containerWidth - attrs.sidePadding;
108
108
  var leftOverflow = Math.max(viewportMinY - styles.left, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui-built",
3
- "version": "6.0.81",
3
+ "version": "6.0.83",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",