@stencil/unplugin 5.0.0-beta.12 → 5.0.0-beta.14
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/index.d.mts +15 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1050 -346
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ type TranspileCompatKeys = 'lightDomPatches' | 'lifecycleDOMEvents' | 'initializ
|
|
|
7
7
|
*
|
|
8
8
|
* Auto-populated from the project's `stencil.config.ts`; values set here override the auto-detected ones.
|
|
9
9
|
*/
|
|
10
|
-
type StencilConfigSubset = Pick<StencilConfig, 'signalBacking'> & {
|
|
10
|
+
type StencilConfigSubset = Pick<StencilConfig, 'signalBacking' | 'hydratedFlag' | 'srcDir'> & {
|
|
11
11
|
compat?: Pick<ConfigCompat, TranspileCompatKeys>;
|
|
12
12
|
};
|
|
13
13
|
interface StencilPluginOptions {
|
|
@@ -56,6 +56,14 @@ interface StencilPluginOptions {
|
|
|
56
56
|
* preset) to avoid paying the startup scan cost for non-docs builds.
|
|
57
57
|
*/
|
|
58
58
|
docs?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* When `true`, the plugin writes `<srcDir>/components.d.ts` - the same typings `stencil build`
|
|
61
|
+
* generates, CSS-only components included - at build start, and keeps it current as component
|
|
62
|
+
* sources change. For projects whose dev loop doesn't run the Stencil compiler (e.g. Storybook).
|
|
63
|
+
*
|
|
64
|
+
* Uses the same project scan as `docs`. Off by default.
|
|
65
|
+
*/
|
|
66
|
+
types?: boolean;
|
|
59
67
|
/**
|
|
60
68
|
* Stencil config flags that affect transpilation. The plugin automatically
|
|
61
69
|
* detects and reads `stencil.config.ts` from the project root — set this only
|
|
@@ -67,17 +75,19 @@ interface StencilPluginOptions {
|
|
|
67
75
|
stencilConfig?: StencilConfigSubset;
|
|
68
76
|
}
|
|
69
77
|
//#endregion
|
|
70
|
-
//#region src/
|
|
71
|
-
declare const STENCIL_DOCS_ID = "@stencil/unplugin/docs";
|
|
78
|
+
//#region src/project-scan.d.ts
|
|
72
79
|
/**
|
|
73
80
|
* Returns the current CEM. Only populated when `docs: true` is set.
|
|
74
81
|
* @returns the current CEM, or an empty CEM if `docs: true` was not set.
|
|
75
82
|
*/
|
|
76
83
|
declare function getStencilCEM(): CustomElementsManifest;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/plugin.d.ts
|
|
86
|
+
declare const STENCIL_DOCS_ID = "@stencil/unplugin/docs";
|
|
77
87
|
declare const unpluginStencil: import("unplugin").UnpluginInstance<StencilPluginOptions | undefined, boolean>;
|
|
78
88
|
//#endregion
|
|
79
89
|
//#region src/index.d.ts
|
|
80
|
-
declare const stencilVite: (options?: StencilPluginOptions | undefined) => import("
|
|
90
|
+
declare const stencilVite: (options?: StencilPluginOptions | undefined) => import("vite").Plugin<any> | import("vite").Plugin<any>[];
|
|
81
91
|
declare const stencilRollup: (options?: StencilPluginOptions | undefined) => import("unplugin").RollupPlugin<any> | import("unplugin").RollupPlugin<any>[];
|
|
82
92
|
declare const stencilWebpack: (options?: StencilPluginOptions | undefined) => WebpackPluginInstance;
|
|
83
93
|
declare const stencilEsbuild: (options?: StencilPluginOptions | undefined) => import("unplugin").EsbuildPlugin;
|
|
@@ -93,7 +103,7 @@ declare const stencilRspack: (options?: StencilPluginOptions | undefined) => Rsp
|
|
|
93
103
|
* @param options - plugin options; `mode` is fixed to `'spec-page'` and cannot be overridden
|
|
94
104
|
* @returns a Vite plugin
|
|
95
105
|
*/
|
|
96
|
-
declare const stencilSpecPage: (options?: Omit<StencilPluginOptions, "mode">) => import("
|
|
106
|
+
declare const stencilSpecPage: (options?: Omit<StencilPluginOptions, "mode">) => import("vite").Plugin<any> | import("vite").Plugin<any>[];
|
|
97
107
|
//#endregion
|
|
98
108
|
export { STENCIL_DOCS_ID, type StencilPluginOptions, getStencilCEM, stencilEsbuild, stencilRollup, stencilRspack, stencilSpecPage, stencilVite, stencilWebpack, unpluginStencil };
|
|
99
109
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/options.ts","../src/plugin.ts","../src/index.ts"],"mappings":";;KAEK;;;;;;;KAQO,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/options.ts","../src/project-scan.ts","../src/plugin.ts","../src/index.ts"],"mappings":";;KAEK;;;;;;;KAQO,sBAAsB,KAChC;EAGA,SAAS,KAAK,cAAc;;UAGb;;;;;;EAMf,mBAAmB,KACjB;;;;;;;;;;;;;;EAsBF;;;;;EAMA;;;;EAKA;;;;;;EAOA;;;;;;;;;;EAWA;;;;;;;;EASA;;;;;;;;;EAUA,gBAAgB;;;;;;;;iBCtCF,iBAAiB;;;cCwBpB;cAqFA,oCAAe,iBAAA;;;cC/Jf,cAAW,UAAA,oDAAA,6BAAA;cACX,gBAAa,UAAA,wDAAA,uCAAA;cACb,iBAAc,UAAA,qCAAA;cACd,iBAAc,UAAA,wDAAA;cACd,gBAAa,UAAA,qCAAA;;;;;;;;;;;;cAab,kBAAmB,UAAS,KAAK,iDAAkC,6BAAA"}
|