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

@zag-js/focus-visible

Package Overview
Dependencies
Maintainers
1
Versions
745
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/focus-visible - npm Package Compare versions

Comparing version 0.0.0-dev-20220707125149 to 0.0.0-dev-20220714091855

LICENSE

11

dist/index.d.ts
declare type Modality = "keyboard" | "pointer" | "virtual";
declare type FocusVisibleCallback = (isFocusVisible: boolean) => void;
export declare function trackFocusVisible(fn: FocusVisibleCallback): () => void;
export declare function trackInteractionModality(fn: (value: Modality | null) => void): () => void;
export declare function setInteractionModality(value: Modality): void;
export declare function getInteractionModality(): Modality;
export {};
declare function trackFocusVisible(fn: FocusVisibleCallback): () => void;
declare function trackInteractionModality(fn: (value: Modality | null) => void): () => void;
declare function setInteractionModality(value: Modality): void;
declare function getInteractionModality(): Modality | null;
export { getInteractionModality, setInteractionModality, trackFocusVisible, trackInteractionModality };

@@ -137,1 +137,8 @@ "use strict";

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
getInteractionModality,
setInteractionModality,
trackFocusVisible,
trackInteractionModality
});
{
"name": "@zag-js/focus-visible",
"version": "0.0.0-dev-20220707125149",
"version": "0.0.0-dev-20220714091855",
"description": "Focus visible polyfill utility based on WICG",

@@ -22,11 +22,2 @@ "keywords": [

],
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --updateSnapshot",
"test:watch": "yarn test --watchAll"
},
"publishConfig": {

@@ -37,3 +28,12 @@ "access": "public"

"url": "https://github.com/chakra-ui/zag/issues"
},
"scripts": {
"build-fast": "tsup src/index.ts --format=esm,cjs",
"start": "pnpm build --watch",
"build": "tsup src/index.ts --format=esm,cjs --dts",
"test": "jest --config ../../../jest.config.js --rootDir tests",
"lint": "eslint src --ext .ts,.tsx",
"test-ci": "pnpm test --ci --runInBand -u",
"test-watch": "pnpm test --watchAll"
}
}
}
# @zag-js/focus-visible
## Installation

@@ -15,9 +13,6 @@

Yes please! See the
[contributing guidelines](https://github.com/chakra-ui/zag/blob/main/CONTRIBUTING.md)
for details.
Yes please! See the [contributing guidelines](https://github.com/chakra-ui/zag/blob/main/CONTRIBUTING.md) for details.
## Licence
This project is licensed under the terms of the
[MIT license](https://github.com/chakra-ui/zag/blob/main/LICENSE).
This project is licensed under the terms of the [MIT license](https://github.com/chakra-ui/zag/blob/main/LICENSE).
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