Socket
Socket
Sign inDemoInstall

@blueprintjs/core

Package Overview
Dependencies
Maintainers
1
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blueprintjs/core - npm Package Compare versions

Comparing version 5.5.0 to 5.5.1

lib/cjs/components/popover/popoverPosition.d.ts

3

lib/cjs/components/index.d.ts

@@ -53,3 +53,4 @@ export { Alert, type AlertProps } from "./alert/alert";

export { type PopoverProps, Popover, PopoverInteractionKind } from "./popover/popover";
export type { DefaultPopoverTargetHTMLProps, PopoverPosition, PopoverSharedProps, PopoverTargetProps, PopoverClickTargetHandlers, PopoverHoverTargetHandlers, PopperBoundary, PopperCustomModifier, PopperModifierOverrides, Placement, StrictModifierNames, } from "./popover/popoverSharedProps";
export { PopoverPosition } from "./popover/popoverPosition";
export type { DefaultPopoverTargetHTMLProps, PopoverSharedProps, PopoverTargetProps, PopoverClickTargetHandlers, PopoverHoverTargetHandlers, PopperBoundary, PopperCustomModifier, PopperModifierOverrides, Placement, StrictModifierNames, } from "./popover/popoverSharedProps";
export { PopperPlacements } from "./popover/popperUtils";

@@ -56,0 +57,0 @@ export { PopupKind } from "./popover/popupKind";

@@ -19,3 +19,3 @@ "use strict";

exports.Menu = exports.IconSize = exports.Icon = exports.HTMLTable = exports.HTMLSelect = exports.UL = exports.Pre = exports.OL = exports.Label = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Code = exports.Blockquote = exports.TextArea = exports.RadioGroup = exports.NumericInput = exports.InputGroup = exports.FormGroup = exports.FileInput = exports.Switch = exports.Radio = exports.Checkbox = exports.ControlGroup = exports.EditableText = exports.DrawerSize = exports.Drawer = exports.Divider = exports.MultistepDialog = exports.DialogStep = exports.DialogFooter = exports.DialogBody = exports.Dialog = exports.hideContextMenu = exports.showContextMenu = exports.ContextMenuPopover = exports.ContextMenu = exports.Collapse = exports.CardList = exports.Card = exports.Callout = exports.ButtonGroup = exports.Button = exports.AnchorButton = exports.Breadcrumbs = exports.Breadcrumb = exports.Alert = void 0;
exports.TreeNode = exports.Tree = exports.Tooltip = exports.Toaster = exports.Toast = exports.OverlayToaster = exports.TagInput = exports.Tag = exports.Expander = exports.TabsExpander = exports.Tabs = exports.Tab = exports.SwitchCard = exports.CheckboxCard = exports.SpinnerSize = exports.Spinner = exports.Slider = exports.SectionCard = exports.Section = exports.RangeSlider = exports.MultiSlider = exports.HandleType = exports.HandleInteractionKind = exports.ResizeSensor = exports.ProgressBar = exports.Portal = exports.PopupKind = exports.PopperPlacements = exports.PopoverInteractionKind = exports.Popover = exports.PanelStack2 = exports.PanelStack = exports.Text = exports.Overlay = exports.OverflowList = exports.NonIdealStateIconSize = exports.NonIdealState = exports.NavbarHeading = exports.NavbarGroup = exports.NavbarDivider = exports.Navbar = exports.MenuItem = exports.MenuDivider = void 0;
exports.TreeNode = exports.Tree = exports.Tooltip = exports.Toaster = exports.Toast = exports.OverlayToaster = exports.TagInput = exports.Tag = exports.Expander = exports.TabsExpander = exports.Tabs = exports.Tab = exports.SwitchCard = exports.CheckboxCard = exports.SpinnerSize = exports.Spinner = exports.Slider = exports.SectionCard = exports.Section = exports.RangeSlider = exports.MultiSlider = exports.HandleType = exports.HandleInteractionKind = exports.ResizeSensor = exports.ProgressBar = exports.Portal = exports.PopupKind = exports.PopperPlacements = exports.PopoverPosition = exports.PopoverInteractionKind = exports.Popover = exports.PanelStack2 = exports.PanelStack = exports.Text = exports.Overlay = exports.OverflowList = exports.NonIdealStateIconSize = exports.NonIdealState = exports.NavbarHeading = exports.NavbarGroup = exports.NavbarDivider = exports.Navbar = exports.MenuItem = exports.MenuDivider = void 0;
var tslib_1 = require("tslib");

@@ -135,2 +135,4 @@ var alert_1 = require("./alert/alert");

Object.defineProperty(exports, "PopoverInteractionKind", { enumerable: true, get: function () { return popover_1.PopoverInteractionKind; } });
var popoverPosition_1 = require("./popover/popoverPosition");
Object.defineProperty(exports, "PopoverPosition", { enumerable: true, get: function () { return popoverPosition_1.PopoverPosition; } });
var popperUtils_1 = require("./popover/popperUtils");

@@ -137,0 +139,0 @@ Object.defineProperty(exports, "PopperPlacements", { enumerable: true, get: function () { return popperUtils_1.PopperPlacements; } });

import type { Placement } from "@popperjs/core";
import { PopoverPosition } from "./popoverSharedProps";
import { PopoverPosition } from "./popoverPosition";
/**

@@ -4,0 +4,0 @@ * Convert a position to a placement.

@@ -19,3 +19,3 @@ "use strict";

exports.positionToPlacement = void 0;
var popoverSharedProps_1 = require("./popoverSharedProps");
var popoverPosition_1 = require("./popoverPosition");
/**

@@ -29,25 +29,25 @@ * Convert a position to a placement.

switch (position) {
case popoverSharedProps_1.PopoverPosition.TOP_LEFT:
case popoverPosition_1.PopoverPosition.TOP_LEFT:
return "top-start";
case popoverSharedProps_1.PopoverPosition.TOP:
case popoverPosition_1.PopoverPosition.TOP:
return "top";
case popoverSharedProps_1.PopoverPosition.TOP_RIGHT:
case popoverPosition_1.PopoverPosition.TOP_RIGHT:
return "top-end";
case popoverSharedProps_1.PopoverPosition.RIGHT_TOP:
case popoverPosition_1.PopoverPosition.RIGHT_TOP:
return "right-start";
case popoverSharedProps_1.PopoverPosition.RIGHT:
case popoverPosition_1.PopoverPosition.RIGHT:
return "right";
case popoverSharedProps_1.PopoverPosition.RIGHT_BOTTOM:
case popoverPosition_1.PopoverPosition.RIGHT_BOTTOM:
return "right-end";
case popoverSharedProps_1.PopoverPosition.BOTTOM_RIGHT:
case popoverPosition_1.PopoverPosition.BOTTOM_RIGHT:
return "bottom-end";
case popoverSharedProps_1.PopoverPosition.BOTTOM:
case popoverPosition_1.PopoverPosition.BOTTOM:
return "bottom";
case popoverSharedProps_1.PopoverPosition.BOTTOM_LEFT:
case popoverPosition_1.PopoverPosition.BOTTOM_LEFT:
return "bottom-start";
case popoverSharedProps_1.PopoverPosition.LEFT_BOTTOM:
case popoverPosition_1.PopoverPosition.LEFT_BOTTOM:
return "left-end";
case popoverSharedProps_1.PopoverPosition.LEFT:
case popoverPosition_1.PopoverPosition.LEFT:
return "left";
case popoverSharedProps_1.PopoverPosition.LEFT_TOP:
case popoverPosition_1.PopoverPosition.LEFT_TOP:
return "left-start";

@@ -54,0 +54,0 @@ case "auto":

import type { Boundary, Modifier, Placement, RootBoundary, StrictModifiers } from "@popperjs/core";
import type * as React from "react";
import type { StrictModifier } from "react-popper";
import { Props } from "../../common";
import type { Props } from "../../common";
import type { OverlayableProps } from "../overlay/overlay";
export declare const PopoverPosition: {
AUTO: "auto";
AUTO_END: "auto-end";
AUTO_START: "auto-start";
BOTTOM: "bottom";
BOTTOM_LEFT: "bottom-left";
BOTTOM_RIGHT: "bottom-right";
LEFT: "left";
LEFT_BOTTOM: "left-bottom";
LEFT_TOP: "left-top";
RIGHT: "right";
RIGHT_BOTTOM: "right-bottom";
RIGHT_TOP: "right-top";
TOP: "top";
TOP_LEFT: "top-left";
TOP_RIGHT: "top-right";
};
export type PopoverPosition = (typeof PopoverPosition)[keyof typeof PopoverPosition];
import type { PopoverPosition } from "./popoverPosition";
export { Boundary as PopperBoundary, Placement };

@@ -25,0 +8,0 @@ export type StrictModifierNames = NonNullable<StrictModifiers["name"]>;

@@ -18,6 +18,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PopoverPosition = void 0;
var tslib_1 = require("tslib");
var common_1 = require("../../common");
exports.PopoverPosition = tslib_1.__assign(tslib_1.__assign({}, common_1.Position), { AUTO: "auto", AUTO_END: "auto-end", AUTO_START: "auto-start" });
//# sourceMappingURL=popoverSharedProps.js.map

@@ -51,3 +51,8 @@ "use strict";

var _this = this;
this.observer = new ResizeObserver(function (entries) { var _a, _b; return (_b = (_a = _this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries); });
// ResizeObserver is available in all modern browsers supported by Blueprint but not in server-side rendering
// and some test environments like jsdom, so we to do a feature check here.
this.observer =
globalThis.ResizeObserver != null
? new ResizeObserver(function (entries) { var _a, _b; return (_b = (_a = _this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries); })
: undefined;
this.observeElement();

@@ -54,0 +59,0 @@ };

@@ -53,3 +53,4 @@ export { Alert, type AlertProps } from "./alert/alert";

export { type PopoverProps, Popover, PopoverInteractionKind } from "./popover/popover";
export type { DefaultPopoverTargetHTMLProps, PopoverPosition, PopoverSharedProps, PopoverTargetProps, PopoverClickTargetHandlers, PopoverHoverTargetHandlers, PopperBoundary, PopperCustomModifier, PopperModifierOverrides, Placement, StrictModifierNames, } from "./popover/popoverSharedProps";
export { PopoverPosition } from "./popover/popoverPosition";
export type { DefaultPopoverTargetHTMLProps, PopoverSharedProps, PopoverTargetProps, PopoverClickTargetHandlers, PopoverHoverTargetHandlers, PopperBoundary, PopperCustomModifier, PopperModifierOverrides, Placement, StrictModifierNames, } from "./popover/popoverSharedProps";
export { PopperPlacements } from "./popover/popperUtils";

@@ -56,0 +57,0 @@ export { PopupKind } from "./popover/popupKind";

@@ -64,2 +64,3 @@ /*

export { Popover, PopoverInteractionKind } from "./popover/popover";
export { PopoverPosition } from "./popover/popoverPosition";
export { PopperPlacements } from "./popover/popperUtils";

@@ -66,0 +67,0 @@ export { PopupKind } from "./popover/popupKind";

import type { Placement } from "@popperjs/core";
import { PopoverPosition } from "./popoverSharedProps";
import { PopoverPosition } from "./popoverPosition";
/**

@@ -4,0 +4,0 @@ * Convert a position to a placement.

@@ -16,3 +16,3 @@ /*

*/
import { PopoverPosition } from "./popoverSharedProps";
import { PopoverPosition } from "./popoverPosition";
/**

@@ -19,0 +19,0 @@ * Convert a position to a placement.

import type { Boundary, Modifier, Placement, RootBoundary, StrictModifiers } from "@popperjs/core";
import type * as React from "react";
import type { StrictModifier } from "react-popper";
import { Props } from "../../common";
import type { Props } from "../../common";
import type { OverlayableProps } from "../overlay/overlay";
export declare const PopoverPosition: {
AUTO: "auto";
AUTO_END: "auto-end";
AUTO_START: "auto-start";
BOTTOM: "bottom";
BOTTOM_LEFT: "bottom-left";
BOTTOM_RIGHT: "bottom-right";
LEFT: "left";
LEFT_BOTTOM: "left-bottom";
LEFT_TOP: "left-top";
RIGHT: "right";
RIGHT_BOTTOM: "right-bottom";
RIGHT_TOP: "right-top";
TOP: "top";
TOP_LEFT: "top-left";
TOP_RIGHT: "top-right";
};
export type PopoverPosition = (typeof PopoverPosition)[keyof typeof PopoverPosition];
import type { PopoverPosition } from "./popoverPosition";
export { Boundary as PopperBoundary, Placement };

@@ -25,0 +8,0 @@ export type StrictModifierNames = NonNullable<StrictModifiers["name"]>;

@@ -16,5 +16,3 @@ /*

*/
import { __assign } from "tslib";
import { Position } from "../../common";
export var PopoverPosition = __assign(__assign({}, Position), { AUTO: "auto", AUTO_END: "auto-end", AUTO_START: "auto-start" });
export {};
//# sourceMappingURL=popoverSharedProps.js.map

