@hotlight/react
Advanced tools
Comparing version 0.4.7-beta.1 to 0.4.7-beta.2
import HotlightProvider from "./context"; | ||
export { useHotlight } from "./hooks"; | ||
export { Hotkey } from "./Hotkey"; | ||
export default HotlightProvider; |
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
563209
19
5612
Updated@hotlight/core@^0.4.7-beta.2