Socket
Socket
Sign inDemoInstall

@spectrum-web-components/shared

Package Overview
Dependencies
Maintainers
6
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/shared - npm Package Compare versions

Comparing version 0.35.1-rc.43 to 0.36.0

10

package.json
{
"name": "@spectrum-web-components/shared",
"version": "0.35.1-rc.43+432051b80",
"version": "0.36.0",
"publishConfig": {

@@ -36,6 +36,2 @@ "access": "public"

},
"./src/focusable-selectors.js": {
"development": "./src/focusable-selectors.dev.js",
"default": "./src/focusable-selectors.js"
},
"./src/focusable.js": {

@@ -101,3 +97,3 @@ "development": "./src/focusable.dev.js",

"@lit-labs/observers": "^2.0.0",
"@spectrum-web-components/base": "^0.35.1-rc.43+432051b80",
"@spectrum-web-components/base": "^0.36.0",
"focus-visible": "^5.1.0"

@@ -110,3 +106,3 @@ },

],
"gitHead": "432051b8085e7c86032333fa296bfa5334d47d84"
"gitHead": "a532ff8a410abeefb54d9638a2316ae82570566e"
}
import type { SpectrumElement } from '@spectrum-web-components/base';
export declare const firstFocusableIn: (root: HTMLElement | ShadowRoot) => SpectrumElement | null;
export declare const firstFocusableSlottedIn: (root: HTMLSlotElement) => SpectrumElement | null;
"use strict";
import { userFocusableSelector } from "./focusable-selectors.dev.js";
const firstFocusableSelector = 'button:not([tabindex="-1"]), [href]:not([tabindex="-1"]), input:not([tabindex="-1"]), select:not([tabindex="-1"]), textarea:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]), [focusable]:not([tabindex="-1"])';
export const firstFocusableIn = (root) => {
const firstFocusable = root.querySelector(
userFocusableSelector
firstFocusableSelector
);
return firstFocusable;
};
export const firstFocusableSlottedIn = (root) => {
const firstFocusable = root.assignedElements().find(
(element) => element.matches(userFocusableSelector)
);
return firstFocusable;
};
//# sourceMappingURL=first-focusable-in.dev.js.map

@@ -1,2 +0,2 @@

"use strict";import{userFocusableSelector as t}from"./focusable-selectors.js";export const firstFocusableIn=e=>e.querySelector(t),firstFocusableSlottedIn=e=>e.assignedElements().find(o=>o.matches(t));
"use strict";const e='button:not([tabindex="-1"]), [href]:not([tabindex="-1"]), input:not([tabindex="-1"]), select:not([tabindex="-1"]), textarea:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]), [focusable]:not([tabindex="-1"])';export const firstFocusableIn=t=>t.querySelector(e);
//# sourceMappingURL=first-focusable-in.js.map
export * from './first-focusable-in.js';
export * from './focus-visible.js';
export * from './focusable.js';
export * from './focusable-selectors.js';
export * from './get-active-element.js';

@@ -6,0 +5,0 @@ export * from './like-anchor.js';

@@ -5,3 +5,2 @@ "use strict";

export * from "./focusable.dev.js";
export * from "./focusable-selectors.dev.js";
export * from "./get-active-element.dev.js";

@@ -8,0 +7,0 @@ export * from "./like-anchor.dev.js";

@@ -1,2 +0,2 @@

"use strict";export*from"./first-focusable-in.js";export*from"./focus-visible.js";export*from"./focusable.js";export*from"./focusable-selectors.js";export*from"./get-active-element.js";export*from"./like-anchor.js";export*from"./observe-slot-presence.js";export*from"./observe-slot-text.js";export*from"./platform.js";export*from"./reparent-children.js";export*from"./get-label-from-slot.js";
"use strict";export*from"./first-focusable-in.js";export*from"./focus-visible.js";export*from"./focusable.js";export*from"./get-active-element.js";export*from"./like-anchor.js";export*from"./observe-slot-presence.js";export*from"./observe-slot-text.js";export*from"./platform.js";export*from"./reparent-children.js";export*from"./get-label-from-slot.js";
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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