@vaadin/component-base 25.1.0-beta3 → 25.1.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/component-base",
3
- "version": "25.1.0-beta3",
3
+ "version": "25.1.0-rc1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,11 +38,11 @@
38
38
  "lit": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@vaadin/chai-plugins": "25.1.0-beta3",
42
- "@vaadin/test-runner-commands": "25.1.0-beta3",
41
+ "@vaadin/chai-plugins": "25.1.0-rc1",
42
+ "@vaadin/test-runner-commands": "25.1.0-rc1",
43
43
  "@vaadin/testing-helpers": "^2.0.0",
44
44
  "sinon": "^21.0.2"
45
45
  },
46
46
  "customElements": "custom-elements.json",
47
- "gitHead": "4251850231a42298fda23b83928da588831cdb5d"
47
+ "gitHead": "e440d69bd4034d7ab5faedbad8131515551befb0"
48
48
  }
package/src/define.js CHANGED
@@ -13,7 +13,7 @@ function dashToCamelCase(dash) {
13
13
 
14
14
  const experimentalMap = {};
15
15
 
16
- export function defineCustomElement(CustomElement, version = '25.1.0-beta3') {
16
+ export function defineCustomElement(CustomElement, version = '25.1.0-rc1') {
17
17
  Object.defineProperty(CustomElement, 'version', {
18
18
  get() {
19
19
  return version;
@@ -18,6 +18,4 @@ export declare function ElementMixin<T extends Constructor<HTMLElement>>(
18
18
  export declare class ElementMixinClass {
19
19
  static is: string;
20
20
  static version: string;
21
-
22
- protected static finalize(): void;
23
21
  }
@@ -38,9 +38,7 @@ const registered = new Set();
38
38
  export const ElementMixin = (superClass) =>
39
39
  class VaadinElementMixin extends DirMixin(superClass) {
40
40
  /** @protected */
41
- static finalize() {
42
- super.finalize();
43
-
41
+ static _ensureRegistrations() {
44
42
  const { is } = this;
45
43
 
46
44
  // Registers a class prototype for telemetry purposes.
@@ -66,5 +64,7 @@ export const ElementMixin = (superClass) =>
66
64
  'Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.',
67
65
  );
68
66
  }
67
+
68
+ this.constructor._ensureRegistrations();
69
69
  }
70
70
  };