@stencil/core 5.0.0-alpha.15 → 5.0.0-alpha.17
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/README.md +94 -0
- package/dist/app-data/index.js +1 -1
- package/dist/{client-aTQ7xHxx.mjs → client-CgXNkftm.mjs} +18 -6
- package/dist/compiler/index.d.mts +167 -2
- package/dist/compiler/index.mjs +4 -3
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/compiler/utils/index.mjs +1 -1
- package/dist/{compiler-DFO3q3RZ.mjs → compiler-CXWiPNlE.mjs} +410 -110
- package/dist/declarations/stencil-public-compiler.d.ts +45 -15
- package/dist/{index-BvkyxSY6.d.mts → index-3fu7WQs4.d.mts} +1 -1
- package/dist/{index-vY35H18z.d.mts → index-F3IidHM1.d.mts} +45 -15
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-BSwezCWj.mjs → node-jFf98r0u.mjs} +53 -53
- package/dist/runtime/client/lazy.js +20 -6
- package/dist/runtime/client/runtime.js +20 -6
- package/dist/runtime/index.js +20 -6
- package/dist/runtime/server/index.mjs +20 -6
- package/dist/signals/index.js +1 -1
- 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 +14 -14
- package/dist/{validation-CtaOJgnM.mjs → validation-ByxKj8bC.mjs} +5 -5
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="#">
|
|
3
|
+
<img alt="stencil-logo" src="https://github.com/stenciljs/core/blob/main/stencil-logo.png" width="60">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<h1 align="center">
|
|
8
|
+
Stencil
|
|
9
|
+
</h1>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
A compiler for generating <a href="https://www.webcomponents.org/introduction" target="_blank" rel="noopener noref">Web Components</a> using technologies like TypeScript and JSX, built by the <a href="https://ionic.io/">Ionic team</a>.
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://www.npmjs.com/package/@stencil/core">
|
|
17
|
+
<img src="https://img.shields.io/npm/v/@stencil/core.svg" alt="StencilJS is released under the MIT license." /></a>
|
|
18
|
+
<a href="https://github.com/stenciljs/core/blob/main/LICENSE.md">
|
|
19
|
+
<img src="https://img.shields.io/badge/license-MIT-yellow.svg" alt="StencilJS is released under the MIT license." />
|
|
20
|
+
</a>
|
|
21
|
+
<a href="https://github.com/stenciljs/core/blob/main/CONTRIBUTING.md">
|
|
22
|
+
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome!" />
|
|
23
|
+
</a>
|
|
24
|
+
<a href="https://twitter.com/stenciljs">
|
|
25
|
+
<img src="https://img.shields.io/badge/follow-%40stenciljs-1DA1F2?logo=twitter" alt="Follow @stenciljs">
|
|
26
|
+
</a>
|
|
27
|
+
<a href="https://chat.stenciljs.com">
|
|
28
|
+
<img src="https://img.shields.io/discord/520266681499779082?color=7289DA&label=%23stencil&logo=discord&logoColor=white" alt="Official Ionic Discord" />
|
|
29
|
+
</a>
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
<h2 align="center">
|
|
33
|
+
<a href="https://stenciljs.com/docs/getting-started#starting-a-new-project">Quick Start</a>
|
|
34
|
+
<span> · </span>
|
|
35
|
+
<a href="https://stenciljs.com/docs/introduction">Documentation</a>
|
|
36
|
+
<span> · </span>
|
|
37
|
+
<a href="https://github.com/stenciljs/core/blob/main/CONTRIBUTING.md">Contribute</a>
|
|
38
|
+
<span> · </span>
|
|
39
|
+
<a href="https://ionicframework.com/blog/tag/stencil/">Blog</a>
|
|
40
|
+
<br />
|
|
41
|
+
Community:
|
|
42
|
+
<a href="https://chat.stenciljs.com">Discord</a>
|
|
43
|
+
<span> · </span>
|
|
44
|
+
<a href="https://forum.ionicframework.com/c/stencil/21/">Forums</a>
|
|
45
|
+
<span> · </span>
|
|
46
|
+
<a href="https://twitter.com/stenciljs">Twitter</a>
|
|
47
|
+
</h2>
|
|
48
|
+
|
|
49
|
+
### Getting Started
|
|
50
|
+
|
|
51
|
+
Start a new project by following our quick [Getting Started guide](https://stenciljs.com/docs/getting-started).
|
|
52
|
+
We would love to hear from you!
|
|
53
|
+
If you have any feedback or run into issues using Stencil, please file an [issue](https://github.com/stenciljs/core/issues/new) on this repository.
|
|
54
|
+
|
|
55
|
+
### Examples
|
|
56
|
+
A Stencil component looks a lot like a class-based React component, with the addition of TypeScript decorators:
|
|
57
|
+
```tsx
|
|
58
|
+
import { Component, Prop, h } from '@stencil/core';
|
|
59
|
+
|
|
60
|
+
@Component({
|
|
61
|
+
tag: 'my-component', // the name of the component's custom HTML tag
|
|
62
|
+
styleUrl: 'my-component.css', // css styles to apply to the component
|
|
63
|
+
shadow: true, // this component uses the ShadowDOM
|
|
64
|
+
})
|
|
65
|
+
export class MyComponent {
|
|
66
|
+
// The component accepts two arguments:
|
|
67
|
+
@Prop() first: string;
|
|
68
|
+
@Prop() last: string;
|
|
69
|
+
|
|
70
|
+
//The following HTML is rendered when our component is used
|
|
71
|
+
render() {
|
|
72
|
+
return (
|
|
73
|
+
<div>
|
|
74
|
+
Hello, my name is {this.first} {this.last}
|
|
75
|
+
</div>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The component above can be used like any other HTML element:
|
|
82
|
+
|
|
83
|
+
```html
|
|
84
|
+
<my-component first="Stencil" last="JS"></my-component>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Since Stencil generates web components, they work in any major framework or with no framework at all.
|
|
88
|
+
In many cases, Stencil can be used as a drop in replacement for traditional frontend framework, though using it as such is certainly not required.
|
|
89
|
+
|
|
90
|
+
### Contributing
|
|
91
|
+
|
|
92
|
+
Thanks for your interest in contributing!
|
|
93
|
+
Please take a moment to read up on our guidelines for [contributing](https://github.com/stenciljs/core/blob/main/CONTRIBUTING.md). We've created comprehensive technical documentation for contributors that explains Stencil's internal architecture, including the compiler, runtime, build system, and other core components in the [/docs](/docs/) directory.
|
|
94
|
+
Please note that this project is released with a [Contributor Code of Conduct](https://github.com/stenciljs/core/blob/main/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
|
package/dist/app-data/index.js
CHANGED
|
@@ -75,7 +75,7 @@ const BUILD = {
|
|
|
75
75
|
isDev: false,
|
|
76
76
|
isTesting: false,
|
|
77
77
|
hydrateServerSide: false,
|
|
78
|
-
hydrateClientSide:
|
|
78
|
+
hydrateClientSide: true,
|
|
79
79
|
lifecycleDOMEvents: false,
|
|
80
80
|
lazyLoad: false,
|
|
81
81
|
profile: false,
|
|
@@ -1500,7 +1500,12 @@ const hydrateScopedToShadow = () => {
|
|
|
1500
1500
|
if (!win.document) return;
|
|
1501
1501
|
const styleElements = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1502
1502
|
let i = 0;
|
|
1503
|
-
for (; i < styleElements.length; i++)
|
|
1503
|
+
for (; i < styleElements.length; i++) {
|
|
1504
|
+
const scopeId = styleElements[i].getAttribute(HYDRATED_STYLE_ID);
|
|
1505
|
+
const existing = styles.get(scopeId);
|
|
1506
|
+
const allowCS = existing !== void 0 ? existing instanceof CSSStyleSheet : true;
|
|
1507
|
+
registerStyle(scopeId, convertScopedToShadow(styleElements[i].innerHTML), allowCS);
|
|
1508
|
+
}
|
|
1504
1509
|
};
|
|
1505
1510
|
//#endregion
|
|
1506
1511
|
//#region src/runtime/event-emitter.ts
|
|
@@ -4379,7 +4384,6 @@ const hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
|
|
|
4379
4384
|
};
|
|
4380
4385
|
const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
|
|
4381
4386
|
const modulePath = hostElement.constructor.__stencil_module__;
|
|
4382
|
-
console.log(`[Stencil HMR] hmrStandalone <${cmpMeta.$tagName$}> modulePath:`, modulePath);
|
|
4383
4387
|
if (!modulePath) {
|
|
4384
4388
|
console.warn(`[Stencil HMR] No __stencil_module__ on <${cmpMeta.$tagName$}> constructor - was this built with devMode?`);
|
|
4385
4389
|
return;
|
|
@@ -4392,9 +4396,17 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
|
|
|
4392
4396
|
const NewClass = Object.values(newModule).find((v) => typeof v === "function" && v.is === cmpMeta.$tagName$) ?? newModule.default;
|
|
4393
4397
|
if (!NewClass) return;
|
|
4394
4398
|
const ctor = customElements.get(cmpMeta.$tagName$);
|
|
4395
|
-
if (ctor)
|
|
4396
|
-
|
|
4397
|
-
|
|
4399
|
+
if (ctor) {
|
|
4400
|
+
for (const key of Object.getOwnPropertyNames(NewClass.prototype)) {
|
|
4401
|
+
if (key === "constructor") continue;
|
|
4402
|
+
Object.defineProperty(ctor.prototype, key, Object.getOwnPropertyDescriptor(NewClass.prototype, key));
|
|
4403
|
+
}
|
|
4404
|
+
const styleDesc = Object.getOwnPropertyDescriptor(NewClass, "style");
|
|
4405
|
+
if (styleDesc) {
|
|
4406
|
+
Object.defineProperty(ctor, "style", styleDesc);
|
|
4407
|
+
const newStyle = NewClass.style;
|
|
4408
|
+
if (newStyle) registerStyle(getScopeId(cmpMeta), newStyle, !!(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation));
|
|
4409
|
+
}
|
|
4398
4410
|
}
|
|
4399
4411
|
document.querySelectorAll(cmpMeta.$tagName$).forEach((el) => {
|
|
4400
4412
|
if (BUILD.hostListener) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ComponentCompilerVirtualProperty, $i as
|
|
1
|
+
import { $ as ComponentCompilerVirtualProperty, $i as StencilDocsConfig, $n as CompilerBuildResults, $r as LoadConfigResults, $t as PropsType, A as CompilerStyleDoc, Aa as JsonDocsStyle, Ai as OutputTargetWww, An as TypesMemberNameData, Ar as Config, At as JsDoc, B as ComponentCompilerMeta, Bi as ResolveModuleIdResults, Bn as BuildEvents, Br as DevServerEditor, Bt as OptimizeJsResult, C as CompilerBuildStatBundle, Ca as JsonDocsEvent, Ci as OutputTargetGlobalStyle, Cn as StyleCompiler, Cr as CompilerSystemRemoveDirectoryOptions, Ct as EntryModule, D as CompilerJsDoc, Da as JsonDocsPart, Di as OutputTargetStandalone, Dn as TranspileModuleResults, Dr as CompilerSystemRenamedPath, Dt as HostRef, E as CompilerCtx, Ea as JsonDocsMethodReturn, Ei as OutputTargetSsrWasm, En as TransformCssToEsmOutput, Er as CompilerSystemRenameResults, Et as HostElement, F as ComponentCompilerData, Fa as StyleDoc, Fi as PrerenderHydrateOptions, Fn as Workbox, Fr as Credentials, Ft as ModuleMap, G as ComponentCompilerPropertyType, Gi as SerializeDocumentOptions, Gn as BuildOutput, Gr as HotModuleReplacement, Gt as Plugin, H as ComponentCompilerMethodComplexType, Hi as RobotsTxtOpts, Hn as BuildNoChangeResults, Hr as FsWatchResults, Ht as ParsedImport, I as ComponentCompilerEvent, Ia as FsWriteResults, Ii as PrerenderOptions, In as WorkerContextMethod, Ir as CustomElementsExportBehavior, It as MsgFromWorker, J as ComponentCompilerStaticEvent, Ji as SitemapXmpResults, Jn as CacheStorage, Jr as HydratedFlag, Jt as PluginTransformationDescriptor, K as ComponentCompilerReferencedType, Ki as ServiceWorkerConfig, Kn as BuildOverrides, Kr as HydrateDocumentOptions, Kt as PluginCtx, L as ComponentCompilerEventComplexType, La as InMemoryFileSystem, Li as PrerenderResults, Ln as WorkerMsgHandler, Lr as CustomElementsExportBehaviorOptions, Lt as MsgToWorker, M as CompilerWorkerTask, Ma as JsonDocsTypeLibrary, Mi as ParsedPath, Mn as UpdatedLazyBuildCtx, Mr as ConfigCompat, Mt as LazyBundlesRuntimeData, N as ComponentCompilerChangeHandler, Na as JsonDocsUsage, Ni as PlatformPath, Nn as VNodeProdData, Nr as CopyResults, Nt as Module, O as CompilerJsDocTagInfo, Oa as JsonDocsProp, Oi as OutputTargetStats, On as TypeInfo, Or as CompilerSystemWriteFileResults, Ot as ImportData, P as ComponentCompilerCustomState, Pa as JsonDocsValue, Pi as PrerenderConfig, Pn as ValidateTypesResults, Pr as CopyTask, Pt as ModuleFormat, Q as ComponentCompilerTypeReferences, Qi as StencilDevServerConfig, Qn as Compiler, Qr as LoadConfigInit, Qt as PrintLine, R as ComponentCompilerFeatures, Ri as PrerenderStartOptions, Rn as AutoprefixerOptions, Rr as DevServer, Rt as NewSpecPageOptions, S as CompilerAssetDir, Sa as JsonDocsDependencyGraph, Si as OutputTargetDocsVscode, Sn as StencilDocument, Sr as CompilerSystemRealpathResults, St as Encapsulation, T as CompilerBuildStats, Ta as JsonDocsMethod, Ti as OutputTargetSsr, Tn as TransformCssToEsmInput, Tr as CompilerSystemRemoveFileResults, Tt as ExternalStyleCompiler, U as ComponentCompilerProperty, Ui as RobotsTxtResults, Un as BuildOnEventRemove, Ur as HistoryApiFallback, Ut as PatchedSlotNode, V as ComponentCompilerMethod, Vi as ResolveModuleOptions, Vn as BuildLog, Vr as Diagnostic, Vt as PackageJsonData, W as ComponentCompilerPropertyComplexType, Wi as RolldownConfig, Wn as BuildOnEvents, Wr as HmrStyleUpdate, Wt as PlatformRuntime, X as ComponentCompilerStaticProperty, Xi as SsrFactoryOptions, Xn as CompileScriptMinifyOptions, Xr as LazyRequire, Xt as PrerenderUrlRequest, Y as ComponentCompilerStaticMethod, Yi as SsrDocumentOptions, Yn as CliInitOptions, Yr as LOG_LEVELS, Yt as PrerenderManager, Z as ComponentCompilerTypeReference, Zi as StencilConfig, Zn as CompileTarget, Zr as LightDomPatches, Zt as PrerenderUrlResults, _ as CollectionCompilerVersion, _i as OutputTargetDistLazy, _n as SsrImgElement, _r as CompilerRequest, _t as ComponentTestingConstructor, a as BuildCtx, aa as UnvalidatedConfig, ai as OptimizeCssInput, an as RolldownResults, ar as CompilerEventBuildStart, at as ComponentConstructorProperties, b as CollectionDependencyManifest, ba as JsonDocsComponent, bi as OutputTargetDocsJson, bn as SsrStaticData, br as CompilerSystemCreateDirectoryOptions, bt as CssTransformCacheEntry, c as BuildStyleUpdate, ca as WatcherCloseResults, ci as OptimizeJsOutput, cn as RuntimeRef, cr as CompilerEventFileAdd, ct as ComponentGlobalStyle, d as BundleModuleOutput, di as OutputTargetBase, dn as SourceMap, dr as CompilerEventFsChange, dt as ComponentRuntimeHostListener, ea as SystemDetails, ei as LogLevel, en as RenderNode, er as CompilerBuildStart, et as ComponentConstructor, f as Cache, fi as OutputTargetBaseNext, fn as SourceTarget, fr as CompilerEventName, ft as ComponentRuntimeMember, g as CollectionCompilerMeta, gi as OutputTargetCustom, gn as SsrElement, gr as CompilerFsStats, gt as ComponentRuntimeReflectingAttr, h as CollectionCompiler, hi as OutputTargetCopy, hn as SsrComponent, hr as CompilerFileWatcherEvent, ht as ComponentRuntimeMetaCompact, i as BuildConditionals, ia as TranspileResults, ii as NodeResolveConfig, in as RolldownResultModule, ir as CompilerEventBuildNoChange, it as ComponentConstructorListener, j as CompilerWorkerContext, ja as JsonDocsTag, ji as PageReloadStrategy, jn as TypesModule, jr as ConfigBundle, jt as LazyBundleRuntimeData, k as CompilerModeStyles, ka as JsonDocsSlot, ki as OutputTargetTypes, kn as TypesImportData, kr as CompilerWatcher, kt as JSDocTagInfo, l as BuildTask, la as WorkerMainController, li as OutputTarget, ln as SerializeImportData, lr as CompilerEventFileDelete, lt as ComponentNativeConstructor, m as CollectionBundleManifest, mi as OutputTargetCollection, mn as SsrAnchorElement, mr as CompilerFileWatcherCallback, mt as ComponentRuntimeMeta, n as AssetsMeta, na as TranspileOnlyResults, ni as LoggerLineUpdater, nn as RolldownChunkResult, nr as CompilerEventBuildFinish, nt as ComponentConstructorEncapsulation, o as BuildFeatures, oa as ValidatedConfig, oi as OptimizeCssOutput, on as RolldownSourceMap, or as CompilerEventDirAdd, ot as ComponentConstructorProperty, p as ChildType, pi as OutputTargetBuild, pn as SpecPage, pr as CompilerFileWatcher, pt as ComponentRuntimeMembers, q as ComponentCompilerState, qi as SitemapXmpOpts, qn as BuildResultsComponentGraph, qr as HydrateFactoryOptions, qt as PluginTransformResults, r as BuildComponent, ra as TranspileOptions, ri as LoggerTimeSpan, rn as RolldownResult, rr as CompilerEventBuildLog, rt as ComponentConstructorEvent, s as BuildSourceGraph, sa as ValidatedOutputTargetWww, si as OptimizeJsInput, sn as RootAppliedStyleMap, sr as CompilerEventDirDelete, st as ComponentConstructorPropertyType, t as AnyHTMLElement, ta as TransformOptions, ti as Logger, tn as RolldownAssetResult, tr as CompilerDependency, tt as ComponentConstructorChangeHandlers, u as BundleModule, ua as WorkerOptions, ui as OutputTargetAssets, un as SerializedEvent, ur as CompilerEventFileUpdate, ut as ComponentPatches, v as CollectionComponentEntryPath, va as JsonDocMethodParameter, vi as OutputTargetDocsCustom, vn as SsrResults, vr as CompilerRequestResponse, vt as CssImportData, w as CompilerBuildStatCollection, wa as JsonDocsListener, wi as OutputTargetLoaderBundle, wn as StyleMap, wr as CompilerSystemRemoveDirectoryResults, wt as EventInitDict, x as CollectionManifest, xa as JsonDocsCustomState, xi as OutputTargetDocsReadme, xn as SsrStyleElement, xr as CompilerSystemCreateDirectoryResults, xt as DocData, y as CollectionDependencyData, ya as JsonDocs, yi as OutputTargetDocsCustomElementsManifest, yn as SsrScriptElement, yr as CompilerSystem, yt as CssToEsmImportData, z as ComponentCompilerListener, zi as ResolveModuleIdOptions, zn as BuildEmitEvents, zr as DevServerConfig, zt as NodeMap } from "../index-F3IidHM1.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/version.d.ts
|
|
@@ -100,6 +100,168 @@ declare const createSystem: (c?: {
|
|
|
100
100
|
logger?: Logger;
|
|
101
101
|
}) => CompilerSystem;
|
|
102
102
|
//#endregion
|
|
103
|
+
//#region src/compiler/style/scope-css.d.ts
|
|
104
|
+
/**
|
|
105
|
+
* Get a unique component ID which incorporates the component tag name and
|
|
106
|
+
* (optionally) a style mode
|
|
107
|
+
*
|
|
108
|
+
* e.g. for the tagName `'my-component'` and the mode `'ios'` this would be
|
|
109
|
+
* `'sc-my-component-ios'`.
|
|
110
|
+
*
|
|
111
|
+
* @param tagName the tag name for the component of interest
|
|
112
|
+
* @param mode an optional mode
|
|
113
|
+
* @returns a scope ID
|
|
114
|
+
*/
|
|
115
|
+
declare const getScopeId: (tagName: string, mode?: string) => string;
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/compiler/docs/cem/index.d.ts
|
|
118
|
+
/**
|
|
119
|
+
* Generate the Custom Elements Manifest from Stencil docs data
|
|
120
|
+
* @param docsData the generated docs data
|
|
121
|
+
* @returns the Custom Elements Manifest object
|
|
122
|
+
*/
|
|
123
|
+
declare const generateManifest: (docsData: Pick<JsonDocs, "components">) => CustomElementsManifest;
|
|
124
|
+
interface CustomElementsManifest {
|
|
125
|
+
schemaVersion: string;
|
|
126
|
+
modules: JavaScriptModule[];
|
|
127
|
+
}
|
|
128
|
+
interface JavaScriptModule {
|
|
129
|
+
kind: 'javascript-module';
|
|
130
|
+
path: string;
|
|
131
|
+
declarations?: CustomElementDeclaration[];
|
|
132
|
+
exports?: (JavaScriptExport | CustomElementExport)[];
|
|
133
|
+
}
|
|
134
|
+
interface JavaScriptExport {
|
|
135
|
+
kind: 'js';
|
|
136
|
+
name: string;
|
|
137
|
+
declaration: Reference;
|
|
138
|
+
}
|
|
139
|
+
interface CustomElementExport {
|
|
140
|
+
kind: 'custom-element-definition';
|
|
141
|
+
name: string;
|
|
142
|
+
declaration: Reference;
|
|
143
|
+
}
|
|
144
|
+
interface Reference {
|
|
145
|
+
name: string;
|
|
146
|
+
package?: string;
|
|
147
|
+
module?: string;
|
|
148
|
+
}
|
|
149
|
+
interface CustomElementDeclaration {
|
|
150
|
+
kind: 'class';
|
|
151
|
+
customElement: true;
|
|
152
|
+
tagName: string;
|
|
153
|
+
name: string;
|
|
154
|
+
description?: string;
|
|
155
|
+
deprecated?: boolean | string;
|
|
156
|
+
tags?: Tag[];
|
|
157
|
+
attributes?: Attribute[];
|
|
158
|
+
members?: (CustomElementField | ClassMethod)[];
|
|
159
|
+
events?: Event[];
|
|
160
|
+
slots?: Slot[];
|
|
161
|
+
cssParts?: CssPart[];
|
|
162
|
+
cssProperties?: CssCustomProperty[];
|
|
163
|
+
customStates?: CustomState[];
|
|
164
|
+
demos?: Demo[];
|
|
165
|
+
}
|
|
166
|
+
interface Demo {
|
|
167
|
+
url: string;
|
|
168
|
+
description?: string;
|
|
169
|
+
}
|
|
170
|
+
interface Attribute {
|
|
171
|
+
name: string;
|
|
172
|
+
description?: string;
|
|
173
|
+
type?: Type;
|
|
174
|
+
default?: string;
|
|
175
|
+
fieldName?: string;
|
|
176
|
+
deprecated?: boolean | string;
|
|
177
|
+
tags?: Tag[];
|
|
178
|
+
}
|
|
179
|
+
interface Type {
|
|
180
|
+
text: string;
|
|
181
|
+
references?: TypeReference[];
|
|
182
|
+
}
|
|
183
|
+
interface TypeReference {
|
|
184
|
+
name: string;
|
|
185
|
+
package?: string;
|
|
186
|
+
module?: string;
|
|
187
|
+
}
|
|
188
|
+
interface CustomElementField {
|
|
189
|
+
kind: 'field';
|
|
190
|
+
name: string;
|
|
191
|
+
description?: string;
|
|
192
|
+
type?: Type;
|
|
193
|
+
default?: string;
|
|
194
|
+
deprecated?: boolean | string;
|
|
195
|
+
readonly?: boolean;
|
|
196
|
+
attribute?: string;
|
|
197
|
+
reflects?: boolean;
|
|
198
|
+
tags?: Tag[];
|
|
199
|
+
}
|
|
200
|
+
interface ClassMethod {
|
|
201
|
+
kind: 'method';
|
|
202
|
+
name: string;
|
|
203
|
+
description?: string;
|
|
204
|
+
deprecated?: boolean | string;
|
|
205
|
+
parameters?: Parameter[];
|
|
206
|
+
return?: {
|
|
207
|
+
type?: Type;
|
|
208
|
+
description?: string;
|
|
209
|
+
};
|
|
210
|
+
tags?: Tag[];
|
|
211
|
+
}
|
|
212
|
+
interface Parameter {
|
|
213
|
+
name: string;
|
|
214
|
+
description?: string;
|
|
215
|
+
type?: Type;
|
|
216
|
+
}
|
|
217
|
+
interface Event {
|
|
218
|
+
name: string;
|
|
219
|
+
description?: string;
|
|
220
|
+
type: Type;
|
|
221
|
+
deprecated?: boolean | string;
|
|
222
|
+
tags?: Tag[];
|
|
223
|
+
}
|
|
224
|
+
/** Stencil extension: preserves arbitrary JSDoc tags not represented by other CEM fields. */
|
|
225
|
+
interface Tag {
|
|
226
|
+
name: string;
|
|
227
|
+
text?: string;
|
|
228
|
+
}
|
|
229
|
+
interface Slot {
|
|
230
|
+
name: string;
|
|
231
|
+
description?: string;
|
|
232
|
+
}
|
|
233
|
+
interface CssPart {
|
|
234
|
+
name: string;
|
|
235
|
+
description?: string;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Custom state that can be targeted with the CSS :state() pseudo-class.
|
|
239
|
+
* This is a custom extension to the CEM spec.
|
|
240
|
+
*/
|
|
241
|
+
interface CustomState {
|
|
242
|
+
name: string;
|
|
243
|
+
initialValue: boolean;
|
|
244
|
+
description?: string;
|
|
245
|
+
}
|
|
246
|
+
interface CssCustomProperty {
|
|
247
|
+
name: string;
|
|
248
|
+
description?: string;
|
|
249
|
+
}
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/compiler/docs/generate-doc-data.d.ts
|
|
252
|
+
/**
|
|
253
|
+
* Convert a single {@link d.ComponentCompilerMeta} to a {@link d.JsonDocsComponent}
|
|
254
|
+
* without reading any files from disk (readme/usage are left empty).
|
|
255
|
+
*
|
|
256
|
+
* Useful for single-file transpilation contexts (e.g. `transpileSync`) when a
|
|
257
|
+
* full build context is not available.
|
|
258
|
+
* @param cmp the component metadata to convert
|
|
259
|
+
* @param filePath absolute path to the component source file
|
|
260
|
+
* @param rootDir project root used to make `filePath` relative (defaults to `process.cwd()`)
|
|
261
|
+
* @returns a {@link d.JsonDocsComponent} with empty readme/usage
|
|
262
|
+
*/
|
|
263
|
+
declare const cmpMetaToDocsComponent: (cmp: ComponentCompilerMeta, filePath: string, rootDir?: string) => JsonDocsComponent;
|
|
264
|
+
//#endregion
|
|
103
265
|
//#region src/compiler/transpile.d.ts
|
|
104
266
|
/**
|
|
105
267
|
* The `transpile()` function inputs source code as a string, with various options
|
|
@@ -133,6 +295,9 @@ declare const transpile: (code: string, opts?: TranspileOptions) => Promise<Tran
|
|
|
133
295
|
*/
|
|
134
296
|
declare const transpileSync: (code: string, opts?: TranspileOptions) => TranspileResults;
|
|
135
297
|
//#endregion
|
|
298
|
+
//#region src/utils/shadow-css.d.ts
|
|
299
|
+
declare const scopeCss: (cssText: string, scopeId: string, commentOriginalSelector: boolean) => string;
|
|
300
|
+
//#endregion
|
|
136
301
|
//#region src/compiler/worker/worker-thread.d.ts
|
|
137
302
|
/**
|
|
138
303
|
* Instantiate a worker context which synchronously calls the methods that are
|
|
@@ -189,4 +354,4 @@ type ConfigValidationResults = {
|
|
|
189
354
|
*/
|
|
190
355
|
declare const validateConfig: (userConfig: UnvalidatedConfig, bootstrapConfig: LoadConfigInit) => ConfigValidationResults;
|
|
191
356
|
//#endregion
|
|
192
|
-
export { AnyHTMLElement, AssetsMeta, AutoprefixerOptions, BuildComponent, BuildConditionals, BuildCtx, BuildEmitEvents, BuildEvents, BuildFeatures, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildResultsComponentGraph, BuildSourceGraph, BuildStyleUpdate, BuildTask, BundleModule, BundleModuleOutput, Cache, CacheStorage, ChildType, CliInitOptions, CollectionBundleManifest, CollectionCompiler, CollectionCompilerMeta, CollectionCompilerVersion, CollectionComponentEntryPath, CollectionDependencyData, CollectionDependencyManifest, CollectionManifest, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerAssetDir, CompilerBuildResults, CompilerBuildStart, CompilerBuildStatBundle, CompilerBuildStatCollection, CompilerBuildStats, CompilerCtx, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerJsDoc, CompilerJsDocTagInfo, CompilerModeStyles, CompilerRequest, CompilerRequestResponse, CompilerStyleDoc, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, CompilerWorkerContext, CompilerWorkerTask, ComponentCompilerChangeHandler, ComponentCompilerCustomState, ComponentCompilerData, ComponentCompilerEvent, ComponentCompilerEventComplexType, ComponentCompilerFeatures, ComponentCompilerListener, ComponentCompilerMeta, ComponentCompilerMethod, ComponentCompilerMethodComplexType, ComponentCompilerProperty, ComponentCompilerPropertyComplexType, ComponentCompilerPropertyType, ComponentCompilerReferencedType, ComponentCompilerState, ComponentCompilerStaticEvent, ComponentCompilerStaticMethod, ComponentCompilerStaticProperty, ComponentCompilerTypeReference, ComponentCompilerTypeReferences, ComponentCompilerVirtualProperty, ComponentConstructor, ComponentConstructorChangeHandlers, ComponentConstructorEncapsulation, ComponentConstructorEvent, ComponentConstructorListener, ComponentConstructorProperties, ComponentConstructorProperty, ComponentConstructorPropertyType, ComponentGlobalStyle, ComponentNativeConstructor, ComponentPatches, ComponentRuntimeHostListener, ComponentRuntimeMember, ComponentRuntimeMembers, ComponentRuntimeMeta, ComponentRuntimeMetaCompact, ComponentRuntimeReflectingAttr, ComponentTestingConstructor, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CssImportData, CssToEsmImportData, CssTransformCacheEntry, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocData, Encapsulation, EntryModule, EventInitDict, ExternalStyleCompiler, FsWatchResults, type FsWriteResults, HistoryApiFallback, HmrStyleUpdate, HostElement, HostRef, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, ImportData, type InMemoryFileSystem, JSDocTagInfo, JsDoc, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyBundleRuntimeData, LazyBundlesRuntimeData, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, Module, ModuleFormat, ModuleMap, MsgFromWorker, MsgToWorker, NewSpecPageOptions, NodeMap, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OptimizeJsResult, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PackageJsonData, PageReloadStrategy, ParsedImport, ParsedPath, PatchedSlotNode, PlatformPath, PlatformRuntime, Plugin, PluginCtx, PluginTransformResults, PluginTransformationDescriptor, PrerenderConfig, PrerenderHydrateOptions, PrerenderManager, PrerenderOptions, PrerenderResults, PrerenderStartOptions, PrerenderUrlRequest, PrerenderUrlResults, PrintLine, PropsType, RenderNode, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownAssetResult, RolldownChunkResult, RolldownConfig, RolldownResult, RolldownResultModule, RolldownResults, type RolldownSourceMap, RootAppliedStyleMap, RuntimeRef, SerializeDocumentOptions, SerializeImportData, SerializedEvent, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SourceMap, SourceTarget, SpecPage, SsrAnchorElement, SsrComponent, SsrDocumentOptions, SsrElement, SsrFactoryOptions, SsrImgElement, SsrResults, SsrScriptElement, SsrStaticData, SsrStyleElement, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StencilDocument, StyleCompiler, StyleDoc, StyleMap, SystemDetails, TransformCssToEsmInput, TransformCssToEsmOutput, TransformOptions, TranspileModuleResults, TranspileOnlyResults, TranspileOptions, TranspileResults, TypeInfo, TypesImportData, TypesMemberNameData, TypesModule, UnvalidatedConfig, UpdatedLazyBuildCtx, VNodeProdData, ValidateTypesResults, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, Workbox, WorkerContextMethod, WorkerMainController, WorkerMsgHandler, WorkerOptions, buildId, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, loadConfig, nodeRequire, optimizeCss, optimizeJs, transpile, transpileSync, ts, validateConfig, vermoji, version, versions };
|
|
357
|
+
export { AnyHTMLElement, AssetsMeta, AutoprefixerOptions, BuildComponent, BuildConditionals, BuildCtx, BuildEmitEvents, BuildEvents, BuildFeatures, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, BuildResultsComponentGraph, BuildSourceGraph, BuildStyleUpdate, BuildTask, BundleModule, BundleModuleOutput, Cache, CacheStorage, ChildType, CliInitOptions, CollectionBundleManifest, CollectionCompiler, CollectionCompilerMeta, CollectionCompilerVersion, CollectionComponentEntryPath, CollectionDependencyData, CollectionDependencyManifest, CollectionManifest, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerAssetDir, CompilerBuildResults, CompilerBuildStart, CompilerBuildStatBundle, CompilerBuildStatCollection, CompilerBuildStats, CompilerCtx, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerJsDoc, CompilerJsDocTagInfo, CompilerModeStyles, CompilerRequest, CompilerRequestResponse, CompilerStyleDoc, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, CompilerWorkerContext, CompilerWorkerTask, ComponentCompilerChangeHandler, ComponentCompilerCustomState, ComponentCompilerData, ComponentCompilerEvent, ComponentCompilerEventComplexType, ComponentCompilerFeatures, ComponentCompilerListener, ComponentCompilerMeta, ComponentCompilerMethod, ComponentCompilerMethodComplexType, ComponentCompilerProperty, ComponentCompilerPropertyComplexType, ComponentCompilerPropertyType, ComponentCompilerReferencedType, ComponentCompilerState, ComponentCompilerStaticEvent, ComponentCompilerStaticMethod, ComponentCompilerStaticProperty, ComponentCompilerTypeReference, ComponentCompilerTypeReferences, ComponentCompilerVirtualProperty, ComponentConstructor, ComponentConstructorChangeHandlers, ComponentConstructorEncapsulation, ComponentConstructorEvent, ComponentConstructorListener, ComponentConstructorProperties, ComponentConstructorProperty, ComponentConstructorPropertyType, ComponentGlobalStyle, ComponentNativeConstructor, ComponentPatches, ComponentRuntimeHostListener, ComponentRuntimeMember, ComponentRuntimeMembers, ComponentRuntimeMeta, ComponentRuntimeMetaCompact, ComponentRuntimeReflectingAttr, ComponentTestingConstructor, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CssImportData, CssToEsmImportData, CssTransformCacheEntry, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, type CustomElementsManifest, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocData, Encapsulation, EntryModule, EventInitDict, ExternalStyleCompiler, FsWatchResults, type FsWriteResults, HistoryApiFallback, HmrStyleUpdate, HostElement, HostRef, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, ImportData, type InMemoryFileSystem, JSDocTagInfo, JsDoc, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyBundleRuntimeData, LazyBundlesRuntimeData, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, Module, ModuleFormat, ModuleMap, MsgFromWorker, MsgToWorker, NewSpecPageOptions, NodeMap, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OptimizeJsResult, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PackageJsonData, PageReloadStrategy, ParsedImport, ParsedPath, PatchedSlotNode, PlatformPath, PlatformRuntime, Plugin, PluginCtx, PluginTransformResults, PluginTransformationDescriptor, PrerenderConfig, PrerenderHydrateOptions, PrerenderManager, PrerenderOptions, PrerenderResults, PrerenderStartOptions, PrerenderUrlRequest, PrerenderUrlResults, PrintLine, PropsType, RenderNode, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownAssetResult, RolldownChunkResult, RolldownConfig, RolldownResult, RolldownResultModule, RolldownResults, type RolldownSourceMap, RootAppliedStyleMap, RuntimeRef, SerializeDocumentOptions, SerializeImportData, SerializedEvent, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SourceMap, SourceTarget, SpecPage, SsrAnchorElement, SsrComponent, SsrDocumentOptions, SsrElement, SsrFactoryOptions, SsrImgElement, SsrResults, SsrScriptElement, SsrStaticData, SsrStyleElement, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StencilDocument, StyleCompiler, StyleDoc, StyleMap, SystemDetails, TransformCssToEsmInput, TransformCssToEsmOutput, TransformOptions, TranspileModuleResults, TranspileOnlyResults, TranspileOptions, TranspileResults, TypeInfo, TypesImportData, TypesMemberNameData, TypesModule, UnvalidatedConfig, UpdatedLazyBuildCtx, VNodeProdData, ValidateTypesResults, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, Workbox, WorkerContextMethod, WorkerMainController, WorkerMsgHandler, WorkerOptions, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, generateManifest, getScopeId, loadConfig, nodeRequire, optimizeCss, optimizeJs, scopeCss, transpile, transpileSync, ts, validateConfig, vermoji, version, versions };
|
package/dist/compiler/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
|
|
1
|
+
import { f as scopeCss } from "../client-CgXNkftm.mjs";
|
|
2
|
+
import { C as version, S as vermoji, _ as cmpMetaToDocsComponent, a as createPrerenderer, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, i as createSystem, l as createWorkerMessageHandler, m as validateConfig, n as transpile, o as loadConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, w as versions, x as buildId, y as getScopeId } from "../compiler-CXWiPNlE.mjs";
|
|
3
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-jFf98r0u.mjs";
|
|
4
|
+
export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, generateManifest, getScopeId, loadConfig, nodeRequire, optimizeCss, optimizeJs, scopeCss, transpile, transpileSync, ts, validateConfig, vermoji, version, versions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as
|
|
1
|
+
import { $a as isRemoteUrl, $o as augmentDiagnosticWithNode, $s as SSR, Ao as isOutputTargetDocsVscode, As as ASSETS, Ba as addDocBlock, Bo as relativeImport, Bs as DOCS_CUSTOM_ELEMENTS_MANIFEST, Co as isOutputTargetCustom, Cs as toCamelCase, Do as isOutputTargetDocsCustomElementsManifest, Ds as formatComponentRuntimeMeta, Eo as isOutputTargetDocsCustom, Es as unique, Fo as isOutputTargetStandalone, Fs as COPY, Ga as isDtsFile, Go as buildWarn, Gs as GENERATED_DTS, Ha as generatePreamble, Ho as TASK_CANCELED_MSG, Hs as DOCS_README, Io as isOutputTargetStats, Is as CUSTOM, Ja as isTsFile, Jo as hasWarning, Js as HTML_NS, Ka as isJsFile, Ko as catchError, Ks as GLOBAL_STYLE, Lo as isOutputTargetTypes, Ls as DEFAULT_STYLE_MODE, Mo as isOutputTargetLoaderBundle, Ms as COLLECTION, No as isOutputTargetSsr, Ns as COLLECTION_APP_DATA_FILE_NAME, Oo as isOutputTargetDocsJson, Os as formatLazyBundleRuntimeMeta, Po as isOutputTargetSsrWasm, Ps as COLLECTION_MANIFEST_FILE_NAME, Qa as readPackageJson, Qo as splitLineBreaks, Qs as NODE_TYPES, Ra as validateComponentTag, Ro as isOutputTargetWww, Rs as DIST_LAZY, So as isOutputTargetCopy, Ss as sortBy, To as isOutputTargetDocs, Ts as toTitleCase, Ua as getTextDocs, Uo as buildError, Us as DOCS_VSCODE, Va as createJsVarName, Vo as shouldExcludeComponent, Vs as DOCS_JSON, Wa as hasDependency, Wo as buildJsonFileError, Ws as EVENT_FLAGS, Xa as parsePackageJson, Xo as escapeHtml, Xs as LOADER_BUNDLE, Ya as isTsxFile, Yo as shouldIgnoreError, Ys as LISTENER_FLAGS, Za as readOnlyArrayHasStringMember, Zo as normalizeDiagnostics, Zs as MEMBER_FLAGS, _o as getComponentsDtsSrcFilePath, _s as isObject, ac as TYPES, ao as escapeRegExpSpecialCharacters, as as isRootPath, bo as isOutputTargetAssets, bs as noop, cc as WWW, co as normalize, cs as escapeWithPattern, do as normalizePath, ds as isBoolean, ec as SSR_WASM, eo as getInlineSourceMappingUrlLinker, es as loadTypeScriptDiagnostic, fo as relative, fs as isComplexType, go as filterExcludedComponents, gs as isNumber, ho as filterActiveTargets, hs as isIterable, ic as SVG_NS, io as result_d_exports, is as loadRolldownDiagnostics, jo as isOutputTargetGlobalStyle, js as CMP_FLAGS, ko as isOutputTargetDocsReadme, ks as stringifyRuntimeData, lc as XLINK_NS, lo as normalizeFsPath, ls as flatOne, mo as FilterComponentsResult, ms as isFunction, nc as STATS, no as getSourceMappingUrlLinker, ns as createOnWarnFn, oc as VALID_CONFIG_OUTPUT_TARGETS, oo as queryNonceMetaTagContent, os as isGlob, po as resolve, ps as isDef, qa as isJsxFile, qo as hasError, qs as HOST_FLAGS, rc as STYLE_EXT, ro as rolldownToStencilSourceMap, rs as isRolldownError, sc as WATCH_FLAGS, so as join, ss as dashToPascalCase, tc as STANDALONE, to as getSourceMappingUrlForEndOfFile, ts as loadTypeScriptDiagnostics, uc as byteSize, uo as normalizeFsPathQuery, us as fromEntries, vo as getComponentsDtsTypesFilePath, vs as isString, wo as isOutputTargetDistLazy, ws as toDashCase, xo as isOutputTargetCollection, xs as pluck, yo as getComponentsFromModules, ys as mergeIntoWith, za as ParsePackageJsonResult, zo as isValidConfigOutputTarget, zs as DOCS_CUSTOM } from "../../index-F3IidHM1.mjs";
|
|
2
2
|
export { ASSETS, CMP_FLAGS, COLLECTION, COLLECTION_APP_DATA_FILE_NAME, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST_LAZY, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, FilterComponentsResult, GENERATED_DTS, GLOBAL_STYLE, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LOADER_BUNDLE, MEMBER_FLAGS, NODE_TYPES, ParsePackageJsonResult, SSR, SSR_WASM, STANDALONE, STATS, STYLE_EXT, SVG_NS, TASK_CANCELED_MSG, TYPES, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterActiveTargets, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetAssets, isOutputTargetCollection, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDistLazy, isOutputTargetDocs, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetGlobalStyle, isOutputTargetLoaderBundle, isOutputTargetSsr, isOutputTargetSsrWasm, isOutputTargetStandalone, isOutputTargetStats, isOutputTargetTypes, isOutputTargetWww, isRemoteUrl, isRolldownError, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_d_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentTag };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DEFAULT_STYLE_MODE, B as HOST_FLAGS, C as ASSETS, D as COLLECTION_MANIFEST_FILE_NAME, E as COLLECTION_APP_DATA_FILE_NAME, F as DOCS_README, G as NODE_TYPES, H as LISTENER_FLAGS, I as DOCS_VSCODE, J as STANDALONE, K as SSR, L as EVENT_FLAGS, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as COPY, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as queryNonceMetaTagContent, T as COLLECTION, U as LOADER_BUNDLE, V as HTML_NS, W as MEMBER_FLAGS, X as STYLE_EXT, Y as STATS, Z as SVG_NS, _ as sortBy, a as fromEntries, b as toTitleCase, c as isDef, d as isNumber, et as WATCH_FLAGS, f as isObject, g as pluck, h as noop, i as flatOne, j as DIST_LAZY, k as CUSTOM, l as isFunction, m as mergeIntoWith, n as dashToPascalCase, nt as XLINK_NS, o as isBoolean, p as isString, q as SSR_WASM, r as escapeWithPattern, s as isComplexType, t as escapeRegExpSpecialCharacters, tt as WWW, u as isIterable, v as toCamelCase, w as CMP_FLAGS, x as unique, y as toDashCase, z as GLOBAL_STYLE } from "../../regular-expression-CFVJOTUh.mjs";
|
|
2
|
-
import { $ as loadTypeScriptDiagnostics, A as isOutputTargetCollection, B as isOutputTargetGlobalStyle, C as result_exports, Ct as formatComponentRuntimeMeta, D as getComponentsDtsTypesFilePath, E as getComponentsDtsSrcFilePath, Et as byteSize, F as isOutputTargetDocsCustom, G as isOutputTargetStats, H as isOutputTargetSsr, I as isOutputTargetDocsCustomElementsManifest, J as isValidConfigOutputTarget, K as isOutputTargetTypes, L as isOutputTargetDocsJson, M as isOutputTargetCustom, N as isOutputTargetDistLazy, O as getComponentsFromModules, P as isOutputTargetDocs, Q as loadTypeScriptDiagnostic, R as isOutputTargetDocsReadme, St as isGlob, T as filterExcludedComponents, Tt as stringifyRuntimeData, U as isOutputTargetSsrWasm, V as isOutputTargetLoaderBundle, W as isOutputTargetStandalone, X as shouldExcludeComponent, Y as relativeImport, Z as augmentDiagnosticWithNode, _ as getSourceMappingUrlForEndOfFile, _t as catchError, a as getTextDocs, at as relative, bt as shouldIgnoreError, c as isJsFile, ct as isRolldownError, d as isTsxFile, dt as normalizeDiagnostics, et as join, f as parsePackageJson, ft as splitLineBreaks, g as getInlineSourceMappingUrlLinker, gt as buildWarn, h as isRemoteUrl, ht as buildJsonFileError, i as generatePreamble, it as normalizePath, j as isOutputTargetCopy, k as isOutputTargetAssets, l as isJsxFile, lt as loadRolldownDiagnostics, m as readPackageJson, mt as buildError, n as addDocBlock, nt as normalizeFsPath, o as hasDependency, ot as resolve, p as readOnlyArrayHasStringMember, pt as TASK_CANCELED_MSG, q as isOutputTargetWww, r as createJsVarName, rt as normalizeFsPathQuery, s as isDtsFile, st as createOnWarnFn, t as validateComponentTag, tt as normalize, u as isTsFile, ut as escapeHtml, v as getSourceMappingUrlLinker, vt as hasError, w as filterActiveTargets, wt as formatLazyBundleRuntimeMeta, xt as isRootPath, y as rolldownToStencilSourceMap, yt as hasWarning, z as isOutputTargetDocsVscode } from "../../validation-
|
|
2
|
+
import { $ as loadTypeScriptDiagnostics, A as isOutputTargetCollection, B as isOutputTargetGlobalStyle, C as result_exports, Ct as formatComponentRuntimeMeta, D as getComponentsDtsTypesFilePath, E as getComponentsDtsSrcFilePath, Et as byteSize, F as isOutputTargetDocsCustom, G as isOutputTargetStats, H as isOutputTargetSsr, I as isOutputTargetDocsCustomElementsManifest, J as isValidConfigOutputTarget, K as isOutputTargetTypes, L as isOutputTargetDocsJson, M as isOutputTargetCustom, N as isOutputTargetDistLazy, O as getComponentsFromModules, P as isOutputTargetDocs, Q as loadTypeScriptDiagnostic, R as isOutputTargetDocsReadme, St as isGlob, T as filterExcludedComponents, Tt as stringifyRuntimeData, U as isOutputTargetSsrWasm, V as isOutputTargetLoaderBundle, W as isOutputTargetStandalone, X as shouldExcludeComponent, Y as relativeImport, Z as augmentDiagnosticWithNode, _ as getSourceMappingUrlForEndOfFile, _t as catchError, a as getTextDocs, at as relative, bt as shouldIgnoreError, c as isJsFile, ct as isRolldownError, d as isTsxFile, dt as normalizeDiagnostics, et as join, f as parsePackageJson, ft as splitLineBreaks, g as getInlineSourceMappingUrlLinker, gt as buildWarn, h as isRemoteUrl, ht as buildJsonFileError, i as generatePreamble, it as normalizePath, j as isOutputTargetCopy, k as isOutputTargetAssets, l as isJsxFile, lt as loadRolldownDiagnostics, m as readPackageJson, mt as buildError, n as addDocBlock, nt as normalizeFsPath, o as hasDependency, ot as resolve, p as readOnlyArrayHasStringMember, pt as TASK_CANCELED_MSG, q as isOutputTargetWww, r as createJsVarName, rt as normalizeFsPathQuery, s as isDtsFile, st as createOnWarnFn, t as validateComponentTag, tt as normalize, u as isTsFile, ut as escapeHtml, v as getSourceMappingUrlLinker, vt as hasError, w as filterActiveTargets, wt as formatLazyBundleRuntimeMeta, xt as isRootPath, y as rolldownToStencilSourceMap, yt as hasWarning, z as isOutputTargetDocsVscode } from "../../validation-ByxKj8bC.mjs";
|
|
3
3
|
export { ASSETS, CMP_FLAGS, COLLECTION, COLLECTION_APP_DATA_FILE_NAME, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST_LAZY, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, GENERATED_DTS, GLOBAL_STYLE, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LOADER_BUNDLE, MEMBER_FLAGS, NODE_TYPES, SSR, SSR_WASM, STANDALONE, STATS, STYLE_EXT, SVG_NS, TASK_CANCELED_MSG, TYPES, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterActiveTargets, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetAssets, isOutputTargetCollection, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDistLazy, isOutputTargetDocs, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetGlobalStyle, isOutputTargetLoaderBundle, isOutputTargetSsr, isOutputTargetSsrWasm, isOutputTargetStandalone, isOutputTargetStats, isOutputTargetTypes, isOutputTargetWww, isRemoteUrl, isRolldownError, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentTag };
|