@stencil/core 5.0.0-beta.2 → 5.0.0-beta.21
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/app-data/index.d.ts +1 -1
- package/dist/{client-BRu0GtRn.mjs → client-CVXS3JZ-.mjs} +105 -60
- package/dist/compiler/browser.d.ts +110 -79
- package/dist/compiler/browser.js +571 -269
- package/dist/compiler/index.d.mts +110 -2
- package/dist/compiler/index.mjs +3 -3
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/{compiler-C8yf59oh.mjs → compiler-ApS_Tn_4.mjs} +4460 -2742
- package/dist/declarations/stencil-public-compiler.d.ts +144 -120
- package/dist/declarations/stencil-public-docs.d.ts +23 -0
- package/dist/declarations/stencil-public-runtime.d.ts +60 -58
- package/dist/{index-BopBfjPu.d.mts → index-B9-Byy8z.d.mts} +142 -118
- package/dist/{index-BXAcVN2j.d.ts → index-BHciXst1.d.ts} +57 -55
- package/dist/{index-DmHmu3y0.d.mts → index-Dz1G9pWZ.d.mts} +2 -2
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-75gQKkFz.mjs → node-Bz2SOK7_.mjs} +6 -35
- package/dist/runtime/client/lazy.js +228 -180
- package/dist/runtime/client/runtime.d.ts +67 -66
- package/dist/runtime/client/runtime.js +228 -180
- package/dist/runtime/index.d.ts +4 -5
- package/dist/runtime/index.js +226 -178
- package/dist/runtime/server/index.d.mts +11 -11
- package/dist/runtime/server/index.mjs +287 -220
- package/dist/runtime/server/runner.d.mts +4 -4
- package/dist/runtime/server/runner.mjs +82 -54
- package/dist/signals/index.d.ts +11 -2
- package/dist/signals/index.js +11 -1
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.d.mts +129 -112
- package/dist/testing/index.mjs +244 -193
- package/package.json +8 -4
|
@@ -298,7 +298,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
298
298
|
* Note that this is "approximate", in that HTML may often not be able
|
|
299
299
|
* to be split at an exact line width. Additionally, new lines created
|
|
300
300
|
* is where HTML naturally already has whitespace, such as before an
|
|
301
|
-
* attribute or spaces between words. Defaults to `100
|
|
301
|
+
* attribute or spaces between words. Defaults to no wrapping (`100` when prerendering).
|
|
302
302
|
*/
|
|
303
303
|
approximateLineWidth?: number;
|
|
304
304
|
/**
|
|
@@ -316,12 +316,12 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
316
316
|
prettyHtml?: boolean;
|
|
317
317
|
/**
|
|
318
318
|
* Remove quotes from attribute values when possible.
|
|
319
|
-
* Defaults to `true
|
|
319
|
+
* Defaults to `false` (`true` when prerendering).
|
|
320
320
|
*/
|
|
321
321
|
removeAttributeQuotes?: boolean;
|
|
322
322
|
/**
|
|
323
323
|
* Remove the `=""` from standardized `boolean` attributes,
|
|
324
|
-
* such as `hidden` or `checked`. Defaults to `true
|
|
324
|
+
* such as `hidden` or `checked`. Defaults to `false` (`true` when prerendering).
|
|
325
325
|
*/
|
|
326
326
|
removeBooleanAttributeQuotes?: boolean;
|
|
327
327
|
/**
|
|
@@ -330,7 +330,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
330
330
|
*/
|
|
331
331
|
removeEmptyAttributes?: boolean;
|
|
332
332
|
/**
|
|
333
|
-
* Remove HTML comments. Defaults to `true
|
|
333
|
+
* Remove HTML comments. Defaults to `false` (`true` when prerendering).
|
|
334
334
|
*/
|
|
335
335
|
removeHtmlComments?: boolean;
|
|
336
336
|
/**
|
|
@@ -1026,8 +1026,9 @@ declare const hAsync: (nodeName: any, vnodeData: any, ...children: ChildType[])
|
|
|
1026
1026
|
* @param results The results object to store the hydration results.
|
|
1027
1027
|
* @param afterSsr The callback to be called after SSR is complete.
|
|
1028
1028
|
* @param resolve The resolve function to be called when SSR is complete.
|
|
1029
|
+
* @param abortController The AbortController to use for aborting in-flight fetch() calls and other cancellable work when SSR times out.
|
|
1029
1030
|
*/
|
|
1030
|
-
declare function ssrApp(win: Window & typeof globalThis, opts: SsrFactoryOptions, results: SsrResults, afterSsr: (win: Window, opts: SsrFactoryOptions, results: SsrResults, resolve: (results: SsrResults) => void) => void, resolve: (results: SsrResults) => void): void;
|
|
1031
|
+
declare function ssrApp(win: Window & typeof globalThis, opts: SsrFactoryOptions, results: SsrResults, afterSsr: (win: Window, opts: SsrFactoryOptions, results: SsrResults, resolve: (results: SsrResults) => void) => void, resolve: (results: SsrResults) => void, abortController: AbortController): void;
|
|
1031
1032
|
//#endregion
|
|
1032
1033
|
//#region src/runtime/bootstrap-standalone.d.ts
|
|
1033
1034
|
declare const defineCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => void;
|
|
@@ -1100,13 +1101,13 @@ type Ctor<T = {}> = new (...args: any[]) => T;
|
|
|
1100
1101
|
declare function Mixin(...mixins: ((base: Ctor) => Ctor)[]): Ctor<{}>;
|
|
1101
1102
|
//#endregion
|
|
1102
1103
|
//#region src/runtime/mode.d.ts
|
|
1103
|
-
declare const setMode: (handler: ResolutionHandler) =>
|
|
1104
|
+
declare const setMode: (handler: ResolutionHandler) => void;
|
|
1104
1105
|
declare const getMode: (ref: RuntimeRef) => string;
|
|
1105
1106
|
//#endregion
|
|
1106
1107
|
//#region src/runtime/nonce.d.ts
|
|
1107
1108
|
/**
|
|
1108
1109
|
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1109
|
-
* During runtime, this value is used to set the nonce attribute on all dynamically created
|
|
1110
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created style tags.
|
|
1110
1111
|
* @param nonce The value to be assigned to the platform nonce property.
|
|
1111
1112
|
* @returns void
|
|
1112
1113
|
*/
|
|
@@ -1134,10 +1135,9 @@ declare const setNonce: (nonce: string) => string;
|
|
|
1134
1135
|
*
|
|
1135
1136
|
* @param propValue the new value to coerce to some type
|
|
1136
1137
|
* @param propType the type of the prop, expressed as a binary number
|
|
1137
|
-
* @param isFormAssociated whether the component is form-associated (optional)
|
|
1138
1138
|
* @returns the parsed/coerced value
|
|
1139
1139
|
*/
|
|
1140
|
-
declare const parsePropertyValue: (propValue: unknown, propType: number
|
|
1140
|
+
declare const parsePropertyValue: (propValue: unknown, propType: number) => any;
|
|
1141
1141
|
//#endregion
|
|
1142
1142
|
//#region src/runtime/proxy-component.d.ts
|
|
1143
1143
|
/**
|
|
@@ -1249,7 +1249,7 @@ declare const registerInstance: (lazyInstance: any, hostRef: HostRef) => HostRef
|
|
|
1249
1249
|
declare const registerHost: (elm: HostElement, cmpMeta: ComponentRuntimeMeta) => HostRef;
|
|
1250
1250
|
declare const Build: UserBuildConditionals;
|
|
1251
1251
|
declare const styles: StyleMap;
|
|
1252
|
-
declare const
|
|
1252
|
+
declare const modeResolver: ResolutionHandler[];
|
|
1253
1253
|
/**
|
|
1254
1254
|
* Server-side implementation of getAssetPath.
|
|
1255
1255
|
*
|
|
@@ -1274,4 +1274,4 @@ declare const setAssetPath: (path: string) => string;
|
|
|
1274
1274
|
declare const setScopedSsr: (opts: SsrFactoryOptions) => void;
|
|
1275
1275
|
declare const needsScopedSSR: () => boolean;
|
|
1276
1276
|
//#endregion
|
|
1277
|
-
export { BUILD, Build, Env, Fragment, Host, Mixin, NAMESPACE, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, getShadowRoot, getValue, hAsync as h, injectSideEffectStyle, insertVdomAnnotations, isMemberInElement, jsx, jsxs, loadModule,
|
|
1277
|
+
export { BUILD, Build, Env, Fragment, Host, Mixin, NAMESPACE, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, getShadowRoot, getValue, hAsync as h, injectSideEffectStyle, insertVdomAnnotations, isMemberInElement, jsx, jsxs, loadModule, modeResolver, needsScopedSSR, nextTick, parsePropertyValue, plt, postUpdateComponent, proxyComponent, proxyCustomElement, readTask, registerComponents, registerHost, registerInstance, registerSideEffectStyleTarget, renderVdom, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setScopedSsr, setTagTransformer, setValue, ssrApp, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsMutableAdoptedStyleSheets, transformTag, unregisterSideEffectStyleTarget, win, writeTask };
|