@swiftwc/ui 0.0.0-dev.5 → 0.0.0-dev.6

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.
@@ -35,12 +35,15 @@ export class VKeyboard extends HTMLElement {
35
35
  document.documentElement.style.setProperty('--keyboard-inset-top', 30 < diff ? `${dvh}px` : `${fullLvh}px`);
36
36
  document.documentElement.style.setProperty('--keyboard-inset-height', 30 < diff ? `${diff}px` : `0px`);
37
37
  // @ts-expect-error
38
- document.querySelector('#console0').innerHTML =
39
- `${__classPrivateFieldGet(this, _VKeyboard_shouldKeyboardBeOpenCallback, "f").call(this)} (${diff}) (${self.innerHeight}) (${fullLvh}) (${dvh})`;
40
- // @ts-expect-error
41
- document.querySelector('#console').hidePopover();
42
- // @ts-expect-error
43
- document.querySelector('#console').showPopover();
38
+ if (import.meta.env.DEV) {
39
+ // @ts-expect-error
40
+ document.querySelector('#console0').innerHTML =
41
+ `${__classPrivateFieldGet(this, _VKeyboard_shouldKeyboardBeOpenCallback, "f").call(this)} (${diff}) (${self.innerHeight}) (${fullLvh}) (${dvh})`;
42
+ // @ts-expect-error
43
+ document.querySelector('#console').hidePopover();
44
+ // @ts-expect-error
45
+ document.querySelector('#console').showPopover();
46
+ }
44
47
  self.scrollTo(0, 0);
45
48
  });
46
49
  _VKeyboard_handleWindowOrientationChange.set(this, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swiftwc/ui",
3
- "version": "0.0.0-dev.5",
3
+ "version": "0.0.0-dev.6",
4
4
  "description": "Elegant SwiftUI-inspired web components for standalone web apps and web extensions.",
5
5
  "publishConfig": {
6
6
  "access": "public"