@@ -48,3 +48,8 @@ /*

var _this = this;
this.observer = new ResizeObserver(function (entries) { var _a, _b; return (_b = (_a = _this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries); });
// ResizeObserver is available in all modern browsers supported by Blueprint but not in server-side rendering
// and some test environments like jsdom, so we to do a feature check here.
this.observer =
globalThis.ResizeObserver != null
? new ResizeObserver(function (entries) { var _a, _b; return (_b = (_a = _this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries); })
: undefined;
this.observeElement();

@@ -51,0 +56,0 @@ };

@@ -53,3 +53,4 @@ export { Alert, type AlertProps } from "./alert/alert";

export { type PopoverProps, Popover, PopoverInteractionKind } from "./popover/popover";
export type { DefaultPopoverTargetHTMLProps, PopoverPosition, PopoverSharedProps, PopoverTargetProps, PopoverClickTargetHandlers, PopoverHoverTargetHandlers, PopperBoundary, PopperCustomModifier, PopperModifierOverrides, Placement, StrictModifierNames, } from "./popover/popoverSharedProps";
export { PopoverPosition } from "./popover/popoverPosition";
export type { DefaultPopoverTargetHTMLProps, PopoverSharedProps, PopoverTargetProps, PopoverClickTargetHandlers, PopoverHoverTargetHandlers, PopperBoundary, PopperCustomModifier, PopperModifierOverrides, Placement, StrictModifierNames, } from "./popover/popoverSharedProps";
export { PopperPlacements } from "./popover/popperUtils";

@@ -56,0 +57,0 @@ export { PopupKind } from "./popover/popupKind";

@@ -64,2 +64,3 @@ /*

export { Popover, PopoverInteractionKind } from "./popover/popover";
export { PopoverPosition } from "./popover/popoverPosition";
export { PopperPlacements } from "./popover/popperUtils";

@@ -66,0 +67,0 @@ export { PopupKind } from "./popover/popupKind";

import type { Placement } from "@popperjs/core";
import { PopoverPosition } from "./popoverSharedProps";
import { PopoverPosition } from "./popoverPosition";
/**

@@ -4,0 +4,0 @@ * Convert a position to a placement.

@@ -16,3 +16,3 @@ /*

*/
import { PopoverPosition } from "./popoverSharedProps";
import { PopoverPosition } from "./popoverPosition";
/**

@@ -19,0 +19,0 @@ * Convert a position to a placement.

import type { Boundary, Modifier, Placement, RootBoundary, StrictModifiers } from "@popperjs/core";
import type * as React from "react";
import type { StrictModifier } from "react-popper";
import { Props } from "../../common";
import type { Props } from "../../common";
import type { OverlayableProps } from "../overlay/overlay";
export declare const PopoverPosition: {
AUTO: "auto";
AUTO_END: "auto-end";
AUTO_START: "auto-start";
BOTTOM: "bottom";
BOTTOM_LEFT: "bottom-left";
BOTTOM_RIGHT: "bottom-right";
LEFT: "left";
LEFT_BOTTOM: "left-bottom";
LEFT_TOP: "left-top";
RIGHT: "right";
RIGHT_BOTTOM: "right-bottom";
RIGHT_TOP: "right-top";
TOP: "top";
TOP_LEFT: "top-left";
TOP_RIGHT: "top-right";
};
export type PopoverPosition = (typeof PopoverPosition)[keyof typeof PopoverPosition];
import type { PopoverPosition } from "./popoverPosition";
export { Boundary as PopperBoundary, Placement };

@@ -25,0 +8,0 @@ export type StrictModifierNames = NonNullable<StrictModifiers["name"]>;

@@ -16,9 +16,3 @@ /*

*/
import { Position } from "../../common";
export const PopoverPosition = {
...Position,
AUTO: "auto",
AUTO_END: "auto-end",
AUTO_START: "auto-start",
};
export {};
//# sourceMappingURL=popoverSharedProps.js.map

