@lwc/synthetic-shadow 2.20.6 → 2.20.7

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.
@@ -148,7 +148,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
148
148
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
149
149
  // we can't use typeof since it will fail when transpiling.
150
150
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
151
- /** version: 2.20.6 */
151
+ /** version: 2.20.7 */
152
152
 
153
153
  /*
154
154
  * Copyright (c) 2018, salesforce.com, inc.
@@ -1124,7 +1124,7 @@ if (!_globalThis.lwcRuntimeFlags) {
1124
1124
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
1125
1125
  }
1126
1126
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
1127
- /** version: 2.20.6 */
1127
+ /** version: 2.20.7 */
1128
1128
 
1129
1129
  /*
1130
1130
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2883,7 +2883,10 @@ if (typeof ClipboardEvent !== 'undefined') {
2883
2883
  */
2884
2884
  function detect$1() {
2885
2885
  // Note: when using this in mobile apps, we might have a DOM that does not support iframes.
2886
- return typeof HTMLIFrameElement !== 'undefined';
2886
+ const hasIframe = typeof HTMLIFrameElement !== 'undefined';
2887
+ // This polyfill should only apply in compat mode; see https://github.com/salesforce/lwc/issues/1513
2888
+ const isCompat = typeof Proxy !== 'undefined' && isTrue(Proxy.isCompat);
2889
+ return hasIframe && isCompat;
2887
2890
  }
2888
2891
 
2889
2892
  /*
@@ -5111,4 +5114,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
5111
5114
  }));
5112
5115
  });
5113
5116
  }
5114
- /** version: 2.20.6 */
5117
+ /** version: 2.20.7 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/synthetic-shadow",
3
- "version": "2.20.6",
3
+ "version": "2.20.7",
4
4
  "description": "Synthetic Shadow Root for LWC",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "access": "public"
38
38
  },
39
39
  "devDependencies": {
40
- "@lwc/features": "2.20.6",
41
- "@lwc/shared": "2.20.6"
40
+ "@lwc/features": "2.20.7",
41
+ "@lwc/shared": "2.20.7"
42
42
  }
43
43
  }