@chakra-ui/vue-utils
Advanced tools
Comparing version 0.1.0-alpha.8 to 0.1.0-alpha.9
# @chakra-ui/vue-utils | ||
## 0.1.0-alpha.9 | ||
### Patch Changes | ||
- [#122](https://github.com/chakra-ui/chakra-ui-vue-next/pull/122) [`2963735`](https://github.com/chakra-ui/chakra-ui-vue-next/commit/29637355d6e37257e7ce43c10851049aba229359) Thanks [@codebender828](https://github.com/codebender828)! - Rewrite focus trap logic | ||
## 0.1.0-alpha.8 | ||
@@ -4,0 +10,0 @@ |
@@ -1,1 +0,11 @@ | ||
export * from "./declarations/src/index"; | ||
// are you seeing an error that a default export doesn't exist but your source file has a default export? | ||
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook | ||
// curious why you need to? | ||
// this file exists so that you can import from the entrypoint normally | ||
// except that it points to your source file and you don't need to run build constantly | ||
// which means we need to re-export all of the modules from your source file | ||
// and since export * doesn't include default exports, we need to read your source file | ||
// to check for a default export and re-export it if it exists | ||
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯ | ||
export * from "../src/index"; |
@@ -1,7 +0,16 @@ | ||
'use strict'; | ||
"use strict"; | ||
// this file might look strange and you might be wondering what it's for | ||
// it's lets you import your source files by importing this entrypoint | ||
// as you would import it if it was built with preconstruct build | ||
// this file is slightly different to some others though | ||
// it has a require hook which compiles your code with Babel | ||
// this means that you don't have to set up @babel/register or anything like that | ||
// but you can still require this module and it'll be compiled | ||
if (process.env.NODE_ENV === "production") { | ||
module.exports = require("./chakra-ui-vue-utils.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./chakra-ui-vue-utils.cjs.dev.js"); | ||
} | ||
// this bit of code imports the require hook and registers it | ||
let unregister = require("../../../node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../..", ".."); | ||
// this re-exports the source file | ||
module.exports = require("../src/index.ts"); | ||
unregister(); |
{ | ||
"name": "@chakra-ui/vue-utils", | ||
"version": "0.1.0-alpha.8", | ||
"version": "0.1.0-alpha.9", | ||
"main": "dist/chakra-ui-vue-utils.cjs.js", | ||
@@ -20,3 +20,3 @@ "module": "dist/chakra-ui-vue-utils.esm.js", | ||
"dependencies": { | ||
"@chakra-ui/utils": "^1.8.2", | ||
"@chakra-ui/utils": "^1.9.1", | ||
"css-box-model": "1.2.1", | ||
@@ -29,3 +29,3 @@ "lodash.mergewith": "^4.6.2", | ||
"@types/object-assign": "4.0.30", | ||
"vue": "^3.2.24" | ||
"vue": "^3.2.29" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
@@ -123,1 +123,9 @@ import { | ||
export type DebouncedRef = Ref<unknown> | ||
export function contains(containers: Set<HTMLElement>, element: HTMLElement) { | ||
for (let container of containers) { | ||
if (container.contains(element)) return true | ||
} | ||
return false | ||
} |
@@ -10,1 +10,4 @@ export * from "./vue-utils" | ||
export * from "./configurable" | ||
export * from "./match" | ||
export * from "./keys" | ||
export * from "./focus" |
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
23706
22
591
Updated@chakra-ui/utils@^1.9.1