@lwc/ssr-runtime 9.2.2 → 9.3.5

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/dist/index.cjs CHANGED
@@ -680,7 +680,7 @@ function normalizeTabIndex(value) {
680
680
  const shouldNormalize = value > 0 && typeof value !== 'boolean';
681
681
  return shouldNormalize ? 0 : value;
682
682
  }
683
- /** version: 9.2.2 */
683
+ /** version: 9.3.5 */
684
684
 
685
685
  /**
686
686
  * Copyright (c) 2026 Salesforce, Inc.
@@ -704,7 +704,7 @@ function normalizeTabIndex(value) {
704
704
  * @param value
705
705
  * @param msg
706
706
  */
707
- /** version: 9.2.2 */
707
+ /** version: 9.3.5 */
708
708
 
709
709
  /*
710
710
  * Copyright (c) 2023, salesforce.com, inc.
@@ -728,7 +728,7 @@ class SignalBaseClass {
728
728
  }
729
729
  }
730
730
  }
731
- /** version: 9.2.2 */
731
+ /** version: 9.3.5 */
732
732
 
733
733
  /**
734
734
  * Copyright (c) 2026 Salesforce, Inc.
@@ -750,11 +750,9 @@ const features = {
750
750
  DISABLE_LIGHT_DOM_UNSCOPED_CSS: null,
751
751
  ENABLE_FROZEN_TEMPLATE: null,
752
752
  ENABLE_LEGACY_SCOPE_TOKENS: null,
753
- ENABLE_FORCE_SHADOW_MIGRATE_MODE: null,
754
753
  ENABLE_EXPERIMENTAL_SIGNALS: null,
755
754
  DISABLE_SYNTHETIC_SHADOW: null,
756
755
  DISABLE_HOST_ATTACH_SHADOW_GUARD: null,
757
- DISABLE_SCOPE_TOKEN_VALIDATION: null,
758
756
  DISABLE_STRICT_VALIDATION: null,
759
757
  DISABLE_DETACHED_REHYDRATION: null,
760
758
  };
@@ -817,7 +815,7 @@ function setFeatureFlagForTest(name, value) {
817
815
  setFeatureFlag(name, value);
818
816
  }
819
817
  }
820
- /** version: 9.2.2 */
818
+ /** version: 9.3.5 */
821
819
 