@@ -41,3 +41,8 @@ /*

componentDidMount() {
this.observer = new ResizeObserver(entries => this.props.onResize?.(entries));
// ResizeObserver is available in all modern browsers supported by Blueprint but not in server-side rendering
// and some test environments like jsdom, so we to do a feature check here.
this.observer =
globalThis.ResizeObserver != null
? new ResizeObserver(entries => this.props.onResize?.(entries))
: undefined;
this.observeElement();

@@ -44,0 +49,0 @@ }

{
"name": "@blueprintjs/core",
"version": "5.5.0",
"version": "5.5.1",
"description": "Core styles & components",

@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js",

@@ -81,5 +81,5 @@ /*

export { type PopoverProps, Popover, PopoverInteractionKind } from "./popover/popover";
export { PopoverPosition } from "./popover/popoverPosition";
export type {
DefaultPopoverTargetHTMLProps,
PopoverPosition,
PopoverSharedProps,

@@ -86,0 +86,0 @@ PopoverTargetProps,

@@ -19,3 +19,3 @@ /*

import { PopoverPosition } from "./popoverSharedProps";
import { PopoverPosition } from "./popoverPosition";

@@ -22,0 +22,0 @@ /**

@@ -21,14 +21,6 @@ /*

import { Position, Props } from "../../common";
import type { Props } from "../../common";
import type { OverlayableProps } from "../overlay/overlay";
import type { PopoverPosition } from "./popoverPosition";
export const PopoverPosition = {
...Position,
AUTO: "auto" as "auto",
AUTO_END: "auto-end" as "auto-end",
AUTO_START: "auto-start" as "auto-start",
};
// eslint-disable-next-line @typescript-eslint/no-redeclare
export type PopoverPosition = (typeof PopoverPosition)[keyof typeof PopoverPosition];
export { Boundary as PopperBoundary, Placement };

@@ -35,0 +27,0 @@ // copied from @popperjs/core, where it is not exported as public

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc