@vaadin/vaadin-themable-mixin 25.0.0-beta5 → 25.0.0-beta6

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.
@@ -68,8 +68,16 @@ export const LumoInjectionMixin = (superClass) =>
68
68
  connectedCallback() {
69
69
  super.connectedCallback();
70
70
 
71
+ const root = findRoot(this);
72
+
73
+ // Do not initialize LumoInjector if it's disabled at the root.
74
+ // For example, Copilot does this because it uses its own styles
75
+ // on top of the base styles, and Lumo injection would interfere.
76
+ if (root.__lumoInjectorDisabled) {
77
+ return;
78
+ }
79
+
71
80
  if (this.isConnected) {
72
- const root = findRoot(this);
73
81
  root.__lumoInjector ||= new LumoInjector(root);
74
82
  this.__lumoInjector = root.__lumoInjector;
75
83
  this.__lumoInjector.componentConnected(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-themable-mixin",
3
- "version": "25.0.0-beta5",
3
+ "version": "25.0.0-beta6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,15 +33,15 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@open-wc/dedupe-mixin": "^1.3.0",
36
- "@vaadin/component-base": "25.0.0-beta5",
36
+ "@vaadin/component-base": "25.0.0-beta6",
37
37
  "lit": "^3.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/chai-plugins": "25.0.0-beta5",
42
- "@vaadin/test-runner-commands": "25.0.0-beta5",
41
+ "@vaadin/chai-plugins": "25.0.0-beta6",
42
+ "@vaadin/test-runner-commands": "25.0.0-beta6",
43
43
  "@vaadin/testing-helpers": "^2.0.0",
44
44
  "sinon": "^21.0.0"
45
45
  },
46
- "gitHead": "ba59e1404cc4bef2dd685476247f758eb28c9922"
46
+ "gitHead": "b6b638bee18aa62f095e0a0b7bf16a39db756f84"
47
47
  }