popper.js
Advanced tools
Comparing version 1.11.0 to 1.11.1
/**! | ||
* @fileOverview Kickass library to create and place poppers near their reference elements. | ||
* @version 1.11.0 | ||
* @version 1.11.1 | ||
* @license | ||
@@ -5,0 +5,0 @@ * Copyright (c) 2016 Federico Zivolo and contributors |
/**! | ||
* @fileOverview Kickass library to create and place poppers near their reference elements. | ||
* @version 1.11.0 | ||
* @version 1.11.1 | ||
* @license | ||
@@ -5,0 +5,0 @@ * Copyright (c) 2016 Federico Zivolo and contributors |
/**! | ||
* @fileOverview Kickass library to create and place poppers near their reference elements. | ||
* @version 1.11.0 | ||
* @version 1.11.1 | ||
* @license | ||
@@ -5,0 +5,0 @@ * Copyright (c) 2016 Federico Zivolo and contributors |
// Type definitions for popper.js 1.10 | ||
// Project: https://github.com/FezVrasta/popper.js/ | ||
// Definitions by: ggray <https://github.com/giladgray>, rhysd <https://rhysd.github.io>, joscha <https://github.com/joscha>, seckardt <https://github.com/seckardt>, marcfallows <https://github.com/marcfallows> | ||
// Definitions by: edcarroll <https://github.com/edcarroll>, ggray <https://github.com/giladgray>, rhysd <https://rhysd.github.io>, joscha <https://github.com/joscha>, seckardt <https://github.com/seckardt>, marcfallows <https://github.com/marcfallows> | ||
@@ -8,3 +8,3 @@ // This file only declares the public portions of the API. | ||
declare module 'popper.js' { | ||
declare namespace Popper { | ||
export type Position = 'top' | 'right' | 'bottom' | 'left'; | ||
@@ -30,3 +30,3 @@ | ||
export type ModifierFn = (data: PopperData, options: Object) => PopperData; | ||
export type ModifierFn = (data: Data, options: Object) => Data; | ||
@@ -48,2 +48,3 @@ export interface BaseModifier { | ||
boundariesElement?: Boundary | Element, | ||
escapeWithReference?: boolean | ||
}; | ||
@@ -65,3 +66,8 @@ keepTogether?: BaseModifier; | ||
}; | ||
[name: string]: BaseModifier & Record<string, any>; | ||
computeStyle?: BaseModifier & { | ||
gpuAcceleration?: boolean; | ||
x?: 'bottom' | 'top', | ||
y?: 'left' | 'right' | ||
}; | ||
[name: string]: (BaseModifier & Record<string, any>) | undefined; | ||
} | ||
@@ -76,3 +82,3 @@ | ||
export interface PopperData { | ||
export interface Data { | ||
instance: Popper; | ||
@@ -101,4 +107,4 @@ placement: Placement; | ||
removeOnDestroy?: boolean; | ||
onCreate?(data: PopperData): void; | ||
onUpdate?(data: PopperData): void; | ||
onCreate?(data: Data): void; | ||
onUpdate?(data: Data): void; | ||
} | ||
@@ -111,16 +117,22 @@ | ||
} | ||
} | ||
export default class Popper { | ||
static modifiers: (BaseModifier & { name: string })[]; | ||
static placements: Placement[]; | ||
static Defaults: PopperOptions; | ||
declare class Popper { | ||
static modifiers: (Popper.BaseModifier & { name: string })[]; | ||
static placements: Popper.Placement[]; | ||
static Defaults: Popper.PopperOptions; | ||
constructor(reference: Element | ReferenceObject, popper: Element, options?: PopperOptions); | ||
options: Popper.PopperOptions; | ||
destroy(): void; | ||
update(): void; | ||
scheduleUpdate(): void; | ||
enableEventListeners(): void; | ||
disableEventListeners(): void; | ||
} | ||
constructor(reference: Element | Popper.ReferenceObject, popper: Element, options?: Popper.PopperOptions); | ||
destroy(): void; | ||
update(): void; | ||
scheduleUpdate(): void; | ||
enableEventListeners(): void; | ||
disableEventListeners(): void; | ||
} | ||
declare module 'popper.js' { | ||
export default Popper; | ||
} |
{ | ||
"name": "popper.js", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "A kickass library to manage your poppers", | ||
@@ -44,3 +44,3 @@ "homepage": "https://popper.js.org", | ||
"@popperjs/eslint-config-popper": "^1.0.0", | ||
"@popperjs/nuget-publish": "^1.0.0", | ||
"nuget-publish": "^1.0.0", | ||
"@popperjs/test": "^1.0.0", | ||
@@ -47,0 +47,0 @@ "@popperjs/test-utils": "^1.0.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1483972
9565