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

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.
@@ -1,4 +1,4 @@
1
- import type { VCustomElement, VNode } from './vnodes';
1
+ import type { VNode } from './vnodes';
2
2
  import type { Template } from './template';
3
3
  import type { VM } from './vm';
4
4
  import type { Stylesheet } from '@lwc/shared';
@@ -12,14 +12,6 @@ export declare function getStylesheetsContent(vm: VM, template: Template): Reado
12
12
  * @param legacy
13
13
  */
14
14
  export declare function getScopeTokenClass(owner: VM, legacy: boolean): string | null;
15
- /**
16
- * This function returns the host style token for a custom element if it
17
- * exists. Otherwise it returns null.
18
- *
19
- * A host style token is applied to the component if scoped styles are used.
20
- * @param vnode
21
- */
22
- export declare function getStylesheetTokenHost(vnode: VCustomElement): string | null;
23
15
  export declare function createStylesheet(vm: VM, stylesheets: ReadonlyArray<string>): VNode[] | null;
24
16
  export declare function unrenderStylesheet(stylesheet: Stylesheet): void;
25
17
  export declare function isValidScopeToken(token: unknown): boolean;
@@ -23,6 +23,5 @@ export declare function setVMBeingRendered(vm: VM | null): void;
23
23
  export declare const parseFragment: (strings: string[], ...keys: (string | number)[]) => () => Element;
24
24
  export declare const parseSVGFragment: (strings: string[], ...keys: (string | number)[]) => () => Element;
25
25
  export declare function evaluateTemplate(vm: VM, html: Template): VNodes;
26
- export declare function computeHasScopedStyles(template: Template, vm: VM | undefined): boolean;
27
26
  export declare function hasStyles(stylesheets: Stylesheets | undefined | null): stylesheets is Stylesheets;
28
27
  //# sourceMappingURL=template.d.ts.map
package/dist/index.cjs.js CHANGED
@@ -1844,6 +1844,9 @@ 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
+ }
1847
1850
  return attachInternals(elm);
1848
1851
  },
1849
1852
  get isConnected() {
@@ -3082,7 +3085,7 @@ shared.freeze(BaseBridgeElement);
3082
3085
  shared.seal(BaseBridgeElement.prototype);
3083
3086
 
3084
3087
  /*
3085
- * Copyright (c) 2018, salesforce.com, inc.
3088
+ * Copyright (c) 2025, Salesforce, Inc.
3086
3089
  * All rights reserved.
3087
3090
  * SPDX-License-Identifier: MIT
3088
3091
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -8738,5 +8741,5 @@ exports.swapTemplate = swapTemplate;
8738
8741
  exports.track = track;
8739
8742
  exports.unwrap = unwrap;
8740
8743
  exports.wire = wire;
8741
- /** version: 8.20.2 */
8744
+ /** version: 8.20.3 */
8742
8745
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.js CHANGED
@@ -1841,6 +1841,9 @@ 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
+ }
1844
1847
  return attachInternals(elm);
1845
1848
  },
1846
1849
  get isConnected() {
@@ -3079,7 +3082,7 @@ freeze(BaseBridgeElement);
3079
3082
  seal(BaseBridgeElement.prototype);
3080
3083
 
3081
3084
  /*
3082
- * Copyright (c) 2018, salesforce.com, inc.
3085
+ * Copyright (c) 2025, Salesforce, Inc.
3083
3086
  * All rights reserved.
3084
3087
  * SPDX-License-Identifier: MIT
3085
3088
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -8664,5 +8667,5 @@ function readonly(obj) {
8664
8667
  }
8665
8668
 
8666
8669
  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 };
8667
- /** version: 8.20.2 */
8670
+ /** version: 8.20.3 */
8668
8671
  //# 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.3-alpha.0",
7
+ "version": "8.20.3",
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.3-alpha.0",
50
- "@lwc/shared": "8.20.3-alpha.0",
51
- "@lwc/signals": "8.20.3-alpha.0"
49
+ "@lwc/features": "8.20.3",
50
+ "@lwc/shared": "8.20.3",
51
+ "@lwc/signals": "8.20.3"
52
52
  },
53
53
  "devDependencies": {
54
54
  "observable-membrane": "2.0.0"
55
55
  }
56
- }
56
+ }
@@ -1 +0,0 @@
1
- export declare const defaultDefHTMLPropertyNames: string[];