822
820
  /*
823
821
  * Copyright (c) 2024, Salesforce, Inc.
@@ -1943,16 +1941,16 @@ async function serverSideRenderComponent(tagName, Component, props = {}, styleDe
1943
1941
  }
1944
1942
  if (mode === 'asyncYield') {
1945
1943
  let markup = '';
1946
- for await (const segment of generateMarkup(tagName, props, null, null, null, null, renderContext, null, null, null)) {
1944
+ for await (const segment of generateMarkup(tagName, props, null, null, null, renderContext, null, null, null)) {
1947
1945
  markup += segment;
1948
1946
  }
1949
1947
  return markup;
1950
1948
  }
1951
1949
  else if (mode === 'async') {
1952
- return await generateMarkup(tagName, props, null, null, null, null, renderContext, null, null, null);
1950
+ return await generateMarkup(tagName, props, null, null, null, renderContext, null, null, null);
1953
1951
  }
1954
1952
  else if (mode === 'sync') {
1955
- return generateMarkup(tagName, props, null, null, null, null, renderContext, null, null, null);
1953
+ return generateMarkup(tagName, props, null, null, null, renderContext, null, null, null);
1956
1954
  }
1957
1955
  else {
1958
1956
  throw new Error(`Invalid mode: ${mode}`);
@@ -2134,6 +2132,113 @@ function* toIteratorDirective(iterable) {
2134
2132
  }
2135
2133
  }
2136
2134
 
2135
+ /*
2136
+ * Copyright (c) 2026, Salesforce, Inc.
2137
+ * All rights reserved.
2138
+ * SPDX-License-Identifier: MIT
2139
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2140
+ */
2141
+ function connectWires(cmp, adapter, makeDataCallback, // generated
2142
+ getLiveConfig // generated
2143
+ ) {
2144
+ // Callable adapters are expressed as a function having an 'adapter' property, which
2145
+ // is the actual wire constructor.
2146
+ const AdapterCtor = 'adapter' in adapter ? adapter.adapter : adapter;
2147
+ const wireInstance = new AdapterCtor(makeDataCallback(cmp));
2148
+ wireInstance.connect?.();
2149
+ if (wireInstance.update) {
2150
+ // This may look a bit weird, in that the 'update' function is called twice: once with
2151
+ // an 'undefined' value and possibly again with a context-provided value. While weird,
2152
+ // this preserves the behavior of the browser-side wire implementation as well as the
2153
+ // original SSR implementation.
2154
+ wireInstance.update(getLiveConfig(cmp), undefined);
2155
+ connectContext$1(AdapterCtor, cmp, (newContextValue) => {
2156
+ wireInstance.update(getLiveConfig(cmp), newContextValue);
2157
+ });
2158
+ }
2159
+ }
2160
+ function createComponent(Component, publicProps, wireAdapters, tagName, props, attrs, contextfulParent, defaultTmpl) {
2161
+ const instance = new Component({
2162
+ tagName: tagName.toUpperCase(),
2163
+ });
2164
+ establishContextfulRelationship(contextfulParent, instance);
2165
+ instance[SYMBOL__SET_INTERNALS](props, attrs, publicProps);
2166
+ if (wireAdapters?.length) {
2167
+ for (const { adapter, dataCallback: makeDataCallback, config: getLiveConfig, } of wireAdapters) {
2168
+ connectWires(instance, adapter, makeDataCallback, getLiveConfig);
2169
+ }
2170
+ }
2171
+ instance.isConnected = true;
2172
+ if (instance.connectedCallback) {
2173
+ mutationTracker.enable(instance);
2174
+ instance.connectedCallback();
2175
+ mutationTracker.disable(instance);
2176
+ }
2177
+ // If a render() function is defined on the class or any of its superclasses, then that takes priority.
2178
+ // Next, if the class or any of its superclasses has an implicitly-associated template, then that takes
2179
+ // second priority (e.g. a foo.html file alongside a foo.js file). Finally, there is a fallback empty template.
2180
+ const renderTemplate = instance.render?.() ?? Component[SYMBOL__DEFAULT_TEMPLATE] ?? defaultTmpl;
2181
+ const hostHasScopedStylesheets = renderTemplate.hasScopedStylesheets || hasScopedStaticStylesheets(Component);
2182
+ const hostScopeToken = hostHasScopedStylesheets
2183
+ ? renderTemplate.stylesheetScopeToken + '-host'
2184
+ : undefined;
2185
+ return { instance, hostScopeToken, renderTemplate };
2186
+ }
2187
+ function makeGenerateMarkupAsyncYield(Component, defaultTagName, publicProps, wireAdapters) {
2188
+ return async function* generateMarkup(tagName, props, attrs, scopeToken, contextfulParent, renderContext, shadowSlottedContent, lightSlottedContent, scopedSlottedContent) {
2189
+ props ??= Object.create(null);
2190
+ attrs ??= Object.create(null);
2191
+ tagName ??= defaultTagName;
2192
+ const { instance, hostScopeToken, renderTemplate } = createComponent(Component, publicProps, wireAdapters, tagName, props, attrs, contextfulParent, fallbackTmpl);
2193
+ yield `<${tagName}`;
2194
+ yield* renderAttrs(instance, attrs, hostScopeToken, scopeToken);
2195
+ yield '>';
2196
+ yield* renderTemplate(shadowSlottedContent, lightSlottedContent, scopedSlottedContent, Component, instance, renderContext);
2197
+ yield `</${tagName}>`;
2198
+ };
2199
+ }
2200
+ function makeGenerateMarkupSync(Component, defaultTagName, publicProps, wireAdapters) {
2201
+ return function generateMarkup(tagName, props, attrs, scopeToken, contextfulParent, renderContext, shadowSlottedContent, lightSlottedContent, scopedSlottedContent) {
2202
+ props ??= Object.create(null);
2203
+ attrs ??= Object.create(null);
2204
+ tagName ??= defaultTagName;
2205
+ const { instance, hostScopeToken, renderTemplate } = createComponent(Component, publicProps, wireAdapters, tagName, props, attrs, contextfulParent, fallbackTmplNoYield);
2206
+ let markup = `<${tagName}`;
2207
+ markup += renderAttrsNoYield(instance, attrs, hostScopeToken, scopeToken);
2208
+ markup += '>';
2209
+ markup += renderTemplate(shadowSlottedContent, lightSlottedContent, scopedSlottedContent, Component, instance, renderContext);
2210
+ markup += `</${tagName}>`;
2211
+ return markup;
2212
+ };
2213
+ }
2214
+ function setStaticInternals(Component, defaultTagName, cmpPublicProps, wireAdapters, compilationMode, defaultTemplate) {
2215
+ const SuperClass = Object.getPrototypeOf(Component);
2216
+ const superPublicProps = SuperClass.__lwcPublicProperties__ ?? [];
2217
+ const publicProps = new Set([...cmpPublicProps, ...superPublicProps]);
2218
+ Object.defineProperty(Component, '__lwcPublicProperties__', {
2219
+ configurable: false,
2220
+ enumerable: false,
2221
+ writable: false,
2222
+ value: publicProps,
2223
+ });
2224
+ Object.defineProperty(Component, SYMBOL__GENERATE_MARKUP, {
2225
+ configurable: false,
2226
+ enumerable: false,
2227
+ writable: false,
2228
+ value: compilationMode === 'asyncYield'
2229
+ ? makeGenerateMarkupAsyncYield(Component, defaultTagName, publicProps, wireAdapters)
2230
+ : makeGenerateMarkupSync(Component, defaultTagName, publicProps, wireAdapters),
2231
+ });
2232
+ if (defaultTemplate) {
2233
+ Object.defineProperty(Component, SYMBOL__DEFAULT_TEMPLATE, {
2234
+ configurable: false,
2235
+ enumerable: false,
2236
+ writable: false,
2237
+ value: defaultTemplate,
2238
+ });
2239
+ }
2240
+ }
2241
+
2137
2242
  exports.ClassList = ClassList;
