@lwc/ssr-runtime 8.12.7-alpha.0 → 8.13.0-alpha.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.
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { ClassList } from './class-list';
3
2
  import type { Attributes, Properties } from './types';
4
3
  import type { Stylesheets } from '@lwc/shared';
@@ -27,10 +26,11 @@ export declare class LightningElement implements PropsAvailableAtConstruction {
27
26
  tabIndex: number;
28
27
  title: string;
29
28
  isConnected: boolean;
30
- className: string;
31
29
  tagName: string;
32
30
  constructor(propsAvailableAtConstruction: PropsAvailableAtConstruction & Properties);
33
- [SYMBOL__SET_INTERNALS](props: Properties, attrs: Attributes): void;
31
+ [SYMBOL__SET_INTERNALS](props: Properties, attrs: Attributes, publicProperties: Set<string>, privateProperties: Set<string>): void;
32
+ get className(): any;
33
+ set className(newVal: any);
34
34
  get classList(): ClassList;
35
35
  setAttribute(attrName: string, attrValue: string): void;
36
36
  getAttribute(attrName: string): string | null;
@@ -113,3 +113,4 @@ export declare class LightningElement implements PropsAvailableAtConstruction {
113
113
  role: string | null;
114
114
  }
115
115
  export {};
116
+ //# sourceMappingURL=lightning-element.d.ts.map
@@ -8,3 +8,4 @@ declare class MutationTracker {
8
8
  }
9
9
  export declare const mutationTracker: MutationTracker;
10
10
  export {};
11
+ //# sourceMappingURL=mutation-tracker.d.ts.map
@@ -1,8 +1,2 @@
1
- /**
2
- * Filters out the following types of properties that should not be set.
3
- * - Properties that are not public.
4
- * - Properties that are not global.
5
- * - Properties that are global but are internally overridden.
6
- */
7
- export declare function filterProperties(props: Record<string, unknown>, publicFields: Array<string>, privateFields: Array<string>): Record<string, unknown>;
8
1
  export declare const descriptors: Record<string, PropertyDescriptor>;
2
+ //# sourceMappingURL=reflection.d.ts.map
@@ -1,5 +1,13 @@
1
1
  /**
2
- * Given an object, render it for use as a text content node.
2
+ * Given an object, render it for use as a text content node. Not that this applies to individual text nodes,
3
+ * not the concatenated result of multiple adjacent text nodes.
3
4
  * @param value
4
5
  */
5
- export declare function massageTextContent(value: unknown): string;
6
+ export declare function normalizeTextContent(value: unknown): string;
7
+ /**
8
+ * Given a string, render it for use as text content in HTML. Notably this escapes HTML and renders as
9
+ * a ZWJ is empty. Intended to be used on the result of concatenating multiple adjacent text nodes together.
10
+ * @param value
11
+ */
12
+ export declare function renderTextContent(value: string): string;
13
+ //# sourceMappingURL=render-text-content.d.ts.map
package/dist/render.d.ts CHANGED
@@ -3,14 +3,15 @@ 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, _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;
6
+ export declare function fallbackTmpl(shadowSlottedContent: AsyncGeneratorFunction, _lightSlottedContent: unknown, _scopedSlottedContent: unknown, Cmp: LightningElementConstructor, instance: LightningElement): Generator<"<template shadowrootmode=\"open\"></template>" | AsyncGenerator<unknown, any, any>, void, unknown>;
7
+ export declare function fallbackTmplNoYield(emit: (segment: string) => void, shadowSlottedContent: AsyncGeneratorFunction | null, _lightSlottedContent: unknown, _scopedSlottedContent: unknown, Cmp: LightningElementConstructor, instance: LightningElement | null): void;
8
+ export type GenerateMarkupFn = (tagName: string, props: Properties | null, attrs: Attributes | null, shadowSlottedContent: AsyncGenerator<string> | null, lightSlottedContent: Record<number | string, AsyncGenerator<string>> | null, scopedSlottedContent: 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, scopedSlottedContent: 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, scopedSlottedContent: Record<number | string, AsyncGenerator<string>> | null, parent: LightningElement | null, scopeToken: string | null, contextfulParent: LightningElement | null) => void;
11
11
  type GenerateMarkupFnVariants = GenerateMarkupFn | GenerateMarkupFnAsyncNoGen | GenerateMarkupFnSyncNoGen;
12
- interface ComponentWithGenerateMarkup {
12
+ interface ComponentWithGenerateMarkup extends LightningElementConstructor {
13
13
  [SYMBOL__GENERATE_MARKUP]: GenerateMarkupFnVariants;
14
14
  }
15
15
  export declare function serverSideRenderComponent(tagName: string, Component: ComponentWithGenerateMarkup, props?: Properties, mode?: 'asyncYield' | 'async' | 'sync'): Promise<string>;
16
16
  export {};
17
+ //# sourceMappingURL=render.d.ts.map
package/dist/stubs.d.ts CHANGED
@@ -74,3 +74,4 @@ export declare const renderer: {
74
74
  * an error being thrown by the import itself.
75
75
  */
76
76
  export declare const hot: undefined;
77
+ //# sourceMappingURL=stubs.d.ts.map
package/dist/styles.d.ts CHANGED
@@ -4,3 +4,4 @@ type ForgivingStylesheets = Stylesheets | Stylesheet | undefined | null | Array<
4
4
  export declare function hasScopedStaticStylesheets(Component: LightningElementConstructor): boolean;
5
5
  export declare function renderStylesheets(defaultStylesheets: ForgivingStylesheets, defaultScopedStylesheets: ForgivingStylesheets, staticStylesheets: ForgivingStylesheets, scopeToken: string, Component: LightningElementConstructor, hasScopedTemplateStyles: boolean): string;
6
6
  export {};
7
+ //# sourceMappingURL=styles.d.ts.map
@@ -8,3 +8,4 @@ export declare function toIteratorDirective<T>(iterable: Iterable<T>): Generator
8
8
  first: boolean;
9
9
  last: boolean;
10
10
  }>;
11
+ //# sourceMappingURL=to-iterator-directive.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export type Attributes = Record<string, string>;
2
2
  export type Properties = Record<string, unknown>;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -19,3 +19,4 @@
19
19
  * validateStyleTextContents('</style><script>alert("pwned")</script>') // Throws
20
20
  */
21
21
  export declare function validateStyleTextContents(contents: string): void;
22
+ //# sourceMappingURL=validate-style-text-contents.d.ts.map
package/dist/wire.d.ts CHANGED
@@ -6,3 +6,4 @@ export declare function getContextfulStack(le: LightningElement): LightningEleme
6
6
  export declare function connectContext(adapter: WireAdapterConstructor, contextConsumer: LightningElement, onNewValue: (newValue: any) => void): void;
7
7
  export declare function createContextProvider(adapter: WireAdapterConstructor): SsrContextProvider;
8
8
  export {};
9
+ //# sourceMappingURL=wire.d.ts.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/ssr-runtime",
7
- "version": "8.12.7-alpha.0",
7
+ "version": "8.13.0-alpha.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.12.7-alpha.0",
52
- "@lwc/engine-core": "8.12.7-alpha.0",
51
+ "@lwc/shared": "8.13.0-alpha.0",
52
+ "@lwc/engine-core": "8.13.0-alpha.0",
53
53
  "observable-membrane": "2.0.0"
54
54
  }
55
55
  }