@stencil/core 5.0.0-alpha.6 → 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-fWOou5EW.mjs → client-Dd-NB5Ei.mjs} +1 -1
- package/dist/compiler/index.d.mts +2 -2
- 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-CdUbDTbV.mjs → compiler-BmT_yLHU.mjs} +224 -120
- package/dist/declarations/stencil-public-compiler.d.ts +56 -60
- package/dist/{index-Dap2E02-.d.ts → index-BuveMLxy.d.ts} +1 -1
- package/dist/{index-D8vvsppY.d.mts → index-CVhWFUM0.d.mts} +59 -62
- package/dist/{index-UUlemGuu.d.mts → index-ch-cf-bZ.d.mts} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-klLZLdDe.mjs → node-10UamZmn.mjs} +3 -3
- package/dist/{regular-expression-DUdhF3Ei.mjs → regular-expression-CFVJOTUh.mjs} +13 -4
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/signals/index.d.ts +1 -1
- package/dist/signals/index.js +2 -2
- 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 +2 -2
- package/dist/testing/index.mjs +9 -12
- package/dist/{validation-2QipI30K.mjs → validation-ByxKj8bC.mjs} +2 -2
- package/package.json +4 -4
|
@@ -746,7 +746,7 @@ interface BuildConditionals extends Partial<BuildFeatures> {
|
|
|
746
746
|
lazyLoad?: boolean;
|
|
747
747
|
profile?: boolean;
|
|
748
748
|
constructableCSS?: boolean;
|
|
749
|
-
/** True when `
|
|
749
|
+
/** True when `compat.lightDomPatches === true` - enables `applyLightDomPatches` shortcut. */
|
|
750
750
|
lightDomPatches?: boolean;
|
|
751
751
|
/** Patch `childNodes`/`children` getters on light-dom slotted components. */
|
|
752
752
|
slotChildNodes?: boolean;
|
|
@@ -823,7 +823,7 @@ interface BuildCtx {
|
|
|
823
823
|
* A collection of Stencil's intermediate representation of components, tied to the current build
|
|
824
824
|
*/
|
|
825
825
|
moduleFiles: Module[];
|
|
826
|
-
packageJson: PackageJsonData;
|
|
826
|
+
packageJson: PackageJsonData | null;
|
|
827
827
|
pendingCopyTasks: Promise<CopyResults>[];
|
|
828
828
|
progress(task: BuildTask): void;
|
|
829
829
|
requiresFullBuild: boolean;
|
|
@@ -1837,11 +1837,17 @@ interface StencilConfig {
|
|
|
1837
1837
|
*/
|
|
1838
1838
|
logger?: Logger;
|
|
1839
1839
|
/**
|
|
1840
|
-
*
|
|
1841
|
-
* that not all DOM APIs are fully polyfilled when using the slot polyfill. These
|
|
1842
|
-
* are opt-in since not all users will require the additional runtime.
|
|
1840
|
+
* Compatibility and workaround flags for framework integration and bundler edge cases.
|
|
1843
1841
|
*/
|
|
1844
|
-
|
|
1842
|
+
compat?: ConfigCompat;
|
|
1843
|
+
/**
|
|
1844
|
+
* Replace `@State` and `@Prop` internals with `@preact/signals-core` signal primitives.
|
|
1845
|
+
* Enables cross-framework reactive interop - component state becomes subscribable by
|
|
1846
|
+
* Solid, Angular, Preact and any TC39-signal-compatible library without event/attribute
|
|
1847
|
+
* roundtrips. No API changes required in component code.
|
|
1848
|
+
* Defaults to `false`.
|
|
1849
|
+
*/
|
|
1850
|
+
signalBacking?: boolean;
|
|
1845
1851
|
/**
|
|
1846
1852
|
* The hydrated flag identifies if a component and all of its child components
|
|
1847
1853
|
* have finished hydrating. This helps prevent any flash of unstyled content (FOUC)
|
|
@@ -1976,45 +1982,6 @@ interface StencilConfig {
|
|
|
1976
1982
|
collections?: string[];
|
|
1977
1983
|
stencilCoreResolvedId?: string;
|
|
1978
1984
|
}
|
|
1979
|
-
interface ConfigExtrasBase {
|
|
1980
|
-
/**
|
|
1981
|
-
* Projects that use a Stencil library built using the `dist` output target may have trouble lazily
|
|
1982
|
-
* loading components when using a bundler such as Vite or Parcel. Setting this flag to `true` will change how Stencil
|
|
1983
|
-
* lazily loads components in a way that works with additional bundlers. Setting this flag to `true` will increase
|
|
1984
|
-
* the size of the compiled output. Defaults to `true`.
|
|
1985
|
-
*/
|
|
1986
|
-
enableImportInjection?: boolean;
|
|
1987
|
-
/**
|
|
1988
|
-
* Dispatches component lifecycle events. Mainly used for testing. Defaults to `false`.
|
|
1989
|
-
*/
|
|
1990
|
-
lifecycleDOMEvents?: boolean;
|
|
1991
|
-
/**
|
|
1992
|
-
* When a component is first attached to the DOM, this setting will wait a single tick before
|
|
1993
|
-
* rendering. This works around an Angular issue, where Angular attaches the elements before
|
|
1994
|
-
* settings their initial state, leading to double renders and unnecessary event dispatches.
|
|
1995
|
-
* Defaults to `false`.
|
|
1996
|
-
*/
|
|
1997
|
-
initializeNextTick?: boolean;
|
|
1998
|
-
/**
|
|
1999
|
-
* Adds `transformTag` calls to css strings and querySelector(All) calls
|
|
2000
|
-
*/
|
|
2001
|
-
additionalTagTransformers?: boolean | 'prod';
|
|
2002
|
-
/**
|
|
2003
|
-
* Replace `@State` and `@Prop` internals with `@preact/signals-core` signal primitives.
|
|
2004
|
-
* Enables cross-framework reactive interop - component state becomes subscribable by
|
|
2005
|
-
* Solid, Angular, Preact and any TC39-signal-compatible library without event/attribute
|
|
2006
|
-
* roundtrips. No API changes required in component code.
|
|
2007
|
-
* Defaults to `false`.
|
|
2008
|
-
*/
|
|
2009
|
-
signalBacking?: boolean;
|
|
2010
|
-
/**
|
|
2011
|
-
* Enable JSX signal bypass: `Signal` objects passed as JSX text children or attribute values
|
|
2012
|
-
* subscribe directly to DOM nodes, bypassing the vdom diff on signal changes.
|
|
2013
|
-
* Also enables `<Show>` from `@stencil/core/signals`.
|
|
2014
|
-
* Auto-enabled when `signalBacking: true`. Defaults to `false`.
|
|
2015
|
-
*/
|
|
2016
|
-
vdomSignals?: boolean;
|
|
2017
|
-
}
|
|
2018
1985
|
/**
|
|
2019
1986
|
* DOM patches for light-dom / scoped components that use `<slot>`.
|
|
2020
1987
|
*
|
|
@@ -2036,13 +2003,40 @@ type LightDomPatches = {
|
|
|
2036
2003
|
domMutations?: boolean; /** Patches `textContent` to act like shadow DOM (reads/writes slotted text only). */
|
|
2037
2004
|
textContent?: boolean;
|
|
2038
2005
|
};
|
|
2039
|
-
|
|
2006
|
+
/**
|
|
2007
|
+
* Compatibility and workaround flags for framework integration and bundler edge cases.
|
|
2008
|
+
* These are opt-in runtime behaviors that aren't needed by every project.
|
|
2009
|
+
*/
|
|
2010
|
+
interface ConfigCompat {
|
|
2011
|
+
/**
|
|
2012
|
+
* Projects that use a Stencil library built using the `dist` output target may have trouble lazily
|
|
2013
|
+
* loading components when using a bundler such as Vite or Parcel. Setting this flag to `true` will change how Stencil
|
|
2014
|
+
* lazily loads components in a way that works with additional bundlers. Setting this flag to `true` will increase
|
|
2015
|
+
* the size of the compiled output. Defaults to `true`.
|
|
2016
|
+
*/
|
|
2017
|
+
enableImportInjection?: boolean;
|
|
2018
|
+
/**
|
|
2019
|
+
* Dispatches component lifecycle events. Mainly used for testing. Defaults to `false`.
|
|
2020
|
+
*/
|
|
2021
|
+
lifecycleDOMEvents?: boolean;
|
|
2022
|
+
/**
|
|
2023
|
+
* When a component is first attached to the DOM, this setting will wait a single tick before
|
|
2024
|
+
* rendering. This works around an Angular issue, where Angular attaches the elements before
|
|
2025
|
+
* settings their initial state, leading to double renders and unnecessary event dispatches.
|
|
2026
|
+
* Defaults to `false`.
|
|
2027
|
+
*/
|
|
2028
|
+
initializeNextTick?: boolean;
|
|
2029
|
+
/**
|
|
2030
|
+
* Adds `transformTag` calls to css strings and querySelector(All) calls.
|
|
2031
|
+
* Use `'prod'` to enable only in production builds.
|
|
2032
|
+
*/
|
|
2033
|
+
additionalTagTransformers?: boolean | 'prod';
|
|
2040
2034
|
/**
|
|
2041
2035
|
* DOM patches for light-dom / scoped components that use `<slot>`.
|
|
2042
2036
|
* See {@link LightDomPatches} for granular control. Defaults to `true`.
|
|
2043
2037
|
*/
|
|
2044
2038
|
lightDomPatches?: boolean | LightDomPatches;
|
|
2045
|
-
}
|
|
2039
|
+
}
|
|
2046
2040
|
interface Config extends StencilConfig {
|
|
2047
2041
|
buildAppCore?: boolean;
|
|
2048
2042
|
configPath?: string;
|
|
@@ -2145,7 +2139,7 @@ type RequireFields<T, K extends keyof T> = T & { [P in K]-?: T[P] };
|
|
|
2145
2139
|
/**
|
|
2146
2140
|
* Fields in {@link Config} to make required for {@link ValidatedConfig}
|
|
2147
2141
|
*/
|
|
2148
|
-
type StrictConfigFields = keyof Pick<Config, 'cacheDir' | 'devServer' | '
|
|
2142
|
+
type StrictConfigFields = keyof Pick<Config, 'cacheDir' | 'devServer' | 'compat' | 'fsNamespace' | 'hydratedFlag' | 'logLevel' | 'logger' | 'minifyCss' | 'minifyJs' | 'namespace' | 'outputTargets' | 'packageJsonFilePath' | 'rolldownConfig' | 'rootDir' | 'srcDir' | 'srcIndexHtml' | 'sys' | 'transformAliasedImportPaths'>;
|
|
2149
2143
|
/**
|
|
2150
2144
|
* A version of {@link Config} that makes certain fields required. This type represents a valid configuration entity.
|
|
2151
2145
|
* When a configuration is received by the user, it is a bag of unverified data. In order to make stricter guarantees
|
|
@@ -3069,6 +3063,7 @@ interface CompilerBuildResults {
|
|
|
3069
3063
|
ssrAppFilePath?: string;
|
|
3070
3064
|
isRebuild: boolean;
|
|
3071
3065
|
namespace: string;
|
|
3066
|
+
fsNamespace: string;
|
|
3072
3067
|
outputs: BuildOutput[];
|
|
3073
3068
|
rootDir: string;
|
|
3074
3069
|
srcDir: string;
|
|
@@ -3965,12 +3960,12 @@ interface OutputTargetWww extends OutputTargetBase {
|
|
|
3965
3960
|
*/
|
|
3966
3961
|
prerenderConfig?: string;
|
|
3967
3962
|
/**
|
|
3968
|
-
* Service worker config for production builds.
|
|
3969
|
-
*
|
|
3970
|
-
*
|
|
3971
|
-
*
|
|
3963
|
+
* Service worker config for production builds. In development mode, a script
|
|
3964
|
+
* to deregister existing service workers is always injected. Defaults to
|
|
3965
|
+
* `null` (disabled). Set to `true` to enable with default settings, or provide
|
|
3966
|
+
* a config object for custom settings.
|
|
3972
3967
|
*/
|
|
3973
|
-
serviceWorker?: ServiceWorkerConfig |
|
|
3968
|
+
serviceWorker?: ServiceWorkerConfig | true | null;
|
|
3974
3969
|
appDir?: string;
|
|
3975
3970
|
/**
|
|
3976
3971
|
* Hash the filenames of generated chunks based on their content.
|
|
@@ -3987,6 +3982,13 @@ interface OutputTargetWww extends OutputTargetBase {
|
|
|
3987
3982
|
hashedFileNameLength?: number;
|
|
3988
3983
|
}
|
|
3989
3984
|
type OutputTarget = OutputTargetCopy | OutputTargetCustom | OutputTargetLoaderBundle | OutputTargetStandalone | OutputTargetSsr | OutputTargetSsrWasm | OutputTargetCollection | OutputTargetTypes | OutputTargetGlobalStyle | OutputTargetAssets | OutputTargetDistLazy | OutputTargetDocsJson | OutputTargetDocsCustom | OutputTargetDocsReadme | OutputTargetDocsVscode | OutputTargetDocsCustomElementsManifest | OutputTargetWww | OutputTargetStats;
|
|
3985
|
+
/**
|
|
3986
|
+
* A post-validation form of {@link OutputTargetWww} where `serviceWorker`
|
|
3987
|
+
* has been normalized - `true` is resolved to a {@link ServiceWorkerConfig}.
|
|
3988
|
+
*/
|
|
3989
|
+
type ValidatedOutputTargetWww = Omit<OutputTargetWww, 'serviceWorker'> & {
|
|
3990
|
+
serviceWorker?: ServiceWorkerConfig | null;
|
|
3991
|
+
};
|
|
3990
3992
|
/**
|
|
3991
3993
|
* Our custom configuration interface for generated caching Service Workers
|
|
3992
3994
|
* using the Workbox library (see https://developer.chrome.com/docs/workbox/).
|
|
@@ -4034,12 +4036,6 @@ interface LoadConfigInit {
|
|
|
4034
4036
|
configPath?: string;
|
|
4035
4037
|
logger?: Logger;
|
|
4036
4038
|
sys?: CompilerSystem;
|
|
4037
|
-
/**
|
|
4038
|
-
* When set to true, if the "tsconfig.json" file is not found
|
|
4039
|
-
* it'll automatically generate and save a default tsconfig
|
|
4040
|
-
* within the root directory.
|
|
4041
|
-
*/
|
|
4042
|
-
initTsConfig?: boolean;
|
|
4043
4039
|
}
|
|
4044
4040
|
/**
|
|
4045
4041
|
* Results from an attempt to load a config. The values on this interface
|
|
@@ -4371,4 +4367,4 @@ interface CliInitOptions {
|
|
|
4371
4367
|
sys: CompilerSystem;
|
|
4372
4368
|
}
|
|
4373
4369
|
//#endregion
|
|
4374
|
-
export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildResultsComponentGraph, CacheStorage, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerRequest, CompilerRequestResponse, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, Config, ConfigBundle,
|
|
4370
|
+
export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildResultsComponentGraph, CacheStorage, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerRequest, CompilerRequestResponse, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, FsWatchResults, HistoryApiFallback, HmrStyleUpdate, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PageReloadStrategy, ParsedPath, PlatformPath, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions };
|
|
@@ -1362,7 +1362,7 @@ interface BuildConditionals extends Partial<BuildFeatures> {
|
|
|
1362
1362
|
lazyLoad?: boolean;
|
|
1363
1363
|
profile?: boolean;
|
|
1364
1364
|
constructableCSS?: boolean;
|
|
1365
|
-
/** True when `
|
|
1365
|
+
/** True when `compat.lightDomPatches === true` - enables `applyLightDomPatches` shortcut. */
|
|
1366
1366
|
lightDomPatches?: boolean;
|
|
1367
1367
|
/** Patch `childNodes`/`children` getters on light-dom slotted components. */
|
|
1368
1368
|
slotChildNodes?: boolean;
|
|
@@ -194,7 +194,7 @@ declare const SSR_WASM = "ssr-wasm";
|
|
|
194
194
|
* Contains transpiled source + metadata for downstream Stencil projects
|
|
195
195
|
* to re-compile/bundle.
|
|
196
196
|
*/
|
|
197
|
-
declare const
|
|
197
|
+
declare const COLLECTION = "collection";
|
|
198
198
|
/**
|
|
199
199
|
* Constant for the 'types' output target
|
|
200
200
|
* (formerly 'dist-types' sub-output in v4)
|
|
@@ -249,10 +249,11 @@ declare const WWW = "www";
|
|
|
249
249
|
* Note that some internal output targets (e.g. `DIST_LAZY`, `DIST_GLOBAL_STYLES`)
|
|
250
250
|
* are programmatically created by the compiler and are not user-configurable.
|
|
251
251
|
*
|
|
252
|
-
* In v5, `TYPES` and `
|
|
252
|
+
* In v5, `TYPES` and `COLLECTION` are auto-generated in production builds unless explicitly configured.
|
|
253
253
|
*/
|
|
254
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"];
|
|
255
255
|
declare const GENERATED_DTS = "components.d.ts";
|
|
256
|
+
declare const STYLE_EXT: string[];
|
|
256
257
|
/**
|
|
257
258
|
* DOM Node types
|
|
258
259
|
*
|
|
@@ -1889,11 +1890,17 @@ interface StencilConfig {
|
|
|
1889
1890
|
*/
|
|
1890
1891
|
logger?: Logger;
|
|
1891
1892
|
/**
|
|
1892
|
-
*
|
|
1893
|
-
* that not all DOM APIs are fully polyfilled when using the slot polyfill. These
|
|
1894
|
-
* are opt-in since not all users will require the additional runtime.
|
|
1893
|
+
* Compatibility and workaround flags for framework integration and bundler edge cases.
|
|
1895
1894
|
*/
|
|
1896
|
-
|
|
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;
|
|
1897
1904
|
/**
|
|
1898
1905
|
* The hydrated flag identifies if a component and all of its child components
|
|
1899
1906
|
* have finished hydrating. This helps prevent any flash of unstyled content (FOUC)
|
|
@@ -2028,45 +2035,6 @@ interface StencilConfig {
|
|
|
2028
2035
|
collections?: string[];
|
|
2029
2036
|
stencilCoreResolvedId?: string;
|
|
2030
2037
|
}
|
|
2031
|
-
interface ConfigExtrasBase {
|
|
2032
|
-
/**
|
|
2033
|
-
* Projects that use a Stencil library built using the `dist` output target may have trouble lazily
|
|
2034
|
-
* loading components when using a bundler such as Vite or Parcel. Setting this flag to `true` will change how Stencil
|
|
2035
|
-
* lazily loads components in a way that works with additional bundlers. Setting this flag to `true` will increase
|
|
2036
|
-
* the size of the compiled output. Defaults to `true`.
|
|
2037
|
-
*/
|
|
2038
|
-
enableImportInjection?: boolean;
|
|
2039
|
-
/**
|
|
2040
|
-
* Dispatches component lifecycle events. Mainly used for testing. Defaults to `false`.
|
|
2041
|
-
*/
|
|
2042
|
-
lifecycleDOMEvents?: boolean;
|
|
2043
|
-
/**
|
|
2044
|
-
* When a component is first attached to the DOM, this setting will wait a single tick before
|
|
2045
|
-
* rendering. This works around an Angular issue, where Angular attaches the elements before
|
|
2046
|
-
* settings their initial state, leading to double renders and unnecessary event dispatches.
|
|
2047
|
-
* Defaults to `false`.
|
|
2048
|
-
*/
|
|
2049
|
-
initializeNextTick?: boolean;
|
|
2050
|
-
/**
|
|
2051
|
-
* Adds `transformTag` calls to css strings and querySelector(All) calls
|
|
2052
|
-
*/
|
|
2053
|
-
additionalTagTransformers?: boolean | 'prod';
|
|
2054
|
-
/**
|
|
2055
|
-
* Replace `@State` and `@Prop` internals with `@preact/signals-core` signal primitives.
|
|
2056
|
-
* Enables cross-framework reactive interop - component state becomes subscribable by
|
|
2057
|
-
* Solid, Angular, Preact and any TC39-signal-compatible library without event/attribute
|
|
2058
|
-
* roundtrips. No API changes required in component code.
|
|
2059
|
-
* Defaults to `false`.
|
|
2060
|
-
*/
|
|
2061
|
-
signalBacking?: boolean;
|
|
2062
|
-
/**
|
|
2063
|
-
* Enable JSX signal bypass: `Signal` objects passed as JSX text children or attribute values
|
|
2064
|
-
* subscribe directly to DOM nodes, bypassing the vdom diff on signal changes.
|
|
2065
|
-
* Also enables `<Show>` from `@stencil/core/signals`.
|
|
2066
|
-
* Auto-enabled when `signalBacking: true`. Defaults to `false`.
|
|
2067
|
-
*/
|
|
2068
|
-
vdomSignals?: boolean;
|
|
2069
|
-
}
|
|
2070
2038
|
/**
|
|
2071
2039
|
* DOM patches for light-dom / scoped components that use `<slot>`.
|
|
2072
2040
|
*
|
|
@@ -2088,13 +2056,40 @@ type LightDomPatches = {
|
|
|
2088
2056
|
domMutations?: boolean; /** Patches `textContent` to act like shadow DOM (reads/writes slotted text only). */
|
|
2089
2057
|
textContent?: boolean;
|
|
2090
2058
|
};
|
|
2091
|
-
|
|
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 {
|
|
2064
|
+
/**
|
|
2065
|
+
* Projects that use a Stencil library built using the `dist` output target may have trouble lazily
|
|
2066
|
+
* loading components when using a bundler such as Vite or Parcel. Setting this flag to `true` will change how Stencil
|
|
2067
|
+
* lazily loads components in a way that works with additional bundlers. Setting this flag to `true` will increase
|
|
2068
|
+
* the size of the compiled output. Defaults to `true`.
|
|
2069
|
+
*/
|
|
2070
|
+
enableImportInjection?: boolean;
|
|
2071
|
+
/**
|
|
2072
|
+
* Dispatches component lifecycle events. Mainly used for testing. Defaults to `false`.
|
|
2073
|
+
*/
|
|
2074
|
+
lifecycleDOMEvents?: boolean;
|
|
2075
|
+
/**
|
|
2076
|
+
* When a component is first attached to the DOM, this setting will wait a single tick before
|
|
2077
|
+
* rendering. This works around an Angular issue, where Angular attaches the elements before
|
|
2078
|
+
* settings their initial state, leading to double renders and unnecessary event dispatches.
|
|
2079
|
+
* Defaults to `false`.
|
|
2080
|
+
*/
|
|
2081
|
+
initializeNextTick?: boolean;
|
|
2082
|
+
/**
|
|
2083
|
+
* Adds `transformTag` calls to css strings and querySelector(All) calls.
|
|
2084
|
+
* Use `'prod'` to enable only in production builds.
|
|
2085
|
+
*/
|
|
2086
|
+
additionalTagTransformers?: boolean | 'prod';
|
|
2092
2087
|
/**
|
|
2093
2088
|
* DOM patches for light-dom / scoped components that use `<slot>`.
|
|
2094
2089
|
* See {@link LightDomPatches} for granular control. Defaults to `true`.
|
|
2095
2090
|
*/
|
|
2096
2091
|
lightDomPatches?: boolean | LightDomPatches;
|
|
2097
|
-
}
|
|
2092
|
+
}
|
|
2098
2093
|
interface Config extends StencilConfig {
|
|
2099
2094
|
buildAppCore?: boolean;
|
|
2100
2095
|
configPath?: string;
|
|
@@ -2197,7 +2192,7 @@ type RequireFields<T, K extends keyof T> = T & { [P in K]-?: T[P] };
|
|
|
2197
2192
|
/**
|
|
2198
2193
|
* Fields in {@link Config} to make required for {@link ValidatedConfig}
|
|
2199
2194
|
*/
|
|
2200
|
-
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'>;
|
|
2201
2196
|
/**
|
|
2202
2197
|
* A version of {@link Config} that makes certain fields required. This type represents a valid configuration entity.
|
|
2203
2198
|
* When a configuration is received by the user, it is a bag of unverified data. In order to make stricter guarantees
|
|
@@ -3121,6 +3116,7 @@ interface CompilerBuildResults {
|
|
|
3121
3116
|
ssrAppFilePath?: string;
|
|
3122
3117
|
isRebuild: boolean;
|
|
3123
3118
|
namespace: string;
|
|
3119
|
+
fsNamespace: string;
|
|
3124
3120
|
outputs: BuildOutput[];
|
|
3125
3121
|
rootDir: string;
|
|
3126
3122
|
srcDir: string;
|
|
@@ -4017,12 +4013,12 @@ interface OutputTargetWww extends OutputTargetBase {
|
|
|
4017
4013
|
*/
|
|
4018
4014
|
prerenderConfig?: string;
|
|
4019
4015
|
/**
|
|
4020
|
-
* Service worker config for production builds.
|
|
4021
|
-
*
|
|
4022
|
-
*
|
|
4023
|
-
*
|
|
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.
|
|
4024
4020
|
*/
|
|
4025
|
-
serviceWorker?: ServiceWorkerConfig |
|
|
4021
|
+
serviceWorker?: ServiceWorkerConfig | true | null;
|
|
4026
4022
|
appDir?: string;
|
|
4027
4023
|
/**
|
|
4028
4024
|
* Hash the filenames of generated chunks based on their content.
|
|
@@ -4039,6 +4035,13 @@ interface OutputTargetWww extends OutputTargetBase {
|
|
|
4039
4035
|
hashedFileNameLength?: number;
|
|
4040
4036
|
}
|
|
4041
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
|
+
};
|
|
4042
4045
|
/**
|
|
4043
4046
|
* Our custom configuration interface for generated caching Service Workers
|
|
4044
4047
|
* using the Workbox library (see https://developer.chrome.com/docs/workbox/).
|
|
@@ -4086,12 +4089,6 @@ interface LoadConfigInit {
|
|
|
4086
4089
|
configPath?: string;
|
|
4087
4090
|
logger?: Logger;
|
|
4088
4091
|
sys?: CompilerSystem;
|
|
4089
|
-
/**
|
|
4090
|
-
* When set to true, if the "tsconfig.json" file is not found
|
|
4091
|
-
* it'll automatically generate and save a default tsconfig
|
|
4092
|
-
* within the root directory.
|
|
4093
|
-
*/
|
|
4094
|
-
initTsConfig?: boolean;
|
|
4095
4092
|
}
|
|
4096
4093
|
/**
|
|
4097
4094
|
* Results from an attempt to load a config. The values on this interface
|
|
@@ -4548,7 +4545,7 @@ interface BuildConditionals extends Partial<BuildFeatures> {
|
|
|
4548
4545
|
lazyLoad?: boolean;
|
|
4549
4546
|
profile?: boolean;
|
|
4550
4547
|
constructableCSS?: boolean;
|
|
4551
|
-
/** True when `
|
|
4548
|
+
/** True when `compat.lightDomPatches === true` - enables `applyLightDomPatches` shortcut. */
|
|
4552
4549
|
lightDomPatches?: boolean;
|
|
4553
4550
|
/** Patch `childNodes`/`children` getters on light-dom slotted components. */
|
|
4554
4551
|
slotChildNodes?: boolean;
|
|
@@ -4629,7 +4626,7 @@ interface BuildCtx {
|
|
|
4629
4626
|
* A collection of Stencil's intermediate representation of components, tied to the current build
|
|
4630
4627
|
*/
|
|
4631
4628
|
moduleFiles: Module[];
|
|
4632
|
-
packageJson: PackageJsonData;
|
|
4629
|
+
packageJson: PackageJsonData | null;
|
|
4633
4630
|
pendingCopyTasks: Promise<CopyResults>[];
|
|
4634
4631
|
progress(task: BuildTask): void;
|
|
4635
4632
|
requiresFullBuild: boolean;
|
|
@@ -6521,4 +6518,4 @@ interface ValidateTypesResults {
|
|
|
6521
6518
|
filePaths: string[];
|
|
6522
6519
|
}
|
|
6523
6520
|
//#endregion
|
|
6524
|
-
export { ComponentCompilerVirtualProperty as $, getSourceMappingUrlLinker as $a, TransformOptions as $i, CompilerBuildStart as $n, createOnWarnFn as $o, Logger as $r, STENCIL_REBUNDLE as $s, PropsType as $t, CompilerStyleDoc as A, JsonDocsUsage as Aa, ParsedPath as Ai, TypesMemberNameData as An, isOutputTargetSsr as Ao, ConfigBundle as Ar, COLLECTION_MANIFEST_FILE_NAME as As, JsDoc as At, ComponentCompilerMeta as B, getTextDocs as Ba, RobotsTxtOpts as Bi, BuildEvents as Bn, buildError as Bo, Diagnostic$1 as Br, EVENT_FLAGS as Bs, OptimizeJsResult as Bt, CompilerBuildStatBundle as C, JsonDocsMethodReturn as Ca, OutputTargetSsr as Ci, StyleCompiler as Cn, isOutputTargetDocsCustom as Co, CompilerSystemRemoveDirectoryResults as Cr, unique as Cs, EntryModule as Ct, CompilerJsDoc as D, JsonDocsStyle as Da, OutputTargetTypes as Di, TranspileModuleResults as Dn, isOutputTargetDocsVscode as Do, CompilerSystemWriteFileResults as Dr, ASSETS as Ds, HostRef as Dt, CompilerCtx as E, JsonDocsSlot as Ea, OutputTargetStats as Ei, TransformCssToEsmOutput as En, isOutputTargetDocsReadme as Eo, CompilerSystemRenamedPath as Er, stringifyRuntimeData as Es, HostElement as Et, ComponentCompilerData as F, validateComponentTag as Fa, PrerenderResults as Fi, Workbox as Fn, isOutputTargetWww as Fo, CustomElementsExportBehavior as Fr, DOCS_CUSTOM as Fs, ModuleMap as Ft, ComponentCompilerPropertyType as G, isTsFile as Ga, SitemapXmpOpts as Gi, BuildOutput as Gn, hasWarning as Go, HydrateDocumentOptions as Gr, LISTENER_FLAGS as Gs, Plugin as Gt, ComponentCompilerMethodComplexType as H, isDtsFile as Ha, RolldownConfig as Hi, BuildNoChangeResults as Hn, buildWarn as Ho, HistoryApiFallback as Hr, GLOBAL_STYLE as Hs, ParsedImport as Ht, ComponentCompilerEvent as I, ParsePackageJsonResult as Ia, PrerenderStartOptions as Ii, WorkerContextMethod as In, isValidConfigOutputTarget as Io, CustomElementsExportBehaviorOptions as Ir, DOCS_CUSTOM_ELEMENTS_MANIFEST as Is, MsgFromWorker as It, ComponentCompilerStaticEvent as J, readOnlyArrayHasStringMember as Ja, SsrFactoryOptions as Ji, CliInitOptions as Jn, normalizeDiagnostics as Jo, LOG_LEVELS as Jr, NODE_TYPES as Js, PluginTransformationDescriptor as Jt, ComponentCompilerReferencedType as K, isTsxFile as Ka, SitemapXmpResults as Ki, BuildResultsComponentGraph as Kn, shouldIgnoreError as Ko, HydrateFactoryOptions as Kr, LOADER_BUNDLE as Ks, PluginCtx as Kt, ComponentCompilerEventComplexType as L, addDocBlock as La, ResolveModuleIdOptions as Li, WorkerMsgHandler as Ln, relativeImport as Lo, DevServer as Lr, DOCS_JSON as Ls, MsgToWorker as Lt, CompilerWorkerTask as M, StyleDoc as Ma, PrerenderConfig as Mi, UpdatedLazyBuildCtx as Mn, isOutputTargetStandalone as Mo, CopyResults as Mr, CUSTOM as Ms, LazyBundlesRuntimeData as Mt, ComponentCompilerChangeHandler as N, FsWriteResults as Na, PrerenderHydrateOptions as Ni, VNodeProdData as Nn, isOutputTargetStats as No, CopyTask as Nr, DEFAULT_STYLE_MODE as Ns, Module as Nt, CompilerJsDocTagInfo as O, JsonDocsTag as Oa, OutputTargetWww as Oi, TypeInfo as On, isOutputTargetGlobalStyle as Oo, CompilerWatcher as Or, CMP_FLAGS as Os, ImportData as Ot, ComponentCompilerCustomState as P, InMemoryFileSystem as Pa, PrerenderOptions as Pi, ValidateTypesResults as Pn, isOutputTargetTypes as Po, Credentials as Pr, DIST_LAZY as Ps, ModuleFormat as Pt, ComponentCompilerTypeReferences as Q, getSourceMappingUrlForEndOfFile as Qa, SystemDetails as Qi, CompilerBuildResults as Qn, loadTypeScriptDiagnostics as Qo, LogLevel as Qr, STATS as Qs, PrintLine as Qt, ComponentCompilerFeatures as R, createJsVarName as Ra, ResolveModuleIdResults as Ri, AutoprefixerOptions as Rn, shouldExcludeComponent as Ro, DevServerConfig as Rr, DOCS_README as Rs, NewSpecPageOptions as Rt, CompilerAssetDir as S, JsonDocsMethod as Sa, OutputTargetLoaderBundle as Si, StencilDocument as Sn, isOutputTargetDocs as So, CompilerSystemRemoveDirectoryOptions as Sr, toTitleCase as Ss, Encapsulation as St, CompilerBuildStats as T, JsonDocsProp as Ta, OutputTargetStandalone as Ti, TransformCssToEsmInput as Tn, isOutputTargetDocsJson as To, CompilerSystemRenameResults as Tr, formatLazyBundleRuntimeMeta as Ts, ExternalStyleCompiler as Tt, ComponentCompilerProperty as U, isJsFile as Ua, SerializeDocumentOptions as Ui, BuildOnEventRemove as Un, catchError as Uo, HmrStyleUpdate as Ur, HOST_FLAGS as Us, PatchedSlotNode as Ut, ComponentCompilerMethod as V, hasDependency as Va, RobotsTxtResults as Vi, BuildLog as Vn, buildJsonFileError as Vo, FsWatchResults as Vr, GENERATED_DTS as Vs, PackageJsonData as Vt, ComponentCompilerPropertyComplexType as W, isJsxFile as Wa, ServiceWorkerConfig as Wi, BuildOnEvents as Wn, hasError as Wo, HotModuleReplacement as Wr, HTML_NS as Ws, PlatformRuntime as Wt, ComponentCompilerStaticProperty as X, isRemoteUrl as Xa, StencilDevServerConfig as Xi, CompileTarget as Xn, augmentDiagnosticWithNode as Xo, LoadConfigInit as Xr, SSR_WASM as Xs, PrerenderUrlRequest as Xt, ComponentCompilerStaticMethod as Y, readPackageJson as Ya, StencilConfig as Yi, CompileScriptMinifyOptions as Yn, splitLineBreaks as Yo, LazyRequire as Yr, SSR as Ys, PrerenderManager as Yt, ComponentCompilerTypeReference as Z, getInlineSourceMappingUrlLinker as Za, StencilDocsConfig as Zi, Compiler as Zn, loadTypeScriptDiagnostic as Zo, LoadConfigResults as Zr, STANDALONE as Zs, PrerenderUrlResults as Zt, CollectionCompilerVersion as _, JsonDocsComponent as _a, OutputTargetDocsCustomElementsManifest as _i, SsrImgElement as _n, isOutputTargetAssets as _o, CompilerRequestResponse as _r, noop as _s, ComponentTestingConstructor as _t, BuildCtx as a, WatcherCloseResults as aa, XLINK_NS as ac, OptimizeJsInput as ai, RolldownResults as an, normalize as ao, CompilerEventDirAdd as ar, escapeWithPattern as as, ComponentConstructorProperties as at, CollectionDependencyManifest as b, JsonDocsEvent as ba, OutputTargetDocsVscode as bi, SsrStaticData as bn, isOutputTargetCustom as bo, CompilerSystemCreateDirectoryResults as br, toCamelCase as bs, CssTransformCacheEntry as bt, BuildStyleUpdate as c, ErrorHandler as ca, OutputTargetAssets as ci, RuntimeRef as cn, normalizePath as co, CompilerEventFileDelete as cr, isBoolean as cs, ComponentGlobalStyle as ct, BundleModuleOutput as d, ResolutionHandler as da, OutputTargetBuild as di, SourceMap$1 as dn, FilterComponentsResult as do, CompilerEventName as dr, isFunction as ds, ComponentRuntimeHostListener as dt, TranspileOnlyResults as ea, SVG_NS as ec, LoggerLineUpdater as ei, RenderNode as en, rolldownToStencilSourceMap as eo, CompilerDependency as er, isRolldownError as es, ComponentConstructor as et, Cache as f, TagTransformer as fa, OutputTargetCollection as fi, SourceTarget as fn, filterActiveTargets as fo, CompilerFileWatcher as fr, isIterable as fs, ComponentRuntimeMember as ft, CollectionCompilerMeta as g, JsonDocs as ga, OutputTargetDocsCustom as gi, SsrElement as gn, getComponentsFromModules as go, CompilerRequest as gr, mergeIntoWith as gs, ComponentRuntimeReflectingAttr as gt, CollectionCompiler as h, JsonDocMethodParameter as ha, OutputTargetDistLazy as hi, SsrComponent as hn, getComponentsDtsTypesFilePath as ho, CompilerFsStats as hr, isString as hs, ComponentRuntimeMetaCompact as ht, BuildConditionals as i, ValidatedConfig as ia, WWW as ic, OptimizeCssOutput as ii, RolldownResultModule as in, join as io, CompilerEventBuildStart as ir, dashToPascalCase as is, ComponentConstructorListener as it, CompilerWorkerContext as j, JsonDocsValue as ja, PlatformPath as ji, TypesModule as jn, isOutputTargetSsrWasm as jo, ConfigExtras as jr, COPY as js, LazyBundleRuntimeData as jt, CompilerModeStyles as k, JsonDocsTypeLibrary as ka, PageReloadStrategy as ki, TypesImportData as kn, isOutputTargetLoaderBundle as ko, Config as kr, COLLECTION_APP_DATA_FILE_NAME as ks, JSDocTagInfo as kt, BuildTask as l, FunctionalComponent as la, OutputTargetBase as li, SerializeImportData as ln, relative as lo, CompilerEventFileUpdate as lr, isComplexType as ls, ComponentNativeConstructor as lt, CollectionBundleManifest as m, VNode as ma, OutputTargetCustom as mi, SsrAnchorElement as mn, getComponentsDtsSrcFilePath as mo, CompilerFileWatcherEvent as mr, isObject as ms, ComponentRuntimeMeta as mt, AssetsMeta as n, TranspileResults as na, VALID_CONFIG_OUTPUT_TARGETS as nc, NodeResolveConfig as ni, RolldownChunkResult as nn, escapeRegExpSpecialCharacters as no, CompilerEventBuildLog as nr, isRootPath as ns, ComponentConstructorEncapsulation as nt, BuildFeatures as o, WorkerMainController as oa, byteSize as oc, OptimizeJsOutput as oi, RolldownSourceMap as on, normalizeFsPath as oo, CompilerEventDirDelete as or, flatOne as os, ComponentConstructorProperty as ot, ChildType as p, UserBuildConditionals as pa, OutputTargetCopy as pi, SpecPage as pn, filterExcludedComponents as po, CompilerFileWatcherCallback as pr, isNumber as ps, ComponentRuntimeMembers as pt, ComponentCompilerState as q, parsePackageJson as qa, SsrDocumentOptions as qi, CacheStorage as qn, escapeHtml as qo, HydratedFlag as qr, MEMBER_FLAGS as qs, PluginTransformResults as qt, BuildComponent as r, UnvalidatedConfig as ra, WATCH_FLAGS as rc, OptimizeCssInput as ri, RolldownResult as rn, queryNonceMetaTagContent as ro, CompilerEventBuildNoChange as rr, isGlob as rs, ComponentConstructorEvent as rt, BuildSourceGraph as s, WorkerOptions as sa, OutputTarget as si, RootAppliedStyleMap as sn, normalizeFsPathQuery as so, CompilerEventFileAdd as sr, fromEntries as ss, ComponentConstructorPropertyType as st, AnyHTMLElement as t, TranspileOptions as ta, TYPES as tc, LoggerTimeSpan as ti, RolldownAssetResult as tn, result_d_exports as to, CompilerEventBuildFinish as tr, loadRolldownDiagnostics as ts, ComponentConstructorChangeHandlers as tt, BundleModule as u, RafCallback as ua, OutputTargetBaseNext as ui, SerializedEvent as un, resolve as uo, CompilerEventFsChange as ur, isDef as us, ComponentPatches as ut, CollectionComponentEntryPath as v, JsonDocsCustomState as va, OutputTargetDocsJson as vi, SsrResults as vn, isOutputTargetCollection as vo, CompilerSystem as vr, pluck as vs, CssImportData as vt, CompilerBuildStatCollection as w, JsonDocsPart as wa, OutputTargetSsrWasm as wi, StyleMap as wn, isOutputTargetDocsCustomElementsManifest as wo, CompilerSystemRemoveFileResults as wr, formatComponentRuntimeMeta as ws, EventInitDict as wt, CollectionManifest as x, JsonDocsListener as xa, OutputTargetGlobalStyle as xi, SsrStyleElement as xn, isOutputTargetDistLazy as xo, CompilerSystemRealpathResults as xr, toDashCase as xs, DocData as xt, CollectionDependencyData as y, JsonDocsDependencyGraph as ya, OutputTargetDocsReadme as yi, SsrScriptElement as yn, isOutputTargetCopy as yo, CompilerSystemCreateDirectoryOptions as yr, sortBy as ys, CssToEsmImportData as yt, ComponentCompilerListener as z, generatePreamble as za, ResolveModuleOptions as zi, BuildEmitEvents as zn, TASK_CANCELED_MSG as zo, DevServerEditor as zr, DOCS_VSCODE as zs, NodeMap 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as HostElement,
|
|
1
|
+
import { Et as HostElement, cn as RuntimeRef, da as FunctionalComponent, fa as RafCallback, ga as VNode, ha as UserBuildConditionals, ma as TagTransformer, p as ChildType, pa as ResolutionHandler, ua as ErrorHandler } from "./index-CVhWFUM0.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/client/client-build.d.ts
|
|
4
4
|
declare const Build: UserBuildConditionals;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as AttachInternals, B as Watch, C as setAssetPath, E as setPlatformHelpers, F as Listen, H as Build, I as Method, L as Prop, M as Component, N as Element, O as setErrorHandler, P as Event, R as PropSerialize, S as getAssetPath, T as writeTask, V as resolveVar, _ as getRenderingRef, a as setTagTransformer, b as getElement, c as Mixin, d as getMode, f as setMode, g as forceUpdate, h, j as AttrDeserialize, l as Fragment, m as Host, o as transformTag, s as render, w as readTask, x as getShadowRoot, z as State } from "./client-
|
|
1
|
+
import { A as AttachInternals, B as Watch, C as setAssetPath, E as setPlatformHelpers, F as Listen, H as Build, I as Method, L as Prop, M as Component, N as Element, O as setErrorHandler, P as Event, R as PropSerialize, S as getAssetPath, T as writeTask, V as resolveVar, _ as getRenderingRef, a as setTagTransformer, b as getElement, c as Mixin, d as getMode, f as setMode, g as forceUpdate, h, j as AttrDeserialize, l as Fragment, m as Host, o as transformTag, s as render, w as readTask, x as getShadowRoot, z as State } from "./client-Dd-NB5Ei.mjs";
|
|
2
2
|
export { AttachInternals, AttrDeserialize, Build, Component, Element, Event, Fragment, Host, Listen, Method, Mixin, Prop, PropSerialize, State, Watch, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as jsxs, l as Fragment, n as jsx, r as jsxDEV } from "./client-
|
|
1
|
+
import { i as jsxs, l as Fragment, n as jsx, r as jsxDEV } from "./client-Dd-NB5Ei.mjs";
|
|
2
2
|
export { Fragment, jsx, jsxDEV, jsxs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __require } from "./chunk-z9aeyW2b.mjs";
|
|
2
|
-
import "./client-
|
|
3
|
-
import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-
|
|
4
|
-
import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-
|
|
2
|
+
import "./client-Dd-NB5Ei.mjs";
|
|
3
|
+
import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-CFVJOTUh.mjs";
|
|
4
|
+
import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-ByxKj8bC.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
@@ -179,7 +179,7 @@ const SSR_WASM = "ssr-wasm";
|
|
|
179
179
|
* Contains transpiled source + metadata for downstream Stencil projects
|
|
180
180
|
* to re-compile/bundle.
|
|
181
181
|
*/
|
|
182
|
-
const
|
|
182
|
+
const COLLECTION = "collection";
|
|
183
183
|
/**
|
|
184
184
|
* Constant for the 'types' output target
|
|
185
185
|
* (formerly 'dist-types' sub-output in v4)
|
|
@@ -234,7 +234,7 @@ const WWW = "www";
|
|
|
234
234
|
* Note that some internal output targets (e.g. `DIST_LAZY`, `DIST_GLOBAL_STYLES`)
|
|
235
235
|
* are programmatically created by the compiler and are not user-configurable.
|
|
236
236
|
*
|
|
237
|
-
* In v5, `TYPES` and `
|
|
237
|
+
* In v5, `TYPES` and `COLLECTION` are auto-generated in production builds unless explicitly configured.
|
|
238
238
|
*/
|
|
239
239
|
const VALID_CONFIG_OUTPUT_TARGETS = [
|
|
240
240
|
"www",
|
|
@@ -242,7 +242,7 @@ const VALID_CONFIG_OUTPUT_TARGETS = [
|
|
|
242
242
|
STANDALONE,
|
|
243
243
|
"ssr",
|
|
244
244
|
SSR_WASM,
|
|
245
|
-
|
|
245
|
+
COLLECTION,
|
|
246
246
|
TYPES,
|
|
247
247
|
GLOBAL_STYLE,
|
|
248
248
|
ASSETS,
|
|
@@ -261,6 +261,15 @@ const VALID_CONFIG_OUTPUT_TARGETS = [
|
|
|
261
261
|
STATS
|
|
262
262
|
];
|
|
263
263
|
const GENERATED_DTS = "components.d.ts";
|
|
264
|
+
const STYLE_EXT = [
|
|
265
|
+
"css",
|
|
266
|
+
"scss",
|
|
267
|
+
"sass",
|
|
268
|
+
"pcss",
|
|
269
|
+
"styl",
|
|
270
|
+
"stylus",
|
|
271
|
+
"less"
|
|
272
|
+
];
|
|
264
273
|
/**
|
|
265
274
|
* DOM Node types
|
|
266
275
|
*
|
|
@@ -496,4 +505,4 @@ const escapeRegExpSpecialCharacters = (text) => {
|
|
|
496
505
|
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
497
506
|
};
|
|
498
507
|
//#endregion
|
|
499
|
-
export {
|
|
508
|
+
export { VALID_CONFIG_OUTPUT_TARGETS as $, DEFAULT_STYLE_MODE as A, HOST_FLAGS as B, ASSETS as C, COLLECTION_MANIFEST_FILE_NAME as D, COLLECTION_APP_DATA_FILE_NAME as E, DOCS_README as F, NODE_TYPES as G, LISTENER_FLAGS as H, DOCS_VSCODE as I, STANDALONE as J, SSR as K, EVENT_FLAGS as L, DOCS_CUSTOM as M, DOCS_CUSTOM_ELEMENTS_MANIFEST as N, COPY as O, DOCS_JSON as P, TYPES as Q, GENERATED_DTS as R, queryNonceMetaTagContent as S, COLLECTION as T, LOADER_BUNDLE as U, HTML_NS as V, MEMBER_FLAGS as W, STYLE_EXT as X, STATS as Y, SVG_NS as Z, sortBy as _, fromEntries as a, toTitleCase as b, isDef as c, isNumber as d, WATCH_FLAGS as et, isObject as f, pluck as g, noop as h, flatOne as i, DIST_LAZY as j, CUSTOM as k, isFunction as l, mergeIntoWith as m, dashToPascalCase as n, XLINK_NS as nt, isBoolean as o, isString as p, SSR_WASM as q, escapeWithPattern as r, isComplexType as s, escapeRegExpSpecialCharacters as t, WWW as tt, isIterable as u, toCamelCase as v, CMP_FLAGS as w, unique as x, toDashCase as y, GLOBAL_STYLE as z };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Env, r as NAMESPACE, t as BUILD } from "../../index-
|
|
1
|
+
import { n as Env, r as NAMESPACE, t as BUILD } from "../../index-BuveMLxy.js";
|
|
2
2
|
export { BUILD, Env, NAMESPACE };
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as VNode, _ as FunctionalComponent, a as ComponentConstructor, b as ResolutionHandler, c as ComponentRuntimeMeta, d as HostRef, f as LazyBundlesRuntimeData, g as CustomElementsDefineOptions, h as RuntimeRef, i as ChildType, l as ComponentRuntimeMetaCompact, m as RenderNode, o as ComponentConstructorChangeHandlers, p as PlatformRuntime, s as ComponentRuntimeHostListener, u as HostElement, v as HTMLStencilElement, x as TagTransformer, y as JSXBase } from "../index-
|
|
1
|
+
import { S as VNode, _ as FunctionalComponent, a as ComponentConstructor, b as ResolutionHandler, c as ComponentRuntimeMeta, d as HostRef, f as LazyBundlesRuntimeData, g as CustomElementsDefineOptions, h as RuntimeRef, i as ChildType, l as ComponentRuntimeMetaCompact, m as RenderNode, o as ComponentConstructorChangeHandlers, p as PlatformRuntime, s as ComponentRuntimeHostListener, u as HostElement, v as HTMLStencilElement, x as TagTransformer, y as JSXBase } from "../index-BuveMLxy.js";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime/asset-path.d.ts
|
|
4
4
|
declare const getAssetPath: (path: string) => string;
|
package/dist/signals/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare const STENCIL_SIGNALS_SYMBOL: unique symbol;
|
|
|
5
5
|
//#region src/signals/index.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Returns the `ReadonlySignal` backing a `@Prop` member on a Stencil element.
|
|
8
|
-
* Requires `
|
|
8
|
+
* Requires `signalBacking: true` in `stencil.config.ts`.
|
|
9
9
|
* Only `@Prop` members are exposed - `@State` is internal component state.
|
|
10
10
|
*
|
|
11
11
|
* Useful for cross-component or cross-framework reactivity without polling or events:
|
package/dist/signals/index.js
CHANGED
|
@@ -144,7 +144,7 @@ BUILD.lazyLoad || globalThis.HTMLElement;
|
|
|
144
144
|
//#region src/signals/index.ts
|
|
145
145
|
/**
|
|
146
146
|
* Returns the `ReadonlySignal` backing a `@Prop` member on a Stencil element.
|
|
147
|
-
* Requires `
|
|
147
|
+
* Requires `signalBacking: true` in `stencil.config.ts`.
|
|
148
148
|
* Only `@Prop` members are exposed - `@State` is internal component state.
|
|
149
149
|
*
|
|
150
150
|
* Useful for cross-component or cross-framework reactivity without polling or events:
|
|
@@ -162,7 +162,7 @@ BUILD.lazyLoad || globalThis.HTMLElement;
|
|
|
162
162
|
const getSignal = (elm, prop) => {
|
|
163
163
|
const hostRef = getHostRef(elm);
|
|
164
164
|
if (!hostRef?.$signalValues$) {
|
|
165
|
-
if (BUILD.isDev) consoleDevWarn(`getSignal('${prop}'): element <${elm.tagName.toLowerCase()}> is not signal-backed. Ensure
|
|
165
|
+
if (BUILD.isDev) consoleDevWarn(`getSignal('${prop}'): element <${elm.tagName.toLowerCase()}> is not signal-backed. Ensure signalBacking is true in stencil.config.ts.`);
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
168
|
if (!((hostRef.$cmpMeta$?.$members$?.[prop]?.[0] ?? 0) & MEMBER_FLAGS.Prop)) return null;
|
package/dist/sys/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-
|
|
1
|
+
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-10UamZmn.mjs";
|
|
2
2
|
export { createNodeLogger, createNodeSys, setupNodeProcess };
|
package/dist/sys/node/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as createWorkerMessageHandler } from "../../compiler-
|
|
2
|
-
import { t as createNodeSys } from "../../node-
|
|
1
|
+
import { l as createWorkerMessageHandler } from "../../compiler-BmT_yLHU.mjs";
|
|
2
|
+
import { t as createNodeSys } from "../../node-10UamZmn.mjs";
|
|
3
3
|
//#region src/sys/node/node-worker-thread.ts
|
|
4
4
|
/**
|
|
5
5
|
* Initialize a worker thread, setting up various machinery for managing
|