2138
2243
  exports.LightningElement = LightningElement;
2139
2244
  exports.SYMBOL__DEFAULT_TEMPLATE = SYMBOL__DEFAULT_TEMPLATE;
@@ -2179,6 +2284,7 @@ exports.setContextKeys = setContextKeys;
2179
2284
  exports.setFeatureFlag = setFeatureFlag;
2180
2285
  exports.setFeatureFlagForTest = setFeatureFlagForTest;
2181
2286
  exports.setHooks = setHooks;
2287
+ exports.setStaticInternals = setStaticInternals;
2182
2288
  exports.setTrustedContextSet = setTrustedContextSet;
2183
2289
  exports.setTrustedSignalSet = setTrustedSignalSet;
2184
2290
  exports.swapComponent = swapComponent;
@@ -2189,5 +2295,5 @@ exports.track = track;
2189
2295
  exports.unwrap = unwrap$1;
2190
2296
  exports.validateStyleTextContents = validateStyleTextContents;
2191
2297
  exports.wire = wire;
2192
- /** version: 9.2.2 */
2298
+ /** version: 9.3.5 */
2193
2299
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -12,4 +12,5 @@ export { toIteratorDirective } from './to-iterator-directive';
12
12
  export { validateStyleTextContents } from './validate-style-text-contents';
13
13
  export { createContextProvider, establishContextfulRelationship, connectContext } from './wire';
14
14
  export { readonly } from './get-read-only-proxy';
15
+ export { setStaticInternals } from './set-static-internals';
15
16
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -676,7 +676,7 @@ function normalizeTabIndex(value) {
676
676
  const shouldNormalize = value > 0 && typeof value !== 'boolean';
677
677
  return shouldNormalize ? 0 : value;
678
678
  }
679
- /** version: 9.2.2 */
679
+ /** version: 9.3.5 */
680
680
 
681
681
  /**
682
682
  * Copyright (c) 2026 Salesforce, Inc.
@@ -700,7 +700,7 @@ function normalizeTabIndex(value) {
700
700
  * @param value
701
701
  * @param msg
702
702
  */
703
- /** version: 9.2.2 */
703
+ /** version: 9.3.5 */
704
704
 
705
705
  /*
706
706
  * Copyright (c) 2023, salesforce.com, inc.
@@ -724,7 +724,7 @@ class SignalBaseClass {
724
724
  }
725
725
  }
726
726
  }
727
- /** version: 9.2.2 */
727
+ /** version: 9.3.5 */
728
728
 
