Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tabster

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tabster - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

4

dist/CrossOrigin.d.ts

@@ -111,4 +111,4 @@ /*!

static dispose(instance: Types.CrossOriginObservedElementState): void;
getElement(observedName: string): Promise<CrossOriginElement | null>;
waitElement(observedName: string, timeout: number): Promise<CrossOriginElement | null>;
getElement(observedName: string, accessibility?: Types.ObservedElementAccesibility): Promise<CrossOriginElement | null>;
waitElement(observedName: string, timeout: number, accessibility?: Types.ObservedElementAccesibility): Promise<CrossOriginElement | null>;
requestFocus(observedName: string, timeout: number): Promise<boolean>;

@@ -115,0 +115,0 @@ static trigger(instance: Types.CrossOriginObservedElementState, element: CrossOriginElement, details: Types.ObservedElementBasicProps): void;

@@ -23,4 +23,19 @@ /*!

setProps(element: HTMLElement, basic?: Partial<Types.ObservedElementBasicProps>, extended?: Partial<Types.ObservedElementExtendedProps>): void;
getElement(observedName: string): HTMLElement | null;
waitElement(observedName: string, timeout: number): Promise<HTMLElement | null>;
/**
* Returns existing element by observed name
*
* @param observedName An observed name
* @param accessibility Optionally, return only if the element is accessible or focusable
* @returns HTMLElement | null
*/
getElement(observedName: string, accessibility?: Types.ObservedElementAccesibility): HTMLElement | null;
/**
* Waits for the element to appear in the DOM and returns it.
*
* @param observedName An observed name
* @param timeout Wait no longer than this timeout
* @param accessibility Optionally, wait for the element to also become accessible or focusable before returning it
* @returns Promise<HTMLElement | null>
*/
waitElement(observedName: string, timeout: number, accessibility?: Types.ObservedElementAccesibility): Promise<HTMLElement | null>;
requestFocus(observedName: string, timeout: number): Promise<boolean>;

@@ -27,0 +42,0 @@ private _onObservedElementUpdate;

@@ -50,2 +50,9 @@ /*!

}
export interface ObservedElementAccesibilities {
Any: 0;
Accessible: 1;
Focusable: 2;
}
export declare type ObservedElementAccesibility = ObservedElementAccesibilities[keyof ObservedElementAccesibilities];
export declare const ObservedElementAccesibilities: ObservedElementAccesibilities;
export interface ObservedElementAPI extends Subscribable<HTMLElement, ObservedElementBasicProps> {

@@ -56,4 +63,4 @@ add(element: HTMLElement, basic?: ObservedElementBasicProps, extended?: ObservedElementExtendedProps): void;

setProps(element: HTMLElement, basic?: Partial<ObservedElementBasicProps>, extended?: Partial<ObservedElementExtendedProps>): void;
getElement(observedName: string): HTMLElement | null;
waitElement(observedName: string, timeout: number): Promise<HTMLElement | null>;
getElement(observedName: string, accessibility?: ObservedElementAccesibility): HTMLElement | null;
waitElement(observedName: string, timeout: number, accessibility?: ObservedElementAccesibility): Promise<HTMLElement | null>;
requestFocus(observedName: string, timeout: number): Promise<boolean>;

@@ -105,4 +112,4 @@ }

export interface CrossOriginObservedElementState extends Subscribable<CrossOriginElement, ObservedElementBasicProps> {
getElement(observedName: string): Promise<CrossOriginElement | null>;
waitElement(observedName: string, timeout: number): Promise<CrossOriginElement | null>;
getElement(observedName: string, accessibility?: ObservedElementAccesibility): Promise<CrossOriginElement | null>;
waitElement(observedName: string, timeout: number, accessibility?: ObservedElementAccesibility): Promise<CrossOriginElement | null>;
requestFocus(observedName: string, timeout: number): Promise<boolean>;

@@ -109,0 +116,0 @@ }

{
"name": "tabster",
"version": "0.7.0",
"version": "0.7.1",
"description": "Focus Management Tools for Web",

@@ -27,3 +27,3 @@ "author": "Marat Abdullin <marata@microsoft.com>",

"dependencies": {
"keyborg": "^0.7.0"
"keyborg": "^0.7.1"
},

@@ -45,3 +45,3 @@ "//": "core-js needs to be present for storybook: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#core-js-dependency-errors",

"jest-puppeteer": "^4.4.0",
"lint": "^0.6.0",
"lint": "^0.7.1",
"puppeteer": "^5.5.0",

@@ -56,3 +56,3 @@ "requirejs": "^2.3.6",

},
"gitHead": "380ad740deb40f8e63f86cdda44a80bcdb88eedf"
"gitHead": "8c1038eeba21ffef97428cc03569b1db6469b60f"
}

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 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc