@lit-labs/ssr-dom-shim
Advanced tools
Comparing version 1.2.0 to 1.2.1
export { ariaMixinAttributes, ElementInternals, HYDRATE_INTERNALS_ATTR_PREFIX, } from './lib/element-internals.js'; | ||
declare const ElementShimWithRealType: { | ||
new (): Element; | ||
prototype: Element; | ||
}; | ||
declare const ElementShimWithRealType: typeof Element; | ||
export { ElementShimWithRealType as Element }; | ||
declare const HTMLElementShimWithRealType: { | ||
new (): HTMLElement; | ||
prototype: HTMLElement; | ||
}; | ||
declare const HTMLElementShimWithRealType: typeof HTMLElement; | ||
export { HTMLElementShimWithRealType as HTMLElement }; | ||
declare const CustomElementRegistryShimWithRealType: { | ||
new (): CustomElementRegistry; | ||
prototype: CustomElementRegistry; | ||
}; | ||
declare const CustomElementRegistryShimWithRealType: typeof CustomElementRegistry; | ||
export { CustomElementRegistryShimWithRealType as CustomElementRegistry }; | ||
export declare const customElements: CustomElementRegistry; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -45,2 +45,8 @@ /** | ||
} | ||
get localName() { | ||
return this.constructor.__localName; | ||
} | ||
get tagName() { | ||
return this.localName?.toUpperCase(); | ||
} | ||
setAttribute(name, value) { | ||
@@ -127,2 +133,4 @@ // Emulate browser behavior that silently casts all values to string. E.g. | ||
} | ||
// Provide tagName and localName for the component. | ||
ctor.__localName = name; | ||
this.__definitions.set(name, { | ||
@@ -129,0 +137,0 @@ ctor, |
@@ -6,11 +6,2 @@ /** | ||
*/ | ||
declare global { | ||
interface ARIAMixin { | ||
ariaBraileLabel: string | null; | ||
ariaBraileRoleDescription: string | null; | ||
ariaDescription: string | null; | ||
ariaInvalid: string | null; | ||
role: string | null; | ||
} | ||
} | ||
type ARIAAttributeMap = { | ||
@@ -27,4 +18,4 @@ [K in keyof ARIAMixin]: string; | ||
ariaAutoComplete: string; | ||
ariaBraileLabel: string; | ||
ariaBraileRoleDescription: string; | ||
ariaBrailleLabel: string; | ||
ariaBrailleRoleDescription: string; | ||
ariaBusy: string; | ||
@@ -75,3 +66,3 @@ ariaChecked: string; | ||
setValidity(): void; | ||
states: Set<unknown>; | ||
states: Set<string>; | ||
validationMessage: string; | ||
@@ -82,8 +73,5 @@ validity: ValidityState; | ||
}; | ||
declare const ElementInternalsShimWithRealType: { | ||
new (): ElementInternals; | ||
prototype: ElementInternals; | ||
}; | ||
declare const ElementInternalsShimWithRealType: typeof ElementInternals; | ||
export { ElementInternalsShimWithRealType as ElementInternals }; | ||
export declare const HYDRATE_INTERNALS_ATTR_PREFIX = "hydrate-internals-"; | ||
//# sourceMappingURL=element-internals.d.ts.map |
@@ -12,4 +12,4 @@ /** | ||
ariaAutoComplete: 'aria-autocomplete', | ||
ariaBraileLabel: 'aria-brailelabel', | ||
ariaBraileRoleDescription: 'aria-braileroledescription', | ||
ariaBrailleLabel: 'aria-braillelabel', | ||
ariaBrailleRoleDescription: 'aria-brailleroledescription', | ||
ariaBusy: 'aria-busy', | ||
@@ -67,4 +67,4 @@ ariaChecked: 'aria-checked', | ||
this.ariaAutoComplete = ''; | ||
this.ariaBraileLabel = ''; | ||
this.ariaBraileRoleDescription = ''; | ||
this.ariaBrailleLabel = ''; | ||
this.ariaBrailleRoleDescription = ''; | ||
this.ariaBusy = ''; | ||
@@ -71,0 +71,0 @@ this.ariaChecked = ''; |
{ | ||
"name": "@lit-labs/ssr-dom-shim", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
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
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
35747
363