729
729
  /**
730
730
  * Copyright (c) 2026 Salesforce, Inc.
@@ -746,11 +746,9 @@ const features = {
746
746
  DISABLE_LIGHT_DOM_UNSCOPED_CSS: null,
747
747
  ENABLE_FROZEN_TEMPLATE: null,
748
748
  ENABLE_LEGACY_SCOPE_TOKENS: null,
749
- ENABLE_FORCE_SHADOW_MIGRATE_MODE: null,
750
749
  ENABLE_EXPERIMENTAL_SIGNALS: null,
751
750
  DISABLE_SYNTHETIC_SHADOW: null,
752
751
  DISABLE_HOST_ATTACH_SHADOW_GUARD: null,
753
- DISABLE_SCOPE_TOKEN_VALIDATION: null,
754
752
  DISABLE_STRICT_VALIDATION: null,
755
753
  DISABLE_DETACHED_REHYDRATION: null,
756
754
  };
@@ -813,7 +811,7 @@ function setFeatureFlagForTest(name, value) {
813
811
  setFeatureFlag(name, value);
814
812
  }
815
813
  }
816
- /** version: 9.2.2 */
814
+ /** version: 9.3.5 */
817
815
 
818
816
  /*
819
817
  * Copyright (c) 2024, Salesforce, Inc.
@@ -1939,16 +1937,16 @@ async function serverSideRenderComponent(tagName, Component, props = {}, styleDe
1939
1937
  }
1940
1938
  if (mode === 'asyncYield') {
1941
1939
  let markup = '';
1942
- for await (const segment of generateMarkup(tagName, props, null, null, null, null, renderContext, null, null, null)) {
1940
+ for await (const segment of generateMarkup(tagName, props, null, null, null, renderContext, null, null, null)) {
1943
1941
  markup += segment;
1944
1942
  }
1945
1943
  return markup;
1946
1944
  }
1947
1945
  else if (mode === 'async') {
1948
- return await generateMarkup(tagName, props, null, null, null, null, renderContext, null, null, null);
1946
+ return await generateMarkup(tagName, props, null, null, null, renderContext, null, null, null);
1949
1947
  }
1950
1948
  else if (mode === 'sync') {
1951
- return generateMarkup(tagName, props, null, null, null, null, renderContext, null, null, null);
1949
+ return generateMarkup(tagName, props, null, null, null, renderContext, null, null, null);
1952
1950
  }
1953
1951
  else {
1954
1952
  throw new Error(`Invalid mode: ${mode}`);
@@ -2130,6 +2128,113 @@ function* toIteratorDirective(iterable) {
2130
2128
  }
2131
2129
  }
2132
2130
 
2133
- export { ClassList, LightningElement, SYMBOL__DEFAULT_TEMPLATE, SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS, SignalBaseClass, addTrustedContext as __dangerous_do_not_use_addTrustedContext, addSlottedContent, api, connectContext$1 as connectContext, createContextProvider, createElement, establishContextfulRelationship, fallbackTmpl, fallbackTmplNoYield, freezeTemplate, getComponentDef, hasScopedStaticStylesheets, hot, htmlEscape, isComponentConstructor, isTrustedSignal, mutationTracker, normalizeClass, normalizeTabIndex, normalizeTextContent, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, renderAttrs, renderAttrsNoYield, serverSideRenderComponent as renderComponent, renderStylesheets, renderTextContent, renderer, sanitizeAttribute, sanitizeHtmlContent, serverSideRenderComponent, setContextKeys, setFeatureFlag, setFeatureFlagForTest, setHooks, setTrustedContextSet, setTrustedSignalSet, swapComponent, swapStyle, swapTemplate, toIteratorDirective, track, unwrap$1 as unwrap, validateStyleTextContents, wire };
2134
- /** version: 9.2.2 */
2131
+ /*
2132
+ * Copyright (c) 2026, Salesforce, Inc.
2133
+ * All rights reserved.
2134
+ * SPDX-License-Identifier: MIT
2135
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2136
+ */
2137
+ function connectWires(cmp, adapter, makeDataCallback, // generated
2138
+ getLiveConfig // generated
2139
+ ) {
2140
+ // Callable adapters are expressed as a function having an 'adapter' property, which
2141
+ // is the actual wire constructor.
2142
+ const AdapterCtor = 'adapter' in adapter ? adapter.adapter : adapter;
2143
+ const wireInstance = new AdapterCtor(makeDataCallback(cmp));
2144
+ wireInstance.connect?.();
2145
+ if (wireInstance.update) {
2146
+ // This may look a bit weird, in that the 'update' function is called twice: once with
2147
+ // an 'undefined' value and possibly again with a context-provided value. While weird,
2148
+ // this preserves the behavior of the browser-side wire implementation as well as the
2149
+ // original SSR implementation.
2150
+ wireInstance.update(getLiveConfig(cmp), undefined);
2151
+ connectContext$1(AdapterCtor, cmp, (newContextValue) => {
2152
+ wireInstance.update(getLiveConfig(cmp), newContextValue);
2153
+ });
2154
+ }
2155
+ }
2156
+ function createComponent(Component, publicProps, wireAdapters, tagName, props, attrs, contextfulParent, defaultTmpl) {
2157
+ const instance = new Component({
2158
+ tagName: tagName.toUpperCase(),
2159
+ });
2160
+ establishContextfulRelationship(contextfulParent, instance);
2161
+ instance[SYMBOL__SET_INTERNALS](props, attrs, publicProps);
2162
+ if (wireAdapters?.length) {
2163
+ for (const { adapter, dataCallback: makeDataCallback, config: getLiveConfig, } of wireAdapters) {
2164
+ connectWires(instance, adapter, makeDataCallback, getLiveConfig);
2165
+ }
2166
+ }
2167
+ instance.isConnected = true;
2168
+ if (instance.connectedCallback) {
2169
+ mutationTracker.enable(instance);
2170
+ instance.connectedCallback();
2171
+ mutationTracker.disable(instance);
2172
+ }
2173
+ // If a render() function is defined on the class or any of its superclasses, then that takes priority.
2174
+ // Next, if the class or any of its superclasses has an implicitly-associated template, then that takes
2175
+ // second priority (e.g. a foo.html file alongside a foo.js file). Finally, there is a fallback empty template.
2176
+ const renderTemplate = instance.render?.() ?? Component[SYMBOL__DEFAULT_TEMPLATE] ?? defaultTmpl;
2177
+ const hostHasScopedStylesheets = renderTemplate.hasScopedStylesheets || hasScopedStaticStylesheets(Component);
2178
+ const hostScopeToken = hostHasScopedStylesheets
2179
+ ? renderTemplate.stylesheetScopeToken + '-host'
2180
+ : undefined;
2181
+ return { instance, hostScopeToken, renderTemplate };
2182
+ }
2183
+ function makeGenerateMarkupAsyncYield(Component, defaultTagName, publicProps, wireAdapters) {
2184
+ return async function* generateMarkup(tagName, props, attrs, scopeToken, contextfulParent, renderContext, shadowSlottedContent, lightSlottedContent, scopedSlottedContent) {
2185
+ props ??= Object.create(null);
2186
+ attrs ??= Object.create(null);
2187
+ tagName ??= defaultTagName;
2188
+ const { instance, hostScopeToken, renderTemplate } = createComponent(Component, publicProps, wireAdapters, tagName, props, attrs, contextfulParent, fallbackTmpl);
2189
+ yield `<${tagName}`;
2190
+ yield* renderAttrs(instance, attrs, hostScopeToken, scopeToken);
2191
+ yield '>';
2192
+ yield* renderTemplate(shadowSlottedContent, lightSlottedContent, scopedSlottedContent, Component, instance, renderContext);
2193
+ yield `</${tagName}>`;
2194
+ };
2195
+ }
2196
+ function makeGenerateMarkupSync(Component, defaultTagName, publicProps, wireAdapters) {
2197
+ return function generateMarkup(tagName, props, attrs, scopeToken, contextfulParent, renderContext, shadowSlottedContent, lightSlottedContent, scopedSlottedContent) {
2198
+ props ??= Object.create(null);
2199
+ attrs ??= Object.create(null);
2200
+ tagName ??= defaultTagName;
2201
+ const { instance, hostScopeToken, renderTemplate } = createComponent(Component, publicProps, wireAdapters, tagName, props, attrs, contextfulParent, fallbackTmplNoYield);
2202
+ let markup = `<${tagName}`;
2203
+ markup += renderAttrsNoYield(instance, attrs, hostScopeToken, scopeToken);
2204
+ markup += '>';
2205
+ markup += renderTemplate(shadowSlottedContent, lightSlottedContent, scopedSlottedContent, Component, instance, renderContext);
2206
+ markup += `</${tagName}>`;
2207
+ return markup;
2208
+ };
2209
+ }
2210
+ function setStaticInternals(Component, defaultTagName, cmpPublicProps, wireAdapters, compilationMode, defaultTemplate) {
2211
+ const SuperClass = Object.getPrototypeOf(Component);
2212
+ const superPublicProps = SuperClass.__lwcPublicProperties__ ?? [];
2213
+ const publicProps = new Set([...cmpPublicProps, ...superPublicProps]);
2214
+ Object.defineProperty(Component, '__lwcPublicProperties__', {
2215
+ configurable: false,
2216
+ enumerable: false,
2217
+ writable: false,
2218
+ value: publicProps,
2219
+ });
2220
+ Object.defineProperty(Component, SYMBOL__GENERATE_MARKUP, {
2221
+ configurable: false,
2222
+ enumerable: false,
2223
+ writable: false,
2224
+ value: compilationMode === 'asyncYield'
2225
+ ? makeGenerateMarkupAsyncYield(Component, defaultTagName, publicProps, wireAdapters)
2226
+ : makeGenerateMarkupSync(Component, defaultTagName, publicProps, wireAdapters),
2227
+ });
2228
+ if (defaultTemplate) {
2229
+ Object.defineProperty(Component, SYMBOL__DEFAULT_TEMPLATE, {
2230
+ configurable: false,
2231
+ enumerable: false,
2232
+ writable: false,
2233
+ value: defaultTemplate,
2234
+ });
2235
+ }
2236
+ }
2237
+
2238
+ export { ClassList, LightningElement, SYMBOL__DEFAULT_TEMPLATE, SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS, SignalBaseClass, addTrustedContext as __dangerous_do_not_use_addTrustedContext, addSlottedContent, api, connectContext$1 as connectContext, createContextProvider, createElement, establishContextfulRelationship, fallbackTmpl, fallbackTmplNoYield, freezeTemplate, getComponentDef, hasScopedStaticStylesheets, hot, htmlEscape, isComponentConstructor, isTrustedSignal, mutationTracker, normalizeClass, normalizeTabIndex, normalizeTextContent, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, renderAttrs, renderAttrsNoYield, serverSideRenderComponent as renderComponent, renderStylesheets, renderTextContent, renderer, sanitizeAttribute, sanitizeHtmlContent, serverSideRenderComponent, setContextKeys, setFeatureFlag, setFeatureFlagForTest, setHooks, setStaticInternals, setTrustedContextSet, setTrustedSignalSet, swapComponent, swapStyle, swapTemplate, toIteratorDirective, track, unwrap$1 as unwrap, validateStyleTextContents, wire };
2239
+ /** version: 9.3.5 */
2135
2240
  //# sourceMappingURL=index.js.map
@@ -22,6 +22,8 @@ export declare class LightningElement implements PropsAvailableAtConstruction {
22
22
  static delegatesFocus?: boolean;
23
23
  static formAssociated?: boolean;
24
24
  static shadowSupportMode?: 'any' | 'reset' | 'native';
25
+ connectedCallback?: () => void;
26
+ render?: () => unknown;
25
27
  accessKey: string;
26
28
  dir: string;
27
29
  draggable: boolean;
package/dist/render.d.ts CHANGED
@@ -8,7 +8,6 @@ type BaseGenerateMarkupParams = readonly [
8
8
  tagName: string,
9
9
  props: Properties | null,
10
10
  attrs: Attributes | null,
11
- parent: LightningElement | null,
12
11
  scopeToken: string | null,
13
12
  contextfulParent: LightningElement | null,
14
13
  renderContext: RenderContext
@@ -42,8 +41,8 @@ export type GenerateMarkupAsync = (...args: GenerateMarkupEmitterParams) => Prom
42
41
  /** Signature for `sync` compilation mode. */
43
42
  export type GenerateMarkupSync = (...args: GenerateMarkupEmitterParams) => string;
44
43
  type GenerateMarkupVariants = GenerateMarkupAsyncYield | GenerateMarkupAsync | GenerateMarkupSync;
45
- export declare function renderAttrs(instance: LightningElement, attrs: Attributes, hostScopeToken: string | undefined, scopeToken: string | undefined): Generator<string, void, unknown>;
46
- export declare function renderAttrsNoYield(instance: LightningElement, attrs: Attributes, hostScopeToken: string | undefined, scopeToken: string | undefined): string;
44
+ export declare function renderAttrs(instance: LightningElement, attrs: Attributes, hostScopeToken: string | undefined, scopeToken: string | null): Generator<string, void, unknown>;
45
+ export declare function renderAttrsNoYield(instance: LightningElement, attrs: Attributes, hostScopeToken: string | undefined, scopeToken: string | null): string;
47
46
  export declare function fallbackTmpl(shadowSlottedContent: SlottedContentGenerator | null, _lightSlottedContent: SlottedContentGeneratorMap | null, _scopedSlottedContent: SlottedContentGeneratorMap | null, Cmp: LightningElementConstructor, instance: LightningElement, _renderContext: RenderContext): AsyncGenerator<string>;
48
47
  export declare function fallbackTmplNoYield(shadowSlottedContent: SlottedContentEmitter | null, _lightSlottedContent: SlottedContentEmitterMap | null, _scopedSlottedContent: SlottedContentEmitterMap | null, Cmp: LightningElementConstructor, instance: LightningElement, _renderContext: RenderContext): string;
49
48
  export declare function addSlottedContent(name: string, fn: unknown, contentMap: Record<string, unknown[]>): void;
@@ -0,0 +1,23 @@
1
+ import { SYMBOL__DEFAULT_TEMPLATE, type LightningElementConstructor } from './lightning-element';
2
+ import type { CompilationMode } from '@lwc/shared';
3
+ import type { LightningElement } from './lightning-element';
4
+ import type { WireAdapterConstructor } from '@lwc/engine-core';
5
+ interface Template {
6
+ (...args: never[]): unknown;
7
+ hasScopedStylesheets?: boolean;
8
+ stylesheetScopeToken?: string;
9
+ }
10
+ interface ComponentStaticInternals {
11
+ __lwcPublicProperties__?: Set<string>;
12
+ [SYMBOL__DEFAULT_TEMPLATE]: Template;
13
+ }
14
+ interface WireAdapterInfo<Config extends object = object, Value = unknown> {
15
+ adapter: WireAdapterConstructor<Config, Value> | {
16
+ adapter: WireAdapterConstructor<Config, Value>;
17
+ };
18
+ dataCallback: (cmp: LightningElement) => (newValue: Value) => void;
19
+ config: (cmp: LightningElement) => Config;
20
+ }
21
+ export declare function setStaticInternals(Component: LightningElementConstructor & ComponentStaticInternals, defaultTagName: string, cmpPublicProps: string[], wireAdapters: WireAdapterInfo[], compilationMode: CompilationMode, defaultTemplate?: Template): void;
22
+ export {};
23
+ //# sourceMappingURL=set-static-internals.d.ts.map
package/dist/wire.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { LightningElement } from './lightning-element';
2
2
  import type { WireAdapterConstructor, WireContextProviderOptions } from '@lwc/engine-core';
3
3
  type SsrContextProvider = (le: LightningElement, options?: WireContextProviderOptions) => void;
4
- export declare function establishContextfulRelationship(parentLe: LightningElement, childLe: LightningElement): void;
4
+ export declare function establishContextfulRelationship(parentLe: LightningElement | null, childLe: LightningElement): void;
5
5
  export declare function getContextfulStack(le: LightningElement): LightningElement[];
6
6
  export declare function connectContext(adapter: WireAdapterConstructor, contextConsumer: LightningElement, onNewValue: (newValue: any) => void): void;
7
7
  export declare function createContextProvider(adapter: WireAdapterConstructor): SsrContextProvider;
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/ssr-runtime",
7
- "version": "9.2.2",
7
+ "version": "9.3.5",
8
8
  "description": "Runtime complement to @lwc/ssr-compiler",
9
9
  "keywords": [
10
10
  "lwc",
@@ -53,10 +53,10 @@
53
53
  }
54
54
  },
55
55
  "devDependencies": {
56
- "@lwc/shared": "9.2.2",
57
- "@lwc/engine-core": "9.2.2",
58
- "@lwc/features": "9.2.2",
59
- "@lwc/signals": "9.2.2",
56
+ "@lwc/shared": "9.3.5",
57
+ "@lwc/engine-core": "9.3.5",
58
+ "@lwc/features": "9.3.5",
59
+ "@lwc/signals": "9.3.5",
60
60
  "observable-membrane": "2.0.0"
61
61
  }
62
62
  }