@stencil/core 5.0.0-beta.11 → 5.0.0-beta.13
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-CdFmjaQa.mjs → client-NHI55T4R.mjs} +7 -4
- package/dist/compiler/browser.d.ts +96 -54
- package/dist/compiler/browser.js +353 -54
- package/dist/compiler/index.d.mts +87 -2
- package/dist/compiler/index.mjs +3 -3
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/{compiler-2EypBn_Y.mjs → compiler-Dr9JHtLp.mjs} +3772 -2420
- package/dist/declarations/stencil-public-compiler.d.ts +85 -59
- package/dist/declarations/stencil-public-docs.d.ts +23 -0
- package/dist/declarations/stencil-public-runtime.d.ts +2 -2
- package/dist/{index-CKnzMkZC.d.mts → index-BBJVAnzJ.d.mts} +2 -2
- package/dist/{index-Cw1NW9FW.d.mts → index-BilaSOF5.d.mts} +87 -61
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-HKfDhPR3.mjs → node-DrwzfDH1.mjs} +1 -1
- package/dist/runtime/client/lazy.js +87 -84
- package/dist/runtime/client/runtime.d.ts +5 -6
- package/dist/runtime/client/runtime.js +87 -84
- package/dist/runtime/index.d.ts +2 -3
- package/dist/runtime/index.js +85 -82
- package/dist/runtime/server/index.d.mts +4 -5
- package/dist/runtime/server/index.mjs +97 -84
- package/dist/runtime/server/runner.mjs +62 -46
- 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 +77 -58
- package/dist/testing/index.mjs +167 -156
- package/package.json +5 -4
|
@@ -394,6 +394,11 @@ interface JsonDocsComponent {
|
|
|
394
394
|
* A deprecation reason/description found following a `@deprecated` tag
|
|
395
395
|
*/
|
|
396
396
|
deprecation?: string;
|
|
397
|
+
/**
|
|
398
|
+
* `true` if this is a "CSS-only component"
|
|
399
|
+
* discovered in .css file via `@component`-marked JSDoc block
|
|
400
|
+
*/
|
|
401
|
+
cssOnly?: boolean;
|
|
397
402
|
}
|
|
398
403
|
interface JsonDocsDependencyGraph {
|
|
399
404
|
[tagName: string]: string[];
|
|
@@ -553,6 +558,16 @@ interface JsonDocsStyle {
|
|
|
553
558
|
* The annotation used in the JSDoc of the style (e.g. `@prop`)
|
|
554
559
|
*/
|
|
555
560
|
annotation: string;
|
|
561
|
+
/**
|
|
562
|
+
* The CSS `syntax` descriptor for a custom property, if it was registered via a native
|
|
563
|
+
* `@property` at-rule (e.g. `"<length>"`).
|
|
564
|
+
*/
|
|
565
|
+
syntax?: string;
|
|
566
|
+
/**
|
|
567
|
+
* The `initial-value` descriptor for a custom property, if it was registered via a native
|
|
568
|
+
* `@property` at-rule.
|
|
569
|
+
*/
|
|
570
|
+
default?: string;
|
|
556
571
|
/**
|
|
557
572
|
* The mode associated with the style
|
|
558
573
|
*/
|
|
@@ -639,9 +654,19 @@ interface StyleDoc {
|
|
|
639
654
|
* The Stencil style-mode that is associated with this property.
|
|
640
655
|
*/
|
|
641
656
|
mode: string | undefined;
|
|
657
|
+
/**
|
|
658
|
+
* The CSS `syntax` descriptor, if this property was registered via a native `@property` at-rule.
|
|
659
|
+
*/
|
|
660
|
+
syntax?: string;
|
|
661
|
+
/**
|
|
662
|
+
* The `initial-value` descriptor, if this property was registered via a native `@property` at-rule.
|
|
663
|
+
*/
|
|
664
|
+
default?: string;
|
|
642
665
|
}
|
|
643
666
|
//#endregion
|
|
644
667
|
//#region src/declarations/stencil-private.d.ts
|
|
668
|
+
/** Build-time virtual `@import`s a `global-style` input can use to place Stencil-generated CSS. */
|
|
669
|
+
type StencilVirtualImport = 'stencil-hydrate' | 'stencil-component-globals' | 'stencil-css-components';
|
|
645
670
|
interface SourceMap$1 {
|
|
646
671
|
file: string;
|
|
647
672
|
mappings: string;
|
|
@@ -780,6 +805,7 @@ interface BuildCtx {
|
|
|
780
805
|
esmComponentBundle: ReadonlyArray<BundleModule>;
|
|
781
806
|
commonJsComponentBundle: ReadonlyArray<BundleModule>;
|
|
782
807
|
components: ComponentCompilerMeta[];
|
|
808
|
+
cssOnlyComponents: ComponentCompilerMeta[];
|
|
783
809
|
componentGraph: Map<string, string[]>;
|
|
784
810
|
config: ValidatedConfig;
|
|
785
811
|
createTimeSpan(msg: string, debug?: boolean): LoggerTimeSpan;
|
|
@@ -828,6 +854,9 @@ interface BuildCtx {
|
|
|
828
854
|
*/
|
|
829
855
|
stylesPromise: Promise<string>;
|
|
830
856
|
stylesUpdated: BuildStyleUpdate[];
|
|
857
|
+
globalStylesUpdated: BuildGlobalStyleLinkUpdate[];
|
|
858
|
+
/** Absolute path of the generated `{fsNamespace}.css`, when this build emitted one */
|
|
859
|
+
stencilCssFile?: string;
|
|
831
860
|
timeSpan: LoggerTimeSpan;
|
|
832
861
|
timestamp: string;
|
|
833
862
|
transpileBuildCount: number;
|
|
@@ -840,6 +869,14 @@ interface BuildStyleUpdate {
|
|
|
840
869
|
styleText: string;
|
|
841
870
|
styleMode: string;
|
|
842
871
|
}
|
|
872
|
+
/**
|
|
873
|
+
* A live-reload update for a `global-style` output target's CSS, matched on
|
|
874
|
+
* the client by `fileName` against the `<link>`
|
|
875
|
+
*/
|
|
876
|
+
interface BuildGlobalStyleLinkUpdate {
|
|
877
|
+
fileName: string;
|
|
878
|
+
styleText: string;
|
|
879
|
+
}
|
|
843
880
|
type BuildTask = any;
|
|
844
881
|
interface CompilerBuildStats {
|
|
845
882
|
timestamp: string;
|
|
@@ -981,6 +1018,12 @@ interface CompilerCtx {
|
|
|
981
1018
|
cssModuleImports: Map<string, string[]>;
|
|
982
1019
|
/** Cache of built global styles, keyed by input file path */
|
|
983
1020
|
globalStyleCache: Map<string, string>;
|
|
1021
|
+
/** Cache of discovered CSS-only components from the last scan, keyed by absolute .css file path */
|
|
1022
|
+
cssOnlyComponentsCache: Map<string, ComponentCompilerMeta[]>;
|
|
1023
|
+
/** Contents of the last auto-placed `stencil-*` CSS, used to detect changes for HMR */
|
|
1024
|
+
stencilCss?: string;
|
|
1025
|
+
/** Virtual imports found in each built global style (post-preprocessing), keyed by input path */
|
|
1026
|
+
globalStyleVirtualImports: Map<string, Set<StencilVirtualImport>>;
|
|
984
1027
|
collections: CollectionCompilerMeta[];
|
|
985
1028
|
compilerOptions: any;
|
|
986
1029
|
events: BuildEvents;
|
|
@@ -1126,7 +1169,7 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
|
|
|
1126
1169
|
* Custom states to initialize on the ElementInternals.states CustomStateSet.
|
|
1127
1170
|
* These are defined via @AttachInternals({ states: {...} }).
|
|
1128
1171
|
*/
|
|
1129
|
-
attachInternalsCustomStates:
|
|
1172
|
+
attachInternalsCustomStates: JsonDocsCustomState[];
|
|
1130
1173
|
componentClassName: string;
|
|
1131
1174
|
/**
|
|
1132
1175
|
* A list of web component tag names that are either:
|
|
@@ -1196,7 +1239,7 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
|
|
|
1196
1239
|
sourceFilePath: string;
|
|
1197
1240
|
sourceMapPath: string;
|
|
1198
1241
|
states: ComponentCompilerState[];
|
|
1199
|
-
styleDocs:
|
|
1242
|
+
styleDocs: StyleDoc[];
|
|
1200
1243
|
styles: StyleCompiler[];
|
|
1201
1244
|
globalStyles: ComponentGlobalStyle[];
|
|
1202
1245
|
tagName: string;
|
|
@@ -1399,20 +1442,6 @@ interface ComponentCompilerState {
|
|
|
1399
1442
|
* Custom states are exposed via the ElementInternals.states CustomStateSet
|
|
1400
1443
|
* and can be targeted with the CSS :state() pseudo-class.
|
|
1401
1444
|
*/
|
|
1402
|
-
interface ComponentCompilerCustomState {
|
|
1403
|
-
/**
|
|
1404
|
-
* The name of the custom state (without dashes)
|
|
1405
|
-
*/
|
|
1406
|
-
name: string;
|
|
1407
|
-
/**
|
|
1408
|
-
* The initial value of the state
|
|
1409
|
-
*/
|
|
1410
|
-
initialValue: boolean;
|
|
1411
|
-
/**
|
|
1412
|
-
* Optional JSDoc description for the state
|
|
1413
|
-
*/
|
|
1414
|
-
docs: string;
|
|
1415
|
-
}
|
|
1416
1445
|
/**
|
|
1417
1446
|
* Representation of JSDoc that is pulled off a node in the AST
|
|
1418
1447
|
*/
|
|
@@ -1424,44 +1453,7 @@ interface CompilerJsDoc {
|
|
|
1424
1453
|
/**
|
|
1425
1454
|
* Tags included in the JSDoc
|
|
1426
1455
|
*/
|
|
1427
|
-
tags:
|
|
1428
|
-
}
|
|
1429
|
-
/**
|
|
1430
|
-
* Representation of a tag that exists in a JSDoc
|
|
1431
|
-
*/
|
|
1432
|
-
interface CompilerJsDocTagInfo {
|
|
1433
|
-
/**
|
|
1434
|
-
* The name of the tag - e.g. `@deprecated`
|
|
1435
|
-
*/
|
|
1436
|
-
name: string;
|
|
1437
|
-
/**
|
|
1438
|
-
* Additional text that is associated with the tag - e.g. `@deprecated use v2 of this API`
|
|
1439
|
-
*/
|
|
1440
|
-
text?: string;
|
|
1441
|
-
}
|
|
1442
|
-
/**
|
|
1443
|
-
* The (internal) representation of a CSS block comment in a CSS, Sass, etc. file. This data structure is used during
|
|
1444
|
-
* the initial compilation phases of Stencil, as a piece of {@link ComponentCompilerMeta}.
|
|
1445
|
-
*/
|
|
1446
|
-
interface CompilerStyleDoc {
|
|
1447
|
-
/**
|
|
1448
|
-
* The name of the CSS property
|
|
1449
|
-
*/
|
|
1450
|
-
name: string;
|
|
1451
|
-
/**
|
|
1452
|
-
* The user-defined description of the CSS property
|
|
1453
|
-
*/
|
|
1454
|
-
docs: string;
|
|
1455
|
-
/**
|
|
1456
|
-
* The JSDoc-style annotation (e.g. `@prop`) that was used in the block comment to detect the comment.
|
|
1457
|
-
* Used to inform Stencil where the start of a new property's description starts (and where the previous description
|
|
1458
|
-
* ends).
|
|
1459
|
-
*/
|
|
1460
|
-
annotation: 'prop';
|
|
1461
|
-
/**
|
|
1462
|
-
* The Stencil style-mode that is associated with this property.
|
|
1463
|
-
*/
|
|
1464
|
-
mode: string;
|
|
1456
|
+
tags: JsonDocsTag[];
|
|
1465
1457
|
}
|
|
1466
1458
|
interface CompilerAssetDir {
|
|
1467
1459
|
absolutePath?: string;
|
|
@@ -1801,6 +1793,15 @@ interface StencilConfig {
|
|
|
1801
1793
|
* whenever a config file is present - set this explicitly to opt an existing project in or out.
|
|
1802
1794
|
*/
|
|
1803
1795
|
generateExportMaps?: boolean;
|
|
1796
|
+
/**
|
|
1797
|
+
* Set to `false` to disable discovery of "CSS-only components" - pure-CSS custom-element
|
|
1798
|
+
* definitions marked with a `@component` JSDoc tag in `.css` files under `srcDir`. No JS
|
|
1799
|
+
* class, never registered via `customElements.define()` - just a documented,
|
|
1800
|
+
* type-checked tag name and its CSS custom properties/attribute variants.
|
|
1801
|
+
*
|
|
1802
|
+
* Defaults to `true`.
|
|
1803
|
+
*/
|
|
1804
|
+
enableCssOnlyComponents?: boolean;
|
|
1804
1805
|
/**
|
|
1805
1806
|
* The namespace config is a string representing a namespace for the app.
|
|
1806
1807
|
* For apps that are not meant to be a library of reusable components,
|
|
@@ -3131,6 +3132,7 @@ interface CompilerBuildResults {
|
|
|
3131
3132
|
buildId: number;
|
|
3132
3133
|
componentGraph?: BuildResultsComponentGraph;
|
|
3133
3134
|
components: ComponentCompilerMeta[];
|
|
3135
|
+
cssOnlyComponents: ComponentCompilerMeta[];
|
|
3134
3136
|
diagnostics: Diagnostic[];
|
|
3135
3137
|
dirsAdded: string[];
|
|
3136
3138
|
dirsDeleted: string[];
|
|
@@ -3147,6 +3149,15 @@ interface CompilerBuildResults {
|
|
|
3147
3149
|
namespace: string;
|
|
3148
3150
|
fsNamespace: string;
|
|
3149
3151
|
outputs: BuildOutput[];
|
|
3152
|
+
/**
|
|
3153
|
+
* Absolute paths to every global stylesheet, in cascade order: each `global-style` output
|
|
3154
|
+
* target's compiled CSS in the order those targets are declared in `config.outputTargets` - or,
|
|
3155
|
+
* with none configured, the generated `{fsNamespace}.css` holding Stencil's auto-placed CSS (when
|
|
3156
|
+
* emitted). Unlike `outputs`, which groups files by type and sorts them alphabetically, this
|
|
3157
|
+
* preserves author-intended order for consumers like the dev-server's auto-generated component
|
|
3158
|
+
* preview.
|
|
3159
|
+
*/
|
|
3160
|
+
globalStyleFiles: string[];
|
|
3150
3161
|
rootDir: string;
|
|
3151
3162
|
srcDir: string;
|
|
3152
3163
|
timestamp: string;
|
|
@@ -3162,6 +3173,7 @@ interface HotModuleReplacement {
|
|
|
3162
3173
|
componentsUpdated?: string[];
|
|
3163
3174
|
excludeHmr?: string[];
|
|
3164
3175
|
externalStylesUpdated?: string[];
|
|
3176
|
+
globalStylesUpdated?: HmrGlobalStyleUpdate[];
|
|
3165
3177
|
imagesUpdated?: string[];
|
|
3166
3178
|
indexHtmlUpdated?: boolean;
|
|
3167
3179
|
inlineStylesUpdated?: HmrStyleUpdate[];
|
|
@@ -3176,6 +3188,15 @@ interface HmrStyleUpdate {
|
|
|
3176
3188
|
styleTag: string;
|
|
3177
3189
|
styleText: string;
|
|
3178
3190
|
}
|
|
3191
|
+
/**
|
|
3192
|
+
* A live-reload update for a `global-style` output target's CSS. Applied on
|
|
3193
|
+
* the client by matching `fileName` against the `<link>` that loads it and
|
|
3194
|
+
* inserting/updating an adjacent `<style>` override
|
|
3195
|
+
*/
|
|
3196
|
+
interface HmrGlobalStyleUpdate {
|
|
3197
|
+
fileName: string;
|
|
3198
|
+
styleText: string;
|
|
3199
|
+
}
|
|
3179
3200
|
type BuildOnEventRemove = () => boolean;
|
|
3180
3201
|
interface BuildEvents extends BuildOnEvents, BuildEmitEvents {
|
|
3181
3202
|
unsubscribeAll(): void;
|
|
@@ -3936,10 +3957,8 @@ interface OutputTargetStandalone extends OutputTargetBaseNext {
|
|
|
3936
3957
|
type: 'standalone';
|
|
3937
3958
|
empty?: boolean;
|
|
3938
3959
|
/**
|
|
3939
|
-
*
|
|
3940
|
-
*
|
|
3941
|
-
* 2. File names are not hashed.
|
|
3942
|
-
* 3. File minification will follow the behavior defined at the root of the Stencil config.
|
|
3960
|
+
* When `true`, all `@stencil/core/*` module references are treated as external
|
|
3961
|
+
* during bundling rather than being included in the generated output.
|
|
3943
3962
|
*
|
|
3944
3963
|
* @default false
|
|
3945
3964
|
*/
|
|
@@ -4464,6 +4483,12 @@ interface TranspileOptions {
|
|
|
4464
4483
|
* that the specified flags take effect for this component at runtime.
|
|
4465
4484
|
*/
|
|
4466
4485
|
buildOverrides?: BuildOverrides;
|
|
4486
|
+
/**
|
|
4487
|
+
* When `true`, a `.css`/`.scss` transpile also collects CSS custom-property docs
|
|
4488
|
+
* onto {@link TranspileResults.styleDocs}. Off by default, since it costs an extra parse
|
|
4489
|
+
* of the style text.
|
|
4490
|
+
*/
|
|
4491
|
+
docs?: boolean;
|
|
4467
4492
|
}
|
|
4468
4493
|
/**
|
|
4469
4494
|
* Keys of {@link BuildConditionals} that can be meaningfully overridden at
|
|
@@ -4489,6 +4514,7 @@ interface TranspileResults {
|
|
|
4489
4514
|
inputFilePath: string;
|
|
4490
4515
|
map: any;
|
|
4491
4516
|
outputFilePath: string;
|
|
4517
|
+
styleDocs?: StyleDoc[];
|
|
4492
4518
|
}
|
|
4493
4519
|
interface TransformOptions {
|
|
4494
4520
|
coreImportPath: string;
|
|
@@ -4533,4 +4559,4 @@ interface CliInitOptions {
|
|
|
4533
4559
|
sys: CompilerSystem;
|
|
4534
4560
|
}
|
|
4535
4561
|
//#endregion
|
|
4536
|
-
export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, 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, DocsReadmeCustomColumn, 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, ModeConfig, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsAgentSkill, 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 };
|
|
4562
|
+
export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, 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, DocsReadmeCustomColumn, FsWatchResults, HistoryApiFallback, HmrGlobalStyleUpdate, 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, ModeConfig, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsAgentSkill, 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 };
|
|
@@ -264,6 +264,11 @@ interface JsonDocsComponent {
|
|
|
264
264
|
* A deprecation reason/description found following a `@deprecated` tag
|
|
265
265
|
*/
|
|
266
266
|
deprecation?: string;
|
|
267
|
+
/**
|
|
268
|
+
* `true` if this is a "CSS-only component"
|
|
269
|
+
* discovered in .css file via `@component`-marked JSDoc block
|
|
270
|
+
*/
|
|
271
|
+
cssOnly?: boolean;
|
|
267
272
|
}
|
|
268
273
|
interface JsonDocsDependencyGraph {
|
|
269
274
|
[tagName: string]: string[];
|
|
@@ -423,6 +428,16 @@ interface JsonDocsStyle {
|
|
|
423
428
|
* The annotation used in the JSDoc of the style (e.g. `@prop`)
|
|
424
429
|
*/
|
|
425
430
|
annotation: string;
|
|
431
|
+
/**
|
|
432
|
+
* The CSS `syntax` descriptor for a custom property, if it was registered via a native
|
|
433
|
+
* `@property` at-rule (e.g. `"<length>"`).
|
|
434
|
+
*/
|
|
435
|
+
syntax?: string;
|
|
436
|
+
/**
|
|
437
|
+
* The `initial-value` descriptor for a custom property, if it was registered via a native
|
|
438
|
+
* `@property` at-rule.
|
|
439
|
+
*/
|
|
440
|
+
default?: string;
|
|
426
441
|
/**
|
|
427
442
|
* The mode associated with the style
|
|
428
443
|
*/
|
|
@@ -509,6 +524,14 @@ interface StyleDoc {
|
|
|
509
524
|
* The Stencil style-mode that is associated with this property.
|
|
510
525
|
*/
|
|
511
526
|
mode: string | undefined;
|
|
527
|
+
/**
|
|
528
|
+
* The CSS `syntax` descriptor, if this property was registered via a native `@property` at-rule.
|
|
529
|
+
*/
|
|
530
|
+
syntax?: string;
|
|
531
|
+
/**
|
|
532
|
+
* The `initial-value` descriptor, if this property was registered via a native `@property` at-rule.
|
|
533
|
+
*/
|
|
534
|
+
default?: string;
|
|
512
535
|
}
|
|
513
536
|
//#endregion
|
|
514
537
|
export { JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, StyleDoc };
|
|
@@ -58,7 +58,7 @@ interface ComponentOptions {
|
|
|
58
58
|
/**
|
|
59
59
|
* Relative URL to an external stylesheet providing document-level styles for this component.
|
|
60
60
|
* Unlike `styleUrl`, these styles are not scoped to shadow/scoped DOM - they are collected
|
|
61
|
-
* at build time and injected wherever `@import "stencil-globals"` appears in a global stylesheet.
|
|
61
|
+
* at build time and injected wherever `@import "stencil-component-globals"` appears in a global stylesheet.
|
|
62
62
|
*
|
|
63
63
|
* Useful for
|
|
64
64
|
* - pre-first-js-render styles (combatting cumulative layout shift)
|
|
@@ -73,7 +73,7 @@ interface ComponentOptions {
|
|
|
73
73
|
globalStyleUrl?: string;
|
|
74
74
|
/**
|
|
75
75
|
* Inline CSS string providing document-level styles for this component.
|
|
76
|
-
* Collected at build time and injected wherever `@import "stencil-globals"` appears.
|
|
76
|
+
* Collected at build time and injected wherever `@import "stencil-component-globals"` appears.
|
|
77
77
|
* @see globalStyleUrl
|
|
78
78
|
*/
|
|
79
79
|
globalStyle?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as UserBuildConditionals, Kn as ErrorHandler, Qn as TagTransformer, Yn as RafCallback, Zn as ResolutionHandler, d as RuntimeRef, er as VNode, o as HostElement, qn as FunctionalComponent, t as ChildType, u as PropsType } from "./index-BilaSOF5.mjs";
|
|
2
2
|
//#region src/client/client-build.d.ts
|
|
3
3
|
declare const Build: UserBuildConditionals;
|
|
4
4
|
//#endregion
|
|
@@ -37,7 +37,7 @@ declare const getShadowRoot: (element: HTMLElement) => ShadowRoot | null;
|
|
|
37
37
|
declare const Fragment: FunctionalComponent;
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/runtime/mode.d.ts
|
|
40
|
-
declare const setMode: (handler: ResolutionHandler) =>
|
|
40
|
+
declare const setMode: (handler: ResolutionHandler) => void;
|
|
41
41
|
declare const getMode: (ref: RuntimeRef) => string;
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/runtime/render.d.ts
|