@lion/core
Advanced tools
Comparing version 0.14.0 to 0.14.1
# Change Log | ||
## 0.14.1 | ||
### Patch Changes | ||
- 701aadce: Fix types of mixins to include LitElement static props and methods, and use Pick generic type instead of fake constructors. | ||
## 0.14.0 | ||
@@ -4,0 +10,0 @@ |
@@ -1305,8 +1305,2 @@ { | ||
"kind": "javascript-module", | ||
"path": "./test-helpers/keyboardEventShimIE.js", | ||
"declarations": [], | ||
"exports": [] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "./types/DelegateMixinTypes.d.ts", | ||
@@ -1375,30 +1369,2 @@ "declarations": [ | ||
} | ||
}, | ||
{ | ||
"kind": "method", | ||
"name": "connectedCallback", | ||
"privacy": "public", | ||
"return": { | ||
"type": { | ||
"text": "void" | ||
} | ||
} | ||
}, | ||
{ | ||
"kind": "method", | ||
"name": "updated", | ||
"privacy": "public", | ||
"return": { | ||
"type": { | ||
"text": "void" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "changedProperties", | ||
"type": { | ||
"text": "import('lit-element').PropertyValues" | ||
} | ||
} | ||
] | ||
} | ||
@@ -1490,3 +1456,3 @@ ] | ||
"type": { | ||
"text": "T & Constructor<DisabledHost> & typeof DisabledHost" | ||
"text": "T & Constructor<DisabledHost> & Pick<typeof DisabledHost, keyof typeof DisabledHost>" | ||
} | ||
@@ -1578,20 +1544,2 @@ }, | ||
] | ||
}, | ||
{ | ||
"kind": "method", | ||
"name": "firstUpdated", | ||
"privacy": "public", | ||
"return": { | ||
"type": { | ||
"text": "void" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "changedProperties", | ||
"type": { | ||
"text": "import('lit-element').PropertyValues" | ||
} | ||
} | ||
] | ||
} | ||
@@ -1605,3 +1553,3 @@ ] | ||
"type": { | ||
"text": "T & Constructor<DisabledWithTabIndexHost> & Constructor<DisabledHost>" | ||
"text": "T &\n Constructor<DisabledWithTabIndexHost> &\n Pick<typeof DisabledWithTabIndexHost, keyof typeof DisabledWithTabIndexHost> &\n Constructor<DisabledHost> &\n Pick<typeof DisabledHost, keyof typeof DisabledHost> &\n Pick<typeof LitElement, keyof typeof LitElement>" | ||
} | ||
@@ -1684,12 +1632,2 @@ }, | ||
] | ||
}, | ||
{ | ||
"kind": "method", | ||
"name": "connectedCallback", | ||
"privacy": "public", | ||
"return": { | ||
"type": { | ||
"text": "void" | ||
} | ||
} | ||
} | ||
@@ -1704,3 +1642,3 @@ ] | ||
"type": { | ||
"text": "T & Constructor<SlotHost> & typeof SlotHost" | ||
"text": "T &\n Constructor<SlotHost> &\n Pick<typeof SlotHost, keyof typeof SlotHost> &\n Pick<typeof HTMLElement, keyof typeof HTMLElement>" | ||
} | ||
@@ -1776,34 +1714,4 @@ }, | ||
] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "./docs/guidelines/10-guidelines-definitions.md", | ||
"declarations": [], | ||
"exports": [] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "./docs/guidelines/20-guidelines-styling.md", | ||
"declarations": [], | ||
"exports": [] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "./docs/guidelines/30-guidelines-scoped-elements.md", | ||
"declarations": [], | ||
"exports": [] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "./docs/guidelines/40-guidelines-subclasser-apis.md", | ||
"declarations": [], | ||
"exports": [] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "./docs/rationales/001-side-effects.md", | ||
"declarations": [], | ||
"exports": [] | ||
} | ||
] | ||
} | ||
} |
@@ -109,2 +109,2 @@ # Guidelines Scoped Elements | ||
We encourage you to have a look at [OpenWC's Scoped elements](https://open-wc.org/scoped-elements). | ||
We encourage you to have a look at [OpenWC's Scoped elements](https://open-wc.org/docs/development/scoped-elements). |
{ | ||
"name": "@lion/core", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"description": "Core functionality that is shared across all Lion Web Components", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"scripts": { | ||
"custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", | ||
"custom-elements-manifest": "custom-elements-manifest analyze --litelement --exclude 'docs/**/*' 'test-helpers/**/*'", | ||
"debug": "cd ../../ && npm run debug -- --group core", | ||
@@ -52,2 +52,3 @@ "debug:firefox": "cd ../../ && npm run debug:firefox -- --group core", | ||
}, | ||
"customElementsManifest": "custom-elements.json", | ||
"exports": { | ||
@@ -58,4 +59,3 @@ ".": "./index.js", | ||
"./differentKeyEventNamesShimIE": "./src/differentKeyEventNamesShimIE.js" | ||
}, | ||
"customElementsManifest": "custom-elements.json" | ||
} | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable lit-a11y/tabindex-no-positive */ | ||
import { expect, fixture, html } from '@open-wc/testing'; | ||
@@ -2,0 +3,0 @@ |
@@ -13,3 +13,2 @@ import { Constructor } from '@open-wc/dedupe-mixin'; | ||
export declare class DelegateHost { | ||
constructor(...args: any[]); | ||
delegations: Delegations; | ||
@@ -55,4 +54,7 @@ | ||
superclass: T, | ||
): T & Constructor<DelegateHost>; | ||
): T & | ||
Constructor<DelegateHost> & | ||
Pick<typeof DelegateHost, keyof typeof DelegateHost> & | ||
Pick<typeof LitElement, keyof typeof LitElement>; | ||
export type DelegateMixin = typeof DelegateMixinImplementation; |
@@ -5,3 +5,2 @@ import { Constructor } from '@open-wc/dedupe-mixin'; | ||
export declare class DisabledHost { | ||
constructor(...args: any[]); | ||
disabled: boolean; | ||
@@ -25,4 +24,4 @@ | ||
superclass: T, | ||
): T & Constructor<DisabledHost> & typeof DisabledHost; | ||
): T & Constructor<DisabledHost> & Pick<typeof DisabledHost, keyof typeof DisabledHost>; | ||
export type DisabledMixin = typeof DisabledMixinImplementation; |
@@ -5,3 +5,2 @@ import { Constructor } from '@open-wc/dedupe-mixin'; | ||
export declare class DisabledWithTabIndexHost { | ||
constructor(...args: any[]); | ||
tabIndex: number; | ||
@@ -25,4 +24,9 @@ /** | ||
superclass: T, | ||
): T & Constructor<DisabledWithTabIndexHost> & Constructor<DisabledHost>; | ||
): T & | ||
Constructor<DisabledWithTabIndexHost> & | ||
Pick<typeof DisabledWithTabIndexHost, keyof typeof DisabledWithTabIndexHost> & | ||
Constructor<DisabledHost> & | ||
Pick<typeof DisabledHost, keyof typeof DisabledHost> & | ||
Pick<typeof LitElement, keyof typeof LitElement>; | ||
export type DisabledWithTabIndexMixin = typeof DisabledWithTabIndexMixinImplementation; |
@@ -10,3 +10,2 @@ import { Constructor } from '@open-wc/dedupe-mixin'; | ||
export declare class SlotHost { | ||
constructor(...args: any[]); | ||
/** | ||
@@ -55,4 +54,7 @@ * Obtains all the slots to create | ||
superclass: T, | ||
): T & Constructor<SlotHost> & typeof SlotHost; | ||
): T & | ||
Constructor<SlotHost> & | ||
Pick<typeof SlotHost, keyof typeof SlotHost> & | ||
Pick<typeof HTMLElement, keyof typeof HTMLElement>; | ||
export type SlotMixin = typeof SlotMixinImplementation; |
@@ -24,3 +24,2 @@ import { Constructor } from '@open-wc/dedupe-mixin'; | ||
*/ | ||
constructor(...args: any[]); | ||
public updateStyles(updateStyles: StylesMap): void; | ||
@@ -34,4 +33,7 @@ } | ||
superclass: T, | ||
): T & Constructor<UpdateStylesHost>; | ||
): T & | ||
Constructor<UpdateStylesHost> & | ||
Pick<typeof UpdateStylesHost, keyof typeof UpdateStylesHost> & | ||
Pick<typeof HTMLElement, keyof typeof HTMLElement>; | ||
export type UpdateStylesMixin = typeof UpdateStylesMixinImplementation; |
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
137480
3429