@lwc/ssr-runtime 8.10.1 → 8.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.js +1090 -991
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1089 -992
- package/dist/index.js.map +1 -1
- package/dist/render-text-content.d.ts +5 -0
- package/dist/render.d.ts +6 -6
- package/dist/styles.d.ts +4 -2
- package/package.json +6 -3
package/dist/render.d.ts
CHANGED
@@ -3,14 +3,14 @@ import type { LightningElement, LightningElementConstructor } from './lightning-
|
|
3
3
|
import type { Attributes, Properties } from './types';
|
4
4
|
export declare function renderAttrs(instance: LightningElement, attrs: Attributes, hostScopeToken: string | undefined, scopeToken: string | undefined): Generator<string, void, unknown>;
|
5
5
|
export declare function renderAttrsNoYield(emit: (segment: string) => void, instance: LightningElement, attrs: Attributes, hostScopeToken: string | undefined, scopeToken: string | undefined): void;
|
6
|
-
export declare function fallbackTmpl(_props: unknown, _attrs: unknown,
|
7
|
-
export declare function fallbackTmplNoYield(emit: (segment: string) => void, _props: unknown, _attrs: unknown,
|
8
|
-
export type GenerateMarkupFn = (tagName: string, props: Properties | null, attrs: Attributes | null,
|
9
|
-
export type GenerateMarkupFnAsyncNoGen = (emit: (segment: string) => void, tagName: string, props:
|
10
|
-
export type GenerateMarkupFnSyncNoGen = (emit: (segment: string) => void, tagName: string, props:
|
6
|
+
export declare function fallbackTmpl(_props: unknown, _attrs: unknown, _shadowSlottedContent: unknown, _lightSlottedContent: unknown, Cmp: LightningElementConstructor, _instance: unknown): Generator<string, void, unknown>;
|
7
|
+
export declare function fallbackTmplNoYield(emit: (segment: string) => void, _props: unknown, _attrs: unknown, _shadowSlottedContent: unknown, _lightSlottedContent: unknown, Cmp: LightningElementConstructor, _instance: unknown): void;
|
8
|
+
export type GenerateMarkupFn = (tagName: string, props: Properties | null, attrs: Attributes | null, shadowSlottedContent: AsyncGenerator<string> | null, lightSlottedContent: Record<number | string, AsyncGenerator<string>> | null, parent: LightningElement | null, scopeToken: string | null, contextfulParent: LightningElement | null) => AsyncGenerator<string>;
|
9
|
+
export type GenerateMarkupFnAsyncNoGen = (emit: (segment: string) => void, tagName: string, props: Properties | null, attrs: Attributes | null, shadowSlottedContent: AsyncGenerator<string> | null, lightSlottedContent: Record<number | string, AsyncGenerator<string>> | null, parent: LightningElement | null, scopeToken: string | null, contextfulParent: LightningElement | null) => Promise<void>;
|
10
|
+
export type GenerateMarkupFnSyncNoGen = (emit: (segment: string) => void, tagName: string, props: Properties | null, attrs: Attributes | null, shadowSlottedContent: AsyncGenerator<string> | null, lightSlottedContent: Record<number | string, AsyncGenerator<string>> | null, parent: LightningElement | null, scopeToken: string | null, contextfulParent: LightningElement | null) => void;
|
11
11
|
type GenerateMarkupFnVariants = GenerateMarkupFn | GenerateMarkupFnAsyncNoGen | GenerateMarkupFnSyncNoGen;
|
12
12
|
interface ComponentWithGenerateMarkup {
|
13
13
|
[SYMBOL__GENERATE_MARKUP]: GenerateMarkupFnVariants;
|
14
14
|
}
|
15
|
-
export declare function serverSideRenderComponent(tagName: string, Component:
|
15
|
+
export declare function serverSideRenderComponent(tagName: string, Component: ComponentWithGenerateMarkup, props?: Properties, mode?: 'asyncYield' | 'async' | 'sync'): Promise<string>;
|
16
16
|
export {};
|
package/dist/styles.d.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
import type { LightningElementConstructor } from './lightning-element';
|
2
|
-
import type { Stylesheets } from '@lwc/shared';
|
2
|
+
import type { Stylesheets, Stylesheet } from '@lwc/shared';
|
3
|
+
type ForgivingStylesheets = Stylesheets | Stylesheet | undefined | null | Array<Stylesheets | undefined | null>;
|
3
4
|
export declare function hasScopedStaticStylesheets(Component: LightningElementConstructor): boolean;
|
4
|
-
export declare function renderStylesheets(
|
5
|
+
export declare function renderStylesheets(defaultStylesheets: ForgivingStylesheets, defaultScopedStylesheets: ForgivingStylesheets, staticStylesheets: ForgivingStylesheets, scopeToken: string, Component: LightningElementConstructor, hasScopedTemplateStyles: boolean): string;
|
6
|
+
export {};
|
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.12.0",
|
8
8
|
"description": "Runtime complement to @lwc/ssr-compiler",
|
9
9
|
"keywords": [
|
10
10
|
"lwc",
|
@@ -24,6 +24,9 @@
|
|
24
24
|
"publishConfig": {
|
25
25
|
"access": "public"
|
26
26
|
},
|
27
|
+
"volta": {
|
28
|
+
"extends": "../../../package.json"
|
29
|
+
},
|
27
30
|
"main": "dist/index.cjs.js",
|
28
31
|
"module": "dist/index.js",
|
29
32
|
"types": "dist/index.d.ts",
|
@@ -44,8 +47,8 @@
|
|
44
47
|
}
|
45
48
|
},
|
46
49
|
"devDependencies": {
|
47
|
-
"@lwc/shared": "8.
|
48
|
-
"@lwc/engine-core": "8.
|
50
|
+
"@lwc/shared": "8.12.0",
|
51
|
+
"@lwc/engine-core": "8.12.0",
|
49
52
|
"observable-membrane": "2.0.0"
|
50
53
|
}
|
51
54
|
}
|