@spectrum-web-components/shared
Advanced tools
Comparing version 0.12.9-lit-next.37 to 0.12.9
{ | ||
"name": "@spectrum-web-components/shared", | ||
"version": "0.12.9-lit-next.37+c727331cf", | ||
"version": "0.12.9", | ||
"publishConfig": { | ||
@@ -45,3 +45,3 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^0.4.6-lit-next.161+c727331cf", | ||
"@spectrum-web-components/base": "^0.4.5", | ||
"focus-visible": "^5.1.0", | ||
@@ -53,3 +53,3 @@ "tslib": "^2.0.0" | ||
"sideEffects": false, | ||
"gitHead": "c727331cf98a963e16917d9a47d9df4608fff366" | ||
"gitHead": "e05c867a446189df8cfbceb201ec18cd502cfe26" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { ReactiveElement, TemplateResult } from '@spectrum-web-components/base'; | ||
import { UpdatingElement, TemplateResult } from '@spectrum-web-components/base'; | ||
declare type Constructor<T = Record<string, unknown>> = { | ||
@@ -11,2 +11,4 @@ new (...args: any[]): T; | ||
anchorContent?: TemplateResult | TemplateResult[]; | ||
labelledby?: string; | ||
tabindex?: -1 | 0; | ||
}; | ||
@@ -21,3 +23,3 @@ export interface LikeAnchorInterface { | ||
} | ||
export declare function LikeAnchor<T extends Constructor<ReactiveElement>>(constructor: T): T & Constructor<LikeAnchorInterface>; | ||
export declare function LikeAnchor<T extends Constructor<UpdatingElement>>(constructor: T): T & Constructor<LikeAnchorInterface>; | ||
export {}; |
@@ -16,3 +16,3 @@ import { __decorate } from "tslib"; | ||
class LikeAnchorElement extends constructor { | ||
renderAnchor({ id, className, ariaHidden, | ||
renderAnchor({ id, className, ariaHidden, labelledby, tabindex, | ||
// prettier-ignore | ||
@@ -28,3 +28,5 @@ anchorContent = html `<slot></slot>`, }) { | ||
aria-label=${ifDefined(this.label)} | ||
aria-labelledby=${ifDefined(labelledby)} | ||
aria-hidden=${ifDefined(ariaHidden ? 'true' : undefined)} | ||
tabindex=${ifDefined(tabindex)} | ||
rel=${ifDefined(this.rel)} | ||
@@ -31,0 +33,0 @@ >${anchorContent}</a>`; |
@@ -1,2 +0,2 @@ | ||
import { ReactiveElement } from '@spectrum-web-components/base'; | ||
import { UpdatingElement } from '@spectrum-web-components/base'; | ||
declare type Constructor<T = Record<string, unknown>> = { | ||
@@ -11,3 +11,3 @@ new (...args: any[]): T; | ||
} | ||
export declare function ObserveSlotPresence<T extends Constructor<ReactiveElement>>(constructor: T, lightDomSelector: string | string[]): T & Constructor<SlotPresenceObservingInterface>; | ||
export declare function ObserveSlotPresence<T extends Constructor<UpdatingElement>>(constructor: T, lightDomSelector: string | string[]): T & Constructor<SlotPresenceObservingInterface>; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
import { ReactiveElement } from '@spectrum-web-components/base'; | ||
import { UpdatingElement } from '@spectrum-web-components/base'; | ||
declare type Constructor<T = Record<string, unknown>> = { | ||
@@ -10,3 +10,3 @@ new (...args: any[]): T; | ||
} | ||
export declare function ObserveSlotText<T extends Constructor<ReactiveElement>>(constructor: T, slotSelector?: string): T & Constructor<SlotTextObservingInterface>; | ||
export declare function ObserveSlotText<T extends Constructor<UpdatingElement>>(constructor: T, slotSelector?: string): T & Constructor<SlotTextObservingInterface>; | ||
export {}; |
@@ -15,3 +15,2 @@ import { __decorate } from "tslib"; | ||
const slotElementObserver = Symbol('slotElementObserver'); | ||
// Fix needed for: https://github.com/lit/lit/issues/1789 | ||
const assignedNodesList = Symbol('assignedNodes'); | ||
@@ -18,0 +17,0 @@ const startObserving = Symbol('startObserving'); |
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
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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
92006
736
0