fix(ui): use scoped-elements version that exposes types

This commit is contained in:
Thomas Allmer 2022-11-28 13:08:30 +01:00 committed by Thomas Allmer
parent 32f55a8650
commit 11f6f19a09
7 changed files with 18 additions and 28 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/ui': patch
---
Update `@open-wc/scoped-elements` to a version that exposes its types.

20
package-lock.json generated
View file

@ -3677,9 +3677,9 @@
}
},
"node_modules/@open-wc/scoped-elements": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/@open-wc/scoped-elements/-/scoped-elements-2.1.3.tgz",
"integrity": "sha512-WoQD5T8Me9obek+iyjgrAMw9wxZZg4ytIteIN1i9LXW2KohezUp0LTOlWgBajWJo0/bpjUKiODX73cMYL2i3hw==",
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/@open-wc/scoped-elements/-/scoped-elements-2.1.4.tgz",
"integrity": "sha512-KX/bOkcDG9kbBDSmgsbpp40ZjEWxpWNrNRZZVSO0KqBygMfvfiEeVfP16uJp9YyWHi/PVZ/C0aUEgf8Pg1Eq7A==",
"dependencies": {
"@lit/reactive-element": "^1.0.0",
"@open-wc/dedupe-mixin": "^1.3.0"
@ -23265,7 +23265,7 @@
}
},
"packages-node/remark-extend": {
"version": "0.5.1",
"version": "0.5.2",
"license": "MIT",
"dependencies": {
"not": "^0.1.0",
@ -23351,12 +23351,12 @@
},
"packages/ui": {
"name": "@lion/ui",
"version": "0.0.4",
"version": "0.0.6",
"license": "MIT",
"dependencies": {
"@bundled-es-modules/message-format": "^6.0.4",
"@open-wc/dedupe-mixin": "^1.3.1",
"@open-wc/scoped-elements": "^2.1.3",
"@open-wc/scoped-elements": "^2.1.4",
"autosize": "4.0.2",
"awesome-phonenumber": "^4.0.0",
"ibantools": "^2.2.0",
@ -25675,7 +25675,7 @@
"requires": {
"@bundled-es-modules/message-format": "^6.0.4",
"@open-wc/dedupe-mixin": "^1.3.1",
"@open-wc/scoped-elements": "^2.1.3",
"@open-wc/scoped-elements": "^2.1.4",
"autosize": "4.0.2",
"awesome-phonenumber": "^4.0.0",
"ibantools": "^2.2.0",
@ -26179,9 +26179,9 @@
}
},
"@open-wc/scoped-elements": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/@open-wc/scoped-elements/-/scoped-elements-2.1.3.tgz",
"integrity": "sha512-WoQD5T8Me9obek+iyjgrAMw9wxZZg4ytIteIN1i9LXW2KohezUp0LTOlWgBajWJo0/bpjUKiODX73cMYL2i3hw==",
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/@open-wc/scoped-elements/-/scoped-elements-2.1.4.tgz",
"integrity": "sha512-KX/bOkcDG9kbBDSmgsbpp40ZjEWxpWNrNRZZVSO0KqBygMfvfiEeVfP16uJp9YyWHi/PVZ/C0aUEgf8Pg1Eq7A==",
"requires": {
"@lit/reactive-element": "^1.0.0",
"@open-wc/dedupe-mixin": "^1.3.0"

View file

@ -47,7 +47,7 @@ export const ValidateMixinImplementation = superclass =>
) {
static get scopedElements() {
const scopedElementsCtor =
/** @type {typeof import('@open-wc/scoped-elements').ScopedElementsHost} */ (
/** @type {typeof import('@open-wc/scoped-elements/types.js').ScopedElementsHost} */ (
super.constructor
);
return {

View file

@ -1,6 +1,6 @@
import { LitElement } from 'lit';
import { Constructor } from '@open-wc/dedupe-mixin';
import { ScopedElementsHost } from '@open-wc/scoped-elements';
import { ScopedElementsHost } from '@open-wc/scoped-elements/types.js';
import { DisabledHost } from '../../../core/types/DisabledMixinTypes.js';
import { SlotHost } from '../../../core/types/SlotMixinTypes.js';
@ -9,10 +9,6 @@ import { FormControlHost } from '../FormControlMixinTypes.js';
import { SyncUpdatableHost } from '../utils/SyncUpdatableMixinTypes.js';
import { Validator } from '../../src/validate/Validator.js';
type ScopedElementsMap = {
[key: string]: typeof HTMLElement;
};
type FeedbackMessage = {
message: string | Node;
type: string;

View file

@ -6,7 +6,6 @@ import { OverlayMixin, withDropdownConfig } from '@lion/ui/overlays.js';
import { LionSelectInvoker } from './LionSelectInvoker.js';
/**
* @typedef {import('@open-wc/scoped-elements').ScopedElementsHost} ScopedElementsHost
* @typedef {import('../../listbox/src/LionOptions.js').LionOptions} LionOptions
* @typedef {import('../../listbox/src/LionOption.js').LionOption} LionOption
* @typedef {import('../../form-core/types/registration/FormRegisteringMixinTypes.js').FormRegisteringHost} FormRegisteringHost

View file

@ -48,7 +48,7 @@
"dependencies": {
"@bundled-es-modules/message-format": "^6.0.4",
"@open-wc/dedupe-mixin": "^1.3.1",
"@open-wc/scoped-elements": "^2.1.3",
"@open-wc/scoped-elements": "^2.1.4",
"autosize": "4.0.2",
"awesome-phonenumber": "^4.0.0",
"ibantools": "^2.2.0",

View file

@ -1,10 +0,0 @@
diff --git a/node_modules/@open-wc/scoped-elements/types/index.d.ts b/node_modules/@open-wc/scoped-elements/types/index.d.ts
index 434e5cc..6bdfb06 100644
--- a/node_modules/@open-wc/scoped-elements/types/index.d.ts
+++ b/node_modules/@open-wc/scoped-elements/types/index.d.ts
@@ -5,4 +5,5 @@ export type ScopedElementsMap = {
prototype: HTMLElement;
};
};
+export { ScopedElementsHost } from './src/types.js';
//# sourceMappingURL=index.d.ts.map