@vaadin/vaadin-themable-mixin 25.0.0-beta5 → 25.0.0-beta7
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/lumo-injection-mixin.js +9 -1
- package/package.json +5 -5
package/lumo-injection-mixin.js
CHANGED
|
@@ -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-
|
|
3
|
+
"version": "25.0.0-beta7",
|
|
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-
|
|
36
|
+
"@vaadin/component-base": "25.0.0-beta7",
|
|
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-
|
|
42
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
41
|
+
"@vaadin/chai-plugins": "25.0.0-beta7",
|
|
42
|
+
"@vaadin/test-runner-commands": "25.0.0-beta7",
|
|
43
43
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
44
44
|
"sinon": "^21.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "f12f14c37d2c0a72f708baff4a95230168d58dcc"
|
|
47
47
|
}
|