@stencil/core 5.0.0-beta.3 → 5.0.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-data/index.d.ts +1 -1
- package/dist/{client-BRu0GtRn.mjs → client-BYvfR_Hx.mjs} +127 -68
- package/dist/compiler/browser.d.ts +114 -81
- package/dist/compiler/browser.js +733 -336
- package/dist/compiler/index.d.mts +110 -2
- package/dist/compiler/index.mjs +3 -3
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/{compiler-BPgV6bA4.mjs → compiler-6RhuOkQ0.mjs} +4829 -2895
- package/dist/declarations/stencil-public-compiler.d.ts +152 -129
- package/dist/declarations/stencil-public-docs.d.ts +23 -0
- package/dist/declarations/stencil-public-runtime.d.ts +60 -58
- package/dist/{index-DmHmu3y0.d.mts → index-BGUOG9Wc.d.mts} +6 -2
- package/dist/{index-BXAcVN2j.d.ts → index-BHciXst1.d.ts} +57 -55
- package/dist/{index-BopBfjPu.d.mts → index-BogZpjP2.d.mts} +150 -127
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +6 -0
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-75gQKkFz.mjs → node-CvPPhnWO.mjs} +41 -47
- package/dist/runtime/client/lazy.js +252 -189
- package/dist/runtime/client/runtime.d.ts +71 -66
- package/dist/runtime/client/runtime.js +252 -189
- package/dist/runtime/index.d.ts +4 -5
- package/dist/runtime/index.js +250 -187
- package/dist/runtime/server/index.d.mts +11 -11
- package/dist/runtime/server/index.mjs +302 -228
- package/dist/runtime/server/runner.d.mts +4 -4
- package/dist/runtime/server/runner.mjs +82 -54
- package/dist/signals/index.d.ts +11 -2
- package/dist/signals/index.js +14 -35
- 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 +136 -120
- package/dist/testing/index.mjs +259 -201
- package/package.json +8 -4
|
@@ -1111,6 +1111,11 @@ interface JsonDocsComponent {
|
|
|
1111
1111
|
* A deprecation reason/description found following a `@deprecated` tag
|
|
1112
1112
|
*/
|
|
1113
1113
|
deprecation?: string;
|
|
1114
|
+
/**
|
|
1115
|
+
* `true` if this is a "CSS-only component"
|
|
1116
|
+
* discovered in .css file via `@component`-marked JSDoc block
|
|
1117
|
+
*/
|
|
1118
|
+
cssOnly?: boolean;
|
|
1114
1119
|
}
|
|
1115
1120
|
interface JsonDocsDependencyGraph {
|
|
1116
1121
|
[tagName: string]: string[];
|
|
@@ -1270,6 +1275,16 @@ interface JsonDocsStyle {
|
|
|
1270
1275
|
* The annotation used in the JSDoc of the style (e.g. `@prop`)
|
|
1271
1276
|
*/
|
|
1272
1277
|
annotation: string;
|
|
1278
|
+
/**
|
|
1279
|
+
* The CSS `syntax` descriptor for a custom property, if it was registered via a native
|
|
1280
|
+
* `@property` at-rule (e.g. `"<length>"`).
|
|
1281
|
+
*/
|
|
1282
|
+
syntax?: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* The `initial-value` descriptor for a custom property, if it was registered via a native
|
|
1285
|
+
* `@property` at-rule.
|
|
1286
|
+
*/
|
|
1287
|
+
default?: string;
|
|
1273
1288
|
/**
|
|
1274
1289
|
* The mode associated with the style
|
|
1275
1290
|
*/
|
|
@@ -1356,6 +1371,14 @@ interface StyleDoc {
|
|
|
1356
1371
|
* The Stencil style-mode that is associated with this property.
|
|
1357
1372
|
*/
|
|
1358
1373
|
mode: string | undefined;
|
|
1374
|
+
/**
|
|
1375
|
+
* The CSS `syntax` descriptor, if this property was registered via a native `@property` at-rule.
|
|
1376
|
+
*/
|
|
1377
|
+
syntax?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* The `initial-value` descriptor, if this property was registered via a native `@property` at-rule.
|
|
1380
|
+
*/
|
|
1381
|
+
default?: string;
|
|
1359
1382
|
}
|
|
1360
1383
|
//#endregion
|
|
1361
1384
|
//#region src/declarations/stencil-public-runtime.d.ts
|
|
@@ -1412,7 +1435,7 @@ interface ComponentOptions {
|
|
|
1412
1435
|
/**
|
|
1413
1436
|
* Relative URL to an external stylesheet providing document-level styles for this component.
|
|
1414
1437
|
* Unlike `styleUrl`, these styles are not scoped to shadow/scoped DOM - they are collected
|
|
1415
|
-
* at build time and injected wherever `@import "stencil-globals"` appears in a global stylesheet.
|
|
1438
|
+
* at build time and injected wherever `@import "stencil-component-globals"` appears in a global stylesheet.
|
|
1416
1439
|
*
|
|
1417
1440
|
* Useful for
|
|
1418
1441
|
* - pre-first-js-render styles (combatting cumulative layout shift)
|
|
@@ -1427,7 +1450,7 @@ interface ComponentOptions {
|
|
|
1427
1450
|
globalStyleUrl?: string;
|
|
1428
1451
|
/**
|
|
1429
1452
|
* Inline CSS string providing document-level styles for this component.
|
|
1430
|
-
* Collected at build time and injected wherever `@import "stencil-globals"` appears.
|
|
1453
|
+
* Collected at build time and injected wherever `@import "stencil-component-globals"` appears.
|
|
1431
1454
|
* @see globalStyleUrl
|
|
1432
1455
|
*/
|
|
1433
1456
|
globalStyle?: string;
|
|
@@ -1787,6 +1810,15 @@ interface StencilConfig {
|
|
|
1787
1810
|
* @default false
|
|
1788
1811
|
*/
|
|
1789
1812
|
generateExportMaps?: boolean;
|
|
1813
|
+
/**
|
|
1814
|
+
* Set to `false` to disable discovery of "CSS-only components" - pure-CSS custom-element
|
|
1815
|
+
* definitions marked with a `@component` JSDoc tag in `.css` files under `srcDir`. No JS
|
|
1816
|
+
* class, never registered via `customElements.define()` - just a documented,
|
|
1817
|
+
* type-checked tag name and its CSS custom properties/attribute variants.
|
|
1818
|
+
*
|
|
1819
|
+
* Defaults to `true`.
|
|
1820
|
+
*/
|
|
1821
|
+
enableCssOnlyComponents?: boolean;
|
|
1790
1822
|
/**
|
|
1791
1823
|
* The namespace config is a string representing a namespace for the app.
|
|
1792
1824
|
* For apps that are not meant to be a library of reusable components,
|
|
@@ -1829,7 +1861,7 @@ interface StencilConfig {
|
|
|
1829
1861
|
*/
|
|
1830
1862
|
transformAliasedImportPaths?: boolean;
|
|
1831
1863
|
/**
|
|
1832
|
-
* Passes custom configuration
|
|
1864
|
+
* Passes custom configuration to Rolldown's module resolution (its `resolve` option), e.g. `alias`.
|
|
1833
1865
|
* For further information: https://stenciljs.com/docs/module-bundling
|
|
1834
1866
|
*/
|
|
1835
1867
|
nodeResolve?: NodeResolveConfig;
|
|
@@ -2109,11 +2141,6 @@ interface Config extends StencilConfig {
|
|
|
2109
2141
|
tsWatchOptions?: any;
|
|
2110
2142
|
_isValidated?: boolean;
|
|
2111
2143
|
_isTesting?: boolean;
|
|
2112
|
-
/**
|
|
2113
|
-
* Internal flag set when --docs CLI flag is used.
|
|
2114
|
-
* Forces docs output targets to build even in dev mode.
|
|
2115
|
-
*/
|
|
2116
|
-
_docsFlag?: boolean;
|
|
2117
2144
|
/**
|
|
2118
2145
|
* Whether running in a CI environment (disables interactive features, adjusts worker count)
|
|
2119
2146
|
*/
|
|
@@ -2633,7 +2660,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
2633
2660
|
* Note that this is "approximate", in that HTML may often not be able
|
|
2634
2661
|
* to be split at an exact line width. Additionally, new lines created
|
|
2635
2662
|
* is where HTML naturally already has whitespace, such as before an
|
|
2636
|
-
* attribute or spaces between words. Defaults to `100
|
|
2663
|
+
* attribute or spaces between words. Defaults to no wrapping (`100` when prerendering).
|
|
2637
2664
|
*/
|
|
2638
2665
|
approximateLineWidth?: number;
|
|
2639
2666
|
/**
|
|
@@ -2651,12 +2678,12 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
2651
2678
|
prettyHtml?: boolean;
|
|
2652
2679
|
/**
|
|
2653
2680
|
* Remove quotes from attribute values when possible.
|
|
2654
|
-
* Defaults to `true
|
|
2681
|
+
* Defaults to `false` (`true` when prerendering).
|
|
2655
2682
|
*/
|
|
2656
2683
|
removeAttributeQuotes?: boolean;
|
|
2657
2684
|
/**
|
|
2658
2685
|
* Remove the `=""` from standardized `boolean` attributes,
|
|
2659
|
-
* such as `hidden` or `checked`. Defaults to `true
|
|
2686
|
+
* such as `hidden` or `checked`. Defaults to `false` (`true` when prerendering).
|
|
2660
2687
|
*/
|
|
2661
2688
|
removeBooleanAttributeQuotes?: boolean;
|
|
2662
2689
|
/**
|
|
@@ -2665,7 +2692,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
2665
2692
|
*/
|
|
2666
2693
|
removeEmptyAttributes?: boolean;
|
|
2667
2694
|
/**
|
|
2668
|
-
* Remove HTML comments. Defaults to `true
|
|
2695
|
+
* Remove HTML comments. Defaults to `false` (`true` when prerendering).
|
|
2669
2696
|
*/
|
|
2670
2697
|
removeHtmlComments?: boolean;
|
|
2671
2698
|
/**
|
|
@@ -2764,7 +2791,7 @@ interface CompilerSystem {
|
|
|
2764
2791
|
name: 'node' | 'in-memory';
|
|
2765
2792
|
version: string;
|
|
2766
2793
|
events?: BuildEvents;
|
|
2767
|
-
details
|
|
2794
|
+
details: SystemDetails;
|
|
2768
2795
|
/**
|
|
2769
2796
|
* Add a callback which will be ran when destroy() is called.
|
|
2770
2797
|
*/
|
|
@@ -2777,14 +2804,15 @@ interface CompilerSystem {
|
|
|
2777
2804
|
* SYNC! Always returns a boolean, does not throw.
|
|
2778
2805
|
*/
|
|
2779
2806
|
accessSync(p: string): boolean;
|
|
2780
|
-
applyGlobalPatch?(fromDir: string): Promise<void>;
|
|
2781
2807
|
applyPrerenderGlobalPatch?(opts: {
|
|
2782
2808
|
devServerHostUrl: string;
|
|
2783
2809
|
window: any;
|
|
2784
2810
|
}): void;
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2811
|
+
/**
|
|
2812
|
+
* Check npm for a newer Stencil version. Resolves a function that logs the result.
|
|
2813
|
+
*/
|
|
2814
|
+
checkVersion(logger: Logger, currentVersion: string): Promise<() => void>;
|
|
2815
|
+
copy(copyTasks: Required<CopyTask>[], srcDir: string): Promise<CopyResults>;
|
|
2788
2816
|
/**
|
|
2789
2817
|
* Always returns a boolean if the files were copied or not. Does not throw.
|
|
2790
2818
|
*/
|
|
@@ -2809,7 +2837,7 @@ interface CompilerSystem {
|
|
|
2809
2837
|
/**
|
|
2810
2838
|
* Each platform has a different way to dynamically import modules.
|
|
2811
2839
|
*/
|
|
2812
|
-
dynamicImport
|
|
2840
|
+
dynamicImport(p: string): Promise<any>;
|
|
2813
2841
|
/**
|
|
2814
2842
|
* Creates the worker controller for the current system.
|
|
2815
2843
|
*
|
|
@@ -2823,20 +2851,14 @@ interface CompilerSystem {
|
|
|
2823
2851
|
* process.exit()
|
|
2824
2852
|
*/
|
|
2825
2853
|
exit(exitCode: number): Promise<void>;
|
|
2826
|
-
/**
|
|
2827
|
-
* Optionally provide a fetch() function rather than using the built-in fetch().
|
|
2828
|
-
* First arg is a url string or Request object (RequestInfo).
|
|
2829
|
-
* Second arg is the RequestInit. Returns the Response object
|
|
2830
|
-
*/
|
|
2831
|
-
fetch?(input: string | any, init?: any): Promise<any>;
|
|
2832
2854
|
/**
|
|
2833
2855
|
* Generates a sha1 digest encoded as HEX
|
|
2834
2856
|
*/
|
|
2835
|
-
generateContentHash
|
|
2857
|
+
generateContentHash(content: string | any, length?: number): Promise<string>;
|
|
2836
2858
|
/**
|
|
2837
2859
|
* Generates a sha1 digest encoded as HEX from a file path
|
|
2838
2860
|
*/
|
|
2839
|
-
generateFileHash
|
|
2861
|
+
generateFileHash(filePath: string | any, length?: number): Promise<string>;
|
|
2840
2862
|
/**
|
|
2841
2863
|
* Get the current directory.
|
|
2842
2864
|
*/
|
|
@@ -2845,7 +2867,6 @@ interface CompilerSystem {
|
|
|
2845
2867
|
* The compiler's executing path.
|
|
2846
2868
|
*/
|
|
2847
2869
|
getCompilerExecutingPath(): string;
|
|
2848
|
-
getEnvironmentVar?(key: string): string;
|
|
2849
2870
|
/**
|
|
2850
2871
|
* Gets the absolute file path when for a dependency module.
|
|
2851
2872
|
*/
|
|
@@ -2884,11 +2905,7 @@ interface CompilerSystem {
|
|
|
2884
2905
|
* Normalize file system path.
|
|
2885
2906
|
*/
|
|
2886
2907
|
normalizePath(p: string): string;
|
|
2887
|
-
onProcessInterrupt
|
|
2888
|
-
parseYarnLockFile?: (content: string) => {
|
|
2889
|
-
type: 'success' | 'merge' | 'conflict';
|
|
2890
|
-
object: any;
|
|
2891
|
-
};
|
|
2908
|
+
onProcessInterrupt(cb: () => void): void;
|
|
2892
2909
|
platformPath: PlatformPath;
|
|
2893
2910
|
/**
|
|
2894
2911
|
* All return paths are full normalized paths, not just the basenames. Always returns an array, does not throw.
|
|
@@ -2924,6 +2941,9 @@ interface CompilerSystem {
|
|
|
2924
2941
|
* Rename old path to new path. Does not throw.
|
|
2925
2942
|
*/
|
|
2926
2943
|
rename(oldPath: string, newPath: string): Promise<CompilerSystemRenameResults>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Assigned by the compiler. Used by plugins (e.g. `@stencil/sass`) to resolve `~` imports.
|
|
2946
|
+
*/
|
|
2927
2947
|
resolveModuleId?(opts: ResolveModuleIdOptions): Promise<ResolveModuleIdResults>;
|
|
2928
2948
|
resolvePath(p: string): string;
|
|
2929
2949
|
/**
|
|
@@ -3117,6 +3137,7 @@ interface CompilerBuildResults {
|
|
|
3117
3137
|
buildId: number;
|
|
3118
3138
|
componentGraph?: BuildResultsComponentGraph;
|
|
3119
3139
|
components: ComponentCompilerMeta[];
|
|
3140
|
+
cssOnlyComponents: ComponentCompilerMeta[];
|
|
3120
3141
|
diagnostics: Diagnostic$1[];
|
|
3121
3142
|
dirsAdded: string[];
|
|
3122
3143
|
dirsDeleted: string[];
|
|
@@ -3133,6 +3154,15 @@ interface CompilerBuildResults {
|
|
|
3133
3154
|
namespace: string;
|
|
3134
3155
|
fsNamespace: string;
|
|
3135
3156
|
outputs: BuildOutput[];
|
|
3157
|
+
/**
|
|
3158
|
+
* Absolute paths to every global stylesheet, in cascade order: each `global-style` output
|
|
3159
|
+
* target's compiled CSS in the order those targets are declared in `config.outputTargets` - or,
|
|
3160
|
+
* with none configured, the generated `{fsNamespace}.css` holding Stencil's auto-placed CSS (when
|
|
3161
|
+
* emitted). Unlike `outputs`, which groups files by type and sorts them alphabetically, this
|
|
3162
|
+
* preserves author-intended order for consumers like the dev-server's auto-generated component
|
|
3163
|
+
* preview.
|
|
3164
|
+
*/
|
|
3165
|
+
globalStyleFiles: string[];
|
|
3136
3166
|
rootDir: string;
|
|
3137
3167
|
srcDir: string;
|
|
3138
3168
|
timestamp: string;
|
|
@@ -3148,6 +3178,7 @@ interface HotModuleReplacement {
|
|
|
3148
3178
|
componentsUpdated?: string[];
|
|
3149
3179
|
excludeHmr?: string[];
|
|
3150
3180
|
externalStylesUpdated?: string[];
|
|
3181
|
+
globalStylesUpdated?: HmrGlobalStyleUpdate[];
|
|
3151
3182
|
imagesUpdated?: string[];
|
|
3152
3183
|
indexHtmlUpdated?: boolean;
|
|
3153
3184
|
inlineStylesUpdated?: HmrStyleUpdate[];
|
|
@@ -3162,6 +3193,15 @@ interface HmrStyleUpdate {
|
|
|
3162
3193
|
styleTag: string;
|
|
3163
3194
|
styleText: string;
|
|
3164
3195
|
}
|
|
3196
|
+
/**
|
|
3197
|
+
* A live-reload update for a `global-style` output target's CSS. Applied on
|
|
3198
|
+
* the client by matching `fileName` against the `<link>` that loads it and
|
|
3199
|
+
* inserting/updating an adjacent `<style>` override
|
|
3200
|
+
*/
|
|
3201
|
+
interface HmrGlobalStyleUpdate {
|
|
3202
|
+
fileName: string;
|
|
3203
|
+
styleText: string;
|
|
3204
|
+
}
|
|
3165
3205
|
type BuildOnEventRemove = () => boolean;
|
|
3166
3206
|
interface BuildEvents extends BuildOnEvents, BuildEmitEvents {
|
|
3167
3207
|
unsubscribeAll(): void;
|
|
@@ -3316,7 +3356,9 @@ interface CopyTask {
|
|
|
3316
3356
|
/**
|
|
3317
3357
|
* Additional glob patterns to exclude from the copy operation, merged with
|
|
3318
3358
|
* the built-in defaults: `__mocks__`, `__fixtures__`, `dist`, hidden dirs,
|
|
3319
|
-
* `.ds_store`, `.gitignore`, `desktop.ini`, `thumbs.db`.
|
|
3359
|
+
* `.ds_store`, `.gitignore`, `desktop.ini`, `thumbs.db`. For a directory
|
|
3360
|
+
* `src`, patterns match paths relative to that directory; an explicitly
|
|
3361
|
+
* named `src` file is never ignored.
|
|
3320
3362
|
*/
|
|
3321
3363
|
ignore?: string[];
|
|
3322
3364
|
/**
|
|
@@ -3554,7 +3596,7 @@ interface OutputTargetCollection extends OutputTargetBaseNext {
|
|
|
3554
3596
|
* When `true` this flag will transform aliased import paths defined in
|
|
3555
3597
|
* a project's `tsconfig.json` to relative import paths in the compiled output.
|
|
3556
3598
|
*
|
|
3557
|
-
* Paths will be left in aliased format if `false
|
|
3599
|
+
* Paths will be left in aliased format if `false`. Defaults to `true`.
|
|
3558
3600
|
*
|
|
3559
3601
|
* @example
|
|
3560
3602
|
* // tsconfig.json
|
|
@@ -3656,11 +3698,11 @@ interface OutputTargetGlobalStyle extends OutputTargetBaseNext {
|
|
|
3656
3698
|
* Controls whether this global stylesheet is injected into component shadow DOMs
|
|
3657
3699
|
* as a constructable stylesheet at runtime.
|
|
3658
3700
|
*
|
|
3659
|
-
* - `'none'
|
|
3701
|
+
* - `'none'`: Don't inject - stylesheet must be loaded externally (e.g., via `<link>`)
|
|
3660
3702
|
* - `'client'`: Inject only in client builds, not SSR (reduces SSR output size)
|
|
3661
3703
|
* - `'all'`: Inject in both client and SSR builds
|
|
3662
3704
|
*
|
|
3663
|
-
* @default 'none'
|
|
3705
|
+
* @default 'client' when the stylesheet comes from `globalStyle` (or an auto-detected `src/global.*`), 'none' when `input` is set
|
|
3664
3706
|
*/
|
|
3665
3707
|
inject?: 'none' | 'client' | 'all';
|
|
3666
3708
|
}
|
|
@@ -3718,6 +3760,10 @@ interface OutputTargetSsr extends OutputTargetBase {
|
|
|
3718
3760
|
*/
|
|
3719
3761
|
cjs?: boolean;
|
|
3720
3762
|
}
|
|
3763
|
+
/**
|
|
3764
|
+
* Compiles the SSR hydrate app to a WASM plugin (via `extism-js`/QuickJS-ng) that can run
|
|
3765
|
+
* outside of Node
|
|
3766
|
+
*/
|
|
3721
3767
|
interface OutputTargetSsrWasm extends OutputTargetBase {
|
|
3722
3768
|
type: 'ssr-wasm';
|
|
3723
3769
|
/** Output directory. @default 'dist/ssr-wasm' */
|
|
@@ -3828,9 +3874,11 @@ interface OutputTargetDocsCustomElementsManifest extends OutputTargetBase {
|
|
|
3828
3874
|
type: 'docs-custom-elements-manifest';
|
|
3829
3875
|
/**
|
|
3830
3876
|
* The file path where the custom-elements.json manifest will be written.
|
|
3831
|
-
* Defaults to 'custom-elements.json'
|
|
3877
|
+
* Defaults to 'dist/custom-elements.json'.
|
|
3878
|
+
*
|
|
3879
|
+
* The `customElements` field of the project's `package.json` is set to this path.
|
|
3832
3880
|
*/
|
|
3833
|
-
file
|
|
3881
|
+
file?: string;
|
|
3834
3882
|
strict?: boolean;
|
|
3835
3883
|
}
|
|
3836
3884
|
interface OutputTargetDocsCustom extends OutputTargetBase {
|
|
@@ -3855,7 +3903,7 @@ interface OutputTargetDocsAgentSkill extends OutputTargetBase {
|
|
|
3855
3903
|
/**
|
|
3856
3904
|
* The skill's name, used in the `SKILL.md` frontmatter.
|
|
3857
3905
|
*
|
|
3858
|
-
* Defaults to
|
|
3906
|
+
* Defaults to {@link Config.namespace}, lowercased, with anything other than letters and numbers replaced by `-`.
|
|
3859
3907
|
*/
|
|
3860
3908
|
name?: string;
|
|
3861
3909
|
/**
|
|
@@ -3918,10 +3966,8 @@ interface OutputTargetStandalone extends OutputTargetBaseNext {
|
|
|
3918
3966
|
type: 'standalone';
|
|
3919
3967
|
empty?: boolean;
|
|
3920
3968
|
/**
|
|
3921
|
-
*
|
|
3922
|
-
*
|
|
3923
|
-
* 2. File names are not hashed.
|
|
3924
|
-
* 3. File minification will follow the behavior defined at the root of the Stencil config.
|
|
3969
|
+
* When `true`, all `@stencil/core/*` module references are treated as external
|
|
3970
|
+
* during bundling rather than being included in the generated output.
|
|
3925
3971
|
*
|
|
3926
3972
|
* @default false
|
|
3927
3973
|
*/
|
|
@@ -3985,8 +4031,10 @@ interface OutputTargetBase {
|
|
|
3985
4031
|
* This improves dev build times by not generating production-only artifacts.
|
|
3986
4032
|
*
|
|
3987
4033
|
* Defaults vary by output target type:
|
|
3988
|
-
* - `loader-bundle`: `
|
|
3989
|
-
* - `standalone`: `true`
|
|
4034
|
+
* - `loader-bundle`: `true` (skips the npm distribution files; the browser bundle always builds)
|
|
4035
|
+
* - `standalone`: `true` if `loader-bundle` is also configured, otherwise `false`
|
|
4036
|
+
* - `types`, `collection`, `ssr-wasm`: `true` (skips in dev)
|
|
4037
|
+
* - `assets`, `global-style`: `false` (always runs)
|
|
3990
4038
|
* - `ssr`: `true` (skips in dev, unless `devServer.ssr` is enabled)
|
|
3991
4039
|
* - `docs-*`: `true` (skips in dev)
|
|
3992
4040
|
* - `custom`: `true` (skips in dev)
|
|
@@ -4181,10 +4229,6 @@ interface Diagnostic$1 {
|
|
|
4181
4229
|
relFilePath?: string | undefined;
|
|
4182
4230
|
type: string;
|
|
4183
4231
|
}
|
|
4184
|
-
interface CacheStorage {
|
|
4185
|
-
get(key: string): Promise<any>;
|
|
4186
|
-
set(key: string, value: any): Promise<void>;
|
|
4187
|
-
}
|
|
4188
4232
|
interface WorkerOptions {
|
|
4189
4233
|
maxConcurrentWorkers?: number;
|
|
4190
4234
|
maxConcurrentTasksPerWorker?: number;
|
|
@@ -4446,13 +4490,19 @@ interface TranspileOptions {
|
|
|
4446
4490
|
* that the specified flags take effect for this component at runtime.
|
|
4447
4491
|
*/
|
|
4448
4492
|
buildOverrides?: BuildOverrides;
|
|
4493
|
+
/**
|
|
4494
|
+
* When `true`, a `.css`/`.scss` transpile also collects CSS custom-property docs
|
|
4495
|
+
* onto {@link TranspileResults.styleDocs}. Off by default, since it costs an extra parse
|
|
4496
|
+
* of the style text.
|
|
4497
|
+
*/
|
|
4498
|
+
docs?: boolean;
|
|
4449
4499
|
}
|
|
4450
4500
|
/**
|
|
4451
4501
|
* Keys of {@link BuildConditionals} that can be meaningfully overridden at
|
|
4452
4502
|
* transpile time — config-driven flags that are not derived from component
|
|
4453
4503
|
* scanning or runtime environment detection.
|
|
4454
4504
|
*/
|
|
4455
|
-
type BuildOverrideKeys = 'hotModuleReplacement' | 'signalBacking' | 'vdomSignals' | 'lightDomPatches' | 'slotChildNodes' | 'slotCloneNode' | 'slotDomMutations' | 'slotTextContent' | 'lifecycleDOMEvents' | 'initializeNextTick';
|
|
4505
|
+
type BuildOverrideKeys = 'isDev' | 'isTesting' | 'hotModuleReplacement' | 'signalBacking' | 'vdomSignals' | 'lightDomPatches' | 'slotChildNodes' | 'slotCloneNode' | 'slotDomMutations' | 'slotTextContent' | 'lifecycleDOMEvents' | 'initializeNextTick';
|
|
4456
4506
|
/**
|
|
4457
4507
|
* Subset of Stencil's BUILD feature flags that can be overridden at transpile
|
|
4458
4508
|
* time. Derived from {@link BuildConditionals} via `Pick` so the field list
|
|
@@ -4471,6 +4521,7 @@ interface TranspileResults {
|
|
|
4471
4521
|
inputFilePath: string;
|
|
4472
4522
|
map: any;
|
|
4473
4523
|
outputFilePath: string;
|
|
4524
|
+
styleDocs?: StyleDoc[];
|
|
4474
4525
|
}
|
|
4475
4526
|
interface TransformOptions {
|
|
4476
4527
|
coreImportPath: string;
|
|
@@ -4514,8 +4565,35 @@ interface CliInitOptions {
|
|
|
4514
4565
|
logger: Logger;
|
|
4515
4566
|
sys: CompilerSystem;
|
|
4516
4567
|
}
|
|
4568
|
+
/**
|
|
4569
|
+
* A Stencil `resolveId`/`load`/`transform` plugin, as accepted by {@link StencilConfig.plugins}.
|
|
4570
|
+
*/
|
|
4571
|
+
interface Plugin$1 {
|
|
4572
|
+
name?: string;
|
|
4573
|
+
pluginType?: string;
|
|
4574
|
+
load?: (id: string, context: PluginCtx) => Promise<string> | string;
|
|
4575
|
+
resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
|
|
4576
|
+
transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
|
|
4577
|
+
}
|
|
4578
|
+
type PluginTransformResults = PluginTransformationDescriptor | string | null;
|
|
4579
|
+
interface PluginTransformationDescriptor {
|
|
4580
|
+
code?: string;
|
|
4581
|
+
map?: string;
|
|
4582
|
+
id?: string;
|
|
4583
|
+
diagnostics?: Diagnostic$1[];
|
|
4584
|
+
dependencies?: string[];
|
|
4585
|
+
}
|
|
4586
|
+
interface PluginCtx {
|
|
4587
|
+
config: Config;
|
|
4588
|
+
sys: CompilerSystem;
|
|
4589
|
+
fs: InMemoryFileSystem;
|
|
4590
|
+
cache: Cache;
|
|
4591
|
+
diagnostics: Diagnostic$1[];
|
|
4592
|
+
}
|
|
4517
4593
|
//#endregion
|
|
4518
4594
|
//#region src/declarations/stencil-private.d.ts
|
|
4595
|
+
/** Build-time virtual `@import`s a `global-style` input can use to place Stencil-generated CSS. */
|
|
4596
|
+
type StencilVirtualImport = 'stencil-hydrate' | 'stencil-component-globals' | 'stencil-css-components';
|
|
4519
4597
|
interface SourceMap$1 {
|
|
4520
4598
|
file: string;
|
|
4521
4599
|
mappings: string;
|
|
@@ -4654,6 +4732,7 @@ interface BuildCtx {
|
|
|
4654
4732
|
esmComponentBundle: ReadonlyArray<BundleModule>;
|
|
4655
4733
|
commonJsComponentBundle: ReadonlyArray<BundleModule>;
|
|
4656
4734
|
components: ComponentCompilerMeta[];
|
|
4735
|
+
cssOnlyComponents: ComponentCompilerMeta[];
|
|
4657
4736
|
componentGraph: Map<string, string[]>;
|
|
4658
4737
|
config: ValidatedConfig;
|
|
4659
4738
|
createTimeSpan(msg: string, debug?: boolean): LoggerTimeSpan;
|
|
@@ -4702,6 +4781,9 @@ interface BuildCtx {
|
|
|
4702
4781
|
*/
|
|
4703
4782
|
stylesPromise: Promise<string>;
|
|
4704
4783
|
stylesUpdated: BuildStyleUpdate[];
|
|
4784
|
+
globalStylesUpdated: BuildGlobalStyleLinkUpdate[];
|
|
4785
|
+
/** Absolute path of the generated `{fsNamespace}.css`, when this build emitted one */
|
|
4786
|
+
stencilCssFile?: string;
|
|
4705
4787
|
timeSpan: LoggerTimeSpan;
|
|
4706
4788
|
timestamp: string;
|
|
4707
4789
|
transpileBuildCount: number;
|
|
@@ -4714,6 +4796,14 @@ interface BuildStyleUpdate {
|
|
|
4714
4796
|
styleText: string;
|
|
4715
4797
|
styleMode: string;
|
|
4716
4798
|
}
|
|
4799
|
+
/**
|
|
4800
|
+
* A live-reload update for a `global-style` output target's CSS, matched on
|
|
4801
|
+
* the client by `fileName` against the `<link>`
|
|
4802
|
+
*/
|
|
4803
|
+
interface BuildGlobalStyleLinkUpdate {
|
|
4804
|
+
fileName: string;
|
|
4805
|
+
styleText: string;
|
|
4806
|
+
}
|
|
4717
4807
|
type BuildTask = any;
|
|
4718
4808
|
interface CompilerBuildStats {
|
|
4719
4809
|
timestamp: string;
|
|
@@ -4855,6 +4945,12 @@ interface CompilerCtx {
|
|
|
4855
4945
|
cssModuleImports: Map<string, string[]>;
|
|
4856
4946
|
/** Cache of built global styles, keyed by input file path */
|
|
4857
4947
|
globalStyleCache: Map<string, string>;
|
|
4948
|
+
/** Cache of discovered CSS-only components from the last scan, keyed by absolute .css file path */
|
|
4949
|
+
cssOnlyComponentsCache: Map<string, ComponentCompilerMeta[]>;
|
|
4950
|
+
/** Contents of the last auto-placed `stencil-*` CSS, used to detect changes for HMR */
|
|
4951
|
+
stencilCss?: string;
|
|
4952
|
+
/** Virtual imports found in each built global style (post-preprocessing), keyed by input path */
|
|
4953
|
+
globalStyleVirtualImports: Map<string, Set<StencilVirtualImport>>;
|
|
4858
4954
|
collections: CollectionCompilerMeta[];
|
|
4859
4955
|
compilerOptions: any;
|
|
4860
4956
|
events: BuildEvents;
|
|
@@ -5000,7 +5096,7 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
|
|
|
5000
5096
|
* Custom states to initialize on the ElementInternals.states CustomStateSet.
|
|
5001
5097
|
* These are defined via @AttachInternals({ states: {...} }).
|
|
5002
5098
|
*/
|
|
5003
|
-
attachInternalsCustomStates:
|
|
5099
|
+
attachInternalsCustomStates: JsonDocsCustomState[];
|
|
5004
5100
|
componentClassName: string;
|
|
5005
5101
|
/**
|
|
5006
5102
|
* A list of web component tag names that are either:
|
|
@@ -5070,7 +5166,7 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
|
|
|
5070
5166
|
sourceFilePath: string;
|
|
5071
5167
|
sourceMapPath: string;
|
|
5072
5168
|
states: ComponentCompilerState[];
|
|
5073
|
-
styleDocs:
|
|
5169
|
+
styleDocs: StyleDoc[];
|
|
5074
5170
|
styles: StyleCompiler[];
|
|
5075
5171
|
globalStyles: ComponentGlobalStyle[];
|
|
5076
5172
|
tagName: string;
|
|
@@ -5273,20 +5369,6 @@ interface ComponentCompilerState {
|
|
|
5273
5369
|
* Custom states are exposed via the ElementInternals.states CustomStateSet
|
|
5274
5370
|
* and can be targeted with the CSS :state() pseudo-class.
|
|
5275
5371
|
*/
|
|
5276
|
-
interface ComponentCompilerCustomState {
|
|
5277
|
-
/**
|
|
5278
|
-
* The name of the custom state (without dashes)
|
|
5279
|
-
*/
|
|
5280
|
-
name: string;
|
|
5281
|
-
/**
|
|
5282
|
-
* The initial value of the state
|
|
5283
|
-
*/
|
|
5284
|
-
initialValue: boolean;
|
|
5285
|
-
/**
|
|
5286
|
-
* Optional JSDoc description for the state
|
|
5287
|
-
*/
|
|
5288
|
-
docs: string;
|
|
5289
|
-
}
|
|
5290
5372
|
/**
|
|
5291
5373
|
* Representation of JSDoc that is pulled off a node in the AST
|
|
5292
5374
|
*/
|
|
@@ -5298,44 +5380,7 @@ interface CompilerJsDoc {
|
|
|
5298
5380
|
/**
|
|
5299
5381
|
* Tags included in the JSDoc
|
|
5300
5382
|
*/
|
|
5301
|
-
tags:
|
|
5302
|
-
}
|
|
5303
|
-
/**
|
|
5304
|
-
* Representation of a tag that exists in a JSDoc
|
|
5305
|
-
*/
|
|
5306
|
-
interface CompilerJsDocTagInfo {
|
|
5307
|
-
/**
|
|
5308
|
-
* The name of the tag - e.g. `@deprecated`
|
|
5309
|
-
*/
|
|
5310
|
-
name: string;
|
|
5311
|
-
/**
|
|
5312
|
-
* Additional text that is associated with the tag - e.g. `@deprecated use v2 of this API`
|
|
5313
|
-
*/
|
|
5314
|
-
text?: string;
|
|
5315
|
-
}
|
|
5316
|
-
/**
|
|
5317
|
-
* The (internal) representation of a CSS block comment in a CSS, Sass, etc. file. This data structure is used during
|
|
5318
|
-
* the initial compilation phases of Stencil, as a piece of {@link ComponentCompilerMeta}.
|
|
5319
|
-
*/
|
|
5320
|
-
interface CompilerStyleDoc {
|
|
5321
|
-
/**
|
|
5322
|
-
* The name of the CSS property
|
|
5323
|
-
*/
|
|
5324
|
-
name: string;
|
|
5325
|
-
/**
|
|
5326
|
-
* The user-defined description of the CSS property
|
|
5327
|
-
*/
|
|
5328
|
-
docs: string;
|
|
5329
|
-
/**
|
|
5330
|
-
* The JSDoc-style annotation (e.g. `@prop`) that was used in the block comment to detect the comment.
|
|
5331
|
-
* Used to inform Stencil where the start of a new property's description starts (and where the previous description
|
|
5332
|
-
* ends).
|
|
5333
|
-
*/
|
|
5334
|
-
annotation: 'prop';
|
|
5335
|
-
/**
|
|
5336
|
-
* The Stencil style-mode that is associated with this property.
|
|
5337
|
-
*/
|
|
5338
|
-
mode: string;
|
|
5383
|
+
tags: JsonDocsTag[];
|
|
5339
5384
|
}
|
|
5340
5385
|
interface CompilerAssetDir {
|
|
5341
5386
|
absolutePath?: string;
|
|
@@ -5556,28 +5601,6 @@ interface Module {
|
|
|
5556
5601
|
hasVdomXlink: boolean;
|
|
5557
5602
|
hasSignalsImport: boolean;
|
|
5558
5603
|
}
|
|
5559
|
-
interface Plugin$1 {
|
|
5560
|
-
name?: string;
|
|
5561
|
-
pluginType?: string;
|
|
5562
|
-
load?: (id: string, context: PluginCtx) => Promise<string> | string;
|
|
5563
|
-
resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
|
|
5564
|
-
transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
|
|
5565
|
-
}
|
|
5566
|
-
type PluginTransformResults = PluginTransformationDescriptor | string | null;
|
|
5567
|
-
interface PluginTransformationDescriptor {
|
|
5568
|
-
code?: string;
|
|
5569
|
-
map?: string;
|
|
5570
|
-
id?: string;
|
|
5571
|
-
diagnostics?: Diagnostic$1[];
|
|
5572
|
-
dependencies?: string[];
|
|
5573
|
-
}
|
|
5574
|
-
interface PluginCtx {
|
|
5575
|
-
config: Config;
|
|
5576
|
-
sys: CompilerSystem;
|
|
5577
|
-
fs: InMemoryFileSystem;
|
|
5578
|
-
cache: Cache;
|
|
5579
|
-
diagnostics: Diagnostic$1[];
|
|
5580
|
-
}
|
|
5581
5604
|
interface PrerenderUrlResults {
|
|
5582
5605
|
anchorUrls: string[];
|
|
5583
5606
|
diagnostics: Diagnostic$1[];
|
|
@@ -6182,4 +6205,4 @@ type MsgToWorker<T extends WorkerContextMethod> = IPCSerializable<{
|
|
|
6182
6205
|
*/
|
|
6183
6206
|
type WorkerMsgHandler = <T extends WorkerContextMethod>(msgToWorker: MsgToWorker<T>) => ReturnType<CompilerWorkerContext[T]>;
|
|
6184
6207
|
//#endregion
|
|
6185
|
-
export {
|
|
6208
|
+
export { CompilerFsStats as $, CUSTOM as $i, WorkerMainController as $n, filterActiveTargets as $r, OutputTargetBuild as $t, BuildOverrides as A, buildWarn as Ai, ResolveModuleIdResults as An, ModeValidationError as Ar, HotModuleReplacement as At, CompilerEventBuildLog as B, loadTypeScriptDiagnostics as Bi, SsrFactoryOptions as Bn, isJsFile as Br, Logger as Bt, BuildEmitEvents as C, TYPES as Ca, isOutputTargetWww as Ci, PluginTransformResults as Cn, JsonDocsStyle as Cr, DevServerEditor as Ct, BuildOnEventRemove as D, XLINK_NS as Da, TASK_CANCELED_MSG as Di, PrerenderResults as Dn, JsonDocsValue as Dr, HistoryApiFallback as Dt, BuildNoChangeResults as E, WWW as Ea, shouldExcludeComponent as Ei, PrerenderOptions as En, JsonDocsUsage as Er, FsWatchResults as Et, Compiler as F, escapeHtml as Fi, SerializeDocumentOptions as Fn, createJsVarName as Fr, LazyRequire as Ft, CompilerEventFileAdd as G, formatLazyBundleRuntimeMeta as Gi, TransformOptions as Gn, readOnlyArrayHasStringMember as Gr, OptimizeCssInput as Gt, CompilerEventBuildStart as H, isRolldownError as Hi, StencilDevServerConfig as Hn, isTsFile as Hr, LoggerTimeSpan as Ht, CompilerBuildResults as I, normalizeDiagnostics as Ii, ServiceWorkerConfig as In, generatePreamble as Ir, LightDomPatches as It, CompilerEventFsChange as J, CMP_FLAGS as Ji, TranspileResults as Jn, getSourceMappingUrlForEndOfFile as Jr, OptimizeJsOutput as Jt, CompilerEventFileDelete as K, stringifyRuntimeData as Ki, TranspileOnlyResults as Kn, readPackageJson as Kr, OptimizeCssOutput as Kt, CompilerBuildStart as L, splitLineBreaks as Li, SitemapXmpOpts as Ln, getTextDocs as Lr, LoadConfigInit as Lt, CliInitOptions as M, hasError as Mi, RobotsTxtOpts as Mn, validateComponentTag as Mr, HydrateFactoryOptions as Mt, CompileScriptMinifyOptions as N, hasWarning as Ni, RobotsTxtResults as Nn, ParsePackageJsonResult as Nr, HydratedFlag as Nt, BuildOnEvents as O, buildError as Oi, PrerenderStartOptions as On, StyleDoc as Or, HmrGlobalStyleUpdate as Ot, CompileTarget as P, shouldIgnoreError as Pi, RolldownConfig as Pn, addDocBlock as Pr, LOG_LEVELS as Pt, CompilerFileWatcherEvent as Q, COPY as Qi, WatcherCloseResults as Qn, FilterComponentsResult as Qr, OutputTargetBaseNext as Qt, CompilerDependency as R, augmentDiagnosticWithNode as Ri, SitemapXmpResults as Rn, hasDependency as Rr, LoadConfigResults as Rt, AutoprefixerOptions as S, SVG_NS as Sa, isOutputTargetTypes as Si, PluginCtx as Sn, JsonDocsSlot as Sr, DevServerConfig as St, BuildLog as T, WATCH_FLAGS as Ta, relativeImport as Ti, PrerenderHydrateOptions as Tn, JsonDocsTypeLibrary as Tr, DocsReadmeCustomColumn as Tt, CompilerEventDirAdd as U, loadRolldownDiagnostics as Ui, StencilDocsConfig as Un, isTsxFile as Ur, ModeConfig as Ut, CompilerEventBuildNoChange as V, createOnWarnFn as Vi, StencilConfig as Vn, isJsxFile as Vr, LoggerLineUpdater as Vt, CompilerEventDirDelete as W, formatComponentRuntimeMeta as Wi, SystemDetails as Wn, parsePackageJson as Wr, NodeResolveConfig as Wt, CompilerFileWatcher as X, COLLECTION_APP_DATA_FILE_NAME as Xi, ValidatedConfig as Xn, rolldownToStencilSourceMap as Xr, OutputTargetAssets as Xt, CompilerEventName as Y, COLLECTION as Yi, UnvalidatedConfig as Yn, getSourceMappingUrlLinker as Yr, OutputTarget as Yt, CompilerFileWatcherCallback as Z, COLLECTION_MANIFEST_FILE_NAME as Zi, ValidatedOutputTargetWww as Zn, result_d_exports as Zr, OutputTargetBase as Zt, PrintLine as _, SSR as _a, isOutputTargetLoaderBundle as _i, OutputTargetWww as _n, JsonDocsListener as _r, CopyTask as _t, ComponentCompilerEvent as a, DOCS_JSON as aa, isOutputTargetCollection as ai, OutputTargetDocsCustom as an, RafCallback as ar, CompilerSystemRealpathResults as at, SsrResults as b, STATS as ba, isOutputTargetStandalone as bi, PlatformPath as bn, JsonDocsPart as br, CustomElementsExportBehaviorOptions as bt, ComponentCompilerMethod as c, EVENT_FLAGS as ca, isOutputTargetDistLazy as ci, OutputTargetDocsReadme as cn, TagTransformer as cr, CompilerSystemRemoveFileResults as ct, ComponentCompilerTypeReferences as d, HOST_FLAGS as da, isOutputTargetDocsCustom as di, OutputTargetLoaderBundle as dn, JsonDocMethodParameter as dr, CompilerSystemWriteFileResults as dt, DEFAULT_STYLE_MODE as ea, filterExcludedComponents as ei, OutputTargetCollection as en, WorkerOptions as er, CompilerRequest as et, ComponentGlobalStyle as f, HTML_NS as fa, isOutputTargetDocsCustomElementsManifest as fi, OutputTargetSsr as fn, JsonDocs as fr, CompilerWatcher as ft, PrerenderUrlResults as g, NODE_TYPES as ga, isOutputTargetGlobalStyle as gi, OutputTargetTypes as gn, JsonDocsEvent as gr, CopyResults as gt, PackageJsonData as h, MEMBER_FLAGS as ha, isOutputTargetDocsVscode as hi, OutputTargetStats as hn, JsonDocsDependencyGraph as hr, ConfigCompat as ht, CompilerWorkerContext as i, DOCS_CUSTOM_ELEMENTS_MANIFEST as ia, isOutputTargetAssets as ii, OutputTargetDocsAgentSkill as in, MixedInCtor as ir, CompilerSystemCreateDirectoryResults as it, BuildResultsComponentGraph as j, catchError as ji, ResolveModuleOptions as jn, validateComponentModes as jr, HydrateDocumentOptions as jt, BuildOutput as k, buildJsonFileError as ki, ResolveModuleIdOptions as kn, FsWriteResults as kr, HmrStyleUpdate as kt, ComponentCompilerProperty as l, GENERATED_DTS as la, isOutputTargetDocs as li, OutputTargetDocsVscode as ln, UserBuildConditionals as lr, CompilerSystemRenameResults as lt, LazyBundlesRuntimeData as m, LOADER_BUNDLE as ma, isOutputTargetDocsReadme as mi, OutputTargetStandalone as mn, JsonDocsCustomState as mr, ConfigBundle as mt, ChildType as n, DOCS_AGENT_SKILL as na, getComponentsDtsTypesFilePath as ni, OutputTargetCustom as nn, ErrorHandler as nr, CompilerSystem as nt, ComponentCompilerListener as o, DOCS_README as oa, isOutputTargetCopy as oi, OutputTargetDocsCustomElementsManifest as on, ReactiveControllerHostInterface as or, CompilerSystemRemoveDirectoryOptions as ot, HostElement as p, LISTENER_FLAGS as pa, isOutputTargetDocsJson as pi, OutputTargetSsrWasm as pn, JsonDocsComponent as pr, Config as pt, CompilerEventFileUpdate as q, ASSETS as qi, TranspileOptions as qn, getInlineSourceMappingUrlLinker as qr, OptimizeJsInput as qt, CompilerCtx as r, DOCS_CUSTOM as ra, getComponentsFromModules as ri, OutputTargetDistLazy as rn, FunctionalComponent as rr, CompilerSystemCreateDirectoryOptions as rt, ComponentCompilerMeta as s, DOCS_VSCODE as sa, isOutputTargetCustom as si, OutputTargetDocsJson as sn, ResolutionHandler as sr, CompilerSystemRemoveDirectoryResults as st, BuildCtx as t, DIST_LAZY as ta, getComponentsDtsSrcFilePath as ti, OutputTargetCopy as tn, ComponentInterface as tr, CompilerRequestResponse as tt, ComponentCompilerState as u, GLOBAL_STYLE as ua, isOutputTargetDocsAgentSkill as ui, OutputTargetGlobalStyle as un, VNode as ur, CompilerSystemRenamedPath as ut, PropsType as v, SSR_WASM as va, isOutputTargetSsr as vi, PageReloadStrategy as vn, JsonDocsMethod as vr, Credentials as vt, BuildEvents as w, VALID_CONFIG_OUTPUT_TARGETS as wa, isValidConfigOutputTarget as wi, PrerenderConfig as wn, JsonDocsTag as wr, Diagnostic$1 as wt, WorkerMsgHandler as x, STYLE_EXT as xa, isOutputTargetStats as xi, Plugin$1 as xn, JsonDocsProp as xr, DevServer as xt, RuntimeRef as y, STANDALONE as ya, isOutputTargetSsrWasm as yi, ParsedPath as yn, JsonDocsMethodReturn as yr, CustomElementsExportBehavior as yt, CompilerEventBuildFinish as z, loadTypeScriptDiagnostic as zi, SsrDocumentOptions as zn, isDtsFile as zr, LogLevel as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -14,6 +14,7 @@ export type {
|
|
|
14
14
|
ComponentShouldUpdateChanges,
|
|
15
15
|
ComponentWillLoad,
|
|
16
16
|
ComponentWillUpdate,
|
|
17
|
+
ErrorHandler,
|
|
17
18
|
EventEmitter,
|
|
18
19
|
EventOptions,
|
|
19
20
|
FunctionalComponent,
|
|
@@ -28,6 +29,8 @@ export type {
|
|
|
28
29
|
RafCallback,
|
|
29
30
|
ReactiveController,
|
|
30
31
|
ReactiveControllerHostInterface,
|
|
32
|
+
ResolutionHandler,
|
|
33
|
+
TagTransformer,
|
|
31
34
|
VNode,
|
|
32
35
|
VNodeData,
|
|
33
36
|
} from './declarations/stencil-public-runtime';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath,
|
|
1
|
+
import { C as Build, S as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, x as setPlatformHelpers, y as readTask } from "./client-BYvfR_Hx.mjs";
|
|
2
2
|
import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
|
|
3
3
|
//#region src/client/client-decorators.ts
|
|
4
4
|
/**
|
package/dist/jsx-runtime.d.mts
CHANGED