@types/bootstrap
Advanced tools
Comparing version 5.2.8 to 5.2.9
import * as Popper from "@popperjs/core"; | ||
import BaseComponent, { GetInstanceFactory, GetOrCreateInstanceFactory } from "./base-component"; | ||
import Tooltip from "./tooltip"; | ||
@@ -81,5 +82,3 @@ declare class Dropdown extends BaseComponent { | ||
type PopperConfigFunction = () => Partial<Popper.Options>; | ||
interface Options { | ||
interface Options extends Pick<Tooltip.Options, "popperConfig"> { | ||
/** | ||
@@ -133,17 +132,2 @@ * Offset of the dropdown relative to its target. You can pass a string | ||
/** | ||
* To change Bootstrap's default Popper.js config, see Popper.js's | ||
* configuration | ||
* | ||
* When a function is used to create the Popper configuration, it's | ||
* called with an object that contains the Bootstrap's default Popper | ||
* configuration. It helps you use and merge the default with your own | ||
* configuration. The function must return a configuration object for | ||
* Popper. | ||
* | ||
* @see {@link https://popper.js.org/docs/v2} | ||
* @default null | ||
*/ | ||
popperConfig: Partial<Popper.Options> | PopperConfigFunction | null; | ||
/** | ||
* Configure the auto close behavior of the dropdown | ||
@@ -150,0 +134,0 @@ * |
@@ -125,5 +125,3 @@ import BaseComponent, { GetInstanceFactory, GetOrCreateInstanceFactory } from "./base-component"; | ||
type PopperConfigFunction = (defaultBsPopperConfig: Options) => Partial<Options>; | ||
interface Options extends Omit<Tooltip.Options, "popperConfig"> { | ||
interface Options extends Tooltip.Options { | ||
/** | ||
@@ -138,16 +136,2 @@ * Default content value if data-content attribute isn't present. | ||
content: string | Element | JQuery | ((this: HTMLElement) => string | Element | JQuery); | ||
/** | ||
* To change Bootstrap's default Popper.js config | ||
* | ||
* When a function is used to create the Popper configuration, it's | ||
* called with an object that contains the Bootstrap's default Popper | ||
* configuration. It helps you use and merge the default with your own | ||
* configuration. The function must return a configuration object for | ||
* Popper. | ||
* | ||
* @see {@link https://popper.js.org/docs/v2} | ||
* @default null | ||
*/ | ||
popperConfig: Partial<Options> | PopperConfigFunction | null; | ||
} | ||
@@ -154,0 +138,0 @@ |
@@ -132,3 +132,3 @@ import * as Popper from "@popperjs/core"; | ||
type PopperConfigFunction = (defaultBsPopperConfig: Options) => Partial<Popper.Options>; | ||
type PopperConfigFunction = (defaultBsPopperConfig: Popper.Options) => Partial<Popper.Options>; | ||
@@ -135,0 +135,0 @@ interface Options { |
{ | ||
"name": "@types/bootstrap", | ||
"version": "5.2.8", | ||
"version": "5.2.9", | ||
"description": "TypeScript definitions for bootstrap", | ||
@@ -45,4 +45,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bootstrap", | ||
}, | ||
"typesPublisherContentHash": "50427b53e17d315014c5e6a66f2842a89937adcc247fab5c8389b6bda67f6905", | ||
"typesPublisherContentHash": "4ce8306ea75e43e72dfd04febc40c5c3dd2230da0dcc402512a58e1043cd4b72", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 17 Oct 2023 22:10:13 GMT | ||
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT | ||
* Dependencies: [@popperjs/core](https://npmjs.com/package/@popperjs/core) | ||
@@ -14,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51849
1289