@lwc/engine-core 8.20.1 → 8.20.3-alpha.0

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.
@@ -0,0 +1 @@
1
+ export declare const defaultDefHTMLPropertyNames: string[];
@@ -18,12 +18,17 @@ type HTMLElementTheGoodParts = {
18
18
  type RefNodes = {
19
19
  [name: string]: Element;
20
20
  };
21
- /**
22
- * A `LightningElement` will always be attached to an [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement),
23
- * rather than the more broad `Element` used by the generic shadow root interface.
24
- */
25
21
  export interface LightningElementShadowRoot extends ShadowRoot {
22
+ /**
23
+ * A `LightningElement` will always be attached to an [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement),
24
+ * rather than the more broad `Element` used by the generic shadow root interface.
25
+ */
26
26
  readonly host: HTMLElement;
27
+ /**
28
+ * When present, indicates that the shadow root is the synthetic polyfill loaded by
29
+ * `@lwc/synethic-shadow`.
30
+ */
31
+ readonly synthetic?: true;
27
32
  }
28
33
  export interface LightningElement extends HTMLElementTheGoodParts, AccessibleElementProperties {
29
34
  constructor: LightningElementConstructor;
package/dist/index.cjs.js CHANGED
@@ -1844,9 +1844,6 @@ LightningElement.prototype = {
1844
1844
  `The current version is ${apiVersion}. ` +
1845
1845
  `To use this API, update the LWC component API version. https://lwc.dev/guide/versioning`);
1846
1846
  }
1847
- if (vm.shadowMode === 1 /* ShadowMode.Synthetic */) {
1848
- throw new Error('attachInternals API is not supported in synthetic shadow.');
1849
- }
1850
1847
  return attachInternals(elm);
1851
1848
  },
1852
1849
  get isConnected() {
@@ -8741,5 +8738,5 @@ exports.swapTemplate = swapTemplate;
8741
8738
  exports.track = track;
8742
8739
  exports.unwrap = unwrap;
8743
8740
  exports.wire = wire;
8744
- /** version: 8.20.1 */
8741
+ /** version: 8.20.2 */
8745
8742
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.js CHANGED
@@ -1841,9 +1841,6 @@ LightningElement.prototype = {
1841
1841
  `The current version is ${apiVersion}. ` +
1842
1842
  `To use this API, update the LWC component API version. https://lwc.dev/guide/versioning`);
1843
1843
  }
1844
- if (vm.shadowMode === 1 /* ShadowMode.Synthetic */) {
1845
- throw new Error('attachInternals API is not supported in synthetic shadow.');
1846
- }
1847
1844
  return attachInternals(elm);
1848
1845
  },
1849
1846
  get isConnected() {
@@ -8667,5 +8664,5 @@ function readonly(obj) {
8667
8664
  }
8668
8665
 
8669
8666
  export { BaseBridgeElement, LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
8670
- /** version: 8.20.1 */
8667
+ /** version: 8.20.2 */
8671
8668
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
5
5
  ],
6
6
  "name": "@lwc/engine-core",
7
- "version": "8.20.1",
7
+ "version": "8.20.3-alpha.0",
8
8
  "description": "Core LWC engine APIs.",
9
9
  "keywords": [
10
10
  "lwc"
@@ -46,11 +46,11 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "@lwc/features": "8.20.1",
50
- "@lwc/shared": "8.20.1",
51
- "@lwc/signals": "8.20.1"
49
+ "@lwc/features": "8.20.3-alpha.0",
50
+ "@lwc/shared": "8.20.3-alpha.0",
51
+ "@lwc/signals": "8.20.3-alpha.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "observable-membrane": "2.0.0"
55
55
  }
56
- }
56
+ }