Socket
Socket
Sign inDemoInstall

@featherds/composables

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@featherds/composables - npm Package Compare versions

Comparing version 0.10.8 to 0.10.9

2

modal/Layers.d.ts
import { Ref, ComponentPublicInstance } from "vue";
declare type IRefElement = Ref<HTMLElement | IFocusTrap | ComponentPublicInstance>;
declare type IRefElement = Ref<HTMLElement | IFocusTrap | ComponentPublicInstance> | HTMLElement;
interface IFocusTrap {

@@ -4,0 +4,0 @@ trapFocus: boolean;

@@ -1,4 +0,7 @@

import { ref, computed } from "vue";
import { ref, computed, isRef } from "vue";
const layers = ref([]);
const getElement = (refElement) => {
if (!isRef(refElement)) {
return refElement;
}
const value = refElement.value;

@@ -5,0 +8,0 @@ if (value.trapFocus) {

@@ -1,5 +0,7 @@

import { ref, computed, Ref, ComponentPublicInstance } from "vue";
import { ref, computed, Ref, ComponentPublicInstance, isRef } from "vue";
const layers: Ref<ILayer[]> = ref([]);
type IRefElement = Ref<HTMLElement | IFocusTrap | ComponentPublicInstance>;
type IRefElement =
| Ref<HTMLElement | IFocusTrap | ComponentPublicInstance>
| HTMLElement;
interface IFocusTrap {

@@ -14,2 +16,5 @@ trapFocus: boolean;

const getElement = (refElement: IRefElement) => {
if (!isRef(refElement)) {
return refElement as HTMLElement;
}
const value = refElement.value;

@@ -16,0 +21,0 @@ if ((value as IFocusTrap).trapFocus) {

{
"name": "@featherds/composables",
"version": "0.10.8",
"version": "0.10.9",
"publishConfig": {

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

"dependencies": {
"@featherds/utils": "^0.10.8",
"@featherds/utils": "^0.10.9",
"vue": "^3.1.0-0"

@@ -20,3 +20,3 @@ },

],
"gitHead": "f58926ce6d043036bdbe973d085c76492aec35af"
"gitHead": "b1ad79847ac55cfa9a12fc4ab470944a0e397e26"
}
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