@vaadin/tooltip 25.2.0-alpha11 → 25.2.0-alpha12

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/tooltip",
3
- "version": "25.2.0-alpha11",
3
+ "version": "25.2.0-alpha12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,20 +35,20 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.2.0-alpha11",
39
- "@vaadin/component-base": "25.2.0-alpha11",
40
- "@vaadin/markdown": "25.2.0-alpha11",
41
- "@vaadin/overlay": "25.2.0-alpha11",
42
- "@vaadin/popover": "25.2.0-alpha11",
43
- "@vaadin/vaadin-themable-mixin": "25.2.0-alpha11",
38
+ "@vaadin/a11y-base": "25.2.0-alpha12",
39
+ "@vaadin/component-base": "25.2.0-alpha12",
40
+ "@vaadin/markdown": "25.2.0-alpha12",
41
+ "@vaadin/overlay": "25.2.0-alpha12",
42
+ "@vaadin/popover": "25.2.0-alpha12",
43
+ "@vaadin/vaadin-themable-mixin": "25.2.0-alpha12",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/aura": "25.2.0-alpha11",
48
- "@vaadin/chai-plugins": "25.2.0-alpha11",
49
- "@vaadin/test-runner-commands": "25.2.0-alpha11",
47
+ "@vaadin/aura": "25.2.0-alpha12",
48
+ "@vaadin/chai-plugins": "25.2.0-alpha12",
49
+ "@vaadin/test-runner-commands": "25.2.0-alpha12",
50
50
  "@vaadin/testing-helpers": "^2.0.0",
51
- "@vaadin/vaadin-lumo-styles": "25.2.0-alpha11",
51
+ "@vaadin/vaadin-lumo-styles": "25.2.0-alpha12",
52
52
  "sinon": "^21.0.2"
53
53
  },
54
54
  "customElements": "custom-elements.json",
@@ -56,5 +56,5 @@
56
56
  "web-types.json",
57
57
  "web-types.lit.json"
58
58
  ],
59
- "gitHead": "fdc37e932709f95491a027aeb2090911cb7528c6"
59
+ "gitHead": "ae1e4373aec3653d63a45b6be18eee36f4b245a1"
60
60
  }
@@ -237,6 +237,7 @@ export const TooltipMixin = (superClass) =>
237
237
  */
238
238
  context: {
239
239
  type: Object,
240
+ sync: true,
240
241
  value: () => {
241
242
  return {};
242
243
  },
@@ -702,6 +703,8 @@ export const TooltipMixin = (superClass) =>
702
703
  async __updateContent() {
703
704
  const content = typeof this.generator === 'function' ? this.generator(this.context) : this.text;
704
705
 
706
+ const oldTextContent = this.__contentNode.textContent;
707
+
705
708
  if (this.markdown && content) {
706
709
  const helpers = await this.constructor.__importMarkdownHelpers();
707
710
  helpers.renderMarkdownToElement(this.__contentNode, content);
@@ -710,7 +713,11 @@ export const TooltipMixin = (superClass) =>
710
713
  }
711
714
 
712
715
  this.$.overlay.toggleAttribute('hidden', this.__contentNode.textContent.trim() === '');
713
- this.dispatchEvent(new CustomEvent('content-changed', { detail: { content: this.__contentNode.textContent } }));
716
+
717
+ const newTextContent = this.__contentNode.textContent;
718
+ if (newTextContent !== oldTextContent) {
719
+ this.dispatchEvent(new CustomEvent('content-changed', { detail: { content: newTextContent } }));
720
+ }
714
721
  }
715
722
 
716
723
  /** @private */
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tooltip",
4
- "version": "25.2.0-alpha11",
4
+ "version": "25.2.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tooltip",
4
- "version": "25.2.0-alpha11",
4
+ "version": "25.2.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {