@lwc/ssr-runtime 8.19.0 → 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 +20 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -3
- package/dist/render.d.ts +1 -0
- package/dist/stubs.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
@@ -70,6 +70,12 @@ function unwrap$1(..._) {
|
|
70
70
|
function wire(..._) {
|
71
71
|
throw new Error('@wire cannot be used in SSR context.');
|
72
72
|
}
|
73
|
+
function setContextKeys(..._) {
|
74
|
+
throw new Error('@setContextKeys cannot be used in SSR context.');
|
75
|
+
}
|
76
|
+
function setTrustedContextSet(..._) {
|
77
|
+
throw new Error('setTrustedContextSet cannot be used in SSR context.');
|
78
|
+
}
|
73
79
|
const renderer = {
|
74
80
|
isSyntheticShadowDefined: false,
|
75
81
|
insert(..._) {
|
@@ -624,7 +630,7 @@ function normalizeTabIndex(value) {
|
|
624
630
|
const shouldNormalize = value > 0 && typeof value !== 'boolean';
|
625
631
|
return shouldNormalize ? 0 : value;
|
626
632
|
}
|
627
|
-
/** version: 8.
|
633
|
+
/** version: 8.20.0 */
|
628
634
|
|
629
635
|
/*
|
630
636
|
* Copyright (c) 2024, Salesforce, Inc.
|
@@ -1574,6 +1580,15 @@ function fallbackTmplNoYield(emit, shadowSlottedContent, _lightSlottedContent, _
|
|
1574
1580
|
}
|
1575
1581
|
}
|
1576
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
|
+
}
|
1577
1592
|
class RenderContext {
|
1578
1593
|
constructor(styleDedupe) {
|
1579
1594
|
this.stylesheetToId = new WeakMap();
|
@@ -1880,6 +1895,7 @@ exports.LightningElement = LightningElement;
|
|
1880
1895
|
exports.SYMBOL__DEFAULT_TEMPLATE = SYMBOL__DEFAULT_TEMPLATE;
|
1881
1896
|
exports.SYMBOL__GENERATE_MARKUP = SYMBOL__GENERATE_MARKUP;
|
1882
1897
|
exports.SYMBOL__SET_INTERNALS = SYMBOL__SET_INTERNALS;
|
1898
|
+
exports.addSlottedContent = addSlottedContent;
|
1883
1899
|
exports.api = api;
|
1884
1900
|
exports.connectContext = connectContext;
|
1885
1901
|
exports.createContextProvider = createContextProvider;
|
@@ -1911,9 +1927,11 @@ exports.renderTextContent = renderTextContent;
|
|
1911
1927
|
exports.renderer = renderer;
|
1912
1928
|
exports.sanitizeAttribute = sanitizeAttribute;
|
1913
1929
|
exports.serverSideRenderComponent = serverSideRenderComponent;
|
1930
|
+
exports.setContextKeys = setContextKeys;
|
1914
1931
|
exports.setFeatureFlag = setFeatureFlag;
|
1915
1932
|
exports.setFeatureFlagForTest = setFeatureFlagForTest;
|
1916
1933
|
exports.setHooks = setHooks;
|
1934
|
+
exports.setTrustedContextSet = setTrustedContextSet;
|
1917
1935
|
exports.swapComponent = swapComponent;
|
1918
1936
|
exports.swapStyle = swapStyle;
|
1919
1937
|
exports.swapTemplate = swapTemplate;
|
@@ -1922,5 +1940,5 @@ exports.track = track;
|
|
1922
1940
|
exports.unwrap = unwrap$1;
|
1923
1941
|
exports.validateStyleTextContents = validateStyleTextContents;
|
1924
1942
|
exports.wire = wire;
|
1925
|
-
/** version: 8.
|
1943
|
+
/** version: 8.20.0 */
|
1926
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
@@ -66,6 +66,12 @@ function unwrap$1(..._) {
|
|
66
66
|
function wire(..._) {
|
67
67
|
throw new Error('@wire cannot be used in SSR context.');
|
68
68
|
}
|
69
|
+
function setContextKeys(..._) {
|
70
|
+
throw new Error('@setContextKeys cannot be used in SSR context.');
|
71
|
+
}
|
72
|
+
function setTrustedContextSet(..._) {
|
73
|
+
throw new Error('setTrustedContextSet cannot be used in SSR context.');
|
74
|
+
}
|
69
75
|
const renderer = {
|
70
76
|
isSyntheticShadowDefined: false,
|
71
77
|
insert(..._) {
|
@@ -620,7 +626,7 @@ function normalizeTabIndex(value) {
|
|
620
626
|
const shouldNormalize = value > 0 && typeof value !== 'boolean';
|
621
627
|
return shouldNormalize ? 0 : value;
|
622
628
|
}
|
623
|
-
/** version: 8.
|
629
|
+
/** version: 8.20.0 */
|
624
630
|
|
625
631
|
/*
|
626
632
|
* Copyright (c) 2024, Salesforce, Inc.
|
@@ -1570,6 +1576,15 @@ function fallbackTmplNoYield(emit, shadowSlottedContent, _lightSlottedContent, _
|
|
1570
1576
|
}
|
1571
1577
|
}
|
1572
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
|
+
}
|
1573
1588
|
class RenderContext {
|
1574
1589
|
constructor(styleDedupe) {
|
1575
1590
|
this.stylesheetToId = new WeakMap();
|
@@ -1871,6 +1886,6 @@ function createContextProvider(adapter) {
|
|
1871
1886
|
};
|
1872
1887
|
}
|
1873
1888
|
|
1874
|
-
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, setFeatureFlag, setFeatureFlagForTest, setHooks, swapComponent, swapStyle, swapTemplate, toIteratorDirective, track, unwrap$1 as unwrap, validateStyleTextContents, wire };
|
1875
|
-
/** version: 8.
|
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 */
|
1876
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/dist/stubs.d.ts
CHANGED
@@ -17,6 +17,8 @@ export declare function swapTemplate(..._: unknown[]): never;
|
|
17
17
|
export declare function track(..._: unknown[]): never;
|
18
18
|
export declare function unwrap(..._: unknown[]): never;
|
19
19
|
export declare function wire(..._: unknown[]): never;
|
20
|
+
export declare function setContextKeys(..._: unknown[]): never;
|
21
|
+
export declare function setTrustedContextSet(..._: unknown[]): never;
|
20
22
|
export declare const renderer: {
|
21
23
|
isSyntheticShadowDefined: boolean;
|
22
24
|
insert(..._: unknown[]): never;
|
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.
|
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.
|
52
|
-
"@lwc/engine-core": "8.
|
51
|
+
"@lwc/shared": "8.20.0",
|
52
|
+
"@lwc/engine-core": "8.20.0",
|
53
53
|
"observable-membrane": "2.0.0"
|
54
54
|
}
|
55
55
|
}
|