feat: remove support for static properties

- focus usage on static props Blueprint for Proxy
This commit is contained in:
Ayo Ayco 2025-03-22 11:20:32 +01:00
parent ab8156a2b0
commit 8a63ed56f5

View file

@ -21,12 +21,6 @@ export class WebComponent extends HTMLElement {
#props
#typeMap = {}
/**
* Array of strings that tells the browsers which attributes will cause a render
* @type {Array<string>}
*/
static properties = []
/**
* Blueprint for the Proxy props
* @typedef {{[name: string]: any}} PropStringMap
@ -96,7 +90,7 @@ export class WebComponent extends HTMLElement {
? Object.keys(this.props).map((camelCase) => getKebabCase(camelCase))
: []
return [...new Set([...this.properties, ...propKeys])]
return propKeys
}
connectedCallback() {