@vaadin/component-base 24.8.0-alpha3 → 24.8.0-alpha5

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": "24.8.0-alpha3",
3
+ "version": "24.8.0-alpha5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,10 +38,10 @@
38
38
  "lit": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@vaadin/chai-plugins": "24.8.0-alpha3",
42
- "@vaadin/test-runner-commands": "24.8.0-alpha3",
41
+ "@vaadin/chai-plugins": "24.8.0-alpha5",
42
+ "@vaadin/test-runner-commands": "24.8.0-alpha5",
43
43
  "@vaadin/testing-helpers": "^1.1.0",
44
44
  "sinon": "^18.0.0"
45
45
  },
46
- "gitHead": "8c49e2337a1905ae68d0d7aee2e672500ea72343"
46
+ "gitHead": "3bb64b9ad9b00ac3adb94eb1bedd81b0f4ae574e"
47
47
  }
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 = '24.8.0-alpha3') {
16
+ export function defineCustomElement(CustomElement, version = '24.8.0-alpha5') {
17
17
  Object.defineProperty(CustomElement, 'version', {
18
18
  get() {
19
19
  return version;
package/src/i18n-mixin.js CHANGED
@@ -41,6 +41,16 @@ export const I18nMixin = (defaultI18n, superClass) =>
41
41
  class I18nMixinClass extends superClass {
42
42
  static get properties() {
43
43
  return {
44
+ /** @private */
45
+ // Technically declaring a Polymer property is not needed, as we have a
46
+ // getter/setter for it below. However, the React components currently
47
+ // rely on the Polymer property declaration to detect which properties
48
+ // are available on a custom element, so we add a dummy declaration for
49
+ // it.
50
+ i18n: {
51
+ type: Object,
52
+ },
53
+
44
54
  /** @private */
45
55
  __effectiveI18n: {
46
56
  type: Object,