@stencil/core 5.0.0-alpha.5 → 5.0.0-alpha.7
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/{client-Dnio47yQ.mjs → client-Dd-NB5Ei.mjs} +2324 -2125
- package/dist/compiler/index.d.mts +5 -5
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +2 -2
- package/dist/compiler/utils/index.mjs +3 -3
- package/dist/{compiler-Dxri2g8Z.mjs → compiler-BmT_yLHU.mjs} +13458 -12695
- package/dist/declarations/stencil-public-compiler.d.ts +273 -144
- package/dist/declarations/stencil-public-docs.d.ts +10 -0
- package/dist/declarations/stencil-public-runtime.d.ts +49 -12
- package/dist/{index-D61XZw0f.d.ts → index-BuveMLxy.d.ts} +82 -31
- package/dist/{index-D5zaocDq.d.mts → index-CVhWFUM0.d.mts} +249 -204
- package/dist/{index-Dat4djoo.d.mts → index-ch-cf-bZ.d.mts} +13 -2
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +18 -0
- package/dist/jsx-runtime.mjs +2 -0
- package/dist/{node-pj6rF4Wt.mjs → node-10UamZmn.mjs} +59 -55
- package/dist/{regular-expression-D0_N0PGa.mjs → regular-expression-CFVJOTUh.mjs} +83 -8
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +15 -9
- package/dist/{runtime-CKyUrF4i.js → runtime/client/lazy.js} +2539 -2199
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +49 -40
- package/dist/runtime/client/{index.js → runtime.js} +2401 -2185
- package/dist/runtime/index.d.ts +20 -3
- package/dist/runtime/index.js +4956 -2
- package/dist/runtime/server/index.d.mts +30 -39
- package/dist/runtime/server/index.mjs +2369 -2185
- package/dist/runtime/server/runner.d.mts +4 -6
- package/dist/runtime/server/runner.mjs +307 -361
- package/dist/signals/index.d.ts +47 -0
- package/dist/signals/index.js +199 -0
- 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 +97 -3
- package/dist/testing/index.mjs +199 -50
- package/dist/{validation-BA8nzXu_.mjs → validation-ByxKj8bC.mjs} +21 -32
- package/package.json +41 -27
- package/dist/index-D-XN9HW_.d.ts +0 -30
- package/dist/jsx-runtime-B3vQbWIW.d.ts +0 -28
- package/dist/jsx-runtime.d.ts +0 -2
- package/dist/jsx-runtime.js +0 -2
- /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Diagnostic, Node as Node$1 } from "typescript";
|
|
2
|
-
import { RolldownError, SourceMap } from "rolldown";
|
|
2
|
+
import { InputOptions, RolldownError, SourceMap, SourceMap as RolldownSourceMap } from "rolldown";
|
|
3
3
|
import { Serializable } from "child_process";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/byte-size.d.ts
|
|
@@ -80,13 +80,6 @@ declare const CMP_FLAGS: {
|
|
|
80
80
|
* Used to determine if a component does not use the shadow DOM _and_ has `<slot/>` tags in its markup.
|
|
81
81
|
*/
|
|
82
82
|
readonly hasSlotRelocation: number;
|
|
83
|
-
/**
|
|
84
|
-
* Determines if a shim for the shadow DOM is necessary.
|
|
85
|
-
*
|
|
86
|
-
* The shim should only be needed if a component requires {@link shadowDomEncapsulation} and if any output
|
|
87
|
-
* target-specific criteria are met. Refer to this flag's usage to determine each output target's criteria.
|
|
88
|
-
*/
|
|
89
|
-
readonly needsShadowDomShim: number;
|
|
90
83
|
/**
|
|
91
84
|
* Determines if `delegatesFocus` is enabled for a component that uses the shadow DOM.
|
|
92
85
|
* e.g. `shadow: { delegatesFocus: true }` is set on the `@Component()` decorator
|
|
@@ -97,10 +90,7 @@ declare const CMP_FLAGS: {
|
|
|
97
90
|
*/
|
|
98
91
|
readonly hasMode: number;
|
|
99
92
|
/**
|
|
100
|
-
* Determines if styles must be scoped
|
|
101
|
-
* 1. A component is using scoped stylesheets ({@link scopedCssEncapsulation})
|
|
102
|
-
* 2. A component is using the shadow DOM _and_ the output target's rules for requiring a shadow DOM shim have been
|
|
103
|
-
* met ({@link needsShadowDomShim})
|
|
93
|
+
* Determines if styles must be scoped - i.e. the component uses scoped stylesheets.
|
|
104
94
|
*/
|
|
105
95
|
readonly needsScopedEncapsulation: number;
|
|
106
96
|
/**
|
|
@@ -167,6 +157,7 @@ declare const XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
|
167
157
|
* File names and value
|
|
168
158
|
*/
|
|
169
159
|
declare const COLLECTION_MANIFEST_FILE_NAME = "collection-manifest.json";
|
|
160
|
+
declare const COLLECTION_APP_DATA_FILE_NAME = "app-data.js";
|
|
170
161
|
/**
|
|
171
162
|
* Constant for the 'copy' output target
|
|
172
163
|
*/
|
|
@@ -191,13 +182,19 @@ declare const STANDALONE = "standalone";
|
|
|
191
182
|
*/
|
|
192
183
|
declare const SSR = "ssr";
|
|
193
184
|
/**
|
|
194
|
-
* Constant for the '
|
|
185
|
+
* Constant for the 'ssr-wasm' output target.
|
|
186
|
+
* Compiles the SSR script to a WASM binary via javy for use in any WASM-capable host
|
|
187
|
+
* (PHP, Java, Ruby, Go, etc.) without requiring a JavaScript runtime.
|
|
188
|
+
*/
|
|
189
|
+
declare const SSR_WASM = "ssr-wasm";
|
|
190
|
+
/**
|
|
191
|
+
* Constant for the 'collection' output target
|
|
195
192
|
* (formerly 'dist-collection' sub-output in v4)
|
|
196
193
|
*
|
|
197
194
|
* Contains transpiled source + metadata for downstream Stencil projects
|
|
198
195
|
* to re-compile/bundle.
|
|
199
196
|
*/
|
|
200
|
-
declare const
|
|
197
|
+
declare const COLLECTION = "collection";
|
|
201
198
|
/**
|
|
202
199
|
* Constant for the 'types' output target
|
|
203
200
|
* (formerly 'dist-types' sub-output in v4)
|
|
@@ -252,10 +249,11 @@ declare const WWW = "www";
|
|
|
252
249
|
* Note that some internal output targets (e.g. `DIST_LAZY`, `DIST_GLOBAL_STYLES`)
|
|
253
250
|
* are programmatically created by the compiler and are not user-configurable.
|
|
254
251
|
*
|
|
255
|
-
* In v5, `TYPES` and `
|
|
252
|
+
* In v5, `TYPES` and `COLLECTION` are auto-generated in production builds unless explicitly configured.
|
|
256
253
|
*/
|
|
257
|
-
declare const VALID_CONFIG_OUTPUT_TARGETS: readonly ["www", "loader-bundle", "standalone", "ssr", "
|
|
254
|
+
declare const VALID_CONFIG_OUTPUT_TARGETS: readonly ["www", "loader-bundle", "standalone", "ssr", "ssr-wasm", "collection", "types", "global-style", "assets", "dist", "dist-custom-elements", "dist-hydrate-script", "dist-collection", "dist-types", "docs-json", "docs-readme", "docs-vscode", "docs-custom", "docs-custom-elements-manifest", "copy", "custom", "stats"];
|
|
258
255
|
declare const GENERATED_DTS = "components.d.ts";
|
|
256
|
+
declare const STYLE_EXT: string[];
|
|
259
257
|
/**
|
|
260
258
|
* DOM Node types
|
|
261
259
|
*
|
|
@@ -450,6 +448,7 @@ declare const isGlob: (str: string) => boolean;
|
|
|
450
448
|
declare const isRootPath: (p: string) => boolean;
|
|
451
449
|
//#endregion
|
|
452
450
|
//#region src/utils/logger/logger-rolldown.d.ts
|
|
451
|
+
declare const isRolldownError: (e: unknown) => e is RolldownError;
|
|
453
452
|
declare const loadRolldownDiagnostics: (config: ValidatedConfig, compilerCtx: CompilerCtx, buildCtx: BuildCtx, rolldownError: RolldownError) => void;
|
|
454
453
|
declare const createOnWarnFn: (diagnostics: Diagnostic$1[], bundleModulesFiles?: Module[]) => (warning: {
|
|
455
454
|
code?: string;
|
|
@@ -598,7 +597,8 @@ declare const getComponentsDtsTypesFilePath: (typesDir: string) => string;
|
|
|
598
597
|
declare const isOutputTargetLoaderBundle: (o: OutputTarget) => o is OutputTargetLoaderBundle;
|
|
599
598
|
declare const isOutputTargetStandalone: (o: OutputTarget) => o is OutputTargetStandalone;
|
|
600
599
|
declare const isOutputTargetSsr: (o: OutputTarget) => o is OutputTargetSsr;
|
|
601
|
-
declare const
|
|
600
|
+
declare const isOutputTargetSsrWasm: (o: OutputTarget) => o is OutputTargetSsrWasm;
|
|
601
|
+
declare const isOutputTargetCollection: (o: OutputTarget) => o is OutputTargetCollection;
|
|
602
602
|
declare const isOutputTargetTypes: (o: OutputTarget) => o is OutputTargetTypes;
|
|
603
603
|
declare const isOutputTargetGlobalStyle: (o: OutputTarget) => o is OutputTargetGlobalStyle;
|
|
604
604
|
declare const isOutputTargetAssets: (o: OutputTarget) => o is OutputTargetAssets;
|
|
@@ -1702,7 +1702,7 @@ interface FunctionalUtilities {
|
|
|
1702
1702
|
map: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => ChildNode$1) => VNode[];
|
|
1703
1703
|
}
|
|
1704
1704
|
interface FunctionalComponent<T = {}> {
|
|
1705
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode |
|
|
1705
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | null;
|
|
1706
1706
|
}
|
|
1707
1707
|
/**
|
|
1708
1708
|
* A Child VDOM node
|
|
@@ -1713,7 +1713,7 @@ interface FunctionalComponent<T = {}> {
|
|
|
1713
1713
|
* {@link FunctionalUtilities}).
|
|
1714
1714
|
*/
|
|
1715
1715
|
interface ChildNode$1 {
|
|
1716
|
-
vtag?: string | number | Function;
|
|
1716
|
+
vtag?: string | number | Function | symbol | null;
|
|
1717
1717
|
vkey?: string | number;
|
|
1718
1718
|
vtext?: string;
|
|
1719
1719
|
vchildren?: VNode[];
|
|
@@ -1725,13 +1725,15 @@ interface ChildNode$1 {
|
|
|
1725
1725
|
*/
|
|
1726
1726
|
interface VNode {
|
|
1727
1727
|
$flags$: number;
|
|
1728
|
-
$tag$: string | number | Function;
|
|
1728
|
+
$tag$: string | number | Function | symbol | null;
|
|
1729
1729
|
$elm$: any;
|
|
1730
1730
|
$text$: string;
|
|
1731
1731
|
$children$: VNode[];
|
|
1732
1732
|
$attrs$?: any;
|
|
1733
1733
|
$name$?: string;
|
|
1734
1734
|
$key$?: string | number;
|
|
1735
|
+
/** Signal reference for vdom bypass: signal text nodes store the signal here. */
|
|
1736
|
+
$signal$?: any;
|
|
1735
1737
|
}
|
|
1736
1738
|
//#endregion
|
|
1737
1739
|
//#region src/declarations/stencil-public-compiler.d.ts
|
|
@@ -1818,20 +1820,6 @@ interface StencilConfig {
|
|
|
1818
1820
|
* @default false
|
|
1819
1821
|
*/
|
|
1820
1822
|
generateExportMaps?: boolean;
|
|
1821
|
-
/**
|
|
1822
|
-
* When the hashFileNames config is set to true, and it is a production build,
|
|
1823
|
-
* the hashedFileNameLength config is used to determine how many characters the file name's hash should be.
|
|
1824
|
-
*/
|
|
1825
|
-
hashedFileNameLength?: number;
|
|
1826
|
-
/**
|
|
1827
|
-
* During production builds, the content of each generated file is hashed to represent the content,
|
|
1828
|
-
* and the hashed value is used as the filename. If the content isn't updated between builds,
|
|
1829
|
-
* then it receives the same filename. When the content is updated, then the filename is different.
|
|
1830
|
-
*
|
|
1831
|
-
* By doing this, deployed apps can "forever-cache" the build directory and take full advantage of
|
|
1832
|
-
* content delivery networks (CDNs) and heavily caching files for faster apps.
|
|
1833
|
-
*/
|
|
1834
|
-
hashFileNames?: boolean;
|
|
1835
1823
|
/**
|
|
1836
1824
|
* The namespace config is a string representing a namespace for the app.
|
|
1837
1825
|
* For apps that are not meant to be a library of reusable components,
|
|
@@ -1902,11 +1890,17 @@ interface StencilConfig {
|
|
|
1902
1890
|
*/
|
|
1903
1891
|
logger?: Logger;
|
|
1904
1892
|
/**
|
|
1905
|
-
*
|
|
1906
|
-
* that not all DOM APIs are fully polyfilled when using the slot polyfill. These
|
|
1907
|
-
* are opt-in since not all users will require the additional runtime.
|
|
1893
|
+
* Compatibility and workaround flags for framework integration and bundler edge cases.
|
|
1908
1894
|
*/
|
|
1909
|
-
|
|
1895
|
+
compat?: ConfigCompat;
|
|
1896
|
+
/**
|
|
1897
|
+
* Replace `@State` and `@Prop` internals with `@preact/signals-core` signal primitives.
|
|
1898
|
+
* Enables cross-framework reactive interop - component state becomes subscribable by
|
|
1899
|
+
* Solid, Angular, Preact and any TC39-signal-compatible library without event/attribute
|
|
1900
|
+
* roundtrips. No API changes required in component code.
|
|
1901
|
+
* Defaults to `false`.
|
|
1902
|
+
*/
|
|
1903
|
+
signalBacking?: boolean;
|
|
1910
1904
|
/**
|
|
1911
1905
|
* The hydrated flag identifies if a component and all of its child components
|
|
1912
1906
|
* have finished hydrating. This helps prevent any flash of unstyled content (FOUC)
|
|
@@ -2022,14 +2016,56 @@ interface StencilConfig {
|
|
|
2022
2016
|
* Set whether unused dependencies should be excluded from the built output.
|
|
2023
2017
|
*/
|
|
2024
2018
|
excludeUnusedDependencies?: boolean;
|
|
2019
|
+
/**
|
|
2020
|
+
* Explicitly declare which npm packages are Stencil collections to be re-bundled into this project.
|
|
2021
|
+
*
|
|
2022
|
+
* Without this option, collection ingestion is triggered only by a side-effect import:
|
|
2023
|
+
* ```ts
|
|
2024
|
+
* import '@ionic/core';
|
|
2025
|
+
* ```
|
|
2026
|
+
* @example
|
|
2027
|
+
* ```ts
|
|
2028
|
+
* export const config: Config = {
|
|
2029
|
+
* collections: ['@ionic/core', '@my-org/design-system'],
|
|
2030
|
+
* };
|
|
2031
|
+
* ```
|
|
2032
|
+
*
|
|
2033
|
+
* @default []
|
|
2034
|
+
*/
|
|
2035
|
+
collections?: string[];
|
|
2025
2036
|
stencilCoreResolvedId?: string;
|
|
2026
2037
|
}
|
|
2027
|
-
|
|
2038
|
+
/**
|
|
2039
|
+
* DOM patches for light-dom / scoped components that use `<slot>`.
|
|
2040
|
+
*
|
|
2041
|
+
* These patches shield the component's slot machinery from framework DOM mutations
|
|
2042
|
+
* (e.g. when Angular or React insert / remove nodes they route directly to the host
|
|
2043
|
+
* element, bypassing the slot polyfill) and prevent hydration errors when a framework
|
|
2044
|
+
* encounters Stencil's internal slot reference nodes during SSR reconciliation.
|
|
2045
|
+
*
|
|
2046
|
+
* Patches are only applied at runtime when a component is both non-shadow **and**
|
|
2047
|
+
* declares at least one `<slot>`, so enabling them has no effect on pure shadow-DOM
|
|
2048
|
+
* components.
|
|
2049
|
+
*
|
|
2050
|
+
* Set to `true` (default) to enable all patches, `false` to disable all, or an object
|
|
2051
|
+
* for granular control.
|
|
2052
|
+
*/
|
|
2053
|
+
type LightDomPatches = {
|
|
2054
|
+
/** Patches `childNodes`/`children` getters to return only slotted content. */childNodes?: boolean; /** Patches `cloneNode()` to correctly deep-clone slotted content. */
|
|
2055
|
+
cloneNode?: boolean; /** Patches `appendChild()`, `insertBefore()`, and `removeChild()` to route to the correct slot. */
|
|
2056
|
+
domMutations?: boolean; /** Patches `textContent` to act like shadow DOM (reads/writes slotted text only). */
|
|
2057
|
+
textContent?: boolean;
|
|
2058
|
+
};
|
|
2059
|
+
/**
|
|
2060
|
+
* Compatibility and workaround flags for framework integration and bundler edge cases.
|
|
2061
|
+
* These are opt-in runtime behaviors that aren't needed by every project.
|
|
2062
|
+
*/
|
|
2063
|
+
interface ConfigCompat {
|
|
2028
2064
|
/**
|
|
2029
2065
|
* Projects that use a Stencil library built using the `dist` output target may have trouble lazily
|
|
2030
2066
|
* loading components when using a bundler such as Vite or Parcel. Setting this flag to `true` will change how Stencil
|
|
2031
2067
|
* lazily loads components in a way that works with additional bundlers. Setting this flag to `true` will increase
|
|
2032
|
-
* the size of the compiled output. Defaults to `
|
|
2068
|
+
* the size of the compiled output. Defaults to `true`.
|
|
2033
2069
|
*/
|
|
2034
2070
|
enableImportInjection?: boolean;
|
|
2035
2071
|
/**
|
|
@@ -2044,53 +2080,16 @@ interface ConfigExtrasBase {
|
|
|
2044
2080
|
*/
|
|
2045
2081
|
initializeNextTick?: boolean;
|
|
2046
2082
|
/**
|
|
2047
|
-
* Adds `transformTag` calls to css strings and querySelector(All) calls
|
|
2083
|
+
* Adds `transformTag` calls to css strings and querySelector(All) calls.
|
|
2084
|
+
* Use `'prod'` to enable only in production builds.
|
|
2048
2085
|
*/
|
|
2049
2086
|
additionalTagTransformers?: boolean | 'prod';
|
|
2050
2087
|
/**
|
|
2051
|
-
*
|
|
2052
|
-
*
|
|
2053
|
-
* Shadow DOM when using `slot`s.
|
|
2054
|
-
* Defaults to `false`.
|
|
2088
|
+
* DOM patches for light-dom / scoped components that use `<slot>`.
|
|
2089
|
+
* See {@link LightDomPatches} for granular control. Defaults to `true`.
|
|
2055
2090
|
*/
|
|
2056
|
-
|
|
2091
|
+
lightDomPatches?: boolean | LightDomPatches;
|
|
2057
2092
|
}
|
|
2058
|
-
type ConfigExtrasSlotFixes<ExperimentalFixesEnabled extends boolean, IndividualFlags extends boolean> = {
|
|
2059
|
-
/**
|
|
2060
|
-
* By default, the slot polyfill does not update `appendChild()` so that it appends
|
|
2061
|
-
* new child nodes into the correct child slot like how shadow dom works. This is an opt-in
|
|
2062
|
-
* polyfill for those who need it when using `element.appendChild(node)` and expecting the
|
|
2063
|
-
* child to be appended in the same location shadow dom would. This is not required for
|
|
2064
|
-
* IE11 or Edge 18, but can be enabled if the app is using `appendChild()`. Defaults to `false`.
|
|
2065
|
-
*/
|
|
2066
|
-
appendChildSlotFix?: IndividualFlags;
|
|
2067
|
-
/**
|
|
2068
|
-
* By default, the runtime does not polyfill `cloneNode()` when cloning a component
|
|
2069
|
-
* that uses the slot polyfill. This is an opt-in polyfill for those who need it.
|
|
2070
|
-
* This is not required for IE11 or Edge 18, but can be enabled if the app is using
|
|
2071
|
-
* `cloneNode()` and unexpected node are being cloned due to the slot polyfill
|
|
2072
|
-
* simulating shadow dom. Defaults to `false`.
|
|
2073
|
-
*/
|
|
2074
|
-
cloneNodeFix?: IndividualFlags;
|
|
2075
|
-
/**
|
|
2076
|
-
* Experimental flag to align the behavior of invoking `textContent` on a scoped component to act more like a
|
|
2077
|
-
* component that uses the shadow DOM. Defaults to `false`
|
|
2078
|
-
*/
|
|
2079
|
-
scopedSlotTextContentFix?: IndividualFlags;
|
|
2080
|
-
/**
|
|
2081
|
-
* For browsers that do not support shadow dom (IE11 and Edge 18 and below), slot is polyfilled
|
|
2082
|
-
* to simulate the same behavior. However, the host element's `childNodes` and `children`
|
|
2083
|
-
* getters are not patched to only show the child nodes and elements of the default slot.
|
|
2084
|
-
* Defaults to `false`.
|
|
2085
|
-
*/
|
|
2086
|
-
slotChildNodesFix?: IndividualFlags;
|
|
2087
|
-
/**
|
|
2088
|
-
* Enables all slot-related fixes such as {@link slotChildNodesFix}, and
|
|
2089
|
-
* {@link scopedSlotTextContentFix}.
|
|
2090
|
-
*/
|
|
2091
|
-
experimentalSlotFixes?: ExperimentalFixesEnabled;
|
|
2092
|
-
};
|
|
2093
|
-
type ConfigExtras = ConfigExtrasBase & (ConfigExtrasSlotFixes<true, true> | ConfigExtrasSlotFixes<false, boolean>);
|
|
2094
2093
|
interface Config extends StencilConfig {
|
|
2095
2094
|
buildAppCore?: boolean;
|
|
2096
2095
|
configPath?: string;
|
|
@@ -2193,7 +2192,7 @@ type RequireFields<T, K extends keyof T> = T & { [P in K]-?: T[P] };
|
|
|
2193
2192
|
/**
|
|
2194
2193
|
* Fields in {@link Config} to make required for {@link ValidatedConfig}
|
|
2195
2194
|
*/
|
|
2196
|
-
type StrictConfigFields = keyof Pick<Config, 'cacheDir' | 'devServer' | '
|
|
2195
|
+
type StrictConfigFields = keyof Pick<Config, 'cacheDir' | 'devServer' | 'compat' | 'fsNamespace' | 'hydratedFlag' | 'logLevel' | 'logger' | 'minifyCss' | 'minifyJs' | 'namespace' | 'outputTargets' | 'packageJsonFilePath' | 'rolldownConfig' | 'rootDir' | 'srcDir' | 'srcIndexHtml' | 'sys' | 'transformAliasedImportPaths'>;
|
|
2197
2196
|
/**
|
|
2198
2197
|
* A version of {@link Config} that makes certain fields required. This type represents a valid configuration entity.
|
|
2199
2198
|
* When a configuration is received by the user, it is a bag of unverified data. In order to make stricter guarantees
|
|
@@ -3024,18 +3023,18 @@ interface ResolveModuleIdResults {
|
|
|
3024
3023
|
* A controller which provides for communication and coordination between
|
|
3025
3024
|
* threaded workers.
|
|
3026
3025
|
*/
|
|
3027
|
-
interface WorkerMainController {
|
|
3026
|
+
interface WorkerMainController<T extends Record<string, (...args: any[]) => Promise<any>> = Record<string, (...args: any[]) => Promise<any>>> {
|
|
3028
3027
|
/**
|
|
3029
3028
|
* Send a given set of arguments to a worker
|
|
3030
3029
|
*/
|
|
3031
|
-
send(...args:
|
|
3030
|
+
send<K extends keyof T>(methodName: K, ...args: Parameters<T[K]>): ReturnType<T[K]>;
|
|
3032
3031
|
/**
|
|
3033
3032
|
* Handle a particular method
|
|
3034
3033
|
*
|
|
3035
3034
|
* @param name of the method to be passed to a worker
|
|
3036
3035
|
* @returns a Promise wrapping the results
|
|
3037
3036
|
*/
|
|
3038
|
-
handler(name:
|
|
3037
|
+
handler<K extends keyof T>(name: K): T[K];
|
|
3039
3038
|
/**
|
|
3040
3039
|
* Destroy the worker represented by this instance, rejecting all outstanding
|
|
3041
3040
|
* tasks and killing the child process.
|
|
@@ -3102,6 +3101,7 @@ interface BuildNoChangeResults {
|
|
|
3102
3101
|
interface CompilerBuildResults {
|
|
3103
3102
|
buildId: number;
|
|
3104
3103
|
componentGraph?: BuildResultsComponentGraph;
|
|
3104
|
+
components: ComponentCompilerMeta[];
|
|
3105
3105
|
diagnostics: Diagnostic$1[];
|
|
3106
3106
|
dirsAdded: string[];
|
|
3107
3107
|
dirsDeleted: string[];
|
|
@@ -3116,6 +3116,7 @@ interface CompilerBuildResults {
|
|
|
3116
3116
|
ssrAppFilePath?: string;
|
|
3117
3117
|
isRebuild: boolean;
|
|
3118
3118
|
namespace: string;
|
|
3119
|
+
fsNamespace: string;
|
|
3119
3120
|
outputs: BuildOutput[];
|
|
3120
3121
|
rootDir: string;
|
|
3121
3122
|
srcDir: string;
|
|
@@ -3298,8 +3299,9 @@ interface CopyTask {
|
|
|
3298
3299
|
*/
|
|
3299
3300
|
dest?: string;
|
|
3300
3301
|
/**
|
|
3301
|
-
*
|
|
3302
|
-
*
|
|
3302
|
+
* Additional glob patterns to exclude from the copy operation, merged with
|
|
3303
|
+
* the built-in defaults: `__mocks__`, `__fixtures__`, `dist`, hidden dirs,
|
|
3304
|
+
* `.ds_store`, `.gitignore`, `desktop.ini`, `thumbs.db`.
|
|
3303
3305
|
*/
|
|
3304
3306
|
ignore?: string[];
|
|
3305
3307
|
/**
|
|
@@ -3378,39 +3380,12 @@ interface StencilDocsConfig {
|
|
|
3378
3380
|
};
|
|
3379
3381
|
};
|
|
3380
3382
|
}
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
browser?: boolean;
|
|
3384
|
-
moduleDirectories?: string[];
|
|
3385
|
-
modulePaths?: string[];
|
|
3386
|
-
dedupe?: string[] | ((importee: string) => boolean);
|
|
3387
|
-
extensions?: readonly string[];
|
|
3388
|
-
jail?: string;
|
|
3389
|
-
mainFields?: readonly string[];
|
|
3390
|
-
modulesOnly?: boolean;
|
|
3391
|
-
preferBuiltins?: boolean | ((module: string) => boolean);
|
|
3392
|
-
resolveOnly?: ReadonlyArray<string | RegExp> | null | ((module: string) => boolean);
|
|
3393
|
-
rootDir?: string;
|
|
3394
|
-
allowExportsFolderMapping?: boolean;
|
|
3395
|
-
}
|
|
3383
|
+
/** Options for rolldown's built-in module resolver, passed directly to rolldown's `resolve` input option. */
|
|
3384
|
+
type NodeResolveConfig = NonNullable<InputOptions['resolve']>;
|
|
3396
3385
|
interface RolldownConfig {
|
|
3397
|
-
inputOptions?: RolldownInputOptions;
|
|
3398
|
-
outputOptions?: RolldownOutputOptions;
|
|
3399
|
-
}
|
|
3400
|
-
interface RolldownInputOptions {
|
|
3401
|
-
context?: string;
|
|
3402
|
-
moduleContext?: ((id: string) => string) | {
|
|
3403
|
-
[id: string]: string;
|
|
3404
|
-
};
|
|
3405
3386
|
treeshake?: boolean;
|
|
3406
|
-
maxParallelFileOps?: number;
|
|
3407
3387
|
external?: (string | RegExp)[] | string | RegExp | ((source: string, importer: string | undefined, isResolved: boolean) => boolean | null | undefined);
|
|
3408
3388
|
}
|
|
3409
|
-
interface RolldownOutputOptions {
|
|
3410
|
-
globals?: {
|
|
3411
|
-
[name: string]: string;
|
|
3412
|
-
} | ((name: string) => string);
|
|
3413
|
-
}
|
|
3414
3389
|
/**
|
|
3415
3390
|
* This sets the log level hierarchy for our terminal logger, ranging from
|
|
3416
3391
|
* most to least verbose.
|
|
@@ -3516,6 +3491,28 @@ interface OutputTargetLoaderBundle extends OutputTargetBaseNext {
|
|
|
3516
3491
|
* @default 'loader' (relative to output directory)
|
|
3517
3492
|
*/
|
|
3518
3493
|
loaderPath?: string;
|
|
3494
|
+
/**
|
|
3495
|
+
* Hash the filenames of generated chunks based on their content.
|
|
3496
|
+
* Enables forever-caching of CDN-served bundles.
|
|
3497
|
+
*
|
|
3498
|
+
* @default true in production, false in dev mode
|
|
3499
|
+
*/
|
|
3500
|
+
hashFileNames?: boolean;
|
|
3501
|
+
/**
|
|
3502
|
+
* Number of characters to use for the content hash in filenames.
|
|
3503
|
+
*
|
|
3504
|
+
* @default 8
|
|
3505
|
+
*/
|
|
3506
|
+
hashedFileNameLength?: number;
|
|
3507
|
+
/**
|
|
3508
|
+
* When `true`, marks `@stencil/core` as an external dependency in the bundler (ESM/CJS)
|
|
3509
|
+
* distribution output. Consumers must provide `@stencil/core` themselves.
|
|
3510
|
+
*
|
|
3511
|
+
* Has no effect on the browser/CDN build - the runtime is always bundled there.
|
|
3512
|
+
*
|
|
3513
|
+
* @default false
|
|
3514
|
+
*/
|
|
3515
|
+
externalRuntime?: boolean;
|
|
3519
3516
|
}
|
|
3520
3517
|
/**
|
|
3521
3518
|
* Output target for generating Stencil component source for downstream re-bundling.
|
|
@@ -3529,14 +3526,14 @@ interface OutputTargetLoaderBundle extends OutputTargetBaseNext {
|
|
|
3529
3526
|
* @example
|
|
3530
3527
|
* ```typescript
|
|
3531
3528
|
* {
|
|
3532
|
-
* type: '
|
|
3533
|
-
* dir: 'dist/
|
|
3529
|
+
* type: 'collection',
|
|
3530
|
+
* dir: 'dist/collection',
|
|
3534
3531
|
* transformAliasedImportPaths: true
|
|
3535
3532
|
* }
|
|
3536
3533
|
* ```
|
|
3537
3534
|
*/
|
|
3538
|
-
interface
|
|
3539
|
-
type: '
|
|
3535
|
+
interface OutputTargetCollection extends OutputTargetBaseNext {
|
|
3536
|
+
type: 'collection';
|
|
3540
3537
|
empty?: boolean;
|
|
3541
3538
|
/**
|
|
3542
3539
|
* When `true` this flag will transform aliased import paths defined in
|
|
@@ -3590,6 +3587,12 @@ interface OutputTargetDistLazy extends OutputTargetBase {
|
|
|
3590
3587
|
loaderDir?: string;
|
|
3591
3588
|
typesDir?: string;
|
|
3592
3589
|
empty?: boolean;
|
|
3590
|
+
/** Inherited from parent output target (loader-bundle or www). Only meaningful for browser builds. */
|
|
3591
|
+
hashFileNames?: boolean;
|
|
3592
|
+
/** Inherited from parent output target (loader-bundle or www). */
|
|
3593
|
+
hashedFileNameLength?: number;
|
|
3594
|
+
/** Inherited from loader-bundle. When true, @stencil/core is external in this bundler output. */
|
|
3595
|
+
externalRuntime?: boolean;
|
|
3593
3596
|
}
|
|
3594
3597
|
/**
|
|
3595
3598
|
* Output target for global styles.
|
|
@@ -3700,6 +3703,13 @@ interface OutputTargetSsr extends OutputTargetBase {
|
|
|
3700
3703
|
*/
|
|
3701
3704
|
cjs?: boolean;
|
|
3702
3705
|
}
|
|
3706
|
+
interface OutputTargetSsrWasm extends OutputTargetBase {
|
|
3707
|
+
type: 'ssr-wasm';
|
|
3708
|
+
/** Output directory. @default 'dist/ssr-wasm' */
|
|
3709
|
+
dir?: string;
|
|
3710
|
+
empty?: boolean;
|
|
3711
|
+
minify?: boolean;
|
|
3712
|
+
}
|
|
3703
3713
|
interface OutputTargetCustom extends OutputTargetBase {
|
|
3704
3714
|
type: 'custom';
|
|
3705
3715
|
name: string;
|
|
@@ -3853,7 +3863,7 @@ interface OutputTargetStandalone extends OutputTargetBaseNext {
|
|
|
3853
3863
|
* 2. File names are not hashed.
|
|
3854
3864
|
* 3. File minification will follow the behavior defined at the root of the Stencil config.
|
|
3855
3865
|
*
|
|
3856
|
-
* @default
|
|
3866
|
+
* @default false
|
|
3857
3867
|
*/
|
|
3858
3868
|
externalRuntime?: boolean;
|
|
3859
3869
|
copy?: CopyTask[];
|
|
@@ -3924,7 +3934,7 @@ interface OutputTargetBase {
|
|
|
3924
3934
|
*/
|
|
3925
3935
|
skipInDev?: boolean;
|
|
3926
3936
|
}
|
|
3927
|
-
type OutputTargetBuild =
|
|
3937
|
+
type OutputTargetBuild = OutputTargetCollection | OutputTargetDistLazy;
|
|
3928
3938
|
interface OutputTargetCopy extends OutputTargetBase {
|
|
3929
3939
|
type: 'copy';
|
|
3930
3940
|
dir: string;
|
|
@@ -4003,15 +4013,35 @@ interface OutputTargetWww extends OutputTargetBase {
|
|
|
4003
4013
|
*/
|
|
4004
4014
|
prerenderConfig?: string;
|
|
4005
4015
|
/**
|
|
4006
|
-
* Service worker config for production builds.
|
|
4007
|
-
*
|
|
4008
|
-
*
|
|
4009
|
-
*
|
|
4016
|
+
* Service worker config for production builds. In development mode, a script
|
|
4017
|
+
* to deregister existing service workers is always injected. Defaults to
|
|
4018
|
+
* `null` (disabled). Set to `true` to enable with default settings, or provide
|
|
4019
|
+
* a config object for custom settings.
|
|
4010
4020
|
*/
|
|
4011
|
-
serviceWorker?: ServiceWorkerConfig |
|
|
4021
|
+
serviceWorker?: ServiceWorkerConfig | true | null;
|
|
4012
4022
|
appDir?: string;
|
|
4023
|
+
/**
|
|
4024
|
+
* Hash the filenames of generated chunks based on their content.
|
|
4025
|
+
* Enables forever-caching of CDN-served bundles.
|
|
4026
|
+
*
|
|
4027
|
+
* @default true in production, false in dev mode
|
|
4028
|
+
*/
|
|
4029
|
+
hashFileNames?: boolean;
|
|
4030
|
+
/**
|
|
4031
|
+
* Number of characters to use for the content hash in filenames.
|
|
4032
|
+
*
|
|
4033
|
+
* @default 8
|
|
4034
|
+
*/
|
|
4035
|
+
hashedFileNameLength?: number;
|
|
4013
4036
|
}
|
|
4014
|
-
type OutputTarget = OutputTargetCopy | OutputTargetCustom | OutputTargetLoaderBundle | OutputTargetStandalone | OutputTargetSsr |
|
|
4037
|
+
type OutputTarget = OutputTargetCopy | OutputTargetCustom | OutputTargetLoaderBundle | OutputTargetStandalone | OutputTargetSsr | OutputTargetSsrWasm | OutputTargetCollection | OutputTargetTypes | OutputTargetGlobalStyle | OutputTargetAssets | OutputTargetDistLazy | OutputTargetDocsJson | OutputTargetDocsCustom | OutputTargetDocsReadme | OutputTargetDocsVscode | OutputTargetDocsCustomElementsManifest | OutputTargetWww | OutputTargetStats;
|
|
4038
|
+
/**
|
|
4039
|
+
* A post-validation form of {@link OutputTargetWww} where `serviceWorker`
|
|
4040
|
+
* has been normalized - `true` is resolved to a {@link ServiceWorkerConfig}.
|
|
4041
|
+
*/
|
|
4042
|
+
type ValidatedOutputTargetWww = Omit<OutputTargetWww, 'serviceWorker'> & {
|
|
4043
|
+
serviceWorker?: ServiceWorkerConfig | null;
|
|
4044
|
+
};
|
|
4015
4045
|
/**
|
|
4016
4046
|
* Our custom configuration interface for generated caching Service Workers
|
|
4017
4047
|
* using the Workbox library (see https://developer.chrome.com/docs/workbox/).
|
|
@@ -4059,12 +4089,6 @@ interface LoadConfigInit {
|
|
|
4059
4089
|
configPath?: string;
|
|
4060
4090
|
logger?: Logger;
|
|
4061
4091
|
sys?: CompilerSystem;
|
|
4062
|
-
/**
|
|
4063
|
-
* When set to true, if the "tsconfig.json" file is not found
|
|
4064
|
-
* it'll automatically generate and save a default tsconfig
|
|
4065
|
-
* within the root directory.
|
|
4066
|
-
*/
|
|
4067
|
-
initTsConfig?: boolean;
|
|
4068
4092
|
}
|
|
4069
4093
|
/**
|
|
4070
4094
|
* Results from an attempt to load a config. The values on this interface
|
|
@@ -4106,17 +4130,6 @@ interface WorkerOptions {
|
|
|
4106
4130
|
maxConcurrentTasksPerWorker?: number;
|
|
4107
4131
|
logger?: Logger;
|
|
4108
4132
|
}
|
|
4109
|
-
interface RolldownInterface {
|
|
4110
|
-
rolldown: {
|
|
4111
|
-
(config: any): Promise<any>;
|
|
4112
|
-
};
|
|
4113
|
-
plugins: {
|
|
4114
|
-
nodeResolve(opts: any): any;
|
|
4115
|
-
replace(opts: any): any;
|
|
4116
|
-
commonjs(opts: any): any;
|
|
4117
|
-
json(): any;
|
|
4118
|
-
};
|
|
4119
|
-
}
|
|
4120
4133
|
interface ResolveModuleOptions {
|
|
4121
4134
|
manuallyResolve?: boolean;
|
|
4122
4135
|
packageJson?: boolean;
|
|
@@ -4198,6 +4211,18 @@ interface Compiler {
|
|
|
4198
4211
|
createWatcher(): Promise<CompilerWatcher>;
|
|
4199
4212
|
destroy(): Promise<void>;
|
|
4200
4213
|
sys: CompilerSystem;
|
|
4214
|
+
/**
|
|
4215
|
+
* @internal - Testing only. Access to the in-memory filesystem
|
|
4216
|
+
*/
|
|
4217
|
+
fs?: InMemoryFileSystem;
|
|
4218
|
+
/**
|
|
4219
|
+
* @internal - Testing only. Access to the validated configuration
|
|
4220
|
+
*/
|
|
4221
|
+
config?: ValidatedConfig;
|
|
4222
|
+
/**
|
|
4223
|
+
* @internal - Testing only. Access to the compiler context
|
|
4224
|
+
*/
|
|
4225
|
+
compilerCtx?: CompilerCtx;
|
|
4201
4226
|
}
|
|
4202
4227
|
interface CompilerWatcher extends BuildOnEvents {
|
|
4203
4228
|
start: () => Promise<WatcherCloseResults>;
|
|
@@ -4238,7 +4263,7 @@ interface TranspileOptions {
|
|
|
4238
4263
|
componentMetadata?: 'runtimestatic' | 'compilerstatic' | string | undefined;
|
|
4239
4264
|
/**
|
|
4240
4265
|
* The actual internal import path for any `@stencil/core` imports.
|
|
4241
|
-
* Default is `@stencil/core/runtime/client`.
|
|
4266
|
+
* Default is `@stencil/core/runtime/client/standalone`.
|
|
4242
4267
|
*/
|
|
4243
4268
|
coreImportPath?: string;
|
|
4244
4269
|
/**
|
|
@@ -4473,6 +4498,7 @@ interface BuildFeatures {
|
|
|
4473
4498
|
vdomStyle: boolean;
|
|
4474
4499
|
vdomText: boolean;
|
|
4475
4500
|
vdomXlink: boolean;
|
|
4501
|
+
vdomSignals: boolean;
|
|
4476
4502
|
slotRelocation: boolean;
|
|
4477
4503
|
patchAll: boolean;
|
|
4478
4504
|
patchChildren: boolean;
|
|
@@ -4519,20 +4545,27 @@ interface BuildConditionals extends Partial<BuildFeatures> {
|
|
|
4519
4545
|
lazyLoad?: boolean;
|
|
4520
4546
|
profile?: boolean;
|
|
4521
4547
|
constructableCSS?: boolean;
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4548
|
+
/** True when `compat.lightDomPatches === true` - enables `applyLightDomPatches` shortcut. */
|
|
4549
|
+
lightDomPatches?: boolean;
|
|
4550
|
+
/** Patch `childNodes`/`children` getters on light-dom slotted components. */
|
|
4551
|
+
slotChildNodes?: boolean;
|
|
4552
|
+
/** Patch `cloneNode()` on light-dom slotted components. */
|
|
4553
|
+
slotCloneNode?: boolean;
|
|
4554
|
+
/** Patch `appendChild`/`insertBefore`/`removeChild` on light-dom slotted components. */
|
|
4555
|
+
slotDomMutations?: boolean;
|
|
4556
|
+
/** Patch `textContent` on light-dom slotted components. */
|
|
4557
|
+
slotTextContent?: boolean;
|
|
4526
4558
|
hydratedAttribute?: boolean;
|
|
4527
4559
|
hydratedClass?: boolean;
|
|
4528
4560
|
hydratedSelectorName?: string;
|
|
4561
|
+
/** True when a global-style input contains `@import "stencil-hydrate"` - suppresses dynamic style injection in the loader. */
|
|
4562
|
+
staticHydrationStyles?: boolean;
|
|
4529
4563
|
initializeNextTick?: boolean;
|
|
4530
|
-
shadowDomShim?: boolean;
|
|
4531
4564
|
asyncQueue?: boolean;
|
|
4532
4565
|
additionalTagTransformers?: boolean | 'prod';
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4566
|
+
signalBacking?: boolean;
|
|
4567
|
+
/** True when JSX signal bypass is active - text nodes and attributes backed by Signal objects update the DOM directly. Auto-enabled when `signalBacking: true`. */
|
|
4568
|
+
vdomSignals?: boolean;
|
|
4536
4569
|
}
|
|
4537
4570
|
type ModuleFormat = 'amd' | 'cjs' | 'es' | 'iife' | 'system' | 'umd' | 'commonjs' | 'esm' | 'module' | 'systemjs';
|
|
4538
4571
|
interface RolldownResultModule {
|
|
@@ -4586,12 +4619,14 @@ interface BuildCtx {
|
|
|
4586
4619
|
ssrAppFilePath: string;
|
|
4587
4620
|
indexBuildCount: number;
|
|
4588
4621
|
indexDoc: Document;
|
|
4622
|
+
/** All non-entry HTML files found in srcDir, keyed by path relative to srcDir */
|
|
4623
|
+
htmlDocs: Map<string, Document>;
|
|
4589
4624
|
isRebuild: boolean;
|
|
4590
4625
|
/**
|
|
4591
4626
|
* A collection of Stencil's intermediate representation of components, tied to the current build
|
|
4592
4627
|
*/
|
|
4593
4628
|
moduleFiles: Module[];
|
|
4594
|
-
packageJson: PackageJsonData;
|
|
4629
|
+
packageJson: PackageJsonData | null;
|
|
4595
4630
|
pendingCopyTasks: Promise<CopyResults>[];
|
|
4596
4631
|
progress(task: BuildTask): void;
|
|
4597
4632
|
requiresFullBuild: boolean;
|
|
@@ -4635,8 +4670,6 @@ interface CompilerBuildStats {
|
|
|
4635
4670
|
options: {
|
|
4636
4671
|
minifyJs: boolean;
|
|
4637
4672
|
minifyCss: boolean;
|
|
4638
|
-
hashFileNames: boolean;
|
|
4639
|
-
hashedFileNameLength: number;
|
|
4640
4673
|
};
|
|
4641
4674
|
formats: {
|
|
4642
4675
|
esmBrowser: ReadonlyArray<CompilerBuildStatBundle>;
|
|
@@ -4672,12 +4705,6 @@ interface BuildComponent {
|
|
|
4672
4705
|
dependencies?: string[];
|
|
4673
4706
|
}
|
|
4674
4707
|
type SourceTarget = 'es2017' | 'latest';
|
|
4675
|
-
/**
|
|
4676
|
-
* A note regarding Rolldown types:
|
|
4677
|
-
* As of this writing, there is no great way to import external types for packages that are directly embedded in the
|
|
4678
|
-
* Stencil source. As a result, some types are duplicated here for Rolldown that will be used within the codebase.
|
|
4679
|
-
* Updates to rolldown may require these typings to be updated.
|
|
4680
|
-
*/
|
|
4681
4708
|
type RolldownResult = RolldownChunkResult | RolldownAssetResult;
|
|
4682
4709
|
interface RolldownAssetResult {
|
|
4683
4710
|
type: 'asset';
|
|
@@ -4698,16 +4725,6 @@ interface RolldownChunkResult {
|
|
|
4698
4725
|
moduleFormat: ModuleFormat;
|
|
4699
4726
|
map?: RolldownSourceMap;
|
|
4700
4727
|
}
|
|
4701
|
-
interface RolldownSourceMap {
|
|
4702
|
-
file: string;
|
|
4703
|
-
mappings: string;
|
|
4704
|
-
names: string[];
|
|
4705
|
-
sources: string[];
|
|
4706
|
-
sourcesContent: string[];
|
|
4707
|
-
version: number;
|
|
4708
|
-
toString(): string;
|
|
4709
|
-
toUrl(): string;
|
|
4710
|
-
}
|
|
4711
4728
|
/**
|
|
4712
4729
|
* Result of Stencil compressing, mangling, and otherwise 'minifying' JavaScript
|
|
4713
4730
|
*/
|
|
@@ -4751,6 +4768,7 @@ interface CollectionCompilerMeta {
|
|
|
4751
4768
|
bundles?: {
|
|
4752
4769
|
components: string[];
|
|
4753
4770
|
}[];
|
|
4771
|
+
buildFlags?: Partial<BuildConditionals>;
|
|
4754
4772
|
}
|
|
4755
4773
|
interface CollectionCompilerVersion {
|
|
4756
4774
|
name: string;
|
|
@@ -4769,6 +4787,8 @@ interface CollectionManifest {
|
|
|
4769
4787
|
global?: string;
|
|
4770
4788
|
compiler?: CollectionCompilerVersion;
|
|
4771
4789
|
bundles?: CollectionBundleManifest[];
|
|
4790
|
+
/** Build flags the lib was compiled with. Consuming Stencil projects OR-merge these in. */
|
|
4791
|
+
buildFlags?: Partial<BuildConditionals>;
|
|
4772
4792
|
}
|
|
4773
4793
|
type CollectionComponentEntryPath = string;
|
|
4774
4794
|
interface CollectionBundleManifest {
|
|
@@ -4927,6 +4947,7 @@ interface ComponentCompilerFeatures {
|
|
|
4927
4947
|
hasVdomStyle: boolean;
|
|
4928
4948
|
hasVdomText: boolean;
|
|
4929
4949
|
hasVdomXlink: boolean;
|
|
4950
|
+
hasSignalsImport: boolean;
|
|
4930
4951
|
hasWatchCallback: boolean;
|
|
4931
4952
|
htmlAttrNames: string[];
|
|
4932
4953
|
htmlTagNames: string[];
|
|
@@ -5024,6 +5045,7 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
|
|
|
5024
5045
|
states: ComponentCompilerState[];
|
|
5025
5046
|
styleDocs: CompilerStyleDoc[];
|
|
5026
5047
|
styles: StyleCompiler[];
|
|
5048
|
+
globalStyles: ComponentGlobalStyle[];
|
|
5027
5049
|
tagName: string;
|
|
5028
5050
|
virtualProperties: ComponentCompilerVirtualProperty[];
|
|
5029
5051
|
watchers: ComponentCompilerChangeHandler[];
|
|
@@ -5040,7 +5062,7 @@ type Encapsulation = 'shadow' | 'scoped' | 'none';
|
|
|
5040
5062
|
* These enable proper slot behavior when not using native Shadow DOM.
|
|
5041
5063
|
*/
|
|
5042
5064
|
interface ComponentPatches {
|
|
5043
|
-
/** Apply all slot patches (equivalent to
|
|
5065
|
+
/** Apply all slot patches (equivalent to lightDomPatches) */
|
|
5044
5066
|
all?: boolean;
|
|
5045
5067
|
/** Patch child node accessors (children, firstChild, lastChild, etc.) */
|
|
5046
5068
|
children?: boolean;
|
|
@@ -5100,6 +5122,11 @@ interface ComponentCompilerPropertyComplexType {
|
|
|
5100
5122
|
* annotation in the original source file.
|
|
5101
5123
|
*/
|
|
5102
5124
|
references: ComponentCompilerTypeReferences;
|
|
5125
|
+
/**
|
|
5126
|
+
* @internal TypeScript AST node used for semantic type analysis during compilation.
|
|
5127
|
+
* Not serialized, only used internally for improved type renaming logic.
|
|
5128
|
+
*/
|
|
5129
|
+
_astNode?: any;
|
|
5103
5130
|
}
|
|
5104
5131
|
/**
|
|
5105
5132
|
* A record of `ComponentCompilerTypeReference` entities.
|
|
@@ -5193,6 +5220,11 @@ interface ComponentCompilerMethodComplexType {
|
|
|
5193
5220
|
parameters: JsonDocMethodParameter[];
|
|
5194
5221
|
references: ComponentCompilerTypeReferences;
|
|
5195
5222
|
return: string;
|
|
5223
|
+
/**
|
|
5224
|
+
* @internal TypeScript AST method node used for semantic type analysis during compilation.
|
|
5225
|
+
* Not serialized, only used internally for improved type renaming logic.
|
|
5226
|
+
*/
|
|
5227
|
+
_astNode?: any;
|
|
5196
5228
|
}
|
|
5197
5229
|
interface ComponentCompilerChangeHandler {
|
|
5198
5230
|
propName: string;
|
|
@@ -5371,7 +5403,7 @@ interface HostElement extends HTMLElement {
|
|
|
5371
5403
|
disconnectedCallback?: () => void;
|
|
5372
5404
|
host?: Element;
|
|
5373
5405
|
forceUpdate?: () => void;
|
|
5374
|
-
|
|
5406
|
+
__s_ghr?: () => HostRef;
|
|
5375
5407
|
/**
|
|
5376
5408
|
* Unique stencil id for this element
|
|
5377
5409
|
*/
|
|
@@ -5565,6 +5597,7 @@ interface Module {
|
|
|
5565
5597
|
hasVdomStyle: boolean;
|
|
5566
5598
|
hasVdomText: boolean;
|
|
5567
5599
|
hasVdomXlink: boolean;
|
|
5600
|
+
hasSignalsImport: boolean;
|
|
5568
5601
|
}
|
|
5569
5602
|
interface Plugin {
|
|
5570
5603
|
name?: string;
|
|
@@ -5720,61 +5753,61 @@ interface RenderNode extends HostElement {
|
|
|
5720
5753
|
['s-en']?: '' | /*shadow*/'c';
|
|
5721
5754
|
/**
|
|
5722
5755
|
* On a `scoped: true` component
|
|
5723
|
-
* with `
|
|
5756
|
+
* with `lightDomPatches` flag enabled,
|
|
5724
5757
|
* returns the internal `childNodes` of the component
|
|
5725
5758
|
*/
|
|
5726
5759
|
readonly __childNodes?: NodeListOf<ChildNode>;
|
|
5727
5760
|
/**
|
|
5728
5761
|
* On a `scoped: true` component
|
|
5729
|
-
* with `
|
|
5762
|
+
* with `lightDomPatches` flag enabled,
|
|
5730
5763
|
* returns the internal `children` of the component
|
|
5731
5764
|
*/
|
|
5732
5765
|
readonly __children?: HTMLCollectionOf<Element>;
|
|
5733
5766
|
/**
|
|
5734
5767
|
* On a `scoped: true` component
|
|
5735
|
-
* with `
|
|
5768
|
+
* with `lightDomPatches` flag enabled,
|
|
5736
5769
|
* returns the internal `firstChild` of the component
|
|
5737
5770
|
*/
|
|
5738
5771
|
readonly __firstChild?: ChildNode;
|
|
5739
5772
|
/**
|
|
5740
5773
|
* On a `scoped: true` component
|
|
5741
|
-
* with `
|
|
5774
|
+
* with `lightDomPatches` flag enabled,
|
|
5742
5775
|
* returns the internal `lastChild` of the component
|
|
5743
5776
|
*/
|
|
5744
5777
|
readonly __lastChild?: ChildNode;
|
|
5745
5778
|
/**
|
|
5746
5779
|
* On a `scoped: true` component
|
|
5747
|
-
* with `
|
|
5780
|
+
* with `lightDomPatches` flag enabled,
|
|
5748
5781
|
* returns the internal `textContent` of the component
|
|
5749
5782
|
*/
|
|
5750
5783
|
__textContent?: string;
|
|
5751
5784
|
/**
|
|
5752
5785
|
* On a `scoped: true` component
|
|
5753
|
-
* with `
|
|
5786
|
+
* with `lightDomPatches` flag enabled,
|
|
5754
5787
|
* gives access to the original `append` method
|
|
5755
5788
|
*/
|
|
5756
5789
|
__append?: (...nodes: (Node | string)[]) => void;
|
|
5757
5790
|
/**
|
|
5758
5791
|
* On a `scoped: true` component
|
|
5759
|
-
* with `
|
|
5792
|
+
* with `lightDomPatches` flag enabled,
|
|
5760
5793
|
* gives access to the original `prepend` method
|
|
5761
5794
|
*/
|
|
5762
5795
|
__prepend?: (...nodes: (Node | string)[]) => void;
|
|
5763
5796
|
/**
|
|
5764
5797
|
* On a `scoped: true` component
|
|
5765
|
-
* with `
|
|
5798
|
+
* with `lightDomPatches` flag enabled,
|
|
5766
5799
|
* gives access to the original `appendChild` method
|
|
5767
5800
|
*/
|
|
5768
5801
|
__appendChild?: <T extends Node>(newChild: T) => T;
|
|
5769
5802
|
/**
|
|
5770
5803
|
* On a `scoped: true` component
|
|
5771
|
-
* with `
|
|
5804
|
+
* with `lightDomPatches` flag enabled,
|
|
5772
5805
|
* gives access to the original `insertBefore` method
|
|
5773
5806
|
*/
|
|
5774
5807
|
__insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
|
|
5775
5808
|
/**
|
|
5776
5809
|
* On a `scoped: true` component
|
|
5777
|
-
* with `
|
|
5810
|
+
* with `lightDomPatches` flag enabled,
|
|
5778
5811
|
* gives access to the original `removeChild` method
|
|
5779
5812
|
*/
|
|
5780
5813
|
__removeChild?: <T extends Node>(child: T) => T;
|
|
@@ -5812,31 +5845,31 @@ interface PatchedSlotNode extends Node {
|
|
|
5812
5845
|
['s-sr']?: boolean;
|
|
5813
5846
|
/**
|
|
5814
5847
|
* On a `scoped: true` component
|
|
5815
|
-
* with `
|
|
5848
|
+
* with `lightDomPatches` flag enabled,
|
|
5816
5849
|
* returns the actual `parentNode` of the component
|
|
5817
5850
|
*/
|
|
5818
5851
|
__parentNode?: RenderNode;
|
|
5819
5852
|
/**
|
|
5820
5853
|
* On a `scoped: true` component
|
|
5821
|
-
* with `
|
|
5854
|
+
* with `lightDomPatches` flag enabled,
|
|
5822
5855
|
* returns the actual `nextSibling` of the component
|
|
5823
5856
|
*/
|
|
5824
5857
|
__nextSibling?: RenderNode;
|
|
5825
5858
|
/**
|
|
5826
5859
|
* On a `scoped: true` component
|
|
5827
|
-
* with `
|
|
5860
|
+
* with `lightDomPatches` flag enabled,
|
|
5828
5861
|
* returns the actual `previousSibling` of the component
|
|
5829
5862
|
*/
|
|
5830
5863
|
__previousSibling?: RenderNode;
|
|
5831
5864
|
/**
|
|
5832
5865
|
* On a `scoped: true` component
|
|
5833
|
-
* with `
|
|
5866
|
+
* with `lightDomPatches` flag enabled,
|
|
5834
5867
|
* returns the actual `nextElementSibling` of the component
|
|
5835
5868
|
*/
|
|
5836
5869
|
__nextElementSibling?: RenderNode;
|
|
5837
5870
|
/**
|
|
5838
5871
|
* On a `scoped: true` component
|
|
5839
|
-
* with `
|
|
5872
|
+
* with `lightDomPatches` flag enabled,
|
|
5840
5873
|
* returns the actual `nextElementSibling` of the component
|
|
5841
5874
|
*/
|
|
5842
5875
|
__previousElementSibling?: RenderNode;
|
|
@@ -5937,7 +5970,7 @@ type ComponentRuntimeReflectingAttr = [string, string | undefined];
|
|
|
5937
5970
|
* associated {@link HostRef} instance.
|
|
5938
5971
|
*/
|
|
5939
5972
|
type RuntimeRef = HostElement | {
|
|
5940
|
-
|
|
5973
|
+
__s_ghr?: () => HostRef;
|
|
5941
5974
|
};
|
|
5942
5975
|
/**
|
|
5943
5976
|
* Interface used to track an Element, it's virtual Node (`VNode`), and other data
|
|
@@ -5948,6 +5981,9 @@ interface HostRef {
|
|
|
5948
5981
|
$cmpMeta$: ComponentRuntimeMeta;
|
|
5949
5982
|
$hostElement$: HostElement;
|
|
5950
5983
|
$instanceValues$?: Map<string, any>;
|
|
5984
|
+
$signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
|
|
5985
|
+
/** Dispose function that tears down all signal effects for this component. */
|
|
5986
|
+
$signalCleanup$?: () => void;
|
|
5951
5987
|
$serializerValues$?: Map<string, string>;
|
|
5952
5988
|
$lazyInstance$?: ComponentInterface;
|
|
5953
5989
|
/**
|
|
@@ -6046,6 +6082,12 @@ interface ExternalStyleCompiler {
|
|
|
6046
6082
|
relativePath: string;
|
|
6047
6083
|
originalComponentPath: string;
|
|
6048
6084
|
}
|
|
6085
|
+
interface ComponentGlobalStyle {
|
|
6086
|
+
/** Absolute path to the CSS file, or null for inline styles */
|
|
6087
|
+
absolutePath: string | null;
|
|
6088
|
+
/** Raw inline CSS string, or null for file-based styles */
|
|
6089
|
+
styleStr: string | null;
|
|
6090
|
+
}
|
|
6049
6091
|
interface CompilerModeStyles {
|
|
6050
6092
|
[modeName: string]: string[];
|
|
6051
6093
|
}
|
|
@@ -6133,9 +6175,7 @@ interface PackageJsonData {
|
|
|
6133
6175
|
module?: string;
|
|
6134
6176
|
'jsnext:main'?: string;
|
|
6135
6177
|
unpkg?: string;
|
|
6136
|
-
/** @deprecated Use `stencilRebundle` instead. Kept for reading v4 dependencies. */
|
|
6137
6178
|
collection?: string;
|
|
6138
|
-
stencilRebundle?: string;
|
|
6139
6179
|
types?: string;
|
|
6140
6180
|
files?: string[];
|
|
6141
6181
|
['dist-tags']?: {
|
|
@@ -6271,10 +6311,6 @@ interface NewSpecPageOptions {
|
|
|
6271
6311
|
* Sets the mocked `document.referrer`.
|
|
6272
6312
|
*/
|
|
6273
6313
|
referrer?: string;
|
|
6274
|
-
/**
|
|
6275
|
-
* Manually set if the mocked document supports Shadow DOM or not. Default is `true`.
|
|
6276
|
-
*/
|
|
6277
|
-
supportsShadowDom?: boolean;
|
|
6278
6314
|
/**
|
|
6279
6315
|
* When a component is pre-rendered it includes HTML annotations, such as `s-id` attributes and `<!-t.0->` comments. This information is used by client-side hydrating. Default is `false`.
|
|
6280
6316
|
*/
|
|
@@ -6291,11 +6327,6 @@ interface NewSpecPageOptions {
|
|
|
6291
6327
|
* By default, any changes to component properties and attributes must `page.waitForChanges()` in order to test the updates. As an option, `autoApplyChanges` continuously flushes the queue on the background. Default is `false`.
|
|
6292
6328
|
*/
|
|
6293
6329
|
autoApplyChanges?: boolean;
|
|
6294
|
-
/**
|
|
6295
|
-
* By default, styles are not attached to the DOM and they are not reflected in the serialized HTML.
|
|
6296
|
-
* Setting this option to `true` will include the component's styles in the serializable output.
|
|
6297
|
-
*/
|
|
6298
|
-
attachStyles?: boolean;
|
|
6299
6330
|
/**
|
|
6300
6331
|
* Set {@link BuildConditionals} for testing based off the metadata of the component under test.
|
|
6301
6332
|
* When `true` all `BuildConditionals` will be assigned to the global testing `BUILD` object, regardless of their
|
|
@@ -6307,6 +6338,20 @@ interface NewSpecPageOptions {
|
|
|
6307
6338
|
* the spec page.
|
|
6308
6339
|
*/
|
|
6309
6340
|
platform?: Partial<PlatformRuntime>;
|
|
6341
|
+
/**
|
|
6342
|
+
* Controls how shadow DOM components are serialized during `hydrateServerSide`.
|
|
6343
|
+
* When set to `'scoped'`, shadow DOM components are rendered as scoped light DOM
|
|
6344
|
+
* (matching the behavior of `serializeShadowRoot: 'scoped'` in production SSR).
|
|
6345
|
+
* When set to `false`, shadow DOM components render with a real shadow root.
|
|
6346
|
+
* Default is `false`.
|
|
6347
|
+
*/
|
|
6348
|
+
serializeShadowRoot?: 'scoped' | false;
|
|
6349
|
+
/**
|
|
6350
|
+
* Override individual {@link BuildConditionals} for this test. Applied after all other
|
|
6351
|
+
* BUILD setup so these values take final precedence. Useful for testing code paths that
|
|
6352
|
+
* are gated behind a build flag (e.g. `{ signalBacking: true }`).
|
|
6353
|
+
*/
|
|
6354
|
+
buildFlags?: Partial<BuildConditionals>;
|
|
6310
6355
|
}
|
|
6311
6356
|
/**
|
|
6312
6357
|
* A record of `TypesMemberNameData` entities.
|
|
@@ -6473,4 +6518,4 @@ interface ValidateTypesResults {
|
|
|
6473
6518
|
filePaths: string[];
|
|
6474
6519
|
}
|
|
6475
6520
|
//#endregion
|
|
6476
|
-
export { ComponentCompilerVirtualProperty as $, getSourceMappingUrlLinker as $a, SystemDetails as $i, CompilerDependency as $n, loadRolldownDiagnostics as $o, LoggerLineUpdater as $r, WATCH_FLAGS as $s, RenderNode as $t, CompilerStyleDoc as A, JsonDocsTypeLibrary as Aa, PrerenderConfig as Ai, TypesModule as An, isOutputTargetStandalone as Ao, ConfigExtras as Ar, DEFAULT_STYLE_MODE as As, LazyBundleRuntimeData as At, ComponentCompilerMeta as B, getTextDocs as Ba, RolldownConfig as Bi, BuildLog as Bn, buildJsonFileError as Bo, FsWatchResults as Br, HOST_FLAGS as Bs, PackageJsonData as Bt, CompilerBuildStatBundle as C, JsonDocsMethod as Ca, OutputTargetStats as Ci, StyleMap as Cn, isOutputTargetDocsCustomElementsManifest as Co, CompilerSystemRemoveFileResults as Cr, formatLazyBundleRuntimeMeta as Cs, EventInitDict as Ct, CompilerJsDoc as D, JsonDocsSlot as Da, PageReloadStrategy as Di, TypeInfo as Dn, isOutputTargetGlobalStyle as Do, CompilerWatcher as Dr, COLLECTION_MANIFEST_FILE_NAME as Ds, ImportData as Dt, CompilerCtx as E, JsonDocsProp as Ea, OutputTargetWww as Ei, TranspileModuleResults as En, isOutputTargetDocsVscode as Eo, CompilerSystemWriteFileResults as Er, CMP_FLAGS as Es, HostRef as Et, ComponentCompilerData as F, validateComponentTag as Fa, ResolveModuleIdOptions as Fi, WorkerContextMethod as Fn, isValidConfigOutputTarget as Fo, CustomElementsExportBehaviorOptions as Fr, DOCS_README as Fs, MsgFromWorker as Ft, ComponentCompilerPropertyType as G, isTsFile as Ga, ServiceWorkerConfig as Gi, BuildResultsComponentGraph as Gn, shouldIgnoreError as Go, HydrateFactoryOptions as Gr, NODE_TYPES as Gs, PluginCtx as Gt, ComponentCompilerMethodComplexType as H, isDtsFile as Ha, RolldownInterface as Hi, BuildOnEventRemove as Hn, catchError as Ho, HmrStyleUpdate as Hr, LISTENER_FLAGS as Hs, PatchedSlotNode as Ht, ComponentCompilerEvent as I, ParsePackageJsonResult as Ia, ResolveModuleIdResults as Ii, WorkerMsgHandler as In, relativeImport as Io, DevServer as Ir, DOCS_VSCODE as Is, MsgToWorker as It, ComponentCompilerStaticEvent as J, readOnlyArrayHasStringMember as Ja, SsrDocumentOptions as Ji, CompileScriptMinifyOptions as Jn, splitLineBreaks as Jo, LazyRequire as Jr, STATS as Js, PrerenderManager as Jt, ComponentCompilerReferencedType as K, isTsxFile as Ka, SitemapXmpOpts as Ki, CacheStorage as Kn, escapeHtml as Ko, HydratedFlag as Kr, SSR as Ks, PluginTransformResults as Kt, ComponentCompilerEventComplexType as L, addDocBlock as La, ResolveModuleOptions as Li, AutoprefixerOptions as Ln, shouldExcludeComponent as Lo, DevServerConfig as Lr, EVENT_FLAGS as Ls, NewSpecPageOptions as Lt, CompilerWorkerTask as M, JsonDocsValue as Ma, PrerenderOptions as Mi, VNodeProdData as Mn, isOutputTargetStencilRebundle as Mo, CopyTask as Mr, DOCS_CUSTOM as Ms, Module as Mt, ComponentCompilerChangeHandler as N, StyleDoc as Na, PrerenderResults as Ni, ValidateTypesResults as Nn, isOutputTargetTypes as No, Credentials as Nr, DOCS_CUSTOM_ELEMENTS_MANIFEST as Ns, ModuleFormat as Nt, CompilerJsDocTagInfo as O, JsonDocsStyle as Oa, ParsedPath as Oi, TypesImportData as On, isOutputTargetLoaderBundle as Oo, Config as Or, COPY as Os, JSDocTagInfo as Ot, ComponentCompilerCustomState as P, FsWriteResults as Pa, PrerenderStartOptions as Pi, Workbox as Pn, isOutputTargetWww as Po, CustomElementsExportBehavior as Pr, DOCS_JSON as Ps, ModuleMap as Pt, ComponentCompilerTypeReferences as Q, getSourceMappingUrlForEndOfFile as Qa, StencilDocsConfig as Qi, CompilerBuildStart as Qn, createOnWarnFn as Qo, Logger as Qr, VALID_CONFIG_OUTPUT_TARGETS as Qs, PropsType as Qt, ComponentCompilerFeatures as R, createJsVarName as Ra, RobotsTxtOpts as Ri, BuildEmitEvents as Rn, TASK_CANCELED_MSG as Ro, DevServerEditor as Rr, GENERATED_DTS as Rs, NodeMap as Rt, CompilerAssetDir as S, JsonDocsListener as Sa, OutputTargetStandalone as Si, StyleCompiler as Sn, isOutputTargetDocsCustom as So, CompilerSystemRemoveDirectoryResults as Sr, formatComponentRuntimeMeta as Ss, EntryModule as St, CompilerBuildStats as T, JsonDocsPart as Ta, OutputTargetTypes as Ti, TransformCssToEsmOutput as Tn, isOutputTargetDocsReadme as To, CompilerSystemRenamedPath as Tr, ASSETS as Ts, HostElement as Tt, ComponentCompilerProperty as U, isJsFile as Ua, RolldownOutputOptions as Ui, BuildOnEvents as Un, hasError as Uo, HotModuleReplacement as Ur, LOADER_BUNDLE as Us, PlatformRuntime as Ut, ComponentCompilerMethod as V, hasDependency as Va, RolldownInputOptions as Vi, BuildNoChangeResults as Vn, buildWarn as Vo, HistoryApiFallback as Vr, HTML_NS as Vs, ParsedImport as Vt, ComponentCompilerPropertyComplexType as W, isJsxFile as Wa, SerializeDocumentOptions as Wi, BuildOutput as Wn, hasWarning as Wo, HydrateDocumentOptions as Wr, MEMBER_FLAGS as Ws, Plugin as Wt, ComponentCompilerStaticProperty as X, isRemoteUrl as Xa, StencilConfig as Xi, Compiler as Xn, loadTypeScriptDiagnostic as Xo, LoadConfigResults as Xr, SVG_NS as Xs, PrerenderUrlResults as Xt, ComponentCompilerStaticMethod as Y, readPackageJson as Ya, SsrFactoryOptions as Yi, CompileTarget as Yn, augmentDiagnosticWithNode as Yo, LoadConfigInit as Yr, STENCIL_REBUNDLE as Ys, PrerenderUrlRequest as Yt, ComponentCompilerTypeReference as Z, getInlineSourceMappingUrlLinker as Za, StencilDevServerConfig as Zi, CompilerBuildResults as Zn, loadTypeScriptDiagnostics as Zo, LogLevel as Zr, TYPES as Zs, PrintLine as Zt, CollectionCompilerVersion as _, JsonDocs as _a, OutputTargetDocsReadme as _i, SsrResults as _n, isOutputTargetAssets as _o, CompilerSystem as _r, sortBy as _s, CssImportData as _t, BuildCtx as a, ValidatedConfig as aa, OptimizeJsOutput as ai, RolldownSourceMap as an, normalize as ao, CompilerEventDirDelete as ar, fromEntries as as, ComponentConstructorProperties as at, CollectionDependencyManifest as b, JsonDocsDependencyGraph as ba, OutputTargetLoaderBundle as bi, SsrStyleElement as bn, isOutputTargetDistLazy as bo, CompilerSystemRealpathResults as br, toTitleCase as bs, DocData as bt, BuildStyleUpdate as c, WorkerOptions as ca, OutputTargetBase as ci, SerializeImportData as cn, normalizePath as co, CompilerEventFileUpdate as cr, isDef as cs, ComponentNativeConstructor as ct, BundleModuleOutput as d, RafCallback as da, OutputTargetCopy as di, SourceTarget as dn, FilterComponentsResult as do, CompilerFileWatcher as dr, isNumber as ds, ComponentRuntimeMember as dt, TransformOptions as ea, WWW as ec, LoggerTimeSpan as ei, RolldownAssetResult as en, rolldownToStencilSourceMap as eo, CompilerEventBuildFinish as er, isRootPath as es, ComponentConstructor as et, Cache as f, ResolutionHandler as fa, OutputTargetCustom as fi, SpecPage as fn, filterActiveTargets as fo, CompilerFileWatcherCallback as fr, isObject as fs, ComponentRuntimeMembers as ft, CollectionCompilerMeta as g, JsonDocMethodParameter as ga, OutputTargetDocsJson as gi, SsrImgElement as gn, getComponentsFromModules as go, CompilerRequestResponse as gr, pluck as gs, ComponentTestingConstructor as gt, CollectionCompiler as h, VNode as ha, OutputTargetDocsCustomElementsManifest as hi, SsrElement as hn, getComponentsDtsTypesFilePath as ho, CompilerRequest as hr, noop as hs, ComponentRuntimeReflectingAttr as ht, BuildConditionals as i, UnvalidatedConfig as ia, OptimizeJsInput as ii, RolldownResults as in, join as io, CompilerEventDirAdd as ir, flatOne as is, ComponentConstructorListener as it, CompilerWorkerContext as j, JsonDocsUsage as ja, PrerenderHydrateOptions as ji, UpdatedLazyBuildCtx as jn, isOutputTargetStats as jo, CopyResults as jr, DIST_LAZY as js, LazyBundlesRuntimeData as jt, CompilerModeStyles as k, JsonDocsTag as ka, PlatformPath as ki, TypesMemberNameData as kn, isOutputTargetSsr as ko, ConfigBundle as kr, CUSTOM as ks, JsDoc as kt, BuildTask as l, ErrorHandler as la, OutputTargetBaseNext as li, SerializedEvent as ln, relative as lo, CompilerEventFsChange as lr, isFunction as ls, ComponentPatches as lt, CollectionBundleManifest as m, UserBuildConditionals as ma, OutputTargetDocsCustom as mi, SsrComponent as mn, getComponentsDtsSrcFilePath as mo, CompilerFsStats as mr, mergeIntoWith as ms, ComponentRuntimeMetaCompact as mt, AssetsMeta as n, TranspileOptions as na, byteSize as nc, OptimizeCssInput as ni, RolldownResult as nn, escapeRegExpSpecialCharacters as no, CompilerEventBuildNoChange as nr, dashToPascalCase as ns, ComponentConstructorEncapsulation as nt, BuildFeatures as o, WatcherCloseResults as oa, OutputTarget as oi, RootAppliedStyleMap as on, normalizeFsPath as oo, CompilerEventFileAdd as or, isBoolean as os, ComponentConstructorProperty as ot, ChildType as p, TagTransformer as pa, OutputTargetDistLazy as pi, SsrAnchorElement as pn, filterExcludedComponents as po, CompilerFileWatcherEvent as pr, isString as ps, ComponentRuntimeMeta as pt, ComponentCompilerState as q, parsePackageJson as qa, SitemapXmpResults as qi, CliInitOptions as qn, normalizeDiagnostics as qo, LOG_LEVELS as qr, STANDALONE as qs, PluginTransformationDescriptor as qt, BuildComponent as r, TranspileResults as ra, OptimizeCssOutput as ri, RolldownResultModule as rn, queryNonceMetaTagContent as ro, CompilerEventBuildStart as rr, escapeWithPattern as rs, ComponentConstructorEvent as rt, BuildSourceGraph as s, WorkerMainController as sa, OutputTargetAssets as si, RuntimeRef as sn, normalizeFsPathQuery as so, CompilerEventFileDelete as sr, isComplexType as ss, ComponentConstructorPropertyType as st, AnyHTMLElement as t, TranspileOnlyResults as ta, XLINK_NS as tc, NodeResolveConfig as ti, RolldownChunkResult as tn, result_d_exports as to, CompilerEventBuildLog as tr, isGlob as ts, ComponentConstructorChangeHandlers as tt, BundleModule as u, FunctionalComponent as ua, OutputTargetBuild as ui, SourceMap$1 as un, resolve as uo, CompilerEventName as ur, isIterable as us, ComponentRuntimeHostListener as ut, CollectionComponentEntryPath as v, JsonDocsComponent as va, OutputTargetDocsVscode as vi, SsrScriptElement as vn, isOutputTargetCopy as vo, CompilerSystemCreateDirectoryOptions as vr, toCamelCase as vs, CssToEsmImportData as vt, CompilerBuildStatCollection as w, JsonDocsMethodReturn as wa, OutputTargetStencilRebundle as wi, TransformCssToEsmInput as wn, isOutputTargetDocsJson as wo, CompilerSystemRenameResults as wr, stringifyRuntimeData as ws, ExternalStyleCompiler as wt, CollectionManifest as x, JsonDocsEvent as xa, OutputTargetSsr as xi, StencilDocument as xn, isOutputTargetDocs as xo, CompilerSystemRemoveDirectoryOptions as xr, unique as xs, Encapsulation as xt, CollectionDependencyData as y, JsonDocsCustomState as ya, OutputTargetGlobalStyle as yi, SsrStaticData as yn, isOutputTargetCustom as yo, CompilerSystemCreateDirectoryResults as yr, toDashCase as ys, CssTransformCacheEntry as yt, ComponentCompilerListener as z, generatePreamble as za, RobotsTxtResults as zi, BuildEvents as zn, buildError as zo, Diagnostic$1 as zr, GLOBAL_STYLE as zs, OptimizeJsResult as zt };
|
|
6521
|
+
export { ComponentCompilerVirtualProperty as $, getInlineSourceMappingUrlLinker as $a, SystemDetails as $i, CompilerBuildStart as $n, loadTypeScriptDiagnostic as $o, LogLevel as $r, SSR_WASM as $s, PropsType as $t, CompilerStyleDoc as A, JsonDocsTag as Aa, PageReloadStrategy as Ai, TypesMemberNameData as An, isOutputTargetGlobalStyle as Ao, ConfigBundle as Ar, CMP_FLAGS as As, JsDoc as At, ComponentCompilerMeta as B, createJsVarName as Ba, ResolveModuleOptions as Bi, BuildEvents as Bn, shouldExcludeComponent as Bo, Diagnostic$1 as Br, DOCS_JSON as Bs, OptimizeJsResult as Bt, CompilerBuildStatBundle as C, JsonDocsListener as Ca, OutputTargetLoaderBundle as Ci, StyleCompiler as Cn, isOutputTargetDistLazy as Co, CompilerSystemRemoveDirectoryResults as Cr, toDashCase as Cs, EntryModule as Ct, CompilerJsDoc as D, JsonDocsProp as Da, OutputTargetStats as Di, TranspileModuleResults as Dn, isOutputTargetDocsJson as Do, CompilerSystemWriteFileResults as Dr, formatLazyBundleRuntimeMeta as Ds, HostRef as Dt, CompilerCtx as E, JsonDocsPart as Ea, OutputTargetStandalone as Ei, TransformCssToEsmOutput as En, isOutputTargetDocsCustomElementsManifest as Eo, CompilerSystemRenamedPath as Er, formatComponentRuntimeMeta as Es, HostElement as Et, ComponentCompilerData as F, FsWriteResults as Fa, PrerenderOptions as Fi, Workbox as Fn, isOutputTargetStats as Fo, CustomElementsExportBehavior as Fr, CUSTOM as Fs, ModuleMap as Ft, ComponentCompilerPropertyType as G, isJsFile as Ga, ServiceWorkerConfig as Gi, BuildOutput as Gn, catchError as Go, HydrateDocumentOptions as Gr, GLOBAL_STYLE as Gs, Plugin as Gt, ComponentCompilerMethodComplexType as H, getTextDocs as Ha, RobotsTxtResults as Hi, BuildNoChangeResults as Hn, buildError as Ho, HistoryApiFallback as Hr, DOCS_VSCODE as Hs, ParsedImport as Ht, ComponentCompilerEvent as I, InMemoryFileSystem as Ia, PrerenderResults as Ii, WorkerContextMethod as In, isOutputTargetTypes as Io, CustomElementsExportBehaviorOptions as Ir, DEFAULT_STYLE_MODE as Is, MsgFromWorker as It, ComponentCompilerStaticEvent as J, isTsxFile as Ja, SsrDocumentOptions as Ji, CliInitOptions as Jn, shouldIgnoreError as Jo, LOG_LEVELS as Jr, LISTENER_FLAGS as Js, PluginTransformationDescriptor as Jt, ComponentCompilerReferencedType as K, isJsxFile as Ka, SitemapXmpOpts as Ki, BuildResultsComponentGraph as Kn, hasError as Ko, HydrateFactoryOptions as Kr, HOST_FLAGS as Ks, PluginCtx as Kt, ComponentCompilerEventComplexType as L, validateComponentTag as La, PrerenderStartOptions as Li, WorkerMsgHandler as Ln, isOutputTargetWww as Lo, DevServer as Lr, DIST_LAZY as Ls, MsgToWorker as Lt, CompilerWorkerTask as M, JsonDocsUsage as Ma, PlatformPath as Mi, UpdatedLazyBuildCtx as Mn, isOutputTargetSsr as Mo, CopyResults as Mr, COLLECTION_APP_DATA_FILE_NAME as Ms, LazyBundlesRuntimeData as Mt, ComponentCompilerChangeHandler as N, JsonDocsValue as Na, PrerenderConfig as Ni, VNodeProdData as Nn, isOutputTargetSsrWasm as No, CopyTask as Nr, COLLECTION_MANIFEST_FILE_NAME as Ns, Module as Nt, CompilerJsDocTagInfo as O, JsonDocsSlot as Oa, OutputTargetTypes as Oi, TypeInfo as On, isOutputTargetDocsReadme as Oo, CompilerWatcher as Or, stringifyRuntimeData as Os, ImportData as Ot, ComponentCompilerCustomState as P, StyleDoc as Pa, PrerenderHydrateOptions as Pi, ValidateTypesResults as Pn, isOutputTargetStandalone as Po, Credentials as Pr, COPY as Ps, ModuleFormat as Pt, ComponentCompilerTypeReferences as Q, isRemoteUrl as Qa, StencilDocsConfig as Qi, CompilerBuildResults as Qn, augmentDiagnosticWithNode as Qo, LoadConfigResults as Qr, SSR as Qs, PrintLine as Qt, ComponentCompilerFeatures as R, ParsePackageJsonResult as Ra, ResolveModuleIdOptions as Ri, AutoprefixerOptions as Rn, isValidConfigOutputTarget as Ro, DevServerConfig as Rr, DOCS_CUSTOM as Rs, NewSpecPageOptions as Rt, CompilerAssetDir as S, JsonDocsEvent as Sa, OutputTargetGlobalStyle as Si, StencilDocument as Sn, isOutputTargetCustom as So, CompilerSystemRemoveDirectoryOptions as Sr, toCamelCase as Ss, Encapsulation as St, CompilerBuildStats as T, JsonDocsMethodReturn as Ta, OutputTargetSsrWasm as Ti, TransformCssToEsmInput as Tn, isOutputTargetDocsCustom as To, CompilerSystemRenameResults as Tr, unique as Ts, ExternalStyleCompiler as Tt, ComponentCompilerProperty as U, hasDependency as Ua, RolldownConfig as Ui, BuildOnEventRemove as Un, buildJsonFileError as Uo, HmrStyleUpdate as Ur, EVENT_FLAGS as Us, PatchedSlotNode as Ut, ComponentCompilerMethod as V, generatePreamble as Va, RobotsTxtOpts as Vi, BuildLog as Vn, TASK_CANCELED_MSG as Vo, FsWatchResults as Vr, DOCS_README as Vs, PackageJsonData as Vt, ComponentCompilerPropertyComplexType as W, isDtsFile as Wa, SerializeDocumentOptions as Wi, BuildOnEvents as Wn, buildWarn as Wo, HotModuleReplacement as Wr, GENERATED_DTS as Ws, PlatformRuntime as Wt, ComponentCompilerStaticProperty as X, readOnlyArrayHasStringMember as Xa, StencilConfig as Xi, CompileTarget as Xn, normalizeDiagnostics as Xo, LightDomPatches as Xr, MEMBER_FLAGS as Xs, PrerenderUrlRequest as Xt, ComponentCompilerStaticMethod as Y, parsePackageJson as Ya, SsrFactoryOptions as Yi, CompileScriptMinifyOptions as Yn, escapeHtml as Yo, LazyRequire as Yr, LOADER_BUNDLE as Ys, PrerenderManager as Yt, ComponentCompilerTypeReference as Z, readPackageJson as Za, StencilDevServerConfig as Zi, Compiler as Zn, splitLineBreaks as Zo, LoadConfigInit as Zr, NODE_TYPES as Zs, PrerenderUrlResults as Zt, CollectionCompilerVersion as _, JsonDocMethodParameter as _a, OutputTargetDocsCustom as _i, SsrImgElement as _n, getComponentsDtsTypesFilePath as _o, CompilerRequestResponse as _r, isString as _s, ComponentTestingConstructor as _t, BuildCtx as a, ValidatedConfig as aa, VALID_CONFIG_OUTPUT_TARGETS as ac, OptimizeCssOutput as ai, RolldownResults as an, queryNonceMetaTagContent as ao, CompilerEventDirAdd as ar, isGlob as as, ComponentConstructorProperties as at, CollectionDependencyManifest as b, JsonDocsCustomState as ba, OutputTargetDocsReadme as bi, SsrStaticData as bn, isOutputTargetCollection as bo, CompilerSystemCreateDirectoryResults as br, pluck as bs, CssTransformCacheEntry as bt, BuildStyleUpdate as c, WorkerMainController as ca, XLINK_NS as cc, OutputTarget as ci, RuntimeRef as cn, normalizeFsPath as co, CompilerEventFileDelete as cr, flatOne as cs, ComponentGlobalStyle as ct, BundleModuleOutput as d, FunctionalComponent as da, OutputTargetBaseNext as di, SourceMap$1 as dn, relative as do, CompilerEventName as dr, isComplexType as ds, ComponentRuntimeHostListener as dt, TransformOptions as ea, STANDALONE as ec, Logger as ei, RenderNode as en, getSourceMappingUrlForEndOfFile as eo, CompilerDependency as er, loadTypeScriptDiagnostics as es, ComponentConstructor as et, Cache as f, RafCallback as fa, OutputTargetBuild as fi, SourceTarget as fn, resolve as fo, CompilerFileWatcher as fr, isDef as fs, ComponentRuntimeMember as ft, CollectionCompilerMeta as g, VNode as ga, OutputTargetDistLazy as gi, SsrElement as gn, getComponentsDtsSrcFilePath as go, CompilerRequest as gr, isObject as gs, ComponentRuntimeReflectingAttr as gt, CollectionCompiler as h, UserBuildConditionals as ha, OutputTargetCustom as hi, SsrComponent as hn, filterExcludedComponents as ho, CompilerFsStats as hr, isNumber as hs, ComponentRuntimeMetaCompact as ht, BuildConditionals as i, UnvalidatedConfig as ia, TYPES as ic, OptimizeCssInput as ii, RolldownResultModule as in, escapeRegExpSpecialCharacters as io, CompilerEventBuildStart as ir, isRootPath as is, ComponentConstructorListener as it, CompilerWorkerContext as j, JsonDocsTypeLibrary as ja, ParsedPath as ji, TypesModule as jn, isOutputTargetLoaderBundle as jo, ConfigCompat as jr, COLLECTION as js, LazyBundleRuntimeData as jt, CompilerModeStyles as k, JsonDocsStyle as ka, OutputTargetWww as ki, TypesImportData as kn, isOutputTargetDocsVscode as ko, Config as kr, ASSETS as ks, JSDocTagInfo as kt, BuildTask as l, WorkerOptions as la, byteSize as lc, OutputTargetAssets as li, SerializeImportData as ln, normalizeFsPathQuery as lo, CompilerEventFileUpdate as lr, fromEntries as ls, ComponentNativeConstructor as lt, CollectionBundleManifest as m, TagTransformer as ma, OutputTargetCopy as mi, SsrAnchorElement as mn, filterActiveTargets as mo, CompilerFileWatcherEvent as mr, isIterable as ms, ComponentRuntimeMeta as mt, AssetsMeta as n, TranspileOptions as na, STYLE_EXT as nc, LoggerTimeSpan as ni, RolldownChunkResult as nn, rolldownToStencilSourceMap as no, CompilerEventBuildLog as nr, isRolldownError as ns, ComponentConstructorEncapsulation as nt, BuildFeatures as o, ValidatedOutputTargetWww as oa, WATCH_FLAGS as oc, OptimizeJsInput as oi, RolldownSourceMap as on, join as oo, CompilerEventDirDelete as or, dashToPascalCase as os, ComponentConstructorProperty as ot, ChildType as p, ResolutionHandler as pa, OutputTargetCollection as pi, SpecPage as pn, FilterComponentsResult as po, CompilerFileWatcherCallback as pr, isFunction as ps, ComponentRuntimeMembers as pt, ComponentCompilerState as q, isTsFile as qa, SitemapXmpResults as qi, CacheStorage as qn, hasWarning as qo, HydratedFlag as qr, HTML_NS as qs, PluginTransformResults as qt, BuildComponent as r, TranspileResults as ra, SVG_NS as rc, NodeResolveConfig as ri, RolldownResult as rn, result_d_exports as ro, CompilerEventBuildNoChange as rr, loadRolldownDiagnostics as rs, ComponentConstructorEvent as rt, BuildSourceGraph as s, WatcherCloseResults as sa, WWW as sc, OptimizeJsOutput as si, RootAppliedStyleMap as sn, normalize as so, CompilerEventFileAdd as sr, escapeWithPattern as ss, ComponentConstructorPropertyType as st, AnyHTMLElement as t, TranspileOnlyResults as ta, STATS as tc, LoggerLineUpdater as ti, RolldownAssetResult as tn, getSourceMappingUrlLinker as to, CompilerEventBuildFinish as tr, createOnWarnFn as ts, ComponentConstructorChangeHandlers as tt, BundleModule as u, ErrorHandler as ua, OutputTargetBase as ui, SerializedEvent as un, normalizePath as uo, CompilerEventFsChange as ur, isBoolean as us, ComponentPatches as ut, CollectionComponentEntryPath as v, JsonDocs as va, OutputTargetDocsCustomElementsManifest as vi, SsrResults as vn, getComponentsFromModules as vo, CompilerSystem as vr, mergeIntoWith as vs, CssImportData as vt, CompilerBuildStatCollection as w, JsonDocsMethod as wa, OutputTargetSsr as wi, StyleMap as wn, isOutputTargetDocs as wo, CompilerSystemRemoveFileResults as wr, toTitleCase as ws, EventInitDict as wt, CollectionManifest as x, JsonDocsDependencyGraph as xa, OutputTargetDocsVscode as xi, SsrStyleElement as xn, isOutputTargetCopy as xo, CompilerSystemRealpathResults as xr, sortBy as xs, DocData as xt, CollectionDependencyData as y, JsonDocsComponent as ya, OutputTargetDocsJson as yi, SsrScriptElement as yn, isOutputTargetAssets as yo, CompilerSystemCreateDirectoryOptions as yr, noop as ys, CssToEsmImportData as yt, ComponentCompilerListener as z, addDocBlock as za, ResolveModuleIdResults as zi, BuildEmitEvents as zn, relativeImport as zo, DevServerEditor as zr, DOCS_CUSTOM_ELEMENTS_MANIFEST as zs, NodeMap as zt };
|