Socket
Socket
Sign inDemoInstall

tabster

Package Overview
Dependencies
2
Maintainers
3
Versions
148
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0-canary.6 to 5.0.0

4

dist/dts/Modalizer.d.ts

@@ -20,3 +20,3 @@ /*!

dummyManager: ModalizerDummyManager | undefined;
constructor(tabster: Types.TabsterCore, element: HTMLElement, onDispose: (modalizer: Modalizer) => void, props: Types.ModalizerProps, sys: Types.SysProps | undefined, activeElements: WeakRef<HTMLElement>[]);
constructor(tabster: Types.TabsterCore, element: HTMLElement, onDispose: (modalizer: Modalizer) => void, props: Types.ModalizerProps, sys: Types.SysProps | undefined, activeElements: WeakHTMLElement<HTMLElement>[]);
makeActive(isActive: boolean): void;

@@ -45,3 +45,3 @@ focused(noIncrement?: boolean): number;

currentIsOthersAccessible: boolean | undefined;
activeElements: WeakRef<HTMLElement>[];
activeElements: WeakHTMLElement<HTMLElement>[];
constructor(tabster: Types.TabsterCore, alwaysAccessibleSelector?: string, accessibleCheck?: Types.ModalizerElementAccessibleCheck);

@@ -48,0 +48,0 @@ dispose(): void;

@@ -41,2 +41,7 @@ /*!

checkUncontrolledTrappingFocus?: (element: HTMLElement) => boolean;
/**
* Custom getter for parent elements. Defaults to the default .parentElement call
* Currently only used to detect tabster contexts
*/
getParent?(el: Node): Node | null;
}

@@ -43,0 +48,0 @@ export type GetTabster = () => TabsterCore;

@@ -136,10 +136,12 @@ /*!

protected _element: WeakHTMLElement;
moveOut: DummyInputManagerCore["moveOut"];
moveOutWithDefaultAction: DummyInputManagerCore["moveOutWithDefaultAction"];
constructor(tabster: Types.TabsterCore, element: WeakHTMLElement, priority: number, sys: Types.SysProps | undefined, outsideByDefault?: boolean, callForDefaultAction?: boolean);
protected _setHandlers(onFocusIn?: DummyInputFocusCallback, onFocusOut?: DummyInputFocusCallback): void;
moveOut(backwards: boolean): void;
moveOutWithDefaultAction(backwards: boolean): void;
getHandler(isIn: boolean): DummyInputFocusCallback | undefined;
setTabbable(tabbable: boolean): void;
dispose(): void;
static moveWithPhantomDummy(tabster: Types.TabsterCore, element: HTMLElement, moveOutOfElement: boolean, isBackward: boolean): void;
static moveWithPhantomDummy(tabster: Types.TabsterCore, element: HTMLElement, // The target element to move to or out of.
moveOutOfElement: boolean, // Whether to move out of the element or into it.
isBackward: boolean): void;
static addPhantomDummyWithTarget(tabster: Types.TabsterCore, sourceElement: HTMLElement, isBackward: boolean, targetElement: HTMLElement): void;

@@ -154,3 +156,4 @@ }

private _updateDummyInputsTimer?;
private _dummies;
private _dummyElements;
private _dummyCallbacks;
domChanged?(parent: HTMLElement): void;

@@ -168,39 +171,2 @@ constructor(win: GetWindow);

}
/**
* Parent class that encapsulates the behaviour of dummy inputs (focus sentinels)
*/
declare class DummyInputManagerCore {
private _tabster;
private _addTimer;
private _getWindow;
private _wrappers;
private _element;
private _isOutside;
private _firstDummy;
private _lastDummy;
private _transformElements;
private _callForDefaultAction;
constructor(tabster: Types.TabsterCore, element: WeakHTMLElement, manager: DummyInputManager, priority: number, sys: Types.SysProps | undefined, outsideByDefault?: boolean, callForDefaultAction?: boolean);
dispose(manager: DummyInputManager, force?: boolean): void;
private _onFocus;
private _onFocusIn;
private _onFocusOut;
moveOut: (backwards: boolean) => void;
/**
* Prepares to move focus out of the given element by focusing
* one of the dummy inputs and setting the `useDefaultAction` flag
* @param backwards focus moving to an element behind the given element
*/
moveOutWithDefaultAction: (backwards: boolean) => void;
setTabbable: (manager: DummyInputManager, tabbable: boolean) => void;
private _getCurrent;
/**
* Adds dummy inputs as the first and last child of the given element
* Called each time the children under the element is mutated
*/
private _addDummyInputs;
private _ensurePosition;
private _addTransformOffsets;
private _computeTransformOffsets;
}
export declare function getLastChild(container: HTMLElement): HTMLElement | undefined;

@@ -207,0 +173,0 @@ export declare function getAdjacentElement(from: HTMLElement, prev?: boolean): HTMLElement | undefined;

@@ -41,2 +41,7 @@ /*!

checkUncontrolledTrappingFocus?: (element: HTMLElement) => boolean;
/**
* Custom getter for parent elements. Defaults to the default .parentElement call
* Currently only used to detect tabster contexts
*/
getParent?(el: Node): Node | null;
}

@@ -43,0 +48,0 @@ type GetTabster = () => TabsterCore;

{
"name": "tabster",
"version": "5.0.0-canary.6",
"version": "5.0.0",
"description": "Focus Management Tools for Web",

@@ -5,0 +5,0 @@ "author": "Marat Abdullin <marata@microsoft.com>",

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 too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc