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

@hotlight/react

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hotlight/react - npm Package Compare versions

Comparing version 0.4.7-beta.1 to 0.4.7-beta.2

dist/cjs/Hotkey.d.ts

1

dist/cjs/index.d.ts
import HotlightProvider from "./context";
export { useHotlight } from "./hooks";
export { Hotkey } from "./Hotkey";
export default HotlightProvider;

26

dist/cjs/index.js

@@ -76,3 +76,3 @@ 'use strict';

if (!(typeof window !== "undefined")) return [3 /*break*/, 2];
return [4 /*yield*/, Promise.resolve().then(function () { return require('./hotlight-core.es-bfbc2e88.js'); })];
return [4 /*yield*/, Promise.resolve().then(function () { return require('./hotlight-core.es-c380455b.js'); })];
case 1:

@@ -87,20 +87,2 @@ _a.sent();

}, []);
React.useEffect(function () {
//React.lazy(() => import('hotlight-core'));
if (typeof window !== "undefined") {
//configure Hotlight
window
.customElements
.whenDefined('hotlight-core')
.then(function () {
//const hl = document.querySelector("hotlight-core");
/*
if(hl) {
hl.configure(config);
hl.sources([]);
}
*/
});
}
}, [modal]);
/* API */

@@ -161,4 +143,10 @@ var configure = function (values) {

var Hotkey = function (_a) {
var hotkey = _a.hotkey, children = _a.children;
return (React__default["default"].createElement("hotlight-hotkey", { "data-key": hotkey }, children));
};
exports.Hotkey = Hotkey;
exports["default"] = HotlightProvider;
exports.useHotlight = useHotlight;
//# sourceMappingURL=index.js.map
import HotlightProvider from "./context";
export { useHotlight } from "./hooks";
export { Hotkey } from "./Hotkey";
export default HotlightProvider;
{
"name": "@hotlight/react",
"description": "A command palette, hotkeys and search.",
"version": "0.4.7-beta.1",
"version": "0.4.7-beta.2",
"homepage": "https://hotlight.dev",

@@ -33,3 +33,3 @@ "bugs": "https://github.com/begreet/hotlight/issues",

"dependencies": {
"@hotlight/core": "^0.4.7-beta.1"
"@hotlight/core": "^0.4.7-beta.2"
},

@@ -66,3 +66,3 @@ "devDependencies": {

},
"gitHead": "f42bc0286954bfdb9207cd187995fd8129faca9a"
"gitHead": "e33ac7fbb72690297c84f70b60d495a29c3e943a"
}

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc