@lwc/ssr-runtime 8.19.1 → 8.20.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.
package/dist/index.cjs.js CHANGED
@@ -630,7 +630,7 @@ function normalizeTabIndex(value) {
630
630
  const shouldNormalize = value > 0 && typeof value !== 'boolean';
631
631
  return shouldNormalize ? 0 : value;
632
632
  }
633
- /** version: 8.19.1 */
633
+ /** version: 8.20.0 */
634
634
 
635
635
  /*
636
636
  * Copyright (c) 2024, Salesforce, Inc.
@@ -1580,6 +1580,15 @@ function fallbackTmplNoYield(emit, shadowSlottedContent, _lightSlottedContent, _
1580
1580
  }
1581
1581
  }
1582
1582
  }
1583
+ function addSlottedContent(name, fn, contentMap) {
1584
+ const contentList = contentMap[name];
1585
+ if (contentList) {
1586
+ contentList.push(fn);
1587
+ }
1588
+ else {
1589
+ contentMap[name] = [fn];
1590
+ }
1591
+ }
1583
1592
  class RenderContext {
1584
1593
  constructor(styleDedupe) {
1585
1594
  this.stylesheetToId = new WeakMap();
@@ -1886,6 +1895,7 @@ exports.LightningElement = LightningElement;
1886
1895
  exports.SYMBOL__DEFAULT_TEMPLATE = SYMBOL__DEFAULT_TEMPLATE;
1887
1896
  exports.SYMBOL__GENERATE_MARKUP = SYMBOL__GENERATE_MARKUP;
1888
1897
  exports.SYMBOL__SET_INTERNALS = SYMBOL__SET_INTERNALS;
1898
+ exports.addSlottedContent = addSlottedContent;
1889
1899
  exports.api = api;
1890
1900
  exports.connectContext = connectContext;
1891
1901
  exports.createContextProvider = createContextProvider;
@@ -1930,5 +1940,5 @@ exports.track = track;
1930
1940
  exports.unwrap = unwrap$1;
1931
1941
  exports.validateStyleTextContents = validateStyleTextContents;
1932
1942
  exports.wire = wire;
1933
- /** version: 8.19.1 */
1943
+ /** version: 8.20.0 */
1934
1944
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { htmlEscape, setHooks, sanitizeHtmlContent, normalizeClass, normalizeTab
3
3
  export { ClassList } from './class-list';
4
4
  export { LightningElement, LightningElementConstructor, SYMBOL__DEFAULT_TEMPLATE, SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS, } from './lightning-element';
5
5
  export { mutationTracker } from './mutation-tracker';
6
- export { fallbackTmpl, fallbackTmplNoYield, GenerateMarkupAsyncYield, renderAttrs, renderAttrsNoYield, serverSideRenderComponent, serverSideRenderComponent as renderComponent, } from './render';
6
+ export { fallbackTmpl, fallbackTmplNoYield, GenerateMarkupAsyncYield, renderAttrs, renderAttrsNoYield, addSlottedContent, serverSideRenderComponent, serverSideRenderComponent as renderComponent, } from './render';
7
7
  export { normalizeTextContent, renderTextContent } from './render-text-content';
8
8
  export { hasScopedStaticStylesheets, renderStylesheets } from './styles';
9
9
  export { toIteratorDirective } from './to-iterator-directive';
package/dist/index.js CHANGED
@@ -626,7 +626,7 @@ function normalizeTabIndex(value) {
626
626
  const shouldNormalize = value > 0 && typeof value !== 'boolean';
627
627
  return shouldNormalize ? 0 : value;
628
628
  }
629
- /** version: 8.19.1 */
629
+ /** version: 8.20.0 */
630
630
 
631
631
  /*
632
632
  * Copyright (c) 2024, Salesforce, Inc.
@@ -1576,6 +1576,15 @@ function fallbackTmplNoYield(emit, shadowSlottedContent, _lightSlottedContent, _
1576
1576
  }
1577
1577
  }
1578
1578
  }
1579
+ function addSlottedContent(name, fn, contentMap) {
1580
+ const contentList = contentMap[name];
1581
+ if (contentList) {
1582
+ contentList.push(fn);
1583
+ }
1584
+ else {
1585
+ contentMap[name] = [fn];
1586
+ }
1587
+ }
1579
1588
  class RenderContext {
1580
1589
  constructor(styleDedupe) {
1581
1590
  this.stylesheetToId = new WeakMap();
@@ -1877,6 +1886,6 @@ function createContextProvider(adapter) {
1877
1886
  };
1878
1887
  }
1879
1888
 
1880
- export { ClassList, LightningElement, SYMBOL__DEFAULT_TEMPLATE, SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS, api, connectContext, createContextProvider, createElement, establishContextfulRelationship, fallbackTmpl, fallbackTmplNoYield, freezeTemplate, getComponentDef, hasScopedStaticStylesheets, hot, htmlEscape, isComponentConstructor, 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, swapComponent, swapStyle, swapTemplate, toIteratorDirective, track, unwrap$1 as unwrap, validateStyleTextContents, wire };
1881
- /** version: 8.19.1 */
1889
+ export { ClassList, LightningElement, SYMBOL__DEFAULT_TEMPLATE, SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS, addSlottedContent, api, connectContext, createContextProvider, createElement, establishContextfulRelationship, fallbackTmpl, fallbackTmplNoYield, freezeTemplate, getComponentDef, hasScopedStaticStylesheets, hot, htmlEscape, isComponentConstructor, 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, swapComponent, swapStyle, swapTemplate, toIteratorDirective, track, unwrap$1 as unwrap, validateStyleTextContents, wire };
1890
+ /** version: 8.20.0 */
1882
1891
  //# sourceMappingURL=index.js.map
package/dist/render.d.ts CHANGED
@@ -48,6 +48,7 @@ export declare function renderAttrs(instance: LightningElement, attrs: Attribute
48
48
  export declare function renderAttrsNoYield(emit: (segment: string) => void, instance: LightningElement, attrs: Attributes, hostScopeToken: string | undefined, scopeToken: string | undefined): void;
49
49
  export declare function fallbackTmpl(shadowSlottedContent: SlottedContentGenerator | null, _lightSlottedContent: SlottedContentGeneratorMap | null, _scopedSlottedContent: SlottedContentGeneratorMap | null, Cmp: LightningElementConstructor, instance: LightningElement): AsyncGenerator<string>;
50
50
  export declare function fallbackTmplNoYield(emit: Emit, shadowSlottedContent: SlottedContentEmitter | null, _lightSlottedContent: SlottedContentEmitterMap | null, _scopedSlottedContent: SlottedContentEmitterMap | null, Cmp: LightningElementConstructor, instance: LightningElement): void;
51
+ export declare function addSlottedContent(name: string, fn: unknown, contentMap: Record<string, unknown[]>): void;
51
52
  interface ComponentWithGenerateMarkup extends LightningElementConstructor {
52
53
  [SYMBOL__GENERATE_MARKUP]?: GenerateMarkupVariants;
53
54
  }
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": "8.19.1",
7
+ "version": "8.20.0",
8
8
  "description": "Runtime complement to @lwc/ssr-compiler",
9
9
  "keywords": [
10
10
  "lwc",
@@ -48,8 +48,8 @@
48
48
  }
49
49
  },
50
50
  "devDependencies": {
51
- "@lwc/shared": "8.19.1",
52
- "@lwc/engine-core": "8.19.1",
51
+ "@lwc/shared": "8.20.0",
52
+ "@lwc/engine-core": "8.20.0",
53
53
  "observable-membrane": "2.0.0"
54
54
  }
55
55
  }